fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
4.1 MiB

/*! time: 2020-12-14 19:40:20 */
!function(n){var r={};function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1452)}([,function(e,t,n){"use strict";try{var r=n(74);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(i){e.exports=n(785)}},function(e,t,n){"use strict";var r=n(15),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return t!==undefined?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},,,,,,function(e,t,C){"use strict";(function(e){function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function T(t){return typeof t}:function T(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(e)}!function(e){function g(e,t){if(!e)throw new Error(t||"Assertion failed")}function t(e,t){e.super_=t;var n=function n(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function m(e,t,n){if(m.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var n;"object"===T(e)?e.exports=m:(void 0).BN=m,(m.BN=m).wordSize=26;try{n=C(808).Buffer}catch(E){}function o(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a<i;a++){var o=e.charCodeAt(a)-48;r<<=4,r|=49<=o&&o<=54?o-49+10:17<=o&&o<=22?o-17+10:15&o}return r}function d(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}m.isBN=function(e){return e instanceof m||null!==e&&"object"===T(e)&&e.constructor.wordSize===m.wordSize&&Array.isArray(e.words)},m.max=function(e,t){return 0<e.cmp(t)?e:t},m.min=function(e,t){return e.cmp(t)<0?e:t},m.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"===T(e))return this._initArray(e,t,n);"hex"===t&&(t=16),g(t===(0|t)&&2<=t&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},m.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},m.prototype._initArray=function(e,t,n){if(g("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r,i,a=0;a<this.length;a++)this.words[a]=0;var o=0;if("be"===n)for(a=e.length-1,r=0;0<=a;a-=3)i=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[r]|=i<<o&67108863,this.words[r+1]=i>>>26-o&67108863,26<=(o+=24)&&(o-=26,r++);else if("le"===n)for(r=a=0;a<e.length;a+=3)i=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[r]|=i<<o&67108863,this.words[r+1]=i>>>26-o&67108863,26<=(o+=24)&&(o-=26,r++);return this.strip()},m.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n,r=0;r<this.length;r++)this.words[r]=0;for(var i=0,r=e.length-6,a=0;t<=r;r-=6)n=o(e,r,r+6),this.words[a]|=n<<i&67108863,this.words[a+1]|=n>>>26-i&4194303,26<=(i+=24)&&(i-=26,a++);r+6!==t&&(n=o(e,t,r+6),this.words[a]|=n<<i&67108863,this.words[a+1]|=n>>>26-i&4194303),this.strip()},m.prototype._parseBase=function(e,t,n){this.words=[0];for(var r=0,i=this.length=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=d(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!=o){for(var l=1,c=d(e,u,e.length,t),u=0;u<o;u++)l*=t;this.imuln(l),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},m.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},m.prototype.clone=function(){var e=new m(null);return this.copy(e),e},m.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},m.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},m.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},m.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[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 i(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0,r=(n.length=r)-1|0,i=67108863&(d=(0|e.words[0])*(0|t.words[0])),a=d/67108864|0;n.words[0]=i;for(var o=1;o<r;o++){for(var s=a>>>26,c=67108863&a,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var d,p=o-l|0;s+=(d=(0|e.words[p])*(0|t.words[l])+c)/67108864|0,c=67108863&d}n.words[o]=0|c,a=0|s}return 0!==a?n.words[o]=0|a:n.length--,n.strip()}m.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){s="";for(var n=0,r=0,i=0;i<this.length;i++){var a=this.words[i],o=(16777215&(a<<n|r)).toString(16),s=0!==(r=a>>>24-n&16777215)||i!==this.length-1?p[6-o.length]+o+s:o+s;26<=(n+=2)&&(n-=26,i--)}for(0!==r&&(s=r.toString(16)+s);s.length%t!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}if(e===(0|e)&&2<=e&&e<=36){var c=f[e],u=_[e];for(s="",(l=this.clone()).negative=0;!l.isZero();){var l,d=l.modn(u).toString(e);s=(l=l.idivn(u)).isZero()?d+s:p[c-d.length]+d+s}for(this.isZero()&&(s="0"+s);s.length%t!=0;)s="0"+s;return 0!==this.negative&&(s="-"+s),s}g(!1,"Base should be between 2 and 36")},m.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},m.prototype.toJSON=function(){return this.toString(16)},m.prototype.toBuffer=function(e,t){return g(void 0!==n),this.toArrayLike(n,e,t)},m.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},m.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),i=n||Math.max(1,r);g(r<=i,"byte array longer than desired length"),g(0<i,"Requested array length <= 0"),this.strip();var a,o,s="le"===t,c=new e(i),u=this.clone();if(s){for(o=0;!u.isZero();o++)a=u.andln(255),u.iushrn(8),c[o]=a;for(;o<i;o++)c[o]=0}else{for(o=0;o<i-r;o++)c[o]=0;for(o=0;!u.isZero();o++)a=u.andln(255),u.iushrn(8),c[i-o-1]=a}return c},Math.clz32?m.prototype._countBits=function(e){return 32-Math.clz32(e)}:m.prototype._countBits=function(e){var t=e,n=0;return 4096<=t&&(n+=13,t>>>=13),64<=t&&(n+=7,t>>>=7),8<=t&&(n+=4,t>>>=4),2<=t&&(n+=2,t>>>=2),n+t},m.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},m.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},m.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},m.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},m.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},m.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},m.prototype.isNeg=function(){return 0!==this.negative},m.prototype.neg=function(){return this.clone().ineg()},m.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},m.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},m.prototype.ior=function(e){return g(0==(this.negative|e.negative)),this.iuor(e)},m.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},m.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},m.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},m.prototype.iand=function(e){return g(0==(this.negative|e.negative)),this.iuand(e)},m.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},m.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},m.prototype.iuxor=function(e){for(var t,n=this.length>e.length?(t=this,e):(t=e,this),r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},m.prototype.ixor=function(e){return g(0==(this.negative|e.negative)),this.iuxor(e)},m.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},m.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},m.prototype.inotn=function(e){g("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),0<n&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return 0<n&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},m.prototype.notn=function(e){return this.clone().inotn(e)},m.prototype.setn=function(e,t){g("number"==typeof e&&0<=e);var n=e/26|0,r=e%26;return this._expand(1+n),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},m.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();r=this.length>e.length?(n=this,e):(n=e,this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},m.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},m.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;r=0<i?(n=this,e):(n=e,this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;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()},m.prototype.sub=function(e){return this.clone().isub(e)};var Le=function Le(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,u=0|o[0],l=8191&u,d=u>>>13,p=0|o[1],f=8191&p,_=p>>>13,h=0|o[2],g=8191&h,m=h>>>13,y=0|o[3],b=8191&y,v=y>>>13,E=0|o[4],I=8191&E,T=E>>>13,C=0|o[5],B=8191&C,x=C>>>13,S=0|o[6],N=8191&S,D=S>>>13,k=0|o[7],A=8191&k,w=k>>>13,V=0|o[8],P=8191&V,L=V>>>13,M=0|o[9],F=8191&M,O=M>>>13,R=0|s[0],H=8191&R,j=R>>>13,W=0|s[1],G=8191&W,Y=W>>>13,J=0|s[2],z=8191&J,U=J>>>13,K=0|s[3],Z=8191&K,X=K>>>13,q=0|s[4],Q=8191&q,$=q>>>13,ee=0|s[5],te=8191&ee,ne=ee>>>13,re=0|s[6],ie=8191&re,ae=re>>>13,oe=0|s[7],se=8191&oe,ce=oe>>>13,ue=0|s[8],le=8191&ue,de=ue>>>13,pe=0|s[9],fe=8191&pe,_e=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var he=(0+Math.imul(l,H)|0)+((8191&(i=Math.imul(l,j)+Math.imul(d,H)|0))<<13)|0,ge=(Math.imul(d,j)+(i>>>13)|0)+(he>>>26)|0;he&=67108863,r=Math.imul(f,H),i=Math.imul(f,j)+Math.imul(_,H)|0,a=Math.imul(_,j);var me=(ge+(r+Math.imul(l,G)|0)|0)+((8191&(i=(i+Math.imul(l,Y)|0)+Math.imul(d,G)|0))<<13)|0;ge=((a+Math.imul(d,Y)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(g,H),i=Math.imul(g,j)+Math.imul(m,H)|0,a=Math.imul(m,j),r=r+Math.imul(f,G)|0,i=(i+Math.imul(f,Y)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,Y)|0;var ye=(ge+(r+Math.imul(l,z)|0)|0)+((8191&(i=(i+Math.imul(l,U)|0)+Math.imul(d,z)|0))<<13)|0;ge=((a+Math.imul(d,U)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,H),i=Math.imul(b,j)+Math.imul(v,H)|0,a=Math.imul(v,j),r=r+Math.imul(g,G)|0,i=(i+Math.imul(g,Y)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,Y)|0,r=r+Math.imul(f,z)|0,i=(i+Math.imul(f,U)|0)+Math.imul(_,z)|0,a=a+Math.imul(_,U)|0;var be=(ge+(r+Math.imul(l,Z)|0)|0)+((8191&(i=(i+Math.imul(l,X)|0)+Math.imul(d,Z)|0))<<13)|0;ge=((a+Math.imul(d,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(I,H),i=Math.imul(I,j)+Math.imul(T,H)|0,a=Math.imul(T,j),r=r+Math.imul(b,G)|0,i=(i+Math.imul(b,Y)|0)+Math.imul(v,G)|0,a=a+Math.imul(v,Y)|0,r=r+Math.imul(g,z)|0,i=(i+Math.imul(g,U)|0)+Math.imul(m,z)|0,a=a+Math.imul(m,U)|0,r=r+Math.imul(f,Z)|0,i=(i+Math.imul(f,X)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,X)|0;var ve=(ge+(r+Math.imul(l,Q)|0)|0)+((8191&(i=(i+Math.imul(l,$)|0)+Math.imul(d,Q)|0))<<13)|0;ge=((a+Math.imul(d,$)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(B,H),i=Math.imul(B,j)+Math.imul(x,H)|0,a=Math.imul(x,j),r=r+Math.imul(I,G)|0,i=(i+Math.imul(I,Y)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,Y)|0,r=r+Math.imul(b,z)|0,i=(i+Math.imul(b,U)|0)+Math.imul(v,z)|0,a=a+Math.imul(v,U)|0,r=r+Math.imul(g,Z)|0,i=(i+Math.imul(g,X)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,X)|0,r=r+Math.imul(f,Q)|0,i=(i+Math.imul(f,$)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,$)|0;var Ee=(ge+(r+Math.imul(l,te)|0)|0)+((8191&(i=(i+Math.imul(l,ne)|0)+Math.imul(d,te)|0))<<13)|0;ge=((a+Math.imul(d,ne)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,H),i=Math.imul(N,j)+Math.imul(D,H)|0,a=Math.imul(D,j),r=r+Math.imul(B,G)|0,i=(i+Math.imul(B,Y)|0)+Math.imul(x,G)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(I,z)|0,i=(i+Math.imul(I,U)|0)+Math.imul(T,z)|0,a=a+Math.imul(T,U)|0,r=r+Math.imul(b,Z)|0,i=(i+Math.imul(b,X)|0)+Math.imul(v,Z)|0,a=a+Math.imul(v,X)|0,r=r+Math.imul(g,Q)|0,i=(i+Math.imul(g,$)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,$)|0,r=r+Math.imul(f,te)|0,i=(i+Math.imul(f,ne)|0)+Math.imul(_,te)|0,a=a+Math.imul(_,ne)|0;var Ie=(ge+(r+Math.imul(l,ie)|0)|0)+((8191&(i=(i+Math.imul(l,ae)|0)+Math.imul(d,ie)|0))<<13)|0;ge=((a+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(A,H),i=Math.imul(A,j)+Math.imul(w,H)|0,a=Math.imul(w,j),r=r+Math.imul(N,G)|0,i=(i+Math.imul(N,Y)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(B,z)|0,i=(i+Math.imul(B,U)|0)+Math.imul(x,z)|0,a=a+Math.imul(x,U)|0,r=r+Math.imul(I,Z)|0,i=(i+Math.imul(I,X)|0)+Math.imul(T,Z)|0,a=a+Math.imul(T,X)|0,r=r+Math.imul(b,Q)|0,i=(i+Math.imul(b,$)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(g,te)|0,i=(i+Math.imul(g,ne)|0)+Math.imul(m,te)|0,a=a+Math.imul(m,ne)|0,r=r+Math.imul(f,ie)|0,i=(i+Math.imul(f,ae)|0)+Math.imul(_,ie)|0,a=a+Math.imul(_,ae)|0;var Te=(ge+(r+Math.imul(l,se)|0)|0)+((8191&(i=(i+Math.imul(l,ce)|0)+Math.imul(d,se)|0))<<13)|0;ge=((a+Math.imul(d,ce)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(P,H),i=Math.imul(P,j)+Math.imul(L,H)|0,a=Math.imul(L,j),r=r+Math.imul(A,G)|0,i=(i+Math.imul(A,Y)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(N,z)|0,i=(i+Math.imul(N,U)|0)+Math.imul(D,z)|0,a=a+Math.imul(D,U)|0,r=r+Math.imul(B,Z)|0,i=(i+Math.imul(B,X)|0)+Math.imul(x,Z)|0,a=a+Math.imul(x,X)|0,r=r+Math.imul(I,Q)|0,i=(i+Math.imul(I,$)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,$)|0,r=r+Math.imul(b,te)|0,i=(i+Math.imul(b,ne)|0)+Math.imul(v,te)|0,a=a+Math.imul(v,ne)|0,r=r+Math.imul(g,ie)|0,i=(i+Math.imul(g,ae)|0)+Math.imul(m,ie)|0,a=a+Math.imul(m,ae)|0,r=r+Math.imul(f,se)|0,i=(i+Math.imul(f,ce)|0)+Math.imul(_,se)|0,a=a+Math.imul(_,ce)|0;var Ce=(ge+(r+Math.imul(l,le)|0)|0)+((8191&(i=(i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;ge=((a+Math.imul(d,de)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,H),i=Math.imul(F,j)+Math.imul(O,H)|0,a=Math.imul(O,j),r=r+Math.imul(P,G)|0,i=(i+Math.imul(P,Y)|0)+Math.imul(L,G)|0,a=a+Math.imul(L,Y)|0,r=r+Math.imul(A,z)|0,i=(i+Math.imul(A,U)|0)+Math.imul(w,z)|0,a=a+Math.imul(w,U)|0,r=r+Math.imul(N,Z)|0,i=(i+Math.imul(N,X)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,X)|0,r=r+Math.imul(B,Q)|0,i=(i+Math.imul(B,$)|0)+Math.imul(x,Q)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(I,te)|0,i=(i+Math.imul(I,ne)|0)+Math.imul(T,te)|0,a=a+Math.imul(T,ne)|0,r=r+Math.imul(b,ie)|0,i=(i+Math.imul(b,ae)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,ae)|0,r=r+Math.imul(g,se)|0,i=(i+Math.imul(g,ce)|0)+Math.imul(m,se)|0,a=a+Math.imul(m,ce)|0,r=r+Math.imul(f,le)|0,i=(i+Math.imul(f,de)|0)+Math.imul(_,le)|0,a=a+Math.imul(_,de)|0;var Be=(ge+(r+Math.imul(l,fe)|0)|0)+((8191&(i=(i+Math.imul(l,_e)|0)+Math.imul(d,fe)|0))<<13)|0;ge=((a+Math.imul(d,_e)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(F,G),i=Math.imul(F,Y)+Math.imul(O,G)|0,a=Math.imul(O,Y),r=r+Math.imul(P,z)|0,i=(i+Math.imul(P,U)|0)+Math.imul(L,z)|0,a=a+Math.imul(L,U)|0,r=r+Math.imul(A,Z)|0,i=(i+Math.imul(A,X)|0)+Math.imul(w,Z)|0,a=a+Math.imul(w,X)|0,r=r+Math.imul(N,Q)|0,i=(i+Math.imul(N,$)|0)+Math.imul(D,Q)|0,a=a+Math.imul(D,$)|0,r=r+Math.imul(B,te)|0,i=(i+Math.imul(B,ne)|0)+Math.imul(x,te)|0,a=a+Math.imul(x,ne)|0,r=r+Math.imul(I,ie)|0,i=(i+Math.imul(I,ae)|0)+Math.imul(T,ie)|0,a=a+Math.imul(T,ae)|0,r=r+Math.imul(b,se)|0,i=(i+Math.imul(b,ce)|0)+Math.imul(v,se)|0,a=a+Math.imul(v,ce)|0,r=r+Math.imul(g,le)|0,i=(i+Math.imul(g,de)|0)+Math.imul(m,le)|0,a=a+Math.imul(m,de)|0;var xe=(ge+(r+Math.imul(f,fe)|0)|0)+((8191&(i=(i+Math.imul(f,_e)|0)+Math.imul(_,fe)|0))<<13)|0;ge=((a+Math.imul(_,_e)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(F,z),i=Math.imul(F,U)+Math.imul(O,z)|0,a=Math.imul(O,U),r=r+Math.imul(P,Z)|0,i=(i+Math.imul(P,X)|0)+Math.imul(L,Z)|0,a=a+Math.imul(L,X)|0,r=r+Math.imul(A,Q)|0,i=(i+Math.imul(A,$)|0)+Math.imul(w,Q)|0,a=a+Math.imul(w,$)|0,r=r+Math.imul(N,te)|0,i=(i+Math.imul(N,ne)|0)+Math.imul(D,te)|0,a=a+Math.imul(D,ne)|0,r=r+Math.imul(B,ie)|0,i=(i+Math.imul(B,ae)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,ae)|0,r=r+Math.imul(I,se)|0,i=(i+Math.imul(I,ce)|0)+Math.imul(T,se)|0,a=a+Math.imul(T,ce)|0,r=r+Math.imul(b,le)|0,i=(i+Math.imul(b,de)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,de)|0;var Se=(ge+(r+Math.imul(g,fe)|0)|0)+((8191&(i=(i+Math.imul(g,_e)|0)+Math.imul(m,fe)|0))<<13)|0;ge=((a+Math.imul(m,_e)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(F,Z),i=Math.imul(F,X)+Math.imul(O,Z)|0,a=Math.imul(O,X),r=r+Math.imul(P,Q)|0,i=(i+Math.imul(P,$)|0)+Math.imul(L,Q)|0,a=a+Math.imul(L,$)|0,r=r+Math.imul(A,te)|0,i=(i+Math.imul(A,ne)|0)+Math.imul(w,te)|0,a=a+Math.imul(w,ne)|0,r=r+Math.imul(N,ie)|0,i=(i+Math.imul(N,ae)|0)+Math.imul(D,ie)|0,a=a+Math.imul(D,ae)|0,r=r+Math.imul(B,se)|0,i=(i+Math.imul(B,ce)|0)+Math.imul(x,se)|0,a=a+Math.imul(x,ce)|0,r=r+Math.imul(I,le)|0,i=(i+Math.imul(I,de)|0)+Math.imul(T,le)|0,a=a+Math.imul(T,de)|0;var Ne=(ge+(r+Math.imul(b,fe)|0)|0)+((8191&(i=(i+Math.imul(b,_e)|0)+Math.imul(v,fe)|0))<<13)|0;ge=((a+Math.imul(v,_e)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(F,Q),i=Math.imul(F,$)+Math.imul(O,Q)|0,a=Math.imul(O,$),r=r+Math.imul(P,te)|0,i=(i+Math.imul(P,ne)|0)+Math.imul(L,te)|0,a=a+Math.imul(L,ne)|0,r=r+Math.imul(A,ie)|0,i=(i+Math.imul(A,ae)|0)+Math.imul(w,ie)|0,a=a+Math.imul(w,ae)|0,r=r+Math.imul(N,se)|0,i=(i+Math.imul(N,ce)|0)+Math.imul(D,se)|0,a=a+Math.imul(D,ce)|0,r=r+Math.imul(B,le)|0,i=(i+Math.imul(B,de)|0)+Math.imul(x,le)|0,a=a+Math.imul(x,de)|0;var De=(ge+(r+Math.imul(I,fe)|0)|0)+((8191&(i=(i+Math.imul(I,_e)|0)+Math.imul(T,fe)|0))<<13)|0;ge=((a+Math.imul(T,_e)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(F,te),i=Math.imul(F,ne)+Math.imul(O,te)|0,a=Math.imul(O,ne),r=r+Math.imul(P,ie)|0,i=(i+Math.imul(P,ae)|0)+Math.imul(L,ie)|0,a=a+Math.imul(L,ae)|0,r=r+Math.imul(A,se)|0,i=(i+Math.imul(A,ce)|0)+Math.imul(w,se)|0,a=a+Math.imul(w,ce)|0,r=r+Math.imul(N,le)|0,i=(i+Math.imul(N,de)|0)+Math.imul(D,le)|0,a=a+Math.imul(D,de)|0;var ke=(ge+(r+Math.imul(B,fe)|0)|0)+((8191&(i=(i+Math.imul(B,_e)|0)+Math.imul(x,fe)|0))<<13)|0;ge=((a+Math.imul(x,_e)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(F,ie),i=Math.imul(F,ae)+Math.imul(O,ie)|0,a=Math.imul(O,ae),r=r+Math.imul(P,se)|0,i=(i+Math.imul(P,ce)|0)+Math.imul(L,se)|0,a=a+Math.imul(L,ce)|0,r=r+Math.imul(A,le)|0,i=(i+Math.imul(A,de)|0)+Math.imul(w,le)|0,a=a+Math.imul(w,de)|0;var Ae=(ge+(r+Math.imul(N,fe)|0)|0)+((8191&(i=(i+Math.imul(N,_e)|0)+Math.imul(D,fe)|0))<<13)|0;ge=((a+Math.imul(D,_e)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(F,se),i=Math.imul(F,ce)+Math.imul(O,se)|0,a=Math.imul(O,ce),r=r+Math.imul(P,le)|0,i=(i+Math.imul(P,de)|0)+Math.imul(L,le)|0,a=a+Math.imul(L,de)|0;var we=(ge+(r+Math.imul(A,fe)|0)|0)+((8191&(i=(i+Math.imul(A,_e)|0)+Math.imul(w,fe)|0))<<13)|0;ge=((a+Math.imul(w,_e)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(F,le),i=Math.imul(F,de)+Math.imul(O,le)|0,a=Math.imul(O,de);var Ve=(ge+(r+Math.imul(P,fe)|0)|0)+((8191&(i=(i+Math.imul(P,_e)|0)+Math.imul(L,fe)|0))<<13)|0;ge=((a+Math.imul(L,_e)|0)+(i>>>13)|0)+(Ve>>>26)|0,Ve&=67108863;var Pe=(ge+Math.imul(F,fe)|0)+((8191&(i=Math.imul(F,_e)+Math.imul(O,fe)|0))<<13)|0;return ge=(Math.imul(O,_e)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=he,c[1]=me,c[2]=ye,c[3]=be,c[4]=ve,c[5]=Ee,c[6]=Ie,c[7]=Te,c[8]=Ce,c[9]=Be,c[10]=xe,c[11]=Se,c[12]=Ne,c[13]=De,c[14]=ke,c[15]=Ae,c[16]=we,c[17]=Ve,c[18]=Pe,0!=ge&&(c[19]=ge,n.length++),n};function a(e,t,n){return(new r).mulp(e,t,n)}function r(e,t){this.x=e,this.y=t}Math.imul||(Le=i),m.prototype.mulTo=function(e,t){var n=this.length+e.length,r=(10===this.length&&10===e.length?Le:n<63?i:n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){for(var o=i,i=0,s=67108863&r,c=Math.min(a,t.length-1),u=Math.max(0,a-e.length+1);u<=c;u++){var l=a-u,d=(0|e.words[l])*(0|t.words[u]),p=67108863&d,s=67108863&(p=p+s|0);i+=(o=(o=o+(d/67108864|0)|0)+(p>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}:a)(this,e,t);return r},r.prototype.makeRBT=function(e){for(var t=new Array(e),n=m.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},r.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},r.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},r.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var d=c,p=u,f=0;f<o;f++){var _=n[l+f],h=r[l+f],g=d*(y=n[l+f+o])-p*(m=r[l+f+o]),m=d*m+p*y,y=g;n[l+f]=_+y,r[l+f]=h+m,n[l+f+o]=_-y,r[l+f+o]=h-m,f!==s&&(g=c*d-u*p,p=c*p+u*d,d=g)}},r.prototype.guessLen13b=function(e,t){for(var n=1&(i=1|Math.max(t,e)),r=0,i=i/2|0;i;i>>>=1)r++;return 1<<r+1+n},r.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},r.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},r.prototype.convert13b=function(e,t,n,r){for(var i=0,a=0;a<t;a++)i+=0|e[a],n[2*a]=8191&i,i>>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a<r;++a)n[a]=0;g(0===i),g(0==(-8192&i))},r.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},r.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),d=new Array(r),p=n.words;p.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,u,r),this.transform(o,a,s,c,r,i),this.transform(u,a,l,d,r,i);for(var f=0;f<r;f++){var _=s[f]*l[f]-c[f]*d[f];c[f]=s[f]*d[f]+c[f]*l[f],s[f]=_}return this.conjugate(s,c,r),this.transform(s,c,p,a,r,i),this.conjugate(p,a,r),this.normalize13b(p,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},m.prototype.mul=function(e){var t=new m(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},m.prototype.mulf=function(e){var t=new m(null);return t.words=new Array(this.length+e.length),a(this,e,t)},m.prototype.imul=function(e){return this.clone().mulTo(e,this)},m.prototype.imuln=function(e){g("number"==typeof e),g(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,i=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},m.prototype.muln=function(e){return this.clone().imuln(e)},m.prototype.sqr=function(){return this.mul(this)},m.prototype.isqr=function(){return this.imul(this.clone())},m.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new m(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},m.prototype.iushln=function(e){g("number"==typeof e&&0<=e);var t=e%26,n=(e-t)/26,r=67108863>>>26-t<<26-t;if(0!=t){for(var i=0,a=0;a<this.length;a++){var o=this.words[a]&r,s=(0|this.words[a])-o<<t;this.words[a]=s|i,i=o>>>26-t}i&&(this.words[a]=i,this.length++)}if(0!=n){for(a=this.length-1;0<=a;a--)this.words[a+n]=this.words[a];for(a=0;a<n;a++)this.words[a]=0;this.length+=n}return this.strip()},m.prototype.ishln=function(e){return g(0===this.negative),this.iushln(e)},m.prototype.iushrn=function(e,t,n){var r;g("number"==typeof e&&0<=e),r=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),o=67108863^67108863>>>i<<i,s=n;if(r-=a,r=Math.max(0,r),s){for(var c=0;c<a;c++)s.words[c]=this.words[c];s.length=a}if(0!==a)if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;for(var u=0,c=this.length-1;0<=c&&(0!==u||r<=c);c--){var l=0|this.words[c];this.words[c]=u<<26-i|l>>>i,u=l&o}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},m.prototype.ishrn=function(e,t,n){return g(0===this.negative),this.iushrn(e,t,n)},m.prototype.shln=function(e){return this.clone().ishln(e)},m.prototype.ushln=function(e){return this.clone().iushln(e)},m.prototype.shrn=function(e){return this.clone().ishrn(e)},m.prototype.ushrn=function(e){return this.clone().iushrn(e)},m.prototype.testn=function(e){g("number"==typeof e&&0<=e);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n)&&!!(this.words[n]&r)},m.prototype.imaskn=function(e){g("number"==typeof e&&0<=e);var t,n=e%26,r=(e-n)/26;return g(0===this.negative,"imaskn works only with positive numbers"),this.length<=r?this:(0!=n&&r++,this.length=Math.min(r,this.length),0!=n&&(t=67108863^67108863>>>n<<n,this.words[this.length-1]&=t),this.strip())},m.prototype.maskn=function(e){return this.clone().imaskn(e)},m.prototype.iaddn=function(e){return g("number"==typeof e),g(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},m.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},m.prototype.isubn=function(e){if(g("number"==typeof e),g(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},m.prototype.addn=function(e){return this.clone().iaddn(e)},m.prototype.subn=function(e){return this.clone().isubn(e)},m.prototype.iabs=function(){return this.negative=0,this},m.prototype.abs=function(){return this.clone().iabs()},m.prototype._ishlnsubmul=function(e,t,n){var r,i=e.length+n;this._expand(i);for(var a=0,o=0;o<e.length;o++){r=(0|this.words[o+n])+a;var s=(0|e.words[o])*t,a=((r-=67108863&s)>>26)-(s/67108864|0);this.words[o+n]=67108863&r}for(;o<this.length-n;o++)a=(r=(0|this.words[o+n])+a)>>26,this.words[o+n]=67108863&r;if(0===a)return this.strip();for(g(-1===a),o=a=0;o<this.length;o++)a=(r=-(0|this.words[o])+a)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},m.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var o,s=r.length-i.length;if("mod"!==t){(o=new m(null)).length=1+s,o.words=new Array(o.length);for(var c=0;c<o.length;c++)o.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,s);0===u.negative&&(r=u,o&&(o.words[s]=1));for(var l=s-1;0<=l;l--){var d=67108864*(0|r.words[i.length+l])+(0|r.words[i.length+l-1]),d=Math.min(d/a|0,67108863);for(r._ishlnsubmul(i,d,l);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,l),r.isZero()||(r.negative^=1);o&&(o.words[l]=d)}return o&&o.strip(),r.strip(),"div"!==t&&0!=n&&r.iushrn(n),{div:o||null,mod:r}},m.prototype.divmod=function(e,t,n){return g(!e.isZero()),this.isZero()?{div:new m(0),mod:new m(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(i=a.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:r,mod:i}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(i=a.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:a.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new m(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new m(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new m(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,i,a},m.prototype.div=function(e){return this.divmod(e,"div",!1).div},m.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},m.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},m.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},m.prototype.modn=function(e){g(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;0<=r;r--)n=(t*n+(0|this.words[r]))%e;return n},m.prototype.idivn=function(e){g(e<=67108863);for(var t=0,n=this.length-1;0<=n;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},m.prototype.divn=function(e){return this.clone().idivn(e)},m.prototype.egcd=function(e){g(0===e.negative),g(!e.isZero());for(var t=this,n=e.clone(),t=0!==t.negative?t.umod(e):t.clone(),r=new m(1),i=new m(0),a=new m(0),o=new m(1),s=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++s;for(var c=n.clone(),u=t.clone();!t.isZero();){for(var l=0,d=1;0==(t.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(t.iushrn(l);0<l--;)(r.isOdd()||i.isOdd())&&(r.iadd(c),i.isub(u)),r.iushrn(1),i.iushrn(1);for(var p=0,f=1;0==(n.words[0]&f)&&p<26;++p,f<<=1);if(0<p)for(n.iushrn(p);0<p--;)(a.isOdd()||o.isOdd())&&(a.iadd(c),o.isub(u)),a.iushrn(1),o.iushrn(1);0<=t.cmp(n)?(t.isub(n),r.isub(a),i.isub(o)):(n.isub(t),a.isub(r),o.isub(i))}return{a:a,b:o,gcd:n.iushln(s)}},m.prototype._invmp=function(e){g(0===e.negative),g(!e.isZero());for(var t,n=this,r=e.clone(),n=0!==n.negative?n.umod(e):n.clone(),i=new m(1),a=new m(0),o=r.clone();0<n.cmpn(1)&&0<r.cmpn(1);){for(var s=0,c=1;0==(n.words[0]&c)&&s<26;++s,c<<=1);if(0<s)for(n.iushrn(s);0<s--;)i.isOdd()&&i.iadd(o),i.iushrn(1);for(var u=0,l=1;0==(r.words[0]&l)&&u<26;++u,l<<=1);if(0<u)for(r.iushrn(u);0<u--;)a.isOdd()&&a.iadd(o),a.iushrn(1);0<=n.cmp(r)?(n.isub(r),i.isub(a)):(r.isub(n),a.isub(i))}return(t=0===n.cmpn(1)?i:a).cmpn(0)<0&&t.iadd(e),t},m.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0;for(var r=n.negative=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0)var a=t,t=n,n=a;else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},m.prototype.invm=function(e){return this.egcd(e).a.umod(e)},m.prototype.isEven=function(){return 0==(1&this.words[0])},m.prototype.isOdd=function(){return 1==(1&this.words[0])},m.prototype.andln=function(e){return this.words[0]&e},m.prototype.bincn=function(e){g("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(1+n),this.words[n]|=r,this;for(var i=r,a=n;0!==i&&a<this.length;a++){var o=0|this.words[a],i=(o+=i)>>>26;o&=67108863,this.words[a]=o}return 0!==i&&(this.words[a]=i,this.length++),this},m.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},m.prototype.cmpn=function(e){var t,n,r=e<0;return 0===this.negative||r?0===this.negative&&r?1:(this.strip(),n=1<this.length?1:(r&&(e=-e),g(e<=67108863,"Number is too big"),(t=0|this.words[0])===e?0:t<e?-1:1),0!==this.negative?0|-n:n):-1},m.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},m.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;0<=n;n--){var r=0|this.words[n],i=0|e.words[n];if(r!=i){r<i?t=-1:i<r&&(t=1);break}}return t},m.prototype.gtn=function(e){return 1===this.cmpn(e)},m.prototype.gt=function(e){return 1===this.cmp(e)},m.prototype.gten=function(e){return 0<=this.cmpn(e)},m.prototype.gte=function(e){return 0<=this.cmp(e)},m.prototype.ltn=function(e){return-1===this.cmpn(e)},m.prototype.lt=function(e){return-1===this.cmp(e)},m.prototype.lten=function(e){return this.cmpn(e)<=0},m.prototype.lte=function(e){return this.cmp(e)<=0},m.prototype.eqn=function(e){return 0===this.cmpn(e)},m.prototype.eq=function(e){return 0===this.cmp(e)},m.red=function(e){return new b(e)},m.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},m.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},m.prototype._forceRed=function(e){return this.red=e,this},m.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},m.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},m.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},m.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},m.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},m.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},m.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},m.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},m.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},m.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},m.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},m.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},m.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},m.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var s={k256:null,p224:null,p192:null,p25519:null};function c(e,t){this.name=e,this.p=new m(t,16),this.n=this.p.bitLength(),this.k=new m(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function u(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function l(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function h(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(e){var t;"string"==typeof e?(t=m._prime(e),this.m=t.p,this.prime=t):(g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null)}function v(e){b.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new m(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)}c.prototype._tmp=function(){var e=new m(null);return e.words=new Array(Math.ceil(this.n/13)),e},c.prototype.ireduce=function(e){for(var t,n=e;this.split(n,this.tmp),(t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength())>this.n;);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):0<r?n.isub(this.p):n.strip!==undefined?n.strip():n._strip(),n},c.prototype.split=function(e,t){e.iushrn(this.n,0,t)},c.prototype.imulK=function(e){return e.imul(this.k)},t(u,c),u.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,0===(e.words[r-10]=i)&&10<e.length?e.length-=10:e.length-=9},u.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},t(l,c),t(h,c),t(y,c),y.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},m._prime=function I(e){if(s[e])return s[e];var I;if("k256"===e)I=new u;else if("p224"===e)I=new l;else if("p192"===e)I=new h;else{if("p25519"!==e)throw new Error("Unknown prime "+e);I=new y}return s[e]=I},b.prototype._verify1=function(e){g(0===e.negative,"red works only with positives"),g(e.red,"red works only with red numbers")},b.prototype._verify2=function(e,t){g(0==(e.negative|t.negative),"red works only with positives"),g(e.red&&e.red===t.red,"red works only with red numbers")},b.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},b.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},b.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return 0<=n.cmp(this.m)&&n.isub(this.m),n._forceRed(this)},b.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return 0<=n.cmp(this.m)&&n.isub(this.m),n},b.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},b.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},b.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},b.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},b.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},b.prototype.isqr=function(e){return this.imul(e,e.clone())},b.prototype.sqr=function(e){return this.mul(e,e)},b.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(g(t%2==1),3===t){var n=this.m.add(new m(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);g(!r.isZero());for(var a=new m(1).toRed(this),o=a.redNeg(),s=this.m.subn(1).iushrn(1),c=new m(2*(c=this.m.bitLength())*c).toRed(this);0!==this.pow(c,s).cmp(o);)c.redIAdd(o);for(var u=this.pow(c,r),l=this.pow(e,r.addn(1).iushrn(1)),d=this.pow(e,r),p=i;0!==d.cmp(a);){for(var f=d,_=0;0!==f.cmp(a);_++)f=f.redSqr();g(_<p);var h=this.pow(u,new m(1).iushln(p-_-1)),l=l.redMul(h),u=h.redSqr(),d=d.redMul(u),p=_}return l},b.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},b.prototype.pow=function(e,t){if(t.isZero())return new m(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new m(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,o=0,s=t.bitLength()%26;for(0===s&&(s=26),r=t.length-1;0<=r;r--){for(var c=t.words[r],u=s-1;0<=u;u--){var l=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!=l||0!==a?(a<<=1,a|=l,(4===++o||0===r&&0===u)&&(i=this.mul(i,n[a]),a=o=0)):o=0}s=26}return i},b.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},b.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},m.mont=function(e){return new v(e)},t(v,b),v.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},v.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},v.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return 0<=i.cmp(this.m)?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},v.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new m(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return 0<=i.cmp(this.m)?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},v.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e)}).call(this,C(81)(e))},,function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function r(t){return typeof t}:function r(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}var i=function(){return this}();try{i=i||new Function("return this")()}catch(a){"object"===("undefined"==typeof window?"undefined":r(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var r,i,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,l=[],d=!1,p=-1;function f(){d&&u&&(d=!1,u.length?l=u.concat(l):p=-1,l.length&&_())}function _(){if(!d){var e=c(f);d=!0;for(var t=l.length;t;){for(u=l,l=[];++p<t;)u&&u[p].run();p=-1,t=l.length}u=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||d||c(_)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},,,,function(e,P,L){"use strict";(function(e){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&e[i]===undefined&&Object.defineProperty(e,i,a)}return e}var c=L(778),a=L(779),o=L(780);function r(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?s(e=new Uint8Array(t),d.prototype):(null===e&&(e=new d(t)),e.length=t),e}function d(e,t,n){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(e,t,n);if("number"!=typeof e)return i(this,e,t,n);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}function i(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=n===undefined&&r===undefined?new Uint8Array(t):r===undefined?new Uint8Array(t,n):new Uint8Array(t,n,r);d.TYPED_ARRAY_SUPPORT?s(e=t,d.prototype):e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!d.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=u(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(d.isBuffer(t)){var n=0|_(t.length);return 0===(e=u(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?u(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(l(t),e=u(e,t<0?0:0|_(t)),!d.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|_(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function _(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function h(e,t){if(d.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return w(e).length;default:if(r)return A(e).length;t=(""+t).toLowerCase(),r=!0}}function t(e,t,n){var r,i,a,o=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0);(!n||n<0||r<n)&&(n=r);for(var i="",a=t;a<n;++a)i+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(e[a]);return i}(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return r=this,a=n,0===(i=t)&&a===r.length?c.fromByteArray(r):c.fromByteArray(r.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==undefined&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o/=a=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i)for(var u=-1,l=n;l<o;l++)if(c(e,l)===c(t,-1===u?0:l-u)){if(-1===u&&(u=l),l-u+1===s)return u*a}else-1!==u&&(l-=l-u),u=-1;else for(o<n+s&&(n=o-s),l=n;0<=l;l--){for(var d=!0,p=0;p<s;p++)if(c(e,l+p)!==c(t,p)){d=!1;break}if(d)return l}return-1}function b(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function v(e,t,n,r){return V(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,u=e[i],l=null,d=239<u?4:223<u?3:191<u?2:1;if(i+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&127<(c=(31&u)<<6|63&a)&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&2047<(c=(15&u)<<12|(63&a)<<6|63&o)&&(c<55296||57343<c)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)&&c<1114112&&(l=c)}null===l?(l=65533,d=1):65535<l&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}(r)}P.Buffer=d,P.SlowBuffer=function(e){+e!=e&&(e=0);return d.alloc(+e)},P.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return s(e,n({},Uint8Array.prototype,{foo:function(){return 42}})),42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),P.kMaxLength=r(),d.poolSize=8192,d._augment=function(e){return s(e,d.prototype),e},d.from=function(e,t,n){return i(null,e,t,n)},d.TYPED_ARRAY_SUPPORT&&(s(d.prototype,Uint8Array.prototype),s(d,Uint8Array),"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(e,t,n){return r=null,a=t,o=n,l(i=e),i<=0||a===undefined?u(r,i):"string"==typeof o?u(r,i).fill(a,o):u(r,i).fill(a);var r,i,a,o},d.allocUnsafe=function(e){return p(null,e)},d.allocUnsafeSlow=function(e){return p(null,e)},d.isBuffer=function(e){return!(null==e||!e._isBuffer)},d.compare=function(e,t){if(!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);if(t===undefined)for(i=t=0;i<e.length;++i)t+=e[i].length;for(var n=d.allocUnsafe(t),r=0,i=0;i<e.length;++i){var a=e[i];if(!d.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},d.byteLength=h,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},d.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?E(this,0,e):t.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",t=P.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},d.prototype.compare=function(e,t,n,r,i){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),r===undefined&&(r=0),i===undefined&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),l=0;l<s;++l)if(c[l]!==u[l]){a=c[l],o=u[l];break}return a<o?-1:o<a?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},d.prototype.write=function(e,t,n,r){if(t===undefined)r="utf8",n=this.length,t=0;else if(n===undefined&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,r===undefined&&(r="utf8")):(r=n,n=undefined)}var i=this.length-t;if((n===undefined||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var a,o,s,c,u,l,d=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;(!r||i<(r=Number(r)))&&(r=i);var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");a/2<r&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}(this,e,t,n);case"utf8":case"utf-8":return u=t,l=n,V(A(e,(c=this).length-u),c,u,l);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return a=this,o=t,s=n,V(w(e),a,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,n);default:if(d)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function T(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,a){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function x(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function S(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return i||S(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||S(e,0,n,8),a.write(e,t,n,r,52,8),n+8}d.prototype.slice=function slice(t,n){var r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(n=n===undefined?r:~~n)<0?(n+=r)<0&&(n=0):r<n&&(n=r),n<t&&(n=t),d.TYPED_ARRAY_SUPPORT)s(a=this.subarray(t,n),d.prototype);else for(var i=n-t,a=new d(i,undefined),o=0;o<i;++o)a[o]=this[o+t];return a},d.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},d.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},d.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,i=1,a=this[e+--r];0<r&&(i*=256);)a+=this[e+--r]*i;return(i*=128)<=a&&(a-=Math.pow(2,8*t)),a},d.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),a.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),a.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),a.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),a.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},d.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;0<=--i&&(a*=256);)this[t+i]=e/a&255;return t+n},d.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,n,r){var i;e=+e,t|=0,r||C(this,e,t,n,(i=Math.pow(2,8*n-1))-1,-i);var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){var i;e=+e,t|=0,r||C(this,e,t,n,(i=Math.pow(2,8*n-1))-1,-i);var a=n-1,o=1,s=0;for(this[t+a]=255&e;0<=--a&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),t=t||0,0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;0<=i;--i)e[i+t]=this[i+n];else if(a<1e3||!d.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){var i;if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1!==e.length||(i=e.charCodeAt(0))<256&&(e=i),r!==undefined&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=n===undefined?this.length:n>>>0,"number"==typeof(e=e||0))for(s=t;s<n;++s)this[s]=e;else for(var a=d.isBuffer(e)?e:A(new d(e,r).toString()),o=a.length,s=0;s<n-t;++s)this[s+t]=a[s%o];return this};var k=/[^+\/0-9A-Za-z-_]/g;function A(e,t){var n;t=t||Infinity;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if(55295<(n=e.charCodeAt(o))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===r){-1<(t-=3)&&a.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=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((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function w(e){return c.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,L(10))},function(e,t,n){"use strict";var r=t,i=n(8),a=n(26),o=n(118);function s(e,t,n){var r="_"+t;e.prototype[t]=function s(){return this[r]!==undefined?this[r]:this[r]=n.call(this)}}r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,c=a.andln(i-1);a.isOdd()?(s=(i>>1)-1<c?(i>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;0<e.cmpn(-r)||0<t.cmpn(-i);){var a,o,s,c=e.andln(3)+r&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!==(o=e.andln(7)+r&7)&&5!==o||2!==u?c:-c,n[0].push(a),s=0==(1&u)?0:3!==(o=t.andln(7)+i&7)&&5!==o||2!==c?u:-u,n[1].push(s),2*r===a+1&&(r=1-r),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=s,r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){"use strict";n(759)},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(59),t.createHash=t.Hash=n(60),t.createHmac=t.Hmac=n(774);var r=n(775),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=n(101);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(801);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=n(802);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(803);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(804);var l=n(827);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var d=n(844);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";var u=n(26),r=n(1);function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=r,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n,r,i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)i.push(parseInt(e[o]+e[o+1],16))}else for(var a=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?i[a++]=s:s<2048?(i[a++]=s>>6|192,i[a++]=63&s|128):(r=o,55296!=(64512&(n=e).charCodeAt(r))||r<0||r+1>=n.length||56320!=(64512&n.charCodeAt(r+1))?i[a++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),i[a++]=s>>18|240,i[a++]=s>>12&63|128),i[a++]=s>>6&63|128,i[a++]=63&s|128)}else for(o=0;o<e.length;o++)i[o]=0|e[o];return i},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=o(i.toString(16))}return n},t.zero2=i,t.zero8=o,t.join32=function(e,t,n,r){var i=n-t;u(i%4==0);for(var a=new Array(i/4),o=0,s=t;o<a.length;o++,s+=4){var c="big"===r?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s];a[o]=c>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,o,s){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+a>>>0)<a?1:0,e+n+i+o+(c+=(u=u+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,o,s,c,u){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+a>>>0)<a?1:0,l+=(d=d+s>>>0)<s?1:0,e+n+i+o+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,a,o,s,c,u){return t+r+a+s+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},,,,function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}(e.exports=r).equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},,,,,,,,,,,function(e,t,n){"use strict";function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _(t){return typeof t}:function _(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(e)}function r(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&e[i]===undefined&&Object.defineProperty(e,i,a)}}(e.prototype.constructor=e,t)}var i={};function a(e,s,t){var n=function(o){function e(e,t,n){return o.call(this,(r=e,i=t,a=n,"string"==typeof s?s:s(r,i,a)))||this;var r,i,a}return r(e,o),e}(t=t||Error);n.prototype.name=t.name,n.prototype.code=e,i[e]=n}function h(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),2<n?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(e,t,n){var r,i,a,o,s,c,u,l,d,p,f;return"string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",d=e,p=" argument",(f===undefined||f>d.length)&&(f=d.length),s=d.substring(f-p.length,f)===p?"The ".concat(e," ").concat(r," ").concat(h(t,"type")):("number"!=typeof l&&(l=0),o=l+(u=".").length>(c=e).length||-1===c.indexOf(u,l)?"argument":"property",'The "'.concat(e,'" ').concat(o," ").concat(r," ").concat(h(t,"type"))),s+=". Received type ".concat(_(n))},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(l,e,d){"use strict";(function(e){var t=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};l.exports=s;var n=d(107),r=d(112);d(1)(s,n);for(var i=t(r.prototype),a=0;a<i.length;a++){var o=i[a];s.prototype[o]||(s.prototype[o]=r.prototype[o])}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),r.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,d(11))},function(e,t,n){"use strict";var l=n(2).Buffer;function r(e,t){this._block=l.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=l.from(e,t));for(var n=this._block,r=this._blockSize,i=e.length,a=this._len,o=0;o<i;){for(var s=a%r,c=Math.min(i-o,r-s),u=0;u<c;u++)n[s+u]=e[o+u];o+=c,(a+=c)%r==0&&this._update(n)}return this._len+=i,this},r.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,1+t),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n,r,i=8*this._len;i<=4294967295?this._block.writeUInt32BE(i,this._blockSize-4):(r=(i-(n=(4294967295&i)>>>0))/4294967296,this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)),this._update(this._block);var a=this._hash();return e?a.toString(e):a},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=r},,,,,,function(e,t,n){"use strict";var i=n(21),r=n(26);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}(t.BlockHash=a).prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},function(e,t,n){"use strict";var r=t;r.bignum=n(8),r.define=n(830).define,r.base=n(47),r.constants=n(126),r.decoders=n(835),r.encoders=n(837)},function(e,t,n){"use strict";var r=t;r.Reporter=n(832).Reporter,r.DecoderBuffer=n(125).DecoderBuffer,r.EncoderBuffer=n(125).EncoderBuffer,r.Node=n(833)},function(e,c,t){"use strict";c.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a=/^data:.+\,.+$/;function u(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function l(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var t=e,n=u(e);if(n){if(!n.path)return e;t=n.path}for(var r,i=c.isAbsolute(t),a=t.split(/\/+/),o=0,s=a.length-1;0<=s;s--)"."===(r=a[s])?a.splice(s,1):".."===r?o++:0<o&&(""===r?(a.splice(s+1,o),o=0):(a.splice(s,2),o--));return""===(t=a.join("/"))&&(t=i?"/":"."),n?(n.path=t,l(n)):t}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=u(t),r=u(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),l(n);if(n||t.match(a))return t;if(r&&!r.host&&!r.path)return r.host=t,l(r);var i="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,l(r)):i}c.urlParse=u,c.urlGenerate=l,c.normalize=o,c.join=s,c.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},c.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var r=!("__proto__"in Object.create(null));function i(e){return e}function d(e){if(e){var t=e.length;if(!(t<9)&&95===e.charCodeAt(t-1)&&95===e.charCodeAt(t-2)&&111===e.charCodeAt(t-3)&&116===e.charCodeAt(t-4)&&111===e.charCodeAt(t-5)&&114===e.charCodeAt(t-6)&&112===e.charCodeAt(t-7)&&95===e.charCodeAt(t-8)&&95===e.charCodeAt(t-9)){for(var n=t-10;0<=n;n--)if(36!==e.charCodeAt(n))return;return 1}}}function p(e,t){return e===t?0:null===e||null!==t&&t<e?1:-1}c.toSetString=r?i:function(e){return d(e)?"$"+e:e},c.fromSetString=r?i:function(e){return d(e)?e.slice(1):e},c.compareByOriginalPositions=function(e,t,n){var r=p(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:p(e.name,t.name)},c.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=p(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:p(e.name,t.name)},c.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=p(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:p(e.name,t.name)},c.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},c.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r,i=u(n);if(!i)throw new Error("sourceMapURL could not be parsed");!i.path||0<=(r=i.path.lastIndexOf("/"))&&(i.path=i.path.substring(0,r+1)),t=s(l(i),t)}return o(t)}},,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(19).randomBytes},function(e,t,n){"use strict";e.exports=n(19).createHash},function(e,t,n){"use strict";var r=n(8),i=n(16),B=i.getNAF,x=i.getJSF,d=i.assert;function a(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||0<n.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function o(e,t){this.curve=e,this.type=t,this.precomputed=null}(e.exports=a).prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(e,t){d(e.precomputed);var n=e._getDoubles(),r=B(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var a=[],o=0;o<r.length;o+=n.step){for(var s=0,t=o+n.step-1;o<=t;t--)s=(s<<1)+r[t];a.push(s)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),l=i;0<l;l--){for(o=0;o<a.length;o++){(s=a[o])===l?u=u.mixedAdd(n.points[o]):s===-l&&(u=u.mixedAdd(n.points[o].neg()))}c=c.add(u)}return c.toP()},a.prototype._wnafMul=function(e,t){for(var n=e._getNAFPoints(4),r=n.wnd,i=n.points,a=B(t,r,this._bitLength),o=this.jpoint(null,null,null),s=a.length-1;0<=s;s--){for(t=0;0<=s&&0===a[s];s--)t++;if(0<=s&&t++,o=o.dblp(t),s<0)break;var c=a[s];d(0!==c),o="affine"===e.type?0<c?o.mixedAdd(i[c-1>>1]):o.mixedAdd(i[-c-1>>1].neg()):0<c?o.add(i[c-1>>1]):o.add(i[-c-1>>1].neg())}return"affine"===e.type?o.toP():o},a.prototype._wnafMulAdd=function(e,t,n,r,i){for(var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,c=0,u=0;u<r;u++){var l=(T=t[u])._getNAFPoints(e);a[u]=l.wnd,o[u]=l.points}for(u=r-1;1<=u;u-=2){var d=u-1,p=u;if(1===a[d]&&1===a[p]){var f=[t[d],null,null,t[p]];0===t[d].y.cmp(t[p].y)?(f[1]=t[d].add(t[p]),f[2]=t[d].toJ().mixedAdd(t[p].neg())):0===t[d].y.cmp(t[p].y.redNeg())?(f[1]=t[d].toJ().mixedAdd(t[p]),f[2]=t[d].add(t[p].neg())):(f[1]=t[d].toJ().mixedAdd(t[p]),f[2]=t[d].toJ().mixedAdd(t[p].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],h=x(n[d],n[p]),c=Math.max(h[0].length,c);s[d]=new Array(c),s[p]=new Array(c);for(var g=0;g<c;g++){var m=0|h[0][g],y=0|h[1][g];s[d][g]=_[3*(1+m)+(1+y)],s[p][g]=0,o[d]=f}}else s[d]=B(n[d],a[d],this._bitLength),s[p]=B(n[p],a[p],this._bitLength),c=Math.max(s[d].length,c),c=Math.max(s[p].length,c)}for(var b=this.jpoint(null,null,null),v=this._wnafT4,u=c;0<=u;u--){for(var E=0;0<=u;){for(var I=!0,g=0;g<r;g++)v[g]=0|s[g][u],0!==v[g]&&(I=!1);if(!I)break;E++,u--}if(0<=u&&E++,b=b.dblp(E),u<0)break;for(g=0;g<r;g++){var T,C=v[g];0!==C&&(0<C?T=o[g][C-1>>1]:C<0&&(T=o[g][-C-1>>1].neg()),b="affine"===T.type?b.mixedAdd(T):b.add(T))}}for(u=0;u<r;u++)o[u]=null;return i?b:b.toP()},(a.BasePoint=o).prototype.eq=function(){throw new Error("Not implemented")},o.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?d(e[e.length-1]%2==0):7===e[0]&&d(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},o.prototype.encodeCompressed=function(e){return this.encode(e,!0)},o.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},o.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},o.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},o.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},o.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},o.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1==n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},o.prototype._getBeta=function(){return null},o.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},,,,,,,function(n,e,t){(function(e){var t=function(e){return e&&e.Math==Math&&e};n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}).call(this,t(10))},,,,,function(lg,e,dg){"use strict";(function(O,R,H,W){function zb(e){return zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function zb(t){return typeof t}:function zb(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zb(e)}function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var r,e,t,i,y,a,o,s,c,u,l,d,p,f,_,h,g,b,Ub,Kb,m,Zb,v,E,Xb,qb,I,T,C,B,x,S,N,D,Je,k,A,w,V,P,L,M,F,j,me,G,Y,J,z,U,K,Ne,Z,X,q,Q,$,ee,te,ne,re,ie,ae,Mn,oe,se,ce,et,tt,ue,le,de,pe,fe,_e,he,ge,ye,be,ve,Ee,Ie,Te,Ce,Be,xe,Se,De,ke,Ae,we,Ve,Pe,Le,Me,Fe,Oe,Re,He,je,We,Ge,Ye,ze,Ue,Ke,Ze,Xe,qe,Qe,$e,nt,rt,it,at,ot,st,ct,ut,lt,dt,pt,ft,_t,ht,gt,mt,yt,bt,vt,Et,It,Tt,Ct,Bt,xt,St,Nt,Dt,kt,At,wt,Vt,Pt,Lt,Mt,Ft,Ot,Rt,Ht,jt,Wt,Gt,Yt,Jt,zt,Ut,Kt,Zt,Xt,qt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,un,ln,dn,pn,fn,_n,hn,gn,mn,yn,bn,vn,En,In,Tn,Cn,Bn,xn,Sn,Nn,Dn,kn,An,wn,Vn,Pn,Ln,Fn,On,Rn,Hn,jn,Wn,Gn,Yn,Jn,zn,Un,Kn,Zn,Xn,qn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,ur,lr,dr,pr,fr,_r,hr,gr,mr,yr,br,vr,Er,Ir,Tr,Cr,Br,xr,Sr,Nr,Dr,kr,Ar,wr,Vr,Pr,Lr,Mr,Fr,Or,Rr,Hr,jr,Wr,Gr,Yr,Jr,zr,Ur,Kr,Zr,Xr,qr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,ui,li,di,pi,fi,_i,hi,gi,mi,yi,bi,vi,Ei,Ii,Ti,Ci,Bi,xi,Si,Ni,Di,ki,Ai,wi,Vi,Pi,Li,Mi,Fi,Oi,Ri,Hi,ji,Wi,Gi,Yi,Ji,zi,Ui,Ki,Zi,Xi,qi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,ua,la,da,pa,fa,_a,ha,ga,ma,ya,ba,va,Ea,Ia,Ta,Ca,Ba,xa,Sa,Na,Da,ka,Aa,wa,Va,Pa,La,Ma,Fa,Oa,Ra,Ha,ja,Wa,Ga,Ya,Ja,za,Ua,Ka,Za,Xa,qa,Qa,$a,eo,to,no,ro,io,ao,Qb=function(){return(Qb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},$b=function(n,r){var i,a,o,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},e={next:t(0),"throw":t(1),"return":t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(o=2&e[0]?a["return"]:e[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,e[1])).done)return o;switch(a=0,o&&(e=[2&e[0],o.value]),e[0]){case 0:case 1:o=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,a=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!o||e[1]>o[0]&&e[1]<o[3])){s.label=e[1];break}if(6===e[0]&&s.label<o[1]){s.label=o[1],o=e;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(e);break}o[2]&&s.ops.pop(),s.trys.pop();continue}e=r.call(n,s)}catch(t){e=[6,t],a=0}finally{i=o=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([t,e])}}},oo=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},so=(r=function(e,t){return(r=Object.setPrototypeOf||n({},[])instanceof Array&&function(e,t){!function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&e[i]===undefined&&Object.defineProperty(e,i,a)}}(e,t)}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function co(e,t,n){var r=0;return{enter:function(){1==++r&&uo(t)},exit:function(){0==--r?(uo(n),lo(e,t,n)):r<0&&a.Debug.fail("enter/exit count does not match.")}}}function uo(e){d&&(c.set(e,a.timestamp()),s.set(e,(s.get(e)||0)+1),l(e))}function lo(e,t,n){var r,i;d&&(r=n&&c.get(n)||a.timestamp(),i=t&&c.get(t)||p,u.set(e,(u.get(e)||0)+(r-i)))}function po(e,t,n,r,i){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i}}function fo(e){return e.start+e.length}function _o(e){return 0===e.length}function ho(e,t){var n=mo(e,t);return n&&0===n.length?undefined:n}function go(e,t,n,r){return n<=e+t&&e<=n+r}function mo(e,t){var n=Math.max(e.start,t.start),r=Math.min(fo(e),fo(t));return n<=r?bo(n,r):undefined}function yo(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function bo(e,t){return yo(e,t-e)}function vo(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Eo(e){return!!h.isBindingPattern(e)&&h.every(e.elements,Io)}function Io(e){return!!h.isOmittedExpression(e)||Eo(e.name)}function To(e){for(var t=e.parent;h.isBindingElement(t.parent);)t=t.parent.parent;return t.parent}function Co(e,t){h.isBindingElement(e)&&(e=To(e));var n=t(e);return 238===e.kind&&(e=e.parent),e&&239===e.kind&&(n|=t(e),e=e.parent),e&&220===e.kind&&(n|=t(e)),n}function Bo(e,t){if(e)for(;e.original!==undefined;)e=e.original;return!t||t(e)?e:undefined}function xo(e){return 0==(8&e.flags)}function So(e){var t=e;return 3<=t.length&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function No(e){var t=Ao(e);return t&&h.isIdentifier(t)?t:undefined}function Do(e){return e.name||function(e){var t=e.parent.parent;if(!t)return undefined;if(h.isDeclaration(t))return No(t);switch(t.kind){case 220:if(t.declarationList&&t.declarationList.declarations[0])return No(t.declarationList.declarations[0]);break;case 222:var n=t.expression;switch(n.kind){case 190:return n.name;case 191:var r=n.argumentExpression;if(h.isIdentifier(r))return r}break;case 196:return No(t.expression);case 234:if(h.isDeclaration(t.statement)||h.isExpression(t.statement))return No(t.statement)}}(e)}function ko(e){switch(e.kind){case 73:return e;case 311:case 305:var t=e.name;if(149===t.kind)return t.right;break;case 192:case 205:var n=e;switch(h.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return n.left.name;case 7:case 8:case 9:return n.arguments[1];default:return undefined}case 310:return Do(e);case 255:var r=e.expression;return h.isIdentifier(r)?r:undefined}return e.name}function Ao(e){return e===undefined?undefined:ko(e)||(h.isFunctionExpression(e)||h.isClassExpression(e)?function(e){{if(!e.parent)return undefined;if(h.isPropertyAssignment(e.parent)||h.isBindingElement(e.parent))return e.parent.name;if(h.isBinaryExpression(e.parent)&&e===e.parent.right){if(h.isIdentifier(e.parent.left))return e.parent.left;if(h.isPropertyAccessExpression(e.parent.left))return e.parent.left.name}}}(e):undefined)}function wo(e){if(e.name){if(h.isIdentifier(e.name)){var t=e.name.escapedText;return Mo(e.parent).filter(function(e){return h.isJSDocParameterTag(e)&&h.isIdentifier(e.name)&&e.name.escapedText===t})}var n=e.parent.parameters.indexOf(e);h.Debug.assert(-1<n,"Parameters should always be in their parents' parameter list");var r=Mo(e.parent).filter(h.isJSDocParameterTag);if(n<r.length)return[r[n]]}return h.emptyArray}function Vo(e){return Fo(e,h.isJSDocReturnTag)}function Po(e){var t=Fo(e,h.isJSDocTypeTag);return t&&t.typeExpression&&t.typeExpression.type?t:undefined}function Lo(e){var t=Fo(e,h.isJSDocTypeTag);return!t&&h.isParameter(e)&&(t=h.find(wo(e),function(e){return!!e.typeExpression})),t&&t.typeExpression&&t.typeExpression.type}function Mo(e){var t,n=e.jsDocCache;return n===undefined&&(t=h.getJSDocCommentsAndTags(e),h.Debug.assert(t.length<2||t[0]!==t[1]),e.jsDocCache=n=h.flatMap(t,function(e){return h.isJSDoc(e)?e.tags:e})),n}function Fo(e,t){return h.find(Mo(e),t)}function Oo(e){return 73===e.kind}function Ro(e){return 165===e.kind}function Ho(e){switch(e.kind){case 282:case 283:return!0;default:return!1}}function ev(e){return e.id||(e.id=E,E++),e.id}function tv(e){return e.id||(e.id=v,v++),e.id}function nv(e,t){var n=Ub.getModuleInstanceState(e);return 1===n||t&&2===n}function rv(e){switch(e.parent.kind){case 254:case 258:return Ub.isIdentifier(e);default:return Ub.isDeclarationName(e)}}function iv(e){switch(e.kind){case 251:case 249:case 252:case 254:return!0;case 73:return 254===e.parent.kind;default:return!1}}function jo(e,t,n){if(I.isComputedPropertyName(t))return I.setTextRange(I.createElementAccess(e,t.expression),n);var r=I.setTextRange(I.isIdentifier(t)?I.createPropertyAccess(e,t):I.createElementAccess(e,t),t);return I.getOrCreateEmitNode(r).flags|=64,r}function Wo(e,t){var n=I.createIdentifier(e||"React");return n.flags&=-9,n.parent=I.getParseTreeNode(t),n}function Go(e,t,n){return e?function i(e,t){if(I.isQualifiedName(e)){var n=i(e.left,t),r=I.createIdentifier(I.idText(e.right));return r.escapedText=e.right.escapedText,I.createPropertyAccess(n,r)}return Wo(I.idText(e),t)}(e,n):I.createPropertyAccess(Wo(t,n),"createElement")}function Yo(e){return I.setEmitFlags(I.createIdentifier(e),4098)}function Jo(e,t){var n=I.skipParentheses(e);switch(n.kind){case 73:return t;case 101:case 8:case 9:case 10:return;case 188:return 0===n.elements.length?void 0:1;case 189:return 0<n.properties.length;default:return 1}}function zo(e){return I.isIdentifier(e)?I.createLiteral(e):I.isComputedPropertyName(e)?I.getMutableClone(e.expression):I.getMutableClone(e)}function Uo(e,t,n){return Ko(e,t,n,8192)}function Ko(e,t,n,r){void 0===r&&(r=0);var i=I.getNameOfDeclaration(e);if(i&&I.isIdentifier(i)&&!I.isGeneratedIdentifier(i)){var a=I.getMutableClone(i);return r|=I.getEmitFlags(i),n||(r|=48),t||(r|=1536),r&&I.setEmitFlags(a,r),a}return I.getGeneratedNameForNode(e)}function Zo(e,t,n,r){var i=I.createPropertyAccess(e,I.nodeIsSynthesized(t)?t:I.getSynthesizedClone(t));I.setTextRange(i,t);var a=0;return r||(a|=48),n||(a|=1536),a&&I.setEmitFlags(i,a),i}function Xo(e){return I.isStringLiteral(e.expression)&&"use strict"===e.expression.text}function qo(e,t,n){I.Debug.assert(0===e.length,"Prologue directives should be at the first statement in the target statements array");for(var r=!1,i=0,a=t.length;i<a;){var o=t[i];if(!I.isPrologueDirective(o))break;Xo(o)&&(r=!0),e.push(o),i++}return n&&!r&&e.push(ds(I.createStatement(I.createLiteral("use strict")))),i}function Qo(e,t,n,r){for(var i=t.length;n!==undefined&&n<i;){var a=t[n];if(!(1048576&I.getEmitFlags(a)))break;I.append(e,r?I.visitNode(a,r,I.isStatement):a),n++}return n}function $o(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(!I.isPrologueDirective(r))break;if(Xo(r))return r}return undefined}function es(e){if(e=I.skipPartiallyEmittedExpressions(e),I.isLiteralKind(e.kind))return e.kind;if(205!==e.kind||38!==e.operatorToken.kind)return 0;if(e.cachedLiteralKind!==undefined)return e.cachedLiteralKind;var t=es(e.left),n=I.isLiteralKind(t)&&t===es(e.right)?t:0;return e.cachedLiteralKind=n}function ts(e){var t=I.skipPartiallyEmittedExpressions(e);return I.isLeftHandSideExpression(t)&&(193!==t.kind||t.arguments)?e:I.setTextRange(I.createParen(e),e)}function ns(e){var t=I.skipPartiallyEmittedExpressions(e),n=I.getExpressionPrecedence(t);return I.getOperatorPrecedence(205,27)<n?e:I.setTextRange(I.createParen(e),e)}function rs(e){return 176===e.kind?I.createParenthesizedType(e):e}function is(e){switch(e.kind){case 174:case 175:case 166:case 167:return I.createParenthesizedType(e)}return rs(e)}function as(e,t){for(;;){switch(e.kind){case 204:e=e.operand;continue;case 205:e=e.left;continue;case 206:e=e.condition;continue;case 194:e=e.tag;continue;case 192:if(t)return e;case 213:case 191:case 190:case 214:case 314:e=e.expression;continue}return e}}function os(e){return 205===e.kind&&27===e.operatorToken.kind||315===e.kind}function ss(e,t){switch(void 0===t&&(t=7),e.kind){case 196:return 0!=(1&t);case 195:case 213:case 214:return 0!=(2&t);case 314:return 0!=(4&t)}return!1}function cs(e,t){var n;for(void 0===t&&(t=7);n=e,1&t&&(e=I.skipParentheses(e)),2&t&&(e=us(e)),4&t&&(e=I.skipPartiallyEmittedExpressions(e)),n!==e;);return e}function us(e){for(;I.isAssertionExpression(e)||214===e.kind;)e=e.expression;return e}function ls(e,t,n){return void 0===n&&(n=7),e&&ss(e,n)&&(!(196===(r=e).kind&&I.nodeIsSynthesized(r)&&I.nodeIsSynthesized(I.getSourceMapRange(r))&&I.nodeIsSynthesized(I.getCommentRange(r)))||I.some(I.getSyntheticLeadingComments(r))||I.some(I.getSyntheticTrailingComments(r)))?function(e,t){switch(e.kind){case 196:return I.updateParen(e,t);case 195:return I.updateTypeAssertion(e,e.type,t);case 213:return I.updateAsExpression(e,t,e.type);case 214:return I.updateNonNullExpression(e,t);case 314:return I.updatePartiallyEmittedExpression(e,t)}}(e,ls(e.expression,t)):t;var r}function ds(e){return I.setStartsOnNewLine(e,!0)}function ps(e){var t=I.getOriginalNode(e,I.isSourceFile),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function fs(e,t,n){return e?e.moduleName?I.createLiteral(e.moduleName):e.isDeclarationFile||!n.out&&!n.outFile?undefined:I.createLiteral(I.getExternalModuleNameFromPath(t,e.fileName)):undefined}function _s(e){if(I.isDeclarationBindingElement(e))return e.name;if(I.isObjectLiteralElementLike(e)){switch(e.kind){case 276:return _s(e.initializer);case 277:return e.name;case 278:return _s(e.expression)}return undefined}return I.isAssignmentExpression(e,!0)?_s(e.left):I.isSpreadElement(e)?_s(e.expression):e}function hs(e){var t=e.kind;return 10===t||8===t}function gs(e){if(I.isBindingElement(e)){if(e.dotDotDotToken)return I.Debug.assertNode(e.name,I.isIdentifier),I.setOriginalNode(I.setTextRange(I.createSpread(e.name),e),e);var t=Es(e.name);return e.initializer?I.setOriginalNode(I.setTextRange(I.createAssignment(t,e.initializer),e),e):t}return I.Debug.assertNode(e,I.isExpression),e}function ms(e){if(I.isBindingElement(e)){if(e.dotDotDotToken)return I.Debug.assertNode(e.name,I.isIdentifier),I.setOriginalNode(I.setTextRange(I.createSpreadAssignment(e.name),e),e);if(e.propertyName){var t=Es(e.name);return I.setOriginalNode(I.setTextRange(I.createPropertyAssignment(e.propertyName,e.initializer?I.createAssignment(t,e.initializer):t),e),e)}return I.Debug.assertNode(e.name,I.isIdentifier),I.setOriginalNode(I.setTextRange(I.createShorthandPropertyAssignment(e.name,e.initializer),e),e)}return I.Debug.assertNode(e,I.isObjectLiteralElementLike),e}function ys(e){switch(e.kind){case 186:case 188:return vs(e);case 185:case 189:return bs(e)}}function bs(e){return I.isObjectBindingPattern(e)?I.setOriginalNode(I.setTextRange(I.createObjectLiteral(I.map(e.elements,ms)),e),e):(I.Debug.assertNode(e,I.isObjectLiteralExpression),e)}function vs(e){return I.isArrayBindingPattern(e)?I.setOriginalNode(I.setTextRange(I.createArrayLiteral(I.map(e.elements,gs)),e),e):(I.Debug.assertNode(e,I.isArrayLiteralExpression),e)}function Es(e){return I.isBindingPattern(e)?ys(e):(I.Debug.assertNode(e,I.isExpression),e)}function Is(e,t,n,r){if(e===undefined||t===undefined)return e;C.aggregateTransformFlags(e);var i,a=t(e);return a===e?e:a===undefined?undefined:(i=C.isArray(a)?(r||function(e){return C.Debug.assert(e.length<=1,"Too many nodes written to output."),C.singleOrUndefined(e)})(a):a,C.Debug.assertNode(i,n),C.aggregateTransformFlags(i),i)}function Ts(e,t,n,r,i){if(e===undefined||t===undefined)return e;var a,o=e.length;(r===undefined||r<0)&&(r=0),(i===undefined||o-r<i)&&(i=o-r),(0<r||i<o)&&(a=C.createNodeArray([],e.hasTrailingComma&&r+i===o));for(var s=0;s<i;s++){var c=e[s+r];C.aggregateTransformFlags(c);var u=c!==undefined?t(c):undefined;if((a!==undefined||u===undefined||u!==c)&&(a===undefined&&(a=C.createNodeArray(e.slice(0,s),e.hasTrailingComma),C.setTextRange(a,e)),u))if(C.isArray(u))for(var l=0,d=u;l<d.length;l++){var p=d[l];C.Debug.assertNode(p,n),C.aggregateTransformFlags(p),a.push(p)}else C.Debug.assertNode(u,n),C.aggregateTransformFlags(u),a.push(u)}return a||e}function Cs(e,t,n,r,i){n.startLexicalEnvironment(),e=Ts(e,t,C.isStatement,r),i&&!C.startsWithUseStrict(e)&&(e=C.setTextRange(C.createNodeArray([C.createExpressionStatement(C.createLiteral("use strict"))].concat(e)),e));var a=n.endLexicalEnvironment();return C.setTextRange(C.createNodeArray(C.concatenate(a,e)),e)}function Bs(e,t,n,r){void 0===r&&(r=Ts),n.startLexicalEnvironment();var i=r(e,t,C.isParameterDeclaration);return n.suspendLexicalEnvironment(),i}function xs(e,t,n){n.resumeLexicalEnvironment();var r=Is(e,t,C.isConciseBody),i=n.endLexicalEnvironment();if(C.some(i)){var a=C.convertToFunctionBody(r),o=C.mergeLexicalEnvironment(a.statements,i);return C.updateBlock(a,o)}return r}function Ss(e,t,n){return e?t(n,e):n}function Ns(e,t,n){return e?t(n,e):n}function Ds(e,t,n,r){if(e===undefined)return t;var i=r?Ns:x.reduceLeft,a=r||n,o=e.kind;if(0<o&&o<=148)return t;if(164<=o&&o<=183)return t;var s=t;switch(e.kind){case 218:case 221:case 211:case 237:case 313:break;case 149:s=Ss(e.left,n,s),s=Ss(e.right,n,s);break;case 150:s=Ss(e.expression,n,s);break;case 152:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=Ss(e.type,n,s),s=Ss(e.initializer,n,s);break;case 153:s=Ss(e.expression,n,s);break;case 154:s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=Ss(e.questionToken,n,s),s=Ss(e.type,n,s),s=Ss(e.initializer,n,s);break;case 155:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=Ss(e.type,n,s),s=Ss(e.initializer,n,s);break;case 157:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.typeParameters,a,s),s=i(e.parameters,a,s),s=Ss(e.type,n,s),s=Ss(e.body,n,s);break;case 158:s=i(e.modifiers,a,s),s=i(e.parameters,a,s),s=Ss(e.body,n,s);break;case 159:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.parameters,a,s),s=Ss(e.type,n,s),s=Ss(e.body,n,s);break;case 160:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.parameters,a,s),s=Ss(e.body,n,s);break;case 185:case 186:s=i(e.elements,a,s);break;case 187:s=Ss(e.propertyName,n,s),s=Ss(e.name,n,s),s=Ss(e.initializer,n,s);break;case 188:s=i(e.elements,a,s);break;case 189:s=i(e.properties,a,s);break;case 190:s=Ss(e.expression,n,s),s=Ss(e.name,n,s);break;case 191:s=Ss(e.expression,n,s),s=Ss(e.argumentExpression,n,s);break;case 192:case 193:s=Ss(e.expression,n,s),s=i(e.typeArguments,a,s),s=i(e.arguments,a,s);break;case 194:s=Ss(e.tag,n,s),s=i(e.typeArguments,a,s),s=Ss(e.template,n,s);break;case 195:s=Ss(e.type,n,s),s=Ss(e.expression,n,s);break;case 197:s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.typeParameters,a,s),s=i(e.parameters,a,s),s=Ss(e.type,n,s),s=Ss(e.body,n,s);break;case 198:s=i(e.modifiers,a,s),s=i(e.typeParameters,a,s),s=i(e.parameters,a,s),s=Ss(e.type,n,s),s=Ss(e.body,n,s);break;case 196:case 199:case 200:case 201:case 202:case 208:case 209:case 214:s=Ss(e.expression,n,s);break;case 203:case 204:s=Ss(e.operand,n,s);break;case 205:s=Ss(e.left,n,s),s=Ss(e.right,n,s);break;case 206:s=Ss(e.condition,n,s),s=Ss(e.whenTrue,n,s),s=Ss(e.whenFalse,n,s);break;case 207:s=Ss(e.head,n,s),s=i(e.templateSpans,a,s);break;case 210:s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.typeParameters,a,s),s=i(e.heritageClauses,a,s),s=i(e.members,a,s);break;case 212:s=Ss(e.expression,n,s),s=i(e.typeArguments,a,s);break;case 213:s=Ss(e.expression,n,s),s=Ss(e.type,n,s);break;case 217:s=Ss(e.expression,n,s),s=Ss(e.literal,n,s);break;case 219:s=i(e.statements,a,s);break;case 220:s=i(e.modifiers,a,s),s=Ss(e.declarationList,n,s);break;case 222:s=Ss(e.expression,n,s);break;case 223:s=Ss(e.expression,n,s),s=Ss(e.thenStatement,n,s),s=Ss(e.elseStatement,n,s);break;case 224:s=Ss(e.statement,n,s),s=Ss(e.expression,n,s);break;case 225:case 232:s=Ss(e.expression,n,s),s=Ss(e.statement,n,s);break;case 226:s=Ss(e.initializer,n,s),s=Ss(e.condition,n,s),s=Ss(e.incrementor,n,s),s=Ss(e.statement,n,s);break;case 227:case 228:s=Ss(e.initializer,n,s),s=Ss(e.expression,n,s),s=Ss(e.statement,n,s);break;case 231:case 235:s=Ss(e.expression,n,s);break;case 233:s=Ss(e.expression,n,s),s=Ss(e.caseBlock,n,s);break;case 234:s=Ss(e.label,n,s),s=Ss(e.statement,n,s);break;case 236:s=Ss(e.tryBlock,n,s),s=Ss(e.catchClause,n,s),s=Ss(e.finallyBlock,n,s);break;case 238:s=Ss(e.name,n,s),s=Ss(e.type,n,s),s=Ss(e.initializer,n,s);break;case 239:s=i(e.declarations,a,s);break;case 240:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.typeParameters,a,s),s=i(e.parameters,a,s),s=Ss(e.type,n,s),s=Ss(e.body,n,s);break;case 241:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.typeParameters,a,s),s=i(e.heritageClauses,a,s),s=i(e.members,a,s);break;case 244:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=i(e.members,a,s);break;case 245:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=Ss(e.body,n,s);break;case 246:s=i(e.statements,a,s);break;case 247:s=i(e.clauses,a,s);break;case 249:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.name,n,s),s=Ss(e.moduleReference,n,s);break;case 250:s=i(e.decorators,a,s),s=i(e.modifiers,a,s),s=Ss(e.importClause,n,s),s=Ss(e.moduleSpecifier,n,s);break;case 251:s=Ss(e.name,n,s),s=Ss(e.namedBindings,n,s);break;case 252:s=Ss(e.name,n,s);break;case 253:case 257:s=i(e.elements,a,s);break;case 254:case 258:s=Ss(e.propertyName,n,s),s=Ss(e.name,n,s);break;case 255:s=x.reduceLeft(e.decorators,n,s),s=x.reduceLeft(e.modifiers,n,s),s=Ss(e.expression,n,s);break;case 256:s=x.reduceLeft(e.decorators,n,s),s=x.reduceLeft(e.modifiers,n,s),s=Ss(e.exportClause,n,s),s=Ss(e.moduleSpecifier,n,s);break;case 260:s=Ss(e.expression,n,s);break;case 261:s=Ss(e.openingElement,n,s),s=x.reduceLeft(e.children,n,s),s=Ss(e.closingElement,n,s);break;case 265:s=Ss(e.openingFragment,n,s),s=x.reduceLeft(e.children,n,s),s=Ss(e.closingFragment,n,s);break;case 262:case 263:s=Ss(e.tagName,n,s),s=i(e.typeArguments,n,s),s=Ss(e.attributes,n,s);break;case 269:s=i(e.properties,a,s);break;case 264:s=Ss(e.tagName,n,s);break;case 268:s=Ss(e.name,n,s),s=Ss(e.initializer,n,s);break;case 270:case 271:s=Ss(e.expression,n,s);break;case 272:s=Ss(e.expression,n,s);case 273:s=i(e.statements,a,s);break;case 274:s=i(e.types,a,s);break;case 275:s=Ss(e.variableDeclaration,n,s),s=Ss(e.block,n,s);break;case 276:s=Ss(e.name,n,s),s=Ss(e.initializer,n,s);break;case 277:s=Ss(e.name,n,s),s=Ss(e.objectAssignmentInitializer,n,s);break;case 278:s=Ss(e.expression,n,s);break;case 279:s=Ss(e.name,n,s),s=Ss(e.initializer,n,s);break;case 285:s=i(e.statements,a,s);break;case 314:s=Ss(e.expression,n,s);break;case 315:s=i(e.elements,a,s)}return s}function ks(e){if(e===undefined)return 0;if(536870912&e.transformFlags)return e.transformFlags&~x.getTransformFlagsSubtreeExclusions(e.kind);var t=function(e){if(x.hasModifier(e,2)||x.isTypeNode(e)&&212!==e.kind)return 0;return Ds(e,0,As,ws)}(e);return x.computeTransformFlagsForNode(e,t)}function As(e,t){return e|ks(t)}function ws(e,t){return e|function(e){if(e===undefined)return 0;for(var t=0,n=0,r=0,i=e;r<i.length;r++){var a=i[r];t|=ks(a),n|=-536870913&a.transformFlags}return e.transformFlags=536870912|n,t}(t)}function Vs(e){return(e=S.getOriginalNode(e))?S.getNodeId(e):0}function Ps(e){return e.propertyName!==undefined&&"default"===e.propertyName.escapedText}function Ls(e){if(S.getNamespaceDeclarationNode(e))return!0;var t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!S.isNamedImports(t))return!1;for(var n=0,r=0,i=t.elements;r<i.length;r++){Ps(i[r])&&n++}return 0<n&&n!==t.elements.length||!!(t.elements.length-n)&&S.isDefaultImport(e)}function Ms(e){return!Ls(e)&&(S.isDefaultImport(e)||!!e.importClause&&S.isNamedImports(e.importClause.namedBindings)&&(!!(t=e.importClause.namedBindings)&&!!S.isNamedImports(t)&&S.some(t.elements,Ps)));var t}function Fs(e,t,n){var r=e[t];return r?r.push(n):e[t]=r=[n],r}function Os(e,t){var n=N.getTargetOfBindingOrAssignmentElement(e);return N.isBindingOrAssignmentPattern(n)?function(e,t){for(var n=N.getElementsOfBindingOrAssignmentPattern(e),r=0,i=n;r<i.length;r++){if(Os(i[r],t))return 1}return}(n,t):N.isIdentifier(n)&&n.escapedText===t}function Rs(e,t,n,r,i){var a,o,s;i||(n=(a=N.visitNode(N.getInitializerOfBindingOrAssignmentElement(t),e.visitor,N.isExpression))?n?(s=a,o=Hs(e,o=n,!0,r),N.createConditional(N.createTypeCheck(o,"undefined"),s,o)):a:n||N.createVoidZero());var c=N.getTargetOfBindingOrAssignmentElement(t);N.isObjectBindingOrAssignmentPattern(c)?function(e,t,n,r,i){var a,o,s=N.getElementsOfBindingOrAssignmentPattern(n),c=s.length;{var u;1!==c&&(u=!N.isDeclarationBindingElement(t)||0!==c,r=Hs(e,r,u,i))}for(var l=0;l<c;l++){var d,p,f=s[l];N.getRestIndicatorOfBindingOrAssignmentElement(f)?l===c-1&&(a&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),r,i,n),a=undefined),p=function(e,t,n,r,i){e.requestEmitHelper(N.restHelper);for(var a=[],o=0,s=0;s<n.length-1;s++){var c,u=N.getPropertyNameOfBindingOrAssignmentElement(n[s]);u&&(N.isComputedPropertyName(u)?(c=r[o],o++,a.push(N.createConditional(N.createTypeCheck(c,"symbol"),c,N.createAdd(c,N.createLiteral(""))))):a.push(N.createLiteral(u)))}return N.createCall(N.getHelperName("__rest"),undefined,[t,N.setTextRange(N.createArrayLiteral(a),i)])}(e.context,r,s,o,n),Rs(e,f,p,f)):(d=N.getPropertyNameOfBindingOrAssignmentElement(f),!(1<=e.level)||12288&f.transformFlags||12288&N.getTargetOfBindingOrAssignmentElement(f).transformFlags||N.isComputedPropertyName(d)?(a&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),r,i,n),a=undefined),p=function(e,t,n){{if(N.isComputedPropertyName(n)){var r=Hs(e,N.visitNode(n.expression,e.visitor),!1,n);return N.createElementAccess(t,r)}if(N.isStringOrNumericLiteralLike(n))return(r=N.getSynthesizedClone(n)).text=r.text,N.createElementAccess(t,r);var i=N.createIdentifier(N.idText(n));return N.createPropertyAccess(t,i)}}(e,r,d),N.isComputedPropertyName(d)&&(o=N.append(o,p.argumentExpression)),Rs(e,f,p,f)):a=N.append(a,f))}a&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(a),r,i,n)}(e,t,c,n,r):N.isArrayBindingOrAssignmentPattern(c)?function(e,t,n,r,i){var a,o,s=N.getElementsOfBindingOrAssignmentPattern(n),c=s.length;{var u;e.level<1&&e.downlevelIteration?r=Hs(e,N.createReadHelper(e.context,r,0<c&&N.getRestIndicatorOfBindingOrAssignmentElement(s[c-1])?undefined:c,i),!1,i):(1!==c&&(e.level<1||0===c)||N.every(s,N.isOmittedExpression))&&(u=!N.isDeclarationBindingElement(t)||0!==c,r=Hs(e,r,u,i))}for(var l=0;l<c;l++){var d,p,f=s[l];if(1<=e.level){a=8192&f.transformFlags?(d=N.createTempVariable(undefined),e.hoistTempVariables&&e.context.hoistVariableDeclaration(d),o=N.append(o,[d,f]),N.append(a,e.createArrayBindingOrAssignmentElement(d))):N.append(a,f)}else{if(N.isOmittedExpression(f))continue;N.getRestIndicatorOfBindingOrAssignmentElement(f)?l===c-1&&(p=N.createArraySlice(r,l),Rs(e,f,p,f)):(p=N.createElementAccess(r,l),Rs(e,f,p,f))}}a&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(a),r,i,n);if(o)for(var _=0,h=o;_<h.length;_++){var g=h[_],m=g[0],f=g[1];Rs(e,f,m,f)}}(e,t,c,n,r):e.emitBindingOrAssignment(c,n,r,t)}function Hs(e,t,n,r){if(N.isIdentifier(t)&&n)return t;var i=N.createTempVariable(undefined);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(i),e.emitExpression(N.setTextRange(N.createAssignment(i,t),r))):e.emitBindingOrAssignment(i,t,r,undefined),i}function js(e){return N.Debug.assertEachNode(e,N.isArrayBindingElement),N.createArrayBindingPattern(e)}function Ws(e){return N.createArrayLiteral(N.map(e,N.convertToArrayAssignmentElement))}function Gs(e){return N.Debug.assertEachNode(e,N.isBindingElement),N.createObjectBindingPattern(e)}function Ys(e){return N.createObjectLiteral(N.map(e,N.convertToObjectAssignmentElement))}function Js(e){return N.createBindingElement(undefined,undefined,e)}function zs(e){return e}function Us(e,t,n,r,i,a){var o=[];return o.push(Je.createArrayLiteral(t,!0)),o.push(n),r&&(o.push(r),i&&o.push(i)),e.requestEmitHelper(Je.decorateHelper),Je.setTextRange(Je.createCall(Je.getHelperName("__decorate"),undefined,o),a)}function Ks(e,t,n){return e.requestEmitHelper(Je.metadataHelper),Je.createCall(Je.getHelperName("__metadata"),undefined,[Je.createLiteral(t),n])}function Zs(e,t,n){var i=0!=(4096&e.getNodeCheckFlags(t)),a=[];return n.forEach(function(e,t){var n=w.unescapeLeadingUnderscores(t),r=[];r.push(w.createPropertyAssignment("get",w.createArrowFunction(undefined,undefined,[],undefined,undefined,w.setEmitFlags(w.createPropertyAccess(w.setEmitFlags(w.createSuper(),4),n),4)))),i&&r.push(w.createPropertyAssignment("set",w.createArrowFunction(undefined,undefined,[w.createParameter(undefined,undefined,undefined,"v",undefined,undefined,undefined)],undefined,undefined,w.createAssignment(w.setEmitFlags(w.createPropertyAccess(w.setEmitFlags(w.createSuper(),4),n),4),w.createIdentifier("v"))))),a.push(w.createPropertyAssignment(n,w.createObjectLiteral(r)))}),w.createVariableStatement(undefined,w.createVariableDeclarationList([w.createVariableDeclaration(w.createFileLevelUniqueName("_super"),undefined,w.createCall(w.createPropertyAccess(w.createIdentifier("Object"),"create"),undefined,[w.createNull(),w.createObjectLiteral(a,!0)]))],2))}function Xs(e,t,n,r){e.requestEmitHelper(w.awaiterHelper);var i=w.createFunctionExpression(undefined,w.createToken(40),undefined,undefined,[],undefined,r);return(i.emitNode||(i.emitNode={})).flags|=786432,w.createCall(w.getHelperName("__awaiter"),undefined,[w.createThis(),t?w.createIdentifier("arguments"):w.createVoidZero(),n?w.createExpressionFromEntityName(n):w.createVoidZero(),i])}function qs(e,t){return 2<=e.getCompilerOptions().target?P.createCall(P.createPropertyAccess(P.createIdentifier("Object"),"assign"),undefined,t):(e.requestEmitHelper(P.assignHelper),P.createCall(P.getHelperName("__assign"),undefined,t))}function Qs(e,t){return e.requestEmitHelper(P.awaitHelper),P.createCall(P.getHelperName("__await"),undefined,[t])}function $s(e,t,n){return e.requestEmitHelper(P.asyncValues),P.setTextRange(P.createCall(P.getHelperName("__asyncValues"),undefined,[t]),n)}function ec(r){return ne.isVariableDeclaration(r)||ne.isPropertyDeclaration(r)||ne.isPropertySignature(r)||ne.isPropertyAccessExpression(r)||ne.isBindingElement(r)||ne.isConstructorDeclaration(r)?e:ne.isSetAccessor(r)||ne.isGetAccessor(r)?function(e){var t;t=160===r.kind?ne.hasModifier(r,32)?e.errorModuleName?ne.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?ne.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ne.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?2===e.accessibility?ne.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:r.name,typeName:r.name}}:ne.isConstructSignatureDeclaration(r)||ne.isCallSignatureDeclaration(r)||ne.isMethodDeclaration(r)||ne.isMethodSignature(r)||ne.isFunctionDeclaration(r)||ne.isIndexSignatureDeclaration(r)?function(e){var t;switch(r.kind){case 162:t=e.errorModuleName?ne.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ne.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 161:t=e.errorModuleName?ne.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ne.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 163:t=e.errorModuleName?ne.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ne.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:case 156:t=ne.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ne.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ne.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:241===r.parent.kind?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ne.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ne.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:e.errorModuleName?ne.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ne.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 240:t=e.errorModuleName?2===e.accessibility?ne.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ne.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ne.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return ne.Debug.fail("This is unknown kind for signature: "+r.kind)}return{diagnosticMessage:t,errorNode:r.name||r}}:ne.isParameter(r)?ne.isParameterPropertyDeclaration(r)&&ne.hasModifier(r.parent,8)?e:function(e){var t=function(e){switch(r.parent.kind){case 158:return e.errorModuleName?2===e.accessibility?ne.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 162:case 167:return e.errorModuleName?ne.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 161:return e.errorModuleName?ne.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 163:return e.errorModuleName?ne.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:case 156:return ne.hasModifier(r.parent,32)?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:241===r.parent.parent.kind?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?ne.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 240:case 166:return e.errorModuleName?2===e.accessibility?ne.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:return ne.Debug.fail("Unknown parent for parameter: "+ne.SyntaxKind[r.parent.kind])}}(e);return t!==undefined?{diagnosticMessage:t,errorNode:r,typeName:r.name}:undefined}:ne.isTypeParameterDeclaration(r)?function(){var e;switch(r.parent.kind){case 241:e=ne.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 242:e=ne.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 182:e=ne.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 167:case 162:e=ne.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 161:e=ne.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:case 156:e=ne.hasModifier(r.parent,32)?ne.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:241===r.parent.parent.kind?ne.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ne.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 166:case 240:e=ne.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 243:e=ne.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return ne.Debug.fail("This is unknown parent for type parameter: "+r.parent.kind)}return{diagnosticMessage:e,errorNode:r,typeName:r.name}}:ne.isExpressionWithTypeArguments(r)?function(){var e;e=241===r.parent.parent.kind?ne.isHeritageClause(r.parent)&&110===r.parent.token?ne.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:ne.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ne.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r,typeName:ne.getNameOfDeclaration(r.parent.parent)}}:ne.isImportEqualsDeclaration(r)?function(){return{diagnosticMessage:ne.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:r,typeName:r.name}}:ne.isTypeAliasDeclaration(r)?function(){return{diagnosticMessage:ne.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:r.type,typeName:r.name}}:ne.Debug.assertNever(r,"Attempted to set a declaration diagnostic context for unhandled node kind: "+ne.SyntaxKind[r.kind]);function e(e){var t,n=(t=e,238===r.kind||187===r.kind?t.errorModuleName?2===t.accessibility?ne.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:155===r.kind||190===r.kind||154===r.kind||152===r.kind&&ne.hasModifier(r.parent,8)?ne.hasModifier(r,32)?t.errorModuleName?2===t.accessibility?ne.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:241===r.parent.kind||152===r.kind?t.errorModuleName?2===t.accessibility?ne.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ne.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0);return n!==undefined?{diagnosticMessage:n,errorNode:r,typeName:r.name}:undefined}}function tc(r,i){return function(e){var t,n=r(e);return"function"==typeof n?i(n):(t=n,function(e){return re.isBundle(e)?t.transformBundle(e):t.transformSourceFile(e)})}}function nc(e){return tc(e,re.chainBundle)}function rc(e){return tc(e,re.identity)}function ic(e,t){return t}function ac(e,t,n){n(e,t)}function oc(e,t,n,r,i,a){void 0===r&&(r=!1);var o=Mn.isArray(n)?n:Mn.getSourceFilesToEmit(e,n),s=e.getCompilerOptions();if(s.outFile||s.out){var c=e.getPrependNodes();if(o.length||c.length){var u=Mn.createBundle(o,c);if(p=t(uc(u,e,r),u))return p}}else{if(!i)for(var l=0,d=o;l<d.length;l++){var p,f=d[l];if(p=t(uc(f,e,r),f))return p}if(a){var _=sc(e.getCompilerOptions());if(_)return t({buildInfoPath:_},undefined)}}}function sc(e){var t=e.configFilePath;if(!Mn.isIncrementalCompilation(e))return undefined;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;var n=e.outFile||e.out;if(n)i=Mn.removeFileExtension(n);else{if(!t)return undefined;var r=Mn.removeFileExtension(t),i=e.outDir?e.rootDir?Mn.resolvePath(e.outDir,Mn.getRelativePathFromDirectory(e.rootDir,r,!0)):Mn.combinePaths(e.outDir,Mn.getBaseFileName(r)):r}return i+".tsbuildinfo"}function cc(e,t){var n=e.outFile||e.out,r=e.emitDeclarationOnly?undefined:n,i=r&&lc(r,e),a=t||Mn.getEmitDeclarations(e)?Mn.removeFileExtension(n)+".d.ts":undefined;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:a,declarationMapPath:a&&Mn.getAreDeclarationMapsEnabled(e)?a+".map":undefined,buildInfoPath:sc(e)}}function uc(e,t,n){var r=t.getCompilerOptions();if(286===e.kind)return cc(r,n);var i=Mn.getOwnEmitOutputFilePath(e.fileName,t,dc(e,r)),a=Mn.isJsonSourceFile(e)&&0===Mn.comparePaths(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),o=r.emitDeclarationOnly||a?undefined:i,s=!o||Mn.isJsonSourceFile(e)?undefined:lc(o,r),c=Mn.isSourceFileJS(e),u=!n&&!Mn.getEmitDeclarations(r)||c?undefined:Mn.getDeclarationEmitOutputFilePath(e.fileName,t);return{jsFilePath:o,sourceMapFilePath:s,declarationFilePath:u,declarationMapPath:u&&Mn.getAreDeclarationMapsEnabled(r)?u+".map":undefined,buildInfoPath:undefined}}function lc(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":undefined}function dc(e,t){if(Mn.isJsonSourceFile(e))return".json";if(1===t.jsx)if(Mn.isSourceFileJS(e)){if(Mn.fileExtensionIs(e.fileName,".jsx"))return".jsx"}else if(1===e.languageVariant)return".jsx";return".js"}function pc(e,t,n,r){return r?Mn.resolvePath(r,Mn.getRelativePathFromDirectory((i=t).options.rootDir||Mn.getDirectoryPath(Mn.Debug.assertDefined(i.options.configFilePath)),e,n)):e;var i}function fc(e,t,n){return Mn.Debug.assert(!Mn.fileExtensionIs(e,".d.ts")&&Mn.hasTSFileExtension(e)),Mn.changeExtension(pc(e,t,n,t.options.declarationDir||t.options.outDir),".d.ts")}function _c(e,t,n){var r=Mn.fileExtensionIs(e,".json"),i=Mn.changeExtension(pc(e,t,n,t.options.outDir),r?".json":Mn.fileExtensionIs(e,".tsx")&&1===t.options.jsx?".jsx":".js");return r&&0===Mn.comparePaths(e,i,Mn.Debug.assertDefined(t.options.configFilePath),n)?undefined:i}function hc(f,h,s,e,_,t){var g,m,c=e.scriptTransformers,y=e.declarationTransformers,b=h.getCompilerOptions(),v=b.sourceMap||b.inlineSourceMap||Mn.getAreDeclarationMapsEnabled(b)?[]:undefined,u=b.listEmittedFiles?[]:undefined,E=Mn.createDiagnosticCollection(),I=Mn.getNewLineCharacter(b,function(){return h.getNewLine()}),T=Mn.createTextWriter(I),n=Mn.performance.createTimer("printTime","beforePrint","afterPrint"),r=n.enter,i=n.exit,C=!1;return r(),oc(h,function(e,t){var n=e.jsFilePath,r=e.sourceMapFilePath,i=e.declarationFilePath,a=e.declarationMapPath,o=e.buildInfoPath;o&&t&&Mn.isBundle(t)&&(g={commonSourceDirectory:h.getCommonSourceDirectory(),sourceFiles:t.sourceFiles.map(function(e){return e.fileName})});(function(e,t,n){if(!e||_||!t)return;if(t&&h.isEmitBlocked(t)||b.noEmit)return C=!0;var r=Mn.transformNodes(f,h,b,[e],c,!1),i=yc({removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:b.noEmitHelpers,module:b.module,target:b.target,sourceMap:b.sourceMap,inlineSourceMap:b.inlineSourceMap,inlineSources:b.inlineSources,extendedDiagnostics:b.extendedDiagnostics,writeBundleFileInfo:!!g},{hasGlobalName:f.hasGlobalName,onEmitNode:r.emitNodeWithNotification,substituteNode:r.substituteNode});Mn.Debug.assert(1===r.transformed.length,"Should only see one output from the transform"),x(t,n,r.transformed[0],i,b),r.dispose(),g&&(g.js=i.bundleFileInfo)})(t,n,r),function(e,t,n){if(!e||!t||Mn.isInJSFile(e))return;var r=Mn.isSourceFile(e)?[e]:e.sourceFiles,i=Mn.filter(r,Mn.isSourceFileNotJS),a=b.outFile||b.out?[Mn.createBundle(i,Mn.isSourceFile(e)?undefined:e.prepends)]:i;_&&!Mn.getEmitDeclarations(b)&&i.forEach(B);var o=Mn.transformNodes(f,h,b,a,y,!1);if(Mn.length(o.diagnostics))for(var s=0,c=o.diagnostics;s<c.length;s++){var u=c[s];E.add(u)}var l=yc({removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:!0,module:b.module,target:b.target,sourceMap:b.sourceMap,inlineSourceMap:b.inlineSourceMap,extendedDiagnostics:b.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!g,recordInternalSection:!!g},{hasGlobalName:f.hasGlobalName,onEmitNode:o.emitNodeWithNotification,substituteNode:o.substituteNode}),d=!!o.diagnostics&&!!o.diagnostics.length||!!h.isEmitBlocked(t)||!!b.noEmit;{var p;C=C||d,d&&!_||(Mn.Debug.assert(1===o.transformed.length,"Should only see one output from the decl transform"),x(t,n,o.transformed[0],l,{sourceMap:b.declarationMap,sourceRoot:b.sourceRoot,mapRoot:b.mapRoot,extendedDiagnostics:b.extendedDiagnostics}),_&&285===o.transformed[0].kind&&(p=o.transformed[0],m=p.exportedModulesFromDeclarationEmit))}o.dispose(),g&&(g.dts=l.bundleFileInfo)}(t,i,a),function(e,t){if(!t||s||C)return;var n=h.getProgramBuildInfo();if(!e&&!n)return;if(h.isEmitBlocked(t)||b.noEmit)return C=!0;Mn.writeFile(h,E,t,gc({bundle:e,program:n,version:Mn.version}),!1)}(g,o),!C&&u&&(_||(n&&u.push(n),r&&u.push(r),o&&u.push(o)),i&&u.push(i),a&&u.push(a))},Mn.getSourceFilesToEmit(h,s),_,t,!s),i(),{emitSkipped:C,diagnostics:E.getDiagnostics(),emittedFiles:u,sourceMaps:v,exportedModulesFromDeclarationEmit:m};function B(e){Mn.isExportAssignment(e)?73===e.expression.kind&&f.collectLinkedAliases(e.expression,!0):Mn.isExportSpecifier(e)?f.collectLinkedAliases(e.propertyName||e.name,!0):Mn.forEachChild(e,B)}function x(e,t,n,r,i){var a,o,s,c,u,l,d,p=286===n.kind?n:undefined,f=285===n.kind?n:undefined,_=p?p.sourceFiles:[f];u=n,!(c=i).sourceMap&&!c.inlineSourceMap||285===u.kind&&Mn.fileExtensionIs(u.fileName,".json")||(a=Mn.createSourceMapGenerator(h,Mn.getBaseFileName(Mn.normalizeSlashes(e)),(o=i,(s=Mn.normalizeSlashes(o.sourceRoot||""))?Mn.ensureTrailingDirectorySeparator(s):s),function(e,t,n){if(e.sourceRoot)return h.getCommonSourceDirectory();if(e.mapRoot){var r=Mn.normalizeSlashes(e.mapRoot);return n&&(r=Mn.getDirectoryPath(Mn.getSourceFilePathInNewDir(n.fileName,h,r))),0===Mn.getRootLength(r)&&(r=Mn.combinePaths(h.getCommonSourceDirectory(),r)),r}return Mn.getDirectoryPath(Mn.normalizePath(t))}(i,e,f),i)),p?r.writeBundle(p,T,a):r.writeFile(f,T,a),a?(v&&v.push({inputSourceFileNames:a.getSources(),sourceMap:a.toJSON()}),(l=function(e,t,n,r,i){if(e.inlineSourceMap){var a=t.toString();return"data:application/json;base64,"+Mn.base64encode(Mn.sys,a)}var o=Mn.getBaseFileName(Mn.normalizeSlashes(Mn.Debug.assertDefined(r)));if(e.mapRoot){var s=Mn.normalizeSlashes(e.mapRoot);return i&&(s=Mn.getDirectoryPath(Mn.getSourceFilePathInNewDir(i.fileName,h,s))),0===Mn.getRootLength(s)?(s=Mn.combinePaths(h.getCommonSourceDirectory(),s),Mn.getRelativePathToDirectoryOrUrl(Mn.getDirectoryPath(Mn.normalizePath(n)),Mn.combinePaths(s,o),h.getCurrentDirectory(),h.getCanonicalFileName,!0)):Mn.combinePaths(s,o)}return o}(i,a,e,t,f))&&(T.isAtStartOfLine()||T.rawWrite(I),T.writeComment("//# sourceMappingURL="+l)),t&&(d=a.toString(),Mn.writeFile(h,E,t,d,!1,_))):T.writeLine(),Mn.writeFile(h,E,e,T.getText(),!!b.emitBOM,_),T.clear()}}function gc(e){return JSON.stringify(e,undefined,2)}function mc(e){return JSON.parse(e)}function yc(_t,e){void 0===_t&&(_t={}),void 0===e&&(e={});var ht,r,n,o,t,i,a,s,gt,c,g,d,p,u,l,f=e.hasGlobalName,_=e.onEmitNode,h=void 0===_?Mn.noEmitNotification:_,m=e.substituteNode,mt=void 0===m?Mn.noEmitSubstitution:m,y=e.onBeforeEmitNodeArray,b=e.onAfterEmitNodeArray,v=e.onBeforeEmitToken,E=e.onAfterEmitToken,I=!!_t.extendedDiagnostics,T=Mn.getNewLineCharacter(_t),C=Mn.getEmitModuleKind(_t),B=Mn.createMap(),yt=function(e){gt.write(e)},bt=_t.writeBundleFileInfo?{sections:[]}:undefined,x=_t.recordInternalSection,S=0,N="text",D=!0,k=-1,A=-1,w=-1,V=-1,P=!1,L=!!_t.removeComments,M=Mn.performance.createTimerIf(I,"commentTime","beforeComment","afterComment"),F=M.enter,O=M.exit;return $(),{printNode:function(e,t,n){switch(e){case 0:Mn.Debug.assert(Mn.isSourceFile(t),"Expected a SourceFile node.");break;case 2:Mn.Debug.assert(Mn.isIdentifier(t),"Expected an Identifier node.");break;case 1:Mn.Debug.assert(Mn.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 285:return H(t);case 286:return R(t);case 287:return function(e){return function(e,t){var n=gt;Q(t,undefined),X(4,e,undefined),$(),gt=n}(e,K()),Z()}(t)}return j(e,t,n,K()),Z()},printList:function(e,t,n){return W(e,t,n,K()),Z()},printFile:H,printBundle:R,writeNode:j,writeList:W,writeFile:U,writeBundle:z,bundleFileInfo:bt};function R(e){return z(e,K(),undefined),Z()}function H(e){return U(e,K(),undefined),Z()}function j(e,t,n,r){var i=gt;Q(r,undefined),X(e,t,n),$(),gt=i}function W(e,t,n,r){var i=gt;Q(r,undefined),n&&q(n),sn(tt,t,e),$(),gt=i}function vt(){return gt.getTextPosWithWriteLine?gt.getTextPosWithWriteLine():gt.getTextPos()}function Et(e,t,n){var r=Mn.lastOrUndefined(bt.sections);r&&r.kind===n?r.end=t:bt.sections.push({pos:e,end:t,kind:n})}function G(e){if(x&&bt&&ht&&(Mn.isDeclaration(e)||Mn.isVariableStatement(e))&&Mn.isInternalDeclaration(e,ht)&&"internal"!==N){var t=N;return J(gt.getTextPos()),S=vt(),N="internal",t}return undefined}function Y(e){e&&(J(gt.getTextPos()),S=vt(),N=e)}function J(e){return S<e&&(Et(S,e,N),1)}function z(e,t,n){var r;g=!1;var i=gt;Q(t,n),he(e),_e(e),oe(e),function(e){pe(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[]);for(var t=0,n=e.prepends;t<n.length;t++){var r=n[t];if(Mn.isUnparsedSource(r)&&r.syntheticReferences)for(var i=0,a=r.syntheticReferences;i<a.length;i++){It(a[i]),gn()}}}(e);for(var a=0,o=e.prepends;a<o.length;a++){var s=o[a];gn();var c,u=gt.getTextPos(),l=bt&&bt.sections;l&&(bt.sections=[]),X(4,s,undefined),bt&&(c=bt.sections,bt.sections=l,s.oldFileOfCurrentEmit?(r=bt.sections).push.apply(r,c):(c.forEach(function(e){return Mn.Debug.assert(Mn.isBundleFileTextLike(e))}),bt.sections.push({pos:u,end:gt.getTextPos(),kind:"prepend",data:s.fileName,texts:c})))}S=vt();for(var d,p,f=0,_=e.sourceFiles;f<_.length;f++){var h=_[f];X(0,h,h)}bt&&e.sourceFiles.length&&J(gt.getTextPos())&&((d=function(e){for(var t,n=Mn.createMap(),r=0;r<e.sourceFiles.length;r++){for(var i=e.sourceFiles[r],a=void 0,o=0,s=0,c=i.statements;s<c.length;s++){var u=c[s];if(!Mn.isPrologueDirective(u))break;n.has(u.expression.text)||(n.set(u.expression.text,!0),(a=a||[]).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),o=o<u.end?u.end:o)}a&&(t=t||[]).push({file:r,text:i.text.substring(0,o),directives:a})}return t}(e))&&(bt.sources||(bt.sources={}),bt.sources.prologues=d),(p=function(e){var t;if(C===Mn.ModuleKind.None||_t.noEmitHelpers)return undefined;for(var n=Mn.createMap(),r=0,i=e.sourceFiles;r<i.length;r++){var a=i[r],o=Mn.getExternalHelpersModuleName(a)!==undefined,s=se(a);if(s)for(var c=0,u=s;c<u.length;c++){var l=u[c];l.scoped||o||n.get(l.name)||(n.set(l.name,!0),(t=t||[]).push(l.name))}}return t}(e))&&(bt.sources||(bt.sources={}),bt.sources.helpers=p)),$(),gt=i}function U(e,t,n){g=!0;var r=gt;Q(t,n),he(e),_e(e),X(0,e,e),$(),gt=r}function K(){return c=c||Mn.createTextWriter(T)}function Z(){var e=c.getText();return c.clear(),e}function X(e,t,n){n&&q(n),Ct(0,t)(e,t)}function q(e){ht=e,u=undefined,l=undefined,e&&Qe(e)}function Q(e,t){e&&_t.omitTrailingSemicolon&&(e=Mn.getTrailingSemicolonOmittingWriter(e)),d=t,D=!(gt=e)||!d}function $(){r=[],n=[],o=Mn.createMap(),t=[],i=0,a=[],ht=undefined,u=undefined,l=undefined,Q(undefined,undefined)}function ee(){return u=u||Mn.getLineStarts(ht)}function It(e){var t;e!==undefined&&(t=G(e),Ct(0,e)(4,e),Y(t))}function te(e){e!==undefined&&Ct(0,e)(2,e)}function Tt(e){e!==undefined&&Ct(0,e)(1,e)}function Ct(e,t){switch(e){case 0:if(h!==Mn.noEmitNotification)return re;case 1:if(mt!==Mn.noEmitSubstitution)return ae;case 2:if(!L&&285!==t.kind)return Le;case 3:if(!D&&285!==t.kind&&!Mn.isInJsonFile(t))return Ke;case 4:return ie;default:return Mn.Debug.assertNever(e)}}function ne(e,t){return Ct(e+1,t)}function re(e,t){var n=ne(0,t);h(e,t,n)}function ie(e,t){if(0===e)return function(e){gn();var t=e.statements;{if(Vn,0===t.length||!Mn.isPrologueDirective(t[0])||Mn.nodeIsSynthesized(t[0]))return void Vn(e,t,Ut)}Ut(e)}(Mn.cast(t,Mn.isSourceFile));if(2===e)return St(Mn.cast(t,Mn.isIdentifier));if(3===e)return It((n=Mn.cast(t,Mn.isTypeParameterDeclaration)).name),_n(),dn("in"),_n(),void It(n.constraint);var n,r,i,a,o,s,c,u,l,d,p,f,_,h,g,m,y,b,v,E,I,T,C,B,x,S,N,D,k,A,w,V,P,L,M,F,O,R,H,j,W,G,Y,J,z,U,K,Z,X,q,Q,$,ee,te,ne,re,ie,ae,oe,se,ce,ue,le,de,pe,fe,_e,he,ge,me,ye,be,ve,Ee,Ie,Te,Ce,Be,xe,Se,Ne,De,ke,Ae,we,Ve,Pe,Le,Me,Fe,Oe,Re,He,je,We,Ge,Ye,Je,ze,Ue,Ke,Ze,Xe,qe,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,ut,lt,dt,pt,ft;if(5===e)return Mn.Debug.assertNode(t,Mn.isEmptyStatement),kt(!0);if(4===e){if(Mn.isKeyword(t.kind))return vn(t,dn);switch(t.kind){case 15:case 16:case 17:return Bt(t);case 287:case 281:return function(e){for(var t=0,n=e.texts;t<n.length;t++){var r=n[t];gn(),It(r)}}(t);case 280:return xt(t);case 282:case 283:return ke=t,Ae=vt(),xt(ke),void(bt&&Et(Ae,gt.getTextPos(),282===ke.kind?"text":"internal"));case 284:return function(e){var t=vt();{var n;xt(e),bt&&((n=Mn.clone(e.section)).pos=t,n.end=gt.getTextPos(),bt.sections.push(n))}}(t);case 73:return St(t);case 149:return function(e){(73===e.kind?Tt:It)(e)}((De=t).left),un("."),void It(De.right);case 150:return Ne=t,un("["),Tt(Ne.expression),void un("]");case 151:return function(e){It(e.name),e.constraint&&(_n(),dn("extends"),_n(),It(e.constraint));e["default"]&&(_n(),pn("="),_n(),It(e["default"]))}(t);case 152:return function(e){tn(e,e.decorators),Zt(e,e.modifiers),It(e.dotDotDotToken),Kt(e.name,fn),It(e.questionToken),(e.parent&&295===e.parent.kind&&!e.name?It:Xt)(e.type);qt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}(t);case 153:return Se=t,un("@"),void Tt(Se.expression);case 154:return tn(xe=t,xe.decorators),Zt(xe,xe.modifiers),Kt(xe.name,hn),It(xe.questionToken),Xt(xe.type),void ln();case 155:return tn(Be=t,Be.decorators),Zt(Be,Be.modifiers),It(Be.name),It(Be.questionToken),It(Be.exclamationToken),Xt(Be.type),qt(Be.initializer,Be.type?Be.type.end:Be.questionToken?Be.questionToken.end:Be.name.end,Be),void ln();case 156:return Nn(Ce=t),tn(Ce,Ce.decorators),Zt(Ce,Ce.modifiers),It(Ce.name),It(Ce.questionToken),rn(Ce,Ce.typeParameters),an(Ce,Ce.parameters),Xt(Ce.type),ln(),void Dn(Ce);case 157:return tn(Te=t,Te.decorators),Zt(Te,Te.modifiers),It(Te.asteriskToken),It(Te.name),It(Te.questionToken),void Lt(Te,Mt);case 158:return Zt(Ie=t,Ie.modifiers),dn("constructor"),void Lt(Ie,Mt);case 159:case 160:return tn(Ee=t,Ee.decorators),Zt(Ee,Ee.modifiers),dn(159===Ee.kind?"get":"set"),_n(),It(Ee.name),void Lt(Ee,Mt);case 161:return Nn(ve=t),tn(ve,ve.decorators),Zt(ve,ve.modifiers),rn(ve,ve.typeParameters),an(ve,ve.parameters),Xt(ve.type),ln(),void Dn(ve);case 162:return Nn(be=t),tn(be,be.decorators),Zt(be,be.modifiers),dn("new"),_n(),rn(be,be.typeParameters),an(be,be.parameters),Xt(be.type),ln(),void Dn(be);case 163:return tn(ye=t,ye.decorators),Zt(ye,ye.modifiers),function(e,t){sn(e,t,8848)}(ye,ye.parameters),Xt(ye.type),void ln();case 164:return It((me=t).parameterName),_n(),dn("is"),_n(),void It(me.type);case 165:return It((ge=t).typeName),void nn(ge,ge.typeArguments);case 166:return Nn(he=t),rn(he,he.typeParameters),on(he,he.parameters),_n(),un("=>"),_n(),It(he.type),void Dn(he);case 295:return _e=t,dn("function"),an(_e,_e.parameters),un(":"),void It(_e.type);case 167:return Nn(fe=t),dn("new"),_n(),rn(fe,fe.typeParameters),an(fe,fe.parameters),_n(),un("=>"),_n(),It(fe.type),void Dn(fe);case 168:return pe=t,dn("typeof"),_n(),void It(pe.exprName);case 169:return function(e){un("{");var t=1&Mn.getEmitFlags(e)?768:32897;sn(e,e.members,524288|t),un("}")}(t);case 170:return It(t.elementType),un("["),void un("]");case 171:return de=t,un("["),sn(de,de.elementTypes,528),void un("]");case 172:return It(t.type),void un("?");case 174:return void sn(le=t,le.types,516);case 175:return void sn(ue=t,ue.types,520);case 176:return It((ce=t).checkType),_n(),dn("extends"),_n(),It(ce.extendsType),_n(),un("?"),_n(),It(ce.trueType),_n(),un(":"),_n(),void It(ce.falseType);case 177:return se=t,dn("infer"),_n(),void It(se.typeParameter);case 178:return oe=t,un("("),It(oe.type),void un(")");case 212:return Tt((ae=t).expression),void nn(ae,ae.typeArguments);case 179:return void dn("this");case 180:return En((ie=t).operator,dn),_n(),void It(ie.type);case 181:return It((re=t).objectType),un("["),It(re.indexType),void un("]");case 182:return function(e){var t=Mn.getEmitFlags(e);un("{"),1&t?_n():(gn(),mn());e.readonlyToken&&(It(e.readonlyToken),134!==e.readonlyToken.kind&&dn("readonly"),_n());un("["),Ct(0,e.typeParameter)(3,e.typeParameter),un("]"),e.questionToken&&(It(e.questionToken),56!==e.questionToken.kind&&un("?"));un(":"),_n(),It(e.type),ln(),1&t?_n():(gn(),yn());un("}")}(t);case 183:return void Tt(t.literal);case 184:return function(e){e.isTypeOf&&(dn("typeof"),_n());dn("import"),un("("),It(e.argument),un(")"),e.qualifier&&(un("."),It(e.qualifier));nn(e,e.typeArguments)}(t);case 290:return void un("*");case 291:return void un("?");case 292:return ne=t,un("?"),void It(ne.type);case 293:return te=t,un("!"),void It(te.type);case 294:return It(t.type),void un("=");case 173:case 296:return ee=t,un("..."),void It(ee.type);case 185:return $=t,un("{"),sn($,$.elements,525136),void un("}");case 186:return Q=t,un("["),sn(Q,Q.elements,524880),void un("]");case 187:return function(e){It(e.dotDotDotToken),e.propertyName&&(It(e.propertyName),un(":"),_n());It(e.name),qt(e.initializer,e.name.end,e)}(t);case 217:return Tt((q=t).expression),void It(q.literal);case 218:return void ln();case 219:return void Dt(X=t,!X.multiLine&&xn(X));case 220:return Zt(Z=t,Z.modifiers),It(Z.declarationList),void ln();case 221:return kt(!1);case 222:return Tt((K=t).expression),void(Mn.isJsonSourceFile(ht)&&!Mn.nodeIsSynthesized(K.expression)||ln());case 223:return U=Vt(92,(z=t).pos,dn,z),_n(),Vt(20,U,un,z),Tt(z.expression),Vt(21,z.expression.end,un,z),en(z,z.thenStatement),void(z.elseStatement&&(In(z),Vt(84,z.thenStatement.end,dn,z),223===z.elseStatement.kind?(_n(),It(z.elseStatement)):en(z,z.elseStatement)));case 224:return function(e){Vt(83,e.pos,dn,e),en(e,e.statement),Mn.isBlock(e.statement)?_n():In(e);At(e,e.statement.end),un(";")}(t);case 225:return At(J=t,J.pos),void en(J,J.statement);case 226:return function(e){var t=Vt(90,e.pos,dn,e);_n();var n=Vt(20,t,un,e);wt(e.initializer),n=Vt(26,e.initializer?e.initializer.end:n,un,e),$t(e.condition),n=Vt(26,e.condition?e.condition.end:n,un,e),$t(e.incrementor),Vt(21,e.incrementor?e.incrementor.end:n,un,e),en(e,e.statement)}(t);case 227:return Y=Vt(90,(G=t).pos,dn,G),_n(),Vt(20,Y,un,G),wt(G.initializer),_n(),Vt(94,G.initializer.end,dn,G),_n(),Tt(G.expression),Vt(21,G.expression.end,un,G),void en(G,G.statement);case 228:return W=Vt(90,(j=t).pos,dn,j),_n(),function(e){e&&(It(e),_n())}(j.awaitModifier),Vt(20,W,un,j),wt(j.initializer),_n(),Vt(148,j.initializer.end,dn,j),_n(),Tt(j.expression),Vt(21,j.expression.end,un,j),void en(j,j.statement);case 229:return Vt(79,(H=t).pos,dn,H),Qt(H.label),void ln();case 230:return Vt(74,(R=t).pos,dn,R),Qt(R.label),void ln();case 231:return Vt(98,(O=t).pos,dn,O),$t(O.expression),void ln();case 232:return F=Vt(109,(M=t).pos,dn,M),_n(),Vt(20,F,un,M),Tt(M.expression),Vt(21,M.expression.end,un,M),void en(M,M.statement);case 233:return L=Vt(100,(P=t).pos,dn,P),_n(),Vt(20,L,un,P),Tt(P.expression),Vt(21,P.expression.end,un,P),_n(),void It(P.caseBlock);case 234:return It((V=t).label),Vt(57,V.label.end,un,V),_n(),void It(V.statement);case 235:return Vt(102,(w=t).pos,dn,w),$t(w.expression),void ln();case 236:return function(e){Vt(104,e.pos,dn,e),_n(),It(e.tryBlock),e.catchClause&&(In(e),It(e.catchClause));e.finallyBlock&&(In(e),Vt(89,(e.catchClause||e.tryBlock).end,dn,e),_n(),It(e.finallyBlock))}(t);case 237:return bn(80,t.pos,dn),void ln();case 238:return It((A=t).name),Xt(A.type),void qt(A.initializer,A.type?A.type.end:A.name.end,A);case 239:return k=t,dn(Mn.isLet(k)?"let":Mn.isVarConst(k)?"const":"var"),_n(),void sn(k,k.declarations,528);case 240:return void Pt(t);case 241:return void Ft(t);case 242:return tn(D=t,D.decorators),Zt(D,D.modifiers),dn("interface"),_n(),It(D.name),rn(D,D.typeParameters),sn(D,D.heritageClauses,512),_n(),un("{"),sn(D,D.members,129),void un("}");case 243:return tn(N=t,N.decorators),Zt(N,N.modifiers),dn("type"),_n(),It(N.name),rn(N,N.typeParameters),_n(),un("="),_n(),It(N.type),void ln();case 244:return Zt(S=t,S.modifiers),dn("enum"),_n(),It(S.name),_n(),un("{"),sn(S,S.members,145),void un("}");case 245:return function(e){Zt(e,e.modifiers),512&~e.flags&&(dn(16&e.flags?"namespace":"module"),_n());It(e.name);var t=e.body;if(!t)return ln();for(;245===t.kind;)un("."),It(t.name),t=t.body;_n(),It(t)}(t);case 246:return Nn(x=t),Mn.forEach(x.statements,kn),Dt(x,xn(x)),void Dn(x);case 247:return Vt(18,(B=t).pos,un,B),sn(B,B.clauses,129),void Vt(19,B.clauses.end,un,B,!0);case 248:return C=Vt(86,(T=t).pos,dn,T),_n(),C=Vt(120,C,dn,T),_n(),C=Vt(132,C,dn,T),_n(),It(T.name),void ln();case 249:return Zt(I=t,I.modifiers),Vt(93,I.modifiers?I.modifiers.end:I.pos,dn,I),_n(),It(I.name),_n(),Vt(60,I.name.end,un,I),_n(),function(e){(73===e.kind?Tt:It)(e)}(I.moduleReference),void ln();case 250:return function(e){Zt(e,e.modifiers),Vt(93,e.modifiers?e.modifiers.end:e.pos,dn,e),_n(),e.importClause&&(It(e.importClause),_n(),Vt(145,e.importClause.end,dn,e),_n());Tt(e.moduleSpecifier),ln()}(t);case 251:return function(e){It(e.name),e.name&&e.namedBindings&&(Vt(27,e.name.end,un,e),_n());It(e.namedBindings)}(t);case 252:return E=Vt(40,(v=t).pos,un,v),_n(),Vt(120,E,dn,v),_n(),void It(v.name);case 253:return void Ot(t);case 254:return void Rt(t);case 255:return function(e){var t=Vt(86,e.pos,dn,e);_n(),e.isExportEquals?Vt(60,t,pn,e):Vt(81,t,dn,e);_n(),Tt(e.expression),ln()}(t);case 256:return function(e){var t=Vt(86,e.pos,dn,e);_n(),e.exportClause?It(e.exportClause):t=Vt(40,t,un,e);{e.moduleSpecifier&&(_n(),Vt(145,e.exportClause?e.exportClause.end:t,dn,e),_n(),Tt(e.moduleSpecifier))}ln()}(t);case 257:return void Ot(t);case 258:return void Rt(t);case 259:return;case 260:return b=t,dn("require"),un("("),Tt(b.expression),void un(")");case 11:return y=t,void gt.writeLiteral(y.text);case 263:case 266:return function(e){un("<"),Mn.isJsxOpeningElement(e)&&(Ht(e.tagName),nn(e,e.typeArguments),e.attributes.properties&&0<e.attributes.properties.length&&_n(),It(e.attributes));un(">")}(t);case 264:case 267:return function(e){un("</"),Mn.isJsxClosingElement(e)&&Ht(e.tagName);un(">")}(t);case 268:return It((m=t).name),void function(e,t,n,r){n&&(t(e),r(n))}("=",un,m.initializer,It);case 269:return void sn(g=t,g.properties,262656);case 270:return h=t,un("{..."),Tt(h.expression),void un("}");case 271:return void((_=t).expression&&(un("{"),It(_.dotDotDotToken),Tt(_.expression),un("}")));case 272:return Vt(75,(f=t).pos,dn,f),_n(),Tt(f.expression),void jt(f,f.statements,f.expression.end);case 273:return p=Vt(81,(d=t).pos,dn,d),void jt(d,d.statements,p);case 274:return l=t,_n(),En(l.token,dn),_n(),void sn(l,l.types,528);case 275:return function(e){var t=Vt(76,e.pos,dn,e);_n(),e.variableDeclaration&&(Vt(20,t,un,e),It(e.variableDeclaration),Vt(21,e.variableDeclaration.end,un,e),_n());It(e.block)}(t);case 276:return function(e){It(e.name),un(":"),_n();var t=e.initializer;{0==(512&Mn.getEmitFlags(t))&&Ln(Mn.getCommentRange(t).pos)}Tt(t)}(t);case 277:return It((u=t).name),void(u.objectAssignmentInitializer&&(_n(),un("="),_n(),Tt(u.objectAssignmentInitializer)));case 278:return void((c=t).expression&&(Vt(25,c.pos,un,c),Tt(c.expression)));case 279:return It((s=t).name),void qt(s.initializer,s.name.end,s);case 305:case 311:return function(e){Yt(e.tagName),zt(e.typeExpression),_n(),e.isBracketed&&un("[");It(e.name),e.isBracketed&&un("]");Jt(e.comment)}(t);case 306:case 308:case 307:case 304:return Yt((o=t).tagName),zt(o.typeExpression),void Jt(o.comment);case 301:return Yt((a=t).tagName),_n(),un("{"),It(a["class"]),un("}"),void Jt(a.comment);case 309:return Yt((i=t).tagName),zt(i.constraint),_n(),sn(i,i.typeParameters,528),void Jt(i.comment);case 310:return function(e){Yt(e.tagName),e.typeExpression&&(289===e.typeExpression.kind?zt(e.typeExpression):(_n(),un("{"),yt("Object"),e.typeExpression.isArrayType&&(un("["),un("]")),un("}")));e.fullName&&(_n(),It(e.fullName));Jt(e.comment),e.typeExpression&&298===e.typeExpression.kind&&Wt(e.typeExpression)}(t);case 303:return function(e){Yt(e.tagName),e.name&&(_n(),It(e.name));Jt(e.comment),Gt(e.typeExpression)}(t);case 299:return Gt(t);case 298:return Wt(t);case 302:case 300:return Yt((r=t).tagName),void Jt(r.comment);case 297:return function(e){if(yt("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),n=0,r=t;n<r.length;n++){var i=r[n];gn(),_n(),un("*"),_n(),yt(i)}e.tags&&(1!==e.tags.length||308!==e.tags[0].kind||e.comment?sn(e,e.tags,33):(_n(),It(e.tags[0])));_n(),yt("*/")}(t)}if(Mn.isExpression(t))e=1,mt!==Mn.noEmitSubstitution&&(t=mt(e,t));else if(Mn.isToken(t))return vn(t,un)}if(1===e)switch(t.kind){case 8:case 9:return void Bt(t);case 10:case 13:case 14:return Bt(t);case 73:return St(t);case 88:case 97:case 99:case 103:case 101:case 93:return void vn(t,dn);case 188:return pt=(dt=t).elements,ft=dt.multiLine?65536:0,void cn(dt,pt,8914|ft);case 189:return function(e){Mn.forEach(e.properties,An);var t=65536&Mn.getEmitFlags(e);t&&mn();var n=e.multiLine?65536:0,r=1<=ht.languageVersion&&!Mn.isJsonSourceFile(ht)?64:0;sn(e,e.properties,526226|r|n),t&&yn()}(t);case 190:return function(e){var t=!1,n=!1,r=Mn.skipTrivia(ht.text,e.expression.end,!1,!0),i=Mn.skipTrivia(ht.text,r),a=i+1;{var o;131072&Mn.getEmitFlags(e)||((o=Mn.createToken(24)).pos=e.expression.end,o.end=a,t=Bn(e,e.expression,o),n=Bn(e,o,e.name))}Tt(e.expression),Tn(t,!1);var s=r!==i;!t&&function(e,t){{if(e=Mn.skipPartiallyEmittedExpressions(e),Mn.isNumericLiteral(e)){var n=Sn(e,!0);return!e.numericLiteralFlags&&!Mn.stringContains(n,Mn.tokenToString(24))&&(!t||_t.removeComments)}if(Mn.isPropertyAccessExpression(e)||Mn.isElementAccessExpression(e)){var r=Mn.getConstantValue(e);return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r&&_t.removeComments}}}(e.expression,s)&&un(".");Vt(24,e.expression.end,un,e),Tn(n,!1),It(e.name),Cn(t,n)}(t);case 191:return Tt((lt=t).expression),Vt(22,lt.expression.end,un,lt),Tt(lt.argumentExpression),void Vt(23,lt.argumentExpression.end,un,lt);case 192:return Tt((ut=t).expression),nn(ut,ut.typeArguments),void cn(ut,ut.arguments,2576);case 193:return Vt(96,(ct=t).pos,dn,ct),_n(),Tt(ct.expression),nn(ct,ct.typeArguments),void cn(ct,ct.arguments,18960);case 194:return Tt((st=t).tag),nn(st,st.typeArguments),_n(),void Tt(st.template);case 195:return ot=t,un("<"),It(ot.type),un(">"),void Tt(ot.expression);case 196:return at=Vt(20,(it=t).pos,un,it),Tt(it.expression),void Vt(21,it.expression?it.expression.end:at,un,it);case 197:return wn((rt=t).name),void Pt(rt);case 198:return tn(nt=t,nt.decorators),Zt(nt,nt.modifiers),void Lt(nt,Nt);case 199:return Vt(82,(tt=t).pos,dn,tt),_n(),void Tt(tt.expression);case 200:return Vt(105,(et=t).pos,dn,et),_n(),void Tt(et.expression);case 201:return Vt(107,($e=t).pos,dn,$e),_n(),void Tt($e.expression);case 202:return Vt(123,(Qe=t).pos,dn,Qe),_n(),void Tt(Qe.expression);case 203:return function(e){En(e.operator,pn),function(e){var t=e.operand;return 203===t.kind&&(38===e.operator&&(38===t.operator||44===t.operator)||39===e.operator&&(39===t.operator||45===t.operator))}(e)&&_n();Tt(e.operand)}(t);case 204:return Tt((qe=t).operand),void En(qe.operator,pn);case 205:return Ke=27!==(Ue=t).operatorToken.kind,Ze=Bn(Ue,Ue.left,Ue.operatorToken),Xe=Bn(Ue,Ue.operatorToken,Ue.right),Tt(Ue.left),Tn(Ze,Ke),Pn(Ue.operatorToken.pos),vn(Ue.operatorToken,94===Ue.operatorToken.kind?dn:pn),Ln(Ue.operatorToken.end,!0),Tn(Xe,!0),Tt(Ue.right),void Cn(Ze,Xe);case 206:return Ge=Bn(We=t,We.condition,We.questionToken),Ye=Bn(We,We.questionToken,We.whenTrue),Je=Bn(We,We.whenTrue,We.colonToken),ze=Bn(We,We.colonToken,We.whenFalse),Tt(We.condition),Tn(Ge,!0),It(We.questionToken),Tn(Ye,!0),Tt(We.whenTrue),Cn(Ge,Ye),Tn(Je,!0),It(We.colonToken),Tn(ze,!0),Tt(We.whenFalse),void Cn(Je,ze);case 207:return It((je=t).head),void sn(je,je.templateSpans,262144);case 208:return Vt(118,(He=t).pos,dn,He),It(He.asteriskToken),void $t(He.expression);case 209:return Vt(25,(Re=t).pos,un,Re),void Tt(Re.expression);case 210:return wn((Oe=t).name),void Ft(Oe);case 211:return;case 213:return Tt((Fe=t).expression),void(Fe.type&&(_n(),dn("as"),_n(),It(Fe.type)));case 214:return Tt(t.expression),void pn("!");case 215:return bn((Me=t).keywordToken,Me.pos,un),un("."),void It(Me.name);case 261:return It((Le=t).openingElement),sn(Le,Le.children,262144),void It(Le.closingElement);case 262:return Pe=t,un("<"),Ht(Pe.tagName),nn(Pe,Pe.typeArguments),_n(),It(Pe.attributes),void un("/>");case 265:return It((Ve=t).openingFragment),sn(Ve,Ve.children,262144),void It(Ve.closingFragment);case 314:return void Tt(t.expression);case 315:return void cn(we=t,we.elements,528)}}function ae(e,t){ne(1,t)(e,mt(e,t))}function oe(e){var t=!1,n=286===e.kind?e:undefined;if(!n||C!==Mn.ModuleKind.None){for(var r=n?n.prepends.length:0,i=n?n.sourceFiles.length+r:1,a=0;a<i;a++){var o=n?a<r?n.prepends[a]:n.sourceFiles[a-r]:e,s=Mn.isSourceFile(o)?o:Mn.isUnparsedSource(o)?undefined:ht,c=_t.noEmitHelpers||!!s&&Mn.getExternalHelpersModuleName(s)!==undefined,u=(Mn.isSourceFile(o)||Mn.isUnparsedSource(o))&&!g,l=Mn.isUnparsedSource(o)?o.helpers:se(o);if(l)for(var d=0,p=l;d<p.length;d++){var f=p[d];if(f.scoped){if(n)continue}else{if(c)continue;if(u){if(B.get(f.name))continue;B.set(f.name,!0)}}var _=vt();"string"==typeof f.text?ve(f.text):ve(f.text(Pe)),bt&&bt.sections.push({pos:_,end:gt.getTextPos(),kind:"emitHelpers",data:f.name}),t=!0}}return t}}function se(e){var t=Mn.getEmitHelpers(e);return t&&Mn.stableSort(t,Mn.compareEmitHelpers)}function Bt(e){var t,n,r=Sn(e,_t.neverAsciiEscape);!_t.sourceMap&&!_t.inlineSourceMap||10!==e.kind&&!Mn.isTemplateLiteralKind(e.kind)?(t=r,gt.writeStringLiteral(t)):(n=r,gt.writeLiteral(n))}function xt(e){gt.rawWrite(e.parent.text.substring(e.pos,e.end))}function St(e){(e.symbol?ye:yt)(xe(e,!1),e.symbol),sn(e,e.typeArguments,53776)}function Nt(e){rn(e,e.typeParameters),on(e,e.parameters),Xt(e.type),_n(),It(e.equalsGreaterThanToken)}function Dt(e,t){Vt(18,e.pos,un,e);var n=t||1&Mn.getEmitFlags(e)?768:129;sn(e,e.statements,n),Vt(19,e.statements.end,un,e,!!(1&n))}function kt(e){e?un(";"):ln()}function At(e,t){var n=Vt(108,t,dn,e);_n(),Vt(20,n,un,e),Tt(e.expression),Vt(21,e.expression.end,un,e)}function wt(e){e!==undefined&&(239===e.kind?It:Tt)(e)}function Vt(e,t,n,r,i){var a,o=Mn.getParseTreeNode(r),s=o&&o.kind===r.kind,c=t;return s&&(t=Mn.skipTrivia(ht.text,t)),s&&r.pos!==c&&((a=i&&!Mn.positionsAreOnSameLine(c,t,ht))&&mn(),Pn(c),a&&yn()),t=En(e,n,t),s&&r.end!==t&&Ln(t,!0),t}function Pt(e){tn(e,e.decorators),Zt(e,e.modifiers),dn("function"),It(e.asteriskToken),_n(),te(e.name),Lt(e,Mt)}function ce(e,t){ue(t)}function Lt(e,t){var n,r=e.body;r?Mn.isBlock(r)?((n=65536&Mn.getEmitFlags(e))&&mn(),Nn(e),Mn.forEach(e.parameters,kn),kn(e.body),t(e),h?h(4,r,ce):ue(r),Dn(e),n&&yn()):(t(e),_n(),Tt(r)):(t(e),ln())}function Mt(e){rn(e,e.typeParameters),an(e,e.parameters),Xt(e.type)}function ue(e){_n(),un("{"),mn();var t=function(e){if(1&Mn.getEmitFlags(e))return 1;if(!e.multiLine&&(Mn.nodeIsSynthesized(e)||Mn.rangeIsOnSingleLine(e,ht))&&!Ee(e,e.statements,2)&&!Te(e,e.statements,2)){for(var t,n=0,r=e.statements;n<r.length;n++){var i=r[n];if(Ie(t,i,2))return;t=i}return 1}}(e)?le:de;Vn(e,e.statements,t),yn(),bn(19,e.statements.end,un,e)}function le(e){de(e,!0)}function de(e,t){var n=fe(e.statements),r=gt.getTextPos();oe(e),0===n&&r===gt.getTextPos()&&t?(yn(),sn(e,e.statements,768),mn()):sn(e,e.statements,1,n)}function Ft(e){Mn.forEach(e.members,An),tn(e,e.decorators),Zt(e,e.modifiers),dn("class"),e.name&&(_n(),te(e.name));var t=65536&Mn.getEmitFlags(e);t&&mn(),rn(e,e.typeParameters),sn(e,e.heritageClauses,0),_n(),un("{"),sn(e,e.members,129),un("}"),t&&yn()}function Ot(e){un("{"),sn(e,e.elements,525136),un("}")}function Rt(e){e.propertyName&&(It(e.propertyName),_n(),Vt(120,e.propertyName.end,dn,e),_n()),It(e.name)}function Ht(e){(73===e.kind?Tt:It)(e)}function jt(e,t,n){var r=163969;1===t.length&&(Mn.nodeIsSynthesized(e)||Mn.nodeIsSynthesized(t[0])||Mn.rangeStartPositionsAreOnSameLine(e,t[0],ht))?(bn(57,n,un,e),_n(),r&=-130):Vt(57,n,un,e),sn(e,t,r)}function Wt(e){sn(e,Mn.createNodeArray(e.jsDocPropertyTags),33)}function Gt(e){e.typeParameters&&sn(e,Mn.createNodeArray(e.typeParameters),33),e.parameters&&sn(e,Mn.createNodeArray(e.parameters),33),e.type&&(gn(),_n(),un("*"),_n(),It(e.type))}function Yt(e){un("@"),It(e)}function Jt(e){e&&(_n(),yt(e))}function zt(e){e&&(_n(),un("{"),It(e.type),un("}"))}function pe(e,t,n,r){if(e&&(l=gt.getTextPos(),be('/// <reference no-default-lib="true"/>'),bt&&bt.sections.push({pos:l,end:gt.getTextPos(),kind:"no-default-lib"}),gn()),ht&&ht.moduleName&&(be('/// <amd-module name="'+ht.moduleName+'" />'),gn()),ht&&ht.amdDependencies)for(var i=0,a=ht.amdDependencies;i<a.length;i++){var o=a[i];o.name?be('/// <amd-dependency name="'+o.name+'" path="'+o.path+'" />'):be('/// <amd-dependency path="'+o.path+'" />'),gn()}for(var s=0,c=t;s<c.length;s++){var u=c[s],l=gt.getTextPos();be('/// <reference path="'+u.fileName+'" />'),bt&&bt.sections.push({pos:l,end:gt.getTextPos(),kind:"reference",data:u.fileName}),gn()}for(var d=0,p=n;d<p.length;d++){u=p[d],l=gt.getTextPos();be('/// <reference types="'+u.fileName+'" />'),bt&&bt.sections.push({pos:l,end:gt.getTextPos(),kind:"type",data:u.fileName}),gn()}for(var f=0,_=r;f<_.length;f++){u=_[f],l=gt.getTextPos();be('/// <reference lib="'+u.fileName+'" />'),bt&&bt.sections.push({pos:l,end:gt.getTextPos(),kind:"lib",data:u.fileName}),gn()}}function Ut(e){var t=e.statements;Nn(e),Mn.forEach(e.statements,kn),oe(e);var n,r=Mn.findIndex(t,function(e){return!Mn.isPrologueDirective(e)});(n=e).isDeclarationFile&&pe(n.hasNoDefaultLib,n.referencedFiles,n.typeReferenceDirectives,n.libReferenceDirectives),sn(e,t,1,-1===r?t.length:r),Dn(e)}function fe(e,t,n,r){for(var i=!!t,a=0;a<e.length;a++){var o,s=e[a];if(!Mn.isPrologueDirective(s))return a;n&&n.has(s.expression.text)||(i&&(i=!1,q(t)),gn(),o=gt.getTextPos(),It(s),r&&bt&&bt.sections.push({pos:o,end:gt.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.set(s.expression.text,!0))}return e.length}function _e(e){if(Mn.isSourceFile(e))fe(e.statements,e);else{for(var t=Mn.createMap(),n=0,r=e.prepends;n<r.length;n++){!function(e,t){for(var n=0,r=e;n<r.length;n++){var i,a=r[n];t.has(a.data)||(gn(),i=gt.getTextPos(),It(a),bt&&bt.sections.push({pos:i,end:gt.getTextPos(),kind:"prologue",data:a.data}),t&&t.set(a.data,!0))}}(r[n].prologues,t)}for(var i=0,a=e.sourceFiles;i<a.length;i++){var o=a[i];fe(o.statements,o,t,!0)}q(undefined)}}function he(e){if(Mn.isSourceFile(e)||Mn.isUnparsedSource(e)){var t=Mn.getShebang(e.text);if(t)return be(t),gn(),1}else{for(var n=0,r=e.prepends;n<r.length;n++){var i=r[n];if(Mn.Debug.assertNode(i,Mn.isUnparsedSource),he(i))return 1}for(var a=0,o=e.sourceFiles;a<o.length;a++){if(he(o[a]))return 1}}}function Kt(e,t){var n;e&&(n=yt,yt=t,It(e),yt=n)}function Zt(e,t){t&&t.length&&(sn(e,t,262656),_n())}function Xt(e){e&&(un(":"),_n(),It(e))}function qt(e,t,n){e&&(_n(),Vt(60,t,pn,n),_n(),Tt(e))}function Qt(e){e&&(_n(),It(e))}function $t(e){e&&(_n(),Tt(e))}function en(e,t){Mn.isBlock(t)||1&Mn.getEmitFlags(e)?(_n(),It(t)):(gn(),mn(),Mn.isEmptyStatement(t)?Ct(0,t)(5,t):It(t),yn())}function tn(e,t){sn(e,t,49153)}function nn(e,t){sn(e,t,53776)}function rn(e,t){if(Mn.isFunctionLike(e)&&e.typeArguments)return nn(e,e.typeArguments),0;sn(e,t,53776)}function an(e,t){sn(e,t,2576)}function on(e,t){var n,r,i;n=e,r=t,!(i=Mn.singleOrUndefined(r))||i.pos!==n.pos||!Mn.isArrowFunction(n)||n.type||Mn.some(n.decorators)||Mn.some(n.modifiers)||Mn.some(n.typeParameters)||Mn.some(i.decorators)||Mn.some(i.modifiers)||i.dotDotDotToken||i.questionToken||i.type||i.initializer||!Mn.isIdentifier(i.name)?an(e,t):sn(e,t,528)}function sn(e,t,n,r,i){me(It,e,t,n,r,i)}function cn(e,t,n,r,i){me(Tt,e,t,n,r,i)}function ge(e){switch(60&e){case 0:break;case 16:un(",");break;case 4:_n(),un("|");break;case 32:_n(),un("*"),_n();break;case 8:_n(),un("&")}}function me(e,t,n,r,i,a){void 0===i&&(i=0),void 0===a&&(a=n?n.length-i:0);var o=n===undefined;if(!(o&&16384&r)){var s=n===undefined||i>=n.length||0===a;if(s&&32768&r)return y&&y(n),void(b&&b(n));if(15360&r&&(un(et[15360&r][0]),s&&!o&&Ln(n.pos,!0)),y&&y(n),s)1&r?gn():256&r&&!(524288&r)&&_n();else{var c=0==(262144&r),u=c;Ee(t,n,r)?(gn(),u=!1):256&r&&_n(),128&r&&mn();for(var l=void 0,d=void 0,p=!1,f=0;f<a;f++){var _=n[i+f];32&r?(gn(),ge(r)):l&&(60&r&&l.end!==t.end&&Pn(l.end),ge(r),Y(d),Ie(l,_,r)?(0==(131&r)&&(mn(),p=!0),gn(),u=!1):l&&512&r&&_n()),d=G(_),u?Ln(Mn.getCommentRange(_).pos):u=c,e(_),p&&(yn(),p=!1),l=_}var h=64&r&&n.hasTrailingComma;16&r&&h&&un(","),l&&60&r&&l.end!==t.end&&!(1024&Mn.getEmitFlags(l))&&Pn(l.end),128&r&&yn(),Y(d),Te(t,n,r)?gn():256&r&&_n()}b&&b(n),15360&r&&(s&&!o&&Pn(n.end),un(et[15360&r][1]))}}function ye(e,t){gt.writeSymbol(e,t)}function un(e){gt.writePunctuation(e)}function ln(){gt.writeTrailingSemicolon(";")}function dn(e){gt.writeKeyword(e)}function pn(e){gt.writeOperator(e)}function fn(e){gt.writeParameter(e)}function be(e){gt.writeComment(e)}function _n(){gt.writeSpace(" ")}function hn(e){gt.writeProperty(e)}function gn(){gt.writeLine()}function mn(){gt.increaseIndent()}function yn(){gt.decreaseIndent()}function bn(e,t,n,r){return D?En(e,n,t):function(e,t,n,r,i){if(D||e&&Mn.isInJsonFile(e))return i(t,n,r);var a=e&&e.emitNode,o=a&&a.flags||0,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t],c=s&&s.source||p;r=Ze(c,s?s.pos:r),0==(128&o)&&0<=r&&qe(c,r);r=i(t,n,r),s&&(r=s.end);0==(256&o)&&0<=r&&qe(c,r);return r}(r,e,n,t,En)}function vn(e,t){v&&v(e),t(Mn.tokenToString(e.kind)),E&&E(e)}function En(e,t,n){var r=Mn.tokenToString(e);return t(r),n<0?n:n+r.length}function In(e){(1&Mn.getEmitFlags(e)?_n:gn)()}function ve(e){for(var t=e.split(/\r\n?|\n/g),n=Mn.guessIndentation(t),r=0,i=t;r<i.length;r++){var a=i[r],o=n?a.slice(n):a;o.length&&(gn(),yt(o))}}function Tn(e,t){e?(mn(),gn()):t&&_n()}function Cn(e,t){e&&yn(),t&&yn()}function Ee(e,t,n){if(1&n)return 1;if(2&n){if(65536&n)return 1;var r=t[0];return r===undefined?!Mn.rangeIsOnSingleLine(e,ht):Mn.positionIsSynthesized(e.pos)||Mn.nodeIsSynthesized(r)?Ce(r,n):!Mn.rangeStartPositionsAreOnSameLine(e,r,ht)}}function Ie(e,t,n){return 1&n||(2&n?e!==undefined&&t!==undefined&&(Mn.nodeIsSynthesized(e)||Mn.nodeIsSynthesized(t)?Ce(e,n)||Ce(t,n):!Mn.rangeEndIsOnSameLineAsRangeStart(e,t,ht)):Mn.getStartsOnNewLine(t))}function Te(e,t,n){if(1&n)return 0==(131072&n);if(2&n){if(65536&n)return 1;var r=Mn.lastOrUndefined(t);return r===undefined?!Mn.rangeIsOnSingleLine(e,ht):Mn.positionIsSynthesized(e.pos)||Mn.nodeIsSynthesized(r)?Ce(r,n):!Mn.rangeEndPositionsAreOnSameLine(e,r,ht)}}function Ce(e,t){if(Mn.nodeIsSynthesized(e)){var n=Mn.getStartsOnNewLine(e);return n===undefined?0!=(65536&t):n}return 0!=(65536&t)}function Bn(e,t,n){return e=Be(e),t=Be(t),n=Be(n),!!Mn.getStartsOnNewLine(n)||!(Mn.nodeIsSynthesized(e)||Mn.nodeIsSynthesized(t)||Mn.nodeIsSynthesized(n)||Mn.rangeEndIsOnSameLineAsRangeStart(t,n,ht))}function xn(e){return 0===e.statements.length&&Mn.rangeEndIsOnSameLineAsRangeStart(e,e,ht)}function Be(e){for(;196===e.kind&&Mn.nodeIsSynthesized(e);)e=e.expression;return e}function xe(e,t){return Mn.isGeneratedIdentifier(e)?Ne(e):Mn.isIdentifier(e)&&(Mn.nodeIsSynthesized(e)||!e.parent||!ht||e.parent&&ht&&Mn.getSourceFileOfNode(e)!==Mn.getOriginalNode(ht))?Mn.idText(e):10===e.kind&&e.textSourceNode?xe(e.textSourceNode,t):!Mn.isLiteralExpression(e)||!Mn.nodeIsSynthesized(e)&&e.parent?Mn.getSourceTextOfNodeFromSourceFile(ht,e,t):e.text}function Sn(e,t){if(10===e.kind&&e.textSourceNode){var n=e.textSourceNode;return Mn.isIdentifier(n)?t||16777216&Mn.getEmitFlags(e)?'"'+Mn.escapeString(xe(n))+'"':'"'+Mn.escapeNonAsciiString(xe(n))+'"':Sn(n,t)}return Mn.getLiteralText(e,ht,t)}function Nn(e){e&&524288&Mn.getEmitFlags(e)||(t.push(i),i=0,a.push(s))}function Dn(e){e&&524288&Mn.getEmitFlags(e)||(i=t.pop(),s=a.pop())}function Se(e){s&&s!==Mn.lastOrUndefined(a)||(s=Mn.createMap()),s.set(e,!0)}function kn(e){if(e)switch(e.kind){case 219:Mn.forEach(e.statements,kn);break;case 234:case 232:case 224:case 225:kn(e.statement);break;case 223:kn(e.thenStatement),kn(e.elseStatement);break;case 226:case 228:case 227:kn(e.initializer),kn(e.statement);break;case 233:kn(e.caseBlock);break;case 247:Mn.forEach(e.clauses,kn);break;case 272:case 273:Mn.forEach(e.statements,kn);break;case 236:kn(e.tryBlock),kn(e.catchClause),kn(e.finallyBlock);break;case 275:kn(e.variableDeclaration),kn(e.block);break;case 220:kn(e.declarationList);break;case 239:Mn.forEach(e.declarations,kn);break;case 238:case 152:case 187:case 241:wn(e.name);break;case 240:wn(e.name),524288&Mn.getEmitFlags(e)&&(Mn.forEach(e.parameters,kn),kn(e.body));break;case 185:case 186:Mn.forEach(e.elements,kn);break;case 250:kn(e.importClause);break;case 251:wn(e.name),kn(e.namedBindings);break;case 252:wn(e.name);break;case 253:Mn.forEach(e.elements,kn);break;case 254:wn(e.propertyName||e.name)}}function An(e){if(e)switch(e.kind){case 276:case 277:case 155:case 157:case 159:case 160:wn(e.name)}}function wn(e){e&&(Mn.isGeneratedIdentifier(e)?Ne(e):Mn.isBindingPattern(e)&&kn(e))}function Ne(e){if(4==(7&e.autoGenerateFlags))return De(function(e){var t=e.autoGenerateId,n=e,r=n.original;for(;r&&(n=r,!(Mn.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==t));)r=n.original;return n}(e),e.autoGenerateFlags);var t=e.autoGenerateId;return n[t]||(n[t]=function(e){switch(7&e.autoGenerateFlags){case 1:return we(0,!!(8&e.autoGenerateFlags));case 2:return we(268435456,!!(8&e.autoGenerateFlags));case 3:return Ve(Mn.idText(e),32&e.autoGenerateFlags?Ae:ke,!!(16&e.autoGenerateFlags),!!(8&e.autoGenerateFlags))}return Mn.Debug.fail("Unsupported GeneratedIdentifierKind.")}(e))}function De(e,t){var n=Mn.getNodeId(e);return r[n]||(r[n]=function(e,t){switch(e.kind){case 73:return Ve(xe(e),ke,!!(16&t),!!(8&t));case 245:case 244:return function(e){var t=xe(e.name);return function(e,t){for(var n=t;Mn.isNodeDescendantOf(n,t);n=n.nextContainer)if(n.locals){var r=n.locals.get(Mn.escapeLeadingUnderscores(e));if(r&&70366143&r.flags)return!1}return!0}(t,e)?t:Ve(t)}(e);case 250:case 256:return function(e){var t=Mn.getExternalModuleName(e);return Ve(Mn.isStringLiteral(t)?Mn.makeIdentifierFromModuleName(t.text):"module")}(e);case 240:case 241:case 255:return Ve("default");case 210:return Ve("class");case 157:case 159:case 160:return function(e){if(Mn.isIdentifier(e.name))return De(e.name);return we(0)}(e);case 150:return we(0,!0);default:return we(0)}}(e,t))}function ke(e){return Ae(e)&&!o.has(e)&&!(s&&s.has(e))}function Ae(e){return!ht||Mn.isFileLevelUniqueName(ht,e,f)}function we(e,t){if(e&&!(i&e)&&ke(n=268435456===e?"_i":"_n"))return i|=e,t&&Se(n),n;for(;;){var n,r=268435455&i;if(i++,8!=r&&13!=r)if(ke(n=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26)))return t&&Se(n),n}}function Ve(e,t,n,r){if(void 0===t&&(t=ke),n&&t(e))return r?Se(e):o.set(e,!0),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return r?Se(a):o.set(a,!0),a;i++}}function Pe(e){return Ve(e,Ae,!0)}function Le(e,t){F(),P=!1;var n=Mn.getEmitFlags(t),r=Mn.getCommentRange(t),i=r.pos,a=r.end,o=313!==t.kind,s=i<0||0!=(512&n)||11===t.kind,c=a<0||0!=(1024&n)||11===t.kind,u=A,l=w,d=V;(0<i||0<a)&&i!==a&&(s||Re(i,o),(!s||0<=i&&0!=(512&n))&&(A=i),(!c||0<=a&&0!=(1024&n))&&(w=a,239===t.kind&&(V=a))),Mn.forEach(Mn.getSyntheticLeadingComments(t),Me),O();var p=ne(2,t);2048&n?(L=!0,p(e,t),L=!1):p(e,t),F(),Mn.forEach(Mn.getSyntheticTrailingComments(t),Fe),(0<i||0<a)&&i!==a&&(A=u,w=l,V=d,!c&&o&&ze(a,Ge)),O()}function Me(e){2===e.kind&&gt.writeLine(),Oe(e),e.hasTrailingNewLine||2===e.kind?gt.writeLine():gt.writeSpace(" ")}function Fe(e){gt.isAtStartOfLine()||gt.writeSpace(" "),Oe(e),e.hasTrailingNewLine&&gt.writeLine()}function Oe(e){var t,n=3===(t=e).kind?"/*"+t.text+"*/":"//"+t.text,r=3===e.kind?Mn.computeLineStarts(n):undefined;Mn.writeCommentRange(n,r,gt,0,n.length,T)}function Vn(e,t,n){F();var r,i,a=t.pos,o=t.end,s=Mn.getEmitFlags(e),c=L||o<0||0!=(1024&s);a<0||0!=(512&s)||(r=t,(i=Mn.emitDetachedComments(ht.text,ee(),gt,Ue,r,T,L))&&(l?l.push(i):l=[i])),O(),2048&s&&!L?(L=!0,n(e),L=!1):n(e),F(),c||(Re(t.end,!0),P&&!gt.isAtStartOfLine()&&gt.writeLine()),O()}function Re(e,t){P=!1,t?Je(e,We):0===e&&Je(e,He)}function He(e,t,n,r,i){var a,o;a=e,o=t,Mn.isRecognizedTripleSlashComment(ht.text,a,o)&&We(e,t,n,r,i)}function je(e,t){return!_t.onlyPrintJsDocStyle||(Mn.isJSDocLikeText(e,t)||Mn.isPinnedComment(e,t))}function We(e,t,n,r,i){je(ht.text,e)&&(P||(Mn.emitNewLineBeforeLeadingCommentOfPosition(ee(),gt,i,e),P=!0),Xe(e),Mn.writeCommentRange(ht.text,ee(),gt,e,t,T),Xe(t),r?gt.writeLine():3===n&&gt.writeSpace(" "))}function Pn(e){L||-1===e||Re(e,!0)}function Ge(e,t,n,r){je(ht.text,e)&&(gt.isAtStartOfLine()||gt.writeSpace(" "),Xe(e),Mn.writeCommentRange(ht.text,ee(),gt,e,t,T),Xe(t),r&&gt.writeLine())}function Ln(e,t){L||(F(),ze(e,t?Ge:Ye),O())}function Ye(e,t,n,r){Xe(e),Mn.writeCommentRange(ht.text,ee(),gt,e,t,T),Xe(t),r?gt.writeLine():gt.writeSpace(" ")}function Je(e,t){var n;!ht||-1!==A&&e===A||(n=e,l!==undefined&&Mn.last(l).nodePos===n?function(e){var t=Mn.last(l).detachedCommentEndPos;l.length-1?l.pop():l=undefined;Mn.forEachLeadingCommentRange(ht.text,t,e,t)}(t):Mn.forEachLeadingCommentRange(ht.text,e,t,e))}function ze(e,t){ht&&(-1===w||e!==w&&e!==V)&&Mn.forEachTrailingCommentRange(ht.text,e,t)}function Ue(e,t,n,r,i,a){je(ht.text,r)&&(Xe(r),Mn.writeCommentRange(e,t,n,r,i,a),Xe(i))}function Ke(e,t){var n,r,i,a,o,s,c,u,l=ne(3,t);Mn.isUnparsedSource(t)||Mn.isUnparsedPrepend(t)?l(e,t):Mn.isUnparsedNode(t)?((n=((u=t.parent).parsedSourceMap===undefined&&u.sourceMapText!==undefined&&(u.parsedSourceMap=Mn.tryParseRawSourceMap(u.sourceMapText)||!1),u.parsedSourceMap||undefined))&&d&&d.appendSourceMap(gt.getLine(),gt.getColumn(),n,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end)),l(e,t)):(i=(r=Mn.getSourceMapRange(t)).pos,a=r.end,s=void 0===(o=r.source)?p:o,c=Mn.getEmitFlags(t),313!==t.kind&&0==(16&c)&&0<=i&&qe(s,Ze(s,i)),64&c?(D=!0,l(e,t),D=!1):l(e,t),313!==t.kind&&0==(32&c)&&0<=a&&qe(s,a))}function Ze(e,t){return e.skipTrivia?e.skipTrivia(t):Mn.skipTrivia(e.text,t)}function Xe(e){var t,n,r;D||Mn.positionIsSynthesized(e)||$e(p)||(n=(t=Mn.getLineAndCharacterOfPosition(p,e)).line,r=t.character,d.addMapping(gt.getLine(),gt.getColumn(),k,n,r,undefined))}function qe(e,t){var n;e!==p?(n=p,Qe(e),Xe(t),Qe(n)):Xe(t)}function Qe(e){D||$e(p=e)||(k=d.addSource(e.fileName),_t.inlineSources&&d.setSourceContent(k,e.text))}function $e(e){return Mn.fileExtensionIs(e.fileName,".json")}}function bc(e,t,n,r){return e.watchFile(t,n,r)}function vc(e,t,n,r){return e.watchDirectory(t,n,0!=(1&r))}function Ec(e,t){switch(e){case de.None:return t;case de.TriggerOnly:return Cc;case de.Verbose:return t===vc?Tc:Ic}}function Ic(e,t,n,r,i,a,o,s,c,u,l){c(u+":: Added:: "+Bc(t,r,a,o,l));var d=Cc(e,t,n,r,i,a,o,s,c,u,l);return{close:function(){c(u+":: Close:: "+Bc(t,r,a,o,l)),d.close()}}}function Tc(e,r,t,i,n,a,o,s,c,u,l){var d=u+":: Added:: "+Bc(r,i,a,o,l);c(d);var p=ue.timestamp(),f=Cc(e,r,t,i,n,a,o,s,c,u,l),_=ue.timestamp()-p;return c("Elapsed:: "+_+"ms "+d),{close:function(){var e=u+":: Close:: "+Bc(r,i,a,o,l);c(e);var t=ue.timestamp();f.close();var n=ue.timestamp()-t;c("Elapsed:: "+n+"ms "+e)}}}function Cc(e,a,o,s,c,u,l,t,d,p,f){return t(e,a,function(e,t){var n=p+":: Triggered with "+e+" "+(t!==undefined?t:"")+":: "+Bc(a,s,u,l,f);d(n);var r=ue.timestamp();o(e,t,c);var i=ue.timestamp()-r;d("Elapsed:: "+i+"ms "+n)},s)}function Bc(e,t,n,r,i){return"WatchInfo: "+e+" "+t+" "+(i?i(n,r):r===undefined?n:n+" "+r)}function xc(e){e.watcher.close()}function Sc(e){if(e.declarations&&e.declarations[0]){var t=_e.getSourceFileOfNode(e.declarations[0]);return t&&t.resolvedPath}}function Nc(e,t,n,r){return _e.toPath(e.getProjectReferenceRedirect(t)||t,n,r)}function Dc(n,a,r){var t,e,i;if(a.imports&&0<a.imports.length)for(var o=n.getTypeChecker(),s=0,c=a.imports;s<c.length;s++){var u=c[s],l=(e=u,i=void 0,(i=o.getSymbolAtLocation(e))&&Sc(i));l&&T(l)}var d=_e.getDirectoryPath(a.path);if(a.referencedFiles&&0<a.referencedFiles.length)for(var p=0,f=a.referencedFiles;p<f.length;p++){var _=f[p];T(Nc(n,_.fileName,d,r))}if(a.resolvedTypeReferenceDirectiveNames&&a.resolvedTypeReferenceDirectiveNames.forEach(function(e){var t;e&&(t=e.resolvedFileName,T(Nc(n,t,d,r)))}),a.moduleAugmentations.length)for(var o=n.getTypeChecker(),h=0,g=a.moduleAugmentations;h<g.length;h++){var m,y=g[h];_e.isStringLiteral(y)&&((m=o.getSymbolAtLocation(y))&&I(m))}for(var b=0,v=n.getTypeChecker().getAmbientModules();b<v.length;b++){var E=v[b];1<E.declarations.length&&I(E)}return t;function I(e){for(var t=0,n=e.declarations;t<n.length;t++){var r=n[t],i=_e.getSourceFileOfNode(r);i&&i!==a&&T(i.resolvedPath)}}function T(e){(t=t||_e.createMap()).set(e,!0)}}function kc(e,t){return t&&!t.referencedMap==!e}function Ac(n,e){e.forEach(function(e,t){n.fileInfos.get(t).signature=e,n.hasCalledUpdateShapeSignature.set(t,!0)})}function wc(e,t,n,r,i,a,o){if(_e.Debug.assert(!!n),_e.Debug.assert(!o||!!e.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),e.hasCalledUpdateShapeSignature.has(n.path)||r.has(n.path))return!1;var s=e.fileInfos.get(n.path);if(!s)return _e.Debug.fail();var c,u,l,d=s.signature;return n.isDeclarationFile?(u=n.version,o&&u!==d&&(c=e.referencedMap?e.referencedMap.get(n.path):undefined,o.set(n.path,c||!1))):(l=_e.getFileEmitOutput(t,n,!0,i)).outputFiles&&0<l.outputFiles.length?(u=a(l.outputFiles[0].text),o&&u!==d&&function(e,t,n){if(!t)return n.set(e.path,!1);var r;t.forEach(function(e){var t;(t=Sc(e))&&(r=r||_e.createMap()).set(t,!0)}),n.set(e.path,r||!1)}(n,l.exportedModulesFromDeclarationEmit,o)):u=d,r.set(n.path,u),!d||u!==d}function Vc(e,t){var n;return e.allFileNames||(n=t.getSourceFiles(),e.allFileNames=n===_e.emptyArray?_e.emptyArray:n.map(function(e){return e.fileName})),e.allFileNames}function Pc(e,n){return _e.arrayFrom(_e.mapDefinedIterator(e.referencedMap.entries(),function(e){var t=e[0];return e[1].has(n)?t:undefined}))}function Lc(e){return t=e,_e.some(t.moduleAugmentations,function(e){return _e.isGlobalScopeAugmentation(e.parent)})||!_e.isExternalModule(e)&&!function(e){for(var t=0,n=e.statements;t<n.length;t++){var r=n[t];if(!_e.isModuleWithStringLiteralName(r))return}return 1}(e);var t}function Mc(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;var r;s(n);for(var i=0,a=t.getSourceFiles();i<a.length;i++){var o=a[i];o!==n&&s(o)}return e.allFilesExcludingDefaultLibraryFile=r||_e.emptyArray,e.allFilesExcludingDefaultLibraryFile;function s(e){t.isSourceFileDefaultLibrary(e)||(r=r||[]).push(e)}}function Fc(l,e,d){var p=ge.BuilderState.create(l,e,d),t=(p.program=l).getCompilerOptions();(p.compilerOptions=t).outFile||t.out||t.isolatedModules||(p.semanticDiagnosticsPerFile=ge.createMap()),p.changedFilesSet=ge.createMap();var n,r,f=ge.BuilderState.canReuseOldState(p.referencedMap,d),i=f?d.compilerOptions:undefined,_=f&&d.semanticDiagnosticsPerFile&&!!p.semanticDiagnosticsPerFile&&!ge.compilerOptionsAffectSemanticDiagnostics(t,i);f&&(d.currentChangedFilePath||(n=d.currentAffectedFilesSignatures,ge.Debug.assert(!(d.affectedFiles||n&&n.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")),r=d.changedFilesSet,_&&ge.Debug.assert(!r||!ge.forEachKey(r,function(e){return d.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),r&&ge.copyEntries(r,p.changedFilesSet),t.outFile||t.out||!d.affectedFilesPendingEmit||(p.affectedFilesPendingEmit=d.affectedFilesPendingEmit,p.affectedFilesPendingEmitIndex=d.affectedFilesPendingEmitIndex));var h=p.referencedMap,g=f?d.referencedMap:undefined,m=_&&!t.skipLibCheck==!i.skipLibCheck,y=m&&!t.skipDefaultLibCheck==!i.skipDefaultLibCheck;return p.fileInfos.forEach(function(e,t){var n,r,i,a,o,s;if(!f||!(n=d.fileInfos.get(t))||n.version!==e.version||(o=r=h&&h.get(t),s=g&&g.get(t),o!==s&&(o===undefined||s===undefined||o.size!==s.size||ge.forEachKey(o,function(e){return!s.has(e)})))||r&&ge.forEachKey(r,function(e){return!p.fileInfos.has(e)&&d.fileInfos.has(e)}))p.changedFilesSet.set(t,!0);else if(_){var c=l.getSourceFileByPath(t);if(c.isDeclarationFile&&!m)return;if(c.hasNoDefaultLib&&!y)return;var u=d.semanticDiagnosticsPerFile.get(t);u&&(p.semanticDiagnosticsPerFile.set(t,d.hasReusableDiagnostic?(a=l,(i=u).length?i.map(function(e){var t=Oc(e,a);t.reportsUnnecessary=e.reportsUnnecessary,t.source=e.source;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map(function(e){return Oc(e,a)}):ge.emptyArray:undefined,t}):ge.emptyArray):u),p.semanticDiagnosticsFromOldState||(p.semanticDiagnosticsFromOldState=ge.createMap()),p.semanticDiagnosticsFromOldState.set(t,!0))}}),i&&ge.compilerOptionsAffectEmit(t,i)&&(Kc(p,l.getSourceFiles().map(function(e){return e.path})),ge.Debug.assert(p.seenAffectedFiles===undefined),p.seenAffectedFiles=ge.createMap()),p}function Oc(e,t){var n=e.file,r=e.messageText;return Qb({},e,{file:n&&t.getSourceFileByPath(n),messageText:r===undefined||ge.isString(r)?r:function i(e,t){return Qb({},e,{next:e.next&&i(e.next,t)})}(r,t)})}function Rc(e,t){ge.Debug.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.path))}function Hc(e,t,n){for(;;){var r=e.affectedFiles;if(r){for(var i=e.seenAffectedFiles,a=e.affectedFilesIndex;a<r.length;){var o=r[a];if(!i.has(o.path))return e.affectedFilesIndex=a,function(t,e,n,r){if(jc(t,e.path),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){var i,a;return t.cleanedDiagnosticsOfLibFiles||(t.cleanedDiagnosticsOfLibFiles=!0,i=ge.Debug.assertDefined(t.program),a=i.getCompilerOptions(),ge.forEach(i.getSourceFiles(),function(e){return i.isSourceFileDefaultLibrary(e)&&!ge.skipTypeChecking(e,a)&&jc(t,e.path)}))}!function(n,r,i){if(!n.exportedModulesMap||1===n.affectedFiles.length||!n.changedFilesSet.has(r.path))return;ge.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var a=ge.createMap();if(ge.forEachEntry(n.currentAffectedFilesExportedModulesMap,function(e,t){return e&&e.has(r.path)&&Wc(n,t,a,i)}))return;ge.forEachEntry(n.exportedModulesMap,function(e,t){return!n.currentAffectedFilesExportedModulesMap.has(t)&&e.has(r.path)&&Wc(n,t,a,i)})}(t,e,function(e,t){return function(e,t,n,r){{var i,a;jc(e,t),e.changedFilesSet.has(t)||(i=ge.Debug.assertDefined(e.program),(a=i.getSourceFileByPath(t))&&(ge.BuilderState.updateShapeSignature(e,i,a,ge.Debug.assertDefined(e.currentAffectedFilesSignatures),n,r,e.currentAffectedFilesExportedModulesMap),ge.getEmitDeclarations(e.compilerOptions)&&Kc(e,[t])))}return!1}(e,t,n,r)})}(e,o,t,n),o;i.set(o.path,!0),a++}e.changedFilesSet["delete"](e.currentChangedFilePath),e.currentChangedFilePath=undefined,ge.BuilderState.updateSignaturesFromCache(e,e.currentAffectedFilesSignatures),e.currentAffectedFilesSignatures.clear(),ge.BuilderState.updateExportedFilesMapFromCache(e,e.currentAffectedFilesExportedModulesMap),e.affectedFiles=undefined}var s=e.changedFilesSet.keys().next();if(s.done)return undefined;var c=ge.Debug.assertDefined(e.program),u=c.getCompilerOptions();if(u.outFile||u.out)return ge.Debug.assert(!e.semanticDiagnosticsPerFile),c;e.currentAffectedFilesSignatures=e.currentAffectedFilesSignatures||ge.createMap(),e.exportedModulesMap&&(e.currentAffectedFilesExportedModulesMap=e.currentAffectedFilesExportedModulesMap||ge.createMap()),e.affectedFiles=ge.BuilderState.getFilesAffectedBy(e,c,s.value,t,n,e.currentAffectedFilesSignatures,e.currentAffectedFilesExportedModulesMap),e.currentChangedFilePath=s.value,e.affectedFilesIndex=0,e.seenAffectedFiles=e.seenAffectedFiles||ge.createMap()}}function jc(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState["delete"](t),e.semanticDiagnosticsPerFile["delete"](t),!e.semanticDiagnosticsFromOldState.size)}function Wc(n,r,i,a){return ge.forEachEntry(n.referencedMap,function(e,t){return e.has(r)&&function o(n,r,i,a){if(!ge.addToSeen(i,r))return!1;if(a(n,r))return!0;ge.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);if(ge.forEachEntry(n.currentAffectedFilesExportedModulesMap,function(e,t){return e&&e.has(r)&&o(n,t,i,a)}))return!0;if(ge.forEachEntry(n.exportedModulesMap,function(e,t){return!n.currentAffectedFilesExportedModulesMap.has(t)&&e.has(r)&&o(n,t,i,a)}))return!0;return!!ge.forEachEntry(n.referencedMap,function(e,t){return e.has(r)&&!i.has(t)&&a(n,t)})}(n,t,i,a)})}function Gc(e,t,n,r){r?e.emittedBuildInfo=!0:t===e.program?(e.changedFilesSet.clear(),e.programEmitComplete=!0):(e.seenAffectedFiles.set(t.path,!0),n?e.affectedFilesPendingEmitIndex++:e.affectedFilesIndex++)}function Yc(e,t,n,r,i){return Gc(e,n,r,i),{result:t,affected:n}}function Jc(e,t,n){var r=t.path;if(e.semanticDiagnosticsPerFile){var i=e.semanticDiagnosticsPerFile.get(r);if(i)return i}var a=ge.Debug.assertDefined(e.program).getSemanticDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(r,a),a}function zc(r){if(r.compilerOptions.outFile||r.compilerOptions.out)return undefined;var i={};r.fileInfos.forEach(function(e,t){var n=r.currentAffectedFilesSignatures&&r.currentAffectedFilesSignatures.get(t);i[t]=n===undefined?e:{version:e.version,signature:n}});var n,a,o,e={fileInfos:i,options:r.compilerOptions};return r.referencedMap&&(n={},r.referencedMap.forEach(function(e,t){n[t]=ge.arrayFrom(e.keys())}),e.referencedMap=n),r.exportedModulesMap&&(a={},r.exportedModulesMap.forEach(function(e,t){var n=r.currentAffectedFilesExportedModulesMap&&r.currentAffectedFilesExportedModulesMap.get(t);n===undefined?a[t]=ge.arrayFrom(e.keys()):n&&(a[t]=ge.arrayFrom(n.keys()))}),e.exportedModulesMap=a),r.semanticDiagnosticsPerFile&&(o=[],r.semanticDiagnosticsPerFile.forEach(function(e,t){return o.push(e.length?[t,r.hasReusableDiagnostic?e:(n=e,ge.Debug.assert(!!n.length),n.map(function(e){var t=Uc(e);t.reportsUnnecessary=e.reportsUnnecessary,t.source=e.source;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map(Uc):ge.emptyArray:undefined,t}))]:t);var n}),e.semanticDiagnosticsPerFile=o),e}function Uc(e){var t=e.file,n=e.messageText;return Qb({},e,{file:t&&t.path,messageText:n===undefined||ge.isString(n)?n:function r(e){return Qb({},e,{next:e.next&&r(e.next)})}(n)})}function Kc(e,t){e.affectedFilesPendingEmit=ge.concatenate(e.affectedFilesPendingEmit,t),e.affectedFilesPendingEmitIndex===undefined&&(e.affectedFilesPendingEmitIndex=0)}function Zc(e){if(!e)return undefined;var t=ge.createMap();for(var n in e)ge.hasProperty(e,n)&&t.set(n,ge.arrayToSet(e[n]));return t}function Xc(e,t){return{getState:ge.notImplemented,backupState:ge.noop,restoreState:ge.noop,getProgram:a,getProgramOrUndefined:function(){return e.program},releaseProgram:function(){return e.program=undefined},getCompilerOptions:function(){return e.compilerOptions},getSourceFile:function(e){return a().getSourceFile(e)},getSourceFiles:function(){return a().getSourceFiles()},getOptionsDiagnostics:function(e){return a().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return a().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return t},getSyntacticDiagnostics:function(e,t){return a().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return a().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return a().getSemanticDiagnostics(e,t)},emit:function(e,t,n,r,i){return a().emit(e,t,n,r,i)},getAllDependencies:ge.notImplemented,getCurrentDirectory:function(){return a().getCurrentDirectory()}};function a(){return ge.Debug.assertDefined(e.program)}}function qc(t){return Ee.some(Ee.ignoredPaths,function(e){return Ee.stringContains(t,e)})}function Qc(e,t,n){var r=e.importModuleSpecifierPreference,i=e.importModuleSpecifierEnding;return{relativePreference:"relative"===r?0:"non-relative"===r?1:2,ending:function(){switch(i){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(e){var t=e.imports;return Ie.firstDefined(t,function(e){var t=e.text;return Ie.pathIsRelative(t)?Ie.hasJSOrJsonFileExtension(t):undefined})||!1}(n)?2:Ie.getEmitModuleResolutionKind(t)!==Ie.ModuleResolutionKind.NodeJs?1:0}}()}}function $c(t,e,n,r,i,a,o){var s=eu(e,r),c=au(i,e,n,s.getCanonicalFileName,r,a);return Ie.firstDefined(c,function(e){return su(e,s,r,t)})||tu(n,s,t,o)}function eu(e,t){return{getCanonicalFileName:Ie.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),sourceDirectory:Ie.getDirectoryPath(e)}}function tu(e,t,n,r){var i=t.getCanonicalFileName,a=t.sourceDirectory,o=r.ending,s=r.relativePreference,c=n.baseUrl,u=n.paths,l=n.rootDirs,d=l&&function(e,t,n,r){var i=cu(t,e,r);if(i===undefined)return undefined;var a=cu(n,e,r),o=a!==undefined?Ie.ensurePathIsNonModuleName(Ie.getRelativePathFromDirectory(a,i,r)):i;return Ie.removeFileExtension(o)}(l,e,a,i)||uu(Ie.ensurePathIsNonModuleName(Ie.getRelativePathFromDirectory(a,e,i)),o,n);if(!c||0===s)return d;var p=lu(e,c,i);if(!p)return d;var f=uu(p,o,n),_=u&&ou(Ie.removeFileExtension(p),f,u),h=_===undefined?f:_;return 1===s?h:(2!==s&&Ie.Debug.assertNever(s),du(h)||nu(d)<nu(h)?d:h)}function nu(e){for(var t=0,n=Ie.startsWith(e,"./")?2:0;n<e.length;n++)47===e.charCodeAt(n)&&t++;return t}function ru(e,t){return"node_modules"===t(e)||Ie.startsWith(e,"@")}function iu(e,t,n){for(var r=Ie.createMap(),i=0,a=Ie.flatten(Ie.mapDefined(e,function(e){return e.resolvedModules&&Ie.compact(Ie.arrayFrom(Ie.mapIterator(e.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:undefined})))}));i<a.length;i++){var o=a[i],s=function(e,t,n,r){for(var i,a,o,s=Ie.getPathComponents(Ie.toPath(e,n,r)),c=Ie.getPathComponents(Ie.toPath(t,n,r));!ru(s[s.length-2],r)&&!ru(c[c.length-2],r)&&(i=s[s.length-1],a=c[c.length-1],(o=r)(i)===o(a));)s.pop(),c.pop();return[Ie.getPathFromPathComponents(s),Ie.getPathFromPathComponents(c)]}(o[0],o[1],n,t),c=s[0],u=s[1];r.set(u,c)}return r}function au(e,a,t,o,s,n){var r=n.get(t),i=r?r.concat([t]):[t],c=s.getCurrentDirectory?s.getCurrentDirectory():"",u=i.map(function(e){return Ie.getNormalizedAbsolutePath(e,c)}),l=iu(e,o,c),d=[],p=!s.useCaseSensitiveFileNames||s.useCaseSensitiveFileNames()?Ie.compareStringsCaseSensitive:Ie.compareStringsCaseInsensitive;return l.forEach(function(t,e){var n,r,i;Ie.startsWithDirectory(a,t,o)||(n=Ie.find(u,function(e){return 0===p(e.slice(0,t.length+1),t+"/")}))!==undefined&&(r=Ie.getRelativePathFromDirectory(t,n,o),i=Ie.resolvePath(e,r),s.fileExists&&!s.fileExists(i)||d.push(i))}),d.push.apply(d,u),d}function ou(e,t,n){for(var r in n)for(var i=0,a=n[r];i<a.length;i++){var o=a[i],s=Ie.removeFileExtension(Ie.normalizePath(o)),c=s.indexOf("*");if(-1!==c){var u=s.substr(0,c),l=s.substr(c+1);if(t.length>=u.length+l.length&&Ie.startsWith(t,u)&&Ie.endsWith(t,l)||!l&&t===Ie.removeTrailingDirectorySeparator(u)){var d=t.substr(u.length,t.length-l.length);return r.replace("*",d)}}else if(s===t||s===e)return r}}function su(e,t,i,n){var a=t.getCanonicalFileName,r=t.sourceDirectory;if(!i.fileExists||!i.readFile)return undefined;var o=function(e){var t=0,n=0,r=0,i=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}({});var a=0,o=0,s=0;for(;0<=o;)switch(a=o,o=e.indexOf("/",a+1),s){case 0:e.indexOf(Ie.nodeModulesPathPart,a)===a&&(t=a,n=o,s=1);break;case 1:case 2:s=1===s&&"@"===e.charAt(a+1)?2:(r=o,3);break;case 3:s=e.indexOf(Ie.nodeModulesPathPart,a)===a?1:3}return i=a,1<s?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:r,fileNameIndex:i}:undefined}(e);if(!o)return undefined;var s,c,u=e.substring(0,o.packageRootIndex),l=Ie.combinePaths(u,"package.json"),d=i.fileExists(l)?JSON.parse(i.readFile(l)):undefined,p=d&&d.typesVersions?Ie.getPackageJsonTypesVersionsPaths(d.typesVersions):undefined;p&&(s=e.slice(o.packageRootIndex+1),(c=ou(Ie.removeFileExtension(s),uu(s,0,n),p.paths))!==undefined&&(e=Ie.combinePaths(e.slice(0,o.packageRootIndex),c)));var f=function(e){if(d){var t=d.typings||d.types||d.main;if(t){var n=Ie.toPath(t,u,a);if(Ie.removeFileExtension(n)===Ie.removeFileExtension(a(e)))return u}}var r=Ie.removeFileExtension(e);return"/index"!==a(r.substring(o.fileNameIndex))||function(e,t){if(!e.fileExists)return;for(var n=Ie.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),r=0,i=n;r<i.length;r++){var a=i[r],o=t+a;if(e.fileExists(o))return o}}(i,r.substring(0,o.fileNameIndex))?r:r.substring(0,o.fileNameIndex)}(e);if(!Ie.startsWith(r,a(f.substring(0,o.topLevelNodeModulesIndex))))return undefined;var _=f.substring(o.topLevelPackageNameIndex+1),h=Ie.getPackageNameFromTypesPackageName(_);return Ie.getEmitModuleResolutionKind(n)!==Ie.ModuleResolutionKind.NodeJs&&h===_?undefined:h}function cu(n,e,r){return Ie.firstDefined(e,function(e){var t=lu(n,e,r);return du(t)?undefined:t})}function uu(e,t,n){if(Ie.fileExtensionIs(e,".json"))return e;var r=Ie.removeFileExtension(e);switch(t){case 0:return Ie.removeSuffix(r,"/index");case 1:return r;case 2:return r+function(e,t){var n=Ie.extensionFromPath(e);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".tsbuildinfo":return Ie.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+e);default:return Ie.Debug.assertNever(n)}}(e,n);default:return Ie.Debug.assertNever(t)}}function lu(e,t,n){var r=Ie.getRelativePathToDirectoryOrUrl(t,e,t,n,!1);return Ie.isRootedDiskPath(r)?undefined:r}function du(e){return Ie.startsWith(e,"..")}function pu(n){var r=Se.createMap();return{setValue:function(e,t){r.set(n(e),t)},getValue:function(e){return r.get(n(e))},removeKey:function(e){r["delete"](n(e))},forEach:function(e){r.forEach(e)},hasKey:function(e){return r.has(n(e))},getSize:function(){return r.size},clear:function(){r.clear()}}}function fu(e,t,n){var r,i=e.getValue(t);return i||(r=n(),e.setValue(t,r)),i||r}function _u(e,t){return fu(e,t,Se.createMap)}function hu(e,t){return e<t?t:e}function gu(e){return Se.fileExtensionIs(e,".d.ts")}function mu(n,r){return function(e){var t=r?"["+Se.formatColorAndReset((new Date).toLocaleTimeString(),Se.ForegroundColorEscapeSequences.Grey)+"] ":(new Date).toLocaleTimeString()+" - ";t+=""+Se.flattenDiagnosticMessageText(e.messageText,n.newLine)+(n.newLine+n.newLine),n.write(t)}}function yu(n,e,t,r){var i=Se.createProgramHost(n,e);return i.getModifiedTime=n.getModifiedTime?function(e){return n.getModifiedTime(e)}:Se.returnUndefined,i.setModifiedTime=n.setModifiedTime?function(e,t){return n.setModifiedTime(e,t)}:Se.noop,i.deleteFile=n.deleteFile?function(e){return n.deleteFile(e)}:Se.noop,i.reportDiagnostic=t||Se.createDiagnosticReporter(n),i.reportSolutionBuilderStatus=r||mu(n),i}function bu(t){var n={};return Se.commonOptionsWithBuild.forEach(function(e){Se.hasProperty(t,e.name)&&(n[e.name]=t[e.name])}),n}function vu(e){return Se.fileExtensionIs(e,".json")?e:Se.combinePaths(e,"tsconfig.json")}function Eu(e,t,n,r){switch(t.type){case Ae.OutOfDateWithSelf:return r(Se.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,n(e),n(t.outOfDateOutputFileName),n(t.newerInputFileName));case Ae.OutOfDateWithUpstream:return r(Se.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,n(e),n(t.outOfDateOutputFileName),n(t.newerProjectName));case Ae.OutputMissing:return r(Se.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,n(e),n(t.missingOutputFileName));case Ae.UpToDate:if(t.newestInputFileTime!==undefined)return r(Se.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,n(e),n(t.newestInputFileName||""),n(t.oldestOutputFileName||""));break;case Ae.OutOfDateWithPrepend:return r(Se.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,n(e),n(t.newerProjectName));case Ae.UpToDateWithUpstreamTypes:return r(Se.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,n(e));case Ae.UpstreamOutOfDate:return r(Se.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,n(e),n(t.upstreamProjectName));case Ae.UpstreamBlocked:return r(Se.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,n(e),n(t.upstreamProjectName));case Ae.Unbuildable:return r(Se.Diagnostics.Failed_to_parse_file_0_Colon_1,n(e),t.reason);case Ae.TsVersionOutputOfDate:return r(Se.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,n(e),t.version,Se.version);case Ae.ContainerOnly:case Ae.ComputingUpstream:break;default:Se.assertType(t)}}function Iu(e){this.text=e}function Tu(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:Ge.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1}}function Cu(e,t){return{fileName:t.fileName,textSpan:ot.createTextSpanFromNode(e,t),kind:"none"}}function Bu(e){return ot.isThrowStatement(e)?[e]:ot.isTryStatement(e)?ot.concatenate(e.catchClause?Bu(e.catchClause):e.tryBlock&&Bu(e.tryBlock),e.finallyBlock&&Bu(e.finallyBlock)):ot.isFunctionLike(e)?undefined:Su(e,Bu)}function xu(e){return ot.isBreakOrContinueStatement(e)?[e]:ot.isFunctionLike(e)?undefined:Su(e,xu)}function Su(e,n){var r=[];return e.forEachChild(function(e){var t=n(e);t!==undefined&&r.push.apply(r,ot.toArray(t))}),r}function Nu(e,t){var n=Du(t);return n&&n===e}function Du(r){return ot.findAncestor(r,function(e){switch(e.kind){case 233:if(229===r.kind)return!1;case 226:case 227:case 228:case 225:case 224:return!r.label||(t=e,n=r.label.escapedText,!!ot.findAncestor(t.parent,function(e){return ot.isLabeledStatement(e)?e.label.escapedText===n:"quit"}));default:return ot.isFunctionLike(e)&&"quit"}var t,n})}function ku(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return t&&ot.contains(n,t.kind)&&(e.push(t),1)}function Au(t){var n=[];if(ku(n,t.getFirstToken(),90,108,83)&&224===t.kind)for(var e=t.getChildren(),r=e.length-1;0<=r&&!ku(n,e[r],108);r--);return ot.forEach(xu(t.statement),function(e){Nu(t,e)&&ku(n,e.getFirstToken(),74,79)}),n}function wu(e){var t=Du(e);if(t)switch(t.kind){case 226:case 227:case 228:case 224:case 225:return Au(t);case 233:return Vu(t)}return undefined}function Vu(t){var n=[];return ku(n,t.getFirstToken(),100),ot.forEach(t.caseBlock.clauses,function(e){ku(n,e.getFirstToken(),75,81),ot.forEach(xu(e),function(e){Nu(t,e)&&ku(n,e.getFirstToken(),74)})}),n}function Pu(e,t){var n=[];return ku(n,e.getFirstToken(),104),e.catchClause&&ku(n,e.catchClause.getFirstToken(),76),e.finallyBlock&&ku(n,ot.findChildOfKind(e,89,t),89),n}function Lu(e,t){var n=function(e){for(var t=e;t.parent;){var n=t.parent;if(ot.isFunctionBlock(n)||285===n.kind)return n;if(ot.isTryStatement(n)&&n.tryBlock===t&&n.catchClause)return t;t=n}return undefined}(e);if(!n)return undefined;var r=[];return ot.forEach(Bu(n),function(e){r.push(ot.findChildOfKind(e,102,t))}),ot.isFunctionBlock(n)&&ot.forEachReturnStatement(n,function(e){r.push(ot.findChildOfKind(e,98,t))}),r}function Mu(e,t){var n=ot.getContainingFunction(e);if(!n)return undefined;var r=[];return ot.forEachReturnStatement(ot.cast(n.body,ot.isBlock),function(e){r.push(ot.findChildOfKind(e,98,t))}),ot.forEach(Bu(n.body),function(e){r.push(ot.findChildOfKind(e,102,t))}),r}function Fu(e){var t=ot.getContainingFunction(e);if(!t)return undefined;var n=[];return t.modifiers&&t.modifiers.forEach(function(e){ku(n,e,122)}),ot.forEachChild(t,function(e){Ou(e,function(e){ot.isAwaitExpression(e)&&ku(n,e.getFirstToken(),123)})}),n}function Ou(e,t){t(e),ot.isFunctionLike(e)||ot.isClassLike(e)||ot.isInterfaceDeclaration(e)||ot.isModuleDeclaration(e)||ot.isTypeAliasDeclaration(e)||ot.isTypeNode(e)||ot.forEachChild(e,function(e){return Ou(e,t)})}function Ru(e,a,p){void 0===a&&(a="");var f=st.createMap(),o=st.createGetCanonicalFileName(!!e);function s(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!0,o)}function c(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!1,o)}function u(e,t,n,r,i,a,o,s){var c,u=st.getOrUpdate(f,r,st.createMap),l=u.get(t),d=6===s?100:n.target||1;return!l&&p&&(c=p.getDocument(r,t))&&(st.Debug.assert(o),l={sourceFile:c,languageServiceRefCount:0},u.set(t,l)),l?(l.sourceFile.version!==a&&(l.sourceFile=st.updateLanguageServiceSourceFile(l.sourceFile,i,a,i.getChangeRange(l.sourceFile.scriptSnapshot)),p&&p.setDocument(r,t,l.sourceFile)),o&&l.languageServiceRefCount++):(c=st.createLanguageServiceSourceFile(e,i,d,a,!1,s),p&&p.setDocument(r,t,c),l={sourceFile:c,languageServiceRefCount:1},u.set(t,l)),st.Debug.assert(0!==l.languageServiceRefCount),l.sourceFile}function n(e,t){var n=st.Debug.assertDefined(f.get(t)),r=n.get(e);r.languageServiceRefCount--,st.Debug.assert(0<=r.languageServiceRefCount),0===r.languageServiceRefCount&&n["delete"](e)}return{acquireDocument:function(e,t,n,r,i){return s(e,st.toPath(e,a,o),t,Hu(t),n,r,i)},acquireDocumentWithKey:s,updateDocument:function(e,t,n,r,i){return c(e,st.toPath(e,a,o),t,Hu(t),n,r,i)},updateDocumentWithKey:c,releaseDocument:function(e,t){return n(st.toPath(e,a,o),Hu(t))},releaseDocumentWithKey:n,getLanguageServiceRefCounts:function(r){return st.arrayFrom(f.entries(),function(e){var t=e[0],n=e[1].get(r);return[t,n&&n.languageServiceRefCount]})},reportStats:function(){var e=st.arrayFrom(f.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=f.get(e),n=[];return t.forEach(function(e,t){n.push({name:t,refCount:e.languageServiceRefCount})}),n.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:n}});return JSON.stringify(e,undefined,2)},getKeyForCompilationSettings:Hu}}function Hu(t){return st.sourceFileAffectingCompilerOptions.map(function(e){return st.getCompilerOptionValue(t,e)}).join("|")}function ju(e,t){return ct.forEach(285===e.kind?e.statements:e.body.statements,function(e){return t(e)||Ju(e)&&ct.forEach(e.body&&e.body.statements,t)})}function Wu(e,n){if(e.externalModuleIndicator||e.imports!==undefined)for(var t=0,r=e.imports;t<r.length;t++){var i=r[t];n(ct.importFromModuleSpecifier(i),i)}else ju(e,function(e){switch(e.kind){case 256:case 250:(t=e).moduleSpecifier&&ct.isStringLiteral(t.moduleSpecifier)&&n(t,t.moduleSpecifier);break;case 249:var t;zu(t=e)&&n(t,t.moduleReference.expression)}})}function Gu(e,t,n){var r=e.parent;if(!r)return undefined;var i=n.getMergedSymbol(r);return ct.isExternalModuleSymbol(i)?{exportingModuleSymbol:i,exportKind:t}:undefined}function Yu(e){if(192===e.kind)return e.getSourceFile();var t=e.parent;return 285===t.kind?t:(ct.Debug.assert(246===t.kind),ct.cast(t.parent,Ju))}function Ju(e){return 245===e.kind&&10===e.name.kind}function zu(e){return 260===e.moduleReference.kind&&10===e.moduleReference.expression.kind}function Uu(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e}}function Ku(e,t,n,r,i,a,o){return void 0===a&&(a={}),void 0===o&&(o=pt.arrayToSet(r,function(e){return e.fileName})),Zu(ft.Core.getReferencedSymbolsForNode(e,t,n,r,i,a,o))}function Zu(e){return e&&pt.flatMap(e,function(e){return e.references})}function Xu(e,t,n){var r=ft.Core.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&pt.firstOrUndefined(e.declarations)||n,a=pt.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:a.displayParts,kind:a.symbolKind}}function qu(e){var t=Qu(e),n=t.textSpan,r=t.fileName;if(0===e.kind)return{textSpan:n,fileName:r,isWriteAccess:!1,isDefinition:!1};var i=e.kind,a=e.node;return{textSpan:n,fileName:r,isWriteAccess:el(a),isDefinition:81===a.kind||!!pt.getDeclarationFromName(a)||pt.isLiteralComputedPropertyDeclarationName(a),isInString:2===i||undefined}}function Qu(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile();return{textSpan:$u(e.node,t),fileName:t.fileName}}function $u(e,t){var n=e.getStart(t),r=e.getEnd();return 10===e.kind&&(n+=1,--r),pt.createTextSpanFromBounds(n,r)}function el(e){var t=pt.getDeclarationFromName(e);return!!t&&function(e){if(4194304&e.flags)return!0;switch(e.kind){case 205:case 187:case 241:case 210:case 81:case 244:case 279:case 258:case 251:case 249:case 254:case 242:case 303:case 310:case 268:case 245:case 248:case 252:case 152:case 277:case 243:case 151:return!0;case 276:return!pt.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent);case 240:case 197:case 158:case 157:case 159:case 160:return!!e.body;case 238:case 155:return!!e.initializer||pt.isCatchClause(e.parent);case 156:case 154:case 311:case 305:return!1;default:return pt.Debug.failBadSyntaxKind(e)}}(t)||81===e.kind||pt.isWriteAccess(e)}function tl(e,c,u,l){var d=u(e);return function(e){var t,n,r,i,a,o=l&&l.tryGetSourcePosition({fileName:e,pos:0}),s=function(e){if(u(e)===d)return c;var t=yt.tryRemoveDirectoryPrefix(e,d,u);return t===undefined?undefined:c+"/"+t}(o?o.fileName:e);return o?s===undefined?undefined:(t=o.fileName,n=s,r=e,i=u,a=yt.getRelativePathFromFile(t,n,i),nl(yt.getDirectoryPath(r),a)):s}}function nl(e,t){return yt.ensurePathIsNonModuleName((n=e,r=t,yt.normalizePath(yt.combinePaths(n,r))));var n,r}function rl(e,n){if(!e)return undefined;if(e.resolvedModule){var t=i(e.resolvedModule.resolvedFileName);if(t)return t}var r=yt.forEach(e.failedLookupLocations,function(e){return yt.endsWith(e,"/package.json")?undefined:i(e)});return r||e.resolvedModule&&{newFileName:e.resolvedModule.resolvedFileName,updated:!1};function i(e){var t=n(e);return t&&{newFileName:t,updated:!0}}}function il(e,t){return yt.createRange(e.getStart(t)+1,e.end-1)}function al(e,t){if(yt.isObjectLiteralExpression(e))for(var n=0,r=e.properties;n<r.length;n++){var i=r[n];yt.isPropertyAssignment(i)&&yt.isStringLiteral(i.name)&&t(i,i.name.text)}}function ol(e,t,n){var r,i=sl(t,n,e);if(i)return[(r=i.fileName,{fileName:i.file.fileName,textSpan:bt.createTextSpanFromBounds(0,0),kind:"script",name:r,containerName:undefined,containerKind:undefined})];var a=bt.getTouchingPropertyName(t,n);if(a===t)return undefined;var o=a.parent;if(bt.isJumpStatementTarget(a)){var s=bt.getTargetLabel(a.parent,a.text);return s?[dl(s,"label",a.text,undefined)]:undefined}var c=e.getTypeChecker(),u=function(e,t){var n=t.getSymbolAtLocation(e);if(n&&2097152&n.flags&&function(e,t){if(73!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 251:case 249:return!0;case 254:return 253===t.parent.kind;default:return!1}}(e,n.declarations[0])){var r=t.getAliasedSymbol(n);if(r.declarations)return r}return n}(a,c);if(!u)return function(e,n){if(!bt.isPropertyAccessExpression(e.parent)||e.parent.name!==e)return;var t=n.getTypeAtLocation(e.parent.expression);return bt.mapDefined(t.isUnionOrIntersection()?t.types:[t],function(e){var t=n.getIndexInfoOfType(e,0);return t&&t.declaration&&pl(n,t.declaration)})}(a,c);var l,d,p,f=(l=c,d=function(e){var t=function r(e){return bt.isRightSideOfPropertyAccess(e)?r(e.parent):e}(e),n=t.parent;return n&&bt.isCallLikeExpression(n)&&bt.getInvokedExpression(n)===t?n:undefined}(a),p=d&&l.getResolvedSignature(d),bt.tryCast(p&&p.declaration,function(e){return bt.isFunctionLike(e)&&!bt.isFunctionTypeNode(e)}));if(f&&(!bt.isJsxOpeningLikeElement(a.parent)||!function(e){switch(e.kind){case 158:case 167:case 162:return!0;default:return!1}}(f))){var _=pl(c,f);if(c.getRootSymbols(u).some(function(e){return(t=e)===(n=f).symbol||t===n.symbol.parent||!bt.isCallLikeExpression(n.parent)&&t===n.parent.symbol;var t,n})||u.declarations&&u.declarations.some(function(e){return bt.isVariableDeclaration(e)&&!!e.initializer&&bt.isRequireCall(e.initializer,!1)}))return[_];var h=ul(c,u,a)||bt.emptyArray;return 99===a.kind?[_].concat(h):h.concat([_])}if(277===a.parent.kind){var g=c.getShorthandAssignmentValueSymbol(u.valueDeclaration);return g?g.declarations.map(function(e){return ll(e,c,g,a)}):[]}if(bt.isPropertyName(a)&&bt.isBindingElement(o)&&bt.isObjectBindingPattern(o.parent)&&a===(o.propertyName||o.name)){var m=bt.getNameFromPropertyName(a),y=c.getTypeAtLocation(o.parent);return m===undefined?bt.emptyArray:bt.flatMap(y.isUnion()?y.types:[y],function(e){var t=e.getProperty(m);return t&&ul(c,t,a)})}var b=bt.getContainingObjectLiteralElement(a);if(b){var v=b&&c.getContextualType(b.parent);if(v)return bt.flatMap(bt.getPropertySymbolsFromContextualType(b,c,v,!1),function(e){return ul(c,e,a)})}return ul(c,u,a)}function sl(e,t,n){var r=fl(e.referencedFiles,t);if(r)return(o=bt.tryResolveScriptReference(n,e,r))&&{fileName:r.fileName,file:o};var i=fl(e.typeReferenceDirectives,t);if(i){var a=n.getResolvedTypeReferenceDirectives().get(i.fileName);return(o=a&&n.getSourceFile(a.resolvedFileName))&&{fileName:i.fileName,file:o}}var o,s=fl(e.libReferenceDirectives,t);return s?(o=n.getLibFileFromReference(s))&&{fileName:s.fileName,file:o}:undefined}function cl(e,t,n){return bt.flatMap(!e.isUnion()||32&e.flags?[e]:e.types,function(e){return e.symbol&&ul(t,e.symbol,n)})}function ul(r,i,a){return function(){if(32&i.flags&&(bt.isNewExpressionTarget(a)||125===a.kind)){return e((bt.find(i.declarations,bt.isClassLike)||bt.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||(bt.isCallOrNewExpressionTarget(a)||bt.isNameOfFunctionDeclaration(a)?e(i.declarations,!1):undefined)||bt.map(i.declarations,function(e){return ll(e,r,i,a)});function e(e,t){if(!e)return undefined;var n=e.filter(t?bt.isConstructorDeclaration:bt.isFunctionLike);return n.length?[ll(bt.find(n,function(e){return!!e.body})||bt.last(n),r,i,a)]:undefined}}function ll(e,t,n,r){var i=t.symbolToString(n);return dl(e,bt.SymbolDisplay.getSymbolKind(t,n,r),i,n.parent?t.symbolToString(n.parent,r):"")}function dl(e,t,n,r){var i=bt.getNameOfDeclaration(e)||e,a=i.getSourceFile();return{fileName:a.fileName,textSpan:bt.createTextSpanFromNode(i,a),kind:t,name:n,containerKind:undefined,containerName:r}}function pl(e,t){return ll(t,e,t.symbol,t)}function fl(e,t){return bt.find(e,function(e){return bt.textRangeContainsPositionInclusive(e,t)})}function _l(e,t){if(e)for(var n=0;n<e.length;n++)if(e.indexOf(e[n])===n){var r=t(e[n],n);if(r)return r}return undefined}function hl(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Et.textPart(e)],documentation:Et.emptyArray,tags:undefined,codeActions:undefined}}function gl(e){switch(e.kind){case 240:case 197:case 157:case 158:case 156:return{commentOwner:e,parameters:e.parameters};case 276:return gl(e.initializer);case 241:case 242:case 154:case 244:case 279:case 243:return{commentOwner:e};case 220:var t=e.declarationList.declarations;return{commentOwner:e,parameters:1===t.length&&t[0].initializer?function(e){for(;196===e.kind;)e=e.expression;switch(e.kind){case 197:case 198:return e.parameters;case 210:var t=Et.find(e.members,Et.isConstructorDeclaration);return t?t.parameters:Et.emptyArray}return Et.emptyArray}(t[0].initializer):undefined};case 285:return"quit";case 245:return 245===e.parent.kind?undefined:{commentOwner:e};case 205:var n=e;return 0===Et.getAssignmentDeclarationKind(n)?"quit":{commentOwner:e,parameters:Et.isFunctionLike(n.right)?n.right.parameters:Et.emptyArray}}}function ml(e,t){return yl(e,t)||xt.isPropertyAccessExpression(e)&&(t.push(e.name.text),!0)&&ml(e.expression,t)}function yl(e,t){return xt.isPropertyNameLiteral(e)&&(t.push(xt.getTextOfIdentifierOrLiteral(e)),!0)}function bl(e,t){return xt.compareValues(e.matchKind,t.matchKind)||xt.compareStringsCaseSensitiveUI(e.name,t.name)}function vl(e){var t=e.declaration,n=xt.getContainerNode(t),r=n&&xt.getNameOfDeclaration(n);return{name:e.name,kind:xt.getNodeKind(t),kindModifiers:xt.getNodeModifiers(t),matchKind:xt.PatternMatchKind[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:xt.createTextSpanFromNode(t),containerName:r?r.text:"",containerKind:r?xt.getNodeKind(n):""}}function El(){kt=undefined,Dt=undefined,Vt=[],At=undefined,Pt=[]}function Il(e){return e.getText(kt)}function Tl(e){return e.node.kind}function Cl(e,t){e.children?e.children.push(t):e.children=[t]}function Bl(e){St.Debug.assert(!Vt.length);var t={node:e,name:undefined,additionalNodes:undefined,parent:undefined,children:undefined,indent:0};At=t;for(var n=0,r=e.statements;n<r.length;n++){Al(r[n])}return Dl(),St.Debug.assert(!At&&!Vt.length),t}function xl(e){Cl(At,Sl(e))}function Sl(e){return{node:e,name:St.isDeclaration(e)||St.isExpression(e)?St.getNameOfDeclaration(e):undefined,additionalNodes:undefined,parent:At,children:undefined,indent:At.indent+1}}function Nl(e){var t=Sl(e);Cl(At,t),Vt.push(At),At=t}function Dl(){At.children&&(wl(At.children,At),Ll(At.children)),At=Vt.pop()}function kl(e,t){Nl(e),Al(t),Dl()}function Al(e){var t;if(Dt.throwIfCancellationRequested(),e&&!St.isToken(e))switch(e.kind){case 158:var n=e;kl(n,n.body);for(var r=0,i=n.parameters;r<i.length;r++){var a=i[r];St.isParameterPropertyDeclaration(a)&&xl(a)}break;case 157:case 159:case 160:case 156:St.hasDynamicName(e)||kl(e,e.body);break;case 155:case 154:St.hasDynamicName(e)||xl(e);break;case 251:var o=e;o.name&&xl(o.name);var s=o.namedBindings;if(s)if(252===s.kind)xl(s);else for(var c=0,u=s.elements;c<u.length;c++){xl(u[c])}break;case 187:case 238:var l=e.name,d=e.initializer;St.isBindingPattern(l)?Al(l):d&&function(e){switch(e.kind){case 198:case 197:case 210:return!0;default:return!1}}(d)?d.name?Al(d):(Nl(e),St.forEachChild(d,Al),Dl()):kl(e,d);break;case 198:case 240:case 197:kl(e,e.body);break;case 244:Nl(e);for(var p=0,f=e.members;p<f.length;p++){var _=f[p];(t=_).name&&150!==t.name.kind&&xl(_)}Dl();break;case 241:case 210:case 242:Nl(e);for(var h=0,g=e.members;h<g.length;h++){Al(_=g[h])}Dl();break;case 245:kl(e,function y(e){return e.body&&St.isModuleDeclaration(e.body)?y(e.body):e}(e).body);break;case 258:case 249:case 163:case 161:case 162:case 243:xl(e);break;case 205:var m=St.getAssignmentDeclarationKind(e);switch(m){case 1:case 2:case 3:case 6:return void kl(e,e.right);case 4:case 5:case 0:case 7:case 8:case 9:break;default:St.Debug.assertNever(m)}default:St.hasJSDocNodes(e)&&St.forEach(e.jsDoc,function(e){St.forEach(e.tags,function(e){St.isJSDocTypeAlias(e)&&xl(e)})}),St.forEachChild(e,Al)}}function wl(e,s){var c=St.createMap();St.filterMutate(e,function(e){var t=St.getNameOfDeclaration(e.node),n=t&&Il(t);if(!n)return!0;var r=c.get(n);if(!r)return c.set(n,e),!0;if(r instanceof Array){for(var i,a=0,o=r;a<o.length;a++){if(Vl(i=o[a],e,s))return!1}return r.push(e),!0}return!Vl(i=r,e,s)&&(c.set(n,[i,e]),!0)})}function Vl(e,t,n){return function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!Pl(e,n)||!Pl(t,n)))return!1;switch(e.kind){case 155:case 157:case 159:case 160:return St.hasModifier(e,32)===St.hasModifier(t,32);case 245:return function r(e,t){return e.body.kind===t.body.kind&&(245!==e.body.kind||r(e.body,t.body))}(e,t);default:return!0}}(e.node,t.node,n)&&(function(e,t){var n;e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&(n=e.additionalNodes).push.apply(n,t.additionalNodes);e.children=St.concatenate(e.children,t.children),e.children&&(wl(e.children,e),Ll(e.children))}(e,t),1)}function Pl(e,t){var n=St.isModuleBlock(e.parent)?e.parent.parent:e.parent;return n===t.node||St.contains(t.additionalNodes,n)}function Ll(e){e.sort(Ml)}function Ml(e,t){return St.compareStringsCaseSensitiveUI(Fl(e.node),Fl(t.node))||St.compareValues(Tl(e),Tl(t))}function Fl(e){if(245===e.kind)return Wl(e);var t=St.getNameOfDeclaration(e);if(t&&St.isPropertyName(t))return St.unescapeLeadingUnderscores(St.getPropertyNameForPropertyNameNode(t));switch(e.kind){case 197:case 198:case 210:return Jl(e);default:return undefined}}function Ol(e,t){if(245===e.kind)return Wl(e);if(t){var n=Il(t);if(0<n.length)return n}switch(e.kind){case 285:var r=e;return St.isExternalModule(r)?'"'+St.escapeString(St.getBaseFileName(St.removeFileExtension(St.normalizePath(r.fileName))))+'"':"<global>";case 198:case 240:case 197:case 241:case 210:return 512&St.getModifierFlags(e)?"default":Jl(e);case 158:return"constructor";case 162:return"new()";case 161:return"()";case 163:return"[]";default:return"<unknown>"}}function Rl(e){return{text:Ol(e.node,e.name),kind:St.getNodeKind(e.node),kindModifiers:Yl(e.node),spans:jl(e),nameSpan:e.name&&Gl(e.name),childItems:St.map(e.children,Rl)}}function Hl(e){return{text:Ol(e.node,e.name),kind:St.getNodeKind(e.node),kindModifiers:Yl(e.node),spans:jl(e),childItems:St.map(e.children,function(e){return{text:Ol(e.node,e.name),kind:St.getNodeKind(e.node),kindModifiers:St.getNodeModifiers(e.node),spans:jl(e),childItems:Pt,indent:0,bolded:!1,grayed:!1}})||Pt,indent:e.indent,bolded:!1,grayed:!1}}function jl(e){var t=[Gl(e.node)];if(e.additionalNodes)for(var n=0,r=e.additionalNodes;n<r.length;n++){var i=r[n];t.push(Gl(i))}return t}function Wl(e){if(St.isAmbientModule(e))return St.getTextOfNode(e.name);var t=[];for(t.push(St.getTextOfIdentifierOrLiteral(e.name));e.body&&245===e.body.kind;)e=e.body,t.push(St.getTextOfIdentifierOrLiteral(e.name));return t.join(".")}function Gl(e){return 285===e.kind?St.createTextSpanFromRange(e):St.createTextSpanFromNode(e,kt)}function Yl(e){return e.parent&&238===e.parent.kind&&(e=e.parent),St.getNodeModifiers(e)}function Jl(e){var t=e.parent;if(e.name&&0<St.getFullWidth(e.name))return St.declarationNameToString(e.name);if(St.isVariableDeclaration(t))return St.declarationNameToString(t.name);if(St.isBinaryExpression(t)&&60===t.operatorToken.kind)return Il(t.left).replace(wt,"");if(St.isPropertyAssignment(t))return Il(t.name);if(512&St.getModifierFlags(e))return"default";if(St.isClassLike(e))return"<class>";if(St.isCallExpression(t)){var n=function r(e){{if(St.isIdentifier(e))return e.text;if(St.isPropertyAccessExpression(e)){var t=r(e.expression),n=e.name.text;return t===undefined?n:t+"."+n}return undefined}}(t.expression);if(n!==undefined)return n+"("+St.mapDefined(t.arguments,function(e){return St.isStringLiteralLike(e)?e.getText(kt):undefined}).join(", ")+") callback"}return"<function>"}function zl(e){return e!==undefined&&Lt.isStringLiteralLike(e)?e.text:undefined}function Ul(e){if(0===e.length)return e;var t=function(e){for(var t,n=[],r=[],i=[],a=0,o=e;a<o.length;a++){var s,c,u,l=o[a];l.importClause!==undefined?(s=l.importClause,c=s.name,u=s.namedBindings,c&&n.push(l),u&&(Lt.isNamespaceImport(u)?r.push(l):i.push(l))):t=t||l}return{importWithoutClause:t,defaultImports:n,namespaceImports:r,namedImports:i}}(e),n=t.importWithoutClause,r=t.defaultImports,i=t.namespaceImports,a=t.namedImports,o=[];if(n&&o.push(n),1===r.length&&1===i.length&&0===a.length){var s=r[0];return o.push(Zl(s,s.importClause.name,i[0].importClause.namedBindings)),o}for(var c,u=0,l=Lt.stableSort(i,function(e,t){return Ql(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});u<l.length;u++){var d=l[u];o.push(Zl(d,undefined,d.importClause.namedBindings))}if(0===r.length&&0===a.length)return o;var p=[];if(1===r.length)c=r[0].importClause.name;else for(var f=0,_=r;f<_.length;f++){s=_[f];p.push(Lt.createImportSpecifier(Lt.createIdentifier("default"),s.importClause.name))}p.push.apply(p,Lt.flatMap(a,function(e){return e.importClause.namedBindings.elements}));var h=Xl(p),g=0<r.length?r[0]:a[0],m=0===h.length?c?undefined:Lt.createNamedImports(Lt.emptyArray):0===a.length?Lt.createNamedImports(h):Lt.updateNamedImports(a[0].importClause.namedBindings,h);return o.push(Zl(g,c,m)),o}function Kl(e){if(0===e.length)return e;var t=function(e){for(var t,n=[],r=0,i=e;r<i.length;r++){var a=i[r];a.exportClause===undefined?t=t||a:n.push(a)}return{exportWithoutClause:t,namedExports:n}}(e),n=t.exportWithoutClause,r=t.namedExports,i=[];if(n&&i.push(n),0===r.length)return i;var a=[];a.push.apply(a,Lt.flatMap(r,function(e){return e.exportClause.elements}));var o=Xl(a),s=r[0];return i.push(Lt.updateExportDeclaration(s,s.decorators,s.modifiers,Lt.updateNamedExports(s.exportClause,o),s.moduleSpecifier)),i}function Zl(e,t,n){return Lt.updateImportDeclaration(e,e.decorators,e.modifiers,Lt.updateImportClause(e.importClause,t,n),e.moduleSpecifier)}function Xl(e){return Lt.stableSort(e,function(e,t){return Ql(e.propertyName||e.name,t.propertyName||t.name)||Ql(e.name,t.name)})}function ql(e,t){var n=zl(e),r=zl(t);return Lt.compareBooleans(n===undefined,r===undefined)||Lt.compareBooleans(Lt.isExternalModuleNameRelative(n),Lt.isExternalModuleNameRelative(r))||Lt.compareStringsCaseInsensitive(n,r)}function Ql(e,t){return Lt.compareStringsCaseInsensitive(e.text,t.text)}function $l(e,t){return{kind:e,isCaseSensitive:t}}function ed(e,t){var n=t.get(e);return n||t.set(e,n=fd(e)),n}function td(e,t,n){var r=function(r,e){for(var t=r.length-e.length,i=function i(n){if(yd(e,function(e,t){return ud(r.charCodeAt(t+n))===e}))return{value:n}},n=0;n<=t;n++){var a=i(n);if("object"===zb(a))return a.value}return-1}(e,t.textLowerCase);if(0===r)return $l(t.text.length===e.length?Rt.exact:Rt.prefix,Ot.startsWith(e,t.text));if(t.isLowerCase){if(-1===r)return undefined;for(var i=0,a=ed(e,n);i<a.length;i++){var o=a[i];if(ad(e,o,t.text,!0))return $l(Rt.substring,ad(e,o,t.text,!1))}if(t.text.length<e.length&&sd(e.charCodeAt(r)))return $l(Rt.substring,!1)}else{if(0<e.indexOf(t.text))return $l(Rt.substring,!0);if(0<t.characterSpans.length){var s=ed(e,n),c=!!od(e,s,t,!1)||!od(e,s,t,!0)&&undefined;if(c!==undefined)return $l(Rt.camelCase,c)}}}function nd(e,t,n){if(yd(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var r=td(e,t.totalTextChunk,n);if(r)return r}for(var i=0,a=t.subWordTextChunks;i<a.length;i++)var o=rd(o,td(e,a[i],n));return o}function rd(e,t){return Ot.min(e,t,id)}function id(e,t){return e===undefined?1:t===undefined?-1:Ot.compareValues(e.kind,t.kind)||Ot.compareBooleans(!e.isCaseSensitive,!t.isCaseSensitive)}function ad(r,i,a,o,s){return void 0===s&&(s={start:0,length:a.length}),s.length<=i.length&&md(0,s.length,function(e){return t=a.charCodeAt(s.start+e),n=r.charCodeAt(i.start+e),o?ud(t)===ud(n):t===n;var t,n})}function od(e,t,n,r){for(var i,a,o=n.characterSpans,s=0,c=0;;){if(c===o.length)return 1;if(s===t.length)return;for(var u=t[s],l=!1;c<o.length;c++){var d=o[c];if(l&&(!sd(n.text.charCodeAt(o[c-1].start))||!sd(n.text.charCodeAt(o[c].start))))break;if(!ad(e,u,n.text,r,d))break;l=!0,i=i===undefined?s:i,a=a===undefined||a,u=Ot.createTextSpan(u.start+d.length,u.length-d.length)}l||a===undefined||(a=!1),s++}}function sd(e){if(65<=e&&e<=90)return!0;if(e<127||!Ot.isUnicodeIdentifierStart(e,8))return!1;var t=String.fromCharCode(e);return t===t.toUpperCase()}function cd(e){if(97<=e&&e<=122)return!0;if(e<127||!Ot.isUnicodeIdentifierStart(e,8))return!1;var t=String.fromCharCode(e);return t===t.toLowerCase()}function ud(e){return 65<=e&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function ld(e){return 48<=e&&e<=57}function dd(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:pd(e)}}function pd(e){return _d(e,!1)}function fd(e){return _d(e,!0)}function _d(e,t){for(var n,r,i,a,o,s,c,u=[],l=0,d=1;d<e.length;d++){var p=ld(e.charCodeAt(d-1)),f=ld(e.charCodeAt(d)),_=(o=t,s=d,c=void 0,c=sd((a=e).charCodeAt(s-1)),sd(a.charCodeAt(s))&&(!o||!c)),h=t&&(n=e,(r=d)!==(i=l)&&r+1<n.length&&sd(n.charCodeAt(r))&&cd(n.charCodeAt(r+1))&&yd(n,sd,i,r));(hd(e.charCodeAt(d-1))||hd(e.charCodeAt(d))||p!==f||_||h)&&(gd(e,l,d)||u.push(Ot.createTextSpan(l,d-l)),l=d)}return gd(e,l,e.length)||u.push(Ot.createTextSpan(l,e.length-l)),u}function hd(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function gd(e,t,n){return yd(e,function(e){return hd(e)&&95!==e},t,n)}function md(e,t,n){for(var r=e;r<t;r++)if(!n(r))return!1;return!0}function yd(t,n,e,r){return void 0===e&&(e=0),void 0===r&&(r=t.length),md(e,r,function(e){return n(t.charCodeAt(e),e)})}function bd(e){return{canRename:!1,localizedErrorMessage:Wt.getLocaleSpecificMessage(e)}}function vd(e,t,n){var r=Jt.tryParseRawSourceMap(t);return r&&r.sources&&r.file&&r.mappings?Jt.createDocumentPositionMapper(e,r,n):undefined}function Ed(e,t,n){var r,i;r=e,i=t,!Ut.isAsyncFunction(r)&&r.body&&Ut.isBlock(r.body)&&function(e){return Ut.forEachReturnStatement(e,Id)}(r.body)&&function(e,t){var n=t.getTypeAtLocation(e),r=t.getSignaturesOfType(n,0),i=r.length?t.getReturnTypeOfSignature(r[0]):undefined;return i&&t.getPromisedTypeOfPromise(i)}(r,i)&&!Kt.has(xd(e))&&n.push(Ut.createDiagnosticForNode(!e.name&&Ut.isVariableDeclaration(e.parent)&&Ut.isIdentifier(e.parent.name)?e.parent.name:e,Ut.Diagnostics.This_may_be_converted_to_an_async_function))}function Id(e){return Ut.isReturnStatement(e)&&!!e.expression&&Td(e.expression)}function Td(e){if(!Cd(e)||!e.arguments.every(Bd))return!1;for(var t=e.expression;Cd(t)||Ut.isPropertyAccessExpression(t);){if(Ut.isCallExpression(t)&&!t.arguments.every(Bd))return!1;t=t.expression}return!0}function Cd(e){return Ut.isCallExpression(e)&&(Ut.hasPropertyAccessExpressionWithName(e,"then")||Ut.hasPropertyAccessExpressionWithName(e,"catch"))}function Bd(e){switch(e.kind){case 240:case 197:case 198:Kt.set(xd(e),!0);case 97:case 73:return!0;default:return!1}}function xd(e){return e.pos.toString()+":"+e.end.toString()}function Sd(e,t,n){var r=Nd(e,t,n);if(""!==r)return r;var i=Zt.getCombinedLocalAndExportSymbolFlags(t);return 32&i?Zt.getDeclarationOfKind(t,210)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i||262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function Nd(e,t,n){var r=e.getRootSymbols(t);if(1===r.length&&8192&Zt.first(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(101===n.kind&&Zt.isExpression(n))return"parameter";var i=Zt.getCombinedLocalAndExportSymbolFlags(t);if(3&i)return Zt.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&Zt.isVarConst(t.valueDeclaration)?"const":Zt.forEach(t.declarations,Zt.isLet)?"let":Dd(t)?"local var":"var";if(16&i)return Dd(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(4&i){if(33554432&i&&6&t.checkFlags){var a=Zt.forEach(e.getRootSymbols(t),function(e){var t=e.getFlags();if(98311&t)return"property";Zt.Debug.assert(!!(8208&t))});return a?a:e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property"}switch(n.parent&&n.parent.kind){case 263:case 261:case 262:return 73===n.kind?"property":"JSX attribute";case 268:return"JSX attribute";default:return"property"}}return""}function Dd(e){return!e.parent&&Zt.forEach(e.declarations,function(e){if(197===e.kind)return!0;if(238!==e.kind&&240!==e.kind)return!1;for(var t=e.parent;!Zt.isFunctionBlock(t);t=t.parent)if(285===t.kind||246===t.kind)return!1;return!0})}function kd(e,t){var n=[],r=t.compilerOptions?Ad(t.compilerOptions,n):qt.getDefaultCompilerOptions();r.isolatedModules=!0,r.suppressOutputPathCheck=!0,r.allowNonTsExtensions=!0,r.noLib=!0,r.lib=undefined,r.types=undefined,r.noEmit=undefined,r.noEmitOnError=undefined,r.paths=undefined,r.rootDirs=undefined,r.declaration=undefined,r.composite=undefined,r.declarationDir=undefined,r.out=undefined,r.outFile=undefined,r.noResolve=!0;var i=t.fileName||(r.jsx?"module.tsx":"module.ts"),a=qt.createSourceFile(i,e,r.target);t.moduleName&&(a.moduleName=t.moduleName),t.renamedDependencies&&(a.renamedDependencies=qt.createMapFromTemplate(t.renamedDependencies));var o,s,c=qt.getNewLineCharacter(r),u={getSourceFile:function(e){return e===qt.normalizePath(i)?a:undefined},writeFile:function(e,t){qt.fileExtensionIs(e,".map")?(qt.Debug.assertEqual(s,undefined,"Unexpected multiple source map outputs, file:",e),s=t):(qt.Debug.assertEqual(o,undefined,"Unexpected multiple outputs, file:",e),o=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return c},fileExists:function(e){return e===i},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},l=qt.createProgram([i],r,u);return t.reportDiagnostics&&(qt.addRange(n,l.getSyntacticDiagnostics(a)),qt.addRange(n,l.getOptionsDiagnostics())),l.emit(undefined,undefined,undefined,undefined,t.transformers),o===undefined?qt.Debug.fail("Output generation failed"):{outputText:o,diagnostics:n,sourceMapText:s}}function Ad(n,r){Qt=Qt||qt.filter(qt.optionDeclarations,function(e){return"object"===zb(e.type)&&!qt.forEachEntry(e.type,function(e){return"number"!=typeof e})}),n=qt.cloneCompilerOptions(n);for(var i=function i(e){if(!qt.hasProperty(n,e.name))return"continue";var t=n[e.name];qt.isString(t)?n[e.name]=qt.parseCustomTypeOption(e,t,r):qt.forEachEntry(e.type,function(e){return e===t})||r.push(qt.createCompilerDiagnosticForInvalidCustomType(e))},e=0,t=Qt;e<t.length;e++){i(t[e])}return n}function wd(e,t,n,r,i,a){return void 0===a&&(a=0),{leftTokenRange:Pd(t),rightTokenRange:Pd(n),rule:{debugName:e,context:r,action:i,flags:a}}}function Vd(e){return{tokens:e,isSpecific:!0}}function Pd(e){return"number"==typeof e?Vd([e]):ln.isArray(e)?Vd(e):e}function Ld(e,t,n){void 0===n&&(n=[]);for(var r=[],i=e;i<=t;i++)ln.contains(n,i)||r.push(i);return Vd(r)}function Md(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!!e.options[t]}}function Fd(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!e.options[t]}}function Od(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]}}function Rd(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]||e.TokensAreOnSameLine()}}function Hd(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!!e.options[t]}}function jd(e){return 226===e.contextNode.kind}function Wd(e){return!jd(e)}function Gd(e){switch(e.contextNode.kind){case 205:case 206:case 176:case 213:case 258:case 254:case 164:case 174:case 175:return!0;case 187:case 243:case 249:case 238:case 152:case 279:case 155:case 154:return 60===e.currentTokenSpan.kind||60===e.nextTokenSpan.kind;case 227:case 151:return 94===e.currentTokenSpan.kind||94===e.nextTokenSpan.kind||60===e.currentTokenSpan.kind||60===e.nextTokenSpan.kind;case 228:return 148===e.currentTokenSpan.kind||148===e.nextTokenSpan.kind}return!1}function Yd(e){return!Gd(e)}function Jd(e){return!zd(e)}function zd(e){var t=e.contextNode.kind;return 155===t||154===t||152===t||238===t||ln.isFunctionLikeKind(t)}function Ud(e){return 206===e.contextNode.kind||176===e.contextNode.kind}function Kd(e){return e.TokensAreOnSameLine()||$d(e)}function Zd(e){return 185===e.contextNode.kind||182===e.contextNode.kind||Qd(t=e)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine());var t}function Xd(e){return $d(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function qd(e){return Qd(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Qd(e){return ep(e.contextNode)}function $d(e){return ep(e.nextTokenParent)}function ep(e){if(ap(e))return!0;switch(e.kind){case 219:case 247:case 189:case 246:return!0}return!1}function tp(e){switch(e.contextNode.kind){case 240:case 157:case 156:case 159:case 160:case 161:case 197:case 158:case 198:case 242:return!0}return!1}function np(e){return!tp(e)}function rp(e){return 240===e.contextNode.kind||197===e.contextNode.kind}function ip(e){return ap(e.contextNode)}function ap(e){switch(e.kind){case 241:case 210:case 242:case 244:case 169:case 245:case 256:case 257:case 250:case 253:return!0}return!1}function op(e){switch(e.currentTokenParent.kind){case 241:case 245:case 244:case 275:case 246:case 233:return!0;case 219:var t=e.currentTokenParent.parent;if(!t||198!==t.kind&&197!==t.kind)return!0}return!1}function sp(e){switch(e.contextNode.kind){case 223:case 233:case 226:case 227:case 228:case 225:case 236:case 224:case 232:case 275:return!0;default:return!1}}function cp(e){return 189===e.contextNode.kind}function up(e){return 192===e.contextNode.kind||193===e.contextNode.kind}function lp(e){return 27!==e.currentTokenSpan.kind}function dp(e){return 23!==e.nextTokenSpan.kind}function pp(e){return 198===e.contextNode.kind}function fp(e){return 184===e.contextNode.kind}function _p(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function hp(e){return 261!==e.contextNode.kind&&265!==e.contextNode.kind}function gp(e){return 271===e.contextNode.kind||270===e.contextNode.kind}function mp(e){return 268===e.nextTokenParent.kind}function yp(e){return 268===e.contextNode.kind}function bp(e){return 262===e.contextNode.kind}function vp(e){return!tp(e)&&!$d(e)}function Ep(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&Ip(e.currentTokenParent)&&!Ip(e.nextTokenParent)}function Ip(e){for(;ln.isExpressionNode(e);)e=e.parent;return 153===e.kind}function Tp(e){return 239===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Cp(e){return 2!==e.formattingRequestKind}function Bp(e){return 245===e.contextNode.kind}function xp(e){return 169===e.contextNode.kind}function Sp(e){return 162===e.contextNode.kind}function Np(e,t){if(28!==e.kind&&30!==e.kind)return!1;switch(t.kind){case 165:case 195:case 243:case 241:case 210:case 242:case 240:case 197:case 198:case 157:case 156:case 161:case 162:case 192:case 193:case 212:return!0;default:return!1}}function Dp(e){return Np(e.currentTokenSpan,e.currentTokenParent)||Np(e.nextTokenSpan,e.nextTokenParent)}function kp(e){return 195===e.contextNode.kind}function Ap(e){return 107===e.currentTokenSpan.kind&&201===e.currentTokenParent.kind}function wp(e){return 208===e.contextNode.kind&&e.contextNode.expression!==undefined}function Vp(e){return 214===e.contextNode.kind}function Pp(e,t,n){var r=fn.findPrecedingToken(e,n);return r&&r.kind===t&&e===r.getEnd()?r:undefined}function Lp(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!function(e,t){switch(e.kind){case 241:case 242:return fn.rangeContainsRange(e.members,t);case 245:var n=e.body;return!!n&&246===n.kind&&fn.rangeContainsRange(n.statements,t);case 285:case 219:case 246:return fn.rangeContainsRange(e.statements,t);case 275:return fn.rangeContainsRange(e.block.statements,t)}return!1}(t.parent,t);)t=t.parent;return t}function Mp(r,i){return function a(e){var t=fn.forEachChild(e,function(e){return fn.startEndContainsRange(e.getStart(i),e.end,r)&&e});if(t){var n=a(t);if(n)return n}return e}(i)}function Fp(e,t,n,r){return e?Op({pos:fn.getLineStartPositionForPosition(e.getStart(t),t),end:e.end},t,n,r):[]}function Op(t,n,r,i){var a=Mp(t,n);return _n.getFormattingScanner(n.text,n.languageVariant,function(e,t,n){var r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;var i=fn.findPrecedingToken(t.pos,n);return!i||i.end>=t.pos?e.pos:i.end}(a,t,n),t.end,function(e){return Rp(t,a,_n.SmartIndenter.getIndentationForNode(a,t,n,r.options),function(e,t,n){for(var r,i=-1;e;){var a=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&a!==i)break;if(_n.SmartIndenter.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=a,e=(r=e).parent}return 0}(a,r.options,n),e,r,i,function(e,t){if(!e.length)return i;var n=e.filter(function(e){return fn.rangeOverlapsWithStartEnd(t,e.start,e.start+e.length)}).sort(function(e,t){return e.start-t.start});if(!n.length)return i;var r=0;return function(e){for(;;){if(r>=n.length)return!1;var t=n[r];if(e.end<=t.start)return!1;if(fn.startEndOverlapsWithStartEnd(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(n.parseDiagnostics,t),n)})}function Rp(y,t,e,n,b,r,i,v,E){var I,o,s,T,a,c,u,l,d,p,C=r.options,f=r.getRule,_=new _n.FormattingContext(E,i,C),B=-1,h=[];return b.advance(),b.isOnToken()&&(c=a=E.getLineAndCharacterOfPosition(t.getStart(E)).line,t.decorators&&(c=E.getLineAndCharacterOfPosition(fn.getNonDecoratorTokenPosOfNode(t,E)).line),function M(h,e,t,n,r,i){if(!fn.rangeOverlapsWithStartEnd(y,h.getStart(E),h.getEnd()))return;var a=N(h,t,r,i);var g=e;fn.forEachChild(h,function(e){_(e,-1,h,a,t,n,!1)},function(e){s(e,h,t,a)});for(;b.isOnToken();){var o=b.readTokenInfo(h);if(o.token.end>h.end)break;m(o,h,a,h)}function _(e,t,n,r,i,a,o,s){var c=e.getStart(E),u=E.getLineAndCharacterOfPosition(c).line,l=u;e.decorators&&(l=E.getLineAndCharacterOfPosition(fn.getNonDecoratorTokenPosOfNode(e,E)).line);var d=-1;if(o&&fn.rangeContainsRange(y,n)&&-1!==(d=x(c,e.end,i,y,t))&&(t=d),!fn.rangeOverlapsWithStartEnd(y,e.pos,e.end))return e.end<y.pos&&b.skipToEndOf(e),t;if(0===e.getFullWidth())return t;for(;b.isOnToken();){var p=b.readTokenInfo(h);if(p.token.end>c)break;m(p,h,r,h)}if(!b.isOnToken())return t;if(fn.isToken(e)&&11!==e.kind){var p=b.readTokenInfo(e);return fn.Debug.assert(p.token.end===e.end,"Token end is child end"),m(p,h,r,e),t}var f=153===e.kind?u:a,_=S(e,u,d,h,r,f);return M(e,g,u,l,_.indentation,_.delta),11===e.kind&&V({pos:e.getStart(),end:e.getEnd()},_.indentation,!0,!1),g=h,s&&188===n.kind&&-1===t&&(t=_.indentation),t}function s(e,t,n,r){fn.Debug.assert(fn.isNodeArray(e));var i=Hp(t,e),a=r,o=n;if(0!==i)for(;b.isOnToken();){var s,c,u=b.readTokenInfo(t);if(u.token.end>e.pos)break;u.token.kind===i?(o=E.getLineAndCharacterOfPosition(u.token.pos).line,m(u,t,r,t),s=void 0,s=-1!==B?B:(c=fn.getLineStartPositionForPosition(u.token.pos,E),_n.SmartIndenter.findFirstNonWhitespaceColumn(c,u.token.pos,E,C)),a=N(t,n,s,C.indentSize)):m(u,t,r,t)}for(var l=-1,d=0;d<e.length;d++){var p=e[d];l=_(p,l,h,a,o,o,!0,0===d)}var f=jp(i);0!==f&&b.isOnToken()&&(27===(u=b.readTokenInfo(t)).token.kind&&fn.isCallLikeExpression(t)&&(b.advance(),u=b.isOnToken()?b.readTokenInfo(t):undefined),u&&u.token.kind===f&&fn.rangeContainsRange(t,u.token)&&m(u,t,a,t,!0))}function m(e,t,n,r,i){fn.Debug.assert(fn.rangeContainsRange(t,e.token));var a=b.lastTrailingTriviaWasNewLine(),o=!1;e.leadingTrivia&&k(e.leadingTrivia,t,g,n);var s,c,u,l,d,p,f=0,_=fn.rangeContainsRange(y,e.token),h=E.getLineAndCharacterOfPosition(e.token.pos);_&&(s=v(e.token),c=I,f=A(e.token,h,t,g,n),s||(o=0===f?(u=c&&E.getLineAndCharacterOfPosition(c.end).line,a&&h.line!==u):1===f)),e.trailingTrivia&&k(e.trailingTrivia,t,g,n),o&&(l=_&&!v(e.token)?n.getIndentationForToken(h.line,e.token.kind,r,!!i):-1,d=!0,e.leadingTrivia&&(p=n.getIndentationForComment(e.token.kind,l,r),d=D(e.leadingTrivia,p,d,function(e){return w(e.pos,p,!1),0})),-1!==l&&d&&(w(e.token.pos,l,1===f),T=h.line,B=l)),b.advance(),g=t}}(t,t,a,c,e,n)),b.isOnToken()||(u=b.getCurrentLeadingTrivia())&&(D(u,e,!1,function(e){return A(e,E.getLineAndCharacterOfPosition(e.pos),t,t,undefined)}),l=I?I.end:y.pos,d=E.getLineAndCharacterOfPosition(l).line,p=E.getLineAndCharacterOfPosition(y.end).line,g(d,p+1,I)),h;function x(e,t,n,r,i){if(fn.rangeOverlapsWithStartEnd(r,e,t)||fn.rangeContainsStartEnd(r,e,t)){if(-1!==i)return i}else{var a=E.getLineAndCharacterOfPosition(e).line,o=fn.getLineStartPositionForPosition(e,E),s=_n.SmartIndenter.findFirstNonWhitespaceColumn(o,e,E,C);if(a!==n||e===s){var c=_n.SmartIndenter.getBaseIndentation(C);return s<c?c:s}}return-1}function S(e,t,n,r,i,a){var o=_n.SmartIndenter.shouldIndentChildNode(C,e)?C.indentSize:0;return a===t?{indentation:t===T?B:i.getIndentation(),delta:Math.min(C.indentSize,i.getDelta(e)+o)}:-1===n?20===e.kind&&t===T?{indentation:B,delta:i.getDelta(e)}:_n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,E)?{indentation:i.getIndentation(),delta:o}:{indentation:i.getIndentation()+i.getDelta(e),delta:o}:{indentation:n,delta:o}}function N(i,a,o,t){return{getIndentationForComment:function(e,t,n){switch(e){case 19:case 23:case 21:return o+s(n)}return-1!==t?t:o},getIndentationForToken:function(e,t,n,r){return!r&&function(e,t,n){switch(t){case 18:case 19:case 21:case 84:case 108:case 58:return!1;case 42:case 30:switch(n.kind){case 263:case 264:case 262:return!1}break;case 22:case 23:if(182!==n.kind)return!1}return a!==e&&!(i.decorators&&t===function(e){if(e.modifiers&&e.modifiers.length)return e.modifiers[0].kind;switch(e.kind){case 241:return 77;case 242:return 111;case 240:return 91;case 244:return 244;case 159:return 127;case 160:return 138;case 157:if(e.asteriskToken)return 40;case 155:case 152:var t=fn.getNameOfDeclaration(e);if(t)return t.kind}}(i))}(e,t,n)?o+s(n):o},getIndentation:function(){return o},getDelta:s,recomputeIndentation:function(e){i.parent&&_n.SmartIndenter.shouldIndentChildNode(C,i.parent,i,E)&&(o+=e?C.indentSize:-C.indentSize,t=_n.SmartIndenter.shouldIndentChildNode(C,i)?C.indentSize:0)}};function s(e){return _n.SmartIndenter.nodeWillIndentChild(C,i,e,E,!0)?t:0}}function D(e,t,n,r){for(var i=0,a=e;i<a.length;i++){var o=a[i],s=fn.rangeContainsRange(y,o);switch(o.kind){case 3:s&&V(o,t,!n),n=!1;break;case 2:n&&s&&r(o),n=!1;break;case 4:n=!0}}return n}function k(e,t,n,r){for(var i=0,a=e;i<a.length;i++){var o=a[i];fn.isComment(o.kind)&&fn.rangeContainsRange(y,o)&&A(o,E.getLineAndCharacterOfPosition(o.pos),t,n,r)}}function A(e,t,n,r,i){var a=0;return v(e)||(I?a=function(e,t,n,r,i,a,o,s){_.updateContext(r,a,e,n,o);var c,u=f(_),l=0;if(u){switch(l=function(e,t,n,r,i){var a=i!==n;switch(e.action){case 1:return 0;case 8:if(t.end!==r.pos)return P(t.end,r.pos-t.end),a?2:0;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return L(t.end,r.pos-t.end,C.newLineCharacter),a?0:1;break;case 2:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==E.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0}return 0}(u,r,i,e,t)){case 2:n.getStart(E)===e.pos&&s.recomputeIndentation(!1);break;case 1:n.getStart(E)===e.pos&&s.recomputeIndentation(!0);break;default:fn.Debug.assert(0===l)}c=!(8&u.action)&&1!==u.flags}else c=!0;t!==i&&c&&g(i,t,r);return l}(e,t.line,n,I,s,o,r,i):g(E.getLineAndCharacterOfPosition(y.pos).line,t.line)),I=e,o=n,s=t.line,a}function w(e,t,n){var r,i,a,o,s=Wp(t,C);n?L(e,0,s):(r=E.getLineAndCharacterOfPosition(e),t===function(e,t){for(var n=0,r=0;r<t;r++)9===E.text.charCodeAt(e+r)?n+=C.tabSize-n%C.tabSize:n++;return n}(i=fn.getStartPositionOfLine(r.line,E),r.character)&&(o=i,(a=s)===E.text.substr(o,a.length))||L(i,r.character,s))}function V(e,t,n,r){void 0===r&&(r=!0);var i=E.getLineAndCharacterOfPosition(e.pos).line,a=E.getLineAndCharacterOfPosition(e.end).line;if(i!==a){for(var o=[],s=e.pos,c=i;c<a;c++){var u=fn.getEndLinePosition(c,E);o.push({pos:s,end:u}),s=fn.getStartPositionOfLine(c+1,E)}if(r&&o.push({pos:s,end:e.end}),0!==o.length){var l=fn.getStartPositionOfLine(i,E),d=_n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(l,o[0].pos,E,C);if(t!==d.column){var p=0;n&&(p=1,i++);for(var f=t-d.column,_=p;_<o.length;_++,i++){var h,g=fn.getStartPositionOfLine(i,E),m=0===_?d:_n.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(o[_].pos,o[_].end,E,C),y=m.column+f;0<y?(h=Wp(y,C),L(g,m.character,h)):P(g,m.character)}}}}else n||w(e.pos,t,!1)}function g(e,t,n){for(var r=e;r<t;r++){var i,a=fn.getStartPositionOfLine(r,E),o=fn.getEndLinePosition(r,E);n&&(fn.isComment(n.kind)||fn.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o||-1!==(i=function(e,t){var n=t;for(;e<=n&&fn.isWhiteSpaceSingleLine(E.text.charCodeAt(n));)n--;return n===t?-1:n+1}(a,o))&&(fn.Debug.assert(i===a||!fn.isWhiteSpaceSingleLine(E.text.charCodeAt(i-1))),P(i,o+1-i))}}function P(e,t){t&&h.push(fn.createTextChangeFromStartLength(e,t,""))}function L(e,t,n){(t||n)&&h.push(fn.createTextChangeFromStartLength(e,t,n))}}function Hp(e,t){switch(e.kind){case 158:case 240:case 197:case 157:case 156:case 198:if(e.typeParameters===t)return 28;if(e.parameters===t)return 20;break;case 192:case 193:if(e.typeArguments===t)return 28;if(e.arguments===t)return 20;break;case 165:if(e.typeArguments===t)return 28;break;case 169:return 18}return 0}function jp(e){switch(e){case 20:return 21;case 28:return 30;case 18:return 19}return 0}function Wp(e,t){if((!mn||mn.tabSize!==t.tabSize||mn.indentSize!==t.indentSize)&&(mn={tabSize:t.tabSize,indentSize:t.indentSize},yn=bn=undefined),t.convertTabsToSpaces){var n=void 0,r=Math.floor(e/t.indentSize),i=e%t.indentSize;return(bn=bn||[])[r]===undefined?(n=fn.repeatString(" ",t.indentSize*r),bn[r]=n):n=bn[r],i?n+fn.repeatString(" ",i):n}var a=Math.floor(e/t.tabSize),o=e-a*t.tabSize,s=void 0;return(yn=yn||[])[a]===undefined?yn[a]=s=fn.repeatString("\t",a):s=yn[a],o?s+fn.repeatString(" ",o):s}function Gp(e){return e.baseIndentSize||0}function Yp(e,t,n,r,i,a,o){for(var s,c,u,l,d,p,f,_,h,g,m=e.parent;m;){var y,b=!0;n&&(b=(y=e.getStart(i))<n.pos||y>n.end);var v=(f=m,g=h=void 0,h=Kp(e,_=i),g=h?h.pos:f.getStart(_),_.getLineAndCharacterOfPosition(g)),E=v.line===t.line||Up(m,e,t.line,i);if(b){var I=qp(e,i,o,!E);if(-1!==I)return I+r;if(s=e,c=m,u=t,l=E,d=i,p=o,-1!==(I=!vn.isDeclaration(s)&&!vn.isStatementButNotDeclaration(s)||285!==c.kind&&l?-1:$p(u,d,p)))return I+r}rf(o,m,e,i,a)&&!E&&(r+=o.indentSize);var T=zp(m,e,t.line,i),m=(e=m).parent;t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return r+Gp(o)}function Jp(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function zp(e,t,n,r){if(!vn.isCallExpression(e)||!vn.contains(e.arguments,t))return!1;var i=e.expression.getEnd();return vn.getLineAndCharacterOfPosition(r,i).line===n}function Up(e,t,n,r){if(223!==e.kind||e.elseStatement!==t)return!1;var i=vn.findChildOfKind(e,84,r);return vn.Debug.assert(i!==undefined),Jp(i,r).line===n}function Kp(e,t){return e.parent&&Zp(e.getStart(t),e.getEnd(),e.parent,t)}function Zp(t,n,r,i){switch(r.kind){case 165:return e(r.typeArguments);case 189:return e(r.properties);case 188:return e(r.elements);case 169:return e(r.members);case 240:case 197:case 198:case 157:case 156:case 161:case 158:case 167:case 162:return e(r.typeParameters)||e(r.parameters);case 241:case 210:case 242:case 243:case 309:return e(r.typeParameters);case 193:case 192:return e(r.typeArguments)||e(r.arguments);case 239:return e(r.declarations);case 253:case 257:return e(r.elements);case 185:case 186:return e(r.elements)}function e(e){return e&&vn.rangeContainsStartEnd(function(e,t,n){for(var r=e.getChildren(n),i=1;i<r.length-1;i++)if(r[i].pos===t.pos&&r[i].end===t.end)return{pos:r[i-1].end,end:r[i+1].getStart(n)};return t}(r,e,i),t,n)?e:undefined}}function Xp(e,t,n){return e?$p(t.getLineAndCharacterOfPosition(e.pos),t,n):-1}function qp(e,t,n,r){if(e.parent&&239===e.parent.kind)return-1;var i=Kp(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=Qp(i,a,t,n);if(-1!==o)return o}return Xp(i,t,n)+(r?n.indentSize:0)}return-1}function Qp(e,t,n,r){vn.Debug.assert(0<=t&&t<e.length);for(var i=Jp(e[t],n),a=t-1;0<=a;a--)if(27!==e[a].kind){if(n.getLineAndCharacterOfPosition(e[a].end).line!==i.line)return $p(i,n,r);i=Jp(e[a],n)}return-1}function $p(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return tf(r,r+e.character,t,n)}function ef(e,t,n,r){for(var i=0,a=0,o=e;o<t;o++){var s=n.text.charCodeAt(o);if(!vn.isWhiteSpaceSingleLine(s))break;9===s?a+=r.tabSize+a%r.tabSize:a++,i++}return{column:a,character:i}}function tf(e,t,n,r){return ef(e,t,n,r).column}function nf(e,t,n,r,i){var a,o,s,c,u,l=n?n.kind:0;switch(t.kind){case 222:case 241:case 210:case 242:case 244:case 243:case 188:case 219:case 246:case 189:case 169:case 182:case 171:case 247:case 273:case 272:case 196:case 190:case 192:case 193:case 220:case 255:case 231:case 206:case 186:case 185:case 263:case 266:case 262:case 271:case 156:case 161:case 162:case 152:case 166:case 167:case 178:case 194:case 202:case 257:case 253:case 258:case 254:case 155:return!0;case 238:case 276:return!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&189===l?(a=r,o=n,s=vn.skipTrivia(a.text,o.pos),c=a.getLineAndCharacterOfPosition(s).line,u=a.getLineAndCharacterOfPosition(o.end).line,c===u):!0;case 224:case 225:case 227:case 228:case 226:case 223:case 240:case 197:case 157:case 198:case 158:case 159:case 160:return 219!==l;case 256:return 257!==l;case 250:return 251!==l||!!n.namedBindings&&253!==n.namedBindings.kind;case 261:return 264!==l;case 265:return 267!==l;case 175:case 174:if(169===l)return!1}return i}function rf(e,t,n,r,i){return void 0===i&&(i=!1),nf(e,t,n,r,!1)&&!(i&&n&&function(e,t){switch(e){case 231:case 235:case 229:case 230:return 219!==t.kind;default:return}}(n.kind,t))}function af(e){return xn.isArray(e)?xn.formatStringFromArgs(xn.getLocaleSpecificMessage(e[0]),e.slice(1)):xn.getLocaleSpecificMessage(e)}function of(e,t,n,r,i,a){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:a?[a]:undefined}}function sf(e,t){return{changes:e,commands:t}}function cf(e,t,n){for(var r=e.program,i=e.sourceFile,a=e.cancellationToken,o=0,s=r.getSemanticDiagnostics(i,a).concat(xn.computeSuggestionDiagnostics(i,r,a));o<s.length;o++){var c=s[o];xn.contains(t,c.code)&&n(c)}}function uf(e,t,n){var r=Vn.getTokenAtPosition(t,n),i=Vn.Debug.assertDefined(Vn.findAncestor(r,function(e){return Vn.isAsExpression(e)||Vn.isTypeAssertion(e)})),a=Vn.isAsExpression(i)?Vn.createAsExpression(i.expression,Vn.createKeywordTypeNode(144)):Vn.createTypeAssertion(Vn.createKeywordTypeNode(144),i.expression);e.replaceNode(t,i.expression,a)}function lf(e,t,n){var r=On.getTokenAtPosition(t,n),i=On.findAncestor(r,On.isDecorator);On.Debug.assert(!!i,"Expected position to be owned by a decorator.");var a=On.createCall(i.expression,undefined,undefined);e.replaceNode(t,i.expression,a)}function df(e,t,n){var r=Wn.getTokenAtPosition(t,n);if(!Wn.isIdentifier(r))return Wn.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+Wn.Debug.formatSyntaxKind(r.kind));var i=r.parent;if(!Wn.isParameter(i))return Wn.Debug.fail("Tried to add a parameter name to a non-parameter: "+Wn.Debug.formatSyntaxKind(r.kind));var a=i.parent.parameters.indexOf(i);Wn.Debug.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),Wn.Debug.assert(-1<a,"Parameter not found in parent parameter list.");var o=Wn.createParameter(undefined,i.modifiers,i.dotDotDotToken,"arg"+a,i.questionToken,Wn.createTypeReferenceNode(r,undefined),i.initializer);e.replaceNode(t,r,o)}function pf(e,t){var n=zn.getTokenAtPosition(e,t);return zn.tryCast(zn.isParameter(n.parent)?n.parent.parent:n.parent,ff)}function ff(e){return t=e,(zn.isFunctionLikeDeclaration(t)||238===t.kind||154===t.kind||155===t.kind)&&_f(e);var t}function _f(e){return zn.isFunctionLikeDeclaration(e)?e.parameters.some(_f)||!e.type&&!!zn.getJSDocReturnType(e):!e.type&&!!zn.getJSDocType(e)}function hf(e,t,n){if(zn.isFunctionLikeDeclaration(n)&&(zn.getJSDocReturnType(n)||n.parameters.some(function(e){return!!zn.getJSDocType(e)}))){var r;n.typeParameters||(r=zn.getJSDocTypeParameterDeclarations(n)).length&&e.insertTypeParameters(t,n,r);var i=zn.isArrowFunction(n)&&!zn.findChildOfKind(n,20,t);i&&e.insertNodeBefore(t,zn.first(n.parameters),zn.createToken(20));for(var a,o=0,s=n.parameters;o<s.length;o++){var c,u=s[o];u.type||(c=zn.getJSDocType(u))&&e.tryInsertTypeAnnotation(t,u,gf(c))}i&&e.insertNodeAfter(t,zn.last(n.parameters),zn.createToken(21)),n.type||(a=zn.getJSDocReturnType(n))&&e.tryInsertTypeAnnotation(t,n,gf(a))}else{var l=zn.Debug.assertDefined(zn.getJSDocType(n));zn.Debug.assert(!n.type),e.tryInsertTypeAnnotation(t,n,gf(l))}}function gf(e){switch(e.kind){case 290:case 291:return zn.createTypeReferenceNode("any",zn.emptyArray);case 294:return a=e,zn.createUnionTypeNode([zn.visitNode(a.type,gf),zn.createTypeReferenceNode("undefined",zn.emptyArray)]);case 293:return gf(e.type);case 292:return i=e,zn.createUnionTypeNode([zn.visitNode(i.type,gf),zn.createTypeReferenceNode("null",zn.emptyArray)]);case 296:return r=e,zn.createArrayTypeNode(zn.visitNode(r.type,gf));case 295:return n=e,zn.createFunctionTypeNode(zn.emptyArray,n.parameters.map(mf),n.type);case 165:return function(e){var t=e.typeName,n=e.typeArguments;if(zn.isIdentifier(e.typeName)){if(zn.isJSDocIndexSignature(e))return function(e){var t=zn.createParameter(undefined,undefined,undefined,136===e.typeArguments[0].kind?"n":"s",undefined,zn.createTypeReferenceNode(136===e.typeArguments[0].kind?"number":"string",[]),undefined),n=zn.createTypeLiteralNode([zn.createIndexSignature(undefined,undefined,[t],e.typeArguments[1])]);return zn.setEmitFlags(n,1),n}(e);var r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=zn.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?zn.visitNodes(e.typeArguments,gf):zn.createNodeArray([zn.createTypeReferenceNode("any",zn.emptyArray)])}return zn.createTypeReferenceNode(t,n)}(e);default:var t=zn.visitEachChild(e,gf,undefined);return zn.setEmitFlags(t,1),t}var n,r,i,a}function mf(e){var t=e.parent.parameters.indexOf(e),n=296===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?zn.createToken(25):e.dotDotDotToken;return zn.createParameter(e.decorators,e.modifiers,i,r,e.questionToken,zn.visitNode(e.type,gf),e.initializer)}function yf(e,t,n,r,i,a,o,s){if(!Xn.isParameterPropertyModifier(n.kind)&&73!==n.kind&&25!==n.kind&&101!==n.kind)return undefined;var c=n.parent;switch(r=function(e){switch(e){case Xn.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return Xn.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case Xn.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Xn.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case Xn.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Xn.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case Xn.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Xn.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case Xn.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return Xn.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case Xn.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return Xn.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case Xn.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return Xn.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case Xn.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Xn.Diagnostics.Member_0_implicitly_has_an_1_type.code}return e}(r)){case Xn.Diagnostics.Member_0_implicitly_has_an_1_type.code:case Xn.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Xn.isVariableDeclaration(c)&&o(c)||Xn.isPropertyDeclaration(c)||Xn.isPropertySignature(c))return bf(e,t,c,i,s,a),c;if(Xn.isPropertyAccessExpression(c)){var u,l=Bf(c.name,i,a),d=Xn.getTypeNodeIfAccessible(l,c,i,s);return d&&(u=Xn.createJSDocTypeTag(Xn.createJSDocTypeExpression(d),""),Tf(e,t,Xn.cast(c.parent.parent,Xn.isExpressionStatement),[u])),c}return undefined;case Xn.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var p=i.getTypeChecker().getSymbolAtLocation(n);return p&&p.valueDeclaration&&Xn.isVariableDeclaration(p.valueDeclaration)&&o(p.valueDeclaration)?(bf(e,t,p.valueDeclaration,i,s,a),p.valueDeclaration):undefined}var f=Xn.getContainingFunction(n);if(f===undefined)return undefined;switch(r){case Xn.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(Xn.isSetAccessorDeclaration(f))return vf(e,t,f,i,s,a),f;case Xn.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(o(f)){var _=Xn.cast(c,Xn.isParameter);return function(e,t,n,r,i,a,o){if(!Xn.isIdentifier(n.name))return;var s=function(e,t,n,r){var i;switch(e.kind){case 158:i=Xn.findChildOfKind(e,125,t);break;case 198:case 197:var a=e.parent;i=Xn.isVariableDeclaration(a)&&Xn.isIdentifier(a.name)?a.name:e.name;break;case 240:case 157:i=e.name}if(i)return Qn.inferTypeForParametersFromReferences(Cf(i,n,r),e,n,r)}(r,t,i,o)||r.parameters.map(function(e){return{declaration:e,type:Xn.isIdentifier(e.name)?Bf(e.name,i,o):i.getTypeChecker().getAnyType()}});if(Xn.Debug.assert(r.parameters.length===s.length),Xn.isInJSFile(r))If(e,t,s,i,a);else{var c=Xn.isArrowFunction(r)&&!Xn.findChildOfKind(r,20,t);c&&e.insertNodeBefore(t,Xn.first(r.parameters),Xn.createToken(20));for(var u=0,l=s;u<l.length;u++){var d=l[u],p=d.declaration,f=d.type;!p||p.type||p.initializer||Ef(e,t,p,f,i,a)}c&&e.insertNodeAfter(t,Xn.last(r.parameters),Xn.createToken(21))}}(e,t,_,f,i,s,a),_}return undefined;case Xn.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case Xn.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return Xn.isGetAccessorDeclaration(f)&&Xn.isIdentifier(f.name)?(Ef(e,t,f,Bf(f.name,i,a),i,s),f):undefined;case Xn.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return Xn.isSetAccessorDeclaration(f)?(vf(e,t,f,i,s,a),f):undefined;default:return Xn.Debug.fail(String(r))}}function bf(e,t,n,r,i,a){Xn.isIdentifier(n.name)&&Ef(e,t,n,Bf(n.name,r,a),r,i)}function vf(e,t,n,r,i,a){var o,s=Xn.firstOrUndefined(n.parameters);s&&Xn.isIdentifier(n.name)&&Xn.isIdentifier(s.name)&&((o=Bf(n.name,r,a))===r.getTypeChecker().getAnyType()&&(o=Bf(s.name,r,a)),Xn.isInJSFile(n)?If(e,t,[{declaration:s,type:o}],r,i):Ef(e,t,s,o,r,i))}function Ef(e,t,n,r,i,a){var o=Xn.getTypeNodeIfAccessible(r,n,i,a);if(o)if(Xn.isInJSFile(t)&&154!==n.kind){var s=Xn.isVariableDeclaration(n)?Xn.tryCast(n.parent.parent,Xn.isVariableStatement):n;if(!s)return;var c=Xn.createJSDocTypeExpression(o);Tf(e,t,s,[Xn.isGetAccessorDeclaration(n)?Xn.createJSDocReturnTag(c,""):Xn.createJSDocTypeTag(c,"")])}else e.tryInsertTypeAnnotation(t,n,o)}function If(e,t,n,i,a){var r=n.length&&n[0].declaration.parent;r&&Tf(e,t,r,Xn.mapDefined(n,function(e){var t=e.declaration;if(!t.initializer&&!Xn.getJSDocType(t)&&Xn.isIdentifier(t.name)){var n=e.type&&Xn.getTypeNodeIfAccessible(e.type,t,i,a),r=Xn.getSynthesizedClone(t.name);return Xn.setEmitFlags(r,3584),n&&Xn.createJSDocParamTag(r,!!e.isOptional,Xn.createJSDocTypeExpression(n),"")}}))}function Tf(e,t,n,r){var i,a=Xn.mapDefined(n.jsDoc,function(e){return e.comment}),o=Xn.flatMapToMutable(n.jsDoc,function(e){return e.tags}),s=r.filter(function(r){return!o||!o.some(function(e,t){var n=function(e,t){if(e.kind!==t.kind)return undefined;switch(e.kind){case 305:var n=e,r=t;return Xn.isIdentifier(n.name)&&Xn.isIdentifier(r.name)&&n.name.escapedText===r.name.escapedText?Xn.createJSDocParamTag(r.name,r.isBracketed,r.typeExpression,n.comment):undefined;case 306:return Xn.createJSDocReturnTag(t.typeExpression,e.comment)}}(e,r);return n&&(o[t]=n),!!n})}),c=Xn.createJSDocComment(a.join("\n"),Xn.createNodeArray((o||Xn.emptyArray).concat(s))),u=198===n.kind?155!==(i=n).parent.kind?i.parent.parent:i.parent:n;u.jsDoc=n.jsDoc,u.jsDocCache=n.jsDocCache,e.insertJsdocCommentBefore(t,u,c)}function Cf(e,t,n){return Xn.mapDefined(Xn.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),function(e){return 0!==e.kind?Xn.tryCast(e.node,Xn.isIdentifier):undefined})}function Bf(e,t,n){var r=Cf(e,t,n),i=t.getTypeChecker(),a=Qn.inferTypesFromReferences(r,i,n);return Qn.unifyFromContext(a,i)}function xf(e,t,n){for(var r={},i=0,a=e;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),Sf(o,t,r)}return kf(r,t)}function Sf(e,t,n){for(;Xn.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;switch(e.parent.kind){case 204:n.isNumber=!0;break;case 203:!function(e,t){switch(e.operator){case 44:case 45:case 39:case 53:t.isNumber=!0;break;case 38:t.isNumberOrString=!0}}(e.parent,n);break;case 205:!function(e,t,n,r){switch(t.operatorToken.kind){case 41:case 40:case 42:case 43:case 46:case 47:case 48:case 49:case 50:case 51:case 62:case 64:case 63:case 65:case 66:case 70:case 71:case 72:case 67:case 69:case 68:case 39:case 28:case 31:case 30:case 32:var i=n.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?Vf(r,i):r.isNumber=!0;break;case 61:case 38:var a=n.getTypeAtLocation(t.left===e?t.right:t.left);1056&a.flags?Vf(r,a):296&a.flags?r.isNumber=!0:132&a.flags?r.isString=!0:r.isNumberOrString=!0;break;case 60:case 33:case 35:case 36:case 34:Vf(r,n.getTypeAtLocation(t.left===e?t.right:t.left));break;case 94:e===t.left&&(r.isString=!0);break;case 55:e!==t.left||238!==e.parent.parent.kind&&!Xn.isAssignmentExpression(e.parent.parent,!0)||Vf(r,n.getTypeAtLocation(t.right))}}(e,e.parent,t,n);break;case 272:case 273:o=e.parent,Vf(n,t.getTypeAtLocation(o.parent.parent.expression));break;case 192:case 193:e.parent.expression===e?function(e,t,n){var r={argumentTypes:[],returnType:{}};if(e.arguments)for(var i=0,a=e.arguments;i<a.length;i++){var o=a[i];r.argumentTypes.push(t.getTypeAtLocation(o))}Sf(e,t,r.returnType),192===e.kind?(n.callContexts||(n.callContexts=[])).push(r):(n.constructContexts||(n.constructContexts=[])).push(r)}(e.parent,t,n):Nf(e,t,n);break;case 190:!function(e,t,n){var r=Xn.escapeLeadingUnderscores(e.name.text);n.properties||(n.properties=Xn.createUnderscoreEscapedMap());var i=n.properties.get(r)||{};Sf(e,t,i),n.properties.set(r,i)}(e.parent,t,n);break;case 191:!function(e,t,n,r){{if(t===e.argumentExpression)return r.isNumberOrString=!0;var i=n.getTypeAtLocation(e.argumentExpression),a={};Sf(e,n,a),296&i.flags?r.numberIndexContext=a:r.stringIndexContext=a}}(e.parent,e,t,n);break;case 238:var r=e.parent,i=r.name,a=r.initializer;if(e===i){a&&Vf(n,t.getTypeAtLocation(a));break}default:return Nf(e,t,n),0}var o}function Nf(e,t,n){Xn.isExpressionNode(e)&&Vf(n,t.getContextualType(e))}function Df(e,t,n){if(void 0===n&&(n=t.getAnyType()),!e.length)return n;var r=t.getUnionType([t.getStringType(),t.getNumberType()]),i=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++)for(var a=i[r],o=0,s=t;o<s.length;o++){var c=s[o],u=c.high,l=c.low;u(a)&&(Xn.Debug.assert(!l(a)),n.push(l))}return e.filter(function(t){return n.every(function(e){return!e(t)})})}(e,[{high:function(e){return e===t.getStringType()||e===t.getNumberType()},low:function(e){return e===r}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(e){return!(114689&e.flags||16&t.getObjectFlags(e))},low:function(e){return!!(16&t.getObjectFlags(e))}}]),a=i.filter(function(e){return 16&t.getObjectFlags(e)});return a.length&&(i=i.filter(function(e){return!(16&t.getObjectFlags(e))})).push(function(i,a){if(1===i.length)return i[0];for(var e=[],t=[],n=[],r=[],o=!1,s=!1,c=Xn.createMultiMap(),u=0,l=i;u<l.length;u++){for(var d=l[u],p=0,f=a.getPropertiesOfType(d);p<f.length;p++){var _=f[p];c.add(_.name,a.getTypeOfSymbolAtLocation(_,_.valueDeclaration))}e.push.apply(e,a.getSignaturesOfType(d,0)),t.push.apply(t,a.getSignaturesOfType(d,1)),d.stringIndexInfo&&(n.push(d.stringIndexInfo.type),o=o||d.stringIndexInfo.isReadonly),d.numberIndexInfo&&(r.push(d.numberIndexInfo.type),s=s||d.numberIndexInfo.isReadonly)}var h=Xn.mapEntries(c,function(e,t){var n=t.length<i.length?16777216:0,r=a.createSymbol(4|n,e);return r.type=a.getUnionType(t),[e,r]});return a.createAnonymousType(i[0].symbol,h,e,t,n.length?a.createIndexInfo(a.getUnionType(n),o):undefined,r.length?a.createIndexInfo(a.getUnionType(r),s):undefined)}(a,t)),t.getWidenedType(t.getUnionType(i))}function kf(e,r){var t,n=[];if(e.isNumber&&n.push(r.getNumberType()),e.isString&&n.push(r.getStringType()),e.isNumberOrString&&n.push(r.getUnionType([r.getStringType(),r.getNumberType()])),n.push.apply(n,(e.candidateTypes||[]).map(function(e){return r.getBaseTypeOfLiteralType(e)})),e.properties&&Pf(e.properties.get("then"))?(t=Af(0,e.properties.get("then").callContexts,!1,r).getCallSignatures().map(function(e){return e.getReturnType()})).push(r.createPromiseType(t.length?r.getUnionType(t,2):r.getAnyType())):e.properties&&Pf(e.properties.get("push"))&&n.push(r.createArrayType(Af(0,e.properties.get("push").callContexts,!1,r))),e.numberIndexContext)n.push(r.createArrayType(_(e.numberIndexContext)));else if(e.properties||e.callContexts||e.constructContexts||e.stringIndexContext){var i=Xn.createUnderscoreEscapedMap(),a=[],o=[],s=void 0;if(e.properties&&e.properties.forEach(function(e,t){var n=r.createSymbol(4,t);n.type=_(e),i.set(t,n)}),e.callContexts)for(var c=0,u=e.callContexts;c<u.length;c++){var l=u[c];a.push(wf(l,r))}if(e.constructContexts)for(var d=0,p=e.constructContexts;d<p.length;d++){var f=p[d];o.push(wf(f,r))}e.stringIndexContext&&(s=r.createIndexInfo(_(e.stringIndexContext),!1)),n.push(r.createAnonymousType(undefined,i,a,o,s,undefined))}return n;function _(e){return Df(kf(e,r),r)}}function Af(e,t,n,r){var i=[];if(t)for(var a=0,o=t;a<o.length;a++){var s=o[a];s.argumentTypes.length>e&&(n?i=Xn.concatenate(i,Xn.map(s.argumentTypes.slice(e),function(e){return r.getBaseTypeOfLiteralType(e)})):i.push(r.getBaseTypeOfLiteralType(s.argumentTypes[e])))}if(i.length){var c=r.getWidenedType(r.getUnionType(i,2));return n?r.createArrayType(c):c}return undefined}function wf(e,t){for(var n=[],r=0;r<e.argumentTypes.length;r++){var i=t.createSymbol(1,Xn.escapeLeadingUnderscores("arg"+r));i.type=t.getWidenedType(t.getBaseTypeOfLiteralType(e.argumentTypes[r])),n.push(i)}var a=Df(kf(e.returnType,t),t,t.getVoidType());return t.createSignature(undefined,undefined,undefined,n,a,undefined,e.argumentTypes.length,!1,!1)}function Vf(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function Pf(e){return e&&e.callContexts}function Lf(f,_,e,t){var r=t.getSymbolAtLocation(nr.getTokenAtPosition(_,e));if(!(r&&19&r.flags))return undefined;var i,n,a=r.valueDeclaration;switch(a.kind){case 240:i=a,f["delete"](_,a),n=function(e){var t=o(r);e.body&&t.unshift(nr.createConstructor(undefined,undefined,e.parameters,e.body));var n=Mf(e,86);return nr.createClassDeclaration(undefined,n,e.name,undefined,undefined,t)}(a);break;case 238:i=a.parent.parent,n=function(e){var t=e.initializer;if(!t||197!==t.kind)return undefined;if(73!==e.name.kind)return undefined;var n=o(e.symbol);t.body&&n.unshift(nr.createConstructor(undefined,undefined,t.parameters,t.body));var r=Mf(i,86);return nr.createClassDeclaration(undefined,r,e.name,undefined,undefined,n)}(a),1===a.parent.declarations.length?(nr.copyLeadingComments(i,n,_),f["delete"](_,i)):f["delete"](_,a)}if(!n)return undefined;function o(e){var n=[];return e.members&&e.members.forEach(function(e){var t=r(e,undefined);t&&n.push(t)}),e.exports&&e.exports.forEach(function(e){var t=r(e,[nr.createToken(117)]);t&&n.push(t)}),n;function r(e,t){if(8192&e.flags){var n=e.valueDeclaration,r=n.parent;if(i=r.right,nr.isFunctionLike(i)){var i,a=r.parent&&222===r.parent.kind?r.parent:r;if(f["delete"](_,a),!r.right)return nr.createProperty([],t,e.name,undefined,undefined,undefined);switch(r.right.kind){case 197:var o=r.right,s=nr.concatenate(t,Mf(o,122)),c=nr.createMethod(undefined,s,undefined,n.name,undefined,undefined,o.parameters,undefined,o.body);return nr.copyLeadingComments(r,c,_),c;case 198:var u=r.right,l=u.body,d=void 0,d=219===l.kind?l:nr.createBlock([nr.createReturn(l)]),s=nr.concatenate(t,Mf(u,122)),c=nr.createMethod(undefined,s,undefined,n.name,undefined,undefined,u.parameters,undefined,d);return nr.copyLeadingComments(r,c,_),c;default:if(nr.isSourceFileJS(_))return;var p=nr.createProperty(undefined,t,n.name,undefined,undefined,r.right);return nr.copyLeadingComments(r.parent,p,_),p}}}}}nr.copyLeadingComments(a,n,_),f.insertNodeAfter(_,i,n)}function Mf(e,t){return nr.filter(e.modifiers,function(e){return e.kind===t})}function Ff(o,s,e,t,n){var r=or.getTokenAtPosition(s,e),i=or.isIdentifier(r)&&or.isVariableDeclaration(r.parent)&&r.parent.initializer&&or.isFunctionLikeDeclaration(r.parent.initializer)?r.parent.initializer:or.tryCast(or.getContainingFunction(or.getTokenAtPosition(s,e)),or.isFunctionLikeDeclaration);if(i){var a,_,h,g,m,c,y,b,v,u,l,d,p=or.createMap(),f=or.createMap(),E=[],I=or.isInJSFile(i),T=function(e,t){if(!e.body)return or.createMap();var n=or.createMap();return or.forEachChild(e.body,function r(e){Of(e,t,"then")?(n.set(or.getNodeId(e).toString(),!0),or.forEach(e.arguments,r)):Of(e,t,"catch")?(n.set(or.getNodeId(e).toString(),!0),or.forEachChild(e,r)):Of(e,t)?n.set(or.getNodeId(e).toString(),!0):or.forEachChild(e,r)}),n}(i,t),C=(a=i,_=t,h=p,g=n,m=T,c=f,y=E,b=or.createMap(),v=or.createMap(),or.forEachChild(a,function A(t){var n,e,r,i,a,o,s,c,u,l,d,p,f;or.isIdentifier(t)?(e=(n=_.getSymbolAtLocation(t))&&(r=n,i=g.sourceFile,r.valueDeclaration&&r.valueDeclaration.getSourceFile()===i),n&&e&&(a=zf(_.getTypeAtLocation(t),_),o=or.getSymbolId(n).toString(),!a||or.isFunctionLikeDeclaration(t.parent)||h.has(o)?t.parent&&(or.isParameter(t.parent)||or.isVariableDeclaration(t.parent)||or.isBindingElement(t.parent))&&(s=t.text,(c=v.get(s))&&c.some(function(e){return e!==n})?(u=Hf(t,v),b.set(o,u.identifier),h.set(o,u),y.push({identifier:u.identifier,symbol:n}),Rf(v,s,n)):(l=or.getSynthesizedDeepClone(t),b.set(o,l),h.set(o,qf(l,[],y.filter(function(e){return e.identifier.text===t.text}).length)),(or.isParameter(t.parent)&&function(e){var t=e.parent;if(or.isCallExpression(t)||or.isIdentifier(t)&&!m.get(or.getNodeId(t).toString())){var n=_.getTypeAtLocation(t);return n&&_.getPromisedTypeOfPromise(n)}}(t.parent.parent)||or.isVariableDeclaration(t.parent))&&(y.push({identifier:l,symbol:n}),Rf(v,s,n)))):(f=Hf(p=(d=or.firstOrUndefined(a.parameters))&&or.isParameter(d.valueDeclaration)&&or.tryCast(d.valueDeclaration.name,or.isIdentifier)||or.createOptimisticUniqueName("result"),v),h.set(o,f),y.push({identifier:f.identifier,symbol:n}),Rf(v,p.text,n)))):or.forEachChild(t,A)}),or.getSynthesizedDeepCloneWithRenames(a,!0,b,_,function(e,t){var n,r,i;or.isIdentifier(e)&&(n=_.getSymbolAtLocation(e),r=n&&or.getSymbolId(n).toString(),n&&h.get(r)&&(i=_.getTypeAtLocation(e),c.set(or.getNodeId(t).toString(),i)));var a=m.get(or.getNodeId(e).toString());a!==undefined&&(m["delete"](or.getNodeId(e).toString()),m.set(or.getNodeId(t).toString(),a))})),B=(u=[],p.forEach(function(e){0===e.numberOfAssignmentsOriginal&&u.push(e.identifier)}),u),x=C.body&&or.isBlock(C.body)?(l=C.body,d=[],or.forEachReturnStatement(l,function(e){or.isReturnStatementWithFixablePromiseHandler(e)&&d.push(e)}),d):or.emptyArray,S={checker:t,synthNamesMap:p,allVarNames:E,setOfExpressionsToReturn:T,constIdentifiers:B,originalTypeMap:f,isInJSFile:I};if(x.length){o.insertLastModifierBefore(s,122,i);for(var N=function N(i){or.forEachChild(i,function a(e){var t,n,r;or.isCallExpression(e)?(n=i,r=jf(t=e,S,t),o.replaceNodeWithNodes(s,n,r)):or.isFunctionLike(e)||or.forEachChild(e,a)})},D=0,k=x;D<k.length;D++){N(k[D])}}}}function Of(e,t,n){var r=(n?or.isCallExpression(e):or.isExpression(e))&&(!n||or.hasPropertyAccessExpressionWithName(e,n))&&t.getTypeAtLocation(e);return r&&t.getPromisedTypeOfPromise(r)}function Rf(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}function Hf(e,t){var n=(t.get(e.text)||or.emptyArray).length;return qf(0===n?e:or.createIdentifier(e.text+"_"+n),[],0)}function jf(e,t,n,r){if(!e)return or.emptyArray;var i=or.isIdentifier(e)&&t.originalTypeMap.get(or.getNodeId(e).toString())||t.checker.getTypeAtLocation(e);return or.isCallExpression(e)&&or.hasPropertyAccessExpressionWithName(e,"then")&&i&&t.checker.getPromisedTypeOfPromise(i)?function(e,t,n,r){var i=e.arguments,a=i[0],o=i[1];if(!a)return jf(e.expression,t,n);var s=Kf(a,t),c=Jf(a,r,s,e,t);if(o){var u=Kf(o,t),l=or.createBlock(jf(e.expression,t,e,s).concat(c)),d=Jf(o,r,u,e,t),p=u?$f(u)?u.identifier.text:u.bindingPattern:"e",f=or.createVariableDeclaration(p),_=or.createCatchClause(f,or.createBlock(d));return[or.createTry(l,_,undefined)]}return jf(e.expression,t,e,s).concat(c)}(e,t,n,r):or.isCallExpression(e)&&or.hasPropertyAccessExpressionWithName(e,"catch")&&i&&t.checker.getPromisedTypeOfPromise(i)?function(e,r,i){var t,n=e.arguments[0],a=Kf(n,r),o=r.setOfExpressionsToReturn.get(or.getNodeId(e).toString());i&&!o&&($f(i)?(t=i,r.synthNamesMap.forEach(function(e,t){var n;e.identifier.text===i.identifier.text&&(n=Wf(i),r.synthNamesMap.set(t,n))})):t=qf(or.createOptimisticUniqueName("result"),i.types),t.numberOfAssignmentsOriginal=2,r.constIdentifiers.some(function(e){return e.text===t.identifier.text})&&r.constIdentifiers.push(Wf(t).identifier));var s,c,u=or.createBlock(jf(e.expression,r,e,t)),l=Jf(n,t,a,e,r),d=a?$f(a)?a.identifier.text:a.bindingPattern:"e",p=or.createVariableDeclaration(d),f=or.createCatchClause(p,or.createBlock(l));{var _,h,g,m;t&&!o&&(c=or.getSynthesizedDeepClone(t.identifier),_=t.types,h=r.checker.getUnionType(_,2),g=r.isInJSFile?undefined:r.checker.typeToTypeNode(h),m=[or.createVariableDeclaration(c,g)],s=or.createVariableStatement(undefined,or.createVariableDeclarationList(m,1)))}var y=or.createTry(u,f,undefined),b=i&&c&&1===i.kind&&or.createVariableStatement(undefined,or.createVariableDeclarationList([or.createVariableDeclaration(or.getSynthesizedDeepCloneWithRenames(i.bindingPattern),undefined,c)],2));return or.compact([s,y,b])}(e,t,r):or.isPropertyAccessExpression(e)?jf(e.expression,t,n,r):i&&t.checker.getPromisedTypeOfPromise(i)?function(e,t,n){var r=t.setOfExpressionsToReturn.get(or.getNodeId(e).toString()),i=e.original?e.original.parent:e.parent;{if(n&&!r&&(!i||or.isPropertyAccessExpression(i)))return Yf(n,or.createAwait(e),t);if(!n&&!r&&(!i||or.isPropertyAccessExpression(i)))return[or.createStatement(or.createAwait(e))]}return[or.createReturn(or.getSynthesizedDeepClone(e))]}(e,t,r):(dr=!1,or.emptyArray)}function Wf(e){return qf(or.createOptimisticUniqueName(e.identifier.text))}function Gf(e,t){var n=function r(e){return or.isIdentifier(e)?[e.text]:or.flatMap(e.elements,function(e){return or.isOmittedExpression(e)?[]:r(e.name)})}(Xf(e));return t.some(function(e){return or.contains(n,e.text)})?2:1}function Yf(e,t,n){return!e||Zf(e)?[or.createStatement(t)]:$f(e)&&e.types.length<e.numberOfAssignmentsOriginal?[or.createStatement(or.createAssignment(or.getSynthesizedDeepClone(e.identifier),t))]:[or.createVariableStatement(undefined,or.createVariableDeclarationList([or.createVariableDeclaration(or.getSynthesizedDeepClone(Xf(e)),undefined,t)],Gf(e,n.constIdentifiers)))]}function Jf(e,t,n,r,i){var a=i.setOfExpressionsToReturn.get(or.getNodeId(r).toString());switch(e.kind){case 97:break;case 73:if(!n)break;var o=or.createCall(or.getSynthesizedDeepClone(e),undefined,$f(n)?[n.identifier]:[]);if(a)return[or.createReturn(o)];var s=i.originalTypeMap.get(or.getNodeId(e).toString())||i.checker.getTypeAtLocation(e),c=i.checker.getSignaturesOfType(s,0);if(!c.length){dr=!1;break}var u=c[0].getReturnType(),l=Yf(t,or.createAwait(o),i);return t&&t.types.push(u),l;case 197:case 198:var d=e.body;if(or.isBlock(d)){for(var p=[],f=!1,_=0,h=d.statements;_<h.length;_++){var g=h[_];or.isReturnStatement(g)&&(f=!0),or.isReturnStatementWithFixablePromiseHandler(g)?p=p.concat(Uf(i,[g],t)):p.push(g)}return a?p.map(function(e){return or.getSynthesizedDeepClone(e)}):function(e,t,n,r){for(var i=[],a=0,o=e;a<o.length;a++){var s,c=o[a];or.isReturnStatement(c)?c.expression&&(s=Of(c.expression,n.checker)?or.createAwait(c.expression):c.expression,t===undefined?i.push(or.createExpressionStatement(s)):i.push(or.createVariableStatement(undefined,or.createVariableDeclarationList([or.createVariableDeclaration(Xf(t),undefined,s)],Gf(t,n.constIdentifiers))))):i.push(or.getSynthesizedDeepClone(c))}r||t===undefined||i.push(or.createVariableStatement(undefined,or.createVariableDeclarationList([or.createVariableDeclaration(Xf(t),undefined,or.createIdentifier("undefined"))],Gf(t,n.constIdentifiers))));return i}(p,t,i,f)}var m=Uf(i,or.isFixablePromiseHandler(d)?[or.createReturn(d)]:or.emptyArray,t);if(0<m.length)return m;var y=zf(i.checker.getTypeAtLocation(e),i.checker).getReturnType(),b=or.getSynthesizedDeepClone(d),v=i.checker.getPromisedTypeOfPromise(y)?or.createAwait(b):b;if(a)return[or.createReturn(v)];var E=Yf(t,v,i);return t&&t.types.push(y),E;default:dr=!1}return or.emptyArray}function zf(e,t){var n=t.getSignaturesOfType(e,0);return or.lastOrUndefined(n)}function Uf(n,e,r){for(var i=[],t=0,a=e;t<a.length;t++){var o=a[t];or.forEachChild(o,function s(e){if(or.isCallExpression(e)){var t=jf(e,n,e,r);if(0<(i=i.concat(t)).length)return}else or.isFunctionLike(e)||or.forEachChild(e,s)})}return i}function Kf(e,a){var t,o=0,s=[];return or.isFunctionLikeDeclaration(e)?0<e.parameters.length&&(t=function r(e){if(or.isIdentifier(e))return n(e);var t=or.flatMap(e.elements,function(e){return or.isOmittedExpression(e)?[]:[r(e.name)]});return Qf(e,t)}(e.parameters[0].name)):or.isIdentifier(e)&&(t=n(e)),!t||"identifier"in t&&"undefined"===t.identifier.text?undefined:t;function n(e){var t,n,r=(t=e).original?t.original:t,i=(n=r).symbol?n.symbol:a.checker.getSymbolAtLocation(n);return i&&a.synthNamesMap.get(or.getSymbolId(i).toString())||qf(e,s,o)}}function Zf(e){return!e||($f(e)?!e.identifier.text:or.every(e.elements,Zf))}function Xf(e){return $f(e)?e.identifier:e.bindingPattern}function qf(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=0),{kind:0,identifier:e,types:t,numberOfAssignmentsOriginal:n}}function Qf(e,t,n){return void 0===t&&(t=or.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:e,elements:t,types:n}}function $f(e){return 0===e.kind}function e_(n,r){n.forEachChild(function i(e){var t;pr.isPropertyAccessExpression(e)&&pr.isExportsOrModuleExportsOrAlias(n,e.expression)&&(t=e.parent,r(e,pr.isBinaryExpression(t)&&t.left===e&&60===t.operatorToken.kind)),e.forEachChild(i)})}function t_(e){return u_(undefined,e)}function n_(e){return u_([pr.createExportSpecifier(undefined,"default")],e)}function r_(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function i_(e){var t=e.parent;switch(t.kind){case 190:return t.name!==e;case 187:case 254:return t.propertyName!==e;default:return 1}}function a_(e,t,n){return pr.createFunctionDeclaration(pr.getSynthesizedDeepClones(n.decorators),pr.concatenate(t,pr.getSynthesizedDeepClones(n.modifiers)),pr.getSynthesizedDeepClone(n.asteriskToken),e,pr.getSynthesizedDeepClones(n.typeParameters),pr.getSynthesizedDeepClones(n.parameters),pr.getSynthesizedDeepClone(n.type),pr.convertToFunctionBody(pr.getSynthesizedDeepClone(n.body)))}function o_(e,t,n,r){return"default"===t?pr.makeImport(pr.createIdentifier(e),undefined,n,r):pr.makeImport(undefined,[s_(t,e)],n,r)}function s_(e,t){return pr.createImportSpecifier(e!==undefined&&e!==t?pr.createIdentifier(e):undefined,pr.createIdentifier(t))}function c_(e,t,n){return pr.createVariableStatement(e,pr.createVariableDeclarationList([pr.createVariableDeclaration(t,undefined,n)],2))}function u_(e,t){return pr.createExportDeclaration(undefined,undefined,e&&pr.createNamedExports(e),t===undefined?undefined:pr.createLiteral(t))}function l_(e,t){var n=_r.findAncestor(_r.getTokenAtPosition(e,t),_r.isQualifiedName);return _r.Debug.assert(!!n,"Expected position to be owned by a qualified name."),_r.isIdentifier(n.left)?n:undefined}function d_(e,t,n){var r=n.right.text,i=_r.createIndexedAccessTypeNode(_r.createTypeReferenceNode(n.left,undefined),_r.createLiteralTypeNode(_r.createLiteral(r)));e.replaceNode(t,n,i)}function p_(e,t){return yr.Debug.assertDefined(yr.getContainingClass(yr.getTokenAtPosition(e,t)))}function f_(e){return!(8&yr.getModifierFlags(e.valueDeclaration))}function __(r,e,i,a,o,t){var s=r.program.getTypeChecker(),n=function(e,t){var n=yr.getEffectiveBaseTypeNode(e);if(!n)return yr.createSymbolTable();var r=t.getTypeAtLocation(n),i=t.getPropertiesOfType(r);return yr.createSymbolTable(i.filter(f_))}(a,s),c=s.getTypeAtLocation(e),u=s.getPropertiesOfType(c).filter(yr.and(f_,function(e){return!n.has(e.escapedName)})),l=s.getTypeAtLocation(a);function d(e,t){var n=s.getIndexInfoOfType(e,t);n&&o.insertNodeAtClassStart(i,a,s.indexInfoToIndexSignatureDeclaration(n,t,a,undefined,br.getNoopSymbolTrackerWithResolver(r)))}l.getNumberIndexType()||d(c,1),l.getStringIndexType()||d(c,0),br.createMissingMemberNodes(a,u,r,t,function(e){return o.insertNodeAtClassStart(i,a,e)})}function h_(e,t,n){var r,i,a,o,s,c=Tr.getTokenAtPosition(e,t),u=n.program.getTypeChecker();return Tr.isPropertyAccessExpression(c.parent)&&c.parent.name===c?(Tr.Debug.assert(73===c.kind),r=u.getTypeAtLocation(c.parent.expression),i=u.getSuggestionForNonexistentProperty(c,r)):Tr.isImportSpecifier(c.parent)&&c.parent.name===c?(Tr.Debug.assert(73===c.kind),(a=function(e,t,n){if(!n||!Tr.isStringLiteralLike(n.moduleSpecifier))return undefined;var r=Tr.getResolvedModule(e,n.moduleSpecifier.text);return r?t.program.getSourceFile(r.resolvedFileName):undefined}(e,n,Tr.findAncestor(c,Tr.isImportDeclaration)))&&a.symbol&&(i=u.getSuggestionForNonexistentExport(c,a.symbol))):(o=Tr.getMeaningFromLocation(c),s=Tr.getTextOfNode(c),Tr.Debug.assert(s!==undefined,"name should be defined"),i=u.getSuggestionForNonexistentSymbol(c,s,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=67897832);1&e&&(t|=67220415);return t}(o))),i===undefined?undefined:{node:c,suggestion:i}}function g_(e,t,n,r,i){!Tr.isIdentifierText(r,i)&&Tr.isPropertyAccessExpression(n.parent)?e.replaceNode(t,n.parent,Tr.createElementAccess(n.parent.expression,Tr.createLiteral(r))):e.replaceNode(t,n,Tr.createIdentifier(r))}function m_(e,t,n,r){var i=Sr.getTokenAtPosition(e,t);if(!Sr.isIdentifier(i))return undefined;var a=i.parent;if(!Sr.isPropertyAccessExpression(a))return undefined;var o=Sr.skipConstraint(n.getTypeAtLocation(a.expression)),s=o.symbol;if(!s||!s.declarations)return undefined;var c=Sr.find(s.declarations,Sr.isClassLike)||Sr.find(s.declarations,Sr.isInterfaceDeclaration);if(c&&!r.isSourceFileFromExternalLibrary(c.getSourceFile())){var u=(o.target||o)!==n.getDeclaredTypeOfSymbol(s),l=c.getSourceFile();return{kind:1,token:i,parentDeclaration:c,makeStatic:u,declSourceFile:l,inJs:Sr.isSourceFileJS(l),call:Sr.tryCast(a.parent,Sr.isCallExpression)}}var d=Sr.find(s.declarations,Sr.isEnumDeclaration);return d&&!r.isSourceFileFromExternalLibrary(d.getSourceFile())?{kind:0,token:i,parentDeclaration:d}:undefined}function y_(e,t,n,r,i){if(i){if(210===n.kind)return;var a=n.name.getText(),o=b_(Sr.createIdentifier(a),r);e.insertNodeAfter(t,n,o)}else{var s=Sr.getFirstConstructorWithBody(n);if(!s)return;var c=b_(Sr.createThis(),r);e.insertNodeAtConstructorEnd(t,s,c)}}function b_(e,t){return Sr.createStatement(Sr.createAssignment(Sr.createPropertyAccess(e,t),Sr.createIdentifier("undefined")))}function v_(e,t,n){var r,i,a,o;return(205===n.parent.parent.kind?(r=n.parent.parent,i=n.parent===r.left?r.right:r.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(i))),e.typeToTypeNode(a,t)):(o=e.getContextualType(n.parent))?e.typeToTypeNode(o):undefined)||Sr.createKeywordTypeNode(121)}function E_(e,t,n,r,i,a){var o=Sr.createProperty(undefined,a?[Sr.createToken(117)]:undefined,r,undefined,i,undefined),s=function(e){for(var t,n=0,r=e.members;n<r.length;n++){var i=r[n];if(!Sr.isPropertyDeclaration(i))break;t=i}return t}(n);s?e.insertNodeAfter(t,s,o):e.insertNodeAtClassStart(t,n,o)}function I_(e,t,n,r,i,a,o,s,c){var u=Nr.createMethodFromCallExpression(e,a,i.text,s,o,c,r),l=Sr.getAncestor(a,157);l&&l.parent===r?t.insertNodeAfter(n,l,u):t.insertNodeAtClassStart(n,r,u)}function T_(e,n,t,r){var i=Sr.some(r.members,function(e){var t=n.getTypeAtLocation(e);return!!(t&&132&t.flags)}),a=Sr.createEnumMember(t,i?Sr.createStringLiteral(t.text):undefined);e.replaceNode(r.getSourceFile(),r,Sr.updateEnumDeclaration(r,r.decorators,r.modifiers,r.name,Sr.concatenate(r.members,Sr.singleElementArray(a))))}function C_(e,t,n){var r=Vr.cast(function(e,t){var n=Vr.getTokenAtPosition(e,t.start),r=Vr.textSpanEnd(t);for(;n.end<r;)n=n.parent;return n}(t,n),Vr.isCallExpression),i=Vr.createNew(r.expression,r.typeArguments,r.arguments);e.replaceNode(t,r,i)}function B_(e,t){return{type:"install package",file:e,packageName:t}}function x_(e,t){var n=Fr.cast(Fr.getTokenAtPosition(e,t),Fr.isStringLiteral).text,r=Fr.parsePackageName(n).packageName;return Fr.isExternalModuleNameRelative(r)?undefined:r}function S_(e,t,n){return n===Hr?Fr.JsTyping.nodeCoreModules.has(e)?"@types/node":undefined:t.isKnownTypesPackageName(e)?Fr.getTypesPackageName(e):undefined}function N_(e,t){var n=Wr.getTokenAtPosition(e,t);return Wr.cast(n.parent,Wr.isClassLike)}function D_(t,n,e,r,i){var a=Wr.getEffectiveBaseTypeNode(t),o=e.program.getTypeChecker(),s=o.getTypeAtLocation(a),c=o.getPropertiesOfType(s).filter(k_);Gr.createMissingMemberNodes(t,c,e,i,function(e){return r.insertNodeAtClassStart(n,t,e)})}function k_(e){var t=Wr.getModifierFlags(Wr.first(e.getDeclarations()));return!(8&t||!(128&t))}function A_(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e["delete"](t,r)}function w_(e,t){var n=zr.getTokenAtPosition(e,t);if(101!==n.kind)return undefined;var r=zr.getContainingFunction(n),i=V_(r.body);return i&&!i.expression.arguments.some(function(e){return zr.isPropertyAccessExpression(e)&&e.expression===n})?{constructor:r,superCall:i}:undefined}function V_(e){return zr.isExpressionStatement(e)&&zr.isSuperCall(e.expression)?e:zr.isFunctionLike(e)?undefined:zr.forEachChild(e,V_)}function P_(e,t){var n=Xr.getTokenAtPosition(e,t);return Xr.Debug.assert(125===n.kind),n.parent}function L_(e,t,n){var r=Xr.createStatement(Xr.createCall(Xr.createSuper(),undefined,Xr.emptyArray));e.insertNodeAtConstructorStart(t,n,r)}function M_(e,t){ti.setJsonCompilerOptionValue(e,t,"experimentalDecorators",ei.createTrue())}function F_(e,t){var n=ii.getTokenAtPosition(e,t),r=ii.getContainingClass(n).heritageClauses,i=r[0].getFirstToken();return 87===i.kind?{extendsToken:i,heritageClauses:r}:undefined}function O_(e,t,n,r){if(e.replaceNode(t,n,ii.createToken(110)),2===r.length&&87===r[0].token&&110===r[1].token){var i=r[1].getFirstToken(),a=i.getFullStart();e.replaceRange(t,{pos:a,end:a},ii.createToken(27));for(var o=t.text,s=i.end;s<o.length&&ii.isWhiteSpaceSingleLine(o.charCodeAt(s));)s++;e.deleteRange(t,{pos:i.getStart(),end:s})}}function R_(e,t,n){var r=ci.getTokenAtPosition(e,t);return ci.isIdentifier(r)?{node:r,className:n===di?ci.getContainingClass(r).name.text:undefined}:undefined}function H_(e,t,n){var r=n.node,i=n.className;ci.suppressLeadingAndTrailingTrivia(r),e.replaceNode(t,r,ci.createPropertyAccess(i?ci.createIdentifier(i):ci.createThis(),r))}function j_(e,t,n){e.replaceNode(t,n.parent,fi.createKeywordTypeNode(144))}function W_(e,t){return _i.createCodeFixAction(hi,e,t,mi,fi.Diagnostics.Delete_all_unused_declarations)}function G_(e,t,n){e["delete"](t,fi.Debug.assertDefined(fi.cast(n.parent,fi.isDeclarationWithTypeParameterChildren).typeParameters))}function Y_(e){return 93===e.kind?fi.tryCast(e.parent,fi.isImportDeclaration):undefined}function J_(e,t,n,r,i,a){if(18!==e.kind||!fi.isObjectBindingPattern(e.parent))return!1;var o=e.parent.parent;return 152===o.kind?Z_(t,n,o,r,i,a):t["delete"](n,o),!0}function z_(e,t,n){var r=fi.tryCast(t.parent,fi.isVariableDeclarationList);return!(!r||r.getChildren(e)[0]!==t)&&(n["delete"](e,220===r.parent.kind?r.parent:r),!0)}function U_(e,t,n,r){t!==fi.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(128===r.kind&&(r=fi.cast(r.parent,fi.isInferTypeNode).typeParameter.name),fi.isIdentifier(r)&&function(e){switch(e.parent.kind){case 152:case 151:return!0;case 238:switch(e.parent.parent.parent.kind){case 228:case 227:return!0}}return!1}(r)&&e.replaceNode(n,r,fi.createIdentifier("_"+r.text)))}function K_(e,t,n,r,i,a){var o,s,c,u,l,d,p,f,_,h,g;s=n,c=e,u=r,l=i,d=a,p=(o=t).parent,fi.isParameter(p)?Z_(s,c,p,u,l,d):s["delete"](c,fi.isImportClause(p)?o:fi.isComputedPropertyName(p)?p.parent:p),fi.isIdentifier(t)&&(f=n,_=e,h=t,g=r,fi.FindAllReferences.Core.eachSymbolReferenceInFile(h,g,_,function(e){fi.isPropertyAccessExpression(e.parent)&&e.parent.name===e&&(e=e.parent),fi.isBinaryExpression(e.parent)&&fi.isExpressionStatement(e.parent.parent)&&e.parent.left===e&&f["delete"](_,e.parent.parent)}))}function Z_(t,n,e,r,i,a){var o,s,c,u,l;!function(e,t,n){var r=e.parent;switch(r.kind){case 157:var i=t.getSymbolAtLocation(r.name);if(fi.isMemberSymbolInBaseType(i,t))return!1;case 158:case 240:return!0;case 197:case 198:var a=r.parameters,o=a.indexOf(e);return fi.Debug.assert(-1!==o),n?a.slice(o+1).every(function(e){return 73===e.name.kind&&!e.symbol.isReferenced}):o===a.length-1;case 160:return!1;default:return fi.Debug.failBadSyntaxKind(r)}}(e,r,a)||(e.modifiers&&0<e.modifiers.length&&(!fi.isIdentifier(e.name)||fi.FindAllReferences.Core.isSymbolReferencedInFile(e.name,r,n))?e.modifiers.forEach(function(e){t.deleteModifier(n,e)}):(t["delete"](n,e),o=t,s=n,c=e,u=i,l=r,fi.FindAllReferences.Core.eachSignatureCall(c.parent,u,l,function(e){var t=c.parent.parameters.indexOf(c);e.arguments.length>t&&o["delete"](s,e.arguments[t])})))}function X_(e,t,n,r){var i=vi.getTokenAtPosition(t,n),a=vi.findAncestor(i,vi.isStatement);vi.Debug.assert(a.getStart(t)===i.getStart(t));var o,s,c=(vi.isBlock(a.parent)?a.parent:a).parent;if(!vi.isBlock(a.parent)||a===vi.first(a.parent.statements))switch(c.kind){case 223:if(c.elseStatement){if(vi.isBlock(a.parent))break;return void e.replaceNode(t,a,vi.createBlock(vi.emptyArray))}case 225:case 226:return void e["delete"](t,c)}vi.isBlock(a.parent)?(o=n+r,s=vi.Debug.assertDefined(function(e,t){for(var n,r=0,i=e;r<i.length;r++){var a=i[r];if(!t(a))break;n=a}return n}(vi.sliceAfter(a.parent.statements,a),function(e){return e.pos<o})),e.deleteNodeRange(t,a,s)):e["delete"](t,a)}function q_(e,t,n){var r=Ci.getTokenAtPosition(t,n),i=Ci.cast(r.parent,Ci.isLabeledStatement),a=r.getStart(t),o=i.statement.getStart(t),s=Ci.positionsAreOnSameLine(a,o,t)?o:Ci.skipTrivia(t.text,Ci.findChildOfKind(i,57,t).end,!0);e.deleteRange(t,{pos:a,end:s})}function Q_(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n))}function $_(e,t,n){var r=Ni.findAncestor(Ni.getTokenAtPosition(e,t),eh),i=r&&r.type;return i&&{typeNode:i,type:n.getTypeFromTypeNode(i)}}function eh(e){switch(e.kind){case 213:case 161:case 162:case 240:case 159:case 163:case 182:case 157:case 156:case 152:case 155:case 154:case 160:case 243:case 195:case 238:return!0;default:return!1}}function th(e,t){var n,r,i=Vi.getTokenAtPosition(e,t),a=Vi.getContainingFunction(i);if(a){switch(a.kind){case 157:n=a.name;break;case 240:case 197:n=Vi.findChildOfKind(a,91,e);break;case 198:n=Vi.findChildOfKind(a,20,e)||Vi.first(a.parameters);break;default:return}return n&&{insertBefore:n,returnType:(r=a).type?r.type:Vi.isVariableDeclaration(r.parent)&&r.parent.type&&Vi.isFunctionTypeNode(r.parent.type)?r.parent.type.type:void 0}}}function nh(e,t,n){var r,i=n.insertBefore,a=n.returnType;a&&((r=Vi.getEntityNameFromTypeNode(a))&&73===r.kind&&"Promise"===r.text||e.replaceNode(t,a,Vi.createTypeReferenceNode("Promise",Vi.createNodeArray([a])))),e.insertModifierBefore(t,122,i)}function rh(e,t,n,r){var i=Fi.getLineAndCharacterOfPosition(t,n).line;r&&!Fi.addToSeen(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function ih(e){return{trackSymbol:Wi.noop,moduleResolverHost:{directoryExists:(t=e).host.directoryExists?function(e){return t.host.directoryExists(e)}:undefined,fileExists:t.host.fileExists?function(e){return t.host.fileExists(e)}:undefined,getCurrentDirectory:t.host.getCurrentDirectory?function(){return t.host.getCurrentDirectory()}:undefined,readFile:t.host.readFile?function(e){return t.host.readFile(e)}:undefined,useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames?function(){return t.host.useCaseSensitiveFileNames()}:undefined,getSourceFiles:function(){return t.program.getSourceFiles()},getCommonSourceDirectory:function(){return t.program.getCommonSourceDirectory()}}};var t}function ah(e,t,n,r,i){for(var a=[],o=0;o<e;o++){var s=Wi.createParameter(undefined,undefined,undefined,t&&t[o]||"arg"+o,r!==undefined&&r<=o?Wi.createToken(56):undefined,i?undefined:n&&n[o]||Wi.createKeywordTypeNode(121),undefined);a.push(s)}return a}function oh(e){return Wi.createBlock([Wi.createThrow(Wi.createNew(Wi.createIdentifier("Error"),undefined,[Wi.createLiteral("Method not implemented.","single"===e.quotePreference)]))],!0)}function sh(e,t){return Wi.createPropertyAssignment(Wi.createStringLiteral(e),t)}function ch(e,t){return Wi.find(e.properties,function(e){return Wi.isPropertyAssignment(e)&&!!e.name&&Wi.isStringLiteral(e.name)&&e.name.text===t})}function uh(e,t,n,r){var i=Yi.textChanges.ChangeTracker["with"](e,function(e){return e.replaceNode(t,n,r)});return Ji.createCodeFixActionNoFixId(zi,i,[Yi.Diagnostics.Replace_import_with_0,i[0].textChanges[0].newText])}function lh(e,t){var n=e.program.getTypeChecker().getTypeAtLocation(t);if(!n.symbol||!n.symbol.originatingImport)return[];var r,i,a,o,s,c,u,l,d=[],p=n.symbol.originatingImport;return Yi.isImportCall(p)||Yi.addRange(d,(r=e,i=p,a=Yi.getSourceFileOfNode(i),o=Yi.getNamespaceDeclarationNode(i),s=r.program.getCompilerOptions(),(c=[]).push(uh(r,a,i,Yi.makeImport(o.name,undefined,i.moduleSpecifier,Yi.getQuotePreference(a,r.preferences)))),Yi.getEmitModuleKind(s)===Yi.ModuleKind.CommonJS&&c.push(uh(r,a,i,Yi.createImportEqualsDeclaration(undefined,undefined,o.name,Yi.createExternalModuleReference(i.moduleSpecifier)))),c)),!Yi.isExpression(t)||Yi.isNamedDeclaration(t.parent)&&t.parent.name===t||(u=e.sourceFile,l=Yi.textChanges.ChangeTracker["with"](e,function(e){return e.replaceNode(u,t,Yi.createPropertyAccess(t,"default"),{})}),d.push(Ji.createCodeFixActionNoFixId(zi,l,Yi.Diagnostics.Use_synthetic_default_member))),d}function dh(e,t){var n=Ui.getTokenAtPosition(e,t);return Ui.isIdentifier(n)?Ui.cast(n.parent,Ui.isPropertyDeclaration):undefined}function ph(e,t,n){var r=Ui.updateProperty(n,n.decorators,n.modifiers,n.name,Ui.createToken(52),n.type,n.initializer);e.replaceNode(t,n,r)}function fh(e,t,n){var r=Ui.createKeywordTypeNode(142),i=n.type,a=Ui.isUnionTypeNode(i)?i.types.concat(r):[i,r];e.replaceNode(t,i,Ui.createUnionTypeNode(a))}function _h(e,t,n,r){var i=Ui.updateProperty(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function hh(e,t){return function i(t,e){{if(512&e.flags)return e===t.getFalseType()||e===t.getFalseType(!0)?Ui.createFalse():Ui.createTrue();if(e.isLiteral())return Ui.createLiteral(e.value);if(e.isUnion())return Ui.firstDefined(e.types,function(e){return i(t,e)});if(e.isClass()){var n=Ui.getClassLikeDeclarationOfSymbol(e.symbol);if(!n||Ui.hasModifier(n,128))return undefined;var r=Ui.getFirstConstructorWithBody(n);return r&&r.parameters.length?undefined:Ui.createNew(Ui.createIdentifier(e.symbol.name),undefined,undefined)}if(t.isArrayLikeType(e))return Ui.createArrayLiteral()}return undefined}(e,e.getTypeFromTypeNode(t.type))}function gh(e,t,n,r){var i=function(e,t){var n=ea.getTokenAtPosition(e,t).parent;if(!ea.isRequireCall(n,!0))throw ea.Debug.failBadSyntaxKind(n);var r=ea.cast(n.parent,ea.isVariableDeclaration);return{statement:ea.cast(r.parent.parent,ea.isVariableStatement),name:ea.cast(r.name,ea.isIdentifier),required:n.arguments[0]}}(t,n),a=i.statement,o=i.name,s=i.required;e.replaceNode(t,a,ea.getAllowSyntheticDefaultImports(r.getCompilerOptions())?ea.createImportDeclaration(undefined,undefined,ea.createImportClause(o,undefined),s):ea.createImportEqualsDeclaration(undefined,undefined,o,ea.createExternalModuleReference(s)))}function mh(e,t){var n=ia.getTokenAtPosition(e,t);if(!ia.isIdentifier(n))return undefined;var r=n.parent;if(ia.isImportEqualsDeclaration(r)&&ia.isExternalModuleReference(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(ia.isNamespaceImport(r)){var i=r.parent.parent;return{importNode:i,name:n,moduleSpecifier:i.moduleSpecifier}}}function yh(e,t,n,r){e.replaceNode(t,n.importNode,ia.makeImport(n.name,undefined,n.moduleSpecifier,ia.getQuotePreference(t,r)))}function bh(e,t){var n=ca.getTokenAtPosition(e,t);return ca.Debug.assert(93===n.kind),ca.Debug.assert(184===n.parent.kind),n.parent}function vh(e,t,n){var r=ca.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}function Eh(e,t){var n=pa.getTokenAtPosition(e,t),r=pa.cast(n.parent.parent,pa.isIndexSignatureDeclaration);return pa.isClassDeclaration(r.parent)?undefined:{indexSignature:r,container:pa.isInterfaceDeclaration(r.parent)?r.parent:pa.cast(r.parent.parent,pa.isTypeAliasDeclaration)}}function Ih(e,t,n){var r,i,a=n.indexSignature,o=n.container,s=(pa.isInterfaceDeclaration(o)?o.members:o.type.members).filter(function(e){return!pa.isIndexSignatureDeclaration(e)}),c=pa.first(a.parameters),u=pa.createTypeParameterDeclaration(pa.cast(c.name,pa.isIdentifier),c.type),l=pa.createMappedTypeNode(pa.hasReadonlyModifier(a)?pa.createModifier(134):undefined,u,a.questionToken,a.type),d=pa.createIntersectionTypeNode(pa.getAllSuperTypeNodes(o).concat([l],s.length?[pa.createTypeLiteralNode(s)]:pa.emptyArray));e.replaceNode(t,o,(r=o,i=d,pa.createTypeAliasDeclaration(r.decorators,r.modifiers,r.name,r.typeParameters,i)))}function Th(e){var t=e.file,n=ga.getRefactorContextSpan(e),r=ga.getTokenAtPosition(t,n.start),i=ga.getParentNodeInSpan(r,t,n);if(!(i&&(ga.isSourceFile(i.parent)||ga.isModuleBlock(i.parent)&&ga.isAmbientModule(i.parent.parent))))return undefined;var a=ga.isSourceFile(i.parent)?i.parent.symbol:i.parent.parent.symbol,o=ga.getModifierFlags(i),s=!!(512&o);if(!(1&o)||!s&&a.exports.has("default"))return undefined;switch(i.kind){case 240:case 241:case 242:case 244:case 243:case 245:var c=i;return c.name&&ga.isIdentifier(c.name)?{exportNode:c,exportName:c.name,wasDefault:s,exportingModuleSymbol:a}:undefined;case 220:var u=i;if(!(2&u.declarationList.flags)||1!==u.declarationList.declarations.length)return undefined;var l=ga.first(u.declarationList.declarations);return l.initializer?(ga.Debug.assert(!s),ga.isIdentifier(l.name)?{exportNode:u,exportName:l.name,wasDefault:s,exportingModuleSymbol:a}:undefined):undefined;default:return undefined}}function Ch(e,t){return ga.createImportSpecifier(e===t?undefined:ga.createIdentifier(e),ga.createIdentifier(t))}function Bh(e){var t=e.file,n=Ea.getRefactorContextSpan(e),r=Ea.getTokenAtPosition(t,n.start),i=Ea.getParentNodeInSpan(r,t,n);if(!i||!Ea.isImportDeclaration(i))return undefined;var a=i.importClause;return a&&a.namedBindings}function xh(e,t,n){return Ea.createImportDeclaration(undefined,undefined,Ea.createImportClause(t,n&&n.length?Ea.createNamedImports(n):undefined),e.moduleSpecifier)}function Sh(e){var t=kh(e.file,xa.getRefactorContextSpan(e)).targetRange;if(t===undefined)return xa.emptyArray;var n,r,i,d,p,a=(n=wh(t,e),r=n.scopes,i=n.readsAndWrites,d=i.functionErrorsPerScope,p=i.constantErrorsPerScope,r.map(function(e,t){var n,r,i,a,o,s=(n=e,xa.isFunctionLikeDeclaration(n)?"inner function":xa.isClassLike(n)?"method":"function"),c=(r=e,xa.isClassLike(r)?"readonly field":"constant"),u=xa.isFunctionLikeDeclaration(e)?function(e){switch(e.kind){case 158:return"constructor";case 197:case 240:return e.name?"function '"+e.name.text+"'":"anonymous function";case 198:return"arrow function";case 157:return"method '"+e.name.getText()+"'";case 159:return"'get "+e.name.getText()+"'";case 160:return"'set "+e.name.getText()+"'";default:throw xa.Debug.assertNever(e)}}(e):xa.isClassLike(e)?241===(a=e).kind?a.name?"class '"+a.name.text+"'":"anonymous class declaration":a.name?"class expression '"+a.name.text+"'":"anonymous class expression":246===(i=e).kind?"namespace '"+i.parent.name.getText()+"'":i.externalModuleIndicator?0:1,l=1===u?(o=xa.formatStringFromArgs(xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_to_0_in_1_scope),[s,"global"]),xa.formatStringFromArgs(xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(o=xa.formatStringFromArgs(xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_to_0_in_1_scope),[s,"module"]),xa.formatStringFromArgs(xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(o=xa.formatStringFromArgs(xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_to_0_in_1),[s,u]),xa.formatStringFromArgs(xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_to_0_in_1),[c,u]));return 0!==t||xa.isClassLike(e)||(l=xa.formatStringFromArgs(xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:o,errors:d[t]},constantExtraction:{description:l,errors:p[t]}}}));if(a===undefined)return xa.emptyArray;for(var o=[],s=xa.createMap(),c=[],u=xa.createMap(),l=0,f=0,_=a;f<_.length;f++){var h,g=_[f],m=g.functionExtraction,y=g.constantExtraction;0===m.errors.length&&(h=m.description,s.has(h)||(s.set(h,!0),o.push({description:h,name:"function_scope_"+l}))),0===y.errors.length&&(h=y.description,u.has(h)||(u.set(h,!0),c.push({description:h,name:"constant_scope_"+l}))),l++}var b=[];return o.length&&b.push({name:La,description:xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_function),actions:o}),c.length&&b.push({name:La,description:xa.getLocaleSpecificMessage(xa.Diagnostics.Extract_constant),actions:c}),b.length?b:xa.emptyArray}function Nh(e,t){var n,r,i,a,o,s,c,u,l,d,p=kh(e.file,xa.getRefactorContextSpan(e)).targetRange,f=/^function_scope_(\d+)$/.exec(t);if(f){var _=+f[1];return xa.Debug.assert(isFinite(_),"Expected to parse a finite number from the function scope index"),i=_,a=wh(n=p,r=e),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.functionErrorsPerScope,d=s.exposedVariableDeclarations,xa.Debug.assert(!l[i].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(e,a,t,n,r,i){var o,s,c=t.usages,u=t.typeParameterUsages,l=t.substitutions,d=i.program.getTypeChecker(),p=a.getSourceFile(),f=xa.getUniqueName(xa.isClassLike(a)?"newMethod":"newFunction",p),_=xa.isInJSFile(a),h=xa.createIdentifier(f),g=[],m=[];c.forEach(function(e,t){var n,r;_||(n=d.getTypeOfSymbolAtLocation(e.symbol,e.node),n=d.getBaseTypeOfLiteralType(n),r=d.typeToTypeNode(n,a,1));var i=xa.createParameter(undefined,undefined,undefined,t,undefined,r);g.push(i),2===e.usage&&(s=s||[]).push(e),m.push(xa.createIdentifier(t))});var y,b=xa.arrayFrom(u.values()).map(function(e){return{type:e,declaration:function(e){var t,n=e.symbol;if(n&&n.declarations)for(var r=0,i=n.declarations;r<i.length;r++){var a=i[r];(t===undefined||a.pos<t.pos)&&(t=a)}return t}(e)}}).sort(Vh),v=0===b.length?undefined:b.map(function(e){return e.declaration}),E=v!==undefined?v.map(function(e){return xa.createTypeReferenceNode(e.name,undefined)}):undefined;xa.isExpression(e)&&!_&&(y=d.getContextualType(e),o=d.typeToTypeNode(y,a,1));var I,T,C=function(e,a,o,s,t){var c,u=o!==undefined||0<a.length;if(xa.isBlock(e)&&!u&&0===s.size)return{body:xa.createBlock(e.statements,!0),returnValueProperty:undefined};var l=!1,n=xa.createNodeArray(xa.isBlock(e)?e.statements.slice(0):[xa.isStatement(e)?e:xa.createReturn(e)]);if(u||s.size){var r,i=xa.visitNodes(n,function d(e){if(!l&&231===e.kind&&u){var t=Ph(a,o);return e.expression&&(c=c||"__return",t.unshift(xa.createPropertyAssignment(c,xa.visitNode(e.expression,d)))),1===t.length?xa.createReturn(t[0].name):xa.createReturn(xa.createObjectLiteral(t))}var n=l;l=l||xa.isFunctionLikeDeclaration(e)||xa.isClassLike(e);var r=s.get(xa.getNodeId(e).toString()),i=r?xa.getSynthesizedDeepClone(r):xa.visitEachChild(e,d,xa.nullTransformationContext);return l=n,i}).slice();return u&&!t&&xa.isStatement(e)&&(1===(r=Ph(a,o)).length?i.push(xa.createReturn(r[0].name)):i.push(xa.createReturn(xa.createObjectLiteral(r)))),{body:xa.createBlock(i,!0),returnValueProperty:c}}return{body:xa.createBlock(n,!0),returnValueProperty:undefined}}(e,n,s,l,!!(r.facts&Aa.HasReturn)),B=C.body,x=C.returnValueProperty;xa.suppressLeadingAndTrailingTrivia(B),I=xa.isClassLike(a)?(T=_?[]:[xa.createToken(114)],r.facts&Aa.InStaticRegion&&T.push(xa.createToken(117)),r.facts&Aa.IsAsyncFunction&&T.push(xa.createToken(122)),xa.createMethod(undefined,T.length?T:undefined,r.facts&Aa.IsGenerator?xa.createToken(40):undefined,h,undefined,v,g,o,B)):xa.createFunctionDeclaration(undefined,r.facts&Aa.IsAsyncFunction?[xa.createToken(122)]:undefined,r.facts&Aa.IsGenerator?xa.createToken(40):undefined,h,v,g,o,B);var S=xa.textChanges.ChangeTracker.fromContext(i),N=function(t,e){return xa.find(function(e){if(xa.isFunctionLikeDeclaration(e)){var t=e.body;if(xa.isBlock(t))return t.statements}else{if(xa.isModuleBlock(e)||xa.isSourceFile(e))return e.statements;if(xa.isClassLike(e))return e.members;xa.assertType(e)}return xa.emptyArray}(e),function(e){return e.pos>=t&&xa.isFunctionLikeDeclaration(e)&&!xa.isConstructorDeclaration(e)})}((Lh(r.range)?xa.last(r.range):r.range).end,a);N?S.insertNodeBefore(i.file,N,I,!0):S.insertNodeAtEndOfScope(i.file,a,I);var D=[],k=function(e,t,n){var r=xa.createIdentifier(n);if(xa.isClassLike(e)){var i=t.facts&Aa.InStaticRegion?xa.createIdentifier(e.name.text):xa.createThis();return xa.createPropertyAccess(i,r)}return r}(a,r,f),A=xa.createCall(k,E,m);if(r.facts&Aa.IsGenerator&&(A=xa.createYield(xa.createToken(40),A)),r.facts&Aa.IsAsyncFunction&&(A=xa.createAwait(A)),n.length&&!s)if(xa.Debug.assert(!x),xa.Debug.assert(!(r.facts&Aa.HasReturn)),1===n.length){var w=n[0];D.push(xa.createVariableStatement(undefined,xa.createVariableDeclarationList([xa.createVariableDeclaration(xa.getSynthesizedDeepClone(w.name),xa.getSynthesizedDeepClone(w.type),A)],w.parent.flags)))}else{for(var V=[],P=[],L=n[0].parent.flags,M=!1,F=0,O=n;F<O.length;F++){w=O[F],V.push(xa.createBindingElement(undefined,undefined,xa.getSynthesizedDeepClone(w.name)));var R=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(w)),a,1);P.push(xa.createPropertySignature(undefined,w.symbol.name,undefined,R,undefined)),M=M||w.type!==undefined,L&=w.parent.flags}var H=M?xa.createTypeLiteralNode(P):undefined;H&&xa.setEmitFlags(H,1),D.push(xa.createVariableStatement(undefined,xa.createVariableDeclarationList([xa.createVariableDeclaration(xa.createObjectBindingPattern(V),H,A)],L)))}else if(n.length||s){if(n.length)for(var j=0,W=n;j<W.length;j++){var G=(w=W[j]).parent.flags;2&G&&(G=-3&G|1),D.push(xa.createVariableStatement(undefined,xa.createVariableDeclarationList([xa.createVariableDeclaration(w.symbol.name,K(w.type))],G)))}x&&D.push(xa.createVariableStatement(undefined,xa.createVariableDeclarationList([xa.createVariableDeclaration(x,K(o))],1)));var Y=Ph(n,s);x&&Y.unshift(xa.createShorthandPropertyAssignment(x)),1===Y.length?(xa.Debug.assert(!x),D.push(xa.createStatement(xa.createAssignment(Y[0].name,A))),r.facts&Aa.HasReturn&&D.push(xa.createReturn())):(D.push(xa.createStatement(xa.createAssignment(xa.createObjectLiteral(Y),A))),x&&D.push(xa.createReturn(xa.createIdentifier(x))))}else r.facts&Aa.HasReturn?D.push(xa.createReturn(A)):Lh(r.range)?D.push(xa.createStatement(A)):D.push(A);Lh(r.range)?S.replaceNodeRangeWithNodes(i.file,xa.first(r.range),xa.last(r.range),D):S.replaceNodeWithNodes(i.file,r.range,D);var J=S.getChanges(),z=(Lh(r.range)?xa.first(r.range):r.range).getSourceFile().fileName,U=xa.getRenameLocation(J,z,f,!1);return{renameFilename:z,renameLocation:U,edits:J};function K(e){if(e===undefined)return undefined;for(var t=xa.getSynthesizedDeepClone(e),n=t;xa.isParenthesizedTypeNode(n);)n=n.type;return xa.isUnionTypeNode(n)&&xa.find(n.types,function(e){return 142===e.kind})?t:xa.createUnionTypeNode([t,xa.createKeywordTypeNode(142)])}}(c,o[i],u[i],d,n,r)}var h,g,m,y,b,v,E,I,T,C,B=/^constant_scope_(\d+)$/.exec(t);if(B){_=+B[1];return xa.Debug.assert(isFinite(_),"Expected to parse a finite number from the constant scope index"),m=_,y=wh(h=p,g=e),b=y.scopes,v=y.readsAndWrites,E=v.target,I=v.usagesPerScope,T=v.constantErrorsPerScope,C=v.exposedVariableDeclarations,xa.Debug.assert(!T[m].length,"The extraction went missing? How?"),xa.Debug.assert(0===C.length,"Extract constant accepted a range containing a variable declaration?"),g.cancellationToken.throwIfCancellationRequested(),function(e,t,n,r,i){var a=n.substitutions,o=i.program.getTypeChecker(),s=t.getSourceFile(),c=xa.getUniqueName(xa.isClassLike(t)?"newProperty":"newLocal",s),u=xa.isInJSFile(t),l=u||!o.isContextSensitive(e)?undefined:o.typeToTypeNode(o.getContextualType(e),t,1),d=function(e,n){return n.size?function r(e){var t=n.get(xa.getNodeId(e).toString());return t?xa.getSynthesizedDeepClone(t):xa.visitEachChild(e,r,xa.nullTransformationContext)}(e):e}(e,a);xa.suppressLeadingAndTrailingTrivia(d);var p,f,_,h,g,m,y,b=xa.textChanges.ChangeTracker.fromContext(i);xa.isClassLike(t)?(xa.Debug.assert(!u),(p=[]).push(xa.createToken(114)),r&Aa.InStaticRegion&&p.push(xa.createToken(117)),p.push(xa.createToken(134)),f=xa.createProperty(undefined,p,c,undefined,l,d),y=xa.createPropertyAccess(r&Aa.InStaticRegion?xa.createIdentifier(t.name.getText()):xa.createThis(),xa.createIdentifier(c)),m=function(e,t){var n,r=t.members;xa.Debug.assert(0<r.length);for(var i=!0,a=0,o=r;a<o.length;a++){var s=o[a];if(s.pos>e)return n||r[0];if(i&&!xa.isPropertyDeclaration(s)){if(n!==undefined)return s;i=!1}n=s}return n===undefined?xa.Debug.fail():n}(e.pos,t),b.insertNodeBefore(i.file,m,f,!0),b.replaceNode(i.file,e,y)):(_=xa.createVariableDeclaration(c,l,d),(h=function(e,t){for(var n;e!==undefined&&e!==t;){if(xa.isVariableDeclaration(e)&&e.initializer===n&&xa.isVariableDeclarationList(e.parent)&&1<e.parent.declarations.length)return e;e=(n=e).parent}}(e,t))?(b.insertNodeBefore(i.file,h,_),y=xa.createIdentifier(c),b.replaceNode(i.file,e,y)):222===e.parent.kind&&t===xa.findAncestor(e,Ah)?(g=xa.createVariableStatement(undefined,xa.createVariableDeclarationList([_],2)),b.replaceNode(i.file,e.parent,g)):(g=xa.createVariableStatement(undefined,xa.createVariableDeclarationList([_],2)),0===(m=function(e,t){var n;xa.Debug.assert(!xa.isClassLike(t));for(var r=e;r!==t;r=r.parent)Ah(r)&&(n=r);for(r=(n||e).parent;;r=r.parent){if(Mh(r)){for(var i=void 0,a=0,o=r.statements;a<o.length;a++){var s=o[a];if(s.pos>e.pos)break;i=s}return!i&&xa.isCaseClause(r)?(xa.Debug.assert(xa.isSwitchStatement(r.parent.parent)),r.parent.parent):xa.Debug.assertDefined(i)}xa.Debug.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t)).pos?b.insertNodeAtTopOfFile(i.file,g,!1):b.insertNodeBefore(i.file,m,g,!1),222===e.parent.kind?b["delete"](i.file,e.parent):(y=xa.createIdentifier(c),b.replaceNode(i.file,e,y))));var v=b.getChanges(),E=e.getSourceFile().fileName,I=xa.getRenameLocation(v,E,c,!0);return{renameFilename:E,renameLocation:I,edits:v}}(xa.isExpression(E)?E:E.statements[0].expression,b[m],I[m],h.facts,g)}xa.Debug.fail("Unrecognized action name")}function Dh(e){return{message:e,code:0,category:xa.DiagnosticCategory.Message,key:e}}function kh(e,u){var t=u.length;if(0===t)return{errors:[xa.createFileDiagnostic(e,u.start,t,Da.cannotExtractEmpty)]};var n=xa.getParentNodeInSpan(xa.getTokenAtPosition(e,u.start),e,u),r=xa.getParentNodeInSpan(xa.findTokenOnLeftOfPosition(e,xa.textSpanEnd(u)),e,u),l=[],d=Aa.None;if(!n||!r)return{errors:[xa.createFileDiagnostic(e,u.start,t,Da.cannotExtractRange)]};if(n.parent!==r.parent)return{errors:[xa.createFileDiagnostic(e,u.start,t,Da.cannotExtractRange)]};if(n!==r){if(!Mh(n.parent))return{errors:[xa.createFileDiagnostic(e,u.start,t,Da.cannotExtractRange)]};for(var i=[],a=0,o=n.parent.statements;a<o.length;a++){var s=o[a];if(s===n||i.length){var c=_(s);if(c)return{errors:c};i.push(s)}if(s===r)break}return i.length?{targetRange:{range:i,facts:d,declarations:l}}:{errors:[xa.createFileDiagnostic(e,u.start,t,Da.cannotExtractRange)]}}if(xa.isReturnStatement(n)&&!n.expression)return{errors:[xa.createFileDiagnostic(e,u.start,t,Da.cannotExtractRange)]};var p=function(e){if(xa.isReturnStatement(e)){if(e.expression)return e.expression}else if(xa.isVariableStatement(e)){for(var t=0,n=void 0,r=0,i=e.declarationList.declarations;r<i.length;r++){var a=i[r];a.initializer&&(t++,n=a.initializer)}if(1===t)return n}else if(xa.isVariableDeclaration(e)&&e.initializer)return e.initializer;return e}(n),f=function(e){if(xa.isIdentifier(xa.isExpressionStatement(e)?e.expression:e))return[xa.createDiagnosticForNode(e,Da.cannotExtractIdentifier)];return undefined}(p)||_(p);return f?{errors:f}:{targetRange:{range:function(e){{if(xa.isStatement(e))return[e];if(xa.isExpressionNode(e))return xa.isExpressionStatement(e.parent)?[e.parent]:e}return undefined}(p),facts:d,declarations:l}};function _(e){var t;if((t={})[t.None=0]="None",t[t.Break=1]="Break",t[t.Continue=2]="Continue",t[t.Return=4]="Return",xa.Debug.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),xa.Debug.assert(!xa.positionIsSynthesized(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(xa.isStatement(e)||xa.isExpressionNode(e)&&function(e){var t=e.parent;switch(t.kind){case 279:return!1}switch(e.kind){case 10:return 250!==t.kind&&254!==t.kind;case 209:case 185:case 187:return!1;case 73:return 187!==t.kind&&254!==t.kind&&258!==t.kind}return!0}(e)))return[xa.createDiagnosticForNode(e,Da.statementOrExpressionExpected)];if(4194304&e.flags)return[xa.createDiagnosticForNode(e,Da.cannotExtractAmbientBlock)];var a,n=xa.getContainingClass(e);n&&function(e,t){for(var n=e;n!==t;){if(155===n.kind){xa.hasModifier(n,32)&&(d|=Aa.InStaticRegion);break}if(152===n.kind){158===xa.getContainingFunction(n).kind&&(d|=Aa.InStaticRegion);break}157===n.kind&&xa.hasModifier(n,32)&&(d|=Aa.InStaticRegion),n=n.parent}}(e,n);var o,s=4;return function c(e){if(a)return!0;if(xa.isDeclaration(e)){var t=238===e.kind?e.parent.parent:e;if(xa.hasModifier(t,1))return(a=a||[]).push(xa.createDiagnosticForNode(e,Da.cannotExtractExportedEntity)),!0;l.push(e.symbol)}switch(e.kind){case 250:return(a=a||[]).push(xa.createDiagnosticForNode(e,Da.cannotExtractImport)),!0;case 99:if(192===e.parent.kind){var n=xa.getContainingClass(e);if(n.pos<u.start||n.end>=u.start+u.length)return(a=a||[]).push(xa.createDiagnosticForNode(e,Da.cannotExtractSuper)),!0}else d|=Aa.UsesThis}if(xa.isFunctionLikeDeclaration(e)||xa.isClassLike(e)){switch(e.kind){case 240:case 241:xa.isSourceFile(e.parent)&&e.parent.externalModuleIndicator===undefined&&(a=a||[]).push(xa.createDiagnosticForNode(e,Da.functionWillNotBeVisibleInTheNewScope))}return!1}var r=s;switch(e.kind){case 223:case 236:s=0;break;case 219:e.parent&&236===e.parent.kind&&e.parent.finallyBlock===e&&(s=4);break;case 272:s|=1;break;default:xa.isIterationStatement(e,!1)&&(s|=3)}switch(e.kind){case 179:case 101:d|=Aa.UsesThis;break;case 234:var i=e.label;(o=o||[]).push(i.escapedText),xa.forEachChild(e,c),o.pop();break;case 230:case 229:var i=e.label;i?xa.contains(o,i.escapedText)||(a=a||[]).push(xa.createDiagnosticForNode(e,Da.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(230===e.kind?1:2)||(a=a||[]).push(xa.createDiagnosticForNode(e,Da.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 202:d|=Aa.IsAsyncFunction;break;case 208:d|=Aa.IsGenerator;break;case 231:4&s?d|=Aa.HasReturn:(a=a||[]).push(xa.createDiagnosticForNode(e,Da.cannotExtractRangeContainingConditionalReturnStatement));break;default:xa.forEachChild(e,c)}s=r}(e),a}}function Ah(e){return xa.isFunctionLikeDeclaration(e)||xa.isSourceFile(e)||xa.isModuleBlock(e)||xa.isClassLike(e)}function wh(e,t){var n,r,i=t.file,a=function(e){var t=Lh(e.range)?xa.first(e.range):e.range;if(e.facts&Aa.UsesThis){var n=xa.getContainingClass(t);if(n){var r=xa.findAncestor(t,xa.isFunctionLikeDeclaration);return r?[r,n]:[n]}}for(var i=[];;)if(152===(t=t.parent).kind&&(t=xa.findAncestor(t,function(e){return xa.isFunctionLikeDeclaration(e)}).parent),Ah(t)&&(i.push(t),285===t.kind))return i}(e);return{scopes:a,readsAndWrites:function(v,E,I,T,C,i){var o,e,a=xa.createMap(),B=[],x=[],S=[],N=[],s=[],c=xa.createMap(),u=[],t=Lh(v.range)?1===v.range.length&&xa.isExpressionStatement(v.range[0])?v.range[0].expression:undefined:v.range;{var n,r,l;t===undefined?(n=v.range,r=xa.first(n).getStart(),l=xa.last(n).end,e=xa.createFileDiagnostic(T,r,l-r,Da.expressionExpected)):147456&C.getTypeAtLocation(t).flags&&(e=xa.createDiagnosticForNode(t,Da.uselessConstantType))}for(var d=0,p=E;d<p.length;d++){var f=p[d];B.push({usages:xa.createMap(),typeParameterUsages:xa.createMap(),substitutions:xa.createMap()}),x.push(xa.createMap()),S.push(xa.isFunctionLikeDeclaration(f)&&240!==f.kind?[xa.createDiagnosticForNode(f,Da.cannotExtractToOtherFunctionLike)]:[]);var _=[];e&&_.push(e),xa.isClassLike(f)&&xa.isInJSFile(f)&&_.push(xa.createDiagnosticForNode(f,Da.cannotExtractToJSClass)),xa.isArrowFunction(f)&&!xa.isBlock(f.body)&&_.push(xa.createDiagnosticForNode(f,Da.cannotExtractToExpressionArrowFunction)),N.push(_)}var D=xa.createMap(),h=Lh(v.range)?xa.createBlock(v.range):v.range,g=Lh(v.range)?xa.first(v.range):v.range,m=function(e){return!!xa.findAncestor(e,function(e){return xa.isDeclarationWithTypeParameters(e)&&0!==xa.getEffectiveTypeParameterDeclarations(e).length})}(g);{(function j(e,t){void 0===t&&(t=1);{m&&O(C.getTypeAtLocation(e))}xa.isDeclaration(e)&&e.symbol&&s.push(e);if(xa.isAssignmentExpression(e))j(e.left,2),j(e.right);else if(xa.isUnaryExpressionWithWrite(e))j(e.operand,2);else if(xa.isPropertyAccessExpression(e)||xa.isElementAccessExpression(e))xa.forEachChild(e,j);else if(xa.isIdentifier(e)){if(!e.parent)return;if(xa.isQualifiedName(e.parent)&&e!==e.parent.left)return;if(xa.isPropertyAccessExpression(e.parent)&&e!==e.parent.expression)return;R(e,t,xa.isPartOfTypeNode(e))}else xa.forEachChild(e,j)})(h),m&&!Lh(v.range)&&O(C.getContextualType(v.range))}if(0<a.size){for(var y=xa.createMap(),b=0,k=g;k!==undefined&&b<E.length;k=k.parent)if(k===E[b]&&(y.forEach(function(e,t){B[b].typeParameterUsages.set(t,e)}),b++),xa.isDeclarationWithTypeParameters(k))for(var A=0,w=xa.getEffectiveTypeParameterDeclarations(k);A<w.length;A++){var V=w[A],P=C.getTypeAtLocation(V);a.has(P.id.toString())&&y.set(P.id.toString(),P)}xa.Debug.assert(b===E.length)}{var L;s.length&&(L=xa.isBlockScope(E[0],E[0].parent)?E[0]:xa.getEnclosingBlockScopeContainer(E[0]),xa.forEachChild(L,function W(e){if(e===v.range||Lh(v.range)&&0<=v.range.indexOf(e))return;var t=xa.isIdentifier(e)?H(e):C.getSymbolAtLocation(e);{var n,r;!t||(n=xa.find(s,function(e){return e.symbol===t}))&&(xa.isVariableDeclaration(n)?(r=n.symbol.id.toString(),c.has(r)||(u.push(n),c.set(r,!0))):o=o||n)}xa.forEachChild(e,W)}))}for(var M=function M(e){var t,n=B[e];0<e&&(0<n.usages.size||0<n.typeParameterUsages.size)&&(t=Lh(v.range)?v.range[0]:v.range,N[e].push(xa.createDiagnosticForNode(t,Da.cannotAccessVariablesFromNestedScopes)));var r,i,a=!1;B[e].usages.forEach(function(e){2===e.usage&&(a=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&xa.hasModifier(e.symbol.valueDeclaration,64)&&(r=e.symbol.valueDeclaration))}),xa.Debug.assert(Lh(v.range)||0===u.length),a&&!Lh(v.range)?(i=xa.createDiagnosticForNode(v.range,Da.cannotWriteInExpression),S[e].push(i),N[e].push(i)):r&&0<e?(i=xa.createDiagnosticForNode(r,Da.cannotExtractReadonlyPropertyInitializerOutsideConstructor),S[e].push(i),N[e].push(i)):o&&(i=xa.createDiagnosticForNode(o,Da.cannotExtractExportedEntity),S[e].push(i),N[e].push(i))},F=0;F<E.length;F++)M(F);return{target:h,usagesPerScope:B,functionErrorsPerScope:S,constantErrorsPerScope:N,exposedVariableDeclarations:u};function O(e){for(var t=0,n=C.getSymbolWalker(function(){return i.throwIfCancellationRequested(),!0}).walkType(e).visitedTypes;t<n.length;t++){var r=n[t];r.isTypeParameter()&&a.set(r.id.toString(),r)}}function R(e,t,n){var r=function(e,t,n){var r=H(e);if(!r)return undefined;var i=xa.getSymbolId(r).toString(),a=D.get(i);if(a&&t<=a)return i;if(D.set(i,t),a){for(var o=0,s=B;o<s.length;o++){var c=s[o];c.usages.get(e.text)&&c.usages.set(e.text,{usage:t,symbol:r,node:e})}return i}var u=r.getDeclarations(),l=u&&xa.find(u,function(e){return e.getSourceFile()===T});if(!l)return undefined;if(xa.rangeContainsStartEnd(I,l.getStart(),l.end))return undefined;if(v.facts&Aa.IsGenerator&&2===t){for(var d=xa.createDiagnosticForNode(e,Da.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),p=0,f=S;p<f.length;p++){f[p].push(d)}for(var _=0,h=N;_<h.length;_++){h[_].push(d)}}for(var g=0;g<E.length;g++){var m,y=E[g];C.resolveName(r.name,y,r.flags,!1)!==r&&(x[g].has(i)||((m=function b(e,t,n){if(!e)return undefined;var r=e.getDeclarations();if(r&&r.some(function(e){return e.parent===t}))return xa.createIdentifier(e.name);var i=b(e.parent,t,n);if(i===undefined)return undefined;return n?xa.createQualifiedName(i,xa.createIdentifier(e.name)):xa.createPropertyAccess(i,e.name)}(r.exportSymbol||r,y,n))?x[g].set(i,m):n?262144&r.flags||(d=xa.createDiagnosticForNode(e,Da.typeWillNotBeVisibleInTheNewScope),S[g].push(d),N[g].push(d)):B[g].usages.set(e.text,{usage:t,symbol:r,node:e})))}return i}(e,t,n);if(r)for(var i=0;i<E.length;i++){var a=x[i].get(r);a&&B[i].substitutions.set(xa.getNodeId(e).toString(),a)}}function H(e){return e.parent&&xa.isShorthandPropertyAssignment(e.parent)&&e.parent.name===e?C.getShorthandAssignmentValueSymbol(e.parent):C.getSymbolAtLocation(e)}}(e,a,(r=i,Lh((n=e).range)?{pos:xa.first(n.range).getStart(r),end:xa.last(n.range).getEnd()}:n.range),i,t.program.getTypeChecker(),t.cancellationToken)}}function Vh(e,t){var n=e.type,r=e.declaration,i=t.type,a=t.declaration;return xa.compareProperties(r,a,"pos",xa.compareValues)||xa.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",i.symbol?i.symbol.getName():"")||xa.compareValues(n.id,i.id)}function Ph(e,t){var n=xa.map(e,function(e){return xa.createShorthandPropertyAssignment(e.symbol.name)}),r=xa.map(t,function(e){return xa.createShorthandPropertyAssignment(e.symbol.name)});return n===undefined?r:r===undefined?n:n.concat(r)}function Lh(e){return xa.isArray(e)}function Mh(e){switch(e.kind){case 219:case 285:case 246:case 272:return 1;default:return}}function Fh(e){var t=e.file,n=e.startPosition,r=Ma.isSourceFileJS(t),i=Ma.getTokenAtPosition(t,n),a=Ma.createTextRangeFromSpan(Ma.getRefactorContextSpan(e)),o=Ma.findAncestor(i,function(e){return e.parent&&Rh(a,e,t)&&!Rh(a,e.parent,t)});if(!o||!Ma.isTypeNode(o))return undefined;var s,c,u,l,d,p=e.program.getTypeChecker(),f=Ma.Debug.assertDefined(r?Ma.findAncestor(o,Oh):Ma.findAncestor(o,Ma.isStatement)),_=(s=p,u=f,l=t,d=[],function h(t){var e;if(Ma.isTypeReferenceNode(t))!Ma.isIdentifier(t.typeName)||(i=s.resolveName(t.typeName.text,t.typeName,262144,!0))&&(e=Ma.cast(Ma.first(i.declarations),Ma.isTypeParameterDeclaration),Rh(u,e,l)&&!Rh(c,e,l)&&d.push(e));else if(Ma.isInferTypeNode(t)){var n=Ma.findAncestor(t,function(e){return Ma.isConditionalTypeNode(e)&&Rh(e.extendsType,t,l)});if(!n||!Rh(c,n,l))return!0}else if(Ma.isTypePredicateNode(t)||Ma.isThisTypeNode(t)){var r=Ma.findAncestor(t.parent,Ma.isFunctionLike);if(r&&r.type&&Rh(r.type,t,l)&&!Rh(c,r,l))return!0}else if(Ma.isTypeQueryNode(t))if(Ma.isIdentifier(t.exprName)){var i=s.resolveName(t.exprName.text,t.exprName,67220415,!1);if(i&&Rh(u,i.valueDeclaration,l)&&!Rh(c,i.valueDeclaration,l))return!0}else if(Ma.isThisIdentifier(t.exprName.left)&&!Rh(c,t.parent,l))return!0;return Ma.forEachChild(t,h)}(c=o)?undefined:d);return _?{isJS:r,selection:o,firstStatement:f,typeParameters:_}:undefined}function Oh(e){return Ma.isStatement(e)&&Ma.hasJSDocNodes(e)}function Rh(e,t,n){return Ma.rangeContainsStartEnd(e,Ma.skipTrivia(n.text,t.pos),t.end)}function Hh(e){return ja.isParameterPropertyDeclaration(e)||ja.isPropertyDeclaration(e)||ja.isPropertyAssignment(e)}function jh(e,t){return ja.isIdentifier(t)?ja.createIdentifier(e):ja.createLiteral(e)}function Wh(e,t,n){var r=t?n.name:ja.createThis();return ja.isIdentifier(e)?ja.createPropertyAccess(r,e):ja.createElementAccess(r,ja.createLiteral(e))}function Gh(e,t,n){var r=ja.append(e?undefined:[ja.createToken(n)],t?ja.createToken(117):undefined);return r&&ja.createNodeArray(r)}function Yh(e){var t,n=e.file,r=e.startPosition,i=e.endPosition,a=ja.getTokenAtPosition(n,r),o=ja.findAncestor(a.parent,Hh);if(!(o&&ja.nodeOverlapsWithStartEnd(o.name,n,r,i)&&(t=o.name,ja.isIdentifier(t)||ja.isStringLiteral(t))&&124==(124|ja.getModifierFlags(o))))return undefined;var s=o.name.text,c=95===s.charCodeAt(0),u=jh(c?s:ja.getUniqueName("_"+s,n),o.name),l=jh(c?ja.getUniqueName(s.substring(1),n):s,o.name);return{isStatic:ja.hasStaticModifier(o),isReadonly:ja.hasReadonlyModifier(o),type:ja.getTypeAnnotationNode(o),container:152===o.kind?o.parent.parent:o.parent,originalName:o.name.text,declaration:o,fieldName:u,accessorName:l,renameAccessor:c}}function Jh(e,t,n,r,i){ja.isParameterPropertyDeclaration(r)?e.insertNodeAtClassStart(t,i,n):ja.isPropertyAssignment(r)?e.insertNodeAfterComma(t,r,n):e.insertNodeAfter(t,r,n)}function zh(e,t){var n=za.getTokenAtPosition(e,t),r=za.getContainingFunction(n);if(!r||!za.isArrowFunction(r)||!za.rangeContainsRange(r,n)||za.rangeContainsRange(r.body,n))return undefined;if(za.isExpression(r.body))return{func:r,addBraces:!0,expression:r.body};if(1===r.body.statements.length){var i=za.first(r.body.statements);if(za.isReturnStatement(i))return{func:r,addBraces:!1,expression:i.expression,returnStatement:i}}return undefined}function Uh(e){var t=e.node;return eo.isImportSpecifier(t.parent)||eo.isImportClause(t.parent)||eo.isImportEqualsDeclaration(t.parent)||eo.isNamespaceImport(t.parent)||eo.isExportSpecifier(t.parent)||eo.isExportAssignment(t.parent)?t:undefined}function Kh(e){return eo.isDeclaration(e.node.parent)?e.node:undefined}function Zh(e,t,n){var r=eo.getTouchingToken(e,t),i=eo.getContainingFunctionDeclaration(r);return function(e){var t=eo.findAncestor(e,eo.isJSDocNode);if(t){var n=eo.findAncestor(t,function(e){return!eo.isJSDocNode(e)});return!!n&&eo.isFunctionLikeDeclaration(n)}return!1}(r)||!(i&&function(e,t){if(!function(e,t){return function(e){if($h(e))return e.length-1;return e.length}(e)>=ro&&eo.every(e,function(e){return function(e,t){if(eo.isRestParameter(e)){var n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&!e.decorators&&eo.isIdentifier(e.name)}(e,t)})}(e.parameters,t))return!1;switch(e.kind){case 240:return qh(e)&&Xh(e,t);case 157:return Xh(e,t);case 158:return eo.isClassDeclaration(e.parent)?qh(e.parent)&&Xh(e,t):Qh(e.parent.parent)&&Xh(e,t);case 197:case 198:return Qh(e.parent)}return!1}(i,n)&&eo.rangeContainsRange(i,r))||i.body&&eo.rangeContainsRange(i.body,r)?undefined:i}function Xh(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function qh(e){return!!e.name||!!eo.findModifier(e,81)}function Qh(e){return eo.isVariableDeclaration(e)&&eo.isVarConst(e)&&eo.isIdentifier(e.name)&&!e.type}function $h(e){return 0<e.length&&eo.isThis(e[0].name)}function eg(e){return $h(e)&&(e=eo.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function tg(e,t){var n=e.getSourceFile();!function(e,t){for(var n=e.getFullStart(),r=e.getStart(),i=n;i<r;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,n.text)?eo.copyTrailingAsLeadingComments(e,t,n):eo.copyLeadingComments(e,t,n),eo.copyTrailingComments(e,t,n)}function ng(e){return eo.getTextOfIdentifierOrLiteral(e.name)}(e=rg=rg||{}).versionMajorMinor="3.5",e.version=e.versionMajorMinor+".2",t=rg=rg||{},(i=t.Comparison||(t.Comparison={}))[i.LessThan=-1]="LessThan",i[i.EqualTo=0]="EqualTo",i[i.GreaterThan=1]="GreaterThan",function(_){function r(){var e=Object.create(null);return e.__=undefined,delete e.__,e}function c(){return new _.MapCtr}function e(){var e=(t.prototype.next=function(){for(;this.currentEntry;){var e=!!this.currentEntry.skipNext;if(this.currentEntry=this.currentEntry.nextEntry,!e)break}return this.currentEntry?{value:this.selector(this.currentEntry.key,this.currentEntry.value),done:!1}:{value:undefined,done:!0}},t);function t(e,t){this.currentEntry=e,this.selector=t}return n.prototype.get=function(e){var t=this.data[e];return t&&t.value},n.prototype.set=function(e,t){var n,r;return this.has(e)?this.data[e].value=t:(this.size++,n={key:e,value:t},this.data[e]=n,((r=this.lastEntry).nextEntry=n).previousEntry=r,this.lastEntry=n),this},n.prototype.has=function(e){return e in this.data},n.prototype["delete"]=function(e){if(this.has(e)){this.size--;var t=this.data[e];delete this.data[e];var n=t.previousEntry;return n.nextEntry=t.nextEntry,t.nextEntry&&(t.nextEntry.previousEntry=n),this.lastEntry===t&&(this.lastEntry=n),t.previousEntry=undefined,t.nextEntry=n,t.skipNext=!0}return!1},n.prototype.clear=function(){this.data=r(),this.size=0;for(var e=this.firstEntry,t=e.nextEntry;t;){var n=t.nextEntry;t.previousEntry=undefined,t.nextEntry=e,t.skipNext=!0,t=n}e.nextEntry=undefined,this.lastEntry=e},n.prototype.keys=function(){return new e(this.firstEntry,function(e){return e})},n.prototype.values=function(){return new e(this.firstEntry,function(e,t){return t})},n.prototype.entries=function(){return new e(this.firstEntry,function(e,t){return[e,t]})},n.prototype.forEach=function(e){for(var t=this.entries();;){var n=t.next(),r=n.value;if(n.done)break;e(r[1],r[0])}},n;function n(){this.data=r(),this.size=0,this.firstEntry={},this.lastEntry=this.firstEntry}}function i(e,t,n){if(void 0===n&&(n=N),e)for(var r=0,i=e;r<i.length;r++){if(n(i[r],t))return!0}return!1}function u(e,t){if(e){if(!t)return 0<e.length;for(var n=0,r=e;n<r.length;n++){if(t(r[n]))return!0}}return!1}function a(e,t){return t===undefined?e:e===undefined?[t]:(e.push(t),e)}function o(e,t){return t<0?e.length+t:t}function s(e,t,n,r){if(t===undefined||0===t.length)return e;if(e===undefined)return t.slice(n,r);n=n===undefined?0:o(t,n),r=r===undefined?t.length:o(t,r);for(var i=n;i<r&&i<t.length;i++)t[i]!==undefined&&e.push(t[i]);return e}function l(e,t,n){return!i(e,t,n)&&(e.push(t),!0)}function d(n,e,r){e.sort(function(e,t){return r(n[e],n[t])||k(e,t)})}function p(e,t){return 0===e.length?e:e.slice().sort(t)}function f(e){var t=0;return{next:function(){return t===e.length?{value:undefined,done:!0}:{value:e[++t-1],done:!1}}}}function h(e,t,n,r,i){return g(e,n(t),n,r,i)}function g(e,t,n,r,i){if(!u(e))return-1;for(var a=i||0,o=e.length-1;a<=o;){var s=a+(o-a>>1);switch(r(n(e[s]),t)){case-1:a=s+1;break;case 0:return s;case 1:o=s-1}}return~a}function m(e,t,n,r,i){if(e&&0<e.length){var a=e.length;if(0<a){var o=r===undefined||r<0?0:r,s=i===undefined||a-1<o+i?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}_.emptyArray=[],_.createMap=c,_.createMapFromEntries=function(e){for(var t=c(),n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],o=i[1];t.set(a,o)}return t},_.createMapFromTemplate=function(e){var t=new _.MapCtr;for(var n in e)y.call(e,n)&&t.set(n,e[n]);return t},_.MapCtr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:e(),_.shimMap=e,_.length=function(e){return e?e.length:0},_.forEach=function(e,t){if(e)for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r)return r}return undefined},_.firstDefined=function(e,t){if(e===undefined)return undefined;for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r!==undefined)return r}return undefined},_.firstDefinedIterator=function(e,t){for(;;){var n=e.next(),r=n.value;if(n.done)return undefined;var i=t(r);if(i!==undefined)return i}},_.zipWith=function(e,t,n){var r=[];_.Debug.assertEqual(e.length,t.length);for(var i=0;i<e.length;i++)r.push(n(e[i],t[i],i));return r},_.zipToIterator=function(e,t){_.Debug.assertEqual(e.length,t.length);var n=0;return{next:function(){return n===e.length?{value:undefined,done:!0}:{value:[e[++n-1],t[n-1]],done:!1}}}},_.zipToMap=function(e,t){_.Debug.assert(e.length===t.length);for(var n=c(),r=0;r<e.length;++r)n.set(e[r],t[r]);return n},_.every=function(e,t){if(e)for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0},_.find=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r,n))return r}return undefined},_.findLast=function(e,t){for(var n=e.length-1;0<=n;n--){var r=e[n];if(t(r,n))return r}return undefined},_.findIndex=function(e,t,n){for(var r=n||0;r<e.length;r++)if(t(e[r],r))return r;return-1},_.findLastIndex=function(e,t,n){for(var r=n===undefined?e.length-1:n;0<=r;r--)if(t(e[r],r))return r;return-1},_.findMap=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r)return r}return _.Debug.fail()},_.contains=i,_.arraysEqual=function(e,n,r){return void 0===r&&(r=N),e.length===n.length&&e.every(function(e,t){return r(e,n[t])})},_.indexOfAnyCharCode=function(e,t,n){for(var r=n||0;r<e.length;r++)if(i(t,e.charCodeAt(r)))return r;return-1},_.countWhere=function(e,t){var n=0;if(e)for(var r=0;r<e.length;r++){t(e[r],r)&&n++}return n},_.filter=function(e,t){if(e){for(var n=e.length,r=0;r<n&&t(e[r]);)r++;if(r<n){var i=e.slice(0,r);for(r++;r<n;){var a=e[r];t(a)&&i.push(a),r++}return i}}return e},_.filterMutate=function(e,t){for(var n=0,r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n},_.clear=function(e){e.length=0},_.map=function(e,t){var n;if(e){n=[];for(var r=0;r<e.length;r++)n.push(t(e[r],r))}return n},_.mapIterator=function(t,n){return{next:function(){var e=t.next();return e.done?e:{value:n(e.value),done:!1}}}},_.sameMap=function(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n],i=t(r,n);if(r!==i){var a=e.slice(0,n);for(a.push(i),n++;n<e.length;n++)a.push(t(e[n],n));return a}}return e},_.flatten=function(e){var t;if(e){t=[];for(var n=0,r=e;n<r.length;n++){var i=r[n];i&&(C(i)?s(t,i):t.push(i))}}return t},_.flatMap=function(e,t){var n;if(e)for(var r=0;r<e.length;r++){var i=t(e[r],r);i&&(n=(C(i)?s:a)(n,i))}return n||_.emptyArray},_.flatMapToMutable=function(e,t){var n=[];if(e)for(var r=0;r<e.length;r++){var i=t(e[r],r);i&&(C(i)?s(n,i):n.push(i))}return n},_.flatMapIterator=function(n,r){var e=n.next();if(e.done)return _.emptyIterator;var i=a(e.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var t=n.next();if(t.done)return t;i=a(t.value)}}};function a(e){var t=r(e);return t===undefined?_.emptyIterator:C(t)?f(t):t}},_.sameFlatMap=function(e,t){var n;if(e)for(var r=0;r<e.length;r++){var i=e[r],a=t(i,r);(n||i!==a||C(a))&&(n=n||e.slice(0,r),C(a)?s(n,a):n.push(a))}return n||e},_.mapAllOrFail=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r],r);if(i===undefined)return undefined;n.push(i)}return n},_.mapDefined=function(e,t){var n=[];if(e)for(var r=0;r<e.length;r++){var i=t(e[r],r);i!==undefined&&n.push(i)}return n},_.mapDefinedIterator=function(n,r){return{next:function(){for(;;){var e=n.next();if(e.done)return e;var t=r(e.value);if(t!==undefined)return{value:t,done:!1}}}}},_.emptyIterator={next:function(){return{value:undefined,done:!0}}},_.singleIterator=function(t){var n=!1;return{next:function(){var e=n;return n=!0,e?{value:undefined,done:!0}:{value:t,done:!1}}}},_.spanMap=function(e,t,n){var r;if(e){r=[];for(var i,a=e.length,o=void 0,s=void 0,c=0,u=0;c<a;){for(;u<a;){s=t(e[u],u);if(0===u)o=s;else if(s!==o)break;u++}c<u&&((i=n(e.slice(c,u),o,c,u))&&r.push(i),c=u),o=s,u++}}return r},_.mapEntries=function(e,a){if(!e)return undefined;var o=c();return e.forEach(function(e,t){var n=a(t,e),r=n[0],i=n[1];o.set(r,i)}),o},_.some=u,_.getRangesWhere=function(e,t,n){for(var r,i=0;i<e.length;i++)t(e[i])?r=r===undefined?i:r:r!==undefined&&(n(r,i),r=undefined);r!==undefined&&n(r,e.length)},_.concatenate=function(e,t){return u(t)?u(e)?e.concat(t):t:e},_.deduplicate=function(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?function(t,e,n){var r=t.map(function(e,t){return t});d(t,r,n);for(var i=t[r[0]],a=[r[0]],o=1;o<r.length;o++){var s=r[o],c=t[s];e(i,c)||(a.push(s),i=c)}return a.sort(),a.map(function(e){return t[e]})}(e,t,n):function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){l(n,i[r],t)}return n}(e,t)},_.insertSorted=function(e,t,n){var r;0!==e.length?(r=h(e,t,x,n))<0&&e.splice(~r,0,t):e.push(t)},_.sortAndDeduplicate=function(e,t,n){return function(e,t){if(0===e.length)return _.emptyArray;for(var n=e[0],r=[n],i=1;i<e.length;i++){var a=e[i];switch(t(a,n)){case!0:case 0:continue;case-1:return _.Debug.fail("Array is unsorted.")}r.push(n=a)}return r}(p(e,t),n||t||w)},_.arrayIsEqualTo=function(e,t,n){if(void 0===n&&(n=N),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0},_.compact=function(e){var t;if(e)for(var n=0;n<e.length;n++){var r=e[n];!t&&r||(t=t||e.slice(0,n),r&&t.push(r))}return t||e},_.relativeComplement=function(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;var r=[];e:for(var i=0,a=0;a<t.length;a++){0<a&&_.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);t:for(var o=i;i<e.length;i++)switch(o<i&&_.Debug.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[a],e[i])){case-1:r.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return r},_.sum=function(e,t){for(var n=0,r=0,i=e;r<i.length;r++){n+=i[r][t]}return n},_.append=a,_.addRange=s,_.pushIfUnique=l,_.appendIfUnique=function(e,t,n){return e?(l(e,t,n),e):[t]},_.sort=p,_.arrayIterator=f,_.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:undefined,done:!0}:{value:e[--t],done:!1}}}},_.stableSort=function(t,e){var n=t.map(function(e,t){return t});return d(t,n,e),n.map(function(e){return t[e]})},_.rangeEquals=function(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0},_.elementAt=function(e,t){return e&&(t=o(e,t))<e.length?e[t]:undefined},_.firstOrUndefined=function(e){return 0===e.length?undefined:e[0]},_.first=function(e){return _.Debug.assert(0!==e.length),e[0]},_.lastOrUndefined=function(e){return 0===e.length?undefined:e[e.length-1]},_.last=function(e){return _.Debug.assert(0!==e.length),e[e.length-1]},_.singleOrUndefined=function(e){return e&&1===e.length?e[0]:undefined},_.singleOrMany=function(e){return e&&1===e.length?e[0]:e},_.replaceElement=function(e,t,n){var r=e.slice(0);return r[t]=n,r},_.binarySearch=h,_.binarySearchKey=g,_.reduceLeft=m;var t,y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function n(e,t){for(var n,r=[],i=e.next(),a=i.value,o=i.done;!o;a=(n=e.next()).value,o=n.done)r.push(t?t(a):a);return r}function v(e,t,n){void 0===n&&(n=x);for(var r=E(),i=0,a=e;i<a.length;i++){var o=a[i];r.add(t(o),n(o))}return r}function E(){var e=c();return e.add=I,e.remove=T,e}function I(e,t){var n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function T(e,t){var n=this.get(e);n&&(U(n,t),n.length||this["delete"](e))}function C(e){return Array.isArray?Array.isArray(e):e instanceof Array}function B(e){}function x(e){return e}function S(e){return e.toLowerCase()}function N(e,t){return e===t}function D(e,t){return e===t?0:e===undefined||t!==undefined&&e<t?-1:1}function k(e,t){return D(e,t)}function A(e,t){return e===t?0:e===undefined?-1:t===undefined?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:t<e?1:0}function w(e,t){return D(e,t)}_.hasProperty=b,_.getProperty=function(e,t){return y.call(e,t)?e[t]:undefined},_.getOwnKeys=function(e){var t=[];for(var n in e)y.call(e,n)&&t.push(n);return t},_.getOwnValues=function(e){var t=[];for(var n in e)y.call(e,n)&&t.push(e[n]);return t},_.arrayFrom=n,_.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var a=i[r];if(a!==undefined)for(var o in a)b(a,o)&&(e[o]=a[o])}return e},_.equalOwnProperties=function(e,t,n){if(void 0===n&&(n=N),e===t)return!0;if(!e||!t)return!1;for(var r in e)if(y.call(e,r)){if(!y.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(var r in t)if(y.call(t,r)&&!y.call(e,r))return!1;return!0},_.arrayToMap=function(e,t,n){void 0===n&&(n=x);for(var r=c(),i=0,a=e;i<a.length;i++){var o=a[i],s=t(o);s!==undefined&&r.set(s,n(o))}return r},_.arrayToNumericMap=function(e,t,n){void 0===n&&(n=x);for(var r=[],i=0,a=e;i<a.length;i++){var o=a[i];r[t(o)]=n(o)}return r},_.arrayToMultiMap=v,_.group=function(e,t){return n(v(e,t).values())},_.clone=function(e){var t={};for(var n in e)y.call(e,n)&&(t[n]=e[n]);return t},_.extend=function(e,t){var n={};for(var r in t)y.call(t,r)&&(n[r]=t[r]);for(var r in e)y.call(e,r)&&(n[r]=e[r]);return n},_.copyProperties=function(e,t){for(var n in t)y.call(t,n)&&(e[n]=t[n])},_.maybeBind=function(e,t){return t?t.bind(e):undefined},_.createMultiMap=E,_.isArray=C,_.toArray=function(e){return C(e)?e:[e]},_.isString=function(e){return"string"==typeof e},_.isNumber=function(e){return"number"==typeof e},_.tryCast=function(e,t){return e!==undefined&&t(e)?e:undefined},_.cast=function(e,t){return e!==undefined&&t(e)?e:_.Debug.fail("Invalid cast. The supplied value "+e+" did not pass the test '"+_.Debug.getFunctionName(t)+"'.")},_.noop=B,_.returnFalse=function(){return!1},_.returnTrue=function(){return!0},_.returnUndefined=function(){return undefined},_.identity=x,_.toLowerCase=S,_.notImplemented=function(){throw new Error("Not implemented")},_.memoize=function(e){var t;return function(){return e&&(t=e(),e=undefined),t}},_.compose=function(t,n,r,i,e){if(e){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return m(a,function(e,t){return t(e)},e)}}return i?function(e){return i(r(n(t(e))))}:r?function(e){return r(n(t(e)))}:n?function(e){return n(t(e))}:t?function(e){return t(e)}:function(e){return e}},(t=_.AssertionLevel||(_.AssertionLevel={}))[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",_.equateValues=N,_.equateStringsCaseInsensitive=function(e,t){return e===t||e!==undefined&&t!==undefined&&e.toUpperCase()===t.toUpperCase()},_.equateStringsCaseSensitive=function(e,t){return e===t},_.compareValues=k,_.min=function(e,t,n){return-1===n(e,t)?e:t},_.compareStringsCaseInsensitive=A,_.compareStringsCaseSensitive=w,_.getStringComparer=function(e){return e?A:w};var V,P,L,M,F,O=(L=function(){if("object"===("undefined"==typeof Intl?"undefined":zb(Intl))&&"function"==typeof Intl.Collator)return H;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return j;return W}(),function(e){return e===undefined?V=V||L(e):"en-US"===e?P=P||L(e):L(e)});function R(e,t,n){if(e===t)return 0;if(e===undefined)return-1;if(t===undefined)return 1;var r=n(e,t);return r<0?-1:0<r?1:0}function H(e){var n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return R(e,t,n)}}function j(e){return e!==undefined?W():function(e,t){return R(e,t,n)};function n(e,t){return e.localeCompare(t)}}function W(){return function(e,t){return R(e,t,n)};function n(e,t){return r(e.toUpperCase(),t.toUpperCase())||r(e,t)}function r(e,t){return e<t?-1:t<e?1:0}}function G(e,t){var n=e.length-t.length;return 0<=n&&e.indexOf(t,n)===n}function Y(e,t){return e.length>t.length&&G(e,t)}function J(e,t){for(var n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function z(e,t){e[t]=e[e.length-1],e.pop()}function U(e,t){return function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return z(e,n),!0;return!1}(e,function(e){return e===t})}function K(e,t){return 0===e.lastIndexOf(t,0)}function Z(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&K(t,n)&&G(t,r)}_.getUILocale=function(){return F},_.setUILocale=function(e){F!==e&&(F=e,M=undefined)},_.compareStringsCaseSensitiveUI=function(e,t){return(M=M||O(F))(e,t)},_.compareProperties=function(e,t,n,r){return e===t?0:e===undefined?-1:t===undefined?1:r(e[n],t[n])},_.compareBooleans=function(e,t){return k(e?1:0,t?1:0)},_.getSpellingSuggestion=function(e,t,n){for(var r,i=Math.min(2,Math.floor(.34*e.length)),a=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,u=t;c<u.length;c++){var l=u[c],d=n(l);if(d!==undefined&&Math.abs(d.length-s.length)<=i){var p=d.toLowerCase();if(p===s){if(d===e)continue;return l}if(o)continue;if(d.length<3)continue;var f=function(e,t,n){for(var r=new Array(t.length+1),i=new Array(t.length+1),a=n+1,o=0;o<=t.length;o++)r[o]=o;for(o=1;o<=e.length;o++){for(var s=e.charCodeAt(o-1),c=n<o?o-n:1,u=t.length>n+o?n+o:t.length,l=i[0]=o,d=1;d<c;d++)i[d]=a;for(d=c;d<=u;d++){var p=s===t.charCodeAt(d-1)?r[d-1]:Math.min(r[d]+1,i[d-1]+1,r[d-1]+2);i[d]=p,l=Math.min(l,p)}for(d=u+1;d<=t.length;d++)i[d]=a;if(n<l)return undefined;var f=r;r=i,i=f}var _=r[t.length];return n<_?undefined:_}(s,p,a-1);if(f===undefined)continue;r=(f<3?o=!0:(_.Debug.assert(f<a),a=f),l)}}return r},_.endsWith=G,_.removeSuffix=function(e,t){return G(e,t)?e.slice(0,e.length-t.length):e},_.tryRemoveSuffix=function(e,t){return G(e,t)?e.slice(0,e.length-t.length):undefined},_.stringContains=function(e,t){return-1!==e.indexOf(t)},_.fileExtensionIs=Y,_.fileExtensionIsOneOf=function(e,t){for(var n=0,r=t;n<r.length;n++){if(Y(e,r[n]))return!0}return!1},_.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},_.orderedRemoveItem=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return J(e,n),!0;return!1},_.orderedRemoveItemAt=J,_.unorderedRemoveItemAt=z,_.unorderedRemoveItem=U,_.createGetCanonicalFileName=function(e){return e?x:S},_.patternText=function(e){return e.prefix+"*"+e.suffix},_.matchedText=function(e,t){return _.Debug.assert(Z(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},_.findBestPatternMatch=function(e,t,n){for(var r,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);Z(c,n)&&c.prefix.length>i&&(i=c.prefix.length,r=s)}return r},_.startsWith=K,_.removePrefix=function(e,t){return K(e,t)?e.substr(t.length):e},_.tryRemovePrefix=function(e,t,n){return void 0===n&&(n=x),K(n(e),n(t))?e.substring(t.length):undefined},_.and=function(t,n){return function(e){return t(e)&&n(e)}},_.or=function(t,n){return function(e){return t(e)||n(e)}},_.assertType=function(e){},_.singleElementArray=function(e){return e===undefined?undefined:[e]},_.enumerateInsertsAndDeletes=function(e,t,n,r,i,a){a=a||B;for(var o=0,s=0,c=e.length,u=t.length;o<c&&s<u;){var l=e[o],d=t[s],p=n(l,d);-1===p?(r(l),o++):(1===p?i(d):(a(d,l),o++),s++)}for(;o<c;)r(e[o++]);for(;s<u;)i(t[s++])},_.fill=function(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=t(r);return n},_.cartesianProduct=function(e){var t=[];return function c(e,t,n,r){for(var i=0,a=e[r];i<a.length;i++){var o=a[i],s=void 0;n?(s=n.slice()).push(o):s=[o],r===e.length-1?t.push(s):c(e,t,s,r+1)}}(e,t,undefined,0),t}}(rg=rg||{}),function(r){function e(e){return r.currentAssertionLevel>=e}function i(e,t,n,r){e||(n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),a(t?"False expression: "+t:"False expression.",r||i))}function a(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||a),n}function o(e,t){return e===undefined||null===e?a(t):e}function s(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""}function t(e,t,n){void 0===e&&(e=0);var r=function(e){var t=[];for(var n in e){var r=e[n];"number"==typeof r&&t.push([r,n])}return y.stableSort(t,function(e,t){return y.compareValues(e[0],t[0])})}(t);if(0===e)return 0<r.length&&0===r[0][0]?r[0][1]:"0";if(n){for(var i="",a=e,o=r.length-1;0<=o&&0!==a;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(a&c)===c&&(a&=~c,i=u+(i?"|":"")+i)}if(0===a)return i}else for(var l=0,d=r;l<d.length;l++){var p=d[l],c=p[0],u=p[1];if(c===e)return u}return e.toString()}function c(e){return t(e,y.SyntaxKind,!1)}function u(e){return t(e,y.NodeFlags,!0)}function l(e){return t(e,y.ModifierFlags,!0)}function d(e){return t(e,y.TransformFlags,!0)}function p(e){return t(e,y.EmitFlags,!0)}function f(e){return t(e,y.SymbolFlags,!0)}function _(e){return t(e,y.TypeFlags,!0)}function h(e){return t(e,y.ObjectFlags,!0)}r.currentAssertionLevel=0,r.isDebugging=!1,r.shouldAssert=e,r.assert=i,r.assertEqual=function(e,t,n,r){e!==t&&a("Expected "+e+" === "+t+". "+(n?r?n+" "+r:n:""))},r.assertLessThan=function(e,t,n){t<=e&&a("Expected "+e+" < "+t+". "+(n||""))},r.assertLessThanOrEqual=function(e,t){t<e&&a("Expected "+e+" <= "+t)},r.assertGreaterThanOrEqual=function(e,t){e<t&&a("Expected "+e+" >= "+t)},r.fail=a,r.assertDefined=o,r.assertEachDefined=function(e,t){for(var n=0,r=e;n<r.length;n++){o(r[n],t)}return e},r.assertNever=function m(e,t,n){return void 0===t&&(t="Illegal value:"),a(t+" "+("object"===zb(e)&&"kind"in e&&"pos"in e&&c?"SyntaxKind: "+c(e.kind):JSON.stringify(e)),n||m)},r.getFunctionName=s,r.formatSymbol=function(e){return"{ name: "+y.unescapeLeadingUnderscores(e.escapedName)+"; flags: "+f(e.flags)+"; declarations: "+y.map(e.declarations,function(e){return c(e.kind)})+" }"},r.formatEnum=t,r.formatSyntaxKind=c,r.formatNodeFlags=u,r.formatModifierFlags=l,r.formatTransformFlags=d,r.formatEmitFlags=p,r.formatSymbolFlags=f,r.formatTypeFlags=_,r.formatObjectFlags=h,r.failBadSyntaxKind=function n(e,t){return a((t||"Unexpected node.")+"\r\nNode "+c(e.kind)+" was unexpected.",n)},r.assertEachNode=e(1)?function(e,t,n){return i(t===undefined||y.every(e,t),n||"Unexpected node.",function(){return"Node array did not pass test '"+s(t)+"'."},r.assertEachNode)}:y.noop,r.assertNode=e(1)?function(e,t,n){return i(t===undefined||t(e),n||"Unexpected node.",function(){return"Node "+c(e.kind)+" did not pass test '"+s(t)+"'."},r.assertNode)}:y.noop,r.assertOptionalNode=e(1)?function(e,t,n){return i(t===undefined||e===undefined||t(e),n||"Unexpected node.",function(){return"Node "+c(e.kind)+" did not pass test '"+s(t)+"'."},r.assertOptionalNode)}:y.noop,r.assertOptionalToken=e(1)?function(e,t,n){return i(t===undefined||e===undefined||e.kind===t,n||"Unexpected node.",function(){return"Node "+c(e.kind)+" was not a '"+c(t)+"' token."},r.assertOptionalToken)}:y.noop,r.assertMissingNode=e(1)?function(e,t){return i(e===undefined,t||"Unexpected node.",function(){return"Node "+c(e.kind)+" was unexpected'."},r.assertMissingNode)}:y.noop;var g=!1;r.enableDebugInfo=function(){if(!g){Object.defineProperties(y.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return f(this.flags)}}}),Object.defineProperties(y.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return _(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?h(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var e=0,t=[y.objectAllocator.getNodeConstructor(),y.objectAllocator.getIdentifierConstructor(),y.objectAllocator.getTokenConstructor(),y.objectAllocator.getSourceFileConstructor()];e<t.length;e++){var n=t[e];n.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(n.prototype,{__debugKind:{get:function(){return c(this.kind)}},__debugNodeFlags:{get:function(){return u(this.flags)}},__debugModifierFlags:{get:function(){return l(y.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return d(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return y.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return p(y.getEmitFlags(this))}},__debugGetText:{value:function(e){if(y.nodeIsSynthesized(this))return"";var t=y.getParseTreeNode(this),n=t&&y.getSourceFileOfNode(t);return n?y.getSourceTextOfNodeFromSourceFile(n,t,e):""}}})}g=!0}}}((y=rg=rg||{}).Debug||(y.Debug={})),(rg||(rg={})).timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date},a=rg=rg||{},o=a.performance||(a.performance={}),l="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},d=!1,p=0,o.createTimerIf=function(e,t,n,r){return e?co(t,n,r):o.nullTimer},o.createTimer=co,o.nullTimer={enter:a.noop,exit:a.noop},o.mark=uo,o.measure=lo,o.getCount=function(e){return s&&s.get(e)||0},o.getDuration=function(e){return u&&u.get(e)||0},o.forEachMeasure=function(n){u.forEach(function(e,t){n(t,e)})},o.enable=function(){s=a.createMap(),c=a.createMap(),u=a.createMap(),d=!0,p=a.timestamp()},o.disable=function(){d=!1},function(u){var d=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,p=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,f=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,l=/^(0|[1-9]\d*)$/,_=(n.tryParse=function(e){var t=o(e);return t?new n(t.major,t.minor,t.patch,t.prerelease,t.build):undefined},n.prototype.compareTo=function(e){return this===e?0:e===undefined?1:u.compareValues(this.major,e.major)||u.compareValues(this.minor,e.minor)||u.compareValues(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e[r],a=t[r];if(i!==a){var o,s=l.test(i),c=l.test(a);if(s||c){if(s!==c)return s?-1:1;if(o=u.compareValues(+i,+a))return o}else if(o=u.compareStringsCaseSensitive(i,a))return o}}return u.compareValues(e.length,t.length)}(this.prerelease,e.prerelease)},n.prototype.increment=function(e){switch(e){case"major":return new n(this.major+1,0,0);case"minor":return new n(this.major,this.minor+1,0);case"patch":return new n(this.major,this.minor,this.patch+1);default:return u.Debug.assertNever(e)}},n.prototype.toString=function(){var e=this.major+"."+this.minor+"."+this.patch;return u.some(this.prerelease)&&(e+="-"+this.prerelease.join(".")),u.some(this.build)&&(e+="+"+this.build.join(".")),e},n.zero=new n(0,0,0),n);function n(e,t,n,r,i){var a;void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=""),void 0===i&&(i=""),"string"==typeof e&&(e=(a=u.Debug.assertDefined(o(e),"Invalid version")).major,t=a.minor,n=a.patch,r=a.prerelease,i=a.build),u.Debug.assert(0<=e,"Invalid argument: major"),u.Debug.assert(0<=t,"Invalid argument: minor"),u.Debug.assert(0<=n,"Invalid argument: patch"),u.Debug.assert(!r||p.test(r),"Invalid argument: prerelease"),u.Debug.assert(!i||f.test(i),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=r?r.split("."):u.emptyArray,this.build=i?i.split("."):u.emptyArray}function o(e){var t=d.exec(e);if(!t)return undefined;var n=t[1],r=t[2],i=void 0===r?"0":r,a=t[3],o=void 0===a?"0":a,s=t[4],c=void 0===s?"":s,u=t[5],l=void 0===u?"":u;return c&&!p.test(c)||l&&!f.test(l)?undefined:{major:parseInt(n,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:c,build:l}}u.Version=_;var e=(r.tryParse=function(e){var t=i(e);if(t){var n=new r("");return n._alternatives=t,n}return undefined},r.prototype.test=function(e){return"string"==typeof e&&(e=new _(e)),function(e,t){if(0===t.length)return!0;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];if(!function(e,t,n){var r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return 0<r;case">=":return 0<=r;case"=":return 0===r;default:return u.Debug.assertNever(t)}}(e,i.operator,i.operand))return}return 1}(e,i))return!0}return!1}(e,this._alternatives)},r.prototype.toString=function(){return e=this._alternatives,u.map(e,t).join(" || ")||"*";var e},r);function r(e){this._alternatives=e?u.Debug.assertDefined(i(e),"Invalid range spec."):u.emptyArray}u.VersionRange=e;var h=/\s*\|\|\s*/g,g=/\s+/g,m=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,y=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,b=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function i(e){for(var t=[],n=0,r=e.trim().split(h);n<r.length;n++){var i=r[n];if(i){var a=[],o=y.exec(i);if(o){if(!function(e,t,n){var r=v(e);if(!r)return!1;var i=v(t);if(!i)return!1;E(r.major)||n.push(I(">=",r.version));E(i.major)||n.push(E(i.minor)?I("<",i.version.increment("major")):E(i.patch)?I("<",i.version.increment("minor")):I("<=",i.version));return!0}(o[1],o[2],a))return undefined}else for(var s=0,c=i.split(g);s<c.length;s++){var u=c[s],l=b.exec(u);if(!l||!function(e,t,n){var r=v(t);if(!r)return!1;var i=r.version,a=r.major,o=r.minor,s=r.patch;if(E(a))"<"!==e&&">"!==e||n.push(I("<",_.zero));else switch(e){case"~":n.push(I(">=",i)),n.push(I("<",i.increment(E(o)?"major":"minor")));break;case"^":n.push(I(">=",i)),n.push(I("<",i.increment(0<i.major||E(o)?"major":0<i.minor||E(s)?"minor":"patch")));break;case"<":case">=":n.push(I(e,i));break;case"<=":case">":n.push(E(o)?I("<="===e?"<":">=",i.increment("major")):E(s)?I("<="===e?"<":">=",i.increment("minor")):I(e,i));break;case"=":case undefined:E(o)||E(s)?(n.push(I(">=",i)),n.push(I("<",i.increment(E(o)?"major":"minor")))):n.push(I("=",i));break;default:return!1}return!0}(l[1],l[2],a))return undefined}t.push(a)}}return t}function v(e){var t=m.exec(e);if(!t)return undefined;var n=t[1],r=t[2],i=void 0===r?"*":r,a=t[3],o=void 0===a?"*":a,s=t[4],c=t[5];return{version:new _(E(n)?0:parseInt(n,10),E(n)||E(i)?0:parseInt(i,10),E(n)||E(i)||E(o)?0:parseInt(o,10),s,c),major:n,minor:i,patch:o}}function E(e){return"*"===e||"x"===e||"X"===e}function I(e,t){return{operator:e,operand:t}}function t(e){return u.map(e,a).join(" ")}function a(e){return""+e.operator+e.operand}}(rg=rg||{}),function(e){var t,n,r,i,a,o,s,c;(t=e.SyntaxKind||(e.SyntaxKind={}))[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NumericLiteral=8]="NumericLiteral",t[t.BigIntLiteral=9]="BigIntLiteral",t[t.StringLiteral=10]="StringLiteral",t[t.JsxText=11]="JsxText",t[t.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=13]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=15]="TemplateHead",t[t.TemplateMiddle=16]="TemplateMiddle",t[t.TemplateTail=17]="TemplateTail",t[t.OpenBraceToken=18]="OpenBraceToken",t[t.CloseBraceToken=19]="CloseBraceToken",t[t.OpenParenToken=20]="OpenParenToken",t[t.CloseParenToken=21]="CloseParenToken",t[t.OpenBracketToken=22]="OpenBracketToken",t[t.CloseBracketToken=23]="CloseBracketToken",t[t.DotToken=24]="DotToken",t[t.DotDotDotToken=25]="DotDotDotToken",t[t.SemicolonToken=26]="SemicolonToken",t[t.CommaToken=27]="CommaToken",t[t.LessThanToken=28]="LessThanToken",t[t.LessThanSlashToken=29]="LessThanSlashToken",t[t.GreaterThanToken=30]="GreaterThanToken",t[t.LessThanEqualsToken=31]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=32]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=33]="EqualsEqualsToken",t[t.ExclamationEqualsToken=34]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=35]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=36]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=37]="EqualsGreaterThanToken",t[t.PlusToken=38]="PlusToken",t[t.MinusToken=39]="MinusToken",t[t.AsteriskToken=40]="AsteriskToken",t[t.AsteriskAsteriskToken=41]="AsteriskAsteriskToken",t[t.SlashToken=42]="SlashToken",t[t.PercentToken=43]="PercentToken",t[t.PlusPlusToken=44]="PlusPlusToken",t[t.MinusMinusToken=45]="MinusMinusToken",t[t.LessThanLessThanToken=46]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=47]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=48]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=49]="AmpersandToken",t[t.BarToken=50]="BarToken",t[t.CaretToken=51]="CaretToken",t[t.ExclamationToken=52]="ExclamationToken",t[t.TildeToken=53]="TildeToken",t[t.AmpersandAmpersandToken=54]="AmpersandAmpersandToken",t[t.BarBarToken=55]="BarBarToken",t[t.QuestionToken=56]="QuestionToken",t[t.ColonToken=57]="ColonToken",t[t.AtToken=58]="AtToken",t[t.BacktickToken=59]="BacktickToken",t[t.EqualsToken=60]="EqualsToken",t[t.PlusEqualsToken=61]="PlusEqualsToken",t[t.MinusEqualsToken=62]="MinusEqualsToken",t[t.AsteriskEqualsToken=63]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=64]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=65]="SlashEqualsToken",t[t.PercentEqualsToken=66]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=67]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=68]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=69]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=70]="AmpersandEqualsToken",t[t.BarEqualsToken=71]="BarEqualsToken",t[t.CaretEqualsToken=72]="CaretEqualsToken",t[t.Identifier=73]="Identifier",t[t.BreakKeyword=74]="BreakKeyword",t[t.CaseKeyword=75]="CaseKeyword",t[t.CatchKeyword=76]="CatchKeyword",t[t.ClassKeyword=77]="ClassKeyword",t[t.ConstKeyword=78]="ConstKeyword",t[t.ContinueKeyword=79]="ContinueKeyword",t[t.DebuggerKeyword=80]="DebuggerKeyword",t[t.DefaultKeyword=81]="DefaultKeyword",t[t.DeleteKeyword=82]="DeleteKeyword",t[t.DoKeyword=83]="DoKeyword",t[t.ElseKeyword=84]="ElseKeyword",t[t.EnumKeyword=85]="EnumKeyword",t[t.ExportKeyword=86]="ExportKeyword",t[t.ExtendsKeyword=87]="ExtendsKeyword",t[t.FalseKeyword=88]="FalseKeyword",t[t.FinallyKeyword=89]="FinallyKeyword",t[t.ForKeyword=90]="ForKeyword",t[t.FunctionKeyword=91]="FunctionKeyword",t[t.IfKeyword=92]="IfKeyword",t[t.ImportKeyword=93]="ImportKeyword",t[t.InKeyword=94]="InKeyword",t[t.InstanceOfKeyword=95]="InstanceOfKeyword",t[t.NewKeyword=96]="NewKeyword",t[t.NullKeyword=97]="NullKeyword",t[t.ReturnKeyword=98]="ReturnKeyword",t[t.SuperKeyword=99]="SuperKeyword",t[t.SwitchKeyword=100]="SwitchKeyword",t[t.ThisKeyword=101]="ThisKeyword",t[t.ThrowKeyword=102]="ThrowKeyword",t[t.TrueKeyword=103]="TrueKeyword",t[t.TryKeyword=104]="TryKeyword",t[t.TypeOfKeyword=105]="TypeOfKeyword",t[t.VarKeyword=106]="VarKeyword",t[t.VoidKeyword=107]="VoidKeyword",t[t.WhileKeyword=108]="WhileKeyword",t[t.WithKeyword=109]="WithKeyword",t[t.ImplementsKeyword=110]="ImplementsKeyword",t[t.InterfaceKeyword=111]="InterfaceKeyword",t[t.LetKeyword=112]="LetKeyword",t[t.PackageKeyword=113]="PackageKeyword",t[t.PrivateKeyword=114]="PrivateKeyword",t[t.ProtectedKeyword=115]="ProtectedKeyword",t[t.PublicKeyword=116]="PublicKeyword",t[t.StaticKeyword=117]="StaticKeyword",t[t.YieldKeyword=118]="YieldKeyword",t[t.AbstractKeyword=119]="AbstractKeyword",t[t.AsKeyword=120]="AsKeyword",t[t.AnyKeyword=121]="AnyKeyword",t[t.AsyncKeyword=122]="AsyncKeyword",t[t.AwaitKeyword=123]="AwaitKeyword",t[t.BooleanKeyword=124]="BooleanKeyword",t[t.ConstructorKeyword=125]="ConstructorKeyword",t[t.DeclareKeyword=126]="DeclareKeyword",t[t.GetKeyword=127]="GetKeyword",t[t.InferKeyword=128]="InferKeyword",t[t.IsKeyword=129]="IsKeyword",t[t.KeyOfKeyword=130]="KeyOfKeyword",t[t.ModuleKeyword=131]="ModuleKeyword",t[t.NamespaceKeyword=132]="NamespaceKeyword",t[t.NeverKeyword=133]="NeverKeyword",t[t.ReadonlyKeyword=134]="ReadonlyKeyword",t[t.RequireKeyword=135]="RequireKeyword",t[t.NumberKeyword=136]="NumberKeyword",t[t.ObjectKeyword=137]="ObjectKeyword",t[t.SetKeyword=138]="SetKeyword",t[t.StringKeyword=139]="StringKeyword",t[t.SymbolKeyword=140]="SymbolKeyword",t[t.TypeKeyword=141]="TypeKeyword",t[t.UndefinedKeyword=142]="UndefinedKeyword",t[t.UniqueKeyword=143]="UniqueKeyword",t[t.UnknownKeyword=144]="UnknownKeyword",t[t.FromKeyword=145]="FromKeyword",t[t.GlobalKeyword=146]="GlobalKeyword",t[t.BigIntKeyword=147]="BigIntKeyword",t[t.OfKeyword=148]="OfKeyword",t[t.QualifiedName=149]="QualifiedName",t[t.ComputedPropertyName=150]="ComputedPropertyName",t[t.TypeParameter=151]="TypeParameter",t[t.Parameter=152]="Parameter",t[t.Decorator=153]="Decorator",t[t.PropertySignature=154]="PropertySignature",t[t.PropertyDeclaration=155]="PropertyDeclaration",t[t.MethodSignature=156]="MethodSignature",t[t.MethodDeclaration=157]="MethodDeclaration",t[t.Constructor=158]="Constructor",t[t.GetAccessor=159]="GetAccessor",t[t.SetAccessor=160]="SetAccessor",t[t.CallSignature=161]="CallSignature",t[t.ConstructSignature=162]="ConstructSignature",t[t.IndexSignature=163]="IndexSignature",t[t.TypePredicate=164]="TypePredicate",t[t.TypeReference=165]="TypeReference",t[t.FunctionType=166]="FunctionType",t[t.ConstructorType=167]="ConstructorType",t[t.TypeQuery=168]="TypeQuery",t[t.TypeLiteral=169]="TypeLiteral",t[t.ArrayType=170]="ArrayType",t[t.TupleType=171]="TupleType",t[t.OptionalType=172]="OptionalType",t[t.RestType=173]="RestType",t[t.UnionType=174]="UnionType",t[t.IntersectionType=175]="IntersectionType",t[t.ConditionalType=176]="ConditionalType",t[t.InferType=177]="InferType",t[t.ParenthesizedType=178]="ParenthesizedType",t[t.ThisType=179]="ThisType",t[t.TypeOperator=180]="TypeOperator",t[t.IndexedAccessType=181]="IndexedAccessType",t[t.MappedType=182]="MappedType",t[t.LiteralType=183]="LiteralType",t[t.ImportType=184]="ImportType",t[t.ObjectBindingPattern=185]="ObjectBindingPattern",t[t.ArrayBindingPattern=186]="ArrayBindingPattern",t[t.BindingElement=187]="BindingElement",t[t.ArrayLiteralExpression=188]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=189]="ObjectLiteralExpression",t[t.PropertyAccessExpression=190]="PropertyAccessExpression",t[t.ElementAccessExpression=191]="ElementAccessExpression",t[t.CallExpression=192]="CallExpression",t[t.NewExpression=193]="NewExpression",t[t.TaggedTemplateExpression=194]="TaggedTemplateExpression",t[t.TypeAssertionExpression=195]="TypeAssertionExpression",t[t.ParenthesizedExpression=196]="ParenthesizedExpression",t[t.FunctionExpression=197]="FunctionExpression",t[t.ArrowFunction=198]="ArrowFunction",t[t.DeleteExpression=199]="DeleteExpression",t[t.TypeOfExpression=200]="TypeOfExpression",t[t.VoidExpression=201]="VoidExpression",t[t.AwaitExpression=202]="AwaitExpression",t[t.PrefixUnaryExpression=203]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=204]="PostfixUnaryExpression",t[t.BinaryExpression=205]="BinaryExpression",t[t.ConditionalExpression=206]="ConditionalExpression",t[t.TemplateExpression=207]="TemplateExpression",t[t.YieldExpression=208]="YieldExpression",t[t.SpreadElement=209]="SpreadElement",t[t.ClassExpression=210]="ClassExpression",t[t.OmittedExpression=211]="OmittedExpression",t[t.ExpressionWithTypeArguments=212]="ExpressionWithTypeArguments",t[t.AsExpression=213]="AsExpression",t[t.NonNullExpression=214]="NonNullExpression",t[t.MetaProperty=215]="MetaProperty",t[t.SyntheticExpression=216]="SyntheticExpression",t[t.TemplateSpan=217]="TemplateSpan",t[t.SemicolonClassElement=218]="SemicolonClassElement",t[t.Block=219]="Block",t[t.VariableStatement=220]="VariableStatement",t[t.EmptyStatement=221]="EmptyStatement",t[t.ExpressionStatement=222]="ExpressionStatement",t[t.IfStatement=223]="IfStatement",t[t.DoStatement=224]="DoStatement",t[t.WhileStatement=225]="WhileStatement",t[t.ForStatement=226]="ForStatement",t[t.ForInStatement=227]="ForInStatement",t[t.ForOfStatement=228]="ForOfStatement",t[t.ContinueStatement=229]="ContinueStatement",t[t.BreakStatement=230]="BreakStatement",t[t.ReturnStatement=231]="ReturnStatement",t[t.WithStatement=232]="WithStatement",t[t.SwitchStatement=233]="SwitchStatement",t[t.LabeledStatement=234]="LabeledStatement",t[t.ThrowStatement=235]="ThrowStatement",t[t.TryStatement=236]="TryStatement",t[t.DebuggerStatement=237]="DebuggerStatement",t[t.VariableDeclaration=238]="VariableDeclaration",t[t.VariableDeclarationList=239]="VariableDeclarationList",t[t.FunctionDeclaration=240]="FunctionDeclaration",t[t.ClassDeclaration=241]="ClassDeclaration",t[t.InterfaceDeclaration=242]="InterfaceDeclaration",t[t.TypeAliasDeclaration=243]="TypeAliasDeclaration",t[t.EnumDeclaration=244]="EnumDeclaration",t[t.ModuleDeclaration=245]="ModuleDeclaration",t[t.ModuleBlock=246]="ModuleBlock",t[t.CaseBlock=247]="CaseBlock",t[t.NamespaceExportDeclaration=248]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=249]="ImportEqualsDeclaration",t[t.ImportDeclaration=250]="ImportDeclaration",t[t.ImportClause=251]="ImportClause",t[t.NamespaceImport=252]="NamespaceImport",t[t.NamedImports=253]="NamedImports",t[t.ImportSpecifier=254]="ImportSpecifier",t[t.ExportAssignment=255]="ExportAssignment",t[t.ExportDeclaration=256]="ExportDeclaration",t[t.NamedExports=257]="NamedExports",t[t.ExportSpecifier=258]="ExportSpecifier",t[t.MissingDeclaration=259]="MissingDeclaration",t[t.ExternalModuleReference=260]="ExternalModuleReference",t[t.JsxElement=261]="JsxElement",t[t.JsxSelfClosingElement=262]="JsxSelfClosingElement",t[t.JsxOpeningElement=263]="JsxOpeningElement",t[t.JsxClosingElement=264]="JsxClosingElement",t[t.JsxFragment=265]="JsxFragment",t[t.JsxOpeningFragment=266]="JsxOpeningFragment",t[t.JsxClosingFragment=267]="JsxClosingFragment",t[t.JsxAttribute=268]="JsxAttribute",t[t.JsxAttributes=269]="JsxAttributes",t[t.JsxSpreadAttribute=270]="JsxSpreadAttribute",t[t.JsxExpression=271]="JsxExpression",t[t.CaseClause=272]="CaseClause",t[t.DefaultClause=273]="DefaultClause",t[t.HeritageClause=274]="HeritageClause",t[t.CatchClause=275]="CatchClause",t[t.PropertyAssignment=276]="PropertyAssignment",t[t.ShorthandPropertyAssignment=277]="ShorthandPropertyAssignment",t[t.SpreadAssignment=278]="SpreadAssignment",t[t.EnumMember=279]="EnumMember",t[t.UnparsedPrologue=280]="UnparsedPrologue",t[t.UnparsedPrepend=281]="UnparsedPrepend",t[t.UnparsedText=282]="UnparsedText",t[t.UnparsedInternalText=283]="UnparsedInternalText",t[t.UnparsedSyntheticReference=284]="UnparsedSyntheticReference",t[t.SourceFile=285]="SourceFile",t[t.Bundle=286]="Bundle",t[t.UnparsedSource=287]="UnparsedSource",t[t.InputFiles=288]="InputFiles",t[t.JSDocTypeExpression=289]="JSDocTypeExpression",t[t.JSDocAllType=290]="JSDocAllType",t[t.JSDocUnknownType=291]="JSDocUnknownType",t[t.JSDocNullableType=292]="JSDocNullableType",t[t.JSDocNonNullableType=293]="JSDocNonNullableType",t[t.JSDocOptionalType=294]="JSDocOptionalType",t[t.JSDocFunctionType=295]="JSDocFunctionType",t[t.JSDocVariadicType=296]="JSDocVariadicType",t[t.JSDocComment=297]="JSDocComment",t[t.JSDocTypeLiteral=298]="JSDocTypeLiteral",t[t.JSDocSignature=299]="JSDocSignature",t[t.JSDocTag=300]="JSDocTag",t[t.JSDocAugmentsTag=301]="JSDocAugmentsTag",t[t.JSDocClassTag=302]="JSDocClassTag",t[t.JSDocCallbackTag=303]="JSDocCallbackTag",t[t.JSDocEnumTag=304]="JSDocEnumTag",t[t.JSDocParameterTag=305]="JSDocParameterTag",t[t.JSDocReturnTag=306]="JSDocReturnTag",t[t.JSDocThisTag=307]="JSDocThisTag",t[t.JSDocTypeTag=308]="JSDocTypeTag",t[t.JSDocTemplateTag=309]="JSDocTemplateTag",t[t.JSDocTypedefTag=310]="JSDocTypedefTag",t[t.JSDocPropertyTag=311]="JSDocPropertyTag",t[t.SyntaxList=312]="SyntaxList",t[t.NotEmittedStatement=313]="NotEmittedStatement",t[t.PartiallyEmittedExpression=314]="PartiallyEmittedExpression",t[t.CommaListExpression=315]="CommaListExpression",t[t.MergeDeclarationMarker=316]="MergeDeclarationMarker",t[t.EndOfDeclarationMarker=317]="EndOfDeclarationMarker",t[t.Count=318]="Count",t[t.FirstAssignment=60]="FirstAssignment",t[t.LastAssignment=72]="LastAssignment",t[t.FirstCompoundAssignment=61]="FirstCompoundAssignment",t[t.LastCompoundAssignment=72]="LastCompoundAssignment",t[t.FirstReservedWord=74]="FirstReservedWord",t[t.LastReservedWord=109]="LastReservedWord",t[t.FirstKeyword=74]="FirstKeyword",t[t.LastKeyword=148]="LastKeyword",t[t.FirstFutureReservedWord=110]="FirstFutureReservedWord",t[t.LastFutureReservedWord=118]="LastFutureReservedWord",t[t.FirstTypeNode=164]="FirstTypeNode",t[t.LastTypeNode=184]="LastTypeNode",t[t.FirstPunctuation=18]="FirstPunctuation",t[t.LastPunctuation=72]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=148]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=8]="FirstLiteralToken",t[t.LastLiteralToken=14]="LastLiteralToken",t[t.FirstTemplateToken=14]="FirstTemplateToken",t[t.LastTemplateToken=17]="LastTemplateToken",t[t.FirstBinaryOperator=28]="FirstBinaryOperator",t[t.LastBinaryOperator=72]="LastBinaryOperator",t[t.FirstNode=149]="FirstNode",t[t.FirstJSDocNode=289]="FirstJSDocNode",t[t.LastJSDocNode=311]="LastJSDocNode",t[t.FirstJSDocTagNode=300]="FirstJSDocTagNode",t[t.LastJSDocTagNode=311]="LastJSDocTagNode",t[t.FirstContextualKeyword=119]="FirstContextualKeyword",t[t.LastContextualKeyword=148]="LastContextualKeyword",(n=e.NodeFlags||(e.NodeFlags={}))[n.None=0]="None",n[n.Let=1]="Let",n[n.Const=2]="Const",n[n.NestedNamespace=4]="NestedNamespace",n[n.Synthesized=8]="Synthesized",n[n.Namespace=16]="Namespace",n[n.ExportContext=32]="ExportContext",n[n.ContainsThis=64]="ContainsThis",n[n.HasImplicitReturn=128]="HasImplicitReturn",n[n.HasExplicitReturn=256]="HasExplicitReturn",n[n.GlobalAugmentation=512]="GlobalAugmentation",n[n.HasAsyncFunctions=1024]="HasAsyncFunctions",n[n.DisallowInContext=2048]="DisallowInContext",n[n.YieldContext=4096]="YieldContext",n[n.DecoratorContext=8192]="DecoratorContext",n[n.AwaitContext=16384]="AwaitContext",n[n.ThisNodeHasError=32768]="ThisNodeHasError",n[n.JavaScriptFile=65536]="JavaScriptFile",n[n.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",n[n.HasAggregatedChildData=262144]="HasAggregatedChildData",n[n.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",n[n.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",n[n.JSDoc=2097152]="JSDoc",n[n.Ambient=4194304]="Ambient",n[n.InWithStatement=8388608]="InWithStatement",n[n.JsonFile=16777216]="JsonFile",n[n.BlockScoped=3]="BlockScoped",n[n.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",n[n.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",n[n.ContextFlags=12679168]="ContextFlags",n[n.TypeExcludesFlags=20480]="TypeExcludesFlags",n[n.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags",(r=e.ModifierFlags||(e.ModifierFlags={}))[r.None=0]="None",r[r.Export=1]="Export",r[r.Ambient=2]="Ambient",r[r.Public=4]="Public",r[r.Private=8]="Private",r[r.Protected=16]="Protected",r[r.Static=32]="Static",r[r.Readonly=64]="Readonly",r[r.Abstract=128]="Abstract",r[r.Async=256]="Async",r[r.Default=512]="Default",r[r.Const=2048]="Const",r[r.HasComputedFlags=536870912]="HasComputedFlags",r[r.AccessibilityModifier=28]="AccessibilityModifier",r[r.ParameterPropertyModifier=92]="ParameterPropertyModifier",r[r.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",r[r.TypeScriptModifier=2270]="TypeScriptModifier",r[r.ExportDefault=513]="ExportDefault",r[r.All=3071]="All",(i=e.JsxFlags||(e.JsxFlags={}))[i.None=0]="None",i[i.IntrinsicNamedElement=1]="IntrinsicNamedElement",i[i.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",i[i.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.FailedAndReported=3]="FailedAndReported",(o=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[o.None=0]="None",o[o.Auto=1]="Auto",o[o.Loop=2]="Loop",o[o.Unique=3]="Unique",o[o.Node=4]="Node",o[o.KindMask=7]="KindMask",o[o.ReservedInNestedScopes=8]="ReservedInNestedScopes",o[o.Optimistic=16]="Optimistic",o[o.FileLevel=32]="FileLevel",(s=e.TokenFlags||(e.TokenFlags={}))[s.None=0]="None",s[s.PrecedingLineBreak=1]="PrecedingLineBreak",s[s.PrecedingJSDocComment=2]="PrecedingJSDocComment",s[s.Unterminated=4]="Unterminated",s[s.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",s[s.Scientific=16]="Scientific",s[s.Octal=32]="Octal",s[s.HexSpecifier=64]="HexSpecifier",s[s.BinarySpecifier=128]="BinarySpecifier",s[s.OctalSpecifier=256]="OctalSpecifier",s[s.ContainsSeparator=512]="ContainsSeparator",s[s.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",s[s.NumericLiteralFlags=1008]="NumericLiteralFlags",(c=e.FlowFlags||(e.FlowFlags={}))[c.Unreachable=1]="Unreachable",c[c.Start=2]="Start",c[c.BranchLabel=4]="BranchLabel",c[c.LoopLabel=8]="LoopLabel",c[c.Assignment=16]="Assignment",c[c.TrueCondition=32]="TrueCondition",c[c.FalseCondition=64]="FalseCondition",c[c.SwitchClause=128]="SwitchClause",c[c.ArrayMutation=256]="ArrayMutation",c[c.Referenced=512]="Referenced",c[c.Shared=1024]="Shared",c[c.PreFinally=2048]="PreFinally",c[c.AfterFinally=4096]="AfterFinally",c[c.Cached=8192]="Cached",c[c.Label=12]="Label",c[c.Condition=96]="Condition";var u,l,d,p,f,_,h,g,m,y,b,v,E,I,T,C,B,x,S,N,D,k,A,w,V,P,L,M,F,O,R,H,j,W,G,Y,J,z,U,K,Z,X,q,Q,$=function(){};e.OperationCanceledException=$,(u=e.StructureIsReused||(e.StructureIsReused={}))[u.Not=0]="Not",u[u.SafeModules=1]="SafeModules",u[u.Completely=2]="Completely",(l=e.ExitStatus||(e.ExitStatus={}))[l.Success=0]="Success",l[l.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",l[l.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",(d=e.UnionReduction||(e.UnionReduction={}))[d.None=0]="None",d[d.Literal=1]="Literal",d[d.Subtype=2]="Subtype",(p=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[p.None=0]="None",p[p.NoTruncation=1]="NoTruncation",p[p.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",p[p.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",p[p.UseStructuralFallback=8]="UseStructuralFallback",p[p.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",p[p.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",p[p.UseFullyQualifiedType=64]="UseFullyQualifiedType",p[p.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",p[p.SuppressAnyReturnType=256]="SuppressAnyReturnType",p[p.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",p[p.MultilineObjectLiterals=1024]="MultilineObjectLiterals",p[p.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",p[p.UseTypeOfFunction=4096]="UseTypeOfFunction",p[p.OmitParameterModifiers=8192]="OmitParameterModifiers",p[p.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",p[p.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",p[p.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",p[p.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",p[p.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",p[p.AllowEmptyTuple=524288]="AllowEmptyTuple",p[p.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",p[p.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",p[p.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",p[p.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",p[p.IgnoreErrors=70221824]="IgnoreErrors",p[p.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",p[p.InTypeAlias=8388608]="InTypeAlias",p[p.InInitialEntityName=16777216]="InInitialEntityName",p[p.InReverseMappedType=33554432]="InReverseMappedType",(f=e.TypeFormatFlags||(e.TypeFormatFlags={}))[f.None=0]="None",f[f.NoTruncation=1]="NoTruncation",f[f.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",f[f.UseStructuralFallback=8]="UseStructuralFallback",f[f.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",f[f.UseFullyQualifiedType=64]="UseFullyQualifiedType",f[f.SuppressAnyReturnType=256]="SuppressAnyReturnType",f[f.MultilineObjectLiterals=1024]="MultilineObjectLiterals",f[f.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",f[f.UseTypeOfFunction=4096]="UseTypeOfFunction",f[f.OmitParameterModifiers=8192]="OmitParameterModifiers",f[f.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",f[f.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",f[f.AddUndefined=131072]="AddUndefined",f[f.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",f[f.InArrayType=524288]="InArrayType",f[f.InElementType=2097152]="InElementType",f[f.InFirstTypeArgument=4194304]="InFirstTypeArgument",f[f.InTypeAlias=8388608]="InTypeAlias",f[f.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",f[f.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask",(_=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[_.None=0]="None",_[_.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",_[_.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",_[_.AllowAnyNodeKind=4]="AllowAnyNodeKind",_[_.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",_[_.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(h=e.SymbolAccessibility||(e.SymbolAccessibility={}))[h.Accessible=0]="Accessible",h[h.NotAccessible=1]="NotAccessible",h[h.CannotBeNamed=2]="CannotBeNamed",(g=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[g.UnionOrIntersection=0]="UnionOrIntersection",g[g.Spread=1]="Spread",(m=e.TypePredicateKind||(e.TypePredicateKind={}))[m.This=0]="This",m[m.Identifier=1]="Identifier",(y=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[y.Unknown=0]="Unknown",y[y.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",y[y.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",y[y.NumberLikeType=3]="NumberLikeType",y[y.BigIntLikeType=4]="BigIntLikeType",y[y.StringLikeType=5]="StringLikeType",y[y.BooleanType=6]="BooleanType",y[y.ArrayLikeType=7]="ArrayLikeType",y[y.ESSymbolType=8]="ESSymbolType",y[y.Promise=9]="Promise",y[y.TypeWithCallSignature=10]="TypeWithCallSignature",y[y.ObjectType=11]="ObjectType",(b=e.SymbolFlags||(e.SymbolFlags={}))[b.None=0]="None",b[b.FunctionScopedVariable=1]="FunctionScopedVariable",b[b.BlockScopedVariable=2]="BlockScopedVariable",b[b.Property=4]="Property",b[b.EnumMember=8]="EnumMember",b[b.Function=16]="Function",b[b.Class=32]="Class",b[b.Interface=64]="Interface",b[b.ConstEnum=128]="ConstEnum",b[b.RegularEnum=256]="RegularEnum",b[b.ValueModule=512]="ValueModule",b[b.NamespaceModule=1024]="NamespaceModule",b[b.TypeLiteral=2048]="TypeLiteral",b[b.ObjectLiteral=4096]="ObjectLiteral",b[b.Method=8192]="Method",b[b.Constructor=16384]="Constructor",b[b.GetAccessor=32768]="GetAccessor",b[b.SetAccessor=65536]="SetAccessor",b[b.Signature=131072]="Signature",b[b.TypeParameter=262144]="TypeParameter",b[b.TypeAlias=524288]="TypeAlias",b[b.ExportValue=1048576]="ExportValue",b[b.Alias=2097152]="Alias",b[b.Prototype=4194304]="Prototype",b[b.ExportStar=8388608]="ExportStar",b[b.Optional=16777216]="Optional",b[b.Transient=33554432]="Transient",b[b.Assignment=67108864]="Assignment",b[b.ModuleExports=134217728]="ModuleExports",b[b.All=67108863]="All",b[b.Enum=384]="Enum",b[b.Variable=3]="Variable",b[b.Value=67220415]="Value",b[b.Type=67897832]="Type",b[b.Namespace=1920]="Namespace",b[b.Module=1536]="Module",b[b.Accessor=98304]="Accessor",b[b.FunctionScopedVariableExcludes=67220414]="FunctionScopedVariableExcludes",b[b.BlockScopedVariableExcludes=67220415]="BlockScopedVariableExcludes",b[b.ParameterExcludes=67220415]="ParameterExcludes",b[b.PropertyExcludes=0]="PropertyExcludes",b[b.EnumMemberExcludes=68008959]="EnumMemberExcludes",b[b.FunctionExcludes=67219887]="FunctionExcludes",b[b.ClassExcludes=68008383]="ClassExcludes",b[b.InterfaceExcludes=67897736]="InterfaceExcludes",b[b.RegularEnumExcludes=68008191]="RegularEnumExcludes",b[b.ConstEnumExcludes=68008831]="ConstEnumExcludes",b[b.ValueModuleExcludes=110735]="ValueModuleExcludes",b[b.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",b[b.MethodExcludes=67212223]="MethodExcludes",b[b.GetAccessorExcludes=67154879]="GetAccessorExcludes",b[b.SetAccessorExcludes=67187647]="SetAccessorExcludes",b[b.TypeParameterExcludes=67635688]="TypeParameterExcludes",b[b.TypeAliasExcludes=67897832]="TypeAliasExcludes",b[b.AliasExcludes=2097152]="AliasExcludes",b[b.ModuleMember=2623475]="ModuleMember",b[b.ExportHasLocal=944]="ExportHasLocal",b[b.BlockScoped=418]="BlockScoped",b[b.PropertyOrAccessor=98308]="PropertyOrAccessor",b[b.ClassMember=106500]="ClassMember",b[b.Classifiable=2885600]="Classifiable",b[b.LateBindingContainer=6240]="LateBindingContainer",(v=e.EnumKind||(e.EnumKind={}))[v.Numeric=0]="Numeric",v[v.Literal=1]="Literal",(E=e.CheckFlags||(e.CheckFlags={}))[E.Instantiated=1]="Instantiated",E[E.SyntheticProperty=2]="SyntheticProperty",E[E.SyntheticMethod=4]="SyntheticMethod",E[E.Readonly=8]="Readonly",E[E.ReadPartial=16]="ReadPartial",E[E.WritePartial=32]="WritePartial",E[E.HasNonUniformType=64]="HasNonUniformType",E[E.HasLiteralType=128]="HasLiteralType",E[E.ContainsPublic=256]="ContainsPublic",E[E.ContainsProtected=512]="ContainsProtected",E[E.ContainsPrivate=1024]="ContainsPrivate",E[E.ContainsStatic=2048]="ContainsStatic",E[E.Late=4096]="Late",E[E.ReverseMapped=8192]="ReverseMapped",E[E.OptionalParameter=16384]="OptionalParameter",E[E.RestParameter=32768]="RestParameter",E[E.DeferredType=65536]="DeferredType",E[E.Synthetic=6]="Synthetic",E[E.Discriminant=192]="Discriminant",E[E.Partial=48]="Partial",(I=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",I.Constructor="__constructor",I.New="__new",I.Index="__index",I.ExportStar="__export",I.Global="__global",I.Missing="__missing",I.Type="__type",I.Object="__object",I.JSXAttributes="__jsxAttributes",I.Class="__class",I.Function="__function",I.Computed="__computed",I.Resolving="__resolving__",I.ExportEquals="export=",I.Default="default",I.This="this",(T=e.NodeCheckFlags||(e.NodeCheckFlags={}))[T.TypeChecked=1]="TypeChecked",T[T.LexicalThis=2]="LexicalThis",T[T.CaptureThis=4]="CaptureThis",T[T.CaptureNewTarget=8]="CaptureNewTarget",T[T.SuperInstance=256]="SuperInstance",T[T.SuperStatic=512]="SuperStatic",T[T.ContextChecked=1024]="ContextChecked",T[T.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",T[T.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",T[T.CaptureArguments=8192]="CaptureArguments",T[T.EnumValuesComputed=16384]="EnumValuesComputed",T[T.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",T[T.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",T[T.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",T[T.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",T[T.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",T[T.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",T[T.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",T[T.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",T[T.AssignmentsMarked=8388608]="AssignmentsMarked",T[T.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",T[T.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",(C=e.TypeFlags||(e.TypeFlags={}))[C.Any=1]="Any",C[C.Unknown=2]="Unknown",C[C.String=4]="String",C[C.Number=8]="Number",C[C.Boolean=16]="Boolean",C[C.Enum=32]="Enum",C[C.BigInt=64]="BigInt",C[C.StringLiteral=128]="StringLiteral",C[C.NumberLiteral=256]="NumberLiteral",C[C.BooleanLiteral=512]="BooleanLiteral",C[C.EnumLiteral=1024]="EnumLiteral",C[C.BigIntLiteral=2048]="BigIntLiteral",C[C.ESSymbol=4096]="ESSymbol",C[C.UniqueESSymbol=8192]="UniqueESSymbol",C[C.Void=16384]="Void",C[C.Undefined=32768]="Undefined",C[C.Null=65536]="Null",C[C.Never=131072]="Never",C[C.TypeParameter=262144]="TypeParameter",C[C.Object=524288]="Object",C[C.Union=1048576]="Union",C[C.Intersection=2097152]="Intersection",C[C.Index=4194304]="Index",C[C.IndexedAccess=8388608]="IndexedAccess",C[C.Conditional=16777216]="Conditional",C[C.Substitution=33554432]="Substitution",C[C.NonPrimitive=67108864]="NonPrimitive",C[C.AnyOrUnknown=3]="AnyOrUnknown",C[C.Nullable=98304]="Nullable",C[C.Literal=2944]="Literal",C[C.Unit=109440]="Unit",C[C.StringOrNumberLiteral=384]="StringOrNumberLiteral",C[C.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",C[C.DefinitelyFalsy=117632]="DefinitelyFalsy",C[C.PossiblyFalsy=117724]="PossiblyFalsy",C[C.Intrinsic=67359327]="Intrinsic",C[C.Primitive=131068]="Primitive",C[C.StringLike=132]="StringLike",C[C.NumberLike=296]="NumberLike",C[C.BigIntLike=2112]="BigIntLike",C[C.BooleanLike=528]="BooleanLike",C[C.EnumLike=1056]="EnumLike",C[C.ESSymbolLike=12288]="ESSymbolLike",C[C.VoidLike=49152]="VoidLike",C[C.DisjointDomains=67238908]="DisjointDomains",C[C.UnionOrIntersection=3145728]="UnionOrIntersection",C[C.StructuredType=3670016]="StructuredType",C[C.TypeVariable=8650752]="TypeVariable",C[C.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",C[C.InstantiablePrimitive=4194304]="InstantiablePrimitive",C[C.Instantiable=63176704]="Instantiable",C[C.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",C[C.ObjectFlagsType=3899392]="ObjectFlagsType",C[C.Simplifiable=25165824]="Simplifiable",C[C.Narrowable=133970943]="Narrowable",C[C.NotUnionOrUnit=67637251]="NotUnionOrUnit",C[C.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",C[C.IncludesMask=1835007]="IncludesMask",C[C.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",C[C.IncludesNonWideningType=2097152]="IncludesNonWideningType",C[C.IncludesWildcard=4194304]="IncludesWildcard",C[C.IncludesEmptyObject=8388608]="IncludesEmptyObject",C[C.GenericMappedType=131072]="GenericMappedType",(B=e.ObjectFlags||(e.ObjectFlags={}))[B.Class=1]="Class",B[B.Interface=2]="Interface",B[B.Reference=4]="Reference",B[B.Tuple=8]="Tuple",B[B.Anonymous=16]="Anonymous",B[B.Mapped=32]="Mapped",B[B.Instantiated=64]="Instantiated",B[B.ObjectLiteral=128]="ObjectLiteral",B[B.EvolvingArray=256]="EvolvingArray",B[B.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",B[B.ContainsSpread=1024]="ContainsSpread",B[B.ReverseMapped=2048]="ReverseMapped",B[B.JsxAttributes=4096]="JsxAttributes",B[B.MarkerType=8192]="MarkerType",B[B.JSLiteral=16384]="JSLiteral",B[B.FreshLiteral=32768]="FreshLiteral",B[B.PrimitiveUnion=65536]="PrimitiveUnion",B[B.ContainsWideningType=131072]="ContainsWideningType",B[B.ContainsObjectLiteral=262144]="ContainsObjectLiteral",B[B.NonInferrableType=524288]="NonInferrableType",B[B.ClassOrInterface=3]="ClassOrInterface",B[B.RequiresWidening=393216]="RequiresWidening",B[B.PropagatingFlags=917504]="PropagatingFlags",(x=e.VarianceFlags||(e.VarianceFlags={}))[x.Invariant=0]="Invariant",x[x.Covariant=1]="Covariant",x[x.Contravariant=2]="Contravariant",x[x.Bivariant=3]="Bivariant",x[x.Independent=4]="Independent",x[x.VarianceMask=7]="VarianceMask",x[x.Unmeasurable=8]="Unmeasurable",x[x.Unreliable=16]="Unreliable",x[x.AllowsStructuralFallback=24]="AllowsStructuralFallback",(S=e.JsxReferenceKind||(e.JsxReferenceKind={}))[S.Component=0]="Component",S[S.Function=1]="Function",S[S.Mixed=2]="Mixed",(N=e.SignatureKind||(e.SignatureKind={}))[N.Call=0]="Call",N[N.Construct=1]="Construct",(D=e.IndexKind||(e.IndexKind={}))[D.String=0]="String",D[D.Number=1]="Number",(k=e.InferencePriority||(e.InferencePriority={}))[k.NakedTypeVariable=1]="NakedTypeVariable",k[k.HomomorphicMappedType=2]="HomomorphicMappedType",k[k.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",k[k.MappedTypeConstraint=8]="MappedTypeConstraint",k[k.ReturnType=16]="ReturnType",k[k.LiteralKeyof=32]="LiteralKeyof",k[k.NoConstraints=64]="NoConstraints",k[k.AlwaysStrict=128]="AlwaysStrict",k[k.PriorityImpliesCombination=56]="PriorityImpliesCombination",(A=e.InferenceFlags||(e.InferenceFlags={}))[A.None=0]="None",A[A.NoDefault=1]="NoDefault",A[A.AnyDefault=2]="AnyDefault",A[A.SkippedGenericFunction=4]="SkippedGenericFunction",(w=e.Ternary||(e.Ternary={}))[w.False=0]="False",w[w.Maybe=1]="Maybe",w[w.True=-1]="True",(V=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[V.None=0]="None",V[V.ExportsProperty=1]="ExportsProperty",V[V.ModuleExports=2]="ModuleExports",V[V.PrototypeProperty=3]="PrototypeProperty",V[V.ThisProperty=4]="ThisProperty",V[V.Property=5]="Property",V[V.Prototype=6]="Prototype",V[V.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",V[V.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",V[V.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",(L=P=e.DiagnosticCategory||(e.DiagnosticCategory={}))[L.Warning=0]="Warning",L[L.Error=1]="Error",L[L.Suggestion=2]="Suggestion",L[L.Message=3]="Message",e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var n=P[e.category];return t?n.toLowerCase():n},(M=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[M.Classic=1]="Classic",M[M.NodeJs=2]="NodeJs",(F=e.ModuleKind||(e.ModuleKind={}))[F.None=0]="None",F[F.CommonJS=1]="CommonJS",F[F.AMD=2]="AMD",F[F.UMD=3]="UMD",F[F.System=4]="System",F[F.ES2015=5]="ES2015",F[F.ESNext=6]="ESNext",(O=e.JsxEmit||(e.JsxEmit={}))[O.None=0]="None",O[O.Preserve=1]="Preserve",O[O.React=2]="React",O[O.ReactNative=3]="ReactNative",(R=e.NewLineKind||(e.NewLineKind={}))[R.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",R[R.LineFeed=1]="LineFeed",(H=e.ScriptKind||(e.ScriptKind={}))[H.Unknown=0]="Unknown",H[H.JS=1]="JS",H[H.JSX=2]="JSX",H[H.TS=3]="TS",H[H.TSX=4]="TSX",H[H.External=5]="External",H[H.JSON=6]="JSON",H[H.Deferred=7]="Deferred",(j=e.ScriptTarget||(e.ScriptTarget={}))[j.ES3=0]="ES3",j[j.ES5=1]="ES5",j[j.ES2015=2]="ES2015",j[j.ES2016=3]="ES2016",j[j.ES2017=4]="ES2017",j[j.ES2018=5]="ES2018",j[j.ES2019=6]="ES2019",j[j.ES2020=7]="ES2020",j[j.ESNext=8]="ESNext",j[j.JSON=100]="JSON",j[j.Latest=8]="Latest",(W=e.LanguageVariant||(e.LanguageVariant={}))[W.Standard=0]="Standard",W[W.JSX=1]="JSX",(G=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[G.None=0]="None",G[G.Recursive=1]="Recursive",(Y=e.CharacterCodes||(e.CharacterCodes={}))[Y.nullCharacter=0]="nullCharacter",Y[Y.maxAsciiCharacter=127]="maxAsciiCharacter",Y[Y.lineFeed=10]="lineFeed",Y[Y.carriageReturn=13]="carriageReturn",Y[Y.lineSeparator=8232]="lineSeparator",Y[Y.paragraphSeparator=8233]="paragraphSeparator",Y[Y.nextLine=133]="nextLine",Y[Y.space=32]="space",Y[Y.nonBreakingSpace=160]="nonBreakingSpace",Y[Y.enQuad=8192]="enQuad",Y[Y.emQuad=8193]="emQuad",Y[Y.enSpace=8194]="enSpace",Y[Y.emSpace=8195]="emSpace",Y[Y.threePerEmSpace=8196]="threePerEmSpace",Y[Y.fourPerEmSpace=8197]="fourPerEmSpace",Y[Y.sixPerEmSpace=8198]="sixPerEmSpace",Y[Y.figureSpace=8199]="figureSpace",Y[Y.punctuationSpace=8200]="punctuationSpace",Y[Y.thinSpace=8201]="thinSpace",Y[Y.hairSpace=8202]="hairSpace",Y[Y.zeroWidthSpace=8203]="zeroWidthSpace",Y[Y.narrowNoBreakSpace=8239]="narrowNoBreakSpace",Y[Y.ideographicSpace=12288]="ideographicSpace",Y[Y.mathematicalSpace=8287]="mathematicalSpace",Y[Y.ogham=5760]="ogham",Y[Y._=95]="_",Y[Y.$=36]="$",Y[Y._0=48]="_0",Y[Y._1=49]="_1",Y[Y._2=50]="_2",Y[Y._3=51]="_3",Y[Y._4=52]="_4",Y[Y._5=53]="_5",Y[Y._6=54]="_6",Y[Y._7=55]="_7",Y[Y._8=56]="_8",Y[Y._9=57]="_9",Y[Y.a=97]="a",Y[Y.b=98]="b",Y[Y.c=99]="c",Y[Y.d=100]="d",Y[Y.e=101]="e",Y[Y.f=102]="f",Y[Y.g=103]="g",Y[Y.h=104]="h",Y[Y.i=105]="i",Y[Y.j=106]="j",Y[Y.k=107]="k",Y[Y.l=108]="l",Y[Y.m=109]="m",Y[Y.n=110]="n",Y[Y.o=111]="o",Y[Y.p=112]="p",Y[Y.q=113]="q",Y[Y.r=114]="r",Y[Y.s=115]="s",Y[Y.t=116]="t",Y[Y.u=117]="u",Y[Y.v=118]="v",Y[Y.w=119]="w",Y[Y.x=120]="x",Y[Y.y=121]="y",Y[Y.z=122]="z",Y[Y.A=65]="A",Y[Y.B=66]="B",Y[Y.C=67]="C",Y[Y.D=68]="D",Y[Y.E=69]="E",Y[Y.F=70]="F",Y[Y.G=71]="G",Y[Y.H=72]="H",Y[Y.I=73]="I",Y[Y.J=74]="J",Y[Y.K=75]="K",Y[Y.L=76]="L",Y[Y.M=77]="M",Y[Y.N=78]="N",Y[Y.O=79]="O",Y[Y.P=80]="P",Y[Y.Q=81]="Q",Y[Y.R=82]="R",Y[Y.S=83]="S",Y[Y.T=84]="T",Y[Y.U=85]="U",Y[Y.V=86]="V",Y[Y.W=87]="W",Y[Y.X=88]="X",Y[Y.Y=89]="Y",Y[Y.Z=90]="Z",Y[Y.ampersand=38]="ampersand",Y[Y.asterisk=42]="asterisk",Y[Y.at=64]="at",Y[Y.backslash=92]="backslash",Y[Y.backtick=96]="backtick",Y[Y.bar=124]="bar",Y[Y.caret=94]="caret",Y[Y.closeBrace=125]="closeBrace",Y[Y.closeBracket=93]="closeBracket",Y[Y.closeParen=41]="closeParen",Y[Y.colon=58]="colon",Y[Y.comma=44]="comma",Y[Y.dot=46]="dot",Y[Y.doubleQuote=34]="doubleQuote",Y[Y.equals=61]="equals",Y[Y.exclamation=33]="exclamation",Y[Y.greaterThan=62]="greaterThan",Y[Y.hash=35]="hash",Y[Y.lessThan=60]="lessThan",Y[Y.minus=45]="minus",Y[Y.openBrace=123]="openBrace",Y[Y.openBracket=91]="openBracket",Y[Y.openParen=40]="openParen",Y[Y.percent=37]="percent",Y[Y.plus=43]="plus",Y[Y.question=63]="question",Y[Y.semicolon=59]="semicolon",Y[Y.singleQuote=39]="singleQuote",Y[Y.slash=47]="slash",Y[Y.tilde=126]="tilde",Y[Y.backspace=8]="backspace",Y[Y.formFeed=12]="formFeed",Y[Y.byteOrderMark=65279]="byteOrderMark",Y[Y.tab=9]="tab",Y[Y.verticalTab=11]="verticalTab",(J=e.Extension||(e.Extension={})).Ts=".ts",J.Tsx=".tsx",J.Dts=".d.ts",J.Js=".js",J.Jsx=".jsx",J.Json=".json",J.TsBuildInfo=".tsbuildinfo",(z=e.TransformFlags||(e.TransformFlags={}))[z.None=0]="None",z[z.ContainsTypeScript=1]="ContainsTypeScript",z[z.ContainsJsx=2]="ContainsJsx",z[z.ContainsESNext=4]="ContainsESNext",z[z.ContainsES2019=8]="ContainsES2019",z[z.ContainsES2018=16]="ContainsES2018",z[z.ContainsES2017=32]="ContainsES2017",z[z.ContainsES2016=64]="ContainsES2016",z[z.ContainsES2015=128]="ContainsES2015",z[z.ContainsGenerator=256]="ContainsGenerator",z[z.ContainsDestructuringAssignment=512]="ContainsDestructuringAssignment",z[z.ContainsTypeScriptClassSyntax=1024]="ContainsTypeScriptClassSyntax",z[z.ContainsLexicalThis=2048]="ContainsLexicalThis",z[z.ContainsRestOrSpread=4096]="ContainsRestOrSpread",z[z.ContainsObjectRestOrSpread=8192]="ContainsObjectRestOrSpread",z[z.ContainsComputedPropertyName=16384]="ContainsComputedPropertyName",z[z.ContainsBlockScopedBinding=32768]="ContainsBlockScopedBinding",z[z.ContainsBindingPattern=65536]="ContainsBindingPattern",z[z.ContainsYield=131072]="ContainsYield",z[z.ContainsHoistedDeclarationOrCompletion=262144]="ContainsHoistedDeclarationOrCompletion",z[z.ContainsDynamicImport=524288]="ContainsDynamicImport",z[z.HasComputedFlags=536870912]="HasComputedFlags",z[z.AssertTypeScript=1]="AssertTypeScript",z[z.AssertJsx=2]="AssertJsx",z[z.AssertESNext=4]="AssertESNext",z[z.AssertES2019=8]="AssertES2019",z[z.AssertES2018=16]="AssertES2018",z[z.AssertES2017=32]="AssertES2017",z[z.AssertES2016=64]="AssertES2016",z[z.AssertES2015=128]="AssertES2015",z[z.AssertGenerator=256]="AssertGenerator",z[z.AssertDestructuringAssignment=512]="AssertDestructuringAssignment",z[z.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",z[z.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",z[z.NodeExcludes=536870912]="NodeExcludes",z[z.ArrowFunctionExcludes=537371648]="ArrowFunctionExcludes",z[z.FunctionExcludes=537373696]="FunctionExcludes",z[z.ConstructorExcludes=537372672]="ConstructorExcludes",z[z.MethodOrAccessorExcludes=537372672]="MethodOrAccessorExcludes",z[z.PropertyExcludes=536872960]="PropertyExcludes",z[z.ClassExcludes=536888320]="ClassExcludes",z[z.ModuleExcludes=537168896]="ModuleExcludes",z[z.TypeExcludes=-2]="TypeExcludes",z[z.ObjectLiteralExcludes=536896512]="ObjectLiteralExcludes",z[z.ArrayLiteralOrCallOrNewExcludes=536875008]="ArrayLiteralOrCallOrNewExcludes",z[z.VariableDeclarationListExcludes=536944640]="VariableDeclarationListExcludes",z[z.ParameterExcludes=536870912]="ParameterExcludes",z[z.CatchClauseExcludes=536879104]="CatchClauseExcludes",z[z.BindingPatternExcludes=536875008]="BindingPatternExcludes",z[z.PropertyNamePropagatingFlags=2048]="PropertyNamePropagatingFlags",(U=e.EmitFlags||(e.EmitFlags={}))[U.None=0]="None",U[U.SingleLine=1]="SingleLine",U[U.AdviseOnEmitNode=2]="AdviseOnEmitNode",U[U.NoSubstitution=4]="NoSubstitution",U[U.CapturesThis=8]="CapturesThis",U[U.NoLeadingSourceMap=16]="NoLeadingSourceMap",U[U.NoTrailingSourceMap=32]="NoTrailingSourceMap",U[U.NoSourceMap=48]="NoSourceMap",U[U.NoNestedSourceMaps=64]="NoNestedSourceMaps",U[U.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",U[U.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",U[U.NoTokenSourceMaps=384]="NoTokenSourceMaps",U[U.NoLeadingComments=512]="NoLeadingComments",U[U.NoTrailingComments=1024]="NoTrailingComments",U[U.NoComments=1536]="NoComments",U[U.NoNestedComments=2048]="NoNestedComments",U[U.HelperName=4096]="HelperName",U[U.ExportName=8192]="ExportName",U[U.LocalName=16384]="LocalName",U[U.InternalName=32768]="InternalName",U[U.Indented=65536]="Indented",U[U.NoIndentation=131072]="NoIndentation",U[U.AsyncFunctionBody=262144]="AsyncFunctionBody",U[U.ReuseTempVariableScope=524288]="ReuseTempVariableScope",U[U.CustomPrologue=1048576]="CustomPrologue",U[U.NoHoisting=2097152]="NoHoisting",U[U.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",U[U.Iterator=8388608]="Iterator",U[U.NoAsciiEscaping=16777216]="NoAsciiEscaping",U[U.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",U[U.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",(K=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[K.Extends=1]="Extends",K[K.Assign=2]="Assign",K[K.Rest=4]="Rest",K[K.Decorate=8]="Decorate",K[K.Metadata=16]="Metadata",K[K.Param=32]="Param",K[K.Awaiter=64]="Awaiter",K[K.Generator=128]="Generator",K[K.Values=256]="Values",K[K.Read=512]="Read",K[K.Spread=1024]="Spread",K[K.Await=2048]="Await",K[K.AsyncGenerator=4096]="AsyncGenerator",K[K.AsyncDelegator=8192]="AsyncDelegator",K[K.AsyncValues=16384]="AsyncValues",K[K.ExportStar=32768]="ExportStar",K[K.MakeTemplateObject=65536]="MakeTemplateObject",K[K.FirstEmitHelper=1]="FirstEmitHelper",K[K.LastEmitHelper=65536]="LastEmitHelper",K[K.ForOfIncludes=256]="ForOfIncludes",K[K.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",K[K.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",K[K.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",K[K.SpreadIncludes=1536]="SpreadIncludes",(Z=e.EmitHint||(e.EmitHint={}))[Z.SourceFile=0]="SourceFile",Z[Z.Expression=1]="Expression",Z[Z.IdentifierName=2]="IdentifierName",Z[Z.MappedTypeParameter=3]="MappedTypeParameter",Z[Z.Unspecified=4]="Unspecified",Z[Z.EmbeddedStatement=5]="EmbeddedStatement",(X=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",X.EmitHelpers="emitHelpers",X.NoDefaultLib="no-default-lib",X.Reference="reference",X.Type="type",X.Lib="lib",X.Prepend="prepend",X.Text="text",X.Internal="internal",(q=e.ListFormat||(e.ListFormat={}))[q.None=0]="None",q[q.SingleLine=0]="SingleLine",q[q.MultiLine=1]="MultiLine",q[q.PreserveLines=2]="PreserveLines",q[q.LinesMask=3]="LinesMask",q[q.NotDelimited=0]="NotDelimited",q[q.BarDelimited=4]="BarDelimited",q[q.AmpersandDelimited=8]="AmpersandDelimited",q[q.CommaDelimited=16]="CommaDelimited",q[q.AsteriskDelimited=32]="AsteriskDelimited",q[q.DelimitersMask=60]="DelimitersMask",q[q.AllowTrailingComma=64]="AllowTrailingComma",q[q.Indented=128]="Indented",q[q.SpaceBetweenBraces=256]="SpaceBetweenBraces",q[q.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",q[q.Braces=1024]="Braces",q[q.Parenthesis=2048]="Parenthesis",q[q.AngleBrackets=4096]="AngleBrackets",q[q.SquareBrackets=8192]="SquareBrackets",q[q.BracketsMask=15360]="BracketsMask",q[q.OptionalIfUndefined=16384]="OptionalIfUndefined",q[q.OptionalIfEmpty=32768]="OptionalIfEmpty",q[q.Optional=49152]="Optional",q[q.PreferNewLine=65536]="PreferNewLine",q[q.NoTrailingNewLine=131072]="NoTrailingNewLine",q[q.NoInterveningComments=262144]="NoInterveningComments",q[q.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",q[q.SingleElement=1048576]="SingleElement",q[q.Modifiers=262656]="Modifiers",q[q.HeritageClauses=512]="HeritageClauses",q[q.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",q[q.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",q[q.TupleTypeElements=528]="TupleTypeElements",q[q.UnionTypeConstituents=516]="UnionTypeConstituents",q[q.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",q[q.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",q[q.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",q[q.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",q[q.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",q[q.CommaListElements=528]="CommaListElements",q[q.CallExpressionArguments=2576]="CallExpressionArguments",q[q.NewExpressionArguments=18960]="NewExpressionArguments",q[q.TemplateExpressionSpans=262144]="TemplateExpressionSpans",q[q.SingleLineBlockStatements=768]="SingleLineBlockStatements",q[q.MultiLineBlockStatements=129]="MultiLineBlockStatements",q[q.VariableDeclarationList=528]="VariableDeclarationList",q[q.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",q[q.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",q[q.ClassHeritageClauses=0]="ClassHeritageClauses",q[q.ClassMembers=129]="ClassMembers",q[q.InterfaceMembers=129]="InterfaceMembers",q[q.EnumMembers=145]="EnumMembers",q[q.CaseBlockClauses=129]="CaseBlockClauses",q[q.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",q[q.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",q[q.JsxElementAttributes=262656]="JsxElementAttributes",q[q.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",q[q.HeritageClauseTypes=528]="HeritageClauseTypes",q[q.SourceFileStatements=131073]="SourceFileStatements",q[q.Decorators=49153]="Decorators",q[q.TypeArguments=53776]="TypeArguments",q[q.TypeParameters=53776]="TypeParameters",q[q.Parameters=2576]="Parameters",q[q.IndexSignatureParameters=8848]="IndexSignatureParameters",q[q.JSDocComment=33]="JSDocComment",(Q=e.PragmaKindFlags||(e.PragmaKindFlags={}))[Q.None=0]="None",Q[Q.TripleSlashXML=1]="TripleSlashXML",Q[Q.SingleLine=2]="SingleLine",Q[Q.MultiLine=4]="MultiLine",Q[Q.All=7]="All",Q[Q.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(rg=rg||{}),function(A){function w(e){for(var t=5381,n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}var V,e,P,t;function a(e){var t={};return t[P.Low]=e.Low,t[P.Medium]=e.Medium,t[P.High]=e.High,t}A.generateDjb2Hash=w,A.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=V=A.FileWatcherEventKind||(A.FileWatcherEventKind={}))[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",(t=P=A.PollingInterval||(A.PollingInterval={}))[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",A.missingFileModifiedTime=new Date(0);var o,n,s,c={Low:32,Medium:64,High:256},h=a(c);function r(o){var r;function i(i){var a;return e("Low"),e("Medium"),e("High"),a;function e(e){var t,n,r=(t=i,n=e,o.getEnvironmentVariable(t+"_"+n.toUpperCase()));r&&((a=a||{})[e]=Number(r))}}function e(e,t){var n=i(e);return(r||n)&&a(n?Qb({},t,n):t)}o.getEnvironmentVariable&&(r=function(e,t){var n=i(e);if(n)return r("Low"),r("Medium"),r("High"),!0;return!1;function r(e){t[e]=n[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",P),h=e("TSC_WATCH_POLLINGCHUNKSIZE",c)||h,A.unchangedPollThresholds=e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",c)||A.unchangedPollThresholds)}function L(t){var i=[],l=[],n=e(P.Low),r=e(P.Medium),a=e(P.High);return function(e,t,n){var r={fileName:e,callback:t,unchangedPolls:0,mtime:_(e)};return i.push(r),d(r,n),{close:function(){r.isClosed=!0,A.unorderedRemoveItem(i,r)}}};function e(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function o(e){e.pollIndex=c(e,e.pollingInterval,e.pollIndex,h[e.pollingInterval]),e.length?f(e.pollingInterval):(A.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function s(e){c(l,P.Low,0,l.length),o(e),!e.pollScheduled&&l.length&&f(P.Low)}function c(e,t,n,r){for(var i,a=e.length,o=n,s=0;s<r&&0<a;++n===e.length&&(o<n&&(e.length=o),o=n=0),a--){var c,u=e[n];u&&(u.isClosed?e[n]=undefined:(s++,c=g(u,_(u.fileName)),u.isClosed?e[n]=undefined:c?(u.unchangedPolls=0,e!==l&&(e[n]=undefined,i=u,l.push(i),p(P.Low))):u.unchangedPolls!==A.unchangedPollThresholds[t]?u.unchangedPolls++:e===l?(u.unchangedPolls=1,e[n]=undefined,d(u,P.Low)):t!==P.High&&(u.unchangedPolls++,e[n]=undefined,d(u,t===P.Low?P.Medium:P.High)),e[n]&&(o<n&&(e[o]=u,e[n]=undefined),o++)))}return n}function u(e){switch(e){case P.Low:return n;case P.Medium:return r;case P.High:return a}}function d(e,t){u(t).push(e),p(t)}function p(e){u(e).pollScheduled||f(e)}function f(e){u(e).pollScheduled=t.setTimeout(e===P.Low?s:o,e,u(e))}function _(e){return t.getModifiedTime(e)||A.missingFileModifiedTime}}function g(e,t){var n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,i(n,r)),!0)}function i(e,t){return 0===e?V.Created:0===t?V.Deleted:V.Changed}function M(s){var c=A.createMap(),i=A.createMultiMap(),u=A.getStringComparer(!s.useCaseSensitiveFileNames),a=A.createGetCanonicalFileName(s.useCaseSensitiveFileNames);return l;function l(e,t){var r=a(e),n=c.get(r);return n?n.refCount++:(n={watcher:s.watchDirectory(e,function(n){d(n)||(i.forEach(function(e,t){(t===r||A.startsWith(r,t)&&r[t.length]===A.directorySeparator)&&e.forEach(function(e){return e(n)})}),o(e,r))}),refCount:1,childWatches:A.emptyArray},c.set(r,n),o(e,r)),t&&i.add(r,t),{dirName:e,close:function(){var e=A.Debug.assertDefined(c.get(r));t&&i.remove(r,t),e.refCount--,e.refCount||(c["delete"](r),A.closeFileWatcherOf(e),e.childWatches.forEach(A.closeFileWatcher))}}}function o(e,t){var n,r,i,a=c.get(t);function o(e){(i=i||[]).push(e)}a&&(a.childWatches=(n=e,r=a.childWatches,A.enumerateInsertsAndDeletes(s.directoryExists(n)?A.mapDefined(s.getAccessibleSortedChildDirectories(n),function(e){var t=A.getNormalizedAbsolutePath(e,n);return d(t)||0!==u(t,A.normalizePath(s.realpath(t)))?undefined:t}):A.emptyArray,r,function(e,t){return u(e,t.dirName)},function(e){o(l(e))},A.closeFileWatcher,o),i||A.emptyArray))}function d(r){return A.some(A.ignoredPaths,function(e){return t=r,n=e,!!A.stringContains(t,n)||!s.useCaseSensitiveFileNames&&A.stringContains(a(t),n);var t,n})}}function F(){if(void 0===O)return undefined;var e=O.version;if(!e)return undefined;var t=e.indexOf(".");return-1===t?undefined:parseInt(e.substring(1,t))}A.unchangedPollThresholds=a(c),A.setCustomPollingValues=r,A.createDynamicPriorityPollingWatchFile=L,A.onWatchedFileStat=g,A.getFileWatcherEventKind=i,A.ignoredPaths=["/node_modules/.","/.git"],A.createRecursiveDirectoryWatcher=M,A.getNodeMajorVersion=F,A.sys=("undefined"!=typeof ChakraHost?(n=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)},o={newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,n){n&&(t="\ufeff"+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,deleteFile:ChakraHost.deleteFile,getModifiedTime:ChakraHost.getModifiedTime,setModifiedTime:ChakraHost.setModifiedTime,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(e,t,n,r,i){var a=A.getFileMatcherPatterns(e,n,r,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(e,t,a.basePaths,a.excludePattern,a.includeFilePattern,a.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:n}):void 0!==O&&O.nextTick&&!O.browser&&(o=function(){var n,p=dg(771),t=dg(772),e=dg(773);try{n=dg(19)}catch(k){n=undefined}var r,i=dg(15).Buffer,f=4<=F(),a=e.platform(),o="win32"!==a&&"win64"!==a&&!B(function(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}(R));(r={})[r.File=0]="File",r[r.Directory=1]="Directory";var s,c=O.env.TSC_NONPOLLING_WATCHER,u=O.env.TSC_WATCHFILE,l=O.env.TSC_WATCHDIRECTORY,d={args:O.argv.slice(2),newLine:e.EOL,useCaseSensitiveFileNames:o,write:function(e){O.stdout.write(e)},writeOutputIsTTY:function(){return O.stdout.isTTY},readFile:function(e,t){if(!B(e))return undefined;var n=p.readFileSync(e),r=n.length;if(2<=r&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i<r;i+=2){var a=n[i];n[i]=n[i+1],n[i+1]=a}return n.toString("utf16le",2)}return 2<=r&&255===n[0]&&254===n[1]?n.toString("utf16le",2):3<=r&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")},writeFile:function(e,t,n){var r;n&&(t="\ufeff"+t);try{r=p.openSync(e,"w"),p.writeSync(r,t,undefined,"utf8")}finally{r!==undefined&&p.closeSync(r)}},watchFile:function(){switch(u){case"PriorityPollingInterval":return g;case"DynamicPriorityPolling":return L({getModifiedTime:N,setTimeout:setTimeout});case"UseFsEvents":return b;case"UseFsEventsWithFallbackDynamicPolling":return function(r){return function(e,t,n){return y(e,0,m(e,t),!1,r,n)}}(s=L({getModifiedTime:N,setTimeout:setTimeout}));case"UseFsEventsOnParentDirectory":return h()}return c?h():function(e,t){return g(e,t)}}(),watchDirectory:function(){if(f&&("win32"===O.platform||"darwin"===O.platform))return E;var r="RecursiveDirectoryUsingFsWatchFile"===l?I(g):"RecursiveDirectoryUsingDynamicPriorityPolling"===l?I(s||L({getModifiedTime:N,setTimeout:setTimeout})):E,i=M({useCaseSensitiveFileNames:o,directoryExists:x,getAccessibleSortedChildDirectories:function(e){return T(e).directories},watchDirectory:r,realpath:S});return function(e,t,n){return(n?i:r)(e,t)}}(),resolvePath:function(e){return t.resolve(e)},fileExists:B,directoryExists:x,createDirectory:function(e){if(!d.directoryExists(e))try{p.mkdirSync(e)}catch(t){if("EEXIST"!==t.code)throw t}},getExecutingFilePath:function(){return R},getCurrentDirectory:function(){return O.cwd()},getDirectories:function(t){return A.filter(p.readdirSync(t),function(e){return C(A.combinePaths(t,e),1)})},getEnvironmentVariable:function(e){return O.env[e]||""},readDirectory:function(e,t,n,r,i){return A.matchFiles(e,t,n,r,o,O.cwd(),i,T,S)},getModifiedTime:N,setModifiedTime:function(e,t){try{p.utimesSync(e,t,t)}catch(n){return}},deleteFile:function(e){try{return p.unlinkSync(e)}catch(t){return}},createHash:n?D:w,createSHA256Hash:n?D:undefined,getMemoryUsage:function(){return H.gc&&H.gc(),O.memoryUsage().heapUsed},getFileSize:function(e){try{var t=p.statSync(e);if(t.isFile())return t.size}catch(k){}return 0},exit:function(e){O.exit(e)},realpath:S,debugMode:A.some(O.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{dg(846).install()}catch(k){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){O.stdout.write("c")},setBlocking:function(){O.stdout&&O.stdout._handle&&O.stdout._handle.setBlocking&&O.stdout._handle.setBlocking(!0)},bufferFrom:_,base64decode:function(e){return _(e,"base64").toString("utf8")},base64encode:function(e){return _(e).toString("base64")}};return d;function _(e,t){return i.from&&i.from!==Int8Array.from?i.from(e,t):new i(e,t)}function h(){var s=A.createMultiMap(),a=A.createMap(),c=A.createGetCanonicalFileName(o);return function(e,t){var n=c(e);s.add(n,t);var r=A.getDirectoryPath(n)||".",i=a.get(r)||function(o,e){var t=v(o,function(e,t){if(A.isString(t)){var n=A.getNormalizedAbsolutePath(t,o),r=n&&s.get(c(n));if(r)for(var i=0,a=r;i<a.length;i++)(0,a[i])(n,V.Changed)}});return t.referenceCount=0,a.set(e,t),t}(A.getDirectoryPath(e)||".",r);return i.referenceCount++,{close:function(){1===i.referenceCount?(i.close(),a["delete"](r)):i.referenceCount--,s.remove(n,t)}}}}function g(r,i,e){var a;return p.watchFile(r,{persistent:!0,interval:e||250},t),{close:function(){return p.unwatchFile(r,t)}};function t(e,t){var n=0==+t.mtime||a===V.Deleted;if(0==+e.mtime){if(n)return;a=V.Deleted}else if(n)a=V.Created;else{if(+e.mtime==+t.mtime)return;a=V.Changed}i(r,a)}}function m(t,n){return function(e){n(t,"rename"===e?B(t)?V.Created:V.Deleted:V.Changed)}}function y(n,r,i,a,o,s){var c,t=(C(n,r)?l:d)();return{close:function(){t.close(),t=undefined}};function u(e){i("rename",""),t&&(t.close(),t=e())}function l(){c===undefined&&(c=!f||"win32"!==O.platform&&"darwin"!==O.platform?{persistent:!0}:{persistent:!0,recursive:!!a});try{var e=p.watch(n,c,i);return e.on("error",function(){return u(d)}),e}catch(t){return o(n,function(n){return function(e,t){return n(t===V.Changed?"change":"rename","")}}(i),s)}}function d(){return o(n,function(e,t){t===V.Created&&C(n,r)&&u(l)},s)}}function b(e,t,n){return y(e,0,m(e,t),!1,g,n)}function v(e,t,n){return y(e,1,t,!!n,g)}function E(e,t,n){return v(e,(r=e,i=t,function(e,t){"rename"===e&&i(t?A.normalizePath(A.combinePaths(r,t)):r)}),n);var r,i}function I(n){return function(e,t){return n(e,function(){return t(e)},P.Medium)}}function T(e){try{for(var t=p.readdirSync(e||".").sort(),n=[],r=[],i=0,a=t;i<a.length;i++){var o=a[i];if("."!==o&&".."!==o){var s=A.combinePaths(e,o),c=void 0;try{c=p.statSync(s)}catch(u){continue}c.isFile()?n.push(o):c.isDirectory()&&r.push(o)}}return{files:n,directories:r}}catch(u){return A.emptyFileSystemEntries}}function C(e,t){try{var n=p.statSync(e);switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(r){return!1}}function B(e){return C(e,0)}function x(e){return C(e,1)}function S(e){try{return p.realpathSync(e)}catch(k){return e}}function N(e){try{return p.statSync(e).mtime}catch(t){return undefined}}function D(e){var t=n.createHash("sha256");return t.update(e),t.digest("hex")}}()),o&&(s=o.writeFile,o.writeFile=function(e,t,n){var r=A.getDirectoryPath(A.normalizeSlashes(e));r&&!o.directoryExists(r)&&!function i(e,t){var n=A.getDirectoryPath(e),r=""!==n&&e!==n&&!t.directoryExists(n);r&&i(n,t),!r&&t.directoryExists(e)||t.createDirectory(e)}(r,o),s.call(o,e,t,n)}),o),A.sys&&A.sys.getEnvironmentVariable&&(r(A.sys),A.Debug.currentAssertionLevel=/^development$/i.test(A.sys.getEnvironmentVariable("NODE_ENV"))?1:0),A.sys&&A.sys.debugMode&&(A.Debug.isDebugging=!0)}(rg=rg||{}),(f=rg=rg||{}).Diagnostics={Unterminated_string_literal:po(1002,f.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:po(1003,f.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:po(1005,f.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:po(1006,f.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:po(1009,f.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:po(1010,f.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:po(1011,f.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:po(1012,f.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:po(1013,f.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:po(1014,f.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:po(1015,f.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:po(1016,f.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:po(1017,f.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:po(1018,f.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:po(1019,f.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:po(1020,f.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:po(1021,f.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:po(1022,f.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:po(1023,f.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:po(1024,f.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:po(1028,f.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:po(1029,f.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:po(1030,f.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:po(1031,f.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:po(1034,f.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:po(1035,f.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:po(1036,f.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:po(1038,f.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:po(1039,f.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:po(1040,f.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:po(1041,f.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:po(1042,f.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:po(1043,f.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:po(1044,f.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:po(1045,f.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:po(1046,f.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:po(1047,f.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:po(1048,f.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:po(1049,f.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:po(1051,f.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:po(1052,f.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:po(1053,f.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:po(1054,f.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:po(1055,f.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:po(1056,f.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:po(1057,f.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:po(1058,f.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:po(1059,f.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:po(1060,f.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:po(1061,f.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:po(1062,f.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:po(1063,f.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:po(1064,f.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:po(1066,f.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:po(1068,f.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:po(1069,f.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:po(1070,f.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:po(1071,f.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:po(1079,f.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:po(1084,f.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:po(1085,f.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:po(1086,f.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:po(1089,f.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:po(1090,f.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:po(1091,f.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:po(1092,f.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:po(1093,f.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:po(1094,f.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:po(1095,f.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:po(1096,f.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:po(1097,f.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:po(1098,f.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:po(1099,f.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:po(1100,f.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:po(1101,f.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:po(1102,f.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:po(1103,f.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:po(1104,f.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:po(1105,f.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:po(1107,f.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:po(1108,f.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:po(1109,f.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:po(1110,f.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:po(1113,f.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:po(1114,f.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:po(1115,f.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:po(1116,f.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:po(1117,f.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:po(1118,f.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:po(1119,f.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:po(1120,f.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:po(1121,f.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:po(1123,f.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:po(1124,f.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:po(1125,f.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:po(1126,f.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:po(1127,f.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:po(1128,f.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:po(1129,f.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:po(1130,f.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:po(1131,f.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:po(1132,f.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:po(1134,f.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:po(1135,f.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:po(1136,f.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:po(1137,f.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:po(1138,f.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:po(1139,f.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:po(1140,f.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:po(1141,f.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:po(1142,f.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:po(1144,f.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:po(1146,f.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:po(1147,f.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:po(1148,f.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:po(1149,f.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:po(1150,f.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."),const_declarations_must_be_initialized:po(1155,f.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:po(1156,f.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:po(1157,f.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:po(1160,f.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:po(1161,f.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:po(1162,f.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:po(1163,f.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:po(1164,f.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:po(1165,f.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:po(1166,f.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:po(1168,f.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:po(1169,f.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:po(1170,f.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:po(1171,f.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:po(1172,f.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:po(1173,f.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:po(1174,f.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:po(1175,f.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:po(1176,f.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:po(1177,f.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:po(1178,f.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:po(1179,f.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:po(1180,f.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:po(1181,f.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:po(1182,f.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:po(1183,f.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:po(1184,f.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:po(1185,f.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:po(1186,f.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:po(1187,f.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:po(1188,f.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:po(1189,f.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:po(1190,f.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:po(1191,f.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:po(1192,f.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:po(1193,f.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:po(1194,f.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:po(1196,f.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:po(1197,f.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:po(1198,f.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:po(1199,f.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:po(1200,f.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:po(1202,f.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:po(1203,f.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:po(1205,f.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:po(1206,f.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:po(1207,f.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:po(1208,f.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:po(1210,f.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:po(1211,f.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:po(1212,f.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:po(1213,f.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:po(1214,f.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:po(1215,f.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:po(1216,f.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:po(1218,f.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:po(1219,f.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:po(1220,f.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:po(1221,f.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:po(1222,f.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:po(1223,f.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:po(1224,f.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:po(1225,f.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:po(1226,f.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:po(1227,f.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:po(1228,f.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:po(1229,f.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:po(1230,f.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:po(1231,f.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:po(1232,f.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:po(1233,f.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:po(1234,f.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:po(1235,f.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:po(1236,f.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:po(1237,f.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:po(1238,f.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:po(1239,f.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:po(1240,f.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:po(1241,f.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:po(1242,f.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:po(1243,f.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:po(1244,f.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:po(1245,f.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:po(1246,f.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:po(1247,f.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:po(1248,f.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:po(1249,f.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:po(1250,f.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:po(1251,f.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:po(1252,f.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:po(1253,f.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:po(1254,f.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:po(1255,f.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:po(1256,f.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:po(1257,f.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:po(1258,f.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag:po(1259,f.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),with_statements_are_not_allowed_in_an_async_function_block:po(1300,f.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:po(1308,f.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:po(1312,f.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:po(1313,f.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:po(1314,f.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:po(1315,f.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:po(1316,f.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:po(1317,f.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:po(1318,f.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:po(1319,f.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:po(1320,f.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:po(1321,f.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:po(1322,f.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext:po(1323,f.DiagnosticCategory.Error,"Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext_1323","Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'."),Dynamic_import_must_have_one_specifier_as_an_argument:po(1324,f.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:po(1325,f.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:po(1326,f.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:po(1327,f.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:po(1328,f.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:po(1329,f.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:po(1330,f.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:po(1331,f.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:po(1332,f.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:po(1333,f.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:po(1334,f.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:po(1335,f.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:po(1336,f.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:po(1337,f.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:po(1338,f.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:po(1339,f.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:po(1340,f.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:po(1342,f.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options:po(1343,f.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_option_1343","The 'import.meta' meta-property is only allowed using 'ESNext' for the 'target' and 'module' compiler options."),A_label_is_not_allowed_here:po(1344,f.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:po(1345,f.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness"),This_parameter_is_not_allowed_with_use_strict_directive:po(1346,f.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:po(1347,f.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:po(1348,f.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:po(1349,f.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:po(1350,f.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:po(1351,f.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:po(1352,f.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:po(1353,f.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:po(1354,f.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:po(1355,f.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:po(1356,f.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),Duplicate_identifier_0:po(2300,f.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:po(2301,f.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:po(2302,f.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:po(2303,f.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:po(2304,f.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:po(2305,f.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:po(2306,f.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:po(2307,f.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:po(2308,f.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:po(2309,f.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:po(2310,f.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:po(2311,f.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:po(2312,f.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:po(2313,f.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:po(2314,f.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:po(2315,f.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:po(2316,f.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:po(2317,f.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:po(2318,f.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:po(2319,f.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:po(2320,f.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:po(2321,f.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:po(2322,f.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:po(2323,f.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:po(2324,f.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:po(2325,f.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:po(2326,f.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:po(2327,f.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:po(2328,f.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:po(2329,f.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:po(2330,f.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:po(2331,f.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:po(2332,f.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:po(2333,f.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:po(2334,f.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:po(2335,f.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:po(2336,f.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:po(2337,f.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:po(2338,f.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:po(2339,f.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:po(2340,f.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:po(2341,f.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:po(2342,f.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:po(2343,f.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:po(2344,f.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:po(2345,f.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:po(2346,f.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:po(2347,f.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:po(2348,f.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:po(2349,f.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:po(2350,f.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:po(2351,f.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:po(2352,f.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:po(2353,f.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:po(2354,f.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:po(2355,f.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:po(2356,f.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:po(2357,f.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:po(2358,f.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:po(2359,f.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:po(2360,f.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:po(2361,f.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:po(2362,f.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:po(2363,f.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:po(2364,f.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:po(2365,f.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:po(2366,f.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:po(2367,f.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:po(2368,f.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:po(2369,f.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:po(2370,f.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:po(2371,f.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:po(2372,f.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:po(2373,f.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:po(2374,f.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:po(2375,f.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:po(2376,f.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:po(2377,f.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:po(2378,f.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:po(2379,f.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:po(2380,f.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:po(2381,f.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:po(2382,f.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:po(2383,f.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:po(2384,f.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:po(2385,f.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:po(2386,f.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:po(2387,f.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:po(2388,f.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:po(2389,f.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:po(2390,f.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:po(2391,f.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:po(2392,f.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:po(2393,f.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:po(2394,f.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:po(2395,f.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:po(2396,f.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:po(2397,f.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:po(2399,f.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:po(2400,f.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:po(2401,f.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:po(2402,f.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:po(2403,f.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:po(2404,f.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:po(2405,f.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:po(2406,f.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:po(2407,f.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:po(2408,f.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:po(2409,f.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:po(2410,f.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:po(2411,f.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:po(2412,f.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:po(2413,f.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:po(2414,f.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:po(2415,f.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:po(2416,f.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:po(2417,f.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:po(2418,f.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Class_0_incorrectly_implements_interface_1:po(2420,f.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:po(2422,f.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:po(2423,f.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:po(2424,f.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:po(2425,f.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:po(2426,f.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:po(2427,f.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:po(2428,f.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:po(2430,f.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:po(2431,f.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:po(2432,f.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:po(2433,f.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:po(2434,f.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:po(2435,f.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:po(2436,f.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:po(2437,f.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:po(2438,f.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:po(2439,f.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:po(2440,f.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:po(2441,f.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:po(2442,f.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:po(2443,f.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:po(2444,f.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:po(2445,f.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:po(2446,f.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:po(2447,f.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:po(2448,f.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:po(2449,f.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:po(2450,f.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:po(2451,f.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:po(2452,f.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:po(2453,f.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:po(2454,f.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:po(2455,f.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:po(2456,f.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:po(2457,f.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:po(2458,f.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_is_not_an_array_type:po(2461,f.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:po(2462,f.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:po(2463,f.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:po(2464,f.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:po(2465,f.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:po(2466,f.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:po(2467,f.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:po(2468,f.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:po(2469,f.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:po(2470,f.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:po(2471,f.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:po(2472,f.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:po(2473,f.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:po(2474,f.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:po(2475,f.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:po(2476,f.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:po(2477,f.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:po(2478,f.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:po(2479,f.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:po(2480,f.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:po(2481,f.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:po(2483,f.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:po(2484,f.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:po(2487,f.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:po(2488,f.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:po(2489,f.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:po(2490,f.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:po(2491,f.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:po(2492,f.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:po(2493,f.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:po(2494,f.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:po(2495,f.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:po(2496,f.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:po(2497,f.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:po(2498,f.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:po(2499,f.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:po(2500,f.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:po(2501,f.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:po(2502,f.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:po(2503,f.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:po(2504,f.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:po(2505,f.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:po(2506,f.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:po(2507,f.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:po(2508,f.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:po(2509,f.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:po(2510,f.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:po(2511,f.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:po(2512,f.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:po(2513,f.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:po(2514,f.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:po(2515,f.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:po(2516,f.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:po(2517,f.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:po(2518,f.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:po(2519,f.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:po(2520,f.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:po(2521,f.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:po(2522,f.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:po(2523,f.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:po(2524,f.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:po(2525,f.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:po(2526,f.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:po(2527,f.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:po(2528,f.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:po(2529,f.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:po(2530,f.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:po(2531,f.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:po(2532,f.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:po(2533,f.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:po(2534,f.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:po(2535,f.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:po(2536,f.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:po(2537,f.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:po(2538,f.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:po(2539,f.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:po(2540,f.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:po(2541,f.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:po(2542,f.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:po(2543,f.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:po(2544,f.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:po(2545,f.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:po(2546,f.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:po(2547,f.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:po(2548,f.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:po(2549,f.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:po(2551,f.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:po(2552,f.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:po(2553,f.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:po(2554,f.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:po(2555,f.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:po(2556,f.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:po(2557,f.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:po(2558,f.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:po(2559,f.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:po(2560,f.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:po(2561,f.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:po(2562,f.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:po(2563,f.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:po(2564,f.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:po(2565,f.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:po(2566,f.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:po(2567,f.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:po(2569,f.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:po(2570,f.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),Object_is_of_type_unknown:po(2571,f.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:po(2572,f.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:po(2573,f.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:po(2574,f.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:po(2575,f.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:po(2576,f.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:po(2577,f.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode:po(2580,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:po(2581,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:po(2582,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:po(2583,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:po(2584,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:po(2585,f.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:po(2586,f.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:po(2587,f.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:po(2588,f.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:po(2589,f.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:po(2590,f.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:po(2591,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:po(2592,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:po(2593,f.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:po(2594,f.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),JSX_element_attributes_type_0_may_not_be_a_union_type:po(2600,f.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:po(2601,f.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:po(2602,f.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:po(2603,f.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:po(2604,f.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:po(2605,f.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:po(2606,f.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:po(2607,f.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:po(2608,f.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:po(2609,f.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:po(2649,f.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:po(2651,f.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:po(2652,f.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:po(2653,f.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:po(2654,f.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:po(2656,f.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:po(2657,f.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:po(2658,f.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:po(2659,f.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:po(2660,f.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:po(2661,f.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:po(2662,f.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:po(2663,f.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:po(2664,f.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:po(2665,f.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:po(2666,f.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:po(2667,f.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:po(2668,f.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:po(2669,f.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:po(2670,f.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:po(2671,f.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:po(2672,f.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:po(2673,f.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:po(2674,f.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:po(2675,f.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:po(2676,f.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:po(2677,f.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:po(2678,f.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:po(2679,f.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:po(2680,f.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:po(2681,f.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:po(2682,f.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:po(2683,f.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:po(2684,f.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:po(2685,f.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:po(2686,f.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:po(2687,f.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:po(2688,f.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:po(2689,f.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:po(2691,f.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:po(2692,f.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:po(2693,f.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:po(2694,f.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:po(2695,f.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:po(2696,f.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:po(2697,f.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:po(2698,f.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:po(2699,f.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:po(2700,f.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:po(2701,f.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:po(2702,f.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:po(2703,f.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:po(2704,f.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:po(2705,f.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:po(2706,f.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:po(2707,f.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:po(2708,f.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:po(2709,f.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:po(2710,f.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:po(2711,f.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:po(2712,f.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:po(2713,f.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:po(2714,f.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:po(2715,f.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:po(2716,f.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:po(2717,f.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:po(2718,f.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:po(2719,f.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:po(2720,f.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:po(2721,f.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:po(2722,f.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:po(2723,f.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:po(2724,f.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:po(2725,f.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:po(2726,f.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:po(2727,f.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:po(2728,f.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:po(2729,f.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:po(2730,f.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:po(2731,f.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:po(2732,f.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension"),Property_0_was_also_declared_here:po(2733,f.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),It_is_highly_likely_that_you_are_missing_a_semicolon:po(2734,f.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:po(2735,f.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:po(2736,f.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ESNext:po(2737,f.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:po(2738,f.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:po(2739,f.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:po(2740,f.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:po(2741,f.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:po(2742,f.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:po(2743,f.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:po(2744,f.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:po(2745,f.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:po(2746,f.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:po(2747,f.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:po(2748,f.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here:po(2749,f.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here:po(2750,f.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:po(2751,f.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:po(2752,f.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:po(2753,f.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:po(2754,f.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),Import_declaration_0_is_using_private_name_1:po(4e3,f.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:po(4002,f.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:po(4004,f.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:po(4006,f.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:po(4008,f.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:po(4010,f.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:po(4012,f.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:po(4014,f.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:po(4016,f.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:po(4019,f.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:po(4020,f.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:po(4022,f.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4023,f.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:po(4024,f.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:po(4025,f.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4026,f.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:po(4027,f.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:po(4028,f.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4029,f.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:po(4030,f.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:po(4031,f.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:po(4032,f.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:po(4033,f.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:po(4034,f.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:po(4035,f.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:po(4036,f.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:po(4037,f.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4038,f.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:po(4039,f.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:po(4040,f.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4041,f.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:po(4042,f.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:po(4043,f.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:po(4044,f.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:po(4045,f.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:po(4046,f.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:po(4047,f.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:po(4048,f.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:po(4049,f.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:po(4050,f.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:po(4051,f.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:po(4052,f.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:po(4053,f.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:po(4054,f.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:po(4055,f.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:po(4056,f.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:po(4057,f.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:po(4058,f.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:po(4059,f.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:po(4060,f.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4061,f.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:po(4062,f.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:po(4063,f.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:po(4064,f.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:po(4065,f.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:po(4066,f.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:po(4067,f.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4068,f.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:po(4069,f.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:po(4070,f.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4071,f.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:po(4072,f.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:po(4073,f.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:po(4074,f.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:po(4075,f.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4076,f.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:po(4077,f.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:po(4078,f.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:po(4081,f.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:po(4082,f.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:po(4083,f.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:po(4090,f.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:po(4091,f.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:po(4092,f.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:po(4094,f.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4095,f.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:po(4096,f.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:po(4097,f.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:po(4098,f.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:po(4099,f.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:po(4100,f.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:po(4101,f.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:po(4102,f.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:po(4103,f.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:po(4104,f.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),The_current_host_does_not_support_the_0_option:po(5001,f.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:po(5009,f.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:po(5010,f.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:po(5012,f.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:po(5014,f.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:po(5023,f.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:po(5024,f.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:po(5033,f.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:po(5042,f.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:po(5047,f.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:po(5051,f.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:po(5052,f.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:po(5053,f.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:po(5054,f.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:po(5055,f.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:po(5056,f.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:po(5057,f.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:po(5058,f.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:po(5059,f.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:po(5060,f.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:po(5061,f.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:po(5062,f.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:po(5063,f.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:po(5064,f.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:po(5065,f.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:po(5066,f.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:po(5067,f.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:po(5068,f.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:po(5069,f.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:po(5070,f.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:po(5071,f.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:po(5072,f.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:po(5073,f.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:po(5074,f.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option `--tsBuildInfoFile` is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:po(5075,f.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:po(6e3,f.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:po(6001,f.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:po(6002,f.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:po(6003,f.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:po(6004,f.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:po(6005,f.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:po(6006,f.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:po(6007,f.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:po(6008,f.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:po(6009,f.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:po(6010,f.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:po(6011,f.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:po(6012,f.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:po(6013,f.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:po(6014,f.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT:po(6015,f.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:po(6016,f.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:po(6017,f.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:po(6019,f.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:po(6020,f.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:po(6023,f.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:po(6024,f.DiagnosticCategory.Message,"options_6024","options"),file:po(6025,f.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:po(6026,f.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:po(6027,f.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:po(6029,f.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:po(6030,f.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:po(6031,f.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:po(6032,f.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:po(6034,f.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:po(6035,f.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:po(6036,f.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:po(6037,f.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:po(6038,f.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:po(6039,f.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:po(6040,f.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:po(6043,f.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:po(6044,f.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:po(6045,f.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:po(6046,f.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:po(6048,f.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:po(6049,f.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:po(6050,f.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:po(6051,f.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:po(6052,f.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:po(6053,f.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:po(6054,f.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:po(6055,f.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:po(6056,f.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:po(6058,f.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:po(6059,f.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:po(6060,f.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:po(6061,f.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:po(6064,f.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:po(6065,f.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:po(6066,f.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:po(6068,f.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:po(6069,f.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:po(6070,f.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:po(6071,f.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:po(6072,f.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:po(6073,f.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:po(6074,f.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:po(6075,f.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:po(6076,f.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:po(6077,f.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:po(6078,f.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:po(6079,f.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:po(6080,f.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:po(6081,f.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:po(6082,f.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:po(6083,f.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:po(6084,f.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:po(6085,f.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:po(6086,f.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:po(6087,f.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:po(6088,f.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:po(6089,f.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:po(6090,f.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:po(6091,f.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:po(6092,f.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:po(6093,f.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:po(6094,f.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:po(6095,f.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:po(6096,f.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:po(6097,f.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:po(6098,f.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:po(6099,f.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:po(6100,f.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:po(6101,f.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:po(6102,f.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:po(6103,f.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:po(6104,f.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:po(6105,f.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:po(6106,f.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:po(6107,f.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:po(6108,f.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:po(6109,f.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:po(6110,f.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:po(6111,f.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:po(6112,f.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:po(6113,f.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:po(6114,f.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:po(6115,f.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:po(6116,f.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:po(6117,f.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:po(6118,f.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:po(6119,f.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:po(6120,f.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:po(6121,f.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:po(6122,f.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:po(6123,f.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:po(6124,f.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:po(6125,f.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:po(6126,f.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:po(6127,f.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:po(6128,f.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:po(6130,f.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:po(6131,f.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:po(6132,f.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:po(6133,f.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:po(6134,f.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:po(6135,f.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:po(6136,f.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:po(6137,f.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:po(6138,f.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:po(6139,f.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:po(6140,f.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:po(6141,f.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:po(6142,f.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:po(6144,f.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:po(6145,f.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:po(6146,f.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:po(6147,f.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:po(6148,f.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:po(6149,f.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:po(6150,f.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:po(6151,f.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:po(6152,f.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:po(6153,f.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:po(6154,f.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:po(6155,f.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:po(6156,f.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:po(6157,f.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:po(6158,f.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:po(6159,f.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:po(6160,f.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:po(6161,f.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:po(6162,f.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:po(6163,f.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:po(6164,f.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:po(6165,f.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:po(6166,f.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:po(6167,f.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:po(6168,f.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:po(6169,f.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:po(6170,f.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:po(6171,f.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:po(6172,f.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:po(6173,f.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:po(6174,f.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:po(6175,f.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:po(6176,f.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:po(6177,f.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:po(6178,f.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:po(6179,f.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:po(6180,f.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:po(6181,f.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:po(6182,f.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:po(6183,f.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:po(6184,f.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:po(6185,f.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:po(6186,f.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:po(6187,f.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:po(6188,f.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:po(6189,f.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:po(6191,f.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:po(6192,f.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:po(6193,f.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:po(6194,f.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:po(6195,f.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:po(6196,f.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:po(6197,f.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:po(6198,f.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:po(6199,f.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:po(6200,f.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:po(6201,f.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),_0_was_also_declared_here:po(6203,f.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:po(6204,f.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:po(6205,f.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:po(6206,f.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:po(6207,f.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:po(6208,f.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:po(6209,f.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:po(6210,f.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:po(6211,f.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:po(6212,f.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:po(6213,f.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:po(6214,f.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:po(6215,f.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:po(6216,f.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:po(6217,f.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:po(6218,f.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:po(6219,f.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:po(6220,f.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Projects_to_reference:po(6300,f.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:po(6302,f.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:po(6202,f.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),Composite_projects_may_not_disable_declaration_emit:po(6304,f.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:po(6305,f.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:po(6306,f.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern:po(6307,f.DiagnosticCategory.Error,"File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern_6307","File '{0}' is not in project file list. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:po(6308,f.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:po(6309,f.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:po(6350,f.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:po(6351,f.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:po(6352,f.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:po(6353,f.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:po(6354,f.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:po(6355,f.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:po(6356,f.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:po(6357,f.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:po(6358,f.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:po(6359,f.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:po(6360,f.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:po(6361,f.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:po(6362,f.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:po(6363,f.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:po(6364,f.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:po(6365,f.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:po(6366,f.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:po(6367,f.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:po(6368,f.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:po(6369,f.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:po(6370,f.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:po(6371,f.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:po(6372,f.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:po(6373,f.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:po(6374,f.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:po(6375,f.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:po(6376,f.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:po(6377,f.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:po(6378,f.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:po(6379,f.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:po(6380,f.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:po(6381,f.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:po(6500,f.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:po(6501,f.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:po(6502,f.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Variable_0_implicitly_has_an_1_type:po(7005,f.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:po(7006,f.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:po(7008,f.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:po(7009,f.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:po(7010,f.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:po(7011,f.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:po(7013,f.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:po(7014,f.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:po(7015,f.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:po(7016,f.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:po(7017,f.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:po(7018,f.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:po(7019,f.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:po(7020,f.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:po(7022,f.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:po(7023,f.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:po(7024,f.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:po(7025,f.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:po(7026,f.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:po(7027,f.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:po(7028,f.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:po(7029,f.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:po(7030,f.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:po(7031,f.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:po(7032,f.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:po(7033,f.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:po(7034,f.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:po(7035,f.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:po(7036,f.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:po(7037,f.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:po(7038,f.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:po(7039,f.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:po(7040,f.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}`"),The_containing_arrow_function_captures_the_global_value_of_this:po(7041,f.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:po(7042,f.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:po(7043,f.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:po(7044,f.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:po(7045,f.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:po(7046,f.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:po(7047,f.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:po(7048,f.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:po(7049,f.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:po(7050,f.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:po(7051,f.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:po(7052,f.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}' ?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:po(7053,f.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:po(7054,f.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),You_cannot_rename_this_element:po(8e3,f.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:po(8001,f.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:po(8002,f.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:po(8003,f.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:po(8004,f.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:po(8005,f.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:po(8006,f.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:po(8007,f.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:po(8008,f.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:po(8009,f.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:po(8010,f.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:po(8011,f.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:po(8012,f.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:po(8013,f.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:po(8015,f.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:po(8016,f.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:po(8017,f.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:po(8018,f.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:po(8019,f.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:po(8020,f.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:po(8021,f.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:po(8022,f.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:po(8023,f.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:po(8024,f.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:po(8025,f.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:po(8026,f.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:po(8027,f.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:po(8028,f.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:po(8029,f.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:po(8030,f.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:po(8031,f.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:po(8032,f.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:po(9002,f.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:po(9003,f.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:po(9004,f.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:po(17e3,f.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:po(17001,f.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:po(17002,f.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:po(17003,f.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:po(17004,f.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:po(17005,f.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:po(17006,f.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:po(17007,f.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:po(17008,f.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:po(17009,f.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:po(17010,f.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:po(17011,f.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:po(17012,f.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:po(17013,f.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:po(17014,f.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:po(17015,f.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:po(17016,f.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:po(17017,f.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:po(18e3,f.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:po(18001,f.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:po(18002,f.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:po(18003,f.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:po(80001,f.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:po(80002,f.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:po(80003,f.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:po(80004,f.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:po(80005,f.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:po(80006,f.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),Add_missing_super_call:po(90001,f.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:po(90002,f.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:po(90003,f.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:po(90004,f.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:po(90005,f.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:po(90006,f.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:po(90007,f.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:po(90008,f.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:po(90009,f.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:po(90010,f.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:po(90011,f.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:po(90012,f.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:po(90013,f.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:po(90014,f.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:po(90015,f.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:po(90016,f.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:po(90017,f.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:po(90018,f.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:po(90019,f.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:po(90020,f.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:po(90021,f.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:po(90022,f.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:po(90023,f.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:po(90024,f.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:po(90025,f.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:po(90026,f.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:po(90027,f.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:po(90028,f.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:po(90029,f.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:po(90030,f.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:po(90031,f.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:po(90032,f.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:po(90033,f.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:po(90034,f.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Convert_function_to_an_ES2015_class:po(95001,f.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:po(95002,f.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:po(95004,f.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:po(95005,f.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:po(95006,f.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:po(95007,f.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:po(95008,f.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:po(95009,f.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:po(95010,f.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:po(95011,f.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:po(95012,f.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:po(95013,f.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:po(95014,f.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:po(95015,f.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:po(95016,f.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:po(95017,f.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:po(95018,f.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:po(95019,f.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:po(95020,f.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:po(95022,f.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:po(95023,f.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:po(95024,f.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:po(95025,f.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:po(95026,f.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:po(95027,f.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:po(95028,f.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:po(95029,f.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:po(95030,f.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:po(95031,f.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:po(95032,f.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:po(95033,f.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:po(95034,f.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:po(95035,f.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:po(95036,f.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:po(95037,f.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:po(95038,f.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:po(95039,f.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:po(95040,f.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:po(95041,f.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:po(95042,f.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:po(95043,f.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:po(95044,f.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:po(95045,f.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:po(95046,f.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:po(95047,f.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:po(95048,f.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:po(95049,f.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:po(95050,f.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:po(95051,f.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:po(95052,f.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:po(95053,f.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:po(95054,f.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:po(95055,f.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:po(95056,f.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:po(95057,f.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:po(95058,f.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:po(95059,f.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:po(95060,f.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:po(95061,f.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:po(95062,f.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:po(95063,f.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:po(95064,f.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:po(95065,f.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:po(95066,f.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_unknown_conversion_for_non_overlapping_types:po(95069,f.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:po(95070,f.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:po(95071,f.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:po(95072,f.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:po(95073,f.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:po(95074,f.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:po(95075,f.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:po(95076,f.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:po(95077,f.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:po(95078,f.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:po(95079,f.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:po(18004,f.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Quoted_constructors_have_previously_been_interpreted_as_methods_which_is_incorrect_In_TypeScript_3_6_they_will_be_correctly_parsed_as_constructors_In_the_meantime_consider_using_constructor_to_write_a_constructor_or_constructor_to_write_a_method:po(18005,f.DiagnosticCategory.Error,"Quoted_constructors_have_previously_been_interpreted_as_methods_which_is_incorrect_In_TypeScript_3_6_18005","Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '[\"constructor\"]()' to write a method."),Classes_may_not_have_a_field_named_constructor:po(18006,f.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'.")},function(F){var e;function t(e){return 73<=e}F.tokenIsIdentifierOrKeyword=t,F.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 30===e||73<=e};var n=((e={"abstract":119,any:121,as:120,bigint:147,"boolean":124,"break":74,"case":75,"catch":76,"class":77,"continue":79,"const":78}).constructor=125,e["debugger"]=80,e.declare=126,e["default"]=81,e["delete"]=82,e["do"]=83,e["else"]=84,e["enum"]=85,e["export"]=86,e["extends"]=87,e["false"]=88,e["finally"]=89,e["for"]=90,e.from=145,e["function"]=91,e.get=127,e["if"]=92,e["implements"]=110,e["import"]=93,e["in"]=94,e.infer=128,e["instanceof"]=95,e["interface"]=111,e.is=129,e.keyof=130,e["let"]=112,e.module=131,e.namespace=132,e.never=133,e["new"]=96,e["null"]=97,e.number=136,e.object=137,e["package"]=113,e["private"]=114,e["protected"]=115,e["public"]=116,e.readonly=134,e.require=135,e.global=146,e["return"]=98,e.set=138,e["static"]=117,e.string=139,e["super"]=99,e["switch"]=100,e.symbol=140,e["this"]=101,e["throw"]=102,e["true"]=103,e["try"]=104,e.type=141,e["typeof"]=105,e.undefined=142,e.unique=143,e.unknown=144,e["var"]=106,e["void"]=107,e["while"]=108,e["with"]=109,e["yield"]=118,e.async=122,e.await=123,e.of=148,e),O=F.createMapFromTemplate(n),r=F.createMapFromTemplate(Qb({},n,{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":28,">":30,"<=":31,">=":32,"==":33,"!=":34,"===":35,"!==":36,"=>":37,"+":38,"-":39,"**":41,"*":40,"/":42,"%":43,"++":44,"--":45,"<<":46,"</":29,">>":47,">>>":48,"&":49,"|":50,"^":51,"!":52,"~":53,"&&":54,"||":55,"?":56,":":57,"=":60,"+=":61,"-=":62,"*=":63,"**=":64,"/=":65,"%=":66,"<<=":67,">>=":68,">>>=":69,"&=":70,"|=":71,"^=":72,"@":58})),i=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],a=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],o=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];function c(e,t){if(e<t[0])return!1;for(var n,r=0,i=t.length;r+1<i;){if(n=r+(i-r)/2,t[n-=n%2]<=e&&e<=t[1+n])return!0;e<t[n]?i=n:r=2+n}return!1}function u(e,t){return c(e,1<=t?o:i)}F.isUnicodeIdentifierStart=u;var l,d=(l=[],r.forEach(function(e,t){l[e]=t}),l);function p(e){for(var t=new Array,n=0,r=0;n<e.length;){var i=e.charCodeAt(n);switch(n++,i){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:127<i&&j(i)&&(t.push(r),r=n)}}return t.push(r),t}function f(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:F.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+e.length+" , line map is correct? "+(r!==undefined?F.arraysEqual(e,p(r)):"unknown")));var a=e[t]+n;return i?a>e[t+1]?e[t+1]:"string"==typeof r&&a>r.length?r.length:a:(t<e.length-1?F.Debug.assert(a<e[t+1]):r!==undefined&&F.Debug.assert(a<=r.length),a)}function _(e){return e.lineMap||(e.lineMap=p(e.text))}function h(e,t){var n=F.binarySearch(e,t,F.identity,F.compareValues);return n<0&&(n=~n-1,F.Debug.assert(-1!==n,"position cannot precede the beginning of the file")),{line:n,character:t-e[n]}}function R(e){return H(e)||j(e)}function H(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function j(e){return 10===e||13===e||8232===e||8233===e}function W(e){return 48<=e&&e<=57}function G(e){return 48<=e&&e<=55}F.tokenToString=function(e){return d[e]},F.stringToToken=function(e){return r.get(e)},F.computeLineStarts=p,F.getPositionOfLineAndCharacter=function(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):f(_(e),t,n,e.text,r)},F.computePositionOfLineAndCharacter=f,F.getLineStarts=_,F.computeLineAndCharacterOfPosition=h,F.getLineAndCharacterOfPosition=function(e,t){return h(_(e),t)},F.isWhiteSpaceLike=R,F.isWhiteSpaceSingleLine=H,F.isLineBreak=j,F.isOctalDigit=G,F.couldStartTrivia=function(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return 127<n}},F.skipTrivia=function(e,t,n,r){if(void 0===r&&(r=!1),F.positionIsSynthesized(t))return t;for(;;){var i=e.charCodeAt(t);switch(i){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!j(e.charCodeAt(t));)t++;continue}if(42!==e.charCodeAt(t+1))break;for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}continue;case 60:case 124:case 61:case 62:if(Y(e,t)){t=J(e,t);continue}break;case 35:if(0===t&&z(e,t)){t=U(e,t);continue}break;default:if(127<i&&R(i)){t++;continue}}return t}};var g="<<<<<<<".length;function Y(e,t){if(F.Debug.assert(0<=t),0===t||j(e.charCodeAt(t-1))){var n=e.charCodeAt(t);if(t+g<e.length){for(var r=0;r<g;r++)if(e.charCodeAt(t+r)!==n)return;return 61===n||32===e.charCodeAt(t+g)}}}function J(e,t,n){n&&n(F.Diagnostics.Merge_conflict_marker_encountered,t,g);var r=e.charCodeAt(t),i=e.length;if(60===r||62===r)for(;t<i&&!j(e.charCodeAt(t));)t++;else for(F.Debug.assert(124===r||61===r);t<i;){var a=e.charCodeAt(t);if((61===a||62===a)&&a!==r&&Y(e,t))break;t++}return t}var m=/^#!.*/;function z(e,t){return F.Debug.assert(0===t),m.test(e)}function U(e,t){return t+=m.exec(e)[0].length}function y(e,t,n,r,i,a,o){var s,c,u,l,d,p=!1,f=r,_=o;0===n&&(f=!0,(d=I(t))&&(n=d.length));e:for(;0<=n&&n<t.length;){var h=t.charCodeAt(n);switch(h){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;f=!0,p&&(l=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:var g=t.charCodeAt(n+1),m=!1;if(47!==g&&42!==g)break e;var y=47===g?2:3,b=n;if(n+=2,47===g)for(;n<t.length;){if(j(t.charCodeAt(n))){m=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(f){if(p&&(_=i(s,c,u,l,a,_),!e&&_))return _;s=b,c=n,u=y,l=m,p=!0}continue;default:if(127<h&&R(h)){p&&j(h)&&(l=!0),n++;continue}break e}}return p&&(_=i(s,c,u,l,a,_)),_}function b(e,t,n,r,i){return y(!0,e,t,!1,n,r,i)}function v(e,t,n,r,i){return y(!0,e,t,!0,n,r,i)}function E(e,t,n,r,i,a){return(a=a||[]).push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function I(e){var t=m.exec(e);if(t)return t[0]}function K(e,t){return 65<=e&&e<=90||97<=e&&e<=122||36===e||95===e||127<e&&u(e,t)}function Z(e,t){return 65<=e&&e<=90||97<=e&&e<=122||48<=e&&e<=57||36===e||95===e||127<e&&c(e,1<=t?s:a)}F.isShebangTrivia=z,F.scanShebangTrivia=U,F.forEachLeadingCommentRange=function(e,t,n,r){return y(!1,e,t,!1,n,r)},F.forEachTrailingCommentRange=function(e,t,n,r){return y(!1,e,t,!0,n,r)},F.reduceEachLeadingCommentRange=b,F.reduceEachTrailingCommentRange=v,F.getLeadingCommentRanges=function(e,t){return b(e,t,E,undefined,undefined)},F.getTrailingCommentRanges=function(e,t){return v(e,t,E,undefined,undefined)},F.getShebang=I,F.isIdentifierStart=K,F.isIdentifierPart=Z,F.isIdentifierText=function(e,t){if(!K(e.charCodeAt(0),t))return!1;for(var n=1;n<e.length;n++)if(!Z(e.charCodeAt(n),t))return!1;return!0},F.createScanner=function(o,s,c,e,i,t,n){void 0===c&&(c=0);var d,p,f,_,h,g,m,y=e,u=0;return L(y,t,n),{getStartPos:function(){return f},getTextPos:function(){return d},getToken:function(){return h},getTokenPos:function(){return _},getTokenText:function(){return y.substring(_,d)},getTokenValue:function(){return g},hasExtendedUnicodeEscape:function(){return 0!=(8&m)},hasPrecedingLineBreak:function(){return 0!=(1&m)},isIdentifier:function(){return 73===h||109<h},isReservedWord:function(){return 74<=h&&h<=109},isUnterminated:function(){return 0!=(4&m)},getTokenFlags:function(){return m},reScanGreaterToken:function(){if(30===h){if(62===y.charCodeAt(d))return h=62===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,69):(d+=2,48):61===y.charCodeAt(d+1)?(d+=2,68):(d++,47);if(61===y.charCodeAt(d))return d++,h=32}return h},reScanSlashToken:function(){if(42===h||65===h){for(var e=_+1,t=!1,n=!1;;){if(p<=e){m|=4,l(F.Diagnostics.Unterminated_regular_expression_literal);break}var r=y.charCodeAt(e);if(j(r)){m|=4,l(F.Diagnostics.Unterminated_regular_expression_literal);break}if(t)t=!1;else{if(47===r&&!n){e++;break}91===r?n=!0:92===r?t=!0:93===r&&(n=!1)}e++}for(;e<p&&Z(y.charCodeAt(e),o);)e++;d=e,g=y.substring(_,d),h=13}return h},reScanTemplateToken:function(){return F.Debug.assert(19===h,"'reScanTemplateToken' should only be called on a '}'"),d=_,h=C()},scanJsxIdentifier:function(){if(73<=h){for(var e=d;d<p;){var t=y.charCodeAt(d);if(45!==t&&!(e===d?K:Z)(t,o))break;d++}g+=y.substring(e,d)}return h},scanJsxAttributeValue:function(){switch(f=d,y.charCodeAt(d)){case 34:case 39:return g=T(!0),h=10;default:return w()}},reScanJsxToken:function(){return d=_=f,h=V()},reScanLessThanToken:function(){return 46!==h?h:(d=_+1,h=28)},scanJsxToken:V,scanJsDocToken:function(){if(f=_=d,m=0,p<=d)return h=1;var e=y.charCodeAt(d);switch(d++,e){case 9:case 11:case 12:case 32:for(;d<p&&H(y.charCodeAt(d));)d++;return h=5;case 64:return h=58;case 10:case 13:return m|=1,h=4;case 42:return h=40;case 123:return h=18;case 125:return h=19;case 91:return h=22;case 93:return h=23;case 60:return h=28;case 61:return h=60;case 44:return h=27;case 46:return h=24;case 96:return h=59}{if(K(e,8)){for(;Z(y.charCodeAt(d),8)&&d<p;)d++;return g=y.substring(_,d),h=D()}return h=0}},scan:w,getText:function(){return y},setText:L,setScriptTarget:function(e){o=e},setLanguageVariant:function(e){c=e},setOnError:function(e){i=e},setTextPos:M,setInJSDocType:function(e){u+=e?1:-1},tryScan:function(e){return P(e,!1)},lookAhead:function(e){return P(e,!0)},scanRange:function(e,t,n){var r=p,i=d,a=f,o=_,s=h,c=g,u=m;L(y,e,t);var l=n();return p=r,d=i,f=a,_=o,h=s,g=c,m=u,l}};function l(e,t,n){var r;void 0===t&&(t=d),i&&(r=d,d=t,i(e,n||0),d=r)}function b(){for(var e=d,t=!1,n=!1,r="";;){var i=y.charCodeAt(d);if(95!==i){if(!W(i))break;n=!(t=!0),d++}else m|=512,t?(n=!(t=!1),r+=y.substring(e,d)):l(n?F.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:F.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),e=++d}return 95===y.charCodeAt(d-1)&&l(F.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),r+y.substring(e,d)}function v(){var e,t,n=d,r=b();46===y.charCodeAt(d)&&(d++,e=b());var i,a,o,s=d;if(69!==y.charCodeAt(d)&&101!==y.charCodeAt(d)||(d++,m|=16,43!==y.charCodeAt(d)&&45!==y.charCodeAt(d)||d++,i=d,(a=b())?(t=y.substring(s,i)+a,s=d):l(F.Diagnostics.Digit_expected)),512&m?(o=r,e&&(o+="."+e),t&&(o+=t)):o=y.substring(n,s),e!==undefined||16&m)return E(n,e===undefined&&!!(16&m)),{type:8,value:""+ +o};g=o;var c=A();return E(n),{type:c,value:g}}function E(e,t){var n,r;K(y.charCodeAt(d),o)&&(n=d,1===(r=N().length)&&"n"===y[n]?l(t?F.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:F.Diagnostics.A_bigint_literal_must_be_an_integer,e,n-e+1):(l(F.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,n,r),d=n))}function r(e,t){var n=a(e,!1,t);return n?parseInt(n,16):-1}function I(e,t){return a(e,!0,t)}function a(e,t,n){for(var r=[],i=!1,a=!1;r.length<e||t;){var o=y.charCodeAt(d);if(n&&95===o)m|=512,i?a=!(i=!1):l(a?F.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:F.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++;else{if(i=n,65<=o&&o<=70)o+=32;else if(!(48<=o&&o<=57||97<=o&&o<=102))break;r.push(o),d++,a=!1}}return r.length<e&&(r=[]),95===y.charCodeAt(d-1)&&l(F.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode.apply(String,r)}function T(e){void 0===e&&(e=!1);for(var t=y.charCodeAt(d),n="",r=++d;;){if(p<=d){n+=y.substring(r,d),m|=4,l(F.Diagnostics.Unterminated_string_literal);break}var i=y.charCodeAt(d);if(i===t){n+=y.substring(r,d),d++;break}if(92!==i||e){if(j(i)&&!e){n+=y.substring(r,d),m|=4,l(F.Diagnostics.Unterminated_string_literal);break}d++}else n+=y.substring(r,d),n+=B(),r=d}return n}function C(){for(var e,t=96===y.charCodeAt(d),n=++d,r="";;){if(p<=d){r+=y.substring(n,d),m|=4,l(F.Diagnostics.Unterminated_template_literal),e=t?14:17;break}var i=y.charCodeAt(d);if(96===i){r+=y.substring(n,d),d++,e=t?14:17;break}if(36===i&&d+1<p&&123===y.charCodeAt(d+1)){r+=y.substring(n,d),d+=2,e=t?15:16;break}92!==i?13!==i?d++:(r+=y.substring(n,d),++d<p&&10===y.charCodeAt(d)&&d++,r+="\n",n=d):(r+=y.substring(n,d),r+=B(),n=d)}return F.Debug.assert(e!==undefined),g=r,e}function B(){if(p<=++d)return l(F.Diagnostics.Unexpected_end_of_text),"";var e=y.charCodeAt(d);switch(d++,e){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\x0B";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return d<p&&123===y.charCodeAt(d)?(m|=8,d++,function(){var e=I(1,!1),t=e?parseInt(e,16):-1,n=!1;t<0?(l(F.Diagnostics.Hexadecimal_digit_expected),n=!0):1114111<t&&(l(F.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0);p<=d?(l(F.Diagnostics.Unexpected_end_of_text),n=!0):125===y.charCodeAt(d)?d++:(l(F.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0);if(n)return"";return function(e){if(F.Debug.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}(t)}()):x(4);case 120:return x(2);case 13:d<p&&10===y.charCodeAt(d)&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(e)}}function x(e){var t=r(e,!1);return 0<=t?String.fromCharCode(t):(l(F.Diagnostics.Hexadecimal_digit_expected),"")}function S(){if(d+5<p&&117===y.charCodeAt(d+1)){var e=d;d+=2;var t=r(4,!1);return d=e,t}return-1}function N(){for(var e="",t=d;d<p;){var n=y.charCodeAt(d);if(Z(n,o))d++;else{if(92!==n)break;if(!(0<=(n=S())&&Z(n,o)))break;e+=y.substring(t,d),e+=String.fromCharCode(n),t=d+=6}}return e+=y.substring(t,d)}function D(){var e=g.length;if(2<=e&&e<=11){var t=g.charCodeAt(0);if(97<=t&&t<=122){var n=O.get(g);if(n!==undefined)return h=n}}return h=73}function k(e){for(var t="",n=!1,r=!1;;){var i=y.charCodeAt(d);if(95!==i){if(n=!0,!W(i)||e<=i-48)break;t+=y[d],d++,r=!1}else m|=512,n?r=!(n=!1):l(r?F.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:F.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++}return 95===y.charCodeAt(d-1)&&l(F.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),t}function A(){return 110===y.charCodeAt(d)?(g+="n",384&m&&(g=F.parsePseudoBigInt(g)+"n"),d++,9):(g=""+(128&m?parseInt(g.slice(2),2):256&m?parseInt(g.slice(2),8):+g),8)}function w(){var e;f=d,m=0;for(var t=!1;;){if(p<=(_=d))return h=1;var n=y.charCodeAt(d);if(35===n&&0===d&&z(y,d)){if(d=U(y,d),s)continue;return h=6}switch(n){case 10:case 13:if(m|=1,s){d++;continue}return 13===n&&d+1<p&&10===y.charCodeAt(d+1)?d+=2:d++,h=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(s){d++;continue}for(;d<p&&H(y.charCodeAt(d));)d++;return h=5;case 33:return 61===y.charCodeAt(d+1)?h=61===y.charCodeAt(d+2)?(d+=3,36):(d+=2,34):(d++,h=52);case 34:case 39:return g=T(),h=10;case 96:return h=C();case 37:return 61===y.charCodeAt(d+1)?(d+=2,h=66):(d++,h=43);case 38:return 38===y.charCodeAt(d+1)?(d+=2,h=54):h=61===y.charCodeAt(d+1)?(d+=2,70):(d++,49);case 40:return d++,h=20;case 41:return d++,h=21;case 42:if(61===y.charCodeAt(d+1))return d+=2,h=63;if(42===y.charCodeAt(d+1))return h=61===y.charCodeAt(d+2)?(d+=3,64):(d+=2,41);if(d++,u&&!t&&1&m){t=!0;continue}return h=40;case 43:return 43===y.charCodeAt(d+1)?(d+=2,h=44):h=61===y.charCodeAt(d+1)?(d+=2,61):(d++,38);case 44:return d++,h=27;case 45:return 45===y.charCodeAt(d+1)?(d+=2,h=45):h=61===y.charCodeAt(d+1)?(d+=2,62):(d++,39);case 46:return W(y.charCodeAt(d+1))?(g=v().value,h=8):h=46===y.charCodeAt(d+1)&&46===y.charCodeAt(d+2)?(d+=3,25):(d++,24);case 47:if(47===y.charCodeAt(d+1)){for(d+=2;d<p&&!j(y.charCodeAt(d));)d++;if(s)continue;return h=2}if(42!==y.charCodeAt(d+1))return h=61===y.charCodeAt(d+1)?(d+=2,65):(d++,42);d+=2,42===y.charCodeAt(d)&&47!==y.charCodeAt(d+1)&&(m|=2);for(var r=!1;d<p;){var i=y.charCodeAt(d);if(42===i&&47===y.charCodeAt(d+1)){d+=2,r=!0;break}j(i)&&(m|=1),d++}if(r||l(F.Diagnostics.Asterisk_Slash_expected),s)continue;return r||(m|=4),h=3;case 48:if(d+2<p&&(88===y.charCodeAt(d+1)||120===y.charCodeAt(d+1)))return d+=2,(g=I(1,!0))||(l(F.Diagnostics.Hexadecimal_digit_expected),g="0"),g="0x"+g,m|=64,h=A();if(d+2<p&&(66===y.charCodeAt(d+1)||98===y.charCodeAt(d+1)))return d+=2,(g=k(2))||(l(F.Diagnostics.Binary_digit_expected),g="0"),g="0b"+g,m|=128,h=A();if(d+2<p&&(79===y.charCodeAt(d+1)||111===y.charCodeAt(d+1)))return d+=2,(g=k(8))||(l(F.Diagnostics.Octal_digit_expected),g="0"),g="0o"+g,m|=256,h=A();if(d+1<p&&G(y.charCodeAt(d+1)))return g=""+function(){for(var e=d;G(y.charCodeAt(d));)d++;return+y.substring(e,d)}(),m|=32,h=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e=v(),h=e.type,g=e.value,h;case 58:return d++,h=57;case 59:return d++,h=26;case 60:if(Y(y,d)){if(d=J(y,d,l),s)continue;return h=7}return 60===y.charCodeAt(d+1)?h=61===y.charCodeAt(d+2)?(d+=3,67):(d+=2,46):h=61===y.charCodeAt(d+1)?(d+=2,31):1===c&&47===y.charCodeAt(d+1)&&42!==y.charCodeAt(d+2)?(d+=2,29):(d++,28);case 61:if(Y(y,d)){if(d=J(y,d,l),s)continue;return h=7}return 61===y.charCodeAt(d+1)?h=61===y.charCodeAt(d+2)?(d+=3,35):(d+=2,33):h=62===y.charCodeAt(d+1)?(d+=2,37):(d++,60);case 62:if(Y(y,d)){if(d=J(y,d,l),s)continue;return h=7}return d++,h=30;case 63:return d++,h=56;case 91:return d++,h=22;case 93:return d++,h=23;case 94:return 61===y.charCodeAt(d+1)?(d+=2,h=72):(d++,h=51);case 123:return d++,h=18;case 124:if(Y(y,d)){if(d=J(y,d,l),s)continue;return h=7}return 124===y.charCodeAt(d+1)?(d+=2,h=55):h=61===y.charCodeAt(d+1)?(d+=2,71):(d++,50);case 125:return d++,h=19;case 126:return d++,h=53;case 64:return d++,h=58;case 92:var a=S();return 0<=a&&K(a,o)?(d+=6,g=String.fromCharCode(a)+N(),h=D()):(l(F.Diagnostics.Invalid_character),d++,h=0);default:if(K(n,o)){for(d++;d<p&&Z(n=y.charCodeAt(d),o);)d++;return g=y.substring(_,d),92===n&&(g+=N()),h=D()}if(H(n)){d++;continue}if(j(n)){m|=1,d++;continue}return l(F.Diagnostics.Invalid_character),d++,h=0}}}function V(){if(f=_=d,p<=d)return h=1;var e=y.charCodeAt(d);if(60===e)return h=47===y.charCodeAt(d+1)?(d+=2,29):(d++,28);if(123===e)return d++,h=18;for(var t=0;d<p&&123!==(e=y.charCodeAt(d));){if(60===e){if(Y(y,d))return d=J(y,d,l),h=7;break}j(e)&&0===t?t=-1:R(e)||(t=d),d++}return g=y.substring(f,d),-1===t?12:11}function P(e,t){var n=d,r=f,i=_,a=h,o=g,s=m,c=e();return c&&!t||(d=n,f=r,_=i,h=a,g=o,m=s),c}function L(e,t,n){y=e||"",p=n===undefined?y.length:t+n,M(t||0)}function M(e){F.Debug.assert(0<=e),_=f=d=e,h=0,g=undefined,m=0}}}(rg=rg||{}),(_=rg=rg||{}).isExternalModuleNameRelative=function(e){return _.pathIsRelative(e)||_.isRootedDiskPath(e)},_.sortAndDeduplicateDiagnostics=function(e){return _.sortAndDeduplicate(e,_.compareDiagnostics)},function(T){T.resolvingEmptyArray=[],T.emptyMap=T.createMap(),T.emptyUnderscoreEscapedMap=T.emptyMap,T.externalHelpersModuleNameText="tslib",T.defaultMaximumTruncationLength=160,T.getDeclarationOfKind=function(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r<i.length;r++){var a=i[r];if(a.kind===t)return a}return undefined},T.createUnderscoreEscapedMap=function(){return new T.MapCtr},T.hasEntries=function(e){return!!e&&!!e.size},T.createSymbolTable=function(e){var t=T.createMap();if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];t.set(i.escapedName,i)}return t};var t,n,r=(t="",n=function n(e){return t+=e},{getText:function(){return t},write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:function(e,t){return n(e)},writeTrailingSemicolon:n,writeComment:n,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},writeLine:function(){return t+=" "},increaseIndent:T.noop,decreaseIndent:T.noop,clear:function(){return t=""},trackSymbol:T.noop,reportInaccessibleThisError:T.noop,reportInaccessibleUniqueSymbolError:T.noop,reportPrivateInBaseOfClassExpression:T.noop});function c(e,t,n){return n(T.isRootedDiskPath(e)?T.normalizePath(e):T.getNormalizedAbsolutePath(e,t))}function i(t,n){return T.moduleResolutionOptionDeclarations.some(function(e){return!T.isJsonEqual(T.getCompilerOptionValue(t,e),T.getCompilerOptionValue(n,e))})}function a(e,t){for(;e;){var n=t(e);if("quit"===n)return undefined;if(n)return e;e=e.parent}return undefined}function o(e,n){e.forEach(function(e,t){n.set(t,e)})}function s(e){return e.end-e.pos}function u(e){return function(e){{262144&e.flags||(0==(32768&e.flags)&&!T.forEachChild(e,u)||(e.flags|=131072),e.flags|=262144)}}(e),0!=(131072&e.flags)}function l(e){for(;e&&285!==e.kind;)e=e.parent;return e}function d(e,t){T.Debug.assert(0<=e);var n=T.getLineStarts(t),r=t.text;if(e+1===n.length)return r.length-1;var i=n[e],a=n[e+1]-1;for(T.Debug.assert(T.isLineBreak(r.charCodeAt(a)));i<=a&&T.isLineBreak(r.charCodeAt(a));)a--;return a}function p(e){return e===undefined||e.pos===e.end&&0<=e.pos&&1!==e.kind}function f(e){return!p(e)}function _(e,t,n){if(t===undefined||0===t.length)return e;for(var r=0;r<e.length&&n(e[r]);++r);return e.splice.apply(e,[r,0].concat(t)),e}function h(e,t,n){if(t===undefined)return e;for(var r=0;r<e.length&&n(e[r]);++r);return e.splice(r,0,t),e}function g(e){return W(e)||!!(1048576&C(e))}function m(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function y(e,t,n){return p(e)?e.pos:T.isJSDocNode(e)?T.skipTrivia((t||l(e)).text,e.pos,!1,!0):n&&T.hasJSDocNodes(e)?y(e.jsDoc[0]):312===e.kind&&0<e._children.length?y(e._children[0],t,n):T.skipTrivia((t||l(e)).text,e.pos)}function b(e,t,n){return void 0===n&&(n=!1),v(e.text,t,n)}function v(e,t,n){if(void 0===n&&(n=!1),p(t))return"";var r=e.substring(n?t.pos:T.skipTrivia(e,t.pos),t.end);return function i(e){return 289===e.kind||e.parent&&i(e.parent)}(t)&&(r=r.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),r}function E(e,t){return void 0===t&&(t=!1),b(l(e),e,t)}function I(e){return e.pos}function C(e){var t=e.emitNode;return t&&t.flags||0}function B(e){var t=qe(e);return 238===t.kind&&275===t.parent.kind}function x(e){return T.isModuleDeclaration(e)&&(10===e.name.kind||S(e))}function S(e){return!!(512&e.flags)}function N(e){return x(e)&&D(e)}function D(e){switch(e.parent.kind){case 285:return T.isExternalModule(e.parent);case 246:return x(e.parent.parent)&&T.isSourceFile(e.parent.parent.parent)&&!T.isExternalModule(e.parent.parent.parent)}return!1}function k(e,t){switch(e.kind){case 285:case 247:case 275:case 245:case 226:case 227:case 228:case 158:case 157:case 159:case 160:case 240:case 197:case 198:return!0;case 219:return!T.isFunctionLike(t)}return!1}function A(e){switch(e.kind){case 161:case 162:case 156:case 163:case 166:case 167:case 295:case 241:case 210:case 242:case 243:case 309:case 240:case 157:case 158:case 159:case 160:case 197:case 198:return!0;default:return T.assertType(e),!1}}function w(e){switch(e.kind){case 250:case 249:return!0;default:return!1}}function V(e){return e&&0!==s(e)?E(e):"(Missing)"}function P(e){switch(e.kind){case 73:return e.escapedText;case 10:case 8:case 14:return T.escapeLeadingUnderscores(e.text);case 150:return Ye(e.expression)?T.escapeLeadingUnderscores(e.expression.text):T.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return T.Debug.assertNever(e)}}function L(e,t,n,r,i,a,o){var s=F(e,t);return T.createFileDiagnostic(e,s.start,s.length,n,r,i,a,o)}function M(e,t){var n=T.createScanner(e.languageVersion,!0,e.languageVariant,e.text,undefined,t);n.scan();var r=n.getTokenPos();return T.createTextSpanFromBounds(r,n.getTextPos())}function F(e,t){var n=t;switch(t.kind){case 285:var r=T.skipTrivia(e.text,0,!1);return r===e.text.length?T.createTextSpan(0,0):M(e,r);case 238:case 187:case 241:case 210:case 242:case 245:case 244:case 279:case 240:case 197:case 157:case 159:case 160:case 243:case 155:case 154:n=t.name;break;case 198:return function(e,t){var n=T.skipTrivia(e.text,t.pos);if(t.body&&219===t.body.kind){var r=T.getLineAndCharacterOfPosition(e,t.body.pos).line;if(r<T.getLineAndCharacterOfPosition(e,t.body.end).line)return T.createTextSpan(n,d(r,e)-n+1)}return T.createTextSpanFromBounds(n,t.end)}(e,t)}if(n===undefined)return M(e,t.pos);var i=p(n),a=i||T.isJsxText(t)?n.pos:T.skipTrivia(e.text,n.pos);return i?(T.Debug.assert(a===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),T.Debug.assert(a===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(T.Debug.assert(a>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),T.Debug.assert(a<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),T.createTextSpanFromBounds(a,n.end)}function O(e){return 6===e.scriptKind}function R(e){return!!(2&T.getCombinedNodeFlags(e))}function H(e){return 192===e.kind&&93===e.expression.kind}function j(e){return T.isImportTypeNode(e)&&T.isLiteralTypeNode(e.argument)&&T.isStringLiteral(e.argument.literal)}function W(e){return 222===e.kind&&10===e.expression.kind}T.toPath=c,T.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||i(e,t)},T.optionsHaveModuleResolutionChanges=i,T.findAncestor=a,T.forEachAncestor=function(e,t){for(;;){var n=t(e);if("quit"===n)return undefined;if(n!==undefined)return n;if(T.isSourceFile(e))return undefined;e=e.parent}},T.forEachEntry=function(e,t){for(var n,r=e.entries(),i=r.next(),a=i.value,o=i.done;!o;a=(n=r.next()).value,o=n.done){var s=a[0],c=t(a[1],s);if(c)return c}return undefined},T.forEachKey=function(e,t){for(var n,r=e.keys(),i=r.next(),a=i.value,o=i.done;!o;a=(n=r.next()).value,o=n.done){var s=t(a);if(s)return s}return undefined},T.copyEntries=o,T.arrayToSet=function(e,t){return T.arrayToMap(e,t||function(e){return e},function(){return!0})},T.cloneMap=function(e){var t=T.createMap();return o(e,t),t},T.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},T.getFullWidth=s,T.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},T.setResolvedModule=function(e,t,n){e.resolvedModules||(e.resolvedModules=T.createMap()),e.resolvedModules.set(t,n)},T.setResolvedTypeReferenceDirective=function(e,t,n){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=T.createMap()),e.resolvedTypeReferenceDirectiveNames.set(t,n)},T.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},T.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(n=e.packageId,r=t.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version);var n,r},T.packageIdToString=function(e){var t=e.name,n=e.subModuleName;return(n?t+"/"+n:t)+"@"+e.version},T.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},T.hasChangesInResolutions=function(e,t,n,r){T.Debug.assert(e.length===t.length);for(var i=0;i<e.length;i++){var a=t[i],o=n&&n.get(e[i]);if(o?!a||!r(o,a):a)return!0}return!1},T.containsParseError=u,T.getSourceFileOfNode=l,T.isStatementWithLocals=function(e){switch(e.kind){case 219:case 247:case 226:case 227:case 228:return!0}return!1},T.getStartPositionOfLine=function(e,t){return T.Debug.assert(0<=e),T.getLineStarts(t)[e]},T.nodePosToString=function(e){var t=l(e),n=T.getLineAndCharacterOfPosition(t,e.pos);return t.fileName+"("+(n.line+1)+","+(n.character+1)+")"},T.getEndLinePosition=d,T.isFileLevelUniqueName=function(e,t,n){return!(n&&n(t)||e.identifiers.has(t))},T.nodeIsMissing=p,T.nodeIsPresent=f,T.insertStatementsAfterStandardPrologue=function(e,t){return _(e,t,W)},T.insertStatementsAfterCustomPrologue=function(e,t){return _(e,t,g)},T.insertStatementAfterStandardPrologue=function(e,t){return h(e,t,W)},T.insertStatementAfterCustomPrologue=function(e,t){return h(e,t,g)},T.isRecognizedTripleSlashComment=function(e,t,n){if(47===e.charCodeAt(t+1)&&t+2<n&&47===e.charCodeAt(t+2)){var r=e.substring(t,n);return!!(r.match(T.fullTripleSlashReferencePathRegEx)||r.match(T.fullTripleSlashAMDReferencePathRegEx)||r.match(G)||r.match(z))}return!1},T.isPinnedComment=m,T.getTokenPosOfNode=y,T.getNonDecoratorTokenPosOfNode=function(e,t){return p(e)||!e.decorators?y(e,t):T.skipTrivia((t||l(e)).text,e.decorators.end)},T.getSourceTextOfNodeFromSourceFile=b,T.getTextOfNodeFromSourceText=v,T.getTextOfNode=E,T.indexOfNode=function(e,t){return T.binarySearch(e,t,I,T.compareValues)},T.getEmitFlags=C,T.getLiteralText=function(e,t,n){if(!Qe(e)&&e.parent&&!(T.isNumericLiteral(e)&&512&e.numericLiteralFlags||T.isBigIntLiteral(e)))return b(t,e);var r=n||16777216&C(e)?st:dt;switch(e.kind){case 10:return e.singleQuote?"'"+r(e.text,39)+"'":'"'+r(e.text,34)+'"';case 14:return"`"+r(e.text,96)+"`";case 15:return"`"+r(e.text,96)+"${";case 16:return"}"+r(e.text,96)+"${";case 17:return"}"+r(e.text,96)+"`";case 8:case 9:case 13:return e.text}return T.Debug.fail("Literal kind '"+e.kind+"' not accounted for.")},T.getTextOfConstantValue=function(e){return T.isString(e)?'"'+dt(e)+'"':""+e},T.makeIdentifierFromModuleName=function(e){return T.getBaseFileName(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},T.isBlockOrCatchScoped=function(e){return 0!=(3&T.getCombinedNodeFlags(e))||B(e)},T.isCatchClauseVariableDeclarationOrBindingElement=B,T.isAmbientModule=x,T.isModuleWithStringLiteralName=function(e){return T.isModuleDeclaration(e)&&10===e.name.kind},T.isNonGlobalAmbientModule=function(e){return T.isModuleDeclaration(e)&&T.isStringLiteral(e.name)},T.isEffectiveModuleDeclaration=function(e){return T.isModuleDeclaration(e)||T.isIdentifier(e)},T.isShorthandAmbientModuleSymbol=function(e){return(t=e.valueDeclaration)&&245===t.kind&&!t.body;var t},T.isBlockScopedContainerTopLevel=function(e){return 285===e.kind||245===e.kind||T.isFunctionLike(e)},T.isGlobalScopeAugmentation=S,T.isExternalModuleAugmentation=N,T.isModuleAugmentationExternal=D,T.getNonAugmentationDeclaration=function(e){return T.find(e.declarations,function(e){return!(N(e)||T.isModuleDeclaration(e)&&S(e))})},T.isEffectiveExternalModule=function(e,t){return T.isExternalModule(e)||t.isolatedModules||T.getEmitModuleKind(t)===T.ModuleKind.CommonJS&&!!e.commonJsModuleIndicator},T.isBlockScope=k,T.isDeclarationWithTypeParameters=function(e){switch(e.kind){case 303:case 310:case 299:return!0;default:return T.assertType(e),A(e)}},T.isDeclarationWithTypeParameterChildren=A,T.isAnyImportSyntax=w,T.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 250:case 249:case 220:case 241:case 240:case 245:case 243:case 242:case 244:return!0;default:return!1}},T.isAnyImportOrReExport=function(e){return w(e)||T.isExportDeclaration(e)},T.getEnclosingBlockScopeContainer=function(e){return a(e.parent,function(e){return k(e,e.parent)})},T.declarationNameToString=V,T.getNameFromIndexInfo=function(e){return e.declaration?V(e.declaration.parameters[0].name):undefined},T.getTextOfPropertyName=P,T.entityNameToString=function ln(e){switch(e.kind){case 73:return 0===s(e)?T.idText(e):E(e);case 149:return ln(e.left)+"."+ln(e.right);case 190:return ln(e.expression)+"."+ln(e.name);default:throw T.Debug.assertNever(e)}},T.createDiagnosticForNode=function(e,t,n,r,i,a){return L(l(e),e,t,n,r,i,a)},T.createDiagnosticForNodeArray=function(e,t,n,r,i,a,o){var s=T.skipTrivia(e.text,t.pos);return T.createFileDiagnostic(e,s,t.end-s,n,r,i,a,o)},T.createDiagnosticForNodeInSourceFile=L,T.createDiagnosticForNodeFromMessageChain=function(e,t,n){var r=l(e),i=F(r,e);return{file:r,start:i.start,length:i.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}},T.getSpanOfTokenAtPosition=M,T.getErrorSpanForNode=F,T.isExternalOrCommonJsModule=function(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==undefined},T.isJsonSourceFile=O,T.isEnumConst=function(e){return!!(2048&T.getCombinedModifierFlags(e))},T.isDeclarationReadonly=function(e){return!(!(64&T.getCombinedModifierFlags(e))||T.isParameterPropertyDeclaration(e))},T.isVarConst=R,T.isLet=function(e){return!!(1&T.getCombinedNodeFlags(e))},T.isSuperCall=function(e){return 192===e.kind&&99===e.expression.kind},T.isImportCall=H,T.isLiteralImportTypeNode=j,T.isPrologueDirective=W,T.getLeadingCommentRangesOfNode=function(e,t){return 11!==e.kind?T.getLeadingCommentRanges(t.text,e.pos):undefined},T.getJSDocCommentRanges=function(e,t){var n=152===e.kind||151===e.kind||197===e.kind||198===e.kind||196===e.kind?T.concatenate(T.getTrailingCommentRanges(t,e.pos),T.getLeadingCommentRanges(t,e.pos)):T.getLeadingCommentRanges(t,e.pos);return T.filter(n,function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)})},T.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var G=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;T.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var e,Y,J,z=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function U(e){if(164<=e.kind&&e.kind<=184)return!0;switch(e.kind){case 121:case 144:case 136:case 147:case 139:case 124:case 140:case 137:case 142:case 133:return!0;case 107:return 201!==e.parent.kind;case 212:return!Gt(e);case 151:return 182===e.parent.kind||177===e.parent.kind;case 73:(149===e.parent.kind&&e.parent.right===e||190===e.parent.kind&&e.parent.name===e)&&(e=e.parent),T.Debug.assert(73===e.kind||149===e.kind||190===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 149:case 190:case 101:var t=e.parent;if(168===t.kind)return!1;if(184===t.kind)return!t.isTypeOf;if(164<=t.kind&&t.kind<=184)return!0;switch(t.kind){case 212:return!Gt(t);case 151:case 309:return e===t.constraint;case 155:case 154:case 152:case 238:return e===t.type;case 240:case 197:case 198:case 158:case 157:case 156:case 159:case 160:return e===t.type;case 161:case 162:case 163:case 195:return e===t.type;case 192:case 193:return T.contains(t.typeArguments,e);case 194:return!1}}return!1}function K(e){if(e)switch(e.kind){case 187:case 279:case 152:case 276:case 155:case 154:case 277:case 238:return!0}return!1}function Z(e){return 239===e.parent.kind&&220===e.parent.parent.kind}function X(e,n,r){return e.properties.filter(function(e){if(276!==e.kind)return!1;var t=P(e.name);return n===t||!!r&&r===t})}function q(e){if(e&&e.statements.length){var t=e.statements[0].expression;return T.tryCast(t,T.isObjectLiteralExpression)}}function Q(e,t){var n=q(e);return n?X(n,t):T.emptyArray}function $(e,t){for(T.Debug.assert(285!==e.kind);;){if(!(e=e.parent))return T.Debug.fail();switch(e.kind){case 150:if(T.isClassLike(e.parent.parent))return e;e=e.parent;break;case 153:152===e.parent.kind&&T.isClassElement(e.parent.parent)?e=e.parent.parent:T.isClassElement(e.parent)&&(e=e.parent);break;case 198:if(!t)continue;case 240:case 197:case 245:case 155:case 154:case 157:case 156:case 158:case 159:case 160:case 161:case 162:case 163:case 244:case 285:return e}}}function ee(e){var t=e.kind;return(190===t||191===t)&&99===e.expression.kind}function te(e,t,n){switch(e.kind){case 241:return!0;case 155:return 241===t.kind;case 159:case 160:case 157:return e.body!==undefined&&241===t.kind;case 152:return t.body!==undefined&&(158===t.kind||157===t.kind||160===t.kind)&&241===n.kind}return!1}function ne(e,t,n){return e.decorators!==undefined&&te(e,t,n)}function re(e,t,n){return ne(e,t,n)||ie(e,t)}function ie(t,n){switch(t.kind){case 241:return T.some(t.members,function(e){return re(e,t,n)});case 157:case 160:return T.some(t.parameters,function(e){return ne(e,t,n)});default:return!1}}function ae(e){var t=e.parent;return(263===t.kind||262===t.kind||264===t.kind)&&t.tagName===e}function oe(e){switch(e.kind){case 99:case 97:case 103:case 88:case 13:case 188:case 189:case 190:case 191:case 192:case 193:case 194:case 213:case 195:case 214:case 196:case 197:case 210:case 198:case 201:case 199:case 200:case 203:case 204:case 205:case 206:case 209:case 207:case 14:case 211:case 261:case 262:case 265:case 208:case 202:case 215:return!0;case 149:for(;149===e.parent.kind;)e=e.parent;return 168===e.parent.kind||ae(e);case 73:if(168===e.parent.kind||ae(e))return!0;case 8:case 9:case 10:case 101:return se(e);default:return!1}}function se(e){var t=e.parent;switch(t.kind){case 238:case 152:case 155:case 154:case 279:case 276:case 187:return t.initializer===e;case 222:case 223:case 224:case 225:case 231:case 232:case 233:case 272:case 235:return t.expression===e;case 226:return t.initializer===e&&239!==t.initializer.kind||t.condition===e||t.incrementor===e;case 227:case 228:return t.initializer===e&&239!==t.initializer.kind||t.expression===e;case 195:case 213:case 217:case 150:return e===t.expression;case 153:case 271:case 270:case 278:return!0;case 212:return t.expression===e&&Gt(t);case 277:return t.objectAssignmentInitializer===e;default:return oe(t)}}function ce(e){return 249===e.kind&&260===e.moduleReference.kind}function ue(e){return le(e)}function le(e){return!!e&&!!(65536&e.flags)}function de(e,t){if(192!==e.kind)return!1;var n=e.expression,r=e.arguments;if(73!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;var i=r[0];return!t||T.isStringLiteralLike(i)}function pe(e){return le(e)&&e.initializer&&T.isBinaryExpression(e.initializer)&&55===e.initializer.operatorToken.kind&&e.name&&Yt(e.name)&&_e(e.name,e.initializer.left)?e.initializer.right:e.initializer}function fe(e,t){if(T.isCallExpression(e)){var n=Pe(e.expression);return 197===n.kind||198===n.kind?e:undefined}return 197===e.kind||210===e.kind||198===e.kind||T.isObjectLiteralExpression(e)&&(0===e.properties.length||t)?e:void 0}function _e(e,t){return T.isIdentifier(e)&&T.isIdentifier(t)?e.escapedText===t.escapedText:T.isIdentifier(e)&&T.isPropertyAccessExpression(t)?(101===t.expression.kind||T.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))&&_e(e,t.name):!(!T.isPropertyAccessExpression(e)||!T.isPropertyAccessExpression(t))&&(e.name.escapedText===t.name.escapedText&&_e(e.expression,t.expression))}function he(e){return T.isIdentifier(e)&&"exports"===e.escapedText}function ge(e){return T.isPropertyAccessExpression(e)&&T.isIdentifier(e.expression)&&"module"===e.expression.escapedText&&"exports"===e.name.escapedText}function me(e){var t=function(e){if(T.isCallExpression(e)){if(!ye(e))return 0;var t=e.arguments[0];return he(t)||ge(t)?8:T.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText&&Yt(t.expression)?9:7}if(60!==e.operatorToken.kind||!T.isPropertyAccessExpression(e.left))return 0;var n=e.left;if(Yt(n.expression)&&"prototype"===n.name.escapedText&&T.isObjectLiteralExpression(ve(e)))return 6;return be(n)}(e);return 5===t||le(e)?t:0}function ye(e){return 3===T.length(e.arguments)&&T.isPropertyAccessExpression(e.expression)&&T.isIdentifier(e.expression.expression)&&"Object"===T.idText(e.expression.expression)&&"defineProperty"===T.idText(e.expression.name)&&Ye(e.arguments[1])&&Yt(e.arguments[0])}function be(e){if(101===e.expression.kind)return 4;if(ge(e))return 2;if(Yt(e.expression)){if(zt(e.expression))return 3;for(var t=e;T.isPropertyAccessExpression(t.expression);)t=t.expression;T.Debug.assert(T.isIdentifier(t.expression));var n=t.expression;return"exports"===n.escapedText||"module"===n.escapedText&&"exports"===t.name.escapedText?1:5}return 0}function ve(e){for(;T.isBinaryExpression(e.right);)e=e.right;return e.right}function Ee(e){switch(e.parent.kind){case 250:case 256:return e.parent;case 260:return e.parent.parent;case 192:return H(e.parent)||de(e.parent,!1)?e.parent:undefined;case 183:return T.Debug.assert(T.isStringLiteral(e)),T.tryCast(e.parent.parent,T.isImportTypeNode);default:return undefined}}function Ie(e){return 310===e.kind||303===e.kind}function Te(e){return T.isExpressionStatement(e)&&T.isBinaryExpression(e.expression)&&0!==me(e.expression)&&T.isBinaryExpression(e.expression.right)&&55===e.expression.right.operatorToken.kind?e.expression.right.right:undefined}function Ce(e){switch(e.kind){case 220:var t=Be(e);return t&&t.initializer;case 155:case 276:return e.initializer}}function Be(e){return T.isVariableStatement(e)?T.firstOrUndefined(e.declarationList.declarations):undefined}function xe(e){return T.isModuleDeclaration(e)&&e.body&&245===e.body.kind?e.body:undefined}function Se(e){return Ne(De(e))}function Ne(e){var t,n=Te(e)||(t=e,T.isExpressionStatement(t)&&t.expression&&T.isBinaryExpression(t.expression)&&60===t.expression.operatorToken.kind?t.expression.right:undefined)||Ce(e)||Be(e)||xe(e)||e;return n&&T.isFunctionLike(n)?n:undefined}function De(e){return T.Debug.assertDefined(a(e.parent,T.isJSDoc)).parent}function ke(e){var t=T.isJSDocParameterTag(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==undefined||!!t&&296===t.kind}function Ae(e){for(var t=e.parent;;){switch(t.kind){case 205:var n=t.operatorToken.kind;return Rt(n)&&t.left===e?60===n?1:2:0;case 203:case 204:var r=t.operator;return 44===r||45===r?2:0;case 227:case 228:return t.initializer===e?1:0;case 196:case 188:case 209:case 214:e=t;break;case 277:if(t.name!==e)return 0;e=t.parent;break;case 276:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function we(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Ve(e){return we(e,196)}function Pe(e){for(;196===e.kind;)e=e.expression;return e}function Le(e){var t=T.isExportAssignment(e)?e.expression:e.right;return Yt(t)||T.isClassExpression(t)}function Me(e){var t=Fe(e);if(t&&le(e)){var n=T.getJSDocAugmentsTag(e);if(n)return n["class"]}return t}function Fe(e){var t=He(e.heritageClauses,87);return t&&0<t.types.length?t.types[0]:undefined}function Oe(e){var t=He(e.heritageClauses,110);return t?t.types:undefined}function Re(e){var t=He(e.heritageClauses,87);return t?t.types:undefined}function He(e,t){if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.token===t)return i}return undefined}function je(e){return 74<=e&&e<=148}function We(e){return 119<=e&&e<=148}function Ge(e){return je(e)&&!We(e)}function Ye(e){return T.isStringLiteralLike(e)||T.isNumericLiteral(e)}function Je(e){var t=T.getNameOfDeclaration(e);return!!t&&ze(t)}function ze(e){return 150===e.kind&&!Ye(e.expression)&&!Ue(e.expression)}function Ue(e){return T.isPropertyAccessExpression(e)&&Xe(e.expression)}function Ke(e){switch(e.kind){case 73:return e.escapedText;case 10:case 8:return T.escapeLeadingUnderscores(e.text);case 150:var t=e.expression;return Ue(t)?Ze(T.idText(t.name)):Ye(t)?T.escapeLeadingUnderscores(t.text):undefined;default:return T.Debug.assertNever(e)}}function Ze(e){return"__@"+e}function Xe(e){return 73===e.kind&&"Symbol"===e.escapedText}function qe(e){for(;187===e.kind;)e=e.parent.parent;return e}function Qe(e){return T.positionIsSynthesized(e.pos)||T.positionIsSynthesized(e.end)}function $e(e,t,n){switch(e){case 193:return n?0:1;case 203:case 200:case 201:case 199:case 202:case 206:case 208:return 1;case 205:switch(t){case 41:case 60:case 61:case 62:case 64:case 63:case 65:case 66:case 67:case 68:case 69:case 70:case 72:case 71:return 1}}return 0}function et(e){return 205===e.kind?e.operatorToken.kind:203===e.kind||204===e.kind?e.operator:e.kind}function tt(e,t,n){switch(e){case 315:return 0;case 209:return 1;case 208:return 2;case 206:return 4;case 205:switch(t){case 27:return 0;case 60:case 61:case 62:case 64:case 63:case 65:case 66:case 67:case 68:case 69:case 70:case 72:case 71:return 3;default:return nt(t)}case 203:case 200:case 201:case 199:case 202:return 16;case 204:return 17;case 192:return 18;case 193:return n?19:18;case 194:case 190:case 191:return 19;case 101:case 99:case 73:case 97:case 103:case 88:case 8:case 9:case 10:case 188:case 189:case 197:case 198:case 210:case 261:case 262:case 265:case 13:case 14:case 207:case 196:case 211:return 20;default:return-1}}function nt(e){switch(e){case 55:return 5;case 54:return 6;case 50:return 7;case 51:return 8;case 49:return 9;case 33:case 34:case 35:case 36:return 10;case 28:case 30:case 31:case 32:case 95:case 94:case 120:return 11;case 46:case 47:case 48:return 12;case 38:case 39:return 13;case 40:case 42:case 43:return 14;case 41:return 15}return-1}T.isPartOfTypeNode=U,T.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},T.forEachReturnStatement=function(e,t){return function n(e){switch(e.kind){case 231:return t(e);case 247:case 219:case 223:case 224:case 225:case 226:case 227:case 228:case 232:case 233:case 272:case 273:case 234:case 236:case 275:return T.forEachChild(e,n)}}(e)},T.forEachYieldExpression=function(e,n){return function r(e){switch(e.kind){case 208:n(e);var t=e.expression;return void(t&&r(t));case 244:case 242:case 245:case 243:case 241:case 210:return;default:if(T.isFunctionLike(e)){if(e.name&&150===e.name.kind)return void r(e.name.expression)}else U(e)||T.forEachChild(e,r)}}(e)},T.getRestParameterElementType=function(e){return e&&170===e.kind?e.elementType:e&&165===e.kind?T.singleOrUndefined(e.typeArguments):undefined},T.getMembersOfDeclaration=function(e){switch(e.kind){case 242:case 241:case 210:case 169:return e.members;case 189:return e.properties}},T.isVariableLike=K,T.isVariableLikeOrAccessor=function(e){return K(e)||T.isAccessor(e)},T.isVariableDeclarationInVariableStatement=Z,T.isValidESSymbolDeclaration=function(e){return T.isVariableDeclaration(e)?R(e)&&T.isIdentifier(e.name)&&Z(e):T.isPropertyDeclaration(e)?Pt(e)&&Vt(e):T.isPropertySignature(e)&&Pt(e)},T.introducesArgumentsExoticObject=function(e){switch(e.kind){case 157:case 156:case 158:case 159:case 160:case 240:case 197:return!0}return!1},T.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),234!==e.statement.kind)return e.statement;e=e.statement}},T.isFunctionBlock=function(e){return e&&219===e.kind&&T.isFunctionLike(e.parent)},T.isObjectLiteralMethod=function(e){return e&&157===e.kind&&189===e.parent.kind},T.isObjectLiteralOrClassExpressionMethod=function(e){return 157===e.kind&&(189===e.parent.kind||210===e.parent.kind)},T.isIdentifierTypePredicate=function(e){return e&&1===e.kind},T.isThisTypePredicate=function(e){return e&&0===e.kind},T.getPropertyAssignment=X,T.getTsConfigObjectLiteralExpression=q,T.getTsConfigPropArrayElementValue=function(e,t,n){return T.firstDefined(Q(e,t),function(e){return T.isArrayLiteralExpression(e.initializer)?T.find(e.initializer.elements,function(e){return T.isStringLiteral(e)&&e.text===n}):undefined})},T.getTsConfigPropArray=Q,T.getContainingFunction=function(e){return a(e.parent,T.isFunctionLike)},T.getContainingFunctionDeclaration=function(e){return a(e.parent,T.isFunctionLikeDeclaration)},T.getContainingClass=function(e){return a(e.parent,T.isClassLike)},T.getThisContainer=$,T.getNewTargetContainer=function(e){var t=$(e,!1);if(t)switch(t.kind){case 158:case 240:case 197:return t}return undefined},T.getSuperContainer=function(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 150:e=e.parent;break;case 240:case 197:case 198:if(!t)continue;case 155:case 154:case 157:case 156:case 158:case 159:case 160:return e;case 153:152===e.parent.kind&&T.isClassElement(e.parent.parent)?e=e.parent.parent:T.isClassElement(e.parent)&&(e=e.parent)}}},T.getImmediatelyInvokedFunctionExpression=function(e){if(197===e.kind||198===e.kind){for(var t=e,n=e.parent;196===n.kind;)n=(t=n).parent;if(192===n.kind&&n.expression===t)return n}},T.isSuperOrSuperProperty=function(e){return 99===e.kind||ee(e)},T.isSuperProperty=ee,T.isThisProperty=function(e){var t=e.kind;return(190===t||191===t)&&101===e.expression.kind},T.getEntityNameFromTypeNode=function(e){switch(e.kind){case 165:return e.typeName;case 212:return Yt(e.expression)?e.expression:undefined;case 73:case 149:return e}return undefined},T.getInvokedExpression=function(e){switch(e.kind){case 194:return e.tag;case 263:case 262:return e.tagName;default:return e.expression}},T.nodeCanBeDecorated=te,T.nodeIsDecorated=ne,T.nodeOrChildIsDecorated=re,T.childIsDecorated=ie,T.isJSXTagName=ae,T.isExpressionNode=oe,T.isInExpressionContext=se,T.isExternalModuleImportEqualsDeclaration=ce,T.getExternalModuleImportEqualsDeclarationExpression=function(e){return T.Debug.assert(ce(e)),e.moduleReference.expression},T.isInternalModuleImportEqualsDeclaration=function(e){return 249===e.kind&&260!==e.moduleReference.kind},T.isSourceFileJS=ue,T.isSourceFileNotJS=function(e){return!le(e)},T.isInJSFile=le,T.isInJsonFile=function(e){return!!e&&!!(16777216&e.flags)},T.isInJSDoc=function(e){return!!e&&!!(2097152&e.flags)},T.isJSDocIndexSignature=function(e){return T.isTypeReferenceNode(e)&&T.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(139===e.typeArguments[0].kind||136===e.typeArguments[0].kind)},T.isRequireCall=de,T.isSingleOrDoubleQuote=function(e){return 39===e||34===e},T.isStringDoubleQuoted=function(e,t){return 34===b(t,e).charCodeAt(0)},T.getDeclarationOfExpando=function(e){if(!e.parent)return undefined;var t,n;if(T.isVariableDeclaration(e.parent)&&e.parent.initializer===e){if(!le(e)&&!R(e.parent))return undefined;t=e.parent.name,n=e.parent}else if(T.isBinaryExpression(e.parent)&&60===e.parent.operatorToken.kind&&e.parent.right===e)n=t=e.parent.left;else if(T.isBinaryExpression(e.parent)&&55===e.parent.operatorToken.kind&&(T.isVariableDeclaration(e.parent.parent)&&e.parent.parent.initializer===e.parent?(t=e.parent.parent.name,n=e.parent.parent):T.isBinaryExpression(e.parent.parent)&&60===e.parent.parent.operatorToken.kind&&e.parent.parent.right===e.parent&&(n=t=e.parent.parent.left),!t||!Yt(t)||!_e(t,e.parent.left)))return undefined;return t&&fe(e,zt(t))?n:undefined},T.isAssignmentDeclaration=function(e){return T.isBinaryExpression(e)||T.isPropertyAccessExpression(e)||T.isIdentifier(e)||T.isCallExpression(e)},T.getEffectiveInitializer=pe,T.getDeclaredExpandoInitializer=function(e){var t=pe(e);return t&&fe(t,zt(e.name))},T.getAssignedExpandoInitializer=function(e){if(e&&e.parent&&T.isBinaryExpression(e.parent)&&60===e.parent.operatorToken.kind){var t=zt(e.parent.left);return fe(e.parent.right,t)||function(e,t,n){var r=T.isBinaryExpression(t)&&55===t.operatorToken.kind&&fe(t.right,n);if(r&&_e(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&T.isCallExpression(e)&&ye(e)){var n=(r=e.arguments[2],i="prototype"===e.arguments[1].text,T.forEach(r.properties,function(e){return T.isPropertyAssignment(e)&&T.isIdentifier(e.name)&&"value"===e.name.escapedText&&e.initializer&&fe(e.initializer,i)}));if(n)return n}var r,i},T.getExpandoInitializer=fe,T.isDefaultedExpandoInitializer=function(e){var t=T.isVariableDeclaration(e.parent)?e.parent.name:T.isBinaryExpression(e.parent)&&60===e.parent.operatorToken.kind?e.parent.left:undefined;return t&&fe(e.right,zt(t))&&Yt(t)&&_e(t,e.left)},T.getNameOfExpando=function(e){if(T.isBinaryExpression(e.parent)){var t=55===e.parent.operatorToken.kind&&T.isBinaryExpression(e.parent.parent)?e.parent.parent:e.parent;if(60===t.operatorToken.kind&&T.isIdentifier(t.left))return t.left}else if(T.isVariableDeclaration(e.parent))return e.parent.name},T.getRightMostAssignedExpression=function(e){for(;Wt(e,!0);)e=e.right;return e},T.isExportsIdentifier=he,T.isModuleExportsPropertyAccessExpression=ge,T.getAssignmentDeclarationKind=me,T.isBindableObjectDefinePropertyCall=ye,T.getAssignmentDeclarationPropertyAccessKind=be,T.getInitializerOfBinaryExpression=ve,T.isPrototypePropertyAssignment=function(e){return T.isBinaryExpression(e)&&3===me(e)},T.isSpecialPropertyDeclaration=function(e){return le(e)&&e.parent&&222===e.parent.kind&&!!T.getJSDocTypeTag(e.parent)},T.isFunctionSymbol=function(e){if(!e||!e.valueDeclaration)return!1;var t=e.valueDeclaration;return 240===t.kind||T.isVariableDeclaration(t)&&t.initializer&&T.isFunctionLike(t.initializer)},T.importFromModuleSpecifier=function(e){return Ee(e)||T.Debug.failBadSyntaxKind(e.parent)},T.tryGetImportFromModuleSpecifier=Ee,T.getExternalModuleName=function(e){switch(e.kind){case 250:case 256:return e.moduleSpecifier;case 249:return 260===e.moduleReference.kind?e.moduleReference.expression:undefined;case 184:return j(e)?e.argument.literal:undefined;default:return T.Debug.assertNever(e)}},T.getNamespaceDeclarationNode=function(e){switch(e.kind){case 250:return e.importClause&&T.tryCast(e.importClause.namedBindings,T.isNamespaceImport);case 249:return e;case 256:return undefined;default:return T.Debug.assertNever(e)}},T.isDefaultImport=function(e){return 250===e.kind&&!!e.importClause&&!!e.importClause.name},T.hasQuestionToken=function(e){if(e)switch(e.kind){case 152:case 157:case 156:case 277:case 276:case 155:case 154:return e.questionToken!==undefined}return!1},T.isJSDocConstructSignature=function(e){var t=T.isJSDocFunctionType(e)?T.firstOrUndefined(e.parameters):undefined,n=T.tryCast(t&&t.name,T.isIdentifier);return!!n&&"new"===n.escapedText},T.isJSDocTypeAlias=Ie,T.isTypeAlias=function(e){return Ie(e)||T.isTypeAliasDeclaration(e)},T.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ce,T.getJSDocCommentsAndTags=function(e){var t;K(e)&&T.hasInitializer(e)&&T.hasJSDocNodes(e.initializer)&&(t=T.addRange(t,e.initializer.jsDoc));for(var n=e;n&&n.parent;){if(T.hasJSDocNodes(n)&&(t=T.addRange(t,n.jsDoc)),152===n.kind){t=T.addRange(t,T.getJSDocParameterTags(n));break}if(151===n.kind){t=T.addRange(t,T.getJSDocTypeParameterTags(n));break}n=function(e){var t=e.parent;{if(276===t.kind||255===t.kind||155===t.kind||222===t.kind&&190===e.kind||xe(t)||T.isBinaryExpression(e)&&60===e.operatorToken.kind)return t;if(t.parent&&(Be(t.parent)===e||T.isBinaryExpression(t)&&60===t.operatorToken.kind))return t.parent;if(t.parent&&t.parent.parent&&(Be(t.parent.parent)||Ce(t.parent.parent)===e||Te(t.parent.parent)))return t.parent.parent}}(n)}return t||T.emptyArray},T.getParameterSymbolFromJSDoc=function(e){if(e.symbol)return e.symbol;if(!T.isIdentifier(e.name))return undefined;var t=e.name.escapedText,n=Se(e);if(!n)return undefined;var r=T.find(n.parameters,function(e){return 73===e.name.kind&&e.name.escapedText===t});return r&&r.symbol},T.getHostSignatureFromJSDoc=Se,T.getHostSignatureFromJSDocHost=Ne,T.getJSDocHost=De,T.getTypeParameterFromJsDoc=function(e){var t=e.name.escapedText,n=e.parent.parent.parent.typeParameters;return T.find(n,function(e){return e.name.escapedText===t})},T.hasRestParameter=function(e){var t=T.lastOrUndefined(e.parameters);return!!t&&ke(t)},T.isRestParameter=ke,(e=T.AssignmentKind||(T.AssignmentKind={}))[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",T.getAssignmentTargetKind=Ae,T.isAssignmentTarget=function(e){return 0!==Ae(e)},T.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 219:case 220:case 232:case 223:case 233:case 247:case 272:case 273:case 234:case 226:case 227:case 228:case 224:case 225:case 236:case 275:return!0}return!1},T.isValueSignatureDeclaration=function(e){return T.isFunctionExpression(e)||T.isArrowFunction(e)||T.isMethodOrAccessor(e)||T.isFunctionDeclaration(e)||T.isConstructorDeclaration(e)},T.walkUpParenthesizedTypes=function(e){return we(e,178)},T.walkUpParenthesizedExpressions=Ve,T.skipParentheses=Pe,T.isDeleteTarget=function(e){return(190===e.kind||191===e.kind)&&((e=Ve(e.parent))&&199===e.kind)},T.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},T.isDeclarationName=function(e){return!T.isSourceFile(e)&&!T.isBindingPattern(e)&&T.isDeclaration(e.parent)&&e.parent.name===e},T.getDeclarationFromName=function(e){var t=e.parent;switch(e.kind){case 10:case 8:if(T.isComputedPropertyName(t))return t.parent;case 73:if(T.isDeclaration(t))return t.name===e?t:undefined;if(T.isQualifiedName(t)){var n=t.parent;return T.isJSDocParameterTag(n)&&n.name===t?n:undefined}var r=t.parent;return T.isBinaryExpression(r)&&0!==me(r)&&(r.left.symbol||r.symbol)&&T.getNameOfDeclaration(r)===e?r:undefined;default:return undefined}},T.isLiteralComputedPropertyDeclarationName=function(e){return(10===e.kind||8===e.kind)&&150===e.parent.kind&&T.isDeclaration(e.parent.parent)},T.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 155:case 154:case 157:case 156:case 159:case 160:case 279:case 276:case 190:return t.name===e;case 149:if(t.right!==e)return!1;for(;149===t.kind;)t=t.parent;return 168===t.kind||165===t.kind;case 187:case 254:return t.propertyName===e;case 258:case 268:return!0}return!1},T.isAliasSymbolDeclaration=function(e){return 249===e.kind||248===e.kind||251===e.kind&&!!e.name||252===e.kind||254===e.kind||258===e.kind||255===e.kind&&Le(e)||T.isBinaryExpression(e)&&2===me(e)&&Le(e)},T.exportAssignmentIsAlias=Le,T.getEffectiveBaseTypeNode=Me,T.getClassExtendsHeritageElement=Fe,T.getClassImplementsHeritageClauseElements=Oe,T.getAllSuperTypeNodes=function(e){return T.isInterfaceDeclaration(e)?Re(e)||T.emptyArray:T.isClassLike(e)&&T.concatenate(T.singleElementArray(Me(e)),Oe(e))||T.emptyArray},T.getInterfaceBaseTypeNodes=Re,T.getHeritageClause=He,T.tryResolveScriptReference=function(e,t,n){if(!e.getCompilerOptions().noResolve){var r=T.isRootedDiskPath(n.fileName)?n.fileName:T.combinePaths(T.getDirectoryPath(t.fileName),n.fileName);return e.getSourceFile(r)}},T.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}return undefined},T.isKeyword=je,T.isContextualKeyword=We,T.isNonContextualKeyword=Ge,T.isStringANonContextualKeyword=function(e){var t=T.stringToToken(e);return t!==undefined&&Ge(t)},T.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!We(t)},T.isTrivia=function(e){return 2<=e&&e<=7},(Y=T.FunctionFlags||(T.FunctionFlags={}))[Y.Normal=0]="Normal",Y[Y.Generator=1]="Generator",Y[Y.Async=2]="Async",Y[Y.Invalid=4]="Invalid",Y[Y.AsyncGenerator=3]="AsyncGenerator",T.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 240:case 197:case 157:e.asteriskToken&&(t|=1);case 198:wt(e,256)&&(t|=2)}return e.body||(t|=4),t},T.isAsyncFunction=function(e){switch(e.kind){case 240:case 197:case 198:case 157:return e.body!==undefined&&e.asteriskToken===undefined&&wt(e,256)}return!1},T.isStringOrNumericLiteralLike=Ye,T.hasDynamicName=Je,T.isDynamicName=ze,T.isWellKnownSymbolSyntactically=Ue,T.getPropertyNameForPropertyNameNode=Ke,T.isPropertyNameLiteral=function(e){switch(e.kind){case 73:case 10:case 14:case 8:return!0;default:return!1}},T.getTextOfIdentifierOrLiteral=function(e){return 73===e.kind?T.idText(e):e.text},T.getEscapedTextOfIdentifierOrLiteral=function(e){return 73===e.kind?e.escapedText:T.escapeLeadingUnderscores(e.text)},T.getPropertyNameForKnownSymbolName=Ze,T.isKnownSymbol=function(e){return T.startsWith(e.escapedName,"__@")},T.isESSymbolIdentifier=Xe,T.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},T.isParameterDeclaration=function(e){return 152===qe(e).kind},T.getRootDeclaration=qe,T.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 158===t||197===t||240===t||198===t||157===t||159===t||160===t||245===t||285===t},T.nodeIsSynthesized=Qe,T.getOriginalSourceFile=function(e){return T.getParseTreeNode(e,T.isSourceFile)||e},(J=T.Associativity||(T.Associativity={}))[J.Left=0]="Left",J[J.Right=1]="Right",T.getExpressionAssociativity=function(e){var t=et(e),n=193===e.kind&&e.arguments!==undefined;return $e(e.kind,t,n)},T.getOperatorAssociativity=$e,T.getExpressionPrecedence=function(e){var t=et(e),n=193===e.kind&&e.arguments!==undefined;return tt(e.kind,t,n)},T.getOperator=et,T.getOperatorPrecedence=tt,T.getBinaryOperatorPrecedence=nt,T.createDiagnosticCollection=function(){var r=[],n=[],i=T.createMap(),a=!1;return{add:function(e){var t;e.file?(t=i.get(e.file.fileName))||(t=[],i.set(e.file.fileName,t),T.insertSorted(n,e.file.fileName,T.compareStringsCaseSensitive)):(a&&(a=!1,r=r.slice()),t=r);T.insertSorted(t,e,T.compareDiagnostics)},lookup:function(e){var t;t=e.file?i.get(e.file.fileName):r;if(!t)return undefined;var n=T.binarySearch(t,e,T.identity,T.compareDiagnosticsSkipRelatedInformation);if(0<=n)return t[n];return undefined},getGlobalDiagnostics:function(){return a=!0,r},getDiagnostics:function(e){if(e)return i.get(e)||[];var t=T.flatMapToMutable(n,function(e){return i.get(e)});return r.length&&t.unshift.apply(t,r),t},reattachFileDiagnostics:function(t){T.forEach(i.get(t.fileName),function(e){return e.file=t})}}};var rt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,it=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,at=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ot=T.createMapFromTemplate({"\t":"\\t","\x0B":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});function st(e,t){var n=96===t?at:39===t?it:rt;return e.replace(n,ct)}function ct(e,t,n){if(0!==e.charCodeAt(0))return ot.get(e)||ut(e.charCodeAt(0));var r=n.charCodeAt(t+e.length);return 48<=r&&r<=57?"\\x00":"\\0"}function ut(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}T.escapeString=st,T.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return 97<=t&&t<=122||T.stringContains(e,"-")};var lt=/[^\u0000-\u007F]/g;function dt(e,t){return e=st(e,t),lt.test(e)?e.replace(lt,function(e){return ut(e.charCodeAt(0))}):e}T.escapeNonAsciiString=dt;var pt=[""," "];function ft(e){return pt[e]===undefined&&(pt[e]=ft(e-1)+pt[1]),pt[e]}function _t(){return pt[1].length}function ht(e,t,n){return t.moduleName||gt(e,t.fileName,n&&n.fileName)}function gt(t,e,n){var r=function r(e){return t.getCanonicalFileName(e)},i=c(n?T.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=T.getNormalizedAbsolutePath(e,t.getCurrentDirectory()),o=T.getRelativePathToDirectoryOrUrl(i,a,i,r,!1),s=T.removeFileExtension(o);return n?T.ensurePathIsNonModuleName(s):s}function mt(e,t,n,r,i){var a=t.declarationDir||t.outDir,o=a?vt(e,a,n,r,i):e;return T.removeFileExtension(o)+".d.ts"}function yt(e,t,n,r){return!(t.noEmitForJsFiles&&ue(e)||e.isDeclarationFile||n(e)||O(e)&&r(e.fileName))}function bt(e,t,n){return vt(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function vt(e,t,n,r,i){var a=0===i(a=T.getNormalizedAbsolutePath(e,n)).indexOf(i(r))?a.substring(r.length):a;return T.combinePaths(t,a)}function Et(e,t){return T.getLineAndCharacterOfPosition(e,t).line}function It(e,t){return T.computeLineAndCharacterOfPosition(e,t).line}function Tt(e){if(e&&0<e.parameters.length){var t=2===e.parameters.length&&Ct(e.parameters[0]);return e.parameters[t?1:0]}}function Ct(e){return Bt(e.name)}function Bt(e){return!!e&&73===e.kind&&xt(e)}function xt(e){return 101===e.originalKeywordKind}function St(e){var t=e.type;return t||!le(e)?t:T.isJSDocPropertyLikeTag(e)?e.typeExpression&&e.typeExpression.type:T.getJSDocType(e)}function Nt(e,t,n,r){Dt(e,t,n.pos,r)}function Dt(e,t,n,r){r&&r.length&&n!==r[0].pos&&It(e,n)!==It(e,r[0].pos)&&t.writeLine()}function kt(e,t,n,r,i,a,o,s){if(r&&0<r.length){i&&n.writeSpace(" ");for(var c=!1,u=0,l=r;u<l.length;u++){var d=l[u];c&&(n.writeSpace(" "),c=!1),s(e,t,n,d.pos,d.end,o),d.hasTrailingNewLine?n.writeLine():c=!0}c&&a&&n.writeSpace(" ")}}function At(e,t,n){for(var r=0;t<n&&T.isWhiteSpaceSingleLine(e.charCodeAt(t));t++)9===e.charCodeAt(t)?r+=_t()-r%_t():r++;return r}function wt(e,t){return!!Lt(e,t)}function Vt(e){return wt(e,32)}function Pt(e){return wt(e,64)}function Lt(e,t){return Mt(e)&t}function Mt(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=Ft(e);return e.modifierFlagsCache=536870912|t,t}function Ft(e){var t=0;if(e.modifiers)for(var n=0,r=e.modifiers;n<r.length;n++){t|=Ot(r[n].kind)}return(4&e.flags||73===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Ot(e){switch(e){case 117:return 32;case 116:return 4;case 115:return 16;case 114:return 8;case 119:return 128;case 86:return 1;case 126:return 2;case 78:return 2048;case 81:return 512;case 122:return 256;case 134:return 64}return 0}function Rt(e){return 60<=e&&e<=72}function Ht(e){var t=jt(e);return t&&!t.isImplements?t["class"]:undefined}function jt(e){return T.isExpressionWithTypeArguments(e)&&T.isHeritageClause(e.parent)&&T.isClassLike(e.parent.parent)?{"class":e.parent.parent,isImplements:110===e.parent.token}:undefined}function Wt(e,t){return T.isBinaryExpression(e)&&(t?60===e.operatorToken.kind:Rt(e.operatorToken.kind))&&T.isLeftHandSideExpression(e.left)}function Gt(e){return Ht(e)!==undefined}function Yt(e){return 73===e.kind||Jt(e)}function Jt(e){return T.isPropertyAccessExpression(e)&&Yt(e.expression)}function zt(e){return T.isPropertyAccessExpression(e)&&"prototype"===e.name.escapedText}T.getIndentString=ft,T.getIndentSize=_t,T.createTextWriter=function(e){var n,t,r,i,a;function o(e){var t=T.computeLineStarts(e);r=1<t.length&&(i=i+t.length-1,(a=n.length-e.length+T.last(t))-n.length==0)}function s(e){e&&e.length&&(r&&(e=ft(t)+e,r=!1),n+=e,o(e))}function c(){n="",r=!(t=0),a=i=0}return c(),{write:s,rawWrite:function(e){e!==undefined&&(n+=e,o(e))},writeLiteral:function(e){e&&e.length&&s(e)},writeLine:function(){r||(i++,a=(n+=e).length,r=!0)},increaseIndent:function(){t++},decreaseIndent:function(){t--},getIndent:function(){return t},getTextPos:function(){return n.length},getLine:function(){return i},getColumn:function(){return r?t*_t():n.length-a},getText:function(){return n},isAtStartOfLine:function(){return r},clear:c,reportInaccessibleThisError:T.noop,reportPrivateInBaseOfClassExpression:T.noop,reportInaccessibleUniqueSymbolError:T.noop,trackSymbol:T.noop,writeKeyword:s,writeOperator:s,writeParameter:s,writeProperty:s,writePunctuation:s,writeSpace:s,writeStringLiteral:s,writeSymbol:function(e,t){return s(e)},writeTrailingSemicolon:s,writeComment:s,getTextPosWithWriteLine:function(){return r?n.length:n.length+e.length}}},T.getTrailingSemicolonOmittingWriter=function(n){var e=!1;function r(){e&&(n.writeTrailingSemicolon(";"),e=!1)}return Qb({},n,{writeTrailingSemicolon:function(){e=!0},writeLiteral:function(e){r(),n.writeLiteral(e)},writeStringLiteral:function(e){r(),n.writeStringLiteral(e)},writeSymbol:function(e,t){r(),n.writeSymbol(e,t)},writePunctuation:function(e){r(),n.writePunctuation(e)},writeKeyword:function(e){r(),n.writeKeyword(e)},writeOperator:function(e){r(),n.writeOperator(e)},writeParameter:function(e){r(),n.writeParameter(e)},writeSpace:function(e){r(),n.writeSpace(e)},writeProperty:function(e){r(),n.writeProperty(e)},writeComment:function(e){r(),n.writeComment(e)},writeLine:function(){r(),n.writeLine()},increaseIndent:function(){r(),n.increaseIndent()},decreaseIndent:function(){r(),n.decreaseIndent()}})},T.getResolvedExternalModuleName=ht,T.getExternalModuleNameFromDeclaration=function(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);return!r||r.isDeclarationFile?undefined:ht(e,r)},T.getExternalModuleNameFromPath=gt,T.getOwnEmitOutputFilePath=function(e,t,n){var r=t.getCompilerOptions(),i=r.outDir?T.removeFileExtension(bt(e,t,r.outDir)):T.removeFileExtension(e);return i+n},T.getDeclarationEmitOutputFilePath=function(e,t){return mt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},T.getDeclarationEmitOutputFilePathWorker=mt,T.getSourceFilesToEmit=function(t,e){var n=t.getCompilerOptions(),r=function r(e){return t.isSourceFileFromExternalLibrary(e)},i=function i(e){return t.getResolvedProjectReferenceToRedirect(e)};if(n.outFile||n.out){var a=T.getEmitModuleKind(n),o=n.emitDeclarationOnly||a===T.ModuleKind.AMD||a===T.ModuleKind.System;return T.filter(t.getSourceFiles(),function(e){return(o||!T.isExternalModule(e))&&yt(e,n,r,i)})}var s=e===undefined?t.getSourceFiles():[e];return T.filter(s,function(e){return yt(e,n,r,i)})},T.sourceFileMayBeEmitted=yt,T.getSourceFilePathInNewDir=bt,T.getSourceFilePathInNewDirWorker=vt,T.writeFile=function(e,t,n,r,i,a){e.writeFile(n,r,i,function(e){t.add(T.createCompilerDiagnostic(T.Diagnostics.Could_not_write_file_0_Colon_1,n,e))},a)},T.getLineOfLocalPosition=Et,T.getLineOfLocalPositionFromLineMap=It,T.getFirstConstructorWithBody=function(e){return T.find(e.members,function(e){return T.isConstructorDeclaration(e)&&f(e.body)})},T.getSetAccessorTypeAnnotationNode=function(e){var t=Tt(e);return t&&t.type},T.getThisParameter=function(e){if(e.parameters.length&&!T.isJSDocSignature(e)){var t=e.parameters[0];if(Ct(t))return t}},T.parameterIsThisKeyword=Ct,T.isThisIdentifier=Bt,T.identifierIsThisKeyword=xt,T.getAllAccessorDeclarations=function(e,t){var n,r,i,a;return Je(t)?159===(n=t).kind?i=t:160===t.kind?a=t:T.Debug.fail("Accessor has wrong kind"):T.forEach(e,function(e){T.isAccessor(e)&&wt(e,32)===wt(t,32)&&Ke(e.name)===Ke(t.name)&&(n?r=r||e:n=e,159!==e.kind||i||(i=e),160!==e.kind||a||(a=e))}),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:a}},T.getEffectiveTypeAnnotationNode=St,T.getTypeAnnotationNode=function(e){return e.type},T.getEffectiveReturnTypeNode=function(e){return T.isJSDocSignature(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(le(e)?T.getJSDocReturnType(e):undefined)},T.getJSDocTypeParameterDeclarations=function(e){return T.flatMap(T.getJSDocTags(e),function(e){return t=e,!T.isJSDocTemplateTag(t)||297===t.parent.kind&&t.parent.tags.some(Ie)?undefined:e.typeParameters;var t})},T.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Tt(e);return t&&St(t)},T.emitNewLineBeforeLeadingComments=Nt,T.emitNewLineBeforeLeadingCommentsOfPosition=Dt,T.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,n,r){n!==r&&It(e,n)!==It(e,r)&&t.writeLine()},T.emitComments=kt,T.emitDetachedComments=function(t,e,n,r,i,a,o){var s,c;if(o?0===i.pos&&(s=T.filter(T.getLeadingCommentRanges(t,i.pos),function(e){return m(t,e.pos)})):s=T.getLeadingCommentRanges(t,i.pos),s){for(var u=[],l=void 0,d=0,p=s;d<p.length;d++){var f=p[d];if(l)if(It(e,l.end)+2<=It(e,f.pos))break;u.push(f),l=f}u.length&&It(e,T.last(u).end)+2<=It(e,T.skipTrivia(t,i.pos))&&(Nt(e,n,i,s),kt(t,e,n,u,!1,!0,a,r),c={nodePos:i.pos,detachedCommentEndPos:T.last(u).end})}return c},T.writeCommentRange=function(e,t,n,r,i,a){if(42===e.charCodeAt(r+1))for(var o=T.computeLineAndCharacterOfPosition(t,r),s=t.length,c=void 0,u=r,l=o.line;u<i;l++){var d=l+1===s?e.length+1:t[l+1];if(u!==r){c===undefined&&(c=At(e,t[o.line],r));var p=n.getIndent()*_t()-c+At(e,u,d);if(0<p){var f=p%_t(),_=ft((p-f)/_t());for(n.rawWrite(_);f;)n.rawWrite(" "),f--}else n.rawWrite("")}h=e,g=i,m=n,y=a,b=u,v=d,I=E=void 0,E=Math.min(g,v-1),(I=h.substring(b,E).replace(/^\s+|\s+$/g,""))?(m.writeComment(I),E!==g&&m.writeLine()):m.rawWrite(y),u=d}else n.writeComment(e.substring(r,i));var h,g,m,y,b,v,E,I},T.hasModifiers=function(e){return 0!==Mt(e)},T.hasModifier=wt,T.hasStaticModifier=Vt,T.hasReadonlyModifier=Pt,T.getSelectedModifierFlags=Lt,T.getModifierFlags=Mt,T.getModifierFlagsNoCache=Ft,T.modifierToFlag=Ot,T.isLogicalOperator=function(e){return 55===e||54===e||52===e},T.isAssignmentOperator=Rt,T.tryGetClassExtendingExpressionWithTypeArguments=Ht,T.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=jt,T.isAssignmentExpression=Wt,T.isDestructuringAssignment=function(e){if(Wt(e,!0)){var t=e.left.kind;return 189===t||188===t}return!1},T.isExpressionWithTypeArgumentsInClassExtendsClause=Gt,T.isEntityNameExpression=Yt,T.isPropertyAccessEntityNameExpression=Jt,T.tryGetPropertyAccessOrIdentifierToString=function dn(e){return T.isPropertyAccessExpression(e)?dn(e.expression)+"."+e.name:T.isIdentifier(e)?T.unescapeLeadingUnderscores(e.escapedText):undefined},T.isPrototypeAccess=zt,T.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 149===e.parent.kind&&e.parent.right===e||190===e.parent.kind&&e.parent.name===e},T.isEmptyObjectLiteral=function(e){return 189===e.kind&&0===e.properties.length},T.isEmptyArrayLiteral=function(e){return 188===e.kind&&0===e.elements.length},T.getLocalSymbolForExportDefault=function(e){return(t=e)&&0<T.length(t.declarations)&&wt(t.declarations[0],512)?e.declarations[0].localSymbol:undefined;var t},T.tryExtractTSExtension=function(t){return T.find(T.supportedTSExtensionsForExtractExtension,function(e){return T.fileExtensionIs(t,e)})};var Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Kt(e){for(var t,n,r,i,a="",o=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i<131072?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):T.Debug.assert(!1,"Unexpected code point")}return t}(e),s=0,c=o.length;s<c;)t=o[s]>>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],c<=s+1?r=i=64:c<=s+2&&(i=64),a+=Ut.charAt(t)+Ut.charAt(n)+Ut.charAt(r)+Ut.charAt(i),s+=3;return a}T.convertToBase64=Kt,T.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Kt(t)},T.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var n=t.length,r=[],i=0;i<n&&t.charCodeAt(i)!==Ut.charCodeAt(64);){var a=Ut.indexOf(t[i]),o=Ut.indexOf(t[i+1]),s=Ut.indexOf(t[i+2]),c=Ut.indexOf(t[i+3]),u=(63&a)<<2|o>>4&3,l=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0==l&&0!==s?r.push(u):0==d&&0!==c?r.push(u,l):r.push(u,l,d),i+=4}return function(e){for(var t="",n=0,r=e.length;n<r;){var i=e[n];if(i<128)t+=String.fromCharCode(i),n++;else if(192==(192&i)){for(var a=63&i,o=e[++n];128==(192&o);)a=a<<6|63&o,o=e[++n];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),n++}return t}(r)},T.readJson=function(e,t){try{var n=t.readFile(e);if(!n)return{};var r=T.parseConfigFileTextToJson(e,n);return r.error?{}:r.config}catch(i){return{}}},T.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)};var Zt;function Xt(e,t){return void 0===t&&(t=e),T.Debug.assert(e<=t||-1===t),{pos:e,end:t}}function qt(e,t){return Xt(t,e.end)}function Qt(e){return e.decorators&&0<e.decorators.length?qt(e,e.decorators.end):e}function $t(e,t,n){return en(tn(e,n),t.end,n)}function en(e,t,n){return e===t||Et(n,e)===Et(n,t)}function tn(e,t){return T.positionIsSynthesized(e.pos)?-1:T.skipTrivia(t.text,e.pos)}function nn(e){return e.initializer!==undefined}function rn(e){return 33554432&e.flags?e.checkFlags:0}function an(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 196:return an(t);case 204:case 203:var n=t.operator;return 44===n||45===n?o():0;case 205:var r=t.left,i=t.operatorToken;return r===e&&Rt(i.kind)?60===i.kind?1:o():0;case 190:return t.name!==e?0:an(t);case 276:var a=an(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return T.Debug.assertNever(e)}}(a):a;case 277:return e===t.objectAssignmentInitializer?0:an(t.parent);case 188:return an(t);default:return 0}function o(){return t.parent&&222===function(e){for(;196===e.kind;)e=e.parent;return e}(t.parent).kind?1:2}}function on(e,t){for(;;){var n=t(e);if(n!==undefined)return n;var r=T.getDirectoryPath(e);if(r===e)return undefined;e=r}}function sn(e){if(32&e.flags){var t=cn(e);return!!t&&wt(t,128)}return!1}function cn(e){return T.find(e.declarations,T.isClassLike)}function un(e){return 3899392&e.flags?e.objectFlags:0}T.getNewLineCharacter=function(e,t){switch(e.newLine){case 0:return"\r\n";case 1:return"\n"}return t?t():T.sys?T.sys.newLine:"\r\n"},T.createRange=Xt,T.moveRangeEnd=function(e,t){return Xt(e.pos,t)},T.moveRangePos=qt,T.moveRangePastDecorators=Qt,T.moveRangePastModifiers=function(e){return e.modifiers&&0<e.modifiers.length?qt(e,e.modifiers.end):Qt(e)},T.isCollapsedRange=function(e){return e.pos===e.end},T.createTokenRange=function(e,t){return Xt(e,e+T.tokenToString(t).length)},T.rangeIsOnSingleLine=function(e,t){return $t(e,e,t)},T.rangeStartPositionsAreOnSameLine=function(e,t,n){return en(tn(e,n),tn(t,n),n)},T.rangeEndPositionsAreOnSameLine=function(e,t,n){return en(e.end,t.end,n)},T.rangeStartIsOnSameLineAsRangeEnd=$t,T.rangeEndIsOnSameLineAsRangeStart=function(e,t,n){return en(e.end,tn(t,n),n)},T.isNodeArrayMultiLine=function(e,t){return!en(e.pos,e.end,t)},T.positionsAreOnSameLine=en,T.getStartPositionOfRange=tn,T.isDeclarationNameOfEnumOrNamespace=function(e){var t=T.getParseTreeNode(e);if(t)switch(t.parent.kind){case 244:case 245:return t===t.parent.name}return!1},T.getInitializedVariables=function(e){return T.filter(e.declarations,nn)},T.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},T.closeFileWatcher=function(e){e.close()},T.getCheckFlags=rn,T.getDeclarationModifierFlagsFromSymbol=function(e){if(e.valueDeclaration){var t=T.getCombinedModifierFlags(e.valueDeclaration);return e.parent&&32&e.parent.flags?t:-29&t}if(6&rn(e)){var n=e.checkFlags;return(1024&n?8:256&n?4:16)|(2048&n?32:0)}return 4194304&e.flags?36:0},T.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},T.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},T.isWriteOnlyAccess=function(e){return 1===an(e)},T.isWriteAccess=function(e){return 0!==an(e)},(Zt={})[Zt.Read=0]="Read",Zt[Zt.Write=1]="Write",Zt[Zt.ReadWrite=2]="ReadWrite",T.compareDataObjects=function pn(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if("object"===zb(e[n])){if(!pn(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0},T.clearMap=function(e,t){e.forEach(t),e.clear()},T.mutateMap=function(r,i,e){var n=e.createNewValue,a=e.onDeleteValue,o=e.onExistingValue;r.forEach(function(e,t){var n=i.get(t);n===undefined?(r["delete"](t),a(e,t)):o&&o(e,n,t)}),i.forEach(function(e,t){r.has(t)||r.set(t,n(t,e))})},T.forEachAncestorDirectory=on,T.isAbstractConstructorType=function(e){return!!(16&un(e))&&!!e.symbol&&sn(e.symbol)},T.isAbstractConstructorSymbol=sn,T.getClassLikeDeclarationOfSymbol=cn,T.getObjectFlags=un,T.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},T.forSomeAncestorDirectory=function(e,t){return!!on(e,function(e){return!!t(e)||undefined})},T.isUMDExportSymbol=function(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&T.isNamespaceExportDeclaration(e.declarations[0])},T.showModuleSpecifier=function(e){var t=e.moduleSpecifier;return T.isStringLiteral(t)?t.text:E(t)},T.getLastChild=function(e){var n;return T.forEachChild(e,function(e){f(e)&&(n=e)},function(e){for(var t=e.length-1;0<=t;t--)if(f(e[t])){n=e[t];break}}),n},T.addToSeen=function(e,t,n){return void 0===n&&(n=!0),t=String(t),!e.has(t)&&(e.set(t,n),!0)},T.isObjectTypeDeclaration=function(e){return T.isClassLike(e)||T.isInterfaceDeclaration(e)||T.isTypeLiteralNode(e)},T.isTypeNodeKind=function(e){return 164<=e&&e<=184||121===e||144===e||136===e||147===e||137===e||124===e||139===e||140===e||101===e||107===e||142===e||97===e||133===e||212===e||290===e||291===e||292===e||293===e||294===e||295===e||296===e},T.isAccessExpression=function(e){return 190===e.kind||191===e.kind},T.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}}(rg=rg||{}),(h=rg=rg||{}).getDefaultLibFileName=function(e){switch(e.target){case 8:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},h.textSpanEnd=fo,h.textSpanIsEmpty=_o,h.textSpanContainsPosition=function(e,t){return t>=e.start&&t<fo(e)},h.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},h.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&fo(t)<=fo(e)},h.textSpanOverlapsWith=function(e,t){return ho(e,t)!==undefined},h.textSpanOverlap=ho,h.textSpanIntersectsWithTextSpan=function(e,t){return go(e.start,e.length,t.start,t.length)},h.textSpanIntersectsWith=function(e,t,n){return go(e.start,e.length,t,n)},h.decodedTextSpanIntersectsWith=go,h.textSpanIntersectsWithPosition=function(e,t){return t<=fo(e)&&t>=e.start},h.textSpanIntersection=mo,h.createTextSpan=yo,h.createTextSpanFromBounds=bo,h.textChangeRangeNewSpan=function(e){return yo(e.span.start,e.newLength)},h.textChangeRangeIsUnchanged=function(e){return _o(e.span)&&0===e.newLength},h.createTextChangeRange=vo,h.unchangedTextChangeRange=vo(yo(0,0),0),h.collapseTextChangeRangesAcrossMultipleVersions=function(e){if(0===e.length)return h.unchangedTextChangeRange;if(1===e.length)return e[0];for(var t=e[0],n=t.span.start,r=fo(t.span),i=n+t.newLength,a=1;a<e.length;a++)var o=e[a],s=r,c=i,u=o.span.start,l=fo(o.span),d=u+o.newLength,n=Math.min(n,u),r=Math.max(s,s+(l-c)),i=Math.max(d,d+(c-l));return vo(bo(n,r),i-n)},h.getTypeParameterOwner=function(e){if(e&&151===e.kind)for(var t=e;t;t=t.parent)if(h.isFunctionLike(t)||h.isClassLike(t)||242===t.kind)return t},h.isParameterPropertyDeclaration=function(e){return h.hasModifier(e,92)&&158===e.parent.kind},h.isEmptyBindingPattern=Eo,h.isEmptyBindingElement=Io,h.walkUpBindingElementsAndPatterns=To,h.getCombinedModifierFlags=function(e){return Co(e,h.getModifierFlags)},h.getCombinedNodeFlags=function(e){return Co(e,function(e){return e.flags})},h.validateLocaleAndSetLanguage=function(e,u,t){var n,r=/^([a-z]+)([_\-]([a-z]+))?$/.exec(e.toLowerCase());function i(e,t,n){var r=h.normalizePath(u.getExecutingFilePath()),i=h.getDirectoryPath(r),a=h.combinePaths(i,e);if(t&&(a=a+"-"+t),a=u.resolvePath(h.combinePaths(a,"diagnosticMessages.generated.json")),u.fileExists(a)){var o="";try{o=u.readFile(a)}catch(s){return void(n&&n.push(h.createCompilerDiagnostic(h.Diagnostics.Unable_to_open_file_0,a)))}try{h.localizedDiagnosticMessages=JSON.parse(o)}catch(c){return void(n&&n.push(h.createCompilerDiagnostic(h.Diagnostics.Corrupted_locale_file_0,a)))}return 1}}r?(i(n=r[1],r[3],t)||i(n,undefined,t),h.setUILocale(e)):t&&t.push(h.createCompilerDiagnostic(h.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"))},h.getOriginalNode=Bo,h.isParseTreeNode=xo,h.getParseTreeNode=function(e,t){return e!==undefined&&!xo(e)&&(!xo(e=Bo(e))||t&&!t(e))?undefined:e},h.escapeLeadingUnderscores=function(e){return 2<=e.length&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},h.unescapeLeadingUnderscores=So,h.idText=function(e){return So(e.escapedText)},h.symbolName=function(e){return So(e.escapedName)},h.getNameOfJSDocTypedef=Do,h.isNamedDeclaration=function(e){return!!e.name},h.getNonAssignedNameOfDeclaration=ko,h.getNameOfDeclaration=Ao,h.getJSDocParameterTags=wo,h.getJSDocTypeParameterTags=function(e){var t=e.name.escapedText;return Mo(e.parent).filter(function(e){return h.isJSDocTemplateTag(e)&&e.typeParameters.some(function(e){return e.name.escapedText===t})})},h.hasJSDocParameterTags=function(e){return!!Fo(e,h.isJSDocParameterTag)},h.getJSDocAugmentsTag=function(e){return Fo(e,h.isJSDocAugmentsTag)},h.getJSDocClassTag=function(e){return Fo(e,h.isJSDocClassTag)},h.getJSDocEnumTag=function(e){return Fo(e,h.isJSDocEnumTag)},h.getJSDocThisTag=function(e){return Fo(e,h.isJSDocThisTag)},h.getJSDocReturnTag=Vo,h.getJSDocTemplateTag=function(e){return Fo(e,h.isJSDocTemplateTag)},h.getJSDocTypeTag=Po,h.getJSDocType=Lo,h.getJSDocReturnType=function(e){var t=Vo(e);if(t&&t.typeExpression)return t.typeExpression.type;var n=Po(e);if(n&&n.typeExpression){var r=n.typeExpression.type;if(h.isTypeLiteralNode(r)){var i=h.find(r.members,h.isCallSignatureDeclaration);return i&&i.type}if(h.isFunctionTypeNode(r))return r.type}},h.getJSDocTags=Mo,h.getAllJSDocTagsOfKind=function(e,t){return Mo(e).filter(function(e){return e.kind===t})},h.getEffectiveTypeParameterDeclarations=function(e){if(h.isJSDocSignature(e))return h.emptyArray;if(h.isJSDocTypeAlias(e))return h.Debug.assert(297===e.parent.kind),h.flatMap(e.parent.tags,function(e){return h.isJSDocTemplateTag(e)?e.typeParameters:undefined});if(e.typeParameters)return e.typeParameters;if(h.isInJSFile(e)){var t=h.getJSDocTypeParameterDeclarations(e);if(t.length)return t;var n=Lo(e);if(n&&h.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return h.emptyArray},h.getEffectiveConstraintOfTypeParameter=function(e){return e.constraint?e.constraint:h.isJSDocTemplateTag(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:undefined},(g=rg=rg||{}).isNumericLiteral=function(e){return 8===e.kind},g.isBigIntLiteral=function(e){return 9===e.kind},g.isStringLiteral=function(e){return 10===e.kind},g.isJsxText=function(e){return 11===e.kind},g.isRegularExpressionLiteral=function(e){return 13===e.kind},g.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},g.isTemplateHead=function(e){return 15===e.kind},g.isTemplateMiddle=function(e){return 16===e.kind},g.isTemplateTail=function(e){return 17===e.kind},g.isIdentifier=Oo,g.isQualifiedName=function(e){return 149===e.kind},g.isComputedPropertyName=function(e){return 150===e.kind},g.isTypeParameterDeclaration=function(e){return 151===e.kind},g.isParameter=function(e){return 152===e.kind},g.isDecorator=function(e){return 153===e.kind},g.isPropertySignature=function(e){return 154===e.kind},g.isPropertyDeclaration=function(e){return 155===e.kind},g.isMethodSignature=function(e){return 156===e.kind},g.isMethodDeclaration=function(e){return 157===e.kind},g.isConstructorDeclaration=function(e){return 158===e.kind},g.isGetAccessorDeclaration=function(e){return 159===e.kind},g.isSetAccessorDeclaration=function(e){return 160===e.kind},g.isCallSignatureDeclaration=function(e){return 161===e.kind},g.isConstructSignatureDeclaration=function(e){return 162===e.kind},g.isIndexSignatureDeclaration=function(e){return 163===e.kind},g.isGetOrSetAccessorDeclaration=function(e){return 160===e.kind||159===e.kind},g.isTypePredicateNode=function(e){return 164===e.kind},g.isTypeReferenceNode=Ro,g.isFunctionTypeNode=function(e){return 166===e.kind},g.isConstructorTypeNode=function(e){return 167===e.kind},g.isTypeQueryNode=function(e){return 168===e.kind},g.isTypeLiteralNode=function(e){return 169===e.kind},g.isArrayTypeNode=function(e){return 170===e.kind},g.isTupleTypeNode=function(e){return 171===e.kind},g.isUnionTypeNode=function(e){return 174===e.kind},g.isIntersectionTypeNode=function(e){return 175===e.kind},g.isConditionalTypeNode=function(e){return 176===e.kind},g.isInferTypeNode=function(e){return 177===e.kind},g.isParenthesizedTypeNode=function(e){return 178===e.kind},g.isThisTypeNode=function(e){return 179===e.kind},g.isTypeOperatorNode=function(e){return 180===e.kind},g.isIndexedAccessTypeNode=function(e){return 181===e.kind},g.isMappedTypeNode=function(e){return 182===e.kind},g.isLiteralTypeNode=function(e){return 183===e.kind},g.isImportTypeNode=function(e){return 184===e.kind},g.isObjectBindingPattern=function(e){return 185===e.kind},g.isArrayBindingPattern=function(e){return 186===e.kind},g.isBindingElement=function(e){return 187===e.kind},g.isArrayLiteralExpression=function(e){return 188===e.kind},g.isObjectLiteralExpression=function(e){return 189===e.kind},g.isPropertyAccessExpression=function(e){return 190===e.kind},g.isElementAccessExpression=function(e){return 191===e.kind},g.isCallExpression=function(e){return 192===e.kind},g.isNewExpression=function(e){return 193===e.kind},g.isTaggedTemplateExpression=function(e){return 194===e.kind},g.isTypeAssertion=function(e){return 195===e.kind},g.isConstTypeReference=function(e){return Ro(e)&&Oo(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},g.isParenthesizedExpression=function(e){return 196===e.kind},g.skipPartiallyEmittedExpressions=function(e){for(;314===e.kind;)e=e.expression;return e},g.isFunctionExpression=function(e){return 197===e.kind},g.isArrowFunction=function(e){return 198===e.kind},g.isDeleteExpression=function(e){return 199===e.kind},g.isTypeOfExpression=function(e){return 200===e.kind},g.isVoidExpression=function(e){return 201===e.kind},g.isAwaitExpression=function(e){return 202===e.kind},g.isPrefixUnaryExpression=function(e){return 203===e.kind},g.isPostfixUnaryExpression=function(e){return 204===e.kind},g.isBinaryExpression=function(e){return 205===e.kind},g.isConditionalExpression=function(e){return 206===e.kind},g.isTemplateExpression=function(e){return 207===e.kind},g.isYieldExpression=function(e){return 208===e.kind},g.isSpreadElement=function(e){return 209===e.kind},g.isClassExpression=function(e){return 210===e.kind},g.isOmittedExpression=function(e){return 211===e.kind},g.isExpressionWithTypeArguments=function(e){return 212===e.kind},g.isAsExpression=function(e){return 213===e.kind},g.isNonNullExpression=function(e){return 214===e.kind},g.isMetaProperty=function(e){return 215===e.kind},g.isTemplateSpan=function(e){return 217===e.kind},g.isSemicolonClassElement=function(e){return 218===e.kind},g.isBlock=function(e){return 219===e.kind},g.isVariableStatement=function(e){return 220===e.kind},g.isEmptyStatement=function(e){return 221===e.kind},g.isExpressionStatement=function(e){return 222===e.kind},g.isIfStatement=function(e){return 223===e.kind},g.isDoStatement=function(e){return 224===e.kind},g.isWhileStatement=function(e){return 225===e.kind},g.isForStatement=function(e){return 226===e.kind},g.isForInStatement=function(e){return 227===e.kind},g.isForOfStatement=function(e){return 228===e.kind},g.isContinueStatement=function(e){return 229===e.kind},g.isBreakStatement=function(e){return 230===e.kind},g.isBreakOrContinueStatement=function(e){return 230===e.kind||229===e.kind},g.isReturnStatement=function(e){return 231===e.kind},g.isWithStatement=function(e){return 232===e.kind},g.isSwitchStatement=function(e){return 233===e.kind},g.isLabeledStatement=function(e){return 234===e.kind},g.isThrowStatement=function(e){return 235===e.kind},g.isTryStatement=function(e){return 236===e.kind},g.isDebuggerStatement=function(e){return 237===e.kind},g.isVariableDeclaration=function(e){return 238===e.kind},g.isVariableDeclarationList=function(e){return 239===e.kind},g.isFunctionDeclaration=function(e){return 240===e.kind},g.isClassDeclaration=function(e){return 241===e.kind},g.isInterfaceDeclaration=function(e){return 242===e.kind},g.isTypeAliasDeclaration=function(e){return 243===e.kind},g.isEnumDeclaration=function(e){return 244===e.kind},g.isModuleDeclaration=function(e){return 245===e.kind},g.isModuleBlock=function(e){return 246===e.kind},g.isCaseBlock=function(e){return 247===e.kind},g.isNamespaceExportDeclaration=function(e){return 248===e.kind},g.isImportEqualsDeclaration=function(e){return 249===e.kind},g.isImportDeclaration=function(e){return 250===e.kind},g.isImportClause=function(e){return 251===e.kind},g.isNamespaceImport=function(e){return 252===e.kind},g.isNamedImports=function(e){return 253===e.kind},g.isImportSpecifier=function(e){return 254===e.kind},g.isExportAssignment=function(e){return 255===e.kind},g.isExportDeclaration=function(e){return 256===e.kind},g.isNamedExports=function(e){return 257===e.kind},g.isExportSpecifier=function(e){return 258===e.kind},g.isMissingDeclaration=function(e){return 259===e.kind},g.isExternalModuleReference=function(e){return 260===e.kind},g.isJsxElement=function(e){return 261===e.kind},g.isJsxSelfClosingElement=function(e){return 262===e.kind},g.isJsxOpeningElement=function(e){return 263===e.kind},g.isJsxClosingElement=function(e){return 264===e.kind},g.isJsxFragment=function(e){return 265===e.kind},g.isJsxOpeningFragment=function(e){return 266===e.kind},g.isJsxClosingFragment=function(e){return 267===e.kind},g.isJsxAttribute=function(e){return 268===e.kind},g.isJsxAttributes=function(e){return 269===e.kind},g.isJsxSpreadAttribute=function(e){return 270===e.kind},g.isJsxExpression=function(e){return 271===e.kind},g.isCaseClause=function(e){return 272===e.kind},g.isDefaultClause=function(e){return 273===e.kind},g.isHeritageClause=function(e){return 274===e.kind},g.isCatchClause=function(e){return 275===e.kind},g.isPropertyAssignment=function(e){return 276===e.kind},g.isShorthandPropertyAssignment=function(e){return 277===e.kind},g.isSpreadAssignment=function(e){return 278===e.kind},g.isEnumMember=function(e){return 279===e.kind},g.isSourceFile=function(e){return 285===e.kind},g.isBundle=function(e){return 286===e.kind},g.isUnparsedSource=function(e){return 287===e.kind},g.isUnparsedPrepend=function(e){return 281===e.kind},g.isUnparsedTextLike=Ho,g.isUnparsedNode=function(e){return Ho(e)||280===e.kind||284===e.kind},g.isJSDocTypeExpression=function(e){return 289===e.kind},g.isJSDocAllType=function(e){return 290===e.kind},g.isJSDocUnknownType=function(e){return 291===e.kind},g.isJSDocNullableType=function(e){return 292===e.kind},g.isJSDocNonNullableType=function(e){return 293===e.kind},g.isJSDocOptionalType=function(e){return 294===e.kind},g.isJSDocFunctionType=function(e){return 295===e.kind},g.isJSDocVariadicType=function(e){return 296===e.kind},g.isJSDoc=function(e){return 297===e.kind},g.isJSDocAugmentsTag=function(e){return 301===e.kind},g.isJSDocClassTag=function(e){return 302===e.kind},g.isJSDocEnumTag=function(e){return 304===e.kind},g.isJSDocThisTag=function(e){return 307===e.kind},g.isJSDocParameterTag=function(e){return 305===e.kind},g.isJSDocReturnTag=function(e){return 306===e.kind},g.isJSDocTypeTag=function(e){return 308===e.kind},g.isJSDocTemplateTag=function(e){return 309===e.kind},g.isJSDocTypedefTag=function(e){return 310===e.kind},g.isJSDocPropertyTag=function(e){return 311===e.kind},g.isJSDocPropertyLikeTag=function(e){return 311===e.kind||305===e.kind},g.isJSDocTypeLiteral=function(e){return 298===e.kind},g.isJSDocCallbackTag=function(e){return 303===e.kind},g.isJSDocSignature=function(e){return 299===e.kind},function(o){function t(e){return 149<=e}function n(e){return 8<=e&&e<=14}function r(e){return 14<=e&&e<=17}function i(e){switch(e){case 119:case 122:case 78:case 126:case 81:case 86:case 116:case 114:case 115:case 134:case 117:return!0}return!1}function a(e){return!!(92&o.modifierToFlag(e))}function s(e){return e&&u(e.kind)}function c(e){switch(e){case 240:case 157:case 158:case 159:case 160:case 197:case 198:return!0;default:return!1}}function u(e){switch(e){case 156:case 161:case 299:case 162:case 163:case 166:case 295:case 167:return!0;default:return c(e)}}function l(e){var t=e.kind;return 158===t||155===t||157===t||159===t||160===t||163===t||218===t}function d(e){var t=e.kind;return 162===t||161===t||154===t||156===t||163===t}function p(e){var t=e.kind;return 276===t||277===t||278===t||157===t||159===t||160===t}function f(e){switch(e.kind){case 185:case 189:return!0}return!1}function _(e){switch(e.kind){case 186:case 188:return!0}return!1}function h(e){switch(e){case 190:case 191:case 193:case 192:case 261:case 262:case 265:case 194:case 188:case 196:case 189:case 210:case 197:case 73:case 13:case 8:case 9:case 10:case 14:case 207:case 88:case 97:case 101:case 103:case 99:case 214:case 215:case 93:return!0;default:return!1}}function g(e){switch(e){case 203:case 204:case 199:case 200:case 201:case 202:case 195:return!0;default:return h(e)}}function m(e){return function(e){switch(e){case 206:case 208:case 198:case 205:case 209:case 213:case 211:case 315:case 314:return!0;default:return g(e)}}(o.skipPartiallyEmittedExpressions(e).kind)}function y(e){return 314===e.kind}function b(e){return 313===e.kind}function v(e){return 240===e||259===e||241===e||242===e||243===e||244===e||245===e||250===e||249===e||256===e||255===e||248===e}function E(e){return 230===e||229===e||237===e||224===e||222===e||221===e||227===e||228===e||226===e||223===e||234===e||231===e||233===e||235===e||236===e||220===e||225===e||232===e||313===e||317===e||316===e}function I(e){return 300<=e.kind&&e.kind<=311}function T(e){return!!e.initializer}o.isSyntaxList=function(e){return 312===e.kind},o.isNode=function(e){return t(e.kind)},o.isNodeKind=t,o.isToken=function(e){return 0<=e.kind&&e.kind<=148},o.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},o.isLiteralKind=n,o.isLiteralExpression=function(e){return n(e.kind)},o.isTemplateLiteralKind=r,o.isTemplateLiteralToken=function(e){return r(e.kind)},o.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},o.isImportOrExportSpecifier=function(e){return o.isImportSpecifier(e)||o.isExportSpecifier(e)},o.isStringTextContainingNode=function(e){return 10===e.kind||r(e.kind)},o.isGeneratedIdentifier=function(e){return o.isIdentifier(e)&&0<(7&e.autoGenerateFlags)},o.isModifierKind=i,o.isParameterPropertyModifier=a,o.isClassMemberModifier=function(e){return a(e)||117===e},o.isModifier=function(e){return i(e.kind)},o.isEntityName=function(e){var t=e.kind;return 149===t||73===t},o.isPropertyName=function(e){var t=e.kind;return 73===t||10===t||8===t||150===t},o.isBindingName=function(e){var t=e.kind;return 73===t||185===t||186===t},o.isFunctionLike=s,o.isFunctionLikeDeclaration=function(e){return e&&c(e.kind)},o.isFunctionLikeKind=u,o.isFunctionOrModuleBlock=function(e){return o.isSourceFile(e)||o.isModuleBlock(e)||o.isBlock(e)&&s(e.parent)},o.isClassElement=l,o.isClassLike=function(e){return e&&(241===e.kind||210===e.kind)},o.isAccessor=function(e){return e&&(159===e.kind||160===e.kind)},o.isMethodOrAccessor=function(e){switch(e.kind){case 157:case 159:case 160:return!0;default:return!1}},o.isTypeElement=d,o.isClassOrTypeElement=function(e){return d(e)||l(e)},o.isObjectLiteralElementLike=p,o.isTypeNode=function(e){return o.isTypeNodeKind(e.kind)},o.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 166:case 167:return!0}return!1},o.isBindingPattern=function(e){if(e){var t=e.kind;return 186===t||185===t}return!1},o.isAssignmentPattern=function(e){var t=e.kind;return 188===t||189===t},o.isArrayBindingElement=function(e){var t=e.kind;return 187===t||211===t},o.isDeclarationBindingElement=function(e){switch(e.kind){case 238:case 152:case 187:return!0}return!1},o.isBindingOrAssignmentPattern=function(e){return f(e)||_(e)},o.isObjectBindingOrAssignmentPattern=f,o.isArrayBindingOrAssignmentPattern=_,o.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 190===t||149===t||184===t},o.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 190===t||149===t},o.isCallLikeExpression=function(e){switch(e.kind){case 263:case 262:case 192:case 193:case 194:case 153:return!0;default:return!1}},o.isCallOrNewExpression=function(e){return 192===e.kind||193===e.kind},o.isTemplateLiteral=function(e){var t=e.kind;return 207===t||14===t},o.isLeftHandSideExpression=function(e){return h(o.skipPartiallyEmittedExpressions(e).kind)},o.isUnaryExpression=function(e){return g(o.skipPartiallyEmittedExpressions(e).kind)},o.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 204:return!0;case 203:return 44===e.operator||45===e.operator;default:return!1}},o.isExpression=m,o.isAssertionExpression=function(e){var t=e.kind;return 195===t||213===t},o.isPartiallyEmittedExpression=y,o.isNotEmittedStatement=b,o.isNotEmittedOrPartiallyEmittedNode=function(e){return b(e)||y(e)},o.isIterationStatement=function C(e,t){switch(e.kind){case 226:case 227:case 228:case 224:case 225:return!0;case 234:return t&&C(e.statement,t)}return!1},o.isForInOrOfStatement=function(e){return 227===e.kind||228===e.kind},o.isConciseBody=function(e){return o.isBlock(e)||m(e)},o.isFunctionBody=function(e){return o.isBlock(e)},o.isForInitializer=function(e){return o.isVariableDeclarationList(e)||m(e)},o.isModuleBody=function(e){var t=e.kind;return 246===t||245===t||73===t},o.isNamespaceBody=function(e){var t=e.kind;return 246===t||245===t},o.isJSDocNamespaceBody=function(e){var t=e.kind;return 73===t||245===t},o.isNamedImportBindings=function(e){var t=e.kind;return 253===t||252===t},o.isModuleOrEnumDeclaration=function(e){return 245===e.kind||244===e.kind},o.isDeclaration=function(e){return 151===e.kind?e.parent&&309!==e.parent.kind||o.isInJSFile(e):198===(t=e.kind)||187===t||241===t||210===t||158===t||244===t||279===t||258===t||240===t||197===t||159===t||251===t||249===t||254===t||242===t||268===t||157===t||156===t||245===t||248===t||252===t||152===t||276===t||155===t||154===t||160===t||277===t||243===t||151===t||238===t||310===t||303===t||311===t;var t},o.isDeclarationStatement=function(e){return v(e.kind)},o.isStatementButNotDeclaration=function(e){return E(e.kind)},o.isStatement=function(e){var t=e.kind;return E(t)||v(t)||function(e){if(219!==e.kind)return!1;if(e.parent!==undefined&&(236===e.parent.kind||275===e.parent.kind))return!1;return!o.isFunctionBlock(e)}(e)},o.isModuleReference=function(e){var t=e.kind;return 260===t||149===t||73===t},o.isJsxTagNameExpression=function(e){var t=e.kind;return 101===t||73===t||190===t},o.isJsxChild=function(e){var t=e.kind;return 261===t||271===t||262===t||11===t||265===t},o.isJsxAttributeLike=function(e){var t=e.kind;return 268===t||270===t},o.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||271===t},o.isJsxOpeningLikeElement=function(e){var t=e.kind;return 263===t||262===t},o.isCaseOrDefaultClause=function(e){var t=e.kind;return 272===t||273===t},o.isJSDocNode=function(e){return 289<=e.kind&&e.kind<=311},o.isJSDocCommentContainingNode=function(e){return 297===e.kind||I(e)||o.isJSDocTypeLiteral(e)||o.isJSDocSignature(e)},o.isJSDocTag=I,o.isSetAccessor=function(e){return 160===e.kind},o.isGetAccessor=function(e){return 159===e.kind},o.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&0<t.length},o.hasType=function(e){return!!e.type},o.hasInitializer=T,o.hasOnlyExpressionInitializer=function(e){return T(e)&&!o.isForStatement(e)&&!o.isForInStatement(e)&&!o.isForOfStatement(e)&&!o.isJsxAttribute(e)},o.isObjectLiteralElement=function(e){return 268===e.kind||270===e.kind||p(e)},o.isTypeReferenceType=function(e){return 165===e.kind||212===e.kind};o.guessIndentation=function(e){for(var t=1073741823,n=0,r=e;n<r.length;n++){var i=r[n];if(i.length){for(var a=0;a<i.length&&a<t&&o.isWhiteSpaceLike(i.charCodeAt(a));a++);if(a<t&&(t=a),0===t)return 0}}return 1073741823===t?undefined:t},o.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(rg=rg||{}),function(l){function e(e,t){this.flags=e,this.escapedName=t,this.declarations=undefined,this.valueDeclaration=undefined,this.id=undefined,this.mergeId=undefined,this.parent=undefined}function t(e,t){this.flags=t,l.Debug.isDebugging&&(this.checker=e)}function n(){}function r(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=undefined,this.original=undefined}function i(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||function(e){return e}}function a(e,n,r){return void 0===r&&(r=0),e.replace(/{(\d+)}/g,function(e,t){return""+l.Debug.assertDefined(n[+t+r])})}function o(e){return l.localizedDiagnosticMessages&&l.localizedDiagnosticMessages[e.key]||e.message}function s(e){return e.file?e.file.path:undefined}function c(e,t){return u(e,t)||function(e,n){if(!e.relatedInformation&&!n.relatedInformation)return 0;if(e.relatedInformation&&n.relatedInformation)return l.compareValues(e.relatedInformation.length,n.relatedInformation.length)||l.forEach(e.relatedInformation,function(e,t){return c(e,n.relatedInformation[t])})||0;return e.relatedInformation?-1:1}(e,t)||0}function u(e,t){return l.compareStringsCaseSensitive(s(e),s(t))||l.compareValues(e.start,t.start)||l.compareValues(e.length,t.length)||l.compareValues(e.code,t.code)||function(e,t){var n=e,r=t;for(;n&&r;){var i=l.isString(n)?n:n.messageText,a=l.isString(r)?r:r.messageText,o=l.compareStringsCaseSensitive(i,a);if(o)return o;n=l.isString(n)?undefined:n.next,r=l.isString(r)?undefined:r.next}return n||r?n?1:-1:0}(e.messageText,t.messageText)||0}function d(e){return e.target||0}function p(e){return"number"==typeof e.module?e.module:2<=d(e)?l.ModuleKind.ES2015:l.ModuleKind.CommonJS}function f(e){return!(!e.declaration&&!e.composite)}function _(e,t){return e[t]===undefined?!!e.strict:!!e[t]}function h(e,t){return t.strictFlag?_(e,t.name):e[t.name]}l.isNamedImportsOrExports=function(e){return 253===e.kind||257===e.kind},l.objectAllocator={getNodeConstructor:function(){return r},getTokenConstructor:function(){return r},getIdentifierConstructor:function(){return r},getSourceFileConstructor:function(){return r},getSymbolConstructor:function(){return e},getTypeConstructor:function(){return t},getSignatureConstructor:function(){return n},getSourceMapSourceConstructor:function(){return i}},l.formatStringFromArgs=a,l.getLocaleSpecificMessage=o,l.createFileDiagnostic=function(e,t,n,r){l.Debug.assertGreaterThanOrEqual(t,0),l.Debug.assertGreaterThanOrEqual(n,0),e&&(l.Debug.assertLessThanOrEqual(t,e.text.length),l.Debug.assertLessThanOrEqual(t+n,e.text.length));var i=o(r);return 4<arguments.length&&(i=a(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary}},l.formatMessage=function(e,t){var n=o(t);return 2<arguments.length&&(n=a(n,arguments,2)),n},l.createCompilerDiagnostic=function(e){var t=o(e);return 1<arguments.length&&(t=a(t,arguments,1)),{file:undefined,start:undefined,length:undefined,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},l.createCompilerDiagnosticFromMessageChain=function(e){return{file:undefined,start:undefined,length:undefined,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},l.chainDiagnosticMessages=function(e,t){var n=o(t);return 2<arguments.length&&(n=a(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}},l.concatenateDiagnosticMessageChains=function(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e},l.compareDiagnostics=c,l.compareDiagnosticsSkipRelatedInformation=u,l.getEmitScriptTarget=d,l.getEmitModuleKind=p,l.getEmitModuleResolutionKind=function(e){var t=e.moduleResolution;return t===undefined&&(t=p(e)===l.ModuleKind.CommonJS?l.ModuleResolutionKind.NodeJs:l.ModuleResolutionKind.Classic),t},l.hasJsonModuleEmitEnabled=function(e){switch(p(e)){case l.ModuleKind.CommonJS:case l.ModuleKind.AMD:case l.ModuleKind.ES2015:case l.ModuleKind.ESNext:return!0;default:return!1}},l.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},l.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},l.getAreDeclarationMapsEnabled=function(e){return!(!f(e)||!e.declarationMap)},l.getAllowSyntheticDefaultImports=function(e){var t=p(e);return e.allowSyntheticDefaultImports!==undefined?e.allowSyntheticDefaultImports:e.esModuleInterop||t===l.ModuleKind.System},l.getEmitDeclarations=f,l.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},l.getStrictOptionValue=_,l.compilerOptionsAffectSemanticDiagnostics=function(t,n){return n!==t&&l.semanticDiagnosticsOptionDeclarations.some(function(e){return!l.isJsonEqual(h(n,e),h(t,e))})},l.compilerOptionsAffectEmit=function(t,n){return n!==t&&l.affectsEmitOptionDeclarations.some(function(e){return!l.isJsonEqual(h(n,e),h(t,e))})},l.getCompilerOptionValue=h,l.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0},l.directorySeparator="/";var g="\\",m="://",y=/\\/g;function b(e){return e.replace(y,l.directorySeparator)}function v(e){return 97<=e&&e<=122||65<=e&&e<=90}function E(e){if(!e)return 0;var t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;var n=e.indexOf(47===t?l.directorySeparator:g,2);return n<0?e.length:n+1}if(v(t)&&58===e.charCodeAt(1)){var r=e.charCodeAt(2);if(47===r||92===r)return 3;if(2===e.length)return 2}var i=e.indexOf(m);if(-1===i)return 0;var a=i+m.length,o=e.indexOf(l.directorySeparator,a);if(-1===o)return~e.length;var s=e.slice(0,i),c=e.slice(a,o);if("file"===s&&(""===c||"localhost"===c)&&v(e.charCodeAt(o+1))){var u=function(e,t){var n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){var r=e.charCodeAt(t+2);if(97===r||65===r)return t+3}return-1}(e,o+2);if(-1!==u){if(47===e.charCodeAt(u))return~(u+1);if(u===e.length)return~u}}return~(o+1)}function I(e){var t=E(e);return t<0?~t:t}function T(e){return 0<E(e)}function C(e,t){void 0===t&&(t="");var n,r,i,a,o=I(e=l.combinePaths(t,e));return r=o,i=(n=e).substring(0,r),(a=n.substring(r).split(l.directorySeparator)).length&&!l.lastOrUndefined(a)&&a.pop(),[i].concat(a)}function B(e){if(!l.some(e))return[];for(var t=[e[0]],n=1;n<e.length;n++){var r=e[n];if(r&&"."!==r){if(".."===r)if(1<t.length){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function x(e,t){return B(C(e,t))}function S(e){return 0===e.length?"":(e[0]&&l.ensureTrailingDirectorySeparator(e[0]))+e.slice(1).join(l.directorySeparator)}l.normalizeSlashes=b,l.getRootLength=I,l.normalizePath=function(e){return l.resolvePath(e)},l.normalizePathAndParts=function(e){var t=B(C(e=b(e))),n=t[0],r=t.slice(1);if(r.length){var i=n+r.join(l.directorySeparator);return{path:l.hasTrailingDirectorySeparator(e)?l.ensureTrailingDirectorySeparator(i):i,parts:r}}return{path:n,parts:r}},l.getDirectoryPath=function(e){var t=I(e=b(e));return t===e.length?e:(e=l.removeTrailingDirectorySeparator(e)).slice(0,Math.max(t,e.lastIndexOf(l.directorySeparator)))},l.startsWithDirectory=function(e,t,n){var r=n(e),i=n(t);return l.startsWith(r,i+"/")||l.startsWith(r,i+"\\")},l.isUrl=function(e){return E(e)<0},l.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},l.isRootedDiskPath=T,l.isDiskPathRoot=function(e){var t=E(e);return 0<t&&t===e.length},l.convertToRelativePath=function(e,t,n){return T(e)?l.getRelativePathToDirectoryOrUrl(t,e,t,n,!1):e},l.getPathComponents=C,l.reducePathComponents=B,l.getNormalizedPathComponents=x,l.getNormalizedAbsolutePath=function(e,t){return S(x(e,t))},l.getPathFromPathComponents=S,l.getNormalizedAbsolutePathWithoutRoot=function(e,t){return 0===(n=x(e,t)).length?"":n.slice(1).join(l.directorySeparator);var n}}(rg=rg||{}),function(B){function c(e,t,n,r){for(var i=B.reducePathComponents(B.getPathComponents(e)),a=B.reducePathComponents(B.getPathComponents(t)),o=0;o<i.length&&o<a.length;o++){var s=r(i[o]),c=r(a[o]);if(!(0===o?B.equateStringsCaseInsensitive:n)(s,c))break}if(0===o)return a;for(var u=a.slice(o),l=[];o<i.length;o++)l.push("..");return[""].concat(l,u)}function r(e,t,n){B.Debug.assert(0<B.getRootLength(e)==0<B.getRootLength(t),"Paths must either both be absolute or both be relative");var r="function"==typeof n?n:B.identity,i=c(e,t,"boolean"==typeof n&&n?B.equateStringsCaseInsensitive:B.equateStringsCaseSensitive,r);return B.getPathFromPathComponents(i)}function i(e){return 0!==B.getRootLength(e)||B.pathIsRelative(e)?e:"./"+e}function a(e,t,n){if(e=B.normalizeSlashes(e),B.getRootLength(e)===e.length)return"";var r=(e=g(e)).slice(Math.max(B.getRootLength(e),e.lastIndexOf(B.directorySeparator)+1)),i=t!==undefined&&n!==undefined?W(r,t,n):undefined;return i?r.slice(0,r.length-i.length):r}function x(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e&&B.normalizeSlashes(e);for(var r=0,i=t;r<i.length;r++){var a=i[r];a&&(a=B.normalizeSlashes(a),e=e&&0===B.getRootLength(a)?s(e)+a:a)}return e}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=B.some(t)?x.apply(void 0,[e].concat(t)):B.normalizeSlashes(e),i=B.getPathFromPathComponents(B.reducePathComponents(B.getPathComponents(r)));return i&&o(r)?s(i):i}function o(e){if(0===e.length)return!1;var t=e.charCodeAt(e.length-1);return 47===t||92===t}function g(e){return o(e)?e.substr(0,e.length-1):e}function s(e){return o(e)?e:e+B.directorySeparator}B.getPathComponentsRelativeTo=c,B.getRelativePathFromFile=function(e,t,n){return i(r(B.getDirectoryPath(e),t,n))},B.getRelativePathFromDirectory=r,B.getRelativePathToDirectoryOrUrl=function(e,t,n,r,i){var a,o=c(u(n,e),u(n,t),B.equateStringsCaseSensitive,r),s=o[0];return i&&B.isRootedDiskPath(s)&&(a=s.charAt(0)===B.directorySeparator?"file://":"file:///",o[0]=a+s),B.getPathFromPathComponents(o)},B.ensurePathIsNonModuleName=i,B.getBaseFileName=a,B.combinePaths=x,B.resolvePath=u,B.hasTrailingDirectorySeparator=o,B.removeTrailingDirectorySeparator=g,B.ensureTrailingDirectorySeparator=s;var f=/(^|\/)\.{0,2}($|\/)/;function l(e,t,n){if(e===t)return 0;if(e===undefined)return-1;if(t===undefined)return 1;var r=e.substring(0,B.getRootLength(e)),i=t.substring(0,B.getRootLength(t)),a=B.compareStringsCaseInsensitive(r,i);if(0!==a)return a;var o=e.substring(r.length),s=t.substring(i.length);if(!f.test(o)&&!f.test(s))return n(o,s);for(var c=B.reducePathComponents(B.getPathComponents(e)),u=B.reducePathComponents(B.getPathComponents(t)),l=Math.min(c.length,u.length),d=1;d<l;d++){var p=n(c[d],u[d]);if(0!==p)return p}return B.compareValues(c.length,u.length)}function _(e,t,n,r){if("string"==typeof n?(e=x(n,e),t=x(n,t)):"boolean"==typeof n&&(r=n),e===undefined||t===undefined)return!1;if(e===t)return!0;var i=B.reducePathComponents(B.getPathComponents(e)),a=B.reducePathComponents(B.getPathComponents(t));if(a.length<i.length)return!1;for(var o=r?B.equateStringsCaseInsensitive:B.equateStringsCaseSensitive,s=0;s<i.length;s++){if(!(0===s?B.equateStringsCaseInsensitive:o)(i[s],a[s]))return!1}return!0}B.comparePathsCaseSensitive=function(e,t){return l(e,t,B.compareStringsCaseSensitive)},B.comparePathsCaseInsensitive=function(e,t){return l(e,t,B.compareStringsCaseInsensitive)},B.comparePaths=function(e,t,n,r){return"string"==typeof n?(e=x(n,e),t=x(n,t)):"boolean"==typeof n&&(r=n),l(e,t,B.getStringComparer(r))},B.containsPath=_,B.tryRemoveDirectoryPrefix=function(e,t,n){var r,i,a=B.tryRemovePrefix(e,t,n);return a===undefined?undefined:47===(i=(r=a).charCodeAt(0))||92===i?r.slice(1):undefined};var m=/[^\w\s\/]/g;function t(e){return"\\"+e}B.regExpEscape=function(e){return e.replace(m,t)};var h=[42,63];function y(e){return B.stringContains(a(e),".")}B.hasExtension=y,B.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var b="(?!("+B.commonPackageFolders.join("|")+")(/|$))",n={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+b+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return C(e,n.singleAsteriskRegexFragment)}},d={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+b+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return C(e,d.singleAsteriskRegexFragment)}},p={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return C(e,p.singleAsteriskRegexFragment)}},v={files:n,directories:d,exclude:p};function E(e,t,n){var r=I(e,t,n);return r&&r.length?"^("+r.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===n?"($|/)":"$"):undefined}function I(e,t,n){return e===undefined||0===e.length?undefined:B.flatMap(e,function(e){return e&&function(e,t,n,r){var i=r.singleAsteriskRegexFragment,a=r.doubleAsteriskRegexFragment,o=r.replaceWildcardCharacter,s="",c=!1,u=B.getNormalizedPathComponents(e,t),l=B.last(u);if("exclude"!==n&&"**"===l)return undefined;u[0]=g(u[0]),T(l)&&u.push("**","*");for(var d=0,p=0,f=u;p<f.length;p++){var _,h=f[p];"**"===h?s+=a:("directories"===n&&(s+="(",d++),c&&(s+=B.directorySeparator),"exclude"!==n?(_="",42===h.charCodeAt(0)?(_+="([^./]"+i+")?",h=h.substr(1)):63===h.charCodeAt(0)&&(_+="[^./]",h=h.substr(1)),(_+=h.replace(m,o))!==h&&(s+=b),s+=_):s+=h.replace(m,o)),c=!0}for(;0<d;)s+=")?",d--;return s}(e,t,n,v[n])})}function T(e){return!/[.*?]/.test(e)}function C(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function S(e,t,n,r,i){e=B.normalizePath(e);var a=x(i=B.normalizePath(i),e);return{includeFilePatterns:B.map(I(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:E(n,a,"files"),includeDirectoryPattern:E(n,a,"directories"),excludePattern:E(t,a,"exclude"),basePaths:function(n,e,r){var i=[n];if(e){for(var t=[],a=0,o=e;a<o.length;a++){var s=o[a],c=B.isRootedDiskPath(s)?s:B.normalizePath(x(n,s));t.push(function(e){var t=B.indexOfAnyCharCode(e,h);if(t<0)return y(e)?g(B.getDirectoryPath(e)):e;return e.substring(0,e.lastIndexOf(B.directorySeparator,t))}(c))}t.sort(B.getStringComparer(!r));for(var u=function u(t){B.every(i,function(e){return!_(e,t,n,!r)})&&i.push(t)},l=0,d=t;l<d.length;l++){var p=d[l];u(p)}}return i}(e,n,r)}}function N(e,t){return new RegExp(e,t?"":"i")}function D(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}B.getRegularExpressionForWildcard=E,B.getRegularExpressionsForWildcards=I,B.isImplicitGlob=T,B.getFileMatcherPatterns=S,B.getRegexFromPattern=N,B.matchFiles=function(e,h,t,n,r,i,a,g,m){e=B.normalizePath(e),i=B.normalizePath(i);for(var o=S(e,t,n,r,i),y=o.includeFilePatterns&&o.includeFilePatterns.map(function(e){return N(e,r)}),b=o.includeDirectoryPattern&&N(o.includeDirectoryPattern,r),v=o.excludePattern&&N(o.excludePattern,r),E=y?y.map(function(){return[]}):[[]],I=B.createMap(),T=B.createGetCanonicalFileName(r),s=0,c=o.basePaths;s<c.length;s++){var u=c[s];!function C(i,a,e){var t=T(m(a));if(I.has(t))return;I.set(t,!0);var n=g(i),r=n.files,o=n.directories;var s=function s(e){var t,n=x(i,e),r=x(a,e);return h&&!B.fileExtensionIsOneOf(n,h)||v&&v.test(r)?"continue":void(y?-1!==(t=B.findIndex(y,function(e){return e.test(r)}))&&E[t].push(n):E[0].push(n))};for(var c=0,u=B.sort(r,B.compareStringsCaseSensitive);c<u.length;c++){var l=u[c];s(l)}if(e!==undefined&&0===--e)return;for(var d=0,p=B.sort(o,B.compareStringsCaseSensitive);d<p.length;d++){var l=p[d],f=x(i,l),_=x(a,l);b&&!b.test(_)||v&&v.test(_)||C(f,_,e)}}(u,x(i,u),a)}return B.flatten(E)},B.ensureScriptKind=function(e,t){return t||D(e)||3},B.getScriptKindFromFileName=D,B.supportedTSExtensions=[".ts",".tsx",".d.ts"],B.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],B.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],B.supportedJSExtensions=[".js",".jsx"],B.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var e,k=B.supportedTSExtensions.concat(B.supportedJSExtensions),A=B.supportedTSExtensions.concat(B.supportedJSExtensions,[".json"]);function w(e,t){var n=e&&e.allowJs;if(!t||0===t.length)return n?k:B.supportedTSExtensions;var r=(n?k:B.supportedTSExtensions).concat(B.mapDefined(t,function(e){return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)?e.extension:undefined;var t}));return B.deduplicate(r,B.equateStringsCaseSensitive,B.compareStringsCaseSensitive)}function V(e,t){return e&&e.resolveJsonModule?t===k?A:t===B.supportedTSExtensions?B.supportedTSExtensionsWithJson:t.concat([".json"]):t}function P(e,t){return e<2?0:e<t.length?2:t.length}B.getSupportedExtensions=w,B.getSuppoertedExtensionsWithJsonIfResolveJsonModule=V,B.hasJSFileExtension=function(t){return B.some(B.supportedJSExtensions,function(e){return B.fileExtensionIs(t,e)})},B.hasJSOrJsonFileExtension=function(t){return B.supportedJSAndJsonExtensions.some(function(e){return B.fileExtensionIs(t,e)})},B.hasTSFileExtension=function(t){return B.some(B.supportedTSExtensions,function(e){return B.fileExtensionIs(t,e)})},B.isSupportedSourceFileName=function(e,t,n){if(!e)return!1;for(var r=0,i=V(t,w(t,n));r<i.length;r++){var a=i[r];if(B.fileExtensionIs(e,a))return!0}return!1},(e=B.ExtensionPriority||(B.ExtensionPriority={}))[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest",B.getExtensionPriority=function(e,t){for(var n=t.length-1;0<=n;n--)if(B.fileExtensionIs(e,t[n]))return P(n,t);return 0},B.adjustExtensionPriority=P,B.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var L=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function M(e,t){return B.fileExtensionIs(e,t)?F(e,t):undefined}function F(e,t){return e.substring(0,e.length-t.length)}function O(e,t,n,r){var i=n!==undefined&&r!==undefined?W(e,n,r):W(e);return i?e.slice(0,e.length-i.length)+(B.startsWith(t,".")?t:"."+t):e}function R(e){B.Debug.assert(B.hasZeroOrOneAsteriskCharacter(e));var t=e.indexOf("*");return-1===t?undefined:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function H(e){return".ts"===e||".tsx"===e||".d.ts"===e}function j(t){return B.find(L,function(e){return B.fileExtensionIs(t,e)})}function W(e,t,n){if(t)return function(e,t,n){"string"==typeof t&&(t=[t]);for(var r=0,i=t;r<i.length;r++){var a=i[r];if(B.startsWith(a,".")||(a="."+a),e.length>=a.length&&"."===e.charAt(e.length-a.length)){var o=e.slice(e.length-a.length);if(n(o,a))return o}}return""}(e,t,n?B.equateStringsCaseInsensitive:B.equateStringsCaseSensitive);var r=a(e),i=r.lastIndexOf(".");return 0<=i?r.substring(i):""}B.removeFileExtension=function(e){for(var t=0,n=L;t<n.length;t++){var r=M(e,n[t]);if(r!==undefined)return r}return e},B.tryRemoveExtension=M,B.removeExtension=F,B.changeExtension=function(e,t){return O(e,t,L,!1)},B.changeAnyExtension=O,B.tryParsePattern=R,B.positionIsSynthesized=function(e){return!(0<=e)},B.extensionIsTS=H,B.resolutionExtensionIsTSOrJson=function(e){return H(e)||".json"===e},B.extensionFromPath=function(e){var t=j(e);return t!==undefined?t:B.Debug.fail("File "+e+" has unknown extension.")},B.isAnySupportedFileExtension=function(e){return j(e)!==undefined},B.tryGetExtensionFromPath=j,B.getAnyExtensionFromPath=W,B.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},B.emptyFileSystemEntries={files:B.emptyArray,directories:B.emptyArray},B.matchPatternOrExact=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r],o=R(a);if(o)n.push(o);else if(a===t)return a}return B.findBestPatternMatch(n,function(e){return e},t)},B.sliceAfter=function(e,t){var n=e.indexOf(t);return B.Debug.assert(-1!==n),e.slice(n)},B.addRelatedInfo=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.relatedInformation||(e.relatedInformation=[]),(t=e.relatedInformation).push.apply(t,n),e},B.minAndMax=function(e,t){B.Debug.assert(0!==e.length);for(var n=t(e[0]),r=n,i=1;i<e.length;i++){var a=t(e[i]);a<n?n=a:r<a&&(r=a)}return{min:n,max:r}};var G=(Y.prototype.add=function(e){this.map.set(String(B.getNodeId(e)),e)},Y.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},Y.prototype.has=function(e){return this.map.has(String(B.getNodeId(e)))},Y.prototype.forEach=function(e){this.map.forEach(e)},Y.prototype.some=function(e){return B.forEachEntry(this.map,e)||!1},Y);function Y(){this.map=B.createMap()}B.NodeSet=G;var J=(z.prototype.get=function(e){var t=this.map.get(String(B.getNodeId(e)));return t&&t.value},z.prototype.getOrUpdate=function(e,t){var n=this.get(e);if(n)return n;var r=t();return this.set(e,r),r},z.prototype.set=function(e,t){this.map.set(String(B.getNodeId(e)),{node:e,value:t})},z.prototype.has=function(e){return this.map.has(String(B.getNodeId(e)))},z.prototype.forEach=function(r){this.map.forEach(function(e){var t=e.node,n=e.value;return r(n,t)})},z);function z(){this.map=B.createMap()}B.NodeMap=J,B.rangeOfNode=function(e){return{pos:B.getTokenPosOfNode(e),end:e.end}},B.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},B.skipTypeChecking=function(e,t){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib},B.isJsonEqual=function U(e,t){return e===t||"object"===zb(e)&&null!==e&&"object"===zb(t)&&null!==t&&B.equalOwnProperties(e,t,U)},B.getOrUpdate=function(e,t,n){var r=e.get(t);if(r!==undefined)return r;var i=n();return e.set(t,i),i},B.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var n=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;2<=s;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),d=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=d;var p=d>>>16;p&&(o[u+1]|=p)}for(var f="",_=o.length-1,h=!0;h;){for(var g=0,h=!1,u=_;0<=u;u--){var m=g<<16|o[u],y=m/10|0,g=m-10*(o[u]=y);y&&!h&&(_=u,h=!0)}f=g+f}return f},B.pseudoBigIntToString=function(e){var t=e.negative,n=e.base10Value;return(t&&"0"!==n?"-":"")+n}}(rg=rg||{}),function(k){var e,r,i,a,o,b,t,s,c,u,l,d,p,f,A,w,_,h,g,m,y,n,v,E,I,T,C,V,B,x,S,N;function D(e,t){return t&&e(t)}function P(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r<i.length;r++){var a=e(i[r]);if(a)return a}}}function L(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function M(e,t,n){if(e&&!(e.kind<=148))switch(e.kind){case 149:return D(t,e.left)||D(t,e.right);case 151:return D(t,e.name)||D(t,e.constraint)||D(t,e["default"])||D(t,e.expression);case 277:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||D(t,e.questionToken)||D(t,e.exclamationToken)||D(t,e.equalsToken)||D(t,e.objectAssignmentInitializer);case 278:return D(t,e.expression);case 152:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.dotDotDotToken)||D(t,e.name)||D(t,e.questionToken)||D(t,e.type)||D(t,e.initializer);case 155:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||D(t,e.questionToken)||D(t,e.exclamationToken)||D(t,e.type)||D(t,e.initializer);case 154:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||D(t,e.questionToken)||D(t,e.type)||D(t,e.initializer);case 276:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||D(t,e.questionToken)||D(t,e.initializer);case 238:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||D(t,e.exclamationToken)||D(t,e.type)||D(t,e.initializer);case 187:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.dotDotDotToken)||D(t,e.propertyName)||D(t,e.name)||D(t,e.initializer);case 166:case 167:case 161:case 162:case 163:return P(t,n,e.decorators)||P(t,n,e.modifiers)||P(t,n,e.typeParameters)||P(t,n,e.parameters)||D(t,e.type);case 157:case 156:case 158:case 159:case 160:case 197:case 240:case 198:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.asteriskToken)||D(t,e.name)||D(t,e.questionToken)||D(t,e.exclamationToken)||P(t,n,e.typeParameters)||P(t,n,e.parameters)||D(t,e.type)||D(t,e.equalsGreaterThanToken)||D(t,e.body);case 165:return D(t,e.typeName)||P(t,n,e.typeArguments);case 164:return D(t,e.parameterName)||D(t,e.type);case 168:return D(t,e.exprName);case 169:return P(t,n,e.members);case 170:return D(t,e.elementType);case 171:return P(t,n,e.elementTypes);case 174:case 175:return P(t,n,e.types);case 176:return D(t,e.checkType)||D(t,e.extendsType)||D(t,e.trueType)||D(t,e.falseType);case 177:return D(t,e.typeParameter);case 184:return D(t,e.argument)||D(t,e.qualifier)||P(t,n,e.typeArguments);case 178:case 180:return D(t,e.type);case 181:return D(t,e.objectType)||D(t,e.indexType);case 182:return D(t,e.readonlyToken)||D(t,e.typeParameter)||D(t,e.questionToken)||D(t,e.type);case 183:return D(t,e.literal);case 185:case 186:case 188:return P(t,n,e.elements);case 189:return P(t,n,e.properties);case 190:return D(t,e.expression)||D(t,e.name);case 191:return D(t,e.expression)||D(t,e.argumentExpression);case 192:case 193:return D(t,e.expression)||P(t,n,e.typeArguments)||P(t,n,e.arguments);case 194:return D(t,e.tag)||P(t,n,e.typeArguments)||D(t,e.template);case 195:return D(t,e.type)||D(t,e.expression);case 196:case 199:case 200:case 201:return D(t,e.expression);case 203:return D(t,e.operand);case 208:return D(t,e.asteriskToken)||D(t,e.expression);case 202:return D(t,e.expression);case 204:return D(t,e.operand);case 205:return D(t,e.left)||D(t,e.operatorToken)||D(t,e.right);case 213:return D(t,e.expression)||D(t,e.type);case 214:return D(t,e.expression);case 215:return D(t,e.name);case 206:return D(t,e.condition)||D(t,e.questionToken)||D(t,e.whenTrue)||D(t,e.colonToken)||D(t,e.whenFalse);case 209:return D(t,e.expression);case 219:case 246:return P(t,n,e.statements);case 285:return P(t,n,e.statements)||D(t,e.endOfFileToken);case 220:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.declarationList);case 239:return P(t,n,e.declarations);case 222:return D(t,e.expression);case 223:return D(t,e.expression)||D(t,e.thenStatement)||D(t,e.elseStatement);case 224:return D(t,e.statement)||D(t,e.expression);case 225:return D(t,e.expression)||D(t,e.statement);case 226:return D(t,e.initializer)||D(t,e.condition)||D(t,e.incrementor)||D(t,e.statement);case 227:return D(t,e.initializer)||D(t,e.expression)||D(t,e.statement);case 228:return D(t,e.awaitModifier)||D(t,e.initializer)||D(t,e.expression)||D(t,e.statement);case 229:case 230:return D(t,e.label);case 231:return D(t,e.expression);case 232:return D(t,e.expression)||D(t,e.statement);case 233:return D(t,e.expression)||D(t,e.caseBlock);case 247:return P(t,n,e.clauses);case 272:return D(t,e.expression)||P(t,n,e.statements);case 273:return P(t,n,e.statements);case 234:return D(t,e.label)||D(t,e.statement);case 235:return D(t,e.expression);case 236:return D(t,e.tryBlock)||D(t,e.catchClause)||D(t,e.finallyBlock);case 275:return D(t,e.variableDeclaration)||D(t,e.block);case 153:return D(t,e.expression);case 241:case 210:case 242:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||P(t,n,e.typeParameters)||P(t,n,e.heritageClauses)||P(t,n,e.members);case 243:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||P(t,n,e.typeParameters)||D(t,e.type);case 244:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||P(t,n,e.members);case 279:return D(t,e.name)||D(t,e.initializer);case 245:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||D(t,e.body);case 249:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.name)||D(t,e.moduleReference);case 250:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.importClause)||D(t,e.moduleSpecifier);case 251:return D(t,e.name)||D(t,e.namedBindings);case 248:case 252:return D(t,e.name);case 253:case 257:return P(t,n,e.elements);case 256:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.exportClause)||D(t,e.moduleSpecifier);case 254:case 258:return D(t,e.propertyName)||D(t,e.name);case 255:return P(t,n,e.decorators)||P(t,n,e.modifiers)||D(t,e.expression);case 207:return D(t,e.head)||P(t,n,e.templateSpans);case 217:return D(t,e.expression)||D(t,e.literal);case 150:return D(t,e.expression);case 274:return P(t,n,e.types);case 212:return D(t,e.expression)||P(t,n,e.typeArguments);case 260:return D(t,e.expression);case 259:return P(t,n,e.decorators);case 315:return P(t,n,e.elements);case 261:return D(t,e.openingElement)||P(t,n,e.children)||D(t,e.closingElement);case 265:return D(t,e.openingFragment)||P(t,n,e.children)||D(t,e.closingFragment);case 262:case 263:return D(t,e.tagName)||P(t,n,e.typeArguments)||D(t,e.attributes);case 269:return P(t,n,e.properties);case 268:return D(t,e.name)||D(t,e.initializer);case 270:return D(t,e.expression);case 271:return D(t,e.dotDotDotToken)||D(t,e.expression);case 264:return D(t,e.tagName);case 172:case 173:case 289:case 293:case 292:case 294:case 296:return D(t,e.type);case 295:return P(t,n,e.parameters)||D(t,e.type);case 297:return P(t,n,e.tags);case 305:case 311:return D(t,e.tagName)||(e.isNameFirst?D(t,e.name)||D(t,e.typeExpression):D(t,e.typeExpression)||D(t,e.name));case 301:return D(t,e.tagName)||D(t,e["class"]);case 309:return D(t,e.tagName)||D(t,e.constraint)||P(t,n,e.typeParameters);case 310:return D(t,e.tagName)||(e.typeExpression&&289===e.typeExpression.kind?D(t,e.typeExpression)||D(t,e.fullName):D(t,e.fullName)||D(t,e.typeExpression));case 303:return D(t,e.tagName)||D(t,e.fullName)||D(t,e.typeExpression);case 306:case 308:case 307:case 304:return D(t,e.tagName)||D(t,e.typeExpression);case 299:return k.forEach(e.typeParameters,t)||k.forEach(e.parameters,t)||D(t,e.type);case 298:return k.forEach(e.jsDocPropertyTags,t);case 300:case 302:return D(t,e.tagName);case 314:return D(t,e.expression)}}function F(e,t,n,r,i){void 0===n&&(n=2),R(t,n,r,6),(d=G(e,2,6,!1)).flags=y,le();var a=ue();if(1===A)d.statements=ke([],a,a),d.endOfFileToken=Be();else{var o=Ne(222);switch(A){case 22:o.expression=Fn();break;case 103:case 88:case 97:o.expression=Be();break;case 39:me(function(){return 8===le()&&57!==le()})?o.expression=mn():o.expression=Rn();break;case 8:case 10:if(me(function(){return 57!==le()})){o.expression=dt();break}default:o.expression=Rn()}Ae(o),d.statements=ke([o],a),d.endOfFileToken=Ce(1,k.Diagnostics.Unexpected_token)}i&&W(d),d.parseDiagnostics=p;var s=d;return H(),s}function O(e){return 4===e||2===e||1===e||6===e?1:0}function R(e,t,n,r){switch(s=k.objectAllocator.getNodeConstructor(),c=k.objectAllocator.getTokenConstructor(),u=k.objectAllocator.getIdentifierConstructor(),l=k.objectAllocator.getSourceFileConstructor(),w=e,f=n,p=[],m=0,h=k.createMap(),_=g=0,r){case 1:case 2:y=65536;break;case 6:y=16842752;break;default:y=0}x=!1,V.setText(w),V.setOnError(ce),V.setScriptTarget(t),V.setLanguageVariant(O(r))}function H(){V.setText(""),V.setOnError(undefined),p=undefined,d=undefined,h=undefined,f=undefined,w=undefined}function j(t){k.Debug.assert(!t.jsDoc);var e=k.mapDefined(k.getJSDocCommentRanges(t,d.text),function(e){return E.parseJSDocComment(t,e.pos,e.end-e.pos)});return e.length&&(t.jsDoc=e),t}function W(e){var a=e;return void M(e,function o(e){if(e.parent!==a){var t=e.parent=a;if(M(a=e,o),k.hasJSDocNodes(e))for(var n=0,r=e.jsDoc;n<r.length;n++){var i=r[n];i.parent=e,M(a=i,o)}a=t}})}function G(e,t,n,r){var i=new l(285,0,w.length);return _++,i.text=w,i.bindDiagnostics=[],i.bindSuggestionDiagnostics=undefined,i.languageVersion=t,i.fileName=k.normalizePath(e),i.languageVariant=O(n),i.isDeclarationFile=r,i.scriptKind=n,i}function Y(e,t){e?y|=t:y&=~t}function J(e){Y(e,2048)}function z(e){Y(e,4096)}function U(e){Y(e,8192)}function K(e){Y(e,16384)}function Z(e,t){var n=e&y;if(n){Y(!1,n);var r=t();return Y(!0,n),r}return t()}function X(e,t){var n=e&~y;if(n){Y(!0,n);var r=t();return Y(!1,n),r}return t()}function q(e){return Z(2048,e)}function Q(e){return X(16384,e)}function $(e){return 0!=(y&e)}function ee(){return $(4096)}function te(){return $(2048)}function ne(){return $(8192)}function re(){return $(16384)}function ie(e,t){oe(V.getTokenPos(),V.getTextPos(),e,t)}function ae(e,t,n,r){var i=k.lastOrUndefined(p);i&&e===i.start||p.push(k.createFileDiagnostic(d,e,t,n,r)),x=!0}function oe(e,t,n,r){ae(e,t-e,n,r)}function se(e,t,n){oe(e.pos,e.end,t,n)}function ce(e,t){ae(V.getTextPos(),t,e)}function ue(){return V.getStartPos()}function le(){return A=V.scan()}function de(){return A=V.scanJsDocToken()}function pe(){return A=V.reScanGreaterToken()}function fe(){return A=V.reScanLessThanToken()}function _e(){return A=V.scanJsxIdentifier()}function he(){return A=V.scanJsxToken()}function ge(e,t){var n=A,r=p.length,i=x,a=y,o=t?V.lookAhead(e):V.tryScan(e);return k.Debug.assert(a===y),o&&!t||(A=n,p.length=r,x=i),o}function me(e){return ge(e,!0)}function ye(e){return ge(e,!1)}function be(){return 73===A||(118!==A||!ee())&&((123!==A||!re())&&109<A)}function ve(e,t,n){return void 0===n&&(n=!0),A===e?(n&&le(),!0):(t?ie(t):ie(k.Diagnostics._0_expected,k.tokenToString(e)),!1)}function Ee(e){return A===e&&(le(),!0)}function Ie(e){return A===e?Be():undefined}function Te(e){return A===e?(t=Ne(A),de(),Ae(t)):undefined;var t}function Ce(e,t,n){return Ie(e)||we(e,!1,t||k.Diagnostics._0_expected,n||k.tokenToString(e))}function Be(){var e=Ne(A);return le(),Ae(e)}function xe(){return 26===A||(19===A||1===A||V.hasPrecedingLineBreak())}function Se(){return xe()?(26===A&&le(),1):ve(26)}function Ne(e,t){_++;var n=0<=t?t:V.getStartPos();return new(k.isNodeKind(e)||0===e?s:73===e?u:c)(e,n,n)}function De(e,t){var n=Ne(e,t);return 2&V.getTokenFlags()&&j(n),n}function ke(e,t,n){var r=e.length,i=1<=r&&r<=4?e.slice():e;return i.pos=t,i.end=n===undefined?V.getStartPos():n,i}function Ae(e,t){return e.end=t===undefined?V.getStartPos():t,y&&(e.flags|=y),x&&(x=!1,e.flags|=32768),e}function we(e,t,n,r){t?ae(V.getStartPos(),0,n,r):n&&ie(n,r);var i=Ne(e);return 73===e?i.escapedText="":(k.isLiteralKind(e)||k.isTemplateLiteralKind(e))&&(i.text=""),Ae(i)}function Ve(e){var t=h.get(e);return t===undefined&&h.set(e,t=e),t}function Pe(e,t){if(g++,e){var n=Ne(73);return 73!==A&&(n.originalKeywordKind=A),n.escapedText=k.escapeLeadingUnderscores(Ve(V.getTokenValue())),le(),Ae(n)}return we(73,1===A,t||k.Diagnostics.Identifier_expected)}function Le(e){return Pe(be(),e)}function Me(e){return Pe(k.tokenIsIdentifierOrKeyword(A),e)}function Fe(){return k.tokenIsIdentifierOrKeyword(A)||10===A||8===A}function Oe(e){if(10!==A&&8!==A)return e&&22===A?(t=Ne(150),ve(22),t.expression=q(rn),ve(23),Ae(t)):Me();var t,n=dt();return n.text=Ve(n.text),n}function Re(){return Oe(!0)}function He(e){return A===e&&ye(We)}function je(){return le(),!V.hasPrecedingLineBreak()&&Ge()}function We(){switch(A){case 78:return 85===le();case 86:return le(),81===A?me(Ye):40!==A&&120!==A&&18!==A&&Ge();case 81:return Ye();case 117:case 127:case 138:return le(),Ge();default:return je()}}function Ge(){return 22===A||18===A||40===A||25===A||Fe()}function Ye(){return le(),77===A||91===A||111===A||119===A&&me(Zn)||122===A&&me(Xn)}function Je(e,t){if(nt(e))return 1;switch(e){case 0:case 1:case 3:return(26!==A||!t)&&er();case 2:return 75===A||81===A;case 4:return me(Nt);case 5:return me(vr)||26===A&&!t;case 6:return 22===A||Fe();case 12:switch(A){case 22:case 40:case 25:case 24:return 1;default:return Fe()}case 18:return Fe();case 9:return 22===A||25===A||Fe();case 7:return 18===A?me(ze):t?be()&&!Xe():tn()&&!Xe();case 8:return ur();case 10:return 27===A||25===A||ur();case 19:return be();case 15:switch(A){case 27:case 24:return 1}case 11:return 25===A||nn();case 16:return vt(!1);case 17:return vt(!0);case 20:case 21:return 27===A||Gt();case 22:return Ar();case 23:return k.tokenIsIdentifierOrKeyword(A);case 13:return k.tokenIsIdentifierOrKeyword(A)||18===A;case 14:return 1}return k.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ze(){if(k.Debug.assert(18===A),19!==le())return!0;var e=le();return 27===e||18===e||87===e||110===e}function Ue(){return le(),be()}function Ke(){return le(),k.tokenIsIdentifierOrKeyword(A)}function Ze(){return le(),k.tokenIsIdentifierOrKeywordOrGreaterThan(A)}function Xe(){return(110===A||87===A)&&me(qe)}function qe(){return le(),nn()}function Qe(){return le(),Gt()}function $e(e){if(1===A)return 1;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===A;case 3:return 19===A||75===A||81===A;case 7:return 18===A||87===A||110===A;case 8:return function(){if(xe())return 1;if(_n(A))return 1;return 37===A}();case 19:return 30===A||20===A||18===A||87===A||110===A;case 11:return 21===A||26===A;case 15:case 21:case 10:return 23===A;case 17:case 16:case 18:return 21===A||23===A;case 20:return 27!==A;case 22:return 18===A||19===A;case 13:return 30===A||42===A;case 14:return 28===A&&me(Mr);default:return}}function et(e,t){var n=m;m|=1<<e;for(var r=[],i=ue();!$e(e);)if(Je(e,!1)){var a=tt(e,t);r.push(a)}else if(rt(e))break;return m=n,ke(r,i)}function tt(e,t){var n,r=nt(e);return r?(n=r,V.setTextPos(n.end),le(),n):t()}function nt(e){if(!f||!function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)||x)return undefined;var t=f.currentNode(V.getStartPos());return!(k.nodeIsMissing(t)||t.intersectsChange||k.containsParseError(t))&&(12679168&t.flags)===y&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 158:case 163:case 159:case 160:case 155:case 218:return!0;case 157:var t=e;return!(73===t.name.kind&&125===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 272:case 273:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 240:case 220:case 219:case 223:case 222:case 235:case 231:case 233:case 230:case 229:case 227:case 228:case 226:case 225:case 232:case 221:case 236:case 234:case 224:case 237:case 250:case 249:case 256:case 255:case 245:case 241:case 242:case 244:case 243:return!0}return!1}(e);case 6:return 279===e.kind;case 4:return function(e){if(e)switch(e.kind){case 162:case 156:case 163:case 154:case 161:return!0}return!1}(e);case 8:return function(e){if(238!==e.kind)return!1;return e.initializer===undefined}(e);case 17:case 16:return function(e){if(152!==e.kind)return!1;return e.initializer===undefined}(e)}return!1}(t,e)?(t.jsDocCache&&(t.jsDocCache=undefined),t):undefined}function rt(e){if(ie(function(e){switch(e){case 0:case 1:return k.Diagnostics.Declaration_or_statement_expected;case 2:return k.Diagnostics.case_or_default_expected;case 3:return k.Diagnostics.Statement_expected;case 18:case 4:return k.Diagnostics.Property_or_signature_expected;case 5:return k.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return k.Diagnostics.Enum_member_expected;case 7:return k.Diagnostics.Expression_expected;case 8:return k.Diagnostics.Variable_declaration_expected;case 9:return k.Diagnostics.Property_destructuring_pattern_expected;case 10:return k.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return k.Diagnostics.Argument_expression_expected;case 12:return k.Diagnostics.Property_assignment_expected;case 15:return k.Diagnostics.Expression_or_comma_expected;case 17:case 16:return k.Diagnostics.Parameter_declaration_expected;case 19:return k.Diagnostics.Type_parameter_declaration_expected;case 20:return k.Diagnostics.Type_argument_expected;case 21:return k.Diagnostics.Type_expected;case 22:return k.Diagnostics.Unexpected_token_expected;case 23:case 13:case 14:return k.Diagnostics.Identifier_expected;default:return undefined}}(e)),function(){for(var e=0;e<24;e++)if(m&1<<e&&(Je(e,!0)||$e(e)))return 1}())return 1;le()}function it(e,t,n){var r=m;m|=1<<e;for(var i=[],a=ue(),o=-1;;)if(Je(e,!1)){var s=V.getStartPos();if(i.push(tt(e,t)),o=V.getTokenPos(),Ee(27))continue;if(o=-1,$e(e))break;ve(27),n&&26===A&&!V.hasPrecedingLineBreak()&&le(),s===V.getStartPos()&&le()}else{if($e(e))break;if(rt(e))break}m=r;var c=ke(i,a);return 0<=o&&(c.hasTrailingComma=!0),c}function at(){var e=ke([],ue());return e.isMissingList=!0,e}function ot(e,t,n,r){if(ve(n)){var i=it(e,t);return ve(r),i}return at()}function st(e,t){for(var n=(e?Me:Le)(t),r=V.getStartPos();Ee(24);){if(28===A){n.jsdocDotPos=r;break}r=V.getStartPos(),n=ct(n,ut(e))}return n}function ct(e,t){var n=Ne(149,e.pos);return n.left=e,n.right=t,Ae(n)}function ut(e){if(V.hasPrecedingLineBreak()&&k.tokenIsIdentifierOrKeyword(A)&&me(Kn))return we(73,!0,k.Diagnostics.Identifier_expected);return(e?Me:Le)()}function lt(){var e,t=Ne(207);t.head=(e=pt(A),k.Debug.assert(15===e.kind,"Template head has wrong token kind"),e),k.Debug.assert(15===t.head.kind,"Template head has wrong token kind");for(var n=[],r=ue();n.push(function(){var e,t=Ne(217);t.expression=q(rn),e=19===A?(A=V.reScanTemplateToken(),function(){var e=pt(A);return k.Debug.assert(16===e.kind||17===e.kind,"Template fragment has wrong token kind"),e}()):Ce(17,k.Diagnostics._0_expected,k.tokenToString(19));return t.literal=e,Ae(t)}()),16===k.last(n).literal.kind;);return t.templateSpans=ke(n,r),Ae(t)}function dt(){return pt(A)}function pt(e){var t=Ne(e);return t.text=V.getTokenValue(),V.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),V.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&V.getTokenFlags()),le(),Ae(t),t}function ft(){var e=Ne(165);return e.typeName=st(!0,k.Diagnostics.Type_expected),V.hasPrecedingLineBreak()||28!==fe()||(e.typeArguments=ot(20,Qt,28,30)),Ae(e)}function _t(e){var t=Ne(290);return e?Jt(294,t):(le(),Ae(t))}function ht(){var e=Ne(152);return 101!==A&&96!==A||(e.name=Me(),ve(57)),e.type=gt(),Ae(e)}function gt(){V.setInJSDocType(!0);var e,t=Ie(25),n=Xt();return V.setInJSDocType(!1),t&&((e=Ne(296,t.pos)).type=n,n=Ae(e)),60===A?Jt(294,n):n}function mt(){var e=Ne(151);return e.name=Le(),Ee(87)&&(Gt()||!nn()?e.constraint=Qt():e.expression=yn()),Ee(60)&&(e["default"]=Qt()),Ae(e)}function yt(){if(28===A)return ot(19,mt,28,30)}function bt(){return Ee(57)?Qt():undefined}function vt(e){return 25===A||ur()||k.isModifierKind(A)||58===A||Gt(!e)}function Et(){var e=De(152);return 101===A?(e.name=Pe(!0),e.type=bt()):(e.decorators=Er(),e.modifiers=Ir(),e.dotDotDotToken=Ie(25),e.name=lr(),0===k.getFullWidth(e.name)&&!k.hasModifiers(e)&&k.isModifierKind(A)&&le(),e.questionToken=Ie(56),e.type=bt(),e.initializer=an()),Ae(e)}function It(e,t,n){32&t||(n.typeParameters=yt());var r=function(e,t){if(!ve(20))return e.parameters=at(),!1;var n=ee(),r=re();return z(!!(1&t)),K(!!(2&t)),e.parameters=32&t?it(17,ht):it(16,Et),z(n),K(r),ve(21)}(n,t);return(!function(e,t){{if(37===e)return ve(e),!0;if(Ee(57))return!0;if(t&&37===A)return ie(k.Diagnostics._0_expected,k.tokenToString(57)),le(),!0}return!1}(e,!!(4&t))||(n.type=Xt(),!function i(e){switch(e.kind){case 165:return k.nodeIsMissing(e.typeName);case 166:case 167:var t=e.parameters,n=e.type;return!!t.isMissingList||i(n);case 178:return i(e.type);default:return!1}}(n.type)))&&r}function Tt(){Ee(27)||Se()}function Ct(e){var t=De(e);return 162===e&&ve(96),It(57,4,t),Tt(),Ae(t)}function Bt(){return 22===A&&me(xt)}function xt(){if(le(),25===A||23===A)return!0;if(k.isModifierKind(A)){if(le(),be())return!0}else{if(!be())return!1;le()}return 57===A||27===A||56===A&&(le(),57===A||27===A||23===A)}function St(e){return e.kind=163,e.parameters=ot(16,Et,22,23),e.type=en(),Tt(),Ae(e)}function Nt(){if(20===A||28===A)return!0;for(var e=!1;k.isModifierKind(A);)e=!0,le();return 22===A||(Fe()&&(e=!0,le()),!!e&&(20===A||28===A||56===A||57===A||27===A||xe()))}function Dt(){if(20===A||28===A)return Ct(161);if(96===A&&me(kt))return Ct(162);var e,t=De(0);return t.modifiers=Ir(),Bt()?St(t):((e=t).name=Re(),e.questionToken=Ie(56),20===A||28===A?(e.kind=156,It(57,4,e)):(e.kind=154,e.type=en(),60===A&&(e.initializer=an())),Tt(),Ae(e))}function kt(){return le(),20===A||28===A}function At(){return 24===le()}function wt(){switch(le()){case 20:case 28:case 24:return!0}return!1}function Vt(){var e;return ve(18)?(e=et(4,Dt),ve(19)):e=at(),e}function Pt(){return le(),38===A||39===A?134===le():(134===A&&le(),22===A&&Ue()&&94===le())}function Lt(){var e,t=Ne(182);return ve(18),134!==A&&38!==A&&39!==A||(t.readonlyToken=Be(),134!==t.readonlyToken.kind&&Ce(134)),ve(22),t.typeParameter=((e=Ne(151)).name=Le(),ve(94),e.constraint=Qt(),Ae(e)),ve(23),56!==A&&38!==A&&39!==A||(t.questionToken=Be(),56!==t.questionToken.kind&&Ce(56)),t.type=en(),Se(),ve(19),Ae(t)}function Mt(){var e=ue();if(Ee(25)){var t=Ne(173,e);return t.type=Qt(),Ae(t)}var n=Qt();return 2097152&y||292!==n.kind||n.pos!==n.type.pos||(n.kind=172),n}function Ft(){var e=Be();return 24===A?undefined:e}function Ot(e){var t,n=Ne(183);e&&((t=Ne(203)).operator=39,le());var r=103===A||88===A?Be():pt(A);return e&&(t.operand=r,Ae(t),r=t),n.literal=r,Ae(n)}function Rt(){return le(),93===A}function Ht(){d.flags|=524288;var e=Ne(184);return Ee(105)&&(e.isTypeOf=!0),ve(93),ve(20),e.argument=Qt(),ve(21),Ee(24)&&(e.qualifier=st(!0,k.Diagnostics.Type_expected)),V.hasPrecedingLineBreak()||28!==fe()||(e.typeArguments=ot(20,Qt,28,30)),Ae(e)}function jt(){return le(),8===A||9===A}function Wt(){switch(A){case 121:case 144:case 139:case 136:case 147:case 140:case 124:case 142:case 133:case 137:return ye(Ft)||ft();case 40:return _t(!1);case 63:return _t(!0);case 56:return c=V.getStartPos(),le(),27!==A&&19!==A&&21!==A&&30!==A&&60!==A&&50!==A?((s=Ne(292,c)).type=Qt(),Ae(s)):Ae(s=Ne(291,c));case 91:return function(){if(me(Lr)){var e=De(295);return le(),It(57,36,e),Ae(e)}var t=Ne(165);return t.typeName=Me(),Ae(t)}();case 52:return o=Ne(293),le(),o.type=Wt(),Ae(o);case 14:case 10:case 8:case 9:case 103:case 88:return Ot();case 39:return me(jt)?Ot(!0):ft();case 107:case 97:return Be();case 101:var e=(a=Ne(179),le(),Ae(a));return 129!==A||V.hasPrecedingLineBreak()?e:function(e){le();var t=Ne(164,e.pos);return t.parameterName=e,t.type=Qt(),Ae(t)}(e);case 105:return me(Rt)?Ht():(i=Ne(168),ve(105),i.exprName=st(!0),Ae(i));case 18:return me(Pt)?Lt():((r=Ne(169)).members=Vt(),Ae(r));case 22:return(n=Ne(171)).elementTypes=ot(21,Mt,22,23),Ae(n);case 20:return t=Ne(178),ve(20),t.type=Qt(),ve(21),Ae(t);case 93:return Ht();default:return ft()}var t,n,r,i,a,o,s,c}function Gt(e){switch(A){case 121:case 144:case 139:case 136:case 147:case 124:case 134:case 140:case 143:case 107:case 142:case 97:case 101:case 105:case 133:case 18:case 22:case 28:case 50:case 49:case 96:case 10:case 8:case 9:case 103:case 88:case 137:case 40:case 56:case 52:case 25:case 128:case 93:return!0;case 91:return!e;case 39:return!e&&me(jt);case 20:return!e&&me(Yt);default:return be()}}function Yt(){return le(),21===A||vt(!1)||Gt()}function Jt(e,t){le();var n=Ne(e,t.pos);return n.type=t,Ae(n)}function zt(){var e,t,n=A;switch(n){case 130:case 143:case 134:return e=n,t=Ne(180),ve(e),t.operator=e,t.type=zt(),Ae(t);case 128:return function(){var e=Ne(177);ve(128);var t=Ne(151);return t.name=Le(),e.typeParameter=Ae(t),Ae(e)}()}return function(){for(var e,t=Wt();!V.hasPrecedingLineBreak();)switch(A){case 52:t=Jt(293,t);break;case 56:if(!(2097152&y)&&me(Qe))return t;t=Jt(292,t);break;case 22:ve(22),t=(Gt()?((e=Ne(181,t.pos)).objectType=t,e.indexType=Qt()):(e=Ne(170,t.pos)).elementType=t,ve(23),Ae(e));break;default:return t}return t}()}function Ut(e,t,n){var r=V.getStartPos(),i=Ee(n),a=t();if(A===n||i){for(var o=[a];Ee(n);)o.push(t());var s=Ne(e,r);s.types=ke(o,r),a=Ae(s)}return a}function Kt(){return Ut(175,zt,49)}function Zt(){if(le(),21===A||25===A)return!0;if(function(){if(k.isModifierKind(A)&&Ir(),be()||101===A)return le(),1;if(22===A||18===A){var e=p.length;return lr(),e===p.length}}()){if(57===A||27===A||56===A||60===A)return!0;if(21===A&&(le(),37===A))return!0}return!1}function Xt(){var e=be()&&ye(qt),t=Qt();if(e){var n=Ne(164,e.pos);return n.parameterName=e,n.type=t,Ae(n)}return t}function qt(){var e=Le();if(129===A&&!V.hasPrecedingLineBreak())return le(),e}function Qt(){return Z(20480,$t)}function $t(e){if(28===A||20===A&&me(Zt)||96===A)return t=ue(),It(37,4,n=De(Ee(96)?167:166,t)),Ae(n);var t,n,r=Ut(174,Kt,50);if(e||V.hasPrecedingLineBreak()||!Ee(87))return r;var i=Ne(176,r.pos);return i.checkType=r,i.extendsType=$t(!0),ve(56),i.trueType=$t(),ve(57),i.falseType=$t(),Ae(i)}function en(){return Ee(57)?Qt():undefined}function tn(){switch(A){case 101:case 99:case 97:case 103:case 88:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 91:case 77:case 96:case 42:case 65:case 73:return!0;case 93:return me(wt);default:return be()}}function nn(){if(tn())return!0;switch(A){case 38:case 39:case 53:case 52:case 82:case 105:case 107:case 44:case 45:case 28:case 123:case 118:return!0;default:return function(){if(te()&&94===A)return!1;return 0<k.getBinaryOperatorPrecedence(A)}()?!0:be()}}function rn(){var e=ne();e&&U(!1);for(var t,n=on();t=Ie(27);)n=gn(n,t,on());return e&&U(!0),n}function an(){return Ee(60)?on():undefined}function on(){if(function(){if(118!==A)return!1;if(ee())return!0;return me(qn)}())return e=Ne(208),le(),V.hasPrecedingLineBreak()||40!==A&&!nn()||(e.asteriskToken=Ie(40),e.expression=on()),Ae(e);var e,t=function(){var e=20!==A&&28!==A&&122!==A?37!==A?0:1:me(cn);if(0===e)return undefined;var t=1===e?dn(!0):ye(un);if(!t)return undefined;var n=k.hasModifier(t,256),r=A;return t.equalsGreaterThanToken=Ce(37),t.body=37===r||18===r?pn(n):Le(),Ae(t)}()||function(){if(122===A&&1===me(ln)){var e=Tr();return sn(fn(0),e)}return undefined}();if(t)return t;var n=fn(0);return 73===n.kind&&37===A?sn(n):k.isLeftHandSideExpression(n)&&k.isAssignmentOperator(pe())?gn(n,Be(),on()):function(e){var t=Ie(56);if(!t)return e;var n=Ne(206,e.pos);return n.condition=e,n.questionToken=t,n.whenTrue=Z(B,on),n.colonToken=Ce(57),n.whenFalse=k.nodeIsPresent(n.colonToken)?on():we(73,!1,k.Diagnostics._0_expected,k.tokenToString(57)),Ae(n)}(n)}function sn(e,t){var n;k.Debug.assert(37===A,"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),t?(n=Ne(198,t.pos)).modifiers=t:n=Ne(198,e.pos);var r=Ne(152,e.pos);return r.name=e,Ae(r),n.parameters=ke([r],r.pos,r.end),n.equalsGreaterThanToken=Ce(37),n.body=pn(!!t),j(Ae(n))}function cn(){if(122===A){if(le(),V.hasPrecedingLineBreak())return 0;if(20!==A&&28!==A)return 0}var e=A,t=le();if(20!==e)return k.Debug.assert(28===e),be()?1!==d.languageVariant?2:me(function(){var e=le();if(87===e)switch(le()){case 60:case 30:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:0;if(21===t)switch(le()){case 37:case 57:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(k.isModifierKind(t)&&122!==t&&me(Ue))return 1;if(!be()&&101!==t)return 0;switch(le()){case 57:return 1;case 56:return le(),57===A||27===A||60===A||21===A?1:0;case 27:case 60:case 21:return 2}return 0}function un(){return dn(!1)}function ln(){if(122===A){if(le(),V.hasPrecedingLineBreak()||37===A)return 0;var e=fn(0);if(!V.hasPrecedingLineBreak()&&73===e.kind&&37===A)return 1}return 0}function dn(e){var t=De(198);if(t.modifiers=Tr(),!It(57,k.hasModifier(t,256)?2:0,t)&&!e)return undefined;var n=t.type&&k.isJSDocFunctionType(t.type);return e||37===A||!n&&18===A?t:undefined}function pn(e){return 18===A?Gn(e?2:0):26===A||91===A||77===A||!er()||18!==A&&91!==A&&77!==A&&58!==A&&nn()?e?Q(on):Z(16384,on):Gn(16|(e?2:0))}function fn(e){return hn(e,yn())}function _n(e){return 94===e||148===e}function hn(e,t){for(;;){pe();var n=k.getBinaryOperatorPrecedence(A);if(!(41===A?e<=n:e<n))break;if(94===A&&te())break;if(120===A){if(V.hasPrecedingLineBreak())break;le(),r=t,i=Qt(),a=void 0,(a=Ne(213,r.pos)).expression=r,a.type=i,t=Ae(a)}else t=gn(t,Be(),fn(n))}var r,i,a;return t}function gn(e,t,n){var r=Ne(205,e.pos);return r.left=e,r.operatorToken=t,r.right=n,Ae(r)}function mn(){var e=Ne(203);return e.operator=A,le(),e.operand=bn(),Ae(e)}function yn(){if(function(){switch(A){case 38:case 39:case 53:case 52:case 82:case 105:case 107:case 123:return!1;case 28:if(1!==d.languageVariant)return!1;default:return!0}}()){var e=vn();return 41===A?hn(k.getBinaryOperatorPrecedence(A),e):e}var t,n,r=A,i=bn();return 41===A&&(t=k.skipTrivia(w,i.pos),n=i.end,195===i.kind?oe(t,n,k.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):oe(t,n,k.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,k.tokenToString(r))),i}function bn(){switch(A){case 38:case 39:case 53:case 52:return mn();case 82:return i=Ne(199),le(),i.expression=bn(),Ae(i);case 105:return r=Ne(200),le(),r.expression=bn(),Ae(r);case 107:return n=Ne(201),le(),n.expression=bn(),Ae(n);case 28:return t=Ne(195),ve(28),t.type=Qt(),ve(30),t.expression=bn(),Ae(t);case 123:if(123===A&&(re()||me(qn)))return e=Ne(202),le(),e.expression=bn(),Ae(e);default:return vn()}var e,t,n,r,i}function vn(){if(44===A||45===A)return(e=Ne(203)).operator=A,le(),e.operand=En(),Ae(e);if(1===d.languageVariant&&28===A&&me(Ze))return Tn(!0);var e,t=En();return k.Debug.assert(k.isLeftHandSideExpression(t)),44!==A&&45!==A||V.hasPrecedingLineBreak()?t:((e=Ne(204,t.pos)).operand=t,e.operator=A,le(),Ae(e))}function En(){var e,t,n;return 93===A?me(kt)?(d.flags|=524288,e=Be()):me(At)?(t=V.getStartPos(),le(),le(),(n=Ne(215,t)).keywordToken=93,n.name=Me(),e=Ae(n),d.flags|=1048576):e=In():e=(99===A?function(){var e=Be();{var t;28===A&&(t=ue(),ye(Vn)!==undefined&&oe(t,ue(),k.Diagnostics.super_may_not_use_type_arguments))}if(20===A||24===A||22===A)return e;var n=Ne(190,e.pos);return n.expression=e,Ce(24,k.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=ut(!0),Ae(n)}:In)(),function(e){for(;;)if(e=Dn(e),28!==A&&46!==A){if(20!==A)return e;(t=Ne(192,e.pos)).expression=e,t.arguments=wn(),e=Ae(t)}else{var t,n=ye(Vn);if(!n)return e;if(kn()){e=An(e,n);continue}(t=Ne(192,e.pos)).expression=e,t.typeArguments=n,t.arguments=wn(),e=Ae(t)}}(e)}function In(){return Dn(Pn())}function Tn(e){var t,n=function(e){var t=V.getStartPos();if(ve(28),30===A){var n=Ne(266,t);return he(),Ae(n)}var r,i=xn(),a=kr(),o=function(){var e=Ne(269);return e.properties=et(13,Nn),Ae(e)}();30===A?(r=Ne(263,t),he()):(ve(42),e?ve(30):(ve(30,undefined,!1),he()),r=Ne(262,t));return r.tagName=i,r.typeArguments=a,r.attributes=o,Ae(r)}(e),r=263===n.kind?((t=Ne(261,n.pos)).openingElement=n,t.children=Bn(t.openingElement),t.closingElement=function(e){var t=Ne(264);ve(29),t.tagName=xn(),e?ve(30):(ve(30,undefined,!1),he());return Ae(t)}(e),ii(t.openingElement.tagName,t.closingElement.tagName)||se(t.closingElement,k.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,k.getTextOfNodeFromSourceText(w,t.openingElement.tagName)),Ae(t)):266===n.kind?((t=Ne(265,n.pos)).openingFragment=n,t.children=Bn(t.openingFragment),t.closingFragment=function(e){var t=Ne(267);ve(29),k.tokenIsIdentifierOrKeyword(A)&&se(xn(),k.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);e?ve(30):(ve(30,undefined,!1),he());return Ae(t)}(e),Ae(t)):(k.Debug.assert(262===n.kind),n);if(e&&28===A){var i=ye(function(){return Tn(!0)});if(i){ie(k.Diagnostics.JSX_expressions_must_have_one_parent_element);var a=Ne(205,r.pos);return a.end=i.end,a.left=r,a.right=i,a.operatorToken=we(27,!1),a.operatorToken.pos=a.operatorToken.end=a.right.pos,a}}return r}function Cn(e,t){switch(t){case 1:return k.isJsxOpeningFragment(e)?se(e,k.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):se(e.tagName,k.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,k.getTextOfNodeFromSourceText(w,e.tagName)),undefined;case 29:case 7:return undefined;case 11:case 12:return(n=Ne(11)).text=V.getTokenValue(),n.containsOnlyTriviaWhiteSpaces=12===A,A=V.scanJsxToken(),Ae(n);case 18:return Sn(!1);case 28:return Tn(!1);default:return k.Debug.assertNever(t)}var n}function Bn(e){var t=[],n=ue(),r=m;for(m|=16384;;){var i=Cn(e,A=V.reScanJsxToken());if(!i)break;t.push(i)}return m=r,ke(t,n)}function xn(){_e();for(var e=(101===A?Be:Me)();Ee(24);){var t=Ne(190,e.pos);t.expression=e,t.name=ut(!0),e=Ae(t)}return e}function Sn(e){var t=Ne(271);return ve(18)?(19!==A&&(t.dotDotDotToken=Ie(25),t.expression=on()),e?ve(19):(ve(19,undefined,!1),he()),Ae(t)):undefined}function Nn(){if(18===A)return e=Ne(270),ve(18),ve(25),e.expression=rn(),ve(19),Ae(e);var e;_e();var t=Ne(268);if(t.name=Me(),60===A)switch(A=V.scanJsxAttributeValue()){case 10:t.initializer=dt();break;default:t.initializer=Sn(!0)}return Ae(t)}function Dn(e){for(;;){if(Ie(24)){var t=Ne(190,e.pos);t.expression=e,t.name=ut(!0),e=Ae(t)}else if(52!==A||V.hasPrecedingLineBreak())if(ne()||!Ee(22)){if(!kn())return e;e=An(e,undefined)}else{var n,r=Ne(191,e.pos);r.expression=e,23===A?r.argumentExpression=we(73,!0,k.Diagnostics.An_element_access_expression_should_take_an_argument):(n=q(rn),k.isStringOrNumericLiteralLike(n)&&(n.text=Ve(n.text)),r.argumentExpression=n),ve(23),e=Ae(r)}else{le();var i=Ne(214,e.pos);i.expression=e,e=Ae(i)}}}function kn(){return 14===A||15===A}function An(e,t){var n=Ne(194,e.pos);return n.tag=e,n.typeArguments=t,n.template=(14===A?dt:lt)(),Ae(n)}function wn(){ve(20);var e=it(11,Mn);return ve(21),e}function Vn(){if(28!==fe())return undefined;le();var e=it(20,Qt);return ve(30)&&e&&function(){switch(A){case 20:case 14:case 15:case 24:case 21:case 23:case 57:case 26:case 56:case 33:case 35:case 34:case 36:case 54:case 55:case 51:case 49:case 50:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:undefined}function Pn(){switch(A){case 8:case 9:case 10:case 14:return dt();case 101:case 99:case 97:case 103:case 88:return Be();case 20:return e=De(196),ve(20),e.expression=q(rn),ve(21),Ae(e);case 22:return Fn();case 18:return Rn();case 122:if(!me(Xn))break;return Hn();case 77:return xr(De(0),210);case 91:return Hn();case 96:return function(){var e=V.getStartPos();if(ve(96),Ee(24)){var t=Ne(215,e);return t.keywordToken=96,t.name=Me(),Ae(t)}var n,r=Pn();for(;;){r=Dn(r),n=ye(Vn),kn()&&(k.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),r=An(r,n),n=undefined);break}var i=Ne(193,e);i.expression=r,i.typeArguments=n,!i.typeArguments&&20!==A||(i.arguments=wn());return Ae(i)}();case 42:case 65:if(13===(A=V.reScanSlashToken()))return dt();break;case 15:return lt()}var e;return Le(k.Diagnostics.Expression_expected)}function Ln(){return 25===A?(e=Ne(209),ve(25),e.expression=on(),Ae(e)):27===A?Ne(211):on();var e}function Mn(){return Z(B,Ln)}function Fn(){var e=Ne(188);return ve(22),V.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=it(15,Ln),ve(23),Ae(e)}function On(){var e=De(0);if(Ie(25))return e.kind=278,e.expression=on(),Ae(e);if(e.decorators=Er(),e.modifiers=Ir(),He(127))return br(e,159);if(He(138))return br(e,160);var t,n=Ie(40),r=be();return e.name=Re(),e.questionToken=Ie(56),e.exclamationToken=Ie(52),n||20===A||28===A?mr(e,n):(r&&57!==A?(e.kind=277,(t=Ie(60))&&(e.equalsToken=t,e.objectAssignmentInitializer=q(on))):(e.kind=276,ve(57),e.initializer=q(on)),Ae(e))}function Rn(){var e=Ne(189);return ve(18),V.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=it(12,On,!0),ve(19),Ae(e)}function Hn(){var e=ne();e&&U(!1);var t=De(197);t.modifiers=Ir(),ve(91),t.asteriskToken=Ie(40);var n=t.asteriskToken?1:0,r=k.hasModifier(t,256)?2:0;return t.name=n&&r?X(20480,jn):n?X(4096,jn):r?Q(jn):jn(),It(57,n|r,t),t.body=Gn(n|r),e&&U(!0),Ae(t)}function jn(){return be()?Le():undefined}function Wn(e,t){var n=Ne(219);return ve(18,t)||e?(V.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=et(1,nr),ve(19)):n.statements=at(),Ae(n)}function Gn(e,t){var n=ee();z(!!(1&e));var r=re();K(!!(2&e));var i=ne();i&&U(!1);var a=Wn(!!(16&e),t);return i&&U(!0),z(n),K(r),a}function Yn(){var e=ue();ve(90);var t,n,r,i,a,o=Ie(123);return ve(20),26!==A&&(t=106===A||112===A||78===A?fr(!0):X(2048,rn)),(n=(o?ve:Ee)(148)?((r=Ne(228,e)).awaitModifier=o,r.initializer=t,r.expression=q(on),ve(21),r):Ee(94)?((i=Ne(227,e)).initializer=t,i.expression=q(rn),ve(21),i):((a=Ne(226,e)).initializer=t,ve(26),26!==A&&21!==A&&(a.condition=q(rn)),ve(26),21!==A&&(a.incrementor=q(rn)),ve(21),a)).statement=nr(),Ae(n)}function Jn(e){var t=Ne(e);return ve(230===e?74:79),xe()||(t.label=Le()),Se(),Ae(t)}function zn(){return 75===A?(t=Ne(272),ve(75),t.expression=q(rn),ve(57),t.statements=et(3,nr),Ae(t)):(e=Ne(273),ve(81),ve(57),e.statements=et(3,nr),Ae(e));var e,t}function Un(){var e=Ne(236);return ve(104),e.tryBlock=Wn(!1),e.catchClause=76===A?function(){var e=Ne(275);ve(76),Ee(20)?(e.variableDeclaration=pr(),ve(21)):e.variableDeclaration=undefined;return e.block=Wn(!1),Ae(e)}():undefined,e.catchClause&&89!==A||(ve(89),e.finallyBlock=Wn(!1)),Ae(e)}function Kn(){return le(),k.tokenIsIdentifierOrKeyword(A)&&!V.hasPrecedingLineBreak()}function Zn(){return le(),77===A&&!V.hasPrecedingLineBreak()}function Xn(){return le(),91===A&&!V.hasPrecedingLineBreak()}function qn(){return le(),(k.tokenIsIdentifierOrKeyword(A)||8===A||9===A||10===A)&&!V.hasPrecedingLineBreak()}function Qn(){for(;;)switch(A){case 106:case 112:case 78:case 91:case 77:case 85:return!0;case 111:case 141:return le(),!V.hasPrecedingLineBreak()&&be();case 131:case 132:return le(),!V.hasPrecedingLineBreak()&&(be()||10===A);case 119:case 122:case 126:case 114:case 115:case 116:case 134:if(le(),V.hasPrecedingLineBreak())return!1;continue;case 146:return le(),18===A||73===A||86===A;case 93:return le(),10===A||40===A||18===A||k.tokenIsIdentifierOrKeyword(A);case 86:if(le(),60===A||40===A||18===A||81===A||120===A)return!0;continue;case 117:le();continue;default:return!1}}function $n(){return me(Qn)}function er(){switch(A){case 58:case 26:case 18:case 106:case 112:case 91:case 77:case 85:case 92:case 83:case 108:case 90:case 79:case 74:case 98:case 109:case 100:case 102:case 104:case 80:case 76:case 89:return!0;case 93:return $n()||me(wt);case 78:case 86:return $n();case 122:case 126:case 111:case 131:case 132:case 141:case 146:return!0;case 116:case 114:case 115:case 117:case 134:return $n()||!me(Kn);default:return nn()}}function tr(){return le(),be()||18===A||22===A}function nr(){switch(A){case 26:return s=Ne(221),ve(26),Ae(s);case 18:return Wn(!1);case 106:return hr(De(238));case 112:if(me(tr))return hr(De(238));break;case 91:return gr(De(240));case 77:return Br(De(241));case 92:return o=Ne(223),ve(92),ve(20),o.expression=q(rn),ve(21),o.thenStatement=nr(),o.elseStatement=Ee(84)?nr():undefined,Ae(o);case 83:return a=Ne(224),ve(83),a.statement=nr(),ve(108),ve(20),a.expression=q(rn),ve(21),Ee(26),Ae(a);case 108:return i=Ne(225),ve(108),ve(20),i.expression=q(rn),ve(21),i.statement=nr(),Ae(i);case 90:return Yn();case 79:return Jn(229);case 74:return Jn(230);case 98:return r=Ne(231),ve(98),xe()||(r.expression=q(rn)),Se(),Ae(r);case 109:return n=Ne(232),ve(109),ve(20),n.expression=q(rn),ve(21),n.statement=X(8388608,nr),Ae(n);case 100:return function(){var e=Ne(233);ve(100),ve(20),e.expression=q(rn),ve(21);var t=Ne(247);return ve(18),t.clauses=et(2,zn),ve(19),e.caseBlock=Ae(t),Ae(e)}();case 102:return t=Ne(235),ve(102),t.expression=V.hasPrecedingLineBreak()?undefined:q(rn),Se(),Ae(t);case 104:case 76:case 89:return Un();case 80:return e=Ne(237),ve(80),Se(),Ae(e);case 58:return ir();case 122:case 111:case 141:case 131:case 132:case 126:case 78:case 85:case 86:case 93:case 114:case 115:case 116:case 119:case 117:case 134:case 146:if($n())return ir()}var e,t,n,r,i,a,o,s,c,u;return c=De(0),73===(u=q(rn)).kind&&Ee(57)?(c.kind=234,c.label=u,c.statement=nr()):(c.kind=222,c.expression=u,Se()),Ae(c)}function rr(e){return 126===e.kind}function ir(){var e=De(0);if(e.decorators=Er(),e.modifiers=Ir(),k.some(e.modifiers,rr)){for(var t=0,n=e.modifiers;t<n.length;t++){n[t].flags|=4194304}return X(4194304,function(){return ar(e)})}return ar(e)}function ar(e){switch(A){case 106:case 112:case 78:return hr(e);case 91:return gr(e);case 77:return Br(e);case 111:return(i=e).kind=242,ve(111),i.name=Le(),i.typeParameters=yt(),i.heritageClauses=Sr(),i.members=Vt(),Ae(i);case 141:return(r=e).kind=243,ve(141),r.name=Le(),r.typeParameters=yt(),ve(60),r.type=Qt(),Se(),Ae(r);case 85:return function(e){e.kind=244,ve(85),e.name=Le(),ve(18)?(e.members=it(6,wr),ve(19)):e.members=at();return Ae(e)}(e);case 146:case 131:case 132:return function(e){var t=0;{if(146===A)return Pr(e);if(Ee(132))t|=16;else if(ve(131),10===A)return Pr(e)}return function r(e,t){e.kind=245;var n=16&t;e.flags|=t;e.name=Le();e.body=Ee(24)?r(Ne(0),4|n):Vr();return Ae(e)}(e,t)}(e);case 93:return function(e){ve(93);var t,n=V.getStartPos();if(be()&&(t=Le(),27!==A&&145!==A))return function(e,t){return e.kind=249,e.name=t,ve(60),e.moduleReference=function(){return 135===A&&me(Lr)?function(){var e=Ne(260);return ve(135),ve(20),e.expression=Fr(),ve(21),Ae(e)}():st(!1)}(),Se(),Ae(e)}(e,t);e.kind=250,!t&&40!==A&&18!==A||(e.importClause=function(e,t){var n=Ne(251,t);e&&(n.name=e);n.name&&!Ee(27)||(n.namedBindings=40===A?function(){var e=Ne(252);return ve(40),ve(120),e.name=Le(),Ae(e)}():Or(253));return Ae(n)}(t,n),ve(145));return e.moduleSpecifier=Fr(),Se(),Ae(e)}(e);case 86:switch(le(),A){case 81:case 60:return function(e){e.kind=255,Ee(60)?e.isExportEquals=!0:ve(81);return e.expression=on(),Se(),Ae(e)}(e);case 120:return(n=e).kind=248,ve(120),ve(132),n.name=Le(),Se(),Ae(n);default:return function(e){e.kind=256,Ee(40)?(ve(145),e.moduleSpecifier=Fr()):(e.exportClause=Or(257),145!==A&&(10!==A||V.hasPrecedingLineBreak())||(ve(145),e.moduleSpecifier=Fr()));return Se(),Ae(e)}(e)}default:if(e.decorators||e.modifiers){var t=we(259,!0,k.Diagnostics.Declaration_expected);return t.pos=e.pos,t.decorators=e.decorators,t.modifiers=e.modifiers,Ae(t)}return undefined}var n,r,i}function or(e,t){if(18===A||!xe())return Gn(e,t);Se()}function sr(){if(27===A)return Ne(211);var e=Ne(187);return e.dotDotDotToken=Ie(25),e.name=lr(),e.initializer=an(),Ae(e)}function cr(){var e=Ne(187);e.dotDotDotToken=Ie(25);var t=be(),n=Re();return t&&57!==A?e.name=n:(ve(57),e.propertyName=n,e.name=lr()),e.initializer=an(),Ae(e)}function ur(){return 18===A||22===A||be()}function lr(){return 22===A?(e=Ne(186),ve(22),e.elements=it(10,sr),ve(23),Ae(e)):18===A?(t=Ne(185),ve(18),t.elements=it(9,cr),ve(19),Ae(t)):Le();var e,t}function dr(){return pr(!0)}function pr(e){var t=Ne(238);return t.name=lr(),e&&73===t.name.kind&&52===A&&!V.hasPrecedingLineBreak()&&(t.exclamationToken=Be()),t.type=en(),_n(A)||(t.initializer=an()),Ae(t)}function fr(e){var t,n=Ne(239);switch(A){case 106:break;case 112:n.flags|=1;break;case 78:n.flags|=2;break;default:k.Debug.fail()}return le(),148===A&&me(_r)?n.declarations=at():(t=te(),J(e),n.declarations=it(8,e?pr:dr),J(t)),Ae(n)}function _r(){return Ue()&&21===le()}function hr(e){return e.kind=220,e.declarationList=fr(!1),Se(),Ae(e)}function gr(e){e.kind=240,ve(91),e.asteriskToken=Ie(40),e.name=(k.hasModifier(e,512)?jn:Le)();var t=e.asteriskToken?1:0,n=k.hasModifier(e,256)?2:0;return It(57,t|n,e),e.body=or(t|n,k.Diagnostics.or_expected),Ae(e)}function mr(e,t,n){e.kind=157;var r=(e.asteriskToken=t)?1:0,i=k.hasModifier(e,256)?2:0;return It(57,r|i,e),e.body=or(r|i,n),Ae(e)}function yr(e){return e.kind=155,e.questionToken||52!==A||V.hasPrecedingLineBreak()||(e.exclamationToken=Be()),e.type=en(),e.initializer=k.hasModifier(e,32)?q(an):Z(6144,an),Se(),Ae(e)}function br(e,t){return e.kind=t,e.name=Re(),It(57,0,e),e.body=or(0),Ae(e)}function vr(){var e;if(58===A)return!0;for(;k.isModifierKind(A);){if(e=A,k.isClassMemberModifier(e))return!0;le()}if(40===A)return!0;if(Fe()&&(e=A,le()),22===A)return!0;if(e!==undefined){if(!k.isKeyword(e)||138===e||127===e)return!0;switch(A){case 20:case 28:case 52:case 57:case 60:case 56:return!0;default:return xe()}}return!1}function Er(){for(var e,t=ue();;){var n=ue();if(!Ee(58))break;var r=Ne(153,n);r.expression=X(8192,En),Ae(r),(e=e||[]).push(r)}return e&&ke(e,t)}function Ir(e){for(var t,n=ue();;){var r=V.getStartPos(),i=A;if(78===A&&e){if(!ye(je))break}else if(!k.isModifierKind(A)||!ye(We))break;var a=Ae(Ne(i,r));(t=t||[]).push(a)}return t&&ke(t,n)}function Tr(){var e,t,n;return 122===A&&(e=V.getStartPos(),t=A,le(),n=ke([Ae(Ne(t,e))],e)),n}function Cr(){if(26===A){var e=Ne(218);return le(),Ae(e)}var t,n,r,i=De(0);return i.decorators=Er(),i.modifiers=Ir(!0),He(127)?br(i,159):He(138)?br(i,160):125===A?((t=i).kind=158,ve(125),It(57,0,t),t.body=or(0,k.Diagnostics.or_expected),Ae(t)):Bt()?St(i):k.tokenIsIdentifierOrKeyword(A)||10===A||8===A||40===A||22===A?(n=i,r=Ie(40),n.name=Re(),n.questionToken=Ie(56),r||20===A||28===A?mr(n,r,k.Diagnostics.or_expected):yr(n)):i.decorators||i.modifiers?(i.name=we(73,!0,k.Diagnostics.Declaration_expected),yr(i)):k.Debug.fail("Should not have attempted to parse class member declaration.")}function Br(e){return xr(e,241)}function xr(e,t){return e.kind=t,ve(77),e.name=!be()||110===A&&me(Ke)?undefined:Le(),e.typeParameters=yt(),e.heritageClauses=Sr(),ve(18)?(e.members=et(5,Cr),ve(19)):e.members=at(),Ae(e)}function Sr(){return Ar()?et(22,Nr):undefined}function Nr(){var e=A;k.Debug.assert(87===e||110===e);var t=Ne(274);return t.token=e,le(),t.types=it(7,Dr),Ae(t)}function Dr(){var e=Ne(212);return e.expression=En(),e.typeArguments=kr(),Ae(e)}function kr(){return 28===A?ot(20,Qt,28,30):undefined}function Ar(){return 87===A||110===A}function wr(){var e=De(279);return e.name=Re(),e.initializer=q(an),Ae(e)}function Vr(){var e=Ne(246);return ve(18)?(e.statements=et(1,nr),ve(19)):e.statements=at(),Ae(e)}function Pr(e){return e.kind=245,146===A?(e.name=Le(),e.flags|=512):(e.name=dt(),e.name.text=Ve(e.name.text)),18===A?e.body=Vr():Se(),Ae(e)}function Lr(){return 20===le()}function Mr(){return 42===le()}function Fr(){if(10!==A)return rn();var e=dt();return e.text=Ve(e.text),e}function Or(e){var t=Ne(e);return t.elements=ot(23,253===e?Hr:Rr,18,19),Ae(t)}function Rr(){return jr(258)}function Hr(){return jr(254)}function jr(e){var t=Ne(e),n=k.isKeyword(A)&&!be(),r=V.getTokenPos(),i=V.getTextPos(),a=Me();return 120===A?(t.propertyName=a,ve(120),n=k.isKeyword(A)&&!be(),r=V.getTokenPos(),i=V.getTextPos(),t.name=Me()):t.name=a,254===e&&n&&oe(r,i,k.Diagnostics.Identifier_expected),Ae(t)}function Wr(e){return k.hasModifier(e,1)||249===e.kind&&260===e.moduleReference.kind||250===e.kind||255===e.kind||256===e.kind?e:undefined}function Gr(e){return t=e,k.isMetaProperty(t)&&93===t.keywordToken&&"meta"===t.name.escapedText?e:M(e,Gr);var t}function Yr(e){var t=Ne(289),n=(e?Ee:ve)(18);return t.type=X(2097152,gt),e&&!n||function(e){if(A===e)return de();ie(k.Diagnostics._0_expected,k.tokenToString(e))}(19),W(t),Ae(t)}function Jr(s,e){void 0===s&&(s=0);var h,c,u,l=w,d=e===undefined?l.length:s+e;if(e=d-s,k.Debug.assert(0<=s),k.Debug.assert(s<=d),k.Debug.assert(d<=l.length),!L(l,s))return undefined;var p=[];return V.scanRange(s+3,e-5,function(){var t,e,n=1,r=s-Math.max(l.lastIndexOf("\n",s),0)+4;function i(e){t=t||r,p.push(e),r+=e.length}for(de();N(5););N(4)&&(r=n=0);e:for(;;){switch(A){case 58:0===n||1===n?(_(p),function(e){if(!e)return;h?h.push(e):(h=[e],c=e.pos);u=e.end}(y(r)),n=0,t=undefined):i(V.getTokenText());break;case 4:p.push(V.getTokenText()),r=n=0;break;case 40:var a=V.getTokenText();1===n||2===n?(n=2,i(a)):(n=1,r+=a.length);break;case 5:var o=V.getTokenText();2===n?p.push(o):t!==undefined&&r+o.length>t&&p.push(o.slice(t-r-1)),r+=o.length;break;case 1:break e;default:n=2,i(V.getTokenText())}de()}return f(p),_(p),(e=Ne(297,s)).tags=h&&ke(h,c,u),e.comment=p.length?p.join(""):undefined,Ae(e,d)});function f(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function _(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function r(){for(;;){if(de(),1===A)return!0;if(5!==A&&4!==A)return!1}}function g(){if(5!==A&&4!==A||!me(r))for(;5===A||4===A;)de()}function m(){if((5===A||4===A)&&me(r))return"";for(var e=V.hasPrecedingLineBreak(),t=!1,n="";e&&40===A||5===A||4===A;)n+=V.getTokenText(),4===A?(t=e=!0,n=""):40===A&&(e=!1),de();return t?n:""}function y(e){k.Debug.assert(58===A);var t=V.getTokenPos();de();var n,r,i,a,o,s,c,u,l,d,p,f=D(undefined),_=m();switch(f.escapedText){case"augments":case"extends":d=f,(p=Ne(301,t)).tagName=d,p["class"]=function(){var e=Ee(18),t=Ne(212);t.expression=function(){for(var e=D();Ee(24);){var t=Ne(190,e.pos);t.expression=e,t.name=D(),e=Ae(t)}return e}(),t.typeArguments=kr();var n=Ae(t);return e&&ve(19),n}(),n=Ae(p);break;case"class":case"constructor":u=f,(l=Ne(302,t)).tagName=u,n=Ae(l);break;case"this":s=f,(c=Ne(307,t)).tagName=s,c.typeExpression=Yr(!0),g(),n=Ae(c);break;case"enum":a=f,(o=Ne(304,t)).tagName=a,o.typeExpression=Yr(!0),g(),n=Ae(o);break;case"arg":case"argument":case"param":return T(t,f,2,e);case"return":case"returns":n=function(e,t){k.some(h,k.isJSDocReturnTag)&&oe(t.pos,V.getTokenPos(),k.Diagnostics._0_tag_already_specified,t.escapedText);var n=Ne(306,e);return n.tagName=t,n.typeExpression=v(),Ae(n)}(t,f);break;case"template":n=function(e,t){var n;18===A&&(n=Yr());var r=[],i=ue();do{g();var a=Ne(151);a.name=D(k.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Ae(a),g(),r.push(a)}while(N(27));var o=Ne(309,e);return o.tagName=t,o.constraint=n,o.typeParameters=ke(r,i),Ae(o),o}(t,f);break;case"type":n=C(t,f);break;case"typedef":n=function(e,t,n){var r=v();m();var i,a=Ne(310,e);if(a.tagName=t,a.fullName=B(),a.name=x(a.fullName),g(),a.comment=b(n),!(a.typeExpression=r)||I(r.type)){for(var o=void 0,s=void 0,c=void 0;o=ye(function(){return S(1,n)});)if(s=s||Ne(298,e),308===o.kind){if(c)break;c=o}else s.jsDocPropertyTags=k.append(s.jsDocPropertyTags,o);s&&(r&&170===r.type.kind&&(s.isArrayType=!0),a.typeExpression=c&&c.typeExpression&&!I(c.typeExpression.type)?c.typeExpression:Ae(s),i=a.typeExpression.end)}return Ae(a,i||a.comment!==undefined?V.getStartPos():(a.fullName||a.typeExpression||a.tagName).end)}(t,f,e);break;case"callback":n=function(e,t,n){var r,i=Ne(303,e);i.tagName=t,i.fullName=B(),i.name=x(i.fullName),g(),i.comment=b(n);var a=Ne(299,e);a.parameters=[];for(;r=ye(function(){return S(4,n)});)a.parameters=k.append(a.parameters,r);var o=ye(function(){if(N(58)){var e=y(n);if(e&&306===e.kind)return e}});o&&(a.type=o);return i.typeExpression=Ae(a),Ae(i)}(t,f,e);break;default:r=f,(i=Ne(300,t)).tagName=r,n=Ae(i)}return n.comment||(_||(e+=n.end-n.pos),n.comment=b(e,_.slice(e))),n}function b(t,e){var n,r=[],i=0;function a(e){n=n||t,r.push(e),t+=e.length}e&&(a(e),i=2);var o,s=A;e:for(;;){switch(s){case 4:1<=i&&(i=0,r.push(V.getTokenText())),t=0;break;case 58:V.setTextPos(V.getTextPos()-1);case 1:break e;case 5:2===i?a(V.getTokenText()):(o=V.getTokenText(),n!==undefined&&t+o.length>n&&r.push(o.slice(n-t)),t+=o.length);break;case 18:i=2,me(function(){return 58===de()&&k.tokenIsIdentifierOrKeyword(de())&&"link"===V.getTokenText()})&&(a(V.getTokenText()),de(),a(V.getTokenText()),de()),a(V.getTokenText());break;case 40:if(0===i){t+=i=1;break}default:i=2,a(V.getTokenText())}s=de()}return f(r),_(r),0===r.length?undefined:r.join("")}function v(){return m(),18===A?Yr():undefined}function E(){var e=N(22);e&&g();var t,n=N(59),r=function(){var e=D();Ee(22)&&ve(23);for(;Ee(24);){var t=D();Ee(22)&&ve(23),e=ct(e,t)}return e}();return n&&(Te(t=59)||we(t,!1,k.Diagnostics._0_expected,k.tokenToString(t))),e&&(g(),Ie(60)&&rn(),ve(23)),{name:r,isBracketed:e}}function I(e){switch(e.kind){case 137:return!0;case 170:return I(e.elementType);default:return k.isTypeReferenceNode(e)&&k.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText}}function T(e,t,n,r){var i=v(),a=!i;m();var o=E(),s=o.name,c=o.isBracketed;g(),a&&(i=v());var u=Ne(1===n?311:305,e),l=b(r+V.getStartPos()-e),d=4!==n&&function(e,t,n,r){if(e&&I(e.type)){for(var i=Ne(289,V.getTokenPos()),a=void 0,o=void 0,s=V.getStartPos(),c=void 0;a=ye(function(){return S(n,r,t)});)305!==a.kind&&311!==a.kind||(c=k.append(c,a));if(c)return(o=Ne(298,s)).jsDocPropertyTags=c,170===e.type.kind&&(o.isArrayType=!0),i.type=Ae(o),Ae(i)}}(i,s,n,r);return d&&(i=d,a=!0),u.tagName=t,u.typeExpression=i,u.name=s,u.isNameFirst=a,u.isBracketed=c,u.comment=l,Ae(u)}function C(e,t){k.some(h,k.isJSDocTypeTag)&&oe(t.pos,V.getTokenPos(),k.Diagnostics._0_tag_already_specified,t.escapedText);var n=Ne(308,e);return n.tagName=t,n.typeExpression=Yr(!0),Ae(n)}function B(e){var t=V.getTokenPos();if(!k.tokenIsIdentifierOrKeyword(A))return undefined;var n=D();if(Ee(24)){var r=Ne(245,t);return e&&(r.flags|=4),r.name=n,r.body=B(!0),Ae(r)}return e&&(n.isInJSDocNamespace=!0),n}function x(e){if(e)for(var t=e;;){if(k.isIdentifier(t)||!t.body)return k.isIdentifier(t)?t:t.name;t=t.body}}function S(e,t,n){for(var r=!0,i=!1;;)switch(de()){case 58:if(r){var a=function(e,t){k.Debug.assert(58===A);var n=V.getStartPos();de();var r,i=D();switch(g(),i.escapedText){case"type":return 1===e&&C(n,i);case"prop":case"property":r=1;break;case"arg":case"argument":case"param":r=6;break;default:return!1}return!!(e&r)&&T(n,i,e,t)}(e,t);return!a||305!==a.kind&&311!==a.kind||4===e||!n||!k.isIdentifier(a.name)&&function(e,t){for(;!k.isIdentifier(e)||!k.isIdentifier(t);){if(k.isIdentifier(e)||k.isIdentifier(t)||e.right.escapedText!==t.right.escapedText)return;e=e.left,t=t.left}return e.escapedText===t.escapedText}(n,a.name.left)?a:!1}i=!1;break;case 4:i=!(r=!0);break;case 40:i&&(r=!1),i=!0;break;case 73:r=!1;break;case 1:return!1}}function N(e){return A===e&&(de(),!0)}function D(e){if(!k.tokenIsIdentifierOrKeyword(A))return we(73,!e,e||k.Diagnostics.Identifier_expected);var t=V.getTokenPos(),n=V.getTextPos(),r=Ne(73,t);return r.escapedText=k.escapeLeadingUnderscores(V.getTokenText()),Ae(r,n),de(),r}}function zr(e,t,i,a,o,s){return void(t?u:c)(e);function c(e){var t="";if(s&&Ur(e)&&(t=a.substring(e.pos,e.end)),e._children&&(e._children=undefined),e.pos+=i,e.end+=i,s&&Ur(e)&&k.Debug.assert(t===o.substring(e.pos,e.end)),M(e,c,u),k.hasJSDocNodes(e))for(var n=0,r=e.jsDoc;n<r.length;n++){c(r[n])}Zr(e,s)}function u(e){e._children=undefined,e.pos+=i,e.end+=i;for(var t=0,n=e;t<n.length;t++){c(n[t])}}}function Ur(e){switch(e.kind){case 10:case 8:case 73:return 1}}function Kr(e,t,n,r,i){k.Debug.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),k.Debug.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),k.Debug.assert(e.pos<=e.end),e.pos=Math.min(e.pos,r),e.end>=n?e.end+=i:e.end=Math.min(e.end,r),k.Debug.assert(e.pos<=e.end),e.parent&&(k.Debug.assert(e.pos>=e.parent.pos),k.Debug.assert(e.end<=e.parent.end))}function Zr(e,t){if(t){var n=e.pos,r=function r(e){k.Debug.assert(e.pos>=n),n=e.end};if(k.hasJSDocNodes(e))for(var i=0,a=e.jsDoc;i<a.length;i++){r(a[i])}M(e,r),k.Debug.assert(n<=e.end)}}function Xr(e,t,n,r){var i,a,o,s,c=e.text;n&&(k.Debug.assert(c.length-n.span.length+n.newLength===t.length),(r||k.Debug.shouldAssert(3))&&(i=c.substr(0,n.span.start),a=t.substr(0,n.span.start),k.Debug.assert(i===a),o=c.substring(k.textSpanEnd(n.span),c.length),s=t.substring(k.textSpanEnd(k.textChangeRangeNewSpan(n)),t.length),k.Debug.assert(o===s)))}function qr(e){return k.fileExtensionIs(e,".d.ts")}function Qr(e,t){for(var n=[],r=0,i=k.getLeadingCommentRanges(t,0)||k.emptyArray;r<i.length;r++){var a=i[r];!function(e,t,n){var r=2===t.kind&&ti.exec(n);if(r){var i=r[1].toLowerCase(),a=k.commentPragmas[i];if(!(a&&1&a.kind))return;if(a.args){for(var o={},s=0,c=a.args;s<c.length;s++){var u,l=c[s],d=function(e){if(ei.has(e))return ei.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return ei.set(e,t),t}(l.name).exec(n);if(!d&&!l.optional)return;d&&(l.captureSpan?(u=t.pos+d.index+d[1].length+d[2].length,o[l.name]={value:d[3],pos:u,end:u+d[3].length}):o[l.name]=d[3])}e.push({name:i,args:{arguments:o,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}var p=2===t.kind&&ni.exec(n);if(p)return ri(e,t,2,p);if(3===t.kind)for(var f=/\s*@(\S+)\s*(.*)\s*$/gim,_=void 0;_=f.exec(n);)ri(e,t,4,_)}(n,a,t.substring(a.pos,a.end))}e.pragmas=k.createMap();for(var o=0,s=n;o<s.length;o++){var c,u=s[o];e.pragmas.has(u.name)?(c=e.pragmas.get(u.name))instanceof Array?c.push(u.args):e.pragmas.set(u.name,[c,u.args]):e.pragmas.set(u.name,u.args)}}function $r(c,u){c.checkJsDirective=undefined,c.referencedFiles=[],c.typeReferenceDirectives=[],c.libReferenceDirectives=[],c.amdDependencies=[],c.hasNoDefaultLib=!1,c.pragmas.forEach(function(e,t){switch(t){case"reference":var a=c.referencedFiles,o=c.typeReferenceDirectives,s=c.libReferenceDirectives;k.forEach(k.toArray(e),function(e){var t=e.arguments,n=t.types,r=t.lib,i=t.path;e.arguments["no-default-lib"]?c.hasNoDefaultLib=!0:n?o.push({pos:n.pos,end:n.end,fileName:n.value}):r?s.push({pos:r.pos,end:r.end,fileName:r.value}):i?a.push({pos:i.pos,end:i.end,fileName:i.value}):u(e.range.pos,e.range.end-e.range.pos,k.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":c.amdDependencies=k.map(k.toArray(e),function(e){return{name:e.arguments.name,path:e.arguments.path}});break;case"amd-module":if(e instanceof Array)for(var n=0,r=e;n<r.length;n++){var i=r[n];c.moduleName&&u(i.range.pos,i.range.end-i.range.pos,k.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),c.moduleName=i.arguments.name}else c.moduleName=e.arguments.name;break;case"ts-nocheck":case"ts-check":k.forEach(k.toArray(e),function(e){(!c.checkJsDirective||e.range.pos>c.checkJsDirective.pos)&&(c.checkJsDirective={enabled:"ts-check"===t,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:k.Debug.fail("Unhandled pragma kind")}})}(e={})[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc",k.createNode=function(e,t,n){return new(285===e?o=o||k.objectAllocator.getSourceFileConstructor():73===e?a=a||k.objectAllocator.getIdentifierConstructor():k.isNodeKind(e)?r=r||k.objectAllocator.getNodeConstructor():i=i||k.objectAllocator.getTokenConstructor())(e,t,n)},k.isJSDocLikeText=L,k.forEachChild=M,k.createSourceFile=function(e,t,n,r,i){var a;return void 0===r&&(r=!1),k.performance.mark("beforeParse"),a=100===n?b.parseSourceFile(e,t,n,undefined,r,6):b.parseSourceFile(e,t,n,undefined,r,i),k.performance.mark("afterParse"),k.performance.measure("Parse","beforeParse","afterParse"),a},k.parseIsolatedEntityName=function(e,t){return b.parseIsolatedEntityName(e,t)},k.parseJsonText=function(e,t){return b.parseJsonText(e,t)},k.isExternalModule=function(e){return e.externalModuleIndicator!==undefined},k.updateSourceFile=function(e,t,n,r){void 0===r&&(r=!1);var i=S.updateSourceFile(e,t,n,r);return i.flags|=1572864&e.flags,i},k.parseIsolatedJSDocComment=function(e,t,n){var r=b.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&b.fixupParentReferences(r.jsDoc),r},k.parseJSDocTypeExpressionForTests=function(e,t,n){return b.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)},t=b=b||{},V=k.createScanner(8,!0),x=!(B=10240),t.parseSourceFile=function(e,t,n,r,i,a){if(void 0===i&&(i=!1),6===(a=k.ensureScriptKind(e,a))){var o=F(e,t,n,r,i);return k.convertToObjectWorker(o,o.parseDiagnostics,!1,undefined,undefined),o.referencedFiles=k.emptyArray,o.typeReferenceDirectives=k.emptyArray,o.libReferenceDirectives=k.emptyArray,o.amdDependencies=k.emptyArray,o.hasNoDefaultLib=!1,o.pragmas=k.emptyMap,o}R(t,n,r,a);var s=function(e,t,n,r){var i=qr(e);i&&(y|=4194304);(d=G(e,t,r,i)).flags=y,le(),Qr(d,w),$r(d,function(e,t,n){p.push(k.createFileDiagnostic(d,e,t,n))}),d.statements=et(0,nr),k.Debug.assert(1===A),d.endOfFileToken=j(Be()),function(e){e.externalModuleIndicator=k.forEach(e.statements,Wr)||function(e){return 1048576&e.flags?Gr(e):undefined}(e)}(d),d.nodeCount=_,d.identifierCount=g,d.identifiers=h,d.parseDiagnostics=p,n&&W(d);return d}(e,n,i,a);return H(),s},t.parseIsolatedEntityName=function(e,t){R(e,t,undefined,1),le();var n=st(!0),r=1===A&&!p.length;return H(),r?n:undefined},t.parseJsonText=F,t.fixupParentReferences=W,(n={})[n.SourceElements=0]="SourceElements",n[n.BlockStatements=1]="BlockStatements",n[n.SwitchClauses=2]="SwitchClauses",n[n.SwitchClauseStatements=3]="SwitchClauseStatements",n[n.TypeMembers=4]="TypeMembers",n[n.ClassMembers=5]="ClassMembers",n[n.EnumMembers=6]="EnumMembers",n[n.HeritageClauseElement=7]="HeritageClauseElement",n[n.VariableDeclarations=8]="VariableDeclarations",n[n.ObjectBindingElements=9]="ObjectBindingElements",n[n.ArrayBindingElements=10]="ArrayBindingElements",n[n.ArgumentExpressions=11]="ArgumentExpressions",n[n.ObjectLiteralMembers=12]="ObjectLiteralMembers",n[n.JsxAttributes=13]="JsxAttributes",n[n.JsxChildren=14]="JsxChildren",n[n.ArrayLiteralMembers=15]="ArrayLiteralMembers",n[n.Parameters=16]="Parameters",n[n.JSDocParameters=17]="JSDocParameters",n[n.RestProperties=18]="RestProperties",n[n.TypeParameters=19]="TypeParameters",n[n.TypeArguments=20]="TypeArguments",n[n.TupleElementTypes=21]="TupleElementTypes",n[n.HeritageClauses=22]="HeritageClauses",n[n.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",n[n.Count=24]="Count",(v={})[v.False=0]="False",v[v.True=1]="True",v[v.Unknown=2]="Unknown",(I=E=t.JSDocParser||(t.JSDocParser={})).parseJSDocTypeExpressionForTests=function(e,t,n){R(e,8,undefined,1),d=G("file.js",8,1,!1),V.setText(e,t,n),A=V.scan();var r=Yr(),i=p;return H(),r?{jsDocTypeExpression:r,diagnostics:i}:undefined},I.parseJSDocTypeExpression=Yr,I.parseIsolatedJSDocComment=function(e,t,n){R(e,8,undefined,1),d={languageVariant:0,text:e};var r=Jr(t,n),i=p;return H(),r?{jsDoc:r,diagnostics:i}:undefined},I.parseJSDocComment=function(e,t,n){var r,i=A,a=p.length,o=x,s=Jr(t,n);return s&&(s.parent=e),65536&y&&(d.jsDocDiagnostics||(d.jsDocDiagnostics=[]),(r=d.jsDocDiagnostics).push.apply(r,p)),A=i,p.length=a,x=o,s},(T={})[T.BeginningOfLine=0]="BeginningOfLine",T[T.SawAsterisk=1]="SawAsterisk",T[T.SavingComments=2]="SavingComments",(C={})[C.Property=1]="Property",C[C.Parameter=2]="Parameter",C[C.CallbackParameter=4]="CallbackParameter",I.parseJSDocCommentWorker=Jr,(S||(S={})).updateSourceFile=function(e,t,n,r){if(Xr(e,t,n,r=r||k.Debug.shouldAssert(2)),k.textChangeRangeIsUnchanged(n))return e;if(0===e.statements.length)return b.parseSourceFile(e.fileName,t,e.languageVersion,undefined,!0,e.scriptKind);var i=e;k.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0;var a=e.text,o=function(t){var o=t.statements,s=0;k.Debug.assert(s<o.length);var c=o[s],n=-1;return{currentNode:function(e){function r(e){return a>=e.pos&&a<e.end&&(M(e,r,i),!0)}function i(e){if(a>=e.pos&&a<e.end)for(var t=0;t<e.length;t++){var n=e[t];if(n){if(n.pos===a)return o=e,s=t,c=n,!0;if(n.pos<a&&a<n.end)return M(n,r,i),!0}}return!1}var a;return e!==n&&(c&&c.end===e&&s<o.length-1&&(c=o[++s]),c&&c.pos===e||(a=e,o=undefined,s=-1,c=undefined,M(t,r,i))),n=e,k.Debug.assert(!c||c.pos===e),c}}}(e),s=function(e,t){for(var n=t.span.start,r=0;0<n&&r<=1;r++){var i=function(e,t){var n,r=e;{var i;M(e,function a(e){if(k.nodeIsMissing(e))return;{if(!(e.pos<=t))return k.Debug.assert(e.pos>t),!0;if(e.pos>=r.pos&&(r=e),t<e.end)return M(e,a),!0;k.Debug.assert(e.end<=t),n=e}}),n&&(i=function(e){for(;;){var t=k.getLastChild(e);if(!t)return e;e=t}}(n)).pos>r.pos&&(r=i)}return r}(e,n);k.Debug.assert(i.pos<=n);var a=i.pos;n=Math.max(0,a-1)}var o=k.createTextSpanFromBounds(n,k.textSpanEnd(t.span)),s=t.newLength+(t.span.start-n);return k.createTextChangeRange(o,s)}(e,n);Xr(e,t,s,r),k.Debug.assert(s.span.start<=n.span.start),k.Debug.assert(k.textSpanEnd(s.span)===k.textSpanEnd(n.span)),k.Debug.assert(k.textSpanEnd(k.textChangeRangeNewSpan(s))===k.textSpanEnd(k.textChangeRangeNewSpan(n)));var c,u,l,d,p,f,_,h,g=k.textChangeRangeNewSpan(s).length-s.span.length;function m(e){if(k.Debug.assert(e.pos<=e.end),e.pos>l)zr(e,!1,p,f,_,h);else{var t=e.end;if(u<=t){if(e.intersectsChange=!0,e._children=undefined,Kr(e,u,l,d,p),M(e,m,y),k.hasJSDocNodes(e))for(var n=0,r=e.jsDoc;n<r.length;n++){m(r[n])}Zr(e,h)}else k.Debug.assert(t<u)}}function y(e){if(k.Debug.assert(e.pos<=e.end),e.pos>l)zr(e,!0,p,f,_,h);else{var t=e.end;if(u<=t){e.intersectsChange=!0,e._children=undefined,Kr(e,u,l,d,p);for(var n=0,r=e;n<r.length;n++){m(r[n])}}else k.Debug.assert(t<u)}}return c=i,u=s.span.start,l=k.textSpanEnd(s.span),d=k.textSpanEnd(k.textChangeRangeNewSpan(s)),p=g,f=a,_=t,h=r,m(c),b.parseSourceFile(e.fileName,t,e.languageVersion,o,!0,e.scriptKind)},(N={})[N.Value=-1]="Value",k.isDeclarationFileName=qr,k.processCommentPragmas=Qr,k.processPragmasIntoFields=$r;var ei=k.createMap();var ti=/^\/\/\/\s*<(\S+)\s.*?\/>/im,ni=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function ri(e,t,n,r){var i,a,o;r&&(i=r[1].toLowerCase(),(a=k.commentPragmas[i])&&a.kind&n&&("fail"!==(o=function(e,t){if(!t)return{};if(!e.args)return{};for(var n=t.split(/\s+/),r={},i=0;i<e.args.length;i++){var a=e.args[i];if(!n[i]&&!a.optional)return"fail";if(a.captureSpan)return k.Debug.fail("Capture spans not yet implemented for non-xml pragmas");r[a.name]=n[i]}return r}(a,r[2]))&&e.push({name:i,args:{arguments:o,range:t}})))}function ii(e,t){return e.kind===t.kind&&(73===e.kind?e.escapedText===t.escapedText:101===e.kind||e.name.escapedText===t.name.escapedText&&ii(e.expression,t.expression))}k.tagNamesAreEquivalent=ii}(rg=rg||{}),function(D){D.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var e,_,t=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.esnext.bigint.d.ts"]];function o(e){return e&&e.enableAutoDiscovery!==undefined&&e.enable===undefined?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){return e=e||c(D.optionDeclarations)}function c(e){var t=D.createMap(),n=D.createMap();return D.forEach(e,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)}),{optionNameMap:t,shortOptionNames:n}}function a(e){return u(e,D.createCompilerDiagnostic)}function u(e,t){var n=D.arrayFrom(e.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return t(D.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+e.name,n)}function h(e,t,n){return G(e,Y(t||""),n)}function g(t,e,n){if(void 0===e&&(e=""),e=Y(e),D.startsWith(e,"-"))return undefined;if(""===e)return[];var r=e.split(",");switch(t.element.type){case"number":return D.map(r,parseInt);case"string":return D.map(r,function(e){return e||""});default:return D.mapDefined(r,function(e){return h(t.element,e,n)})}}function l(o,e,t,s){var c=e[0],u=e[1],l={},d=[],p=[];return f(t),{options:l,fileNames:d,errors:p};function f(e){for(var t=0;t<e.length;){var n=e[t];if(t++,64===n.charCodeAt(0))!function(e){var t=s?s(e):D.sys.readFile(e);if(!t)return p.push(D.createCompilerDiagnostic(D.Diagnostics.File_0_not_found,e));var n=[],r=0;for(;;){for(;r<t.length&&t.charCodeAt(r)<=32;)r++;if(r>=t.length)break;var i=r;if(34===t.charCodeAt(i)){for(r++;r<t.length&&34!==t.charCodeAt(r);)r++;r<t.length?(n.push(t.substring(i+1,r)),r++):p.push(D.createCompilerDiagnostic(D.Diagnostics.Unterminated_quoted_string_in_response_file_0,e))}else{for(;32<t.charCodeAt(r);)r++;n.push(t.substring(i,r))}}f(n)}(n.slice(1));else if(45===n.charCodeAt(0)){var r=m(o,n.slice(45===n.charCodeAt(1)?2:1),!0);if(r)if(r.isTSConfigOnly)p.push(D.createCompilerDiagnostic(D.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,r.name));else switch(e[t]||"boolean"===r.type||p.push(D.createCompilerDiagnostic(u,r.name)),r.type){case"number":l[r.name]=parseInt(e[t]),t++;break;case"boolean":var i=e[t];l[r.name]="false"!==i,"false"!==i&&"true"!==i||t++;break;case"string":l[r.name]=e[t]||"",t++;break;case"list":var a=g(r,e[t],p);l[r.name]=a||[],a&&t++;break;default:l[r.name]=h(r,e[t],p),t++}else p.push(D.createCompilerDiagnostic(c,n))}else d.push(n)}}}function s(e,t){return m(n,e,t)}function m(e,t,n){void 0===n&&(n=!1),t=t.toLowerCase();var r,i=e(),a=i.optionNameMap,o=i.shortOptionNames;return!n||(r=o.get(t))!==undefined&&(t=r),a.get(t)}function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return D.createCompilerDiagnostic.apply(undefined,arguments).messageText}function r(e,t){var n=D.parseJsonText(e,t);return{config:v(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:undefined}}function y(e,t){var n=i(e,t);return D.isString(n)?D.parseJsonText(e,n):{parseDiagnostics:[n]}}function i(e,t){var n;try{n=t(e)}catch(r){return D.createCompilerDiagnostic(D.Diagnostics.Cannot_read_file_0_Colon_1,e,r.message)}return n===undefined?D.createCompilerDiagnostic(D.Diagnostics.The_specified_path_does_not_exist_Colon_0,e):n}function b(e){return D.arrayToMap(e,function(e){return e.name})}function v(e,t){return E(e,t,!0,undefined,undefined)}function E(f,_,h,t,g){return f.statements.length?y(f.statements[0].expression,t):h?{}:undefined;function m(e){return t&&t.elementOptions===e}function c(e,t,n,r){for(var i=h?{}:undefined,a=0,o=e.properties;a<o.length;a++){var s,c,u,l,d,p=o[a];276===p.kind?(p.questionToken&&_.push(D.createDiagnosticForNodeInSourceFile(f,p.questionToken,D.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),b(p.name)||_.push(D.createDiagnosticForNodeInSourceFile(f,p.name,D.Diagnostics.String_literal_with_double_quotes_expected)),u=(c=(s=D.getTextOfPropertyName(p.name))&&D.unescapeLeadingUnderscores(s))&&t?t.get(c):undefined,c&&n&&!u&&_.push(D.createDiagnosticForNodeInSourceFile(f,p.name,n,c)),l=y(p.initializer,u),void 0!==c&&(h&&(i[c]=l),g&&(r||m(t))&&(d=I(u,l),r?d&&g.onSetValidOptionKeyValueInParent(r,u,l):m(t)&&(d?g.onSetValidOptionKeyValueInRoot(c,p.name,l,p.initializer):u||g.onSetUnknownOptionKeyValueInRoot(c,p.name,l,p.initializer))))):_.push(D.createDiagnosticForNodeInSourceFile(f,p,D.Diagnostics.Property_assignment_expected))}return i}function y(r,t){switch(r.kind){case 103:return s(t&&"boolean"!==t.type),!0;case 88:return s(t&&"boolean"!==t.type),!1;case 97:return s(t&&"extends"===t.name),null;case 10:b(r)||_.push(D.createDiagnosticForNodeInSourceFile(f,r,D.Diagnostics.String_literal_with_double_quotes_expected)),s(t&&D.isString(t.type)&&"string"!==t.type);var e,n=r.text;return t&&!D.isString(t.type)&&((e=t).type.has(n.toLowerCase())||_.push(u(e,function(e,t,n){return D.createDiagnosticForNodeInSourceFile(f,r,e,t,n)}))),n;case 8:return s(t&&"number"!==t.type),Number(r.text);case 203:if(39!==r.operator||8!==r.operand.kind)break;return s(t&&"number"!==t.type),-Number(r.operand.text);case 189:s(t&&"object"!==t.type);var i=r;return t?c(i,t.elementOptions,t.extraKeyDiagnosticMessage,t.name):c(i,undefined,undefined,undefined);case 188:return s(t&&"list"!==t.type),a=r.elements,o=t&&t.element,h?D.filter(a.map(function(e){return y(e,o)}),function(e){return e!==undefined}):a.forEach(function(e){return y(e,o)})}var a,o;return t?s(!0):_.push(D.createDiagnosticForNodeInSourceFile(f,r,D.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)),undefined;function s(e){e&&_.push(D.createDiagnosticForNodeInSourceFile(f,r,D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,d(t)))}}function b(e){return D.isStringLiteral(e)&&D.isStringDoubleQuoted(e,f)}}function d(e){return"list"===e.type?"Array":D.isString(e.type)?e.type:"string"}function I(e,t){if(e){if(S(t))return!0;if("list"===e.type)return D.isArray(t);var n=D.isString(e.type)?e.type:"string";return zb(t)===n}return!1}function p(n,e){return D.forEachEntry(e,function(e,t){if(e===n)return t})}function f(a,o){var s=D.createMap(),c=n().optionNameMap,u=o&&D.createGetCanonicalFileName(o.useCaseSensitiveFileNames),l=function l(e){if(D.hasProperty(a,e)){if(c.has(e)&&c.get(e).category===D.Diagnostics.Command_line_Options)return"continue";var t,n=a[e],r=c.get(e.toLowerCase());r&&((t=function i(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?undefined:"list"===e.type?i(e.element):e.type}(r))?"list"===r.type?s.set(e,n.map(function(e){return p(e,t)})):s.set(e,p(n,t)):o&&r.isFilePath?s.set(e,D.getRelativePathFromFile(o.configFilePath,D.getNormalizedAbsolutePath(n,D.getDirectoryPath(o.configFilePath)),u)):s.set(e,n))}};for(var e in a)l(e);return s}function T(e,t,n,r,i,a,o,s){return C(undefined,e,t,n,r,i,a,o,s)}function x(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function S(e){return e===undefined||null===e}function N(e,t){return D.getDirectoryPath(D.getNormalizedAbsolutePath(e,t))}function C(e,h,g,m,t,y,b,v,n){void 0===t&&(t={}),void 0===b&&(b=[]),void 0===v&&(v=[]),D.Debug.assert(e===undefined&&h!==undefined||e!==undefined&&h===undefined);var E,I=[],r=P(e,h,g,m,y,b,I,n),T=r.raw,C=D.extend(t,r.options||{});C.configFilePath=y&&D.normalizeSlashes(y),x(C,h);var i=function(){var e,t,n;{var r,i,a,o,s,c;D.hasProperty(T,"files")&&!S(T.files)&&(D.isArray(T.files)?(e=T.files,r=!(D.hasProperty(T,"references")&&!S(T.references))||0===T.references.length,i=D.hasProperty(T,"extends"),0===e.length&&r&&!i&&(h?(a=y||"tsconfig.json",o=D.Diagnostics.The_files_list_in_config_file_0_is_empty,s=D.firstDefined(D.getTsConfigPropArray(h,"files"),function(e){return e.initializer}),c=s?D.createDiagnosticForNodeInSourceFile(h,s,o,a):D.createCompilerDiagnostic(o,a),I.push(c)):B(D.Diagnostics.The_files_list_in_config_file_0_is_empty,y||"tsconfig.json"))):B(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array"))}D.hasProperty(T,"include")&&!S(T.include)&&(D.isArray(T.include)?t=T.include:B(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));{var u,l;D.hasProperty(T,"exclude")&&!S(T.exclude)?D.isArray(T.exclude)?n=T.exclude:B(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array"):T.compilerOptions&&(u=T.compilerOptions.outDir,l=T.compilerOptions.declarationDir,(u||l)&&(n=[u,l].filter(function(e){return!!e})))}e===undefined&&t===undefined&&(t=["**/*"]);var d=function(e,t,n,r,i,a,o,s,c){var u,l;r=D.normalizePath(r),t&&(u=X(t,o,!1,c,"include"));n&&(l=X(n,o,!0,c,"exclude"));var d=function(e,t,n,r){var i=D.getRegularExpressionForWildcard(t,n,"exclude"),a=i&&new RegExp(i,r?"":"i"),o={};if(e!==undefined){for(var s=[],c=0,u=e;c<u.length;c++){var l,d,p,f=u[c],_=D.normalizePath(D.combinePaths(n,f));a&&a.test(_)||(l=function(e,t){var n=K.exec(e);if(n)return{key:t?n[0]:n[0].toLowerCase(),flags:U.test(e)?1:0};if(D.isImplicitGlob(e))return{key:e,flags:1};return undefined}(_,r))&&(h=l.key,d=l.flags,((p=o[h])===undefined||p<d)&&1===(o[h]=d)&&s.push(h))}for(var h in o)if(D.hasProperty(o,h))for(var g=0,m=s;g<m.length;g++){var y=m[g];h!==y&&D.containsPath(y,h,n,!r)&&delete o[h]}}return o}(u,l,r,a.useCaseSensitiveFileNames);return Z({filesSpecs:e,includeSpecs:t,excludeSpecs:n,validatedIncludeSpecs:u,validatedExcludeSpecs:l,wildcardDirectories:d},r,i,a,s)}(e,t,n,y?N(y,m):m,C,g,I,v,h);w(d,V(T),b)&&I.push(A(d.spec,y));if(D.hasProperty(T,"references")&&!S(T.references))if(D.isArray(T.references))for(var p=0,f=T.references;p<f.length;p++){var _=f[p];"string"!=typeof _.path?B(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(E=E||[]).push({path:D.getNormalizedAbsolutePath(_.path,m),originalPath:_.path,prepend:_.prepend,circular:_.circular})}else B(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return d}(),a=i.fileNames,o=i.wildcardDirectories,s=i.spec;return{options:C,fileNames:a,projectReferences:E,typeAcquisition:r.typeAcquisition||O(),raw:T,errors:I,wildcardDirectories:o,compileOnSave:!!T.compileOnSave,configFileSpecs:s};function B(e,t,n){h||I.push(D.createCompilerDiagnostic(e,t,n))}}function A(e,t){var n=e.includeSpecs,r=e.excludeSpecs;return D.createCompilerDiagnostic(D.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,t||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(r||[]))}function w(e,t,n){return 0===e.fileNames.length&&t&&(!n||0===n.length)}function V(e){return!D.hasProperty(e,"files")&&!D.hasProperty(e,"references")}function B(e){return e.options}function P(e,t,n,r,i,a,o,s){r=D.normalizeSlashes(r);var c=D.getNormalizedAbsolutePath(i||"",r);if(0<=a.indexOf(c))return o.push(D.createCompilerDiagnostic(D.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,a.concat([c]).join(" -> "))),{raw:e||v(t,o)};var u,l,d,p,f=e?function(e,t,n,r,i){D.hasProperty(e,"excludes")&&i.push(D.createCompilerDiagnostic(D.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var a,o=F(e.compilerOptions,n,i,r),s=R(e.typeAcquisition||e.typingOptions,n,i,r);{var c;e.compileOnSave=function(e,t,n){if(!D.hasProperty(e,D.compileOnSaveCommandLineOption.name))return!1;var r=j(D.compileOnSaveCommandLineOption,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i),e["extends"]&&(D.isString(e["extends"])?(c=r?N(r,n):n,a=L(e["extends"],t,c,i,D.createCompilerDiagnostic)):i.push(D.createCompilerDiagnostic(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")))}return{raw:e,options:o,typeAcquisition:s,extendedConfigPath:a}}(e,n,r,i,o):function(a,o,s,c,u){var r,l,d,p=M(c),e={onSetValidOptionKeyValueInParent:function(e,t,n){D.Debug.assert("compilerOptions"===e||"typeAcquisition"===e||"typingOptions"===e),("compilerOptions"===e?p:"typeAcquisition"===e?r=r||O(c):l=l||O(c))[t.name]=function i(e,t,n){if(S(n))return undefined;{if("list"===e.type){var r=e;return r.element.isFilePath||!D.isString(r.element.type)?D.filter(D.map(n,function(e){return i(r.element,t,e)}),function(e){return!!e}):n}if(!D.isString(e.type))return e.type.get(D.isString(n)?n.toLowerCase():n)}return W(e,t,n)}(t,s,n)},onSetValidOptionKeyValueInRoot:function(e,t,n,r){switch(e){case"extends":var i=c?N(c,s):s;return void(d=L(n,o,i,u,function(e,t){return D.createDiagnosticForNodeInSourceFile(a,r,e,t)}))}},onSetUnknownOptionKeyValueInRoot:function(e,t,n,r){"excludes"===e&&u.push(D.createDiagnosticForNodeInSourceFile(a,t,D.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},t=E(a,u,!0,(_===undefined&&(_={name:undefined,type:"object",elementOptions:b([{name:"compilerOptions",type:"object",elementOptions:b(D.optionDeclarations),extraKeyDiagnosticMessage:D.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:b(D.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:D.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:b(D.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:D.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},D.compileOnSaveCommandLineOption])}),_),e);r=r||(l?l.enableAutoDiscovery!==undefined?{enable:l.enableAutoDiscovery,include:l.include,exclude:l.exclude}:l:O(c));return{raw:t,options:p,typeAcquisition:r,extendedConfigPath:d}}(t,n,r,i,o);return f.extendedConfigPath&&(a=a.concat([c]),(u=function(e,t,n,r,i,a,o){var s,c,u,l,d=n.useCaseSensitiveFileNames?t:D.toLowerCase(t);{var p,f,_,h,g;o&&(c=o.get(d))?(u=c.extendedResult,l=c.extendedConfig):((u=y(t,function(e){return n.readFile(e)})).parseDiagnostics.length||(p=D.getDirectoryPath(t),B(l=P(undefined,u,n,p,D.getBaseFileName(t),i,a,o))&&(f=D.convertToRelativePath(p,r,D.identity),_=function _(e){return D.isRootedDiskPath(e)?e:D.combinePaths(f,e)},h=function h(e){g[e]&&(g[e]=D.map(g[e],_))},g=l.raw,h("include"),h("exclude"),h("files"))),o&&o.set(d,{extendedResult:u,extendedConfig:l}))}e&&(e.extendedSourceFiles=[u.fileName],u.extendedSourceFiles&&(s=e.extendedSourceFiles).push.apply(s,u.extendedSourceFiles));if(u.parseDiagnostics.length)return a.push.apply(a,u.parseDiagnostics),undefined;return l}(t,f.extendedConfigPath,n,r,a,o,s))&&B(u)&&(l=u.raw,d=f.raw,p=function p(e){var t=d[e]||l[e];t&&(d[e]=t)},p("include"),p("exclude"),p("files"),d.compileOnSave===undefined&&(d.compileOnSave=l.compileOnSave),f.options=D.assign({},u.options,f.options))),f}function L(e,t,n,r,i){if(e=D.normalizeSlashes(e),D.isRootedDiskPath(e)||D.startsWith(e,"./")||D.startsWith(e,"../")){var a=D.getNormalizedAbsolutePath(e,n);return t.fileExists(a)||D.endsWith(a,".json")||(a+=".json",t.fileExists(a))?a:(r.push(i(D.Diagnostics.File_0_not_found,e)),undefined)}var o=D.nodeModuleNameResolver(e,D.combinePaths(n,"tsconfig.json"),{moduleResolution:D.ModuleResolutionKind.NodeJs},t,undefined,undefined,!0);return o.resolvedModule?o.resolvedModule.resolvedFileName:(r.push(i(D.Diagnostics.File_0_not_found,e)),undefined)}function M(e){return e&&"jsconfig.json"===D.getBaseFileName(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function F(e,t,n,r){var i=M(r);return H(D.optionDeclarations,e,t,i,D.Diagnostics.Unknown_compiler_option_0,n),r&&(i.configFilePath=D.normalizeSlashes(r)),i}function O(e){return{enable:!!e&&"jsconfig.json"===D.getBaseFileName(e),include:[],exclude:[]}}function R(e,t,n,r){var i=O(r),a=o(e);return H(D.typeAcquisitionDeclarations,a,t,i,D.Diagnostics.Unknown_type_acquisition_option_0,n),i}function H(e,t,n,r,i,a){if(t){var o=b(e);for(var s in t){var c=o.get(s);c?r[c.name]=j(c,t[s],n,a):a.push(D.createCompilerDiagnostic(i,s))}}}function j(e,t,n,r){if(I(e,t)){var i=e.type;return"list"===i&&D.isArray(t)?(a=e,o=t,s=n,c=r,D.filter(D.map(o,function(e){return j(a.element,e,s,c)}),function(e){return!!e})):D.isString(i)?W(e,n,t):G(e,t,r)}var a,o,s,c;r.push(D.createCompilerDiagnostic(D.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e.name,d(e)))}function W(e,t,n){return e.isFilePath&&""===(n=D.normalizePath(D.combinePaths(t,n)))&&(n="."),n}function G(e,t,n){if(S(t))return undefined;var r=t.toLowerCase(),i=e.type.get(r);if(i!==undefined)return i;n.push(a(e))}function Y(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}D.libs=t.map(function(e){return e[0]}),D.libMap=D.createMapFromEntries(t),D.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Show_verbose_diagnostic_information},{name:"incremental",shortName:"i",type:"boolean",category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Enable_incremental_compilation}],D.optionDeclarations=D.commonOptionsWithBuild.concat([{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,paramType:D.Diagnostics.FILE_OR_DIRECTORY,description:D.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:D.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:D.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"target",shortName:"t",type:D.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:8}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:D.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_or_ESNEXT},{name:"module",shortName:"m",type:D.createMapFromTemplate({none:D.ModuleKind.None,commonjs:D.ModuleKind.CommonJS,amd:D.ModuleKind.AMD,system:D.ModuleKind.System,umd:D.ModuleKind.UMD,es6:D.ModuleKind.ES2015,es2015:D.ModuleKind.ES2015,esnext:D.ModuleKind.ESNext}),affectsModuleResolution:!0,paramType:D.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:D.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:D.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:D.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.LOCATION,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Enable_project_compilation},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.FILE,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Specify_file_to_store_incremental_compilation_information},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:D.Diagnostics.Basic_Options,description:D.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Strict_Type_Checking_Options,description:D.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Additional_Checks,description:D.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:D.createMapFromTemplate({node:D.ModuleResolutionKind.NodeJs,classic:D.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:D.Diagnostics.STRATEGY,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Module_Resolution_Options,description:D.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:D.Diagnostics.LOCATION,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:D.Diagnostics.LOCATION,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Source_Map_Options,description:D.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:D.Diagnostics.Experimental_Options,description:D.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:D.Diagnostics.Experimental_Options,description:D.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:D.Diagnostics.Advanced_Options,paramType:D.Diagnostics.FILE,description:D.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:D.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:D.Diagnostics.NEWLINE,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:D.Diagnostics.DIRECTORY,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:D.Diagnostics.Advanced_Options,description:D.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:D.Diagnostics.List_of_language_service_plugins}]),D.semanticDiagnosticsOptionDeclarations=D.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),D.affectsEmitOptionDeclarations=D.optionDeclarations.filter(function(e){return!!e.affectsEmit}),D.moduleResolutionOptionDeclarations=D.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),D.sourceFileAffectingCompilerOptions=D.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),D.buildOpts=D.commonOptionsWithBuild.concat([{name:"verbose",shortName:"v",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:D.Diagnostics.Command_line_Options,description:D.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),D.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],D.defaultInitCompilerOptions={module:D.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},D.convertEnableAutoDiscoveryToEnable=o,D.createOptionNameMap=c,D.createCompilerDiagnosticForInvalidCustomType=a,D.parseCustomTypeOption=h,D.parseListTypeOption=g,D.parseCommandLine=function(e,t){return l(n,[D.Diagnostics.Unknown_compiler_option_0,D.Diagnostics.Compiler_option_0_expects_an_argument],e,t)},D.getOptionFromName=s,D.parseBuildCommand=function(e){var t,n=function n(){return t=t||c(D.buildOpts)},r=l(n,[D.Diagnostics.Unknown_build_option_0,D.Diagnostics.Build_option_0_requires_a_value_of_type_1],e),i=r.options,a=r.fileNames,o=r.errors,s=i;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(D.createCompilerDiagnostic(D.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,projects:a,errors:o}},D.printVersion=function(){D.sys.write(k(D.Diagnostics.Version_0,D.version)+D.sys.newLine)},D.printHelp=function(e,t){void 0===t&&(t="");var n=[],r=k(D.Diagnostics.Syntax_Colon_0,"").length,i=k(D.Diagnostics.Examples_Colon_0,"").length,a=Math.max(r,i),o=N(a-r);o+="tsc "+t+"["+k(D.Diagnostics.options)+"] ["+k(D.Diagnostics.file)+"...]",n.push(k(D.Diagnostics.Syntax_Colon_0,o)),n.push(D.sys.newLine+D.sys.newLine);var s=N(a);n.push(k(D.Diagnostics.Examples_Colon_0,N(a-i)+"tsc hello.ts")+D.sys.newLine),n.push(s+"tsc --outFile file.js file.ts"+D.sys.newLine),n.push(s+"tsc @args.txt"+D.sys.newLine),n.push(s+"tsc --build tsconfig.json"+D.sys.newLine),n.push(D.sys.newLine),n.push(k(D.Diagnostics.Options_Colon)+D.sys.newLine),a=0;for(var c=[],u=[],l=D.createMap(),d=0,p=e;d<p.length;d++){var f,_,h=p[d];h.description&&(f=" ",h.shortName&&(f+="-"+h.shortName,f+=S(h),f+=", "),f+="--"+h.name,f+=S(h),c.push(f),b=void 0,"lib"===h.name?(b=k(h.description),_=h.element.type,l.set(b,D.arrayFrom(_.keys()).map(function(e){return"'"+e+"'"}))):b=k(h.description),u.push(b),a=Math.max(f.length,a))}var g=" @<"+k(D.Diagnostics.file)+">";c.push(g),u.push(k(D.Diagnostics.Insert_command_line_options_and_files_from_a_file)),a=Math.max(g.length,a);for(var m=0;m<c.length;m++){var y=c[m],b=u[m],v=l.get(b);if(n.push(y+N(a-y.length+2)+b+D.sys.newLine),v){n.push(N(a+4));for(var E=0,I=v;E<I.length;E++){var T=I[E];n.push(T+" ")}n.push(D.sys.newLine)}}for(var C=0,B=n;C<B.length;C++){var x=B[C];D.sys.write(x)}return;function S(e){return e.paramType!==undefined?" "+k(e.paramType):""}function N(e){return Array(e+1).join(" ")}},D.getParsedCommandLineOfConfigFile=function(e,t,n,r){var i;try{i=n.readFile(e)}catch(c){var a=D.createCompilerDiagnostic(D.Diagnostics.Cannot_read_file_0_Colon_1,e,c.message);return n.onUnRecoverableConfigFileDiagnostic(a),undefined}if(!i){a=D.createCompilerDiagnostic(D.Diagnostics.File_0_not_found,e);return n.onUnRecoverableConfigFileDiagnostic(a),undefined}var o=D.parseJsonText(e,i),s=n.getCurrentDirectory();return o.path=D.toPath(e,s,D.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),o.resolvedPath=o.path,o.originalFileName=o.fileName,T(o,n,D.getNormalizedAbsolutePath(D.getDirectoryPath(e),s),t,D.getNormalizedAbsolutePath(e,s),undefined,undefined,r)},D.readConfigFile=function(e,t){var n=i(e,t);return D.isString(n)?r(e,n):{config:{},error:n}},D.parseConfigFileTextToJson=r,D.readJsonConfigFile=y,D.convertToObject=v,D.convertToObjectWorker=E,D.convertToTSConfig=function(e,t,n){var r,i=D.createGetCanonicalFileName(n.useCaseSensitiveFileNames),a=D.map(D.filter(e.fileNames,e.configFileSpecs&&e.configFileSpecs.validatedIncludeSpecs?function(e,t,n){if(!t)return function(e){return!0};var r=D.getFileMatcherPatterns(e,n,t,D.sys.useCaseSensitiveFileNames,D.sys.getCurrentDirectory()),i=r.excludePattern&&D.getRegexFromPattern(r.excludePattern,D.sys.useCaseSensitiveFileNames),a=r.includeFilePattern&&D.getRegexFromPattern(r.includeFilePattern,D.sys.useCaseSensitiveFileNames);if(a)return i?function(e){return!(a.test(e)&&!i.test(e))}:function(e){return!a.test(e)};if(i)return function(e){return i.test(e)};return function(e){return!0}}(t,e.configFileSpecs.validatedIncludeSpecs,e.configFileSpecs.validatedExcludeSpecs):function(e){return!0}),function(e){return D.getRelativePathFromFile(D.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),D.getNormalizedAbsolutePath(e,n.getCurrentDirectory()),i)}),o=f(e.options,{configFilePath:D.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames});return Qb({compilerOptions:Qb({},D.arrayFrom(o.entries()).reduce(function(e,t){var n;return Qb({},e,((n={})[t[0]]=t[1],n))},{}),{showConfig:undefined,configFile:undefined,configFilePath:undefined,help:undefined,init:undefined,listFiles:undefined,listEmittedFiles:undefined,project:undefined,build:undefined,version:undefined}),references:D.map(e.projectReferences,function(e){return Qb({},e,{path:e.originalPath,originalPath:undefined})}),files:D.length(a)?a:undefined},e.configFileSpecs?{include:(r=e.configFileSpecs.validatedIncludeSpecs,!D.length(r)||1===D.length(r)&&"**/*"===r[0]?undefined:r),exclude:e.configFileSpecs.validatedExcludeSpecs}:{},{compilerOnSave:!!e.compileOnSave||undefined})},D.generateTSConfig=function(e,_,h){var g=f(D.extend(e,D.defaultInitCompilerOptions));return function(){for(var e=D.createMultiMap(),t=0,n=D.optionDeclarations;t<n.length;t++){var r=n[t],i=r.category;!function(e){var t=e.category,n=e.name;return t!==undefined&&t!==D.Diagnostics.Command_line_Options&&(t!==D.Diagnostics.Advanced_Options||g.has(n))}(r)||e.add(D.getLocaleSpecificMessage(i),r)}var o=0,s=0,c=[],u=[];e.forEach(function(e,t){0!==c.length&&(c.push(""),u.push("")),c.push("/* "+t+" */"),u.push("");for(var n=0,r=e;n<r.length;n++){var i=r[n],a=void 0,a=g.has(i.name)?'"'+i.name+'": '+JSON.stringify(g.get(i.name))+((s+=1)===g.size?"":","):'// "'+i.name+'": '+JSON.stringify(function(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}(i))+",";c.push(a),u.push("/* "+(i.description&&D.getLocaleSpecificMessage(i.description)||i.name)+" */"),o=Math.max(a.length,o)}});var a=m(2),l=[];l.push("{"),l.push(a+'"compilerOptions": {');for(var d=0;d<c.length;d++){var p=c[d],f=u[d];l.push(p&&""+a+a+p+(f&&m(o-p.length+2)+f))}if(_.length){l.push(a+"},"),l.push(a+'"files": [');for(d=0;d<_.length;d++)l.push(""+a+a+JSON.stringify(_[d])+(d===_.length-1?"":","));l.push(a+"]")}else l.push(a+"}");return l.push("}"),l.join(h)+h}();function m(e){return Array(e+1).join(" ")}},D.parseJsonConfigFileContent=function(e,t,n,r,i,a,o,s){return C(e,undefined,t,n,r,i,a,o,s)},D.parseJsonSourceFileConfigFileContent=T,D.setConfigFileInOptions=x,D.canJsonReportNoInutFiles=V,D.updateErrorForNoInputFiles=function(e,t,n,r,i){var a=r.length;return w(e,i)?r.push(A(n,t)):D.filterMutate(r,function(e){return!(e.code===D.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)}),a!==r.length},D.convertCompilerOptionsFromJson=function(e,t,n){var r=[];return{options:F(e,t,r,n),errors:r}},D.convertTypeAcquisitionFromJson=function(e,t,n){var r=[];return{options:R(e,t,r,n),errors:r}};var J=/(^|\/)\*\*\/?$/,z=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,U=/\/[^/]*?[*?][^/]*\//,K=/^[^*?]*(?=\/[^/]*[*?])/;function Z(e,a,t,o,n){void 0===n&&(n=[]),a=D.normalizePath(a);var s,c=o.useCaseSensitiveFileNames?D.identity:D.toLowerCase,u=D.createMap(),l=D.createMap(),d=D.createMap(),r=e.filesSpecs,p=e.validatedIncludeSpecs,i=e.validatedExcludeSpecs,f=e.wildcardDirectories,_=D.getSupportedExtensions(t,n),h=D.getSuppoertedExtensionsWithJsonIfResolveJsonModule(t,_);if(r)for(var g=0,m=r;g<m.length;g++){var y=m[g],b=D.getNormalizedAbsolutePath(y,a);u.set(c(b),b)}if(p&&0<p.length)for(var v=function v(t){var e,n,r;if(D.fileExtensionIs(t,".json"))return s||(e=p.filter(function(e){return D.endsWith(e,".json")}),n=D.map(D.getRegularExpressionsForWildcards(e,a,"files"),function(e){return"^"+e+"$"}),s=n?n.map(function(e){return D.getRegexFromPattern(e,o.useCaseSensitiveFileNames)}):D.emptyArray),-1!==D.findIndex(s,function(e){return e.test(t)})&&(r=c(t),u.has(r)||d.has(r)||d.set(r,t)),"continue";if(function(e,t,n,r,i){for(var a=D.getExtensionPriority(e,r),o=D.adjustExtensionPriority(a,r),s=0;s<o;s++){var c=r[s],u=i(D.changeExtension(e,c));if(t.has(u)||n.has(u))return!0}return!1}(t,u,l,_,c))return"continue";!function(e,t,n,r){for(var i=D.getExtensionPriority(e,n),a=D.getNextLowestExtensionPriority(i,n);a<n.length;a++){var o=n[a],s=r(D.changeExtension(e,o));t["delete"](s)}}(t,l,_,c);var i=c(t);u.has(i)||l.has(i)||l.set(i,t)},E=0,I=o.readDirectory(a,h,i,p,undefined);E<I.length;E++){v(b=I[E])}var T=D.arrayFrom(u.values()),C=D.arrayFrom(l.values());return{fileNames:T.concat(C,D.arrayFrom(d.values())),wildcardDirectories:f,spec:e}}function X(e,a,o,s,c){return e.filter(function(e){var t,n,r,i=function(e,t){{if(!t&&J.test(e))return D.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(z.test(e))return D.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}}(e,o);return i!==undefined&&a.push((t=i,n=e,(r=D.getTsConfigPropArrayElementValue(s,c,n))?D.createDiagnosticForNodeInSourceFile(s,r,t,n):D.createCompilerDiagnostic(t,n))),i===undefined})}D.getFileNamesFromConfigSpecs=Z,D.convertCompilerOptionsForTelemetry=function(e){var t,n={};for(var r in e){!e.hasOwnProperty(r)||(t=s(r))!==undefined&&(n[r]=function i(n,e){switch(e.type){case"object":case"string":return"";case"number":return"number"==typeof n?n:"";case"boolean":return"boolean"==typeof n?n:"";case"list":var t=e.element;return D.isArray(n)?n.map(function(e){return i(e,t)}):"";default:return D.forEachEntry(e.type,function(e,t){if(e===n)return t})}}(e[r],t))}return n}}(rg=rg||{}),function(v){function E(e){e.trace(v.formatMessage.apply(undefined,arguments))}function b(e,t){return!!e.traceResolution&&t.trace!==undefined}function g(e,t){var n,r;return t&&e&&("string"==typeof(r=e.packageJsonContent).name&&"string"==typeof r.version&&(n={name:r.name,subModuleName:t.path.slice(e.packageDirectory.length+v.directorySeparator.length),version:r.version})),t&&{path:t.path,extension:t.ext,packageId:n}}function m(e){return g(undefined,e)}function _(e){if(e)return v.Debug.assert(e.packageId===undefined),{path:e.path,ext:e.extension}}var I,e,r;function h(e){return e?(v.Debug.assert(v.extensionIsTS(e.extension)),{fileName:e.path,packageId:e.packageId}):undefined}function T(e,t,n){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?undefined:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:n}}function s(e,t,n,r){if(v.hasProperty(e,t)){var i=e[t];if(zb(i)===n&&null!==i)return i;r.traceEnabled&&E(r.host,v.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":zb(i))}else r.traceEnabled&&E(r.host,v.Diagnostics.package_json_does_not_have_a_0_field,t)}function y(e,t,n,r){var i=s(e,t,"string",r);if(i!==undefined){if(i){var a=v.normalizePath(v.combinePaths(n,i));return r.traceEnabled&&E(r.host,v.Diagnostics.package_json_has_0_field_1_that_references_2,t,i,a),a}r.traceEnabled&&E(r.host,v.Diagnostics.package_json_had_a_falsy_0_field,t)}}function C(e,t,n){return y(e,"typings",t,n)||y(e,"types",t,n)}function B(e,t,n){return y(e,"main",t,n)}function c(e,t){var n=function(e,t){var n=s(e,"typesVersions","object",t);if(n!==undefined)return t.traceEnabled&&E(t.host,v.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(n!==undefined){if(t.traceEnabled)for(var r in n)v.hasProperty(n,r)&&!v.VersionRange.tryParse(r)&&E(t.host,v.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,r);var i=u(n);if(i){var a=i.version,o=i.paths;if("object"===zb(o))return i;t.traceEnabled&&E(t.host,v.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+a+"']","object",zb(o))}else t.traceEnabled&&E(t.host,v.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,v.versionMajorMinor)}}function u(e){for(var t in r=r||new v.Version(v.version),e)if(v.hasProperty(e,t)){var n=v.VersionRange.tryParse(t);if(n!==undefined&&n.test(r))return{version:t,paths:e[t]}}}function x(e,t){return e.typeRoots?e.typeRoots:(e.configFilePath?n=v.getDirectoryPath(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==undefined?(r=n,(i=t).directoryExists?(v.forEachAncestorDirectory(v.normalizePath(r),function(e){var t=v.combinePaths(e,o);return i.directoryExists(t)&&(a=a||[]).push(t),undefined}),a):[v.combinePaths(r,o)]):void 0);var n,r,i,a}v.trace=E,v.isTraceEnabled=b,(e=I=I||{})[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly",v.getPackageJsonTypesVersionsPaths=u,v.getEffectiveTypeRoots=x;var o=v.combinePaths("node_modules","@types");function i(r){var i=v.createMap(),a=v.createMap();return{ownMap:i,redirectsMap:a,getOrCreateMapOfCacheRedirects:function(e){if(!e)return i;var t=e.sourceFile.path,n=a.get(t);n||(n=!r||v.optionsHaveModuleResolutionChanges(r,e.commandLine.options)?v.createMap():i,a.set(t,n));return n},clear:function(){i.clear(),a.clear()},setOwnOptions:function(e){r=e},setOwnMap:function(e){i=e}}}function a(r,n,c,u){return{getOrCreateCacheForDirectory:function(e,t){var n=v.toPath(e,c,u);return i(r,t,n,v.createMap)},getOrCreateCacheForModuleName:function(e,t){return v.Debug.assert(!v.isExternalModuleNameRelative(e)),i(n,t,e,a)},directoryToModuleNameMap:r,moduleNameToDirectoryMap:n};function i(e,t,n,r){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(n);return a||(a=r(),i.set(n,a)),a}function a(){var s=v.createMap();return{get:function(e){return s.get(v.toPath(e,c,u))},set:function(e,t){var n=v.toPath(e,c,u);if(s.has(n))return;s.set(n,t);var r=t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName),i=r&&function(e,t){var n=v.toPath(v.getDirectoryPath(t),c,u),r=0,i=Math.min(e.length,n.length);for(;r<i&&e.charCodeAt(r)===n.charCodeAt(r);)r++;if(r===e.length&&(n.length===r||n[r]===v.directorySeparator))return e;var a=v.getRootLength(e);if(r<a)return undefined;var o=e.lastIndexOf(v.directorySeparator,r-1);return-1!==o?e.substr(0,Math.max(o,a)):undefined}(n,r),a=n;for(;a!==i;){var o=v.getDirectoryPath(a);if(o===a||s.has(o))break;s.set(o,t),a=o}}}}}function S(e,t,n,r,i){var a=function(e,t,n,r){var i=r.compilerOptions,a=i.baseUrl,o=i.paths;if(a&&o&&!v.pathIsRelative(t))return r.traceEnabled&&(E(r.host,v.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,a,t),E(r.host,v.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),U(e,t,a,o,n,!1,r)}(e,t,r,i);return a?a.value:v.isExternalModuleNameRelative(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return undefined;i.traceEnabled&&E(i.host,v.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);for(var a,o,s=v.normalizePath(v.combinePaths(n,t)),c=0,u=i.compilerOptions.rootDirs;c<u.length;c++){var l=u[c],d=v.normalizePath(l);v.endsWith(d,v.directorySeparator)||(d+=v.directorySeparator);var p=v.startsWith(s,d)&&(o===undefined||o.length<d.length);i.traceEnabled&&E(i.host,v.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,d,s,p),p&&(o=d,a=l)}if(o){i.traceEnabled&&E(i.host,v.Diagnostics.Longest_matching_prefix_for_0_is_1,s,o);var f=s.substr(o.length);i.traceEnabled&&E(i.host,v.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,f,o,s);var _=r(e,s,!v.directoryProbablyExists(n,i.host),i);if(_)return _;i.traceEnabled&&E(i.host,v.Diagnostics.Trying_other_entries_in_rootDirs);for(var h=0,g=i.compilerOptions.rootDirs;h<g.length;h++){if((l=g[h])!==a){var m=v.combinePaths(v.normalizePath(l),f);i.traceEnabled&&E(i.host,v.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,f,l,m);var y=v.getDirectoryPath(m),b=r(e,m,!v.directoryProbablyExists(y,i.host),i);if(b)return b}}i.traceEnabled&&E(i.host,v.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return undefined}(e,t,n,r,i):function(e,t,n,r){var i=r.compilerOptions.baseUrl;if(!i)return undefined;r.traceEnabled&&E(r.host,v.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t);var a=v.normalizePath(v.combinePaths(i,t));r.traceEnabled&&E(r.host,v.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,t,i,a);return n(e,a,!v.directoryProbablyExists(v.getDirectoryPath(a),r.host),r)}(e,t,r,i)}v.resolveTypeReferenceDirective=function(i,a,e,o,t){var s=b(e,o);t&&(e=t.commandLine.options);var n=[],c={compilerOptions:e,host:o,traceEnabled:s,failedLookupLocations:n},r=x(e,o);s&&(a===undefined?r===undefined?E(o,v.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,i):E(o,v.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,i,r):r===undefined?E(o,v.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,i,a):E(o,v.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,i,a,r),t&&E(o,v.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,t.sourceFile.fileName));var u,l,d,p,f=function(){{if(r&&r.length)return s&&E(o,v.Diagnostics.Resolving_with_primary_search_path_0,r.join(", ")),v.firstDefined(r,function(e){var t=v.combinePaths(e,i),n=v.getDirectoryPath(t),r=v.directoryProbablyExists(n,o);return!r&&s&&E(o,v.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),h(R(I.DtsOnly,t,!r,c))});s&&E(o,v.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}}(),_=!0;return f||(f=function(){var e=a&&v.getDirectoryPath(a);{if(e!==undefined){s&&E(o,v.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,e);var t,n,r=h(v.isExternalModuleNameRelative(i)?(t=v.normalizePathAndParts(v.combinePaths(e,i)).path,w(I.DtsOnly,t,!1,c,!0)):(n=G(I.DtsOnly,i,e,c,undefined,undefined))&&n.value);return!r&&s&&E(o,v.Diagnostics.Type_reference_directive_0_was_not_resolved,i),r}s&&E(o,v.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}(),_=!1),f&&(l=f.fileName,d=f.packageId,p=e.preserveSymlinks?l:A(l,o,s),s&&(d?E(o,v.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,i,p,v.packageIdToString(d),_):E(o,v.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,i,p,_)),u={primary:_,resolvedFileName:p,packageId:d,isExternalLibraryImport:V(l)}),{resolvedTypeReferenceDirective:u,failedLookupLocations:n}},v.getAutomaticTypeDirectiveNames=function(e,t){if(e.types)return e.types;var n=[];if(t.directoryExists&&t.getDirectories){var r=x(e,t);if(r)for(var i=0,a=r;i<a.length;i++){var o=a[i];if(t.directoryExists(o))for(var s=0,c=t.getDirectories(o);s<c.length;s++){var u,l=c[s],d=v.normalizePath(l),p=v.combinePaths(o,d,"package.json");t.fileExists(p)&&null===v.readJson(p,t).typings||46!==(u=v.getBaseFileName(d)).charCodeAt(0)&&n.push(u)}}}return n},v.createModuleResolutionCache=function(e,t,n){return a(i(n),i(n),e,t)},v.createCacheWithRedirects=i,v.createModuleResolutionCacheWithMaps=a,v.resolveModuleNameFromCache=function(e,t,n){var r=v.getDirectoryPath(t),i=n&&n.getOrCreateCacheForDirectory(r);return i&&i.get(e)},v.resolveModuleName=function(e,t,n,r,i,a){var o=b(n,r);a&&(n=a.commandLine.options),o&&(E(r,v.Diagnostics.Resolving_module_0_from_1,e,t),a&&E(r,v.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));var s=v.getDirectoryPath(t),c=i&&i.getOrCreateCacheForDirectory(s,a),u=c&&c.get(e);if(u)o&&E(r,v.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,e,s);else{var l=n.moduleResolution;switch(l===undefined?(l=v.getEmitModuleKind(n)===v.ModuleKind.CommonJS?v.ModuleResolutionKind.NodeJs:v.ModuleResolutionKind.Classic,o&&E(r,v.Diagnostics.Module_resolution_kind_is_not_specified_using_0,v.ModuleResolutionKind[l])):o&&E(r,v.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,v.ModuleResolutionKind[l]),l){case v.ModuleResolutionKind.NodeJs:u=D(e,t,n,r,i,a);break;case v.ModuleResolutionKind.Classic:u=q(e,t,n,r,i,a);break;default:return v.Debug.fail("Unexpected moduleResolution: "+l)}c&&(c.set(e,u),v.isExternalModuleNameRelative(e)||i.getOrCreateCacheForModuleName(e,a).set(s,u))}return o&&(u.resolvedModule?u.resolvedModule.packageId?E(r,v.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,u.resolvedModule.resolvedFileName,v.packageIdToString(u.resolvedModule.packageId)):E(r,v.Diagnostics.Module_name_0_was_successfully_resolved_to_1,e,u.resolvedModule.resolvedFileName):E(r,v.Diagnostics.Module_name_0_was_not_resolved,e)),u},v.resolveJSModule=function(e,t,n){var r=N(e,t,n),i=r.resolvedModule,a=r.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+a.join(", "));return i.resolvedFileName},v.tryResolveJSModule=function(e,t,n){var r=N(e,t,n).resolvedModule;return r&&r.resolvedFileName};var l=[I.JavaScript],d=[I.TypeScript,I.JavaScript],p=d.concat([I.Json]),f=[I.TSConfig];function N(e,t,n){return k(e,t,{moduleResolution:v.ModuleResolutionKind.NodeJs,allowJs:!0},n,undefined,l,undefined)}function D(e,t,n,r,i,a,o){return k(e,v.getDirectoryPath(t),n,r,i,o?f:n.resolveJsonModule?p:d,a)}function k(d,p,f,_,h,e,g){var m=b(f,_),t=[],y={compilerOptions:f,host:_,traceEnabled:m,failedLookupLocations:t},n=v.forEach(e,function(e){var i=function i(e,t,n,r){return w(e,t,n,r,!0)},t=S(e,d,p,i,y);if(t)return Q({resolved:t,isExternalLibraryImport:V(t.path)});{if(v.isExternalModuleNameRelative(d)){var n=v.normalizePathAndParts(v.combinePaths(p,d)),r=n.path,a=n.parts,o=w(e,r,!1,y,!0);return o&&Q({resolved:o,isExternalLibraryImport:v.contains(a,"node_modules")})}m&&E(_,v.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,d,I[e]);var s=G(e,d,p,y,h,g);if(!s)return undefined;var c,u,l=s.value;return f.preserveSymlinks||!l||l.originalPath||(c=A(l.path,_,m),u=c===l.path?undefined:l.path,l=Qb({},l,{path:c,originalPath:u})),{value:l&&{resolved:l,isExternalLibraryImport:!0}}}});if(n&&n.value){var r=n.value;return T(r.resolved,r.isExternalLibraryImport,t)}return{resolvedModule:undefined,failedLookupLocations:t}}function A(e,t,n){if(!t.realpath)return e;var r=v.normalizePath(t.realpath(e));return n&&E(t,v.Diagnostics.Resolving_real_path_for_0_result_1,e,r),v.Debug.assert(t.fileExists(r),e+" linked to nonexistent file "+r),r}function w(e,t,n,r,i){if(r.traceEnabled&&E(r.host,v.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,t,I[e]),!v.hasTrailingDirectorySeparator(t)){var a;n||(a=v.getDirectoryPath(t),v.directoryProbablyExists(a,r.host)||(r.traceEnabled&&E(r.host,v.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),n=!0));var o=M(e,t,n,r);if(o){var s=i?function(e){var t=v.normalizePath(e.path),n=t.lastIndexOf(v.nodeModulesPathPart);if(-1===n)return undefined;var r=n+v.nodeModulesPathPart.length,i=P(t,r);64===t.charCodeAt(r)&&(i=P(t,i));return t.slice(0,i)}(o):undefined;return g(s?H(s,!1,r):undefined,o)}}return n||v.directoryProbablyExists(t,r.host)||(r.traceEnabled&&E(r.host,v.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),R(e,t,n,r,i)}function V(e){return v.stringContains(e,v.nodeModulesPathPart)}function P(e,t){var n=e.indexOf(v.directorySeparator,t+1);return-1===n?t:n}function L(e,t,n,r){return m(M(e,t,n,r))}function M(e,t,n,r){if(e===I.Json||e===I.TSConfig){var i=v.tryRemoveExtension(t,".json");return i===undefined&&e===I.Json?undefined:F(i||t,e,n,r)}var a=F(t,e,n,r);if(a)return a;if(v.hasJSFileExtension(t)){var o,s=v.removeFileExtension(t);return r.traceEnabled&&(o=t.substring(s.length),E(r.host,v.Diagnostics.File_name_0_has_a_1_extension_stripping_it,t,o)),F(s,e,n,r)}}function F(n,e,r,i){var t;switch(r||(t=v.getDirectoryPath(n))&&(r=!v.directoryProbablyExists(t,i.host)),e){case I.DtsOnly:return a(".d.ts");case I.TypeScript:return a(".ts")||a(".tsx")||a(".d.ts");case I.JavaScript:return a(".js")||a(".jsx");case I.TSConfig:case I.Json:return a(".json")}function a(e){var t=O(n+e,r,i);return t===undefined?undefined:{path:t,ext:e}}}function O(e,t,n){if(!t){if(n.host.fileExists(e))return n.traceEnabled&&E(n.host,v.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&E(n.host,v.Diagnostics.File_0_does_not_exist,e)}return n.failedLookupLocations.push(e),undefined}function R(e,t,n,r,i){void 0===i&&(i=!0);var a=i?H(t,n,r):undefined;return g(a,j(e,t,n,r,a&&a.packageJsonContent,a&&a.versionPaths))}function H(e,t,n){var r=n.host,i=n.traceEnabled,a=!t&&v.directoryProbablyExists(e,r),o=v.combinePaths(e,"package.json");if(a&&r.fileExists(o)){var s=v.readJson(o,r);return i&&E(r,v.Diagnostics.Found_package_json_at_0,o),{packageDirectory:e,packageJsonContent:s,versionPaths:c(s,n)}}a&&i&&E(r,v.Diagnostics.File_0_does_not_exist,o),n.failedLookupLocations.push(o)}function j(e,t,n,r,i,a){var o;if(i)switch(e){case I.JavaScript:case I.Json:o=B(i,t,r);break;case I.TypeScript:o=C(i,t,r)||B(i,t,r);break;case I.DtsOnly:o=C(i,t,r);break;case I.TSConfig:o=y(i,"tsconfig",t,r);break;default:return v.Debug.assertNever(e)}var u=function u(e,t,n,r){var i,a,o,s=O(t,n,r);if(s){var c=(i=e,a=s,(o=v.tryGetExtensionFromPath(a))!==undefined&&function(e,t){switch(e){case I.JavaScript:return".js"===t||".jsx"===t;case I.TSConfig:case I.Json:return".json"===t;case I.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case I.DtsOnly:return".d.ts"===t}}(i,o)?{path:a,ext:o}:undefined);if(c)return m(c);r.traceEnabled&&E(r.host,v.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}return w(e===I.DtsOnly?I.TypeScript:e,t,n,r,!1)},s=o?!v.directoryProbablyExists(v.getDirectoryPath(o),r.host):undefined,c=n||!v.directoryProbablyExists(t,r.host),l=v.combinePaths(t,e===I.TSConfig?"tsconfig":"index");if(a&&(!o||v.containsPath(t,o))){var d=v.getRelativePathFromDirectory(t,o||l,!1);r.traceEnabled&&E(r.host,v.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,v.version,d);var p=U(e,d,t,a.paths,u,s||c,r);if(p)return _(p.value)}var f=o&&_(u(e,o,s,r));return f||M(e,l,c,r)}function W(e){var t=e.indexOf(v.directorySeparator);return"@"===e[0]&&(t=e.indexOf(v.directorySeparator,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function G(e,t,n,r,i,a){return Y(e,t,n,r,!1,i,a)}function Y(n,r,e,i,a,t,o){var s=t&&t.getOrCreateCacheForModuleName(r,o);return v.forEachAncestorDirectory(v.normalizeSlashes(e),function(e){if("node_modules"!==v.getBaseFileName(e)){var t=X(s,r,e,i);return t?t:Q(J(n,r,e,i,a))}})}function J(e,t,n,r,i){var a=v.combinePaths(n,"node_modules"),o=v.directoryProbablyExists(a,r.host);!o&&r.traceEnabled&&E(r.host,v.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a);var s=i?undefined:z(e,t,a,o,r);if(s)return s;if(e===I.TypeScript||e===I.DtsOnly){var c=v.combinePaths(a,"@types"),u=o;return o&&!v.directoryProbablyExists(c,r.host)&&(r.traceEnabled&&E(r.host,v.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),u=!1),z(I.DtsOnly,function(e,t){var n=K(e);t.traceEnabled&&n!==e&&E(t.host,v.Diagnostics.Scoped_package_detected_looking_in_0,n);return n}(t,r),c,u,r)}}function z(e,t,n,r,i){var a=v.normalizePath(v.combinePaths(n,t));if(p=H(a,!r,i)){var o=M(e,a,!r,i);if(o)return m(o);var s=j(e,a,!r,i,p.packageJsonContent,p.versionPaths);return g(p,s)}var c=function c(e,t,n,r){var i=M(e,t,n,r)||j(e,t,n,r,p&&p.packageJsonContent,p&&p.versionPaths);return g(p,i)},u=W(t),l=u.packageName,d=u.rest;if(""!==d){var p,f=v.combinePaths(n,l);if((p=H(f,!r,i))&&p.versionPaths){i.traceEnabled&&E(i.host,v.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.versionPaths.version,v.version,d);var _=r&&v.directoryProbablyExists(f,i.host),h=U(e,d,f,p.versionPaths.paths,c,!_,i);if(h)return h.value}}return c(e,a,!r,i)}function U(a,e,o,t,s,c,u){var n=v.matchPatternOrExact(v.getOwnKeys(t),e);if(n){var l=v.isString(n)?undefined:v.matchedText(n,e),r=v.isString(n)?n:v.patternText(n);return u.traceEnabled&&E(u.host,v.Diagnostics.Module_name_0_matched_pattern_1,e,r),{value:v.forEach(t[r],function(e){var t=l?e.replace("*",l):e,n=v.normalizePath(v.combinePaths(o,t));u.traceEnabled&&E(u.host,v.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,e,t);var r=v.tryGetExtensionFromPath(n);if(r!==undefined){var i=O(n,c,u);if(i!==undefined)return m({path:i,ext:r})}return s(a,n,c||!v.directoryProbablyExists(v.getDirectoryPath(n),u.host),u)})}}}v.nodeModuleNameResolver=D,v.nodeModulesPathPart="/node_modules/",v.pathContainsNodeModules=V,v.parsePackageName=W;var n="__";function K(e){if(v.startsWith(e,"@")){var t=e.replace(v.directorySeparator,n);if(t!==e)return t.slice(1)}return e}function Z(e){return v.stringContains(e,n)?"@"+e.replace(n,v.directorySeparator):e}function X(e,t,n,r){var i,a=e&&e.get(n);if(a)return r.traceEnabled&&E(r.host,v.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,t,n),(i=r.failedLookupLocations).push.apply(i,a.failedLookupLocations),{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId}}}function q(c,e,t,n,u,l){var r=[],d={compilerOptions:t,host:n,traceEnabled:b(t,n),failedLookupLocations:r},p=v.getDirectoryPath(e),i=a(I.TypeScript)||a(I.JavaScript);return T(i&&i.value,!1,r);function a(r){var e=S(r,c,p,L,d);if(e)return{value:e};if(v.isExternalModuleNameRelative(c)){var t=v.normalizePath(v.combinePaths(p,c));return Q(L(r,t,!1,d))}var n,i,a,o=u&&u.getOrCreateCacheForModuleName(c,l),s=v.forEachAncestorDirectory(p,function(e){var t=X(o,c,e,d);if(t)return t;var n=v.normalizePath(v.combinePaths(e,c));return Q(L(r,n,!1,d))});return s||(r===I.TypeScript?(n=c,i=p,a=d,Y(I.DtsOnly,n,i,a,!0,undefined,undefined)):void 0)}}function Q(e){return e!==undefined?{value:e}:undefined}v.getTypesPackageName=function(e){return"@types/"+K(e)},v.mangleScopedPackageName=K,v.getPackageNameFromTypesPackageName=function(e){var t=v.removePrefix(e,"@types/");return t!==e?Z(t):e},v.unmangleScopedPackageName=Z,v.classicNameResolver=q,v.loadModuleFromGlobalCache=function(e,t,n,r,i){var a=b(n,r);a&&E(r,v.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);var o=[],s={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:o};return T(J(I.DtsOnly,e,i,s,!1),!0,o)}}(rg=rg||{}),function(D){var e,t;function k(e){return e.body?function r(e){switch(e.kind){case 242:case 243:return 0;case 244:if(D.isEnumConst(e))return 2;break;case 250:case 249:if(!D.hasModifier(e,1))return 0;break;case 246:var n=0;return D.forEachChild(e,function(e){var t=r(e);switch(t){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:D.Debug.assertNever(t)}}),n;case 245:return k(e);case 73:if(e.isInJSDocNamespace)return 0}return 1}(e.body):1}(e=D.ModuleInstanceState||(D.ModuleInstanceState={}))[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",D.getModuleInstanceState=k,(t={})[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";var m,A,i,y,b,v,E,u,I,T,w,V,P,L,M,F,O,R,H,C,B,a,x,S,o,j,W,G,Y=D.identity,n=(j={flags:1},W={flags:1},G=o=0,function(e,t){var n,r;m=e,A=t,i=D.getEmitScriptTarget(A),n=m,r=t,B=!(!D.getStrictOptionValue(r,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator,x=D.createUnderscoreEscapedMap(),o=0,S=m.isDeclarationFile,a=D.objectAllocator.getSymbolConstructor(),m.locals||(Ne(m),m.symbolCount=o,m.classifiableNames=x,function(){if(I){for(var e=b,t=u,n=E,r=y,i=w,a=0,o=I;a<o.length;a++){var s=o[a],c=D.getJSDocHost(s);b=D.findAncestor(c.parent,function(e){return!!(1&he(e))})||m,E=D.getEnclosingBlockScopeContainer(c)||m,w={flags:2},Ne((y=s).typeExpression),s.fullName&&73!==s.fullName.kind?Ne(s.fullName):(y=s.parent,Ee(s,524288,67897832))}b=e,u=t,E=n,y=r,w=i}}()),m=undefined,A=undefined,i=undefined,y=undefined,b=undefined,v=undefined,E=undefined,u=undefined,I=undefined,T=!1,w=undefined,V=undefined,P=undefined,L=undefined,M=undefined,F=undefined,R=undefined,H=!1,G=C=0});function N(e,t,n,r,i){return D.createDiagnosticForNodeInSourceFile(D.getSourceFileOfNode(e)||m,e,t,n,r,i)}function J(e,t){return o++,new a(e,t)}function z(e,t,n){e.flags|=n,(t.symbol=e).declarations=D.append(e.declarations,t),1955&n&&!e.exports&&(e.exports=D.createSymbolTable()),6240&n&&!e.members&&(e.members=D.createSymbolTable()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),67220415&n&&U(e,t)}function U(e,t){var n=e.valueDeclaration;(!n||D.isAssignmentDeclaration(n)&&!D.isAssignmentDeclaration(t)||n.kind!==t.kind&&D.isEffectiveModuleDeclaration(n))&&(e.valueDeclaration=t)}function K(e){if(255===e.kind)return e.isExportEquals?"export=":"default";var t=D.getNameOfDeclaration(e);if(t){if(D.isAmbientModule(e)){var n=D.getTextOfIdentifierOrLiteral(t);return D.isGlobalScopeAugmentation(e)?"__global":'"'+n+'"'}if(150!==t.kind)return D.isPropertyNameLiteral(t)?D.getEscapedTextOfIdentifierOrLiteral(t):undefined;var r=t.expression;return D.isStringOrNumericLiteralLike(r)?D.escapeLeadingUnderscores(r.text):(D.Debug.assert(D.isWellKnownSymbolSyntactically(r)),D.getPropertyNameForKnownSymbolName(D.idText(r.name)))}switch(e.kind){case 158:return"__constructor";case 166:case 161:case 299:return"__call";case 167:case 162:return"__new";case 163:return"__index";case 256:return"__export";case 285:return"export=";case 205:if(2===D.getAssignmentDeclarationKind(e))return"export=";D.Debug.fail("Unknown binary declaration kind");break;case 295:return D.isJSDocConstructSignature(e)?"__new":"__call";case 152:return D.Debug.assert(295===e.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(D.SyntaxKind?D.SyntaxKind[e.parent.kind]:e.parent.kind)+", expected JSDocFunctionType"}),"arg"+e.parent.parameters.indexOf(e)}}function h(e){return D.isNamedDeclaration(e)?D.declarationNameToString(e.name):D.unescapeLeadingUnderscores(D.Debug.assertDefined(K(e)))}function Z(e,t,n,r,i,a){D.Debug.assert(!D.hasDynamicName(n));var o,s,c,u,l,d,p,f=D.hasModifier(n,512),_=f&&t?"default":K(n);if(_===undefined)o=J(0,"__missing");else if(o=e.get(_),2885600&r&&x.set(_,!0),o){if(a&&!o.isReplaceableByMethod)return o;o.flags&i&&(o.isReplaceableByMethod?e.set(_,o=J(0,_)):3&r&&67108864&o.flags||(D.isNamedDeclaration(n)&&(n.name.parent=n),s=2&o.flags?D.Diagnostics.Cannot_redeclare_block_scoped_variable_0:D.Diagnostics.Duplicate_identifier_0,c=!0,(384&o.flags||384&r)&&(s=D.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,c=!1),u=!1,D.length(o.declarations)&&(f||o.declarations&&o.declarations.length&&255===n.kind&&!n.isExportEquals)&&(s=D.Diagnostics.A_module_cannot_have_multiple_default_exports,u=!(c=!1)),l=D.getNameOfDeclaration(n)||n,d=[],D.forEach(o.declarations,function(e,t){var n=D.getNameOfDeclaration(e)||e,r=N(n,s,c?h(e):undefined);m.bindDiagnostics.push(u?D.addRelatedInfo(r,N(l,0===t?D.Diagnostics.Another_export_default_is_here:D.Diagnostics.and_here)):r),u&&d.push(N(n,D.Diagnostics.The_first_export_default_is_here))}),p=N(l,s,c?h(n):undefined),m.bindDiagnostics.push(u?D.addRelatedInfo.apply(void 0,[p].concat(d)):p),o=J(0,_)))}else e.set(_,o=J(0,_)),a&&(o.isReplaceableByMethod=!0);return z(o,n,r),o.parent?D.Debug.assert(o.parent===t,"Existing symbol parent should match new one"):o.parent=t,o}function l(e,t,n){var r=1&D.getCombinedModifierFlags(e);if(2097152&t)return 258===e.kind||249===e.kind&&r?Z(b.symbol.exports,b.symbol,e,t,n):Z(b.locals,undefined,e,t,n);if(D.isJSDocTypeAlias(e)&&D.Debug.assert(D.isInJSFile(e)),!D.isAmbientModule(e)&&(r||32&b.flags)||D.isJSDocTypeAlias(e)){if(D.hasModifier(e,512)&&!K(e))return Z(b.symbol.exports,b.symbol,e,t,n);var i=67220415&t?1048576:0,a=Z(b.locals,undefined,e,i,n);return a.exportSymbol=Z(b.symbol.exports,b.symbol,e,t,n),e.localSymbol=a}return Z(b.locals,undefined,e,t,n)}function X(e){var t;S?r(e):536870912&e.transformFlags?(S=!0,r(e),S=!1,G|=e.transformFlags&~g(e.kind)):(t=G,G=0,r(e),G=t|Ke(e,G))}function q(e){Q(e,function(e){return 240===e.kind?Ne(e):undefined}),Q(e,function(e){return 240!==e.kind?Ne(e):undefined})}function Q(e,t){if(void 0===t&&(t=Ne),e!==undefined)if(S)D.forEach(e,t);else{for(var n=G,r=G=0,i=0,a=e;i<a.length;i++){var o=a[i];t(o),r|=-536870913&o.transformFlags}e.transformFlags=536870912|r,G|=n}}function $(e){D.forEachChild(e,Ne,Q)}function r(e){if(function(e){if(!(1&w.flags))return!1;{var n;w===j&&(D.isStatementButNotDeclaration(e)&&221!==e.kind||241===e.kind||245===e.kind&&function(e){var t=k(e);return 1===t||2===t&&!!A.preserveConstEnums}(e))&&(w=W,A.allowUnreachableCode||(n=D.unreachableCodeIsError(A)&&!(4194304&e.flags)&&(!D.isVariableStatement(e)||!!(3&D.getCombinedNodeFlags(e.declarationList))||e.declarationList.declarations.some(function(e){return!!e.initializer})),function(e,n){{var t,r;D.isStatement(e)&&Je(e)&&D.isBlock(e.parent)?(t=e.parent.statements,r=D.sliceAfter(t,e),D.getRangesWhere(r,Je,function(e,t){return n(r[e],r[t-1])})):n(e,e)}}(e,function(e,t){return Se(n,e,t,D.Diagnostics.Unreachable_code_detected)})))}return!0}(e))return $(e),void De(e);switch(e.kind){case 225:C=e,B=re(),x=ne(),S=ne(),ie(B,w),w=B,le(C.expression,x,S),w=ce(x),de(C.statement,S,B),ie(B,w),w=ce(S);break;case 224:b=e,v=re(),E=234===b.parent.kind?D.lastOrUndefined(R):undefined,I=E?E.continueTarget:ne(),T=E?E.breakTarget:ne(),ie(v,w),w=v,de(b.statement,T,I),ie(I,w),w=ce(I),le(b.expression,v,T),w=ce(T);break;case 226:h=e,g=re(),m=ne(),y=ne(),Ne(h.initializer),ie(g,w),w=g,le(h.condition,m,y),w=ce(m),de(h.statement,y,g),Ne(h.incrementor),ie(g,w),w=ce(y);break;case 227:case 228:!function(e){var t=re(),n=ne();ie(t,w),w=t,228===e.kind&&Ne(e.awaitModifier);Ne(e.expression),ie(n,w),Ne(e.initializer),239!==e.initializer.kind&&fe(e.initializer);de(e.statement,n,t),ie(t,w),w=ce(n)}(e);break;case 223:d=e,p=ne(),f=ne(),_=ne(),le(d.expression,p,f),w=ce(p),Ne(d.thenStatement),ie(_,w),w=ce(f),Ne(d.elseStatement),ie(_,w),w=ce(_);break;case 231:case 235:!function(e){Ne(e.expression),231===e.kind&&(H=!0,L&&ie(L,w));w=j}(e);break;case 230:case 229:!function(e){{var t;Ne(e.label),e.label?(t=function(e){if(R)for(var t=0,n=R;t<n.length;t++){var r=n[t];if(r.name===e)return r}return undefined}(e.label.escapedText))&&(t.referenced=!0,pe(e,t.breakTarget,t.continueTarget)):pe(e,V,P)}}(e);break;case 236:!function(e){var t=ne(),n=w,r=[],i=Y;(e.catchClause||e.finallyBlock)&&(Y=function Y(t){return r.push(t),t});Ne(e.tryBlock),Y=i,ie(t,w);var a=w,o=j;if(e.catchClause){if(w=n,r.length){var s=ne();ie(s,w);for(var c=0,u=r;c<u.length;c++){var l=u[c];ie(s,l)}w=ce(s)}Ne(e.catchClause),ie(t,w),o=w}if(e.finallyBlock){var d=n;if(!e.catchClause&&r.length){var p=ne();ie(p,n);for(var f=0,_=r;f<_.length;f++){l=_[f];ie(p,l)}d=ce(p)}var h,g={flags:2048,antecedent:d,lock:{}};ie(t,g),w=ce(t),Ne(e.finallyBlock),1&w.flags||1&a.flags&&1&o.flags&&(w=a===W||o===W?W:j),1&w.flags||(h=Y({flags:4096,antecedent:w}),g.lock=h,w=h)}else w=ce(t)}(e);break;case 233:!function(e){var t=ne();Ne(e.expression);var n=V,r=O;V=t,O=w,Ne(e.caseBlock),ie(t,w);var i=D.forEach(e.caseBlock.clauses,function(e){return 273===e.kind});e.possiblyExhaustive=!i&&!t.antecedents,i||ie(t,ae(O,e,0,0));V=n,O=r,w=ce(t)}(e);break;case 247:!function(e){var t=G;G=0;for(var n=e.clauses,r=j,i=0;i<n.length;i++){for(var a=i;!n[i].statements.length&&i+1<n.length;)Ne(n[i]),i++;var o=ne();ie(o,ae(O,e.parent,a,i+1)),ie(o,r),w=ce(o);var s=n[i];Ne(s),1&(r=w).flags||i===n.length-1||!A.noFallthroughCasesInSwitch||xe(s,D.Diagnostics.Fallthrough_case_in_switch)}n.transformFlags=536870912|G,G|=t}(e);break;case 272:l=w,w=O,Ne((u=e).expression),w=l,Q(u.statements);break;case 234:!function(e){var t=re(),n=ne();Ne(e.label),ie(t,w);var r=function(e,t,n){var r={name:e,breakTarget:t,continueTarget:n,referenced:!1};return(R=R||[]).push(r),r}(e.label.escapedText,n,t);Ne(e.statement),R.pop(),r.referenced||A.allowUnusedLabels||function(e,t,n){Se(e,t,t,n)}(D.unusedLabelIsError(A),e.label,D.Diagnostics.Unused_label);e.statement&&224===e.statement.kind||(ie(n,w),w=ce(n))}(e);break;case 203:!function(e){{var t;52===e.operator?(t=M,M=F,F=t,$(e),F=M,M=t):($(e),44!==e.operator&&45!==e.operator||fe(e.operand))}}(e);break;case 204:$(c=e),44!==c.operator&&45!==c.operator||fe(c.operand);break;case 205:!function(e){var t=e.operatorToken.kind;{var n;54===t||55===t?!function(e){for(;196===e.parent.kind||203===e.parent.kind&&52===e.parent.operator;)e=e.parent;return!function(e){var t=e.parent;switch(t.kind){case 223:case 225:case 224:return t.expression===e;case 226:case 206:return t.condition===e}return!1}(e)&&!ue(e.parent)}(e)?_e(e,M,F):(n=ne(),_e(e,n,n),w=ce(n)):($(e),D.isAssignmentOperator(t)&&!D.isAssignmentTarget(e)&&(fe(e.left),60===t&&191===e.left.kind&&te(e.left.expression)&&(w=se(w,e))))}}(e);break;case 199:$(s=e),190===s.expression.kind&&fe(s.expression);break;case 206:r=e,i=ne(),a=ne(),o=ne(),le(r.condition,i,a),w=ce(i),Ne(r.questionToken),Ne(r.whenTrue),ie(o,w),w=ce(a),Ne(r.colonToken),Ne(r.whenFalse),ie(o,w),w=ce(o);break;case 238:$(n=e),(n.initializer||D.isForInOrOfStatement(n.parent.parent))&&function N(e){var t=D.isOmittedExpression(e)?undefined:e.name;if(D.isBindingPattern(t))for(var n=0,r=t.elements;n<r.length;n++){var i=r[n];N(i)}else w=oe(w,e)}(n);break;case 192:!function(e){var t=e.expression;for(;196===t.kind;)t=t.expression;197===t.kind||198===t.kind?(Q(e.typeArguments),Q(e.arguments),Ne(e.expression)):$(e);{var n;190!==e.expression.kind||te((n=e.expression).expression)&&D.isPushOrUnshiftIdentifier(n.name)&&(w=se(w,e))}}(e);break;case 310:case 303:((t=e).tagName.parent=t).fullName&&Ze(t,t.fullName);break;case 285:q(e.statements),Ne(e.endOfFileToken);break;case 219:case 246:q(e.statements);break;default:$(e)}var t,n,r,i,a,o,s,c,u,l,d,p,f,_,h,g,m,y,b,v,E,I,T,C,B,x,S;De(e)}function s(e){switch(e.kind){case 73:case 101:case 190:case 191:return ee(e);case 192:return function(e){if(e.arguments)for(var t=0,n=e.arguments;t<n.length;t++){if(ee(n[t]))return!0}if(190===e.expression.kind&&ee(e.expression.expression))return!0;return!1}(e);case 196:return s(e.expression);case 205:return function(e){switch(e.operatorToken.kind){case 60:return ee(e.left);case 33:case 34:case 35:case 36:return te(e.left)||te(e.right)||c(e.right,e.left)||c(e.left,e.right);case 95:return te(e.left);case 94:return function(e,t){return D.isStringLiteralLike(e)&&s(t)}(e.left,e.right);case 27:return s(e.right)}return!1}(e);case 203:return 52===e.operator&&s(e.operand);case 200:return s(e.expression)}return!1}function ee(e){return 73===e.kind||101===e.kind||99===e.kind||(D.isPropertyAccessExpression(e)||D.isNonNullExpression(e)||D.isParenthesizedExpression(e))&&ee(e.expression)||D.isElementAccessExpression(e)&&e.argumentExpression&&(D.isStringLiteral(e.argumentExpression)||D.isNumericLiteral(e.argumentExpression))&&ee(e.expression)}function c(e,t){return D.isTypeOfExpression(e)&&te(e.expression)&&D.isStringLiteralLike(t)}function te(e){switch(e.kind){case 196:return te(e.expression);case 205:switch(e.operatorToken.kind){case 60:return te(e.left);case 27:return te(e.right)}}return ee(e)}function ne(){return{flags:4,antecedents:undefined}}function re(){return{flags:8,antecedents:undefined}}function d(e){e.flags|=512&e.flags?1024:512}function ie(e,t){1&t.flags||D.contains(e.antecedents,t)||((e.antecedents||(e.antecedents=[])).push(t),d(t))}function p(e,t,n){return 1&t.flags?t:n?103===n.kind&&64&e||88===n.kind&&32&e?j:s(n)?(d(t),Y({flags:e,expression:n,antecedent:t})):t:32&e?t:j}function ae(e,t,n,r){return s(t.expression)?(d(e),Y({flags:128,switchStatement:t,clauseStart:n,clauseEnd:r,antecedent:e})):e}function oe(e,t){return d(e),Y({flags:16,antecedent:e,node:t})}function se(e,t){return d(e),Y({flags:256,antecedent:e,node:t})}function ce(e){var t=e.antecedents;return t?1===t.length?t[0]:e:j}function ue(e){for(;;)if(196===e.kind)e=e.expression;else{if(203!==e.kind||52!==e.operator)return 205===e.kind&&(54===e.operatorToken.kind||55===e.operatorToken.kind);e=e.operand}}function le(e,t,n){var r=M,i=F;M=t,F=n,Ne(e),M=r,F=i,e&&ue(e)||(ie(t,p(32,w,e)),ie(n,p(64,w,e)))}function de(e,t,n){var r=V,i=P;V=t,P=n,Ne(e),V=r,P=i}function pe(e,t,n){var r=230===e.kind?t:n;r&&(ie(r,w),w=j)}function f(e){205===e.kind&&60===e.operatorToken.kind?fe(e.left):fe(e)}function fe(e){if(ee(e))w=oe(w,e);else if(188===e.kind)for(var t=0,n=e.elements;t<n.length;t++){var r=n[t];209===r.kind?fe(r.expression):f(r)}else if(189===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];276===o.kind?f(o.initializer):277===o.kind?fe(o.name):278===o.kind&&fe(o.expression)}}function _e(e,t,n){var r=ne();54===e.operatorToken.kind?le(e.left,r,n):le(e.left,t,r),w=ce(r),Ne(e.operatorToken),le(e.right,t,n)}function he(e){switch(e.kind){case 210:case 241:case 244:case 189:case 169:case 298:case 269:return 1;case 242:return 65;case 245:case 243:case 182:return 33;case 285:return 37;case 157:if(D.isObjectLiteralOrClassExpressionMethod(e))return 173;case 158:case 240:case 156:case 159:case 160:case 161:case 299:case 295:case 166:case 162:case 163:case 167:return 45;case 197:case 198:return 61;case 246:return 4;case 155:return e.initializer?4:0;case 275:case 226:case 227:case 228:case 247:return 2;case 219:return D.isFunctionLike(e.parent)?0:2}return 0}function ge(e){u&&(u.nextContainer=e),u=e}function me(e,t,n){switch(b.kind){case 245:return l(e,t,n);case 285:return o=e,s=t,c=n,D.isExternalModule(m)?l(o,s,c):Z(m.locals,undefined,o,s,c);case 210:case 241:return r=e,i=t,a=n,D.hasModifier(r,32)?Z(b.symbol.exports,b.symbol,r,i,a):Z(b.symbol.members,b.symbol,r,i,a);case 244:return Z(b.symbol.exports,b.symbol,e,t,n);case 169:case 298:case 189:case 242:case 269:return Z(b.symbol.members,b.symbol,e,t,n);case 166:case 167:case 161:case 162:case 299:case 163:case 157:case 156:case 158:case 159:case 160:case 240:case 197:case 198:case 295:case 310:case 303:case 243:case 182:return Z(b.locals,undefined,e,t,n)}var r,i,a,o,s,c}function ye(e){var t,n;4194304&e.flags&&(t=e,!(n=D.isSourceFile(t)?t:D.tryCast(t.body,D.isModuleBlock))||!n.statements.some(function(e){return D.isExportDeclaration(e)||D.isExportAssignment(e)}))?e.flags|=32:e.flags&=-33}function be(e){var t=k(e),n=0!==t;return me(e,n?512:1024,n?110735:0),t}function ve(e,t,n){var r=J(t,n);return 106508&t&&(r.parent=b.symbol),z(r,e,t),r}function Ee(e,t,n){switch(E.kind){case 245:l(e,t,n);break;case 285:if(D.isExternalOrCommonJsModule(b)){l(e,t,n);break}default:E.locals||(E.locals=D.createSymbolTable(),ge(E)),Z(E.locals,undefined,e,t,n)}}function Ie(e){!(B&&110<=e.originalKeywordKind&&e.originalKeywordKind<=118)||D.isIdentifierName(e)||4194304&e.flags||m.parseDiagnostics.length||m.bindDiagnostics.push(N(e,function(e){if(D.getContainingClass(e))return D.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(m.externalModuleIndicator)return D.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return D.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),D.declarationNameToString(e)))}function Te(e,t){var n,r,i;t&&73===t.kind&&(i=n=t,!D.isIdentifier(i)||"eval"!==i.escapedText&&"arguments"!==i.escapedText||(r=D.getErrorSpanForNode(m,t),m.bindDiagnostics.push(D.createFileDiagnostic(m,r.start,r.length,function(e){if(D.getContainingClass(e))return D.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(m.externalModuleIndicator)return D.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return D.Diagnostics.Invalid_use_of_0_in_strict_mode}(e),D.idText(n)))))}function Ce(e){B&&Te(e,e.name)}function Be(e){var t,n;i<2&&(285===E.kind||245===E.kind||D.isFunctionLike(E)||(t=D.getErrorSpanForNode(m,e),m.bindDiagnostics.push(D.createFileDiagnostic(m,t.start,t.length,(n=e,D.getContainingClass(n)?D.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:m.externalModuleIndicator?D.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:D.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5)))))}function xe(e,t,n,r,i){var a=D.getSpanOfTokenAtPosition(m,e.pos);m.bindDiagnostics.push(D.createFileDiagnostic(m,a.start,a.length,t,n,r,i))}function Se(e,t,n,r){var i,a,o,s;i=e,a={pos:D.getTokenPosOfNode(t,m),end:n.end},o=r,s=D.createFileDiagnostic(m,a.pos,a.end-a.pos,o),i?m.bindDiagnostics.push(s):m.bindSuggestionDiagnostics=D.append(m.bindSuggestionDiagnostics,Qb({},s,{category:D.DiagnosticCategory.Suggestion}))}function Ne(e){var t,n,r,i,a,o,s,c,u,l,d,p,f,_,h,g;e&&(e.parent=y,t=B,function(e){switch(e.kind){case 73:if(e.isInJSDocNamespace){for(var t=e.parent;t&&!D.isJSDocTypeAlias(t);)t=t.parent;Ee(t,524288,67897832);break}case 101:return w&&(D.isExpression(e)||277===y.kind)&&(e.flowNode=w),Ie(e);case 190:case 191:w&&ee(e)&&(e.flowNode=w),D.isSpecialPropertyDeclaration(e)&&function(e){101===e.expression.kind?Pe(e):D.isPropertyAccessEntityNameExpression(e)&&285===e.parent.parent.kind&&(D.isPrototypeAccess(e.expression)?Le(e,e.parent):Me(e))}(e),D.isInJSFile(e)&&m.commonJsModuleIndicator&&D.isModuleExportsPropertyAccessExpression(e)&&!Ue(E,"module")&&Z(m.locals,undefined,e.expression,134217729,67220414);break;case 205:switch(D.getAssignmentDeclarationKind(e)){case 1:Ve(e);break;case 2:!function(e){if(!we(e))return;var t=D.getRightMostAssignedExpression(e.right);if(D.isEmptyObjectLiteral(t)||b===m&&ze(m,t))return;var n=D.exportAssignmentIsAlias(e)?2097152:1049092;Z(m.symbol.exports,m.symbol,e,67108864|n,0)}(e);break;case 3:Le(e.left,e);break;case 6:!function(e){var t=((e.left.parent=e).right.parent=e).left;Re(t.expression,t,!1)}(e);break;case 4:Pe(e);break;case 5:!function(e){var t=e.left,n=He(t.expression);if(!D.isInJSFile(e)&&!D.isFunctionSymbol(n))return;(e.left.parent=e).right.parent=e,D.isIdentifier(t.expression)&&b===m&&ze(m,t.expression)?Ve(e):Me(t)}(e);break;case 0:break;default:D.Debug.fail("Unknown binary expression special property assignment kind")}return function(e){B&&D.isLeftHandSideExpression(e.left)&&D.isAssignmentOperator(e.operatorToken.kind)&&Te(e,e.left)}(e);case 275:return function(e){B&&e.variableDeclaration&&Te(e,e.variableDeclaration.name)}(e);case 199:return function(e){var t;B&&73===e.expression.kind&&(t=D.getErrorSpanForNode(m,e.expression),m.bindDiagnostics.push(D.createFileDiagnostic(m,t.start,t.length,D.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode)))}(e);case 8:return function(e){B&&32&e.numericLiteralFlags&&m.bindDiagnostics.push(N(e,D.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(e);case 204:return function(e){B&&Te(e,e.operand)}(e);case 203:return function(e){B&&(44!==e.operator&&45!==e.operator||Te(e,e.operand))}(e);case 232:return function(e){B&&xe(e,D.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(e);case 234:return function(e){B&&2<=A.target&&(D.isDeclarationStatement(e.statement)||D.isVariableStatement(e.statement))&&xe(e.label,D.Diagnostics.A_label_is_not_allowed_here)}(e);case 179:return T=!0;case 164:break;case 151:return function(e){{var t,n;D.isJSDocTemplateTag(e.parent)?(t=D.find(e.parent.parent.tags,D.isJSDocTypeAlias)||D.getHostSignatureFromJSDoc(e.parent))?(t.locals||(t.locals=D.createSymbolTable()),Z(t.locals,undefined,e,262144,67635688)):me(e,262144,67635688):177===e.parent.kind?(n=function(e){var t=D.findAncestor(e,function(e){return e.parent&&D.isConditionalTypeNode(e.parent)&&e.parent.extendsType===e});return t&&t.parent}(e.parent))?(n.locals||(n.locals=D.createSymbolTable()),Z(n.locals,undefined,e,262144,67635688)):ve(e,262144,K(e)):me(e,262144,67635688)}}(e);case 152:return Ge(e);case 238:return We(e);case 187:return e.flowNode=w,We(e);case 155:case 154:return function(e){Ye(e,4|(e.questionToken?16777216:0),0)}(e);case 276:case 277:return Ye(e,4,0);case 279:return Ye(e,8,68008959);case 161:case 162:case 163:return me(e,131072,0);case 157:case 156:return Ye(e,8192|(e.questionToken?16777216:0),D.isObjectLiteralMethod(e)?0:67212223);case 240:return function(e){m.isDeclarationFile||4194304&e.flags||D.isAsyncFunction(e)&&(C|=1024);Ce(e),B?(Be(e),Ee(e,16,67219887)):me(e,16,67219887)}(e);case 158:return me(e,16384,0);case 159:return Ye(e,32768,67154879);case 160:return Ye(e,65536,67187647);case 166:case 295:case 299:case 167:return function(e){var t=J(131072,K(e));z(t,e,131072);var n=J(2048,"__type");z(n,e,2048),n.members=D.createSymbolTable(),n.members.set(t.escapedName,t)}(e);case 169:case 298:case 182:return function(e){ve(e,2048,"__type")}(e);case 189:return function(e){var t;if((t={})[t.Property=1]="Property",t[t.Accessor=2]="Accessor",B)for(var n=D.createUnderscoreEscapedMap(),r=0,i=e.properties;r<i.length;r++){var a,o,s,c,u=i[r];278!==u.kind&&73===u.name.kind&&(a=u.name,o=276===u.kind||277===u.kind||157===u.kind?1:2,(s=n.get(a.escapedText))?1==o&&1===s&&(c=D.getErrorSpanForNode(m,a),m.bindDiagnostics.push(D.createFileDiagnostic(m,c.start,c.length,D.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))):n.set(a.escapedText,o))}ve(e,4096,"__object")}(e);case 197:case 198:return function(e){m.isDeclarationFile||4194304&e.flags||D.isAsyncFunction(e)&&(C|=1024);w&&(e.flowNode=w);Ce(e);var t=e.name?e.name.escapedText:"__function";ve(e,16,t)}(e);case 192:switch(D.getAssignmentDeclarationKind(e)){case 7:return function(e){var t=He(e.arguments[0]),n=285===e.parent.parent.kind;t=Fe(t,e.arguments[0],n,!1),Oe(e,t,!1)}(e);case 8:return function(e){if(!we(e))return;var t=je(e.arguments[0],undefined,function(e,t){return t&&z(t,e,67110400),t});{t&&Z(t.exports,t,e,1048580,0)}}(e);case 9:return function(e){var t=He(e.arguments[0].expression);Oe(e,t,!0)}(e);case 0:break;default:return D.Debug.fail("Unknown call expression assignment declaration kind")}D.isInJSFile(e)&&function(e){!m.commonJsModuleIndicator&&D.isRequireCall(e,!1)&&we(e)}(e);break;case 210:case 241:return B=!0,function(e){{var t;241===e.kind?Ee(e,32,68008383):(t=e.name?e.name.escapedText:"__class",ve(e,32,t),e.name&&x.set(e.name.escapedText,!0))}var n=e.symbol,r=J(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(e.name&&(e.name.parent=e),m.bindDiagnostics.push(N(i.declarations[0],D.Diagnostics.Duplicate_identifier_0,D.symbolName(r))));n.exports.set(r.escapedName,r),r.parent=n}(e);case 242:return Ee(e,64,67897736);case 243:return Ee(e,524288,67897832);case 244:return function(e){D.isEnumConst(e)?Ee(e,128,68008831):Ee(e,256,68008191)}(e);case 245:return function(e){var t,n,r,i;ye(e),D.isAmbientModule(e)?(D.hasModifier(e,1)&&xe(e,D.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),D.isModuleAugmentationExternal(e)?be(e):(t=void 0,10===e.name.kind&&(n=e.name.text,D.hasZeroOrOneAsteriskCharacter(n)?t=D.tryParsePattern(n):xe(e.name,D.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,n)),i=me(e,512,110735),m.patternAmbientModules=D.append(m.patternAmbientModules,t&&{pattern:t,symbol:i}))):0!==(r=be(e))&&((i=e.symbol).constEnumOnlyModule=!(304&i.flags)&&2===r&&!1!==i.constEnumOnlyModule)}(e);case 269:return function(e){ve(e,4096,"__jsxAttributes")}(e);case 268:return me(e,4,0);case 249:case 252:case 254:case 258:return me(e,2097152,2097152);case 248:return function(e){e.modifiers&&e.modifiers.length&&m.bindDiagnostics.push(N(e,D.Diagnostics.Modifiers_cannot_appear_here));var t=D.isSourceFile(e.parent)?D.isExternalModule(e.parent)?e.parent.isDeclarationFile?undefined:D.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:D.Diagnostics.Global_module_exports_may_only_appear_in_module_files:D.Diagnostics.Global_module_exports_may_only_appear_at_top_level;t?m.bindDiagnostics.push(N(e,t)):(m.symbol.globalExports=m.symbol.globalExports||D.createSymbolTable(),Z(m.symbol.globalExports,m.symbol,e,2097152,2097152))}(e);case 251:return function(e){e.name&&me(e,2097152,2097152)}(e);case 256:return function(e){b.symbol&&b.symbol.exports?e.exportClause||Z(b.symbol.exports,b.symbol,e,8388608,0):ve(e,8388608,K(e))}(e);case 255:return function(e){{var t,n;b.symbol&&b.symbol.exports?(t=D.exportAssignmentIsAlias(e)?2097152:4,n=Z(b.symbol.exports,b.symbol,e,t,67108863),e.isExportEquals&&U(n,e)):ve(e,2097152,K(e))}}(e);case 285:return ke(e.statements),function(){{var e;ye(m),D.isExternalModule(m)?Ae():D.isJsonSourceFile(m)&&(Ae(),e=m.symbol,Z(m.symbol.exports,m.symbol,m,4,67108863),m.symbol=e)}}();case 219:if(!D.isFunctionLike(e.parent))return;case 246:return ke(e.statements);case 305:if(299===e.parent.kind)return Ge(e);if(298!==e.parent.kind)break;case 311:var n=e,r=n.isBracketed||n.typeExpression&&294===n.typeExpression.type.kind?16777220:4;return me(n,r,0);case 310:case 303:(I=I||[]).push(e)}}(e),148<e.kind?(r=y,0===(n=he(y=e))?X(e):(i=e,_=b,h=v,g=E,1&(a=n)?(198!==i.kind&&(v=b),b=E=i,32&a&&(b.locals=D.createSymbolTable()),ge(b)):2&a&&((E=i).locals=undefined),4&a?(o=Y,s=w,c=V,u=P,l=L,d=R,p=H,(f=16&a&&!D.hasModifier(i,256)&&!i.asteriskToken&&!!D.getImmediatelyInvokedFunctionExpression(i))||(w={flags:2},144&a&&(w.container=i)),L=f||158===i.kind?ne():undefined,V=undefined,P=undefined,R=undefined,H=!1,Y=D.identity,X(i),i.flags&=-1409,!(1&w.flags)&&8&a&&D.nodeIsPresent(i.body)&&(i.flags|=128,H&&(i.flags|=256)),285===i.kind&&(i.flags|=C),L&&(ie(L,w),w=ce(L),158===i.kind&&(i.returnFlowNode=w)),f||(w=s),V=c,P=u,L=l,R=d,H=p,Y=o):64&a?(T=!1,X(i),i.flags=T?64|i.flags:-65&i.flags):X(i),b=_,v=h,E=g),y=r):S||0!=(536870912&e.transformFlags)||(G|=Ke(e,0),r=y,1===e.kind&&(y=e),De(e),y=r),B=t)}function De(e){if(D.hasJSDocNodes(e))if(D.isInJSFile(e))for(var t=0,n=e.jsDoc;t<n.length;t++){Ne(n[t])}else for(var r=0,i=e.jsDoc;r<i.length;r++){Ze(e,i[r])}}function ke(e){if(!B)for(var t=0,n=e;t<n.length;t++){var r=n[t];if(!D.isPrologueDirective(r))return;if(i=r,a=void 0,'"use strict"'===(a=D.getSourceTextOfNodeFromSourceFile(m,i.expression))||"'use strict'"===a)return void(B=!0)}var i,a}function Ae(){ve(m,512,'"'+D.removeFileExtension(m.fileName)+'"')}function we(e){return!m.externalModuleIndicator&&(m.commonJsModuleIndicator||(m.commonJsModuleIndicator=e,Ae()),1)}function Ve(e){var t,n,r;!we(e)||(n=je((t=e.left).expression,undefined,function(e,t){return t&&z(t,e,67110400),t}))&&(r=D.isClassExpression(e.right)?1048612:1048580,Z(n.exports,n,t,r,0))}function Pe(e){D.Debug.assert(D.isInJSFile(e));var t=D.getThisContainer(e,!1);switch(t.kind){case 240:case 197:var n,r=t.symbol;D.isBinaryExpression(t.parent)&&60===t.parent.operatorToken.kind&&(n=t.parent.left,D.isPropertyAccessEntityNameExpression(n)&&D.isPrototypeAccess(n.expression)&&(r=He(n.expression.expression,v))),r&&(r.members=r.members||D.createSymbolTable(),Z(r.members,r,e,4,0));break;case 158:case 155:case 157:case 159:case 160:var i=t.parent;Z(D.hasModifier(t,32)?i.symbol.exports:i.symbol.members,i.symbol,e,4,0,!0);break;case 285:t.commonJsModuleIndicator?Z(t.symbol.exports,t.symbol,e,1048580,0):me(e,1,67220414);break;default:D.Debug.failBadSyntaxKind(t)}}function Le(e,t){var n=e.expression,r=n.expression;e.parent=t,r.parent=n,Re(r,n.parent=e,!0)}function Me(e){Re((e.expression.parent=e).expression,e,!1)}function Fe(e,t,n,r){return!n||r||e&&1920&e.flags||(e=je(t,e,function(e,t,n){return t?(z(t,e,67110400),t):Z(n?n.exports:m.jsGlobalAugmentations||(m.jsGlobalAugmentations=D.createSymbolTable()),n,e,67110400,110735)})),e}function Oe(e,t,n){var r;t&&function(e){if(1072&e.flags)return!0;var t=e.valueDeclaration;if(t&&D.isCallExpression(t))return!!D.getAssignedExpandoInitializer(t);var n=t?D.isVariableDeclaration(t)?t.initializer:D.isBinaryExpression(t)?t.right:D.isPropertyAccessExpression(t)&&D.isBinaryExpression(t.parent)?t.parent.right:undefined:undefined;if(n=n&&D.getRightMostAssignedExpression(n)){var r=D.isPrototypeAccess(D.isVariableDeclaration(t)?t.name:D.isBinaryExpression(t)?t.left:t);return!!D.getExpandoInitializer(D.isBinaryExpression(n)&&55===n.operatorToken.kind?n.right:n,r)}return!1}(t)&&Z(n?t.members||(t.members=D.createSymbolTable()):t.exports||(t.exports=D.createSymbolTable()),t,e,67108864|((r=D.isFunctionLikeDeclaration(D.getAssignedExpandoInitializer(e)))?8192:4),-67108865&(r?67212223:0))}function Re(e,t,n){var r=He(e),i=D.isBinaryExpression(t.parent)?285===function(e){for(;D.isBinaryExpression(e.parent);)e=e.parent;return e.parent}(t.parent).parent.kind:285===t.parent.parent.kind;Oe(t,r=Fe(r,t.expression,i,n),n)}function He(e,t){if(void 0===t&&(t=b),D.isIdentifier(e))return Ue(t,e.escapedText);var n=He(e.expression);return n&&n.exports&&n.exports.get(e.name.escapedText)}function je(e,t,n){if(ze(m,e))return m.symbol;if(D.isIdentifier(e))return n(e,He(e),t);var r=je(e.expression,t,n);return n(e.name,r&&r.exports&&r.exports.get(e.name.escapedText),r)}function We(e){var t,n,r;B&&Te(e,e.name),D.isBindingPattern(e.name)||(n=(t=D.isInJSFile(e)&&!!D.getJSDocEnumTag(e))?256:0,r=t?68008191:0,D.isBlockOrCatchScoped(e)?Ee(e,2|n,67220415|r):D.isParameterDeclaration(e)?me(e,1,67220415):me(e,1|n,67220414|r))}function Ge(e){var t;305===e.kind&&299!==b.kind||(!B||4194304&e.flags||Te(e,e.name),D.isBindingPattern(e.name)?ve(e,1,"__"+e.parent.parameters.indexOf(e)):me(e,1,67220415),D.isParameterPropertyDeclaration(e)&&Z((t=e.parent.parent).symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0))}function Ye(e,t,n){return m.isDeclarationFile||4194304&e.flags||!D.isAsyncFunction(e)||(C|=1024),w&&D.isObjectLiteralOrClassExpressionMethod(e)&&(e.flowNode=w),D.hasDynamicName(e)?ve(e,t,"__computed"):me(e,t,n)}function Je(e){return!(D.isFunctionDeclaration(e)||function(e){switch(e.kind){case 242:case 243:return!0;case 245:return 1!==k(e);case 244:return D.hasModifier(e,2048);default:return!1}}(e)||D.isEnumDeclaration(e)||D.isVariableStatement(e)&&!(3&D.getCombinedNodeFlags(e))&&e.declarationList.declarations.some(function(e){return!e.initializer}))}function ze(e,t){for(var n,r,i=0,a=[t];a.length&&i<100;){if(i++,t=a.shift(),D.isExportsIdentifier(t)||D.isModuleExportsPropertyAccessExpression(t))return!0;!D.isIdentifier(t)||(n=Ue(e,t.escapedText))&&n.valueDeclaration&&D.isVariableDeclaration(n.valueDeclaration)&&n.valueDeclaration.initializer&&(r=n.valueDeclaration.initializer,a.push(r),D.isAssignmentExpression(r,!0)&&(a.push(r.left),a.push(r.right)))}return!1}function Ue(e,t){var n=e.locals&&e.locals.get(t);return n?n.exportSymbol||n:D.isSourceFile(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):e.symbol&&e.symbol.exports&&e.symbol.exports.get(t)}function Ke(e,t){var n,r=e.kind;switch(r){case 192:return function(e,t){var n=t,r=D.skipOuterExpressions(e.expression),i=e.expression;e.typeArguments&&(n|=1);(4096&t||D.isSuperOrSuperProperty(r))&&(n|=128,D.isSuperProperty(r)&&(n|=2048));93===i.kind&&(n|=524288);return e.transformFlags=536870912|n,-536875009&n}(e,t);case 193:return function(e,t){var n=t;e.typeArguments&&(n|=1);4096&t&&(n|=128);return e.transformFlags=536870912|n,-536875009&n}(e,t);case 245:return function(e,t){var n=1;0==(2&D.getModifierFlags(e))&&(n|=t);return e.transformFlags=536870912|n,-537168897&n}(e,t);case 196:return function(e,t){var n=t,r=e.expression.kind;213!==r&&195!==r||(n|=1);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 205:return function(e,t){var n=t,r=e.operatorToken.kind,i=e.left.kind;60===r&&189===i?n|=656:60===r&&188===i?n|=640:41!==r&&64!==r||(n|=64);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 222:return n=t,e.transformFlags=536870912|n,-536870913&n;case 152:return function(e,t){var n=t,r=e.name,i=e.initializer,a=e.dotDotDotToken;(e.questionToken||e.type||1024&t&&D.some(e.decorators)||D.isThisIdentifier(r))&&(n|=1);D.hasModifier(e,92)&&(n|=1025);8192&t&&(n|=16);(65536&t||i||a)&&(n|=128);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 198:return function(e,t){var n=128|t;(D.hasModifier(e,2270)||e.typeParameters||e.type)&&(n|=1);D.hasModifier(e,256)&&(n|=32);8192&t&&(n|=16);return e.transformFlags=536870912|n,-537371649&n}(e,t);case 197:return function(e,t){var n=t;(D.hasModifier(e,2270)||e.typeParameters||e.type)&&(n|=1);D.hasModifier(e,256)&&(n|=e.asteriskToken?16:32);8192&t&&(n|=16);e.asteriskToken&&(n|=256);return e.transformFlags=536870912|n,-537373697&n}(e,t);case 240:return function(e,t){var n,r=D.getModifierFlags(e);!e.body||2&r?n=1:(n=262144|t,(2270&r||e.typeParameters||e.type)&&(n|=1),256&r&&(n|=e.asteriskToken?16:32),8192&t&&(n|=16),e.asteriskToken&&(n|=256));return e.transformFlags=536870912|n,-537373697&n}(e,t);case 238:return function(e,t){var n=t;n|=65664,8192&t&&(n|=16);e.type&&(n|=1);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 239:return function(e,t){var n=262144|t;65536&t&&(n|=128);3&e.flags&&(n|=32896);return e.transformFlags=536870912|n,-536944641&n}(e,t);case 220:return function(e,t){var n,r=e.declarationList.transformFlags;D.hasModifier(e,2)?n=1:(n=t,65536&r&&(n|=128));return e.transformFlags=536870912|n,-536870913&n}(e,t);case 234:return function(e,t){var n=t;32768&t&&D.isIterationStatement(e,!0)&&(n|=128);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 241:return function(e,t){var n;D.hasModifier(e,2)?n=1:(n=128|t,(1024&t||e.typeParameters)&&(n|=1));return e.transformFlags=536870912|n,-536888321&n}(e,t);case 210:return function(e,t){var n=128|t;(1024&t||e.typeParameters)&&(n|=1);return e.transformFlags=536870912|n,-536888321&n}(e,t);case 274:return function(e,t){var n=t;switch(e.token){case 87:n|=128;break;case 110:n|=1;break;default:D.Debug.fail("Unexpected token for heritage clause")}return e.transformFlags=536870912|n,-536870913&n}(e,t);case 275:return function(e,t){var n=t;e.variableDeclaration?D.isBindingPattern(e.variableDeclaration.name)&&(n|=128):n|=8;return e.transformFlags=536870912|n,-536879105&n}(e,t);case 212:return function(e,t){var n=128|t;e.typeArguments&&(n|=1);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 158:return function(e,t){var n=t;!D.hasModifier(e,2270)&&e.body||(n|=1);8192&t&&(n|=16);return e.transformFlags=536870912|n,-537372673&n}(e,t);case 155:return function(e,t){var n=1|t;(e.initializer||D.isComputedPropertyName(e.name))&&(n|=1024);return e.transformFlags=536870912|n,_(e.name,-536872961&n)}(e,t);case 157:return function(e,t){var n=128|t;(e.decorators||D.hasModifier(e,2270)||e.typeParameters||e.type||e.name&&D.isComputedPropertyName(e.name)||!e.body)&&(n|=1);8192&t&&(n|=16);D.hasModifier(e,256)&&(n|=e.asteriskToken?16:32);e.asteriskToken&&(n|=256);return e.transformFlags=536870912|n,_(e.name,-537372673&n)}(e,t);case 159:case 160:return function(e,t){var n=t;(e.decorators||D.hasModifier(e,2270)||e.type||e.name&&D.isComputedPropertyName(e.name)||!e.body)&&(n|=1);8192&t&&(n|=16);return e.transformFlags=536870912|n,_(e.name,-537372673&n)}(e,t);case 249:return function(e,t){var n=t;D.isExternalModuleImportEqualsDeclaration(e)||(n|=1);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 190:return function(e,t){var n=t;99===e.expression.kind&&(n|=48);return e.transformFlags=536870912|n,-536870913&n}(e,t);case 191:return function(e,t){var n=t;99===e.expression.kind&&(n|=48);return e.transformFlags=536870912|n,-536870913&n}(e,t);default:return function(e,t,n){var r=n,i=536870912;switch(t){case 122:case 202:r|=48;break;case 195:case 213:case 314:r|=1,i=536870912;break;case 116:case 114:case 115:case 119:case 126:case 78:case 244:case 279:case 214:case 134:r|=1;break;case 261:case 262:case 263:case 11:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:r|=2;break;case 14:case 15:case 16:case 17:case 207:case 194:case 277:case 117:case 215:r|=128;break;case 10:e.hasExtendedUnicodeEscape&&(r|=128);break;case 8:384&e.numericLiteralFlags&&(r|=128);break;case 9:r|=4;break;case 228:e.awaitModifier&&(r|=16),r|=128;break;case 208:r|=131216;break;case 121:case 136:case 147:case 133:case 137:case 139:case 124:case 140:case 107:case 151:case 154:case 156:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 178:case 242:case 243:case 179:case 180:case 181:case 182:case 183:case 248:r=1,i=-2;break;case 150:r|=16384;break;case 209:r|=4224;break;case 278:r|=8208;break;case 99:r|=128,i=536870912;break;case 101:r|=2048;break;case 185:r|=65664,4096&n&&(r|=8208),i=536875008;break;case 186:r|=65664,i=536875008;break;case 187:r|=128,e.dotDotDotToken&&(r|=4096);break;case 153:r|=1025;break;case 189:i=536896512,16384&n&&(r|=128),8192&n&&(r|=16);break;case 188:i=536875008;break;case 224:case 225:case 226:case 227:32768&n&&(r|=128);break;case 285:break;case 231:r|=262160;break;case 229:case 230:r|=262144}return e.transformFlags=536870912|r,r&~i}(e,r,t)}}function _(e,t){return t|2048&e.transformFlags}function g(e){if(164<=e&&e<=184)return-2;switch(e){case 192:case 193:case 188:return 536875008;case 245:return 537168896;case 152:return 536870912;case 198:return 537371648;case 197:case 240:return 537373696;case 239:return 536944640;case 241:case 210:return 536888320;case 158:return 537372672;case 157:case 159:case 160:return 537372672;case 121:case 136:case 147:case 133:case 139:case 137:case 124:case 140:case 107:case 151:case 154:case 156:case 161:case 162:case 163:case 242:case 243:return-2;case 189:return 536896512;case 275:return 536879104;case 185:case 186:return 536875008;case 195:case 213:case 314:case 196:case 99:return 536870912;case 190:case 191:default:return 536870912}}function Ze(e,t){t.parent=e,D.forEachChild(t,function(e){return Ze(t,e)})}D.bindSourceFile=function(e,t){D.performance.mark("beforeBind"),n(e,t),D.performance.mark("afterBind"),D.performance.measure("Bind","beforeBind","afterBind")},D.isExportsOrModuleExportsOrAlias=ze,D.computeTransformFlagsForNode=Ke,D.getTransformFlagsSubtreeExclusions=g}(rg=rg||{}),(b=rg=rg||{}).createGetSymbolWalker=function(i,a,o,f,_,s,h,g,m,y){return function(n){void 0===n&&(n=function n(){return!0});var c=[],r=[];return{walkType:function(e){try{return u(e),{visitedTypes:b.getOwnValues(c),visitedSymbols:b.getOwnValues(r)}}finally{b.clear(c),b.clear(r)}},walkSymbol:function(e){try{return p(e),{visitedTypes:b.getOwnValues(c),visitedSymbols:b.getOwnValues(r)}}finally{b.clear(c),b.clear(r)}}};function u(e){var t,n,r,i,a,o,s;e&&(c[e.id]||p((c[e.id]=e).symbol)||(524288&e.flags&&(4&(n=(t=e).objectFlags)&&(u((a=e).target),b.forEach(a.typeArguments,u)),32&n&&(u((i=e).typeParameter),u(i.constraintType),u(i.templateType),u(i.modifiersType)),3&n&&(d(r=e),b.forEach(r.typeParameters,u),b.forEach(f(r),u),u(r.thisType)),24&n&&d(t)),262144&e.flags&&u(m(e)),3145728&e.flags&&(o=e,b.forEach(o.types,u)),4194304&e.flags&&u(e.type),8388608&e.flags&&(u((s=e).objectType),u(s.indexType),u(s.constraint))))}function l(e){var t=a(e);t&&u(t.type),b.forEach(e.typeParameters,u);for(var n=0,r=e.parameters;n<r.length;n++){p(r[n])}u(i(e)),u(o(e))}function d(e){u(g(e,0)),u(g(e,1));for(var t=_(e),n=0,r=t.callSignatures;n<r.length;n++){l(r[n])}for(var i=0,a=t.constructSignatures;i<a.length;i++){l(a[i])}for(var o=0,s=t.properties;o<s.length;o++){p(s[o])}}function p(e){if(!e)return!1;var t=b.getSymbolId(e);return!r[t]&&(r[t]=e,!n(e)||(u(s(e)),e.exports&&e.exports.forEach(p),b.forEach(e.declarations,function(e){var t;e.type&&168===e.type.kind&&(t=e.type,p(h(y(t.exprName))))}),!1))}}},Ub=rg=rg||{},Zb=/^".+"$/,qb=Xb=E=v=1,Ub.getNodeId=ev,Ub.getSymbolId=tv,Ub.isInstantiatedModule=nv,Ub.createTypeChecker=function(v,V){var E,s,c,f,u=Ub.memoize(function(){var t=Ub.createMap();return v.getSourceFiles().forEach(function(e){e.resolvedModules&&Ub.forEachEntry(e.resolvedModules,function(e){e&&e.packageId&&t.set(e.packageId.name,!0)})}),t}),i=Ub.objectAllocator.getSymbolConstructor(),n=Ub.objectAllocator.getTypeConstructor(),l=Ub.objectAllocator.getSignatureConstructor(),r=0,a=0,p=0,o=0,_=0,M=Ub.createSymbolTable(),g=Ub.identity,z=v.getCompilerOptions(),k=Ub.getEmitScriptTarget(z),C=Ub.getEmitModuleKind(z),h=Ub.getAllowSyntheticDefaultImports(z),U=Ub.getStrictOptionValue(z,"strictNullChecks"),D=Ub.getStrictOptionValue(z,"strictFunctionTypes"),I=Ub.getStrictOptionValue(z,"strictBindCallApply"),B=Ub.getStrictOptionValue(z,"strictPropertyInitialization"),K=Ub.getStrictOptionValue(z,"noImplicitAny"),m=Ub.getStrictOptionValue(z,"noImplicitThis"),y=!!z.keyofStringsOnly,A=z.suppressExcessPropertyErrors?0:32768,d=function(){var c,e=v.getResolvedTypeReferenceDirectives();e&&(c=Ub.createMap(),e.forEach(function(e,t){e&&e.resolvedFileName&&!function s(e,t){if(c.has(e.path))return;c.set(e.path,t);for(var n=0,r=e.referencedFiles;n<r.length;n++){var i=r[n].fileName,a=Ub.resolveTripleslashReference(i,e.originalFileName),o=v.getSourceFile(a);o&&s(o,t)}}(v.getSourceFile(e.resolvedFileName),t)}));return{getReferencedExportContainer:Wy,getReferencedImportDeclaration:Gy,getReferencedDeclarationWithCollidingName:Jy,isDeclarationWithCollidingName:zy,isValueAliasDeclaration:function(e){return!(e=Ub.getParseTreeNode(e))||Uy(e)},hasGlobalName:db,isReferencedAliasDeclaration:function(e,t){return!(e=Ub.getParseTreeNode(e))||function i(e,t){if(Ub.isAliasSymbolDeclaration(e)){var n=Gr(e);if(n&&nr(n).referenced)return!0;var r=nr(n).target;if(r&&1&Ub.getModifierFlags(e)&&67220415&r.flags&&(z.preserveConstEnums||!Xy(r)))return!0}if(t)return!!Ub.forEachChild(e,function(e){return i(e,t)});return!1}(e,t)},getNodeCheckFlags:function(e){return(e=Ub.getParseTreeNode(e))?nb(e):0},isTopLevelValueImportEqualsWithEntityName:Ky,isDeclarationVisible:Ni,isImplementationOfOverload:qy,isRequiredInitializedParameter:Qy,isOptionalUninitializedParameterProperty:$y,isExpandoFunctionDeclaration:eb,getPropertiesOfContainerFunction:tb,createTypeOfDeclaration:cb,createReturnTypeOfSignatureDeclaration:ub,createTypeOfExpression:lb,createLiteralConstValue:hb,isSymbolAccessible:di,isEntityNameVisible:gi,getConstantValue:function(e){var t=Ub.getParseTreeNode(e,ib);return t?ab(t):undefined},collectLinkedAliases:Di,getReferencedValueDeclaration:fb,getTypeReferenceSerializationKind:sb,isOptionalParameter:os,moduleExportsSomeValue:jy,isArgumentsLocalBinding:Hy,getExternalModuleFileFromDeclaration:gb,getTypeReferenceDirectivesForEntityName:function(e){if(!c)return undefined;var t=67899368;(73===e.kind&&rp(e)||190===e.kind&&!function(e){return e.parent&&212===e.parent.kind&&e.parent.parent&&274===e.parent.parent.kind}(e))&&(t=68268991);var n=Sr(e,t,!0);return n&&n!==_e?r(n,t):undefined},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:_b,isLateBound:function(e){var t=Ub.getParseTreeNode(e,Ub.isDeclaration),n=t&&Gr(t);return!!(n&&4096&Ub.getCheckFlags(n))},getJsxFactoryEntity:function(e){return e?(Gn(e),Ub.getSourceFileOfNode(e).localJsxFactory||En):En},getAllAccessorDeclarations:function(e){var t=160===(e=Ub.getParseTreeNode(e,Ub.isGetOrSetAccessorDeclaration)).kind?159:160,n=Ub.getDeclarationOfKind(Gr(e),t);return{firstAccessor:n&&n.pos<e.pos?n:e,secondAccessor:n&&n.pos<e.pos?e:n,setAccessor:160===e.kind?e:n,getAccessor:159===e.kind?e:n}},getSymbolOfExternalModuleSpecifier:function(e){return kr(e,e,undefined)},isBindingCapturedByNode:function(e,t){var n,r,i=Ub.getParseTreeNode(e),a=Ub.getParseTreeNode(t);return!!i&&!!a&&(Ub.isVariableDeclaration(a)||Ub.isBindingElement(a))&&(n=a,!!(r=rr(i))&&Ub.contains(r.capturedBlockScopeBindings,Gr(n)))}};function r(e,t){if(!c)return undefined;if(!function(e){if(!e.declarations)return!1;var t=e;for(;;){var n=Yr(t);if(!n)break;t=n}if(t.valueDeclaration&&285===t.valueDeclaration.kind&&512&t.flags)return!1;for(var r=0,i=e.declarations;r<i.length;r++){var a=i[r],o=Ub.getSourceFileOfNode(a);if(c.has(o.path))return!0}return!1}(e))return undefined;for(var n,r=0,i=e.declarations;r<i.length;r++){var a=i[r];if(a.symbol&&a.symbol.flags&t){var o=Ub.getSourceFileOfNode(a),s=c.get(o.path);if(!s)return undefined;(n=n||[]).push(s)}}return n}}(),b={typeToTypeNode:function(t,e,n,r){return T(e,n,r,function(e){return S(t,e)})},indexInfoToIndexSignatureDeclaration:function(t,n,e,r,i){return T(e,r,i,function(e){return L(t,n,e)})},signatureToSignatureDeclaration:function(t,n,e,r,i){return T(e,r,i,function(e){return F(t,n,e)})},symbolToEntityName:function(t,n,e,r,i){return T(e,r,i,function(e){return q(t,e,n,!1)})},symbolToExpression:function(n,r,e,t,i){return T(e,t,i,function(e){return function l(e,t){var n=J(e,t,u),r=e[t];if(Ub.some(r.declarations,_i))return Ub.createLiteral(Z(r,u));0===t&&(u.flags|=16777216);var i=Si(r,u);0===t&&(u.flags^=16777216);var a=i.charCodeAt(0),o=Ub.isIdentifierStart(a,k);if(0===t||o){var s=Ub.setEmitFlags(Ub.createIdentifier(i,n),16777216);return s.symbol=r,0<t?Ub.createPropertyAccess(l(e,t-1),s):s}91===a&&(i=i.substring(1,i.length-1),a=i.charCodeAt(0));var c=void 0;return Ub.isSingleOrDoubleQuote(a)?(c=Ub.createLiteral(i.substring(1,i.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===a:""+ +i===i&&(c=Ub.createLiteral(+i)),c||((c=Ub.setEmitFlags(Ub.createIdentifier(i,n),16777216)).symbol=r),Ub.createElementAccess(l(e,t-1),c)}(t=G(n,u=e,r),t.length-1);var u,t})},symbolToTypeParameterDeclarations:function(t,e,n,r){return T(e,n,r,function(e){return Y(t,e)})},symbolToParameterDeclaration:function(t,e,n,r){return T(e,n,r,function(e){return j(t,e)})},typeParameterToDeclaration:function(t,e,n,r){return T(e,n,r,function(e){return H(t,e)})}};function T(e,t,n,r){Ub.Debug.assert(e===undefined||0==(8&e.flags));var i={enclosingDeclaration:e,flags:t||0,tracker:n&&n.trackSymbol?n:{trackSymbol:Ub.noop,moduleResolverHost:134217728&t?{getCommonSourceDirectory:v.getCommonSourceDirectory?function(){return v.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return v.getSourceFiles()},getCurrentDirectory:v.getCurrentDirectory&&function(){return v.getCurrentDirectory()}}:undefined},encounteredError:!1,visitedTypes:undefined,symbolDepth:undefined,inferTypeParameters:undefined,approximateLength:0},a=r(i);return i.encounteredError?undefined:a}function x(e){return e.truncating?e.truncating:e.truncating=!(1&e.flags)&&e.approximateLength>Ub.defaultMaximumTruncationLength}function S(e,I){E&&E.throwIfCancellationRequested&&E.throwIfCancellationRequested();var t=8388608&I.flags;if(I.flags&=-8388609,!e)return I.encounteredError=!0,undefined;if(1&e.flags)return I.approximateLength+=3,Ub.createKeywordTypeNode(121);if(2&e.flags)return Ub.createKeywordTypeNode(144);if(4&e.flags)return I.approximateLength+=6,Ub.createKeywordTypeNode(139);if(8&e.flags)return I.approximateLength+=6,Ub.createKeywordTypeNode(136);if(64&e.flags)return I.approximateLength+=6,Ub.createKeywordTypeNode(147);if(16&e.flags)return I.approximateLength+=7,Ub.createKeywordTypeNode(124);if(1024&e.flags&&!(1048576&e.flags)){var n=Yr(e.symbol),r=X(n,I,67897832);return La(n)===e?r:C(r,Ub.createTypeReferenceNode(Ub.symbolName(e.symbol),undefined))}if(1056&e.flags)return X(e.symbol,I,67897832);if(128&e.flags)return I.approximateLength+=e.value.length+2,Ub.createLiteralTypeNode(Ub.setEmitFlags(Ub.createLiteral(e.value),16777216));if(256&e.flags){var i=e.value;return I.approximateLength+=(""+i).length,Ub.createLiteralTypeNode(i<0?Ub.createPrefix(39,Ub.createLiteral(-i)):Ub.createLiteral(i))}if(2048&e.flags)return I.approximateLength+=Ub.pseudoBigIntToString(e.value).length+1,Ub.createLiteralTypeNode(Ub.createLiteral(e.value));if(512&e.flags)return I.approximateLength+=e.intrinsicName.length,"true"===e.intrinsicName?Ub.createTrue():Ub.createFalse();if(8192&e.flags){if(!(1048576&I.flags)){if(li(e.symbol,I.enclosingDeclaration))return I.approximateLength+=6,X(e.symbol,I,67220415);I.tracker.reportInaccessibleUniqueSymbolError&&I.tracker.reportInaccessibleUniqueSymbolError()}return I.approximateLength+=13,Ub.createTypeOperatorNode(143,Ub.createKeywordTypeNode(140))}if(16384&e.flags)return I.approximateLength+=4,Ub.createKeywordTypeNode(107);if(32768&e.flags)return I.approximateLength+=9,Ub.createKeywordTypeNode(142);if(65536&e.flags)return I.approximateLength+=4,Ub.createKeywordTypeNode(97);if(131072&e.flags)return I.approximateLength+=5,Ub.createKeywordTypeNode(133);if(4096&e.flags)return I.approximateLength+=6,Ub.createKeywordTypeNode(140);if(67108864&e.flags)return I.approximateLength+=6,Ub.createKeywordTypeNode(137);if(Qc(e))return 4194304&I.flags&&(I.encounteredError||32768&I.flags||(I.encounteredError=!0),I.tracker.reportInaccessibleThisError&&I.tracker.reportInaccessibleThisError()),I.approximateLength+=4,Ub.createThis();var a=Ub.getObjectFlags(e);if(4&a)return Ub.Debug.assert(!!(524288&e.flags)),function(e){var t=e.typeArguments||Ub.emptyArray;{if(e.target===ot||e.target===st){if(2&I.flags){var n=S(t[0],I);return Ub.createTypeReferenceNode(e.target===ot?"Array":"ReadonlyArray",[n])}var r=S(t[0],I),i=Ub.createArrayTypeNode(r);return e.target===ot?i:Ub.createTypeOperatorNode(134,i)}if(8&e.target.objectFlags){if(0<t.length){var a=js(e),o=P(t.slice(0,a),I),s=e.target.hasRestElement;if(o){for(var c=e.target.minLength;c<Math.min(a,o.length);c++)o[c]=s&&c===a-1?Ub.createRestTypeNode(Ub.createArrayTypeNode(o[c])):Ub.createOptionalTypeNode(o[c]);var u=Ub.createTupleTypeNode(o);return e.target.readonly?Ub.createTypeOperatorNode(134,u):u}}if(I.encounteredError||524288&I.flags){u=Ub.createTupleTypeNode([]);return e.target.readonly?Ub.createTypeOperatorNode(134,u):u}return I.encounteredError=!0,undefined}if(2048&I.flags&&e.symbol.valueDeclaration&&Ub.isClassLike(e.symbol.valueDeclaration)&&!li(e.symbol,I.enclosingDeclaration))return T(e);var l=e.target.outerTypeParameters,c=0,d=void 0;if(l)for(var p=l.length;c<p;){for(var f,_,h,g=c,m=Ms(l[c]);++c<p&&Ms(l[c])===m;);Ub.rangeEquals(l,t,g,c)||(f=P(t.slice(g,c),I),_=I.flags,I.flags|=16,h=X(m,I,67897832,f),I.flags=_,d=d?C(d,h):h)}var y,b=void 0;0<t.length&&(y=(e.target.typeParameters||Ub.emptyArray).length,b=P(t.slice(c,y),I));var v=I.flags;I.flags|=16;var E=X(e.symbol,I,67897832,b);return I.flags=v,d?C(d,E):E}}(e);if(262144&e.flags||3&a){if(262144&e.flags&&Ub.contains(I.inferTypeParameters,e))return I.approximateLength+=Ub.symbolName(e.symbol).length+6,Ub.createInferTypeNode(R(e,I,undefined));if(4&I.flags&&262144&e.flags&&Ub.length(e.symbol.declarations)&&Ub.isTypeParameterDeclaration(e.symbol.declarations[0])&&O(e,I)&&!ui(e.symbol,I.enclosingDeclaration)){var o=e.symbol.declarations[0].name;return I.approximateLength+=Ub.idText(o).length,Ub.createTypeReferenceNode(Ub.getGeneratedNameForNode(o,24),undefined)}return e.symbol?X(e.symbol,I,67897832):Ub.createTypeReferenceNode(Ub.createIdentifier("?"),undefined)}if(!t&&e.aliasSymbol&&(16384&I.flags||ui(e.aliasSymbol,I.enclosingDeclaration))){var s=P(e.aliasTypeArguments,I);return!ti(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?X(e.aliasSymbol,I,67897832,s):Ub.createTypeReferenceNode(Ub.createIdentifier(""),s)}if(3145728&e.flags){var c=1048576&e.flags?function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e[r];if(n|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?Ae:Aa(i);if(1048576&a.flags){var o=a.types.length;if(r+o<=e.length&&Cu(e[r+o-1])===Cu(a.types[o-1])){t.push(a),r+=o-1;continue}}}t.push(i)}}65536&n&&t.push(Te);32768&n&&t.push(Ee);return t||e}(e.types):e.types;if(1===Ub.length(c))return S(c[0],I);var u=P(c,I,!0);return u&&0<u.length?Ub.createUnionOrIntersectionTypeNode(1048576&e.flags?174:175,u):(I.encounteredError||262144&I.flags||(I.encounteredError=!0),undefined)}if(48&a)return Ub.Debug.assert(!!(524288&e.flags)),T(e);if(4194304&e.flags){var l=e.type;I.approximateLength+=6;var d=S(l,I);return Ub.createTypeOperatorNode(d)}if(8388608&e.flags){var p=S(e.objectType,I),d=S(e.indexType,I);return I.approximateLength+=2,Ub.createIndexedAccessTypeNode(p,d)}if(16777216&e.flags){var f=S(e.checkType,I),_=I.inferTypeParameters;I.inferTypeParameters=e.root.inferTypeParameters;var h=S(e.extendsType,I);I.inferTypeParameters=_;var g=S(uu(e),I),m=S(lu(e),I);return I.approximateLength+=15,Ub.createConditionalTypeNode(f,h,g,m)}return 33554432&e.flags?S(e.typeVariable,I):Ub.Debug.fail("Should be unreachable.");function T(e){var n=""+e.id,r=e.symbol;if(r){var t=(16&Ub.getObjectFlags(e)&&e.symbol&&32&e.symbol.flags?"+":"")+tv(r);if(yh(r.valueDeclaration)){var i=e===Eh(r)?67897832:67220415;return X(r,I,i)}if(32&r.flags&&!ca(r)&&!(210===r.valueDeclaration.kind&&2048&I.flags)||896&r.flags||function(){var e=!!(8192&r.flags)&&Ub.some(r.declarations,function(e){return Ub.hasModifier(e,32)}),t=!!(16&r.flags)&&(r.parent||Ub.forEach(r.declarations,function(e){return 285===e.parent.kind||246===e.parent.kind}));if(e||t)return(!!(4096&I.flags)||I.visitedTypes&&I.visitedTypes.has(n))&&(!(8&I.flags)||li(r,I.enclosingDeclaration))}())return X(r,I,67220415);if(I.visitedTypes&&I.visitedTypes.has(n)){var a=function(e){if(e.symbol&&2048&e.symbol.flags){var t=Ub.findAncestor(e.symbol.declarations[0].parent,function(e){return 178!==e.kind});if(243===t.kind)return Gr(t)}return undefined}(e);return a?X(a,I,67897832):N(I)}I.visitedTypes||(I.visitedTypes=Ub.createMap()),I.symbolDepth||(I.symbolDepth=Ub.createMap());var o=I.symbolDepth.get(t)||0;if(10<o)return N(I);I.symbolDepth.set(t,o+1),I.visitedTypes.set(n,!0);var s=y(e);return I.visitedTypes["delete"](n),I.symbolDepth.set(t,o),s}return y(e)}function y(e){if(Bo(e))return function(e){Ub.Debug.assert(!!(524288&e.flags));var t=e.declaration.readonlyToken?Ub.createToken(e.declaration.readonlyToken.kind):undefined,n=e.declaration.questionToken?Ub.createToken(e.declaration.questionToken.kind):undefined,r=vo(e)?Ub.createTypeOperatorNode(S(Eo(e),I)):S(mo(e),I),i=R(go(e),I,r),a=S(yo(e),I),o=Ub.createMappedTypeNode(t,i,n,a);return I.approximateLength+=10,Ub.setEmitFlags(o,1)}(e);var t=xo(e);if(!t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo){if(!t.callSignatures.length&&!t.constructSignatures.length)return I.approximateLength+=2,Ub.setEmitFlags(Ub.createTypeLiteralNode(undefined),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return F(t.callSignatures[0],166,I);if(1===t.constructSignatures.length&&!t.callSignatures.length)return F(t.constructSignatures[0],167,I)}var n=I.flags;I.flags|=4194304;var r=function(e){if(x(I))return[Ub.createPropertySignature(undefined,"...",undefined,undefined,undefined)];for(var t=[],n=0,r=e.callSignatures;n<r.length;n++){var i=r[n];t.push(F(i,161,I))}for(var a=0,o=e.constructSignatures;a<o.length;a++){i=o[a];t.push(F(i,162,I))}{var s;e.stringIndexInfo&&(s=void 0,2048&e.objectFlags?(s=L(ws(ge,e.stringIndexInfo.isReadonly,e.stringIndexInfo.declaration),0,I)).type=N(I):s=L(e.stringIndexInfo,0,I),t.push(s))}e.numberIndexInfo&&t.push(L(e.numberIndexInfo,1,I));var c=e.properties;if(!c)return t;for(var u=0,l=0,d=c;l<d.length;l++){var p=d[l];if(u++,2048&I.flags){if(4194304&p.flags)continue;24&Ub.getDeclarationModifierFlagsFromSymbol(p)&&I.tracker.reportPrivateInBaseOfClassExpression&&I.tracker.reportPrivateInBaseOfClassExpression(Ub.unescapeLeadingUnderscores(p.escapedName))}if(x(I)&&u+2<c.length-1){t.push(Ub.createPropertySignature(undefined,"... "+(c.length-u)+" more ...",undefined,undefined,undefined)),w(c[c.length-1],I,t);break}w(p,I,t)}return t.length?t:undefined}(t);I.flags=n;var i=Ub.createTypeLiteralNode(r);return I.approximateLength+=2,Ub.setEmitFlags(i,1024&I.flags?0:1)}function C(e,t){if(Ub.isImportTypeNode(e)){var n=e.typeArguments;e.qualifier&&((Ub.isIdentifier(e.qualifier)?e.qualifier:e.qualifier.right).typeArguments=n),e.typeArguments=t.typeArguments;for(var r=0,i=b(t);r<i.length;r++){var a=i[r];e.qualifier=e.qualifier?Ub.createQualifiedName(e.qualifier,a):a}return e}n=e.typeArguments;(Ub.isIdentifier(e.typeName)?e.typeName:e.typeName.right).typeArguments=n,e.typeArguments=t.typeArguments;for(var o=0,s=b(t);o<s.length;o++){a=s[o];e.typeName=Ub.createQualifiedName(e.typeName,a)}return e}function b(e){for(var t=e.typeName,n=[];!Ub.isIdentifier(t);)n.unshift(t.right),t=t.left;return n.unshift(t),n}}function N(e){return e.approximateLength+=3,1&e.flags?Ub.createKeywordTypeNode(121):Ub.createTypeReferenceNode(Ub.createIdentifier("..."),undefined)}function w(e,t,n){var r,i=!!(8192&Ub.getCheckFlags(e)),a=i&&33554432&t.flags?ge:pa(e),o=t.enclosingDeclaration;t.enclosingDeclaration=undefined,t.tracker.trackSymbol&&4096&Ub.getCheckFlags(e)&&(za(r=Ub.first(e.declarations))&&W(r.name,o,t));var s=q(e,t,67220415,!0);t.approximateLength+=Ub.symbolName(e).length+1,t.enclosingDeclaration=o;var c=16777216&e.flags?Ub.createToken(56):undefined;if(8208&e.flags&&!So(a).length&&!ng(e))for(var u=0,l=Xo(a,0);u<l.length;u++){var d=F(l[u],156,t);d.name=s,d.questionToken=c,e.valueDeclaration&&Ub.setCommentRange(d,e.valueDeclaration),n.push(d)}else{var p=t.flags;t.flags|=i?33554432:0;var f=void 0,f=i&&33554432&p?N(t):a?S(a,t):Ub.createKeywordTypeNode(121);t.flags=p;var _=ng(e)?[Ub.createToken(134)]:undefined;_&&(t.approximateLength+=9);var h=Ub.createPropertySignature(_,s,c,f,undefined);e.valueDeclaration&&Ub.setCommentRange(h,e.valueDeclaration),n.push(h)}}function P(e,t,n){if(Ub.some(e)){if(x(t)){if(!n)return[Ub.createTypeReferenceNode("...",undefined)];if(2<e.length)return[S(e[0],t),Ub.createTypeReferenceNode("... "+(e.length-2)+" more ...",undefined),S(e[e.length-1],t)]}for(var r=[],i=0,a=0,o=e;a<o.length;a++){var s=o[a];if(i++,x(t)&&i+2<e.length-1){r.push(Ub.createTypeReferenceNode("... "+(e.length-i)+" more ...",undefined));var c=S(e[e.length-1],t);c&&r.push(c);break}t.approximateLength+=2;var u=S(s,t);u&&r.push(u)}return r}}function L(e,t,n){var r=Ub.getNameFromIndexInfo(e)||"x",i=Ub.createKeywordTypeNode(0===t?139:136),a=Ub.createParameter(undefined,undefined,undefined,r,undefined,i,undefined),o=S(e.type||ge,n);return e.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=r.length+4,Ub.createIndexSignature(undefined,e.isReadonly?[Ub.createToken(134)]:undefined,[a],o)}function F(t,n,r){var e,i;32&r.flags&&t.target&&t.mapper&&t.target.typeParameters?i=t.target.typeParameters.map(function(e){return S(Xu(e,t.mapper),r)}):e=t.typeParameters&&t.typeParameters.map(function(e){return H(e,r)});var a,o=io(t).map(function(e){return j(e,r,158===n)});t.thisParameter&&(a=j(t.thisParameter,r),o.unshift(a));var s,c,u,l,d=ys(t);return u=d?(s=1===d.kind?Ub.setEmitFlags(Ub.createIdentifier(d.parameterName),16777216):Ub.createThisTypeNode(),c=S(d.type,r),Ub.createTypePredicateNode(s,c)):(l=bs(t))&&S(l,r),256&r.flags?u&&121===u.kind&&(u=undefined):u=u||Ub.createKeywordTypeNode(121),r.approximateLength+=3,Ub.createSignatureDeclaration(n,e,o,u,i)}function O(e,t){return!!sr(t.enclosingDeclaration,e.symbol.escapedName,67897832,undefined,e.symbol.escapedName,!1)}function R(e,t,n){var r=t.flags;t.flags&=-513;var i=4&t.flags&&e.symbol.declarations&&e.symbol.declarations[0]&&Ub.isTypeParameterDeclaration(e.symbol.declarations[0])&&O(e,t)?Ub.getGeneratedNameForNode(e.symbol.declarations[0].name,24):q(e.symbol,t,67897832,!0),a=Wo(e),o=a&&S(a,t);return t.flags=r,Ub.createTypeParameterDeclaration(i,n,o)}function H(e,t,n){return void 0===n&&(n=wo(e)),R(e,t,n&&S(n,t))}function j(e,t,n){var r=Ub.getDeclarationOfKind(e,152);r||Un(e)||(r=Ub.getDeclarationOfKind(e,305));var i=pa(e);r&&Qy(r)&&(i=yd(i));var a=S(i,t),o=!(8192&t.flags)&&n&&r&&r.modifiers?r.modifiers.map(Ub.getSynthesizedClone):undefined,s=r&&Ub.isRestParameter(r)||32768&Ub.getCheckFlags(e)?Ub.createToken(25):undefined,c=r&&r.name?73===r.name.kind?Ub.setEmitFlags(Ub.getSynthesizedClone(r.name),16777216):149===r.name.kind?Ub.setEmitFlags(Ub.getSynthesizedClone(r.name.right),16777216):gVc(r.name):Ub.symbolName(e),u=r&&os(r)||16384&Ub.getCheckFlags(e)?Ub.createToken(56):undefined,l=Ub.createParameter(undefined,o,s,c,u,a,undefined);return t.approximateLength+=Ub.symbolName(e).length+3,l}function W(e,t,n){var r,i;!n.tracker.trackSymbol||(i=sr(r=ly(e.expression),r.escapedText,68268991,undefined,undefined,!0))&&n.tracker.trackSymbol(i,t,67220415)}function G(e,f,t,_){var n;return f.tracker.trackSymbol(e,f.enclosingDeclaration,t),262144&e.flags||!(f.enclosingDeclaration||64&f.flags)||134217728&f.flags?n=[e]:(n=Ub.Debug.assertDefined(function h(e,t,n){var r=si(e,f.enclosingDeclaration,t,!!(128&f.flags));var a;if(!r||ci(r[0],f.enclosingDeclaration,1===r.length?t:oi(t))){var i=Jr(r?r[0]:e,f.enclosingDeclaration);if(Ub.length(i)){a=i.map(function(e){return Ub.some(e.declarations,_i)?Z(e,f):undefined});var o=i.map(function(e,t){return t});o.sort(p);for(var s=o.map(function(e){return i[e]}),c=0,u=s;c<u.length;c++){var l=u[c],d=h(l,oi(t),!1);if(d){r=d.concat(r||[zr(l,e)||e]);break}}}}if(r)return r;if(n||!(6144&e.flags)){if(!n&&!_&&Ub.forEach(e.declarations,_i))return;return[e]}function p(e,t){var n=a[e],r=a[t];if(n&&r){var i=Ub.pathIsRelative(r);return Ub.pathIsRelative(n)===i?Ub.moduleSpecifiers.countPathComponents(n)-Ub.moduleSpecifiers.countPathComponents(r):i?-1:1}return 0}}(e,t,!0)),Ub.Debug.assert(n&&0<n.length)),n}function Y(e,t){var n;return 524384&ry(e).flags&&(n=Ub.createNodeArray(Ub.map(ba(e),function(e){return H(e,t)}))),n}function J(e,t,n){Ub.Debug.assert(e&&0<=t&&t<e.length);var r,i,a,o,s,c=e[t],u=""+tv(c);return n.typeParameterSymbolList&&n.typeParameterSymbolList.get(u)?undefined:((n.typeParameterSymbolList||(n.typeParameterSymbolList=Ub.createMap())).set(u,!0),512&n.flags&&t<e.length-1&&(r=c,i=e[t+1],o=1&Ub.getCheckFlags(i)?(s=2097152&r.flags?Ir(r):r,a=Ub.concatenate(ya(s),ba(s)),P(Ub.map(a,i.mapper),n)):Y(c,n)),o)}function Z(e,t){var n=Ub.getDeclarationOfKind(e,285);if(n&&n.moduleName!==undefined)return n.moduleName;if(!n){if(t.tracker.trackReferencedAmbientModule){var r=Ub.filter(e.declarations,Ub.isAmbientModule);if(Ub.length(r))for(var i=0,a=r;i<a.length;i++){var o=a[i];t.tracker.trackReferencedAmbientModule(o,e)}}if(Zb.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1)}if(!t.enclosingDeclaration||!t.tracker.moduleResolverHost)return Zb.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):Ub.getSourceFileOfNode(Ub.getNonAugmentationDeclaration(e)).fileName;var s,c,u,l=Ub.getSourceFileOfNode(Ub.getOriginalNode(t.enclosingDeclaration)),d=nr(e),p=d.specifierCache&&d.specifierCache.get(l.path);return p||(s=z.out||z.outFile,c=t.tracker.moduleResolverHost,u=s?Qb({},z,{baseUrl:c.getCommonSourceDirectory()}):z,p=Ub.first(Ub.moduleSpecifiers.getModuleSpecifiers(e,u,l,c,v.getSourceFiles(),{importModuleSpecifierPreference:s?"non-relative":"relative"},v.redirectTargetsMap)),d.specifierCache=d.specifierCache||Ub.createMap(),d.specifierCache.set(l.path,p)),p}function X(e,u,t,l){var n=G(e,u,t,!(16384&u.flags)),r=67220415===t;if(Ub.some(n[0].declarations,_i)){var i=1<n.length?h(n,n.length-1,1):undefined,a=l||J(n,0,u),o=Z(n[0],u);!(67108864&u.flags)&&Ub.getEmitModuleResolutionKind(z)===Ub.ModuleResolutionKind.NodeJs&&0<=o.indexOf("/node_modules/")&&(u.encounteredError=!0,u.tracker.reportLikelyUnsafeImportRequiredError&&u.tracker.reportLikelyUnsafeImportRequiredError(o));var s=Ub.createLiteralTypeNode(Ub.createLiteral(o));if(u.tracker.trackExternalModuleSymbolOfImportTypeNode&&u.tracker.trackExternalModuleSymbolOfImportTypeNode(n[0]),u.approximateLength+=o.length+10,!i||Ub.isEntityName(i))return i&&((f=Ub.isIdentifier(i)?i:i.right).typeArguments=undefined),Ub.createImportTypeNode(s,i,a,r);var c=function g(e){return Ub.isIndexedAccessTypeNode(e.objectType)?g(e.objectType):e}(i),d=c.objectType.typeName;return Ub.createIndexedAccessTypeNode(Ub.createImportTypeNode(s,d,a,r),c.indexType)}var p=h(n,n.length-1,0);if(Ub.isIndexedAccessTypeNode(p))return p;if(r)return Ub.createTypeQueryNode(p);var f,_=(f=Ub.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=undefined,Ub.createTypeReferenceNode(p,_);function h(e,t,n){var r=t===e.length-1?l:J(e,t,u),i=e[t];0===t&&(u.flags|=16777216);var a=Si(i,u);u.approximateLength+=a.length+1,0===t&&(u.flags^=16777216);var o=e[t-1];if(!(16&u.flags)&&o&&qa(o)&&qa(o).get(i.escapedName)===i){var s=h(e,t-1,n);return Ub.isIndexedAccessTypeNode(s)?Ub.createIndexedAccessTypeNode(s,Ub.createLiteralTypeNode(Ub.createLiteral(a))):Ub.createIndexedAccessTypeNode(Ub.createTypeReferenceNode(s,r),Ub.createLiteralTypeNode(Ub.createLiteral(a)))}var c=Ub.setEmitFlags(Ub.createIdentifier(a,r),16777216);if(c.symbol=i,n<t){s=h(e,t-1,n);return Ub.isEntityName(s)?Ub.createQualifiedName(s,c):Ub.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return c}}function q(e,o,t,n){var r=G(e,o,t);return!n||1===r.length||o.encounteredError||65536&o.flags||(o.encounteredError=!0),function s(e,t){var n=J(e,t,o);var r=e[t];0===t&&(o.flags|=16777216);var i=Si(r,o);0===t&&(o.flags^=16777216);var a=Ub.setEmitFlags(Ub.createIdentifier(i,n),16777216);a.symbol=r;return 0<t?Ub.createQualifiedName(s(e,t-1),a):a}(r,r.length-1)}var Q=Ub.createSymbolTable(),$=zn(4,"undefined");$.declarations=[];var ee=zn(1536,"globalThis",8);(ee.exports=Q).set(ee.escapedName,ee);var te,ne=zn(4,"arguments"),re=zn(4,"require"),ie={getNodeCount:function(){return Ub.sum(v.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return Ub.sum(v.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return Ub.sum(v.getSourceFiles(),"symbolCount")+a},getTypeCount:function(){return r},getRelationCacheSizes:function(){return{assignable:Fn.size,identity:Rn.size,subtype:Mn.size}},isUndefinedSymbol:function(e){return e===$},isArgumentsSymbol:function(e){return e===ne},isUnknownSymbol:function(e){return e===_e},getMergedSymbol:Wr,getDiagnostics:By,getGlobalDiagnostics:function(){return xy(),yn.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(e,t){return(t=Ub.getParseTreeNode(t))?function(e,t){if(e=e.exportSymbol||e,73===t.kind&&(Ub.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ub.isExpressionNode(t)&&!Ub.isAssignmentTarget(t))){var n=wg(t);if(Ur(rr(t).resolvedSymbol)===e)return n}return pa(e)}(e,t):be},getSymbolsOfParameterPropertyDeclaration:function(e,t){var n=Ub.getParseTreeNode(e,Ub.isParameter);return n===undefined?Ub.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(e,t){var n=e.parent,r=e.parent.parent,i=ar(n.locals,t,67220415),a=ar(qa(r.symbol),t,67220415);if(i&&a)return[i,a];return Ub.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,Ub.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:La,getPropertiesOfType:ko,getPropertyOfType:function(e,t){return Ko(e,Ub.escapeLeadingUnderscores(t))},getTypeOfPropertyOfType:function(e,t){return Pi(e,Ub.escapeLeadingUnderscores(t))},getIndexInfoOfType:$o,getSignaturesOfType:Xo,getIndexTypeOfType:es,getBaseTypes:xa,getBaseTypeOfLiteralType:ad,getWidenedType:xd,getTypeFromTypeNode:function(e){var t=Ub.getParseTreeNode(e,Ub.isTypeNode);return t?Du(t):be},getParameterType:Ah,getPromisedTypeOfPromise:nm,getReturnTypeOfSignature:bs,getNullableType:md,getNonNullableType:bd,typeToTypeNode:b.typeToTypeNode,indexInfoToIndexSignatureDeclaration:b.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:b.signatureToSignatureDeclaration,symbolToEntityName:b.symbolToEntityName,symbolToExpression:b.symbolToExpression,symbolToTypeParameterDeclarations:b.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:b.symbolToParameterDeclaration,typeParameterToDeclaration:b.typeParameterToDeclaration,getSymbolsInScope:function(e,t){return(e=Ub.getParseTreeNode(e))?function(e,t){if(8388608&e.flags)return[];var r=Ub.createSymbolTable(),n=!1;return function(){for(;e;){switch(e.locals&&!ir(e)&&a(e.locals,t),e.kind){case 285:if(!Ub.isExternalOrCommonJsModule(e))break;case 245:a(Gr(e).exports,2623475&t);break;case 244:a(Gr(e).exports,8&t);break;case 210:e.name&&i(e.symbol,t);case 241:case 242:n||a(qa(Gr(e)),67897832&t);break;case 197:e.name&&i(e.symbol,t)}Ub.introducesArgumentsExoticObject(e)&&i(ne,t),n=Ub.hasModifier(e,32),e=e.parent}a(Q,t)}(),r["delete"]("this"),rs(r);function i(e,t){var n;Ub.getCombinedLocalAndExportSymbolFlags(e)&t&&(n=e.escapedName,r.has(n)||r.set(n,e))}function a(e,t){t&&e.forEach(function(e){i(e,t)})}}(e,t):[]},getSymbolAtLocation:function(e){return(e=Ub.getParseTreeNode(e))?Vy(e):undefined},getShorthandAssignmentValueSymbol:function(e){return(e=Ub.getParseTreeNode(e))?function(e){if(e&&277===e.kind)return Sr(e.name,69317567);return undefined}(e):undefined},getExportSpecifierLocalTargetSymbol:function(e){var t,n=Ub.getParseTreeNode(e,Ub.isExportSpecifier);return n?(t=n).parent.parent.moduleSpecifier?mr(t.parent.parent,t):Sr(t.propertyName||t.name,70107135):undefined},getExportSymbolOfSymbol:function(e){return Wr(e.exportSymbol||e)},getTypeAtLocation:function(e){return(e=Ub.getParseTreeNode(e))?Py(e):be},getTypeOfAssignmentPattern:function(e){var t=Ub.getParseTreeNode(e,Ub.isAssignmentPattern);return t&&Ly(t)||be},getPropertySymbolOfDestructuringAssignment:function(e){var t,n,r=Ub.getParseTreeNode(e,Ub.isIdentifier);return r?(t=r,(n=Ly(Ub.cast(t.parent.parent,Ub.isAssignmentPattern)))&&Ko(n,t.escapedText)):undefined},signatureToString:function(e,t,n,r){return yi(e,Ub.getParseTreeNode(t),n,r)},typeToString:function(e,t,n){return bi(e,Ub.getParseTreeNode(t),n)},symbolToString:function(e,t,n,r){return mi(e,Ub.getParseTreeNode(t),n,r)},typePredicateToString:function(e,t,n){return Ii(e,Ub.getParseTreeNode(t),n)},writeSignature:function(e,t,n,r,i){return yi(e,Ub.getParseTreeNode(t),n,r,i)},writeType:function(e,t,n,r){return bi(e,Ub.getParseTreeNode(t),n,r)},writeSymbol:function(e,t,n,r,i){return mi(e,Ub.getParseTreeNode(t),n,r,i)},writeTypePredicate:function(e,t,n,r){return Ii(e,Ub.getParseTreeNode(t),n,r)},getAugmentedPropertiesOfType:Fy,getRootSymbols:function Jb(e){var t=Ry(e);return t?Ub.flatMap(t,Jb):[e]},getContextualType:function(e){var t=Ub.getParseTreeNode(e,Ub.isExpression);return t?Af(t):undefined},getContextualTypeForObjectLiteralElement:function(e){var t=Ub.getParseTreeNode(e,Ub.isObjectLiteralElementLike);return t?Tf(t):undefined},getContextualTypeForArgumentAtIndex:function(e,t){var n=Ub.getParseTreeNode(e,Ub.isCallLikeExpression);return n&&bf(n,t)},getContextualTypeForJsxAttribute:function(e){var t=Ub.getParseTreeNode(e,Ub.isJsxAttributeLike);return t&&xf(t)},isContextSensitive:el,getFullyQualifiedName:xr,getResolvedSignature:function mh(e,t,n){return ae(e,t,n,0)},getResolvedSignatureForSignatureHelp:function(e,t,n){return ae(e,t,n,16)},getExpandedParameters:io,hasEffectiveRestParameter:Mh,getConstantValue:function(e){var t=Ub.getParseTreeNode(e,ib);return t?ab(t):undefined},isValidPropertyAccess:function(e,t){var n=Ub.getParseTreeNode(e,Ub.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 190:return w_(e,99===e.expression.kind,t,xd(Pg(e.expression)));case 149:return w_(e,!1,t,xd(Pg(e.left)));case 184:return w_(e,!1,t,Du(e))}}(n,Ub.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(e,t,n){var r,i,a,o=Ub.getParseTreeNode(e,Ub.isPropertyAccessExpression);return!!o&&(i=t,a=n,w_(r=o,190===r.kind&&99===r.expression.kind,a.escapedName,i))},getSignatureFromDeclaration:function(e){var t=Ub.getParseTreeNode(e,Ub.isFunctionLike);return t?ps(t):undefined},isImplementationOfOverload:function(e){var t=Ub.getParseTreeNode(e,Ub.isFunctionLike);return t?qy(t):undefined},getImmediateAliasedSymbol:Uf,getAliasedSymbol:Ir,getEmitResolver:function(e,t){return By(e,t),d},getExportsOfModule:Mr,getExportsAndPropertiesOfModule:function(e){var t=Mr(e),n=Vr(e);n!==e&&Ub.addRange(t,ko(pa(n)));return t},getSymbolWalker:Ub.createGetSymbolWalker(function(e){return Is(e)||ge},ys,bs,xa,xo,pa,np,Qo,wo,ly),getAmbientModules:function(){$e||($e=[],Q.forEach(function(e,t){Zb.test(t)&&$e.push(e)}));return $e},getJsxIntrinsicTagNamesAt:function(e){var t=t_(Kb.IntrinsicElements,e);return t?ko(t):Ub.emptyArray},isOptionalParameter:function(e){var t=Ub.getParseTreeNode(e,Ub.isParameter);return!!t&&os(t)},tryGetMemberInModuleExports:function(e,t){return Fr(Ub.escapeLeadingUnderscores(e),t)},tryGetMemberInModuleExportsAndProperties:function(e,t){return function(e,t){var n=Fr(e,t);if(n)return n;var r=Vr(t);if(r===t)return undefined;var i=pa(r);return 131068&i.flags?undefined:Ko(i,e)}(Ub.escapeLeadingUnderscores(e),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return as(e,!1)},getApparentType:Yo,getUnionType:Pc,createAnonymousType:ii,createSignature:to,createSymbol:zn,createIndexInfo:ws,getAnyType:function(){return ge},getStringType:function(){return Be},getNumberType:function(){return xe},createPromiseType:Gh,createArrayType:Tc,getElementTypeOfArrayType:ql,getBooleanType:function(){return Ae},getFalseType:function(e){return e?Ne:De},getTrueType:function(e){return e?ke:t},getVoidType:function(){return Ve},getUndefinedType:function(){return Ee},getNullType:function(){return Te},getESSymbolType:function(){return we},getNeverType:function(){return Pe},isSymbolAccessible:di,getObjectFlags:Ub.getObjectFlags,isArrayType:Zl,isTupleType:ud,isArrayLikeType:Ql,isTypeInvalidDueToUnionDiscriminant:function(i,e){return e.properties.some(function(e){var t=e.name&&jc(e.name),n=t&&Ya(t)?Ka(t):undefined,r=n===undefined?undefined:Pi(i,n);return!!r&&id(r)&&!ll(Py(e),r)})},getAllPossiblePropertiesOfTypes:function(e){var t=Pc(e);if(!(1048576&t.flags))return Fy(t);for(var n=Ub.createSymbolTable(),r=0,i=e;r<i.length;r++)for(var a=i[r],o=0,s=Fy(a);o<s.length;o++){var c,u=s[o].escapedName;n.has(u)||(c=Jo(t,u))&&n.set(u,c)}return Ub.arrayFrom(n.values())},getSuggestionForNonexistentProperty:S_,getSuggestionForNonexistentSymbol:function(e,t,n){return r=e,i=Ub.escapeLeadingUnderscores(t),(a=N_(r,i,n))&&Ub.symbolName(a);var r,i,a},getSuggestionForNonexistentExport:function(e,t){return(n=D_(e,t))&&Ub.symbolName(n);var n},getBaseConstraintOfType:Fo,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Wo(e):undefined},resolveName:function(e,t,n,r){return sr(t,Ub.escapeLeadingUnderscores(e),n,undefined,undefined,!1,r)},getJsxNamespace:function(e){return Ub.unescapeLeadingUnderscores(Gn(e))},getAccessibleSymbolChain:si,getTypePredicateOfSignature:ys,resolveExternalModuleSymbol:Vr,tryGetThisTypeAt:function(e,t){return(e=Ub.getParseTreeNode(e))&&uf(e,t)},getTypeArgumentConstraint:function(e){var t=Ub.getParseTreeNode(e,Ub.isTypeNode);return t&&function(e){var t=Ub.tryCast(e.parent,Ub.isTypeReferenceType);if(!t)return undefined;var n=Ug(t),r=wo(n[t.typeArguments.indexOf(e)]);return r&&Xu(r,Pu(n,Jg(t,n)))}(t)},getSuggestionDiagnostics:function(e,t){if(Ub.skipTypeChecking(e,z))return Ub.emptyArray;var r;try{return E=t,Iy(e),Ub.Debug.assert(!!(1&rr(e).flags)),r=Ub.addRange(r,bn.get(e.fileName)),e.isDeclarationFile||Ty(0)&&Ty(1)||hm(Cy(e),function(e,t,n){Ub.containsParseError(e)||Ty(t)||(r=r||[]).push(Qb({},n,{category:Ub.DiagnosticCategory.Suggestion}))}),r||Ub.emptyArray}finally{E=undefined}},runWithCancellationToken:function(e,t){try{return E=e,t(ie)}finally{E=undefined}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ba};function ae(e,t,n,r){var i=Ub.getParseTreeNode(e,Ub.isCallLikeExpression);te=n;var a=i?mh(i,t,r):undefined;return te=undefined,a}var oe=Ub.createMap(),se=Ub.createMap(),ce=Ub.createMap(),ue=Ub.createMap(),le=Ub.createMap(),de=Ub.createMap(),pe=[],fe=Ub.createMap(),_e=zn(4,"unknown"),he=zn(0,"__resolving__"),ge=qr(1,"any"),me=qr(1,"any"),ye=qr(1,"any"),be=qr(1,"error"),ve=qr(2,"unknown"),Ee=qr(32768,"undefined"),Ie=U?Ee:qr(32768,"undefined",131072),Te=qr(65536,"null"),Ce=U?Te:qr(65536,"null",131072),Be=qr(4,"string"),xe=qr(8,"number"),Se=qr(64,"bigint"),Ne=qr(512,"false"),De=qr(512,"false"),ke=qr(512,"true"),t=qr(512,"true");ke.regularType=t,ke.freshType=ke,(t.regularType=t).freshType=ke,Ne.regularType=De,Ne.freshType=Ne,(De.regularType=De).freshType=Ne;var Ae=Qr([De,t]);Qr([De,ke]),Qr([Ne,t]),Qr([Ne,ke]);var we=qr(4096,"symbol"),Ve=qr(16384,"void"),Pe=qr(131072,"never"),Le=qr(131072,"never"),Me=qr(131072,"never",524288),Fe=qr(131072,"never"),Oe=qr(67108864,"object"),Re=Pc([Be,xe,we]),He=y?Be:Re,je=Pc([xe,Se]),We=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined),Ge=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined);Ge.objectFlags|=4096;var e=zn(2048,"__type");e.members=Ub.createSymbolTable();var Ye=ii(e,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined),Je=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined);Je.instantiations=Ub.createMap();var ze=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined);ze.objectFlags|=524288;var Ue=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined),Ke=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined),Ze=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined),Xe=ei(),qe=ei();qe.constraint=Xe;var Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,ut,lt,dt,pt,ft,_t,ht,gt,mt,yt,bt,vt,Et,It,Tt,Ct,Bt,xt,St,Nt,Dt,kt,At,wt,Vt,Pt,Lt,Mt=ei(),Ft=cs("<<unresolved>>",0,ge),Ot=to(undefined,undefined,undefined,Ub.emptyArray,ge,undefined,0,!1,!1),Rt=to(undefined,undefined,undefined,Ub.emptyArray,be,undefined,0,!1,!1),Ht=to(undefined,undefined,undefined,Ub.emptyArray,ge,undefined,0,!1,!1),jt=to(undefined,undefined,undefined,Ub.emptyArray,Le,undefined,0,!1,!1),Wt=ws(Be,!0),Gt=Ub.createMap(),Yt=Ub.createMap(),Jt=0,zt=0,Ut=0,Kt=!1,Zt=xu(""),Xt=xu(0),qt=xu({negative:!1,base10Value:"0"}),Qt=[],$t=[],en=[],tn=0,nn=10,rn=[],an=[],on=[],sn=[],cn=[],un=[],ln=[],dn=[],pn=[],fn=[],_n=[],hn=[],gn=[],mn=[],yn=Ub.createDiagnosticCollection(),bn=Ub.createMultiMap();(Lt={})[Lt.None=0]="None",Lt[Lt.TypeofEQString=1]="TypeofEQString",Lt[Lt.TypeofEQNumber=2]="TypeofEQNumber",Lt[Lt.TypeofEQBigInt=4]="TypeofEQBigInt",Lt[Lt.TypeofEQBoolean=8]="TypeofEQBoolean",Lt[Lt.TypeofEQSymbol=16]="TypeofEQSymbol",Lt[Lt.TypeofEQObject=32]="TypeofEQObject",Lt[Lt.TypeofEQFunction=64]="TypeofEQFunction",Lt[Lt.TypeofEQHostObject=128]="TypeofEQHostObject",Lt[Lt.TypeofNEString=256]="TypeofNEString",Lt[Lt.TypeofNENumber=512]="TypeofNENumber",Lt[Lt.TypeofNEBigInt=1024]="TypeofNEBigInt",Lt[Lt.TypeofNEBoolean=2048]="TypeofNEBoolean",Lt[Lt.TypeofNESymbol=4096]="TypeofNESymbol",Lt[Lt.TypeofNEObject=8192]="TypeofNEObject",Lt[Lt.TypeofNEFunction=16384]="TypeofNEFunction",Lt[Lt.TypeofNEHostObject=32768]="TypeofNEHostObject",Lt[Lt.EQUndefined=65536]="EQUndefined",Lt[Lt.EQNull=131072]="EQNull",Lt[Lt.EQUndefinedOrNull=262144]="EQUndefinedOrNull",Lt[Lt.NEUndefined=524288]="NEUndefined",Lt[Lt.NENull=1048576]="NENull",Lt[Lt.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",Lt[Lt.Truthy=4194304]="Truthy",Lt[Lt.Falsy=8388608]="Falsy",Lt[Lt.All=16777215]="All",Lt[Lt.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",Lt[Lt.BaseStringFacts=12582401]="BaseStringFacts",Lt[Lt.StringStrictFacts=16317953]="StringStrictFacts",Lt[Lt.StringFacts=16776705]="StringFacts",Lt[Lt.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",Lt[Lt.EmptyStringFacts=12582401]="EmptyStringFacts",Lt[Lt.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",Lt[Lt.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",Lt[Lt.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",Lt[Lt.BaseNumberFacts=12582146]="BaseNumberFacts",Lt[Lt.NumberStrictFacts=16317698]="NumberStrictFacts",Lt[Lt.NumberFacts=16776450]="NumberFacts",Lt[Lt.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",Lt[Lt.ZeroNumberFacts=12582146]="ZeroNumberFacts",Lt[Lt.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",Lt[Lt.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",Lt[Lt.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",Lt[Lt.BaseBigIntFacts=12581636]="BaseBigIntFacts",Lt[Lt.BigIntStrictFacts=16317188]="BigIntStrictFacts",Lt[Lt.BigIntFacts=16775940]="BigIntFacts",Lt[Lt.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",Lt[Lt.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",Lt[Lt.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",Lt[Lt.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",Lt[Lt.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",Lt[Lt.BaseBooleanFacts=12580616]="BaseBooleanFacts",Lt[Lt.BooleanStrictFacts=16316168]="BooleanStrictFacts",Lt[Lt.BooleanFacts=16774920]="BooleanFacts",Lt[Lt.FalseStrictFacts=12121864]="FalseStrictFacts",Lt[Lt.FalseFacts=12580616]="FalseFacts",Lt[Lt.TrueStrictFacts=7927560]="TrueStrictFacts",Lt[Lt.TrueFacts=16774920]="TrueFacts",Lt[Lt.SymbolStrictFacts=7925520]="SymbolStrictFacts",Lt[Lt.SymbolFacts=16772880]="SymbolFacts",Lt[Lt.ObjectStrictFacts=7888800]="ObjectStrictFacts",Lt[Lt.ObjectFacts=16736160]="ObjectFacts",Lt[Lt.FunctionStrictFacts=7880640]="FunctionStrictFacts",Lt[Lt.FunctionFacts=16728e3]="FunctionFacts",Lt[Lt.UndefinedFacts=9830144]="UndefinedFacts",Lt[Lt.NullFacts=9363232]="NullFacts",Lt[Lt.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",Lt[Lt.EmptyObjectFacts=16777215]="EmptyObjectFacts";var vn,En,In,Tn,Cn,Bn,xn,Sn,Nn,Dn,kn,An,wn=Ub.createMapFromTemplate({string:1,number:2,bigint:4,"boolean":8,symbol:16,undefined:65536,object:32,"function":64}),Vn=Ub.createMapFromTemplate({string:256,number:512,bigint:1024,"boolean":2048,symbol:4096,undefined:524288,object:8192,"function":16384}),Pn=Ub.createMapFromTemplate({string:Be,number:xe,bigint:Se,"boolean":Ae,symbol:we,undefined:Ee}),Ln=Pc(Ub.arrayFrom(wn.keys(),xu)),Mn=Ub.createMap(),Fn=Ub.createMap(),On=Ub.createMap(),Rn=Ub.createMap(),Hn=Ub.createMap();(Tn={})[Tn.Type=0]="Type",Tn[Tn.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",Tn[Tn.DeclaredType=2]="DeclaredType",Tn[Tn.ResolvedReturnType=3]="ResolvedReturnType",Tn[Tn.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",Tn[Tn.EnumTagType=5]="EnumTagType",Tn[Tn.JSDocTypeReference=6]="JSDocTypeReference",(Cn={})[Cn.Normal=0]="Normal",Cn[Cn.Contextual=1]="Contextual",Cn[Cn.Inferential=2]="Inferential",Cn[Cn.SkipContextSensitive=4]="SkipContextSensitive",Cn[Cn.SkipGenericFunctions=8]="SkipGenericFunctions",Cn[Cn.IsForSignatureHelp=16]="IsForSignatureHelp",(Bn={})[Bn.None=0]="None",Bn[Bn.Signature=1]="Signature",(xn={})[xn.None=0]="None",xn[xn.NoIndexSignatures=1]="NoIndexSignatures",xn[xn.Writing=2]="Writing",xn[xn.CacheSymbol=4]="CacheSymbol",(Sn={})[Sn.None=0]="None",Sn[Sn.Bivariant=1]="Bivariant",Sn[Sn.Strict=2]="Strict",(Nn={})[Nn.IncludeReadonly=1]="IncludeReadonly",Nn[Nn.ExcludeReadonly=2]="ExcludeReadonly",Nn[Nn.IncludeOptional=4]="IncludeOptional",Nn[Nn.ExcludeOptional=8]="ExcludeOptional",(Dn={})[Dn.None=0]="None",Dn[Dn.Source=1]="Source",Dn[Dn.Target=2]="Target",Dn[Dn.Both=3]="Both",(kn={}).resolvedExports="resolvedExports",kn.resolvedMembers="resolvedMembers",(An={})[An.Local=0]="Local",An[An.Parameter=1]="Parameter";var jn=Ub.createSymbolTable();jn.set($.escapedName,$);var Wn=Ub.and(my,function(e){return!Ub.isAccessor(e)});return function(){for(var e,t=0,n=v.getSourceFiles();t<n.length;t++){var r=n[t];Ub.bindSourceFile(r,z)}Qe=Ub.createMap();for(var i=0,a=v.getSourceFiles();i<a.length;i++){if(!(r=a[i]).redirectInfo){if(!Ub.isExternalOrCommonJsModule(r)){var o=r.locals.get("globalThis");if(o)for(var s=0,c=o.declarations;s<c.length;s++){var u=c[s];yn.add(Ub.createDiagnosticForNode(u,Ub.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}er(Q,r.locals)}r.jsGlobalAugmentations&&er(Q,r.jsGlobalAugmentations),r.patternAmbientModules&&r.patternAmbientModules.length&&(et=Ub.concatenate(et,r.patternAmbientModules)),r.moduleAugmentations.length&&(e=e||[]).push(r.moduleAugmentations),r.symbol&&r.symbol.globalExports&&r.symbol.globalExports.forEach(function(e,t){Q.has(t)||Q.set(t,e)})}}if(e)for(var l=0,d=e;l<d.length;l++)for(var p=d[l],f=0,_=p;f<_.length;f++){var h=_[f];Ub.isGlobalScopeAugmentation(h.parent)&&tr(h)}(function(a,e,o){e.forEach(function(e,t){var n,r,i=a.get(t);i?Ub.forEach(i.declarations,(n=Ub.unescapeLeadingUnderscores(t),r=o,function(e){return yn.add(Ub.createDiagnosticForNode(e,r,n))})):a.set(t,e)})})(Q,jn,Ub.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),nr($).type=Ie,nr(ne).type=oc("IArguments",0,!0),nr(_e).type=be,nr(ee).type=$r(16,ee),ot=oc("Array",1,!0),nt=oc("Object",0,!0),rt=oc("Function",0,!0),it=I&&oc("CallableFunction",0,!0)||rt,at=I&&oc("NewableFunction",0,!0)||rt,ct=oc("String",0,!0),ut=oc("Number",0,!0),lt=oc("Boolean",0,!0),dt=oc("RegExp",0,!0),ft=Tc(ge),(_t=Tc(me))===We&&(_t=ii(undefined,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined));if(st=mc("ReadonlyArray",1)||ot,ht=st?yc(st,[ge]):ft,pt=mc("ThisType",1),e)for(var g=0,m=e;g<m.length;g++)for(var p=m[g],y=0,b=p;y<b.length;y++){h=b[y];Ub.isGlobalScopeAugmentation(h.parent)||tr(h)}Qe.forEach(function(e){var t,n=e.firstFile,r=e.secondFile,i=e.conflictingSymbols;i.size<8?i.forEach(function(e,t){for(var n=e.isBlockScoped,r=e.firstFileLocations,i=e.secondFileLocations,a=n?Ub.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Ub.Diagnostics.Duplicate_identifier_0,o=0,s=r;o<s.length;o++){$n(s[o],a,t,i)}for(var c=0,u=i;c<u.length;c++){$n(u[c],a,t,r)}}):(t=Ub.arrayFrom(i.keys()).join(", "),yn.add(Ub.addRelatedInfo(Ub.createDiagnosticForNode(n,Ub.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,t),Ub.createDiagnosticForNode(r,Ub.Diagnostics.Conflicts_are_in_this_file))),yn.add(Ub.addRelatedInfo(Ub.createDiagnosticForNode(r,Ub.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,t),Ub.createDiagnosticForNode(n,Ub.Diagnostics.Conflicts_are_in_this_file))))}),Qe=undefined}(),ie;function Gn(e){if(e){var t=Ub.getSourceFileOfNode(e);if(t){if(t.localJsxNamespace)return t.localJsxNamespace;var n=t.pragmas.get("jsx");if(n){var r=Ub.isArray(n)?n[0]:n;if(t.localJsxFactory=Ub.parseIsolatedEntityName(r.arguments.factory,k),t.localJsxFactory)return t.localJsxNamespace=ly(t.localJsxFactory).escapedText}}}return vn||(vn="React",z.jsxFactory?(En=Ub.parseIsolatedEntityName(z.jsxFactory,k))&&(vn=ly(En).escapedText):z.reactNamespace&&(vn=Ub.escapeLeadingUnderscores(z.reactNamespace))),vn}function Yn(e,t,n,r,i,a){var o=e?Ub.createDiagnosticForNode(e,t,n,r,i,a):Ub.createCompilerDiagnostic(t,n,r,i,a);return yn.add(o),o}function Jn(e,t,n,r,i,a,o){var s,c;s=e,c="message"in n?Ub.createDiagnosticForNode(t,n,r,i,a,o):Ub.createDiagnosticForNodeFromMessageChain(t,n),s?yn.add(c):bn.add(c.file.fileName,Qb({},c,{category:Ub.DiagnosticCategory.Suggestion}))}function zn(e,t,n){a++;var r=new i(33554432|e,t);return r.checkFlags=n||0,r}function Un(e){return 0!=(33554432&e.flags)}function Kn(e){var t=0;return 2&e&&(t|=67220415),1&e&&(t|=67220414),4&e&&(t|=0),8&e&&(t|=68008959),16&e&&(t|=67219887),32&e&&(t|=68008383),64&e&&(t|=67897736),256&e&&(t|=68008191),128&e&&(t|=68008831),512&e&&(t|=110735),8192&e&&(t|=67212223),32768&e&&(t|=67154879),65536&e&&(t|=67187647),262144&e&&(t|=67635688),524288&e&&(t|=67897832),2097152&e&&(t|=2097152),t}function Zn(e,t){t.mergeId||(t.mergeId=Xb,Xb++),rn[t.mergeId]=e}function Xn(e){var t=zn(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=Ub.cloneMap(e.members)),e.exports&&(t.exports=Ub.cloneMap(e.exports)),Zn(t,e),t}function qn(e,t,n){if(void 0===n&&(n=!1),!(e.flags&Kn(t.flags))||67108864&(t.flags|e.flags)){if(Ub.Debug.assert(t!==e),!(33554432&e.flags)){var r=Er(e);if(r===_e)return t;e=Xn(r)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&(!e.valueDeclaration||Ub.isAssignmentDeclaration(e.valueDeclaration)&&!Ub.isAssignmentDeclaration(t.valueDeclaration)||Ub.isEffectiveModuleDeclaration(e.valueDeclaration)&&!Ub.isEffectiveModuleDeclaration(t.valueDeclaration))&&(e.valueDeclaration=t.valueDeclaration),Ub.addRange(e.declarations,t.declarations),t.members&&(e.members||(e.members=Ub.createSymbolTable()),er(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Ub.createSymbolTable()),er(e.exports,t.exports,n)),n||Zn(e,t)}else{var i,a,o,s,c,u,l,d,p,f;1024&e.flags?e!==ee&&Yn(Ub.getNameOfDeclaration(t.declarations[0]),Ub.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,mi(e)):(i=!!(384&e.flags||384&t.flags),a=!!(2&e.flags||2&t.flags),o=i?Ub.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a?Ub.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Ub.Diagnostics.Duplicate_identifier_0,s=t.declarations&&Ub.getSourceFileOfNode(t.declarations[0]),c=e.declarations&&Ub.getSourceFileOfNode(e.declarations[0]),u=mi(t),s&&c&&Qe&&!i&&s!==c?(l=-1===Ub.comparePaths(s.path,c.path)?s:c,d=l===s?c:s,p=Ub.getOrUpdate(Qe,l.path+"|"+d.path,function(){return{firstFile:l,secondFile:d,conflictingSymbols:Ub.createMap()}}),_((f=Ub.getOrUpdate(p.conflictingSymbols,u,function(){return{isBlockScoped:a,firstFileLocations:[],secondFileLocations:[]}})).firstFileLocations,t),_(f.secondFileLocations,e)):(Qn(t,o,u,e),Qn(e,o,u,t)))}return e;function _(e,t){for(var n=0,r=t.declarations;n<r.length;n++){var i=r[n];Ub.pushIfUnique(e,(Ub.getExpandoInitializer(i,!1)?Ub.getNameOfExpando(i):Ub.getNameOfDeclaration(i))||i)}}}function Qn(e,t,n,r){Ub.forEach(e.declarations,function(e){$n((Ub.getExpandoInitializer(e,!1)?Ub.getNameOfExpando(e):Ub.getNameOfDeclaration(e))||e,t,n,r.declarations)})}function $n(e,t,n,r){for(var i,a,o,s,c,u,l,d=(a=t,o=n,l=(i=e)?Ub.createDiagnosticForNode(i,a,o,s,c,u):Ub.createCompilerDiagnostic(a,o,s,c,u),yn.lookup(l)||(yn.add(l),l)),p=0,f=r||Ub.emptyArray;p<f.length;p++){var _=f[p];d.relatedInformation=d.relatedInformation||[],5<=Ub.length(d.relatedInformation)||Ub.addRelatedInfo(d,Ub.length(d.relatedInformation)?Ub.createDiagnosticForNode(_,Ub.Diagnostics.and_here):Ub.createDiagnosticForNode(_,Ub.Diagnostics._0_was_also_declared_here,n))}}function er(r,e,i){void 0===i&&(i=!1),e.forEach(function(e,t){var n=r.get(t);r.set(t,n?qn(n,e,i):e)})}function tr(e){var t=e.parent;if(t.symbol.declarations[0]===t)if(Ub.isGlobalScopeAugmentation(t))er(Q,t.symbol.exports);else{var n,r=kr(e,e,4194304&e.parent.parent.flags?undefined:Ub.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!r)return;1920&(r=Vr(r)).flags?Ub.some(et,function(e){return r===e.symbol})?(n=qn(t.symbol,r,!0),(tt=tt||Ub.createMap()).set(e.text,n)):qn(r,t.symbol):Yn(e,Ub.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else Ub.Debug.assert(1<t.symbol.declarations.length)}function nr(e){if(33554432&e.flags)return e;var t=tv(e);return an[t]||(an[t]={})}function rr(e){var t=ev(e);return on[t]||(on[t]={flags:0})}function ir(e){return 285===e.kind&&!Ub.isExternalOrCommonJsModule(e)}function ar(e,t,n){if(n){var r=e.get(t);if(r){if(Ub.Debug.assert(0==(1&Ub.getCheckFlags(r)),"Should never get an instantiated symbol here."),r.flags&n)return r;if(2097152&r.flags){var i=Ir(r);if(i===_e||i.flags&n)return r}}}}function or(t,e){var n=Ub.getSourceFileOfNode(t),r=Ub.getSourceFileOfNode(e);if(n!==r){if(C&&(n.externalModuleIndicator||r.externalModuleIndicator)||!z.outFile&&!z.out||rp(e)||4194304&t.flags)return!0;if(s(e,t))return!0;var i=v.getSourceFiles();return i.indexOf(n)<=i.indexOf(r)}if(t.pos<=e.pos){if(187!==t.kind)return 238===t.kind?!function(e,t){var n=Ub.getEnclosingBlockScopeContainer(e);switch(e.parent.parent.kind){case 220:case 226:case 228:if(dr(t,e,n))return!0}var r=e.parent.parent;return Ub.isForInOrOfStatement(r)&&dr(t,r.expression,n)}(t,e):Ub.isClassDeclaration(t)?!Ub.findAncestor(e,function(e){return Ub.isComputedPropertyName(e)&&e.parent.parent===t}):!Ub.isPropertyDeclaration(t)||!function(t,e){if(e.end>t.end)return!1;return Ub.findAncestor(e,function(e){if(e===t)return"quit";switch(e.kind){case 198:case 155:return!0;case 219:switch(e.parent.kind){case 159:case 157:case 160:return!0;default:return!1}default:return!1}})===undefined}(t,e);var a=Ub.getAncestor(e,187);return a?Ub.findAncestor(a,Ub.isBindingElement)!==Ub.findAncestor(t,Ub.isBindingElement)||t.pos<a.pos:or(Ub.getAncestor(t,238),e)}if(258===e.parent.kind||255===e.parent.kind&&e.parent.isExportEquals)return!0;if(255===e.kind&&e.isExportEquals)return!0;var o=Ub.getEnclosingBlockScopeContainer(t);return!!(2097152&e.flags)||rp(e)||s(e,t,o);function s(t,n,r){return!!Ub.findAncestor(t,function(e){if(e===r)return"quit";if(Ub.isFunctionLike(e))return!0;if(e.parent&&155===e.parent.kind&&e.parent.initializer===e)if(Ub.hasModifier(e.parent,32)){if(157===n.kind)return!0}else if(!(155===n.kind&&!Ub.hasModifier(n,32))||Ub.getContainingClass(t)!==Ub.getContainingClass(n))return!0;return!1})}}function sr(e,t,n,r,i,a,o,s){return void 0===o&&(o=!1),cr(e,t,n,r,i,a,o,ar,s)}function cr(e,t,n,r,i,a,o,s,c){var u,l,d,p,f,_,h,g,m,y,b,v,E,I,T=e,C=!1,B=e,x=!1;e:for(;e;){if(e.locals&&!ir(e)&&(u=s(e.locals,t,n))){var S,N=!0;if(Ub.isFunctionLike(e)&&l&&l!==e.body?(n&u.flags&67897832&&297!==l.kind&&(N=!!(262144&u.flags)&&(l===e.type||152===l.kind||151===l.kind)),n&u.flags&3&&(S=e,z.target&&2<=z.target&&Ub.isParameter(l)&&S.body&&u.valueDeclaration.pos>=S.body.pos&&u.valueDeclaration.end<=S.body.end?N=!1:1&u.flags&&(N=152===l.kind||l===e.type&&!!Ub.findAncestor(u.valueDeclaration,Ub.isParameter)))):176===e.kind&&(N=l===e.trueType),N)break e;u=undefined}switch(C=C||function(e,t){if(198!==e.kind&&197!==e.kind)return Ub.isTypeQueryNode(e)||(Ub.isFunctionLikeDeclaration(e)||155===e.kind&&!Ub.hasModifier(e,32))&&(!t||t!==e.name);if(t&&t===e.name)return!1;if(e.asteriskToken||Ub.hasModifier(e,256))return!0;return!Ub.getImmediatelyInvokedFunctionExpression(e)}(e,l),e.kind){case 285:if(!Ub.isExternalOrCommonJsModule(e))break;x=!0;case 245:var D=Gr(e).exports;if(285===e.kind||Ub.isAmbientModule(e)){if(u=D.get("default")){var k=Ub.getLocalSymbolForExportDefault(u);if(k&&u.flags&n&&k.escapedName===t)break e;u=undefined}var A=D.get(t);if(A&&2097152===A.flags&&Ub.getDeclarationOfKind(A,258))break}if("default"!==t&&(u=s(D,t,2623475&n))){if(!Ub.isSourceFile(e)||!e.commonJsModuleIndicator||u.declarations.some(Ub.isJSDocTypeAlias))break e;u=undefined}break;case 244:if(u=s(Gr(e).exports,t,8&n))break e;break;case 155:Ub.hasModifier(e,32)||(h=Zr(e.parent))&&h.locals&&s(h.locals,t,67220415&n)&&(p=e);break;case 241:case 210:case 242:if(u=s(Gr(e).members||M,t,67897832&n)){if(!function(e,t){for(var n=0,r=e.declarations;n<r.length;n++){var i=r[n];if(151===i.kind)if((Ub.isJSDocTemplateTag(i.parent)?Ub.getJSDocHost(i.parent):i.parent)===t)return!(Ub.isJSDocTemplateTag(i.parent)&&Ub.find(i.parent.parent.tags,Ub.isJSDocTypeAlias))}return!1}(u,e)){u=undefined;break}if(l&&Ub.hasModifier(l,32))return Yn(B,Ub.Diagnostics.Static_members_cannot_reference_class_type_parameters),undefined;break e}if(210===e.kind&&32&n){var w=e.name;if(w&&t===w.escapedText){u=e.symbol;break e}}break;case 212:if(l===e.expression&&87===e.parent.token){var V=e.parent.parent;if(Ub.isClassLike(V)&&(u=s(Gr(V).members,t,67897832&n)))return r&&Yn(B,Ub.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters),undefined}break;case 150:if(_=e.parent.parent,(Ub.isClassLike(_)||242===_.kind)&&(u=s(Gr(_).members,t,67897832&n)))return Yn(B,Ub.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type),undefined;break;case 198:if(2<=z.target)break;case 157:case 158:case 159:case 160:case 240:if(3&n&&"arguments"===t){u=ne;break e}break;case 197:if(3&n&&"arguments"===t){u=ne;break e}if(16&n){var P=e.name;if(P&&t===P.escapedText){u=e.symbol;break e}}break;case 153:e.parent&&152===e.parent.kind&&(e=e.parent),e.parent&&(Ub.isClassElement(e.parent)||241===e.parent.kind)&&(e=e.parent);break;case 310:case 303:e=Ub.getJSDocHost(e);break;case 152:l&&l===e.initializer&&(f=e);break;case 187:l&&l===e.initializer&&152===(I=Ub.getRootDeclaration(e)).kind&&(f=e)}!function(e){switch(e.kind){case 240:case 241:case 242:case 244:case 243:case 245:return!0;default:return!1}}(e)||(d=e),e=(l=e).parent}if(!a||!u||d&&u===d.symbol||(u.isReferenced|=n),!u){if(l&&(Ub.Debug.assert(285===l.kind),l.commonJsModuleIndicator&&"exports"===t&&n&l.symbol.flags))return l.symbol;o||(u=s(Q,t,n))}if(!u&&T&&Ub.isInJSFile(T)&&T.parent&&Ub.isRequireCall(T.parent,!1))return re;if(!u)return r&&(B&&(function(e,t,n){if(!Ub.isIdentifier(e)||e.escapedText!==t||Ny(e)||rp(e))return!1;var r=Ub.getThisContainer(e,!1),i=r;for(;i;){if(Ub.isClassLike(i.parent)){var a=Gr(i.parent);if(!a)break;if(Ko(pa(a),t))return Yn(e,Ub.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ur(n),mi(a)),!0;if(i===r&&!Ub.hasModifier(i,32))if(Ko(La(a).thisType,t))return Yn(e,Ub.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ur(n)),!0}i=i.parent}return!1}(B,t,i)||lr(B)||function(e,t,n){var r=1920|(Ub.isInJSFile(e)?67220415:0);if(n===r){var i=Er(sr(e,t,67897832&~r,undefined,undefined,!1)),a=e.parent;if(i){if(Ub.isQualifiedName(a)){Ub.Debug.assert(a.left===e,"Should only be resolving left side of qualified name as a namespace");var o=a.right.escapedText;if(Ko(La(i),o))return Yn(a,Ub.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ub.unescapeLeadingUnderscores(t),Ub.unescapeLeadingUnderscores(o)),!0}return Yn(e,Ub.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ub.unescapeLeadingUnderscores(t)),!0}}return!1}(B,t,n)||function(e,t,n){if(67220415&n){if("any"===t||"string"===t||"number"===t||"boolean"===t||"never"===t)return Yn(e,Ub.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ub.unescapeLeadingUnderscores(t)),!0;var r=Er(sr(e,t,788544,undefined,undefined,!1));if(r&&!(1024&r.flags)){var i=function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?Ub.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:Ub.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return Yn(e,i,Ub.unescapeLeadingUnderscores(t)),!0}}return!1}(B,t,n)||function(e,t,n){if(111127&n){if(Er(sr(e,t,1024,undefined,undefined,!1)))return Yn(e,Ub.Diagnostics.Cannot_use_namespace_0_as_a_value,Ub.unescapeLeadingUnderscores(t)),!0}else if(788544&n){if(Er(sr(e,t,1536,undefined,undefined,!1)))return Yn(e,Ub.Diagnostics.Cannot_use_namespace_0_as_a_type,Ub.unescapeLeadingUnderscores(t)),!0}return!1}(B,t,n)||function(e,t,n){if(67897448&n){var r=Er(sr(e,t,111127,undefined,undefined,!1));if(r&&!(1920&r.flags))return Yn(e,Ub.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,Ub.unescapeLeadingUnderscores(t)),!0}return!1}(B,t,n))||(y=void 0,c&&tn<nn&&(y=N_(T,t,n))&&(g=mi(y),m=Yn(B,c,ur(i),g),y.valueDeclaration&&Ub.addRelatedInfo(m,Ub.createDiagnosticForNode(y.valueDeclaration,Ub.Diagnostics._0_is_declared_here,g))),y||Yn(B,r,ur(i)),tn++)),undefined;if(r){if(p){var L=p.name;return Yn(B,Ub.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ub.declarationNameToString(L),ur(i)),undefined}B&&(2&n||(32&n||384&n)&&67220415==(67220415&n))&&(2&(b=Ur(u)).flags||32&b.flags||384&b.flags)&&function(e,t){Ub.Debug.assert(!!(2&e.flags||32&e.flags||384&e.flags));var n=Ub.find(e.declarations,function(e){return Ub.isBlockOrCatchScoped(e)||Ub.isClassLike(e)||244===e.kind||Ub.isInJSFile(e)&&!!Ub.getJSDocEnumTag(e)});if(n===undefined)return Ub.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");{var r,i;4194304&n.flags||or(n,t)||(r=void 0,i=Ub.declarationNameToString(Ub.getNameOfDeclaration(n)),2&e.flags?r=Yn(t,Ub.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?r=Yn(t,Ub.Diagnostics.Class_0_used_before_its_declaration,i):256&e.flags?r=Yn(t,Ub.Diagnostics.Enum_0_used_before_its_declaration,i):(Ub.Debug.assert(!!(128&e.flags)),z.preserveConstEnums&&(r=Yn(t,Ub.Diagnostics.Class_0_used_before_its_declaration,i))),r&&Ub.addRelatedInfo(r,Ub.createDiagnosticForNode(n,Ub.Diagnostics._0_is_declared_here,i)))}}(b,B),!u||!x||67220415!=(67220415&n)||2097152&T.flags||(v=Wr(u),Ub.length(v.declarations)&&Ub.every(v.declarations,function(e){return Ub.isNamespaceExportDeclaration(e)||Ub.isSourceFile(e)&&!!e.symbol.globalExports})&&Jn(!z.allowUmdGlobalAccess,B,Ub.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ub.unescapeLeadingUnderscores(t))),u&&f&&!C&&67220415==(67220415&n)&&(E=Wr(Qa(u)),I=Ub.getRootDeclaration(f),E===Gr(f)?Yn(B,Ub.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,Ub.declarationNameToString(f.name)):E.valueDeclaration&&E.valueDeclaration.pos>f.pos&&I.parent.locals&&s(I.parent.locals,E.escapedName,n)===E&&Yn(B,Ub.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,Ub.declarationNameToString(f.name),Ub.declarationNameToString(B)))}return u}function ur(e){return Ub.isString(e)?Ub.unescapeLeadingUnderscores(e):Ub.declarationNameToString(e)}function lr(e){var t=function n(e){switch(e.kind){case 73:case 190:return e.parent?n(e.parent):undefined;case 212:if(Ub.isEntityNameExpression(e.expression))return e.expression;default:return undefined}}(e);return t&&Sr(t,64,!0)&&(Yn(e,Ub.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,Ub.getTextOfNode(t)),1)}function dr(e,t,n){return!!t&&!!Ub.findAncestor(e,function(e){return e===n||Ub.isFunctionLike(e)?"quit":e===t})}function pr(e){switch(e.kind){case 249:return e;case 251:return e.parent;case 252:return e.parent.parent;case 254:return e.parent.parent.parent;default:return undefined}}function fr(e){return Ub.find(e.declarations,Ub.isAliasSymbolDeclaration)}function _r(e,t,n){var r=e.exports.get("export=");return r?Ko(pa(r),t):Er(e.exports.get(t),n)}function hr(e){return Ub.isExportAssignment(e)&&!e.isExportEquals||Ub.hasModifier(e,512)||Ub.isExportSpecifier(e)}function gr(e,t,n){if(!h)return!1;if(e&&!e.isDeclarationFile)return Ub.isSourceFileJS(e)?!e.externalModuleIndicator&&!_r(t,Ub.escapeLeadingUnderscores("__esModule"),n):Lr(t);var r=_r(t,"default",!0);return(!r||!Ub.some(r.declarations,hr))&&!_r(t,Ub.escapeLeadingUnderscores("__esModule"),n)}function mr(e,t,n){void 0===n&&(n=!1);var r=Dr(e,e.moduleSpecifier),i=Pr(r,e.moduleSpecifier,n);if(i){var a=t.propertyName||t.name;if(a.escapedText){if(Ub.isShorthandAmbientModuleSymbol(r))return r;var o=void 0,o=r&&r.exports&&r.exports.get("export=")?Ko(pa(i),a.escapedText):function(e,t){if(3&e.flags){var n=e.valueDeclaration.type;if(n)return Er(Ko(Du(n),t))}}(i,a.escapedText);o=Er(o,n);var s=function(e,t,n){if(1536&e.flags)return Er(Or(e).get(t),n)}(i,a.escapedText,n);!s&&h&&"default"===a.escapedText&&(s=Vr(r,n)||Er(r,n));var c,u,l,d,p,f=s&&o&&s!==o?function(e,t){if(e===_e&&t===_e)return _e;if(67899368&e.flags)return e;var n=zn(e.flags|t.flags,e.escapedName);return n.declarations=Ub.deduplicate(Ub.concatenate(e.declarations,t.declarations),Ub.equateValues),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=t.members),e.exports&&(n.exports=e.exports),n}(o,s):s||o;return f||(c=xr(r,e),u=Ub.declarationNameToString(a),(l=D_(a,i))!==undefined?(d=mi(l),p=Yn(a,Ub.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,c,u,d),l.valueDeclaration&&Ub.addRelatedInfo(p,Ub.createDiagnosticForNode(l.valueDeclaration,Ub.Diagnostics._0_is_declared_here,d))):Yn(a,Ub.Diagnostics.Module_0_has_no_exported_member_1,c,u)),f}}}function yr(e,t,n){return e.parent.parent.moduleSpecifier?mr(e.parent.parent,e,n):Sr(e.propertyName||e.name,t,!1,n)}function br(e,t){switch(void 0===t&&(t=!1),e.kind){case 249:return u=t,260===(c=e).moduleReference.kind?Vr(Dr(c,Ub.getExternalModuleImportEqualsDeclarationExpression(c))):Br(c.moduleReference,u);case 251:return function(e,t){var n=Dr(e,e.parent.moduleSpecifier);if(n){var r,i,a,o=void 0,o=Ub.isShorthandAmbientModuleSymbol(n)?n:_r(n,"default",t),s=gr(Ub.find(n.declarations,Ub.isSourceFile),n,t);if(o||s){if(s)return Vr(n,t)||Er(n,t)}else Lr(n)?(r=C>=Ub.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",i=n.exports.get("export=").valueDeclaration,a=Yn(e.name,Ub.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,mi(n),r),Ub.addRelatedInfo(a,Ub.createDiagnosticForNode(i,Ub.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,r))):Yn(e.name,Ub.Diagnostics.Module_0_has_no_default_export,mi(n));return o}}(e,t);case 252:return o=t,s=(a=e).parent.parent.moduleSpecifier,Pr(Dr(a,s),s,o);case 254:return i=t,mr((r=e).parent.parent.parent,r,i);case 258:return yr(e,68009983,t);case 255:case 205:return function(e,t){var n=Ub.isExportAssignment(e)?e.expression:e.right;if(Ub.isClassExpression(n))return Pg(n).symbol;var r=Sr(n,68009983,!0,t);return r||(Pg(n),rr(n).resolvedSymbol)}(e,t);case 248:return n=t,Vr(e.parent.symbol,n);default:return Ub.Debug.fail()}var n,r,i,a,o,s,c,u}function vr(e,t){return void 0===t&&(t=68009983),e&&(2097152==(e.flags&(2097152|t))||2097152&e.flags&&67108864&e.flags)}function Er(e,t){return!t&&vr(e)?Ir(e):e}function Ir(e){Ub.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=nr(e);if(t.target)t.target===he&&(t.target=_e);else{t.target=he;var n=fr(e);if(!n)return Ub.Debug.fail();var r=br(n);t.target===he?t.target=r||_e:Yn(n,Ub.Diagnostics.Circular_definition_of_import_alias_0,mi(e))}return t.target}function Tr(e){var t=Gr(e),n=Ir(t);n&&(n===_e||67220415&n.flags&&!Xy(n))&&Cr(t)}function Cr(e){var t=nr(e);if(!t.referenced){t.referenced=!0;var n=fr(e);if(!n)return Ub.Debug.fail();255===n.kind?vg(n.expression):258===n.kind?vg(n.propertyName||n.name):Ub.isInternalModuleImportEqualsDeclaration(n)&&vg(n.moduleReference)}}function Br(e,t){return 73===e.kind&&Ub.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),73===e.kind||149===e.parent.kind?Sr(e,1920,!1,t):(Ub.Debug.assert(249===e.parent.kind),Sr(e,68009983,!1,t))}function xr(e,t){return e.parent?xr(e.parent,t)+"."+mi(e):mi(e,t,undefined,20)}function Sr(e,t,n,r,i){if(Ub.nodeIsMissing(e))return undefined;var a=1920|(Ub.isInJSFile(e)?67220415&t:0);if(73===e.kind){var o,s=t===a?Ub.Diagnostics.Cannot_find_namespace_0:tp(ly(e)),c=Ub.isInJSFile(e)?function(e,t){if(Qs(e.parent)){var n=function(e){if(Ub.findAncestor(e,function(e){return Ub.isJSDocNode(e)||2097152&e.flags?Ub.isJSDocTypeAlias(e):"quit"}))return;var t=Ub.getJSDocHost(e);if(Ub.isExpressionStatement(t)&&Ub.isBinaryExpression(t.expression)&&3===Ub.getAssignmentDeclarationKind(t.expression)){if(r=Gr(t.expression.left))return Nr(r)}if((Ub.isObjectLiteralMethod(t)||Ub.isPropertyAssignment(t))&&Ub.isBinaryExpression(t.parent.parent)&&6===Ub.getAssignmentDeclarationKind(t.parent.parent)){if(r=Gr(t.parent.parent.left))return Nr(r)}var n=Ub.getHostSignatureFromJSDocHost(t);if(n){var r;return(r=Gr(n))&&r.valueDeclaration}}(e.parent);if(n)return sr(n,e.escapedText,t,undefined,e,!0)}}(e,t):undefined;if(!(o=sr(i||e,e.escapedText,t,n||c?undefined:s,e,!0)))return c}else{if(149!==e.kind&&190!==e.kind)throw Ub.Debug.assertNever(e,"Unknown entity name kind.");var u,l,d,p=149===e.kind?e.left:e.expression,f=149===e.kind?e.right:e.name,_=Sr(p,a,n,!1,i);if(!_||Ub.nodeIsMissing(f))return undefined;if(_===_e)return _;if(Ub.isInJSFile(e)&&_.valueDeclaration&&Ub.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&xh(_.valueDeclaration.initializer)&&(!(l=Dr(u=_.valueDeclaration.initializer.arguments[0],u))||(d=Vr(l))&&(_=d)),!(o=ar(Or(_),f.escapedText,t)))return n||Yn(f,Ub.Diagnostics.Namespace_0_has_no_exported_member_1,xr(_),Ub.declarationNameToString(f)),undefined}return Ub.Debug.assert(0==(1&Ub.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&t||r?o:Ir(o)}function Nr(e){var t=e.parent.valueDeclaration;return t?(Ub.isAssignmentDeclaration(t)?Ub.getAssignedExpandoInitializer(t):Ub.hasOnlyExpressionInitializer(t)?Ub.getDeclaredExpandoInitializer(t):undefined)||t:undefined}function Dr(e,t,n){return kr(e,t,n?undefined:Ub.Diagnostics.Cannot_find_module_0)}function kr(e,t,n,r){return void 0===r&&(r=!1),Ub.isStringLiteralLike(t)?Ar(e,t.text,n,t,r):undefined}function Ar(e,t,n,r,i){if(void 0===i&&(i=!1),t!==undefined){Ub.startsWith(t,"@types/")&&Yn(r,Ub.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ub.removePrefix(t,"@types/"),t);var a=as(t,!0);if(a)return a;var o,s=Ub.getSourceFileOfNode(e),c=Ub.getResolvedModule(s,t),u=c&&Ub.getResolutionDiagnostic(z,c),l=c&&!u&&v.getSourceFile(c.resolvedFileName);if(l)return l.symbol?(c.isExternalLibraryImport&&!Ub.resolutionExtensionIsTSOrJson(c.extension)&&wr(!1,r,c,t),Wr(l.symbol)):(n&&Yn(r,Ub.Diagnostics.File_0_is_not_a_module,l.fileName),undefined);if(et){var d=Ub.findBestPatternMatch(et,function(e){return e.pattern},t);if(d){var p=tt&&tt.get(t);return p?Wr(p):Wr(d.symbol)}}if(c&&!Ub.resolutionExtensionIsTSOrJson(c.extension)&&u===undefined||u===Ub.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)return i?Yn(r,Ub.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,c.resolvedFileName):wr(K&&!!n,r,c,t),undefined;if(n){if(c){var f=v.getProjectReferenceRedirect(c.resolvedFileName);if(f)return Yn(r,Ub.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,c.resolvedFileName),undefined}u?Yn(r,u,t,c.resolvedFileName):(o=Ub.tryExtractTSExtension(t))?Yn(r,Ub.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,o,Ub.removeExtension(t,o)):!z.resolveJsonModule&&Ub.fileExtensionIs(t,".json")&&Ub.getEmitModuleResolutionKind(z)===Ub.ModuleResolutionKind.NodeJs&&Ub.hasJsonModuleEmitEnabled(z)?Yn(r,Ub.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t):Yn(r,n,t)}return undefined}}function wr(e,t,n,r){var i,a=n.packageId,o=n.resolvedFileName,s=!Ub.isExternalModuleNameRelative(r)&&a?(i=a.name,u().has(Ub.getTypesPackageName(i))?Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,a.name,Ub.mangleScopedPackageName(a.name)):Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,Ub.mangleScopedPackageName(a.name))):undefined;Jn(e,t,Ub.chainDiagnosticMessages(s,Ub.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,r,o))}function Vr(e,t){return e?Wr(function(e,t){if(!e||e===_e||e===t||1===t.exports.size||2097152&e.flags)return e;var n=Xn(e);n.exports===undefined&&(n.flags=512|n.flags,n.exports=Ub.createSymbolTable());return t.exports.forEach(function(e,t){"export="!==t&&n.exports.set(t,n.exports.has(t)?qn(n.exports.get(t),e):e)}),n}(Er(e.exports.get("export="),t),e))||e:undefined}function Pr(e,t,n){var r=Vr(e,n);if(!n&&r){if(!(1539&r.flags||Ub.getDeclarationOfKind(r,285))){var i=C>=Ub.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Yn(t,Ub.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,i),r}if(z.esModuleInterop){var a=t.parent;if(Ub.isImportDeclaration(a)&&Ub.getNamespaceDeclarationNode(a)||Ub.isImportCall(a)){var o=pa(r),s=Zo(o,0);if(s&&s.length||(s=Zo(o,1)),s&&s.length){var c=Bh(o,r,e),u=zn(r.flags,r.escapedName);u.declarations=r.declarations?r.declarations.slice():[],u.parent=r.parent,u.target=r,u.originatingImport=a,r.valueDeclaration&&(u.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),r.members&&(u.members=Ub.cloneMap(r.members)),r.exports&&(u.exports=Ub.cloneMap(r.exports));var l=xo(c);return u.type=ii(u,l.members,Ub.emptyArray,Ub.emptyArray,l.stringIndexInfo,l.numberIndexInfo),u}}}}return r}function Lr(e){return e.exports.get("export=")!==undefined}function Mr(e){return rs(Rr(e))}function Fr(e,t){var n=Rr(t);if(n)return n.get(e)}function Or(e){return 32&e.flags?Xa(e,"resolvedExports"):1536&e.flags?Rr(e):e.exports||M}function Rr(e){var t=nr(e);return t.resolvedExports||(t.resolvedExports=jr(e))}function Hr(i,e,a,o){e&&e.forEach(function(e,t){var n,r;"default"!==t&&((n=i.get(t))?a&&o&&n&&Er(n)!==Er(e)&&((r=a.get(t)).exportsWithDuplicate?r.exportsWithDuplicate.push(o):r.exportsWithDuplicate=[o]):(i.set(t,e),a&&o&&a.set(t,{specifierText:Ub.getTextOfNode(o.moduleSpecifier)})))})}function jr(e){var l=[];return function d(e){if(!(e&&e.exports&&Ub.pushIfUnique(l,e)))return;var o=Ub.cloneMap(e.exports);var t=e.exports.get("__export");if(t){for(var n=Ub.createSymbolTable(),s=Ub.createMap(),r=0,i=t.declarations;r<i.length;r++){var a=i[r],c=Dr(a,a.moduleSpecifier),u=d(c);Hr(n,u,s,a)}s.forEach(function(e,t){var n=e.exportsWithDuplicate;if("export="!==t&&n&&n.length&&!o.has(t))for(var r=0,i=n;r<i.length;r++){var a=i[r];yn.add(Ub.createDiagnosticForNode(a,Ub.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(t).specifierText,Ub.unescapeLeadingUnderscores(t)))}}),Hr(o,n)}return o}(e=Vr(e))||M}function Wr(e){var t;return e&&e.mergeId&&(t=rn[e.mergeId])?t:e}function Gr(e){return Wr(e.symbol&&Qa(e.symbol))}function Yr(e){return Wr(e.parent&&Qa(e.parent))}function Jr(t,e){var n=Yr(t);if(n){var r=Ub.mapDefined(n.declarations,function(e){var t=pi(e);return Er(t&&t.exports&&t.exports.get("export="))===Er(n)?t:undefined}),i=e&&function(e,t){var n,r=Ub.getSourceFileOfNode(t),i=""+ev(r),a=nr(e);if(a.extendedContainersByFile&&(n=a.extendedContainersByFile.get(i)))return n;if(r&&r.imports){for(var o=0,s=r.imports;o<s.length;o++){var c,u=s[o];Ub.nodeIsSynthesized(u)||(c=Dr(t,u,!0))&&zr(c,e)&&(n=Ub.append(n,c))}if(Ub.length(n))return(a.extendedContainersByFile||(a.extendedContainersByFile=Ub.createMap())).set(i,n),n}if(a.extendedContainers)return a.extendedContainers;for(var l=0,d=v.getSourceFiles();l<d.length;l++){var p,f=d[l];Ub.isExternalModule(f)&&(zr(p=Gr(f),e)&&(n=Ub.append(n,p)))}return a.extendedContainers=n||Ub.emptyArray}(t,e);if(e&&si(n,e,1920,!1))return Ub.concatenate(Ub.concatenate([n],r),i);var a=Ub.append(r,n);return Ub.concatenate(a,i)}var o=Ub.mapDefined(t.declarations,function(e){return!Ub.isAmbientModule(e)&&e.parent&&_i(e.parent)?Gr(e.parent):undefined});return Ub.length(o)?Ub.mapDefined(o,function(e){return zr(e,t)?e:undefined}):undefined}function zr(e,t){if(e===Yr(t))return t;var n=Or(e),r=n.get(t.escapedName);return r&&i(r)?r:Ub.forEachEntry(n,function(e){if(i(e))return e});function i(e){return(e===t||Er(e)===t||Er(e)===Er(t))&&e}}function Ur(e){return Wr(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Kr(e){return 67220415&e.flags||2097152&e.flags&&67220415&Ir(e).flags}function Zr(e){for(var t=0,n=e.members;t<n.length;t++){var r=n[t];if(158===r.kind&&Ub.nodeIsPresent(r.body))return r}}function Xr(e){var t=new n(ie,e);return r++,t.id=r,t}function qr(e,t,n){void 0===n&&(n=0);var r=Xr(e);return r.intrinsicName=t,r.objectFlags=n,r}function Qr(e){var t=Pc(e);return t.flags|=16,t.intrinsicName="boolean",t}function $r(e,t){var n=Xr(524288);return n.objectFlags=e,n.symbol=t,n.members=undefined,n.properties=undefined,n.callSignatures=undefined,n.constructSignatures=undefined,n.stringIndexInfo=undefined,n.numberIndexInfo=undefined,n}function ei(e){var t=Xr(262144);return e&&(t.symbol=e),t}function ti(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function ni(e){var n;return e.forEach(function(e,t){!ti(t)&&Kr(e)&&(n=n||[]).push(e)}),n||Ub.emptyArray}function ri(e,t,n,r,i,a){return e.members=t,e.properties=t===M?Ub.emptyArray:ni(t),e.callSignatures=n,e.constructSignatures=r,e.stringIndexInfo=i,e.numberIndexInfo=a,e}function ii(e,t,n,r,i,a){return ri($r(16,e),t,n,r,i,a)}function ai(e,t){for(var n,r=e;r;r=r.parent){if(r.locals&&!ir(r)&&(n=t(r.locals)))return n;switch(r.kind){case 285:if(!Ub.isExternalOrCommonJsModule(r))break;case 245:if(n=t(Gr(r).exports))return n}}return t(Q)}function oi(e){return 67220415===e?67220415:1920}function si(a,o,s,c,n){if(void 0===n&&(n=Ub.createMap()),!a||function(e){if(e.declarations&&e.declarations.length){for(var t=0,n=e.declarations;t<n.length;t++){switch(n[t].kind){case 155:case 157:case 159:case 160:continue;default:return!1}}return!0}return!1}(a))return undefined;var e=""+tv(a),r=n.get(e);return r||n.set(e,r=[]),ai(o,u);function u(e,t){if(!Ub.pushIfUnique(r,e))return undefined;var n=function(e,i){if(d(e.get(a.escapedName),undefined,i))return[a];return Ub.forEachEntry(e,function(e){if(2097152&e.flags&&"export="!==e.escapedName&&"default"!==e.escapedName&&!(Ub.isUMDExportSymbol(e)&&o&&Ub.isExternalModule(Ub.getSourceFileOfNode(o)))&&(!c||Ub.some(e.declarations,Ub.isExternalModuleImportEqualsDeclaration))&&(i||!Ub.getDeclarationOfKind(e,258))){var t=Ir(e);if(d(e,t,i))return[e];var n=Or(t),r=n&&u(n,!0);if(r&&l(e,oi(s)))return[e].concat(r)}if(e.escapedName===a.escapedName&&e.exportSymbol&&d(Wr(e.exportSymbol),undefined,i))return[a]})}(e,t);return r.pop(),n}function l(e,t){return!ci(e,o,t)||!!si(e.parent,o,oi(t),c,n)}function d(e,t,n){return a===(t||e)&&!Ub.some(e.declarations,_i)&&(n||l(e,s))}}function ci(n,e,r){var i=!1;return ai(e,function(e){var t=Wr(e.get(n.escapedName));return!!t&&(t===n||!!((t=2097152&t.flags&&!Ub.getDeclarationOfKind(t,258)?Ir(t):t).flags&r)&&(i=!0))}),i}function ui(e,t){return 0===di(e,t,67897832,!1).accessibility}function li(e,t){return 0===di(e,t,67220415,!1).accessibility}function di(e,t,n,r){if(e&&t){var i=function _(e,t,n,r,i){if(Ub.length(e)){for(var a,o=0,s=e;o<s.length;o++){var c=s[o],u=si(c,t,r,!1);if(u){a=c;var l=hi(u[0],i);if(l)return l}else if(Ub.some(c.declarations,_i))return{accessibility:0};var d=Jr(c,t),p=Ub.first(c.declarations);!Ub.length(d)&&67220415&r&&p&&Ub.isObjectLiteralExpression(p)&&p.parent&&Ub.isVariableDeclaration(p.parent)&&p===p.parent.initializer&&(d=[Gr(p.parent)]);var f=_(d,t,n,n===c?oi(r):r,i);if(f)return f}return a?{accessibility:1,errorSymbolName:mi(n,t,r),errorModuleName:a!==n?mi(a,t,1920):undefined}:void 0}}([e],t,e,n,r);if(i)return i;var a=Ub.forEach(e.declarations,pi);if(a)if(a!==pi(t))return{accessibility:2,errorSymbolName:mi(e,t,n),errorModuleName:mi(a)};return{accessibility:1,errorSymbolName:mi(e,t,n)}}return{accessibility:0}}function pi(e){var t=Ub.findAncestor(e,fi);return t&&Gr(t)}function fi(e){return Ub.isAmbientModule(e)||285===e.kind&&Ub.isExternalOrCommonJsModule(e)}function _i(e){return Ub.isModuleWithStringLiteralName(e)||285===e.kind&&Ub.isExternalOrCommonJsModule(e)}function hi(e,n){var r;return Ub.every(e.declarations,function(e){if(Ni(e))return!0;var t=pr(e);{if(t&&!Ub.hasModifier(t,1)&&Ni(t.parent))return i(e,t);if(Ub.isVariableDeclaration(e)&&Ub.isVariableStatement(e.parent.parent)&&!Ub.hasModifier(e.parent.parent,1)&&Ni(e.parent.parent.parent))return i(e,e.parent.parent);if(Ub.isLateVisibilityPaintedStatement(e)&&!Ub.hasModifier(e,1)&&Ni(e.parent))return i(e,e)}return!1})?{accessibility:0,aliasesToMakeVisible:r}:undefined;function i(e,t){return n&&(rr(e).isVisible=!0,r=Ub.appendIfUnique(r,t)),!0}}function gi(e,t){var n=168===e.parent.kind||Ub.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)||150===e.parent.kind?68268991:149===e.kind||190===e.kind||249===e.parent.kind?1920:67897832,r=ly(e),i=sr(t,r.escapedText,n,undefined,undefined,!1);return i&&hi(i,!0)||{accessibility:1,errorSymbolName:Ub.getTextOfNode(r),errorNode:r}}function mi(i,a,o,e,t){void 0===e&&(e=4);var s=70221824;2&e&&(s|=128),1&e&&(s|=512),8&e&&(s|=16384),16&e&&(s|=134217728);var c=4&e?b.symbolToExpression:b.symbolToEntityName;return t?n(t).getText():Ub.usingSingleLineStringWriter(n);function n(e){var t=c(i,o,a,s),n=Ub.createPrinter({removeComments:!0}),r=a&&Ub.getSourceFileOfNode(a);return n.writeNode(4,t,r,e),e}}function yi(a,o,s,c,e){return void 0===s&&(s=0),e?t(e).getText():Ub.usingSingleLineStringWriter(t);function t(e){var t=262144&s?1===c?167:166:1===c?162:161,n=b.signatureToSignatureDeclaration(a,t,o,70222336|Ei(s)),r=Ub.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),i=o&&Ub.getSourceFileOfNode(o);return r.writeNode(4,n,i,Ub.getTrailingSemicolonOmittingWriter(e)),e}}function bi(e,t,n,r){void 0===n&&(n=1064960),void 0===r&&(r=Ub.createTextWriter(""));var i=z.noErrorTruncation||1&n,a=b.typeToTypeNode(e,t,70221824|Ei(n)|(i?1:0),r);if(a===undefined)return Ub.Debug.fail("should always get typenode");var o=Ub.createPrinter({removeComments:!0}),s=t&&Ub.getSourceFileOfNode(t);o.writeNode(4,a,s,r);var c=r.getText(),u=i?undefined:2*Ub.defaultMaximumTruncationLength;return u&&c&&c.length>=u?c.substr(0,u-"...".length)+"...":c}function vi(e,t){var n=bi(e),r=bi(t);return n===r&&(n=bi(e,undefined,64),r=bi(t,undefined,64)),[n,r]}function Ei(e){return void 0===e&&(e=0),9469291&e}function Ii(i,a,o,e){return void 0===o&&(o=16384),e?t(e).getText():Ub.usingSingleLineStringWriter(t);function t(e){var t=Ub.createTypePredicateNode(1===i.kind?Ub.createIdentifier(i.parameterName):Ub.createThisTypeNode(),b.typeToTypeNode(i.type,a,70222336|Ei(o))),n=Ub.createPrinter({removeComments:!0}),r=a&&Ub.getSourceFileOfNode(a);return n.writeNode(4,t,r,e),e}}function Ti(e){return 8===e?"private":16===e?"protected":"public"}function Ci(e){return e&&e.parent&&246===e.parent.kind&&Ub.isExternalModuleAugmentation(e.parent.parent)}function Bi(e){return 285===e.kind||Ub.isAmbientModule(e)}function xi(e,t){var n=e.nameType;if(n){if(384&n.flags){var r=""+n.value;return Ub.isIdentifierText(r,z.target)||Yf(r)?r:'"'+Ub.escapeString(r,34)+'"'}if(8192&n.flags)return"["+Si(n.symbol,t)+"]"}}function Si(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&Ub.findAncestor(e.declarations[0],Bi)!==Ub.findAncestor(t.enclosingDeclaration,Bi)))return"default";if(e.declarations&&e.declarations.length){var n=e.declarations[0],r=Ub.getNameOfDeclaration(n);if(r){if(Ub.isCallExpression(n)&&Ub.isBindableObjectDefinePropertyCall(n))return Ub.symbolName(e);if(Ub.isComputedPropertyName(r)&&!(4096&Ub.getCheckFlags(e))&&e.nameType&&384&e.nameType.flags){var i=xi(e,t);if(i!==undefined)return i}return Ub.declarationNameToString(r)}if(n.parent&&238===n.parent.kind)return Ub.declarationNameToString(n.parent.name);switch(n.kind){case 210:case 197:case 198:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),210===n.kind?"(Anonymous class)":"(Anonymous function)"}}var a=xi(e,t);return a!==undefined?a:Ub.symbolName(e)}function Ni(t){if(t){var e=rr(t);return e.isVisible===undefined&&(e.isVisible=!!function(){switch(t.kind){case 303:case 310:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&Ub.isSourceFile(t.parent.parent.parent));case 187:return Ni(t.parent.parent);case 238:if(Ub.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 245:case 241:case 242:case 243:case 240:case 244:case 249:if(Ub.isExternalModuleAugmentation(t))return!0;var e=Vi(t);return 1&Ub.getCombinedModifierFlags(t)||249!==t.kind&&285!==e.kind&&4194304&e.flags?Ni(e):ir(e);case 155:case 154:case 159:case 160:case 157:case 156:if(Ub.hasModifier(t,24))return!1;case 158:case 162:case 161:case 163:case 152:case 246:case 166:case 167:case 169:case 165:case 170:case 171:case 174:case 175:case 178:return Ni(t.parent);case 251:case 252:case 254:return!1;case 151:case 285:case 248:return!0;case 255:default:return!1}}()),e.isVisible}return!1}function Di(e,a){var t,o;return e.parent&&255===e.parent.kind?t=sr(e,e.escapedText,70107135,undefined,e,!1):258===e.parent.kind&&(t=yr(e.parent,70107135)),t&&function s(e){Ub.forEach(e,function(e){var t,n,r,i=pr(e)||e;a?rr(e).isVisible=!0:(o=o||[],Ub.pushIfUnique(o,i)),Ub.isInternalModuleImportEqualsDeclaration(e)&&(t=e.moduleReference,n=ly(t),(r=sr(e,n.escapedText,68009983,undefined,undefined,!1))&&s(r.declarations))})}(t.declarations),o}function ki(e,t){var n=Ai(e,t);if(!(0<=n))return Qt.push(e),$t.push(!0),en.push(t),1;for(var r=Qt.length,i=n;i<r;i++)$t[i]=!1}function Ai(e,t){for(var n=Qt.length-1;0<=n;n--){if(function(e,t){switch(t){case 0:return!!nr(e).type;case 5:return!!rr(e).resolvedEnumType;case 2:return!!nr(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!nr(e).resolvedJSDocType}return Ub.Debug.assertNever(t)}(Qt[n],en[n]))return-1;if(Qt[n]===e&&en[n]===t)return n}return-1}function wi(){return Qt.pop(),en.pop(),$t.pop()}function Vi(e){return Ub.findAncestor(Ub.getRootDeclaration(e),function(e){switch(e.kind){case 238:case 239:case 254:case 253:case 252:case 251:return!1;default:return!0}}).parent}function Pi(e,t){var n=Ko(e,t);return n?pa(n):undefined}function Li(e){return e&&0!=(1&e.flags)}function Mi(e){var t=Gr(e);return t&&nr(t).type||Ui(e,!1)}function Fi(e){return 150===e.kind&&!Ub.isStringOrNumericLiteralLike(e.expression)}function Oi(e,t,n){if(131072&(e=wp(e,function(e){return!(98304&e.flags)})).flags)return We;if(1048576&e.flags)return Vp(e,function(e){return Oi(e,t,n)});var r=Pc(Ub.map(t,jc));if(Xc(e)||qc(r)){if(131072&r.flags)return e;var i=Vt=Vt||ac("Omit",524288,Ub.Diagnostics.Cannot_find_global_type_0);return i?Gs(i,[e,r]):be}for(var a=Ub.createSymbolTable(),o=0,s=ko(e);o<s.length;o++){var c=s[o];ll(Wc(c,8576),r)||24&Ub.getDeclarationModifierFlagsFromSymbol(c)||!bu(c)||a.set(c.escapedName,vu(c,!1))}var u=$o(e,0),l=$o(e,1);return ii(n,a,Ub.emptyArray,Ub.emptyArray,u,l)}function Ri(e,t){var n=Hi(e);return n?Up(n,t):t}function Hi(e){var t,n,r=function(e){var t=e.parent.parent;switch(t.kind){case 187:case 276:return Hi(t);case 188:return Hi(e.parent);case 238:return t.initializer;case 205:return t.right}}(e);if(r&&r.flowNode){var i=(n=(t=e).parent,187!==t.kind||185!==n.kind?276!==t.kind&&277!==t.kind?""+n.elements.indexOf(t):ji(t.name):ji(t.propertyName||t.name));if(i){var a=Ub.createNode(191,e.pos,e.end);a.parent=e,a.expression=r;var o=Ub.createNode(10,e.pos,e.end);return o.parent=a,o.text=i,a.argumentExpression=o,a.flowNode=r.flowNode,a}}}function ji(e){var t=jc(e);return 384&t.flags?""+t.value:undefined}function Wi(e){var t=e.parent,n=Mi(t.parent);if(!n||Li(n))return n;if(U&&4194304&e.flags&&Ub.isParameterDeclaration(e)&&(n=bd(n)),185===t.kind)if(e.dotDotDotToken){if(2&n.flags||!Zf(n))return Yn(e,Ub.Diagnostics.Rest_types_may_only_be_created_from_object_types),be;for(var r=[],i=0,a=t.elements;i<a.length;i++){var o=a[i];o.dotDotDotToken||r.push(o.propertyName||o.name)}c=Oi(n,r,e.symbol)}else var s=e.propertyName||e.name,c=Ri(e,$p(ru(n,jc(s),s),e.name));else{var u=Wm(n,t,!1,!1),l=t.elements.indexOf(e);c=e.dotDotDotToken?Ap(n,ud)?Vp(n,function(e){return Sc(e,l)}):Tc(u):Ql(n)?Ri(e,$p(ru(n,xu(l),e.name),e.name)):u}return!U||!e.initializer||32768&_d(Ig(e))||(c=hp(c,524288)),e.initializer&&!Ub.getEffectiveTypeAnnotationNode(Ub.walkUpBindingElementsAndPatterns(e))?Pc([c,Ig(e)],2):c}function Gi(e){var t=Ub.getJSDocType(e);return t?Du(t):undefined}function Yi(e){var t=Ub.skipParentheses(e);return 188===t.kind&&0===t.elements.length}function Ji(e,t){return void 0===t&&(t=!0),U&&t?yd(e):e}function zi(e){return 152===e.kind&&(197===e.parent.kind||198===e.parent.kind)&&Af(e.parent)}function Ui(e,t){if(Ub.isVariableDeclaration(e)&&227===e.parent.parent.kind){var n=Jc(b_(Pg(e.parent.parent.expression)));return 4456448&n.flags?zc(n):Be}if(Ub.isVariableDeclaration(e)&&228===e.parent.parent.kind){var r=e.parent.parent;return jm(r.expression,r.awaitModifier)||ge}if(Ub.isBindingPattern(e.parent))return Wi(e);var i,a,o=t&&(Ub.isParameter(e)&&is(e)||!Ub.isBindingElement(e)&&!Ub.isVariableDeclaration(e)&&!!e.questionToken),s=na(e);if(s)return Ji(s,o);if((K||Ub.isInJSFile(e))&&238===e.kind&&!Ub.isBindingPattern(e.name)&&!(1&Ub.getCombinedModifierFlags(e))&&!(4194304&e.flags)){if(!(2&Ub.getCombinedNodeFlags(e)||e.initializer&&(i=e.initializer,97!==(a=Ub.skipParentheses(i)).kind&&(73!==a.kind||np(a)!==$))))return me;if(e.initializer&&Yi(e.initializer))return _t}if(152===e.kind){var c,u=e.parent;if(160===u.kind&&!Ua(u)){var l=Ub.getDeclarationOfKind(Gr(e.parent),159);if(l){var d=ps(l),p=Vb(u);return p&&e===p?(Ub.Debug.assert(!p.type),pa(d.thisParameter)):bs(d)}}if(Ub.isInJSFile(e)){var f=Ub.getJSDocType(u);if(f&&Ub.isFunctionTypeNode(f))return Ah(ps(f),u.parameters.indexOf(e))}if(c="this"===e.symbol.escapedName?ff(u):_f(e))return Ji(c,o)}else if(Ub.isInJSFile(e)){var _=Zi(e,Gr(e),Ub.getDeclaredExpandoInitializer(e));if(_)return _}return!e.initializer||zi(e)?Ub.isJsxAttribute(e)?ke:Ub.isBindingPattern(e.name)&&!zi(e)?Qi(e.name,!1,!0):undefined:Ji(c=Ig(e),o)}function Ki(e,t){var n=Ub.getAssignedExpandoInitializer(e.valueDeclaration);if(n){var r=Ub.getJSDocTypeTag(n);return r&&r.typeExpression?Du(r.typeExpression):Zi(e.valueDeclaration,e,n)||od(vg(n))}for(var i,a,o=!1,s=!1,c=0,u=e.declarations;c<u.length;c++){var l=u[c],d=Ub.isBinaryExpression(l)||Ub.isCallExpression(l)?l:Ub.isPropertyAccessExpression(l)?Ub.isBinaryExpression(l.parent)?l.parent:l:undefined;if(!d)return be;var p=Ub.isPropertyAccessExpression(d)?Ub.getAssignmentDeclarationPropertyAccessKind(d):Ub.getAssignmentDeclarationKind(d);4===p&&(Xi(d)?o=!0:s=!0),Ub.isCallExpression(d)||(i=function(e,t,n){var r=Ub.getJSDocType(t.parent);if(r){var i=xd(Du(r));if(!e)return i;e===be||i===be||al(e,i)||Vm(undefined,e,n,i)}return e}(i,d,l)),i||(a=a||[]).push(Ub.isBinaryExpression(d)||Ub.isCallExpression(d)?function(e,t,n,r){if(Ub.isCallExpression(n)){if(t)return pa(t);var i=vg(n.arguments[2]),a=Pi(i,"value");if(a)return a;var o=Pi(i,"get");if(o){var s=G_(o);if(s)return bs(s)}var c=Pi(i,"set");if(c){var u=G_(c);if(u)return Rh(u)}return ge}var l=t?pa(t):od(vg(n.right));if(524288&l.flags&&2===r&&"export="===e.escapedName){var d=xo(l),p=Ub.createSymbolTable();Ub.copyEntries(d.members,p),t&&!t.exports&&(t.exports=Ub.createSymbolTable()),(t||e).exports.forEach(function(e,t){var n,r;p.has(t)?(n=d.members.get(t),(r=zn(e.flags|n.flags,t)).type=Pc([pa(e),pa(n)]),p.set(t,r)):p.set(t,e)});var f=ii(d.symbol,p,d.callSignatures,d.constructSignatures,d.stringIndexInfo,d.numberIndexInfo);return f.objectFlags|=16384&Ub.getObjectFlags(l),f}if($l(l))return Nd(n,ft),ft;return l}(e,t,d,p):Pe)}var f,_,h,g,m=i;m||(f=o?(h=a,g=e.declarations,Ub.Debug.assert(h.length===g.length),h.filter(function(e,t){var n=g[t],r=Ub.isBinaryExpression(n)?n:Ub.isBinaryExpression(n.parent)?n.parent:undefined;return r&&Xi(r)})):undefined,!s||(_=function(e){var t=Ub.forEach(e.declarations,function(e){var t=Ub.getThisContainer(e,!1).parent;return Ub.isClassLike(t)&&t});if(t){var n=La(Gr(t)),r=n&&xa(n)[0];if(r)return Pi(r,e.escapedName)}}(e))&&((f=f||[]).push(_),o=!0),m=Pc(Ub.some(f,function(e){return!!(-98305&e.flags)})?f:a,2));var y=xd(Ji(m,s&&!o));return wp(y,function(e){return!!(-98305&e.flags)})===Pe?(Nd(e.valueDeclaration,ge),ge):y}function Zi(e,t,n){if(!Ub.isInJSFile(e)||!n||!Ub.isObjectLiteralExpression(n)||n.properties.length)return undefined;for(var r=Ub.createSymbolTable();Ub.isBinaryExpression(e)||Ub.isPropertyAccessExpression(e);){var i=Gr(e);i&&Ub.hasEntries(i.exports)&&er(r,i.exports),e=Ub.isBinaryExpression(e)?e.parent:e.parent.parent}var a=Gr(e);a&&Ub.hasEntries(a.exports)&&er(r,a.exports);var o=ii(t,r,Ub.emptyArray,Ub.emptyArray,undefined,undefined);return o.objectFlags|=16384,o}function Xi(e){var t=Ub.getThisContainer(e,!1);return 158===t.kind||240===t.kind||197===t.kind&&!Ub.isPrototypePropertyAssignment(t.parent)}function qi(e,t,n){return e.initializer?Ji(Ig(e)):Ub.isBindingPattern(e.name)?Qi(e.name,t,n):(n&&!ta(e)&&Nd(e,ge),ge)}function Qi(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),(185===e.kind?function(e,a,o){var s,c=Ub.createSymbolTable(),u=262272;Ub.forEach(e.elements,function(e){var t,n,r,i=e.propertyName||e.name;e.dotDotDotToken?s=ws(ge,!1):Ya(t=jc(i))?(n=Ka(t),(r=zn(4|(e.initializer?16777216:0),n)).type=qi(e,a,o),r.bindingElement=e,c.set(r.escapedName,r)):u|=512});var t=ii(undefined,c,Ub.emptyArray,Ub.emptyArray,s,undefined);return t.objectFlags|=u,a&&(t.pattern=e),t}:function(e,t,n){var r=e.elements,i=Ub.lastOrUndefined(r),a=!(!i||187!==i.kind||!i.dotDotDotToken);if(0===r.length||1===r.length&&a)return 2<=k?Ec(ge):ft;var o=xc(Ub.map(r,function(e){return Ub.isOmittedExpression(e)?ge:qi(e,t,n)}),Ub.findLastIndex(r,function(e){return!Ub.isOmittedExpression(e)&&!Rf(e)},r.length-(a?2:1))+1,a);return t&&((o=Hs(o)).pattern=e),o})(e,t,n)}function $i(e,t){return ea(Ui(e,!0),e,t)}function ea(e,t,n){return e?(n&&Dd(t,e),8192&e.flags&&(Ub.isBindingElement(t)||!t.type)&&e.symbol!==Gr(t)&&(e=we),xd(e)):(e=Ub.isParameter(t)&&t.dotDotDotToken?ft:ge,n&&(ta(t)||Nd(t,e)),e)}function ta(e){var t=Ub.getRootDeclaration(e);return qg(152===t.kind?t.parent:t)}function na(e){var t=Ub.getEffectiveTypeAnnotationNode(e);if(t)return Du(t)}function ra(e){var t,n=nr(e);return n.type||(t=function(e){if(4194304&e.flags)return function(e){var t=La(Yr(e));return t.typeParameters?Rs(t,Ub.map(t.typeParameters,function(e){return ge})):t}(e);if(e===re)return ge;if(134217728&e.flags){var t=Gr(Ub.getSourceFileOfNode(e.valueDeclaration)),n=Ub.createSymbolTable();return n.set("exports",t),ii(e,n,Ub.emptyArray,Ub.emptyArray,undefined,undefined)}var r,i=e.valueDeclaration;if(Ub.isCatchClauseVariableDeclarationOrBindingElement(i))return ge;if(Ub.isSourceFile(i)&&Ub.isJsonSourceFile(i)){if(!i.statements.length)return We;var a=od(Pg(i.statements[0].expression));return 524288&a.flags?Id(a):a}if(!ki(e,0))return(512&e.flags?ua:da)(e);if(255===i.kind)r=ea(vg(i.expression),i);else if(Ub.isInJSFile(i)&&(Ub.isCallExpression(i)||Ub.isBinaryExpression(i)||Ub.isPropertyAccessExpression(i)&&Ub.isBinaryExpression(i.parent)))r=Ki(e);else if(Ub.isJSDocPropertyLikeTag(i)||Ub.isPropertyAccessExpression(i)||Ub.isIdentifier(i)||Ub.isClassDeclaration(i)||Ub.isFunctionDeclaration(i)||Ub.isMethodDeclaration(i)&&!Ub.isObjectLiteralMethod(i)||Ub.isMethodSignature(i)||Ub.isSourceFile(i)){if(9136&e.flags)return ua(e);r=Ub.isBinaryExpression(i.parent)?Ki(e):na(i)||ge}else if(Ub.isPropertyAssignment(i))r=na(i)||xg(i);else if(Ub.isJsxAttribute(i))r=na(i)||Qf(i);else if(Ub.isShorthandPropertyAssignment(i))r=na(i)||Bg(i.name,0);else if(Ub.isObjectLiteralMethod(i))r=na(i)||Sg(i,0);else if(Ub.isParameter(i)||Ub.isPropertyDeclaration(i)||Ub.isPropertySignature(i)||Ub.isVariableDeclaration(i)||Ub.isBindingElement(i))r=$i(i,!0);else if(Ub.isEnumDeclaration(i))r=ua(e);else{if(!Ub.isEnumMember(i))return Ub.Debug.fail("Unhandled declaration kind! "+Ub.Debug.formatSyntaxKind(i.kind)+" for "+Ub.Debug.formatSymbol(e));r=la(e)}if(wi())return r;if(512&e.flags)return ua(e);return da(e)}(e),n.type||(n.type=t)),n.type}function ia(e){return e?159!==e.kind?Ub.getEffectiveSetAccessorTypeAnnotationNode(e):Ub.getEffectiveReturnTypeNode(e):undefined}function aa(e){var t=ia(e);return t&&Du(t)}function oa(e){return gs(ps(e))}function sa(e){var t=nr(e);return t.type||(t.type=function(e){var t,n=Ub.getDeclarationOfKind(e,159),r=Ub.getDeclarationOfKind(e,160);if(n&&Ub.isInJSFile(n)){var i=Gi(n);if(i)return i}if(!ki(e,0))return be;var a=aa(n);{var o;t=a||(o=aa(r),o||(n&&n.body?zh(n):(r?Jn(K,r,Ub.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,mi(e)):(Ub.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),Jn(K,n,Ub.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,mi(e))),ge)))}{wi()||(t=ge,K&&Yn(Ub.getDeclarationOfKind(e,159),Ub.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,mi(e)))}return t}(e))}function ca(e){var t=Ba(Na(e));return 8650752&t.flags?t:undefined}function ua(e){var t,n,r=nr(e),i=r;return r.type||(!(t=Ub.getDeclarationOfExpando(e.valueDeclaration))||(n=Gr(t))&&(Ub.hasEntries(n.exports)||Ub.hasEntries(n.members))&&(r=e=Xn(e),Ub.hasEntries(n.exports)&&(e.exports=e.exports||Ub.createSymbolTable(),er(e.exports,n.exports)),Ub.hasEntries(n.members)&&(e.members=e.members||Ub.createSymbolTable(),er(e.members,n.members))),i.type=r.type=function(e){var t=e.valueDeclaration;{if(1536&e.flags&&Ub.isShorthandAmbientModuleSymbol(e))return ge;if(205===t.kind||190===t.kind&&205===t.parent.kind)return Ki(e);if(512&e.flags&&t&&Ub.isSourceFile(t)&&t.commonJsModuleIndicator){var n=Vr(e);if(n!==e){if(!ki(e,0))return be;var r=Wr(e.exports.get("export=")),i=Ki(r,r===n?undefined:n);return wi()?i:da(e)}}}var a=$r(16,e);{if(32&e.flags){var o=ca(e);return o?Rc([a,o]):a}return U&&16777216&e.flags?yd(a):a}}(e)),r.type}function la(e){var t=nr(e);return t.type||(t.type=Va(e))}function da(e){var t=e.valueDeclaration;return Ub.getEffectiveTypeAnnotationNode(t)?(Yn(e.valueDeclaration,Ub.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,mi(e)),be):(K&&(152!==t.kind||t.initializer)&&Yn(e.valueDeclaration,Ub.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,mi(e)),ge)}function pa(e){return 65536&Ub.getCheckFlags(e)?((t=nr(e)).type||(Ub.Debug.assertDefined(t.deferralParent),Ub.Debug.assertDefined(t.deferralConstituents),t.type=(1048576&t.deferralParent.flags?Pc:Rc)(t.deferralConstituents)),t.type):1&Ub.getCheckFlags(e)?function(e){var t=nr(e);if(!t.type){if(!ki(e,0))return t.type=be;var n=Xu(pa(t.target),t.mapper);wi()||(n=da(e)),t.type=n}return t.type}(e):8192&Ub.getCheckFlags(e)?jd((n=e).propertyType,n.mappedType,n.constraintType):7&e.flags?ra(e):9136&e.flags?ua(e):8&e.flags?la(e):98304&e.flags?sa(e):2097152&e.flags?((a=nr(r=e)).type||(i=Ir(r),a.type=67220415&i.flags?pa(i):be),a.type):be;var t,n,r,i,a}function fa(e,t){return e!==undefined&&t!==undefined&&0!=(4&Ub.getObjectFlags(e))&&e.target===t}function _a(e){return 4&Ub.getObjectFlags(e)?e.target:e}function ha(e,n){return function r(e){{if(7&Ub.getObjectFlags(e)){var t=_a(e);return t===n||Ub.some(xa(t),r)}if(2097152&e.flags)return Ub.some(e.types,r)}return!1}(e)}function ga(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];e=Ub.appendIfUnique(e,Pa(Gr(i)))}return e}function ma(e,t){for(;;){if(!(e=e.parent))return undefined;switch(e.kind){case 241:case 210:case 242:case 161:case 162:case 156:case 166:case 167:case 295:case 240:case 157:case 197:case 198:case 243:case 309:case 310:case 303:case 182:case 176:var n=ma(e,t);if(182===e.kind)return Ub.append(n,Pa(Gr(e.typeParameter)));if(176===e.kind)return Ub.concatenate(n,du(e));var r=ga(n,Ub.getEffectiveTypeParameterDeclarations(e)),i=t&&(241===e.kind||210===e.kind||242===e.kind)&&Na(Gr(e)).thisType;return i?Ub.append(r,i):r}}}function ya(e){return ma(32&e.flags?e.valueDeclaration:Ub.getDeclarationOfKind(e,242))}function ba(e){for(var t=0,n=e.declarations;t<n.length;t++){var r,i=n[t];242!==i.kind&&241!==i.kind&&210!==i.kind&&!Ub.isTypeAlias(i)||(r=ga(r,Ub.getEffectiveTypeParameterDeclarations(i)))}return r}function va(e){var t=Xo(e,1);if(1!==t.length)return!1;var n=t[0];return!n.typeParameters&&1===n.parameters.length&&n.hasRestParameter&&Dh(n.parameters[0])===ft}function Ea(e){if(Sa(e)&&0<Xo(e,1).length)return 1;if(8650752&e.flags){var t=Fo(e);return t&&Sa(t)&&va(t)}return bh(e)}function Ia(e){return Ub.getEffectiveBaseTypeNode(e.symbol.valueDeclaration)}function Ta(e,t,n){var r=Ub.length(t),i=Ub.isInJSFile(n);return Ub.filter(Xo(e,1),function(e){return(i||r>=ls(e.typeParameters))&&r<=Ub.length(e.typeParameters)})}function Ca(e,t,n){var r=Ta(e,t,n),i=Ub.map(t,Du);return Ub.sameMap(r,function(e){return Ub.some(e.typeParameters)?Ts(e,i,Ub.isInJSFile(n)):e})}function Ba(e){if(!e.resolvedBaseConstructorType){var t=e.symbol.valueDeclaration,n=Ub.getEffectiveBaseTypeNode(t),r=Ia(e);if(!r)return e.resolvedBaseConstructorType=Ee;if(!ki(e,1))return be;var i=Pg(r.expression);if(n&&r!==n&&(Ub.Debug.assert(!n.typeArguments),Pg(n.expression)),2621440&i.flags&&xo(i),!wi())return Yn(e.symbol.valueDeclaration,Ub.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,mi(e.symbol)),e.resolvedBaseConstructorType=be;if(!(1&i.flags||i===Ce||Ea(i))){var a,o,s,c=Yn(r.expression,Ub.Diagnostics.Type_0_is_not_a_constructor_function_type,bi(i));return 262144&i.flags&&(a=Ls(i),o=ve,!a||(s=Xo(a,1))[0]&&(o=bs(s[0])),Ub.addRelatedInfo(c,Ub.createDiagnosticForNode(i.symbol.declarations[0],Ub.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,mi(i.symbol),bi(o)))),e.resolvedBaseConstructorType=be}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function xa(e){return e.resolvedBaseTypes||(8&e.objectFlags?e.resolvedBaseTypes=[Tc(Pc(e.typeParameters||Ub.emptyArray),e.readonly)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=Ub.resolvingEmptyArray;var t=Yo(Ba(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=Ub.emptyArray;var n,r=Ia(e),i=tc(r),a=bh(t)?t:t.symbol?La(t.symbol):undefined;if(t.symbol&&32&t.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}(a))n=Ws(r,t.symbol,i);else if(1&t.flags)n=t;else if(bh(t))n=!r.typeArguments&&vh(t.symbol)||ge;else{var o=Ca(t,r.typeArguments,r);if(!o.length)return Yn(r.expression,Ub.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=Ub.emptyArray;n=bs(o[0])}if(n===be)return e.resolvedBaseTypes=Ub.emptyArray;if(!Sa(n))return Yn(r.expression,Ub.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,bi(n)),e.resolvedBaseTypes=Ub.emptyArray;if(e===n||ha(n,e))return Yn(e.symbol.valueDeclaration,Ub.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,bi(e,undefined,2)),e.resolvedBaseTypes=Ub.emptyArray;e.resolvedBaseTypes===Ub.resolvingEmptyArray&&(e.members=undefined);e.resolvedBaseTypes=[n]}(e),64&e.symbol.flags&&function(e){e.resolvedBaseTypes=e.resolvedBaseTypes||Ub.emptyArray;for(var t=0,n=e.symbol.declarations;t<n.length;t++){var r=n[t];if(242===r.kind&&Ub.getInterfaceBaseTypeNodes(r))for(var i=0,a=Ub.getInterfaceBaseTypeNodes(r);i<a.length;i++){var o=a[i],s=Du(o);s!==be&&(Sa(s)?e===s||ha(s,e)?Yn(r,Ub.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,bi(e,undefined,2)):e.resolvedBaseTypes===Ub.emptyArray?e.resolvedBaseTypes=[s]:e.resolvedBaseTypes.push(s):Yn(o,Ub.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(e)):Ub.Debug.fail("type must be class or interface")),e.resolvedBaseTypes}function Sa(e){return!!(67633153&e.flags)&&!Bo(e)||!!(2097152&e.flags)&&Ub.every(e.types,Sa)}function Na(e){var t,n,r,i,a=nr(e);return a.declaredType||(t=32&e.flags?1:2,n=a.declaredType=$r(t,e),r=ya(e),i=ba(e),!r&&!i&&1!=t&&function(e){for(var t=0,n=e.declarations;t<n.length;t++){var r=n[t];if(242===r.kind){if(64&r.flags)return;var i=Ub.getInterfaceBaseTypeNodes(r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(Ub.isEntityNameExpression(s.expression)){var c=Sr(s.expression,67897832,!0);if(!c||!(64&c.flags)||Na(c).thisType)return}}}}return 1}(e)||(n.objectFlags|=4,n.typeParameters=Ub.concatenate(r,i),n.outerTypeParameters=r,n.localTypeParameters=i,n.instantiations=Ub.createMap(),n.instantiations.set(Fs(n.typeParameters),n),(n.target=n).typeArguments=n.typeParameters,n.thisType=ei(e),n.thisType.isThisType=!0,n.thisType.constraint=n)),a.declaredType}function Da(e){var t=e.initializer;if(!t)return!(4194304&e.flags);switch(t.kind){case 10:case 8:return 1;case 203:return 39===t.operator&&8===t.operand.kind;case 73:return Ub.nodeIsMissing(t)||Gr(e.parent).exports.get(t.escapedText);case 205:return function n(e){return 10===e.kind||205===e.kind&&n(e.left)&&n(e.right)}(t);default:return}}function ka(e){var t=nr(e);if(t.enumKind!==undefined)return t.enumKind;for(var n=!1,r=0,i=e.declarations;r<i.length;r++){var a=i[r];if(244===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&10===c.initializer.kind)return t.enumKind=1;Da(c)||(n=!0)}}return t.enumKind=n?0:1}function Aa(e){return 1024&e.flags&&!(1048576&e.flags)?La(Yr(e.symbol)):e}function wa(e){var t=nr(e);if(t.declaredType)return t.declaredType;if(1===ka(e)){p++;for(var n=[],r=0,i=e.declarations;r<i.length;r++){var a=i[r];if(244===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=Tu(xu(rb(c),p,Gr(c)));nr(Gr(c)).declaredType=u,n.push(Cu(u))}}if(n.length){var l=Pc(n,1,e,undefined);return 1048576&l.flags&&(l.flags|=1024,l.symbol=e),t.declaredType=l}}var d=Xr(32);return d.symbol=e,t.declaredType=d}function Va(e){var t,n=nr(e);return n.declaredType||(t=wa(Yr(e)),n.declaredType||(n.declaredType=t)),n.declaredType}function Pa(e){var t=nr(e);return t.declaredType||(t.declaredType=ei(e))}function La(e){return Ma(e)||be}function Ma(e){return 96&e.flags?Na(e):524288&e.flags?function(e){var t=nr(e);if(!t.declaredType){if(!ki(e,2))return be;var n,r=Ub.find(e.declarations,function(e){return Ub.isJSDocTypeAlias(e)||243===e.kind}),i=Ub.isJSDocTypeAlias(r)?r.typeExpression:r.type,a=i?Du(i):be;wi()?(n=ba(e))&&(t.typeParameters=n,t.instantiations=Ub.createMap(),t.instantiations.set(Fs(n),a)):(a=be,Yn(r.name,Ub.Diagnostics.Type_alias_0_circularly_references_itself,mi(e))),t.declaredType=a}return t.declaredType}(e):262144&e.flags?Pa(e):384&e.flags?wa(e):8&e.flags?Va(e):2097152&e.flags?(n=nr(t=e)).declaredType||(n.declaredType=La(Ir(t))):undefined;var t,n}function Fa(e){switch(e.kind){case 121:case 144:case 139:case 136:case 147:case 124:case 140:case 137:case 107:case 142:case 97:case 133:case 183:return!0;case 170:return Fa(e.elementType);case 165:return!e.typeArguments||e.typeArguments.every(Fa)}return!1}function Oa(e){var t=Ub.getEffectiveConstraintOfTypeParameter(e);return!t||Fa(t)}function Ra(e){var t=Ub.getEffectiveTypeAnnotationNode(e);return t?Fa(t):!Ub.hasInitializer(e)}function Ha(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 155:case 154:return Ra(t);case 157:case 156:case 158:case 159:case 160:return n=t,r=Ub.getEffectiveReturnTypeNode(n),i=Ub.getEffectiveTypeParameterDeclarations(n),(158===n.kind||r&&Fa(r))&&n.parameters.every(Ra)&&i.every(Oa)}}var n,r,i}function ja(e,t,n){for(var r=Ub.createSymbolTable(),i=0,a=e;i<a.length;i++){var o=a[i];r.set(o.escapedName,n&&Ha(o)?o:Wu(o,t))}return r}function Wa(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];e.has(i.escapedName)||e.set(i.escapedName,i)}}function Ga(e){var t,n;return e.declaredProperties||(n=qa(t=e.symbol),e.declaredProperties=ni(n),e.declaredCallSignatures=Ub.emptyArray,e.declaredConstructSignatures=Ub.emptyArray,e.declaredCallSignatures=hs(n.get("__call")),e.declaredConstructSignatures=hs(n.get("__new")),e.declaredStringIndexInfo=Vs(t,0),e.declaredNumberIndexInfo=Vs(t,1)),e}function Ya(e){return!!(8576&e.flags)}function Ja(e){return Ub.isComputedPropertyName(e)&&Ub.isEntityNameExpression(e.expression)&&Ya(Jf(e))}function za(e){var t=Ub.getNameOfDeclaration(e);return!!t&&Ja(t)}function Ua(e){return Ub.hasDynamicName(e)&&!za(e)}function Ka(e){return 8192&e.flags?e.escapedName:384&e.flags?Ub.escapeLeadingUnderscores(""+e.value):Ub.Debug.fail()}function Za(e,t,n,r){Ub.Debug.assert(!!r.symbol,"The member is expected to have a symbol.");var i,a,o,s=rr(r);if(!s.resolvedSymbol){s.resolvedSymbol=r.symbol;var c=Jf(r.name);if(Ya(c)){var u=Ka(c),l=r.symbol.flags,d=n.get(u);d||n.set(u,d=zn(0,u,4096));var p,f,_=t&&t.get(u);return(d.flags&Kn(l)||_)&&(p=_?Ub.concatenate(_.declarations,d.declarations):d.declarations,f=!(8192&c.flags)&&Ub.unescapeLeadingUnderscores(u)||Ub.declarationNameToString(r.name),Ub.forEach(p,function(e){return Yn(Ub.getNameOfDeclaration(e)||e,Ub.Diagnostics.Property_0_was_also_declared_here,f)}),Yn(r.name||r,Ub.Diagnostics.Duplicate_property_0,f),d=zn(0,u,4096)),d.nameType=c,i=d,a=r,o=l,Ub.Debug.assert(!!(4096&Ub.getCheckFlags(i)),"Expected a late-bound symbol."),i.flags|=o,(nr(a.symbol).lateSymbol=i).declarations?i.declarations.push(a):i.declarations=[a],67220415&o&&(i.valueDeclaration&&i.valueDeclaration.kind===a.kind||(i.valueDeclaration=a)),d.parent?Ub.Debug.assert(d.parent===e,"Existing symbol parent should match new one"):d.parent=e,s.resolvedSymbol=d}}return s.resolvedSymbol}function Xa(e,t){var n=nr(e);if(!n[t]){var r="resolvedExports"===t,i=r?1536&e.flags?jr(e):e.exports:e.members;n[t]=i||M;for(var a=Ub.createSymbolTable(),o=0,s=e.declarations;o<s.length;o++){var c=s[o],u=Ub.getMembersOfDeclaration(c);if(u)for(var l=0,d=u;l<d.length;l++){var p=d[l];r===Ub.hasStaticModifier(p)&&za(p)&&Za(e,i,a,p)}}n[t]=function(e,t){if(!Ub.hasEntries(e))return t;if(!Ub.hasEntries(t))return e;var n=Ub.createSymbolTable();return er(n,e),er(n,t),n}(i,a)||M}return n[t]}function qa(e){return 6240&e.flags?Xa(e,"resolvedMembers"):e.members||M}function Qa(e){if(106500&e.flags&&"__computed"===e.escapedName){var t,n=nr(e);return!n.lateSymbol&&Ub.some(e.declarations,za)&&(t=Wr(e.parent),(Ub.some(e.declarations,Ub.hasStaticModifier)?Or:qa)(t)),n.lateSymbol||(n.lateSymbol=e)}return e}function $a(e,t,n){if(4&Ub.getObjectFlags(e)){var r=e.target,i=e.typeArguments;if(Ub.length(r.typeParameters)===Ub.length(i)){var a=Rs(r,Ub.concatenate(i,[t||r.thisType]));return n?Yo(a):a}}else if(2097152&e.flags)return Rc(Ub.map(e.types,function(e){return $a(e,t,n)}));return n?Yo(e):e}function eo(e,t,n,r){var i,a,o,s,c,u=Ub.rangeEquals(n,r,0,n.length)?(i=g,a=t.symbol?qa(t.symbol):Ub.createSymbolTable(t.declaredProperties),o=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredStringIndexInfo,t.declaredNumberIndexInfo):(i=Pu(n,r),a=ja(t.declaredProperties,i,1===n.length),o=wu(t.declaredCallSignatures,i),s=wu(t.declaredConstructSignatures,i),c=$u(t.declaredStringIndexInfo,i),$u(t.declaredNumberIndexInfo,i)),l=xa(t);if(l.length){t.symbol&&a===qa(t.symbol)&&(a=Ub.createSymbolTable(t.declaredProperties)),ri(e,a,o,s,c,u);for(var d=Ub.lastOrUndefined(r),p=0,f=l;p<f.length;p++){var _=f[p],h=d?$a(Xu(_,i),d):_;Wa(a,ko(h)),o=Ub.concatenate(o,Xo(h,0)),s=Ub.concatenate(s,Xo(h,1)),c=c||(h===ge?ws(ge,!1):$o(h,0)),u=u||$o(h,1)}}ri(e,a,o,s,c,u)}function to(e,t,n,r,i,a,o,s,c){var u=new l(ie);return u.declaration=e,u.typeParameters=t,u.parameters=r,u.thisParameter=n,u.resolvedReturnType=i,u.resolvedTypePredicate=a,u.minArgumentCount=o,u.hasRestParameter=s,u.hasLiteralTypes=c,u.target=undefined,u.mapper=undefined,u}function no(e){var t=to(e.declaration,e.typeParameters,e.thisParameter,e.parameters,undefined,undefined,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes);return t.target=e.target,t.mapper=e.mapper,t}function ro(e,t){var n=no(e);return n.unionSignatures=t,n.target=undefined,n.mapper=undefined,n}function io(r){if(r.hasRestParameter){var i=r.parameters.length-1,e=pa(r.parameters[i]);if(ud(e)){var t=e.typeArguments||Ub.emptyArray,a=e.target.minLength,o=e.target.hasRestElement?t.length-1:-1,n=Ub.map(t,function(e,t){var n=zn(1,kh(r,i+t),t===o?32768:a<=t?16384:0);return n.type=t===o?Tc(e):e,n});return Ub.concatenate(r.parameters.slice(0,i),n)}}return r.parameters}function ao(e,t,n,r,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(Ul(s,t,n,r,i,n?cl:ol))return s}}function oo(e){for(var t,n,r=0;r<e.length;r++){if(0===e[r].length)return Ub.emptyArray;1<e[r].length&&(n=n===undefined?r:-1);for(var i=0,a=e[r];i<a.length;i++){var o,s,c,u,l=a[i];t&&ao(t,l,!1,!0,!0)||(o=function(e,t,n){if(t.typeParameters){if(0<n)return undefined;for(var r=1;r<e.length;r++)if(!ao(e[r],t,!1,!1,!1))return undefined;return[t]}for(var i,r=0;r<e.length;r++){var a=r===n?t:ao(e[r],t,!0,!0,!0);if(!a)return undefined;i=Ub.appendIfUnique(i,a)}return i}(e,l,r))&&(s=l,1<o.length&&(u=l.thisParameter,(c=Ub.forEach(o,function(e){return e.thisParameter}))&&(u=Ed(c,Pc(Ub.map(o,function(e){return e.thisParameter?pa(e.thisParameter):ge}),2))),(s=ro(l,o)).thisParameter=u),(t=t||[]).push(s))}}if(!Ub.length(t)&&-1!==n){for(var d=e[n!==undefined?n:0],p=d.slice(),f=function f(e){if(e!==d){var l=e[0];if(Ub.Debug.assert(!!l,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(p=l.typeParameters&&Ub.some(p,function(e){return!!e.typeParameters})?undefined:Ub.map(p,function(e){return n=l,r=(t=e).declaration,i=function(e,t){for(var n=Ph(e)>=Ph(t)?e:t,r=n===e?t:e,i=Ph(n),a=Mh(e)||Mh(t),o=a&&!Mh(n),s=new Array(i+(o?1:0)),c=0;c<i;c++){var u=wh(n,c),l=wh(r,c)||ve,d=Rc([u,l]),p=a&&!o&&c===i-1,f=c>=Lh(n)&&c>=Lh(r),_=kh(e,c),h=kh(t,c),g=zn(1|(f&&!p?16777216:0),_===h?_:"arg"+c);g.type=p?Tc(d):d,s[c]=g}{var m;o&&((m=zn(1,"args")).type=Tc(Ah(r,i)),s[i]=m)}return s}(t,n),a=function(e,t){if(!e||!t)return e||t;var n=Pc([pa(e),pa(t)],2);return Ed(e,n)}(t.thisParameter,n.thisParameter),o=Math.max(t.minArgumentCount,n.minArgumentCount),s=t.hasRestParameter||n.hasRestParameter,c=t.hasLiteralTypes||n.hasLiteralTypes,(u=to(r,t.typeParameters||n.typeParameters,a,i,undefined,undefined,o,s,c)).unionSignatures=Ub.concatenate(t.unionSignatures||[t],[n]),u;var t,n,r,i,a,o,s,c,u})))return"break"}},_=0,h=e;_<h.length;_++){if("break"===f(h[_]))break}t=p}return t||Ub.emptyArray}function so(e,t){for(var n=[],r=!1,i=0,a=e;i<a.length;i++){var o=$o(a[i],t);if(!o)return undefined;n.push(o.type),r=r||o.isReadonly}return ws(Pc(n,2),r)}function co(e,t){return e?t?Rc([e,t]):e:t}function uo(e,t){return e?t?ws(Rc([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function lo(e,t){return e&&t&&ws(Pc([e.type,t.type]),e.isReadonly||t.isReadonly)}function po(e){var t,n=Ub.countWhere(e,function(e){return 0<Xo(e,1).length}),r=Ub.map(e,va);return 0<n&&n===Ub.countWhere(r,function(e){return e})&&(t=r.indexOf(!0),r[t]=!1),r}function fo(r){for(var i,a,o=Ub.emptyArray,s=Ub.emptyArray,c=r.types,u=po(c),l=Ub.countWhere(u,function(e){return e}),d=function d(n){var e,t=r.types[n];u[n]||((e=Xo(t,1)).length&&0<l&&(e=Ub.map(e,function(e){var t=no(e);return t.resolvedReturnType=function(e,t,n,r){for(var i=[],a=0;a<t.length;a++)a===r?i.push(e):n[a]&&i.push(bs(Xo(t[a],1)[0]));return Rc(i)}(bs(e),c,u,n),t})),s=Ub.concatenate(s,e)),o=Ub.concatenate(o,Xo(t,0)),i=uo(i,$o(t,0)),a=uo(a,$o(t,1))},e=0;e<c.length;e++)d(e);ri(r,M,o,s,i,a)}function _o(e){var t,n,r,i,a,o,s,c,u=e.symbol;e.target?(ri(e,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined),ri(e,n=ja(So(e.target),e.mapper,!1),t=wu(Xo(e.target,0),e.mapper),c=wu(Xo(e.target,1),e.mapper),r=$u($o(e.target,0),e.mapper),o=$u($o(e.target,1),e.mapper))):2048&u.flags?(ri(e,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined),t=hs((n=qa(u)).get("__call")),c=hs(n.get("__new")),ri(e,n,t,c,r=Vs(u,0),o=Vs(u,1))):(n=M,r=void 0,u.exports&&(n=Or(u),u===ee&&(i=Ub.createMap(),n.forEach(function(e){418&e.flags||i.set(e.escapedName,e)}),n=i)),ri(e,n,Ub.emptyArray,Ub.emptyArray,undefined,undefined),32&u.flags&&(11272192&(a=Ba(s=Na(u))).flags?Wa(n=Ub.createSymbolTable(ni(n)),ko(a)):a===ge&&(r=ws(ge,!1))),o=384&u.flags?Wt:undefined,ri(e,n,Ub.emptyArray,Ub.emptyArray,r,o),8208&u.flags&&(e.callSignatures=hs(u),e.constructSignatures=Ub.filter(e.callSignatures,function(e){return yh(e.declaration)})),32&u.flags&&(s=Na(u),(c=hs(u.members.get("__constructor"))).length||(c=function(e){var t=Xo(Ba(e),1);if(0===t.length)return[to(undefined,e.localTypeParameters,undefined,Ub.emptyArray,e,undefined,0,!1,!1)];for(var n=Ia(e),r=Ub.isInJSFile(n),i=tc(n),a=Ub.length(i),o=[],s=0,c=t;s<c.length;s++){var u,l=c[s],d=ls(l.typeParameters),p=Ub.length(l.typeParameters);(r||d<=a&&a<=p)&&((u=p?Bs(l,ds(i,l.typeParameters,d,r)):no(l)).typeParameters=e.localTypeParameters,u.resolvedReturnType=e,o.push(u))}return o}(s)),e.constructSignatures=c))}function ho(e){if(131069&e.flags)return e;if(4194304&e.flags)return Jc(Yo(e.type));if(16777216&e.flags){if(e.root.isDistributive){var t=e.checkType,n=ho(t);if(n!==t)return Zu(e,Mu(Vu(e.root.checkType,n),e.mapper))}return e}return 1048576&e.flags?Pc(Ub.sameMap(e.types,ho)):2097152&e.flags?Rc(Ub.sameMap(e.types,ho)):Pe}function go(e){return e.typeParameter||(e.typeParameter=Pa(Gr(e.declaration.typeParameter)))}function mo(e){return e.constraintType||(e.constraintType=wo(go(e))||be)}function yo(e){return e.templateType||(e.templateType=e.declaration.type?Xu(Ji(Du(e.declaration.type),!!(4&Io(e))),e.mapper||g):be)}function bo(e){return Ub.getEffectiveConstraintOfTypeParameter(e.declaration.typeParameter)}function vo(e){var t=bo(e);return 180===t.kind&&130===t.operator}function Eo(e){var t,n;return e.modifiersType||(vo(e)?e.modifiersType=Xu(Du(bo(e).type),e.mapper||g):(n=(t=mo(ou(e.declaration)))&&262144&t.flags?wo(t):t,e.modifiersType=n&&4194304&n.flags?Xu(n.type,e.mapper||g):ve)),e.modifiersType}function Io(e){var t=e.declaration;return(t.readonlyToken?39===t.readonlyToken.kind?2:1:0)|(t.questionToken?39===t.questionToken.kind?8:4:0)}function To(e){var t=Io(e);return 8&t?-1:4&t?1:0}function Co(e){var t=To(e),n=Eo(e);return t||(Bo(n)?To(n):0)}function Bo(e){return 32&Ub.getObjectFlags(e)&&qc(mo(e))}function xo(e){var t,n,r,i,a,o,s,c,u;return e.members||(524288&e.flags?4&e.objectFlags?(c=Ga((s=e).target),u=Ub.concatenate(c.typeParameters,[c.thisType]),eo(s,c,u,s.typeArguments&&s.typeArguments.length===u.length?s.typeArguments:Ub.concatenate(s.typeArguments,[s]))):3&e.objectFlags?eo(o=e,Ga(o),Ub.emptyArray,Ub.emptyArray):2048&e.objectFlags?function(e){for(var t=$o(e.source,0),n=Io(e.mappedType),r=!(1&n),i=4&n?0:16777216,a=t&&ws(jd(t.type,e.mappedType,e.constraintType),r&&t.isReadonly),o=Ub.createSymbolTable(),s=0,c=ko(e.source);s<c.length;s++){var u=c[s],l=8192|(r&&ng(u)?8:0),d=zn(4|u.flags&i,u.escapedName,l);d.declarations=u.declarations,d.nameType=u.nameType,d.propertyType=pa(u),d.mappedType=e.mappedType,d.constraintType=e.constraintType,o.set(u.escapedName,d)}ri(e,o,Ub.emptyArray,Ub.emptyArray,a,undefined)}(e):16&e.objectFlags?_o(e):32&e.objectFlags&&function(s){var c,u,l=Ub.createSymbolTable();ri(s,M,Ub.emptyArray,Ub.emptyArray,undefined,undefined);var d=go(s),e=mo(s),p=yo(s.target||s),f=Yo(Eo(s)),_=Io(s),t=y?128:8576;if(vo(s)){for(var n=0,r=ko(f);n<r.length;n++){i(Wc(r[n],t))}(1&f.flags||$o(f,0))&&i(Be),!y&&$o(f,1)&&i(xe)}else kp(ho(e),i);function i(e){var t,n,r,i,a=Mu(s.mapper,Pu([d],[e])),o=Xu(p,a);Ya(e)?(t=Ka(e),n=Ko(f,t),(i=zn(4|((r=!!(4&_||!(8&_)&&n&&16777216&n.flags))?16777216:0),t,!!(1&_||!(2&_)&&n&&ng(n))?8:0)).type=U&&r&&!ll(Ee,o)?yd(o):U&&!r&&n&&16777216&n.flags?hp(o,524288):o,n&&(i.syntheticOrigin=n,i.declarations=n.declarations),i.nameType=e,l.set(t,i)):5&e.flags?c=ws(o,!!(1&_)):8&e.flags&&(u=ws(o,!!(1&_)))}ri(s,l,Ub.emptyArray,Ub.emptyArray,c,u)}(e):1048576&e.flags?(t=e,n=oo(Ub.map(t.types,function(e){return e===rt?[Rt]:Xo(e,0)})),r=oo(Ub.map(t.types,function(e){return Xo(e,1)})),i=so(t.types,0),a=so(t.types,1),ri(t,M,n,r,i,a)):2097152&e.flags&&fo(e)),e}function So(e){return 524288&e.flags?xo(e).properties:Ub.emptyArray}function No(e,t){if(524288&e.flags){var n=xo(e).members.get(t);if(n&&Kr(n))return n}}function Do(e){if(e.possiblePropertyCache)return e.possiblePropertyCache.size?Ub.arrayFrom(e.possiblePropertyCache.values()):Ub.emptyArray;e.possiblePropertyCache=Ub.createSymbolTable();for(var t=0,n=e.types;t<n.length;t++)for(var r=0,i=ko(n[t]);r<i.length;r++){var a,o=i[r];e.possiblePropertyCache.has(o.escapedName)||(a=zo(e,o.escapedName))&&e.possiblePropertyCache.set(o.escapedName,a)}return e.possiblePropertyCache.size?Ub.arrayFrom(e.possiblePropertyCache.values()):Ub.emptyArray}function ko(e){return(3145728&(e=Yo(e)).flags?function(e){if(!e.resolvedProperties){for(var t=Ub.createSymbolTable(),n=0,r=e.types;n<r.length;n++){for(var i=0,a=ko(r[n]);i<a.length;i++){var o,s=a[i];t.has(s.escapedName)||(o=Uo(e,s.escapedName))&&t.set(s.escapedName,o)}if(1048576&e.flags)break}e.resolvedProperties=ni(t)}return e.resolvedProperties}:So)(e)}function Ao(e){return 262144&e.flags?wo(e):8388608&e.flags?Ro(n=e)?function(e){var t=Vo(e.indexType);if(t&&t!==e.indexType){var n=iu(e.objectType,t);if(n)return n}var r=Vo(e.objectType);return r&&r!==e.objectType?iu(r,e.indexType):undefined}(n):undefined:16777216&e.flags?Ro(t=e)?Mo(t):undefined:Fo(e);var t,n}function wo(e){return Ro(e)?Ls(e):undefined}function Vo(e){var t=$c(e,!1);return t!==e?t:Ao(e)}function Po(e){var t,n,r;return e.resolvedDefaultConstraint||(t=(r=e).resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?Xu(r.root.trueType,r.combinedMapper):uu(r)),n=lu(e),e.resolvedDefaultConstraint=Li(t)?n:Li(n)?t:Pc([t,n])),e.resolvedDefaultConstraint}function Lo(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=$c(e.checkType,!1),n=t===e.checkType?Ao(t):t;if(n&&n!==e.checkType){var r=Zu(e,Mu(Vu(e.root.checkType,n),e.mapper));if(!(131072&r.flags))return r}}return undefined}function Mo(e){return Lo(e)||Po(e)}function Fo(e){if(62128128&e.flags){var t=Ho(e);return t!==Ue&&t!==Ke?t:undefined}return 4194304&e.flags?He:undefined}function Oo(e){return Fo(e)||e}function Ro(e){return Ho(e)!==Ke}function Ho(e){var i=!1;return e.resolvedBaseConstraint||(e.resolvedBaseConstraint=$a(n(e),e));function n(e){if(!e.immediateBaseConstraint){if(!ki(e,4))return Ke;if(50<=_)return Yn(f,Ub.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),i=!0,e.immediateBaseConstraint=Ue;_++;var t,n,r=function(e){if(262144&e.flags){var t=Ls(e);return e.isThisType||!t?t:d(t)}if(3145728&e.flags){for(var n=e.types,r=[],i=0,a=n;i<a.length;i++){var o=d(a[i]);o&&r.push(o)}return 1048576&e.flags&&r.length===n.length?Pc(r):2097152&e.flags&&r.length?Rc(r):undefined}if(4194304&e.flags)return He;if(8388608&e.flags){var s=d(e.objectType),c=d(e.indexType),u=s&&c&&iu(s,c);return u&&d(u)}if(16777216&e.flags){t=Mo(e);_++;var l=t&&d(t);return _--,l}if(33554432&e.flags)return d(e.substitute);return e}($c(e,!1));_--,wi()||(262144&e.flags&&((t=Ps(e))&&(n=Yn(t,Ub.Diagnostics.Type_parameter_0_has_a_circular_constraint,bi(e)),!f||Ub.isNodeDescendantOf(t,f)||Ub.isNodeDescendantOf(f,t)||Ub.addRelatedInfo(n,Ub.createDiagnosticForNode(f,Ub.Diagnostics.Circularity_originates_in_type_at_this_location)))),r=Ke),i&&(r=Ke),e.immediateBaseConstraint=r||Ue}return e.immediateBaseConstraint}function d(e){var t=n(e);return t!==Ue&&t!==Ke?t:undefined}}function jo(e){var t,n,r;return e["default"]?e["default"]===Ze&&(e["default"]=Ke):e.target?(t=jo(e.target),e["default"]=t?Xu(t,e.mapper):Ue):(e["default"]=Ze,r=(n=e.symbol&&Ub.forEach(e.symbol.declarations,function(e){return Ub.isTypeParameterDeclaration(e)&&e["default"]}))?Du(n):Ue,e["default"]===Ze&&(e["default"]=r)),e["default"]}function Wo(e){var t=jo(e);return t!==Ue&&t!==Ke?t:undefined}function Go(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=Ju(e);if(t){var n=wo(t);if(n&&(Zl(n)||ud(n))){var r=Vu(t,n);return Xu(e,Mu(r,e.mapper))}}return e}(e))}function Yo(e){var t,n,r=63176704&e.flags?Fo(e)||ve:e;return 32&Ub.getObjectFlags(r)?Go(r):2097152&r.flags?(n=r).resolvedApparentType||(n.resolvedApparentType=$a(n,n,!0)):132&r.flags?ct:296&r.flags?ut:2112&r.flags?(t=8<=k,(Pt=Pt||oc("BigInt",0,t))||We):528&r.flags?lt:12288&r.flags?cc(2<=k):67108864&r.flags?We:4194304&r.flags?He:2&r.flags&&!U?We:r}function Jo(e,t){for(var n,r,i,a,o,s=Ub.createMap(),c=1048576&e.flags,u=c?24:0,l=c?0:16777216,d=4,p=0,f=0,_=e.types;f<_.length;f++){(B=Yo(_[f]))!==be&&(r=(C=Ko(B,t))?Ub.getDeclarationModifierFlagsFromSymbol(C):0,!C||r&u?c&&((i=!(95===(o=t).charCodeAt(0)&&95===o.charCodeAt(1)&&64===o.charCodeAt(2))&&(Yf(t)&&$o(B,1)||$o(B,0)))?(p|=i.isReadonly?8:0,p|=32,n=Ub.append(n,ud(B)?ld(B)||Ee:i.type)):p|=16):(c?l|=16777216&C.flags:l&=C.flags,a=""+tv(C),s.has(a)||s.set(a,C),p|=(ng(C)?8:0)|(24&r?0:256)|(16&r?512:0)|(8&r?1024:0)|(32&r?2048:0),h_(C)||(d=2)))}if(!s.size)return undefined;var h,g,m,y=Ub.arrayFrom(s.values());if(!(1!==y.length||16&p||n))return y[0];for(var b,v=[],E=!1,I=0,T=y;I<T.length;I++){var C=T[I];b?C.valueDeclaration!==b&&(E=!0):b=C.valueDeclaration,h=Ub.addRange(h,C.declarations);var B=pa(C);g?B!==g&&(p|=64):(g=B,m=C.nameType),id(B)&&(p|=128),v.push(B)}Ub.addRange(v,n);var x=zn(4|l,t,d|p);return x.containingType=e,!E&&b&&(x.valueDeclaration=b).symbol.parent&&(x.parent=b.symbol.parent),x.declarations=h,x.nameType=m,2<v.length?(x.checkFlags|=65536,x.deferralParent=e,x.deferralConstituents=v):x.type=(c?Pc:Rc)(v),x}function zo(e,t){var n=e.propertyCache||(e.propertyCache=Ub.createSymbolTable()),r=n.get(t);return r||(r=Jo(e,t))&&n.set(t,r),r}function Uo(e,t){var n=zo(e,t);return!n||16&Ub.getCheckFlags(n)?undefined:n}function Ko(e,t){if(524288&(e=Yo(e)).flags){var n=xo(e),r=n.members.get(t);if(r&&Kr(r))return r;var i=n===ze?rt:n.callSignatures.length?it:n.constructSignatures.length?at:undefined;if(i){var a=No(i,t);if(a)return a}return No(nt,t)}return 3145728&e.flags?Uo(e,t):undefined}function Zo(e,t){if(3670016&e.flags){var n=xo(e);return 0===t?n.callSignatures:n.constructSignatures}return Ub.emptyArray}function Xo(e,t){return Zo(Yo(e),t)}function qo(e,t){if(3670016&e.flags){var n=xo(e);return 0===t?n.stringIndexInfo:n.numberIndexInfo}}function Qo(e,t){var n=qo(e,t);return n&&n.type}function $o(e,t){return qo(Yo(e),t)}function es(e,t){return Qo(Yo(e),t)}function ts(e,t){if(vd(e)){for(var n=[],r=0,i=ko(e);r<i.length;r++){var a=i[r];0!==t&&!Yf(a.escapedName)||n.push(pa(a))}if(n.length)return Pc(n,2)}return undefined}function ns(e){for(var t=0,n=Ub.getEffectiveTypeParameterDeclarations(e);t<n.length;t++)var r=n[t],i=Ub.appendIfUnique(i,Pa(r.symbol));return i}function rs(e){var n=[];return e.forEach(function(e,t){ti(t)||n.push(e)}),n}function is(e){return Ub.isInJSFile(e)&&(e.type&&294===e.type.kind||Ub.getJSDocParameterTags(e).some(function(e){var t=e.isBracketed,n=e.typeExpression;return t||!!n&&294===n.type.kind}))}function as(e,t){if(Ub.isExternalModuleNameRelative(e))return undefined;var n=ar(Q,'"'+e+'"',512);return n&&t?Wr(n):n}function os(e){if(Ub.hasQuestionToken(e)||ss(e)||is(e))return!0;if(e.initializer){var t=ps(e.parent),n=e.parent.parameters.indexOf(e);return Ub.Debug.assert(0<=n),n>=Lh(t)}var r=Ub.getImmediatelyInvokedFunctionExpression(e.parent);return!!r&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=r.arguments.length)}function ss(e){if(!Ub.isJSDocParameterTag(e))return!1;var t=e.isBracketed,n=e.typeExpression;return t||!!n&&294===n.type.kind}function cs(e,t,n){return{kind:1,parameterName:e,parameterIndex:t,type:n}}function us(e){return{kind:0,type:e}}function ls(e){var t,n=0;if(e)for(var r=0;r<e.length;r++)(t=e[r]).symbol&&Ub.forEach(t.symbol.declarations,function(e){return Ub.isTypeParameterDeclaration(e)&&e["default"]})||(n=r+1);return n}function ds(e,t,n,r){var i=Ub.length(t);if(!i)return[];var a=Ub.length(e);if(r||n<=a&&a<=i){for(var o=e?e.slice():[],s=a;s<i;s++)o[s]=be;for(var c=$d(r),s=a;s<i;s++){var u=Wo(t[s]);r&&u&&(al(u,ve)||al(u,We))&&(u=ge),o[s]=u?Xu(u,Pu(t,o)):c}return o.length=t.length,o}return e&&e.slice()}function ps(e){var t,n=rr(e);if(!n.resolvedSignature){for(var r,i,a=[],o=!1,s=0,c=void 0,u=!1,l=Ub.getImmediatelyInvokedFunctionExpression(e),d=Ub.isJSDocConstructSignature(e),p=!l&&Ub.isInJSFile(e)&&Ub.isValueSignatureDeclaration(e)&&!Ub.hasJSDocParameterTags(e)&&!Ub.getJSDocType(e),f=d?1:0;f<e.parameters.length;f++){var _=e.parameters[f],h=_.symbol,g=Ub.isJSDocParameterTag(_)?_.typeExpression&&_.typeExpression.type:_.type;h&&4&h.flags&&!Ub.isBindingPattern(_.name)&&(h=sr(_,h.escapedName,67220415,undefined,undefined,!1)),0===f&&"this"===h.escapedName?(u=!0,c=_.symbol):a.push(h),g&&183===g.kind&&(o=!0),ss(_)||_.initializer||_.questionToken||_.dotDotDotToken||l&&a.length>l.arguments.length&&!g||p||is(_)||(s=a.length)}159!==e.kind&&160!==e.kind||Ua(e)||u&&c||(r=159===e.kind?160:159,(i=Ub.getDeclarationOfKind(Gr(e),r))&&(c=(t=Vb(i))&&t.symbol));var m=158===e.kind?Na(Wr(e.parent.symbol)):undefined,y=m?m.localTypeParameters:ns(e),b=Ub.hasRestParameter(e)||Ub.isInJSFile(e)&&function(e,t){if(Ub.isJSDocSignature(e)||!_s(e))return!1;var n=Ub.lastOrUndefined(e.parameters),r=n?Ub.getJSDocParameterTags(n):Ub.getJSDocTags(e).filter(Ub.isJSDocParameterTag),i=Ub.firstDefined(r,function(e){return e.typeExpression&&Ub.isJSDocVariadicType(e.typeExpression.type)?e.typeExpression.type:undefined}),a=zn(3,"args",32768);a.type=i?Tc(Du(i.type)):ft,i&&t.pop();return t.push(a),!0}(e,a);n.resolvedSignature=to(e,y,c,a,undefined,undefined,s,b,o)}return n.resolvedSignature}function fs(e){var t=Ub.isInJSFile(e)?Ub.getJSDocTypeTag(e):undefined,n=t&&t.typeExpression&&G_(Du(t.typeExpression));return n&&xs(n)}function _s(e){var t=rr(e);return t.containsArgumentsReference===undefined&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function n(e){if(!e)return!1;switch(e.kind){case 73:return"arguments"===e.escapedText&&Ub.isExpressionNode(e);case 155:case 157:case 159:case 160:return 150===e.name.kind&&n(e.name);default:return!Ub.nodeStartsNewLexicalEnvironment(e)&&!Ub.isPartOfTypeNode(e)&&!!Ub.forEachChild(e,n)}}(e.body)),t.containsArgumentsReference}function hs(e){if(!e)return Ub.emptyArray;for(var t=[],n=0;n<e.declarations.length;n++){var r=e.declarations[n];if(Ub.isFunctionLike(r)){if(0<n&&r.body){var i=e.declarations[n-1];if(r.parent===i.parent&&r.kind===i.kind&&r.pos===i.end)continue}t.push(ps(r))}}return t}function gs(e){if(e.thisParameter)return pa(e.thisParameter)}function ms(e){return ys(e)!==undefined}function ys(e){var t,n,r,i,a,o,s,c,u,l;return e.resolvedTypePredicate||(e.target?(t=ys(e.target),e.resolvedTypePredicate=t?(u=t,l=e.mapper,Ub.isIdentifierTypePredicate(u)?{kind:1,parameterName:u.parameterName,parameterIndex:u.parameterIndex,type:Xu(u.type,l)}:{kind:0,type:Xu(u.type,l)}):Ft):e.unionSignatures?e.resolvedTypePredicate=function(e){for(var t,n=[],r=0,i=e;r<i.length;r++){var a=ys(i[r]);if(a){if(t){if(!Lc(t,a))return undefined}else t=a;n.push(a.type)}}if(!t)return undefined;var o=Pc(n);return Ub.isIdentifierTypePredicate(t)?cs(t.parameterName,t.parameterIndex,o):us(o)}(e.unionSignatures)||Ft:(r=void 0,(n=e.declaration&&Ub.getEffectiveReturnTypeNode(e.declaration))||!Ub.isInJSFile(e.declaration)||(i=fs(e.declaration))&&e!==i&&(r=ys(i)),e.resolvedTypePredicate=n&&Ub.isTypePredicateNode(n)?(o=e,s=(a=n).parameterName,c=Du(a.type),73===s.kind?cs(s.escapedText,Ub.findIndex(o.parameters,function(e){return e.escapedName===s.escapedText}),c):us(c)):r||Ft),Ub.Debug.assert(!!e.resolvedTypePredicate)),e.resolvedTypePredicate===Ft?undefined:e.resolvedTypePredicate}function bs(e){if(!e.resolvedReturnType){if(!ki(e,3))return be;var t,n,r,i=e.target?Xu(bs(e.target),e.mapper):e.unionSignatures?Pc(Ub.map(e.unionSignatures,bs),2):vs(e.declaration)||yh(e.declaration)&&vh(Gr(e.declaration))||(Ub.nodeIsMissing(e.declaration.body)?ge:zh(e.declaration));wi()||(e.declaration&&((t=Ub.getEffectiveReturnTypeNode(e.declaration))?Yn(t,Ub.Diagnostics.Return_type_annotation_circularly_references_itself):K&&(n=e.declaration,(r=Ub.getNameOfDeclaration(n))?Yn(r,Ub.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ub.declarationNameToString(r)):Yn(n,Ub.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions))),i=ge),e.resolvedReturnType=i}return e.resolvedReturnType}function vs(e){if(158===e.kind)return Na(Wr(e.parent.symbol));if(Ub.isJSDocConstructSignature(e))return Du(e.parameters[0].type);var t,n=Ub.getEffectiveReturnTypeNode(e);if(n)return Du(n);if(159===e.kind&&!Ua(e)){var r=Ub.isInJSFile(e)&&Gi(e);if(r)return r;var i=aa(Ub.getDeclarationOfKind(Gr(e),160));if(i)return i}return(t=fs(e))&&bs(t)}function Es(e){return!e.resolvedReturnType&&0<=Ai(e,3)}function Is(e){if(e.hasRestParameter){var t=pa(e.parameters[e.parameters.length-1]),n=ud(t)?ld(t):t;return n&&es(n,1)}return undefined}function Ts(e,t,n,r){var i=Cs(e,ds(t,e.typeParameters,ls(e.typeParameters),n));if(r){var a=Y_(bs(i));if(a){var o=no(a);o.typeParameters=r;var s=no(i);return s.resolvedReturnType=Ds(o),s}}return i}function Cs(e,t){var n=e.instantiations||(e.instantiations=Ub.createMap()),r=Fs(t),i=n.get(r);return i||n.set(r,i=Bs(e,t)),i}function Bs(e,t){return ju(e,(n=t,Pu(e.typeParameters,n)),!0);var n}function xs(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=ju(t=e,Lu(t.typeParameters),!0)):e;var t}function Ss(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=Ts(t=e,Ub.map(t.typeParameters,function(e){return e.target&&!wo(e.target)?e.target:e}),Ub.isInJSFile(t.declaration))):e;var t}function Ns(e){var t=e.typeParameters;if(t){var n=Lu(t);return ju(e,Pu(t,Ub.map(t,function(e){return Xu(Fo(e),n)||ve})),!0)}return e}function Ds(e){var t,n,r;return e.isolatedSignatureType||(n=158===(t=e.declaration?e.declaration.kind:0)||162===t||167===t,(r=$r(16)).members=M,r.properties=Ub.emptyArray,r.callSignatures=n?Ub.emptyArray:[e],r.constructSignatures=n?[e]:Ub.emptyArray,e.isolatedSignatureType=r),e.isolatedSignatureType}function ks(e){return e.members.get("__index")}function As(e,t){var n=1===t?136:139,r=ks(e);if(r)for(var i=0,a=r.declarations;i<a.length;i++){var o=a[i],s=Ub.cast(o,Ub.isIndexSignatureDeclaration);if(1===s.parameters.length){var c=s.parameters[0];if(c.type&&c.type.kind===n)return s}}return undefined}function ws(e,t,n){return{type:e,isReadonly:t,declaration:n}}function Vs(e,t){var n=As(e,t);return n?ws(n.type?Du(n.type):ge,Ub.hasModifier(n,64),n):undefined}function Ps(e){var t=e.symbol&&Ub.getDeclarationOfKind(e.symbol,151);return t&&Ub.getEffectiveConstraintOfTypeParameter(t)}function Ls(e){var t,n;return e.constraint||(e.target?(t=wo(e.target),e.constraint=t?Xu(t,e.mapper):Ue):(n=Ps(e),e.constraint=n?Du(n):function(e){var t;if(e.symbol)for(var n=0,r=e.symbol.declarations;n<r.length;n++){var i,a,o,s,c,u,l=r[n];177===l.parent.kind&&(165===(i=l.parent.parent).kind?!(o=Ug(a=i))||(s=a.typeArguments.indexOf(l.parent))<o.length&&(!(c=wo(o[s]))||(u=Xu(c,Pu(o,Jg(a,o))))!==e&&(t=Ub.append(t,u))):152===i.kind&&i.dotDotDotToken&&(t=Ub.append(t,Tc(ve))))}return t&&Rc(t)}(e)||Ue)),e.constraint===Ue?undefined:e.constraint}function Ms(e){var t=Ub.getDeclarationOfKind(e.symbol,151),n=Ub.isJSDocTemplateTag(t.parent)?Ub.getHostSignatureFromJSDoc(t.parent):t.parent;return n&&Gr(n)}function Fs(e){var t="";if(e)for(var n=e.length,r=0;r<n;){for(var i=e[r].id,a=1;r+a<n&&e[r+a].id===i+a;)a++;t.length&&(t+=","),t+=i,1<a&&(t+=":"+a),r+=a}return t}function Os(e,t){for(var n=0,r=0,i=e;r<i.length;r++){var a=i[r];a.flags&t||(n|=Ub.getObjectFlags(a))}return 917504&n}function Rs(e,t){var n=Fs(t),r=e.instantiations.get(n);return r||(r=$r(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Os(t,0):0,r.target=e,r.typeArguments=t),r}function Hs(e){var t=Xr(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.typeArguments=e.typeArguments,t}function js(e){return Ub.length(e.target.typeParameters)}function Ws(e,t,n){var r=La(Wr(t)),i=r.localTypeParameters;if(i){var a=Ub.length(e.typeArguments),o=ls(i),s=Ub.isInJSFile(e);if(!(!K&&s)&&(a<o||a>i.length)){var c=s&&Ub.isExpressionWithTypeArguments(e)&&!Ub.isJSDocAugmentsTag(e.parent);if(Yn(e,o===i.length?c?Ub.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:Ub.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?Ub.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Ub.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,bi(r,undefined,2),o,i.length),!s)return be}return Rs(r,Ub.concatenate(r.outerTypeParameters,ds(n,i,o,s)))}return $s(e,t)?r:be}function Gs(e,t){var n=La(e),r=nr(e),i=r.typeParameters,a=Fs(t),o=r.instantiations.get(a);return o||r.instantiations.set(a,o=Xu(n,Pu(i,ds(t,i,ls(i),Ub.isInJSFile(e.valueDeclaration))))),o}function Ys(e){switch(e.kind){case 165:return e.typeName;case 212:var t=e.expression;if(Ub.isEntityNameExpression(t))return t}return undefined}function Js(e,t){return e&&Sr(e,t)||_e}function zs(e,t){var n=tc(e);if(t===_e)return be;var r=Ks(e,t,n);if(r)return r;var i=Ub.isInJSFile(e)&&t.valueDeclaration&&Ub.getJSDocEnumTag(t.valueDeclaration);if(i){var a=rr(i);if(!ki(i,5))return be;var o=i.typeExpression?Du(i.typeExpression):be;return wi()||(o=be,Yn(e,Ub.Diagnostics.Enum_type_0_circularly_references_itself,mi(t))),a.resolvedEnumType=o}var s=Ma(t);if(s)return $s(e,t)?262144&s.flags?qs(s,e):Cu(s):be;if(!(67220415&t.flags&&Qs(e)))return be;var c=Us(e,t,n);return c||(Js(Ys(e),67897832),pa(t))}function Us(e,t,n){var r=pa(t),i=r.symbol&&r.symbol!==t&&Ks(e,r.symbol,n);if(i)return nr(t).resolvedJSDocType=i}function Ks(e,t,n){if(96&t.flags){if(t.valueDeclaration&&t.valueDeclaration.parent&&Ub.isBinaryExpression(t.valueDeclaration.parent)){var r=Us(e,t,n);if(r)return r}return Ws(e,t,n)}if(524288&t.flags)return function(e,t,n){var r=La(t),i=nr(t).typeParameters;if(i){var a=Ub.length(e.typeArguments),o=ls(i);return a<o||a>i.length?(Yn(e,o===i.length?Ub.Diagnostics.Generic_type_0_requires_1_type_argument_s:Ub.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,mi(t),o,i.length),be):Gs(t,n)}return $s(e,t)?r:be}(e,t,n);if(16&t.flags&&Qs(e)&&yh(t.valueDeclaration)){var i=xo(pa(t));if(1===i.callSignatures.length)return bs(i.callSignatures[0])}}function Zs(e,t){if(3&t.flags||t===e)return e;var n=e.id+">"+t.id,r=de.get(n);if(r)return r;var i=Xr(33554432);return i.typeVariable=e,i.substitute=t,de.set(n,i),i}function Xs(e){return 171===e.kind&&1===e.elementTypes.length}function qs(e,t){for(var n;t&&!Ub.isStatement(t)&&297!==t.kind;){var r,i=t.parent;176!==i.kind||t!==i.trueType||(r=function a(e,t,n){return Xs(t)&&Xs(n)?a(e,t.elementTypes[0],n.elementTypes[0]):su(Du(t))===e?Du(n):undefined}(e,i.checkType,i.extendsType))&&(n=Ub.append(n,r)),t=i}return n?Zs(e,Rc(Ub.append(n,e))):e}function Qs(e){return 2097152&e.flags&&(165===e.kind||184===e.kind)}function $s(e,t){if(!e.typeArguments)return 1;Yn(e,Ub.Diagnostics.Type_0_is_not_generic,t?mi(t):e.typeName?Ub.declarationNameToString(e.typeName):"(anonymous)")}function ec(e){var t,n,r,i=rr(e);return i.resolvedType||(n=t=void 0,r=67897832,Qs(e)&&(n=function(e){if(Ub.isIdentifier(e.typeName)){var t=e.typeArguments;switch(e.typeName.escapedText){case"String":return $s(e),Be;case"Number":return $s(e),xe;case"Boolean":return $s(e),Ae;case"Void":return $s(e),Ve;case"Undefined":return $s(e),Ee;case"Null":return $s(e),Te;case"Function":case"function":return $s(e),rt;case"Array":case"array":return t&&t.length?undefined:ft;case"Promise":case"promise":return t&&t.length?undefined:Gh(ge);case"Object":if(t&&2===t.length){if(Ub.isJSDocIndexSignature(e)){var n=Du(t[0]),r=ws(Du(t[1]),!1);return ii(undefined,M,Ub.emptyArray,Ub.emptyArray,n===Be?r:undefined,n===xe?r:undefined)}return ge}return $s(e),ge}}}(e),r|=67220415),n=n||zs(e,t=Js(Ys(e),r)),i.resolvedSymbol=t,i.resolvedType=n),i.resolvedType}function tc(e){return Ub.map(e.typeArguments,Du)}function nc(e){var t=rr(e);return t.resolvedType||(t.resolvedType=Cu(xd(Pg(e.exprName)))),t.resolvedType}function rc(e,t){function n(e){for(var t=0,n=e.declarations;t<n.length;t++){var r=n[t];switch(r.kind){case 241:case 242:case 244:return r}}}if(!e)return t?Je:We;var r=La(e);return 524288&r.flags?Ub.length(r.typeParameters)!==t?(Yn(n(e),Ub.Diagnostics.Global_type_0_must_have_1_type_parameter_s,Ub.symbolName(e),t),t?Je:We):r:(Yn(n(e),Ub.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,Ub.symbolName(e)),t?Je:We)}function ic(e,t){return ac(e,67220415,t?Ub.Diagnostics.Cannot_find_global_value_0:undefined)}function ac(e,t,n){return sr(undefined,e,t,n,e,!1)}function oc(e,t,n){var r=ac(e,67897832,n?Ub.Diagnostics.Cannot_find_global_type_0:undefined);return r||n?rc(r,t):undefined}function sc(e){return mt=mt||ic("Symbol",e)}function cc(e){return(yt=yt||oc("Symbol",0,e))||We}function uc(e){return(vt=vt||oc("Promise",1,e))||Je}function lc(e){return It=It||ic("Promise",e)}function dc(e){return(St=St||oc("AsyncIterable",1,e))||Je}function pc(e){return(Nt=Nt||oc("AsyncIterator",1,e))||Je}function fc(e){return(Dt=Dt||oc("AsyncIterableIterator",1,e))||Je}function _c(e){return(Ct=Ct||oc("Iterable",1,e))||Je}function hc(e){return(Bt=Bt||oc("Iterator",1,e))||Je}function gc(e){return(xt=xt||oc("IterableIterator",1,e))||Je}function mc(e,t){void 0===t&&(t=0);var n=ac(e,67897832,undefined);return n&&rc(n,t)}function yc(e,t){return e!==Je?Rs(e,t):We}function bc(e){return yc((bt=bt||oc("TypedPropertyDescriptor",1,!0))||Je,[e])}function vc(e){return yc(fc(!0),[e])}function Ec(e){return yc(_c(!0),[e])}function Ic(e){return yc(gc(!0),[e])}function Tc(e,t){return yc(t?st:ot,[e])}function Cc(e){return Ub.isTypeOperatorNode(e)&&134===e.operator}function Bc(e,t,n,r,i){var a=e+(n?"+":",")+t+(r?"R":"")+(i&&i.length?","+i.join(","):""),o=oe.get(a);return o||oe.set(a,o=function(e,t,n,r,i){var a,o=[],s=n?e-1:e;if(e){a=new Array(e);for(var c=0;c<e;c++){var u,l=a[c]=ei();c<s&&((u=zn(4|(t<=c?16777216:0),""+c,r?8:0)).type=l,o.push(u))}}for(var d=[],c=t;c<=s;c++)d.push(xu(c));var p=zn(4,"length");p.type=n?xe:Pc(d),o.push(p);var f=$r(12);return f.typeParameters=a,f.outerTypeParameters=undefined,f.localTypeParameters=a,f.instantiations=Ub.createMap(),f.instantiations.set(Fs(f.typeParameters),f),(f.target=f).typeArguments=f.typeParameters,f.thisType=ei(),f.thisType.isThisType=!0,(f.thisType.constraint=f).declaredProperties=o,f.declaredCallSignatures=Ub.emptyArray,f.declaredConstructSignatures=Ub.emptyArray,f.declaredStringIndexInfo=undefined,f.declaredNumberIndexInfo=undefined,f.minLength=t,f.hasRestElement=n,f.readonly=r,f.associatedNames=i,f}(e,t,n,r,i)),o}function xc(e,t,n,r,i){void 0===t&&(t=e.length),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=e.length;if(1===a&&n)return Tc(e[0],r);var o=Bc(a,t,0<a&&n,r,i);return e.length?Rs(o,e):o}function Sc(e,t){var n=e.target;return n.hasRestElement&&(t=Math.min(t,js(e)-1)),xc((e.typeArguments||Ub.emptyArray).slice(t),Math.max(0,n.minLength-t),n.hasRestElement,n.readonly,n.associatedNames&&n.associatedNames.slice(t))}function Nc(e){return e.id}function Dc(e,t){return 0<=Ub.binarySearch(e,t,Nc,Ub.compareValues)}function kc(e,t){var n=Ub.binarySearch(e,t,Nc,Ub.compareValues);return n<0&&(e.splice(~n,0,t),1)}function Ac(e,t,n){var r,i,a=n.flags;return 1048576&a?wc(e,t,n.types):(131072&a||2097152&a&&function(e){for(var t=0,n=0,r=e.types;n<r.length;n++){var i=r[n];if(109440&i.flags&&109440&t)return 1;if(98304&(t|=i.flags)&&67633152&t||67108864&t&&130044&t||132&t&&67238776&t||296&t&&67238612&t||2112&t&&67236796&t||12288&t&&67226620&t||49152&t&&67189756&t)return 1}}(n)||(t|=1835007&a,66846720&a&&(t|=262144),n===ye&&(t|=4194304),!U&&98304&a?131072&Ub.getObjectFlags(n)||(t|=2097152):(i=(r=e.length)&&n.id>e[r-1].id?~r:Ub.binarySearch(e,n,Nc,Ub.compareValues))<0&&e.splice(~i,0,n)),t)}function wc(e,t,n){for(var r=0,i=n;r<i.length;r++){t=Ac(e,t,i[r])}return t}function Vc(e,t){var n=e.length;if(0===n||function(e){var t=e[0];if(1024&t.flags){for(var n=Yr(t.symbol),r=1;r<e.length;r++){var i=e[r];if(!(1024&i.flags)||n!==Yr(i.symbol))return}return 1}}(e))return 1;for(var r=n,i=0;0<r;)for(var a=e[--r],o=0,s=e;o<s.length;o++){var c=s[o];if(a!==c){if(1e5===i)if((t?25e6:1e6)<i/(n-r)*n)return void Yn(f,Ub.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(i++,ul(a,c)&&(!(1&Ub.getObjectFlags(_a(a)))||!(1&Ub.getObjectFlags(_a(c)))||dl(a,c))){Ub.orderedRemoveItemAt(e,r);break}}}return 1}function Pc(e,t,n,r){if(void 0===t&&(t=1),0===e.length)return Pe;if(1===e.length)return e[0];var i=[],a=wc(i,0,e);if(0!==t){if(3&a)return 1&a?4194304&a?ye:ge:ve;switch(t){case 1:11136&a&&function(e,t){for(var n=e.length;0<n;){var r=e[--n];(128&r.flags&&4&t||256&r.flags&&8&t||2048&r.flags&&64&t||8192&r.flags&&4096&t||Bu(r)&&Dc(e,r.regularType))&&Ub.orderedRemoveItemAt(e,n)}}(i,a);break;case 2:if(!Vc(i,!(262144&a)))return be}if(0===i.length)return 65536&a?2097152&a?Te:Ce:32768&a?2097152&a?Ee:Ie:Pe}return Mc(i,66994211&a?0:65536,n,r)}function Lc(e,t){return Ub.isIdentifierTypePredicate(e)?Ub.isIdentifierTypePredicate(t)&&e.parameterIndex===t.parameterIndex:!Ub.isIdentifierTypePredicate(t)}function Mc(e,t,n,r){if(0===e.length)return Pe;if(1===e.length)return e[0];var i=Fs(e),a=se.get(i);return a||(a=Xr(1048576),se.set(i,a),a.objectFlags=t|Os(e,98304),a.types=e,a.aliasSymbol=n,a.aliasTypeArguments=r),a}function Fc(e,t,n){for(var r,i,a,o,s=0,c=n;s<c.length;s++){var u=c[s];r=e,i=t,a=Cu(u),o=void 0,t=2097152&(o=a.flags)?Fc(r,i,a.types):(Sl(a)?8388608&i||(i|=8388608,r.push(a)):(i|=1835007&o,3&o?a===ye&&(i|=4194304):!U&&98304&o||Ub.contains(r,a)||r.push(a)),i)}return t}function Oc(e){var t,n=Ub.findIndex(e,function(e){return!!(65536&Ub.getObjectFlags(e))});if(!(n<0)){for(var r=n+1;r<e.length;){var i=e[r];65536&Ub.getObjectFlags(i)?((t=t||[e[n]]).push(i),Ub.orderedRemoveItemAt(e,r)):r++}if(t){for(var a=[],o=[],s=0,c=t;s<c.length;s++)for(var u=0,l=c[s].types;u<l.length;u++){kc(a,i=l[u])&&(!function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(!Dc(i.types,t)){var a=128&t.flags?Be:256&t.flags?xe:2048&t.flags?Se:8192&t.flags?we:undefined;if(!a||!Dc(i.types,a))return}}return 1}(t,i)||kc(o,i))}return e[n]=Mc(o,65536),1}}}function Rc(e,t,n){var r=[],i=Fc(r,0,e);if(131072&i)return Pe;if(1&i)return 4194304&i?ye:ge;if(!U&&98304&i)return 32768&i?Ee:Te;if((4&i&&128&i||8&i&&256&i||64&i&&2048&i||4096&i&&8192&i)&&function(e,t){for(var n=e.length;0<n;){var r=e[--n];(4&r.flags&&128&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t)&&Ub.orderedRemoveItemAt(e,n)}}(r,i),8388608&i&&524288&i&&Ub.orderedRemoveItemAt(r,Ub.findIndex(r,Sl)),0===r.length)return ve;if(1===r.length)return r[0];var a,o,s,c,u=Fs(r);if(!(p=ce.get(u))){if(1048576&i)if(Oc(r))p=Rc(r,t,n);else{if(1e5<=Ub.reduceLeft(r,function(e,t){return e*(1048576&t.flags?t.types.length:1)},1))return Yn(f,Ub.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),be;var l=Ub.findIndex(r,function(e){return 0!=(1048576&e.flags)}),d=r[l],p=Pc(Ub.map(d.types,function(e){return Rc(Ub.replaceElement(r,l,e))}),1,t,n)}else a=r,o=t,s=n,(c=Xr(2097152)).objectFlags=Os(a,98304),c.types=a,c.aliasSymbol=o,c.aliasTypeArguments=s,p=c;ce.set(u,p)}return p}function Hc(e,t){var n=Xr(4194304);return n.type=e,n.stringsOnly=t,n}function jc(e){return Ub.isIdentifier(e)?xu(Ub.unescapeLeadingUnderscores(e.escapedText)):Cu((Ub.isComputedPropertyName(e)?Jf:Pg)(e))}function Wc(e,t){if(!(24&Ub.getDeclarationModifierFlagsFromSymbol(e))){var n,r=Qa(e).nameType;if(r||Ub.isKnownSymbol(e)||(r="default"===e.escapedName?xu("default"):(n=e.valueDeclaration&&Ub.getNameOfDeclaration(e.valueDeclaration))&&jc(n)||xu(Ub.symbolName(e))),r&&r.flags&t)return r}return Pe}function Gc(e,t){return Pc(Ub.map(ko(e),function(e){return Wc(e,t)}))}function Yc(e){var t=$o(e,1);return t!==Wt?t:undefined}function Jc(e,t,n){return void 0===t&&(t=y),1048576&e.flags?Rc(Ub.map(e.types,function(e){return Jc(e,t,n)})):2097152&e.flags?Pc(Ub.map(e.types,function(e){return Jc(e,t,n)})):sg(e,58982400)?(r=e,t?r.resolvedStringIndexType||(r.resolvedStringIndexType=Hc(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=Hc(r,!1))):32&Ub.getObjectFlags(e)?wp(mo(e),function(e){return!(n&&5&e.flags)}):e===ye?ye:2&e.flags?Pe:131073&e.flags?He:t?!n&&$o(e,0)?Be:Gc(e,128):!n&&$o(e,0)?Pc([Be,xe,Gc(e,8192)]):Yc(e)?Pc([xe,Gc(e,8320)]):Gc(e,8576);var r}function zc(e){if(y)return e;var t=wt=wt||ac("Extract",524288,Ub.Diagnostics.Cannot_find_global_type_0);return t?Gs(t,[e,Be]):Be}function Uc(e){return!K&&(!!(16384&Ub.getObjectFlags(e))||(1048576&e.flags?Ub.every(e.types,Uc):2097152&e.flags?Ub.some(e.types,Uc):!!(63176704&e.flags)&&Uc(Ho(e))))}function Kc(e,t,n,r,i,a,o){var s=a&&191===a.kind?a:undefined,c=Ya(n)?Ka(n):s&&P_(s.argumentExpression,n,!1)?Ub.getPropertyNameForKnownSymbolName(Ub.idText(s.argumentExpression.name)):a&&Ub.isPropertyName(a)?Ub.getPropertyNameForPropertyNameNode(a):undefined;if(c!==undefined){var u=Ko(t,c);if(u){if(s){if(A_(u,s,101===s.expression.kind),Ub.isAssignmentTarget(s)&&(rg(s,u)||ig(s)))return Yn(s.argumentExpression,Ub.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,mi(u)),undefined;4&o&&(rr(a).resolvedSymbol=u)}var l=pa(u);return s&&1!==Ub.getAssignmentTargetKind(s)?Up(s,l):l}if(Ap(t,ud)&&Yf(c)&&0<=+c)return a&&Ap(t,function(e){return!e.target.hasRestElement})&&(d=Zc(a),ud(t)?Yn(d,Ub.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,bi(t),js(t),Ub.unescapeLeadingUnderscores(c)):Yn(d,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,Ub.unescapeLeadingUnderscores(c),bi(t))),y($o(t,1)),Vp(t,function(e){return ld(e)||Ee})}if(!(98304&n.flags)&&cg(n,12716)){if(131073&t.flags)return t;var d,p,f,_,h,g=$o(t,0),m=cg(n,296)&&$o(t,1)||g;if(m)return 1&o&&m===g?(s&&Yn(s,Ub.Diagnostics.Type_0_cannot_be_used_to_index_type_1,bi(n),bi(e)),undefined):(a&&!cg(n,12)?Yn(d=Zc(a),Ub.Diagnostics.Type_0_cannot_be_used_as_an_index_type,bi(n)):y(m),m.type);if(131072&n.flags)return Pe;if(Uc(t))return ge;if(s&&!lg(t))return t.symbol===ee&&c!==undefined&&ee.exports.has(c)&&418&ee.exports.get(c).flags?Yn(s,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,Ub.unescapeLeadingUnderscores(c),bi(t)):!K||z.suppressImplicitAnyIndexErrors||i||(c!==undefined&&B_(c,t)?Yn(s,Ub.Diagnostics.Property_0_is_a_static_member_of_type_1,c,bi(t)):es(t,1)?Yn(s.argumentExpression,Ub.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):(p=void 0,c!==undefined&&(p=S_(c,t))?p!==undefined&&Yn(s.argumentExpression,Ub.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,c,bi(t),p):(f=function(i,e){var a=function a(e,t){void 0===t&&(t=1);var n=No(i,e);if(n){var r=G_(pa(n));if(r&&Lh(r)===t&&"string"===bi(Ah(r,0)))return!0}return!1},t=Ub.isAssignmentTarget(e)?"set":"get";if(!a(t))return undefined;var n=Ub.tryGetPropertyAccessOrIdentifierToString(e);n===undefined?n=t:n+="."+t;return n}(t,s))!==undefined?Yn(s,Ub.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,bi(t),f):(h=void 0,1024&n.flags?h=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,"["+bi(n)+"]",bi(t)):8192&n.flags?(_=xr(n.symbol,s),h=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,"["+_+"]",bi(t))):128&n.flags||256&n.flags?h=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,bi(t)):12&n.flags&&(h=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,bi(n),bi(t))),h=Ub.chainDiagnosticMessages(h,Ub.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,bi(r),bi(t)),yn.add(Ub.createDiagnosticForNodeFromMessageChain(s,h))))),undefined}return Uc(t)?ge:(a&&(d=Zc(a),384&n.flags?Yn(d,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,bi(t)):12&n.flags?Yn(d,Ub.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,bi(t),bi(n)):Yn(d,Ub.Diagnostics.Type_0_cannot_be_used_as_an_index_type,bi(n))),Li(n)?n:undefined);function y(e){e&&e.isReadonly&&s&&(Ub.isAssignmentTarget(s)||Ub.isDeleteTarget(s))&&Yn(s,Ub.Diagnostics.Index_signature_in_type_0_only_permits_reading,bi(t))}}function Zc(e){return 191===e.kind?e.argumentExpression:181===e.kind?e.indexType:150===e.kind?e.expression:e}function Xc(e){return sg(e,59113472)}function qc(e){return sg(e,63176704)}function Qc(e){return 262144&e.flags&&e.isThisType}function $c(e,t){return 8388608&e.flags?function(e,t){var n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Ke?e:e[n];e[n]=Ke;var r=$c(e.objectType,t),i=$c(e.indexType,t),a=function(t,e,n){if(1048576&e.flags){var r=Ub.map(e.types,function(e){return $c(ru(t,e),n)});return(n?Rc:Pc)(r)}}(r,i,t);if(a)return e[n]=a;if(!(63176704&i.flags)){var o=eu(r,i,t);if(o)return e[n]=o}if(Bo(r))return e[n]=Vp(nu(r,e.indexType),function(e){return $c(e,t)});return e[n]=e}(e,t):16777216&e.flags?function(e,t){var n=e.checkType,r=e.extendsType,i=uu(e),a=lu(e);if(131072&a.flags&&su(i)===su(n)){if(1&n.flags||ll(Qu(n),Qu(r)))return $c(i,t);if(tu(n,r))return Pe}else if(131072&i.flags&&su(a)===su(n)){if(!(1&n.flags)&&ll(Qu(n),Qu(r)))return Pe;if(1&n.flags||tu(n,r))return $c(a,t)}return e}(e,t):e}function eu(e,t,n){if(3145728&e.flags){var r=Ub.map(e.types,function(e){return $c(ru(e,t),n)});return(2097152&e.flags||n?Rc:Pc)(r)}}function tu(e,t){return 131072&Pc([co(e,t),Pe]).flags}function nu(e,t){var n=Pu([go(e)],[t]),r=Mu(e.mapper,n);return Xu(yo(e),r)}function ru(e,t,n){return iu(e,t,n,0)||(n?be:ve)}function iu(e,t,n,r){if(void 0===r&&(r=0),e===ye||t===ye)return ye;if(!Nl(e)||98304&t.flags||!cg(t,12)||(t=Be),qc(t)||(!n||181===n.kind)&&Xc(e)){if(3&e.flags)return e;var i=e.id+","+t.id,a=le.get(i);return a||le.set(i,(o=e,s=t,(c=Xr(8388608)).objectType=o,c.indexType=s,a=c)),a}var o,s,c,u=Yo(e);if(!(1048576&t.flags)||16&t.flags)return Kc(e,u,t,t,!1,n,4|r);for(var l=[],d=!1,p=0,f=t.types;p<f.length;p++){var _=Kc(e,u,f[p],t,d,n,r);if(_)l.push(_);else{if(!n)return undefined;d=!0}}return d?undefined:(2&r?Rc:Pc)(l)}function au(e){var t,n,r,i=rr(e);return i.resolvedType||(r=ru(t=Du(e.objectType),n=Du(e.indexType),e),i.resolvedType=8388608&r.flags&&r.objectType===t&&r.indexType===n?qs(r,e):r),i.resolvedType}function ou(e){var t,n=rr(e);return n.resolvedType||((t=$r(32,e.symbol)).declaration=e,t.aliasSymbol=hu(e),t.aliasTypeArguments=gu(t.aliasSymbol),mo(n.resolvedType=t)),n.resolvedType}function su(e){return 33554432&e.flags?e.typeVariable:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?ru(su(e.objectType),su(e.indexType)):e}function cu(e,t){var n=Xu(e.checkType,t),r=Xu(e.extendsType,t);if(n===ye||r===ye)return ye;var i,a,o=sg(n,63307776);e.inferTypeParameters&&(a=wd(e.inferTypeParameters,undefined,0),o||zd(a.inferences,n,r,192),i=Mu(t,a.mapper));var s=i?Xu(e.extendsType,i):r;if(!o&&!sg(s,63307776)){if(3&s.flags)return Xu(e.trueType,i||t);if(1&n.flags)return Pc([Xu(e.trueType,i||t),Xu(e.falseType,t)]);if(!ll(qu(n),qu(s)))return Xu(e.falseType,t);if(ll(Qu(n),Qu(s)))return Xu(e.trueType,i||t)}var c=su(n),u=Xr(16777216);return u.root=e,u.checkType=c,u.extendsType=r,u.mapper=t,u.combinedMapper=i,u.aliasSymbol=e.aliasSymbol,u.aliasTypeArguments=Au(e.aliasTypeArguments,t),u}function uu(e){return e.resolvedTrueType||(e.resolvedTrueType=Xu(e.root.trueType,e.mapper))}function lu(e){return e.resolvedFalseType||(e.resolvedFalseType=Xu(e.root.falseType,e.mapper))}function du(e){var t;return e.locals&&e.locals.forEach(function(e){262144&e.flags&&(t=Ub.append(t,La(e)))}),t}function pu(e){var t=rr(e);if(!t.resolvedType){if(e.isTypeOf&&e.typeArguments)return Yn(e,Ub.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=_e,t.resolvedType=be;if(!Ub.isLiteralImportTypeNode(e))return Yn(e.argument,Ub.Diagnostics.String_literal_expected),t.resolvedSymbol=_e,t.resolvedType=be;var n=e.isTypeOf?67220415:2097152&e.flags?68008959:67897832,r=Dr(e,e.argument.literal);if(!r)return t.resolvedSymbol=_e,t.resolvedType=be;var i=Vr(r,!1);if(Ub.nodeIsMissing(e.qualifier)){i.flags&n?fu(e,t,i,n):(Yn(e,67220415==n?Ub.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Ub.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),t.resolvedSymbol=_e,t.resolvedType=be)}else{for(var a,o=function l(e){return Ub.isIdentifier(e)?[e]:Ub.append(l(e.left),e.right)}(e.qualifier),s=i;a=o.shift();){var c=o.length?1920:n,u=ar(Or(Wr(Er(s))),a.escapedText,c);if(!u)return Yn(a,Ub.Diagnostics.Namespace_0_has_no_exported_member_1,xr(s),Ub.declarationNameToString(a)),t.resolvedType=be;rr(a).resolvedSymbol=u,s=rr(a.parent).resolvedSymbol=u}fu(e,t,s,n)}}return t.resolvedType}function fu(e,t,n,r){var i=Er(n);return t.resolvedSymbol=i,t.resolvedType=67220415===r?pa(n):zs(e,i)}function _u(e){var t,n,r=rr(e);return r.resolvedType||(t=hu(e),0!==qa(e.symbol).size||t?((n=$r(16,e.symbol)).aliasSymbol=t,n.aliasTypeArguments=gu(t),Ub.isJSDocTypeLiteral(e)&&e.isArrayType&&(n=Tc(n)),r.resolvedType=n):r.resolvedType=Ye),r.resolvedType}function hu(e){return Ub.isTypeAlias(e.parent)?Gr(e.parent):undefined}function gu(e){return e?ba(e):undefined}function mu(e){return 524288&e.flags&&!Bo(e)}function yu(t,n,r,i,a){if(1&t.flags||1&n.flags)return ge;if(2&t.flags||2&n.flags)return ve;if(131072&t.flags)return n;if(131072&n.flags)return t;if(1048576&t.flags)return Vp(t,function(e){return yu(e,n,r,i,a)});if(1048576&n.flags)return Vp(n,function(e){return yu(t,e,r,i,a)});if(71307260&n.flags)return t;if(Xc(t)||Xc(n)){if(xl(t))return n;if(2097152&t.flags){var e=t.types,o=e[e.length-1];if(mu(o)&&mu(n))return Rc(Ub.concatenate(e.slice(0,e.length-1),[yu(o,n,r,i,a)]))}return Rc([t,n])}for(var s,c=Ub.createSymbolTable(),u=Ub.createUnderscoreEscapedMap(),l=t===We?(s=$o(n,0),$o(n,1)):(s=lo($o(t,0),$o(n,0)),lo($o(t,1),$o(n,1))),d=0,p=ko(n);d<p.length;d++){var f=p[d];24&Ub.getDeclarationModifierFlagsFromSymbol(f)?u.set(f.escapedName,!0):bu(f)&&c.set(f.escapedName,vu(f,a))}for(var _=0,h=ko(t);_<h.length;_++){var g,m,y,b=h[_];!u.has(b.escapedName)&&bu(b)&&(c.has(b.escapedName)?(g=pa(f=c.get(b.escapedName)),16777216&f.flags&&(m=Ub.concatenate(b.declarations,f.declarations),(y=zn(4|16777216&b.flags,b.escapedName)).type=Pc([pa(b),hp(g,524288)]),y.leftSpread=b,y.rightSpread=f,y.declarations=m,y.nameType=b.nameType,c.set(b.escapedName,y))):c.set(b.escapedName,vu(b,a)))}var v=ii(r,c,Ub.emptyArray,Ub.emptyArray,Eu(s,a),Eu(l,a));return v.objectFlags|=263296|i,v}function bu(e){return!(106496&e.flags&&e.declarations.some(function(e){return Ub.isClassLike(e.parent)}))}function vu(e,t){var n=65536&e.flags&&!(32768&e.flags);if(!n&&t===ng(e))return e;var r=zn(4|16777216&e.flags,e.escapedName,t?8:0);return r.type=n?Ee:pa(e),r.declarations=e.declarations,r.nameType=e.nameType,r.syntheticOrigin=e,r}function Eu(e,t){return e&&e.isReadonly!==t?ws(e.type,t,e.declaration):e}function Iu(e,t,n){var r=Xr(e);return r.symbol=n,r.value=t,r}function Tu(e){var t;return 2944&e.flags?(e.freshType||((t=Iu(e.flags,e.value,e.symbol)).regularType=e,t.freshType=t,e.freshType=t),e.freshType):e}function Cu(e){return 2944&e.flags?e.regularType:1048576&e.flags?Pc(Ub.sameMap(e.types,Cu)):e}function Bu(e){return!!(2944&e.flags)&&e.freshType===e}function xu(e,t,n){var r,i=(t||"")+("number"==typeof e?"#":"string"==typeof e?"@":"n")+("object"===zb(e)?Ub.pseudoBigIntToString(e):e),a=ue.get(i);return a||(r=("number"==typeof e?256:"string"==typeof e?128:2048)|(t?1024:0),ue.set(i,a=Iu(r,e,n)),a.regularType=a),a}function Su(e){if(Ub.isValidESSymbolDeclaration(e)){var t=Gr(e),n=nr(t);return n.uniqueESSymbolType||(n.uniqueESSymbolType=(r=t,(i=Xr(8192)).symbol=r,i.escapedName="__@"+i.symbol.escapedName+"@"+tv(i.symbol),i))}var r,i;return we}function Nu(e){var t,n,r,i=rr(e);return i.resolvedType||(i.resolvedType=(t=e,n=Ub.getThisContainer(t,!1),!(r=n&&n.parent)||!Ub.isClassLike(r)&&242!==r.kind||Ub.hasModifier(n,32)||158===n.kind&&!Ub.isNodeDescendantOf(t,n.body)?(Yn(t,Ub.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),be):Na(Gr(r)).thisType)),i.resolvedType}function Du(e){switch(e.kind){case 121:case 290:case 291:return ge;case 144:return ve;case 139:return Be;case 136:return xe;case 147:return Se;case 124:return Ae;case 140:return we;case 107:return Ve;case 142:return Ee;case 97:return Te;case 133:return Pe;case 137:return 65536&e.flags?ge:Oe;case 179:case 101:return Nu(e);case 183:return(D=rr(N=e)).resolvedType||(D.resolvedType=Cu(Pg(N.literal))),D.resolvedType;case 165:return ec(e);case 164:return Ae;case 212:return ec(e);case 168:return nc(e);case 170:return(S=rr(x=e)).resolvedType||(S.resolvedType=Tc(Du(x.elementType),Cc(x.parent))),S.resolvedType;case 171:return(B=rr(v=e)).resolvedType||(E=Ub.lastOrUndefined(v.elementTypes),I=E&&173===E.kind?E:undefined,T=Ub.findLastIndex(v.elementTypes,function(e){return 172!==e.kind&&e!==I})+1,C=Ub.map(v.elementTypes,function(e){var t=Du(e);return e===I&&es(t,1)||t}),B.resolvedType=xc(C,T,!!I,Cc(v.parent))),B.resolvedType;case 172:return b=Du(e.type),U?yd(b):b;case 174:return(y=rr(g=e)).resolvedType||(m=hu(g),y.resolvedType=Pc(Ub.map(g.types,Du),1,m,gu(m))),y.resolvedType;case 175:return(h=rr(f=e)).resolvedType||(_=hu(f),h.resolvedType=Rc(Ub.map(f.types,Du),_,gu(_))),h.resolvedType;case 292:return p=Du(e.type),U?md(p,65536):p;case 294:return Ji(Du(e.type));case 178:case 173:case 293:case 289:return Du(e.type);case 296:return function(e){var t=Du(e.type),n=e.parent,r=e.parent.parent;if(Ub.isJSDocTypeExpression(e.parent)&&Ub.isJSDocParameterTag(r)){var i=Ub.getHostSignatureFromJSDoc(r);if(i){var a=Ub.lastOrUndefined(i.parameters),o=Ub.getParameterSymbolFromJSDoc(r);if(!a||o&&a.symbol===o&&Ub.isRestParameter(a))return Tc(t)}}if(Ub.isParameter(n)&&Ub.isJSDocFunctionType(n.parent))return Tc(t);return Ji(t)}(e);case 166:case 167:case 169:case 298:case 295:case 299:return _u(e);case 180:return function(e){var t=rr(e);if(!t.resolvedType)switch(e.operator){case 130:t.resolvedType=Jc(Du(e.type));break;case 143:t.resolvedType=140===e.type.kind?Su(Ub.walkUpParenthesizedTypes(e.parent)):be;break;case 134:t.resolvedType=Du(e.type)}return t.resolvedType}(e);case 181:return au(e);case 182:return ou(e);case 176:return(d=rr(i=e)).resolvedType||(a=Du(i.checkType),s=gu(o=hu(i)),c=ma(i,!0),u=s?c:Ub.filter(c,function(e){return Yu(e,i)}),l={node:i,checkType:a,extendsType:Du(i.extendsType),trueType:Du(i.trueType),falseType:Du(i.falseType),isDistributive:!!(262144&a.flags),inferTypeParameters:du(i),outerTypeParameters:u,instantiations:undefined,aliasSymbol:o,aliasTypeArguments:s},d.resolvedType=cu(l,undefined),u&&(l.instantiations=Ub.createMap(),l.instantiations.set(Fs(u),d.resolvedType))),d.resolvedType;case 177:return(r=rr(n=e)).resolvedType||(r.resolvedType=Pa(Gr(n.typeParameter))),r.resolvedType;case 184:return pu(e);case 73:case 149:var t=Vy(e);return t?La(t):be;default:return be}var n,r,i,a,o,s,c,u,l,d,p,f,_,h,g,m,y,b,v,E,I,T,C,B,x,S,N,D}function ku(e,t,n){if(e&&e.length)for(var r=0;r<e.length;r++){var i=e[r],a=n(i,t);if(i!==a){var o=0===r?[]:e.slice(0,r);for(o.push(a),r++;r<e.length;r++)o.push(n(e[r],t));return o}}return e}function Au(e,t){return ku(e,t,Xu)}function wu(e,t){return ku(e,t,ju)}function Vu(t,n){return function(e){return e===t?n:e}}function Pu(e,t){return Ub.Debug.assert(t===undefined||e.length===t.length),1===e.length?Vu(e[0],t?t[0]:ge):2===e.length?(i=e[0],a=t?t[0]:ge,o=e[1],s=t?t[1]:ge,function(e){return e===i?a:e===o?s:e}):(n=e,r=t,function(e){for(var t=0;t<n.length;t++)if(e===n[t])return r?r[t]:ge;return e});var n,r,i,a,o,s}function Lu(e){return Pu(e,undefined)}function Mu(t,n){return t?n?function(e){return Xu(t(e),n)}:t:n}function Fu(t,n,r){return function(e){return e===t?n:r(e)}}function Ou(e){return 262144&e.flags?ye:e}function Ru(e){return 262144&e.flags?(t=e).constraint===ve?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=ei(t.symbol),t.restrictiveInstantiation.constraint=ve,t.restrictiveInstantiation):e;var t}function Hu(e){var t=ei(e.symbol);return t.target=e,t}function ju(e,t,n){var r;if(e.typeParameters&&!n){r=Ub.map(e.typeParameters,Hu),t=Mu(Pu(e.typeParameters,r),t);for(var i=0,a=r;i<a.length;i++){a[i].mapper=t}}var o=to(e.declaration,r,e.thisParameter&&Wu(e.thisParameter,t),ku(e.parameters,t,Wu),undefined,undefined,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes);return o.target=e,o.mapper=t,o}function Wu(e,t){var n=nr(e);if(n.type&&!sg(n.type,63700992))return e;1&Ub.getCheckFlags(e)&&(e=n.target,t=Mu(n.mapper,t));var r=zn(e.flags,e.escapedName,1|53256&Ub.getCheckFlags(e));return r.declarations=e.declarations,r.parent=e.parent,r.target=e,r.mapper=t,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.nameType&&(r.nameType=e.nameType),r}function Gu(e,t){var n,r,i,a,o,s=64&e.objectFlags?e.target:e,c=s.symbol,u=nr(c),l=u.outerTypeParameters;if(l||(n=c.declarations[0],Ub.isInJSFile(n)&&(!(r=Ub.findAncestor(n,Ub.isJSDocParameterTag))||(i=Ub.getParameterSymbolFromJSDoc(r))&&(n=i.valueDeclaration)),o=ma(n,!0),yh(n)&&(a=ns(n),o=Ub.addRange(o,a)),l=o||Ub.emptyArray,l=2048&c.flags&&!s.aliasTypeArguments?Ub.filter(l,function(e){return Yu(e,n)}):l,(u.outerTypeParameters=l).length&&(u.instantiations=Ub.createMap(),u.instantiations.set(Fs(l),s))),l.length){var d,p=64&e.objectFlags?Mu(e.mapper,t):t,f=Ub.map(l,p),_=Fs(f),h=u.instantiations.get(_);return h||(d=Pu(l,f),h=(32&s.objectFlags?function(f,_){var h=Ju(f);if(h){var e=Xu(h,_);if(h!==e)return Vp(e,function(e){if(61603843&e.flags&&e!==ye&&e!==be){var t=Fu(h,e,_);return Zl(e)?(l=e,(p=Uu(d=f,xe,!0,t))===be?be:Tc(p,zu(Xl(l),Io(d)))):ud(e)?(r=f,i=t,a=(n=e).target.minLength,o=Ub.map(n.typeArguments||Ub.emptyArray,function(e,t){return Uu(r,xu(""+t),a<=t,i)}),s=Io(r),c=4&s?0:8&s?js(n)-(n.target.hasRestElement?1:0):a,u=zu(n.target.readonly,s),Ub.contains(o,be)?be:xc(o,c,n.target.hasRestElement,u,n.target.associatedNames)):Ku(f,t)}var n,r,i,a,o,s,c,u,l,d,p;return e})}return Ku(f,_)}:Ku)(s,d),u.instantiations.set(_,h)),h}return e}function Yu(n,e){if(n.symbol&&n.symbol.declarations&&1===n.symbol.declarations.length){for(var t=n.symbol.declarations[0].parent,r=e;r!==t;r=r.parent)if(!r||219===r.kind||176===r.kind&&Ub.forEachChild(r.extendsType,i))return!0;return!!Ub.forEachChild(e,i)}return!0;function i(e){switch(e.kind){case 179:return!!n.isThisType;case 73:return!n.isThisType&&Ub.isPartOfTypeNode(e)&&!(149===(t=e).kind||165===t.parent.kind&&t.parent.typeArguments&&t===t.parent.typeName)&&Du(e)===n;case 168:return!0}var t;return!!Ub.forEachChild(e,i)}}function Ju(e){var t=mo(e);if(4194304&t.flags){var n=su(t.type);if(262144&n.flags)return n}return undefined}function zu(e,t){return!!(1&t)||!(2&t)&&e}function Uu(e,t,n,r){var i=Mu(r,Pu([go(e)],[t])),a=Xu(yo(e.target||e),i),o=Io(e);return U&&4&o&&!ll(Ee,a)?yd(a):U&&8&o&&n?hp(a,524288):a}function Ku(e,t){var n,r,i=$r(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(i.declaration=e.declaration,r=Hu(n=go(e)),t=Mu(Vu(n,i.typeParameter=r),t),r.mapper=t),i.target=e,i.mapper=t,i.aliasSymbol=e.aliasSymbol,i.aliasTypeArguments=Au(e.aliasTypeArguments,t),i}function Zu(e,t){var n=e.root;if(n.outerTypeParameters){var r=Ub.map(n.outerTypeParameters,t),i=Fs(r),a=n.instantiations.get(i);return a||(a=function(t,n){if(t.isDistributive){var r=t.checkType,e=n(r);if(r!==e&&1179648&e.flags)return Vp(e,function(e){return cu(t,Fu(r,e,n))})}return cu(t,n)}(n,Pu(n.outerTypeParameters,r)),n.instantiations.set(i,a)),a}return e}function Xu(e,t){if(!e||!t||t===g)return e;if(50===o)return Yn(f,Ub.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),be;o++;var n=function(e,t){var n=e.flags;if(262144&n)return t(e);if(524288&n){var r=e.objectFlags;if(16&r)return Od(e)?Gu(e,t):e;if(32&r)return Gu(e,t);if(4&r){var i=e.typeArguments,a=Au(i,t);return a!==i?Rs(e.target,a):e}return e}if(1048576&n&&!(131068&n)){var o=e.types;return(s=Au(o,t))!==o?Pc(s,1,e.aliasSymbol,Au(e.aliasTypeArguments,t)):e}if(2097152&n){var s,o=e.types;return(s=Au(o,t))!==o?Rc(s,e.aliasSymbol,Au(e.aliasTypeArguments,t)):e}if(4194304&n)return Jc(Xu(e.type,t));if(8388608&n)return ru(Xu(e.objectType,t),Xu(e.indexType,t));if(16777216&n)return Zu(e,Mu(e.mapper,t));if(33554432&n){var c=Xu(e.typeVariable,t);if(8650752&c.flags)return Zs(c,Xu(e.substitute,t));var u=Xu(e.substitute,t);return 3&u.flags||ll(Qu(c),Qu(u))?c:u}return e}(e,t);return o--,n}function qu(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Xu(e,Ou))}function Qu(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Xu(e,Ru),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function $u(e,t){return e&&ws(Xu(e.type,t),e.isReadonly,e.declaration)}function el(e){switch(Ub.Debug.assert(157!==e.kind||Ub.isObjectLiteralMethod(e)),e.kind){case 197:case 198:case 157:return tl(e);case 189:return Ub.some(e.properties,el);case 188:return Ub.some(e.elements,el);case 206:return el(e.whenTrue)||el(e.whenFalse);case 205:return 55===e.operatorToken.kind&&(el(e.left)||el(e.right));case 276:return el(e.initializer);case 196:return el(e.expression);case 269:return Ub.some(e.properties,el)||Ub.isJsxOpeningElement(e.parent)&&Ub.some(e.parent.parent.children,el);case 268:var t=e.initializer;return!!t&&el(t);case 271:var n=e.expression;return!!n&&el(n)}return!1}function tl(e){if(e.typeParameters)return!1;if(Ub.some(e.parameters,function(e){return!Ub.getEffectiveTypeAnnotationNode(e)}))return!0;if(198!==e.kind){var t=Ub.firstOrUndefined(e.parameters);if(!t||!Ub.parameterIsThisKeyword(t))return!0}return nl(e)}function nl(e){return!!e.body&&219!==e.body.kind&&el(e.body)}function rl(e){return(Ub.isInJSFile(e)&&Ub.isFunctionDeclaration(e)||Mf(e)||Ub.isObjectLiteralMethod(e))&&tl(e)}function il(e){if(524288&e.flags){var t=xo(e);if(t.constructSignatures.length||t.callSignatures.length){var n=$r(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=Ub.emptyArray,n.constructSignatures=Ub.emptyArray,n}}else if(2097152&e.flags)return Rc(Ub.map(e.types,il));return e}function al(e,t){return Al(e,t,Rn)}function ol(e,t){return Al(e,t,Rn)?-1:0}function sl(e,t){return Al(e,t,Fn)?-1:0}function cl(e,t){return Al(e,t,Mn)?-1:0}function ul(e,t){return Al(e,t,Mn)}function ll(e,t){return Al(e,t,Fn)}function dl(t,n){return 1048576&t.flags?Ub.every(t.types,function(e){return dl(e,n)}):1048576&n.flags?Ub.some(n.types,function(e){return dl(t,e)}):58982400&t.flags?dl(Fo(t)||ve,n):n===nt?!!(67633152&t.flags):n===rt?!!(524288&t.flags)&&fp(t):ha(t,_a(n))}function pl(e,t){return Al(e,t,On)}function fl(e,t){return pl(e,t)||pl(t,e)}function _l(e,t,n,r,i,a){return wl(e,t,Fn,n,r,i,a)}function hl(e,t,n,r,i,a){return gl(e,t,Fn,n,r,i,a)}function gl(e,t,n,r,i,a,o){return!!Al(e,t,n)||(!r||!yl(i,e,t,n,a))&&wl(e,t,n,r,a,o)}function ml(e){return!!(16777216&e.flags||2097152&e.flags&&Ub.some(e.types,ml))}function yl(e,t,n,r,i){if(!e||ml(n))return!1;if(!wl(t,n,r,undefined)&&function(e,t,n,r,i){for(var a=Xo(t,0),o=Xo(t,1),s=0,c=[o,a];s<c.length;s++){var u=c[s];if(Ub.some(u,function(e){var t=bs(e);return!(131073&t.flags)&&wl(t,n,r,undefined)})){var l={};_l(t,n,e,i,undefined,l);var d=l.error;return Ub.addRelatedInfo(d,Ub.createDiagnosticForNode(e,u===o?Ub.Diagnostics.Did_you_mean_to_use_new_with_this_expression:Ub.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(e,t,n,r,i))return!0;switch(e.kind){case 271:case 196:return yl(e.expression,t,n,r,i);case 205:switch(e.operatorToken.kind){case 60:case 27:return yl(e.right,t,n,r,i)}break;case 189:return a=e,o=t,c=r,!(131068&(s=n).flags)&&bl(function(t){var n,r,i,a;return $b(this,function(e){switch(e.label){case 0:if(!Ub.length(t.properties))return[2];n=0,r=t.properties,e.label=1;case 1:if(!(n<r.length))return[3,8];if(i=r[n],Ub.isSpreadAssignment(i))return[3,7];if(!(a=Wc(Gr(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 160:case 159:case 157:case 277:return[3,2];case 276:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:undefined,nameType:a}];case 3:return e.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:Fi(i.name)?Ub.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:undefined}];case 5:return e.sent(),[3,7];case 6:Ub.Debug.assertNever(i),e.label=7;case 7:return n++,[3,1];case 8:return[2]}})}(a),o,s,c);case 188:return function(e,t,n,r){if(131068&n.flags)return!1;if(ed(t))return bl(Il(e,n),t,n,r);var i=Hf(e,1,!0);if(ed(i))return bl(Il(e,n),i,n,r);return!1}(e,t,n,r);case 269:return function(a,e,o,t){var s,n=bl(function(t){var n,r,i;return $b(this,function(e){switch(e.label){case 0:if(!Ub.length(t.properties))return[2];n=0,r=t.properties,e.label=1;case 1:return n<r.length?(i=r[n],Ub.isJsxSpreadAttribute(i)?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:xu(Ub.idText(i.name))}]):[3,4];case 2:e.sent(),e.label=3;case 3:return n++,[3,1];case 4:return[2]}})}(a),e,o,t);if(Ub.isJsxOpeningElement(a.parent)&&Ub.isJsxElement(a.parent.parent)){var r=a.parent.parent,i=a_(r_(a)),c=i===undefined?"children":Ub.unescapeLeadingUnderscores(i),u=xu(c),l=ru(o,u),d=El(r.children);if(!Ub.length(d))return n;var p,f,_=1<Ub.length(d),h=wp(l,td),g=wp(l,function(e){return!td(e)});_?h!==Pe?(p=xc($f(r,0)),n=bl(function(t,n){var r,i,a,o,s;return $b(this,function(e){switch(e.label){case 0:if(!Ub.length(t.children))return[2];i=r=0,e.label=1;case 1:return i<t.children.length?(a=t.children[i],o=xu(i-r),(s=vl(a,o,n))?[4,s]:[3,3]):[3,5];case 2:return e.sent(),[3,4];case 3:r++,e.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(r,m),p,h,t)||n):Al(ru(e,u),l,t)||(n=!0,Yn(r.openingElement.tagName,Ub.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,c,bi(l))):g!==Pe?(f=vl(d[0],u,m))&&(n=bl(function(){return $b(this,function(e){switch(e.label){case 0:return[4,f];case 1:return e.sent(),[2]}})}(),e,o,t)||n):Al(ru(e,u),l,t)||(n=!0,Yn(r.openingElement.tagName,Ub.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,c,bi(l)))}return n;function m(){var e,t,n,r,i;return s||(e=Ub.getTextOfNode(a.parent.tagName),n=(t=a_(r_(a)))===undefined?"children":Ub.unescapeLeadingUnderscores(t),r=ru(o,xu(n)),i=Ub.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2,s=Qb({},i,{key:"!!ALREADY FORMATTED!!",message:Ub.formatMessage(undefined,i,e,n,bi(r))})),s}}(e,t,n,r);case 198:return function(e,t,n,r){if(Ub.isBlock(e.body))return!1;if(Ub.some(e.parameters,Ub.hasType))return!1;var i=G_(t);if(!i)return!1;var a=Xo(n,0);if(!Ub.length(a))return!1;var o=e.body,s=bs(i),c=Pc(Ub.map(a,bs));if(!wl(s,c,r,undefined)){var u=o&&yl(o,s,c,r,undefined);if(u)return u;var l={};if(wl(s,c,r,o,undefined,undefined,l),l.error)return n.symbol&&Ub.length(n.symbol.declarations)&&Ub.addRelatedInfo(l.error,Ub.createDiagnosticForNode(n.symbol.declarations[0],Ub.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!0}return!1}(e,t,n,r)}var a,o,s,c;return!1}function bl(e,t,n,r){for(var i=!1,a=e.next();!a.done;a=e.next()){var o,s,c,u,l,d,p,f,_,h=a.value,g=h.errorNode,m=h.innerExpression,y=h.nameType,b=h.errorMessage,v=iu(n,y);!v||8388608&v.flags||(o=iu(t,y))&&!wl(o,v,r,undefined)&&(m&&yl(m,o,v,r,undefined)||(s={},wl(c=m?Bg(m,0,o):o,v,r,g,b,undefined,s)&&c!==o&&wl(o,v,r,g,b,undefined,s),s.error&&(u=s.error,p=!1,(d=(l=Ya(y)?Ka(y):undefined)!==undefined?Ko(n,l):undefined)||(f=cg(y,296)&&$o(n,1)||$o(n,0)||undefined)&&f.declaration&&!Ub.getSourceFileOfNode(f.declaration).hasNoDefaultLib&&(p=!0,Ub.addRelatedInfo(u,Ub.createDiagnosticForNode(f.declaration,Ub.Diagnostics.The_expected_type_comes_from_this_index_signature))),!p&&(d&&Ub.length(d.declarations)||n.symbol&&Ub.length(n.symbol.declarations))&&(_=d&&Ub.length(d.declarations)?d.declarations[0]:n.symbol.declarations[0],Ub.getSourceFileOfNode(_).hasNoDefaultLib||Ub.addRelatedInfo(u,Ub.createDiagnosticForNode(_,Ub.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!l||8192&y.flags?bi(y):Ub.unescapeLeadingUnderscores(l),bi(n)))))),i=!0)}return i}function vl(e,t,n){switch(e.kind){case 271:return{errorNode:e,innerExpression:e.expression,nameType:t};case 11:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:undefined,nameType:t,errorMessage:n()};case 261:case 262:case 265:return{errorNode:e,innerExpression:e,nameType:t};default:return Ub.Debug.assertNever(e,"Found invalid jsx child")}}function El(e){return Ub.filter(e,function(e){return!Ub.isJsxText(e)||!e.containsOnlyTriviaWhiteSpaces})}function Il(t,n){var r,i,a,o;return $b(this,function(e){switch(e.label){case 0:if(!(r=Ub.length(t.elements)))return[2];i=0,e.label=1;case 1:return i<r?ed(n)&&!Ko(n,""+i)?[3,3]:(a=t.elements[i],Ub.isOmittedExpression(a)?[3,3]:(o=xu(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:e.sent(),e.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function Tl(e,t,n,r,i){return wl(e,t,On,n,r,i)}function Cl(e,t,n,r,i,a,o){if(e===t)return-1;if(!(s=t).typeParameters&&(!s.thisParameter||Li(Dh(s.thisParameter)))&&1===s.parameters.length&&s.hasRestParameter&&(Dh(s.parameters[0])===ft||Li(Dh(s.parameters[0])))&&Li(bs(s)))return-1;var s,c=Ph(t);if(!Mh(t)&&Lh(e)>c)return 0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=z_(e,t=Ss(t),undefined,o));var u=Ph(e),l=Oh(e),d=Oh(t);if(l&&d&&u!==c)return 0;var p=t.declaration?t.declaration.kind:0,f=!n&&D&&157!==p&&156!==p&&158!==p,_=-1,h=gs(e);if(h&&h!==Ve){var g=gs(t);if(g){if(!(v=!f&&o(h,g,!1)||o(g,h,i)))return i&&a(Ub.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;_&=v}}for(var m=l||d?Math.min(u,c):Math.max(u,c),y=l||d?m-1:-1,b=0;b<m;b++){var v,E=(b===y?Vh:Ah)(e,b),I=(b===y?Vh:Ah)(t,b),T=n?undefined:G_(bd(E)),C=n?undefined:G_(bd(I));if(!(v=T&&C&&!ms(T)&&!ms(C)&&(98304&_d(E))==(98304&_d(I))?Cl(C,T,f?2:1,!1,i,a,o):!n&&!f&&o(E,I,!1)||o(I,E,i)))return i&&a(Ub.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,Ub.unescapeLeadingUnderscores(kh(e,b)),Ub.unescapeLeadingUnderscores(kh(t,b))),0;_&=v}if(!r){var B=Es(t)?ge:t.declaration&&yh(t.declaration)?vh(t.declaration.symbol):bs(t);if(B===Ve)return _;var x=Es(e)?ge:e.declaration&&yh(e.declaration)?vh(e.declaration.symbol):bs(e),S=ys(t);if(S){var N=ys(e);if(N)_&=function(e,t,n,r,i){if(e.kind!==t.kind)return n&&(r(Ub.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),r(Ub.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ii(e),Ii(t))),0;if(1===e.kind&&e.parameterIndex!==t.parameterIndex)return n&&(r(Ub.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),r(Ub.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ii(e),Ii(t))),0;var a=i(e.type,t.type,n);0===a&&n&&r(Ub.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ii(e),Ii(t));return a}(N,S,i,a,o);else if(Ub.isIdentifierTypePredicate(S))return i&&a(Ub.Diagnostics.Signature_0_must_be_a_type_predicate,yi(e)),0}else _&=1===n&&o(B,x,!1)||o(x,B,i)}return _}function Bl(e,t){var n=xs(e),r=xs(t),i=bs(n),a=bs(r);return(a===Ve||Al(a,i,Fn)||Al(i,a,Fn))&&0!==Cl(n,r,0,!0,!1,undefined,sl)}function xl(e){return 524288&e.flags?!Bo(e)&&(0===(t=xo(e)).properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo):!!(67108864&e.flags)||(1048576&e.flags?Ub.some(e.types,xl):!!(2097152&e.flags)&&Ub.every(e.types,xl));var t}function Sl(e){return!!(16&Ub.getObjectFlags(e))&&xl(e)}function Nl(e){return 524288&e.flags&&!Bo(e)&&0===ko(e).length&&$o(e,0)&&!$o(e,1)||3145728&e.flags&&Ub.every(e.types,Nl)||!1}function Dl(e,t,n){if(e===t)return 1;var r=tv(e)+","+tv(t),i=Hn.get(r);if(i!==undefined&&(2!==i||!n))return 1===i;if(e.escapedName===t.escapedName&&256&e.flags&&256&t.flags){for(var a=pa(t),o=0,s=ko(pa(e));o<s.length;o++){var c=s[o];if(8&c.flags){var u=Ko(a,c.escapedName);if(!(u&&8&u.flags))return void(n?(n(Ub.Diagnostics.Property_0_is_missing_in_type_1,Ub.symbolName(c),bi(La(t),undefined,64)),Hn.set(r,3)):Hn.set(r,2))}}return Hn.set(r,1),1}Hn.set(r,3)}function kl(e,t,n,r){var i=e.flags,a=t.flags;if(3&a||131072&i||e===ye)return 1;if(!(131072&a)){if(132&i&&4&a)return 1;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return 1;if(296&i&&8&a)return 1;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return 1;if(2112&i&&64&a)return 1;if(528&i&&16&a)return 1;if(12288&i&&4096&a)return 1;if(32&i&&32&a&&Dl(e.symbol,t.symbol,r))return 1;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&Dl(e.symbol,t.symbol,r))return 1;if(2944&i&&2944&a&&e.value===t.value&&Dl(Yr(e.symbol),Yr(t.symbol),r))return 1}if(32768&i&&(!U||49152&a))return 1;if(65536&i&&(!U||65536&a))return 1;if(524288&i&&67108864&a)return 1;if(n===Fn||n===On){if(1&i)return 1;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return 1}}}function Al(e,t,n){if(Bu(e)&&(e=e.regularType),Bu(t)&&(t=t.regularType),e===t||n===On&&!(131072&t.flags)&&kl(t,e,n)||n!==Rn&&kl(e,t,n))return!0;if(524288&e.flags&&524288&t.flags){var r=n.get(Wl(e,t,n));if(r!==undefined)return 1===r}return!!(66846720&e.flags||66846720&t.flags)&&wl(e,t,n,undefined)}function wl(e,t,V,C,B,n,r){var P,x,l,d,p,S,f=0,_=0,h=0,g=!1;Ub.Debug.assert(V!==Rn||!C,"no error reporting in identity checking");var i,a,o,s,c,u=L(e,t,!!C,B);return g?Yn(C,Ub.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,bi(e),bi(t)):P&&(!n||(i=n())&&(P=Ub.concatenateDiagnosticMessageChains(i,P)),s=void 0,B&&C&&!u&&e.symbol&&((a=nr(e.symbol)).originatingImport&&!Ub.isImportCall(a.originatingImport)&&wl(pa(a.target),t,V,undefined)&&(o=Ub.createDiagnosticForNode(a.originatingImport,Ub.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead),s=Ub.append(s,o))),c=Ub.createDiagnosticForNodeFromMessageChain(C,P,s),x&&Ub.addRelatedInfo.apply(void 0,[c].concat(x)),r&&(r.error=c),yn.add(c)),0!==u;function N(e,t,n,r,i){Ub.Debug.assert(!!C),P=Ub.chainDiagnosticMessages(P,e,t,n,r,i)}function D(e,t,n){var r=vi(t,n),i=r[0],a=r[1];262144&n.flags&&n.immediateBaseConstraint!==undefined&&ll(t,n.immediateBaseConstraint)&&N(Ub.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,i,a,bi(n.immediateBaseConstraint)),N(e=e||(V===On?Ub.Diagnostics.Type_0_is_not_comparable_to_type_1:i===a?Ub.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Ub.Diagnostics.Type_0_is_not_assignable_to_type_1),i,a)}function k(e,t,n){if(ed(e)){var r=e.target;return r&&r.readonly&&td(t)&&(!Xl(t)||ud(t)&&!t.target.readonly)?void(n&&N(Ub.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,bi(e),bi(t))):Ql(t)}return ed(t)?Ql(e):!Xl(e)||!Zl(t)||Xl(t)||void(n&&N(Ub.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,bi(e),bi(t)))}function L(e,t,n,r,i){var a;if(void 0===n&&(n=!1),Bu(e)&&(e=e.regularType),Bu(t)&&(t=t.regularType),33554432&e.flags&&(e=e.substitute),33554432&t.flags&&(t=t.typeVariable),25165824&e.flags&&(e=$c(e,!1)),25165824&t.flags&&(t=$c(t,!0)),1048576&t.flags&&524288&e.flags&&t.types.length<=3&&sg(t,98304)&&(1179648&(a=Pp(t,-98305)).flags||(t=a)),e===t)return-1;if(V===Rn)return function(e,t){var n,r=e.flags&t.flags;if(524288&r||8388608&r||16777216&r||4194304&r||33554432&r)return O(e,t,!1,!1);if(3145728&r&&(n=A(e,t))&&(n&=A(t,e)))return n;return 0}(e,t);if(V===On&&!(131072&t.flags)&&kl(t,e,V)||kl(e,t,V,n?N:undefined))return-1;var o,s,c=!!(4096&Ub.getObjectFlags(e)),u=Zd(e)&&32768&Ub.getObjectFlags(e);if(u&&function T(c,u,e,l){if(!K&&16384&Ub.getObjectFlags(u))return!1;if(f_(u)){var d=!!(4096&Ub.getObjectFlags(c));if((V===Fn||V===On)&&(Dp(nt,u)||!d&&xl(u)))return!1;if(e)return T(c,e,undefined,l);for(var p=function p(e){if(o=e,s=c.symbol,o.valueDeclaration&&s.valueDeclaration&&o.valueDeclaration.parent===s.valueDeclaration&&!p_(u,e.escapedName,d)){if(l){var t,n,r,i,a=wp(u,f_);if(!C)return{value:Ub.Debug.fail()};Ub.isJsxAttributes(C)||Ub.isJsxOpeningLikeElement(C)||Ub.isJsxOpeningLikeElement(C.parent)?N(Ub.Diagnostics.Property_0_does_not_exist_on_type_1,mi(e),bi(a)):(t=c.symbol&&Ub.firstOrUndefined(c.symbol.declarations),n=void 0,e.valueDeclaration&&Ub.findAncestor(e.valueDeclaration,function(e){return e===t})&&(r=e.valueDeclaration,Ub.Debug.assertNode(r,Ub.isObjectLiteralElementLike),i=(C=r).name,Ub.isIdentifier(i)&&(n=S_(i,a))),n!==undefined?N(Ub.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,mi(e),bi(a),n):N(Ub.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,mi(e),bi(a)))}return{value:!0}}var o,s},t=0,n=ko(c);t<n.length;t++){var r=n[t],i=p(r);if("object"===zb(i))return i.value}}return!1}(e,t,1048576&t.flags?M(e,t):undefined,n))return n&&D(r,e,t),0;if(V!==On&&!i&&2752508&e.flags&&e!==nt&&2621440&t.flags&&Pl(t)&&(0<ko(e).length||Oy(e))&&!function(e,t,n){for(var r=0,i=ko(e);r<i.length;r++){var a=i[r];if(p_(t,a.escapedName,n))return!0}return!1}(e,t,c))return n&&(o=Xo(e,0),s=Xo(e,1),0<o.length&&L(bs(o[0]),t,!1)||0<s.length&&L(bs(s[0]),t,!1)?N(Ub.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,bi(e),bi(t)):N(Ub.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,bi(e),bi(t))),0;var l,d,p,f,_,h=0,g=P,m=!!i;if(1048576&e.flags)h=(V===On?F:function(e,t,n){for(var r=-1,i=e.types,a=0,o=i;a<o.length;a++){var s=L(o[a],t,n);if(!s)return 0;r&=s}return r})(e,t,n&&!(131068&e.flags));else{if(1048576&t.flags){if((h=w(Id(e),t,n&&!(131068&e.flags)&&!(131068&t.flags)))&&u)if(!G(e,(1048576&t.flags?M(e,t):undefined)||t,n,undefined))return 0}else if(2097152&t.flags){if(m=!0,(h=function(e,t,n){for(var r=-1,i=t.types,a=0,o=i;a<o.length;a++){var s=o[a],c=L(e,s,n,undefined,!0);if(!c)return 0;r&=c}return r}(Id(e),t,n))&&u&&!G(e,t,n,undefined))return 0}else 2097152&e.flags&&(h=F(e,t,!1));!h&&(66846720&e.flags||66846720&t.flags)&&(h=O(e,t,n,m))&&(P=g)}if(!h&&2097152&e.flags&&((l=function(e,t){for(var n,r=!1,i=0,a=e.types;i<a.length;i++){if(63176704&(s=a[i]).flags){for(var o=Ao(s);o&&21233664&o.flags;)o=Ao(o);o&&(n=Ub.append(n,o))}else 67238908&s.flags&&(r=!0)}if(n&&(t||r)){if(r)for(var s,c=0,u=e.types;c<u.length;c++){67238908&(s=u[c]).flags&&(n=Ub.append(n,s))}return Rc(n)}return undefined}(e,!!(1048576&t.flags)))&&(h=L(l,t,n,undefined,m))&&(P=g)),!h&&n){var y,b=S;if(S=undefined,524288&e.flags&&524288&t.flags&&(y=P,k(e,t,n),P!==y&&(b=P)),524288&e.flags&&131068&t.flags)p=t,f=bi(d=e),_=bi(p),(ct===d&&Be===p||ut===d&&xe===p||lt===d&&Ae===p||cc(!1)===d&&we===p)&&N(Ub.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,_,f);else if(e.symbol&&524288&e.flags&&nt===e)N(Ub.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(c&&2097152&t.flags){var v=t.types,E=t_(Kb.IntrinsicAttributes,C),I=t_(Kb.IntrinsicClassAttributes,C);if(E!==be&&I!==be&&(Ub.contains(v,E)||Ub.contains(v,I)))return h}if(!r&&b)return h;D(r,e,t)}return h}function A(e,t){for(var n=-1,r=0,i=e.types;r<i.length;r++){var a=w(i[r],t,!1);if(!a)return 0;n&=a}return n}function w(e,t,n){var r=t.types;if(1048576&t.flags&&Dc(r,e))return-1;for(var i=0,a=r;i<a.length;i++){var o=L(e,a[i],!1);if(o)return o}return n&&L(e,M(e,t)||function(n,e){var r=Ub.getObjectFlags(n);if(20&r&&1048576&e.flags)return Ub.find(e.types,function(e){if(524288&e.flags){var t=r&Ub.getObjectFlags(e);if(4&t)return n.target===e.target;if(16&t)return!!n.aliasSymbol&&n.aliasSymbol===e.aliasSymbol}return!1})}(e,t)||function(e,t){if(128&Ub.getObjectFlags(e)&&kp(t,Ql))return Ub.find(t.types,function(e){return!Ql(e)})}(e,t)||function(e,t){var n=0;if(0<Xo(e,n).length||0<Xo(e,n=1).length)return Ub.find(t.types,function(e){return 0<Xo(e,n).length})}(e,t)||function(e,t){for(var n,r=0,i=0,a=t.types;i<a.length;i++){var o,s=a[i],c=Rc([Jc(e),Jc(s)]);4194304&c.flags?(n=s,r=Infinity):1048576&c.flags?(o=Ub.length(Ub.filter(c.types,rd)),r<=o&&(n=s,r=o)):rd(c)&&r<=1&&(n=s,r=1)}return n}(e,t)||r[r.length-1],!0),0}function M(e,t){if(1048576&t.flags&&2621440&e.flags){var n=ko(e);if(n){var r=up(n,t);if(r)return Vl(t,Ub.map(r,function(e){return[function(){return pa(e)},e.escapedName]}),L)}}return undefined}function F(e,t,n){var r=e.types;if(1048576&e.flags&&Dc(r,t))return-1;for(var i=r.length,a=0;a<i;a++){var o=L(r[a],t,n&&a===i-1);if(o)return o}return 0}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];8&r&&Xu(e[n],R),16&r&&Xu(e[n],H)}}function O(e,t,n,r){if(g)return 0;var i=Wl(e,t,V),a=V.get(i);if(a!==undefined&&(!n||2!==a))return In&&(17301504&e.flags&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&m(e.aliasTypeArguments,Ml(e.aliasSymbol)),4&Ub.getObjectFlags(e)&&4&Ub.getObjectFlags(t)&&e.target===t.target&&Ub.length(e.typeArguments)&&m(e.typeArguments,Ol(e.target))),1===a?-1:0;if(l){for(var o=0;o<f;o++)if(i===l[o])return 1;if(100===_)return g=!0,0}else l=[],d=[],p=[];var s=f;l[f]=i,f++,d[_]=e,p[_]=t,_++;var c=h;1&h||!Jl(e,d,_)||(h|=1),2&h||!Jl(t,p,_)||(h|=2);var u=3!==h?function(e,t,i,n){var a,o,r=e.flags&t.flags;if(V===Rn&&!(524288&r)){if(4194304&r)return L(e.type,t.type,!1);var s=0;return 8388608&r&&(s=L(e.objectType,t.objectType,!1))&&(s&=L(e.indexType,t.indexType,!1))?s:16777216&r&&e.root.isDistributive===t.root.isDistributive&&(s=L(e.checkType,t.checkType,!1))&&(s&=L(e.extendsType,t.extendsType,!1))&&(s&=L(uu(e),uu(t),!1))&&(s&=L(lu(e),lu(t),!1))?s:33554432&r?L(e.substitute,t.substitute,!1):0}var c=!1,u=P;if(17301504&e.flags&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!e.aliasTypeArgumentsContainsMarker&&!t.aliasTypeArgumentsContainsMarker){var l=Ml(e.aliasSymbol);if((N=w(e.aliasTypeArguments,t.aliasTypeArguments,l))!==undefined)return N}if(262144&t.flags){if(32&Ub.getObjectFlags(e)&&L(Jc(t),mo(e))&&!(4&Io(e))){var d=yo(e),p=ru(t,go(e));if(a=L(d,p,i))return a}}else if(4194304&t.flags){if(4194304&e.flags&&(a=L(t.type,e.type,!1)))return a;if((C=Vo(t.type))&&-1===L(e,Jc(C,t.stringsOnly),i))return-1}else if(8388608&t.flags){if(V!==Rn){var f=t.objectType,_=t.indexType,h=Fo(f)||f,g=Fo(_)||_;if(!Xc(h)&&!qc(g))if((C=iu(h,g,undefined,2|(h!==f?1:0)))&&(a=L(e,C,i)))return a}}else if(Bo(t)){var m=yo(t),y=Io(t);if(!(8&y)){if(8388608&m.flags&&m.objectType===e&&m.indexType===go(t))return-1;if(!Bo(e)){var b=mo(t),v=Jc(e,undefined,!0),E=4&y&&1048576&b.flags,I=E?wp(b,function(e){return!!L(e,v)}):undefined;if(E?!(131072&I.flags):L(b,v)){var T=E?I:go(t),p=ru(e,T),d=yo(t);if(a=L(p,d,i))return a}o=P,P=u}}}if(8650752&e.flags){var C;if(8388608&e.flags&&8388608&t.flags){if((a=L(e.objectType,t.objectType,i))&&(a&=L(e.indexType,t.indexType,i)),a)return P=u,a}else if(!(C=Ao(e))||262144&e.flags&&1&C.flags){if(a=L(We,Pp(t,-67108865)))return P=u,a}else{if(a=L(C,t,!1,undefined,n))return P=u,a;if(a=L($a(C,e),t,i,undefined,n))return P=u,a}}else if(4194304&e.flags){if(a=L(He,t,i))return P=u,a}else if(16777216&e.flags)if(16777216&t.flags){if(al(e.extendsType,t.extendsType)&&(L(e.checkType,t.checkType)||L(t.checkType,e.checkType))&&((a=L(uu(e),uu(t),i))&&(a&=L(lu(e),lu(t),i)),a))return P=u,a}else{var B=Lo(e);if(B&&(a=L(B,t,i)))return P=u,a;var x=Po(e);if(x&&(a=L(x,t,i)))return P=u,a}else{if(V!==Mn&&function(e){return 32&Ub.getObjectFlags(e)&&4&Io(e)}(t)&&xl(e))return-1;if(Bo(t))return Bo(e)&&(a=function(e,t,n){var r;if(V===On||(V===Rn?Io(e)===Io(t):Co(e)<=Co(t))){var i=mo(t),a=Xu(mo(e),Co(e)<0?R:H);if(r=L(i,a,n)){var o=Pu([go(e)],[go(t)]);return r&L(Xu(yo(e),o),yo(t),n)}}return 0}(e,t,i))?(P=u,a):0;var S=!!(131068&e.flags);if(V!==Rn&&(e=Yo(e)),4&Ub.getObjectFlags(e)&&4&Ub.getObjectFlags(t)&&e.target===t.target&&!(8192&Ub.getObjectFlags(e)||8192&Ub.getObjectFlags(t))){var N,l=Ol(e.target);if((N=w(e.typeArguments,t.typeArguments,l))!==undefined)return N}else{if(Xl(t)?Zl(e)||ud(e):Zl(t)&&ud(e)&&!e.target.readonly)return L(es(e,1)||ge,es(t,1)||ge,i);if(V===Mn&&xl(t)&&32768&Ub.getObjectFlags(t)&&!xl(e))return 0}if(2621440&e.flags&&524288&t.flags){var D=i&&P===u&&!S;if((a=G(e,t,D,undefined))&&(a&=Y(e,t,0,D))&&(a&=Y(e,t,1,D))&&(a&=J(e,t,0,S,D))&&(a&=J(e,t,1,S,D)),c&&a)P=o||P||u;else if(a)return a}if(2621440&e.flags&&1048576&t.flags){var k=Pp(t,524288);if(1048576&k.flags){var A=function(s,c){var u=up(So(s),c);if(!u)return 0;for(var e=1,t=0,n=u;t<n.length;t++){var r=n[t];if(25<(e*=function(e){return 1048576&e.flags?e.types.length:1}(pa(r))))return 0}for(var i=new Array(u.length),a=Ub.createUnderscoreEscapedMap(),o=0;o<u.length;o++){var l=pa(r=u[o]);i[o]=1048576&l.flags?l.types:[l],a.set(r.escapedName,!0)}for(var d=Ub.cartesianProduct(i),p=[],f=function f(r){var e=!1;e:for(var t=0,n=c.types;t<n.length;t++){for(var i=n[t],a=function a(t){var e=u[t],n=No(i,e.escapedName);return n?e===n?"continue":W(s,c,e,n,function(e){return r[t]},!1)?void 0:"continue-outer":"continue-outer"},o=0;o<u.length;o++){switch(a(o)){case"continue-outer":continue e}}Ub.pushIfUnique(p,i,Ub.equateValues),e=!0}if(!e)return{value:0}},_=0,h=d;_<h.length;_++){var g=h[_],m=f(g);if("object"===zb(m))return m.value}for(var y=-1,b=0,v=p;b<v.length;b++){var E=v[b];if((y&=G(s,E,!1,a))&&(y&=Y(s,E,0,!1))&&(y&=Y(s,E,1,!1))&&(y&=J(s,E,0,!1,!1))&&(y&=J(s,E,1,!1,!1)),!y)return y}return y}(e,k);if(A)return A}}}return 0;function w(e,t,n){if(a=function(e,t,n,r){if(void 0===e&&(e=Ub.emptyArray),void 0===t&&(t=Ub.emptyArray),void 0===n&&(n=Ub.emptyArray),e.length!==t.length&&V===Rn)return 0;for(var i=e.length<=t.length?e.length:t.length,a=-1,o=0;o<i;o++){var s=o<n.length?n[o]:1,c=7&s;if(4!=c){var u=e[o],l=t[o],d=-1;if(8&s?d=V===Rn?L(u,l,!1):ol(u,l):1==c?d=L(u,l,r):2==c?d=L(l,u,r):3==c?d=(d=L(l,u,!1))||L(u,l,r):(d=L(u,l,r))&&(d&=L(l,u,r)),!d)return 0;a&=d}}return a}(e,t,n,i))return a;if(Ub.some(n,function(e){return!!(24&e)}))return o=undefined,P=u,undefined;var r=t&&function(e,t){for(var n=0;n<t.length;n++)if(1==(7&t[n])&&16384&e[n].flags)return!0;return!1}(t,n);if(c=!r,n!==Ub.emptyArray&&!r){if(c&&(!i||!Ub.some(n,function(e){return 0==(7&e)})))return 0;o=P,P=u}}}(e,t,n,r):1;if(h=c,_--,u){if(-1===u||0===_){for(o=s;o<f;o++)V.set(l[o],1);f=s}}else V.set(i,n?3:2),f=s;return u}function R(e){return!In||e!==Xe&&e!==qe&&e!==Mt||In(!1),e}function H(e){return!In||e!==Xe&&e!==qe&&e!==Mt||In(!0),e}function j(e,t){if(!t||0===e.length)return e;for(var n,r=0;r<e.length;r++)t.has(e[r].escapedName)?n=n||e.slice(0,r):n&&n.push(e[r]);return n||e}function W(e,t,n,r,i,a){var o,s=Ub.getDeclarationModifierFlagsFromSymbol(n),c=Ub.getDeclarationModifierFlagsFromSymbol(r);if(8&s||8&c){var u=n.valueDeclaration!==r.valueDeclaration;if(1024&Ub.getCheckFlags(n)&&u)return a&&N(Ub.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,mi(n),bi(e)),0;if(u)return a&&(8&s&&8&c?N(Ub.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,mi(r)):N(Ub.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,mi(r),bi(8&s?e:t),bi(8&s?t:e))),0}else if(16&c){if(o=n,Gl(r,function(e){return!!(16&Ub.getDeclarationModifierFlagsFromSymbol(e))&&(t=o,n=Yl(e),!Gl(t,function(e){var t=Yl(e);return!!t&&ha(t,n)}));var t,n}))return a&&N(Ub.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,mi(r),bi(Yl(n)||e),bi(Yl(r)||t)),0}else if(16&s)return a&&N(Ub.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,mi(r),bi(e),bi(t)),0;var l=function(e,t,n,r){var i=U&&!!(48&Ub.getCheckFlags(t)),a=n(e);if(65536&Ub.getCheckFlags(t)&&!nr(t).type){var o=nr(t);Ub.Debug.assertDefined(o.deferralParent),Ub.Debug.assertDefined(o.deferralConstituents);for(var s=!!(1048576&o.deferralParent.flags),c=s?0:-1,u=0,l=o.deferralConstituents;u<l.length;u++){var d=L(a,l[u],!1,undefined,!s);if(s){if(d)return d}else{if(!d)return L(a,Ji(pa(t),i),r);c&=d}}return s&&!c&&i&&(c=L(a,Ee)),s&&!c&&r?L(a,Ji(pa(t),i),r):c}return L(a,Ji(pa(t),i),r)}(n,r,i,a);return l?V!==On&&16777216&n.flags&&!(16777216&r.flags)?(a&&N(Ub.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,mi(r),bi(e),bi(t)),0):l:(a&&N(Ub.Diagnostics.Types_of_property_0_are_incompatible,mi(r)),0)}function G(e,t,n,r){if(V===Rn)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;var r=j(So(e),n),i=j(So(t),n);if(r.length!==i.length)return 0;for(var a=-1,o=0,s=r;o<s.length;o++){var c=s[o],u=No(t,c.escapedName);if(!u)return 0;var l=zl(c,u,L);if(!l)return 0;a&=l}return a}(e,t,r);var i,a,o,s,c=V===Mn&&!Zd(e)&&!$l(e)&&!ud(e),u=Gd(e,t,c,!1);if(u)return n&&(i=Ub.arrayFrom(Wd(e,t,c,!1)),a=!1,B&&(B.code===Ub.Diagnostics.Class_0_incorrectly_implements_interface_1.code||B.code===Ub.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)||(a=!0),1===i.length?(o=mi(u),N.apply(void 0,[Ub.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,o].concat(vi(e,t))),Ub.length(u.declarations)&&(s=Ub.createDiagnosticForNode(u.declarations[0],Ub.Diagnostics._0_is_declared_here,o),Ub.Debug.assert(!!P),x?x.push(s):x=[s]),a&&(S=P)):k(e,t,!1)&&(5<i.length?N(Ub.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,bi(e),bi(t),Ub.map(i.slice(0,4),function(e){return mi(e)}).join(", "),i.length-4):N(Ub.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,bi(e),bi(t),Ub.map(i,function(e){return mi(e)}).join(", ")),a&&(S=P))),0;if(Zd(t))for(var l=0,d=j(ko(e),r);l<d.length;l++){if(!No(t,(E=d[l]).escapedName)){var p=pa(E);if(p!==Ee&&p!==Ie)return n&&N(Ub.Diagnostics.Property_0_does_not_exist_on_type_1,mi(E),bi(t)),0}}var f=-1;if(ud(t)){var _=ld(t);if(_){if(!ud(e))return 0;var h=ld(e);if(h&&!L(h,_,n))return n&&N(Ub.Diagnostics.Rest_signatures_are_incompatible),0;for(var g=js(t)-1,m=js(e)-(h?1:0),y=g;y<m;y++){if(!(I=L(e.typeArguments[y],_,n)))return n&&N(Ub.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+y),0;f&=I}}}for(var b=0,v=j((1048576&t.flags?Do:ko)(t),r);b<v.length;b++){var E,I,T=v[b];if(!(4194304&T.flags))if((E=Ko(e,T.escapedName))&&E!==T){if(!(I=W(e,t,E,T,pa,n)))return 0;f&=I}}return f}function Y(e,t,n,r){if(V===Rn)return function(e,t,n){var r=Xo(e,n),i=Xo(t,n);if(r.length!==i.length)return 0;for(var a=-1,o=0;o<r.length;o++){var s=Ul(r[o],i[o],!1,!1,!1,L);if(!s)return 0;a&=s}return a}(e,t,n);if(t===ze||e===ze)return-1;var i=e.symbol&&yh(e.symbol.valueDeclaration),a=t.symbol&&yh(t.symbol.valueDeclaration),o=Xo(e,i&&1===n?0:n),s=Xo(t,a&&1===n?0:n);if(1===n&&o.length&&s.length){if(Ub.isAbstractConstructorType(e)&&!Ub.isAbstractConstructorType(t))return r&&N(Ub.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,t,n){if(!e.declaration||!t.declaration)return!0;var r=Ub.getSelectedModifierFlags(e.declaration,24),i=Ub.getSelectedModifierFlags(t.declaration,24);if(8===i)return!0;if(16===i&&8!==r)return!0;if(16!==i&&!r)return!0;n&&N(Ub.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Ti(r),Ti(i));return!1}(o[0],s[0],r))return 0}var c=-1,u=P;if(64&Ub.getObjectFlags(e)&&64&Ub.getObjectFlags(t)&&e.symbol===t.symbol)for(var l=0;l<s.length;l++){if(!(_=b(o[l],s[l],!0,r)))return 0;c&=_}else if(1===o.length&&1===s.length)var d=V===On||!!z.noStrictGenericChecks,c=b(o[0],s[0],d,r);else e:for(var p=0,f=s;p<f.length;p++){for(var _,h=f[p],g=r,m=0,y=o;m<y.length;m++){if(_=b(y[m],h,!0,g)){c&=_,P=u;continue e}g=!1}return g&&N(Ub.Diagnostics.Type_0_provides_no_match_for_the_signature_1,bi(e),yi(h,undefined,undefined,n)),0}return c}function b(e,t,n,r){return Cl(n?xs(e):e,n?xs(t):t,0,!1,r,N,L)}function y(e,t,n,r){for(var i,a,o=-1,s=0,c=So(e);s<c.length;s++){var u=c[s];if((i=e,a=u,!(4096&Ub.getObjectFlags(i))||Xf(a.escapedName))&&(!(u.nameType&&8192&u.nameType.flags)&&(0===n||Yf(u.escapedName)))){var l=L(pa(u),t,r);if(!l)return r&&N(Ub.Diagnostics.Property_0_is_incompatible_with_index_signature,mi(u)),0;o&=l}}return o}function v(e,t,n){var r=L(e.type,t.type,n);return!r&&n&&N(Ub.Diagnostics.Index_signatures_are_incompatible),r}function J(e,t,n,r,i){if(V===Rn)return function(e,t,n){var r=$o(t,n),i=$o(e,n);if(!i&&!r)return-1;if(i&&r&&i.isReadonly===r.isReadonly)return L(i.type,r.type);return 0}(e,t,n);var a=$o(t,n);if(!a||1&a.type.flags&&!r)return-1;var o=$o(e,n)||1===n&&$o(e,0);if(o)return v(o,a,i);if(Bo(e))return 0===n&&L(yo(e),a.type,i);if(vd(e)){var s,c=-1;return 0!==n||(s=$o(e,1))&&(c=v(s,a,i)),c&&(c&=y(e,a.type,n,i)),c}return i&&N(Ub.Diagnostics.Index_signature_is_missing_in_type_0,bi(e)),0}}function Vl(e,t,n,r){for(var i,a=0,o=t;a<o.length;a++)for(var s=o[a],c=s[0],u=s[1],l=0,d=e.types;l<d.length;l++){var p=d[l],f=Pi(p,u);if(f&&n(c(),f)){if(i){if(p===i)continue;return r}i=p}}return i||r}function Pl(e){if(524288&e.flags){var t=xo(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo&&0<t.properties.length&&Ub.every(t.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&e.flags)&&Ub.every(e.types,Pl)}function Ll(e,t,n){var r=Rs(e,Ub.map(e.typeParameters,function(e){return e===t?n:e}));return r.objectFlags|=8192,r}function Ml(i){var a=nr(i);return Fl(a.typeParameters,a,function(e,t,n){var r=Gs(i,Au(a.typeParameters,Vu(t,n)));return r.aliasTypeArgumentsContainsMarker=!0,r})}function Fl(e,s,c){void 0===e&&(e=Ub.emptyArray);var u=s.variances;if(!u){s.variances=Ub.emptyArray,u=[];for(var l=function l(e){var n=!1,r=!1,t=In;In=function In(t){return t?r=!0:n=!0};var i=c(s,e,Xe),a=c(s,e,qe),o=(ll(a,i)?1:0)|(ll(i,a)?2:0);3===o&&ll(c(s,e,Mt),i)&&(o=4),In=t,(n||r)&&(n&&(o|=8),r&&(o|=16)),u.push(o)},t=0,n=e;t<n.length;t++){l(n[t])}s.variances=u}return u}function Ol(e){return e===ot||e===st||8&e.objectFlags?Ub.emptyArray:Fl(e.typeParameters,e,Ll)}function Rl(e){return 262144&e.flags&&!wo(e)}function Hl(e){return!!(4&Ub.getObjectFlags(e))&&Ub.some(e.typeArguments,function(e){return Rl(e)||Hl(e)})}function jl(e,t,n){void 0===n&&(n=0);for(var r=""+e.target.id,i=0,a=e.typeArguments;i<a.length;i++){var o,s=a[i];Rl(s)?((o=t.indexOf(s))<0&&(o=t.length,t.push(s)),r+="="+o):n<4&&Hl(s)?r+="<"+jl(s,t,n+1)+">":r+="-"+s.id}return r}function Wl(e,t,n){var r;if(n===Rn&&e.id>t.id&&(r=e,e=t,t=r),Hl(e)&&Hl(t)){var i=[];return jl(e,i)+","+jl(t,i)}return e.id+","+t.id}function Gl(e,t){if(6&Ub.getCheckFlags(e)){for(var n=0,r=e.containingType.types;n<r.length;n++){var i=Ko(r[n],e.escapedName),a=i&&Gl(i,t);if(a)return a}return undefined}return t(e)}function Yl(e){return e.parent&&32&e.parent.flags?La(Yr(e)):undefined}function Jl(e,t,n){if(5<=n&&524288&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a<n;a++){var o=t[a];if(524288&o.flags&&o.symbol===r&&5<=++i)return 1}}}function zl(e,t,n){if(e===t)return-1;var r=24&Ub.getDeclarationModifierFlagsFromSymbol(e);if(r!=(24&Ub.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(r){if(ry(e)!==ry(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return ng(e)!==ng(t)?0:n(pa(e),pa(t))}function Ul(e,t,n,r,i,a){if(e===t)return-1;if(s=t,c=n,u=Ph(o=e),l=Ph(s),d=Lh(o),p=Lh(s),f=Mh(o),_=Mh(s),!(u===l&&d===p&&f===_||c&&d<=p))return 0;var o,s,c,u,l,d,p,f,_;if(Ub.length(e.typeParameters)!==Ub.length(t.typeParameters))return 0;e=xs(e),t=xs(t);var h=-1;if(!r){var g=gs(e);if(g){var m=gs(t);if(m){if(!(B=a(g,m)))return 0;h&=B}}}for(var y,b,v,E,I,T=Ph(t),C=0;C<T;C++){var B,x=Ah(e,C);if(!(B=a(Ah(t,C),x)))return 0;h&=B}return i||(y=ys(e),b=ys(t),h&=y!==undefined||b!==undefined?(E=b,I=a,(v=y)!==undefined&&E!==undefined&&Lc(v,E)?I(v.type,E.type):0):a(bs(e),bs(t))),h}function Kl(e){return function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t],i=ad(r),a=a||i;if(i===r||i!==a)return}return 1}(e)?Pc(e):Ub.reduceLeft(e,function(e,t){return ul(e,t)?t:e})}function Zl(e){return!!(4&Ub.getObjectFlags(e))&&(e.target===ot||e.target===st)}function Xl(e){return!!(4&Ub.getObjectFlags(e))&&e.target===st}function ql(e){return Zl(e)&&e.typeArguments?e.typeArguments[0]:undefined}function Ql(e){return Zl(e)||!(98304&e.flags)&&ll(e,ht)}function $l(e){var t=Zl(e)?e.typeArguments[0]:undefined;return t===Ie||t===Fe}function ed(e){return ud(e)||!!Ko(e,"0")}function td(e){return Ql(e)||ed(e)}function nd(e){return!(240512&e.flags)}function rd(e){return!!(109440&e.flags)}function id(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||Ub.every(e.types,rd):rd(e))}function ad(e){return 1024&e.flags?Aa(e):128&e.flags?Be:256&e.flags?xe:2048&e.flags?Se:512&e.flags?Ae:1048576&e.flags?Pc(Ub.sameMap(e.types,ad)):e}function od(e){return 1024&e.flags&&Bu(e)?Aa(e):128&e.flags&&Bu(e)?Be:256&e.flags&&Bu(e)?xe:2048&e.flags&&Bu(e)?Se:512&e.flags&&Bu(e)?Ae:1048576&e.flags?Pc(Ub.sameMap(e.types,od)):e}function sd(e){return 8192&e.flags?we:1048576&e.flags?Pc(Ub.sameMap(e.types,sd)):e}function cd(e,t){return Tg(e,t)||(e=sd(od(e))),e}function ud(e){return!!(4&Ub.getObjectFlags(e)&&8&e.target.objectFlags)}function ld(e){return e.target.hasRestElement?e.typeArguments[e.target.typeParameters.length-1]:undefined}function dd(e){return js(e)-(e.target.hasRestElement?1:0)}function pd(e){return"0"===e.value.base10Value}function fd(e){for(var t=0,n=0,r=e;n<r.length;n++){t|=_d(r[n])}return t}function _d(e){return 1048576&e.flags?fd(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?pd(e)?2048:0:512&e.flags?e===Ne||e===De?512:0:117724&e.flags}function hd(e){return 117632&_d(e)?wp(e,function(e){return!(117632&_d(e))}):e}function gd(e){return 4&e.flags?Zt:8&e.flags?Xt:64&e.flags?qt:e===De||e===Ne||114688&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&pd(e)?e:Pe}function md(e,t){var n=t&~e.flags&98304;return 0==n?e:Pc(32768==n?[e,Ee]:65536==n?[e,Te]:[e,Ee,Te])}function yd(e){return Ub.Debug.assert(U),32768&e.flags?e:Pc([e,Ee])}function bd(e){return U?(t=e,(gt=gt||ac("NonNullable",524288,undefined)||_e)!==_e?Gs(gt,[t]):hp(t,2097152)):e;var t}function vd(e){return e.symbol&&0!=(6656&e.symbol.flags)&&!Oy(e)}function Ed(e,t){var n=zn(e.flags,e.escapedName);return n.declarations=e.declarations,n.parent=e.parent,n.type=t,(n.target=e).valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.nameType&&(n.nameType=e.nameType),n}function Id(e){if(!(Zd(e)&&32768&Ub.getObjectFlags(e)))return e;var t=e.regularType;if(t)return t;var n=e,r=function(e,t){for(var n=Ub.createSymbolTable(),r=0,i=So(e);r<i.length;r++){var a=i[r],o=pa(a),s=t(o);n.set(a.escapedName,s===o?a:Ed(a,s))}return n}(e,Id),i=ii(n.symbol,r,n.callSignatures,n.constructSignatures,n.stringIndexInfo,n.numberIndexInfo);return i.flags=n.flags,i.objectFlags|=-32769&n.objectFlags,e.regularType=i}function Td(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:undefined}}function Cd(e){if(!e.resolvedProperties){for(var t=Ub.createMap(),n=0,r=function c(e){if(!e.siblings){for(var t=[],n=0,r=c(e.parent);n<r.length;n++){var i,a=r[n];!Zd(a)||(i=No(a,e.propertyName))&&kp(pa(i),function(e){t.push(e)})}e.siblings=t}return e.siblings}(e);n<r.length;n++){var i=r[n];if(Zd(i)&&!(1024&Ub.getObjectFlags(i)))for(var a=0,o=ko(i);a<o.length;a++){var s=o[a];t.set(s.escapedName,s)}}e.resolvedProperties=Ub.arrayFrom(t.values())}return e.resolvedProperties}function Bd(e,t){for(var n=Ub.createSymbolTable(),r=0,i=So(e);r<i.length;r++){var a=i[r];n.set(a.escapedName,function(e,t){if(!(4&e.flags))return e;var n=pa(e),r=Sd(n,t&&Td(t,e.escapedName,undefined));return r===n?e:Ed(e,r)}(a,t))}if(t)for(var o=0,s=Cd(t);o<s.length;o++){a=s[o];n.has(a.escapedName)||n.set(a.escapedName,function(e){var t=fe.get(e.escapedName);if(t)return t;var n=Ed(e,Ee);return n.flags|=16777216,fe.set(e.escapedName,n),n}(a))}var c=$o(e,0),u=$o(e,1),l=ii(e.symbol,n,Ub.emptyArray,Ub.emptyArray,c&&ws(xd(c.type),c.isReadonly),u&&ws(xd(u.type),u.isReadonly));return l.objectFlags|=540672&Ub.getObjectFlags(e),l}function xd(e){return Sd(e,undefined)}function Sd(e,t){if(393216&Ub.getObjectFlags(e)){if(t===undefined&&e.widened)return e.widened;var n,r,i=void 0;return 98304&e.flags?i=ge:Zd(e)?i=Bd(e,t):1048576&e.flags?(n=t||Td(undefined,undefined,e.types),i=Pc(r=Ub.sameMap(e.types,function(e){return 98304&e.flags?e:Sd(e,n)}),Ub.some(r,xl)?2:1)):2097152&e.flags?i=Rc(Ub.sameMap(e.types,xd)):(Zl(e)||ud(e))&&(i=Rs(e.target,Ub.sameMap(e.typeArguments,xd))),i&&t===undefined&&(e.widened=i),i||e}return e}function Nd(e,t){var n,r=bi(xd(t));if(!Ub.isInJSFile(e)||Ub.isCheckJsEnabledForFile(Ub.getSourceFileOfNode(e),z)){switch(e.kind){case 205:case 155:case 154:n=K?Ub.Diagnostics.Member_0_implicitly_has_an_1_type:Ub.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 152:var i=e;if(Ub.isIdentifier(i.name)&&(Ub.isCallSignatureDeclaration(i.parent)||Ub.isMethodSignature(i.parent)||Ub.isFunctionTypeNode(i.parent))&&-1<i.parent.parameters.indexOf(i)&&(sr(i,i.name.escapedText,67897832,undefined,i.name.escapedText,!0)||i.name.originalKeywordKind&&Ub.isTypeNodeKind(i.name.originalKeywordKind))){var a="arg"+i.parent.parameters.indexOf(i);return void Jn(K,e,Ub.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,a,Ub.declarationNameToString(i.name))}n=e.dotDotDotToken?K?Ub.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:Ub.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:K?Ub.Diagnostics.Parameter_0_implicitly_has_an_1_type:Ub.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 187:if(n=Ub.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!K)return;break;case 295:return void Yn(e,Ub.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 240:case 157:case 156:case 159:case 160:case 197:case 198:if(K&&!e.name)return void Yn(e,Ub.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);n=K?Ub.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Ub.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 182:return void(K&&Yn(e,Ub.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:n=K?Ub.Diagnostics.Variable_0_implicitly_has_an_1_type:Ub.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Jn(K,e,n,Ub.declarationNameToString(Ub.getNameOfDeclaration(e)),r)}}function Dd(e,t){V&&K&&131072&Ub.getObjectFlags(t)&&!function l(e){var t=!1;if(131072&Ub.getObjectFlags(e)){if(1048576&e.flags)if(Ub.some(e.types,xl))t=!0;else for(var n=0,r=e.types;n<r.length;n++)l(u=r[n])&&(t=!0);if(Zl(e)||ud(e))for(var i=0,a=e.typeArguments;i<a.length;i++)l(u=a[i])&&(t=!0);if(Zd(e))for(var o=0,s=So(e);o<s.length;o++){var c=s[o],u=pa(c);131072&Ub.getObjectFlags(u)&&(l(u)||Yn(c.valueDeclaration,Ub.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,mi(c),bi(xd(u))),t=!0)}}return t}(t)&&Nd(e,t)}function kd(e,t,n){var r,i=Ph(e),a=Ph(t),o=Fh(e),s=Fh(t),c=s?a-1:a,u=o?c:Math.min(i,c),l=gs(e);!l||(r=gs(t))&&n(l,r);for(var d=0;d<u;d++)n(Ah(e,d),Ah(t,d));s&&n(Vh(e,u),s)}function Ad(e,t,n){var r=ys(e),i=ys(t);r&&i&&r.kind===i.kind&&(0===r.kind||r.parameterIndex===i.parameterIndex)?n(r.type,i.type):n(bs(e),bs(t))}function wd(e,t,n,r){return Vd(e.map(Ld),t,n,r||sl)}function Vd(e,t,n,r){var i={inferences:e,signature:t,flags:n,compareTypes:r,mapper:function(e){return Pd(i,e,!0)},nonFixingMapper:function(e){return Pd(i,e,!1)}};return i}function Pd(e,t,n){for(var r=e.inferences,i=0;i<r.length;i++){var a=r[i];if(t===a.typeParameter)return n&&!a.isFixed&&(a.isFixed=!0,a.inferredType=undefined),Qd(e,i)}return t}function Ld(e){return{typeParameter:e,candidates:undefined,contraCandidates:undefined,inferredType:undefined,priority:undefined,topLevel:!0,isFixed:!1}}function Md(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function Fd(e){return e&&e.mapper}function Od(e){var t=Ub.getObjectFlags(e);return!!(63176704&e.flags||4&t&&Ub.forEach(e.typeArguments,Od)||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||32&t||3145728&e.flags&&function(e){e.couldContainTypeVariables===undefined&&(e.couldContainTypeVariables=Ub.some(e.types,Od));return e.couldContainTypeVariables}(e))}function Rd(e,t){return e===t||!!(3145728&e.flags)&&Ub.some(e.types,function(e){return Rd(e,t)})}function Hd(e,t,n){var r=e.id+","+t.id+","+n.id;if(Gt.has(r))return Gt.get(r);Gt.set(r,undefined);var i=function(e,t,n){if(!($o(e,0)||0!==ko(e).length&&function o(e){return!(524288&Ub.getObjectFlags(e))||Zd(e)&&Ub.some(ko(e),function(e){return o(pa(e))})}(e)))return undefined;if(Zl(e))return Tc(jd(e.typeArguments[0],t,n),Xl(e));if(ud(e)){var r=Ub.map(e.typeArguments||Ub.emptyArray,function(e){return jd(e,t,n)}),i=4&Io(t)?js(e)-(e.target.hasRestElement?1:0):e.target.minLength;return xc(r,i,e.target.hasRestElement,e.target.readonly,e.target.associatedNames)}var a=$r(2064,undefined);return a.source=e,a.mappedType=t,a.constraintType=n,a}(e,t,n);return Gt.set(r,i),i}function jd(e,t,n){var r=ru(n.type,go(t)),i=yo(t),a=Ld(r);return zd([a],e,i),Jd(a)||ve}function Wd(t,n,r,i){var a,o,s,c,u,l,d;return $b(this,function(e){switch(e.label){case 0:a=(1048576&n.flags?Do:ko)(n),o=0,s=a,e.label=1;case 1:return o<s.length?(c=s[o],!r&&(16777216&c.flags||48&Ub.getCheckFlags(c))?[3,5]:(u=Ko(t,c.escapedName))?[3,3]:[4,c]):[3,6];case 2:return e.sent(),[3,5];case 3:return i?!(109440&(l=pa(c)).flags)||1&(d=pa(u)).flags||Cu(d)===Cu(l)?[3,5]:[4,c]:[3,5];case 4:e.sent(),e.label=5;case 5:return o++,[3,1];case 6:return[2]}})}function Gd(e,t,n,r){return Wd(e,t,n,r).next().value}function Yd(e,t){return ud(e)&&ud(t)&&(n=e,(r=t).target.minLength>n.target.minLength||!ld(r)&&(ld(n)||dd(r)<dd(n)))||Gd(e,t,!1,!0)&&Gd(t,e,!1,!0);var n,r}function Jd(e){return e.candidates?Pc(e.candidates,2):e.contraCandidates?Rc(e.contraCandidates):undefined}function zd(i,e,V,P,L){var M,F;void 0===P&&(P=0),void 0===L&&(L=!1);var O,R=!1,H=!0;function j(e,t){if(Od(t)){if(e===ye){var n=O;return O=e,j(t,t),void(O=n)}if(e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)for(var r=e.aliasTypeArguments,i=t.aliasTypeArguments,a=0;a<r.length;a++)j(r[a],i[a]);else{if(1048576&e.flags&&1048576&t.flags&&!(1024&e.flags&&1024&t.flags)||2097152&e.flags&&2097152&t.flags){if(e===t){for(var o=0,s=e.types;o<s.length;o++){j(C=s[o],C)}return}for(var c,u=void 0,l=0,d=e.types;l<d.length;l++){Ud(C=d[l],t.types)?((u=u||[]).push(C),j(C,C)):384&C.flags&&(Ud(c=ad(C),t.types)&&(u=u||[]).push(C,c))}u&&(e=Kd(e,u),t=Kd(t,u))}else 41943040&t.flags&&(t=su(t));if(8650752&t.flags){if(524288&Ub.getObjectFlags(e)||e===Le||16&P&&(e===me||e===_t))return;var p,f=G(t);if(f)return void(f.isFixed||((f.priority===undefined||P<f.priority)&&(f.candidates=undefined,f.contraCandidates=undefined,f.topLevel=!0,f.priority=P),P===f.priority&&(p=O||e,L&&!R?Ub.contains(f.contraCandidates,p)||(f.contraCandidates=Ub.append(f.contraCandidates,p),f.inferredType=undefined):Ub.contains(f.candidates,p)||(f.candidates=Ub.append(f.candidates,p),f.inferredType=undefined)),!(16&P)&&262144&t.flags&&f.topLevel&&!Rd(V,t)&&(f.topLevel=!1,f.inferredType=undefined)));var _,h,g=$c(t,!1);g!==t?w(e,g):8388608&t.flags&&(63176704&(_=$c(t.indexType,!1)).flags&&((h=eu($c(t.objectType,!1),_,!1))&&h!==t&&w(e,h)))}if(4&Ub.getObjectFlags(e)&&4&Ub.getObjectFlags(t)&&e.target===t.target)for(var r=e.typeArguments||Ub.emptyArray,i=t.typeArguments||Ub.emptyArray,m=r.length<i.length?r.length:i.length,y=Ol(e.target),a=0;a<m;a++)(a<y.length&&2==(7&y[a])?W:j)(r[a],i[a]);else if(4194304&e.flags&&4194304&t.flags)L=!L,j(e.type,t.type),L=!L;else if((id(e)||4&e.flags)&&4194304&t.flags){var b=function(e){var r=Ub.createSymbolTable();kp(e,function(e){var t,n;128&e.flags&&((n=zn(4,t=Ub.escapeLeadingUnderscores(e.value))).type=ge,e.symbol&&(n.declarations=e.symbol.declarations,n.valueDeclaration=e.symbol.valueDeclaration),r.set(t,n))});var t=4&e.flags?ws(We,!1):undefined;return ii(undefined,r,Ub.emptyArray,Ub.emptyArray,t,undefined)}(e);L=!L;var v=P;P|=32,j(b,t.type),P=v,L=!L}else if(8388608&e.flags&&8388608&t.flags)j(e.objectType,t.objectType),j(e.indexType,t.indexType);else if(16777216&e.flags&&16777216&t.flags)j(e.checkType,t.checkType),j(e.extendsType,t.extendsType),j(uu(e),uu(t)),j(lu(e),lu(t));else if(16777216&t.flags&&!L)j(e,uu(t)),j(e,lu(t));else if(3145728&t.flags){for(var E=0,I=0,T=t.types;I<T.length;I++){G(C=T[I])?E++:j(e,C)}if(1048576&t.flags?0!==E:1===E){v=P;P|=1;for(var C,B=0,x=t.types;B<x.length;B++){G(C=x[B])&&j(e,C)}P=v}}else if(1048576&e.flags)for(var S=0,N=r=e.types;S<N.length;S++){j(N[S],t)}else{if(!(64&P&&65273856&e.flags)){var D=Yo(e);if(D!==e&&H&&!(2621440&D.flags))return H=!1,j(D,t);e=D}if(2621440&e.flags){var k=e.id+","+t.id;if(F&&F.get(k))return;(F=F||Ub.createMap()).set(k,!0);var A=524288&t.flags&&!(16&Ub.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags)?t.symbol:undefined;if(A){if(Ub.contains(M,A))return;(M=M||[]).push(A),Y(e,t),M.pop()}else Y(e,t)}}}}function w(e,t){var n=e.id+","+t.id;F&&F.get(n)||((F=F||Ub.createMap()).set(n,!0),j(e,t))}}function W(e,t){D||128&P?(L=!L,j(e,t),L=!L):j(e,t)}function G(e){if(8650752&e.flags)for(var t=0,n=i;t<n.length;t++){var r=n[t];if(e===r.typeParameter)return r}return undefined}function Y(e,t){if((Bo(e)&&Bo(t)&&(j(mo(e),mo(t)),j(yo(e),yo(t))),32&Ub.getObjectFlags(t))&&function _(e,t,n){if(1048576&n.flags){for(var r=!1,i=0,a=n.types;i<a.length;i++)r=_(e,t,a[i])||r;return r}if(4194304&n.flags){var o,s=G(n.type);return!s||s.isFixed||(o=Hd(e,t,n))&&(c=P,P|=524288&Ub.getObjectFlags(e)?4:2,j(o,s.typeParameter),P=c),!0}if(262144&n.flags){var c=P;P|=8,j(Jc(e),n),P=c;var u=Ao(n);if(u&&_(e,t,u))return!0;var l=Ub.map(ko(e),pa),d=es(e,0),p=Yc(e),f=p&&p.type;return j(Pc(Ub.append(Ub.append(l,d),f)),yo(t)),!0}return!1}(e,t,mo(t)))return;Yd(e,t)||(function(e,t){if(Zl(e)||ud(e)){if(ud(t)){for(var n,r=ud(e)?dd(e):0,i=dd(t),a=(ud(e)?ld:ql)(e),o=ld(t),s=i<r||a?i:r,c=0;c<s;c++)j(c<r?e.typeArguments[c]:a,t.typeArguments[c]);return o&&(n=s<r?e.typeArguments.slice(s,r):[],a&&n.push(a),n.length&&j(Pc(n),o))}if(Zl(t))return h(e,t)}for(var u=So(t),l=0,d=u;l<d.length;l++){var p=d[l],f=Ko(e,p.escapedName);f&&j(pa(f),pa(p))}}(e,t),n(e,t,0),n(e,t,1),h(e,t))}function n(e,t,n){for(var r=Xo(e,n),i=Xo(t,n),a=r.length,o=i.length,s=a<o?a:o,c=!!(524288&Ub.getObjectFlags(e)),u=0;u<s;u++)!function(e,t,n){{var r,i;n||(r=R,i=t.declaration?t.declaration.kind:0,R=R||157===i||156===i||158===i,kd(e,t,W),R=r)}Ad(e,t,j)}(Ns(r[a-s+u]),Ns(i[o-s+u]),c)}function h(e,t){var n=es(t,0);n&&(r=es(e,0)||ts(e,0))&&j(r,n);var r,i=es(t,1);i&&(r=es(e,1)||es(e,0)||ts(e,1))&&j(r,i)}j(e,V)}function Ud(e,t){for(var n=0,r=t;n<r.length;n++){if(al(r[n],e))return 1}}function Kd(e,t){for(var n=[],r=0,i=e.types;r<i.length;r++){var a=i[r];Ud(a,t)||n.push(a)}return(1048576&e.flags?Pc:Rc)(n)}function Zd(e){return!!(128&Ub.getObjectFlags(e))}function Xd(e){return 56&e.priority?Rc(e.contraCandidates):(t=e.contraCandidates,Ub.reduceLeft(t,function(e,t){return ul(t,e)?t:e}));var t}function qd(e,t){var n,r,i=function(e){if(1<e.length){var t=Ub.filter(e,Zd);if(t.length){var n=xd(Pc(t,2));return Ub.concatenate(Ub.filter(e,function(e){return!Zd(e)}),[n])}}return e}(e.candidates),a=(n=e.typeParameter,!!(r=wo(n))&&sg(16777216&r.flags?Po(r):r,4325372)),o=!a&&e.topLevel&&(e.isFixed||!Rd(bs(t),e.typeParameter)),s=a?Ub.sameMap(i,Cu):o?Ub.sameMap(i,od):i;return xd(56&e.priority?Pc(s,2):function(e){if(!U)return Kl(e);var t=Ub.filter(e,function(e){return!(98304&e.flags)});return t.length?md(Kl(t),98304&fd(e)):Pc(e,2)}(s))}function Qd(e,t){var n,r,i,a,o,s,c,u,l,d=e.inferences[t];return d.inferredType||(a=void 0,(n=e.signature)?(r=d.candidates?qd(d,n):undefined,d.contraCandidates?(i=Xd(d),a=!r||131072&r.flags||!ul(r,i)?i:r):r?a=r:1&e.flags?a=Le:(o=Wo(d.typeParameter))&&(a=Xu(o,Mu((l=t,function(t){return Ub.findIndex(u.inferences,function(e){return e.typeParameter===t})>=l?ve:t}),(u=e).nonFixingMapper)))):a=Jd(d),d.inferredType=a||$d(!!(2&e.flags)),(s=wo(d.typeParameter))&&(c=Xu(s,e.nonFixingMapper),a&&e.compareTypes(a,$a(c,a))||(d.inferredType=a=c))),d.inferredType}function $d(e){return e?ge:ve}function ep(e){for(var t=[],n=0;n<e.inferences.length;n++)t.push(Qd(e,n));return t}function tp(e){switch(e.escapedText){case"document":case"console":return Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return z.types?Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery;case"describe":case"suite":case"it":case"test":return z.types?Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return z.types?Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return Ub.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return 277===e.parent.kind?Ub.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Ub.Diagnostics.Cannot_find_name_0}}function np(e){var t=rr(e);return t.resolvedSymbol||(t.resolvedSymbol=!Ub.nodeIsMissing(e)&&sr(e,e.escapedText,68268991,tp(e),e,!Ub.isWriteOnlyAccess(e),!1,Ub.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||_e),t.resolvedSymbol}function rp(e){return!!Ub.findAncestor(e,function(e){return 168===e.kind||73!==e.kind&&149!==e.kind&&"quit"})}function ip(e,t){switch(t.kind){case 196:case 214:return ip(e,t.expression)}switch(e.kind){case 73:return 73===t.kind&&np(e)===np(t)||(238===t.kind||187===t.kind)&&Ur(np(e))===Gr(t);case 101:return 101===t.kind;case 99:return 99===t.kind;case 214:case 196:return ip(e.expression,t);case 190:case 191:return Ub.isAccessExpression(t)&&ap(e)===ap(t)&&ip(e.expression,t.expression)}return!1}function ap(e){return 190===e.kind?e.name.escapedText:Ub.isStringLiteral(e.argumentExpression)||Ub.isNumericLiteral(e.argumentExpression)?Ub.escapeLeadingUnderscores(e.argumentExpression.text):undefined}function op(e,t){for(;Ub.isAccessExpression(e);)if(ip(e=e.expression,t))return!0;return!1}function sp(e,t){var n;return Ub.isAccessExpression(t)&&op(e,t.expression)&&(n=ap(t))!==undefined&&cp(function r(e){if(73===e.kind)return pa(np(e));if(Ub.isAccessExpression(e)){var t=r(e.expression);if(t){var n=ap(e);return n!==undefined?Pi(t,n):undefined}}return undefined}(t.expression),n)}function cp(e,t){if(e&&1048576&e.flags){var n=zo(e,t);if(n&&2&Ub.getCheckFlags(n))return n.isDiscriminantProperty===undefined&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!!(1048576&(r=pa(n)).flags&&(1040&r.flags||!qc(r)))),!!n.isDiscriminantProperty}var r;return!1}function up(e,t){for(var n,r=0,i=e;r<i.length;r++){var a=i[r];if(cp(t,a.escapedName)){if(n){n.push(a);continue}n=[a]}}return n}function lp(e,t){return ip(e,t)||op(e,t)}function dp(e){return e.id||(e.id=qb,qb++),e.id}function pp(e,t){if(e!==t){if(131072&t.flags)return t;var n=wp(e,function(e){return function(e,t){if(!(1048576&e.flags))return ll(e,t);for(var n=0,r=e.types;n<r.length;n++){if(ll(r[n],t))return!0}return!1}(t,e)});if(512&t.flags&&Bu(t)&&(n=Vp(n,Tu)),ll(t,n))return n}return e}function fp(e){var t=xo(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&ul(e,rt))}function _p(e){var t=e.flags;if(4&t)return U?16317953:16776705;if(128&t){var n=""===e.value;return U?n?12123649:7929345:n?12582401:16776705}if(40&t)return U?16317698:16776450;if(256&t){var r=0===e.value;return U?r?12123394:7929090:r?12582146:16776450}if(64&t)return U?16317188:16775940;if(2048&t){r=pd(e);return U?r?12122884:7928580:r?12581636:16775940}return 16&t?U?16316168:16774920:528&t?U?e===Ne||e===De?12121864:7927560:e===Ne||e===De?12580616:16774920:524288&t?16&Ub.getObjectFlags(e)&&xl(e)?U?16318463:16777215:fp(e)?U?7880640:16728e3:U?7888800:16736160:49152&t?9830144:65536&t?9363232:12288&t?U?7925520:16772880:67108864&t?U?7888800:16736160:63176704&t?_p(Fo(e)||ve):3145728&t?function(e){for(var t=0,n=0,r=e;n<r.length;n++){t|=_p(r[n])}return t}(e.types):16777215}function hp(e,t){return wp(e,function(e){return 0!=(_p(e)&t)})}function gp(e,t){if(t){var n=wg(t);return Pc([hp(e,524288),n])}return e}function mp(e,t){var n=jc(t);if(!Ya(n))return be;var r=Ka(n);return $p(Pi(e,r),t)||Yf(r)&&es(e,1)||es(e,0)||be}function yp(e,t){return Ap(e,ed)&&(Pi(n=e,""+t)||(Ap(n,ud)&&!Ap(n,function(e){return!e.target.hasRestElement})?Vp(n,function(e){return ld(e)||Ee}):undefined))||Wm(e,undefined,!1,!1)||be;var n}function bp(e){return Tc(Wm(e,undefined,!1,!1)||be)}function vp(e){return 205===e.parent.kind&&e.parent.left===e||228===e.parent.kind&&e.parent.initializer===e}function Ep(e){return mp(Ip(e.parent),e.name)}function Ip(e){var t,n,r,i,a=e.parent;switch(a.kind){case 227:return Be;case 228:return jm(a.expression,a.awaitModifier)||be;case 205:return 188===(i=a).parent.kind&&vp(i.parent)||276===i.parent.kind&&vp(i.parent.parent)?gp(Ip(i),i.right):wg(i.right);case 199:return Ee;case 188:return r=e,yp(Ip(n=a),n.elements.indexOf(r));case 209:return bp(Ip(a.parent));case 276:return Ep(a);case 277:return gp(Ep(t=a),t.objectAssignmentInitializer)}return be}function Tp(e){return e.initializer?rr(t=e.initializer).resolvedType||wg(t):227===e.parent.parent.kind?Be:228===e.parent.parent.kind&&jm(e.parent.parent.expression,e.parent.parent.awaitModifier)||be;var t}function Cp(e){return 238===e.kind?Tp(e):(n=(t=e).parent,r=Cp(n.parent),gp(185===n.kind?mp(r,t.propertyName||t.name):t.dotDotDotToken?bp(r):yp(r,n.elements.indexOf(t)),t.initializer));var t,n,r}function Bp(e,t){return $p((238===e.kind||187===e.kind?Cp:Ip)(e),t)}function xp(e){switch(e.kind){case 196:return xp(e.expression);case 205:switch(e.operatorToken.kind){case 60:return xp(e.left);case 27:return xp(e.right)}}return e}function Sp(e){var t,n=rr(e);if(!n.switchTypes){n.switchTypes=[];for(var r=0,i=e.caseBlock.clauses;r<i.length;r++){var a=i[r];n.switchTypes.push(272===(t=a).kind?Cu(wg(t.expression)):Pe)}}return n.switchTypes}function Np(e){for(var t=[],n=0,r=e.caseBlock.clauses;n<r.length;n++){var i=r[n];if(272!==i.kind)t.push(undefined);else{if(10!==i.expression.kind)return Ub.emptyArray;t.push(i.expression.text)}}return t}function Dp(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var n=0,r=e.types;n<r.length;n++){var i=r[n];if(!Dc(t.types,i))return}return 1}if(1024&e.flags&&Aa(e)===t)return 1;return Dc(t.types,e)}(e,t)}function kp(e,t){return 1048576&e.flags?Ub.forEach(e.types,t):t(e)}function Ap(e,t){return 1048576&e.flags?Ub.every(e.types,t):t(e)}function wp(e,t){if(1048576&e.flags){var n=e.types,r=Ub.filter(n,t);return r===n?e:Mc(r,e.objectFlags)}return t(e)?e:Pe}function Vp(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var r,i=0,a=e.types;i<a.length;i++){var o=t(a[i]);o&&(r?r.push(o):r=[o])}return r&&Pc(r,n?0:1)}function Pp(e,t){return wp(e,function(e){return 0!=(e.flags&t)})}function Lp(e,t){return Dp(Be,e)&&sg(t,128)||Dp(xe,e)&&sg(t,256)||Dp(Se,e)&&sg(t,2048)?Vp(e,function(e){return 4&e.flags?Pp(t,132):8&e.flags?Pp(t,264):64&e.flags?Pp(t,2112):e}):e}function Mp(e){return 0===e.flags}function Fp(e){return 0===e.flags?e.type:e}function Op(e,t){return t?{flags:0,type:e}:e}function Rp(e){return pe[e.id]||(pe[e.id]=(t=e,(n=$r(256)).elementType=t,n));var t,n}function Hp(e,t){var n=ad(Vg(t));return Dp(n,e.elementType)?e:Rp(Pc([e.elementType,n]))}function jp(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?_t:Tc(1048576&t.flags?Pc(t.types,2):t));var t}function Wp(e){return 256&Ub.getObjectFlags(e)?jp(e):e}function Gp(e){return 256&Ub.getObjectFlags(e)?e.elementType:Pe}function Yp(e,t){return function(e){for(var t=!1,n=0,r=e;n<r.length;n++){var i=r[n];if(!(131072&i.flags)){if(!(256&Ub.getObjectFlags(i)))return;t=!0}}return t}(e)?Rp(Pc(Ub.map(e,Gp))):Pc(Ub.sameMap(e,Wp),t)}function Jp(e){var t=function a(e){var t=e.parent;return 196===t.kind||205===t.kind&&60===t.operatorToken.kind&&t.left===e||205===t.kind&&27===t.operatorToken.kind&&t.right===e?a(t):e}(e),n=t.parent,r=190===n.kind&&("length"===n.name.escapedText||192===n.parent.kind&&Ub.isPushOrUnshiftIdentifier(n.name)),i=191===n.kind&&n.expression===t&&205===n.parent.kind&&60===n.parent.operatorToken.kind&&n.parent.left===n&&!Ub.isAssignmentTarget(n.parent)&&cg(wg(n.argumentExpression),296);return r||i}function zp(e){var t=rr(e);return t.maybeTypePredicate===undefined&&(t.maybeTypePredicate=function(e){if(99!==e.expression.kind){var t=y_(e.expression);if(t!==Le){var n=Yo(t);return n!==be&&Ub.some(Xo(n,0),ms)}}return!1}(e)),t.maybeTypePredicate}function Up(p,g,f,_,e){var t;void 0===f&&(f=g);var n=!1,h=0;if(Kt)return be;if(!p.flowNode||!e&&!(133970943&g.flags))return g;var m=Ut,r=Fp(b(p.flowNode));Ut=m;var i=256&Ub.getObjectFlags(r)&&Jp(p)?_t:Wp(r);return p.parent&&214===p.parent.kind&&131072&hp(i,2097152).flags?g:i;function y(){return n?t:(n=!0,t=function s(e,t,n,r){switch(e.kind){case 73:var i=np(e);return i!==_e?(r?ev(r):"-1")+"|"+t.id+"|"+n.id+"|"+(qp(e)?"@":"")+tv(i):undefined;case 101:return"0";case 214:case 196:return s(e.expression,t,n,r);case 190:case 191:var a=ap(e);if(a!==undefined){var o=s(e.expression,t,n,r);return o&&o+"."+a}}return undefined}(p,g,f,_))}function b(e){if(2e3===h)return Kt=!0,t=p,n=Ub.findAncestor(t,Ub.isFunctionOrModuleBlock),r=Ub.getSourceFileOfNode(t),i=Ub.getSpanOfTokenAtPosition(r,n.statements.pos),yn.add(Ub.createFileDiagnostic(r,i.start,i.length,Ub.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),be;var t,n,r,i;for(h++;;){var a=e.flags;if(8192&a){var o=y();if(o){var s=dp(e);if(cn[s]===o)return un[s]}}if(1024&a)for(var c=m;c<Ut;c++)if(fn[c]===e)return h--,_n[c];var u,l=void 0;if(4096&a)e.locked=!0,l=b(e.antecedent),e.locked=!1;else{if(2048&a){e=e.antecedent;continue}if(16&a){if(!(l=function(e){var t=e.node;if(ip(p,t)){if(2===Ub.getAssignmentTargetKind(t)){var n=b(e.antecedent);return Op(ad(Fp(n)),Mp(n))}if(g!==me&&g!==_t)return 1048576&g.flags?pp(g,Bp(t,p)):g;if(function(e){return 238===e.kind&&e.initializer&&Yi(e.initializer)||187!==e.kind&&205===e.parent.kind&&Yi(e.parent.right)}(t))return Rp(Pe);var r=ad(Bp(t,p));return ll(r,g)?r:ft}if(op(p,t)){if(Ub.isVariableDeclaration(t)&&(Ub.isInJSFile(t)||Ub.isVarConst(t))){var i=Ub.getDeclaredExpandoInitializer(t);if(i&&(197===i.kind||198===i.kind))return b(e.antecedent)}return g}if(Ub.isVariableDeclaration(t)&&227===t.parent.parent.kind&&ip(p,t.parent.parent.expression))return b_(Fp(b(e.antecedent)));return undefined}(e))){e=e.antecedent;continue}zt!==Jt||(u=y())&&!Mp(l)&&(e.flags|=8192,s=dp(e),cn[s]=u,un[s]=l)}else if(96&a)l=function(e){var t=b(e.antecedent),n=Fp(t);if(131072&n.flags)return t;var r=0!=(32&e.flags),i=Wp(n),a=T(i,e.expression,r);if(a===i)return t;var o=Mp(t);return Op(o&&131072&a.flags?Le:a,o)}(e);else if(128&a)l=function(t){var e=t.switchStatement.expression,n=b(t.antecedent),r=Fp(n);ip(p,e)?r=I(r,t.switchStatement,t.clauseStart,t.clauseEnd):v(e,r)?r=E(r,e,function(e){return I(e,t.switchStatement,t.clauseStart,t.clauseEnd)}):200===e.kind&&ip(p,e.expression)?r=function(t,e,n,r){var i=Np(e);if(!i.length)return t;var a,o,s=Ub.findIndex(i,function(e){return e===undefined}),c=n===r||n<=s&&s<r;{var u,l,d;o=-1<s?(u=i.filter(function(e){return e!==undefined}),l=s<n?n-1:n,d=s<r?r-1:r,a=u.slice(l,d),Kh(l,d,u,c)):(a=i.slice(n,r),Kh(n,r,i,c))}if(c)return wp(t,function(e){return(_p(e)&o)===o});var p=hp(Pc(a.map(function(e){return function(e,t){switch(t){case"function":return 1&e.flags?e:rt;case"object":return 2&e.flags?Pc([Oe,Te]):e;default:return Pn.get(t)||e}}(t,e)})),o);1048576&p.flags&&(p=pp(p,Oo(t)));return hp(Vp(t,function(n){return function(e){if(ul(n,e))return n;if(63176704&e.flags){var t=Fo(e)||ge;if(ul(n,t))return Rc([e,n])}return e}}(p)),o)}(r,t.switchStatement,t.clauseStart,t.clauseEnd):sp(p,e)&&(r=g);return Op(r,Mp(n))}(e);else if(12&a){if(1===e.antecedents.length){e=e.antecedents[0];continue}l=(4&a?function(e){for(var t=[],n=!1,r=!1,i=0,a=e.antecedents;i<a.length;i++){var o=a[i];if(!(2048&o.flags&&o.lock.locked)){var s=b(o),c=Fp(s);if(c===g&&g===f)return c;Ub.pushIfUnique(t,c),Dp(c,g)||(n=!0),Mp(s)&&(r=!0)}}return Op(Yp(t,n?2:1),r)}:function(e){var t=dp(e),n=sn[t]||(sn[t]=Ub.createMap()),r=y();if(!r)return g;var i=n.get(r);if(i)return i;for(var a=Jt;a<zt;a++)if(ln[a]===e&&dn[a]===r&&pn[a].length)return Op(Yp(pn[a],1),!0);var o,s=[],c=!1;ln[zt]=e,dn[zt]=r,pn[zt]=s;for(var u=0,l=e.antecedents;u<l.length;u++){var d=l[u];zt++;var p=b(d);zt--,o=o||p;var f=Fp(p),_=n.get(r);if(_)return _;if(Ub.pushIfUnique(s,f),Dp(f,g)||(c=!0),f===g)break}var h=Yp(s,c?2:1);if(Mp(o))return Op(h,!0);return n.set(r,h),h})(e)}else if(256&a){if(!(l=function(e){if(g===me||g===_t){var t=e.node,n=192===t.kind?t.expression.expression:t.left.expression;if(ip(p,xp(n))){var r=b(e.antecedent),i=Fp(r);if(256&Ub.getObjectFlags(i)){var a=i;if(192===t.kind)for(var o=0,s=t.arguments;o<s.length;o++){var c=s[o];a=Hp(a,c)}else cg(Vg(t.left.argumentExpression),296)&&(a=Hp(a,t.right));return a===i?r:Op(a,Mp(r))}return r}}return undefined}(e))){e=e.antecedent;continue}}else if(2&a){var d=e.container;if(d&&d!==_&&190!==p.kind&&191!==p.kind&&101!==p.kind){e=d.flowNode;continue}l=f}else l=Am(g)}return 1024&a&&(fn[Ut]=e,_n[Ut]=l,Ut++),h--,l}}function v(e,t){if(1048576&t.flags&&Ub.isAccessExpression(e)){var n=ap(e);if(n!==undefined)return ip(p,e.expression)&&cp(t,n)}}function E(e,t,n){var r=ap(t);if(r===undefined)return e;var i=Pi(e,r),a=i&&n(i);return i===a?e:wp(e,function(e){return pl(Pi(t=e,n=r)||Yf(n)&&es(t,1)||es(t,0)||ve,a);var t,n})}function s(e,t,n){return ip(p,t)?hp(e,n?4194304:8388608):v(t,g)?E(e,t,function(e){return hp(e,n?4194304:8388608)}):sp(p,t)?g:e}function c(e,t,n){if(1572864&e.flags||Qc(e)){var r=Ub.escapeLeadingUnderscores(t.text);return wp(e,function(e){return function(e,t,n){if($o(e,0))return!0;var r=Ko(e,t);return r?!!(16777216&r.flags)||n:!n}(e,r,n)})}return e}function a(e,t,n){switch(t.operatorToken.kind){case 60:return s(T(e,t.right,n),t.left,n);case 33:case 34:case 35:case 36:var r=t.operatorToken.kind,i=xp(t.left),a=xp(t.right);if(200===i.kind&&Ub.isStringLiteralLike(a))return l(e,i,r,a,n);if(200===a.kind&&Ub.isStringLiteralLike(i))return l(e,a,r,i,n);if(ip(p,i))return u(e,r,a,n);if(ip(p,a))return u(e,r,i,n);if(v(i,g))return E(e,i,function(e){return u(e,r,a,n)});if(v(a,g))return E(e,a,function(e){return u(e,r,i,n)});if(sp(p,i)||sp(p,a))return g;break;case 95:return function(e,t,n){var r=xp(t.left);if(!ip(p,r))return op(p,r)&&!function(e){return Ub.isAccessExpression(e)&&101===e.expression.kind&&8&e.expression.flags}(p)?g:e;var i,a=wg(t.right);if(!dl(a,rt))return e;var o=Ko(a,"prototype");{var s;o&&(Li(s=pa(o))||(i=s))}if(Li(e)&&(i===nt||i===rt))return e;{var c;i||(c=Xo(a,1),i=c.length?Pc(Ub.map(c,function(e){return bs(xs(e))})):We)}return d(e,i,n,dl)}(e,t,n);case 94:var o=xp(t.right);if(Ub.isStringLiteralLike(t.left)&&ip(p,o))return c(e,t.left,n);break;case 27:return T(e,t.right,n)}return e}function u(e,t,n,r){if(1&e.flags)return e;34!==t&&36!==t||(r=!r);var i=wg(n);if(2&e.flags&&35===t&&r)return 67239932&i.flags?i:524288&i.flags?Oe:e;if(98304&i.flags)return U?hp(e,33===t||34===t?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(67637251&e.flags)return e;if(r){var a=wp(e,33===t?function(e){return fl(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return fl(e,i)});return 131072&a.flags?e:Lp(a,i)}if(rd(i)){var o=Cu(i);return wp(e,function(e){return Cu(e)!==o})}return e}function l(e,t,n,r,i){var a=xp(t.expression);if(!ip(p,a))return op(p,a)?g:e;if(34!==n&&36!==n||(i=!i),1&e.flags&&"function"===r.text)return e;var o=i?wn.get(r.text)||128:Vn.get(r.text)||32768;return hp(i?Vp(e,function(e){if(2&e.flags&&"object"===r.text)return Pc([Oe,Te]);var t="function"===r.text?rt:Pn.get(r.text);if(t){if(ul(e,t))return e;if(ul(t,e))return t;if(63176704&e.flags){var n=Fo(e)||ge;if(ul(t,n))return Rc([e,t])}}return e}):e,o)}function I(e,t,n,r){var i=Sp(t);if(!i.length)return e;var a=i.slice(n,r),o=n===r||Ub.contains(a,Pe);if(2&e.flags&&!o){for(var s=void 0,c=0;c<a.length;c+=1){var u=a[c];if(67239932&u.flags)s!==undefined&&s.push(u);else{if(!(524288&u.flags))return e;s===undefined&&(s=a.slice(0,c)),s.push(Oe)}}return Pc(s===undefined?a:s)}var l=Pc(a),d=131072&l.flags?Pe:Lp(wp(e,function(e){return fl(l,e)}),l);if(!o)return d;var p=wp(e,function(e){return!(rd(e)&&Ub.contains(i,Cu(e)))});return 131072&d.flags?p:Pc([d,p])}function d(e,t,n,r){if(!n)return wp(e,function(e){return!r(e,t)});if(1048576&e.flags){var i=wp(e,function(e){return r(e,t)});if(!(131072&i.flags))return i}return ul(t,e)?t:ll(e,t)?e:ll(t,e)?t:Rc([e,t])}function o(e,t,n){if(!function(e,t){if(e.arguments)for(var n=0,r=e.arguments;n<r.length;n++){if(lp(t,r[n]))return 1}return!(190!==e.expression.kind||!lp(t,e.expression.expression))}(t,p)||!zp(t))return e;var r=ys(mh(t));if(!r)return e;if(Li(e)&&(r.type===nt||r.type===rt))return e;if(Ub.isIdentifierTypePredicate(r)){var i=t.arguments[r.parameterIndex];if(i){if(ip(p,i))return d(e,r.type,n,ul);if(op(p,i))return g}}else{var a=Ub.skipParentheses(t.expression);if(Ub.isAccessExpression(a)){var o=Ub.skipParentheses(a.expression);if(ip(p,o))return d(e,r.type,n,ul);if(op(p,o))return g}}return e}function T(e,t,n){switch(t.kind){case 73:case 101:case 99:case 190:case 191:return s(e,t,n);case 192:return o(e,t,n);case 196:return T(e,t.expression,n);case 205:return a(e,t,n);case 203:if(52===t.operator)return T(e,t.operand,!n)}return e}}function Kp(e){return Ub.findAncestor(e.parent,function(e){return Ub.isFunctionLike(e)&&!Ub.getImmediatelyInvokedFunctionExpression(e)||246===e.kind||285===e.kind||155===e.kind})}function Zp(e){var t,n=Ub.getRootDeclaration(e.valueDeclaration).parent,r=rr(n);return 8388608&r.flags||(r.flags|=8388608,t=n,Ub.findAncestor(t.parent,function(e){return Ub.isFunctionLike(e)&&!!(8388608&rr(e).flags)})||Xp(n)),e.isAssigned}function Xp(e){var t;73===e.kind?!Ub.isAssignmentTarget(e)||(t=np(e)).valueDeclaration&&152===Ub.getRootDeclaration(t.valueDeclaration).kind&&(t.isAssigned=!0):Ub.forEachChild(e,Xp)}function qp(e){var t=e.parent;return 190===t.kind||192===t.kind&&t.expression===e||191===t.kind&&t.expression===e||187===t.kind&&t.name===e&&t.initializer}function Qp(e){return 58982400&e.flags&&sg(Fo(e)||ve,98304)}function $p(e,t){return e&&qp(t)&&kp(e,Qp)?Vp(xd(e),Oo):e}function ef(e,t){!vr(e,67220415)||rp(t)||Xy(Ir(e))||Cr(e)}function tf(e){var t=np(e);if(t===_e)return be;if(t===ne){var n=Ub.getContainingFunction(e);return k<2&&(198===n.kind?Yn(e,Ub.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Ub.hasModifier(n,256)&&Yn(e,Ub.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),rr(n).flags|=8192,pa(t)}e.parent&&Ub.isPropertyAccessExpression(e.parent)&&e.parent.expression===e||ef(t,e);var r=Ur(t),i=r.valueDeclaration;if(32&r.flags)if(241===i.kind&&Ub.nodeIsDecorated(i))for(n=Ub.getContainingClass(e);n!==undefined;){if(n===i&&n.name!==e){rr(i).flags|=16777216,rr(e).flags|=33554432;break}n=Ub.getContainingClass(n)}else if(210===i.kind)for(n=Ub.getThisContainer(e,!1);285!==n.kind;){if(n.parent===i){155===n.kind&&Ub.hasModifier(n,32)&&(rr(i).flags|=16777216,rr(e).flags|=33554432);break}n=Ub.getThisContainer(n,!1)}!function(e,t){if(2<=k||0==(34&t.flags)||Ub.isSourceFile(t.valueDeclaration)||275===t.valueDeclaration.parent.kind)return;var n=Ub.getEnclosingBlockScopeContainer(t.valueDeclaration),r=function(e,t){return!!Ub.findAncestor(e,function(e){return e===t?"quit":Ub.isFunctionLike(e)})}(e.parent,n),i=n,a=!1;for(;i&&!Ub.nodeStartsNewLexicalEnvironment(i);){if(Ub.isIterationStatement(i,!1)){a=!0;break}i=i.parent}{var o,s,c,u;a&&(r&&(o=!0,!Ub.isForStatement(n)||Ub.getAncestor(t.valueDeclaration,239).parent!==n||(s=function(e,t){return Ub.findAncestor(e,function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement})}(e.parent,n))&&((c=rr(s)).flags|=131072,u=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]),Ub.pushIfUnique(u,t),s===n.initializer&&(o=!1)),o&&(rr(i).flags|=65536)),226===n.kind&&Ub.getAncestor(t.valueDeclaration,239).parent===n&&function(e,t){var n=e;for(;196===n.parent.kind;)n=n.parent;var r=!1;{var i;Ub.isAssignmentTarget(n)?r=!0:203!==n.parent.kind&&204!==n.parent.kind||(i=n.parent,r=44===i.operator||45===i.operator)}return!!r&&!!Ub.findAncestor(n,function(e){return e===t?"quit":e===t.statement})}(e,n)&&(rr(t.valueDeclaration).flags|=4194304),rr(t.valueDeclaration).flags|=524288)}r&&(rr(t.valueDeclaration).flags|=262144)}(e,t);var a=$p(pa(r),e),o=Ub.getAssignmentTargetKind(e);if(o){if(!(3&r.flags||Ub.isInJSFile(e)&&512&r.flags))return Yn(e,Ub.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,mi(t)),be;if(ng(r))return 3&r.flags?Yn(e,Ub.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,mi(t)):Yn(e,Ub.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,mi(t)),be}var s=2097152&r.flags;if(3&r.flags){if(1===o)return a}else{if(!s)return a;i=Ub.find(t.declarations,iv)}if(!i)return a;for(var c,u=152===Ub.getRootDeclaration(i).kind,l=Kp(i),d=Kp(e),p=d!==l,f=e.parent&&e.parent.parent&&Ub.isSpreadAssignment(e.parent)&&vp(e.parent.parent),_=134217728&t.flags;d!==l&&(197===d.kind||198===d.kind||Ub.isObjectLiteralOrClassExpressionMethod(d))&&(3&(c=r).flags&&0!=(2&__(c))&&pa(c)!==_t||u&&!Zp(r));)d=Kp(d);var h,g,m=u||s||p||f||_||Ub.isBindingElement(i)||a!==me&&a!==_t&&(!U||0!=(3&a.flags)||rp(e)||258===e.parent.kind)||214===e.parent.kind||238===i.kind&&i.exclamationToken||4194304&i.flags,y=Up(e,a,m?u?(h=a,g=i,U&&152===g.kind&&g.initializer&&32768&_d(h)&&!(32768&_d(Pg(g.initializer)))?hp(h,524288):h):a:a===me||a===_t?Ee:yd(a),d,!m);if(Jp(e)||a!==me&&a!==_t){if(!m&&!(32768&_d(a))&&32768&_d(y))return Yn(e,Ub.Diagnostics.Variable_0_is_used_before_being_assigned,mi(t)),a}else if(y===me||y===_t)return K&&(Yn(Ub.getNameOfDeclaration(i),Ub.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,mi(t),bi(y)),Yn(e,Ub.Diagnostics.Variable_0_implicitly_has_an_1_type,mi(t),bi(y))),Am(y);return o?ad(y):y}function nf(e,t){rr(e).flags|=2,155===t.kind||158===t.kind?rr(t.parent).flags|=4:rr(t).flags|=4}function rf(e){return Ub.isSuperCall(e)?e:Ub.isFunctionLike(e)?undefined:Ub.forEachChild(e,rf)}function af(e){var t=rr(e);return t.hasSuperCall===undefined&&(t.superCall=rf(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function of(e){return Ba(La(Gr(e)))===Ce}function sf(e,t,n){var r,i=t.parent;!Ub.getClassExtendsHeritageElement(i)||of(i)||(!(r=af(t))||r.end>e.pos)&&Yn(e,n)}function cf(e){var t=Ub.getThisContainer(e,!0),n=!1;switch(158===t.kind&&sf(e,t,Ub.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),198===t.kind&&(t=Ub.getThisContainer(t,!1),n=!0),t.kind){case 245:Yn(e,Ub.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 244:Yn(e,Ub.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 158:lf(e,t)&&Yn(e,Ub.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 155:case 154:Ub.hasModifier(t,32)&&Yn(e,Ub.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 150:Yn(e,Ub.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&k<2&&nf(e,t);var r,i,a,o=uf(e,!0,t);return m&&(o===(r=pa(ee))&&n?Yn(e,Ub.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this):o||(i=Yn(e,Ub.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Ub.isSourceFile(t)||(a=uf(t))&&a!==r&&Ub.addRelatedInfo(i,Ub.createDiagnosticForNode(t,Ub.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container)))),o||ge}function uf(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=Ub.getThisContainer(e,!1));var r=Ub.isInJSFile(e);if(Ub.isFunctionLike(n)&&(!gf(e)||Ub.getThisParameter(n))){var i=function(e){{if(197===e.kind&&Ub.isBinaryExpression(e.parent)&&3===Ub.getAssignmentDeclarationKind(e.parent))return e.parent.left.expression.expression;if(157===e.kind&&189===e.parent.kind&&Ub.isBinaryExpression(e.parent.parent)&&6===Ub.getAssignmentDeclarationKind(e.parent.parent))return e.parent.parent.left.expression;if(197===e.kind&&276===e.parent.kind&&189===e.parent.parent.kind&&Ub.isBinaryExpression(e.parent.parent.parent)&&6===Ub.getAssignmentDeclarationKind(e.parent.parent.parent))return e.parent.parent.parent.left.expression;if(197===e.kind&&Ub.isPropertyAssignment(e.parent)&&Ub.isIdentifier(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&Ub.isObjectLiteralExpression(e.parent.parent)&&Ub.isCallExpression(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===Ub.getAssignmentDeclarationKind(e.parent.parent.parent))return e.parent.parent.parent.arguments[0].expression;if(Ub.isMethodDeclaration(e)&&Ub.isIdentifier(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&Ub.isObjectLiteralExpression(e.parent)&&Ub.isCallExpression(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===Ub.getAssignmentDeclarationKind(e.parent.parent))return e.parent.parent.arguments[0].expression}}(n);if(r&&i){var a,o=Pg(i).symbol;if(o&&o.members&&16&o.flags)if(a=vh(o))return Up(e,a)}else if(r&&(197===n.kind||240===n.kind)&&Ub.getJSDocClassTag(n)){if(a=vh(Wr(n.symbol)))return Up(e,a)}var s=oa(n)||ff(n);if(s)return Up(e,s)}if(Ub.isClassLike(n.parent)){var c,u=Gr(n.parent);return Up(e,c=Ub.hasModifier(n,32)?pa(u):La(u).thisType)}if(r&&((c=function(e){var t=Ub.getJSDocType(e);if(t&&295===t.kind){var n=t;if(0<n.parameters.length&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Du(n.parameters[0].type)}var r=Ub.getJSDocThisTag(e);if(r&&r.typeExpression)return Du(r.typeExpression)}(n))&&c!==be))return Up(e,c);if(Ub.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=Gr(n);return l&&pa(l)}if(t)return pa(ee)}}function lf(e,t){return Ub.findAncestor(e,function(e){return Ub.isFunctionLikeDeclaration(e)?"quit":152===e.kind&&e.parent===t})}function df(e){var t=192===e.parent.kind&&e.parent.expression===e,n=Ub.getSuperContainer(e,!0),r=!1;if(!t)for(;n&&198===n.kind;)n=Ub.getSuperContainer(n,!0),r=k<2;var i=0;if(!function(e){if(!e)return!1;{if(t)return 158===e.kind;if(Ub.isClassLike(e.parent)||189===e.parent.kind)return Ub.hasModifier(e,32)?157===e.kind||156===e.kind||159===e.kind||160===e.kind:157===e.kind||156===e.kind||159===e.kind||160===e.kind||155===e.kind||154===e.kind||158===e.kind}return!1}(n)){var a=Ub.findAncestor(e,function(e){return e===n?"quit":150===e.kind});return a&&150===a.kind?Yn(e,Ub.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?Yn(e,Ub.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(Ub.isClassLike(n.parent)||189===n.parent.kind)?Yn(e,Ub.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Yn(e,Ub.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),be}if(t||158!==n.kind||sf(e,n,Ub.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=Ub.hasModifier(n,32)||t?512:256,rr(e).flags|=i,157===n.kind&&Ub.hasModifier(n,256)&&(Ub.isSuperProperty(e.parent)&&Ub.isAssignmentTarget(e.parent)?rr(n).flags|=4096:rr(n).flags|=2048),r&&nf(e.parent,n),189===n.parent.kind)return k<2?(Yn(e,Ub.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),be):ge;var o=n.parent;if(!Ub.getClassExtendsHeritageElement(o))return Yn(e,Ub.Diagnostics.super_can_only_be_referenced_in_a_derived_class),be;var s=La(Gr(o)),c=s&&xa(s)[0];return c?158===n.kind&&lf(e,n)?(Yn(e,Ub.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),be):512===i?Ba(s):$a(c,s.thisType):be}function pf(e){return 4&Ub.getObjectFlags(e)&&e.target===pt?e.typeArguments[0]:undefined}function ff(e){if(198===e.kind)return undefined;if(rl(e)){var t=Of(e);if(t){var n=t.thisParameter;if(n)return pa(n)}}var r,i=Ub.isInJSFile(e);if(m||i){var a=157!==(r=e).kind&&159!==r.kind&&160!==r.kind||189!==r.parent.kind?197===r.kind&&276===r.parent.kind?r.parent.parent:undefined:r.parent;if(a){for(var o=Nf(a),s=a,c=o;c;){var u=Vp(c,function(e){return 2097152&e.flags?Ub.forEach(e.types,pf):pf(e)});if(u)return Xu(u,Fd(wf(a)));if(276!==s.parent.kind)break;c=Nf(s=s.parent.parent)}return o?bd(o):vg(a)}var l=e.parent;if(205===l.kind&&60===l.operatorToken.kind){var d=l.left;if(190===d.kind||191===d.kind){var p=d.expression;if(i&&Ub.isIdentifier(p)){var f=Ub.getSourceFileOfNode(l);if(f.commonJsModuleIndicator&&np(p)===f.symbol)return undefined}return vg(p)}}}return undefined}function _f(e){var t=e.parent;if(!rl(t))return undefined;var n=Ub.getImmediatelyInvokedFunctionExpression(t);if(n&&n.arguments){var r=eh(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return K_(r,i,r.length,ge,undefined);var a=rr(n),o=a.resolvedSignature;a.resolvedSignature=Ot;var s=i<r.length?od(Pg(r[i])):e.initializer?undefined:Ie;return a.resolvedSignature=o,s}var c=Of(t);if(c){var u=t.parameters.indexOf(e)-(Ub.getThisParameter(t)?1:0);return(e.dotDotDotToken&&Ub.lastOrUndefined(t.parameters)===e?Vh:wh)(c,u)}}function hf(e){var t=Ub.getEffectiveTypeAnnotationNode(e);if(t)return Du(t);switch(e.kind){case 152:return _f(e);case 187:return function(e){var t=e.parent.parent,n=e.propertyName||e.name,r=hf(t);if(r&&!Ub.isBindingPattern(n)&&!Fi(n)){var i=jc(n);if(Ya(i)){var a=Ka(i);return Pi(r,a)}}}(e)}}function gf(e){for(var t=!1;e.parent&&!Ub.isFunctionLike(e.parent);){if(Ub.isParameter(e.parent)&&(t||e.parent.initializer===e))return 1;Ub.isBindingElement(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}}function mf(e){var t=vs(e);if(t)return t;var n=Ff(e);return n&&!Es(n)?bs(n):undefined}function yf(e,t){var n=eh(e).indexOf(t);return-1===n?undefined:bf(e,n)}function bf(e,t){var n=rr(e).resolvedSignature===Ht?Ht:mh(e);return Ub.isJsxOpeningLikeElement(e)&&0===t?Vf(n,e):Ah(n,t)}function vf(e,t){var n=e.parent,r=n.left,i=n.operatorToken,a=n.right;switch(i.kind){case 60:if(e!==a)return undefined;var o=function(e){var t=Ub.getAssignmentDeclarationKind(e);switch(t){case 0:return!0;case 5:case 1:case 6:case 3:if(e.left.symbol){var n=e.left.symbol.valueDeclaration;if(!n)return!1;var r=e.left,i=Ub.getEffectiveTypeAnnotationNode(n);if(i)return Du(i);if(Ub.isIdentifier(r.expression)){var a=r.expression,o=sr(a,a.escapedText,67220415,undefined,a.escapedText,!0);if(o)return(s=Ub.getEffectiveTypeAnnotationNode(o.valueDeclaration))?(c=Ef(Du(s),r.name.escapedText))||!1:!1}return!Ub.isInJSFile(n)}return!0;case 2:case 4:if(!e.symbol)return!0;var s,c;if(e.symbol.valueDeclaration)if(s=Ub.getEffectiveTypeAnnotationNode(e.symbol.valueDeclaration))if(c=Du(s))return c;if(2===t)return!1;var u=e.left;if(!Ub.isObjectLiteralMethod(Ub.getThisContainer(u.expression,!1)))return!1;var l=cf(u.expression);return l&&Ef(l,u.name.escapedText)||!1;case 7:case 8:case 9:return Ub.Debug.fail("Does not apply");default:return Ub.Debug.assertNever(t)}}(n);return o?!0===o?wg(r):o:undefined;case 55:var s=Af(n,t);return s||e!==a||Ub.isDefaultedExpandoInitializer(n)?s:wg(r);case 54:case 27:return e===a?Af(n,t):undefined;default:return undefined}}function Ef(e,o){return Vp(e,function(e){if(Bo(e)){var t=mo(e),n=Fo(t)||t,r=xu(Ub.unescapeLeadingUnderscores(o));if(ll(r,n))return nu(e,r)}else if(3670016&e.flags){var i=Ko(e,o);if(i)return pa(i);if(ud(e)){var a=ld(e);if(a&&Yf(o)&&0<=+o)return a}return Yf(o)&&If(e,1)||If(e,0)}return undefined},!0)}function If(e,t){return Vp(e,function(e){return Qo(e,t)},!0)}function Tf(e,t){var n=Nf(e.parent,t);if(n){if(!Ua(e)){var r=Ef(n,Gr(e).escapedName);if(r)return r}return Wf(e.name)&&If(n,1)||If(n,0)}return undefined}function Cf(e,t){return e&&(Ef(e,""+t)||Gm(e,undefined,!1,!1,!1))}function Bf(e){var t=e.parent;return Ub.isJsxAttributeLike(t)?Af(e):Ub.isJsxElement(t)?function(e,t){var n=Nf(e.openingElement.tagName),r=a_(r_(e));if(!n||Li(n)||!r||""===r)return undefined;var i=El(e.children),a=i.indexOf(t),o=Ef(n,r);return o&&(1===i.length?o:Vp(o,function(e){return Ql(e)?ru(e,xu(a)):e},!0))}(t,e):undefined}function xf(e){if(Ub.isJsxAttribute(e)){var t=Nf(e.parent);return!t||Li(t)?undefined:Ef(t,e.name.escapedText)}return Af(e.parent)}function Sf(e){switch(e.kind){case 10:case 8:case 9:case 14:case 103:case 88:case 97:case 73:case 142:return!0;case 190:case 196:return Sf(e.expression);case 271:return!e.expression||Sf(e.expression)}return!1}function Nf(e,t){var n,r,i,a,o=Df(Af(e,t),e,t);if(o){var s=Vp(o,Yo,!0);if(1048576&s.flags){if(Ub.isObjectLiteralExpression(e))return i=e,Vl(a=s,Ub.map(Ub.filter(i.properties,function(e){return!!e.symbol&&276===e.kind&&Sf(e.initializer)&&cp(a,e.symbol.escapedName)}),function(e){return[function(){return Pg(e.initializer)},e.symbol.escapedName]}),ll,a);if(Ub.isJsxAttributes(e))return n=e,Vl(r=s,Ub.map(Ub.filter(n.properties,function(e){return!!e.symbol&&268===e.kind&&cp(r,e.symbol.escapedName)&&(!e.initializer||Sf(e.initializer))}),function(e){return[e.initializer?function(){return Pg(e.initializer)}:function(){return ke},e.symbol.escapedName]}),ll,r)}return s}}function Df(e,t,n){if(e&&sg(e,63176704)){var r=wf(t);if(r&&Ub.some(r.inferences,kg)){if(n&&1&n)return kf(e,r.nonFixingMapper);if(r.returnMapper)return kf(e,r.returnMapper)}}return e}function kf(e,t){return 63176704&e.flags?Xu(e,t):1048576&e.flags?Pc(Ub.map(e.types,function(e){return kf(e,t)}),0):2097152&e.flags?Rc(Ub.map(e.types,function(e){return kf(e,t)})):e}function Af(e,t){if(8388608&e.flags)return undefined;if(e.contextualType)return e.contextualType;var n,r,i,a,o,s=e.parent;switch(s.kind){case 238:case 152:case 155:case 154:case 187:return function(e){var t=e.parent;if(Ub.hasInitializer(t)&&e===t.initializer){var n=hf(t);if(n)return n;if(Ub.isBindingPattern(t.name))return Qi(t.name,!0,!1)}return undefined}(e);case 198:case 231:return function(e){var t=Ub.getContainingFunction(e);if(t){var n=Ub.getFunctionFlags(t);if(1&n)return undefined;var r=mf(t);if(r){if(2&n){var i=tm(r);return i&&Pc([i,Yh(i)])}return r}}return undefined}(e);case 208:return function(e){var t=Ub.getContainingFunction(e);if(t){var n=Ub.getFunctionFlags(t),r=mf(t);if(r)return e.asteriskToken?r:Um(r,0!=(2&n))}return undefined}(s);case 202:return function(e){var t=Af(e);if(t){var n=im(t);return n&&Pc([n,Yh(n)])}return undefined}(s);case 192:case 193:return yf(s,e);case 195:case 213:return Ub.isConstTypeReference(s.type)?undefined:Du(s.type);case 205:return vf(e,t);case 276:case 277:return Tf(s,t);case 278:return Nf(s.parent,t);case 188:var c=s;return Cf(Nf(c,t),Ub.indexOfNode(c.elements,e));case 206:return a=t,o=(i=e).parent,i===o.whenTrue||i===o.whenFalse?Af(o,a):undefined;case 217:return Ub.Debug.assert(207===s.parent.kind),n=s.parent,r=e,194===n.parent.kind?yf(n.parent,r):undefined;case 196:var u=Ub.isInJSFile(s)?Ub.getJSDocTypeTag(s):undefined;return u?Du(u.typeExpression.type):Af(s,t);case 271:return Bf(s);case 268:case 270:return xf(s);case 263:case 262:return function(e){if(Ub.isJsxOpeningElement(e)&&e.parent.contextualType)return e.parent.contextualType;return bf(e,0)}(s)}return undefined}function wf(e){var t=Ub.findAncestor(e,function(e){return!!e.inferenceContext});return t&&t.inferenceContext}function Vf(e,t){return(0!==X_(t)?function(e,t){var n=Hh(e,ve);n=Pf(t,r_(t),n);var r=t_(Kb.IntrinsicAttributes,t);r!==be&&(n=co(r,n));return n}:function(e,t){var n=r_(t),r=function(e){return i_(Kb.ElementAttributesPropertyNameContainer,e)}(n),i=r===undefined?Hh(e,ve):""===r?bs(e):function(e,t){if(e.unionSignatures){for(var n=[],r=0,i=e.unionSignatures;r<i.length;r++){var a=bs(i[r]);if(Li(a))return a;var o=Pi(a,t);if(!o)return;n.push(o)}return Rc(n)}var s=bs(e);return Li(s)?s:Pi(s,t)}(e,r);if(!i)return r&&Ub.length(t.attributes.properties)&&Yn(t,Ub.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ub.unescapeLeadingUnderscores(r)),ve;{if(Li(i=Pf(t,n,i)))return i;var a,o,s=i,c=t_(Kb.IntrinsicClassAttributes,t);c!==be&&(a=ba(c.symbol),o=bs(e),s=co(a?Rs(c,ds([o],a,ls(a),Ub.isInJSFile(t))):c,s));var u=t_(Kb.IntrinsicAttributes,t);return u!==be&&(s=co(u,s)),s}})(e,t)}function Pf(e,t,n){var r,i=(r=t)&&ar(r.exports,Kb.LibraryManagedAttributes,67897832);if(i){var a=La(i),o=function(e){if(qf(e.tagName))return Ds(_h(e,t=s_(e)));var t,n=vg(e.tagName);return 128&n.flags?(t=o_(n,e))?Ds(_h(e,t)):be:n}(e);if(2<=Ub.length(a.typeParameters))return Rs(a,s=ds([o,n],a.typeParameters,2,Ub.isInJSFile(e)));if(2<=Ub.length(a.aliasTypeArguments)){var s=ds([o,n],a.aliasTypeArguments,2,Ub.isInJSFile(e));return Gs(a.aliasSymbol,s)}}return n}function Lf(e,t){var n=Xo(e,0);if(1===n.length){var r=n[0];if(!function(e,t){for(var n=0;n<t.parameters.length;n++){var r=t.parameters[n];if(r.initializer||r.questionToken||r.dotDotDotToken||is(r))break}t.parameters.length&&Ub.parameterIsThisKeyword(t.parameters[0])&&n--;return!Mh(e)&&Ph(e)<n}(r,t))return r}}function Mf(e){return 197===e.kind||198===e.kind}function Ff(e){return Mf(e)||Ub.isObjectLiteralMethod(e)?Of(e):undefined}function Of(e){Ub.Debug.assert(157!==e.kind||Ub.isObjectLiteralMethod(e));var t=fs(e);if(t)return t;var n,r,i,a=Ub.isObjectLiteralMethod(e)?(n=e,r=1,Ub.Debug.assert(Ub.isObjectLiteralMethod(n)),8388608&n.flags?undefined:Tf(n,r)):Nf(e,1);if(!a)return undefined;if(!(1048576&a.flags))return Lf(a,e);for(var o=0,s=a.types;o<s.length;o++){var c=Lf(s[o],e);if(c)if(i){if(!Ul(i[0],c,!1,!0,!0,ol))return undefined;i.push(c)}else i=[c]}return i&&ro(i[0],i)}function Rf(e){return 187===e.kind&&!!e.initializer||205===e.kind&&60===e.operatorToken.kind}function Hf(e,t,n){for(var r=e.elements,i=r.length,a=!1,o=[],s=Ub.isAssignmentTarget(e),c=Nf(e),u=Cg(e),l=0;l<i;l++){var d,p,f=r[l];s&&209===f.kind?(p=es(d=Pg(f.expression,t,n),1)||Gm(d,undefined,!1,!1,!1))&&o.push(p):(h=Bg(f,t,Cf(c,l),n),o.push(h)),l<i-1&&209===f.kind&&(a=!0)}if(!a){var _,h,g=0<i&&209===r[i-1].kind,m=i-(g?1:0);if(s&&0<m)return(h=Hs(xc(o,m,g))).pattern=e,h;if(_=jf(o,c,g,i,u))return _;if(n)return xc(o,m,g)}return Tc(o.length?Pc(o,2):U?Fe:Ie,u)}function jf(e,t,n,r,i){if(void 0===r&&(r=e.length),void 0===i&&(i=!1),i||t&&kp(t,ed)){var a=r-(n?1:0),o=t&&t.pattern;if(!n&&o&&(186===o.kind||188===o.kind))for(var s=o.elements,c=r;c<s.length;c++){var u=s[c];Rf(u)?e.push(t.typeArguments[c]):(c<s.length-1||!(187===u.kind&&u.dotDotDotToken||209===u.kind))&&(211!==u.kind&&Yn(u,Ub.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),e.push(U?Fe:Ie))}return xc(e,a,n,i)}}function Wf(e){switch(e.kind){case 150:return cg(Jf(e),296);case 73:return Yf(e.escapedText);case 8:case 10:return Yf(e.text);default:return!1}}function Gf(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Yf(e){return(+e).toString()===e}function Jf(e){var t=rr(e.expression);return t.resolvedType||(t.resolvedType=Pg(e.expression),98304&t.resolvedType.flags||!cg(t.resolvedType,12716)&&!ll(t.resolvedType,Re)?Yn(e,Ub.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):P_(e.expression,t.resolvedType,!0)),t.resolvedType}function zf(e,t,n,r){for(var i=[],a=0;a<n.length;a++)0!==r&&!Wf(e.properties[a+t].name)||i.push(pa(n[a]));return ws(i.length?Pc(i,2):Ee,Cg(e))}function Uf(e){Ub.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=nr(e);if(!t.immediateTarget){var n=fr(e);if(!n)return Ub.Debug.fail();t.immediateTarget=br(n,!0)}return t.immediateTarget}function Kf(r,e){var i=Ub.isAssignmentTarget(r);!function(e,t){!function(e){e[e.Property=1]="Property",e[e.GetAccessor=2]="GetAccessor",e[e.SetAccessor=4]="SetAccessor",e[e.GetOrSetAccessor=6]="GetOrSetAccessor"}({});for(var n=Ub.createUnderscoreEscapedMap(),r=0,i=e.properties;r<i.length;r++){var a=i[r];if(278!==a.kind){var o=a.name;if(150===o.kind&&Nb(o),277===a.kind&&!t&&a.objectAssignmentInitializer)return Wb(a.equalsToken,Ub.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(a.modifiers)for(var s=0,c=a.modifiers;s<c.length;s++){var u=c[s];122===u.kind&&157===a.kind||Wb(u,Ub.Diagnostics._0_modifier_cannot_be_used_here,Ub.getTextOfNode(u))}var l=void 0;switch(a.kind){case 277:Ab(a.exclamationToken,Ub.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 276:kb(a.questionToken,Ub.Diagnostics.An_object_member_cannot_be_declared_optional),8===o.kind&&Yb(o);case 157:l=1;break;case 159:l=2;break;case 160:l=4;break;default:throw Ub.Debug.assertNever(a,"Unexpected syntax kind:"+a.kind)}var d=Ub.getPropertyNameForPropertyNameNode(o);if(d!==undefined){var p=n.get(d);if(p)if(1===l&&1===p)Wb(o,Ub.Diagnostics.Duplicate_identifier_0,Ub.getTextOfNode(o));else{if(!(6&l&&6&p))return Wb(o,Ub.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(6===p||l===p)return Wb(o,Ub.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(d,l|p)}else n.set(d,l)}}else if(t){var f=Ub.skipParentheses(a.expression);if(Ub.isArrayLiteralExpression(f)||Ub.isObjectLiteralExpression(f))return Wb(a.expression,Ub.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(r,i);for(var a=[],t=We,n=Nf(r),o=n&&n.pattern&&(185===n.pattern.kind||189===n.pattern.kind),s=Cg(r),c=s?8:0,u=Ub.isInJSFile(r)&&!Ub.isInJsonFile(r),l=Ub.getJSDocEnumTag(r),d=!n&&u&&!l,p=A,f=!1,_=!1,h=!1,g=Ub.createSymbolTable(),m=0,y=0;y<r.properties.length;y++){var b=r.properties[y],v=Gr(b),E=b.name&&150===b.name.kind&&!Ub.isWellKnownSymbolSyntactically(b.name.expression)?Jf(b.name):undefined;if(276===b.kind||277===b.kind||Ub.isObjectLiteralMethod(b)){var I,T=276===b.kind?xg(b,e):277===b.kind?Bg(b.name,e):Sg(b,e);u&&((I=Gi(b))?(_l(T,I,b),T=I):l&&l.typeExpression&&_l(T,Du(l.typeExpression),b)),p|=917504&Ub.getObjectFlags(T);var C,B=E&&Ya(E)?E:undefined,x=B?zn(4|v.flags,Ka(B),4096|c):zn(4|v.flags,v.escapedName,c);B&&(x.nameType=B),i?(276===b.kind&&Rf(b.initializer)||277===b.kind&&b.objectAssignmentInitializer)&&(x.flags|=16777216):!o||512&Ub.getObjectFlags(n)||((C=Ko(n,v.escapedName))?x.flags|=16777216&C.flags:z.suppressExcessPropertyErrors||$o(n,0)||Yn(b.name,Ub.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,mi(v),bi(n))),x.declarations=v.declarations,x.parent=v.parent,v.valueDeclaration&&(x.valueDeclaration=v.valueDeclaration),x.type=T,x.target=v,v=x}else{if(278===b.kind){if(k<2&&mb(b,2),0<a.length&&(t=yu(t,D(),r.symbol,p,s),a=[],g=Ub.createSymbolTable(),h=_=!1),!Zf(T=Pg(b.expression)))return Yn(b,Ub.Diagnostics.Spread_types_may_only_be_created_from_object_types),be;t=yu(t,T,r.symbol,p,s),m=y+1;continue}Ub.Debug.assert(159===b.kind||160===b.kind),vy(b)}!E||8576&E.flags?g.set(v.escapedName,v):ll(E,Re)&&(ll(E,xe)?h=!0:_=!0,i&&(f=!0)),a.push(v)}if(o)for(var S=0,N=ko(n);S<N.length;S++){x=N[S];g.get(x.escapedName)||t&&Ko(t,x.escapedName)||(16777216&x.flags||Yn(x.valueDeclaration||x.bindingElement,Ub.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),g.set(x.escapedName,x),a.push(x))}return t!==We?(0<a.length&&(t=yu(t,D(),r.symbol,p,s)),t):D();function D(){var e=_?zf(r,m,a,0):undefined,t=h?zf(r,m,a,1):undefined,n=ii(r.symbol,g,Ub.emptyArray,Ub.emptyArray,e,t);return n.objectFlags|=262272|p,d&&(n.objectFlags|=16384),f&&(n.objectFlags|=512),i&&(n.pattern=r),n}}function Zf(e){return!!(126615555&e.flags||117632&_d(e)&&Zf(hd(e))||3145728&e.flags&&Ub.every(e.types,Zf))}function Xf(e){return!Ub.stringContains(e,"-")}function qf(e){return 73===e.kind&&Ub.isIntrinsicJsxName(e.escapedText)}function Qf(e,t){return e.initializer?Bg(e.initializer,t):ke}function $f(e,t){for(var n=[],r=0,i=e.children;r<i.length;r++){var a=i[r];11===a.kind?a.containsOnlyTriviaWhiteSpaces||n.push(Be):n.push(Bg(a,t))}return n}function e_(e,t){return function(e,t){for(var n,r=e.attributes,i=Ub.createSymbolTable(),a=Ge,o=!1,s=!1,c=4096,u=a_(r_(e)),l=0,d=r.properties;l<d.length;l++){var p,f,_=d[l],h=_.symbol;Ub.isJsxAttribute(_)?(f=Qf(_,t),c|=917504&Ub.getObjectFlags(f),(p=zn(33554436|h.flags,h.escapedName)).declarations=h.declarations,p.parent=h.parent,h.valueDeclaration&&(p.valueDeclaration=h.valueDeclaration),p.type=f,p.target=h,i.set(p.escapedName,p),_.name.escapedText===u&&(s=!0)):(Ub.Debug.assert(270===_.kind),0<i.size&&(a=yu(a,I(),r.symbol,c,!1),i=Ub.createSymbolTable()),Li(f=vg(_.expression,t))&&(o=!0),Zf(f)?a=yu(a,f,r.symbol,c,!1):n=n?Rc([n,f]):f)}o||0<i.size&&(a=yu(a,I(),r.symbol,c,!1));var g,m,y,b,v,E=261===e.parent.kind?e.parent:undefined;return E&&E.openingElement===e&&0<E.children.length&&(g=$f(E,t),!o&&u&&""!==u&&(s&&Yn(r,Ub.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ub.unescapeLeadingUnderscores(u)),y=(m=Nf(e.attributes))&&Ef(m,u),(b=zn(33554436,u)).type=1===g.length?g[0]:jf(g,y,!1)||Tc(Pc(g)),b.valueDeclaration=Ub.createPropertySignature(undefined,Ub.unescapeLeadingUnderscores(u),undefined,undefined,undefined),b.valueDeclaration.parent=r,b.valueDeclaration.symbol=b,(v=Ub.createSymbolTable()).set(u,b),a=yu(a,ii(r.symbol,v,Ub.emptyArray,Ub.emptyArray,undefined,undefined),r.symbol,c,!1))),o?ge:n&&a!==Ge?Rc([n,a]):n||(a===Ge?I():a);function I(){c|=A;var e=ii(r.symbol,i,Ub.emptyArray,Ub.emptyArray,undefined,undefined);return e.objectFlags|=262272|c,e}}(e.parent,t)}function t_(e,t){var n=r_(t),r=n&&Or(n),i=r&&ar(r,e,67897832);return i?La(i):be}function n_(e){var t=rr(e);if(t.resolvedSymbol)return t.resolvedSymbol;var n=t_(Kb.IntrinsicElements,e);if(n===be)return K&&Yn(e,Ub.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ub.unescapeLeadingUnderscores(Kb.IntrinsicElements)),t.resolvedSymbol=_e;if(!Ub.isIdentifier(e.tagName))return Ub.Debug.fail();var r=Ko(n,e.tagName.escapedText);return r?(t.jsxFlags|=1,t.resolvedSymbol=r):es(n,0)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(Yn(e,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,Ub.idText(e.tagName),"JSX."+Kb.IntrinsicElements),t.resolvedSymbol=_e)}function r_(e){var t=e&&rr(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var n=Gn(e),r=sr(e,n,1920,undefined,n,!1);if(r){var i=Er(ar(Or(Er(r)),Kb.JSX,1920));if(i)return t&&(t.jsxNamespace=i),i;t&&(t.jsxNamespace=!1)}}return ac(Kb.JSX,1920,undefined)}function i_(e,t){var n=t&&ar(t.exports,e,67897832),r=n&&La(n),i=r&&ko(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;1<i.length&&Yn(n.declarations[0],Ub.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,Ub.unescapeLeadingUnderscores(e))}return undefined}function a_(e){return i_(Kb.ElementChildrenAttributeNameContainer,e)}function o_(e,t){var n=t_(Kb.IntrinsicElements,t);if(n===be)return ge;var r=e.value,i=Ko(n,Ub.escapeLeadingUnderscores(r));if(i)return pa(i);var a=es(n,0);return a||undefined}function s_(e){Ub.Debug.assert(qf(e.tagName));var t=rr(e);if(t.resolvedJsxElementAttributesType)return t.resolvedJsxElementAttributesType;var n=n_(e);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=pa(n):2&t.jsxFlags?t.resolvedJsxElementAttributesType=Vs(n,0).type:t.resolvedJsxElementAttributesType=be}function c_(e){var t=t_(Kb.ElementClass,e);return t===be?undefined:t}function u_(e){return t_(Kb.Element,e)}function l_(e){var t=u_(e);if(t)return Pc([t,Te])}function d_(e){var t,n=Ub.isJsxOpeningLikeElement(e);n&&function(e){Cb(e,e.typeArguments);for(var t=Ub.createUnderscoreEscapedMap(),n=0,r=e.attributes.properties;n<r.length;n++){var i=r[n];if(270!==i.kind){var a=i.name,o=i.initializer;if(t.get(a.escapedText))return Wb(a,Ub.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(a.escapedText,!0),o&&271===o.kind&&!o.expression)return Wb(o,Ub.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(e),t=e,0===(z.jsx||0)&&Yn(t,Ub.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),u_(t)===undefined&&K&&Yn(t,Ub.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var r,i=yn&&2===z.jsx?Ub.Diagnostics.Cannot_find_name_0:undefined,a=Gn(e),o=sr(n?e.tagName:e,a,67220415,i,a,!0);o&&(o.isReferenced=67108863,2097152&o.flags&&!Xy(Ir(o))&&Cr(o)),n&&(r=mh(e),function(e,t,n){if(1===e)(r=l_(n))&&wl(t,r,Fn,n,Ub.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);else if(0===e){(i=c_(n))&&wl(t,i,Fn,n,Ub.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}else{var r=l_(n),i=c_(n);if(!r||!i)return;wl(t,Pc([r,i]),Fn,n,Ub.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}(X_(e),bs(r),e))}function p_(e,t,n){if(524288&e.flags){var r=xo(e);if(r.stringIndexInfo||r.numberIndexInfo&&Yf(t)||No(e,t)||n&&!Xf(t))return 1}else if(3145728&e.flags&&f_(e))for(var i=0,a=e.types;i<a.length;i++){if(p_(a[i],t,n))return 1}}function f_(e){return!!(524288&e.flags&&!(512&Ub.getObjectFlags(e))||67108864&e.flags||1048576&e.flags&&Ub.some(e.types,f_)||2097152&e.flags&&Ub.every(e.types,f_))}function __(e){return e.valueDeclaration?Ub.getCombinedNodeFlags(e.valueDeclaration):0}function h_(e){if(8192&e.flags||4&Ub.getCheckFlags(e))return 1;if(Ub.isInJSFile(e.valueDeclaration)){var t=e.valueDeclaration.parent;return t&&Ub.isBinaryExpression(t)&&3===Ub.getAssignmentDeclarationKind(t)}}function g_(e,t,n,r){var i,a,o,s,c=Ub.getDeclarationModifierFlagsFromSymbol(r),u=149===e.kind?e.right:184===e.kind?e:e.name;if(1024&Ub.getCheckFlags(r))return Yn(u,Ub.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,mi(r),bi(n)),!1;if(t){if(k<2&&m_(r))return Yn(u,Ub.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&c)return Yn(u,Ub.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,mi(r),bi(Yl(r))),!1}if(128&c&&Ub.isThisProperty(e)&&m_(r)&&((a=Ub.getClassLikeDeclarationOfSymbol(Yr(r)))&&(i=e,Ub.findAncestor(i,function(e){return!!(Ub.isConstructorDeclaration(e)&&Ub.nodeIsPresent(e.body)||Ub.isPropertyDeclaration(e))||!(!Ub.isClassLike(e)&&!Ub.isFunctionLikeDeclaration(e))&&"quit"}))))return Yn(u,Ub.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,mi(r),Ub.getTextOfIdentifierOrLiteral(a.name)),!1;if(!(24&c))return!0;if(8&c)return!!ky(e,a=Ub.getClassLikeDeclarationOfSymbol(Yr(r)))||(Yn(u,Ub.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,mi(r),bi(Yl(r))),!1);if(t)return!0;if(!(p=Dy(e,function(e){var t,n=La(Gr(e));return t=n,(Gl(r,function(e){return!!(16&Ub.getDeclarationModifierFlagsFromSymbol(e))&&!ha(t,Yl(e))})?undefined:t)?n:undefined}))){var l=void 0;if(32&c||(o=e,!(l=(s=Ub.getThisContainer(o,!1))&&Ub.isFunctionLike(s)?Ub.getThisParameter(s):undefined))||!l.type)return Yn(u,Ub.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,mi(r),bi(Yl(r)||n)),!1;var d=Du(l.type),p=262144&d.flags?wo(d):d}return!!(32&c)||(262144&n.flags&&(n=(n.isThisType?wo:Fo)(n)),!(!n||!ha(n,p))||(Yn(u,Ub.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,mi(r),bi(p)),!1))}function m_(e){return Gl(e,function(e){return!(8192&e.flags)})}function y_(e,t,n,r){return v_(Pg(e),e,t,n,r)}function b_(e){return 98304&(U?_d(e):e.flags)?bd(e):e}function v_(e,t,n,r,i){if(U&&2&e.flags)return Yn(t,Ub.Diagnostics.Object_is_of_type_unknown),be;var a=98304&(U?_d(e):e.flags);if(a){Yn(t,32768&a?65536&a?i||Ub.Diagnostics.Object_is_possibly_null_or_undefined:r||Ub.Diagnostics.Object_is_possibly_undefined:n||Ub.Diagnostics.Object_is_possibly_null);var o=bd(e);return 229376&o.flags?be:o}return e}function E_(e,t){var n=v_(e,t);return n!==be&&16384&n.flags&&Yn(t,Ub.Diagnostics.Object_is_possibly_undefined),n}function I_(e){return C_(e,e.expression,e.name)}function T_(e){return C_(e,e.left,e.right)}function C_(e,t,n){var r,i=y_(t),a=rr(t).resolvedSymbol,o=Yo(xd(i));if(Li(o)||o===Le)return Ub.isIdentifier(t)&&a&&ef(a,e),o;var s=Ub.getAssignmentTargetKind(e),c=Ko(o,n.escapedText);if(!Ub.isIdentifier(t)||!a||c&&Xy(c)||ef(a,e),c){if(!function(e,t,n){var r,i=e.valueDeclaration;if(!i)return;var a=Ub.idText(n);!function(e){return!!Ub.findAncestor(e,function(e){switch(e.kind){case 155:return!0;case 276:case 157:case 159:case 160:case 278:case 150:case 217:case 271:case 268:case 269:case 270:case 263:case 212:case 274:return!1;default:return!Ub.isExpressionNode(e)&&"quit"}})}(t)||or(i,n)||function(e){if(!(32&e.parent.flags))return!1;var t=pa(e.parent);for(;;){if(!(t=t.symbol&&function(e){var t=xa(e);return 0!==t.length?Rc(t):undefined}(t)))return!1;var n=Ko(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?241!==i.kind||165===t.parent.kind||4194304&i.flags||or(i,n)||(r=Yn(n,Ub.Diagnostics.Class_0_used_before_its_declaration,a)):r=Yn(n,Ub.Diagnostics.Property_0_is_used_before_its_initialization,a);r&&Ub.addRelatedInfo(r,Ub.createDiagnosticForNode(i,Ub.Diagnostics._0_is_declared_here,a))}(c,e,n),A_(c,e,101===t.kind),rr(e).resolvedSymbol=c,g_(e,99===t.kind,o,c),s&&(rg(e,c)||ig(e)))return Yn(n,Ub.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ub.idText(n)),be;r=$p(pa(c),e)}else{var u=0!==s&&Xc(i)?undefined:$o(o,0);if(!u||!u.type)return Uc(i)?ge:i.symbol===ee?(ee.exports.has(n.escapedText)&&418&ee.exports.get(n.escapedText).flags?Yn(n,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,Ub.unescapeLeadingUnderscores(n.escapedText),bi(i)):K&&Yn(n,Ub.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,bi(i)),ge):(n.escapedText&&!lr(e)&&function(e,t){var n,r;if(1048576&t.flags&&!(131068&t.flags))for(var i=0,a=t.types;i<a.length;i++){var o=a[i];if(!Ko(o,e.escapedText)){n=Ub.chainDiagnosticMessages(n,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,Ub.declarationNameToString(e),bi(o));break}}{var s,c,u;B_(e.escapedText,t)?n=Ub.chainDiagnosticMessages(n,Ub.Diagnostics.Property_0_is_a_static_member_of_type_1,Ub.declarationNameToString(e),bi(t)):(s=nm(t))&&Ko(s,e.escapedText)?n=Ub.chainDiagnosticMessages(n,Ub.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await,Ub.declarationNameToString(e),bi(t)):(c=x_(e,t))!==undefined?(u=Ub.symbolName(c),n=Ub.chainDiagnosticMessages(n,Ub.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ub.declarationNameToString(e),bi(t),u),r=c.valueDeclaration&&Ub.createDiagnosticForNode(c.valueDeclaration,Ub.Diagnostics._0_is_declared_here,u)):n=Ub.chainDiagnosticMessages(n,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,Ub.declarationNameToString(e),bi(t))}var l=Ub.createDiagnosticForNodeFromMessageChain(e,n);r&&Ub.addRelatedInfo(l,r);yn.add(l)}(n,Qc(i)?o:i),be);u.isReadonly&&(Ub.isAssignmentTarget(e)||Ub.isDeleteTarget(e))&&Yn(e,Ub.Diagnostics.Index_signature_in_type_0_only_permits_reading,bi(o)),r=u.type}if(190!==e.kind||1===s||c&&!(98311&c.flags)&&!(8192&c.flags&&1048576&r.flags))return r;var l,d,p=!1;U&&B&&101===t.kind?(l=c&&c.valueDeclaration)&&ay(l)&&(158===(d=Kp(e)).kind&&d.parent===l.parent&&(p=!0)):U&&c&&c.valueDeclaration&&Ub.isPropertyAccessExpression(c.valueDeclaration)&&Ub.getAssignmentDeclarationPropertyAccessKind(c.valueDeclaration)&&Kp(e)===Kp(c.valueDeclaration)&&(p=!0);var f=Up(e,r,p?yd(r):r);return p&&!(32768&_d(r))&&32768&_d(f)?(Yn(n,Ub.Diagnostics.Property_0_is_used_before_being_assigned,mi(c)),r):s?ad(f):f}function B_(e,t){var n=t.symbol&&Ko(pa(t.symbol),e);return n!==undefined&&n.valueDeclaration&&Ub.hasModifier(n.valueDeclaration,32)}function x_(e,t){return k_(Ub.isString(e)?e:Ub.idText(e),ko(t),67220415)}function S_(e,t){var n=x_(e,t);return n&&Ub.symbolName(n)}function N_(e,r,t){return Ub.Debug.assert(r!==undefined,"outername should always be defined"),cr(e,r,t,undefined,r,!1,!1,function(e,t,n){return Ub.Debug.assertEqual(r,t,"name should equal outerName"),ar(e,t,n)||k_(Ub.unescapeLeadingUnderscores(t),Ub.arrayFrom(e.values()),n)})}function D_(e,t){return t.exports&&k_(Ub.idText(e),Mr(t),2623475)}function k_(e,t,n){return Ub.getSpellingSuggestion(e,t,function(e){var t=Ub.symbolName(e);return!Ub.startsWith(t,'"')&&e.flags&n?t:undefined})}function A_(e,t,n){if(e&&106500&e.flags&&e.valueDeclaration&&Ub.hasModifier(e.valueDeclaration,8)&&(!t||!Ub.isWriteOnlyAccess(t)||65536&e.flags&&!(32768&e.flags))){if(n){var r=Ub.findAncestor(t,Ub.isFunctionLikeDeclaration);if(r&&r.symbol===e)return}(1&Ub.getCheckFlags(e)?nr(e).target:e).isReferenced=67108863}}function w_(t,n,r,e){if(e===be||Li(e))return!0;var i=Ko(e,r);return i?g_(t,n,e,i):Ub.isInJSFile(t)&&0!=(1048576&e.flags)&&e.types.some(function(e){return w_(t,n,r,e)})}function V_(e){var t,n=Ub.skipParentheses(e);if(73===n.kind){var r=np(n);if(3&r.flags)for(var i=e,a=e.parent;a;){if(227===a.kind&&i===a.statement&&function(e){var t=e.initializer;if(239===t.kind){var n=t.declarations[0];if(n&&!Ub.isBindingPattern(n.name))return Gr(n)}else if(73===t.kind)return np(t);return undefined}(a)===r&&(es(t=wg(a.expression),1)&&!es(t,0)))return 1;a=(i=a).parent}}}function P_(e,t,n){if(t!==be&&Ub.isWellKnownSymbolSyntactically(e))if(0!=(12288&t.flags)){var r=e.expression,i=np(r);if(i){var a=sc(!0);if(a){if(i===a)return 1;n&&Yn(r,Ub.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object)}}}else n&&Yn(e,Ub.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,Ub.getTextOfNode(e))}function L_(e){return Ub.isCallOrNewExpression(e)||Ub.isTaggedTemplateExpression(e)||Ub.isJsxOpeningLikeElement(e)}function M_(e){return L_(e)&&Ub.forEach(e.typeArguments,yy),194===e.kind?Pg(e.template):Ub.isJsxOpeningLikeElement(e)?Pg(e.attributes):153!==e.kind&&Ub.forEach(e.arguments,function(e){Pg(e)}),Ot}function F_(e){return M_(e),Rt}function O_(e){return!!e&&(209===e.kind||216===e.kind&&e.isSpread)}function R_(e){return Ub.findIndex(e,O_)}function H_(e){return!!(16384&e.flags)}function j_(e,t,n,r){void 0===r&&(r=!1);var i=!1,a=Ph(n),o=Lh(n);if(194===e.kind){var s,c,u=t.length;i=207===e.template.kind?(s=Ub.last(e.template.templateSpans),Ub.nodeIsMissing(s.literal)||!!s.literal.isUnterminated):(c=e.template,Ub.Debug.assert(14===c.kind),!!c.isUnterminated)}else if(153===e.kind)u=th(e,n);else if(Ub.isJsxOpeningLikeElement(e)){if(i=e.attributes.end===e.end)return 1;u=0===o?t.length:1,a=0===t.length?a:1,o=Math.min(o,1)}else{if(!e.arguments)return Ub.Debug.assert(193===e.kind),0===Lh(n);u=r?t.length+1:t.length,i=e.arguments.end===e.end;var l=R_(t);if(0<=l)return l>=Lh(n)&&(Mh(n)||l<Ph(n))}if(Mh(n)||!(a<u)){if(i||o<=u)return 1;for(var d=u;d<o;d++){if(131072&wp(Ah(n,d),H_).flags)return}return 1}}function W_(e,t){var n=Ub.length(e.typeParameters),r=ls(e.typeParameters);return!t||t.length>=r&&t.length<=n}function G_(e){return J_(e,0,!1)}function Y_(e){return J_(e,0,!1)||J_(e,1,!1)}function J_(e,t,n){if(524288&e.flags){var r=xo(e);if(n||0===r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}return undefined}function z_(e,t,n,r){var i=wd(e.typeParameters,e,0,r),a=Fh(t),o=n&&(a&&262144&a.flags?n.nonFixingMapper:n.mapper);return kd(o?ju(t,o):t,e,function(e,t){zd(i.inferences,e,t)}),n||Ad(t,e,function(e,t){zd(i.inferences,e,t,16)}),Ts(e,ep(i),Ub.isInJSFile(t.declaration))}function U_(e,t,n,r,i){if(Ub.isJsxOpeningLikeElement(e))return o=r,s=i,c=Vf(t,a=e),u=bg(a.attributes,c,s,o),zd(s.inferences,u,c),ep(s);var a,o,s,c,u,l,d,p,f,_,h,g,m,y;153===e.kind||(l=Af(e))&&(f=(p=G_(d=Xu(l,Fd((m=wf(e),void 0===(y=1)&&(y=0),m&&Vd(Ub.map(m.inferences,Md),m.signature,m.flags|y,m.compareTypes))))))&&p.typeParameters?Ds(Cs(p,p.typeParameters)):d,_=bs(t),zd(i.inferences,f,_,16),i.returnMapper=Fd((h=i,(g=Ub.filter(h.inferences,kg)).length?Vd(Ub.map(g,Md),h.signature,h.flags,h.compareTypes):undefined)));var b,v,E=gs(t);E&&(v=(b=Q_(e))?Pg(b):Ve,zd(i.inferences,v,E));for(var I,T=Oh(t),C=T?Math.min(Ph(t)-1,n.length):n.length,B=0;B<C;B++){var x,S,N=n[B];211!==N.kind&&(S=bg(N,x=Ah(t,B),i,r),zd(i.inferences,S,x))}return T&&(I=K_(n,C,n.length,T,i),zd(i.inferences,I,T)),ep(i)}function K_(e,t,n,r,i){if(n-1<=t){var a=e[n-1];if(O_(a))return 216===a.kind?Tc(a.type):kp(o=bg(a.expression,r,i,0),function(e){return!(63176705&e.flags||Zl(e)||ud(e))})?Tc(ru(o,xe)):o}for(var o,s=[],c=-1,u=t;u<n;u++){var l=ru(r,xu(u-t)),d=bg(e[u],l,i,0);c<0&&O_(e[u])&&(c=u-t);var p=sg(l,4325372);s.push((p?Cu:od)(d))}return c<0?xc(s):xc(Ub.append(s.slice(0,c),Pc(s.slice(c))),c,!0)}function Z_(e,t,n,r){for(var i=Ub.isInJSFile(e.declaration),a=e.typeParameters,o=ds(Ub.map(t,Du),a,ls(a),i),s=0;s<t.length;s++){Ub.Debug.assert(a[s]!==undefined,"Should not call checkTypeArguments with too many type arguments");var c=wo(a[s]);if(c){var u=n&&r?function(){return Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:undefined,l=r||Ub.Diagnostics.Type_0_does_not_satisfy_the_constraint_1,d=d||Pu(a,o),p=o[s];if(!_l(p,$a(Xu(c,d),p),n?t[s]:undefined,l,u))return undefined}}return o}function X_(e){if(qf(e.tagName))return 2;var t=Yo(Pg(e.tagName));return Ub.length(Xo(t,1))?0:Ub.length(Xo(t,0))?1:2}function q_(e,t,n,r,i,a){if(Ub.isJsxOpeningLikeElement(e))return s=r,c=i,u=a,l=Vf(n,o=e),gl(bg(o.attributes,l,undefined,c),l,s,u?o.tagName:undefined,o.attributes);var o,s,c,u,l,d=gs(n);if(d&&d!==Ve&&193!==e.kind){var p=Q_(e);if(!wl(p?Pg(p):Ve,d,r,a?p||e:undefined,Ub.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1))return}for(var f=Ub.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,_=Oh(n),h=_?Math.min(Ph(n)-1,t.length):t.length,g=0;g<h;g++){var m=t[g];if(211!==m.kind){var y=Ah(n,g),b=bg(m,y,undefined,i);if(!gl(4&i?Id(b):b,y,r,a?m:undefined,m,f))return}}return!_||wl(K_(t,h,t.length,_,undefined),_,r,a?h<t.length?t[h]:e:undefined,f)}function Q_(e){if(192===e.kind){var t=Ub.skipOuterExpressions(e.expression);if(190===t.kind||191===t.kind)return t.expression}}function $_(e,t,n){var r=Ub.createNode(216,e.pos,e.end);return r.parent=e,r.type=t,r.isSpread=n||!1,r}function eh(e){if(194===e.kind){var t=e.template,n=[$_(t,(kt=kt||oc("TemplateStringsArray",0,!0))||We)];return 207===t.kind&&Ub.forEach(t.templateSpans,function(e){n.push(e.expression)}),n}if(153===e.kind)return function(e){var t=e.parent,n=e.expression;switch(t.kind){case 241:case 210:return[$_(n,pa(Gr(t)))];case 152:var r=t.parent;return[$_(n,158===t.parent.kind?pa(Gr(r)):be),$_(n,ge),$_(n,xe)];case 155:case 157:case 159:case 160:var i=155!==t.kind&&0!==k;return[$_(n,function(e){var t=Gr(e.parent);return(Ub.hasModifier(e,32)?pa:La)(t)}(t)),$_(n,function(e){var t=e.name;switch(t.kind){case 73:return xu(Ub.idText(t));case 8:case 10:return xu(t.text);case 150:var n=Jf(t);return cg(n,12288)?n:Be;default:return Ub.Debug.fail("Unsupported property name."),be}}(t)),$_(n,i?bc(Py(t)):ge)]}return Ub.Debug.fail()}(e);if(Ub.isJsxOpeningLikeElement(e))return 0<e.attributes.properties.length||Ub.isJsxOpeningElement(e)&&0<e.parent.children.length?[e.attributes]:Ub.emptyArray;var r=e.arguments||Ub.emptyArray,i=r.length;if(i&&O_(r[i-1])&&R_(r)===i-1){var a=r[i-1],o=(zt?Pg:vg)(a.expression);if(ud(o)){var s=o.typeArguments||Ub.emptyArray,c=o.target.hasRestElement?s.length-1:-1,u=Ub.map(s,function(e,t){return $_(a,e,t===c)});return Ub.concatenate(r.slice(0,i-1),u)}}return r}function th(e,t){switch(e.parent.kind){case 241:case 210:return 1;case 155:return 2;case 157:case 159:case 160:return 0===k||t.parameters.length<=2?2:3;case 152:return 3;default:return Ub.Debug.fail()}}function nh(e,t,n){for(var r,i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=n.length,u=0,l=t;u<l.length;u++){var d=l[u],p=Lh(d),f=Ph(d);p<c&&o<p&&(o=p),c<f&&f<s&&(s=f),p<i&&(i=p,r=d),a=Math.max(a,f)}var _,h=Ub.some(t,Mh),g=!h&&i<a?i+"-"+a:i,m=-1<R_(n);c<=a&&m&&c--;var y,b,v,E=h||m?h&&m?Ub.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:h?Ub.Diagnostics.Expected_at_least_0_arguments_but_got_1:Ub.Diagnostics.Expected_0_arguments_but_got_1_or_more:Ub.Diagnostics.Expected_0_arguments_but_got_1;if(r&&Lh(r)>c&&r.declaration&&((y=r.declaration.parameters[r.thisParameter?c+1:c])&&(_=Ub.createDiagnosticForNode(y,Ub.isBindingPattern(y.name)?Ub.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:Ub.Diagnostics.An_argument_for_0_was_not_provided,y.name?Ub.isBindingPattern(y.name)?undefined:Ub.idText(ly(y.name)):c))),i<c&&c<a)return Ub.createDiagnosticForNode(e,Ub.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c,o,s);if(!m&&c<i){var I=Ub.createDiagnosticForNode(e,E,g,c);return _?Ub.addRelatedInfo(I,_):I}h||m?(v=Ub.createNodeArray(n),m&&c&&(b=Ub.elementAt(n,R_(n)+1)||undefined,v=Ub.createNodeArray(n.slice(c<a&&b?n.indexOf(b):Math.min(a,n.length-1))))):v=Ub.createNodeArray(n.slice(a)),v.pos=Ub.first(v).pos,v.end=Ub.last(v).end,v.end===v.pos&&v.end++;var T=Ub.createDiagnosticForNodeArray(Ub.getSourceFileOfNode(e),v,E,g,c);return _?Ub.addRelatedInfo(T,_):T}function rh(c,e,t,n,r){var u,i=194===c.kind,a=153===c.kind,o=Ub.isJsxOpeningLikeElement(c),s=!t;a||(u=c.typeArguments,(i||o||99!==c.expression.kind)&&Ub.forEach(u,yy));var l=t||[];if(!function(e,t){var n,r,i,a,o=0,s=-1;Ub.Debug.assert(!t.length);for(var c=0,u=e;c<u.length;c++){var l=u[c],d=l.declaration&&Gr(l.declaration),p=l.declaration&&l.declaration.parent;r&&d!==r?(i=o=t.length,n=p):n&&p===n?i+=1:(n=p,i=o),r=d,l.hasLiteralTypes?(a=++s,o++):a=i,t.splice(a,0,l)}}(e,l),!l.length)return s&&yn.add(Ub.createDiagnosticForNode(c,Ub.Diagnostics.Call_target_does_not_contain_any_signatures)),F_(c);var d,p,f,_,h,g,m,y,b,v=eh(c),E=1===l.length&&!l[0].typeParameters,I=a||E||!Ub.some(v,el)?0:4,T=!!(16&n)&&192===c.kind&&c.arguments.hasTrailingComma;return 1<l.length&&(_=C(l,Mn,T)),(_=_||C(l,Fn,T))?_:(s&&(d?q_(c,v,d,Fn,0,!0):p?yn.add(nh(c,[p],v)):f?Z_(f,c.typeArguments,!0,r):0===(h=Ub.filter(e,function(e){return W_(e,u)})).length?yn.add(function(e,t,n){var r=n.length;if(1===t.length){var i=ls((l=t[0]).typeParameters),a=Ub.length(l.typeParameters);return Ub.createDiagnosticForNodeArray(Ub.getSourceFileOfNode(e),n,Ub.Diagnostics.Expected_0_type_arguments_but_got_1,i<a?i+"-"+a:i,r)}for(var o=-Infinity,s=Infinity,c=0,u=t;c<u.length;c++){var l,d=ls((l=u[c]).typeParameters),a=Ub.length(l.typeParameters);r<d?s=Math.min(s,d):a<r&&(o=Math.max(o,a))}return o!==-Infinity&&s!==Infinity?Ub.createDiagnosticForNodeArray(Ub.getSourceFileOfNode(e),n,Ub.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,r,o,s):Ub.createDiagnosticForNodeArray(Ub.getSourceFileOfNode(e),n,Ub.Diagnostics.Expected_0_type_arguments_but_got_1,o===-Infinity?s:o,r)}(c,e,u)):a?r&&yn.add(Ub.createDiagnosticForNode(c,r)):yn.add(nh(c,h,v))),V||!v?F_(c):(g=c,m=l,y=v,b=!!t,Ub.Debug.assert(0<m.length),b||1===m.length||m.some(function(e){return!!e.typeParameters})?function(e,t,n){var r=function(e,t){for(var n=-1,r=-1,i=0;i<e.length;i++){var a=e[i],o=Ph(a);if(Mh(a)||t<=o)return i;r<o&&(r=o,n=i)}return n}(t,te===undefined?n.length:te),i=t[r],a=i.typeParameters;if(!a)return i;var o=L_(e)?e.typeArguments:undefined,s=o?Bs(i,function(e,t,n){for(var r=e.map(Py);r.length>t.length;)r.pop();for(;r.length<t.length;)r.push(wo(t[r.length])||$d(n));return r}(o,a,Ub.isInJSFile(e))):function(e,t,n,r){var i=wd(t,n,Ub.isInJSFile(e)?2:0),a=U_(e,n,r,12,i);return Bs(n,a)}(e,a,i,n);return t[r]=s}(g,m,y):function(t){var e,n=Ub.mapDefined(t,function(e){return e.thisParameter});n.length&&(e=ah(n,n.map(Dh)));for(var r=Ub.minAndMax(t,ih),i=r.min,a=r.max,o=[],s=function s(n){var e=Ub.mapDefined(t,function(e){var t=e.parameters;return e.hasRestParameter?n<t.length-1?t[n]:Ub.last(t):n<t.length?t[n]:undefined});Ub.Debug.assert(0!==e.length),o.push(ah(e,Ub.mapDefined(t,function(e){return wh(e,n)})))},c=0;c<a;c++)s(c);var u,l=Ub.mapDefined(t,function(e){return e.hasRestParameter?Ub.last(e.parameters):undefined}),d=0!==l.length;return d&&(u=Tc(Pc(Ub.mapDefined(t,Is),2)),o.push(oh(l,u))),to(t[0].declaration,undefined,e,o,Rc(t.map(bs)),undefined,i,d,t.some(function(e){return e.hasLiteralTypes}))}(m)));function C(e,t,n){if(void 0===n&&(n=!1),d=undefined,p=undefined,f=undefined,E){var r=e[0];return u||!j_(c,v,r,n)?undefined:q_(c,v,r,t,0,!1)?r:(d=r,undefined)}for(var i=0;i<e.length;i++){if(W_(r=e[i],u)&&j_(c,v,r,n)){var a=void 0,o=void 0;if(r.typeParameters){var s=void 0;if(u){if(!(s=Z_(r,u,!1))){f=r;continue}}else o=wd(r.typeParameters,r,Ub.isInJSFile(c)?2:0),s=U_(c,r,v,8|I,o),I|=4&o.flags?8:0;if(a=Ts(r,s,Ub.isInJSFile(r.declaration),o&&o.inferredTypeParameters),Oh(r)&&!j_(c,v,a,n)){p=a;continue}}else a=r;if(q_(c,v,a,t,I,!1)){if(I){if(I=0,o){a=Ts(r,s=U_(c,r,v,I,o),Ub.isInJSFile(r.declaration),o&&o.inferredTypeParameters);if(Oh(r)&&!j_(c,v,a,n)){p=a;continue}}if(!q_(c,v,a,t,I,!1)){d&&!Fh(d)&&Fh(a)||(d=a);continue}}return e[i]=a}d&&!Fh(d)&&Fh(a)||(d=a)}}return undefined}}function ih(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function ah(e,t){return oh(e,Pc(t,2))}function oh(e,t){return Ed(Ub.first(e),t)}function sh(e){return!(!e.typeParameters||!ob(bs(e)))}function ch(e,t,n,r){return Li(e)||Li(t)&&262144&e.flags||!n&&!r&&!(1179648&t.flags)&&ll(e,rt)}function uh(e,t,n){var r;e.arguments&&k<1&&(0<=(r=R_(e.arguments))&&Yn(e.arguments[r],Ub.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher));var i=y_(e.expression);if(i===Le)return jt;if((i=Yo(i))===be)return F_(e);if(Li(i))return e.typeArguments&&Yn(e,Ub.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),M_(e);var a=Xo(i,1);if(a.length){if(!function(e,t){if(!t||!t.declaration)return!0;var n=t.declaration,r=Ub.getSelectedModifierFlags(n,24);if(!r)return!0;var i=Ub.getClassLikeDeclarationOfSymbol(n.parent.symbol),a=La(n.parent.symbol);if(ky(e,i))return!0;var o=Ub.getContainingClass(e);if(o&&16&r){var s=Py(o);if(function l(e,t){var n=xa(t);if(!Ub.length(n))return!1;var r=n[0];if(2097152&r.flags){for(var i=r.types,a=po(i),o=0,s=0,c=r.types;s<c.length;s++){var u=c[s];if(!a[o]&&3&Ub.getObjectFlags(u)){if(u.symbol===e)return!0;if(l(e,u))return!0}o++}return!1}if(r.symbol===e)return!0;return l(e,r)}(n.parent.symbol,s))return!0}8&r&&Yn(e,Ub.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,bi(a));16&r&&Yn(e,Ub.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,bi(a));return!1}(e,a[0]))return F_(e);var o=i.symbol&&Ub.getClassLikeDeclarationOfSymbol(i.symbol);return o&&Ub.hasModifier(o,128)?(Yn(e,Ub.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),F_(e)):rh(e,a,t,n)}var s=Xo(i,0);if(s.length){var c=rh(e,s,t,n);return K||(c.declaration&&!yh(c.declaration)&&bs(c)!==Ve&&Yn(e,Ub.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),gs(c)===Ve&&Yn(e,Ub.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),c}return lh(e,i,1),F_(e)}function lh(e,t,n,r){var i=Yn(e,0===n?Ub.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:Ub.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,bi(t));dh(t,n,r?Ub.addRelatedInfo(i,r):i)}function dh(e,t,n){if(e.symbol){var r=nr(e.symbol).originatingImport;if(r&&!Ub.isImportCall(r)){var i=Xo(pa(nr(e.symbol).target),t);if(!i||!i.length)return;Ub.addRelatedInfo(n,Ub.createDiagnosticForNode(r,Ub.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function ph(e){switch(e.parent.kind){case 241:case 210:return Ub.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 152:return Ub.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 155:return Ub.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 157:case 159:case 160:return Ub.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return Ub.Debug.fail()}}function fh(e,t,n){var r=Pg(e.expression),i=Yo(r);if(i===be)return F_(e);var a,o,s=Xo(i,0),c=Xo(i,1).length;if(ch(r,i,s.length,c))return M_(e);if(a=e,(o=s).length&&Ub.every(o,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<th(a,e)})){var u=Ub.getTextOfNode(e.expression,!1);return Yn(e,Ub.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,u),F_(e)}var l=ph(e);if(s.length)return rh(e,s,t,n,l);var d=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,bi(i)),d=Ub.chainDiagnosticMessages(d,l),p=Ub.createDiagnosticForNodeFromMessageChain(e,d);return yn.add(p),dh(i,0,p),F_(e)}function _h(e,t){var n=r_(e),r=n&&Or(n),i=r&&ar(r,Kb.Element,67897832),a=i&&b.symbolToEntityName(i,67897832,e),o=Ub.createFunctionTypeNode(undefined,[Ub.createParameter(undefined,undefined,undefined,"props",undefined,b.typeToTypeNode(t,e))],a?Ub.createTypeReferenceNode(a,undefined):Ub.createKeywordTypeNode(121)),s=zn(1,"props");return s.type=t,to(o,undefined,undefined,[s],i?La(i):be,undefined,1,!1,!1)}function hh(e,t,n){if(qf(e.tagName)){var r=s_(e),i=_h(e,r);return hl(bg(e.attributes,Vf(i,e),undefined,0),r,e.tagName,e.attributes),i}var a=Pg(e.tagName),o=Yo(a);if(o===be)return F_(e);var s=function c(e,t){if(4&e.flags)return[Ot];if(128&e.flags){var n=o_(e,t);return n?[_h(t,n)]:(Yn(t,Ub.Diagnostics.Property_0_does_not_exist_on_type_1,e.value,"JSX."+Kb.IntrinsicElements),Ub.emptyArray)}var r=Yo(e),i=Xo(r,1);return 0===i.length&&(i=Xo(r,0)),0===i.length&&1048576&r.flags&&(i=oo(Ub.map(r.types,function(e){return c(e,t)}))),i}(a,e);return ch(a,o,s.length,0)?M_(e):0===s.length?(Yn(e.tagName,Ub.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Ub.getTextOfNode(e.tagName)),F_(e)):rh(e,s,t,n)}function gh(e,t,n){switch(e.kind){case 192:return function(e,t,n){if(99===e.expression.kind){var r=df(e.expression);if(Li(r)){for(var i=0,a=e.arguments;i<a.length;i++){Pg(a[i])}return Ot}if(r!==be){var o=Ub.getEffectiveBaseTypeNode(Ub.getContainingClass(e));if(o)return rh(e,Ca(r,o.typeArguments,o),t,n)}return M_(e)}var s=y_(e.expression,Ub.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,Ub.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,Ub.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(s===Le)return jt;var c=Yo(s);if(c===be)return F_(e);var u,l,d=Xo(c,0),p=Xo(c,1).length;return ch(s,c,d.length,p)?(s!==be&&e.typeArguments&&Yn(e,Ub.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),M_(e)):d.length?8&n&&!e.typeArguments&&d.some(sh)?(Dg(e,n),Ht):d.some(function(e){return Ub.isInJSFile(e.declaration)&&!!Ub.getJSDocClassTag(e.declaration)})?(Yn(e,Ub.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,bi(s)),F_(e)):rh(e,d,t,n):(p?Yn(e,Ub.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,bi(s)):(u=void 0,1===e.arguments.length&&(l=Ub.getSourceFileOfNode(e).text,Ub.isLineBreak(l.charCodeAt(Ub.skipTrivia(l,e.expression.end,!0)-1))&&(u=Ub.createDiagnosticForNode(e.expression,Ub.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon))),lh(e,c,0,u)),F_(e))}(e,t,n);case 193:return uh(e,t,n);case 194:return function(e,t,n){var r=Pg(e.tag),i=Yo(r);if(i===be)return F_(e);var a=Xo(i,0),o=Xo(i,1).length;return ch(r,i,a.length,o)?M_(e):a.length?rh(e,a,t,n):(lh(e,i,0),F_(e))}(e,t,n);case 153:return fh(e,t,n);case 263:case 262:return hh(e,t,n)}throw Ub.Debug.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function mh(e,t,n){var r=rr(e),i=r.resolvedSignature;if(i&&i!==Ht&&!t)return i;r.resolvedSignature=Ht;var a=gh(e,t,n||0);return a!==Ht&&(r.resolvedSignature=Jt===zt?a:i),a}function yh(e){if(!e||!Ub.isInJSFile(e))return!1;var t=Ub.isFunctionDeclaration(e)||Ub.isFunctionExpression(e)?e:Ub.isVariableDeclaration(e)&&e.initializer&&Ub.isFunctionExpression(e.initializer)?e.initializer:undefined;if(t){if(Ub.getJSDocClassTag(e))return!0;var n=Gr(t);return!!n&&(n.members!==undefined||n.exports!==undefined&&n.exports.get("prototype")!==undefined)}return!1}function bh(e){if(524288&e.flags){var t=xo(e);return 1===t.callSignatures.length&&yh(t.callSignatures[0].declaration)}return!1}function vh(e){var t;yh(e.valueDeclaration)&&(t=Eh(e));var n,r,i,a,o=(n=e.valueDeclaration,r=n&&n.parent&&(Ub.isFunctionDeclaration(n)&&Gr(n)||Ub.isBinaryExpression(n.parent)&&Gr(n.parent.left)||Ub.isVariableDeclaration(n.parent)&&Gr(n.parent)),i=r&&r.exports&&r.exports.get("prototype"),(a=i&&i.valueDeclaration&&function(e){if(!e.parent)return!1;var t=e.parent;for(;t&&190===t.kind;)t=t.parent;if(t&&Ub.isBinaryExpression(t)&&Ub.isPrototypeAccess(t.left)&&60===t.operatorToken.kind){var n=Ub.getInitializerOfBinaryExpression(t);return Ub.isObjectLiteralExpression(n)&&n}}(i.valueDeclaration))?Pg(a):undefined);return o&&t?Rc([t,o]):o||t}function Eh(e){var t=nr(e);return t.inferredClassType||(t.inferredClassType=ii(e,qa(e)||M,Ub.emptyArray,Ub.emptyArray,undefined,undefined)),t.inferredClassType}function Ih(e,t){Cb(e,e.typeArguments)||Bb(e.arguments);var n=mh(e,undefined,t);if(n===Ht)return Me;if(99===e.expression.kind)return Ve;if(193===e.kind){var r=n.declaration;if(r&&158!==r.kind&&162!==r.kind&&167!==r.kind&&!Ub.isJSDocConstructSignature(r)&&!yh(r))return K&&Yn(e,Ub.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),ge}if(Ub.isInJSFile(e)&&xh(e))return function(e){var t=Dr(e,e);if(t){var n=Vr(t);if(n)return pa(n)}return ge}(e.arguments[0]);var i,a,o,s=bs(n);return 12288&s.flags&&Th(e)?Su(Ub.walkUpParenthesizedExpressions(e.parent)):(Ub.isInJSFile(e)&&(!(a=Ub.getDeclarationOfExpando(e))||(o=Gr(a))&&Ub.hasEntries(o.exports)&&((i=ii(o,o.exports,Ub.emptyArray,Ub.emptyArray,undefined,undefined)).objectFlags|=16384)),i?Rc([s,i]):s)}function Th(e){if(Ub.isCallExpression(e)){var t=e.expression;if(Ub.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),Ub.isIdentifier(t)&&"Symbol"===t.escapedText){var n=sc(!1);if(n)return n===sr(t,"Symbol",67220415,undefined,undefined,!1)}}}function Ch(e){if(Bb(e.arguments)||function(e){if(C===Ub.ModuleKind.ES2015)return Wb(e,Ub.Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext);if(e.typeArguments)return Wb(e,Ub.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=e.arguments;if(1!==t.length)return Wb(e,Ub.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);if(vb(t),Ub.isSpreadElement(t[0]))return Wb(t[0],Ub.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return Jh(e,ge);for(var t=e.arguments[0],n=vg(t),r=1;r<e.arguments.length;++r)vg(e.arguments[r]);(32768&n.flags||65536&n.flags||!ll(n,Be))&&Yn(t,Ub.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,bi(n));var i=Dr(e,t);if(i){var a=Pr(i,t,!0);if(a)return Jh(e,Bh(pa(a),a,i))}return Jh(e,ge)}function Bh(e,t,n){if(h&&e&&e!==be){var r,i,a,o,s=e;return s.syntheticType||(gr(Ub.find(n.declarations,Ub.isSourceFile),n,!1)?(r=Ub.createSymbolTable(),(i=zn(2097152,"default")).nameType=xu("default"),i.target=Er(t),r.set("default",i),o=ii(a=zn(2048,"__type"),r,Ub.emptyArray,Ub.emptyArray,undefined,undefined),a.type=o,s.syntheticType=Zf(e)?yu(e,o,a,0,!1):o):s.syntheticType=e),s.syntheticType}return e}function xh(e){if(Ub.isRequireCall(e,!0)){if(!Ub.isIdentifier(e.expression))return Ub.Debug.fail();var t=sr(e.expression,e.expression.escapedText,67220415,undefined,undefined,!0);if(t===re)return 1;if(!(2097152&t.flags)){var n=16&t.flags?240:3&t.flags?238:0;if(0!=n){var r=Ub.getDeclarationOfKind(t,n);return r&&4194304&r.flags}}}}function Sh(e,t,n,r){var i=Pg(n,r);if(Ub.isConstTypeReference(t))return function o(e){switch(e.kind){case 10:case 14:case 8:case 9:case 103:case 88:case 188:case 189:return!0;case 196:return o(e.expression);case 203:var t=e.operator,n=e.operand;return 39===t&&(8===n.kind||9===n.kind)||38===t&&8===n.kind;case 190:case 191:var r=e.expression;if(Ub.isIdentifier(r)){var i=Vy(r);return!!(i&&384&i.flags&&1===ka(i))}}return!1}(n)||Yn(n,Ub.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Cu(i);yy(t),i=Id(ad(i));var a=Du(t);return V&&a!==be&&(pl(a,xd(i))||Tl(i,a,e,Ub.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)),a}function Nh(e){return function(e){var t=e.name.escapedText;switch(e.keywordToken){case 96:if("target"!==t)return Wb(e.name,Ub.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,Ub.tokenToString(e.keywordToken),"target");break;case 93:if("meta"!==t)Wb(e.name,Ub.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,Ub.tokenToString(e.keywordToken),"meta")}}(e),96===e.keywordToken?function(e){var t=Ub.getNewTargetContainer(e);{return t?158!==t.kind?pa(Gr(t)):pa(Gr(t.parent)):(Yn(e,Ub.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),be)}}(e):93===e.keywordToken?function(e){(k<8||C<Ub.ModuleKind.ESNext)&&Yn(e,Ub.Diagnostics.The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options);var t=Ub.getSourceFileOfNode(e);return Ub.Debug.assert(!!(1048576&t.flags),"Containing file is missing import meta node flag."),Ub.Debug.assert(!!t.externalModuleIndicator,"Containing file should be a module."),"meta"===e.name.escapedText?(At=At||oc("ImportMeta",0,!0))||We:be}(e):Ub.Debug.assertNever(e.keywordToken)}function Dh(e){var t=pa(e);if(U){var n=e.valueDeclaration;if(n&&Ub.hasInitializer(n))return yd(t)}return t}function kh(e,t){var n=e.parameters.length-(e.hasRestParameter?1:0);if(t<n)return e.parameters[t].escapedName;var r=e.parameters[n]||_e,i=pa(r);if(ud(i)){var a=i.target.associatedNames,o=t-n;return a&&a[o]||r.escapedName+"_"+o}return r.escapedName}function Ah(e,t){return wh(e,t)||ge}function wh(e,t){var n=e.parameters.length-(e.hasRestParameter?1:0);if(t<n)return Dh(e.parameters[t]);if(e.hasRestParameter){var r=pa(e.parameters[n]),i=t-n;if(!ud(r)||r.target.hasRestElement||i<(r.typeArguments||Ub.emptyArray).length)return ru(r,xu(i))}return undefined}function Vh(e,t){var n=Ph(e),r=Fh(e),i=n-(r?1:0);if(r&&t===i)return r;for(var a=[],o=[],s=t;s<i;s++)a.push(Ah(e,s)),o.push(kh(e,s));r&&(a.push(ru(r,xe)),o.push(kh(e,i)));var c=Lh(e);return xc(a,c<t?0:c-t,!!r,!1,o)}function Ph(e){var t=e.parameters.length;if(e.hasRestParameter){var n=pa(e.parameters[t-1]);if(ud(n))return t+(n.typeArguments||Ub.emptyArray).length-1}return t}function Lh(e){if(e.hasRestParameter){var t=pa(e.parameters[e.parameters.length-1]);if(ud(t)){var n=t.target.minLength;if(0<n)return e.parameters.length-1+n}}return e.minArgumentCount}function Mh(e){if(e.hasRestParameter){var t=pa(e.parameters[e.parameters.length-1]);return!ud(t)||t.target.hasRestElement}return!1}function Fh(e){if(e.hasRestParameter){var t=pa(e.parameters[e.parameters.length-1]);return ud(t)?(n=ld(t))&&Tc(n):t}var n;return undefined}function Oh(e){var t=Fh(e);return!t||Zl(t)||Li(t)?undefined:t}function Rh(e){return Hh(e,Pe)}function Hh(e,t){return 0<e.parameters.length?Ah(e,0):t}function jh(e,t){e.typeParameters=t.typeParameters,t.thisParameter&&((i=e.thisParameter)&&(!i.valueDeclaration||i.valueDeclaration.type)||(i||(e.thisParameter=Ed(t.thisParameter,undefined)),Wh(e.thisParameter,pa(t.thisParameter))));for(var n=e.parameters.length-(e.hasRestParameter?1:0),r=0;r<n;r++){var i=e.parameters[r];Ub.getEffectiveTypeAnnotationNode(i.valueDeclaration)||Wh(i,Ah(t,r))}e.hasRestParameter&&(!Un(i=Ub.last(e.parameters))&&Ub.getEffectiveTypeAnnotationNode(i.valueDeclaration)||Wh(i,Vh(t,n)))}function Wh(e,t){var n,r=nr(e);r.type||(r.type=t,73!==(n=e.valueDeclaration).name.kind&&(r.type===ve&&(r.type=Qi(n.name)),function i(e){for(var t=0,n=e.elements;t<n.length;t++){var r=n[t];Ub.isOmittedExpression(r)||(73===r.name.kind?nr(Gr(r)).type=Wi(r):i(r.name))}}(n.name)))}function Gh(e){var t=uc(!0);return t!==Je?Rs(t,[e=im(e)||ve]):ve}function Yh(e){var t=(Et=Et||oc("PromiseLike",1,!0))||Je;return t!==Je?Rs(t,[e=im(e)||ve]):ve}function Jh(e,t){var n=Gh(t);return n===ve?(Yn(e,Ub.isImportCall(e)?Ub.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Ub.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),be):(lc(!0)||Yn(e,Ub.isImportCall(e)?Ub.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Ub.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function zh(e,t){if(!e.body)return be;var n,r,i,a,o,s=Ub.getFunctionFlags(e);if(219!==e.body.kind)n=vg(e.body,t&&-9&t),2&s&&(n=rm(n,e,Ub.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else{var c=function(r,i){var a=Ub.getFunctionFlags(r),o=[],s=Xh(r),c=!1;if(Ub.forEachReturnStatement(r.body,function(e){var t,n=e.expression;n?(t=vg(n,i&&-9&i),2&a&&(t=rm(t,r,Ub.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&t.flags&&(c=!0),Ub.pushIfUnique(o,t)):s=!0}),0===o.length&&!s&&(c||function(e){switch(e.kind){case 197:case 198:return!0;case 157:return 189===e.parent.kind;default:return!1}}(r)))return undefined;!(U&&o.length&&s)||yh(r)&&o.some(function(e){return e.symbol===r.symbol})||Ub.pushIfUnique(o,Ee);return o}(e,t);if(1&s){if(!(c=Ub.concatenate((r=e,i=t,a=[],o=0!=(2&Ub.getFunctionFlags(r)),Ub.forEachYieldExpression(r.body,function(e){Ub.pushIfUnique(a,Uh(e,o,i))}),a),c))||0===c.length){var u=(2&s?vc:Ic)(ge);return K&&Yn(e.asteriskToken,Ub.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,bi(u)),u}}else{if(!c)return 2&s?Jh(e,Pe):Pe;if(0===c.length)return 2&s?Jh(e,Ve):Ve}n=Pc(c,2)}var l=Ff(e);if(l||Dd(e,n),rd(n)){var d=l?l===ps(e)?n:bs(l):undefined;if(d)switch(3&s){case 3:d=Um(d,!0);break;case 1:d=Um(d,!1);break;case 2:d=nm(d)}n=cd(n,d)}var p=xd(n);switch(3&s){case 3:return vc(p);case 1:return Ic(p);case 2:return Gh(p);default:return p}}function Uh(e,t,n){var r=e.expression||e,i=e.expression?Pg(e.expression,n):Ie,a=e.asteriskToken?Wm(i,r,!1,t):i;return t?im(a,r,e.asteriskToken?Ub.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ub.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a}function Kh(e,t,n,r){var i=0;if(r){for(var a=t;a<n.length;a++)i|=Vn.get(n[a])||32768;for(a=e;a<t;a++)i&=~(Vn.get(n[a])||0);for(a=0;a<e;a++)i|=Vn.get(n[a])||32768}else{for(a=e;a<t;a++)i|=wn.get(n[a])||128;for(a=0;a<e;a++)i&=~(wn.get(n[a])||0)}return i}function Zh(e){if(!e.possiblyExhaustive)return!1;if(200===e.expression.kind){var t=wg(e.expression.expression),n=Kh(0,0,Np(e),!0);return!!(131072&wp(Fo(t)||t,function(e){return(_p(e)&n)===n}).flags)}var r=wg(e.expression);if(!id(r))return!1;var i,a,o=Sp(e);return!(!o.length||Ub.some(o,nd))&&(i=Vp(r,Cu),a=o,1048576&i.flags?!Ub.forEach(i.types,function(e){return!Ub.contains(a,e)}):Ub.contains(a,i))}function Xh(e){return!!(128&e.flags)&&!Ub.some(e.body.statements,function(e){return 233===e.kind&&Zh(e)})}function qh(e,t){if(V&&(!t||!sg(t,16385))&&156!==e.kind&&!Ub.nodeIsMissing(e.body)&&219===e.body.kind&&Xh(e)){var n=256&e.flags;if(t&&131072&t.flags)Yn(Ub.getEffectiveReturnTypeNode(e),Ub.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(t&&!n)Yn(Ub.getEffectiveReturnTypeNode(e),Ub.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(t&&U&&!ll(Ee,t))Yn(Ub.getEffectiveReturnTypeNode(e),Ub.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(z.noImplicitReturns){if(!t){if(!n)return;if(Zm(e,bs(ps(e))))return}Yn(Ub.getEffectiveReturnTypeNode(e)||e,Ub.Diagnostics.Not_all_code_paths_return_a_value)}}}function Qh(e,t){if(Ub.Debug.assert(157!==e.kind||Ub.isObjectLiteralMethod(e)),vy(e),t&&4&t&&el(e)){if(Ub.getEffectiveReturnTypeNode(e)||!nl(e))return ze;var n=rr(e);if(n.contextFreeType)return n.contextFreeType;var r=zh(e,t),i=to(undefined,undefined,undefined,Ub.emptyArray,r,undefined,0,!1,!1),a=ii(e.symbol,M,[i],Ub.emptyArray,undefined,undefined);return a.objectFlags|=524288,n.contextFreeType=a}Tb(e)||197!==e.kind||Db(e);var o,s,c,u=rr(e),l=pa(Wr(e.symbol));return Li(l)||1024&u.flags||(o=Of(e),1024&u.flags||(u.flags|=1024,o&&(s=Xo(l,0)[0],el(e)&&(c=wf(e),t&&2&t&&function(e,t,n){for(var r=e.parameters.length-(e.hasRestParameter?1:0),i=0;i<r;i++){var a,o=e.parameters[i].valueDeclaration;!o.type||(a=Ub.getEffectiveTypeAnnotationNode(o))&&zd(n.inferences,Du(a),Ah(t,i))}var s,c=Fh(t);c&&262144&c.flags&&(jh(e,ju(t,n.nonFixingMapper)),s=Ph(t)-1,zd(n.inferences,Vh(e,s),c))}(s,o,c),jh(s,c?ju(o,c.mapper):o)),vs(e)||s.resolvedReturnType||(r=zh(e,t),s.resolvedReturnType||(s.resolvedReturnType=r))),Og(e))),l}function $h(e,t){var n=vs(e);return n&&2==(3&t)?im(n)||be:n}function eg(e,t,n){return!!ll(t,je)||(Yn(e,n),!1)}function tg(e){if(!Ub.isCallExpression(e))return!1;if(!Ub.isBindableObjectDefinePropertyCall(e))return!1;var t=vg(e.arguments[2]);if(Pi(t,"value")){var n=Ko(t,"writable"),r=n&&pa(n);if(!r||r===Ne||r===De)return!0;if(n&&n.valueDeclaration&&Ub.isPropertyAssignment(n.valueDeclaration)){var i=Pg(n.valueDeclaration.initializer);if(i===Ne||i===De)return!0}return!1}return!Ko(t,"set")}function ng(e){return!!(8&Ub.getCheckFlags(e)||4&e.flags&&64&Ub.getDeclarationModifierFlagsFromSymbol(e)||3&e.flags&&2&__(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||Ub.some(e.declarations,tg))}function rg(e,t){if(ng(t)){if(4&t.flags&&(190===e.kind||191===e.kind)&&101===e.expression.kind){var n=Ub.getContainingFunction(e);return n&&158===n.kind?!t.valueDeclaration||n.parent!==t.valueDeclaration.parent&&n!==t.valueDeclaration.parent:1}return 1}}function ig(e){if(190===e.kind||191===e.kind){var t=Ub.skipParentheses(e.expression);if(73===t.kind){var n=rr(t).resolvedSymbol;if(2097152&n.flags){var r=fr(n);return r&&252===r.kind}}}}function ag(e,t){var n=Ub.skipOuterExpressions(e,3);if(73===n.kind||190===n.kind||191===n.kind)return 1;Yn(e,t)}function og(e){return sg(e,2112)?cg(e,3)||sg(e,296)?je:Se:xe}function sg(e,t){if(e.flags&t&-131073||131072&t&&Bo(e))return!0;if(3145728&e.flags)for(var n=0,r=e.types;n<r.length;n++){if(sg(r[n],t))return!0}return!1}function cg(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&ll(e,xe)||!!(2112&t)&&ll(e,Se)||!!(132&t)&&ll(e,Be)||!!(528&t)&&ll(e,Ae)||!!(16384&t)&&ll(e,Ve)||!!(131072&t)&&ll(e,Pe)||!!(65536&t)&&ll(e,Te)||!!(32768&t)&&ll(e,Ee)||!!(4096&t)&&ll(e,we)||!!(67108864&t)&&ll(e,Oe))}function ug(e,t,n){return 1048576&e.flags?Ub.every(e.types,function(e){return ug(e,t,n)}):cg(e,t,n)}function lg(e){return 16&Ub.getObjectFlags(e)&&e.symbol&&dg(e.symbol)}function dg(e){return 0!=(128&e.flags)}function pg(e,t,n,r,i){void 0===i&&(i=!1);var a=e.properties,o=a[n];if(276===o.kind||277===o.kind){var s,c=o.name,u=jc(c);!Ya(u)||(s=Ko(t,Ka(u)))&&(A_(s,o,i),g_(o,!1,t,s));var l=Ri(o,ru(t,u,c));return _g(277===o.kind?o:o.initializer,l)}if(278===o.kind){if(!(n<a.length-1)){k<8&&mb(o,4);var d=[];if(r)for(var p=0,f=r;p<f.length;p++){var _=f[p];Ub.isSpreadAssignment(_)||d.push(_.name)}l=Oi(t,d,t.symbol);return vb(r,Ub.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_g(o.expression,l)}Yn(o,Ub.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Yn(o,Ub.Diagnostics.Property_assignment_expected)}function fg(e,t,n,r,i){var a=e.elements,o=a[n];if(211!==o.kind){if(209!==o.kind){var s=xu(n);return Ql(t)?_g(o,Ri(o,ru(t,s,$_(o,s))),i):_g(o,r,i)}if(n<a.length-1)Yn(o,Ub.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var c=o.expression;if(205!==c.kind||60!==c.operatorToken.kind)return vb(e.elements,Ub.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_g(c,Ap(t,ud)?Vp(t,function(e){return Sc(e,n)}):Tc(r),i);Yn(c.operatorToken,Ub.Diagnostics.A_rest_element_cannot_have_an_initializer)}}return undefined}function _g(e,t,n,r){var i,a=277===e.kind?((i=e).objectAssignmentInitializer&&(!U||32768&_d(Pg(i.objectAssignmentInitializer))||(t=hp(t,524288)),mg(i.name,i.equalsToken,i.objectAssignmentInitializer,n)),e.name):e;return 205===a.kind&&60===a.operatorToken.kind&&(gg(a,n),a=a.left),189===a.kind?function(e,t,n){var r=e.properties;if(U&&0===r.length)return v_(t,e);for(var i=0;i<r.length;i++)pg(e,t,i,r,n);return t}(a,t,r):(188===a.kind?function(e,t,n){var r=e.elements;k<2&&z.downlevelIteration&&mb(e,512);for(var i=Wm(t,e,!1,!1)||be,a=0;a<r.length;a++)fg(e,t,a,i,n);return t}:function(e,t,n){var r=Pg(e,n),i=278===e.parent.kind?Ub.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Ub.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;ag(e,i)&&hl(t,r,e,e);return t})(a,t,n)}function hg(e,t){return 0!=(98304&t.flags)||pl(e,t)}function gg(e,t){return Ub.isInJSFile(e)&&Ub.getAssignedExpandoInitializer(e)?Pg(e.right,t):mg(e.left,e.operatorToken,e.right,t,e)}function mg(r,i,a,e,o){var s,t=i.kind;if(60===t&&(189===r.kind||188===r.kind))return _g(r,Pg(a,e),e,101===a.kind);s=(54===t||55===t?Om:Pg)(r,e);var n,c,u,l,d,p,f,_,h,g=Pg(a,e);switch(t){case 40:case 41:case 63:case 64:case 42:case 65:case 43:case 66:case 39:case 62:case 46:case 67:case 47:case 68:case 48:case 69:case 50:case 71:case 51:case 72:case 49:case 70:if(s===Le||g===Le)return Le;s=v_(s,r),g=v_(g,a);var m=void 0;if(528&s.flags&&528&g.flags&&(m=function(e){switch(e){case 50:case 71:return 55;case 51:case 72:return 36;case 49:case 70:return 54;default:return undefined}}(i.kind))!==undefined)return Yn(o||i,Ub.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Ub.tokenToString(i.kind),Ub.tokenToString(m)),xe;var y,b=eg(r,s,Ub.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type),v=eg(a,g,Ub.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type);if(cg(s,3)&&cg(g,3)||!sg(s,2112)&&!sg(g,2112))y=xe;else if(cg(s,2112)&&cg(g,2112)){switch(t){case 48:case 69:B()}y=Se}else B(),y=be;return b&&v&&C(y),y;case 38:case 61:if(s===Le||g===Le)return Le;cg(s,132)||cg(g,132)||(s=v_(s,r),g=v_(g,a));var E=void 0;return(cg(s,296,!0)&&cg(g,296,!0)?E=xe:cg(s,2112,!0)&&cg(g,2112,!0)?E=Se:cg(s,132,!0)||cg(g,132,!0)?E=Be:(Li(s)||Li(g))&&(E=s===be||g===be?be:ge),E&&!T(t))?E:E?(61===t&&C(E),E):(B(),ge);case 28:case 30:case 31:case 32:return T(t)&&(s=ad(v_(s,r)),g=ad(v_(g,a)),pl(s,g)||pl(g,s)||ll(s,je)&&ll(g,je)||B()),Ae;case 33:case 34:case 35:case 36:return hg(s,g)||hg(g,s)||B(),Ae;case 95:return p=r,f=a,h=g,(_=s)===Le||h===Le?Le:(!Li(_)&&ug(_,131068)&&Yn(p,Ub.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Li(h)||Oy(h)||ul(h,rt)||Yn(f,Ub.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ae);case 94:return c=r,u=a,d=g,(l=s)===Le||d===Le?Le:(l=v_(l,c),d=v_(d,u),pl(l,Be)||cg(l,12584)||Yn(c,Ub.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),ug(d,126091264)||Yn(u,Ub.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ae);case 54:return 4194304&_p(s)?Pc([Vp(U?s:ad(g),gd),g]):s;case 55:return 8388608&_p(s)?Pc([hd(s),g],2):s;case 60:var I=Ub.isBinaryExpression(r.parent)?Ub.getAssignmentDeclarationKind(r.parent):0;return function(e,t){if(2===e)for(var n=0,r=So(t);n<r.length;n++){var i=r[n],a=pa(i);if(a.symbol&&32&a.symbol.flags){var o=i.escapedName,s=sr(i.valueDeclaration,o,67897832,undefined,o,!1);if(s&&s.declarations.some(Ub.isJSDocTypedefTag))return Wb(s.declarations[0],Ub.Diagnostics.Duplicate_identifier_0,Ub.unescapeLeadingUnderscores(o)),Wb(i.valueDeclaration,Ub.Diagnostics.Duplicate_identifier_0,Ub.unescapeLeadingUnderscores(o))}}}(I,g),function(e){switch(e){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var t=Gr(r),n=Ub.getAssignedExpandoInitializer(a);return n&&Ub.isObjectLiteralExpression(n)&&t&&Ub.hasEntries(t.exports);default:return!1}}(I)?(524288&g.flags&&(2===I||6===I||xl(g)||fp(g)||1&Ub.getObjectFlags(g))||C(g),s):(C(g),Id(g));case 27:return z.allowUnreachableCode||!function x(e){switch((e=Ub.skipParentheses(e)).kind){case 73:case 10:case 13:case 194:case 207:case 14:case 8:case 9:case 103:case 88:case 97:case 142:case 197:case 210:case 198:case 188:case 189:case 200:case 214:case 262:case 261:return!0;case 206:return x(e.whenTrue)&&x(e.whenFalse);case 205:return!Ub.isAssignmentOperator(e.operatorToken.kind)&&(x(e.left)&&x(e.right));case 203:case 204:switch(e.operator){case 52:case 38:case 39:case 53:return!0}return!1;case 201:case 195:case 213:default:return!1}}(r)||73===(n=a).kind&&"eval"===n.escapedText||Yn(r,Ub.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),g;default:return Ub.Debug.fail()}function T(e){var t=sg(s,12288)?r:sg(g,12288)?a:undefined;if(!t)return 1;Yn(t,Ub.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Ub.tokenToString(e))}function C(e){V&&Ub.isAssignmentOperator(t)&&(!ag(r,Ub.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)||Ub.isIdentifier(r)&&"exports"===Ub.unescapeLeadingUnderscores(r.escapedText)||hl(e,s,r,a))}function B(){var e=vi(s,g),t=e[0],n=e[1],r=o||i;!function(e,t,n){switch(i.kind){case 35:case 33:return Yn(e,Ub.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"false",t,n);case 36:case 34:return Yn(e,Ub.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"true",t,n)}return undefined}(r,t,n)&&Yn(r,Ub.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,Ub.tokenToString(i.kind),t,n)}}function yg(e){V&&(4096&e.flags&&!function(e){for(var t=e,n=e.parent;n;){if(Ub.isFunctionLike(n)&&t===n.body)return;if(Ub.isClassLike(t))return 1;n=(t=n).parent}}(e)||Hb(e,Ub.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),gf(e)&&Yn(e,Ub.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=Ub.getContainingFunction(e);if(!t)return ge;var n=Ub.getFunctionFlags(t);if(!(1&n))return ge;e.asteriskToken&&(3==(3&n)&&k<8&&mb(e,26624),1==(3&n)&&k<2&&z.downlevelIteration&&mb(e,256));var r=0!=(2&n),i=Uh(e,r),a=vs(t);return a&&hl(i,Um(a,r)||ge,e.expression||e,e.expression),ge}function bg(e,t,n,r){var i,a=269!==(i=e).kind||Ub.isJsxSelfClosingElement(i.parent)?i:i.parent.parent,o=a.contextualType,s=a.inferenceContext;a.contextualType=t;var c=Pg(e,1|r|((a.inferenceContext=n)?2:0)),u=sg(c,2944)&&Tg(c,Df(t,e))?Cu(c):c;return a.contextualType=o,a.inferenceContext=s,u}function vg(e,t){var n=rr(e);if(!n.resolvedType){if(t&&0!==t)return Pg(e,t);var r=Jt;Jt=zt,n.resolvedType=Pg(e,t),Jt=r}return n.resolvedType}function Eg(e){return 195===(e=Ub.skipParentheses(e)).kind||213===e.kind}function Ig(e){var t=Ub.getEffectiveInitializer(e),n=wg(t,!0),r=2&Ub.getCombinedNodeFlags(e)||Ub.isDeclarationReadonly(e)||Eg(t)||Tg(n,Af(t))?n:od(n);if(Ub.isInJSFile(e)){if(98304&r.flags)return Nd(e,ge),ge;if($l(r))return Nd(e,ft),ft}return r}function Tg(t,e){if(e){if(3145728&e.flags){var n=e.types;return Ub.some(n,function(e){return Tg(t,e)})}if(58982400&e.flags){var r=Fo(e)||ve;return sg(r,4)&&sg(t,128)||sg(r,8)&&sg(t,256)||sg(r,64)&&sg(t,2048)||sg(r,4096)&&sg(t,8192)||Tg(t,r)}return!!(4194432&e.flags&&sg(t,128)||256&e.flags&&sg(t,256)||2048&e.flags&&sg(t,2048)||512&e.flags&&sg(t,512)||8192&e.flags&&sg(t,8192))}return!1}function Cg(e){var t=e.parent;return Ub.isAssertionExpression(t)&&Ub.isConstTypeReference(t.type)||(Ub.isParenthesizedExpression(t)||Ub.isArrayLiteralExpression(t)||Ub.isSpreadElement(t))&&Cg(t)||(Ub.isPropertyAssignment(t)||Ub.isShorthandPropertyAssignment(t))&&Cg(t.parent)}function Bg(e,t,n,r){var i=Pg(e,t,r);return Cg(e)?Cu(i):Eg(e)?i:cd(i,Df(2===arguments.length?Af(e):n,e))}function xg(e,t){return 150===e.name.kind&&Jf(e.name),Bg(e.initializer,t)}function Sg(e,t){return Lb(e),150===e.name.kind&&Jf(e.name),Ng(e,Qh(e,t),t)}function Ng(e,t,n){if(n&&10&n){var r=J_(t,0,!0),i=J_(t,1,!0),a=r||i;if(a&&a.typeParameters){var o=Nf(e);if(o&&!va(o)){var s=J_(bd(o),r?0:1,!1);if(s&&!s.typeParameters){if(8&n)return Dg(e,n),ze;var c=wf(e),u=c.signature&&bs(c.signature),l=u&&Y_(u);if(l&&!l.typeParameters&&!Ub.every(c.inferences,kg)){var d=function(e,t){for(var n,r,i=[],a=0,o=t;a<o.length;a++){var s,c=(u=o[a]).symbol.escapedName;Ag(e.inferredTypeParameters,c)||Ag(i,c)?((s=ei(zn(262144,function(e,t){var n=t.length;for(;1<n&&48<=t.charCodeAt(n-1)&&t.charCodeAt(n-1)<=57;)n--;for(var r=t.slice(0,n),i=1;;i++){var a=r+i;if(!Ag(e,a))return a}}(Ub.concatenate(e.inferredTypeParameters,i),c)))).target=u,n=Ub.append(n,u),r=Ub.append(r,s),i.push(s)):i.push(u)}if(r)for(var u,l=Pu(n,r),d=0,p=r;d<p.length;d++){(u=p[d]).mapper=l}return i}(c,a.typeParameters),p=Cs(a,d),f=Ub.map(c.inferences,function(e){return Ld(e.typeParameter)});if(kd(p,s,function(e,t){zd(f,e,t,0,!0)}),Ub.some(f,kg)&&(Ad(p,s,function(e,t){zd(f,e,t)}),!function(e,t){for(var n=0;n<e.length;n++)if(kg(e[n])&&kg(t[n]))return!0;return!1}(c.inferences,f)))return function(e,t){for(var n=0;n<e.length;n++)!kg(e[n])&&kg(t[n])&&(e[n]=t[n])}(c.inferences,f),c.inferredTypeParameters=Ub.concatenate(c.inferredTypeParameters,d),Ds(p)}return Ds(z_(a,s,c))}}}}return t}function Dg(e,t){2&t&&(wf(e).flags|=4)}function kg(e){return!(!e.candidates&&!e.contraCandidates)}function Ag(e,t){return Ub.some(e,function(e){return e.symbol.escapedName===t})}function wg(e,t){var n=Ub.skipParentheses(e);if(192!==n.kind||99===n.expression.kind||Ub.isRequireCall(n,!0)||Th(n)){if(Ub.isAssertionExpression(n)&&!Ub.isConstTypeReference(n.type))return Du(n.type)}else{var r=G_(y_(n.expression));if(r&&!r.typeParameters)return bs(r)}return(t?vg:Pg)(e)}function Vg(e){var t=rr(e);if(t.contextFreeType)return t.contextFreeType;var n=e.contextualType;e.contextualType=ge;var r=t.contextFreeType=Pg(e,4);return e.contextualType=n,r}function Pg(e,t,n){var r=f,i=Ng(f=e,function(e,t,n){switch(e.kind){case 73:return tf(e);case 101:return cf(e);case 99:return df(e);case 97:return Ce;case 14:case 10:return Tu(xu(e.text));case 8:return Yb(e),Tu(xu(+e.text));case 9:return function(e){if(!(Ub.isLiteralTypeNode(e.parent)||Ub.isPrefixUnaryExpression(e.parent)&&Ub.isLiteralTypeNode(e.parent.parent))&&k<8&&Wb(e,Ub.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext))return}(e),Tu(function(e){return xu({negative:!1,base10Value:Ub.parsePseudoBigInt(e.text)})}(e));case 103:return ke;case 88:return Ne;case 207:return function(e){return Ub.forEach(e.templateSpans,function(e){sg(Pg(e.expression),12288)&&Yn(e.expression,Ub.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),Be}(e);case 13:return dt;case 188:return Hf(e,t,n);case 189:return Kf(e,t);case 190:return I_(e);case 149:return T_(e);case 191:return function(e){var t=y_(e.expression),n=e.argumentExpression;if(!n){var r,i=Ub.getSourceFileOfNode(e);return 193===e.parent.kind&&e.parent.expression===e?jb(i,r=Ub.skipTrivia(i.text,e.expression.end),e.end-r,Ub.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):jb(i,r=e.end-"]".length,e.end-r,Ub.Diagnostics.Expression_expected),be}var a=Pg(n);return t===be||t===Le?t:lg(t)&&10!==n.kind?(Yn(n,Ub.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),be):Zg(iu(t,V_(n)?xe:a,e,Ub.isAssignmentTarget(e)?2|(Xc(t)&&!Qc(t)?1:0):0)||be,e)}(e);case 192:if(93===e.expression.kind)return Ch(e);case 193:return Ih(e,t);case 194:return function(e){return Cb(e,e.typeArguments),k<2&&mb(e,65536),bs(mh(e))}(e);case 196:return function(e,t){var n=Ub.isInJSFile(e)?Ub.getJSDocTypeTag(e):undefined;if(n)return Sh(n,n.typeExpression.type,e.expression,t);return Pg(e.expression,t)}(e,t);case 210:return function(e){return ty(e),vy(e),pa(Gr(e))}(e);case 197:case 198:return Qh(e,t);case 200:return function(e){return Pg(e.expression),Ln}(e);case 195:case 213:return function(e){return Sh(e,e.type,e.expression)}(e);case 214:return function(e){return bd(Pg(e.expression))}(e);case 215:return Nh(e);case 199:return function(e){Pg(e.expression);var t=Ub.skipParentheses(e.expression);if(190!==t.kind&&191!==t.kind)return Yn(t,Ub.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Ae;var n=Ur(rr(t).resolvedSymbol);return n&&ng(n)&&Yn(t,Ub.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Ae}(e);case 201:return function(e){return Pg(e.expression),Ie}(e);case 202:return function(e){var t,n,r,i,a;return V&&(16384&e.flags||(Rb(t=Ub.getSourceFileOfNode(e))||(n=Ub.getSpanOfTokenAtPosition(t,e.pos),r=Ub.createFileDiagnostic(t,n.start,n.length,Ub.Diagnostics.await_expression_is_only_allowed_within_an_async_function),(i=Ub.getContainingFunction(e))&&158!==i.kind&&(Ub.Debug.assert(0==(2&Ub.getFunctionFlags(i)),"Enclosing function should never be an async function."),a=Ub.createDiagnosticForNode(i,Ub.Diagnostics.Did_you_mean_to_mark_this_function_as_async),Ub.addRelatedInfo(r,a)),yn.add(r))),gf(e)&&Yn(e,Ub.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),rm(Pg(e.expression),e,Ub.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e);case 203:return function(e){var t=Pg(e.operand);if(t===Le)return Le;switch(e.operand.kind){case 8:switch(e.operator){case 39:return Tu(xu(-e.operand.text));case 38:return Tu(xu(+e.operand.text))}break;case 9:if(39===e.operator)return Tu(xu({negative:!0,base10Value:Ub.parsePseudoBigInt(e.operand.text)}))}switch(e.operator){case 38:case 39:case 53:return v_(t,e.operand),sg(t,12288)&&Yn(e.operand,Ub.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Ub.tokenToString(e.operator)),38===e.operator?(sg(t,2112)&&Yn(e.operand,Ub.Diagnostics.Operator_0_cannot_be_applied_to_type_1,Ub.tokenToString(e.operator),bi(t)),xe):og(t);case 52:Om(e.operand);var n=12582912&_p(t);return 4194304==n?Ne:8388608==n?ke:Ae;case 44:case 45:return eg(e.operand,v_(t,e.operand),Ub.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&ag(e.operand,Ub.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),og(t)}return be}(e);case 204:return function(e){var t=Pg(e.operand);return t===Le?Le:(eg(e.operand,v_(t,e.operand),Ub.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&ag(e.operand,Ub.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),og(t))}(e);case 205:return gg(e,t);case 206:return function(e,t){return Om(e.condition),Pc([Pg(e.whenTrue,t),Pg(e.whenFalse,t)],2)}(e,t);case 209:return function(e,t){return k<2&&z.downlevelIteration&&mb(e,1536),Wm(Pg(e.expression,t),e.expression,!1,!1)}(e,t);case 211:return Ie;case 208:return yg(e);case 216:return e.type;case 271:return function(e,t){if(e.expression){var n=Pg(e.expression,t);return e.dotDotDotToken&&n!==ge&&!Zl(n)&&Yn(e,Ub.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return be}(e,t);case 261:return function(e){return vy(e),u_(e)||ge}(e);case 262:return function(e){return vy(e),u_(e)||ge}(e);case 265:return function(e){return d_(e.openingFragment),2===z.jsx&&(z.jsxFactory||Ub.getSourceFileOfNode(e).pragmas.has("jsx"))&&Yn(e,z.jsxFactory?Ub.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:Ub.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),$f(e),u_(e)||ge}(e);case 269:return e_(e,t);case 263:Ub.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return be}(e,t,n),t);return lg(i)&&function(e,t){190===e.parent.kind&&e.parent.expression===e||191===e.parent.kind&&e.parent.expression===e||(73===e.kind||149===e.kind)&&Ay(e)||168===e.parent.kind&&e.parent.exprName===e||Yn(e,Ub.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);{z.isolatedModules&&(Ub.Debug.assert(!!(128&t.symbol.flags)),4194304&t.symbol.valueDeclaration.flags&&Yn(e,Ub.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}}(e,i),f=r,i}function Lg(e){e.expression&&Hb(e.expression,Ub.Diagnostics.Type_expected),yy(e.constraint),yy(e["default"]);var t=Pa(Gr(e));Fo(t),jo(t)===Ke&&Yn(e["default"],Ub.Diagnostics.Type_parameter_0_has_a_circular_default,bi(t));var n=wo(t),r=Wo(t);n&&r&&_l(r,$a(Xu(n,Vu(t,r)),r),e["default"],Ub.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),V&&Qm(e.name,Ub.Diagnostics.Type_parameter_name_cannot_be_0)}function Mg(e){yb(e),wm(e);var t=Ub.getContainingFunction(e);Ub.hasModifier(e,92)&&(158===t.kind&&Ub.nodeIsPresent(t.body)||Yn(e,Ub.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),e.questionToken&&Ub.isBindingPattern(e.name)&&t.body&&Yn(e,Ub.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&Ub.isIdentifier(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&Yn(e,Ub.Diagnostics.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),158!==t.kind&&162!==t.kind&&167!==t.kind||Yn(e,Ub.Diagnostics.A_constructor_cannot_have_a_this_parameter),198===t.kind&&Yn(e,Ub.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!e.dotDotDotToken||Ub.isBindingPattern(e.name)||ll(pa(e.symbol),ht)||Yn(e,Ub.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Fg(e){var t=function(e){switch(e.parent.kind){case 198:case 161:case 240:case 197:case 166:case 157:case 156:var t=e.parent;if(e===t.type)return t}}(e);if(t){var n=ps(t),r=ys(n);if(r){yy(e.type);var i,a=e.parameterName;if(Ub.isThisTypePredicate(r))Nu(a);else if(0<=r.parameterIndex)n.hasRestParameter&&r.parameterIndex===n.parameters.length-1?Yn(a,Ub.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):(i=function i(){return Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)},_l(r.type,pa(n.parameters[r.parameterIndex]),e.type,undefined,i));else if(a){for(var o=!1,s=0,c=t.parameters;s<c.length;s++){var u=c[s].name;if(Ub.isBindingPattern(u)&&function l(e,t,n){for(var r=0,i=e.elements;r<i.length;r++){var a=i[r];if(!Ub.isOmittedExpression(a)){var o=a.name;if(73===o.kind&&o.escapedText===n)return Yn(t,Ub.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((186===o.kind||185===o.kind)&&l(o,t,n))return!0}}}(u,a,r.parameterName)){o=!0;break}}o||Yn(e.parameterName,Ub.Diagnostics.Cannot_find_parameter_0,r.parameterName)}}}else Yn(e,Ub.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}function Og(e){var t;163===e.kind?yb(t=e)||function(e){var t=e.parameters[0];if(1!==e.parameters.length)return Wb(t?t.name:e,Ub.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(t.dotDotDotToken)return Wb(t.dotDotDotToken,Ub.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(Ub.hasModifiers(t))return Wb(t.name,Ub.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Wb(t.questionToken,Ub.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Wb(t.name,Ub.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Wb(t.name,Ub.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(139===t.type.kind||136===t.type.kind)return e.type||Wb(e,Ub.Diagnostics.An_index_signature_must_have_a_type_annotation);var n=Du(t.type);4&n.flags||8&n.flags?Wb(t.name,Ub.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,Ub.getTextOfNode(t.name),bi(n),bi(e.type?Du(e.type):ge)):1048576&n.flags&&ug(n,128,!0)?Wb(t.name,Ub.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):Wb(t.name,Ub.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}(t):166!==e.kind&&240!==e.kind&&167!==e.kind&&161!==e.kind&&158!==e.kind&&162!==e.kind||Tb(e);var n=Ub.getFunctionFlags(e);if(4&n||(3==(3&n)&&k<8&&mb(e,6144),2==(3&n)&&k<4&&mb(e,64),0!=(3&n)&&k<2&&mb(e,128)),$m(e.typeParameters),Ub.forEach(e.parameters,Mg),e.type&&yy(e.type),V){!function(e){if(2<=k||z.noEmit||!Ub.hasRestParameter(e)||4194304&e.flags||Ub.nodeIsMissing(e.body))return;Ub.forEach(e.parameters,function(e){e.name&&!Ub.isBindingPattern(e.name)&&e.name.escapedText===ne.escapedName&&Yn(e,Ub.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(e);var r,i,a=Ub.getEffectiveReturnTypeNode(e);if(K&&!a)switch(e.kind){case 162:Yn(e,Ub.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 161:Yn(e,Ub.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}a&&(1==(5&(r=Ub.getFunctionFlags(e)))?(i=Du(a))===Ve?Yn(a,Ub.Diagnostics.A_generator_cannot_have_a_void_type_annotation):_l((2&r?vc:Ic)(Um(i,0!=(2&r))||ge),i,a):2==(3&r)&&function(e,t){var n=Du(t);if(2<=k){if(n===be)return;var r=uc(!0);if(r!==Je&&!fa(n,r))return Yn(t,Ub.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(!function(e){om(e&&Ub.getEntityNameFromTypeNode(e))}(t),n===be)return;var i=Ub.getEntityNameFromTypeNode(t);if(i===undefined)return Yn(t,Ub.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,bi(n));var a=Sr(i,67220415,!0),o=a?pa(a):be;if(o===be)return 73===i.kind&&"Promise"===i.escapedText&&_a(n)===uc(!1)?Yn(t,Ub.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Yn(t,Ub.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Ub.entityNameToString(i));var s=(Tt=Tt||oc("PromiseConstructorLike",0,!0))||We;if(s===We)return Yn(t,Ub.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Ub.entityNameToString(i));if(!_l(o,s,t,Ub.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var c=i&&ly(i),u=ar(e.locals,c.escapedText,67220415);if(u)return Yn(u.valueDeclaration,Ub.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Ub.idText(c),Ub.entityNameToString(i))}rm(n,e,Ub.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,a)),163!==e.kind&&295!==e.kind&&_m(e)}}function Rg(e){for(var t=Ub.createMap(),n=0,r=e.members;n<r.length;n++){var i=r[n];if(154===i.kind){var a=void 0,o=i.name;switch(o.kind){case 10:case 8:a=o.text;break;case 73:a=Ub.idText(o);break;default:continue}t.get(a)?(Yn(Ub.getNameOfDeclaration(i.symbol.valueDeclaration),Ub.Diagnostics.Duplicate_identifier_0,a),Yn(i.name,Ub.Diagnostics.Duplicate_identifier_0,a)):t.set(a,!0)}}}function Hg(e){if(242===e.kind){var t=Gr(e);if(0<t.declarations.length&&t.declarations[0]!==e)return}var n=ks(Gr(e));if(n)for(var r=!1,i=!1,a=0,o=n.declarations;a<o.length;a++){var s=o[a];if(1===s.parameters.length&&s.parameters[0].type)switch(s.parameters[0].type.kind){case 139:i?Yn(s,Ub.Diagnostics.Duplicate_string_index_signature):i=!0;break;case 136:r?Yn(s,Ub.Diagnostics.Duplicate_number_index_signature):r=!0}}}function jg(e){yb(e)||function(e){if(Ub.isClassLike(e.parent)){if(Ub.isStringLiteral(e.name)&&"constructor"===e.name.text)return Wb(e.name,Ub.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(Pb(e.name,Ub.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(242===e.parent.kind){if(Pb(e.name,Ub.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(e.initializer)return Wb(e.initializer,Ub.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(169===e.parent.kind){if(Pb(e.name,Ub.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(e.initializer)return Wb(e.initializer,Ub.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}4194304&e.flags&&Fb(e);if(Ub.isPropertyDeclaration(e)&&e.exclamationToken&&(!Ub.isClassLike(e.parent)||!e.type||e.initializer||4194304&e.flags||Ub.hasModifier(e,160)))return Wb(e.exclamationToken,Ub.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(e)||Nb(e.name),wm(e)}function Wg(e){Og(e),function(e){var t=Ub.isInJSFile(e)?Ub.getJSDocTypeParameterDeclarations(e):undefined,n=e.typeParameters||t&&Ub.firstOrUndefined(t);if(n){var r=n.pos===n.end?n.pos:Ub.skipTrivia(Ub.getSourceFileOfNode(e).text,n.pos);return jb(e,r,n.end-r,Ub.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){var t=Ub.getEffectiveReturnTypeNode(e);if(t)Wb(t,Ub.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),yy(e.body);var t=Gr(e);if(e===Ub.getDeclarationOfKind(t,e.kind)&&$g(t),!Ub.nodeIsMissing(e.body)&&V){var n=e.parent;if(Ub.getClassExtendsHeritageElement(n)){nf(e.parent,n);var r=of(n),i=af(e);if(i){if(r&&Yn(i,Ub.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),Ub.some(e.parent.members,function(e){return 155===e.kind&&!Ub.hasModifier(e,32)&&!!e.initializer})||Ub.some(e.parameters,function(e){return Ub.hasModifier(e,92)})){for(var a=void 0,o=0,s=e.body.statements;o<s.length;o++){var c=s[o];if(222===c.kind&&Ub.isSuperCall(c.expression)){a=c;break}if(!Ub.isPrologueDirective(c))break}a||Yn(e,Ub.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else r||Yn(e,Ub.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Gg(e){var t,n,r,i,a;V&&(Tb(e)||function(e){var t=e.kind;{if(k<1)return Wb(e.name,Ub.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(4194304&e.flags)return Wb(e.name,Ub.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(e.body===undefined&&!Ub.hasModifier(e,128))return jb(e,e.end-1,";".length,Ub.Diagnostics._0_expected,"{");if(e.body&&Ub.hasModifier(e,128))return Wb(e,Ub.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(e.typeParameters)return Wb(e.name,Ub.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return Vb(e)||e.parameters.length===(159===e.kind?0:1)}(e))return Wb(e.name,159===t?Ub.Diagnostics.A_get_accessor_cannot_have_parameters:Ub.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(160===t){if(e.type)return Wb(e.name,Ub.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=e.parameters[0];if(n.dotDotDotToken)return Wb(n.dotDotDotToken,Ub.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return Wb(n.questionToken,Ub.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return Wb(e.name,Ub.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}return!1}(e)||Nb(e.name),dm(e),Og(e),159===e.kind&&!(4194304&e.flags)&&Ub.nodeIsPresent(e.body)&&128&e.flags&&(256&e.flags||Yn(e.name,Ub.Diagnostics.A_get_accessor_must_return_a_value)),150===e.name.kind&&Jf(e.name),Ua(e)||(t=159===e.kind?160:159,(n=Ub.getDeclarationOfKind(Gr(e),t))&&((28&(r=Ub.getModifierFlags(e)))!=(28&(i=Ub.getModifierFlags(n)))&&Yn(e.name,Ub.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&r)!=(128&i)&&Yn(e.name,Ub.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Yg(e,n,aa,Ub.Diagnostics.get_and_set_accessor_must_have_the_same_type),Yg(e,n,oa,Ub.Diagnostics.get_and_set_accessor_must_have_the_same_this_type))),a=sa(Gr(e)),159===e.kind&&qh(e,a)),yy(e.body)}function Yg(e,t,n,r){var i=n(e),a=n(t);i&&a&&!al(i,a)&&Yn(e,r)}function Jg(e,t){return ds(Ub.map(e.typeArguments,Du),t,ls(t),Ub.isInJSFile(e))}function zg(e,t){for(var n,r,i=!0,a=0;a<t.length;a++){var o=wo(t[a]);o&&(n||(r=Pu(t,n=Jg(e,t))),i=i&&_l(n[a],Xu(o,r),e.typeArguments[a],Ub.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return i}function Ug(e){var t=ec(e);if(t!==be){var n=rr(e).resolvedSymbol;if(n)return 524288&n.flags&&nr(n).typeParameters||(4&Ub.getObjectFlags(t)?t.target.localTypeParameters:undefined)}return undefined}function Kg(e){Cb(e,e.typeArguments),165!==e.kind||e.typeName.jsdocDotPos===undefined||Ub.isInJSFile(e)||Ub.isInJSDoc(e)||jb(e,e.typeName.jsdocDotPos,1,Ub.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var t,n=ec(e);n!==be&&(e.typeArguments&&(Ub.forEach(e.typeArguments,yy),!V||(t=Ug(e))&&zg(e,t)),32&n.flags&&8&rr(e).resolvedSymbol.flags&&Yn(e,Ub.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,bi(n)))}function Zg(e,t){if(!(8388608&e.flags))return e;var n=e.objectType,r=e.indexType;return ll(r,Jc(n,!1))?(191===t.kind&&Ub.isAssignmentTarget(t)&&32&Ub.getObjectFlags(n)&&1&Io(n)&&Yn(t,Ub.Diagnostics.Index_signature_in_type_0_only_permits_reading,bi(n)),e):$o(Yo(n),1)&&cg(r,296)?e:(Yn(t,Ub.Diagnostics.Type_0_cannot_be_used_to_index_type_1,bi(r),bi(n)),be)}function Xg(e){!function(e){if(143===e.operator){if(140!==e.type.kind)return Wb(e.type,Ub.Diagnostics._0_expected,Ub.tokenToString(140));var t=Ub.walkUpParenthesizedTypes(e.parent);switch(t.kind){case 238:var n=t;if(73!==n.name.kind)return Wb(e,Ub.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Ub.isVariableDeclarationInVariableStatement(n))return Wb(e,Ub.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return Wb(t.name,Ub.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 155:if(!Ub.hasModifier(t,32)||!Ub.hasModifier(t,64))return Wb(t.name,Ub.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 154:if(!Ub.hasModifier(t,64))return Wb(t.name,Ub.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Wb(e,Ub.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(134===e.operator&&170!==e.type.kind&&171!==e.type.kind)Hb(e,Ub.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Ub.tokenToString(140))}(e),yy(e.type)}function qg(e){return Ub.hasModifier(e,8)&&!!(4194304&e.flags)}function Qg(e,t){var n=Ub.getCombinedModifierFlags(e);return 242!==e.parent.kind&&241!==e.parent.kind&&210!==e.parent.kind&&4194304&e.flags&&(2&n||Ub.isModuleBlock(e.parent)&&Ub.isModuleDeclaration(e.parent.parent)&&Ub.isGlobalScopeAugmentation(e.parent.parent)||(n|=1),n|=2),n&t}function $g(e){if(V){for(var t,n,r,i,a,o,s,c,u,l,d=0,p=155,f=!1,_=!0,h=!1,g=e.declarations,m=0!=(16384&e.flags),y=!1,b=!1,v=0,E=g;v<E.length;v++){var I,T=E[v],C=4194304&T.flags,B=242===T.parent.kind||169===T.parent.kind||C;B&&(r=undefined),240!==T.kind&&157!==T.kind&&156!==T.kind&&158!==T.kind||(d|=I=Qg(T,155),p&=I,f=f||Ub.hasQuestionToken(T),_=_&&Ub.hasQuestionToken(T),Ub.nodeIsPresent(T.body)&&t?m?b=!0:y=!0:r&&r.parent===T.parent&&r.end!==T.pos&&w(r),Ub.nodeIsPresent(T.body)?t=t||T:h=!0,r=T,B||(n=T))}if(b&&Ub.forEach(g,function(e){Yn(e,Ub.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),y&&Ub.forEach(g,function(e){Yn(Ub.getNameOfDeclaration(e),Ub.Diagnostics.Duplicate_function_implementation)}),!n||n.body||Ub.hasModifier(n,128)||n.questionToken||w(n),h&&(s=g,c=t,u=155,0!=(d^p)&&(l=Qg(A(s,c),u),Ub.forEach(s,function(e){var t=Qg(e,u)^l;1&t?Yn(Ub.getNameOfDeclaration(e),Ub.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?Yn(Ub.getNameOfDeclaration(e),Ub.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?Yn(Ub.getNameOfDeclaration(e)||e,Ub.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&Yn(Ub.getNameOfDeclaration(e),Ub.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})),i=g,a=t,f!==_&&(o=Ub.hasQuestionToken(A(i,a)),Ub.forEach(i,function(e){Ub.hasQuestionToken(e)!==o&&Yn(Ub.getNameOfDeclaration(e),Ub.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})),t))for(var x=hs(e),S=ps(t),N=0,D=x;N<D.length;N++){var k=D[N];if(!Bl(S,k)){Ub.addRelatedInfo(Yn(k.declaration,Ub.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),Ub.createDiagnosticForNode(t,Ub.Diagnostics.The_implementation_signature_is_declared_here));break}}}function A(e,t){return t!==undefined&&t.parent===e[0].parent?t:e[0]}function w(t){if(!t.name||!Ub.nodeIsMissing(t.name)){var n=!1,e=Ub.forEachChild(t.parent,function(e){return n?e:void(n=e===t)});if(e&&e.pos===t.end&&e.kind===t.kind){var r=e.name||e,i=e.name;if(t.name&&i&&(Ub.isComputedPropertyName(t.name)&&Ub.isComputedPropertyName(i)||!Ub.isComputedPropertyName(t.name)&&!Ub.isComputedPropertyName(i)&&Ub.getEscapedTextOfIdentifierOrLiteral(t.name)===Ub.getEscapedTextOfIdentifierOrLiteral(i)))return void((157===t.kind||156===t.kind)&&Ub.hasModifier(t,32)!==Ub.hasModifier(e,32)&&Yn(r,Ub.hasModifier(t,32)?Ub.Diagnostics.Function_overload_must_be_static:Ub.Diagnostics.Function_overload_must_not_be_static));if(Ub.nodeIsPresent(e.body))return void Yn(r,Ub.Diagnostics.Function_implementation_name_must_be_0,Ub.declarationNameToString(t.name))}var a=t.name||t;m?Yn(a,Ub.Diagnostics.Constructor_implementation_is_missing):Ub.hasModifier(t,128)?Yn(a,Ub.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Yn(a,Ub.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function em(e){if(V){var t=e.localSymbol;if((t||(t=Gr(e)).exportSymbol)&&Ub.getDeclarationOfKind(t,e.kind)===e){for(var n=0,r=0,i=0,a=0,o=t.declarations;a<o.length;a++){var s=h(f=o[a]),c=Qg(f,513);1&c?512&c?i|=s:n|=s:r|=s}var u=n&r,l=i&(n|r);if(u||l)for(var d=0,p=t.declarations;d<p.length;d++){var f,s=h(f=p[d]),_=Ub.getNameOfDeclaration(f);s&l?Yn(_,Ub.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ub.declarationNameToString(_)):s&u&&Yn(_,Ub.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ub.declarationNameToString(_))}}}function h(e){var t=e;switch(t.kind){case 242:case 243:case 310:case 303:return 2;case 245:return Ub.isAmbientModule(t)||0!==Ub.getModuleInstanceState(t)?5:4;case 241:case 244:return 3;case 285:return 7;case 255:if(!Ub.isEntityNameExpression(t.expression))return 1;t=t.expression;case 249:case 252:case 251:var n=0,r=Ir(Gr(t));return Ub.forEach(r.declarations,function(e){n|=h(e)}),n;case 238:case 187:case 240:case 254:return 1;default:return Ub.Debug.failBadSyntaxKind(t)}}}function tm(e,t,n){var r=nm(e,t);return r&&im(r,t,n)}function nm(e,t){if(Li(e))return undefined;var n=e;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(fa(e,uc(!1)))return n.promisedTypeOfPromise=e.typeArguments[0];var r=Pi(e,"then");if(Li(r))return undefined;var i=r?Xo(r,0):Ub.emptyArray;if(0===i.length)return t&&Yn(t,Ub.Diagnostics.A_promise_must_have_a_then_method),undefined;var a=hp(Pc(Ub.map(i,Rh)),2097152);if(Li(a))return undefined;var o=Xo(a,0);return 0===o.length?(t&&Yn(t,Ub.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback),undefined):n.promisedTypeOfPromise=Pc(Ub.map(o,Rh),2)}function rm(e,t,n){return im(e,t,n)||be}function im(e,t,n){var r=e;if(r.awaitedTypeOfType)return r.awaitedTypeOfType;if(Li(e))return r.awaitedTypeOfType=e;if(1048576&e.flags){for(var i=void 0,a=0,o=e.types;a<o.length;a++)var s=o[a],i=Ub.append(i,im(s,t,n));return i?r.awaitedTypeOfType=Pc(i):undefined}var c=nm(e);if(c){if(e.id===c.id||0<=mn.indexOf(c.id))return t&&Yn(t,Ub.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method),undefined;mn.push(e.id);var u=im(c,t,n);return mn.pop(),u?r.awaitedTypeOfType=u:undefined}var l=Pi(e,"then");if(l&&0<Xo(l,0).length){if(t){if(!n)return Ub.Debug.fail();Yn(t,n)}return undefined}return r.awaitedTypeOfType=e}function am(e){var t=bs(mh(e));if(!(1&t.flags)){var n,r=ph(e);switch(e.parent.kind){case 241:var i=Pc([pa(Gr(e.parent)),Ve]);break;case 152:i=Ve,n=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 155:i=Ve,n=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 157:case 159:case 160:i=Pc([bc(Py(e.parent)),Ve]);break;default:return Ub.Debug.fail()}_l(t,i,e,r,function(){return n})}}function om(e){var t,n,r;e&&(t=ly(e),n=2097152|(73===e.kind?67897832:1920),(r=sr(t,t.escapedText,n,undefined,undefined,!0))&&2097152&r.flags&&Kr(r)&&!Xy(Ir(r))&&Cr(r))}function sm(e){var t=cm(e);t&&Ub.isEntityName(t)&&om(t)}function cm(e){if(e)switch(e.kind){case 175:case 174:return um(e.types);case 176:return um([e.trueType,e.falseType]);case 178:return cm(e.type);case 165:return e.typeName}}function um(e){for(var t,n=0,r=e;n<r.length;n++){for(var i=r[n];178===i.kind;)i=i.type;if(133!==i.kind&&(U||97!==i.kind&&142!==i.kind)){var a=cm(i);if(!a)return undefined;if(t){if(!Ub.isIdentifier(t)||!Ub.isIdentifier(a)||t.escapedText!==a.escapedText)return undefined}else t=a}}return t}function lm(e){var t=Ub.getEffectiveTypeAnnotationNode(e);return Ub.isRestParameter(e)?Ub.getRestParameterElementType(t):t}function dm(e){if(e.decorators&&Ub.nodeCanBeDecorated(e,e.parent,e.parent.parent)){z.experimentalDecorators||Yn(e,Ub.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=e.decorators[0];if(mb(t,8),152===e.kind&&mb(t,32),z.emitDecoratorMetadata)switch(mb(t,16),e.kind){case 241:var n=Ub.getFirstConstructorWithBody(e);if(n)for(var r=0,i=n.parameters;r<i.length;r++){sm(lm(i[r]))}break;case 159:case 160:var a=159===e.kind?160:159,o=Ub.getDeclarationOfKind(Gr(e),a);sm(ia(e)||o&&ia(o));break;case 157:for(var s=0,c=e.parameters;s<c.length;s++){sm(lm(c[s]))}sm(Ub.getEffectiveReturnTypeNode(e));break;case 155:sm(Ub.getEffectiveTypeAnnotationNode(e));break;case 152:sm(lm(e));for(var u=0,l=e.parent.parameters;u<l.length;u++){sm(lm(l[u]))}}Ub.forEach(e.decorators,am)}}function pm(e){switch(e.kind){case 73:return e;case 190:return e.name;default:return undefined}}function fm(t){dm(t),Og(t);var e,n,r,i=Ub.getFunctionFlags(t);t.name&&150===t.name.kind&&Jf(t.name),Ua(t)||(e=Gr(t),n=t.localSymbol||e,r=Ub.find(n.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)}),t===r&&$g(n),e.parent&&Ub.getDeclarationOfKind(e,t.kind)===t&&$g(e));var a,o,s=156===t.kind?undefined:t.body;yy(s),0==(1&i)&&(a=$h(t,i),qh(t,a)),V&&!Ub.getEffectiveReturnTypeNode(t)&&(Ub.nodeIsMissing(s)&&!qg(t)&&Nd(t,ge),1&i&&Ub.nodeIsPresent(s)&&bs(ps(t))),!Ub.isInJSFile(t)||(o=Ub.getJSDocTypeTag(t))&&o.typeExpression&&!Lf(Du(o.typeExpression),t)&&Yn(o,Ub.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _m(e){var t,n;!V||4194304&e.flags||(t=Ub.getSourceFileOfNode(e),(n=Yt.get(t.path))||(n=[],Yt.set(t.path,n)),n.push(e))}function hm(e,t){for(var n,r,i,a=0,o=e;a<o.length;a++){var s=o[a];switch(s.kind){case 241:case 210:!function(e,t){for(var n=0,r=e.members;n<r.length;n++){var i=r[n];switch(i.kind){case 157:case 155:case 159:case 160:if(160===i.kind&&32768&i.symbol.flags)break;var a=Gr(i);!a.isReferenced&&Ub.hasModifier(i,8)&&t(i,0,Ub.createDiagnosticForNode(i.name,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,mi(a)));break;case 158:for(var o=0,s=i.parameters;o<s.length;o++){var c=s[o];!c.symbol.isReferenced&&Ub.hasModifier(c,8)&&t(c,0,Ub.createDiagnosticForNode(c.name,Ub.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,Ub.symbolName(c.symbol)))}break;case 163:case 218:break;default:Ub.Debug.fail()}}}(s,t),ym(s,t);break;case 285:case 245:case 219:case 247:case 226:case 227:case 228:Im(s,t);break;case 158:case 197:case 240:case 198:case 157:case 159:case 160:s.body&&Im(s,t),ym(s,t);break;case 156:case 161:case 162:case 166:case 167:case 243:case 242:ym(s,t);break;case 177:r=t,i=void 0,bm(i=(n=s).typeParameter)&&r(n,1,Ub.createDiagnosticForNode(n,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,Ub.idText(i.name)));break;default:Ub.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function gm(e,t,n){var r=Ub.getNameOfDeclaration(e)||e,i=Sy(e)?Ub.Diagnostics._0_is_declared_but_never_used:Ub.Diagnostics._0_is_declared_but_its_value_is_never_read;n(e,0,Ub.createDiagnosticForNode(r,i,t))}function mm(e){return Ub.isIdentifier(e)&&95===Ub.idText(e).charCodeAt(0)}function ym(e,t){if(Ub.last(Gr(e).declarations)===e)for(var n=Ub.getEffectiveTypeParameterDeclarations(e),r=new Ub.NodeSet,i=0,a=n;i<a.length;i++){var o,s,c,u,l,d,p=a[i];bm(p)&&(o=Ub.idText(p.name),177!==(s=p.parent).kind&&s.typeParameters.every(bm)?r.tryAdd(s)&&(c=Ub.isJSDocTemplateTag(s)?Ub.rangeOfNode(s):Ub.rangeOfTypeParameters(s.typeParameters),l=(u=1===n.length)?Ub.Diagnostics._0_is_declared_but_its_value_is_never_read:Ub.Diagnostics.All_type_parameters_are_unused,d=u?o:undefined,t(p,1,Ub.createFileDiagnostic(Ub.getSourceFileOfNode(s),c.pos,c.end-c.pos,l,d))):t(p,1,Ub.createDiagnosticForNode(p,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,o)))}}function bm(e){return!(262144&Wr(e.symbol).isReferenced||mm(e.name))}function vm(e,t,n,r){var i=String(r(t)),a=e.get(i);a?a[1].push(n):e.set(i,[t,[n]])}function Em(e){return Ub.tryCast(Ub.getRootDeclaration(e),Ub.isParameter)}function Im(e,s){var c,u,l;4194304&e.flags||(c=Ub.createMap(),u=Ub.createMap(),l=Ub.createMap(),e.locals.forEach(function(e){if(262144&e.flags?3&e.flags&&!(3&e.isReferenced):!e.isReferenced&&!e.exportSymbol)for(var t,n=0,r=e.declarations;n<r.length;n++){var i,a,o=r[n];Ub.isAmbientModule(o)||(Ub.isVariableDeclaration(o)&&Ub.isForInOrOfStatement(o.parent.parent)||Cm(o))&&mm(o.name)||(Cm(o)?vm(c,251===(t=o).kind?t:252===t.kind?t.parent:t.parent.parent,o,ev):Ub.isBindingElement(o)&&Ub.isObjectBindingPattern(o.parent)?o!==Ub.last(o.parent.elements)&&Ub.last(o.parent.elements).dotDotDotToken||vm(u,o.parent,o,ev):Ub.isVariableDeclaration(o)?vm(l,o.parent,o,ev):(i=e.valueDeclaration&&Em(e.valueDeclaration),a=e.valueDeclaration&&Ub.getNameOfDeclaration(e.valueDeclaration),i&&a?Ub.isParameterPropertyDeclaration(i)||Ub.parameterIsThisKeyword(i)||mm(a)||s(i,1,Ub.createDiagnosticForNode(a,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,Ub.symbolName(e))):gm(o,Ub.symbolName(e),s)))}}),c.forEach(function(e){var t=e[0],n=e[1],r=t.parent;if((t.name?1:0)+(t.namedBindings?252===t.namedBindings.kind?1:t.namedBindings.elements.length:0)===n.length)s(r,0,1===n.length?Ub.createDiagnosticForNode(r,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,Ub.idText(Ub.first(n).name)):Ub.createDiagnosticForNode(r,Ub.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var i=0,a=n;i<a.length;i++){var o=a[i];gm(o,Ub.idText(o.name),s)}}),u.forEach(function(e){var t=e[0],n=e[1],r=Em(t.parent)?1:0;if(t.elements.length===n.length)1===n.length&&238===t.parent.kind&&239===t.parent.parent.kind?vm(l,t.parent.parent,t.parent,ev):s(t,r,1===n.length?Ub.createDiagnosticForNode(t,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,Tm(Ub.first(n).name)):Ub.createDiagnosticForNode(t,Ub.Diagnostics.All_destructured_elements_are_unused));else for(var i=0,a=n;i<a.length;i++){var o=a[i];s(o,r,Ub.createDiagnosticForNode(o,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,Tm(o.name)))}}),l.forEach(function(e){var t=e[0],n=e[1];if(t.declarations.length===n.length)s(t,0,1===n.length?Ub.createDiagnosticForNode(Ub.first(n).name,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,Tm(Ub.first(n).name)):Ub.createDiagnosticForNode(220===t.parent.kind?t.parent:t,Ub.Diagnostics.All_variables_are_unused));else for(var r=0,i=n;r<i.length;r++){var a=i[r];s(a,0,Ub.createDiagnosticForNode(a,Ub.Diagnostics._0_is_declared_but_its_value_is_never_read,Tm(a.name)))}}))}function Tm(e){switch(e.kind){case 73:return Ub.idText(e);case 186:case 185:return Tm(Ub.cast(Ub.first(e.elements),Ub.isBindingElement).name);default:return Ub.Debug.assertNever(e)}}function Cm(e){return 251===e.kind||254===e.kind||252===e.kind}function Bm(e){var t;219===e.kind&&Gb(e),Ub.isFunctionOrModuleBlock(e)?(t=Kt,Ub.forEach(e.statements,yy),Kt=t):Ub.forEach(e.statements,yy),e.locals&&_m(e)}function xm(e,t,n){if(t&&t.escapedText===n&&155!==e.kind&&154!==e.kind&&157!==e.kind&&156!==e.kind&&159!==e.kind&&160!==e.kind&&!(4194304&e.flags)){var r=Ub.getRootDeclaration(e);if(152!==r.kind||!Ub.nodeIsMissing(r.parent.body))return 1}}function Sm(t){Ub.findAncestor(t,function(e){return!!(4&nb(e))&&(73!==t.kind?Yn(Ub.getNameOfDeclaration(t),Ub.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Yn(t,Ub.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function Nm(t){Ub.findAncestor(t,function(e){return!!(8&nb(e))&&(73!==t.kind?Yn(Ub.getNameOfDeclaration(t),Ub.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Yn(t,Ub.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function Dm(e,t){var n;C>=Ub.ModuleKind.ES2015||z.noEmit||(xm(e,t,"require")||xm(e,t,"exports"))&&(Ub.isModuleDeclaration(e)&&1!==Ub.getModuleInstanceState(e)||285===(n=Vi(e)).kind&&Ub.isExternalOrCommonJsModule(n)&&Yn(t,Ub.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ub.declarationNameToString(t),Ub.declarationNameToString(t)))}function km(e,t){var n;4<=k||z.noEmit||!xm(e,t,"Promise")||Ub.isModuleDeclaration(e)&&1!==Ub.getModuleInstanceState(e)||285===(n=Vi(e)).kind&&Ub.isExternalOrCommonJsModule(n)&&1024&n.flags&&Yn(t,Ub.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ub.declarationNameToString(t),Ub.declarationNameToString(t))}function Am(e){return e===me?ge:e===_t?ft:e}function wm(t){var e,n,r,i,a,o,s,c,u,l,d,p,f;dm(t),Ub.isBindingElement(t)||yy(t.type),t.name&&(150===t.name.kind&&(Jf(t.name),t.initializer&&vg(t.initializer)),187===t.kind&&(185===t.parent.kind&&k<8&&mb(t,4),t.propertyName&&150===t.propertyName.kind&&Jf(t.propertyName),n=Mi(e=t.parent.parent),r=t.propertyName||t.name,n&&!Ub.isBindingPattern(r)&&(!Ya(i=jc(r))||(a=Ko(n,Ka(i)))&&(A_(a,undefined,!1),g_(e,!!e.initializer&&99===e.initializer.kind,n,a)))),Ub.isBindingPattern(t.name)&&(186===t.name.kind&&k<2&&z.downlevelIteration&&mb(t,512),Ub.forEach(t.name.elements,yy)),t.initializer&&152===Ub.getRootDeclaration(t).kind&&Ub.nodeIsMissing(Ub.getContainingFunction(t).body)?Yn(t,Ub.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation):Ub.isBindingPattern(t.name)?(o=t.initializer&&227!==t.parent.parent.kind,s=0===t.name.elements.length,(o||s)&&(c=$i(t),o&&(u=vg(t.initializer),U&&s?E_(u,t):hl(u,$i(t),t,t.initializer)),s&&(Ub.isArrayBindingPattern(t.name)?Wm(c,t,!1,!1):U&&E_(c,t)))):(d=Am(pa(l=Gr(t))),t===l.valueDeclaration?((p=Ub.getEffectiveInitializer(t))&&(Ub.isInJSFile(t)&&Ub.isObjectLiteralExpression(p)&&(0===p.properties.length||Ub.isPrototypeAccess(t.name))&&Ub.hasEntries(l.exports)||227===t.parent.parent.kind||hl(vg(p),d,t,p,undefined)),1<l.declarations.length&&Ub.some(l.declarations,function(e){return e!==t&&Ub.isVariableLike(e)&&!Pm(e,t)})&&Yn(t.name,Ub.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Ub.declarationNameToString(t.name))):(f=Am($i(t)),d===be||f===be||al(d,f)||67108864&l.flags||Vm(l.valueDeclaration,d,t,f),t.initializer&&hl(vg(t.initializer),f,t,t.initializer,undefined),Pm(t,l.valueDeclaration)||Yn(t.name,Ub.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Ub.declarationNameToString(t.name))),155!==t.kind&&154!==t.kind&&(em(t),238!==t.kind&&187!==t.kind||function(e){if(0==(3&Ub.getCombinedNodeFlags(e))&&!Ub.isParameterDeclaration(e)&&(238!==e.kind||e.initializer)){var t=Gr(e);if(1&t.flags){if(!Ub.isIdentifier(e.name))return Ub.Debug.fail();var n,r,i,a=sr(e,e.name.escapedText,3,undefined,undefined,!1);a&&a!==t&&2&a.flags&&3&__(a)&&((r=220===(n=Ub.getAncestor(a.valueDeclaration,239)).parent.kind&&n.parent.parent?n.parent.parent:undefined)&&(219===r.kind&&Ub.isFunctionLike(r.parent)||246===r.kind||245===r.kind||285===r.kind)||(i=mi(a),Yn(e,Ub.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,i,i)))}}}(t),Dm(t,t.name),km(t,t.name))))}function Vm(e,t,n,r){var i=Ub.getNameOfDeclaration(n),a=155===n.kind||154===n.kind?Ub.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Ub.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,o=Ub.declarationNameToString(i),s=Yn(i,a,o,bi(t),bi(r));e&&Ub.addRelatedInfo(s,Ub.createDiagnosticForNode(e,Ub.Diagnostics._0_was_also_declared_here,o))}function Pm(e,t){if(152===e.kind&&238===t.kind||238===e.kind&&152===t.kind)return 1;if(Ub.hasQuestionToken(e)===Ub.hasQuestionToken(t)){return Ub.getSelectedModifierFlags(e,504)===Ub.getSelectedModifierFlags(t,504)}}function Lm(e){return function(e){if(227!==e.parent.parent.kind&&228!==e.parent.parent.kind)if(4194304&e.flags)Fb(e);else if(!e.initializer){if(Ub.isBindingPattern(e.name)&&!Ub.isBindingPattern(e.parent))return Wb(e,Ub.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(Ub.isVarConst(e))return Wb(e,Ub.Diagnostics.const_declarations_must_be_initialized)}if(e.exclamationToken&&(220!==e.parent.parent.kind||!e.type||e.initializer||4194304&e.flags))return Wb(e.exclamationToken,Ub.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);z.module===Ub.ModuleKind.ES2015||z.module===Ub.ModuleKind.ESNext||z.module===Ub.ModuleKind.System||z.noEmit||4194304&e.parent.parent.flags||!Ub.hasModifier(e.parent.parent,1)||!function a(e){if(73===e.kind){if("__esModule"===Ub.idText(e))return Wb(e,Ub.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=e.elements,n=0,r=t;n<r.length;n++){var i=r[n];if(!Ub.isOmittedExpression(i))return a(i.name)}return!1}(e.name);(Ub.isLet(e)||Ub.isVarConst(e))&&function o(e){if(73===e.kind){if(112===e.originalKeywordKind)return Wb(e,Ub.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=e.elements,n=0,r=t;n<r.length;n++){var i=r[n];Ub.isOmittedExpression(i)||o(i.name)}return!1}(e.name)}(e),wm(e)}function Mm(e){return function(e){if(e.dotDotDotToken){var t=e.parent.elements;if(e!==Ub.last(t))return Wb(e,Ub.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(vb(t,Ub.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return Wb(e.name,Ub.Diagnostics.A_rest_element_cannot_have_a_property_name);if(e.initializer)jb(e,e.initializer.pos-1,1,Ub.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(e),wm(e)}function Fm(e){yb(e)||Ob(e.declarationList)||function(e){if(!function t(e){switch(e.kind){case 223:case 224:case 225:case 232:case 226:case 227:case 228:return!1;case 234:return t(e.parent)}return!0}(e.parent)){if(Ub.isLet(e.declarationList))return Wb(e,Ub.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(Ub.isVarConst(e.declarationList))Wb(e,Ub.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(e),Ub.forEach(e.declarationList.declarations,yy)}function Om(e,t){var n=Pg(e,t);return 16384&n.flags&&Yn(e,Ub.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function Rm(e){wb(e);var t,n,r,i,a=b_(Pg(e.expression));239===e.initializer.kind?((t=e.initializer.declarations[0])&&Ub.isBindingPattern(t.name)&&Yn(t.name,Ub.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Hm(e)):(r=Pg(n=e.initializer),188===n.kind||189===n.kind?Yn(n,Ub.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ll(131072&(i=zc(Jc(a))).flags?Be:i,r)?ag(n,Ub.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):Yn(n,Ub.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)),a!==Pe&&cg(a,126091264)||Yn(e.expression,Ub.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,bi(a)),yy(e.statement),e.locals&&_m(e)}function Hm(e){var t=e.initializer;1<=t.declarations.length&&Lm(t.declarations[0])}function jm(e,t){return Wm(y_(e),e,!0,t!==undefined)}function Wm(e,t,n,r){return Li(e)?e:Gm(e,t,n,r,!0)||ge}function Gm(e,t,n,r,i){if(e===Pe)return Jm(t,e,r),undefined;var a=2<=k,o=!a&&z.downlevelIteration;if(a||o||r){var s=Ym(e,a?t:undefined,r,!0,i);if(s||a)return s}var c,u,l,d=e,p=!1,f=!1;if(n&&(1048576&d.flags?(c=e.types,(u=Ub.filter(c,function(e){return!(132&e.flags)}))!==c&&(d=Pc(u,2))):132&d.flags&&(d=Pe),(f=d!==e)&&(k<1&&t&&(Yn(t,Ub.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),p=!0),131072&d.flags)))return Be;if(!Ql(d))return t&&!p&&(l=!!Ym(e,undefined,r,!0,i),Yn(t,!n||f?o?Ub.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:l?Ub.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:Ub.Diagnostics.Type_0_is_not_an_array_type:o?Ub.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:l?Ub.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:Ub.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,bi(d))),f?Be:undefined;var _=es(d,1);return f&&_?132&_.flags?Be:Pc([_,Be],2):_}function Ym(e,o,s,c,u){return Li(e)?undefined:Vp(e,function(e){var t=e;if(s){if(t.iteratedTypeOfAsyncIterable)return t.iteratedTypeOfAsyncIterable;if(fa(e,dc(!1))||fa(e,fc(!1)))return t.iteratedTypeOfAsyncIterable=e.typeArguments[0]}if(c){if(t.iteratedTypeOfIterable)return s?t.iteratedTypeOfAsyncIterable=im(t.iteratedTypeOfIterable):t.iteratedTypeOfIterable;if(fa(e,_c(!1))||fa(e,gc(!1)))return s?t.iteratedTypeOfAsyncIterable=im(e.typeArguments[0]):t.iteratedTypeOfIterable=e.typeArguments[0]}var n=s&&Pi(e,Ub.getPropertyNameForKnownSymbolName("asyncIterator")),r=n||(c?Pi(e,Ub.getPropertyNameForKnownSymbolName("iterator")):undefined);if(Li(r))return undefined;var i=r?Xo(r,0):undefined;if(!Ub.some(i))return o&&(Jm(o,e,s),o=undefined),undefined;var a=zm(Pc(Ub.map(i,bs),2),o,!!n);u&&o&&a&&_l(e,(n?function(e){return yc(dc(!0),[e])}:Ec)(a),o);if(a)return s?t.iteratedTypeOfAsyncIterable=n?a:im(a):t.iteratedTypeOfIterable=a})}function Jm(e,t,n){Yn(e,n?Ub.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Ub.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,bi(t))}function zm(e,t,n){if(Li(e))return undefined;var r=e;if(n?r.iteratedTypeOfAsyncIterator:r.iteratedTypeOfIterator)return n?r.iteratedTypeOfAsyncIterator:r.iteratedTypeOfIterator;if(fa(e,(n?pc:hc)(!1)))return n?r.iteratedTypeOfAsyncIterator=e.typeArguments[0]:r.iteratedTypeOfIterator=e.typeArguments[0];var i=Pi(e,"next");if(Li(i))return undefined;var a=i?Xo(i,0):Ub.emptyArray;if(0===a.length)return t&&Yn(t,n?Ub.Diagnostics.An_async_iterator_must_have_a_next_method:Ub.Diagnostics.An_iterator_must_have_a_next_method),undefined;var o=Pc(Ub.map(a,bs),2);if(Li(o))return undefined;if(n&&Li(o=tm(o,t,Ub.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property)))return undefined;var s=o&&Pi(o,"value");return s?n?r.iteratedTypeOfAsyncIterator=s:r.iteratedTypeOfIterator=s:(t&&Yn(t,n?Ub.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Ub.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property),undefined)}function Um(e,t){return Li(e)?undefined:Ym(e,undefined,t,!t,!1)||zm(e,undefined,t)}function Km(e){Gb(e)||function(e){var t=e;for(;t;){if(Ub.isFunctionLike(t))return Wb(e,Ub.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 234:if(e.label&&t.label.escapedText===e.label.escapedText)return 229!==e.kind||Ub.isIterationStatement(t.statement,!0)||Wb(e,Ub.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 233:if(230===e.kind&&!e.label)return;break;default:if(Ub.isIterationStatement(t,!1)&&!e.label)return}t=t.parent}{if(e.label){var n=230===e.kind?Ub.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Ub.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Wb(e,n)}n=230===e.kind?Ub.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Ub.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;Wb(e,n)}}(e)}function Zm(e,t){var n=2==(3&Ub.getFunctionFlags(e))?nm(t):t;return n&&sg(n,16387)}function Xm(e){Gb(e)||e.expression===undefined&&function(e,t,n,r,i){var a=Ub.getSourceFileOfNode(e);if(Rb(a))return;var o=Ub.getSpanOfTokenAtPosition(a,e.pos);yn.add(Ub.createFileDiagnostic(a,Ub.textSpanEnd(o),0,t,n,r,i))}(e,Ub.Diagnostics.Line_break_not_permitted_here),e.expression&&Pg(e.expression)}function qm(n){var e,r=As(n.symbol,1),i=As(n.symbol,0),a=es(n,0),o=es(n,1);if(a||o){Ub.forEach(So(n),function(e){var t=pa(e);p(e,t,n,i,a,0),p(e,t,n,r,o,1)});var t=n.symbol.valueDeclaration;if(1&Ub.getObjectFlags(n)&&Ub.isClassLike(t))for(var s=0,c=t.members;s<c.length;s++){var u,l,d=c[s];!Ub.hasModifier(d,32)&&Ua(d)&&(p(u=Gr(d),l=pa(u),n,i,a,0),p(u,l,n,r,o,1))}}function p(t,e,n,r,i,a){var o,s,c;i&&!Ub.isKnownSymbol(t)&&(s=(o=t.valueDeclaration)&&Ub.getNameOfDeclaration(o),(1!==a||(s?Wf(s):Yf(t.escapedName)))&&(o&&s&&(205===o.kind||150===s.kind||t.parent===n.symbol)?c=o:r?c=r:2&Ub.getObjectFlags(n)&&(c=Ub.forEach(xa(n),function(e){return No(e,t.escapedName)&&es(e,a)})?undefined:n.symbol.declarations[0]),c&&!ll(e,i)&&Yn(c,0===a?Ub.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:Ub.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,mi(t),bi(e),bi(i))))}a&&o&&!(e=r||i)&&2&Ub.getObjectFlags(n)&&(e=Ub.forEach(xa(n),function(e){return es(e,0)&&es(e,1)})?undefined:n.symbol.declarations[0]),e&&!ll(o,a)&&Yn(e,Ub.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,bi(o),bi(a))}function Qm(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Yn(e,t,e.escapedText)}}function $m(e){if(e)for(var t=!1,n=0;n<e.length;n++){var r=e[n];if(Lg(r),V){r["default"]?(t=!0,a=r["default"],o=e,s=n,function c(e){if(165===e.kind){var t=ec(e);if(262144&t.flags)for(var n=s;n<o.length;n++)t.symbol===Gr(o[n])&&Yn(e,Ub.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Ub.forEachChild(e,c)}(a)):t&&Yn(r,Ub.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var i=0;i<n;i++)e[i].symbol===r.symbol&&Yn(r.name,Ub.Diagnostics.Duplicate_identifier_0,Ub.declarationNameToString(r.name))}}var a,o,s}function ey(e){if(1!==e.declarations.length){var t,n=nr(e);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var r=(t=e,Ub.filter(t.declarations,function(e){return 241===e.kind||242===e.kind}));if(r.length<=1)return;if(!function(e,t){for(var n=Ub.length(t),r=ls(t),i=0,a=e;i<a.length;i++){var o=a[i],s=Ub.getEffectiveTypeParameterDeclarations(o),c=s.length;if(c<r||n<c)return!1;for(var u=0;u<c;u++){var l=s[u],d=t[u];if(l.name.escapedText!==d.symbol.escapedName)return!1;var p=Ub.getEffectiveConstraintOfTypeParameter(l),f=p&&Du(p),_=wo(d);if(f&&(!_||!al(f,_)))return!1;var h=l["default"]&&Du(l["default"]),g=Wo(d);if(h&&g&&!al(h,g))return!1}}return!0}(r,La(e).localTypeParameters))for(var i=mi(e),a=0,o=r;a<o.length;a++){Yn(o[a].name,Ub.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}}function ty(e){var t,n,r;t=e,n=Ub.getSourceFileOfNode(t),function(e){var t=!1,n=!1;if(!yb(e)&&e.heritageClauses)for(var r=0,i=e.heritageClauses;r<i.length;r++){var a=i[r];if(87===a.token){if(t)return Hb(a,Ub.Diagnostics.extends_clause_already_seen);if(n)return Hb(a,Ub.Diagnostics.extends_clause_must_precede_implements_clause);if(1<a.types.length)return Hb(a.types[1],Ub.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(Ub.Debug.assert(110===a.token),n)return Hb(a,Ub.Diagnostics.implements_clause_already_seen);n=!0}xb(a)}}(t)||Eb(t.typeParameters,n),dm(e),e.name&&(Qm(e.name,Ub.Diagnostics.Class_name_cannot_be_0),Dm(e,e.name),km(e,e.name),4194304&e.flags||(r=e.name,1===k&&"Object"===r.escapedText&&C!==Ub.ModuleKind.ES2015&&C!==Ub.ModuleKind.ESNext&&Yn(r,Ub.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Ub.ModuleKind[C]))),$m(Ub.getEffectiveTypeParameterDeclarations(e)),em(e);var i=Gr(e),a=La(i),o=$a(a),s=pa(i);ey(i),function(e){var t;(t={})[t.Getter=1]="Getter",t[t.Setter=2]="Setter",t[t.Method=4]="Method",t[t.Property=3]="Property";for(var n=Ub.createUnderscoreEscapedMap(),r=Ub.createUnderscoreEscapedMap(),i=0,a=e.members;i<a.length;i++){var o=a[i];if(158===o.kind)for(var s=0,c=o.parameters;s<c.length;s++){var u=c[s];Ub.isParameterPropertyDeclaration(u)&&!Ub.isBindingPattern(u.name)&&f(n,u.name,u.name.escapedText,3)}else{var l=Ub.hasModifier(o,32)?r:n,d=o.name,p=d&&Ub.getPropertyNameForPropertyNameNode(d);if(d&&p)switch(o.kind){case 159:f(l,d,p,1);break;case 160:f(l,d,p,2);break;case 155:f(l,d,p,3);break;case 157:f(l,d,p,4)}}}function f(e,t,n,r){var i=e.get(n);i?4&i?4!==r&&Yn(t,Ub.Diagnostics.Duplicate_identifier_0,Ub.getTextOfNode(t)):i&r?Yn(t,Ub.Diagnostics.Duplicate_identifier_0,Ub.getTextOfNode(t)):e.set(n,i|r):e.set(n,r)}}(e),4194304&e.flags||function(e){for(var t=0,n=e.members;t<n.length;t++){var r=n[t],i=r.name;if(Ub.hasModifier(r,32)&&i){var a=Ub.getPropertyNameForPropertyNameNode(i);switch(a){case"name":case"length":case"caller":case"arguments":case"prototype":Yn(i,Ub.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,a,Si(Gr(e)))}}}}(e);var c=Ub.getEffectiveBaseTypeNode(e);if(c){k<2&&mb(c.parent,1);var u=Ub.getClassExtendsHeritageElement(e);u&&u!==c&&Pg(u.expression);var l=xa(a);if(l.length&&V){var d,p=l[0],f=Ba(a),_=Yo(f);if(!function(e,t){var n=Xo(e,1);{var r,i;!n.length||(r=n[0].declaration)&&Ub.hasModifier(r,8)&&(i=Ub.getClassLikeDeclarationOfSymbol(e.symbol),ky(t,i)||Yn(t,Ub.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,xr(e.symbol)))}}(_,c),yy(c.expression),Ub.some(c.typeArguments)){Ub.forEach(c.typeArguments,yy);for(var h=0,g=Ta(_,c.typeArguments,c);h<g.length;h++){if(!zg(c,g[h].typeParameters))break}}_l(o,I=$a(p,a.thisType),undefined)?_l(s,il(_),e.name||e,Ub.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):ny(e,o,I,Ub.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&f.flags&&!va(s)&&Yn(e.name||e,Ub.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),_.symbol&&32&_.symbol.flags||8650752&f.flags||(d=Ca(_,c.typeArguments,c),Ub.forEach(d,function(e){return!yh(e.declaration)&&bs(e)!==p})&&Yn(c.expression,Ub.Diagnostics.Base_constructors_must_all_have_the_same_return_type)),function(e,t){for(var n=ko(t),r=0,i=n;r<i.length;r++){var a=i[r],o=ry(a);if(!(4194304&o.flags)){var s=ry(No(e,o.escapedName)),c=Ub.getDeclarationModifierFlagsFromSymbol(o);if(Ub.Debug.assert(!!s,"derived should point to something, even if it is the base class' declaration."),s)if(s===o){var u=Ub.getClassLikeDeclarationOfSymbol(e.symbol);!(128&c)||u&&Ub.hasModifier(u,128)||(210===u.kind?Yn(u,Ub.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,mi(a),bi(t)):Yn(u,Ub.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,bi(e),mi(a),bi(t)))}else{var l=Ub.getDeclarationModifierFlagsFromSymbol(s);if(8&c||8&l)continue;if(h_(o)||98308&o.flags&&98308&s.flags)continue;var d=void 0;d=h_(o)?98304&s.flags?Ub.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Ub.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:98304&o.flags?Ub.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Ub.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function,Yn(Ub.getNameOfDeclaration(s.valueDeclaration)||s.valueDeclaration,d,bi(t),mi(o),bi(e))}}}}(a,p)}}var m=Ub.getClassImplementsHeritageClauseElements(e);if(m)for(var y=0,b=m;y<b.length;y++){var v,E,I,T=b[y];Ub.isEntityNameExpression(T.expression)||Yn(T.expression,Ub.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Kg(T),!V||(v=Du(T))!==be&&(Sa(v)?(E=v.symbol&&32&v.symbol.flags?Ub.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Ub.Diagnostics.Class_0_incorrectly_implements_interface_1,_l(o,I=$a(v,a.thisType),undefined)||ny(e,o,I,E)):Yn(T,Ub.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members))}V&&(qm(a),Hg(e),function(e){if(!U||!B||4194304&e.flags)return;for(var t=Zr(e),n=0,r=e.members;n<r.length;n++){var i,a,o=r[n];ay(o)&&(i=o.name,Ub.isIdentifier(i)&&(3&(a=pa(Gr(o))).flags||32768&_d(a)||t&&function(e,t,n){var r=Ub.createPropertyAccess(Ub.createThis(),e);return(r.expression.parent=r).parent=n,r.flowNode=n.returnFlowNode,!(32768&_d(Up(r,t,yd(t))))}(i,a,t)||Yn(o.name,Ub.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ub.declarationNameToString(i))))}}(e))}function ny(e,a,o,t){for(var s=!1,c=function c(e){if(Ub.hasStaticModifier(e))return"continue";var t,n,r,i=e.name&&Vy(e.name)||Vy(e);i&&(t=Ko(a,i.escapedName),n=Ko(o,i.escapedName),t&&n&&(r=function r(){return Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,mi(i),bi(a),bi(o))},_l(pa(t),pa(n),e.name||e,undefined,r)||(s=!0)))},n=0,r=e.members;n<r.length;n++){c(r[n])}s||_l(a,o,e.name||e,t)}function ry(e){return 1&Ub.getCheckFlags(e)?e.target:e}function iy(t,e){var n=xa(t);if(n.length<2)return 1;var r=Ub.createUnderscoreEscapedMap();Ub.forEach(Ga(t).declaredProperties,function(e){r.set(e.escapedName,{prop:e,containingType:t})});for(var i=!0,a=0,o=n;a<o.length;a++)for(var s=o[a],c=0,u=ko($a(s,t.thisType));c<u.length;c++){var l,d,p,f=u[c],_=r.get(f.escapedName);_?_.containingType!==t&&0===zl(_.prop,f,ol)&&(i=!1,l=bi(_.containingType),d=bi(s),p=Ub.chainDiagnosticMessages(undefined,Ub.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,mi(f),l,d),p=Ub.chainDiagnosticMessages(p,Ub.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,bi(t),l,d),yn.add(Ub.createDiagnosticForNodeFromMessageChain(e,p))):r.set(f.escapedName,{prop:f,containingType:s})}return i}function ay(e){return 155===e.kind&&!Ub.hasModifier(e,160)&&!e.exclamationToken&&!e.initializer}function oy(e){if(yb(e)||function(e){var t=!1;if(e.heritageClauses)for(var n=0,r=e.heritageClauses;n<r.length;n++){var i=r[n];if(87!==i.token)return Ub.Debug.assert(110===i.token),Hb(i,Ub.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return Hb(i,Ub.Diagnostics.extends_clause_already_seen);t=!0,xb(i)}}(e),$m(e.typeParameters),V){Qm(e.name,Ub.Diagnostics.Interface_name_cannot_be_0),em(e);var t=Gr(e);if(ey(t),e===Ub.getDeclarationOfKind(t,242)){var n=La(t),r=$a(n);if(iy(n,e.name)){for(var i=0,a=xa(n);i<a.length;i++){_l(r,$a(a[i],n.thisType),e.name,Ub.Diagnostics.Interface_0_incorrectly_extends_interface_1)}qm(n)}}Rg(e)}Ub.forEach(Ub.getInterfaceBaseTypeNodes(e),function(e){Ub.isEntityNameExpression(e.expression)||Yn(e.expression,Ub.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Kg(e)}),Ub.forEach(e.members,yy),V&&(Hg(e),_m(e))}function sy(e){var t=rr(e);if(!(16384&t.flags)){t.flags|=16384;for(var n=0,r=0,i=e.members;r<i.length;r++)var a=i[r],o=function(e,t){{var n;Fi(e.name)?Yn(e.name,Ub.Diagnostics.Computed_property_names_are_not_allowed_in_enums):Yf(n=Ub.getTextOfPropertyName(e.name))&&!Gf(n)&&Yn(e.name,Ub.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(u){var e=ka(Gr(u.parent)),t=Ub.isEnumConst(u.parent),n=u.initializer,r=1!==e||Da(u)?function d(e){switch(e.kind){case 203:var t=d(e.operand);if("number"==typeof t)switch(e.operator){case 38:return t;case 39:return-t;case 53:return~t}break;case 205:var n=d(e.left),r=d(e.right);if("number"==typeof n&&"number"==typeof r)switch(e.operatorToken.kind){case 50:return n|r;case 49:return n&r;case 47:return n>>r;case 48:return n>>>r;case 46:return n<<r;case 51:return n^r;case 40:return n*r;case 42:return n/r;case 38:return n+r;case 39:return n-r;case 43:return n%r;case 41:return Math.pow(n,r)}else if("string"==typeof n&&"string"==typeof r&&38===e.operatorToken.kind)return n+r;break;case 10:return e.text;case 8:return Yb(e),+e.text;case 196:return d(e.expression);case 73:var i=e;return Gf(i.escapedText)?+i.escapedText:Ub.nodeIsMissing(e)?0:l(e,Gr(u.parent),i.escapedText);case 191:case 190:var a=e;if(cy(a)){var o=wg(a.expression);if(o.symbol&&384&o.symbol.flags){var s,c=void 0;return c=190===a.kind?a.name.escapedText:(s=a.argumentExpression,Ub.Debug.assert(Ub.isLiteralExpression(s)),Ub.escapeLeadingUnderscores(s.text)),l(e,o.symbol,c)}}}return undefined}(n):undefined;if(r!==undefined)t&&"number"==typeof r&&!isFinite(r)&&Yn(n,isNaN(r)?Ub.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Ub.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===e)return Yn(n,Ub.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;t?Yn(n,Ub.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values):4194304&u.parent.flags?Yn(n,Ub.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):_l(Pg(n),La(Gr(u.parent)),n,undefined)}return r;function l(e,t,n){var r=t.exports.get(n);if(r){var i=r.valueDeclaration;if(i!==u)return or(i,u)?rb(i):(Yn(e,Ub.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}return undefined}}(e);if(4194304&e.parent.flags&&!Ub.isEnumConst(e.parent))return undefined;return t===undefined?(Yn(e.name,Ub.Diagnostics.Enum_member_must_have_initializer),undefined):t}(a,n),n="number"==typeof(rr(a).enumMemberValue=o)?o+1:undefined}}function cy(e){return 73===e.kind||190===e.kind&&cy(e.expression)||191===e.kind&&cy(e.expression)&&10===e.argumentExpression.kind}function uy(e){if(V){var t=Ub.isGlobalScopeAugmentation(e),n=4194304&e.flags;t&&!n&&Yn(e.name,Ub.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var r=Ub.isAmbientModule(e);if(_y(e,r?Ub.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Ub.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;yb(e)||n||10!==e.name.kind||Wb(e.name,Ub.Diagnostics.Only_ambient_modules_can_use_quoted_names),Ub.isIdentifier(e.name)&&(Dm(e,e.name),km(e,e.name)),em(e);var i,a,o=Gr(e);if(512&o.flags&&!n&&1<o.declarations.length&&nv(e,!!z.preserveConstEnums||!!z.isolatedModules)&&((i=function(e){for(var t=0,n=e.declarations;t<n.length;t++){var r=n[t];if((241===r.kind||240===r.kind&&Ub.nodeIsPresent(r.body))&&!(4194304&r.flags))return r}return undefined}(o))&&(Ub.getSourceFileOfNode(e)!==Ub.getSourceFileOfNode(i)?Yn(e.name,Ub.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<i.pos&&Yn(e.name,Ub.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged)),(a=Ub.getDeclarationOfKind(o,241))&&(u=e,l=a,d=Ub.getEnclosingBlockScopeContainer(u),p=Ub.getEnclosingBlockScopeContainer(l),ir(d)?ir(p):!ir(p)&&d===p)&&(rr(e).flags|=32768)),r)if(Ub.isExternalModuleAugmentation(e)){if((t||33554432&Gr(e).flags)&&e.body)for(var s=0,c=e.body.statements;s<c.length;s++){!function f(e,t){switch(e.kind){case 220:for(var n=0,r=e.declarationList.declarations;n<r.length;n++){var i=r[n];f(i,t)}break;case 255:case 256:Hb(e,Ub.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 249:case 250:Hb(e,Ub.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 187:case 238:var a=e.name;if(Ub.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];f(c,t)}break}case 241:case 244:case 240:case 242:case 245:case 243:if(t)return;var u=Gr(e);u&&(!(33554432&u.flags)||u.parent&&Ub.isExternalModuleAugmentation(u.parent.declarations[0]))}}(c[s],t)}}else ir(e.parent)?t?Yn(e.name,Ub.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ub.isExternalModuleNameRelative(Ub.getTextOfIdentifierOrLiteral(e.name))&&Yn(e.name,Ub.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Yn(e.name,t?Ub.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Ub.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var u,l,d,p;e.body&&(yy(e.body),Ub.isGlobalScopeAugmentation(e)||_m(e))}function ly(e){switch(e.kind){case 73:return e;case 149:for(;73!==(e=e.left).kind;);return e;case 190:for(;73!==(e=e.expression).kind;);return e}}function dy(e){var t=Ub.getExternalModuleName(e);if(t&&!Ub.nodeIsMissing(t))if(Ub.isStringLiteral(t)){var n=246===e.parent.kind&&Ub.isAmbientModule(e.parent.parent);if(285===e.parent.kind||n){if(!n||!Ub.isExternalModuleNameRelative(t.text)||Ci(e))return 1;Yn(e,Ub.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name)}else Yn(t,256===e.kind?Ub.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:Ub.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module)}else Yn(t,Ub.Diagnostics.String_literal_expected)}function py(e){var t,n=Gr(e),r=Ir(n);r!==_e&&(t=(68268991&n.flags?67220415:0)|(67897832&n.flags?67897832:0)|(1920&n.flags?1920:0),r.flags&t&&Yn(e,258===e.kind?Ub.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:Ub.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,mi(n)),!z.isolatedModules||258!==e.kind||67220415&r.flags||4194304&e.flags||Yn(e,Ub.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided))}function fy(e){Dm(e,e.name),km(e,e.name),py(e)}function _y(e,t){var n=285===e.parent.kind||246===e.parent.kind||245===e.parent.kind;return n||Hb(e,t),!n}function hy(e){var t,n;py(e),Ub.getEmitDeclarations(z)&&Di(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier||((n=sr(t=e.propertyName||e.name,t.escapedText,70107135,undefined,undefined,!0))&&(n===$||ir(Vi(n.declarations[0])))?Yn(t,Ub.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Ub.idText(t)):Tr(e))}function gy(e){var t,n,r,i,a=Gr(e),o=nr(a);o.exportsChecked||((t=a.exports.get("export="))&&(i=a,Ub.forEachEntry(i.exports,function(e,t){return"export="!==t}))&&(Ci(n=fr(t)||t.valueDeclaration)||Ub.isInJSFile(n)||Yn(n,Ub.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)),(r=Rr(a))&&r.forEach(function(e,t){var n=e.declarations,r=e.flags;if("__export"!==t&&!(1984&r)){var i=Ub.countWhere(n,Wn);if(!(524288&r&&i<=2)&&1<i)for(var a=0,o=n;a<o.length;a++){var s=o[a];my(s)&&yn.add(Ub.createDiagnosticForNode(s,Ub.Diagnostics.Cannot_redeclare_exported_variable_0,Ub.unescapeLeadingUnderscores(t)))}}}),o.exportsChecked=!0)}function my(e){return 240!==e.kind&&157!==e.kind||!!e.body}function yy(e){var t;e&&(t=f,function(e){Ub.isInJSFile(e)&&Ub.forEach(e.jsDoc,function(e){var t=e.tags;return Ub.forEach(t,yy)});var t=e.kind;if(E)switch(t){case 245:case 241:case 242:case 240:E.throwIfCancellationRequested()}switch(t){case 151:return Lg(e);case 152:return Mg(e);case 155:case 154:return jg(e);case 166:case 167:case 161:case 162:case 163:return Og(e);case 157:case 156:return function(e){Lb(e)||Nb(e.name),fm(e),Ub.hasModifier(e,128)&&157===e.kind&&e.body&&Yn(e,Ub.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ub.declarationNameToString(e.name))}(e);case 158:return Wg(e);case 159:case 160:return Gg(e);case 165:return Kg(e);case 164:return Fg(e);case 168:return function(e){nc(e)}(e);case 169:return function(e){Ub.forEach(e.members,yy),V&&(qm(_u(e)),Hg(e),Rg(e))}(e);case 170:return function(e){yy(e.elementType)}(e);case 171:return function(e){for(var t=e.elementTypes,n=!1,r=0;r<t.length;r++){var i=t[r];if(173===i.kind){if(r!==t.length-1){Wb(i,Ub.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}Zl(Du(i))||Yn(i,Ub.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(172===i.kind)n=!0;else if(n){Wb(i,Ub.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}Ub.forEach(e.elementTypes,yy)}(e);case 174:case 175:return function(e){Ub.forEach(e.types,yy)}(e);case 178:case 172:case 173:return yy(e.type);case 179:return function(e){Nu(e)}(e);case 180:return Xg(e);case 176:return function(e){Ub.forEachChild(e,yy)}(e);case 177:return function(e){Ub.findAncestor(e,function(e){return e.parent&&176===e.parent.kind&&e.parent.extendsType===e})||Wb(e,Ub.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),yy(e.typeParameter),_m(e)}(e);case 184:return function(e){yy(e.argument),Du(e)}(e);case 301:return function(e){var t,n,r,i,a=Ub.getJSDocHost(e);Ub.isClassDeclaration(a)||Ub.isClassExpression(a)?(t=Ub.getJSDocTags(a).filter(Ub.isJSDocAugmentsTag),Ub.Debug.assert(0<t.length),1<t.length&&Yn(t[1],Ub.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag),n=pm(e["class"].expression),!(r=Ub.getClassExtendsHeritageElement(a))||(i=pm(r.expression))&&n.escapedText!==i.escapedText&&Yn(n,Ub.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,Ub.idText(e.tagName),Ub.idText(n),Ub.idText(i))):Yn(a,Ub.Diagnostics.JSDoc_0_is_not_attached_to_a_class,Ub.idText(e.tagName))}(e);case 310:case 303:return function(e){e.typeExpression||Yn(e.name,Ub.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&Qm(e.name,Ub.Diagnostics.Type_alias_name_cannot_be_0),yy(e.typeExpression)}(e);case 309:return function(e){yy(e.constraint);for(var t=0,n=e.typeParameters;t<n.length;t++){yy(n[t])}}(e);case 308:return function(e){yy(e.typeExpression)}(e);case 305:return function(e){if(yy(e.typeExpression),!Ub.getParameterSymbolFromJSDoc(e)){var t=Ub.getHostSignatureFromJSDoc(e);if(t){var n=Ub.getJSDocTags(t).filter(Ub.isJSDocParameterTag).indexOf(e);if(-1<n&&n<t.parameters.length&&Ub.isBindingPattern(t.parameters[n].name))return;_s(t)?Ub.findLast(Ub.getJSDocTags(t),Ub.isJSDocParameterTag)===e&&e.typeExpression&&e.typeExpression.type&&!Zl(Du(e.typeExpression.type))&&Yn(e.name,Ub.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Ub.idText(149===e.name.kind?e.name.right:e.name)):Ub.isQualifiedName(e.name)?Yn(e.name,Ub.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Ub.entityNameToString(e.name),Ub.entityNameToString(e.name.left)):Yn(e.name,Ub.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Ub.idText(e.name))}}}(e);case 295:!function(e){!V||e.type||Ub.isJSDocConstructSignature(e)||Nd(e,ge),Og(e)}(e);case 293:case 292:case 290:case 291:case 298:return by(e),Ub.forEachChild(e,yy);case 296:return function(e){by(e),yy(e.type);var t=e.parent;if(Ub.isParameter(t)&&Ub.isJSDocFunctionType(t.parent))return Ub.last(t.parent.parameters)!==t&&Yn(e,Ub.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);Ub.isJSDocTypeExpression(t)||Yn(e,Ub.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=e.parent.parent;if(!Ub.isJSDocParameterTag(n))return Yn(e,Ub.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=Ub.getParameterSymbolFromJSDoc(n);if(!r)return;var i=Ub.getHostSignatureFromJSDoc(n);i&&Ub.last(i.parameters).symbol===r||Yn(e,Ub.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}(e);case 289:return yy(e.type);case 181:return function(e){yy(e.objectType),yy(e.indexType),Zg(au(e),e)}(e);case 182:return function(e){yy(e.typeParameter),yy(e.type),e.type||Nd(e,ge),_l(mo(ou(e)),He,Ub.getEffectiveConstraintOfTypeParameter(e.typeParameter))}(e);case 240:return function(e){V&&(fm(e),Db(e),Dm(e,e.name),km(e,e.name))}(e);case 219:case 246:return Bm(e);case 220:return Fm(e);case 222:return function(e){Gb(e),Pg(e.expression)}(e);case 223:return function(e){Gb(e),Om(e.expression),yy(e.thenStatement),221===e.thenStatement.kind&&Yn(e.thenStatement,Ub.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),yy(e.elseStatement)}(e);case 224:return function(e){Gb(e),yy(e.statement),Om(e.expression)}(e);case 225:return function(e){Gb(e),Om(e.expression),yy(e.statement)}(e);case 226:return function(e){Gb(e)||e.initializer&&239===e.initializer.kind&&Ob(e.initializer),e.initializer&&(239===e.initializer.kind?Ub.forEach(e.initializer.declarations,Lm):Pg(e.initializer)),e.condition&&Om(e.condition),e.incrementor&&Pg(e.incrementor),yy(e.statement),e.locals&&_m(e)}(e);case 227:return Rm(e);case 228:return function(e){var t,n,r;wb(e),e.awaitModifier?2==(6&Ub.getFunctionFlags(Ub.getContainingFunction(e)))&&k<8&&mb(e,16384):z.downlevelIteration&&k<2&&mb(e,256),239===e.initializer.kind?Hm(e):(t=e.initializer,n=jm(e.expression,e.awaitModifier),188===t.kind||189===t.kind?_g(t,n||be):(r=Pg(t),ag(t,Ub.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),n&&hl(n,r,t,e.expression))),yy(e.statement),e.locals&&_m(e)}(e);case 229:case 230:return Km(e);case 231:return function(e){if(!Gb(e)){var t=Ub.getContainingFunction(e);if(t){var n=bs(ps(t)),r=Ub.getFunctionFlags(t),i=1&r;if(U||e.expression||131072&n.flags){var a,o,s=e.expression?vg(e.expression):Ee;if(i)return;160===t.kind?e.expression&&Yn(e,Ub.Diagnostics.Setters_cannot_return_a_value):158===t.kind?e.expression&&!hl(s,n,e,e.expression)&&Yn(e,Ub.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class):vs(t)&&(2&r?(a=nm(n),o=rm(s,e,Ub.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),a&&hl(o,a,e,e.expression)):hl(s,n,e,e.expression))}else 158===t.kind||!z.noImplicitReturns||Zm(t,n)||i||Yn(e,Ub.Diagnostics.Not_all_code_paths_return_a_value)}else Hb(e,Ub.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(e);case 232:return function(e){Gb(e)||16384&e.flags&&Hb(e,Ub.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Pg(e.expression);var t,n=Ub.getSourceFileOfNode(e);Rb(n)||jb(n,t=Ub.getSpanOfTokenAtPosition(n,e.pos).start,e.statement.pos-t,Ub.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}(e);case 233:return function(o){var s;Gb(o);var c=!1,u=Pg(o.expression),l=id(u);Ub.forEach(o.caseBlock.clauses,function(e){var t,n,r,i,a;273!==e.kind||c||(s===undefined?s=e:(jb(t=Ub.getSourceFileOfNode(o),n=Ub.skipTrivia(t.text,e.pos),(0<e.statements.length?e.statements[0].pos:e.end)-n,Ub.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),V&&272===e.kind&&(i=id(r=Pg(e.expression)),a=u,i&&l||(r=i?ad(r):r,a=ad(u)),hg(a,r)||Tl(r,a,e.expression,undefined)),Ub.forEach(e.statements,yy)}),o.caseBlock.locals&&_m(o.caseBlock)}(e);case 234:return function(t){Gb(t)||Ub.findAncestor(t.parent,function(e){return Ub.isFunctionLike(e)?"quit":234===e.kind&&e.label.escapedText===t.label.escapedText&&(Wb(t.label,Ub.Diagnostics.Duplicate_label_0,Ub.getTextOfNode(t.label)),!0)}),yy(t.statement)}(e);case 235:return Xm(e);case 236:return function(e){Gb(e),Bm(e.tryBlock);var n,t=e.catchClause;t&&(t.variableDeclaration&&(t.variableDeclaration.type?Hb(t.variableDeclaration.type,Ub.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation):t.variableDeclaration.initializer?Hb(t.variableDeclaration.initializer,Ub.Diagnostics.Catch_clause_variable_cannot_have_an_initializer):(n=t.block.locals)&&Ub.forEachKey(t.locals,function(e){var t=n.get(e);t&&0!=(2&t.flags)&&Wb(t.valueDeclaration,Ub.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,e)})),Bm(t.block)),e.finallyBlock&&Bm(e.finallyBlock)}(e);case 238:return Lm(e);case 187:return Mm(e);case 241:return function(e){e.name||Ub.hasModifier(e,512)||Hb(e,Ub.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),ty(e),Ub.forEach(e.members,yy),_m(e)}(e);case 242:return oy(e);case 243:return function(e){yb(e),Qm(e.name,Ub.Diagnostics.Type_alias_name_cannot_be_0),$m(e.typeParameters),yy(e.type),_m(e)}(e);case 244:return function(e){var t,n,r;V&&(yb(e),Qm(e.name,Ub.Diagnostics.Enum_name_cannot_be_0),Dm(e,e.name),km(e,e.name),em(e),sy(e),t=Gr(e),e===Ub.getDeclarationOfKind(t,e.kind)&&(1<t.declarations.length&&(n=Ub.isEnumConst(e),Ub.forEach(t.declarations,function(e){Ub.isEnumDeclaration(e)&&Ub.isEnumConst(e)!==n&&Yn(Ub.getNameOfDeclaration(e),Ub.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})),r=!1,Ub.forEach(t.declarations,function(e){if(244!==e.kind)return!1;if(!e.members.length)return!1;var t=e.members[0];t.initializer||(r?Yn(t.name,Ub.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):r=!0)})))}(e);case 245:return uy(e);case 250:return function(e){var t;_y(e,Ub.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)||(!yb(e)&&Ub.hasModifiers(e)&&Hb(e,Ub.Diagnostics.An_import_declaration_cannot_have_modifiers),!dy(e)||(t=e.importClause)&&(t.name&&fy(t),t.namedBindings&&(252===t.namedBindings.kind?fy(t.namedBindings):Dr(e,e.moduleSpecifier)&&Ub.forEach(t.namedBindings.elements,fy))))}(e);case 249:return function(e){var t,n;_y(e,Ub.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)||(yb(e),(Ub.isInternalModuleImportEqualsDeclaration(e)||dy(e))&&(fy(e),Ub.hasModifier(e,1)&&Tr(e),260!==e.moduleReference.kind?(t=Ir(Gr(e)))!==_e&&(67220415&t.flags&&(1920&Sr(n=ly(e.moduleReference),67221439).flags||Yn(n,Ub.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ub.declarationNameToString(n))),67897832&t.flags&&Qm(e.name,Ub.Diagnostics.Import_name_cannot_be_0)):C>=Ub.ModuleKind.ES2015&&!(4194304&e.flags)&&Wb(e,Ub.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)))}(e);case 256:return function(e){var t,n,r;_y(e,Ub.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)||(!yb(e)&&Ub.hasModifiers(e)&&Hb(e,Ub.Diagnostics.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&!dy(e)||(e.exportClause?(Ub.forEach(e.exportClause.elements,hy),n=!(t=246===e.parent.kind&&Ub.isAmbientModule(e.parent.parent))&&246===e.parent.kind&&!e.moduleSpecifier&&4194304&e.flags,285===e.parent.kind||t||n||Yn(e,Ub.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)):((r=Dr(e,e.moduleSpecifier))&&Lr(r)&&Yn(e.moduleSpecifier,Ub.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,mi(r)),C!==Ub.ModuleKind.System&&C!==Ub.ModuleKind.ES2015&&C!==Ub.ModuleKind.ESNext&&mb(e,32768))))}(e);case 255:return function(e){var t;_y(e,Ub.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)||(245!==(t=285===e.parent.kind?e.parent:e.parent.parent).kind||Ub.isAmbientModule(t)?(!yb(e)&&Ub.hasModifiers(e)&&Hb(e,Ub.Diagnostics.An_export_assignment_cannot_have_modifiers),73===e.expression.kind?(Tr(e),Ub.getEmitDeclarations(z)&&Di(e.expression,!0)):vg(e.expression),gy(t),4194304&e.flags&&!Ub.isEntityNameExpression(e.expression)&&Wb(e.expression,Ub.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!e.isExportEquals||4194304&e.flags||(C>=Ub.ModuleKind.ES2015?Wb(e,Ub.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):C===Ub.ModuleKind.System&&Wb(e,Ub.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?Yn(e,Ub.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Yn(e,Ub.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module))}(e);case 221:case 237:return Gb(e);case 259:(function(e){dm(e)})(e)}}(f=e),f=t)}function by(e){Ub.isInJSFile(e)||Wb(e,Ub.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function vy(e){var t,n=rr(Ub.getSourceFileOfNode(e));1&n.flags||(n.deferredNodes=n.deferredNodes||Ub.createMap(),t=""+ev(e),n.deferredNodes.set(t,e))}function Ey(e){var t,n,r=f;switch((f=e).kind){case 197:case 198:case 157:case 156:!function(e){Ub.Debug.assert(157!==e.kind||Ub.isObjectLiteralMethod(e));var t,n=Ub.getFunctionFlags(e),r=$h(e,n);0==(1&n)&&qh(e,r),e.body&&(Ub.getEffectiveReturnTypeNode(e)||bs(ps(e)),219===e.body.kind?yy(e.body):(t=Pg(e.body),r&&hl(2==(3&n)?rm(t,e.body,Ub.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):t,r,e.body,e.body)))}(e);break;case 159:case 160:Gg(e);break;case 210:n=e,Ub.forEach(n.members,yy),_m(n);break;case 262:d_(e);break;case 261:d_((t=e).openingElement),qf(t.closingElement.tagName)?n_(t.closingElement):Pg(t.closingElement.tagName),$f(t)}f=r}function Iy(e){Ub.performance.mark("beforeCheck"),function(e){var t=rr(e);if(!(1&t.flags)){if(Ub.skipTypeChecking(e,z))return;!function(e){!(4194304&e.flags)||function(e){for(var t=0,n=e.statements;t<n.length;t++){var r=n[t];if((Ub.isDeclaration(r)||220===r.kind)&&function(e){if(242===e.kind||243===e.kind||250===e.kind||249===e.kind||256===e.kind||255===e.kind||248===e.kind||Ub.hasModifier(e,515))return!1;return Hb(e,Ub.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}(r))return}}(e)}(e),Ub.clear(hn),Ub.clear(gn),Ub.forEach(e.statements,yy),yy(e.endOfFileToken),function(e){var t=rr(e);t.deferredNodes&&t.deferredNodes.forEach(Ey)}(e),Ub.isExternalOrCommonJsModule(e)&&_m(e),e.isDeclarationFile||!z.noUnusedLocals&&!z.noUnusedParameters||hm(Cy(e),function(e,t,n){!Ub.containsParseError(e)&&Ty(t)&&yn.add(n)}),Ub.isExternalOrCommonJsModule(e)&&gy(e),hn.length&&(Ub.forEach(hn,Sm),Ub.clear(hn)),gn.length&&(Ub.forEach(gn,Nm),Ub.clear(gn)),t.flags|=1}}(e),Ub.performance.mark("afterCheck"),Ub.performance.measure("Check","beforeCheck","afterCheck")}function Ty(e){switch(e){case 0:return z.noUnusedLocals;case 1:return z.noUnusedParameters;default:return Ub.Debug.assertNever(e)}}function Cy(e){return Yt.get(e.path)||Ub.emptyArray}function By(e,t){try{return E=t,function(e){if(xy(),e){var t=yn.getGlobalDiagnostics(),n=t.length;Iy(e);var r=yn.getDiagnostics(e.fileName),i=yn.getGlobalDiagnostics();if(i===t)return 0===n&&0<i.length?Ub.concatenate(i,r):r;var a=Ub.relativeComplement(t,i,Ub.compareDiagnostics);return Ub.concatenate(a,r)}return Ub.forEach(v.getSourceFiles(),Iy),yn.getDiagnostics()}(e)}finally{E=undefined}}function xy(){if(!V)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Sy(e){switch(e.kind){case 151:case 241:case 242:case 243:case 244:return!0;default:return!1}}function Ny(e){for(;149===e.parent.kind;)e=e.parent;return 165===e.parent.kind}function Dy(e,t){for(var n;(e=Ub.getContainingClass(e))&&!(n=t(e)););return n}function ky(e,t){return Dy(e,function(e){return e===t})}function Ay(e){return function(e){for(;149===e.parent.kind;)e=e.parent;return 249===e.parent.kind?e.parent.moduleReference===e?e.parent:undefined:255===e.parent.kind&&e.parent.expression===e?e.parent:undefined}(e)!==undefined}function wy(e){if(Ub.isDeclarationName(e))return Gr(e.parent);if(Ub.isInJSFile(e)&&190===e.parent.kind&&e.parent===e.parent.parent.left){var t=function(e){switch(Ub.getAssignmentDeclarationKind(e.parent.parent)){case 1:case 3:return Gr(e.parent);case 4:case 2:case 5:return Gr(e.parent.parent)}}(e);if(t)return t}if(255===e.parent.kind&&Ub.isEntityNameExpression(e)){var n=Sr(e,70107135,!0);if(n&&n!==_e)return n}else if(!Ub.isPropertyAccessExpression(e)&&Ay(e)){var r=Ub.getAncestor(e,249);return Ub.Debug.assert(r!==undefined),Br(e,!0)}if(!Ub.isPropertyAccessExpression(e)){var i=function(e){for(var t=e.parent;Ub.isQualifiedName(t);)t=(e=t).parent;return t&&184===t.kind&&t.qualifier===e?t:undefined}(e);if(i){Du(i);var a=rr(e).resolvedSymbol;return a===_e?undefined:a}}for(;Ub.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;if(function(e){for(;190===e.parent.kind;)e=e.parent;return 212===e.parent.kind}(e)){var o=0;212===e.parent.kind?(o=67897832,Ub.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)&&(o|=67220415)):o=1920,o|=2097152;var s=Ub.isEntityNameExpression(e)?Sr(e,o):undefined;if(s)return s}if(305===e.parent.kind)return Ub.getParameterSymbolFromJSDoc(e.parent);if(151===e.parent.kind&&309===e.parent.parent.kind){Ub.Debug.assert(!Ub.isInJSFile(e));var c=Ub.getTypeParameterFromJsDoc(e.parent);return c&&c.symbol}if(Ub.isExpressionNode(e)){if(Ub.nodeIsMissing(e))return undefined;if(73===e.kind){if(Ub.isJSXTagName(e)&&qf(e)){var u=n_(e.parent);return u===_e?undefined:u}return Sr(e,67220415,!1,!0)}if(190===e.kind||149===e.kind){var l=rr(e);return l.resolvedSymbol?l.resolvedSymbol:((190===e.kind?I_:T_)(e),l.resolvedSymbol)}}else if(Ny(e)){return Sr(e,o=165===e.parent.kind?67897832:1920,!1,!0)}return 164===e.parent.kind?Sr(e,1):undefined}function Vy(e){if(285===e.kind)return Ub.isExternalModule(e)?Wr(e.symbol):undefined;var t=e.parent,n=t.parent;if(8388608&e.flags)return undefined;if(rv(e)){var r=Gr(t);return Ub.isImportOrExportSpecifier(e.parent)&&e.parent.propertyName===e?Uf(r):r}if(Ub.isLiteralComputedPropertyDeclarationName(e))return Gr(t.parent);if(73===e.kind){if(Ay(e))return wy(e);if(187===t.kind&&185===n.kind&&e===t.propertyName){var i=Ko(Py(n),e.escapedText);if(i)return i}}switch(e.kind){case 73:case 190:case 149:return wy(e);case 101:var a=Ub.getThisContainer(e,!1);if(Ub.isFunctionLike(a)){var o=ps(a);if(o.thisParameter)return o.thisParameter}if(Ub.isInExpressionContext(e))return Pg(e).symbol;case 179:return Nu(e).symbol;case 99:return Pg(e).symbol;case 125:var s=e.parent;return s&&158===s.kind?s.parent.symbol:undefined;case 10:case 14:if(Ub.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&Ub.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e||(250===e.parent.kind||256===e.parent.kind)&&e.parent.moduleSpecifier===e||Ub.isInJSFile(e)&&Ub.isRequireCall(e.parent,!1)||Ub.isImportCall(e.parent)||Ub.isLiteralTypeNode(e.parent)&&Ub.isLiteralImportTypeNode(e.parent.parent)&&e.parent.parent.argument===e.parent)return Dr(e,e);if(Ub.isCallExpression(t)&&Ub.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===e)return Gr(t);case 8:var c=Ub.isElementAccessExpression(t)?t.argumentExpression===e?wg(t.expression):undefined:Ub.isLiteralTypeNode(t)&&Ub.isIndexedAccessTypeNode(n)?Du(n.objectType):undefined;return c&&Ko(c,Ub.escapeLeadingUnderscores(e.text));case 81:case 91:case 37:case 77:return Gr(e.parent);case 184:return Ub.isLiteralImportTypeNode(e)?Vy(e.argument.literal):undefined;case 86:return Ub.isExportAssignment(e.parent)?Ub.Debug.assertDefined(e.parent.symbol):undefined;default:return undefined}}function Py(e){if(8388608&e.flags)return be;var t,n,r=Ub.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(e),i=r&&Na(Gr(r["class"]));if(Ub.isPartOfTypeNode(e)){var a=Du(e);return i?$a(a,i.thisType):a}if(Ub.isExpressionNode(e))return My(e);if(i&&!r.isImplements){var o=Ub.firstOrUndefined(xa(i));return o?$a(o,i.thisType):be}if(Sy(e))return La(n=Gr(e));if(73===(t=e).kind&&Sy(t.parent)&&t.parent.name===t)return(n=Vy(e))?La(n):be;if(Ub.isDeclaration(e))return pa(n=Gr(e));if(rv(e))return(n=Vy(e))?pa(n):be;if(Ub.isBindingPattern(e))return Ui(e.parent,!0)||be;if(Ay(e)&&(n=Vy(e))){var s=La(n);return s!==be?s:pa(n)}return be}function Ly(e){if(Ub.Debug.assert(189===e.kind||188===e.kind),228===e.parent.kind)return _g(e,jm(e.parent.expression,e.parent.awaitModifier)||be);if(205===e.parent.kind)return _g(e,wg(e.parent.right)||be);if(276===e.parent.kind){var t=Ub.cast(e.parent.parent,Ub.isObjectLiteralExpression);return pg(t,Ly(t)||be,Ub.indexOfNode(t.properties,e.parent))}var n=Ub.cast(e.parent,Ub.isArrayLiteralExpression),r=Ly(n)||be,i=Wm(r,e.parent,!1,!1)||be;return fg(n,r,n.elements.indexOf(e),i)}function My(e){return Ub.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),Cu(wg(e))}function Fy(e){e=Yo(e);var t=Ub.createSymbolTable(ko(e)),n=Xo(e,0).length?it:Xo(e,1).length?at:undefined;return n&&Ub.forEach(ko(n),function(e){t.has(e.escapedName)||t.set(e.escapedName,e)}),ni(t)}function Oy(e){return Ub.typeHasCallOrConstructSignatures(e,ie)}function Ry(t){if(6&Ub.getCheckFlags(t))return Ub.mapDefined(nr(t).containingType.types,function(e){return Ko(e,t.escapedName)});if(33554432&t.flags){var e=t.leftSpread,n=t.rightSpread,r=t.syntheticOrigin;return e?[e,n]:r?[r]:Ub.singleElementArray(function(e){var t,n=e;for(;n=nr(n).target;)t=n;return t}(t))}return undefined}function Hy(e){if(!Ub.isGeneratedIdentifier(e)){var t=Ub.getParseTreeNode(e,Ub.isIdentifier);if(t)return!(190===t.parent.kind&&t.parent.name===t)&&pb(t)===ne}return!1}function jy(e){var t=Dr(e.parent,e);if(!t||Ub.isShorthandAmbientModuleSymbol(t))return!0;var n=Lr(t),r=nr(t=Vr(t));return r.exportsSomeValue===undefined&&(r.exportsSomeValue=n?!!(67220415&t.flags):Ub.forEachEntry(Rr(t),function(e){return(e=Er(e))&&!!(67220415&e.flags)})),r.exportsSomeValue}function Wy(e,t){var n,r=Ub.getParseTreeNode(e,Ub.isIdentifier);if(r){var i=pb(r,(n=r,Ub.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name));if(i){if(1048576&i.flags){var a=Wr(i.exportSymbol);if(!t&&944&a.flags&&!(3&a.flags))return undefined;i=a}var o=Yr(i);if(o){if(512&o.flags&&285===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==Ub.getSourceFileOfNode(r)?undefined:s}return Ub.findAncestor(r.parent,function(e){return Ub.isModuleOrEnumDeclaration(e)&&Gr(e)===o})}}}}function Gy(e){var t=Ub.getParseTreeNode(e,Ub.isIdentifier);if(t){var n=pb(t);if(vr(n,67220415))return fr(n)}return undefined}function Yy(e){if(418&e.flags&&!Ub.isSourceFile(e.valueDeclaration)){var t,n,r,i,a,o=nr(e);return o.isDeclarationWithCollidingName===undefined&&(t=Ub.getEnclosingBlockScopeContainer(e.valueDeclaration),(Ub.isStatementWithLocals(t)||(s=e,Ub.isBindingElement(s.valueDeclaration)&&275===Ub.walkUpBindingElementsAndPatterns(s.valueDeclaration).parent.kind))&&(n=rr(e.valueDeclaration),sr(t.parent,e.escapedName,67220415,undefined,undefined,!1)?o.isDeclarationWithCollidingName=!0:262144&n.flags?(r=524288&n.flags,i=Ub.isIterationStatement(t,!1),a=219===t.kind&&Ub.isIterationStatement(t.parent,!1),o.isDeclarationWithCollidingName=!(Ub.isBlockScopedContainerTopLevel(t)||r&&(i||a))):o.isDeclarationWithCollidingName=!1)),o.isDeclarationWithCollidingName}var s;return!1}function Jy(e){if(!Ub.isGeneratedIdentifier(e)){var t=Ub.getParseTreeNode(e,Ub.isIdentifier);if(t){var n=pb(t);if(n&&Yy(n))return n.valueDeclaration}}return undefined}function zy(e){var t=Ub.getParseTreeNode(e,Ub.isDeclaration);if(t){var n=Gr(t);if(n)return Yy(n)}return!1}function Uy(e){switch(e.kind){case 249:case 251:case 252:case 254:case 258:return Zy(Gr(e)||_e);case 256:var t=e.exportClause;return!!t&&Ub.some(t.elements,Uy);case 255:return!e.expression||73!==e.expression.kind||Zy(Gr(e)||_e)}return!1}function Ky(e){var t=Ub.getParseTreeNode(e,Ub.isImportEqualsDeclaration);return!(t===undefined||285!==t.parent.kind||!Ub.isInternalModuleImportEqualsDeclaration(t))&&(Zy(Gr(t))&&t.moduleReference&&!Ub.nodeIsMissing(t.moduleReference))}function Zy(e){var t=Ir(e);return t===_e||!!(67220415&t.flags)&&(z.preserveConstEnums||!Xy(t))}function Xy(e){return dg(e)||e.constEnumOnlyModule}function qy(e){if(Ub.nodeIsPresent(e.body)){if(Ub.isGetAccessor(e)||Ub.isSetAccessor(e))return!1;var t=hs(Gr(e));return 1<t.length||1===t.length&&t[0].declaration!==e}return!1}function Qy(e){return!(!U||os(e)||Ub.isJSDocParameterTag(e)||!e.initializer||Ub.hasModifier(e,92))}function $y(e){return U&&os(e)&&!e.initializer&&Ub.hasModifier(e,92)}function eb(e){var t=Ub.getParseTreeNode(e,Ub.isFunctionDeclaration);if(!t)return!1;var n=Gr(t);return!!(n&&16&n.flags)&&!!Ub.forEachEntry(Or(n),function(e){return 67220415&e.flags&&Ub.isPropertyAccessExpression(e.valueDeclaration)})}function tb(e){var t=Ub.getParseTreeNode(e,Ub.isFunctionDeclaration);if(!t)return Ub.emptyArray;var n=Gr(t);return n&&ko(pa(n))||Ub.emptyArray}function nb(e){return rr(e).flags||0}function rb(e){return sy(e.parent),rr(e).enumMemberValue}function ib(e){switch(e.kind){case 279:case 190:case 191:return!0}return!1}function ab(e){if(279===e.kind)return rb(e);var t=rr(e).resolvedSymbol;if(t&&8&t.flags){var n=t.valueDeclaration;if(Ub.isEnumConst(n.parent))return rb(n)}return undefined}function ob(e){return 524288&e.flags&&0<Xo(e,0).length}function sb(e,t){var n=Ub.getParseTreeNode(e,Ub.isEntityName);if(!n)return Ub.TypeReferenceSerializationKind.Unknown;if(t&&!(t=Ub.getParseTreeNode(t)))return Ub.TypeReferenceSerializationKind.Unknown;var r=Sr(n,67220415,!0,!1,t),i=Sr(n,67897832,!0,!1,t);if(r&&r===i){var a=lc(!1);if(a&&r===a)return Ub.TypeReferenceSerializationKind.Promise;var o=pa(r);if(o&&Ea(o))return Ub.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return Ub.TypeReferenceSerializationKind.Unknown;var s=La(i);return s===be?Ub.TypeReferenceSerializationKind.Unknown:3&s.flags?Ub.TypeReferenceSerializationKind.ObjectType:cg(s,245760)?Ub.TypeReferenceSerializationKind.VoidNullableOrNeverType:cg(s,528)?Ub.TypeReferenceSerializationKind.BooleanType:cg(s,296)?Ub.TypeReferenceSerializationKind.NumberLikeType:cg(s,2112)?Ub.TypeReferenceSerializationKind.BigIntLikeType:cg(s,132)?Ub.TypeReferenceSerializationKind.StringLikeType:ud(s)?Ub.TypeReferenceSerializationKind.ArrayLikeType:cg(s,12288)?Ub.TypeReferenceSerializationKind.ESSymbolType:ob(s)?Ub.TypeReferenceSerializationKind.TypeWithCallSignature:Zl(s)?Ub.TypeReferenceSerializationKind.ArrayLikeType:Ub.TypeReferenceSerializationKind.ObjectType}function cb(e,t,n,r,i){var a=Ub.getParseTreeNode(e,Ub.isVariableLikeOrAccessor);if(!a)return Ub.createToken(121);var o=Gr(a),s=!o||133120&o.flags?be:od(pa(o));return 8192&s.flags&&s.symbol===o&&(n|=1048576),i&&(s=yd(s)),b.typeToTypeNode(s,t,1024|n,r)}function ub(e,t,n,r){var i=Ub.getParseTreeNode(e,Ub.isFunctionLike);if(!i)return Ub.createToken(121);var a=ps(i);return b.typeToTypeNode(bs(a),t,1024|n,r)}function lb(e,t,n,r){var i=Ub.getParseTreeNode(e,Ub.isExpression);if(!i)return Ub.createToken(121);var a=xd(My(i));return b.typeToTypeNode(a,t,1024|n,r)}function db(e){return Q.has(Ub.escapeLeadingUnderscores(e))}function pb(e,t){var n=rr(e).resolvedSymbol;if(n)return n;var r,i=e;return t&&(r=e.parent,Ub.isDeclaration(r)&&e===r.name&&(i=Vi(r))),sr(i,e.escapedText,70366143,undefined,undefined,!0)}function fb(e){if(!Ub.isGeneratedIdentifier(e)){var t=Ub.getParseTreeNode(e,Ub.isIdentifier);if(t){var n=pb(t);if(n)return Ur(n).valueDeclaration}}return undefined}function _b(e){return!!(Ub.isDeclarationReadonly(e)||Ub.isVariableDeclaration(e)&&Ub.isVarConst(e))&&Bu(pa(Gr(e)))}function hb(e,t){var n,r,i,a=pa(Gr(e));return r=e,i=t,(1024&(n=a).flags?b.symbolToExpression(n.symbol,67220415,r,undefined,i):n===ke?Ub.createTrue():n===Ne&&Ub.createFalse())||Ub.createLiteral(n.value)}function gb(e){var t=245===e.kind?Ub.tryCast(e.name,Ub.isStringLiteral):Ub.getExternalModuleName(e),n=kr(t,t,undefined);return n?Ub.getDeclarationOfKind(n,285):undefined}function mb(e,t){if((s&t)!==t&&z.importHelpers){var n=Ub.getSourceFileOfNode(e);if(Ub.isEffectiveExternalModule(n,z)&&!(4194304&e.flags)){var r=function(e,t){c=c||(Ar(e,Ub.externalHelpersModuleNameText,Ub.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||_e);return c}(n,e);if(r!==_e)for(var i,a=t&~s,o=1;o<=65536;o<<=1){a&o&&(i=function(e){switch(e){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:return Ub.Debug.fail("Unrecognized helper")}}(o),ar(r.exports,Ub.escapeLeadingUnderscores(i),67220415)||Yn(e,Ub.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,Ub.externalHelpersModuleNameText,i))}s|=t}}}function yb(e){return function(e){if(!e.decorators)return!1;{if(!Ub.nodeCanBeDecorated(e,e.parent,e.parent.parent))return 157!==e.kind||Ub.nodeIsPresent(e.body)?Hb(e,Ub.Diagnostics.Decorators_are_not_valid_here):Hb(e,Ub.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(159===e.kind||160===e.kind){var t=Ub.getAllAccessorDeclarations(e.parent.members,e);if(t.firstAccessor.decorators&&e===t.secondAccessor)return Hb(e,Ub.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}return!1}(e)||function(e){var t,n,r,i,a=function(e){return!!e.modifiers&&(function(e){switch(e.kind){case 159:case 160:case 158:case 155:case 154:case 157:case 156:case 163:case 245:case 250:case 249:case 256:case 255:case 197:case 198:case 152:return!1;default:if(246===e.parent.kind||285===e.parent.kind)return!1;switch(e.kind){case 240:return bb(e,122);case 241:return bb(e,119);case 242:case 220:case 243:return!0;case 244:return bb(e,78);default:return Ub.Debug.fail(),!1}}}(e)?Hb(e,Ub.Diagnostics.Modifiers_cannot_appear_here):undefined)}(e);if(a!==undefined)return a;for(var o=0,s=0,c=e.modifiers;s<c.length;s++){var u=c[s];if(134!==u.kind){if(154===e.kind||156===e.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_type_member,Ub.tokenToString(u.kind));if(163===e.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,Ub.tokenToString(u.kind))}switch(u.kind){case 78:if(244!==e.kind)return Wb(e,Ub.Diagnostics.A_class_member_cannot_have_the_0_keyword,Ub.tokenToString(78));break;case 116:case 115:case 114:var l=Ti(Ub.modifierToFlag(u.kind));if(28&o)return Wb(u,Ub.Diagnostics.Accessibility_modifier_already_seen);if(32&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,l,"static");if(64&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,l,"readonly");if(256&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,l,"async");if(246===e.parent.kind||285===e.parent.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,l);if(128&o)return 114===u.kind?Wb(u,Ub.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,l,"abstract"):Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,l,"abstract");o|=Ub.modifierToFlag(u.kind);break;case 117:if(32&o)return Wb(u,Ub.Diagnostics._0_modifier_already_seen,"static");if(64&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(246===e.parent.kind||285===e.parent.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(152===e.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&o)return Wb(u,Ub.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");o|=32,t=u;break;case 134:if(64&o)return Wb(u,Ub.Diagnostics._0_modifier_already_seen,"readonly");if(155!==e.kind&&154!==e.kind&&163!==e.kind&&152!==e.kind)return Wb(u,Ub.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);o|=64,i=u;break;case 86:if(1&o)return Wb(u,Ub.Diagnostics._0_modifier_already_seen,"export");if(2&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&o)return Wb(u,Ub.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(241===e.parent.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(152===e.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");o|=1;break;case 81:var d=285===e.parent.kind?e.parent:e.parent.parent;if(245===d.kind&&!Ub.isAmbientModule(d))return Wb(u,Ub.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);o|=512;break;case 126:if(2&o)return Wb(u,Ub.Diagnostics._0_modifier_already_seen,"declare");if(256&o)return Wb(u,Ub.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(241===e.parent.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(152===e.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(4194304&e.parent.flags&&246===e.parent.kind)return Wb(u,Ub.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);o|=2,n=u;break;case 119:if(128&o)return Wb(u,Ub.Diagnostics._0_modifier_already_seen,"abstract");if(241!==e.kind){if(157!==e.kind&&155!==e.kind&&159!==e.kind&&160!==e.kind)return Wb(u,Ub.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(241!==e.parent.kind||!Ub.hasModifier(e.parent,128))return Wb(u,Ub.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&o)return Wb(u,Ub.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&o)return Wb(u,Ub.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}o|=128;break;case 122:if(256&o)return Wb(u,Ub.Diagnostics._0_modifier_already_seen,"async");if(2&o||4194304&e.parent.flags)return Wb(u,Ub.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(152===e.kind)return Wb(u,Ub.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");o|=256,r=u}}{if(158===e.kind)return 32&o?Wb(t,Ub.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&o?Wb(t,Ub.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&o?Wb(r,Ub.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&o)&&Wb(i,Ub.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((250===e.kind||249===e.kind)&&2&o)return Wb(n,Ub.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(152===e.kind&&92&o&&Ub.isBindingPattern(e.name))return Wb(e,Ub.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(152===e.kind&&92&o&&e.dotDotDotToken)return Wb(e,Ub.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter)}if(256&o)return function(e,t){switch(e.kind){case 157:case 240:case 197:case 198:return!1}return Wb(t,Ub.Diagnostics._0_modifier_cannot_be_used_here,"async")}(e,r);return!1}(e)}function bb(e,t){return 1<e.modifiers.length||e.modifiers[0].kind!==t}function vb(e,t){return void 0===t&&(t=Ub.Diagnostics.Trailing_comma_not_allowed),!(!e||!e.hasTrailingComma)&&jb(e[0],e.end-",".length,",".length,t)}function Eb(e,t){if(e&&0===e.length){var n=e.pos-"<".length;return jb(t,n,Ub.skipTrivia(t.text,e.end)+">".length-n,Ub.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function Ib(e){if(3<=k){var t=e.body&&Ub.isBlock(e.body)&&Ub.findUseStrictPrologue(e.body.statements);if(t){var n=(i=e.parameters,Ub.filter(i,function(e){return!!e.initializer||Ub.isBindingPattern(e.name)||Ub.isRestParameter(e)}));if(Ub.length(n)){Ub.forEach(n,function(e){Ub.addRelatedInfo(Yn(e,Ub.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),Ub.createDiagnosticForNode(t,Ub.Diagnostics.use_strict_directive_used_here))});var r=n.map(function(e,t){return 0===t?Ub.createDiagnosticForNode(e,Ub.Diagnostics.Non_simple_parameter_declared_here):Ub.createDiagnosticForNode(e,Ub.Diagnostics.and_here)});return Ub.addRelatedInfo.apply(void 0,[Yn(t,Ub.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)].concat(r)),!0}}}var i;return!1}function Tb(e){var t=Ub.getSourceFileOfNode(e);return yb(e)||Eb(e.typeParameters,t)||function(e){for(var t=!1,n=e.length,r=0;r<n;r++){var i=e[r];if(i.dotDotDotToken){if(r!==n-1)return Wb(i.dotDotDotToken,Ub.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(4194304&i.flags||vb(e,Ub.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return Wb(i.questionToken,Ub.Diagnostics.A_rest_parameter_cannot_be_optional);if(i.initializer)return Wb(i.name,Ub.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(i.questionToken){if(t=!0,i.initializer)return Wb(i.name,Ub.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return Wb(i.name,Ub.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!Ub.isArrowFunction(e))return!1;var n=e.equalsGreaterThanToken,r=Ub.getLineAndCharacterOfPosition(t,n.pos).line,i=Ub.getLineAndCharacterOfPosition(t,n.end).line;return r!==i&&Wb(n,Ub.Diagnostics.Line_terminator_not_permitted_before_arrow)}(e,t)||Ub.isFunctionLikeDeclaration(e)&&Ib(e)}function Cb(e,t){return vb(t)||function(e,t){if(t&&0===t.length){var n=Ub.getSourceFileOfNode(e),r=t.pos-"<".length;return jb(n,r,Ub.skipTrivia(n.text,t.end)+">".length-r,Ub.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function Bb(e){return function(e){if(e)for(var t=0,n=e;t<n.length;t++){var r=n[t];if(211===r.kind)return jb(r,r.pos,0,Ub.Diagnostics.Argument_expression_expected)}return}(e)}function xb(e){var t=e.types;if(vb(t))return 1;if(t&&0===t.length){var n=Ub.tokenToString(e.token);return jb(e,t.pos,0,Ub.Diagnostics._0_list_cannot_be_empty,n)}return Ub.some(t,Sb)}function Sb(e){return Cb(e,e.typeArguments)}function Nb(e){return 150===e.kind&&(205===e.expression.kind&&27===e.expression.operatorToken.kind&&Wb(e.expression,Ub.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name))}function Db(e){if(e.asteriskToken){if(Ub.Debug.assert(240===e.kind||197===e.kind||157===e.kind),4194304&e.flags)return Wb(e.asteriskToken,Ub.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return Wb(e.asteriskToken,Ub.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function kb(e,t){return e&&Wb(e,t)}function Ab(e,t){return e&&Wb(e,t)}function wb(e){if(Gb(e))return 1;if(228===e.kind&&e.awaitModifier&&0==(16384&e.flags)){if(Rb(Ub.getSourceFileOfNode(e)))return;var t,n=Ub.createDiagnosticForNode(e.awaitModifier,Ub.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),r=Ub.getContainingFunction(e);return r&&158!==r.kind&&(Ub.Debug.assert(0==(2&Ub.getFunctionFlags(r)),"Enclosing function should never be an async function."),t=Ub.createDiagnosticForNode(r,Ub.Diagnostics.Did_you_mean_to_mark_this_function_as_async),Ub.addRelatedInfo(n,t)),yn.add(n),1}if(239===e.initializer.kind){var i=e.initializer;if(!Ob(i)){var a=i.declarations;if(!a.length)return;if(1<a.length){n=227===e.kind?Ub.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Ub.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Hb(i.declarations[1],n)}var o=a[0];if(o.initializer){var n=227===e.kind?Ub.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Ub.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Wb(o.name,n)}if(o.type)return Wb(o,n=227===e.kind?Ub.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Ub.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}function Vb(e){if(e.parameters.length===(159===e.kind?1:2))return Ub.getThisParameter(e)}function Pb(e,t){if(n=e,Ub.isDynamicName(n)&&!Ja(n))return Wb(e,t);var n}function Lb(e){if(Tb(e))return 1;if(157===e.kind){if(189===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||122!==Ub.first(e.modifiers).kind))return Hb(e,Ub.Diagnostics.Modifiers_cannot_appear_here);if(kb(e.questionToken,Ub.Diagnostics.An_object_member_cannot_be_declared_optional))return 1;if(Ab(e.exclamationToken,Ub.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return 1;if(e.body===undefined)return jb(e,e.end-1,";".length,Ub.Diagnostics._0_expected,"{")}else if(Ub.isClassLike(e.parent)&&Ub.isStringLiteral(e.name)&&"constructor"===e.name.text&&(!z.target||z.target<1))return Wb(e.name,Ub.Diagnostics.Quoted_constructors_have_previously_been_interpreted_as_methods_which_is_incorrect_In_TypeScript_3_6_they_will_be_correctly_parsed_as_constructors_In_the_meantime_consider_using_constructor_to_write_a_constructor_or_constructor_to_write_a_method);if(Db(e))return 1}if(Ub.isClassLike(e.parent)){if(4194304&e.flags)return Pb(e.name,Ub.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(157===e.kind&&!e.body)return Pb(e.name,Ub.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(242===e.parent.kind)return Pb(e.name,Ub.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(169===e.parent.kind)return Pb(e.name,Ub.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Mb(e){return 10===e.kind||8===e.kind||203===e.kind&&39===e.operator&&8===e.operand.kind}function Fb(e){var t,n,r=e.initializer;if(r){var i=!(Mb(r)||(n=r,(Ub.isPropertyAccessExpression(n)||Ub.isElementAccessExpression(n)&&Mb(n.argumentExpression))&&Ub.isEntityNameExpression(n.expression)&&1024&vg(n).flags)||103===r.kind||88===r.kind||(9===(t=r).kind||203===t.kind&&39===t.operator&&9===t.operand.kind)),a=Ub.isDeclarationReadonly(e)||Ub.isVariableDeclaration(e)&&Ub.isVarConst(e);if(!a||e.type)return Wb(r,Ub.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return Wb(r,Ub.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return Wb(r,Ub.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function Ob(e){var t=e.declarations;return vb(e.declarations)||!e.declarations.length&&jb(e,t.pos,t.end-t.pos,Ub.Diagnostics.Variable_declaration_list_cannot_be_empty)}function Rb(e){return 0<e.parseDiagnostics.length}function Hb(e,t,n,r,i){var a=Ub.getSourceFileOfNode(e);if(Rb(a))return!1;var o=Ub.getSpanOfTokenAtPosition(a,e.pos);return yn.add(Ub.createFileDiagnostic(a,o.start,o.length,t,n,r,i)),!0}function jb(e,t,n,r,i,a,o){var s=Ub.getSourceFileOfNode(e);return!Rb(s)&&(yn.add(Ub.createFileDiagnostic(s,t,n,r,i,a,o)),!0)}function Wb(e,t,n,r,i){return!Rb(Ub.getSourceFileOfNode(e))&&(yn.add(Ub.createDiagnosticForNode(e,t,n,r,i)),!0)}function Gb(e){if(4194304&e.flags){if(Ub.isAccessor(e.parent))return rr(e).hasReportedStatementInAmbientContext=!0;if(!rr(e).hasReportedStatementInAmbientContext&&Ub.isFunctionLike(e.parent))return rr(e).hasReportedStatementInAmbientContext=Hb(e,Ub.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(219===e.parent.kind||246===e.parent.kind||285===e.parent.kind){var t=rr(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Hb(e,Ub.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function Yb(e){if(32&e.numericLiteralFlags){var t=void 0;if(1<=k?t=Ub.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Ub.isChildOfNodeWithKind(e,183)?t=Ub.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Ub.isChildOfNodeWithKind(e,279)&&(t=Ub.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var n=Ub.isPrefixUnaryExpression(e.parent)&&39===e.parent.operator,r=(n?"-":"")+"0o"+e.text;return Wb(n?e.parent:e,t,r)}}}},(m=Kb=Kb||{}).JSX="JSX",m.IntrinsicElements="IntrinsicElements",m.ElementClass="ElementClass",m.ElementAttributesPropertyNameContainer="ElementAttributesProperty",m.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",m.Element="Element",m.IntrinsicAttributes="IntrinsicAttributes",m.IntrinsicClassAttributes="IntrinsicClassAttributes",m.LibraryManagedAttributes="LibraryManagedAttributes",function(m){function l(e){var t=m.createNode(e,-1,-1);return t.flags|=8,t}function d(e,t){return e!==t&&(Kt(e,t),Wt(e,t),m.aggregateTransformFlags(e)),e}function p(e,t){if(e&&e!==m.emptyArray){if(m.isNodeArray(e))return e}else e=[];var n=e;return n.pos=-1,n.end=-1,n.hasTrailingComma=t,n}function n(e){if(e===undefined)return e;var t=l(e.kind);for(var n in t.flags|=e.flags,Kt(t,e),e)!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function i(e,t){if("number"==typeof e)return a(e+"");if("object"===zb(e)&&"base10Value"in e)return o(m.pseudoBigIntToString(e)+"n");if("boolean"==typeof e)return(e?h:g)();if(m.isString(e)){var n=s(e);return t&&(n.singleQuote=!0),n}return r=e,(i=s(m.getTextOfIdentifierOrLiteral(r))).textSourceNode=r,i;var r,i}function a(e,t){void 0===t&&(t=0);var n=l(8);return n.text=e,n.numericLiteralFlags=t,n}function o(e){var t=l(9);return t.text=e,t}function s(e){var t=l(10);return t.text=e,t}function r(e,t){var n=l(73);return n.escapedText=m.escapeLeadingUnderscores(e),n.originalKeywordKind=e?m.stringToToken(e):0,n.autoGenerateFlags=0,n.autoGenerateId=0,t&&(n.typeArguments=p(t)),n}m.updateNode=d,m.createNodeArray=p,m.getSynthesizedClone=n,m.createLiteral=i,m.createNumericLiteral=a,m.createBigIntLiteral=o,m.createStringLiteral=s,m.createRegularExpressionLiteral=function(e){var t=l(13);return t.text=e,t},m.createIdentifier=r,m.updateIdentifier=function(e,t){return e.typeArguments!==t?d(r(m.idText(e),t),e):e};var e,c,u=0;function f(e){var t=r(e);return t.autoGenerateFlags=19,t.autoGenerateId=u,u++,t}function _(e){return l(e)}function h(){return l(103)}function g(){return l(88)}function y(e){return _(e)}function b(e,t){var n=l(149);return n.left=e,n.right=Rt(t),n}function v(e){var t,n=l(150);return n.expression=(t=e,m.isCommaSequence(t)?ce(t):t),n}function E(e,t,n){var r=l(151);return r.name=Rt(e),r.constraint=t,r["default"]=n,r}function I(e,t,n,r,i,a,o){var s=l(152);return s.decorators=Ht(e),s.modifiers=Ht(t),s.dotDotDotToken=n,s.name=Rt(r),s.questionToken=i,s.type=a,s.initializer=o?m.parenthesizeExpressionForList(o):undefined,s}function T(e){var t=l(153);return t.expression=m.parenthesizeForAccess(e),t}function C(e,t,n,r,i){var a=l(154);return a.modifiers=Ht(e),a.name=Rt(t),a.questionToken=n,a.type=r,a.initializer=i,a}function B(e,t,n,r,i,a){var o=l(155);return o.decorators=Ht(e),o.modifiers=Ht(t),o.name=Rt(n),o.questionToken=r!==undefined&&56===r.kind?r:undefined,o.exclamationToken=r!==undefined&&52===r.kind?r:undefined,o.type=i,o.initializer=a,o}function x(e,t,n,r,i){var a=w(156,e,t,n);return a.name=Rt(r),a.questionToken=i,a}function S(e,t,n,r,i,a,o,s,c){var u=l(157);return u.decorators=Ht(e),u.modifiers=Ht(t),u.asteriskToken=n,u.name=Rt(r),u.questionToken=i,u.typeParameters=Ht(a),u.parameters=p(o),u.type=s,u.body=c,u}function N(e,t,n,r){var i=l(158);return i.decorators=Ht(e),i.modifiers=Ht(t),i.typeParameters=undefined,i.parameters=p(n),i.type=undefined,i.body=r,i}function D(e,t,n,r,i,a){var o=l(159);return o.decorators=Ht(e),o.modifiers=Ht(t),o.name=Rt(n),o.typeParameters=undefined,o.parameters=p(r),o.type=i,o.body=a,o}function k(e,t,n,r,i){var a=l(160);return a.decorators=Ht(e),a.modifiers=Ht(t),a.name=Rt(n),a.typeParameters=undefined,a.parameters=p(r),a.body=i,a}function A(e,t,n,r){var i=l(163);return i.decorators=Ht(e),i.modifiers=Ht(t),i.parameters=p(n),i.type=r,i}function w(e,t,n,r,i){var a=l(e);return a.typeParameters=Ht(t),a.parameters=Ht(n),a.type=r,a.typeArguments=Ht(i),a}function t(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?d(w(e.kind,t,n,r),e):e}function V(e,t){var n=l(164);return n.parameterName=Rt(e),n.type=t,n}function P(e,t){var n=l(165);return n.typeName=Rt(e),n.typeArguments=t&&m.parenthesizeTypeParameters(t),n}function L(e){var t=l(168);return t.exprName=e,t}function M(e){var t=l(169);return t.members=p(e),t}function F(e){var t=l(170);return t.elementType=m.parenthesizeArrayTypeMember(e),t}function O(e){var t=l(171);return t.elementTypes=p(e),t}function R(e){var t=l(172);return t.type=m.parenthesizeArrayTypeMember(e),t}function H(e){var t=l(173);return t.type=e,t}function j(e,t){var n=l(e);return n.types=m.parenthesizeElementTypeMembers(t),n}function W(e,t){return e.types!==t?d(j(e.kind,t),e):e}function G(e,t,n,r){var i=l(176);return i.checkType=m.parenthesizeConditionalTypeMember(e),i.extendsType=m.parenthesizeConditionalTypeMember(t),i.trueType=n,i.falseType=r,i}function Y(e){var t=l(177);return t.typeParameter=e,t}function J(e,t,n,r){var i=l(184);return i.argument=e,i.qualifier=t,i.typeArguments=m.parenthesizeTypeParameters(n),i.isTypeOf=r,i}function z(e){var t=l(178);return t.type=e,t}function U(e,t){var n=l(180);return n.operator="number"==typeof e?e:130,n.type=m.parenthesizeElementTypeMember("number"==typeof e?t:e),n}function K(e,t){var n=l(181);return n.objectType=m.parenthesizeElementTypeMember(e),n.indexType=t,n}function Z(e,t,n,r){var i=l(182);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=n,i.type=r,i}function X(e){var t=l(183);return t.literal=e,t}function q(e){var t=l(185);return t.elements=p(e),t}function Q(e){var t=l(186);return t.elements=p(e),t}function $(e,t,n,r){var i=l(187);return i.dotDotDotToken=e,i.propertyName=Rt(t),i.name=Rt(n),i.initializer=r,i}function ee(e,t){var n=l(188);return n.elements=m.parenthesizeListElements(p(e)),t&&(n.multiLine=!0),n}function te(e,t){var n=l(189);return n.properties=p(e),t&&(n.multiLine=!0),n}function ne(e,t){var n=l(190);return n.expression=m.parenthesizeForAccess(e),n.name=Rt(t),Gt(n,131072),n}function re(e,t){var n,r=l(191);return r.expression=m.parenthesizeForAccess(e),r.argumentExpression=(n=t,m.isString(n)||"number"==typeof n?i(n):n),r}function ie(e,t,n){var r=l(192);return r.expression=m.parenthesizeForAccess(e),r.typeArguments=Ht(t),r.arguments=m.parenthesizeListElements(p(n)),r}function ae(e,t,n){var r=l(193);return r.expression=m.parenthesizeForNew(e),r.typeArguments=Ht(t),r.arguments=n?m.parenthesizeListElements(p(n)):undefined,r}function oe(e,t,n){var r=l(194);return r.tag=m.parenthesizeForAccess(e),n?(r.typeArguments=Ht(t),r.template=n):(r.typeArguments=undefined,r.template=t),r}function se(e,t){var n=l(195);return n.type=e,n.expression=m.parenthesizePrefixOperand(t),n}function ce(e){var t=l(196);return t.expression=e,t}function ue(e,t,n,r,i,a,o){var s=l(197);return s.modifiers=Ht(e),s.asteriskToken=t,s.name=Rt(n),s.typeParameters=Ht(r),s.parameters=p(i),s.type=a,s.body=o,s}function le(e,t,n,r,i,a){var o=l(198);return o.modifiers=Ht(e),o.typeParameters=Ht(t),o.parameters=p(n),o.type=r,o.equalsGreaterThanToken=i||_(37),o.body=m.parenthesizeConciseBody(a),o}function de(e){var t=l(199);return t.expression=m.parenthesizePrefixOperand(e),t}function pe(e){var t=l(200);return t.expression=m.parenthesizePrefixOperand(e),t}function fe(e){var t=l(201);return t.expression=m.parenthesizePrefixOperand(e),t}function _e(e){var t=l(202);return t.expression=m.parenthesizePrefixOperand(e),t}function he(e,t){var n=l(203);return n.operator=e,n.operand=m.parenthesizePrefixOperand(t),n}function ge(e,t){var n=l(204);return n.operand=m.parenthesizePostfixOperand(e),n.operator=t,n}function me(e,t,n){var r,i=l(205),a="number"==typeof(r=t)?_(r):r,o=a.kind;return i.left=m.parenthesizeBinaryOperand(o,e,!0,undefined),i.operatorToken=a,i.right=m.parenthesizeBinaryOperand(o,n,!1,i.left),i}function ye(e,t,n,r,i){var a=l(206);return a.condition=m.parenthesizeForConditionalHead(e),a.questionToken=i?t:_(56),a.whenTrue=m.parenthesizeSubexpressionOfConditionalExpression(i?n:t),a.colonToken=i?r:_(57),a.whenFalse=m.parenthesizeSubexpressionOfConditionalExpression(i||n),a}function be(e,t){var n=l(207);return n.head=e,n.templateSpans=p(t),n}function ve(e,t){var n=l(208);return n.asteriskToken=e&&40===e.kind?e:undefined,n.expression=e&&40!==e.kind?e:t,n}function Ee(e){var t=l(209);return t.expression=m.parenthesizeExpressionForList(e),t}function Ie(e,t,n,r,i){var a=l(210);return a.decorators=undefined,a.modifiers=Ht(e),a.name=Rt(t),a.typeParameters=Ht(n),a.heritageClauses=Ht(r),a.members=p(i),a}function Te(e,t){var n=l(212);return n.expression=m.parenthesizeForAccess(t),n.typeArguments=Ht(e),n}function Ce(e,t){var n=l(213);return n.expression=e,n.type=t,n}function Be(e){var t=l(214);return t.expression=m.parenthesizeForAccess(e),t}function xe(e,t){var n=l(215);return n.keywordToken=e,n.name=t,n}function Se(e,t){var n=l(217);return n.expression=e,n.literal=t,n}function Ne(e,t){var n=l(219);return n.statements=p(e),t&&(n.multiLine=t),n}function De(e,t){var n=l(220);return n.decorators=undefined,n.modifiers=Ht(e),n.declarationList=m.isArray(t)?Ue(t):t,n}function ke(e){var t=l(222);return t.expression=m.parenthesizeExpressionForExpressionStatement(e),t}function Ae(e,t){return e.expression!==t?d(ke(t),e):e}function we(e,t,n){var r=l(223);return r.expression=e,r.thenStatement=t,r.elseStatement=n,r}function Ve(e,t){var n=l(224);return n.statement=e,n.expression=t,n}function Pe(e,t){var n=l(225);return n.expression=e,n.statement=t,n}function Le(e,t,n,r){var i=l(226);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=r,i}function Me(e,t,n){var r=l(227);return r.initializer=e,r.expression=t,r.statement=n,r}function Fe(e,t,n,r){var i=l(228);return i.awaitModifier=e,i.initializer=t,i.expression=n,i.statement=r,i}function Oe(e){var t=l(229);return t.label=Rt(e),t}function Re(e){var t=l(230);return t.label=Rt(e),t}function He(e){var t=l(231);return t.expression=e,t}function je(e,t){var n=l(232);return n.expression=e,n.statement=t,n}function We(e,t){var n=l(233);return n.expression=m.parenthesizeExpressionForList(e),n.caseBlock=t,n}function Ge(e,t){var n=l(234);return n.label=Rt(e),n.statement=t,n}function Ye(e){var t=l(235);return t.expression=e,t}function Je(e,t,n){var r=l(236);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r}function ze(e,t,n){var r=l(238);return r.name=Rt(e),r.type=t,r.initializer=n!==undefined?m.parenthesizeExpressionForList(n):undefined,r}function Ue(e,t){void 0===t&&(t=0);var n=l(239);return n.flags|=3&t,n.declarations=p(e),n}function Ke(e,t,n,r,i,a,o,s){var c=l(240);return c.decorators=Ht(e),c.modifiers=Ht(t),c.asteriskToken=n,c.name=Rt(r),c.typeParameters=Ht(i),c.parameters=p(a),c.type=o,c.body=s,c}function Ze(e,t,n,r,i,a){var o=l(241);return o.decorators=Ht(e),o.modifiers=Ht(t),o.name=Rt(n),o.typeParameters=Ht(r),o.heritageClauses=Ht(i),o.members=p(a),o}function Xe(e,t,n,r,i,a){var o=l(242);return o.decorators=Ht(e),o.modifiers=Ht(t),o.name=Rt(n),o.typeParameters=Ht(r),o.heritageClauses=Ht(i),o.members=p(a),o}function qe(e,t,n,r,i){var a=l(243);return a.decorators=Ht(e),a.modifiers=Ht(t),a.name=Rt(n),a.typeParameters=Ht(r),a.type=i,a}function Qe(e,t,n,r){var i=l(244);return i.decorators=Ht(e),i.modifiers=Ht(t),i.name=Rt(n),i.members=p(r),i}function $e(e,t,n,r,i){void 0===i&&(i=0);var a=l(245);return a.flags|=532&i,a.decorators=Ht(e),a.modifiers=Ht(t),a.name=n,a.body=r,a}function et(e){var t=l(246);return t.statements=p(e),t}function tt(e){var t=l(247);return t.clauses=p(e),t}function nt(e){var t=l(248);return t.name=Rt(e),t}function rt(e,t,n,r){var i=l(249);return i.decorators=Ht(e),i.modifiers=Ht(t),i.name=Rt(n),i.moduleReference=r,i}function it(e,t,n,r){var i=l(250);return i.decorators=Ht(e),i.modifiers=Ht(t),i.importClause=n,i.moduleSpecifier=r,i}function at(e,t){var n=l(251);return n.name=e,n.namedBindings=t,n}function ot(e){var t=l(252);return t.name=e,t}function st(e){var t=l(253);return t.elements=p(e),t}function ct(e,t){var n=l(254);return n.propertyName=e,n.name=t,n}function ut(e,t,n,r){var i=l(255);return i.decorators=Ht(e),i.modifiers=Ht(t),i.isExportEquals=n,i.expression=n?m.parenthesizeBinaryOperand(60,r,!1,undefined):m.parenthesizeDefaultExpression(r),i}function lt(e,t,n,r){var i=l(256);return i.decorators=Ht(e),i.modifiers=Ht(t),i.exportClause=n,i.moduleSpecifier=r,i}function dt(e){var t=l(257);return t.elements=p(e),t}function pt(e,t){var n=l(258);return n.propertyName=Rt(e),n.name=Rt(t),n}function ft(e){var t=l(260);return t.expression=e,t}function _t(e,t){var n=l(e);return n.tagName=r(t),n}function ht(e,t,n){var r=l(261);return r.openingElement=e,r.children=p(t),r.closingElement=n,r}function gt(e,t,n){var r=l(262);return r.tagName=e,r.typeArguments=Ht(t),r.attributes=n,r}function mt(e,t,n){var r=l(263);return r.tagName=e,r.typeArguments=Ht(t),r.attributes=n,r}function yt(e){var t=l(264);return t.tagName=e,t}function bt(e,t,n){var r=l(265);return r.openingFragment=e,r.children=p(t),r.closingFragment=n,r}function vt(e,t){var n=l(11);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n}function Et(e,t){var n=l(268);return n.name=e,n.initializer=t,n}function It(e){var t=l(269);return t.properties=p(e),t}function Tt(e){var t=l(270);return t.expression=e,t}function Ct(e,t){var n=l(271);return n.dotDotDotToken=e,n.expression=t,n}function Bt(e,t){var n=l(272);return n.expression=m.parenthesizeExpressionForList(e),n.statements=p(t),n}function xt(e){var t=l(273);return t.statements=p(e),t}function St(e,t){var n=l(274);return n.token=e,n.types=p(t),n}function Nt(e,t){var n=l(275);return n.variableDeclaration=m.isString(e)?ze(e):e,n.block=t,n}function Dt(e,t){var n=l(276);return n.name=Rt(e),n.questionToken=undefined,n.initializer=m.parenthesizeExpressionForList(t),n}function kt(e,t){var n=l(277);return n.name=Rt(e),n.objectAssignmentInitializer=t!==undefined?m.parenthesizeExpressionForList(t):undefined,n}function At(e){var t=l(278);return t.expression=m.parenthesizeExpressionForList(e),t}function wt(e,t){var n=l(279);return n.name=Rt(e),n.initializer=t&&m.parenthesizeExpressionForList(t),n}function Vt(e,t){var n=l(314);return n.expression=e,n.original=t,Wt(n,t),n}function Pt(e){if(m.nodeIsSynthesized(e)&&!m.isParseTreeNode(e)&&!e.original&&!e.emitNode&&!e.id){if(315===e.kind)return e.elements;if(m.isBinaryExpression(e)&&27===e.operatorToken.kind)return[e.left,e.right]}return e}function Lt(e){var t=l(315);return t.elements=p(m.sameFlatMap(e,Pt)),t}function Mt(e,t){void 0===t&&(t=m.emptyArray);var n=m.createNode(286);return n.prepends=t,n.sourceFiles=e,n}function Ft(){return e=e||m.arrayToMap([m.valuesHelper,m.readHelper,m.spreadHelper,m.restHelper,m.decorateHelper,m.metadataHelper,m.paramHelper,m.awaiterHelper,m.assignHelper,m.awaitHelper,m.asyncGeneratorHelper,m.asyncDelegator,m.asyncValues,m.extendsHelper,m.templateObjectHelper,m.generatorHelper,m.importStarHelper,m.importDefaultHelper],function(e){return e.name})}function Ot(e,t){var n=m.createNode(function(e){switch(e){case"prologue":return 280;case"prepend":return 281;case"internal":return 283;case"text":return 282;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return m.Debug.fail("BundleFileSectionKind: "+e+" not yet mapped to SyntaxKind");default:return m.Debug.assertNever(e)}}(e.kind),e.pos,e.end);return n.parent=t,n.data=e.data,n}function Rt(e){return m.isString(e)?r(e):e}function Ht(e){return e?p(e):undefined}function jt(e){if(!e.emitNode){if(m.isParseTreeNode(e)){if(285===e.kind)return e.emitNode={annotatedNodes:[e]};jt(m.getSourceFileOfNode(m.getParseTreeNode(m.getSourceFileOfNode(e)))).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function Wt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function Gt(e,t){return jt(e).flags=t,e}function Yt(e){var t=e.emitNode;return t&&t.leadingComments}function Jt(e,t){return jt(e).leadingComments=t,e}function zt(e){var t=e.emitNode;return t&&t.trailingComments}function Ut(e,t){return jt(e).trailingComments=t,e}function Kt(e,t){var n;return!(e.original=t)||(n=t.emitNode)&&(e.emitNode=function(e,t){var n=e.flags,r=e.leadingComments,i=e.trailingComments,a=e.commentRange,o=e.sourceMapRange,s=e.tokenSourceMapRanges,c=e.constantValue,u=e.helpers,l=e.startsOnNewLine;t=t||{};r&&(t.leadingComments=m.addRange(r.slice(),t.leadingComments));i&&(t.trailingComments=m.addRange(i.slice(),t.trailingComments));n&&(t.flags=n);a&&(t.commentRange=a);o&&(t.sourceMapRange=o);s&&(t.tokenSourceMapRanges=function(e,t){t=t||[];for(var n in e)t[n]=e[n];return t}(s,t.tokenSourceMapRanges));c!==undefined&&(t.constantValue=c);u&&(t.helpers=m.addRange(t.helpers,u));l!==undefined&&(t.startsOnNewLine=l);return t}(n,e.emitNode)),e}m.createTempVariable=function(e,t){var n=r("");return n.autoGenerateFlags=1,n.autoGenerateId=u,u++,e&&e(n),t&&(n.autoGenerateFlags|=8),n},m.createLoopVariable=function(){var e=r("");return e.autoGenerateFlags=2,e.autoGenerateId=u,u++,e},m.createUniqueName=function(e){var t=r(e);return t.autoGenerateFlags=3,t.autoGenerateId=u,u++,t},m.createOptimisticUniqueName=f,m.createFileLevelUniqueName=function(e){var t=f(e);return t.autoGenerateFlags|=32,t},m.getGeneratedNameForNode=function(e,t){var n=r(e&&m.isIdentifier(e)?m.idText(e):"");return n.autoGenerateFlags=4|t,n.autoGenerateId=u,n.original=e,u++,n},m.createToken=_,m.createSuper=function(){return l(99)},m.createThis=function(){return l(101)},m.createNull=function(){return l(97)},m.createTrue=h,m.createFalse=g,m.createModifier=y,m.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(y(86)),2&e&&t.push(y(126)),512&e&&t.push(y(81)),2048&e&&t.push(y(78)),4&e&&t.push(y(116)),8&e&&t.push(y(114)),16&e&&t.push(y(115)),128&e&&t.push(y(119)),32&e&&t.push(y(117)),64&e&&t.push(y(134)),256&e&&t.push(y(122)),t},m.createQualifiedName=b,m.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?d(b(t,n),e):e},m.createComputedPropertyName=v,m.updateComputedPropertyName=function(e,t){return e.expression!==t?d(v(t),e):e},m.createTypeParameterDeclaration=E,m.updateTypeParameterDeclaration=function(e,t,n,r){return e.name!==t||e.constraint!==n||e["default"]!==r?d(E(t,n,r),e):e},m.createParameter=I,m.updateParameter=function(e,t,n,r,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?d(I(t,n,r,i,a,o,s),e):e},m.createDecorator=T,m.updateDecorator=function(e,t){return e.expression!==t?d(T(t),e):e},m.createPropertySignature=C,m.updatePropertySignature=function(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i||e.initializer!==a?d(C(t,n,r,i,a),e):e},m.createProperty=B,m.updateProperty=function(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.questionToken!==(i!==undefined&&56===i.kind?i:undefined)||e.exclamationToken!==(i!==undefined&&52===i.kind?i:undefined)||e.type!==a||e.initializer!==o?d(B(t,n,r,i,a,o),e):e},m.createMethodSignature=x,m.updateMethodSignature=function(e,t,n,r,i,a){return e.typeParameters!==t||e.parameters!==n||e.type!==r||e.name!==i||e.questionToken!==a?d(x(t,n,r,i,a),e):e},m.createMethod=S,m.updateMethod=function(e,t,n,r,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==r||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?d(S(t,n,r,i,a,o,s,c,u),e):e},m.createConstructor=N,m.updateConstructor=function(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.parameters!==r||e.body!==i?d(N(t,n,r,i),e):e},m.createGetAccessor=D,m.updateGetAccessor=function(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.parameters!==i||e.type!==a||e.body!==o?d(D(t,n,r,i,a,o),e):e},m.createSetAccessor=k,m.updateSetAccessor=function(e,t,n,r,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.parameters!==i||e.body!==a?d(k(t,n,r,i,a),e):e},m.createCallSignature=function(e,t,n){return w(161,e,t,n)},m.updateCallSignature=t,m.createConstructSignature=function(e,t,n){return w(162,e,t,n)},m.updateConstructSignature=t,m.createIndexSignature=A,m.updateIndexSignature=function(e,t,n,r,i){return e.parameters!==r||e.type!==i||e.decorators!==t||e.modifiers!==n?d(A(t,n,r,i),e):e},m.createSignatureDeclaration=w,m.createKeywordTypeNode=l,m.createTypePredicateNode=V,m.updateTypePredicateNode=function(e,t,n){return e.parameterName!==t||e.type!==n?d(V(t,n),e):e},m.createTypeReferenceNode=P,m.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?d(P(t,n),e):e},m.createFunctionTypeNode=function(e,t,n){return w(166,e,t,n)},m.updateFunctionTypeNode=t,m.createConstructorTypeNode=function(e,t,n){return w(167,e,t,n)},m.updateConstructorTypeNode=t,m.createTypeQueryNode=L,m.updateTypeQueryNode=function(e,t){return e.exprName!==t?d(L(t),e):e},m.createTypeLiteralNode=M,m.updateTypeLiteralNode=function(e,t){return e.members!==t?d(M(t),e):e},m.createArrayTypeNode=F,m.updateArrayTypeNode=function(e,t){return e.elementType!==t?d(F(t),e):e},m.createTupleTypeNode=O,m.updateTupleTypeNode=function(e,t){return e.elementTypes!==t?d(O(t),e):e},m.createOptionalTypeNode=R,m.updateOptionalTypeNode=function(e,t){return e.type!==t?d(R(t),e):e},m.createRestTypeNode=H,m.updateRestTypeNode=function(e,t){return e.type!==t?d(H(t),e):e},m.createUnionTypeNode=function(e){return j(174,e)},m.updateUnionTypeNode=W,m.createIntersectionTypeNode=function(e){return j(175,e)},m.updateIntersectionTypeNode=W,m.createUnionOrIntersectionTypeNode=j,m.createConditionalTypeNode=G,m.updateConditionalTypeNode=function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?d(G(t,n,r,i),e):e},m.createInferTypeNode=Y,m.updateInferTypeNode=function(e,t){return e.typeParameter!==t?d(Y(t),e):e},m.createImportTypeNode=J,m.updateImportTypeNode=function(e,t,n,r,i){return e.argument!==t||e.qualifier!==n||e.typeArguments!==r||e.isTypeOf!==i?d(J(t,n,r,i),e):e},m.createParenthesizedType=z,m.updateParenthesizedType=function(e,t){return e.type!==t?d(z(t),e):e},m.createThisTypeNode=function(){return l(179)},m.createTypeOperatorNode=U,m.updateTypeOperatorNode=function(e,t){return e.type!==t?d(U(e.operator,t),e):e},m.createIndexedAccessTypeNode=K,m.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?d(K(t,n),e):e},m.createMappedTypeNode=Z,m.updateMappedTypeNode=function(e,t,n,r,i){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==r||e.type!==i?d(Z(t,n,r,i),e):e},m.createLiteralTypeNode=X,m.updateLiteralTypeNode=function(e,t){return e.literal!==t?d(X(t),e):e},m.createObjectBindingPattern=q,m.updateObjectBindingPattern=function(e,t){return e.elements!==t?d(q(t),e):e},m.createArrayBindingPattern=Q,m.updateArrayBindingPattern=function(e,t){return e.elements!==t?d(Q(t),e):e},m.createBindingElement=$,m.updateBindingElement=function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?d($(t,n,r,i),e):e},m.createArrayLiteral=ee,m.updateArrayLiteral=function(e,t){return e.elements!==t?d(ee(t,e.multiLine),e):e},m.createObjectLiteral=te,m.updateObjectLiteral=function(e,t){return e.properties!==t?d(te(t,e.multiLine),e):e},m.createPropertyAccess=ne,m.updatePropertyAccess=function(e,t,n){return e.expression!==t||e.name!==n?d(Gt(ne(t,n),m.getEmitFlags(e)),e):e},m.createElementAccess=re,m.updateElementAccess=function(e,t,n){return e.expression!==t||e.argumentExpression!==n?d(re(t,n),e):e},m.createCall=ie,m.updateCall=function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?d(ie(t,n,r),e):e},m.createNew=ae,m.updateNew=function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?d(ae(t,n,r),e):e},m.createTaggedTemplate=oe,m.updateTaggedTemplate=function(e,t,n,r){return e.tag!==t||(r?e.typeArguments!==n||e.template!==r:e.typeArguments!==undefined||e.template!==n)?d(oe(t,n,r),e):e},m.createTypeAssertion=se,m.updateTypeAssertion=function(e,t,n){return e.type!==t||e.expression!==n?d(se(t,n),e):e},m.createParen=ce,m.updateParen=function(e,t){return e.expression!==t?d(ce(t),e):e},m.createFunctionExpression=ue,m.updateFunctionExpression=function(e,t,n,r,i,a,o,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?d(ue(t,n,r,i,a,o,s),e):e},m.createArrowFunction=le,m.updateArrowFunction=function(e,t,n,r,i,a,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?d(le(t,n,r,i,a,o),e):e},m.createDelete=de,m.updateDelete=function(e,t){return e.expression!==t?d(de(t),e):e},m.createTypeOf=pe,m.updateTypeOf=function(e,t){return e.expression!==t?d(pe(t),e):e},m.createVoid=fe,m.updateVoid=function(e,t){return e.expression!==t?d(fe(t),e):e},m.createAwait=_e,m.updateAwait=function(e,t){return e.expression!==t?d(_e(t),e):e},m.createPrefix=he,m.updatePrefix=function(e,t){return e.operand!==t?d(he(e.operator,t),e):e},m.createPostfix=ge,m.updatePostfix=function(e,t){return e.operand!==t?d(ge(t,e.operator),e):e},m.createBinary=me,m.updateBinary=function(e,t,n,r){return e.left!==t||e.right!==n?d(me(t,r||e.operatorToken,n),e):e},m.createConditional=ye,m.updateConditional=function(e,t,n,r,i,a){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==a?d(ye(t,n,r,i,a),e):e},m.createTemplateExpression=be,m.updateTemplateExpression=function(e,t,n){return e.head!==t||e.templateSpans!==n?d(be(t,n),e):e},m.createTemplateHead=function(e){var t=l(15);return t.text=e,t},m.createTemplateMiddle=function(e){var t=l(16);return t.text=e,t},m.createTemplateTail=function(e){var t=l(17);return t.text=e,t},m.createNoSubstitutionTemplateLiteral=function(e){var t=l(14);return t.text=e,t},m.createYield=ve,m.updateYield=function(e,t,n){return e.expression!==n||e.asteriskToken!==t?d(ve(t,n),e):e},m.createSpread=Ee,m.updateSpread=function(e,t){return e.expression!==t?d(Ee(t),e):e},m.createClassExpression=Ie,m.updateClassExpression=function(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==a?d(Ie(t,n,r,i,a),e):e},m.createOmittedExpression=function(){return l(211)},m.createExpressionWithTypeArguments=Te,m.updateExpressionWithTypeArguments=function(e,t,n){return e.typeArguments!==t||e.expression!==n?d(Te(t,n),e):e},m.createAsExpression=Ce,m.updateAsExpression=function(e,t,n){return e.expression!==t||e.type!==n?d(Ce(t,n),e):e},m.createNonNullExpression=Be,m.updateNonNullExpression=function(e,t){return e.expression!==t?d(Be(t),e):e},m.createMetaProperty=xe,m.updateMetaProperty=function(e,t){return e.name!==t?d(xe(e.keywordToken,t),e):e},m.createTemplateSpan=Se,m.updateTemplateSpan=function(e,t,n){return e.expression!==t||e.literal!==n?d(Se(t,n),e):e},m.createSemicolonClassElement=function(){return l(218)},m.createBlock=Ne,m.updateBlock=function(e,t){return e.statements!==t?d(Ne(t,e.multiLine),e):e},m.createVariableStatement=De,m.updateVariableStatement=function(e,t,n){return e.modifiers!==t||e.declarationList!==n?d(De(t,n),e):e},m.createEmptyStatement=function(){return l(221)},m.createExpressionStatement=ke,m.updateExpressionStatement=Ae,m.createStatement=ke,m.updateStatement=Ae,m.createIf=we,m.updateIf=function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?d(we(t,n,r),e):e},m.createDo=Ve,m.updateDo=function(e,t,n){return e.statement!==t||e.expression!==n?d(Ve(t,n),e):e},m.createWhile=Pe,m.updateWhile=function(e,t,n){return e.expression!==t||e.statement!==n?d(Pe(t,n),e):e},m.createFor=Le,m.updateFor=function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?d(Le(t,n,r,i),e):e},m.createForIn=Me,m.updateForIn=function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?d(Me(t,n,r),e):e},m.createForOf=Fe,m.updateForOf=function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?d(Fe(t,n,r,i),e):e},m.createContinue=Oe,m.updateContinue=function(e,t){return e.label!==t?d(Oe(t),e):e},m.createBreak=Re,m.updateBreak=function(e,t){return e.label!==t?d(Re(t),e):e},m.createReturn=He,m.updateReturn=function(e,t){return e.expression!==t?d(He(t),e):e},m.createWith=je,m.updateWith=function(e,t,n){return e.expression!==t||e.statement!==n?d(je(t,n),e):e},m.createSwitch=We,m.updateSwitch=function(e,t,n){return e.expression!==t||e.caseBlock!==n?d(We(t,n),e):e},m.createLabel=Ge,m.updateLabel=function(e,t,n){return e.label!==t||e.statement!==n?d(Ge(t,n),e):e},m.createThrow=Ye,m.updateThrow=function(e,t){return e.expression!==t?d(Ye(t),e):e},m.createTry=Je,m.updateTry=function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?d(Je(t,n,r),e):e},m.createDebuggerStatement=function(){return l(237)},m.createVariableDeclaration=ze,m.updateVariableDeclaration=function(e,t,n,r){return e.name!==t||e.type!==n||e.initializer!==r?d(ze(t,n,r),e):e},m.createVariableDeclarationList=Ue,m.updateVariableDeclarationList=function(e,t){return e.declarations!==t?d(Ue(t,e.flags),e):e},m.createFunctionDeclaration=Ke,m.updateFunctionDeclaration=function(e,t,n,r,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==r||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?d(Ke(t,n,r,i,a,o,s,c),e):e},m.createClassDeclaration=Ze,m.updateClassDeclaration=function(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?d(Ze(t,n,r,i,a,o),e):e},m.createInterfaceDeclaration=Xe,m.updateInterfaceDeclaration=function(e,t,n,r,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?d(Xe(t,n,r,i,a,o),e):e},m.createTypeAliasDeclaration=qe,m.updateTypeAliasDeclaration=function(e,t,n,r,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.type!==a?d(qe(t,n,r,i,a),e):e},m.createEnumDeclaration=Qe,m.updateEnumDeclaration=function(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.members!==i?d(Qe(t,n,r,i),e):e},m.createModuleDeclaration=$e,m.updateModuleDeclaration=function(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.body!==i?d($e(t,n,r,i,e.flags),e):e},m.createModuleBlock=et,m.updateModuleBlock=function(e,t){return e.statements!==t?d(et(t),e):e},m.createCaseBlock=tt,m.updateCaseBlock=function(e,t){return e.clauses!==t?d(tt(t),e):e},m.createNamespaceExportDeclaration=nt,m.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?d(nt(t),e):e},m.createImportEqualsDeclaration=rt,m.updateImportEqualsDeclaration=function(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.name!==r||e.moduleReference!==i?d(rt(t,n,r,i),e):e},m.createImportDeclaration=it,m.updateImportDeclaration=function(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.importClause!==r||e.moduleSpecifier!==i?d(it(t,n,r,i),e):e},m.createImportClause=at,m.updateImportClause=function(e,t,n){return e.name!==t||e.namedBindings!==n?d(at(t,n),e):e},m.createNamespaceImport=ot,m.updateNamespaceImport=function(e,t){return e.name!==t?d(ot(t),e):e},m.createNamedImports=st,m.updateNamedImports=function(e,t){return e.elements!==t?d(st(t),e):e},m.createImportSpecifier=ct,m.updateImportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?d(ct(t,n),e):e},m.createExportAssignment=ut,m.updateExportAssignment=function(e,t,n,r){return e.decorators!==t||e.modifiers!==n||e.expression!==r?d(ut(t,n,e.isExportEquals,r),e):e},m.createExportDeclaration=lt,m.updateExportDeclaration=function(e,t,n,r,i){return e.decorators!==t||e.modifiers!==n||e.exportClause!==r||e.moduleSpecifier!==i?d(lt(t,n,r,i),e):e},m.createNamedExports=dt,m.updateNamedExports=function(e,t){return e.elements!==t?d(dt(t),e):e},m.createExportSpecifier=pt,m.updateExportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?d(pt(t,n),e):e},m.createExternalModuleReference=ft,m.updateExternalModuleReference=function(e,t){return e.expression!==t?d(ft(t),e):e},m.createJSDocTypeExpression=function(e){var t=l(289);return t.type=e,t},m.createJSDocTypeTag=function(e,t){var n=_t(308,"type");return n.typeExpression=e,n.comment=t,n},m.createJSDocReturnTag=function(e,t){var n=_t(306,"returns");return n.typeExpression=e,n.comment=t,n},m.createJSDocParamTag=function(e,t,n,r){var i=_t(305,"param");return i.typeExpression=n,i.name=e,i.isBracketed=t,i.comment=r,i},m.createJSDocComment=function(e,t){var n=l(297);return n.comment=e,n.tags=t,n},m.createJsxElement=ht,m.updateJsxElement=function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?d(ht(t,n,r),e):e},m.createJsxSelfClosingElement=gt,m.updateJsxSelfClosingElement=function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?d(gt(t,n,r),e):e},m.createJsxOpeningElement=mt,m.updateJsxOpeningElement=function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?d(mt(t,n,r),e):e},m.createJsxClosingElement=yt,m.updateJsxClosingElement=function(e,t){return e.tagName!==t?d(yt(t),e):e},m.createJsxFragment=bt,m.createJsxText=vt,m.updateJsxText=function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?d(vt(t,n),e):e},m.createJsxOpeningFragment=function(){return l(266)},m.createJsxJsxClosingFragment=function(){return l(267)},m.updateJsxFragment=function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?d(bt(t,n,r),e):e},m.createJsxAttribute=Et,m.updateJsxAttribute=function(e,t,n){return e.name!==t||e.initializer!==n?d(Et(t,n),e):e},m.createJsxAttributes=It,m.updateJsxAttributes=function(e,t){return e.properties!==t?d(It(t),e):e},m.createJsxSpreadAttribute=Tt,m.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?d(Tt(t),e):e},m.createJsxExpression=Ct,m.updateJsxExpression=function(e,t){return e.expression!==t?d(Ct(e.dotDotDotToken,t),e):e},m.createCaseClause=Bt,m.updateCaseClause=function(e,t,n){return e.expression!==t||e.statements!==n?d(Bt(t,n),e):e},m.createDefaultClause=xt,m.updateDefaultClause=function(e,t){return e.statements!==t?d(xt(t),e):e},m.createHeritageClause=St,m.updateHeritageClause=function(e,t){return e.types!==t?d(St(e.token,t),e):e},m.createCatchClause=Nt,m.updateCatchClause=function(e,t,n){return e.variableDeclaration!==t||e.block!==n?d(Nt(t,n),e):e},m.createPropertyAssignment=Dt,m.updatePropertyAssignment=function(e,t,n){return e.name!==t||e.initializer!==n?d(Dt(t,n),e):e},m.createShorthandPropertyAssignment=kt,m.updateShorthandPropertyAssignment=function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?d(kt(t,n),e):e},m.createSpreadAssignment=At,m.updateSpreadAssignment=function(e,t){return e.expression!==t?d(At(t),e):e},m.createEnumMember=wt,m.updateEnumMember=function(e,t,n){return e.name!==t||e.initializer!==n?d(wt(t,n),e):e},m.updateSourceFileNode=function(e,t,n,r,i,a,o){if(e.statements!==t||n!==undefined&&e.isDeclarationFile!==n||r!==undefined&&e.referencedFiles!==r||i!==undefined&&e.typeReferenceDirectives!==i||o!==undefined&&e.libReferenceDirectives!==o||a!==undefined&&e.hasNoDefaultLib!==a){var s=l(285);return s.flags|=e.flags,s.statements=p(t),s.endOfFileToken=e.endOfFileToken,s.fileName=e.fileName,s.path=e.path,s.text=e.text,s.isDeclarationFile=n===undefined?e.isDeclarationFile:n,s.referencedFiles=r===undefined?e.referencedFiles:r,s.typeReferenceDirectives=i===undefined?e.typeReferenceDirectives:i,s.hasNoDefaultLib=a===undefined?e.hasNoDefaultLib:a,s.libReferenceDirectives=o===undefined?e.libReferenceDirectives:o,e.amdDependencies!==undefined&&(s.amdDependencies=e.amdDependencies),e.moduleName!==undefined&&(s.moduleName=e.moduleName),e.languageVariant!==undefined&&(s.languageVariant=e.languageVariant),e.renamedDependencies!==undefined&&(s.renamedDependencies=e.renamedDependencies),e.languageVersion!==undefined&&(s.languageVersion=e.languageVersion),e.scriptKind!==undefined&&(s.scriptKind=e.scriptKind),e.externalModuleIndicator!==undefined&&(s.externalModuleIndicator=e.externalModuleIndicator),e.commonJsModuleIndicator!==undefined&&(s.commonJsModuleIndicator=e.commonJsModuleIndicator),e.identifiers!==undefined&&(s.identifiers=e.identifiers),e.nodeCount!==undefined&&(s.nodeCount=e.nodeCount),e.identifierCount!==undefined&&(s.identifierCount=e.identifierCount),e.symbolCount!==undefined&&(s.symbolCount=e.symbolCount),e.parseDiagnostics!==undefined&&(s.parseDiagnostics=e.parseDiagnostics),e.bindDiagnostics!==undefined&&(s.bindDiagnostics=e.bindDiagnostics),e.bindSuggestionDiagnostics!==undefined&&(s.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),e.lineMap!==undefined&&(s.lineMap=e.lineMap),e.classifiableNames!==undefined&&(s.classifiableNames=e.classifiableNames),e.resolvedModules!==undefined&&(s.resolvedModules=e.resolvedModules),e.resolvedTypeReferenceDirectiveNames!==undefined&&(s.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),e.imports!==undefined&&(s.imports=e.imports),e.moduleAugmentations!==undefined&&(s.moduleAugmentations=e.moduleAugmentations),e.pragmas!==undefined&&(s.pragmas=e.pragmas),e.localJsxFactory!==undefined&&(s.localJsxFactory=e.localJsxFactory),e.localJsxNamespace!==undefined&&(s.localJsxNamespace=e.localJsxNamespace),d(s,e)}return e},m.getMutableClone=function(e){var t=n(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},m.createNotEmittedStatement=function(e){var t=l(313);return t.original=e,Wt(t,e),t},m.createEndOfDeclarationMarker=function(e){var t=l(317);return t.emitNode={},t.original=e,t},m.createMergeDeclarationMarker=function(e){var t=l(316);return t.emitNode={},t.original=e,t},m.createPartiallyEmittedExpression=Vt,m.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?d(Vt(t,e.original),e):e},m.createCommaList=Lt,m.updateCommaList=function(e,t){return e.elements!==t?d(Lt(t),e):e},m.createBundle=Mt,m.createUnparsedSourceFile=function(e,t,n){var r,i,a,o=((r=m.createNode(287)).prologues=m.emptyArray,r.referencedFiles=m.emptyArray,r.libReferenceDirectives=m.emptyArray,r.getLineAndCharacterOfPosition=function(e){return m.getLineAndCharacterOfPosition(r,e)},r);if(m.isString(e))o.fileName="",o.text=e,o.sourceMapPath=t,o.sourceMapText=n;else if(m.Debug.assert("js"===t||"dts"===t),o.fileName=("js"===t?e.javascriptPath:e.declarationPath)||"",o.sourceMapPath="js"===t?e.javascriptMapPath:e.declarationMapPath,Object.defineProperties(o,{text:{get:function(){return"js"===t?e.javascriptText:e.declarationText}},sourceMapText:{get:function(){return"js"===t?e.javascriptMapText:e.declarationMapText}}}),e.buildInfo&&e.buildInfo.bundle&&(o.oldFileOfCurrentEmit=e.oldFileOfCurrentEmit,m.Debug.assert(n===undefined||"boolean"==typeof n),i=n,a="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,o.oldFileOfCurrentEmit))return function(e,t){var n,r;m.Debug.assert(!!e.oldFileOfCurrentEmit);for(var i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":(n=n||[]).push(Ot(o,e));break;case"no-default-lib":case"reference":case"type":case"lib":(r=r||[]).push(function(e,t){var n=m.createNode(284,e.pos,e.end);return n.parent=t,n.data=e.data,n.section=e,n}(o,e));break;case"prologue":case"emitHelpers":case"prepend":break;default:m.Debug.assertNever(o)}}e.texts=n||m.emptyArray,e.helpers=m.map(t.sources&&t.sources.helpers,function(e){return Ft().get(e)}),e.syntheticReferences=r}(o,m.Debug.assertDefined(a)),o;return m.Debug.assert(!o.oldFileOfCurrentEmit),function(e,t,n){for(var r,i,a,o,s,c,u=0,l=t?t.sections:m.emptyArray;u<l.length;u++){var d=l[u];switch(d.kind){case"prologue":(r=r||[]).push(Ot(d,e));break;case"emitHelpers":(i=i||[]).push(Ft().get(d.data));break;case"no-default-lib":e.hasNoDefaultLib=!0;break;case"reference":(a=a||[]).push({pos:-1,end:-1,fileName:d.data});break;case"type":(o=o||[]).push(d.data);break;case"lib":(s=s||[]).push({pos:-1,end:-1,fileName:d.data});break;case"prepend":for(var p=Ot(d,e),f=void 0,_=0,h=d.texts;_<h.length;_++){var g=h[_];n&&"internal"===g.kind||(f=f||[]).push(Ot(g,e))}p.texts=f||m.emptyArray,(c=c||[]).push(p);break;case"internal":if(n)break;case"text":(c=c||[]).push(Ot(d,e));break;default:m.Debug.assertNever(d)}}e.prologues=r||m.emptyArray,e.helpers=i,e.referencedFiles=a||m.emptyArray,e.typeReferenceDirectives=o,e.libReferenceDirectives=s||m.emptyArray,e.texts=c||[Ot({kind:"text",pos:0,end:e.text.length},e)]}(o,a,i),o},m.createInputFiles=function(n,e,t,r,i,a,o,s,c,u,l){var d,p,f,_,h,g=m.createNode(288);return m.isString(n)?(g.javascriptText=n,g.javascriptMapPath=t,g.javascriptMapText=r,g.declarationText=e,g.declarationMapPath=i,g.declarationMapText=a,g.javascriptPath=o,g.declarationPath=s,g.buildInfoPath=c,g.buildInfo=u,g.oldFileOfCurrentEmit=l):(d=m.createMap(),p=function p(e){if(e===undefined)return undefined;var t=d.get(e);return t===undefined&&(t=n(e),d.set(e,t!==undefined&&t)),!1!==t?t:undefined},f=function f(e){var t=p(e);return t!==undefined?t:"/* Input file "+e+" was missing */\r\n"},h=function h(e){var t;return _===undefined&&(t=e(),_=t!==undefined&&m.getBuildInfo(t)),_||undefined},g.javascriptPath=e,g.javascriptMapPath=t,g.declarationPath=m.Debug.assertDefined(r),g.declarationMapPath=i,g.buildInfoPath=a,Object.defineProperties(g,{javascriptText:{get:function(){return f(e)}},javascriptMapText:{get:function(){return p(t)}},declarationText:{get:function(){return f(m.Debug.assertDefined(r))}},declarationMapText:{get:function(){return p(i)}},buildInfo:{get:function(){return h(function(){return p(a)})}}})),g},m.updateBundle=function(e,t,n){return void 0===n&&(n=m.emptyArray),e.sourceFiles!==t||e.prepends!==n?Mt(t,n):e},m.createImmediatelyInvokedFunctionExpression=function(e,t,n){return ie(ue(undefined,undefined,undefined,undefined,t?[t]:[],undefined,Ne(e,!0)),undefined,n?[n]:[])},m.createImmediatelyInvokedArrowFunction=function(e,t,n){return ie(le(undefined,undefined,t?[t]:[],undefined,undefined,Ne(e,!0)),undefined,n?[n]:[])},m.createComma=function(e,t){return me(e,27,t)},m.createLessThan=function(e,t){return me(e,28,t)},m.createAssignment=function(e,t){return me(e,60,t)},m.createStrictEquality=function(e,t){return me(e,35,t)},m.createStrictInequality=function(e,t){return me(e,36,t)},m.createAdd=function(e,t){return me(e,38,t)},m.createSubtract=function(e,t){return me(e,39,t)},m.createPostfixIncrement=function(e){return ge(e,44)},m.createLogicalAnd=function(e,t){return me(e,54,t)},m.createLogicalOr=function(e,t){return me(e,55,t)},m.createLogicalNot=function(e){return he(52,e)},m.createVoidZero=function(){return fe(i(0))},m.createExportDefault=function(e){return ut(undefined,undefined,!1,e)},m.createExternalModuleExport=function(e){return lt(undefined,undefined,dt([pt(undefined,e)]))},m.disposeEmitNodes=function(e){var t=(e=m.getSourceFileOfNode(m.getParseTreeNode(e)))&&e.emitNode,n=t&&t.annotatedNodes;if(n)for(var r=0,i=n;r<i.length;r++){i[r].emitNode=undefined}},m.getOrCreateEmitNode=jt,m.setTextRange=Wt,m.setEmitFlags=Gt,m.addEmitFlags=function(e,t){var n=jt(e);return n.flags=n.flags|t,e},m.getSourceMapRange=function(e){var t=e.emitNode;return t&&t.sourceMapRange||e},m.setSourceMapRange=function(e,t){return jt(e).sourceMapRange=t,e},m.createSourceMapSource=function(e,t,n){return new(c=c||m.objectAllocator.getSourceMapSourceConstructor())(e,t,n)},m.getTokenSourceMapRange=function(e,t){var n=e.emitNode,r=n&&n.tokenSourceMapRanges;return r&&r[t]},m.setTokenSourceMapRange=function(e,t,n){var r=jt(e);return(r.tokenSourceMapRanges||(r.tokenSourceMapRanges=[]))[t]=n,e},m.getStartsOnNewLine=function(e){var t=e.emitNode;return t&&t.startsOnNewLine},m.setStartsOnNewLine=function(e,t){return jt(e).startsOnNewLine=t,e},m.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},m.setCommentRange=function(e,t){return jt(e).commentRange=t,e},m.getSyntheticLeadingComments=Yt,m.setSyntheticLeadingComments=Jt,m.addSyntheticLeadingComment=function(e,t,n,r){return Jt(e,m.append(Yt(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))},m.getSyntheticTrailingComments=zt,m.setSyntheticTrailingComments=Ut,m.addSyntheticTrailingComment=function(e,t,n,r){return Ut(e,m.append(zt(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))},m.moveSyntheticComments=function(e,t){Jt(e,Yt(t)),Ut(e,zt(t));var n=jt(t);return n.leadingComments=undefined,n.trailingComments=undefined,e},m.getConstantValue=function(e){var t=e.emitNode;return t&&t.constantValue},m.setConstantValue=function(e,t){return jt(e).constantValue=t,e},m.addEmitHelper=function(e,t){var n=jt(e);return n.helpers=m.append(n.helpers,t),e},m.addEmitHelpers=function(e,t){if(m.some(t))for(var n=jt(e),r=0,i=t;r<i.length;r++){var a=i[r];n.helpers=m.appendIfUnique(n.helpers,a)}return e},m.removeEmitHelper=function(e,t){var n=e.emitNode;if(n){var r=n.helpers;if(r)return m.orderedRemoveItem(r,t)}return!1},m.getEmitHelpers=function(e){var t=e.emitNode;return t&&t.helpers},m.moveEmitHelpers=function(e,t,n){var r=e.emitNode,i=r&&r.helpers;if(m.some(i)){for(var a=jt(t),o=0,s=0;s<i.length;s++){var c=i[s];n(c)?(o++,a.helpers=m.appendIfUnique(a.helpers,c)):0<o&&(i[s-o]=c)}0<o&&(i.length-=o)}},m.compareEmitHelpers=function(e,t){return e===t||e.priority===t.priority?0:e.priority===undefined?1:t.priority===undefined?-1:m.compareValues(e.priority,t.priority)},m.setOriginalNode=Kt}(rg=rg||{}),(I=rg=rg||{}).nullTransformationContext={enableEmitNotification:I.noop,enableSubstitution:I.noop,endLexicalEnvironment:I.returnUndefined,getCompilerOptions:I.notImplemented,getEmitHost:I.notImplemented,getEmitResolver:I.notImplemented,hoistFunctionDeclaration:I.noop,hoistVariableDeclaration:I.noop,isEmitNotificationEnabled:I.notImplemented,isSubstitutionEnabled:I.notImplemented,onEmitNode:I.noop,onSubstituteNode:I.notImplemented,readEmitHelpers:I.notImplemented,requestEmitHelper:I.noop,resumeLexicalEnvironment:I.noop,startLexicalEnvironment:I.noop,suspendLexicalEnvironment:I.noop,addDiagnostic:I.noop},I.createTypeCheck=function(e,t){return"undefined"===t?I.createStrictEquality(e,I.createVoidZero()):I.createStrictEquality(I.createTypeOf(e),I.createLiteral(t))},I.createMemberAccessForPropertyName=jo,I.createFunctionCall=function(e,t,n,r){return I.setTextRange(I.createCall(I.createPropertyAccess(e,"call"),undefined,[t].concat(n)),r)},I.createFunctionApply=function(e,t,n,r){return I.setTextRange(I.createCall(I.createPropertyAccess(e,"apply"),undefined,[t,n]),r)},I.createArraySlice=function(e,t){var n=[];return t!==undefined&&n.push("number"==typeof t?I.createLiteral(t):t),I.createCall(I.createPropertyAccess(e,"slice"),undefined,n)},I.createArrayConcat=function(e,t){return I.createCall(I.createPropertyAccess(e,"concat"),undefined,t)},I.createMathPow=function(e,t,n){return I.setTextRange(I.createCall(I.createPropertyAccess(I.createIdentifier("Math"),"pow"),undefined,[e,t]),n)},I.createExpressionForJsxElement=function(e,t,n,r,i,a,o){var s=[n];if(r&&s.push(r),i&&0<i.length)if(r||s.push(I.createNull()),1<i.length)for(var c=0,u=i;c<u.length;c++){var l=u[c];ds(l),s.push(l)}else s.push(i[0]);return I.setTextRange(I.createCall(Go(e,t,a),undefined,s),o)},I.createExpressionForJsxFragment=function(e,t,n,r,i){var a=[I.createPropertyAccess(Wo(t,r),"Fragment")];if(a.push(I.createNull()),n&&0<n.length)if(1<n.length)for(var o=0,s=n;o<s.length;o++){var c=s[o];ds(c),a.push(c)}else a.push(n[0]);return I.setTextRange(I.createCall(Go(e,t,r),undefined,a),i)},I.getHelperName=Yo,I.valuesHelper={name:"typescript:values",scoped:!1,text:'\n var __values = (this && this.__values) || function (o) {\n var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n if (m) return m.call(o);\n return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };'},I.createValuesHelper=function(e,t,n){return e.requestEmitHelper(I.valuesHelper),I.setTextRange(I.createCall(Yo("__values"),undefined,[t]),n)},I.readHelper={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},I.createReadHelper=function(e,t,n,r){return e.requestEmitHelper(I.readHelper),I.setTextRange(I.createCall(Yo("__read"),undefined,n!==undefined?[t,I.createLiteral(n)]:[t]),r)},I.spreadHelper={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"},I.createSpreadHelper=function(e,t,n){return e.requestEmitHelper(I.readHelper),e.requestEmitHelper(I.spreadHelper),I.setTextRange(I.createCall(Yo("__spread"),undefined,t),n)},I.createForOfBindingStatement=function(e,t){if(I.isVariableDeclarationList(e)){var n=I.first(e.declarations),r=I.updateVariableDeclaration(n,n.name,undefined,t);return I.setTextRange(I.createVariableStatement(undefined,I.updateVariableDeclarationList(e,[r])),e)}var i=I.setTextRange(I.createAssignment(e,t),e);return I.setTextRange(I.createStatement(i),e)},I.insertLeadingStatement=function(e,t){return I.isBlock(e)?I.updateBlock(e,I.setTextRange(I.createNodeArray([t].concat(e.statements)),e.statements)):I.createBlock(I.createNodeArray([e,t]),!0)},I.restoreEnclosingLabel=function og(e,t,n){if(!t)return e;var r=I.updateLabel(t,t.label,234===t.statement.kind?og(e,t.statement):e);return n&&n(t),r},I.createCallBinding=function(e,t,n,r){void 0===r&&(r=!1);var i,a,o=cs(e,7);if(I.isSuperProperty(o))i=I.createThis(),a=o;else if(99===o.kind)i=I.createThis(),a=n<2?I.setTextRange(I.createIdentifier("_super"),o):o;else if(4096&I.getEmitFlags(o))i=I.createVoidZero(),a=ts(o);else switch(o.kind){case 190:Jo(o.expression,r)?(i=I.createTempVariable(t),a=I.createPropertyAccess(I.setTextRange(I.createAssignment(i,o.expression),o.expression),o.name),I.setTextRange(a,o)):(i=o.expression,a=o);break;case 191:Jo(o.expression,r)?(i=I.createTempVariable(t),a=I.createElementAccess(I.setTextRange(I.createAssignment(i,o.expression),o.expression),o.argumentExpression),I.setTextRange(a,o)):(i=o.expression,a=o);break;default:i=I.createVoidZero(),a=ts(e)}return{target:a,thisArg:i}},I.inlineExpressions=function(e){return 10<e.length?I.createCommaList(e):I.reduceLeft(e,I.createComma)},I.createExpressionFromEntityName=function sg(e){if(I.isQualifiedName(e)){var t=sg(e.left),n=I.getMutableClone(e.right);return I.setTextRange(I.createPropertyAccess(t,n),e)}return I.getMutableClone(e)},I.createExpressionForPropertyName=zo,I.createExpressionForObjectLiteralElementLike=function(e,t,n){switch(t.kind){case 159:case 160:return function(e,t,n,r){var i=I.getAllAccessorDeclarations(e,t),a=i.firstAccessor,o=i.getAccessor,s=i.setAccessor;if(t!==a)return undefined;var c=[];{var u,l;o&&(u=I.createFunctionExpression(o.modifiers,undefined,undefined,undefined,o.parameters,undefined,o.body),I.setTextRange(u,o),I.setOriginalNode(u,o),l=I.createPropertyAssignment("get",u),c.push(l))}{var d,p;s&&(d=I.createFunctionExpression(s.modifiers,undefined,undefined,undefined,s.parameters,undefined,s.body),I.setTextRange(d,s),I.setOriginalNode(d,s),p=I.createPropertyAssignment("set",d),c.push(p))}c.push(I.createPropertyAssignment("enumerable",I.createTrue())),c.push(I.createPropertyAssignment("configurable",I.createTrue()));var f=I.setTextRange(I.createCall(I.createPropertyAccess(I.createIdentifier("Object"),"defineProperty"),undefined,[n,zo(t.name),I.createObjectLiteral(c,r)]),a);return I.aggregateTransformFlags(f)}(e.properties,t,n,!!e.multiLine);case 276:return s=t,c=n,I.aggregateTransformFlags(I.setOriginalNode(I.setTextRange(I.createAssignment(jo(c,s.name,s.name),s.initializer),s),s));case 277:return a=t,o=n,I.aggregateTransformFlags(I.setOriginalNode(I.setTextRange(I.createAssignment(jo(o,a.name,a.name),I.getSynthesizedClone(a.name)),a),a));case 157:return r=t,i=n,I.aggregateTransformFlags(I.setOriginalNode(I.setTextRange(I.createAssignment(jo(i,r.name,r.name),I.setOriginalNode(I.setTextRange(I.createFunctionExpression(r.modifiers,r.asteriskToken,undefined,undefined,r.parameters,undefined,r.body),r),r)),r),r))}var r,i,a,o,s,c},I.getInternalName=function(e,t,n){return Ko(e,t,n,49152)},I.isInternalName=function(e){return 0!=(32768&I.getEmitFlags(e))},I.getLocalName=function(e,t,n){return Ko(e,t,n,16384)},I.isLocalName=function(e){return 0!=(16384&I.getEmitFlags(e))},I.getExportName=Uo,I.isExportName=function(e){return 0!=(8192&I.getEmitFlags(e))},I.getDeclarationName=function(e,t,n){return Ko(e,t,n)},I.getExternalModuleOrNamespaceExportName=function(e,t,n,r){return e&&I.hasModifier(t,1)?Zo(e,Ko(t),n,r):Uo(t,n,r)},I.getNamespaceMemberName=Zo,I.convertToFunctionBody=function(e,t){return I.isBlock(e)?e:I.setTextRange(I.createBlock([I.setTextRange(I.createReturn(e),e)],t),e)},I.convertFunctionDeclarationToExpression=function(e){if(!e.body)return I.Debug.fail();var t=I.createFunctionExpression(e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);return I.setOriginalNode(t,e),I.setTextRange(t,e),I.getStartsOnNewLine(e)&&I.setStartsOnNewLine(t,!0),I.aggregateTransformFlags(t),t},I.addPrologue=function(e,t,n,r){return Qo(e,t,qo(e,t,n),r)},I.addStandardPrologue=qo,I.addCustomPrologue=Qo,I.findUseStrictPrologue=$o,I.startsWithUseStrict=function(e){var t=I.firstOrUndefined(e);return t!==undefined&&I.isPrologueDirective(t)&&Xo(t)},I.ensureUseStrict=function(e){return $o(e)?e:I.setTextRange(I.createNodeArray([ds(I.createStatement(I.createLiteral("use strict")))].concat(e)),e)},I.parenthesizeBinaryOperand=function(e,t,n,r){return 196!==I.skipPartiallyEmittedExpressions(t).kind&&function(e,t,n,r){var i=I.getOperatorPrecedence(205,e),a=I.getOperatorAssociativity(205,e),o=I.skipPartiallyEmittedExpressions(t);if(!n&&198===t.kind&&4<i)return!0;var s=I.getExpressionPrecedence(o);switch(I.compareValues(s,i)){case-1:return n||1!==a||208!==t.kind?!0:!1;case 1:return!1;case 0:if(n)return 1===a;if(I.isBinaryExpression(o)&&o.operatorToken.kind===e){if(function(e){return 40===e||50===e||49===e||51===e}(e))return!1;if(38===e){var c=r?es(r):0;if(I.isLiteralKind(c)&&c===es(o))return!1}}return 0===I.getExpressionAssociativity(o)}}(e,t,n,r)?I.createParen(t):t},I.parenthesizeForConditionalHead=function(e){var t=I.getOperatorPrecedence(206,56),n=I.skipPartiallyEmittedExpressions(e),r=I.getExpressionPrecedence(n);return-1===I.compareValues(r,t)?I.createParen(e):e},I.parenthesizeSubexpressionOfConditionalExpression=function(e){return os(I.skipPartiallyEmittedExpressions(e))?I.createParen(e):e},I.parenthesizeDefaultExpression=function(e){var t=I.skipPartiallyEmittedExpressions(e),n=os(t);if(!n)switch(as(t,!1).kind){case 210:case 197:n=!0}return n?I.createParen(e):e},I.parenthesizeForNew=function(e){var t=as(e,!0);switch(t.kind){case 192:return I.createParen(e);case 193:return t.arguments?e:I.createParen(e)}return ts(e)},I.parenthesizeForAccess=ts,I.parenthesizePostfixOperand=function(e){return I.isLeftHandSideExpression(e)?e:I.setTextRange(I.createParen(e),e)},I.parenthesizePrefixOperand=function(e){return I.isUnaryExpression(e)?e:I.setTextRange(I.createParen(e),e)},I.parenthesizeListElements=function(e){for(var t,n=0;n<e.length;n++){var r=ns(e[n]);t===undefined&&r===e[n]||(t===undefined&&(t=e.slice(0,n)),t.push(r))}return t!==undefined?I.setTextRange(I.createNodeArray(t,e.hasTrailingComma),e):e},I.parenthesizeExpressionForList=ns,I.parenthesizeExpressionForExpressionStatement=function(e){var t=I.skipPartiallyEmittedExpressions(e);if(I.isCallExpression(t)){var n=t.expression,r=I.skipPartiallyEmittedExpressions(n).kind;if(197===r||198===r){var i=I.getMutableClone(t);return i.expression=I.setTextRange(I.createParen(n),n),ls(e,i,4)}}var a=as(t,!1).kind;return 189===a||197===a?I.setTextRange(I.createParen(e),e):e},I.parenthesizeConditionalTypeMember=rs,I.parenthesizeElementTypeMember=is,I.parenthesizeArrayTypeMember=function(e){switch(e.kind){case 168:case 180:case 177:return I.createParenthesizedType(e)}return is(e)},I.parenthesizeElementTypeMembers=function(e){return I.createNodeArray(I.sameMap(e,is))},I.parenthesizeTypeParameters=function(e){if(I.some(e)){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(0===n&&I.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?I.createParenthesizedType(r):r)}return I.createNodeArray(t)}},I.parenthesizeConciseBody=function(e){return I.isBlock(e)||!os(e)&&189!==as(e,!1).kind?e:I.setTextRange(I.createParen(e),e)},I.isCommaSequence=os,(T=I.OuterExpressionKinds||(I.OuterExpressionKinds={}))[T.Parentheses=1]="Parentheses",T[T.Assertions=2]="Assertions",T[T.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",T[T.All=7]="All",I.isOuterExpression=ss,I.skipOuterExpressions=cs,I.skipAssertions=us,I.recreateOuterExpressions=ls,I.startOnNewLine=ds,I.getExternalHelpersModuleName=ps,I.getOrCreateExternalHelpersModuleNameIfNeeded=function(e,t,n,r){if(t.importHelpers&&I.isEffectiveExternalModule(e,t)){var i=ps(e);if(i)return i;var a=I.getEmitModuleKind(t),o=(n||t.esModuleInterop&&r)&&a!==I.ModuleKind.System&&a!==I.ModuleKind.ES2015&&a!==I.ModuleKind.ESNext;if(!o){var s=I.getEmitHelpers(e);if(s)for(var c=0,u=s;c<u.length;c++){if(!u[c].scoped){o=!0;break}}}if(o){var l=I.getOriginalNode(e,I.isSourceFile),d=I.getOrCreateEmitNode(l);return d.externalHelpersModuleName||(d.externalHelpersModuleName=I.createUniqueName(I.externalHelpersModuleNameText))}}},I.getLocalNameForExternalImport=function(e,t){var n=I.getNamespaceDeclarationNode(e);if(!n||I.isDefaultImport(e))return 250===e.kind&&e.importClause||256===e.kind&&e.moduleSpecifier?I.getGeneratedNameForNode(e):undefined;var r=n.name;return I.isGeneratedIdentifier(r)?r:I.createIdentifier(I.getSourceTextOfNodeFromSourceFile(t,r)||I.idText(r))},I.getExternalModuleNameLiteral=function(e,t,n,r,i){var a,o,s,c,u,l,d=I.getExternalModuleName(e);return 10===d.kind?(c=e,u=n,l=i,fs(r.getExternalModuleFileFromDeclaration(c),u,l)||(a=d,(s=(o=t).renamedDependencies&&o.renamedDependencies.get(a.text))&&I.createLiteral(s))||I.getSynthesizedClone(d)):undefined},I.tryGetModuleNameFromFile=fs,I.getInitializerOfBindingOrAssignmentElement=function cg(e){if(I.isDeclarationBindingElement(e))return e.initializer;if(I.isPropertyAssignment(e)){var t=e.initializer;return I.isAssignmentExpression(t,!0)?t.right:undefined}return I.isShorthandPropertyAssignment(e)?e.objectAssignmentInitializer:I.isAssignmentExpression(e,!0)?e.right:I.isSpreadElement(e)?cg(e.expression):void 0},I.getTargetOfBindingOrAssignmentElement=_s,I.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 152:case 187:return e.dotDotDotToken;case 209:case 278:return e}return undefined},I.getPropertyNameOfBindingOrAssignmentElement=function(e){switch(e.kind){case 187:if(e.propertyName){var t=e.propertyName;return I.isComputedPropertyName(t)&&hs(t.expression)?t.expression:t}break;case 276:if(e.name){t=e.name;return I.isComputedPropertyName(t)&&hs(t.expression)?t.expression:t}break;case 278:return e.name}var n=_s(e);if(n&&I.isPropertyName(n))return I.isComputedPropertyName(n)&&hs(n.expression)?n.expression:n;I.Debug.fail("Invalid property name for binding element.")},I.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 185:case 186:case 188:return e.elements;case 189:return e.properties}},I.convertToArrayAssignmentElement=gs,I.convertToObjectAssignmentElement=ms,I.convertToAssignmentPattern=ys,I.convertToObjectAssignmentPattern=bs,I.convertToArrayAssignmentPattern=vs,I.convertToAssignmentElementTarget=Es,C=rg=rg||{},B=C.or(C.isTypeNode,C.isTypeParameterDeclaration),C.visitNode=Is,C.visitNodes=Ts,C.visitLexicalEnvironment=Cs,C.visitParameterList=Bs,C.visitFunctionBody=xs,C.visitEachChild=function(e,t,n,r,i){if(void 0===r&&(r=Ts),e===undefined)return undefined;var a=e.kind;if(0<a&&a<=148||179===a)return e;switch(a){case 73:return C.updateIdentifier(e,r(e.typeArguments,t,B));case 149:return C.updateQualifiedName(e,Is(e.left,t,C.isEntityName),Is(e.right,t,C.isIdentifier));case 150:return C.updateComputedPropertyName(e,Is(e.expression,t,C.isExpression));case 151:return C.updateTypeParameterDeclaration(e,Is(e.name,t,C.isIdentifier),Is(e.constraint,t,C.isTypeNode),Is(e["default"],t,C.isTypeNode));case 152:return C.updateParameter(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.dotDotDotToken,i,C.isToken),Is(e.name,t,C.isBindingName),Is(e.questionToken,i,C.isToken),Is(e.type,t,C.isTypeNode),Is(e.initializer,t,C.isExpression));case 153:return C.updateDecorator(e,Is(e.expression,t,C.isExpression));case 154:return C.updatePropertySignature(e,r(e.modifiers,t,C.isToken),Is(e.name,t,C.isPropertyName),Is(e.questionToken,i,C.isToken),Is(e.type,t,C.isTypeNode),Is(e.initializer,t,C.isExpression));case 155:return C.updateProperty(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isPropertyName),Is(e.questionToken||e.exclamationToken,i,C.isToken),Is(e.type,t,C.isTypeNode),Is(e.initializer,t,C.isExpression));case 156:return C.updateMethodSignature(e,r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.parameters,t,C.isParameterDeclaration),Is(e.type,t,C.isTypeNode),Is(e.name,t,C.isPropertyName),Is(e.questionToken,i,C.isToken));case 157:return C.updateMethod(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.asteriskToken,i,C.isToken),Is(e.name,t,C.isPropertyName),Is(e.questionToken,i,C.isToken),r(e.typeParameters,t,C.isTypeParameterDeclaration),Bs(e.parameters,t,n,r),Is(e.type,t,C.isTypeNode),xs(e.body,t,n));case 158:return C.updateConstructor(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Bs(e.parameters,t,n,r),xs(e.body,t,n));case 159:return C.updateGetAccessor(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isPropertyName),Bs(e.parameters,t,n,r),Is(e.type,t,C.isTypeNode),xs(e.body,t,n));case 160:return C.updateSetAccessor(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isPropertyName),Bs(e.parameters,t,n,r),xs(e.body,t,n));case 161:return C.updateCallSignature(e,r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.parameters,t,C.isParameterDeclaration),Is(e.type,t,C.isTypeNode));case 162:return C.updateConstructSignature(e,r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.parameters,t,C.isParameterDeclaration),Is(e.type,t,C.isTypeNode));case 163:return C.updateIndexSignature(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),r(e.parameters,t,C.isParameterDeclaration),Is(e.type,t,C.isTypeNode));case 164:return C.updateTypePredicateNode(e,Is(e.parameterName,t),Is(e.type,t,C.isTypeNode));case 165:return C.updateTypeReferenceNode(e,Is(e.typeName,t,C.isEntityName),r(e.typeArguments,t,C.isTypeNode));case 166:return C.updateFunctionTypeNode(e,r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.parameters,t,C.isParameterDeclaration),Is(e.type,t,C.isTypeNode));case 167:return C.updateConstructorTypeNode(e,r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.parameters,t,C.isParameterDeclaration),Is(e.type,t,C.isTypeNode));case 168:return C.updateTypeQueryNode(e,Is(e.exprName,t,C.isEntityName));case 169:return C.updateTypeLiteralNode(e,r(e.members,t,C.isTypeElement));case 170:return C.updateArrayTypeNode(e,Is(e.elementType,t,C.isTypeNode));case 171:return C.updateTupleTypeNode(e,r(e.elementTypes,t,C.isTypeNode));case 172:return C.updateOptionalTypeNode(e,Is(e.type,t,C.isTypeNode));case 173:return C.updateRestTypeNode(e,Is(e.type,t,C.isTypeNode));case 174:return C.updateUnionTypeNode(e,r(e.types,t,C.isTypeNode));case 175:return C.updateIntersectionTypeNode(e,r(e.types,t,C.isTypeNode));case 176:return C.updateConditionalTypeNode(e,Is(e.checkType,t,C.isTypeNode),Is(e.extendsType,t,C.isTypeNode),Is(e.trueType,t,C.isTypeNode),Is(e.falseType,t,C.isTypeNode));case 177:return C.updateInferTypeNode(e,Is(e.typeParameter,t,C.isTypeParameterDeclaration));case 184:return C.updateImportTypeNode(e,Is(e.argument,t,C.isTypeNode),Is(e.qualifier,t,C.isEntityName),Ts(e.typeArguments,t,C.isTypeNode),e.isTypeOf);case 178:return C.updateParenthesizedType(e,Is(e.type,t,C.isTypeNode));case 180:return C.updateTypeOperatorNode(e,Is(e.type,t,C.isTypeNode));case 181:return C.updateIndexedAccessTypeNode(e,Is(e.objectType,t,C.isTypeNode),Is(e.indexType,t,C.isTypeNode));case 182:return C.updateMappedTypeNode(e,Is(e.readonlyToken,i,C.isToken),Is(e.typeParameter,t,C.isTypeParameterDeclaration),Is(e.questionToken,i,C.isToken),Is(e.type,t,C.isTypeNode));case 183:return C.updateLiteralTypeNode(e,Is(e.literal,t,C.isExpression));case 185:return C.updateObjectBindingPattern(e,r(e.elements,t,C.isBindingElement));case 186:return C.updateArrayBindingPattern(e,r(e.elements,t,C.isArrayBindingElement));case 187:return C.updateBindingElement(e,Is(e.dotDotDotToken,i,C.isToken),Is(e.propertyName,t,C.isPropertyName),Is(e.name,t,C.isBindingName),Is(e.initializer,t,C.isExpression));case 188:return C.updateArrayLiteral(e,r(e.elements,t,C.isExpression));case 189:return C.updateObjectLiteral(e,r(e.properties,t,C.isObjectLiteralElementLike));case 190:return C.updatePropertyAccess(e,Is(e.expression,t,C.isExpression),Is(e.name,t,C.isIdentifier));case 191:return C.updateElementAccess(e,Is(e.expression,t,C.isExpression),Is(e.argumentExpression,t,C.isExpression));case 192:return C.updateCall(e,Is(e.expression,t,C.isExpression),r(e.typeArguments,t,C.isTypeNode),r(e.arguments,t,C.isExpression));case 193:return C.updateNew(e,Is(e.expression,t,C.isExpression),r(e.typeArguments,t,C.isTypeNode),r(e.arguments,t,C.isExpression));case 194:return C.updateTaggedTemplate(e,Is(e.tag,t,C.isExpression),Ts(e.typeArguments,t,C.isExpression),Is(e.template,t,C.isTemplateLiteral));case 195:return C.updateTypeAssertion(e,Is(e.type,t,C.isTypeNode),Is(e.expression,t,C.isExpression));case 196:return C.updateParen(e,Is(e.expression,t,C.isExpression));case 197:return C.updateFunctionExpression(e,r(e.modifiers,t,C.isModifier),Is(e.asteriskToken,i,C.isToken),Is(e.name,t,C.isIdentifier),r(e.typeParameters,t,C.isTypeParameterDeclaration),Bs(e.parameters,t,n,r),Is(e.type,t,C.isTypeNode),xs(e.body,t,n));case 198:return C.updateArrowFunction(e,r(e.modifiers,t,C.isModifier),r(e.typeParameters,t,C.isTypeParameterDeclaration),Bs(e.parameters,t,n,r),Is(e.type,t,C.isTypeNode),Is(e.equalsGreaterThanToken,t,C.isToken),xs(e.body,t,n));case 199:return C.updateDelete(e,Is(e.expression,t,C.isExpression));case 200:return C.updateTypeOf(e,Is(e.expression,t,C.isExpression));case 201:return C.updateVoid(e,Is(e.expression,t,C.isExpression));case 202:return C.updateAwait(e,Is(e.expression,t,C.isExpression));case 203:return C.updatePrefix(e,Is(e.operand,t,C.isExpression));case 204:return C.updatePostfix(e,Is(e.operand,t,C.isExpression));case 205:return C.updateBinary(e,Is(e.left,t,C.isExpression),Is(e.right,t,C.isExpression),Is(e.operatorToken,t,C.isToken));case 206:return C.updateConditional(e,Is(e.condition,t,C.isExpression),Is(e.questionToken,t,C.isToken),Is(e.whenTrue,t,C.isExpression),Is(e.colonToken,t,C.isToken),Is(e.whenFalse,t,C.isExpression));case 207:return C.updateTemplateExpression(e,Is(e.head,t,C.isTemplateHead),r(e.templateSpans,t,C.isTemplateSpan));case 208:return C.updateYield(e,Is(e.asteriskToken,i,C.isToken),Is(e.expression,t,C.isExpression));case 209:return C.updateSpread(e,Is(e.expression,t,C.isExpression));case 210:return C.updateClassExpression(e,r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isIdentifier),r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.heritageClauses,t,C.isHeritageClause),r(e.members,t,C.isClassElement));case 212:return C.updateExpressionWithTypeArguments(e,r(e.typeArguments,t,C.isTypeNode),Is(e.expression,t,C.isExpression));case 213:return C.updateAsExpression(e,Is(e.expression,t,C.isExpression),Is(e.type,t,C.isTypeNode));case 214:return C.updateNonNullExpression(e,Is(e.expression,t,C.isExpression));case 215:return C.updateMetaProperty(e,Is(e.name,t,C.isIdentifier));case 217:return C.updateTemplateSpan(e,Is(e.expression,t,C.isExpression),Is(e.literal,t,C.isTemplateMiddleOrTemplateTail));case 219:return C.updateBlock(e,r(e.statements,t,C.isStatement));case 220:return C.updateVariableStatement(e,r(e.modifiers,t,C.isModifier),Is(e.declarationList,t,C.isVariableDeclarationList));case 222:return C.updateExpressionStatement(e,Is(e.expression,t,C.isExpression));case 223:return C.updateIf(e,Is(e.expression,t,C.isExpression),Is(e.thenStatement,t,C.isStatement,C.liftToBlock),Is(e.elseStatement,t,C.isStatement,C.liftToBlock));case 224:return C.updateDo(e,Is(e.statement,t,C.isStatement,C.liftToBlock),Is(e.expression,t,C.isExpression));case 225:return C.updateWhile(e,Is(e.expression,t,C.isExpression),Is(e.statement,t,C.isStatement,C.liftToBlock));case 226:return C.updateFor(e,Is(e.initializer,t,C.isForInitializer),Is(e.condition,t,C.isExpression),Is(e.incrementor,t,C.isExpression),Is(e.statement,t,C.isStatement,C.liftToBlock));case 227:return C.updateForIn(e,Is(e.initializer,t,C.isForInitializer),Is(e.expression,t,C.isExpression),Is(e.statement,t,C.isStatement,C.liftToBlock));case 228:return C.updateForOf(e,Is(e.awaitModifier,t,C.isToken),Is(e.initializer,t,C.isForInitializer),Is(e.expression,t,C.isExpression),Is(e.statement,t,C.isStatement,C.liftToBlock));case 229:return C.updateContinue(e,Is(e.label,t,C.isIdentifier));case 230:return C.updateBreak(e,Is(e.label,t,C.isIdentifier));case 231:return C.updateReturn(e,Is(e.expression,t,C.isExpression));case 232:return C.updateWith(e,Is(e.expression,t,C.isExpression),Is(e.statement,t,C.isStatement,C.liftToBlock));case 233:return C.updateSwitch(e,Is(e.expression,t,C.isExpression),Is(e.caseBlock,t,C.isCaseBlock));case 234:return C.updateLabel(e,Is(e.label,t,C.isIdentifier),Is(e.statement,t,C.isStatement,C.liftToBlock));case 235:return C.updateThrow(e,Is(e.expression,t,C.isExpression));case 236:return C.updateTry(e,Is(e.tryBlock,t,C.isBlock),Is(e.catchClause,t,C.isCatchClause),Is(e.finallyBlock,t,C.isBlock));case 238:return C.updateVariableDeclaration(e,Is(e.name,t,C.isBindingName),Is(e.type,t,C.isTypeNode),Is(e.initializer,t,C.isExpression));case 239:return C.updateVariableDeclarationList(e,r(e.declarations,t,C.isVariableDeclaration));case 240:return C.updateFunctionDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.asteriskToken,i,C.isToken),Is(e.name,t,C.isIdentifier),r(e.typeParameters,t,C.isTypeParameterDeclaration),Bs(e.parameters,t,n,r),Is(e.type,t,C.isTypeNode),xs(e.body,t,n));case 241:return C.updateClassDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isIdentifier),r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.heritageClauses,t,C.isHeritageClause),r(e.members,t,C.isClassElement));case 242:return C.updateInterfaceDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isIdentifier),r(e.typeParameters,t,C.isTypeParameterDeclaration),r(e.heritageClauses,t,C.isHeritageClause),r(e.members,t,C.isTypeElement));case 243:return C.updateTypeAliasDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isIdentifier),r(e.typeParameters,t,C.isTypeParameterDeclaration),Is(e.type,t,C.isTypeNode));case 244:return C.updateEnumDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isIdentifier),r(e.members,t,C.isEnumMember));case 245:return C.updateModuleDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isIdentifier),Is(e.body,t,C.isModuleBody));case 246:return C.updateModuleBlock(e,r(e.statements,t,C.isStatement));case 247:return C.updateCaseBlock(e,r(e.clauses,t,C.isCaseOrDefaultClause));case 248:return C.updateNamespaceExportDeclaration(e,Is(e.name,t,C.isIdentifier));case 249:return C.updateImportEqualsDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.name,t,C.isIdentifier),Is(e.moduleReference,t,C.isModuleReference));case 250:return C.updateImportDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.importClause,t,C.isImportClause),Is(e.moduleSpecifier,t,C.isExpression));case 251:return C.updateImportClause(e,Is(e.name,t,C.isIdentifier),Is(e.namedBindings,t,C.isNamedImportBindings));case 252:return C.updateNamespaceImport(e,Is(e.name,t,C.isIdentifier));case 253:return C.updateNamedImports(e,r(e.elements,t,C.isImportSpecifier));case 254:return C.updateImportSpecifier(e,Is(e.propertyName,t,C.isIdentifier),Is(e.name,t,C.isIdentifier));case 255:return C.updateExportAssignment(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.expression,t,C.isExpression));case 256:return C.updateExportDeclaration(e,r(e.decorators,t,C.isDecorator),r(e.modifiers,t,C.isModifier),Is(e.exportClause,t,C.isNamedExports),Is(e.moduleSpecifier,t,C.isExpression));case 257:return C.updateNamedExports(e,r(e.elements,t,C.isExportSpecifier));case 258:return C.updateExportSpecifier(e,Is(e.propertyName,t,C.isIdentifier),Is(e.name,t,C.isIdentifier));case 260:return C.updateExternalModuleReference(e,Is(e.expression,t,C.isExpression));case 261:return C.updateJsxElement(e,Is(e.openingElement,t,C.isJsxOpeningElement),r(e.children,t,C.isJsxChild),Is(e.closingElement,t,C.isJsxClosingElement));case 262:return C.updateJsxSelfClosingElement(e,Is(e.tagName,t,C.isJsxTagNameExpression),r(e.typeArguments,t,C.isTypeNode),Is(e.attributes,t,C.isJsxAttributes));case 263:return C.updateJsxOpeningElement(e,Is(e.tagName,t,C.isJsxTagNameExpression),r(e.typeArguments,t,C.isTypeNode),Is(e.attributes,t,C.isJsxAttributes));case 264:return C.updateJsxClosingElement(e,Is(e.tagName,t,C.isJsxTagNameExpression));case 265:return C.updateJsxFragment(e,Is(e.openingFragment,t,C.isJsxOpeningFragment),r(e.children,t,C.isJsxChild),Is(e.closingFragment,t,C.isJsxClosingFragment));case 268:return C.updateJsxAttribute(e,Is(e.name,t,C.isIdentifier),Is(e.initializer,t,C.isStringLiteralOrJsxExpression));case 269:return C.updateJsxAttributes(e,r(e.properties,t,C.isJsxAttributeLike));case 270:return C.updateJsxSpreadAttribute(e,Is(e.expression,t,C.isExpression));case 271:return C.updateJsxExpression(e,Is(e.expression,t,C.isExpression));case 272:return C.updateCaseClause(e,Is(e.expression,t,C.isExpression),r(e.statements,t,C.isStatement));case 273:return C.updateDefaultClause(e,r(e.statements,t,C.isStatement));case 274:return C.updateHeritageClause(e,r(e.types,t,C.isExpressionWithTypeArguments));case 275:return C.updateCatchClause(e,Is(e.variableDeclaration,t,C.isVariableDeclaration),Is(e.block,t,C.isBlock));case 276:return C.updatePropertyAssignment(e,Is(e.name,t,C.isPropertyName),Is(e.initializer,t,C.isExpression));case 277:return C.updateShorthandPropertyAssignment(e,Is(e.name,t,C.isIdentifier),Is(e.objectAssignmentInitializer,t,C.isExpression));case 278:return C.updateSpreadAssignment(e,Is(e.expression,t,C.isExpression));case 279:return C.updateEnumMember(e,Is(e.name,t,C.isPropertyName),Is(e.initializer,t,C.isExpression));case 285:return C.updateSourceFileNode(e,Cs(e.statements,t,n));case 314:return C.updatePartiallyEmittedExpression(e,Is(e.expression,t,C.isExpression));case 315:return C.updateCommaList(e,r(e.elements,t,C.isExpression));default:return e}},(x=rg=rg||{}).reduceEachChild=Ds,x.mergeLexicalEnvironment=function(e,t){return x.some(t)?x.isNodeArray(e)?x.setTextRange(x.createNodeArray(x.insertStatementsAfterStandardPrologue(e.slice(),t)),e):x.insertStatementsAfterStandardPrologue(e,t):e},x.liftToBlock=function(e){return x.Debug.assert(x.every(e,x.isStatement),"Cannot lift nodes to a Block."),x.singleOrUndefined(e)||x.createBlock(e)},x.aggregateTransformFlags=function(e){return ks(e),e},function(F){F.createSourceMapGenerator=function(r,e,t,i,n){var a,o,s=n.extendedDiagnostics?F.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):F.performance.nullTimer,T=s.enter,C=s.exit,c=[],u=[],l=F.createMap(),d=[],p="",f=0,_=0,h=0,g=0,m=0,y=0,b=!1,B=0,v=0,E=0,I=0,x=0,S=0,N=!1,D=!1,k=!1;return{getSources:function(){return c},addSource:A,setSourceContent:w,addName:V,addMapping:P,appendSourceMap:function(e,t,n,r,i,a){var o;F.Debug.assert(B<=e,"generatedLine cannot backtrack"),F.Debug.assert(0<=t,"generatedCharacter cannot be negative"),T();for(var s,c=[],u=O(n.mappings),l=u.next(),d=l.value,p=l.done;!p&&(!a||!(d.generatedLine>a.line||d.generatedLine===a.line&&d.generatedCharacter>a.character));o=u.next(),d=o.value,p=o.done){var f,_,h,g,m,y,b,v,E,I;i&&(d.generatedLine<i.line||i.line===d.generatedLine&&d.generatedCharacter<i.character)||(g=h=_=f=void 0,d.sourceIndex!==undefined&&((f=c[d.sourceIndex])===undefined&&(m=n.sources[d.sourceIndex],y=n.sourceRoot?F.combinePaths(n.sourceRoot,m):m,b=F.combinePaths(F.getDirectoryPath(r),y),c[d.sourceIndex]=f=A(b),n.sourcesContent&&"string"==typeof n.sourcesContent[d.sourceIndex]&&w(f,n.sourcesContent[d.sourceIndex])),_=d.sourceLine,h=d.sourceCharacter,n.names&&d.nameIndex!==undefined&&(g=(s=s||[])[d.nameIndex])===undefined&&(s[d.nameIndex]=g=V(n.names[d.nameIndex]))),v=d.generatedLine-(i?i.line:0),E=v+e,I=i&&i.line===d.generatedLine?d.generatedCharacter-i.character:d.generatedCharacter,P(E,0==v?I+t:I,f,_,h,g))}C()},toJSON:M,toString:function(){return JSON.stringify(M())}};function A(e){T();var t=F.getRelativePathToDirectoryOrUrl(i,e,r.getCurrentDirectory(),r.getCanonicalFileName,!0),n=l.get(t);return n===undefined&&(n=u.length,u.push(t),c.push(e),l.set(t,n)),C(),n}function w(e,t){if(T(),null!==t){for(a=a||[];a.length<e;)a.push(null);a[e]=t}C()}function V(e){T();var t=(o=o||F.createMap()).get(e);return t===undefined&&(t=d.length,d.push(e),o.set(e,t)),C(),t}function P(e,t,n,r,i,a){var o,s,c;F.Debug.assert(B<=e,"generatedLine cannot backtrack"),F.Debug.assert(0<=t,"generatedCharacter cannot be negative"),F.Debug.assert(n===undefined||0<=n,"sourceIndex cannot be negative"),F.Debug.assert(r===undefined||0<=r,"sourceLine cannot be negative"),F.Debug.assert(i===undefined||0<=i,"sourceCharacter cannot be negative"),T(),N&&B===e&&v===t&&(s=r,c=i,(o=n)===undefined||s===undefined||c===undefined||E!==o||!(s<I||I===s&&c<x))||(L(),B=e,v=t,N=!(k=D=!1)),n!==undefined&&r!==undefined&&i!==undefined&&(E=n,I=r,x=i,D=!0,a!==undefined&&(S=a,k=!0)),C()}function L(){if(N&&(!b||f!==B||_!==v||h!==E||g!==I||m!==x||y!==S)){if(T(),f<B)for(;p+=";",_=0,++f<B;);else F.Debug.assertEqual(f,B,"generatedLine cannot backtrack"),b&&(p+=",");p+=R(v-_),_=v,D&&(p+=R(E-h),h=E,p+=R(I-g),g=I,p+=R(x-m),m=x,k&&(p+=R(S-y),y=S)),b=!0,C()}}function M(){return L(),{version:3,file:e,sourceRoot:t,sources:u,names:d,mappings:p,sourcesContent:a}}};var i=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,a=/^\s*(\/\/[@#] .*)?$/;function t(e){return"string"==typeof e||null===e}function r(e){return null!==e&&"object"===zb(e)&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&&F.isArray(e.sources)&&F.every(e.sources,F.isString)&&(e.sourceRoot===undefined||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(e.sourcesContent===undefined||null===e.sourcesContent||F.isArray(e.sourcesContent)&&F.every(e.sourcesContent,t))&&(e.names===undefined||null===e.names||F.isArray(e.names)&&F.every(e.names,F.isString))}function O(a){var t,r=!1,o=0,i=0,s=0,c=0,u=0,l=0,d=0;return{get pos(){return o},get error(){return t},get state(){return p(!0,!0)},next:function(){for(;!r&&o<a.length;){var e=a.charCodeAt(o);if(59!==e){if(44!==e){var t=!1,n=!1;if(s+=y(),g())return f();if(s<0)return h("Invalid generatedCharacter found");if(!m()){if(t=!0,c+=y(),g())return f();if(c<0)return h("Invalid sourceIndex found");if(m())return h("Unsupported Format: No entries after sourceIndex");if(u+=y(),g())return f();if(u<0)return h("Invalid sourceLine found");if(m())return h("Unsupported Format: No entries after sourceLine");if(l+=y(),g())return f();if(l<0)return h("Invalid sourceCharacter found");if(!m()){if(n=!0,d+=y(),g())return f();if(d<0)return h("Invalid nameIndex found");if(!m())return h("Unsupported Error Format: Entries after nameIndex")}}return{value:p(t,n),done:r}}o++}else i++,s=0,o++}return f()}};function p(e,t){return{generatedLine:i,generatedCharacter:s,sourceIndex:e?c:undefined,sourceLine:e?u:undefined,sourceCharacter:e?l:undefined,nameIndex:t?d:undefined}}function f(){return r=!0,{value:undefined,done:!0}}function _(e){t===undefined&&(t=e)}function h(e){return _(e),f()}function g(){return t!==undefined}function m(){return o===a.length||44===a.charCodeAt(o)||59===a.charCodeAt(o)}function y(){for(var e,t=!0,n=0,r=0;t;o++){if(o>=a.length)return _("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var i=65<=(e=a.charCodeAt(o))&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43===e?62:47===e?63:-1;if(-1==i)return _("Invalid character in VLQ"),-1;t=0!=(32&i),r|=(31&i)<<n,n+=5}return 0==(1&r)?r>>=1:r=-(r>>=1),r}}function _(e){return e.sourceIndex!==undefined&&e.sourceLine!==undefined&&e.sourceCharacter!==undefined}function R(e){e<0?e=1+(-e<<1):e<<=1;var t,n="";do{var r=31&e;0<(e>>=5)&&(r|=32),n+=String.fromCharCode(0<=(t=r)&&t<26?65+t:26<=t&&t<52?97+t-26:52<=t&&t<62?48+t-52:62===t?43:63===t?47:F.Debug.fail(t+": not a base64 value"))}while(0<e);return n}function h(e){return e.sourceIndex!==undefined&&e.sourcePosition!==undefined}function g(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function m(e,t){return F.Debug.assert(e.sourceIndex===t.sourceIndex),F.compareValues(e.sourcePosition,t.sourcePosition)}function y(e,t){return F.compareValues(e.generatedPosition,t.generatedPosition)}function b(e){return e.sourcePosition}function v(e){return e.generatedPosition}F.getLineInfo=function(t,n){return{getLineCount:function(){return n.length},getLineText:function(e){return t.substring(n[e],n[e+1])}}},F.tryGetSourceMappingURL=function(e){for(var t=e.getLineCount()-1;0<=t;t--){var n=e.getLineText(t),r=i.exec(n);if(r)return r[1];if(!n.match(a))break}},F.isRawSourceMap=r,F.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(r(t))return t}catch(n){}return undefined},F.decodeMappings=O,F.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},F.isSourceMapping=_,F.createDocumentPositionMapper=function(a,o,e){var n,i,s,t=F.getDirectoryPath(e),r=o.sourceRoot?F.getNormalizedAbsolutePath(o.sourceRoot,t):t,c=F.getNormalizedAbsolutePath(o.file,t),u=a.getSourceFileLike(c),l=o.sources.map(function(e){return F.getNormalizedAbsolutePath(e,r)}),d=F.createMapFromEntries(l.map(function(e,t){return[a.getCanonicalFileName(e),t]}));return{getSourcePosition:function(e){var t=function(){if(i===undefined){for(var e=[],t=0,n=f();t<n.length;t++){var r=n[t];e.push(r)}i=F.sortAndDeduplicate(e,y,g)}return i}();if(!F.some(t))return e;var n=F.binarySearchKey(t,e.pos,v,F.compareValues);n<0&&(n=~n);var r=t[n];return r!==undefined&&h(r)?{fileName:l[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(e){var t=d.get(a.getCanonicalFileName(e.fileName));if(t===undefined)return e;var n=function(e){if(s===undefined){for(var t=[],n=0,r=f();n<r.length;n++){var i,a=r[n];h(a)&&((i=t[a.sourceIndex])||(t[a.sourceIndex]=i=[]),i.push(a))}s=t.map(function(e){return F.sortAndDeduplicate(e,m,g)})}return s[e]}(t);if(!F.some(n))return e;var r=F.binarySearchKey(n,e.pos,b,F.compareValues);r<0&&(r=~r);var i=n[r];return i!==undefined&&i.sourceIndex===t?{fileName:c,pos:i.generatedPosition}:e}};function p(e){var t,n,r,i=u!==undefined?F.getPositionOfLineAndCharacter(u,e.generatedLine,e.generatedCharacter,!0):-1;return _(e)&&(t=a.getSourceFileLike(l[e.sourceIndex]),n=o.sources[e.sourceIndex],r=t!==undefined?F.getPositionOfLineAndCharacter(t,e.sourceLine,e.sourceCharacter,!0):-1),{generatedPosition:i,source:n,sourceIndex:e.sourceIndex,sourcePosition:r,nameIndex:e.nameIndex}}function f(){var e,t;return n===undefined&&(e=O(o.mappings),t=F.arrayFrom(e,p),n=e.error!==undefined?(a.log&&a.log("Encountered error while decoding sourcemap: "+e.error),F.emptyArray):t),n}},F.identitySourceMapConsumer={getSourcePosition:F.identity,getGeneratedPosition:F.identity}}(rg=rg||{}),(S=rg=rg||{}).getOriginalNodeId=Vs,S.chainBundle=function(t){return function(e){return(285===e.kind?t:function(e){return S.createBundle(S.map(e.sourceFiles,t),e.prepends)})(e)}},S.getImportNeedsImportStarHelper=Ls,S.getImportNeedsImportDefaultHelper=Ms,S.collectExternalModuleInfo=function(e,t,n){for(var r,i=[],a=S.createMultiMap(),o=[],s=S.createMap(),c=!1,u=!1,l=!1,d=0,p=e.statements;d<p.length;d++){var f=p[d];switch(f.kind){case 250:i.push(f),l=l||Ls(f)||Ms(f);break;case 249:260===f.moduleReference.kind&&i.push(f);break;case 256:if(f.moduleSpecifier)f.exportClause?i.push(f):(i.push(f),u=!0);else for(var _=0,h=f.exportClause.elements;_<h.length;_++){var g,m=h[_];s.get(S.idText(m.name))||(g=m.propertyName||m.name,a.add(S.idText(g),m),(v=t.getReferencedImportDeclaration(g)||t.getReferencedValueDeclaration(g))&&Fs(o,Vs(v),m.name),s.set(S.idText(m.name),!0),E=S.append(E,m.name))}break;case 255:f.isExportEquals&&!r&&(r=f);break;case 220:if(S.hasModifier(f,1))for(var y=0,b=f.declarationList.declarations;y<b.length;y++)var v,E=function C(e,t,n){if(S.isBindingPattern(e.name))for(var r=0,i=e.name.elements;r<i.length;r++){var a=i[r];S.isOmittedExpression(a)||(n=C(a,t,n))}else{var o;S.isGeneratedIdentifier(e.name)||(o=S.idText(e.name),t.get(o)||(t.set(o,!0),n=S.append(n,e.name)))}return n}(v=b[y],s,E);break;case 240:S.hasModifier(f,1)&&(S.hasModifier(f,512)?c||(Fs(o,Vs(f),S.getDeclarationName(f)),c=!0):(g=f.name,s.get(S.idText(g))||(Fs(o,Vs(f),g),s.set(S.idText(g),!0),E=S.append(E,g))));break;case 241:S.hasModifier(f,1)&&(S.hasModifier(f,512)?c||(Fs(o,Vs(f),S.getDeclarationName(f)),c=!0):(g=f.name)&&!s.get(S.idText(g))&&(Fs(o,Vs(f),g),s.set(S.idText(g),!0),E=S.append(E,g)))}}var I=S.getOrCreateExternalHelpersModuleNameIfNeeded(e,n,u,l),T=I&&S.createImportDeclaration(undefined,undefined,S.createImportClause(undefined,S.createNamespaceImport(I)),S.createLiteral(S.externalHelpersModuleNameText));return T&&(S.addEmitFlags(T,67108864),i.unshift(T)),{externalImports:i,exportSpecifiers:a,exportEquals:r,hasExportStarsToExportValues:u,exportedBindings:o,exportedNames:E,externalHelpersImportDeclaration:T}},S.isSimpleCopiableExpression=function(e){return S.isStringLiteralLike(e)||8===e.kind||S.isKeyword(e.kind)||S.isIdentifier(e)},S.helperString=function(r){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];return function(e){for(var t="",n=0;n<i.length;n++)t+=r[n],t+=e(i[n]);return t+=r[r.length-1]}},N=rg=rg||{},(D=N.FlattenLevel||(N.FlattenLevel={}))[D.All=0]="All",D[D.ObjectRest=1]="ObjectRest",N.flattenDestructuringAssignment=function(e,a,t,n,r,o){var i,s,c=e;if(N.isDestructuringAssignment(e))for(i=e.right;N.isEmptyArrayLiteral(e.left)||N.isEmptyObjectLiteral(e.left);){if(!N.isDestructuringAssignment(i))return N.visitNode(i,a,N.isExpression);c=e=i,i=e.right}var u={context:t,level:n,downlevelIteration:!!t.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:l,emitBindingOrAssignment:function(e,t,n,r){N.Debug.assertNode(e,o?N.isIdentifier:N.isExpression);var i=o?o(e,t,n):N.setTextRange(N.createAssignment(N.visitNode(e,a,N.isExpression),t),n);i.original=r,l(i)},createArrayBindingOrAssignmentPattern:Ws,createObjectBindingOrAssignmentPattern:Ys,createArrayBindingOrAssignmentElement:zs,visitor:a};if(i&&(i=N.visitNode(i,a,N.isExpression),N.isIdentifier(i)&&Os(e,i.escapedText)?i=Hs(u,i,!1,c):r?i=Hs(u,i,!0,c):N.nodeIsSynthesized(e)&&(c=i)),Rs(u,e,i,c,N.isDestructuringAssignment(e)),i&&r){if(!N.some(s))return i;s.push(i)}return N.aggregateTransformFlags(N.inlineExpressions(s))||N.createOmittedExpression();function l(e){N.setEmitFlags(e,64),N.aggregateTransformFlags(e),s=N.append(s,e)}},N.flattenDestructuringBinding=function(e,t,n,r,i,a,o){void 0===a&&(a=!1);var s,c,u,l,d=[],p=[],f={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:a,emitExpression:function(e){u=N.append(u,e)},emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:js,createObjectBindingOrAssignmentPattern:Gs,createArrayBindingOrAssignmentElement:Js,visitor:t};!N.isVariableDeclaration(e)||(s=N.getInitializerOfBindingOrAssignmentElement(e))&&N.isIdentifier(s)&&Os(e,s.escapedText)&&(s=Hs(f,s,!1,s),e=N.updateVariableDeclaration(e,e.name,e.type,s)),Rs(f,e,i,e,o),u&&(c=N.createTempVariable(undefined),a?(b=N.inlineExpressions(u),u=undefined,T(c,b,undefined,undefined)):(n.hoistVariableDeclaration(c),(l=N.last(d)).pendingExpressions=N.append(l.pendingExpressions,N.createAssignment(c,l.value)),N.addRange(l.pendingExpressions,u),l.value=c));for(var _=0,h=d;_<h.length;_++){var g=h[_],m=g.pendingExpressions,y=g.name,b=g.value,v=g.location,E=g.original,I=N.createVariableDeclaration(y,undefined,m?N.inlineExpressions(N.append(m,b)):b);I.original=E,N.setTextRange(I,v),N.isIdentifier(y)&&N.setEmitFlags(I,64),N.aggregateTransformFlags(I),p.push(I)}return p;function T(e,t,n,r){N.Debug.assertNode(e,N.isBindingName),u&&(t=N.inlineExpressions(N.append(u,t)),u=undefined),d.push({pendingExpressions:u,name:e,value:t,location:n,original:r})}},N.restHelper={name:"typescript:rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},Je=rg=rg||{},(k={})[k.ClassAliases=1]="ClassAliases",k[k.NamespaceExports=2]="NamespaceExports",k[k.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers",(A={})[A.None=0]="None",A[A.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",A[A.HasConstructorDecorators=2]="HasConstructorDecorators",A[A.HasMemberDecorators=4]="HasMemberDecorators",A[A.IsExportOfNamespace=8]="IsExportOfNamespace",A[A.IsNamedExternalExport=16]="IsNamedExternalExport",A[A.IsDefaultExternalExport=32]="IsDefaultExternalExport",A[A.IsDerivedClass=64]="IsDerivedClass",A[A.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",A[A.HasAnyDecorators=6]="HasAnyDecorators",A[A.NeedsName=5]="NeedsName",A[A.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",A[A.IsExported=56]="IsExported",Je.transformTypeScript=function(_){var h,g,m,y,o,f,d,b,a,v,E=_.startLexicalEnvironment,s=_.resumeLexicalEnvironment,I=_.endLexicalEnvironment,T=_.hoistVariableDeclaration,C=_.getEmitResolver(),B=_.getCompilerOptions(),c=Je.getStrictOptionValue(B,"strictNullChecks"),x=Je.getEmitScriptTarget(B),S=Je.getEmitModuleKind(B),u=_.onEmitNode,n=_.onSubstituteNode;return _.onEmitNode=function(e,t,n){var r=a,i=h;Je.isSourceFile(t)&&(h=t);2&d&&function(e){return 245===Je.getOriginalNode(e).kind}(t)&&(a|=2);8&d&&function(e){return 244===Je.getOriginalNode(e).kind}(t)&&(a|=8);u(e,t,n),a=r,h=i},_.onSubstituteNode=function(e,t){{if(t=n(e,t),1===e)return function(e){switch(e.kind){case 73:return function(e){return function(e){if(1&d&&33554432&C.getNodeCheckFlags(e)){var t=C.getReferencedValueDeclaration(e);if(t){var n=b[t.id];if(n){var r=Je.getSynthesizedClone(n);return Je.setSourceMapRange(r,e),Je.setCommentRange(r,e),r}}}return undefined}(e)||Ge(e)||e}(e);case 190:case 191:return Ye(e)}return e}(t);if(Je.isShorthandPropertyAssignment(t))return function(e){if(2&d){var t=e.name,n=Ge(t);if(n){if(e.objectAssignmentInitializer){var r=Je.createAssignment(n,e.objectAssignmentInitializer);return Je.setTextRange(Je.createPropertyAssignment(t,r),e)}return Je.setTextRange(Je.createPropertyAssignment(t,n),e)}}return e}(t)}return t},_.enableSubstitution(190),_.enableSubstitution(191),function(e){return(286!==e.kind?t:function(e){return Je.createBundle(e.sourceFiles.map(t),Je.mapDefined(e.prepends,function(e){return 288===e.kind?Je.createUnparsedSourceFile(e,"js"):e}))})(e)};function t(e){if(e.isDeclarationFile)return e;var t=N(h=e,L);return Je.addEmitHelpers(t,_.readEmitHelpers()),h=undefined,t}function N(e,t){var n=y,r=o,i=f;!function(e){switch(e.kind){case 285:case 247:case 246:case 219:y=e,o=undefined,f=undefined;break;case 241:case 240:if(Je.hasModifier(e,2))break;e.name?Te(e):Je.Debug.assert(241===e.kind||Je.hasModifier(e,512)),Je.isClassDeclaration(e)&&(o=e)}}(e);var a=t(e);return y!==n&&(f=i),y=n,o=r,a}function D(e){return N(e,r)}function r(e){return 1&e.transformFlags?P(e):e}function i(e){return N(e,l)}function l(e){switch(e.kind){case 250:case 249:case 255:case 256:return function(e){if(Je.getParseTreeNode(e)!==e)return 1&e.transformFlags?Je.visitEachChild(e,D,_):e;switch(e.kind){case 250:return function(e){if(!e.importClause)return e;var t=Je.visitNode(e.importClause,Se,Je.isImportClause);return t?Je.updateImportDeclaration(e,undefined,undefined,t,e.moduleSpecifier):undefined}(e);case 249:return we(e);case 255:return function(e){return C.isValueAliasDeclaration(e)?Je.visitEachChild(e,D,_):undefined}(e);case 256:return function(e){if(!e.exportClause)return B.isolatedModules||C.moduleExportsSomeValue(e.moduleSpecifier)?e:undefined;if(!C.isValueAliasDeclaration(e))return undefined;var t=Je.visitNode(e.exportClause,ke,Je.isNamedExports);return t?Je.updateExportDeclaration(e,undefined,undefined,t,e.moduleSpecifier):undefined}(e);default:Je.Debug.fail("Unhandled ellided statement")}}(e);default:return r(e)}}function k(e){return N(e,p)}function p(e){return 256===e.kind||250===e.kind||251===e.kind||249===e.kind&&260===e.moduleReference.kind?undefined:1&e.transformFlags||Je.hasModifier(e,1)?P(e):e}function A(e){return N(e,w)}function w(e){switch(e.kind){case 158:return undefined;case 155:case 163:case 159:case 160:case 157:return r(e);case 218:return e;default:return Je.Debug.failBadSyntaxKind(e)}}function V(e){return 2270&Je.modifierToFlag(e.kind)||g&&86===e.kind?undefined:e}function P(e){if(Je.isStatement(e)&&Je.hasModifier(e,2))return Je.createNotEmittedStatement(e);switch(e.kind){case 86:case 81:return g?undefined:e;case 116:case 114:case 115:case 119:case 78:case 126:case 134:case 170:case 171:case 172:case 173:case 169:case 164:case 151:case 121:case 144:case 124:case 139:case 136:case 133:case 107:case 140:case 167:case 166:case 168:case 165:case 174:case 175:case 176:case 178:case 179:case 180:case 181:case 182:case 183:case 163:case 153:case 243:return undefined;case 155:return function(e){var t=ge(e.name,Je.some(e.decorators)||!!e.initializer,!0);t&&!_e(t)&&(v=v||[]).push(t);return undefined}(e);case 248:return undefined;case 158:return ye(f=e)?Je.updateConstructor(f,Je.visitNodes(f.decorators,D,Je.isDecorator),Je.visitNodes(f.modifiers,D,Je.isModifier),Je.visitParameterList(f.parameters,D,_),Je.visitFunctionBody(f.body,D,_)):undefined;case 242:return Je.createNotEmittedStatement(e);case 241:return function(e){if(!(O(e)||g&&Je.hasModifier(e,1)))return Je.visitEachChild(e,D,_);var t=v;v=undefined;var n=W(e,!0),r=function(e,t){var n=0;Je.some(t)&&(n|=1);var r=Je.getEffectiveBaseTypeNode(e);r&&97!==Je.skipOuterExpressions(r.expression).kind&&(n|=64);!function(e){if(e.decorators&&0<e.decorators.length)return!0;var t=Je.getFirstConstructorWithBody(e);if(t)return Je.forEach(t.parameters,M);return!1}(e)||(n|=2);Je.childIsDecorated(e)&&(n|=4);Ve(e)?n|=8:!function(e){return Pe(e)&&Je.hasModifier(e,512)}(e)?Le(e)&&(n|=16):n|=32;x<=1&&7&n&&(n|=128);return n}(e,n);128&r&&_.startLexicalEnvironment();var i=e.name||(5&r?Je.getGeneratedNameForNode(e):undefined),a=(2&r?function(e,t,n){var r=Je.moveRangePastDecorators(e),i=function(e){if(16777216&C.getNodeCheckFlags(e)){We();var t=Je.createUniqueName(e.name&&!Je.isGeneratedIdentifier(e.name)?Je.idText(e.name):"default");return b[Je.getOriginalNodeId(e)]=t,T(t),t}}(e),a=Je.getLocalName(e,!1,!0),o=Je.visitNodes(e.heritageClauses,D,Je.isHeritageClause),s=R(e,0!=(64&n)),c=Je.createClassExpression(undefined,t,undefined,o,s);Je.setOriginalNode(c,e),Je.setTextRange(c,r);var u=Je.createVariableStatement(undefined,Je.createVariableDeclarationList([Je.createVariableDeclaration(a,undefined,i?Je.createAssignment(i,c):c)],1));return Je.setOriginalNode(u,e),Je.setTextRange(u,r),Je.setCommentRange(u,e),u}:function(e,t,n){var r=128&n?undefined:Je.visitNodes(e.modifiers,V,Je.isModifier),i=Je.createClassDeclaration(undefined,r,t,undefined,Je.visitNodes(e.heritageClauses,D,Je.isHeritageClause),R(e,0!=(64&n))),a=Je.getEmitFlags(e);1&n&&(a|=32);return Je.setTextRange(i,e),Je.setOriginalNode(i,e),Je.setEmitFlags(i,a),i})(e,i,r),o=[a];Je.some(v)&&o.push(Je.createExpressionStatement(Je.inlineExpressions(v)));v=t,1&r&&z(o,n,128&r?Je.getInternalName(e):Je.getLocalName(e));{var s,c,u,l,d,p;$(o,e,!1),$(o,e,!0),function(e,t){var n=function(e){var t=function(e){var t=e.decorators,n=X(Je.getFirstConstructorWithBody(e));return t||n?{decorators:t,parameters:n}:undefined}(e),n=Q(e,e,t);if(!n)return undefined;var r=b&&b[Je.getOriginalNodeId(e)],i=Je.getLocalName(e,!1,!0),a=Us(_,n,i),o=Je.createAssignment(i,r?Je.createAssignment(r,a):a);return Je.setEmitFlags(o,1536),Je.setSourceMapRange(o,Je.moveRangePastDecorators(e)),o}(t);n&&e.push(Je.setOriginalNode(Je.createExpressionStatement(n),t))}(o,e),128&r&&(s=Je.createTokenRange(Je.skipTrivia(h.text,e.members.end),19),c=Je.getInternalName(e),(u=Je.createPartiallyEmittedExpression(c)).end=s.end,Je.setEmitFlags(u,1536),(l=Je.createReturn(u)).pos=s.pos,Je.setEmitFlags(l,1920),o.push(l),Je.insertStatementsAfterStandardPrologue(o,_.endLexicalEnvironment()),d=Je.createImmediatelyInvokedArrowFunction(o),Je.setEmitFlags(d,33554432),p=Je.createVariableStatement(undefined,Je.createVariableDeclarationList([Je.createVariableDeclaration(Je.getLocalName(e,!1,!1),undefined,d)])),Je.setOriginalNode(p,e),Je.setCommentRange(p,e),Je.setSourceMapRange(p,Je.moveRangePastDecorators(e)),Je.startOnNewLine(p),o=[p])}8&r?Fe(o,e):(128&r||2&r)&&(32&r?o.push(Je.createExportDefault(Je.getLocalName(e,!1,!0))):16&r&&o.push(Je.createExternalModuleExport(Je.getLocalName(e,!1,!0))));1<o.length&&(o.push(Je.createEndOfDeclarationMarker(e)),Je.setEmitFlags(a,4194304|Je.getEmitFlags(a)));return Je.singleOrMany(o)}(e);case 210:return function(e){if(!O(e))return Je.visitEachChild(e,D,_);var t=v;v=undefined;var n=W(e,!0),r=Je.visitNodes(e.heritageClauses,D,Je.isHeritageClause),i=R(e,Je.some(r,function(e){return 87===e.token})),a=Je.createClassExpression(undefined,e.name,undefined,r,i);if(Je.setOriginalNode(a,e),Je.setTextRange(a,e),Je.some(n)||Je.some(v)){var o,s=[],c=16777216&C.getNodeCheckFlags(e),u=Je.createTempVariable(T,!!c);return c&&(We(),(o=Je.getSynthesizedClone(u)).autoGenerateFlags&=-9,b[Je.getOriginalNodeId(e)]=o),Je.setEmitFlags(a,65536|Je.getEmitFlags(a)),s.push(Je.startOnNewLine(Je.createAssignment(u,a))),Je.addRange(s,Je.map(v,Je.startOnNewLine)),v=t,Je.addRange(s,function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r],o=U(a,t);Je.startOnNewLine(o),Je.setSourceMapRange(o,Je.moveRangePastModifiers(a)),Je.setCommentRange(o,a),Je.setOriginalNode(o,a),n.push(o)}return n}(n,u)),s.push(Je.startOnNewLine(u)),Je.inlineExpressions(s)}return v=t,a}(e);case 274:return 110!==(p=e).token?Je.visitEachChild(p,D,_):undefined;case 212:return d=e,Je.updateExpressionWithTypeArguments(d,undefined,Je.visitNode(d.expression,D,Je.isLeftHandSideExpression));case 157:return function(e){if(!ye(e))return undefined;var t=Je.updateMethod(e,undefined,Je.visitNodes(e.modifiers,V,Je.isModifier),e.asteriskToken,me(e),undefined,undefined,Je.visitParameterList(e.parameters,D,_),undefined,Je.visitFunctionBody(e.body,D,_));t!==e&&(Je.setCommentRange(t,e),Je.setSourceMapRange(t,Je.moveRangePastDecorators(e)));return t}(e);case 159:return function(e){if(!be(e))return undefined;var t=Je.updateGetAccessor(e,undefined,Je.visitNodes(e.modifiers,V,Je.isModifier),me(e),Je.visitParameterList(e.parameters,D,_),undefined,Je.visitFunctionBody(e.body,D,_)||Je.createBlock([]));t!==e&&(Je.setCommentRange(t,e),Je.setSourceMapRange(t,Je.moveRangePastDecorators(e)));return t}(e);case 160:return function(e){if(!be(e))return undefined;var t=Je.updateSetAccessor(e,undefined,Je.visitNodes(e.modifiers,V,Je.isModifier),me(e),Je.visitParameterList(e.parameters,D,_),Je.visitFunctionBody(e.body,D,_)||Je.createBlock([]));t!==e&&(Je.setCommentRange(t,e),Je.setSourceMapRange(t,Je.moveRangePastDecorators(e)));return t}(e);case 240:return function(e){if(!ye(e))return Je.createNotEmittedStatement(e);var t=Je.updateFunctionDeclaration(e,undefined,Je.visitNodes(e.modifiers,V,Je.isModifier),e.asteriskToken,e.name,undefined,Je.visitParameterList(e.parameters,D,_),undefined,Je.visitFunctionBody(e.body,D,_)||Je.createBlock([]));if(Ve(e)){var n=[t];return Fe(n,e),n}return t}(e);case 197:return ye(l=e)?Je.updateFunctionExpression(l,Je.visitNodes(l.modifiers,V,Je.isModifier),l.asteriskToken,l.name,undefined,Je.visitParameterList(l.parameters,D,_),undefined,Je.visitFunctionBody(l.body,D,_)||Je.createBlock([])):Je.createOmittedExpression();case 198:return u=e,Je.updateArrowFunction(u,Je.visitNodes(u.modifiers,V,Je.isModifier),undefined,Je.visitParameterList(u.parameters,D,_),undefined,u.equalsGreaterThanToken,Je.visitFunctionBody(u.body,D,_));case 152:return function(e){if(Je.parameterIsThisKeyword(e))return undefined;var t=Je.updateParameter(e,undefined,undefined,e.dotDotDotToken,Je.visitNode(e.name,D,Je.isBindingName),undefined,undefined,Je.visitNode(e.initializer,D,Je.isExpression));t!==e&&(Je.setCommentRange(t,e),Je.setTextRange(t,Je.moveRangePastModifiers(e)),Je.setSourceMapRange(t,Je.moveRangePastModifiers(e)),Je.setEmitFlags(t.name,32));return t}(e);case 196:return function(e){var t=Je.skipOuterExpressions(e.expression,-3);if(Je.isAssertionExpression(t)){var n=Je.visitNode(e.expression,D,Je.isExpression);return Je.length(Je.getLeadingCommentRangesOfNode(n,h))?Je.updateParen(e,n):Je.createPartiallyEmittedExpression(n,e)}return Je.visitEachChild(e,D,_)}(e);case 195:case 213:return s=e,c=Je.visitNode(s.expression,D,Je.isExpression),Je.createPartiallyEmittedExpression(c,s);case 192:return o=e,Je.updateCall(o,Je.visitNode(o.expression,D,Je.isExpression),undefined,Je.visitNodes(o.arguments,D,Je.isExpression));case 193:return a=e,Je.updateNew(a,Je.visitNode(a.expression,D,Je.isExpression),undefined,Je.visitNodes(a.arguments,D,Je.isExpression));case 194:return i=e,Je.updateTaggedTemplate(i,Je.visitNode(i.tag,D,Je.isExpression),undefined,Je.visitNode(i.template,D,Je.isExpression));case 214:return n=e,r=Je.visitNode(n.expression,D,Je.isLeftHandSideExpression),Je.createPartiallyEmittedExpression(r,n);case 244:return function(e){if(!function(e){return!Je.isEnumConst(e)||B.preserveConstEnums||B.isolatedModules}(e))return Je.createNotEmittedStatement(e);var t=[],n=2,r=Be(t,e);r&&(S===Je.ModuleKind.System&&y===h||(n|=512));var i=He(e),a=je(e),o=Je.hasModifier(e,1)?Je.getExternalModuleOrNamespaceExportName(m,e,!1,!0):Je.getLocalName(e,!1,!0),s=Je.createLogicalOr(o,Je.createAssignment(o,Je.createObjectLiteral()));{var c;Ie(e)&&(c=Je.getLocalName(e,!1,!0),s=Je.createAssignment(c,s))}var u=Je.createExpressionStatement(Je.createCall(Je.createFunctionExpression(undefined,undefined,undefined,undefined,[Je.createParameter(undefined,undefined,undefined,i)],undefined,function(e,t){var n=m;m=t;var r=[];E();var i=Je.map(e.members,Ee);return Je.insertStatementsAfterStandardPrologue(r,I()),Je.addRange(r,i),m=n,Je.createBlock(Je.setTextRange(Je.createNodeArray(r),e.members),!0)}(e,a)),undefined,[s]));Je.setOriginalNode(u,e),r&&(Je.setSyntheticLeadingComments(u,undefined),Je.setSyntheticTrailingComments(u,undefined));return Je.setTextRange(u,e),Je.addEmitFlags(u,n),t.push(u),t.push(Je.createEndOfDeclarationMarker(e)),t}(e);case 220:return function(e){{if(Ve(e)){var t=Je.getInitializedVariables(e.declarationList);return 0===t.length?undefined:Je.setTextRange(Je.createExpressionStatement(Je.inlineExpressions(Je.map(t,ve))),e)}return Je.visitEachChild(e,D,_)}}(e);case 238:return t=e,Je.updateVariableDeclaration(t,Je.visitNode(t.name,D,Je.isBindingName),undefined,Je.visitNode(t.initializer,D,Je.isExpression));case 245:return xe(e);case 249:return we(e);default:return Je.visitEachChild(e,D,_)}var t,n,r,i,a,o,s,c,u,l,d,p,f}function L(e){var t=Je.getStrictOptionValue(B,"alwaysStrict")&&!(Je.isExternalModule(e)&&S>=Je.ModuleKind.ES2015)&&!Je.isJsonSourceFile(e);return Je.updateSourceFileNode(e,Je.visitLexicalEnvironment(e.statements,i,_,0,t))}function M(e){return e.decorators!==undefined&&0<e.decorators.length}function F(e){return!!(1024&e.transformFlags)}function O(e){return Je.some(e.decorators)||Je.some(e.typeParameters)||Je.some(e.heritageClauses,F)||Je.some(e.members,F)}function R(e,t){var n=[],r=function(e,t){var n=Je.getFirstConstructorWithBody(e),r=Je.forEach(e.members,Y),i=n&&1024&n.transformFlags&&Je.forEach(n.parameters,H);if(!r&&!i)return Je.visitEachChild(n,D,_);var a=function(e){return Je.visitParameterList(e&&e.parameters,D,_)||[]}(n),o=function(e,t,n){var r=[],i=0;{var a;s(),t?(i=function(e,t){if(e.body){var n=e.body.statements,r=Je.addPrologue(t,n,!1,D);if(r===n.length)return r;var i=n[r];return 222===i.kind&&Je.isSuperCall(i.expression)?(t.push(Je.visitNode(i,D,Je.isStatement)),r+1):r}return 0}(t,r),a=function(e){return Je.filter(e.parameters,H)}(t),Je.addRange(r,Je.map(a,j))):n&&r.push(Je.createExpressionStatement(Je.createCall(Je.createSuper(),undefined,[Je.createSpread(Je.createIdentifier("arguments"))])))}var o=W(e,!1);z(r,o,Je.createThis()),t&&Je.addRange(r,Je.visitNodes(t.body.statements,D,Je.isStatement,i));return r=Je.mergeLexicalEnvironment(r,I()),Je.setTextRange(Je.createBlock(Je.setTextRange(Je.createNodeArray(r),t?t.body.statements:e.members),!0),t?t.body:undefined)}(e,n,t);return Je.startOnNewLine(Je.setOriginalNode(Je.setTextRange(Je.createConstructor(undefined,undefined,a,o),n||e),n))}(e,t);return r&&n.push(r),Je.addRange(n,Je.visitNodes(e.members,A,Je.isClassElement)),Je.setTextRange(Je.createNodeArray(n),e.members)}function H(e){return Je.hasModifier(e,92)&&Je.isIdentifier(e.name)}function j(e){Je.Debug.assert(Je.isIdentifier(e.name));var t=e.name,n=Je.getMutableClone(t);Je.setEmitFlags(n,1584);var r=Je.getMutableClone(t);return Je.setEmitFlags(r,1536),Je.startOnNewLine(Je.setEmitFlags(Je.setTextRange(Je.createExpressionStatement(Je.createAssignment(Je.setTextRange(Je.createPropertyAccess(Je.createThis(),n),e.name),r)),Je.moveRangePos(e,-1)),1536))}function W(e,t){return Je.filter(e.members,t?G:Y)}function G(e){return J(e,!0)}function Y(e){return J(e,!1)}function J(e,t){return 155===e.kind&&t===Je.hasModifier(e,32)&&e.initializer!==undefined}function z(e,t,n){for(var r=0,i=t;r<i.length;r++){var a=i[r],o=Je.createExpressionStatement(U(a,n));Je.setSourceMapRange(o,Je.moveRangePastModifiers(a)),Je.setCommentRange(o,a),Je.setOriginalNode(o,a),e.push(o)}}function U(e,t){var n=Je.isComputedPropertyName(e.name)&&!_e(e.name.expression)?Je.updateComputedPropertyName(e.name,Je.getGeneratedNameForNode(e.name)):e.name,r=Je.visitNode(e.initializer,D,Je.isExpression),i=Je.createMemberAccessForPropertyName(t,n,n);return Je.createAssignment(i,r)}function K(t,e){return Je.filter(t.members,e?function(e){return Z(e,!0,t)}:function(e){return Z(e,!1,t)})}function Z(e,t,n){return Je.nodeOrChildIsDecorated(e,n)&&t===Je.hasModifier(e,32)}function X(e){var t;if(e)for(var n=e.parameters,r=0<n.length&&Je.parameterIsThisKeyword(n[0]),i=r?1:0,a=r?n.length-1:n.length,o=0;o<a;o++){var s=n[o+i];(t||s.decorators)&&((t=t||new Array(a))[o]=s.decorators)}return t}function q(e,t){switch(t.kind){case 159:case 160:return function(e,t){if(!t.body)return undefined;var n=Je.getAllAccessorDeclarations(e.members,t),r=n.firstAccessor,i=n.secondAccessor,a=n.setAccessor,o=r.decorators?r:i&&i.decorators?i:undefined;if(!o||t!==o)return undefined;var s=o.decorators,c=X(a);return s||c?{decorators:s,parameters:c}:undefined}(e,t);case 157:return function(e){if(!e.body)return undefined;var t=e.decorators,n=X(e);return t||n?{decorators:t,parameters:n}:undefined}(t);case 155:return(n=t.decorators)?{decorators:n}:undefined;default:return undefined}var n}function Q(e,t,n){if(!n)return undefined;var r=[];return Je.addRange(r,Je.map(n.decorators,ee)),Je.addRange(r,Je.flatMap(n.parameters,te)),function(e,t,n){B.emitDecoratorMetadata&&(ne(e)&&n.push(Ks(_,"design:type",ae(e))),ie(e)&&n.push(Ks(_,"design:paramtypes",oe(e,t))),re(e)&&n.push(Ks(_,"design:returntype",se(e))))}(e,t,r),r}function $(e,t,n){Je.addRange(e,Je.map(function(e,t){for(var n,r=K(e,t),i=0,a=r;i<a.length;i++){var o=a[i],s=function(e,t){var n=q(e,t),r=Q(t,e,n);if(!r)return undefined;var i=function(e,t){return Je.hasModifier(t,32)?Je.getDeclarationName(e):function(e){return Je.createPropertyAccess(Je.getDeclarationName(e),"prototype")}(e)}(e,t),a=he(t,!0),o=0<x?155===t.kind?Je.createVoidZero():Je.createNull():undefined,s=Us(_,r,i,a,o,Je.moveRangePastDecorators(t));return Je.setEmitFlags(s,1536),s}(e,o);s&&(n?n.push(s):n=[s])}return n}(t,n),Me))}function ee(e){return Je.visitNode(e.expression,D,Je.isExpression)}function te(e,t){var n,r,i,a,o;if(e){n=[];for(var s=0,c=e;s<c.length;s++){var u=c[s],l=(r=_,i=ee(u),a=t,o=u.expression,r.requestEmitHelper(Je.paramHelper),Je.setTextRange(Je.createCall(Je.getHelperName("__param"),undefined,[Je.createLiteral(a),i]),o));Je.setEmitFlags(l,1536),n.push(l)}}return n}function ne(e){var t=e.kind;return 157===t||159===t||160===t||155===t}function re(e){return 157===e.kind}function ie(e){switch(e.kind){case 241:case 210:return Je.getFirstConstructorWithBody(e)!==undefined;case 157:case 159:case 160:return 1}}function ae(e){switch(e.kind){case 155:case 152:return ce(e.type);case 160:case 159:return ce((t=e,(n=C.getAllAccessorDeclarations(t)).setAccessor&&Je.getSetAccessorTypeAnnotationNode(n.setAccessor)||n.getAccessor&&Je.getEffectiveReturnTypeNode(n.getAccessor)));case 241:case 210:case 157:return Je.createIdentifier("Function");default:return Je.createVoidZero()}var t,n}function oe(e,t){var n=Je.isClassLike(e)?Je.getFirstConstructorWithBody(e):Je.isFunctionLike(e)&&Je.nodeIsPresent(e.body)?e:undefined,r=[];if(n)for(var i=function(e,t){if(t&&159===e.kind){var n=Je.getAllAccessorDeclarations(t.members,e).setAccessor;if(n)return n.parameters}return e.parameters}(n,t),a=i.length,o=0;o<a;o++){var s=i[o];0===o&&Je.isIdentifier(s.name)&&"this"===s.name.escapedText||(s.dotDotDotToken?r.push(ce(Je.getRestParameterElementType(s.type))):r.push(ae(s)))}return Je.createArrayLiteral(r)}function se(e){return Je.isFunctionLike(e)&&e.type?ce(e.type):Je.isAsyncFunction(e)?Je.createIdentifier("Promise"):Je.createVoidZero()}function ce(e){if(e===undefined)return Je.createIdentifier("Object");switch(e.kind){case 107:case 142:case 97:case 133:return Je.createVoidZero();case 178:return ce(e.type);case 166:case 167:return Je.createIdentifier("Function");case 170:case 171:return Je.createIdentifier("Array");case 164:case 124:return Je.createIdentifier("Boolean");case 139:return Je.createIdentifier("String");case 137:return Je.createIdentifier("Object");case 183:switch(e.literal.kind){case 10:return Je.createIdentifier("String");case 203:case 8:return Je.createIdentifier("Number");case 9:return fe();case 103:case 88:return Je.createIdentifier("Boolean");default:return Je.Debug.failBadSyntaxKind(e.literal)}case 136:return Je.createIdentifier("Number");case 147:return fe();case 140:return x<2?pe():Je.createIdentifier("Symbol");case 165:return function(e){var t=C.getTypeReferenceSerializationKind(e.typeName,o||y);switch(t){case Je.TypeReferenceSerializationKind.Unknown:if(Je.findAncestor(e,function(e){return e.parent&&Je.isConditionalTypeNode(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)}))return Je.createIdentifier("Object");var n=function i(e){if(73===e.kind){var t=de(e);return le(t,t)}if(73===e.left.kind)return le(de(e.left),de(e));var n=i(e.left);var r=Je.createTempVariable(T);return Je.createLogicalAnd(Je.createLogicalAnd(n.left,Je.createStrictInequality(Je.createAssignment(r,n.right),Je.createVoidZero())),Je.createPropertyAccess(r,e.right))}(e.typeName),r=Je.createTempVariable(T);return Je.createConditional(Je.createTypeCheck(Je.createAssignment(r,n),"function"),r,Je.createIdentifier("Object"));case Je.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return de(e.typeName);case Je.TypeReferenceSerializationKind.VoidNullableOrNeverType:return Je.createVoidZero();case Je.TypeReferenceSerializationKind.BigIntLikeType:return fe();case Je.TypeReferenceSerializationKind.BooleanType:return Je.createIdentifier("Boolean");case Je.TypeReferenceSerializationKind.NumberLikeType:return Je.createIdentifier("Number");case Je.TypeReferenceSerializationKind.StringLikeType:return Je.createIdentifier("String");case Je.TypeReferenceSerializationKind.ArrayLikeType:return Je.createIdentifier("Array");case Je.TypeReferenceSerializationKind.ESSymbolType:return x<2?pe():Je.createIdentifier("Symbol");case Je.TypeReferenceSerializationKind.TypeWithCallSignature:return Je.createIdentifier("Function");case Je.TypeReferenceSerializationKind.Promise:return Je.createIdentifier("Promise");case Je.TypeReferenceSerializationKind.ObjectType:return Je.createIdentifier("Object");default:return Je.Debug.assertNever(t)}}(e);case 175:case 174:return ue(e.types);case 176:return ue([e.trueType,e.falseType]);case 180:if(134===e.operator)return ce(e.type);break;case 168:case 181:case 182:case 169:case 121:case 144:case 179:case 184:break;default:return Je.Debug.failBadSyntaxKind(e)}return Je.createIdentifier("Object")}function ue(e){for(var t,n=0,r=e;n<r.length;n++){for(var i=r[n];178===i.kind;)i=i.type;if(133!==i.kind&&(c||97!==i.kind&&142!==i.kind)){var a=ce(i);if(Je.isIdentifier(a)&&"Object"===a.escapedText)return a;if(t){if(!Je.isIdentifier(t)||!Je.isIdentifier(a)||t.escapedText!==a.escapedText)return Je.createIdentifier("Object")}else t=a}}return t||Je.createVoidZero()}function le(e,t){return Je.createLogicalAnd(Je.createStrictInequality(Je.createTypeOf(e),Je.createLiteral("undefined")),t)}function de(e){switch(e.kind){case 73:var t=Je.getMutableClone(e);return t.flags&=-9,t.original=undefined,t.parent=Je.getParseTreeNode(y),t;case 149:return n=e,Je.createPropertyAccess(de(n.left),n.right)}var n}function pe(){return Je.createConditional(Je.createTypeCheck(Je.createIdentifier("Symbol"),"function"),Je.createIdentifier("Symbol"),Je.createIdentifier("Object"))}function fe(){return x<8?Je.createConditional(Je.createTypeCheck(Je.createIdentifier("BigInt"),"function"),Je.createIdentifier("BigInt"),Je.createIdentifier("Object")):Je.createIdentifier("BigInt")}function _e(e){return!Je.isIdentifier(e)&&Je.isSimpleCopiableExpression(e)||Je.isWellKnownSymbolSyntactically(e)}function he(e,t){var n=e.name;return Je.isComputedPropertyName(n)?t&&!_e(n.expression)?Je.getGeneratedNameForNode(n):n.expression:Je.isIdentifier(n)?Je.createLiteral(Je.idText(n)):Je.getSynthesizedClone(n)}function ge(e,t,n){if(Je.isComputedPropertyName(e)){var r=Je.visitNode(e.expression,D,Je.isExpression),i=Je.skipPartiallyEmittedExpressions(r),a=_e(i);if(a||!t)return n&&(a||Je.isIdentifier(i))?undefined:r;var o=Je.getGeneratedNameForNode(e);return T(o),Je.createAssignment(o,r)}}function me(e){var t=e.name,n=ge(t,Je.some(e.decorators),!1);return n?(Je.some(v)&&(n=Je.inlineExpressions(v.concat([n])),v.length=0),Je.updateComputedPropertyName(t,n)):t}function ye(e){return!Je.nodeIsMissing(e.body)}function be(e){return!Je.nodeIsMissing(e.body)||!Je.hasModifier(e,128)}function ve(e){var t=e.name;return Je.isBindingPattern(t)?Je.flattenDestructuringAssignment(e,D,_,0,!1,Oe):Je.setTextRange(Je.createAssignment(Re(t),Je.visitNode(e.initializer,D,Je.isExpression)),e)}function Ee(e){var t,n,r=he(e,!1),i=(t=e,(n=C.getConstantValue(t))!==undefined?Je.createLiteral(n):(0==(8&d)&&(d|=8,_.enableSubstitution(73)),t.initializer?Je.visitNode(t.initializer,D,Je.isExpression):Je.createVoidZero())),a=Je.createAssignment(Je.createElementAccess(m,r),i),o=10===i.kind?a:Je.createAssignment(Je.createElementAccess(m,a),r);return Je.setTextRange(Je.createExpressionStatement(Je.setTextRange(o,e)),e)}function Ie(e){return Ve(e)||Pe(e)&&S!==Je.ModuleKind.ES2015&&S!==Je.ModuleKind.ESNext&&S!==Je.ModuleKind.System}function Te(e){f=f||Je.createUnderscoreEscapedMap();var t=Ce(e);f.has(t)||f.set(t,e)}function Ce(e){return Je.Debug.assertNode(e.name,Je.isIdentifier),e.name.escapedText}function Be(e,t){var n=Je.createVariableStatement(Je.visitNodes(t.modifiers,V,Je.isModifier),Je.createVariableDeclarationList([Je.createVariableDeclaration(Je.getLocalName(t,!1,!0))],285===y.kind?0:1));if(Je.setOriginalNode(n,t),Te(t),function(e){if(f){var t=Ce(e);return f.get(t)===e}return 1}(t))return 244===t.kind?Je.setSourceMapRange(n.declarationList,t):Je.setSourceMapRange(n,t),Je.setCommentRange(n,t),Je.addEmitFlags(n,4195328),e.push(n),!0;var r=Je.createMergeDeclarationMarker(n);return Je.setEmitFlags(r,4195840),e.push(r),!1}function xe(e){if(t=e,!Je.isInstantiatedModule(t,!!B.preserveConstEnums||!!B.isolatedModules))return Je.createNotEmittedStatement(e);var t;Je.Debug.assertNode(e.name,Je.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&d)&&(d|=2,_.enableSubstitution(73),_.enableSubstitution(277),_.enableEmitNotification(245));var n=[],r=2,i=Be(n,e);i&&(S===Je.ModuleKind.System&&y===h||(r|=512));var a,o=He(e),s=je(e),c=Je.hasModifier(e,1)?Je.getExternalModuleOrNamespaceExportName(m,e,!1,!0):Je.getLocalName(e,!1,!0),u=Je.createLogicalOr(c,Je.createAssignment(c,Je.createObjectLiteral()));Ie(e)&&(a=Je.getLocalName(e,!1,!0),u=Je.createAssignment(a,u));var l=Je.createExpressionStatement(Je.createCall(Je.createFunctionExpression(undefined,undefined,undefined,undefined,[Je.createParameter(undefined,undefined,undefined,o)],undefined,function(e,t){var n=m,r=g,i=f;m=t,g=e,f=undefined;var a,o,s=[];E();var c=e.body;{var u,l;246===c.kind?(N(c,function(e){return Je.addRange(s,Je.visitNodes(e.statements,k,Je.isStatement))}),a=c.statements,o=c):((u=xe(c))&&(Je.isArray(u)?Je.addRange(s,u):s.push(u)),l=function p(e){if(245===e.body.kind){var t=p(e.body);return t||e.body}}(e).body,a=Je.moveRangePos(l.statements,-1))}Je.insertStatementsAfterStandardPrologue(s,I()),m=n,g=r,f=i;var d=Je.createBlock(Je.setTextRange(Je.createNodeArray(s),a),!0);Je.setTextRange(d,o),246!==c.kind&&Je.setEmitFlags(d,1536|Je.getEmitFlags(d));return d}(e,s)),undefined,[u]));return Je.setOriginalNode(l,e),i&&(Je.setSyntheticLeadingComments(l,undefined),Je.setSyntheticTrailingComments(l,undefined)),Je.setTextRange(l,e),Je.addEmitFlags(l,r),n.push(l),n.push(Je.createEndOfDeclarationMarker(e)),n}function Se(e){var t=C.isReferencedAliasDeclaration(e)?e.name:undefined,n=Je.visitNode(e.namedBindings,Ne,Je.isNamedImportBindings);return t||n?Je.updateImportClause(e,t,n):undefined}function Ne(e){if(252===e.kind)return C.isReferencedAliasDeclaration(e)?e:undefined;var t=Je.visitNodes(e.elements,De,Je.isImportSpecifier);return Je.some(t)?Je.updateNamedImports(e,t):undefined}function De(e){return C.isReferencedAliasDeclaration(e)?e:undefined}function ke(e){var t=Je.visitNodes(e.elements,Ae,Je.isExportSpecifier);return Je.some(t)?Je.updateNamedExports(e,t):undefined}function Ae(e){return C.isValueAliasDeclaration(e)?e:undefined}function we(e){if(Je.isExternalModuleImportEqualsDeclaration(e))return C.isReferencedAliasDeclaration(e)?Je.visitEachChild(e,D,_):undefined;if(t=e,!(C.isReferencedAliasDeclaration(t)||!Je.isExternalModule(h)&&C.isTopLevelValueImportEqualsWithEntityName(t)))return undefined;var t,n,r,i,a=Je.createExpressionFromEntityName(e.moduleReference);return Je.setEmitFlags(a,3584),Le(e)||!Ve(e)?Je.setOriginalNode(Je.setTextRange(Je.createVariableStatement(Je.visitNodes(e.modifiers,V,Je.isModifier),Je.createVariableDeclarationList([Je.setOriginalNode(Je.createVariableDeclaration(e.name,undefined,a),e)])),e),e):Je.setOriginalNode((n=e.name,r=a,i=e,Je.setTextRange(Je.createExpressionStatement(Je.createAssignment(Je.getNamespaceMemberName(m,n,!1,!0),r)),i)),e)}function Ve(e){return g!==undefined&&Je.hasModifier(e,1)}function Pe(e){return g===undefined&&Je.hasModifier(e,1)}function Le(e){return Pe(e)&&!Je.hasModifier(e,512)}function Me(e){return Je.createExpressionStatement(e)}function Fe(e,t){var n=Je.createAssignment(Je.getExternalModuleOrNamespaceExportName(m,t,!1,!0),Je.getLocalName(t));Je.setSourceMapRange(n,Je.createRange(t.name?t.name.pos:t.pos,t.end));var r=Je.createExpressionStatement(n);Je.setSourceMapRange(r,Je.createRange(-1,t.end)),e.push(r)}function Oe(e,t,n){return Je.setTextRange(Je.createAssignment(Re(e),t),n)}function Re(e){return Je.getNamespaceMemberName(m,e,!1,!0)}function He(e){var t=Je.getGeneratedNameForNode(e);return Je.setSourceMapRange(t,e.name),t}function je(e){return Je.getGeneratedNameForNode(e)}function We(){0==(1&d)&&(d|=1,_.enableSubstitution(73),b=[])}function Ge(e){if(d&a&&!Je.isGeneratedIdentifier(e)&&!Je.isLocalName(e)){var t=C.getReferencedExportContainer(e,!1);if(t&&285!==t.kind)if(2&a&&245===t.kind||8&a&&244===t.kind)return Je.setTextRange(Je.createPropertyAccess(Je.getGeneratedNameForNode(t),e),e)}return undefined}function Ye(e){var t=function(e){if(B.isolatedModules)return undefined;return Je.isPropertyAccessExpression(e)||Je.isElementAccessExpression(e)?C.getConstantValue(e):undefined}(e);if(t===undefined)return e;Je.setConstantValue(e,t);var n,r=Je.createLiteral(t);return B.removeComments||(n=Je.isPropertyAccessExpression(e)?Je.declarationNameToString(e.name):Je.getTextOfNode(e.argumentExpression),Je.addSyntheticTrailingComment(r,3," "+n+" ")),r}},Je.decorateHelper={name:"typescript:decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},Je.metadataHelper={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},Je.paramHelper={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},w=rg=rg||{},(V={})[V.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",w.transformES2017=function(y){var b,v,E,I,T=y.resumeLexicalEnvironment,C=y.endLexicalEnvironment,a=y.hoistVariableDeclaration,B=y.getEmitResolver(),e=y.getCompilerOptions(),x=w.getEmitScriptTarget(e),o=0,S=[],s=y.onEmitNode,n=y.onSubstituteNode;return y.onEmitNode=function(e,t,n){if(1&b&&function(e){var t=e.kind;return 241===t||158===t||157===t||159===t||160===t}(t)){var r=6144&B.getNodeCheckFlags(t);if(r!==o){var i=o;return o=r,s(e,t,n),void(o=i)}}else if(b&&S[w.getNodeId(t)]){i=o;return o=0,s(e,t,n),void(o=i)}s(e,t,n)},y.onSubstituteNode=function(e,t){if(t=n(e,t),1===e&&o)return function(e){switch(e.kind){case 190:return r(e);case 191:return _(e);case 192:return function(e){var t=e.expression;if(w.isSuperProperty(t)){var n=(w.isPropertyAccessExpression(t)?r:_)(t);return w.createCall(w.createPropertyAccess(n,"call"),undefined,[w.createThis()].concat(e.arguments))}return e}(e)}return e}(t);return t},w.chainBundle(function(e){if(e.isDeclarationFile)return e;var t=w.visitEachChild(e,N,y);return w.addEmitHelpers(t,y.readEmitHelpers()),t});function N(e){if(0==(32&e.transformFlags))return e;switch(e.kind){case 122:return undefined;case 202:return a=e,w.setOriginalNode(w.setTextRange(w.createYield(undefined,w.visitNode(a.expression,N,w.isExpression)),a),a);case 157:return i=e,w.updateMethod(i,undefined,w.visitNodes(i.modifiers,N,w.isModifier),i.asteriskToken,i.name,undefined,undefined,w.visitParameterList(i.parameters,N,y),undefined,2&w.getFunctionFlags(i)?f(i):w.visitFunctionBody(i.body,N,y));case 240:return r=e,w.updateFunctionDeclaration(r,undefined,w.visitNodes(r.modifiers,N,w.isModifier),r.asteriskToken,r.name,undefined,w.visitParameterList(r.parameters,N,y),undefined,2&w.getFunctionFlags(r)?f(r):w.visitFunctionBody(r.body,N,y));case 197:return n=e,w.updateFunctionExpression(n,w.visitNodes(n.modifiers,N,w.isModifier),n.asteriskToken,n.name,undefined,w.visitParameterList(n.parameters,N,y),undefined,2&w.getFunctionFlags(n)?f(n):w.visitFunctionBody(n.body,N,y));case 198:return t=e,w.updateArrowFunction(t,w.visitNodes(t.modifiers,N,w.isModifier),undefined,w.visitParameterList(t.parameters,N,y),undefined,t.equalsGreaterThanToken,2&w.getFunctionFlags(t)?f(t):w.visitFunctionBody(t.body,N,y));case 190:return E&&w.isPropertyAccessExpression(e)&&99===e.expression.kind&&E.set(e.name.escapedText,!0),w.visitEachChild(e,N,y);case 191:return E&&99===e.expression.kind&&(I=!0),w.visitEachChild(e,N,y);default:return w.visitEachChild(e,N,y)}var t,n,r,i,a}function c(e){if(w.isNodeWithPossibleHoistedDeclaration(e))switch(e.kind){case 220:return function(e){if(u(e.declarationList)){var t=l(e.declarationList,!1);return t?w.createExpressionStatement(t):undefined}return w.visitEachChild(e,N,y)}(e);case 226:return i=(r=e).initializer,w.updateFor(r,u(i)?l(i,!1):w.visitNode(r.initializer,N,w.isForInitializer),w.visitNode(r.condition,N,w.isExpression),w.visitNode(r.incrementor,N,w.isExpression),w.visitNode(r.statement,c,w.isStatement,w.liftToBlock));case 227:return n=e,w.updateForIn(n,u(n.initializer)?l(n.initializer,!0):w.visitNode(n.initializer,N,w.isForInitializer),w.visitNode(n.expression,N,w.isExpression),w.visitNode(n.statement,c,w.isStatement,w.liftToBlock));case 228:return t=e,w.updateForOf(t,w.visitNode(t.awaitModifier,N,w.isToken),u(t.initializer)?l(t.initializer,!0):w.visitNode(t.initializer,N,w.isForInitializer),w.visitNode(t.expression,N,w.isExpression),w.visitNode(t.statement,c,w.isStatement,w.liftToBlock));case 275:return function(e){var n,t=w.createUnderscoreEscapedMap();{if(D(e.variableDeclaration,t),t.forEach(function(e,t){v.has(t)&&(n=n||w.cloneMap(v))["delete"](t)}),n){var r=v;v=n;var i=w.visitEachChild(e,c,y);return v=r,i}return w.visitEachChild(e,c,y)}}(e);case 219:case 233:case 247:case 272:case 273:case 236:case 224:case 225:case 223:case 232:case 234:return w.visitEachChild(e,c,y);default:return w.Debug.assertNever(e,"Unhandled node.")}var t,n,r,i;return N(e)}function D(e,t){var n=e.name;if(w.isIdentifier(n))t.set(n.escapedText,!0);else for(var r=0,i=n.elements;r<i.length;r++){var a=i[r];w.isOmittedExpression(a)||D(a,t)}}function u(e){return e&&w.isVariableDeclarationList(e)&&!(3&e.flags)&&e.declarations.some(p)}function l(e,t){var n;n=e,w.forEach(n.declarations,d);var r=w.getInitializedVariables(e);return 0===r.length?t?w.visitNode(w.convertToAssignmentElementTarget(e.declarations[0].name),N,w.isExpression):undefined:w.inlineExpressions(w.map(r,i))}function d(e){var t=e.name;if(w.isIdentifier(t))a(t);else for(var n=0,r=t.elements;n<r.length;n++){var i=r[n];w.isOmittedExpression(i)||d(i)}}function i(e){var t=w.setSourceMapRange(w.createAssignment(w.convertToAssignmentElementTarget(e.name),e.initializer),e);return w.visitNode(t,N,w.isExpression)}function p(e){var t=e.name;if(w.isIdentifier(t))return v.has(t.escapedText);for(var n=0,r=t.elements;n<r.length;n++){var i=r[n];if(!w.isOmittedExpression(i)&&p(i))return!0}return!1}function f(e){T();var t=w.getOriginalNode(e,w.isFunctionLike).type,n=x<2?function(e){var t=e&&w.getEntityNameFromTypeNode(e);if(t&&w.isEntityName(t)){var n=B.getTypeReferenceSerializationKind(t);if(n===w.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===w.TypeReferenceSerializationKind.Unknown)return t}return undefined}(t):undefined,r=198===e.kind,i=0!=(8192&B.getNodeCheckFlags(e)),a=v;v=w.createUnderscoreEscapedMap();for(var o=0,s=e.parameters;o<s.length;o++){D(s[o],v)}var c,u,l,d,p,f,_,h,g=E,m=I;return r||(E=w.createUnderscoreEscapedMap(),I=!1),l=r?(c=Xs(y,i,n,k(e.body)),u=C(),w.some(u)?(h=w.convertToFunctionBody(c),w.updateBlock(h,w.setTextRange(w.createNodeArray(w.concatenate(u,h.statements)),h.statements))):c):(d=[],p=w.addPrologue(d,e.body.statements,!1,N),d.push(w.createReturn(Xs(y,i,n,k(e.body,p)))),w.insertStatementsAfterStandardPrologue(d,C()),(f=2<=x&&6144&B.getNodeCheckFlags(e))&&(0==(1&b)&&(b|=1,y.enableSubstitution(192),y.enableSubstitution(190),y.enableSubstitution(191),y.enableEmitNotification(241),y.enableEmitNotification(157),y.enableEmitNotification(159),y.enableEmitNotification(160),y.enableEmitNotification(158),y.enableEmitNotification(220)),w.hasEntries(E)&&(_=Zs(B,e,E),S[w.getNodeId(_)]=!0,w.insertStatementsAfterStandardPrologue(d,[_]))),h=w.createBlock(d,!0),w.setTextRange(h,e.body),f&&I&&(4096&B.getNodeCheckFlags(e)?w.addEmitHelper(h,w.advancedAsyncSuperHelper):2048&B.getNodeCheckFlags(e)&&w.addEmitHelper(h,w.asyncSuperHelper)),h),v=a,r||(E=g,I=m),l}function k(e,t){return w.isBlock(e)?w.updateBlock(e,w.visitNodes(e.statements,c,w.isStatement,t)):w.convertToFunctionBody(w.visitNode(e,c,w.isConciseBody))}function r(e){return 99===e.expression.kind?w.setTextRange(w.createPropertyAccess(w.createFileLevelUniqueName("_super"),e.name),e):e}function _(e){return 99===e.expression.kind?(t=e.argumentExpression,n=e,4096&o?w.setTextRange(w.createPropertyAccess(w.createCall(w.createFileLevelUniqueName("_superIndex"),undefined,[t]),"value"),n):w.setTextRange(w.createCall(w.createFileLevelUniqueName("_superIndex"),undefined,[t]),n)):e;var t,n}},w.createSuperAccessVariableStatement=Zs,w.awaiterHelper={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},w.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:w.helperString(oo(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},w.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:w.helperString(oo(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},P=rg=rg||{},(L={})[L.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",P.transformES2018=function(_){var d=_.resumeLexicalEnvironment,p=_.endLexicalEnvironment,h=_.hoistVariableDeclaration,f=_.getEmitResolver(),e=_.getCompilerOptions(),g=P.getEmitScriptTarget(e),a=_.onEmitNode;_.onEmitNode=function(e,t,n){if(1&m&&function(e){var t=e.kind;return 241===t||158===t||157===t||159===t||160===t}(t)){var r=6144&f.getNodeCheckFlags(t);if(r!==o){var i=o;return o=r,a(e,t,n),void(o=i)}}else if(m&&v[P.getNodeId(t)]){i=o;return o=0,a(e,t,n),void(o=i)}a(e,t,n)};var m,s,n=_.onSubstituteNode;_.onSubstituteNode=function(e,t){if(t=n(e,t),1===e&&o)return function(e){switch(e.kind){case 190:return r(e);case 191:return i(e);case 192:return function(e){var t=e.expression;if(P.isSuperProperty(t)){var n=(P.isPropertyAccessExpression(t)?r:i)(t);return P.createCall(P.createPropertyAccess(n,"call"),undefined,[P.createThis()].concat(e.arguments))}return e}(e)}return e}(t);return t};var y,b,o=0,v=[];return P.chainBundle(function(e){if(e.isDeclarationFile)return e;var t=P.visitEachChild(e,E,_);return P.addEmitHelpers(t,_.readEmitHelpers()),t});function E(e){return t(e,!1)}function c(e){return t(e,!0)}function u(e){return 122===e.kind?undefined:e}function t(e,t){if(0==(16&e.transformFlags))return e;switch(e.kind){case 202:return function(e){if(2&s&&1&s)return P.setOriginalNode(P.setTextRange(P.createYield(Qs(_,P.visitNode(e.expression,E,P.isExpression))),e),e);return P.visitEachChild(e,E,_)}(e);case 208:return function(e){if(2&s&&1&s){if(e.asteriskToken){var t=P.visitNode(e.expression,E,P.isExpression);return P.setOriginalNode(P.setTextRange(P.createYield(Qs(_,P.updateYield(e,e.asteriskToken,function(e,t,n){return e.requestEmitHelper(P.awaitHelper),e.requestEmitHelper(P.asyncDelegator),P.setTextRange(P.createCall(P.getHelperName("__asyncDelegator"),undefined,[t]),n)}(_,$s(_,t,t),t)))),e),e)}return P.setOriginalNode(P.setTextRange(P.createYield(I(e.expression?P.visitNode(e.expression,E,P.isExpression):P.createVoidZero())),e),e)}return P.visitEachChild(e,E,_)}(e);case 231:return function(e){if(2&s&&1&s)return P.updateReturn(e,I(e.expression?P.visitNode(e.expression,E,P.isExpression):P.createVoidZero()));return P.visitEachChild(e,E,_)}(e);case 234:return function(e){if(2&s){var t=P.unwrapInnermostStatementOfLabel(e);return 228===t.kind&&t.awaitModifier?l(t,e):P.restoreEnclosingLabel(P.visitEachChild(t,E,_),e)}return P.visitEachChild(e,E,_)}(e);case 189:return function(e){if(8192&e.transformFlags){var t=function(e){for(var t,n=[],r=0,i=e;r<i.length;r++){var a,o=i[r];278===o.kind?(t&&(n.push(P.createObjectLiteral(t)),t=undefined),a=o.expression,n.push(P.visitNode(a,E,P.isExpression))):t=P.append(t,276===o.kind?P.createPropertyAssignment(o.name,P.visitNode(o.initializer,E,P.isExpression)):P.visitNode(o,E,P.isObjectLiteralElementLike))}t&&n.push(P.createObjectLiteral(t));return n}(e.properties);return t.length&&189!==t[0].kind&&t.unshift(P.createObjectLiteral()),qs(_,t)}return P.visitEachChild(e,E,_)}(e);case 205:return function(e,t){{if(P.isDestructuringAssignment(e)&&8192&e.left.transformFlags)return P.flattenDestructuringAssignment(e,E,_,1,!t);if(27===e.operatorToken.kind)return P.updateBinary(e,P.visitNode(e.left,c,P.isExpression),P.visitNode(e.right,t?c:E,P.isExpression))}return P.visitEachChild(e,E,_)}(e,t);case 275:return function(e){if(e.variableDeclaration&&P.isBindingPattern(e.variableDeclaration.name)&&8192&e.variableDeclaration.name.transformFlags){var t=P.getGeneratedNameForNode(e.variableDeclaration.name),n=P.updateVariableDeclaration(e.variableDeclaration,e.variableDeclaration.name,undefined,t),r=P.flattenDestructuringBinding(n,E,_,1),i=P.visitNode(e.block,E,P.isBlock);return P.some(r)&&(i=P.updateBlock(i,[P.createVariableStatement(undefined,r)].concat(i.statements))),P.updateCatchClause(e,P.updateVariableDeclaration(e.variableDeclaration,t,undefined,undefined),i)}return P.visitEachChild(e,E,_)}(e);case 238:return function(e){if(P.isBindingPattern(e.name)&&8192&e.name.transformFlags)return P.flattenDestructuringBinding(e,E,_,1);return P.visitEachChild(e,E,_)}(e);case 228:return l(e,undefined);case 226:return o=e,P.updateFor(o,P.visitNode(o.initializer,c,P.isForInitializer),P.visitNode(o.condition,E,P.isExpression),P.visitNode(o.incrementor,E,P.isExpression),P.visitNode(o.statement,E,P.isStatement));case 201:return a=e,P.visitEachChild(a,c,_);case 158:return function(e){var t=s;s=0;var n=P.updateConstructor(e,undefined,e.modifiers,P.visitParameterList(e.parameters,E,_),C(e));return s=t,n}(e);case 157:return function(e){var t=s;s=P.getFunctionFlags(e);var n=P.updateMethod(e,undefined,1&s?P.visitNodes(e.modifiers,u,P.isModifier):e.modifiers,2&s?undefined:e.asteriskToken,P.visitNode(e.name,E,P.isPropertyName),P.visitNode(undefined,E,P.isToken),undefined,P.visitParameterList(e.parameters,E,_),undefined,(2&s&&1&s?T:C)(e));return s=t,n}(e);case 159:return function(e){var t=s;s=0;var n=P.updateGetAccessor(e,undefined,e.modifiers,P.visitNode(e.name,E,P.isPropertyName),P.visitParameterList(e.parameters,E,_),undefined,C(e));return s=t,n}(e);case 160:return function(e){var t=s;s=0;var n=P.updateSetAccessor(e,undefined,e.modifiers,P.visitNode(e.name,E,P.isPropertyName),P.visitParameterList(e.parameters,E,_),C(e));return s=t,n}(e);case 240:return function(e){var t=s;s=P.getFunctionFlags(e);var n=P.updateFunctionDeclaration(e,undefined,1&s?P.visitNodes(e.modifiers,u,P.isModifier):e.modifiers,2&s?undefined:e.asteriskToken,e.name,undefined,P.visitParameterList(e.parameters,E,_),undefined,(2&s&&1&s?T:C)(e));return s=t,n}(e);case 197:return function(e){var t=s;s=P.getFunctionFlags(e);var n=P.updateFunctionExpression(e,1&s?P.visitNodes(e.modifiers,u,P.isModifier):e.modifiers,2&s?undefined:e.asteriskToken,e.name,undefined,P.visitParameterList(e.parameters,E,_),undefined,(2&s&&1&s?T:C)(e));return s=t,n}(e);case 198:return function(e){var t=s;s=P.getFunctionFlags(e);var n=P.updateArrowFunction(e,e.modifiers,undefined,P.visitParameterList(e.parameters,E,_),undefined,e.equalsGreaterThanToken,C(e));return s=t,n}(e);case 152:return function(e){if(8192&e.transformFlags)return P.updateParameter(e,undefined,undefined,e.dotDotDotToken,P.getGeneratedNameForNode(e),undefined,undefined,P.visitNode(e.initializer,E,P.isExpression));return P.visitEachChild(e,E,_)}(e);case 222:return i=e,P.visitEachChild(i,c,_);case 196:return n=e,r=t,P.visitEachChild(n,r?c:E,_);case 190:return y&&P.isPropertyAccessExpression(e)&&99===e.expression.kind&&y.set(e.name.escapedText,!0),P.visitEachChild(e,E,_);case 191:return y&&99===e.expression.kind&&(b=!0),P.visitEachChild(e,E,_);default:return P.visitEachChild(e,E,_)}var n,r,i,a,o}function l(e,t){return 8192&e.initializer.transformFlags&&(e=function(e){var t=P.skipParentheses(e.initializer);if(P.isVariableDeclarationList(t)||P.isAssignmentPattern(t)){var n=void 0,r=void 0,i=P.createTempVariable(undefined),a=[P.createForOfBindingStatement(t,i)];return P.isBlock(e.statement)?(P.addRange(a,e.statement.statements),n=e.statement,r=e.statement.statements):e.statement&&(P.append(a,e.statement),n=e.statement,r=e.statement),P.updateForOf(e,e.awaitModifier,P.setTextRange(P.createVariableDeclarationList([P.setTextRange(P.createVariableDeclaration(i),e.initializer)],1),e.initializer),e.expression,P.setTextRange(P.createBlock(P.setTextRange(P.createNodeArray(a),r),!0),n))}return e}(e)),e.awaitModifier?function(e,t){var n=P.visitNode(e.expression,E,P.isExpression),r=P.isIdentifier(n)?P.getGeneratedNameForNode(n):P.createTempVariable(undefined),i=P.isIdentifier(n)?P.getGeneratedNameForNode(r):P.createTempVariable(undefined),a=P.createUniqueName("e"),o=P.getGeneratedNameForNode(a),s=P.createTempVariable(undefined),c=$s(_,n,e.expression),u=P.createCall(P.createPropertyAccess(r,"next"),undefined,[]),l=P.createPropertyAccess(i,"done"),d=P.createPropertyAccess(i,"value"),p=P.createFunctionCall(s,r,[]);h(a),h(s);var f=P.setEmitFlags(P.setTextRange(P.createFor(P.setEmitFlags(P.setTextRange(P.createVariableDeclarationList([P.setTextRange(P.createVariableDeclaration(r,undefined,c),e.expression),P.createVariableDeclaration(i)]),e.expression),2097152),P.createComma(P.createAssignment(i,I(u)),P.createLogicalNot(l)),undefined,function(e,t){var n,r,i=P.createForOfBindingStatement(e.initializer,t),a=[P.visitNode(i,E,P.isStatement)],o=P.visitNode(e.statement,E,P.isStatement);P.isBlock(o)?(P.addRange(a,o.statements),r=(n=o).statements):a.push(o);return P.setEmitFlags(P.setTextRange(P.createBlock(P.setTextRange(P.createNodeArray(a),r),!0),n),432)}(e,d)),e),256);return P.createTry(P.createBlock([P.restoreEnclosingLabel(f,t)]),P.createCatchClause(P.createVariableDeclaration(o),P.setEmitFlags(P.createBlock([P.createExpressionStatement(P.createAssignment(a,P.createObjectLiteral([P.createPropertyAssignment("error",o)])))]),1)),P.createBlock([P.createTry(P.createBlock([P.setEmitFlags(P.createIf(P.createLogicalAnd(P.createLogicalAnd(i,P.createLogicalNot(l)),P.createAssignment(s,P.createPropertyAccess(r,"return"))),P.createExpressionStatement(I(p))),1)]),undefined,P.setEmitFlags(P.createBlock([P.setEmitFlags(P.createIf(a,P.createThrow(P.createPropertyAccess(a,"error"))),1)]),1))]))}(e,t):P.restoreEnclosingLabel(P.visitEachChild(e,E,_),t)}function I(e){return 1&s?P.createYield(undefined,Qs(_,e)):P.createAwait(e)}function T(e){d();var t=[],n=P.addPrologue(t,e.body.statements,!1,E);B(t,e);var r=y,i=b;y=P.createUnderscoreEscapedMap(),b=!1;var a,o,s,c=P.createReturn((a=_,o=P.createFunctionExpression(undefined,P.createToken(40),e.name&&P.getGeneratedNameForNode(e.name),undefined,[],undefined,P.updateBlock(e.body,P.visitLexicalEnvironment(e.body.statements,E,_,n))),a.requestEmitHelper(P.awaitHelper),a.requestEmitHelper(P.asyncGeneratorHelper),(o.emitNode||(o.emitNode={})).flags|=262144,P.createCall(P.getHelperName("__asyncGenerator"),undefined,[P.createThis(),P.createIdentifier("arguments"),o]))),u=2<=g&&6144&f.getNodeCheckFlags(e);u&&(0==(1&m)&&(m|=1,_.enableSubstitution(192),_.enableSubstitution(190),_.enableSubstitution(191),_.enableEmitNotification(241),_.enableEmitNotification(157),_.enableEmitNotification(159),_.enableEmitNotification(160),_.enableEmitNotification(158),_.enableEmitNotification(220)),s=P.createSuperAccessVariableStatement(f,e,y),v[P.getNodeId(s)]=!0,P.insertStatementsAfterStandardPrologue(t,[s])),t.push(c),P.insertStatementsAfterStandardPrologue(t,p());var l=P.updateBlock(e.body,t);return u&&b&&(4096&f.getNodeCheckFlags(e)?P.addEmitHelper(l,P.advancedAsyncSuperHelper):2048&f.getNodeCheckFlags(e)&&P.addEmitHelper(l,P.asyncSuperHelper)),y=r,b=i,l}function C(e){d();var t=0,n=[],r=P.visitNode(e.body,E,P.isConciseBody);P.isBlock(r)&&(t=P.addPrologue(n,r.statements,!1,E)),P.addRange(n,B(undefined,e));var i=p();if(0<t||P.some(n)||P.some(i)){var a=P.convertToFunctionBody(r,!0);return P.insertStatementsAfterStandardPrologue(n,i),P.addRange(n,a.statements.slice(t)),P.updateBlock(a,P.setTextRange(P.createNodeArray(n),a.statements))}return r}function B(e,t){for(var n=0,r=t.parameters;n<r.length;n++){var i,a,o,s=r[n];8192&s.transformFlags&&(i=P.getGeneratedNameForNode(s),a=P.flattenDestructuringBinding(s,E,_,1,i,!1,!0),P.some(a)&&(o=P.createVariableStatement(undefined,P.createVariableDeclarationList(a)),P.setEmitFlags(o,1048576),e=P.append(e,o)))}return e}function r(e){return 99===e.expression.kind?P.setTextRange(P.createPropertyAccess(P.createFileLevelUniqueName("_super"),e.name),e):e}function i(e){return 99===e.expression.kind?(t=e.argumentExpression,n=e,4096&o?P.setTextRange(P.createPropertyAccess(P.createCall(P.createIdentifier("_superIndex"),undefined,[t]),"value"),n):P.setTextRange(P.createCall(P.createIdentifier("_superIndex"),undefined,[t]),n)):e;var t,n}},P.assignHelper={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},P.createAssignHelper=qs,P.awaitHelper={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},P.asyncGeneratorHelper={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},P.asyncDelegator={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},P.asyncValues={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},(M=rg=rg||{}).transformES2019=function(n){return M.chainBundle(function(e){if(e.isDeclarationFile)return e;return M.visitEachChild(e,r,n)});function r(e){if(0==(8&e.transformFlags))return e;switch(e.kind){case 275:return(t=e).variableDeclaration?M.visitEachChild(t,r,n):M.updateCatchClause(t,M.createVariableDeclaration(M.createTempVariable(undefined)),M.visitNode(t.block,r,M.isBlock));default:return M.visitEachChild(e,r,n)}var t}},(F=rg=rg||{}).transformESNext=function(t){return F.chainBundle(function(e){if(e.isDeclarationFile)return e;return F.visitEachChild(e,n,t)});function n(e){return 0==(4&e.transformFlags)?e:(e.kind,F.visitEachChild(e,n,t))}},function(g){g.transformJsx=function(l){var d,p=l.getCompilerOptions();return g.chainBundle(function(e){if(e.isDeclarationFile)return e;d=e;var t=g.visitEachChild(e,n,l);return g.addEmitHelpers(t,l.readEmitHelpers()),t});function n(e){return 2&e.transformFlags?function(e){switch(e.kind){case 261:return r(e,!1);case 262:return i(e,!1);case 265:return a(e,!1);case 271:return u(e);default:return g.visitEachChild(e,n,l)}}(e):e}function f(e){switch(e.kind){case 11:return(t=function(e){for(var t,n=0,r=-1,i=0;i<e.length;i++){var a=e.charCodeAt(i);g.isLineBreak(a)?(-1!==n&&-1!==r&&(t=s(t,e.substr(n,r-n+1))),n=-1):g.isWhiteSpaceSingleLine(a)||(r=i,-1===n&&(n=i))}return-1!==n?s(t,e.substr(n)):t}(e.text))===undefined?undefined:g.createLiteral(t);case 271:return u(e);case 261:return r(e,!0);case 262:return i(e,!0);case 265:return a(e,!0);default:return g.Debug.failBadSyntaxKind(e)}var t}function r(e,t){return o(e.openingElement,e.children,t,e)}function i(e,t){return o(e,undefined,t,e)}function a(e,t){return function(e,t,n,r){var i=g.createExpressionForJsxFragment(l.getEmitResolver().getJsxFactoryEntity(d),p.reactNamespace,g.mapDefined(t,f),e,r);n&&g.startOnNewLine(i);return i}(e.openingFragment,e.children,t,e)}function o(e,t,n,r){var i,a=function u(e){{if(261===e.kind)return u(e.openingElement);var t=e.tagName;return g.isIdentifier(t)&&g.isIntrinsicJsxName(t.escapedText)?g.createLiteral(g.idText(t)):g.createExpressionFromEntityName(t)}}(e),o=e.attributes.properties,s=0===o.length?g.createNull():(i=g.flatten(g.spanMap(o,g.isJsxSpreadAttribute,function(e,t){return t?g.map(e,_):g.createObjectLiteral(g.map(e,h))})),g.isJsxSpreadAttribute(o[0])&&i.unshift(g.createObjectLiteral()),(s=g.singleOrUndefined(i))||g.createAssignHelper(l,i)),c=g.createExpressionForJsxElement(l.getEmitResolver().getJsxFactoryEntity(d),p.reactNamespace,a,s,g.mapDefined(t,f),e,r);return n&&g.startOnNewLine(c),c}function _(e){return g.visitNode(e.expression,n,g.isExpression)}function h(e){var t,n,r=(t=e.name,n=g.idText(t),/^[A-Za-z_]\w*$/.test(n)?t:g.createLiteral(n)),i=function(e){{if(e===undefined)return g.createTrue();if(10!==e.kind)return 271===e.kind?e.expression===undefined?g.createTrue():u(e):g.Debug.failBadSyntaxKind(e);var t=g.createLiteral(function(e){var t=c(e);return t===e?undefined:t}(e.text)||e.text);return t.singleQuote=e.singleQuote!==undefined?e.singleQuote:!g.isStringDoubleQuoted(e,d),g.setTextRange(t,e)}}(e.initializer);return g.createPropertyAssignment(r,i)}function s(e,t){var n=c(t);return e===undefined?n:e+" "+n}function c(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,n,r,i,a,o){if(i)return String.fromCharCode(parseInt(i,10));if(a)return String.fromCharCode(parseInt(a,16));var s=m.get(o);return s?String.fromCharCode(s):e})}function u(e){return g.visitNode(e.expression,n,g.isExpression)}};var m=g.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})}(rg=rg||{}),(j=rg=rg||{}).transformES2016=function(t){var s=t.hoistVariableDeclaration;return j.chainBundle(function(e){if(e.isDeclarationFile)return e;return j.visitEachChild(e,c,t)});function c(e){if(0==(64&e.transformFlags))return e;switch(e.kind){case 205:return function(e){switch(e.operatorToken.kind){case 64:return function(e){var t,n,r=j.visitNode(e.left,c,j.isExpression),i=j.visitNode(e.right,c,j.isExpression);{var a,o;n=j.isElementAccessExpression(r)?(o=j.createTempVariable(s),a=j.createTempVariable(s),t=j.setTextRange(j.createElementAccess(j.setTextRange(j.createAssignment(o,r.expression),r.expression),j.setTextRange(j.createAssignment(a,r.argumentExpression),r.argumentExpression)),r),j.setTextRange(j.createElementAccess(o,a),r)):j.isPropertyAccessExpression(r)?(o=j.createTempVariable(s),t=j.setTextRange(j.createPropertyAccess(j.setTextRange(j.createAssignment(o,r.expression),r.expression),r.name),r),j.setTextRange(j.createPropertyAccess(o,r.name),r)):t=r}return j.setTextRange(j.createAssignment(t,j.createMathPow(n,i,e)),e)}(e);case 41:return function(e){var t=j.visitNode(e.left,c,j.isExpression),n=j.visitNode(e.right,c,j.isExpression);return j.createMathPow(t,n,e)}(e);default:return j.visitEachChild(e,c,t)}}(e);default:return j.visitEachChild(e,c,t)}}},me=rg=rg||{},(G={})[G.CapturedThis=1]="CapturedThis",G[G.BlockScopedBindings=2]="BlockScopedBindings",(Y={})[Y.Body=1]="Body",Y[Y.Initializer=2]="Initializer",(J={})[J.ToOriginal=0]="ToOriginal",J[J.ToOutParameter=1]="ToOutParameter",(z={})[z.Break=2]="Break",z[z.Continue=4]="Continue",z[z.Return=8]="Return",(U={})[U.None=0]="None",U[U.Function=1]="Function",U[U.ArrowFunction=2]="ArrowFunction",U[U.AsyncFunctionBody=4]="AsyncFunctionBody",U[U.NonStaticClassElement=8]="NonStaticClassElement",U[U.CapturesThis=16]="CapturesThis",U[U.ExportedVariableStatement=32]="ExportedVariableStatement",U[U.TopLevel=64]="TopLevel",U[U.Block=128]="Block",U[U.IterationStatement=256]="IterationStatement",U[U.IterationStatementBlock=512]="IterationStatementBlock",U[U.IterationContainer=1024]="IterationContainer",U[U.ForStatement=2048]="ForStatement",U[U.ForInOrForOfStatement=4096]="ForInOrForOfStatement",U[U.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",U[U.AncestorFactsMask=16383]="AncestorFactsMask",U[U.BlockScopeIncludes=0]="BlockScopeIncludes",U[U.BlockScopeExcludes=7104]="BlockScopeExcludes",U[U.SourceFileIncludes=64]="SourceFileIncludes",U[U.SourceFileExcludes=8064]="SourceFileExcludes",U[U.FunctionIncludes=65]="FunctionIncludes",U[U.FunctionExcludes=16286]="FunctionExcludes",U[U.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",U[U.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",U[U.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",U[U.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",U[U.ConstructorIncludes=73]="ConstructorIncludes",U[U.ConstructorExcludes=16278]="ConstructorExcludes",U[U.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",U[U.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",U[U.ForStatementIncludes=3328]="ForStatementIncludes",U[U.ForStatementExcludes=5056]="ForStatementExcludes",U[U.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",U[U.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",U[U.BlockIncludes=128]="BlockIncludes",U[U.BlockExcludes=6976]="BlockExcludes",U[U.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",U[U.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",U[U.NewTarget=16384]="NewTarget",U[U.CapturedLexicalThis=32768]="CapturedLexicalThis",U[U.SubtreeFactsMask=-16384]="SubtreeFactsMask",U[U.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",U[U.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes",me.transformES2015=function(_){var f,c,h,d,g,i,m=_.startLexicalEnvironment,y=_.resumeLexicalEnvironment,b=_.endLexicalEnvironment,v=_.hoistVariableDeclaration,u=_.getCompilerOptions(),E=_.getEmitResolver(),n=_.onSubstituteNode,a=_.onEmitNode;return _.onEmitNode=function(e,t,n){if(1&i&&me.isFunctionLike(t)){var r=l(16286,8&me.getEmitFlags(t)?81:65);return a(e,t,n),void p(r,0,0)}a(e,t,n)},_.onSubstituteNode=function(e,t){if(t=n(e,t),1===e)return function(e){switch(e.kind){case 73:return function(e){if(2&i&&!me.isInternalName(e)){var t=E.getReferencedDeclarationWithCollidingName(e);if(t&&(!me.isClassLike(t)||!function(e,t){var n=me.getParseTreeNode(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;var r=me.getEnclosingBlockScopeContainer(e);for(;n;){if(n===r||n===e)return!1;if(me.isClassElement(n)&&n.parent===e)return!0;n=n.parent}return!1}(t,e)))return me.setTextRange(me.getGeneratedNameForNode(me.getNameOfDeclaration(t)),e)}return e}(e);case 101:return function(e){if(1&i&&16&h)return me.setTextRange(me.createFileLevelUniqueName("_this"),e);return e}(e)}return e}(t);if(me.isIdentifier(t))return function(e){if(2&i&&!me.isInternalName(e)){var t=me.getParseTreeNode(e,me.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 187:case 241:case 244:case 238:return e.parent.name===e&&E.isDeclarationWithCollidingName(e.parent)}return!1}(t))return me.setTextRange(me.getGeneratedNameForNode(t),e)}return e}(t);return t},me.chainBundle(function(e){if(e.isDeclarationFile)return e;c=(f=e).text;var t=function(e){var t=l(8064,64),n=[],r=[];m();var i=me.addStandardPrologue(n,e.statements,!1);i=me.addCustomPrologue(n,e.statements,i,I),me.addRange(r,me.visitNodes(e.statements,I,me.isStatement,i)),d&&r.push(me.createVariableStatement(undefined,me.createVariableDeclarationList(d)));return me.mergeLexicalEnvironment(n,b()),D(n,e),p(t,0,0),me.updateSourceFileNode(e,me.setTextRange(me.createNodeArray(me.concatenate(n,r)),e.statements))}(e);return me.addEmitHelpers(t,_.readEmitHelpers()),f=undefined,c=undefined,d=undefined,h=0,t});function l(e,t){var n=h;return h=16383&(h&~e|t),n}function p(e,t,n){h=-16384&(h&~t|n)|e}function r(e){return 0!=(8192&h)&&231===e.kind&&!e.expression}function I(e){return 0!=(128&(t=e).transformFlags)||g!==undefined||8192&h&&(me.isStatement(t)||219===t.kind)||me.isIterationStatement(t,!1)&&$(t)||0!=(33554432&me.getEmitFlags(t))?function(e){switch(e.kind){case 117:return undefined;case 241:return function(e){var t=me.createVariableDeclaration(me.getLocalName(e,!0),undefined,T(e));me.setOriginalNode(t,e);var n=[],r=me.createVariableStatement(undefined,me.createVariableDeclarationList([t]));{var i;me.setOriginalNode(r,e),me.setTextRange(r,e),me.startOnNewLine(r),n.push(r),me.hasModifier(e,1)&&(i=me.hasModifier(e,512)?me.createExportDefault(me.getLocalName(e)):me.createExternalModuleExport(me.getLocalName(e)),me.setOriginalNode(i,r),n.push(i))}var a=me.getEmitFlags(e);0==(4194304&a)&&(n.push(me.createEndOfDeclarationMarker(e)),me.setEmitFlags(r,4194304|a));return me.singleOrMany(n)}(e);case 210:return T(e);case 152:return function(e){return e.dotDotDotToken?undefined:me.isBindingPattern(e.name)?me.setOriginalNode(me.setTextRange(me.createParameter(undefined,undefined,undefined,me.getGeneratedNameForNode(e),undefined,undefined,undefined),e),e):e.initializer?me.setOriginalNode(me.setTextRange(me.createParameter(undefined,undefined,undefined,e.name,undefined,undefined,undefined),e),e):e}(e);case 240:return function(e){var t=g;g=undefined;var n=l(16286,65),r=me.visitParameterList(e.parameters,I,_),i=P(e),a=16384&h?me.getLocalName(e):e.name;return p(n,49152,0),g=t,me.updateFunctionDeclaration(e,undefined,me.visitNodes(e.modifiers,I,me.isModifier),e.asteriskToken,a,undefined,r,undefined,i)}(e);case 198:return function(e){2048&e.transformFlags&&(h|=32768);var t=g;g=undefined;var n=l(15232,66),r=me.createFunctionExpression(undefined,undefined,undefined,undefined,me.visitParameterList(e.parameters,I,_),undefined,P(e));me.setTextRange(r,e),me.setOriginalNode(r,e),me.setEmitFlags(r,8),32768&h&&he();return p(n,0,0),g=t,r}(e);case 197:return function(e){var t=262144&me.getEmitFlags(e)?l(16278,69):l(16286,65),n=g;g=undefined;var r=me.visitParameterList(e.parameters,I,_),i=P(e),a=16384&h?me.getLocalName(e):e.name;return p(t,49152,0),g=n,me.updateFunctionExpression(e,undefined,e.asteriskToken,a,undefined,r,undefined,i)}(e);case 238:return O(e);case 73:return function(e){if(!g)return e;if(me.isGeneratedIdentifier(e))return e;return"arguments"===e.escapedText&&E.isArgumentsLocalBinding(e)?g.argumentsName||(g.argumentsName=me.createUniqueName("arguments")):e}(e);case 239:return function(e){if(3&e.flags||65536&e.transformFlags){3&e.flags&&_e();var t=me.flatMap(e.declarations,1&e.flags?F:O),n=me.createVariableDeclarationList(t);return me.setOriginalNode(n,e),me.setTextRange(n,e),me.setCommentRange(n,e),65536&e.transformFlags&&(me.isBindingPattern(e.declarations[0].name)||me.isBindingPattern(me.last(e.declarations).name))&&me.setSourceMapRange(n,function(e){for(var t=-1,n=-1,r=0,i=e;r<i.length;r++){var a=i[r];t=-1===t?a.pos:-1===a.pos?t:Math.min(t,a.pos),n=Math.max(n,a.end)}return me.createRange(t,n)}(t)),n}return me.visitEachChild(e,I,_)}(e);case 233:return function(e){if(g===undefined)return me.visitEachChild(e,I,_);var t=g.allowedNonLabeledJumps;g.allowedNonLabeledJumps|=2;var n=me.visitEachChild(e,I,_);return g.allowedNonLabeledJumps=t,n}(e);case 247:return function(e){var t=l(7104,0),n=me.visitEachChild(e,I,_);return p(t,0,0),n}(e);case 219:return function(e,t){if(t)return me.visitEachChild(e,I,_);var n=256&h?l(7104,512):l(6976,128),r=me.visitEachChild(e,I,_);return p(n,0,0),r}(e,!1);case 230:case 229:return function(e){if(g){var t=230===e.kind?2:4;if(!(e.label&&g.labels&&g.labels.get(me.idText(e.label))||!e.label&&g.allowedNonLabeledJumps&t)){var n=void 0,r=e.label;r?230===e.kind?(n="break-"+r.escapedText,ae(g,!0,me.idText(r),n)):(n="continue-"+r.escapedText,ae(g,!1,me.idText(r),n)):n=230===e.kind?(g.nonLocalJumps|=2,"break"):(g.nonLocalJumps|=4,"continue");var i=me.createLiteral(n);if(g.loopOutParameters.length){for(var a=g.loopOutParameters,o=void 0,s=0;s<a.length;s++){var c=re(a[s],1);o=0===s?c:me.createBinary(o,27,c)}i=me.createBinary(o,27,i)}return me.createReturn(i)}}return me.visitEachChild(e,I,_)}(e);case 234:return function(e){g&&!g.labels&&(g.labels=me.createMap());var t=me.unwrapInnermostStatementOfLabel(e,g&&R);return me.isIterationStatement(t,!1)?function(e,t){switch(e.kind){case 224:case 225:return W(e,t);case 226:return G(e,t);case 227:return Y(e,t);case 228:return J(e,t)}}(t,e):me.restoreEnclosingLabel(me.visitNode(t,I,me.isStatement,me.liftToBlock),e,g&&H)}(e);case 224:case 225:return W(e,undefined);case 226:return G(e,undefined);case 227:return Y(e,undefined);case 228:return J(e,undefined);case 222:return function(e){switch(e.expression.kind){case 196:return me.updateExpressionStatement(e,L(e.expression,!1));case 205:return me.updateExpressionStatement(e,M(e.expression,!1))}return me.visitEachChild(e,I,_)}(e);case 189:return function(e){for(var t=e.properties,n=t.length,r=n,i=n,a=0;a<n;a++){var o=t[a];if(131072&o.transformFlags&&4&h&&a<i&&(i=a),150===o.name.kind){r=a;break}}if(r===n)return me.visitEachChild(e,I,_);i<r&&(r=i);var s=me.createTempVariable(v),c=[],u=me.createAssignment(s,me.setEmitFlags(me.createObjectLiteral(me.visitNodes(t,I,me.isObjectLiteralElementLike,0,r),e.multiLine),65536));e.multiLine&&me.startOnNewLine(u);return c.push(u),function(e,t,n,r){for(var i=t.properties,a=i.length,o=r;o<a;o++){var s=i[o];switch(s.kind){case 159:case 160:var c=me.getAllAccessorDeclarations(t.properties,s);s===c.firstAccessor&&e.push(w(n,c,t,!!t.multiLine));break;case 157:e.push(function(e,t,n,r){var i=me.createAssignment(me.createMemberAccessForPropertyName(t,me.visitNode(e.name,I,me.isPropertyName)),V(e,e,undefined,n));me.setTextRange(i,e),r&&me.startOnNewLine(i);return i}(s,n,t,t.multiLine));break;case 276:e.push(function(e,t,n){var r=me.createAssignment(me.createMemberAccessForPropertyName(t,me.visitNode(e.name,I,me.isPropertyName)),me.visitNode(e.initializer,I,me.isExpression));me.setTextRange(r,e),n&&me.startOnNewLine(r);return r}(s,n,t.multiLine));break;case 277:e.push(function(e,t,n){var r=me.createAssignment(me.createMemberAccessForPropertyName(t,me.visitNode(e.name,I,me.isPropertyName)),me.getSynthesizedClone(e.name));me.setTextRange(r,e),n&&me.startOnNewLine(r);return r}(s,n,t.multiLine));break;default:me.Debug.failBadSyntaxKind(t)}}}(c,e,s,r),c.push(e.multiLine?me.startOnNewLine(me.getMutableClone(s)):s),me.inlineExpressions(c)}(e);case 275:return function(e){var t,n=l(7104,0);{var r,i,a,o,s;me.Debug.assert(!!e.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),t=me.isBindingPattern(e.variableDeclaration.name)?(r=me.createTempVariable(undefined),i=me.createVariableDeclaration(r),me.setTextRange(i,e.variableDeclaration),a=me.flattenDestructuringBinding(e.variableDeclaration,I,_,0,r),o=me.createVariableDeclarationList(a),me.setTextRange(o,e.variableDeclaration),s=me.createVariableStatement(undefined,o),me.updateCatchClause(e,i,function(e,t){var n=me.visitNodes(e.statements,I,me.isStatement);return me.updateBlock(e,[t].concat(n))}(e.block,s))):me.visitEachChild(e,I,_)}return p(n,0,0),t}(e);case 277:return function(e){return me.setTextRange(me.createPropertyAssignment(e.name,me.getSynthesizedClone(e.name)),e)}(e);case 150:return function(e){return me.visitEachChild(e,I,_)}(e);case 188:return function(e){if(me.some(e.elements,me.isSpreadElement))return ce(e.elements,!0,!!e.multiLine,!!e.elements.hasTrailingComma);return me.visitEachChild(e,I,_)}(e);case 192:return function(e){if(33554432&me.getEmitFlags(e))return function(e){var t=me.cast(me.cast(me.skipOuterExpressions(e.expression),me.isArrowFunction).body,me.isBlock),n=function n(e){return me.isVariableStatement(e)&&!!me.first(e.declarationList.declarations).initializer},r=me.visitNodes(t.statements,I,me.isStatement),i=me.filter(r,n),a=me.filter(r,function(e){return!n(e)}),o=me.cast(me.first(i),me.isVariableStatement).declarationList.declarations[0],s=me.skipOuterExpressions(o.initializer),c=me.tryCast(s,me.isAssignmentExpression),u=me.cast(c?me.skipOuterExpressions(c.right):s,me.isCallExpression),l=me.cast(me.skipOuterExpressions(u.expression),me.isFunctionExpression),d=l.body.statements,p=0,f=-1,_=[];{var h;c&&((h=me.tryCast(d[p],me.isExpressionStatement))&&(_.push(h),p++),_.push(d[p]),p++,_.push(me.createExpressionStatement(me.createAssignment(c.left,me.cast(o.name,me.isIdentifier)))))}for(;!me.isReturnStatement(me.elementAt(d,f));)f--;me.addRange(_,d,p,f),f<-1&&me.addRange(_,d,f+1);return me.addRange(_,a),me.addRange(_,i,1),me.recreateOuterExpressions(e.expression,me.recreateOuterExpressions(o.initializer,me.recreateOuterExpressions(c&&c.right,me.updateCall(u,me.recreateOuterExpressions(u.expression,me.updateFunctionExpression(l,undefined,undefined,undefined,undefined,l.parameters,undefined,me.updateBlock(l.body,_))),undefined,u.arguments))))}(e);var t=me.skipOuterExpressions(e.expression);if(99===t.kind||me.isSuperProperty(t)||me.some(e.arguments,me.isSpreadElement))return se(e,!0);return me.updateCall(e,me.visitNode(e.expression,s,me.isExpression),undefined,me.visitNodes(e.arguments,I,me.isExpression))}(e);case 193:return function(e){if(me.some(e.arguments,me.isSpreadElement)){var t=me.createCallBinding(me.createPropertyAccess(e.expression,"bind"),v),n=t.target,r=t.thisArg;return me.createNew(me.createFunctionApply(me.visitNode(n,I,me.isExpression),r,ce(me.createNodeArray([me.createVoidZero()].concat(e.arguments)),!1,!1,!1)),undefined,[])}return me.visitEachChild(e,I,_)}(e);case 196:return L(e,!0);case 205:return M(e,!0);case 14:case 15:case 16:case 17:return function(e){return me.setTextRange(me.createLiteral(e.text),e)}(e);case 10:return function(e){if(e.hasExtendedUnicodeEscape)return me.setTextRange(me.createLiteral(e.text),e);return e}(e);case 8:return function(e){if(384&e.numericLiteralFlags)return me.setTextRange(me.createNumericLiteral(e.text),e);return e}(e);case 194:return function(e){var t=me.visitNode(e.tag,I,me.isExpression),n=[undefined],r=[],i=[],a=e.template;if(me.isNoSubstitutionTemplateLiteral(a))r.push(me.createLiteral(a.text)),i.push(pe(a));else{r.push(me.createLiteral(a.head.text)),i.push(pe(a.head));for(var o=0,s=a.templateSpans;o<s.length;o++){var c=s[o];r.push(me.createLiteral(c.literal.text)),i.push(pe(c.literal)),n.push(me.visitNode(c.expression,I,me.isExpression))}}var u=function(e,t,n){return e.requestEmitHelper(me.templateObjectHelper),me.createCall(me.getHelperName("__makeTemplateObject"),undefined,[t,n])}(_,me.createArrayLiteral(r),me.createArrayLiteral(i));{var l;me.isExternalModule(f)?(function(e){d=me.append(d,me.createVariableDeclaration(e))}(l=me.createUniqueName("templateObject")),n[0]=me.createLogicalOr(l,me.createAssignment(l,u))):n[0]=u}return me.createCall(t,undefined,n)}(e);case 207:return function(e){var t=[];(function(e,t){if(!function(e){return me.Debug.assert(0!==e.templateSpans.length),0!==e.head.text.length||0===e.templateSpans[0].literal.text.length}(t))return;e.push(me.createLiteral(t.head.text))})(t,e),function(e,t){for(var n=0,r=t.templateSpans;n<r.length;n++){var i=r[n];e.push(me.visitNode(i.expression,I,me.isExpression)),0!==i.literal.text.length&&e.push(me.createLiteral(i.literal.text))}}(t,e);var n=me.reduceLeft(t,me.createAdd);me.nodeIsSynthesized(n)&&(n.pos=e.pos,n.end=e.end);return n}(e);case 208:return function(e){return me.visitEachChild(e,I,_)}(e);case 209:return function(e){return me.visitNode(e.expression,I,me.isExpression)}(e);case 99:return fe(!1);case 101:return function(e){2&h&&(h|=32768);if(g)return 2&h?(g.containsLexicalThis=!0,e):g.thisName||(g.thisName=me.createUniqueName("this"));return e}(e);case 215:return function(e){return 96!==e.keywordToken||"target"!==e.name.escapedText?e:(h|=16384,me.createFileLevelUniqueName("_newTarget"))}(e);case 157:return function(e){me.Debug.assert(!me.isComputedPropertyName(e.name));var t=V(e,me.moveRangePos(e,-1),undefined,undefined);return me.setEmitFlags(t,512|me.getEmitFlags(t)),me.setTextRange(me.createPropertyAssignment(e.name,t),e)}(e);case 159:case 160:return function(e){me.Debug.assert(!me.isComputedPropertyName(e.name));var t=g;g=undefined;var n,r=l(16286,65),i=me.visitParameterList(e.parameters,I,_),a=P(e);n=159===e.kind?me.updateGetAccessor(e,e.decorators,e.modifiers,e.name,i,e.type,a):me.updateSetAccessor(e,e.decorators,e.modifiers,e.name,i,a);return p(r,49152,0),g=t,n}(e);case 220:return function(e){var t,n=l(0,me.hasModifier(e,1)?32:0);if(g&&0==(3&e.declarationList.flags)){for(var r=void 0,i=0,a=e.declarationList.declarations;i<a.length;i++){var o,s=a[i];!function(i,e){i.hoistedLocalVariables||(i.hoistedLocalVariables=[]);!function a(e){if(73===e.kind)i.hoistedLocalVariables.push(e);else for(var t=0,n=e.elements;t<n.length;t++){var r=n[t];me.isOmittedExpression(r)||a(r.name)}}(e.name)}(g,s),s.initializer&&(o=void 0,me.isBindingPattern(s.name)?o=me.flattenDestructuringAssignment(s,I,_,0):(o=me.createBinary(s.name,60,me.visitNode(s.initializer,I,me.isExpression)),me.setTextRange(o,s)),r=me.append(r,o))}t=r?me.setTextRange(me.createExpressionStatement(me.inlineExpressions(r)),e):undefined}else t=me.visitEachChild(e,I,_);return p(n,0,0),t}(e);case 231:return function(e){{if(g)return g.nonLocalJumps|=8,r(e)&&(e=o(e)),me.createReturn(me.createObjectLiteral([me.createPropertyAssignment(me.createIdentifier("value"),e.expression?me.visitNode(e.expression,I,me.isExpression):me.createVoidZero())]));if(r(e))return o(e)}return me.visitEachChild(e,I,_)}(e);default:return me.visitEachChild(e,I,_)}}(e):e;var t}function s(e){return 99===e.kind?fe(!0):I(e)}function o(e){return me.setOriginalNode(me.createReturn(me.createFileLevelUniqueName("_this")),e)}function T(e){e.name&&_e();var t=me.getClassExtendsHeritageElement(e),n=me.createFunctionExpression(undefined,undefined,undefined,undefined,t?[me.createParameter(undefined,undefined,undefined,me.createFileLevelUniqueName("_super"))]:[],undefined,function(e,t){var n=[];m(),function(e,t,n){n&&e.push(me.setTextRange(me.createExpressionStatement(function(e,t){return e.requestEmitHelper(me.extendsHelper),me.createCall(me.getHelperName("__extends"),undefined,[t,me.createFileLevelUniqueName("_super")])}(_,me.getInternalName(t))),n))}(n,e,t),function(e,t,n){var r=g;g=undefined;var i=l(16278,73),a=me.getFirstConstructorWithBody(t),o=function(e,t){if(!e||!t)return!1;if(me.some(e.parameters))return!1;var n=me.firstOrUndefined(e.body.statements);if(!n||!me.nodeIsSynthesized(n)||222!==n.kind)return!1;var r=n.expression;if(!me.nodeIsSynthesized(r)||192!==r.kind)return!1;var i=r.expression;if(!me.nodeIsSynthesized(i)||99!==i.kind)return!1;var a=me.singleOrUndefined(r.arguments);if(!a||!me.nodeIsSynthesized(a)||209!==a.kind)return!1;var o=a.expression;return me.isIdentifier(o)&&"arguments"===o.escapedText}(a,n!==undefined),s=me.createFunctionDeclaration(undefined,undefined,undefined,me.getInternalName(t),undefined,function(e,t){return me.visitParameterList(e&&!t?e.parameters:undefined,I,_)||[]}(a,o),undefined,function(e,t,n,r){var i=!!n&&97!==me.skipOuterExpressions(n.expression).kind;if(!e)return function(e,t){var n=[];y(),me.mergeLexicalEnvironment(n,b()),t&&n.push(me.createReturn(B()));var r=me.createNodeArray(n);me.setTextRange(r,e.members);var i=me.createBlock(r,!0);return me.setTextRange(i,e),me.setEmitFlags(i,1536),i}(t,i);var a=[],o=[];y();var s,c=0;r||(c=me.addStandardPrologue(a,e.body.statements,!1));S(o,e),N(o,e,r),r||(c=me.addCustomPrologue(o,e.body.statements,c,I));{var u;r?s=B():i&&c<e.body.statements.length&&(u=e.body.statements[c],me.isExpressionStatement(u)&&me.isSuperCall(u.expression)&&(s=function(e){return se(e,!1)}(u.expression)))}s&&(h|=8192,c++);{var l,d;me.addRange(o,me.visitNodes(e.body.statements,I,me.isStatement,c)),me.mergeLexicalEnvironment(a,b()),A(a,e,!1),i?!s||c!==e.body.statements.length||2048&e.body.transformFlags?(k(o,e,s||C()),function f(e){{if(231===e.kind)return!0;if(223===e.kind){var t=e;if(t.elseStatement)return f(t.thenStatement)&&f(t.elseStatement)}else if(219===e.kind){var n=me.lastOrUndefined(e.statements);if(n&&f(n))return!0}}return!1}(e.body)||o.push(me.createReturn(me.createFileLevelUniqueName("_this")))):(l=me.cast(me.cast(s,me.isBinaryExpression).left,me.isCallExpression),d=me.createReturn(s),me.setCommentRange(d,me.getCommentRange(l)),me.setEmitFlags(l,1536),o.push(d)):D(a,e)}var p=me.createBlock(me.setTextRange(me.createNodeArray(me.concatenate(a,o)),e.body.statements),!0);return me.setTextRange(p,e.body),p}(a,t,n,o));me.setTextRange(s,a||t),n&&me.setEmitFlags(s,8);e.push(s),p(i,49152,0),g=r}(n,e,t),function(e,t){for(var n=0,r=t.members;n<r.length;n++){var i=r[n];switch(i.kind){case 218:e.push(function(e){return me.setTextRange(me.createEmptyStatement(),e)}(i));break;case 157:e.push(function(e,t,n){var r=me.getCommentRange(t),i=me.getSourceMapRange(t),a=me.createMemberAccessForPropertyName(e,me.visitNode(t.name,I,me.isPropertyName),t.name),o=V(t,t,undefined,n);me.setEmitFlags(o,1536),me.setSourceMapRange(o,i);var s=me.setTextRange(me.createExpressionStatement(me.createAssignment(a,o)),t);return me.setOriginalNode(s,t),me.setCommentRange(s,r),me.setEmitFlags(s,48),s}(ge(t,i),i,t));break;case 159:case 160:var a=me.getAllAccessorDeclarations(t.members,i);i===a.firstAccessor&&e.push(function(e,t,n){var r=me.createExpressionStatement(w(e,t,n,!1));return me.setEmitFlags(r,1536),me.setSourceMapRange(r,me.getSourceMapRange(t.firstAccessor)),r}(ge(t,i),a,t));break;case 158:break;default:me.Debug.failBadSyntaxKind(t)}}}(n,e);var r=me.createTokenRange(me.skipTrivia(c,e.members.end),19),i=me.getInternalName(e),a=me.createPartiallyEmittedExpression(i);a.end=r.end,me.setEmitFlags(a,1536);var o=me.createReturn(a);o.pos=r.pos,me.setEmitFlags(o,1920),n.push(o),me.insertStatementsAfterStandardPrologue(n,b());var s=me.createBlock(me.setTextRange(me.createNodeArray(n),e.members),!0);return me.setEmitFlags(s,1536),s}(e,t));me.setEmitFlags(n,65536&me.getEmitFlags(e)|524288);var r=me.createPartiallyEmittedExpression(n);r.end=e.end,me.setEmitFlags(r,1536);var i=me.createPartiallyEmittedExpression(r);i.end=me.skipTrivia(c,e.pos),me.setEmitFlags(i,1536);var a=me.createParen(me.createCall(i,undefined,t?[me.visitNode(t.expression,I,me.isExpression)]:[]));return me.addSyntheticLeadingComment(a,3,"* @class "),a}function C(){return me.setEmitFlags(me.createThis(),4)}function B(){return me.createLogicalOr(me.createLogicalAnd(me.createStrictInequality(me.createFileLevelUniqueName("_super"),me.createNull()),me.createFunctionApply(me.createFileLevelUniqueName("_super"),C(),me.createIdentifier("arguments"))),C())}function x(e){return e.initializer!==undefined||me.isBindingPattern(e.name)}function S(e,t){if(!me.some(t.parameters,x))return!1;for(var n=!1,r=0,i=t.parameters;r<i.length;r++){var a=i[r],o=a.name,s=a.initializer;a.dotDotDotToken||(me.isBindingPattern(o)?n=function(e,t,n,r){{if(0<n.elements.length)return me.insertStatementAfterCustomPrologue(e,me.setEmitFlags(me.createVariableStatement(undefined,me.createVariableDeclarationList(me.flattenDestructuringBinding(t,I,_,0,me.getGeneratedNameForNode(t)))),1048576)),!0;if(r)return me.insertStatementAfterCustomPrologue(e,me.setEmitFlags(me.createExpressionStatement(me.createAssignment(me.getGeneratedNameForNode(t),me.visitNode(r,I,me.isExpression))),1048576)),!0}return!1}(e,a,o,s)||n:s&&(function(e,t,n,r){r=me.visitNode(r,I,me.isExpression);var i=me.createIf(me.createTypeCheck(me.getSynthesizedClone(n),"undefined"),me.setEmitFlags(me.setTextRange(me.createBlock([me.createExpressionStatement(me.setEmitFlags(me.setTextRange(me.createAssignment(me.setEmitFlags(me.getMutableClone(n),48),me.setEmitFlags(r,1584|me.getEmitFlags(r))),t),1536))]),t),1953));me.startOnNewLine(i),me.setTextRange(i,t),me.setEmitFlags(i,1050528),me.insertStatementAfterCustomPrologue(e,i)}(e,a,o,s),n=!0))}return n}function N(e,t,n){var r,i,a=[],o=me.lastOrUndefined(t.parameters);if(i=n,!(r=o)||!r.dotDotDotToken||i)return!1;var s=73===o.name.kind?me.getMutableClone(o.name):me.createTempVariable(undefined);me.setEmitFlags(s,48);var c=73===o.name.kind?me.getSynthesizedClone(o.name):s,u=t.parameters.length-1,l=me.createLoopVariable();a.push(me.setEmitFlags(me.setTextRange(me.createVariableStatement(undefined,me.createVariableDeclarationList([me.createVariableDeclaration(s,undefined,me.createArrayLiteral([]))])),o),1048576));var d=me.createFor(me.setTextRange(me.createVariableDeclarationList([me.createVariableDeclaration(l,undefined,me.createLiteral(u))]),o),me.setTextRange(me.createLessThan(l,me.createPropertyAccess(me.createIdentifier("arguments"),"length")),o),me.setTextRange(me.createPostfixIncrement(l),o),me.createBlock([me.startOnNewLine(me.setTextRange(me.createExpressionStatement(me.createAssignment(me.createElementAccess(c,0==u?l:me.createSubtract(l,me.createLiteral(u))),me.createElementAccess(me.createIdentifier("arguments"),l))),o))]));return me.setEmitFlags(d,1048576),me.startOnNewLine(d),a.push(d),73!==o.name.kind&&a.push(me.setEmitFlags(me.setTextRange(me.createVariableStatement(undefined,me.createVariableDeclarationList(me.flattenDestructuringBinding(o,I,_,0,c))),o),1048576)),me.insertStatementsAfterCustomPrologue(e,a),!0}function D(e,t){return 32768&h&&198!==t.kind&&(k(e,t,me.createThis()),1)}function k(e,t,n){he();var r=me.createVariableStatement(undefined,me.createVariableDeclarationList([me.createVariableDeclaration(me.createFileLevelUniqueName("_this"),undefined,n)]));me.setEmitFlags(r,1050112),me.setSourceMapRange(r,t),me.insertStatementAfterCustomPrologue(e,r)}function A(e,t,n){if(16384&h){var r=void 0;switch(t.kind){case 198:return e;case 157:case 159:case 160:r=me.createVoidZero();break;case 158:r=me.createPropertyAccess(me.setEmitFlags(me.createThis(),4),"constructor");break;case 240:case 197:r=me.createConditional(me.createLogicalAnd(me.setEmitFlags(me.createThis(),4),me.createBinary(me.setEmitFlags(me.createThis(),4),95,me.getLocalName(t))),me.createPropertyAccess(me.setEmitFlags(me.createThis(),4),"constructor"),me.createVoidZero());break;default:return me.Debug.failBadSyntaxKind(t)}var i=me.createVariableStatement(undefined,me.createVariableDeclarationList([me.createVariableDeclaration(me.createFileLevelUniqueName("_newTarget"),undefined,r)]));me.setEmitFlags(i,1050112),n&&(e=e.slice()),me.insertStatementAfterCustomPrologue(e,i)}return e}function w(e,t,n,r){var i=t.firstAccessor,a=t.getAccessor,o=t.setAccessor,s=me.getMutableClone(e);me.setEmitFlags(s,1568),me.setSourceMapRange(s,i.name);var c=me.createExpressionForPropertyName(me.visitNode(i.name,I,me.isPropertyName));me.setEmitFlags(c,1552),me.setSourceMapRange(c,i.name);var u,l,d,p,f=[];a&&(u=V(a,undefined,undefined,n),me.setSourceMapRange(u,me.getSourceMapRange(a)),me.setEmitFlags(u,512),l=me.createPropertyAssignment("get",u),me.setCommentRange(l,me.getCommentRange(a)),f.push(l)),o&&(d=V(o,undefined,undefined,n),me.setSourceMapRange(d,me.getSourceMapRange(o)),me.setEmitFlags(d,512),p=me.createPropertyAssignment("set",d),me.setCommentRange(p,me.getCommentRange(o)),f.push(p)),f.push(me.createPropertyAssignment("enumerable",me.createTrue()),me.createPropertyAssignment("configurable",me.createTrue()));var _=me.createCall(me.createPropertyAccess(me.createIdentifier("Object"),"defineProperty"),undefined,[s,c,me.createObjectLiteral(f,!0)]);return r&&me.startOnNewLine(_),_}function V(e,t,n,r){var i=g;g=undefined;var a=r&&me.isClassLike(r)&&!me.hasModifier(e,32)?l(16286,73):l(16286,65),o=me.visitParameterList(e.parameters,I,_),s=P(e);return 16384&h&&!n&&(240===e.kind||197===e.kind)&&(n=me.getGeneratedNameForNode(e)),p(a,49152,0),g=i,me.setOriginalNode(me.setTextRange(me.createFunctionExpression(undefined,e.asteriskToken,n,undefined,o,undefined,s),t),e)}function P(e){var t,n,r,i,a,o,s=!1,c=!1,u=[],l=[],d=e.body;if(y(),me.isBlock(d)&&(r=me.addStandardPrologue(u,d.statements,!1)),s=S(l,e)||s,s=N(l,e,!1)||s,me.isBlock(d)?(r=me.addCustomPrologue(l,d.statements,r,I),t=d.statements,me.addRange(l,me.visitNodes(d.statements,I,me.isStatement,r)),!s&&d.multiLine&&(s=!0)):(me.Debug.assert(198===e.kind),t=me.moveRangeEnd(d,-1),i=e.equalsGreaterThanToken,me.nodeIsSynthesized(i)||me.nodeIsSynthesized(d)||(me.rangeEndIsOnSameLineAsRangeStart(i,d,f)?c=!0:s=!0),a=me.visitNode(d,I,me.isExpression),o=me.createReturn(a),me.setTextRange(o,d),me.moveSyntheticComments(o,d),me.setEmitFlags(o,1440),l.push(o),n=d),me.mergeLexicalEnvironment(u,b()),A(u,e,!1),D(u,e),me.some(u)&&(s=!0),l.unshift.apply(l,u),me.isBlock(d)&&me.arrayIsEqualTo(l,d.statements))return d;var p=me.createBlock(me.setTextRange(me.createNodeArray(l),t),s);return me.setTextRange(p,e.body),!s&&c&&me.setEmitFlags(p,1),n&&me.setTokenSourceMapRange(p,19,n),me.setOriginalNode(p,e.body),p}function L(e,t){if(!t)switch(e.expression.kind){case 196:return me.updateParen(e,L(e.expression,!1));case 205:return me.updateParen(e,M(e.expression,!1))}return me.visitEachChild(e,I,_)}function M(e,t){return me.isDestructuringAssignment(e)?me.flattenDestructuringAssignment(e,I,_,0,t):me.visitEachChild(e,I,_)}function F(e){var t,n,r,i,a=e.name;if(me.isBindingPattern(a))return O(e);if(e.initializer||(t=e,n=E.getNodeCheckFlags(t),r=262144&n,i=524288&n,0!=(64&h)||r&&i&&0!=(512&h)||0!=(4096&h)||E.isDeclarationWithCollidingName(t)&&(!i||r||0!=(6144&h))))return me.visitEachChild(e,I,_);var o=me.getMutableClone(e);return o.initializer=me.createVoidZero(),o}function O(e){var t=l(32,0),n=me.isBindingPattern(e.name)?me.flattenDestructuringBinding(e,I,_,0,undefined,0!=(32&t)):me.visitEachChild(e,I,_);return p(t,0,0),n}function R(e){g.labels.set(me.idText(e.label),!0)}function H(e){g.labels.set(me.idText(e.label),!1)}function j(e,t,n,r,i){var a=l(e,t),o=function(e,t,n,r){if(!$(e)){var i=void 0;g&&(i=g.allowedNonLabeledJumps,g.allowedNonLabeledJumps=6);var a=r?r(e,t,undefined,n):me.restoreEnclosingLabel(me.visitEachChild(e,I,_),t,g&&H);return g&&(g.allowedNonLabeledJumps=i),a}var o=function(e){var t;switch(e.kind){case 226:case 227:case 228:var n=e.initializer;n&&239===n.kind&&(t=n)}var r=[],i=[];if(t&&3&me.getCombinedNodeFlags(t))for(var a=q(e),o=0,s=t.declarations;o<s.length;o++){var c=s[o];!function p(e,t,n,r,i){var a=t.name;if(me.isBindingPattern(a))for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];me.isOmittedExpression(c)||p(e,c,n,r,i)}else{n.push(me.createParameter(undefined,undefined,undefined,a));var u,l,d=E.getNodeCheckFlags(t);(4194304&d||i)&&(u=me.createUniqueName("out_"+me.idText(a)),l=0,4194304&d&&(l|=1),me.isForStatement(e)&&e.initializer&&E.isBindingCapturedByNode(e.initializer,t)&&(l|=2),r.push({flags:l,originalName:a,outParamName:u}))}}(e,c,r,i,a)}var u={loopParameters:r,loopOutParameters:i};g&&(g.argumentsName&&(u.argumentsName=g.argumentsName),g.thisName&&(u.thisName=g.thisName),g.hoistedLocalVariables&&(u.hoistedLocalVariables=g.hoistedLocalVariables));return u}(e),s=[],c=g;g=o;var u,l=q(e)?function(e,t){var n=me.createUniqueName("_loop_init"),r=0!=(131072&e.initializer.transformFlags),i=0;t.containsLexicalThis&&(i|=8);r&&4&h&&(i|=262144);var a=[];a.push(me.createVariableStatement(undefined,e.initializer)),ie(t.loopOutParameters,2,1,a);var o=me.createVariableStatement(undefined,me.setEmitFlags(me.createVariableDeclarationList([me.createVariableDeclaration(n,undefined,me.setEmitFlags(me.createFunctionExpression(undefined,r?me.createToken(40):undefined,undefined,undefined,undefined,undefined,me.visitNode(me.createBlock(a,!0),I,me.isBlock)),i))]),2097152)),s=me.createVariableDeclarationList(me.map(t.loopOutParameters,ne));return{functionName:n,containsYield:r,functionDeclaration:o,part:s}}(e,o):undefined,d=ee(e)?function(e,t,n){var r=me.createUniqueName("_loop");m();var i=me.visitNode(e.statement,I,me.isStatement,me.liftToBlock),a=b(),o=[];(Q(e)||function(e){return me.isForStatement(e)&&!!e.incrementor&&X(e.incrementor)}(e))&&(t.conditionVariable=me.createUniqueName("inc"),o.push(me.createIf(t.conditionVariable,me.createStatement(me.visitNode(e.incrementor,I,me.isExpression)),me.createStatement(me.createAssignment(t.conditionVariable,me.createTrue())))),Q(e)&&o.push(me.createIf(me.createPrefix(52,me.visitNode(e.condition,I,me.isExpression)),me.visitNode(me.createBreak(),I,me.isStatement))));me.isBlock(i)?me.addRange(o,i.statements):o.push(i);ie(t.loopOutParameters,1,1,o),me.insertStatementsAfterStandardPrologue(o,a);var s=me.createBlock(o,!0);me.isBlock(i)&&me.setOriginalNode(s,i);var c=0!=(131072&e.statement.transformFlags),u=0;t.containsLexicalThis&&(u|=8);c&&0!=(4&h)&&(u|=262144);var l=me.createVariableStatement(undefined,me.setEmitFlags(me.createVariableDeclarationList([me.createVariableDeclaration(r,undefined,me.setEmitFlags(me.createFunctionExpression(undefined,c?me.createToken(40):undefined,undefined,undefined,t.loopParameters,undefined,s),u))]),2097152)),d=function(e,t,n,r){var i=[],a=!(-5&t.nonLocalJumps||t.labeledNonLocalBreaks||t.labeledNonLocalContinues),o=me.createCall(e,undefined,me.map(t.loopParameters,function(e){return e.name})),s=r?me.createYield(me.createToken(40),me.setEmitFlags(o,8388608)):o;{var c,u,l,d;a?(i.push(me.createExpressionStatement(s)),ie(t.loopOutParameters,1,0,i)):(c=me.createUniqueName("state"),u=me.createVariableStatement(undefined,me.createVariableDeclarationList([me.createVariableDeclaration(c,undefined,s)])),i.push(u),ie(t.loopOutParameters,1,0,i),8&t.nonLocalJumps&&(l=void 0,l=n?(n.nonLocalJumps|=8,me.createReturn(c)):me.createReturn(me.createPropertyAccess(c,"value")),i.push(me.createIf(me.createBinary(me.createTypeOf(c),35,me.createLiteral("object")),l))),2&t.nonLocalJumps&&i.push(me.createIf(me.createBinary(c,35,me.createLiteral("break")),me.createBreak())),(t.labeledNonLocalBreaks||t.labeledNonLocalContinues)&&(d=[],oe(t.labeledNonLocalBreaks,!0,c,n,d),oe(t.labeledNonLocalContinues,!1,c,n,d),i.push(me.createSwitch(c,me.createCaseBlock(d)))))}return i}(r,t,n,c);return{functionName:r,containsYield:c,functionDeclaration:l,part:d}}(e,o,c):undefined;g=c,l&&s.push(l.functionDeclaration);d&&s.push(d.functionDeclaration);(function(e,t,n){var r;t.argumentsName&&(n?n.argumentsName=t.argumentsName:(r=r||[]).push(me.createVariableDeclaration(t.argumentsName,undefined,me.createIdentifier("arguments"))));t.thisName&&(n?n.thisName=t.thisName:(r=r||[]).push(me.createVariableDeclaration(t.thisName,undefined,me.createIdentifier("this"))));if(t.hoistedLocalVariables)if(n)n.hoistedLocalVariables=t.hoistedLocalVariables;else{r=r||[];for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];r.push(me.createVariableDeclaration(o))}}if(t.loopOutParameters.length){r=r||[];for(var s=0,c=t.loopOutParameters;s<c.length;s++){var u=c[s];r.push(me.createVariableDeclaration(u.outParamName))}}t.conditionVariable&&(r=r||[]).push(me.createVariableDeclaration(t.conditionVariable,undefined,me.createFalse()));r&&e.push(me.createVariableStatement(undefined,me.createVariableDeclarationList(r)))})(s,o,c),l&&s.push(function(e,t){var n=me.createCall(e,undefined,[]),r=t?me.createYield(me.createToken(40),me.setEmitFlags(n,8388608)):n;return me.createStatement(r)}(l.functionName,l.containsYield));{var p,f;u=d?r?r(e,t,d.part,n):(p=te(e,l,me.createBlock(d.part,!0)),me.aggregateTransformFlags(p),me.restoreEnclosingLabel(p,t,g&&H)):(f=te(e,l,me.visitNode(e.statement,I,me.isStatement,me.liftToBlock)),me.aggregateTransformFlags(f),me.restoreEnclosingLabel(f,t,g&&H))}return s.push(u),s}(n,r,a,i);return p(a,0,0),o}function W(e,t){return j(0,1280,e,t)}function G(e,t){return j(5056,3328,e,t)}function Y(e,t){return j(3008,5376,e,t)}function J(e,t){return j(3008,5376,e,t,u.downlevelIteration?Z:K)}function z(e,t,n){var r,i,a,o,s=[],c=e.initializer;if(me.isVariableDeclarationList(c)?(3&e.initializer.flags&&_e(),(r=me.firstOrUndefined(c.declarations))&&me.isBindingPattern(r.name)?(i=me.flattenDestructuringBinding(r,I,_,0,t),a=me.setTextRange(me.createVariableDeclarationList(i),e.initializer),me.setOriginalNode(a,e.initializer),me.setSourceMapRange(a,me.createRange(i[0].pos,me.last(i).end)),s.push(me.createVariableStatement(undefined,a))):s.push(me.setTextRange(me.createVariableStatement(undefined,me.setOriginalNode(me.setTextRange(me.createVariableDeclarationList([me.createVariableDeclaration(r?r.name:me.createTempVariable(undefined),undefined,t)]),me.moveRangePos(c,-1)),c)),me.moveRangeEnd(c,-1)))):(o=me.createAssignment(c,t),me.isDestructuringAssignment(o)?(me.aggregateTransformFlags(o),s.push(me.createExpressionStatement(M(o,!1)))):(o.end=c.end,s.push(me.setTextRange(me.createExpressionStatement(me.visitNode(o,I,me.isExpression)),me.moveRangeEnd(c,-1))))),n)return U(me.addRange(s,n));var u=me.visitNode(e.statement,I,me.isStatement,me.liftToBlock);return me.isBlock(u)?me.updateBlock(u,me.setTextRange(me.createNodeArray(me.concatenate(s,u.statements)),u.statements)):(s.push(u),U(s))}function U(e){return me.setEmitFlags(me.createBlock(me.createNodeArray(e),!0),432)}function K(e,t,n){var r=me.visitNode(e.expression,I,me.isExpression),i=me.createLoopVariable(),a=me.isIdentifier(r)?me.getGeneratedNameForNode(r):me.createTempVariable(undefined);me.setEmitFlags(r,48|me.getEmitFlags(r));var o=me.setTextRange(me.createFor(me.setEmitFlags(me.setTextRange(me.createVariableDeclarationList([me.setTextRange(me.createVariableDeclaration(i,undefined,me.createLiteral(0)),me.moveRangePos(e.expression,-1)),me.setTextRange(me.createVariableDeclaration(a,undefined,r),e.expression)]),e.expression),2097152),me.setTextRange(me.createLessThan(i,me.createPropertyAccess(a,"length")),e.expression),me.setTextRange(me.createPostfixIncrement(i),e.expression),z(e,me.createElementAccess(a,i),n)),e);return me.setEmitFlags(o,256),me.setTextRange(o,e),me.restoreEnclosingLabel(o,t,g&&H)}function Z(e,t,n,r){var i=me.visitNode(e.expression,I,me.isExpression),a=me.isIdentifier(i)?me.getGeneratedNameForNode(i):me.createTempVariable(undefined),o=me.isIdentifier(i)?me.getGeneratedNameForNode(a):me.createTempVariable(undefined),s=me.createUniqueName("e"),c=me.getGeneratedNameForNode(s),u=me.createTempVariable(undefined),l=me.createValuesHelper(_,i,e.expression),d=me.createCall(me.createPropertyAccess(a,"next"),undefined,[]);v(s),v(u);var p=1024&r?me.inlineExpressions([me.createAssignment(s,me.createVoidZero()),l]):l,f=me.setEmitFlags(me.setTextRange(me.createFor(me.setEmitFlags(me.setTextRange(me.createVariableDeclarationList([me.setTextRange(me.createVariableDeclaration(a,undefined,p),e.expression),me.createVariableDeclaration(o,undefined,d)]),e.expression),2097152),me.createLogicalNot(me.createPropertyAccess(o,"done")),me.createAssignment(o,d),z(e,me.createPropertyAccess(o,"value"),n)),e),256);return me.createTry(me.createBlock([me.restoreEnclosingLabel(f,t,g&&H)]),me.createCatchClause(me.createVariableDeclaration(c),me.setEmitFlags(me.createBlock([me.createExpressionStatement(me.createAssignment(s,me.createObjectLiteral([me.createPropertyAssignment("error",c)])))]),1)),me.createBlock([me.createTry(me.createBlock([me.setEmitFlags(me.createIf(me.createLogicalAnd(me.createLogicalAnd(o,me.createLogicalNot(me.createPropertyAccess(o,"done"))),me.createAssignment(u,me.createPropertyAccess(a,"return"))),me.createExpressionStatement(me.createFunctionCall(u,a,[]))),1)]),undefined,me.setEmitFlags(me.createBlock([me.setEmitFlags(me.createIf(s,me.createThrow(me.createPropertyAccess(s,"error"))),1)]),1))]))}function X(e){return 0!=(131072&E.getNodeCheckFlags(e))}function q(e){return me.isForStatement(e)&&!!e.initializer&&X(e.initializer)}function Q(e){return me.isForStatement(e)&&e.condition&&X(e.condition)}function $(e){return ee(e)||q(e)}function ee(e){return 0!=(65536&E.getNodeCheckFlags(e))}function te(e,t,n){switch(e.kind){case 226:return p=t,f=n,_=(d=e).condition&&X(d.condition),h=_||d.incrementor&&X(d.incrementor),me.updateFor(d,me.visitNode(p?p.part:d.initializer,I,me.isForInitializer),me.visitNode(_?undefined:d.condition,I,me.isExpression),me.visitNode(h?undefined:d.incrementor,I,me.isExpression),f);case 227:return u=e,l=n,me.updateForIn(u,me.visitNode(u.initializer,I,me.isForInitializer),me.visitNode(u.expression,I,me.isExpression),l);case 228:return s=e,c=n,me.updateForOf(s,undefined,me.visitNode(s.initializer,I,me.isForInitializer),me.visitNode(s.expression,I,me.isExpression),c);case 224:return a=e,o=n,me.updateDo(a,o,me.visitNode(a.expression,I,me.isExpression));case 225:return r=e,i=n,me.updateWhile(r,me.visitNode(r.expression,I,me.isExpression),i);default:return me.Debug.failBadSyntaxKind(e,"IterationStatement expected")}var r,i,a,o,s,c,u,l,d,p,f,_,h}function ne(e){return me.createVariableDeclaration(e.originalName,undefined,e.outParamName)}function re(e,t){var n=0===t?e.outParamName:e.originalName,r=0===t?e.originalName:e.outParamName;return me.createBinary(r,60,n)}function ie(e,t,n,r){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&r.push(me.createExpressionStatement(re(o,n)))}}function ae(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=me.createMap()),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=me.createMap()),e.labeledNonLocalContinues.set(n,r))}function oe(e,i,a,o,s){e&&e.forEach(function(e,t){var n,r=[];!o||o.labels&&o.labels.get(t)?(n=me.createIdentifier(t),r.push(i?me.createBreak(n):me.createContinue(n))):(ae(o,i,t,e),r.push(me.createReturn(a))),s.push(me.createCaseClause(me.createLiteral(e),r))})}function se(e,t){if(4096&e.transformFlags||99===e.expression.kind||me.isSuperProperty(me.skipOuterExpressions(e.expression))){var n=me.createCallBinding(e.expression,v),r=n.target,i=n.thisArg;99===e.expression.kind&&me.setEmitFlags(i,4);var a,o=void 0;return o=4096&e.transformFlags?me.createFunctionApply(me.visitNode(r,s,me.isExpression),99===e.expression.kind?i:me.visitNode(i,I,me.isExpression),ce(e.arguments,!1,!1,!1)):me.createFunctionCall(me.visitNode(r,s,me.isExpression),99===e.expression.kind?i:me.visitNode(i,I,me.isExpression),me.visitNodes(e.arguments,I,me.isExpression),e),99===e.expression.kind&&(a=me.createLogicalOr(o,C()),o=t?me.createAssignment(me.createFileLevelUniqueName("_this"),a):a),me.setOriginalNode(o,e)}return me.visitEachChild(e,I,_)}function ce(e,t,i,a){var o=e.length,n=me.flatten(me.spanMap(e,ue,function(e,t,n,r){return t(e,i,a&&r===o)}));if(u.downlevelIteration){if(1===n.length){var r=n[0];if(me.isCallExpression(r)&&me.isIdentifier(r.expression)&&4096&me.getEmitFlags(r.expression)&&"___spread"===r.expression.escapedText)return n[0]}return me.createSpreadHelper(_,n)}if(1!==n.length)return me.createArrayConcat(n.shift(),n);var s=e[0];return t&&me.isSpreadElement(s)&&188!==s.expression.kind?me.createArraySlice(n[0]):n[0]}function ue(e){return me.isSpreadElement(e)?t:le}function t(e){return me.map(e,de)}function le(e,t,n){return me.createArrayLiteral(me.visitNodes(me.createNodeArray(e,n),I,me.isExpression),t)}function de(e){return me.visitNode(e.expression,I,me.isExpression)}function pe(e){var t=me.getSourceTextOfNodeFromSourceFile(f,e),n=14===e.kind||17===e.kind;return t=(t=t.substring(1,t.length-(n?1:2))).replace(/\r\n?/g,"\n"),me.setTextRange(me.createLiteral(t),e)}function fe(e){return 8&h&&!e?me.createPropertyAccess(me.createFileLevelUniqueName("_super"),"prototype"):me.createFileLevelUniqueName("_super")}function _e(){0==(2&i)&&(i|=2,_.enableSubstitution(73))}function he(){0==(1&i)&&(i|=1,_.enableSubstitution(101),_.enableEmitNotification(158),_.enableEmitNotification(157),_.enableEmitNotification(159),_.enableEmitNotification(160),_.enableEmitNotification(198),_.enableEmitNotification(197),_.enableEmitNotification(240))}function ge(e,t){return me.hasModifier(t,32)?me.getInternalName(e):me.createPropertyAccess(me.getInternalName(e),"prototype")}},me.extendsHelper={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},me.templateObjectHelper={name:"typescript:makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},(K=rg=rg||{}).transformES5=function(e){var i,a,t=e.getCompilerOptions();1!==t.jsx&&3!==t.jsx||(i=e.onEmitNode,e.onEmitNode=function(e,t,n){switch(t.kind){case 263:case 264:case 262:var r=t.tagName;a[K.getOriginalNodeId(r)]=!0}i(e,t,n)},e.enableEmitNotification(263),e.enableEmitNotification(264),e.enableEmitNotification(262),a=[]);var n=e.onSubstituteNode;return e.onSubstituteNode=function(e,t){if(t.id&&a&&a[t.id])return n(e,t);{if(t=n(e,t),K.isPropertyAccessExpression(t))return function(e){var t=r(e.name);if(t)return K.setTextRange(K.createElementAccess(e.expression,t),e);return e}(t);if(K.isPropertyAssignment(t))return function(e){var t=K.isIdentifier(e.name)&&r(e.name);if(t)return K.updatePropertyAssignment(e,t,e.initializer);return e}(t)}return t},e.enableSubstitution(190),e.enableSubstitution(276),K.chainBundle(function(e){return e});function r(e){var t=e.originalKeywordKind||(K.nodeIsSynthesized(e)?K.stringToToken(K.idText(e)):undefined);return t!==undefined&&74<=t&&t<=109?K.setTextRange(K.createLiteral(e),e):undefined}},Ne=rg=rg||{},(Z={})[Z.Nop=0]="Nop",Z[Z.Statement=1]="Statement",Z[Z.Assign=2]="Assign",Z[Z.Break=3]="Break",Z[Z.BreakWhenTrue=4]="BreakWhenTrue",Z[Z.BreakWhenFalse=5]="BreakWhenFalse",Z[Z.Yield=6]="Yield",Z[Z.YieldStar=7]="YieldStar",Z[Z.Return=8]="Return",Z[Z.Throw=9]="Throw",Z[Z.Endfinally=10]="Endfinally",(X={})[X.Open=0]="Open",X[X.Close=1]="Close",(q={})[q.Exception=0]="Exception",q[q.With=1]="With",q[q.Switch=2]="Switch",q[q.Loop=3]="Loop",q[q.Labeled=4]="Labeled",(Q={})[Q.Try=0]="Try",Q[Q.Catch=1]="Catch",Q[Q.Finally=2]="Finally",Q[Q.Done=3]="Done",($={})[$.Next=0]="Next",$[$.Throw=1]="Throw",$[$.Return=2]="Return",$[$.Break=3]="Break",$[$.Yield=4]="Yield",$[$.YieldStar=5]="YieldStar",$[$.Catch=6]="Catch",$[$.Endfinally=7]="Endfinally",Ne.transformGenerators=function(m){var a,o,y,b,v,E,I,T,C,B,x=m.resumeLexicalEnvironment,S=m.endLexicalEnvironment,r=m.hoistFunctionDeclaration,p=m.hoistVariableDeclaration,e=m.getCompilerOptions(),s=Ne.getEmitScriptTarget(e),c=m.getEmitResolver(),n=m.onSubstituteNode;m.onSubstituteNode=function(e,t){return t=n(e,t),1!==e?t:function(e){if(Ne.isIdentifier(e))return function(e){if(!Ne.isGeneratedIdentifier(e)&&a&&a.has(Ne.idText(e))){var t=Ne.getOriginalNode(e);if(Ne.isIdentifier(t)&&t.parent){var n=c.getReferencedValueDeclaration(t);if(n){var r=o[Ne.getOriginalNodeId(n)];if(r){var i=Ne.getMutableClone(r);return Ne.setSourceMapRange(i,e),Ne.setCommentRange(i,e),i}}}}return e}(e);return e}(t)};var N,D,k,A,w,V,P,L,M,F,O,R,H=1,j=0,W=0;return Ne.chainBundle(function(e){if(e.isDeclarationFile||0==(256&e.transformFlags))return e;var t=Ne.visitEachChild(e,G,m);return Ne.addEmitHelpers(t,m.readEmitHelpers()),t});function G(e){var t=e.transformFlags;return b?function(e){switch(e.kind){case 224:return function(e){return b?(ne(),e=Ne.visitEachChild(e,G,m),ie(),e):Ne.visitEachChild(e,G,m)}(e);case 225:return function(e){return b?(ne(),e=Ne.visitEachChild(e,G,m),ie(),e):Ne.visitEachChild(e,G,m)}(e);case 233:return function(e){b&&Q({kind:2,isScript:!0,breakLabel:-1});e=Ne.visitEachChild(e,G,m),b&&ae();return e}(e);case 234:return function(e){b&&function(e){Q({kind:4,isScript:!0,labelText:e,breakLabel:-1})}(Ne.idText(e.label));e=Ne.visitEachChild(e,G,m),b&&oe();return e}(e);default:return i(e)}}(e):y?i(e):Ne.isFunctionLikeDeclaration(e)&&e.asteriskToken?function(e){switch(e.kind){case 240:return u(e);case 197:return l(e);default:return Ne.Debug.failBadSyntaxKind(e)}}(e):256&t?Ne.visitEachChild(e,G,m):e}function i(e){switch(e.kind){case 240:return u(e);case 197:return l(e);case 159:case 160:return n=e,r=y,i=b,b=y=!1,n=Ne.visitEachChild(n,G,m),y=r,b=i,n;case 220:return function(e){{if(131072&e.transformFlags)return g(e.declarationList),undefined;if(1048576&Ne.getEmitFlags(e))return e;for(var t=0,n=e.declarationList.declarations;t<n.length;t++){var r=n[t];p(r.name)}var i=Ne.getInitializedVariables(e.declarationList);return 0===i.length?undefined:Ne.setSourceMapRange(Ne.createExpressionStatement(Ne.inlineExpressions(Ne.map(i,J))),e)}}(e);case 226:return function(e){b&&ne();var t=e.initializer;if(t&&Ne.isVariableDeclarationList(t)){for(var n=0,r=t.declarations;n<r.length;n++){var i=r[n];p(i.name)}var a=Ne.getInitializedVariables(t);e=Ne.updateFor(e,0<a.length?Ne.inlineExpressions(Ne.map(a,J)):undefined,Ne.visitNode(e.condition,G,Ne.isExpression),Ne.visitNode(e.incrementor,G,Ne.isExpression),Ne.visitNode(e.statement,G,Ne.isStatement,Ne.liftToBlock))}else e=Ne.visitEachChild(e,G,m);b&&ie();return e}(e);case 227:return function(e){b&&ne();var t=e.initializer;if(Ne.isVariableDeclarationList(t)){for(var n=0,r=t.declarations;n<r.length;n++){var i=r[n];p(i.name)}e=Ne.updateForIn(e,t.declarations[0].name,Ne.visitNode(e.expression,G,Ne.isExpression),Ne.visitNode(e.statement,G,Ne.isStatement,Ne.liftToBlock))}else e=Ne.visitEachChild(e,G,m);b&&ie();return e}(e);case 230:return function(e){if(b){var t=de(e.label&&Ne.idText(e.label));if(0<t)return he(t,e)}return Ne.visitEachChild(e,G,m)}(e);case 229:return function(e){if(b){var t=pe(e.label&&Ne.idText(e.label));if(0<t)return he(t,e)}return Ne.visitEachChild(e,G,m)}(e);case 231:return t=e,function(e,t){return Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral(e?[_e(2),e]:[_e(2)])),t)}(Ne.visitNode(t.expression,G,Ne.isExpression),t);default:return 131072&e.transformFlags?function(e){switch(e.kind){case 205:return function(e){var t=Ne.getExpressionAssociativity(e);switch(t){case 0:return function(e){if(z(e.right)){if(Ne.isLogicalOperator(e.operatorToken.kind))return function(e){var t=X(),n=Z();ye(n,Ne.visitNode(e.left,G,Ne.isExpression),e.left),(54===e.operatorToken.kind?Ee:ve)(t,n,e.left);return ye(n,Ne.visitNode(e.right,G,Ne.isExpression),e.right),q(t),n}(e);if(27===e.operatorToken.kind)return function(e){var t=[];return n(e.left),n(e.right),Ne.inlineExpressions(t);function n(e){Ne.isBinaryExpression(e)&&27===e.operatorToken.kind?(n(e.left),n(e.right)):(z(e)&&0<t.length&&(Ie(1,[Ne.createExpressionStatement(Ne.inlineExpressions(t))]),t=[]),t.push(Ne.visitNode(e,G,Ne.isExpression)))}}(e);var t=Ne.getMutableClone(e);return t.left=K(Ne.visitNode(e.left,G,Ne.isExpression)),t.right=Ne.visitNode(e.right,G,Ne.isExpression),t}return Ne.visitEachChild(e,G,m)}(e);case 1:return function(e){var t=e.left,n=e.right;if(z(n)){var r=void 0;switch(t.kind){case 190:r=Ne.updatePropertyAccess(t,K(Ne.visitNode(t.expression,G,Ne.isLeftHandSideExpression)),t.name);break;case 191:r=Ne.updateElementAccess(t,K(Ne.visitNode(t.expression,G,Ne.isLeftHandSideExpression)),K(Ne.visitNode(t.argumentExpression,G,Ne.isExpression)));break;default:r=Ne.visitNode(t,G,Ne.isExpression)}var i=e.operatorToken.kind;return function(e){return 61<=e&&e<=72}(i)?Ne.setTextRange(Ne.createAssignment(r,Ne.setTextRange(Ne.createBinary(K(r),function(e){switch(e){case 61:return 38;case 62:return 39;case 63:return 40;case 64:return 41;case 65:return 42;case 66:return 43;case 67:return 46;case 68:return 47;case 69:return 48;case 70:return 49;case 71:return 50;case 72:return 51}}(i),Ne.visitNode(n,G,Ne.isExpression)),e)),e):Ne.updateBinary(e,r,Ne.visitNode(n,G,Ne.isExpression))}return Ne.visitEachChild(e,G,m)}(e);default:return Ne.Debug.assertNever(t)}}(e);case 206:return function(e){if(z(e.whenTrue)||z(e.whenFalse)){var t=X(),n=X(),r=Z();return Ee(t,Ne.visitNode(e.condition,G,Ne.isExpression),e.condition),ye(r,Ne.visitNode(e.whenTrue,G,Ne.isExpression),e.whenTrue),be(n),q(t),ye(r,Ne.visitNode(e.whenFalse,G,Ne.isExpression),e.whenFalse),q(n),r}return Ne.visitEachChild(e,G,m)}(e);case 208:return function(e){var t=X(),n=Ne.visitNode(e.expression,G,Ne.isExpression);{e.asteriskToken?function(e,t){Ie(7,[e],t)}(0==(8388608&Ne.getEmitFlags(e.expression))?Ne.createValuesHelper(m,n,e):n,e):function(e,t){Ie(6,[e],t)}(n,e)}return q(t),function(e){return Ne.setTextRange(Ne.createCall(Ne.createPropertyAccess(A,"sent"),undefined,[]),e)}(e)}(e);case 188:return function(e){return f(e.elements,undefined,undefined,e.multiLine)}(e);case 189:return function(i){var e=i.properties,a=i.multiLine,t=U(e),o=Z();ye(o,Ne.createObjectLiteral(Ne.visitNodes(e,G,Ne.isObjectLiteralElementLike,0,t),a));var n=Ne.reduceLeft(e,function(e,t){z(t)&&0<e.length&&(me(Ne.createExpressionStatement(Ne.inlineExpressions(e))),e=[]);var n=Ne.createExpressionForObjectLiteralElementLike(i,t,o),r=Ne.visitNode(n,G,Ne.isExpression);r&&(a&&Ne.startOnNewLine(r),e.push(r));return e},[],t);return n.push(a?Ne.startOnNewLine(Ne.getMutableClone(o)):o),Ne.inlineExpressions(n)}(e);case 191:return function(e){if(z(e.argumentExpression)){var t=Ne.getMutableClone(e);return t.expression=K(Ne.visitNode(e.expression,G,Ne.isLeftHandSideExpression)),t.argumentExpression=Ne.visitNode(e.argumentExpression,G,Ne.isExpression),t}return Ne.visitEachChild(e,G,m)}(e);case 192:return function(e){if(Ne.isImportCall(e)||!Ne.forEach(e.arguments,z))return Ne.visitEachChild(e,G,m);var t=Ne.createCallBinding(e.expression,p,s,!0),n=t.target,r=t.thisArg;return Ne.setOriginalNode(Ne.createFunctionApply(K(Ne.visitNode(n,G,Ne.isLeftHandSideExpression)),r,f(e.arguments),e),e)}(e);case 193:return function(e){if(Ne.forEach(e.arguments,z)){var t=Ne.createCallBinding(Ne.createPropertyAccess(e.expression,"bind"),p),n=t.target,r=t.thisArg;return Ne.setOriginalNode(Ne.setTextRange(Ne.createNew(Ne.createFunctionApply(K(Ne.visitNode(n,G,Ne.isExpression)),r,f(e.arguments,Ne.createVoidZero())),undefined,[]),e),e)}return Ne.visitEachChild(e,G,m)}(e);default:return Ne.visitEachChild(e,G,m)}}(e):262400&e.transformFlags?Ne.visitEachChild(e,G,m):e}var t,n,r,i}function u(e){var t,n;return e.asteriskToken?e=Ne.setOriginalNode(Ne.setTextRange(Ne.createFunctionDeclaration(undefined,e.modifiers,undefined,e.name,undefined,Ne.visitParameterList(e.parameters,G,m),undefined,d(e.body)),e),e):(t=y,n=b,b=y=!1,e=Ne.visitEachChild(e,G,m),y=t,b=n),y?(r(e),undefined):e}function l(e){var t,n;return e.asteriskToken?e=Ne.setOriginalNode(Ne.setTextRange(Ne.createFunctionExpression(undefined,undefined,e.name,undefined,Ne.visitParameterList(e.parameters,G,m),undefined,d(e.body)),e),e):(t=y,n=b,b=y=!1,e=Ne.visitEachChild(e,G,m),y=t,b=n),e}function d(e){var t=[],n=y,r=b,i=v,a=E,o=I,s=T,c=C,u=B,l=H,d=N,p=D,f=k,_=A;b=!(y=!0),v=undefined,E=undefined,I=undefined,T=undefined,C=undefined,B=undefined,H=1,N=undefined,D=undefined,k=undefined,A=Ne.createTempVariable(undefined),x();var h=Ne.addPrologue(t,e.statements,!1,G);Y(e.statements,h);var g=function(){W=j=0,w=undefined,P=V=!1,L=undefined,M=undefined,F=undefined,O=undefined,R=undefined;var e=function(){if(N){for(var e=0;e<N.length;e++)!function(e){if(Be(e),function(e){if(v)for(;j<I.length&&E[j]<=e;j++){var t=v[j],n=I[j];switch(t.kind){case 0:0===n?(M=M||[],(F=F||[]).push(O),O=t):1===n&&(O=F.pop());break;case 1:0===n?(R=R||[]).push(t):1===n&&R.pop()}}}(e),V)return;P=V=!1;var t=N[e];{if(0===t)return;if(10===t)return V=!0,xe(Ne.createReturn(Ne.createArrayLiteral([_e(7)])))}var n=D[e];if(1===t)return xe(n[0]);var r=k[e];switch(t){case 2:return function(e,t,n){xe(Ne.setTextRange(Ne.createExpressionStatement(Ne.createAssignment(e,t)),n))}(n[0],n[1],r);case 3:return function(e,t){V=!0,xe(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([_e(3),fe(e)])),t),384))}(n[0],r);case 4:return function(e,t,n){xe(Ne.setEmitFlags(Ne.createIf(t,Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([_e(3),fe(e)])),n),384)),1))}(n[0],n[1],r);case 5:return function(e,t,n){xe(Ne.setEmitFlags(Ne.createIf(Ne.createLogicalNot(t),Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([_e(3),fe(e)])),n),384)),1))}(n[0],n[1],r);case 6:return function(e,t){V=!0,xe(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral(e?[_e(4),e]:[_e(4)])),t),384))}(n[0],r);case 7:return function(e,t){V=!0,xe(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([_e(5),e])),t),384))}(n[0],r);case 8:return Se(n[0],r);case 9:(function(e,t){P=V=!0,xe(Ne.setTextRange(Ne.createThrow(e),t))})(n[0],r)}}(e);Te(N.length)}else Te(0);if(L){var t=Ne.createPropertyAccess(A,"label"),n=Ne.createSwitch(t,Ne.createCaseBlock(L));return[Ne.startOnNewLine(n)]}if(M)return M;return[]}();return function(e,t){return e.requestEmitHelper(Ne.generatorHelper),Ne.createCall(Ne.getHelperName("__generator"),undefined,[Ne.createThis(),t])}(m,Ne.setEmitFlags(Ne.createFunctionExpression(undefined,undefined,undefined,undefined,[Ne.createParameter(undefined,undefined,undefined,A)],undefined,Ne.createBlock(e,0<e.length)),524288))}();return Ne.insertStatementsAfterStandardPrologue(t,S()),t.push(Ne.createReturn(g)),y=n,b=r,v=i,E=a,I=o,T=s,C=c,B=u,H=l,N=d,D=p,k=f,A=_,Ne.setTextRange(Ne.createBlock(t,e.multiLine),e)}function f(e,r,t,i){var a,n,o=U(e);0<o&&(a=Z(),n=Ne.visitNodes(e,G,Ne.isExpression,0,o),ye(a,Ne.createArrayLiteral(r?[r].concat(n):n)),r=undefined);var s=Ne.reduceLeft(e,function(e,t){{var n;z(t)&&0<e.length&&(n=a!==undefined,ye(a=a||Z(),n?Ne.createArrayConcat(a,[Ne.createArrayLiteral(e,i)]):Ne.createArrayLiteral(r?[r].concat(e):e,i)),r=undefined,e=[])}return e.push(Ne.visitNode(t,G,Ne.isExpression)),e},[],o);return a?Ne.createArrayConcat(a,[Ne.createArrayLiteral(s,i)]):Ne.setTextRange(Ne.createArrayLiteral(r?[r].concat(s):s,i),t)}function Y(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r<n;r++)h(e[r])}function _(e){Ne.isBlock(e)?Y(e.statements):h(e)}function h(e){var t=b;b=b||z(e),function(e){switch(e.kind){case 219:return function(e){z(e)?Y(e.statements):me(Ne.visitNode(e,G,Ne.isStatement))}(e);case 222:return function(e){me(Ne.visitNode(e,G,Ne.isStatement))}(e);case 223:return function(e){{var t,n;z(e)&&(z(e.thenStatement)||z(e.elseStatement))?(t=X(),n=e.elseStatement?X():undefined,Ee(e.elseStatement?n:t,Ne.visitNode(e.expression,G,Ne.isExpression),e.expression),_(e.thenStatement),e.elseStatement&&(be(t),q(n),_(e.elseStatement)),q(t)):me(Ne.visitNode(e,G,Ne.isStatement))}}(e);case 224:return function(e){{var t,n;z(e)?(t=X(),n=X(),re(t),q(n),_(e.statement),q(t),ve(n,Ne.visitNode(e.expression,G,Ne.isExpression)),ie()):me(Ne.visitNode(e,G,Ne.isStatement))}}(e);case 225:return function(e){{var t,n;z(e)?(t=X(),n=re(t),q(t),Ee(n,Ne.visitNode(e.expression,G,Ne.isExpression)),_(e.statement),be(t),ie()):me(Ne.visitNode(e,G,Ne.isStatement))}}(e);case 226:return function(e){{var t,n,r,i;z(e)?(t=X(),n=X(),r=re(n),e.initializer&&(i=e.initializer,Ne.isVariableDeclarationList(i)?g(i):me(Ne.setTextRange(Ne.createExpressionStatement(Ne.visitNode(i,G,Ne.isExpression)),i))),q(t),e.condition&&Ee(r,Ne.visitNode(e.condition,G,Ne.isExpression)),_(e.statement),q(n),e.incrementor&&me(Ne.setTextRange(Ne.createExpressionStatement(Ne.visitNode(e.incrementor,G,Ne.isExpression)),e.incrementor)),be(t),ie()):me(Ne.visitNode(e,G,Ne.isStatement))}}(e);case 227:return function(e){if(z(e)){var t=Z(),n=Z(),r=Ne.createLoopVariable(),i=e.initializer;p(r),ye(t,Ne.createArrayLiteral()),me(Ne.createForIn(n,Ne.visitNode(e.expression,G,Ne.isExpression),Ne.createExpressionStatement(Ne.createCall(Ne.createPropertyAccess(t,"push"),undefined,[n])))),ye(r,Ne.createLiteral(0));var a=X(),o=X(),s=re(o);q(a),Ee(s,Ne.createLessThan(r,Ne.createPropertyAccess(t,"length")));var c=void 0;if(Ne.isVariableDeclarationList(i)){for(var u=0,l=i.declarations;u<l.length;u++){var d=l[u];p(d.name)}c=Ne.getSynthesizedClone(i.declarations[0].name)}else c=Ne.visitNode(i,G,Ne.isExpression),Ne.Debug.assert(Ne.isLeftHandSideExpression(c));ye(c,Ne.createElementAccess(t,r)),_(e.statement),q(o),me(Ne.createExpressionStatement(Ne.createPostfixIncrement(r))),be(a),ie()}else me(Ne.visitNode(e,G,Ne.isStatement))}(e);case 229:return function(e){var t=pe(e.label?Ne.idText(e.label):undefined);0<t?be(t,e):me(e)}(e);case 230:return function(e){var t=de(e.label?Ne.idText(e.label):undefined);0<t?be(t,e):me(e)}(e);case 231:return function(e){!function(e,t){Ie(8,[e],t)}(Ne.visitNode(e.expression,G,Ne.isExpression),e)}(e);case 232:return function(e){z(e)?(function(e){var t=X(),n=X();q(t),Q({kind:1,expression:e,startLabel:t,endLabel:n})}(K(Ne.visitNode(e.expression,G,Ne.isExpression))),_(e.statement),Ne.Debug.assert(1===te()),q($().endLabel)):me(Ne.visitNode(e,G,Ne.isStatement))}(e);case 233:return function(e){if(z(e.caseBlock)){for(var t=e.caseBlock,n=t.clauses.length,r=function(){var e=X();return Q({kind:2,isScript:!1,breakLabel:e}),e}(),i=K(Ne.visitNode(e.expression,G,Ne.isExpression)),a=[],o=-1,s=0;s<n;s++){var c=t.clauses[s];a.push(X()),273===c.kind&&-1===o&&(o=s)}for(var u=0,l=[];u<n;){for(var d=0,s=u;s<n;s++){if(272===(c=t.clauses[s]).kind){if(z(c.expression)&&0<l.length)break;l.push(Ne.createCaseClause(Ne.visitNode(c.expression,G,Ne.isExpression),[he(a[s],c.expression)]))}else d++}l.length&&(me(Ne.createSwitch(i,Ne.createCaseBlock(l))),u+=l.length,l=[]),0<d&&(u+=d,d=0)}be(0<=o?a[o]:r);for(s=0;s<n;s++)q(a[s]),Y(t.clauses[s].statements);ae()}else me(Ne.visitNode(e,G,Ne.isStatement))}(e);case 234:return function(e){z(e)?(function(e){var t=X();Q({kind:4,isScript:!1,labelText:e,breakLabel:t})}(Ne.idText(e.label)),_(e.statement),oe()):me(Ne.visitNode(e,G,Ne.isStatement))}(e);case 235:return function(e){!function(e,t){Ie(9,[e],t)}(Ne.visitNode(e.expression,G,Ne.isExpression),e)}(e);case 236:return function(e){z(e)?(function(){var e=X(),t=X();q(e),Q({kind:0,state:0,startLabel:e,endLabel:t}),ge()}(),_(e.tryBlock),e.catchClause&&(function(e){var t;{var n;Ne.Debug.assert(0===te()),Ne.isGeneratedIdentifier(e.name)?(t=e.name,p(e.name)):(n=Ne.idText(e.name),t=Z(n),a||(a=Ne.createMap(),o=[],m.enableSubstitution(73)),a.set(n,!0),o[Ne.getOriginalNodeId(e)]=t)}var r=ee();Ne.Debug.assert(r.state<1),be(r.endLabel);var i=X();q(i),r.state=1,r.catchVariable=t,r.catchLabel=i,ye(t,Ne.createCall(Ne.createPropertyAccess(A,"sent"),undefined,[])),ge()}(e.catchClause.variableDeclaration),_(e.catchClause.block)),e.finallyBlock&&(function(){Ne.Debug.assert(0===te());var e=ee();Ne.Debug.assert(e.state<2),be(e.endLabel);var t=X();q(t),e.state=2,e.finallyLabel=t}(),_(e.finallyBlock)),function(){Ne.Debug.assert(0===te());var e=$();e.state<2?be(e.endLabel):Ie(10);q(e.endLabel),ge(),e.state=3}()):me(Ne.visitEachChild(e,G,m))}(e);default:me(Ne.visitNode(e,G,Ne.isStatement))}}(e),b=t}function g(e){for(var t=0,n=e.declarations;t<n.length;t++){var r=n[t],i=Ne.getSynthesizedClone(r.name);Ne.setCommentRange(i,r.name),p(i)}for(var a=Ne.getInitializedVariables(e),o=a.length,s=0,c=[];s<o;){for(var u=s;u<o;u++){if(z((r=a[u]).initializer)&&0<c.length)break;c.push(J(r))}c.length&&(me(Ne.createExpressionStatement(Ne.inlineExpressions(c))),s+=c.length,c=[])}return undefined}function J(e){return Ne.setSourceMapRange(Ne.createAssignment(Ne.setSourceMapRange(Ne.getSynthesizedClone(e.name),e.name),Ne.visitNode(e.initializer,G,Ne.isExpression)),e)}function z(e){return!!e&&0!=(131072&e.transformFlags)}function U(e){for(var t=e.length,n=0;n<t;n++)if(z(e[n]))return n;return-1}function K(e){var t;return Ne.isGeneratedIdentifier(e)||4096&Ne.getEmitFlags(e)?e:(ye(t=Ne.createTempVariable(p),e,e),t)}function Z(e){var t=e?Ne.createUniqueName(e):Ne.createTempVariable(undefined);return p(t),t}function X(){var e=H;return H++,(C=C||[])[e]=-1,e}function q(e){Ne.Debug.assert(C!==undefined,"No labels were defined."),C[e]=N?N.length:0}function Q(e){v||(v=[],I=[],E=[],T=[]);var t=I.length;return I[t]=0,E[t]=N?N.length:0,v[t]=e,T.push(e),t}function $(){var e=ee();if(e===undefined)return Ne.Debug.fail("beginBlock was never called.");var t=I.length;return I[t]=1,E[t]=N?N.length:0,v[t]=e,T.pop(),e}function ee(){return Ne.lastOrUndefined(T)}function te(){var e=ee();return e&&e.kind}function ne(){Q({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function re(e){var t=X();return Q({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ie(){Ne.Debug.assert(3===te());var e=$(),t=e.breakLabel;e.isScript||q(t)}function ae(){Ne.Debug.assert(2===te());var e=$(),t=e.breakLabel;e.isScript||q(t)}function oe(){Ne.Debug.assert(4===te());var e=$();e.isScript||q(e.breakLabel)}function se(e){return 2===e.kind||3===e.kind}function ce(e){return 4===e.kind}function ue(e){return 3===e.kind}function le(e,t){for(var n=t;0<=n;n--){var r=T[n];if(!ce(r))break;if(r.labelText===e)return 1}}function de(e){if(T)if(e)for(var t=T.length-1;0<=t;t--){if(ce(n=T[t])&&n.labelText===e)return n.breakLabel;if(se(n)&&le(e,t-1))return n.breakLabel}else for(var n,t=T.length-1;0<=t;t--){if(se(n=T[t]))return n.breakLabel}return 0}function pe(e){if(T)if(e)for(var t=T.length-1;0<=t;t--){if(ue(n=T[t])&&le(e,t-1))return n.continueLabel}else for(var n,t=T.length-1;0<=t;t--){if(ue(n=T[t]))return n.continueLabel}return 0}function fe(e){if(e!==undefined&&0<e){B===undefined&&(B=[]);var t=Ne.createLiteral(-1);return B[e]===undefined?B[e]=[t]:B[e].push(t),t}return Ne.createOmittedExpression()}function _e(e){var t=Ne.createLiteral(e);return Ne.addSyntheticTrailingComment(t,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return undefined}}(e)),t}function he(e,t){return Ne.Debug.assertLessThan(0,e,"Invalid label"),Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral([_e(3),fe(e)])),t)}function ge(){Ie(0)}function me(e){e?Ie(1,[e]):ge()}function ye(e,t,n){Ie(2,[e,t],n)}function be(e,t){Ie(3,[e],t)}function ve(e,t,n){Ie(4,[e,t],n)}function Ee(e,t,n){Ie(5,[e,t],n)}function Ie(e,t,n){N===undefined&&(N=[],D=[],k=[]),C===undefined&&q(X());var r=N.length;N[r]=e,D[r]=t,k[r]=n}function Te(e){!function(e){if(!P)return!0;if(!C||!B)return!1;for(var t=0;t<C.length;t++)if(C[t]===e&&B[t])return!0;return!1}(e)||(Be(e),R=undefined,Se(undefined,undefined)),M&&L&&Ce(!1),function(){if(B!==undefined&&w!==undefined)for(var e=0;e<w.length;e++){var t=w[e];if(t!==undefined)for(var n=0,r=t;n<r.length;n++){var i=r[n],a=B[i];if(a!==undefined)for(var o=0,s=a;o<s.length;o++){s[o].text=String(e)}}}}()}function Ce(e){if(L=L||[],M){if(R)for(var t=R.length-1;0<=t;t--){var n=R[t];M=[Ne.createWith(n.expression,Ne.createBlock(M))]}var r,i,a,o;O&&(r=O.startLabel,i=O.catchLabel,a=O.finallyLabel,o=O.endLabel,M.unshift(Ne.createExpressionStatement(Ne.createCall(Ne.createPropertyAccess(Ne.createPropertyAccess(A,"trys"),"push"),undefined,[Ne.createArrayLiteral([fe(r),fe(i),fe(a),fe(o)])]))),O=undefined),e&&M.push(Ne.createExpressionStatement(Ne.createAssignment(Ne.createPropertyAccess(A,"label"),Ne.createLiteral(W+1))))}L.push(Ne.createCaseClause(Ne.createLiteral(W),M||[])),M=undefined}function Be(e){if(C)for(var t=0;t<C.length;t++)C[t]===e&&(M&&(Ce(!V),P=V=!1,W++),w===undefined&&(w=[]),w[W]===undefined?w[W]=[t]:w[W].push(t))}function xe(e){e&&(M?M.push(e):M=[e])}function Se(e,t){P=V=!0,xe(Ne.setEmitFlags(Ne.setTextRange(Ne.createReturn(Ne.createArrayLiteral(e?[_e(2),e]:[_e(2)])),t),384))}},Ne.generatorHelper={name:"typescript:generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},function(z){z.transformModule=function(u){var a=u.startLexicalEnvironment,o=u.endLexicalEnvironment,i=u.hoistVariableDeclaration,f=u.getCompilerOptions(),_=u.getEmitResolver(),h=u.getEmitHost(),c=z.getEmitScriptTarget(f),s=z.getEmitModuleKind(f),n=u.onSubstituteNode,r=u.onEmitNode;u.onSubstituteNode=function(e,t){if((t=n(e,t)).id&&l[t.id])return t;{if(1===e)return function(e){switch(e.kind){case 73:return Y(e);case 205:return function(e){if(z.isAssignmentOperator(e.operatorToken.kind)&&z.isIdentifier(e.left)&&!z.isGeneratedIdentifier(e.left)&&!z.isLocalName(e.left)&&!z.isDeclarationNameOfEnumOrNamespace(e.left)){var t=J(e.left);if(t){for(var n=e,r=0,i=t;r<i.length;r++){var a=i[r];l[z.getNodeId(n)]=!0,n=W(a,n,e)}return n}}return e}(e);case 204:case 203:return function(e){if((44===e.operator||45===e.operator)&&z.isIdentifier(e.operand)&&!z.isGeneratedIdentifier(e.operand)&&!z.isLocalName(e.operand)&&!z.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=J(e.operand);if(t){for(var n=204===e.kind?z.setTextRange(z.createBinary(e.operand,z.createToken(44===e.operator?61:62),z.createLiteral(1)),e):e,r=0,i=t;r<i.length;r++){var a=i[r];l[z.getNodeId(n)]=!0,n=W(a,n)}return n}}return e}(e)}return e}(t);if(z.isShorthandPropertyAssignment(t))return function(e){var t=e.name,n=Y(t);if(n===t)return e;if(e.objectAssignmentInitializer){var r=z.createAssignment(n,e.objectAssignmentInitializer);return z.setTextRange(z.createPropertyAssignment(t,r),e)}return z.setTextRange(z.createPropertyAssignment(t,n),e)}(t)}return t},u.onEmitNode=function(e,t,n){285===t.kind?(g=t,m=p[z.getOriginalNodeId(g)],l=[],r(e,t,n),g=undefined,m=undefined,l=undefined):r(e,t,n)},u.enableSubstitution(73),u.enableSubstitution(205),u.enableSubstitution(203),u.enableSubstitution(204),u.enableSubstitution(277),u.enableEmitNotification(285);var g,m,l,d,p=[],y=[];return z.chainBundle(function(e){if(e.isDeclarationFile||!(z.isEffectiveExternalModule(e,f)||524288&e.transformFlags||z.isJsonSourceFile(e)&&z.hasJsonModuleEmitEnabled(f)&&(f.out||f.outFile)))return e;g=e,m=z.collectExternalModuleInfo(e,_,f),p[z.getOriginalNodeId(e)]=m;var t=function(e){switch(e){case z.ModuleKind.AMD:return E;case z.ModuleKind.UMD:return I;default:return v}}(s)(e);return g=undefined,m=undefined,d=!1,z.aggregateTransformFlags(t)});function b(){return!(m.exportEquals||!z.isExternalModule(g))}function v(e){a();var t=[],n=z.getStrictOptionValue(f,"alwaysStrict")||!f.noImplicitUseStrict&&z.isExternalModule(g),r=z.addPrologue(t,e.statements,n,S);b()&&z.append(t,j()),z.append(t,z.visitNode(m.externalHelpersImportDeclaration,S,z.isStatement)),z.addRange(t,z.visitNodes(e.statements,S,z.isStatement,r)),x(t,!1),z.insertStatementsAfterStandardPrologue(t,o());var i=z.updateSourceFileNode(e,z.setTextRange(z.createNodeArray(t),e.statements));return m.hasExportStarsToExportValues&&!f.importHelpers&&z.addEmitHelper(i,U),z.addEmitHelpers(i,u.readEmitHelpers()),i}function E(e){var t=z.createIdentifier("define"),n=z.tryGetModuleNameFromFile(e,h,f),r=z.isJsonSourceFile(e)&&e,i=T(e,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames,c=z.updateSourceFileNode(e,z.setTextRange(z.createNodeArray([z.createExpressionStatement(z.createCall(t,undefined,(n?[n]:[]).concat([z.createArrayLiteral(r?z.emptyArray:[z.createLiteral("require"),z.createLiteral("exports")].concat(a,o)),r?r.statements.length?r.statements[0].expression:z.createObjectLiteral():z.createFunctionExpression(undefined,undefined,undefined,undefined,[z.createParameter(undefined,undefined,undefined,"require"),z.createParameter(undefined,undefined,undefined,"exports")].concat(s),undefined,B(e))])))]),e.statements));return z.addEmitHelpers(c,u.readEmitHelpers()),c}function I(e){var t=T(e,!1),n=t.aliasedModuleNames,r=t.unaliasedModuleNames,i=t.importAliasNames,a=z.tryGetModuleNameFromFile(e,h,f),o=z.createFunctionExpression(undefined,undefined,undefined,undefined,[z.createParameter(undefined,undefined,undefined,"factory")],undefined,z.setTextRange(z.createBlock([z.createIf(z.createLogicalAnd(z.createTypeCheck(z.createIdentifier("module"),"object"),z.createTypeCheck(z.createPropertyAccess(z.createIdentifier("module"),"exports"),"object")),z.createBlock([z.createVariableStatement(undefined,[z.createVariableDeclaration("v",undefined,z.createCall(z.createIdentifier("factory"),undefined,[z.createIdentifier("require"),z.createIdentifier("exports")]))]),z.setEmitFlags(z.createIf(z.createStrictInequality(z.createIdentifier("v"),z.createIdentifier("undefined")),z.createExpressionStatement(z.createAssignment(z.createPropertyAccess(z.createIdentifier("module"),"exports"),z.createIdentifier("v")))),1)]),z.createIf(z.createLogicalAnd(z.createTypeCheck(z.createIdentifier("define"),"function"),z.createPropertyAccess(z.createIdentifier("define"),"amd")),z.createBlock([z.createExpressionStatement(z.createCall(z.createIdentifier("define"),undefined,(a?[a]:[]).concat([z.createArrayLiteral([z.createLiteral("require"),z.createLiteral("exports")].concat(n,r)),z.createIdentifier("factory")])))])))],!0),undefined)),s=z.updateSourceFileNode(e,z.setTextRange(z.createNodeArray([z.createExpressionStatement(z.createCall(o,undefined,[z.createFunctionExpression(undefined,undefined,undefined,undefined,[z.createParameter(undefined,undefined,undefined,"require"),z.createParameter(undefined,undefined,undefined,"exports")].concat(i),undefined,B(e))]))]),e.statements));return z.addEmitHelpers(s,u.readEmitHelpers()),s}function T(e,t){for(var n=[],r=[],i=[],a=0,o=e.amdDependencies;a<o.length;a++){var s=o[a];s.name?(n.push(z.createLiteral(s.path)),i.push(z.createParameter(undefined,undefined,undefined,s.name))):r.push(z.createLiteral(s.path))}for(var c=0,u=m.externalImports;c<u.length;c++){var l=u[c],d=z.getExternalModuleNameLiteral(l,g,h,_,f),p=z.getLocalNameForExternalImport(l,g);d&&(t&&p?(z.setEmitFlags(p,4),n.push(d),i.push(z.createParameter(undefined,undefined,undefined,p))):r.push(d))}return{aliasedModuleNames:n,unaliasedModuleNames:r,importAliasNames:i}}function C(e){if(z.isImportEqualsDeclaration(e)||z.isExportDeclaration(e)||!z.getExternalModuleNameLiteral(e,g,h,_,f))return undefined;var t=z.getLocalNameForExternalImport(e,g),n=A(e,t);return n===t?undefined:z.createExpressionStatement(z.createAssignment(t,n))}function B(e){a();var t=[],n=z.addPrologue(t,e.statements,!f.noImplicitUseStrict,S);b()&&z.append(t,j()),z.append(t,z.visitNode(m.externalHelpersImportDeclaration,S,z.isStatement)),s===z.ModuleKind.AMD&&z.addRange(t,z.mapDefined(m.externalImports,C)),z.addRange(t,z.visitNodes(e.statements,S,z.isStatement,n)),x(t,!0),z.insertStatementsAfterStandardPrologue(t,o());var r=z.createBlock(t,!0);return m.hasExportStarsToExportValues&&!f.importHelpers&&z.addEmitHelper(r,U),d&&z.addEmitHelper(r,K),r}function x(e,t){var n,r;!m.exportEquals||(n=z.visitNode(m.exportEquals.expression,N))&&(t?(r=z.createReturn(n),z.setTextRange(r,m.exportEquals),z.setEmitFlags(r,1920)):(r=z.createExpressionStatement(z.createAssignment(z.createPropertyAccess(z.createIdentifier("module"),"exports"),n)),z.setTextRange(r,m.exportEquals),z.setEmitFlags(r,1536)),e.push(r))}function S(e){switch(e.kind){case 250:return function(e){var t,n=z.getNamespaceDeclarationNode(e);if(s!==z.ModuleKind.AMD){if(!e.importClause)return z.setOriginalNode(z.setTextRange(z.createExpressionStatement(w(e)),e),e);var r=[];n&&!z.isDefaultImport(e)?r.push(z.createVariableDeclaration(z.getSynthesizedClone(n.name),undefined,A(e,w(e)))):(r.push(z.createVariableDeclaration(z.getGeneratedNameForNode(e),undefined,A(e,w(e)))),n&&z.isDefaultImport(e)&&r.push(z.createVariableDeclaration(z.getSynthesizedClone(n.name),undefined,z.getGeneratedNameForNode(e)))),t=z.append(t,z.setOriginalNode(z.setTextRange(z.createVariableStatement(undefined,z.createVariableDeclarationList(r,2<=c?2:0)),e),e))}else n&&z.isDefaultImport(e)&&(t=z.append(t,z.createVariableStatement(undefined,z.createVariableDeclarationList([z.setOriginalNode(z.setTextRange(z.createVariableDeclaration(z.getSynthesizedClone(n.name),undefined,z.getGeneratedNameForNode(e)),e),e)],2<=c?2:0))));{var i;P(e)?(i=z.getOriginalNodeId(e),y[i]=L(y[i],e)):t=L(t,e)}return z.singleOrMany(t)}(e);case 249:return function(e){var t;z.Debug.assert(z.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),s!==z.ModuleKind.AMD?t=z.hasModifier(e,1)?z.append(t,z.setOriginalNode(z.setTextRange(z.createExpressionStatement(W(e.name,w(e))),e),e)):z.append(t,z.setOriginalNode(z.setTextRange(z.createVariableStatement(undefined,z.createVariableDeclarationList([z.createVariableDeclaration(z.getSynthesizedClone(e.name),undefined,w(e))],2<=c?2:0)),e),e)):z.hasModifier(e,1)&&(t=z.append(t,z.setOriginalNode(z.setTextRange(z.createExpressionStatement(W(z.getExportName(e),z.getLocalName(e))),e),e)));{var n;P(e)?(n=z.getOriginalNodeId(e),y[n]=M(y[n],e)):t=M(t,e)}return z.singleOrMany(t)}(e);case 256:return function(e){if(!e.moduleSpecifier)return undefined;var t=z.getGeneratedNameForNode(e);{if(e.exportClause){var n=[];s!==z.ModuleKind.AMD&&n.push(z.setOriginalNode(z.setTextRange(z.createVariableStatement(undefined,z.createVariableDeclarationList([z.createVariableDeclaration(t,undefined,w(e))])),e),e));for(var r=0,i=e.exportClause.elements;r<i.length;r++){var a=i[r],o=z.createPropertyAccess(t,a.propertyName||a.name);n.push(z.setOriginalNode(z.setTextRange(z.createExpressionStatement(W(z.getExportName(a),o)),a),a))}return z.singleOrMany(n)}return z.setOriginalNode(z.setTextRange(z.createExpressionStatement(function(e,t){return e.getCompilerOptions().importHelpers?z.createCall(z.getHelperName("__exportStar"),undefined,[t,z.createIdentifier("exports")]):z.createCall(z.createIdentifier("__export"),undefined,[t])}(u,s!==z.ModuleKind.AMD?w(e):t)),e),e)}}(e);case 255:return function(e){if(e.isExportEquals)return undefined;var t,n=e.original;{var r;n&&P(n)?(r=z.getOriginalNodeId(e),y[r]=H(y[r],z.createIdentifier("default"),z.visitNode(e.expression,N),e,!0)):t=H(t,z.createIdentifier("default"),z.visitNode(e.expression,N),e,!0)}return z.singleOrMany(t)}(e);case 220:return function(e){var t,n,r;if(z.hasModifier(e,1)){for(var i=void 0,a=0,o=e.declarationList.declarations;a<o.length;a++){var s=o[a];z.isIdentifier(s.name)&&z.isLocalName(s.name)?(i=i||z.visitNodes(e.modifiers,G,z.isModifier),n=z.append(n,s)):s.initializer&&(r=z.append(r,function(e){return z.isBindingPattern(e.name)?z.flattenDestructuringAssignment(z.visitNode(e,N),undefined,u,0,!1,V):z.createAssignment(z.setTextRange(z.createPropertyAccess(z.createIdentifier("exports"),e.name),e.name),z.visitNode(e.initializer,N))}(s)))}n&&(t=z.append(t,z.updateVariableStatement(e,i,z.updateVariableDeclarationList(e.declarationList,n)))),r&&(t=z.append(t,z.setOriginalNode(z.setTextRange(z.createExpressionStatement(z.inlineExpressions(r)),e),e)))}else t=z.append(t,z.visitEachChild(e,N,u));{var c;P(e)?(c=z.getOriginalNodeId(e),y[c]=F(y[c],e)):t=F(t,e)}return z.singleOrMany(t)}(e);case 240:return function(e){var t;t=z.hasModifier(e,1)?z.append(t,z.setOriginalNode(z.setTextRange(z.createFunctionDeclaration(undefined,z.visitNodes(e.modifiers,G,z.isModifier),e.asteriskToken,z.getDeclarationName(e,!0,!0),undefined,z.visitNodes(e.parameters,N),undefined,z.visitEachChild(e.body,N,u)),e),e)):z.append(t,z.visitEachChild(e,N,u));{var n;P(e)?(n=z.getOriginalNodeId(e),y[n]=O(y[n],e)):t=O(t,e)}return z.singleOrMany(t)}(e);case 241:return function(e){var t;t=z.hasModifier(e,1)?z.append(t,z.setOriginalNode(z.setTextRange(z.createClassDeclaration(undefined,z.visitNodes(e.modifiers,G,z.isModifier),z.getDeclarationName(e,!0,!0),undefined,z.visitNodes(e.heritageClauses,N),z.visitNodes(e.members,N)),e),e)):z.append(t,z.visitEachChild(e,N,u));{var n;P(e)?(n=z.getOriginalNodeId(e),y[n]=O(y[n],e)):t=O(t,e)}return z.singleOrMany(t)}(e);case 316:return function(e){{var t;P(e)&&220===e.original.kind&&(t=z.getOriginalNodeId(e),y[t]=F(y[t],e.original))}return e}(e);case 317:return function(e){var t=z.getOriginalNodeId(e),n=y[t];if(n)return delete y[t],z.append(n,e);return e}(e);default:return z.visitEachChild(e,N,u)}}function N(e){return 524288&e.transformFlags||512&e.transformFlags?z.isImportCall(e)?function(e){var t=z.visitNode(z.firstOrUndefined(e.arguments),N),n=!!(2048&e.transformFlags);switch(f.module){case z.ModuleKind.AMD:return D(t,n);case z.ModuleKind.UMD:return function(e,t){{if(d=!0,z.isSimpleCopiableExpression(e)){var n=z.isGeneratedIdentifier(e)?e:z.isStringLiteral(e)?z.createLiteral(e):z.setEmitFlags(z.setTextRange(z.getSynthesizedClone(e),e),1536);return z.createConditional(z.createIdentifier("__syncRequire"),k(e,t),D(n,t))}var r=z.createTempVariable(i);return z.createComma(z.createAssignment(r,e),z.createConditional(z.createIdentifier("__syncRequire"),k(r,t),D(r,t)))}}(t,n);case z.ModuleKind.CommonJS:default:return k(t,n)}}(e):z.isDestructuringAssignment(e)?function(e){if(function o(e){if(z.isObjectLiteralExpression(e))for(var t=0,n=e.properties;t<n.length;t++){var r=n[t];switch(r.kind){case 276:if(o(r.initializer))return!0;break;case 277:if(o(r.name))return!0;break;case 278:if(o(r.expression))return!0;break;case 157:case 159:case 160:return!1;default:z.Debug.assertNever(r,"Unhandled object member kind")}}else if(z.isArrayLiteralExpression(e))for(var i=0,a=e.elements;i<a.length;i++){var r=a[i];if(z.isSpreadElement(r)){if(o(r.expression))return!0}else if(o(r))return!0}else if(z.isIdentifier(e))return z.length(J(e))>(z.isExportName(e)?1:0);return!1}(e.left))return z.flattenDestructuringAssignment(e,N,u,0,!1,V);return z.visitEachChild(e,N,u)}(e):z.visitEachChild(e,N,u):e}function D(e,t){var n,r=z.createUniqueName("resolve"),i=z.createUniqueName("reject"),a=[z.createParameter(undefined,undefined,undefined,r),z.createParameter(undefined,undefined,undefined,i)],o=z.createBlock([z.createExpressionStatement(z.createCall(z.createIdentifier("require"),undefined,[z.createArrayLiteral([e||z.createOmittedExpression()]),r,i]))]);2<=c?n=z.createArrowFunction(undefined,undefined,a,undefined,undefined,o):(n=z.createFunctionExpression(undefined,undefined,undefined,undefined,a,undefined,o),t&&z.setEmitFlags(n,8));var s=z.createNew(z.createIdentifier("Promise"),undefined,[n]);return f.esModuleInterop?(u.requestEmitHelper(z.importStarHelper),z.createCall(z.createPropertyAccess(s,z.createIdentifier("then")),undefined,[z.getHelperName("__importStar")])):s}function k(e,t){var n,r=z.createCall(z.createPropertyAccess(z.createIdentifier("Promise"),"resolve"),undefined,[]),i=z.createCall(z.createIdentifier("require"),undefined,e?[e]:[]);return f.esModuleInterop&&(u.requestEmitHelper(z.importStarHelper),i=z.createCall(z.getHelperName("__importStar"),undefined,[i])),2<=c?n=z.createArrowFunction(undefined,undefined,[],undefined,undefined,i):(n=z.createFunctionExpression(undefined,undefined,undefined,undefined,[],undefined,z.createBlock([z.createReturn(i)])),t&&z.setEmitFlags(n,8)),z.createCall(z.createPropertyAccess(r,"then"),undefined,[n])}function A(e,t){return!f.esModuleInterop||67108864&z.getEmitFlags(e)?t:z.getImportNeedsImportStarHelper(e)?(u.requestEmitHelper(z.importStarHelper),z.createCall(z.getHelperName("__importStar"),undefined,[t])):z.getImportNeedsImportDefaultHelper(e)?(u.requestEmitHelper(z.importDefaultHelper),z.createCall(z.getHelperName("__importDefault"),undefined,[t])):t}function w(e){var t=z.getExternalModuleNameLiteral(e,g,h,_,f),n=[];return t&&n.push(t),z.createCall(z.createIdentifier("require"),undefined,n)}function V(e,t,n){var r=J(e);if(r){for(var i=z.isExportName(e)?t:z.createAssignment(e,t),a=0,o=r;a<o.length;a++){var s=o[a];z.setEmitFlags(i,4),i=W(s,i,n)}return i}return z.createAssignment(e,t)}function P(e){return 0!=(4194304&z.getEmitFlags(e))}function L(e,t){if(m.exportEquals)return e;var n=t.importClause;if(!n)return e;n.name&&(e=R(e,n));var r=n.namedBindings;if(r)switch(r.kind){case 252:e=R(e,r);break;case 253:for(var i=0,a=r.elements;i<a.length;i++){e=R(e,a[i])}}return e}function M(e,t){return m.exportEquals?e:R(e,t)}function F(e,t){if(m.exportEquals)return e;for(var n=0,r=t.declarationList.declarations;n<r.length;n++){e=function a(e,t){if(m.exportEquals)return e;if(z.isBindingPattern(t.name))for(var n=0,r=t.name.elements;n<r.length;n++){var i=r[n];z.isOmittedExpression(i)||(e=a(e,i))}else z.isGeneratedIdentifier(t.name)||(e=R(e,t));return e}(e,r[n])}return e}function O(e,t){return m.exportEquals||(z.hasModifier(t,1)&&(e=H(e,z.hasModifier(t,512)?z.createIdentifier("default"):z.getDeclarationName(t),z.getLocalName(t),t)),t.name&&(e=R(e,t))),e}function R(e,t){var n=z.getDeclarationName(t),r=m.exportSpecifiers.get(z.idText(n));if(r)for(var i=0,a=r;i<a.length;i++){var o=a[i];e=H(e,o.name,n,o.name)}return e}function H(e,t,n,r,i){return e=z.append(e,function(e,t,n,r){var i=z.setTextRange(z.createExpressionStatement(W(e,t)),n);z.startOnNewLine(i),r||z.setEmitFlags(i,1536);return i}(t,n,r,i))}function j(){var e=0===c?z.createExpressionStatement(W(z.createIdentifier("__esModule"),z.createLiteral(!0))):z.createExpressionStatement(z.createCall(z.createPropertyAccess(z.createIdentifier("Object"),"defineProperty"),undefined,[z.createIdentifier("exports"),z.createLiteral("__esModule"),z.createObjectLiteral([z.createPropertyAssignment("value",z.createLiteral(!0))])]));return z.setEmitFlags(e,1048576),e}function W(e,t,n){return z.setTextRange(z.createAssignment(z.createPropertyAccess(z.createIdentifier("exports"),z.getSynthesizedClone(e)),t),n)}function G(e){switch(e.kind){case 86:case 81:return undefined}return e}function Y(e){if(4096&z.getEmitFlags(e)){var t=z.getExternalHelpersModuleName(g);return t?z.createPropertyAccess(t,e):e}if(!z.isGeneratedIdentifier(e)&&!z.isLocalName(e)){var n=_.getReferencedExportContainer(e,z.isExportName(e));if(n&&285===n.kind)return z.setTextRange(z.createPropertyAccess(z.createIdentifier("exports"),z.getSynthesizedClone(e)),e);var r=_.getReferencedImportDeclaration(e);if(r){if(z.isImportClause(r))return z.setTextRange(z.createPropertyAccess(z.getGeneratedNameForNode(r.parent),z.createIdentifier("default")),e);if(z.isImportSpecifier(r)){var i=r.propertyName||r.name;return z.setTextRange(z.createPropertyAccess(z.getGeneratedNameForNode(r.parent.parent.parent),z.getSynthesizedClone(i)),e)}}}return e}function J(e){if(!z.isGeneratedIdentifier(e)){var t=_.getReferencedImportDeclaration(e)||_.getReferencedValueDeclaration(e);if(t)return m&&m.exportedBindings[z.getOriginalNodeId(t)]}}};var U={name:"typescript:export-star",scoped:!0,text:"\n function __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n }"};var K={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};z.importStarHelper={name:"typescript:commonjsimportstar",scoped:!1,text:'\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result["default"] = mod;\n return result;\n};'},z.importDefaultHelper={name:"typescript:commonjsimportdefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(rg=rg||{}),(ee=rg=rg||{}).transformSystemModule=function(k){var c=k.startLexicalEnvironment,u=k.endLexicalEnvironment,A=k.hoistVariableDeclaration,l=k.getCompilerOptions(),d=k.getEmitResolver(),p=k.getEmitHost(),n=k.onSubstituteNode,i=k.onEmitNode;k.onSubstituteNode=function(e,t){if(function(e){return _&&e.id&&_[e.id]}(t=n(e,t)))return t;{if(1===e)return function(e){switch(e.kind){case 73:return function(e){if(4096&ee.getEmitFlags(e)){var t=ee.getExternalHelpersModuleName(m);return t?ee.createPropertyAccess(t,e):e}if(!ee.isGeneratedIdentifier(e)&&!ee.isLocalName(e)){var n=d.getReferencedImportDeclaration(e);if(n){if(ee.isImportClause(n))return ee.setTextRange(ee.createPropertyAccess(ee.getGeneratedNameForNode(n.parent),ee.createIdentifier("default")),e);if(ee.isImportSpecifier(n))return ee.setTextRange(ee.createPropertyAccess(ee.getGeneratedNameForNode(n.parent.parent.parent),ee.getSynthesizedClone(n.propertyName||n.name)),e)}}return e}(e);case 205:return function(e){if(ee.isAssignmentOperator(e.operatorToken.kind)&&ee.isIdentifier(e.left)&&!ee.isGeneratedIdentifier(e.left)&&!ee.isLocalName(e.left)&&!ee.isDeclarationNameOfEnumOrNamespace(e.left)){var t=N(e.left);if(t){for(var n=e,r=0,i=t;r<i.length;r++){var a=i[r];n=x(a,D(n))}return n}}return e}(e);case 203:case 204:return function(e){if((44===e.operator||45===e.operator)&&ee.isIdentifier(e.operand)&&!ee.isGeneratedIdentifier(e.operand)&&!ee.isLocalName(e.operand)&&!ee.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=N(e.operand);if(t){for(var n=204===e.kind?ee.setTextRange(ee.createPrefix(e.operator,e.operand),e):e,r=0,i=t;r<i.length;r++){var a=i[r];n=x(a,D(n))}return 204===e.kind&&(n=44===e.operator?ee.createSubtract(D(n),ee.createLiteral(1)):ee.createAdd(D(n),ee.createLiteral(1))),n}}return e}(e)}return e}(t);if(4===e)return function(e){switch(e.kind){case 277:return function(e){var t=e.name;if(!ee.isGeneratedIdentifier(t)&&!ee.isLocalName(t)){var n=d.getReferencedImportDeclaration(t);if(n){if(ee.isImportClause(n))return ee.setTextRange(ee.createPropertyAssignment(ee.getSynthesizedClone(t),ee.createPropertyAccess(ee.getGeneratedNameForNode(n.parent),ee.createIdentifier("default"))),e);if(ee.isImportSpecifier(n))return ee.setTextRange(ee.createPropertyAssignment(ee.getSynthesizedClone(t),ee.createPropertyAccess(ee.getGeneratedNameForNode(n.parent.parent.parent),ee.getSynthesizedClone(n.propertyName||n.name))),e)}}return e}(e)}return e}(t)}return t},k.onEmitNode=function(e,t,n){{var r;285===t.kind?(r=ee.getOriginalNodeId(t),m=t,y=h[r],b=g[r],(_=v[r])&&delete v[r],i(e,t,n),m=undefined,y=undefined,b=undefined,_=undefined):i(e,t,n)}},k.enableSubstitution(73),k.enableSubstitution(277),k.enableSubstitution(205),k.enableSubstitution(203),k.enableSubstitution(204),k.enableEmitNotification(285);var m,y,b,f,w,V,_,h=[],P=[],g=[],v=[];return ee.chainBundle(function(e){if(e.isDeclarationFile||!(ee.isEffectiveExternalModule(e,l)||524288&e.transformFlags))return e;var t=ee.getOriginalNodeId(e);V=m=e,y=h[t]=ee.collectExternalModuleInfo(e,d,l),b=ee.createUniqueName("exports"),g[t]=b,f=ee.createUniqueName("context");var n=function(e){for(var t=ee.createMap(),n=[],r=0,i=e;r<i.length;r++){var a,o,s=i[r],c=ee.getExternalModuleNameLiteral(s,m,p,d,l);c&&(a=c.text,(o=t.get(a))!==undefined?n[o].externalImports.push(s):(t.set(a,n.length),n.push({name:c,externalImports:[s]})))}return n}(y.externalImports),r=function(e,t){var n=[];c();var r=ee.getStrictOptionValue(l,"alwaysStrict")||!l.noImplicitUseStrict&&ee.isExternalModule(m),i=ee.addPrologue(n,e.statements,r,I);n.push(ee.createVariableStatement(undefined,ee.createVariableDeclarationList([ee.createVariableDeclaration("__moduleName",undefined,ee.createLogicalAnd(f,ee.createPropertyAccess(f,"id")))]))),ee.visitNode(y.externalHelpersImportDeclaration,I,ee.isStatement);var a=ee.visitNodes(e.statements,I,ee.isStatement,i);ee.addRange(n,w),ee.insertStatementsAfterStandardPrologue(n,u());var o=function(e){if(!y.hasExportStarsToExportValues)return;if(!y.exportedNames&&0===y.exportSpecifiers.size){for(var t=!1,n=0,r=y.externalImports;n<r.length;n++){if(256===(d=r[n]).kind&&d.exportClause){t=!0;break}}if(!t){var i=E(undefined);return e.push(i),i.name}}var a=[];if(y.exportedNames)for(var o=0,s=y.exportedNames;o<s.length;o++){var c=s[o];"default"!==c.escapedText&&a.push(ee.createPropertyAssignment(ee.createLiteral(c),ee.createTrue()))}for(var u=0,l=y.externalImports;u<l.length;u++){var d;if(256===(d=l[u]).kind&&d.exportClause)for(var p=0,f=d.exportClause.elements;p<f.length;p++){var _=f[p];a.push(ee.createPropertyAssignment(ee.createLiteral(ee.idText(_.name||_.propertyName)),ee.createTrue()))}}var h=ee.createUniqueName("exportedNames");e.push(ee.createVariableStatement(undefined,ee.createVariableDeclarationList([ee.createVariableDeclaration(h,undefined,ee.createObjectLiteral(a,!0))])));var g=E(h);return e.push(g),g.name}(n),s=ee.createObjectLiteral([ee.createPropertyAssignment("setters",function(e,t){for(var n=[],r=0,i=t;r<i.length;r++){for(var a=i[r],o=ee.forEach(a.externalImports,function(e){return ee.getLocalNameForExternalImport(e,m)}),s=o?ee.getGeneratedNameForNode(o):ee.createUniqueName(""),c=[],u=0,l=a.externalImports;u<l.length;u++){var d=l[u],p=ee.getLocalNameForExternalImport(d,m);switch(d.kind){case 250:if(!d.importClause)break;case 249:ee.Debug.assert(p!==undefined),c.push(ee.createExpressionStatement(ee.createAssignment(p,s)));break;case 256:if(ee.Debug.assert(p!==undefined),d.exportClause){for(var f=[],_=0,h=d.exportClause.elements;_<h.length;_++){var g=h[_];f.push(ee.createPropertyAssignment(ee.createLiteral(ee.idText(g.name)),ee.createElementAccess(s,ee.createLiteral(ee.idText(g.propertyName||g.name)))))}c.push(ee.createExpressionStatement(ee.createCall(b,undefined,[ee.createObjectLiteral(f,!0)])))}else c.push(ee.createExpressionStatement(ee.createCall(e,undefined,[s])))}}n.push(ee.createFunctionExpression(undefined,undefined,undefined,undefined,[ee.createParameter(undefined,undefined,undefined,s)],undefined,ee.createBlock(c,!0)))}return ee.createArrayLiteral(n,!0)}(o,t)),ee.createPropertyAssignment("execute",ee.createFunctionExpression(undefined,undefined,undefined,undefined,[],undefined,ee.createBlock(a,!0)))]);return s.multiLine=!0,n.push(ee.createReturn(s)),ee.createBlock(n,!0)}(e,n),i=ee.createFunctionExpression(undefined,undefined,undefined,undefined,[ee.createParameter(undefined,undefined,undefined,b),ee.createParameter(undefined,undefined,undefined,f)],undefined,r),a=ee.tryGetModuleNameFromFile(e,p,l),o=ee.createArrayLiteral(ee.map(n,function(e){return e.name})),s=ee.setEmitFlags(ee.updateSourceFileNode(e,ee.setTextRange(ee.createNodeArray([ee.createExpressionStatement(ee.createCall(ee.createPropertyAccess(ee.createIdentifier("System"),"register"),undefined,a?[a,o,i]:[o,i]))]),e.statements)),1024);l.outFile||l.out||ee.moveEmitHelpers(s,r,function(e){return!e.scoped});_&&(v[t]=_,_=undefined);return m=undefined,y=undefined,b=undefined,f=undefined,w=undefined,V=undefined,ee.aggregateTransformFlags(s)});function E(e){var t=ee.createUniqueName("exportStar"),n=ee.createIdentifier("m"),r=ee.createIdentifier("n"),i=ee.createIdentifier("exports"),a=ee.createStrictInequality(r,ee.createLiteral("default"));return e&&(a=ee.createLogicalAnd(a,ee.createLogicalNot(ee.createCall(ee.createPropertyAccess(e,"hasOwnProperty"),undefined,[r])))),ee.createFunctionDeclaration(undefined,undefined,undefined,t,undefined,[ee.createParameter(undefined,undefined,undefined,n)],undefined,ee.createBlock([ee.createVariableStatement(undefined,ee.createVariableDeclarationList([ee.createVariableDeclaration(i,undefined,ee.createObjectLiteral([]))])),ee.createForIn(ee.createVariableDeclarationList([ee.createVariableDeclaration(r,undefined)]),n,ee.createBlock([ee.setEmitFlags(ee.createIf(a,ee.createExpressionStatement(ee.createAssignment(ee.createElementAccess(i,r),ee.createElementAccess(n,r)))),1)])),ee.createExpressionStatement(ee.createCall(b,undefined,[i]))],!0))}function I(e){switch(e.kind){case 250:return function(e){var t;e.importClause&&A(ee.getLocalNameForExternalImport(e,m));{var n;O(e)?(n=ee.getOriginalNodeId(e),P[n]=s(P[n],e)):t=s(t,e)}return ee.singleOrMany(t)}(e);case 249:return function(e){var t;{var n;ee.Debug.assert(ee.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),A(ee.getLocalNameForExternalImport(e,m)),O(e)?(n=ee.getOriginalNodeId(e),P[n]=T(P[n],e)):t=T(t,e)}return ee.singleOrMany(t)}(e);case 256:return undefined;case 255:return function(e){if(e.isExportEquals)return undefined;var t=ee.visitNode(e.expression,Y,ee.isExpression),n=e.original;{if(!n||!O(n))return B(ee.createIdentifier("default"),t,!0);var r=ee.getOriginalNodeId(e);P[r]=C(P[r],ee.createIdentifier("default"),t,!0)}}(e);default:return W(e)}}function L(e){if(ee.isBindingPattern(e.name))for(var t=0,n=e.name.elements;t<n.length;t++){var r=n[t];ee.isOmittedExpression(r)||L(r)}else A(ee.getSynthesizedClone(e.name))}function M(e){return 0==(2097152&ee.getEmitFlags(e))&&(285===V.kind||0==(3&ee.getOriginalNode(e).flags))}function F(e,t){var n=t?r:a;return ee.isBindingPattern(e.name)?ee.flattenDestructuringAssignment(e,Y,k,0,!1,n):e.initializer?n(e.name,ee.visitNode(e.initializer,Y,ee.isExpression)):e.name}function r(e,t,n){return o(e,t,n,!0)}function a(e,t,n){return o(e,t,n,!1)}function o(e,t,n,r){return A(ee.getSynthesizedClone(e)),r?x(e,D(ee.setTextRange(ee.createAssignment(e,t),n))):D(ee.setTextRange(ee.createAssignment(e,t),n))}function O(e){return 0!=(4194304&ee.getEmitFlags(e))}function s(e,t){if(y.exportEquals)return e;var n=t.importClause;if(!n)return e;n.name&&(e=j(e,n));var r=n.namedBindings;if(r)switch(r.kind){case 252:e=j(e,r);break;case 253:for(var i=0,a=r.elements;i<a.length;i++){e=j(e,a[i])}}return e}function T(e,t){return y.exportEquals?e:j(e,t)}function R(e,t,n){if(y.exportEquals)return e;for(var r=0,i=t.declarationList.declarations;r<i.length;r++){var a=i[r];(a.initializer||n)&&(e=function s(e,t,n){if(y.exportEquals)return e;if(ee.isBindingPattern(t.name))for(var r=0,i=t.name.elements;r<i.length;r++){var a=i[r];ee.isOmittedExpression(a)||(e=s(e,a,n))}else{var o;ee.isGeneratedIdentifier(t.name)||(o=void 0,n&&(e=C(e,t.name,ee.getLocalName(t)),o=ee.idText(t.name)),e=j(e,t,o))}return e}(e,a,n))}return e}function H(e,t){return y.exportEquals||(ee.hasModifier(t,1)&&(e=C(e,r=ee.hasModifier(t,512)?ee.createLiteral("default"):t.name,ee.getLocalName(t)),n=ee.getTextOfIdentifierOrLiteral(r)),t.name&&(e=j(e,t,n))),e;var n,r}function j(e,t,n){if(y.exportEquals)return e;var r=ee.getDeclarationName(t),i=y.exportSpecifiers.get(ee.idText(r));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];s.name.escapedText!==n&&(e=C(e,s.name,r))}return e}function C(e,t,n,r){return e=ee.append(e,B(t,n,r))}function B(e,t,n){var r=ee.createExpressionStatement(x(e,t));return ee.startOnNewLine(r),n||ee.setEmitFlags(r,1536),r}function x(e,t){var n=ee.isIdentifier(e)?ee.createLiteral(e):e;return ee.setEmitFlags(t,1536|ee.getEmitFlags(t)),ee.setCommentRange(ee.createCall(b,undefined,[n,t]),t)}function W(e){switch(e.kind){case 220:return function(e){if(!M(e.declarationList))return ee.visitNode(e,Y,ee.isStatement);for(var t,n,r,i=ee.hasModifier(e,1),a=O(e),o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?t=ee.append(t,F(c,i&&!a)):L(c)}return t&&(n=ee.append(n,ee.setTextRange(ee.createExpressionStatement(ee.inlineExpressions(t)),e))),a?(r=ee.getOriginalNodeId(e),P[r]=R(P[r],e,i)):n=R(n,e,!1),ee.singleOrMany(n)}(e);case 240:return N=e,w=ee.hasModifier(N,1)?ee.append(w,ee.updateFunctionDeclaration(N,N.decorators,ee.visitNodes(N.modifiers,J,ee.isModifier),N.asteriskToken,ee.getDeclarationName(N,!0,!0),undefined,ee.visitNodes(N.parameters,Y,ee.isParameterDeclaration),undefined,ee.visitNode(N.body,Y,ee.isBlock))):ee.append(w,ee.visitEachChild(N,Y,k)),O(N)?(D=ee.getOriginalNodeId(N),P[D]=H(P[D],N)):w=H(w,N),undefined;case 241:return C=e,S=ee.getLocalName(C),A(S),B=ee.append(B,ee.setTextRange(ee.createExpressionStatement(ee.createAssignment(S,ee.setTextRange(ee.createClassExpression(undefined,C.name,undefined,ee.visitNodes(C.heritageClauses,Y,ee.isHeritageClause),ee.visitNodes(C.members,Y,ee.isClassElement)),C))),C)),O(C)?(x=ee.getOriginalNodeId(C),P[x]=H(P[x],C)):B=H(B,C),ee.singleOrMany(B);case 226:return T=V,V=I=e,I=ee.updateFor(I,I.initializer&&G(I.initializer),ee.visitNode(I.condition,Y,ee.isExpression),ee.visitNode(I.incrementor,Y,ee.isExpression),ee.visitNode(I.statement,W,ee.isStatement)),V=T,I;case 227:return E=V,V=v=e,v=ee.updateForIn(v,G(v.initializer),ee.visitNode(v.expression,Y,ee.isExpression),ee.visitNode(v.statement,W,ee.isStatement,ee.liftToBlock)),V=E,v;case 228:return b=V,V=y=e,y=ee.updateForOf(y,y.awaitModifier,G(y.initializer),ee.visitNode(y.expression,Y,ee.isExpression),ee.visitNode(y.statement,W,ee.isStatement,ee.liftToBlock)),V=b,y;case 224:return m=e,ee.updateDo(m,ee.visitNode(m.statement,W,ee.isStatement,ee.liftToBlock),ee.visitNode(m.expression,Y,ee.isExpression));case 225:return g=e,ee.updateWhile(g,ee.visitNode(g.expression,Y,ee.isExpression),ee.visitNode(g.statement,W,ee.isStatement,ee.liftToBlock));case 234:return h=e,ee.updateLabel(h,h.label,ee.visitNode(h.statement,W,ee.isStatement,ee.liftToBlock));case 232:return _=e,ee.updateWith(_,ee.visitNode(_.expression,Y,ee.isExpression),ee.visitNode(_.statement,W,ee.isStatement,ee.liftToBlock));case 233:return f=e,ee.updateSwitch(f,ee.visitNode(f.expression,Y,ee.isExpression),ee.visitNode(f.caseBlock,W,ee.isCaseBlock));case 247:return p=V,V=d=e,d=ee.updateCaseBlock(d,ee.visitNodes(d.clauses,W,ee.isCaseOrDefaultClause)),V=p,d;case 272:return l=e,ee.updateCaseClause(l,ee.visitNode(l.expression,Y,ee.isExpression),ee.visitNodes(l.statements,W,ee.isStatement));case 273:return u=e,ee.visitEachChild(u,W,k);case 236:return c=e,ee.visitEachChild(c,W,k);case 275:return s=V,V=o=e,o=ee.updateCatchClause(o,o.variableDeclaration,ee.visitNode(o.block,W,ee.isBlock)),V=s,o;case 219:return a=V,V=i=e,i=ee.visitEachChild(i,W,k),V=a,i;case 316:return O(t=e)&&220===t.original.kind&&(n=ee.getOriginalNodeId(t),r=ee.hasModifier(t.original,1),P[n]=R(P[n],t.original,r)),t;case 317:return function(e){var t=ee.getOriginalNodeId(e),n=P[t];if(n)return delete P[t],ee.append(n,e);var r=ee.getOriginalNode(e);return ee.isModuleOrEnumDeclaration(r)?ee.append(j(n,r),e):e}(e);default:return Y(e)}var t,n,r,i,a,o,s,c,u,l,d,p,f,_,h,g,m,y,b,v,E,I,T,C,B,x,S,N,D}function G(e){if(a=e,ee.isVariableDeclarationList(a)&&M(a)){for(var t=void 0,n=0,r=e.declarations;n<r.length;n++){var i=r[n],t=ee.append(t,F(i,!1));i.initializer||L(i)}return t?ee.inlineExpressions(t):ee.createOmittedExpression()}return ee.visitEachChild(e,W,k);var a}function Y(e){return ee.isDestructuringAssignment(e)?function(e){if(S(e.left))return ee.flattenDestructuringAssignment(e,Y,k,0,!0);return ee.visitEachChild(e,Y,k)}(e):ee.isImportCall(e)?(t=e,ee.createCall(ee.createPropertyAccess(f,ee.createIdentifier("import")),undefined,ee.some(t.arguments)?[ee.visitNode(t.arguments[0],Y)]:[])):512&e.transformFlags||524288&e.transformFlags?ee.visitEachChild(e,Y,k):e;var t}function S(e){if(ee.isAssignmentExpression(e,!0))return S(e.left);if(ee.isSpreadElement(e))return S(e.expression);if(ee.isObjectLiteralExpression(e))return ee.some(e.properties,S);if(ee.isArrayLiteralExpression(e))return ee.some(e.elements,S);if(ee.isShorthandPropertyAssignment(e))return S(e.name);if(ee.isPropertyAssignment(e))return S(e.initializer);if(ee.isIdentifier(e)){var t=d.getReferencedExportContainer(e);return t!==undefined&&285===t.kind}return!1}function J(e){switch(e.kind){case 86:case 81:return undefined}return e}function N(e){var t,n,r;return ee.isGeneratedIdentifier(e)||(n=d.getReferencedImportDeclaration(e)||d.getReferencedValueDeclaration(e))&&((r=d.getReferencedExportContainer(e,!1))&&285===r.kind&&(t=ee.append(t,ee.getDeclarationName(n))),t=ee.addRange(t,y&&y.exportedBindings[ee.getOriginalNodeId(n)])),t}function D(e){return _===undefined&&(_=[]),_[ee.getNodeId(e)]=!0,e}},(te=rg=rg||{}).transformES2015Module=function(a){var r,o=a.getCompilerOptions(),i=a.onEmitNode,n=a.onSubstituteNode;return a.onEmitNode=function(e,t,n){te.isSourceFile(t)?(i(e,r=t,n),r=undefined):i(e,t,n)},a.onSubstituteNode=function(e,t){if(t=n(e,t),te.isIdentifier(t)&&1===e)return function(e){if(4096&te.getEmitFlags(e)){var t=te.getExternalHelpersModuleName(r);if(t)return te.createPropertyAccess(t,e)}return e}(t);return t},a.enableEmitNotification(285),a.enableSubstitution(73),te.chainBundle(function(e){if(e.isDeclarationFile)return e;if(te.isExternalModule(e)||o.isolatedModules){var t=te.getOrCreateExternalHelpersModuleNameIfNeeded(e,o);if(t){var n=[],r=te.addPrologue(n,e.statements),i=te.createImportDeclaration(undefined,undefined,te.createImportClause(undefined,te.createNamespaceImport(t)),te.createLiteral(te.externalHelpersModuleNameText));return te.addEmitFlags(i,67108864),te.append(n,i),te.addRange(n,te.visitNodes(e.statements,s,te.isStatement,r)),te.updateSourceFileNode(e,te.setTextRange(te.createNodeArray(n),e.statements))}return te.visitEachChild(e,s,a)}return e});function s(e){switch(e.kind){case 249:return undefined;case 255:return(t=e).isExportEquals?undefined:t}var t;return e}},(ne=rg=rg||{}).canProduceDiagnostics=function(e){return ne.isVariableDeclaration(e)||ne.isPropertyDeclaration(e)||ne.isPropertySignature(e)||ne.isBindingElement(e)||ne.isSetAccessor(e)||ne.isGetAccessor(e)||ne.isConstructSignatureDeclaration(e)||ne.isCallSignatureDeclaration(e)||ne.isMethodDeclaration(e)||ne.isMethodSignature(e)||ne.isFunctionDeclaration(e)||ne.isParameter(e)||ne.isTypeParameterDeclaration(e)||ne.isExpressionWithTypeArguments(e)||ne.isImportEqualsDeclaration(e)||ne.isTypeAliasDeclaration(e)||ne.isConstructorDeclaration(e)||ne.isIndexSignatureDeclaration(e)||ne.isPropertyAccessExpression(e)},ne.createGetSymbolAccessibilityDiagnosticForNodeName=function(n){return ne.isSetAccessor(n)||ne.isGetAccessor(n)?function(e){var t=function(e){return ne.hasModifier(n,32)?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:241===n.parent.kind?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?ne.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(e);return t!==undefined?{diagnosticMessage:t,errorNode:n,typeName:n.name}:undefined}:ne.isMethodSignature(n)||ne.isMethodDeclaration(n)?function(e){var t=function(e){return ne.hasModifier(n,32)?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:241===n.parent.kind?e.errorModuleName?2===e.accessibility?ne.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ne.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?ne.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ne.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(e);return t!==undefined?{diagnosticMessage:t,errorNode:n,typeName:n.name}:undefined}:ec(n)},ne.createGetSymbolAccessibilityDiagnosticForNode=ec,function(ae){function c(e,t){var n=t.text.substring(e.pos,e.end);return ae.stringContains(n,"@internal")}function n(e,t){var n=ae.getParseTreeNode(e);if(n&&152===n.kind){var r=n.parent.parameters.indexOf(n),i=0<r?n.parent.parameters[r-1]:undefined,a=t.text,o=i?ae.concatenate(ae.getTrailingCommentRanges(a,ae.skipTrivia(a,i.end+1,!1,!0)),ae.getLeadingCommentRanges(a,e.pos)):ae.getTrailingCommentRanges(a,ae.skipTrivia(a,e.pos,!1,!0));return o&&o.length&&c(ae.last(o),t)}var s=n&&ae.getLeadingCommentRangesOfNode(n,t);return!!ae.forEach(s,function(e){return c(e,t)})}ae.getDeclarationDiagnostics=function(e,t,n){if(n&&ae.isSourceFileJS(n))return[];var r=e.getCompilerOptions();return ae.transformNodes(t,e,r,n?[n]:ae.filter(e.getSourceFiles(),ae.isSourceFileNotJS),[i],!1).diagnostics},ae.isInternalDeclaration=n;var oe=531469;function i(m){var k,g,y,A,b,v,E,I,T,C,B=function B(){return ae.Debug.fail("Diagnostic emitted without context")},w=B,V=!0,x=!1,P=!1,S=!1,L=!1,N=m.getEmitHost(),M={trackSymbol:function(e,t,n){if(262144&e.flags)return;r(F.isSymbolAccessible(e,t,n,!0)),O(F.getTypeReferenceDirectivesForSymbol(e,n))},reportInaccessibleThisError:function(){E&&m.addDiagnostic(ae.createDiagnosticForNode(E,ae.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ae.declarationNameToString(E),"this"))},reportInaccessibleUniqueSymbolError:function(){E&&m.addDiagnostic(ae.createDiagnosticForNode(E,ae.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ae.declarationNameToString(E),"unique symbol"))},reportPrivateInBaseOfClassExpression:function(e){E&&m.addDiagnostic(ae.createDiagnosticForNode(E,ae.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e))},reportLikelyUnsafeImportRequiredError:function(e){E&&m.addDiagnostic(ae.createDiagnosticForNode(E,ae.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ae.declarationNameToString(E),e))},moduleResolverHost:N,trackReferencedAmbientModule:function(e,t){var n=F.getTypeReferenceDirectivesForSymbol(t,67108863);if(ae.length(n))return O(n);var r=ae.getSourceFileOfNode(e);T.set(""+ae.getOriginalNodeId(r),r)},trackExternalModuleSymbolOfImportTypeNode:function(e){x||(v=v||[]).push(e)}},F=m.getEmitResolver(),e=m.getCompilerOptions(),c=ae.getNewLineCharacter(e),t=e.noResolve,D=e.stripInternal;return function(o){if(285===o.kind&&(o.isDeclarationFile||ae.isSourceFileJS(o)))return o;if(286===o.kind){x=!0,T=ae.createMap(),C=ae.createMap();var r=!1,e=ae.createBundle(ae.map(o.sourceFiles,function(e){if(e.isDeclarationFile||ae.isSourceFileJS(e))return undefined;if(r=r||e.hasNoDefaultLib,k=I=e,y=undefined,b=!1,A=ae.createMap(),w=B,L=S=!1,R(e,T),H(e,C),ae.isExternalModule(e)){V=P=!1;var t=ae.visitNodes(e.statements,$);return ae.updateSourceFileNode(e,[ae.createModuleDeclaration([],[ae.createModifier(126)],ae.createLiteral(ae.getResolvedExternalModuleName(m.getEmitHost(),e)),ae.createModuleBlock(ae.setTextRange(ae.createNodeArray(q(t)),e.statements)))],!0,[],[],!1,[])}V=!0;var n=ae.visitNodes(e.statements,$);return ae.updateSourceFileNode(e,q(n),!0,[],[],!1,[])}),ae.mapDefined(o.prepends,function(e){if(288!==e.kind)return e;var t=ae.createUnparsedSourceFile(e,"dts",D);return r=r||!!t.hasNoDefaultLib,R(t,T),O(t.typeReferenceDirectives),H(t,C),t}));e.syntheticFileReferences=[],e.syntheticTypeReferences=f(),e.syntheticLibReferences=p(),e.hasNoDefaultLib=r;var t=ae.getDirectoryPath(ae.normalizeSlashes(ae.getOutputPathsFor(o,N,!0).declarationFilePath)),n=h(e.syntheticFileReferences,t);return T.forEach(n),e}V=!0,I=k=o,w=B,b=P=x=L=S=!1,y=undefined,A=ae.createMap(),g=undefined,T=R(I,ae.createMap()),C=H(I,ae.createMap());var i=[],a=ae.getDirectoryPath(ae.normalizeSlashes(ae.getOutputPathsFor(o,N,!0).declarationFilePath)),s=h(i,a),c=ae.visitNodes(o.statements,$),u=ae.setTextRange(ae.createNodeArray(q(c)),o.statements);T.forEach(s);var l=ae.filter(u,ae.isAnyImportSyntax);ae.isExternalModule(o)&&(!P||S&&!L)&&(u=ae.setTextRange(ae.createNodeArray(u.concat([ae.createExportDeclaration(undefined,undefined,ae.createNamedExports([]),undefined)])),u));var d=ae.updateSourceFileNode(o,u,!0,i,f(),o.hasNoDefaultLib,p());return d.exportedModulesFromDeclarationEmit=v,d;function p(){return ae.map(ae.arrayFrom(C.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function f(){return g?ae.mapDefined(ae.arrayFrom(g.keys()),_):[]}function _(e){if(l)for(var t=0,n=l;t<n.length;t++){var r=n[t];if(ae.isImportEqualsDeclaration(r)&&ae.isExternalModuleReference(r.moduleReference)){var i=r.moduleReference.expression;if(ae.isStringLiteralLike(i)&&i.text===e)return undefined}else if(ae.isImportDeclaration(r)&&ae.isStringLiteral(r.moduleSpecifier)&&r.moduleSpecifier.text===e)return undefined}return{fileName:e,pos:-1,end:-1}}function h(i,a){return function(e){if(e.isDeclarationFile)n=e.fileName;else{if(x&&ae.contains(o.sourceFiles,e))return;var t=ae.getOutputPathsFor(e,N,!0),n=t.declarationFilePath||t.jsFilePath||e.fileName}if(n){var r=ae.getRelativePathToDirectoryOrUrl(a,n,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ae.startsWith(r,"./")&&ae.hasExtension(r)&&(r=r.substring(2)),ae.startsWith(r,"node_modules/")||-1!==r.indexOf("/node_modules/"))return;i.push({pos:-1,end:-1,fileName:r})}}}};function O(e){if(e){g=g||ae.createMap();for(var t=0,n=e;t<n.length;t++){var r=n[t];g.set(r,!0)}}}function r(e){if(0===e.accessibility){if(e&&e.aliasesToMakeVisible)if(y)for(var t=0,n=e.aliasesToMakeVisible;t<n.length;t++){var r=n[t];ae.pushIfUnique(y,r)}else y=e.aliasesToMakeVisible}else{var i=w(e);i&&(i.typeName?m.addDiagnostic(ae.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,ae.getTextOfNode(i.typeName),e.errorSymbolName,e.errorModuleName)):m.addDiagnostic(ae.createDiagnosticForNode(e.errorNode||i.errorNode,i.diagnosticMessage,e.errorSymbolName,e.errorModuleName)))}}function R(n,r){return t||!ae.isUnparsedSource(n)&&ae.isSourceFileJS(n)||ae.forEach(n.referencedFiles,function(e){var t=ae.tryResolveScriptReference(N,n,e);t&&r.set(""+ae.getOriginalNodeId(t),t)}),r}function H(e,t){return ae.forEach(e.libReferenceDirectives,function(e){N.getLibFileFromReference(e)&&t.set(e.fileName.toLocaleLowerCase(),!0)}),t}function i(e,t){var n;b||(n=w,w=ae.createGetSymbolAccessibilityDiagnosticForNode(e));var r=ae.updateParameter(e,undefined,d(e,t),e.dotDotDotToken,function i(e){return 73===e.kind?e:186===e.kind?ae.updateArrayBindingPattern(e,ae.visitNodes(e.elements,t)):ae.updateObjectBindingPattern(e,ae.visitNodes(e.elements,t));function t(e){return 211===e.kind?e:ae.updateBindingElement(e,e.dotDotDotToken,e.propertyName,i(e.name),o(e)?e.initializer:undefined)}}(e.name),F.isOptionalParameter(e)?e.questionToken||ae.createToken(56):undefined,W(e,e.type,!0),j(e));return b||(w=n),r}function o(e){return function(e){switch(e.kind){case 155:case 154:return!ae.hasModifier(e,8);case 152:case 238:return 1}return}(e)&&F.isLiteralConstDeclaration(ae.getParseTreeNode(e))}function j(e){return o(e)?F.createLiteralConstValue(ae.getParseTreeNode(e),M):undefined}function W(e,t,n){if((n||!ae.hasModifier(e,8))&&!o(e)){var r,i=152===e.kind&&(F.isRequiredInitializedParameter(e)||F.isOptionalUninitializedParameterProperty(e));return t&&!i?ae.visitNode(t,Q):ae.getParseTreeNode(e)?160===e.kind?ae.createKeywordTypeNode(121):(E=e.name,b||(r=w,w=ae.createGetSymbolAccessibilityDiagnosticForNode(e)),238===e.kind||187===e.kind?a(F.createTypeOfDeclaration(e,k,oe,M)):152===e.kind||155===e.kind||154===e.kind?e.initializer?a(F.createTypeOfDeclaration(e,k,oe,M,i)||F.createTypeOfExpression(e.initializer,k,oe,M)):a(F.createTypeOfDeclaration(e,k,oe,M,i)):a(F.createReturnTypeOfSignatureDeclaration(e,k,oe,M))):t?ae.visitNode(t,Q):ae.createKeywordTypeNode(121)}function a(e){return E=undefined,b||(w=r),e||ae.createKeywordTypeNode(121)}}function G(e){switch((e=ae.getParseTreeNode(e)).kind){case 240:case 245:case 242:case 241:case 243:case 244:return!F.isDeclarationVisible(e);case 238:return!Y(e);case 249:case 250:case 256:case 255:return}}function Y(e){return!ae.isOmittedExpression(e)&&(ae.isBindingPattern(e.name)?ae.some(e.name.elements,Y):F.isDeclarationVisible(e))}function J(e,t,n){if(ae.hasModifier(e,8))return undefined;var r=ae.map(t,function(e){return i(e,n)});return r?ae.createNodeArray(r,t.hasTrailingComma):undefined}function z(e,t){return ae.hasModifier(e,8)?undefined:ae.visitNodes(t,Q)}function U(e){return ae.isSourceFile(e)||ae.isTypeAliasDeclaration(e)||ae.isModuleDeclaration(e)||ae.isClassDeclaration(e)||ae.isInterfaceDeclaration(e)||ae.isFunctionLike(e)||ae.isIndexSignatureDeclaration(e)||ae.isMappedTypeNode(e)}function K(e,t){r(F.isEntityNameVisible(e,t)),O(F.getTypeReferenceDirectivesForEntityName(e))}function Z(e,t){return ae.hasJSDocNodes(e)&&ae.hasJSDocNodes(t)&&(e.jsDoc=t.jsDoc),ae.setCommentRange(e,ae.getCommentRange(t))}function X(e,t){if(!t)return undefined;if(P=P||245!==e.kind&&184!==e.kind,ae.isStringLiteralLike(t))if(x){var n=ae.getExternalModuleNameFromDeclaration(m.getEmitHost(),F,e);if(n)return ae.createLiteral(n)}else{var r=F.getSymbolOfExternalModuleSpecifier(t);r&&(v=v||[]).push(r)}return t}function q(e){for(;ae.length(y);){var t=y.shift();if(!ae.isLateVisibilityPaintedStatement(t))return ae.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(ae.SyntaxKind?ae.SyntaxKind[t.kind]:t.kind));var n=V;V=t.parent&&ae.isSourceFile(t.parent)&&!(ae.isExternalModule(t.parent)&&x);var r=u(t,!0);V=n,A.set(""+ae.getOriginalNodeId(t),r)}return ae.visitNodes(e,function(e){if(ae.isLateVisibilityPaintedStatement(e)){var t=""+ae.getOriginalNodeId(e);if(A.has(t)){var n=A.get(t);return A["delete"](t),n&&ae.isSourceFile(e.parent)&&((ae.isArray(n)?ae.some(n,s):s(n))&&(S=!0),(ae.isArray(n)?ae.some(n,a):a(n))&&(P=!0)),n}}return e})}function a(e){return ae.isAnyImportOrReExport(e)||ae.isExportAssignment(e)||ae.hasModifier(e,1)}function s(e){return!(ae.isAnyImportOrReExport(e)||ae.isExportAssignment(e)||ae.hasModifier(e,1)||ae.isAmbientModule(e))}function Q(t){if(!te(t)){if(ae.isDeclaration(t)){if(G(t))return;if(ae.hasDynamicName(t)&&!F.isLateBound(ae.getParseTreeNode(t)))return}if(!(ae.isFunctionLike(t)&&F.isImplementationOfOverload(t)||ae.isSemicolonClassElement(t))){var n;U(t)&&(n=k,k=t);var r=w;if((ae.isMethodDeclaration(t)||ae.isMethodSignature(t))&&ae.hasModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return g(ae.createProperty(undefined,ne(t),t.name,undefined,undefined,undefined))}var i=ae.canProduceDiagnostics(t);i&&!b&&(w=ae.createGetSymbolAccessibilityDiagnosticForNode(t)),ae.isTypeQueryNode(t)&&K(t.exprName,k);var e,a=b,o=(169===t.kind||182===t.kind)&&243!==t.parent.kind;if(o&&(b=!0),function(e){switch(e.kind){case 162:case 158:case 157:case 159:case 160:case 155:case 154:case 156:case 161:case 163:case 238:case 151:case 212:case 165:case 176:case 166:case 167:case 184:return!0}return!1}(t))switch(t.kind){case 212:(ae.isEntityName(t.expression)||ae.isEntityNameExpression(t.expression))&&K(t.expression,k);var s=ae.visitEachChild(t,Q,m);return g(ae.updateExpressionWithTypeArguments(s,ae.parenthesizeTypeParameters(s.typeArguments),s.expression));case 165:K(t.typeName,k);s=ae.visitEachChild(t,Q,m);return g(ae.updateTypeReferenceNode(s,s.typeName,ae.parenthesizeTypeParameters(s.typeArguments)));case 162:return g(ae.updateConstructSignature(t,z(t,t.typeParameters),J(t,t.parameters),W(t,t.type)));case 158:var c=ae.hasModifier(t,8),u=ae.createSignatureDeclaration(158,c?undefined:z(t,t.typeParameters),c?undefined:J(t,t.parameters,0),undefined);return u.modifiers=ae.createNodeArray(ne(t)),g(u);case 157:var l=ae.createSignatureDeclaration(156,z(t,t.typeParameters),J(t,t.parameters),W(t,t.type));return l.name=t.name,l.modifiers=ae.createNodeArray(ne(t)),l.questionToken=t.questionToken,g(l);case 159:case 160:return g(re(t));case 155:return g(ae.updateProperty(t,undefined,ne(t),t.name,t.questionToken,ae.hasModifier(t,8)?undefined:W(t,t.type),j(t)));case 154:return g(ae.updatePropertySignature(t,ne(t),t.name,t.questionToken,ae.hasModifier(t,8)?undefined:W(t,t.type),j(t)));case 156:return g(ae.updateMethodSignature(t,z(t,t.typeParameters),J(t,t.parameters),W(t,t.type),t.name,t.questionToken));case 161:return g(ae.updateCallSignature(t,z(t,t.typeParameters),J(t,t.parameters),W(t,t.type)));case 163:return g(ae.updateIndexSignature(t,undefined,ne(t),J(t,t.parameters),ae.visitNode(t.type,Q)||ae.createKeywordTypeNode(121)));case 238:return ae.isBindingPattern(t.name)?ee(t.name):(b=o=!0,g(ae.updateVariableDeclaration(t,t.name,W(t,t.type),j(t))));case 151:return 157===(e=t).parent.kind&&ae.hasModifier(e.parent,8)&&(t["default"]||t.constraint)?g(ae.updateTypeParameterDeclaration(t,t.name,undefined,undefined)):g(ae.visitEachChild(t,Q,m));case 176:var d=ae.visitNode(t.checkType,Q),p=ae.visitNode(t.extendsType,Q),f=k;k=t.trueType;var _=ae.visitNode(t.trueType,Q);k=f;var h=ae.visitNode(t.falseType,Q);return g(ae.updateConditionalTypeNode(t,d,p,_,h));case 166:return g(ae.updateFunctionTypeNode(t,ae.visitNodes(t.typeParameters,Q),J(t,t.parameters),ae.visitNode(t.type,Q)));case 167:return g(ae.updateConstructorTypeNode(t,ae.visitNodes(t.typeParameters,Q),J(t,t.parameters),ae.visitNode(t.type,Q)));case 184:return ae.isLiteralImportTypeNode(t)?g(ae.updateImportTypeNode(t,ae.updateLiteralTypeNode(t.argument,X(t,t.argument.literal)),t.qualifier,ae.visitNodes(t.typeArguments,Q,ae.isTypeNode),t.isTypeOf)):g(t);default:ae.Debug.assertNever(t,"Attempted to process unhandled node kind: "+ae.SyntaxKind[t.kind])}return g(ae.visitEachChild(t,Q,m))}}function g(e){return e&&i&&ae.hasDynamicName(t)&&function(e){var t;b||(t=w,w=ae.createGetSymbolAccessibilityDiagnosticForNodeName(e));E=e.name,ae.Debug.assert(F.isLateBound(ae.getParseTreeNode(e))),K(e.name.expression,k),b||(w=t);E=undefined}(t),U(t)&&(k=n),i&&!b&&(w=r),o&&(b=a),e===t?e:e&&ae.setOriginalNode(Z(e,t),t)}}function $(t){if(function(e){switch(e.kind){case 240:case 245:case 249:case 242:case 241:case 243:case 244:case 220:case 250:case 256:case 255:return!0}return!1}(t)&&!te(t)){switch(t.kind){case 256:return ae.isSourceFile(t.parent)&&(L=P=!0),ae.updateExportDeclaration(t,undefined,t.modifiers,t.exportClause,X(t,t.moduleSpecifier));case 255:if(ae.isSourceFile(t.parent)&&(L=P=!0),73===t.expression.kind)return t;var e=ae.createOptimisticUniqueName("_default");w=function w(){return{diagnosticMessage:ae.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}};var n=ae.createVariableDeclaration(e,F.createTypeOfExpression(t.expression,t,oe,M),undefined);return[ae.createVariableStatement(V?[ae.createModifier(126)]:[],ae.createVariableDeclarationList([n],2)),ae.updateExportAssignment(t,t.decorators,t.modifiers,e)]}var r=u(t);return A.set(""+ae.getOriginalNodeId(t),r),t}}function u(t,e){if(!te(t)){switch(t.kind){case 249:return function(e){if(F.isDeclarationVisible(e)){if(260===e.moduleReference.kind){var t=ae.getExternalModuleImportEqualsDeclarationExpression(e);return ae.updateImportEqualsDeclaration(e,undefined,e.modifiers,e.name,ae.updateExternalModuleReference(e.moduleReference,X(e,t)))}var n=w;return w=ae.createGetSymbolAccessibilityDiagnosticForNode(e),K(e.moduleReference,k),w=n,e}}(t);case 250:return function(e){if(!e.importClause)return ae.updateImportDeclaration(e,undefined,e.modifiers,e.importClause,X(e,e.moduleSpecifier));var t=e.importClause&&e.importClause.name&&F.isDeclarationVisible(e.importClause)?e.importClause.name:undefined;if(!e.importClause.namedBindings)return t&&ae.updateImportDeclaration(e,undefined,e.modifiers,ae.updateImportClause(e.importClause,t,undefined),X(e,e.moduleSpecifier));if(252===e.importClause.namedBindings.kind){var n=F.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:undefined;return t||n?ae.updateImportDeclaration(e,undefined,e.modifiers,ae.updateImportClause(e.importClause,t,n),X(e,e.moduleSpecifier)):undefined}var r=ae.mapDefined(e.importClause.namedBindings.elements,function(e){return F.isDeclarationVisible(e)?e:undefined});return r&&r.length||t?ae.updateImportDeclaration(e,undefined,e.modifiers,ae.updateImportClause(e.importClause,t,r&&r.length?ae.updateNamedImports(e.importClause.namedBindings,r):undefined),X(e,e.moduleSpecifier)):void 0}(t)}if(!(ae.isDeclaration(t)&&G(t)||ae.isFunctionLike(t)&&F.isImplementationOfOverload(t))){var n;U(t)&&(n=k,k=t);var r=ae.canProduceDiagnostics(t),i=w;r&&(w=ae.createGetSymbolAccessibilityDiagnosticForNode(t));var a=V;switch(t.kind){case 243:return D(ae.updateTypeAliasDeclaration(t,undefined,ne(t,e),t.name,ae.visitNodes(t.typeParameters,Q,ae.isTypeParameterDeclaration),ae.visitNode(t.type,Q,ae.isTypeNode)));case 242:return D(ae.updateInterfaceDeclaration(t,undefined,ne(t,e),t.name,z(t,t.typeParameters),ie(t.heritageClauses),ae.visitNodes(t.members,Q)));case 240:var o=D(ae.updateFunctionDeclaration(t,undefined,ne(t,e),undefined,t.name,z(t,t.typeParameters),J(t,t.parameters),W(t,t.type),undefined));if(o&&F.isExpandoFunctionDeclaration(t)){var s=ae.mapDefined(F.getPropertiesOfContainerFunction(t),function(e){if(!ae.isPropertyAccessExpression(e.valueDeclaration))return undefined;w=ae.createGetSymbolAccessibilityDiagnosticForNode(e.valueDeclaration);var t=F.createTypeOfDeclaration(e.valueDeclaration,k,oe,M);w=i;var n=ae.createVariableDeclaration(ae.unescapeLeadingUnderscores(e.escapedName),t,undefined);return ae.createVariableStatement(undefined,ae.createVariableDeclarationList([n]))}),c=ae.createModuleDeclaration(undefined,ne(t,e),t.name,ae.createModuleBlock(s),16);if(!ae.hasModifier(o,513))return[o,c];var u=ae.createModifiersFromModifierFlags(-514&ae.getModifierFlags(o)|2),l=ae.updateFunctionDeclaration(o,undefined,u,undefined,o.name,o.typeParameters,o.parameters,o.type,undefined),d=ae.updateModuleDeclaration(c,undefined,u,c.name,c.body),p=ae.createExportAssignment(undefined,undefined,!1,c.name);return L=P=!0,[l,d,p]}return o;case 245:V=!1;var f=t.body;if(f&&246===f.kind){var _=ae.visitNodes(f.statements,$),h=ae.updateModuleBlock(f,q(_));V=a;var g=ne(t,e);return D(ae.updateModuleDeclaration(t,undefined,g,ae.isExternalModuleAugmentation(t)?X(t,t.name):t.name,h))}V=a;g=ne(t,e);V=!1,ae.visitNode(f,$);var m=""+ae.getOriginalNodeId(f),h=A.get(m);return A["delete"](m),D(ae.updateModuleDeclaration(t,undefined,g,t.name,h));case 241:var y,u=ae.createNodeArray(ne(t,e)),b=z(t,t.typeParameters),v=ae.getFirstConstructorWithBody(t),E=void 0;v&&(y=w,E=ae.compact(ae.flatMap(v.parameters,function(a){if(ae.hasModifier(a,92)&&!te(a))return w=ae.createGetSymbolAccessibilityDiagnosticForNode(a),73===a.name.kind?Z(ae.createProperty(undefined,ne(a),a.name,a.questionToken,W(a,a.type),j(a)),a):function o(e){var t;for(var n=0,r=e.elements;n<r.length;n++){var i=r[n];ae.isOmittedExpression(i)||(ae.isBindingPattern(i.name)&&(t=ae.concatenate(t,o(i.name))),(t=t||[]).push(ae.createProperty(undefined,ne(a),i.name,undefined,W(i,undefined),undefined)))}return t}(a.name)})),w=y);var I=ae.createNodeArray(ae.concatenate(E,ae.visitNodes(t.members,Q))),T=ae.getEffectiveBaseTypeNode(t);if(T&&!ae.isEntityNameExpression(T.expression)&&97!==T.expression.kind){var C=t.name?ae.unescapeLeadingUnderscores(t.name.escapedText):"default",B=ae.createOptimisticUniqueName(C+"_base");w=function w(){return{diagnosticMessage:ae.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:T,typeName:t.name}};var x=ae.createVariableDeclaration(B,F.createTypeOfExpression(T.expression,t,oe,M),undefined),S=ae.createVariableStatement(V?[ae.createModifier(126)]:[],ae.createVariableDeclarationList([x],2)),N=ae.createNodeArray(ae.map(t.heritageClauses,function(e){if(87!==e.token)return ae.updateHeritageClause(e,ae.visitNodes(ae.createNodeArray(ae.filter(e.types,function(e){return ae.isEntityNameExpression(e.expression)||97===e.expression.kind})),Q));var t=w;w=ae.createGetSymbolAccessibilityDiagnosticForNode(e.types[0]);var n=ae.updateHeritageClause(e,ae.map(e.types,function(e){return ae.updateExpressionWithTypeArguments(e,ae.visitNodes(e.typeArguments,Q),B)}));return w=t,n}));return[S,D(ae.updateClassDeclaration(t,undefined,u,t.name,b,N,I))]}N=ie(t.heritageClauses);return D(ae.updateClassDeclaration(t,undefined,u,t.name,b,N,I));case 220:return D(function(e,t){if(!ae.forEach(e.declarationList.declarations,Y))return;var n=ae.visitNodes(e.declarationList.declarations,Q);if(!ae.length(n))return;return ae.updateVariableStatement(e,ae.createNodeArray(ne(e,t)),ae.updateVariableDeclarationList(e.declarationList,n))}(t,e));case 244:return D(ae.updateEnumDeclaration(t,undefined,ae.createNodeArray(ne(t,e)),t.name,ae.createNodeArray(ae.mapDefined(t.members,function(e){if(!te(e)){var t=F.getConstantValue(e);return Z(ae.updateEnumMember(e,e.name,t!==undefined?ae.createLiteral(t):undefined),e)}}))))}return ae.Debug.assertNever(t,"Unhandled top-level node in declaration emit: "+ae.SyntaxKind[t.kind])}}function D(e){return U(t)&&(k=n),r&&(w=i),245===t.kind&&(V=a),e===t?e:e&&ae.setOriginalNode(Z(e,t),t)}}function ee(e){return ae.flatten(ae.mapDefined(e.elements,function(e){if(211===e.kind)return;if(e.name){if(!Y(e))return;return ae.isBindingPattern(e.name)?ee(e.name):ae.createVariableDeclaration(e.name,W(e,undefined),undefined)}}))}function te(e){return D&&e&&n(e,I)}function l(e){return ae.isExportAssignment(e)||ae.isExportDeclaration(e)}function ne(e,t){var n=ae.getModifierFlags(e),r=function(e,t){var n=2811,r=V&&242!==e.kind?2:0,i=285===e.parent.kind;(!i||x&&i&&ae.isExternalModule(e.parent))&&(n^=2|(t||x&&i||function(e){return ae.isModuleBlock(e)&&ae.some(e.statements,l)}(e.parent)?0:1),r=0);return p(e,n,r)}(e,t);return n===r?e.modifiers:ae.createModifiersFromModifierFlags(r)}function re(e){var t=F.getAllAccessorDeclarations(e);if(e.kind===t.firstAccessor.kind){var n=f(e);!n&&t.secondAccessor&&(n=f(t.secondAccessor),w=ae.createGetSymbolAccessibilityDiagnosticForNode(t.secondAccessor));var a=ae.createProperty(undefined,d(e,undefined,t.setAccessor?0:64),e.name,e.questionToken,W(e,n),undefined),r=t.secondAccessor&&ae.getLeadingCommentRangesOfNode(t.secondAccessor,I);if(r)for(var o=function o(e){var t,n,r,i;3===e.kind&&(1<(t=(i=I.text.slice(e.pos+2,e.end-2)).split(/\r\n?|\n/g)).length&&(n=t.slice(1),r=ae.guessIndentation(n),i=[t[0]].concat(ae.map(n,function(e){return e.slice(r)})).join(c)),ae.addSyntheticLeadingComment(a,e.kind,i,e.hasTrailingNewLine))},i=0,s=r;i<s.length;i++){o(s[i])}return a}}function ie(e){return ae.createNodeArray(ae.filter(ae.map(e,function(t){return ae.updateHeritageClause(t,ae.visitNodes(ae.createNodeArray(ae.filter(t.types,function(e){return ae.isEntityNameExpression(e.expression)||87===t.token&&97===e.expression.kind})),Q))}),function(e){return e.types&&!!e.types.length}))}}function d(e,t,n){return ae.createModifiersFromModifierFlags(p(e,t,n))}function p(e,t,n){void 0===t&&(t=3067),void 0===n&&(n=0);var r=ae.getModifierFlags(e)&t|n;return 512&r&&!(1&r)&&(r^=1),512&r&&2&r&&(r^=2),r}function f(e){if(e)return 159===e.kind?e.type:0<e.parameters.length?e.parameters[0].type:undefined}ae.transformDeclarations=i}(rg=rg||{}),re=rg=rg||{},(ie={})[ie.Uninitialized=0]="Uninitialized",ie[ie.Initialized=1]="Initialized",ie[ie.Completed=2]="Completed",ie[ie.Disposed=3]="Disposed",(ae={})[ae.Substitution=1]="Substitution",ae[ae.EmitNotifications=2]="EmitNotifications",re.noTransformers={scriptTransformers:re.emptyArray,declarationTransformers:re.emptyArray},re.getTransformers=function(e,t,n){return{scriptTransformers:function(e,t,n){if(n)return re.emptyArray;var r=e.jsx,i=re.getEmitScriptTarget(e),a=re.getEmitModuleKind(e),o=[];re.addRange(o,t&&re.map(t.before,nc)),o.push(re.transformTypeScript),2===r&&o.push(re.transformJsx);i<8&&o.push(re.transformESNext);i<6&&o.push(re.transformES2019);i<5&&o.push(re.transformES2018);i<4&&o.push(re.transformES2017);i<3&&o.push(re.transformES2016);i<2&&(o.push(re.transformES2015),o.push(re.transformGenerators));o.push(function(e){switch(e){case re.ModuleKind.ESNext:case re.ModuleKind.ES2015:return re.transformES2015Module;case re.ModuleKind.System:return re.transformSystemModule;default:return re.transformModule}}(a)),i<1&&o.push(re.transformES5);return re.addRange(o,t&&re.map(t.after,nc)),o}(e,t,n),declarationTransformers:(r=t,(i=[]).push(re.transformDeclarations),re.addRange(i,r&&re.map(r.afterDeclarations,rc)),i)};var r,i},re.noEmitSubstitution=ic,re.noEmitNotification=ac,re.transformNodes=function(e,t,n,r,i,a){for(var o,s,c,u=new Array(318),l=[],d=[],p=0,f=!1,_=ic,h=ac,g=0,m=[],y={getCompilerOptions:function(){return n},getEmitResolver:function(){return e},getEmitHost:function(){return t},startLexicalEnvironment:function(){re.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),re.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),re.Debug.assert(!f,"Lexical environment is suspended."),l[p]=o,d[p]=s,p++,o=undefined,s=undefined},suspendLexicalEnvironment:function(){re.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),re.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),re.Debug.assert(!f,"Lexical environment is already suspended."),f=!0},resumeLexicalEnvironment:function(){re.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),re.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),re.Debug.assert(f,"Lexical environment is not suspended."),f=!1},endLexicalEnvironment:function(){var e;{var t;re.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),re.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),re.Debug.assert(!f,"Lexical environment is suspended."),(o||s)&&(s&&(e=s.slice()),o&&(t=re.createVariableStatement(undefined,re.createVariableDeclarationList(o)),re.setEmitFlags(t,1048576),e?e.push(t):e=[t]))}o=l[--p],s=d[p],0===p&&(l=[],d=[]);return e},hoistVariableDeclaration:function(e){re.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),re.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed.");var t=re.setEmitFlags(re.createVariableDeclaration(e),64);o?o.push(t):o=[t]},hoistFunctionDeclaration:function(e){re.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),re.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),s?s.push(e):s=[e]},requestEmitHelper:function(e){re.Debug.assert(0<g,"Cannot modify the transformation context during initialization."),re.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),re.Debug.assert(!e.scoped,"Cannot request a scoped emit helper."),c=re.append(c,e)},readEmitHelpers:function(){re.Debug.assert(0<g,"Cannot modify the transformation context during initialization."),re.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed.");var e=c;return c=undefined,e},enableSubstitution:function(e){re.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),u[e]|=1},enableEmitNotification:function(e){re.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),u[e]|=2},isSubstitutionEnabled:B,isEmitNotificationEnabled:x,get onSubstituteNode(){return _},set onSubstituteNode(e){re.Debug.assert(g<1,"Cannot modify transformation hooks after initialization has completed."),re.Debug.assert(e!==undefined,"Value must not be 'undefined'"),_=e},get onEmitNode(){return h},set onEmitNode(e){re.Debug.assert(g<1,"Cannot modify transformation hooks after initialization has completed."),re.Debug.assert(e!==undefined,"Value must not be 'undefined'"),h=e},addDiagnostic:function(e){m.push(e)}},b=0,v=r;b<v.length;b++){var E=v[b];re.disposeEmitNodes(re.getSourceFileOfNode(re.getParseTreeNode(E)))}re.performance.mark("beforeTransform");var I=i.map(function(e){return e(y)}),T=function T(e){for(var t=0,n=I;t<n.length;t++){e=(0,n[t])(e)}return e},g=1,C=re.map(r,a?T:function(e){return!e||re.isSourceFile(e)&&e.isDeclarationFile?e:T(e)});return g=2,re.performance.mark("afterTransform"),re.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:C,substituteNode:function(e,t){return re.Debug.assert(g<3,"Cannot substitute a node after the result is disposed."),t&&B(t)&&_(e,t)||t},emitNodeWithNotification:function(e,t,n){re.Debug.assert(g<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(x(t)?h(e,t,n):n(e,t))},dispose:function(){if(g<3){for(var e=0,t=r;e<t.length;e++){var n=t[e];re.disposeEmitNodes(re.getSourceFileOfNode(re.getParseTreeNode(n)))}o=undefined,l=undefined,s=undefined,d=undefined,_=undefined,h=undefined,c=undefined,g=3}},diagnostics:m};function B(e){return 0!=(1&u[e.kind])&&0==(4&re.getEmitFlags(e))}function x(e){return 0!=(2&u[e.kind])||0!=(2&re.getEmitFlags(e))}},Mn=rg=rg||{},(oe=[])[1024]=["{","}"],oe[2048]=["(",")"],oe[4096]=["<",">"],oe[8192]=["[","]"],et=oe,tt={pos:-1,end:-1},Mn.isBuildInfoFile=function(e){return Mn.fileExtensionIs(e,".tsbuildinfo")},Mn.forEachEmittedFile=oc,Mn.getOutputPathForBuildInfo=sc,Mn.getOutputPathsForBundle=cc,Mn.getOutputPathsFor=uc,Mn.getOutputExtension=dc,Mn.getOutputDeclarationFileName=fc,Mn.getAllProjectOutputs=function(e,t){var n,r=function r(e){return e&&(n=n||[]).push(e)};if(e.options.outFile||e.options.out){var i=cc(e.options,!1),a=i.jsFilePath,o=i.sourceMapFilePath,s=i.declarationFilePath,c=i.declarationMapPath,u=i.buildInfoPath;r(a),r(o),r(s),r(c),r(u)}else{for(var l=0,d=e.fileNames;l<d.length;l++){var p,f,_=d[l];Mn.fileExtensionIs(_,".d.ts")||(r(p=_c(_,e,t)),Mn.fileExtensionIs(_,".json")||(e.options.sourceMap&&r(p+".map"),Mn.getEmitDeclarations(e.options)&&Mn.hasTSFileExtension(_)&&(r(f=fc(_,e,t)),e.options.declarationMap&&r(f+".map"))))}r(sc(e.options))}return n||Mn.emptyArray},Mn.getFirstProjectOutput=function(e,t){if(e.options.outFile||e.options.out){var n=cc(e.options,!1).jsFilePath;return Mn.Debug.assertDefined(n,"project "+e.options.configFilePath+" expected to have at least one output")}for(var r=0,i=e.fileNames;r<i.length;r++){var a=i[r];if(!Mn.fileExtensionIs(a,".d.ts"))if(n=_c(a,e,t))return n}var o=sc(e.options);return o||Mn.Debug.fail("project "+e.options.configFilePath+" expected to have at least one output")},Mn.emitFiles=hc,Mn.getBuildInfoText=gc,Mn.getBuildInfo=mc,Mn.notImplementedResolver={hasGlobalName:Mn.notImplemented,getReferencedExportContainer:Mn.notImplemented,getReferencedImportDeclaration:Mn.notImplemented,getReferencedDeclarationWithCollidingName:Mn.notImplemented,isDeclarationWithCollidingName:Mn.notImplemented,isValueAliasDeclaration:Mn.notImplemented,isReferencedAliasDeclaration:Mn.notImplemented,isTopLevelValueImportEqualsWithEntityName:Mn.notImplemented,getNodeCheckFlags:Mn.notImplemented,isDeclarationVisible:Mn.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:Mn.notImplemented,isImplementationOfOverload:Mn.notImplemented,isRequiredInitializedParameter:Mn.notImplemented,isOptionalUninitializedParameterProperty:Mn.notImplemented,isExpandoFunctionDeclaration:Mn.notImplemented,getPropertiesOfContainerFunction:Mn.notImplemented,createTypeOfDeclaration:Mn.notImplemented,createReturnTypeOfSignatureDeclaration:Mn.notImplemented,createTypeOfExpression:Mn.notImplemented,createLiteralConstValue:Mn.notImplemented,isSymbolAccessible:Mn.notImplemented,isEntityNameVisible:Mn.notImplemented,getConstantValue:Mn.notImplemented,getReferencedValueDeclaration:Mn.notImplemented,getTypeReferenceSerializationKind:Mn.notImplemented,isOptionalParameter:Mn.notImplemented,moduleExportsSomeValue:Mn.notImplemented,isArgumentsLocalBinding:Mn.notImplemented,getExternalModuleFileFromDeclaration:Mn.notImplemented,getTypeReferenceDirectivesForEntityName:Mn.notImplemented,getTypeReferenceDirectivesForSymbol:Mn.notImplemented,isLiteralConstDeclaration:Mn.notImplemented,getJsxFactoryEntity:Mn.notImplemented,getAllAccessorDeclarations:Mn.notImplemented,getSymbolOfExternalModuleSpecifier:Mn.notImplemented,isBindingCapturedByNode:Mn.notImplemented},Mn.emitUsingBuildInfo=function(e,t,n){var r=cc(e.options,!1),c=r.buildInfoPath,u=r.jsFilePath,l=r.sourceMapFilePath,d=r.declarationFilePath,p=r.declarationMapPath,i=t.readFile(Mn.Debug.assertDefined(c));if(!i)return c;var f=t.readFile(Mn.Debug.assertDefined(u));if(!f)return u;var _=l&&t.readFile(l);if(l&&!_||e.options.inlineSourceMap)return l||"inline sourcemap decoding";var h=d&&t.readFile(d);if(d&&!h)return d;var g=p&&t.readFile(p);if(p&&!g||e.options.inlineSourceMap)return p||"inline sourcemap decoding";var m=mc(i);if(!m.bundle||!m.bundle.js||h&&!m.bundle.dts)return c;var a,o,s,y=Mn.createInputFiles(f,h,l,_,p,g,u,d,c,m,!0),b=[],v=Mn.createPrependNodes(e.projectReferences,n,function(e){return t.readFile(e)}),E=(a=m.bundle,o=a.sourceFiles.map(function(e){var t=Mn.createNode(285,0,0);return t.fileName=e,t.text="",t.statements=Mn.createNodeArray(),t}),s=Mn.Debug.assertDefined(a.js),Mn.forEach(s.sources&&s.sources.prologues,function(e){var t=o[e.file];t.text=e.text,t.end=e.text.length,t.statements=Mn.createNodeArray(e.directives.map(function(e){var t=Mn.createNode(222,e.pos,e.end);return t.expression=Mn.createNode(10,e.expression.pos,e.expression.end),t.expression.text=e.expression.text,t}))}),o),I={getPrependNodes:Mn.memoize(function(){return v.concat([y])}),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:function(){return m.bundle.commonSourceDirectory},getCompilerOptions:function(){return e.options},getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.getNewLine()},getSourceFile:Mn.returnUndefined,getSourceFileByPath:Mn.returnUndefined,getSourceFiles:function(){return E},getLibFileFromReference:Mn.notImplemented,isSourceFileFromExternalLibrary:Mn.returnFalse,getResolvedProjectReferenceToRedirect:Mn.returnUndefined,writeFile:function(e,t,n){switch(e){case u:if(f===t)return;break;case l:if(_===t)return;break;case c:var r=mc(t);r.program=m.program;var i=m.bundle,a=i.js,o=i.dts,s=i.sourceFiles;return r.bundle.js.sources=a.sources,o&&(r.bundle.dts.sources=o.sources),r.bundle.sourceFiles=s,void b.push({name:e,text:gc(r),writeByteOrderMark:n});case d:if(h===t)return;break;case p:if(g===t)return;break;default:Mn.Debug.fail("Unexpected path: "+e)}b.push({name:e,text:t,writeByteOrderMark:n})},isEmitBlocked:Mn.returnFalse,readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},directoryExists:t.directoryExists&&function(e){return t.directoryExists(e)},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames()},getProgramBuildInfo:Mn.returnUndefined};return hc(Mn.notImplementedResolver,I,undefined,Mn.getTransformers(e.options),!1),b},(se={})[se.Notification=0]="Notification",se[se.Substitution=1]="Substitution",se[se.Comments=2]="Comments",se[se.SourceMaps=3]="SourceMaps",se[se.Emit=4]="Emit",Mn.createPrinter=yc,(ce={})[ce.Auto=0]="Auto",ce[ce.CountMask=268435455]="CountMask",ce[ce._i=268435456]="_i",(ue=rg=rg||{}).createCachedDirectoryStructureHost=function(s,c,u){if(!s.getDirectories||!s.readDirectory)return undefined;var l=ue.createMap(),n=ue.createGetCanonicalFileName(u);return{useCaseSensitiveFileNames:u,fileExists:function(e){var t=a(d(e));return t&&o(t.files,f(e))||s.fileExists(e)},readFile:function(e,t){return s.readFile(e,t)},directoryExists:s.directoryExists&&function(e){var t=d(e);return l.has(ue.ensureTrailingDirectorySeparator(t))||s.directoryExists(e)},getDirectories:function(e){var t=d(e),n=_(e,t);if(n)return n.directories.slice();return s.getDirectories(e)},readDirectory:function(e,t,n,r,i){var a=d(e),o=_(e,a);if(o)return ue.matchFiles(e,t,n,r,u,c,i,function(e){var t=d(e);return t!==a?_(e,t)||ue.emptyFileSystemEntries:o},h);return s.readDirectory(e,t,n,r,i)},createDirectory:s.createDirectory&&function(e){var t=a(d(e)),n=f(e);t&&i(t.directories,n,!0);s.createDirectory(e)},writeFile:s.writeFile&&function(e,t,n){var r=a(d(e));r&&g(r,f(e),!0);return s.writeFile(e,t,n)},addOrDeleteFileOrDirectory:function(e,t){if(p(t))return m(),undefined;var n=a(t);if(!n)return undefined;if(!s.directoryExists)return m(),undefined;var r=f(e),i={fileExists:s.fileExists(t),directoryExists:s.directoryExists(t)};i.directoryExists||o(n.directories,r)?m():g(n,r,i.fileExists);return i},addOrDeleteFile:function(e,t,n){if(n===ue.FileWatcherEventKind.Changed)return;var r=a(t);r&&g(r,f(e),n===ue.FileWatcherEventKind.Created)},clearCache:m,realpath:s.realpath&&h};function d(e){return ue.toPath(e,c,n)}function p(e){return l.get(ue.ensureTrailingDirectorySeparator(e))}function a(e){return p(ue.getDirectoryPath(e))}function f(e){return ue.getBaseFileName(ue.normalizePath(e))}function _(e,t){var n,r,i,a=p(t=ue.ensureTrailingDirectorySeparator(t));if(a)return a;try{return n=e,r=t,i={files:ue.map(s.readDirectory(n,undefined,undefined,["*.*"]),f)||[],directories:s.getDirectories(n)||[]},l.set(ue.ensureTrailingDirectorySeparator(r),i),i}catch(o){return ue.Debug.assert(!l.has(ue.ensureTrailingDirectorySeparator(t))),undefined}}function r(e,t){return n(e)===n(t)}function o(e,t){return ue.some(e,function(e){return r(e,t)})}function i(e,t,n){if(o(e,t)){if(!n)return ue.filterMutate(e,function(e){return!r(e,t)})}else if(n)return e.push(t)}function h(e){return s.realpath?s.realpath(e):e}function g(e,t,n){i(e.files,t,n)}function m(){l.clear()}},(le=ue.ConfigFileProgramReloadLevel||(ue.ConfigFileProgramReloadLevel={}))[le.None=0]="None",le[le.Partial=1]="Partial",le[le.Full=2]="Full",ue.updateMissingFilePathsWatch=function(e,t,n){var r=e.getMissingFilePaths(),i=ue.arrayToSet(r);ue.mutateMap(t,i,{createNewValue:n,onDeleteValue:ue.closeFileWatcher})},ue.updateWatchingWildcardDirectories=function(r,e,n){function i(e,t){return{watcher:n(e,t),flags:t}}ue.mutateMap(r,e,{createNewValue:i,onDeleteValue:xc,onExistingValue:function(e,t,n){if(e.flags===t)return;e.watcher.close(),r.set(n,i(n,t))}})},ue.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},(pe=de=ue.WatchLogLevel||(ue.WatchLogLevel={}))[pe.None=0]="None",pe[pe.TriggerOnly=1]="TriggerOnly",pe[pe.Verbose=2]="Verbose",ue.getWatchFactory=function(e,t,n){return c=t,u=n,d=vc,p=Ec(r=e,l=bc),f=r===de.None?s:p,_=Ec(r,d),{watchFile:function bc(t,n,r,i,a,o){return p(t,n,r,i,undefined,a,o,l,c,"FileWatcher",u)},watchFilePath:function s(e,t,n,r,i,a,o){return f(e,t,n,r,i,a,o,l,c,"FileWatcher",u)},watchDirectory:function vc(t,n,r,i,a,o){return _(t,n,r,i,undefined,a,o,d,c,"DirectoryWatcher",u)}};function s(e,t,n,r,i){return l(e,t,function(e,t){return n(e,t,i)},r)}var r,c,u,l,d,p,f,_},ue.closeFileWatcherOf=xc,function(It){var f,e,Tt=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function Ct(e,t){var n=It.getDirectoryPath(t),r=It.isRootedDiskPath(e)?e:It.combinePaths(n,e);return It.normalizePath(r)}function Bt(e,i,a){var o;return It.forEach(e,function(e){var t=It.getNormalizedPathComponents(e,i);if(t.pop(),o){for(var n=Math.min(o.length,t.length),r=0;r<n;r++)if(a(o[r])!==a(t[r])){if(0===r)return!0;o.length=r;break}t.length<o.length&&(o.length=t.length)}else o=t})?"":o?It.getPathFromPathComponents(o):i}function xt(e,t){return n(e,t)}function n(o,a,s){void 0===s&&(s=It.sys);var c,t=It.createMap(),e=It.createGetCanonicalFileName(s.useCaseSensitiveFileNames);function u(e){return t.has(e)||s.directoryExists(e)&&(t.set(e,!0),1)}function n(){return It.getDirectoryPath(It.normalizePath(s.getExecutingFilePath()))}var r=It.getNewLineCharacter(o,function(){return s.newLine}),i=s.realpath&&function(e){return s.realpath(e)},l={getSourceFile:function(e,t,n){var r;try{It.performance.mark("beforeIORead"),r=l.readFile(e),It.performance.mark("afterIORead"),It.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(i){n&&n(i.message),r=""}return r!==undefined?It.createSourceFile(e,r,t,a):undefined},getDefaultLibLocation:n,getDefaultLibFileName:function(e){return It.combinePaths(n(),It.getDefaultLibFileName(e))},writeFile:function(e,t,n,r){try{It.performance.mark("beforeIOWrite"),function i(e){e.length>It.getRootLength(e)&&!u(e)&&(i(It.getDirectoryPath(e)),l.createDirectory?l.createDirectory(e):s.createDirectory(e))}(It.getDirectoryPath(It.normalizePath(e))),It.isWatchSet(o)&&s.createHash&&s.getModifiedTime?function(e,t,n){c=c||It.createMap();var r=s.createHash(t),i=s.getModifiedTime(e);if(i){var a=c.get(e);if(a&&a.byteOrderMark===n&&a.hash===r&&a.mtime.getTime()===i.getTime())return}s.writeFile(e,t,n);var o=s.getModifiedTime(e)||It.missingFileModifiedTime;c.set(e,{hash:r,byteOrderMark:n,mtime:o})}(e,t,n):s.writeFile(e,t,n),It.performance.mark("afterIOWrite"),It.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(a){r&&r(a.message)}},getCurrentDirectory:It.memoize(function(){return s.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return s.useCaseSensitiveFileNames},getCanonicalFileName:e,getNewLine:function(){return r},fileExists:function(e){return s.fileExists(e)},readFile:function(e){return s.readFile(e)},trace:function(e){return s.write(e+r)},directoryExists:function u(e){return s.directoryExists(e)},getEnvironmentVariable:function(e){return s.getEnvironmentVariable?s.getEnvironmentVariable(e):""},getDirectories:function(e){return s.getDirectories(e)},realpath:i,readDirectory:function(e,t,n,r,i){return s.readDirectory(e,t,n,r,i)},createDirectory:function(e){return s.createDirectory(e)},createHash:It.maybeBind(s,s.createHash)};return l}function a(e,t){var n=It.diagnosticCategoryName(e)+" TS"+e.code+": "+m(e.messageText,t.getNewLine())+t.getNewLine();if(e.file){var r=It.getLineAndCharacterOfPosition(e.file,e.start),i=r.line,a=r.character,o=e.file.fileName;return It.convertToRelativePath(o,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)})+"("+(i+1)+","+(a+1)+"): "+n}return n}It.findConfigFile=function(e,n,r){return void 0===r&&(r="tsconfig.json"),It.forEachAncestorDirectory(e,function(e){var t=It.combinePaths(e,r);return n(t)?t:undefined})},It.resolveTripleslashReference=Ct,It.computeCommonSourceDirectoryOfFilenames=Bt,It.createCompilerHost=xt,It.createCompilerHostWorker=n,It.changeCompilerHostLikeToUseCache=function(c,u,s){var r=c.readFile,i=c.fileExists,a=c.directoryExists,n=c.createDirectory,l=c.writeFile,d=It.createMap(),p=It.createMap(),o=It.createMap(),f=It.createMap(),_=function _(e){var t=u(e),n=d.get(t);return n!==undefined?!1!==n?n:undefined:h(t,e)},h=function h(e,t){var n=r.call(c,t);return d.set(e,n!==undefined&&n),n};c.readFile=function(e){var t=u(e),n=d.get(t);return n!==undefined?!1!==n?n:undefined:It.fileExtensionIs(e,".json")||It.isBuildInfoFile(e)?h(t,e):r.call(c,e)};var g=s?function(e,t,n,r){var i=u(e),a=f.get(i);if(a)return a;var o=s(e,t,n,r);return o&&(It.isDeclarationFileName(e)||It.fileExtensionIs(e,".json"))&&f.set(i,o),o}:undefined;return c.fileExists=function(e){var t=u(e),n=p.get(t);if(n!==undefined)return n;var r=i.call(c,e);return p.set(t,!!r),r},l&&(c.writeFile=function(e,t,n,r,i){var a=u(e);p["delete"](a);var o,s=d.get(a);s!==undefined&&s!==t?(d["delete"](a),f["delete"](a)):!g||(o=f.get(a))&&o.text!==t&&f["delete"](a),l.call(c,e,t,n,r,i)}),a&&n&&(c.directoryExists=function(e){var t=u(e),n=o.get(t);if(n!==undefined)return n;var r=a.call(c,e);return o.set(t,!!r),r},c.createDirectory=function(e){var t=u(e);o["delete"](t),n.call(c,e)}),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:n,originalWriteFile:l,getSourceFileWithCache:g,readFileWithCache:_}},It.getPreEmitDiagnostics=function(e,t,n){var r=e.getConfigFileParsingDiagnostics().concat(e.getOptionsDiagnostics(n),e.getSyntacticDiagnostics(t,n),e.getGlobalDiagnostics(n),e.getSemanticDiagnostics(t,n));return It.getEmitDeclarations(e.getCompilerOptions())&&It.addRange(r,e.getDeclarationDiagnostics(t,n)),It.sortAndDeduplicateDiagnostics(r)},It.formatDiagnostics=function(e,t){for(var n="",r=0,i=e;r<i.length;r++){n+=a(i[r],t)}return n},It.formatDiagnostic=a,(e=f=It.ForegroundColorEscapeSequences||(It.ForegroundColorEscapeSequences={})).Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="";var E="",I=" ",T="",C="...";function _(e){switch(e){case It.DiagnosticCategory.Error:return f.Red;case It.DiagnosticCategory.Warning:return f.Yellow;case It.DiagnosticCategory.Suggestion:return It.Debug.fail("Should never get an Info diagnostic on the command line.");case It.DiagnosticCategory.Message:return f.Blue}}function B(e,t){return t+e+T}function x(e,t){for(;e.length<t;)e=" "+e;return e}function h(e,t,n,r,i,a){var o=It.getLineAndCharacterOfPosition(e,t),s=o.line,c=o.character,u=It.getLineAndCharacterOfPosition(e,t+n),l=u.line,d=u.character,p=It.getLineAndCharacterOfPosition(e,e.text.length).line,f=4<=l-s,_=(l+1+"").length;f&&(_=Math.max(C.length,_));for(var h="",g=s;g<=l;g++){h+=a.getNewLine(),f&&s+1<g&&g<l-1&&(h+=r+B(x(C,_),E)+I+a.getNewLine(),g=l-1);var m,y=It.getPositionOfLineAndCharacter(e,g,0),b=g<p?It.getPositionOfLineAndCharacter(e,g+1,0):e.text.length,v=e.text.slice(y,b);v=(v=v.replace(/\s+$/g,"")).replace("\t"," "),h+=r+B(x(g+1+"",_),E)+I,h+=v+a.getNewLine(),h+=r+B(x("",_),E)+I,h+=i,g===s?(m=g===l?d:undefined,h+=v.slice(0,c).replace(/\S/g," "),h+=v.slice(c,m).replace(/./g,"~")):h+=g===l?v.slice(0,d).replace(/./g,"~"):v.replace(/./g,"~"),h+=T}return h}function g(e,t,n,r){void 0===r&&(r=B);var i=It.getLineAndCharacterOfPosition(e,t),a=i.line,o=i.character,s="";return s+=r(n?It.convertToRelativePath(e.fileName,n.getCurrentDirectory(),function(e){return n.getCanonicalFileName(e)}):e.fileName,f.Cyan),s+=":",s+=r(""+(a+1),f.Yellow),s+=":",s+=r(""+(o+1),f.Yellow)}function m(e,t){if(It.isString(e))return e;for(var n=e,r="",i=0;n;){if(i){r+=t;for(var a=0;a<i;a++)r+=" "}r+=n.messageText,i++,n=n.next}return r}function St(e,t,n,r){if(0===e.length)return[];for(var i=[],a=It.createMap(),o=0,s=e;o<s.length;o++){var c=s[o],u=void 0;a.has(c)?u=a.get(c):a.set(c,u=r(c,t,n)),i.push(u)}return i}function Nt(t,a){return void 0===a&&(a=t),{fileExists:function(e){return a.fileExists(e)},readDirectory:function(e,t,n,r,i){return It.Debug.assertDefined(a.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),a.readDirectory(e,t,n,r,i)},readFile:function(e){return a.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||It.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:undefined}}function Dt(e,t,n){if(!e)return It.emptyArray;for(var r,i=0;i<e.length;i++){var a=e[i],o=t(a,i);if(a.prepend&&o&&o.options){if(!(o.options.outFile||o.options.out))continue;var s=It.getOutputPathsForBundle(o.options,!0),c=s.jsFilePath,u=s.sourceMapFilePath,l=s.declarationFilePath,d=s.declarationMapPath,p=s.buildInfoPath,f=It.createInputFiles(n,c,u,l,d,p);(r=r||[]).push(f)}}return r||It.emptyArray}function kt(e,t){var n=t||e;return It.resolveConfigFileProjectName(n.path)}function At(e){return e.declaration?"declaration":"composite"}function wt(e,t){switch(t.extension){case".ts":case".d.ts":return undefined;case".tsx":return n();case".jsx":return n()||r();case".js":return r();case".json":return e.resolveJsonModule?undefined:It.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return e.jsx?undefined:It.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function r(){return e.allowJs||!It.getStrictOptionValue(e,"noImplicitAny")?undefined:It.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function Vt(e){for(var t=e.imports,n=e.moduleAugmentations,r=t.map(function(e){return e.text}),i=0,a=n;i<a.length;i++){var o=a[i];10===o.kind&&r.push(o.text)}return r}It.formatColorAndReset=B,It.formatLocation=g,It.formatDiagnosticsWithColorAndContext=function(e,t){for(var n="",r=0,i=e;r<i.length;r++){var a=i[r];if(a.file&&(n+=g(u=a.file,l=a.start,t),n+=" - "),n+=B(It.diagnosticCategoryName(a),_(a.category)),n+=B(" TS"+a.code+": ",f.Grey),n+=m(a.messageText,t.getNewLine()),a.file&&(n+=t.getNewLine(),n+=h(a.file,a.start,a.length,"",_(a.category),t),a.relatedInformation)){n+=t.getNewLine();for(var o=0,s=a.relatedInformation;o<s.length;o++){var c=s[o],u=c.file,l=c.start,d=c.length,p=c.messageText;u&&(n+=t.getNewLine(),n+=" "+g(u,l,t),n+=h(u,l,d," ",f.Cyan,t)),n+=t.getNewLine(),n+=" "+m(p,t.getNewLine())}}n+=t.getNewLine()}return n},It.flattenDiagnosticMessageText=m,It.loadWithLocalCache=St,It.isProgramUptoDate=function(i,e,t,n,a,r,o,s){if(!i||o)return!1;if(i.getRootFileNames().length!==e.length)return!1;var c;if(!It.arrayIsEqualTo(i.getProjectReferences(),s,function(e,t,n){return!!It.projectReferenceIsEqualTo(e,t)&&function r(n,e){if(n)return!!It.contains(c,n)||!!l(n.sourceFile)&&((c=c||[]).push(n),!It.forEach(n.references,function(e,t){return!r(e,n.commandLine.projectReferences[t])}));return!a(kt(e))}(i.getResolvedProjectReferences()[n],e)}))return!1;if(i.getSourceFiles().some(function(e){return!l(e)||r(e.path)}))return!1;if(i.getMissingFilePaths().some(a))return!1;var u=i.getCompilerOptions();return!!It.compareDataObjects(u,t)&&(!u.configFile||!t.configFile||u.configFile.text===t.configFile.text);function l(e){return e.version===n(e.resolvedPath)}},It.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?e.options.configFile.parseDiagnostics.concat(e.errors):e.errors},It.createProgram=function(e,t,n,r,i){var a,N,D,P,o,s,c,u,l=It.isArray(e)?{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}:e,L=l.rootNames,M=l.options,d=l.configFileParsingDiagnostics,F=l.projectReferences,O=l.oldProgram,R=It.createMap(),p={},f={},H=It.createMap(),j=It.createDiagnosticCollection(),k="number"==typeof M.maxNodeModuleJsDepth?M.maxNodeModuleJsDepth:0,A=0,w=It.createMap(),W=It.createMap();It.performance.mark("beforeProgram");var _,h,G,g,Y,m,J=l.host||xt(M),y=Nt(J),V=M.noLib,b=It.memoize(function(){return J.getDefaultLibFileName(M)}),v=J.getDefaultLibLocation?J.getDefaultLibLocation():It.getDirectoryPath(b()),E=It.createDiagnosticCollection(),z=J.getCurrentDirectory(),I=It.getSupportedExtensions(M),T=It.getSuppoertedExtensionsWithJsonIfResolveJsonModule(M,I),C=It.createMap(),U=J.hasInvalidatedResolution||It.returnFalse;G=J.resolveModuleNames?function G(e,t,n,r){return J.resolveModuleNames(It.Debug.assertEachDefined(e),t,n,r).map(function(e){if(!e||e.extension!==undefined)return e;var t=It.clone(e);return t.extension=It.extensionFromPath(e.resolvedFileName),t})}:(h=It.createModuleResolutionCache(z,function(e){return J.getCanonicalFileName(e)},M),g=function g(e,t,n){return It.resolveModuleName(e,t,M,J,h,n).resolvedModule},function G(e,t,n,r){return St(It.Debug.assertEachDefined(e),t,r,g)}),Y=J.resolveTypeReferenceDirectives?function Y(e,t,n){return J.resolveTypeReferenceDirectives(It.Debug.assertEachDefined(e),t,n)}:(m=function m(e,t,n){return It.resolveTypeReferenceDirective(e,t,M,J,n).resolvedTypeReferenceDirective},function Y(e,t,n){return St(It.Debug.assertEachDefined(e),t,n,m)});var K,Z,B,x,X=It.createMap(),q=It.createMap(),Q=It.createMultiMap(),$=It.createMap(),ee=J.useCaseSensitiveFileNames()?It.createMap():undefined,te=function(e,t){if(!e)return!1;var n=e.getCompilerOptions();return!!It.sourceFileAffectingCompilerOptions.some(function(e){return!It.isJsonEqual(It.getCompilerOptionValue(n,e),It.getCompilerOptionValue(t,e))})}(O,M),S=function(){if(!O)return 0;var e=O.getCompilerOptions();if(It.changesAffectModuleResolution(e,M))return O.structureIsReused=0;It.Debug.assert(!(3&O.structureIsReused));var t=O.getRootFileNames();if(!It.arrayIsEqualTo(t,L))return O.structureIsReused=0;if(!It.arrayIsEqualTo(M.types,e.types))return O.structureIsReused=0;if(et(O.getProjectReferences(),O.getResolvedProjectReferences(),function(e,t,n){var r=lt((n?n.commandLine.projectReferences:F)[t]);return e?!r||r.sourceFile!==e.sourceFile:r!==undefined},function(e,t){var n=t?tt(t.sourceFile.path).commandLine.projectReferences:F;return!It.arrayIsEqualTo(e,n,It.projectReferenceIsEqualTo)}))return O.structureIsReused=0;F&&(Z=F.map(lt));var n=[],r=[];if(O.structureIsReused=2,O.getMissingFilePaths().some(function(e){return J.fileExists(e)}))return O.structureIsReused=0;var i=O.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}({});for(var a=It.createMap(),o=0,s=i;o<s.length;o++){var c=s[o];if(!(x=J.getSourceFileByPath?J.getSourceFileByPath(c.fileName,c.resolvedPath,M.target,undefined,te):J.getSourceFile(c.fileName,M.target,undefined,te)))return O.structureIsReused=0;It.Debug.assert(!x.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var u=void 0;if(c.redirectInfo){if(x!==c.redirectInfo.unredirected)return O.structureIsReused=0;u=!1,x=c}else if(O.redirectTargetsMap.has(c.path)){if(x!==c)return O.structureIsReused=0;u=!1}else u=x!==c;x.path=c.path,x.originalFileName=c.originalFileName,x.resolvedPath=c.resolvedPath,x.fileName=c.fileName;var l=O.sourceFileToPackageName.get(c.path);if(l!==undefined){var d=a.get(l),p=u?1:0;if(d!==undefined&&1==p||1===d)return O.structureIsReused=0;a.set(l,p)}if(u){if(!It.arrayIsEqualTo(c.libReferenceDirectives,x.libReferenceDirectives,je))return O.structureIsReused=0;c.hasNoDefaultLib!==x.hasNoDefaultLib&&(O.structureIsReused=1),It.arrayIsEqualTo(c.referencedFiles,x.referencedFiles,je)||(O.structureIsReused=1),Ge(x),It.arrayIsEqualTo(c.imports,x.imports,We)||(O.structureIsReused=1),It.arrayIsEqualTo(c.moduleAugmentations,x.moduleAugmentations,We)||(O.structureIsReused=1),(1572864&c.flags)!=(1572864&x.flags)&&(O.structureIsReused=1),It.arrayIsEqualTo(c.typeReferenceDirectives,x.typeReferenceDirectives,je)||(O.structureIsReused=1),r.push({oldFile:c,newFile:x})}else U(c.path)&&(O.structureIsReused=1,r.push({oldFile:c,newFile:x}));n.push(x)}if(2!==O.structureIsReused)return O.structureIsReused;for(var f=r.map(function(e){return e.oldFile}),_=0,h=i;_<h.length;_++){var g=h[_];if(!It.contains(f,g))for(var m=0,y=g.ambientModuleNames;m<y.length;m++){var b=y[m];R.set(b,g.fileName)}}for(var v=0,E=r;v<E.length;v++){var I,T,C,B=E[v],c=B.oldFile,x=B.newFile,S=It.getNormalizedAbsolutePath(x.originalFileName,z);G&&(I=Vt(x),C=Ie(I,S,x),It.hasChangesInResolutions(I,C,c.resolvedModules,It.moduleResolutionIsEqualTo)?(O.structureIsReused=1,x.resolvedModules=It.zipToMap(I,C)):x.resolvedModules=c.resolvedModules),Y&&(T=It.map(x.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),C=Y(T,S,Qe(x.originalFileName)),It.hasChangesInResolutions(T,C,c.resolvedTypeReferenceDirectiveNames,It.typeDirectiveIsEqualTo)?(O.structureIsReused=1,x.resolvedTypeReferenceDirectiveNames=It.zipToMap(T,C)):x.resolvedTypeReferenceDirectiveNames=c.resolvedTypeReferenceDirectiveNames)}if(2!==O.structureIsReused)return O.structureIsReused;if(J.hasChangedAutomaticTypeDirectiveNames)return O.structureIsReused=1;K=O.getMissingFilePaths();for(var N=0,D=n;N<D.length;N++){var k=(x=D[N]).path;Ke(x,k,x.resolvedPath),O.isSourceFileFromExternalLibrary(O.getSourceFileByPath(k))&&W.set(k,!0)}P=n,j=O.getFileProcessingDiagnostics();for(var A=0,w=r;A<w.length;A++){var V=w[A];j.reattachFileDiagnostics(V.newFile)}return H=O.getResolvedTypeReferenceDirectives(),q=O.sourceFileToPackageName,Q=O.redirectTargetsMap,O.structureIsReused=2}();if(2!==S){if(N=[],D=[],F&&(Z=Z||F.map(lt),L.length))for(var ne=0,re=Z;ne<re.length;ne++){var ie=re[ne];if(ie){var ae=ie.commandLine.options.outFile||ie.commandLine.options.out;if(ae)Je(It.changeExtension(ae,".d.ts"),!1,!1,undefined);else if(It.getEmitModuleKind(ie.commandLine.options)===It.ModuleKind.None)for(var oe=0,se=ie.commandLine.fileNames;oe<se.length;oe++){var ce=se[oe];!It.fileExtensionIs(ce,".d.ts")&&It.hasTSFileExtension(ce)&&Je(It.getOutputDeclarationFileName(ce,ie.commandLine,!J.useCaseSensitiveFileNames()),!1,!1,undefined)}}}It.forEach(L,function(e){return He(e,!1,!1)});var ue,le=L.length?It.getAutomaticTypeDirectiveNames(M,J):It.emptyArray;if(le.length)for(var de=M.configFilePath?It.getDirectoryPath(M.configFilePath):J.getCurrentDirectory(),pe=It.combinePaths(de,"__inferred type names__.ts"),fe=Y(le,pe),_e=0;_e<le.length;_e++)it(le[_e],fe[_e]);L.length&&!V&&(ue=b(),!M.lib&&ue?He(ue,!0,!1):It.forEach(M.lib,function(e){He(It.combinePaths(v,e),!0,!1)})),K=It.arrayFrom(It.mapDefinedIterator($.entries(),function(e){var t=e[0];return e[1]===undefined?t:undefined})),P=It.stableSort(N,function(e,t){return It.compareValues(be(e),be(t))}).concat(D),N=undefined,D=undefined}if(It.Debug.assert(!!K),O&&J.onReleaseOldSourceFile){for(var he=0,ge=O.getSourceFiles();he<ge.length;he++){var me=ge[he],ye=ke(me.resolvedPath);(te||!ye||me.resolvedPath===me.path&&ye.resolvedPath!==me.path)&&J.onReleaseOldSourceFile(me,O.getCompilerOptions(),!!ke(me.path))}O.forEachResolvedProjectReference(function(e,t){e&&!tt(t)&&J.onReleaseOldSourceFile(e.sourceFile,O.getCompilerOptions(),!1)})}return O=undefined,a={getRootFileNames:function(){return L},getSourceFile:De,getSourceFileByPath:ke,getSourceFiles:function(){return P},getMissingFilePaths:function(){return K},getCompilerOptions:function(){return M},getSyntacticDiagnostics:function(e,t){return Ae(e,we,t)},getOptionsDiagnostics:function(){return It.sortAndDeduplicateDiagnostics(It.concatenate(j.getGlobalDiagnostics(),It.concatenate(E.getGlobalDiagnostics(),function(){if(!M.configFile)return It.emptyArray;var t=E.getDiagnostics(M.configFile.fileName);return $e(function(e){e&&(t=It.concatenate(t,E.getDiagnostics(e.sourceFile.fileName)))}),t}())))},getGlobalDiagnostics:function(){return L.length?It.sortAndDeduplicateDiagnostics(xe().getGlobalDiagnostics().slice()):It.emptyArray},getSemanticDiagnostics:function(e,t){return Ae(e,Pe,t)},getSuggestionDiagnostics:function(e,t){return Ve(function(){return xe().getSuggestionDiagnostics(e,t)})},getDeclarationDiagnostics:function(e,t){var n=a.getCompilerOptions();return!e||n.out||n.outFile?Me(e,t):Ae(e,Re,t)},getTypeChecker:Se,getClassifiableNames:function(){if(!u){Se(),u=It.createUnderscoreEscapedMap();for(var e=0,t=P;e<t.length;e++){var n=t[e];It.copyEntries(n.classifiableNames,u)}}return u},getDiagnosticsProducingTypeChecker:xe,getCommonSourceDirectory:Ee,emit:function(e,t,n,r,i){return Ve(function(){return function(e,t,n,r,i,a){var o=[];if(!i){if(M.noEmit)return{diagnostics:o,sourceMaps:undefined,emittedFiles:undefined,emitSkipped:!0};if(M.noEmitOnError){var s=e.getOptionsDiagnostics(r).concat(e.getSyntacticDiagnostics(t,r),e.getGlobalDiagnostics(r),e.getSemanticDiagnostics(t,r));if(0===s.length&&It.getEmitDeclarations(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(undefined,r)),0<s.length||0<o.length)return{diagnostics:It.concatenate(s,o),sourceMaps:undefined,emittedFiles:undefined,emitSkipped:!0}}}var c=xe().getEmitResolver(M.outFile||M.out?undefined:t,r);It.performance.mark("beforeEmit");var u=It.emitFiles(c,Te(n),t,It.getTransformers(M,a,i),i);return It.performance.mark("afterEmit"),It.performance.measure("Emit","beforeEmit","afterEmit"),u}(a,e,t,n,r,i)})},getCurrentDirectory:function(){return z},getNodeCount:function(){return xe().getNodeCount()},getIdentifierCount:function(){return xe().getIdentifierCount()},getSymbolCount:function(){return xe().getSymbolCount()},getTypeCount:function(){return xe().getTypeCount()},getRelationCacheSizes:function(){return xe().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return j},getResolvedTypeReferenceDirectives:function(){return H},isSourceFileFromExternalLibrary:Be,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!M.noLib)return!1;var n=J.useCaseSensitiveFileNames()?It.equateStringsCaseSensitive:It.equateStringsCaseInsensitive;return M.lib?It.some(M.lib,function(e){return n(t.fileName,It.combinePaths(v,e))}):n(t.fileName,b())},dropDiagnosticsProducingTypeChecker:function(){s=undefined},getSourceFileFromReference:function(e,t){return Ye(Ct(t.fileName,e.fileName),function(e){return $.get(ve(e))||undefined})},getLibFileFromReference:function(e){var t=e.fileName.toLocaleLowerCase(),n=It.libMap.get(t);if(n)return De(It.combinePaths(v,n))},sourceFileToPackageName:q,redirectTargetsMap:Q,isEmittedFile:function(e){if(M.noEmit)return!1;var t=ve(e);if(ke(t))return!1;var n=M.outFile||M.out;if(n)return Et(t,n)||Et(t,It.removeFileExtension(n)+".d.ts");if(M.declarationDir&&It.containsPath(M.declarationDir,t,z,!J.useCaseSensitiveFileNames()))return!0;if(M.outDir)return It.containsPath(M.outDir,t,z,!J.useCaseSensitiveFileNames());if(It.fileExtensionIsOneOf(t,It.supportedJSExtensions)||It.fileExtensionIs(t,".d.ts")){var r=It.removeFileExtension(t);return!!ke(r+".ts")||!!ke(r+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return d||It.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){return h&&It.resolveModuleNameFromCache(e,t,h)},getProjectReferences:function(){return F},getResolvedProjectReferences:function(){return Z},getProjectReferenceRedirect:Ze,getResolvedProjectReferenceToRedirect:Qe,getResolvedProjectReferenceByPath:tt,forEachResolvedProjectReference:$e,emitBuildInfo:function(e){It.Debug.assert(!M.out&&!M.outFile),It.performance.mark("beforeEmit");var t=It.emitFiles(It.notImplementedResolver,Te(e),undefined,It.noTransformers,!1,!0);return It.performance.mark("afterEmit"),It.performance.measure("Emit","beforeEmit","afterEmit"),t}},function(){M.strictPropertyInitialization&&!It.getStrictOptionValue(M,"strictNullChecks")&&_t(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");M.isolatedModules&&(It.getEmitDeclarations(M)&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,At(M),"isolatedModules"),M.out&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),M.outFile&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"));M.inlineSourceMap&&(M.sourceMap&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),M.mapRoot&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));M.paths&&M.baseUrl===undefined&&_t(It.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths");M.composite&&(!1===M.declaration&&_t(It.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===M.incremental&&_t(It.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));M.tsBuildInfoFile?It.isIncrementalCompilation(M)||_t(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!M.incremental||M.outFile||M.out||M.configFilePath||E.add(It.createCompilerDiagnostic(It.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){var s=M.noEmit||M.suppressOutputPathCheck?undefined:It.getOutputPathForBuildInfo(M);et(F,Z,function(e,t,n){var r,i,a=(n?n.commandLine.projectReferences:F)[t],o=n&&n.sourceFile;e?((r=e.commandLine.options).composite||(n?n.commandLine.fileNames:L).length&&gt(o,t,It.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),a.prepend&&((i=r.outFile||r.out)?J.fileExists(i)||gt(o,t,It.Diagnostics.Output_file_0_from_project_1_does_not_exist,i,a.path):gt(o,t,It.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)),!n&&s&&s===It.getOutputPathForBuildInfo(r)&&(gt(o,t,It.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,s,a.path),C.set(ve(s),!0))):gt(o,t,It.Diagnostics.File_0_not_found,a.path)})}(),M.composite)for(var e=L.map(ve),t=0,n=P;t<n.length;t++){var r=n[t];It.sourceFileMayBeEmitted(r,M,Be,Qe)&&-1===e.indexOf(r.path)&&E.add(It.createCompilerDiagnostic(It.Diagnostics.File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern,r.fileName))}if(M.paths)for(var i in M.paths)if(It.hasProperty(M.paths,i))if(It.hasZeroOrOneAsteriskCharacter(i)||pt(!0,i,It.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i),It.isArray(M.paths[i])){var a=M.paths[i].length;0===a&&pt(!1,i,It.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,i);for(var o=0;o<a;o++){var s=M.paths[i][o],c=zb(s);"string"===c?It.hasZeroOrOneAsteriskCharacter(s)||dt(i,o,It.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,s,i):dt(i,o,It.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,s,i,c)}}else pt(!1,i,It.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,i);M.sourceMap||M.inlineSourceMap||(M.inlineSources&&_t(It.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),M.sourceRoot&&_t(It.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));M.out&&M.outFile&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile");!M.mapRoot||M.sourceMap||M.declarationMap||_t(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");M.declarationDir&&(It.getEmitDeclarations(M)||_t(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(M.out||M.outFile)&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",M.out?"out":"outFile"));M.declarationMap&&!It.getEmitDeclarations(M)&&_t(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");M.lib&&M.noLib&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib");M.noImplicitUseStrict&&It.getStrictOptionValue(M,"alwaysStrict")&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var u=M.target||0,l=M.outFile||M.out,d=It.find(P,function(e){return It.isExternalModule(e)&&!e.isDeclarationFile});{var p;M.isolatedModules?(M.module===It.ModuleKind.None&&u<2&&_t(It.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),(p=It.find(P,function(e){return!It.isExternalModule(e)&&!It.isSourceFileJS(e)&&!e.isDeclarationFile&&6!==e.scriptKind}))&&(f=It.getErrorSpanForNode(p,p),E.add(It.createFileDiagnostic(p,f.start,f.length,It.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided)))):d&&u<2&&M.module===It.ModuleKind.None&&(f=It.getErrorSpanForNode(d,d.externalModuleIndicator),E.add(It.createFileDiagnostic(d,f.start,f.length,It.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)))}{var f;l&&!M.emitDeclarationOnly&&(M.module&&M.module!==It.ModuleKind.AMD&&M.module!==It.ModuleKind.System?_t(It.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,M.out?"out":"outFile","module"):M.module===undefined&&d&&(f=It.getErrorSpanForNode(d,d.externalModuleIndicator),E.add(It.createFileDiagnostic(d,f.start,f.length,It.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,M.out?"out":"outFile"))))}M.resolveJsonModule&&(It.getEmitModuleResolutionKind(M)!==It.ModuleResolutionKind.NodeJs?_t(It.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):It.hasJsonModuleEmitEnabled(M)||_t(It.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));{var _;(M.outDir||M.sourceRoot||M.mapRoot)&&(_=Ee(),M.outDir&&""===_&&P.some(function(e){return 1<It.getRootLength(e.fileName)})&&_t(It.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir"))}!M.noEmit&&M.allowJs&&It.getEmitDeclarations(M)&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs",At(M));M.checkJs&&!M.allowJs&&E.add(It.createCompilerDiagnostic(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));M.emitDeclarationOnly&&(It.getEmitDeclarations(M)||_t(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),M.noEmit&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));M.emitDecoratorMetadata&&!M.experimentalDecorators&&_t(It.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");M.jsxFactory?(M.reactNamespace&&_t(It.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),It.parseIsolatedEntityName(M.jsxFactory,u)||ht("jsxFactory",It.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,M.jsxFactory)):M.reactNamespace&&!It.isIdentifierText(M.reactNamespace,u)&&ht("reactNamespace",It.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,M.reactNamespace);{var h,g;M.noEmit||M.suppressOutputPathCheck||(h=Te(),g=It.createMap(),It.forEachEmittedFile(h,function(e){M.emitDeclarationOnly||m(e.jsFilePath,g),m(e.declarationFilePath,g)}))}function m(e,t){var n,r,i;e&&(n=ve(e),$.has(n)&&(r=void 0,M.configFilePath||(r=It.chainDiagnosticMessages(undefined,It.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),r=It.chainDiagnosticMessages(r,It.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,e),vt(e,It.createCompilerDiagnosticFromMessageChain(r))),i=J.useCaseSensitiveFileNames()?n:n.toLocaleLowerCase(),t.has(i)?vt(e,It.createCompilerDiagnostic(It.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.set(i,!0))}}(),It.performance.mark("afterProgram"),It.performance.measure("Program","beforeProgram","afterProgram"),a;function be(e){if(It.containsPath(v,e.fileName,!1)){var t=It.getBaseFileName(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;var n=It.removeSuffix(It.removePrefix(t,"lib."),".d.ts"),r=It.libs.indexOf(n);if(-1!==r)return r+1}return It.libs.length+2}function ve(e){return It.toPath(e,z,st)}function Ee(){var e,t;return o===undefined&&(e=It.filter(P,function(e){return It.sourceFileMayBeEmitted(e,M,Be,Qe)}),M.rootDir&&ut(e,M.rootDir)?o=It.getNormalizedAbsolutePath(M.rootDir,z):M.composite&&M.configFilePath?ut(e,o=It.getDirectoryPath(It.normalizeSlashes(M.configFilePath))):(t=e,o=Bt(It.mapDefined(t,function(e){return e.isDeclarationFile?undefined:e.fileName}),z,st)),o&&o[o.length-1]!==It.directorySeparator&&(o+=It.directorySeparator)),o}function Ie(e,t,n){if(0===S&&!n.ambientModuleNames.length)return G(e,t,undefined,Qe(n.originalFileName));var r,i,a,o=O&&O.getSourceFile(t);if(o!==n&&n.resolvedModules){for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c],d=n.resolvedModules.get(l);s.push(d)}return s}for(var p={},f=0;f<e.length;f++){l=e[f];if(n===o&&!U(o.path)){var _=o&&o.resolvedModules.get(l);if(_){It.isTraceEnabled(M,J)&&It.trace(J,It.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,l,t),(i=i||new Array(e.length))[f]=_,(a=a||[]).push(l);continue}}var h=!1;It.contains(n.ambientModuleNames,l)?(h=!0,It.isTraceEnabled(M,J)&&It.trace(J,It.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,l,t)):h=function(e){var t=It.getResolvedModule(o,e),n=t&&O.getSourceFile(t.resolvedFileName);if(t&&n)return!1;var r=R.get(e);if(!r)return!1;It.isTraceEnabled(M,J)&&It.trace(J,It.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e,r);return!0}(l),h?(i=i||new Array(e.length))[f]=p:(r=r||[]).push(l)}var g=r&&r.length?G(r,t,a,Qe(n.originalFileName)):It.emptyArray;if(!i)return It.Debug.assert(g.length===e.length),g;for(var m=0,f=0;f<i.length;f++)i[f]?i[f]===p&&(i[f]=undefined):(i[f]=g[m],m++);return It.Debug.assert(m===g.length),i}function Te(e){return Qb({getPrependNodes:Ce,getCanonicalFileName:st,getCommonSourceDirectory:a.getCommonSourceDirectory,getCompilerOptions:a.getCompilerOptions,getCurrentDirectory:function(){return z},getNewLine:function(){return J.getNewLine()},getSourceFile:a.getSourceFile,getSourceFileByPath:a.getSourceFileByPath,getSourceFiles:a.getSourceFiles,getLibFileFromReference:a.getLibFileFromReference,isSourceFileFromExternalLibrary:Be,getResolvedProjectReferenceToRedirect:Qe,writeFile:e||function(e,t,n,r,i){return J.writeFile(e,t,n,r,i)},isEmitBlocked:Ne,readFile:function(e){return J.readFile(e)},fileExists:function(e){var t=ve(e);return!!ke(t)||!It.contains(K,t)&&J.fileExists(e)}},J.directoryExists?{directoryExists:function(e){return J.directoryExists(e)}}:{},{useCaseSensitiveFileNames:function(){return J.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return a.getProgramBuildInfo&&a.getProgramBuildInfo()}})}function Ce(){return Dt(F,function(e,t){return Z[t].commandLine},function(e){var t=ve(e),n=ke(t);return n?n.text:$.has(t)?undefined:J.readFile(t)})}function Be(e){return!!W.get(e.path)}function xe(){return s=s||It.createTypeChecker(a,!0)}function Se(){return c=c||It.createTypeChecker(a,!1)}function Ne(e){return C.has(ve(e))}function De(e){return ke(ve(e))}function ke(e){return $.get(e)||undefined}function Ae(e,t,n){return e?t(e,n):It.sortAndDeduplicateDiagnostics(It.flatMap(a.getSourceFiles(),function(e){return n&&n.throwIfCancellationRequested(),t(e,n)}))}function we(e){return It.isSourceFileJS(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=(d=e,Ve(function(){var o=[],s=d;return c(d),o;function c(e){switch(s.kind){case 152:case 155:if(s.questionToken===e)return void o.push(l(e,It.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 157:case 156:case 158:case 159:case 160:case 197:case 240:case 198:case 238:if(s.type===e)return void o.push(l(e,It.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(e.kind){case 249:return void o.push(l(e,It.Diagnostics.import_can_only_be_used_in_a_ts_file));case 255:if(e.isExportEquals)return void o.push(l(e,It.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 274:if(110===e.token)return void o.push(l(e,It.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 242:return void o.push(l(e,It.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 245:return void o.push(l(e,It.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 243:return void o.push(l(e,It.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 244:return void o.push(l(e,It.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 214:return void o.push(l(e,It.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 213:return void o.push(l(e.type,It.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 195:It.Debug.fail()}var t=s;s=e,It.forEachChild(e,c,n),s=t}function n(e){switch(s.decorators!==e||M.experimentalDecorators||o.push(l(s,It.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),s.kind){case 241:case 157:case 156:case 158:case 159:case 160:case 197:case 240:case 198:if(e===s.typeParameters)return void o.push(u(e,It.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 220:if(e===s.modifiers)return function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];switch(i.kind){case 78:if(t)continue;case 116:case 114:case 115:case 134:case 126:case 119:o.push(l(i,It.Diagnostics._0_can_only_be_used_in_a_ts_file,It.tokenToString(i.kind)))}}}(e,220===s.kind);break;case 155:if(e!==s.modifiers)break;for(var t=0,n=e;t<n.length;t++){var r=n[t];117!==r.kind&&o.push(l(r,It.Diagnostics._0_can_only_be_used_in_a_ts_file,It.tokenToString(r.kind)))}return;case 152:if(e===s.modifiers)return void o.push(u(e,It.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 192:case 193:case 212:case 262:case 263:if(e===s.typeArguments)return void o.push(u(e,It.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var i=0,a=e;i<a.length;i++)c(a[i])}function u(e,t,n,r,i){var a=e.pos;return It.createFileDiagnostic(d,a,e.end-a,t,n,r,i)}function l(e,t,n,r,i){return It.createDiagnosticForNodeInSourceFile(d,e,t,n,r,i)}}))),It.concatenate(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics;var d}function Ve(e){try{return e()}catch(t){throw t instanceof It.OperationCanceledException&&(c=undefined,s=undefined),t}}function Pe(e,t){return Oe(e,t,p,Le)}function Le(l,d){return Ve(function(){if(It.skipTypeChecking(l,M))return It.emptyArray;var e=xe();It.Debug.assert(!!l.bindDiagnostics);for(var t,n=It.isCheckJsEnabledForFile(l,M),r=3===l.scriptKind||4===l.scriptKind||5===l.scriptKind||n||7===l.scriptKind,i=0,a=[r?l.bindDiagnostics:It.emptyArray,r?e.getDiagnostics(l,d):It.emptyArray,j.getDiagnostics(l.fileName),E.getDiagnostics(l.fileName),n?l.jsDocDiagnostics:undefined];i<a.length;i++){var o=a[i];if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];!function(e){var t=e.file,n=e.start;if(t)for(var r=It.getLineStarts(t),i=It.computeLineAndCharacterOfPosition(r,n).line;0<i;){var a=t.text.slice(r[i-1],r[i]),o=Tt.exec(a);if(!o)return!0;if(o[3])return!1;i--}return!0}(u)||(t=It.append(t,u))}}return t})}function Me(e,t){return Oe(e,t,f,Fe)}function Fe(t,n){return Ve(function(){var e=xe().getEmitResolver(t,n);return It.getDeclarationDiagnostics(Te(It.noop),e,t)})}function Oe(e,t,n,r){var i=e?n.perFile&&n.perFile.get(e.path):n.allDiagnostics;if(i)return i;var a=r(e,t)||It.emptyArray;return e?(n.perFile||(n.perFile=It.createMap()),n.perFile.set(e.path,a)):n.allDiagnostics=a,a}function Re(e,t){return e.isDeclarationFile?[]:Me(e,t)}function He(e,t,n){Je(It.normalizePath(e),t,n,undefined)}function je(e,t){return e.fileName===t.fileName}function We(e,t){return 73===e.kind?73===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Ge(c){if(!c.imports){var u,l,d,e,t,a=It.isSourceFileJS(c),p=It.isExternalModule(c);M.importHelpers&&(M.isolatedModules||p)&&!c.isDeclarationFile&&(e=It.createLiteral(It.externalHelpersModuleNameText),t=It.createImportDeclaration(undefined,undefined,undefined,e),It.addEmitFlags(t,67108864),(e.parent=t).parent=c,u=[e]);for(var n=0,r=c.statements;n<r.length;n++){!function f(e,t){if(It.isAnyImportOrReExport(e)){var n=It.getExternalModuleName(e);!(n&&It.isStringLiteral(n)&&n.text)||t&&It.isExternalModuleNameRelative(n.text)||(u=It.append(u,n))}else if(It.isModuleDeclaration(e)&&It.isAmbientModule(e)&&(t||It.hasModifier(e,2)||c.isDeclarationFile)){var r=It.getTextOfIdentifierOrLiteral(e.name);if(p||t&&!It.isExternalModuleNameRelative(r))(l=l||[]).push(e.name);else if(!t){c.isDeclarationFile&&(d=d||[]).push(r);var i=e.body;if(i)for(var a=0,o=i.statements;a<o.length;a++){var s=o[a];f(s,!0)}}}}(r[n],!1)}return(524288&c.flags||a)&&function(e){var t=/import|require/g;for(;null!==t.exec(e.text);){var n=function(e,t){var n=e,r=function r(e){if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e};for(;;){var i=a&&It.hasJSDocNodes(n)&&It.forEach(n.jsDoc,r)||It.forEachChild(n,r);if(!i)return n;n=i}}(e,t.lastIndex);It.isRequireCall(n,!0)||It.isImportCall(n)&&1===n.arguments.length&&It.isStringLiteralLike(n.arguments[0])?u=It.append(u,n.arguments[0]):It.isLiteralImportTypeNode(n)&&(u=It.append(u,n.argument.literal))}}(c),c.imports=u||It.emptyArray,c.moduleAugmentations=l||It.emptyArray,void(c.ambientModuleNames=d||It.emptyArray)}}function Ye(t,n,e,r){if(It.hasExtension(t)){if(!M.allowNonTsExtensions&&!It.forEach(T,function(e){return It.fileExtensionIs(J.getCanonicalFileName(t),e)}))return e&&e(It.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+I.join("', '")+"'"),undefined;var i,a=n(t);return e&&(a?r&&J.getCanonicalFileName(t)===J.getCanonicalFileName(r.fileName)&&e(It.Diagnostics.A_file_cannot_have_a_reference_to_itself):(i=Ze(t))?e(It.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,i,t):e(It.Diagnostics.File_0_not_found,t)),a}var o=M.allowNonTsExtensions&&n(t);if(o)return o;if(e&&M.allowNonTsExtensions)return e(It.Diagnostics.File_0_not_found,t),undefined;var s=It.forEach(I,function(e){return n(t+e)});return e&&!s&&e(It.Diagnostics.File_0_not_found,t+".ts"),s}function Je(e,t,n,r,i,a,o){Ye(e,function(e){return Ue(e,ve(e),t,n,i,a,o,r)},function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];j.add(i!==undefined&&o!==undefined&&a!==undefined?It.createFileDiagnostic.apply(void 0,[i,a,o-a,e].concat(t)):It.createCompilerDiagnostic.apply(void 0,[e].concat(t)))},i)}function ze(e,t,n,r,i){n!==undefined&&r!==undefined&&i!==undefined?j.add(It.createFileDiagnostic(n,r,i-r,It.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,t)):j.add(It.createCompilerDiagnostic(It.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,t))}function Ue(t,e,n,r,i,a,o,s){var c=t;if($.has(e)){var u,l,d=$.get(e);return d&&M.forceConsistentCasingInFileNames&&(u=t,ve(l=d.fileName)!==ve(u)&&(u=Ze(t)||t),It.getNormalizedAbsolutePathWithoutRoot(l,z)!==It.getNormalizedAbsolutePathWithoutRoot(u,z)&&ze(u,l,i,a,o)),d&&W.get(d.path)&&0===A?(W.set(d.path,!1),M.noResolve||(nt(d,n),rt(d)),M.noLib||at(d),w.set(d.path,!1),ct(d)):d&&w.get(d.path)&&A<k&&(w.set(d.path,!1),ct(d)),d||undefined}if(i){var p=Xe(t);if(p){if(p.commandLine.options.outFile||p.commandLine.options.out)return undefined;var f=qe(p,t),_=ve(t=f)}}var h,g,m,y,b,v,E,I,T,C=J.getSourceFile(t,M.target,function(e){i!==undefined&&a!==undefined&&o!==undefined?j.add(It.createFileDiagnostic(i,a,o-a,It.Diagnostics.Cannot_read_file_0_Colon_1,t,e)):j.add(It.createCompilerDiagnostic(It.Diagnostics.Cannot_read_file_0_Colon_1,t,e))},te);if(s){var B=It.packageIdToString(s),x=X.get(B);if(x){var S=(h=x,g=C,y=e,b=ve(m=t),v=c,(E=Object.create(h)).fileName=m,E.path=y,E.resolvedPath=b,E.originalFileName=v,E.redirectInfo={redirectTarget:h,unredirected:g},W.set(y,0<A),Object.defineProperties(E,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),E);return Q.add(x.path,t),Ke(S,e,_),q.set(e,s.name),D.push(S),S}C&&(X.set(B,C),q.set(e,s.name))}return Ke(C,e,_),C&&(W.set(e,0<A),C.path=e,C.resolvedPath=ve(t),C.originalFileName=c,J.useCaseSensitiveFileNames()&&(I=e.toLowerCase(),(T=ee.get(I))?ze(t,T.fileName,i,a,o):ee.set(I,C)),V=V||C.hasNoDefaultLib&&!r,M.noResolve||(nt(C,n),rt(C)),M.noLib||at(C),ct(C),n?N.push(C):D.push(C)),C}function Ke(e,t,n){n?($.set(n,e),$.set(t,e||!1)):$.set(t,e)}function Ze(e){var t=Xe(e);return t&&qe(t,e)}function Xe(e){return Z&&Z.length&&!It.fileExtensionIs(e,".d.ts")&&It.fileExtensionIsOneOf(e,It.supportedTSExtensions)?Qe(e):undefined}function qe(e,t){var n=e.commandLine.options.outFile||e.commandLine.options.out;return n?It.changeExtension(n,".d.ts"):It.getOutputDeclarationFileName(t,e.commandLine,!J.useCaseSensitiveFileNames())}function Qe(e){x===undefined&&(x=It.createMap(),$e(function(e,t){e&&ve(M.configFilePath)!==t&&e.commandLine.fileNames.forEach(function(e){return x.set(ve(e),t)})}));var t=x.get(ve(e));return t&&tt(t)}function $e(i){return et(F,Z,function(e,t,n){var r=ve(kt((n?n.commandLine.projectReferences:F)[t]));return i(e,r)})}function et(e,t,n,r){var o;return function s(e,t,r,i,a){if(a){var n=a(e,r);if(n)return n}return It.forEach(t,function(e,t){if(It.contains(o,e))return undefined;var n=i(e,t,r);return n||(e?((o=o||[]).push(e),s(e.commandLine.projectReferences,e.references,e,i,a)):undefined)})}(e,t,undefined,n,r)}function tt(e){return B&&B.get(e)||undefined}function nt(t,n){It.forEach(t.referencedFiles,function(e){Je(Ct(e.fileName,t.originalFileName),n,!1,undefined,t,e.pos,e.end)})}function rt(e){var t=It.map(e.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(t)for(var n=Y(t,e.originalFileName,Qe(e.originalFileName)),r=0;r<t.length;r++){var i=e.typeReferenceDirectives[r],a=n[r],o=i.fileName.toLocaleLowerCase();It.setResolvedTypeReferenceDirective(e,o,a),it(o,a,e,i.pos,i.end)}}function it(e,t,n,r,i){var a,o=H.get(e);o&&o.primary||(a=!0,t?(t.isExternalLibraryImport&&A++,!t.primary&&o?(t.resolvedFileName!==o.resolvedFileName&&J.readFile(t.resolvedFileName)!==De(o.resolvedFileName).text&&j.add(ot(n,r,i,It.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,e,t.resolvedFileName,o.resolvedFileName)),a=!1):Je(t.resolvedFileName,!1,!1,t.packageId,n,r,i),t.isExternalLibraryImport&&A--):j.add(ot(n,r,i,It.Diagnostics.Cannot_find_type_definition_file_for_0,e)),a&&H.set(e,t))}function at(o){It.forEach(o.libReferenceDirectives,function(e){var t,n,r,i=e.fileName.toLocaleLowerCase(),a=It.libMap.get(i);a?He(It.combinePaths(v,a),!0,!0):(t=It.removeSuffix(It.removePrefix(i,"lib."),".d.ts"),r=(n=It.getSpellingSuggestion(t,It.libs,It.identity))?It.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:It.Diagnostics.Cannot_find_lib_definition_for_0,j.add(ot(o,e.pos,e.end,r,i,n)))})}function ot(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];return e===undefined||t===undefined||n===undefined?It.createCompilerDiagnostic.apply(void 0,[r].concat(i)):It.createFileDiagnostic.apply(void 0,[e,t,n-t,r].concat(i))}function st(e){return J.getCanonicalFileName(e)}function ct(e){if(Ge(e),e.imports.length||e.moduleAugmentations.length){var t=Vt(e),n=Ie(t,It.getNormalizedAbsolutePath(e.originalFileName,z),e);It.Debug.assert(n.length===t.length);for(var r=0;r<t.length;r++){var i,a,o,s,c,u,l=n[r];It.setResolvedModule(e,t[r],l),l&&(i=l.isExternalLibraryImport,a=!It.resolutionExtensionIsTSOrJson(l.extension),o=i&&a,s=l.resolvedFileName,i&&A++,c=o&&k<A,u=s&&!wt(M,l)&&!M.noResolve&&r<e.imports.length&&!c&&!(a&&!M.allowJs)&&(It.isInJSFile(e.imports[r])||!(2097152&e.imports[r].flags)),c?w.set(e.path,!0):u&&Ue(s,ve(s),!1,!1,e,It.skipTrivia(e.text,e.imports[r].pos),e.imports[r].end,l.packageId),i&&A--)}}else e.resolvedModules=undefined}function ut(e,t){for(var n=!0,r=J.getCanonicalFileName(It.getNormalizedAbsolutePath(t,z)),i=0,a=e;i<a.length;i++){var o=a[i];o.isDeclarationFile||0!==J.getCanonicalFileName(It.getNormalizedAbsolutePath(o.fileName,z)).indexOf(r)&&(E.add(It.createCompilerDiagnostic(It.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,o.fileName,t)),n=!1)}return n}function lt(e){B=B||It.createMap();var t,n=kt(e),r=ve(n),i=B.get(r);if(i!==undefined)return i||undefined;if(J.getParsedCommandLine){if(!(t=J.getParsedCommandLine(n)))return Ke(undefined,r,undefined),B.set(r,!1),undefined;a=It.Debug.assertDefined(t.options.configFile),It.Debug.assert(!a.path||a.path===r),Ke(a,r,undefined)}else{var a,o=It.getNormalizedAbsolutePath(It.getDirectoryPath(n),J.getCurrentDirectory());if(Ke(a=J.getSourceFile(n,100),r,undefined),a===undefined)return B.set(r,!1),undefined;t=It.parseJsonSourceFileConfigFileContent(a,y,o,undefined,n)}a.path=r,a.resolvedPath=r,a.originalFileName=n;var s={commandLine:t,sourceFile:a};return B.set(r,s),t.projectReferences&&(s.references=t.projectReferences.map(lt)),s}function dt(e,t,n,r,i,a){for(var o=!0,s=0,c=ft();s<c.length;s++){var u=c[s];if(It.isObjectLiteralExpression(u.initializer))for(var l=0,d=It.getPropertyAssignment(u.initializer,e);l<d.length;l++){var p=d[l].initializer;It.isArrayLiteralExpression(p)&&p.elements.length>t&&(E.add(It.createDiagnosticForNodeInSourceFile(M.configFile,p.elements[t],n,r,i,a)),o=!1)}}o&&E.add(It.createCompilerDiagnostic(n,r,i,a))}function pt(e,t,n,r){for(var i=!0,a=0,o=ft();a<o.length;a++){var s=o[a];It.isObjectLiteralExpression(s.initializer)&&bt(s.initializer,e,t,undefined,n,r)&&(i=!1)}i&&E.add(It.createCompilerDiagnostic(n,r))}function ft(){return e="paths",((t=yt())?It.getPropertyAssignment(t,e):undefined)||It.emptyArray;var e,t}function _t(e,t,n,r){mt(!0,t,n,e,t,n,r)}function ht(e,t,n){mt(!1,e,undefined,t,n)}function gt(e,t,n,r,i){var a=It.firstDefined(It.getTsConfigPropArray(e||M.configFile,"references"),function(e){return It.isArrayLiteralExpression(e.initializer)?e.initializer:undefined});a&&a.elements.length>t?E.add(It.createDiagnosticForNodeInSourceFile(e||M.configFile,a.elements[t],n,r,i)):E.add(It.createCompilerDiagnostic(n,r,i))}function mt(e,t,n,r,i,a,o){var s=yt();s&&bt(s,e,t,n,r,i,a,o)||E.add(It.createCompilerDiagnostic(r,i,a,o))}function yt(){if(_===undefined){_=null;var e=It.getTsConfigObjectLiteralExpression(M.configFile);if(e)for(var t=0,n=It.getPropertyAssignment(e,"compilerOptions");t<n.length;t++){var r=n[t];if(It.isObjectLiteralExpression(r.initializer)){_=r.initializer;break}}}return _}function bt(e,t,n,r,i,a,o,s){for(var c=It.getPropertyAssignment(e,n,r),u=0,l=c;u<l.length;u++){var d=l[u];E.add(It.createDiagnosticForNodeInSourceFile(M.configFile,t?d.name:d.initializer,i,a,o,s))}return c.length}function vt(e,t){C.set(ve(e),!0),E.add(t)}function Et(e,t){return 0===It.comparePaths(e,t,z,!J.useCaseSensitiveFileNames())}},It.parseConfigHostFromCompilerHostLike=Nt,It.createPrependNodes=Dt,It.resolveProjectReferencePath=kt,It.getResolutionDiagnostic=wt}(rg=rg||{}),(fe=rg=rg||{}).getFileEmitOutput=function(e,t,n,r,i){var a=[],o=e.emit(t,function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})},r,n,i);return{outputFiles:a,emitSkipped:o.emitSkipped,exportedModulesFromDeclarationEmit:o.exportedModulesFromDeclarationEmit}},fe.cloneMapOrUndefined=function(e){return e?fe.cloneMap(e):undefined},_e=rg=rg||{},(he=_e.BuilderState||(_e.BuilderState={})).canReuseOldState=kc,he.create=function(e,t,n){for(var r=_e.createMap(),i=e.getCompilerOptions().module!==_e.ModuleKind.None?_e.createMap():undefined,a=i?_e.createMap():undefined,o=_e.createMap(),s=kc(i,n),c=0,u=e.getSourceFiles();c<u.length;c++){var l,d,p=u[c],f=_e.Debug.assertDefined(p.version,"Program intended to be used with Builder should have source files with versions set"),_=s?n.fileInfos.get(p.path):undefined;i&&((l=Dc(e,p,t))&&i.set(p.path,l),!s||(d=n.exportedModulesMap.get(p.path))&&a.set(p.path,d)),r.set(p.path,{version:f,signature:_&&_.signature})}return{fileInfos:r,referencedMap:i,exportedModulesMap:a,hasCalledUpdateShapeSignature:o}},he.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=undefined,e.allFileNames=undefined},he.clone=function(e){var n=_e.createMap();return e.fileInfos.forEach(function(e,t){n.set(t,Qb({},e))}),{fileInfos:n,referencedMap:_e.cloneMapOrUndefined(e.referencedMap),exportedModulesMap:_e.cloneMapOrUndefined(e.exportedModulesMap),hasCalledUpdateShapeSignature:_e.cloneMap(e.hasCalledUpdateShapeSignature)}},he.getFilesAffectedBy=function(e,t,n,r,i,a,o){var s=a||_e.createMap(),c=t.getSourceFileByPath(n);if(!c)return _e.emptyArray;if(!wc(e,t,c,s,r,i,o))return[c];var u=(e.referencedMap?function(e,t,n,r,i,a,o){if(Lc(n))return Mc(e,t,n);var s=t.getCompilerOptions();if(s&&(s.isolatedModules||s.out||s.outFile))return[n];var c=_e.createMap();c.set(n.path,n);var u=Pc(e,n.resolvedPath);for(;0<u.length;){var l,d=u.pop();c.has(d)||(l=t.getSourceFileByPath(d),c.set(d,l),l&&wc(e,t,l,r,i,a,o)&&u.push.apply(u,Pc(e,l.resolvedPath)))}return _e.arrayFrom(_e.mapDefinedIterator(c.values(),function(e){return e}))}:function(e,t,n){var r=t.getCompilerOptions();if(r&&(r.out||r.outFile))return[n];return Mc(e,t,n)})(e,t,c,s,r,i,o);return a||Ac(e,s),u},he.updateSignaturesFromCache=Ac,he.updateShapeSignature=wc,he.updateExportedFilesMapFromCache=function(n,e){e&&(_e.Debug.assert(!!n.exportedModulesMap),e.forEach(function(e,t){e?n.exportedModulesMap.set(t,e):n.exportedModulesMap["delete"](t)}))},he.getAllDependencies=function(e,n,t){var r,i=n.getCompilerOptions();if(i.outFile||i.out)return Vc(e,n);if(!e.referencedMap||Lc(t))return Vc(e,n);for(var a=_e.createMap(),o=[t.path];o.length;){var s=o.pop();if(!a.has(s)){a.set(s,!0);var c=e.referencedMap.get(s);if(c)for(var u=c.keys(),l=u.next(),d=l.value,p=l.done;!p;d=(r=u.next()).value,p=r.done)o.push(d)}}return _e.arrayFrom(_e.mapDefinedIterator(a.keys(),function(e){var t=n.getSourceFileByPath(e);return t?t.fileName:e}))},ge=rg=rg||{},(be=ye=ge.BuilderProgramKind||(ge.BuilderProgramKind={}))[be.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",be[be.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",ge.getBuilderCreationParameters=function(e,t,n,r,i,a){var o,s,c;return e===undefined?(ge.Debug.assert(t===undefined),o=n,c=r,ge.Debug.assert(!!c),s=c.getProgram()):ge.isArray(e)?(c=r,s=ge.createProgram({rootNames:e,options:t,host:n,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:a}),o=n):(s=e,o=t,c=n,i=r),{host:o,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||ge.emptyArray}},ge.createBuilderProgram=function(l,e){var t=e.newProgram,d=e.host,n=e.oldProgram,r=e.configFileParsingDiagnostics,i=n&&n.getState();if(i&&t===i.program&&r===t.getConfigFileParsingDiagnostics())return t=undefined,i=undefined,n;var a,o=ge.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),u=d.createHash||ge.generateDjb2Hash,p=Fc(t,o,i);t.getProgramBuildInfo=function(){return zc(p)},t=undefined,n=undefined,i=undefined;var s=Xc(p,r);return s.getState=function(){return p},s.backupState=function(){var e,t;ge.Debug.assert(a===undefined),e=p,(t=ge.BuilderState.clone(e)).semanticDiagnosticsPerFile=ge.cloneMapOrUndefined(e.semanticDiagnosticsPerFile),t.changedFilesSet=ge.cloneMap(e.changedFilesSet),t.affectedFiles=e.affectedFiles,t.affectedFilesIndex=e.affectedFilesIndex,t.currentChangedFilePath=e.currentChangedFilePath,t.currentAffectedFilesSignatures=ge.cloneMapOrUndefined(e.currentAffectedFilesSignatures),t.currentAffectedFilesExportedModulesMap=ge.cloneMapOrUndefined(e.currentAffectedFilesExportedModulesMap),t.seenAffectedFiles=ge.cloneMapOrUndefined(e.seenAffectedFiles),t.cleanedDiagnosticsOfLibFiles=e.cleanedDiagnosticsOfLibFiles,t.semanticDiagnosticsFromOldState=ge.cloneMapOrUndefined(e.semanticDiagnosticsFromOldState),t.program=e.program,t.compilerOptions=e.compilerOptions,t.affectedFilesPendingEmit=e.affectedFilesPendingEmit,t.affectedFilesPendingEmitIndex=e.affectedFilesPendingEmitIndex,t.seenEmittedFiles=ge.cloneMapOrUndefined(e.seenEmittedFiles),t.programEmitComplete=e.programEmitComplete,a=t},s.restoreState=function(){p=ge.Debug.assertDefined(a),a=undefined},s.getAllDependencies=function(e){return ge.BuilderState.getAllDependencies(p,ge.Debug.assertDefined(p.program),e)},s.getSemanticDiagnostics=function(e,t){Rc(p,e);var n,r,i,a=ge.Debug.assertDefined(p.program).getCompilerOptions();if(a.outFile||a.out)return ge.Debug.assert(!p.semanticDiagnosticsPerFile),ge.Debug.assertDefined(p.program).getSemanticDiagnostics(e,t);if(e)return Jc(p,e,t);for(;n=Hc(p,t,u);)n!==p.program&&l===ye.EmitAndSemanticDiagnosticsBuilderProgram&&(r=r||[]).push(n.path),Gc(p,n);r&&Kc(p,r);for(var o=0,s=ge.Debug.assertDefined(p.program).getSourceFiles();o<s.length;o++){var c=s[o];i=ge.addRange(i,Jc(p,c,t))}return i||ge.emptyArray},s.emit=function(e,t,n,r,i){if(l===ye.EmitAndSemanticDiagnosticsBuilderProgram&&(Rc(p,e),!e)){for(var a=[],o=!1,s=void 0,c=[],u=void 0;u=f(t,n,r,i);)o=o||u.result.emitSkipped,s=ge.addRange(s,u.result.diagnostics),c=ge.addRange(c,u.result.emittedFiles),a=ge.addRange(a,u.result.sourceMaps);return{emitSkipped:o,diagnostics:s||ge.emptyArray,emittedFiles:c,sourceMaps:a}}return ge.Debug.assertDefined(p.program).emit(e,t||ge.maybeBind(d,d.writeFile),n,r,i)},s.releaseProgram=function(){var e;e=p,ge.BuilderState.releaseCache(e),e.program=undefined,a=undefined},l===ye.SemanticDiagnosticsBuilderProgram?s.getSemanticDiagnosticsOfNextAffectedFile=function(e,t){for(;;){var n=Hc(p,e,u);if(!n)return undefined;if(n===p.program)return Yc(p,p.program.getSemanticDiagnostics(undefined,e),n);if(!t||!t(n))return Yc(p,Jc(p,n,e),n);Gc(p,n)}}:l===ye.EmitAndSemanticDiagnosticsBuilderProgram?s.emitNextAffectedFile=f:ge.notImplemented(),s;function f(e,t,n,r){var i=Hc(p,t,u),a=!1;if(!i)if(p.compilerOptions.out||p.compilerOptions.outFile){var o=ge.Debug.assertDefined(p.program);if(p.programEmitComplete||!ge.some(o.getProjectReferences(),function(e){return!!e.prepend}))return p.programEmitComplete=!0,undefined;i=o}else{if(!(i=function(e){var t=e.affectedFilesPendingEmit;if(t){for(var n=e.seenEmittedFiles||(e.seenEmittedFiles=ge.createMap()),r=e.affectedFilesPendingEmitIndex;r<t.length;r++){var i=ge.Debug.assertDefined(e.program).getSourceFileByPath(t[r]);if(i&&!n.has(i.path))return e.affectedFilesPendingEmitIndex=r,i}e.affectedFilesPendingEmit=undefined,e.affectedFilesPendingEmitIndex=undefined}return undefined}(p))){if(p.emittedBuildInfo)return undefined;var s=ge.Debug.assertDefined(p.program);return Yc(p,s.emitBuildInfo(e||ge.maybeBind(d,d.writeFile),t),s,!1,!0)}a=!0}return Yc(p,ge.Debug.assertDefined(p.program).emit(i===p.program?undefined:i,e||ge.maybeBind(d,d.writeFile),t,n,r),i,a)}},ge.createBuildProgramUsingProgramBuildInfo=function(e){var t={fileInfos:ge.createMapFromTemplate(e.fileInfos),compilerOptions:e.options,referencedMap:Zc(e.referencedMap),exportedModulesMap:Zc(e.exportedModulesMap),semanticDiagnosticsPerFile:e.semanticDiagnosticsPerFile&&ge.arrayToMap(e.semanticDiagnosticsPerFile,function(e){return ge.isString(e)?e:e[0]},function(e){return ge.isString(e)?ge.emptyArray:e[1]}),hasReusableDiagnostic:!0};return{getState:function(){return t},backupState:ge.noop,restoreState:ge.noop,getProgram:ge.notImplemented,getProgramOrUndefined:ge.returnUndefined,releaseProgram:ge.noop,getCompilerOptions:function(){return t.compilerOptions},getSourceFile:ge.notImplemented,getSourceFiles:ge.notImplemented,getOptionsDiagnostics:ge.notImplemented,getGlobalDiagnostics:ge.notImplemented,getConfigFileParsingDiagnostics:ge.notImplemented,getSyntacticDiagnostics:ge.notImplemented,getDeclarationDiagnostics:ge.notImplemented,getSemanticDiagnostics:ge.notImplemented,emit:ge.notImplemented,getAllDependencies:ge.notImplemented,getCurrentDirectory:ge.notImplemented,emitNextAffectedFile:ge.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:ge.notImplemented}},ge.createRedirectedBuilderProgram=Xc,(ve=rg=rg||{}).createSemanticDiagnosticsBuilderProgram=function(e,t,n,r,i,a){return ve.createBuilderProgram(ve.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,ve.getBuilderCreationParameters(e,t,n,r,i,a))},ve.createEmitAndSemanticDiagnosticsBuilderProgram=function(e,t,n,r,i,a){return ve.createBuilderProgram(ve.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,ve.getBuilderCreationParameters(e,t,n,r,i,a))},ve.createAbstractBuilder=function(e,t,n,r,i,a){var o=ve.getBuilderCreationParameters(e,t,n,r,i,a),s=o.newProgram,c=o.configFileParsingDiagnostics;return ve.createRedirectedBuilderProgram({program:s,compilerOptions:s.getCompilerOptions()},c)},(Ee=rg=rg||{}).isPathIgnored=qc,Ee.maxNumberOfFilesToIterateForInvalidation=256,Ee.createResolutionCache=function(k,e,i){var A,s,n,w=!1,V=Ee.createMultiMap(),r=Ee.memoize(function(){return k.getCurrentDirectory()}),c=k.getCachedDirectoryStructureHost(),a=Ee.createMap(),o=Ee.createCacheWithRedirects(),t=Ee.createCacheWithRedirects(),l=Ee.createModuleResolutionCacheWithMaps(o,t,r(),k.getCanonicalFileName),u=Ee.createMap(),d=Ee.createCacheWithRedirects(),p=[".ts",".tsx",".js",".jsx",".json"],f=Ee.createMap(),_=Ee.createMap(),h=e&&Ee.removeTrailingDirectorySeparator(Ee.getNormalizedAbsolutePath(e,r())),g=h&&k.toPath(h),m=Ee.createMap();return{startRecordingFilesWithChangedResolutions:function(){A=[]},finishRecordingFilesWithChangedResolutions:function(){var e=A;return A=undefined,e},startCachingPerDirectoryResolution:E,finishCachingPerDirectoryResolution:function(){w=!1,n=undefined,E(),_.forEach(function(e,t){0===e.refCount&&(_["delete"](t),e.watcher.close())})},resolveModuleNames:function(e,t,n,r){return T(e,t,r,a,o,I,y,function(e){return!e.resolvedModule||!Ee.resolutionExtensionIsTSOrJson(e.resolvedModule.extension)},n,i)},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var n=a.get(k.toPath(t));return n&&n.get(e)},resolveTypeReferenceDirectives:function(e,t,n){return T(e,t,n,u,d,Ee.resolveTypeReferenceDirective,b,function(e){return e.resolvedTypeReferenceDirective===undefined},undefined,!1)},removeResolutionsFromProjectReferenceRedirects:function(e){if(!Ee.fileExtensionIs(e,".json"))return;var t=k.getCurrentProgram();if(!t)return;var n=t.getResolvedProjectReferenceByPath(e);if(!n)return;n.commandLine.fileNames.forEach(function(e){return W(k.toPath(e))})},removeResolutionsOfFile:W,invalidateResolutionOfFile:function(r){W(r),Y(function(e,t){var n=t(e);return!!n&&k.toPath(n.resolvedFileName)===r})},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){Ee.Debug.assert(n===e||n===undefined),n=e},createHasInvalidatedResolution:function(e){if(w||e)return s=undefined,Ee.returnTrue;var t=s;return s=undefined,function(e){return!!t&&t.has(e)||P(e)}},updateTypeRootsWatch:function(){var e=k.getCompilationSettings();if(e.types)return void z();var t=Ee.getEffectiveTypeRoots(e,{directoryExists:K,getCurrentDirectory:r});t?Ee.mutateMap(m,Ee.arrayToMap(t,function(e){return k.toPath(e)}),{createNewValue:U,onDeleteValue:Ee.closeFileWatcher}):z()},closeTypeRootsWatch:z,clear:function(){Ee.clearMap(_,Ee.closeFileWatcherOf),f.clear(),V.clear(),z(),a.clear(),u.clear(),w=!1,E()}};function y(e){return e.resolvedModule}function b(e){return e.resolvedTypeReferenceDirective}function v(e,t){return!(e===undefined||t.length<=e.length)&&(Ee.startsWith(t,e)&&t[e.length]===Ee.directorySeparator)}function P(e){if(!n)return!1;var t=n.get(e);return!!t&&!!t.length}function E(){o.clear(),t.clear(),d.clear(),V.forEach(F),V.clear()}function I(e,t,n,r,i){var a=Ee.resolveModuleName(e,t,n,r,l,i);if(!k.getGlobalCache)return a;var o=k.getGlobalCache();if(!(o===undefined||Ee.isExternalModuleNameRelative(e)||a.resolvedModule&&Ee.extensionIsTS(a.resolvedModule.extension))){var s=Ee.loadModuleFromGlobalCache(e,k.projectName,n,r,o),c=s.resolvedModule,u=s.failedLookupLocations;if(c)return{resolvedModule:c,failedLookupLocations:Ee.addRange(a.failedLookupLocations,u)}}return a}function T(e,t,n,r,i,a,o,s,c,u){var l=k.toPath(t),d=r.get(l)||r.set(l,Ee.createMap()).get(l),p=Ee.getDirectoryPath(l),f=i.getOrCreateMapOfCacheRedirects(n),_=f.get(p);_||(_=Ee.createMap(),f.set(p,_));for(var h,g,m=[],y=k.getCompilationSettings(),b=u&&P(l),v=k.getCurrentProgram(),E=v&&v.getResolvedProjectReferenceToRedirect(t),I=E?!n||n.sourceFile.path!==E.sourceFile.path:!!n,T=Ee.createMap(),C=0,B=e;C<B.length;C++){var x,S,N=B[C],D=d.get(N);(!T.has(N)&&w||I||!D||D.isInvalidated||b&&!Ee.isExternalModuleNameRelative(N)&&s(D))&&(x=D,(S=_.get(N))?D=S:(D=a(N,t,y,k,n),_.set(N,D)),d.set(N,D),h=N,(g=D).failedLookupLocations&&g.failedLookupLocations.length&&(g.refCount?g.refCount++:(g.refCount=1,Ee.isExternalModuleNameRelative(h)?L(g):V.add(h,g))),x&&R(x),u&&A&&!function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=o(e),r=o(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}(x,D)&&(A.push(l),u=!1)),Ee.Debug.assert(D!==undefined&&!D.isInvalidated),T.set(N,!0),m.push(o(D))}return d.forEach(function(e,t){T.has(t)||Ee.contains(c,t)||(R(e),d["delete"](t))}),m}function C(e){return Ee.endsWith(e,"/node_modules")}function B(e){return Ee.endsWith(e,"/node_modules/@types")}function x(e){var t=Ee.getRootLength(e);if(e.length===t)return!1;var n=e.indexOf(Ee.directorySeparator,t);if(-1===n)return!1;if(47!==e.charCodeAt(0)&&-1===e.substr(t,n).search(/users/i))return!0;for(var r=n+1,i=2;0<i;i--)if(0===(r=e.indexOf(Ee.directorySeparator,r)+1))return!1;return!0}function S(e,t){if(v(g,t)){e=Ee.isRootedDiskPath(e)?Ee.normalizePath(e):Ee.getNormalizedAbsolutePath(e,r()),Ee.Debug.assert(e.length===t.length,"FailedLookup: "+e+" failedLookupLocationPath: "+t);var n=t.indexOf(Ee.directorySeparator,g.length+1);return-1!==n?{dir:e.substr(0,n),dirPath:t.substr(0,n)}:{dir:h,dirPath:g,nonRecursive:!1}}return N(Ee.getDirectoryPath(Ee.getNormalizedAbsolutePath(e,r())),Ee.getDirectoryPath(t))}function N(e,t){for(;Ee.pathContainsNodeModules(t);)e=Ee.getDirectoryPath(e),t=Ee.getDirectoryPath(t);if(C(t))return x(Ee.getDirectoryPath(t))?{dir:e,dirPath:t}:undefined;var n,r,i=!0;if(g!==undefined)for(;!v(t,g);){var a=Ee.getDirectoryPath(t);if(a===t)break;i=!1,n=t,r=e,t=a,e=Ee.getDirectoryPath(e)}return x(t)?{dir:r||e,dirPath:n||t,nonRecursive:i}:undefined}function D(e){return Ee.fileExtensionIsOneOf(e,p)}function L(e){Ee.Debug.assert(!!e.refCount);for(var t=!1,n=0,r=e.failedLookupLocations;n<r.length;n++){var i,a,o,s,c=r[n],u=k.toPath(c),l=S(c,u);l&&(i=l.dir,a=l.dirPath,o=l.nonRecursive,D(u)||(s=f.get(u)||0,f.set(u,s+1)),a===g?(Ee.Debug.assert(!o),t=!0):O(i,a,o))}t&&O(h,g,!0)}function M(e){e.refCount=undefined}function F(e,t){var n=k.getCurrentProgram(),r=n&&n.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)?M:L;e.forEach(r)}function O(e,t,n){var r,i,a,o=_.get(t);o?(Ee.Debug.assert(!!n==!!o.nonRecursive),o.refCount++):_.set(t,{watcher:(r=e,i=t,a=n,k.watchDirectoryOfFailedLookupLocation(r,function(e){var t=k.toPath(e);c&&c.addOrDeleteFileOrDirectory(e,t),!w&&J(t,i===t)&&k.onInvalidatedResolution()},a?0:1)),refCount:1,nonRecursive:n})}function R(e){if(e.refCount&&(e.refCount--,!e.refCount)){for(var t=!1,n=0,r=e.failedLookupLocations;n<r.length;n++){var i,a,o=r[n],s=k.toPath(o),c=S(o,s);c&&(i=c.dirPath,(a=f.get(s))&&(1===a?f["delete"](s):(Ee.Debug.assert(1<a),f.set(s,a-1))),i===g?t=!0:H(i))}t&&H(g)}}function H(e){_.get(e).refCount--}function j(e,t){var n=e.get(t);n&&(n.forEach(R),e["delete"](t))}function W(e){j(a,e),j(u,e)}function G(e,i,a){var o=Ee.createMap();e.forEach(function(e,n){var t=Ee.getDirectoryPath(n),r=o.get(t);r||(r=Ee.createMap(),o.set(t,r)),e.forEach(function(e,t){r.has(t)||(r.set(t,!0),!e.isInvalidated&&i(e,a)&&(e.isInvalidated=!0,(s=s||Ee.createMap()).set(n,!0)))})})}function Y(e){var t;t=k.maxNumberOfFilesToIterateForInvalidation||Ee.maxNumberOfFilesToIterateForInvalidation,a.size>t||u.size>t?w=!0:(G(a,e,y),G(u,e,b))}function J(t,e){var n;if(e)n=function n(e){return v(t,k.toPath(e))};else{if(qc(t))return;if(k.fileIsOpen(t))return;var r=Ee.getDirectoryPath(t);if(B(t)||C(t)||B(r)||C(r))n=function n(e){return k.toPath(e)===t||Ee.startsWith(k.toPath(e),t)};else{if(!D(t)&&!f.has(t))return;if(Ee.isEmittedFileOfProgram(k.getCurrentProgram(),t))return;n=function n(e){return k.toPath(e)===t}}}var i=function i(e){return Ee.some(e.failedLookupLocations,n)},a=s&&s.size;return Y(i),w||s&&s.size!==a}function z(){Ee.clearMap(m,Ee.closeFileWatcher)}function U(r,i){return k.watchTypeRootsDirectory(i,function(e){var t=k.toPath(e);c&&c.addOrDeleteFileOrDirectory(e,t),k.onChangedAutomaticTypeDirectiveNames();var n=function(e,t){if(w)return undefined;if(v(g,t))return g;var n=N(e,t);return n&&_.has(n.dirPath)?n.dirPath:undefined}(i,r);n&&J(t,n===t)&&k.onInvalidatedResolution()},1)}function K(e){var t=Ee.getDirectoryPath(Ee.getDirectoryPath(e)),n=k.toPath(t);return n===g||x(n)}},Ie=rg=rg||{},Te=Ie.moduleSpecifiers||(Ie.moduleSpecifiers={}),(Ce={})[Ce.Relative=0]="Relative",Ce[Ce.NonRelative=1]="NonRelative",Ce[Ce.Auto=2]="Auto",(Be={})[Be.Minimal=0]="Minimal",Be[Be.Index=1]="Index",Be[Be.JsExtension=2]="JsExtension",Te.updateModuleSpecifier=function(e,t,n,r,i,a,o){var s,c,u=$c(e,t,n,r,i,a,(s=e,c=o,{relativePreference:Ie.isExternalModuleNameRelative(c)?0:1,ending:Ie.hasJSOrJsonFileExtension(c)?2:Ie.getEmitModuleResolutionKind(s)!==Ie.ModuleResolutionKind.NodeJs||Ie.endsWith(c,"index")?1:0}));return u===o?undefined:u},Te.getModuleSpecifier=function(e,t,n,r,i,a,o,s){return void 0===o&&(o={}),$c(e,n,r,i,a,s,Qc(o,e,t))},Te.getModuleSpecifiers=function(e,t,n,r,i,a,o){var s=function(e){var t=Ie.find(e.declarations,function(e){return Ie.isNonGlobalAmbientModule(e)&&(!Ie.isExternalModuleAugmentation(e)||!Ie.isExternalModuleNameRelative(Ie.getTextOfIdentifierOrLiteral(e.name)))});if(t)return t.name.text}(e);if(s)return[s];var c=eu(n.path,r),u=Ie.getSourceFileOfNode(e.valueDeclaration||Ie.getNonAugmentationDeclaration(e)),l=au(i,n.path,u.fileName,c.getCanonicalFileName,r,o),d=Qc(a,t,n),p=Ie.mapDefined(l,function(e){return su(e,c,r,t)});return p.length?p:l.map(function(e){return tu(e,c,t,d)})},Te.countPathComponents=nu,function(f){var i=f.sys?{getCurrentDirectory:function(){return f.sys.getCurrentDirectory()},getNewLine:function(){return f.sys.newLine},getCanonicalFileName:f.createGetCanonicalFileName(f.sys.useCaseSensitiveFileNames)}:undefined;function _(t,e){var n=t===f.sys?i:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:f.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!e)return function(e){return t.write(f.formatDiagnostic(e,n))};var r=new Array(1);return function(e){r[0]=e,t.write(f.formatDiagnosticsWithColorAndContext(r,n)+n.getNewLine()),r[0]=undefined}}function s(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&f.contains(f.screenStartingMessageCodes,t.code)&&(e.clearScreen(),1)}function n(o,e){return e?function(e,t,n){s(o,e,n);var r="["+f.formatColorAndReset((new Date).toLocaleTimeString(),f.ForegroundColorEscapeSequences.Grey)+"] ";r+=""+f.flattenDiagnosticMessageText(e.messageText,o.newLine)+(t+t),o.write(r)}:function(e,t,n){var r,i,a="";s(o,e,n)||(a+=t),a+=(new Date).toLocaleTimeString()+" - ",a+=""+f.flattenDiagnosticMessageText(e.messageText,o.newLine)+(r=e,i=t,f.contains(f.screenStartingMessageCodes,r.code)?i+i:i),o.write(a)}}function p(e){return f.countWhere(e,function(e){return e.category===f.DiagnosticCategory.Error})}function c(e){return 1===e?f.Diagnostics.Found_1_error_Watching_for_file_changes:f.Diagnostics.Found_0_errors_Watching_for_file_changes}function h(e,t){if(0===e)return"";var n=f.createCompilerDiagnostic(1===e?f.Diagnostics.Found_1_error:f.Diagnostics.Found_0_errors,e);return""+t+f.flattenDiagnosticMessageText(n.messageText,t)+t+t}function g(e,t){e.getCompilerOptions().listFiles&&f.forEach(e.getSourceFiles(),function(e){t(e.fileName)})}function m(e,t,n,r,i){var a=e.getConfigFileParsingDiagnostics().slice(),o=a.length;f.addRange(a,e.getSyntacticDiagnostics()),a.length===o&&(f.addRange(a,e.getOptionsDiagnostics()),f.addRange(a,e.getGlobalDiagnostics()),a.length===o&&f.addRange(a,e.getSemanticDiagnostics()));var s,c=e.emit(undefined,i),u=c.emittedFiles,l=c.emitSkipped,d=c.diagnostics;return f.addRange(a,d),f.sortAndDeduplicateDiagnostics(a).forEach(t),n&&(s=e.getCurrentDirectory(),f.forEach(u,function(e){var t=f.getNormalizedAbsolutePath(e,s);n("TSFILE: "+t)}),g(e,n)),r&&r(p(a)),l&&0<a.length?f.ExitStatus.DiagnosticsPresent_OutputsSkipped:0<a.length?f.ExitStatus.DiagnosticsPresent_OutputsGenerated:f.ExitStatus.Success}f.createDiagnosticReporter=_,f.screenStartingMessageCodes=[f.Diagnostics.Starting_compilation_in_watch_mode.code,f.Diagnostics.File_change_detected_Starting_incremental_compilation.code],f.createWatchStatusReporter=n,f.parseConfigFileWithSystem=function(e,t,n,r){var i=n;i.onUnRecoverableConfigFileDiagnostic=function(e){return y(f.sys,r,e)};var a=f.getParsedCommandLineOfConfigFile(e,t,i);return i.onUnRecoverableConfigFileDiagnostic=undefined,a},f.getErrorCountForSummary=p,f.getWatchErrorSummaryDiagnosticMessage=c,f.getErrorSummaryText=h,f.listFiles=g,f.emitFilesAndReportErrors=m;var e,r={close:f.noop};function u(e,t){return void 0===e&&(e=f.sys),{onWatchStatusChange:t||n(e),watchFile:f.maybeBind(e,e.watchFile)||function(){return r},watchDirectory:f.maybeBind(e,e.watchDirectory)||function(){return r},setTimeout:f.maybeBind(e,e.setTimeout)||f.noop,clearTimeout:f.maybeBind(e,e.clearTimeout)||f.noop}}function a(r,i){var a=r.getSourceFile,o=i.createHash||f.generateDjb2Hash;r.getSourceFile=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.call.apply(a,[r].concat(e));return n&&(n.version=o.call(i,n.text)),n}}function l(a,e){var t=f.memoize(function(){return f.getDirectoryPath(f.normalizePath(a.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return a.useCaseSensitiveFileNames},getNewLine:function(){return a.newLine},getCurrentDirectory:f.memoize(function(){return a.getCurrentDirectory()}),getDefaultLibLocation:t,getDefaultLibFileName:function(e){return f.combinePaths(t(),f.getDefaultLibFileName(e))},fileExists:function(e){return a.fileExists(e)},readFile:function(e,t){return a.readFile(e,t)},directoryExists:function(e){return a.directoryExists(e)},getDirectories:function(e){return a.getDirectories(e)},readDirectory:function(e,t,n,r,i){return a.readDirectory(e,t,n,r,i)},realpath:f.maybeBind(a,a.realpath),getEnvironmentVariable:f.maybeBind(a,a.getEnvironmentVariable),trace:function(e){return a.write(e+a.newLine)},createDirectory:function(e){return a.createDirectory(e)},writeFile:function(e,t,n){return a.writeFile(e,t,n)},onCachedDirectoryStructureHostCreate:function(e){return e||a},createHash:f.maybeBind(a,a.createHash),createProgram:e||f.createEmitAndSemanticDiagnosticsBuilderProgram}}function d(r,e,i,t){void 0===r&&(r=f.sys);var a=function a(e){return r.write(e+r.newLine)},o=l(r,e);return f.copyProperties(o,u(r,t)),o.afterProgramCreate=function(e){var t=e.getCompilerOptions(),n=f.getNewLineCharacter(t,function(){return r.newLine});m(e,i,a,function(e){return o.onWatchStatusChange(f.createCompilerDiagnostic(c(e),e),n,t)})},o}function y(e,t,n){t(n),e.exit(f.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function b(e,t){if(e.out||e.outFile)return undefined;var n=f.getOutputPathForBuildInfo(e);if(!n)return undefined;var r=t(n);if(!r)return undefined;var i=f.getBuildInfo(r);return i.version===f.version&&i.program?f.createBuildProgramUsingProgramBuildInfo(i.program):undefined}function v(e,t){void 0===t&&(t=f.sys);var n=f.createCompilerHostWorker(e,undefined,t);return n.createHash=f.maybeBind(t,t.createHash),a(n,t),f.changeCompilerHostLikeToUseCache(n,function(e){return f.toPath(e,n.getCurrentDirectory(),n.getCanonicalFileName)}),n}f.createWatchHost=u,(e=f.WatchType||(f.WatchType={})).ConfigFile="Config file",e.SourceFile="Source file",e.MissingFile="Missing file",e.WildcardDirectory="Wild card directory",e.FailedLookupLocations="Failed Lookup Locations",e.TypeRoots="Type roots",f.createWatchFactory=function(t,e){var n=t.trace?e.extendedDiagnostics?f.WatchLogLevel.Verbose:e.diagnostics?f.WatchLogLevel.TriggerOnly:f.WatchLogLevel.None:f.WatchLogLevel.None,r=n!==f.WatchLogLevel.None?function(e){return t.trace(e)}:f.noop,i=f.getWatchFactory(n,r);return i.writeLog=r,i},f.createCompilerHostFromProgramHost=function(o,a,e){void 0===e&&(e=o);var t=o.useCaseSensitiveFileNames(),n=f.memoize(function(){return o.getNewLine()});return{getSourceFile:function(e,t,n){var r;try{f.performance.mark("beforeIORead"),r=o.readFile(e,a().charset),f.performance.mark("afterIORead"),f.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(i){n&&n(i.message),r=""}return r!==undefined?f.createSourceFile(e,r,t):undefined},getDefaultLibLocation:f.maybeBind(o,o.getDefaultLibLocation),getDefaultLibFileName:function(e){return o.getDefaultLibFileName(e)},writeFile:function(e,t,n,r){try{f.performance.mark("beforeIOWrite"),function i(e){{var t;e.length>f.getRootLength(e)&&!o.directoryExists(e)&&(t=f.getDirectoryPath(e),i(t),o.createDirectory&&o.createDirectory(e))}}(f.getDirectoryPath(f.normalizePath(e))),o.writeFile(e,t,n),f.performance.mark("afterIOWrite"),f.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(a){r&&r(a.message)}},getCurrentDirectory:f.memoize(function(){return o.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return t},getCanonicalFileName:f.createGetCanonicalFileName(t),getNewLine:function(){return f.getNewLineCharacter(a(),n)},fileExists:function(e){return o.fileExists(e)},readFile:function(e){return o.readFile(e)},trace:f.maybeBind(o,o.trace),directoryExists:f.maybeBind(e,e.directoryExists),getDirectories:f.maybeBind(e,e.getDirectories),realpath:f.maybeBind(o,o.realpath),getEnvironmentVariable:f.maybeBind(o,o.getEnvironmentVariable)||function(){return""},createHash:f.maybeBind(o,o.createHash),readDirectory:f.maybeBind(o,o.readDirectory)}},f.setGetSourceFileAsHashVersioned=a,f.createProgramHost=l,f.createWatchCompilerHostOfConfigFile=function(e,t,n,r,i,a){var o=i||_(n),s=d(n,r,o,a);return s.onUnRecoverableConfigFileDiagnostic=function(e){return y(n,o,e)},s.configFileName=e,s.optionsToExtend=t,s},f.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,n,r,i,a,o){var s=d(n,r,i||_(n),a);return s.rootFiles=e,s.options=t,s.projectReferences=o,s},f.readBuilderProgram=b,f.createIncrementalCompilerHost=v,f.performIncrementalCompilation=function(e){var t,n,r,i,a,o,s,c,u=e.system||f.sys,l=e.host||(e.host=v(e.options,u)),d=(n=(t=e).rootNames,r=t.options,i=t.configFileParsingDiagnostics,a=t.projectReferences,o=t.host,s=t.createProgram,o=o||v(r),s=s||f.createEmitAndSemanticDiagnosticsBuilderProgram,c=b(r,function(e){return o.readFile(e)}),s(n,r,o,c,i,a)),p=m(d,e.reportDiagnostic||_(u),function(e){return l.trace&&l.trace(e)},e.reportErrorSummary||e.options.pretty?function(e){return u.write(h(e,u.newLine))}:undefined);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(d),p}}(rg=rg||{}),(xe=rg=rg||{}).createWatchCompilerHost=function(e,t,n,r,i,a,o){return xe.isArray(e)?xe.createWatchCompilerHostOfFilesAndCompilerOptions(e,t,n,r,i,a,o):xe.createWatchCompilerHostOfConfigFile(e,t,n,r,i,a)},xe.createWatchProgram=function(c){var r,a,e,t,o,n,s,u=xe.createMap(),l=!1,d=!1,i=c.useCaseSensitiveFileNames(),p=c.getCurrentDirectory(),f=c.configFileName,_=c.optionsToExtend,h=void 0===_?{}:_,g=c.createProgram,m=c.rootFiles,y=c.options,b=c.projectReferences,v=!1,E=!1,I=f===undefined?undefined:xe.createCachedDirectoryStructureHost(c,p,i);I&&c.onCachedDirectoryStructureHostCreate&&c.onCachedDirectoryStructureHostCreate(I);var T=I||c,C=xe.parseConfigHostFromCompilerHostLike(c,T),B=W();f&&c.configFileParsingResult&&($(c.configFileParsingResult),B=W()),Z(xe.Diagnostics.Starting_compilation_in_watch_mode),f&&!c.configFileParsingResult&&(B=xe.getNewLineCharacter(h,function(){return c.getNewLine()}),xe.Debug.assert(!m),Q(),B=W());var x,S=xe.createWatchFactory(c,y),N=S.watchFile,D=S.watchFilePath,k=S.watchDirectory,A=S.writeLog,w=xe.createGetCanonicalFileName(i);A("Current directory: "+p+" CaseSensitiveFileNames: "+i),f&&(x=N(c,f,function(){xe.Debug.assert(!!f),r=xe.ConfigFileProgramReloadLevel.Full,X()},xe.PollingInterval.High,"Config file"));var V=xe.createCompilerHostFromProgramHost(c,function(){return y},T);xe.setGetSourceFileAsHashVersioned(V,c);var P=V.getSourceFile;V.getSourceFile=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return z.apply(void 0,[e,G(e)].concat(t))},V.getSourceFileByPath=z,V.getNewLine=function(){return B},V.fileExists=J,V.onReleaseOldSourceFile=function(e,t,n){var r=u.get(e.resolvedPath);r!==undefined&&(Y(r)?(o=o||[]).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),u["delete"](e.resolvedPath),n||L.removeResolutionsOfFile(e.path)))},V.toPath=G,V.getCompilationSettings=function(){return y},V.watchDirectoryOfFailedLookupLocation=function(e,t,n){return k(c,e,t,n,"Failed Lookup Locations")},V.watchTypeRootsDirectory=function(e,t,n){return k(c,e,t,n,"Type roots")},V.getCachedDirectoryStructureHost=function(){return I},V.onInvalidatedResolution=X,V.onChangedAutomaticTypeDirectiveNames=function(){d=!0,X()},V.fileIsOpen=xe.returnFalse,V.maxNumberOfFilesToIterateForInvalidation=c.maxNumberOfFilesToIterateForInvalidation,V.getCurrentProgram=H,V.writeLog=A;var L=xe.createResolutionCache(V,f?xe.getDirectoryPath(xe.getNormalizedAbsolutePath(f,p)):p,!1);V.resolveModuleNames=c.resolveModuleNames?function(e,t,n,r){return c.resolveModuleNames(e,t,n,r)}:function(e,t,n,r){return L.resolveModuleNames(e,t,n,r)},V.resolveTypeReferenceDirectives=c.resolveTypeReferenceDirectives?function(e,t,n){return c.resolveTypeReferenceDirectives(e,t,n)}:function(e,t,n){return L.resolveTypeReferenceDirectives(e,t,n)};var M=!!c.resolveModuleNames||!!c.resolveTypeReferenceDirectives,F=xe.readBuilderProgram(y,function(e){return V.readFile(e)});return j(),ie(),f?{getCurrentProgram:R,getProgram:j,close:O}:{getCurrentProgram:R,getProgram:j,updateRootFileNames:function(e){xe.Debug.assert(!f,"Cannot update root file names with config file watch mode"),m=e,X()},close:O};function O(){L.clear(),xe.clearMap(u,function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=undefined)}),x&&(x.close(),x=undefined),e&&(xe.clearMap(e,xe.closeFileWatcherOf),e=undefined),a&&(xe.clearMap(a,xe.closeFileWatcher),a=undefined)}function R(){return F}function H(){return F&&F.getProgramOrUndefined()}function j(){A("Synchronizing program");var e=F;l&&(B=W(),e&&xe.changesAffectModuleResolution(e.getCompilerOptions(),y)&&L.clear());var t=L.createHasInvalidatedResolution(M);return xe.isProgramUptoDate(H(),m,y,K,J,t,d,b)?E&&(F=g(undefined,undefined,V,F,s,b),E=!1):function(e){A("CreatingProgramWith::"),A(" roots: "+JSON.stringify(m)),A(" options: "+JSON.stringify(y));var t=l||!H();E=l=!1,L.startCachingPerDirectoryResolution(),V.hasInvalidatedResolution=e,V.hasChangedAutomaticTypeDirectiveNames=d,F=g(m,y,V,F,s,b),L.finishCachingPerDirectoryResolution(),xe.updateMissingFilePathsWatch(F.getProgram(),a=a||xe.createMap(),ne),t&&L.updateTypeRootsWatch();if(o){for(var n=0,r=o;n<r.length;n++){var i=r[n];a.has(i)||u["delete"](i)}o=undefined}}(t),c.afterProgramCreate&&c.afterProgramCreate(F),F}function W(){return xe.getNewLineCharacter(y||h,function(){return c.getNewLine()})}function G(e){return xe.toPath(e,p,w)}function Y(e){return"boolean"==typeof e}function J(e){var t=G(e);return!!Y(u.get(t))||T.fileExists(e)}function z(e,t,n,r,i){var a=u.get(t);if(Y(a))return undefined;if(a===undefined||i||"boolean"==typeof a.version){var o,s=P(e,n,r);return a?s?(a.sourceFile=s,a.version=s.version,a.fileWatcher||(a.fileWatcher=D(c,e,ee,xe.PollingInterval.Low,t,"Source file"))):(a.fileWatcher&&a.fileWatcher.close(),u.set(t,!1)):s?(o=D(c,e,ee,xe.PollingInterval.Low,t,"Source file"),u.set(t,{sourceFile:s,version:s.version,fileWatcher:o})):u.set(t,!1),s}return a.sourceFile}function U(e){var t=u.get(e);t!==undefined&&(Y(t)?u.set(e,{version:!1}):t.version=!1)}function K(e){var t=u.get(e);return t&&t.version?t.version:undefined}function Z(e){c.onWatchStatusChange&&c.onWatchStatusChange(xe.createCompilerDiagnostic(e),B,y||h)}function X(){c.setTimeout&&c.clearTimeout&&(t&&c.clearTimeout(t),A("Scheduling update"),t=c.setTimeout(q,250))}function q(){switch(t=undefined,Z(xe.Diagnostics.File_change_detected_Starting_incremental_compilation),r){case xe.ConfigFileProgramReloadLevel.Partial:return function(){A("Reloading new file names and options");var e=xe.getFileNamesFromConfigSpecs(n,xe.getDirectoryPath(f),y,C);xe.updateErrorForNoInputFiles(e,f,n,s,v)&&(E=!0);m=e.fileNames,j()}();case xe.ConfigFileProgramReloadLevel.Full:return function(){A("Reloading config file: "+f),r=xe.ConfigFileProgramReloadLevel.None,I&&I.clearCache();Q(),l=!0,j(),ie()}();default:return void j()}}function Q(){$(xe.getParsedCommandLineOfConfigFile(f,h,C))}function $(e){m=e.fileNames,y=e.options,n=e.configFileSpecs,b=e.projectReferences,s=xe.getConfigFileParsingDiagnostics(e).slice(),v=xe.canJsonReportNoInutFiles(e.raw),E=!0}function ee(e,t,n){te(e,n,t),t===xe.FileWatcherEventKind.Deleted&&u.has(n)&&L.invalidateResolutionOfFile(n),L.removeResolutionsFromProjectReferenceRedirects(n),U(n),X()}function te(e,t,n){I&&I.addOrDeleteFile(e,t,n)}function ne(e){return D(c,e,re,xe.PollingInterval.Medium,e,"Missing file")}function re(e,t,n){te(e,n,t),t===xe.FileWatcherEventKind.Created&&a.has(n)&&(a.get(n).close(),a["delete"](n),U(n),X())}function ie(){n?xe.updateWatchingWildcardDirectories(e=e||xe.createMap(),xe.createMapFromTemplate(n.wildcardDirectories),ae):e&&xe.clearMap(e,xe.closeFileWatcherOf)}function ae(n,e){return k(c,n,function(e){xe.Debug.assert(!!f);var t=G(e);I&&I.addOrDeleteFileOrDirectory(e,t),U(t),xe.isPathIgnored(t)||(t===n||!xe.hasExtension(t)||xe.isSupportedSourceFileName(e,y)?r!==xe.ConfigFileProgramReloadLevel.Full&&(r=xe.ConfigFileProgramReloadLevel.Partial,X()):A("Project: "+f+" Detected file add/remove of non supported extension: "+e))},e,"Wild card directory")}},Se=rg=rg||{},Ve=new Date(-864e13),Pe=new Date(864e13),(ke=De=De||{})[ke.None=0]="None",ke[ke.Success=1]="Success",ke[ke.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",ke[ke.ConfigFileErrors=4]="ConfigFileErrors",ke[ke.SyntaxErrors=8]="SyntaxErrors",ke[ke.TypeErrors=16]="TypeErrors",ke[ke.DeclarationEmitErrors=32]="DeclarationEmitErrors",ke[ke.EmitErrors=64]="EmitErrors",ke[ke.AnyErrors=124]="AnyErrors",(we=Ae=Se.UpToDateStatusType||(Se.UpToDateStatusType={}))[we.Unbuildable=0]="Unbuildable",we[we.UpToDate=1]="UpToDate",we[we.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",we[we.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",we[we.OutputMissing=4]="OutputMissing",we[we.OutOfDateWithSelf=5]="OutOfDateWithSelf",we[we.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",we[we.UpstreamOutOfDate=7]="UpstreamOutOfDate",we[we.UpstreamBlocked=8]="UpstreamBlocked",we[we.ComputingUpstream=9]="ComputingUpstream",we[we.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",we[we.ContainerOnly=11]="ContainerOnly",Se.createBuilderStatusReporter=mu,Se.createSolutionBuilderHost=function(e,t,n,r,i){void 0===e&&(e=Se.sys);var a=yu(e,t,n,r);return a.reportErrorSummary=i,a},Se.createSolutionBuilderWithWatchHost=function(e,t,n,r,i){void 0===e&&(e=Se.sys);var a=yu(e,t,n,r),o=Se.createWatchHost(e,i);return Se.copyProperties(a,o),a},Se.createSolutionBuilder=function(V,e,l){var n,a=V,o=V.getCurrentDirectory(),t=Se.createGetCanonicalFileName(V.useCaseSensitiveFileNames()),_=Se.parseConfigHostFromCompilerHostLike(V),y=l,b=bu(y),i=pu(O),P=pu(O),L=pu(O),r=Se.createMap(),v=V.trace?function(e){return V.trace(e)}:undefined,M=function M(e){return V.readFile(e)},E=b,I=Se.createCompilerHostFromProgramHost(V,function(){return E});Se.setGetSourceFileAsHashVersioned(I,V),I.getParsedCommandLine=R,I.resolveModuleNames=Se.maybeBind(V,V.resolveModuleNames),I.resolveTypeReferenceDirectives=Se.maybeBind(V,V.resolveTypeReferenceDirectives);var p,s,T=I.resolveModuleNames?undefined:Se.createModuleResolutionCache(o,t),F=pu(O),c=Se.createMap(),C=pu(O),B=pu(O),u=pu(O),d=pu(O),f=[],h=0,g=!1,m=Se.createWatchFactory(V,y),x=m.watchFile,S=m.watchFilePath,N=m.watchDirectory,D=m.writeLog,k=pu(O),A=pu(O),w=pu(O);return{buildAllProjects:function(){y.watch&&j(Se.Diagnostics.Starting_compilation_in_watch_mode);ue();var e=K();!function(e){y.verbose&&H(Se.Diagnostics.Projects_in_this_build_Colon_0,e.buildQueue.map(function(e){return"\r\n * "+he(e)}).join(""))}(e);for(var t=!1,n=0,r=e.buildQueue;n<r.length;n++){var i=r[n],a=R(i);if(a===undefined){pe(i),t=!0;break}var o=a.errors,s=Z(a);ge(i,s);var c,u=a.options.configFilePath;s.type!==Ae.UpToDate||y.force?s.type!==Ae.UpToDateWithUpstreamTypes||y.force?s.type!==Ae.UpstreamBlocked?s.type!==Ae.ContainerOnly?(c=(de(s,i)?ne:ae)(i),t=t||!!(c&De.AnyErrors)):fe(i,o):(fe(i,o),y.verbose&&H(Se.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,u,s.upstreamProjectName)):(fe(i,o),oe(a)):(fe(i,o),l.dry&&H(Se.Diagnostics.Project_0_is_up_to_date,u))}return te(),le(),t?Se.ExitStatus.DiagnosticsPresent_OutputsSkipped:Se.ExitStatus.Success},getUpToDateStatusOfFile:function(e){return Z(R(e))},cleanAllProjects:function(){var e=function(){for(var e=K(),t=[],n=0,r=e.buildQueue;n<r.length;n++){var i=r[n],a=R(i);if(a!==undefined)for(var o=Se.getAllProjectOutputs(a,!V.useCaseSensitiveFileNames()),s=0,c=o;s<c.length;s++){var u=c[s];V.fileExists(u)&&t.push(u)}else pe(i)}return t}();if(y.dry)return H(Se.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,e.map(function(e){return"\r\n * "+e}).join("")),Se.ExitStatus.Success;for(var t=0,n=e;t<n.length;t++){var r=n[t];V.deleteFile(r)}return Se.ExitStatus.Success},resetBuildContext:function(e){void 0===e&&(e=l);b=bu(y=e),i.clear(),P.clear(),L.clear(),r.clear(),n=undefined,F.clear(),B.clear(),u.clear(),d.clear(),f.length=0,h=0,s&&(clearTimeout(s),s=undefined);g=!1,Se.clearMap(k,function(e){return Se.clearMap(e,Se.closeFileWatcherOf)}),Se.clearMap(A,function(e){return Se.clearMap(e,Se.closeFileWatcher)}),Se.clearMap(w,Se.closeFileWatcher),C.clear()},getBuildGraph:U,invalidateProject:function(e,t){q(ce(e),t)},buildInvalidatedProject:ee,resolveProjectName:ce,startWatching:function(){for(var e=K(),t=0,n=e.buildQueue;t<n.length;t++){var r=n[t];W(r);var i=R(r);i&&(G(r,i),Y(r,i))}}};function O(e){return Se.toPath(e,o,t)}function R(e){var t,n=i.getValue(e);if(n)return n.options?n:undefined;_.onUnRecoverableConfigFileDiagnostic=function(e){return t=e};var r=Se.getParsedCommandLineOfConfigFile(e,b,_,c);return _.onUnRecoverableConfigFileDiagnostic=Se.noop,i.setValue(e,r||t),r}function H(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];V.reportSolutionBuilderStatus(Se.createCompilerDiagnostic.apply(void 0,[e].concat(t)))}function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.onWatchStatusChange&&a.onWatchStatusChange(Se.createCompilerDiagnostic.apply(void 0,[e].concat(t)),V.getNewLine(),b)}function W(e){y.watch&&!w.hasKey(e)&&w.setValue(e,x(a,e,function(){z(e,Se.ConfigFileProgramReloadLevel.Full)},Se.PollingInterval.High,"Config file",e))}function G(r,i){y.watch&&Se.updateWatchingWildcardDirectories(_u(k,r),Se.createMapFromTemplate(i.configFileSpecs.wildcardDirectories),function(n,e){return N(a,n,function(e){var t=O(e);t===O(n)||!Se.hasExtension(t)||Se.isSupportedSourceFileName(e,i.options)?!function(t,e){if(e.options.noEmit)return!1;if(!Se.fileExtensionIs(t,".d.ts")&&(Se.fileExtensionIs(t,".ts")||Se.fileExtensionIs(t,".tsx")))return!1;var n=e.options.outFile||e.options.out;if(n&&(J(t,n)||J(t,Se.removeFileExtension(n)+".d.ts")))return!0;if(e.options.declarationDir&&Se.containsPath(e.options.declarationDir,t,o,!V.useCaseSensitiveFileNames()))return!0;if(e.options.outDir&&Se.containsPath(e.options.outDir,t,o,!V.useCaseSensitiveFileNames()))return!0;return!Se.forEach(e.fileNames,function(e){return J(t,e)})}(e,i)?z(r,Se.ConfigFileProgramReloadLevel.Partial):D(e+" is output file"):D("Project: "+r+" Detected file add/remove of non supported extension: "+e)},e,"Wild card directory",r)})}function Y(n,e){y.watch&&Se.mutateMap(_u(A,n),Se.arrayToMap(e.fileNames,O),{createNewValue:function(e,t){return S(a,t,function(){return z(n,Se.ConfigFileProgramReloadLevel.None)},Se.PollingInterval.Low,e,"Source file",n)},onDeleteValue:Se.closeFileWatcher})}function J(e,t){return 0===Se.comparePaths(e,t,o,!V.useCaseSensitiveFileNames())}function z(e,t){g=!0,q(e,t),$()}function U(e){return function(e){for(var c=pu(O),u=pu(O),l=[],d=[],p=pu(O),t=0,n=e;t<n.length;t++){!function f(e,t){if(u.hasKey(e))return;if(c.hasKey(e))return void(t||H(Se.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,l.join("\r\n")));c.setValue(e,!0);l.push(e);var n=R(e);if(n&&n.projectReferences)for(var r=0,i=n.projectReferences;r<i.length;r++){var a=i[r],o=ce(a.path);f(o,t||a.circular);var s=fu(p,o,function(){return pu(O)});s.setValue(e,!!a.prepend)}l.pop();u.setValue(e,!0);d.push(e)}(n[t])}return{buildQueue:d,referencingProjectsMap:p}}(e.map(ce))}function K(){return n=n||U(e)}function Z(e){if(e===undefined)return{type:Ae.Unbuildable,reason:"File deleted mid-build"};var t=L.getValue(e.options.configFilePath);if(t!==undefined)return t;var n=function(e){for(var t=undefined,n=Ve,r=0,i=e.fileNames;r<i.length;r++){var a=i[r];if(!V.fileExists(a))return{type:Ae.Unbuildable,reason:a+" does not exist"};var o=V.getModifiedTime(a)||Se.missingFileModifiedTime;n<o&&(t=a,n=o)}if(!e.fileNames.length&&!Se.canJsonReportNoInutFiles(e.raw))return{type:Ae.ContainerOnly};for(var s,c=Se.getAllProjectOutputs(e,!V.useCaseSensitiveFileNames()),u="(none)",l=Pe,d="(none)",p=Ve,f=Ve,_=!1,h=0,g=c;h<g.length;h++){var m=g[h];if(!V.fileExists(m)){s=m;break}var y,b,v=V.getModifiedTime(m)||Se.missingFileModifiedTime;if(v<l&&(l=v,u=m),v<n){_=!0;break}p<v&&(p=v,d=m),gu(m)&&(y=P.getValue(m),f=y!==undefined?hu(y,f):(b=V.getModifiedTime(m)||Se.missingFileModifiedTime,hu(f,b)))}var E,I=!1,T=!1;if(e.projectReferences){L.setValue(e.options.configFilePath,{type:Ae.ComputingUpstream});for(var C=0,B=e.projectReferences;C<B.length;C++){var x=B[C];T=T||!!x.prepend;var S=Z(R(Se.resolveProjectReferencePath(x)));if(S.type!==Ae.ComputingUpstream){if(S.type===Ae.Unbuildable)return{type:Ae.UpstreamBlocked,upstreamProjectName:x.path};if(S.type!==Ae.UpToDate)return{type:Ae.UpstreamOutOfDate,upstreamProjectName:x.path};if(!s){if(S.newestInputFileTime&&S.newestInputFileTime<=l)continue;if(S.newestDeclarationFileContentChangedTime&&S.newestDeclarationFileContentChangedTime<=l){I=!0,E=x.path;continue}return Se.Debug.assert(u!==undefined,"Should have an oldest output filename here"),{type:Ae.OutOfDateWithUpstream,outOfDateOutputFileName:u,newerProjectName:x.path}}}}}if(s!==undefined)return{type:Ae.OutputMissing,missingOutputFileName:s};{if(_)return{type:Ae.OutOfDateWithSelf,outOfDateOutputFileName:u,newerInputFileName:t};var N=X(e.options.configFilePath,l,u);if(N)return N;var D=Se.forEach(e.options.configFile.extendedSourceFiles||Se.emptyArray,function(e){return X(e,l,u)});if(D)return D}if(!F.hasKey(e.options.configFilePath)){F.setValue(e.options.configFilePath,!0);var k=Se.getOutputPathForBuildInfo(e.options);if(k){var A=M(k),w=A&&Se.getBuildInfo(A);if(w&&w.version!==Se.version)return{type:Ae.TsVersionOutputOfDate,version:w.version}}}if(T&&I)return{type:Ae.OutOfDateWithPrepend,outOfDateOutputFileName:u,newerProjectName:E};return{type:I?Ae.UpToDateWithUpstreamTypes:Ae.UpToDate,newestDeclarationFileContentChangedTime:f,newestInputFileTime:n,newestOutputFileTime:p,newestInputFileName:t,newestOutputFileName:d,oldestOutputFileName:u}}(e);return L.setValue(e.options.configFilePath,n),n}function X(e,t,n){if(t<(V.getModifiedTime(e)||Se.missingFileModifiedTime))return{type:Ae.OutOfDateWithSelf,outOfDateOutputFileName:n,newerInputFileName:e}}function q(e,t){t===Se.ConfigFileProgramReloadLevel.Full&&(i.removeKey(e),n=undefined),L.removeKey(e),B.removeKey(e),Q(e,t),ue()}function Q(e,t){var n=u.getValue(e);n===undefined?(u.setValue(e,t||Se.ConfigFileProgramReloadLevel.None),f.push(e)):n<(t||Se.ConfigFileProgramReloadLevel.None)&&u.setValue(e,t||Se.ConfigFileProgramReloadLevel.None)}function $(){a.setTimeout&&a.clearTimeout&&(s&&a.clearTimeout(s),s=a.setTimeout(ee,250))}function ee(){s=undefined,g&&(g=!1,d.clear(),j(Se.Diagnostics.File_change_detected_Starting_incremental_compilation));var e=function(){if(h<f.length){var e=f[h];h++;var t=u.getValue(e);return u.removeKey(e),u.getSize()||(f.length=0,h=0),{project:e,reloadLevel:t}}}();e&&(function(e,t){var n=R(e);if(!n)return pe(e);{var r;t===Se.ConfigFileProgramReloadLevel.Full?(W(e),G(e,n),Y(e,n)):t===Se.ConfigFileProgramReloadLevel.Partial&&(r=Se.getFileNamesFromConfigSpecs(n.configFileSpecs,Se.getDirectoryPath(e),n.options,_),Se.updateErrorForNoInputFiles(r,e,n.configFileSpecs,n.errors,Se.canJsonReportNoInutFiles(n.raw)),n.fileNames=r.fileNames,Y(e,n))}var i=Z(n);if(ge(e,i),i.type===Ae.UpstreamBlocked)return y.verbose&&H(Se.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,e,i.upstreamProjectName);if(i.type===Ae.UpToDateWithUpstreamTypes)return oe(n);var a=(de(i,e)?ne:ae)(e);if(a&De.AnyErrors)return;var o=K(),s=o.referencingProjectsMap,c=o.buildQueue,u=s.getValue(e);if(!u)return;for(var l=c.indexOf(e)+1;l<c.length;l++){var d,p=c[l],f=u.getValue(p);f!==undefined&&(d=L.getValue(p),a&De.DeclarationOutputUnchanged?d&&d.type===Ae.UpToDate&&(f?L.setValue(p,{type:Ae.OutOfDateWithPrepend,outOfDateOutputFileName:d.oldestOutputFileName,newerProjectName:e}):d.type=Ae.UpToDateWithUpstreamTypes):!d||d.type!==Ae.UpToDate&&d.type!==Ae.UpToDateWithUpstreamTypes&&d.type!==Ae.OutOfDateWithPrepend||L.setValue(p,{type:Ae.OutOfDateWithUpstream,outOfDateOutputFileName:d.type===Ae.OutOfDateWithPrepend?d.outOfDateOutputFileName:d.oldestOutputFileName,newerProjectName:e}),Q(p))}}(e.project,e.reloadLevel),u.getSize()?y.watch&&!s&&$():(le(),te()))}function te(){var t;(y.watch||V.reportErrorSummary)&&(K().buildQueue.forEach(function(e){d.hasKey(e)||_e(B.getValue(e)||Se.emptyArray)}),t=0,B.forEach(function(e){return t+=Se.getErrorCountForSummary(e)}),y.watch?j(Se.getWatchErrorSummaryDiagnosticMessage(t),t):V.reportErrorSummary(t))}function ne(r){if(y.dry)return H(Se.Diagnostics.A_non_dry_build_would_build_project_0,r),De.Success;y.verbose&&H(Se.Diagnostics.Building_project_0,r);var e,t,a=De.DeclarationOutputUnchanged,n=R(r);if(!n)return a|=De.ConfigFileErrors,pe(r),L.setValue(r,{type:Ae.Unbuildable,reason:"Config file errors"}),a;if(0===n.fileNames.length)return fe(r,n.errors),De.None;E=n.options,T&&(e=O(r),0===T.directoryToModuleNameMap.redirectsMap.size?(Se.Debug.assert(0===T.moduleNameToDirectoryMap.redirectsMap.size),T.directoryToModuleNameMap.redirectsMap.set(e,T.directoryToModuleNameMap.ownMap),T.moduleNameToDirectoryMap.redirectsMap.set(e,T.moduleNameToDirectoryMap.ownMap)):(Se.Debug.assert(0<T.moduleNameToDirectoryMap.redirectsMap.size),t={sourceFile:E.configFile,commandLine:n},T.directoryToModuleNameMap.setOwnMap(T.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(t)),T.moduleNameToDirectoryMap.setOwnMap(T.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(t))),T.directoryToModuleNameMap.setOwnOptions(E),T.moduleNameToDirectoryMap.setOwnOptions(E));var i=V.createProgram(n.fileNames,n.options,I,function(e,t){if(y.force)return undefined;var n=C.getValue(e);return n||Se.readBuilderProgram(t.options,M)}(r,n),n.errors,n.projectReferences),o=i.getConfigFileParsingDiagnostics().concat(i.getOptionsDiagnostics(),i.getGlobalDiagnostics(),i.getSyntacticDiagnostics());if(o.length)return m(o,De.SyntaxErrors,"Syntactic");var s=i.getSemanticDiagnostics();if(s.length)return m(s,De.TypeErrors,"Semantic");i.backupState();var c,u=Ve,l=!1,d=function d(e){return(c=c||[]).push(e)},p=[];if(Se.emitFilesAndReportErrors(i,d,undefined,undefined,function(e,t,n){return p.push({name:e,text:t,writeByteOrderMark:n})}),c)return i.restoreState(),m(c,De.DeclarationEmitErrors,"Declaration file");var f=Se.createDiagnosticCollection(),_=pu(O);p.forEach(function(e){var t,n=e.name,r=e.text,i=e.writeByteOrderMark;!l&&gu(n)&&(V.fileExists(n)&&M(n)===r?t=V.getModifiedTime(n):(a&=~De.DeclarationOutputUnchanged,l=!0)),_.setValue(n,n),Se.writeFile(I,f,n,r,i),t!==undefined&&(u=hu(t,u),P.setValue(n,t))});var h=f.getDiagnostics();if(h.length)return m(h,De.EmitErrors,"Emit");v&&(_.forEach(function(e){return re(n,e)}),Se.listFiles(i,v)),u=se(n,u,Se.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,_);var g={type:Ae.UpToDate,newestDeclarationFileContentChangedTime:l?Pe:u,oldestOutputFileName:p.length?p[0].name:Se.getFirstProjectOutput(n,!V.useCaseSensitiveFileNames())};return B.removeKey(r),L.setValue(r,g),ie(r,i),E=b,a;function m(e,t,n){return a|=t,fe(r,e),v&&Se.listFiles(i,v),L.setValue(r,{type:Ae.Unbuildable,reason:n+" errors"}),ie(r,i),E=b,a}}function re(e,t){v&&e.options.listEmittedFiles&&v("TSFILE: "+t)}function ie(e,t){V.afterProgramEmitAndDiagnostics&&V.afterProgramEmitAndDiagnostics(t),y.watch&&(t.releaseProgram(),C.setValue(e,t))}function ae(e){if(y.dry)return H(Se.Diagnostics.A_non_dry_build_would_update_output_of_project_0,e),De.Success;y.verbose&&H(Se.Diagnostics.Updating_output_of_project_0,e);var t=Se.Debug.assertDefined(R(e));E=t.options;var n=Se.emitUsingBuildInfo(t,I,function(e){return R(ce(e.path))});if(Se.isString(n))return H(Se.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,e,he(n)),ne(e);Se.Debug.assert(!!n.length);var i=Se.createDiagnosticCollection(),a=pu(O);n.forEach(function(e){var t=e.name,n=e.text,r=e.writeByteOrderMark;a.setValue(t,t),Se.writeFile(I,i,t,n,r)});var r=i.getDiagnostics();if(r.length)return fe(e,r),L.setValue(e,{type:Ae.Unbuildable,reason:"Emit errors"}),E=b,De.DeclarationOutputUnchanged|De.EmitErrors;v&&a.forEach(function(e){return re(t,e)});var o=se(t,Ve,Se.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,a),s={type:Ae.UpToDate,newestDeclarationFileContentChangedTime:o,oldestOutputFileName:n[0].name};return B.removeKey(e),L.setValue(e,s),E=b,De.DeclarationOutputUnchanged}function oe(e){if(y.dry)return H(Se.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,e.options.configFilePath),0;var t=se(e,Ve,Se.Diagnostics.Updating_output_timestamps_of_project_0),n={type:Ae.UpToDate,newestDeclarationFileContentChangedTime:t,oldestOutputFileName:Se.getFirstProjectOutput(e,!V.useCaseSensitiveFileNames())};L.setValue(e.options.configFilePath,n)}function se(e,t,n,r){var i=Se.getAllProjectOutputs(e,!V.useCaseSensitiveFileNames());if(!r||i.length!==r.getSize()){y.verbose&&H(n,e.options.configFilePath);for(var a=V.now?V.now():new Date,o=0,s=i;o<s.length;o++){var c=s[o];r&&r.hasKey(c)||(gu(c)&&(t=hu(t,V.getModifiedTime(c)||Se.missingFileModifiedTime)),V.setModifiedTime(c,a),re(e,c))}}return t}function ce(e){return vu(Se.resolvePath(V.getCurrentDirectory(),e))}function ue(){p&&le();var e=M,n=I.getSourceFile,t=Se.changeCompilerHostLikeToUseCache(V,O,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.call.apply(n,[I].concat(e))}),r=t.originalReadFile,i=t.originalFileExists,a=t.originalDirectoryExists,o=t.originalCreateDirectory,s=t.originalWriteFile,c=t.getSourceFileWithCache,u=t.readFileWithCache;M=u,I.getSourceFile=c;var l,d=I.resolveModuleNames;I.resolveModuleNames||(l=function l(e,t,n){return Se.resolveModuleName(e,t,E,I,T,n).resolvedModule},I.resolveModuleNames=function(e,t,n,r){return Se.loadWithLocalCache(Se.Debug.assertEachDefined(e),t,r,l)}),p={originalReadFile:r,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:o,originalWriteFile:s,originalReadFileWithCache:e,originalGetSourceFile:n,originalResolveModuleNames:d}}function le(){p&&(V.readFile=p.originalReadFile,V.fileExists=p.originalFileExists,V.directoryExists=p.originalDirectoryExists,V.createDirectory=p.originalCreateDirectory,V.writeFile=p.originalWriteFile,I.getSourceFile=p.originalGetSourceFile,M=p.originalReadFileWithCache,I.resolveModuleNames=p.originalResolveModuleNames,c.clear(),T&&(T.directoryToModuleNameMap.clear(),T.moduleNameToDirectoryMap.clear()),p=undefined)}function de(e,t){if(e.type!==Ae.OutOfDateWithPrepend||y.force)return 1;var n=R(t);return!n||0===n.fileNames.length||n.errors.length||!Se.isIncrementalCompilation(n.options)}function pe(e){fe(e,[i.getValue(e)])}function fe(e,t){_e(t),d.setValue(e,!0),B.setValue(e,t)}function _e(e){e.forEach(function(e){return V.reportDiagnostic(e)})}function he(e){return Se.convertToRelativePath(e,V.getCurrentDirectory(),function(e){return I.getCanonicalFileName(e)})}function ge(e,t){return y.verbose&&Eu(e,t,he,H)}},Se.resolveConfigFileProjectName=vu,Se.formatUpToDateStatus=Eu,Le=rg=rg||{},(Me=Le.server||(Le.server={})).ActionSet="action::set",Me.ActionInvalidate="action::invalidate",Me.ActionPackageInstalled="action::packageInstalled",Me.EventTypesRegistry="event::typesRegistry",Me.EventBeginInstallTypes="event::beginInstallTypes",Me.EventEndInstallTypes="event::endInstallTypes",Me.EventInitializationFailed="event::initializationFailed",(Fe=Me.Arguments||(Me.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",Fe.LogFile="--logFile",Fe.EnableTelemetry="--enableTelemetry",Fe.TypingSafeListLocation="--typingSafeListLocation",Fe.TypesMapLocation="--typesMapLocation",Fe.NpmLocation="--npmLocation",Fe.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",Me.hasArgument=function(e){return 0<=Le.sys.args.indexOf(e)},Me.findArgument=function(e){var t=Le.sys.args.indexOf(e);return 0<=t&&t<Le.sys.args.length-1?Le.sys.args[t+1]:undefined},Me.nowString=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()},function(T){function C(e,t){return new Oe.Version(Oe.getProperty(t,"ts"+Oe.versionMajorMinor)||Oe.getProperty(t,"latest")).compareTo(e.version)<=0}var e;T.isTypingUpToDate=C,T.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],T.nodeCoreModules=Oe.arrayToSet(T.nodeCoreModuleList),T.loadSafeList=function(t,e){var n=Oe.readConfigFile(e,function(e){return t.readFile(e)});return Oe.createMapFromTemplate(n.config)},T.loadTypesMap=function(t,e){var n=Oe.readConfigFile(e,function(e){return t.readFile(e)});return n.config?Oe.createMapFromTemplate(n.config.simpleMap):undefined},T.discoverTypings=function(p,f,e,t,r,n,i,a,o){if(!i||!i.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var _=Oe.createMap();e=Oe.mapDefined(e,function(e){var t=Oe.normalizePath(e);if(Oe.hasJSFileExtension(t))return t});var s=[];i.include&&v(i.include,"Explicitly included types");var c=i.exclude||[],u=Oe.arrayToSet(e,Oe.getDirectoryPath);u.set(t,!0),u.forEach(function(e,t){E(Oe.combinePaths(t,"package.json"),s),E(Oe.combinePaths(t,"bower.json"),s),I(Oe.combinePaths(t,"bower_components"),s),I(Oe.combinePaths(t,"node_modules"),s)}),function(e){var t=Oe.mapDefined(e,function(e){if(!Oe.hasJSFileExtension(e))return undefined;var t=Oe.removeFileExtension(Oe.getBaseFileName(e.toLowerCase())),n=Oe.removeMinAndVersionNumbers(t);return r.get(n)});t.length&&v(t,"Inferred typings from file names");Oe.some(e,function(e){return Oe.fileExtensionIs(e,".jsx")})&&(f&&f("Inferred 'react' typings due to presence of '.jsx' extension"),b("react"))}(e),a&&v(Oe.deduplicate(a.map(function(e){return T.nodeCoreModules.has(e)?"node":e}),Oe.equateStringsCaseSensitive,Oe.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),n.forEach(function(e,t){var n=o.get(t);_.has(t)&&_.get(t)===undefined&&n!==undefined&&C(e,n)&&_.set(t,e.typingLocation)});for(var l=0,d=c;l<d.length;l++){var h=d[l];_["delete"](h)&&f&&f("Typing for "+h+" is in exclude list, will be ignored.")}var g=[],m=[];_.forEach(function(e,t){e!==undefined?m.push(e):g.push(t)});var y={cachedTypingPaths:m,newTypingNames:g,filesToWatch:s};return f&&f("Result: "+JSON.stringify(y)),y;function b(e){_.has(e)||_.set(e,undefined)}function v(e,t){f&&f(t+": "+JSON.stringify(e)),Oe.forEach(e,b)}function E(e,t){var n;p.fileExists(e)&&(t.push(e),n=Oe.readConfigFile(e,function(e){return p.readFile(e)}).config,v(Oe.flatMap([n.dependencies,n.devDependencies,n.optionalDependencies,n.peerDependencies],Oe.getOwnKeys),"Typing names in '"+e+"' dependencies"))}function I(e,t){if(t.push(e),p.directoryExists(e)){var n=p.readDirectory(e,[".json"],undefined,undefined,2);f&&f("Searching for typing names in "+e+"; all files: "+JSON.stringify(n));for(var r=[],i=0,a=n;i<a.length;i++){var o,s,c,u=a[i],l=Oe.normalizePath(u),d=Oe.getBaseFileName(l);"package.json"!==d&&"bower.json"!==d||(o=Oe.readConfigFile(l,function(e){return p.readFile(e)}).config,"package.json"===d&&o._requiredBy&&0===Oe.filter(o._requiredBy,function(e){return"#"===e[0]||"/"===e}).length||o.name&&((s=o.types||o.typings)?(c=Oe.getNormalizedAbsolutePath(s,Oe.getDirectoryPath(l)),f&&f(" Package '"+o.name+"' provides its own types."),_.set(o.name,c)):r.push(o.name)))}v(r," Found package names")}}},(e=T.PackageNameValidationResult||(T.PackageNameValidationResult={}))[e.Ok=0]="Ok",e[e.ScopedPackagesNotSupported=1]="ScopedPackagesNotSupported",e[e.EmptyName=2]="EmptyName",e[e.NameTooLong=3]="NameTooLong",e[e.NameStartsWithDot=4]="NameStartsWithDot",e[e.NameStartsWithUnderscore=5]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=6]="NameContainsNonURISafeCharacters";T.validatePackageName=function(e){return e?214<e.length?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},T.renderPackageNameValidationFailure=function(e,t){switch(e){case 2:return"Package name '"+t+"' cannot be empty";case 3:return"Package name '"+t+"' should be less than 214 characters";case 4:return"Package name '"+t+"' cannot start with '.'";case 5:return"Package name '"+t+"' cannot start with '_'";case 1:return"Package '"+t+"' is scoped and currently is not supported";case 6:return"Package name '"+t+"' contains non URI safe characters";case 0:return Oe.Debug.fail();default:throw Oe.Debug.assertNever(e)}}}((Oe=rg=rg||{}).JsTyping||(Oe.JsTyping={})),Re=rg=rg||{},He=Re.ScriptSnapshot||(Re.ScriptSnapshot={}),Iu.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},Iu.prototype.getLength=function(){return this.text.length},Iu.prototype.getChangeRange=function(){return undefined},je=Iu,He.fromString=function(e){return new je(e)},Re.emptyOptions={},(We=Re.HighlightSpanKind||(Re.HighlightSpanKind={})).none="none",We.definition="definition",We.reference="reference",We.writtenReference="writtenReference",(Ye=Ge=Re.IndentStyle||(Re.IndentStyle={}))[Ye.None=0]="None",Ye[Ye.Block=1]="Block",Ye[Ye.Smart=2]="Smart",Re.getDefaultFormatCodeSettings=Tu,Re.testFormatSettings=Tu("\n"),(ze=Re.SymbolDisplayPartKind||(Re.SymbolDisplayPartKind={}))[ze.aliasName=0]="aliasName",ze[ze.className=1]="className",ze[ze.enumName=2]="enumName",ze[ze.fieldName=3]="fieldName",ze[ze.interfaceName=4]="interfaceName",ze[ze.keyword=5]="keyword",ze[ze.lineBreak=6]="lineBreak",ze[ze.numericLiteral=7]="numericLiteral",ze[ze.stringLiteral=8]="stringLiteral",ze[ze.localName=9]="localName",ze[ze.methodName=10]="methodName",ze[ze.moduleName=11]="moduleName",ze[ze.operator=12]="operator",ze[ze.parameterName=13]="parameterName",ze[ze.propertyName=14]="propertyName",ze[ze.punctuation=15]="punctuation",ze[ze.space=16]="space",ze[ze.text=17]="text",ze[ze.typeParameterName=18]="typeParameterName",ze[ze.enumMemberName=19]="enumMemberName",ze[ze.functionName=20]="functionName",ze[ze.regularExpressionLiteral=21]="regularExpressionLiteral",(Ue=Re.OutliningSpanKind||(Re.OutliningSpanKind={})).Comment="comment",Ue.Region="region",Ue.Code="code",Ue.Imports="imports",(Ke=Re.OutputFileType||(Re.OutputFileType={}))[Ke.JavaScript=0]="JavaScript",Ke[Ke.SourceMap=1]="SourceMap",Ke[Ke.Declaration=2]="Declaration",(Ze=Re.EndOfLineState||(Re.EndOfLineState={}))[Ze.None=0]="None",Ze[Ze.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",Ze[Ze.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",Ze[Ze.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",Ze[Ze.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",Ze[Ze.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",Ze[Ze.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(Xe=Re.TokenClass||(Re.TokenClass={}))[Xe.Punctuation=0]="Punctuation",Xe[Xe.Keyword=1]="Keyword",Xe[Xe.Operator=2]="Operator",Xe[Xe.Comment=3]="Comment",Xe[Xe.Whitespace=4]="Whitespace",Xe[Xe.Identifier=5]="Identifier",Xe[Xe.NumberLiteral=6]="NumberLiteral",Xe[Xe.BigIntLiteral=7]="BigIntLiteral",Xe[Xe.StringLiteral=8]="StringLiteral",Xe[Xe.RegExpLiteral=9]="RegExpLiteral",(qe=Re.ScriptElementKind||(Re.ScriptElementKind={})).unknown="",qe.warning="warning",qe.keyword="keyword",qe.scriptElement="script",qe.moduleElement="module",qe.classElement="class",qe.localClassElement="local class",qe.interfaceElement="interface",qe.typeElement="type",qe.enumElement="enum",qe.enumMemberElement="enum member",qe.variableElement="var",qe.localVariableElement="local var",qe.functionElement="function",qe.localFunctionElement="local function",qe.memberFunctionElement="method",qe.memberGetAccessorElement="getter",qe.memberSetAccessorElement="setter",qe.memberVariableElement="property",qe.constructorImplementationElement="constructor",qe.callSignatureElement="call",qe.indexSignatureElement="index",qe.constructSignatureElement="construct",qe.parameterElement="parameter",qe.typeParameterElement="type parameter",qe.primitiveType="primitive type",qe.label="label",qe.alias="alias",qe.constElement="const",qe.letElement="let",qe.directory="directory",qe.externalModuleName="external module name",qe.jsxAttribute="JSX attribute",qe.string="string",(Qe=Re.ScriptElementKindModifier||(Re.ScriptElementKindModifier={})).none="",Qe.publicMemberModifier="public",Qe.privateMemberModifier="private",Qe.protectedMemberModifier="protected",Qe.exportedModifier="export",Qe.ambientModifier="declare",Qe.staticModifier="static",Qe.abstractModifier="abstract",Qe.optionalModifier="optional",Qe.dtsModifier=".d.ts",Qe.tsModifier=".ts",Qe.tsxModifier=".tsx",Qe.jsModifier=".js",Qe.jsxModifier=".jsx",Qe.jsonModifier=".json",($e=Re.ClassificationTypeNames||(Re.ClassificationTypeNames={})).comment="comment",$e.identifier="identifier",$e.keyword="keyword",$e.numericLiteral="number",$e.bigintLiteral="bigint",$e.operator="operator",$e.stringLiteral="string",$e.whiteSpace="whitespace",$e.text="text",$e.punctuation="punctuation",$e.className="class name",$e.enumName="enum name",$e.interfaceName="interface name",$e.moduleName="module name",$e.typeParameterName="type parameter name",$e.typeAliasName="type alias name",$e.parameterName="parameter name",$e.docCommentTagName="doc comment tag name",$e.jsxOpenTagName="jsx open tag name",$e.jsxCloseTagName="jsx close tag name",$e.jsxSelfClosingTagName="jsx self closing tag name",$e.jsxAttribute="jsx attribute",$e.jsxText="jsx text",$e.jsxAttributeStringLiteralValue="jsx attribute string literal value",(nt=Re.ClassificationType||(Re.ClassificationType={}))[nt.comment=1]="comment",nt[nt.identifier=2]="identifier",nt[nt.keyword=3]="keyword",nt[nt.numericLiteral=4]="numericLiteral",nt[nt.operator=5]="operator",nt[nt.stringLiteral=6]="stringLiteral",nt[nt.regularExpressionLiteral=7]="regularExpressionLiteral",nt[nt.whiteSpace=8]="whiteSpace",nt[nt.text=9]="text",nt[nt.punctuation=10]="punctuation",nt[nt.className=11]="className",nt[nt.enumName=12]="enumName",nt[nt.interfaceName=13]="interfaceName",nt[nt.moduleName=14]="moduleName",nt[nt.typeParameterName=15]="typeParameterName",nt[nt.typeAliasName=16]="typeAliasName",nt[nt.parameterName=17]="parameterName",nt[nt.docCommentTagName=18]="docCommentTagName",nt[nt.jsxOpenTagName=19]="jsxOpenTagName",nt[nt.jsxCloseTagName=20]="jsxCloseTagName",nt[nt.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",nt[nt.jsxAttribute=22]="jsxAttribute",nt[nt.jsxText=23]="jsxText",nt[nt.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",nt[nt.bigintLiteral=25]="bigintLiteral";!function(f){var e;function i(e){switch(e.kind){case 238:return f.isInJSFile(e)&&f.getJSDocEnumTag(e)?7:1;case 152:case 187:case 155:case 154:case 276:case 277:case 157:case 156:case 158:case 159:case 160:case 240:case 197:case 198:case 275:case 268:return 1;case 151:case 242:case 243:case 169:return 2;case 310:return e.name===undefined?3:2;case 279:case 241:return 3;case 245:return f.isAmbientModule(e)||1===f.getModuleInstanceState(e)?5:4;case 244:case 253:case 254:case 249:case 250:case 255:case 256:return 7;case 285:return 5}return 7}function a(e){for(;149===e.parent.kind;)e=e.parent;return f.isInternalModuleImportEqualsDeclaration(e.parent)&&e.parent.moduleReference===e}function t(e,t){var n=r(e);return!!n&&!!n.parent&&t(n.parent)&&n.parent.expression===n}function r(e){return s(e)?e.parent:e}function n(e){return 73===e.kind&&f.isBreakOrContinueStatement(e.parent)&&e.parent.label===e}function o(e){return 73===e.kind&&f.isLabeledStatement(e.parent)&&e.parent.label===e}function s(e){return e&&e.parent&&190===e.parent.kind&&e.parent.name===e}f.scanner=f.createScanner(8,!0),(e=f.SemanticMeaning||(f.SemanticMeaning={}))[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",f.getMeaningFromDeclaration=i,f.getMeaningFromLocation=function(e){return 285===e.kind?1:255===e.parent.kind||260===e.parent.kind?7:a(e)?(r=149===(n=e).kind?n:f.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:undefined)&&249===r.parent.kind?7:4:f.isDeclarationName(e)?i(e.parent):function(e){f.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent);switch(e.kind){case 101:return!f.isExpressionNode(e);case 179:return!0}switch(e.parent.kind){case 165:return!0;case 184:return!e.parent.isTypeOf;case 212:return!f.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)}return!1}(e)?2:function(e){var t=e,n=!0;if(149===t.parent.kind){for(;t.parent&&149===t.parent.kind;)t=t.parent;n=t.right===e}return 165===t.parent.kind&&!n}(t=e)||function(e){var t=e,n=!0;if(190===t.parent.kind){for(;t.parent&&190===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&212===t.parent.kind&&274===t.parent.parent.kind){var r=t.parent.parent.parent;return 241===r.kind&&110===t.parent.parent.token||242===r.kind&&87===t.parent.parent.token}}(t)?4:f.isTypeParameterDeclaration(e.parent)?(f.Debug.assert(f.isJSDocTemplateTag(e.parent.parent)),2):f.isLiteralTypeNode(e.parent)?3:1;var t,n,r},f.isInRightSideOfInternalImportEqualsDeclaration=a,f.isCallExpressionTarget=function(e){return t(e,f.isCallExpression)},f.isNewExpressionTarget=function(e){return t(e,f.isNewExpression)},f.isCallOrNewExpressionTarget=function(e){return t(e,f.isCallOrNewExpression)},f.climbPastPropertyAccess=r,f.getTargetLabel=function(e,t){for(;e;){if(234===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}return undefined},f.hasPropertyAccessExpressionWithName=function(e,t){return!!f.isPropertyAccessExpression(e.expression)&&e.expression.name.text===t},f.isJumpStatementTarget=n,f.isLabelOfLabeledStatement=o,f.isLabelName=function(e){return o(e)||n(e)},f.isTagName=function(e){return f.isJSDocTag(e.parent)&&e.parent.tagName===e},f.isRightSideOfQualifiedName=function(e){return 149===e.parent.kind&&e.parent.right===e},f.isRightSideOfPropertyAccess=s,f.isNameOfModuleDeclaration=function(e){return 245===e.parent.kind&&e.parent.name===e},f.isNameOfFunctionDeclaration=function(e){return 73===e.kind&&f.isFunctionLike(e.parent)&&e.parent.name===e},f.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(e){switch(e.parent.kind){case 155:case 154:case 276:case 279:case 157:case 156:case 159:case 160:case 245:return f.getNameOfDeclaration(e.parent)===e;case 191:return e.parent.argumentExpression===e;case 150:return!0;case 183:return 181===e.parent.parent.kind;default:return!1}},f.isExpressionOfExternalModuleImportEqualsDeclaration=function(e){return f.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&f.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e},f.getContainerNode=function(e){for(f.isJSDocTypeAlias(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return undefined;switch(e.kind){case 285:case 157:case 156:case 240:case 197:case 159:case 160:case 241:case 242:case 244:case 245:return e}}},f.getNodeKind=function j(e){switch(e.kind){case 285:return f.isExternalModule(e)?"module":"script";case 245:return"module";case 241:case 210:return"class";case 242:return"interface";case 243:case 303:case 310:return"type";case 244:return"enum";case 238:return i(e);case 187:return i(f.getRootDeclaration(e));case 198:case 240:case 197:return"function";case 159:return"getter";case 160:return"setter";case 157:case 156:return"method";case 155:case 154:return"property";case 163:return"index";case 162:return"construct";case 161:return"call";case 158:return"constructor";case 151:return"type parameter";case 279:return"enum member";case 152:return f.hasModifier(e,92)?"property":"parameter";case 249:case 254:case 258:case 252:return"alias";case 205:var t=f.getAssignmentDeclarationKind(e),n=e.right;switch(t){case 7:case 8:case 9:case 0:return"";case 1:case 2:var r=j(n);return""===r?"const":r;case 3:return f.isFunctionExpression(n)?"method":"property";case 4:return"property";case 5:return f.isFunctionExpression(n)?"method":"property";case 6:return"local class";default:return f.assertType(t),""}case 73:return f.isImportClause(e.parent)?"alias":"";default:return""}function i(e){return f.isVarConst(e)?"const":f.isLet(e)?"let":"var"}},f.isThis=function(e){switch(e.kind){case 101:return!0;case 73:return f.identifierIsThisKeyword(e)&&152===e.parent.kind;default:return!1}};var c,u=/^\/\/\/\s*</;function l(e,t){return p(e.pos,e.end,t)}function d(e,t){return e.pos<t&&t<e.end}function p(e,t,n){return e<=n.pos&&t>=n.end}function _(e,t,n,r){return Math.max(e,n)<Math.min(t,r)}function h(e,t,n){var r=e.getChildren(n);if(r.length){var i=f.last(r);if(i.kind===t)return!0;if(26===i.kind&&1!==r.length)return r[r.length-2].kind===t}return!1}function g(e,t,n){return!!m(e,t,n)}function m(e,t,n){return f.find(e.getChildren(n),function(e){return e.kind===t})}function y(t){var e=f.find(t.parent.getChildren(),function(e){return f.isSyntaxList(e)&&l(e,t)});return f.Debug.assert(!e||f.contains(e.getChildren(),t)),e}function b(e,t,n){return E(e,t,!1,n,!1)}function v(e,t){return E(e,t,!0,undefined,!1)}function E(e,t,n,r,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if(t<(n?c.getFullStart():c.getStart(e,!0)))break;var u=c.getEnd();if(t<u||t===u&&(1===c.kind||i)){a=c;continue e}if(r&&u===t){var l=I(t,e,c);if(l&&r(l))return l}}return a}}function I(c,u,l,d){var e=function p(e){if(T(e)&&1!==e.kind)return e;var t=e.getChildren(u);for(var n=0;n<t.length;n++){var r=t[n];if(c<r.end){var i=r.getStart(u,!d),a=c<=i||!A(r,u)||x(r);if(a){var o=B(t,n,u);return o&&C(o,u)}return p(r)}}f.Debug.assert(l!==undefined||285===e.kind||1===e.kind||f.isJSDocCommentContainingNode(e));var s=B(t,t.length,u);return s&&C(s,u)}(l||u);return f.Debug.assert(!(e&&x(e))),e}function T(e){return f.isToken(e)&&!x(e)}function C(e,t){if(T(e))return e;var n=e.getChildren(t),r=B(n,n.length,t);return r&&C(r,t)}function B(e,t,n){for(var r=t-1;0<=r;r--){if(x(e[r]))f.Debug.assert(0<r,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(A(e[r],n))return e[r]}}function x(e){return f.isJsxText(e)&&e.containsOnlyTriviaWhiteSpaces}function S(e,t,n){for(var r=e.kind,i=0;;){var a=I(e.getFullStart(),n);if(!a)return undefined;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===r&&i++}}function N(e,t,n){var r=n.getTypeAtLocation(e);return(f.isNewExpression(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=t})}function D(e,t){for(var n=e,r=0,i=0;n;){switch(n.kind){case 28:if(!(n=I(n.getFullStart(),t))||!f.isIdentifier(n))return undefined;if(!r)return f.isDeclarationName(n)?undefined:{called:n,nTypeArguments:i};r--;break;case 48:r=3;break;case 47:r=2;break;case 30:r++;break;case 19:if(!(n=S(n,18,t)))return undefined;break;case 21:if(!(n=S(n,20,t)))return undefined;break;case 23:if(!(n=S(n,22,t)))return undefined;break;case 27:i++;break;case 37:case 73:case 10:case 8:case 9:case 103:case 88:case 105:case 87:case 130:case 24:case 50:case 56:case 57:break;default:if(f.isTypeNode(n))break;return undefined}n=I(n.getFullStart(),t)}return undefined}function k(e,t,n){return f.formatting.getRangeOfEnclosingComment(e,t,undefined,n)}function A(e,t){return 1===e.kind?e.jsDoc:0!==e.getWidth(t)}function w(e,t,n){var r=k(e,t,undefined);return!!r&&n===u.test(e.text.substring(r.pos,r.end))}function V(e,t){return{span:e,newText:t}}function P(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function L(e,t,n,r){return f.createImportDeclaration(undefined,undefined,e||t?f.createImportClause(e,t&&t.length?f.createNamedImports(t):undefined):undefined,"string"==typeof n?M(n,r):n)}function M(e,t){return f.createLiteral(e,0===t)}function F(e,t){return f.isStringDoubleQuoted(e,t)?1:0}function O(e){return"default"!==e.escapedName?e.escapedName:f.firstDefined(e.declarations,function(e){var t=f.getNameOfDeclaration(e);return t&&73===t.kind?t.escapedText:undefined})}function R(e,r,i,a){var t=f.createMap();return function o(e){if(!(96&e.flags&&f.addToSeen(t,f.getSymbolId(e))))return;return f.firstDefined(e.declarations,function(e){return f.firstDefined(f.getAllSuperTypeNodes(e),function(e){var t=i.getTypeAtLocation(e),n=t&&t.symbol&&i.getPropertyOfType(t,r);return t&&n&&(f.firstDefined(i.getRootSymbols(n),a)||o(t.symbol))})})}(e)}function H(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}f.getLineStartPositionForPosition=function(e,t){return f.getLineStarts(t)[t.getLineAndCharacterOfPosition(e).line]},f.rangeContainsRange=l,f.rangeContainsRangeExclusive=function(e,t){return d(e,t.pos)&&d(e,t.end)},f.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},f.rangeContainsPositionExclusive=d,f.startEndContainsRange=p,f.rangeContainsStartEnd=function(e,t,n){return e.pos<=t&&e.end>=n},f.rangeOverlapsWithStartEnd=function(e,t,n){return _(e.pos,e.end,t,n)},f.nodeOverlapsWithStartEnd=function(e,t,n,r){return _(e.getStart(t),e.end,n,r)},f.startEndOverlapsWithStartEnd=_,f.positionBelongsToNode=function(e,t,n){return f.Debug.assert(e.pos<=t),t<e.end||!function i(e,t){if(e===undefined||f.nodeIsMissing(e))return!1;switch(e.kind){case 241:case 242:case 244:case 189:case 185:case 169:case 219:case 246:case 247:case 253:case 257:return h(e,19,t);case 275:return i(e.block,t);case 193:if(!e.arguments)return!0;case 192:case 196:case 178:return h(e,21,t);case 166:case 167:return i(e.type,t);case 158:case 159:case 160:case 240:case 197:case 157:case 156:case 162:case 161:case 198:return e.body?i(e.body,t):e.type?i(e.type,t):g(e,21,t);case 245:return!!e.body&&i(e.body,t);case 223:return e.elseStatement?i(e.elseStatement,t):i(e.thenStatement,t);case 222:return i(e.expression,t)||g(e,26,t);case 188:case 186:case 191:case 150:case 171:return h(e,23,t);case 163:return e.type?i(e.type,t):g(e,23,t);case 272:case 273:return!1;case 226:case 227:case 228:case 225:return i(e.statement,t);case 224:return g(e,108,t)?h(e,21,t):i(e.statement,t);case 168:return i(e.exprName,t);case 200:case 199:case 201:case 208:case 209:var n=e;return i(n.expression,t);case 194:return i(e.template,t);case 207:var r=f.lastOrUndefined(e.templateSpans);return i(r,t);case 217:return f.nodeIsPresent(e.literal);case 256:case 250:return f.nodeIsPresent(e.moduleSpecifier);case 203:return i(e.operand,t);case 205:return i(e.right,t);case 206:return i(e.whenFalse,t);default:return!0}}(e,n)},f.findListItemInfo=function(e){var t=y(e);if(!t)return undefined;var n=t.getChildren();return{listItemIndex:f.indexOfNode(n,e),list:t}},f.hasChildOfKind=g,f.findChildOfKind=m,f.findContainingList=y,f.getTouchingPropertyName=function(e,t){return b(e,t,function(e){return f.isPropertyNameLiteral(e)||f.isKeyword(e.kind)})},f.getTouchingToken=b,f.getTokenAtPosition=v,f.findTokenOnLeftOfPosition=function(e,t){var n=v(e,t);return f.isToken(n)&&t>n.getStart(e)&&t<n.getEnd()?n:I(t,e)},f.findNextToken=function(n,e,r){return function i(e){if(f.isToken(e)&&e.pos===n.end)return e;return f.firstDefined(e.getChildren(),function(e){var t=e.pos<=n.pos&&e.end>n.end||e.pos===n.end;return t&&A(e,r)?i(e):undefined})}(e)},f.findPrecedingToken=I,f.isInString=function(e,t,n){if(void 0===n&&(n=I(t,e)),n&&f.isStringTextContainingNode(n)){var r=n.getStart(e),i=n.getEnd();if(r<t&&t<i)return!0;if(t===i)return!!n.isUnterminated}return!1},f.isInsideJsxElementOrAttribute=function(e,t){var n=v(e,t);return!!n&&(11===n.kind||(28===n.kind&&11===n.parent.kind||(28===n.kind&&271===n.parent.kind||(!(!n||19!==n.kind||271!==n.parent.kind)||28===n.kind&&264===n.parent.kind))))},f.isInTemplateString=function(e,t){var n=v(e,t);return f.isTemplateLiteralKind(n.kind)&&t>n.getStart(e)},f.isInJSXText=function(e,t){var n=v(e,t);return!!f.isJsxText(n)||(!(18!==n.kind||!f.isJsxExpression(n.parent)||!f.isJsxElement(n.parent.parent))||!(28!==n.kind||!f.isJsxOpeningLikeElement(n.parent)||!f.isJsxElement(n.parent.parent)))},f.findPrecedingMatchingToken=S,f.isPossiblyTypeArgumentPosition=function W(e,t,n){var r=D(e,t);return r!==undefined&&(f.isPartOfTypeNode(r.called)||0!==N(r.called,r.nTypeArguments,n).length||W(r.called,t,n))},f.getPossibleGenericSignatures=N,f.getPossibleTypeArgumentsInfo=D,f.isInComment=k,f.hasDocComment=function(e,t){var n=v(e,t);return!!f.findAncestor(n,f.isJSDoc)},f.getNodeModifiers=function(e){var t=f.isDeclaration(e)?f.getCombinedModifierFlags(e):0,n=[];return 8&t&&n.push("private"),16&t&&n.push("protected"),4&t&&n.push("public"),32&t&&n.push("static"),128&t&&n.push("abstract"),1&t&&n.push("export"),4194304&e.flags&&n.push("declare"),0<n.length?n.join(","):""},f.getTypeArgumentOrTypeParameterList=function(e){return 165===e.kind||192===e.kind?e.typeArguments:f.isFunctionLike(e)||241===e.kind||242===e.kind?e.typeParameters:undefined},f.isComment=function(e){return 2===e||3===e},f.isStringOrRegularExpressionOrTemplateLiteral=function(e){return!(10!==e&&13!==e&&!f.isTemplateLiteralKind(e))},f.isPunctuation=function(e){return 18<=e&&e<=72},f.isInsideTemplateLiteral=function(e,t,n){return f.isTemplateLiteralKind(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end},f.isAccessibilityModifier=function(e){switch(e){case 116:case 114:case 115:return!0}return!1},f.cloneCompilerOptions=function(e){var t=f.clone(e);return f.setConfigFileInOptions(t,e&&e.configFile),t},f.isArrayLiteralOrObjectLiteralDestructuringPattern=function G(e){if(188===e.kind||189===e.kind){if(205===e.parent.kind&&e.parent.left===e&&60===e.parent.operatorToken.kind)return!0;if(228===e.parent.kind&&e.parent.initializer===e)return!0;if(G(276===e.parent.kind?e.parent.parent:e.parent))return!0}return!1},f.isInReferenceComment=function(e,t){return w(e,t,!0)},f.isInNonReferenceComment=function(e,t){return w(e,t,!1)},f.createTextSpanFromNode=function(e,t){return f.createTextSpanFromBounds(e.getStart(t),e.getEnd())},f.createTextRangeFromNode=function(e,t){return f.createRange(e.getStart(t),e.end)},f.createTextSpanFromRange=function(e){return f.createTextSpanFromBounds(e.pos,e.end)},f.createTextRangeFromSpan=function(e){return f.createRange(e.start,e.start+e.length)},f.createTextChangeFromStartLength=function(e,t,n){return V(f.createTextSpan(e,t),n)},f.createTextChange=V,f.typeKeywords=[121,147,124,88,130,133,97,136,137,139,140,103,107,142,143,144],f.isTypeKeyword=function(e){return f.contains(f.typeKeywords,e)},f.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},f.nodeSeenTracker=function(){var n=[];return function(e){var t=f.getNodeId(e);return!n[t]&&(n[t]=!0)}},f.getSnapshotText=function(e){return e.getText(0,e.getLength())},f.repeatString=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},f.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},f.getNameFromPropertyName=function(e){return 150===e.kind?f.isStringOrNumericLiteralLike(e.expression)?e.expression.text:undefined:f.getTextOfIdentifierOrLiteral(e)},f.programContainsEs6Modules=function(t){return t.getSourceFiles().some(function(e){return!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!!e.externalModuleIndicator})},f.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||2<=e.target||!!e.noEmit},f.hostUsesCaseSensitiveFileNames=P,f.hostGetCanonicalFileName=function(e){return f.createGetCanonicalFileName(P(e))},f.makeImportIfNecessary=function(e,t,n,r){return e||t&&t.length?L(e,t,n,r):undefined},f.makeImport=L,f.makeStringLiteral=M,(c=f.QuotePreference||(f.QuotePreference={}))[c.Single=0]="Single",c[c.Double=1]="Double",f.quotePreferenceFromString=F,f.getQuotePreference=function(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;var n=e.imports&&f.find(e.imports,f.isStringLiteral);return n?F(n,e):1},f.getQuoteFromPreference=function(e){switch(e){case 0:return"'";case 1:return'"';default:return f.Debug.assertNever(e)}},f.symbolNameNoDefault=function(e){var t=O(e);return t===undefined?undefined:f.unescapeLeadingUnderscores(t)},f.symbolEscapedNameNoDefault=O,f.isObjectBindingElementWithoutPropertyName=function(e){return f.isBindingElement(e)&&f.isObjectBindingPattern(e.parent)&&f.isIdentifier(e.name)&&!e.propertyName},f.getPropertySymbolFromBindingElement=function(e,t){var n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)},f.getPropertySymbolsFromBaseTypes=R,f.isMemberSymbolInBaseType=function(e,t){return R(e.parent,e.name,t,function(e){return!0})||!1},f.getParentNodeInSpan=function(e,t,n){if(!e)return undefined;for(;e.parent;){if(f.isSourceFile(e.parent)||(r=n,i=e.parent,a=t,!(f.textSpanContainsPosition(r,i.getStart(a))&&i.getEnd()<=f.textSpanEnd(r))))return e;e=e.parent}var r,i,a},f.findModifier=function(e,t){return e.modifiers&&f.find(e.modifiers,function(e){return e.kind===t})},f.insertImport=function(e,t,n){var r=f.findLast(t.statements,f.isAnyImportSyntax);r?e.insertNodeAfter(t,r,n):e.insertNodeAtTopOfFile(t,n,!0)},f.textSpansEqual=H,f.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&H(e.textSpan,t.textSpan)}}(rg=rg||{}),function(m){function n(e){return e.declarations&&0<e.declarations.length&&152===e.declarations[0].kind}m.isFirstDeclarationOfSymbolParameter=n;var t=function(){var n,t,r,i,a=10*m.defaultMaximumTruncationLength;e();var o=function o(e){return c(e,m.SymbolDisplayPartKind.text)};return{displayParts:function(){var e=n.length&&n[n.length-1].text;return a<i&&e&&"..."!==e&&(m.isWhiteSpaceLike(e.charCodeAt(e.length-1))||n.push(l(" ",m.SymbolDisplayPartKind.space)),n.push(l("...",m.SymbolDisplayPartKind.punctuation))),n},writeKeyword:function(e){return c(e,m.SymbolDisplayPartKind.keyword)},writeOperator:function(e){return c(e,m.SymbolDisplayPartKind.operator)},writePunctuation:function(e){return c(e,m.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(e){return c(e,m.SymbolDisplayPartKind.punctuation)},writeSpace:function(e){return c(e,m.SymbolDisplayPartKind.space)},writeStringLiteral:function(e){return c(e,m.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(e){return c(e,m.SymbolDisplayPartKind.parameterName)},writeProperty:function(e){return c(e,m.SymbolDisplayPartKind.propertyName)},writeLiteral:function(e){return c(e,m.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,t){if(a<i)return;s(),i+=e.length,n.push(u(e,t))},writeLine:function(){if(a<i)return;i+=1,n.push(d()),t=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:m.notImplemented,getIndent:function(){return r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:e,trackSymbol:m.noop,reportInaccessibleThisError:m.noop,reportInaccessibleUniqueSymbolError:m.noop,reportPrivateInBaseOfClassExpression:m.noop};function s(){var e;a<i||t&&((e=m.getIndentString(r))&&(i+=e.length,n.push(l(e,m.SymbolDisplayPartKind.space))),t=!1)}function c(e,t){a<i||(s(),i+=e.length,n.push(l(e,t)))}function e(){n=[],t=!0,i=r=0}}();function u(e,t){return l(e,function(e){var t=e.flags;{if(3&t)return n(e)?m.SymbolDisplayPartKind.parameterName:m.SymbolDisplayPartKind.localName;if(4&t)return m.SymbolDisplayPartKind.propertyName;if(32768&t)return m.SymbolDisplayPartKind.propertyName;if(65536&t)return m.SymbolDisplayPartKind.propertyName;if(8&t)return m.SymbolDisplayPartKind.enumMemberName;if(16&t)return m.SymbolDisplayPartKind.functionName;if(32&t)return m.SymbolDisplayPartKind.className;if(64&t)return m.SymbolDisplayPartKind.interfaceName;if(384&t)return m.SymbolDisplayPartKind.enumName;if(1536&t)return m.SymbolDisplayPartKind.moduleName;if(8192&t)return m.SymbolDisplayPartKind.methodName;if(262144&t)return m.SymbolDisplayPartKind.typeParameterName;if(524288&t)return m.SymbolDisplayPartKind.aliasName;if(2097152&t)return m.SymbolDisplayPartKind.aliasName}return m.SymbolDisplayPartKind.text}(t))}function l(e,t){return{text:e,kind:m.SymbolDisplayPartKind[t]}}function r(e){return l(m.tokenToString(e),m.SymbolDisplayPartKind.keyword)}function i(e){return l(e,m.SymbolDisplayPartKind.text)}m.symbolPart=u,m.displayPart=l,m.spacePart=function(){return l(" ",m.SymbolDisplayPartKind.space)},m.keywordPart=r,m.punctuationPart=function(e){return l(m.tokenToString(e),m.SymbolDisplayPartKind.punctuation)},m.operatorPart=function(e){return l(m.tokenToString(e),m.SymbolDisplayPartKind.operator)},m.textOrKeywordPart=function(e){var t=m.stringToToken(e);return t===undefined?i(e):r(t)},m.textPart=i;function d(){return l("\n",m.SymbolDisplayPartKind.lineBreak)}function e(e){try{return e(t),t.displayParts()}finally{t.clear()}}function a(e){var t=e.length;return 2<=t&&e.charCodeAt(0)===e.charCodeAt(t-1)&&o(e)?e.substring(1,t-1):e}function o(e){return m.isSingleOrDoubleQuote(e.charCodeAt(0))}function s(e,t){return m.ensureScriptKind(e,t&&t.getScriptKind&&t.getScriptKind(e))}function c(e){return 0!=(33554432&e.flags)}function p(e,t){void 0===t&&(t=!0);var n=e&&_(e);return n&&!t&&h(n),n}function f(e,t,n,r,i){var a,o,s;return void 0===t&&(t=!0),n&&r&&m.isBindingElement(e)&&m.isIdentifier(e.name)&&m.isObjectBindingPattern(e.parent)?(s=(o=r.getSymbolAtLocation(e.name))&&n.get(String(m.getSymbolId(o))))&&s.text!==(e.name||e.propertyName).getText()&&(a=m.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,s,e.initializer)):n&&r&&m.isIdentifier(e)&&(s=(o=r.getSymbolAtLocation(e))&&n.get(String(m.getSymbolId(o))))&&(a=m.createIdentifier(s.text)),(a=a||_(e,n,r,i))&&!t&&h(a),i&&a&&i(e,a),a}function _(e,t,n,r){var i=t||n||r?m.visitEachChild(e,function(e){return f(e,!0,t,n,r)},m.nullTransformationContext):m.visitEachChild(e,p,m.nullTransformationContext);if(i!==e)return i.parent=undefined,i;var a=m.getSynthesizedClone(e);return m.isStringLiteral(a)?a.textSourceNode=e:m.isNumericLiteral(a)&&(a.numericLiteralFlags=e.numericLiteralFlags),m.setTextRange(a,e)}function h(e){g(e),y(e)}function g(e){b(e,512,v)}function y(e){b(e,1024,m.getLastChild)}function b(e,t,n){m.addEmitFlags(e,t);var r=n(e);r&&b(r,t,n)}function v(e){return e.forEachChild(function(e){return e})}function E(i,a,o,s,c){return function(e,t,n,r){3===n?(e+=2,t-=2):e+=2,c(i,o||n,a.text.slice(e,t),s!==undefined?s:r)}}function I(e){switch(e){case 35:case 33:case 36:case 34:return!0;default:return!1}}function T(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}m.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||"\r\n"},m.lineBreakPart=d,m.mapToDisplayParts=e,m.typeToDisplayParts=function(t,n,r,i){return void 0===i&&(i=0),e(function(e){t.writeType(n,r,17408|i,e)})},m.symbolToDisplayParts=function(t,n,r,i,a){return void 0===a&&(a=0),e(function(e){t.writeSymbol(n,r,i,8|a,e)})},m.signatureToDisplayParts=function(t,n,r,i){return void 0===i&&(i=0),i|=25632,e(function(e){t.writeSignature(n,r,i,undefined,e)})},m.isImportOrExportSpecifierName=function(e){return!!e.parent&&m.isImportOrExportSpecifier(e.parent)&&e.parent.propertyName===e},m.stripQuotes=a,m.startsWithQuote=o,m.scriptKindIs=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=s(e,t);return m.some(n,function(e){return e===i})},m.getScriptKind=s,m.getSymbolTarget=function(e,t){for(var n=e;0!=(2097152&n.flags)||c(n)&&n.target;)n=c(n)&&n.target?n.target:m.skipAlias(n,t);return n},m.getUniqueSymbolId=function(e,t){return m.getSymbolId(m.skipAlias(e,t))},m.getFirstNonSpaceCharacterPosition=function(e,t){for(;m.isWhiteSpaceLike(e.charCodeAt(t));)t+=1;return t},m.getPrecedingNonSpaceCharacterPosition=function(e,t){for(;-1<t&&m.isWhiteSpaceSingleLine(e.charCodeAt(t));)--t;return t+1},m.getSynthesizedDeepClone=p,m.getSynthesizedDeepCloneWithRenames=f,m.getSynthesizedDeepClones=function(e,t){return void 0===t&&(t=!0),e&&m.createNodeArray(e.map(function(e){return p(e,t)}),e.hasTrailingComma)},m.suppressLeadingAndTrailingTrivia=h,m.suppressLeadingTrivia=g,m.suppressTrailingTrivia=y,m.getUniqueName=function(e,t){for(var n=e,r=1;!m.isFileLevelUniqueName(t,n);r++)n=e+"_"+r;return n},m.getRenameLocation=function(e,t,n,r){for(var i=0,a=-1,o=0,s=e;o<s.length;o++){var c=s[o],u=c.fileName,l=c.textChanges;m.Debug.assert(u===t);for(var d=0,p=l;d<p.length;d++){var f=p[d],_=f.span,h=f.newText,g=function(e,t){if(m.startsWith(e,t))return 0;var n=e.indexOf(" "+t);-1===n&&(n=e.indexOf("."+t));-1===n&&(n=e.indexOf('"'+t));return-1===n?-1:n+1}(h,n);if(-1!==g&&(a=_.start+i+g,!r))return a;i+=h.length-_.length}}return m.Debug.assert(r),m.Debug.assert(0<=a),a},m.copyLeadingComments=function(e,t,n,r,i){m.forEachLeadingCommentRange(n.text,e.pos,E(t,n,r,i,m.addSyntheticLeadingComment))},m.copyTrailingComments=function(e,t,n,r,i){m.forEachTrailingCommentRange(n.text,e.end,E(t,n,r,i,m.addSyntheticTrailingComment))},m.copyTrailingAsLeadingComments=function(e,t,n,r,i){m.forEachTrailingCommentRange(n.text,e.pos,E(t,n,r,i,m.addSyntheticLeadingComment))},m.getContextualTypeFromParent=function(e,t){var n=e.parent;switch(n.kind){case 193:return t.getContextualType(n);case 205:var r=n.left,i=n.operatorToken,a=n.right;return I(i.kind)?t.getTypeAtLocation(e===a?r:a):t.getContextualType(e);case 272:return n.expression===e?T(n,t):undefined;default:return t.getContextualType(e)}},m.quote=function(e,t){if(/^\d+$/.test(e))return e;var n=t.quotePreference||"auto",r=JSON.stringify(e);switch(n){case"auto":case"double":return r;case"single":return"'"+a(r).replace("'","\\'").replace('\\"','"')+"'";default:return m.Debug.assertNever(n)}},m.isEqualityOperatorKind=I,m.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 207:case 194:return!0;default:return!1}},m.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},m.getSwitchedType=T,m.getTypeNodeIfAccessible=function(e,t,n,r){var i=n.getTypeChecker(),a=!0,o=function o(){a=!1},s=i.typeToTypeNode(e,t,undefined,{trackSymbol:function(e,t,n){a=a&&0===i.isSymbolAccessible(e,t,n,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:{readFile:r.readFile,fileExists:r.fileExists,directoryExists:r.directoryExists,getSourceFiles:n.getSourceFiles,getCurrentDirectory:n.getCurrentDirectory,getCommonSourceDirectory:n.getCommonSourceDirectory}});return a?s:undefined}}(rg=rg||{}),function(g){g.createClassifier=function(){var h=g.createScanner(8,!1);function r(e,t,n){var r=0,i=0,a=[],o=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return g.Debug.assertNever(e)}}(t),s=o.prefix,c=o.pushTemplate;e=s+e;var u=s.length;c&&a.push(15),h.setText(e);var l=0,d=[],p=0;do{r=h.scan(),g.isTrivia(r)||(function(){switch(r){case 42:case 65:m[i]||13!==h.reScanSlashToken()||(r=13);break;case 28:73===i&&p++;break;case 30:0<p&&p--;break;case 121:case 139:case 136:case 124:case 140:0<p&&!n&&(r=73);break;case 15:a.push(r);break;case 18:0<a.length&&a.push(r);break;case 19:var e;0<a.length&&(15===(e=g.lastOrUndefined(a))?17===(r=h.reScanTemplateToken())?a.pop():g.Debug.assertEqual(r,16,"Should have been a template middle."):(g.Debug.assertEqual(e,18,"Should have been an open brace"),a.pop()));break;default:if(!g.isKeyword(r))break;(24===i||g.isKeyword(i)&&g.isKeyword(r)&&!function(e,t){if(!g.isAccessibilityModifier(e))return!0;switch(t){case 127:case 138:case 125:case 117:return!0;default:return!1}}(i,r))&&(r=73)}}(),i=r);var f,_=h.getTextPos();!function(e,t,n,r,i){if(8===r)return;0===e&&0<n&&(e+=n);var a=t-e;0<a&&i.push(e-n,a,r)}(h.getTokenPos(),_,u,function(e){{if(g.isKeyword(e))return 3;if(function(e){switch(e){case 40:case 42:case 43:case 38:case 39:case 46:case 47:case 48:case 28:case 30:case 31:case 32:case 95:case 94:case 120:case 33:case 34:case 35:case 36:case 49:case 51:case 50:case 54:case 55:case 71:case 70:case 72:case 67:case 68:case 69:case 61:case 62:case 63:case 65:case 66:case 60:case 27:return!0;default:return!1}}(e)||function(e){switch(e){case 38:case 39:case 53:case 52:case 44:case 45:return!0;default:return!1}}(e))return 5;if(18<=e&&e<=72)return 10}switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 73:default:return g.isTemplateLiteralKind(e)?6:2}}(r),d),_>=e.length&&((f=function(e,t,n){switch(t){case 10:if(!e.isUnterminated())return undefined;for(var r=e.getTokenText(),i=r.length-1,a=0;92===r.charCodeAt(i-a);)a++;return 0==(1&a)?undefined:34===r.charCodeAt(0)?3:2;case 3:return e.isUnterminated()?1:undefined;default:if(g.isTemplateLiteralKind(t)){if(!e.isUnterminated())return undefined;switch(t){case 17:return 5;case 14:return 4;default:return g.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===n?6:undefined}}(h,r,g.lastOrUndefined(a)))!==undefined&&(l=f))}while(1!==r);return{endOfLineState:l,spans:d}}return{getClassificationsForLine:function(e,t,n){return function(e,t){for(var n=[],r=e.spans,i=0,a=0;a<r.length;a+=3){var o,s=r[a],c=r[a+1],u=r[a+2];0<=i&&(0<(o=s-i)&&n.push({length:o,classification:g.TokenClass.Whitespace})),n.push({length:c,classification:function(e){switch(e){case 1:return g.TokenClass.Comment;case 3:return g.TokenClass.Keyword;case 4:return g.TokenClass.NumberLiteral;case 25:return g.TokenClass.BigIntLiteral;case 5:return g.TokenClass.Operator;case 6:return g.TokenClass.StringLiteral;case 8:return g.TokenClass.Whitespace;case 10:return g.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return g.TokenClass.Identifier;default:return undefined}}(u)}),i=s+c}var l=t.length-i;0<l&&n.push({length:l,classification:g.TokenClass.Whitespace});return{entries:n,finalLexState:e.endOfLineState}}(r(e,t,n),e)},getEncodedLexicalClassifications:r}};var m=g.arrayToNumericMap([73,10,8,9,13,101,44,45,21,23,19,103,88],function(e){return e},function(){return!0});function y(e,t){switch(t){case 245:case 241:case 242:case 240:e.throwIfCancellationRequested()}}function a(s,c,u,l,d){var p=[];return u.forEachChild(function f(e){var t,n,r,i,a;e&&g.textSpanIntersectsWith(d,e.pos,e.getFullWidth())&&(y(c,e.kind),!g.isIdentifier(e)||g.nodeIsMissing(e)||!l.has(e.escapedText)||(n=(t=s.getSymbolAtLocation(e))&&function o(e,t,n){var r=e.getFlags();return 0==(2885600&r)?undefined:32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&(i=e,g.some(i.declarations,function(e){return g.isModuleDeclaration(e)&&1===g.getModuleInstanceState(e)}))?14:undefined:2097152&r?o(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:undefined:undefined;var i}(t,g.getMeaningFromLocation(e),s))&&(r=e.getStart(u),i=e.getEnd(),a=n,p.push(r),p.push(i-r),p.push(a)),e.forEachChild(f))}),{spans:p,endOfLineState:0}}function o(e){g.Debug.assert(e.spans.length%3==0);for(var t=e.spans,n=[],r=0;r<t.length;r+=3)n.push({textSpan:g.createTextSpan(t[r],t[r+1]),classificationType:function(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return undefined}}(t[r+2])});return n}function r(i,s,e){var a=e.start,o=e.length,c=g.createScanner(8,!1,s.languageVariant,s.text),u=g.createScanner(8,!1,s.languageVariant,s.text),r=[];return h(s),{spans:r,endOfLineState:0};function l(e,t,n){r.push(e),r.push(t),r.push(n)}function d(e){for(c.setTextPos(e.pos);;){var t=c.getTextPos();if(!g.couldStartTrivia(s.text,t))return t;var n=c.scan(),r=c.getTextPos(),i=r-t;if(!g.isTrivia(n))return t;switch(n){case 4:case 5:continue;case 2:case 3:!function(e,t,n,r){if(3===t){var i=g.parseIsolatedJSDocComment(s.text,n,r);if(i&&i.jsDoc)return i.jsDoc.parent=e,function(e){var t=e.pos;if(e.tags)for(var n=0,r=e.tags;n<r.length;n++){var i=r[n];switch(i.pos!==t&&p(t,i.pos-t),l(i.pos,1,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 305:!function(e){e.isNameFirst&&(p(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end);e.typeExpression&&(p(t,e.typeExpression.pos-t),h(e.typeExpression),t=e.typeExpression.end);e.isNameFirst||(p(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}(i);break;case 309:!function(e){for(var t=0,n=e.getChildren();t<n.length;t++){h(n[t])}}(i),t=i.end;break;case 308:case 306:h(i.typeExpression),t=i.end}}t!==e.end&&p(t,e.end-t)}(i.jsDoc)}p(n,r)}(e,n,t,i),c.setTextPos(r);continue;case 7:var a=s.text,o=a.charCodeAt(t);if(60===o||62===o){l(t,i,1);continue}g.Debug.assert(124===o||61===o),function(e,t,n){var r;for(r=t;r<n&&!g.isLineBreak(e.charCodeAt(r));r++);l(t,r-t,1),u.setTextPos(r);for(;u.getTextPos()<n;)!function(){var e=u.getTextPos(),t=u.scan(),n=u.getTextPos(),r=_(t);r&&l(e,n-e,r)}()}(a,t,r);break;case 6:break;default:g.Debug.assertNever(n)}}}function p(e,t){l(e,t,1)}function f(e){if(g.isJSDoc(e))return 1;if(g.nodeIsMissing(e))return 1;var t=function(e){switch(e.parent&&e.parent.kind){case 263:if(e.parent.tagName===e)return 19;break;case 264:if(e.parent.tagName===e)return 20;break;case 262:if(e.parent.tagName===e)return 21;break;case 268:if(e.parent.name===e)return 22}return undefined}(e);if(g.isToken(e)||11===e.kind||t!==undefined){var n,r=11===e.kind?e.pos:d(e),i=e.end-r;return g.Debug.assert(0<=i),0<i&&((n=t||_(e.kind,e))&&l(r,i,n)),1}}function _(e,t){if(g.isKeyword(e))return 3;if((28===e||30===e)&&t&&g.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(g.isPunctuation(e)){if(t){var n=t.parent;if(60===e&&(238===n.kind||155===n.kind||152===n.kind||268===n.kind))return 5;if(205===n.kind||203===n.kind||204===n.kind||206===n.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 25;if(10===e)return 268===t.parent.kind?24:6;if(13===e)return 6;if(g.isTemplateLiteralKind(e))return 6;if(11===e)return 23;if(73===e){if(t)switch(t.parent.kind){case 241:return t.parent.name===t?11:void 0;case 151:return t.parent.name===t?15:void 0;case 242:return t.parent.name===t?13:void 0;case 244:return t.parent.name===t?12:void 0;case 245:return t.parent.name===t?14:void 0;case 152:return t.parent.name===t?g.isThisIdentifier(t)?3:17:void 0}return 2}}function h(e){if(e&&g.decodedTextSpanIntersectsWith(a,o,e.pos,e.getFullWidth())){y(i,e.kind);for(var t=0,n=e.getChildren(s);t<n.length;t++){var r=n[t];f(r)||h(r)}}}}g.getSemanticClassifications=function(e,t,n,r,i){return o(a(e,t,n,r,i))},g.getEncodedSemanticClassifications=a,g.getSyntacticClassifications=function(e,t,n){return o(r(e,t,n))},g.getEncodedSyntacticClassifications=r}(rg=rg||{}),rt=rg=rg||{},function(e){function u(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){var t=e.name,n=e.kind,r=e.span;return{name:t,kind:n,kindModifiers:l(e.extension),sortText:it.SortText.LocationPriority,replacementSpan:r}})}}function l(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".tsbuildinfo":return rt.Debug.fail("Extension .tsbuildinfo is unsupported.");case undefined:return"";default:return rt.Debug.assertNever(e)}}var t;function d(e,t,n,r,i,a){var o,s,c,u,l,d,p,f=t.parent;switch(f.kind){case 183:switch(f.parent.kind){case 165:return{kind:2,types:v(r.getTypeArgumentConstraint(f)),isNewIdentifier:!1};case 181:return b(r.getTypeFromTypeNode(f.parent.objectType));case 184:return{kind:0,paths:E(e,t,i,a,r)};case 174:if(!rt.isTypeReferenceNode(f.parent.parent))return undefined;var _=(d=f.parent,p=f,rt.mapDefined(d.types,function(e){return e!==p&&rt.isLiteralTypeNode(e)&&rt.isStringLiteral(e.literal)?e.literal.text:undefined}));return{kind:2,types:v(r.getTypeArgumentConstraint(f.parent)).filter(function(e){return!rt.contains(_,e.value)}),isNewIdentifier:!1};default:return undefined}case 276:return rt.isObjectLiteralExpression(f.parent)&&f.name===t?b(r.getContextualType(f.parent)):y();case 191:var h=f.expression,g=f.argumentExpression;return t===g?b(r.getTypeAtLocation(h)):undefined;case 192:case 193:if(!rt.isRequireCall(f,!1)&&!rt.isImportCall(f)){var m=rt.SignatureHelp.getArgumentInfoForCompletions(t,n,e);return m?(o=m,s=r,c=!1,u=rt.createMap(),l=[],s.getResolvedSignature(o.invocation,l,o.argumentCount),{kind:2,types:rt.flatMap(l,function(e){if(e.hasRestParameter||!(o.argumentCount>e.parameters.length)){var t=s.getParameterType(e,o.argumentIndex);return c=c||!!(4&t.flags),v(t,u)}}),isNewIdentifier:c}):y()}case 250:case 256:case 260:return{kind:0,paths:E(e,t,i,a,r)};default:return y()}function y(){return{kind:2,types:v(rt.getContextualTypeFromParent(t,r)),isNewIdentifier:!1}}}function b(e){return e&&{kind:1,symbols:e.getApparentProperties(),hasIndexSignature:rt.hasIndexSignature(e)}}function v(e,t){return void 0===t&&(t=rt.createMap()),e?(e=rt.skipConstraint(e)).isUnion()?rt.flatMap(e.types,function(e){return v(e,t)}):!e.isStringLiteral()||1024&e.flags||!rt.addToSeen(t,e.value)?rt.emptyArray:[e]:rt.emptyArray}function k(e,t,n){return{name:e,kind:t,extension:n}}function A(e){return k(e,"directory",undefined)}function _(e,t,n){var r,i,a,o,s,c=(r=e,i=t,a=Math.max(r.lastIndexOf(rt.directorySeparator),r.lastIndexOf("\\")),o=-1!==a?a+1:0,0==(s=r.length-o)||rt.isIdentifierText(r.substr(o,s),8)?undefined:rt.createTextSpan(i+o,s));return n.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:c}})}function E(e,t,n,r,i){return _(t.text,t.getStart(e)+1,(a=e,o=t,s=n,c=r,u=i,l=rt.normalizeSlashes(o.text),d=a.path,p=rt.getDirectoryPath(d),function(e){if(e&&2<=e.length&&46===e.charCodeAt(0)){var t=3<=e.length&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}}(l)||!s.baseUrl&&(rt.isRootedDiskPath(l)||rt.isUrl(l))?function(e,t,n,r,i){var a=I(n);return n.rootDirs?function(e,t,n,r,i,a,o){var s=i.project||a.getCurrentDirectory(),c=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames()),u=function(e,t,n,r){e=e.map(function(e){return rt.normalizePath(rt.isRootedDiskPath(e)?e:rt.combinePaths(t,e))});var i=rt.firstDefined(e,function(e){return rt.containsPath(e,n,t,r)?n.substr(e.length):undefined});return rt.deduplicate(e.map(function(e){return rt.combinePaths(e,i)}).concat([n]),rt.equateStringsCaseSensitive,rt.compareStringsCaseSensitive)}(e,s,n,c);return rt.flatMap(u,function(e){return T(t,e,r,a,o)})}(n.rootDirs,e,t,a,n,r,i):T(e,t,a,r,i)}(l,p,s,c,d):function(n,e,t,r,i){var a,o,s=t.baseUrl,c=t.paths,u=[],l=I(t);s&&(a=t.project||r.getCurrentDirectory(),o=rt.normalizePath(rt.combinePaths(a,s)),T(n,o,l,r,undefined,u),c&&w(u,n,o,l.extensions,c,r));for(var d=C(n),p=0,f=function(t,e,n){var r=n.getAmbientModules().map(function(e){return rt.stripQuotes(e.name)}).filter(function(e){return rt.startsWith(e,t)});if(e===undefined)return r;var i=rt.ensureTrailingDirectorySeparator(e);return r.map(function(e){return rt.removePrefix(e,i)})}(n,d,i);p<f.length;p++){var _=f[p];u.push(k(_,"external module name",undefined))}if(B(r,t,e,d,l,u),rt.getEmitModuleResolutionKind(t)===rt.ModuleResolutionKind.NodeJs){var h=!1;if(d===undefined)for(var g=function g(t){u.some(function(e){return e.name===t})||(h=!0,u.push(k(t,"external module name",undefined)))},m=0,y=function(e,t){if(!e.readFile||!e.fileExists)return rt.emptyArray;for(var n=[],r=0,i=x(t,e);r<i.length;r++)for(var a=i[r],o=rt.readJson(a,e),s=0,c=S;s<c.length;s++){var u=c[s],l=o[u];if(l)for(var d in l)l.hasOwnProperty(d)&&!rt.startsWith(d,"@types/")&&n.push(d)}return n}(r,e);m<y.length;m++){var b=y[m];g(b)}h||rt.forEachAncestorDirectory(e,function(e){var t=rt.combinePaths(e,"node_modules");M(r,t)&&T(n,t,l,r,undefined,u)})}return u}(l,p,s,c,u)));var a,o,s,c,u,l,d,p}function I(e,t){return void 0===t&&(t=!1),{extensions:(n=e,r=rt.getSupportedExtensions(n),n.resolveJsonModule&&rt.getEmitModuleResolutionKind(n)===rt.ModuleResolutionKind.NodeJs?r.concat(".json"):r),includeExtensions:t};var n,r}function T(e,t,n,r,i,a){var o=n.extensions,s=n.includeExtensions;void 0===a&&(a=[]),e===undefined&&(e=""),e=rt.normalizeSlashes(e),rt.hasTrailingDirectorySeparator(e)||(e=rt.getDirectoryPath(e)),""===e&&(e="."+rt.directorySeparator),e=rt.ensureTrailingDirectorySeparator(e);var c=rt.resolvePath(t,e),u=rt.hasTrailingDirectorySeparator(c)?c:rt.getDirectoryPath(c),l=!(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames());if(!M(r,u))return a;var d=P(r,u,o,undefined,["./*"]);if(d){for(var p=rt.createMap(),f=0,_=d;f<_.length;f++){var h,g=_[f],g=rt.normalizePath(g);i&&0===rt.comparePaths(g,i,t,l)||(h=s||rt.fileExtensionIs(g,".json")?rt.getBaseFileName(g):rt.removeFileExtension(rt.getBaseFileName(g)),p.set(h,rt.tryGetExtensionFromPath(g)))}p.forEach(function(e,t){a.push(k(t,"script",e))})}var m=V(r,u);if(m)for(var y=0,b=m;y<b.length;y++){var v=b[y],E=rt.getBaseFileName(rt.normalizePath(v));"@types"!==E&&a.push(A(E))}var I,T,C,B,x,S,N,D=(I=u,T=r,rt.forEachAncestorDirectory(I,function(e){return"node_modules"===e||!!(C=rt.findConfigFile(e,function(e){return L(T,e)},"package.json"))||void 0}),C);return D&&(B=rt.readJson(D,r).typesVersions,"object"===zb(B)&&(S=(x=rt.getPackageJsonTypesVersionsPaths(B))&&x.paths,N=c.slice(rt.ensureTrailingDirectorySeparator(u).length),S&&w(a,N,u,o,S,r))),a}function w(r,e,t,n,i,a){for(var o in i)if(rt.hasProperty(i,o)){var s=i[o];if(s)for(var c=function c(t,e,n){r.some(function(e){return e.name===t})||r.push(k(t,e,n))},u=0,l=function(e,t,n,r,i,a){if(!rt.endsWith(e,"*"))return rt.stringContains(e,"*")?rt.emptyArray:c(e);var o=e.slice(0,e.length-1),s=rt.tryRemovePrefix(n,o);return s===undefined?c(o):rt.flatMap(t,function(e){return function(e,t,n,r,i){if(!i.readDirectory)return undefined;var a=rt.hasZeroOrOneAsteriskCharacter(n)?rt.tryParsePattern(n):undefined;if(!a)return undefined;var o=rt.resolvePath(a.prefix),s=rt.hasTrailingDirectorySeparator(a.prefix)?o:rt.getDirectoryPath(o),c=rt.hasTrailingDirectorySeparator(a.prefix)?"":rt.getBaseFileName(o),u=N(e),l=u?rt.hasTrailingDirectorySeparator(e)?e:rt.getDirectoryPath(e):undefined,d=u?rt.combinePaths(s,c+l):s,p=rt.normalizePath(a.suffix),f=rt.normalizePath(rt.combinePaths(t,d)),_=u?f:rt.ensureTrailingDirectorySeparator(f)+c,h=p?"**/*":"./*",g=rt.mapDefined(P(i,f,r,undefined,[h]),function(e){var t=rt.tryGetExtensionFromPath(e),n=y(e);return n===undefined?undefined:k(rt.removeFileExtension(n),"script",t)}),m=rt.mapDefined(V(i,f).map(function(e){return rt.combinePaths(f,e)}),function(e){var t=y(e);return t===undefined?undefined:A(t)});return g.concat(m);function y(e){var t,n,r,i,a=(t=rt.normalizePath(e),n=_,r=p,rt.startsWith(t,n)&&rt.endsWith(t,r)?t.slice(n.length,t.length-r.length):undefined);return a===undefined?undefined:(i=a)[0]===rt.directorySeparator?i.slice(1):i}}(s,r,e,i,a)});function c(e){return rt.startsWith(e,n)?[A(e)]:rt.emptyArray}}(o,s,e,t,n,a);u<l.length;u++){var d=l[u];c(d.name,d.kind,d.extension)}}}function C(e){return N(e)?rt.hasTrailingDirectorySeparator(e)?e:rt.getDirectoryPath(e):undefined}function B(s,c,e,u,l,d){void 0===d&&(d=[]);for(var p=rt.createMap(),t=0,n=f(function(){return rt.getEffectiveTypeRoots(c,s)})||rt.emptyArray;t<n.length;t++){o(n[t])}for(var r=0,i=x(e,s);r<i.length;r++){var a=i[r];o(rt.combinePaths(rt.getDirectoryPath(a),"node_modules/@types"))}return d;function o(e){if(M(s,e))for(var t=0,n=V(s,e);t<n.length;t++){var r,i,a=n[t],o=rt.unmangleScopedPackageName(a);c.types&&!rt.contains(c.types,o)||(u===undefined?p.has(o)||(d.push(k(o,"external module name",undefined)),p.set(o,!0)):(r=rt.combinePaths(e,a),(i=rt.tryRemoveDirectoryPrefix(u,o,rt.hostGetCanonicalFileName(s)))!==undefined&&T(i,r,l,s,undefined,d)))}}}function x(e,n){var r=[];return rt.forEachAncestorDirectory(e,function(e){var t=rt.findConfigFile(e,function(e){return L(n,e)},"package.json");if(!t)return!0;r.push(t)}),r}e.getStringLiteralCompletions=function(e,t,n,r,i,a,o,s){if(rt.isInReferenceComment(e,t)){var c=function(e,t,n,r){var i=rt.getTokenAtPosition(e,t),a=rt.getLeadingCommentRanges(e.text,i.pos),o=a&&rt.find(a,function(e){return t>=e.pos&&t<=e.end});if(!o)return undefined;var s=e.text.slice(o.pos,t),c=h.exec(s);if(!c)return undefined;var u=c[1],l=c[2],d=c[3],p=rt.getDirectoryPath(e.path),f="path"===l?T(d,p,I(n,!0),r,e.path):"types"===l?B(r,n,p,C(d),I(n)):rt.Debug.fail();return _(d,o.pos+u.length,f)}(e,t,i,a);return c&&u(c)}if(rt.isInString(e,t,n))return n&&rt.isStringLiteralLike(n)?function(e,t,n,r,i){if(e===undefined)return undefined;switch(e.kind){case 0:return u(e.paths);case 1:var a=[];return it.getCompletionEntriesFromSymbols(e.symbols,a,t,t,n,8,r,4,i),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,entries:a};case 2:a=e.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,entries:a};default:return rt.Debug.assertNever(e)}}(d(e,n,t,r,i,a),e,r,o,s):undefined},e.getStringLiteralCompletionDetails=function(e,t,n,r,i,a,o,s){if(!r||!rt.isStringLiteralLike(r))return undefined;var c=d(t,r,n,i,a,o);return c&&function(t,e,n,r,i,a){switch(n.kind){case 0:return(o=rt.find(n.paths,function(e){return e.name===t}))&&it.createCompletionDetails(t,l(o.extension),o.kind,[rt.textPart(t)]);case 1:var o;return(o=rt.find(n.symbols,function(e){return e.name===t}))&&it.createCompletionDetailsForSymbol(o,i,r,e,a);case 2:return rt.find(n.types,function(e){return e.value===t})?it.createCompletionDetails(t,"","type",[rt.textPart(t)]):undefined;default:return rt.Debug.assertNever(n)}}(e,r,c,t,i,s)},(t={})[t.Paths=0]="Paths",t[t.Properties=1]="Properties",t[t.Types=2]="Types";var h=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,S=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function V(e,t){return a(e,e.getDirectories,t)||[]}function P(e,t,n,r,i){return a(e,e.readDirectory,t,n,r,i)||rt.emptyArray}function L(e,t){return a(e,e.fileExists,t)}function M(e,t){return f(function(){return rt.directoryProbablyExists(t,e)})}function a(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return f(function(){return t&&t.apply(e,n)})}function f(e){try{return e()}catch(t){return undefined}}function N(e){return rt.stringContains(e,rt.directorySeparator)}}((it=rt.Completions||(rt.Completions={})).StringCompletions||(it.StringCompletions={})),function(b){var ne,e,t,n,r;function Y(e){return 2===e.kind||3===e.kind}function p(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function k(e,t){return at.isSourceFileJS(e)&&!at.isCheckJsEnabledForFile(e,t)}(e=ne=b.SortText||(b.SortText={})).LocationPriority="0",e.SuggestedClassMembers="1",e.GlobalsOrKeywords="2",e.AutoImportSuggestions="3",e.JavascriptIdentifiers="4",(t={})[t.ThisType=0]="ThisType",t[t.SymbolMemberNoExport=1]="SymbolMemberNoExport",t[t.SymbolMemberExport=2]="SymbolMemberExport",t[t.Export=3]="Export",(n={})[n.None=0]="None",n[n.All=1]="All",n[n.ClassElementKeywords=2]="ClassElementKeywords",n[n.InterfaceElementKeywords=3]="InterfaceElementKeywords",n[n.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",n[n.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",n[n.TypeKeywords=6]="TypeKeywords",n[n.Last=6]="Last",(r={})[r.Continue=0]="Continue",r[r.Success=1]="Success",r[r.Fail=2]="Fail",b.getCompletionsAtPosition=function(e,t,n,r,i,a,o){var s=t.getTypeChecker(),c=t.getCompilerOptions(),u=at.findPrecedingToken(i,r);if(o&&!at.isInString(r,i,u)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&at.isStringLiteralOrTemplate(n)&&r===n.getStart(e)+1;case"<":return!!n&&28===n.kind&&(!at.isBinaryExpression(n.parent)||de(n.parent));case"/":return!!n&&(at.isStringLiteralLike(n)?!!at.tryGetImportFromModuleSpecifier(n):42===n.kind&&at.isJsxClosingElement(n.parent));default:return at.Debug.assertNever(t)}}(r,o,u,i))return undefined;var l=b.StringCompletions.getStringLiteralCompletions(r,i,u,s,c,e,n,a);if(l)return l;if(u&&at.isBreakOrContinueStatement(u.parent)&&(74===u.kind||79===u.kind||73===u.kind))return function(e){var t=function(e){var t=[],n=at.createMap(),r=e;for(;r&&!at.isFunctionLike(r);){var i;at.isLabeledStatement(r)&&(i=r.label.text,n.has(i)||(n.set(i,!0),t.push({name:i,kindModifiers:"",kind:"label",sortText:ne.LocationPriority}))),r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(u.parent);var d=h(t,n,r,k(r,c),i,a,undefined);if(!d)return undefined;switch(d.kind){case 0:return function(e,t,n,r,i,a){var o=i.symbols,s=i.completionKind,c=i.isInSnippetScope,u=i.isNewIdentifierLocation,l=i.location,d=i.propertyAccessToConvert,p=i.keywordFilters,f=i.literals,_=i.symbolToOriginInfoMap,h=i.recommendedCompletion,g=i.isJsxInitializer,m=i.insideJsDocTagTypeExpression,y=i.symbolToSortTextMap;if(l&&l.parent&&at.isJsxClosingElement(l.parent)){var b=l.parent.parent.openingElement.tagName,v=!!at.findChildOfKind(l.parent,30,e);return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:b.getFullText(e)+(v?"":">"),kind:"class",kindModifiers:undefined,sortText:ne.LocationPriority}]}}var E=[];if(k(e,n)){var I=w(o,E,l,e,t,n.target,r,s,a,d,g,h,_,y);!function(e,r,i,a,o){at.getNameTable(e).forEach(function(e,t){var n;e!==r&&(n=at.unescapeLeadingUnderscores(t),at.addToSeen(i,n)&&at.isIdentifierText(n,a)&&o.push({name:n,kind:"warning",kindModifiers:"",sortText:ne.JavascriptIdentifiers}))})}(e,l.pos,I,n.target,E)}else{if(!(u||o&&0!==o.length||0!==p))return undefined;w(o,E,l,e,t,n.target,r,s,a,d,g,h,_,y)}if(0!==p)for(var T=at.arrayToSet(E,function(e){return e.name}),C=0,B=function(e,t){if(!t)return P(e);var n=e+6+1;return V[n]||(V[n]=P(e).filter(function(e){return!function(e){switch(e){case 119:case 121:case 147:case 124:case 126:case 85:case 146:case 110:case 128:case 111:case 129:case 130:case 131:case 132:case 133:case 136:case 137:case 114:case 115:case 116:case 134:case 139:case 140:case 141:case 143:case 144:return!0;default:return!1}}(at.stringToToken(e.name))}))}(p,!m&&at.isSourceFileJS(e));C<B.length;C++){var x=B[C];T.has(x.name)||E.push(x)}for(var S=0,N=f;S<N.length;S++){var D=N[S];E.push(function(e){return{name:A(e),kind:"string",kindModifiers:"",sortText:ne.LocationPriority}}(D))}return{isGlobalCompletion:c,isMemberCompletion:function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(s),isNewIdentifierLocation:u,entries:E}}(r,s,c,n,d,a);case 1:return p(at.JsDoc.getJSDocTagNameCompletions());case 2:return p(at.JsDoc.getJSDocTagCompletions());case 3:return p(at.JsDoc.getJSDocParameterNameCompletions(d.tag));default:return at.Debug.assertNever(d)}};var i,a,A=function A(e){return"object"===zb(e)?at.pseudoBigIntToString(e)+"n":JSON.stringify(e)};function J(e){return!!e||undefined}function z(e){return e&&Y(e)?at.stripQuotes(e.moduleSymbol.name):undefined}function w(e,t,n,r,i,a,o,s,c,u,l,d,p,f){for(var _,h,g,m,y,b,v,E,I,T,C,B,x,S,N,D,k,A,w,V,P=at.timestamp(),L=at.createMap(),M=0,F=e;M<F.length;M++){var O,R,H,j=F[M],W=p?p[at.getSymbolId(j)]:undefined,G=U(j,a,W,s);G&&(O=G.name,R=G.needsConvertPropertyAccess,L.has(O)||(_=j,h=f&&f[at.getSymbolId(j)]||ne.LocationPriority,g=n,m=r,y=i,b=O,v=R,I=d,T=u,C=l,B=c,V=w=A=k=D=N=S=x=void 0,(E=W)&&0===E.kind?x=v?"this["+at.quote(b,B)+"]":"this."+b:(E&&(2===(k=E).kind||1===k.kind)||v)&&T&&(x=v?"["+at.quote(b,B)+"]":"["+b+"]",S=at.findChildOfKind(T,24,m),N=at.startsWith(b,T.name.text)?T.name.end:S.end,D=at.createTextSpanFromBounds(S.getStart(m),N)),C&&(x===undefined&&(x=b),x="{"+x+"}","boolean"!=typeof C&&(D=at.createTextSpanFromNode(C,m))),(H=x===undefined||B.includeCompletionsWithInsertText?{name:b,kind:at.SymbolDisplay.getSymbolKind(y,_,g),kindModifiers:at.SymbolDisplay.getSymbolModifiers(_),sortText:h,source:z(E),hasAction:J(!!E&&Y(E)),isRecommended:J((V=y,(A=_)===(w=I)||!!(1048576&A.flags)&&V.getExportSymbolOfSymbol(A)===w)),insertText:x,replacementSpan:D}:undefined)&&(W||j.parent===undefined&&!at.some(j.declarations,function(e){return e.getSourceFile()===n.getSourceFile()})||L.set(O,!0),t.push(H))))}return o("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(at.timestamp()-P)),L}function v(e,t,n,r,i){var a=e.getCompilerOptions(),o=h(e,t,n,k(n,a),r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i);if(!o)return{type:"none"};if(0!==o.kind)return{type:"request",request:o};var s=o.symbols,c=o.literals,u=o.location,l=o.completionKind,d=o.symbolToOriginInfoMap,p=o.previousToken,f=o.isJsxInitializer,_=at.find(c,function(e){return A(e)===i.name});return _!==undefined?{type:"literal",literal:_}:at.firstDefined(s,function(e){var t=d[at.getSymbolId(e)],n=U(e,a.target,t,l);return n&&n.name===i.name&&z(t)===i.source?{type:"symbol",symbol:e,location:u,symbolToOriginInfoMap:d,previousToken:p,isJsxInitializer:f}:undefined})||{type:"none"}}function re(e,t,n){return t&&Y(t)&&(t.isDefaultExport&&"default"===e.escapedName||"export="===e.escapedName)?at.firstDefined(e.declarations,function(e){return at.isExportAssignment(e)&&at.isIdentifier(e.expression)?e.expression.text:undefined})||at.codefix.moduleSymbolToValidIdentifier(t.moduleSymbol,n):e.name}function E(e,t,n){return f(e,"",t,[at.displayPart(e,n)])}function I(t,e,n,r,i,a,o){var s=e.runWithCancellationToken(i,function(e){return at.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,t,n,r,r,7)}),c=s.displayParts,u=s.documentation,l=s.symbolKind,d=s.tags;return f(t.name,at.SymbolDisplay.getSymbolModifiers(t),l,c,u,d,a,o)}function f(e,t,n,r,i,a,o,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:a,codeActions:o,source:s}}function ie(e,t,n){var r=n.getAccessibleSymbolChain(e,t,67108863,!1);return r?at.first(r):e.parent&&(e.parent.declarations.some(function(e){return 285===e.kind})?e:ie(e.parent,t,n))}function h(d,e,f,i,u,l,p){var _=d.getTypeChecker(),t=at.timestamp(),n=at.getTokenAtPosition(f,u);e("getCompletionData: Get current token: "+(at.timestamp()-t)),t=at.timestamp();var r=at.isInComment(f,u,n);e("getCompletionData: Is inside comment: "+(at.timestamp()-t));var a,o,s,h=!1,g=!1;if(r){if(at.hasDocComment(f,u)){if(64===f.text.charCodeAt(u-1))return{kind:1};var c=at.getLineStartPositionForPosition(u,f);if(!f.text.substring(c,u).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var m=(a=n,o=u,(s=at.findAncestor(a,at.isJSDoc))&&s.tags&&(at.rangeContainsPosition(s,o)?at.findLast(s.tags,function(e){return e.pos<o}):undefined));if(m){if(m.tagName.pos<=u&&u<=m.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 305:case 311:case 306:case 308:case 310:return!0;default:return!1}}(m)&&m.typeExpression&&289===m.typeExpression.kind&&((n=at.getTokenAtPosition(f,u))&&(at.isDeclarationName(n)||311===n.parent.kind&&n.parent.name===n)||(h=te(m.typeExpression))),at.isJSDocParameterTag(m)&&(at.nodeIsMissing(m.name)||m.name.pos<=u&&u<=m.name.end))return{kind:3,tag:m}}if(!h)return e("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment."),undefined}t=at.timestamp();var y=at.findPrecedingToken(u,f,undefined);e("getCompletionData: Get previous token 1: "+(at.timestamp()-t));var b,v=y;v&&u<=v.end&&(at.isIdentifier(v)||at.isKeyword(v.kind))&&(b=at.timestamp(),v=at.findPrecedingToken(v.getFullStart(),f,undefined),e("getCompletionData: Get previous token 2: "+(at.timestamp()-b)));var E,I,T,C,B=n,x=!1,S=!1,N=!1,D=!1,k=at.getTouchingPropertyName(f,u);if(v){if(I=v,T=at.timestamp(),C=function(e){return(at.isRegularExpressionLiteral(e)||at.isStringTextContainingNode(e))&&(at.rangeContainsPositionExclusive(at.createTextRangeFromSpan(at.createTextSpanFromNode(e)),u)||u===e.end&&(!!e.isUnterminated||at.isRegularExpressionLiteral(e)))}(I)||function(e){var t=e.parent,n=t.kind;switch(e.kind){case 27:return 238===n||239===n||220===n||244===n||ee(n)||242===n||186===n||243===n||at.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 24:return 186===n;case 57:return 187===n;case 22:return 186===n;case 20:return 275===n||ee(n);case 18:return 244===n;case 28:return 241===n||210===n||242===n||243===n||at.isFunctionLikeKind(n);case 117:return 155===n&&!at.isClassLike(t.parent);case 25:return 152===n||!!t.parent&&186===t.parent.kind;case 116:case 114:case 115:return 152===n&&!at.isConstructorDeclaration(t.parent);case 120:return 254===n||258===n||252===n;case 127:case 138:return!le(e);case 77:case 85:case 111:case 91:case 106:case 93:case 112:case 78:case 118:case 141:return!0;case 40:return at.isFunctionLike(e.parent)&&!at.isMethodDeclaration(e.parent)}if(oe(se(e))&&le(e))return!1;if($(e)&&(!at.isIdentifier(e)||at.isParameterPropertyModifier(se(e))||te(e)))return!1;switch(se(e)){case 119:case 77:case 78:case 126:case 85:case 91:case 111:case 112:case 114:case 115:case 116:case 117:case 106:case 118:return!0;case 122:return at.isPropertyDeclaration(e.parent)}return at.isDeclarationName(e)&&!at.isJsxAttribute(e.parent)&&!(at.isClassLike(e.parent)&&(e!==y||u>y.end))}(I)||function(e){if(8!==e.kind)return!1;var t=e.getFullText();return"."===t.charAt(t.length-1)}(I)||function(e){if(11===e.kind)return!0;if(30===e.kind&&e.parent){if(263===e.parent.kind)return!0;if(264===e.parent.kind||262===e.parent.kind)return!!e.parent.parent&&261===e.parent.parent.kind}return!1}(I),e("getCompletionsAtPosition: isCompletionListBlocker: "+(at.timestamp()-T)),C)return e("Returning an empty list because completion was requested in an invalid position."),undefined;var A=v.parent;if(24===v.kind)switch(x=!0,A.kind){case 190:if((B=(E=A).expression).end===v.pos&&at.isCallExpression(B)&&B.getChildCount(f)&&21!==at.last(B.getChildren(f)).kind)return undefined;break;case 149:B=A.left;break;case 245:B=A.name;break;case 184:case 215:B=A;break;default:return undefined}else if(1===f.languageVariant){if(A&&190===A.kind&&(A=(v=A).parent),n.parent===k)switch(n.kind){case 30:261!==n.parent.kind&&263!==n.parent.kind||(k=n);break;case 42:262===n.parent.kind&&(k=n)}switch(A.kind){case 264:42===v.kind&&(N=!0,k=v);break;case 205:if(!de(A))break;case 262:case 261:case 263:28===v.kind&&(S=!0,k=v);break;case 268:switch(y.kind){case 60:D=!0;break;case 73:A!==y.parent&&!A.initializer&&at.findChildOfKind(A,60,f)&&(D=y)}}}}var w=at.timestamp(),V=5,P=!1,L=0,M=[],F=[],O=[];if(x)!function(){V=2;var t=at.isLiteralImportTypeNode(B),e=h||t&&!B.isTypeOf||at.isPartOfTypeNode(B.parent),n=at.isInRightSideOfInternalImportEqualsDeclaration(B)||!e&&at.isPossiblyTypeArgumentPosition(v,f,_);if(at.isEntityName(B)||t){var r=at.isModuleDeclaration(B.parent);r&&(P=!0);var i=_.getSymbolAtLocation(B);if(i&&1920&(i=at.skipAlias(i,_)).flags){for(var a=at.Debug.assertEachDefined(_.getExportsOfModule(i),"getExportsOfModule() should all be defined"),o=function o(e){return _.isValidPropertyAccess(t?B:B.parent,e.name)},s=function s(e){return Q(e)},c=r?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===B.parent})}:n?function(e){return s(e)||o(e)}:e?s:o,u=0,l=a;u<l.length;u++){var d=l[u];c(d)&&M.push(d)}return!e&&i.declarations&&i.declarations.some(function(e){return 285!==e.kind&&245!==e.kind&&244!==e.kind})&&K(_.getTypeOfSymbolAtLocation(i,B))}}if(at.isMetaProperty(B)&&(96===B.keywordToken||93===B.keywordToken)){var p=96===B.keywordToken?"target":"meta";return M.push(_.createSymbol(4,at.escapeLeadingUnderscores(p)))}e||K(_.getTypeAtLocation(B))}();else if(S){var R=at.Debug.assertEachDefined(_.getJsxIntrinsicTagNamesAt(k),"getJsxIntrinsicTagNames() should all be defined");Z(),M=R.concat(M),V=3,L=0}else if(N){var H=v.parent.parent.openingElement.tagName,j=_.getSymbolAtLocation(H);j&&(M=[j]),V=3,L=0}else if(!Z())return undefined;e("getCompletionData: Semantic work: "+(at.timestamp()-w));var W,G,Y,J=y&&function(e,t,n,r){var i=e.parent;switch(e.kind){case 73:return at.getContextualTypeFromParent(e,r);case 60:switch(i.kind){case 238:return r.getContextualType(i.initializer);case 205:return r.getTypeAtLocation(i.left);case 268:return r.getContextualTypeForJsxAttribute(i);default:return undefined}case 96:return r.getContextualType(i);case 75:return at.getSwitchedType(at.cast(i,at.isCaseClause),r);case 18:return at.isJsxExpression(i)&&261!==i.parent.kind?r.getContextualTypeForJsxAttribute(i.parent):undefined;default:var a=at.SignatureHelp.getArgumentInfoForCompletions(e,t,n);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex+(27===e.kind?1:0)):at.isEqualityOperatorKind(e.kind)&&at.isBinaryExpression(i)&&at.isEqualityOperatorKind(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e)}}(y,u,f,_),z=at.mapDefined(J&&(J.isUnion()?J.types:[J]),function(e){return e.isLiteral()?e.value:undefined}),U=y&&J&&(W=y,G=J,Y=_,at.firstDefined(G&&(G.isUnion()?G.types:[G]),function(e){var t=e&&e.symbol;return t&&424&t.flags&&!at.isAbstractConstructorSymbol(t)?ie(t,W,Y):undefined}));return{kind:0,symbols:M,completionKind:V,isInSnippetScope:g,propertyAccessToConvert:E,isNewIdentifierLocation:P,location:k,keywordFilters:L,literals:z,symbolToOriginInfoMap:F,recommendedCompletion:U,previousToken:y,isJsxInitializer:D,insideJsDocTagTypeExpression:h,symbolToSortTextMap:O};function K(e){if(P=!!e.getStringIndexType(),i)M.push.apply(M,ue(e,_));else for(var t=0,n=e.getApparentProperties();t<n.length;t++){var r=n[t];_.isValidPropertyAccessForCompletions(184===B.kind?B:B.parent,e,r)&&function(e){var t=at.firstDefined(e.declarations,function(e){return at.tryCast(at.getNameOfDeclaration(e),at.isComputedPropertyName)});{var n,r,i,a;t?(n=function o(e){return at.isIdentifier(e)?e:at.isPropertyAccessExpression(e)?o(e.expression):undefined}(t.expression),r=n&&_.getSymbolAtLocation(n),(i=r&&ie(r,v,_))&&!F[at.getSymbolId(i)]&&(M.push(i),a=i.parent,F[at.getSymbolId(i)]=a&&at.isExternalModuleSymbol(a)?{kind:2,moduleSymbol:a,isDefaultExport:!1}:{kind:1})):M.push(e)}}(r)}}function Z(){var e,t;return 1===(function(){var e,t,n=function(e){if(e){var t=e.parent;switch(e.kind){case 18:case 27:if(at.isObjectLiteralExpression(t)||at.isObjectBindingPattern(t))return t;break;case 40:return at.isMethodDeclaration(t)?at.tryCast(t.parent,at.isObjectLiteralExpression):undefined;case 73:return"async"===e.text&&at.isShorthandPropertyAssignment(e.parent)?e.parent.parent:undefined}}return undefined}(v);if(!n)return 0;if(V=0,189===n.kind){if(!(i=_.getContextualType(n)))return 2;P=at.hasIndexSignature(i),e=ce(i,n,_),t=n.properties}else{at.Debug.assert(185===n.kind),P=!1;var r=at.getRootDeclaration(n.parent);if(!at.isVariableLike(r))return at.Debug.fail("Root declaration is not variable-like.");var i,a=at.hasInitializer(r)||at.hasType(r)||228===r.parent.parent.kind;if(a||152!==r.kind||(at.isExpression(r.parent)?a=!!_.getContextualType(r.parent):157!==r.parent.kind&&160!==r.parent.kind||(a=at.isExpression(r.parent.parent)&&!!_.getContextualType(r.parent.parent))),a){if(!(i=_.getTypeAtLocation(n)))return 2;e=_.getPropertiesOfType(i).filter(function(e){return!(24&at.getDeclarationModifierFlagsFromSymbol(e))}),t=n.elements}}e&&0<e.length&&(M=function(e,t){if(0===t.length)return e;for(var n=at.createUnderscoreEscapedMap(),r=0,i=t;r<i.length;r++){var a,o,s=i[r];276!==s.kind&&277!==s.kind&&187!==s.kind&&157!==s.kind&&159!==s.kind&&160!==s.kind||te(s)||(a=void 0,at.isBindingElement(s)&&s.propertyName?73===s.propertyName.kind&&(a=s.propertyName.escapedText):(o=at.getNameOfDeclaration(s),a=o&&at.isPropertyNameLiteral(o)?at.getEscapedTextOfIdentifierOrLiteral(o):undefined),n.set(a,!0))}return e.filter(function(e){return!n.get(e.escapedName)})}(e,at.Debug.assertDefined(t)));return 1}()||function(){var e=!v||18!==v.kind&&27!==v.kind?undefined:at.tryCast(v.parent,at.isNamedImportsOrExports);if(!e)return 0;var t=(253===e.kind?e.parent.parent:e.parent).moduleSpecifier,n=_.getSymbolAtLocation(t);if(!n)return 2;V=3,P=!1;var r=_.getExportsAndPropertiesOfModule(n),i=at.arrayToSet(e.elements,function(e){return te(e)?undefined:(e.propertyName||e.name).escapedText});return M=r.filter(function(e){return"default"!==e.escapedName&&!i.get(e.escapedName)}),1}()||(function(e){if(e){var t=e.parent;switch(e.kind){case 20:case 27:return at.isConstructorDeclaration(e.parent)?e.parent:undefined;default:if($(e))return t.parent}}return undefined}(v)?(V=5,P=!0,L=4,1):0)||function(){var n=function(e,t,n){switch(n.kind){case 312:return at.tryCast(n.parent,at.isObjectTypeDeclaration);case 1:var r=at.tryCast(at.lastOrUndefined(at.cast(n.parent,at.isSourceFile).statements),at.isObjectTypeDeclaration);if(r&&!at.findChildOfKind(r,19,e))return r}if(!t)return undefined;switch(t.kind){case 26:case 19:return le(n)&&n.parent.name===n?n.parent.parent:at.tryCast(n,at.isObjectTypeDeclaration);case 18:case 27:return at.tryCast(t.parent,at.isObjectTypeDeclaration);default:if(!le(t))return undefined;var i=at.isClassLike(t.parent.parent)?oe:ae;return i(t.kind)||40===t.kind||at.isIdentifier(t)&&i(at.stringToToken(t.text))?t.parent.parent:undefined}}(f,v,k);if(!n)return 0;if(V=3,P=!0,L=40===v.kind?0:at.isClassLike(n)?2:3,!at.isClassLike(n))return 1;var e=v.parent,r=at.isClassElement(e)?at.getModifierFlags(e):0;if(73===v.kind&&!te(v))switch(v.getText()){case"private":r|=8;break;case"static":r|=32}{var t;8&r||(t=at.flatMap(at.getAllSuperTypeNodes(n),function(e){var t=_.getTypeAtLocation(e);return t&&_.getPropertiesOfType(32&r?_.getTypeOfSymbolAtLocation(t.symbol,n):t)}),M=function(e,t,n){for(var r=at.createUnderscoreEscapedMap(),i=0,a=t;i<a.length;i++){var o,s=a[i];155!==s.kind&&157!==s.kind&&159!==s.kind&&160!==s.kind||te(s)||at.hasModifier(s,8)||at.hasModifier(s,32)!==!!(32&n)||(o=at.getPropertyNameForPropertyNameNode(s.name))&&r.set(o,!0)}return e.filter(function(e){return!(r.has(e.escapedName)||!e.declarations||8&at.getDeclarationModifierFlagsFromSymbol(e))})}(t,n.members,r))}return 1}()||(e=function(e){if(e){var t=e.parent;switch(e.kind){case 30:case 29:case 42:case 73:case 190:case 269:case 268:case 270:if(t&&(262===t.kind||263===t.kind)){if(30===e.kind){var n=at.findPrecedingToken(e.pos,f,undefined);if(!t.typeArguments||n&&42===n.kind)break}return t}if(268===t.kind)return t.parent.parent;break;case 10:if(t&&(268===t.kind||270===t.kind))return t.parent.parent;break;case 19:if(t&&271===t.kind&&t.parent&&268===t.parent.kind)return t.parent.parent.parent;if(t&&270===t.kind)return t.parent.parent}}return undefined}(v),(t=e&&_.getContextualType(e.attributes))?(M=function(e,t){for(var n=at.createUnderscoreEscapedMap(),r=0,i=t;r<i.length;r++){var a=i[r];te(a)||268===a.kind&&n.set(a.name.escapedText,!0)}return e.filter(function(e){return!n.get(e.escapedName)})}(ce(t,e.attributes,_),e.attributes.properties),P=!(V=3),1):0)||(function(){L=function(e){if(e){var t,n=at.findAncestor(e.parent,function(e){return at.isClassLike(e)?"quit":!(!at.isFunctionLikeDeclaration(e)||t!==e.body)||(t=e,!1)});return n&&n}}(v)?5:1,V=1,P=function(e){if(e){var t=e.parent.kind;switch(se(e)){case 27:return 192===t||158===t||193===t||188===t||205===t||166===t;case 20:return 192===t||158===t||193===t||196===t||178===t;case 22:return 188===t||163===t||150===t;case 131:case 132:return!0;case 24:return 245===t;case 18:return 241===t;case 60:return 238===t||205===t;case 15:return 207===t;case 16:return 217===t;case 116:case 114:case 115:return 155===t}}return!1}(v),y!==v&&at.Debug.assert(!!y,"Expected 'contextToken' to be defined when different from 'previousToken'.");var e=y!==v?y.getStart():u,t=function(e,t,n){var r=e;for(;r&&!at.positionBelongsToNode(r,t,n);)r=r.parent;return r}(v,e,f)||f;g=function(e){switch(e.kind){case 285:case 207:case 271:case 219:return!0;default:return at.isStatement(e)}}(t);var n=69996520|(X()?0:67220415);M=at.Debug.assertEachDefined(_.getSymbolsInScope(t,n),"getSymbolsInScope() should all be defined");for(var r=0,i=M;r<i.length;r++){var a=i[r];_.isArgumentsSymbol(a)||at.some(a.declarations,function(e){return e.getSourceFile()===f})||(O[at.getSymbolId(a)]=ne.GlobalsOrKeywords)}if(l.includeCompletionsWithInsertText&&285!==t.kind){var o=_.tryGetThisTypeAt(t,!1);if(o)for(var s=0,c=ue(o,_);s<c.length;s++){a=c[s];F[at.getSymbolId(a)]={kind:0},M.push(a),O[at.getSymbolId(a)]=ne.SuggestedClassMembers}}l.includeCompletionsForModuleExports&&(f.externalModuleIndicator||!f.commonJsModuleIndicator&&(at.compilerOptionsIndicateEs6Modules(d.getCompilerOptions())||at.programContainsEs6Modules(d)))&&function(s,e,c){var u=e.toLowerCase(),l=at.createMap();at.codefix.forEachExternalModuleToImportFrom(_,f,d.getSourceFiles(),function(e){if(!p||!p.source||at.stripQuotes(e.name)===p.source){var t=_.resolveExternalModuleSymbol(e);if(at.addToSeen(l,at.getSymbolId(t))){t!==e&&at.some(t.declarations,function(e){return!!e.getSourceFile().externalModuleIndicator})&&(s.push(t),O[at.getSymbolId(t)]=ne.AutoImportSuggestions,F[at.getSymbolId(t)]={kind:3,moduleSymbol:e,isDefaultExport:!1});for(var n=0,r=_.getExportsOfModule(e);n<r.length;n++){var i,a,o=r[n];_.getMergedSymbol(o.parent)!==t||at.some(o.declarations,function(e){return at.isExportSpecifier(e)&&(e.propertyName?at.isIdentifierANonContextualKeyword(e.name):!!e.parent.parent.moduleSpecifier)})||((i="default"===o.escapedName)&&(o=at.getLocalSymbolForExportDefault(o)||o),a={kind:3,moduleSymbol:e,isDefaultExport:i},(p||function(e,t){if(0===t.length)return!0;for(var n=0,r=0;r<e.length;r++)if(e.charCodeAt(r)===t.charCodeAt(n)&&++n===t.length)return!0;return!1}(re(o,a,c).toLowerCase(),u))&&(s.push(o),O[at.getSymbolId(o)]=ne.AutoImportSuggestions,F[at.getSymbolId(o)]=a))}}}})}(M,y&&at.isIdentifier(y)?y.text:"",d.getCompilerOptions().target);!function(e){var n=X(),r=n||!q(v)&&at.isPossiblyTypeArgumentPosition(v,f,_);n&&(L=6);at.filterMutate(e,function(e){if(!at.isSourceFile(k)){if(at.isExportAssignment(k.parent))return!0;if(e=at.skipAlias(e,_),at.isInRightSideOfInternalImportEqualsDeclaration(k))return!!(1920&e.flags);if(r){var t=Q(e);if(t||n)return t}}return!!(67220415&at.getCombinedLocalAndExportSymbolFlags(e))})}(M)}(),1))}function X(){return h||!q(v)&&(at.isPartOfTypeNode(k)||function(e){if(e){var t=e.parent.kind;switch(e.kind){case 57:return 155===t||154===t||152===t||238===t||at.isFunctionLikeKind(t);case 60:return 243===t;case 120:return 213===t;case 87:return 151===t}}return!1}(v))}function q(e){return e&&105===e.kind&&(168===e.parent.kind||at.isTypeOfExpression(e.parent))}function Q(e,t){void 0===t&&(t=at.createMap());var n=at.skipAlias(e.exportSymbol||e,_);return!!(67897832&n.flags)||!!(1536&n.flags)&&at.addToSeen(t,at.getSymbolId(n))&&_.getExportsOfModule(n).some(function(e){return Q(e,t)})}function $(e){return e.parent&&at.isParameter(e.parent)&&at.isConstructorDeclaration(e.parent.parent)&&(at.isParameterPropertyModifier(e.kind)||at.isDeclarationName(e))}function ee(e){return at.isFunctionLikeKind(e)&&158!==e}function te(e){return e.getStart(f)<=u&&u<=e.getEnd()}}function U(e,t,n,r){var i=re(e,n,t);if(i===undefined||1536&e.flags&&at.startsWithQuote(i)||at.isKnownSymbol(e))return undefined;var a={name:i,needsConvertPropertyAccess:!1};if(at.isIdentifierText(i,t))return a;switch(r){case 3:return undefined;case 0:return{name:JSON.stringify(i),needsConvertPropertyAccess:!1};case 2:case 1:return 32===i.charCodeAt(0)?undefined:{name:i,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:at.Debug.assertNever(r)}}b.getCompletionEntriesFromSymbols=w,b.getCompletionEntryDetails=function(e,t,n,r,i,a,o,s,c){var u=e.getTypeChecker(),l=e.getCompilerOptions(),d=i.name,p=at.findPrecedingToken(r,n);if(at.isInString(n,r,p))return b.StringCompletions.getStringLiteralCompletionDetails(d,n,r,p,u,l,a,c);var f=v(e,t,n,r,i);switch(f.type){case"request":var _=f.request;switch(_.kind){case 1:return at.JsDoc.getJSDocTagNameCompletionDetails(d);case 2:return at.JsDoc.getJSDocTagCompletionDetails(d);case 3:return at.JsDoc.getJSDocParameterNameCompletionDetails(d);default:return at.Debug.assertNever(_)}case"symbol":var h=f.symbol,g=f.location,m=function(e,t,n,r,i,a,o,s,c,u,l){var d=e[at.getSymbolId(t)];if(!d||!Y(d))return{codeActions:undefined,sourceDisplay:undefined};var p=d.moduleSymbol,f=r.getMergedSymbol(at.skipAlias(t.exportSymbol||t,r)),_=at.codefix.getImportCompletionAction(f,p,o,re(t,d,a.target),i,n,u,c&&at.isIdentifier(c)?c.getStart(o):s,l),h=_.moduleSpecifier,g=_.codeAction;return{sourceDisplay:[at.textPart(h)],codeActions:[g]}}(f.symbolToOriginInfoMap,h,e,u,a,l,n,r,f.previousToken,o,s);return I(h,u,n,g,c,m.codeActions,m.sourceDisplay);case"literal":var y=f.literal;return E(A(y),"string","string"==typeof y?at.SymbolDisplayPartKind.stringLiteral:at.SymbolDisplayPartKind.numericLiteral);case"none":return T().some(function(e){return e.name===d})?E(d,"keyword",at.SymbolDisplayPartKind.keyword):undefined;default:at.Debug.assertNever(f)}},b.createCompletionDetailsForSymbol=I,b.createCompletionDetails=f,b.getCompletionEntrySymbol=function(e,t,n,r,i){var a=v(e,t,n,r,i);return"symbol"===a.type?a.symbol:undefined},(i={})[i.Data=0]="Data",i[i.JsDocTagName=1]="JsDocTagName",i[i.JsDocTag=2]="JsDocTag",i[i.JsDocParameterName=3]="JsDocParameterName",(a=b.CompletionKind||(b.CompletionKind={}))[a.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",a[a.Global=1]="Global",a[a.PropertyAccess=2]="PropertyAccess",a[a.MemberLike=3]="MemberLike",a[a.String=4]="String",a[a.None=5]="None";var V=[],T=at.memoize(function(){for(var e=[],t=74;t<=148;t++)e.push({name:at.tokenToString(t),kind:"keyword",kindModifiers:"",sortText:ne.GlobalsOrKeywords});return e});function P(r){return V[r]||(V[r]=T().filter(function(e){var t,n=at.stringToToken(e.name);switch(r){case 0:return!1;case 1:return 122===n||123;case 2:return oe(n);case 3:return ae(n);case 4:return at.isParameterPropertyModifier(n);case 5:return 122===(t=n)||123===t||!at.isContextualKeyword(t)&&!oe(t);case 6:return at.isTypeKeyword(n);default:return at.Debug.assertNever(r)}}))}function ae(e){return 134===e}function oe(e){switch(e){case 119:case 125:case 127:case 138:case 122:return!0;default:return at.isClassMemberModifier(e)}}function se(e){return at.isIdentifier(e)?e.originalKeywordKind||0:e.kind}function ce(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(e.types.filter(function(e){return!(131068&e.flags||n.isArrayLikeType(e)||at.typeHasCallOrConstructSignatures(e,n)||n.isTypeInvalidDueToUnionDiscriminant(e,t))})):e.getApparentProperties()}function ue(e,t){return e.isUnion()?at.Debug.assertEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):at.Debug.assertEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function le(e){return e.parent&&at.isClassOrTypeElement(e.parent)&&at.isObjectTypeDeclaration(e.parent.parent)}function de(e){var t=e.left;return at.nodeIsMissing(t)}}((at=rg=rg||{}).Completions||(at.Completions={})),((ot=rg=rg||{}).DocumentHighlights||(ot.DocumentHighlights={})).getDocumentHighlights=function(e,t,n,r,i){var a,o,s=ot.getTouchingPropertyName(n,r);if(s.parent&&(ot.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||ot.isJsxClosingElement(s.parent))){var c=s.parent.parent,u=[c.openingElement,c.closingElement].map(function(e){return Cu(e.tagName,n)});return[{fileName:n.fileName,highlightSpans:u}]}return function(e,t,i,n,a){var o=ot.arrayToSet(a,function(e){return e.fileName}),r=ot.FindAllReferences.getReferenceEntriesForNode(e,t,i,a,n,undefined,o);if(!r)return undefined;var s=ot.arrayToMultiMap(r.map(ot.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return ot.arrayFrom(s.entries(),function(e){var t,n=e[0],r=e[1];return o.has(n)||(ot.Debug.assert(i.redirectTargetsMap.has(n)),t=i.getSourceFile(n),n=ot.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===t}).fileName,ot.Debug.assert(o.has(n))),{fileName:n,highlightSpans:r}})}(r,s,e,t,i)||(o=function(e,r){switch(e.kind){case 92:case 84:return ot.isIfStatement(e.parent)?function(e,t){for(var n=function(e,t){var n=[];for(;ot.isIfStatement(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){var r=e.getChildren(t);ku(n,r[0],92);for(var i=r.length-1;0<=i&&!ku(n,r[i],84);i--);if(!e.elseStatement||!ot.isIfStatement(e.elseStatement))break;e=e.elseStatement}return n}(e,t),r=[],i=0;i<n.length;i++){if(84===n[i].kind&&i<n.length-1){for(var a=n[i],o=n[i+1],s=!0,c=o.getStart(t)-1;c>=a.end;c--)if(!ot.isWhiteSpaceSingleLine(t.text.charCodeAt(c))){s=!1;break}if(s){r.push({fileName:t.fileName,textSpan:ot.createTextSpanFromBounds(a.getStart(),o.end),kind:"reference"}),i++;continue}}r.push(Cu(n[i],t))}return r}(e.parent,r):undefined;case 98:return i(e.parent,ot.isReturnStatement,Mu);case 102:return i(e.parent,ot.isThrowStatement,Lu);case 104:case 76:case 89:return i(76===e.kind?e.parent.parent:e.parent,ot.isTryStatement,Pu);case 100:return i(e.parent,ot.isSwitchStatement,Vu);case 75:case 81:return i(e.parent.parent.parent,ot.isSwitchStatement,Vu);case 74:case 79:return i(e.parent,ot.isBreakOrContinueStatement,wu);case 90:case 108:case 83:return i(e.parent,function(e){return ot.isIterationStatement(e,!0)},Au);case 125:return t(ot.isConstructorDeclaration,[125]);case 127:case 138:return t(ot.isAccessor,[127,138]);case 123:return i(e.parent,ot.isAwaitExpression,Fu);case 122:return a(Fu(e));case 118:return a(function(e){var t=ot.getContainingFunction(e);if(!t)return undefined;var n=[];return ot.forEachChild(t,function(e){Ou(e,function(e){ot.isYieldExpression(e)&&ku(n,e.getFirstToken(),118)})}),n}(e));default:return ot.isModifierKind(e.kind)&&(ot.isDeclaration(e.parent)||ot.isVariableStatement(e.parent))?a(function(t,e){return ot.mapDefined(function(e,t){var n=e.parent;switch(n.kind){case 246:case 285:case 219:case 272:case 273:return 128&t&&ot.isClassDeclaration(e)?e.members.concat([e]):n.statements;case 158:case 157:case 240:return n.parameters.concat(ot.isClassLike(n.parent)?n.parent.members:[]);case 241:case 210:var r=n.members;if(28&t){var i=ot.find(n.members,ot.isConstructorDeclaration);if(i)return r.concat(i.parameters)}else if(128&t)return r.concat([n]);return r;default:ot.Debug.assertNever(n,"Invalid container kind.")}}(e,ot.modifierToFlag(t)),function(e){return ot.findModifier(e,t)})}(e.kind,e.parent)):undefined}function t(t,n){return i(e.parent,t,function(e){return ot.mapDefined(e.symbol.declarations,function(e){return t(e)?ot.find(e.getChildren(r),function(e){return ot.contains(n,e.kind)}):undefined})})}function i(e,t,n){return t(e)?a(n(e,r)):undefined}function a(e){return e&&e.map(function(e){return Cu(e,r)})}}(s,a=n))&&[{fileName:a.fileName,highlightSpans:o}]},(st=rg=rg||{}).createDocumentRegistry=function(e,t){return Ru(e,t)},st.createDocumentRegistryInternal=Ru,ct=rg=rg||{},(ut=ct.FindAllReferences||(ct.FindAllReferences={})).createImportTracker=function(E,I,T,C){var B=function(e,a,t){for(var o=ct.createMap(),n=0,r=e;n<r.length;n++){var i=r[n];t&&t.throwIfCancellationRequested(),Wu(i,function(e,t){var n,r,i=a.getSymbolAtLocation(t);i&&(n=ct.getSymbolId(i).toString(),(r=o.get(n))||o.set(n,r=[]),r.push(e))})}return o}(E,T,C);return function(e,t,n){var r,i,a,o,l,u,s,d,p,c,f,_,h,g=(r=E,i=I,a=B,l=T,u=C,s=(o=t).exportingModuleSymbol,d=o.exportKind,p=ct.nodeSeenTracker(),c=ct.nodeSeenTracker(),f=[],_=!!s.globalExports,h=_?undefined:[],function v(e){var t,n=b(e);if(n)for(var r=0,i=n;r<i.length;r++){var a=i[r];if(p(a))switch(u&&u.throwIfCancellationRequested(),a.kind){case 192:if(!_){var o=a.parent;if(2===d&&238===o.kind){var s=o.name;if(73===s.kind){f.push(s);break}}y(a.getSourceFile())}break;case 73:break;case 249:m(a,a.name,ct.hasModifier(a,1),!1);break;case 250:f.push(a);var c=a.importClause&&a.importClause.namedBindings;c&&252===c.kind?m(a,c.name,!1,!0):!_&&ct.isDefaultImport(a)&&y(Yu(a));break;case 256:a.exportClause?f.push(a):v((t=a,l.getMergedSymbol(Yu(t).symbol)));break;case 184:f.push(a);break;default:ct.Debug.failBadSyntaxKind(a,"Unexpected import kind.")}}}(s),{directImports:f,indirectUsers:function(){if(_)return r;for(var e=0,t=s.declarations;e<t.length;e++){var n=t[e];ct.isExternalModuleAugmentation(n)&&i.has(n.getSourceFile().fileName)&&y(n)}return h.map(ct.getSourceFileOfNode)}()});function m(e,t,n,r){var i,a,o,s,c;2===d?r||f.push(e):_||(i=Yu(e),ct.Debug.assert(285===i.kind||245===i.kind),(n||(a=i,o=t,c=(s=l).getSymbolAtLocation(o),ju(a,function(e){if(ct.isExportDeclaration(e)){var t=e.exportClause;return!e.moduleSpecifier&&t&&t.elements.some(function(e){return s.getExportSpecifierLocalTargetSymbol(e)===c})}}))?function u(e){if(!y(e))return;var t=l.getMergedSymbol(e.symbol);ct.Debug.assert(!!(1536&t.flags));var n=b(t);if(n)for(var r=0,i=n;r<i.length;r++){var a=i[r];u(Yu(a))}}:y)(i))}function y(e){ct.Debug.assert(!_);var t=c(e);return t&&h.push(e),t}function b(e){return a.get(ct.getSymbolId(e).toString())}return Qb({indirectUsers:g.indirectUsers},function(e,o,a,s,c){var n=[],u=[];function l(e,t){n.push([e,t])}if(e)for(var t=0,r=e;t<r.length;t++){!function(e){if(249===e.kind)return zu(e)&&d(e.name);if(73===e.kind)return d(e);if(184===e.kind)return e.qualifier?ct.isIdentifier(e.qualifier)&&e.qualifier.escapedText===ct.symbolName(o)&&u.push(e.qualifier):2===a&&u.push(e.argument.literal);if(10!==e.moduleSpecifier.kind)return;if(256===e.kind)return p(e.exportClause);var t=e.importClause||{name:undefined,namedBindings:undefined},n=t.name,r=t.namedBindings;if(r)switch(r.kind){case 252:d(r.name);break;case 253:0!==a&&1!==a||p(r);break;default:ct.Debug.assertNever(r)}{var i;!n||1!==a&&2!==a||c&&n.escapedText!==ct.symbolEscapedNameNoDefault(o)||(i=s.getSymbolAtLocation(n),l(n,i))}}(r[t])}return{importSearches:n,singleReferences:u};function d(e){2!==a||c&&!f(e.escapedText)||l(e,s.getSymbolAtLocation(e))}function p(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var r=n[t],i=r.name,a=r.propertyName;f((a||i).escapedText)&&(a?(u.push(a),c&&i.escapedText!==o.escapedName||l(i,s.getSymbolAtLocation(i))):l(i,258===r.kind&&r.propertyName?s.getExportSpecifierLocalTargetSymbol(r):s.getSymbolAtLocation(i)))}}function f(e){return e===o.escapedName||0!==a&&"default"===e}}(g.directImports,e,t.exportKind,T,n))}},(lt=ut.ExportKind||(ut.ExportKind={}))[lt.Named=0]="Named",lt[lt.Default=1]="Default",lt[lt.ExportEquals=2]="ExportEquals",(dt=ut.ImportExport||(ut.ImportExport={}))[dt.Import=0]="Import",dt[dt.Export=1]="Export",ut.findModuleReferences=function(e,t,n){for(var r=[],i=e.getTypeChecker(),a=0,o=t;a<o.length;a++){var s=o[a],c=n.valueDeclaration;if(285===c.kind){for(var u=0,l=s.referencedFiles;u<l.length;u++){var d=l[u];e.getSourceFileFromReference(s,d)===c&&r.push({kind:"reference",referencingFile:s,ref:d})}for(var p=0,f=s.typeReferenceDirectives;p<f.length;p++){var d=f[p],_=e.getResolvedTypeReferenceDirectives().get(d.fileName);_!==undefined&&_.resolvedFileName===c.fileName&&r.push({kind:"reference",referencingFile:s,ref:d})}}Wu(s,function(e,t){i.getSymbolAtLocation(t)===n&&r.push({kind:"import",literal:t})})}return r},ut.getImportOrExportSymbol=function(a,o,s,c){return c?e():e()||function(){if(!function(e){var t=e.parent;switch(t.kind){case 249:return t.name===e&&zu(t);case 254:return!t.propertyName;case 251:case 252:return ct.Debug.assert(t.name===e),1;default:return}}(a))return undefined;var e=s.getImmediateAliasedSymbol(o);if(!e)return undefined;"export="===(e=function(e,t){if(e.declarations)for(var n=0,r=e.declarations;n<r.length;n++){var i=r[n];if(ct.isExportSpecifier(i)&&!i.propertyName&&!i.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(i)}return e}(e,s)).escapedName&&(e=function(e,t){if(2097152&e.flags)return ct.Debug.assertDefined(t.getImmediateAliasedSymbol(e));var n=e.valueDeclaration;{if(ct.isExportAssignment(n))return ct.Debug.assertDefined(n.expression.symbol);if(ct.isBinaryExpression(n))return ct.Debug.assertDefined(n.right.symbol);if(ct.isSourceFile(n))return ct.Debug.assertDefined(n.symbol)}return ct.Debug.fail()}(e,s));var t=ct.symbolEscapedNameNoDefault(e);if(t===undefined||"default"===t||t===o.escapedName)return{kind:0,symbol:e}}();function e(){var t=a.parent,e=t.parent;if(o.exportSymbol)return 190===t.kind?o.declarations.some(function(e){return e===t})&&ct.isBinaryExpression(e)?i(e,!1):undefined:u(o.exportSymbol,l(t));var n=function(e,t){{if(238!==e.kind)return e;var n=e;return n.name===t&&275!==n.parent.kind&&220===n.parent.parent.kind?n.parent.parent:undefined}}(t,a);if(n&&ct.hasModifier(n,1)){return ct.isImportEqualsDeclaration(n)&&n.moduleReference===a?c?undefined:{kind:0,symbol:s.getSymbolAtLocation(n.name)}:u(o,l(n))}else{if(ct.isExportAssignment(t))return r(t);if(ct.isExportAssignment(e))return r(e);if(ct.isBinaryExpression(t))return i(t,!0);if(ct.isBinaryExpression(e))return i(e,!0);if(ct.isJSDocTypedefTag(t))return u(o,0)}function r(e){var t=ct.Debug.assertDefined(e.symbol.parent,"Expected export symbol to have a parent"),n=e.isExportEquals?2:1;return{kind:1,symbol:o,exportInfo:{exportingModuleSymbol:t,exportKind:n}}}function i(e,t){var n;switch(ct.getAssignmentDeclarationKind(e)){case 1:n=0;break;case 2:n=2;break;default:return undefined}var r=t?s.getSymbolAtLocation(ct.cast(e.left,ct.isPropertyAccessExpression).name):o;return!r||1536&s.getMergedSymbol(r.parent).flags||ct.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+ct.Debug.formatSymbol(r)+", parent is "+ct.Debug.formatSymbol(r.parent)),r&&u(r,n)}}function u(e,t){var n=Gu(e,t,s);return n&&{kind:1,symbol:e,exportInfo:n}}function l(e){return ct.hasModifier(e,512)?1:0}},ut.getExportInfo=Gu,pt=rg=rg||{},ft=pt.FindAllReferences||(pt.FindAllReferences={}),(_t=ft.DefinitionKind||(ft.DefinitionKind={}))[_t.Symbol=0]="Symbol",_t[_t.Label=1]="Label",_t[_t.Keyword=2]="Keyword",_t[_t.This=3]="This",_t[_t.String=4]="String",(ht=ft.EntryKind||(ft.EntryKind={}))[ht.Span=0]="Span",ht[ht.Node=1]="Node",ht[ht.StringLiteral=2]="StringLiteral",ht[ht.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",ht[ht.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",ft.nodeEntry=Uu,ft.findReferencedSymbols=function(e,n,t,r,i){var c=pt.getTouchingPropertyName(r,i),a=ft.Core.getReferencedSymbolsForNode(i,c,e,t,n),o=e.getTypeChecker();return a&&a.length?pt.mapDefined(a,function(e){var s=e.definition,t=e.references;return s&&{definition:o.runWithCancellationToken(n,function(e){return d=s,p=e,f=c,t=function(){switch(d.type){case 0:var e=Xu(s=d.symbol,p,f),t=e.displayParts,n=e.kind,r=t.map(function(e){return e.text}).join("");return{node:s.declarations?pt.getNameOfDeclaration(pt.first(s.declarations))||pt.first(s.declarations):f,name:r,kind:n,displayParts:t};case 1:var i=d.node;return{node:i,name:i.text,kind:"label",displayParts:[pt.displayPart(i.text,pt.SymbolDisplayPartKind.text)]};case 2:var a=d.node,o=pt.tokenToString(a.kind);return{node:a,name:o,kind:"keyword",displayParts:[{text:o,kind:"keyword"}]};case 3:var s,c=d.node,u=(s=p.getSymbolAtLocation(c))&&pt.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(p,s,c.getSourceFile(),pt.getContainerNode(c),c).displayParts||[pt.textPart("this")];return{node:c,name:"this",kind:"var",displayParts:u};case 4:var l=d.node;return{node:l,name:l.text,kind:"var",displayParts:[pt.displayPart(pt.getTextOfNode(l),pt.SymbolDisplayPartKind.stringLiteral)]};default:return pt.Debug.assertNever(d)}}(),n=t.node,r=t.name,i=t.kind,a=t.displayParts,{containerKind:"",containerName:"",fileName:(o=n.getSourceFile()).fileName,kind:i,name:r,textSpan:$u(pt.isComputedPropertyName(n)?n.expression:n,o),displayParts:a};var d,p,f,t,n,r,i,a,o}),references:t.map(qu)}}):undefined},ft.getImplementationsAtPosition=function(e,t,n,r,i){var a=function(e,t,n,r,i){if(285===r.kind)return undefined;var a=e.getTypeChecker();{if(277===r.parent.kind){var o=[];return ft.Core.getReferenceEntriesForShorthandPropertyAssignment(r,a,function(e){return o.push(Uu(e))}),o}if(99===r.kind||pt.isSuperProperty(r.parent)){var s=a.getSymbolAtLocation(r);return s.valueDeclaration&&[Uu(s.valueDeclaration)]}return Ku(i,r,e,n,t,{implementations:!0})}}(e,t,n,pt.getTouchingPropertyName(r,i),i),o=e.getTypeChecker();return pt.map(a,function(e){return function(e,t){{if(0!==e.kind){var n=e.node,r=n.getSourceFile();return Qb({textSpan:$u(n,r),fileName:r.fileName},function(e,t){var n=t.getSymbolAtLocation(pt.isDeclaration(e)&&e.name?e.name:e);return n?Xu(n,t,e):189===e.kind?{kind:"interface",displayParts:[pt.punctuationPart(20),pt.textPart("object literal"),pt.punctuationPart(21)]}:210===e.kind?{kind:"local class",displayParts:[pt.punctuationPart(20),pt.textPart("anonymous local class"),pt.punctuationPart(21)]}:{kind:pt.getNodeKind(e),displayParts:[]}}(n,t))}var i=e.textSpan,a=e.fileName;return{textSpan:i,fileName:a,kind:"",displayParts:[]}}}(e,o)})},ft.findReferenceOrRenameEntries=function(t,e,n,r,i,a,o){return pt.map(Zu(ft.Core.getReferencedSymbolsForNode(i,r,t,n,e,a)),function(e){return o(e,r,t.getTypeChecker())})},ft.getReferenceEntriesForNode=Ku,ft.toRenameLocation=function(e,t,n,r){return Qb({},Qu(e),r&&function(e,t,n){if(0!==e.kind&&pt.isIdentifier(t)){var r=e.node,i=e.kind,a=t.text,o=pt.isShorthandPropertyAssignment(r.parent);if(o||pt.isObjectBindingElementWithoutPropertyName(r.parent)){var s={prefixText:a+": "},c={suffixText:": "+a};return 3!==i&&(4===i||o)?c:s}if(pt.isImportSpecifier(e.node.parent)&&!e.node.parent.propertyName){var u=pt.isExportSpecifier(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return pt.contains(u.declarations,e.node.parent)?{prefixText:a+" as "}:pt.emptyOptions}if(pt.isExportSpecifier(e.node.parent)&&!e.node.parent.propertyName)return t===e.node?{prefixText:a+" as "}:{suffixText:" as "+a}}return pt.emptyOptions}(e,t,n))},ft.toReferenceEntry=qu,ft.toHighlightSpan=function(e){if(0===e.kind)return{fileName:e.fileName,span:{textSpan:e.textSpan,kind:"reference"}};var t=e.node,n=e.kind,r=t.getSourceFile(),i=el(t),a={textSpan:$u(t,r),kind:i?"writtenReference":"reference",isInString:2===n||undefined};return{fileName:r.fileName,span:a}},ft.getTextSpanOfEntry=function(e){return 0===e.kind?e.textSpan:$u(e.node,e.node.getSourceFile())},gt=rg=rg||{},function(e){function T(e,t,n){if(e.parent&&gt.isNamespaceExportDeclaration(e.parent)){var r=n.getAliasedSymbol(t),i=n.getMergedSymbol(r);if(r!==i)return i}return undefined}function b(e,t,n,r,i,a){var o=1536&e.flags?gt.find(e.declarations,gt.isSourceFile):undefined;if(!o)return undefined;var s=e.exports.get("export="),c=E(t,e,!!s,n,a);if(!s||!a.has(o.fileName))return c;var u=t.getTypeChecker();return v(t,c,I(e=gt.skipAlias(s,u),undefined,n,a,u,r,i))}function v(o){for(var i,e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(var n=0,r=e;n<r.length;n++){var a=r[n];if(a&&a.length)if(i)for(var s=function s(e){if(!e.definition||0!==e.definition.type)return i.push(e),"continue";var t=e.definition.symbol,n=gt.findIndex(i,function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===t});if(-1===n)return i.push(e),"continue";var r=i[n];i[n]={definition:r.definition,references:r.references.concat(e.references).sort(function(e,t){var n=l(o,e),r=l(o,t);if(n!==r)return gt.compareValues(n,r);var i=mt.getTextSpanOfEntry(e),a=mt.getTextSpanOfEntry(t);return i.start!==a.start?gt.compareValues(i.start,a.start):gt.compareValues(i.length,a.length)})}},c=0,u=a;c<u.length;c++){s(u[c])}else i=a}return i}function l(e,t){var n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function E(e,t,r,n,i){gt.Debug.assert(!!t.valueDeclaration);for(var a=gt.mapDefined(mt.findModuleReferences(e,n,t),function(e){if("import"!==e.kind)return{kind:0,fileName:e.referencingFile.fileName,textSpan:gt.createTextSpanFromRange(e.ref)};var t=e.literal.parent;if(gt.isLiteralTypeNode(t)){var n=gt.cast(t.parent,gt.isImportTypeNode);if(r&&!n.qualifier)return undefined}return mt.nodeEntry(e.literal)}),o=0,s=t.declarations;o<s.length;o++){switch((d=s[o]).kind){case 285:break;case 245:i.has(d.getSourceFile().fileName)&&a.push(mt.nodeEntry(d.name));break;default:gt.Debug.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var c=t.exports.get("export=");if(c)for(var u=0,l=c.declarations;u<l.length;u++){var d,p,f=(d=l[u]).getSourceFile();i.has(f.fileName)&&(p=gt.isBinaryExpression(d)&&gt.isPropertyAccessExpression(d.left)?d.left.expression:gt.isExportAssignment(d)?gt.Debug.assertDefined(gt.findChildOfKind(d,86,f)):gt.getNameOfDeclaration(d)||d,a.push(mt.nodeEntry(p)))}return a.length?[{definition:{type:0,symbol:t},references:a}]:gt.emptyArray}function I(e,t,n,r,i,a,o){var s,c,u,l,d,p,f,_,h=t&&function(t,n,r,e){var i=n.parent;if(gt.isExportSpecifier(i)&&e)return V(n,t,i,r);return gt.firstDefined(t.declarations,function(e){if(!e.parent){if(33554432&t.flags)return undefined;gt.Debug.fail("Unexpected symbol at "+gt.Debug.formatSyntaxKind(n.kind)+": "+gt.Debug.formatSymbol(t))}return gt.isTypeLiteralNode(e.parent)&&gt.isUnionTypeNode(e.parent.parent)?r.getPropertyOfType(r.getTypeFromTypeNode(e.parent.parent),t.name):undefined})}(e,t,i,!O(o))||e,g=t?F(t,h):7,m=[],y=new B(n,r,t?function(e){switch(e.kind){case 125:return 1;case 73:if(gt.isClassLike(e.parent))return gt.Debug.assert(e.parent.name===e),2;default:return 0}}(t):0,i,a,g,o,m),b=O(o)?gt.find(h.declarations,gt.isExportSpecifier):undefined;return b?w(b.name,h,b,y.createSearch(t,e,undefined),y,!0,!0):t&&81===t.kind?(P(t,h,y),x(t,h,{exportingModuleSymbol:gt.Debug.assertDefined(h.parent,"Expected export symbol to have a parent"),exportKind:1},y)):(s=y.createSearch(t,h,undefined,{allSearchSymbols:t?(c=h,u=t,l=i,d=!!o.isForRename,p=!!o.providePrefixAndSuffixTextForRename,f=!!o.implementations,_=[],M(c,u,l,d,!(d&&p),function(e,t,n){_.push(n||t||e)},function(){return!f}),_):[h]}),C(h,y,s)),m}function C(e,t,n){var r=function(e){var t=e.declarations,n=e.flags,r=e.parent,i=e.valueDeclaration;if(i&&(197===i.kind||210===i.kind))return i;if(!t)return undefined;if(8196&n){var a=gt.find(t,function(e){return gt.hasModifier(e,8)});return a?gt.getAncestor(a,241):undefined}if(t.some(gt.isObjectBindingElementWithoutPropertyName))return undefined;var o,s=r&&!(262144&e.flags);if(s&&(!gt.isExternalModuleSymbol(r)||r.globalExports))return undefined;for(var c=0,u=t;c<u.length;c++){var l=u[c],d=gt.getContainerNode(l);if(o&&o!==d)return undefined;if(!d||285===d.kind&&!gt.isExternalOrCommonJsModule(d))return undefined;o=d}return s?o.getSourceFile():o}(e);if(r)c(r,r.getSourceFile(),n,t,!(gt.isSourceFile(r)&&!gt.contains(t.sourceFiles,r)));else for(var i=0,a=t.sourceFiles;i<a.length;i++){var o=a[i];t.cancellationToken.throwIfCancellationRequested(),S(o,n,t)}}var t;e.getReferencedSymbolsForNode=function(e,t,n,r,i,a,o){if(void 0===a&&(a={}),void 0===o&&(o=gt.arrayToSet(r,function(e){return e.fileName})),gt.isSourceFile(t)){var s=gt.GoToDefinition.getReferenceAtPosition(t,e,n),c=s&&n.getTypeChecker().getMergedSymbol(s.file.symbol);return c&&E(n,c,!1,r,o)}if(!a.implementations){var u=function(e,t,n){if(gt.isTypeKeyword(e.kind))return function(e,t,n){var r=gt.flatMap(e,function(e){return n.throwIfCancellationRequested(),gt.mapDefined(N(e,gt.tokenToString(t),e),function(e){return e.kind===t?mt.nodeEntry(e):undefined})});return r.length?[{definition:{type:2,node:r[0].node},references:r}]:undefined}(t,e.kind,n);{if(gt.isJumpStatementTarget(e)){var r=gt.getTargetLabel(e.parent,e.text);return r&&D(r.parent,r)}if(gt.isLabelOfLabeledStatement(e))return D(e.parent,e)}if(gt.isThis(e))return function(e,t,n){var r=gt.getThisContainer(e,!1),i=32;switch(r.kind){case 157:case 156:if(gt.isObjectLiteralMethod(r))break;case 155:case 154:case 158:case 159:case 160:i&=gt.getModifierFlags(r),r=r.parent;break;case 285:if(gt.isExternalModule(r)||L(e))return undefined;case 240:case 197:break;default:return undefined}var a=gt.flatMap(285===r.kind?t:[r.getSourceFile()],function(e){return n.throwIfCancellationRequested(),N(e,"this",gt.isSourceFile(r)?e:r).filter(function(e){if(!gt.isThis(e))return!1;var t=gt.getThisContainer(e,!1);switch(r.kind){case 197:case 240:return r.symbol===t.symbol;case 157:case 156:return gt.isObjectLiteralMethod(r)&&r.symbol===t.symbol;case 210:case 241:return t.parent&&r.symbol===t.parent.symbol&&(32&gt.getModifierFlags(t))===i;case 285:return 285===t.kind&&!gt.isExternalModule(t)&&!L(e)}})}).map(function(e){return mt.nodeEntry(e)});return[{definition:{type:3,node:gt.firstDefined(a,function(e){return gt.isParameter(e.node.parent)?e.node:undefined})||e},references:a}]}(e,t,n);return 99!==e.kind?undefined:function(e){var n=gt.getSuperContainer(e,!1);if(!n)return undefined;var r=32;switch(n.kind){case 155:case 154:case 157:case 156:case 158:case 159:case 160:r&=gt.getModifierFlags(n),n=n.parent;break;default:return undefined}var t=n.getSourceFile(),i=gt.mapDefined(N(t,"super",n),function(e){if(99===e.kind){var t=gt.getSuperContainer(e,!1);return t&&(32&gt.getModifierFlags(t))===r&&t.parent.symbol===n.symbol?mt.nodeEntry(e):undefined}});return[{definition:{type:0,symbol:n.symbol},references:i}]}(e)}(t,r,i);if(u)return u}var l,d,p,f,_=n.getTypeChecker(),h=_.getSymbolAtLocation(t);if(!h)return!a.implementations&&gt.isStringLiteral(t)?(l=t,d=r,p=i,f=gt.flatMap(d,function(e){return p.throwIfCancellationRequested(),gt.mapDefined(N(e,l.text),function(e){return gt.isStringLiteral(e)&&e.text===l.text?mt.nodeEntry(e,2):undefined})}),[{definition:{type:4,node:l},references:f}]):undefined;if("export="===h.escapedName)return E(n,h.parent,!1,r,o);var g=b(h,n,r,i,a,o);if(g&&!(33554432&h.flags))return g;var m=T(t,h,_),y=m&&b(m,n,r,i,a,o);return v(n,g,I(h,t,r,o,_,i,a),y)},(t={})[t.None=0]="None",t[t.Constructor=1]="Constructor",t[t.Class=2]="Class";var B=(n.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},n.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=mt.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,!!this.options.isForRename)},n.prototype.createSearch=function(e,t,n,r){void 0===r&&(r={});var i,a,o,s,c,u,l=r.text,d=void 0===l?gt.stripQuotes(gt.unescapeLeadingUnderscores((gt.getLocalSymbolForExportDefault(t)||function(e){if(!(33555968&e.flags))return undefined;var t=e.declarations&&gt.find(e.declarations,function(e){return!gt.isSourceFile(e)&&!gt.isModuleDeclaration(e)});return t&&t.symbol}(t)||t).escapedName)):l,p=r.allSearchSymbols,f=void 0===p?[t]:p;return{symbol:t,comingFrom:n,text:d,escapedText:gt.escapeLeadingUnderscores(d),parents:this.options.implementations&&e?(i=e,a=t,o=this.checker,s=gt.isRightSideOfPropertyAccess(i)?i.parent:undefined,c=s&&o.getTypeAtLocation(s.expression),0===(u=gt.mapDefined(c&&(c.isUnionOrIntersection()?c.types:c.symbol===a.parent?undefined:[c]),function(e){return e.symbol&&96&e.symbol.flags?e.symbol:undefined})).length?undefined:u):undefined,allSearchSymbols:f,includes:function(e){return gt.contains(f,e)}}},n.prototype.referenceAdder=function(e){var t=gt.getSymbolId(e),n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),function(e,t){return n.push(mt.nodeEntry(e,t))}},n.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:undefined,references:[{kind:0,fileName:e,textSpan:t}]})},n.prototype.markSearchedSymbols=function(e,t){for(var n=gt.getNodeId(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=gt.createMap()),i=!1,a=0,o=t;a<o.length;a++)var s=o[a],i=gt.addToSeen(r,gt.getSymbolId(s))||i;return i},n);function n(e,t,n,r,i,a,o,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=a,this.options=o,this.result=s,this.inheritsFromCache=gt.createMap(),this.markSeenContainingTypeReference=gt.nodeSeenTracker(),this.markSeenReExportRHS=gt.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}function x(e,t,n,r){var i,a,o=r.getImportSearches(t,n),s=o.importSearches,c=o.singleReferences,u=o.indirectUsers;if(c.length)for(var l=r.referenceAdder(t),d=0,p=c;d<p.length;d++){var f=p[d];!A(i=f,a=r)||a.options.isForRename&&(!gt.isIdentifier(i)||gt.isImportOrExportSpecifier(i.parent)&&"default"===i.escapedText)||l(f)}for(var _=0,h=s;_<h.length;_++){var g=h[_],m=g[0],y=g[1];k(m.getSourceFile(),r.createSearch(m,y,1),r)}if(u.length){var b=void 0;switch(n.exportKind){case 0:b=r.createSearch(e,t,1);break;case 1:b=r.options.isForRename?undefined:r.createSearch(e,t,1,{text:"default"})}if(b)for(var v=0,E=u;v<E.length;v++){S(E[v],b,r)}}}function m(e,t){for(var n=0,r=e.declarations;n<r.length;n++){var i=r[n],a=i.getSourceFile();k(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function S(e,t,n){gt.getNameTable(e).get(t.escapedText)!==undefined&&k(e,t,n)}function r(e,t,n,r){var i=gt.isParameterPropertyDeclaration(e.parent)?gt.first(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(!i)return undefined;for(var a=0,o=N(n,i.name);a<o.length;a++){var s=o[a];if(gt.isIdentifier(s)&&s!==e&&s.escapedText===e.escapedText){var c=t.getSymbolAtLocation(s);if(c===i||t.getShorthandAssignmentValueSymbol(s.parent)===i||gt.isExportSpecifier(s.parent)&&V(s,c,s.parent,t)===i){var u=r(s);if(u)return u}}}}function N(t,e,n){return void 0===n&&(n=t),s(t,e,n).map(function(e){return gt.getTouchingPropertyName(t,e)})}function s(e,t,n){void 0===n&&(n=e);var r=[];if(!t||!t.length)return r;for(var i=e.text,a=i.length,o=t.length,s=i.indexOf(t,n.pos);0<=s&&!(s>n.end);){var c=s+o;0!==s&&gt.isIdentifierPart(i.charCodeAt(s-1),8)||c!==a&&gt.isIdentifierPart(i.charCodeAt(c),8)||r.push(s),s=i.indexOf(t,s+o+1)}return r}function D(e,t){var n=e.getSourceFile(),r=t.text,i=gt.mapDefined(N(n,r,e),function(e){return e===t||gt.isJumpStatementTarget(e)&&gt.getTargetLabel(e,r)===t?mt.nodeEntry(e):undefined});return[{definition:{type:1,node:t},references:i}]}function k(e,t,n,r){return void 0===r&&(r=!0),n.cancellationToken.throwIfCancellationRequested(),c(e,e,t,n,r),0}function c(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(var a=0,o=s(t,n.text,e);a<o.length;a++){!function(e,t,n,r,i){var a=gt.getTouchingPropertyName(e,t);if(!function(e,t){switch(e.kind){case 73:return e.text.length===t.length;case 10:var n=e;return(gt.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||gt.isNameOfModuleDeclaration(e)||gt.isExpressionOfExternalModuleImportEqualsDeclaration(e)||gt.isCallExpression(e.parent)&&gt.isBindableObjectDefinePropertyCall(e.parent)&&e.parent.arguments[1]===e)&&n.text.length===t.length;case 8:return gt.isLiteralNameOfPropertyDeclarationOrIndexAccess(e)&&e.text.length===t.length;case 81:return"default".length===t.length;default:return}}(a,n.text))return!r.options.implementations&&(r.options.findInStrings&&gt.isInString(e,t)||r.options.findInComments&&gt.isInNonReferenceComment(e,t))&&r.addStringOrCommentReference(e.fileName,gt.createTextSpan(t,n.text.length));if(!A(a,r))return;var o=r.checker.getSymbolAtLocation(a);if(!o)return;var s=a.parent;if(gt.isImportSpecifier(s)&&s.propertyName===a)return;if(gt.isExportSpecifier(s))return gt.Debug.assert(73===a.kind),w(a,o,s,n,r,i);var c=function(i,e,t,n){var r=n.checker;return M(e,t,r,!1,!n.options.isForRename||!!n.options.providePrefixAndSuffixTextForRename,function(e,t,n,r){return i.includes(n||t||e)?{symbol:!t||6&gt.getCheckFlags(e)?e:t,kind:r}:undefined},function(t){return!i.parents||i.parents.some(function(e){return function s(e,n,r,i){if(e===n)return!0;var t=gt.getSymbolId(e)+","+gt.getSymbolId(n);var a=r.get(t);if(a!==undefined)return a;r.set(t,!1);var o=e.declarations.some(function(e){return gt.getAllSuperTypeNodes(e).some(function(e){var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&s(t.symbol,n,r,i)})});r.set(t,o);return o}(t.parent,e,n.inheritsFromCache,r)})})}(n,o,a,r);if(!c)return function(e,t,n){var r=e.flags,i=e.valueDeclaration,a=n.checker.getShorthandAssignmentValueSymbol(i),o=i&&gt.getNameOfDeclaration(i);33554432&r||!o||!t.includes(a)||P(o,a,n)}(o,n,r);switch(r.specialSearchKind){case 0:i&&P(a,c,r);break;case 1:!function(e,t,n,r){gt.isNewExpressionTarget(e)&&P(e,n.symbol,r);var i=function i(){return r.referenceAdder(n.symbol)};{var a;gt.isClassLike(e.parent)?(gt.Debug.assert(81===e.kind||e.parent.name===e),function(e,t,r){var n=u(e);if(n)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i],s=gt.findChildOfKind(o,125,t);gt.Debug.assert(158===o.kind&&!!s),r(s)}e.exports&&e.exports.forEach(function(e){var t,n=e.valueDeclaration;!n||157!==n.kind||(t=n.body)&&p(t,101,function(e){gt.isNewExpressionTarget(e)&&r(e)})})}(n.symbol,t,i())):(a=function(e){return gt.tryGetClassExtendingExpressionWithTypeArguments(gt.climbPastPropertyAccess(e).parent)}(e))&&(function(e,t){var n=u(e.symbol);if(!n)return;for(var r=0,i=n.declarations;r<i.length;r++){var a=i[r];gt.Debug.assert(158===a.kind);var o=a.body;o&&p(o,99,function(e){gt.isCallExpressionTarget(e)&&t(e)})}}(a,i()),function(e,t){if(function(e){return!!u(e.symbol)}(e))return;var n=e.symbol,r=t.createSearch(undefined,n,undefined);C(n,t,r)}(a,r))}}(a,e,n,r);break;case 2:!function(e,t,n){P(e,t.symbol,n);var r=e.parent;if(n.options.isForRename||!gt.isClassLike(r))return;gt.Debug.assert(r.name===e);for(var i=n.referenceAdder(t.symbol),a=0,o=r.members;a<o.length;a++){var s=o[a];gt.isMethodOrAccessor(s)&&gt.hasModifier(s,32)&&s.body&&s.body.forEachChild(function c(e){101===e.kind?i(e):gt.isFunctionLike(e)||gt.isClassLike(e)||e.forEachChild(c)})}}(a,n,r);break;default:gt.Debug.assertNever(r.specialSearchKind)}!function(e,t,n,r){var i=mt.getImportOrExportSymbol(e,t,r.checker,1===n.comingFrom);if(!i)return;var a=i.symbol;0===i.kind?O(r.options)||m(a,r):x(e,a,i.exportInfo,r)}(a,o,n,r)}(t,o[a],n,r,i)}}function A(e,t){return gt.getMeaningFromLocation(e)&t.searchMeaning}function w(e,t,n,r,i,a,o){gt.Debug.assert(!o||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var s,c,u,l,d=n.parent,p=n.propertyName,f=n.name,_=d.parent,h=V(e,t,n,i.checker);function g(){a&&P(e,h,i)}(o||r.includes(h))&&(p?e===p?(_.moduleSpecifier||g(),a&&!i.options.isForRename&&i.markSeenReExportRHS(f)&&P(f,gt.Debug.assertDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&g():i.options.isForRename&&"default"===f.escapedText||g(),O(i.options)&&!o||(s=81===e.originalKeywordKind||81===n.name.originalKeywordKind?1:0,c=gt.Debug.assertDefined(n.symbol),u=gt.Debug.assertDefined(mt.getExportInfo(c,s,i.checker)),x(e,c,u,i)),1===r.comingFrom||!_.moduleSpecifier||p||O(i.options)||(l=i.checker.getExportSpecifierLocalTargetSymbol(n))&&m(l,i))}function V(e,t,n,r){return i=e,o=(a=n).parent,s=a.propertyName,c=a.name,gt.Debug.assert(s===i||c===i),(s?s===i:!o.parent.moduleSpecifier)&&r.getExportSpecifierLocalTargetSymbol(n)||t;var i,a,o,s,c}function P(e,t,n){var r="kind"in t?t:{kind:undefined,symbol:t},i=r.kind,a=r.symbol,o=n.referenceAdder(a);n.options.implementations?function(e,n,t){if(gt.isDeclarationName(e)&&function(e){return 4194304&e.flags?!(gt.isInterfaceDeclaration(e)||gt.isTypeAliasDeclaration(e)):gt.isVariableLike(e)?gt.hasInitializer(e):gt.isFunctionLikeDeclaration(e)?!!e.body:gt.isClassLike(e)||gt.isModuleOrEnumDeclaration(e)}(e.parent))return n(e);if(73!==e.kind)return;277===e.parent.kind&&d(e,t.checker,n);var r=function c(e){return gt.isIdentifier(e)||gt.isPropertyAccessExpression(e)?c(e.parent):gt.isExpressionWithTypeArguments(e)?gt.tryCast(e.parent.parent,gt.isClassLike):undefined}(e);if(r)return n(r);var i=gt.findAncestor(e,function(e){return!gt.isQualifiedName(e.parent)&&!gt.isTypeNode(e.parent)&&!gt.isTypeElement(e.parent)}),a=i.parent;{var o;gt.hasType(a)&&a.type===i&&t.markSeenContainingTypeReference(a)&&(gt.hasInitializer(a)?s(a.initializer):gt.isFunctionLike(a)&&a.body?219===(o=a.body).kind?gt.forEachReturnStatement(o,function(e){e.expression&&s(e.expression)}):s(o):gt.isAssertionExpression(a)&&s(a.expression))}function s(e){!function t(e){switch(e.kind){case 196:return t(e.expression);case 198:case 197:case 189:case 210:case 188:return!0;default:return!1}}(e)||n(e)}}(e,o,n):o(e,i)}function u(e){return e.members&&e.members.get("__constructor")}function L(e){return 73===e.kind&&152===e.parent.kind&&e.parent.name===e}function M(e,t,i,n,r,a,o){var s,c,u=gt.getContainingObjectLiteralElement(t);if(u){var l=i.getShorthandAssignmentValueSymbol(t.parent);if(l&&n)return a(l,undefined,undefined,3);var d=i.getContextualType(u.parent),p=d&&gt.firstDefined(gt.getPropertySymbolsFromContextualType(u,i,d,!0),function(e){return E(e,4)});if(p)return p;var f=(s=t,c=i,gt.isArrayLiteralOrObjectLiteralDestructuringPattern(s.parent.parent)?c.getPropertySymbolOfDestructuringAssignment(s):undefined),_=f&&a(f,undefined,undefined,4);if(_)return _;var h=l&&a(l,undefined,undefined,3);if(h)return h}var g=T(t,e,i);if(g){var m=a(g,undefined,undefined,1);if(m)return m}var y=E(e);if(y)return y;if(e.valueDeclaration&&gt.isParameterPropertyDeclaration(e.valueDeclaration)){var b=i.getSymbolsOfParameterPropertyDeclaration(gt.cast(e.valueDeclaration,gt.isParameter),e.name);return gt.Debug.assert(2===b.length&&!!(1&b[0].flags)&&!!(4&b[1].flags)),E(1&e.flags?b[1]:b[0])}if(!n){var v=void 0;return(v=r?gt.isObjectBindingElementWithoutPropertyName(t.parent)?gt.getPropertySymbolFromBindingElement(i,t.parent):undefined:I(e,i))&&E(v,4)}if(gt.Debug.assert(n),r)return(v=I(e,i))&&E(v,4);function E(n,r){return gt.firstDefined(i.getRootSymbols(n),function(t){return a(n,t,undefined,r)||(t.parent&&96&t.parent.flags&&o(t)?gt.getPropertySymbolsFromBaseTypes(t.parent,t.name,i,function(e){return a(n,t,e,r)}):undefined)})}function I(e,t){var n=gt.getDeclarationOfKind(e,187);if(n&&gt.isObjectBindingElementWithoutPropertyName(n))return gt.getPropertySymbolFromBindingElement(t,n)}}function F(e,t){var n=gt.getMeaningFromLocation(e),r=t.declarations;if(r){var i;do{i=n;for(var a=0,o=r;a<o.length;a++){var s=o[a],c=gt.getMeaningFromDeclaration(s);c&n&&(n|=c)}}while(n!==i)}return n}function d(e,t,n){var r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(var a=0,o=i.getDeclarations();a<o.length;a++){var s=o[a];1&gt.getMeaningFromDeclaration(s)&&n(s)}}function p(e,t,n){gt.forEachChild(e,function(e){e.kind===t&&n(e),p(e,t,n)})}function O(e){return e.isForRename&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,a,o,s){for(var c=mt.createImportTracker(e,gt.arrayToSet(e,function(e){return e.fileName}),t,n)(r,{exportKind:o?1:0,exportingModuleSymbol:i},!1),u=c.importSearches,l=c.indirectUsers,d=0,p=u;d<p.length;d++){s(p[d][0])}for(var f=0,_=l;f<_.length;f++)for(var h=0,g=N(_[f],o?"default":a);h<g.length;h++){var m=g[h];gt.isIdentifier(m)&&!gt.isImportOrExportSpecifier(m.parent)&&t.getSymbolAtLocation(m)===r&&s(m)}},e.isSymbolReferencedInFile=function(e,t,n){return r(e,t,n,function(){return!0})||!1},e.eachSymbolReferenceInFile=r,e.eachSignatureCall=function(e,t,n,r){if(e.name&&gt.isIdentifier(e.name))for(var i=gt.Debug.assertDefined(n.getSymbolAtLocation(e.name)),a=0,o=t;a<o.length;a++)for(var s=0,c=N(o[a],i.name);s<c.length;s++){var u,l,d,p=c[s];gt.isIdentifier(p)&&p!==e.name&&p.escapedText===e.name.escapedText&&(l=(u=gt.climbPastPropertyAccess(p)).parent,!gt.isCallExpression(l)||l.expression!==u||(d=n.getSymbolAtLocation(p))&&n.getRootSymbols(d).some(function(e){return e===i})&&r(l))}},e.getIntersectingMeaningFromDeclarations=F,e.getReferenceEntriesForShorthandPropertyAssignment=d}((mt=gt.FindAllReferences||(gt.FindAllReferences={})).Core||(mt.Core={})),(yt=rg=rg||{}).getEditsForFileRename=function(t,n,r,i,e,a,o){var s=yt.hostUsesCaseSensitiveFileNames(i),c=yt.createGetCanonicalFileName(s),u=tl(n,r,c,o),l=tl(r,n,c,o);return yt.textChanges.ChangeTracker["with"]({host:i,formatContext:e},function(e){!function(e,i,r,a,o,s,c){var u=e.getCompilerOptions().configFile;if(!u)return;var l=yt.getDirectoryPath(u.fileName),t=yt.getTsConfigObjectLiteralExpression(u);if(!t)return;function d(e){for(var t=!1,n=0,r=yt.isArrayLiteralExpression(e.initializer)?e.initializer.elements:[e.initializer];n<r.length;n++)t=p(r[n])||t;return t}function p(e){if(!yt.isStringLiteral(e))return!1;var t=nl(l,e.text),n=r(t);return n!==undefined&&(i.replaceRangeWithText(u,il(e,u),f(n)),!0)}function f(e){return yt.getRelativePathFromDirectory(l,e,!c)}al(t,function(e,t){switch(t){case"files":case"include":case"exclude":var n,r;!d(e)&&"include"===t&&yt.isArrayLiteralExpression(e.initializer)&&(n=yt.mapDefined(e.initializer.elements,function(e){return yt.isStringLiteral(e)?e.text:undefined}),r=yt.getFileMatcherPatterns(l,[],n,c,s),yt.getRegexFromPattern(yt.Debug.assertDefined(r.includeFilePattern),c).test(a)&&!yt.getRegexFromPattern(yt.Debug.assertDefined(r.includeFilePattern),c).test(o)&&i.insertNodeAfter(u,yt.last(e.initializer.elements),yt.createStringLiteral(f(o))));break;case"compilerOptions":al(e.initializer,function(e,t){var n=yt.getOptionFromName(t);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?d(e):"paths"===t&&al(e.initializer,function(e){if(yt.isArrayLiteralExpression(e.initializer))for(var t=0,n=e.initializer.elements;t<n.length;t++){p(n[t])}})})}})}(t,e,u,n,r,i.getCurrentDirectory(),s),function(l,t,d,n,p,f){for(var _=l.getSourceFiles(),h=function h(r){var e=d(r.path),i=e!==undefined?e:r.path,a=yt.getDirectoryPath(i),o=n(r.fileName),s=o||r.fileName,c=yt.getDirectoryPath(s),u=e!==undefined||o!==undefined;!function(e,t,n,r){for(var i=0,a=e.referencedFiles||yt.emptyArray;i<a.length;i++){var o=a[i];(u=n(o.fileName))!==undefined&&u!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,u)}for(var s=0,c=e.imports;s<c.length;s++){var u,l=c[s];(u=r(l))!==undefined&&u!==l.text&&t.replaceRangeWithText(e,il(l,e),u)}}(r,t,function(e){if(!yt.pathIsRelative(e))return undefined;var t=nl(c,e),n=d(t);return n===undefined?undefined:yt.ensurePathIsNonModuleName(yt.getRelativePathFromDirectory(a,n,f))},function(e){var t=l.getTypeChecker().getSymbolAtLocation(e);if(t&&t.declarations.some(function(e){return yt.isAmbientModule(e)}))return undefined;var n=o!==undefined?rl(yt.resolveModuleName(e.text,s,l.getCompilerOptions(),p),d):function(e,t,n,r,i,a){{if(e){var o=yt.find(e.declarations,yt.isSourceFile).fileName,s=a(o);return s===undefined?{newFileName:o,updated:!1}:{newFileName:s,updated:!0}}return rl(i.resolveModuleNames?i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName):r.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName),a)}}(t,e,r,l,p,d);return n!==undefined&&(n.updated||u&&yt.pathIsRelative(e.text))?yt.moduleSpecifiers.updateModuleSpecifier(l.getCompilerOptions(),i,n.newFileName,p,_,l.redirectTargetsMap,e.text):undefined})},e=0,r=_;e<r.length;e++){var i=r[e];h(i)}}(t,e,u,l,i,c)})},yt.getPathUpdater=tl,bt=rg=rg||{},(vt=bt.GoToDefinition||(bt.GoToDefinition={})).getDefinitionAtPosition=ol,vt.getReferenceAtPosition=sl,vt.getTypeDefinitionAtPosition=function(e,t,n){var r=bt.getTouchingPropertyName(t,n);if(r===t)return undefined;var i=e.getSymbolAtLocation(r);if(!i)return undefined;var a=e.getTypeOfSymbolAtLocation(i,r),o=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&bt.isVariableDeclaration(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){var r=t.getCallSignatures();if(1===r.length)return n.getReturnTypeOfSignature(bt.first(r))}return undefined}(i,a,e),s=o&&cl(o,e,r);return s&&0!==s.length?s:cl(a,e,r)},vt.getDefinitionAndBoundSpan=function(e,t,n){var r=ol(e,t,n);if(!r||0===r.length)return undefined;var i=fl(t.referencedFiles,n)||fl(t.typeReferenceDirectives,n)||fl(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:bt.createTextSpanFromRange(i)};var a=bt.getTouchingPropertyName(t,n);return{definitions:r,textSpan:bt.createTextSpan(a.getStart(),a.getWidth())}},vt.findReferenceInPosition=fl,Et=rg=rg||{},It=Et.JsDoc||(Et.JsDoc={}),Bt=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],It.getJsDocCommentsFromDeclarations=function(e){var i=[];return _l(e,function(e){for(var t=0,n=function(e){switch(e.kind){case 305:case 311:return[e];case 303:case 310:return[e,e.parent];default:return Et.getJSDocCommentsAndTags(e)}}(e);t<n.length;t++){var r=n[t].comment;r!==undefined&&(i.length&&i.push(Et.lineBreakPart()),i.push(Et.textPart(r)))}}),i},It.getJsDocTagsFromDeclarations=function(e){var i=[];return _l(e,function(e){for(var t=0,n=Et.getJSDocTags(e);t<n.length;t++){var r=n[t];i.push({name:r.tagName.text,text:function(e){var t=e.comment;switch(e.kind){case 301:return r(e["class"]);case 309:return function(e){return i(e.map(function(e){return e.getText()}).join(", "))}(e.typeParameters);case 308:return r(e.typeExpression);case 310:case 303:case 311:case 305:var n=e.name;return n?r(n):t;default:return t}function r(e){return i(e.getText())}function i(e){return t===undefined?e:e+" "+t}}(r)})}}),i},It.getJSDocTagNameCompletions=function(){return Tt=Tt||Et.map(Bt,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}})},It.getJSDocTagNameCompletionDetails=hl,It.getJSDocTagCompletions=function(){return Ct=Ct||Et.map(Bt,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}})},It.getJSDocTagCompletionDetails=hl,It.getJSDocParameterNameCompletions=function(n){if(!Et.isIdentifier(n.name))return Et.emptyArray;var r=n.name.text,i=n.parent,e=i.parent;return Et.isFunctionLike(e)?Et.mapDefined(e.parameters,function(e){if(!Et.isIdentifier(e.name))return undefined;var t=e.name.text;return i.tags.some(function(e){return e!==n&&Et.isJSDocParameterTag(e)&&Et.isIdentifier(e.name)&&e.name.escapedText===t})||r!==undefined&&!Et.startsWith(t,r)?undefined:{name:t,kind:"parameter",kindModifiers:"",sortText:"0"}}):[]},It.getJSDocParameterNameCompletionDetails=function(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Et.textPart(e)],documentation:Et.emptyArray,tags:undefined,codeActions:undefined}},It.getDocCommentTemplateAtPosition=function(e,t,n){var r=Et.getTokenAtPosition(t,n),i=Et.findAncestor(r,Et.isJSDoc);if(i&&(i.comment!==undefined||Et.length(i.tags)))return undefined;var a=r.getStart(t);if(!i&&a<n)return undefined;var o,s=(o=r,Et.forEachAncestor(o,gl));if(!s)return undefined;var c=s.commentOwner,u=s.parameters;if(c.getStart(t)<n)return undefined;if(!u||0===u.length){return{newText:"/** */",caretOffset:3}}var l,d,p,f,_=function(e,t){for(var n=e.text,r=Et.getLineStartPositionForPosition(t,e),i=r;i<=t&&Et.isWhiteSpaceSingleLine(n.charCodeAt(i));i++);return n.slice(r,i)}(t,n),h="/**"+e+_+" * ";return{newText:h+e+(l=u,d=Et.hasJSFileExtension(t.fileName),p=_,f=e,l.map(function(e,t){var n=e.name,r=e.dotDotDotToken,i=73===n.kind?n.text:"param"+t;return p+" * @param "+(d?r?"{...any} ":"{any} ":"")+i+f}).join(""))+_+" */"+(a===n?e+_:""),caretOffset:h.length}},((xt=rg=rg||{}).NavigateTo||(xt.NavigateTo={})).getNavigateToItems=function(e,r,t,n,i,a){var o=xt.createPatternMatcher(n);if(!o)return xt.emptyArray;for(var s=[],c=function c(n){if(t.throwIfCancellationRequested(),a&&n.isDeclarationFile)return"continue";n.getNamedDeclarations().forEach(function(e,t){!function(e,t,n,r,i,a){var o=e.getMatchForLastSegmentOfPattern(t);if(!o)return;for(var s=0,c=n;s<c.length;s++){var u,l=c[s];!function(e,t){switch(e.kind){case 251:case 254:case 249:var n=t.getSymbolAtLocation(e.name),r=t.getAliasedSymbol(n);return n.escapedName!==r.escapedName;default:return!0}}(l,r)||(e.patternContainsDots?(u=e.getFullMatch(function(e){var t=[],n=xt.getNameOfDeclaration(e);if(n&&150===n.kind&&!ml(n.expression,t))return xt.emptyArray;t.shift();var r=xt.getContainerNode(e);for(;r;){if(!function(e,t){var n=xt.getNameOfDeclaration(e);return!!n&&(yl(n,t)||150===n.kind&&ml(n.expression,t))}(r,t))return xt.emptyArray;r=xt.getContainerNode(r)}return t.reverse()}(l),t))&&a.push({name:t,fileName:i,matchKind:u.kind,isCaseSensitive:u.isCaseSensitive,declaration:l}):a.push({name:t,fileName:i,matchKind:o.kind,isCaseSensitive:o.isCaseSensitive,declaration:l}))}}(o,t,e,r,n.fileName,s)})},u=0,l=e;u<l.length;u++){c(l[u])}return s.sort(bl),(i===undefined?s:s.slice(0,i)).map(vl)},St=rg=rg||{},Nt=St.NavigationBar||(St.NavigationBar={}),wt=/\s+/g,Vt=[],Pt=[],Nt.getNavigationBarItems=function(e,t){Dt=t,kt=e;try{return St.map((n=Bl(e),a=[],function o(e){if(i(e)&&(a.push(e),e.children))for(var t=0,n=e.children;t<n.length;t++){var r=n[t];o(r)}}(n),a),Hl)}finally{El()}function i(e){switch(Tl(e)){case 241:case 210:case 244:case 242:case 245:case 285:case 243:case 310:case 303:return 1;case 158:case 157:case 159:case 160:case 238:return t(e);case 198:case 240:case 197:return function(e){if(!e.node.body)return;switch(Tl(e.parent)){case 246:case 285:case 157:case 158:return 1;default:return t(e)}}(e);default:return}function t(e){return St.some(e.children,function(e){var t=Tl(e);return 238!==t&&187!==t})}}var n,a},Nt.getNavigationTree=function(e,t){Dt=t,kt=e;try{return Rl(Bl(e))}finally{El()}},Lt=rg=rg||{},(Mt=Lt.OrganizeImports||(Lt.OrganizeImports={})).organizeImports=function(o,s,c,t,e){var u=Lt.textChanges.ChangeTracker.fromContext({host:c,formatContext:s}),n=function n(e){return Ul(function(e,t,n){for(var r=n.getTypeChecker(),i=r.getJsxNamespace(t),a=!!(2&t.transformFlags),o=[],s=0,c=e;s<c.length;s++){var u,l,d,p=c[s],f=p.importClause;f?(u=f.name,l=f.namedBindings,u&&!_(u)&&(u=undefined),l&&(Lt.isNamespaceImport(l)?_(l.name)||(l=undefined):(d=l.elements.filter(function(e){return _(e.name)})).length<l.elements.length&&(l=d.length?Lt.updateNamedImports(l,d):undefined)),(u||l)&&o.push(Zl(p,u,l))):o.push(p)}return o;function _(e){return a&&e.text===i||Lt.FindAllReferences.Core.isSymbolReferencedInFile(e,r,t)}}(e,o,t))};l(o.statements.filter(Lt.isImportDeclaration),n),l(o.statements.filter(Lt.isExportDeclaration),Kl);for(var r=0,i=o.statements.filter(Lt.isAmbientModule);r<i.length;r++){var a=i[r];a.body&&(l(a.body.statements.filter(Lt.isImportDeclaration),n),l(a.body.statements.filter(Lt.isExportDeclaration),Kl))}return u.getChanges();function l(e,t){if(0!==Lt.length(e)){Lt.suppressLeadingTrivia(e[0]);var n=Lt.group(e,function(e){return zl(e.moduleSpecifier)}),r=Lt.stableSort(n,function(e,t){return ql(e[0].moduleSpecifier,t[0].moduleSpecifier)}),i=Lt.flatMap(r,function(e){return zl(e[0].moduleSpecifier)?t(e):e});0===i.length?u["delete"](o,e[0]):u.replaceNodeWithNodes(o,e[0],i,{leadingTriviaOption:Lt.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:Lt.textChanges.TrailingTriviaOption.Include,suffix:Lt.getNewLineOrDefaultFromHost(c,s.options)});for(var a=1;a<e.length;a++)u["delete"](o,e[a])}}},Mt.coalesceImports=Ul,Mt.coalesceExports=Kl,Mt.compareModuleSpecifiers=ql,Ft=rg=rg||{},function(){(Ft.OutliningElementsCollector||(Ft.OutliningElementsCollector={})).collectElements=function(e,t){var n=[];return function(n,r,i){var a=40,e=0,t=n.statements,o=t.length;for(;e<o;){for(;e<o&&!Ft.isAnyImportSyntax(t[e]);)u(t[e]),e++;if(e===o)break;for(var s=e;e<o&&Ft.isAnyImportSyntax(t[e]);)l(t[e],n,r,i),e++;var c=e-1;c!==s&&i.push(m(Ft.findChildOfKind(t[s],93,n).getStart(n),t[c].getEnd(),"imports"))}function u(e){var t;0!==a&&(r.throwIfCancellationRequested(),Ft.isDeclaration(e)&&l(e,n,r,i),function(e){if(!Ft.isFunctionExpression(e)&&!Ft.isArrowFunction(e))return!1;var t=Ft.findAncestor(e,Ft.isVariableStatement);return!!t&&Ft.getSingleInitializerOfVariableStatementOrPropertyDeclaration(t)===e}(e)&&l(e.parent.parent.parent,n,r,i),(t=function(s,c){switch(s.kind){case 219:if(Ft.isFunctionLike(s.parent))return function(e,t,n){var r=Ft.isNodeArrayMultiLine(e.parameters,n)?Ft.findChildOfKind(e,20,n):Ft.findChildOfKind(t,18,n),i=Ft.findChildOfKind(t,19,n);return r&&i&&d(r,i,e,n,198!==e.kind)}(s.parent,s,c);switch(s.parent.kind){case 224:case 227:case 228:case 226:case 223:case 225:case 232:case 275:return n(s.parent);case 236:var e=s.parent;if(e.tryBlock===s)return n(s.parent);if(e.finallyBlock===s)return n(Ft.findChildOfKind(e,89,c));default:return p(Ft.createTextSpanFromNode(s,c),"code")}case 246:return n(s.parent);case 241:case 210:case 242:case 244:case 247:return n(s);case 189:return t(s);case 188:return t(s,22);case 261:return function(e){var t=Ft.createTextSpanFromBounds(e.openingElement.getStart(c),e.closingElement.getEnd()),n=e.openingElement.tagName.getText(c);return p(t,"code",t,!1,"<"+n+">...</"+n+">")}(s);case 262:case 263:return function(e){return 0!==e.properties.length?m(e.getStart(c),e.getEnd(),"code"):undefined}(s.attributes)}function t(e,t){return void 0===t&&(t=18),n(e,!1,!Ft.isArrayLiteralExpression(e.parent)&&!Ft.isCallExpression(e.parent),t)}function n(e,t,n,r,i){void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=18),void 0===i&&(i=18===r?19:23);var a=Ft.findChildOfKind(s,r,c),o=Ft.findChildOfKind(s,i,c);return a&&o&&d(a,o,e,c,t,n)}}(e,n))&&i.push(t),a--,Ft.isIfStatement(e)&&e.elseStatement&&Ft.isIfStatement(e.elseStatement)?(u(e.expression),u(e.thenStatement),a++,u(e.elseStatement),a--):e.forEachChild(u),a++)}}(e,t,n),function(e,t){for(var n=[],r=e.getLineStarts(),i=0;i<r.length;i++){var a,o,s=r[i],c=i+1===r.length?e.getEnd():r[i+1]-1,u=g(e.text.substring(s,c));u&&!Ft.isInComment(e,s)&&(u[1]?(a=n.pop())&&(a.textSpan.length=c-a.textSpan.start,a.hintSpan.length=c-a.textSpan.start,t.push(a)):(o=Ft.createTextSpanFromBounds(e.text.indexOf("//",s),c),n.push(p(o,"region",o,!1,u[2]||"#region"))))}}(e,n),n.sort(function(e,t){return e.textSpan.start-t.textSpan.start})};var t=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function g(e){return t.exec(e)}function l(e,t,n,r){var i=Ft.getLeadingCommentRangesOfNode(e,t);if(i){for(var a=-1,o=-1,s=0,c=t.getFullText(),u=0,l=i;u<l.length;u++){var d=l[u],p=d.kind,f=d.pos,_=d.end;switch(n.throwIfCancellationRequested(),p){case 2:if(g(c.slice(f,_))){h(),s=0;break}0===s&&(a=f),o=_,s++;break;case 3:h(),r.push(m(f,_,"comment")),s=0;break;default:Ft.Debug.assertNever(p)}}h()}function h(){1<s&&r.push(m(a,o,"comment"))}}function m(e,t,n){return p(Ft.createTextSpanFromBounds(e,t),n)}function d(e,t,n,r,i,a){return void 0===i&&(i=!1),void 0===a&&(a=!0),p(Ft.createTextSpanFromBounds(a?e.getFullStart():e.getStart(r),t.getEnd()),"code",Ft.createTextSpanFromNode(n,r),i)}function p(e,t,n,r,i){return void 0===n&&(n=e),void 0===r&&(r=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}}(),Ot=rg=rg||{},(Ht=Rt=Ot.PatternMatchKind||(Ot.PatternMatchKind={}))[Ht.exact=0]="exact",Ht[Ht.prefix=1]="prefix",Ht[Ht.substring=2]="substring",Ht[Ht.camelCase=3]="camelCase",Ot.createPatternMatcher=function(e){var n=Ot.createMap(),r=e.trim().split(".").map(function(e){return{totalTextChunk:dd(t=e.trim()),subWordTextChunks:function(e){for(var t=[],n=0,r=0,i=0;i<e.length;i++)!function(e){return sd(e)||cd(e)||ld(e)||95===e||36===e}(e.charCodeAt(i))?0<r&&(t.push(dd(e.substr(n,r))),r=0):(0===r&&(n=i),r++);return 0<r&&t.push(dd(e.substr(n,r))),t}(t)};var t});return r.some(function(e){return!e.subWordTextChunks.length})?undefined:{getFullMatch:function(e,t){return function(e,t,n,r){var i;if(!nd(t,Ot.last(n),r))return undefined;if(n.length-1>e.length)return undefined;for(var a=n.length-2,o=e.length-1;0<=a;--a,--o)i=rd(i,nd(e[o],n[a],r));return i}(e,t,r,n)},getMatchForLastSegmentOfPattern:function(e){return nd(e,Ot.last(r),n)},patternContainsDots:1<r.length}},Ot.breakIntoCharacterSpans=pd,Ot.breakIntoWordSpans=fd,(jt=rg=rg||{}).preProcessFile=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r,i,a,o={languageVersion:1,pragmas:undefined,checkJsDirective:undefined,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:undefined,moduleName:undefined},s=[],c=0,u=!1;function l(){return i=a,18===(a=jt.scanner.scan())?c++:19===a&&c--,a}function d(){var e=jt.scanner.getTokenValue(),t=jt.scanner.getTokenPos();return{fileName:e,pos:t,end:t+e.length}}function p(){s.push(d()),f()}function f(){0===c&&(u=!0)}function _(){var e=jt.scanner.getToken();return 126===e&&(131===l()&&10===l()&&(r=r||[]).push({ref:d(),depth:c}),1)}function h(e){var t=e?l():jt.scanner.getToken();return 135===t&&(20===l()&&10===l()&&p(),1)}if(t&&function(){for(jt.scanner.setText(e),l();1!==jt.scanner.getToken();)_()||function(){if(24!==i){var e=jt.scanner.getToken();if(93===e){if(20===(e=l())){if(10===(e=l()))return p(),1}else{if(10===e)return p(),1;if(73===e||jt.isKeyword(e))if(145===(e=l())){if(10===(e=l()))return p(),1}else if(60===e){if(h(!0))return 1}else{if(27!==e)return 1;e=l()}if(18===e){for(e=l();19!==e&&1!==e;)e=l();19===e&&145===(e=l())&&10===(e=l())&&p()}else 40===e&&120===(e=l())&&(73!==(e=l())&&!jt.isKeyword(e)||145!==(e=l())||10!==(e=l())||p())}return 1}}}()||function(){var e=jt.scanner.getToken();if(86===e){if(f(),18===(e=l())){for(e=l();19!==e&&1!==e;)e=l();19===e&&145===(e=l())&&10===(e=l())&&p()}else if(40===e)145===(e=l())&&10===(e=l())&&p();else if(93===e&&(73===(e=l())||jt.isKeyword(e))&&60===(e=l())&&h(!0))return 1;return 1}}()||n&&(h(!1)||function(){var e=jt.scanner.getToken();if(73===e&&"define"===jt.scanner.getTokenValue()){if(20!==(e=l()))return 1;if(10===(e=l())){if(27!==(e=l()))return 1;e=l()}if(22!==e)return 1;for(e=l();23!==e&&1!==e;)10===e&&p(),e=l();return 1}}())||l();jt.scanner.setText(undefined)}(),jt.processCommentPragmas(o,e),jt.processPragmasIntoFields(o,jt.noop),u){if(r)for(var g=0,m=r;g<m.length;g++){var y=m[g];s.push(y.ref)}return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:undefined}}var b=void 0;if(r)for(var v=0,E=r;v<E.length;v++){0===(y=E[v]).depth?(b=b||[]).push(y.ref.fileName):s.push(y.ref)}return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:b}},((Wt=rg=rg||{}).Rename||(Wt.Rename={})).getRenameInfo=function(t,e,n,r){var i=Wt.getTouchingPropertyName(e,n);return(i&&function(e){switch(e.kind){case 73:case 10:case 101:return!0;case 8:return Wt.isLiteralNameOfPropertyDeclarationOrIndexAccess(e);default:return!1}}(i)?function(e,t,n,r,i){var a=t.getSymbolAtLocation(e);if(!a)return;var o=a.declarations;if(!o||0===o.length)return;if(o.some(r))return bd(Wt.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Wt.isIdentifier(e)&&81===e.originalKeywordKind&&1536&a.parent.flags)return undefined;if(Wt.isStringLiteralLike(e)&&Wt.tryGetImportFromModuleSpecifier(e))return i&&i.allowRenameOfImportPath?function(e,t,n){if(!Wt.isExternalModuleNameRelative(e.text))return bd(Wt.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var r=Wt.find(n.declarations,Wt.isSourceFile);if(!r)return undefined;var i=Wt.endsWith(e.text,"/index")||Wt.endsWith(e.text,"/index.js")?undefined:Wt.tryRemoveSuffix(Wt.removeFileExtension(r.fileName),"/index"),a=i===undefined?r.fileName:i,o=i===undefined?"module":"directory",s=e.text.lastIndexOf("/")+1,c=Wt.createTextSpan(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:a,kind:o,displayName:a,fullDisplayName:a,kindModifiers:"",triggerSpan:c}}(e,n,a):undefined;var s=Wt.SymbolDisplay.getSymbolKind(t,a,e),c=Wt.isImportOrExportSpecifierName(e)||Wt.isStringOrNumericLiteralLike(e)&&150===e.parent.kind?Wt.stripQuotes(Wt.getTextOfIdentifierOrLiteral(e)):undefined,u=c||t.symbolToString(a),l=c||t.getFullyQualifiedName(a);return function(e,t,n,r,i,a){return{canRename:!0,fileToRename:undefined,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:function(e,t){var n=e.getStart(t),r=e.getWidth(t);10===e.kind&&(n+=1,r-=2);return Wt.createTextSpan(n,r)}(i,a)}}(u,l,s,Wt.SymbolDisplay.getSymbolModifiers(a),e,n)}(i,t.getTypeChecker(),e,function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())},r):undefined)||bd(Wt.Diagnostics.You_cannot_rename_this_element)},Gt=rg=rg||{},function(){(Gt.SmartSelectionRange||(Gt.SmartSelectionRange={})).getSmartSelectionRange=function(e,t){var n,r,i,a,o={textSpan:Gt.createTextSpanFromBounds(t.getFullStart(),t.getEnd())},s=t;e:for(;;){var c=function(t){if(Gt.isSourceFile(t))return b(t.getChildAt(0).getChildren(),y);if(Gt.isMappedTypeNode(t)){var e=t.getChildren(),n=e[0],r=e.slice(1),i=Gt.Debug.assertDefined(r.pop());Gt.Debug.assertEqual(n.kind,18),Gt.Debug.assertEqual(i.kind,19);var a=b(r,function(e){return e===t.readonlyToken||134===e.kind||e===t.questionToken||56===e.kind}),o=b(a,function(e){var t=e.kind;return 22===t||151===t||23===t});return[n,E(v(o,function(e){return 57===e.kind})),i]}if(Gt.isPropertySignature(t)){return v(r=b(t.getChildren(),function(e){return e===t.name||Gt.contains(t.modifiers,e)}),function(e){return 57===e.kind})}if(Gt.isParameter(t)){var s=b(t.getChildren(),function(e){return e===t.dotDotDotToken||e===t.name});return v(b(s,function(e){return e===s[0]||e===t.questionToken}),function(e){return 60===e.kind})}if(Gt.isBindingElement(t))return v(t.getChildren(),function(e){return 60===e.kind});return t.getChildren()}(s);if(!c.length)break;for(var u=0;u<c.length;u++){var l=c[u-1],d=c[u],p=c[u+1];if(d.getStart(t)>e)break e;if(function(e,t,n){if(Gt.Debug.assert(t.pos<=e),e<t.end)return!0;var r=t.getEnd(),i=n&&n.getStart();return r===e&&e!==i}(e,d,p)){if(Gt.isBlock(d)||Gt.isTemplateSpan(d)||Gt.isTemplateHead(d)||l&&Gt.isTemplateHead(l)||Gt.isVariableDeclarationList(d)&&Gt.isVariableStatement(s)||Gt.isSyntaxList(d)&&Gt.isVariableDeclarationList(s)||Gt.isVariableDeclaration(d)&&Gt.isSyntaxList(s)&&1===c.length){s=d;break}Gt.isTemplateSpan(s)&&p&&Gt.isTemplateMiddleOrTemplateTail(p)&&m(d.getFullStart()-"${".length,p.getStart()+"}".length);var f=Gt.isSyntaxList(d)&&(a=void 0,18===(a=(i=l)&&i.kind)||22===a||20===a||263===a)&&(r=void 0,19===(r=(n=p)&&n.kind)||23===r||21===r||264===r)&&!Gt.positionsAreOnSameLine(l.getStart(),p.getStart(),t),_=Gt.hasJSDocNodes(d)&&d.jsDoc[0].getStart(),h=f?l.getEnd():d.getStart(),g=f?p.getStart():d.getEnd();Gt.isNumber(_)&&m(_,g),m(h,g),(Gt.isStringLiteral(d)||Gt.isTemplateLiteral(d))&&m(h+1,g-1),s=d;break}}}return o;function m(e,t){var n;e!==t&&(n=Gt.createTextSpanFromBounds(e,t),o&&Gt.textSpansEqual(n,o.textSpan)||(o=Qb({textSpan:n},o&&{parent:o})))}};var y=Gt.or(Gt.isImportDeclaration,Gt.isImportEqualsDeclaration);function b(e,t){for(var n,r=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(n=n||[]).push(o):(n&&(r.push(E(n)),n=undefined),r.push(o))}return n&&r.push(E(n)),r}function v(e,t,n){if(void 0===n&&(n=!0),e.length<2)return e;var r=Gt.findIndex(e,t);if(-1===r)return e;var i=e.slice(0,r),a=e[r],o=Gt.last(e),s=n&&26===o.kind,c=e.slice(r+1,s?e.length-1:undefined),u=Gt.compact([i.length?E(i):undefined,a,c.length?E(c):undefined]);return s?u.concat(o):u}function E(e){Gt.Debug.assertGreaterThanOrEqual(e.length,1);var t=Gt.createNode(312,e[0].pos,Gt.last(e).end);return t._children=e,t}}(),function(e){var t,n;function f(e,t,n){for(var r=e.getFullStart(),i=e.parent;i;){var a=Yt.findPrecedingToken(r,t,i,!0);if(a)return Yt.rangeContainsRange(n,a);i=i.parent}return Yt.Debug.fail("Could not find preceding token")}function m(e,t){var n=function(e,t){{if(28===e.kind||20===e.kind)return{list:function(e,t,n){var r=e.getChildren(n),i=r.indexOf(t);return Yt.Debug.assert(0<=i&&r.length>i+1),r[i+1]}(e.parent,e,t),argumentIndex:0};var n=Yt.findContainingList(e);return n&&{list:n,argumentIndex:function(e,t){for(var n=0,r=0,i=e.getChildren();r<i.length;r++){var a=i[r];if(a===t)break;27!==a.kind&&n++}return n}(n,e)}}}(e,t);if(!n)return undefined;var r,i,a,o,s=n.list,c=n.argumentIndex,u=function(e){var t=e.getChildren(),n=Yt.countWhere(t,function(e){return 27!==e.kind});0<t.length&&27===Yt.last(t).kind&&n++;return n}(s);return 0!==c&&Yt.Debug.assertLessThan(c,u),{list:s,argumentIndex:c,argumentCount:u,argumentsSpan:(i=t,a=(r=s).getFullStart(),o=Yt.skipTrivia(i.text,r.getEnd(),!1),Yt.createTextSpan(a,o-a))}}function u(e,t,n){var r=e.parent;if(Yt.isCallOrNewExpression(r)){var i=r,a=m(e,n);if(!a)return undefined;var o=a.list,s=a.argumentIndex,c=a.argumentCount,u=a.argumentsSpan;return{isTypeParameterList:!!r.typeArguments&&r.typeArguments.pos===o.pos,invocation:{kind:0,node:i},argumentsSpan:u,argumentIndex:s,argumentCount:c}}if(Yt.isNoSubstitutionTemplateLiteral(e)&&Yt.isTaggedTemplateExpression(r))return Yt.isInsideTemplateLiteral(e,t,n)?y(r,0,n):undefined;if(Yt.isTemplateHead(e)&&194===r.parent.kind){var l=r.parent;return Yt.Debug.assert(207===r.kind),y(l,s=Yt.isInsideTemplateLiteral(e,t,n)?0:1,n)}if(Yt.isTemplateSpan(r)&&Yt.isTaggedTemplateExpression(r.parent.parent)){var d=r,l=r.parent.parent;return Yt.isTemplateTail(e)&&!Yt.isInsideTemplateLiteral(e,t,n)?undefined:y(l,s=function(e,t,n,r){if(Yt.Debug.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Yt.isTemplateLiteralToken(t))return Yt.isInsideTemplateLiteral(t,n,r)?0:e+2;return e+1}(d.parent.templateSpans.indexOf(d),e,t,n),n)}if(Yt.isJsxOpeningLikeElement(r)){var p=r.attributes.pos,f=Yt.skipTrivia(n.text,r.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:r},argumentsSpan:Yt.createTextSpan(p,f-p),argumentIndex:0,argumentCount:1}}var _=Yt.getPossibleTypeArgumentsInfo(e,n);if(_){var h=_.called,g=_.nTypeArguments;return{isTypeParameterList:!0,invocation:i={kind:1,called:h},argumentsSpan:u=Yt.createTextSpanFromBounds(h.getStart(n),e.end),argumentIndex:g,argumentCount:g+1}}return undefined}function _(e){return Yt.isBinaryExpression(e.left)?_(e.left)+1:2}function y(e,t,n){var r=Yt.isNoSubstitutionTemplateLiteral(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&Yt.Debug.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:function(e,t){var n=e.template,r=n.getStart(),i=n.getEnd();{207===n.kind&&0===Yt.last(n.templateSpans).literal.getFullWidth()&&(i=Yt.skipTrivia(t.text,i,!1))}return Yt.createTextSpan(r,i-r)}(e,n),argumentIndex:t,argumentCount:r}}function b(e){return 0===e.kind?Yt.getInvokedExpression(e.node):e.called}function v(e){return 0!==e.kind&&1===e.kind?e.called:e.node}(t={})[t.Call=0]="Call",t[t.TypeArgs=1]="TypeArgs",t[t.Contextual=2]="Contextual",e.getSignatureHelpItems=function(e,l,t,n,r){var i=e.getTypeChecker(),a=Yt.findTokenOnLeftOfPosition(l,t);if(!a)return undefined;var o=!!n&&"characterTyped"===n.kind;if(o&&(Yt.isInString(l,t,a)||Yt.isInComment(l,t)))return undefined;var s=!!n&&"invoked"===n.kind,d=function(e,a,o,s,t){for(var c=function c(e){Yt.Debug.assert(Yt.rangeContainsRange(e.parent,e),"Not a subspan",function(){return"Child: "+Yt.Debug.formatSyntaxKind(e.kind)+", parent: "+Yt.Debug.formatSyntaxKind(e.parent.kind)});var t,n,r,i=(n=a,function(e,t,n){var r=function(e,t,n){if(20!==e.kind&&27!==e.kind)return undefined;var r=e.parent;switch(r.kind){case 196:case 157:case 197:case 198:var i=m(e,t);if(!i)return undefined;var a=i.argumentIndex,o=i.argumentCount,s=i.argumentsSpan,c=Yt.isMethodDeclaration(r)?n.getContextualTypeForObjectLiteralElement(r):n.getContextualType(r);return c&&{contextualType:c,argumentIndex:a,argumentCount:o,argumentsSpan:s};case 205:var u=function f(e){return Yt.isBinaryExpression(e.parent)?f(e.parent):e}(r),l=n.getContextualType(u),d=20===e.kind?0:_(r)-1,p=_(u);return l&&{contextualType:l,argumentIndex:d,argumentCount:p,argumentsSpan:Yt.createTextSpanFromNode(r)};default:return undefined}}(e,t,n);if(!r)return undefined;var i=r.contextualType,a=r.argumentIndex,o=r.argumentCount,s=r.argumentsSpan,c=i.getCallSignatures();return 1!==c.length?undefined:{isTypeParameterList:!1,invocation:{kind:2,signature:Yt.first(c),node:e,symbol:function(e){return"__type"===e.name&&Yt.firstDefined(e.declarations,function(e){return Yt.isFunctionTypeNode(e)?e.parent.symbol:undefined})||e}(i.symbol)},argumentsSpan:s,argumentIndex:a,argumentCount:o}}(t=e,r=o,s)||u(t,n,r));if(i)return{value:i}},n=e;!Yt.isSourceFile(n)&&(t||!Yt.isBlock(n));n=n.parent){var r=c(n);if("object"===zb(r))return r.value}return undefined}(a,t,l,i,s);if(!d)return undefined;r.throwIfCancellationRequested();var p=function(e,t,n,r,i){var a=e.invocation,o=e.argumentCount;switch(a.kind){case 0:if(i&&!function(e,t,n){if(!Yt.isCallOrNewExpression(t))return!1;var r=t.getChildren(n);switch(e.kind){case 20:return Yt.contains(r,e);case 27:var i=Yt.findContainingList(e);return!!i&&Yt.contains(r,i);case 28:return f(e,n,t.expression);default:return!1}}(r,a.node,n))return undefined;var s=[],c=t.getResolvedSignatureForSignatureHelp(a.node,s,o);return 0===s.length?undefined:{kind:0,candidates:s,resolvedSignature:c};case 1:var u=a.called;if(i&&!f(r,n,Yt.isIdentifier(u)?u.parent:u))return undefined;if(0!==(s=Yt.getPossibleGenericSignatures(u,o,t)).length)return{kind:0,candidates:s,resolvedSignature:Yt.first(s)};var l=t.getSymbolAtLocation(u);return l&&{kind:1,symbol:l};case 2:return{kind:0,candidates:[a.signature],resolvedSignature:a.signature};default:return Yt.Debug.assertNever(a)}}(d,i,l,a,o);return r.throwIfCancellationRequested(),p?i.runWithCancellationToken(r,function(e){return 0===p.kind?h(p.candidates,p.resolvedSignature,d,l,e):(t=p.symbol,r=l,i=e,a=(n=d).argumentCount,o=n.argumentsSpan,s=n.invocation,c=n.argumentIndex,(u=i.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(t))?{items:[function(e,t,n,r,i){var a=Yt.symbolToDisplayParts(n,e),o=Yt.createPrinter({removeComments:!0}),s=t.map(function(e){return T(e,n,r,i,o)}),c=e.getDocumentationComment(n),u=e.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:a.concat([Yt.punctuationPart(28)]),suffixDisplayParts:[Yt.punctuationPart(30)],separatorDisplayParts:I,parameters:s,documentation:c,tags:u}}(t,u,i,v(s),r)],applicableSpan:o,selectedItemIndex:0,argumentIndex:c,argumentCount:a}:undefined);var t,n,r,i,a,o,s,c,u}):Yt.isSourceFileJS(l)?function(i,e,a){if(2===i.invocation.kind)return undefined;var t=b(i.invocation),n=Yt.isIdentifier(t)?t.text:Yt.isPropertyAccessExpression(t)?t.name.text:undefined,o=e.getTypeChecker();return n===undefined?undefined:Yt.firstDefined(e.getSourceFiles(),function(r){return Yt.firstDefined(r.getNamedDeclarations().get(n),function(e){var t=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),n=t&&t.getCallSignatures();if(n&&n.length)return o.runWithCancellationToken(a,function(e){return h(n,n[0],i,r,e)})})})}(d,e,r):undefined},(n={})[n.Candidate=0]="Candidate",n[n.Type=1]="Type",e.getArgumentInfoForCompletions=function(e,t,n){var r=u(e,t,n);return!r||r.isTypeParameterList||0!==r.invocation.kind?undefined:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var E=70246400;function h(e,t,n,_,h){var g=n.isTypeParameterList,r=n.argumentCount,i=n.argumentsSpan,a=n.invocation,o=n.argumentIndex,m=v(a),s=2===a.kind?a.symbol:h.getSymbolAtLocation(b(a)),y=s?Yt.symbolToDisplayParts(h,s,undefined,undefined):Yt.emptyArray,c=e.map(function(e){return n=y,a=(g?function(r,i,a,o){var e=(r.target||r).typeParameters,s=Yt.createPrinter({removeComments:!0}),t=(e||Yt.emptyArray).map(function(e){return T(e,i,a,o,s)}),n=Yt.mapToDisplayParts(function(e){var t=r.thisParameter?[i.symbolToParameterDeclaration(r.thisParameter,a,E)]:[],n=Yt.createNodeArray(t.concat(i.getExpandedParameters(r).map(function(e){return i.symbolToParameterDeclaration(e,a,E)})));s.writeList(2576,n,o,e)});return{isVariadic:!1,parameters:t,prefix:[Yt.punctuationPart(28)],suffix:[Yt.punctuationPart(30)].concat(n)}}:function(n,c,u,l){var e=c.hasEffectiveRestParameter(n),d=Yt.createPrinter({removeComments:!0}),t=Yt.mapToDisplayParts(function(e){var t;n.typeParameters&&n.typeParameters.length&&(t=Yt.createNodeArray(n.typeParameters.map(function(e){return c.typeParameterToDeclaration(e,u)})),d.writeList(53776,t,l,e))}),r=c.getExpandedParameters(n).map(function(e){return n=e,r=c,i=u,a=l,o=d,t=Yt.mapToDisplayParts(function(e){var t=r.symbolToParameterDeclaration(n,i,E);o.writeNode(4,t,a,e)}),s=r.isOptionalParameter(n.valueDeclaration),{name:n.name,documentation:n.getDocumentationComment(r),displayParts:t,isOptional:s};var n,r,i,a,o,t,s});return{isVariadic:e,parameters:r,prefix:t.concat([Yt.punctuationPart(20)]),suffix:[Yt.punctuationPart(21)]}})(t=e,r=h,i=m,_),o=a.isVariadic,s=a.parameters,c=a.prefix,u=a.suffix,l=n.concat(c),d=u.concat(function(n,r,i){return Yt.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var t=i.getTypePredicateOfSignature(n);t?i.writeTypePredicate(t,r,undefined,e):i.writeType(i.getReturnTypeOfSignature(n),r,undefined,e)})}(t,i,r)),p=t.getDocumentationComment(r),f=t.getJsDocTags(),{isVariadic:o,prefixDisplayParts:l,suffixDisplayParts:d,separatorDisplayParts:I,parameters:s,documentation:p,tags:f};var t,n,r,i,a,o,s,c,u,l,d,p,f});0!==o&&Yt.Debug.assertLessThan(o,r);var u=e.indexOf(t);return Yt.Debug.assert(-1!==u),{items:c,applicableSpan:i,selectedItemIndex:u,argumentIndex:o,argumentCount:r}}var I=[Yt.punctuationPart(27),Yt.spacePart()];function T(n,r,i,a,o){var e=Yt.mapToDisplayParts(function(e){var t=r.typeParameterToDeclaration(n,i);o.writeNode(4,t,a,e)});return{name:n.symbol.name,documentation:n.symbol.getDocumentationComment(r),displayParts:e,isOptional:!1}}}((Yt=rg=rg||{}).SignatureHelp||(Yt.SignatureHelp={})),Jt=rg=rg||{},zt=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/,Jt.getSourceMapper=function(o){var s=Jt.createGetCanonicalFileName(o.useCaseSensitiveFileNames()),c=o.getCurrentDirectory(),u=Jt.createMap(),l=Jt.createMap();return{tryGetSourcePosition:function r(e){if(!Jt.isDeclarationFileName(e.fileName))return undefined;var t=f(e.fileName);if(!t)return undefined;var n=p(e.fileName).getSourcePosition(e);return n&&n!==e?r(n)||n:undefined},tryGetGeneratedPosition:function(e){if(Jt.isDeclarationFileName(e.fileName))return undefined;if(!f(e.fileName))return undefined;var t=o.getProgram(),n=t.getCompilerOptions(),r=n.outFile||n.out,i=r?Jt.removeFileExtension(r)+".d.ts":Jt.getDeclarationEmitOutputFilePathWorker(e.fileName,t.getCompilerOptions(),c,t.getCommonSourceDirectory(),s);if(i===undefined)return undefined;var a=p(i,e.fileName).getGeneratedPosition(e);return a===e?undefined:a},toLineColumnOffset:function(e,t){return _(e).getLineAndCharacterOfPosition(t)},clearCache:function(){u.clear(),l.clear()}};function d(e){return Jt.toPath(e,c,s)}function p(e,t){var n,r,i=d(e),a=l.get(i);return a||(o.getDocumentPositionMapper?r=o.getDocumentPositionMapper(e,t):o.readFile&&(r=(n=_(e))&&Jt.getDocumentPositionMapper({getSourceFileLike:_,getCanonicalFileName:s,log:function(e){return o.log(e)}},e,Jt.getLineInfo(n.text,Jt.getLineStarts(n)),function(e){return!o.fileExists||o.fileExists(e)?o.readFile(e):undefined})),l.set(i,r||Jt.identitySourceMapConsumer),r||Jt.identitySourceMapConsumer)}function f(e){var t=o.getProgram();if(!t)return undefined;var n=d(e),r=t.getSourceFileByPath(n);return r&&r.resolvedPath===n?r:undefined}function t(e){var t=d(e),n=u.get(t);if(n!==undefined)return n||undefined;if(!o.readFile||o.fileExists&&!o.fileExists(t))return u.set(t,!1),undefined;var r,i=o.readFile(t),a=!!i&&{text:i,lineMap:r,getLineAndCharacterOfPosition:function(e){return Jt.computeLineAndCharacterOfPosition(Jt.getLineStarts(this),e)}};return u.set(t,a),a||undefined}function _(e){return o.getSourceFileLike?o.getSourceFileLike(e):f(e)||t(e)}},Jt.getDocumentPositionMapper=function(e,t,n,r){var i=Jt.tryGetSourceMappingURL(n);if(i){var a=zt.exec(i);if(a){if(a[1]){var o=a[1];return vd(e,Jt.base64decode(Jt.sys,o),t)}i=undefined}}var s=[];i&&s.push(i),s.push(t+".map");for(var c=i&&Jt.getNormalizedAbsolutePath(i,Jt.getDirectoryPath(t)),u=0,l=s;u<l.length;u++){var d=l[u],p=Jt.getNormalizedAbsolutePath(d,Jt.getDirectoryPath(t)),f=r(p,c);if(Jt.isString(f))return vd(e,f,p);if(f!==undefined)return f||undefined}return undefined},Ut=rg=rg||{},Kt=Ut.createMap(),Ut.computeSuggestionDiagnostics=function(a,e,t){e.getSemanticDiagnostics(a,t);var n,o=[],s=e.getTypeChecker();a.commonJsModuleIndicator&&(Ut.programContainsEs6Modules(e)||Ut.compilerOptionsIndicateEs6Modules(e.getCompilerOptions()))&&a.statements.some(function(e){switch(e.kind){case 220:return e.declarationList.declarations.some(function(e){return!!e.initializer&&Ut.isRequireCall(function t(e){return Ut.isPropertyAccessExpression(e)?t(e.expression):e}(e.initializer),!0)});case 222:var t=e.expression;if(!Ut.isBinaryExpression(t))return Ut.isRequireCall(t,!0);var n=Ut.getAssignmentDeclarationKind(t);return 1===n||2===n;default:return!1}})&&o.push(Ut.createDiagnosticForNode((n=a.commonJsModuleIndicator,Ut.isBinaryExpression(n)?n.left:n),Ut.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var c=Ut.isSourceFileJS(a);if(Kt.clear(),function f(e){if(c)switch(e.kind){case 197:var t=Ut.getDeclarationOfExpando(e);if(t){var n=t.symbol;if(n&&(n.exports&&n.exports.size||n.members&&n.members.size)){o.push(Ut.createDiagnosticForNode(Ut.isVariableDeclaration(e.parent)?e.parent.name:e,Ut.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 240:var r=e.symbol;r.members&&0<r.members.size&&o.push(Ut.createDiagnosticForNode(Ut.isVariableDeclaration(e.parent)?e.parent.name:e,Ut.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}else{var i;Ut.isVariableStatement(e)&&e.parent===a&&2&e.declarationList.flags&&1===e.declarationList.declarations.length&&((i=e.declarationList.declarations[0].initializer)&&Ut.isRequireCall(i,!0)&&o.push(Ut.createDiagnosticForNode(i,Ut.Diagnostics.require_call_may_be_converted_to_an_import))),Ut.codefix.parameterShouldGetTypeFromJSDoc(e)&&o.push(Ut.createDiagnosticForNode(e.name||e,Ut.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}Ut.isFunctionLikeDeclaration(e)&&Ed(e,s,o);e.forEachChild(f)}(a),Ut.getAllowSyntheticDefaultImports(e.getCompilerOptions()))for(var r=0,i=a.imports;r<i.length;r++){var u,l,d=i[r],p=function(e){switch(e.kind){case 250:var t=e.importClause,n=e.moduleSpecifier;return t&&!t.name&&t.namedBindings&&252===t.namedBindings.kind&&Ut.isStringLiteral(n)?t.namedBindings.name:undefined;case 249:return e.name;default:return undefined}}(Ut.importFromModuleSpecifier(d));p&&((l=(u=Ut.getResolvedModule(a,d.text))&&e.getSourceFile(u.resolvedFileName))&&l.externalModuleIndicator&&Ut.isExportAssignment(l.externalModuleIndicator)&&l.externalModuleIndicator.isExportEquals&&o.push(Ut.createDiagnosticForNode(p,Ut.Diagnostics.Import_may_be_converted_to_a_default_import)))}return Ut.addRange(o,a.bindSuggestionDiagnostics),Ut.addRange(o,e.getSuggestionDiagnostics(a,t)),o.sort(function(e,t){return e.start-t.start})},Ut.isReturnStatementWithFixablePromiseHandler=Id,Ut.isFixablePromiseHandler=Td,Zt=rg=rg||{},(Xt=Zt.SymbolDisplay||(Zt.SymbolDisplay={})).getSymbolKind=Sd,Xt.getSymbolModifiers=function(e){var t=e&&e.declarations&&0<e.declarations.length?Zt.getNodeModifiers(e.declarations[0]):"",n=e&&16777216&e.flags?"optional":"";return t&&n?t+","+n:t||n},Xt.getSymbolDisplayPartsDocumentationAndSymbolKind=function ug(i,r,a,o,t,e,s){void 0===e&&(e=Zt.getMeaningFromLocation(t));var c,u,n,l,d,p,f,_,h,g,m,y,b,v,E=[],I=Zt.getCombinedLocalAndExportSymbolFlags(r),T=1&e?Nd(i,r,t):"",C=!1,B=101===t.kind&&Zt.isInExpressionContext(t);if(101===t.kind&&!B)return{displayParts:[Zt.keywordPart(101)],documentation:[],symbolKind:"primitive type",tags:undefined};if(""!==T||32&I||2097152&I){"getter"!==T&&"setter"!==T||(T="property");var x,S=void 0,N=B?i.getTypeAtLocation(t):i.getTypeOfSymbolAtLocation(r.exportSymbol||r,t);!t.parent||190!==t.parent.kind||((x=t.parent.name)===t||x&&0===x.getFullWidth())&&(t=t.parent);var D,k=void 0;if(Zt.isCallOrNewExpression(t)?k=t:(Zt.isCallExpressionTarget(t)||Zt.isNewExpressionTarget(t)||t.parent&&Zt.isJsxOpeningLikeElement(t.parent)&&Zt.isFunctionLike(r.valueDeclaration))&&(k=t.parent),k){S=i.getResolvedSignature(k);var A=193===k.kind||Zt.isCallExpression(k)&&99===k.expression.kind,w=A?N.getConstructSignatures():N.getCallSignatures();if(Zt.contains(w,S.target)||Zt.contains(w,S)||(S=w.length?w[0]:undefined),S){switch(A&&32&I?(T="constructor",G(N.symbol,T)):2097152&I?(Y(T="alias"),E.push(Zt.spacePart()),A&&(E.push(Zt.keywordPart(96)),E.push(Zt.spacePart())),W(r)):G(r,T),T){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":E.push(Zt.punctuationPart(57)),E.push(Zt.spacePart()),16&Zt.getObjectFlags(N)||!N.symbol||(Zt.addRange(E,Zt.symbolToDisplayParts(i,N.symbol,o,undefined,5)),E.push(Zt.lineBreakPart())),A&&(E.push(Zt.keywordPart(96)),E.push(Zt.spacePart())),J(S,w,262144);break;default:J(S,w)}C=!0}}else(Zt.isNameOfFunctionDeclaration(t)&&!(98304&I)||125===t.kind&&158===t.parent.kind)&&(D=t.parent,Zt.find(r.declarations,function(e){return e===(125===t.kind?D.parent:D)})&&(w=158===D.kind?N.getNonNullableType().getConstructSignatures():N.getNonNullableType().getCallSignatures(),S=i.isImplementationOfOverload(D)?w[0]:i.getSignatureFromDeclaration(D),158===D.kind?(T="constructor",G(N.symbol,T)):G(161!==D.kind||2048&N.symbol.flags||4096&N.symbol.flags?r:N.symbol,T),J(S,w),C=!0))}if(32&I&&!C&&!B&&(H(),Zt.getDeclarationOfKind(r,210)?Y("local class"):E.push(Zt.keywordPart(77)),E.push(Zt.spacePart()),W(r),z(r,a)),64&I&&2&e&&(R(),E.push(Zt.keywordPart(111)),E.push(Zt.spacePart()),W(r),z(r,a)),524288&I&&2&e&&(R(),E.push(Zt.keywordPart(141)),E.push(Zt.spacePart()),W(r),z(r,a),E.push(Zt.spacePart()),E.push(Zt.operatorPart(60)),E.push(Zt.spacePart()),Zt.addRange(E,Zt.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(r),o,8388608))),384&I&&(R(),Zt.some(r.declarations,function(e){return Zt.isEnumDeclaration(e)&&Zt.isEnumConst(e)})&&(E.push(Zt.keywordPart(78)),E.push(Zt.spacePart())),E.push(Zt.keywordPart(85)),E.push(Zt.spacePart()),W(r)),1536&I&&!B&&(R(),p=(P=Zt.getDeclarationOfKind(r,245))&&P.name&&73===P.name.kind,E.push(Zt.keywordPart(p?132:131)),E.push(Zt.spacePart()),W(r)),262144&I&&2&e)if(R(),E.push(Zt.punctuationPart(20)),E.push(Zt.textPart("type parameter")),E.push(Zt.punctuationPart(21)),E.push(Zt.spacePart()),W(r),r.parent)j(),W(r.parent,o),z(r.parent,o);else{var V=Zt.getDeclarationOfKind(r,151);if(V===undefined)return Zt.Debug.fail();(P=V.parent)&&(Zt.isFunctionLikeKind(P.kind)?(j(),S=i.getSignatureFromDeclaration(P),162===P.kind?(E.push(Zt.keywordPart(96)),E.push(Zt.spacePart())):161!==P.kind&&P.name&&W(P.symbol),Zt.addRange(E,Zt.signatureToDisplayParts(i,S,a,32))):243===P.kind&&(j(),E.push(Zt.keywordPart(141)),E.push(Zt.spacePart()),W(P.symbol),z(P.symbol,a)))}if(8&I&&(G(r,T="enum member"),279!==(P=r.declarations[0]).kind||(f=i.getConstantValue(P))!==undefined&&(E.push(Zt.spacePart()),E.push(Zt.operatorPart(60)),E.push(Zt.spacePart()),E.push(Zt.displayPart(Zt.getTextOfConstantValue(f),"number"==typeof f?Zt.SymbolDisplayPartKind.numericLiteral:Zt.SymbolDisplayPartKind.stringLiteral)))),2097152&I){switch(R(),C||(_=i.getAliasedSymbol(r))!==r&&_.declarations&&0<_.declarations.length&&(h=_.declarations[0],(g=Zt.getNameOfDeclaration(h))&&(m=Zt.isModuleWithStringLiteralName(h)&&Zt.hasModifier(h,2),y="default"!==r.name&&!m,b=ug(i,_,Zt.getSourceFileOfNode(h),h,g,e,y?r:_),E.push.apply(E,b.displayParts),E.push(Zt.lineBreakPart()),l=b.documentation,d=b.tags)),r.declarations[0].kind){case 248:E.push(Zt.keywordPart(86)),E.push(Zt.spacePart()),E.push(Zt.keywordPart(132));break;case 255:E.push(Zt.keywordPart(86)),E.push(Zt.spacePart()),E.push(Zt.keywordPart(r.declarations[0].isExportEquals?60:81));break;case 258:E.push(Zt.keywordPart(86));break;default:E.push(Zt.keywordPart(93))}E.push(Zt.spacePart()),W(r),Zt.forEach(r.declarations,function(e){if(249===e.kind){var t,n=e;return Zt.isExternalModuleImportEqualsDeclaration(n)?(E.push(Zt.spacePart()),E.push(Zt.operatorPart(60)),E.push(Zt.spacePart()),E.push(Zt.keywordPart(135)),E.push(Zt.punctuationPart(20)),E.push(Zt.displayPart(Zt.getTextOfNode(Zt.getExternalModuleImportEqualsDeclarationExpression(n)),Zt.SymbolDisplayPartKind.stringLiteral)),E.push(Zt.punctuationPart(21))):(t=i.getSymbolAtLocation(n.moduleReference))&&(E.push(Zt.spacePart()),E.push(Zt.operatorPart(60)),E.push(Zt.spacePart()),W(t,o)),!0}})}if(C||(""!==T?N&&(B?(R(),E.push(Zt.keywordPart(101))):G(r,T),"property"===T||"JSX attribute"===T||3&I||"local var"===T||B?(E.push(Zt.punctuationPart(57)),E.push(Zt.spacePart()),N.symbol&&262144&N.symbol.flags?(v=Zt.mapToDisplayParts(function(e){var t=i.typeParameterToDeclaration(N,o);O().writeNode(4,t,Zt.getSourceFileOfNode(Zt.getParseTreeNode(o)),e)}),Zt.addRange(E,v)):Zt.addRange(E,Zt.typeToDisplayParts(i,N,o))):(16&I||8192&I||16384&I||131072&I||98304&I||"method"===T)&&(w=N.getNonNullableType().getCallSignatures()).length&&J(w[0],w)):T=Sd(i,r,t)),!c&&(c=r.getDocumentationComment(i),u=r.getJsDocTags(),0===c.length&&4&I&&r.parent&&Zt.forEach(r.parent.declarations,function(e){return 285===e.kind})))for(var P,L=0,M=r.declarations;L<M.length;L++)if((P=M[L]).parent&&205===P.parent.kind){var F=i.getSymbolAtLocation(P.parent.right);if(F&&(c=F.getDocumentationComment(i),u=F.getJsDocTags(),0<c.length))break}return 0===c.length&&l&&(c=l),0===u.length&&d&&(u=d),{displayParts:E,documentation:c,symbolKind:T,tags:0===u.length?undefined:u};function O(){return n=n||Zt.createPrinter({removeComments:!0})}function R(){E.length&&E.push(Zt.lineBreakPart()),H()}function H(){s&&(Y("alias"),E.push(Zt.spacePart()))}function j(){E.push(Zt.spacePart()),E.push(Zt.keywordPart(94)),E.push(Zt.spacePart())}function W(e,t){s&&e===r&&(e=s);var n=Zt.symbolToDisplayParts(i,e,t||a,undefined,7);Zt.addRange(E,n),16777216&r.flags&&E.push(Zt.punctuationPart(56))}function G(e,t){R(),t&&(Y(t),e&&!Zt.some(e.declarations,function(e){return Zt.isArrowFunction(e)||(Zt.isFunctionExpression(e)||Zt.isClassExpression(e))&&!e.name})&&(E.push(Zt.spacePart()),W(e)))}function Y(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void E.push(Zt.textOrKeywordPart(e));default:return E.push(Zt.punctuationPart(20)),E.push(Zt.textOrKeywordPart(e)),void E.push(Zt.punctuationPart(21))}}function J(e,t,n){void 0===n&&(n=0),Zt.addRange(E,Zt.signatureToDisplayParts(i,e,o,32|n)),1<t.length&&(E.push(Zt.spacePart()),E.push(Zt.punctuationPart(20)),E.push(Zt.operatorPart(38)),E.push(Zt.displayPart((t.length-1).toString(),Zt.SymbolDisplayPartKind.numericLiteral)),E.push(Zt.spacePart()),E.push(Zt.textPart(2===t.length?"overload":"overloads")),E.push(Zt.punctuationPart(21)));var r=e.getDocumentationComment(i);c=0===r.length?undefined:r,u=e.getJsDocTags()}function z(n,r){var e=Zt.mapToDisplayParts(function(e){var t=i.symbolToTypeParameterDeclarations(n,r);O().writeList(53776,t,Zt.getSourceFileOfNode(Zt.getParseTreeNode(r)),e)});Zt.addRange(E,e)}},(qt=rg=rg||{}).transpileModule=kd,qt.transpile=function(e,t,n,r,i){var a=kd(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return qt.addRange(r,a.diagnostics),a.outputText},qt.fixupCompilerOptions=Ad,function(e){var t;(t=e.FormattingRequestKind||(e.FormattingRequestKind={}))[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var n=(r.prototype.updateContext=function(e,t,n,r,i){this.currentTokenSpan=$t.Debug.assertDefined(e),this.currentTokenParent=$t.Debug.assertDefined(t),this.nextTokenSpan=$t.Debug.assertDefined(n),this.nextTokenParent=$t.Debug.assertDefined(r),this.contextNode=$t.Debug.assertDefined(i),this.contextNodeAllOnSameLine=undefined,this.nextNodeAllOnSameLine=undefined,this.tokensAreOnSameLine=undefined,this.contextNodeBlockIsOnOneLine=undefined,this.nextNodeBlockIsOnOneLine=undefined},r.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===undefined&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},r.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===undefined&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},r.prototype.TokensAreOnSameLine=function(){var e,t;return this.tokensAreOnSameLine===undefined&&(e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line,this.tokensAreOnSameLine=e===t),this.tokensAreOnSameLine},r.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===undefined&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},r.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===undefined&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},r.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},r.prototype.BlockIsOnOneLine=function(e){var t=$t.findChildOfKind(e,18,this.sourceFile),n=$t.findChildOfKind(e,19,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},r);function r(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}e.FormattingContext=n}(($t=rg=rg||{}).formatting||($t.formatting={})),en=rg=rg||{},tn=en.formatting||(en.formatting={}),rn=en.createScanner(8,!1,0),an=en.createScanner(8,!1,1),(nn={})[nn.Scan=0]="Scan",nn[nn.RescanGreaterThanToken=1]="RescanGreaterThanToken",nn[nn.RescanSlashToken=2]="RescanSlashToken",nn[nn.RescanTemplateToken=3]="RescanTemplateToken",nn[nn.RescanJsxIdentifier=4]="RescanJsxIdentifier",nn[nn.RescanJsxText=5]="RescanJsxText",tn.getFormattingScanner=function(e,t,r,a,n){var o=1===t?an:rn;o.setText(e),o.setTextPos(r);var s,c,u,l,i=!0,d=n({advance:function(){p=undefined,o.getStartPos()!==r?i=!!c&&4===en.last(c).kind:o.scan();s=undefined,c=undefined;var e=o.getStartPos();for(;e<a;){var t=o.getToken();if(!en.isTrivia(t))break;o.scan();var n={pos:e,end:o.getStartPos(),kind:t};e=o.getStartPos(),s=en.append(s,n)}u=o.getStartPos()},readTokenInfo:function(e){en.Debug.assert(f());var t=function(e){switch(e.kind){case 32:case 68:case 69:case 48:case 47:return!0}return!1}(e)?1:13===e.kind?2:function(e){return 16===e.kind||17===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 268:case 263:case 264:case 262:return en.isKeyword(e.kind)||73===e.kind}return!1}(e)?4:11===e.kind?5:0;if(p&&t===l)return _(p,e);o.getStartPos()!==u&&(en.Debug.assert(p!==undefined),o.setTextPos(u),o.scan());var n=function(e,t){var n=o.getToken();switch(l=0,t){case 1:if(30!==n)break;l=1;var r=o.reScanGreaterToken();return en.Debug.assert(e.kind===r),r;case 2:if(function(e){return 42===e||65===e}(n)){l=2;r=o.reScanSlashToken();return en.Debug.assert(e.kind===r),r}break;case 3:if(19===n)return l=3,o.reScanTemplateToken();break;case 4:return l=4,o.scanJsxIdentifier();case 5:return l=5,o.reScanJsxToken();case 0:break;default:en.Debug.assertNever(t)}return n}(e,t),r={pos:o.getStartPos(),end:o.getTextPos(),kind:n};c=c&&undefined;for(;o.getStartPos()<a&&(n=o.scan(),en.isTrivia(n));){var i={pos:o.getStartPos(),end:o.getTextPos(),kind:n};if((c=c||[]).push(i),4===n){o.scan();break}}return _(p={leadingTrivia:s,trailingTrivia:c,token:r},e)},isOnToken:f,getCurrentLeadingTrivia:function(){return s},lastTrailingTriviaWasNewLine:function(){return i},skipToEndOf:function(e){o.setTextPos(e.end),u=o.getStartPos(),l=undefined,p=undefined,i=!1,s=undefined,c=undefined}}),p=undefined;return o.setText(undefined),d;function f(){var e=p?p.token.kind:o.getToken();return(p?p.token.pos:o.getStartPos())<a&&1!==e&&!en.isTrivia(e)}function _(e,t){return en.isToken(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}},on=rg=rg||{},(sn=on.formatting||(on.formatting={})).anyContext=on.emptyArray,(cn=sn.RuleAction||(sn.RuleAction={}))[cn.Ignore=1]="Ignore",cn[cn.Space=2]="Space",cn[cn.NewLine=4]="NewLine",cn[cn.Delete=8]="Delete",(un=sn.RuleFlags||(sn.RuleFlags={}))[un.None=0]="None",un[un.CanDeleteNewLines=1]="CanDeleteNewLines",ln=rg=rg||{},(dn=ln.formatting||(ln.formatting={})).getAllRules=function(){for(var n=[],e=0;e<=148;e++)n.push(e);function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:n.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:!1}}var r={tokens:n,isSpecific:!1},i=Vd(n.concat([3])),a=Ld(74,148),o=Ld(28,72),s=[94,95,148,120,129],c=[73].concat(ln.typeKeywords),u=i,l=Vd([73,3,77,86,93]),d=Vd([21,3,83,104,89,84]),p=[wd("IgnoreBeforeComment",r,[2,3],dn.anyContext,1),wd("IgnoreAfterLineComment",2,r,dn.anyContext,1),wd("NotSpaceBeforeColon",r,57,[_p,Yd,Jd],8),wd("SpaceAfterColon",57,r,[_p,Yd],2),wd("NoSpaceBeforeQuestionMark",r,56,[_p,Yd],8),wd("SpaceAfterQuestionMarkInConditionalOperator",56,r,[_p,Ud],2),wd("NoSpaceAfterQuestionMark",56,r,[_p],8),wd("NoSpaceBeforeDot",r,24,[_p],8),wd("NoSpaceAfterDot",24,r,[_p],8),wd("NoSpaceBetweenImportParenInImportType",93,20,[_p,fp],8),wd("NoSpaceAfterUnaryPrefixOperator",[44,45,53,52],[8,9,73,20,22,18,101,96],[_p,Yd],8),wd("NoSpaceAfterUnaryPreincrementOperator",44,[73,20,101,96],[_p],8),wd("NoSpaceAfterUnaryPredecrementOperator",45,[73,20,101,96],[_p],8),wd("NoSpaceBeforeUnaryPostincrementOperator",[73,21,23,96],44,[_p],8),wd("NoSpaceBeforeUnaryPostdecrementOperator",[73,21,23,96],45,[_p],8),wd("SpaceAfterPostincrementWhenFollowedByAdd",44,38,[_p,Gd],2),wd("SpaceAfterAddWhenFollowedByUnaryPlus",38,38,[_p,Gd],2),wd("SpaceAfterAddWhenFollowedByPreincrement",38,44,[_p,Gd],2),wd("SpaceAfterPostdecrementWhenFollowedBySubtract",45,39,[_p,Gd],2),wd("SpaceAfterSubtractWhenFollowedByUnaryMinus",39,39,[_p,Gd],2),wd("SpaceAfterSubtractWhenFollowedByPredecrement",39,45,[_p,Gd],2),wd("NoSpaceAfterCloseBrace",19,[27,26],[_p],8),wd("NewLineBeforeCloseBraceInBlockContext",i,19,[qd],4),wd("SpaceAfterCloseBrace",19,t(21),[_p,op],2),wd("SpaceBetweenCloseBraceAndElse",19,84,[_p],2),wd("SpaceBetweenCloseBraceAndWhile",19,108,[_p],2),wd("NoSpaceBetweenEmptyBraceBrackets",18,19,[_p,cp],8),wd("SpaceAfterConditionalClosingParen",21,22,[sp],2),wd("NoSpaceBetweenFunctionKeywordAndStar",91,40,[rp],8),wd("SpaceAfterStarInGeneratorDeclaration",40,73,[rp],2),wd("SpaceAfterFunctionInFuncDecl",91,r,[tp],2),wd("NewLineAfterOpenBraceInBlockContext",18,r,[qd],4),wd("SpaceAfterGetSetInMember",[127,138],73,[tp],2),wd("NoSpaceBetweenYieldKeywordAndStar",118,40,[_p,wp],8),wd("SpaceBetweenYieldOrYieldStarAndOperand",[118,40],r,[_p,wp],2),wd("NoSpaceBetweenReturnAndSemicolon",98,26,[_p],8),wd("SpaceAfterCertainKeywords",[106,102,96,82,98,105,123],r,[_p],2),wd("SpaceAfterLetConstInVariableDeclaration",[112,78],r,[_p,Tp],2),wd("NoSpaceBeforeOpenParenInFuncCall",r,20,[_p,up,lp],8),wd("SpaceBeforeBinaryKeywordOperator",r,s,[_p,Gd],2),wd("SpaceAfterBinaryKeywordOperator",s,r,[_p,Gd],2),wd("SpaceAfterVoidOperator",107,r,[_p,Ap],2),wd("SpaceBetweenAsyncAndOpenParen",122,20,[pp,_p],2),wd("SpaceBetweenAsyncAndFunctionKeyword",122,91,[_p],2),wd("NoSpaceBetweenTagAndTemplateString",[73,21],[14,15],[_p],8),wd("SpaceBeforeJsxAttribute",r,73,[mp,_p],2),wd("SpaceBeforeSlashInJsxOpeningElement",r,42,[bp,_p],2),wd("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",42,30,[bp,_p],8),wd("NoSpaceBeforeEqualInJsxAttribute",r,60,[yp,_p],8),wd("NoSpaceAfterEqualInJsxAttribute",60,r,[yp,_p],8),wd("NoSpaceAfterModuleImport",[131,135],20,[_p],8),wd("SpaceAfterCertainTypeScriptKeywords",[119,77,126,81,85,86,87,127,110,93,111,131,132,114,116,115,134,138,117,141,145,130,128],r,[_p],2),wd("SpaceBeforeCertainTypeScriptKeywords",r,[87,110,145],[_p],2),wd("SpaceAfterModuleName",10,18,[Bp],2),wd("SpaceBeforeArrow",r,37,[_p],2),wd("SpaceAfterArrow",37,r,[_p],2),wd("NoSpaceAfterEllipsis",25,73,[_p],8),wd("NoSpaceAfterOptionalParameters",56,[21,27],[_p,Yd],8),wd("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[_p,xp],8),wd("NoSpaceBeforeOpenAngularBracket",c,28,[_p,Dp],8),wd("NoSpaceBetweenCloseParenAndAngularBracket",21,28,[_p,Dp],8),wd("NoSpaceAfterOpenAngularBracket",28,r,[_p,Dp],8),wd("NoSpaceBeforeCloseAngularBracket",r,30,[_p,Dp],8),wd("NoSpaceAfterCloseAngularBracket",30,[20,22,30,27],[_p,Dp,np],8),wd("SpaceBeforeAt",[21,73],58,[_p],2),wd("NoSpaceAfterAt",58,r,[_p],8),wd("SpaceAfterDecorator",r,[119,73,86,81,77,117,116,114,115,127,138,22,40],[Ep],2),wd("NoSpaceBeforeNonNullAssertionOperator",r,52,[_p,Vp],8),wd("NoSpaceAfterNewKeywordOnConstructorSignature",96,20,[_p,Sp],8)],f=[wd("SpaceAfterConstructor",125,20,[Md("insertSpaceAfterConstructor"),_p],2),wd("NoSpaceAfterConstructor",125,20,[Od("insertSpaceAfterConstructor"),_p],8),wd("SpaceAfterComma",27,r,[Md("insertSpaceAfterCommaDelimiter"),_p,hp,dp],2),wd("NoSpaceAfterComma",27,r,[Od("insertSpaceAfterCommaDelimiter"),_p,hp],8),wd("SpaceAfterAnonymousFunctionKeyword",[91,40],20,[Md("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),tp],2),wd("NoSpaceAfterAnonymousFunctionKeyword",[91,40],20,[Od("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),tp],8),wd("SpaceAfterKeywordInControl",a,20,[Md("insertSpaceAfterKeywordsInControlFlowStatements"),sp],2),wd("NoSpaceAfterKeywordInControl",a,20,[Od("insertSpaceAfterKeywordsInControlFlowStatements"),sp],8),wd("SpaceAfterOpenParen",20,r,[Md("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),_p],2),wd("SpaceBeforeCloseParen",r,21,[Md("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),_p],2),wd("SpaceBetweenOpenParens",20,20,[Md("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),_p],2),wd("NoSpaceBetweenParens",20,21,[_p],8),wd("NoSpaceAfterOpenParen",20,r,[Od("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),_p],8),wd("NoSpaceBeforeCloseParen",r,21,[Od("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),_p],8),wd("SpaceAfterOpenBracket",22,r,[Md("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),_p],2),wd("SpaceBeforeCloseBracket",r,23,[Md("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),_p],2),wd("NoSpaceBetweenBrackets",22,23,[_p],8),wd("NoSpaceAfterOpenBracket",22,r,[Od("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),_p],8),wd("NoSpaceBeforeCloseBracket",r,23,[Od("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),_p],8),wd("SpaceAfterOpenBrace",18,r,[Hd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Zd],2),wd("SpaceBeforeCloseBrace",r,19,[Hd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Zd],2),wd("NoSpaceBetweenEmptyBraceBrackets",18,19,[_p,cp],8),wd("NoSpaceAfterOpenBrace",18,r,[Fd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),_p],8),wd("NoSpaceBeforeCloseBrace",r,19,[Fd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),_p],8),wd("SpaceAfterTemplateHeadAndMiddle",[15,16],r,[Md("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),_p],2),wd("SpaceBeforeTemplateMiddleAndTail",r,[16,17],[Md("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),_p],2),wd("NoSpaceAfterTemplateHeadAndMiddle",[15,16],r,[Od("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),_p],8),wd("NoSpaceBeforeTemplateMiddleAndTail",r,[16,17],[Od("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),_p],8),wd("SpaceAfterOpenBraceInJsxExpression",18,r,[Md("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),_p,gp],2),wd("SpaceBeforeCloseBraceInJsxExpression",r,19,[Md("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),_p,gp],2),wd("NoSpaceAfterOpenBraceInJsxExpression",18,r,[Od("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),_p,gp],8),wd("NoSpaceBeforeCloseBraceInJsxExpression",r,19,[Od("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),_p,gp],8),wd("SpaceAfterSemicolonInFor",26,r,[Md("insertSpaceAfterSemicolonInForStatements"),_p,jd],2),wd("NoSpaceAfterSemicolonInFor",26,r,[Od("insertSpaceAfterSemicolonInForStatements"),_p,jd],8),wd("SpaceBeforeBinaryOperator",r,o,[Md("insertSpaceBeforeAndAfterBinaryOperators"),_p,Gd],2),wd("SpaceAfterBinaryOperator",o,r,[Md("insertSpaceBeforeAndAfterBinaryOperators"),_p,Gd],2),wd("NoSpaceBeforeBinaryOperator",r,o,[Od("insertSpaceBeforeAndAfterBinaryOperators"),_p,Gd],8),wd("NoSpaceAfterBinaryOperator",o,r,[Od("insertSpaceBeforeAndAfterBinaryOperators"),_p,Gd],8),wd("SpaceBeforeOpenParenInFuncDecl",r,20,[Md("insertSpaceBeforeFunctionParenthesis"),_p,tp],2),wd("NoSpaceBeforeOpenParenInFuncDecl",r,20,[Od("insertSpaceBeforeFunctionParenthesis"),_p,tp],8),wd("NewLineBeforeOpenBraceInControl",d,18,[Md("placeOpenBraceOnNewLineForControlBlocks"),sp,Xd],4,1),wd("NewLineBeforeOpenBraceInFunction",u,18,[Md("placeOpenBraceOnNewLineForFunctions"),tp,Xd],4,1),wd("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",l,18,[Md("placeOpenBraceOnNewLineForFunctions"),ip,Xd],4,1),wd("SpaceAfterTypeAssertion",30,r,[Md("insertSpaceAfterTypeAssertion"),_p,kp],2),wd("NoSpaceAfterTypeAssertion",30,r,[Od("insertSpaceAfterTypeAssertion"),_p,kp],8),wd("SpaceBeforeTypeAnnotation",r,57,[Md("insertSpaceBeforeTypeAnnotation"),_p,zd],2),wd("NoSpaceBeforeTypeAnnotation",r,57,[Od("insertSpaceBeforeTypeAnnotation"),_p,zd],8)],_=[wd("NoSpaceBeforeSemicolon",r,26,[_p],8),wd("SpaceBeforeOpenBraceInControl",d,18,[Rd("placeOpenBraceOnNewLineForControlBlocks"),sp,Cp,Kd],2,1),wd("SpaceBeforeOpenBraceInFunction",u,18,[Rd("placeOpenBraceOnNewLineForFunctions"),tp,$d,Cp,Kd],2,1),wd("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",l,18,[Rd("placeOpenBraceOnNewLineForFunctions"),ip,Cp,Kd],2,1),wd("NoSpaceBeforeComma",r,27,[_p],8),wd("NoSpaceBeforeOpenBracket",t(122,75),22,[_p],8),wd("NoSpaceAfterCloseBracket",23,r,[_p,vp],8),wd("SpaceAfterSemicolon",26,r,[_p],2),wd("SpaceBetweenForAndAwaitKeyword",90,123,[_p],2),wd("SpaceBetweenStatements",[21,83,84,75],r,[_p,hp,Wd],2),wd("SpaceAfterTryFinally",[104,89],18,[_p],2)];return p.concat(f,_)},function(h){var t;function g(e,t){return pn.Debug.assert(e<=148&&t<=148,"Must compute formatting context from tokens"),e*v+t}h.getFormatContext=function(e){return{options:e,getRule:function(){t===undefined&&(t=function(e){var n=function(e){for(var t=new Array(v*v),n=new Array(t.length),r=0,i=e;r<i.length;r++)for(var a=i[r],o=a.leftTokenRange.isSpecific&&a.rightTokenRange.isSpecific,s=0,c=a.leftTokenRange.tokens;s<c.length;s++)for(var u=c[s],l=0,d=a.rightTokenRange.tokens;l<d.length;l++){var p=d[l],f=g(u,p),_=t[f];_===undefined&&(_=t[f]=[]),function(e,t,n,r,i){var a=1===t.action?n?m.IgnoreRulesSpecific:m.IgnoreRulesAny:t.context!==h.anyContext?n?m.ContextRulesSpecific:m.ContextRulesAny:n?m.NoContextRulesSpecific:m.NoContextRulesAny,o=r[i]||0;e.splice(function(e,t){for(var n=0,r=0;r<=t;r+=y)n+=e&b,e>>=y;return n}(o,a),0,t),r[i]=function(e,t){var n=1+(e>>t&b);return pn.Debug.assert((n&b)==n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(b<<t)|n<<t}(o,a)}(_,a.rule,o,n,f)}return t}(e);return function(t){var e=n[g(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];return e&&pn.find(e,function(e){return pn.every(e.context,function(e){return e(t)})})}}(h.getAllRules()));return t}()}};var m,e,y=5,b=31,v=149;(e=m=m||{})[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=+y]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*y]="ContextRulesSpecific",e[e.ContextRulesAny=3*y]="ContextRulesAny",e[e.NoContextRulesSpecific=4*y]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*y]="NoContextRulesAny"}((pn=rg=rg||{}).formatting||(pn.formatting={})),fn=rg=rg||{},_n=fn.formatting||(fn.formatting={}),(hn={})[hn.Unknown=-1]="Unknown",_n.formatOnEnter=function(e,t,n){var r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];for(var i=fn.getEndLinePosition(r,t);fn.isWhiteSpaceSingleLine(t.text.charCodeAt(i));)i--;return fn.isLineBreak(t.text.charCodeAt(i))&&i--,Op({pos:fn.getStartPositionOfLine(r-1,t),end:i+1},t,n,2)},_n.formatOnSemicolon=function(e,t,n){return Fp(Lp(Pp(e,26,t)),t,n,3)},_n.formatOnOpeningCurly=function(e,t,n){var r=Pp(e,18,t);if(!r)return[];var i=Lp(r.parent);return Op({pos:fn.getLineStartPositionForPosition(i.getStart(t),t),end:e},t,n,4)},_n.formatOnClosingCurly=function(e,t,n){return Fp(Lp(Pp(e,19,t)),t,n,5)},_n.formatDocument=function(e,t){return Op({pos:0,end:e.text.length},e,t,0)},_n.formatSelection=function(e,t,n,r){return Op({pos:fn.getLineStartPositionForPosition(e,n),end:t},n,r,1)},_n.formatNodeGivenIndentation=function(t,n,e,r,i,a){var o={pos:0,end:n.text.length};return _n.getFormattingScanner(n.text,e,o.pos,o.end,function(e){return Rp(o,t,r,i,e,a,1,function(e){return!1},n)})},(gn={})[gn.None=0]="None",gn[gn.LineAdded=1]="LineAdded",gn[gn.LineRemoved=2]="LineRemoved",_n.getRangeOfEnclosingComment=function(t,n,e,r){void 0===r&&(r=fn.getTokenAtPosition(t,n));var i=fn.findAncestor(r,fn.isJSDoc);if(i&&(r=i.parent),r.getStart(t)<=n&&n<r.getEnd())return undefined;var a=(e=null===e?undefined:e===undefined?fn.findPrecedingToken(n,t):e)&&fn.getTrailingCommentRanges(t.text,e.end),o=fn.getLeadingCommentRangesOfNode(r,t),s=fn.concatenate(a,o);return s&&fn.find(s,function(e){return fn.rangeContainsPositionExclusive(e,n)||n===e.end&&(2===e.kind||n===t.getFullWidth())})},_n.getIndentationString=Wp,vn=rg=rg||{},En=vn.formatting||(vn.formatting={}),In=En.SmartIndenter||(En.SmartIndenter={}),(Tn={})[Tn.Unknown=-1]="Unknown",In.getIndentation=function(e,t,n,r){if(void 0===r&&(r=!1),e>t.text.length)return Gp(n);if(n.indentStyle===vn.IndentStyle.None)return 0;var i=vn.findPrecedingToken(e,t,undefined,!0),a=En.getRangeOfEnclosingComment(t,e,i||null);if(a&&3===a.kind)return function(e,t,n,r){var i=vn.getLineAndCharacterOfPosition(e,t).line-1,a=vn.getLineAndCharacterOfPosition(e,r.pos).line;if(vn.Debug.assert(0<=a),i<=a)return tf(vn.getStartPositionOfLine(a,e),t,e,n);var o=vn.getStartPositionOfLine(i,e),s=ef(o,t,e,n),c=s.column,u=s.character;return 0!==c&&42===e.text.charCodeAt(o+u)?c-1:c}(t,e,n,a);if(!i)return Gp(n);if(vn.isStringOrRegularExpressionOrTemplateLiteral(i.kind)&&i.getStart(t)<=e&&e<i.end)return 0;var o,s,c,u,l=t.getLineAndCharacterOfPosition(e).line;if(n.indentStyle===vn.IndentStyle.Block)return function(e,t,n){var r=t;for(;0<r;){var i=e.text.charCodeAt(r);if(!vn.isWhiteSpaceLike(i))break;r--}return tf(vn.getLineStartPositionForPosition(r,e),r,e,n)}(t,e,n);if(27===i.kind&&205!==i.parent.kind){var d=(o=i,s=t,c=n,(u=vn.findListItemInfo(o))&&0<u.listItemIndex?Qp(u.list.getChildren(),u.listItemIndex-1,s,c):-1);if(-1!==d)return d}var p,f,_,h=(p=e,f=i.parent,_=t,f&&Zp(p,p,f,_));return h&&!vn.rangeContainsRange(h,i)?Xp(h,t,n)+n.indentSize:function(e,t,n,r,i,a){var o,s=n;for(;s;){if(vn.positionBelongsToNode(s,t,e)&&rf(a,s,o,e,!0)){var c=Jp(s,e),u=function(e,t,n,r){var i=vn.findNextToken(e,t,r);if(!i)return 0;{if(18===i.kind)return 1;if(19===i.kind){var a=Jp(i,r).line;return n===a?2:0}}return 0}(n,s,r,e),l=0!==u?i&&2===u?a.indentSize:0:r!==c.line?a.indentSize:0;return Yp(s,c,undefined,l,e,!0,a)}var d=qp(s,e,a,!0);if(-1!==d)return d;s=(o=s).parent}return Gp(a)}(t,e,i,l,r,n)},In.getIndentationForNode=function(e,t,n,r){var i=n.getLineAndCharacterOfPosition(e.getStart(n));return Yp(e,i,t,0,n,!1,r)},In.getBaseIndentation=Gp,(Cn={})[Cn.Unknown=0]="Unknown",Cn[Cn.OpenBrace=1]="OpenBrace",Cn[Cn.CloseBrace=2]="CloseBrace",In.isArgumentAndStartLineOverlapsExpressionBeingCalled=zp,In.childStartsOnTheSameLineWithElseInIfStatement=Up,In.getContainingList=Kp,In.findFirstNonWhitespaceCharacterAndColumn=ef,In.findFirstNonWhitespaceColumn=tf,In.nodeWillIndentChild=nf,In.shouldIndentChildNode=rf,function(e){function s(e){var t=e.__pos;return Bn.Debug.assert("number"==typeof t),t}function i(e,t){Bn.Debug.assert("number"==typeof t),e.__pos=t}function c(e){var t=e.__end;return Bn.Debug.assert("number"==typeof t),t}function a(e,t){Bn.Debug.assert("number"==typeof t),e.__end=t}var u,t,l,n;function b(e,t){return Bn.skipTrivia(e,t,!1,!0)}(t=u=e.LeadingTriviaOption||(e.LeadingTriviaOption={}))[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",(n=l=e.TrailingTriviaOption||(e.TrailingTriviaOption={}))[n.Exclude=0]="Exclude",n[n.Include=1]="Include";var d,r,o={leadingTriviaOption:u.Exclude,trailingTriviaOption:l.Exclude};function p(e,t,n,r){return{pos:f(e,t,r),end:_(e,n,r)}}function f(e,t,n){var r=n.leadingTriviaOption;if(r===u.Exclude)return t.getStart(e);var i=t.getFullStart(),a=t.getStart(e);if(i===a)return a;var o=Bn.getLineStartPositionForPosition(i,e);if(Bn.getLineStartPositionForPosition(a,e)===o)return r===u.IncludeAll?i:a;var s=0<i?1:0,c=Bn.getStartPositionOfLine(Bn.getLineOfLocalPosition(e,o)+s,e),c=b(e.text,c);return Bn.getStartPositionOfLine(Bn.getLineOfLocalPosition(e,c),e)}function _(e,t,n){var r=t.end,i=n.trailingTriviaOption;if(i===l.Exclude||Bn.isExpression(t)&&i!==l.Include)return r;var a=Bn.skipTrivia(e.text,r,!0);return a===r||i!==l.Include&&!Bn.isLineBreak(e.text.charCodeAt(a-1))?r:a}function v(e,t){return t&&e.parent&&(27===t.kind||26===t.kind&&189===e.parent.kind)}(r=d=d||{})[r.Remove=0]="Remove",r[r.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",r[r.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",r[r.Text=3]="Text";var h,g,m=(y.fromContext=function(e){return new y(Bn.getNewLineOrDefaultFromHost(e.host,e.formatContext.options),e.formatContext)},y["with"]=function(e,t){var n=y.fromContext(e);return t(n),n.getChanges()},y.prototype.deleteRange=function(e,t){this.changes.push({kind:d.Remove,sourceFile:e,range:t})},y.prototype["delete"]=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},y.prototype.deleteModifier=function(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Bn.skipTrivia(e.text,t.end,!0)})},y.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={leadingTriviaOption:u.IncludeAll});var i=f(e,t,r),a=_(e,n,r);this.deleteRange(e,{pos:i,end:a})},y.prototype.deleteNodeRangeExcludingEnd=function(e,t,n,r){void 0===r&&(r={leadingTriviaOption:u.IncludeAll});var i=f(e,t,r),a=n===undefined?e.text.length:f(e,n,r);this.deleteRange(e,{pos:i,end:a})},y.prototype.replaceRange=function(e,t,n,r){void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n})},y.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r=o),this.replaceRange(e,p(e,t,t,r),n,r)},y.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i=o),this.replaceRange(e,p(e,t,n,i),r,i)},y.prototype.replaceRangeWithNodes=function(e,t,n,r){void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:r,nodes:n})},y.prototype.replaceNodeWithNodes=function(e,t,n,r){void 0===r&&(r=o),this.replaceRangeWithNodes(e,p(e,t,t,r),n,r)},y.prototype.replaceNodeWithText=function(e,t,n){this.replaceRangeWithText(e,p(e,t,t,o),n)},y.prototype.replaceNodeRangeWithNodes=function(e,t,n,r,i){void 0===i&&(i=o),this.replaceRangeWithNodes(e,p(e,t,n,i),r,i)},y.prototype.nextCommaToken=function(e,t){var n=Bn.findNextToken(t,t.parent,e);return n&&27===n.kind?n:undefined},y.prototype.replacePropertyAssignment=function(e,t,n){var r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})},y.prototype.insertNodeAt=function(e,t,n,r){void 0===r&&(r={}),this.replaceRange(e,Bn.createRange(t),n,r)},y.prototype.insertNodesAt=function(e,t,n,r){void 0===r&&(r={}),this.replaceRangeWithNodes(e,Bn.createRange(t),n,r)},y.prototype.insertNodeAtTopOfFile=function(e,t,n){var r=function(e){for(var t,n=0,r=e.statements;n<r.length;n++){var i=r[n];if(!Bn.isPrologueDirective(i))break;t=i}var a=0,o=e.text;if(t)return a=t.end,p(),a;var s=Bn.getShebang(o);s!==undefined&&(a=s.length,p());var c=Bn.getLeadingCommentRanges(o,a);if(!c)return a;c.length&&3===c[0].kind&&Bn.isPinnedComment(o,c[0].pos)&&(a=c[0].end,p(),c=c.slice(1));for(var u=0,l=c;u<l.length;u++){var d=l[u];if(2!==d.kind||!Bn.isRecognizedTripleSlashComment(o,d.pos,d.end))break;a=d.end,p()}return a;function p(){var e;a<o.length&&(e=o.charCodeAt(a),Bn.isLineBreak(e)&&++a<o.length&&13===e&&10===o.charCodeAt(a)&&a++)}}(e);this.insertNodeAt(e,r,t,{prefix:0===r?undefined:this.newLineCharacter,suffix:(Bn.isLineBreak(e.text.charCodeAt(r))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")})},y.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r=!1),this.insertNodeAt(e,f(e,t,{}),n,this.getOptionsForInsertNodeBefore(t,r))},y.prototype.insertModifierBefore=function(e,t,n){var r=n.getStart(e);this.insertNodeAt(e,r,Bn.createToken(t),{suffix:" "})},y.prototype.insertLastModifierBefore=function(e,t,n){var r;n.modifiers?(r=n.modifiers.end,this.insertNodeAt(e,r,Bn.createToken(t),{prefix:" "})):this.insertModifierBefore(e,t,n)},y.prototype.insertCommentBeforeLine=function(e,t,n,r){var i=Bn.getStartPositionOfLine(t,e),a=Bn.getFirstNonSpaceCharacterPosition(e.text,i),o=w(e,a),s=Bn.getTouchingToken(e,o?a:n),c=e.text.slice(i,a),u=(o?"":this.newLineCharacter)+"//"+r+this.newLineCharacter+c;this.insertText(e,s.getStart(e),u)},y.prototype.insertJsdocCommentBefore=function(e,t,n){var r=t.getStart(e);if(t.jsDoc)for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];this.deleteRange(e,{pos:Bn.getLineStartPositionForPosition(o.getStart(e),e),end:_(e,o,{})})}var s=Bn.getPrecedingNonSpaceCharacterPosition(e.text,r-1),c=e.text.slice(s,r);this.insertNodeAt(e,r,n,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+c})},y.prototype.replaceRangeWithText=function(e,t,n){this.changes.push({kind:d.Text,sourceFile:e,range:t,text:n})},y.prototype.insertText=function(e,t,n){this.replaceRangeWithText(e,Bn.createRange(t),n)},y.prototype.tryInsertTypeAnnotation=function(e,t,n){var r;if(Bn.isFunctionLike(t)){if(!(r=Bn.findChildOfKind(t,21,e))){if(!Bn.isArrowFunction(t))return;r=Bn.first(t.parameters)}}else r=238!==t.kind&&t.questionToken?t.questionToken:t.name;this.insertNodeAt(e,r.end,n,{prefix:": "})},y.prototype.insertTypeParameters=function(e,t,n){var r=(Bn.findChildOfKind(t,20,e)||Bn.first(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">"})},y.prototype.getOptionsForInsertNodeBefore=function(e,t){return Bn.isStatement(e)||Bn.isClassElement(e)?{suffix:t?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Bn.isVariableDeclaration(e)?{suffix:", "}:Bn.isParameter(e)?{}:Bn.isStringLiteral(e)&&Bn.isImportDeclaration(e.parent)||Bn.isNamedImports(e)?{suffix:", "}:Bn.Debug.failBadSyntaxKind(e)},y.prototype.insertNodeAtConstructorStart=function(e,t,n){var r=Bn.firstOrUndefined(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n].concat(t.body.statements))},y.prototype.insertNodeAtConstructorEnd=function(e,t,n){var r=Bn.lastOrUndefined(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,t.body.statements.concat([n]))},y.prototype.replaceConstructorBody=function(e,t,n){this.replaceNode(e,t.body,Bn.createBlock(n,!0))},y.prototype.insertNodeAtEndOfScope=function(e,t,n){var r=f(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Bn.isLineBreak(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},y.prototype.insertNodeAtClassStart=function(e,t,n){this.insertNodeAtStartWorker(e,t,n)},y.prototype.insertNodeAtObjectStart=function(e,t,n){this.insertNodeAtStartWorker(e,t,n)},y.prototype.insertNodeAtStartWorker=function(e,t,n){var r=t.getStart(e),i=Bn.formatting.SmartIndenter.findFirstNonWhitespaceColumn(Bn.getLineStartPositionForPosition(r,e),r,e,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(e,T(t).pos,n,Qb({indentation:i},this.getInsertNodeAtStartPrefixSuffix(e,t)))},y.prototype.getInsertNodeAtStartPrefixSuffix=function(e,t){var n=Bn.isObjectLiteralExpression(t)?",":"";if(0!==T(t).length)return{prefix:this.newLineCharacter,suffix:n};if(Bn.addToSeen(this.classesWithNodesInsertedAtStart,Bn.getNodeId(t),{node:t,sourceFile:e})){var r=Bn.positionsAreOnSameLine.apply(void 0,I(t,e).concat([e]));return{prefix:this.newLineCharacter,suffix:n+(r?this.newLineCharacter:"")}}return{prefix:"",suffix:n+this.newLineCharacter}},y.prototype.insertNodeAfterComma=function(e,t,n){var r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))},y.prototype.insertNodeAfter=function(e,t,n){var r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))},y.prototype.insertNodeAtEndOfList=function(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})},y.prototype.insertNodesAfter=function(e,t,n){var r=this.insertNodeAfterWorker(e,t,Bn.first(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))},y.prototype.insertNodeAfterWorker=function(e,t,n){var r,i;return r=t,i=n,!((Bn.isPropertySignature(r)||Bn.isPropertyDeclaration(r))&&Bn.isClassOrTypeElement(i)&&150===i.name.kind||Bn.isStatementButNotDeclaration(r)&&Bn.isStatementButNotDeclaration(i))||59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Bn.createRange(t.end),Bn.createToken(26)),_(e,t,{})},y.prototype.getInsertNodeAfterOptions=function(e,t){var n=this.getInsertNodeAfterOptionsWorker(t);return Qb({},n,{prefix:t.end===e.end&&Bn.isStatement(t)?n.prefix?"\n"+n.prefix:"\n":n.prefix})},y.prototype.getInsertNodeAfterOptionsWorker=function(e){switch(e.kind){case 241:case 245:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 238:case 10:case 73:return{prefix:", "};case 276:return{suffix:","+this.newLineCharacter};case 86:return{prefix:" "};case 152:return{};default:return Bn.Debug.assert(Bn.isStatement(e)||Bn.isClassOrTypeElement(e)),{suffix:this.newLineCharacter}}},y.prototype.insertName=function(e,t,n){var r,i,a;Bn.Debug.assert(!t.name),198===t.kind?(r=Bn.findChildOfKind(t,37,e),(i=Bn.findChildOfKind(t,20,e))?(this.insertNodesAt(e,i.getStart(e),[Bn.createToken(91),Bn.createIdentifier(n)],{joiner:" "}),P(this,e,r)):(this.insertText(e,Bn.first(t.parameters).getStart(e),"function "+n+"("),this.replaceRange(e,r,Bn.createToken(21))),219!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[Bn.createToken(18),Bn.createToken(98)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[Bn.createToken(26),Bn.createToken(19)],{joiner:" "}))):(a=Bn.findChildOfKind(t,197===t.kind?91:77,e).end,this.insertNodeAt(e,a,Bn.createIdentifier(n),{prefix:" "}))},y.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},y.prototype.insertNodeInListAfter=function(e,t,n,r){var i,a,o,s,c,u,l,d,p,f,_,h,g,m,y;void 0===r&&(r=Bn.formatting.SmartIndenter.getContainingList(t,e)),r?(i=Bn.indexOfNode(r,t))<0||(a=t.getEnd(),i!==r.length-1?(o=Bn.getTokenAtPosition(e,t.end))&&v(t,o)&&(s=Bn.getLineAndCharacterOfPosition(e,b(e.text,r[i+1].getFullStart())),l=u=void 0,(c=Bn.getLineAndCharacterOfPosition(e,o.end)).line===s.line?(l=o.end,u=function(e){for(var t="",n=0;n<e;n++)t+=" ";return t}(s.character-c.character)):l=Bn.getStartPositionOfLine(s.line,e),d=""+Bn.tokenToString(o.kind)+e.text.substring(o.end,r[i+1].getStart(e)),this.replaceRange(e,Bn.createRange(l,r[i+1].getStart(e)),n,{prefix:u,suffix:d})):(p=t.getStart(e),f=Bn.getLineStartPositionForPosition(p,e),h=void 0,g=!1,1===r.length?h=27:(h=v(t,_=Bn.findPrecedingToken(t.pos,e))?_.kind:27,g=Bn.getLineStartPositionForPosition(r[i-1].getStart(e),e)!==f),function(e,t){for(var n=t;n<e.length;){var r=e.charCodeAt(n);if(!Bn.isWhiteSpaceSingleLine(r))return 47===r;n++}}(e.text,t.end)&&(g=!0),g?(this.replaceRange(e,Bn.createRange(a),Bn.createToken(h)),m=Bn.formatting.SmartIndenter.findFirstNonWhitespaceColumn(f,p,e,this.formatContext.options),(y=Bn.skipTrivia(e.text,a,!0,!1))!==a&&Bn.isLineBreak(e.text.charCodeAt(y-1))&&y--,this.replaceRange(e,Bn.createRange(y),n,{indentation:m,prefix:this.newLineCharacter})):this.replaceRange(e,Bn.createRange(a),n,{prefix:Bn.tokenToString(h)+" "}))):Bn.Debug.fail("node is not a list element")},y.prototype.finishClassesWithNodesInsertedAtStart=function(){var o=this;this.classesWithNodesInsertedAtStart.forEach(function(e){var t=e.node,n=e.sourceFile,r=I(t,n),i=r[0],a=r[1];Bn.positionsAreOnSameLine(i,a,n)&&i!==a-1&&o.deleteRange(n,Bn.createRange(i,a-1))})},y.prototype.finishDeleteDeclarations=function(){for(var i=this,a=new Bn.NodeSet,e=function e(t,n){r.deletedNodes.some(function(e){return e.sourceFile===t&&Bn.rangeContainsRangeExclusive(e.node,n)})||(Bn.isArray(n)?r.deleteRange(t,Bn.rangeOfTypeParameters(n)):D.deleteDeclaration(r,a,t,n))},r=this,t=0,n=this.deletedNodes;t<n.length;t++){var o=n[t];e(o.sourceFile,o.node)}a.forEach(function(e){var t,n=e.getSourceFile(),r=Bn.formatting.SmartIndenter.getContainingList(e,n);e!==Bn.last(r)||-1!==(t=Bn.findLastIndex(r,function(e){return!a.has(e)},r.length-2))&&i.deleteRange(n,{pos:r[t].end,end:E(n,r[t+1])})})},y.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=h.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),n=0,r=this.newFiles;n<r.length;n++){var i=r[n],a=i.oldFile,o=i.fileName,s=i.statements;t.push(h.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},y.prototype.createNewFile=function(e,t,n){this.newFiles.push({oldFile:e,fileName:t,statements:n})},y);function y(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=Bn.createMap(),this.deletedNodes=[]}function E(e,t){return Bn.skipTrivia(e.text,f(e,t,{leadingTriviaOption:u.IncludeAll}),!1,!0)}function I(e,t){return[Bn.findChildOfKind(e,18,t).end,Bn.findChildOfKind(e,19,t).end]}function T(e){return Bn.isObjectLiteralExpression(e)?e.properties:e.members}function C(t,e,n,r,i){var a=n.map(function(e){return B(e,t,r).text}).join(r),o=Bn.createSourceFile("any file name",a,8,!0,e);return x(a,Bn.formatting.formatDocument(o,i))+r}function B(e,t,n){var r=new k(n),i="\n"===n?1:0;return Bn.createPrinter({newLine:i,neverAsciiEscape:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:S(e)}}function x(e,t){for(var n=t.length-1;0<=n;n--){var r=t[n],i=r.span,a=r.newText;e=""+e.substring(0,i.start)+a+e.substring(Bn.textSpanEnd(i))}return e}function S(e){var t=Bn.visitEachChild(e,S,Bn.nullTransformationContext,N,S),n=Bn.nodeIsSynthesized(t)?t:Object.create(t);return n.pos=s(e),n.end=c(e),n}function N(e,t,n,r,i){var a=Bn.visitNodes(e,t,n,r,i);if(!a)return a;var o=a===e?Bn.createNodeArray(a.slice(0)):a;return o.pos=s(e),o.end=c(e),o}e.ChangeTracker=m,e.getNewFileText=function(e,t,n,r){return h.newFileChangesWorker(undefined,t,e,n,r)},(g=h=h||{}).getTextChangesFromChanges=function(e,o,s,c){return Bn.group(e,function(e){return e.sourceFile.path}).map(function(e){for(var t=e[0].sourceFile,n=Bn.stableSort(e,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),r=function r(e){Bn.Debug.assert(n[e].range.end<=n[e+1].range.pos,"Changes overlap",function(){return JSON.stringify(n[e].range)+" and "+JSON.stringify(n[e+1].range)})},i=0;i<n.length-1;i++)r(i);var a=n.map(function(e){return Bn.createTextChange(Bn.createTextSpanFromRange(e.range),function(e,t,n,r,i){if(e.kind===d.Remove)return"";if(e.kind===d.Text)return e.text;var a=e.options,o=void 0===a?{}:a,s=e.range.pos,c=function c(e){return function(e,t,n,r,i,a,o){var s=r.indentation,c=r.prefix,u=r.delta,l=B(e,t,i),d=l.node,p=l.text;o&&o(d,p);var f=a.options,_=s!==undefined?s:Bn.formatting.SmartIndenter.getIndentation(n,t,f,c===i||Bn.getLineStartPositionForPosition(n,t)===n);u===undefined&&(u=Bn.formatting.SmartIndenter.shouldIndentChildNode(a.options,e)&&f.indentSize||0);var h={text:p,getLineAndCharacterOfPosition:function(e){return Bn.getLineAndCharacterOfPosition(this,e)}},g=Bn.formatting.formatNodeGivenIndentation(d,h,t.languageVariant,_,u,a);return x(p,g)}(e,t,s,o,n,r,i)},u=e.kind===d.ReplaceWithMultipleNodes?e.nodes.map(function(e){return Bn.removeSuffix(c(e),n)}).join(e.options.joiner||n):c(e.node),l=o.preserveLeadingWhitespace||o.indentation!==undefined||Bn.getLineStartPositionForPosition(s,t)===s?u:u.replace(/^\s+/,"");return(o.prefix||"")+l+(o.suffix||"")}(e,t,o,s,c))});return{fileName:t.fileName,textChanges:a}})},g.newFileChanges=function(e,t,n,r,i){var a=C(e,Bn.getScriptKindFromFileName(t),n,r,i);return{fileName:t,textChanges:[Bn.createTextChange(Bn.createTextSpan(0,0),a)],isNewFile:!0}},g.newFileChangesWorker=C,g.getNonformattedText=B,e.applyChanges=x;var D,k=(A.prototype.setLastNonTriviaPosition=function(e,t){if(t||(r=e,Bn.skipTrivia(r,0)!==r.length)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var n=0;Bn.isWhiteSpaceLike(e.charCodeAt(e.length-n-1));)n++;this.lastNonTriviaPosition-=n}var r},A.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeComment=function(e){this.writer.writeComment(e)},A.prototype.writeKeyword=function(e){this.writer.writeKeyword(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeOperator=function(e){this.writer.writeOperator(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writePunctuation=function(e){this.writer.writePunctuation(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeTrailingSemicolon=function(e){this.writer.writeTrailingSemicolon(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeParameter=function(e){this.writer.writeParameter(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeProperty=function(e){this.writer.writeProperty(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeSpace=function(e){this.writer.writeSpace(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeSymbol=function(e,t){this.writer.writeSymbol(e,t),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeLine=function(){this.writer.writeLine()},A.prototype.increaseIndent=function(){this.writer.increaseIndent()},A.prototype.decreaseIndent=function(){this.writer.decreaseIndent()},A.prototype.getText=function(){return this.writer.getText()},A.prototype.rawWrite=function(e){this.writer.rawWrite(e),this.setLastNonTriviaPosition(e,!1)},A.prototype.writeLiteral=function(e){this.writer.writeLiteral(e),this.setLastNonTriviaPosition(e,!0)},A.prototype.getTextPos=function(){return this.writer.getTextPos()},A.prototype.getLine=function(){return this.writer.getLine()},A.prototype.getColumn=function(){return this.writer.getColumn()},A.prototype.getIndent=function(){return this.writer.getIndent()},A.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()},A.prototype.clear=function(){this.writer.clear(),this.lastNonTriviaPosition=0},A);function A(e){var r=this;this.lastNonTriviaPosition=0,this.writer=Bn.createTextWriter(e),this.onEmitNode=function(e,t,n){t&&i(t,r.lastNonTriviaPosition),n(e,t),t&&a(t,r.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&i(e,r.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&a(e,r.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&i(e,r.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&a(e,r.lastNonTriviaPosition)}}function w(e,t){return!(Bn.isInComment(e,t)||Bn.isInString(e,t)||Bn.isInTemplateString(e,t)||Bn.isInJSXText(e,t))}function V(e,t,n){var r;n.parent.name?(r=Bn.Debug.assertDefined(Bn.getTokenAtPosition(t,n.pos-1)),e.deleteRange(t,{pos:r.getStart(t),end:n.end})):P(e,t,Bn.getAncestor(n,250))}function P(e,t,n,r){void 0===r&&(r={leadingTriviaOption:u.IncludeAll});var i=f(t,n,r),a=_(t,n,r);e.deleteRange(t,{pos:i,end:a})}function L(e,t,n,r){var i=Bn.Debug.assertDefined(Bn.formatting.SmartIndenter.getContainingList(r,n)),a=Bn.indexOfNode(i,r);Bn.Debug.assert(-1!==a),1!==i.length?(Bn.Debug.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:E(n,r),end:a===i.length-1?_(n,r,{}):E(n,i[a+1])})):P(e,n,r)}e.isValidLocationToAddComment=w,(D||(D={})).deleteDeclaration=function(e,t,n,r){switch(r.kind){case 152:var i=r.parent;Bn.isArrowFunction(i)&&1===i.parameters.length&&!Bn.findChildOfKind(i,20,n)?e.replaceNodeWithText(n,r,"()"):L(e,t,n,r);break;case 250:P(e,n,r,r===n.imports[0].parent?{leadingTriviaOption:u.Exclude}:undefined);break;case 187:var a=r.parent;186===a.kind&&r!==Bn.last(a.elements)?P(e,n,r):L(e,t,n,r);break;case 238:!function(e,t,n,r){var i=r.parent;if(275===i.kind)return e.deleteNodeRange(n,Bn.findChildOfKind(i,20,n),Bn.findChildOfKind(i,21,n));if(1!==i.declarations.length)return L(e,t,n,r);var a=i.parent;switch(a.kind){case 228:case 227:e.replaceNode(n,r,Bn.createObjectLiteral());break;case 226:P(e,n,i);break;case 220:P(e,n,a);break;default:Bn.Debug.assertNever(a)}}(e,t,n,r);break;case 151:L(e,t,n,r);break;case 254:var o=r.parent;1===o.elements.length?V(e,n,o):L(e,t,n,r);break;case 252:V(e,n,r);break;default:Bn.isImportClause(r.parent)&&r.parent.name===r?function(e,t,n){{var r,i,a;n.namedBindings?(r=n.name.getStart(t),(i=Bn.getTokenAtPosition(t,n.name.end))&&27===i.kind?(a=Bn.skipTrivia(t.text,i.end,!1,!0),e.deleteRange(t,{pos:r,end:a})):P(e,t,n.name)):P(e,t,n.parent)}}(e,n,r.parent):Bn.isCallLikeExpression(r.parent)?L(e,t,n,r):P(e,n,r,26===r.kind?{trailingTriviaOption:l.Exclude}:undefined)}},e.deleteNode=P}((Bn=rg=rg||{}).textChanges||(Bn.textChanges={})),xn=rg=rg||{},Sn=xn.codefix||(xn.codefix={}),Nn=xn.createMultiMap(),Dn=xn.createMap(),Sn.createCodeFixActionNoFixId=function(e,t,n){return of(e,af(n),t,undefined,undefined)},Sn.createCodeFixAction=function(e,t,n,r,i,a){return of(e,af(n),t,r,af(i),a)},Sn.registerCodeFix=function(e){for(var t=0,n=e.errorCodes;t<n.length;t++){var r=n[t];Nn.add(String(r),e)}if(e.fixIds)for(var i=0,a=e.fixIds;i<a.length;i++){var o=a[i];xn.Debug.assert(!Dn.has(o)),Dn.set(o,e)}},Sn.getSupportedErrorCodes=function(){return xn.arrayFrom(Nn.keys())},Sn.getFixes=function(t){return xn.flatMap(Nn.get(String(t.errorCode))||xn.emptyArray,function(e){return e.getCodeActions(t)})},Sn.getAllFixes=function(e){return Dn.get(xn.cast(e.fixId,xn.isString)).getAllCodeActions(e)},Sn.createCombinedCodeActions=sf,Sn.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},Sn.codeFixAll=function(e,n,r){var i=[];return sf(xn.textChanges.ChangeTracker["with"](e,function(t){return cf(e,n,function(e){return r(t,e,i)})}),0===i.length?undefined:i)},Sn.eachDiagnostic=cf,kn=rg=rg||{},An=kn.refactor||(kn.refactor={}),wn=kn.createMap(),An.registerRefactor=function(e,t){wn.set(e,t)},An.getApplicableRefactors=function(t){return kn.arrayFrom(kn.flatMapIterator(wn.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?undefined:e.getAvailableActions(t)}))},An.getEditsForRefactor=function(e,t,n){var r=wn.get(t);return r&&r.getEditsForAction(e,n)},kn.getRefactorContextSpan=function(e){var t=e.startPosition,n=e.endPosition;return kn.createTextSpanFromBounds(t,n===undefined?t:n)},Vn=rg=rg||{},Pn=Vn.codefix||(Vn.codefix={}),Ln="addConvertToUnknownForNonOverlappingTypes",Fn=[Vn.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Pn.registerCodeFix({errorCodes:Fn,getCodeActions:function(t){var e=Vn.textChanges.ChangeTracker["with"](t,function(e){return uf(e,t.sourceFile,t.span.start)});return[Pn.createCodeFixAction(Ln,e,Vn.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,Ln,Vn.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Ln],getAllCodeActions:function(e){return Pn.codeFixAll(e,Fn,function(e,t){return uf(e,t.file,t.start)})}}),On=rg=rg||{},Rn=On.codefix||(On.codefix={}),Hn="addMissingInvocationForDecorator",jn=[On.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Rn.registerCodeFix({errorCodes:jn,getCodeActions:function(t){var e=On.textChanges.ChangeTracker["with"](t,function(e){return lf(e,t.sourceFile,t.span.start)});return[Rn.createCodeFixAction(Hn,e,On.Diagnostics.Call_decorator_expression,Hn,On.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[Hn],getAllCodeActions:function(e){return Rn.codeFixAll(e,jn,function(e,t){return lf(e,t.file,t.start)})}}),Wn=rg=rg||{},Gn=Wn.codefix||(Wn.codefix={}),Yn="addNameToNamelessParameter",Jn=[Wn.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Gn.registerCodeFix({errorCodes:Jn,getCodeActions:function(t){var e=Wn.textChanges.ChangeTracker["with"](t,function(e){return df(e,t.sourceFile,t.span.start)});return[Gn.createCodeFixAction(Yn,e,Wn.Diagnostics.Add_parameter_name,Yn,Wn.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[Yn],getAllCodeActions:function(e){return Gn.codeFixAll(e,Jn,function(e,t){return df(e,t.file,t.start)})}}),zn=rg=rg||{},Un=zn.codefix||(zn.codefix={}),Kn="annotateWithTypeFromJSDoc",Zn=[zn.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code],Un.registerCodeFix({errorCodes:Zn,getCodeActions:function(t){var n=pf(t.sourceFile,t.span.start);if(n){var e=zn.textChanges.ChangeTracker["with"](t,function(e){return hf(e,t.sourceFile,n)});return[Un.createCodeFixAction(Kn,e,zn.Diagnostics.Annotate_with_type_from_JSDoc,Kn,zn.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[Kn],getAllCodeActions:function(e){return Un.codeFixAll(e,Zn,function(e,t){var n=pf(t.file,t.start);n&&hf(e,t.file,n)})}}),Un.parameterShouldGetTypeFromJSDoc=ff,Xn=rg=rg||{},qn=Xn.codefix||(Xn.codefix={}),er="inferFromUsage",tr=[Xn.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,Xn.Diagnostics.Variable_0_implicitly_has_an_1_type.code,Xn.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,Xn.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,Xn.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,Xn.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,Xn.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,Xn.Diagnostics.Member_0_implicitly_has_an_1_type.code,Xn.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,Xn.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Xn.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Xn.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,Xn.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,Xn.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,Xn.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,Xn.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code],qn.registerCodeFix({errorCodes:tr,getCodeActions:function(e){var t,n=e.sourceFile,r=e.program,i=e.span.start,a=e.errorCode,o=e.cancellationToken,s=e.host,c=Xn.getTokenAtPosition(n,i),u=Xn.textChanges.ChangeTracker["with"](e,function(e){t=yf(e,n,c,a,r,o,Xn.returnTrue,s)}),l=t&&Xn.getNameOfDeclaration(t);return l&&0!==u.length?[qn.createCodeFixAction(er,u,[function(e,t){switch(e){case Xn.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case Xn.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Xn.isSetAccessorDeclaration(Xn.getContainingFunction(t))?Xn.Diagnostics.Infer_type_of_0_from_usage:Xn.Diagnostics.Infer_parameter_types_from_usage;case Xn.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case Xn.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Xn.Diagnostics.Infer_parameter_types_from_usage;default:return Xn.Diagnostics.Infer_type_of_0_from_usage}}(a,c),l.getText(n)],er,Xn.Diagnostics.Infer_all_types_from_usage)]:undefined},fixIds:[er],getAllCodeActions:function(e){var n=e.sourceFile,r=e.program,i=e.cancellationToken,a=e.host,o=Xn.nodeSeenTracker();return qn.codeFixAll(e,tr,function(e,t){yf(e,n,Xn.getTokenAtPosition(t.file,t.start),t.code,r,i,o,a)})}}),($n=Qn=Qn||{}).inferTypesFromReferences=xf,$n.inferTypeForParametersFromReferences=function(e,d,p,f){var _=p.getTypeChecker();if(0===e.length)return undefined;if(!d.parameters)return undefined;for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];f.throwIfCancellationRequested(),Sf(i,_,t)}var h=(t.constructContexts||[]).concat(t.callContexts||[]);return d.parameters.map(function(e,t){for(var n,r=[],i=Xn.isRestParameter(e),a=!1,o=0,s=h;o<s.length;o++){var c=s[o];if(c.argumentTypes.length<=t)a=Xn.isInJSFile(d),r.push(_.getUndefinedType());else if(i)for(var u=t;u<c.argumentTypes.length;u++)r.push(_.getBaseTypeOfLiteralType(c.argumentTypes[u]));else r.push(_.getBaseTypeOfLiteralType(c.argumentTypes[t]))}Xn.isIdentifier(e.name)&&(n=xf(Cf(e.name,p,f),_,f),r.push.apply(r,i?Xn.mapDefined(n,_.getElementTypeOfArrayType):n));var l=Df(r,_);return{type:i?_.createArrayType(l):l,isOptional:a&&!i,declaration:e}})},$n.unifyFromContext=Df,nr=rg=rg||{},rr=nr.codefix||(nr.codefix={}),ir="convertFunctionToEs6Class",ar=[nr.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code],rr.registerCodeFix({errorCodes:ar,getCodeActions:function(t){var e=nr.textChanges.ChangeTracker["with"](t,function(e){return Lf(e,t.sourceFile,t.span.start,t.program.getTypeChecker())});return[rr.createCodeFixAction(ir,e,nr.Diagnostics.Convert_function_to_an_ES2015_class,ir,nr.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[ir],getAllCodeActions:function(n){return rr.codeFixAll(n,ar,function(e,t){return Lf(e,t.file,t.start,n.program.getTypeChecker())})}}),or=rg=rg||{},sr=or.codefix||(or.codefix={}),ur="convertToAsyncFunction",lr=[or.Diagnostics.This_may_be_converted_to_an_async_function.code],dr=!0,sr.registerCodeFix({errorCodes:lr,getCodeActions:function(t){dr=!0;var e=or.textChanges.ChangeTracker["with"](t,function(e){return Ff(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t)});return dr?[sr.createCodeFixAction(ur,e,or.Diagnostics.Convert_to_async_function,ur,or.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[ur],getAllCodeActions:function(n){return sr.codeFixAll(n,lr,function(e,t){return Ff(e,t.file,t.start,n.program.getTypeChecker(),n)})}}),(cr={})[cr.Identifier=0]="Identifier",cr[cr.BindingPattern=1]="BindingPattern",pr=rg=rg||{},(fr=pr.codefix||(pr.codefix={})).registerCodeFix({errorCodes:[pr.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(e){var i=e.sourceFile,a=e.program,o=e.preferences,t=pr.textChanges.ChangeTracker["with"](e,function(e){if(function(e,t,n,r,i){var a={original:function(e){var t=pr.createMultiMap();return function n(e,t){pr.isIdentifier(e)&&i_(e)&&t(e);e.forEachChild(function(e){return n(e,t)})}(e,function(e){return t.add(e.text,e)}),t}(e),additional:pr.createMap()},o=function(e,i,a){var o=pr.createMap();return e_(e,function(e){var t=e.name,n=t.text,r=t.originalKeywordKind;!o.has(n)&&(r!==undefined&&pr.isNonContextualKeyword(r)||i.resolveName(e.name.text,e,67220415,!0))&&o.set(n,r_("_"+n,a))}),o}(e,t,a);!function(r,i,a){e_(r,function(e,t){var n;t||(n=e.name.text,a.replaceNode(r,e,pr.createIdentifier(i.get(n)||n)))})}(e,o,n);for(var s=!1,c=0,u=e.statements;c<u.length;c++){var l=u[c],d=function(e,t,n,r,i,a,o,s){switch(t.kind){case 220:return function(r,e,i,a,o,s,c){var u=e.declarationList,l=!1,t=pr.flatMap(u.declarations,function(e){var t=e.name,n=e.initializer;if(n){if(pr.isExportsOrModuleExportsOrAlias(r,n))return l=!0,[];if(pr.isRequireCall(n,!0))return l=!0,function(e,t,n,r,i,a,o,s){switch(t.kind){case 185:var c=pr.mapAllOrFail(t.elements,function(e){return e.dotDotDotToken||e.initializer||e.propertyName&&!pr.isIdentifier(e.propertyName)||!pr.isIdentifier(e.name)?undefined:s_(e.propertyName&&e.propertyName.text,e.name.text)});if(c)return[pr.makeImport(undefined,c,n,s)];case 186:var u=r_(fr.moduleSpecifierToValidIdentifier(n.text,o),a);return[pr.makeImport(pr.createIdentifier(u),undefined,n,s),c_(undefined,pr.getSynthesizedDeepClone(t),pr.createIdentifier(u))];case 73:return function(e,t,n,r,i,a,o){for(var s=i.getSymbolAtLocation(t),c=pr.createMap(),u=!1,l=0,d=a.original.get(t.text);l<d.length;l++){var p,f,_,h,g=d[l];i.getSymbolAtLocation(g)===s&&g!==t&&(p=g.parent,pr.isPropertyAccessExpression(p)?(f=p.expression,_=p.name.text,pr.Debug.assert(f===g),(h=c.get(_))===undefined&&(h=r_(_,a),c.set(_,h)),r.replaceNode(e,p,pr.createIdentifier(h))):u=!0)}var m=0===c.size?undefined:pr.arrayFrom(pr.mapIterator(c.entries(),function(e){var t=e[0],n=e[1];return pr.createImportSpecifier(t===n?undefined:pr.createIdentifier(t),pr.createIdentifier(n))}));m||(u=!0);return[pr.makeImport(u?pr.getSynthesizedDeepClone(t):undefined,m,n,o)]}(e,t,n,r,i,a,s);default:return pr.Debug.assertNever(t)}}(r,t,n.arguments[0],i,a,o,s,c);if(pr.isPropertyAccessExpression(n)&&pr.isRequireCall(n.expression,!0))return l=!0,function(e,t,n,r,i){switch(e.kind){case 185:case 186:var a=r_(t,r);return[o_(a,t,n,i),c_(undefined,e,pr.createIdentifier(a))];case 73:return[o_(e.text,t,n,i)];default:return pr.Debug.assertNever(e)}}(t,n.name.text,n.expression.arguments[0],o,c)}return pr.createVariableStatement(undefined,pr.createVariableDeclarationList([e],u.flags))});l&&i.replaceNodeWithNodes(r,e,t)}(e,t,r,n,i,a,s),!1;case 222:var c=t.expression;switch(c.kind){case 192:return pr.isRequireCall(c,!0)&&r.replaceNode(e,t,pr.makeImport(undefined,undefined,c.arguments[0],s)),!1;case 205:return 60===c.operatorToken.kind&&function(e,t,n,r,i){var a=n.left,o=n.right;if(!pr.isPropertyAccessExpression(a))return!1;if(pr.isExportsOrModuleExportsOrAlias(e,a)){if(!pr.isExportsOrModuleExportsOrAlias(e,o)){var s=pr.isObjectLiteralExpression(o)?function(e){var t=pr.mapAllOrFail(e.properties,function(e){switch(e.kind){case 159:case 160:case 277:case 278:return undefined;case 276:return pr.isIdentifier(e.name)?function(e,t){var n=[pr.createToken(86)];switch(t.kind){case 197:var r=t.name;if(r&&r.text!==e)return i();case 198:return a_(e,n,t);case 210:return function(e,t,n){return pr.createClassDeclaration(pr.getSynthesizedDeepClones(n.decorators),pr.concatenate(t,pr.getSynthesizedDeepClones(n.modifiers)),e,pr.getSynthesizedDeepClones(n.typeParameters),pr.getSynthesizedDeepClones(n.heritageClauses),pr.getSynthesizedDeepClones(n.members))}(e,n,t);default:return i()}function i(){return c_(n,pr.createIdentifier(e),t)}}(e.name.text,e.initializer):undefined;case 157:return pr.isIdentifier(e.name)?a_(e.name.text,[pr.createToken(86)],e):undefined;default:pr.Debug.assertNever(e)}});return t&&[t,!1]}(o):pr.isRequireCall(o,!0)?function(e,t){var n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:pr.emptyUnderscoreEscapedMap;return i.has("export=")?[[n_(n)],!0]:i.has("default")?1<i.size?[[t_(n),n_(n)],!0]:[[n_(n)],!0]:[[t_(n)],!1]}(o.arguments[0],t):undefined;return s?(r.replaceNodeWithNodes(e,n.parent,s[0]),s[1]):(r.replaceRangeWithText(e,pr.createRange(a.getStart(e),o.pos),"export default"),!0)}r["delete"](e,n.parent)}else pr.isExportsOrModuleExportsOrAlias(e,a.expression)&&function(e,t,n,r){var i=t.left.name.text,a=r.get(i);{var o;a!==undefined?(o=[c_(undefined,a,t.right),u_([pr.createExportSpecifier(a,i)])],n.replaceNodeWithNodes(e,t.parent,o)):function(e,t,n){var r=e.left,i=e.right,a=e.parent,o=r.name.text;{var s;!(pr.isFunctionExpression(i)||pr.isArrowFunction(i)||pr.isClassExpression(i))||i.name&&i.name.text!==o?n.replaceNodeRangeWithNodes(t,r.expression,pr.findChildOfKind(r,24,t),[pr.createToken(86),pr.createToken(78)],{joiner:" ",suffix:" "}):(n.replaceRange(t,{pos:r.getStart(t),end:i.getStart(t)},pr.createToken(86),{suffix:" "}),i.name||n.insertName(t,i,o),(s=pr.findChildOfKind(a,26,t))&&n["delete"](t,s))}}(t,e,n)}}(e,n,r,i);return!1}(e,n,c,r,o)}default:return!1}}(e,l,t,n,a,r,o,i);s=s||d}return s}(i,a.getTypeChecker(),e,a.getCompilerOptions().target,pr.getQuotePreference(i,o)))for(var t=0,n=a.getSourceFiles();t<n.length;t++){var r=n[t];!function(e,t,n,r){for(var i=0,a=e.imports;i<a.length;i++){var o=a[i],s=pr.getResolvedModule(e,o.text);if(s&&s.resolvedFileName===t.fileName){var c=pr.importFromModuleSpecifier(o);switch(c.kind){case 249:n.replaceNode(e,c,pr.makeImport(c.name,undefined,o,r));break;case 192:pr.isRequireCall(c,!1)&&n.replaceNode(e,c,pr.createPropertyAccess(pr.getSynthesizedDeepClone(c),"default"))}}}}(r,i,e,pr.getQuotePreference(r,o))}});return[fr.createCodeFixActionNoFixId("convertToEs6Module",t,pr.Diagnostics.Convert_to_ES6_module)]}}),_r=rg=rg||{},hr=_r.codefix||(_r.codefix={}),gr="correctQualifiedNameToIndexedAccessType",mr=[_r.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],hr.registerCodeFix({errorCodes:mr,getCodeActions:function(t){var n=l_(t.sourceFile,t.span.start);if(!n)return undefined;var e=_r.textChanges.ChangeTracker["with"](t,function(e){return d_(e,t.sourceFile,n)}),r=n.left.text+'["'+n.right.text+'"]';return[hr.createCodeFixAction(gr,e,[_r.Diagnostics.Rewrite_as_the_indexed_access_type_0,r],gr,_r.Diagnostics.Rewrite_all_as_indexed_access_types)]},fixIds:[gr],getAllCodeActions:function(e){return hr.codeFixAll(e,mr,function(e,t){var n=l_(t.file,t.start);n&&d_(e,t.file,n)})}}),yr=rg=rg||{},br=yr.codefix||(yr.codefix={}),vr=[yr.Diagnostics.Class_0_incorrectly_implements_interface_1.code,yr.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Er="fixClassIncorrectlyImplementsInterface",br.registerCodeFix({errorCodes:vr,getCodeActions:function(n){var r=n.sourceFile,e=n.span,i=p_(r,e.start);return yr.mapDefined(yr.getClassImplementsHeritageClauseElements(i),function(t){var e=yr.textChanges.ChangeTracker["with"](n,function(e){return __(n,t,r,i,e,n.preferences)});return 0===e.length?undefined:br.createCodeFixAction(Er,e,[yr.Diagnostics.Implement_interface_0,t.getText(r)],Er,yr.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[Er],getAllCodeActions:function(o){var s=yr.createMap();return br.codeFixAll(o,vr,function(e,t){var n=p_(t.file,t.start);if(yr.addToSeen(s,yr.getNodeId(n)))for(var r=0,i=yr.getClassImplementsHeritageClauseElements(n);r<i.length;r++){var a=i[r];__(o,a,t.file,n,e,o.preferences)}})}}),function(u){u.importFixId="fixMissingImport";var e,t,n=[Ir.Diagnostics.Cannot_find_name_0.code,Ir.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,Ir.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Ir.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Ir.Diagnostics.Cannot_find_namespace_0.code,Ir.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,Ir.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function C(e,t){return!(67220415&Ir.skipAlias(e,t).flags)}function B(e,t,n,r,o,i,a){var s,c,u,l,d,p,f,_,h,g,m,y,b,v=r.getTypeChecker(),E=Ir.flatMap(e,function(e){return n=v,r=o,i=(t=e).moduleSymbol,a=t.importKind,t.exportedSymbolIsTypeOnly&&Ir.isSourceFileJS(r)?Ir.emptyArray:Ir.mapDefined(r.imports,function(e){var t=Ir.importFromModuleSpecifier(e);return 250!==t.kind&&249!==t.kind||n.getSymbolAtLocation(e)!==i?undefined:{declaration:t,importKind:a}});var t,n,r,i,a}),I=n===undefined?undefined:(s=E,c=t,u=n,l=v,Ir.firstDefined(s,function(e){var t=function(e){if(250!==e.kind)return e.name;var t=e.importClause&&Ir.isImportClause(e.importClause)&&e.importClause.namedBindings;return t&&252===t.kind?t.name:undefined}(e.declaration);if(t){var n=l.getAliasedSymbol(l.getSymbolAtLocation(t));if(n&&n.exports.has(Ir.escapeLeadingUnderscores(c)))return{kind:0,namespacePrefix:t.text,position:u}}})),T=(d=E,Ir.firstDefined(d,function(e){var t=e.declaration,n=e.importKind;if(250!==t.kind)return undefined;var r=t.importClause;if(!r)return undefined;var i=r.name,a=r.namedBindings;return 1===n&&!i||0===n&&(!a||253===a.kind)?{kind:2,importClause:r,importKind:n}:undefined})),C=T?[T]:(p=e,f=E,_=r,h=o,g=n,m=i,y=a,(b=Ir.firstDefined(f,S))?[b]:x(_,h,g,p,m,y));return(I?[I]:Ir.emptyArray).concat(C)}function x(i,a,o,e,s,c){var u=Ir.isSourceFileJS(a),t=Ir.flatMap(e,function(e){var t=e.moduleSymbol,n=e.importKind,r=e.exportedSymbolIsTypeOnly;return Ir.moduleSpecifiers.getModuleSpecifiers(t,i.getCompilerOptions(),a,s,i.getSourceFiles(),c,i.redirectTargetsMap).map(function(e){return r&&u?{kind:1,moduleSpecifier:e,position:Ir.Debug.assertDefined(o)}:{kind:3,moduleSpecifier:e,importKind:n}})});return Ir.sort(t,function(e,t){return e.moduleSpecifier.length-t.moduleSpecifier.length})}function S(e){var t=e.declaration,n=e.importKind,r=250===t.kind?t.moduleSpecifier:260===t.moduleReference.kind?t.moduleReference.expression:undefined;return r&&Ir.isStringLiteral(r)?{kind:3,moduleSpecifier:r.text,importKind:n}:undefined}function h(e,t,n){var r,i,a,o,s,c,u,l,d,p=Ir.getTokenAtPosition(e.sourceFile,n),f=t===Ir.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(e,t){var n=e.sourceFile,r=e.program,i=e.host,a=e.preferences,o=r.getTypeChecker(),s=function(e,t){var n=Ir.isIdentifier(e)?t.getSymbolAtLocation(e):undefined;if(Ir.isUMDExportSymbol(n))return n;var r=e.parent;return Ir.isJsxOpeningLikeElement(r)&&r.tagName===e||Ir.isJsxOpeningFragment(r)?Ir.tryCast(t.resolveName(t.getJsxNamespace(r),Ir.isJsxOpeningLikeElement(r)?e:r,67220415,!1),Ir.isUMDExportSymbol):undefined}(t,o);if(!s)return undefined;var c=o.getAliasedSymbol(s),u=s.name;return{fixes:B([{moduleSymbol:c,importKind:function(e){if(Ir.getAllowSyntheticDefaultImports(e))return 1;var t=Ir.getEmitModuleKind(e);switch(t){case Ir.ModuleKind.AMD:case Ir.ModuleKind.CommonJS:case Ir.ModuleKind.UMD:return 3;case Ir.ModuleKind.System:case Ir.ModuleKind.ES2015:case Ir.ModuleKind.ESNext:case Ir.ModuleKind.None:return 2;default:return Ir.Debug.assertNever(t)}}(r.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],u,Ir.isIdentifier(t)?t.getStart(n):undefined,r,n,i,a),symbolName:u}}(e,p):Ir.isIdentifier(p)?(i=p,a=(r=e).sourceFile,o=r.program,s=r.cancellationToken,c=r.host,u=r.preferences,l=o.getTypeChecker(),d=Ir.isJsxOpeningLikeElement(i.parent)&&i.parent.tagName===i&&(Ir.isIntrinsicJsxName(i.text)||l.resolveName(i.text,i,67108863,!1))?l.getJsxNamespace(a):i.text,Ir.Debug.assert("default"!==d),{fixes:Ir.arrayFrom(Ir.flatMapIterator(function(r,i,a,e,o,s){var c=Ir.createMultiMap();function u(e,t,n){c.add(Ir.getUniqueSymbolId(t,o).toString(),{moduleSymbol:e,importKind:n,exportedSymbolIsTypeOnly:C(t,o)})}return v(o,e,s.getSourceFiles(),function(e){a.throwIfCancellationRequested();var t=N(e,o,s.getCompilerOptions());t&&t.name===r&&_(t.symbolForMeaning,i)&&u(e,t.symbol,t.kind);var n=o.tryGetMemberInModuleExportsAndProperties(r,e);n&&_(n,i)&&u(e,n,0)}),c}(d,Ir.getMeaningFromLocation(i),s,a,l,o).entries(),function(e){return e[0],B(e[1],d,i.getStart(a),o,a,c,u)})),symbolName:d}):undefined;return f&&Qb({},f,{fixes:Ir.sort(f.fixes,function(e,t){return e.kind-t.kind})})}function N(e,t,n){var r=function(e,t){var n=t.tryGetMemberInModuleExports("default",e);if(n)return{symbol:n,kind:1};var r=t.resolveExternalModuleSymbol(e);return r===e?undefined:{symbol:r,kind:3}}(e,t);if(!r)return undefined;var i=r.symbol,a=r.kind,o=function c(e,t,n,r){var i=Ir.getLocalSymbolForExportDefault(e);if(i)return{symbolForMeaning:i,name:i.name};var a=(o=e,o.declarations&&Ir.firstDefined(o.declarations,function(e){if(Ir.isExportAssignment(e)){if(Ir.isIdentifier(e.expression))return e.expression.text}else if(Ir.isExportSpecifier(e))return Ir.Debug.assert("default"===e.name.text),e.propertyName&&e.propertyName.text}));var o;if(a!==undefined)return{symbolForMeaning:e,name:a};{if(2097152&e.flags){var s=n.getImmediateAliasedSymbol(e);return s&&c(s,Ir.Debug.assertDefined(s.parent),n,r)}return{symbolForMeaning:e,name:d(t,r.target)}}}(i,e,t,n);return o&&Qb({symbol:i,kind:a},o)}function D(e,t,n,r,i){var a,o=Ir.textChanges.ChangeTracker["with"](e,function(e){a=function(e,t,n,r,i){switch(r.kind){case 0:return m(e,t,r),[Ir.Diagnostics.Change_0_to_1,n,r.namespacePrefix+"."+n];case 1:return y(e,t,r,i),[Ir.Diagnostics.Change_0_to_1,n,l(r.moduleSpecifier,i)+n];case 2:var a=r.importClause,o=r.importKind;g(e,t,a,1===o?n:undefined,0===o?[n]:Ir.emptyArray);var s=Ir.stripQuotes(a.parent.moduleSpecifier.getText());return[1===o?Ir.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:Ir.Diagnostics.Add_0_to_existing_import_declaration_from_1,n,s];case 3:var o=r.importKind,c=r.moduleSpecifier;return b(e,t,c,i,1===o?{defaultImport:n,namedImports:Ir.emptyArray,namespaceLikeImport:undefined}:0===o?{defaultImport:undefined,namedImports:[n],namespaceLikeImport:undefined}:{defaultImport:undefined,namedImports:Ir.emptyArray,namespaceLikeImport:{importKind:o,name:n}}),[1===o?Ir.Diagnostics.Import_default_0_from_module_1:Ir.Diagnostics.Import_0_from_module_1,n,c];default:return Ir.Debug.assertNever(r)}}(e,t,n,r,i)});return u.createCodeFixAction("import",o,a,u.importFixId,Ir.Diagnostics.Add_all_missing_imports)}function g(e,t,n,r,i){if(r&&(Ir.Debug.assert(!n.name),e.insertNodeAt(t,n.getStart(t),Ir.createIdentifier(r),{suffix:", "})),i.length){var a,o=i.map(function(e){return Ir.createImportSpecifier(undefined,Ir.createIdentifier(e))});if(n.namedBindings&&Ir.cast(n.namedBindings,Ir.isNamedImports).elements.length)for(var s=0,c=o;s<c.length;s++){var u=c[s];e.insertNodeInListAfter(t,Ir.last(Ir.cast(n.namedBindings,Ir.isNamedImports).elements),u)}else o.length&&(a=Ir.createNamedImports(o),n.namedBindings?e.replaceNode(t,n.namedBindings,a):e.insertNodeAfter(t,Ir.Debug.assertDefined(n.name),a))}}function m(e,t,n){var r=n.namespacePrefix,i=n.position;e.insertText(t,i,r+".")}function y(e,t,n,r){var i=n.moduleSpecifier,a=n.position;e.insertText(t,a,l(i,r))}function l(e,t){var n=Ir.getQuoteFromPreference(t);return"import("+n+e+n+")."}function b(e,t,n,r,i){var a=i.defaultImport,o=i.namedImports,s=i.namespaceLikeImport,c=Ir.makeStringLiteral(n,r);a===undefined&&!o.length||Ir.insertImport(e,t,Ir.makeImport(a===undefined?undefined:Ir.createIdentifier(a),o.map(function(e){return Ir.createImportSpecifier(undefined,Ir.createIdentifier(e))}),n,r)),s&&Ir.insertImport(e,t,3===s.importKind?Ir.createImportEqualsDeclaration(undefined,undefined,Ir.createIdentifier(s.name),Ir.createExternalModuleReference(c)):Ir.createImportDeclaration(undefined,undefined,Ir.createImportClause(undefined,Ir.createNamespaceImport(Ir.createIdentifier(s.name))),c))}function _(e,t){var n=e.declarations;return Ir.some(n,function(e){return!!(Ir.getMeaningFromDeclaration(e)&t)})}function v(e,a,t,o){k(e,t,function(e,t){var n,r,i;(t===undefined||t!==a&&(n=a.fileName,r=t.fileName,(i=Ir.forEachAncestorDirectory(r,function(e){return"node_modules"===Ir.getBaseFileName(e)?e:undefined}))===undefined||Ir.startsWith(n,Ir.getDirectoryPath(i))))&&o(e)})}function k(e,t,n){for(var r=0,i=e.getAmbientModules();r<i.length;r++){n(i[r],undefined)}for(var a=0,o=t;a<o.length;a++){var s=o[a];Ir.isExternalOrCommonJsModule(s)&&n(e.getMergedSymbol(s.symbol),s)}}function d(e,t){return r(Ir.removeFileExtension(Ir.stripQuotes(e.name)),t)}function r(e,t){var n=Ir.getBaseFileName(Ir.removeSuffix(e,"/index")),r="",i=!0,a=n.charCodeAt(0);Ir.isIdentifierStart(a,t)?r+=String.fromCharCode(a):i=!1;for(var o=1;o<n.length;o++){var s,c=n.charCodeAt(o),u=Ir.isIdentifierPart(c,t);u&&(s=String.fromCharCode(c),i||(s=s.toUpperCase()),r+=s),i=u}return Ir.isStringANonContextualKeyword(r)?"_"+r:r||"_"}u.registerCodeFix({errorCodes:n,getCodeActions:function(t){var e=t.errorCode,n=t.preferences,r=t.sourceFile,i=t.span,a=h(t,e,i.start);if(!a)return undefined;var o=a.fixes,s=a.symbolName,c=Ir.getQuotePreference(r,n);return o.map(function(e){return D(t,r,s,e,c)})},fixIds:[u.importFixId],getAllCodeActions:function(l){var s=l.sourceFile,c=l.preferences,d=[],p=[],f=Ir.createMap(),_=Ir.createMap();return u.eachDiagnostic(l,n,function(e){var t=h(l,e.code,e.start);if(t&&t.fixes.length){var n=t.fixes,r=t.symbolName,i=Ir.first(n);switch(i.kind){case 0:d.push(i);break;case 1:p.push(i);break;case 2:var a=i.importClause,o=i.importKind,s=String(Ir.getNodeId(a));(c=f.get(s))||f.set(s,c={importClause:a,defaultImport:undefined,namedImports:[]}),0===o?Ir.pushIfUnique(c.namedImports,r):(Ir.Debug.assert(c.defaultImport===undefined||c.defaultImport===r),c.defaultImport=r);break;case 3:var c,u=i.moduleSpecifier,o=i.importKind;switch((c=_.get(u))||_.set(u,c={defaultImport:undefined,namedImports:[],namespaceLikeImport:undefined}),o){case 1:Ir.Debug.assert(c.defaultImport===undefined||c.defaultImport===r),c.defaultImport=r;break;case 0:Ir.pushIfUnique(c.namedImports,r);break;case 3:case 2:Ir.Debug.assert(c.namespaceLikeImport===undefined||c.namespaceLikeImport.name===r),c.namespaceLikeImport={importKind:o,name:r}}break;default:Ir.Debug.assertNever(i)}}}),u.createCombinedCodeActions(Ir.textChanges.ChangeTracker["with"](l,function(i){for(var n=Ir.getQuotePreference(s,c),e=0,t=d;e<t.length;e++){var r=t[e];m(i,s,r)}for(var a=0,o=p;a<o.length;a++){r=o[a];y(i,s,r,n)}f.forEach(function(e){var t=e.importClause,n=e.defaultImport,r=e.namedImports;g(i,s,t,n,r)}),_.forEach(function(e,t){b(i,s,t,n,e)})}))}}),(e={})[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew",(t={})[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.Equals=3]="Equals",u.getImportCompletionAction=function(e,t,n,r,i,a,o,s,c){var u,l,d,p,f,_,h,g,m=(u=e,l=t,d=r,p=n,f=a.getCompilerOptions(),_=a.getTypeChecker(),h=a.getSourceFiles(),g=[],k(_,h,function(e,t){if(!t||e===l||!Ir.startsWith(p.fileName,Ir.getDirectoryPath(t.fileName))){var n=N(e,_,f);n&&n.name===d&&Ir.skipAlias(n.symbol,_)===u&&g.push({moduleSymbol:e,importKind:n.kind,exportedSymbolIsTypeOnly:C(n.symbol,_)});for(var r=0,i=_.getExportsOfModule(e);r<i.length;r++){var a=i[r];a.name===d&&Ir.skipAlias(a,_)===u&&g.push({moduleSymbol:e,importKind:0,exportedSymbolIsTypeOnly:C(a,_)})}}}),g);Ir.Debug.assert(m.some(function(e){return e.moduleSymbol===t}));var y,b,v,E,I=Ir.first(x(a,n,s,m,i,c)).moduleSpecifier,T=Ir.first(B(m,r,s,a,n,i,c));return{moduleSpecifier:I,codeAction:(y=D({host:i,formatContext:o},n,r,T,Ir.getQuotePreference(n,c)),b=y.description,v=y.changes,E=y.commands,{description:b,changes:v,commands:E})}},u.forEachExternalModuleToImportFrom=v,u.moduleSymbolToValidIdentifier=d,u.moduleSpecifierToValidIdentifier=r}((Ir=rg=rg||{}).codefix||(Ir.codefix={})),Tr=rg=rg||{},Cr=Tr.codefix||(Tr.codefix={}),Br="fixSpelling",xr=[Tr.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Tr.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,Tr.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Tr.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Tr.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code],Cr.registerCodeFix({errorCodes:xr,getCodeActions:function(e){var t=e.sourceFile,n=h_(t,e.span.start,e);if(!n)return undefined;var r=n.node,i=n.suggestion,a=e.host.getCompilationSettings().target,o=Tr.textChanges.ChangeTracker["with"](e,function(e){return g_(e,t,r,i,a)});return[Cr.createCodeFixAction("spelling",o,[Tr.Diagnostics.Change_spelling_to_0,i],Br,Tr.Diagnostics.Fix_all_detected_spelling_errors)]},fixIds:[Br],getAllCodeActions:function(i){return Cr.codeFixAll(i,xr,function(e,t){var n=h_(t.file,t.start,i),r=i.host.getCompilationSettings().target;n&&g_(e,i.sourceFile,n.node,n.suggestion,r)})}}),Sr=rg=rg||{},Nr=Sr.codefix||(Sr.codefix={}),kr="addMissingMember",Ar=[Sr.Diagnostics.Property_0_does_not_exist_on_type_1.code,Sr.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Sr.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,Sr.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,Sr.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],wr="addMissingMember",Nr.registerCodeFix({errorCodes:Ar,getCodeActions:function(t){var e=m_(t.sourceFile,t.span.start,t.program.getTypeChecker(),t.program);if(!e)return undefined;if(0===e.kind){var n=e.token,r=e.parentDeclaration,i=Sr.textChanges.ChangeTracker["with"](t,function(e){return T_(e,t.program.getTypeChecker(),n,r)});return[Nr.createCodeFixAction(kr,i,[Sr.Diagnostics.Add_missing_enum_member_0,n.text],wr,Sr.Diagnostics.Add_all_missing_members)]}var a,o,s,c,u,l,d,p,f,_,h,g,m,y,b,v,E,I,T,C,B,x,S=e.parentDeclaration,N=e.declSourceFile,D=e.inJs,k=e.makeStatic,A=e.token,w=e.call,V=w&&(o=N,s=S,c=A,u=w,l=k,d=D,p=(a=t).preferences,f=Sr.textChanges.ChangeTracker["with"](a,function(e){return I_(a,e,o,s,c,u,l,d,p)}),Nr.createCodeFixAction(kr,f,[l?Sr.Diagnostics.Declare_static_method_0:Sr.Diagnostics.Declare_method_0,c.text],wr,Sr.Diagnostics.Add_all_missing_members)),P=D&&!Sr.isInterfaceDeclaration(S)?Sr.singleElementArray((E=t,I=N,T=S,C=A.text,B=k,0===(x=Sr.textChanges.ChangeTracker["with"](E,function(e){return y_(e,I,T,C,B)})).length?undefined:Nr.createCodeFixAction(kr,x,[B?Sr.Diagnostics.Initialize_static_property_0:Sr.Diagnostics.Initialize_property_0_in_the_constructor,C],wr,Sr.Diagnostics.Add_all_missing_members))):(h=N,g=S,m=A,y=k,b=v_((_=t).program.getTypeChecker(),g,m),v=function(e,t,n,r,i,a){var o=Sr.textChanges.ChangeTracker["with"](e,function(e){return E_(e,t,n,i,a,r)});return Nr.createCodeFixAction(kr,o,[r?Sr.Diagnostics.Declare_static_property_0:Sr.Diagnostics.Declare_property_0,i],wr,Sr.Diagnostics.Add_all_missing_members)}(_,h,g,y,m.text,b),y?[v]:[v,function(e,t,n,r,i){var a=Sr.createKeywordTypeNode(139),o=Sr.createParameter(undefined,undefined,undefined,"x",undefined,a,undefined),s=Sr.createIndexSignature(undefined,undefined,[o],i),c=Sr.textChanges.ChangeTracker["with"](e,function(e){return e.insertNodeAtClassStart(t,n,s)});return Nr.createCodeFixActionNoFixId(kr,c,[Sr.Diagnostics.Add_index_signature_for_property_0,r])}(_,h,g,m.text,b)]);return Sr.concatenate(Sr.singleElementArray(V),P)},fixIds:[wr],getAllCodeActions:function(d){var p=d.program,f=d.preferences,o=p.getTypeChecker(),s=Sr.createMap(),_=new Sr.NodeMap;return Nr.createCombinedCodeActions(Sr.textChanges.ChangeTracker["with"](d,function(l){Nr.eachDiagnostic(d,Ar,function(e){var t,n,r,i,a=m_(e.file,e.start,o,d.program);a&&Sr.addToSeen(s,Sr.getNodeId(a.parentDeclaration)+"#"+a.token.text)&&(0===a.kind?(t=a.token,n=a.parentDeclaration,T_(l,o,t,n)):(n=a.parentDeclaration,r=a.token,(i=_.getOrUpdate(n,function(){return[]})).some(function(e){return e.token.text===r.text})||i.push(a)))}),_.forEach(function(e,t){for(var c=function(e,t){var n=[];for(;e;){var r=Sr.getClassExtendsHeritageElement(e),i=r&&t.getSymbolAtLocation(r.expression),a=i&&Sr.find(i.declarations,Sr.isClassLike);a&&n.push(a),e=a}return n}(t,o),u=function u(n){if(c.some(function(e){var t=_.get(e);return!!t&&t.some(function(e){return e.token.text===n.token.text})}))return"continue";var e,t=n.parentDeclaration,r=n.declSourceFile,i=n.inJs,a=n.makeStatic,o=n.token,s=n.call;s?I_(d,l,r,t,o,s,a,i,f):i&&!Sr.isInterfaceDeclaration(t)?y_(l,r,t,o.text,a):(e=v_(p.getTypeChecker(),t,o),E_(l,r,t,o.text,e,a))},n=0,r=e;n<r.length;n++){u(r[n])}})}))}}),(Dr={})[Dr.Enum=0]="Enum",Dr[Dr.ClassOrInterface=1]="ClassOrInterface",Vr=rg=rg||{},Pr=Vr.codefix||(Vr.codefix={}),Lr="addMissingNewOperator",Mr=[Vr.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],Pr.registerCodeFix({errorCodes:Mr,getCodeActions:function(e){var t=e.sourceFile,n=e.span,r=Vr.textChanges.ChangeTracker["with"](e,function(e){return C_(e,t,n)});return[Pr.createCodeFixAction(Lr,r,Vr.Diagnostics.Add_missing_new_operator_to_call,Lr,Vr.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[Lr],getAllCodeActions:function(n){return Pr.codeFixAll(n,Mr,function(e,t){return C_(e,n.sourceFile,t)})}}),Fr=rg=rg||{},Or=Fr.codefix||(Fr.codefix={}),Rr="installTypesPackage",Hr=Fr.Diagnostics.Cannot_find_module_0.code,jr=[Hr,Fr.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Or.registerCodeFix({errorCodes:jr,getCodeActions:function(e){var t=e.host,n=e.sourceFile,r=x_(n,e.span.start);if(r===undefined)return undefined;var i=S_(r,t,e.errorCode);return i===undefined?[]:[Or.createCodeFixAction("fixCannotFindModule",[],[Fr.Diagnostics.Install_0,i],Rr,Fr.Diagnostics.Install_all_missing_types_packages,B_(n.fileName,i))]},fixIds:[Rr],getAllCodeActions:function(a){return Or.codeFixAll(a,jr,function(e,t,n){var r=x_(t.file,t.start);if(r===undefined)return undefined;switch(a.fixId){case Rr:var i=S_(r,a.host,t.code);i&&n.push(B_(t.file.fileName,i));break;default:Fr.Debug.fail("Bad fixId: "+a.fixId)}})}}),Wr=rg=rg||{},Gr=Wr.codefix||(Wr.codefix={}),Yr=[Wr.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,Wr.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],Jr="fixClassDoesntImplementInheritedAbstractMember",Gr.registerCodeFix({errorCodes:Yr,getCodeActions:function(t){var n=t.sourceFile,r=t.span,e=Wr.textChanges.ChangeTracker["with"](t,function(e){return D_(N_(n,r.start),n,t,e,t.preferences)});return 0===e.length?undefined:[Gr.createCodeFixAction(Jr,e,Wr.Diagnostics.Implement_inherited_abstract_class,Jr,Wr.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[Jr],getAllCodeActions:function(r){var i=Wr.createMap();return Gr.codeFixAll(r,Yr,function(e,t){var n=N_(t.file,t.start);Wr.addToSeen(i,Wr.getNodeId(n))&&D_(n,r.sourceFile,r,e,r.preferences)})}}),zr=rg=rg||{},Ur=zr.codefix||(zr.codefix={}),Kr="classSuperMustPrecedeThisAccess",Zr=[zr.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ur.registerCodeFix({errorCodes:Zr,getCodeActions:function(e){var t=e.sourceFile,n=e.span,r=w_(t,n.start);if(!r)return undefined;var i=r.constructor,a=r.superCall,o=zr.textChanges.ChangeTracker["with"](e,function(e){return A_(e,t,i,a)});return[Ur.createCodeFixAction(Kr,o,zr.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,Kr,zr.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Kr],getAllCodeActions:function(e){var a=e.sourceFile,o=zr.createMap();return Ur.codeFixAll(e,Zr,function(e,t){var n,r,i=w_(t.file,t.start);i&&(n=i.constructor,r=i.superCall,zr.addToSeen(o,zr.getNodeId(n.parent))&&A_(e,a,n,r))})}}),Xr=rg=rg||{},qr=Xr.codefix||(Xr.codefix={}),Qr="constructorForDerivedNeedSuperCall",$r=[Xr.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code],qr.registerCodeFix({errorCodes:$r,getCodeActions:function(e){var t=e.sourceFile,n=e.span,r=P_(t,n.start),i=Xr.textChanges.ChangeTracker["with"](e,function(e){return L_(e,t,r)});return[qr.createCodeFixAction(Qr,i,Xr.Diagnostics.Add_missing_super_call,Qr,Xr.Diagnostics.Add_all_missing_super_calls)]},fixIds:[Qr],getAllCodeActions:function(n){return qr.codeFixAll(n,$r,function(e,t){return L_(e,n.sourceFile,P_(t.file,t.start))})}}),ei=rg=rg||{},ti=ei.codefix||(ei.codefix={}),ni="enableExperimentalDecorators",ri=[ei.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code],ti.registerCodeFix({errorCodes:ri,getCodeActions:function(e){var t=e.program.getCompilerOptions().configFile;if(t===undefined)return undefined;var n=ei.textChanges.ChangeTracker["with"](e,function(e){return M_(e,t)});return[ti.createCodeFixActionNoFixId(ni,n,ei.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]},fixIds:[ni],getAllCodeActions:function(n){return ti.codeFixAll(n,ri,function(e){var t=n.program.getCompilerOptions().configFile;if(t===undefined)return undefined;M_(e,t)})}}),ii=rg=rg||{},ai=ii.codefix||(ii.codefix={}),oi="extendsInterfaceBecomesImplements",si=[ii.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code],ai.registerCodeFix({errorCodes:si,getCodeActions:function(e){var t=e.sourceFile,n=F_(t,e.span.start);if(!n)return undefined;var r=n.extendsToken,i=n.heritageClauses,a=ii.textChanges.ChangeTracker["with"](e,function(e){return O_(e,t,r,i)});return[ai.createCodeFixAction(oi,a,ii.Diagnostics.Change_extends_to_implements,oi,ii.Diagnostics.Change_all_extended_interfaces_to_implements)]},fixIds:[oi],getAllCodeActions:function(e){return ai.codeFixAll(e,si,function(e,t){var n=F_(t.file,t.start);n&&O_(e,t.file,n.extendsToken,n.heritageClauses)})}}),ci=rg=rg||{},ui=ci.codefix||(ci.codefix={}),li="forgottenThisPropertyAccess",di=ci.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,pi=[ci.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,di],ui.registerCodeFix({errorCodes:pi,getCodeActions:function(e){var t=e.sourceFile,n=R_(t,e.span.start,e.errorCode);if(!n)return undefined;var r=ci.textChanges.ChangeTracker["with"](e,function(e){return H_(e,t,n)});return[ui.createCodeFixAction(li,r,[ci.Diagnostics.Add_0_to_unresolved_variable,n.className||"this"],li,ci.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[li],getAllCodeActions:function(r){return ui.codeFixAll(r,pi,function(e,t){var n=R_(t.file,t.start,t.code);n&&H_(e,r.sourceFile,n)})}}),fi=rg=rg||{},_i=fi.codefix||(fi.codefix={}),hi="unusedIdentifier",gi="unusedIdentifier_prefix",mi="unusedIdentifier_delete",yi="unusedIdentifier_infer",bi=[fi.Diagnostics._0_is_declared_but_its_value_is_never_read.code,fi.Diagnostics._0_is_declared_but_never_used.code,fi.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,fi.Diagnostics.All_imports_in_import_declaration_are_unused.code,fi.Diagnostics.All_destructured_elements_are_unused.code,fi.Diagnostics.All_variables_are_unused.code,fi.Diagnostics.All_type_parameters_are_unused.code],_i.registerCodeFix({errorCodes:bi,getCodeActions:function(e){var t=e.errorCode,n=e.sourceFile,r=e.program,i=r.getTypeChecker(),a=r.getSourceFiles(),o=fi.getTokenAtPosition(n,e.span.start);if(fi.isJSDocTemplateTag(o))return[W_(fi.textChanges.ChangeTracker["with"](e,function(e){return e["delete"](n,o)}),fi.Diagnostics.Remove_template_tag)];if(28===o.kind)return[W_(l=fi.textChanges.ChangeTracker["with"](e,function(e){return G_(e,n,o)}),fi.Diagnostics.Remove_type_parameters)];var s=Y_(o);if(s)return[W_(l=fi.textChanges.ChangeTracker["with"](e,function(e){return e["delete"](n,s)}),[fi.Diagnostics.Remove_import_from_0,fi.showModuleSpecifier(s)])];var c=fi.textChanges.ChangeTracker["with"](e,function(e){return J_(o,e,n,i,a,!1)});if(c.length)return[W_(c,fi.Diagnostics.Remove_destructuring)];var u=fi.textChanges.ChangeTracker["with"](e,function(e){return z_(n,o,e)});if(u.length)return[W_(u,fi.Diagnostics.Remove_variable_statement)];var l,d,p,f=[];128===o.kind?(l=fi.textChanges.ChangeTracker["with"](e,function(e){return j_(e,n,o)}),p=fi.cast(o.parent,fi.isInferTypeNode).typeParameter.name.text,f.push(_i.createCodeFixAction(hi,l,[fi.Diagnostics.Replace_infer_0_with_unknown,p],yi,fi.Diagnostics.Replace_all_unused_infer_with_unknown))):(d=fi.textChanges.ChangeTracker["with"](e,function(e){return K_(n,o,e,i,a,!1)})).length&&(p=fi.isComputedPropertyName(o.parent)?o.parent:o,f.push(W_(d,[fi.Diagnostics.Remove_declaration_for_Colon_0,p.getText(n)])));var _=fi.textChanges.ChangeTracker["with"](e,function(e){return U_(e,t,n,o)});return _.length&&f.push(_i.createCodeFixAction(hi,_,[fi.Diagnostics.Prefix_0_with_an_underscore,o.getText(n)],gi,fi.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),f},fixIds:[gi,mi,yi],getAllCodeActions:function(i){var a=i.sourceFile,e=i.program,o=e.getTypeChecker(),s=e.getSourceFiles();return _i.codeFixAll(i,bi,function(e,t){var n=fi.getTokenAtPosition(a,t.start);switch(i.fixId){case gi:U_(e,t.code,a,n);break;case mi:if(128===n.kind)break;var r=Y_(n);r?e["delete"](a,r):fi.isJSDocTemplateTag(n)?e["delete"](a,n):28===n.kind?G_(e,a,n):J_(n,e,a,o,s,!0)||z_(a,n,e)||K_(a,n,e,o,s,!0);break;case yi:128===n.kind&&j_(e,a,n);break;default:fi.Debug.fail(JSON.stringify(i.fixId))}})}}),vi=rg=rg||{},Ei=vi.codefix||(vi.codefix={}),Ii="fixUnreachableCode",Ti=[vi.Diagnostics.Unreachable_code_detected.code],Ei.registerCodeFix({errorCodes:Ti,getCodeActions:function(t){var e=vi.textChanges.ChangeTracker["with"](t,function(e){return X_(e,t.sourceFile,t.span.start,t.span.length)});return[Ei.createCodeFixAction(Ii,e,vi.Diagnostics.Remove_unreachable_code,Ii,vi.Diagnostics.Remove_all_unreachable_code)]},fixIds:[Ii],getAllCodeActions:function(e){return Ei.codeFixAll(e,Ti,function(e,t){return X_(e,t.file,t.start,t.length)})}}),Ci=rg=rg||{},Bi=Ci.codefix||(Ci.codefix={}),xi="fixUnusedLabel",Si=[Ci.Diagnostics.Unused_label.code],Bi.registerCodeFix({errorCodes:Si,getCodeActions:function(t){var e=Ci.textChanges.ChangeTracker["with"](t,function(e){return q_(e,t.sourceFile,t.span.start)});return[Bi.createCodeFixAction(xi,e,Ci.Diagnostics.Remove_unused_label,xi,Ci.Diagnostics.Remove_all_unused_labels)]},fixIds:[xi],getAllCodeActions:function(e){return Bi.codeFixAll(e,Si,function(e,t){return q_(e,t.file,t.start)})}}),Ni=rg=rg||{},Di=Ni.codefix||(Ni.codefix={}),ki="fixJSDocTypes_plain",Ai="fixJSDocTypes_nullable",wi=[Ni.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code],Di.registerCodeFix({errorCodes:wi,getCodeActions:function(i){var a=i.sourceFile,o=i.program.getTypeChecker(),e=$_(a,i.span.start,o);if(!e)return undefined;var s=e.typeNode,t=e.type,c=s.getText(a),n=[r(t,ki,Ni.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 292===s.kind&&n.push(r(o.getNullableType(t,32768),Ai,Ni.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),n;function r(t,e,n){var r=Ni.textChanges.ChangeTracker["with"](i,function(e){return Q_(e,a,s,t,o)});return Di.createCodeFixAction("jdocTypes",r,[Ni.Diagnostics.Change_0_to_1,c,o.typeToString(t)],e,n)}},fixIds:[ki,Ai],getAllCodeActions:function(e){var o=e.fixId,t=e.program,s=e.sourceFile,c=t.getTypeChecker();return Di.codeFixAll(e,wi,function(e,t){var n,r,i,a=$_(t.file,t.start,c);a&&(n=a.typeNode,r=a.type,i=292===n.kind&&o===Ai?c.getNullableType(r,32768):r,Q_(e,s,n,i,c))})}}),Vi=rg=rg||{},Pi=Vi.codefix||(Vi.codefix={}),Li="fixAwaitInSyncFunction",Mi=[Vi.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,Vi.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code],Pi.registerCodeFix({errorCodes:Mi,getCodeActions:function(e){var t=e.sourceFile,n=e.span,r=th(t,n.start);if(!r)return undefined;var i=Vi.textChanges.ChangeTracker["with"](e,function(e){return nh(e,t,r)});return[Pi.createCodeFixAction(Li,i,Vi.Diagnostics.Add_async_modifier_to_containing_function,Li,Vi.Diagnostics.Add_all_missing_async_modifiers)]},fixIds:[Li],getAllCodeActions:function(r){return Pi.codeFixAll(r,Mi,function(e,t){var n=th(t.file,t.start);n&&nh(e,r.sourceFile,n)})}}),Fi=rg=rg||{},Oi=Fi.codefix||(Fi.codefix={}),Hi=Ri="disableJsDiagnostics",ji=Fi.mapDefined(Object.keys(Fi.Diagnostics),function(e){var t=Fi.Diagnostics[e];return t.category===Fi.DiagnosticCategory.Error?t.code:undefined}),Oi.registerCodeFix({errorCodes:ji,getCodeActions:function(e){var t=e.sourceFile,n=e.program,r=e.span,i=e.host,a=e.formatContext;if(!Fi.isInJSFile(t)||!Fi.isCheckJsEnabledForFile(t,n.getCompilerOptions()))return undefined;var o=[Oi.createCodeFixActionNoFixId(Ri,[Oi.createFileTextChanges(t.fileName,[Fi.createTextChange(t.checkJsDirective?Fi.createTextSpanFromBounds(t.checkJsDirective.pos,t.checkJsDirective.end):Fi.createTextSpan(0,0),"// @ts-nocheck"+Fi.getNewLineOrDefaultFromHost(i,a.options))])],Fi.Diagnostics.Disable_checking_for_this_file)];return Fi.textChanges.isValidLocationToAddComment(t,r.start)&&o.unshift(Oi.createCodeFixAction(Ri,Fi.textChanges.ChangeTracker["with"](e,function(e){return rh(e,t,r.start)}),Fi.Diagnostics.Ignore_this_error_message,Hi,Fi.Diagnostics.Add_ts_ignore_to_all_error_messages)),o},fixIds:[Hi],getAllCodeActions:function(e){var n=Fi.createMap();return Oi.codeFixAll(e,ji,function(e,t){Fi.textChanges.isValidLocationToAddComment(t.file,t.start)&&rh(e,t.file,t.start,n)})}}),Wi=rg=rg||{},(Gi=Wi.codefix||(Wi.codefix={})).createMissingMemberNodes=function(e,t,n,r,i){for(var a=e.symbol.members,o=0,s=t;o<s.length;o++){var c=s[o];a.has(c.escapedName)||function(e,f,_,t,h){var n=e.getDeclarations();if(!n||!n.length)return undefined;var r=_.program.getTypeChecker(),i=n[0],a=Wi.getSynthesizedDeepClone(Wi.getNameOfDeclaration(i),!1),o=function(e){{if(4&e)return Wi.createToken(116);if(16&e)return Wi.createToken(115)}return undefined}(Wi.getModifierFlags(i)),s=o?Wi.createNodeArray([o]):undefined,c=r.getWidenedType(r.getTypeOfSymbolAtLocation(e,f)),g=!!(16777216&e.flags);switch(i.kind){case 159:case 160:case 154:case 155:var u=r.typeToTypeNode(c,f,undefined,ih(_));h(Wi.createProperty(undefined,s,a,g?Wi.createToken(56):undefined,u,undefined));break;case 156:case 157:var l=r.getSignaturesOfType(c,0);if(!Wi.some(l))break;if(1===n.length){Wi.Debug.assert(1===l.length),m(l[0],s,a,oh(t));break}for(var d=0,p=l;d<p.length;d++){m(p[d],Wi.getSynthesizedDeepClones(s,!1),Wi.getSynthesizedDeepClone(a,!1))}n.length>l.length?m(r.getSignatureFromDeclaration(n[n.length-1]),s,a,oh(t)):(Wi.Debug.assert(n.length===l.length),h(function(e,t,n,r,i){for(var a=e[0],o=e[0].minArgumentCount,s=!1,c=0,u=e;c<u.length;c++){var l=u[c];o=Math.min(l.minArgumentCount,o),l.hasRestParameter&&(s=!0),l.parameters.length>=a.parameters.length&&(!l.hasRestParameter||a.hasRestParameter)&&(a=l)}var d=a.parameters.length-(a.hasRestParameter?1:0),p=a.parameters.map(function(e){return e.name}),f=ah(d,p,undefined,o,!1);{var _,h;s&&(_=Wi.createArrayTypeNode(Wi.createKeywordTypeNode(121)),h=Wi.createParameter(undefined,undefined,Wi.createToken(25),p[d]||"rest",o<=d?Wi.createToken(56):undefined,_,undefined),f.push(h))}return function(e,t,n,r,i,a,o){return Wi.createMethod(undefined,e,undefined,t,n?Wi.createToken(56):undefined,r,i,a,oh(o))}(r,t,n,undefined,f,undefined,i)}(l,a,g,s,t)))}function m(e,t,n,r){var i,a,o,s,c,u,l,d,p=(a=e,o=f,s=t,c=n,u=g,l=r,(d=(i=_).program.getTypeChecker().signatureToSignatureDeclaration(a,157,o,257,ih(i)))?(d.decorators=undefined,d.modifiers=s,d.name=c,d.questionToken=u?Wi.createToken(56):undefined,d.body=l,d):undefined);p&&h(p)}}(c,e,n,r,i)}},Gi.getNoopSymbolTrackerWithResolver=ih,Gi.createMethodFromCallExpression=function(e,t,n,r,i,a,o){var s=!Wi.isInterfaceDeclaration(o),c=t.typeArguments,u=t.arguments,l=t.parent,d=e.program.getTypeChecker(),p=ih(e),f=Wi.map(u,function(e){return d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(e)),o,undefined,p)}),_=Wi.map(u,function(e){return Wi.isIdentifier(e)?e.text:Wi.isPropertyAccessExpression(e)?e.name.text:undefined}),h=d.getContextualType(t),g=r||!h?undefined:d.typeToTypeNode(h,o,undefined,p);return Wi.createMethod(undefined,i?[Wi.createToken(117)]:undefined,Wi.isYieldExpression(l)?Wi.createToken(40):undefined,n,undefined,r?undefined:Wi.map(c,function(e,t){return Wi.createTypeParameterDeclaration(84+c.length-1<=90?String.fromCharCode(84+t):"T"+t)}),ah(u.length,_,f,undefined,r),g,s?oh(a):undefined)},Gi.setJsonCompilerOptionValue=function(e,t,n,r){var i=Wi.getTsConfigObjectLiteralExpression(t);if(!i)return undefined;var a,o,s=ch(i,"compilerOptions");s!==undefined?(a=s.initializer,Wi.isObjectLiteralExpression(a)&&((o=ch(a,n))===undefined?e.insertNodeAtObjectStart(t,a,sh(n,r)):e.replaceNode(t,o.initializer,r))):e.insertNodeAtObjectStart(t,i,sh("compilerOptions",Wi.createObjectLiteral([sh(n,r)])))},Gi.createJsonPropertyAssignment=sh,Gi.findJsonProperty=ch,Yi=rg=rg||{},Ji=Yi.codefix||(Yi.codefix={}),zi="invalidImportSyntax",Ji.registerCodeFix({errorCodes:[Yi.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,Yi.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:function(t){var e=t.sourceFile,n=Yi.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===t.errorCode?192:193,r=Yi.findAncestor(Yi.getTokenAtPosition(e,t.span.start),function(e){return e.kind===n&&e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});if(!r)return[];var i=r.expression;return lh(t,i)}}),Ji.registerCodeFix({errorCodes:[Yi.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Yi.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,Yi.Diagnostics.Type_0_is_not_assignable_to_type_1.code,Yi.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Yi.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,Yi.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,Yi.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,Yi.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,Yi.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,Yi.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,Yi.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,Yi.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var e=t.sourceFile,n=Yi.findAncestor(Yi.getTokenAtPosition(e,t.span.start),function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});return n?lh(t,n):[]}}),Ui=rg=rg||{},Ki=Ui.codefix||(Ui.codefix={}),Zi="strictClassInitialization",Xi="addMissingPropertyDefiniteAssignmentAssertions",qi="addMissingPropertyUndefinedType",Qi="addMissingPropertyInitializer",$i=[Ui.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ki.registerCodeFix({errorCodes:$i,getCodeActions:function(e){var t=dh(e.sourceFile,e.span.start);if(t){var n,r,i,a,o,s,c=[(a=e,o=t,s=Ui.textChanges.ChangeTracker["with"](a,function(e){return fh(e,a.sourceFile,o)}),Ki.createCodeFixAction(Zi,s,[Ui.Diagnostics.Add_undefined_type_to_property_0,o.name.getText()],qi,Ui.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)),(n=e,r=t,i=Ui.textChanges.ChangeTracker["with"](n,function(e){return ph(e,n.sourceFile,r)}),Ki.createCodeFixAction(Zi,i,[Ui.Diagnostics.Add_definite_assignment_assertion_to_property_0,r.getText()],Xi,Ui.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties))];return Ui.append(c,function(t,n){var r=hh(t.program.getTypeChecker(),n);if(!r)return undefined;var e=Ui.textChanges.ChangeTracker["with"](t,function(e){return _h(e,t.sourceFile,n,r)});return Ki.createCodeFixAction(Zi,e,[Ui.Diagnostics.Add_initializer_to_property_0,n.name.getText()],Qi,Ui.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(e,t)),c}},fixIds:[Xi,qi,Qi],getAllCodeActions:function(i){return Ki.codeFixAll(i,$i,function(e,t){var n=dh(t.file,t.start);if(n)switch(i.fixId){case Xi:ph(e,t.file,n);break;case qi:fh(e,t.file,n);break;case Qi:var r=hh(i.program.getTypeChecker(),n);if(!r)return;_h(e,t.file,n,r);break;default:Ui.Debug.fail(JSON.stringify(i.fixId))}})}}),ea=rg=rg||{},ta=ea.codefix||(ea.codefix={}),na="requireInTs",ra=[ea.Diagnostics.require_call_may_be_converted_to_an_import.code],ta.registerCodeFix({errorCodes:ra,getCodeActions:function(t){var e=ea.textChanges.ChangeTracker["with"](t,function(e){return gh(e,t.sourceFile,t.span.start,t.program)});return[ta.createCodeFixAction(na,e,ea.Diagnostics.Convert_require_to_import,na,ea.Diagnostics.Convert_all_require_to_import)]},fixIds:[na],getAllCodeActions:function(n){return ta.codeFixAll(n,ra,function(e,t){return gh(e,t.file,t.start,n.program)})}}),ia=rg=rg||{},aa=ia.codefix||(ia.codefix={}),oa="useDefaultImport",sa=[ia.Diagnostics.Import_may_be_converted_to_a_default_import.code],aa.registerCodeFix({errorCodes:sa,getCodeActions:function(t){var n=t.sourceFile,e=t.span.start,r=mh(n,e);if(!r)return undefined;var i=ia.textChanges.ChangeTracker["with"](t,function(e){return yh(e,n,r,t.preferences)});return[aa.createCodeFixAction(oa,i,ia.Diagnostics.Convert_to_default_import,oa,ia.Diagnostics.Convert_all_to_default_imports)]},fixIds:[oa],getAllCodeActions:function(r){return aa.codeFixAll(r,sa,function(e,t){var n=mh(t.file,t.start);n&&yh(e,t.file,n,r.preferences)})}}),ca=rg=rg||{},ua=ca.codefix||(ca.codefix={}),la="fixAddModuleReferTypeMissingTypeof",da=[ca.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],ua.registerCodeFix({errorCodes:da,getCodeActions:function(e){var t=e.sourceFile,n=e.span,r=bh(t,n.start),i=ca.textChanges.ChangeTracker["with"](e,function(e){return vh(e,t,r)});return[ua.createCodeFixAction(la,i,ca.Diagnostics.Add_missing_typeof,la,ca.Diagnostics.Add_missing_typeof)]},fixIds:[la],getAllCodeActions:function(n){return ua.codeFixAll(n,da,function(e,t){return vh(e,n.sourceFile,bh(t.file,t.start))})}}),pa=rg=rg||{},fa=pa.codefix||(pa.codefix={}),_a="fixConvertToMappedObjectType",ha=[pa.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code],fa.registerCodeFix({errorCodes:ha,getCodeActions:function(e){var t=e.sourceFile,n=e.span,r=Eh(t,n.start);if(!r)return undefined;var i=pa.textChanges.ChangeTracker["with"](e,function(e){return Ih(e,t,r)}),a=pa.idText(r.container.name);return[fa.createCodeFixAction(_a,i,[pa.Diagnostics.Convert_0_to_mapped_object_type,a],_a,[pa.Diagnostics.Convert_0_to_mapped_object_type,a])]},fixIds:[_a],getAllCodeActions:function(e){return fa.codeFixAll(e,ha,function(e,t){var n=Eh(t.file,t.start);n&&Ih(e,t.file,n)})}}),ga=rg=rg||{},ma=ga.refactor||(ga.refactor={}),ya="Convert export",ba="Convert default export to named export",va="Convert named export to default export",ma.registerRefactor(ya,{getAvailableActions:function(e){var t=Th(e);if(!t)return ga.emptyArray;var n=t.wasDefault?ga.Diagnostics.Convert_default_export_to_named_export.message:ga.Diagnostics.Convert_named_export_to_default_export.message,r=t.wasDefault?ba:va;return[{name:ya,description:n,actions:[{name:r,description:n}]}]},getEditsForAction:function(o,e){return ga.Debug.assert(e===ba||e===va),{edits:ga.textChanges.ChangeTracker["with"](o,function(e){return t=o.file,n=o.program,r=ga.Debug.assertDefined(Th(o)),i=e,a=o.cancellationToken,function(e,t,n,r){var i=t.wasDefault,a=t.exportNode,o=t.exportName;if(i)n["delete"](e,ga.Debug.assertDefined(ga.findModifier(a,81)));else{var s=ga.Debug.assertDefined(ga.findModifier(a,86));switch(a.kind){case 240:case 241:case 242:n.insertNodeAfter(e,s,ga.createToken(81));break;case 220:if(!ga.FindAllReferences.Core.isSymbolReferencedInFile(o,r,e)){n.replaceNode(e,a,ga.createExportDefault(ga.Debug.assertDefined(ga.first(a.declarationList.declarations).initializer)));break}case 244:case 243:case 245:n.deleteModifier(e,s),n.insertNodeAfter(e,a,ga.createExportDefault(ga.createIdentifier(o.text)));break;default:ga.Debug.assertNever(a)}}}(t,r,i,n.getTypeChecker()),void function(e,t,n,r){var i=t.wasDefault,a=t.exportName,o=t.exportingModuleSymbol,s=e.getTypeChecker(),c=ga.Debug.assertDefined(s.getSymbolAtLocation(a));ga.FindAllReferences.Core.eachExportReference(e.getSourceFiles(),s,r,c,o,a.text,i,function(e){var t=e.getSourceFile();i?function(e,t,n,r){var i=t.parent;switch(i.kind){case 190:n.replaceNode(e,t,ga.createIdentifier(r));break;case 254:case 258:var a=i;n.replaceNode(e,a,Ch(r,a.name.text));break;case 251:var o=i;ga.Debug.assert(o.name===t);var s,c,a=Ch(r,t.text),u=o.namedBindings;u?252===u.kind?(n.deleteRange(e,{pos:t.getStart(e),end:u.getStart(e)}),s=ga.isStringLiteral(o.parent.moduleSpecifier)?ga.quotePreferenceFromString(o.parent.moduleSpecifier,e):1,c=ga.makeImport(undefined,[Ch(r,t.text)],o.parent.moduleSpecifier,s),n.insertNodeAfter(e,o.parent,c)):(n["delete"](e,t),n.insertNodeAtEndOfList(e,u.elements,a)):n.replaceNode(e,t,ga.createNamedImports([a]));break;default:ga.Debug.failBadSyntaxKind(i)}}(t,e,n,a.text):function(e,t,n){var r=t.parent;switch(r.kind){case 190:n.replaceNode(e,t,ga.createIdentifier("default"));break;case 254:var i=ga.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,i):(n["delete"](e,r),n.insertNodeBefore(e,r.parent,i));break;case 258:n.replaceNode(e,r,function(e,t){return ga.createExportSpecifier(e===t?undefined:ga.createIdentifier(e),ga.createIdentifier(t))}("default",r.name.text));break;default:ga.Debug.assertNever(r)}}(t,e,n)})}(n,r,i,a);var t,n,r,i,a}),renameFilename:undefined,renameLocation:undefined}}}),Ea=rg=rg||{},Ia=Ea.refactor||(Ea.refactor={}),Ta="Convert import",Ca="Convert namespace import to named imports",Ba="Convert named imports to namespace import",Ia.registerRefactor(Ta,{getAvailableActions:function(e){var t=Bh(e);if(!t)return Ea.emptyArray;var n=252===t.kind?Ea.Diagnostics.Convert_namespace_import_to_named_imports.message:Ea.Diagnostics.Convert_named_imports_to_namespace_import.message,r=252===t.kind?Ca:Ba;return[{name:Ta,description:n,actions:[{name:r,description:n}]}]},getEditsForAction:function(o,e){return Ea.Debug.assert(e===Ca||e===Ba),{edits:Ea.textChanges.ChangeTracker["with"](o,function(e){return t=o.file,n=o.program,r=e,i=Ea.Debug.assertDefined(Bh(o)),a=n.getTypeChecker(),void(252===i.kind?function(e,r,t,n,i){var a=!1,o=[],s=Ea.createMap();Ea.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,e,function(e){var t,n;Ea.isPropertyAccessExpression(e.parent)?(n=(t=Ea.cast(e.parent,Ea.isPropertyAccessExpression)).name.text,r.resolveName(n,e,67108863,!0)&&s.set(n,!0),Ea.Debug.assert(t.expression===e),o.push(t)):a=!0});for(var c=Ea.createMap(),u=0,l=o;u<l.length;u++){var d=l[u],p=d.name.text,f=c.get(p);f===undefined&&c.set(p,f=s.has(p)?Ea.getUniqueName(p,e):p),t.replaceNode(e,d,Ea.createIdentifier(f))}var _=[];c.forEach(function(e,t){_.push(Ea.createImportSpecifier(e===t?undefined:Ea.createIdentifier(t),Ea.createIdentifier(e)))});var h=n.parent.parent;a&&!i?t.insertNodeAfter(e,h,xh(h,undefined,_)):t.replaceNode(e,h,xh(h,a?Ea.createIdentifier(n.name.text):undefined,_))}(t,a,r,i,Ea.getAllowSyntheticDefaultImports(n.getCompilerOptions())):function(i,t,a,e){for(var n=e.parent.parent,r=n.moduleSpecifier,o=r&&Ea.isStringLiteral(r)?Ea.codefix.moduleSpecifierToValidIdentifier(r.text,8):"module",s=e.elements.some(function(e){return Ea.FindAllReferences.Core.eachSymbolReferenceInFile(e.name,t,i,function(e){return!!t.resolveName(o,e,67108863,!0)})||!1})?Ea.getUniqueName(o,i):o,c=[],u=function u(n){var r=(n.propertyName||n.name).text;Ea.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,t,i,function(e){var t=Ea.createPropertyAccess(Ea.createIdentifier(s),r);Ea.isShorthandPropertyAssignment(e.parent)?a.replaceNode(i,e.parent,Ea.createPropertyAssignment(e.text,t)):Ea.isExportSpecifier(e.parent)&&!e.parent.propertyName?c.some(function(e){return e.name===n.name})||c.push(Ea.createImportSpecifier(n.propertyName&&Ea.createIdentifier(n.propertyName.text),Ea.createIdentifier(n.name.text))):a.replaceNode(i,e,t)})},l=0,d=e.elements;l<d.length;l++){var p=d[l];u(p)}a.replaceNode(i,e,Ea.createNamespaceImport(Ea.createIdentifier(s))),c.length&&a.insertNodeAfter(i,e.parent.parent,xh(n,undefined,c))}(t,a,r,i));var t,n,r,i,a}),renameFilename:undefined,renameLocation:undefined}}}),xa=rg=rg||{},Sa=xa.refactor||(xa.refactor={}),Na=Sa.extractSymbol||(Sa.extractSymbol={}),La="Extract Symbol",Sa.registerRefactor(La,{getAvailableActions:Sh,getEditsForAction:Nh}),Na.getAvailableActions=Sh,Na.getEditsForAction=Nh,(ka=Da=Na.Messages||(Na.Messages={})).cannotExtractRange=Dh("Cannot extract range."),ka.cannotExtractImport=Dh("Cannot extract import statement."),ka.cannotExtractSuper=Dh("Cannot extract super call."),ka.cannotExtractEmpty=Dh("Cannot extract empty range."),ka.expressionExpected=Dh("expression expected."),ka.uselessConstantType=Dh("No reason to extract constant of type."),ka.statementOrExpressionExpected=Dh("Statement or expression expected."),ka.cannotExtractRangeContainingConditionalBreakOrContinueStatements=Dh("Cannot extract range containing conditional break or continue statements."),ka.cannotExtractRangeContainingConditionalReturnStatement=Dh("Cannot extract range containing conditional return statement."),ka.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=Dh("Cannot extract range containing labeled break or continue with target outside of the range."),ka.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=Dh("Cannot extract range containing writes to references located outside of the target range in generators."),ka.typeWillNotBeVisibleInTheNewScope=Dh("Type will not visible in the new scope."),ka.functionWillNotBeVisibleInTheNewScope=Dh("Function will not visible in the new scope."),ka.cannotExtractIdentifier=Dh("Select more than a single identifier."),ka.cannotExtractExportedEntity=Dh("Cannot extract exported declaration"),ka.cannotWriteInExpression=Dh("Cannot write back side-effects when extracting an expression"),ka.cannotExtractReadonlyPropertyInitializerOutsideConstructor=Dh("Cannot move initialization of read-only class property outside of the constructor"),ka.cannotExtractAmbientBlock=Dh("Cannot extract code from ambient contexts"),ka.cannotAccessVariablesFromNestedScopes=Dh("Cannot access variables from nested scopes"),ka.cannotExtractToOtherFunctionLike=Dh("Cannot extract method to a function-like scope that is not a function"),ka.cannotExtractToJSClass=Dh("Cannot extract constant to a class scope in JS"),ka.cannotExtractToExpressionArrowFunction=Dh("Cannot extract constant to an arrow function without a block"),(wa=Aa=Aa||{})[wa.None=0]="None",wa[wa.HasReturn=1]="HasReturn",wa[wa.IsGenerator=2]="IsGenerator",wa[wa.IsAsyncFunction=4]="IsAsyncFunction",wa[wa.UsesThis=8]="UsesThis",wa[wa.InStaticRegion=16]="InStaticRegion",Na.getRangeToExtract=kh,(Va={})[Va.Module=0]="Module",Va[Va.Global=1]="Global",(Pa={})[Pa.Read=1]="Read",Pa[Pa.Write=2]="Write",Ma=rg=rg||{},Fa=Ma.refactor||(Ma.refactor={}),Oa="Extract type",Ra="Extract to type alias",Ha="Extract to typedef",Fa.registerRefactor(Oa,{getAvailableActions:function(e){var t=Fh(e);return t?[{name:Oa,description:Ma.getLocaleSpecificMessage(Ma.Diagnostics.Extract_type),actions:[t.isJS?{name:Ha,description:Ma.getLocaleSpecificMessage(Ma.Diagnostics.Extract_to_typedef)}:{name:Ra,description:Ma.getLocaleSpecificMessage(Ma.Diagnostics.Extract_to_type_alias)}]}]:Ma.emptyArray},getEditsForAction:function(e,t){Ma.Debug.assert(t===Ra||t===Ha);var c=e.file,u=Ma.Debug.assertDefined(Fh(e));Ma.Debug.assert(t===Ra&&!u.isJS||t===Ha&&u.isJS);var l=Ma.getUniqueName("NewType",c),n=Ma.textChanges.ChangeTracker["with"](e,function(e){return u.isJS?function(e,t,n,r,i,a){var o=Ma.createNode(310);o.tagName=Ma.createIdentifier("typedef"),o.fullName=Ma.createIdentifier(n),o.name=o.fullName,o.typeExpression=Ma.createJSDocTypeExpression(i);var s=[];Ma.forEach(a,function(e){var t=Ma.getEffectiveConstraintOfTypeParameter(e),n=Ma.createNode(309);n.tagName=Ma.createIdentifier("template"),n.constraint=t&&Ma.cast(t,Ma.isJSDocTypeExpression);var r=Ma.createNode(151);r.name=e.name,n.typeParameters=Ma.createNodeArray([r]),s.push(n)}),e.insertNodeBefore(t,r,Ma.createJSDocComment(undefined,Ma.createNodeArray(Ma.concatenate(s,[o]))),!0),e.replaceNode(t,i,Ma.createTypeReferenceNode(n,a.map(function(e){return Ma.createTypeReferenceNode(e.name,undefined)})))}(e,c,l,u.firstStatement,u.selection,u.typeParameters):(t=e,n=c,r=l,i=u.firstStatement,a=u.selection,o=u.typeParameters,s=Ma.createTypeAliasDeclaration(undefined,undefined,r,o.map(function(e){return Ma.updateTypeParameterDeclaration(e,e.name,e.constraint,undefined)}),a),t.insertNodeBefore(n,i,s,!0),void t.replaceNode(n,a,Ma.createTypeReferenceNode(r,o.map(function(e){return Ma.createTypeReferenceNode(e.name,undefined)}))));var t,n,r,i,a,o,s}),r=c.fileName;return{edits:n,renameFilename:r,renameLocation:Ma.getRenameLocation(n,r,l,!1)}}}),ja=rg=rg||{},(Wa=ja.refactor||(ja.refactor={})).generateGetAccessorAndSetAccessor||(Wa.generateGetAccessorAndSetAccessor={}),Ga="Generate 'get' and 'set' accessors",Ya=ja.Diagnostics.Generate_get_and_set_accessors.message,Wa.registerRefactor(Ga,{getEditsForAction:function(e,t){var n=e.file,r=Yh(e);if(!r)return undefined;var i=ja.isSourceFileJS(n),a=ja.textChanges.ChangeTracker.fromContext(e),o=r.isStatic,s=r.isReadonly,c=r.fieldName,u=r.accessorName,l=r.originalName,d=r.type,p=r.container,f=r.declaration,_=r.renameAccessor;ja.suppressLeadingAndTrailingTrivia(c),ja.suppressLeadingAndTrailingTrivia(f),ja.suppressLeadingAndTrailingTrivia(p);var h=ja.isClassLike(p),g=-65&ja.getModifierFlags(f),m=h?!g||8&g?Gh(i,o,116):ja.createNodeArray(ja.createModifiersFromModifierFlags(g)):undefined,y=h?Gh(i,o,114):undefined;!function(e,t,n,r,i){ja.isPropertyDeclaration(n)?function(e,t,n,r,i){var a=ja.updateProperty(n,n.decorators,i,r,n.questionToken||n.exclamationToken,n.type,n.initializer);e.replaceNode(t,n,a)}(e,t,n,r,i):ja.isPropertyAssignment(n)?function(e,t,n,r){var i=ja.updatePropertyAssignment(n,r,n.initializer);e.replacePropertyAssignment(t,n,i)}(e,t,n,r):e.replaceNode(t,n,ja.updateParameter(n,n.decorators,i,n.dotDotDotToken,ja.cast(r,ja.isIdentifier),n.questionToken,n.type,n.initializer))}(a,n,f,c,y);var b=function(e,t,n,r,i,a){return ja.createGetAccessor(undefined,r,t,undefined,n,ja.createBlock([ja.createReturn(Wh(e,i,a))],!0))}(c,u,d,m,o,p);{var v,E;ja.suppressLeadingAndTrailingTrivia(b),Jh(a,n,b,f,p),s?(v=ja.getFirstConstructorWithBody(p))&&function(t,n,e,r,i){if(!e.body)return;e.body.forEachChild(function a(e){ja.isElementAccessExpression(e)&&101===e.expression.kind&&ja.isStringLiteral(e.argumentExpression)&&e.argumentExpression.text===i&&ja.isWriteAccess(e)&&t.replaceNode(n,e.argumentExpression,ja.createStringLiteral(r)),ja.isPropertyAccessExpression(e)&&101===e.expression.kind&&e.name.text===i&&ja.isWriteAccess(e)&&t.replaceNode(n,e.name,ja.createIdentifier(r)),ja.isFunctionLike(e)||ja.isClassLike(e)||e.forEachChild(a)})}(a,n,v,c.text,l):(E=function(e,t,n,r,i,a){return ja.createSetAccessor(undefined,r,t,[ja.createParameter(undefined,undefined,undefined,ja.createIdentifier("value"),undefined,n)],ja.createBlock([ja.createStatement(ja.createAssignment(Wh(e,i,a),ja.createIdentifier("value")))],!0))}(c,u,d,m,o,p),ja.suppressLeadingAndTrailingTrivia(E),Jh(a,n,E,f,p))}var I=a.getChanges(),T=n.fileName,C=_?u:c,B=(ja.isIdentifier(C)?0:-1)+ja.getRenameLocation(I,T,C.text,ja.isParameter(f));return{renameFilename:T,renameLocation:B,edits:I}},getAvailableActions:function(e){return Yh(e)?[{name:Ga,description:Ya,actions:[{name:Ga,description:Ya}]}]:ja.emptyArray}}),function(e){var n="Move to a new file";function r(e){var t=function(e){var t=e.file,n=Ja.createTextRangeFromSpan(Ja.getRefactorContextSpan(e)),r=t.statements,i=Ja.findIndex(r,function(e){return e.end>n.pos});if(-1===i)return undefined;var a=r[i];if(Ja.isNamedDeclaration(a)&&a.name&&Ja.rangeContainsRange(a.name,n))return{toMove:[r[i]],afterLast:r[i+1]};if(n.pos>a.getStart(t))return undefined;var o=Ja.findIndex(r,function(e){return e.end>n.end},i);return-1!==o&&(0===o||r[o].getStart(t)<n.end)?undefined:{toMove:r.slice(i,-1===o?r.length:o),afterLast:-1===o?undefined:r[o]}}(e);if(t===undefined)return undefined;var r=[],i=[],a=t.toMove,o=t.afterLast;return Ja.getRangesWhere(a,function(e){return!function(e){switch(e.kind){case 250:return!0;case 249:return!Ja.hasModifier(e,1);case 220:return e.declarationList.declarations.every(function(e){return!!e.initializer&&Ja.isRequireCall(e.initializer,!0)});default:return!1}}(e)},function(e,t){for(var n=e;n<t;n++)r.push(a[n]);i.push({first:a[e],afterLast:o})}),0===r.length?undefined:{all:r,ranges:i}}function h(e,t,n){for(var r=0,i=t;r<i.length;r++){var a=i[r],o=a.first,s=a.afterLast;n.deleteNodeRangeExcludingEnd(e,o,s)}}function g(e){return 250===e.kind?e.moduleSpecifier:249===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function m(e,t){if(Ja.isImportDeclaration(e))Ja.isStringLiteral(e.moduleSpecifier)&&t(e);else if(Ja.isImportEqualsDeclaration(e))Ja.isExternalModuleReference(e.moduleReference)&&Ja.isStringLiteralLike(e.moduleReference.expression)&&t(e);else if(Ja.isVariableStatement(e))for(var n=0,r=e.declarationList.declarations;n<r.length;n++){var i=r[n];i.initializer&&Ja.isRequireCall(i.initializer,!0)&&t(i)}}function y(e,t,n,r,i){if(n=Ja.ensurePathIsNonModuleName(n),r){var a=t.map(function(e){return Ja.createImportSpecifier(undefined,Ja.createIdentifier(e))});return Ja.makeImportIfNecessary(e,a,n,i)}Ja.Debug.assert(!e);var o=t.map(function(e){return Ja.createBindingElement(undefined,undefined,e)});return o.length?s(Ja.createObjectBindingPattern(o),undefined,b(Ja.createLiteral(n))):undefined}function s(e,t,n,r){return void 0===r&&(r=2),Ja.createVariableStatement(undefined,Ja.createVariableDeclarationList([Ja.createVariableDeclaration(e,t,n)],r))}function b(e){return Ja.createCall(Ja.createIdentifier("require"),undefined,[e])}function v(e,t,n,r){switch(t.kind){case 250:!function(e,t,n,r){if(!t.importClause)return;var i=t.importClause,a=i.name,o=i.namedBindings,s=!a||r(a),c=!o||(252===o.kind?r(o.name):0!==o.elements.length&&o.elements.every(function(e){return r(e.name)}));if(s&&c)n["delete"](e,t);else if(a&&s&&n["delete"](e,a),o)if(c)n["delete"](e,o);else if(253===o.kind)for(var u=0,l=o.elements;u<l.length;u++){var d=l[u];r(d.name)&&n["delete"](e,d)}}(e,t,n,r);break;case 249:r(t.name)&&n["delete"](e,t);break;case 238:!function(e,t,n,r){var i=t.name;switch(i.kind){case 73:r(i)&&n["delete"](e,i);break;case 186:break;case 185:if(i.elements.every(function(e){return Ja.isIdentifier(e.name)&&r(e.name)}))n["delete"](e,Ja.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(var a=0,o=i.elements;a<o.length;a++){var s=o[a];Ja.isIdentifier(s.name)&&r(s.name)&&n["delete"](e,s.name)}}}(e,t,n,r);break;default:Ja.Debug.assertNever(t)}}function E(e){switch(e.kind){case 249:case 254:case 251:return!0;case 238:return t(e);case 187:return Ja.isVariableDeclaration(e.parent.parent)&&t(e.parent.parent);default:return!1}}function t(e){return Ja.isSourceFile(e.parent.parent.parent)&&!!e.initializer&&Ja.isRequireCall(e.initializer,!0)}function I(e,t,n){switch(e.kind){case 250:var r=e.importClause;if(!r)return undefined;var i=r.name&&n(r.name)?r.name:undefined,a=r.namedBindings&&function(e,t){{if(252===e.kind)return t(e.name)?e:undefined;var n=e.elements.filter(function(e){return t(e.name)});return n.length?Ja.createNamedImports(n):undefined}}(r.namedBindings,n);return i||a?Ja.createImportDeclaration(undefined,undefined,Ja.createImportClause(i,a),t):undefined;case 249:return n(e.name)?e:undefined;case 238:var o=function(e,t){switch(e.kind){case 73:return t(e)?e:undefined;case 186:return e;case 185:var n=e.elements.filter(function(e){return e.propertyName||!Ja.isIdentifier(e.name)||t(e.name)});return n.length?Ja.createObjectBindingPattern(n):undefined}}(e.name,n);return o?s(o,e.type,b(t),e.parent.flags):undefined;default:return Ja.Debug.assertNever(e)}}function T(e,n,r){e.forEachChild(function i(e){var t;Ja.isIdentifier(e)&&!Ja.isDeclarationName(e)?(t=n.getSymbolAtLocation(e))&&r(t):e.forEachChild(i)})}e.registerRefactor(n,{getAvailableActions:function(e){if(!e.preferences.allowTextChangesInNewFiles||r(e)===undefined)return Ja.emptyArray;var t=Ja.getLocaleSpecificMessage(Ja.Diagnostics.Move_to_a_new_file);return[{name:n,description:t,actions:[{name:n,description:t}]}]},getEditsForAction:function(f,e){Ja.Debug.assert(e===n);var _=Ja.Debug.assertDefined(r(f));return{edits:Ja.textChanges.ChangeTracker["with"](f,function(e){return t=f.file,n=f.program,r=_,i=e,a=f.host,o=f.preferences,s=n.getTypeChecker(),c=function(a,e,r){var o=new C,s=new C,c=new C,t=function(e){if(e===undefined)return undefined;var t=r.getJsxNamespace(e),n=r.resolveName(t,e,1920,!0);return n&&Ja.some(n.declarations,E)?n:undefined}(Ja.find(e,function(e){return!!(2&e.transformFlags)}));t&&s.add(t);for(var n=0,i=e;n<i.length;n++){S(h=i[n],function(e){o.add(Ja.Debug.assertDefined(Ja.isExpressionStatement(e)?r.getSymbolAtLocation(e.expression.left):e.symbol))})}for(var u=0,l=e;u<l.length;u++){T(h=l[u],r,function(e){if(e.declarations)for(var t,n=0,r=e.declarations;n<r.length;n++){var i=r[n];E(i)?s.add(e):B(i)&&(t=i,(Ja.isVariableDeclaration(t)?t.parent.parent.parent:t.parent)===a)&&!o.has(e)&&c.add(e)}})}for(var d=s.clone(),p=new C,f=0,_=a.statements;f<_.length;f++){var h=_[f];Ja.contains(e,h)||(t&&2&h.transformFlags&&d["delete"](t),T(h,r,function(e){o.has(e)&&p.add(e),d["delete"](e)}))}return{movedSymbols:o,newFileImportsFromOldFile:c,oldFileImportsFromNewFile:p,oldImportsNeededByNewFile:s,unusedImportsFromOldFile:d}}(t,r.all,s),u=Ja.getDirectoryPath(t.fileName),l=Ja.extensionFromPath(t.fileName),d=function(e,t,n,r){for(var i=e,a=1;;a++){var o=Ja.combinePaths(n,i+t);if(!r.fileExists(o))return i;i=e+"."+a}}(function(e){return e.forEachEntry(Ja.symbolNameNoDefault)||"newFile"}(c.movedSymbols),l,u,a),p=d+l,i.createNewFile(t,Ja.combinePaths(u,p),function(e,t,n,r,i,a,o){var s=i.getTypeChecker();if(!e.externalModuleIndicator&&!e.commonJsModuleIndicator)return h(e,r.ranges,n),r.all;var c=!!e.externalModuleIndicator,u=Ja.getQuotePreference(e,o),l=function(e,t,n,r){var i,a=[];return e.forEach(function(e){"default"===e.escapedName?i=Ja.createIdentifier(Ja.symbolNameNoDefault(e)):a.push(e.name)}),y(i,a,t,n,r)}(t.oldFileImportsFromNewFile,a,c,u);l&&Ja.insertImport(n,e,l);return function(t,e,n,r,i){for(var a=0,o=t.statements;a<o.length;a++){var s=o[a];Ja.contains(e,s)||m(s,function(e){return v(t,e,n,function(e){return r.has(i.getSymbolAtLocation(e))}),0})}}(e,r.all,n,t.unusedImportsFromOldFile,s),h(e,r.ranges,n),function(s,e,c,u,l){for(var d=e.getTypeChecker(),r=function r(o){if(o===c)return"continue";for(var e=function e(a){m(a,function(e){var n,t,r,i;d.getSymbolAtLocation(g(e))===c.symbol&&(n=function n(e){var t=Ja.isBindingElement(e.parent)?Ja.getPropertySymbolFromBindingElement(d,e.parent):Ja.skipAlias(d.getSymbolAtLocation(e),d);return!!t&&u.has(t)},v(o,e,s,n),t=Ja.combinePaths(Ja.getDirectoryPath(g(e).text),l),(r=I(e,Ja.createLiteral(t),n))&&s.insertNodeAfter(o,a,r),(i=function(e){switch(e.kind){case 250:return e.importClause&&e.importClause.namedBindings&&252===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:undefined;case 249:return e.name;case 238:return Ja.tryCast(e.name,Ja.isIdentifier);default:return Ja.Debug.assertNever(e)}}(e))&&function(e,t,n,r,i,a,o,s){var c=Ja.codefix.moduleSpecifierToValidIdentifier(i,8),u=!1,l=[];if(Ja.FindAllReferences.Core.eachSymbolReferenceInFile(o,n,t,function(e){Ja.isPropertyAccessExpression(e.parent)&&(u=u||!!n.resolveName(c,e,67108863,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&l.push(e))}),l.length){for(var d=u?Ja.getUniqueName(c,t):c,p=0,f=l;p<f.length;p++){var _=f[p];e.replaceNode(t,_,Ja.createIdentifier(d))}e.insertNodeAfter(t,s,function(e,t,n){var r=Ja.createIdentifier(t),i=Ja.createLiteral(n);switch(e.kind){case 250:return Ja.createImportDeclaration(undefined,undefined,Ja.createImportClause(undefined,Ja.createNamespaceImport(r)),i);case 249:return Ja.createImportEqualsDeclaration(undefined,undefined,r,Ja.createExternalModuleReference(i));case 238:return Ja.createVariableDeclaration(r,undefined,b(i));default:return Ja.Debug.assertNever(e)}}(s,i,a))}}(s,o,d,u,l,t,i,e))})},t=0,n=o.statements;t<n.length;t++){e(n[t])}},t=0,n=e.getSourceFiles();t<n.length;t++){var i=n[t];r(i)}}(n,i,e,t.movedSymbols,a),function(c,t,e,u,n,l,r){for(var d,i=[],a=0,o=c.statements;a<o.length;a++){m(o[a],function(e){Ja.append(i,I(e,g(e),function(e){return t.has(n.getSymbolAtLocation(e))}))})}var p=[],f=Ja.nodeSeenTracker();return e.forEach(function(e){for(var t,n=0,r=e.declarations;n<r.length;n++){var i,a,o=r[n];B(o)&&(t=o,(i=Ja.isExpressionStatement(t)?t.expression.left.name:Ja.tryCast(t.name,Ja.isIdentifier))&&(a=function s(e){switch(e.kind){case 238:return e.parent.parent;case 187:return s(Ja.cast(e.parent.parent,function(e){return Ja.isVariableDeclaration(e)||Ja.isBindingElement(e)}));default:return e}}(o),f(a)&&function(e,t,n,r){if(N(e,t,r))return;{var i;r?Ja.isExpressionStatement(t)||n.insertExportModifier(e,t):0!==(i=D(t)).length&&n.insertNodesAfter(e,t,i.map(k))}}(c,a,u,l),Ja.hasModifier(o,512)?d=i:p.push(i.text)))}}),Ja.append(i,y(d,p,Ja.removeFileExtension(Ja.getBaseFileName(c.fileName)),l,r)),i}(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,n,s,c,u).concat(function(i,e,a,o){return Ja.flatMap(e,function(e){if(r=e,Ja.Debug.assert(Ja.isSourceFile(r.parent)),(x(r)||Ja.isVariableStatement(r))&&!N(i,e,o)&&S(e,function(e){return a.has(Ja.Debug.assertDefined(e.symbol))})){var t=(n=e,o?[function(e){var t=Ja.concatenate([Ja.createModifier(86)],e.modifiers);switch(e.kind){case 240:return Ja.updateFunctionDeclaration(e,e.decorators,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 241:return Ja.updateClassDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 220:return Ja.updateVariableStatement(e,t,e.declarationList);case 245:return Ja.updateModuleDeclaration(e,e.decorators,t,e.name,e.body);case 244:return Ja.updateEnumDeclaration(e,e.decorators,t,e.name,e.members);case 243:return Ja.updateTypeAliasDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.type);case 242:return Ja.updateInterfaceDeclaration(e,e.decorators,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 249:return Ja.updateImportEqualsDeclaration(e,e.decorators,t,e.name,e.moduleReference);case 222:return Ja.Debug.fail();default:return Ja.Debug.assertNever(e)}}(n)]:function(e){return[e].concat(D(e).map(k))}(n));if(t)return t}var n,r;return e})}(e,r.all,t.oldFileImportsFromNewFile,c))}(t,c,i,r,n,d,o)),void function(e,t,n,r,i){var a=e.getCompilerOptions().configFile;if(!a)return;var o=Ja.normalizePath(Ja.combinePaths(n,"..",r)),s=Ja.getRelativePathFromFile(a.fileName,o,i),c=a.statements[0]&&Ja.tryCast(a.statements[0].expression,Ja.isObjectLiteralExpression),u=c&&Ja.find(c.properties,function(e){return Ja.isPropertyAssignment(e)&&Ja.isStringLiteral(e.name)&&"files"===e.name.text});u&&Ja.isArrayLiteralExpression(u.initializer)&&t.insertNodeInListAfter(a,Ja.last(u.initializer.elements),Ja.createLiteral(s),u.initializer.elements)}(n,i,t.fileName,p,Ja.hostGetCanonicalFileName(a));var t,n,r,i,a,o,s,c,u,l,d,p}),renameFilename:undefined,renameLocation:undefined}}});var C=(i.prototype.add=function(e){this.map.set(String(Ja.getSymbolId(e)),e)},i.prototype.has=function(e){return this.map.has(String(Ja.getSymbolId(e)))},i.prototype["delete"]=function(e){this.map["delete"](String(Ja.getSymbolId(e)))},i.prototype.forEach=function(e){this.map.forEach(e)},i.prototype.forEachEntry=function(e){return Ja.forEachEntry(this.map,e)},i.prototype.clone=function(){var e=new i;return Ja.copyEntries(this.map,e.map),e},i);function i(){this.map=Ja.createMap()}function B(e){return x(e)&&Ja.isSourceFile(e.parent)||Ja.isVariableDeclaration(e)&&Ja.isSourceFile(e.parent.parent.parent)}function x(e){switch(e.kind){case 240:case 241:case 245:case 244:case 243:case 242:case 249:return!0;default:return!1}}function S(e,t){switch(e.kind){case 240:case 241:case 245:case 244:case 243:case 242:case 249:return t(e);case 220:return Ja.firstDefined(e.declarationList.declarations,function(e){return function n(e,t){switch(e.kind){case 73:return t(Ja.cast(e.parent,function(e){return Ja.isVariableDeclaration(e)||Ja.isBindingElement(e)}));case 186:case 185:return Ja.firstDefined(e.elements,function(e){return Ja.isOmittedExpression(e)?undefined:n(e.name,t)});default:return Ja.Debug.assertNever(e)}}(e.name,t)});case 222:var n=e.expression;return Ja.isBinaryExpression(n)&&1===Ja.getAssignmentDeclarationKind(n)?t(e):undefined}}function N(t,e,n){return n?!Ja.isExpressionStatement(e)&&Ja.hasModifier(e,1):D(e).some(function(e){return t.symbol.exports.has(Ja.escapeLeadingUnderscores(e))})}function D(e){switch(e.kind){case 240:case 241:return[e.name.text];case 220:return Ja.mapDefined(e.declarationList.declarations,function(e){return Ja.isIdentifier(e.name)?e.name.text:undefined});case 245:case 244:case 243:case 242:case 249:return Ja.emptyArray;case 222:return Ja.Debug.fail();default:return Ja.Debug.assertNever(e)}}function k(e){return Ja.createExpressionStatement(Ja.createBinary(Ja.createPropertyAccess(Ja.createIdentifier("exports"),Ja.createIdentifier(e)),60,Ja.createIdentifier(e)))}}((Ja=rg=rg||{}).refactor||(Ja.refactor={})),za=rg=rg||{},(Ua=za.refactor||(za.refactor={})).addOrRemoveBracesToArrowFunction||(Ua.addOrRemoveBracesToArrowFunction={}),Ka="Add or remove braces in an arrow function",Za=za.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,Xa="Add braces to arrow function",qa="Remove braces from arrow function",Qa=za.Diagnostics.Add_braces_to_arrow_function.message,$a=za.Diagnostics.Remove_braces_from_arrow_function.message,Ua.registerRefactor(Ka,{getEditsForAction:function(e,t){var n=e.file,r=e.startPosition,i=zh(n,r);if(!i)return undefined;var a,o=i.expression,s=i.returnStatement,c=i.func;{var u,l;t===Xa?(u=za.createReturn(o),a=za.createBlock([u],!0),za.suppressLeadingAndTrailingTrivia(a),za.copyLeadingComments(o,u,n,3,!0)):t===qa&&s?(l=o||za.createVoidZero(),a=function(e){return za.isBinaryExpression(e)&&27===e.operatorToken.kind||za.isObjectLiteralExpression(e)}(l)?za.createParen(l):l,za.suppressLeadingAndTrailingTrivia(a),za.copyLeadingComments(s,a,n,3,!1)):za.Debug.fail("invalid action")}var d=za.textChanges.ChangeTracker["with"](e,function(e){return e.replaceNode(n,c.body,a)});return{renameFilename:undefined,renameLocation:undefined,edits:d}},getAvailableActions:function(e){var t=e.file,n=e.startPosition,r=zh(t,n);return r?[{name:Ka,description:Za,actions:[r.addBraces?{name:Xa,description:Qa}:{name:qa,description:$a}]}]:za.emptyArray}}),eo=rg=rg||{},(to=eo.refactor||(eo.refactor={})).convertParamsToDestructuredObject||(to.convertParamsToDestructuredObject={}),no="Convert parameters to destructured object",ro=2,to.registerRefactor(no,{getEditsForAction:function(e,t){eo.Debug.assert(t===no);var n=e.file,r=e.startPosition,i=e.program,a=e.cancellationToken,o=e.host,s=Zh(n,r,i.getTypeChecker());if(!s||!a)return undefined;var c=function(f,t,n){var _=function(e){switch(e.kind){case 240:return e.name?[e.name]:[eo.Debug.assertDefined(eo.findModifier(e,81),"Nameless function declaration should be a default export")];case 157:return[e.name];case 158:var t=eo.Debug.assertDefined(eo.findChildOfKind(e,125,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 210!==e.parent.kind?[t]:[e.parent.parent.name,t];case 198:return[e.parent.name];case 197:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return eo.Debug.assertNever(e)}}(f),h=eo.isConstructorDeclaration(f)?function(e){switch(e.parent.kind){case 241:var t=e.parent;return t.name?[t.name]:[eo.Debug.assertDefined(eo.findModifier(t,81),"Nameless class declaration should be a default export")];case 210:var n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(f):[],r=eo.deduplicate(_.concat(h),eo.equateValues),i=t.getTypeChecker(),e=function(e){for(var t={accessExpressions:[],typeUsages:[]},n={functionCalls:[],declarations:[],classReferences:t,valid:!0},r=eo.map(_,g),i=eo.map(h,g),a=eo.isConstructorDeclaration(f),o=0,s=e;o<s.length;o++){var c,u=s[o];if(1===u.kind){if(eo.contains(r,g(u.node))||eo.isNewExpressionTarget(u.node)){if(Uh(u))continue;if(c=Kh(u)){n.declarations.push(c);continue}var l=function(e){if(e.node.parent){var t=e.node,n=t.parent;switch(n.kind){case 192:case 193:var r=eo.tryCast(n,eo.isCallOrNewExpression);if(r&&r.expression===t)return r;break;case 190:var i=eo.tryCast(n,eo.isPropertyAccessExpression);if(i&&i.parent&&i.name===t){var a=eo.tryCast(i.parent,eo.isCallOrNewExpression);if(a&&a.expression===i)return a}break;case 191:var o=eo.tryCast(n,eo.isElementAccessExpression);if(o&&o.parent&&o.argumentExpression===t){var s=eo.tryCast(o.parent,eo.isCallOrNewExpression);if(s&&s.expression===o)return s}}}return undefined}(u);if(l){n.functionCalls.push(l);continue}}if(a&&eo.contains(i,g(u.node))){if(Uh(u))continue;if(c=Kh(u)){n.declarations.push(c);continue}var d=function(e){if(e.node.parent){var t=e.node,n=t.parent;switch(n.kind){case 190:var r=eo.tryCast(n,eo.isPropertyAccessExpression);if(r&&r.expression===t)return r;break;case 191:var i=eo.tryCast(n,eo.isElementAccessExpression);if(i&&i.expression===t)return i}}return undefined}(u);if(d){t.accessExpressions.push(d);continue}if(eo.isClassDeclaration(f.parent)){var p=function(e){var t=e.node;if(2===eo.getMeaningFromLocation(t)||eo.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent))return t;return undefined}(u);if(p){t.typeUsages.push(p);continue}}}n.valid=!1}else n.valid=!1}return n}(eo.flatMap(r,function(e){return eo.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n)}));eo.every(e.declarations,function(e){return eo.contains(r,e)})||(e.valid=!1);return e;function g(e){var t=i.getSymbolAtLocation(e);return t&&eo.getSymbolTarget(t,i)}}(s,i,a);if(c.valid){var u=eo.textChanges.ChangeTracker["with"](e,function(e){return function(e,t,n,r,i,a){var o=eo.map(function(e,a,o){var t,s=a.getTypeChecker(),n=eg(e.parameters),r=eo.map(n,function(e){var t=eo.createBindingElement(undefined,undefined,ng(e),eo.isRestParameter(e)&&f(e)?eo.createArrayLiteral():e.initializer);eo.suppressLeadingAndTrailingTrivia(t),e.initializer&&t.initializer&&tg(e.initializer,t.initializer);return t}),i=eo.createObjectBindingPattern(r),c=function(e){var t=eo.map(e,p);return eo.addEmitFlags(eo.createTypeLiteralNode(t),1)}(n);eo.every(n,f)&&(t=eo.createObjectLiteral());var u=eo.createParameter(undefined,undefined,undefined,i,undefined,c,t);if($h(e.parameters)){var l=e.parameters[0],d=eo.createParameter(undefined,undefined,undefined,l.name,undefined,l.type);return eo.suppressLeadingAndTrailingTrivia(d.name),tg(l.name,d.name),l.type&&(eo.suppressLeadingAndTrailingTrivia(d.type),tg(l.type,d.type)),eo.createNodeArray([d,u])}return eo.createNodeArray([u]);function p(e){var t,n,r=e.type;r||!e.initializer&&!eo.isRestParameter(e)||(t=e,n=s.getTypeAtLocation(t),r=eo.getTypeNodeIfAccessible(n,t,a,o));var i=eo.createPropertySignature(undefined,ng(e),f(e)?eo.createToken(56):e.questionToken,r,undefined);return eo.suppressLeadingAndTrailingTrivia(i),tg(e.name,i.name),e.type&&i.type&&tg(e.type,i.type),i}function f(e){if(eo.isRestParameter(e)){var t=s.getTypeAtLocation(e);return!s.isTupleType(t)}return s.isOptionalParameter(e)}}(i,t,n),function(e){return eo.getSynthesizedDeepClone(e)});r.replaceNodeRangeWithNodes(e,eo.first(i.parameters),eo.last(i.parameters),o,{joiner:", ",indentation:0,leadingTriviaOption:eo.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:eo.textChanges.TrailingTriviaOption.Include});for(var s=eo.sortAndDeduplicate(a.functionCalls,function(e,t){return eo.compareValues(e.pos,t.pos)}),c=0,u=s;c<u.length;c++){var l,d=u[c];d.arguments&&d.arguments.length&&(l=eo.getSynthesizedDeepClone(function(e,t){var r=eg(e.parameters),n=eo.isRestParameter(eo.last(r)),i=n?t.slice(0,r.length-1):t,a=eo.map(i,function(e,t){var n=function(e,t){if(eo.isIdentifier(t)&&eo.getTextOfIdentifierOrLiteral(t)===e)return eo.createShorthandPropertyAssignment(e);return eo.createPropertyAssignment(e,t)}(ng(r[t]),e);return eo.suppressLeadingAndTrailingTrivia(n.name),eo.isPropertyAssignment(n)&&eo.suppressLeadingAndTrailingTrivia(n.initializer),tg(e,n),n});{var o,s;n&&t.length>=r.length&&(o=t.slice(r.length-1),s=eo.createPropertyAssignment(ng(eo.last(r)),eo.createArrayLiteral(o)),a.push(s))}return eo.createObjectLiteral(a,!1)}(i,d.arguments),!0),r.replaceNodeRange(eo.getSourceFileOfNode(d),eo.first(d.arguments),eo.last(d.arguments),l,{leadingTriviaOption:eo.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:eo.textChanges.TrailingTriviaOption.Include}))}}(n,i,o,e,s,c)});return{renameFilename:undefined,renameLocation:undefined,edits:u}}return{edits:[]}},getAvailableActions:function(e){var t=e.file,n=e.startPosition;if(eo.isSourceFileJS(t))return eo.emptyArray;if(!Zh(t,n,e.program.getTypeChecker()))return eo.emptyArray;var r=eo.getLocaleSpecificMessage(eo.Diagnostics.Convert_parameters_to_destructured_object);return[{name:no,description:r,actions:[{name:no,description:r}]}]}}),function(x){function s(e,t,n,r){var i=x.isNodeKind(e)?new a(e,t,n):73===e?new p(73,t,n):new u(e,t,n);return i.parent=r,i.flags=12679168&r.flags,i}x.servicesVersion="0.8";var a=(e.prototype.assertHasRealPosition=function(e){x.Debug.assert(!x.positionIsSynthesized(this.pos)&&!x.positionIsSynthesized(this.end),e||"Node must have a real position for this operation")},e.prototype.getSourceFile=function(){return x.getSourceFileOfNode(this)},e.prototype.getStart=function(e,t){return this.assertHasRealPosition(),x.getTokenPosOfNode(this,e,t)},e.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},e.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},e.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},e.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},e.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},e.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},e.prototype.getText=function(e){return this.assertHasRealPosition(),(e=e||this.getSourceFile()).text.substring(this.getStart(e),this.getEnd())},e.prototype.getChildCount=function(e){return this.getChildren(e).length},e.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},e.prototype.getChildren=function(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(t,e){if(!x.isNodeKind(t.kind))return x.emptyArray;var n=[];if(x.isJSDocCommentContainingNode(t))return t.forEachChild(function(e){n.push(e)}),n;x.scanner.setText((e||t.getSourceFile()).text);var r=t.pos,i=function i(e){c(n,r,e.pos,t),n.push(e),r=e.end},a=function a(e){c(n,r,e.pos,t),n.push(function(e,t){var n=s(312,e.pos,e.end,t);n._children=[];for(var r=e.pos,i=0,a=e;i<a.length;i++){var o=a[i];c(n._children,r,o.pos,t),n._children.push(o),r=o.end}return c(n._children,r,e.end,t),n}(e,t)),r=e.end};return x.forEach(t.jsDoc,i),r=t.pos,t.forEachChild(i,a),c(n,r,t.end,t),x.scanner.setText(undefined),n}(this,e))},e.prototype.getFirstToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e);if(!t.length)return undefined;var n=x.find(t,function(e){return e.kind<289||311<e.kind});return n.kind<149?n:n.getFirstToken(e)},e.prototype.getLastToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e),n=x.lastOrUndefined(t);return n?n.kind<149?n:n.getLastToken(e):undefined},e.prototype.forEachChild=function(e,t){return x.forEachChild(this,e,t)},e);function e(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=undefined,this.kind=e}function c(e,t,n,r){for(x.scanner.setTextPos(t);t<n;){var i=x.scanner.scan(),a=x.scanner.getTextPos();if(a<=n&&(73===i&&x.Debug.fail("Did not expect "+x.Debug.formatSyntaxKind(r.kind)+" to have an Identifier in its trivia"),e.push(s(i,t,a,r))),t=a,1===i)break}}var t=(n.prototype.getSourceFile=function(){return x.getSourceFileOfNode(this)},n.prototype.getStart=function(e,t){return x.getTokenPosOfNode(this,e,t)},n.prototype.getFullStart=function(){return this.pos},n.prototype.getEnd=function(){return this.end},n.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return(e=e||this.getSourceFile()).text.substring(this.getStart(e),this.getEnd())},n.prototype.getChildCount=function(){return 0},n.prototype.getChildAt=function(){return undefined},n.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||x.emptyArray},n.prototype.getFirstToken=function(){return undefined},n.prototype.getLastToken=function(){return undefined},n.prototype.forEachChild=function(){return undefined},n);function n(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=undefined}var r=(i.prototype.getFlags=function(){return this.flags},Object.defineProperty(i.prototype,"name",{get:function(){return x.symbolName(this)},enumerable:!0,configurable:!0}),i.prototype.getEscapedName=function(){return this.escapedName},i.prototype.getName=function(){return this.name},i.prototype.getDeclarations=function(){return this.declarations},i.prototype.getDocumentationComment=function(e){return this.documentationComment||(this.documentationComment=x.emptyArray,this.documentationComment=b(this.declarations,e)),this.documentationComment},i.prototype.getJsDocTags=function(){return this.tags===undefined&&(this.tags=x.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},i);function i(e,t){this.flags=e,this.escapedName=t}var o,u=(so(l,o=t),l);function l(e,t,n){var r=o.call(this,t,n)||this;return r.kind=e,r}var d,p=(so(f,d=t),Object.defineProperty(f.prototype,"text",{get:function(){return x.idText(this)},enumerable:!0,configurable:!0}),f);function f(e,t,n){return d.call(this,t,n)||this}p.prototype.kind=73;var _=(h.prototype.getFlags=function(){return this.flags},h.prototype.getSymbol=function(){return this.symbol},h.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},h.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},h.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},h.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},h.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},h.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},h.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},h.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):undefined},h.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},h.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},h.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},h.prototype.isUnion=function(){return!!(1048576&this.flags)},h.prototype.isIntersection=function(){return!!(2097152&this.flags)},h.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},h.prototype.isLiteral=function(){return!!(384&this.flags)},h.prototype.isStringLiteral=function(){return!!(128&this.flags)},h.prototype.isNumberLiteral=function(){return!!(256&this.flags)},h.prototype.isTypeParameter=function(){return!!(262144&this.flags)},h.prototype.isClassOrInterface=function(){return!!(3&x.getObjectFlags(this))},h.prototype.isClass=function(){return!!(1&x.getObjectFlags(this))},h);function h(e,t){this.checker=e,this.flags=t}var g=(m.prototype.getDeclaration=function(){return this.declaration},m.prototype.getTypeParameters=function(){return this.typeParameters},m.prototype.getParameters=function(){return this.parameters},m.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},m.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=b(x.singleElementArray(this.declaration),this.checker))},m.prototype.getJsDocTags=function(){return this.jsDocTags===undefined&&(this.jsDocTags=this.declaration?x.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},m);function m(e){this.checker=e}function y(e){return x.getJSDocTags(e).some(function(e){return"inheritDoc"===e.tagName.text})}function b(e,t){if(!e)return x.emptyArray;var n=x.JsDoc.getJsDocCommentsFromDeclarations(e);if(0===n.length||e.some(y))for(var r=0,i=e;r<i.length;r++){var a=i[r],o=function(e,i,a){return x.firstDefined(e.parent?x.getAllSuperTypeNodes(e.parent):x.emptyArray,function(e){var t=a.getTypeAtLocation(e),n=t&&a.getPropertyOfType(t,i),r=n&&n.getDocumentationComment(a);return r&&r.length?r:undefined})}(a,a.symbol.name,t);o&&(n=0===n.length?o.slice():o.concat(x.lineBreakPart(),n))}return n}var v,E=(so(I,v=a),I.prototype.update=function(e,t){return x.updateSourceFile(this,e,t)},I.prototype.getLineAndCharacterOfPosition=function(e){return x.getLineAndCharacterOfPosition(this,e)},I.prototype.getLineStarts=function(){return x.getLineStarts(this)},I.prototype.getPositionOfLineAndCharacter=function(e,t,n){return x.computePositionOfLineAndCharacter(x.getLineStarts(this),e,t,this.text,n)},I.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t=t||r[n+1]-1;var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},I.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},I.prototype.computeNamedDeclarations=function(){var u=x.createMultiMap();return this.forEachChild(function p(e){switch(e.kind){case 240:case 197:case 157:case 156:var t,n,r=e,i=d(r);i&&(s=i,(c=u.get(s))||u.set(s,c=[]),t=c,(n=x.lastOrUndefined(t))&&r.parent===n.parent&&r.symbol===n.symbol?r.body&&!n.body&&(t[t.length-1]=r):t.push(r)),x.forEachChild(e,p);break;case 241:case 210:case 242:case 243:case 244:case 245:case 249:case 258:case 254:case 251:case 252:case 159:case 160:case 169:l(e),x.forEachChild(e,p);break;case 152:if(!x.hasModifier(e,92))break;case 238:case 187:var a=e;if(x.isBindingPattern(a.name)){x.forEachChild(a.name,p);break}a.initializer&&p(a.initializer);case 279:case 155:case 154:l(e);break;case 256:e.exportClause&&x.forEach(e.exportClause.elements,p);break;case 250:var o=e.importClause;o&&(o.name&&l(o.name),o.namedBindings&&(252===o.namedBindings.kind?l(o.namedBindings):x.forEach(o.namedBindings.elements,p)));break;case 205:0!==x.getAssignmentDeclarationKind(e)&&l(e);default:x.forEachChild(e,p)}var s,c}),u;function l(e){var t=d(e);t&&u.add(t,e)}function d(e){var t=x.getNonAssignedNameOfDeclaration(e);return t&&(x.isComputedPropertyName(t)&&x.isPropertyAccessExpression(t.expression)?t.expression.name.text:x.isPropertyName(t)?x.getNameFromPropertyName(t):undefined)}},I);function I(e,t,n){return v.call(this,e,t,n)||this}var T=(C.prototype.getLineAndCharacterOfPosition=function(e){return x.getLineAndCharacterOfPosition(this,e)},C);function C(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}function S(e){var t=!0;for(var n in e)if(x.hasProperty(e,n)&&!B(n)){t=!1;break}if(t)return e;var r={};for(var n in e){x.hasProperty(e,n)&&(r[B(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=e[n])}return r}function B(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function N(){return{target:1,jsx:1}}x.toEditorSettings=S,x.displayPartsToString=function(e){return e?x.map(e,function(e){return e.text}).join(""):""},x.getDefaultCompilerOptions=N,x.getSupportedCodeFixes=function(){return x.codefix.getSupportedErrorCodes()};var D=(k.prototype.compilationSettings=function(){return this._compilationSettings},k.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},k.prototype.createEntry=function(e,t){var n=this.host.getScriptSnapshot(e),r=n?{hostFileName:e,version:this.host.getScriptVersion(e),scriptSnapshot:n,scriptKind:x.getScriptKind(e,this.host)}:e;return this.fileNameToEntry.set(t,r),r},k.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},k.prototype.getHostFileInformation=function(e){var t=this.fileNameToEntry.get(e);return x.isString(t)?undefined:t},k.prototype.getOrCreateEntryByPath=function(e,t){var n=this.getEntryByPath(t)||this.createEntry(e,t);return x.isString(n)?undefined:n},k.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach(function(e){x.isString(e)?t.push(e):6!==e.scriptKind&&t.push(e.hostFileName)}),t},k.prototype.getVersion=function(e){var t=this.getHostFileInformation(e);return t&&t.version},k.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},k);function k(e,t){this.host=e,this.currentDirectory=e.getCurrentDirectory(),this.fileNameToEntry=x.createMap();for(var n=0,r=e.getScriptFileNames();n<r.length;n++){var i=r[n];this.createEntry(i,x.toPath(i,this.currentDirectory,t))}this._compilationSettings=e.getCompilationSettings()||N()}var A=(w.prototype.getCurrentSourceFile=function(e){var t=this.host.getScriptSnapshot(e);if(!t)throw new Error("Could not find file: '"+e+"'.");var n,r,i=x.getScriptKind(e,this.host),a=this.host.getScriptVersion(e);return this.currentFileName!==e?r=P(e,t,8,a,!0,i):this.currentFileVersion!==a&&(n=t.getChangeRange(this.currentFileScriptSnapshot),r=L(this.currentSourceFile,t,a,n)),r&&(this.currentFileVersion=a,this.currentFileName=e,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},w);function w(e){this.host=e}function V(e,t,n){e.version=n,e.scriptSnapshot=t}function P(e,t,n,r,i,a){var o=x.createSourceFile(e,x.getSnapshotText(t),n,i,a);return V(o,t,r),o}function L(e,t,n,r,i){if(!r||n===e.version||x.disableIncrementalParsing)return P(e.fileName,t,e.languageVersion,n,!0,e.scriptKind);var a,o=void 0,s=0!==r.span.start?e.text.substr(0,r.span.start):"",c=x.textSpanEnd(r.span)!==e.text.length?e.text.substr(x.textSpanEnd(r.span)):"";o=0===r.newLength?s&&c?s+c:s||c:(a=t.getText(r.span.start,r.span.start+r.newLength),s&&c?s+a+c:s?s+a:a+c);var u=x.updateSourceFile(e,o,r,i);return V(u,t,n),u.nameTable=undefined,e!==u&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=undefined),u}x.createLanguageServiceSourceFile=P,x.disableIncrementalParsing=!1,x.updateLanguageServiceSourceFile=L;var M=(F.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},F.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new x.OperationCanceledException},F);function F(e){this.cancellationToken=e}var O=(R.prototype.isCancellationRequested=function(){var e=x.timestamp();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())},R.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new x.OperationCanceledException},R);function R(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}function H(e){var t=function(e){switch(e.kind){case 10:case 8:if(150===e.parent.kind)return x.isObjectLiteralElement(e.parent.parent)?e.parent.parent:undefined;case 73:return!x.isObjectLiteralElement(e.parent)||189!==e.parent.parent.kind&&269!==e.parent.parent.kind||e.parent.name!==e?undefined:e.parent}return undefined}(e);return t&&(x.isObjectLiteralExpression(t.parent)||x.isJsxAttributes(t.parent))?t:undefined}function j(t,n,e,r){var i=x.getNameFromPropertyName(t.name);if(!i)return x.emptyArray;if(!e.isUnion())return(a=e.getProperty(i))?[a]:x.emptyArray;var a,o=x.mapDefined(e.types,function(e){return x.isObjectLiteralExpression(t.parent)&&n.isTypeInvalidDueToUnionDiscriminant(e,t.parent)?undefined:e.getProperty(i)});if(r&&(0===o.length||o.length===e.types.length)&&(a=e.getProperty(i)))return[a];return 0===o.length?x.mapDefined(e.types,function(e){return e.getProperty(i)}):o}x.ThrottledCancellationToken=O,x.createLanguageService=function(p,f,_){var e;void 0===f&&(f=x.createDocumentRegistry(p.useCaseSensitiveFileNames&&p.useCaseSensitiveFileNames(),p.getCurrentDirectory())),void 0===_&&(_=!1);var h,g,s=new A(p),m=0,y=new M(p.getCancellationToken&&p.getCancellationToken()),b=p.getCurrentDirectory();function v(e){p.log&&p.log(e)}!x.localizedDiagnosticMessages&&p.getLocalizedDiagnosticMessages&&(x.localizedDiagnosticMessages=p.getLocalizedDiagnosticMessages());var E=x.hostUsesCaseSensitiveFileNames(p),I=x.createGetCanonicalFileName(E),T=x.getSourceMapper({useCaseSensitiveFileNames:function(){return E},getCurrentDirectory:function(){return b},getProgram:a,fileExists:p.fileExists&&function(e){return p.fileExists(e)},readFile:p.readFile&&function(e,t){return p.readFile(e,t)},getDocumentPositionMapper:p.getDocumentPositionMapper&&function(e,t){return p.getDocumentPositionMapper(e,t)},getSourceFileLike:p.getSourceFileLike&&function(e){return p.getSourceFileLike(e)},log:v});function C(e){var t=h.getSourceFile(e);if(!t)throw new Error("Could not find sourceFile: '"+e+"' in "+(h&&JSON.stringify(h.getSourceFiles().map(function(e){return e.fileName})))+".");return t}function B(){if(x.Debug.assert(!_),p.getProjectVersion){var e=p.getProjectVersion();if(e){if(g===e&&!p.hasChangedAutomaticTypeDirectiveNames)return;g=e}}var t=p.getTypeRootsVersion?p.getTypeRootsVersion():0;m!==t&&(v("TypeRoots version has changed; provide new program"),h=undefined,m=t);var s=new D(p,I),n=s.getRootFileNames(),r=p.hasInvalidatedResolution||x.returnFalse,i=s.getProjectReferences();if(!x.isProgramUptoDate(h,n,s.compilationSettings(),function(e){return s.getVersion(e)},l,r,!!p.hasChangedAutomaticTypeDirectiveNames,i)){var c=s.compilationSettings(),a={getSourceFile:function(e,t,n,r){return d(e,x.toPath(e,b,I),0,0,r)},getSourceFileByPath:d,getCancellationToken:function(){return y},getCanonicalFileName:I,useCaseSensitiveFileNames:function(){return E},getNewLine:function(){return x.getNewLineCharacter(c,function(){return x.getNewLineOrDefaultFromHost(p)})},getDefaultLibFileName:function(e){return p.getDefaultLibFileName(e)},writeFile:x.noop,getCurrentDirectory:function(){return b},fileExists:l,readFile:function(e){var t=x.toPath(e,b,I),n=s&&s.getEntryByPath(t);if(n)return x.isString(n)?undefined:x.getSnapshotText(n.scriptSnapshot);return p.readFile&&p.readFile(e)},realpath:p.realpath&&function(e){return p.realpath(e)},directoryExists:function(e){return x.directoryProbablyExists(e,p)},getDirectories:function(e){return p.getDirectories?p.getDirectories(e):[]},readDirectory:function(e,t,n,r,i){return x.Debug.assertDefined(p.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),p.readDirectory(e,t,n,r,i)},onReleaseOldSourceFile:function(e,t){var n=f.getKeyForCompilationSettings(t);f.releaseDocumentWithKey(e.resolvedPath,n)},hasInvalidatedResolution:r,hasChangedAutomaticTypeDirectiveNames:p.hasChangedAutomaticTypeDirectiveNames};p.trace&&(a.trace=function(e){return p.trace(e)}),p.resolveModuleNames&&(a.resolveModuleNames=function(e,t,n,r){return p.resolveModuleNames(e,t,n,r)}),p.resolveTypeReferenceDirectives&&(a.resolveTypeReferenceDirectives=function(e,t,n){return p.resolveTypeReferenceDirectives(e,t,n)});var u=f.getKeyForCompilationSettings(c),o={rootNames:n,options:c,host:a,oldProgram:h,projectReferences:i};return h=x.createProgram(o),s=undefined,T.clearCache(),void h.getTypeChecker()}function l(e){var t=x.toPath(e,b,I),n=s&&s.getEntryByPath(t);return n?!x.isString(n):!!p.fileExists&&p.fileExists(e)}function d(e,t,n,r,i){x.Debug.assert(s!==undefined,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var a=s&&s.getOrCreateEntryByPath(e,t);if(!a)return undefined;if(!i){var o=h&&h.getSourceFileByPath(t);if(o)return x.Debug.assertEqual(a.scriptKind,o.scriptKind,"Registered script kind should match new script kind.",t),f.updateDocumentWithKey(e,t,c,u,a.scriptSnapshot,a.version,a.scriptKind)}return f.acquireDocumentWithKey(e,t,c,u,a.scriptSnapshot,a.version,a.scriptKind)}}function a(){return _?(x.Debug.assert(h===undefined),undefined):(B(),h)}function n(e,t,n){var r=x.normalizePath(e);x.Debug.assert(n.some(function(e){return x.normalizePath(e)===r})),B();var i=n.map(C),a=C(e);return x.DocumentHighlights.getDocumentHighlights(h,y,a,t,i)}function c(e,t,n,r){B();var i=n&&n.isForRename?h.getSourceFiles().filter(function(e){return!h.isSourceFileDefaultLibrary(e)}):h.getSourceFiles();return x.FindAllReferences.findReferenceOrRenameEntries(h,y,i,e,t,n,r)}function r(e){var t=x.getScriptKind(e,p);return 3===t||4===t}var o=x.createMapFromTemplate(((e={})[18]=19,e[20]=21,e[22]=23,e[30]=28,e));function i(e){var t=function t(e){return x.toPath(e,b,I)};return x.Debug.assertEqual(e.type,"install package"),p.installPackage?p.installPackage({fileName:t(e.file),packageName:e.packageName}):Promise.reject("Host does not implement `installPackage`")}function u(e,t,n,r){var i="number"==typeof t?[t,undefined]:[t.pos,t.end];return{file:e,startPosition:i[0],endPosition:i[1],program:a(),host:p,formatContext:x.formatting.getFormatContext(r),cancellationToken:y,preferences:n}}return o.forEach(function(e,t){return o.set(e.toString(),Number(t))}),{dispose:function(){h&&(x.forEach(h.getSourceFiles(),function(e){return f.releaseDocument(e.fileName,h.getCompilerOptions())}),h=undefined),p=undefined},cleanupSemanticCache:function(){h=undefined},getSyntacticDiagnostics:function(e){return B(),h.getSyntacticDiagnostics(C(e),y).slice()},getSemanticDiagnostics:function(e){B();var t=C(e),n=h.getSemanticDiagnostics(t,y);if(!x.getEmitDeclarations(h.getCompilerOptions()))return n.slice();var r=h.getDeclarationDiagnostics(t,y);return n.concat(r)},getSuggestionDiagnostics:function(e){return B(),x.computeSuggestionDiagnostics(C(e),h,y)},getCompilerOptionsDiagnostics:function(){return B(),h.getOptionsDiagnostics(y).concat(h.getGlobalDiagnostics(y))},getSyntacticClassifications:function(e,t){return x.getSyntacticClassifications(y,s.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t){return r(e)?(B(),x.getSemanticClassifications(h.getTypeChecker(),y,C(e),h.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(e,t){return x.getEncodedSyntacticClassifications(y,s.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t){return r(e)?(B(),x.getEncodedSemanticClassifications(h.getTypeChecker(),y,C(e),h.getClassifiableNames(),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(e,t,n){void 0===n&&(n=x.emptyOptions);var r=Qb({},x.identity(n),{includeCompletionsForModuleExports:n.includeCompletionsForModuleExports||n.includeExternalModuleExports,includeCompletionsWithInsertText:n.includeCompletionsWithInsertText||n.includeInsertTextCompletions});return B(),x.Completions.getCompletionsAtPosition(p,h,v,C(e),t,r,n.triggerCharacter)},getCompletionEntryDetails:function(e,t,n,r,i,a){return void 0===a&&(a=x.emptyOptions),B(),x.Completions.getCompletionEntryDetails(h,v,C(e),t,{name:n,source:i},p,r&&x.formatting.getFormatContext(r),a,y)},getCompletionEntrySymbol:function(e,t,n,r){return B(),x.Completions.getCompletionEntrySymbol(h,v,C(e),t,{name:n,source:r})},getSignatureHelpItems:function(e,t,n){var r=(void 0===n?x.emptyOptions:n).triggerReason;B();var i=C(e);return x.SignatureHelp.getSignatureHelpItems(h,i,t,r,y)},getQuickInfoAtPosition:function(e,t){B();var n=C(e),r=x.getTouchingPropertyName(n,t);if(r===n)return undefined;var i=h.getTypeChecker(),a=function(e){if(x.isNewExpression(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;return e}(r),o=function(e,t){var n=H(e);if(n){var r=t.getContextualType(n.parent),i=r&&j(n,t,r,!1);if(i&&1===i.length)return x.first(i)}return t.getSymbolAtLocation(e)}(a,i);if(!o||i.isUnknownSymbol(o)){var s=function(e,t,n){switch(t.kind){case 73:return!x.isLabelName(t)&&!x.isTagName(t);case 190:case 149:return!x.isInComment(e,n);case 101:case 179:case 99:return!0;default:return!1}}(n,a,t)?i.getTypeAtLocation(a):undefined;return s&&{kind:"",kindModifiers:"",textSpan:x.createTextSpanFromNode(a,n),displayParts:i.runWithCancellationToken(y,function(e){return x.typeToDisplayParts(e,s,x.getContainerNode(a))}),documentation:s.symbol?s.symbol.getDocumentationComment(i):undefined,tags:s.symbol?s.symbol.getJsDocTags():undefined}}var c=i.runWithCancellationToken(y,function(e){return x.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,o,n,x.getContainerNode(a),a)}),u=c.symbolKind,l=c.displayParts,d=c.documentation,p=c.tags;return{kind:u,kindModifiers:x.SymbolDisplay.getSymbolModifiers(o),textSpan:x.createTextSpanFromNode(a,n),displayParts:l,documentation:d,tags:p}},getDefinitionAtPosition:function(e,t){return B(),x.GoToDefinition.getDefinitionAtPosition(h,C(e),t)},getDefinitionAndBoundSpan:function(e,t){return B(),x.GoToDefinition.getDefinitionAndBoundSpan(h,C(e),t)},getImplementationAtPosition:function(e,t){return B(),x.FindAllReferences.getImplementationsAtPosition(h,y,h.getSourceFiles(),C(e),t)},getTypeDefinitionAtPosition:function(e,t){return B(),x.GoToDefinition.getTypeDefinitionAtPosition(h.getTypeChecker(),C(e),t)},getReferencesAtPosition:function(e,t){return B(),c(x.getTouchingPropertyName(C(e),t),t,{},x.FindAllReferences.toReferenceEntry)},findReferences:function(e,t){return B(),x.FindAllReferences.findReferencedSymbols(h,y,h.getSourceFiles(),C(e),t)},getOccurrencesAtPosition:function(e,t){return x.flatMap(n(e,t,[e]),function(t){return t.highlightSpans.map(function(e){return{fileName:t.fileName,textSpan:e.textSpan,isWriteAccess:"writtenReference"===e.kind,isDefinition:!1,isInString:e.isInString}})})},getDocumentHighlights:n,getNameOrDottedNameSpan:function(e,t,n){var r=s.getCurrentSourceFile(e),i=x.getTouchingPropertyName(r,t);if(i===r)return undefined;switch(i.kind){case 190:case 149:case 10:case 88:case 103:case 97:case 99:case 101:case 179:case 73:break;default:return undefined}for(var a=i;;)if(x.isRightSideOfPropertyAccess(a)||x.isRightSideOfQualifiedName(a))a=a.parent;else{if(!x.isNameOfModuleDeclaration(a))break;if(245!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return x.createTextSpanFromBounds(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){var n=s.getCurrentSourceFile(e);return x.BreakpointResolver.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r){void 0===r&&(r=!1),B();var i=n?[C(n)]:h.getSourceFiles();return x.NavigateTo.getNavigateToItems(i,h.getTypeChecker(),y,e,t,r)},getRenameInfo:function(e,t,n){return B(),x.Rename.getRenameInfo(h,C(e),t,n)},getSmartSelectionRange:function(e,t){return x.SmartSelectionRange.getSmartSelectionRange(t,s.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){B();var a=C(e),o=x.getTouchingPropertyName(a,t);if(x.isIdentifier(o)&&(x.isJsxOpeningElement(o.parent)||x.isJsxClosingElement(o.parent))&&x.isIntrinsicJsxName(o.escapedText)){var s=o.parent.parent;return[s.openingElement,s.closingElement].map(function(e){return{fileName:a.fileName,textSpan:x.createTextSpanFromNode(e.tagName,a)}})}return c(o,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:i,isForRename:!0},function(e,t,n){return x.FindAllReferences.toRenameLocation(e,t,n,i||!1)})},getNavigationBarItems:function(e){return x.NavigationBar.getNavigationBarItems(s.getCurrentSourceFile(e),y)},getNavigationTree:function(e){return x.NavigationBar.getNavigationTree(s.getCurrentSourceFile(e),y)},getOutliningSpans:function(e){var t=s.getCurrentSourceFile(e);return x.OutliningElementsCollector.collectElements(t,y)},getTodoComments:function(e,t){B();var n=C(e);y.throwIfCancellationRequested();var r,i,a,o,s=n.text,c=[];if(0<t.length&&(o=n.fileName,!x.stringContains(o,"/node_modules/")))for(var u,l=(i="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",a="(?:"+x.map(t,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(i+"("+a+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim"));u=l.exec(s);){y.throwIfCancellationRequested();x.Debug.assert(u.length===t.length+3);var d=u[1],p=u.index+d.length;if(x.isInComment(n,p)){for(var f,_=void 0,h=0;h<t.length;h++)u[h+3]&&(_=t[h]);if(_===undefined)return x.Debug.fail();97<=(r=s.charCodeAt(p+_.text.length))&&r<=122||65<=r&&r<=90||48<=r&&r<=57||(f=u[2],c.push({descriptor:_,message:f,position:p}))}}return c},getBraceMatchingAtPosition:function(e,t){var n=s.getCurrentSourceFile(e),r=x.getTouchingToken(n,t),i=r.getStart(n)===t?o.get(r.kind.toString()):undefined,a=i&&x.findChildOfKind(r.parent,i,n);return a?[x.createTextSpanFromNode(r,n),x.createTextSpanFromNode(a,n)].sort(function(e,t){return e.start-t.start}):x.emptyArray},getIndentationAtPosition:function(e,t,n){var r=x.timestamp(),i=S(n),a=s.getCurrentSourceFile(e);v("getIndentationAtPosition: getCurrentSourceFile: "+(x.timestamp()-r)),r=x.timestamp();var o=x.formatting.SmartIndenter.getIndentation(t,a,i);return v("getIndentationAtPosition: computeIndentation : "+(x.timestamp()-r)),o},getFormattingEditsForRange:function(e,t,n,r){var i=s.getCurrentSourceFile(e);return x.formatting.formatSelection(t,n,i,x.formatting.getFormatContext(S(r)))},getFormattingEditsForDocument:function(e,t){return x.formatting.formatDocument(s.getCurrentSourceFile(e),x.formatting.getFormatContext(S(t)))},getFormattingEditsAfterKeystroke:function(e,t,n,r){var i=s.getCurrentSourceFile(e),a=x.formatting.getFormatContext(S(r));if(!x.isInComment(i,t))switch(n){case"{":return x.formatting.formatOnOpeningCurly(t,i,a);case"}":return x.formatting.formatOnClosingCurly(t,i,a);case";":return x.formatting.formatOnSemicolon(t,i,a);case"\n":return x.formatting.formatOnEnter(t,i,a)}return[]},getDocCommentTemplateAtPosition:function(e,t){return x.JsDoc.getDocCommentTemplateAtPosition(x.getNewLineOrDefaultFromHost(p),s.getCurrentSourceFile(e),t)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;var r=s.getCurrentSourceFile(e);if(x.isInString(r,t))return!1;if(x.isInsideJsxElementOrAttribute(r,t))return 123===n;if(x.isInTemplateString(r,t))return!1;switch(n){case 39:case 34:case 96:return!x.isInComment(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){var n=s.getCurrentSourceFile(e),r=x.findPrecedingToken(t,n);if(!r)return undefined;var i=30===r.kind&&x.isJsxOpeningElement(r.parent)?r.parent.parent:x.isJsxText(r)?r.parent:undefined;return i&&function a(e){var t=e.openingElement,n=e.closingElement,r=e.parent;return!x.tagNamesAreEquivalent(t.tagName,n.tagName)||x.isJsxElement(r)&&x.tagNamesAreEquivalent(t.tagName,r.openingElement.tagName)&&a(r)}(i)?{newText:"</"+i.openingElement.tagName.getText(n)+">"}:void 0},getSpanOfEnclosingComment:function(e,t,n){var r=s.getCurrentSourceFile(e),i=x.formatting.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?undefined:x.createTextSpanFromRange(i)},getCodeFixesAtPosition:function(e,t,n,r,i,a){void 0===a&&(a=x.emptyOptions),B();var o=C(e),s=x.createTextSpanFromBounds(t,n),c=x.formatting.getFormatContext(i);return x.flatMap(x.deduplicate(r,x.equateValues,x.compareValues),function(e){return y.throwIfCancellationRequested(),x.codefix.getFixes({errorCode:e,sourceFile:o,span:s,program:h,host:p,cancellationToken:y,formatContext:c,preferences:a})})},getCombinedCodeFix:function(e,t,n,r){void 0===r&&(r=x.emptyOptions),B(),x.Debug.assert("file"===e.type);var i=C(e.fileName),a=x.formatting.getFormatContext(n);return x.codefix.getAllFixes({fixId:t,sourceFile:i,program:h,host:p,cancellationToken:y,formatContext:a,preferences:r})},applyCodeActionCommand:function(e,t){var n="string"==typeof e?t:e;return x.isArray(n)?Promise.all(n.map(i)):i(n)},organizeImports:function(e,t,n){void 0===n&&(n=x.emptyOptions),B(),x.Debug.assert("file"===e.type);var r=C(e.fileName),i=x.formatting.getFormatContext(t);return x.OrganizeImports.organizeImports(r,i,p,h,n)},getEditsForFileRename:function(e,t,n,r){return void 0===r&&(r=x.emptyOptions),x.getEditsForFileRename(a(),e,t,p,x.formatting.getFormatContext(n),r,T)},getEmitOutput:function(e,t){void 0===t&&(t=!1),B();var n=C(e),r=p.getCustomTransformers&&p.getCustomTransformers();return x.getFileEmitOutput(h,n,t,y,r)},getNonBoundSourceFile:function(e){return s.getCurrentSourceFile(e)},getProgram:a,getApplicableRefactors:function(e,t,n){void 0===n&&(n=x.emptyOptions),B();var r=C(e);return x.refactor.getApplicableRefactors(u(r,t,n))},getEditsForRefactor:function(e,t,n,r,i,a){void 0===a&&(a=x.emptyOptions),B();var o=C(e);return x.refactor.getEditsForRefactor(u(o,n,a,t),r,i)},toLineColumnOffset:T.toLineColumnOffset,getSourceMapper:function(){return T}}},x.getNameTable=function(e){var t,o;return e.nameTable||(o=(t=e).nameTable=x.createUnderscoreEscapedMap(),t.forEachChild(function s(e){var t,n;if((x.isIdentifier(e)&&!x.isTagName(e)&&e.escapedText||x.isStringOrNumericLiteralLike(e)&&(n=e,x.isDeclarationName(n)||260===n.parent.kind||function(e){return e&&e.parent&&191===e.parent.kind&&e.parent.argumentExpression===e}(n)||x.isLiteralComputedPropertyDeclarationName(n)))&&(t=x.getEscapedTextOfIdentifierOrLiteral(e),o.set(t,o.get(t)===undefined?e.pos:-1)),x.forEachChild(e,s),x.hasJSDocNodes(e))for(var r=0,i=e.jsDoc;r<i.length;r++){var a=i[r];x.forEachChild(a,s)}})),e.nameTable},x.getContainingObjectLiteralElement=H,x.getPropertySymbolsFromContextualType=j,x.getDefaultLibFilePath=function(e){return W+x.directorySeparator+x.getDefaultLibFileName(e)},x.objectAllocator={getNodeConstructor:function(){return a},getTokenConstructor:function(){return u},getIdentifierConstructor:function(){return p},getSourceFileConstructor:function(){return E},getSymbolConstructor:function(){return r},getTypeConstructor:function(){return _},getSignatureConstructor:function(){return g},getSourceMapSourceConstructor:function(){return T}}}(rg=rg||{}),((io=rg=rg||{}).BreakpointResolver||(io.BreakpointResolver={})).spanInSourceFileAtLocation=function(v,e){if(v.isDeclarationFile)return undefined;var t=io.getTokenAtPosition(v,e),n=v.getLineAndCharacterOfPosition(e).line;if(v.getLineAndCharacterOfPosition(t.getStart(v)).line>n){var r=io.findPrecedingToken(t.pos,v);if(!r||v.getLineAndCharacterOfPosition(r.getEnd()).line!==n)return undefined;t=r}return 4194304&t.flags?undefined:x(t);function E(e,t){var n=e.decorators?io.skipTrivia(v.text,e.decorators.end):e.getStart(v);return io.createTextSpanFromBounds(n,(t||e).getEnd())}function I(e,t){return E(e,io.findNextToken(t,t.parent,v))}function T(e,t){return e&&n===v.getLineAndCharacterOfPosition(e.getStart(v)).line?x(e):x(t)}function C(e){return x(io.findPrecedingToken(e.pos,v))}function B(e){return x(io.findNextToken(e,e.parent,v))}function x(e){if(e){var t=e.parent;switch(e.kind){case 220:return f(e.declarationList.declarations[0]);case 238:case 155:case 154:return f(e);case 152:return function b(e){{if(io.isBindingPattern(e.name))return m(e.name);if((r=e).initializer||r.dotDotDotToken!==undefined||io.hasModifier(r,12))return E(e);var t=e.parent,n=t.parameters.indexOf(e);return io.Debug.assert(-1!==n),0!==n?b(t.parameters[n-1]):x(t.body)}var r}(e);case 240:case 157:case 156:case 159:case 160:case 158:case 197:case 198:return function(e){if(!e.body)return undefined;if(_(e))return E(e);return x(e.body)}(e);case 219:if(io.isFunctionBlock(e))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(_(e.parent))return T(e.parent,t);return x(t)}(e);case 246:return h(e);case 275:return h(e.block);case 222:return E(e.expression);case 231:return E(e.getChildAt(0),e.expression);case 225:return I(e,e.expression);case 224:return x(e.statement);case 237:return E(e.getChildAt(0));case 223:return I(e,e.expression);case 234:return x(e.statement);case 230:case 229:return E(e.getChildAt(0),e.label);case 226:return function(e){if(e.initializer)return g(e);if(e.condition)return E(e.condition);if(e.incrementor)return E(e.incrementor)}(e);case 227:return I(e,e.expression);case 228:return g(e);case 233:return I(e,e.expression);case 272:case 273:return x(e.statements[0]);case 236:return h(e.tryBlock);case 235:case 255:return E(e,e.expression);case 249:return E(e,e.moduleReference);case 250:case 256:return E(e,e.moduleSpecifier);case 245:if(1!==io.getModuleInstanceState(e))return undefined;case 241:case 244:case 279:case 187:return E(e);case 232:return x(e.statement);case 153:return d=t.decorators,io.createTextSpanFromBounds(io.skipTrivia(v.text,d.pos),d.end);case 185:case 186:return m(e);case 242:case 243:return undefined;case 26:case 1:return T(io.findPrecedingToken(e.pos,v));case 27:return C(e);case 18:return function(e){switch(e.parent.kind){case 244:var t=e.parent;return T(io.findPrecedingToken(e.pos,v,e.parent),t.members.length?t.members[0]:t.getLastToken(v));case 241:var n=e.parent;return T(io.findPrecedingToken(e.pos,v,e.parent),n.members.length?n.members[0]:n.getLastToken(v));case 247:return T(e.parent.parent,e.parent.clauses[0])}return x(e.parent)}(e);case 19:return function(e){switch(e.parent.kind){case 246:if(1!==io.getModuleInstanceState(e.parent.parent))return undefined;case 244:case 241:return E(e);case 219:if(io.isFunctionBlock(e.parent))return E(e);case 275:return x(io.lastOrUndefined(e.parent.statements));case 247:var t=e.parent,n=io.lastOrUndefined(t.clauses);return n?x(io.lastOrUndefined(n.statements)):undefined;case 185:var r=e.parent;return x(io.lastOrUndefined(r.elements)||r);default:if(io.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){var i=e.parent;return E(io.lastOrUndefined(i.properties)||i)}return x(e.parent)}}(e);case 23:return function(e){switch(e.parent.kind){case 186:var t=e.parent;return E(io.lastOrUndefined(t.elements)||t);default:if(io.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){var n=e.parent;return E(io.lastOrUndefined(n.elements)||n)}return x(e.parent)}}(e);case 20:return 224!==(l=e).parent.kind&&192!==l.parent.kind&&193!==l.parent.kind?196!==l.parent.kind?x(l.parent):B(l):C(l);case 21:return function(e){switch(e.parent.kind){case 197:case 240:case 198:case 157:case 156:case 159:case 160:case 158:case 225:case 224:case 226:case 228:case 192:case 193:case 196:return C(e);default:return x(e.parent)}}(e);case 57:return function(e){if(io.isFunctionLike(e.parent)||276===e.parent.kind||152===e.parent.kind)return C(e);return x(e.parent)}(e);case 30:case 28:return 195!==(u=e).parent.kind?x(u.parent):B(u);case 108:return 224!==(c=e).parent.kind?x(c.parent):I(c,c.parent.expression);case 84:case 76:case 89:return B(e);case 148:return 228!==(s=e).parent.kind?x(s.parent):B(s);default:if(io.isArrayLiteralOrObjectLiteralDestructuringPattern(e))return y(e);if((73===e.kind||209===e.kind||276===e.kind||277===e.kind)&&io.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return E(e);if(205===e.kind){var n=e.left,r=e.operatorToken;if(io.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return y(n);if(60===r.kind&&io.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent))return E(e);if(27===r.kind)return x(n)}if(io.isExpressionNode(e))switch(t.kind){case 224:return C(e);case 153:return x(e.parent);case 226:case 228:return E(e);case 205:if(27===e.parent.operatorToken.kind)return E(e);break;case 198:if(e.parent.body===e)return E(e)}switch(e.parent.kind){case 276:if(e.parent.name===e&&!io.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent))return x(e.parent.initializer);break;case 195:if(e.parent.type===e)return B(e.parent.type);break;case 238:case 152:var i=e.parent,a=i.initializer,o=i.type;if(a===e||o===e||io.isAssignmentOperator(e.kind))return C(e);break;case 205:n=e.parent.left;if(io.isArrayLiteralOrObjectLiteralDestructuringPattern(n)&&e!==n)return C(e);break;default:if(io.isFunctionLike(e.parent)&&e.parent.type===e)return C(e)}return x(e.parent)}}var s,c,u,l,d;function p(e){return io.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]===e?E(io.findPrecedingToken(e.pos,v,e.parent),e):E(e)}function f(e){if(227===e.parent.parent.kind)return x(e.parent.parent);var t=e.parent;return io.isBindingPattern(e.name)?m(e.name):e.initializer||io.hasModifier(e,1)||228===t.parent.kind?p(e):io.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]!==e?x(io.findPrecedingToken(e.pos,v,e.parent)):void 0}function _(e){return io.hasModifier(e,1)||241===e.parent.kind&&158!==e.kind}function h(e){switch(e.parent.kind){case 245:if(1!==io.getModuleInstanceState(e.parent))return undefined;case 225:case 223:case 227:return T(e.parent,e.statements[0]);case 226:case 228:return T(io.findPrecedingToken(e.pos,v,e.parent),e.statements[0])}return x(e.statements[0])}function g(e){if(239!==e.initializer.kind)return x(e.initializer);var t=e.initializer;return 0<t.declarations.length?x(t.declarations[0]):void 0}function m(e){var t=io.forEach(e.elements,function(e){return 211!==e.kind?e:undefined});return t?x(t):(187===e.parent.kind?E:p)(e.parent)}function y(e){io.Debug.assert(186!==e.kind&&185!==e.kind);var t=188===e.kind?e.elements:e.properties,n=io.forEach(t,function(e){return 211!==e.kind?e:undefined});return n?x(n):E(205===e.parent.kind?e.parent:e)}}},(ao=rg=rg||{}).transform=function(e,t,n){var r=[];n=ao.fixupCompilerOptions(n,r);var i=ao.isArray(e)?e:[e],a=ao.transformNodes(undefined,undefined,n,i,t,!0);return a.diagnostics=ao.concatenate(a.diagnostics,r),a};var rg,ig,ag=function(){return this}();!function(c){function s(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=(e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var t=this.scriptSnapshotShim.getChangeRange(e.scriptSnapshotShim);if(null===t)return null;var n=JSON.parse(t);return c.createTextChangeRange(c.createTextSpan(n.span.start,n.span.length),n.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e);function e(e){this.scriptSnapshotShim=e}var i=(t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){return this.shimHost.getProjectVersion?this.shimHost.getProjectVersion():undefined},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new n(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new c.ThrottledCancellationToken(e)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(e,t,n,r,i){var a=c.getFileMatcherPatterns(e,n,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(a.basePaths),a.excludePattern,a.includeFilePattern,a.includeDirectoryPattern,i))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t);function t(e){var r=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,t){var n=JSON.parse(r.shimHost.getModuleResolutionsForFile(t));return c.map(e,function(e){var t=c.getProperty(n,e);return t?{resolvedFileName:t,extension:c.extensionFromPath(t),isExternalLibraryImport:!1}:undefined})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,t){var n=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(t));return c.map(e,function(e){return c.getProperty(n,e)})})}c.LanguageServiceShimHostAdapter=i;var r=(a.prototype.readDirectory=function(e,t,n,r,i){var a=c.getFileMatcherPatterns(e,n,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(a.basePaths),a.excludePattern,a.includeFilePattern,a.includeDirectoryPattern,i))},a.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},a.prototype.readFile=function(e){return this.shimHost.readFile(e)},a.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},a);function a(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=undefined,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=undefined}function o(e,t,n,r){return u(e,t,!0,n,r)}function u(e,t,n,r,i){try{var a=function(e,t,n,r){var i;r&&(e.log(t),i=c.timestamp());var a,o,s=n();return r&&(a=c.timestamp(),e.log(t+" completed in "+(a-i)+" msec"),c.isString(s)&&(128<(o=s).length&&(o=o.substring(0,128)+"..."),e.log(" result.length="+o.length+", result='"+JSON.stringify(o)+"'"))),s}(e,t,r,i);return n?JSON.stringify({result:a}):a}catch(o){return o instanceof c.OperationCanceledException?JSON.stringify({canceled:!0}):(s(e,o),o.description=t,JSON.stringify({error:o}))}}c.CoreServicesShimHostAdapter=r;var l=(d.prototype.dispose=function(e){this.factory.unregisterShim(this)},d);function d(e){(this.factory=e).registerShim(this)}function p(e,r){return e.map(function(e){return t=e,n=r,{message:c.flattenDiagnosticMessageText(t.messageText,n),start:t.start,length:t.length,category:c.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary};var t,n})}c.realizeDiagnostics=p;var f,_=(so(h,f=l),h.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},h.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,ag&&ag.CollectGarbage&&(ag.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,f.prototype.dispose.call(this,e)},h.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},h.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},h.prototype.realizeDiagnostics=function(e){return p(e,c.getNewLineOrDefaultFromHost(this.host))},h.prototype.getSyntacticClassifications=function(e,t,n){var r=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+t+", "+n+")",function(){return r.languageService.getSyntacticClassifications(e,c.createTextSpan(t,n))})},h.prototype.getSemanticClassifications=function(e,t,n){var r=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+t+", "+n+")",function(){return r.languageService.getSemanticClassifications(e,c.createTextSpan(t,n))})},h.prototype.getEncodedSyntacticClassifications=function(e,t,n){var r=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+t+", "+n+")",function(){return g(r.languageService.getEncodedSyntacticClassifications(e,c.createTextSpan(t,n)))})},h.prototype.getEncodedSemanticClassifications=function(e,t,n){var r=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+t+", "+n+")",function(){return g(r.languageService.getEncodedSemanticClassifications(e,c.createTextSpan(t,n)))})},h.prototype.getSyntacticDiagnostics=function(t){var n=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+t+"')",function(){var e=n.languageService.getSyntacticDiagnostics(t);return n.realizeDiagnostics(e)})},h.prototype.getSemanticDiagnostics=function(t){var n=this;return this.forwardJSONCall("getSemanticDiagnostics('"+t+"')",function(){var e=n.languageService.getSemanticDiagnostics(t);return n.realizeDiagnostics(e)})},h.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},h.prototype.getCompilerOptionsDiagnostics=function(){var t=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var e=t.languageService.getCompilerOptionsDiagnostics();return t.realizeDiagnostics(e)})},h.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},h.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},h.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},h.prototype.getSignatureHelpItems=function(e,t,n){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return r.languageService.getSignatureHelpItems(e,t,n)})},h.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},h.prototype.getDefinitionAndBoundSpan=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAndBoundSpan(e,t)})},h.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},h.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},h.prototype.getRenameInfo=function(e,t,n){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t,n)})},h.prototype.getSmartSelectionRange=function(e,t){var n=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",function(){return n.languageService.getSmartSelectionRange(e,t)})},h.prototype.findRenameLocations=function(e,t,n,r,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,n,r,i)})},h.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},h.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},h.prototype.getSpanOfEnclosingComment=function(e,t,n){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return r.languageService.getSpanOfEnclosingComment(e,t,n)})},h.prototype.getIndentationAtPosition=function(t,n,r){var i=this;return this.forwardJSONCall("getIndentationAtPosition('"+t+"', "+n+")",function(){var e=JSON.parse(r);return i.languageService.getIndentationAtPosition(t,n,e)})},h.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},h.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},h.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},h.prototype.getDocumentHighlights=function(n,r,i){var a=this;return this.forwardJSONCall("getDocumentHighlights('"+n+"', "+r+")",function(){var e=a.languageService.getDocumentHighlights(n,r,JSON.parse(i)),t=c.normalizeSlashes(n).toLowerCase();return c.filter(e,function(e){return c.normalizeSlashes(e.fileName).toLowerCase()===t})})},h.prototype.getCompletionsAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.getCompletionsAtPosition(e,t,n)})},h.prototype.getCompletionEntryDetails=function(t,n,r,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+t+"', "+n+", '"+r+"')",function(){var e=i===undefined?undefined:JSON.parse(i);return s.languageService.getCompletionEntryDetails(t,n,r,e,a,o)})},h.prototype.getFormattingEditsForRange=function(t,n,r,i){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+t+"', "+n+", "+r+")",function(){var e=JSON.parse(i);return a.languageService.getFormattingEditsForRange(t,n,r,e)})},h.prototype.getFormattingEditsForDocument=function(t,n){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+t+"')",function(){var e=JSON.parse(n);return r.languageService.getFormattingEditsForDocument(t,e)})},h.prototype.getFormattingEditsAfterKeystroke=function(t,n,r,i){var a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+t+"', "+n+", '"+r+"')",function(){var e=JSON.parse(i);return a.languageService.getFormattingEditsAfterKeystroke(t,n,r,e)})},h.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},h.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},h.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},h.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},h.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},h.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},h.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},h.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},h);function h(e,t,n){var r=f.call(this,e)||this;return r.host=t,r.languageService=n,r.logPerformance=!1,r.logger=r.host,r}function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m,y=(so(b,m=l),b.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return void 0===n&&(n=!1),o(this.logger,"getEncodedLexicalClassifications",function(){return g(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},b.prototype.getClassificationsForLine=function(e,t,n){void 0===n&&(n=!1);for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+=r.finalLexState},b);function b(e,t){var n=m.call(this,e)||this;return n.logger=t,n.logPerformance=!1,n.classifier=c.createClassifier(),n}var v,E=(so(I,v=l),I.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},I.prototype.resolveModuleName=function(r,i,a){var o=this;return this.forwardJSONCall("resolveModuleName('"+r+"')",function(){var e=JSON.parse(a),t=c.resolveModuleName(i,c.normalizeSlashes(r),e,o.host),n=t.resolvedModule?t.resolvedModule.resolvedFileName:undefined;return t.resolvedModule&&".ts"!==t.resolvedModule.extension&&".tsx"!==t.resolvedModule.extension&&".d.ts"!==t.resolvedModule.extension&&(n=undefined),{resolvedFileName:n,failedLookupLocations:t.failedLookupLocations}})},I.prototype.resolveTypeReferenceDirective=function(n,r,i){var a=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+n+")",function(){var e=JSON.parse(i),t=c.resolveTypeReferenceDirective(r,c.normalizeSlashes(n),e,a.host);return{resolvedFileName:t.resolvedTypeReferenceDirective?t.resolvedTypeReferenceDirective.resolvedFileName:undefined,primary:!t.resolvedTypeReferenceDirective||t.resolvedTypeReferenceDirective.primary,failedLookupLocations:t.failedLookupLocations}})},I.prototype.getPreProcessedFileInfo=function(e,t){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=c.preProcessFile(c.getSnapshotText(t),!0,!0);return{referencedFiles:n.convertFileReferences(e.referencedFiles),importedFiles:n.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:n.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(e.libReferenceDirectives)}})},I.prototype.getAutomaticTypeDirectiveNames=function(t){var n=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",function(){var e=JSON.parse(t);return c.getAutomaticTypeDirectiveNames(e,n.host)})},I.prototype.convertFileReferences=function(e){if(!e)return undefined;for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];t.push({path:c.normalizeSlashes(i.fileName),position:i.pos,length:i.end-i.pos})}return t},I.prototype.getTSConfigFileInfo=function(r,i){var a=this;return this.forwardJSONCall("getTSConfigFileInfo('"+r+"')",function(){var e=c.parseJsonText(r,c.getSnapshotText(i)),t=c.normalizeSlashes(r),n=c.parseJsonSourceFileConfigFileContent(e,a.host,c.getDirectoryPath(t),{},t);return{options:n.options,typeAcquisition:n.typeAcquisition,files:n.fileNames,raw:n.raw,errors:p(e.parseDiagnostics.concat(n.errors),"\r\n")}})},I.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return c.getDefaultCompilerOptions()})},I.prototype.discoverTypings=function(t){var n=this,r=c.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var e=JSON.parse(t);return n.safeList===undefined&&(n.safeList=c.JsTyping.loadSafeList(n.host,c.toPath(e.safeListPath,e.safeListPath,r))),c.JsTyping.discoverTypings(n.host,function(e){return n.logger.log(e)},e.fileNames,c.toPath(e.projectRootPath,e.projectRootPath,r),n.safeList,e.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,e.typesRegistry)})},I);function I(e,t,n){var r=v.call(this,e)||this;return r.logger=t,r.host=n,r.logPerformance=!1,r}var T=(C.prototype.getServicesVersion=function(){return c.servicesVersion},C.prototype.createLanguageServiceShim=function(e){try{this.documentRegistry===undefined&&(this.documentRegistry=c.createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));var t=new i(e),n=c.createLanguageService(t,this.documentRegistry,!1);return new _(this,e,n)}catch(r){throw s(e,r),r}},C.prototype.createClassifierShim=function(e){try{return new y(this,e)}catch(t){throw s(e,t),t}},C.prototype.createCoreServicesShim=function(e){try{var t=new r(e);return new E(this,e,t)}catch(n){throw s(e,n),n}},C.prototype.close=function(){c.clear(this._shims),this.documentRegistry=undefined},C.prototype.registerShim=function(e){this._shims.push(e)},C.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},C);function C(){this._shims=[]}c.TypeScriptServicesFactory=T,lg.exports&&(lg.exports=c)}(rg=rg||{}),((ig={}).Services||(ig.Services={})).TypeScriptServicesFactory=rg.TypeScriptServicesFactory;rg.versionMajorMinor}).call(this,dg(11),"/index.js",dg(10),"/")},function(e,k,A){"use strict";(function(o){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function n(t){return typeof t}:function n(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}var i=Object.getOwnPropertyDescriptors||function i(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},s=/%[sdj%]/g;k.format=function(e){if(!E(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,i=r.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(i<=n)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(_){return"[Circular]"}default:return e}}),o=r[n];n<i;o=r[++n])b(o)||!l(o)?a+=" "+o:a+=" "+c(o);return a},k.deprecate=function(e,t){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return k.deprecate(e,t).apply(this,arguments)};var n=!1;return function(){if(!n){if(o.throwDeprecation)throw new Error(t);o.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}};var e,r={};function c(e,t){var n={seen:[],stylize:u};return 3<=arguments.length&&(n.depth=arguments[2]),4<=arguments.length&&(n.colors=arguments[3]),y(t)?n.showHidden=t:t&&k._extend(n,t),I(n.showHidden)&&(n.showHidden=!1),I(n.depth)&&(n.depth=2),I(n.colors)&&(n.colors=!1),I(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),f(n,e,n.depth)}function a(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function u(e,t){return e}function f(t,n,r){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==k.inspect&&(!n.constructor||n.constructor.prototype!==n)){var e=n.inspect(r,t);return E(e)||(e=f(t,e,r)),e}var i=function(e,t){if(I(t))return e.stylize("undefined","undefined");if(E(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(t,n);if(i)return i;var a,o=Object.keys(n),s=(a={},o.forEach(function(e,t){a[e]=!0}),a);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),B(n)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return h(n);if(0===o.length){if(x(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(T(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return t.stylize(Date.prototype.toString.call(n),"date");if(B(n))return h(n)}var u,l="",d=!1,p=["{","}"];return m(n)&&(d=!0,p=["[","]"]),x(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),T(n)&&(l=" "+RegExp.prototype.toString.call(n)),C(n)&&(l=" "+Date.prototype.toUTCString.call(n)),B(n)&&(l=" "+h(n)),0!==o.length||d&&0!=n.length?r<0?T(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=d?function(t,n,r,i,e){for(var a=[],o=0,s=n.length;o<s;++o)S(n,String(o))?a.push(g(t,n,r,i,String(o),!0)):a.push("");return e.forEach(function(e){e.match(/^\d+$/)||a.push(g(t,n,r,i,e,!0))}),a}(t,n,r,s,o):o.map(function(e){return g(t,n,r,s,e,d)}),t.seen.pop(),function(e,t,n){if(60<e.reduce(function(e,t){return 0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,p)):p[0]+l+p[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,i,a){var o,s,c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(c.get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),S(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?-1<(s=b(n)?f(e,c.value,null):f(e,c.value,n-1)).indexOf("\n")&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),I(o)){if(a&&i.match(/^\d+$/))return s;o=(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(o,"string"))}return o+": "+s}function m(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function E(e){return"string"==typeof e}function I(e){return void 0===e}function T(e){return l(e)&&"[object RegExp]"===t(e)}function l(e){return"object"===n(e)&&null!==e}function C(e){return l(e)&&"[object Date]"===t(e)}function B(e){return l(e)&&("[object Error]"===t(e)||e instanceof Error)}function x(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function d(e){return e<10?"0"+e.toString(10):e.toString(10)}k.debuglog=function(t){var n;return I(e)&&(e=o.env.NODE_DEBUG||""),t=t.toUpperCase(),r[t]||(new RegExp("\\b"+t+"\\b","i").test(e)?(n=o.pid,r[t]=function(){var e=k.format.apply(k,arguments);console.error("%s %d: %s",t,n,e)}):r[t]=function(){}),r[t]},(k.inspect=c).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},k.isArray=m,k.isBoolean=y,k.isNull=b,k.isNullOrUndefined=function(e){return null==e},k.isNumber=v,k.isString=E,k.isSymbol=function(e){return"symbol"===n(e)},k.isUndefined=I,k.isRegExp=T,k.isObject=l,k.isDate=C,k.isError=B,k.isFunction=x,k.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},k.isBuffer=A(782);var p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}k.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[d(e.getHours()),d(e.getMinutes()),d(e.getSeconds())].join(":"),[e.getDate(),p[e.getMonth()],t].join(" ")),k.format.apply(k,arguments))},k.inherits=A(783),k._extend=function(e,t){if(!t||!l(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var N="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):undefined;function D(e,t){var n;return e||((n=new Error("Promise was rejected with a falsy value")).reason=e,e=n),t(e)}k.promisify=function(o){if("function"!=typeof o)throw new TypeError('The "original" argument must be of type Function');if(N&&o[N]){var e;if("function"!=typeof(e=o[N]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,N,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var n,r,e=new Promise(function(e,t){n=e,r=t}),t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);t.push(function(e,t){e?r(e):n(t)});try{o.apply(this,t)}catch(a){r(a)}return e}return Object.setPrototypeOf(e,Object.getPrototypeOf(o)),N&&Object.defineProperty(e,N,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(o))},k.promisify.custom=N,k.callbackify=function(a){if("function"!=typeof a)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);var n=e.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var r=this,i=function i(){return n.apply(r,arguments)};a.apply(this,e).then(function(e){o.nextTick(i,null,e)},function(e){o.nextTick(D,e,i)})}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),Object.defineProperties(e,i(a)),e}}).call(this,A(11))},function(e,t,n){"use strict";var g=n(37).codes.ERR_STREAM_PREMATURE_CLOSE;function m(){}e.exports=function y(t,e,n){if("function"==typeof e)return y(t,null,e);var r,i;r=n||m,i=!1,n=function(){if(!i){i=!0;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(this,t)}};var a,o=(e=e||{}).readable||!1!==e.readable&&t.readable,s=e.writable||!1!==e.writable&&t.writable,c=function c(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function l(){u=!(s=!1),o||n.call(t)},d=t._readableState&&t._readableState.endEmitted,p=function p(){d=!(o=!1),s||n.call(t)},f=function f(e){n.call(t,e)},_=function _(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new g),n.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new g),n.call(t,e)):void 0},h=function h(){t.req.on("finish",l)};return(a=t).setHeader&&"function"==typeof a.abort?(t.on("complete",l),t.on("abort",_),t.req?h():t.on("request",h)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",p),t.on("finish",l),!1!==e.error&&t.on("error",f),t.on("close",_),function(){t.removeListener("complete",l),t.removeListener("abort",_),t.removeListener("request",h),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",p),t.removeListener("error",f),t.removeListener("close",_)}}},function(e,t,n){"use strict";var r,i=t,a=n(77),o=n(120),s=n(16).assert;function c(e){"short"===e.type?this.curve=new o["short"](e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(t,n){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var e=new c(n);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:e}),e}})}i.PresetCurve=c,u("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"]}),u("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"]}),u("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"]}),u("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"]}),u("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"]}),u("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"]}),u("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{r=n(819)}catch(l){r=undefined}u("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",r]})},function(e,t,n){"use strict";var r=t;r.utils=n(21),r.common=n(45),r.sha=n(813),r.ripemd=n(817),r.hmac=n(818),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,n,t){"use strict";n.publicEncrypt=t(828),n.privateDecrypt=t(843),n.privateEncrypt=function(e,t){return n.publicEncrypt(e,t,!0)},n.publicDecrypt=function(e,t){return n.privateDecrypt(e,t,!0)}},function(e,t,n){var r=n(68),i=n(1141),a=n(1150),o=n(1182),s=r.Symbol,c=i("wks");e.exports=function(e){return c[e]||(c[e]=o&&s[e]||(o?s:a)("Symbol."+e))}},function(e,t,n){var l=n(68),d=n(1147).f,p=n(167),f=n(335),_=n(1161),h=n(1212),g=n(1165);e.exports=function(e,t){var n,r,i,a,o=e.target,s=e.global,c=e.stat,u=s?l:c?l[o]||_(o,{}):(l[o]||{}).prototype;if(u)for(n in t){if(i=t[n],r=e.noTargetGet?(a=d(u,n))&&a.value:u[n],!g(s?n:o+(c?".":"#")+n,e.forced)&&r!==undefined){if(typeof i==typeof r)continue;h(i,r)}(e.sham||r&&r.sham)&&p(i,"sham",!0),f(u,n,i,e)}}},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,i,a){"use strict";(function(e){var t=void 0!==e&&e||"undefined"!=typeof self&&self||window,n=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}i.setTimeout=function(){return new r(n.call(setTimeout,t,arguments),clearTimeout)},i.setInterval=function(){return new r(n.call(setInterval,t,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(t,this._id)},i.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},i.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},a(174),i.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||void 0,i.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||void 0}).call(this,a(10))},,,,,,,,,,,,,function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(96);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";t.pbkdf2=n(777),t.pbkdf2Sync=n(104)},function(e,t,n){"use strict";var r=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||r<t||t!=t)throw new TypeError("Bad key length")}},function(n,e,t){"use strict";(function(e){var t;t=e.browser||!e.version||6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary",n.exports=t}).call(this,t(11))},function(e,t,n){"use strict";var l=n(781),d=n(795),p=n(796),g=n(2).Buffer,m=n(102),y=n(103),b=n(117),f=g.alloc(128),v={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function E(e,t,n){var r,i="rmd160"===(r=e)||"ripemd160"===r?function(e){return(new d).update(e).digest()}:"md5"===r?l:function(e){return p(r).update(e).digest()},a="sha512"===e||"sha384"===e?128:64;t.length>a?t=i(t):t.length<a&&(t=g.concat([t,f],a));for(var o=g.allocUnsafe(a+v[e]),s=g.allocUnsafe(a+v[e]),c=0;c<a;c++)o[c]=54^t[c],s[c]=92^t[c];var u=g.allocUnsafe(a+n+4);o.copy(u,0,0,a),this.ipad1=u,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=a,this.hash=i,this.size=v[e]}E.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){m(n,r);var a=new E(i=i||"sha1",e=b(e,y,"Password"),(t=b(t,y,"Salt")).length),o=g.allocUnsafe(r),s=g.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var c=0,u=v[i],l=Math.ceil(r/u),d=1;d<=l;d++){s.writeUInt32BE(d,t.length);for(var p=a.run(s,a.ipad1),f=p,_=1;_<n;_++){f=a.run(f,a.ipad2);for(var h=0;h<u;h++)p[h]^=f[h]}p.copy(o,c),c+=u}return o}},function(e,t,n){"use strict";var r=n(1),i=n(106),a=n(2).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function u(e,t,n,r,i,a,o){return c(e+(t&n|~t&r)+i+a|0,o)+t|0}function l(e,t,n,r,i,a,o){return c(e+(t&r|n&~r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return c(e+(t^n^r)+i+a|0,o)+t|0}function p(e,t,n,r,i,a,o){return c(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=u(n=this._a,a=this._b,i=this._c,r=this._d,e[0],3614090360,7),r=u(r,n,a,i,e[1],3905402710,12),i=u(i,r,n,a,e[2],606105819,17),a=u(a,i,r,n,e[3],3250441966,22);n=u(n,a,i,r,e[4],4118548399,7),r=u(r,n,a,i,e[5],1200080426,12),i=u(i,r,n,a,e[6],2821735955,17),a=u(a,i,r,n,e[7],4249261313,22),n=u(n,a,i,r,e[8],1770035416,7),r=u(r,n,a,i,e[9],2336552879,12),i=u(i,r,n,a,e[10],4294925233,17),a=u(a,i,r,n,e[11],2304563134,22),n=u(n,a,i,r,e[12],1804603682,7),r=u(r,n,a,i,e[13],4254626195,12),i=u(i,r,n,a,e[14],2792965006,17),n=l(n,a=u(a,i,r,n,e[15],1236535329,22),i,r,e[1],4129170786,5),r=l(r,n,a,i,e[6],3225465664,9),i=l(i,r,n,a,e[11],643717713,14),a=l(a,i,r,n,e[0],3921069994,20),n=l(n,a,i,r,e[5],3593408605,5),r=l(r,n,a,i,e[10],38016083,9),i=l(i,r,n,a,e[15],3634488961,14),a=l(a,i,r,n,e[4],3889429448,20),n=l(n,a,i,r,e[9],568446438,5),r=l(r,n,a,i,e[14],3275163606,9),i=l(i,r,n,a,e[3],4107603335,14),a=l(a,i,r,n,e[8],1163531501,20),n=l(n,a,i,r,e[13],2850285829,5),r=l(r,n,a,i,e[2],4243563512,9),i=l(i,r,n,a,e[7],1735328473,14),n=d(n,a=l(a,i,r,n,e[12],2368359562,20),i,r,e[5],4294588738,4),r=d(r,n,a,i,e[8],2272392833,11),i=d(i,r,n,a,e[11],1839030562,16),a=d(a,i,r,n,e[14],4259657740,23),n=d(n,a,i,r,e[1],2763975236,4),r=d(r,n,a,i,e[4],1272893353,11),i=d(i,r,n,a,e[7],4139469664,16),a=d(a,i,r,n,e[10],3200236656,23),n=d(n,a,i,r,e[13],681279174,4),r=d(r,n,a,i,e[0],3936430074,11),i=d(i,r,n,a,e[3],3572445317,16),a=d(a,i,r,n,e[6],76029189,23),n=d(n,a,i,r,e[9],3654602809,4),r=d(r,n,a,i,e[12],3873151461,11),i=d(i,r,n,a,e[15],530742520,16),n=p(n,a=d(a,i,r,n,e[2],3299628645,23),i,r,e[0],4096336452,6),r=p(r,n,a,i,e[7],1126891415,10),i=p(i,r,n,a,e[14],2878612391,15),a=p(a,i,r,n,e[5],4237533241,21),n=p(n,a,i,r,e[12],1700485571,6),r=p(r,n,a,i,e[3],2399980690,10),i=p(i,r,n,a,e[10],4293915773,15),a=p(a,i,r,n,e[1],2240044497,21),n=p(n,a,i,r,e[8],1873313359,6),r=p(r,n,a,i,e[15],4264355552,10),i=p(i,r,n,a,e[6],2734768916,15),a=p(a,i,r,n,e[13],1309151649,21),n=p(n,a,i,r,e[4],4149444226,6),r=p(r,n,a,i,e[11],3174756917,10),i=p(i,r,n,a,e[2],718787259,15),a=p(a,i,r,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+a|0,this._c=this._c+i|0,this._d=this._d+r|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";var s=n(2).Buffer,r=n(786).Transform;function i(e){r.call(this),this._block=s.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(1)(i,r),i.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},i.prototype.update=function(e,t){if(!function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=s.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)n[i++]=e[r++];this._update(),this._blockOffset=0}for(;r<e.length;)n[this._blockOffset++]=e[r++];for(var a=0,o=8*e.length;0<o;++a)this._length[a]+=o,0<(o=this._length[a]/4294967296|0)&&(this._length[a]-=4294967296*o);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==undefined&&(t=t.toString(e)),this._block.fill(0);for(var n=this._blockOffset=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(H,e,j){"use strict";(function(e,h){var r;(H.exports=T).ReadableState=I;j(108).EventEmitter;var g=function g(e,t){return e.listeners(t).length},i=j(109),c=j(15).Buffer,u=e.Uint8Array||function(){};var m,t=j(787);m=t&&t.debuglog?t.debuglog("stream"):function m(){};var a,n,o,s=j(788),l=j(110),d=j(111).getHighWaterMark,p=j(37).codes,f=p.ERR_INVALID_ARG_TYPE,_=p.ERR_STREAM_PUSH_AFTER_EOF,y=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;j(1)(T,i);var v=l.errorOrDestroy,E=["error","close","destroy","pause","resume"];function I(e,t,n){r=r||j(38),e=e||{},"boolean"!=typeof n&&(n=t instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=d(this,e,"readableHighWaterMark",n),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a=a||j(113).StringDecoder,this.decoder=new a(e.encoding),this.encoding=e.encoding)}function T(e){if(r=r||j(38),!(this instanceof T))return new T(e);var t=this instanceof r;this._readableState=new I(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function C(e,t,n,r,i){m("readableAddChunk",t);var a,o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(m("onEofChunk"),t.ended)return;{var n;!t.decoder||(n=t.decoder.end())&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}(e,s);else if(i||(a=function(e,t){var n;(function(e){return c.isBuffer(e)||e instanceof u})(t)||"string"==typeof t||t===undefined||e.objectMode||(n=new f("chunk",["string","Buffer","Uint8Array"],t));return n}(s,t)),a)v(e,a);else if(s.objectMode||t&&0<t.length)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(o=t,t=c.from(o)),r)s.endEmitted?v(e,new b):B(e,s,t,!0);else if(s.ended)v(e,new _);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?B(e,s,t,!1):k(e,s)):B(e,s,t,!1)}else r||(s.reading=!1,k(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function B(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),k(e,t)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=l.destroy,T.prototype._undestroy=l.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},T.prototype.unshift=function(e){return C(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){var t=new(a=a||j(113).StringDecoder)(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var x=1073741824;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(x<=(n=e)?n=x:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function N(e){var t=e._readableState;m("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,h.nextTick(D,e))}function D(e){var t=e._readableState;m("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function k(e,t){t.readingMore||(t.readingMore=!0,h.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(m("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function w(e){var t=e._readableState;t.readableListening=0<e.listenerCount("readable"),t.resumeScheduled&&!t.paused?t.flowing=!0:0<e.listenerCount("data")&&e.resume()}function V(e){m("readable nexttick read 0"),e.read(0)}function P(e,t){m("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(m("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function F(e){var t=e._readableState;m("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,h.nextTick(O,t,e))}function O(e,t){var n;m("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"),!e.autoDestroy||(!(n=t._writableState)||n.autoDestroy&&n.finished)&&t.destroy())}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}T.prototype.read=function(e){m("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:0<t.length)||t.ended))return m("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?F:N)(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&m("length less than watermark",i=!0),t.ended||t.reading?m("reading or ended",i=!1):i&&(m("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=0<e?M(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(e){v(this,new y("_read()"))},T.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,m("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&n!==h.stdout&&n!==h.stderr?o:_;function a(e,t){m("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,m("cleanup"),n.removeListener("close",p),n.removeListener("finish",f),n.removeListener("drain",c),n.removeListener("error",d),n.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",_),r.removeListener("data",l),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||c())}function o(){m("onend"),n.end()}i.endEmitted?h.nextTick(t):r.once("end",t),n.on("unpipe",a);var s,c=(s=r,function(){var e=s._readableState;m("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&g(s,"data")&&(e.flowing=!0,L(s))});n.on("drain",c);var u=!1;function l(e){m("ondata");var t=n.write(e);m("dest.write",t),!1===t&&((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==R(i.pipes,n))&&!u&&(m("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(e){m("onerror",e),_(),n.removeListener("error",d),0===g(n,"error")&&v(n,e)}function p(){n.removeListener("finish",f),_()}function f(){m("onfinish"),n.removeListener("close",p),_()}function _(){m("unpipe"),r.unpipe(n)}return r.on("data",l),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(n,"error",d),n.once("close",p),n.once("finish",f),n.emit("pipe",r),i.flowing||(m("pipe resume"),r.resume()),n},T.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=R(t.pipes,e);return-1===o||(t.pipes.splice(o,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},T.prototype.addListener=T.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=0<this.listenerCount("readable"),!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,m("on readable",r.length,r.reading),r.length?N(this):r.reading||h.nextTick(V,this))),n},T.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return"readable"===e&&h.nextTick(w,this),n},T.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||h.nextTick(w,this),t},T.prototype.resume=function(){var e,t,n=this._readableState;return n.flowing||(m("resume"),n.flowing=!n.readableListening,e=this,(t=n).resumeScheduled||(t.resumeScheduled=!0,h.nextTick(P,e,t))),n.paused=!1,this},T.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var n=this,r=this._readableState,i=!1;for(var e in t.on("end",function(){var e;m("wrapped end"),!r.decoder||r.ended||(e=r.decoder.end())&&e.length&&n.push(e),n.push(null)}),t.on("data",function(e){m("wrapped data"),r.decoder&&(e=r.decoder.write(e)),(!r.objectMode||null!==e&&e!==undefined)&&(r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause()))}),t)this[e]===undefined&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<E.length;a++)t.on(E[a],this.emit.bind(this,E[a]));return this._read=function(e){m("wrapped _read",e),i&&(i=!1,t.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return n===undefined&&(n=j(791)),n(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=M,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return o===undefined&&(o=j(792)),o(T,e,t)})}).call(this,j(10),j(11))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function r(t){return typeof t}:function r(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}var i,a="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,l=a&&"function"==typeof a.apply?a.apply:function l(e,t,n){return Function.prototype.apply.call(e,t,n)};i=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function i(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function i(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function o(e){return e!=e};function s(){s.init.call(this)}((e.exports=s).EventEmitter=s).prototype._events=undefined,s.prototype._eventsCount=0,s.prototype._maxListeners=undefined;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function d(e){return e._maxListeners===undefined?s.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var i,a,o,s,c;return u(n),(a=e._events)===undefined?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==undefined&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),o===undefined?(o=a[t]=n,++e._eventsCount):("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),0<(i=d(e))&&o.length>i&&!o.warned&&(o.warned=!0,(s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,c=s,console&&console.warn&&console.warn(c))),e}function f(e,t,n){var r={fired:!1,wrapFn:undefined,target:e,type:t,listener:n},i=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(r);return i.listener=n,r.wrapFn=i}function _(e,t,n){var r=e._events;if(r===undefined)return[];var i=r[t];return i===undefined?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function h(e){var t=this._events;if(t!==undefined){var n=t[e];if("function"==typeof n)return 1;if(n!==undefined)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){this._events!==undefined&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||undefined},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return d(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r,i="error"===e,a=this._events;if(a!==undefined)i=i&&a.error===undefined;else if(!i)return!1;if(i){if(0<t.length&&(r=t[0]),r instanceof Error)throw r;var o=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw o.context=r,o}var s=a[e];if(s===undefined)return!1;if("function"==typeof s)l(s,this,t);else for(var c=s.length,u=g(s,c),n=0;n<c;++n)l(u[n],this,t);return!0},s.prototype.addListener=function(e,t){return p(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return p(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(u(t),(r=this._events)===undefined)return this;if((n=r[e])===undefined)return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;0<=a;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),r.removeListener!==undefined&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events;if(n===undefined)return this;if(n.removeListener===undefined)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):n[e]!==undefined&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),a=0;a<i.length;++a)"removeListener"!==(r=i[a])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t!==undefined)for(a=t.length-1;0<=a;a--)this.removeListener(e,t[a]);return this},s.prototype.listeners=function(e){return _(this,e,!0)},s.prototype.rawListeners=function(e){return _(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return 0<this._eventsCount?i(this._events):[]}},function(e,t,n){"use strict";e.exports=n(108).EventEmitter},function(e,t,n){"use strict";(function(a){function o(e,t){c(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function c(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(c,this,e)):a.nextTick(c,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?a.nextTick(s,n):(n._writableState.errorEmitted=!0,a.nextTick(o,n,e)):a.nextTick(o,n,e):t?(a.nextTick(s,n),t(e)):a.nextTick(s,n)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(11))},function(e,t,n){"use strict";var c=n(37).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,r){var i,a,o,s=(a=r,o=n,null!=(i=t).highWaterMark?i.highWaterMark:a?i[o]:null);if(null==s)return e.objectMode?16:16384;if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new c(r?n:"highWaterMark",s);return Math.floor(s)}}},function(A,e,w){"use strict";(function(e,g){function d(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;(A.exports=C).WritableState=h;var t={deprecate:w(790)},n=w(109),m=w(15).Buffer,y=e.Uint8Array||function(){};var r,a=w(110),o=w(111).getHighWaterMark,s=w(37).codes,b=s.ERR_INVALID_ARG_TYPE,c=s.ERR_METHOD_NOT_IMPLEMENTED,u=s.ERR_MULTIPLE_CALLBACK,l=s.ERR_STREAM_CANNOT_PIPE,p=s.ERR_STREAM_DESTROYED,v=s.ERR_STREAM_NULL_VALUES,E=s.ERR_STREAM_WRITE_AFTER_END,f=s.ERR_UNKNOWN_ENCODING,I=a.errorOrDestroy;function T(){}function h(e,t,n){i=i||w(38),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=o(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new u;{var a;(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0})(n),t?function(e,t,n,r,i){--t.pendingcb,n?(g.nextTick(i,r),g.nextTick(k,e,t),e._writableState.errorEmitted=!0,I(e,r)):(i(r),e._writableState.errorEmitted=!0,I(e,r),k(e,t))}(e,n,r,t,i):((a=N(n)||e.destroyed)||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?g.nextTick(x,e,n,a,i):x(e,n,a,i))}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}function C(e){var t=this instanceof(i=i||w(38));if(!t&&!r.call(C,this))return new C(e);this._writableState=new h(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e["final"]&&(this._final=e["final"])),n.call(this)}function B(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new p("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function x(e,t,n,r){var i,a;n||(i=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,i.emit("drain"))),t.pendingcb--,r(),k(e,t)}function S(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var o=0,s=!0;n;)(i[o]=n).isBuf||(s=!1),n=n.next,o+=1;i.allBuffers=s,B(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new d(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,l=n.callback;if(B(e,t,!1,t.objectMode?1:c.length,c,u,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(t,n){t._final(function(e){n.pendingcb--,e&&I(t,e),n.prefinished=!0,t.emit("prefinish"),k(t,n)})}function k(e,t){var n,r,i,a=N(t);return a&&(r=e,(i=t).prefinished||i.finalCalled||("function"!=typeof r._final||i.destroyed?(i.prefinished=!0,r.emit("prefinish")):(i.pendingcb++,i.finalCalled=!0,g.nextTick(D,r,i))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),!t.autoDestroy||(!(n=e._readableState)||n.autoDestroy&&n.endEmitted)&&e.destroy())),a}w(1)(C,n),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(r=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!r.call(this,e)||this===C&&(e&&e._writableState instanceof h)}})):r=function r(e){return e instanceof this},C.prototype.pipe=function(){I(this,new l)},C.prototype.write=function(e,t,n){var r,i,a,o,s,c,u,l,d,p,f=this._writableState,_=!1,h=!f.objectMode&&(r=e,m.isBuffer(r)||r instanceof y);return h&&!m.isBuffer(e)&&(i=e,e=m.from(i)),"function"==typeof t&&(n=t,t=null),t=h?"buffer":t||f.defaultEncoding,"function"!=typeof n&&(n=T),f.ending?(l=this,d=n,p=new E,I(l,p),g.nextTick(d,p)):!h&&(a=this,o=f,c=n,null===(s=e)?u=new v:"string"==typeof s||o.objectMode||(u=new b("chunk",["string","Buffer"],s)),u&&(I(a,u),!void g.nextTick(c,u)))||(f.pendingcb++,_=function(e,t,n,r,i,a){{var o;n||(o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=m.from(t,n));return t}(t,r,i),r!==o&&(n=!0,i="buffer",r=o))}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);{var u;t.writing||t.corked?(u=t.lastBufferedRequest,t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1):B(e,t,!1,s,r,i,a)}return c}(this,f,h,e,t,n)),_},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new f(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,n){n(new c("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?g.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=a.destroy,C.prototype._undestroy=a.undestroy,C.prototype._destroy=function(e,t){t(e)}}).call(this,w(10),w(11))},function(e,t,n){"use strict";var r=n(2).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=d,this.end=p,t=3;break;default:return this.write=f,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"<EFBFBD>";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"<EFBFBD>";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"<EFBFBD>"}}(this,e);return n!==undefined?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function d(e,t){var n=(e.length-t)%3;return 0==n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}(t.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<EFBFBD>":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(0<=(i=s(t[r])))return 0<i&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(0<=(i=s(t[r])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=u;var r=n(37).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(38);function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var n=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(e,t){d(n,e,t)})}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(1)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r,i=this._transformState;i.writecb=n,i.writechunk=e,i.writeencoding=t,i.transforming||(r=this._readableState,(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark))},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},function(e,t,n){"use strict";var r=n(1),i=n(39),a=n(2).Buffer,E=[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],o=new Array(64);function s(){this.init(),this._w=o,i.call(this,64,56)}r(s,i),s.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},s.prototype._update=function(e){for(var t,n,r=this._w,i=0|this._a,a=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,u=0|this._f,l=0|this._g,d=0|this._h,p=0;p<16;++p)r[p]=e.readInt32BE(4*p);for(;p<64;++p)r[p]=0|(((n=r[p-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+r[p-7]+(((t=r[p-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+r[p-16];for(var f,_,h,g,m,y=0;y<64;++y)var b=d+(((m=c)>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+((g=l)^c&(u^g))+E[y]+r[y]|0,v=0|(((h=i)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((f=i)&(_=a)|o&(f|_)),d=l,l=u,u=c,c=s+b|0,s=o,o=a,a=i,i=b+v|0;this._a=i+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=u+this._f|0,this._g=l+this._g|0,this._h=d+this._h|0},s.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,n){"use strict";var r=n(1),i=n(39),a=n(2).Buffer,$=[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],o=new Array(160);function s(){this.init(),this._w=o,i.call(this,128,112)}function ee(e,t,n){return n^e&(t^n)}function te(e,t,n){return e&t|n&(e|t)}function ne(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function re(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ie(e,t){return e>>>0<t>>>0?1:0}r(s,i),s.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},s.prototype._update=function(e){for(var t,n,r,i,a,o,s,c,u=this._w,l=0|this._ah,d=0|this._bh,p=0|this._ch,f=0|this._dh,_=0|this._eh,h=0|this._fh,g=0|this._gh,m=0|this._hh,y=0|this._al,b=0|this._bl,v=0|this._cl,E=0|this._dl,I=0|this._el,T=0|this._fl,C=0|this._gl,B=0|this._hl,x=0;x<32;x+=2)u[x]=e.readInt32BE(4*x),u[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var S=u[x-30],N=u[x-30+1],D=((s=S)>>>1|(c=N)<<31)^(s>>>8|c<<24)^s>>>7,k=((a=N)>>>1|(o=S)<<31)^(a>>>8|o<<24)^(a>>>7|o<<25),S=u[x-4],N=u[x-4+1],A=((r=S)>>>19|(i=N)<<13)^(i>>>29|r<<3)^r>>>6,w=((t=N)>>>19|(n=S)<<13)^(n>>>29|t<<3)^(t>>>6|n<<26),V=u[x-14],P=u[x-14+1],L=u[x-32],M=u[x-32+1],F=k+P|0,O=D+V+ie(F,k)|0;O=(O=O+A+ie(F=F+w|0,w)|0)+L+ie(F=F+M|0,M)|0,u[x]=O,u[x+1]=F}for(var R=0;R<160;R+=2){O=u[R],F=u[R+1];var H=te(l,d,p),j=te(y,b,v),W=ne(l,y),G=ne(y,l),Y=re(_,I),J=re(I,_),z=$[R+1],U=ee(_,h,g),K=ee(I,T,C),Z=B+J|0,X=m+Y+ie(Z,B)|0;X=(X=(X=X+U+ie(Z=Z+K|0,K)|0)+$[R]+ie(Z=Z+z|0,z)|0)+O+ie(Z=Z+F|0,F)|0;var q=G+j|0,Q=W+H+ie(q,G)|0,m=g,B=C,g=h,C=T,h=_,T=I,_=f+X+ie(I=E+Z|0,E)|0,f=p,E=v,p=d,v=b,d=l,b=y,l=X+Q+ie(y=Z+q|0,Z)|0}this._al=this._al+y|0,this._bl=this._bl+b|0,this._cl=this._cl+v|0,this._dl=this._dl+E|0,this._el=this._el+I|0,this._fl=this._fl+T|0,this._gl=this._gl+C|0,this._hl=this._hl+B|0,this._ah=this._ah+l+ie(this._al,y)|0,this._bh=this._bh+d+ie(this._bl,b)|0,this._ch=this._ch+p+ie(this._cl,v)|0,this._dh=this._dh+f+ie(this._dl,E)|0,this._eh=this._eh+_+ie(this._el,I)|0,this._fh=this._fh+h+ie(this._fl,T)|0,this._gh=this._gh+g+ie(this._gl,C)|0,this._hh=this._hh+m+ie(this._hl,B)|0},s.prototype._hash=function(){var r=a.allocUnsafe(64);function e(e,t,n){r.writeInt32BE(e,n),r.writeInt32BE(t,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r},e.exports=s},function(e,t,n){"use strict";var r=n(2).Buffer;e.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function r(t){return typeof t}:function r(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}var i;function a(e){this.rand=e}if(e.exports=function(e){return(i=i||new a(null)).generate(e)},(e.exports.Rand=a).prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":r(self)))self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":r(window))&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(809);if("function"!=typeof o.randomBytes)throw new Error("Not supported");a.prototype._rand=function(e){return o.randomBytes(e)}}catch(s){}},function(e,t,n){"use strict";var r=t;r.base=n(61),r["short"]=n(810),r.mont=n(811),r.edwards=n(812)},function(e,t,n){"use strict";var r=n(21).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?t^n^r:2===e?a(t,n,r):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(21),i=n(45),a=n(121),_=n(26),h=r.sum32,g=r.sum32_4,m=r.sum32_5,y=a.ch32,b=a.maj32,v=a.s0_256,E=a.s1_256,I=a.g0_256,T=a.g1_256,o=i.BlockHash,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}r.inherits(c,o),(e.exports=c).blockSize=512,c.outSize=256,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=g(T(n[r-2]),n[r-7],I(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],u=this.h[5],l=this.h[6],d=this.h[7];for(_(this.k.length===n.length),r=0;r<n.length;r++)var p=m(d,E(c),y(c,u,l),this.k[r],n[r]),f=h(v(i),b(i,a,o)),d=l,l=u,u=c,c=h(s,p),s=o,o=a,a=i,i=h(p,f);this.h[0]=h(this.h[0],i),this.h[1]=h(this.h[1],a),this.h[2]=h(this.h[2],o),this.h[3]=h(this.h[3],s),this.h[4]=h(this.h[4],c),this.h[5]=h(this.h[5],u),this.h[6]=h(this.h[6],l),this.h[7]=h(this.h[7],d)},c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(21),i=n(45),P=n(26),L=r.rotr64_hi,M=r.rotr64_lo,p=r.shr64_hi,f=r.shr64_lo,F=r.sum64,O=r.sum64_hi,R=r.sum64_lo,_=r.sum64_4_hi,h=r.sum64_4_lo,H=r.sum64_5_hi,j=r.sum64_5_lo,a=i.BlockHash,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];function s(){if(!(this instanceof s))return new s;a.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=o,this.W=new Array(160)}r.inherits(s,a),(e.exports=s).blockSize=1024,s.outSize=512,s.hmacStrength=192,s.padLength=128,s.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=function(e,t){var n=L(e,t,19),r=L(t,e,29),i=p(e,t,6),a=n^r^i;a<0&&(a+=4294967296);return a}(n[r-4],n[r-3]),a=function(e,t){var n=M(e,t,19),r=M(t,e,29),i=f(e,t,6),a=n^r^i;a<0&&(a+=4294967296);return a}(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=function(e,t){var n=L(e,t,1),r=L(e,t,8),i=p(e,t,7),a=n^r^i;a<0&&(a+=4294967296);return a}(n[r-30],n[r-29]),u=function(e,t){var n=M(e,t,1),r=M(e,t,8),i=f(e,t,7),a=n^r^i;a<0&&(a+=4294967296);return a}(n[r-30],n[r-29]),l=n[r-32],d=n[r-31];n[r]=_(i,a,o,s,c,u,l,d),n[r+1]=h(i,a,o,s,c,u,l,d)}},s.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],c=this.h[5],u=this.h[6],l=this.h[7],d=this.h[8],p=this.h[9],f=this.h[10],_=this.h[11],h=this.h[12],g=this.h[13],m=this.h[14],y=this.h[15];P(this.k.length===n.length);for(var b=0;b<n.length;b+=2)var v=m,E=y,I=function(e,t){var n=L(e,t,14),r=L(e,t,18),i=L(t,e,9),a=n^r^i;a<0&&(a+=4294967296);return a}(d,p),T=function(e,t){var n=M(e,t,14),r=M(e,t,18),i=M(t,e,9),a=n^r^i;a<0&&(a+=4294967296);return a}(d,p),C=function(e,t,n){var r=e&t^~e&n;r<0&&(r+=4294967296);return r}(d,f,h),B=function(e,t,n){var r=e&t^~e&n;r<0&&(r+=4294967296);return r}(p,_,g),x=this.k[b],S=this.k[b+1],N=n[b],D=n[b+1],k=H(v,E,I,T,C,B,x,S,N,D),A=j(v,E,I,T,C,B,x,S,N,D),v=function(e,t){var n=L(e,t,28),r=L(t,e,2),i=L(t,e,7),a=n^r^i;a<0&&(a+=4294967296);return a}(r,i),E=function(e,t){var n=M(e,t,28),r=M(t,e,2),i=M(t,e,7),a=n^r^i;a<0&&(a+=4294967296);return a}(r,i),I=function(e,t,n){var r=e&t^e&n^t&n;r<0&&(r+=4294967296);return r}(r,a,s),T=function(e,t,n){var r=e&t^e&n^t&n;r<0&&(r+=4294967296);return r}(i,o,c),w=O(v,E,I,T),V=R(v,E,I,T),m=h,y=g,h=f,g=_,f=d,_=p,d=O(u,l,k,A),p=R(l,l,k,A),u=s,l=c,s=a,c=o,a=r,o=i,r=O(k,A,w,V),i=R(k,A,w,V);F(this.h,0,r,i),F(this.h,2,a,o),F(this.h,4,s,c),F(this.h,6,u,l),F(this.h,8,d,p),F(this.h,10,f,_),F(this.h,12,h,g),F(this.h,14,m,y)},s.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function y(t){return typeof t}:function y(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(e)}var b=n(829),v=n(840),E=n(841),I=n(129),T=n(101),C=n(2).Buffer;function r(e){var t;"object"!==y(e)||C.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=C.from(e));var n,r,i,a,o,s,c,u,l,d,p,f,_,h=E(e,t),g=h.tag,m=h.data;switch(g){case"CERTIFICATE":r=b.certificate.decode(m,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n=(r=r||b.PublicKey.decode(m,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return b.RSAPublicKey.decode(r.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return r.subjectPrivateKey=r.subjectPublicKey,{type:"ec",data:r};case"1.2.840.10040.4.1":return r.algorithm.params.pub_key=b.DSAparam.decode(r.subjectPublicKey.data,"der"),{type:"dsa",data:r.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+g);case"ENCRYPTED PRIVATE KEY":m=b.EncryptedPrivateKey.decode(m,"der"),a=t,o=(i=m).algorithm.decrypt.kde.kdeparams.salt,s=parseInt(i.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=v[i.algorithm.decrypt.cipher.algo.join(".")],u=i.algorithm.decrypt.cipher.iv,l=i.subjectPrivateKey,d=parseInt(c.split("-")[1],10)/8,p=T.pbkdf2Sync(a,o,s,d,"sha1"),f=I.createDecipheriv(c,p,u),(_=[]).push(f.update(l)),_.push(f["final"]()),m=C.concat(_);case"PRIVATE KEY":switch(n=(r=b.PrivateKey.decode(m,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return b.RSAPrivateKey.decode(r.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:r.algorithm.curve,privateKey:b.ECPrivateKey.decode(r.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return r.algorithm.params.priv_key=b.DSAparam.decode(r.subjectPrivateKey,"der"),{type:"dsa",params:r.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+g);case"RSA PUBLIC KEY":return b.RSAPublicKey.decode(m,"der");case"RSA PRIVATE KEY":return b.RSAPrivateKey.decode(m,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:b.DSAPrivateKey.decode(m,"der")};case"EC PRIVATE KEY":return{curve:(m=b.ECPrivateKey.decode(m,"der")).parameters.value,privateKey:m.privateKey};default:throw new Error("unknown key type "+g)}}(e.exports=r).signature=b.signature},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function r(t){return typeof t}:function r(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}var i=n(1),a=n(47).Reporter,o=n(15).Buffer;function s(e,t){a.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function c(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof c||(e=new c(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+r(e));this.value=e,this.length=e.length}}i(s,a),(t.DecoderBuffer=s).prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,a.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},(t.EncoderBuffer=c).prototype.join=function(t,n){return t=t||new o(this.length),n=n||0,0===this.length||(Array.isArray(this.value)?this.value.forEach(function(e){e.join(t,n),n+=e.length}):("number"==typeof this.value?t[n]=this.value:"string"==typeof this.value?t.write(this.value,n):o.isBuffer(this.value)&&this.value.copy(t,n),n+=this.length)),t}},function(e,t,n){"use strict";var r=t;r._reverse=function(n){var r={};return Object.keys(n).forEach(function(e){(0|e)==e&&(e|=0);var t=n[e];r[t]=e}),r},r.der=n(834)},function(e,t,n){"use strict";var r=n(1),i=n(46),a=i.base,o=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function l(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n))for(var a=n,n=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(4<i)return e.error("length octect is too long");for(var a=r=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}(e.exports=c).prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(u,a.Node),u.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},u.prototype._decodeTag=function(e,t,n){var r=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=d(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){var n=l(e,t);if(e.isError(n))return n;var r,i=d(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},u.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=n.decode(e,"der",r);if(e.isError(o)&&a)break;i.push(o)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"!==t)return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported");var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")},u.prototype._decodeObjid=function(e,t,n){for(var r=[],i=0;!e.isEmpty();){var a=e.readUInt8();i<<=7,i|=127&a,0==(128&a)&&(r.push(i),i=0)}128&a&&r.push(i);var o,s=r[0]/40|0,c=r[0]%40,u=n?r:[s,c].concat(r.slice(1));return t&&((o=t[u.join(" ")])===undefined&&(o=t[u.join(".")]),o!==undefined&&(u=o)),u},u.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=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"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=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);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,c,0)},u.prototype._decodeNull=function(e){return null},u.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){var n=e.raw(),r=new o(n);return t&&(r=t[r.toString(10)]||r),r},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){"use strict";var r=n(1),u=n(15).Buffer,i=n(46),a=i.base,l=i.constants.der;function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){a.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}(e.exports=o).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(s,a.Node),s.prototype._encodeComposite=function(e,t,n,r){var i=function(e,t,n,r){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(l.tagByName.hasOwnProperty(e))i=l.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(31<=i)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=l.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(a=new u(2))[0]=i,a[1]=r.length,this._createEncoderBuffer([a,r]);for(var a,o=1,s=r.length;256<=s;s>>=8)o++;(a=new u(2+o))[0]=i,a[1]=128|o;for(var s=1+o,c=r.length;0<c;s--,c>>=8)a[s]=255&c;return this._createEncoderBuffer([a,r])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");for(var n=new u(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)},s.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var i=0,r=0;r<e.length;r++){var a=e[r];for(i++;128<=a;a>>=7)i++}for(var o=new u(i),s=o.length-1,r=e.length-1;0<=r;r--){a=e[r];for(o[s--]=127&a;0<(a>>=7);)o[s--]=128|127&a}return this._createEncoderBuffer(o)},s.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[c(r.getFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[c(r.getFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}var n;if("number"==typeof e||u.isBuffer(e)||(n=e.toArray(),!e.sign&&128&n[0]&&n.unshift(0),e=new u(n)),u.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=new u(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var r=1,a=e;256<=a;a>>=8)r++;for(a=(i=new Array(r)).length-1;0<=a;a--)i[a]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new u(i))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i["default"])return!1;var a=e.join();if(i.defaultBuffer===undefined&&(i.defaultBuffer=this._encodeValue(i["default"],t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},function(e,t,n){"use strict";var r=n(19);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=r.createDecipher,t.createDecipheriv=t.Decipheriv=r.createDecipheriv,t.listCiphers=t.getCiphers=r.getCiphers},function(e,t,n){"use strict";var s=n(60),c=n(2).Buffer;e.exports=function(e,t){for(var n,r,i,a=c.alloc(0),o=0;a.length<t;)r=o++,i=void 0,(i=c.allocUnsafe(4)).writeUInt32BE(r,0),n=i,a=c.concat([a,s("sha1").update(e).update(n).digest()]);return a.slice(0,t)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){"use strict";var r=n(8),i=n(2).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(t,e,n){"use strict";(function(h){var g=n(8),r=n(59);function e(e,t){var n,r,i={blinder:(r=m(n=t)).toRed(g.mont(n.modulus)).redPow(new g(n.publicExponent)).fromRed(),unblinder:r.invm(n.modulus)},a=t.modulus.byteLength(),o=(g.mont(t.modulus),new g(e).mul(i.blinder).umod(t.modulus)),s=o.toRed(g.mont(t.prime1)),c=o.toRed(g.mont(t.prime2)),u=t.coefficient,l=t.prime1,d=t.prime2,p=s.redPow(t.exponent1),f=c.redPow(t.exponent2),p=p.fromRed(),f=f.fromRed(),_=p.isub(f).imul(u).umod(l);return _.imul(d),f.iadd(_),new h(f.imul(i.unblinder).umod(t.modulus).toArray(!1,a))}function m(e){for(var t=e.modulus.byteLength(),n=new g(r(t));0<=n.cmp(e.modulus)||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new g(r(t));return n}(t.exports=e).getr=m}).call(this,n(15).Buffer)},function(e,t,n){"use strict";var _=n(135),h=n(48),r=n(136).ArraySet,i=n(849).MappingList;function o(e){e=e||{},this._file=h.getArg(e,"file",null),this._sourceRoot=h.getArg(e,"sourceRoot",null),this._skipValidation=h.getArg(e,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(r){var i=r.sourceRoot,a=new o({file:r.file,sourceRoot:i});return r.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=i&&(t.source=h.relative(i,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),a.addMapping(t)}),r.sources.forEach(function(e){var t=e;null!==i&&(t=h.relative(i,e)),a._sources.has(t)||a._sources.add(t);var n=r.sourceContentFor(e);null!=n&&a.setSourceContent(e,n)}),a},o.prototype.addMapping=function(e){var t=h.getArg(e,"generated"),n=h.getArg(e,"original",null),r=h.getArg(e,"source",null),i=h.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},o.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=h.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[h.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[h.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(i,e,a){var o=e;if(null==e){if(null==i.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');o=i.file}var s=this._sourceRoot;null!=s&&(o=h.relative(s,o));var c=new r,u=new r;this._mappings.unsortedForEach(function(e){var t;e.source!==o||null==e.originalLine||null!=(t=i.originalPositionFor({line:e.originalLine,column:e.originalColumn})).source&&(e.source=t.source,null!=a&&(e.source=h.join(a,e.source)),null!=s&&(e.source=h.relative(s,e.source)),e.originalLine=t.line,e.originalColumn=t.column,null!=t.name&&(e.name=t.name));var n=e.source;null==n||c.has(n)||c.add(n);var r=e.name;null==r||u.has(r)||u.add(r)},this),this._sources=c,this._names=u,i.sources.forEach(function(e){var t=i.sourceContentFor(e);null!=t&&(null!=a&&(e=h.join(a,e)),null!=s&&(e=h.relative(s,e)),this.setSourceContent(e,t))},this)},o.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&0<e.line&&0<=e.column)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&0<e.line&&0<=e.column&&0<t.line&&0<=t.column&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},o.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,a=1,o=0,s=0,c=0,u=0,l="",d=this._mappings.toArray(),p=0,f=d.length;p<f;p++){if(e="",(t=d[p]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(0<p){if(!h.compareByGeneratedPositionsInflated(t,d[p-1]))continue;e+=","}e+=_.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=_.encode(r-u),u=r,e+=_.encode(t.originalLine-1-s),s=t.originalLine-1,e+=_.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=_.encode(n-c),c=n)),l+=e}return l},o.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=h.relative(n,e));var t=h.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)},o.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=o},function(e,t,n){"use strict";var l=n(848);t.encode=function(e){for(var t,n,r="",i=(n=e)<0?1+(-n<<1):n<<1;t=31&i,0<(i>>>=5)&&(t|=32),r+=l.encode(t),0<i;);return r},t.decode=function(e,t,n){var r,i,a,o,s=e.length,c=0,u=0;do{if(s<=t)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=l.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),c+=(i&=31)<<u,u+=5}while(r);n.value=(o=(a=c)>>1,1==(1&a)?-o:o),n.rest=t}},function(e,t,n){"use strict";var a=n(48),o=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function c(){this._array=[],this._set=s?new Map:Object.create(null)}c.fromArray=function(e,t){for(var n=new c,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},c.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},c.prototype.add=function(e,t){var n=s?e:a.toSetString(e),r=s?this.has(e):o.call(this._set,n),i=this._array.length;r&&!t||this._array.push(e),r||(s?this._set.set(e,i):this._set[n]=i)},c.prototype.has=function(e){if(s)return this._set.has(e);var t=a.toSetString(e);return o.call(this._set,t)},c.prototype.indexOf=function(e){if(s){var t=this._set.get(e);if(0<=t)return t}else{var n=a.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},c.prototype.at=function(e){if(0<=e&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},c.prototype.toArray=function(){return this._array.slice()},t.ArraySet=c},function(e,t,n){var r=n(95);e.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(137),i=n(168),a=n(1140);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(137),i=n(1177),a=n(97),o=n(1159),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){(function(e){_global=undefined,_global="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:this,null==_global.BI&&(_global.BI={prepares:[]}),null==_global.BI.prepares&&(_global.BI.prepares=[])}).call(this,n(10))},function(e,t,n){n(171)(n(172))},function(e,t){e.exports=function(e){function t(e){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",e)}try{"undefined"!=typeof execScript&&"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener?execScript(e):"undefined"!=typeof eval?eval.call(null,e):t("EvalError: No eval function available")}catch(n){t(n)}}},function(e,t){e.exports="/**\r\n * @license\r\n * Lodash (Custom Build) <https://lodash.com/>\r\n * Build: `lodash core plus=\"debounce,throttle,get,set,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim,merge,groupBy,uniqBy,before,after\"`\r\n * Copyright JS Foundation and other contributors <https://js.foundation/>\r\n * Released under MIT license <https://lodash.com/license>\r\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\r\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\r\n */\r\n;(function() {\r\n\r\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\r\n var undefined;\r\n\r\n /** Used as the semantic version number. */\r\n var VERSION = '4.17.5';\r\n\r\n /** Used as the size to enable large array optimizations. */\r\n var LARGE_ARRAY_SIZE = 200;\r\n\r\n /** Error message constants. */\r\n var FUNC_ERROR_TEXT = 'Expected a function';\r\n\r\n /** Used to stand-in for `undefined` hash values. */\r\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\r\n\r\n /** Used as the maximum memoize cache size. */\r\n var MAX_MEMOIZE_SIZE = 500;\r\n\r\n /** Used as the internal argument placeholder. */\r\n var PLACEHOLDER = '__lodash_placeholder__';\r\n\r\n /** Used to compose bitmasks for cloning. */\r\n var CLONE_DEEP_FLAG = 1,\r\n CLONE_FLAT_FLAG = 2,\r\n CLONE_SYMBOLS_FLAG = 4;\r\n\r\n /** Used to compose bitmasks for value comparisons. */\r\n var COMPARE_PARTIAL_FLAG = 1,\r\n COMPARE_UNORDERED_FLAG = 2;\r\n\r\n /** Used to compose bitmasks for function metadata. */\r\n var WRAP_BIND_FLAG = 1,\r\n WRAP_BIND_KEY_FLAG = 2,\r\n WRAP_CURRY_BOUND_FLAG = 4,\r\n WRAP_CURRY_FLAG = 8,\r\n WRAP_CURRY_RIGHT_FLAG = 16,\r\n WRAP_PARTIAL_FLAG = 32,\r\n WRAP_PARTIAL_RIGHT_FLAG = 64,\r\n WRAP_ARY_FLAG = 128,\r\n WRAP_REARG_FLAG = 256,\r\n WRAP_FLIP_FLAG = 512;\r\n\r\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\r\n var HOT_COUNT = 800,\r\n HOT_SPAN = 16;\r\n\r\n /** Used to indicate the type of lazy iteratees. */\r\n var LAZY_FILTER_FLAG = 1,\r\n LAZY_MAP_FLAG = 2,\r\n LAZY_WHILE_FLAG = 3;\r\n\r\n /** Used as references for various `Number` constants. */\r\n var INFINITY = 1 / 0,\r\n MAX_SAFE_INTEGER = 9007199254740991,\r\n MAX_INTEGER = 1.7976931348623157e+308,\r\n NAN = 0 / 0;\r\n\r\n /** Used as references for the maximum length and index of an array. */\r\n var MAX_ARRAY_LENGTH = 4294967295;\r\n\r\n /** Used to associate wrap methods with their bit flags. */\r\n var wrapFlags = [\r\n ['ary', WRAP_ARY_FLAG],\r\n ['bind', WRAP_BIND_FLAG],\r\n ['bindKey', WRAP_BIND_KEY_FLAG],\r\n ['curry', WRAP_CURRY_FLAG],\r\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\r\n ['flip', WRAP_FLIP_FLAG],\r\n ['partial', WRAP_PARTIAL_FLAG],\r\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\r\n ['rearg', WRAP_REARG_FLAG]\r\n ];\r\n\r\n /** `Object#toString` result references. */\r\n var argsTag = '[object Arguments]',\r\n arrayTag = '[object Array]',\r\n asyncTag = '[object AsyncFunction]',\r\n boolTag = '[object Boolean]',\r\n dateTag = '[object Date]',\r\n errorTag = '[object Error]',\r\n funcTag = '[object Function]',\r\n genTag = '[object GeneratorFunction]',\r\n mapTag = '[object Map]',\r\n numberTag = '[object Number]',\r\n nullTag = '[object Null]',\r\n objectTag = '[object Object]',\r\n promiseTag = '[object Promise]',\r\n proxyTag = '[object Proxy]',\r\n regexpTag = '[object RegExp]',\r\n setTag = '[object Set]',\r\n stringTag = '[object String]',\r\n symbolTag = '[object Symbol]',\r\n undefinedTag = '[object Undefined]',\r\n weakMapTag = '[object WeakMap]';\r\n\r\n var arrayBufferTag = '[object ArrayBuffer]',\r\n dataViewTag = '[object DataView]',\r\n float32Tag = '[object Float32Array]',\r\n float64Tag = '[object Float64Array]',\r\n int8Tag = '[object Int8Array]',\r\n int16Tag = '[object Int16Array]',\r\n int32Tag = '[object Int32Array]',\r\n uint8Tag = '[object Uint8Array]',\r\n uint8ClampedTag = '[object Uint8ClampedArray]',\r\n uint16Tag = '[object Uint16Array]',\r\n uint32Tag = '[object Uint32Array]';\r\n\r\n /** Used to match HTML entities and HTML characters. */\r\n var reUnescapedHtml = /[&<>\"']/g,\r\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\r\n\r\n /** Used to match property names within property paths. */\r\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\r\n reIsPlainProp = /^\\w*$/,\r\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\r\n\r\n /**\r\n * Used to match `RegExp`\r\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\r\n */\r\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\r\n\r\n /** Used to match leading and trailing whitespace. */\r\n var reTrim = /^\\s+|\\s+$/g;\r\n\r\n /** Used to match wrap detail comments. */\r\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\r\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\r\n reSplitDetails = /,? & /;\r\n\r\n /** Used to match backslashes in property paths. */\r\n var reEscapeChar = /\\\\(\\\\)?/g;\r\n\r\n /** Used to match `RegExp` flags from their coerced string values. */\r\n var reFlags = /\\w*$/;\r\n\r\n /** Used to detect bad signed hexadecimal string values. */\r\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\r\n\r\n /** Used to detect binary string values. */\r\n var reIsBinary = /^0b[01]+$/i;\r\n\r\n /** Used to detect host constructors (Safari). */\r\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\r\n\r\n /** Used to detect octal string values. */\r\n var reIsOctal = /^0o[0-7]+$/i;\r\n\r\n /** Used to detect unsigned integer values. */\r\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\r\n\r\n /** Used to compose unicode character classes. */\r\n var rsAstralRange = '\\\\ud800-\\\\udfff',\r\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\r\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\r\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\r\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\r\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\r\n\r\n /** Used to compose unicode capture groups. */\r\n var rsAstral = '[' + rsAstralRange + ']',\r\n rsCombo = '[' + rsComboRange + ']',\r\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\r\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\r\n rsNonAstral = '[^' + rsAstralRange + ']',\r\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\r\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\r\n rsZWJ = '\\\\u200d';\r\n\r\n /** Used to compose unicode regexes. */\r\n var reOptMod = rsModifier + '?',\r\n rsOptVar = '[' + rsVarRange + ']?',\r\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\r\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\r\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\r\n\r\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\r\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\r\n\r\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\r\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\r\n\r\n /** Used to identify `toStringTag` values of typed arrays. */\r\n var typedArrayTags = {};\r\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\r\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\r\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\r\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\r\n typedArrayTags[uint32Tag] = true;\r\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\r\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\r\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\r\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\r\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\r\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\r\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\r\n typedArrayTags[weakMapTag] = false;\r\n\r\n /** Used to identify `toStringTag` values supported by `_.clone`. */\r\n var cloneableTags = {};\r\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\r\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\r\n cloneableTags[boolTag] = cloneableTags[dateTag] =\r\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\r\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\r\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\r\n cloneableTags[numberTag] = cloneableTags[objectTag] =\r\n cloneableTags[regexpTag] = cloneableTags[setTag] =\r\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\r\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\r\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\r\n cloneableTags[errorTag] = cloneableTags[funcTag] =\r\n cloneableTags[weakMapTag] = false;\r\n\r\n /** Used to map characters to HTML entities. */\r\n var htmlEscapes = {\r\n '&': '&amp;',\r\n '<': '&lt;',\r\n '>': '&gt;',\r\n '\"': '&quot;',\r\n \"'\": '&#39;'\r\n };\r\n\r\n /** Built-in method references without a dependency on `root`. */\r\n var freeParseFloat = parseFloat,\r\n freeParseInt = parseInt;\r\n\r\n /** Detect free variable `global` from Node.js. */\r\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\r\n\r\n /** Detect free variable `self`. */\r\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\r\n\r\n /** Used as a reference to the global object. */\r\n var root = freeGlobal || freeSelf || Function('return this')();\r\n\r\n /** Detect free variable `exports`. */\r\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\r\n\r\n /** Detect free variable `module`. */\r\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\r\n\r\n /** Detect the popular CommonJS extension `module.exports`. */\r\n var moduleExports = freeModule && freeModule.exports === freeExports;\r\n\r\n /** Detect free variable `process` from Node.js. */\r\n var freeProcess = moduleExports && freeGlobal.process;\r\n\r\n /** Used to access faster Node.js helpers. */\r\n var nodeUtil = (function() {\r\n try {\r\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\r\n } catch (e) {}\r\n }());\r\n\r\n /* Node.js helper references. */\r\n var nodeIsDate = nodeUtil && nodeUtil.isDate,\r\n nodeIsMap = nodeUtil && nodeUtil.isMap,\r\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\r\n nodeIsSet = nodeUtil && nodeUtil.isSet,\r\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\r\n\r\n /*--------------------------------------------------------------------------*/\r\n\r\n /**\r\n * A faster alternative to `Function#apply`, this function invokes `func`\r\n * with the `this` binding of `thisArg` and the arguments of `args`.\r\n *\r\n * @private\r\n * @param {Function} func The function to invoke.\r\n * @param {*} thisArg The `this` binding of `func`.\r\n * @param {Array} args The arguments to invoke `func` with.\r\n * @returns {*} Returns the result of `func`.\r\n */\r\n function apply(func, thisArg, args) {\r\n switch (args.length) {\r\n case 0: return func.call(thisArg);\r\n case 1: return func.call(thisArg, args[0]);\r\n case 2: return func.call(thisArg, args[0], args[1]);\r\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\r\n }\r\n return func.apply(thisArg, args);\r\n }\r\n\r\n /**\r\n * A specialized version of `baseAggregator` for arrays.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to iterate over.\r\n * @param {Function} setter The function to set `accumulator` values.\r\n * @param {Function} iteratee The iteratee to transform keys.\r\n * @param {Object} accumulator The initial aggregated object.\r\n * @returns {Function} Returns `accumulator`.\r\n */\r\n function arrayAggregator(array, setter, iteratee, accumulator) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length;\r\n\r\n while (++index < length) {\r\n var value = array[index];\r\n setter(accumulator, value, iteratee(value), array);\r\n }\r\n return accumulator;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.forEach` for arrays without support for\r\n * iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @returns {Array} Returns `array`.\r\n */\r\n function arrayEach(array, iteratee) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length;\r\n\r\n while (++index < length) {\r\n if (iteratee(array[index], index, array) === false) {\r\n break;\r\n }\r\n }\r\n return array;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.every` for arrays without support for\r\n * iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to iterate over.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\r\n * else `false`.\r\n */\r\n function arrayEvery(array, predicate) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length;\r\n\r\n while (++index < length) {\r\n if (!predicate(array[index], index, array)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.filter` for arrays without support for\r\n * iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to iterate over.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @returns {Array} Returns the new filtered array.\r\n */\r\n function arrayFilter(array, predicate) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length,\r\n resIndex = 0,\r\n result = [];\r\n\r\n while (++index < length) {\r\n var value = array[index];\r\n if (predicate(value, index, array)) {\r\n result[resIndex++] = value;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.includes` for arrays without support for\r\n * specifying an index to search from.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to inspect.\r\n * @param {*} target The value to search for.\r\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\r\n */\r\n function arrayIncludes(array, value) {\r\n var length = array == null ? 0 : array.length;\r\n return !!length && baseIndexOf(array, value, 0) > -1;\r\n }\r\n\r\n /**\r\n * This function is like `arrayIncludes` except that it accepts a comparator.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to inspect.\r\n * @param {*} target The value to search for.\r\n * @param {Function} comparator The comparator invoked per element.\r\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\r\n */\r\n function arrayIncludesWith(array, value, comparator) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length;\r\n\r\n while (++index < length) {\r\n if (comparator(value, array[index])) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.map` for arrays without support for iteratee\r\n * shorthands.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @returns {Array} Returns the new mapped array.\r\n */\r\n function arrayMap(array, iteratee) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length,\r\n result = Array(length);\r\n\r\n while (++index < length) {\r\n result[index] = iteratee(array[index], index, array);\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Appends the elements of `values` to `array`.\r\n *\r\n * @private\r\n * @param {Array} array The array to modify.\r\n * @param {Array} values The values to append.\r\n * @returns {Array} Returns `array`.\r\n */\r\n function arrayPush(array, values) {\r\n var index = -1,\r\n length = values.length,\r\n offset = array.length;\r\n\r\n while (++index < length) {\r\n array[offset + index] = values[index];\r\n }\r\n return array;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.reduce` for arrays without support for\r\n * iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @param {*} [accumulator] The initial value.\r\n * @param {boolean} [initAccum] Specify using the first element of `array` as\r\n * the initial value.\r\n * @returns {*} Returns the accumulated value.\r\n */\r\n function arrayReduce(array, iteratee, accumulator, initAccum) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length;\r\n\r\n if (initAccum && length) {\r\n accumulator = array[++index];\r\n }\r\n while (++index < length) {\r\n accumulator = iteratee(accumulator, array[index], index, array);\r\n }\r\n return accumulator;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.some` for arrays without support for iteratee\r\n * shorthands.\r\n *\r\n * @private\r\n * @param {Array} [array] The array to iterate over.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @returns {boolean} Returns `true` if any element passes the predicate check,\r\n * else `false`.\r\n */\r\n function arraySome(array, predicate) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length;\r\n\r\n while (++index < length) {\r\n if (predicate(array[index], index, array)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n /**\r\n * Gets the size of an ASCII `string`.\r\n *\r\n * @private\r\n * @param {string} string The string inspect.\r\n * @returns {number} Returns the string size.\r\n */\r\n var asciiSize = baseProperty('length');\r\n\r\n /**\r\n * Converts an ASCII `string` to an array.\r\n *\r\n * @private\r\n * @param {string} string The string to convert.\r\n * @returns {Array} Returns the converted array.\r\n */\r\n function asciiToArray(string) {\r\n return string.split('');\r\n }\r\n\r\n /**\r\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\r\n * without support for iteratee shorthands, which iterates over `collection`\r\n * using `eachFunc`.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to inspect.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @param {Function} eachFunc The function to iterate over `collection`.\r\n * @returns {*} Returns the found element or its key, else `undefined`.\r\n */\r\n function baseFindKey(collection, predicate, eachFunc) {\r\n var result;\r\n eachFunc(collection, function(value, key, collection) {\r\n if (predicate(value, key, collection)) {\r\n result = key;\r\n return false;\r\n }\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\r\n * support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @param {number} fromIndex The index to search from.\r\n * @param {boolean} [fromRight] Specify iterating from right to left.\r\n * @returns {number} Returns the index of the matched value, else `-1`.\r\n */\r\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\r\n var length = array.length,\r\n index = fromIndex + (fromRight ? 1 : -1);\r\n\r\n while ((fromRight ? index-- : ++index < length)) {\r\n if (predicate(array[index], index, array)) {\r\n return index;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {*} value The value to search for.\r\n * @param {number} fromIndex The index to search from.\r\n * @returns {number} Returns the index of the matched value, else `-1`.\r\n */\r\n function baseIndexOf(array, value, fromIndex) {\r\n return value === value\r\n ? strictIndexOf(array, value, fromIndex)\r\n : baseFindIndex(array, baseIsNaN, fromIndex);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isNaN` without support for number objects.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\r\n */\r\n function baseIsNaN(value) {\r\n return value !== value;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.property` without support for deep paths.\r\n *\r\n * @private\r\n * @param {string} key The key of the property to get.\r\n * @returns {Function} Returns the new accessor function.\r\n */\r\n function baseProperty(key) {\r\n return function(object) {\r\n return object == null ? undefined : object[key];\r\n };\r\n }\r\n\r\n /**\r\n * The base implementation of `_.propertyOf` without support for deep paths.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Function} Returns the new accessor function.\r\n */\r\n function basePropertyOf(object) {\r\n return function(key) {\r\n return object == null ? undefined : object[key];\r\n };\r\n }\r\n\r\n /**\r\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\r\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @param {*} accumulator The initial value.\r\n * @param {boolean} initAccum Specify using the first or last element of\r\n * `collection` as the initial value.\r\n * @param {Function} eachFunc The function to iterate over `collection`.\r\n * @returns {*} Returns the accumulated value.\r\n */\r\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\r\n eachFunc(collection, function(value, index, collection) {\r\n accumulator = initAccum\r\n ? (initAccum = false, value)\r\n : iteratee(accumulator, value, index, collection);\r\n });\r\n return accumulator;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.sortBy` which uses `comparer` to define the\r\n * sort order of `array` and replaces criteria objects with their corresponding\r\n * values.\r\n *\r\n * @private\r\n * @param {Array} array The array to sort.\r\n * @param {Function} comparer The function to define sort order.\r\n * @returns {Array} Returns `array`.\r\n */\r\n function baseSortBy(array, comparer) {\r\n var length = array.length;\r\n\r\n array.sort(comparer);\r\n while (length--) {\r\n array[length] = array[length].value;\r\n }\r\n return array;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.times` without support for iteratee shorthands\r\n * or max array length checks.\r\n *\r\n * @private\r\n * @param {number} n The number of times to invoke `iteratee`.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @returns {Array} Returns the array of results.\r\n */\r\n function baseTimes(n, iteratee) {\r\n var index = -1,\r\n result = Array(n);\r\n\r\n while (++index < n) {\r\n result[index] = iteratee(index);\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.unary` without support for storing metadata.\r\n *\r\n * @private\r\n * @param {Function} func The function to cap arguments for.\r\n * @returns {Function} Returns the new capped function.\r\n */\r\n function baseUnary(func) {\r\n return function(value) {\r\n return func(value);\r\n };\r\n }\r\n\r\n /**\r\n * The base implementation of `_.values` and `_.valuesIn` which creates an\r\n * array of `object` property values corresponding to the property names\r\n * of `props`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {Array} props The property names to get values for.\r\n * @returns {Object} Returns the array of property values.\r\n */\r\n function baseValues(object, props) {\r\n return arrayMap(props, function(key) {\r\n return object[key];\r\n });\r\n }\r\n\r\n /**\r\n * Checks if a `cache` value for `key` exists.\r\n *\r\n * @private\r\n * @param {Object} cache The cache to query.\r\n * @param {string} key The key of the entry to check.\r\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\r\n */\r\n function cacheHas(cache, key) {\r\n return cache.has(key);\r\n }\r\n\r\n /**\r\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\r\n * that is not found in the character symbols.\r\n *\r\n * @private\r\n * @param {Array} strSymbols The string symbols to inspect.\r\n * @param {Array} chrSymbols The character symbols to find.\r\n * @returns {number} Returns the index of the first unmatched string symbol.\r\n */\r\n function charsStartIndex(strSymbols, chrSymbols) {\r\n var index = -1,\r\n length = strSymbols.length;\r\n\r\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\r\n return index;\r\n }\r\n\r\n /**\r\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\r\n * that is not found in the character symbols.\r\n *\r\n * @private\r\n * @param {Array} strSymbols The string symbols to inspect.\r\n * @param {Array} chrSymbols The character symbols to find.\r\n * @returns {number} Returns the index of the last unmatched string symbol.\r\n */\r\n function charsEndIndex(strSymbols, chrSymbols) {\r\n var index = strSymbols.length;\r\n\r\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\r\n return index;\r\n }\r\n\r\n /**\r\n * Gets the number of `placeholder` occurrences in `array`.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {*} placeholder The placeholder to search for.\r\n * @returns {number} Returns the placeholder count.\r\n */\r\n function countHolders(array, placeholder) {\r\n var length = array.length,\r\n result = 0;\r\n\r\n while (length--) {\r\n if (array[length] === placeholder) {\r\n ++result;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Used by `_.escape` to convert characters to HTML entities.\r\n *\r\n * @private\r\n * @param {string} chr The matched character to escape.\r\n * @returns {string} Returns the escaped character.\r\n */\r\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\r\n\r\n /**\r\n * Gets the value at `key` of `object`.\r\n *\r\n * @private\r\n * @param {Object} [object] The object to query.\r\n * @param {string} key The key of the property to get.\r\n * @returns {*} Returns the property value.\r\n */\r\n function getValue(object, key) {\r\n return object == null ? undefined : object[key];\r\n }\r\n\r\n /**\r\n * Checks if `string` contains Unicode symbols.\r\n *\r\n * @private\r\n * @param {string} string The string to inspect.\r\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\r\n */\r\n function hasUnicode(string) {\r\n return reHasUnicode.test(string);\r\n }\r\n\r\n /**\r\n * Converts `iterator` to an array.\r\n *\r\n * @private\r\n * @param {Object} iterator The iterator to convert.\r\n * @returns {Array} Returns the converted array.\r\n */\r\n function iteratorToArray(iterator) {\r\n var data,\r\n result = [];\r\n\r\n while (!(data = iterator.next()).done) {\r\n result.push(data.value);\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Converts `map` to its key-value pairs.\r\n *\r\n * @private\r\n * @param {Object} map The map to convert.\r\n * @returns {Array} Returns the key-value pairs.\r\n */\r\n function mapToArray(map) {\r\n var index = -1,\r\n result = Array(map.size);\r\n\r\n map.forEach(function(value, key) {\r\n result[++index] = [key, value];\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * Creates a unary function that invokes `func` with its argument transformed.\r\n *\r\n * @private\r\n * @param {Function} func The function to wrap.\r\n * @param {Function} transform The argument transform.\r\n * @returns {Function} Returns the new function.\r\n */\r\n function overArg(func, transform) {\r\n return function(arg) {\r\n return func(transform(arg));\r\n };\r\n }\r\n\r\n /**\r\n * Replaces all `placeholder` elements in `array` with an internal placeholder\r\n * and returns an array of their indexes.\r\n *\r\n * @private\r\n * @param {Array} array The array to modify.\r\n * @param {*} placeholder The placeholder to replace.\r\n * @returns {Array} Returns the new array of placeholder indexes.\r\n */\r\n function replaceHolders(array, placeholder) {\r\n var index = -1,\r\n length = array.length,\r\n resIndex = 0,\r\n result = [];\r\n\r\n while (++index < length) {\r\n var value = array[index];\r\n if (value === placeholder || value === PLACEHOLDER) {\r\n array[index] = PLACEHOLDER;\r\n result[resIndex++] = index;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Gets the value at `key`, unless `key` is \"__proto__\".\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {string} key The key of the property to get.\r\n * @returns {*} Returns the property value.\r\n */\r\n function safeGet(object, key) {\r\n return key == '__proto__'\r\n ? undefined\r\n : object[key];\r\n }\r\n\r\n /**\r\n * Converts `set` to an array of its values.\r\n *\r\n * @private\r\n * @param {Object} set The set to convert.\r\n * @returns {Array} Returns the values.\r\n */\r\n function setToArray(set) {\r\n var index = -1,\r\n result = Array(set.size);\r\n\r\n set.forEach(function(value) {\r\n result[++index] = value;\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * A specialized version of `_.indexOf` which performs strict equality\r\n * comparisons of values, i.e. `===`.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {*} value The value to search for.\r\n * @param {number} fromIndex The index to search from.\r\n * @returns {number} Returns the index of the matched value, else `-1`.\r\n */\r\n function strictIndexOf(array, value, fromIndex) {\r\n var index = fromIndex - 1,\r\n length = array.length;\r\n\r\n while (++index < length) {\r\n if (array[index] === value) {\r\n return index;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n /**\r\n * Gets the number of symbols in `string`.\r\n *\r\n * @private\r\n * @param {string} string The string to inspect.\r\n * @returns {number} Returns the string size.\r\n */\r\n function stringSize(string) {\r\n return hasUnicode(string)\r\n ? unicodeSize(string)\r\n : asciiSize(string);\r\n }\r\n\r\n /**\r\n * Converts `string` to an array.\r\n *\r\n * @private\r\n * @param {string} string The string to convert.\r\n * @returns {Array} Returns the converted array.\r\n */\r\n function stringToArray(string) {\r\n return hasUnicode(string)\r\n ? unicodeToArray(string)\r\n : asciiToArray(string);\r\n }\r\n\r\n /**\r\n * Gets the size of a Unicode `string`.\r\n *\r\n * @private\r\n * @param {string} string The string inspect.\r\n * @returns {number} Returns the string size.\r\n */\r\n function unicodeSize(string) {\r\n var result = reUnicode.lastIndex = 0;\r\n while (reUnicode.test(string)) {\r\n ++result;\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Converts a Unicode `string` to an array.\r\n *\r\n * @private\r\n * @param {string} string The string to convert.\r\n * @returns {Array} Returns the converted array.\r\n */\r\n function unicodeToArray(string) {\r\n return string.match(reUnicode) || [];\r\n }\r\n\r\n /*--------------------------------------------------------------------------*/\r\n\r\n /** Used for built-in method references. */\r\n var arrayProto = Array.prototype,\r\n funcProto = Function.prototype,\r\n objectProto = Object.prototype;\r\n\r\n /** Used to detect overreaching core-js shims. */\r\n var coreJsData = root['__core-js_shared__'];\r\n\r\n /** Used to resolve the decompiled source of functions. */\r\n var funcToString = funcProto.toString;\r\n\r\n /** Used to check objects for own properties. */\r\n var hasOwnProperty = objectProto.hasOwnProperty;\r\n\r\n /** Used to generate unique IDs. */\r\n var idCounter = 0;\r\n\r\n /** Used to detect methods masquerading as native. */\r\n var maskSrcKey = (function() {\r\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\r\n return uid ? ('Symbol(src)_1.' + uid) : '';\r\n }());\r\n\r\n /**\r\n * Used to resolve the\r\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\r\n * of values.\r\n */\r\n var nativeObjectToString = objectProto.toString;\r\n\r\n /** Used to infer the `Object` constructor. */\r\n var objectCtorString = funcToString.call(Object);\r\n\r\n /** Used to restore the original `_` reference in `_.noConflict`. */\r\n var oldDash = root._;\r\n\r\n /** Used to detect if a method is native. */\r\n var reIsNative = RegExp('^' +\r\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\r\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\r\n );\r\n\r\n /** Built-in value references. */\r\n var Buffer = moduleExports ? root.Buffer : undefined,\r\n Symbol = root.Symbol,\r\n Uint8Array = root.Uint8Array,\r\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\r\n getPrototype = overArg(Object.getPrototypeOf, Object),\r\n objectCreate = Object.create,\r\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\r\n splice = arrayProto.splice,\r\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\r\n symIterator = Symbol ? Symbol.iterator : undefined,\r\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\r\n\r\n var defineProperty = (function() {\r\n try {\r\n var func = getNative(Object, 'defineProperty');\r\n func({}, '', {});\r\n return func;\r\n } catch (e) {}\r\n }());\r\n\r\n /* Built-in method references for those with the same name as other `lodash` methods. */\r\n var nativeCeil = Math.ceil,\r\n nativeFloor = Math.floor,\r\n nativeGetSymbols = Object.getOwnPropertySymbols,\r\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\r\n nativeIsFinite = root.isFinite,\r\n nativeKeys = overArg(Object.keys, Object),\r\n nativeMax = Math.max,\r\n nativeMin = Math.min,\r\n nativeNow = Date.now,\r\n nativeRandom = Math.random,\r\n nativeReverse = arrayProto.reverse;\r\n\r\n /* Built-in method references that are verified to be native. */\r\n var DataView = getNative(root, 'DataView'),\r\n Map = getNative(root, 'Map'),\r\n Promise = getNative(root, 'Promise'),\r\n Set = getNative(root, 'Set'),\r\n WeakMap = getNative(root, 'WeakMap'),\r\n nativeCreate = getNative(Object, 'create');\r\n\r\n /** Used to store function metadata. */\r\n var metaMap = WeakMap && new WeakMap;\r\n\r\n /** Used to lookup unminified function names. */\r\n var realNames = {};\r\n\r\n /** Used to detect maps, sets, and weakmaps. */\r\n var dataViewCtorString = toSource(DataView),\r\n mapCtorString = toSource(Map),\r\n promiseCtorString = toSource(Promise),\r\n setCtorString = toSource(Set),\r\n weakMapCtorString = toSource(WeakMap);\r\n\r\n /** Used to convert symbols to primitives and strings. */\r\n var symbolProto = Symbol ? Symbol.prototype : undefined,\r\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\r\n symbolToString = symbolProto ? symbolProto.toString : undefined;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a `lodash` object which wraps `value` to enable implicit method\r\n * chain sequences. Methods that operate on and return arrays, collections,\r\n * and functions can be chained together. Methods that retrieve a single value\r\n * or may return a primitive value will automatically end the chain sequence\r\n * and return the unwrapped value. Otherwise, the value must be unwrapped\r\n * with `_#value`.\r\n *\r\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\r\n * enabled using `_.chain`.\r\n *\r\n * The execution of chained methods is lazy, that is, it's deferred until\r\n * `_#value` is implicitly or explicitly called.\r\n *\r\n * Lazy evaluation allows several methods to support shortcut fusion.\r\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\r\n * the creation of intermediate arrays and can greatly reduce the number of\r\n * iteratee executions. Sections of a chain sequence qualify for shortcut\r\n * fusion if the section is applied to an array and iteratees accept only\r\n * one argument. The heuristic for whether a section qualifies for shortcut\r\n * fusion is subject to change.\r\n *\r\n * Chaining is supported in custom builds as long as the `_#value` method is\r\n * directly or indirectly included in the build.\r\n *\r\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\r\n *\r\n * The wrapper `Array` methods are:\r\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\r\n *\r\n * The wrapper `String` methods are:\r\n * `replace` and `split`\r\n *\r\n * The wrapper methods that support shortcut fusion are:\r\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\r\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\r\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\r\n *\r\n * The chainable wrapper methods are:\r\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\r\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\r\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\r\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\r\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\r\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\r\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\r\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\r\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\r\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\r\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\r\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\r\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\r\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\r\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\r\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\r\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\r\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\r\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\r\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\r\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\r\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\r\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\r\n * `zipObject`, `zipObjectDeep`, and `zipWith`\r\n *\r\n * The wrapper methods that are **not** chainable by default are:\r\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\r\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\r\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\r\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\r\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\r\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\r\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\r\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\r\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\r\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\r\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\r\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\r\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\r\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\r\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\r\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\r\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\r\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\r\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\r\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\r\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\r\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\r\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\r\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\r\n * `upperFirst`, `value`, and `words`\r\n *\r\n * @name _\r\n * @constructor\r\n * @category Seq\r\n * @param {*} value The value to wrap in a `lodash` instance.\r\n * @returns {Object} Returns the new `lodash` wrapper instance.\r\n * @example\r\n *\r\n * function square(n) {\r\n * return n * n;\r\n * }\r\n *\r\n * var wrapped = _([1, 2, 3]);\r\n *\r\n * // Returns an unwrapped value.\r\n * wrapped.reduce(_.add);\r\n * // => 6\r\n *\r\n * // Returns a wrapped value.\r\n * var squares = wrapped.map(square);\r\n *\r\n * _.isArray(squares);\r\n * // => false\r\n *\r\n * _.isArray(squares.value());\r\n * // => true\r\n */\r\n function lodash(value) {\r\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\r\n if (value instanceof LodashWrapper) {\r\n return value;\r\n }\r\n if (hasOwnProperty.call(value, '__wrapped__')) {\r\n return wrapperClone(value);\r\n }\r\n }\r\n return new LodashWrapper(value);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.create` without support for assigning\r\n * properties to the created object.\r\n *\r\n * @private\r\n * @param {Object} proto The object to inherit from.\r\n * @returns {Object} Returns the new object.\r\n */\r\n var baseCreate = (function() {\r\n function object() {}\r\n return function(proto) {\r\n if (!isObject(proto)) {\r\n return {};\r\n }\r\n if (objectCreate) {\r\n return objectCreate(proto);\r\n }\r\n object.prototype = proto;\r\n var result = new object;\r\n object.prototype = undefined;\r\n return result;\r\n };\r\n }());\r\n\r\n /**\r\n * The function whose prototype chain sequence wrappers inherit from.\r\n *\r\n * @private\r\n */\r\n function baseLodash() {\r\n // No operation performed.\r\n }\r\n\r\n /**\r\n * The base constructor for creating `lodash` wrapper objects.\r\n *\r\n * @private\r\n * @param {*} value The value to wrap.\r\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\r\n */\r\n function LodashWrapper(value, chainAll) {\r\n this.__wrapped__ = value;\r\n this.__actions__ = [];\r\n this.__chain__ = !!chainAll;\r\n this.__index__ = 0;\r\n this.__values__ = undefined;\r\n }\r\n\r\n // Ensure wrappers are instances of `baseLodash`.\r\n lodash.prototype = baseLodash.prototype;\r\n lodash.prototype.constructor = lodash;\r\n\r\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\r\n LodashWrapper.prototype.constructor = LodashWrapper;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\r\n *\r\n * @private\r\n * @constructor\r\n * @param {*} value The value to wrap.\r\n */\r\n function LazyWrapper(value) {\r\n this.__wrapped__ = value;\r\n this.__actions__ = [];\r\n this.__dir__ = 1;\r\n this.__filtered__ = false;\r\n this.__iteratees__ = [];\r\n this.__takeCount__ = MAX_ARRAY_LENGTH;\r\n this.__views__ = [];\r\n }\r\n\r\n /**\r\n * Creates a clone of the lazy wrapper object.\r\n *\r\n * @private\r\n * @name clone\r\n * @memberOf LazyWrapper\r\n * @returns {Object} Returns the cloned `LazyWrapper` object.\r\n */\r\n function lazyClone() {\r\n var result = new LazyWrapper(this.__wrapped__);\r\n result.__actions__ = copyArray(this.__actions__);\r\n result.__dir__ = this.__dir__;\r\n result.__filtered__ = this.__filtered__;\r\n result.__iteratees__ = copyArray(this.__iteratees__);\r\n result.__takeCount__ = this.__takeCount__;\r\n result.__views__ = copyArray(this.__views__);\r\n return result;\r\n }\r\n\r\n /**\r\n * Reverses the direction of lazy iteration.\r\n *\r\n * @private\r\n * @name reverse\r\n * @memberOf LazyWrapper\r\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\r\n */\r\n function lazyReverse() {\r\n if (this.__filtered__) {\r\n var result = new LazyWrapper(this);\r\n result.__dir__ = -1;\r\n result.__filtered__ = true;\r\n } else {\r\n result = this.clone();\r\n result.__dir__ *= -1;\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Extracts the unwrapped value from its lazy wrapper.\r\n *\r\n * @private\r\n * @name value\r\n * @memberOf LazyWrapper\r\n * @returns {*} Returns the unwrapped value.\r\n */\r\n function lazyValue() {\r\n var array = this.__wrapped__.value(),\r\n dir = this.__dir__,\r\n isArr = isArray(array),\r\n isRight = dir < 0,\r\n arrLength = isArr ? array.length : 0,\r\n view = getView(0, arrLength, this.__views__),\r\n start = view.start,\r\n end = view.end,\r\n length = end - start,\r\n index = isRight ? end : (start - 1),\r\n iteratees = this.__iteratees__,\r\n iterLength = iteratees.length,\r\n resIndex = 0,\r\n takeCount = nativeMin(length, this.__takeCount__);\r\n\r\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\r\n return baseWrapperValue(array, this.__actions__);\r\n }\r\n var result = [];\r\n\r\n outer:\r\n while (length-- && resIndex < takeCount) {\r\n index += dir;\r\n\r\n var iterIndex = -1,\r\n value = array[index];\r\n\r\n while (++iterIndex < iterLength) {\r\n var data = iteratees[iterIndex],\r\n iteratee = data.iteratee,\r\n type = data.type,\r\n computed = iteratee(value);\r\n\r\n if (type == LAZY_MAP_FLAG) {\r\n value = computed;\r\n } else if (!computed) {\r\n if (type == LAZY_FILTER_FLAG) {\r\n continue outer;\r\n } else {\r\n break outer;\r\n }\r\n }\r\n }\r\n result[resIndex++] = value;\r\n }\r\n return result;\r\n }\r\n\r\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\r\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\r\n LazyWrapper.prototype.constructor = LazyWrapper;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a hash object.\r\n *\r\n * @private\r\n * @constructor\r\n * @param {Array} [entries] The key-value pairs to cache.\r\n */\r\n function Hash(entries) {\r\n var index = -1,\r\n length = entries == null ? 0 : entries.length;\r\n\r\n this.clear();\r\n while (++index < length) {\r\n var entry = entries[index];\r\n this.set(entry[0], entry[1]);\r\n }\r\n }\r\n\r\n /**\r\n * Removes all key-value entries from the hash.\r\n *\r\n * @private\r\n * @name clear\r\n * @memberOf Hash\r\n */\r\n function hashClear() {\r\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\r\n this.size = 0;\r\n }\r\n\r\n /**\r\n * Removes `key` and its value from the hash.\r\n *\r\n * @private\r\n * @name delete\r\n * @memberOf Hash\r\n * @param {Object} hash The hash to modify.\r\n * @param {string} key The key of the value to remove.\r\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\r\n */\r\n function hashDelete(key) {\r\n var result = this.has(key) && delete this.__data__[key];\r\n this.size -= result ? 1 : 0;\r\n return result;\r\n }\r\n\r\n /**\r\n * Gets the hash value for `key`.\r\n *\r\n * @private\r\n * @name get\r\n * @memberOf Hash\r\n * @param {string} key The key of the value to get.\r\n * @returns {*} Returns the entry value.\r\n */\r\n function hashGet(key) {\r\n var data = this.__data__;\r\n if (nativeCreate) {\r\n var result = data[key];\r\n return result === HASH_UNDEFINED ? undefined : result;\r\n }\r\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\r\n }\r\n\r\n /**\r\n * Checks if a hash value for `key` exists.\r\n *\r\n * @private\r\n * @name has\r\n * @memberOf Hash\r\n * @param {string} key The key of the entry to check.\r\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\r\n */\r\n function hashHas(key) {\r\n var data = this.__data__;\r\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\r\n }\r\n\r\n /**\r\n * Sets the hash `key` to `value`.\r\n *\r\n * @private\r\n * @name set\r\n * @memberOf Hash\r\n * @param {string} key The key of the value to set.\r\n * @param {*} value The value to set.\r\n * @returns {Object} Returns the hash instance.\r\n */\r\n function hashSet(key, value) {\r\n var data = this.__data__;\r\n this.size += this.has(key) ? 0 : 1;\r\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\r\n return this;\r\n }\r\n\r\n // Add methods to `Hash`.\r\n Hash.prototype.clear = hashClear;\r\n Hash.prototype['delete'] = hashDelete;\r\n Hash.prototype.get = hashGet;\r\n Hash.prototype.has = hashHas;\r\n Hash.prototype.set = hashSet;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates an list cache object.\r\n *\r\n * @private\r\n * @constructor\r\n * @param {Array} [entries] The key-value pairs to cache.\r\n */\r\n function ListCache(entries) {\r\n var index = -1,\r\n length = entries == null ? 0 : entries.length;\r\n\r\n this.clear();\r\n while (++index < length) {\r\n var entry = entries[index];\r\n this.set(entry[0], entry[1]);\r\n }\r\n }\r\n\r\n /**\r\n * Removes all key-value entries from the list cache.\r\n *\r\n * @private\r\n * @name clear\r\n * @memberOf ListCache\r\n */\r\n function listCacheClear() {\r\n this.__data__ = [];\r\n this.size = 0;\r\n }\r\n\r\n /**\r\n * Removes `key` and its value from the list cache.\r\n *\r\n * @private\r\n * @name delete\r\n * @memberOf ListCache\r\n * @param {string} key The key of the value to remove.\r\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\r\n */\r\n function listCacheDelete(key) {\r\n var data = this.__data__,\r\n index = assocIndexOf(data, key);\r\n\r\n if (index < 0) {\r\n return false;\r\n }\r\n var lastIndex = data.length - 1;\r\n if (index == lastIndex) {\r\n data.pop();\r\n } else {\r\n splice.call(data, index, 1);\r\n }\r\n --this.size;\r\n return true;\r\n }\r\n\r\n /**\r\n * Gets the list cache value for `key`.\r\n *\r\n * @private\r\n * @name get\r\n * @memberOf ListCache\r\n * @param {string} key The key of the value to get.\r\n * @returns {*} Returns the entry value.\r\n */\r\n function listCacheGet(key) {\r\n var data = this.__data__,\r\n index = assocIndexOf(data, key);\r\n\r\n return index < 0 ? undefined : data[index][1];\r\n }\r\n\r\n /**\r\n * Checks if a list cache value for `key` exists.\r\n *\r\n * @private\r\n * @name has\r\n * @memberOf ListCache\r\n * @param {string} key The key of the entry to check.\r\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\r\n */\r\n function listCacheHas(key) {\r\n return assocIndexOf(this.__data__, key) > -1;\r\n }\r\n\r\n /**\r\n * Sets the list cache `key` to `value`.\r\n *\r\n * @private\r\n * @name set\r\n * @memberOf ListCache\r\n * @param {string} key The key of the value to set.\r\n * @param {*} value The value to set.\r\n * @returns {Object} Returns the list cache instance.\r\n */\r\n function listCacheSet(key, value) {\r\n var data = this.__data__,\r\n index = assocIndexOf(data, key);\r\n\r\n if (index < 0) {\r\n ++this.size;\r\n data.push([key, value]);\r\n } else {\r\n data[index][1] = value;\r\n }\r\n return this;\r\n }\r\n\r\n // Add methods to `ListCache`.\r\n ListCache.prototype.clear = listCacheClear;\r\n ListCache.prototype['delete'] = listCacheDelete;\r\n ListCache.prototype.get = listCacheGet;\r\n ListCache.prototype.has = listCacheHas;\r\n ListCache.prototype.set = listCacheSet;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a map cache object to store key-value pairs.\r\n *\r\n * @private\r\n * @constructor\r\n * @param {Array} [entries] The key-value pairs to cache.\r\n */\r\n function MapCache(entries) {\r\n var index = -1,\r\n length = entries == null ? 0 : entries.length;\r\n\r\n this.clear();\r\n while (++index < length) {\r\n var entry = entries[index];\r\n this.set(entry[0], entry[1]);\r\n }\r\n }\r\n\r\n /**\r\n * Removes all key-value entries from the map.\r\n *\r\n * @private\r\n * @name clear\r\n * @memberOf MapCache\r\n */\r\n function mapCacheClear() {\r\n this.size = 0;\r\n this.__data__ = {\r\n 'hash': new Hash,\r\n 'map': new (Map || ListCache),\r\n 'string': new Hash\r\n };\r\n }\r\n\r\n /**\r\n * Removes `key` and its value from the map.\r\n *\r\n * @private\r\n * @name delete\r\n * @memberOf MapCache\r\n * @param {string} key The key of the value to remove.\r\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\r\n */\r\n function mapCacheDelete(key) {\r\n var result = getMapData(this, key)['delete'](key);\r\n this.size -= result ? 1 : 0;\r\n return result;\r\n }\r\n\r\n /**\r\n * Gets the map value for `key`.\r\n *\r\n * @private\r\n * @name get\r\n * @memberOf MapCache\r\n * @param {string} key The key of the value to get.\r\n * @returns {*} Returns the entry value.\r\n */\r\n function mapCacheGet(key) {\r\n return getMapData(this, key).get(key);\r\n }\r\n\r\n /**\r\n * Checks if a map value for `key` exists.\r\n *\r\n * @private\r\n * @name has\r\n * @memberOf MapCache\r\n * @param {string} key The key of the entry to check.\r\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\r\n */\r\n function mapCacheHas(key) {\r\n return getMapData(this, key).has(key);\r\n }\r\n\r\n /**\r\n * Sets the map `key` to `value`.\r\n *\r\n * @private\r\n * @name set\r\n * @memberOf MapCache\r\n * @param {string} key The key of the value to set.\r\n * @param {*} value The value to set.\r\n * @returns {Object} Returns the map cache instance.\r\n */\r\n function mapCacheSet(key, value) {\r\n var data = getMapData(this, key),\r\n size = data.size;\r\n\r\n data.set(key, value);\r\n this.size += data.size == size ? 0 : 1;\r\n return this;\r\n }\r\n\r\n // Add methods to `MapCache`.\r\n MapCache.prototype.clear = mapCacheClear;\r\n MapCache.prototype['delete'] = mapCacheDelete;\r\n MapCache.prototype.get = mapCacheGet;\r\n MapCache.prototype.has = mapCacheHas;\r\n MapCache.prototype.set = mapCacheSet;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n *\r\n * Creates an array cache object to store unique values.\r\n *\r\n * @private\r\n * @constructor\r\n * @param {Array} [values] The values to cache.\r\n */\r\n function SetCache(values) {\r\n var index = -1,\r\n length = values == null ? 0 : values.length;\r\n\r\n this.__data__ = new MapCache;\r\n while (++index < length) {\r\n this.add(values[index]);\r\n }\r\n }\r\n\r\n /**\r\n * Adds `value` to the array cache.\r\n *\r\n * @private\r\n * @name add\r\n * @memberOf SetCache\r\n * @alias push\r\n * @param {*} value The value to cache.\r\n * @returns {Object} Returns the cache instance.\r\n */\r\n function setCacheAdd(value) {\r\n this.__data__.set(value, HASH_UNDEFINED);\r\n return this;\r\n }\r\n\r\n /**\r\n * Checks if `value` is in the array cache.\r\n *\r\n * @private\r\n * @name has\r\n * @memberOf SetCache\r\n * @param {*} value The value to search for.\r\n * @returns {number} Returns `true` if `value` is found, else `false`.\r\n */\r\n function setCacheHas(value) {\r\n return this.__data__.has(value);\r\n }\r\n\r\n // Add methods to `SetCache`.\r\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\r\n SetCache.prototype.has = setCacheHas;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a stack cache object to store key-value pairs.\r\n *\r\n * @private\r\n * @constructor\r\n * @param {Array} [entries] The key-value pairs to cache.\r\n */\r\n function Stack(entries) {\r\n var data = this.__data__ = new ListCache(entries);\r\n this.size = data.size;\r\n }\r\n\r\n /**\r\n * Removes all key-value entries from the stack.\r\n *\r\n * @private\r\n * @name clear\r\n * @memberOf Stack\r\n */\r\n function stackClear() {\r\n this.__data__ = new ListCache;\r\n this.size = 0;\r\n }\r\n\r\n /**\r\n * Removes `key` and its value from the stack.\r\n *\r\n * @private\r\n * @name delete\r\n * @memberOf Stack\r\n * @param {string} key The key of the value to remove.\r\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\r\n */\r\n function stackDelete(key) {\r\n var data = this.__data__,\r\n result = data['delete'](key);\r\n\r\n this.size = data.size;\r\n return result;\r\n }\r\n\r\n /**\r\n * Gets the stack value for `key`.\r\n *\r\n * @private\r\n * @name get\r\n * @memberOf Stack\r\n * @param {string} key The key of the value to get.\r\n * @returns {*} Returns the entry value.\r\n */\r\n function stackGet(key) {\r\n return this.__data__.get(key);\r\n }\r\n\r\n /**\r\n * Checks if a stack value for `key` exists.\r\n *\r\n * @private\r\n * @name has\r\n * @memberOf Stack\r\n * @param {string} key The key of the entry to check.\r\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\r\n */\r\n function stackHas(key) {\r\n return this.__data__.has(key);\r\n }\r\n\r\n /**\r\n * Sets the stack `key` to `value`.\r\n *\r\n * @private\r\n * @name set\r\n * @memberOf Stack\r\n * @param {string} key The key of the value to set.\r\n * @param {*} value The value to set.\r\n * @returns {Object} Returns the stack cache instance.\r\n */\r\n function stackSet(key, value) {\r\n var data = this.__data__;\r\n if (data instanceof ListCache) {\r\n var pairs = data.__data__;\r\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\r\n pairs.push([key, value]);\r\n this.size = ++data.size;\r\n return this;\r\n }\r\n data = this.__data__ = new MapCache(pairs);\r\n }\r\n data.set(key, value);\r\n this.size = data.size;\r\n return this;\r\n }\r\n\r\n // Add methods to `Stack`.\r\n Stack.prototype.clear = stackClear;\r\n Stack.prototype['delete'] = stackDelete;\r\n Stack.prototype.get = stackGet;\r\n Stack.prototype.has = stackHas;\r\n Stack.prototype.set = stackSet;\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates an array of the enumerable property names of the array-like `value`.\r\n *\r\n * @private\r\n * @param {*} value The value to query.\r\n * @param {boolean} inherited Specify returning inherited property names.\r\n * @returns {Array} Returns the array of property names.\r\n */\r\n function arrayLikeKeys(value, inherited) {\r\n var isArr = isArray(value),\r\n isArg = !isArr && isArguments(value),\r\n isBuff = !isArr && !isArg && isBuffer(value),\r\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\r\n skipIndexes = isArr || isArg || isBuff || isType,\r\n result = skipIndexes ? baseTimes(value.length, String) : [],\r\n length = result.length;\r\n\r\n for (var key in value) {\r\n if ((inherited || hasOwnProperty.call(value, key)) &&\r\n !(skipIndexes && (\r\n // Safari 9 has enumerable `arguments.length` in strict mode.\r\n key == 'length' ||\r\n // Node.js 0.10 has enumerable non-index properties on buffers.\r\n (isBuff && (key == 'offset' || key == 'parent')) ||\r\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\r\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\r\n // Skip index properties.\r\n isIndex(key, length)\r\n ))) {\r\n result.push(key);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * This function is like `assignValue` except that it doesn't assign\r\n * `undefined` values.\r\n *\r\n * @private\r\n * @param {Object} object The object to modify.\r\n * @param {string} key The key of the property to assign.\r\n * @param {*} value The value to assign.\r\n */\r\n function assignMergeValue(object, key, value) {\r\n if ((value !== undefined && !eq(object[key], value)) ||\r\n (value === undefined && !(key in object))) {\r\n baseAssignValue(object, key, value);\r\n }\r\n }\r\n\r\n /**\r\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\r\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * for equality comparisons.\r\n *\r\n * @private\r\n * @param {Object} object The object to modify.\r\n * @param {string} key The key of the property to assign.\r\n * @param {*} value The value to assign.\r\n */\r\n function assignValue(object, key, value) {\r\n var objValue = object[key];\r\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\r\n (value === undefined && !(key in object))) {\r\n baseAssignValue(object, key, value);\r\n }\r\n }\r\n\r\n /**\r\n * Gets the index at which the `key` is found in `array` of key-value pairs.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {*} key The key to search for.\r\n * @returns {number} Returns the index of the matched value, else `-1`.\r\n */\r\n function assocIndexOf(array, key) {\r\n var length = array.length;\r\n while (length--) {\r\n if (eq(array[length][0], key)) {\r\n return length;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n /**\r\n * Aggregates elements of `collection` on `accumulator` with keys transformed\r\n * by `iteratee` and values set by `setter`.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} setter The function to set `accumulator` values.\r\n * @param {Function} iteratee The iteratee to transform keys.\r\n * @param {Object} accumulator The initial aggregated object.\r\n * @returns {Function} Returns `accumulator`.\r\n */\r\n function baseAggregator(collection, setter, iteratee, accumulator) {\r\n baseEach(collection, function(value, key, collection) {\r\n setter(accumulator, value, iteratee(value), collection);\r\n });\r\n return accumulator;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.assign` without support for multiple sources\r\n * or `customizer` functions.\r\n *\r\n * @private\r\n * @param {Object} object The destination object.\r\n * @param {Object} source The source object.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function baseAssign(object, source) {\r\n return object && copyObject(source, keys(source), object);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.assignIn` without support for multiple sources\r\n * or `customizer` functions.\r\n *\r\n * @private\r\n * @param {Object} object The destination object.\r\n * @param {Object} source The source object.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function baseAssignIn(object, source) {\r\n return object && copyObject(source, keysIn(source), object);\r\n }\r\n\r\n /**\r\n * The base implementation of `assignValue` and `assignMergeValue` without\r\n * value checks.\r\n *\r\n * @private\r\n * @param {Object} object The object to modify.\r\n * @param {string} key The key of the property to assign.\r\n * @param {*} value The value to assign.\r\n */\r\n function baseAssignValue(object, key, value) {\r\n if (key == '__proto__' && defineProperty) {\r\n defineProperty(object, key, {\r\n 'configurable': true,\r\n 'enumerable': true,\r\n 'value': value,\r\n 'writable': true\r\n });\r\n } else {\r\n object[key] = value;\r\n }\r\n }\r\n\r\n /**\r\n * The base implementation of `_.at` without support for individual paths.\r\n *\r\n * @private\r\n * @param {Object} object The object to iterate over.\r\n * @param {string[]} paths The property paths to pick.\r\n * @returns {Array} Returns the picked elements.\r\n */\r\n function baseAt(object, paths) {\r\n var index = -1,\r\n length = paths.length,\r\n result = Array(length),\r\n skip = object == null;\r\n\r\n while (++index < length) {\r\n result[index] = skip ? undefined : get(object, paths[index]);\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.clamp` which doesn't coerce arguments.\r\n *\r\n * @private\r\n * @param {number} number The number to clamp.\r\n * @param {number} [lower] The lower bound.\r\n * @param {number} upper The upper bound.\r\n * @returns {number} Returns the clamped number.\r\n */\r\n function baseClamp(number, lower, upper) {\r\n if (number === number) {\r\n if (upper !== undefined) {\r\n number = number <= upper ? number : upper;\r\n }\r\n if (lower !== undefined) {\r\n number = number >= lower ? number : lower;\r\n }\r\n }\r\n return number;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\r\n * traversed objects.\r\n *\r\n * @private\r\n * @param {*} value The value to clone.\r\n * @param {boolean} bitmask The bitmask flags.\r\n * 1 - Deep clone\r\n * 2 - Flatten inherited properties\r\n * 4 - Clone symbols\r\n * @param {Function} [customizer] The function to customize cloning.\r\n * @param {string} [key] The key of `value`.\r\n * @param {Object} [object] The parent object of `value`.\r\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\r\n * @returns {*} Returns the cloned value.\r\n */\r\n function baseClone(value, bitmask, customizer, key, object, stack) {\r\n var result,\r\n isDeep = bitmask & CLONE_DEEP_FLAG,\r\n isFlat = bitmask & CLONE_FLAT_FLAG,\r\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\r\n\r\n if (customizer) {\r\n result = object ? customizer(value, key, object, stack) : customizer(value);\r\n }\r\n if (result !== undefined) {\r\n return result;\r\n }\r\n if (!isObject(value)) {\r\n return value;\r\n }\r\n var isArr = isArray(value);\r\n if (isArr) {\r\n result = initCloneArray(value);\r\n if (!isDeep) {\r\n return copyArray(value, result);\r\n }\r\n } else {\r\n var tag = getTag(value),\r\n isFunc = tag == funcTag || tag == genTag;\r\n\r\n if (isBuffer(value)) {\r\n return cloneBuffer(value, isDeep);\r\n }\r\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\r\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\r\n if (!isDeep) {\r\n return isFlat\r\n ? copySymbolsIn(value, baseAssignIn(result, value))\r\n : copySymbols(value, baseAssign(result, value));\r\n }\r\n } else {\r\n if (!cloneableTags[tag]) {\r\n return object ? value : {};\r\n }\r\n result = initCloneByTag(value, tag, isDeep);\r\n }\r\n }\r\n // Check for circular references and return its corresponding clone.\r\n stack || (stack = new Stack);\r\n var stacked = stack.get(value);\r\n if (stacked) {\r\n return stacked;\r\n }\r\n stack.set(value, result);\r\n\r\n if (isSet(value)) {\r\n value.forEach(function(subValue) {\r\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\r\n });\r\n\r\n return result;\r\n }\r\n\r\n if (isMap(value)) {\r\n value.forEach(function(subValue, key) {\r\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\r\n });\r\n\r\n return result;\r\n }\r\n\r\n var keysFunc = isFull\r\n ? (isFlat ? getAllKeysIn : getAllKeys)\r\n : (isFlat ? keysIn : keys);\r\n\r\n var props = isArr ? undefined : keysFunc(value);\r\n arrayEach(props || value, function(subValue, key) {\r\n if (props) {\r\n key = subValue;\r\n subValue = value[key];\r\n }\r\n // Recursively populate clone (susceptible to call stack limits).\r\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\r\n * to provide to `func`.\r\n *\r\n * @private\r\n * @param {Function} func The function to delay.\r\n * @param {number} wait The number of milliseconds to delay invocation.\r\n * @param {Array} args The arguments to provide to `func`.\r\n * @returns {number|Object} Returns the timer id or timeout object.\r\n */\r\n function baseDelay(func, wait, args) {\r\n if (typeof func != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n return setTimeout(function() { func.apply(undefined, args); }, wait);\r\n }\r\n\r\n /**\r\n * The base implementation of methods like `_.difference` without support\r\n * for excluding multiple arrays or iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {Array} values The values to exclude.\r\n * @param {Function} [iteratee] The iteratee invoked per element.\r\n * @param {Function} [comparator] The comparator invoked per element.\r\n * @returns {Array} Returns the new array of filtered values.\r\n */\r\n function baseDifference(array, values, iteratee, comparator) {\r\n var index = -1,\r\n includes = arrayIncludes,\r\n isCommon = true,\r\n length = array.length,\r\n result = [],\r\n valuesLength = values.length;\r\n\r\n if (!length) {\r\n return result;\r\n }\r\n if (iteratee) {\r\n values = arrayMap(values, baseUnary(iteratee));\r\n }\r\n if (comparator) {\r\n includes = arrayIncludesWith;\r\n isCommon = false;\r\n }\r\n else if (values.length >= LARGE_ARRAY_SIZE) {\r\n includes = cacheHas;\r\n isCommon = false;\r\n values = new SetCache(values);\r\n }\r\n outer:\r\n while (++index < length) {\r\n var value = array[index],\r\n computed = iteratee == null ? value : iteratee(value);\r\n\r\n value = (comparator || value !== 0) ? value : 0;\r\n if (isCommon && computed === computed) {\r\n var valuesIndex = valuesLength;\r\n while (valuesIndex--) {\r\n if (values[valuesIndex] === computed) {\r\n continue outer;\r\n }\r\n }\r\n result.push(value);\r\n }\r\n else if (!includes(values, computed, comparator)) {\r\n result.push(value);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.forEach` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @returns {Array|Object} Returns `collection`.\r\n */\r\n var baseEach = createBaseEach(baseForOwn);\r\n\r\n /**\r\n * The base implementation of `_.every` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\r\n * else `false`\r\n */\r\n function baseEvery(collection, predicate) {\r\n var result = true;\r\n baseEach(collection, function(value, index, collection) {\r\n result = !!predicate(value, index, collection);\r\n return result;\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of methods like `_.max` and `_.min` which accepts a\r\n * `comparator` to determine the extremum value.\r\n *\r\n * @private\r\n * @param {Array} array The array to iterate over.\r\n * @param {Function} iteratee The iteratee invoked per iteration.\r\n * @param {Function} comparator The comparator used to compare values.\r\n * @returns {*} Returns the extremum value.\r\n */\r\n function baseExtremum(array, iteratee, comparator) {\r\n var index = -1,\r\n length = array.length;\r\n\r\n while (++index < length) {\r\n var value = array[index],\r\n current = iteratee(value);\r\n\r\n if (current != null && (computed === undefined\r\n ? (current === current && !isSymbol(current))\r\n : comparator(current, computed)\r\n )) {\r\n var computed = current,\r\n result = value;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.filter` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @returns {Array} Returns the new filtered array.\r\n */\r\n function baseFilter(collection, predicate) {\r\n var result = [];\r\n baseEach(collection, function(value, index, collection) {\r\n if (predicate(value, index, collection)) {\r\n result.push(value);\r\n }\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.flatten` with support for restricting flattening.\r\n *\r\n * @private\r\n * @param {Array} array The array to flatten.\r\n * @param {number} depth The maximum recursion depth.\r\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\r\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\r\n * @param {Array} [result=[]] The initial result value.\r\n * @returns {Array} Returns the new flattened array.\r\n */\r\n function baseFlatten(array, depth, predicate, isStrict, result) {\r\n var index = -1,\r\n length = array.length;\r\n\r\n predicate || (predicate = isFlattenable);\r\n result || (result = []);\r\n\r\n while (++index < length) {\r\n var value = array[index];\r\n if (depth > 0 && predicate(value)) {\r\n if (depth > 1) {\r\n // Recursively flatten arrays (susceptible to call stack limits).\r\n baseFlatten(value, depth - 1, predicate, isStrict, result);\r\n } else {\r\n arrayPush(result, value);\r\n }\r\n } else if (!isStrict) {\r\n result[result.length] = value;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `baseForOwn` which iterates over `object`\r\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\r\n * Iteratee functions may exit iteration early by explicitly returning `false`.\r\n *\r\n * @private\r\n * @param {Object} object The object to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @param {Function} keysFunc The function to get the keys of `object`.\r\n * @returns {Object} Returns `object`.\r\n */\r\n var baseFor = createBaseFor();\r\n\r\n /**\r\n * This function is like `baseFor` except that it iterates over properties\r\n * in the opposite order.\r\n *\r\n * @private\r\n * @param {Object} object The object to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @param {Function} keysFunc The function to get the keys of `object`.\r\n * @returns {Object} Returns `object`.\r\n */\r\n var baseForRight = createBaseFor(true);\r\n\r\n /**\r\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Object} object The object to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function baseForOwn(object, iteratee) {\r\n return object && baseFor(object, iteratee, keys);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Object} object The object to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function baseForOwnRight(object, iteratee) {\r\n return object && baseForRight(object, iteratee, keys);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.functions` which creates an array of\r\n * `object` function property names filtered from `props`.\r\n *\r\n * @private\r\n * @param {Object} object The object to inspect.\r\n * @param {Array} props The property names to filter.\r\n * @returns {Array} Returns the function names.\r\n */\r\n function baseFunctions(object, props) {\r\n return arrayFilter(props, function(key) {\r\n return isFunction(object[key]);\r\n });\r\n }\r\n\r\n /**\r\n * The base implementation of `_.get` without support for default values.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {Array|string} path The path of the property to get.\r\n * @returns {*} Returns the resolved value.\r\n */\r\n function baseGet(object, path) {\r\n path = castPath(path, object);\r\n\r\n var index = 0,\r\n length = path.length;\r\n\r\n while (object != null && index < length) {\r\n object = object[toKey(path[index++])];\r\n }\r\n return (index && index == length) ? object : undefined;\r\n }\r\n\r\n /**\r\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\r\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\r\n * symbols of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {Function} keysFunc The function to get the keys of `object`.\r\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\r\n * @returns {Array} Returns the array of property names and symbols.\r\n */\r\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\r\n var result = keysFunc(object);\r\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\r\n }\r\n\r\n /**\r\n * The base implementation of `getTag` without fallbacks for buggy environments.\r\n *\r\n * @private\r\n * @param {*} value The value to query.\r\n * @returns {string} Returns the `toStringTag`.\r\n */\r\n function baseGetTag(value) {\r\n if (value == null) {\r\n return value === undefined ? undefinedTag : nullTag;\r\n }\r\n return (symToStringTag && symToStringTag in Object(value))\r\n ? getRawTag(value)\r\n : objectToString(value);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.gt` which doesn't coerce arguments.\r\n *\r\n * @private\r\n * @param {*} value The value to compare.\r\n * @param {*} other The other value to compare.\r\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\r\n * else `false`.\r\n */\r\n function baseGt(value, other) {\r\n return value > other;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.has` without support for deep paths.\r\n *\r\n * @private\r\n * @param {Object} [object] The object to query.\r\n * @param {Array|string} key The key to check.\r\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\r\n */\r\n function baseHas(object, key) {\r\n return object != null && hasOwnProperty.call(object, key);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.hasIn` without support for deep paths.\r\n *\r\n * @private\r\n * @param {Object} [object] The object to query.\r\n * @param {Array|string} key The key to check.\r\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\r\n */\r\n function baseHasIn(object, key) {\r\n return object != null && key in Object(object);\r\n }\r\n\r\n /**\r\n * The base implementation of methods like `_.intersection`, without support\r\n * for iteratee shorthands, that accepts an array of arrays to inspect.\r\n *\r\n * @private\r\n * @param {Array} arrays The arrays to inspect.\r\n * @param {Function} [iteratee] The iteratee invoked per element.\r\n * @param {Function} [comparator] The comparator invoked per element.\r\n * @returns {Array} Returns the new array of shared values.\r\n */\r\n function baseIntersection(arrays, iteratee, comparator) {\r\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\r\n length = arrays[0].length,\r\n othLength = arrays.length,\r\n othIndex = othLength,\r\n caches = Array(othLength),\r\n maxLength = Infinity,\r\n result = [];\r\n\r\n while (othIndex--) {\r\n var array = arrays[othIndex];\r\n if (othIndex && iteratee) {\r\n array = arrayMap(array, baseUnary(iteratee));\r\n }\r\n maxLength = nativeMin(array.length, maxLength);\r\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\r\n ? new SetCache(othIndex && array)\r\n : undefined;\r\n }\r\n array = arrays[0];\r\n\r\n var index = -1,\r\n seen = caches[0];\r\n\r\n outer:\r\n while (++index < length && result.length < maxLength) {\r\n var value = array[index],\r\n computed = iteratee ? iteratee(value) : value;\r\n\r\n value = (comparator || value !== 0) ? value : 0;\r\n if (!(seen\r\n ? cacheHas(seen, computed)\r\n : includes(result, computed, comparator)\r\n )) {\r\n othIndex = othLength;\r\n while (--othIndex) {\r\n var cache = caches[othIndex];\r\n if (!(cache\r\n ? cacheHas(cache, computed)\r\n : includes(arrays[othIndex], computed, comparator))\r\n ) {\r\n continue outer;\r\n }\r\n }\r\n if (seen) {\r\n seen.push(computed);\r\n }\r\n result.push(value);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.invert` and `_.invertBy` which inverts\r\n * `object` with values transformed by `iteratee` and set by `setter`.\r\n *\r\n * @private\r\n * @param {Object} object The object to iterate over.\r\n * @param {Function} setter The function to set `accumulator` values.\r\n * @param {Function} iteratee The iteratee to transform values.\r\n * @param {Object} accumulator The initial inverted object.\r\n * @returns {Function} Returns `accumulator`.\r\n */\r\n function baseInverter(object, setter, iteratee, accumulator) {\r\n baseForOwn(object, function(value, key, object) {\r\n setter(accumulator, iteratee(value), key, object);\r\n });\r\n return accumulator;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.invoke` without support for individual\r\n * method arguments.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {Array|string} path The path of the method to invoke.\r\n * @param {Array} args The arguments to invoke the method with.\r\n * @returns {*} Returns the result of the invoked method.\r\n */\r\n function baseInvoke(object, path, args) {\r\n path = castPath(path, object);\r\n object = parent(object, path);\r\n var func = object == null ? object : object[toKey(last(path))];\r\n return func == null ? undefined : apply(func, object, args);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isArguments`.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\r\n */\r\n function baseIsArguments(value) {\r\n return isObjectLike(value) && baseGetTag(value) == argsTag;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isDate` without Node.js optimizations.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\r\n */\r\n function baseIsDate(value) {\r\n return isObjectLike(value) && baseGetTag(value) == dateTag;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isEqual` which supports partial comparisons\r\n * and tracks traversed objects.\r\n *\r\n * @private\r\n * @param {*} value The value to compare.\r\n * @param {*} other The other value to compare.\r\n * @param {boolean} bitmask The bitmask flags.\r\n * 1 - Unordered comparison\r\n * 2 - Partial comparison\r\n * @param {Function} [customizer] The function to customize comparisons.\r\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\r\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\r\n */\r\n function baseIsEqual(value, other, bitmask, customizer, stack) {\r\n if (value === other) {\r\n return true;\r\n }\r\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\r\n return value !== value && other !== other;\r\n }\r\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\r\n }\r\n\r\n /**\r\n * A specialized version of `baseIsEqual` for arrays and objects which performs\r\n * deep comparisons and tracks traversed objects enabling objects with circular\r\n * references to be compared.\r\n *\r\n * @private\r\n * @param {Object} object The object to compare.\r\n * @param {Object} other The other object to compare.\r\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\r\n * @param {Function} customizer The function to customize comparisons.\r\n * @param {Function} equalFunc The function to determine equivalents of values.\r\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\r\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\r\n */\r\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\r\n var objIsArr = isArray(object),\r\n othIsArr = isArray(other),\r\n objTag = objIsArr ? arrayTag : getTag(object),\r\n othTag = othIsArr ? arrayTag : getTag(other);\r\n\r\n objTag = objTag == argsTag ? objectTag : objTag;\r\n othTag = othTag == argsTag ? objectTag : othTag;\r\n\r\n var objIsObj = objTag == objectTag,\r\n othIsObj = othTag == objectTag,\r\n isSameTag = objTag == othTag;\r\n\r\n if (isSameTag && isBuffer(object)) {\r\n if (!isBuffer(other)) {\r\n return false;\r\n }\r\n objIsArr = true;\r\n objIsObj = false;\r\n }\r\n if (isSameTag && !objIsObj) {\r\n stack || (stack = new Stack);\r\n return (objIsArr || isTypedArray(object))\r\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\r\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\r\n }\r\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\r\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\r\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\r\n\r\n if (objIsWrapped || othIsWrapped) {\r\n var objUnwrapped = objIsWrapped ? object.value() : object,\r\n othUnwrapped = othIsWrapped ? other.value() : other;\r\n\r\n stack || (stack = new Stack);\r\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\r\n }\r\n }\r\n if (!isSameTag) {\r\n return false;\r\n }\r\n stack || (stack = new Stack);\r\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isMap` without Node.js optimizations.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\r\n */\r\n function baseIsMap(value) {\r\n return isObjectLike(value) && getTag(value) == mapTag;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Object} object The object to inspect.\r\n * @param {Object} source The object of property values to match.\r\n * @param {Array} matchData The property names, values, and compare flags to match.\r\n * @param {Function} [customizer] The function to customize comparisons.\r\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\r\n */\r\n function baseIsMatch(object, source, matchData, customizer) {\r\n var index = matchData.length,\r\n length = index,\r\n noCustomizer = !customizer;\r\n\r\n if (object == null) {\r\n return !length;\r\n }\r\n object = Object(object);\r\n while (index--) {\r\n var data = matchData[index];\r\n if ((noCustomizer && data[2])\r\n ? data[1] !== object[data[0]]\r\n : !(data[0] in object)\r\n ) {\r\n return false;\r\n }\r\n }\r\n while (++index < length) {\r\n data = matchData[index];\r\n var key = data[0],\r\n objValue = object[key],\r\n srcValue = data[1];\r\n\r\n if (noCustomizer && data[2]) {\r\n if (objValue === undefined && !(key in object)) {\r\n return false;\r\n }\r\n } else {\r\n var stack = new Stack;\r\n if (customizer) {\r\n var result = customizer(objValue, srcValue, key, object, source, stack);\r\n }\r\n if (!(result === undefined\r\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\r\n : result\r\n )) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isNative` without bad shim checks.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a native function,\r\n * else `false`.\r\n */\r\n function baseIsNative(value) {\r\n if (!isObject(value) || isMasked(value)) {\r\n return false;\r\n }\r\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\r\n return pattern.test(toSource(value));\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isRegExp` without Node.js optimizations.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\r\n */\r\n function baseIsRegExp(value) {\r\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isSet` without Node.js optimizations.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\r\n */\r\n function baseIsSet(value) {\r\n return isObjectLike(value) && getTag(value) == setTag;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\r\n */\r\n function baseIsTypedArray(value) {\r\n return isObjectLike(value) &&\r\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\r\n }\r\n\r\n /**\r\n * The base implementation of `_.iteratee`.\r\n *\r\n * @private\r\n * @param {*} [value=_.identity] The value to convert to an iteratee.\r\n * @returns {Function} Returns the iteratee.\r\n */\r\n function baseIteratee(value) {\r\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\r\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\r\n if (typeof value == 'function') {\r\n return value;\r\n }\r\n if (value == null) {\r\n return identity;\r\n }\r\n if (typeof value == 'object') {\r\n return isArray(value)\r\n ? baseMatchesProperty(value[0], value[1])\r\n : baseMatches(value);\r\n }\r\n return property(value);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property names.\r\n */\r\n function baseKeys(object) {\r\n if (!isPrototype(object)) {\r\n return nativeKeys(object);\r\n }\r\n var result = [];\r\n for (var key in Object(object)) {\r\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\r\n result.push(key);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property names.\r\n */\r\n function baseKeysIn(object) {\r\n if (!isObject(object)) {\r\n return nativeKeysIn(object);\r\n }\r\n var isProto = isPrototype(object),\r\n result = [];\r\n\r\n for (var key in object) {\r\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\r\n result.push(key);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.lt` which doesn't coerce arguments.\r\n *\r\n * @private\r\n * @param {*} value The value to compare.\r\n * @param {*} other The other value to compare.\r\n * @returns {boolean} Returns `true` if `value` is less than `other`,\r\n * else `false`.\r\n */\r\n function baseLt(value, other) {\r\n return value < other;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.map` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} iteratee The function invoked per iteration.\r\n * @returns {Array} Returns the new mapped array.\r\n */\r\n function baseMap(collection, iteratee) {\r\n var index = -1,\r\n result = isArrayLike(collection) ? Array(collection.length) : [];\r\n\r\n baseEach(collection, function(value, key, collection) {\r\n result[++index] = iteratee(value, key, collection);\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.matches` which doesn't clone `source`.\r\n *\r\n * @private\r\n * @param {Object} source The object of property values to match.\r\n * @returns {Function} Returns the new spec function.\r\n */\r\n function baseMatches(source) {\r\n var matchData = getMatchData(source);\r\n if (matchData.length == 1 && matchData[0][2]) {\r\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\r\n }\r\n return function(object) {\r\n return object === source || baseIsMatch(object, source, matchData);\r\n };\r\n }\r\n\r\n /**\r\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\r\n *\r\n * @private\r\n * @param {string} path The path of the property to get.\r\n * @param {*} srcValue The value to match.\r\n * @returns {Function} Returns the new spec function.\r\n */\r\n function baseMatchesProperty(path, srcValue) {\r\n if (isKey(path) && isStrictComparable(srcValue)) {\r\n return matchesStrictComparable(toKey(path), srcValue);\r\n }\r\n return function(object) {\r\n var objValue = get(object, path);\r\n return (objValue === undefined && objValue === srcValue)\r\n ? hasIn(object, path)\r\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\r\n };\r\n }\r\n\r\n /**\r\n * The base implementation of `_.merge` without support for multiple sources.\r\n *\r\n * @private\r\n * @param {Object} object The destination object.\r\n * @param {Object} source The source object.\r\n * @param {number} srcIndex The index of `source`.\r\n * @param {Function} [customizer] The function to customize merged values.\r\n * @param {Object} [stack] Tracks traversed source values and their merged\r\n * counterparts.\r\n */\r\n function baseMerge(object, source, srcIndex, customizer, stack) {\r\n if (object === source) {\r\n return;\r\n }\r\n baseFor(source, function(srcValue, key) {\r\n if (isObject(srcValue)) {\r\n stack || (stack = new Stack);\r\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\r\n }\r\n else {\r\n var newValue = customizer\r\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\r\n : undefined;\r\n\r\n if (newValue === undefined) {\r\n newValue = srcValue;\r\n }\r\n assignMergeValue(object, key, newValue);\r\n }\r\n }, keysIn);\r\n }\r\n\r\n /**\r\n * A specialized version of `baseMerge` for arrays and objects which performs\r\n * deep merges and tracks traversed objects enabling objects with circular\r\n * references to be merged.\r\n *\r\n * @private\r\n * @param {Object} object The destination object.\r\n * @param {Object} source The source object.\r\n * @param {string} key The key of the value to merge.\r\n * @param {number} srcIndex The index of `source`.\r\n * @param {Function} mergeFunc The function to merge values.\r\n * @param {Function} [customizer] The function to customize assigned values.\r\n * @param {Object} [stack] Tracks traversed source values and their merged\r\n * counterparts.\r\n */\r\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\r\n var objValue = safeGet(object, key),\r\n srcValue = safeGet(source, key),\r\n stacked = stack.get(srcValue);\r\n\r\n if (stacked) {\r\n assignMergeValue(object, key, stacked);\r\n return;\r\n }\r\n var newValue = customizer\r\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\r\n : undefined;\r\n\r\n var isCommon = newValue === undefined;\r\n\r\n if (isCommon) {\r\n var isArr = isArray(srcValue),\r\n isBuff = !isArr && isBuffer(srcValue),\r\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\r\n\r\n newValue = srcValue;\r\n if (isArr || isBuff || isTyped) {\r\n if (isArray(objValue)) {\r\n newValue = objValue;\r\n }\r\n else if (isArrayLikeObject(objValue)) {\r\n newValue = copyArray(objValue);\r\n }\r\n else if (isBuff) {\r\n isCommon = false;\r\n newValue = cloneBuffer(srcValue, true);\r\n }\r\n else if (isTyped) {\r\n isCommon = false;\r\n newValue = cloneTypedArray(srcValue, true);\r\n }\r\n else {\r\n newValue = [];\r\n }\r\n }\r\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\r\n newValue = objValue;\r\n if (isArguments(objValue)) {\r\n newValue = toPlainObject(objValue);\r\n }\r\n else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {\r\n newValue = initCloneObject(srcValue);\r\n }\r\n }\r\n else {\r\n isCommon = false;\r\n }\r\n }\r\n if (isCommon) {\r\n // Recursively merge objects and arrays (susceptible to call stack limits).\r\n stack.set(srcValue, newValue);\r\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\r\n stack['delete'](srcValue);\r\n }\r\n assignMergeValue(object, key, newValue);\r\n }\r\n\r\n /**\r\n * The base implementation of `_.orderBy` without param guards.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\r\n * @param {string[]} orders The sort orders of `iteratees`.\r\n * @returns {Array} Returns the new sorted array.\r\n */\r\n function baseOrderBy(collection, iteratees, orders) {\r\n var index = -1;\r\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\r\n\r\n var result = baseMap(collection, function(value, key, collection) {\r\n var criteria = arrayMap(iteratees, function(iteratee) {\r\n return iteratee(value);\r\n });\r\n return { 'criteria': criteria, 'index': ++index, 'value': value };\r\n });\r\n\r\n return baseSortBy(result, function(object, other) {\r\n return compareMultiple(object, other, orders);\r\n });\r\n }\r\n\r\n /**\r\n * The base implementation of `_.pick` without support for individual\r\n * property identifiers.\r\n *\r\n * @private\r\n * @param {Object} object The source object.\r\n * @param {string[]} paths The property paths to pick.\r\n * @returns {Object} Returns the new object.\r\n */\r\n function basePick(object, paths) {\r\n return basePickBy(object, paths, function(value, path) {\r\n return hasIn(object, path);\r\n });\r\n }\r\n\r\n /**\r\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Object} object The source object.\r\n * @param {string[]} paths The property paths to pick.\r\n * @param {Function} predicate The function invoked per property.\r\n * @returns {Object} Returns the new object.\r\n */\r\n function basePickBy(object, paths, predicate) {\r\n var index = -1,\r\n length = paths.length,\r\n result = {};\r\n\r\n while (++index < length) {\r\n var path = paths[index],\r\n value = baseGet(object, path);\r\n\r\n if (predicate(value, path)) {\r\n baseSet(result, castPath(path, object), value);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * A specialized version of `baseProperty` which supports deep paths.\r\n *\r\n * @private\r\n * @param {Array|string} path The path of the property to get.\r\n * @returns {Function} Returns the new accessor function.\r\n */\r\n function basePropertyDeep(path) {\r\n return function(object) {\r\n return baseGet(object, path);\r\n };\r\n }\r\n\r\n /**\r\n * The base implementation of `_.random` without support for returning\r\n * floating-point numbers.\r\n *\r\n * @private\r\n * @param {number} lower The lower bound.\r\n * @param {number} upper The upper bound.\r\n * @returns {number} Returns the random number.\r\n */\r\n function baseRandom(lower, upper) {\r\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\r\n }\r\n\r\n /**\r\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\r\n * coerce arguments.\r\n *\r\n * @private\r\n * @param {number} start The start of the range.\r\n * @param {number} end The end of the range.\r\n * @param {number} step The value to increment or decrement by.\r\n * @param {boolean} [fromRight] Specify iterating from right to left.\r\n * @returns {Array} Returns the range of numbers.\r\n */\r\n function baseRange(start, end, step, fromRight) {\r\n var index = -1,\r\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\r\n result = Array(length);\r\n\r\n while (length--) {\r\n result[fromRight ? length : ++index] = start;\r\n start += step;\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\r\n *\r\n * @private\r\n * @param {Function} func The function to apply a rest parameter to.\r\n * @param {number} [start=func.length-1] The start position of the rest parameter.\r\n * @returns {Function} Returns the new function.\r\n */\r\n function baseRest(func, start) {\r\n return setToString(overRest(func, start, identity), func + '');\r\n }\r\n\r\n /**\r\n * The base implementation of `_.set`.\r\n *\r\n * @private\r\n * @param {Object} object The object to modify.\r\n * @param {Array|string} path The path of the property to set.\r\n * @param {*} value The value to set.\r\n * @param {Function} [customizer] The function to customize path creation.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function baseSet(object, path, value, customizer) {\r\n if (!isObject(object)) {\r\n return object;\r\n }\r\n path = castPath(path, object);\r\n\r\n var index = -1,\r\n length = path.length,\r\n lastIndex = length - 1,\r\n nested = object;\r\n\r\n while (nested != null && ++index < length) {\r\n var key = toKey(path[index]),\r\n newValue = value;\r\n\r\n if (index != lastIndex) {\r\n var objValue = nested[key];\r\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\r\n if (newValue === undefined) {\r\n newValue = isObject(objValue)\r\n ? objValue\r\n : (isIndex(path[index + 1]) ? [] : {});\r\n }\r\n }\r\n assignValue(nested, key, newValue);\r\n nested = nested[key];\r\n }\r\n return object;\r\n }\r\n\r\n /**\r\n * The base implementation of `setData` without support for hot loop shorting.\r\n *\r\n * @private\r\n * @param {Function} func The function to associate metadata with.\r\n * @param {*} data The metadata.\r\n * @returns {Function} Returns `func`.\r\n */\r\n var baseSetData = !metaMap ? identity : function(func, data) {\r\n metaMap.set(func, data);\r\n return func;\r\n };\r\n\r\n /**\r\n * The base implementation of `setToString` without support for hot loop shorting.\r\n *\r\n * @private\r\n * @param {Function} func The function to modify.\r\n * @param {Function} string The `toString` result.\r\n * @returns {Function} Returns `func`.\r\n */\r\n var baseSetToString = !defineProperty ? identity : function(func, string) {\r\n return defineProperty(func, 'toString', {\r\n 'configurable': true,\r\n 'enumerable': false,\r\n 'value': constant(string),\r\n 'writable': true\r\n });\r\n };\r\n\r\n /**\r\n * The base implementation of `_.slice` without an iteratee call guard.\r\n *\r\n * @private\r\n * @param {Array} array The array to slice.\r\n * @param {number} [start=0] The start position.\r\n * @param {number} [end=array.length] The end position.\r\n * @returns {Array} Returns the slice of `array`.\r\n */\r\n function baseSlice(array, start, end) {\r\n var index = -1,\r\n length = array.length;\r\n\r\n if (start < 0) {\r\n start = -start > length ? 0 : (length + start);\r\n }\r\n end = end > length ? length : end;\r\n if (end < 0) {\r\n end += length;\r\n }\r\n length = start > end ? 0 : ((end - start) >>> 0);\r\n start >>>= 0;\r\n\r\n var result = Array(length);\r\n while (++index < length) {\r\n result[index] = array[index + start];\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.some` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} predicate The function invoked per iteration.\r\n * @returns {boolean} Returns `true` if any element passes the predicate check,\r\n * else `false`.\r\n */\r\n function baseSome(collection, predicate) {\r\n var result;\r\n\r\n baseEach(collection, function(value, index, collection) {\r\n result = predicate(value, index, collection);\r\n return !result;\r\n });\r\n return !!result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.toString` which doesn't convert nullish\r\n * values to empty strings.\r\n *\r\n * @private\r\n * @param {*} value The value to process.\r\n * @returns {string} Returns the string.\r\n */\r\n function baseToString(value) {\r\n // Exit early for strings to avoid a performance hit in some environments.\r\n if (typeof value == 'string') {\r\n return value;\r\n }\r\n if (isArray(value)) {\r\n // Recursively convert values (susceptible to call stack limits).\r\n return arrayMap(value, baseToString) + '';\r\n }\r\n if (isSymbol(value)) {\r\n return symbolToString ? symbolToString.call(value) : '';\r\n }\r\n var result = (value + '');\r\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {Function} [iteratee] The iteratee invoked per element.\r\n * @param {Function} [comparator] The comparator invoked per element.\r\n * @returns {Array} Returns the new duplicate free array.\r\n */\r\n function baseUniq(array, iteratee, comparator) {\r\n var index = -1,\r\n includes = arrayIncludes,\r\n length = array.length,\r\n isCommon = true,\r\n result = [],\r\n seen = result;\r\n\r\n if (comparator) {\r\n isCommon = false;\r\n includes = arrayIncludesWith;\r\n }\r\n else if (length >= LARGE_ARRAY_SIZE) {\r\n var set = iteratee ? null : createSet(array);\r\n if (set) {\r\n return setToArray(set);\r\n }\r\n isCommon = false;\r\n includes = cacheHas;\r\n seen = new SetCache;\r\n }\r\n else {\r\n seen = iteratee ? [] : result;\r\n }\r\n outer:\r\n while (++index < length) {\r\n var value = array[index],\r\n computed = iteratee ? iteratee(value) : value;\r\n\r\n value = (comparator || value !== 0) ? value : 0;\r\n if (isCommon && computed === computed) {\r\n var seenIndex = seen.length;\r\n while (seenIndex--) {\r\n if (seen[seenIndex] === computed) {\r\n continue outer;\r\n }\r\n }\r\n if (iteratee) {\r\n seen.push(computed);\r\n }\r\n result.push(value);\r\n }\r\n else if (!includes(seen, computed, comparator)) {\r\n if (seen !== result) {\r\n seen.push(computed);\r\n }\r\n result.push(value);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * The base implementation of `_.unset`.\r\n *\r\n * @private\r\n * @param {Object} object The object to modify.\r\n * @param {Array|string} path The property path to unset.\r\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\r\n */\r\n function baseUnset(object, path) {\r\n path = castPath(path, object);\r\n object = parent(object, path);\r\n return object == null || delete object[toKey(last(path))];\r\n }\r\n\r\n /**\r\n * The base implementation of `wrapperValue` which returns the result of\r\n * performing a sequence of actions on the unwrapped `value`, where each\r\n * successive action is supplied the return value of the previous.\r\n *\r\n * @private\r\n * @param {*} value The unwrapped value.\r\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\r\n * @returns {*} Returns the resolved value.\r\n */\r\n function baseWrapperValue(value, actions) {\r\n var result = value;\r\n if (result instanceof LazyWrapper) {\r\n result = result.value();\r\n }\r\n return arrayReduce(actions, function(result, action) {\r\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\r\n }, result);\r\n }\r\n\r\n /**\r\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\r\n *\r\n * @private\r\n * @param {Array} props The property identifiers.\r\n * @param {Array} values The property values.\r\n * @param {Function} assignFunc The function to assign values.\r\n * @returns {Object} Returns the new object.\r\n */\r\n function baseZipObject(props, values, assignFunc) {\r\n var index = -1,\r\n length = props.length,\r\n valsLength = values.length,\r\n result = {};\r\n\r\n while (++index < length) {\r\n var value = index < valsLength ? values[index] : undefined;\r\n assignFunc(result, props[index], value);\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Casts `value` to an empty array if it's not an array like object.\r\n *\r\n * @private\r\n * @param {*} value The value to inspect.\r\n * @returns {Array|Object} Returns the cast array-like object.\r\n */\r\n function castArrayLikeObject(value) {\r\n return isArrayLikeObject(value) ? value : [];\r\n }\r\n\r\n /**\r\n * Casts `value` to a path array if it's not one.\r\n *\r\n * @private\r\n * @param {*} value The value to inspect.\r\n * @param {Object} [object] The object to query keys on.\r\n * @returns {Array} Returns the cast property path array.\r\n */\r\n function castPath(value, object) {\r\n if (isArray(value)) {\r\n return value;\r\n }\r\n return isKey(value, object) ? [value] : stringToPath(toString(value));\r\n }\r\n\r\n /**\r\n * Casts `array` to a slice if it's needed.\r\n *\r\n * @private\r\n * @param {Array} array The array to inspect.\r\n * @param {number} start The start position.\r\n * @param {number} [end=array.length] The end position.\r\n * @returns {Array} Returns the cast slice.\r\n */\r\n function castSlice(array, start, end) {\r\n var length = array.length;\r\n end = end === undefined ? length : end;\r\n return (!start && end >= length) ? array : baseSlice(array, start, end);\r\n }\r\n\r\n /**\r\n * Creates a clone of `buffer`.\r\n *\r\n * @private\r\n * @param {Buffer} buffer The buffer to clone.\r\n * @param {boolean} [isDeep] Specify a deep clone.\r\n * @returns {Buffer} Returns the cloned buffer.\r\n */\r\n function cloneBuffer(buffer, isDeep) {\r\n if (isDeep) {\r\n return buffer.slice();\r\n }\r\n var length = buffer.length,\r\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\r\n\r\n buffer.copy(result);\r\n return result;\r\n }\r\n\r\n /**\r\n * Creates a clone of `arrayBuffer`.\r\n *\r\n * @private\r\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\r\n * @returns {ArrayBuffer} Returns the cloned array buffer.\r\n */\r\n function cloneArrayBuffer(arrayBuffer) {\r\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\r\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\r\n return result;\r\n }\r\n\r\n /**\r\n * Creates a clone of `dataView`.\r\n *\r\n * @private\r\n * @param {Object} dataView The data view to clone.\r\n * @param {boolean} [isDeep] Specify a deep clone.\r\n * @returns {Object} Returns the cloned data view.\r\n */\r\n function cloneDataView(dataView, isDeep) {\r\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\r\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\r\n }\r\n\r\n /**\r\n * Creates a clone of `regexp`.\r\n *\r\n * @private\r\n * @param {Object} regexp The regexp to clone.\r\n * @returns {Object} Returns the cloned regexp.\r\n */\r\n function cloneRegExp(regexp) {\r\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\r\n result.lastIndex = regexp.lastIndex;\r\n return result;\r\n }\r\n\r\n /**\r\n * Creates a clone of the `symbol` object.\r\n *\r\n * @private\r\n * @param {Object} symbol The symbol object to clone.\r\n * @returns {Object} Returns the cloned symbol object.\r\n */\r\n function cloneSymbol(symbol) {\r\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\r\n }\r\n\r\n /**\r\n * Creates a clone of `typedArray`.\r\n *\r\n * @private\r\n * @param {Object} typedArray The typed array to clone.\r\n * @param {boolean} [isDeep] Specify a deep clone.\r\n * @returns {Object} Returns the cloned typed array.\r\n */\r\n function cloneTypedArray(typedArray, isDeep) {\r\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\r\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\r\n }\r\n\r\n /**\r\n * Compares values to sort them in ascending order.\r\n *\r\n * @private\r\n * @param {*} value The value to compare.\r\n * @param {*} other The other value to compare.\r\n * @returns {number} Returns the sort order indicator for `value`.\r\n */\r\n function compareAscending(value, other) {\r\n if (value !== other) {\r\n var valIsDefined = value !== undefined,\r\n valIsNull = value === null,\r\n valIsReflexive = value === value,\r\n valIsSymbol = isSymbol(value);\r\n\r\n var othIsDefined = other !== undefined,\r\n othIsNull = other === null,\r\n othIsReflexive = other === other,\r\n othIsSymbol = isSymbol(other);\r\n\r\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\r\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\r\n (valIsNull && othIsDefined && othIsReflexive) ||\r\n (!valIsDefined && othIsReflexive) ||\r\n !valIsReflexive) {\r\n return 1;\r\n }\r\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\r\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\r\n (othIsNull && valIsDefined && valIsReflexive) ||\r\n (!othIsDefined && valIsReflexive) ||\r\n !othIsReflexive) {\r\n return -1;\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n /**\r\n * Used by `_.orderBy` to compare multiple properties of a value to another\r\n * and stable sort them.\r\n *\r\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\r\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\r\n * of corresponding values.\r\n *\r\n * @private\r\n * @param {Object} object The object to compare.\r\n * @param {Object} other The other object to compare.\r\n * @param {boolean[]|string[]} orders The order to sort by for each property.\r\n * @returns {number} Returns the sort order indicator for `object`.\r\n */\r\n function compareMultiple(object, other, orders) {\r\n var index = -1,\r\n objCriteria = object.criteria,\r\n othCriteria = other.criteria,\r\n length = objCriteria.length,\r\n ordersLength = orders.length;\r\n\r\n while (++index < length) {\r\n var result = compareAscending(objCriteria[index], othCriteria[index]);\r\n if (result) {\r\n if (index >= ordersLength) {\r\n return result;\r\n }\r\n var order = orders[index];\r\n return result * (order == 'desc' ? -1 : 1);\r\n }\r\n }\r\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\r\n // that causes it, under certain circumstances, to provide the same value for\r\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\r\n // for more details.\r\n //\r\n // This also ensures a stable sort in V8 and other engines.\r\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\r\n return object.index - other.index;\r\n }\r\n\r\n /**\r\n * Creates an array that is the composition of partially applied arguments,\r\n * placeholders, and provided arguments into a single array of arguments.\r\n *\r\n * @private\r\n * @param {Array} args The provided arguments.\r\n * @param {Array} partials The arguments to prepend to those provided.\r\n * @param {Array} holders The `partials` placeholder indexes.\r\n * @params {boolean} [isCurried] Specify composing for a curried function.\r\n * @returns {Array} Returns the new array of composed arguments.\r\n */\r\n function composeArgs(args, partials, holders, isCurried) {\r\n var argsIndex = -1,\r\n argsLength = args.length,\r\n holdersLength = holders.length,\r\n leftIndex = -1,\r\n leftLength = partials.length,\r\n rangeLength = nativeMax(argsLength - holdersLength, 0),\r\n result = Array(leftLength + rangeLength),\r\n isUncurried = !isCurried;\r\n\r\n while (++leftIndex < leftLength) {\r\n result[leftIndex] = partials[leftIndex];\r\n }\r\n while (++argsIndex < holdersLength) {\r\n if (isUncurried || argsIndex < argsLength) {\r\n result[holders[argsIndex]] = args[argsIndex];\r\n }\r\n }\r\n while (rangeLength--) {\r\n result[leftIndex++] = args[argsIndex++];\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * This function is like `composeArgs` except that the arguments composition\r\n * is tailored for `_.partialRight`.\r\n *\r\n * @private\r\n * @param {Array} args The provided arguments.\r\n * @param {Array} partials The arguments to append to those provided.\r\n * @param {Array} holders The `partials` placeholder indexes.\r\n * @params {boolean} [isCurried] Specify composing for a curried function.\r\n * @returns {Array} Returns the new array of composed arguments.\r\n */\r\n function composeArgsRight(args, partials, holders, isCurried) {\r\n var argsIndex = -1,\r\n argsLength = args.length,\r\n holdersIndex = -1,\r\n holdersLength = holders.length,\r\n rightIndex = -1,\r\n rightLength = partials.length,\r\n rangeLength = nativeMax(argsLength - holdersLength, 0),\r\n result = Array(rangeLength + rightLength),\r\n isUncurried = !isCurried;\r\n\r\n while (++argsIndex < rangeLength) {\r\n result[argsIndex] = args[argsIndex];\r\n }\r\n var offset = argsIndex;\r\n while (++rightIndex < rightLength) {\r\n result[offset + rightIndex] = partials[rightIndex];\r\n }\r\n while (++holdersIndex < holdersLength) {\r\n if (isUncurried || argsIndex < argsLength) {\r\n result[offset + holders[holdersIndex]] = args[argsIndex++];\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Copies the values of `source` to `array`.\r\n *\r\n * @private\r\n * @param {Array} source The array to copy values from.\r\n * @param {Array} [array=[]] The array to copy values to.\r\n * @returns {Array} Returns `array`.\r\n */\r\n function copyArray(source, array) {\r\n var index = -1,\r\n length = source.length;\r\n\r\n array || (array = Array(length));\r\n while (++index < length) {\r\n array[index] = source[index];\r\n }\r\n return array;\r\n }\r\n\r\n /**\r\n * Copies properties of `source` to `object`.\r\n *\r\n * @private\r\n * @param {Object} source The object to copy properties from.\r\n * @param {Array} props The property identifiers to copy.\r\n * @param {Object} [object={}] The object to copy properties to.\r\n * @param {Function} [customizer] The function to customize copied values.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function copyObject(source, props, object, customizer) {\r\n var isNew = !object;\r\n object || (object = {});\r\n\r\n var index = -1,\r\n length = props.length;\r\n\r\n while (++index < length) {\r\n var key = props[index];\r\n\r\n var newValue = customizer\r\n ? customizer(object[key], source[key], key, object, source)\r\n : undefined;\r\n\r\n if (newValue === undefined) {\r\n newValue = source[key];\r\n }\r\n if (isNew) {\r\n baseAssignValue(object, key, newValue);\r\n } else {\r\n assignValue(object, key, newValue);\r\n }\r\n }\r\n return object;\r\n }\r\n\r\n /**\r\n * Copies own symbols of `source` to `object`.\r\n *\r\n * @private\r\n * @param {Object} source The object to copy symbols from.\r\n * @param {Object} [object={}] The object to copy symbols to.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function copySymbols(source, object) {\r\n return copyObject(source, getSymbols(source), object);\r\n }\r\n\r\n /**\r\n * Copies own and inherited symbols of `source` to `object`.\r\n *\r\n * @private\r\n * @param {Object} source The object to copy symbols from.\r\n * @param {Object} [object={}] The object to copy symbols to.\r\n * @returns {Object} Returns `object`.\r\n */\r\n function copySymbolsIn(source, object) {\r\n return copyObject(source, getSymbolsIn(source), object);\r\n }\r\n\r\n /**\r\n * Creates a function like `_.groupBy`.\r\n *\r\n * @private\r\n * @param {Function} setter The function to set accumulator values.\r\n * @param {Function} [initializer] The accumulator object initializer.\r\n * @returns {Function} Returns the new aggregator function.\r\n */\r\n function createAggregator(setter, initializer) {\r\n return function(collection, iteratee) {\r\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\r\n accumulator = initializer ? initializer() : {};\r\n\r\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function like `_.assign`.\r\n *\r\n * @private\r\n * @param {Function} assigner The function to assign values.\r\n * @returns {Function} Returns the new assigner function.\r\n */\r\n function createAssigner(assigner) {\r\n return baseRest(function(object, sources) {\r\n var index = -1,\r\n length = sources.length,\r\n customizer = length > 1 ? sources[length - 1] : undefined,\r\n guard = length > 2 ? sources[2] : undefined;\r\n\r\n customizer = (assigner.length > 3 && typeof customizer == 'function')\r\n ? (length--, customizer)\r\n : undefined;\r\n\r\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\r\n customizer = length < 3 ? undefined : customizer;\r\n length = 1;\r\n }\r\n object = Object(object);\r\n while (++index < length) {\r\n var source = sources[index];\r\n if (source) {\r\n assigner(object, source, index, customizer);\r\n }\r\n }\r\n return object;\r\n });\r\n }\r\n\r\n /**\r\n * Creates a `baseEach` or `baseEachRight` function.\r\n *\r\n * @private\r\n * @param {Function} eachFunc The function to iterate over a collection.\r\n * @param {boolean} [fromRight] Specify iterating from right to left.\r\n * @returns {Function} Returns the new base function.\r\n */\r\n function createBaseEach(eachFunc, fromRight) {\r\n return function(collection, iteratee) {\r\n if (collection == null) {\r\n return collection;\r\n }\r\n if (!isArrayLike(collection)) {\r\n return eachFunc(collection, iteratee);\r\n }\r\n var length = collection.length,\r\n index = fromRight ? length : -1,\r\n iterable = Object(collection);\r\n\r\n while ((fromRight ? index-- : ++index < length)) {\r\n if (iteratee(iterable[index], index, iterable) === false) {\r\n break;\r\n }\r\n }\r\n return collection;\r\n };\r\n }\r\n\r\n /**\r\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\r\n *\r\n * @private\r\n * @param {boolean} [fromRight] Specify iterating from right to left.\r\n * @returns {Function} Returns the new base function.\r\n */\r\n function createBaseFor(fromRight) {\r\n return function(object, iteratee, keysFunc) {\r\n var index = -1,\r\n iterable = Object(object),\r\n props = keysFunc(object),\r\n length = props.length;\r\n\r\n while (length--) {\r\n var key = props[fromRight ? length : ++index];\r\n if (iteratee(iterable[key], key, iterable) === false) {\r\n break;\r\n }\r\n }\r\n return object;\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that wraps `func` to invoke it with the optional `this`\r\n * binding of `thisArg`.\r\n *\r\n * @private\r\n * @param {Function} func The function to wrap.\r\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\r\n * @param {*} [thisArg] The `this` binding of `func`.\r\n * @returns {Function} Returns the new wrapped function.\r\n */\r\n function createBind(func, bitmask, thisArg) {\r\n var isBind = bitmask & WRAP_BIND_FLAG,\r\n Ctor = createCtor(func);\r\n\r\n function wrapper() {\r\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\r\n return fn.apply(isBind ? thisArg : this, arguments);\r\n }\r\n return wrapper;\r\n }\r\n\r\n /**\r\n * Creates a function that produces an instance of `Ctor` regardless of\r\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\r\n *\r\n * @private\r\n * @param {Function} Ctor The constructor to wrap.\r\n * @returns {Function} Returns the new wrapped function.\r\n */\r\n function createCtor(Ctor) {\r\n return function() {\r\n // Use a `switch` statement to work with class constructors. See\r\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\r\n // for more details.\r\n var args = arguments;\r\n switch (args.length) {\r\n case 0: return new Ctor;\r\n case 1: return new Ctor(args[0]);\r\n case 2: return new Ctor(args[0], args[1]);\r\n case 3: return new Ctor(args[0], args[1], args[2]);\r\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\r\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\r\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\r\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\r\n }\r\n var thisBinding = baseCreate(Ctor.prototype),\r\n result = Ctor.apply(thisBinding, args);\r\n\r\n // Mimic the constructor's `return` behavior.\r\n // See https://es5.github.io/#x13.2.2 for more details.\r\n return isObject(result) ? result : thisBinding;\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that wraps `func` to enable currying.\r\n *\r\n * @private\r\n * @param {Function} func The function to wrap.\r\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\r\n * @param {number} arity The arity of `func`.\r\n * @returns {Function} Returns the new wrapped function.\r\n */\r\n function createCurry(func, bitmask, arity) {\r\n var Ctor = createCtor(func);\r\n\r\n function wrapper() {\r\n var length = arguments.length,\r\n args = Array(length),\r\n index = length,\r\n placeholder = getHolder(wrapper);\r\n\r\n while (index--) {\r\n args[index] = arguments[index];\r\n }\r\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\r\n ? []\r\n : replaceHolders(args, placeholder);\r\n\r\n length -= holders.length;\r\n if (length < arity) {\r\n return createRecurry(\r\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\r\n args, holders, undefined, undefined, arity - length);\r\n }\r\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\r\n return apply(fn, this, args);\r\n }\r\n return wrapper;\r\n }\r\n\r\n /**\r\n * Creates a `_.find` or `_.findLast` function.\r\n *\r\n * @private\r\n * @param {Function} findIndexFunc The function to find the collection index.\r\n * @returns {Function} Returns the new find function.\r\n */\r\n function createFind(findIndexFunc) {\r\n return function(collection, predicate, fromIndex) {\r\n var iterable = Object(collection);\r\n if (!isArrayLike(collection)) {\r\n var iteratee = baseIteratee(predicate, 3);\r\n collection = keys(collection);\r\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\r\n }\r\n var index = findIndexFunc(collection, predicate, fromIndex);\r\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that wraps `func` to invoke it with optional `this`\r\n * binding of `thisArg`, partial application, and currying.\r\n *\r\n * @private\r\n * @param {Function|string} func The function or method name to wrap.\r\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\r\n * @param {*} [thisArg] The `this` binding of `func`.\r\n * @param {Array} [partials] The arguments to prepend to those provided to\r\n * the new function.\r\n * @param {Array} [holders] The `partials` placeholder indexes.\r\n * @param {Array} [partialsRight] The arguments to append to those provided\r\n * to the new function.\r\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\r\n * @param {Array} [argPos] The argument positions of the new function.\r\n * @param {number} [ary] The arity cap of `func`.\r\n * @param {number} [arity] The arity of `func`.\r\n * @returns {Function} Returns the new wrapped function.\r\n */\r\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\r\n var isAry = bitmask & WRAP_ARY_FLAG,\r\n isBind = bitmask & WRAP_BIND_FLAG,\r\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\r\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\r\n isFlip = bitmask & WRAP_FLIP_FLAG,\r\n Ctor = isBindKey ? undefined : createCtor(func);\r\n\r\n function wrapper() {\r\n var length = arguments.length,\r\n args = Array(length),\r\n index = length;\r\n\r\n while (index--) {\r\n args[index] = arguments[index];\r\n }\r\n if (isCurried) {\r\n var placeholder = getHolder(wrapper),\r\n holdersCount = countHolders(args, placeholder);\r\n }\r\n if (partials) {\r\n args = composeArgs(args, partials, holders, isCurried);\r\n }\r\n if (partialsRight) {\r\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\r\n }\r\n length -= holdersCount;\r\n if (isCurried && length < arity) {\r\n var newHolders = replaceHolders(args, placeholder);\r\n return createRecurry(\r\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\r\n args, newHolders, argPos, ary, arity - length\r\n );\r\n }\r\n var thisBinding = isBind ? thisArg : this,\r\n fn = isBindKey ? thisBinding[func] : func;\r\n\r\n length = args.length;\r\n if (argPos) {\r\n args = reorder(args, argPos);\r\n } else if (isFlip && length > 1) {\r\n args.reverse();\r\n }\r\n if (isAry && ary < length) {\r\n args.length = ary;\r\n }\r\n if (this && this !== root && this instanceof wrapper) {\r\n fn = Ctor || createCtor(fn);\r\n }\r\n return fn.apply(thisBinding, args);\r\n }\r\n return wrapper;\r\n }\r\n\r\n /**\r\n * Creates a function like `_.invertBy`.\r\n *\r\n * @private\r\n * @param {Function} setter The function to set accumulator values.\r\n * @param {Function} toIteratee The function to resolve iteratees.\r\n * @returns {Function} Returns the new inverter function.\r\n */\r\n function createInverter(setter, toIteratee) {\r\n return function(object, iteratee) {\r\n return baseInverter(object, setter, toIteratee(iteratee), {});\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that wraps `func` to invoke it with the `this` binding\r\n * of `thisArg` and `partials` prepended to the arguments it receives.\r\n *\r\n * @private\r\n * @param {Function} func The function to wrap.\r\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\r\n * @param {*} thisArg The `this` binding of `func`.\r\n * @param {Array} partials The arguments to prepend to those provided to\r\n * the new function.\r\n * @returns {Function} Returns the new wrapped function.\r\n */\r\n function createPartial(func, bitmask, thisArg, partials) {\r\n var isBind = bitmask & WRAP_BIND_FLAG,\r\n Ctor = createCtor(func);\r\n\r\n function wrapper() {\r\n var argsIndex = -1,\r\n argsLength = arguments.length,\r\n leftIndex = -1,\r\n leftLength = partials.length,\r\n args = Array(leftLength + argsLength),\r\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\r\n\r\n while (++leftIndex < leftLength) {\r\n args[leftIndex] = partials[leftIndex];\r\n }\r\n while (argsLength--) {\r\n args[leftIndex++] = arguments[++argsIndex];\r\n }\r\n return apply(fn, isBind ? thisArg : this, args);\r\n }\r\n return wrapper;\r\n }\r\n\r\n /**\r\n * Creates a `_.range` or `_.rangeRight` function.\r\n *\r\n * @private\r\n * @param {boolean} [fromRight] Specify iterating from right to left.\r\n * @returns {Function} Returns the new range function.\r\n */\r\n function createRange(fromRight) {\r\n return function(start, end, step) {\r\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\r\n end = step = undefined;\r\n }\r\n // Ensure the sign of `-0` is preserved.\r\n start = toFinite(start);\r\n if (end === undefined) {\r\n end = start;\r\n start = 0;\r\n } else {\r\n end = toFinite(end);\r\n }\r\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\r\n return baseRange(start, end, step, fromRight);\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that wraps `func` to continue currying.\r\n *\r\n * @private\r\n * @param {Function} func The function to wrap.\r\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\r\n * @param {Function} wrapFunc The function to create the `func` wrapper.\r\n * @param {*} placeholder The placeholder value.\r\n * @param {*} [thisArg] The `this` binding of `func`.\r\n * @param {Array} [partials] The arguments to prepend to those provided to\r\n * the new function.\r\n * @param {Array} [holders] The `partials` placeholder indexes.\r\n * @param {Array} [argPos] The argument positions of the new function.\r\n * @param {number} [ary] The arity cap of `func`.\r\n * @param {number} [arity] The arity of `func`.\r\n * @returns {Function} Returns the new wrapped function.\r\n */\r\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\r\n var isCurry = bitmask & WRAP_CURRY_FLAG,\r\n newHolders = isCurry ? holders : undefined,\r\n newHoldersRight = isCurry ? undefined : holders,\r\n newPartials = isCurry ? partials : undefined,\r\n newPartialsRight = isCurry ? undefined : partials;\r\n\r\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\r\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\r\n\r\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\r\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\r\n }\r\n var newData = [\r\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\r\n newHoldersRight, argPos, ary, arity\r\n ];\r\n\r\n var result = wrapFunc.apply(undefined, newData);\r\n if (isLaziable(func)) {\r\n setData(result, newData);\r\n }\r\n result.placeholder = placeholder;\r\n return setWrapToString(result, func, bitmask);\r\n }\r\n\r\n /**\r\n * Creates a set object of `values`.\r\n *\r\n * @private\r\n * @param {Array} values The values to add to the set.\r\n * @returns {Object} Returns the new set.\r\n */\r\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\r\n return new Set(values);\r\n };\r\n\r\n /**\r\n * Creates a function that either curries or invokes `func` with optional\r\n * `this` binding and partially applied arguments.\r\n *\r\n * @private\r\n * @param {Function|string} func The function or method name to wrap.\r\n * @param {number} bitmask The bitmask flags.\r\n * 1 - `_.bind`\r\n * 2 - `_.bindKey`\r\n * 4 - `_.curry` or `_.curryRight` of a bound function\r\n * 8 - `_.curry`\r\n * 16 - `_.curryRight`\r\n * 32 - `_.partial`\r\n * 64 - `_.partialRight`\r\n * 128 - `_.rearg`\r\n * 256 - `_.ary`\r\n * 512 - `_.flip`\r\n * @param {*} [thisArg] The `this` binding of `func`.\r\n * @param {Array} [partials] The arguments to be partially applied.\r\n * @param {Array} [holders] The `partials` placeholder indexes.\r\n * @param {Array} [argPos] The argument positions of the new function.\r\n * @param {number} [ary] The arity cap of `func`.\r\n * @param {number} [arity] The arity of `func`.\r\n * @returns {Function} Returns the new wrapped function.\r\n */\r\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\r\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\r\n if (!isBindKey && typeof func != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n var length = partials ? partials.length : 0;\r\n if (!length) {\r\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\r\n partials = holders = undefined;\r\n }\r\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\r\n arity = arity === undefined ? arity : toInteger(arity);\r\n length -= holders ? holders.length : 0;\r\n\r\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\r\n var partialsRight = partials,\r\n holdersRight = holders;\r\n\r\n partials = holders = undefined;\r\n }\r\n var data = isBindKey ? undefined : getData(func);\r\n\r\n var newData = [\r\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\r\n argPos, ary, arity\r\n ];\r\n\r\n if (data) {\r\n mergeData(newData, data);\r\n }\r\n func = newData[0];\r\n bitmask = newData[1];\r\n thisArg = newData[2];\r\n partials = newData[3];\r\n holders = newData[4];\r\n arity = newData[9] = newData[9] === undefined\r\n ? (isBindKey ? 0 : func.length)\r\n : nativeMax(newData[9] - length, 0);\r\n\r\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\r\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\r\n }\r\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\r\n var result = createBind(func, bitmask, thisArg);\r\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\r\n result = createCurry(func, bitmask, arity);\r\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\r\n result = createPartial(func, bitmask, thisArg, partials);\r\n } else {\r\n result = createHybrid.apply(undefined, newData);\r\n }\r\n var setter = data ? baseSetData : setData;\r\n return setWrapToString(setter(result, newData), func, bitmask);\r\n }\r\n\r\n /**\r\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\r\n * objects into destination objects that are passed thru.\r\n *\r\n * @private\r\n * @param {*} objValue The destination value.\r\n * @param {*} srcValue The source value.\r\n * @param {string} key The key of the property to merge.\r\n * @param {Object} object The parent object of `objValue`.\r\n * @param {Object} source The parent object of `srcValue`.\r\n * @param {Object} [stack] Tracks traversed source values and their merged\r\n * counterparts.\r\n * @returns {*} Returns the value to assign.\r\n */\r\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\r\n if (isObject(objValue) && isObject(srcValue)) {\r\n // Recursively merge objects and arrays (susceptible to call stack limits).\r\n stack.set(srcValue, objValue);\r\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\r\n stack['delete'](srcValue);\r\n }\r\n return objValue;\r\n }\r\n\r\n /**\r\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\r\n * objects.\r\n *\r\n * @private\r\n * @param {*} value The value to inspect.\r\n * @param {string} key The key of the property to inspect.\r\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\r\n */\r\n function customOmitClone(value) {\r\n return isPlainObject(value) ? undefined : value;\r\n }\r\n\r\n /**\r\n * A specialized version of `baseIsEqualDeep` for arrays with support for\r\n * partial deep comparisons.\r\n *\r\n * @private\r\n * @param {Array} array The array to compare.\r\n * @param {Array} other The other array to compare.\r\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\r\n * @param {Function} customizer The function to customize comparisons.\r\n * @param {Function} equalFunc The function to determine equivalents of values.\r\n * @param {Object} stack Tracks traversed `array` and `other` objects.\r\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\r\n */\r\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\r\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\r\n arrLength = array.length,\r\n othLength = other.length;\r\n\r\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\r\n return false;\r\n }\r\n // Assume cyclic values are equal.\r\n var stacked = stack.get(array);\r\n if (stacked && stack.get(other)) {\r\n return stacked == other;\r\n }\r\n var index = -1,\r\n result = true,\r\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\r\n\r\n stack.set(array, other);\r\n stack.set(other, array);\r\n\r\n // Ignore non-index properties.\r\n while (++index < arrLength) {\r\n var arrValue = array[index],\r\n othValue = other[index];\r\n\r\n if (customizer) {\r\n var compared = isPartial\r\n ? customizer(othValue, arrValue, index, other, array, stack)\r\n : customizer(arrValue, othValue, index, array, other, stack);\r\n }\r\n if (compared !== undefined) {\r\n if (compared) {\r\n continue;\r\n }\r\n result = false;\r\n break;\r\n }\r\n // Recursively compare arrays (susceptible to call stack limits).\r\n if (seen) {\r\n if (!arraySome(other, function(othValue, othIndex) {\r\n if (!cacheHas(seen, othIndex) &&\r\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\r\n return seen.push(othIndex);\r\n }\r\n })) {\r\n result = false;\r\n break;\r\n }\r\n } else if (!(\r\n arrValue === othValue ||\r\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\r\n )) {\r\n result = false;\r\n break;\r\n }\r\n }\r\n stack['delete'](array);\r\n stack['delete'](other);\r\n return result;\r\n }\r\n\r\n /**\r\n * A specialized version of `baseIsEqualDeep` for comparing objects of\r\n * the same `toStringTag`.\r\n *\r\n * **Note:** This function only supports comparing values with tags of\r\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\r\n *\r\n * @private\r\n * @param {Object} object The object to compare.\r\n * @param {Object} other The other object to compare.\r\n * @param {string} tag The `toStringTag` of the objects to compare.\r\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\r\n * @param {Function} customizer The function to customize comparisons.\r\n * @param {Function} equalFunc The function to determine equivalents of values.\r\n * @param {Object} stack Tracks traversed `object` and `other` objects.\r\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\r\n */\r\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\r\n switch (tag) {\r\n case dataViewTag:\r\n if ((object.byteLength != other.byteLength) ||\r\n (object.byteOffset != other.byteOffset)) {\r\n return false;\r\n }\r\n object = object.buffer;\r\n other = other.buffer;\r\n\r\n case arrayBufferTag:\r\n if ((object.byteLength != other.byteLength) ||\r\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\r\n return false;\r\n }\r\n return true;\r\n\r\n case boolTag:\r\n case dateTag:\r\n case numberTag:\r\n // Coerce booleans to `1` or `0` and dates to milliseconds.\r\n // Invalid dates are coerced to `NaN`.\r\n return eq(+object, +other);\r\n\r\n case errorTag:\r\n return object.name == other.name && object.message == other.message;\r\n\r\n case regexpTag:\r\n case stringTag:\r\n // Coerce regexes to strings and treat strings, primitives and objects,\r\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\r\n // for more details.\r\n return object == (other + '');\r\n\r\n case mapTag:\r\n var convert = mapToArray;\r\n\r\n case setTag:\r\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\r\n convert || (convert = setToArray);\r\n\r\n if (object.size != other.size && !isPartial) {\r\n return false;\r\n }\r\n // Assume cyclic values are equal.\r\n var stacked = stack.get(object);\r\n if (stacked) {\r\n return stacked == other;\r\n }\r\n bitmask |= COMPARE_UNORDERED_FLAG;\r\n\r\n // Recursively compare objects (susceptible to call stack limits).\r\n stack.set(object, other);\r\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\r\n stack['delete'](object);\r\n return result;\r\n\r\n case symbolTag:\r\n if (symbolValueOf) {\r\n return symbolValueOf.call(object) == symbolValueOf.call(other);\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n /**\r\n * A specialized version of `baseIsEqualDeep` for objects with support for\r\n * partial deep comparisons.\r\n *\r\n * @private\r\n * @param {Object} object The object to compare.\r\n * @param {Object} other The other object to compare.\r\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\r\n * @param {Function} customizer The function to customize comparisons.\r\n * @param {Function} equalFunc The function to determine equivalents of values.\r\n * @param {Object} stack Tracks traversed `object` and `other` objects.\r\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\r\n */\r\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\r\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\r\n objProps = getAllKeys(object),\r\n objLength = objProps.length,\r\n othProps = getAllKeys(other),\r\n othLength = othProps.length;\r\n\r\n if (objLength != othLength && !isPartial) {\r\n return false;\r\n }\r\n var index = objLength;\r\n while (index--) {\r\n var key = objProps[index];\r\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\r\n return false;\r\n }\r\n }\r\n // Assume cyclic values are equal.\r\n var stacked = stack.get(object);\r\n if (stacked && stack.get(other)) {\r\n return stacked == other;\r\n }\r\n var result = true;\r\n stack.set(object, other);\r\n stack.set(other, object);\r\n\r\n var skipCtor = isPartial;\r\n while (++index < objLength) {\r\n key = objProps[index];\r\n var objValue = object[key],\r\n othValue = other[key];\r\n\r\n if (customizer) {\r\n var compared = isPartial\r\n ? customizer(othValue, objValue, key, other, object, stack)\r\n : customizer(objValue, othValue, key, object, other, stack);\r\n }\r\n // Recursively compare objects (susceptible to call stack limits).\r\n if (!(compared === undefined\r\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\r\n : compared\r\n )) {\r\n result = false;\r\n break;\r\n }\r\n skipCtor || (skipCtor = key == 'constructor');\r\n }\r\n if (result && !skipCtor) {\r\n var objCtor = object.constructor,\r\n othCtor = other.constructor;\r\n\r\n // Non `Object` object instances with different constructors are not equal.\r\n if (objCtor != othCtor &&\r\n ('constructor' in object && 'constructor' in other) &&\r\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\r\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\r\n result = false;\r\n }\r\n }\r\n stack['delete'](object);\r\n stack['delete'](other);\r\n return result;\r\n }\r\n\r\n /**\r\n * A specialized version of `baseRest` which flattens the rest array.\r\n *\r\n * @private\r\n * @param {Function} func The function to apply a rest parameter to.\r\n * @returns {Function} Returns the new function.\r\n */\r\n function flatRest(func) {\r\n return setToString(overRest(func, undefined, flatten), func + '');\r\n }\r\n\r\n /**\r\n * Creates an array of own enumerable property names and symbols of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property names and symbols.\r\n */\r\n function getAllKeys(object) {\r\n return baseGetAllKeys(object, keys, getSymbols);\r\n }\r\n\r\n /**\r\n * Creates an array of own and inherited enumerable property names and\r\n * symbols of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property names and symbols.\r\n */\r\n function getAllKeysIn(object) {\r\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\r\n }\r\n\r\n /**\r\n * Gets metadata for `func`.\r\n *\r\n * @private\r\n * @param {Function} func The function to query.\r\n * @returns {*} Returns the metadata for `func`.\r\n */\r\n var getData = !metaMap ? noop : function(func) {\r\n return metaMap.get(func);\r\n };\r\n\r\n /**\r\n * Gets the name of `func`.\r\n *\r\n * @private\r\n * @param {Function} func The function to query.\r\n * @returns {string} Returns the function name.\r\n */\r\n function getFuncName(func) {\r\n var result = (func.name + ''),\r\n array = realNames[result],\r\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\r\n\r\n while (length--) {\r\n var data = array[length],\r\n otherFunc = data.func;\r\n if (otherFunc == null || otherFunc == func) {\r\n return data.name;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Gets the argument placeholder value for `func`.\r\n *\r\n * @private\r\n * @param {Function} func The function to inspect.\r\n * @returns {*} Returns the placeholder value.\r\n */\r\n function getHolder(func) {\r\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\r\n return object.placeholder;\r\n }\r\n\r\n /**\r\n * Gets the data for `map`.\r\n *\r\n * @private\r\n * @param {Object} map The map to query.\r\n * @param {string} key The reference key.\r\n * @returns {*} Returns the map data.\r\n */\r\n function getMapData(map, key) {\r\n var data = map.__data__;\r\n return isKeyable(key)\r\n ? data[typeof key == 'string' ? 'string' : 'hash']\r\n : data.map;\r\n }\r\n\r\n /**\r\n * Gets the property names, values, and compare flags of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the match data of `object`.\r\n */\r\n function getMatchData(object) {\r\n var result = keys(object),\r\n length = result.length;\r\n\r\n while (length--) {\r\n var key = result[length],\r\n value = object[key];\r\n\r\n result[length] = [key, value, isStrictComparable(value)];\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Gets the native function at `key` of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {string} key The key of the method to get.\r\n * @returns {*} Returns the function if it's native, else `undefined`.\r\n */\r\n function getNative(object, key) {\r\n var value = getValue(object, key);\r\n return baseIsNative(value) ? value : undefined;\r\n }\r\n\r\n /**\r\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\r\n *\r\n * @private\r\n * @param {*} value The value to query.\r\n * @returns {string} Returns the raw `toStringTag`.\r\n */\r\n function getRawTag(value) {\r\n var isOwn = hasOwnProperty.call(value, symToStringTag),\r\n tag = value[symToStringTag];\r\n\r\n try {\r\n value[symToStringTag] = undefined;\r\n var unmasked = true;\r\n } catch (e) {}\r\n\r\n var result = nativeObjectToString.call(value);\r\n if (unmasked) {\r\n if (isOwn) {\r\n value[symToStringTag] = tag;\r\n } else {\r\n delete value[symToStringTag];\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Creates an array of the own enumerable symbols of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of symbols.\r\n */\r\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\r\n if (object == null) {\r\n return [];\r\n }\r\n object = Object(object);\r\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\r\n return propertyIsEnumerable.call(object, symbol);\r\n });\r\n };\r\n\r\n /**\r\n * Creates an array of the own and inherited enumerable symbols of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of symbols.\r\n */\r\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\r\n var result = [];\r\n while (object) {\r\n arrayPush(result, getSymbols(object));\r\n object = getPrototype(object);\r\n }\r\n return result;\r\n };\r\n\r\n /**\r\n * Gets the `toStringTag` of `value`.\r\n *\r\n * @private\r\n * @param {*} value The value to query.\r\n * @returns {string} Returns the `toStringTag`.\r\n */\r\n var getTag = baseGetTag;\r\n\r\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\r\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\r\n (Map && getTag(new Map) != mapTag) ||\r\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\r\n (Set && getTag(new Set) != setTag) ||\r\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\r\n getTag = function(value) {\r\n var result = baseGetTag(value),\r\n Ctor = result == objectTag ? value.constructor : undefined,\r\n ctorString = Ctor ? toSource(Ctor) : '';\r\n\r\n if (ctorString) {\r\n switch (ctorString) {\r\n case dataViewCtorString: return dataViewTag;\r\n case mapCtorString: return mapTag;\r\n case promiseCtorString: return promiseTag;\r\n case setCtorString: return setTag;\r\n case weakMapCtorString: return weakMapTag;\r\n }\r\n }\r\n return result;\r\n };\r\n }\r\n\r\n /**\r\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\r\n *\r\n * @private\r\n * @param {number} start The start of the view.\r\n * @param {number} end The end of the view.\r\n * @param {Array} transforms The transformations to apply to the view.\r\n * @returns {Object} Returns an object containing the `start` and `end`\r\n * positions of the view.\r\n */\r\n function getView(start, end, transforms) {\r\n var index = -1,\r\n length = transforms.length;\r\n\r\n while (++index < length) {\r\n var data = transforms[index],\r\n size = data.size;\r\n\r\n switch (data.type) {\r\n case 'drop': start += size; break;\r\n case 'dropRight': end -= size; break;\r\n case 'take': end = nativeMin(end, start + size); break;\r\n case 'takeRight': start = nativeMax(start, end - size); break;\r\n }\r\n }\r\n return { 'start': start, 'end': end };\r\n }\r\n\r\n /**\r\n * Extracts wrapper details from the `source` body comment.\r\n *\r\n * @private\r\n * @param {string} source The source to inspect.\r\n * @returns {Array} Returns the wrapper details.\r\n */\r\n function getWrapDetails(source) {\r\n var match = source.match(reWrapDetails);\r\n return match ? match[1].split(reSplitDetails) : [];\r\n }\r\n\r\n /**\r\n * Checks if `path` exists on `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {Array|string} path The path to check.\r\n * @param {Function} hasFunc The function to check properties.\r\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\r\n */\r\n function hasPath(object, path, hasFunc) {\r\n path = castPath(path, object);\r\n\r\n var index = -1,\r\n length = path.length,\r\n result = false;\r\n\r\n while (++index < length) {\r\n var key = toKey(path[index]);\r\n if (!(result = object != null && hasFunc(object, key))) {\r\n break;\r\n }\r\n object = object[key];\r\n }\r\n if (result || ++index != length) {\r\n return result;\r\n }\r\n length = object == null ? 0 : object.length;\r\n return !!length && isLength(length) && isIndex(key, length) &&\r\n (isArray(object) || isArguments(object));\r\n }\r\n\r\n /**\r\n * Initializes an array clone.\r\n *\r\n * @private\r\n * @param {Array} array The array to clone.\r\n * @returns {Array} Returns the initialized clone.\r\n */\r\n function initCloneArray(array) {\r\n var length = array.length,\r\n result = new array.constructor(length);\r\n\r\n // Add properties assigned by `RegExp#exec`.\r\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\r\n result.index = array.index;\r\n result.input = array.input;\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Initializes an object clone.\r\n *\r\n * @private\r\n * @param {Object} object The object to clone.\r\n * @returns {Object} Returns the initialized clone.\r\n */\r\n function initCloneObject(object) {\r\n return (typeof object.constructor == 'function' && !isPrototype(object))\r\n ? baseCreate(getPrototype(object))\r\n : {};\r\n }\r\n\r\n /**\r\n * Initializes an object clone based on its `toStringTag`.\r\n *\r\n * **Note:** This function only supports cloning values with tags of\r\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\r\n *\r\n * @private\r\n * @param {Object} object The object to clone.\r\n * @param {string} tag The `toStringTag` of the object to clone.\r\n * @param {boolean} [isDeep] Specify a deep clone.\r\n * @returns {Object} Returns the initialized clone.\r\n */\r\n function initCloneByTag(object, tag, isDeep) {\r\n var Ctor = object.constructor;\r\n switch (tag) {\r\n case arrayBufferTag:\r\n return cloneArrayBuffer(object);\r\n\r\n case boolTag:\r\n case dateTag:\r\n return new Ctor(+object);\r\n\r\n case dataViewTag:\r\n return cloneDataView(object, isDeep);\r\n\r\n case float32Tag: case float64Tag:\r\n case int8Tag: case int16Tag: case int32Tag:\r\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\r\n return cloneTypedArray(object, isDeep);\r\n\r\n case mapTag:\r\n return new Ctor;\r\n\r\n case numberTag:\r\n case stringTag:\r\n return new Ctor(object);\r\n\r\n case regexpTag:\r\n return cloneRegExp(object);\r\n\r\n case setTag:\r\n return new Ctor;\r\n\r\n case symbolTag:\r\n return cloneSymbol(object);\r\n }\r\n }\r\n\r\n /**\r\n * Inserts wrapper `details` in a comment at the top of the `source` body.\r\n *\r\n * @private\r\n * @param {string} source The source to modify.\r\n * @returns {Array} details The details to insert.\r\n * @returns {string} Returns the modified source.\r\n */\r\n function insertWrapDetails(source, details) {\r\n var length = details.length;\r\n if (!length) {\r\n return source;\r\n }\r\n var lastIndex = length - 1;\r\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\r\n details = details.join(length > 2 ? ', ' : ' ');\r\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\r\n }\r\n\r\n /**\r\n * Checks if `value` is a flattenable `arguments` object or array.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\r\n */\r\n function isFlattenable(value) {\r\n return isArray(value) || isArguments(value) ||\r\n !!(spreadableSymbol && value && value[spreadableSymbol]);\r\n }\r\n\r\n /**\r\n * Checks if `value` is a valid array-like index.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\r\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\r\n */\r\n function isIndex(value, length) {\r\n var type = typeof value;\r\n length = length == null ? MAX_SAFE_INTEGER : length;\r\n\r\n return !!length &&\r\n (type == 'number' ||\r\n (type != 'symbol' && reIsUint.test(value))) &&\r\n (value > -1 && value % 1 == 0 && value < length);\r\n }\r\n\r\n /**\r\n * Checks if the given arguments are from an iteratee call.\r\n *\r\n * @private\r\n * @param {*} value The potential iteratee value argument.\r\n * @param {*} index The potential iteratee index or key argument.\r\n * @param {*} object The potential iteratee object argument.\r\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\r\n * else `false`.\r\n */\r\n function isIterateeCall(value, index, object) {\r\n if (!isObject(object)) {\r\n return false;\r\n }\r\n var type = typeof index;\r\n if (type == 'number'\r\n ? (isArrayLike(object) && isIndex(index, object.length))\r\n : (type == 'string' && index in object)\r\n ) {\r\n return eq(object[index], value);\r\n }\r\n return false;\r\n }\r\n\r\n /**\r\n * Checks if `value` is a property name and not a property path.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @param {Object} [object] The object to query keys on.\r\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\r\n */\r\n function isKey(value, object) {\r\n if (isArray(value)) {\r\n return false;\r\n }\r\n var type = typeof value;\r\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\r\n value == null || isSymbol(value)) {\r\n return true;\r\n }\r\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\r\n (object != null && value in Object(object));\r\n }\r\n\r\n /**\r\n * Checks if `value` is suitable for use as unique object key.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\r\n */\r\n function isKeyable(value) {\r\n var type = typeof value;\r\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\r\n ? (value !== '__proto__')\r\n : (value === null);\r\n }\r\n\r\n /**\r\n * Checks if `func` has a lazy counterpart.\r\n *\r\n * @private\r\n * @param {Function} func The function to check.\r\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\r\n * else `false`.\r\n */\r\n function isLaziable(func) {\r\n var funcName = getFuncName(func),\r\n other = lodash[funcName];\r\n\r\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\r\n return false;\r\n }\r\n if (func === other) {\r\n return true;\r\n }\r\n var data = getData(other);\r\n return !!data && func === data[0];\r\n }\r\n\r\n /**\r\n * Checks if `func` has its source masked.\r\n *\r\n * @private\r\n * @param {Function} func The function to check.\r\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\r\n */\r\n function isMasked(func) {\r\n return !!maskSrcKey && (maskSrcKey in func);\r\n }\r\n\r\n /**\r\n * Checks if `value` is likely a prototype object.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\r\n */\r\n function isPrototype(value) {\r\n var Ctor = value && value.constructor,\r\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\r\n\r\n return value === proto;\r\n }\r\n\r\n /**\r\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\r\n *\r\n * @private\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` if suitable for strict\r\n * equality comparisons, else `false`.\r\n */\r\n function isStrictComparable(value) {\r\n return value === value && !isObject(value);\r\n }\r\n\r\n /**\r\n * A specialized version of `matchesProperty` for source values suitable\r\n * for strict equality comparisons, i.e. `===`.\r\n *\r\n * @private\r\n * @param {string} key The key of the property to get.\r\n * @param {*} srcValue The value to match.\r\n * @returns {Function} Returns the new spec function.\r\n */\r\n function matchesStrictComparable(key, srcValue) {\r\n return function(object) {\r\n if (object == null) {\r\n return false;\r\n }\r\n return object[key] === srcValue &&\r\n (srcValue !== undefined || (key in Object(object)));\r\n };\r\n }\r\n\r\n /**\r\n * A specialized version of `_.memoize` which clears the memoized function's\r\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\r\n *\r\n * @private\r\n * @param {Function} func The function to have its output memoized.\r\n * @returns {Function} Returns the new memoized function.\r\n */\r\n function memoizeCapped(func) {\r\n var result = memoize(func, function(key) {\r\n if (cache.size === MAX_MEMOIZE_SIZE) {\r\n cache.clear();\r\n }\r\n return key;\r\n });\r\n\r\n var cache = result.cache;\r\n return result;\r\n }\r\n\r\n /**\r\n * Merges the function metadata of `source` into `data`.\r\n *\r\n * Merging metadata reduces the number of wrappers used to invoke a function.\r\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\r\n * may be applied regardless of execution order. Methods like `_.ary` and\r\n * `_.rearg` modify function arguments, making the order in which they are\r\n * executed important, preventing the merging of metadata. However, we make\r\n * an exception for a safe combined case where curried functions have `_.ary`\r\n * and or `_.rearg` applied.\r\n *\r\n * @private\r\n * @param {Array} data The destination metadata.\r\n * @param {Array} source The source metadata.\r\n * @returns {Array} Returns `data`.\r\n */\r\n function mergeData(data, source) {\r\n var bitmask = data[1],\r\n srcBitmask = source[1],\r\n newBitmask = bitmask | srcBitmask,\r\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\r\n\r\n var isCombo =\r\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\r\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\r\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\r\n\r\n // Exit early if metadata can't be merged.\r\n if (!(isCommon || isCombo)) {\r\n return data;\r\n }\r\n // Use source `thisArg` if available.\r\n if (srcBitmask & WRAP_BIND_FLAG) {\r\n data[2] = source[2];\r\n // Set when currying a bound function.\r\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\r\n }\r\n // Compose partial arguments.\r\n var value = source[3];\r\n if (value) {\r\n var partials = data[3];\r\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\r\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\r\n }\r\n // Compose partial right arguments.\r\n value = source[5];\r\n if (value) {\r\n partials = data[5];\r\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\r\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\r\n }\r\n // Use source `argPos` if available.\r\n value = source[7];\r\n if (value) {\r\n data[7] = value;\r\n }\r\n // Use source `ary` if it's smaller.\r\n if (srcBitmask & WRAP_ARY_FLAG) {\r\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\r\n }\r\n // Use source `arity` if one is not provided.\r\n if (data[9] == null) {\r\n data[9] = source[9];\r\n }\r\n // Use source `func` and merge bitmasks.\r\n data[0] = source[0];\r\n data[1] = newBitmask;\r\n\r\n return data;\r\n }\r\n\r\n /**\r\n * This function is like\r\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\r\n * except that it includes inherited enumerable properties.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property names.\r\n */\r\n function nativeKeysIn(object) {\r\n var result = [];\r\n if (object != null) {\r\n for (var key in Object(object)) {\r\n result.push(key);\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Converts `value` to a string using `Object.prototype.toString`.\r\n *\r\n * @private\r\n * @param {*} value The value to convert.\r\n * @returns {string} Returns the converted string.\r\n */\r\n function objectToString(value) {\r\n return nativeObjectToString.call(value);\r\n }\r\n\r\n /**\r\n * A specialized version of `baseRest` which transforms the rest array.\r\n *\r\n * @private\r\n * @param {Function} func The function to apply a rest parameter to.\r\n * @param {number} [start=func.length-1] The start position of the rest parameter.\r\n * @param {Function} transform The rest array transform.\r\n * @returns {Function} Returns the new function.\r\n */\r\n function overRest(func, start, transform) {\r\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\r\n return function() {\r\n var args = arguments,\r\n index = -1,\r\n length = nativeMax(args.length - start, 0),\r\n array = Array(length);\r\n\r\n while (++index < length) {\r\n array[index] = args[start + index];\r\n }\r\n index = -1;\r\n var otherArgs = Array(start + 1);\r\n while (++index < start) {\r\n otherArgs[index] = args[index];\r\n }\r\n otherArgs[start] = transform(array);\r\n return apply(func, this, otherArgs);\r\n };\r\n }\r\n\r\n /**\r\n * Gets the parent value at `path` of `object`.\r\n *\r\n * @private\r\n * @param {Object} object The object to query.\r\n * @param {Array} path The path to get the parent value of.\r\n * @returns {*} Returns the parent value.\r\n */\r\n function parent(object, path) {\r\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\r\n }\r\n\r\n /**\r\n * Reorder `array` according to the specified indexes where the element at\r\n * the first index is assigned as the first element, the element at\r\n * the second index is assigned as the second element, and so on.\r\n *\r\n * @private\r\n * @param {Array} array The array to reorder.\r\n * @param {Array} indexes The arranged array indexes.\r\n * @returns {Array} Returns `array`.\r\n */\r\n function reorder(array, indexes) {\r\n var arrLength = array.length,\r\n length = nativeMin(indexes.length, arrLength),\r\n oldArray = copyArray(array);\r\n\r\n while (length--) {\r\n var index = indexes[length];\r\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\r\n }\r\n return array;\r\n }\r\n\r\n /**\r\n * Sets metadata for `func`.\r\n *\r\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\r\n * period of time, it will trip its breaker and transition to an identity\r\n * function to avoid garbage collection pauses in V8. See\r\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\r\n * for more details.\r\n *\r\n * @private\r\n * @param {Function} func The function to associate metadata with.\r\n * @param {*} data The metadata.\r\n * @returns {Function} Returns `func`.\r\n */\r\n var setData = shortOut(baseSetData);\r\n\r\n /**\r\n * Sets the `toString` method of `func` to return `string`.\r\n *\r\n * @private\r\n * @param {Function} func The function to modify.\r\n * @param {Function} string The `toString` result.\r\n * @returns {Function} Returns `func`.\r\n */\r\n var setToString = shortOut(baseSetToString);\r\n\r\n /**\r\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\r\n * with wrapper details in a comment at the top of the source body.\r\n *\r\n * @private\r\n * @param {Function} wrapper The function to modify.\r\n * @param {Function} reference The reference function.\r\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\r\n * @returns {Function} Returns `wrapper`.\r\n */\r\n function setWrapToString(wrapper, reference, bitmask) {\r\n var source = (reference + '');\r\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\r\n }\r\n\r\n /**\r\n * Creates a function that'll short out and invoke `identity` instead\r\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\r\n * milliseconds.\r\n *\r\n * @private\r\n * @param {Function} func The function to restrict.\r\n * @returns {Function} Returns the new shortable function.\r\n */\r\n function shortOut(func) {\r\n var count = 0,\r\n lastCalled = 0;\r\n\r\n return function() {\r\n var stamp = nativeNow(),\r\n remaining = HOT_SPAN - (stamp - lastCalled);\r\n\r\n lastCalled = stamp;\r\n if (remaining > 0) {\r\n if (++count >= HOT_COUNT) {\r\n return arguments[0];\r\n }\r\n } else {\r\n count = 0;\r\n }\r\n return func.apply(undefined, arguments);\r\n };\r\n }\r\n\r\n /**\r\n * Converts `string` to a property path array.\r\n *\r\n * @private\r\n * @param {string} string The string to convert.\r\n * @returns {Array} Returns the property path array.\r\n */\r\n var stringToPath = memoizeCapped(function(string) {\r\n var result = [];\r\n if (string.charCodeAt(0) === 46 /* . */) {\r\n result.push('');\r\n }\r\n string.replace(rePropName, function(match, number, quote, subString) {\r\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\r\n });\r\n return result;\r\n });\r\n\r\n /**\r\n * Converts `value` to a string key if it's not a string or symbol.\r\n *\r\n * @private\r\n * @param {*} value The value to inspect.\r\n * @returns {string|symbol} Returns the key.\r\n */\r\n function toKey(value) {\r\n if (typeof value == 'string' || isSymbol(value)) {\r\n return value;\r\n }\r\n var result = (value + '');\r\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\r\n }\r\n\r\n /**\r\n * Converts `func` to its source code.\r\n *\r\n * @private\r\n * @param {Function} func The function to convert.\r\n * @returns {string} Returns the source code.\r\n */\r\n function toSource(func) {\r\n if (func != null) {\r\n try {\r\n return funcToString.call(func);\r\n } catch (e) {}\r\n try {\r\n return (func + '');\r\n } catch (e) {}\r\n }\r\n return '';\r\n }\r\n\r\n /**\r\n * Updates wrapper `details` based on `bitmask` flags.\r\n *\r\n * @private\r\n * @returns {Array} details The details to modify.\r\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\r\n * @returns {Array} Returns `details`.\r\n */\r\n function updateWrapDetails(details, bitmask) {\r\n arrayEach(wrapFlags, function(pair) {\r\n var value = '_.' + pair[0];\r\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\r\n details.push(value);\r\n }\r\n });\r\n return details.sort();\r\n }\r\n\r\n /**\r\n * Creates a clone of `wrapper`.\r\n *\r\n * @private\r\n * @param {Object} wrapper The wrapper to clone.\r\n * @returns {Object} Returns the cloned wrapper.\r\n */\r\n function wrapperClone(wrapper) {\r\n if (wrapper instanceof LazyWrapper) {\r\n return wrapper.clone();\r\n }\r\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\r\n result.__actions__ = copyArray(wrapper.__actions__);\r\n result.__index__ = wrapper.__index__;\r\n result.__values__ = wrapper.__values__;\r\n return result;\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates an array with all falsey values removed. The values `false`, `null`,\r\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to compact.\r\n * @returns {Array} Returns the new array of filtered values.\r\n * @example\r\n *\r\n * _.compact([0, 1, false, 2, '', 3]);\r\n * // => [1, 2, 3]\r\n */\r\n function compact(array) {\r\n var index = -1,\r\n length = array == null ? 0 : array.length,\r\n resIndex = 0,\r\n result = [];\r\n\r\n while (++index < length) {\r\n var value = array[index];\r\n if (value) {\r\n result[resIndex++] = value;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Creates a new array concatenating `array` with any additional arrays\r\n * and/or values.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Array\r\n * @param {Array} array The array to concatenate.\r\n * @param {...*} [values] The values to concatenate.\r\n * @returns {Array} Returns the new concatenated array.\r\n * @example\r\n *\r\n * var array = [1];\r\n * var other = _.concat(array, 2, [3], [[4]]);\r\n *\r\n * console.log(other);\r\n * // => [1, 2, 3, [4]]\r\n *\r\n * console.log(array);\r\n * // => [1]\r\n */\r\n function concat() {\r\n var length = arguments.length;\r\n if (!length) {\r\n return [];\r\n }\r\n var args = Array(length - 1),\r\n array = arguments[0],\r\n index = length;\r\n\r\n while (index--) {\r\n args[index - 1] = arguments[index];\r\n }\r\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\r\n }\r\n\r\n /**\r\n * Creates an array of `array` values not included in the other given arrays\r\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * for equality comparisons. The order and references of result values are\r\n * determined by the first array.\r\n *\r\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to inspect.\r\n * @param {...Array} [values] The values to exclude.\r\n * @returns {Array} Returns the new array of filtered values.\r\n * @see _.without, _.xor\r\n * @example\r\n *\r\n * _.difference([2, 1], [2, 3]);\r\n * // => [1]\r\n */\r\n var difference = baseRest(function(array, values) {\r\n return isArrayLikeObject(array)\r\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\r\n : [];\r\n });\r\n\r\n /**\r\n * Creates a slice of `array` with `n` elements dropped from the beginning.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.5.0\r\n * @category Array\r\n * @param {Array} array The array to query.\r\n * @param {number} [n=1] The number of elements to drop.\r\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\r\n * @returns {Array} Returns the slice of `array`.\r\n * @example\r\n *\r\n * _.drop([1, 2, 3]);\r\n * // => [2, 3]\r\n *\r\n * _.drop([1, 2, 3], 2);\r\n * // => [3]\r\n *\r\n * _.drop([1, 2, 3], 5);\r\n * // => []\r\n *\r\n * _.drop([1, 2, 3], 0);\r\n * // => [1, 2, 3]\r\n */\r\n function drop(array, n, guard) {\r\n var length = array == null ? 0 : array.length;\r\n if (!length) {\r\n return [];\r\n }\r\n n = (guard || n === undefined) ? 1 : toInteger(n);\r\n return baseSlice(array, n < 0 ? 0 : n, length);\r\n }\r\n\r\n /**\r\n * This method is like `_.find` except that it returns the index of the first\r\n * element `predicate` returns truthy for instead of the element itself.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 1.1.0\r\n * @category Array\r\n * @param {Array} array The array to inspect.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @param {number} [fromIndex=0] The index to search from.\r\n * @returns {number} Returns the index of the found element, else `-1`.\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'active': false },\r\n * { 'user': 'fred', 'active': false },\r\n * { 'user': 'pebbles', 'active': true }\r\n * ];\r\n *\r\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\r\n * // => 0\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.findIndex(users, { 'user': 'fred', 'active': false });\r\n * // => 1\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.findIndex(users, ['active', false]);\r\n * // => 0\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.findIndex(users, 'active');\r\n * // => 2\r\n */\r\n function findIndex(array, predicate, fromIndex) {\r\n var length = array == null ? 0 : array.length;\r\n if (!length) {\r\n return -1;\r\n }\r\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\r\n if (index < 0) {\r\n index = nativeMax(length + index, 0);\r\n }\r\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\r\n }\r\n\r\n /**\r\n * This method is like `_.findIndex` except that it iterates over elements\r\n * of `collection` from right to left.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 2.0.0\r\n * @category Array\r\n * @param {Array} array The array to inspect.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @param {number} [fromIndex=array.length-1] The index to search from.\r\n * @returns {number} Returns the index of the found element, else `-1`.\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'active': true },\r\n * { 'user': 'fred', 'active': false },\r\n * { 'user': 'pebbles', 'active': false }\r\n * ];\r\n *\r\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\r\n * // => 2\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\r\n * // => 0\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.findLastIndex(users, ['active', false]);\r\n * // => 2\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.findLastIndex(users, 'active');\r\n * // => 0\r\n */\r\n function findLastIndex(array, predicate, fromIndex) {\r\n var length = array == null ? 0 : array.length;\r\n if (!length) {\r\n return -1;\r\n }\r\n var index = length - 1;\r\n if (fromIndex !== undefined) {\r\n index = toInteger(fromIndex);\r\n index = fromIndex < 0\r\n ? nativeMax(length + index, 0)\r\n : nativeMin(index, length - 1);\r\n }\r\n return baseFindIndex(array, baseIteratee(predicate, 3), index, true);\r\n }\r\n\r\n /**\r\n * Flattens `array` a single level deep.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to flatten.\r\n * @returns {Array} Returns the new flattened array.\r\n * @example\r\n *\r\n * _.flatten([1, [2, [3, [4]], 5]]);\r\n * // => [1, 2, [3, [4]], 5]\r\n */\r\n function flatten(array) {\r\n var length = array == null ? 0 : array.length;\r\n return length ? baseFlatten(array, 1) : [];\r\n }\r\n\r\n /**\r\n * Recursively flattens `array`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Array\r\n * @param {Array} array The array to flatten.\r\n * @returns {Array} Returns the new flattened array.\r\n * @example\r\n *\r\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\r\n * // => [1, 2, 3, 4, 5]\r\n */\r\n function flattenDeep(array) {\r\n var length = array == null ? 0 : array.length;\r\n return length ? baseFlatten(array, INFINITY) : [];\r\n }\r\n\r\n /**\r\n * Gets the first element of `array`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @alias first\r\n * @category Array\r\n * @param {Array} array The array to query.\r\n * @returns {*} Returns the first element of `array`.\r\n * @example\r\n *\r\n * _.head([1, 2, 3]);\r\n * // => 1\r\n *\r\n * _.head([]);\r\n * // => undefined\r\n */\r\n function head(array) {\r\n return (array && array.length) ? array[0] : undefined;\r\n }\r\n\r\n /**\r\n * Gets the index at which the first occurrence of `value` is found in `array`\r\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * for equality comparisons. If `fromIndex` is negative, it's used as the\r\n * offset from the end of `array`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to inspect.\r\n * @param {*} value The value to search for.\r\n * @param {number} [fromIndex=0] The index to search from.\r\n * @returns {number} Returns the index of the matched value, else `-1`.\r\n * @example\r\n *\r\n * _.indexOf([1, 2, 1, 2], 2);\r\n * // => 1\r\n *\r\n * // Search from the `fromIndex`.\r\n * _.indexOf([1, 2, 1, 2], 2, 2);\r\n * // => 3\r\n */\r\n function indexOf(array, value, fromIndex) {\r\n var length = array == null ? 0 : array.length;\r\n if (!length) {\r\n return -1;\r\n }\r\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\r\n if (index < 0) {\r\n index = nativeMax(length + index, 0);\r\n }\r\n return baseIndexOf(array, value, index);\r\n }\r\n\r\n /**\r\n * Gets all but the last element of `array`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to query.\r\n * @returns {Array} Returns the slice of `array`.\r\n * @example\r\n *\r\n * _.initial([1, 2, 3]);\r\n * // => [1, 2]\r\n */\r\n function initial(array) {\r\n var length = array == null ? 0 : array.length;\r\n return length ? baseSlice(array, 0, -1) : [];\r\n }\r\n\r\n /**\r\n * Creates an array of unique values that are included in all given arrays\r\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * for equality comparisons. The order and references of result values are\r\n * determined by the first array.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {...Array} [arrays] The arrays to inspect.\r\n * @returns {Array} Returns the new array of intersecting values.\r\n * @example\r\n *\r\n * _.intersection([2, 1], [2, 3]);\r\n * // => [2]\r\n */\r\n var intersection = baseRest(function(arrays) {\r\n var mapped = arrayMap(arrays, castArrayLikeObject);\r\n return (mapped.length && mapped[0] === arrays[0])\r\n ? baseIntersection(mapped)\r\n : [];\r\n });\r\n\r\n /**\r\n * Gets the last element of `array`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to query.\r\n * @returns {*} Returns the last element of `array`.\r\n * @example\r\n *\r\n * _.last([1, 2, 3]);\r\n * // => 3\r\n */\r\n function last(array) {\r\n var length = array == null ? 0 : array.length;\r\n return length ? array[length - 1] : undefined;\r\n }\r\n\r\n /**\r\n * Reverses `array` so that the first element becomes the last, the second\r\n * element becomes the second to last, and so on.\r\n *\r\n * **Note:** This method mutates `array` and is based on\r\n * [`Array#reverse`](https://mdn.io/Array/reverse).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Array\r\n * @param {Array} array The array to modify.\r\n * @returns {Array} Returns `array`.\r\n * @example\r\n *\r\n * var array = [1, 2, 3];\r\n *\r\n * _.reverse(array);\r\n * // => [3, 2, 1]\r\n *\r\n * console.log(array);\r\n * // => [3, 2, 1]\r\n */\r\n function reverse(array) {\r\n return array == null ? array : nativeReverse.call(array);\r\n }\r\n\r\n /**\r\n * Creates a slice of `array` from `start` up to, but not including, `end`.\r\n *\r\n * **Note:** This method is used instead of\r\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\r\n * returned.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Array\r\n * @param {Array} array The array to slice.\r\n * @param {number} [start=0] The start position.\r\n * @param {number} [end=array.length] The end position.\r\n * @returns {Array} Returns the slice of `array`.\r\n */\r\n function slice(array, start, end) {\r\n var length = array == null ? 0 : array.length;\r\n if (!length) {\r\n return [];\r\n }\r\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\r\n start = 0;\r\n end = length;\r\n }\r\n else {\r\n start = start == null ? 0 : toInteger(start);\r\n end = end === undefined ? length : toInteger(end);\r\n }\r\n return baseSlice(array, start, end);\r\n }\r\n\r\n /**\r\n * Creates a slice of `array` with `n` elements taken from the beginning.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to query.\r\n * @param {number} [n=1] The number of elements to take.\r\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\r\n * @returns {Array} Returns the slice of `array`.\r\n * @example\r\n *\r\n * _.take([1, 2, 3]);\r\n * // => [1]\r\n *\r\n * _.take([1, 2, 3], 2);\r\n * // => [1, 2]\r\n *\r\n * _.take([1, 2, 3], 5);\r\n * // => [1, 2, 3]\r\n *\r\n * _.take([1, 2, 3], 0);\r\n * // => []\r\n */\r\n function take(array, n, guard) {\r\n if (!(array && array.length)) {\r\n return [];\r\n }\r\n n = (guard || n === undefined) ? 1 : toInteger(n);\r\n return baseSlice(array, 0, n < 0 ? 0 : n);\r\n }\r\n\r\n /**\r\n * Creates a slice of `array` with `n` elements taken from the end.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Array\r\n * @param {Array} array The array to query.\r\n * @param {number} [n=1] The number of elements to take.\r\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\r\n * @returns {Array} Returns the slice of `array`.\r\n * @example\r\n *\r\n * _.takeRight([1, 2, 3]);\r\n * // => [3]\r\n *\r\n * _.takeRight([1, 2, 3], 2);\r\n * // => [2, 3]\r\n *\r\n * _.takeRight([1, 2, 3], 5);\r\n * // => [1, 2, 3]\r\n *\r\n * _.takeRight([1, 2, 3], 0);\r\n * // => []\r\n */\r\n function takeRight(array, n, guard) {\r\n var length = array == null ? 0 : array.length;\r\n if (!length) {\r\n return [];\r\n }\r\n n = (guard || n === undefined) ? 1 : toInteger(n);\r\n n = length - n;\r\n return baseSlice(array, n < 0 ? 0 : n, length);\r\n }\r\n\r\n /**\r\n * Creates an array of unique values, in order, from all given arrays using\r\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * for equality comparisons.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {...Array} [arrays] The arrays to inspect.\r\n * @returns {Array} Returns the new array of combined values.\r\n * @example\r\n *\r\n * _.union([2], [1, 2]);\r\n * // => [2, 1]\r\n */\r\n var union = baseRest(function(arrays) {\r\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\r\n });\r\n\r\n /**\r\n * Creates a duplicate-free version of an array, using\r\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * for equality comparisons, in which only the first occurrence of each element\r\n * is kept. The order of result values is determined by the order they occur\r\n * in the array.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to inspect.\r\n * @returns {Array} Returns the new duplicate free array.\r\n * @example\r\n *\r\n * _.uniq([2, 1, 2]);\r\n * // => [2, 1]\r\n */\r\n function uniq(array) {\r\n return (array && array.length) ? baseUniq(array) : [];\r\n }\r\n\r\n /**\r\n * This method is like `_.uniq` except that it accepts `iteratee` which is\r\n * invoked for each element in `array` to generate the criterion by which\r\n * uniqueness is computed. The order of result values is determined by the\r\n * order they occur in the array. The iteratee is invoked with one argument:\r\n * (value).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Array\r\n * @param {Array} array The array to inspect.\r\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\r\n * @returns {Array} Returns the new duplicate free array.\r\n * @example\r\n *\r\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\r\n * // => [2.1, 1.2]\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\r\n * // => [{ 'x': 1 }, { 'x': 2 }]\r\n */\r\n function uniqBy(array, iteratee) {\r\n return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];\r\n }\r\n\r\n /**\r\n * This method is like `_.zip` except that it accepts an array of grouped\r\n * elements and creates an array regrouping the elements to their pre-zip\r\n * configuration.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 1.2.0\r\n * @category Array\r\n * @param {Array} array The array of grouped elements to process.\r\n * @returns {Array} Returns the new array of regrouped elements.\r\n * @example\r\n *\r\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\r\n * // => [['a', 1, true], ['b', 2, false]]\r\n *\r\n * _.unzip(zipped);\r\n * // => [['a', 'b'], [1, 2], [true, false]]\r\n */\r\n function unzip(array) {\r\n if (!(array && array.length)) {\r\n return [];\r\n }\r\n var length = 0;\r\n array = arrayFilter(array, function(group) {\r\n if (isArrayLikeObject(group)) {\r\n length = nativeMax(group.length, length);\r\n return true;\r\n }\r\n });\r\n return baseTimes(length, function(index) {\r\n return arrayMap(array, baseProperty(index));\r\n });\r\n }\r\n\r\n /**\r\n * Creates an array excluding all given values using\r\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * for equality comparisons.\r\n *\r\n * **Note:** Unlike `_.pull`, this method returns a new array.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {Array} array The array to inspect.\r\n * @param {...*} [values] The values to exclude.\r\n * @returns {Array} Returns the new array of filtered values.\r\n * @see _.difference, _.xor\r\n * @example\r\n *\r\n * _.without([2, 1, 2, 3], 1, 2);\r\n * // => [3]\r\n */\r\n var without = baseRest(function(array, values) {\r\n return isArrayLikeObject(array)\r\n ? baseDifference(array, values)\r\n : [];\r\n });\r\n\r\n /**\r\n * Creates an array of grouped elements, the first of which contains the\r\n * first elements of the given arrays, the second of which contains the\r\n * second elements of the given arrays, and so on.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Array\r\n * @param {...Array} [arrays] The arrays to process.\r\n * @returns {Array} Returns the new array of grouped elements.\r\n * @example\r\n *\r\n * _.zip(['a', 'b'], [1, 2], [true, false]);\r\n * // => [['a', 1, true], ['b', 2, false]]\r\n */\r\n var zip = baseRest(unzip);\r\n\r\n /**\r\n * This method is like `_.fromPairs` except that it accepts two arrays,\r\n * one of property identifiers and one of corresponding values.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.4.0\r\n * @category Array\r\n * @param {Array} [props=[]] The property identifiers.\r\n * @param {Array} [values=[]] The property values.\r\n * @returns {Object} Returns the new object.\r\n * @example\r\n *\r\n * _.zipObject(['a', 'b'], [1, 2]);\r\n * // => { 'a': 1, 'b': 2 }\r\n */\r\n function zipObject(props, values) {\r\n return baseZipObject(props || [], values || [], assignValue);\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\r\n * chain sequences enabled. The result of such sequences must be unwrapped\r\n * with `_#value`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 1.3.0\r\n * @category Seq\r\n * @param {*} value The value to wrap.\r\n * @returns {Object} Returns the new `lodash` wrapper instance.\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'age': 36 },\r\n * { 'user': 'fred', 'age': 40 },\r\n * { 'user': 'pebbles', 'age': 1 }\r\n * ];\r\n *\r\n * var youngest = _\r\n * .chain(users)\r\n * .sortBy('age')\r\n * .map(function(o) {\r\n * return o.user + ' is ' + o.age;\r\n * })\r\n * .head()\r\n * .value();\r\n * // => 'pebbles is 1'\r\n */\r\n function chain(value) {\r\n var result = lodash(value);\r\n result.__chain__ = true;\r\n return result;\r\n }\r\n\r\n /**\r\n * This method invokes `interceptor` and returns `value`. The interceptor\r\n * is invoked with one argument; (value). The purpose of this method is to\r\n * \"tap into\" a method chain sequence in order to modify intermediate results.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Seq\r\n * @param {*} value The value to provide to `interceptor`.\r\n * @param {Function} interceptor The function to invoke.\r\n * @returns {*} Returns `value`.\r\n * @example\r\n *\r\n * _([1, 2, 3])\r\n * .tap(function(array) {\r\n * // Mutate input array.\r\n * array.pop();\r\n * })\r\n * .reverse()\r\n * .value();\r\n * // => [2, 1]\r\n */\r\n function tap(value, interceptor) {\r\n interceptor(value);\r\n return value;\r\n }\r\n\r\n /**\r\n * This method is like `_.tap` except that it returns the result of `interceptor`.\r\n * The purpose of this method is to \"pass thru\" values replacing intermediate\r\n * results in a method chain sequence.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Seq\r\n * @param {*} value The value to provide to `interceptor`.\r\n * @param {Function} interceptor The function to invoke.\r\n * @returns {*} Returns the result of `interceptor`.\r\n * @example\r\n *\r\n * _(' abc ')\r\n * .chain()\r\n * .trim()\r\n * .thru(function(value) {\r\n * return [value];\r\n * })\r\n * .value();\r\n * // => ['abc']\r\n */\r\n function thru(value, interceptor) {\r\n return interceptor(value);\r\n }\r\n\r\n /**\r\n * This method is the wrapper version of `_.at`.\r\n *\r\n * @name at\r\n * @memberOf _\r\n * @since 1.0.0\r\n * @category Seq\r\n * @param {...(string|string[])} [paths] The property paths to pick.\r\n * @returns {Object} Returns the new `lodash` wrapper instance.\r\n * @example\r\n *\r\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\r\n *\r\n * _(object).at(['a[0].b.c', 'a[1]']).value();\r\n * // => [3, 4]\r\n */\r\n var wrapperAt = flatRest(function(paths) {\r\n var length = paths.length,\r\n start = length ? paths[0] : 0,\r\n value = this.__wrapped__,\r\n interceptor = function(object) { return baseAt(object, paths); };\r\n\r\n if (length > 1 || this.__actions__.length ||\r\n !(value instanceof LazyWrapper) || !isIndex(start)) {\r\n return this.thru(interceptor);\r\n }\r\n value = value.slice(start, +start + (length ? 1 : 0));\r\n value.__actions__.push({\r\n 'func': thru,\r\n 'args': [interceptor],\r\n 'thisArg': undefined\r\n });\r\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\r\n if (length && !array.length) {\r\n array.push(undefined);\r\n }\r\n return array;\r\n });\r\n });\r\n\r\n /**\r\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\r\n *\r\n * @name chain\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Seq\r\n * @returns {Object} Returns the new `lodash` wrapper instance.\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'age': 36 },\r\n * { 'user': 'fred', 'age': 40 }\r\n * ];\r\n *\r\n * // A sequence without explicit chaining.\r\n * _(users).head();\r\n * // => { 'user': 'barney', 'age': 36 }\r\n *\r\n * // A sequence with explicit chaining.\r\n * _(users)\r\n * .chain()\r\n * .head()\r\n * .pick('user')\r\n * .value();\r\n * // => { 'user': 'barney' }\r\n */\r\n function wrapperChain() {\r\n return chain(this);\r\n }\r\n\r\n /**\r\n * Executes the chain sequence and returns the wrapped result.\r\n *\r\n * @name commit\r\n * @memberOf _\r\n * @since 3.2.0\r\n * @category Seq\r\n * @returns {Object} Returns the new `lodash` wrapper instance.\r\n * @example\r\n *\r\n * var array = [1, 2];\r\n * var wrapped = _(array).push(3);\r\n *\r\n * console.log(array);\r\n * // => [1, 2]\r\n *\r\n * wrapped = wrapped.commit();\r\n * console.log(array);\r\n * // => [1, 2, 3]\r\n *\r\n * wrapped.last();\r\n * // => 3\r\n *\r\n * console.log(array);\r\n * // => [1, 2, 3]\r\n */\r\n function wrapperCommit() {\r\n return new LodashWrapper(this.value(), this.__chain__);\r\n }\r\n\r\n /**\r\n * Gets the next value on a wrapped object following the\r\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\r\n *\r\n * @name next\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Seq\r\n * @returns {Object} Returns the next iterator value.\r\n * @example\r\n *\r\n * var wrapped = _([1, 2]);\r\n *\r\n * wrapped.next();\r\n * // => { 'done': false, 'value': 1 }\r\n *\r\n * wrapped.next();\r\n * // => { 'done': false, 'value': 2 }\r\n *\r\n * wrapped.next();\r\n * // => { 'done': true, 'value': undefined }\r\n */\r\n function wrapperNext() {\r\n if (this.__values__ === undefined) {\r\n this.__values__ = toArray(this.value());\r\n }\r\n var done = this.__index__ >= this.__values__.length,\r\n value = done ? undefined : this.__values__[this.__index__++];\r\n\r\n return { 'done': done, 'value': value };\r\n }\r\n\r\n /**\r\n * Enables the wrapper to be iterable.\r\n *\r\n * @name Symbol.iterator\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Seq\r\n * @returns {Object} Returns the wrapper object.\r\n * @example\r\n *\r\n * var wrapped = _([1, 2]);\r\n *\r\n * wrapped[Symbol.iterator]() === wrapped;\r\n * // => true\r\n *\r\n * Array.from(wrapped);\r\n * // => [1, 2]\r\n */\r\n function wrapperToIterator() {\r\n return this;\r\n }\r\n\r\n /**\r\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\r\n *\r\n * @name plant\r\n * @memberOf _\r\n * @since 3.2.0\r\n * @category Seq\r\n * @param {*} value The value to plant.\r\n * @returns {Object} Returns the new `lodash` wrapper instance.\r\n * @example\r\n *\r\n * function square(n) {\r\n * return n * n;\r\n * }\r\n *\r\n * var wrapped = _([1, 2]).map(square);\r\n * var other = wrapped.plant([3, 4]);\r\n *\r\n * other.value();\r\n * // => [9, 16]\r\n *\r\n * wrapped.value();\r\n * // => [1, 4]\r\n */\r\n function wrapperPlant(value) {\r\n var result,\r\n parent = this;\r\n\r\n while (parent instanceof baseLodash) {\r\n var clone = wrapperClone(parent);\r\n clone.__index__ = 0;\r\n clone.__values__ = undefined;\r\n if (result) {\r\n previous.__wrapped__ = clone;\r\n } else {\r\n result = clone;\r\n }\r\n var previous = clone;\r\n parent = parent.__wrapped__;\r\n }\r\n previous.__wrapped__ = value;\r\n return result;\r\n }\r\n\r\n /**\r\n * This method is the wrapper version of `_.reverse`.\r\n *\r\n * **Note:** This method mutates the wrapped array.\r\n *\r\n * @name reverse\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Seq\r\n * @returns {Object} Returns the new `lodash` wrapper instance.\r\n * @example\r\n *\r\n * var array = [1, 2, 3];\r\n *\r\n * _(array).reverse().value()\r\n * // => [3, 2, 1]\r\n *\r\n * console.log(array);\r\n * // => [3, 2, 1]\r\n */\r\n function wrapperReverse() {\r\n var value = this.__wrapped__;\r\n if (value instanceof LazyWrapper) {\r\n var wrapped = value;\r\n if (this.__actions__.length) {\r\n wrapped = new LazyWrapper(this);\r\n }\r\n wrapped = wrapped.reverse();\r\n wrapped.__actions__.push({\r\n 'func': thru,\r\n 'args': [reverse],\r\n 'thisArg': undefined\r\n });\r\n return new LodashWrapper(wrapped, this.__chain__);\r\n }\r\n return this.thru(reverse);\r\n }\r\n\r\n /**\r\n * Executes the chain sequence to resolve the unwrapped value.\r\n *\r\n * @name value\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @alias toJSON, valueOf\r\n * @category Seq\r\n * @returns {*} Returns the resolved unwrapped value.\r\n * @example\r\n *\r\n * _([1, 2, 3]).value();\r\n * // => [1, 2, 3]\r\n */\r\n function wrapperValue() {\r\n return baseWrapperValue(this.__wrapped__, this.__actions__);\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates an object composed of keys generated from the results of running\r\n * each element of `collection` thru `iteratee`. The corresponding value of\r\n * each key is the number of times the key was returned by `iteratee`. The\r\n * iteratee is invoked with one argument: (value).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.5.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\r\n * @returns {Object} Returns the composed aggregate object.\r\n * @example\r\n *\r\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\r\n * // => { '4': 1, '6': 2 }\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.countBy(['one', 'two', 'three'], 'length');\r\n * // => { '3': 2, '5': 1 }\r\n */\r\n var countBy = createAggregator(function(result, value, key) {\r\n if (hasOwnProperty.call(result, key)) {\r\n ++result[key];\r\n } else {\r\n baseAssignValue(result, key, 1);\r\n }\r\n });\r\n\r\n /**\r\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\r\n * Iteration is stopped once `predicate` returns falsey. The predicate is\r\n * invoked with three arguments: (value, index|key, collection).\r\n *\r\n * **Note:** This method returns `true` for\r\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\r\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\r\n * elements of empty collections.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\r\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\r\n * else `false`.\r\n * @example\r\n *\r\n * _.every([true, 1, null, 'yes'], Boolean);\r\n * // => false\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'age': 36, 'active': false },\r\n * { 'user': 'fred', 'age': 40, 'active': false }\r\n * ];\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.every(users, { 'user': 'barney', 'active': false });\r\n * // => false\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.every(users, ['active', false]);\r\n * // => true\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.every(users, 'active');\r\n * // => false\r\n */\r\n function every(collection, predicate, guard) {\r\n var func = isArray(collection) ? arrayEvery : baseEvery;\r\n if (guard && isIterateeCall(collection, predicate, guard)) {\r\n predicate = undefined;\r\n }\r\n return func(collection, baseIteratee(predicate, 3));\r\n }\r\n\r\n /**\r\n * Iterates over elements of `collection`, returning an array of all elements\r\n * `predicate` returns truthy for. The predicate is invoked with three\r\n * arguments: (value, index|key, collection).\r\n *\r\n * **Note:** Unlike `_.remove`, this method returns a new array.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @returns {Array} Returns the new filtered array.\r\n * @see _.reject\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'age': 36, 'active': true },\r\n * { 'user': 'fred', 'age': 40, 'active': false }\r\n * ];\r\n *\r\n * _.filter(users, function(o) { return !o.active; });\r\n * // => objects for ['fred']\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.filter(users, { 'age': 36, 'active': true });\r\n * // => objects for ['barney']\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.filter(users, ['active', false]);\r\n * // => objects for ['fred']\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.filter(users, 'active');\r\n * // => objects for ['barney']\r\n */\r\n function filter(collection, predicate) {\r\n var func = isArray(collection) ? arrayFilter : baseFilter;\r\n return func(collection, baseIteratee(predicate, 3));\r\n }\r\n\r\n /**\r\n * Iterates over elements of `collection`, returning the first element\r\n * `predicate` returns truthy for. The predicate is invoked with three\r\n * arguments: (value, index|key, collection).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to inspect.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @param {number} [fromIndex=0] The index to search from.\r\n * @returns {*} Returns the matched element, else `undefined`.\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'age': 36, 'active': true },\r\n * { 'user': 'fred', 'age': 40, 'active': false },\r\n * { 'user': 'pebbles', 'age': 1, 'active': true }\r\n * ];\r\n *\r\n * _.find(users, function(o) { return o.age < 40; });\r\n * // => object for 'barney'\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.find(users, { 'age': 1, 'active': true });\r\n * // => object for 'pebbles'\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.find(users, ['active', false]);\r\n * // => object for 'fred'\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.find(users, 'active');\r\n * // => object for 'barney'\r\n */\r\n var find = createFind(findIndex);\r\n\r\n /**\r\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\r\n * The iteratee is invoked with three arguments: (value, index|key, collection).\r\n * Iteratee functions may exit iteration early by explicitly returning `false`.\r\n *\r\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\r\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\r\n * or `_.forOwn` for object iteration.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @alias each\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\r\n * @returns {Array|Object} Returns `collection`.\r\n * @see _.forEachRight\r\n * @example\r\n *\r\n * _.forEach([1, 2], function(value) {\r\n * console.log(value);\r\n * });\r\n * // => Logs `1` then `2`.\r\n *\r\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\r\n * console.log(key);\r\n * });\r\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\r\n */\r\n function forEach(collection, iteratee) {\r\n var func = isArray(collection) ? arrayEach : baseEach;\r\n return func(collection, baseIteratee(iteratee, 3));\r\n }\r\n\r\n /**\r\n * Creates an object composed of keys generated from the results of running\r\n * each element of `collection` thru `iteratee`. The order of grouped values\r\n * is determined by the order they occur in `collection`. The corresponding\r\n * value of each key is an array of elements responsible for generating the\r\n * key. The iteratee is invoked with one argument: (value).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\r\n * @returns {Object} Returns the composed aggregate object.\r\n * @example\r\n *\r\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\r\n * // => { '4': [4.2], '6': [6.1, 6.3] }\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.groupBy(['one', 'two', 'three'], 'length');\r\n * // => { '3': ['one', 'two'], '5': ['three'] }\r\n */\r\n var groupBy = createAggregator(function(result, value, key) {\r\n if (hasOwnProperty.call(result, key)) {\r\n result[key].push(value);\r\n } else {\r\n baseAssignValue(result, key, [value]);\r\n }\r\n });\r\n\r\n /**\r\n * Creates an array of values by running each element in `collection` thru\r\n * `iteratee`. The iteratee is invoked with three arguments:\r\n * (value, index|key, collection).\r\n *\r\n * Many lodash methods are guarded to work as iteratees for methods like\r\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\r\n *\r\n * The guarded methods are:\r\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\r\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\r\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\r\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\r\n * @returns {Array} Returns the new mapped array.\r\n * @example\r\n *\r\n * function square(n) {\r\n * return n * n;\r\n * }\r\n *\r\n * _.map([4, 8], square);\r\n * // => [16, 64]\r\n *\r\n * _.map({ 'a': 4, 'b': 8 }, square);\r\n * // => [16, 64] (iteration order is not guaranteed)\r\n *\r\n * var users = [\r\n * { 'user': 'barney' },\r\n * { 'user': 'fred' }\r\n * ];\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.map(users, 'user');\r\n * // => ['barney', 'fred']\r\n */\r\n function map(collection, iteratee) {\r\n var func = isArray(collection) ? arrayMap : baseMap;\r\n return func(collection, baseIteratee(iteratee, 3));\r\n }\r\n\r\n /**\r\n * Reduces `collection` to a value which is the accumulated result of running\r\n * each element in `collection` thru `iteratee`, where each successive\r\n * invocation is supplied the return value of the previous. If `accumulator`\r\n * is not given, the first element of `collection` is used as the initial\r\n * value. The iteratee is invoked with four arguments:\r\n * (accumulator, value, index|key, collection).\r\n *\r\n * Many lodash methods are guarded to work as iteratees for methods like\r\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\r\n *\r\n * The guarded methods are:\r\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\r\n * and `sortBy`\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\r\n * @param {*} [accumulator] The initial value.\r\n * @returns {*} Returns the accumulated value.\r\n * @see _.reduceRight\r\n * @example\r\n *\r\n * _.reduce([1, 2], function(sum, n) {\r\n * return sum + n;\r\n * }, 0);\r\n * // => 3\r\n *\r\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\r\n * (result[value] || (result[value] = [])).push(key);\r\n * return result;\r\n * }, {});\r\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\r\n */\r\n function reduce(collection, iteratee, accumulator) {\r\n var func = isArray(collection) ? arrayReduce : baseReduce,\r\n initAccum = arguments.length < 3;\r\n\r\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\r\n }\r\n\r\n /**\r\n * The opposite of `_.filter`; this method returns the elements of `collection`\r\n * that `predicate` does **not** return truthy for.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @returns {Array} Returns the new filtered array.\r\n * @see _.filter\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'age': 36, 'active': false },\r\n * { 'user': 'fred', 'age': 40, 'active': true }\r\n * ];\r\n *\r\n * _.reject(users, function(o) { return !o.active; });\r\n * // => objects for ['fred']\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.reject(users, { 'age': 40, 'active': true });\r\n * // => objects for ['barney']\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.reject(users, ['active', false]);\r\n * // => objects for ['fred']\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.reject(users, 'active');\r\n * // => objects for ['barney']\r\n */\r\n function reject(collection, predicate) {\r\n var func = isArray(collection) ? arrayFilter : baseFilter;\r\n return func(collection, negate(baseIteratee(predicate, 3)));\r\n }\r\n\r\n /**\r\n * Gets the size of `collection` by returning its length for array-like\r\n * values or the number of own enumerable string keyed properties for objects.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object|string} collection The collection to inspect.\r\n * @returns {number} Returns the collection size.\r\n * @example\r\n *\r\n * _.size([1, 2, 3]);\r\n * // => 3\r\n *\r\n * _.size({ 'a': 1, 'b': 2 });\r\n * // => 2\r\n *\r\n * _.size('pebbles');\r\n * // => 7\r\n */\r\n function size(collection) {\r\n if (collection == null) {\r\n return 0;\r\n }\r\n if (isArrayLike(collection)) {\r\n return isString(collection) ? stringSize(collection) : collection.length;\r\n }\r\n var tag = getTag(collection);\r\n if (tag == mapTag || tag == setTag) {\r\n return collection.size;\r\n }\r\n return baseKeys(collection).length;\r\n }\r\n\r\n /**\r\n * Checks if `predicate` returns truthy for **any** element of `collection`.\r\n * Iteration is stopped once `predicate` returns truthy. The predicate is\r\n * invoked with three arguments: (value, index|key, collection).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\r\n * @returns {boolean} Returns `true` if any element passes the predicate check,\r\n * else `false`.\r\n * @example\r\n *\r\n * _.some([null, 0, 'yes', false], Boolean);\r\n * // => true\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'active': true },\r\n * { 'user': 'fred', 'active': false }\r\n * ];\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.some(users, { 'user': 'barney', 'active': false });\r\n * // => false\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.some(users, ['active', false]);\r\n * // => true\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.some(users, 'active');\r\n * // => true\r\n */\r\n function some(collection, predicate, guard) {\r\n var func = isArray(collection) ? arraySome : baseSome;\r\n if (guard && isIterateeCall(collection, predicate, guard)) {\r\n predicate = undefined;\r\n }\r\n return func(collection, baseIteratee(predicate, 3));\r\n }\r\n\r\n /**\r\n * Creates an array of elements, sorted in ascending order by the results of\r\n * running each element in a collection thru each iteratee. This method\r\n * performs a stable sort, that is, it preserves the original sort order of\r\n * equal elements. The iteratees are invoked with one argument: (value).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Collection\r\n * @param {Array|Object} collection The collection to iterate over.\r\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\r\n * The iteratees to sort by.\r\n * @returns {Array} Returns the new sorted array.\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'fred', 'age': 48 },\r\n * { 'user': 'barney', 'age': 36 },\r\n * { 'user': 'fred', 'age': 40 },\r\n * { 'user': 'barney', 'age': 34 }\r\n * ];\r\n *\r\n * _.sortBy(users, [function(o) { return o.user; }]);\r\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\r\n *\r\n * _.sortBy(users, ['user', 'age']);\r\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\r\n */\r\n var sortBy = baseRest(function(collection, iteratees) {\r\n if (collection == null) {\r\n return [];\r\n }\r\n var length = iteratees.length;\r\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\r\n iteratees = [];\r\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\r\n iteratees = [iteratees[0]];\r\n }\r\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\r\n });\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Gets the timestamp of the number of milliseconds that have elapsed since\r\n * the Unix epoch (1 January 1970 00:00:00 UTC).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 2.4.0\r\n * @category Date\r\n * @returns {number} Returns the timestamp.\r\n * @example\r\n *\r\n * _.defer(function(stamp) {\r\n * console.log(_.now() - stamp);\r\n * }, _.now());\r\n * // => Logs the number of milliseconds it took for the deferred invocation.\r\n */\r\n var now = function() {\r\n return root.Date.now();\r\n };\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * The opposite of `_.before`; this method creates a function that invokes\r\n * `func` once it's called `n` or more times.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {number} n The number of calls before `func` is invoked.\r\n * @param {Function} func The function to restrict.\r\n * @returns {Function} Returns the new restricted function.\r\n * @example\r\n *\r\n * var saves = ['profile', 'settings'];\r\n *\r\n * var done = _.after(saves.length, function() {\r\n * console.log('done saving!');\r\n * });\r\n *\r\n * _.forEach(saves, function(type) {\r\n * asyncSave({ 'type': type, 'complete': done });\r\n * });\r\n * // => Logs 'done saving!' after the two async saves have completed.\r\n */\r\n function after(n, func) {\r\n if (typeof func != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n n = toInteger(n);\r\n return function() {\r\n if (--n < 1) {\r\n return func.apply(this, arguments);\r\n }\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that invokes `func`, with the `this` binding and arguments\r\n * of the created function, while it's called less than `n` times. Subsequent\r\n * calls to the created function return the result of the last `func` invocation.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Function\r\n * @param {number} n The number of calls at which `func` is no longer invoked.\r\n * @param {Function} func The function to restrict.\r\n * @returns {Function} Returns the new restricted function.\r\n * @example\r\n *\r\n * jQuery(element).on('click', _.before(5, addContactToList));\r\n * // => Allows adding up to 4 contacts to the list.\r\n */\r\n function before(n, func) {\r\n var result;\r\n if (typeof func != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n n = toInteger(n);\r\n return function() {\r\n if (--n > 0) {\r\n result = func.apply(this, arguments);\r\n }\r\n if (n <= 1) {\r\n func = undefined;\r\n }\r\n return result;\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\r\n * and `partials` prepended to the arguments it receives.\r\n *\r\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\r\n * may be used as a placeholder for partially applied arguments.\r\n *\r\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\r\n * property of bound functions.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {Function} func The function to bind.\r\n * @param {*} thisArg The `this` binding of `func`.\r\n * @param {...*} [partials] The arguments to be partially applied.\r\n * @returns {Function} Returns the new bound function.\r\n * @example\r\n *\r\n * function greet(greeting, punctuation) {\r\n * return greeting + ' ' + this.user + punctuation;\r\n * }\r\n *\r\n * var object = { 'user': 'fred' };\r\n *\r\n * var bound = _.bind(greet, object, 'hi');\r\n * bound('!');\r\n * // => 'hi fred!'\r\n *\r\n * // Bound with placeholders.\r\n * var bound = _.bind(greet, object, _, '!');\r\n * bound('hi');\r\n * // => 'hi fred!'\r\n */\r\n var bind = baseRest(function(func, thisArg, partials) {\r\n var bitmask = WRAP_BIND_FLAG;\r\n if (partials.length) {\r\n var holders = replaceHolders(partials, getHolder(bind));\r\n bitmask |= WRAP_PARTIAL_FLAG;\r\n }\r\n return createWrap(func, bitmask, thisArg, partials, holders);\r\n });\r\n\r\n /**\r\n * Creates a debounced function that delays invoking `func` until after `wait`\r\n * milliseconds have elapsed since the last time the debounced function was\r\n * invoked. The debounced function comes with a `cancel` method to cancel\r\n * delayed `func` invocations and a `flush` method to immediately invoke them.\r\n * Provide `options` to indicate whether `func` should be invoked on the\r\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\r\n * with the last arguments provided to the debounced function. Subsequent\r\n * calls to the debounced function return the result of the last `func`\r\n * invocation.\r\n *\r\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\r\n * invoked on the trailing edge of the timeout only if the debounced function\r\n * is invoked more than once during the `wait` timeout.\r\n *\r\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\r\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\r\n *\r\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\r\n * for details over the differences between `_.debounce` and `_.throttle`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {Function} func The function to debounce.\r\n * @param {number} [wait=0] The number of milliseconds to delay.\r\n * @param {Object} [options={}] The options object.\r\n * @param {boolean} [options.leading=false]\r\n * Specify invoking on the leading edge of the timeout.\r\n * @param {number} [options.maxWait]\r\n * The maximum time `func` is allowed to be delayed before it's invoked.\r\n * @param {boolean} [options.trailing=true]\r\n * Specify invoking on the trailing edge of the timeout.\r\n * @returns {Function} Returns the new debounced function.\r\n * @example\r\n *\r\n * // Avoid costly calculations while the window size is in flux.\r\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\r\n *\r\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\r\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\r\n * 'leading': true,\r\n * 'trailing': false\r\n * }));\r\n *\r\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\r\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\r\n * var source = new EventSource('/stream');\r\n * jQuery(source).on('message', debounced);\r\n *\r\n * // Cancel the trailing debounced invocation.\r\n * jQuery(window).on('popstate', debounced.cancel);\r\n */\r\n function debounce(func, wait, options) {\r\n var lastArgs,\r\n lastThis,\r\n maxWait,\r\n result,\r\n timerId,\r\n lastCallTime,\r\n lastInvokeTime = 0,\r\n leading = false,\r\n maxing = false,\r\n trailing = true;\r\n\r\n if (typeof func != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n wait = toNumber(wait) || 0;\r\n if (isObject(options)) {\r\n leading = !!options.leading;\r\n maxing = 'maxWait' in options;\r\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\r\n trailing = 'trailing' in options ? !!options.trailing : trailing;\r\n }\r\n\r\n function invokeFunc(time) {\r\n var args = lastArgs,\r\n thisArg = lastThis;\r\n\r\n lastArgs = lastThis = undefined;\r\n lastInvokeTime = time;\r\n result = func.apply(thisArg, args);\r\n return result;\r\n }\r\n\r\n function leadingEdge(time) {\r\n // Reset any `maxWait` timer.\r\n lastInvokeTime = time;\r\n // Start the timer for the trailing edge.\r\n timerId = setTimeout(timerExpired, wait);\r\n // Invoke the leading edge.\r\n return leading ? invokeFunc(time) : result;\r\n }\r\n\r\n function remainingWait(time) {\r\n var timeSinceLastCall = time - lastCallTime,\r\n timeSinceLastInvoke = time - lastInvokeTime,\r\n timeWaiting = wait - timeSinceLastCall;\r\n\r\n return maxing\r\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\r\n : timeWaiting;\r\n }\r\n\r\n function shouldInvoke(time) {\r\n var timeSinceLastCall = time - lastCallTime,\r\n timeSinceLastInvoke = time - lastInvokeTime;\r\n\r\n // Either this is the first call, activity has stopped and we're at the\r\n // trailing edge, the system time has gone backwards and we're treating\r\n // it as the trailing edge, or we've hit the `maxWait` limit.\r\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\r\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\r\n }\r\n\r\n function timerExpired() {\r\n var time = now();\r\n if (shouldInvoke(time)) {\r\n return trailingEdge(time);\r\n }\r\n // Restart the timer.\r\n timerId = setTimeout(timerExpired, remainingWait(time));\r\n }\r\n\r\n function trailingEdge(time) {\r\n timerId = undefined;\r\n\r\n // Only invoke if we have `lastArgs` which means `func` has been\r\n // debounced at least once.\r\n if (trailing && lastArgs) {\r\n return invokeFunc(time);\r\n }\r\n lastArgs = lastThis = undefined;\r\n return result;\r\n }\r\n\r\n function cancel() {\r\n if (timerId !== undefined) {\r\n clearTimeout(timerId);\r\n }\r\n lastInvokeTime = 0;\r\n lastArgs = lastCallTime = lastThis = timerId = undefined;\r\n }\r\n\r\n function flush() {\r\n return timerId === undefined ? result : trailingEdge(now());\r\n }\r\n\r\n function debounced() {\r\n var time = now(),\r\n isInvoking = shouldInvoke(time);\r\n\r\n lastArgs = arguments;\r\n lastThis = this;\r\n lastCallTime = time;\r\n\r\n if (isInvoking) {\r\n if (timerId === undefined) {\r\n return leadingEdge(lastCallTime);\r\n }\r\n if (maxing) {\r\n // Handle invocations in a tight loop.\r\n timerId = setTimeout(timerExpired, wait);\r\n return invokeFunc(lastCallTime);\r\n }\r\n }\r\n if (timerId === undefined) {\r\n timerId = setTimeout(timerExpired, wait);\r\n }\r\n return result;\r\n }\r\n debounced.cancel = cancel;\r\n debounced.flush = flush;\r\n return debounced;\r\n }\r\n\r\n /**\r\n * Defers invoking the `func` until the current call stack has cleared. Any\r\n * additional arguments are provided to `func` when it's invoked.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {Function} func The function to defer.\r\n * @param {...*} [args] The arguments to invoke `func` with.\r\n * @returns {number} Returns the timer id.\r\n * @example\r\n *\r\n * _.defer(function(text) {\r\n * console.log(text);\r\n * }, 'deferred');\r\n * // => Logs 'deferred' after one millisecond.\r\n */\r\n var defer = baseRest(function(func, args) {\r\n return baseDelay(func, 1, args);\r\n });\r\n\r\n /**\r\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\r\n * provided to `func` when it's invoked.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {Function} func The function to delay.\r\n * @param {number} wait The number of milliseconds to delay invocation.\r\n * @param {...*} [args] The arguments to invoke `func` with.\r\n * @returns {number} Returns the timer id.\r\n * @example\r\n *\r\n * _.delay(function(text) {\r\n * console.log(text);\r\n * }, 1000, 'later');\r\n * // => Logs 'later' after one second.\r\n */\r\n var delay = baseRest(function(func, wait, args) {\r\n return baseDelay(func, toNumber(wait) || 0, args);\r\n });\r\n\r\n /**\r\n * Creates a function that memoizes the result of `func`. If `resolver` is\r\n * provided, it determines the cache key for storing the result based on the\r\n * arguments provided to the memoized function. By default, the first argument\r\n * provided to the memoized function is used as the map cache key. The `func`\r\n * is invoked with the `this` binding of the memoized function.\r\n *\r\n * **Note:** The cache is exposed as the `cache` property on the memoized\r\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\r\n * constructor with one whose instances implement the\r\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\r\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {Function} func The function to have its output memoized.\r\n * @param {Function} [resolver] The function to resolve the cache key.\r\n * @returns {Function} Returns the new memoized function.\r\n * @example\r\n *\r\n * var object = { 'a': 1, 'b': 2 };\r\n * var other = { 'c': 3, 'd': 4 };\r\n *\r\n * var values = _.memoize(_.values);\r\n * values(object);\r\n * // => [1, 2]\r\n *\r\n * values(other);\r\n * // => [3, 4]\r\n *\r\n * object.a = 2;\r\n * values(object);\r\n * // => [1, 2]\r\n *\r\n * // Modify the result cache.\r\n * values.cache.set(object, ['a', 'b']);\r\n * values(object);\r\n * // => ['a', 'b']\r\n *\r\n * // Replace `_.memoize.Cache`.\r\n * _.memoize.Cache = WeakMap;\r\n */\r\n function memoize(func, resolver) {\r\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n var memoized = function() {\r\n var args = arguments,\r\n key = resolver ? resolver.apply(this, args) : args[0],\r\n cache = memoized.cache;\r\n\r\n if (cache.has(key)) {\r\n return cache.get(key);\r\n }\r\n var result = func.apply(this, args);\r\n memoized.cache = cache.set(key, result) || cache;\r\n return result;\r\n };\r\n memoized.cache = new (memoize.Cache || MapCache);\r\n return memoized;\r\n }\r\n\r\n // Expose `MapCache`.\r\n memoize.Cache = MapCache;\r\n\r\n /**\r\n * Creates a function that negates the result of the predicate `func`. The\r\n * `func` predicate is invoked with the `this` binding and arguments of the\r\n * created function.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Function\r\n * @param {Function} predicate The predicate to negate.\r\n * @returns {Function} Returns the new negated function.\r\n * @example\r\n *\r\n * function isEven(n) {\r\n * return n % 2 == 0;\r\n * }\r\n *\r\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\r\n * // => [1, 3, 5]\r\n */\r\n function negate(predicate) {\r\n if (typeof predicate != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n return function() {\r\n var args = arguments;\r\n switch (args.length) {\r\n case 0: return !predicate.call(this);\r\n case 1: return !predicate.call(this, args[0]);\r\n case 2: return !predicate.call(this, args[0], args[1]);\r\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\r\n }\r\n return !predicate.apply(this, args);\r\n };\r\n }\r\n\r\n /**\r\n * Creates a function that is restricted to invoking `func` once. Repeat calls\r\n * to the function return the value of the first invocation. The `func` is\r\n * invoked with the `this` binding and arguments of the created function.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {Function} func The function to restrict.\r\n * @returns {Function} Returns the new restricted function.\r\n * @example\r\n *\r\n * var initialize = _.once(createApplication);\r\n * initialize();\r\n * initialize();\r\n * // => `createApplication` is invoked once\r\n */\r\n function once(func) {\r\n return before(2, func);\r\n }\r\n\r\n /**\r\n * Creates a function that invokes `func` with the `this` binding of the\r\n * created function and arguments from `start` and beyond provided as\r\n * an array.\r\n *\r\n * **Note:** This method is based on the\r\n * [rest parameter](https://mdn.io/rest_parameters).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Function\r\n * @param {Function} func The function to apply a rest parameter to.\r\n * @param {number} [start=func.length-1] The start position of the rest parameter.\r\n * @returns {Function} Returns the new function.\r\n * @example\r\n *\r\n * var say = _.rest(function(what, names) {\r\n * return what + ' ' + _.initial(names).join(', ') +\r\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\r\n * });\r\n *\r\n * say('hello', 'fred', 'barney', 'pebbles');\r\n * // => 'hello fred, barney, & pebbles'\r\n */\r\n function rest(func, start) {\r\n if (typeof func != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n start = start === undefined ? start : toInteger(start);\r\n return baseRest(func, start);\r\n }\r\n\r\n /**\r\n * Creates a throttled function that only invokes `func` at most once per\r\n * every `wait` milliseconds. The throttled function comes with a `cancel`\r\n * method to cancel delayed `func` invocations and a `flush` method to\r\n * immediately invoke them. Provide `options` to indicate whether `func`\r\n * should be invoked on the leading and/or trailing edge of the `wait`\r\n * timeout. The `func` is invoked with the last arguments provided to the\r\n * throttled function. Subsequent calls to the throttled function return the\r\n * result of the last `func` invocation.\r\n *\r\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\r\n * invoked on the trailing edge of the timeout only if the throttled function\r\n * is invoked more than once during the `wait` timeout.\r\n *\r\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\r\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\r\n *\r\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\r\n * for details over the differences between `_.throttle` and `_.debounce`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Function\r\n * @param {Function} func The function to throttle.\r\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\r\n * @param {Object} [options={}] The options object.\r\n * @param {boolean} [options.leading=true]\r\n * Specify invoking on the leading edge of the timeout.\r\n * @param {boolean} [options.trailing=true]\r\n * Specify invoking on the trailing edge of the timeout.\r\n * @returns {Function} Returns the new throttled function.\r\n * @example\r\n *\r\n * // Avoid excessively updating the position while scrolling.\r\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\r\n *\r\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\r\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\r\n * jQuery(element).on('click', throttled);\r\n *\r\n * // Cancel the trailing throttled invocation.\r\n * jQuery(window).on('popstate', throttled.cancel);\r\n */\r\n function throttle(func, wait, options) {\r\n var leading = true,\r\n trailing = true;\r\n\r\n if (typeof func != 'function') {\r\n throw new TypeError(FUNC_ERROR_TEXT);\r\n }\r\n if (isObject(options)) {\r\n leading = 'leading' in options ? !!options.leading : leading;\r\n trailing = 'trailing' in options ? !!options.trailing : trailing;\r\n }\r\n return debounce(func, wait, {\r\n 'leading': leading,\r\n 'maxWait': wait,\r\n 'trailing': trailing\r\n });\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a shallow clone of `value`.\r\n *\r\n * **Note:** This method is loosely based on the\r\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\r\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\r\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\r\n * arrays. The own enumerable properties of `arguments` objects are cloned\r\n * as plain objects. An empty object is returned for uncloneable values such\r\n * as error objects, functions, DOM nodes, and WeakMaps.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to clone.\r\n * @returns {*} Returns the cloned value.\r\n * @see _.cloneDeep\r\n * @example\r\n *\r\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\r\n *\r\n * var shallow = _.clone(objects);\r\n * console.log(shallow[0] === objects[0]);\r\n * // => true\r\n */\r\n function clone(value) {\r\n return baseClone(value, CLONE_SYMBOLS_FLAG);\r\n }\r\n\r\n /**\r\n * This method is like `_.clone` except that it recursively clones `value`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 1.0.0\r\n * @category Lang\r\n * @param {*} value The value to recursively clone.\r\n * @returns {*} Returns the deep cloned value.\r\n * @see _.clone\r\n * @example\r\n *\r\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\r\n *\r\n * var deep = _.cloneDeep(objects);\r\n * console.log(deep[0] === objects[0]);\r\n * // => false\r\n */\r\n function cloneDeep(value) {\r\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\r\n }\r\n\r\n /**\r\n * Performs a\r\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\r\n * comparison between two values to determine if they are equivalent.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to compare.\r\n * @param {*} other The other value to compare.\r\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\r\n * @example\r\n *\r\n * var object = { 'a': 1 };\r\n * var other = { 'a': 1 };\r\n *\r\n * _.eq(object, object);\r\n * // => true\r\n *\r\n * _.eq(object, other);\r\n * // => false\r\n *\r\n * _.eq('a', 'a');\r\n * // => true\r\n *\r\n * _.eq('a', Object('a'));\r\n * // => false\r\n *\r\n * _.eq(NaN, NaN);\r\n * // => true\r\n */\r\n function eq(value, other) {\r\n return value === other || (value !== value && other !== other);\r\n }\r\n\r\n /**\r\n * Checks if `value` is likely an `arguments` object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\r\n * else `false`.\r\n * @example\r\n *\r\n * _.isArguments(function() { return arguments; }());\r\n * // => true\r\n *\r\n * _.isArguments([1, 2, 3]);\r\n * // => false\r\n */\r\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\r\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\r\n !propertyIsEnumerable.call(value, 'callee');\r\n };\r\n\r\n /**\r\n * Checks if `value` is classified as an `Array` object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\r\n * @example\r\n *\r\n * _.isArray([1, 2, 3]);\r\n * // => true\r\n *\r\n * _.isArray(document.body.children);\r\n * // => false\r\n *\r\n * _.isArray('abc');\r\n * // => false\r\n *\r\n * _.isArray(_.noop);\r\n * // => false\r\n */\r\n var isArray = Array.isArray;\r\n\r\n /**\r\n * Checks if `value` is array-like. A value is considered array-like if it's\r\n * not a function and has a `value.length` that's an integer greater than or\r\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\r\n * @example\r\n *\r\n * _.isArrayLike([1, 2, 3]);\r\n * // => true\r\n *\r\n * _.isArrayLike(document.body.children);\r\n * // => true\r\n *\r\n * _.isArrayLike('abc');\r\n * // => true\r\n *\r\n * _.isArrayLike(_.noop);\r\n * // => false\r\n */\r\n function isArrayLike(value) {\r\n return value != null && isLength(value.length) && !isFunction(value);\r\n }\r\n\r\n /**\r\n * This method is like `_.isArrayLike` except that it also checks if `value`\r\n * is an object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is an array-like object,\r\n * else `false`.\r\n * @example\r\n *\r\n * _.isArrayLikeObject([1, 2, 3]);\r\n * // => true\r\n *\r\n * _.isArrayLikeObject(document.body.children);\r\n * // => true\r\n *\r\n * _.isArrayLikeObject('abc');\r\n * // => false\r\n *\r\n * _.isArrayLikeObject(_.noop);\r\n * // => false\r\n */\r\n function isArrayLikeObject(value) {\r\n return isObjectLike(value) && isArrayLike(value);\r\n }\r\n\r\n /**\r\n * Checks if `value` is classified as a boolean primitive or object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\r\n * @example\r\n *\r\n * _.isBoolean(false);\r\n * // => true\r\n *\r\n * _.isBoolean(null);\r\n * // => false\r\n */\r\n function isBoolean(value) {\r\n return value === true || value === false ||\r\n (isObjectLike(value) && baseGetTag(value) == boolTag);\r\n }\r\n\r\n /**\r\n * Checks if `value` is a buffer.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.3.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\r\n * @example\r\n *\r\n * _.isBuffer(new Buffer(2));\r\n * // => true\r\n *\r\n * _.isBuffer(new Uint8Array(2));\r\n * // => false\r\n */\r\n var isBuffer = nativeIsBuffer || stubFalse;\r\n\r\n /**\r\n * Checks if `value` is classified as a `Date` object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\r\n * @example\r\n *\r\n * _.isDate(new Date);\r\n * // => true\r\n *\r\n * _.isDate('Mon April 23 2012');\r\n * // => false\r\n */\r\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\r\n\r\n /**\r\n * Checks if `value` is an empty object, collection, map, or set.\r\n *\r\n * Objects are considered empty if they have no own enumerable string keyed\r\n * properties.\r\n *\r\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\r\n * jQuery-like collections are considered empty if they have a `length` of `0`.\r\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\r\n * @example\r\n *\r\n * _.isEmpty(null);\r\n * // => true\r\n *\r\n * _.isEmpty(true);\r\n * // => true\r\n *\r\n * _.isEmpty(1);\r\n * // => true\r\n *\r\n * _.isEmpty([1, 2, 3]);\r\n * // => false\r\n *\r\n * _.isEmpty({ 'a': 1 });\r\n * // => false\r\n */\r\n function isEmpty(value) {\r\n if (value == null) {\r\n return true;\r\n }\r\n if (isArrayLike(value) &&\r\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\r\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\r\n return !value.length;\r\n }\r\n var tag = getTag(value);\r\n if (tag == mapTag || tag == setTag) {\r\n return !value.size;\r\n }\r\n if (isPrototype(value)) {\r\n return !baseKeys(value).length;\r\n }\r\n for (var key in value) {\r\n if (hasOwnProperty.call(value, key)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n /**\r\n * Performs a deep comparison between two values to determine if they are\r\n * equivalent.\r\n *\r\n * **Note:** This method supports comparing arrays, array buffers, booleans,\r\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\r\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\r\n * by their own, not inherited, enumerable properties. Functions and DOM\r\n * nodes are compared by strict equality, i.e. `===`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to compare.\r\n * @param {*} other The other value to compare.\r\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\r\n * @example\r\n *\r\n * var object = { 'a': 1 };\r\n * var other = { 'a': 1 };\r\n *\r\n * _.isEqual(object, other);\r\n * // => true\r\n *\r\n * object === other;\r\n * // => false\r\n */\r\n function isEqual(value, other) {\r\n return baseIsEqual(value, other);\r\n }\r\n\r\n /**\r\n * Checks if `value` is a finite primitive number.\r\n *\r\n * **Note:** This method is based on\r\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\r\n * @example\r\n *\r\n * _.isFinite(3);\r\n * // => true\r\n *\r\n * _.isFinite(Number.MIN_VALUE);\r\n * // => true\r\n *\r\n * _.isFinite(Infinity);\r\n * // => false\r\n *\r\n * _.isFinite('3');\r\n * // => false\r\n */\r\n function isFinite(value) {\r\n return typeof value == 'number' && nativeIsFinite(value);\r\n }\r\n\r\n /**\r\n * Checks if `value` is classified as a `Function` object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\r\n * @example\r\n *\r\n * _.isFunction(_);\r\n * // => true\r\n *\r\n * _.isFunction(/abc/);\r\n * // => false\r\n */\r\n function isFunction(value) {\r\n if (!isObject(value)) {\r\n return false;\r\n }\r\n // The use of `Object#toString` avoids issues with the `typeof` operator\r\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\r\n var tag = baseGetTag(value);\r\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\r\n }\r\n\r\n /**\r\n * Checks if `value` is a valid array-like length.\r\n *\r\n * **Note:** This method is loosely based on\r\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\r\n * @example\r\n *\r\n * _.isLength(3);\r\n * // => true\r\n *\r\n * _.isLength(Number.MIN_VALUE);\r\n * // => false\r\n *\r\n * _.isLength(Infinity);\r\n * // => false\r\n *\r\n * _.isLength('3');\r\n * // => false\r\n */\r\n function isLength(value) {\r\n return typeof value == 'number' &&\r\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\r\n }\r\n\r\n /**\r\n * Checks if `value` is the\r\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\r\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\r\n * @example\r\n *\r\n * _.isObject({});\r\n * // => true\r\n *\r\n * _.isObject([1, 2, 3]);\r\n * // => true\r\n *\r\n * _.isObject(_.noop);\r\n * // => true\r\n *\r\n * _.isObject(null);\r\n * // => false\r\n */\r\n function isObject(value) {\r\n var type = typeof value;\r\n return value != null && (type == 'object' || type == 'function');\r\n }\r\n\r\n /**\r\n * Checks if `value` is object-like. A value is object-like if it's not `null`\r\n * and has a `typeof` result of \"object\".\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\r\n * @example\r\n *\r\n * _.isObjectLike({});\r\n * // => true\r\n *\r\n * _.isObjectLike([1, 2, 3]);\r\n * // => true\r\n *\r\n * _.isObjectLike(_.noop);\r\n * // => false\r\n *\r\n * _.isObjectLike(null);\r\n * // => false\r\n */\r\n function isObjectLike(value) {\r\n return value != null && typeof value == 'object';\r\n }\r\n\r\n /**\r\n * Checks if `value` is classified as a `Map` object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.3.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\r\n * @example\r\n *\r\n * _.isMap(new Map);\r\n * // => true\r\n *\r\n * _.isMap(new WeakMap);\r\n * // => false\r\n */\r\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\r\n\r\n /**\r\n * Checks if `value` is `NaN`.\r\n *\r\n * **Note:** This method is based on\r\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\r\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\r\n * `undefined` and other non-number values.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\r\n * @example\r\n *\r\n * _.isNaN(NaN);\r\n * // => true\r\n *\r\n * _.isNaN(new Number(NaN));\r\n * // => true\r\n *\r\n * isNaN(undefined);\r\n * // => true\r\n *\r\n * _.isNaN(undefined);\r\n * // => false\r\n */\r\n function isNaN(value) {\r\n // An `NaN` primitive is the only value that is not equal to itself.\r\n // Perform the `toStringTag` check first to avoid errors with some\r\n // ActiveX objects in IE.\r\n return isNumber(value) && value != +value;\r\n }\r\n\r\n /**\r\n * Checks if `value` is `null`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\r\n * @example\r\n *\r\n * _.isNull(null);\r\n * // => true\r\n *\r\n * _.isNull(void 0);\r\n * // => false\r\n */\r\n function isNull(value) {\r\n return value === null;\r\n }\r\n\r\n /**\r\n * Checks if `value` is classified as a `Number` primitive or object.\r\n *\r\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\r\n * classified as numbers, use the `_.isFinite` method.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\r\n * @example\r\n *\r\n * _.isNumber(3);\r\n * // => true\r\n *\r\n * _.isNumber(Number.MIN_VALUE);\r\n * // => true\r\n *\r\n * _.isNumber(Infinity);\r\n * // => true\r\n *\r\n * _.isNumber('3');\r\n * // => false\r\n */\r\n function isNumber(value) {\r\n return typeof value == 'number' ||\r\n (isObjectLike(value) && baseGetTag(value) == numberTag);\r\n }\r\n\r\n /**\r\n * Checks if `value` is a plain object, that is, an object created by the\r\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.8.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\r\n * @example\r\n *\r\n * function Foo() {\r\n * this.a = 1;\r\n * }\r\n *\r\n * _.isPlainObject(new Foo);\r\n * // => false\r\n *\r\n * _.isPlainObject([1, 2, 3]);\r\n * // => false\r\n *\r\n * _.isPlainObject({ 'x': 0, 'y': 0 });\r\n * // => true\r\n *\r\n * _.isPlainObject(Object.create(null));\r\n * // => true\r\n */\r\n function isPlainObject(value) {\r\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\r\n return false;\r\n }\r\n var proto = getPrototype(value);\r\n if (proto === null) {\r\n return true;\r\n }\r\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\r\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\r\n funcToString.call(Ctor) == objectCtorString;\r\n }\r\n\r\n /**\r\n * Checks if `value` is classified as a `RegExp` object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\r\n * @example\r\n *\r\n * _.isRegExp(/abc/);\r\n * // => true\r\n *\r\n * _.isRegExp('/abc/');\r\n * // => false\r\n */\r\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\r\n\r\n /**\r\n * Checks if `value` is classified as a `Set` object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.3.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\r\n * @example\r\n *\r\n * _.isSet(new Set);\r\n * // => true\r\n *\r\n * _.isSet(new WeakSet);\r\n * // => false\r\n */\r\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\r\n\r\n /**\r\n * Checks if `value` is classified as a `String` primitive or object.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\r\n * @example\r\n *\r\n * _.isString('abc');\r\n * // => true\r\n *\r\n * _.isString(1);\r\n * // => false\r\n */\r\n function isString(value) {\r\n return typeof value == 'string' ||\r\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\r\n }\r\n\r\n /**\r\n * Checks if `value` is classified as a `Symbol` primitive or object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\r\n * @example\r\n *\r\n * _.isSymbol(Symbol.iterator);\r\n * // => true\r\n *\r\n * _.isSymbol('abc');\r\n * // => false\r\n */\r\n function isSymbol(value) {\r\n return typeof value == 'symbol' ||\r\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\r\n }\r\n\r\n /**\r\n * Checks if `value` is classified as a typed array.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\r\n * @example\r\n *\r\n * _.isTypedArray(new Uint8Array);\r\n * // => true\r\n *\r\n * _.isTypedArray([]);\r\n * // => false\r\n */\r\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\r\n\r\n /**\r\n * Checks if `value` is `undefined`.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\r\n * @example\r\n *\r\n * _.isUndefined(void 0);\r\n * // => true\r\n *\r\n * _.isUndefined(null);\r\n * // => false\r\n */\r\n function isUndefined(value) {\r\n return value === undefined;\r\n }\r\n\r\n /**\r\n * Converts `value` to an array.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Lang\r\n * @param {*} value The value to convert.\r\n * @returns {Array} Returns the converted array.\r\n * @example\r\n *\r\n * _.toArray({ 'a': 1, 'b': 2 });\r\n * // => [1, 2]\r\n *\r\n * _.toArray('abc');\r\n * // => ['a', 'b', 'c']\r\n *\r\n * _.toArray(1);\r\n * // => []\r\n *\r\n * _.toArray(null);\r\n * // => []\r\n */\r\n function toArray(value) {\r\n if (!value) {\r\n return [];\r\n }\r\n if (isArrayLike(value)) {\r\n return isString(value) ? stringToArray(value) : copyArray(value);\r\n }\r\n if (symIterator && value[symIterator]) {\r\n return iteratorToArray(value[symIterator]());\r\n }\r\n var tag = getTag(value),\r\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\r\n\r\n return func(value);\r\n }\r\n\r\n /**\r\n * Converts `value` to a finite number.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.12.0\r\n * @category Lang\r\n * @param {*} value The value to convert.\r\n * @returns {number} Returns the converted number.\r\n * @example\r\n *\r\n * _.toFinite(3.2);\r\n * // => 3.2\r\n *\r\n * _.toFinite(Number.MIN_VALUE);\r\n * // => 5e-324\r\n *\r\n * _.toFinite(Infinity);\r\n * // => 1.7976931348623157e+308\r\n *\r\n * _.toFinite('3.2');\r\n * // => 3.2\r\n */\r\n function toFinite(value) {\r\n if (!value) {\r\n return value === 0 ? value : 0;\r\n }\r\n value = toNumber(value);\r\n if (value === INFINITY || value === -INFINITY) {\r\n var sign = (value < 0 ? -1 : 1);\r\n return sign * MAX_INTEGER;\r\n }\r\n return value === value ? value : 0;\r\n }\r\n\r\n /**\r\n * Converts `value` to an integer.\r\n *\r\n * **Note:** This method is loosely based on\r\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to convert.\r\n * @returns {number} Returns the converted integer.\r\n * @example\r\n *\r\n * _.toInteger(3.2);\r\n * // => 3\r\n *\r\n * _.toInteger(Number.MIN_VALUE);\r\n * // => 0\r\n *\r\n * _.toInteger(Infinity);\r\n * // => 1.7976931348623157e+308\r\n *\r\n * _.toInteger('3.2');\r\n * // => 3\r\n */\r\n function toInteger(value) {\r\n var result = toFinite(value),\r\n remainder = result % 1;\r\n\r\n return result === result ? (remainder ? result - remainder : result) : 0;\r\n }\r\n\r\n /**\r\n * Converts `value` to a number.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to process.\r\n * @returns {number} Returns the number.\r\n * @example\r\n *\r\n * _.toNumber(3.2);\r\n * // => 3.2\r\n *\r\n * _.toNumber(Number.MIN_VALUE);\r\n * // => 5e-324\r\n *\r\n * _.toNumber(Infinity);\r\n * // => Infinity\r\n *\r\n * _.toNumber('3.2');\r\n * // => 3.2\r\n */\r\n function toNumber(value) {\r\n if (typeof value == 'number') {\r\n return value;\r\n }\r\n if (isSymbol(value)) {\r\n return NAN;\r\n }\r\n if (isObject(value)) {\r\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\r\n value = isObject(other) ? (other + '') : other;\r\n }\r\n if (typeof value != 'string') {\r\n return value === 0 ? value : +value;\r\n }\r\n value = value.replace(reTrim, '');\r\n var isBinary = reIsBinary.test(value);\r\n return (isBinary || reIsOctal.test(value))\r\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\r\n : (reIsBadHex.test(value) ? NAN : +value);\r\n }\r\n\r\n /**\r\n * Converts `value` to a plain object flattening inherited enumerable string\r\n * keyed properties of `value` to own properties of the plain object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Lang\r\n * @param {*} value The value to convert.\r\n * @returns {Object} Returns the converted plain object.\r\n * @example\r\n *\r\n * function Foo() {\r\n * this.b = 2;\r\n * }\r\n *\r\n * Foo.prototype.c = 3;\r\n *\r\n * _.assign({ 'a': 1 }, new Foo);\r\n * // => { 'a': 1, 'b': 2 }\r\n *\r\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\r\n * // => { 'a': 1, 'b': 2, 'c': 3 }\r\n */\r\n function toPlainObject(value) {\r\n return copyObject(value, keysIn(value));\r\n }\r\n\r\n /**\r\n * Converts `value` to a string. An empty string is returned for `null`\r\n * and `undefined` values. The sign of `-0` is preserved.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to convert.\r\n * @returns {string} Returns the converted string.\r\n * @example\r\n *\r\n * _.toString(null);\r\n * // => ''\r\n *\r\n * _.toString(-0);\r\n * // => '-0'\r\n *\r\n * _.toString([1, 2, 3]);\r\n * // => '1,2,3'\r\n */\r\n function toString(value) {\r\n return value == null ? '' : baseToString(value);\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * This method is like `_.assign` except that it iterates over own and\r\n * inherited source properties.\r\n *\r\n * **Note:** This method mutates `object`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @alias extend\r\n * @category Object\r\n * @param {Object} object The destination object.\r\n * @param {...Object} [sources] The source objects.\r\n * @returns {Object} Returns `object`.\r\n * @see _.assign\r\n * @example\r\n *\r\n * function Foo() {\r\n * this.a = 1;\r\n * }\r\n *\r\n * function Bar() {\r\n * this.c = 3;\r\n * }\r\n *\r\n * Foo.prototype.b = 2;\r\n * Bar.prototype.d = 4;\r\n *\r\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\r\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\r\n */\r\n var assignIn = createAssigner(function(object, source) {\r\n copyObject(source, keysIn(source), object);\r\n });\r\n\r\n /**\r\n * Creates an object that inherits from the `prototype` object. If a\r\n * `properties` object is given, its own enumerable string keyed properties\r\n * are assigned to the created object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 2.3.0\r\n * @category Object\r\n * @param {Object} prototype The object to inherit from.\r\n * @param {Object} [properties] The properties to assign to the object.\r\n * @returns {Object} Returns the new object.\r\n * @example\r\n *\r\n * function Shape() {\r\n * this.x = 0;\r\n * this.y = 0;\r\n * }\r\n *\r\n * function Circle() {\r\n * Shape.call(this);\r\n * }\r\n *\r\n * Circle.prototype = _.create(Shape.prototype, {\r\n * 'constructor': Circle\r\n * });\r\n *\r\n * var circle = new Circle;\r\n * circle instanceof Circle;\r\n * // => true\r\n *\r\n * circle instanceof Shape;\r\n * // => true\r\n */\r\n function create(prototype, properties) {\r\n var result = baseCreate(prototype);\r\n return properties == null ? result : baseAssign(result, properties);\r\n }\r\n\r\n /**\r\n * Assigns own and inherited enumerable string keyed properties of source\r\n * objects to the destination object for all destination properties that\r\n * resolve to `undefined`. Source objects are applied from left to right.\r\n * Once a property is set, additional values of the same property are ignored.\r\n *\r\n * **Note:** This method mutates `object`.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Object\r\n * @param {Object} object The destination object.\r\n * @param {...Object} [sources] The source objects.\r\n * @returns {Object} Returns `object`.\r\n * @see _.defaultsDeep\r\n * @example\r\n *\r\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\r\n * // => { 'a': 1, 'b': 2 }\r\n */\r\n var defaults = baseRest(function(object, sources) {\r\n object = Object(object);\r\n\r\n var index = -1;\r\n var length = sources.length;\r\n var guard = length > 2 ? sources[2] : undefined;\r\n\r\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\r\n length = 1;\r\n }\r\n\r\n while (++index < length) {\r\n var source = sources[index];\r\n var props = keysIn(source);\r\n var propsIndex = -1;\r\n var propsLength = props.length;\r\n\r\n while (++propsIndex < propsLength) {\r\n var key = props[propsIndex];\r\n var value = object[key];\r\n\r\n if (value === undefined ||\r\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\r\n object[key] = source[key];\r\n }\r\n }\r\n }\r\n\r\n return object;\r\n });\r\n\r\n /**\r\n * This method is like `_.defaults` except that it recursively assigns\r\n * default properties.\r\n *\r\n * **Note:** This method mutates `object`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.10.0\r\n * @category Object\r\n * @param {Object} object The destination object.\r\n * @param {...Object} [sources] The source objects.\r\n * @returns {Object} Returns `object`.\r\n * @see _.defaults\r\n * @example\r\n *\r\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\r\n * // => { 'a': { 'b': 2, 'c': 3 } }\r\n */\r\n var defaultsDeep = baseRest(function(args) {\r\n args.push(undefined, customDefaultsMerge);\r\n return apply(mergeWith, undefined, args);\r\n });\r\n\r\n /**\r\n * This method is like `_.find` except that it returns the key of the first\r\n * element `predicate` returns truthy for instead of the element itself.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 1.1.0\r\n * @category Object\r\n * @param {Object} object The object to inspect.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @returns {string|undefined} Returns the key of the matched element,\r\n * else `undefined`.\r\n * @example\r\n *\r\n * var users = {\r\n * 'barney': { 'age': 36, 'active': true },\r\n * 'fred': { 'age': 40, 'active': false },\r\n * 'pebbles': { 'age': 1, 'active': true }\r\n * };\r\n *\r\n * _.findKey(users, function(o) { return o.age < 40; });\r\n * // => 'barney' (iteration order is not guaranteed)\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.findKey(users, { 'age': 1, 'active': true });\r\n * // => 'pebbles'\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.findKey(users, ['active', false]);\r\n * // => 'fred'\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.findKey(users, 'active');\r\n * // => 'barney'\r\n */\r\n function findKey(object, predicate) {\r\n return baseFindKey(object, baseIteratee(predicate, 3), baseForOwn);\r\n }\r\n\r\n /**\r\n * This method is like `_.findKey` except that it iterates over elements of\r\n * a collection in the opposite order.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 2.0.0\r\n * @category Object\r\n * @param {Object} object The object to inspect.\r\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\r\n * @returns {string|undefined} Returns the key of the matched element,\r\n * else `undefined`.\r\n * @example\r\n *\r\n * var users = {\r\n * 'barney': { 'age': 36, 'active': true },\r\n * 'fred': { 'age': 40, 'active': false },\r\n * 'pebbles': { 'age': 1, 'active': true }\r\n * };\r\n *\r\n * _.findLastKey(users, function(o) { return o.age < 40; });\r\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.findLastKey(users, { 'age': 36, 'active': true });\r\n * // => 'barney'\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.findLastKey(users, ['active', false]);\r\n * // => 'fred'\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.findLastKey(users, 'active');\r\n * // => 'pebbles'\r\n */\r\n function findLastKey(object, predicate) {\r\n return baseFindKey(object, baseIteratee(predicate, 3), baseForOwnRight);\r\n }\r\n\r\n /**\r\n * Gets the value at `path` of `object`. If the resolved value is\r\n * `undefined`, the `defaultValue` is returned in its place.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.7.0\r\n * @category Object\r\n * @param {Object} object The object to query.\r\n * @param {Array|string} path The path of the property to get.\r\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\r\n * @returns {*} Returns the resolved value.\r\n * @example\r\n *\r\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\r\n *\r\n * _.get(object, 'a[0].b.c');\r\n * // => 3\r\n *\r\n * _.get(object, ['a', '0', 'b', 'c']);\r\n * // => 3\r\n *\r\n * _.get(object, 'a.b.c', 'default');\r\n * // => 'default'\r\n */\r\n function get(object, path, defaultValue) {\r\n var result = object == null ? undefined : baseGet(object, path);\r\n return result === undefined ? defaultValue : result;\r\n }\r\n\r\n /**\r\n * Checks if `path` is a direct property of `object`.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Object\r\n * @param {Object} object The object to query.\r\n * @param {Array|string} path The path to check.\r\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\r\n * @example\r\n *\r\n * var object = { 'a': { 'b': 2 } };\r\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\r\n *\r\n * _.has(object, 'a');\r\n * // => true\r\n *\r\n * _.has(object, 'a.b');\r\n * // => true\r\n *\r\n * _.has(object, ['a', 'b']);\r\n * // => true\r\n *\r\n * _.has(other, 'a');\r\n * // => false\r\n */\r\n function has(object, path) {\r\n return object != null && hasPath(object, path, baseHas);\r\n }\r\n\r\n /**\r\n * Checks if `path` is a direct or inherited property of `object`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Object\r\n * @param {Object} object The object to query.\r\n * @param {Array|string} path The path to check.\r\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\r\n * @example\r\n *\r\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\r\n *\r\n * _.hasIn(object, 'a');\r\n * // => true\r\n *\r\n * _.hasIn(object, 'a.b');\r\n * // => true\r\n *\r\n * _.hasIn(object, ['a', 'b']);\r\n * // => true\r\n *\r\n * _.hasIn(object, 'b');\r\n * // => false\r\n */\r\n function hasIn(object, path) {\r\n return object != null && hasPath(object, path, baseHasIn);\r\n }\r\n\r\n /**\r\n * Creates an object composed of the inverted keys and values of `object`.\r\n * If `object` contains duplicate values, subsequent values overwrite\r\n * property assignments of previous values.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.7.0\r\n * @category Object\r\n * @param {Object} object The object to invert.\r\n * @returns {Object} Returns the new inverted object.\r\n * @example\r\n *\r\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\r\n *\r\n * _.invert(object);\r\n * // => { '1': 'c', '2': 'b' }\r\n */\r\n var invert = createInverter(function(result, value, key) {\r\n if (value != null &&\r\n typeof value.toString != 'function') {\r\n value = nativeObjectToString.call(value);\r\n }\r\n\r\n result[value] = key;\r\n }, constant(identity));\r\n\r\n /**\r\n * This method is like `_.invert` except that the inverted object is generated\r\n * from the results of running each element of `object` thru `iteratee`. The\r\n * corresponding inverted value of each inverted key is an array of keys\r\n * responsible for generating the inverted value. The iteratee is invoked\r\n * with one argument: (value).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.1.0\r\n * @category Object\r\n * @param {Object} object The object to invert.\r\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\r\n * @returns {Object} Returns the new inverted object.\r\n * @example\r\n *\r\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\r\n *\r\n * _.invertBy(object);\r\n * // => { '1': ['a', 'c'], '2': ['b'] }\r\n *\r\n * _.invertBy(object, function(value) {\r\n * return 'group' + value;\r\n * });\r\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\r\n */\r\n var invertBy = createInverter(function(result, value, key) {\r\n if (value != null &&\r\n typeof value.toString != 'function') {\r\n value = nativeObjectToString.call(value);\r\n }\r\n\r\n if (hasOwnProperty.call(result, value)) {\r\n result[value].push(key);\r\n } else {\r\n result[value] = [key];\r\n }\r\n }, baseIteratee);\r\n\r\n /**\r\n * Creates an array of the own enumerable property names of `object`.\r\n *\r\n * **Note:** Non-object values are coerced to objects. See the\r\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\r\n * for more details.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Object\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property names.\r\n * @example\r\n *\r\n * function Foo() {\r\n * this.a = 1;\r\n * this.b = 2;\r\n * }\r\n *\r\n * Foo.prototype.c = 3;\r\n *\r\n * _.keys(new Foo);\r\n * // => ['a', 'b'] (iteration order is not guaranteed)\r\n *\r\n * _.keys('hi');\r\n * // => ['0', '1']\r\n */\r\n function keys(object) {\r\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\r\n }\r\n\r\n /**\r\n * Creates an array of the own and inherited enumerable property names of `object`.\r\n *\r\n * **Note:** Non-object values are coerced to objects.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Object\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property names.\r\n * @example\r\n *\r\n * function Foo() {\r\n * this.a = 1;\r\n * this.b = 2;\r\n * }\r\n *\r\n * Foo.prototype.c = 3;\r\n *\r\n * _.keysIn(new Foo);\r\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\r\n */\r\n function keysIn(object) {\r\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\r\n }\r\n\r\n /**\r\n * This method is like `_.assign` except that it recursively merges own and\r\n * inherited enumerable string keyed properties of source objects into the\r\n * destination object. Source properties that resolve to `undefined` are\r\n * skipped if a destination value exists. Array and plain object properties\r\n * are merged recursively. Other objects and value types are overridden by\r\n * assignment. Source objects are applied from left to right. Subsequent\r\n * sources overwrite property assignments of previous sources.\r\n *\r\n * **Note:** This method mutates `object`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.5.0\r\n * @category Object\r\n * @param {Object} object The destination object.\r\n * @param {...Object} [sources] The source objects.\r\n * @returns {Object} Returns `object`.\r\n * @example\r\n *\r\n * var object = {\r\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\r\n * };\r\n *\r\n * var other = {\r\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\r\n * };\r\n *\r\n * _.merge(object, other);\r\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\r\n */\r\n var merge = createAssigner(function(object, source, srcIndex) {\r\n baseMerge(object, source, srcIndex);\r\n });\r\n\r\n /**\r\n * This method is like `_.merge` except that it accepts `customizer` which\r\n * is invoked to produce the merged values of the destination and source\r\n * properties. If `customizer` returns `undefined`, merging is handled by the\r\n * method instead. The `customizer` is invoked with six arguments:\r\n * (objValue, srcValue, key, object, source, stack).\r\n *\r\n * **Note:** This method mutates `object`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Object\r\n * @param {Object} object The destination object.\r\n * @param {...Object} sources The source objects.\r\n * @param {Function} customizer The function to customize assigned values.\r\n * @returns {Object} Returns `object`.\r\n * @example\r\n *\r\n * function customizer(objValue, srcValue) {\r\n * if (_.isArray(objValue)) {\r\n * return objValue.concat(srcValue);\r\n * }\r\n * }\r\n *\r\n * var object = { 'a': [1], 'b': [2] };\r\n * var other = { 'a': [3], 'b': [4] };\r\n *\r\n * _.mergeWith(object, other, customizer);\r\n * // => { 'a': [1, 3], 'b': [2, 4] }\r\n */\r\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\r\n baseMerge(object, source, srcIndex, customizer);\r\n });\r\n\r\n /**\r\n * The opposite of `_.pick`; this method creates an object composed of the\r\n * own and inherited enumerable property paths of `object` that are not omitted.\r\n *\r\n * **Note:** This method is considerably slower than `_.pick`.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Object\r\n * @param {Object} object The source object.\r\n * @param {...(string|string[])} [paths] The property paths to omit.\r\n * @returns {Object} Returns the new object.\r\n * @example\r\n *\r\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\r\n *\r\n * _.omit(object, ['a', 'c']);\r\n * // => { 'b': '2' }\r\n */\r\n var omit = flatRest(function(object, paths) {\r\n var result = {};\r\n if (object == null) {\r\n return result;\r\n }\r\n var isDeep = false;\r\n paths = arrayMap(paths, function(path) {\r\n path = castPath(path, object);\r\n isDeep || (isDeep = path.length > 1);\r\n return path;\r\n });\r\n copyObject(object, getAllKeysIn(object), result);\r\n if (isDeep) {\r\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\r\n }\r\n var length = paths.length;\r\n while (length--) {\r\n baseUnset(result, paths[length]);\r\n }\r\n return result;\r\n });\r\n\r\n /**\r\n * The opposite of `_.pickBy`; this method creates an object composed of\r\n * the own and inherited enumerable string keyed properties of `object` that\r\n * `predicate` doesn't return truthy for. The predicate is invoked with two\r\n * arguments: (value, key).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Object\r\n * @param {Object} object The source object.\r\n * @param {Function} [predicate=_.identity] The function invoked per property.\r\n * @returns {Object} Returns the new object.\r\n * @example\r\n *\r\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\r\n *\r\n * _.omitBy(object, _.isNumber);\r\n * // => { 'b': '2' }\r\n */\r\n function omitBy(object, predicate) {\r\n return pickBy(object, negate(baseIteratee(predicate)));\r\n }\r\n\r\n /**\r\n * Creates an object composed of the picked `object` properties.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Object\r\n * @param {Object} object The source object.\r\n * @param {...(string|string[])} [paths] The property paths to pick.\r\n * @returns {Object} Returns the new object.\r\n * @example\r\n *\r\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\r\n *\r\n * _.pick(object, ['a', 'c']);\r\n * // => { 'a': 1, 'c': 3 }\r\n */\r\n var pick = flatRest(function(object, paths) {\r\n return object == null ? {} : basePick(object, paths);\r\n });\r\n\r\n /**\r\n * Creates an object composed of the `object` properties `predicate` returns\r\n * truthy for. The predicate is invoked with two arguments: (value, key).\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Object\r\n * @param {Object} object The source object.\r\n * @param {Function} [predicate=_.identity] The function invoked per property.\r\n * @returns {Object} Returns the new object.\r\n * @example\r\n *\r\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\r\n *\r\n * _.pickBy(object, _.isNumber);\r\n * // => { 'a': 1, 'c': 3 }\r\n */\r\n function pickBy(object, predicate) {\r\n if (object == null) {\r\n return {};\r\n }\r\n var props = arrayMap(getAllKeysIn(object), function(prop) {\r\n return [prop];\r\n });\r\n predicate = baseIteratee(predicate);\r\n return basePickBy(object, props, function(value, path) {\r\n return predicate(value, path[0]);\r\n });\r\n }\r\n\r\n /**\r\n * This method is like `_.get` except that if the resolved value is a\r\n * function it's invoked with the `this` binding of its parent object and\r\n * its result is returned.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Object\r\n * @param {Object} object The object to query.\r\n * @param {Array|string} path The path of the property to resolve.\r\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\r\n * @returns {*} Returns the resolved value.\r\n * @example\r\n *\r\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\r\n *\r\n * _.result(object, 'a[0].b.c1');\r\n * // => 3\r\n *\r\n * _.result(object, 'a[0].b.c2');\r\n * // => 4\r\n *\r\n * _.result(object, 'a[0].b.c3', 'default');\r\n * // => 'default'\r\n *\r\n * _.result(object, 'a[0].b.c3', _.constant('default'));\r\n * // => 'default'\r\n */\r\n function result(object, path, defaultValue) {\r\n path = castPath(path, object);\r\n\r\n var index = -1,\r\n length = path.length;\r\n\r\n // Ensure the loop is entered when path is empty.\r\n if (!length) {\r\n length = 1;\r\n object = undefined;\r\n }\r\n while (++index < length) {\r\n var value = object == null ? undefined : object[toKey(path[index])];\r\n if (value === undefined) {\r\n index = length;\r\n value = defaultValue;\r\n }\r\n object = isFunction(value) ? value.call(object) : value;\r\n }\r\n return object;\r\n }\r\n\r\n /**\r\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\r\n * it's created. Arrays are created for missing index properties while objects\r\n * are created for all other missing properties. Use `_.setWith` to customize\r\n * `path` creation.\r\n *\r\n * **Note:** This method mutates `object`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.7.0\r\n * @category Object\r\n * @param {Object} object The object to modify.\r\n * @param {Array|string} path The path of the property to set.\r\n * @param {*} value The value to set.\r\n * @returns {Object} Returns `object`.\r\n * @example\r\n *\r\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\r\n *\r\n * _.set(object, 'a[0].b.c', 4);\r\n * console.log(object.a[0].b.c);\r\n * // => 4\r\n *\r\n * _.set(object, ['x', '0', 'y', 'z'], 5);\r\n * console.log(object.x[0].y.z);\r\n * // => 5\r\n */\r\n function set(object, path, value) {\r\n return object == null ? object : baseSet(object, path, value);\r\n }\r\n\r\n /**\r\n * Creates an array of the own enumerable string keyed property values of `object`.\r\n *\r\n * **Note:** Non-object values are coerced to objects.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Object\r\n * @param {Object} object The object to query.\r\n * @returns {Array} Returns the array of property values.\r\n * @example\r\n *\r\n * function Foo() {\r\n * this.a = 1;\r\n * this.b = 2;\r\n * }\r\n *\r\n * Foo.prototype.c = 3;\r\n *\r\n * _.values(new Foo);\r\n * // => [1, 2] (iteration order is not guaranteed)\r\n *\r\n * _.values('hi');\r\n * // => ['h', 'i']\r\n */\r\n function values(object) {\r\n return object == null ? [] : baseValues(object, keys(object));\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.0.0\r\n * @category Number\r\n * @param {number} number The number to clamp.\r\n * @param {number} [lower] The lower bound.\r\n * @param {number} upper The upper bound.\r\n * @returns {number} Returns the clamped number.\r\n * @example\r\n *\r\n * _.clamp(-10, -5, 5);\r\n * // => -5\r\n *\r\n * _.clamp(10, -5, 5);\r\n * // => 5\r\n */\r\n function clamp(number, lower, upper) {\r\n if (upper === undefined) {\r\n upper = lower;\r\n lower = undefined;\r\n }\r\n if (upper !== undefined) {\r\n upper = toNumber(upper);\r\n upper = upper === upper ? upper : 0;\r\n }\r\n if (lower !== undefined) {\r\n lower = toNumber(lower);\r\n lower = lower === lower ? lower : 0;\r\n }\r\n return baseClamp(toNumber(number), lower, upper);\r\n }\r\n\r\n /**\r\n * Produces a random number between the inclusive `lower` and `upper` bounds.\r\n * If only one argument is provided a number between `0` and the given number\r\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\r\n * floats, a floating-point number is returned instead of an integer.\r\n *\r\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\r\n * floating-point values which can produce unexpected results.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 0.7.0\r\n * @category Number\r\n * @param {number} [lower=0] The lower bound.\r\n * @param {number} [upper=1] The upper bound.\r\n * @param {boolean} [floating] Specify returning a floating-point number.\r\n * @returns {number} Returns the random number.\r\n * @example\r\n *\r\n * _.random(0, 5);\r\n * // => an integer between 0 and 5\r\n *\r\n * _.random(5);\r\n * // => also an integer between 0 and 5\r\n *\r\n * _.random(5, true);\r\n * // => a floating-point number between 0 and 5\r\n *\r\n * _.random(1.2, 5.2);\r\n * // => a floating-point number between 1.2 and 5.2\r\n */\r\n function random(lower, upper, floating) {\r\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\r\n upper = floating = undefined;\r\n }\r\n if (floating === undefined) {\r\n if (typeof upper == 'boolean') {\r\n floating = upper;\r\n upper = undefined;\r\n }\r\n else if (typeof lower == 'boolean') {\r\n floating = lower;\r\n lower = undefined;\r\n }\r\n }\r\n if (lower === undefined && upper === undefined) {\r\n lower = 0;\r\n upper = 1;\r\n }\r\n else {\r\n lower = toFinite(lower);\r\n if (upper === undefined) {\r\n upper = lower;\r\n lower = 0;\r\n } else {\r\n upper = toFinite(upper);\r\n }\r\n }\r\n if (lower > upper) {\r\n var temp = lower;\r\n lower = upper;\r\n upper = temp;\r\n }\r\n if (floating || lower % 1 || upper % 1) {\r\n var rand = nativeRandom();\r\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\r\n }\r\n return baseRandom(lower, upper);\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\r\n * corresponding HTML entities.\r\n *\r\n * **Note:** No other characters are escaped. To escape additional\r\n * characters use a third-party library like [_he_](https://mths.be/he).\r\n *\r\n * Though the \">\" character is escaped for symmetry, characters like\r\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\r\n * unless they're part of a tag or unquoted attribute value. See\r\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\r\n * (under \"semi-related fun fact\") for more details.\r\n *\r\n * When working with HTML you should always\r\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\r\n * XSS vectors.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category String\r\n * @param {string} [string=''] The string to escape.\r\n * @returns {string} Returns the escaped string.\r\n * @example\r\n *\r\n * _.escape('fred, barney, & pebbles');\r\n * // => 'fred, barney, &amp; pebbles'\r\n */\r\n function escape(string) {\r\n string = toString(string);\r\n return (string && reHasUnescapedHtml.test(string))\r\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\r\n : string;\r\n }\r\n\r\n /**\r\n * Removes leading and trailing whitespace or specified characters from `string`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category String\r\n * @param {string} [string=''] The string to trim.\r\n * @param {string} [chars=whitespace] The characters to trim.\r\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\r\n * @returns {string} Returns the trimmed string.\r\n * @example\r\n *\r\n * _.trim(' abc ');\r\n * // => 'abc'\r\n *\r\n * _.trim('-_-abc-_-', '_-');\r\n * // => 'abc'\r\n *\r\n * _.map([' foo ', ' bar '], _.trim);\r\n * // => ['foo', 'bar']\r\n */\r\n function trim(string, chars, guard) {\r\n string = toString(string);\r\n if (string && (guard || chars === undefined)) {\r\n return string.replace(reTrim, '');\r\n }\r\n if (!string || !(chars = baseToString(chars))) {\r\n return string;\r\n }\r\n var strSymbols = stringToArray(string),\r\n chrSymbols = stringToArray(chars),\r\n start = charsStartIndex(strSymbols, chrSymbols),\r\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\r\n\r\n return castSlice(strSymbols, start, end).join('');\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Creates a function that returns `value`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 2.4.0\r\n * @category Util\r\n * @param {*} value The value to return from the new function.\r\n * @returns {Function} Returns the new constant function.\r\n * @example\r\n *\r\n * var objects = _.times(2, _.constant({ 'a': 1 }));\r\n *\r\n * console.log(objects);\r\n * // => [{ 'a': 1 }, { 'a': 1 }]\r\n *\r\n * console.log(objects[0] === objects[1]);\r\n * // => true\r\n */\r\n function constant(value) {\r\n return function() {\r\n return value;\r\n };\r\n }\r\n\r\n /**\r\n * This method returns the first argument it receives.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Util\r\n * @param {*} value Any value.\r\n * @returns {*} Returns `value`.\r\n * @example\r\n *\r\n * var object = { 'a': 1 };\r\n *\r\n * console.log(_.identity(object) === object);\r\n * // => true\r\n */\r\n function identity(value) {\r\n return value;\r\n }\r\n\r\n /**\r\n * Creates a function that invokes `func` with the arguments of the created\r\n * function. If `func` is a property name, the created function returns the\r\n * property value for a given element. If `func` is an array or object, the\r\n * created function returns `true` for elements that contain the equivalent\r\n * source properties, otherwise it returns `false`.\r\n *\r\n * @static\r\n * @since 4.0.0\r\n * @memberOf _\r\n * @category Util\r\n * @param {*} [func=_.identity] The value to convert to a callback.\r\n * @returns {Function} Returns the callback.\r\n * @example\r\n *\r\n * var users = [\r\n * { 'user': 'barney', 'age': 36, 'active': true },\r\n * { 'user': 'fred', 'age': 40, 'active': false }\r\n * ];\r\n *\r\n * // The `_.matches` iteratee shorthand.\r\n * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));\r\n * // => [{ 'user': 'barney', 'age': 36, 'active': true }]\r\n *\r\n * // The `_.matchesProperty` iteratee shorthand.\r\n * _.filter(users, _.iteratee(['user', 'fred']));\r\n * // => [{ 'user': 'fred', 'age': 40 }]\r\n *\r\n * // The `_.property` iteratee shorthand.\r\n * _.map(users, _.iteratee('user'));\r\n * // => ['barney', 'fred']\r\n *\r\n * // Create custom iteratee shorthands.\r\n * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {\r\n * return !_.isRegExp(func) ? iteratee(func) : function(string) {\r\n * return func.test(string);\r\n * };\r\n * });\r\n *\r\n * _.filter(['abc', 'def'], /ef/);\r\n * // => ['def']\r\n */\r\n function iteratee(func) {\r\n return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));\r\n }\r\n\r\n /**\r\n * Creates a function that performs a partial deep comparison between a given\r\n * object and `source`, returning `true` if the given object has equivalent\r\n * property values, else `false`.\r\n *\r\n * **Note:** The created function is equivalent to `_.isMatch` with `source`\r\n * partially applied.\r\n *\r\n * Partial comparisons will match empty array and empty object `source`\r\n * values against any array or object value, respectively. See `_.isEqual`\r\n * for a list of supported value comparisons.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 3.0.0\r\n * @category Util\r\n * @param {Object} source The object of property values to match.\r\n * @returns {Function} Returns the new spec function.\r\n * @example\r\n *\r\n * var objects = [\r\n * { 'a': 1, 'b': 2, 'c': 3 },\r\n * { 'a': 4, 'b': 5, 'c': 6 }\r\n * ];\r\n *\r\n * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));\r\n * // => [{ 'a': 4, 'b': 5, 'c': 6 }]\r\n */\r\n function matches(source) {\r\n return baseMatches(baseClone(source, CLONE_DEEP_FLAG));\r\n }\r\n\r\n /**\r\n * Adds all own enumerable string keyed function properties of a source\r\n * object to the destination object. If `object` is a function, then methods\r\n * are added to its prototype as well.\r\n *\r\n * **Note:** Use `_.runInContext` to create a pristine `lodash` function to\r\n * avoid conflicts caused by modifying the original.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Util\r\n * @param {Function|Object} [object=lodash] The destination object.\r\n * @param {Object} source The object of functions to add.\r\n * @param {Object} [options={}] The options object.\r\n * @param {boolean} [options.chain=true] Specify whether mixins are chainable.\r\n * @returns {Function|Object} Returns `object`.\r\n * @example\r\n *\r\n * function vowels(string) {\r\n * return _.filter(string, function(v) {\r\n * return /[aeiou]/i.test(v);\r\n * });\r\n * }\r\n *\r\n * _.mixin({ 'vowels': vowels });\r\n * _.vowels('fred');\r\n * // => ['e']\r\n *\r\n * _('fred').vowels().value();\r\n * // => ['e']\r\n *\r\n * _.mixin({ 'vowels': vowels }, { 'chain': false });\r\n * _('fred').vowels();\r\n * // => ['e']\r\n */\r\n function mixin(object, source, options) {\r\n var props = keys(source),\r\n methodNames = baseFunctions(source, props);\r\n\r\n if (options == null &&\r\n !(isObject(source) && (methodNames.length || !props.length))) {\r\n options = source;\r\n source = object;\r\n object = this;\r\n methodNames = baseFunctions(source, keys(source));\r\n }\r\n var chain = !(isObject(options) && 'chain' in options) || !!options.chain,\r\n isFunc = isFunction(object);\r\n\r\n arrayEach(methodNames, function(methodName) {\r\n var func = source[methodName];\r\n object[methodName] = func;\r\n if (isFunc) {\r\n object.prototype[methodName] = function() {\r\n var chainAll = this.__chain__;\r\n if (chain || chainAll) {\r\n var result = object(this.__wrapped__),\r\n actions = result.__actions__ = copyArray(this.__actions__);\r\n\r\n actions.push({ 'func': func, 'args': arguments, 'thisArg': object });\r\n result.__chain__ = chainAll;\r\n return result;\r\n }\r\n return func.apply(object, arrayPush([this.value()], arguments));\r\n };\r\n }\r\n });\r\n\r\n return object;\r\n }\r\n\r\n /**\r\n * Reverts the `_` variable to its previous value and returns a reference to\r\n * the `lodash` function.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Util\r\n * @returns {Function} Returns the `lodash` function.\r\n * @example\r\n *\r\n * var lodash = _.noConflict();\r\n */\r\n function noConflict() {\r\n if (root._ === this) {\r\n root._ = oldDash;\r\n }\r\n return this;\r\n }\r\n\r\n /**\r\n * This method returns `undefined`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 2.3.0\r\n * @category Util\r\n * @example\r\n *\r\n * _.times(2, _.noop);\r\n * // => [undefined, undefined]\r\n */\r\n function noop() {\r\n // No operation performed.\r\n }\r\n\r\n /**\r\n * Creates a function that returns the value at `path` of a given object.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 2.4.0\r\n * @category Util\r\n * @param {Array|string} path The path of the property to get.\r\n * @returns {Function} Returns the new accessor function.\r\n * @example\r\n *\r\n * var objects = [\r\n * { 'a': { 'b': 2 } },\r\n * { 'a': { 'b': 1 } }\r\n * ];\r\n *\r\n * _.map(objects, _.property('a.b'));\r\n * // => [2, 1]\r\n *\r\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\r\n * // => [1, 2]\r\n */\r\n function property(path) {\r\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\r\n }\r\n\r\n /**\r\n * Creates an array of numbers (positive and/or negative) progressing from\r\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\r\n * `start` is specified without an `end` or `step`. If `end` is not specified,\r\n * it's set to `start` with `start` then set to `0`.\r\n *\r\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\r\n * floating-point values which can produce unexpected results.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Util\r\n * @param {number} [start=0] The start of the range.\r\n * @param {number} end The end of the range.\r\n * @param {number} [step=1] The value to increment or decrement by.\r\n * @returns {Array} Returns the range of numbers.\r\n * @see _.inRange, _.rangeRight\r\n * @example\r\n *\r\n * _.range(4);\r\n * // => [0, 1, 2, 3]\r\n *\r\n * _.range(-4);\r\n * // => [0, -1, -2, -3]\r\n *\r\n * _.range(1, 5);\r\n * // => [1, 2, 3, 4]\r\n *\r\n * _.range(0, 20, 5);\r\n * // => [0, 5, 10, 15]\r\n *\r\n * _.range(0, -4, -1);\r\n * // => [0, -1, -2, -3]\r\n *\r\n * _.range(1, 4, 0);\r\n * // => [1, 1, 1]\r\n *\r\n * _.range(0);\r\n * // => []\r\n */\r\n var range = createRange();\r\n\r\n /**\r\n * This method returns a new empty array.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.13.0\r\n * @category Util\r\n * @returns {Array} Returns the new empty array.\r\n * @example\r\n *\r\n * var arrays = _.times(2, _.stubArray);\r\n *\r\n * console.log(arrays);\r\n * // => [[], []]\r\n *\r\n * console.log(arrays[0] === arrays[1]);\r\n * // => false\r\n */\r\n function stubArray() {\r\n return [];\r\n }\r\n\r\n /**\r\n * This method returns `false`.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @since 4.13.0\r\n * @category Util\r\n * @returns {boolean} Returns `false`.\r\n * @example\r\n *\r\n * _.times(2, _.stubFalse);\r\n * // => [false, false]\r\n */\r\n function stubFalse() {\r\n return false;\r\n }\r\n\r\n /**\r\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Util\r\n * @param {string} [prefix=''] The value to prefix the ID with.\r\n * @returns {string} Returns the unique ID.\r\n * @example\r\n *\r\n * _.uniqueId('contact_');\r\n * // => 'contact_104'\r\n *\r\n * _.uniqueId();\r\n * // => '105'\r\n */\r\n function uniqueId(prefix) {\r\n var id = ++idCounter;\r\n return toString(prefix) + id;\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * Computes the maximum value of `array`. If `array` is empty or falsey,\r\n * `undefined` is returned.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Math\r\n * @param {Array} array The array to iterate over.\r\n * @returns {*} Returns the maximum value.\r\n * @example\r\n *\r\n * _.max([4, 2, 8, 6]);\r\n * // => 8\r\n *\r\n * _.max([]);\r\n * // => undefined\r\n */\r\n function max(array) {\r\n return (array && array.length)\r\n ? baseExtremum(array, identity, baseGt)\r\n : undefined;\r\n }\r\n\r\n /**\r\n * Computes the minimum value of `array`. If `array` is empty or falsey,\r\n * `undefined` is returned.\r\n *\r\n * @static\r\n * @since 0.1.0\r\n * @memberOf _\r\n * @category Math\r\n * @param {Array} array The array to iterate over.\r\n * @returns {*} Returns the minimum value.\r\n * @example\r\n *\r\n * _.min([4, 2, 8, 6]);\r\n * // => 2\r\n *\r\n * _.min([]);\r\n * // => undefined\r\n */\r\n function min(array) {\r\n return (array && array.length)\r\n ? baseExtremum(array, identity, baseLt)\r\n : undefined;\r\n }\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n // Add methods that return wrapped values in chain sequences.\r\n lodash.after = after;\r\n lodash.assignIn = assignIn;\r\n lodash.before = before;\r\n lodash.bind = bind;\r\n lodash.chain = chain;\r\n lodash.compact = compact;\r\n lodash.concat = concat;\r\n lodash.countBy = countBy;\r\n lodash.create = create;\r\n lodash.debounce = debounce;\r\n lodash.defaults = defaults;\r\n lodash.defaultsDeep = defaultsDeep;\r\n lodash.defer = defer;\r\n lodash.delay = delay;\r\n lodash.difference = difference;\r\n lodash.drop = drop;\r\n lodash.filter = filter;\r\n lodash.flatten = flatten;\r\n lodash.flattenDeep = flattenDeep;\r\n lodash.groupBy = groupBy;\r\n lodash.initial = initial;\r\n lodash.intersection = intersection;\r\n lodash.invert = invert;\r\n lodash.invertBy = invertBy;\r\n lodash.iteratee = iteratee;\r\n lodash.keys = keys;\r\n lodash.map = map;\r\n lodash.matches = matches;\r\n lodash.merge = merge;\r\n lodash.mixin = mixin;\r\n lodash.negate = negate;\r\n lodash.omit = omit;\r\n lodash.omitBy = omitBy;\r\n lodash.once = once;\r\n lodash.pick = pick;\r\n lodash.range = range;\r\n lodash.reject = reject;\r\n lodash.rest = rest;\r\n lodash.set = set;\r\n lodash.slice = slice;\r\n lodash.sortBy = sortBy;\r\n lodash.take = take;\r\n lodash.takeRight = takeRight;\r\n lodash.tap = tap;\r\n lodash.throttle = throttle;\r\n lodash.thru = thru;\r\n lodash.toArray = toArray;\r\n lodash.union = union;\r\n lodash.uniq = uniq;\r\n lodash.uniqBy = uniqBy;\r\n lodash.unzip = unzip;\r\n lodash.values = values;\r\n lodash.without = without;\r\n lodash.zip = zip;\r\n lodash.zipObject = zipObject;\r\n\r\n // Add aliases.\r\n lodash.extend = assignIn;\r\n\r\n // Add methods to `lodash.prototype`.\r\n mixin(lodash, lodash);\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n // Add methods that return unwrapped values in chain sequences.\r\n lodash.clamp = clamp;\r\n lodash.clone = clone;\r\n lodash.cloneDeep = cloneDeep;\r\n lodash.escape = escape;\r\n lodash.every = every;\r\n lodash.find = find;\r\n lodash.findIndex = findIndex;\r\n lodash.findKey = findKey;\r\n lodash.findLastIndex = findLastIndex;\r\n lodash.findLastKey = findLastKey;\r\n lodash.forEach = forEach;\r\n lodash.get = get;\r\n lodash.has = has;\r\n lodash.head = head;\r\n lodash.identity = identity;\r\n lodash.indexOf = indexOf;\r\n lodash.isArguments = isArguments;\r\n lodash.isArray = isArray;\r\n lodash.isArrayLike = isArrayLike;\r\n lodash.isBoolean = isBoolean;\r\n lodash.isDate = isDate;\r\n lodash.isEmpty = isEmpty;\r\n lodash.isEqual = isEqual;\r\n lodash.isFinite = isFinite;\r\n lodash.isFunction = isFunction;\r\n lodash.isNaN = isNaN;\r\n lodash.isNull = isNull;\r\n lodash.isNumber = isNumber;\r\n lodash.isObject = isObject;\r\n lodash.isPlainObject = isPlainObject;\r\n lodash.isRegExp = isRegExp;\r\n lodash.isString = isString;\r\n lodash.isUndefined = isUndefined;\r\n lodash.last = last;\r\n lodash.max = max;\r\n lodash.min = min;\r\n lodash.noConflict = noConflict;\r\n lodash.noop = noop;\r\n lodash.random = random;\r\n lodash.reduce = reduce;\r\n lodash.result = result;\r\n lodash.size = size;\r\n lodash.some = some;\r\n lodash.trim = trim;\r\n lodash.uniqueId = uniqueId;\r\n\r\n // Add aliases.\r\n lodash.each = forEach;\r\n lodash.first = head;\r\n\r\n mixin(lodash, (function() {\r\n var source = {};\r\n baseForOwn(lodash, function(func, methodName) {\r\n if (!hasOwnProperty.call(lodash.prototype, methodName)) {\r\n source[methodName] = func;\r\n }\r\n });\r\n return source;\r\n }()), { 'chain': false });\r\n\r\n /*------------------------------------------------------------------------*/\r\n\r\n /**\r\n * The semantic version number.\r\n *\r\n * @static\r\n * @memberOf _\r\n * @type {string}\r\n */\r\n lodash.VERSION = VERSION;\r\n\r\n // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\r\n arrayEach(['drop', 'take'], function(methodName, index) {\r\n LazyWrapper.prototype[methodName] = function(n) {\r\n n = n === undefined ? 1 : nativeMax(toInteger(n), 0);\r\n\r\n var result = (this.__filtered__ && !index)\r\n ? new LazyWrapper(this)\r\n : this.clone();\r\n\r\n if (result.__filtered__) {\r\n result.__takeCount__ = nativeMin(n, result.__takeCount__);\r\n } else {\r\n result.__views__.push({\r\n 'size': nativeMin(n, MAX_ARRAY_LENGTH),\r\n 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')\r\n });\r\n }\r\n return result;\r\n };\r\n\r\n LazyWrapper.prototype[methodName + 'Right'] = function(n) {\r\n return this.reverse()[methodName](n).reverse();\r\n };\r\n });\r\n\r\n // Add `LazyWrapper` methods that accept an `iteratee` value.\r\n arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\r\n var type = index + 1,\r\n isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;\r\n\r\n LazyWrapper.prototype[methodName] = function(iteratee) {\r\n var result = this.clone();\r\n result.__iteratees__.push({\r\n 'iteratee': getIteratee(iteratee, 3),\r\n 'type': type\r\n });\r\n result.__filtered__ = result.__filtered__ || isFilter;\r\n return result;\r\n };\r\n });\r\n\r\n // Add `LazyWrapper` methods for `_.head` and `_.last`.\r\n arrayEach(['head', 'last'], function(methodName, index) {\r\n var takeName = 'take' + (index ? 'Right' : '');\r\n\r\n LazyWrapper.prototype[methodName] = function() {\r\n return this[takeName](1).value()[0];\r\n };\r\n });\r\n\r\n // Add `LazyWrapper` methods for `_.initial` and `_.tail`.\r\n arrayEach(['initial', 'tail'], function(methodName, index) {\r\n var dropName = 'drop' + (index ? '' : 'Right');\r\n\r\n LazyWrapper.prototype[methodName] = function() {\r\n return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);\r\n };\r\n });\r\n\r\n LazyWrapper.prototype.compact = function() {\r\n return this.filter(identity);\r\n };\r\n\r\n LazyWrapper.prototype.find = function(predicate) {\r\n return this.filter(predicate).head();\r\n };\r\n\r\n LazyWrapper.prototype.findLast = function(predicate) {\r\n return this.reverse().find(predicate);\r\n };\r\n\r\n LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {\r\n if (typeof path == 'function') {\r\n return new LazyWrapper(this);\r\n }\r\n return this.map(function(value) {\r\n return baseInvoke(value, path, args);\r\n });\r\n });\r\n\r\n LazyWrapper.prototype.reject = function(predicate) {\r\n return this.filter(negate(getIteratee(predicate)));\r\n };\r\n\r\n LazyWrapper.prototype.slice = function(start, end) {\r\n start = toInteger(start);\r\n\r\n var result = this;\r\n if (result.__filtered__ && (start > 0 || end < 0)) {\r\n return new LazyWrapper(result);\r\n }\r\n if (start < 0) {\r\n result = result.takeRight(-start);\r\n } else if (start) {\r\n result = result.drop(start);\r\n }\r\n if (end !== undefined) {\r\n end = toInteger(end);\r\n result = end < 0 ? result.dropRight(-end) : result.take(end - start);\r\n }\r\n return result;\r\n };\r\n\r\n LazyWrapper.prototype.takeRightWhile = function(predicate) {\r\n return this.reverse().takeWhile(predicate).reverse();\r\n };\r\n\r\n LazyWrapper.prototype.toArray = function() {\r\n return this.take(MAX_ARRAY_LENGTH);\r\n };\r\n\r\n // Add `LazyWrapper` methods to `lodash.prototype`.\r\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\r\n var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),\r\n isTaker = /^(?:head|last)$/.test(methodName),\r\n lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],\r\n retUnwrapped = isTaker || /^find/.test(methodName);\r\n\r\n if (!lodashFunc) {\r\n return;\r\n }\r\n lodash.prototype[methodName] = function() {\r\n var value = this.__wrapped__,\r\n args = isTaker ? [1] : arguments,\r\n isLazy = value instanceof LazyWrapper,\r\n iteratee = args[0],\r\n useLazy = isLazy || isArray(value);\r\n\r\n var interceptor = function(value) {\r\n var result = lodashFunc.apply(lodash, arrayPush([value], args));\r\n return (isTaker && chainAll) ? result[0] : result;\r\n };\r\n\r\n if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {\r\n // Avoid lazy use if the iteratee has a \"length\" value other than `1`.\r\n isLazy = useLazy = false;\r\n }\r\n var chainAll = this.__chain__,\r\n isHybrid = !!this.__actions__.length,\r\n isUnwrapped = retUnwrapped && !chainAll,\r\n onlyLazy = isLazy && !isHybrid;\r\n\r\n if (!retUnwrapped && useLazy) {\r\n value = onlyLazy ? value : new LazyWrapper(this);\r\n var result = func.apply(value, args);\r\n result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });\r\n return new LodashWrapper(result, chainAll);\r\n }\r\n if (isUnwrapped && onlyLazy) {\r\n return func.apply(this, args);\r\n }\r\n result = this.thru(interceptor);\r\n return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;\r\n };\r\n });\r\n\r\n // Add `Array` methods to `lodash.prototype`.\r\n arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\r\n var func = arrayProto[methodName],\r\n chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\r\n retUnwrapped = /^(?:pop|shift)$/.test(methodName);\r\n\r\n lodash.prototype[methodName] = function() {\r\n var args = arguments;\r\n if (retUnwrapped && !this.__chain__) {\r\n var value = this.value();\r\n return func.apply(isArray(value) ? value : [], args);\r\n }\r\n return this[chainName](function(value) {\r\n return func.apply(isArray(value) ? value : [], args);\r\n });\r\n };\r\n });\r\n\r\n // Map minified method names to their real names.\r\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\r\n var lodashFunc = lodash[methodName];\r\n if (lodashFunc) {\r\n var key = (lodashFunc.name + ''),\r\n names = realNames[key] || (realNames[key] = []);\r\n\r\n names.push({ 'name': methodName, 'func': lodashFunc });\r\n }\r\n });\r\n\r\n realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{\r\n 'name': 'wrapper',\r\n 'func': undefined\r\n }];\r\n\r\n // Add methods to `LazyWrapper`.\r\n LazyWrapper.prototype.clone = lazyClone;\r\n LazyWrapper.prototype.reverse = lazyReverse;\r\n LazyWrapper.prototype.value = lazyValue;\r\n\r\n // Add lazy aliases.\r\n lodash.prototype.first = lodash.prototype.head;\r\n\r\n if (symIterator) {\r\n lodash.prototype[symIterator] = wrapperToIterator;\r\n }\r\n\r\n /*--------------------------------------------------------------------------*/\r\n\r\n // Some AMD build optimizers, like r.js, check for condition patterns like:\r\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\r\n // Expose Lodash on the global object to prevent errors when Lodash is\r\n // loaded by a script tag in the presence of an AMD loader.\r\n // See http://requirejs.org/docs/errors.html#mismatch for more details.\r\n // Use `_.noConflict` to remove Lodash from the global object.\r\n root._ = lodash;\r\n\r\n // Define as an anonymous module so, through path mapping, it can be\r\n // referenced as the \"underscore\" module.\r\n define(function() {\r\n return lodash;\r\n });\r\n }\r\n // Check for `exports` after `define` in case a build optimizer adds it.\r\n else if (freeModule) {\r\n // Export for Node.js.\r\n (freeModule.exports = lodash)._ = lodash;\r\n // Export for CommonJS support.\r\n freeExports._ = lodash;\r\n }\r\n else {\r\n // Export to the global object.\r\n root._ = lodash;\r\n }\r\n}.call(this));\r\n"},function(e,t,n){(function(e,t){function n(){u=!1;for(var e=c.slice(0),t=c.length=0;t<e.length;t++)e[t]()}var r,i,a,o,s,c,u,l,d,p,f;_global=undefined,_global="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:this,_global.BI||(_global.BI={}),d=function(r,i){return function(e,t,n){return r.call(i,t,e,n)}},p=function(e){return function(){return _[e].apply(_,arguments)}},f=function(t){return function(){var e=Array.prototype.slice.call(arguments,0);return e[1]=_.isFunction(e[1])?d(e[1],e[2]):e[1],_[t].apply(_,e)}},_.extend(BI,{assert:function(e,t){if(this.isFunction(t)){if(t(e))return!0;throw new Error(e+" error")}if(this.isArray(t)||(t=[t]),!this.deepContains(t,e))throw new Error(e+" error");return!0},warn:function(e){console.warn(e)},UUID:function(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",n=0;n<16;n++){t+=e[parseInt(e.length*Math.random(),10)]}return t},isWidget:function(e){return e instanceof BI.Widget||BI.View&&e instanceof BI.View},createWidgets:function(e,n,t){if(!BI.isArray(e))throw new Error("cannot create Widgets");return n=BI.isWidget(n)?{}:n||{},BI.map(BI.flatten(e),function(e,t){return BI.createWidget(t,BI.deepClone(n))})},createItems:function(e,n,r){return n=BI.isArray(n)?n:BI.makeArray(BI.flatten(e).length,n||{}),r=BI.isArray(r)?r:BI.makeArray(BI.flatten(e).length,r||{}),BI.map(e,function(e,t){return BI.isArray(t)?BI.createItems(t,n,r):t instanceof BI.Widget?BI.extend({},n.shift(),r.shift(),{type:null,el:t}):n[0]instanceof BI.Widget?(r.shift(),BI.extend({},t,{el:n.shift()})):t.el instanceof BI.Widget||BI.View&&t.el instanceof BI.View?(n.shift(),BI.extend({},r.shift(),{type:null},t)):t.el?BI.extend({},r.shift(),t,{el:BI.extend({},n.shift(),t.el)}):BI.extend({},r.shift(),{el:BI.extend({},n.shift(),t)})})},packageItems:function(e,n){for(var r=n.length-1;0<=r;r--)e=BI.map(e,function(e,t){return BI.extend({},n[r],{items:[BI.extend({},n[r].el,{el:t})]})});return e},formatEL:function(e){return e&&!e.type&&e.el?e:{el:e}},stripEL:function(e){return e.type&&e||e.el||e},trans2Element:function(e){return BI.map(e,function(e,t){return t.element})}}),_.each(["where","findWhere","invoke","pluck","shuffle","sample","toArray","size"],function(e){BI[e]=p(e)}),_.each(["get","set","each","map","reduce","reduceRight","find","filter","reject","every","all","some","any","max","min","sortBy","groupBy","indexBy","countBy","partition","clamp"],function(e){BI[e]=f("any"===e?"some":e)}),_.extend(BI,{count:function(e,t,n){var r;if(n)for(r=e;r<t;r++)n(r);return t-e},inverse:function(e,t,n){return BI.count(t,e,n)},firstKey:function(e){var n=r;return BI.any(e,function(e,t){return n=e,!0}),n},lastKey:function(e){var n=r;return BI.each(e,function(e,t){return n=e,!0}),n},firstObject:function(e){var n=r;return BI.any(e,function(e,t){return n=t,!0}),n},lastObject:function(e){var n=r;return BI.each(e,function(e,t){return n=t,!0}),n},concat:function(e,t){return BI.isKey(e)?BI.map([].slice.apply(arguments),function(e,t){return t}).join(""):BI.isArray(e)?_.concat.apply([],arguments):BI.isObject(e)?_.extend.apply({},arguments):void 0},backEach:function(e,t,n){t=BI.iteratee(t,n);for(var r=e.length-1;0<=r;r--)t(r,e[r],e);return!1},backAny:function(e,t,n){t=BI.iteratee(t,n);for(var r=e.length-1;0<=r;r--)if(t(r,e[r],e))return!0;return!1},backEvery:function(e,t,n){t=BI.iteratee(t,n);for(var r=e.length-1;0<=r;r--)if(!t(r,e[r],e))return!1;return!0},backFindKey:function(e,t,n){t=BI.iteratee(t,n);for(var r,i=_.keys(e),a=i.length-1;0<=a;a--)if(t(e[r=i[a]],r,e))return r},backFind:function(e,t,n){var r=BI.isArray(e)?BI.findLastIndex(e,t,n):BI.backFindKey(e,t,n);if(void 0!==r&&-1!==r)return e[r]},remove:function(n,r,i){var e,a=BI.isFunction(r);if(r=a||BI.isArray(r)?r:[r],BI.isArray(n))for(e=0;e<n.length;e++)(a&&!0===r.apply(i,[e,n[e]])||!a&&BI.contains(r,n[e]))&&n.splice(e--,1);else BI.each(n,function(e,t){(a&&!0===r.apply(i,[e,n[e]])||!a&&BI.contains(r,n[e]))&&delete n[e]})},removeAt:function(e,t){t=BI.isArray(t)?t:[t];for(var n=BI.isArray(e),r=0;r<t.length;r++)n?e[t[r]]="$deleteIndex":delete e[t[r]];n&&BI.remove(e,"$deleteIndex")},string2Array:function(e){return e.split("&-&")},array2String:function(e){return e.join("&-&")},abc2Int:function(e){for(var t=0,n=0,r=(e=e.toUpperCase()).length;n<r;++n)if((t=e.charAt(n).charCodeAt(0)-"A".charCodeAt(0)+26*t+1)>(2147483646-e.charAt(n).charCodeAt(0)+"A".charCodeAt(0))/26)return 0;return t},int2Abc:function(e){var t=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],n=e,r="";if(0===e)return"";for(;0!==n;){var i=n%26;0===i&&(i=26),r=t[i-1]+r,n=(n-i)/26}return r}}),_.each(["first","initial","last","rest","compact","flatten","without","union","intersection","difference","zip","unzip","object","indexOf","lastIndexOf","sortedIndex","range","take","takeRight","uniqBy"],function(e){BI[e]=p(e)}),_.each(["findIndex","findLastIndex"],function(e){BI[e]=f(e)}),_.extend(BI,{makeArray:function(e,t){for(var n=[],r=0;r<e;r++)BI.isNull(t)?n.push(r):n.push(BI.deepClone(t));return n},makeObject:function(e,t){for(var n={},r=0;r<e.length;r++)BI.isNull(t)?n[e[r]]=e[r]:BI.isFunction(t)?n[e[r]]=t(r,e[r]):n[e[r]]=BI.deepClone(t);return n},makeArrayByArray:function(e,t){var n=[];if(!e)return n;for(var r=0,i=e.length;r<i;r++)BI.isArray(e[r])?n.push(arguments.callee(e[r],t)):n.push(BI.deepClone(t));return n},uniq:function(e,t,n,r){return null==e?[]:(_.isBoolean(t)||(r=n,n=t,t=!1),n=n&&d(n,r),_.uniq.call(_,e,t,n,r))}}),_.each(["keys","allKeys","values","pairs","invert","create","functions","extend","extendOwn","defaults","clone","property","propertyOf","matcher","isEqual","isMatch","isEmpty","isElement","isNumber","isString","isArray","isObject","isPlainObject","isArguments","isFunction","isFinite","isBoolean","isDate","isRegExp","isError","isNaN","isUndefined","zipObject","cloneDeep"],function(e){BI[e]=p(e)}),_.each(["mapObject","findKey","pick","omit","tap"],function(e){BI[e]=f(e)}),_.extend(BI,{inherit:function(e,t,n){"object"==typeof t&&(n=t,t=e,e=function(){return t.apply(this,arguments)});var r=function(){},i=t.prototype;return r.prototype=i,e.prototype=new r,e.superclass=i,_.extend(e.prototype,n,{superclass:t}),e},init:function(){for(;BI.prepares&&0<BI.prepares.length;)BI.prepares.shift()();for(;_global.___fineuiExposedFunction&&0<_global.___fineuiExposedFunction.length;)_global.___fineuiExposedFunction.shift()();BI.initialized=!0},has:function(n,e){return BI.isArray(e)?0!==e.length&&BI.every(e,function(e,t){return _.has(n,t)}):_.has.apply(_,arguments)},freeze:function(e){return Object.freeze&&BI.isObject(e)?Object.freeze(e):e},isKey:function(e){return BI.isNumber(e)||BI.isString(e)&&0<e.length},isCapitalEqual:function(e,t){return e=BI.isNull(e)?e:(""+e).toLowerCase(),t=BI.isNull(t)?t:(""+t).toLowerCase(),BI.isEqual(e,t)},isWidthOrHeight:function(e){return"number"==typeof e?0<=e:"string"==typeof e?/^\d{1,3}%$/.exec(e)||"auto"==e||/^\d+px$/.exec(e):void 0},isNotNull:function(e){return!BI.isNull(e)},isNull:function(e){return null==e},isEmptyArray:function(e){return BI.isArray(e)&&BI.isEmpty(e)},isNotEmptyArray:function(e){return BI.isArray(e)&&!BI.isEmpty(e)},isEmptyObject:function(e){return BI.isEqual(e,{})},isNotEmptyObject:function(e){return BI.isPlainObject(e)&&!BI.isEmptyObject(e)},isEmptyString:function(e){return BI.isString(e)&&0===e.length},isNotEmptyString:function(e){return BI.isString(e)&&!BI.isEmptyString(e)},isWindow:function(e){return null!=e&&e==e.window}}),_.extend(BI,{deepClone:_.cloneDeep,deepExtend:_.merge,isDeepMatch:function(e,t){var n=BI.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(!(BI.isEqual(t[o],i[o])&&o in i))return!1}return!0},contains:function(e,t,n){return _.isArrayLike(e)||(e=_.values(e)),0<=_.indexOf(e,t,"number"==typeof n&&n)},deepContains:function(e,n){return BI.isObject(n)?BI.any(e,function(e,t){if(BI.isEqual(t,n))return!0}):BI.contains(e,n)},deepIndexOf:function(e,t){for(var n=0;n<e.length;n++)if(BI.isEqual(t,e[n]))return n;return-1},deepRemove:function(n,r){var e,i=!1;if(BI.isArray(n))for(e=0;e<n.length;e++)BI.isEqual(r,n[e])&&(n.splice(e--,1),i=!0);else BI.each(n,function(e,t){BI.isEqual(r,n[e])&&(delete n[e],i=!0)});return i},deepWithout:function(n,r){if(BI.isArray(n)){for(var i=[],e=0;e<n.length;e++)BI.isEqual(r,n[e])||i.push(n[e]);return i}i={};return BI.each(n,function(e,t){BI.isEqual(r,n[e])||(i[e]=t)}),i},deepUnique:function(e){var n=[];return BI.each(e,function(e,t){BI.deepContains(n,t)||n.push(t)}),n},deepDiff:function(e,t){e=e||{},t=t||{};var n=[],r=[];for(var i in e)this.has(e,i)&&(this.isEqual(e[i],t[i])||n.push(i),r.push(i));for(var i in t)this.has(t,i)&&!BI.contains(r,i)&&n.push(i);return n}}),_.each(["uniqueId","result","chain","iteratee","escape","unescape","before","after"],function(e){BI[e]=function(){return _[e].apply(_,arguments)}}),_.each(["bind","once","partial","debounce","throttle","delay","defer","wrap"],function(e){BI[e]=function(){return _[e].apply(_,arguments)}}),_.extend(BI,{nextTick:(u=!(c=[]),l=void 0,l="undefined"!=typeof Promise?(i=Promise.resolve(),function l(){i.then(n)}):"undefined"!=typeof MutationObserver?(a=1,o=new MutationObserver(n),s=document.createTextNode(String(a)),o.observe(s,{characterData:!0}),function l(){a=(a+1)%2,s.data=String(a)}):void 0!==t?function l(){t(n)}:function l(){setTimeout(n,0)},function(t){var n=void 0,r=[].slice.call(arguments,1);if(c.push(function(){if(t)try{t.apply(null,r)}catch(e){console.error(e)}else n&&n.apply(null,r)}),u||(u=!0,l()),!t&&"undefined"!=typeof Promise)return new Promise(function(e,t){n=e})})}),_.each(["random"],function(e){BI[e]=p(e)}),_.extend(BI,{getTime:function(){return _global.performance&&_global.performance.now?_global.performance.now():_global.performance&&_global.performance.webkitNow?_global.performance.webkitNow():Date.now?Date.now():BI.getDate().getTime()},parseInt:function(e){var t=10;/^0x/g.test(e)&&(t=16);try{return parseInt(e,t)}catch(n){throw new Error(e+"parse int error")}},parseSafeInt:function(e){var t=9007199254740991;return e?this.clamp(this.parseInt(e),-t,t):0===e?e:0},parseFloat:function(e){try{return parseFloat(e)}catch(t){throw new Error(e+"parse float error")}},isNaturalNumber:function(e){return!!/^\d+$/.test(e)},isPositiveInteger:function(e){return!!/^\+?[1-9][0-9]*$/.test(e)},isNegativeInteger:function(e){return!!/^\-[1-9][0-9]*$/.test(e)},isInteger:function(e){return!!/^\-?\d+$/.test(e)},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isFloat:function(e){return!!/^([+-]?)\d*\.\d+$/.test(e)},isOdd:function(e){return!!BI.isInteger(e)&&1==(1&e)},isEven:function(e){return!!BI.isInteger(e)&&0==(1&e)},sum:function(e,n,r){var i=0;return BI.each(e,function(e,t){i+=n?Number(n.apply(r,[e,t])):Number(t)}),i},average:function(e,t,n){return BI.sum(e,t,n)/e.length}}),_.extend(BI,{trim:function(){return _.trim.apply(_,arguments)},toUpperCase:function(e){return(e+"").toLocaleUpperCase()},toLowerCase:function(e){return(e+"").toLocaleLowerCase()},isEndWithBlank:function(e){return/(\s|\u00A0)$/.test(e)},isLiteral:function(e){return/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/.test(e)},stripQuotes:function(e){var t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)},camelize:function(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})},hyphenate:function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},isNotEmptyString:function(e){return BI.isString(e)&&!BI.isEmpty(e)},isEmptyString:function(e){return BI.isString(e)&&BI.isEmpty(e)},encrypt:function(e,t,n){switch(e){case BI.CRYPT_TYPE.AES:default:return BI.aesEncrypt(t,n)}},decrypt:function(e,t,n){switch(e){case BI.CRYPT_TYPE.AES:default:return BI.aesDecrypt(t,n)}},escape:function(e){return e.replace(/('|\\)/g,"\\$1")},leftPad:function(e,t,n){var r=String(e);for(n=n||" ";r.length<t;)r=n+r;return r.toString()},format:function(e){var n=Array.prototype.slice.call(arguments,1);return e.replace(/\{(\d+)\}/g,function(e,t){return n[t]})}}),_.extend(BI,{isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},checkDateVoid:function(e,t,n,r,i){var a=[];return e|=0,t|=0,n|=0,r=BI.isString(r)?r.match(/\d+/g):r,i=BI.isString(i)?i.match(/\d+/g):i,e<r[0]?a=["y"]:e>i[0]?a=["y",1]:e>=r[0]&&e<=i[0]&&(e==r[0]&&(t<r[1]?a=["m"]:t==r[1]&&n<r[2]&&(a=["d"])),e==i[0]&&(t>i[1]?a=["m",1]:t==i[1]&&n>i[2]&&(a=["d",1]))),a},checkDateLegal:function(e){var t=e.match(/\d+/g),n=0|t[0],r=0|t[1],i=0|t[2];if(t.length<=1)return!0;if(t.length<=2)return 1<=r&&r<=12;var a=BI.Date._MD.slice(0);return a[1]=BI.isLeapYear(n)?29:28,1<=r&&r<=12&&i<=a[r-1]},parseDateTime:function(e,t){var n=BI.getDate(),r=0,i=0,a=1,o=e.split(/\W+/);"%y%x"!=t.toLowerCase()&&"%y%x%d"!=t.toLowerCase()||(o[0]=e.substring(0,4),o[1]=e.substring(4,6),o[2]=e.substring(6,8));for(var s=t.match(/%./g),c=0,u=0,l=0,d=0,p=0,c=0;c<o.length;++c)switch(s[c]){case"%d":case"%e":a=parseInt(o[c],10);break;case"%X":case"%x":i=parseInt(o[c],10)-1;break;case"%Y":case"%y":(r=parseInt(o[c],10))<100&&(r+=29<r?1900:2e3);break;case"%b":case"%B":for(u=0;u<12;++u)if(BI.Date._MN[u].substr(0,o[c].length).toLowerCase()==o[c].toLowerCase()){i=u;break}break;case"%H":case"%I":case"%k":case"%l":l=parseInt(o[c],10);break;case"%P":case"%p":/pm/i.test(o[c])&&l<12?l+=12:/am/i.test(o[c])&&12<=l&&(l-=12);break;case"%M":d=parseInt(o[c],10);break;case"%S":p=parseInt(o[c],10)}if(isNaN(r)&&(r=n.getFullYear()),isNaN(i)&&(i=n.getMonth()),isNaN(a)&&(a=n.getDate()),isNaN(l)&&(l=n.getHours()),isNaN(d)&&(d=n.getMinutes()),isNaN(p)&&(p=n.getSeconds()),0!=r)return BI.getDate(r,i,a,l,d,p);for(i=-1,c=a=r=0;c<o.length;++c)if(-1!=o[c].search(/[a-zA-Z]+/)){for(var f=-1,u=0;u<12;++u)if(BI.Date._MN[u].substr(0,o[c].length).toLowerCase()==o[c].toLowerCase()){f=u;break}-1!=f&&(-1!=i&&(a=i+1),i=f)}else parseInt(o[c],10)<=12&&-1==i?i=o[c]-1:31<parseInt(o[c],10)&&0==r?(r=parseInt(o[c],10))<100&&(r+=29<r?1900:2e3):0==a&&(a=o[c]);return 0==r&&(r=n.getFullYear()),-1===i&&(i=n.getMonth()),-1!=i&&0!=a?BI.getDate(r,i,a,l,d,p):n},getDate:function(){var e,t=arguments;switch(arguments.length){case 0:e=new Date;break;case 1:e=new Date(t[0]);break;case 2:e=new Date(t[0],t[1]);break;case 3:e=new Date(t[0],t[1],t[2]);break;case 4:e=new Date(t[0],t[1],t[2],t[3]);break;case 5:e=new Date(t[0],t[1],t[2],t[3],t[4]);break;case 6:e=new Date(t[0],t[1],t[2],t[3],t[4],t[5]);break;case 7:e=new Date(t[0],t[1],t[2],t[3],t[4],t[5],t[6]);break;default:e=new Date}if(BI.isNotNull(BI.timeZone)&&(0===arguments.length||1===arguments.length&&BI.isNumber(arguments[0]))){var n=e.getTime(),r=6e4*e.getTimezoneOffset();return new Date(n+r+BI.timeZone)}return e},getTime:function(){var e,t=arguments;switch(arguments.length){case 0:e=new Date;break;case 1:e=new Date(t[0]);break;case 2:e=new Date(t[0],t[1]);break;case 3:e=new Date(t[0],t[1],t[2]);break;case 4:e=new Date(t[0],t[1],t[2],t[3]);break;case 5:e=new Date(t[0],t[1],t[2],t[3],t[4]);break;case 6:e=new Date(t[0],t[1],t[2],t[3],t[4],t[5]);break;case 7:e=new Date(t[0],t[1],t[2],t[3],t[4],t[5],t[6]);break;default:e=new Date}return BI.isNotNull(BI.timeZone)?e.getTime()-BI.timeZone-6e4*(new Date).getTimezoneOffset():e.getTime()}})}).call(this,n(10),n(82).setImmediate)},function(e,t,n){"use strict";(function(e,t){function n(e){delete s[e]}function r(e){if(c)setTimeout(r,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(a,n)}}(t)}finally{n(e),c=!1}}}}var i,a,o,s,c,u,l,d,p,f,_,h;(i="undefined"==typeof self?void 0===e?void 0:e:self).setImmediate||(o=1,c=!(s={}),u=i.document,h=(h=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&h.setTimeout?h:i,l="[object process]"==={}.toString.call(i.process)?function l(e){t.nextTick(function(){r(e)})}:function(){if(i.postMessage&&!i.importScripts){var e=!0,t=i.onmessage;return i.onmessage=function(){e=!1},i.postMessage("","*"),i.onmessage=t,e}}()?(f="setImmediate$"+Math.random()+"$",_=function _(e){e.source===i&&"string"==typeof e.data&&0===e.data.indexOf(f)&&r(+e.data.slice(f.length))},i.addEventListener?i.addEventListener("message",_,!1):i.attachEvent("onmessage",_),function l(e){i.postMessage(f+e,"*")}):i.MessageChannel?((p=new MessageChannel).port1.onmessage=function(e){r(e.data)},function l(e){p.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(d=u.documentElement,function l(e){var t=u.createElement("script");t.onreadystatechange=function(){r(e),t.onreadystatechange=null,d.removeChild(t),t=null},d.appendChild(t)}):function l(e){setTimeout(r,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return s[o]=r,l(o),o++},h.clearImmediate=n)}).call(this,n(10),n(11))},function(e,t){var n;n=function(e){this._constructor(e)},_.extend(n.prototype,{props:{},init:null,destroyed:null,_constructor:function(e){this._initProps(e),this._init(),this._initRef()},_defaultConfig:function(e){return{}},_initProps:function(e){var t=this.props;BI.isFunction(this.props)&&(t=this.props(e)),this.options=function(e){for(var t,n,r,i=e||{},a=arguments.length,o=1;o<a;o++)if(null!=(t=arguments[o]))for(n in t)i[n],i!==(r=t[n])&&r!==undefined&&(i[n]=r);return i}(this._defaultConfig(e),t,e)},_init:function(){this._initListeners(),this.init&&this.init()},_initListeners:function(){var t=this;null!=this.options.listeners&&(_.each(this.options.listeners,function(e){(e.target?e.target:t)[e.once?"once":"on"](e.eventName,_.bind(e.action,t))}),delete this.options.listeners)},_initRef:function(){this.options.ref&&this.options.ref.call(this,this)},_purgeRef:function(){this.options.ref&&(this.options.ref.call(null),this.options.ref=null)},_getEvents:function(){return _.isObject(this.events)||(this.events={}),this.events},on:function(e,t){var n=this;e=e.toLowerCase();var r=this._getEvents()[e];return _.isArray(r)||(r=[],this._getEvents()[e]=r),r.push(t),function(){n.un(e,t)}},once:function(e,t){var n=function(){t.apply(this,arguments),this.un(e,n)};this.on(e,n)},un:function(e,t){var n,r;e=e.toLowerCase(),null==t?delete this._getEvents()[e]:(n=this._getEvents()[e],_.isArray(n)&&(r=[],_.each(n,function(e){e!=t&&r.push(e)}),this._getEvents()[e]=r))},purgeListeners:function(){this.events={}},fireEvent:function(){var e=arguments[0].toLowerCase(),t=this._getEvents()[e];if(BI.isArray(t))if(BI.isArguments(arguments[1])){for(var n=0;n<t.length;n++)if(!1===t[n].apply(this,arguments[1]))return!1}else for(var r=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n++)if(!1===t[n].apply(this,r))return!1;return!0},destroy:function(){this.destroyed&&this.destroyed(),this._purgeRef(),this.purgeListeners()}}),BI.OB=BI.OB||n},function(e,t){!function(){BI.CRYPT_TYPE=BI.CRYPT_TYPE||{},BI.CRYPT_TYPE.AES="aes";var l,e,t,n,d,r,i,a,o,s,c,p,u,f,h,g,m,y,b,v,E=E||(l=Math,t=(e={}).lib={},n=t.Base={extend:function(e){I.prototype=this;var t=new I;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},d=t.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||i).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else if(65535<n.length)for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];else t.push.apply(t,n);return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=l.ceil(t/4)},clone:function(){var e=n.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(4294967296*l.random()|0);return new d.init(t,e)}}),r=e.enc={},i=r.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new d.init(n,t/2)}},a=r.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new d.init(n,t)}},o=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(a.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return a.parse(unescape(encodeURIComponent(e)))}},s=t.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=o.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,a=r/(4*i),o=(a=e?l.ceil(a):l.max((0|a)-this._minBufferSize,0))*i,s=l.min(4*o,r);if(o){for(var c=0;c<o;c+=i)this._doProcessBlock(n,c);var u=n.splice(0,o);t.sigBytes-=s}return new d.init(u,s)},clone:function(){var e=n.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),t.Hasher=s.extend({cfg:n.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(n){return function(e,t){return new n.init(t).finalize(e)}},_createHmacHelper:function(n){return function(e,t){return new c.HMAC.init(n,t).finalize(e)}}}),c=e.algo={},e);function I(){}p=E.lib.WordArray,E.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)i.push(r.charAt(o>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t,n=e.length,r=this._map,i=r.charAt(64);!i||-1!=(t=e.indexOf(i))&&(n=t);for(var a,o,s=[],c=0,u=0;u<n;u++){u%4&&(a=r.indexOf(e.charAt(u-1))<<u%4*2,o=r.indexOf(e.charAt(u))>>>6-u%4*2,s[c>>>2]|=(a|o)<<24-c%4*8,c++)}return p.create(s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(l){var e=E,t=e.lib,n=t.WordArray,r=t.Hasher,i=e.algo,x=[];!function(){for(var e=0;e<64;e++)x[e]=4294967296*l.abs(l.sin(e+1))|0}();var a=i.MD5=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],s=e[t+1],c=e[t+2],u=e[t+3],l=e[t+4],d=e[t+5],p=e[t+6],f=e[t+7],_=e[t+8],h=e[t+9],g=e[t+10],m=e[t+11],y=e[t+12],b=e[t+13],v=e[t+14],E=e[t+15],I=S(I=a[0],B=a[1],C=a[2],T=a[3],o,7,x[0]),T=S(T,I,B,C,s,12,x[1]),C=S(C,T,I,B,c,17,x[2]),B=S(B,C,T,I,u,22,x[3]);I=S(I,B,C,T,l,7,x[4]),T=S(T,I,B,C,d,12,x[5]),C=S(C,T,I,B,p,17,x[6]),B=S(B,C,T,I,f,22,x[7]),I=S(I,B,C,T,_,7,x[8]),T=S(T,I,B,C,h,12,x[9]),C=S(C,T,I,B,g,17,x[10]),B=S(B,C,T,I,m,22,x[11]),I=S(I,B,C,T,y,7,x[12]),T=S(T,I,B,C,b,12,x[13]),C=S(C,T,I,B,v,17,x[14]),I=N(I,B=S(B,C,T,I,E,22,x[15]),C,T,s,5,x[16]),T=N(T,I,B,C,p,9,x[17]),C=N(C,T,I,B,m,14,x[18]),B=N(B,C,T,I,o,20,x[19]),I=N(I,B,C,T,d,5,x[20]),T=N(T,I,B,C,g,9,x[21]),C=N(C,T,I,B,E,14,x[22]),B=N(B,C,T,I,l,20,x[23]),I=N(I,B,C,T,h,5,x[24]),T=N(T,I,B,C,v,9,x[25]),C=N(C,T,I,B,u,14,x[26]),B=N(B,C,T,I,_,20,x[27]),I=N(I,B,C,T,b,5,x[28]),T=N(T,I,B,C,c,9,x[29]),C=N(C,T,I,B,f,14,x[30]),I=D(I,B=N(B,C,T,I,y,20,x[31]),C,T,d,4,x[32]),T=D(T,I,B,C,_,11,x[33]),C=D(C,T,I,B,m,16,x[34]),B=D(B,C,T,I,v,23,x[35]),I=D(I,B,C,T,s,4,x[36]),T=D(T,I,B,C,l,11,x[37]),C=D(C,T,I,B,f,16,x[38]),B=D(B,C,T,I,g,23,x[39]),I=D(I,B,C,T,b,4,x[40]),T=D(T,I,B,C,o,11,x[41]),C=D(C,T,I,B,u,16,x[42]),B=D(B,C,T,I,p,23,x[43]),I=D(I,B,C,T,h,4,x[44]),T=D(T,I,B,C,y,11,x[45]),C=D(C,T,I,B,E,16,x[46]),I=k(I,B=D(B,C,T,I,c,23,x[47]),C,T,o,6,x[48]),T=k(T,I,B,C,f,10,x[49]),C=k(C,T,I,B,v,15,x[50]),B=k(B,C,T,I,d,21,x[51]),I=k(I,B,C,T,y,6,x[52]),T=k(T,I,B,C,u,10,x[53]),C=k(C,T,I,B,g,15,x[54]),B=k(B,C,T,I,s,21,x[55]),I=k(I,B,C,T,_,6,x[56]),T=k(T,I,B,C,E,10,x[57]),C=k(C,T,I,B,p,15,x[58]),B=k(B,C,T,I,b,21,x[59]),I=k(I,B,C,T,l,6,x[60]),T=k(T,I,B,C,m,10,x[61]),C=k(C,T,I,B,c,15,x[62]),B=k(B,C,T,I,h,21,x[63]),a[0]=a[0]+I|0,a[1]=a[1]+B|0,a[2]=a[2]+C|0,a[3]=a[3]+T|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var i=l.floor(n/4294967296),a=n;t[15+(64+r>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(64+r>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,s=o.words,c=0;c<4;c++){var u=s[c];s[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function S(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<<a|s>>>32-a)+t}function N(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<<a|s>>>32-a)+t}function D(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<<a|s>>>32-a)+t}function k(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<<a|s>>>32-a)+t}e.MD5=r._createHelper(a),e.HmacMD5=r._createHmacHelper(a)}(Math),f=(u=E).lib,h=f.Base,g=f.WordArray,m=u.algo,y=m.MD5,b=m.EvpKDF=h.extend({cfg:h.extend({keySize:4,hasher:y,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),i=g.create(),a=i.words,o=n.keySize,s=n.iterations;a.length<o;){c&&r.update(c);var c=r.update(e).finalize(t);r.reset();for(var u=1;u<s;u++)c=r.finalize(c),r.reset();i.concat(c)}return i.sigBytes=4*o,i}}),u.EvpKDF=function(e,t,n){return b.create(n).compute(e,t)},E.lib.Cipher||function(){var e=E,t=e.lib,n=t.Base,c=t.WordArray,r=t.BufferedBlockAlgorithm,i=e.enc,a=(i.Utf8,i.Base64),o=e.algo.EvpKDF,s=t.Cipher=r.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(r){return{encrypt:function(e,t,n){return u(t).encrypt(r,e,t,n)},decrypt:function(e,t,n){return u(t).decrypt(r,e,t,n)}}}});function u(e){return"string"==typeof e?v:y}t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l,d=e.mode={},p=t.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=((l=p.extend()).Encryptor=l.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;_.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),l.Decryptor=l.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),_.call(this,e,t,r),this._prevBlock=i}}),l);function _(e,t,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var a=0;a<n;a++)e[t+a]^=r[a]}var h=(e.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],o=0;o<r;o+=4)a.push(i);var s=c.create(a,r);e.concat(s)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},g=(t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:f,padding:h}),reset:function(){s.reset.call(this);var e,t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode=e.call(r,this,n&&n.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),t.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?c.create([1398893684,1701076831]).concat(n).concat(t):t).toString(a)},parse:function(e){var t,n=a.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=c.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},y=t.SerializableCipher=n.extend({cfg:n.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),o=i.cfg;return g.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(e.kdf={}).OpenSSL={execute:function(e,t,n,r){r=r||c.random(8);var i=o.create({keySize:t+n}).compute(e,r),a=c.create(i.words.slice(t),4*n);return i.sigBytes=4*t,g.create({key:i,iv:a,salt:r})}},v=t.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var a=y.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}(),E.mode.ECB=((v=E.lib.BlockCipherMode.extend()).Encryptor=v.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),v.Decryptor=v.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),v),function(){var e=E,t=e.lib.BlockCipher,n=e.algo,u=[],l=[],d=[],p=[],f=[],_=[],h=[],g=[],m=[],y=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var i=(i=r^r<<1^r<<2^r<<3^r<<4)>>>8^255&i^99;u[n]=i;var a=e[l[i]=n],o=e[a],s=e[o],c=257*e[i]^16843008*i;d[n]=c<<24|c>>>8,p[n]=c<<16|c>>>16,f[n]=c<<8|c>>>24,_[n]=c;c=16843009*s^65537*o^257*a^16843008*n;h[i]=c<<24|c>>>8,g[i]=c<<16|c>>>16,m[i]=c<<8|c>>>24,y[i]=c,n?(n=a^e[e[e[s^a]]],r^=e[e[r]]):n=r=1}}();var b=[0,1,2,4,8,16,32,64,128,27,54],r=n.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,r=4*(1+(this._nRounds=6+n)),i=this._keySchedule=[],a=0;a<r;a++){a<n?i[a]=t[a]:(c=i[a-1],a%n?6<n&&a%n==4&&(c=u[c>>>24]<<24|u[c>>>16&255]<<16|u[c>>>8&255]<<8|u[255&c]):(c=u[(c=c<<8|c>>>24)>>>24]<<24|u[c>>>16&255]<<16|u[c>>>8&255]<<8|u[255&c],c^=b[a/n|0]<<24),i[a]=i[a-n]^c)}for(var o=this._invKeySchedule=[],s=0;s<r;s++){var c,a=r-s;c=s%4?i[a]:i[a-4],o[s]=s<4||a<=4?c:h[u[c>>>24]]^g[u[c>>>16&255]]^m[u[c>>>8&255]]^y[u[255&c]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,d,p,f,_,u)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,h,g,m,y,l);n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],f=4,_=1;_<c;_++)var h=r[u>>>24]^i[l>>>16&255]^a[d>>>8&255]^o[255&p]^n[f++],g=r[l>>>24]^i[d>>>16&255]^a[p>>>8&255]^o[255&u]^n[f++],m=r[d>>>24]^i[p>>>16&255]^a[u>>>8&255]^o[255&l]^n[f++],y=r[p>>>24]^i[u>>>16&255]^a[l>>>8&255]^o[255&d]^n[f++],u=h,l=g,d=m,p=y;h=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[f++],g=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^n[f++],m=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^n[f++],y=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^n[f++];e[t]=h,e[t+1]=g,e[t+2]=m,e[t+3]=y},keySize:8});e.AES=t._createHelper(r)}(),_.extend(BI,{aesEncrypt:function(e,t){return t=E.enc.Utf8.parse(t),E.AES.encrypt(e,t,{mode:E.mode.ECB,padding:E.pad.Pkcs7}).ciphertext.toString(E.enc.Base64)},aesDecrypt:function(e,t){t=E.enc.Utf8.parse(t);var n=E.AES.decrypt(e,t,{mode:E.mode.ECB,padding:E.pad.Pkcs7});return E.enc.Utf8.stringify(n)}})}()},function(e,t){function n(o){return function(e,t,n){var c,r=e[t];r&&r.target==e||((c=e[t]=function(){for(var e,t=c.before,n=arguments,r=t.length;r--;){if(!1===(e=t[r].advice.apply(this,n)))return!1;n=e||n}for(var i=c.method.apply(this,n),a=c.after,o=0,s=a.length;o<s;o++){if(e=a[o].advice.call(this,i,n),!1===i)return!1;n=e||n}return i}).before=[],c.after=[],r&&(c.method=r),c.target=e);var i=(c||r)[o],a={advice:n,_index:i.length,remove:function(){i.splice(this._index,1)}};return i.push(a),a}}BI.aspect={before:n("before"),after:n("after")},BI.aspect},function(e,t){var l;l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_.extend(BI,{encode:function(e){var t,n,r,i,a,o,s,c="",u=0;for(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(127<r&&r<2048?t+=String.fromCharCode(r>>6|192):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128)),t+=String.fromCharCode(63&r|128))}return t}(e);u<e.length;)i=(t=e.charCodeAt(u++))>>2,a=(3&t)<<4|(n=e.charCodeAt(u++))>>4,o=(15&n)<<2|(r=e.charCodeAt(u++))>>6,s=63&r,isNaN(n)?o=s=64:isNaN(r)&&(s=64),c=c+l.charAt(i)+l.charAt(a)+l.charAt(o)+l.charAt(s);return c},decode:function(e){var t,n,r,i,a,o,s="",c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)t=l.indexOf(e.charAt(c++))<<2|(i=l.indexOf(e.charAt(c++)))>>4,n=(15&i)<<4|(a=l.indexOf(e.charAt(c++)))>>2,r=(3&a)<<6|(o=l.indexOf(e.charAt(c++))),s+=String.fromCharCode(t),64!=a&&(s+=String.fromCharCode(n)),64!=o&&(s+=String.fromCharCode(r));return s=function(e){for(var t,n,r="",i=0,a=0;i<e.length;)(t=e.charCodeAt(i))<128?(r+=String.fromCharCode(t),i++):191<t&&t<224?(a=e.charCodeAt(i+1),r+=String.fromCharCode((31&t)<<6|63&a),i+=2):(a=e.charCodeAt(i+1),n=e.charCodeAt(i+2),r+=String.fromCharCode((15&t)<<12|(63&a)<<6|63&n),i+=3);return r}(s)}})},function(e,t){BI.Cache={_prefix:"bi",setUsername:function(e){localStorage.setItem(BI.Cache._prefix+".username",(e+""||"").toUpperCase())},getUsername:function(){return localStorage.getItem(BI.Cache._prefix+".username")||""},_getKeyPrefix:function(){return BI.Cache.getUsername()+"."+BI.Cache._prefix+"."},_generateKey:function(e){return BI.Cache._getKeyPrefix()+(e||"")},getItem:function(e){return localStorage.getItem(BI.Cache._generateKey(e))},setItem:function(e,t){localStorage.setItem(BI.Cache._generateKey(e),t)},removeItem:function(e){localStorage.removeItem(BI.Cache._generateKey(e))},clear:function(){for(var e=localStorage.length;0<=e;e--){var t=localStorage.key(e);t&&0===t.indexOf(BI.Cache._getKeyPrefix())&&localStorage.removeItem(t)}},keys:function(){for(var e=[],t=localStorage.length;0<=t;t--){var n,r=localStorage.key(t);r&&(n=BI.Cache._getKeyPrefix(),0===r.indexOf(n)&&(e[e.length]=r.substring(n.length)))}return e},addCookie:function(e,t,n,r){var i,a=e+"="+escape(t);r&&0<r&&((i=new Date).setTime(i.getTime()+3600*r*1e3),a=a+"; expires="+i.toUTCString()),n&&(a=a+"; path="+n),document.cookie=a},getCookie:function(e){var t,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=document.cookie.match(n))?unescape(t[2]):null},deleteCookie:function(e,t){var n=new Date;n.setTime(n.getTime()-1e4);var r=e+"=v; expires="+n.toUTCString();t&&(r=r+"; path="+t),document.cookie=r}}},function(e,t){BI.CellSizeAndPositionManager=function(e,t,n){this._cellSizeGetter=t,this._cellCount=e,this._estimatedCellSize=n,this._cellSizeAndPositionData={},this._lastMeasuredIndex=-1},BI.CellSizeAndPositionManager.prototype={constructor:BI.CellSizeAndPositionManager,configure:function(e,t){this._cellCount=e,this._estimatedCellSize=t},getCellCount:function(){return this._cellCount},getEstimatedCellSize:function(){return this._estimatedCellSize},getLastMeasuredIndex:function(){return this._lastMeasuredIndex},getSizeAndPositionOfCell:function(e){if(!(e<0||e>=this._cellCount)){if(e>this._lastMeasuredIndex){for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter(r);null==i||isNaN(i)||(this._cellSizeAndPositionData[r]={offset:n,size:i},n+=i)}this._lastMeasuredIndex=e}return this._cellSizeAndPositionData[e]}},getSizeAndPositionOfLastMeasuredCell:function(){return 0<=this._lastMeasuredIndex?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}},getTotalSize:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize},getUpdatedOffsetForIndex:function(e,t,n,r){var i,a=this.getSizeAndPositionOfCell(r),o=a.offset,s=o-t+a.size;switch(e){case"start":i=o;break;case"end":i=s;break;case"center":i=o-(t-a.size)/2;break;default:i=Math.max(s,Math.min(o,n))}var c=this.getTotalSize();return Math.max(0,Math.min(c-t,i))},getVisibleCellRange:function(e,t){if(0===this.getTotalSize())return{};var n=t+e,r=this._findNearestCell(t),i=this.getSizeAndPositionOfCell(r);t=i.offset+i.size;for(var a=r;t<n&&a<this._cellCount-1;)a++,t+=this.getSizeAndPositionOfCell(a).size;return{start:r,stop:a}},resetCell:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)},_binarySearch:function(e,t,n){for(var r,i;t<=e;){if(r=t+Math.floor((e-t)/2),(i=this.getSizeAndPositionOfCell(r).offset)===n)return r;i<n?t=r+1:n<i&&(e=r-1)}if(0<t)return t-1},_exponentialSearch:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)},_findNearestCell:function(e){if(!isNaN(e)){e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}},BI.ScalingCellSizeAndPositionManager=function(e,t,n,r){this._cellSizeAndPositionManager=new BI.CellSizeAndPositionManager(e,t,n),this._maxScrollSize=r||1e7},BI.ScalingCellSizeAndPositionManager.prototype={constructor:BI.ScalingCellSizeAndPositionManager,configure:function(){this._cellSizeAndPositionManager.configure.apply(this._cellSizeAndPositionManager,arguments)},getCellCount:function(){return this._cellSizeAndPositionManager.getCellCount()},getEstimatedCellSize:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()},getLastMeasuredIndex:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()},getOffsetAdjustment:function(e,t){var n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage(e,t,r);return Math.round(i*(r-n))},getSizeAndPositionOfCell:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)},getSizeAndPositionOfLastMeasuredCell:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()},getTotalSize:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())},getUpdatedOffsetForIndex:function(e,t,n,r){n=this._safeOffsetToOffset(t,n);var i=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex(e,t,n,r);return this._offsetToSafeOffset(t,i)},getVisibleCellRange:function(e,t){return t=this._safeOffsetToOffset(e,t),this._cellSizeAndPositionManager.getVisibleCellRange(e,t)},resetCell:function(e){this._cellSizeAndPositionManager.resetCell(e)},_getOffsetPercentage:function(e,t,n){return n<=e?0:t/(n-e)},_offsetToSafeOffset:function(e,t){var n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return t;var i=this._getOffsetPercentage(e,t,n);return Math.round(i*(r-e))},_safeOffsetToOffset:function(e,t){var n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return t;var i=this._getOffsetPercentage(e,t,r);return Math.round(i*(n-e))}}},function(e,t){var c;c={19969:"DZ",19975:"WM",19988:"QJ",20048:"YL",20056:"SC",20060:"NM",20094:"QG",20127:"QJ",20167:"QC",20193:"YG",20250:"KH",20256:"ZC",20282:"SC",20285:"QJG",20291:"TD",20314:"YD",20315:"BF",20340:"NE",20375:"TD",20389:"YJ",20391:"CZ",20415:"PB",20446:"YS",20447:"SQ",20504:"TC",20608:"KG",20854:"QJ",20857:"ZC",20911:"PF",20985:"AW",21032:"PB",21048:"XQ",21049:"SC",21089:"YS",21119:"JC",21242:"SB",21273:"SC",21305:"YP",21306:"QO",21330:"ZC",21333:"SDC",21345:"QK",21378:"CA",21397:"SC",21414:"XS",21442:"SC",21477:"JG",21480:"TD",21484:"ZS",21494:"YX",21505:"YX",21512:"HG",21523:"XH",21537:"PB",21542:"PF",21549:"KH",21571:"E",21574:"DA",21588:"TD",21589:"O",21618:"ZC",21621:"KHA",21632:"ZJ",21654:"KG",21679:"LKG",21683:"KH",21710:"A",21719:"YH",21734:"WOE",21769:"A",21780:"WN",21804:"XH",21834:"A",21899:"ZD",21903:"RN",21908:"WO",21939:"ZC",21956:"SA",21964:"YA",21970:"TD",22003:"A",22031:"JG",22040:"XS",22060:"ZC",22066:"ZC",22079:"MH",22129:"XJ",22179:"XA",22237:"NJ",22244:"TD",22280:"JQ",22300:"YH",22313:"XW",22331:"YQ",22343:"YJ",22351:"PH",22395:"DC",22412:"TD",22484:"PB",22500:"PB",22534:"ZD",22549:"DH",22561:"PB",22612:"TD",22771:"KQ",22831:"HB",22841:"JG",22855:"QJ",22865:"XQ",23013:"ML",23081:"WM",23487:"SX",23558:"QJ",23561:"YW",23586:"YW",23614:"YW",23615:"SN",23631:"PB",23646:"ZS",23663:"ZT",23673:"YG",23762:"TD",23769:"ZS",23780:"QJ",23884:"QK",24055:"XH",24113:"DC",24162:"ZC",24191:"GA",24273:"QJ",24324:"NL",24377:"TD",24378:"QJ",24439:"PF",24554:"ZS",24683:"TD",24694:"WE",24733:"LK",24925:"TN",25094:"ZG",25100:"XQ",25103:"XH",25153:"PB",25170:"PB",25179:"KG",25203:"PB",25240:"ZS",25282:"FB",25303:"NA",25324:"KG",25341:"ZY",25373:"WZ",25375:"XJ",25384:"A",25457:"A",25528:"SD",25530:"SC",25552:"TD",25774:"ZC",25874:"ZC",26044:"YW",26080:"WM",26292:"PB",26333:"PB",26355:"ZY",26366:"CZ",26397:"ZC",26399:"QJ",26415:"ZS",26451:"SB",26526:"ZC",26552:"JG",26561:"TD",26588:"JG",26597:"CZ",26629:"ZS",26638:"YL",26646:"XQ",26653:"KG",26657:"XJ",26727:"HG",26894:"ZC",26937:"ZS",26946:"ZC",26999:"KJ",27099:"KJ",27449:"YQ",27481:"XS",27542:"ZS",27663:"ZS",27748:"TS",27784:"SC",27788:"ZD",27795:"TD",27812:"O",27850:"PB",27852:"MB",27895:"SL",27898:"PL",27973:"QJ",27981:"KH",27986:"HX",27994:"XJ",28044:"YC",28065:"WG",28177:"SM",28267:"QJ",28291:"KH",28337:"ZQ",28463:"TL",28548:"DC",28601:"TD",28689:"PB",28805:"JG",28820:"QG",28846:"PB",28952:"TD",28975:"ZC",29100:"A",29325:"QJ",29575:"SL",29602:"FB",30010:"TD",30044:"CX",30058:"PF",30091:"YSP",30111:"YN",30229:"XJ",30427:"SC",30465:"SX",30631:"YQ",30655:"QJ",30684:"QJG",30707:"SD",30729:"XH",30796:"LG",30917:"PB",31074:"NM",31085:"JZ",31109:"SC",31181:"ZC",31192:"MLB",31293:"JQ",31400:"YX",31584:"YJ",31896:"ZN",31909:"ZY",31995:"XJ",32321:"PF",32327:"ZY",32418:"HG",32420:"XQ",32421:"HG",32438:"LG",32473:"GJ",32488:"TD",32521:"QJ",32527:"PB",32562:"ZSQ",32564:"JZ",32735:"ZD",32793:"PB",33071:"PF",33098:"XL",33100:"YA",33152:"PB",33261:"CX",33324:"BP",33333:"TD",33406:"YA",33426:"WM",33432:"PB",33445:"JG",33486:"ZN",33493:"TS",33507:"QJ",33540:"QJ",33544:"ZC",33564:"XQ",33617:"YT",33632:"QJ",33636:"XH",33637:"YX",33694:"WG",33705:"PF",33728:"YW",33882:"SR",34067:"WM",34074:"YW",34121:"QJ",34255:"ZC",34259:"XL",34425:"JH",34430:"XH",34485:"KH",34503:"YS",34532:"HG",34552:"XS",34558:"YE",34593:"ZL",34660:"YQ",34892:"XH",34928:"SC",34999:"QJ",35048:"PB",35059:"SC",35098:"ZC",35203:"TQ",35265:"JX",35299:"JX",35782:"SZ",35828:"YS",35830:"E",35843:"TD",35895:"YG",35977:"MH",36158:"JG",36228:"QJ",36426:"XQ",36466:"DC",36710:"CJ",36711:"ZYG",36767:"PB",36866:"SK",36951:"YW",37034:"YX",37063:"XH",37218:"ZC",37325:"ZC",38063:"PB",38079:"TD",38085:"QY",38107:"DC",38116:"TD",38123:"YD",38224:"HG",38241:"XTC",38271:"ZC",38415:"YE",38426:"KH",38461:"YD",38463:"AE",38466:"PB",38477:"XJ",38518:"YT",38551:"WK",38585:"ZC",38704:"XS",38739:"LJ",38761:"GJ",38808:"SQ",39048:"JG",39049:"XJ",39052:"HG",39076:"CZ",39271:"XT",39534:"TD",39552:"TD",39584:"PB",39647:"SB",39730:"LG",39748:"TPB",40109:"ZQ",40479:"ND",40516:"HG",40536:"HG",40583:"QJ",40765:"YQ",40784:"QJ",40840:"YK",40863:"QJG"},_.extend(BI,{makeFirstPY:function(e,t){if(t=t||{},"string"!=typeof e)return""+e;for(var n,r,i=[],a=0,o=e.length;a<o;a++){var s=e.charAt(a);i.push((r=void 0,40869<(r=(n=s).charCodeAt(0))||r<19968?n:c[r]?c[r]:"YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGHGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLZYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNZMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY".charAt(r-19968)))}return function(e,t){for(var n=t.ignoreMulti,r=t.splitChar,i=[""],a=0,o=0,s=e.length;o<s;o++){var c=e[o],u=c.length;if(1==u||14<a||n)for(var l=c.substring(0,1),d=0;d<i.length;d++)i[d]+=l;else{var p=i.slice(0),i=[];for(a++,d=0;d<u;d++){for(var f=p.slice(0),_=0;_<f.length;_++)f[_]+=c.charAt(d);i=i.concat(f)}}}return i.join(r||"").toLowerCase()}(i,t)}})},function(e,t){function n(e,t){return e<t}BI.Heap=function(e,t){this._items=e||[],this._size=this._items.length,this._comparator=t||n,this._heapify()},BI.Heap.prototype={constructor:BI.Heap,empty:function(){return 0===this._size},pop:function(){if(0!==this._size){var e=this._items[0],t=this._items.pop();return this._size--,0<this._size&&(this._items[0]=t,this._sinkDown(0)),e}},push:function(e){this._items[this._size++]=e,this._bubbleUp(this._size-1)},size:function(){return this._size},peek:function(){if(0!==this._size)return this._items[0]},_heapify:function(){for(var e=Math.floor((this._size+1)/2);0<=e;e--)this._sinkDown(e)},_bubbleUp:function(e){for(var t=this._items[e];0<e;){var n=Math.floor((e+1)/2)-1,r=this._items[n];if(this._comparator(r,t))return;this._items[n]=t,this._items[e]=r,e=n}},_sinkDown:function(e){for(var t=this._items[e];;){var n,r,i=2*(e+1)-1,a=2*(e+1),o=-1;if(i<this._size&&(n=this._items[i],this._comparator(n,t)&&(o=i)),a<this._size&&(r=this._items[a],this._comparator(r,t)&&(-1!==o&&!this._comparator(r,this._items[o])||(o=a))),-1===o)return;this._items[e]=this._items[o],this._items[o]=t,e=o}}}},function(e,t){BI.LinkHashMap=function(){this.array=[],this.map={}},BI.LinkHashMap.prototype={constructor:BI.LinkHashMap,has:function(e){return e in this.map},add:function(e,t){void 0!==e&&(e in this.map||this.array.push(e),this.map[e]=t)},remove:function(e){if(e in this.map){delete this.map[e];for(var t=0;t<this.array.length;t++)if(this.array[t]==e){this.array.splice(t,1);break}}},size:function(){return this.array.length},each:function(e,t){t=t||window;if(null!=(e=e||null)&&"function"==typeof e)for(var n=0;n<this.array.length;n++){var r=this.array[n],i=this.map[r];if(0==e.call(t,r,i,n,this.array,this.map))break}},get:function(e){return this.map[e]},toArray:function(){var n=[];return this.each(function(e,t){n.push(t)}),n}}},function(e,t){!function(){BI.LRU=function(e){this.size=0,this.limit=e,this.head=this.tail=undefined,this._keymap={}};var e=BI.LRU.prototype;e.put=function(e,t){var n;this.size===this.limit&&(n=this.shift());var r=this.get(e,!0);return r||(r={key:e},this._keymap[e]=r,this.tail?(this.tail.newer=r).older=this.tail:this.head=r,this.tail=r,this.size++),r.value=t,n},e.shift=function(){var e=this.head;return e&&(this.head=this.head.newer,this.head.older=undefined,e.newer=e.older=undefined,this._keymap[e.key]=undefined,this.size--),e},e.get=function(e,t){var n=this._keymap[e];if(n!==undefined)return n===this.tail||(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=undefined,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n),t?n:n.value},e.has=function(e){return null!=this._keymap[e]}}()},function(e,t){var r,n;r=function(e){return Math.floor(e/2)},n=_global.Int32Array||function(e){for(var t=[],n=e-1;0<=n;--n)t[n]=0;return t},BI.PrefixIntervalTree=function(e){var t;for(this._size=e.length,this._half=function(e){for(var t=1;t<e;)t*=2;return t}(this._size),this._heap=new n(2*this._half),t=0;t<this._size;++t)this._heap[this._half+t]=e[t];for(t=this._half-1;0<t;--t)this._heap[t]=this._heap[2*t]+this._heap[2*t+1]},BI.PrefixIntervalTree.prototype={constructor:BI.PrefixIntervalTree,set:function(e,t){var n=this._half+e;for(this._heap[n]=t,n=r(n);0!==n;n=r(n))this._heap[n]=this._heap[2*n]+this._heap[2*n+1]},get:function(e){var t=this._half+e;return this._heap[t]},getSize:function(){return this._size},sumUntil:function(e){if(0===e)return 0;for(var t=this._half+e-1,n=this._heap[t];1!==t;t=r(t))t%2==1&&(n+=this._heap[t-1]);return n},sumTo:function(e){return this.sumUntil(e+1)},sum:function(e,t){return this.sumUntil(t)-this.sumUntil(e)},greatestLowerBound:function(e){if(e<0)return-1;var t=1;if(this._heap[t]<=e)return this._size;for(;t<this._half;){var n=this._heap[2*t];e<n?t*=2:(t=2*t+1,e-=n)}return t-this._half},greatestStrictLowerBound:function(e){if(e<=0)return-1;var t=1;if(this._heap[t]<e)return this._size;for(;t<this._half;){var n=this._heap[2*t];e<=n?t*=2:(t=2*t+1,e-=n)}return t-this._half},leastUpperBound:function(e){return this.greatestStrictLowerBound(e)+1},leastStrictUpperBound:function(e){return this.greatestLowerBound(e)+1}},BI.PrefixIntervalTree.uniform=function(e,t){for(var n=[],r=e-1;0<=r;--r)n[r]=t;return new BI.PrefixIntervalTree(n)},BI.PrefixIntervalTree.empty=function(e){return BI.PrefixIntervalTree.uniform(e,0)}},function(e,t){BI.Queue=function(e){this.capacity=e,this.array=[]},BI.Queue.prototype={constructor:BI.Queue,contains:function(e){return BI.contains(this.array,e)},indexOf:function(e){return BI.contains(this.array,e)},getElementByIndex:function(e){return this.array[e]},push:function(e){this.array.push(e),this.capacity&&this.array.length>this.capacity&&this.array.shift()},pop:function(){this.array.pop()},shift:function(){this.array.shift()},unshift:function(e){this.array.unshift(e),this.capacity&&this.array.length>this.capacity&&this.array.pop()},remove:function(e){BI.remove(this.array,e)},splice:function(){this.array.splice.apply(this.array,arguments)},slice:function(){this.array.slice.apply(this.array,arguments)},size:function(){return this.array.length},each:function(e,t){t=t||window;if(null!=(e=e||null)&&"function"==typeof e)for(var n=0;n<this.array.length;n++){if(0==e.call(t,n,this.array[n],this.array))break}},toArray:function(){return this.array},fromArray:function(e){var n=this;BI.each(e,function(e,t){n.push(t)})},clear:function(){this.array.length=0}}},function(e,t){!function(){var p=function(e,t,n,r){this.height=e,this.width=t,this.x=n,this.y=r,this._indexMap={},this._indices=[]};p.prototype={constructor:p,addCellIndex:function(e){this._indexMap[e]||(this._indexMap[e]=!0,this._indices.push(e))},getCellIndices:function(){return this._indices}};BI.SectionManager=function(e){this._sectionSize=e||100,this._cellMetadata=[],this._sections={}},BI.SectionManager.prototype={constructor:BI.SectionManager,getCellIndices:function(e,t,n,r){var i={};return BI.each(this.getSections(e,t,n,r),function(e,t){BI.each(t.getCellIndices(),function(e,t){i[t]=t})}),BI.map(BI.keys(i),function(e,t){return i[t]})},getCellMetadata:function(e){return this._cellMetadata[e]},getSections:function(e,t,n,r){for(var i=Math.floor(n/this._sectionSize),a=Math.floor((n+t-1)/this._sectionSize),o=Math.floor(r/this._sectionSize),s=Math.floor((r+e-1)/this._sectionSize),c=[],u=i;u<=a;u++)for(var l=o;l<=s;l++){var d=u+"."+l;this._sections[d]||(this._sections[d]=new p(this._sectionSize,this._sectionSize,u*this._sectionSize,l*this._sectionSize)),c.push(this._sections[d])}return c},getTotalSectionCount:function(){return BI.size(this._sections)},registerCell:function(e,n){this._cellMetadata[n]=e,BI.each(this.getSections(e.height,e.width,e.x,e.y),function(e,t){t.addCellIndex(n)})}}}()},function(e,t){BI.Tree=function(){this.root=new BI.Node(BI.UUID())},BI.Tree.prototype={constructor:BI.Tree,addNode:function(e,t,n){BI.isNull(t)?this.root.addChild(e,n):BI.isNull(e)?this.root.addChild(t,n):e.addChild(t,n)},isRoot:function(e){return e===this.root},getRoot:function(){return this.root},clear:function(){this.root.clear()},initTree:function(e){var r=this;this.clear();var i=[];for(BI.each(e,function(e,t){var n=new BI.Node(t);n.set("data",t),r.addNode(n),i.push(n)});!BI.isEmpty(i);){var a=i.shift(),t=a.get("data");BI.each(t.children,function(e,t){var n=new BI.Node(t);n.set("data",t),i.push(n),r.addNode(a,n)})}},_toJSON:function(e){var n=this,r=[];return BI.each(e.getChildren(),function(e,t){r.push(n._toJSON(t))}),BI.extend({id:e.id},BI.deepClone(e.get("data")),0<r.length?{children:r}:{})},toJSON:function(e){var n=this,r=[];return BI.each((e||this.root).getChildren(),function(e,t){r.push(n._toJSON(t))}),r},_toJSONWithNode:function(e){var n=this,r=[];return BI.each(e.getChildren(),function(e,t){r.push(n._toJSONWithNode(t))}),BI.extend({id:e.id},BI.deepClone(e.get("data")),{node:e},0<r.length?{children:r}:{})},toJSONWithNode:function(e){var n=this,r=[];return BI.each((e||this.root).getChildren(),function(e,t){r.push(n._toJSONWithNode(t))}),r},search:function(e,n,r){if(!(e instanceof BI.Node))return arguments.callee.apply(this,[this.root,e,n]);var i=this,a=null;return BI.isNull(n)?null:BI.isEqual(e[r||"id"],n)?e:(BI.any(e.getChildren(),function(e,t){if(null!==(a=i.search(t,n,r)))return!0}),a)},_traverse:function(e,t){var n=[];for(n.push(e);!BI.isEmpty(n);){var r=n.shift(),i=t&&t(r);if(!1===i)break;!0!==i&&null!=r&&(n=n.concat(r.getChildren()))}},traverse:function(e){this._traverse(this.root,e)},_recursion:function(e,i,a){var o=this;return BI.every(e.getChildren(),function(e,t){var n=BI.clone(i);n.push(t.id);var r=a&&a(t,n);return!1!==r&&(!0===r||o._recursion(t,n,a))})},recursion:function(e){this._recursion(this.root,[],e)},inOrderTraverse:function(e){this._inOrderTraverse(this.root,e)},_inOrderTraverse:function(e,t){null!=e&&(this._inOrderTraverse(e.getLeft()),t&&t(e),this._inOrderTraverse(e.getRight()))},nrInOrderTraverse:function(e){for(var t=[],n=this.root;null!=n||!BI.isEmpty(t);){for(;null!=n;)t.push(n),n=n.getLeft();n=t.pop(),e&&e(n),n=n.getRight()}},preOrderTraverse:function(e){this._preOrderTraverse(this.root,e)},_preOrderTraverse:function(e,t){null!=e&&(t&&t(e),this._preOrderTraverse(e.getLeft()),this._preOrderTraverse(e.getRight()))},nrPreOrderTraverse:function(e){for(var t=[],n=this.root;null!=n||!BI.isEmpty(t);){for(;null!=n;)e&&e(n),t.push(n),n=n.getLeft();n=(n=t.pop()).getRight()}},postOrderTraverse:function(e){this._postOrderTraverse(this.root,e)},_postOrderTraverse:function(e,t){null!=e&&(this._postOrderTraverse(e.getLeft()),this._postOrderTraverse(e.getRight()),t&&t(e))},nrPostOrderTraverse:function(e){for(var t=[],n=this.root,r=null;null!=n||!BI.isEmpty(t);){for(;null!=n;)t.push(n),n=n.getLeft();n=null==(n=BI.last(t)).getRight()||n.getRight()==r?(e&&e(n),r=n=t.pop(),null):n.getRight()}}},BI.Node=function(e){BI.isObject(e)?BI.extend(this,e):this.id=e,this.clear.apply(this,arguments)},BI.Node.prototype={constructor:BI.Node,set:function(e,t){BI.isObject(e)?BI.extend(this,e):this[e]=t},get:function(e){return this[e]},isLeaf:function(){return BI.isEmpty(this.children)},getChildren:function(){return this.children},getChildrenLength:function(){return this.children.length},getFirstChild:function(){return BI.first(this.children)},getLastChild:function(){return BI.last(this.children)},setLeft:function(e){this.left=e},getLeft:function(){return this.left},setRight:function(e){this.right=e},getRight:function(){return this.right},setParent:function(e){this.parent=e},getParent:function(){return this.parent},getChild:function(e){return this.children[e]},getChildIndex:function(n){return BI.findIndex(this.children,function(e,t){return t.get("id")===n})},removeChild:function(e){this.removeChildByIndex(this.getChildIndex(e))},removeChildByIndex:function(e){var t=this.getChild(e-1),n=this.getChild(e+1);null!=t&&t.setRight(n||null),null!=n&&n.setLeft(t||null),this.children.splice(e,1)},removeAllChilds:function(){this.children=[]},addChild:function(e,t){var n=null,n=BI.isUndefined(t)?this.children.length-1:t-1;e.setParent(this),0<=n&&(this.getChild(n)&&this.getChild(n).setRight(e),e.setLeft(this.getChild(n))),BI.isUndefined(t)?this.children.push(e):this.children.splice(t,0,e)},equals:function(e){return this===e||this.id===e.id},clear:function(){this.parent=null,this.left=null,this.right=null,this.children=[]}},BI.extend(BI.Tree,{transformToArrayFormat:function(e,t){if(!e)return[];var n=[];if(BI.isArray(e))for(var r=0,i=e.length;r<i;r++){var a=BI.clone(e[r]);a.pId=null==a.pId?t:a.pId,delete a.children,n.push(a),e[r].children&&(n=n.concat(BI.Tree.transformToArrayFormat(e[r].children,a.id)))}else{var o=BI.clone(e);o.pId=null==o.pId?t:o.pId,delete o.children,n.push(o),e.children&&(n=n.concat(BI.Tree.transformToArrayFormat(e.children,o.id)))}return n},arrayFormat:function(e,t){if(!e)return[];var n=[];if(BI.isArray(e))for(var r=0,i=e.length;r<i;r++){var a=e[r];a.pId=null==a.pId?t:a.pId,n.push(a),e[r].children&&(n=n.concat(BI.Tree.arrayFormat(e[r].children,a.id)))}else{var o=e;o.pId=null==o.pId?t:o.pId,n.push(o),e.children&&(n=n.concat(BI.Tree.arrayFormat(e.children,o.id)))}return n},transformToTreeFormat:function(e){if(!e)return[];if(BI.isArray(e)){for(var t=[],n={},r=0,i=e.length;r<i;r++){if(BI.isNull(e[r].id))return e;n[e[r].id]=BI.clone(e[r])}for(r=0,i=e.length;r<i;r++)n[e[r].pId]&&e[r].id!==e[r].pId?(n[e[r].pId].children||(n[e[r].pId].children=[]),n[e[r].pId].children.push(n[e[r].id])):t.push(n[e[r].id]),delete n[e[r].id].pId;return t}return[e]},treeFormat:function(e){if(!e)return[];if(BI.isArray(e)){for(var t=[],n={},r=0,i=e.length;r<i;r++){if(BI.isNull(e[r].id))return e;n[e[r].id]=e[r]}for(r=0,i=e.length;r<i;r++)n[e[r].pId]&&e[r].id!==e[r].pId?(n[e[r].pId].children||(n[e[r].pId].children=[]),n[e[r].pId].children.push(n[e[r].id])):t.push(n[e[r].id]);return t}return[e]},traversal:function(e,n,r){var i;BI.isNull(e)||(i=this,BI.some(e,function(e,t){return!1===n(e,t,r)||void i.traversal(t.children,n,t)}))}})},function(e,t){BI.Vector=function(e,t){this.x=e,this.y=t},BI.Vector.prototype={constructor:BI.Vector,cross:function(e){return this.x*e.y-this.y*e.x},length:function(e){return Math.sqrt(this.x*e.x+this.y*e.y)}},BI.Region=function(e,t,n,r){this.x=e,this.y=t,this.w=n,this.h=r},BI.Region.prototype={constructor:BI.Region,isIntersects:function(e){if(this.isPointInside(e.x,e.y)||this.isPointInside(e.x+e.w,e.y)||this.isPointInside(e.x,e.y+e.h)||this.isPointInside(e.x+e.w,e.y+e.h))return!0;if(e.isPointInside(this.x,this.y)||e.isPointInside(this.x+this.w,this.y)||e.isPointInside(this.x,this.y+this.h)||e.isPointInside(this.x+this.w,this.y+this.h))return!0;if(null!=e.x&&null!=e.y){var t=new BI.Vector(this.w,this.h),n=new BI.Vector(e.x-this.x,e.y-this.y),r=new BI.Vector(n.x+e.w,n.y+e.h);if(t.cross(n)*t.cross(r)<0)return!0}return!1},isPointInside:function(e,t){return null!=this.x&&null!=this.y&&(e>=this.x&&e<=this.x+this.w&&t>=this.y&&t<=this.y+this.h)},getPosition:function(){var e=[];return e.push(this.x+this.w/2),e.push(this.y+this.h/2),e}}},function(module,exports,__webpack_require__){(function(global){!function(){var _global;function isEmpty(e){return""===e||null===e||e===undefined}function isInvalidDate(e){return"Invalid Date"==e||"NaN"==e}function _eFormat(e,t){return function(e,t){var n=e<0?(e*=-1,"-"):"",r="",i=Math[0<e&&e<1?"floor":"ceil"](Math.log(e)/Math.log(10));if(!isFinite(i))return t.replace(/#/gi,"").replace(/\.e/gi,"E");0<(e/=Math.pow(10,i))&&e<1&&(e*=10,--i);var a=function(e,t){if(!/e/gi.test(t))return 0;var n,r,i=t.split(/e/gi)[0].split(".")[0],a=i.length,o=0;for(n=0;n<a;n++)(0==(r=i.charAt(n))||"#"==r&&a-n<=e+1)&&o++;return o}(i,t);1<a&&(i-=a-1,e*=Math.pow(10,a-1)),i<0&&(r="-",i*=-1);var o=function(e){if(!/e/gi.test(e))return 0;var t=e.split(/e/gi)[0].split(".");return 1<t.length?t[1].length:0}(t),s=function(e){var t=Math.round(e);return e=(e+"").split(".")[0],t=(t+"").split(".")[0],e.length!==t.length}(e);return e*=Math.pow(10,o),e=Math.round(e),s&&(e/=10,i+="-"===r?-1:1),e=(e/=Math.pow(10,o)).toFixed(o),i=function(e,t,n){if(t+="",!/e/gi.test(e))return t;e=e.split(/e/gi)[1];for(;t.length<e.length;)t="0"+t;for(var r=!0,i=0,a=t.length;i<a;i++)r=r&&"0"===t.charAt(i);return(n=r?"":n)+t}(t,i,r),n+e+"E"+i}(e=+e,t)}function _dealNumberPrecision(e,t){if(/[eE]/.test(e)){var n,r=0,i=0;/[%‰]$/.test(t)&&(r=/[%]$/.test(t)?2:3);for(var a=t.length;i<a;i++)"0"!=(n=t.charAt(i))&&"#"!=n||r++;return Number(e).toFixed(r)}return e}function _numberFormat(e,t){if(!/[0-9]/.test(e=e+"")||!t)return e;var n=t.indexOf(";");if(-1<n)return 0<=e?_numberFormat(e+"",t.substring(0,n)):_numberFormat(-e+"",t.substr(n+1));if(+e<0&&"-"!==t.charAt(0))return _numberFormat(-e+"","-"+t);var r,i=t.split("."),a=i[0]||"",o=i[1]||"",s=(e=_dealNumberPrecision(e,o)).split("."),c=s[0]||"",u=s[1]||"";/[%‰]$/.test(t)&&(c=(c+=(u+=r=/[%]$/.test(t)?"00":"000").substr(0,r.length)).replace(/^0+/gi,""),u=u.substr(r.length).replace(/0+$/gi,""));var l=_dealWithRight(u,o);l.leftPlus&&(c=parseInt(c)+1+"",c=isNaN(c)?"1":c),l=l.num;var d=_dealWithLeft(c,a);return/[0-9]/.test(d)||(d+="0"),/[0-9]/.test(l)?d+"."+l:d+l}function _dealWithRight(e,t){for(var n="",r=0,i=0,a=t.length;i<a;i++){var o=t.charAt(i),s=e.charAt(r);switch(o){case"0":isEmpty(s)&&(s="0"),n+=s,r++;break;case"#":n+=s,r++;break;default:n+=o}}var c,u,l,d,p=e.substr(r),f={};return!isEmpty(p)&&4<p.charAt(0)&&(f.leftPlus=!0,(c=n.match(/^[0-9]+/))&&(l=(u=c[0]).length,(d=parseInt(u)+1+"").length>l?d=d.substr(1):(d=BI.leftPad(d,l,"0"),f.leftPlus=!1),n=n.replace(/^[0-9]+/,d))),f.num=n,f}function _dealWithLeft(e,t){for(var n,r="",i=e.length-1,a=-1,o=-1,s=t.length-1;0<=s;s--){var c,u=t.charAt(s),l=e.charAt(i);switch(u){case"0":isEmpty(l)&&(l="0"),o=-1,r=l+r,i--;break;case"#":o=s,r=l+r,i--;break;case",":isEmpty(l)||((c=t.match(/,[#0]+/))&&(a=c[0].length-1),r=","+r);break;default:r=u+r}}if(-1<o&&(n=e.substr(0,i+1),r=r.substr(0,o)+n+r.substr(o)),0<a){var d=r.match(/[0-9]+,/);if(d){for(var p="",f=(d=d[0]).length-1-a;0<=f;f-=a)p=d.substr(f,a)+","+p;var _=d.substr(0,f+a);isEmpty(_)||(p=_+","+p)}r=r.replace(/[0-9]+,/,p)}return r}_global="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:this,_global.BI||(_global.BI={}),BI.cjkEncode=function(e){if("string"!=typeof e)return e;for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);t+=128<=r||91===r||93===r?"["+r.toString(16)+"]":e.charAt(n)}return t},BI.cjkDecode=function(text){if(null==text)return"";if(!isNaN(text)||-1==text.indexOf("["))return text;for(var newText="",i=0;i<text.length;i++){var ch=text.charAt(i),rightIdx,subText;"["==ch&&(rightIdx=text.indexOf("]",i+1),i+1<rightIdx&&(subText=text.substring(i+1,rightIdx),0<subText.length&&(ch=String.fromCharCode(eval("0x"+subText))),i=rightIdx)),newText+=ch}return newText};var SPECIAL_TAGS={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"," ":"&nbsp;"};BI.htmlEncode=function(e){return BI.isNull(e)?"":BI.replaceAll(e+"",'&|"|<|>|\\s',function(e){return SPECIAL_TAGS[e]?SPECIAL_TAGS[e]:"&nbsp;"})},BI.htmlDecode=function(e){return BI.isNull(e)?"":BI.replaceAll(e+"","&amp;|&quot;|&lt;|&gt;|&nbsp;",function(e){switch(e){case"&amp;":return"&";case"&quot;":return'"';case"&lt;":return"<";case"&gt;":return">";case"&nbsp;":default:return" "}})},BI.cjkEncodeDO=function(e){if(BI.isPlainObject(e)){var n={};return _.each(e,function(e,t){"string"!=typeof e&&(e=BI.jsonEncode(e)),t=BI.cjkEncode(t),n[t]=BI.cjkEncode(e)}),n}return e},BI.jsonEncode=function(e){var t,n=!!{}.hasOwnProperty,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};if(null==e)return"null";if(BI.isArray(e))return function(e){for(var t,n,r=["["],i=e.length,a=0;a<i;a+=1)switch(typeof(n=e[a])){case"undefined":case"function":case"unknown":break;default:t&&r.push(","),r.push(null===n?"null":BI.jsonEncode(n)),t=!0}return r.push("]"),r.join("")}(e);if(e instanceof Date)return BI.jsonEncode({__time__:e.getTime()});if("string"==typeof e)return/["\\\x00-\x1f]/.test(t=e)?'"'+t.replace(/([\x00-\x1f\\"])/g,function(e,t){var n=r[t];return n||(n=t.charCodeAt(),"\\u00"+Math.floor(n/16).toString(16)+(n%16).toString(16))})+'"':'"'+t+'"';if("number"==typeof e)return isFinite(e)?String(e):"null";if("boolean"==typeof e)return String(e);if(BI.isFunction(e))return String(e);var i,a,o,s=["{"];for(a in e)if(!n||e.hasOwnProperty(a))switch(typeof(o=e[a])){case"undefined":case"unknown":break;default:i&&s.push(","),s.push(BI.jsonEncode(a),":",null===o?"null":BI.jsonEncode(o)),i=!0}return s.push("}"),s.join("")},BI.jsonDecode=function(e){try{var t=BI.$?BI.$.parseJSON(e):_global.JSON.parse(e);null==t&&(t={})}catch(r){try{t=new Function("return "+e)()||{}}catch(r){}null==t&&(t=[])}if(!(n=e)||"string"!=typeof n||-1==n.indexOf("__time__"))return t;var n;return function(e){if("string"==typeof e)return e;if(e&&null!=e.__time__)return new Date(e.__time__);for(var t in e){if(e[t]==e||"object"==typeof e[t]||_.isFunction(e[t]))break;e[t]=arguments.callee(e[t])}return e}(t)},BI.getEncodeURL=function(e,n){return BI.replaceAll(e,"\\{(.*?)\\}",function(e,t){return BI.encodeURIComponent(BI.isObject(n)?n[t]:n)})},BI.encodeURIComponent=function(e){return BI.specialCharsMap=BI.specialCharsMap||{},e=e||"",e=BI.replaceAll(e+"",BI.keys(BI.specialCharsMap||[]).join("|"),function(e){switch(e){case"\\":return BI.specialCharsMap["\\\\"]||e;default:return BI.specialCharsMap[e]||e}}),_global.encodeURIComponent(e)},BI.decodeURIComponent=function(e){var n={};return BI.each(BI.specialCharsMap,function(e,t){n[t]="\\\\"===e?"\\":e}),e=e||"",e=BI.replaceAll(e+"",BI.keys(n||[]).join("|"),function(e){return n[e]||e}),_global.decodeURIComponent(e)},BI.contentFormat=function(e,t){if(isEmpty(e))return"";var n,r=e.toString();return isEmpty(t)||t.match(/^T/)?r:(t.match(/^D/)?(e instanceof Date||(e="number"==typeof e?new Date(e):new Date(Date.parse((""+e).replace(/-|\./g,"/")))),isInvalidDate(e)||BI.isNull(e)||(n=t.match(/^DT/),r=BI.date2Str(e,t.substring(n?2:1)))):r=(t.match(/E/)?_eFormat:_numberFormat)(r,t),r=r.replace(/¤/g,"¥"))},BI.parseFmt=function(e){return e?(e=String(e).replace(/y{4,}/g,"%Y").replace(/y{2}/g,"%y").replace(/M{4,}/g,"%b").replace(/M{3}/g,"%B").replace(/M{2}/g,"%X").replace(/M{1}/g,"%x").replace(/a{1}/g,"%p"),e=new RegExp("d{2,}","g").test(e)?e.replace(/d{2,}/g,"%d"):e.replace(/d{1}/g,"%e"),e=new RegExp("h{2,}","g").test(e)?e.replace(/h{2,}/g,"%I"):e.replace(/h{1}/g,"%I"),e=(e=new RegExp("H{2,}","g").test(e)?e.replace(/H{2,}/g,"%H"):e.replace(/H{1}/g,"%H")).replace(/m{2,}/g,"%M").replace(/s{2,}/g,"%S")):""},BI.str2Date=function(e,t){if("string"!=typeof e||"string"!=typeof t)return null;var n=BI.parseFmt(t);return BI.parseDateTime(e,n)},BI.date2Str=function(e,t){if(!e)return"";var n=t.length,r="";if(0<n){for(var i=t.charAt(0),a=0,o=i,s=1;s<n;s++){var c=t.charAt(s);i!==c?(r+=u({"char":i,str:o,len:s-a},e),a=s,o=i=c):o+=c}r+=u({"char":i,str:o,len:n-a},e)}return r;function u(e,t){var n=e.str,r=e.len;switch(e["char"]){case"E":n=BI.Date._DN[t.getDay()];break;case"y":n=r<=3?(t.getFullYear()+"").slice(2,4):t.getFullYear();break;case"M":n=2<r?BI.Date._MN[t.getMonth()]:r<2?t.getMonth()+1:BI.leftPad(t.getMonth()+1+"",2,"0");break;case"d":n=1<r?BI.leftPad(t.getDate()+"",2,"0"):t.getDate();break;case"h":var i=t.getHours()%12;0===i&&(i=12),n=1<r?BI.leftPad(i+"",2,"0"):i;break;case"H":n=1<r?BI.leftPad(t.getHours()+"",2,"0"):t.getHours();break;case"m":n=1<r?BI.leftPad(t.getMinutes()+"",2,"0"):t.getMinutes();break;case"s":n=1<r?BI.leftPad(t.getSeconds()+"",2,"0"):t.getSeconds();break;case"a":n=t.getHours()<12?"am":"pm";break;case"z":n=BI.getTimezone(t);break;default:n=e.str}return n}},BI.object2Number=function(e){if(null==e)return 0;if("number"==typeof e)return e;var t=e+"";return(-1===t.indexOf(".")?parseInt:parseFloat)(t)},BI.object2Date=function(e){if(null==e)return new Date;if(e instanceof Date)return e;if("number"==typeof e)return new Date(e);var t=(t=e+"").replace(/-/g,"/"),n=new Date(t);return isInvalidDate(n)?new Date:n},BI.object2Time=function(e){if(null==e)return new Date;if(e instanceof Date)return e;var t=(t=e+"").replace(/-/g,"/"),n=new Date(t);return isInvalidDate(n)&&(-1!==t.indexOf("/")||-1===t.indexOf(":")||isInvalidDate(n=new Date("1970/01/01 "+t)))&&isInvalidDate(n=BI.parseDateTime(t,"HH:mm:ss"))?new Date:n}}()}).call(this,__webpack_require__(10))},function(e,t){_.extend(BI,{pushArray:function(e,t){for(var n=0;n<t.length;n++)e.push(t[n])},pushDistinct:function(e,t){BI.contains(e,t)||e.push(t)},pushDistinctArray:function(e,t){for(var n=0,r=t.length;n<r;n++)BI.pushDistinct(e,t[n])}})},function(e,t){BI.Date=BI.Date||{},BI.Date.SECOND=1e3,BI.Date.MINUTE=60*BI.Date.SECOND,BI.Date.HOUR=60*BI.Date.MINUTE,BI.Date.DAY=24*BI.Date.HOUR,BI.Date.WEEK=7*BI.Date.DAY,_.extend(BI,{getTimezone:function(e){return e.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getMonthDays:function(e,t){var n=e.getFullYear();return void 0===t&&(t=e.getMonth()),0!=n%4||0==n%100&&0!=n%400||1!=t?BI.Date._MD[t]:29},getLastDateOfMonth:function(e){return BI.getDate(e.getFullYear(),e.getMonth(),BI.getMonthDays(e))},getDayOfYear:function(e){var t=BI.getDate(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0)-BI.getDate(e.getFullYear(),0,0,0,0,0);return Math.floor(t/BI.Date.DAY)},getWeekNumber:function(e){var t=BI.getDate(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),n=t.getDay(),r=BI.StartOfWeek%7,i=(3+r)%7,a=n<r?7+n-r:n-r,o=(i=i||7)<r?7+i-r:i-r;t.setDate(t.getDate()-a+o);var s=t.valueOf();return t.setMonth(0),t.setDate(1),Math.floor((s-t.valueOf())/6048e5)+1},getQuarter:function(e){return Math.floor(e.getMonth()/3)+1},getOffsetDate:function(e,t){return BI.getDate(BI.getTime(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())+864e5*t)},getOffsetQuarter:function(e,t){var n=BI.getDate(BI.getTime(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())),r=n.getDate(),i=BI.getMonthDays(BI.getDate(n.getFullYear(),n.getMonth()+3*BI.parseInt(t),1));return i<r&&(r=i),n.setDate(r),n.setMonth(n.getMonth()+3*parseInt(t)),n},getQuarterStartMonth:function(e){var t=0,n=e.getMonth();return n<3&&(t=0),2<n&&n<6&&(t=3),5<n&&n<9&&(t=6),8<n&&(t=9),t},getQuarterStartDate:function(e){return BI.getDate(e.getFullYear(),BI.getQuarterStartMonth(e),1)},getQuarterEndDate:function(e){var t=BI.getQuarterStartMonth(e)+2;return BI.getDate(e.getFullYear(),t,BI.getMonthDays(e,t))},getOffsetMonth:function(e,t){var n=BI.getDate(BI.getTime(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())),r=n.getDate(),i=BI.getMonthDays(BI.getDate(n.getFullYear(),n.getMonth()+parseInt(t),1));return i<r&&(r=i),n.setDate(r),n.setMonth(n.getMonth()+parseInt(t)),n},getWeekStartDate:function(e){var t=e.getDay(),n=BI.StartOfWeek%7;return BI.getOffsetDate(e,BI.Date._OFFSET[t<n?7+t-n:t-n])},getWeekEndDate:function(e){var t=e.getDay(),n=BI.StartOfWeek%7;return BI.getOffsetDate(e,BI.Date._OFFSET[t<n?7+t-n:t-n]+6)},print:function(e,t){for(var n=e.getMonth(),r=e.getDate(),i=e.getFullYear(),a=i+"";a.length<4;)a="0"+a;var o=BI.getWeekNumber(e),s=BI.getQuarter(e),c=e.getDay(),u={},l=e.getHours(),d=12<=l,p=d?l-12:l,f=BI.getDayOfYear(e);0==p&&(p=12);var _=e.getMinutes(),h=e.getSeconds();u["%a"]=BI.Date._SDN[c],u["%A"]=BI.Date._DN[c],u["%b"]=BI.Date._SMN[n],u["%B"]=BI.Date._MN[n],u["%C"]=1+Math.floor(i/100),u["%d"]=r<10?"0"+r:r,u["%e"]=r,u["%H"]=l<10?"0"+l:l,u["%I"]=p<10?"0"+p:p,u["%j"]=f<100?f<10?"00"+f:"0"+f:f,u["%k"]=l+"",u["%l"]=p+"",u["%X"]=n<9?"0"+(1+n):1+n,u["%x"]=n+1,u["%M"]=_<10?"0"+_:_,u["%n"]="\n",u["%p"]=d?"PM":"AM",u["%P"]=d?"pm":"am",u["%s"]=Math.floor(e.getTime()/1e3),u["%S"]=h<10?"0"+h:h,u["%t"]="\t",u["%U"]=u["%W"]=u["%V"]=o<10?"0"+o:o,u["%u"]=c+1,u["%w"]=c,u["%y"]=a.substr(2,2),u["%Y"]=a,u["%%"]="%",u["%Q"]=s;var g=/%./g;if(BI.isKhtml=BI.isKhtml||function(){return!!_global.navigator&&/Konqueror|Safari|KHTML/i.test(navigator.userAgent)},!(-1===t.indexOf("%Y")&&-1===t.indexOf("%y")||-1===t.indexOf("%W")&&-1===t.indexOf("%U")&&-1===t.indexOf("%V")))switch(o){case 1:11===n&&(u["%y"]=parseInt(u["%y"])+1,u["%Y"]=parseInt(u["%Y"])+1);break;case 53:0===n&&(u["%y"]=parseInt(u["%y"])-1,u["%Y"]=parseInt(u["%Y"])-1)}if(!BI.isKhtml())return t.replace(g,function(e){return u[e]||e});for(var m=t.match(g),y=0;y<m.length;y++){var b=u[m[y]];b&&(g=new RegExp(m[y],"g"),t=t.replace(g,b))}return t}})},function(e,t){BI.Func=BI.Func||{},_.extend(BI.Func,{createDistinctName:function(e,n){var t=n,r=1;for(n=n||"";!BI.every(e,function(e,t){return BI.isKey(t)?t!==n:t.name!==n});)n=t+r++;return n},getGBWidth:function(e){return e=(e+="").replace(/[^\x00-\xff]/g,"xx"),Math.ceil(e.length/2)},getSearchResult:function(e,n,r){var i,a,o,s=BI.isArray(e);if(e=s?BI.flatten(e):e,r=r||"text",!BI.isKey(n))return{find:BI.deepClone(e),match:s?[]:{}};n=BI.toUpperCase(n);var c=s?[]:{},u=s?[]:{};return BI.each(e,function(e,t){BI.isNull(t)||(t=BI.deepClone(t),i=BI.stripEL(t),a=BI.find([i[r],i.text,i.value,i.name,i],function(e,t){return BI.isNotNull(t)}),BI.isNull(a)||BI.isObject(a)||(o=BI.makeFirstPY(a,{splitChar:""}),a=BI.toUpperCase(a),o=BI.toUpperCase(o),-1<a.indexOf(n)?a===n?s?c.push(t):c[e]=t:s?u.push(t):u[e]=t:-1<o.indexOf(n)&&(a===n||n.length===a.length?s?c.push(t):c[e]=t:s?u.push(t):u[e]=t)))}),{match:c,find:u}},getSortedResult:function(e,u){var l=BI.isFunction(u)?u:function(e,t){return BI.isNotNull(t)?e[t]:BI.isNotNull(e.text)?e.text:BI.isNotNull(e.value)?e.value:e};return e.sort(function(e,t){var n=l(e,u),r=l(t,u);if(BI.isNull(n)&&BI.isNull(r))return 0;if(BI.isNull(n))return-1;if(BI.isNull(r))return 1;if(n===r)return 0;for(var i=n.length,a=r.length,o=0;o<i&&o<a;o++){var s=n[o],c=r[o];if(s!==c)return(BI.isNull(BI.CODE_INDEX[s])?BI.MAX:BI.CODE_INDEX[s])-(BI.isNull(BI.CODE_INDEX[c])?BI.MAX:BI.CODE_INDEX[c])}return i-a})}}),_.extend(BI,{beforeFunc:function(e,t){var n=e;return function(){return!1!==t.apply(e,arguments)&&n.apply(e,arguments)}},afterFunc:function(t,n){var r=t;return function(){var e=r.apply(t,arguments);return!1!==e&&(n.apply(t,arguments),e)}}})},function(e,t){_.extend(BI,{add:function(e,t){return function(e,t){var n,r,i,a;try{n=e.toString().split(".")[1].length}catch(s){n=0}try{r=t.toString().split(".")[1].length}catch(s){r=0}{var o;a=Math.abs(n-r),i=Math.pow(10,Math.max(n,r)),t=0<a?(o=Math.pow(10,a),r<n?(e=Number(e.toString().replace(".","")),Number(t.toString().replace(".",""))*o):(e=Number(e.toString().replace(".",""))*o,Number(t.toString().replace(".","")))):(e=Number(e.toString().replace(".","")),Number(t.toString().replace(".","")))}return(e+t)/i}(t,e)},sub:function(e,t){var n,r,i;try{n=e.toString().split(".")[1].length}catch(a){n=0}try{r=t.toString().split(".")[1].length}catch(a){r=0}return i=Math.pow(10,Math.max(n,r)),((e*i-t*i)/i).toFixed(r<=n?n:r)},mul:function(e,t){return function(e,t){var n=0,r=e.toString(),i=t.toString();try{n+=r.split(".")[1].length}catch(a){}try{n+=i.split(".")[1].length}catch(a){}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)}(t,e)},div:function(e,t){return i(e,t);function s(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-(t[1]||0);return 0<n?n:0}function c(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=s(e);return 0<t?e*Math.pow(10,t):e}function u(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(0<n.length)return u.apply(void 0,[u(e,t),n[0]].concat(n.slice(1)));var i=c(e),a=c(t),o=s(e)+s(t);return i*a/Math.pow(10,o)}function i(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return 0<n.length?i.apply(void 0,[i(e,t),n[0]].concat(n.slice(1))):u(c(e)/c(t),Math.pow(10,s(t)-s(e)))}}})},function(e,t){_.extend(BI,{startWith:function(e,t){return e=e||"",!(null==t||""==t||0===e.length||t.length>e.length)&&e.substr(0,t.length)==t},endWith:function(e,t){return!(null==t||""==t||0===e.length||t.length>e.length)&&e.substring(e.length-t.length)==t},getQuery:function(e,t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),r=e.substr(e.indexOf("?")+1).match(n);return r?unescape(r[2]):null},appendQuery:function(e,t){if(!t)return e;var n=e;return-1===n.indexOf("?")&&(n+="?"),!1!==BI.endWith(n,"?")||(n+="&"),_.each(t,function(e,t){"string"==typeof t&&(n+=t+"="+e+"&")}),n=n.substr(0,n.length-1)},replaceAll:function(e,t,n){return BI.isString(e)?e.replace(new RegExp(t,"gm"),n):e},perfectStart:function(e,t){return BI.startWith(e,t)?e:t+e},allIndexOf:function(e,t){if("string"!=typeof t)return[];for(var n=[],r=0;0<e.length;){var i=e.indexOf(t);if(-1===i)break;n.push(r+i),e=e.substring(i+t.length,e.length),r+=i+t.length}return n}})},function(e,t){var o;o={},_.extend(BI,{addI18n:function(e){BI.extend(o,e)},i18nText:function(e){a=(a=o[e]||BI.i18n&&BI.i18n[e]||"")||e;var t=arguments.length;if(1<t){if(!(-1<a.indexOf("{R1}"))){var n=Array.prototype.slice.call(arguments),r=1;return BI.replaceAll(a,"\\{\\s*\\}",function(){return n[r++]+""})}for(var i=1;i<t;i++)var e="{R"+i+"}",a=BI.replaceAll(a,e,arguments[i]+"")}return a}})},function(e,t){!function(){var n={};BI.module=BI.module||function(e,t){null!=n[e]&&_global.console&&console.error("module:["+e+"] has been registed"),n[e]=t};var r={};BI.constant=BI.constant||function(e,t){null!=r[e]&&_global.console&&console.error("constant:["+e+"] has been registed"),r[e]=t};var i={};BI.model=BI.model||function(e,t){null!=i[e]&&_global.console&&console.error("model:["+e+"] has been registed"),i[e]=t};var a={};BI.store=BI.store||function(e,t){null!=a[e]&&_global.console&&console.error("store:["+e+"] has been registed"),a[e]=t};var o={};BI.service=BI.service||function(e,t){null!=o[e]&&_global.console&&console.error("service:["+e+"] has been registed"),o[e]=t};var s={};BI.provider=BI.provider||function(e,t){null!=s[e]&&_global.console&&console.error("provider:["+e+"] has been registed"),s[e]=t};var c={};BI.config=BI.config||function(n,e,t){if(BI.initialized)return r[n]?r[n]=e(r[n]):s[n]?(h[n]||(h[n]=new s[n]),g[n]&&delete g[n],e(h[n])):BI.Plugin.configWidget(n,e,t);c[n]||(c[n]=[],BI.prepares.push(function(){for(var e=c[n],t=0;t<e.length;t++)r[n]?r[n]=e[t](r[n]):s[n]?(h[n]||(h[n]=new s[n]),g[n]&&delete g[n],e[t](h[n])):BI.Plugin.configWidget(n,e[t]);c[n]=null})),c[n].push(e)},BI.getReference=BI.getReference||function(e,t){return BI.Plugin.registerObject(e,t)};var u={},l=[];BI.action=BI.action||function(t,n){return BI.isFunction(t)?(l.push(t),function(){BI.remove(l,function(e){return l.indexOf(n)===e})}):(u[t]||(u[t]=[]),u[t].push(n),function(){BI.remove(u[t],function(e){return u[t].indexOf(n)===e}),0===u[t].length&&delete u[t]})};var d={};BI.point=BI.point||function(e,t,n,r){d[e]||(d[e]={}),d[e][t]||(d[e][t]={}),d[e][t][r?"after":"before"]||(d[e][t][r?"after":"before"]=[]),d[e][t][r?"after":"before"].push(n)},BI.Modules=BI.Modules||{getModule:function(e){return n[e]?n[e]:(_global.console&&console.error("module:["+e+"] does not exists"),!1)},getAllModules:function(){return n}},BI.Constants=BI.Constants||{getConstant:function(e){return r[e]}};var p=function(a,e){e=BI.isArray(e)?e:[e],BI.each(e,function(e,t){if(d[t])for(var n in d[t]){var r=d[t][n].before;r&&BI.aspect.before(a,n,function(r){return function(){for(var e=0,t=r.length;e<t;e++)try{r[e].apply(a,arguments)}catch(n){_global.console&&console.error(n)}}}(r));var i=d[t][n].after;i&&BI.aspect.after(a,n,function(r){return function(){for(var e=0,t=r.length;e<t;e++)try{r[e].apply(a,arguments)}catch(n){_global.console&&console.error(n)}}}(i))}})};BI.Models=BI.Models||{getModel:function(e,t){var n=new i[e](t);return n._constructor&&n._constructor(t),n.mixins&&p(n,n.mixins),p(n,e),n}};var f={};BI.Stores=BI.Stores||{getStore:function(e,t){if(f[e])return f[e];var n=f[e]=new a[e](t);return n._constructor&&n._constructor(t,function(){delete f[e]}),p(n,e),n}};var _={};BI.Services=BI.Services||{getService:function(e,t){return _[e]||(_[e]=new o[e](t),p(_[e],e)),_[e]}};var h={},g={};BI.Providers=BI.Providers||{getProvider:function(e,t){return h[e]||(h[e]=new s[e]),g[e]||(g[e]=new(h[e].$get())(t)),g[e]}},BI.Actions=BI.Actions||{runAction:function(e,r,i){BI.each(u[e],function(e,t){try{t(r,i)}catch(n){_global.console&&console.error(n)}})},runGlobalAction:function(){var r=[].slice.call(arguments);BI.each(l,function(e,t){try{t.apply(null,r)}catch(n){_global.console&&console.error(n)}})}},BI.getResource=BI.getResource||function(e,t){return r[e]?BI.Constants.getConstant(e):i[e]?BI.Models.getModel(e,t):a[e]?BI.Stores.getStore(e,t):o[e]?BI.Services.getService(e,t):s[e]?BI.Providers.getProvider(e,t):void 0}}()},function(e,t){_.extend(BI,{MAX:0x1000000000000000,MIN:-0x1000000000000000,EVENT_RESPONSE_TIME:200,zIndex_layer:1e5,zIndex_popover:1e6,zIndex_popup:1e7,zIndex_masker:1e8,zIndex_tip:1e9,emptyStr:"",emptyFn:function(){},empty:null,Key:{48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/"},KeyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},Status:{SUCCESS:1,WRONG:2,START:3,END:4,WAITING:5,READY:6,RUNNING:7,OUTOFBOUNDS:8,NULL:-1},Direction:{Top:"top",Bottom:"bottom",Left:"left",Right:"right",Custom:"custom"},Axis:{Vertical:"vertical",Horizontal:"horizontal"},Selection:{Default:-2,None:-1,Single:0,Multi:1,All:2},HorizontalAlign:{Left:"left",Right:"right",Center:"center",Stretch:"stretch"},VerticalAlign:{Middle:"middle",Top:"top",Bottom:"bottom",Stretch:"stretch"},StartOfWeek:1})},function(e,t){var n;n={},BI.BufferPool={put:function(e,t){if(BI.isNotNull(n[e]))throw new Error("Buffer Pool has the key already!");n[e]=t},get:function(e){return n[e]}}},function(e,t){var r;r={},BI.SharingPool={_Shared:r,put:function(e,t){r[e]=t},cat:function(){for(var e=Array.prototype.slice.call(arguments,0),t=r,n=0;n<e.length;n++)t=t&&t[e[n]];return t},get:function(){return BI.deepClone(this.cat.apply(this,arguments))},remove:function(e){delete r[e]}}},function(e,t){BI.Req={}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(68)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var s=n(68),r=n(1141),c=n(167),u=n(166),l=n(1161),i=n(1178),a=n(934),o=a.get,d=a.enforce,p=String(i).split("toString");r("inspectSource",function(e){return i.call(e)}),(e.exports=function(e,t,n,r){var i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,o=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||u(n,"name")||c(n,"name",t),d(n).source=p.join("string"==typeof t?t:"")),e!==s?(i?!o&&e[t]&&(a=!0):delete e[t],a?e[t]=n:c(e,t,n)):a?e[t]=n:l(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||i.call(this)})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){!function(){function e(n,e){var t,r=n.options[e]||n[e];r&&(t=BI.isArray(r)?r:[r],BI.each(t,function(e,t){t.call(n)}))}BI.Widget=BI.Widget||BI.inherit(BI.OB,{_defaultConfig:function(){return BI.extend(BI.Widget.superclass._defaultConfig.apply(this),{root:!1,tagName:"div",attributes:null,data:null,tag:null,disabled:!1,invisible:!1,invalid:!1,baseCls:"",extraCls:"",cls:"",css:null})},_constructor:function(){this.setup&&(function(e){i&&r.push(i);BI.Widget.current=i=e}(this),this.render=this.setup(),BI.Widget.current=i=r.pop())},_lazyConstructor:function(){this._constructed||(this._constructed=!0,this._init(),this._initRef())},beforeInit:null,beforeCreate:null,created:null,render:null,beforeMount:null,mounted:null,shouldUpdate:null,update:function(){},beforeDestroy:null,destroyed:null,_init:function(){BI.Widget.superclass._init.apply(this,arguments),this._initElementWidth(),this._initElementHeight(),this._initVisual(),this._initState(),this._initRender()},_initRender:function(){this.options.beforeInit||this.beforeInit?(this.__asking=!0,(this.options.beforeInit||this.beforeInit).call(this,BI.bind(this._render,this)),!0===this.__asking&&(this.__async=!0)):this._render()},_render:function(){this.__asking=!1,e(this,"beforeCreate"),this._initElement(),this._initEffects(),e(this,"created")},_initRoot:function(){var e=this.options;this.widgetName=e.widgetName||BI.uniqueId("widget"),this._isRoot=e.root,this._children={},BI.isWidget(e.element)?(this.element=this.options.element.element,e.element instanceof BI.Widget?(this._parent=e.element,this._parent.addWidget(this.widgetName,this)):this._isRoot=!0):e.element?(this.element=BI.Widget._renderEngine.createElement(this),this._isRoot=!0):this.element=BI.Widget._renderEngine.createElement(this),this.element._isWidget=!0,(e._baseCls||e.baseCls||e.extraCls||e.cls)&&this.element.addClass((e._baseCls||"")+" "+(e.baseCls||"")+" "+(e.extraCls||"")+" "+(e.cls||"")),e.attributes&&this.element.attr(e.attributes),e.data&&this.element.data(e.data),e.css&&this.element.css(e.css)},_initElementWidth:function(){var e=this.options;BI.isWidthOrHeight(e.width)&&this.element.css("width",e.width)},_initElementHeight:function(){var e=this.options;BI.isWidthOrHeight(e.height)&&this.element.css("height",e.height)},_initVisual:function(){this.options.invisible&&this.element.css("display","none")},_initEffects:function(){var e=this.options;(e.disabled||e.invalid)&&(this.options.disabled&&this.setEnable(!1),this.options.invalid&&this.setValid(!1))},_initState:function(){this._isMounted=!1},_initElement:function(){var n=this,e=BI.isFunction(this.options.render)?this.options.render:this.render,t=e&&e.call(this);BI.isPlainObject(t)&&(t=[t]),BI.isArray(t)&&BI.each(t,function(e,t){BI._lazyCreateWidget(t,{element:n})}),this._mount()},_setParent:function(e){this._parent=e},_mount:function(n,r,i,a){var o=this;return!!(n||!this._isMounted&&this.isVisible()&&!0!==this.__asking&&(!0===this._isRoot||this._parent&&!0===this._parent._isMounted))&&(!1!==i&&e(this,"beforeMount"),this._isMounted=!0,this._mountChildren&&this._mountChildren(),BI.each(this._children,function(e,t){o.isEnabled()||t._setEnable(!1),o.isValid()||t._setValid(!1),t._mount&&t._mount(!!r&&n,r,i,a)}),!1!==i&&e(this,"mounted"),this.fireEvent(BI.Events.MOUNT),a&&a(this),!0)},_mountChildren:null,isMounted:function(){return this._isMounted},setWidth:function(e){this.options.width=e,this._initElementWidth()},setHeight:function(e){this.options.height=e,this._initElementHeight()},_setEnable:function(n){!0===n?this.options.disabled=!1:!1===n&&(this.options.disabled=!0),BI.each(this._children,function(e,t){!t._manualSetEnable&&t._setEnable&&t._setEnable(n)})},_setValid:function(n){!0===n?this.options.invalid=!1:!1===n&&(this.options.invalid=!0),BI.each(this._children,function(e,t){!t._manualSetValid&&t._setValid&&t._setValid(n)})},_setVisible:function(e){!0===e?this.options.invisible=!1:!1===e&&(this.options.invisible=!0)},setEnable:function(e){this._manualSetEnable=!0,this._setEnable(e),!0===e?this.element.removeClass("base-disabled disabled"):!1===e&&this.element.addClass("base-disabled disabled")},setVisible:function(e){this._setVisible(e),!0===e?(this.element.css("display",""),this._mount()):!1===e&&this.element.css("display","none"),this.fireEvent(BI.Events.VIEW,e)},setValid:function(e){this._manualSetValid=!0,this._setValid(e),!0===e?this.element.removeClass("base-invalid invalid"):!1===e&&this.element.addClass("base-invalid invalid")},doBehavior:function(){var n=arguments;BI.each(this._children,function(e,t){t.doBehavior&&t.doBehavior.apply(t,n)})},getWidth:function(){return this.options.width},getHeight:function(){return this.options.height},isValid:function(){return!this.options.invalid},addWidget:function(e,t){var n=this;if(e instanceof BI.Widget&&(e=(t=e).getName()),BI.isKey(e)&&(e+=""),e=e||t.getName()||BI.uniqueId("widget"),this._children[e])throw new Error("name has already been existed");return t._setParent&&t._setParent(this),t.on(BI.Events.DESTROY,function(){BI.remove(n._children,this)}),this._children[e]=t},getWidgetByName:function(n){if(!BI.isKey(n)||n===this.getName())return this;n+="";var r=void 0,i={};return BI.any(this._children,function(e,t){return e===n?(r=t,!0):void(i[e]=t)}),r||BI.any(i,function(e,t){return r=t.getWidgetByName(e)}),r},removeWidget:function(e){BI.isWidget(e)?BI.remove(this._children,e):delete this._children[e]},hasWidget:function(e){return null!=this._children[e]},getName:function(){return this.widgetName},setTag:function(e){this.options.tag=e},getTag:function(){return this.options.tag},attr:function(e,t){var n=this;if(!BI.isPlainObject(e))return BI.isNotNull(t)?this.options[e]=t:this.options[e];BI.each(e,function(e,t){n.attr(e,t)})},css:function(e,t){return this.element.css(e,t)},getText:function(){},setText:function(e){},getValue:function(){},setValue:function(e){},isEnabled:function(){return!this.options.disabled},isVisible:function(){return!this.options.invisible},disable:function(){this.setEnable(!1)},enable:function(){this.setEnable(!0)},valid:function(){this.setValid(!0)},invalid:function(){this.setValid(!1)},invisible:function(){this.setVisible(!1)},visible:function(){this.setVisible(!0)},__d:function(){e(this,"beforeDestroy"),this.beforeDestroy=null,BI.each(this._children,function(e,t){t&&t._unMount&&t._unMount()}),this._children={},this._parent=null,this._isMounted=!1,e(this,"destroyed"),this.destroyed=null},_unMount:function(){this.__d(),this.fireEvent(BI.Events.UNMOUNT),this.purgeListeners()},isolate:function(){this._parent&&this._parent.removeWidget(this),BI.DOM.hang([this])},empty:function(){BI.each(this._children,function(e,t){t&&t._unMount&&t._unMount()}),this._children={},this.element.empty()},_destroy:function(){this.__d(),this.element.destroy(),this.purgeListeners()},destroy:function(){this.__d(),this.element.destroy(),this.fireEvent(BI.Events.UNMOUNT),this.fireEvent(BI.Events.DESTROY),this._purgeRef(),this.purgeListeners()}});var t=null,i=null,n=[],r=[];BI.Widget.pushContext=function(e){t&&n.push(t),BI.Widget.context=t=e},BI.Widget.popContext=function(){BI.Widget.context=t=n.pop()},BI.useStore=function(t){if(i&&i.store)return i.store;if(i&&i.$storeDelegate)return i.$storeDelegate;if(i){var r,n={};if(_global.Proxy){var e=new Proxy(n,{get:function(e,t){return Reflect.get(r,t)},set:function(e,t,n){return Reflect.set(r,t,n)}});return i._store=function(){return r=t.apply(this,arguments)},i.$storeDelegate=e}return i._store=function(){var e=t.apply(this,arguments);return BI.extend(n,e),e},i.$storeDelegate=n}},BI.watch=function(e,t){BI.Widget.current&&(BI.Widget.current.$watchDelayCallbacks||(BI.Widget.current.$watchDelayCallbacks=[]),BI.Widget.current.$watchDelayCallbacks.push([e,t]))},BI.onBeforeMount=function(e){i&&(i.beforeMount?BI.isArray(i.beforeMount)||(i.beforeMount=[i.beforeMount]):i.beforeMount=[],i.beforeMount.push(e))},BI.onMounted=function(e){i&&(i.mounted?BI.isArray(i.mounted)||(i.mounted=[i.mounted]):i.mounted=[],i.mounted.push(e))},BI.onBeforeUnmount=function(e){i&&(i.beforeDestroy?BI.isArray(i.beforeDestroy)||(i.beforeDestroy=[i.beforeDestroy]):i.beforeDestroy=[],i.beforeDestroy.push(e))},BI.onUnmounted=function(e){i&&(i.destroyed?BI.isArray(i.destroyed)||(i.destroyed=[i.destroyed]):i.destroyed=[],i.destroyed.push(e))},BI.Widget.registerRenderEngine=function(e){BI.Widget._renderEngine=e},BI.Widget.registerRenderEngine({createElement:function(e){if(BI.isWidget(e)){var t=e.options;return t.element?BI.$(t.element):t.tagName?BI.$(document.createElement(t.tagName)):BI.$(document.createDocumentFragment())}return BI.$(e)},createFragment:function(){return document.createDocumentFragment()}}),BI.mount=function(e,t,n,r){if(!0!==r)return t&&BI.Widget._renderEngine.createElement(t).append(e.element),e._mount(!0,!1,!1,n);e.element.data("__widgets",[e]);var i=e._mount(!0,!1,!1,function(e){BI.each(e._children,function(e,t){var n=t.element.data("__widgets");(n=n||[]).push(t),t.element.data("__widgets",n)}),n&&n.apply(this,arguments)}),a=BI.Widget._renderEngine.createElement;BI.DOM.patchProps(e.element,a(a(t).children()[0]));var o=function(e){e.beforeMount&&e.beforeMount(),e.mounted&&e.mounted(),BI.each(e._children,function(e,t){o(t)})};return o(e),i}}()},function(e,t){!function(){var o={};BI.shortcut=BI.component=BI.shortcut||function(e,t){null!=o[e]&&_global.console&&console.error("shortcut:["+e+"] has been registed"),t&&(t.xtype=e),o[e]=t};var s=function(e,t,n){var r=o[e.type];if(!r)throw new Error("组件"+e.type+"未定义");var i=!1;t&&(i=!0,BI.Widget.pushContext(t));var a=new r;return a._initProps(e),a._initRoot(),a._lazyConstructor(),i&&BI.Widget.popContext(),a};BI.createWidget=BI.createWidget||function(e,t,n,r){var i,a;if(BI.init(),e=e||{},t=BI.isWidget(t)?(n=t,{}):t||{},BI.isEmpty(e)&&BI.isEmpty(t))return BI.createWidget({type:"bi.layout"});if(BI.isWidget(e))return e;if(e.type||t.type)return i=BI.extend({},t,e),(a=BI.Plugin.getWidget(i.type,i)).listeners=(a.listeners||[]).concat([{eventName:BI.Events.MOUNT,action:function(){BI.Plugin.getObject(i.type,this)}}]),a.type===i.type?s(a,n):BI.createWidget(BI.extend({},e,{type:a.type}),t,n,r);if(e.el&&(e.el.type||t.type))return i=BI.extend({},t,e.el),(a=BI.Plugin.getWidget(i.type,i)).listeners=(a.listeners||[]).concat([{eventName:BI.Events.MOUNT,action:function(){BI.Plugin.getObject(i.type,this)}}]),a.type===i.type?s(a,n):BI.createWidget(BI.extend({},e,{type:a.type}),t,n,r);if(BI.isWidget(e.el))return e.el;throw new Error("无法根据item创建组件")},BI._lazyCreateWidget=BI._lazyCreateWidget||function(e,t,n){return BI.createWidget(e,t,n,!0)},BI.createElement=BI.createElement||function(){return BI.createWidget.apply(this,arguments).element}}()},function(e,t){var n,r;n=_global.cancelAnimationFrame||_global.webkitCancelAnimationFrame||_global.mozCancelAnimationFrame||_global.oCancelAnimationFrame||_global.msCancelAnimationFrame||_global.clearTimeout,r=_global.requestAnimationFrame||_global.webkitRequestAnimationFrame||_global.mozRequestAnimationFrame||_global.oRequestAnimationFrame||_global.msRequestAnimationFrame||_global.setTimeout,BI.MouseMoveTracker=function(e,t,n){this._isDragging=!1,this._animationFrameID=null,this._domNode=n,this._onMove=e,this._onMoveEnd=t,this._onMouseMove=BI.bind(this._onMouseMove,this),this._onMouseUp=BI.bind(this._onMouseUp,this),this._didMouseMove=BI.bind(this._didMouseMove,this)},BI.MouseMoveTracker.prototype={constructor:BI.MouseMoveTracker,captureMouseMoves:function(e){this._eventMoveToken||this._eventUpToken||(this._eventMoveToken=BI.EventListener.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=BI.EventListener.listen(this._domNode,"mouseup",this._onMouseUp)),this._isDragging||(this._deltaX=0,this._deltaY=0,this._isDragging=!0,this._x=e.clientX,this._y=e.clientY),e.preventDefault?e.preventDefault():e.returnValue=!1},releaseMouseMoves:function(){this._eventMoveToken&&this._eventUpToken&&(this._eventMoveToken.remove(),this._eventMoveToken=null,this._eventUpToken.remove(),this._eventUpToken=null),null!==this._animationFrameID&&(n(this._animationFrameID),this._animationFrameID=null),this._isDragging&&(this._isDragging=!1,this._x=null,this._y=null)},isDragging:function(){return this._isDragging},_onMouseMove:function(e){var t=e.clientX,n=e.clientY;this._deltaX+=t-this._x,this._deltaY+=n-this._y,null===this._animationFrameID&&(this._animationFrameID=r(this._didMouseMove)),this._x=t,this._y=n,e.preventDefault?e.preventDefault():e.returnValue=!1},_didMouseMove:function(){this._animationFrameID=null,this._onMove(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0},_onMouseUp:function(){this._animationFrameID&&this._didMouseMove(),this._onMoveEnd()}}},function(e,t){var p;p=_global.requestAnimationFrame||_global.webkitRequestAnimationFrame||_global.mozRequestAnimationFrame||_global.oRequestAnimationFrame||_global.msRequestAnimationFrame||_global.setTimeout,BI.WheelHandler=function(e,t,n,r){this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=BI.bind(this._didWheel,this),"function"!=typeof t&&(t=t?function(){return!0}:function(){return!1}),"function"!=typeof n&&(n=n?function(){return!0}:function(){return!1}),"function"!=typeof r&&(r=r?function(){return!0}:function(){return!1}),this._handleScrollX=t,this._handleScrollY=n,this._stopPropagation=r,this._onWheelCallback=e,this.onWheel=BI.bind(this.onWheel,this)},BI.WheelHandler.prototype={constructor:BI.WheelHandler,onWheel:function(e){var t,n,r,i,a,o,s=(a=i=r=n=0,"detail"in(t=e)&&(r=t.detail),"wheelDelta"in t&&(r=-t.wheelDelta/120),"wheelDeltaY"in t&&(r=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(n=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(n=r,r=0),i=10*n,a=10*r,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(i=t.deltaX),(i||a)&&t.deltaMode&&(1===t.deltaMode?(i*=40,a*=40):(i*=800,a*=800)),i&&!n&&(n=i<1?-1:1),a&&!r&&(r=a<1?-1:1),{spinX:n,spinY:r,pixelX:i,pixelY:a}),c=this._deltaX+s.pixelX,u=this._deltaY+s.pixelY,l=this._handleScrollX(c,u),d=this._handleScrollY(u,c);(l||d)&&(this._deltaX+=l?s.pixelX:0,this._deltaY+=d?s.pixelY:0,e.preventDefault?e.preventDefault():e.returnValue=!1,0===this._deltaX&&0===this._deltaY||(this._stopPropagation()&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0),o=!0),!0===o&&null===this._animationFrameID&&(this._animationFrameID=p(this._didWheel)))},_didWheel:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}}},function(e,t){BI.BehaviorFactory={createBehavior:function(e,t){var n;switch(e){case"highlight":n=BI.HighlightBehavior;break;case"redmark":n=BI.RedMarkBehavior}return new n(t)}},BI.Behavior=BI.inherit(BI.OB,{_defaultConfig:function(){return BI.extend(BI.Behavior.superclass._defaultConfig.apply(this,arguments),{rule:function(){return!0}})},_init:function(){BI.Behavior.superclass._init.apply(this,arguments)},doBehavior:function(){}})},function(e,t){BI.Layout=BI.inherit(BI.Widget,{props:function(){return{scrollable:null,scrollx:!1,scrolly:!1,items:[]}},render:function(){this._init4Margin(),this._init4Scroll()},_init4Margin:function(){this.options.top&&this.element.css("top",this.options.top),this.options.left&&this.element.css("left",this.options.left),this.options.bottom&&this.element.css("bottom",this.options.bottom),this.options.right&&this.element.css("right",this.options.right)},_init4Scroll:function(){switch(this.options.scrollable){case!0:this.element.css("overflow","auto");break;case!1:this.element.css("overflow","hidden")}this.options.scrollx&&this.element.css({"overflow-x":"auto","overflow-y":"hidden"}),this.options.scrolly&&this.element.css({"overflow-x":"hidden","overflow-y":"auto"})},appendFragment:function(e){this.element.append(e)},_mountChildren:function(){var n=this,r=BI.Widget._renderEngine.createFragment(),i=!1;BI.each(this._children,function(e,t){t.element!==n.element&&(r.appendChild(t.element[0]),i=!0)}),!0===i&&this.appendFragment(r)},_getChildName:function(e){return""+e},_addElement:function(e,t,n){var r,i=this;return this.hasWidget(this._getChildName(e))?r=this.getWidgetByName(this._getChildName(e)):((r=BI._lazyCreateWidget(t,n)).on(BI.Events.DESTROY,function(){BI.each(i._children,function(e,t){t===r&&(BI.remove(i._children,t),i.removeItemAt(0|e))})}),this.addWidget(this._getChildName(e),r)),r},_getOptions:function(e){return e instanceof BI.Widget&&(e=e.options),(e=BI.stripEL(e))instanceof BI.Widget&&(e=e.options),e},_compare:function(e,t){var u=this;return function l(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var i=Object.prototype.toString.call(e);switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var a="[object Array]"===i;if(!a){if(BI.isFunction(e)&&BI.isFunction(t))return!0;e=u._getOptions(e),t=u._getOptions(t)}n=n||[];r=r||[];var o=n.length;for(;o--;)if(n[o]===e)return r[o]===t;n.push(e);r.push(t);if(a){if((o=e.length)!==t.length)return!1;for(;o--;)if(!l(e[o],t[o],n,r))return!1}else{var s,c=_.keys(e);if(o=c.length,_.keys(t).length!==o)return!1;for(;o--;)if(s=c[o],!_.has(t,s)||!l(e[s],t[s],n,r))return!1}n.pop();r.pop();return!0}(e,t)},_getWrapper:function(){return this.element},_addItemAt:function(e,t){for(var n=this.options.items.length;e<n;n--)this._children[this._getChildName(n)]=this._children[this._getChildName(n-1)];delete this._children[this._getChildName(e)],this.options.items.splice(e,0,t)},_removeItemAt:function(e){for(var t=e;t<this.options.items.length-1;t++)this._children[this._getChildName(t)]=this._children[this._getChildName(t+1)];delete this._children[this._getChildName(this.options.items.length-1)],this.options.items.splice(e,1)},addItem:function(e){return this.addItemAt(this.options.items.length,e)},prependItem:function(e){return this.addItemAt(0,e)},addItemAt:function(e,t){if(!(e<0||e>this.options.items.length)){this._addItemAt(e,t);var n=this._addElement(e,t);return 0<e?this._children[this._getChildName(e-1)].element.after(n.element):n.element.prependTo(this._getWrapper()),n._mount(),n}},removeItemAt:function(e){e=BI.isArray(e)?e:[e];for(var t=[],n=[],r={},i=0,a=this.options.items.length;i<a;i++){var o=this._children[this._getChildName(i)];BI.contains(e,i)?o&&t.push(o):(r[this._getChildName(n.length)]=o,n.push(this.options.items[i]))}this.options.items=n,this._children=r,BI.each(t,function(e,t){t._destroy()})},shouldUpdateItem:function(e,t){if(e<0||e>this.options.items.length-1)return!1;var n=this._children[this._getChildName(e)];return n.shouldUpdate?!0===n.shouldUpdate(this._getOptions(t)):null},updateItemAt:function(e,t){if(!(e<0||e>this.options.items.length-1)){var n;if(n=this._children[this._getChildName(e)].update(this._getOptions(t)))return n;var r=this._children[this._getChildName(e)];delete this._children[this._getChildName(e)],this.options.items.splice(e,1);var i=this._addElement(e,t);this.options.items.splice(e,0,t),this._children[this._getChildName(e)]=i,0<e?this._children[this._getChildName(e-1)].element.after(i.element):i.element.prependTo(this._getWrapper()),r._destroy(),i._mount()}},addItems:function(e,r){var i=this,a=this.options,o=BI.Widget._renderEngine.createFragment(),s=[];BI.each(e,function(e,t){var n=i._addElement(a.items.length,t,r);i._children[i._getChildName(a.items.length)]=n,a.items.push(t),s.push(n),o.appendChild(n.element[0])}),this._isMounted&&(this._getWrapper().append(o),BI.each(s,function(e,t){t._mount()}))},prependItems:function(e,t){e=e||[];for(var n=BI.Widget._renderEngine.createFragment(),r=[],i=e.length-1;0<=i;i--){this._addItemAt(0,e[i]);var a=this._addElement(0,e[i],t);this._children[this._getChildName(0)]=a,this.options.items.unshift(e[i]),r.push(a),n.appendChild(a.element[0])}this._isMounted&&(this._getWrapper().prepend(n),BI.each(r,function(e,t){t._mount()}))},getValue:function(){var n,r=this,i=[];return BI.each(this.options.items,function(e){var t;(n=r._children[r._getChildName(e)])&&(t=n.getValue(),t=BI.isArray(t)?t:[t],i=i.concat(t))}),i},setValue:function(t){var n,r=this;BI.each(this.options.items,function(e){(n=r._children[r._getChildName(e)])&&n.setValue(t)})},setText:function(t){var n,r=this;BI.each(this.options.items,function(e){(n=r._children[r._getChildName(e)])&&n.setText(t)})},patchItem:function(e,t,n){var r=this.shouldUpdateItem(n,t);if(!0===r||null===r&&!this._compare(e,t))return this.updateItemAt(n,t)},updateChildren:function(n,e){var r,i,s=this,t=0,a=0,o=n.length-1,c=n[0],u=n[o],l=e.length-1,d=e[0],p=e[l],f={};for(BI.each(n,function(e,t){var n=null==(t=s._getOptions(t)).key?e:t.key;BI.isKey(n)&&(f[n]=s._children[s._getChildName(e)])});t<=o&&a<=l;){BI.isNull(c)?c=n[++t]:BI.isNull(u)?u=n[--o]:_(c,d,t,a)?(r=this.patchItem(c,d,t)||r,f[null==c.key?t:c.key]=this._children[this._getChildName(t)],c=n[++t],d=e[++a]):_(u,p,o,l)?(r=this.patchItem(u,p,o)||r,f[null==u.key?o:u.key]=this._children[this._getChildName(o)],u=n[--o],p=e[--l]):_(c,p)?(r=this.patchItem(c,p,t)||r,f[null==c.key?t:c.key]=this._children[this._getChildName(t)],g(c,u,!0),c=n[++t],p=e[--l]):d=(_(u,d)?(r=this.patchItem(u,d,o)||r,f[null==u.key?o:u.key]=this._children[this._getChildName(o)],g(u,c),u=n[--o]):(i=function(e,t,n,r){var i,a;for(i=n;i<=r;++i)e[i]&&_(e[i],t)&&(a=e[i]);return a}(n,d,t,o),BI.isNull(i)?g(h(d),c):BI.each(n,function(e,t){t&&_(t,d)&&(r=s.patchItem(i,d,e)||r,f[null==i.key?e:i.key]=s._children[s._getChildName(e)],n[e]=undefined,g(i,c))})),e[++a])}function _(e,t,n,r){return e=s._getOptions(e),t=s._getOptions(t),BI.isKey(e.key)?e.key===t.key:0<=n&&n===r}function h(e,t){var n=s._getOptions(e),r=null==n.key?t:n.key;return f[r]=s._addElement(r,e)}function g(e,t,n,r){e=s._getOptions(e),t=t&&s._getOptions(t);var i,a,o=BI.isKey(e.key)?e.key:r;t&&f[t.key]?(i=BI.isKey(t.key)?t.key:r,0<(a=n?f[i].element.next():f[i].element).length?a.before(f[o].element):s._getWrapper().append(f[o].element)):s._getWrapper().append(f[o].element)}return o<t?function(e,t,n,r){for(;n<=r;++n){g(h(t[n],n),e,!1,n)}}(BI.isNull(e[l+1])?null:e[l+1],e,a,l):l<a&&function(e,t,n){for(;t<=n;++t){var r,i,a=e[t];BI.isNotNull(a)&&(r=s._getOptions(a),i=null==r.key?t:r.key,delete s._children[s._getChildName(i)],f[i]._destroy())}}(n,t,o),this._children={},BI.each(e,function(e,t){var n=s._getOptions(t),r=null==n.key?e:n.key;f[r]._mount(),s._children[s._getChildName(e)]=f[r]}),r},update:function(e){var t=this.options,n=e.items||[],r=this.updateChildren(t.items,n);return this.options.items=n,r},stroke:function(e){var n=this;BI.each(e,function(e,t){t&&n._addElement(e,t)})},removeWidget:function(n){var r;BI.isWidget(n)?BI.each(this._children,function(e,t){t===n&&(r=e)}):r=n,r&&this._removeItemAt(0|r)},empty:function(){BI.Layout.superclass.empty.apply(this,arguments),this.options.items=[]},destroy:function(){BI.Layout.superclass.destroy.apply(this,arguments),this.options.items=[]},populate:function(e){this.options;e=e||[],this._isMounted?this.update({items:e}):(this.options.items=e,this.stroke(e))},resize:function(){}}),BI.shortcut("bi.layout",BI.Layout)},function(e,t){var a,o,s,c,u;BI.Plugin=BI.Plugin||{},a={},o={},s={},c=[],u=[],BI.defaults(BI.Plugin,{getWidget:function(e,t){if(0<c.length)for(var n=c.slice(0),r=n.length-1;0<=r;r--)n[r](e,t);var i;if(s[e])for(r=s[e].length-1;0<=r;r--)(i=s[e][r](t))&&(t=i);if(a[e])for(r=a[e].length-1;0<=r;r--)if(i=a[e][r](t))return i;return t},config:function(e,t){c=c.concat(_.isArray(e)?e:[e]),u=u.concat(_.isArray(t)?t:[t])},configWidget:function(e,t,n){(!s[e]||n&&n.single)&&(s[e]=[]),s[e].push(t)},registerWidget:function(e,t){a[e]||(a[e]=[]),0<a[e].length&&console.log("组件已经注册过了!"),a[e].push(t)},relieveWidget:function(e){delete a[e]},getObject:function(e,t){if(0<u.length)for(var n=u.slice(0),r=n.length-1;0<=r;r--)n[r](e,t);if(o[e])for(var i,r=0,a=o[e].length;r<a;r++)(i=o[e][r](t))&&(t=i);return i||t},registerObject:function(e,t){o[e]||(o[e]=[]),0<o[e].length&&console.log("对象已经注册过了!"),o[e].push(t)},relieveObject:function(e){delete o[e]}})},function(e,t){BI.Action=BI.inherit(BI.OB,{_defaultConfig:function(){return BI.extend(BI.Action.superclass._defaultConfig.apply(this,arguments),{src:null,tar:null})},_init:function(){BI.Action.superclass._init.apply(this,arguments)},actionPerformed:function(e,t,n){},actionBack:function(e,t,n){}}),BI.ActionFactory={createAction:function(e,t){var n;switch(e){case"show":n=BI.ShowAction}return new n(t)}}},function(e,t){BI.ShowAction=BI.inherit(BI.Action,{_defaultConfig:function(){return BI.extend(BI.ShowAction.superclass._defaultConfig.apply(this,arguments),{})},actionPerformed:function(e,t,n){(t=t||this.options.tar).setVisible(!0),n&&n()},actionBack:function(e,t,n){(e=e||this.options.tar).setVisible(!1),n&&n()}})},function(e,t){BI.HighlightBehavior=BI.inherit(BI.Behavior,{_defaultConfig:function(){return BI.extend(BI.HighlightBehavior.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.HighlightBehavior.superclass._init.apply(this,arguments)},doBehavior:function(e){var i=Array.prototype.slice.call(arguments,1),a=this.options;BI.each(e,function(e,t){function n(e){!0===e?t.doHighLight&&t.doHighLight.apply(t,i):t.unHighLight&&t.unHighLight.apply(t,i)}var r;t instanceof BI.Single?(r=a.rule(t.getValue(),t),BI.isFunction(r)?r(n):n(r)):t.doBehavior&&t.doBehavior.apply(t,i)})}})},function(e,t){BI.RedMarkBehavior=BI.inherit(BI.Behavior,{_defaultConfig:function(){return BI.extend(BI.RedMarkBehavior.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.RedMarkBehavior.superclass._init.apply(this,arguments)},doBehavior:function(e){var n=Array.prototype.slice.call(arguments,1),r=this.options;BI.each(e,function(e,t){t instanceof BI.Single?r.rule(t.getValue(),t)?t.doRedMark&&t.doRedMark.apply(t,n):t.doRedMark&&t.unRedMark.apply(t,n):t.doBehavior&&t.doBehavior.apply(t,n)})}})},function(e,t){BI.Controller=BI.inherit(BI.OB,{_defaultConfig:function(){return BI.extend(BI.Controller.superclass._defaultConfig.apply(this,arguments),{})}}),BI.Controller.EVENT_CHANGE="__EVENT_CHANGE__"},function(e,t){BI.BroadcastController=BI.inherit(BI.Controller,{_defaultConfig:function(){return BI.extend(BI.BroadcastController.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.BroadcastController.superclass._init.apply(this,arguments),this._broadcasts={}},on:function(e,t){var n=this;return this._broadcasts[e]||(this._broadcasts[e]=[]),this._broadcasts[e].push(t),function(){n.remove(e,t)}},send:function(e){var n=[].slice.call(arguments,1);BI.each(this._broadcasts[e],function(e,t){t.apply(null,n)})},remove:function(t,n){var r=this;return n?(BI.remove(this._broadcasts[t],function(e){return r._broadcasts[t].indexOf(n)===e}),this._broadcasts[t].remove(n),0===this._broadcasts[t].length&&delete this._broadcasts[t]):delete this._broadcasts[t],this}})},function(e,t){BI.BubblesController=BI.inherit(BI.Controller,{_defaultConfig:function(){return BI.extend(BI.BubblesController.superclass._defaultConfig.apply(this,arguments),{})},_const:{bubbleHeight:18},_init:function(){BI.BubblesController.superclass._init.apply(this,arguments);var t=this;this.fixedBubblesManager={},this.fixedStoreBubbles={},this.bubblesManager={},this.storeBubbles={},BI.Resizers.add("bubbleController"+BI.uniqueId(),function(){BI.each(t.fixedBubblesManager,function(e){t.remove(e)}),t.fixedBubblesManager={},t.fixedStoreBubbles={}})},_createBubble:function(e,t,n,r,i){return BI.createWidget({type:!1===i?"bi.bubble_view":"bi.bubble",text:t,level:n,height:r||18,direction:e})},_getOffsetLeft:function(e,t,n){var r=0;return"center"===n?((r=t.element.offset().left+(t.element.bounds().width-this.get(e).element.bounds().width)/2)<0&&(r=0),r):"right"===n?((r=t.element.offset().left+t.element.bounds().width-this.get(e).element.bounds().width)<0&&(r=0),r):t.element.offset().left},_getOffsetTop:function(e,t,n){var r=0;return"center"===n?((r=t.element.offset().top+(t.element.bounds().height-this.get(e).element.bounds().height)/2)<0&&(r=0),r):"right"===n?((r=t.element.offset().top+t.element.bounds().height-this.get(e).element.bounds().height)<0&&(r=0),r):t.element.offset().top},_getLeftPosition:function(e,t,n){var r=BI.DOM.getLeftPosition(t,this.get(e));return r.top=this._getOffsetTop(e,t,n),r},_getBottomPosition:function(e,t,n){var r=BI.DOM.getBottomPosition(t,this.get(e));return r.left=this._getOffsetLeft(e,t,n),r},_getTopPosition:function(e,t,n){var r=BI.DOM.getTopPosition(t,this.get(e));return r.left=this._getOffsetLeft(e,t,n),r},_getRightPosition:function(e,t,n){var r=BI.DOM.getRightPosition(t,this.get(e));return r.top=this._getOffsetTop(e,t,n),r},show:function(e,t,n,r){var i=(r=r||{}).container||n,a=r.offsetStyle||"left",o=r.level||"error",s=r.adjustYOffset||0,c=r.adjustXOffset||0,u=!1!==r.fixed;if(!1==u){this.storeBubbles[e]||(this.storeBubbles[e]={}),this.storeBubbles[e].top||(this.storeBubbles[e].top=this._createBubble("top",t,o,null,u)),BI.createWidget({type:"bi.absolute",element:i,items:[{el:this.storeBubbles[e].top}]}),this.set(e,this.storeBubbles[e].top);var l=this.storeBubbles[e].top,d=l.element.bounds();if(BI.DOM.isTopSpaceEnough(n,this.get(e),s)){var p=-(d.height+s);switch(a){case"center":l.element.css({left:(n.element.bounds().width-d.width)/2+c,top:p});break;case"right":l.element.css({right:c,top:p});break;default:l.element.css({left:c,top:p})}}else{var f=-(d.height+s);switch(a){case"center":l.element.css({left:(n.element.bounds().width-d.width)/2+c,bottom:f});break;case"right":l.element.css({right:c,bottom:f});break;default:l.element.css({left:c,bottom:f})}}}else{this.fixedStoreBubbles[e]||(this.fixedStoreBubbles[e]={}),this.fixedStoreBubbles[e].top||(this.fixedStoreBubbles[e].top=this._createBubble("top",t,o,null,u)),BI.createWidget({type:"bi.absolute",element:i,items:[{el:this.fixedStoreBubbles[e].top}]}),this.set(e,this.fixedStoreBubbles[e].top);var _=this._getTopPosition(e,n,a);this.get(e).element.css({left:_.left+c,top:_.top-s}),BI.DOM.isTopSpaceEnough(n,this.get(e),s)||(this.get(e).invisible(),this.fixedStoreBubbles[e].bottom||(this.fixedStoreBubbles[e].bottom=this._createBubble("bottom",t,o)),BI.createWidget({type:"bi.absolute",element:i,items:[{el:this.fixedStoreBubbles[e].bottom}]}),this.set(e,this.fixedStoreBubbles[e].bottom),_=this._getBottomPosition(e,n,a),this.get(e).element.css({left:_.left+c,top:_.top+s}),BI.DOM.isBottomSpaceEnough(n,this.get(e),s)||(this.get(e).invisible(),this.fixedStoreBubbles[e].right||(this.fixedStoreBubbles[e].right=this._createBubble("right",t,o)),BI.createWidget({type:"bi.absolute",element:i,items:[{el:this.fixedStoreBubbles[e].right}]}),this.set(e,this.fixedStoreBubbles[e].right),_=this._getRightPosition(e,n,a),this.get(e).element.css({left:_.left+c,top:_.top-s}),BI.DOM.isRightSpaceEnough(n,this.get(e),c)||(this.get(e).invisible(),this.fixedStoreBubbles[e].left||(this.fixedStoreBubbles[e].left=this._createBubble("left",t,o,30)),BI.createWidget({type:"bi.absolute",element:i,items:[{el:this.fixedStoreBubbles[e].left}]}),this.set(e,this.fixedStoreBubbles[e].left),_=this._getLeftPosition(e,n,a),this.get(e).element.css({left:_.left-c,top:_.top-s}))))}return this.get(e).setText(t),this.get(e).visible(),this},hide:function(e){return this.has(e)&&this.get(e).invisible(),this},add:function(e,t){return this.has(e)||this.set(e,t),this},get:function(e){return this.fixedBubblesManager[e]||this.bubblesManager[e]},set:function(e,t,n){!1===n?this.bubblesManager[e]=t:this.fixedBubblesManager[e]=t},has:function(e){return null!=this.fixedBubblesManager[e]||null!=this.bubblesManager[e]},remove:function(e){return this.has(e)&&(BI.each(this.fixedStoreBubbles[e],function(e,t){t.destroy()}),delete this.fixedStoreBubbles[e],delete this.fixedBubblesManager[e],BI.each(this.storeBubbles[e],function(e,t){t.destroy()}),delete this.storeBubbles[e],delete this.bubblesManager[e]),this}})},function(e,t){BI.LayerController=BI.inherit(BI.Controller,{_defaultConfig:function(){return BI.extend(BI.LayerController.superclass._defaultConfig.apply(this,arguments),{render:"body"})},_init:function(){BI.LayerController.superclass._init.apply(this,arguments),this.layerManager={},this.layouts={},this.zindex=BI.zIndex_layer,BI.Resizers.add("layerController"+BI.uniqueId(),BI.bind(this._resize,this))},_resize:function(){BI.each(this.layouts,function(e,t){t.element.is(":visible")&&t.element.trigger("__resize__")})},make:function(e,t,n,r){return BI.isWidget(t)?(n=n||{}).container=t:(r=n,n=t),this.create(e,null,n,r)},create:function(e,t,n,r){if(this.has(e))return this.get(e);var i=(n=n||{}).offset||{},a=t;if(BI.isWidget(t)&&(a=t.element),BI.isNotEmptyString(a)&&(a=BI.Widget._renderEngine.createElement(a)),this.has(e))return this.get(e);var o=BI.createWidget(n.render||{},BI.extend({type:"bi.layout"},n),r),s=BI.createWidget({type:"bi.absolute",invisible:!0,items:[{el:o,left:0,right:0,top:0,bottom:0}]},r);return BI.createWidget({type:"bi.absolute",element:n.container||this.options.render,items:[{el:s,left:i.left||0,right:i.right||0,top:i.top||0,bottom:i.bottom||0}]}),a&&(s.element.addClass("bi-popup-view"),s.element.css({left:a.offset().left+(i.left||0),top:a.offset().top+(i.top||0),width:i.width||a.outerWidth()-(i.left||0)-(i.right||0)||"",height:i.height||a.outerHeight()-(i.top||0)-(i.bottom||0)||""}),s.element.on("__resize__",function(){a.is(":visible")&&s.element.css({left:a.offset().left+(i.left||0),top:a.offset().top+(i.top||0),width:i.width||a.outerWidth()-(i.left||0)-(i.right||0)||"",height:i.height||a.outerHeight()-(i.top||0)-(i.bottom||0)||""})})),this.add(e,o,s),o},hide:function(e,t){return this.has(e)&&(this._getLayout(e).invisible(),this._getLayout(e).element.hide(0,t)),this},show:function(e,t){return this.has(e)&&(this._getLayout(e).visible(),this._getLayout(e).element.css("z-index",this.zindex++).show(0,t).trigger("__resize__")),this},isVisible:function(e){return this.has(e)&&this._getLayout(e).isVisible()},add:function(e,t,n){if(this.has(e))throw new Error("name is already exist");return n.setVisible(!1),this.layerManager[e]=t,(this.layouts[e]=n).element.css("z-index",this.zindex++),this},_getLayout:function(e){return this.layouts[e]},get:function(e){return this.layerManager[e]},has:function(e){return null!=this.layerManager[e]},remove:function(e){return this.has(e)&&(this.layerManager[e].destroy(),this.layouts[e].destroy(),delete this.layerManager[e],delete this.layouts[e]),this},removeAll:function(){var n=this;return BI.each(BI.keys(this.layerManager),function(e,t){n.layerManager[t].destroy(),n.layouts[t].destroy()}),this.layerManager={},this.layouts={},this}})},function(e,t){BI.MaskersController=BI.inherit(BI.LayerController,{_defaultConfig:function(){return BI.extend(BI.MaskersController.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.MaskersController.superclass._init.apply(this,arguments),this.zindex=BI.zIndex_masker}})},function(e,t){BI.PopoverController=BI.inherit(BI.Controller,{_defaultConfig:function(){return BI.extend(BI.PopoverController.superclass._defaultConfig.apply(this,arguments),{modal:!0,render:"body"})},_init:function(){BI.PopoverController.superclass._init.apply(this,arguments),this.modal=this.options.modal,this.floatManager={},this.floatLayer={},this.floatContainer={},this.floatOpened={},this.zindex=BI.zIndex_popover,this.zindexMap={}},_check:function(e){return BI.isNotNull(this.floatManager[e])},create:function(e,t,n){if(this._check(e))return this;var r=BI.createWidget(t||{},{type:"bi.popover"},n);return this.add(e,r,t,n),this},add:function(e,t,n,r){var i,a=this;return n=n||{},this._check(e)||(this.floatContainer[e]=BI.createWidget({type:"bi.absolute",cls:"bi-popup-view",items:[{el:this.floatLayer[e]=BI.createWidget({type:"bi.absolute",items:[t]},r),left:0,right:0,top:0,bottom:0}]}),this.floatManager[e]=t,i=e,t.on(BI.Popover.EVENT_CLOSE,function(){a.close(i)}),BI.createWidget({type:"bi.absolute",element:n.container||this.options.render,items:[{el:this.floatContainer[e],left:0,right:0,top:0,bottom:0}]})),this},open:function(e){return this._check(e)&&(this.floatOpened[e]||(this.floatOpened[e]=!0,(t=this.floatContainer[e]).element.css("zIndex",this.zindex++),this.modal&&t.element.__hasZIndexMask__(this.zindexMap[e])&&t.element.__releaseZIndexMask__(this.zindexMap[e]),this.zindexMap[e]=this.zindex,this.modal&&t.element.__buildZIndexMask__(this.zindex++),this.get(e).setZindex(this.zindex++),this.floatContainer[e].visible(),(n=this.get(e)).show&&n.show(),r=BI.Widget._renderEngine.createElement(this.options.render).width(),i=BI.Widget._renderEngine.createElement(this.options.render).height(),(a=(r-n.element.width())/2)<0&&(a=0),(o=(i-n.element.height())/2)<0&&(o=0),n.element.css({left:a+"px",top:o+"px"}))),this;var t,n,r,i,a,o},close:function(e){return this._check(e)&&this.floatOpened[e]&&(delete this.floatOpened[e],this.floatContainer[e].invisible(),this.modal&&this.floatContainer[e].element.__releaseZIndexMask__(this.zindexMap[e])),this},get:function(e){return this.floatManager[e]},remove:function(e){return this._check(e)&&(this.floatContainer[e].destroy(),this.modal&&this.floatContainer[e].element.__releaseZIndexMask__(this.zindexMap[e]),delete this.floatManager[e],delete this.floatLayer[e],delete this.zindexMap[e],delete this.floatContainer[e],delete this.floatOpened[e]),this},removeAll:function(){var n=this;return BI.each(this.floatContainer,function(e,t){t.destroy(),n.modal&&n.floatContainer[e].element.__releaseZIndexMask__(n.zindexMap[e])}),this.floatManager={},this.floatLayer={},this.floatContainer={},this.floatOpened={},this.zindexMap={},this}})},function(e,t){BI.ResizeController=BI.inherit(BI.Controller,{_defaultConfig:function(){return BI.extend(BI.ResizeController.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.ResizeController.superclass._init.apply(this,arguments);var t=this;this.resizerManger={};var e=BI.debounce(function(e){t._resize(e)},30);BI.Widget._renderEngine.createElement(_global).resize(e)},_resize:function(n){BI.each(this.resizerManger,function(e,t){t instanceof BI.$?t.is(":visible")&&t.trigger("__resize__"):t instanceof BI.Layout?t.resize():BI.isFunction(t)&&t(n)})},add:function(e,t){var n=this;return this.has(e)?this:(this.resizerManger[e]=t,function(){n.remove(e)})},get:function(e){return this.resizerManger[e]},has:function(e){return null!=this.resizerManger[e]},remove:function(e){return this.has(e)&&delete this.resizerManger[e],this}})},function(e,t){BI.TooltipsController=BI.inherit(BI.Controller,{_defaultConfig:function(){return BI.extend(BI.TooltipsController.superclass._defaultConfig.apply(this,arguments),{})},_const:{height:18},_init:function(){BI.TooltipsController.superclass._init.apply(this,arguments),this.tooltipsManager={},this.showingTips={}},_createTooltip:function(e,t){return BI.createWidget({type:"bi.tooltip",text:e,level:t,stopEvent:!0})},hide:function(e,t){return this.has(e)&&(delete this.showingTips[e],this.get(e).element.hide(0,t),this.get(e).invisible()),this},create:function(e,t,n,r){var i;return this.has(e)||(i=this._createTooltip(t,n),this.add(e,i),BI.createWidget({type:"bi.absolute",element:r||"body",items:[{el:i}]}),i.invisible()),this.get(e)},show:function(e,t,n,r,i,a){a=a||{};var o=this;if(BI.each(this.showingTips,function(e,t){o.hide(e)}),this.showingTips={},this.has(t)||this.create(t,n,r,a.container||"body"),!a.belowMouse){var s=i.element.offset(),c=i.element.bounds();if(0===c.height||0===c.width)return;var u=s.top+c.height+5}var l=this.get(t);l.setText(n),l.element.css({left:"0px",top:"0px"}),l.visible(),l.element.height(l.element[0].scrollHeight),this.showingTips[t]=!0;var d=(e.pageX||e.clientX)+15,p=(e.pageY||e.clientY)+15;d+l.element.outerWidth()>BI.Widget._renderEngine.createElement("body").outerWidth()&&(d-=l.element.outerWidth()+15);var f=BI.Widget._renderEngine.createElement("body").outerHeight();return p+l.element.outerHeight()>f||u+l.element.outerHeight()>f?(p-=l.element.outerHeight()+15,a.belowMouse||(p=Math.min(p,s.top-l.element.outerHeight()-5))):a.belowMouse||(p=Math.max(p,u)),l.element.css({left:d<0?0:d+"px",top:p<0?0:p+"px"}),l.element.hover(function(){o.remove(t),i.element.trigger("mouseleave.title"+i.getName())}),this},add:function(e,t){return this.has(e)||this.set(e,t),this},get:function(e){return this.tooltipsManager[e]},set:function(e,t){this.tooltipsManager[e]=t},has:function(e){return null!=this.tooltipsManager[e]},remove:function(e){return this.has(e)&&(this.tooltipsManager[e].destroy(),delete this.tooltipsManager[e]),this}})},function(e,t){_.extend(BI,{Events:{KEYDOWN:"_KEYDOWN",BACKSPACE:"_BACKSPACE",SPACE:"_SPACE",ENTER:"_ENTER",CONFIRM:"_CONFIRM",ERROR:"_ERROR",PAUSE:"_PAUSE",DESTROY:"_DESTROY",MOUNT:"_MOUNT",UNMOUNT:"_UNMOUNT",CLEAR:"_CLEAR",ADD:"_ADD",EDITING:"_EDITING",EMPTY:"_EMPTY",VIEW:"_VIEW",RESIZE:"_RESIZE",BEFOREEDIT:"_BEFOREEDIT",AFTEREDIT:"_AFTEREDIT",STARTEDIT:"_STARTEDIT",STOPEDIT:"_STOPEDIT",CHANGE:"_CHANGE",EXPAND:"_EXPAND",COLLAPSE:"_COLLAPSE",CALLBACK:"_CALLBACK",CLICK:"_CLICK",STATECHANGE:"_STATECHANGE",BEFORESTATECHANGE:"_BEFORESTATECHANGE",INIT:"_INIT",AFTERINIT:"_AFTERINIT",SCROLL:"_SCROLL",STARTLOAD:"_STARTLOAD",AFTERLOAD:"_AFTERLOAD",BS:"beforesubmit",AS:"aftersubmit",SC:"submitcomplete",SF:"submitfailure",SS:"submitsuccess",BVW:"beforeverifywrite",AVW:"afterverifywrite",AV:"afterverify",BW:"beforewrite",AW:"afterwrite",WS:"writesuccess",WF:"writefailure",BA:"beforeappend",AA:"afterappend",BD:"beforedelete",AD:"beforedelete",UC:"unloadcheck",BTOPDF:"beforetopdf",ATOPDF:"aftertopdf",BTOEXCEL:"beforetoexcel",ATOEXCEL:"aftertoexcel",BTOWORD:"beforetoword",ATOWORD:"aftertoword",BTOIMAGE:"beforetoimage",ATOIMAGE:"aftertoimage",BTOHTML:"beforetohtml",ATOHTML:"aftertohtml",BIMEXCEL:"beforeimportexcel",AIMEXCEL:"afterimportexcel",BPDFPRINT:"beforepdfprint",APDFPRINT:"afterpdfprint",BFLASHPRINT:"beforeflashprint",AFLASHPRINT:"afterflashprint",BAPPLETPRINT:"beforeappletprint",AAPPLETPRINT:"afterappletprint",BSEVERPRINT:"beforeserverprint",ASERVERPRINT:"afterserverprint",BEMAIL:"beforeemail",AEMAIL:"afteremail"}})},function(e,t){BI.prepares.push(function(){BI.Date=BI.Date||{},BI.Date._DN=[BI.i18nText("BI-Basic_Sunday"),BI.i18nText("BI-Basic_Monday"),BI.i18nText("BI-Basic_Tuesday"),BI.i18nText("BI-Basic_Wednesday"),BI.i18nText("BI-Basic_Thursday"),BI.i18nText("BI-Basic_Friday"),BI.i18nText("BI-Basic_Saturday"),BI.i18nText("BI-Basic_Sunday")],BI.Date._SDN=[BI.i18nText("BI-Basic_Simple_Sunday"),BI.i18nText("BI-Basic_Simple_Monday"),BI.i18nText("BI-Basic_Simple_Tuesday"),BI.i18nText("BI-Basic_Simple_Wednesday"),BI.i18nText("BI-Basic_Simple_Thursday"),BI.i18nText("BI-Basic_Simple_Friday"),BI.i18nText("BI-Basic_Simple_Saturday"),BI.i18nText("BI-Basic_Simple_Sunday")],BI.Date._FD=1,BI.Date._MN=[BI.i18nText("BI-Basic_January"),BI.i18nText("BI-Basic_February"),BI.i18nText("BI-Basic_March"),BI.i18nText("BI-Basic_April"),BI.i18nText("BI-Basic_May"),BI.i18nText("BI-Basic_June"),BI.i18nText("BI-Basic_July"),BI.i18nText("BI-Basic_August"),BI.i18nText("BI-Basic_September"),BI.i18nText("BI-Basic_October"),BI.i18nText("BI-Basic_November"),BI.i18nText("BI-Basic_December")],BI.Date._SMN=[0,1,2,3,4,5,6,7,8,9,10,11],BI.Date._QN=["",BI.i18nText("BI-Quarter_1"),BI.i18nText("BI-Quarter_2"),BI.i18nText("BI-Quarter_3"),BI.i18nText("BI-Quarter_4")],BI.Date._MD=[31,28,31,30,31,30,31,31,30,31,30,31],BI.Date._OFFSET=[0,-1,-2,-3,-4,-5,-6]})},function(e,t){BI.ShowListener=BI.inherit(BI.OB,{_defaultConfig:function(){return BI.extend(BI.ShowListener.superclass._defaultConfig.apply(this,arguments),{eventObj:BI.createWidget(),cardLayout:null,cardNameCreator:function(e){return e},cardCreator:BI.emptyFn,afterCardCreated:BI.emptyFn,afterCardShow:BI.emptyFn})},_init:function(){BI.ShowListener.superclass._init.apply(this,arguments);var a=this,o=this.options;o.eventObj&&o.eventObj.on(BI.Controller.EVENT_CHANGE,function(e,t,n){if(e===BI.Events.CLICK){if(t=t||o.eventObj.getValue(),t=BI.isArray(t)?1<t.length?t.toString():t[0]:t,BI.isNull(t))throw new Error("value cannot be null");var r,i=o.cardNameCreator(t);o.cardLayout.isCardExisted(i)||(r=o.cardCreator(i),o.cardLayout.addCardByName(i,r),o.afterCardCreated(i)),o.cardLayout.showCardByName(i),BI.nextTick(function(){o.afterCardShow(i),a.fireEvent(BI.ShowListener.EVENT_CHANGE,i)})}})}}),BI.ShowListener.EVENT_CHANGE="EVENT_CHANGE"},function(e,t){BI.StyleLoaderManager=BI.inherit(BI.OB,{_defaultConfig:function(){return BI.extend(BI.StyleLoaderManager.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.StyleLoaderManager.superclass._init.apply(this,arguments),this.stylesManager={}},loadStyle:function(e,t){if(_global.document){var n=document,r=n.createElement("style");return n.getElementsByTagName("head")[0].appendChild(r),r.setAttribute("type","text/css"),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),this.stylesManager[e]=r,this}},get:function(e){return this.stylesManager[e]},has:function(e){return null!=this.stylesManager[e]},removeStyle:function(e){return this.has(e)&&(this.stylesManager[e].parentNode.removeChild(this.stylesManager[e]),delete this.stylesManager[e]),this}})},function(e,t){BI.Logic=BI.inherit(BI.OB,{createLogic:function(){return this.options||{}}}),BI.LogicFactory={Type:{Vertical:"vertical",Horizontal:"horizontal",Table:"table",HorizontalFill:"horizontal_fill"},createLogic:function(e,t){var n;switch(e){case BI.LogicFactory.Type.Vertical:n=BI.VerticalLayoutLogic;break;case BI.LogicFactory.Type.Horizontal:n=BI.HorizontalLayoutLogic;break;case BI.LogicFactory.Type.Table:n=BI.TableLayoutLogic;break;case BI.LogicFactory.Type.HorizontalFill:n=BI.HorizontalFillLayoutLogic;break;default:n=BI.Logic}return new n(t).createLogic()},createLogicTypeByDirection:function(e){switch(e){case BI.Direction.Top:case BI.Direction.Bottom:case BI.Direction.Custom:return BI.LogicFactory.Type.Vertical;case BI.Direction.Left:case BI.Direction.Right:return BI.LogicFactory.Type.Horizontal}},createLogicItemsByDirection:function(e){var t=Array.prototype.slice.call(arguments,1),t=BI.map(t,function(e,t){return BI.isWidget(t)?{el:t,width:t.options.width,height:t.options.height}:t});switch(e){case BI.Direction.Bottom:BI.LogicFactory.Type.Vertical,t.reverse();break;case BI.Direction.Right:BI.LogicFactory.Type.Horizontal,t.reverse();break;case BI.Direction.Custom:t=t.slice(1)}return t}}},function(e,t){BI.VerticalLayoutLogic=BI.inherit(BI.Logic,{_defaultConfig:function(){return BI.extend(BI.VerticalLayoutLogic.superclass._defaultConfig.apply(this,arguments),{dynamic:!1,scrollable:null,scrolly:!1,scrollx:!1,items:[],hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},createLogic:function(){var e=this.options,t=e.dynamic?"bi.vertical":"bi.vtape";return{type:t,scrollable:e.scrollable,scrolly:e.scrolly,scrollx:e.scrollx,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,items:e.items}}}),BI.HorizontalLayoutLogic=BI.inherit(BI.Logic,{_defaultConfig:function(){return BI.extend(BI.HorizontalLayoutLogic.superclass._defaultConfig.apply(this,arguments),{dynamic:!1,scrollable:null,scrolly:!1,scrollx:!1,items:[],hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},createLogic:function(){var e=this.options,t=e.dynamic?"bi.vertical_adapt":"bi.htape";return{type:t,scrollable:e.scrollable,scrolly:e.scrolly,scrollx:e.scrollx,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,items:e.items}}}),BI.TableLayoutLogic=BI.inherit(BI.Logic,{_defaultConfig:function(){return BI.extend(BI.TableLayoutLogic.superclass._defaultConfig.apply(this,arguments),{dynamic:!1,scrollable:null,scrolly:!1,scrollx:!1,columns:0,rows:0,columnSize:[],rowSize:[],hgap:0,vgap:0,items:[]})},createLogic:function(){var e=this.options,t=e.dynamic?"bi.table":"bi.window";return{type:t,scrollable:e.scrollable,scrolly:e.scrolly,scrollx:e.scrollx,columns:e.columns,rows:e.rows,columnSize:e.columnSize,rowSize:e.rowSize,hgap:e.hgap,vgap:e.vgap,items:e.items}}}),BI.HorizontalFillLayoutLogic=BI.inherit(BI.Logic,{_defaultConfig:function(){return BI.extend(BI.HorizontalFillLayoutLogic.superclass._defaultConfig.apply(this,arguments),{dynamic:!1,scrollable:null,scrolly:!1,scrollx:!1,items:[],hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},createLogic:function(){var e=this.options,n=[];return BI.each(e.items,function(e,t){n.push(t.width||0)}),{type:e.dynamic?"bi.horizontal_adapt":"bi.htape",columnSize:n,scrollable:e.scrollable,scrolly:e.scrolly,scrollx:e.scrollx,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,items:e.items}}})},function(e,t){function u(e,t){for(var n=-1;++n<i;)t+=e*a[n],a[n]=t%r,t=Math.floor(t/r)}function l(e){for(var t=i,n=0;0<=--t;)n+=a[t],a[t]=Math.floor(n/e),n=n%e*r}function d(){for(var e,t=i,n="";0<=--t;){""===n&&0!==t&&0===a[t]||(e=String(a[t]),""===n?n=e:n+="0000000".slice(0,7-e.length)+e)}return n}function p(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)}var r,i,a;Number.prototype.toFixed&&"0.000"===8e-5.toFixed(3)&&"0"!==.9.toFixed(0)&&"1.25"===1.255.toFixed(2)&&"1000000000000000128"===(0xde0b6b3a7640080).toFixed(0)||(r=1e7,i=6,a=[0,0,0,0,0,0],Number.prototype.toFixed=function(e){var t,n,r,i,a,o,s,c=Number(e);if((c=c!=c?0:Math.floor(c))<0||20<c)throw new RangeError("Number.toFixed called with invalid number of decimals");if((t=Number(this))!=t)return"NaN";if(t<=-1e21||1e21<t)return String(t);if(n="",t<0&&(n="-",t=-t),r="0",1e-21<t)if(a=(i=function(e){for(var t=0;4096<=e;)t+=12,e/=4096;for(;2<=e;)t+=1,e/=2;return t}(t*p(2,69,1))-69)<0?t*p(2,-i,1):t/p(2,i,1),a*=4503599627370496,0<(i=52-i)){for(u(0,a),o=c;7<=o;)u(1e7,0),o-=7;for(u(p(10,o,1),0),o=i-1;23<=o;)l(1<<23),o-=23;l(1<<o),u(1,1),l(2),r=d()}else u(0,a),u(1<<-i,0),r=d()+"0.00000000000000000000".slice(2,2+c);return r=0<c?(s=r.length)<=c?n+"0.0000000000000000000".slice(0,c-s+2)+r:n+r.slice(0,s-c)+"."+r.slice(s-c):n+r})},function(e,t){BI.version="2.0"},function(e,t){BI.initWorker=function(){var t={},c={};addEventListener("message",function(e){var o=e.data;switch(o.eventType){case"action":t[o.name][o.action].apply(t[o.name],o.args);break;case"destroy":BI.each(c[o.name],function(e,t){t=BI.isArray(t)?t:[t],BI.each(t,function(e,t){t()})}),delete t[o.name],delete c[o.name];break;case"create":var s=t[o.name]=BI.Models.getModel(o.type,o.options);c[o.name]=[],BI.each(o.watches,function(e,n){var t,r,i,a;c[o.name].push((t=s.model,r=n,i=function(e,t){postMessage(BI.extend({},o,{eventType:"watch",currentWatchType:n},{args:[e,t]}))},a=a||{},Fix.watch(t,r,i,BI.extend(a,{store:t}))))}),postMessage(BI.extend({},o,{eventType:"create"},{msg:s.model}))}},!1)}},function(e,t){BI.AbsoluteCenterLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.AbsoluteCenterLayout.superclass.props.apply(this,arguments),{baseCls:"bi-absolute-center-layout",hgap:0,lgap:0,rgap:0,vgap:0,tgap:0,bgap:0})},render:function(){BI.AbsoluteCenterLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.AbsoluteCenterLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"absolute",left:n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0),right:n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0),top:n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0),bottom:n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0),margin:"auto"}),r},resize:function(){},populate:function(e){BI.AbsoluteCenterLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.absolute_center_adapt",BI.AbsoluteCenterLayout)},function(e,t){BI.AbsoluteHorizontalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.AbsoluteHorizontalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-absolute-horizontal-layout",hgap:0,lgap:0,rgap:0,vgap:0,tgap:0,bgap:0})},render:function(){BI.AbsoluteHorizontalLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.AbsoluteHorizontalLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"absolute",left:n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0),right:n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0),margin:"auto"}),n.vgap+n.tgap+(t.vgap||0)+(t.tgap||0)!==0&&r.element.css("top",n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)),n.vgap+n.bgap+(t.vgap||0)+(t.bgap||0)!==0&&r.element.css("bottom",n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)),r},resize:function(){},populate:function(e){BI.AbsoluteHorizontalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.absolute_horizontal_adapt",BI.AbsoluteHorizontalLayout)},function(e,t){BI.AbsoluteVerticalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.AbsoluteVerticalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-absolute-vertical-layout",hgap:0,lgap:0,rgap:0,vgap:0,tgap:0,bgap:0})},render:function(){BI.AbsoluteVerticalLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.AbsoluteVerticalLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"absolute",left:t.lgap,right:t.rgap,top:n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0),bottom:n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0),margin:"auto"}),n.hgap+n.lgap+(t.hgap||0)+(t.lgap||0)!==0&&r.element.css("left",n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)),n.hgap+n.rgap+(t.hgap||0)+(t.rgap||0)!==0&&r.element.css("right",n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)),r},resize:function(){},populate:function(e){BI.AbsoluteVerticalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.absolute_vertical_adapt",BI.AbsoluteVerticalLayout)},function(e,t){BI.CenterAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.CenterAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-center-adapt-layout",horizontalAlign:BI.HorizontalAlign.Center,columnSize:[],scrollx:!1,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var e=this.options,t=this;return BI.CenterAdaptLayout.superclass.render.apply(this,arguments),{type:"bi.horizontal",verticalAlign:BI.VerticalAlign.Middle,horizontalAlign:e.horizontalAlign,columnSize:e.columnSize,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,items:e.items,ref:function(e){t.layout=e},hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap}},resize:function(){},populate:function(e){this.layout.populate.apply(this,arguments)}}),BI.shortcut("bi.center_adapt",BI.CenterAdaptLayout)},function(e,t){BI.HorizontalAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.HorizontalAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-horizontal-adapt-layout",verticalAlign:BI.VerticalAlign.Top,columnSize:[],scrollx:!1,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var t=this,e=this.options;return BI.HorizontalAdaptLayout.superclass.render.apply(this,arguments),{type:"bi.horizontal",verticalAlign:e.verticalAlign,horizontalAlign:BI.HorizontalAlign.Center,columnSize:e.columnSize,items:e.items,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,ref:function(e){t.layout=e},hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap}},resize:function(){},populate:function(e){this.layout.populate.apply(this,arguments)}}),BI.shortcut("bi.horizontal_adapt",BI.HorizontalAdaptLayout)},function(e,t){BI.LeftRightVerticalAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.LeftRightVerticalAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-left-right-vertical-adapt-layout",items:{},llgap:0,lrgap:0,lhgap:0,rlgap:0,rrgap:0,rhgap:0})},render:function(){var e=this.options;BI.LeftRightVerticalAdaptLayout.superclass.render.apply(this,arguments);var t=[];return"left"in e.items&&t.push({type:"bi.left",items:[{el:{type:"bi.vertical_adapt",height:"100%",items:e.items.left,hgap:e.lhgap,lgap:e.llgap,rgap:e.lrgap}}]}),"right"in e.items&&t.push({type:"bi.right",items:[{el:{type:"bi.vertical_adapt",height:"100%",items:e.items.right,textAlign:"right",hgap:e.rhgap,lgap:e.rlgap,rgap:e.rrgap}}]}),t},resize:function(){},addItem:function(){throw new Error("cannot be added")},populate:function(e){BI.LeftRightVerticalAdaptLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.left_right_vertical_adapt",BI.LeftRightVerticalAdaptLayout),BI.LeftVerticalAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.LeftRightVerticalAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-left-vertical-adapt-layout",items:[],lgap:0,rgap:0,hgap:0})},render:function(){var e=this.options,t=this;return BI.LeftVerticalAdaptLayout.superclass.render.apply(this,arguments),{type:"bi.left",ref:function(e){t.layout=e},items:[{el:{type:"bi.vertical_adapt",height:"100%",items:e.items,lgap:e.lgap,hgap:e.hgap,rgap:e.rgap}}]}},resize:function(){},addItem:function(){throw new Error("cannot be added")},populate:function(e){this.layout.populate.apply(this,arguments)}}),BI.shortcut("bi.left_vertical_adapt",BI.LeftVerticalAdaptLayout),BI.RightVerticalAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.RightVerticalAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-right-vertical-adapt-layout",items:[],lgap:0,rgap:0,hgap:0})},render:function(){var e=this.options,t=this;return BI.RightVerticalAdaptLayout.superclass.render.apply(this,arguments),{type:"bi.right",ref:function(e){t.layout=e},items:[{el:{type:"bi.vertical_adapt",height:"100%",textAlign:"right",items:e.items,lgap:e.lgap,hgap:e.hgap,rgap:e.rgap}}]}},resize:function(){},addItem:function(){throw new Error("cannot be added")},populate:function(e){this.layout.populate.apply(this,arguments)}}),BI.shortcut("bi.right_vertical_adapt",BI.RightVerticalAdaptLayout)},function(e,t){BI.TableAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.TableAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-table-adapt-layout",columnSize:[],verticalAlign:BI.VerticalAlign.Top,horizontalAlign:BI.HorizontalAlign.Left,scrollx:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var e=this.options;BI.TableAdaptLayout.superclass.render.apply(this,arguments),this.$table=BI.Widget._renderEngine.createElement("<div>").css({position:"relative",display:"table",width:e.horizontalAlign===BI.HorizontalAlign.Center||e.horizontalAlign===BI.HorizontalAlign.Stretch?"100%":"auto",height:e.verticalAlign===BI.VerticalAlign.Middle||e.verticalAlign===BI.VerticalAlign.Stretch?"100%":"auto","white-space":"nowrap"}),this.populate(this.options.items)},_addElement:function(e,t){var n,r,i=this.options,a=i.columnSize[e]<=1?100*i.columnSize[e]+"%":i.columnSize[e];return this.hasWidget(this._getChildName(e))?(n=this.getWidgetByName(this._getChildName(e))).element.width(a):((r=BI._lazyCreateWidget(t)).element.css({position:"relative",top:"0",left:"0",margin:"0px auto"}),n=BI._lazyCreateWidget({type:"bi.default",width:a,items:[r]}),this.addWidget(this._getChildName(e),n)),n.element.css({"max-width":i.columnSize[e]<=1?a:a+"px"}),0===e&&n.element.addClass("first-element"),n.element.css({position:"relative",display:"table-cell","vertical-align":i.verticalAlign,margin:"0",padding:"0",height:"100%"}),i.vgap+i.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":i.vgap+i.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),i.hgap+i.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":(0===e?i.hgap:0)+i.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),i.hgap+i.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":i.hgap+i.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),i.vgap+i.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":i.vgap+i.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),n},appendFragment:function(e){this.$table.append(e),this.element.append(this.$table)},resize:function(){},populate:function(e){BI.TableAdaptLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.table_adapt",BI.TableAdaptLayout)},function(e,t){BI.VerticalAdaptLayout=BI.inherit(BI.Layout,{props:{baseCls:"bi-vertical-adapt-layout",horizontalAlign:BI.HorizontalAlign.Left,columnSize:[],scrollx:!1,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0},render:function(){var t=this,e=this.options;return BI.VerticalAdaptLayout.superclass.render.apply(this,arguments),{type:"bi.horizontal",verticalAlign:BI.VerticalAlign.Middle,horizontalAlign:e.horizontalAlign,columnSize:e.columnSize,items:e.items,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,ref:function(e){t.layout=e},hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap}},resize:function(){},populate:function(e){this.layout.populate.apply(this,arguments)}}),BI.shortcut("bi.vertical_adapt",BI.VerticalAdaptLayout)},function(e,t){BI.HorizontalAutoLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.HorizontalAutoLayout.superclass.props.apply(this,arguments),{baseCls:"bi-horizon-auto-layout",hgap:0,lgap:0,rgap:0,vgap:0,tgap:0,bgap:0})},render:function(){BI.HorizontalAutoLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.HorizontalAutoLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative",margin:"0px auto"}),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":(0===e?n.vgap:0)+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},resize:function(){},populate:function(e){BI.HorizontalAutoLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.horizontal_auto",BI.HorizontalAutoLayout)},function(e,t){BI.FloatHorizontalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FloatHorizontalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-float-horizontal-adapt-layout",items:[],hgap:0,vgap:0,tgap:0,bgap:0,lgap:0,rgap:0})},render:function(){BI.FloatHorizontalLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){},mounted:function(){var n=this,e=this.left.element.width(),t=this.left.element.height();this.left.element.width(e).height(t).css("float","none"),BI.remove(this._children,function(e,t){t===n.container&&delete n._children[e]}),BI._lazyCreateWidget({type:"bi.horizontal_auto",element:this,items:[this.left]})},_addElement:function(e,t){var n=this.options;return this.left=BI._lazyCreateWidget({type:"bi.vertical",items:[t],hgap:n.hgap,vgap:n.vgap,tgap:n.tgap,bgap:n.bgap,lgap:n.lgap,rgap:n.rgap}),this.container=BI._lazyCreateWidget({type:"bi.left",element:this,items:[this.left]}),this.left},populate:function(e){BI.HorizontalAutoLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.horizontal_float",BI.FloatHorizontalLayout)},function(e,t){BI.InlineCenterAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.InlineCenterAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-inline-center-adapt-layout",horizontalAlign:BI.HorizontalAlign.Center,verticalAlign:BI.VerticalAlign.Middle,columnSize:[],hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.InlineCenterAdaptLayout.superclass.render.apply(this,arguments);var e=this.options;this.element.css({whiteSpace:"nowrap",textAlign:e.horizontalAlign}),this.populate(e.items)},_addElement:function(e,t,n){var r=this.options,i=BI.InlineCenterAdaptLayout.superclass._addElement.apply(this,arguments);return i.element.css({width:r.columnSize[e]<=1?100*r.columnSize[e]+"%":r.columnSize[e],position:"relative","vertical-align":r.verticalAlign}),i.element.addClass("inline-center-adapt-item"),r.vgap+r.tgap+(t.tgap||0)+(t.vgap||0)!==0&&i.element.css({"margin-top":r.vgap+r.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),r.hgap+r.lgap+(t.lgap||0)+(t.hgap||0)!==0&&i.element.css({"margin-left":(0===e?r.hgap:0)+r.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),r.hgap+r.rgap+(t.rgap||0)+(t.hgap||0)!==0&&i.element.css({"margin-right":r.hgap+r.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),r.vgap+r.bgap+(t.bgap||0)+(t.vgap||0)!==0&&i.element.css({"margin-bottom":r.vgap+r.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),i},resize:function(){this.stroke(this.options.items)},addItem:function(e){throw new Error("不能添加元素")},stroke:function(n){var r=this;BI.each(n,function(e,t){t&&r._addElement(e,t,n.length)})},populate:function(e){BI.InlineCenterAdaptLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.inline_center_adapt",BI.InlineCenterAdaptLayout)},function(e,t){BI.InlineHorizontalAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.InlineHorizontalAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-inline-horizontal-adapt-layout",horizontalAlign:BI.HorizontalAlign.Center,verticalAlign:BI.VerticalAlign.Top,columnSize:[],hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.InlineHorizontalAdaptLayout.superclass.render.apply(this,arguments);var e=this.options;this.element.css({whiteSpace:"nowrap",textAlign:e.horizontalAlign}),this.populate(e.items)},_addElement:function(e,t,n){var r=this.options,i=BI.InlineHorizontalAdaptLayout.superclass._addElement.apply(this,arguments);return i.element.css({width:r.columnSize[e]<=1?100*r.columnSize[e]+"%":r.columnSize[e],position:"relative","vertical-align":r.verticalAlign}),i.element.addClass("inline-horizontal-adapt-item"),r.vgap+r.tgap+(t.tgap||0)+(t.vgap||0)!==0&&i.element.css({"margin-top":r.vgap+r.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),r.hgap+r.lgap+(t.lgap||0)+(t.hgap||0)!==0&&i.element.css({"margin-left":(0===e?r.hgap:0)+r.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),r.hgap+r.rgap+(t.rgap||0)+(t.hgap||0)!==0&&i.element.css({"margin-right":r.hgap+r.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),r.vgap+r.bgap+(t.bgap||0)+(t.vgap||0)!==0&&i.element.css({"margin-bottom":r.vgap+r.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),i},resize:function(){this.stroke(this.options.items)},addItem:function(e){throw new Error("不能添加元素")},stroke:function(n){var r=this;BI.each(n,function(e,t){t&&r._addElement(e,t,n.length)})},populate:function(e){BI.InlineHorizontalAdaptLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.inline_horizontal_adapt",BI.InlineHorizontalAdaptLayout)},function(e,t){BI.InlineVerticalAdaptLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.InlineVerticalAdaptLayout.superclass.props.apply(this,arguments),{baseCls:"bi-inline-vertical-adapt-layout",horizontalAlign:BI.HorizontalAlign.Left,verticalAlign:BI.VerticalAlign.Middle,columnSize:[],hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.InlineVerticalAdaptLayout.superclass.render.apply(this,arguments);var e=this.options;this.element.css({whiteSpace:"nowrap",textAlign:e.horizontalAlign}),this.populate(e.items)},_addElement:function(e,t){var n=this.options,r=BI.InlineVerticalAdaptLayout.superclass._addElement.apply(this,arguments);return r.element.css({width:n.columnSize[e]<=1?100*n.columnSize[e]+"%":n.columnSize[e],position:"relative","vertical-align":n.verticalAlign}),r.element.addClass("inline-vertical-adapt-item"),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":(0===e?n.hgap:0)+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},resize:function(){this.stroke(this.options.items)},populate:function(e){BI.InlineVerticalAdaptLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.inline_vertical_adapt",BI.InlineVerticalAdaptLayout)},function(e,t){BI.FlexCenterLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this,arguments),{baseCls:"bi-flex-center-adapt-layout",verticalAlign:BI.VerticalAlign.Middle,horizontalAlign:BI.HorizontalAlign.Center,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var t=this,e=this.options;return{type:"bi.flex_horizontal",ref:function(e){t.wrapper=e},horizontalAlign:e.horizontalAlign,verticalAlign:e.verticalAlign,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,hgap:e.hgap,vgap:e.vgap,tgap:e.tgap,bgap:e.bgap,items:e.items}},resize:function(){},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate(e)}}),BI.shortcut("bi.flex_center_adapt",BI.FlexCenterLayout)},function(e,t){BI.FlexHorizontalCenter=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexHorizontalCenter.superclass.props.apply(this,arguments),{baseCls:"bi-flex-horizontal-center-adapt-layout",verticalAlign:BI.VerticalAlign.Top,rowSize:[],scrolly:!1,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var t=this,e=this.options;return{type:"bi.flex_vertical",ref:function(e){t.wrapper=e},horizontalAlign:BI.HorizontalAlign.Center,verticalAlign:e.verticalAlign,rowSize:e.rowSize,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,hgap:e.hgap,vgap:e.vgap,tgap:e.tgap,bgap:e.bgap,items:e.items}},resize:function(){},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate(e)}}),BI.shortcut("bi.flex_horizontal_adapt",BI.FlexHorizontalCenter),BI.shortcut("bi.flex_horizontal_center_adapt",BI.FlexHorizontalCenter)},function(e,t){BI.FlexHorizontalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexHorizontalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-flex-horizontal-layout",verticalAlign:BI.VerticalAlign.Top,horizontalAlign:BI.HorizontalAlign.Left,columnSize:[],scrollx:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.FlexHorizontalLayout.superclass.render.apply(this,arguments);var e=this.options;this.element.addClass("v-"+e.verticalAlign).addClass("h-"+e.horizontalAlign),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.FlexHorizontalLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative"}),BI.contains([BI.HorizontalAlign.Left,BI.HorizontalAlign.Right,BI.HorizontalAlign.Center],n.horizontalAlign)&&r.element.css({"flex-shrink":"0"}),0<n.columnSize[e]&&r.element.width(n.columnSize[e]<=1?100*n.columnSize[e]+"%":n.columnSize[e]),"fill"===n.columnSize[e]&&r.element.css("flex","1"),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":(0===e?n.hgap:0)+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},resize:function(){},populate:function(e){BI.FlexHorizontalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.flex_horizontal",BI.FlexHorizontalLayout)},function(e,t){BI.FlexVerticalCenter=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexVerticalCenter.superclass.props.apply(this,arguments),{baseCls:"bi-flex-vertical-center-adapt-layout",horizontalAlign:BI.HorizontalAlign.Left,columnSize:[],scrollx:!1,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var t=this,e=this.options;return{type:"bi.flex_horizontal",ref:function(e){t.wrapper=e},verticalAlign:BI.VerticalAlign.Middle,horizontalAlign:e.horizontalAlign,columnSize:e.columnSize,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,hgap:e.hgap,items:e.items}},resize:function(){},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate(e)}}),BI.shortcut("bi.flex_vertical_adapt",BI.FlexVerticalCenter),BI.shortcut("bi.flex_vertical_center_adapt",BI.FlexVerticalCenter)},function(e,t){BI.FlexVerticalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexVerticalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-flex-vertical-layout",horizontalAlign:BI.HorizontalAlign.Left,verticalAlign:BI.VerticalAlign.Top,rowSize:[],scrolly:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.FlexVerticalLayout.superclass.render.apply(this,arguments);var e=this.options;this.element.addClass("h-"+e.horizontalAlign).addClass("v-"+e.verticalAlign),this.populate(this.options.items)},_addElement:function(e,t){var n=BI.FlexVerticalLayout.superclass._addElement.apply(this,arguments),r=this.options;return n.element.css({position:"relative"}),r.verticalAlign!==BI.VerticalAlign.Top&&r.verticalAlign!==BI.VerticalAlign.Bottom||n.element.css({"flex-shrink":"0"}),0<r.rowSize[e]&&n.element.height(r.rowSize[e]<=1?100*r.rowSize[e]+"%":r.rowSize[e]),"fill"===r.rowSize[e]&&n.element.css("flex","1"),r.vgap+r.tgap+(t.tgap||0)+(t.vgap||0)!==0&&n.element.css({"margin-top":(0===e?r.vgap:0)+r.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),r.hgap+r.lgap+(t.lgap||0)+(t.hgap||0)!==0&&n.element.css({"margin-left":r.hgap+r.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),r.hgap+r.rgap+(t.rgap||0)+(t.hgap||0)!==0&&n.element.css({"margin-right":r.hgap+r.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),r.vgap+r.bgap+(t.bgap||0)+(t.vgap||0)!==0&&n.element.css({"margin-bottom":r.vgap+r.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),n},resize:function(){},populate:function(e){BI.FlexVerticalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.flex_vertical",BI.FlexVerticalLayout)},function(e,t){BI.FlexWrapperCenterLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this,arguments),{baseCls:"bi-flex-scrollable-center-adapt-layout clearfix",horizontalAlign:BI.HorizontalAlign.Center,verticalAlign:BI.VerticalAlign.Middle,columnSize:[],scrollx:!1,scrollable:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var t=this,e=this.options;return{type:"bi.flex_scrollable_horizontal",ref:function(e){t.wrapper=e},horizontalAlign:e.horizontalAlign,verticalAlign:e.verticalAlign,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,items:e.items}},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate(e)}}),BI.shortcut("bi.flex_scrollable_center_adapt",BI.FlexWrapperCenterLayout)},function(e,t){BI.FlexWrapperHorizontalCenter=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexWrapperHorizontalCenter.superclass.props.apply(this,arguments),{baseCls:"bi-flex-scrollable-vertical-center-adapt-layout clearfix",verticalAlign:BI.VerticalAlign.Top,rowSize:[],scrollable:!0,scrolly:!1,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var t=this,e=this.options;return{type:"bi.flex_scrollable_vertical",ref:function(e){t.wrapper=e},horizontalAlign:BI.HorizontalAlign.Center,verticalAlign:e.verticalAlign,rowSize:e.rowSize,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,hgap:e.hgap,vgap:e.vgap,tgap:e.tgap,bgap:e.bgap,items:e.items}},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate(e)}}),BI.shortcut("bi.flex_scrollable_horizontal_adapt",BI.FlexWrapperHorizontalCenter),BI.shortcut("bi.flex_scrollable_horizontal_center_adapt",BI.FlexWrapperHorizontalCenter)},function(e,t){BI.FlexWrapperHorizontalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexWrapperHorizontalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-flex-scrollable-horizontal-layout clearfix",verticalAlign:BI.VerticalAlign.Top,horizontalAlign:BI.HorizontalAlign.Left,columnSize:[],scrollable:null,scrollx:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.FlexWrapperHorizontalLayout.superclass.render.apply(this,arguments);var e=this.options;this.$wrapper=BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-horizontal-layout-wrapper v-"+e.verticalAlign).addClass("h-"+e.horizontalAlign),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.FlexWrapperHorizontalLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative"}),n.horizontalAlign!==BI.HorizontalAlign.Left&&n.horizontalAlign!==BI.HorizontalAlign.Right||r.element.css({"flex-shrink":"0"}),0<n.columnSize[e]&&r.element.width(n.columnSize[e]<=1?100*n.columnSize[e]+"%":n.columnSize[e]),"fill"===n.columnSize[e]&&r.element.css("flex","1"),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":(0===e?n.hgap:0)+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},appendFragment:function(e){this.$wrapper.append(e),this.element.append(this.$wrapper)},_getWrapper:function(){return this.$wrapper},resize:function(){},populate:function(e){BI.FlexWrapperHorizontalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.flex_scrollable_horizontal",BI.FlexWrapperHorizontalLayout)},function(e,t){BI.FlexWrapperVerticalCenter=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexWrapperVerticalCenter.superclass.props.apply(this,arguments),{baseCls:"bi-flex-scrollable-vertical-center-adapt-layout clearfix",horizontalAlign:BI.HorizontalAlign.Left,columnSize:[],scrollx:!1,scrollable:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var t=this,e=this.options;return{type:"bi.flex_scrollable_horizontal",ref:function(e){t.wrapper=e},verticalAlign:BI.VerticalAlign.Middle,horizontalAlign:e.horizontalAlign,columnSize:e.columnSize,scrollx:e.scrollx,scrolly:e.scrolly,scrollable:e.scrollable,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,items:e.items}},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate(e)}}),BI.shortcut("bi.flex_scrollable_vertical_adapt",BI.FlexWrapperVerticalCenter),BI.shortcut("bi.flex_scrollable_vertical_center_adapt",BI.FlexWrapperVerticalCenter)},function(e,t){BI.FlexWrapperVerticalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FlexWrapperVerticalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-flex-scrollable-vertical-layout clearfix",horizontalAlign:BI.HorizontalAlign.Left,verticalAlign:BI.VerticalAlign.Top,rowSize:[],scrollable:null,scrolly:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.FlexWrapperVerticalLayout.superclass.render.apply(this,arguments);var e=this.options;this.$wrapper=BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-"+e.horizontalAlign).addClass("v-"+e.verticalAlign),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.FlexWrapperVerticalLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative"}),n.verticalAlign!==BI.VerticalAlign.Top&&n.verticalAlign!==BI.VerticalAlign.Bottom||r.element.css({"flex-shrink":"0"}),0<n.rowSize[e]&&r.element.height(n.rowSize[e]<=1?100*n.rowSize[e]+"%":n.rowSize[e]),"fill"===n.rowSize[e]&&r.element.css("flex","1"),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":(0===e?n.vgap:0)+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},appendFragment:function(e){this.$wrapper.append(e),this.element.append(this.$wrapper)},_getWrapper:function(){return this.$wrapper},resize:function(){},populate:function(e){BI.FlexWrapperVerticalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.flex_scrollable_vertical",BI.FlexWrapperVerticalLayout)},function(e,t){BI.AbsoluteLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.AbsoluteLayout.superclass.props.apply(this,arguments),{baseCls:"bi-absolute-layout",hgap:null,vgap:null,lgap:null,rgap:null,tgap:null,bgap:null})},render:function(){BI.AbsoluteLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.AbsoluteLayout.superclass._addElement.apply(this,arguments),i=0,a=0,o=0,s=0;return BI.isNotNull(t.left)&&(r.element.css({left:t.left}),i+=t.left),BI.isNotNull(t.right)&&(r.element.css({right:t.right}),a+=t.right),BI.isNotNull(t.top)&&(r.element.css({top:t.top}),o+=t.top),BI.isNotNull(t.bottom)&&(r.element.css({bottom:t.bottom}),s+=t.bottom),BI.isNotNull(n.hgap)&&(i+=n.hgap,r.element.css({left:i}),a+=n.hgap,r.element.css({right:a})),BI.isNotNull(n.vgap)&&(o+=n.vgap,r.element.css({top:o}),s+=n.vgap,r.element.css({bottom:s})),BI.isNotNull(n.lgap)&&(i+=n.lgap,r.element.css({left:i})),BI.isNotNull(n.rgap)&&(a+=n.rgap,r.element.css({right:a})),BI.isNotNull(n.tgap)&&(o+=n.tgap,r.element.css({top:o})),BI.isNotNull(n.bgap)&&(s+=n.bgap,r.element.css({bottom:s})),BI.isNotNull(t.width)&&r.element.css({width:t.width}),BI.isNotNull(t.height)&&r.element.css({height:t.height}),r.element.css({position:"absolute"}),r},resize:function(){this.stroke(this.options.items)},stroke:function(e){this.options.items=e||[];var n=this;BI.each(e,function(e,t){if(t){if(!BI.isWidget(t)&&!t.el)throw new Error("el must be exist");n._addElement(e,t)}})},populate:function(e){BI.AbsoluteLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.absolute",BI.AbsoluteLayout)},function(e,t){BI.AdaptiveLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.AdaptiveLayout.superclass.props.apply(this,arguments),{baseCls:"bi-adaptive-layout",hgap:null,vgap:null,lgap:null,rgap:null,tgap:null,bgap:null})},render:function(){BI.AdaptiveLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.AdaptiveLayout.superclass._addElement.apply(this,arguments);r.element.css({position:"relative"});var i=0,a=0,o=0,s=0;return BI.isNotNull(t.left)&&r.element.css({left:t.left}),BI.isNotNull(t.right)&&r.element.css({right:t.right}),BI.isNotNull(t.top)&&r.element.css({top:t.top}),BI.isNotNull(t.bottom)&&r.element.css({bottom:t.bottom}),BI.isNotNull(n.hgap)&&(i+=n.hgap,r.element.css({"margin-left":i}),a+=n.hgap,r.element.css({"margin-right":a})),BI.isNotNull(n.vgap)&&(o+=n.vgap,r.element.css({"margin-top":o}),s+=n.vgap,r.element.css({"margin-bottom":s})),BI.isNotNull(n.lgap)&&(i+=n.lgap,r.element.css({"margin-left":i})),BI.isNotNull(n.rgap)&&(a+=n.rgap,r.element.css({"margin-right":a})),BI.isNotNull(n.tgap)&&(o+=n.tgap,r.element.css({"margin-top":o})),BI.isNotNull(n.bgap)&&(s+=n.bgap,r.element.css({"margin-bottom":s})),BI.isNotNull(t.width)&&r.element.css({width:t.width}),BI.isNotNull(t.height)&&r.element.css({height:t.height}),r},resize:function(){this.stroke(this.options.items)},populate:function(e){BI.AbsoluteLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.adaptive",BI.AdaptiveLayout)},function(e,t){BI.BorderLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.BorderLayout.superclass.props.apply(this,arguments),{baseCls:"bi-border-layout",items:{}})},render:function(){BI.BorderLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){this.stroke(this.options.items)},addItem:function(e){throw new Error("cannot be added")},stroke:function(e){var t,n,r=0,i=0,a=0,o=0;"north"in e&&null!=(t=e.north)&&(t.el&&(this.hasWidget(this._getChildName("north"))||(n=BI._lazyCreateWidget(t),this.addWidget(this._getChildName("north"),n)),this.getWidgetByName(this._getChildName("north")).element.height(t.height).css({position:"absolute",top:t.top||0,left:t.left||0,right:t.right||0,bottom:"initial"})),r=(t.height||0)+(t.top||0)+(t.bottom||0)),"south"in e&&null!=(t=e.south)&&(t.el&&(this.hasWidget(this._getChildName("south"))||(n=BI._lazyCreateWidget(t),this.addWidget(this._getChildName("south"),n)),this.getWidgetByName(this._getChildName("south")).element.height(t.height).css({position:"absolute",bottom:t.bottom||0,left:t.left||0,right:t.right||0,top:"initial"})),i=(t.height||0)+(t.top||0)+(t.bottom||0)),"west"in e&&null!=(t=e.west)&&(t.el&&(this.hasWidget(this._getChildName("west"))||(n=BI._lazyCreateWidget(t),this.addWidget(this._getChildName("west"),n)),this.getWidgetByName(this._getChildName("west")).element.width(t.width).css({position:"absolute",left:t.left||0,top:r,bottom:i,right:"initial"})),a=(t.width||0)+(t.left||0)+(t.right||0)),"east"in e&&null!=(t=e.east)&&(t.el&&(this.hasWidget(this._getChildName("east"))||(n=BI._lazyCreateWidget(t),this.addWidget(this._getChildName("east"),n)),this.getWidgetByName(this._getChildName("east")).element.width(t.width).css({position:"absolute",right:t.right||0,top:r,bottom:i,left:"initial"})),o=(t.width||0)+(t.left||0)+(t.right||0)),"center"in e&&null!=(t=e.center)&&(this.hasWidget(this._getChildName("center"))||(n=BI._lazyCreateWidget(t),this.addWidget(this._getChildName("center"),n)),this.getWidgetByName(this._getChildName("center")).element.css({position:"absolute",top:r,bottom:i,left:a,right:o}))},update:function(e){},populate:function(e){BI.BorderLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.border",BI.BorderLayout)},function(e,t){BI.CardLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.CardLayout.superclass.props.apply(this,arguments),{baseCls:"bi-card-layout",items:[]})},render:function(){BI.CardLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){},stroke:function(e){var r=this,i=this.options;this.showIndex=void 0,BI.each(e,function(e,n){var t;n&&(r.hasWidget(n.cardName)?t=r.getWidgetByName(r._getChildName(n.cardName)):((t=BI._lazyCreateWidget(n)).on(BI.Events.DESTROY,function(){var e=BI.findIndex(i.items,function(e,t){return t.cardName==n.cardName});-1<e&&i.items.splice(e,1)}),r.addWidget(r._getChildName(n.cardName),t)),t.element.css({position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}),t.setVisible(!1))})},update:function(){},empty:function(){BI.CardLayout.superclass.empty.apply(this,arguments),this.options.items=[]},populate:function(e){BI.CardLayout.superclass.populate.apply(this,arguments),this._mount(),this.options.defaultShowName&&this.showCardByName(this.options.defaultShowName)},isCardExisted:function(n){return BI.some(this.options.items,function(e,t){return t.cardName==n&&t.el})},getCardByName:function(e){if(!this.isCardExisted(e))throw new Error("cardName is not exist");return this._children[this._getChildName(e)]},_deleteCardByName:function(n){delete this._children[this._getChildName(n)];var e=BI.findIndex(this.options.items,function(e,t){return t.cardName==n});-1<e&&this.options.items.splice(e,1)},deleteCardByName:function(e){if(!this.isCardExisted(e))throw new Error("cardName is not exist");var t=this._children[this._getChildName(e)];this._deleteCardByName(e),t&&t._destroy()},addCardByName:function(e,t){if(this.isCardExisted(e))throw new Error("cardName is already exist");var n=BI._lazyCreateWidget(t,this);return n.element.css({position:"relative",top:"0",left:"0",width:"100%",height:"100%"}).appendTo(this.element),n.invisible(),this.addWidget(this._getChildName(e),n),this.options.items.push({el:t,cardName:e}),n},showCardByName:function(r,i,a){var o=this,s=this.isCardExisted(r);null!=this.showIndex&&(this.lastShowIndex=this.showIndex),this.showIndex=r;var c=!1;BI.each(this.options.items,function(e,t){var n=o._children[o._getChildName(t.cardName)];n&&(r!=t.cardName?!c&&!s&&BI.Action&&i instanceof BI.Action?(i.actionBack(n),c=!0):n.invisible():BI.Action&&i instanceof BI.Action?i.actionPerformed(void 0,n,a):(n.visible(),a&&a()))})},showLastCard:function(){var n=this;this.showIndex=this.lastShowIndex,BI.each(this.options.items,function(e,t){n._children[n._getChildName(t.cardName)].setVisible(n.showIndex==e)})},setDefaultShowName:function(e){return this.options.defaultShowName=e,this},getDefaultShowName:function(){return this.options.defaultShowName},getAllCardNames:function(){return BI.map(this.options.items,function(e,t){return t.cardName})},getShowingCard:function(){if(BI.isKey(this.showIndex))return this.getWidgetByName(this._getChildName(this.showIndex))},deleteAllCard:function(){var n=this;BI.each(this.getAllCardNames(),function(e,t){n.deleteCardByName(t)})},hideAllCard:function(){var n=this;BI.each(this.options.items,function(e,t){n._children[n._getChildName(t.cardName)].invisible()})},isAllCardHide:function(){var n=this,r=!0;return BI.some(this.options.items,function(e,t){if(n._children[n._getChildName(t.cardName)].isVisible())return r=!1}),r},removeWidget:function(n){var r;BI.isWidget(n)?BI.each(this._children,function(e,t){t===n&&(r=e)}):r=n,r&&this._deleteCardByName(r)}}),BI.shortcut("bi.card",BI.CardLayout)},function(e,t){BI.DefaultLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.DefaultLayout.superclass.props.apply(this,arguments),{hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,items:[]})},render:function(){BI.DefaultLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.DefaultLayout.superclass._addElement.apply(this,arguments);return n.vgap+n.tgap+(t.tgap||0)!==0&&r.element.css({"margin-top":n.vgap+n.tgap+(t.tgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)!==0&&r.element.css({"margin-left":n.hgap+n.lgap+(t.lgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+"px"}),r},resize:function(){},populate:function(e){BI.DefaultLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.default",BI.DefaultLayout)},function(e,t){BI.DivisionLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.DivisionLayout.superclass.props.apply(this,arguments),{baseCls:"bi-division-layout",columns:null,rows:null,items:[]})},render:function(){BI.DivisionLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){this.stroke(this.opitons.items)},addItem:function(e){throw new Error("cannot be added")},stroke:function(e){var t=this.options,n=t.rows||t.items.length,r=t.columns||0|(t.items[0]&&t.items[0].length),i=BI.makeArray(n),a={},o={};function s(e,t,n){0===t&&e.addClass("first-row"),0===n&&e.addClass("first-col"),e.addClass(BI.isOdd(t+1)?"odd-row":"even-row"),e.addClass(BI.isOdd(n+1)?"odd-col":"even-col"),e.addClass("center-element")}function c(e,t,n){var r="";0===t&&(r+=" first-row"),0===n&&(r+=" first-col"),BI.isOdd(t+1)?r+=" odd-row":r+=" even-row",BI.isOdd(n+1)?r+=" odd-col":r+=" even-col",e.cls=(e.cls||"")+r+" center-element"}BI.each(i,function(e){i[e]=BI.makeArray(r)}),BI.each(e,function(n,r){BI.isArray(r)?BI.each(r,function(e,t){a[n]=(a[n]||0)+r.width,o[e]=(o[e]||0)+r.height,i[n][e]=t}):(a[r.row]=(a[r.row]||0)+r.width,o[r.column]=(o[r.column]||0)+r.height,i[r.row][r.column]=r)});for(var u,l,d,p=0;p<n;p++)for(var f=0,_=0;_<r;_++){if(!i[p][_])throw new Error("item be required");this.hasWidget(this._getChildName(p+"_"+_))?m=this.getWidgetByName(this._getChildName(p+"_"+_)):(m=BI._lazyCreateWidget(i[p][_]),this.addWidget(this._getChildName(p+"_"+_),m));var h=100*f/a[p];m.element.css({position:"absolute",left:h+"%"}),0<_&&this.getWidgetByName(this._getChildName(p+"_"+(_-1))).element.css({right:100-h+"%"}),_==t.columns-1&&m.element.css({right:"0%"}),l=p,d=_,(u=m)instanceof BI.Widget?s(u.element,l,d):u.el instanceof BI.Widget?s(u.el.element,l,d):u.el?c(u.el,l,d):c(u,l,d),f+=i[p][_].width}for(_=0;_<t.columns;_++)for(var g=0,p=0;p<t.rows;p++){var m=this.getWidgetByName(this._getChildName(p+"_"+_)),y=100*g/o[_];m.element.css({top:y+"%"}),0<p&&this.getWidgetByName(this._getChildName(p-1+"_"+_)).element.css({bottom:100-y+"%"}),p==t.rows-1&&m.element.css({bottom:"0%"}),g+=i[p][_].height}},update:function(){},populate:function(e){BI.DivisionLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.division",BI.DivisionLayout)},function(e,t){BI.FloatLeftLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FloatLeftLayout.superclass.props.apply(this,arguments),{baseCls:"bi-float-left-layout clearfix",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.FloatLeftLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.FloatLeftLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative","float":"left"}),BI.isNotNull(t.left)&&r.element.css({left:t.left}),BI.isNotNull(t.right)&&r.element.css({right:t.right}),BI.isNotNull(t.top)&&r.element.css({top:t.top}),BI.isNotNull(t.bottom)&&r.element.css({bottom:t.bottom}),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":(0===e?n.hgap:0)+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},resize:function(){this.stroke(this.options.items)},populate:function(e){BI.FloatLeftLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.left",BI.FloatLeftLayout),BI.FloatRightLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FloatRightLayout.superclass.props.apply(this,arguments),{baseCls:"bi-float-right-layout clearfix",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.FloatRightLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.FloatRightLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative","float":"right"}),BI.isNotNull(t.left)&&r.element.css({left:t.left}),BI.isNotNull(t.right)&&r.element.css({right:t.right}),BI.isNotNull(t.top)&&r.element.css({top:t.top}),BI.isNotNull(t.bottom)&&r.element.css({bottom:t.bottom}),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":(0===e?n.hgap:0)+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},resize:function(){this.stroke(this.options.items)},populate:function(e){BI.FloatRightLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.right",BI.FloatRightLayout)},function(e,t){BI.GridLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.GridLayout.superclass.props.apply(this,arguments),{baseCls:"bi-grid-layout",columns:null,rows:null,items:[]})},render:function(){BI.GridLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){},addItem:function(){throw new Error("cannot be added")},stroke:function(e){for(var t=this.options,n=t.rows||t.items.length,r=t.columns||0|(t.items[0]&&t.items[0].length),i=100/r,a=100/n,o=[],s=0;s<n;s++)o[s]=[];function c(e,t,n){0===t&&e.addClass("first-row"),0===n&&e.addClass("first-col"),e.addClass(BI.isOdd(t+1)?"odd-row":"even-row"),e.addClass(BI.isOdd(n+1)?"odd-col":"even-col"),e.addClass("center-element")}function u(e,t,n){var r="";0===t&&(r+=" first-row"),0===n&&(r+=" first-col"),BI.isOdd(t+1)?r+=" odd-row":r+=" even-row",BI.isOdd(n+1)?r+=" odd-col":r+=" even-col",e.cls=(e.cls||"")+r+" center-element"}BI.each(e,function(n,e){BI.isArray(e)?BI.each(e,function(e,t){o[n][e]=BI._lazyCreateWidget(t)}):o[e.row][e.column]=BI._lazyCreateWidget(e)});for(var l,d,p,s=0;s<n;s++)for(var f=0;f<r;f++)o[s][f]||(o[s][f]=BI._lazyCreateWidget({type:"bi.layout"})),l=o[s][f],d=s,p=f,l instanceof BI.Widget?c(l.element,d,p):l.el instanceof BI.Widget?c(l.el.element,d,p):l.el?u(l.el,d,p):u(l,d,p),o[s][f].element.css({position:"absolute",top:a*s+"%",left:i*f+"%",right:100-i*(f+1)+"%",bottom:100-a*(s+1)+"%"}),this.addWidget(this._getChildName(s+"_"+f),o[s][f])},update:function(){},populate:function(e){BI.GridLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.grid",BI.GridLayout)},function(e,t){BI.HorizontalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.HorizontalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-horizontal-layout",verticalAlign:BI.VerticalAlign.Top,horizontalAlign:BI.HorizontalAlign.Left,columnSize:[],scrollx:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){var e=this.options;BI.HorizontalLayout.superclass.render.apply(this,arguments),this.$table=BI.Widget._renderEngine.createElement("<table>").attr({cellspacing:0,cellpadding:0}).css({position:"relative","white-space":"nowrap",width:e.horizontalAlign===BI.HorizontalAlign.Center||e.horizontalAlign===BI.HorizontalAlign.Stretch?"100%":"auto",height:e.verticalAlign===BI.VerticalAlign.Middle||e.verticalAlign===BI.VerticalAlign.Stretch?"100%":"auto","border-spacing":"0px",border:"none","border-collapse":"separate"}),this.$tr=BI.Widget._renderEngine.createElement("<tr>"),this.$tr.appendTo(this.$table),this.populate(this.options.items)},_addElement:function(e,t){var n,r,i=this.options,a=i.columnSize[e]<=1?100*i.columnSize[e]+"%":i.columnSize[e];return this.hasWidget(this._getChildName(e))?(n=this.getWidgetByName(this._getChildName(e))).element.attr("width",a):((r=BI._lazyCreateWidget(t)).element.css({position:"relative",margin:"0px auto"}),n=BI._lazyCreateWidget({type:"bi.default",tagName:"td",attributes:{width:a},items:[r]}),this.addWidget(this._getChildName(e),n)),n.element.css({"max-width":i.columnSize[e]<=1?a:a+"px"}),0===e&&n.element.addClass("first-element"),n.element.css({position:"relative","vertical-align":i.verticalAlign,margin:"0",padding:"0",border:"none"}),i.vgap+i.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":i.vgap+i.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),i.hgap+i.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":(0===e?i.hgap:0)+i.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),i.hgap+i.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":i.hgap+i.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),i.vgap+i.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":i.vgap+i.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),n},appendFragment:function(e){this.$tr.append(e),this.element.append(this.$table)},resize:function(){},_getWrapper:function(){return this.$tr},populate:function(e){BI.HorizontalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.horizontal",BI.HorizontalLayout),BI.HorizontalCellLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.HorizontalCellLayout.superclass.props.apply(this,arguments),{baseCls:"bi-horizontal-cell-layout",scrollable:!0,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.HorizontalCellLayout.superclass.render.apply(this,arguments),this.element.css({display:"table","vertical-align":"top"}),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.HorizontalCellLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative",display:"table-cell","vertical-align":"middle"}),0<n.hgap+n.lgap&&r.element.css({"margin-left":n.hgap+n.lgap+"px"}),0<n.hgap+n.rgap&&r.element.css({"margin-right":n.hgap+n.rgap+"px"}),0<n.vgap+n.tgap&&r.element.css({"margin-top":n.vgap+n.tgap+"px"}),0<n.vgap+n.bgap&&r.element.css({"margin-bottom":n.vgap+n.bgap+"px"}),r},resize:function(){},populate:function(e){BI.HorizontalCellLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.horizontal_cell",BI.HorizontalCellLayout)},function(e,t){BI.InlineLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.InlineLayout.superclass.props.apply(this,arguments),{baseCls:"bi-inline-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.InlineLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.InlineLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative",display:"inline-block","*display":"inline","*zoom":1}),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":(0===e?n.hgap:0)+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},resize:function(){this.stroke(this.options.items)},populate:function(e){BI.InlineLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.inline",BI.InlineLayout)},function(e,t){BI.LatticeLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.LatticeLayout.superclass.props.apply(this,arguments),{baseCls:"bi-lattice-layout clearfix"})},render:function(){BI.LatticeLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n,r=this.options,i=BI.LatticeLayout.superclass._addElement.apply(this,arguments);return n=r.columnSize&&r.columnSize[e]?r.columnSize[e]/BI.sum(r.columnSize)*100+"%":1/this.options.items.length*100+"%",i.element.css({position:"relative","float":"left",width:n}),i},addItem:function(e){var t=BI.LatticeLayout.superclass.addItem.apply(this,arguments);return this.resize(),t},addItemAt:function(e){var t=BI.LatticeLayout.superclass.addItemAt.apply(this,arguments);return this.resize(),t},resize:function(){this.stroke(this.options.items)},populate:function(e){BI.LatticeLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.lattice",BI.LatticeLayout)},function(e,t){BI.TableLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.TableLayout.superclass.props.apply(this,arguments),{baseCls:"bi-table-layout",scrolly:!0,columnSize:[200,200,"fill"],rowSize:30,hgap:0,vgap:0,items:[[{el:{text:"label1"}},{el:{text:"label2"}},{el:{text:"label3"}}]]})},render:function(){BI.TableLayout.superclass.render.apply(this,arguments),this.rows=0,this.populate(this.options.items)},_addElement:function(e,t){var n,r,i=this.options,a=[],o=0,s=0;function c(e,t,n){0===t&&e.addClass("first-row"),0===n&&e.addClass("first-col"),e.addClass(BI.isOdd(t+1)?"odd-row":"even-row"),e.addClass(BI.isOdd(n+1)?"odd-col":"even-col"),e.addClass("center-element")}function u(e,t,n){var r="";0===t&&(r+=" first-row"),0===n&&(r+=" first-col"),BI.isOdd(t+1)?r+=" odd-row":r+=" even-row",BI.isOdd(n+1)?r+=" odd-col":r+=" even-col",e.cls=(e.cls||"")+r+" center-element"}function l(e,t,n){e instanceof BI.Widget?c(e.element,t,n):e.el instanceof BI.Widget?c(e.el.element,t,n):e.el?u(e.el,t,n):u(e,t,n)}for(n=0;n<t.length&&BI.isNumber(i.columnSize[n]);n++)l(t[n],this.rows,n),a.push(BI.extend({top:0,bottom:0,left:i.columnSize[n]<=1?100*o+"%":o,width:i.columnSize[n]<=1?100*i.columnSize[n]+"%":i.columnSize[n]},t[n])),o+=i.columnSize[n]+(i.columnSize[n]<1?0:i.hgap);for(r=t.length-1;n<r;r--){if(!BI.isNumber(i.columnSize[r]))throw new Error("item with fill can only be one");l(t[r],this.rows,r),a.push(BI.extend({top:0,bottom:0,right:i.columnSize[r]<=1?100*s+"%":s,width:i.columnSize[r]<=1?100*i.columnSize[r]+"%":i.columnSize[r]},t[r])),s+=i.columnSize[r]+(i.columnSize[r]<1?0:i.hgap)}0<=n&&n<t.length&&(l(t[n],this.rows,n),a.push(BI.extend({top:0,bottom:0,left:o<=1?100*o+"%":o,right:s<=1?100*s+"%":s},t[n])));var d=BI._lazyCreateWidget({type:"bi.absolute",height:BI.isArray(i.rowSize)?i.rowSize[this.rows]:i.rowSize,items:a});return 0<this.rows&&this.getWidgetByName(this._getChildName(this.rows-1)).element.css({"margin-bottom":i.vgap}),d.element.css({position:"relative"}),this.addWidget(this._getChildName(this.rows++),d),d},resize:function(){},addItem:function(e){if(!BI.isArray(e))throw new Error("item must be array");return BI.TableLayout.superclass.addItem.apply(this,arguments)},update:function(){},populate:function(e){BI.TableLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.table",BI.TableLayout)},function(e,t){BI.HTapeLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.HTapeLayout.superclass.props.apply(this,arguments),{baseCls:"bi-h-tape-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,items:[{width:100,el:{type:"bi.button",text:"button1"}},{width:"fill",el:{type:"bi.button",text:"button2"}},{width:200,el:{type:"bi.button",text:"button3"}}]})},render:function(){BI.HTapeLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){this.stroke(this.options.items)},addItem:function(e){throw new Error("cannot be added")},stroke:function(r){var i=this,a=this.options;r=BI.compact(r),BI.each(r,function(e,t){var n;i.hasWidget(i._getChildName(e))?n=i.getWidgetByName(i._getChildName(e)):(n=BI._lazyCreateWidget(t),i.addWidget(i._getChildName(e),n)),n.element.css({position:"absolute",top:(t.vgap||0)+(t.tgap||0)+a.vgap+a.tgap+"px",bottom:(t.bgap||0)+(t.vgap||0)+a.vgap+a.bgap+"px"})});var o={},s={};o[0]=0,s[r.length-1]=0,BI.any(r,function(e,t){var n=i.getWidgetByName(i._getChildName(e));if(BI.isNull(o[e])&&(o[e]=o[e-1]+r[e-1].width+(r[e-1].lgap||0)+2*(r[e-1].hgap||0)+a.hgap+a.lgap+a.rgap),t.width<1&&0<=t.width?n.element.css({left:100*o[e]+"%",width:100*t.width+"%"}):n.element.css({left:o[e]+(t.lgap||0)+(t.hgap||0)+a.hgap+a.lgap+"px",width:BI.isNumber(t.width)?t.width:""}),!BI.isNumber(t.width))return!0}),BI.backAny(r,function(e,t){var n=i.getWidgetByName(i._getChildName(e));if(BI.isNull(s[e])&&(s[e]=s[e+1]+r[e+1].width+(r[e+1].rgap||0)+2*(r[e+1].hgap||0)+a.hgap+a.lgap+a.rgap),t.width<1&&0<=t.width?n.element.css({right:100*s[e]+"%",width:100*t.width+"%"}):n.element.css({right:s[e]+(t.rgap||0)+(t.hgap||0)+a.hgap+a.rgap+"px",width:BI.isNumber(t.width)?t.width:""}),!BI.isNumber(t.width))return!0})},update:function(){var n;return BI.each(this._children,function(e,t){n=t.update()||n}),n},populate:function(e){BI.HTapeLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.htape",BI.HTapeLayout),BI.VTapeLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.VTapeLayout.superclass.props.apply(this,arguments),{baseCls:"bi-v-tape-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,items:[{height:100,el:{type:"bi.button",text:"button1"}},{height:"fill",el:{type:"bi.button",text:"button2"}},{height:200,el:{type:"bi.button",text:"button3"}}]})},render:function(){BI.VTapeLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){this.stroke(this.options.items)},addItem:function(e){throw new Error("cannot be added")},stroke:function(r){var i=this,a=this.options;r=BI.compact(r),BI.each(r,function(e,t){var n;i.hasWidget(i._getChildName(e))?n=i.getWidgetByName(i._getChildName(e)):(n=BI._lazyCreateWidget(t),i.addWidget(i._getChildName(e),n)),n.element.css({position:"absolute",left:(t.lgap||0)+(t.hgap||0)+a.hgap+a.lgap+"px",right:+(t.hgap||0)+(t.rgap||0)+a.hgap+a.rgap+"px"})});var o={},s={};o[0]=0,s[r.length-1]=0,BI.any(r,function(e,t){var n=i.getWidgetByName(i._getChildName(e));if(BI.isNull(o[e])&&(o[e]=o[e-1]+r[e-1].height+(r[e-1].tgap||0)+2*(r[e-1].vgap||0)+a.vgap+a.tgap+a.bgap),t.height<1&&0<=t.height?n.element.css({top:100*o[e]+"%",height:100*t.height+"%"}):n.element.css({top:o[e]+(t.vgap||0)+(t.tgap||0)+a.vgap+a.tgap+"px",height:BI.isNumber(t.height)?t.height:""}),!BI.isNumber(t.height))return!0}),BI.backAny(r,function(e,t){var n=i.getWidgetByName(i._getChildName(e));if(BI.isNull(s[e])&&(s[e]=s[e+1]+r[e+1].height+(r[e+1].bgap||0)+2*(r[e+1].vgap||0)+a.vgap+a.tgap+a.bgap),t.height<1&&0<=t.height?n.element.css({bottom:100*s[e]+"%",height:100*t.height+"%"}):n.element.css({bottom:s[e]+(t.vgap||0)+(t.bgap||0)+a.vgap+a.bgap+"px",height:BI.isNumber(t.height)?t.height:""}),!BI.isNumber(t.height))return!0})},update:function(){},populate:function(e){BI.VTapeLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.vtape",BI.VTapeLayout)},function(e,t){BI.TdLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.TdLayout.superclass.props.apply(this,arguments),{baseCls:"bi-td-layout",columnSize:[200,200,200],hgap:0,vgap:0,items:[[{el:{text:"label1"}},{el:{text:"label2"}},{el:{text:"label3"}}]]})},render:function(){BI.TdLayout.superclass.render.apply(this,arguments),this.$table=BI.Widget._renderEngine.createElement("<table>").attr({cellspacing:0,cellpadding:0}).css({position:"relative",width:"100%",height:"100%","border-spacing":"0px",border:"none","border-collapse":"separate"}),this.rows=0,this.populate(this.options.items)},_addElement:function(e,t){var n=this.options;function r(e,t,n){0===t&&e.addClass("first-row"),0===n&&e.addClass("first-col"),e.addClass(BI.isOdd(t+1)?"odd-row":"even-row"),e.addClass(BI.isOdd(n+1)?"odd-col":"even-col"),e.addClass("center-element")}function i(e,t,n){var r="";0===t&&(r+=" first-row"),0===n&&(r+=" first-col"),BI.isOdd(t+1)?r+=" odd-row":r+=" even-row",BI.isOdd(n+1)?r+=" odd-col":r+=" even-col",e.cls=(e.cls||"")+r+" center-element"}for(var a,o,s,c=BI._lazyCreateWidget({type:"bi.default",tagName:"tr"}),u=0;u<t.length;u++){var l=BI._lazyCreateWidget(t[u]);l.element.css({position:"relative",top:"0",left:"0",margin:"0px auto"}),t[u].lgap&&l.element.css({"margin-left":t[u].lgap+"px"}),t[u].rgap&&l.element.css({"margin-right":t[u].rgap+"px"}),t[u].tgap&&l.element.css({"margin-top":t[u].tgap+"px"}),t[u].bgap&&l.element.css({"margin-bottom":t[u].bgap+"px"}),a=l,o=this.rows++,s=u,a instanceof BI.Widget?r(a.element,o,s):a.el instanceof BI.Widget?r(a.el.element,o,s):a.el?i(a.el,o,s):i(a,o,s);var d=BI._lazyCreateWidget({type:"bi.default",attributes:{width:n.columnSize[u]<=1?100*n.columnSize[u]+"%":n.columnSize[u]},tagName:"td",items:[l]});d.element.css({position:"relative","vertical-align":"middle",margin:"0",padding:"0",border:"none"}),c.addItem(d)}return this.addWidget(this._getChildName(e),c),c},appendFragment:function(e){this.$table.append(e),this.element.append(this.$table)},resize:function(){},addItem:function(e){if(!BI.isArray(e))throw new Error("item must be array");return BI.TdLayout.superclass.addItem.apply(this,arguments)},update:function(){},populate:function(e){BI.TdLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.td",BI.TdLayout)},function(e,t){BI.VerticalLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.VerticalLayout.superclass.props.apply(this,arguments),{baseCls:"bi-vertical-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,scrolly:!0})},render:function(){BI.VerticalLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},_addElement:function(e,t){var n=this.options,r=BI.VerticalLayout.superclass._addElement.apply(this,arguments);return r.element.css({position:"relative"}),n.vgap+n.tgap+(t.tgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-top":(0===e?n.vgap:0)+n.tgap+(t.tgap||0)+(t.vgap||0)+"px"}),n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-left":n.hgap+n.lgap+(t.lgap||0)+(t.hgap||0)+"px"}),n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)!==0&&r.element.css({"margin-right":n.hgap+n.rgap+(t.rgap||0)+(t.hgap||0)+"px"}),n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)!==0&&r.element.css({"margin-bottom":n.vgap+n.bgap+(t.bgap||0)+(t.vgap||0)+"px"}),r},resize:function(){this.stroke(this.options.items)},populate:function(e){BI.VerticalLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.vertical",BI.VerticalLayout)},function(e,t){BI.WindowLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.WindowLayout.superclass.props.apply(this,arguments),{baseCls:"bi-window-layout",columns:3,rows:2,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,columnSize:[100,"fill",200],rowSize:[100,"fill"],items:[[{el:{type:"bi.button",text:"button1"}},{el:{type:"bi.button",text:"button2"}},{el:{type:"bi.button",text:"button3"}}]]})},render:function(){BI.WindowLayout.superclass.render.apply(this,arguments),this.populate(this.options.items)},resize:function(){this.stroke(this.options.items)},addItem:function(e){throw new Error("cannot be added")},stroke:function(e){var t=this.options;function r(e,t,n){0===t&&e.addClass("first-row"),0===n&&e.addClass("first-col"),e.addClass(BI.isOdd(t+1)?"odd-row":"even-row"),e.addClass(BI.isOdd(n+1)?"odd-col":"even-col"),e.addClass("center-element")}function i(e,t,n){var r="";0===t&&(r+=" first-row"),0===n&&(r+=" first-col"),BI.isOdd(t+1)?r+=" odd-row":r+=" even-row",BI.isOdd(n+1)?r+=" odd-col":r+=" even-col",e.cls=(e.cls||"")+r+" center-element"}function n(e,t,n){e instanceof BI.Widget?r(e.element,t,n):e.el instanceof BI.Widget?r(e.el.element,t,n):e.el?i(e.el,t,n):i(e,t,n)}BI.isNumber(t.rowSize)&&(t.rowSize=BI.makeArray(t.items.length,1/t.items.length)),BI.isNumber(t.columnSize)&&(t.columnSize=BI.makeArray(t.items[0].length,1/t.items[0].length));for(var a=0;a<t.rows;a++)for(var o=0;o<t.columns;o++){if(!t.items[a][o])throw new Error("item be required");this.hasWidget(this._getChildName(a+"_"+o))||((g=BI._lazyCreateWidget(t.items[a][o])).element.css({position:"absolute"}),this.addWidget(this._getChildName(a+"_"+o),g))}var s={},c={},u={},l={};u[s[0]=0]=0,c[t.columns-1]=0;for(a=l[t.rows-1]=0;a<t.rows;a++){for(o=0;o<t.columns;o++){var d=this.getWidgetByName(this._getChildName(a+"_"+o));BI.isNull(u[a])&&(u[a]=u[a-1]+(t.rowSize[a-1]<1?t.rowSize[a-1]:t.rowSize[a-1]+t.vgap+t.bgap));var p=u[a]<=1?100*u[a]+"%":u[a]+t.vgap+t.tgap+"px",f="";BI.isNumber(t.rowSize[a])&&(f=t.rowSize[a]<=1?100*t.rowSize[a]+"%":t.rowSize[a]+"px"),d.element.css({top:p,height:f}),n(d,a,o)}if(!BI.isNumber(t.rowSize[a]))break}for(a=t.rows-1;0<=a;a--){for(o=0;o<t.columns;o++){d=this.getWidgetByName(this._getChildName(a+"_"+o));BI.isNull(l[a])&&(l[a]=l[a+1]+(t.rowSize[a+1]<1?t.rowSize[a+1]:t.rowSize[a+1]+t.vgap+t.tgap));var _=l[a]<=1?100*l[a]+"%":l[a]+t.vgap+t.bgap+"px",f="";BI.isNumber(t.rowSize[a])&&(f=t.rowSize[a]<=1?100*t.rowSize[a]+"%":t.rowSize[a]+"px"),d.element.css({bottom:_,height:f}),n(d,a,o)}if(!BI.isNumber(t.rowSize[a]))break}for(o=0;o<t.columns;o++){for(a=0;a<t.rows;a++){d=this.getWidgetByName(this._getChildName(a+"_"+o));BI.isNull(s[o])&&(s[o]=s[o-1]+(t.columnSize[o-1]<1?t.columnSize[o-1]:t.columnSize[o-1]+t.hgap+t.rgap));var h=s[o]<=1?100*s[o]+"%":s[o]+t.hgap+t.lgap+"px",g="";BI.isNumber(t.columnSize[o])&&(g=t.columnSize[o]<=1?100*t.columnSize[o]+"%":t.columnSize[o]+"px"),d.element.css({left:h,width:g}),n(d,a,o)}if(!BI.isNumber(t.columnSize[o]))break}for(o=t.columns-1;0<=o;o--){for(a=0;a<t.rows;a++){d=this.getWidgetByName(this._getChildName(a+"_"+o));BI.isNull(c[o])&&(c[o]=c[o+1]+(t.columnSize[o+1]<1?t.columnSize[o+1]:t.columnSize[o+1]+t.hgap+t.lgap));var m=c[o]<=1?100*c[o]+"%":c[o]+t.hgap+t.rgap+"px",g="";BI.isNumber(t.columnSize[o])&&(g=t.columnSize[o]<=1?100*t.columnSize[o]+"%":t.columnSize[o]+"px"),d.element.css({right:m,width:g}),n(d,a,o)}if(!BI.isNumber(t.columnSize[o]))break}},update:function(){},populate:function(e){BI.WindowLayout.superclass.populate.apply(this,arguments),this._mount()}}),BI.shortcut("bi.window",BI.WindowLayout)},function(e,t){BI.CenterLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.CenterLayout.superclass.props.apply(this,arguments),{baseCls:"bi-center-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.CenterLayout.superclass.render.apply(this,arguments);var t=this,r=this.options,i=[],n=r.items;return BI.each(n,function(e){i.push({column:e,row:0,el:BI._lazyCreateWidget({type:"bi.default",cls:"center-element "+(0===e?"first-element ":"")+(e===n.length-1?"last-element":"")})})}),BI.each(n,function(e,t){var n;t&&((n=BI._lazyCreateWidget(t)).element.css({position:"absolute",left:r.hgap+r.lgap,right:r.hgap+r.rgap,top:r.vgap+r.tgap,bottom:r.vgap+r.bgap,width:"auto",height:"auto"}),i[e].el.addItem(n))}),{type:"bi.grid",ref:function(e){t.wrapper=e},columns:i.length,rows:1,items:i}},resize:function(){},addItem:function(e){throw new Error("cannot be added")},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate.apply(this.wrapper,arguments)}}),BI.shortcut("bi.center",BI.CenterLayout)},function(e,t){BI.FloatCenterLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.FloatCenterLayout.superclass.props.apply(this,arguments),{baseCls:"bi-float-center-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.FloatCenterLayout.superclass.render.apply(this,arguments);var t=this,r=this.options,n=r.items,i=[],a=100/n.length;return BI.each(n,function(e){var t=BI._lazyCreateWidget({type:"bi.default"});t.element.addClass("center-element "+(0===e?"first-element ":"")+(e===n.length-1?"last-element":"")).css({width:a+"%",height:"100%"}),i.push({el:t})}),BI.each(n,function(e,t){var n;t&&((n=BI._lazyCreateWidget(t)).element.css({position:"absolute",left:r.hgap+r.lgap,right:r.hgap+r.rgap,top:r.vgap+r.tgap,bottom:r.vgap+r.bgap,width:"auto",height:"auto"}),i[e].el.addItem(n))}),{type:"bi.left",ref:function(e){t.wrapper=e},items:i}},resize:function(){},addItem:function(e){throw new Error("cannot be added")},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate.apply(this.wrapper,arguments)}}),BI.shortcut("bi.float_center",BI.FloatCenterLayout)},function(e,t){BI.HorizontalCenterLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.HorizontalCenterLayout.superclass.props.apply(this,arguments),{baseCls:"bi-horizontal-center-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.HorizontalCenterLayout.superclass.render.apply(this,arguments);var t=this,r=this.options,n=r.items,i=[];return BI.each(n,function(e){i.push({column:e,row:0,el:BI._lazyCreateWidget({type:"bi.default",cls:"center-element "+(0===e?"first-element ":"")+(e===n.length-1?"last-element":"")})})}),BI.each(n,function(e,t){var n;t&&((n=BI._lazyCreateWidget(t)).element.css({position:"absolute",left:r.hgap+r.lgap,right:r.hgap+r.rgap,top:r.vgap+r.tgap,bottom:r.vgap+r.bgap,width:"auto"}),i[e].el.addItem(n))}),{type:"bi.grid",ref:function(e){t.wrapper=e},columns:i.length,rows:1,items:i}},resize:function(){},addItem:function(e){throw new Error("cannot be added")},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate.apply(this.wrapper,arguments)}}),BI.shortcut("bi.horizontal_center",BI.HorizontalCenterLayout)},function(e,t){BI.VerticalCenterLayout=BI.inherit(BI.Layout,{props:function(){return BI.extend(BI.VerticalCenterLayout.superclass.props.apply(this,arguments),{baseCls:"bi-vertical-center-layout",hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0})},render:function(){BI.VerticalCenterLayout.superclass.render.apply(this,arguments);var t=this,r=this.options,n=r.items,i=[];return BI.each(n,function(e){i.push({column:0,row:e,el:BI._lazyCreateWidget({type:"bi.default",cls:"center-element "+(0===e?"first-element ":"")+(e===n.length-1?"last-element":"")})})}),BI.each(n,function(e,t){var n;t&&((n=BI._lazyCreateWidget(t)).element.css({position:"absolute",left:r.hgap+r.lgap,right:r.hgap+r.rgap,top:r.vgap+r.tgap,bottom:r.vgap+r.bgap,height:"auto"}),i[e].el.addItem(n))}),{type:"bi.grid",ref:function(e){t.wrapper=e},columns:1,rows:i.length,items:i}},resize:function(){},addItem:function(e){throw new Error("cannot be added")},update:function(e){return this.wrapper.update(e)},populate:function(e){this.wrapper.populate.apply(this.wrapper,arguments)}}),BI.shortcut("bi.vertical_center",BI.VerticalCenterLayout)},function(e,t){BI.Pane=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Pane.superclass._defaultConfig.apply(this,arguments),{_baseCls:"bi-pane",tipText:BI.i18nText("BI-No_Selected_Item"),loadingText:"",loadingSize:"small",overlap:!0,onLoaded:BI.emptyFn})},_assertTip:function(){var e=this.options;this._tipText||(this._tipText=BI.createWidget({type:"bi.label",cls:"bi-tips",text:e.tipText,height:25}),BI.createWidget({type:"bi.absolute_center_adapt",element:this,items:[this._tipText]}))},loading:function(){var e=this.options,t=BI.isIE(),n=BI.createWidget({type:"bi.horizontal",cls:"bi-loading-widget"+(t?" wave-loading hack":""),height:this._getSize(60),width:this._getSize(60),hgap:this._getSize(10),vgap:2.5,items:t?[]:[{type:"bi.layout",cls:"animate-rect rect1",height:this._getSize(50),width:this._getSize(5)},{type:"bi.layout",cls:"animate-rect rect2",height:this._getSize(50),width:this._getSize(5)},{type:"bi.layout",cls:"animate-rect rect3",height:this._getSize(50),width:this._getSize(5)}]});this.setTipVisible(!1),!0===e.overlap?(BI.Layers.has(this.getName())||BI.createWidget({type:"bi.center_adapt",cls:"loading-container",items:this._getLoadingTipItems(n),element:BI.Layers.make(this.getName(),this)}),BI.Layers.show(this.getName())):BI.isNull(this._loading)&&(this._loading=n,this._loading.element.css("zIndex",1),BI.createWidget({type:"bi.center_adapt",element:this,cls:"loading-container",items:this._getLoadingTipItems(this._loading)})),this.element.addClass("loading-status")},_getSize:function(e){return Math.ceil(e/("small"===this.options.loadingSize?2:1))},_getLoadingTipItems:function(e){var t=this.options,n=[{type:"bi.horizontal_adapt",items:[e]}];return BI.isNotEmptyString(t.loadingText)&&n.push({type:"bi.text",text:t.loadingText,tgap:this._getSize(10)}),[{type:"bi.vertical",items:n}]},loaded:function(){var e=this.options;BI.Layers.remove(this.getName()),this._loading&&this._loading.destroy(),this._loading&&(this._loading=null),e.onLoaded(),this.fireEvent(BI.Pane.EVENT_LOADED),this.element.removeClass("loading-status")},check:function(){this.setTipVisible(BI.isEmpty(this.options.items))},setTipVisible:function(e){!0===e?(this._assertTip(),this._tipText.setVisible(!0)):this._tipText&&this._tipText.setVisible(!1)},populate:function(e){this.options.items=e||[],this.check()},empty:function(){}}),BI.Pane.EVENT_LOADED="EVENT_LOADED"},function(e,t){BI.Single=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.Single.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{_baseCls:(e._baseCls||"")+" bi-single",readonly:!1,title:null,warningTitle:null,tipType:null,value:null,belowMouse:!1})},_showToolTip:function(e,t){t=t||{};var n=this.options,r=this.getTipType()||(this.isEnabled()?"success":"warning"),i="success"!==r&&this.getWarningTitle()||this.getTitle();BI.isKey(i)&&(BI.Tooltips.show(e,this.getName(),i,r,this,t),n.action&&BI.Actions.runAction(n.action,"hover",n,this),BI.Actions.runGlobalAction("hover",n,this))},_hideTooltip:function(){var e=this,t=BI.Tooltips.get(this.getName());BI.isNotNull(t)&&t.element.fadeOut(200,function(){BI.Tooltips.remove(e.getName())})},_init:function(){BI.Single.superclass._init.apply(this,arguments);var e=this.options;(BI.isKey(e.title)||BI.isKey(e.warningTitle)||BI.isFunction(e.title)||BI.isFunction(e.warningTitle))&&this.enableHover({belowMouse:e.belowMouse,container:e.container})},_clearTimeOut:function(){BI.isNotNull(this.showTimeout)&&(clearTimeout(this.showTimeout),this.showTimeout=null),BI.isNotNull(this.hideTimeout)&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},enableHover:function(t){t=t||{};var n=this;this._hoverBinded||(this.element.on("mouseenter.title"+this.getName(),function(e){n._e=e,"warning"===n.getTipType()||BI.isKey(n.getWarningTitle())&&!n.isEnabled()?n.showTimeout=BI.delay(function(){BI.isNotNull(n.showTimeout)&&n._showToolTip(n._e||e,t)},200):"success"!==n.getTipType()&&!n.isEnabled()||(n.showTimeout=BI.delay(function(){BI.isNotNull(n.showTimeout)&&n._showToolTip(n._e||e,t)},500))}),this.element.on("mousemove.title"+this.getName(),function(e){n._e=e,BI.isNotNull(n.showTimeout)&&(clearTimeout(n.showTimeout),n.showTimeout=null),BI.isNull(n.hideTimeout)&&(n.hideTimeout=BI.delay(function(){BI.isNotNull(n.hideTimeout)&&n._hideTooltip()},500)),n.showTimeout=BI.delay(function(){BI.isNotNull(n.showTimeout)&&(BI.isNotNull(n.hideTimeout)&&(clearTimeout(n.hideTimeout),n.hideTimeout=null),n.element.__isMouseInBounds__(n._e||e)&&n._showToolTip(n._e||e,t))},500)}),this.element.on("mouseleave.title"+this.getName(),function(e){n._e=null,n._clearTimeOut(),n._hideTooltip()}),this._hoverBinded=!0)},disabledHover:function(){this._clearTimeOut(),this._hideTooltip(),this.element.unbind("mouseenter.title"+this.getName()).unbind("mousemove.title"+this.getName()).unbind("mouseleave.title"+this.getName()),this._hoverBinded=!1},populate:function(e){this.items=e||[]},setTitle:function(e,t){this.options.title=e,BI.isKey(e)||BI.isFunction(e)?this.enableHover(t):this.disabledHover()},setWarningTitle:function(e,t){this.options.warningTitle=e,BI.isKey(e)||BI.isFunction(e)?this.enableHover(t):this.disabledHover()},setTipType:function(e){this.options.tipType=e},getTipType:function(){return this.options.tipType},isReadOnly:function(){return!!this.options.readonly},getTitle:function(){var e=this.options.title;return BI.isFunction(e)?e():e},getWarningTitle:function(){var e=this.options.warningTitle;return BI.isFunction(e)?e():e},setValue:function(e){this.options.readonly||(this.options.value=e)},getValue:function(){return this.options.value},destroyed:function(){BI.isNotNull(this.showTimeout)&&(clearTimeout(this.showTimeout),this.showTimeout=null),BI.Tooltips.remove(this.getName())}})},function(e,t){!function(){BI.Text=BI.inherit(BI.Single,{props:{baseCls:"bi-text",textAlign:"left",whiteSpace:"normal",lineHeight:null,handler:null,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,py:"",highLight:!1},render:function(){var e=this,t=this.options;0<t.hgap+t.lgap&&this.element.css({"padding-left":t.hgap+t.lgap+"px"}),0<t.hgap+t.rgap&&this.element.css({"padding-right":t.hgap+t.rgap+"px"}),0<t.vgap+t.tgap&&this.element.css({"padding-top":t.vgap+t.tgap+"px"}),0<t.vgap+t.bgap&&this.element.css({"padding-bottom":t.vgap+t.bgap+"px"}),BI.isNumber(t.height)&&this.element.css({lineHeight:t.height+"px"}),BI.isNumber(t.lineHeight)&&this.element.css({lineHeight:t.lineHeight+"px"}),BI.isWidthOrHeight(t.maxWidth)&&this.element.css({maxWidth:t.maxWidth}),this.element.css({textAlign:t.textAlign,whiteSpace:this._getTextWrap(),textOverflow:"nowrap"===t.whiteSpace?"ellipsis":"",overflow:"nowrap"!==t.whiteSpace&&BI.isWidthOrHeight(t.height)?"auto":""}),t.handler&&t.handler!==BI.emptyFn?(this.text=BI.createWidget({type:"bi.layout",tagName:"span"}),this.text.element.click(function(){t.handler(e.getValue())}),BI.createWidget({type:"bi.default",element:this,items:[this.text]})):this.text=this;var n=this._getShowText();BI.isUndefined(n)?BI.isKey(t.value)&&this.setText(t.value):this.setText(n),BI.isKey(t.keyword)&&this.doRedMark(t.keyword),t.highLight&&this.doHighLight()},_getTextWrap:function(){switch(this.options.whiteSpace){case"nowrap":return"pre";case"normal":default:return"pre-wrap"}},_getShowText:function(){var e=this.options,t=BI.isFunction(e.text)?e.text():e.text;return BI.isKey(t)?BI.Text.formatText(t+""):t},_doRedMark:function(e){var t=this.options;t.keyword=e,this.text.element.__textKeywordMarked__(this._getShowText(),e,t.py)},doRedMark:function(e){BI.isKey(e)&&this._doRedMark(e)},unRedMark:function(){var e=this.options;e.keyword="",this.text.element.__textKeywordMarked__(this._getShowText(),"",e.py)},doHighLight:function(){this.text.element.addClass("bi-high-light")},unHighLight:function(){this.text.element.removeClass("bi-high-light")},setValue:function(e){BI.Text.superclass.setValue.apply(this,arguments),this.isReadOnly()||this.setText(e)},setStyle:function(e){this.text.element.css(e)},setText:function(e){BI.Text.superclass.setText.apply(this,arguments),this.options.text=BI.isNotNull(e)?e:"",this._doRedMark(this.options.keyword)}});var r=[];BI.Text.addTextFormatter=function(e){r.push(e)},BI.Text.formatText=function(e){if(0<r.length)for(var t=0,n=r.length;t<n;t++)e=r[t](e);return e},BI.shortcut("bi.text",BI.Text)}()},function(e,t){BI.BasicButton=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.BasicButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{_baseCls:(e._baseCls||"")+" bi-basic-button"+(e.invalid?"":" cursor-pointer")+(BI.isIE()&&BI.getIEVersion()<10?" hack":""),value:"",stopEvent:!1,stopPropagation:!1,selected:!1,once:!1,forceSelected:!1,forceNotSelected:!1,disableSelected:!1,shadow:!1,isShadowShowingOnSelected:!1,trigger:null,handler:BI.emptyFn,bubble:null})},_init:function(){BI.BasicButton.superclass._init.apply(this,arguments);var e=this.options;!0===e.selected&&BI.nextTick(BI.bind(function(){this.setSelected(e.selected)},this)),BI.nextTick(BI.bind(this.bindEvent,this)),e.shadow&&this._createShadow(),e.level&&this.element.addClass("button-"+e.level)},_createShadow:function(){var t=this,n=this.options,r=function(){t.$mask||(t.$mask=BI.createWidget(BI.isObject(n.shadow)?n.shadow:{},{type:"bi.layout",cls:"bi-button-mask"}),t.$mask.invisible(),BI.createWidget({type:"bi.absolute",element:t,items:[{el:t.$mask,left:0,right:0,top:0,bottom:0}]}))};this.element.mouseup(function(){t._hover||n.isShadowShowingOnSelected||(r(),t.$mask.invisible())}),this.element.on("mouseenter."+this.getName(),function(e){t.element.__isMouseInBounds__(e)&&(!t.isEnabled()||t._hover||!n.isShadowShowingOnSelected&&t.isSelected()||(r(),t.$mask.visible()))}),this.element.on("mousemove."+this.getName(),function(e){t.element.__isMouseInBounds__(e)||t.isEnabled()&&!t._hover&&(r(),t.$mask.invisible())}),this.element.on("mouseleave."+this.getName(),function(){t.isEnabled()&&!t._hover&&(r(),t.$mask.invisible())})},bindEvent:function(){var e,n,a=this,o=this.options,s=this.handle();function c(e){o.stopEvent&&e.stopEvent(),o.stopPropagation&&e.stopPropagation()}function u(e){if(c(e),!(!a.isEnabled()||a.isOnce()&&a.isSelected())){var t;if(BI.isKey(o.bubble)||BI.isFunction(o.bubble))return BI.isNull(a.combo)&&BI.createWidget({type:"bi.absolute",element:a,items:[{el:{type:"bi.bubble_combo",trigger:"",destroyWhenHide:!0,ref:function(){a.combo=this},el:{type:"bi.layout",height:"100%"},popup:{type:"bi.text_bubble_bar_popup_view",text:r(),ref:function(){t=this},listeners:[{eventName:BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON,action:function(e){a.combo.hideView(),e&&n.apply(a,arguments)}}]},listeners:[{eventName:BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW,action:function(){t.populate(r())}}]},left:0,right:0,bottom:0,top:0}]}),void(a.combo.isViewVisible()?a.combo.hideView():a.combo.showView());n.apply(a,arguments)}}function r(){var e=a.options.bubble;return BI.isFunction(e)?e():e}s&&(s=s.element,e=(o.trigger||"").split(","),BI.each(e,function(e,t){switch(t){case"mouseup":var n=!1;s.mousedown(function(){n=!0}),s.mouseup(function(e){!0===n&&u(e),n=!1,c(e)});break;case"mousedown":var n=!1,r=!1;s.mousedown(function(e){BI.Widget._renderEngine.createElement(document).bind("mouseup."+a.getName(),function(e){!BI.DOM.isExist(a)||s.__isMouseInBounds__(e)||!0!==n||r||a._trigger(),n=!1,BI.Widget._renderEngine.createElement(document).unbind("mouseup."+a.getName())}),!0!==n&&(a.isSelected()?r=!0:u(e),n=!0,c(e))}),s.mouseup(function(e){BI.DOM.isExist(a)&&!0===n&&!0===r&&u(e),r=n=!1,BI.Widget._renderEngine.createElement(document).unbind("mouseup."+a.getName())});break;case"dblclick":s.dblclick(u);break;case"lclick":var i,n=!1;s.mousedown(function(e){BI.Widget._renderEngine.createElement(document).bind("mouseup."+a.getName(),function(e){i&&clearInterval(i),i=null,n=!1,BI.Widget._renderEngine.createElement(document).unbind("mouseup."+a.getName())}),!0!==n&&(!a.isEnabled()||a.isOnce()&&a.isSelected()||(i=setInterval(function(){a.isEnabled()&&a.doClick()},180),n=!0,c(e)))});break;default:(o.stopEvent||o.stopPropagation)&&s.mousedown(function(e){c(e)}),s.click(u)}}),n=BI.debounce(this._doClick,BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1}))},_trigger:function(e){var t,n=this.options;this.isEnabled()&&(this.isDisableSelected()||(this.isForceSelected()?this.setSelected(!0):this.isForceNotSelected()?this.setSelected(!1):this.setSelected(!this.isSelected())),this.isValid()&&(t=this.getValue(),n.handler.call(this,t,this,e),this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.CLICK,t,this,e),this.fireEvent(BI.BasicButton.EVENT_CHANGE,t,this),n.action&&BI.Actions.runAction(n.action,"click",n,this),BI.Actions.runGlobalAction("click",n,this)))},_doClick:function(e){this.isValid()&&this.beforeClick(e),this._trigger(e),this.isValid()&&this.doClick(e)},beforeClick:function(){},doClick:function(){},handle:function(){return this},hover:function(){this._hover=!0,this.handle().element.addClass("hover"),this.options.shadow&&this.$mask&&this.$mask.setVisible(!0)},dishover:function(){this._hover=!1,this.handle().element.removeClass("hover"),this.options.shadow&&this.$mask&&this.$mask.setVisible(!1)},setSelected:function(e){var t=this.options;(t.selected=e)?this.handle().element.addClass("active"):this.handle().element.removeClass("active"),t.shadow&&!t.isShadowShowingOnSelected&&this.$mask&&this.$mask.setVisible(!1)},isSelected:function(){return this.options.selected},isOnce:function(){return this.options.once},isForceSelected:function(){return this.options.forceSelected},isForceNotSelected:function(){return this.options.forceNotSelected},isDisableSelected:function(){return this.options.disableSelected},setText:function(e){this.options.text=e},getText:function(){return this.options.text},_setEnable:function(e){BI.BasicButton.superclass._setEnable.apply(this,arguments),!0===e?this.element.removeClass("base-disabled disabled"):!1===e&&this.element.addClass("base-disabled disabled"),e||this.options.shadow&&this.$mask&&this.$mask.setVisible(!1)},empty:function(){BI.Widget._renderEngine.createElement(document).unbind("mouseup."+this.getName()),BI.BasicButton.superclass.empty.apply(this,arguments)},destroy:function(){BI.BasicButton.superclass.destroy.apply(this,arguments)}}),BI.BasicButton.EVENT_CHANGE="BasicButton.EVENT_CHANGE"},function(e,t){BI.NodeButton=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.NodeButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{_baseCls:(e._baseCls||"")+" bi-node",open:!1})},_init:function(){BI.NodeButton.superclass._init.apply(this,arguments);var e=this;BI.nextTick(function(){e.setOpened(e.isOpened())})},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments),this.setOpened(!this.isOpened())},isOnce:function(){return!1},isOpened:function(){return!!this.options.open},setOpened:function(e){this.options.open=!!e},triggerCollapse:function(){this.isOpened()&&(this.setOpened(!1),this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,this.getValue(),this))},triggerExpand:function(){this.isOpened()||(this.setOpened(!0),this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,this.getValue(),this))}})},function(e,t){BI.Tip=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.Tip.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{_baseCls:(e._baseCls||"")+" bi-tip",zIndex:BI.zIndex_tip})},_init:function(){BI.Tip.superclass._init.apply(this,arguments),this.element.css({zIndex:this.options.zIndex})}})},function(e,t){BI.ButtonGroup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.ButtonGroup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-button-group",behaviors:{},items:[],value:"",chooseType:BI.Selection.Single,layouts:[{type:"bi.center",hgap:0,vgap:0}]})},_init:function(){BI.ButtonGroup.superclass._init.apply(this,arguments);var e=this.options,n={};BI.each(e.behaviors,function(e,t){n[e]=BI.BehaviorFactory.createBehavior(e,{rule:t})}),this.behaviors=n,this.populate(e.items),(BI.isKey(e.value)||BI.isNotEmptyArray(e.value))&&this.setValue(e.value)},_createBtns:function(e){this.options;return BI.createWidgets(BI.createItems(e,{type:"bi.text_button"}))},_btnsCreator:function(e){var i=this,n=Array.prototype.slice.call(arguments),a=this.options,t=this._createBtns(e);return n[0]=t,BI.each(this.behaviors,function(e,t){t.doBehavior.apply(t,n)}),BI.each(t,function(e,r){r.on(BI.Controller.EVENT_CHANGE,function(e,t,n){if(e===BI.Events.CLICK){switch(a.chooseType){case BI.ButtonGroup.CHOOSE_TYPE_SINGLE:i.setValue(r.getValue());break;case BI.ButtonGroup.CHOOSE_TYPE_NONE:i.setValue([])}i.fireEvent(BI.Controller.EVENT_CHANGE,arguments),i.fireEvent(BI.ButtonGroup.EVENT_CHANGE,t,n)}else i.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),r.on(BI.Events.DESTROY,function(){BI.remove(i.buttons,r)})}),t},_packageBtns:function(e){for(var n=this.options,r=n.layouts.length-1;0<r;r--)e=BI.map(e,function(e,t){return BI.extend({},n.layouts[r],{items:[BI.extend({},n.layouts[r].el,{el:t})]})});return e},_packageSimpleItems:function(n){var e=this.options;return BI.map(e.items,function(e,t){return BI.stripEL(t)===t?n[e]:BI.extend({},t,{el:n[e]})})},_packageItems:function(e,t){return BI.createItems(BI.makeArrayByArray(e,{}),BI.clone(t))},_packageLayout:function(e){for(var t=this.options,n=BI.deepClone(t.layouts[0]),r=BI.formatEL(n).el;r&&r.items&&!BI.isEmpty(r.items);)r=BI.formatEL(r.items[0]).el;return r.items=e,n},_isSimpleLayout:function(){var e=this.options;return 1===e.layouts.length&&!BI.isArray(e.items[0])},doBehavior:function(){var n=Array.prototype.slice.call(arguments);n.unshift(this.buttons),BI.each(this.behaviors,function(e,t){t.doBehavior.apply(t,n)})},prependItems:function(e){this.options;var t=this._btnsCreator.apply(this,arguments);this.buttons=BI.concat(t,this.buttons),this._isSimpleLayout()&&this.layouts&&this.layouts.prependItems?this.layouts.prependItems(t):(e=this._packageItems(e,this._packageBtns(t)),this.layouts.prependItems(this._packageLayout(e).items))},addItems:function(e){this.options;var t=this._btnsCreator.apply(this,arguments);this.buttons=BI.concat(this.buttons,t),this._isSimpleLayout()&&this.layouts&&this.layouts.addItems?this.layouts.addItems(t):(e=this._packageItems(e,this._packageBtns(t)),this.layouts.addItems(this._packageLayout(e).items))},removeItemAt:function(e){BI.removeAt(this.buttons,e),this.layouts.removeItemAt(e)},removeItems:function(n){n=BI.isArray(n)?n:[n];var r=[];BI.each(this.buttons,function(e,t){BI.deepContains(n,t.getValue())&&r.push(e)}),BI.removeAt(this.buttons,r),this.layouts.removeItemAt(r)},populate:function(e){e=e||[],this.empty(),this.options.items=e,this.buttons=this._btnsCreator.apply(this,arguments),e=this._isSimpleLayout()?this._packageSimpleItems(this.buttons):this._packageItems(e,this._packageBtns(this.buttons)),this.layouts=BI.createWidget(BI.extend({element:this},this._packageLayout(e)))},setNotSelectedValue:function(n){n=BI.isArray(n)?n:[n],BI.each(this.buttons,function(e,t){BI.deepContains(n,t.getValue())?t.setSelected&&t.setSelected(!1):t.setSelected&&t.setSelected(!0)})},setEnabledValue:function(n){n=BI.isArray(n)?n:[n],BI.each(this.buttons,function(e,t){BI.deepContains(n,t.getValue())?t.setEnable(!0):t.setEnable(!1)})},setValue:function(n){n=BI.isArray(n)?n:[n],BI.each(this.buttons,function(e,t){BI.deepContains(n,t.getValue())?t.setSelected&&t.setSelected(!0):t.setSelected&&t.setSelected(!1)})},getNotSelectedValue:function(){var n=[];return BI.each(this.buttons,function(e,t){!t.isEnabled()||t.isSelected&&t.isSelected()||n.push(t.getValue())}),n},getValue:function(){var n=[];return BI.each(this.buttons,function(e,t){t.isEnabled()&&t.isSelected&&t.isSelected()&&n.push(t.getValue())}),n},getAllButtons:function(){return this.buttons},getAllLeaves:function(){return this.buttons},getSelectedButtons:function(){var n=[];return BI.each(this.buttons,function(e,t){t.isSelected&&t.isSelected()&&n.push(t)}),n},getNotSelectedButtons:function(){var n=[];return BI.each(this.buttons,function(e,t){t.isSelected&&!t.isSelected()&&n.push(t)}),n},getIndexByValue:function(n){var r=-1;return BI.any(this.buttons,function(e,t){if(t.isEnabled()&&t.getValue()===n)return r=e,!0}),r},getNodeById:function(n){var r;return BI.any(this.buttons,function(e,t){if(t.isEnabled()&&t.options.id===n)return r=t,!0}),r},getNodeByValue:function(n){var r;return BI.any(this.buttons,function(e,t){if(t.isEnabled()&&t.getValue()===n)return r=t,!0}),r},empty:function(){BI.ButtonGroup.superclass.empty.apply(this,arguments),this.options.items=[]},destroy:function(){BI.ButtonGroup.superclass.destroy.apply(this,arguments),this.options.items=[]}}),BI.extend(BI.ButtonGroup,{CHOOSE_TYPE_SINGLE:BI.Selection.Single,CHOOSE_TYPE_MULTI:BI.Selection.Multi,CHOOSE_TYPE_ALL:BI.Selection.All,CHOOSE_TYPE_NONE:BI.Selection.None,CHOOSE_TYPE_DEFAULT:BI.Selection.Default}),BI.ButtonGroup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.button_group",BI.ButtonGroup)},function(e,t){BI.ButtonTree=BI.inherit(BI.ButtonGroup,{_defaultConfig:function(){return BI.extend(BI.ButtonTree.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-button-tree"})},_init:function(){BI.ButtonTree.superclass._init.apply(this,arguments)},setNotSelectedValue:function(n){n=BI.isArray(n)?n:[n],BI.each(this.buttons,function(e,t){BI.isFunction(t.setSelected)?BI.deepContains(n,t.getValue())?t.setSelected(!1):t.setSelected(!0):t.setNotSelectedValue(n)})},setEnabledValue:function(n){n=BI.isArray(n)?n:[n],BI.each(this.buttons,function(e,t){BI.isFunction(t.setEnabledValue)?t.setEnabledValue(n):BI.deepContains(n,t.getValue())?t.setEnable(!0):t.setEnable(!1)})},setValue:function(n){n=BI.isArray(n)?n:[n],BI.each(this.buttons,function(e,t){BI.isFunction(t.setSelected)?BI.deepContains(n,t.getValue())?t.setSelected(!0):t.setSelected(!1):t.setValue(n)})},getNotSelectedValue:function(){var n=[];return BI.each(this.buttons,function(e,t){!t.isEnabled()||BI.isFunction(t.setSelected)?t.isEnabled()&&t.isSelected&&!t.isSelected()&&n.push(t.getValue()):n=BI.concat(n,t.getNotSelectedValue())}),n},getValue:function(){var n=[];return BI.each(this.buttons,function(e,t){!t.isEnabled()||BI.isFunction(t.setSelected)?t.isEnabled()&&t.isSelected&&t.isSelected()&&n.push(t.getValue()):n=BI.concat(n,t.getValue())}),n},getSelectedButtons:function(){var n=[];return BI.each(this.buttons,function(e,t){!t.isEnabled()||BI.isFunction(t.setSelected)?t.isSelected&&t.isSelected()&&n.push(t):n=n.concat(t.getSelectedButtons())}),n},getNotSelectedButtons:function(){var n=[];return BI.each(this.buttons,function(e,t){!t.isEnabled()||BI.isFunction(t.setSelected)?t.isSelected&&!t.isSelected()&&n.push(t):n=n.concat(t.getNotSelectedButtons())}),n},getAllLeaves:function(){var n=[];return BI.each(this.buttons,function(e,t){!t.isEnabled()||BI.isFunction(t.setSelected)?t.isEnabled()&&n.push(t):n=n.concat(t.getAllLeaves())}),n},getIndexByValue:function(r){var i=-1;return BI.any(this.buttons,function(e,t){var n=t.getValue();if(t.isEnabled()&&(n===r||BI.contains(n,r)))return i=e,!0}),i},getNodeById:function(n){var r;return BI.any(this.buttons,function(e,t){if(t.isEnabled()){if(t.attr("id")===n)return r=t,!0;if(BI.isFunction(t.getNodeById)&&(r=t.getNodeById(n)))return!0}}),r},getNodeByValue:function(n){var r;return BI.any(this.buttons,function(e,t){if(t.isEnabled())if(BI.isFunction(t.getNodeByValue)){if(r=t.getNodeByValue(n))return!0}else if(t.attr("value")===n)return r=t,!0}),r}}),BI.ButtonTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.button_tree",BI.ButtonTree)},function(e,t){BI.prepares.push(function(){BI.Resizers=new BI.ResizeController,BI.Layers=new BI.LayerController,BI.Maskers=new BI.MaskersController,BI.Bubbles=new BI.BubblesController,BI.Tooltips=new BI.TooltipsController,BI.Popovers=new BI.PopoverController,BI.Broadcasts=new BI.BroadcastController,BI.StyleLoaders=new BI.StyleLoaderManager})},function(e,t){BI.CollectionView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.CollectionView.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-collection",overflowX:!0,overflowY:!0,cellSizeAndPositionGetter:BI.emptyFn,horizontalOverscanSize:0,verticalOverscanSize:0,scrollLeft:0,scrollTop:0,items:[]})},_init:function(){BI.CollectionView.superclass._init.apply(this,arguments);var e=this,t=this.options;this.renderedCells=[],this.renderedKeys=[],this.renderRange={},this._scrollLock=!1,this._debounceRelease=BI.debounce(function(){e._scrollLock=!1},1e3/60),this.container=BI._lazyCreateWidget({type:"bi.absolute"}),this.element.scroll(function(){!0!==e._scrollLock&&(t.scrollLeft=e.element.scrollLeft(),t.scrollTop=e.element.scrollTop(),e._calculateChildrenToRender(),e.fireEvent(BI.CollectionView.EVENT_SCROLL,{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}))}),BI._lazyCreateWidget({type:"bi.vertical",element:this,scrollable:!0===t.overflowX&&!0===t.overflowY,scrolly:!1===t.overflowX&&!0===t.overflowY,scrollx:!0===t.overflowX&&!1===t.overflowY,items:[this.container]}),0<t.items.length&&(this._calculateSizeAndPositionData(),this._populate())},mounted:function(){var e=this.options;0===e.scrollLeft&&0===e.scrollTop||(this.element.scrollTop(e.scrollTop),this.element.scrollLeft(e.scrollLeft))},_calculateSizeAndPositionData:function(){for(var e=this.options,t=[],n=new BI.SectionManager,r=0,i=0,a=0,o=e.items.length;a<o;a++){var s=e.cellSizeAndPositionGetter(a);if(null==s.height||isNaN(s.height)||null==s.width||isNaN(s.width)||null==s.x||isNaN(s.x)||null==s.y||isNaN(s.y))throw Error();r=Math.max(r,s.y+s.height),i=Math.max(i,s.x+s.width),t[s.index=a]=s,n.registerCell(s,a)}this._cellMetadata=t,this._sectionManager=n,this._height=r,this._width=i},_cellRenderers:function(e,t,n,r){return this._lastRenderedCellIndices=this._sectionManager.getCellIndices(e,t,n,r),this._cellGroupRenderer()},_cellGroupRenderer:function(){var r=this,i=(this.options,[]);return BI.each(this._lastRenderedCellIndices,function(e,t){var n=r._sectionManager.getCellMetadata(t);i.push(n)}),i},_calculateChildrenToRender:function(){var n=this,e=this.options,t=BI.clamp(e.scrollLeft,0,this._getMaxScrollLeft()),r=BI.clamp(e.scrollTop,0,this._getMaxScrollTop()),i=Math.max(0,t-e.horizontalOverscanSize),a=Math.max(0,r-e.verticalOverscanSize),o=Math.min(this._width,t+e.width+e.horizontalOverscanSize),s=Math.min(this._height,r+e.height+e.verticalOverscanSize);if(0<o&&0<s){if(a>=this.renderRange.minY&&s<=this.renderRange.maxY&&i>=this.renderRange.minX&&o<=this.renderRange.maxX)return;for(var c=this._cellRenderers(s-a,o-i,i,a),u=[],l={},d={},p={},f={},_=0,h=c.length;_<h;_++){p[(B=c[_]).x]=B.x,p[B.x+B.width]=B.x+B.width,f[B.y]=B.y,f[B.y+B.height]=B.y+B.height}p=BI.toArray(p),f=BI.toArray(f);for(var g=BI.invert(p),m=BI.invert(f),y={},b={},v={},E={},I=function(e,t){null==e[t]&&(e[t]=Number.MAX_VALUE)},T=function(e,t){null==e[t]&&(e[t]=0)},_=0,h=c.length;_<h;_++){var C,B=c[_],x=this.renderedKeys[B.index]&&this.renderedKeys[B.index][1];0<=x?(B.width!==this.renderedCells[x]._width&&(this.renderedCells[x]._width=B.width,this.renderedCells[x].el.setWidth(B.width)),B.height!==this.renderedCells[x]._height&&(this.renderedCells[x]._height=B.height,this.renderedCells[x].el.setHeight(B.height)),this.renderedCells[x]._left!==B.x&&this.renderedCells[x].el.element.css("left",B.x+"px"),this.renderedCells[x]._top!==B.y&&this.renderedCells[x].el.element.css("top",B.y+"px"),u.push(C=this.renderedCells[x])):(C=BI._lazyCreateWidget(BI.extend({type:"bi.label",width:B.width,height:B.height},e.items[B.index],{cls:(e.items[B.index].cls||"")+" collection-cell"+(0===B.y?" first-row":"")+(0===B.x?" first-col":""),_left:B.x,_top:B.y})),u.push({el:C,left:B.x,top:B.y,_left:B.x,_top:B.y,_width:B.width,_height:B.height}));for(var S=0|m[B.y],N=0|m[B.y+B.height],D=S;D<=N;D++){var k=f[D];I(y,k),T(b,k),y[k]=Math.min(y[k],B.x),b[k]=Math.max(b[k],B.x+B.width)}for(var A=0|g[B.x],w=0|g[B.x+B.width],D=A;D<=w;D++){var V=p[D];I(v,V),T(E,V),v[V]=Math.min(v[V],B.y),E[V]=Math.max(E[V],B.y+B.height)}l[B.index]=[B.index,_],d[_]=C}var P={},L={},M=[];BI.each(l,function(e,t){n.renderedKeys[e]?P[e]=t:L[e]=t}),BI.each(this.renderedKeys,function(e,t){P[e]||L[e]||M.push(t[1])}),BI.each(M,function(e,t){n.renderedCells[t].el._destroy()});var F=[];BI.each(L,function(e,t){F.push(u[t[1]])}),this.container.addItems(F),this.container._children=d,this.container.attr("items",u),this.renderedCells=u,this.renderedKeys=l;var O=BI.min(y),R=BI.max(b),H=BI.max(v),j=BI.min(E);this.renderRange={minX:O,minY:H,maxX:R,maxY:j}}},_getMaxScrollLeft:function(){return Math.max(0,this._width-this.options.width+(this.options.overflowX?BI.DOM.getScrollWidth():0))},_getMaxScrollTop:function(){return Math.max(0,this._height-this.options.height+(this.options.overflowY?BI.DOM.getScrollWidth():0))},_populate:function(e){var t=this.options;if(this._reRange(),e&&e!==this.options.items&&(this.options.items=e,this._calculateSizeAndPositionData()),0<t.items.length){this.container.setWidth(this._width),this.container.setHeight(this._height),this._calculateChildrenToRender();try{this.element.scrollTop(t.scrollTop),this.element.scrollLeft(t.scrollLeft)}catch(n){}}},setScrollLeft:function(e){this.options.scrollLeft!==e&&(this._scrollLock=!0,this.options.scrollLeft=BI.clamp(e||0,0,this._getMaxScrollLeft()),this._debounceRelease(),this._calculateChildrenToRender(),this.element.scrollLeft(this.options.scrollLeft))},setScrollTop:function(e){this.options.scrollTop!==e&&(this._scrollLock=!0,this.options.scrollTop=BI.clamp(e||0,0,this._getMaxScrollTop()),this._debounceRelease(),this._calculateChildrenToRender(),this.element.scrollTop(this.options.scrollTop))},setOverflowX:function(e){var t=this;this.options.overflowX!==!!e&&(this.options.overflowX=!!e,BI.nextTick(function(){t.element.css({overflowX:e?"auto":"hidden"})}))},setOverflowY:function(e){var t=this;this.options.overflowY!==!!e&&(this.options.overflowY=!!e,BI.nextTick(function(){t.element.css({overflowY:e?"auto":"hidden"})}))},getScrollLeft:function(){return this.options.scrollLeft},getScrollTop:function(){return this.options.scrollTop},getMaxScrollLeft:function(){return this._getMaxScrollLeft()},getMaxScrollTop:function(){return this._getMaxScrollTop()},_reRange:function(){this.renderRange={}},_clearChildren:function(){this.container._children={},this.container.attr("items",[])},restore:function(){BI.each(this.renderedCells,function(e,t){t.el._destroy()}),this._clearChildren(),this.renderedCells=[],this.renderedKeys=[],this.renderRange={},this._scrollLock=!1},populate:function(e){e&&e!==this.options.items&&this.restore(),this._populate(e)}}),BI.CollectionView.EVENT_SCROLL="EVENT_SCROLL",BI.shortcut("bi.collection_view",BI.CollectionView)},function(e,t){var i;i={},BI.Combo=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.Combo.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-combo"+(BI.isIE()?" hack":""),attributes:{tabIndex:-1},trigger:"click",toggle:!0,direction:"bottom",logic:{dynamic:!0},container:null,isDefaultInit:!1,destroyWhenHide:!1,hideWhenAnotherComboOpen:!1,isNeedAdjustHeight:!0,isNeedAdjustWidth:!0,stopEvent:!1,stopPropagation:!1,adjustLength:0,adjustXOffset:0,adjustYOffset:0,hideChecker:BI.emptyFn,offsetStyle:"left",el:{},popup:{},comboClass:"bi-combo-popup",hoverClass:"bi-combo-hover",belowMouse:!1})},_init:function(){BI.Combo.superclass._init.apply(this,arguments);var r=this,t=this.options;this._initCombo(),this._initPullDownAction(),this.combo.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.isEnabled()&&r.isValid()&&(e===BI.Events.EXPAND&&r._popupView(),e===BI.Events.COLLAPSE&&r._hideView(),e===BI.Events.EXPAND&&(r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),r.fireEvent(BI.Combo.EVENT_EXPAND)),e===BI.Events.COLLAPSE&&(r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),r.isViewVisible()&&r.fireEvent(BI.Combo.EVENT_COLLAPSE)),e===BI.Events.CLICK&&r.fireEvent(BI.Combo.EVENT_TRIGGER_CHANGE,n))}),r.element.on("mouseenter."+r.getName(),function(e){r.isEnabled()&&r.isValid()&&r.combo.isEnabled()&&r.combo.isValid()&&r.element.addClass(t.hoverClass)}),r.element.on("mouseleave."+r.getName(),function(e){r.isEnabled()&&r.isValid()&&r.combo.isEnabled()&&r.combo.isValid()&&r.element.removeClass(t.hoverClass)}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("vertical",BI.extend(t.logic,{items:[{el:this.combo}]})))),t.isDefaultInit&&this._assertPopupView(),BI.Resizers.add(this.getName(),BI.bind(function(){this.isViewVisible()&&this._hideView()},this))},_toggle:function(e){this._assertPopupViewRender(),this.popupView.isVisible()?this._hideView(e):this.isEnabled()&&this._popupView(e)},_initPullDownAction:function(){var r=this,i=this.options,e=(this.options.trigger||"").split(","),a=function(e){i.stopEvent&&e.stopEvent(),i.stopPropagation&&e.stopPropagation()},o=!1;function s(e){r.isEnabled()&&r.isValid()&&r.combo.isEnabled()&&r.combo.isValid()&&!0===i.toggle&&(r._hideView(e),r.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,"",r.combo),r.fireEvent(BI.Combo.EVENT_COLLAPSE)),r.popupView&&r.popupView.element.off("mouseenter."+r.getName()).off("mouseleave."+r.getName()),o=!1}BI.each(e,function(e,t){switch(t){case"hover":r.element.on("mouseenter."+r.getName(),function(e){r.isEnabled()&&r.isValid()&&r.combo.isEnabled()&&r.combo.isValid()&&(r._popupView(e),r.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",r.combo),r.fireEvent(BI.Combo.EVENT_EXPAND))}),r.element.on("mouseleave."+r.getName(),function(e){r.popupView&&(r.popupView.element.on("mouseenter."+r.getName(),function(e){o=!0,r.popupView.element.on("mouseleave."+r.getName(),function(e){s(e)}),r.popupView.element.off("mouseenter."+r.getName())}),BI.defer(function(){o||s(e)},50))});break;case"click":var n=BI.debounce(function(e){r.combo.element.__isMouseInBounds__(e)&&r.isEnabled()&&r.isValid()&&r.combo.isEnabled()&&r.combo.isValid()&&(i.toggle?r._toggle(e):r._popupView(e),r.isViewVisible()?(r.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",r.combo),r.fireEvent(BI.Combo.EVENT_EXPAND)):(r.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,"",r.combo),r.fireEvent(BI.Combo.EVENT_COLLAPSE)))},BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1});r.element.off(t+"."+r.getName()).on(t+"."+r.getName(),function(e){n(e),a(e)});break;case"click-hover":case"click-blur":if(BI.isIE()||"click-hover"===t){n=BI.debounce(function(e){r.combo.element.__isMouseInBounds__(e)&&r.isEnabled()&&r.isValid()&&r.combo.isEnabled()&&r.combo.isValid()&&(r._popupView(e),r.isViewVisible()&&(r.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",r.combo),r.fireEvent(BI.Combo.EVENT_EXPAND)))},BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1});r.element.off("click."+r.getName()).on("click."+r.getName(),function(e){n(e),a(e)}),r.element.on("mouseleave."+r.getName(),function(e){r.popupView&&(r.popupView.element.on("mouseenter."+r.getName(),function(e){o=!0,r.popupView.element.on("mouseleave."+r.getName(),function(e){s(e)}),r.popupView.element.off("mouseenter."+r.getName())}),BI.defer(function(){o||s(e)},50))});break}n=BI.debounce(function(e){r.combo.element.__isMouseInBounds__(e)&&r.isEnabled()&&r.isValid()&&r.combo.isEnabled()&&r.combo.isValid()&&(i.toggle?r._toggle(e):r._popupView(e),r.isViewVisible()?(r.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",r.combo),r.fireEvent(BI.Combo.EVENT_EXPAND)):(r.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,"",r.combo),r.fireEvent(BI.Combo.EVENT_COLLAPSE)))},BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1});r.element.off("click."+r.getName()).on("click."+r.getName(),function(e){n(e);try{r.element[0].focus()}catch(e){}a(e)}),r.element.off("blur."+r.getName()).on("blur."+r.getName(),function(e){r.isViewVisible()&&r._hideView(e),a(e)})}})},_initCombo:function(){this.combo=BI.createWidget(this.options.el,{value:this.options.value})},_assertPopupView:function(){var r=this,e=this.options;null==this.popupView&&(this.popupView=BI.createWidget(this.options.popup,{type:"bi.popup_view",value:e.value},this),this.popupView.on(BI.Controller.EVENT_CHANGE,function(e,t,n){e===BI.Events.CLICK&&(r.combo.setValue(r.getValue()),r.fireEvent(BI.Combo.EVENT_CHANGE,t,n)),r.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.popupView.setVisible(!1),BI.nextTick(function(){r.fireEvent(BI.Combo.EVENT_AFTER_INIT)}))},_assertPopupViewRender:function(){this._assertPopupView(),this._rendered||(BI.createWidget({type:"bi.vertical",scrolly:!1,element:this.options.container||this,items:[{el:this.popupView}]}),this._rendered=!0)},_hideIf:function(e,t){if(e&&(!0!==t&&0<this.element.find(e.target).length||this.popupView&&0<this.popupView.element.find(e.target).length||"CodeMirror-cursor"===e.target.className||0<BI.Widget._renderEngine.createElement(e.target).closest(".CodeMirror-hints").length)){var n=this.options.direction.split(",");(BI.contains(n,"innerLeft")||BI.contains(n,"innerRight"))&&(this.adjustWidth(),this.adjustHeight())}else{if(!1!==this.options.hideChecker.apply(this,[e]))return this._hideView(),!0}},_hideView:function(){this.fireEvent(BI.Combo.EVENT_BEFORE_HIDEVIEW),!0===this.options.destroyWhenHide?(this.popupView&&this.popupView.destroy(),this.popupView=null,this._rendered=!1):this.popupView&&this.popupView.invisible(),this.element.removeClass(this.options.comboClass),delete i[this.getName()],BI.Widget._renderEngine.createElement(document).unbind("mousedown."+this.getName()).unbind("mousewheel."+this.getName()),this.fireEvent(BI.Combo.EVENT_AFTER_HIDEVIEW)},_popupView:function(n){var r=this;this._assertPopupViewRender(),this.fireEvent(BI.Combo.EVENT_BEFORE_POPUPVIEW),this.popupView.visible(),BI.each(i,function(e,t){e!==r.getName()&&t&&!0===t._hideIf(n,!0)&&delete i[e]}),this.options.hideWhenAnotherComboOpen&&(i[this.getName()]=this),this.adjustWidth(n),this.adjustHeight(n),this.element.addClass(this.options.comboClass),BI.Widget._renderEngine.createElement(document).unbind("mousedown."+this.getName()).unbind("mousewheel."+this.getName()),BI.Widget._renderEngine.createElement(document).bind("mousedown."+this.getName(),BI.bind(this._hideIf,this)).bind("mousewheel."+this.getName(),BI.bind(this._hideIf,this)),this.fireEvent(BI.Combo.EVENT_AFTER_POPUPVIEW)},adjustWidth:function(e){var t,n,r=this.options;this.popupView&&!0===r.isNeedAdjustWidth&&(this.resetListWidth(""),t=this.popupView.element.outerWidth(),(n=this.element.outerWidth()||r.width)+80<t?n+=80:n<t&&(n=t),this.resetListWidth(n<100?100:n))},adjustHeight:function(e){var t=this.options,n={};if(this.popupView){var r=this.popupView.isVisible();this.popupView.visible();var i=t.belowMouse&&BI.isNotNull(e)?{element:{offset:function(){return{left:e.pageX,top:e.pageY}},bounds:function(){return{x:e.offsetX,y:e.offsetY,width:0,height:24}},outerWidth:function(){return 0},outerHeight:function(){return 24}}}:this.combo;switch(t.direction){case"bottom":case"bottom,right":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset,t.adjustYOffset||t.adjustLength,t.isNeedAdjustHeight,["bottom","top","right","left"],t.offsetStyle);break;case"top":case"top,right":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset,t.adjustYOffset||t.adjustLength,t.isNeedAdjustHeight,["top","bottom","right","left"],t.offsetStyle);break;case"left":case"left,bottom":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["left","right","bottom","top"],t.offsetStyle);break;case"right":case"right,bottom":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["right","left","bottom","top"],t.offsetStyle);break;case"top,left":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset,t.adjustYOffset||t.adjustLength,t.isNeedAdjustHeight,["top","bottom","left","right"],t.offsetStyle);break;case"bottom,left":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset,t.adjustYOffset||t.adjustLength,t.isNeedAdjustHeight,["bottom","top","left","right"],t.offsetStyle);break;case"left,top":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["left","right","top","bottom"],t.offsetStyle);break;case"right,top":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["right","left","top","bottom"],t.offsetStyle);break;case"right,innerRight":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["right","left","innerRight","innerLeft","bottom","top"],t.offsetStyle);break;case"right,innerLeft":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["right","left","innerLeft","innerRight","bottom","top"],t.offsetStyle);break;case"innerRight":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["innerRight","innerLeft","right","left","bottom","top"],t.offsetStyle);break;case"innerLeft":n=BI.DOM.getComboPosition(i,this.popupView,t.adjustXOffset||t.adjustLength,t.adjustYOffset,t.isNeedAdjustHeight,["innerLeft","innerRight","left","right","bottom","top"],t.offsetStyle);break;case"top,custom":case"custom,top":n=BI.DOM.getTopAdaptPosition(i,this.popupView,t.adjustYOffset||t.adjustLength,t.isNeedAdjustHeight);break;case"custom,bottom":case"bottom,custom":n=BI.DOM.getBottomAdaptPosition(i,this.popupView,t.adjustYOffset||t.adjustLength,t.isNeedAdjustHeight);break;case"left,custom":case"custom,left":delete(n=BI.DOM.getLeftAdaptPosition(i,this.popupView,t.adjustXOffset||t.adjustLength)).top,delete n.adaptHeight;break;case"custom,right":case"right,custom":delete(n=BI.DOM.getRightAdaptPosition(i,this.popupView,t.adjustXOffset||t.adjustLength)).top,delete n.adaptHeight}"adaptHeight"in n&&this.resetListHeight(n.adaptHeight),"left"in n&&this.popupView.element.css({left:n.left}),"top"in n&&this.popupView.element.css({top:n.top}),this.position=n,this.popupView.setVisible(r)}},resetListHeight:function(e){this._assertPopupView(),this.popupView.resetHeight&&this.popupView.resetHeight(e)},resetListWidth:function(e){this._assertPopupView(),this.popupView.resetWidth&&this.popupView.resetWidth(e)},populate:function(e){this._assertPopupView(),this.popupView.populate.apply(this.popupView,arguments),this.combo.populate.apply(this.combo,arguments)},_setEnable:function(e){BI.Combo.superclass._setEnable.apply(this,arguments),!0===e?this.element.removeClass("base-disabled disabled"):!1===e&&this.element.addClass("base-disabled disabled"),e||this.element.removeClass(this.options.hoverClass),!e&&this.isViewVisible()&&this._hideView()},setValue:function(e){this.combo.setValue(e),BI.isNull(this.popupView)?this.options.popup.value=e:this.popupView.setValue(e)},getValue:function(){return BI.isNull(this.popupView)?this.options.popup.value:this.popupView.getValue()},isViewVisible:function(){return this.isEnabled()&&this.combo.isEnabled()&&!!this.popupView&&this.popupView.isVisible()},showView:function(e){this.isEnabled()&&this.combo.isEnabled()&&!this.isViewVisible()&&this._popupView(e)},hideView:function(){this._hideView()},getView:function(){return this.popupView},getPopupPosition:function(){return this.position},toggle:function(){this._toggle()},destroyed:function(){BI.Widget._renderEngine.createElement(document).unbind("click."+this.getName()).unbind("mousedown."+this.getName()).unbind("mousewheel."+this.getName()).unbind("mouseenter."+this.getName()).unbind("mousemove."+this.getName()).unbind("mouseleave."+this.getName()).unbind("blur."+this.getName()),BI.Resizers.remove(this.getName()),this.popupView&&this.popupView._destroy(),delete i[this.getName()]}}),BI.Combo.EVENT_TRIGGER_CHANGE="EVENT_TRIGGER_CHANGE",BI.Combo.EVENT_CHANGE="EVENT_CHANGE",BI.Combo.EVENT_EXPAND="EVENT_EXPAND",BI.Combo.EVENT_COLLAPSE="EVENT_COLLAPSE",BI.Combo.EVENT_AFTER_INIT="EVENT_AFTER_INIT",BI.Combo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.Combo.EVENT_AFTER_POPUPVIEW="EVENT_AFTER_POPUPVIEW",BI.Combo.EVENT_BEFORE_HIDEVIEW="EVENT_BEFORE_HIDEVIEW",BI.Combo.EVENT_AFTER_HIDEVIEW="EVENT_AFTER_HIDEVIEW",BI.shortcut("bi.combo",BI.Combo)},function(e,t){BI.Expander=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Expander.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-expander",trigger:"click",toggle:!0,isDefaultInit:!1,el:{},popup:{},expanderClass:"bi-expander-popup",hoverClass:"bi-expander-hover"})},_init:function(){BI.Expander.superclass._init.apply(this,arguments);var r=this,e=this.options;this._expanded=!!e.el.open,this._initExpander(),this._initPullDownAction(),this.expander.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.isEnabled()&&r.isValid()&&(e===BI.Events.EXPAND&&r._popupView(),e===BI.Events.COLLAPSE&&r._hideView(),e===BI.Events.EXPAND&&(r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),r.fireEvent(BI.Expander.EVENT_EXPAND)),e===BI.Events.COLLAPSE&&(r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),r.isViewVisible()&&r.fireEvent(BI.Expander.EVENT_COLLAPSE)),e===BI.Events.CLICK&&r.fireEvent(BI.Expander.EVENT_TRIGGER_CHANGE,t,n))}),this.element.hover(function(){r.isEnabled()&&r.isValid()&&r.expander.isEnabled()&&r.expander.isValid()&&r.element.addClass(e.hoverClass)},function(){r.isEnabled()&&r.isValid()&&r.expander.isEnabled()&&r.expander.isValid()&&r.element.removeClass(e.hoverClass)}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[{el:this.expander}]}),e.isDefaultInit&&this._assertPopupView(),!0===this.expander.isOpened()&&this._popupView()},_toggle:function(){this._assertPopupViewRender(),this.popupView.isVisible()?this._hideView():this.isEnabled()&&this._popupView()},_initPullDownAction:function(){var n=this,r=this.options,e=this.options.trigger.split(",");BI.each(e,function(e,t){switch(t){case"hover":n.element[t](function(e){n.isEnabled()&&n.isValid()&&n.expander.isEnabled()&&n.expander.isValid()&&(n._popupView(),n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",n.expander),n.fireEvent(BI.Expander.EVENT_EXPAND))},function(){n.isEnabled()&&n.isValid()&&n.expander.isEnabled()&&n.expander.isValid()&&r.toggle&&(n._hideView(),n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,"",n.expander),n.fireEvent(BI.Expander.EVENT_COLLAPSE))});break;case"click":t&&n.element.off(t+"."+n.getName()).on(t+"."+n.getName(),BI.debounce(function(e){n.expander.element.__isMouseInBounds__(e)&&n.isEnabled()&&n.isValid()&&n.expander.isEnabled()&&n.expander.isValid()&&(r.toggle?n._toggle():n._popupView(),n.isExpanded()?(n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",n.expander),n.fireEvent(BI.Expander.EVENT_EXPAND)):(n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,"",n.expander),n.fireEvent(BI.Expander.EVENT_COLLAPSE)))},BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1}))}})},_initExpander:function(){this.expander=BI.createWidget(this.options.el)},_assertPopupView:function(){var r=this,e=this.options;null==this.popupView&&(this.popupView=BI.createWidget(this.options.popup,{type:"bi.button_group",cls:"expander-popup",layouts:[{type:"bi.vertical",hgap:0,vgap:0}],value:e.value},this),this.popupView.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.Expander.EVENT_CHANGE,t,n)}),this.popupView.setVisible(this.isExpanded()),BI.nextTick(function(){r.fireEvent(BI.Expander.EVENT_AFTER_INIT)}))},_assertPopupViewRender:function(){this._assertPopupView(),this._rendered||(BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[{el:this.popupView}]}),this._rendered=!0)},_hideView:function(){this.fireEvent(BI.Expander.EVENT_BEFORE_HIDEVIEW),this._expanded=!1,this.expander.setOpened(!1),this.popupView&&this.popupView.invisible(),this.element.removeClass(this.options.expanderClass),this.fireEvent(BI.Expander.EVENT_AFTER_HIDEVIEW)},_popupView:function(){this._assertPopupViewRender(),this.fireEvent(BI.Expander.EVENT_BEFORE_POPUPVIEW),this._expanded=!0,this.expander.setOpened(!0),this.popupView.visible(),this.element.addClass(this.options.expanderClass),this.fireEvent(BI.Expander.EVENT_AFTER_POPUPVIEW)},populate:function(e){this.popupView&&this.popupView.populate.apply(this.popupView,arguments),this.expander.populate.apply(this.expander,arguments)},_setEnable:function(e){BI.Expander.superclass._setEnable.apply(this,arguments),e||this.element.removeClass(this.options.hoverClass),!e&&this.isViewVisible()&&this._hideView()},setValue:function(e){this.expander.setValue(e),BI.isNull(this.popupView)?this.options.popup.value=e:this.popupView.setValue(e)},getValue:function(){return BI.isNull(this.popupView)?this.options.popup.value:this.popupView.getValue()},isViewVisible:function(){return this.isEnabled()&&this.expander.isEnabled()&&!!this.popupView&&this.popupView.isVisible()},isExpanded:function(){return this._expanded},showView:function(){this.isEnabled()&&this.expander.isEnabled()&&this._popupView()},hideView:function(){this._hideView()},getView:function(){return this.popupView},getAllLeaves:function(){return this.popupView&&this.popupView.getAllLeaves()},getNodeById:function(e){return this.expander.options.id===e?this.expander:this.popupView&&this.popupView.getNodeById(e)},getNodeByValue:function(e){return this.expander.getValue()===e?this.expander:this.popupView&&this.popupView.getNodeByValue(e)},destroy:function(){BI.Expander.superclass.destroy.apply(this,arguments)}}),BI.Expander.EVENT_EXPAND="EVENT_EXPAND",BI.Expander.EVENT_COLLAPSE="EVENT_COLLAPSE",BI.Expander.EVENT_TRIGGER_CHANGE="EVENT_TRIGGER_CHANGE",BI.Expander.EVENT_CHANGE="EVENT_CHANGE",BI.Expander.EVENT_AFTER_INIT="EVENT_AFTER_INIT",BI.Expander.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.Expander.EVENT_AFTER_POPUPVIEW="EVENT_AFTER_POPUPVIEW",BI.Expander.EVENT_BEFORE_HIDEVIEW="EVENT_BEFORE_HIDEVIEW",BI.Expander.EVENT_AFTER_HIDEVIEW="EVENT_AFTER_HIDEVIEW",BI.shortcut("bi.expander",BI.Expander)},function(e,t){BI.ComboGroup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.ComboGroup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-combo-group bi-list-item",trigger:"click,hover",direction:"right",adjustLength:0,isDefaultInit:!1,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:{type:"bi.text_button",text:"",value:""},children:[],popup:{el:{type:"bi.button_tree",chooseType:0,layouts:[{type:"bi.vertical"}]}}})},_init:function(){BI.ComboGroup.superclass._init.apply(this,arguments),this._populate(this.options.el)},_populate:function(e){var r=this,i=this.options,t=i.children;if(BI.isEmpty(t))throw new Error("ComboGroup构造错误");BI.each(t,function(e,t){var n=BI.formatEL(t).el.children;t=BI.formatEL(t).el,BI.isEmpty(n)||(t.el=BI.clone(t),t.children=n,t.type="bi.combo_group",t.action=i.action,t.height=i.height,t.direction=i.direction,t.isDefaultInit=i.isDefaultInit,t.isNeedAdjustHeight=i.isNeedAdjustHeight,t.isNeedAdjustWidth=i.isNeedAdjustWidth,t.adjustLength=i.adjustLength,t.popup=i.popup)}),this.combo=BI.createWidget({type:"bi.combo",element:this,container:i.container,height:i.height,trigger:i.trigger,direction:i.direction,isDefaultInit:i.isDefaultInit,isNeedAdjustWidth:i.isNeedAdjustWidth,isNeedAdjustHeight:i.isNeedAdjustHeight,adjustLength:i.adjustLength,el:e,popup:BI.extend({},i.popup,{el:BI.extend({items:t},i.popup.el)})}),this.combo.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.ComboGroup.EVENT_CHANGE,n)})},getValue:function(){return this.combo.getValue()},setValue:function(e){this.combo.setValue(e)}}),BI.ComboGroup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.combo_group",BI.ComboGroup)},function(e,t){BI.VirtualGroup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.VirtualGroup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-virtual-group",items:[],layouts:[{type:"bi.center",hgap:0,vgap:0}]})},render:function(){var e=this.options;this.populate(e.items),BI.isKey(e.value)&&this.setValue(e.value)},_packageBtns:function(e){for(var r=this.options,i=this.buttonMap={},a=r.layouts.length-1;0<a;a--)e=BI.map(e,function(e,t){var n=BI.stripEL(t);return BI.extend({},r.layouts[a],{items:[BI.extend({},r.layouts[a].el,{el:BI.extend({ref:function(e){BI.isKey(i[n.value])&&(i[n.value]=e)}},n)})]})});return e},_packageLayout:function(e){for(var t=this.options,n=BI.deepClone(t.layouts[0]),r=BI.formatEL(n).el;r&&r.items&&!BI.isEmpty(r.items);)r=BI.formatEL(r.items[0]).el;return r.items=e,n},addItems:function(e){this.layouts.addItems(e)},prependItems:function(e){this.layouts.prependItems(e)},setValue:function(n){n=BI.isArray(n)?n:[n],BI.each(this.buttonMap,function(e,t){t&&(n.deepContains(e)?t.setSelected&&t.setSelected(!0):t.setSelected&&t.setSelected(!1))})},getNotSelectedValue:function(){var n=[];return BI.each(this.buttonMap,function(e,t){t&&(!t.isEnabled()||t.isSelected&&t.isSelected()||n.push(t.getValue()))}),n},getValue:function(){var n=[];return BI.each(this.buttonMap,function(e,t){t&&t.isEnabled()&&t.isSelected&&t.isSelected()&&n.push(t.getValue())}),n},populate:function(e){e=e||[],this.options.items=e,e=this._packageBtns(e),this.layouts?this.layouts.populate(e):this.layouts=BI.createWidget(BI.extend({element:this},this._packageLayout(e)))}}),BI.VirtualGroup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.virtual_group",BI.VirtualGroup)},function(e,t){BI.Loader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Loader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-loader",direction:"top",isDefaultInit:!0,logic:{dynamic:!0,scrolly:!0},el:{type:"bi.button_group"},items:[],itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn,count:!1,prev:!1,next:{},hasPrev:BI.emptyFn,hasNext:BI.emptyFn})},_prevLoad:function(){var e=this,t=this.options;this.prev.setLoading(),t.itemsCreator.apply(this,[{times:--this.times},function(){e.prev.setLoaded(),e.prependItems.apply(e,arguments)}])},_nextLoad:function(){var e=this,t=this.options;this.next.setLoading(),t.itemsCreator.apply(this,[{times:++this.times},function(){e.next.setLoaded(),e.addItems.apply(e,arguments)}])},_init:function(){BI.Loader.superclass._init.apply(this,arguments);var r=this,e=this.options;!1===e.itemsCreator&&(e.prev=!1,e.next=!1),!1!==e.prev&&(this.prev=BI.createWidget(BI.extend({type:"bi.loading_bar"},e.prev)),this.prev.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&r._prevLoad()})),this.button_group=BI.createWidget(e.el,{type:"bi.button_group",chooseType:0,items:e.items,behaviors:{},layouts:[{type:"bi.vertical"}],value:e.value}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.Loader.EVENT_CHANGE,n)}),!1!==e.next&&(this.next=BI.createWidget(BI.extend({type:"bi.loading_bar"},e.next)),this.next.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&r._nextLoad()})),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(e.direction),BI.extend({scrolly:!0},e.logic,{items:BI.LogicFactory.createLogicItemsByDirection(e.direction,this.prev,this.button_group,this.next)})))),e.isDefaultInit&&BI.isEmpty(e.items)&&BI.nextTick(BI.bind(function(){e.isDefaultInit&&BI.isEmpty(e.items)&&this._populate()},this)),BI.isNotEmptyArray(e.items)&&this._populate(e.items)},hasPrev:function(){var e=this.options;return BI.isNumber(e.count)?this.count<e.count:!!e.hasPrev.apply(this,[{times:this.times,count:this.count}])},hasNext:function(){var e=this.options;return BI.isNumber(e.count)?this.count<e.count:!!e.hasNext.apply(this,[{times:this.times,count:this.count}])},prependItems:function(e){this.count+=e.length,!1!==this.next&&(this.hasPrev()?(this.options.items=this.options.items.concat(e),this.prev.setLoaded()):this.prev.setEnd()),this.button_group.prependItems.apply(this.button_group,arguments)},addItems:function(e){this.count+=e.length,BI.isObject(this.next)&&(this.hasNext()?(this.options.items=this.options.items.concat(e),this.next.setLoaded()):this.next.setEnd()),this.button_group.addItems.apply(this.button_group,arguments)},_populate:function(e){var t=this,n=this.options;return 0===arguments.length&&BI.isFunction(n.itemsCreator)?(n.itemsCreator.apply(this,[{times:1},function(){if(0===arguments.length)throw new Error("arguments can not be null!!!");t.populate.apply(t,arguments),n.onLoaded()}]),!1):(this.options.items=e,this.times=1,this.count=0,this.count+=e.length,BI.isObject(this.next)&&(this.hasNext()?this.next.setLoaded():this.next.invisible()),BI.isObject(this.prev)&&(this.hasPrev()?this.prev.setLoaded():this.prev.invisible()),!0)},populate:function(){this._populate.apply(this,arguments)&&this.button_group.populate.apply(this.button_group,arguments)},setNotSelectedValue:function(){this.button_group.setNotSelectedValue.apply(this.button_group,arguments)},getNotSelectedValue:function(){return this.button_group.getNotSelectedValue()},setValue:function(){this.button_group.setValue.apply(this.button_group,arguments)},getValue:function(){return this.button_group.getValue.apply(this.button_group,arguments)},getAllButtons:function(){return this.button_group.getAllButtons()},getAllLeaves:function(){return this.button_group.getAllLeaves()},getSelectedButtons:function(){return this.button_group.getSelectedButtons()},getNotSelectedButtons:function(){return this.button_group.getNotSelectedButtons()},getIndexByValue:function(e){return this.button_group.getIndexByValue(e)},getNodeById:function(e){return this.button_group.getNodeById(e)},getNodeByValue:function(e){return this.button_group.getNodeByValue(e)},empty:function(){this.button_group.empty(),BI.each([this.prev,this.next],function(e,t){t&&t.setVisible(!1)})},destroy:function(){BI.Loader.superclass.destroy.apply(this,arguments)}}),BI.Loader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.loader",BI.Loader)},function(e,t){BI.Navigation=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Navigation.superclass._defaultConfig.apply(this,arguments),{direction:"bottom",logic:{dynamic:!1},single:!1,showIndex:!1,tab:!1,cardCreator:function(e){return BI.createWidget()},afterCardCreated:BI.emptyFn,afterCardShow:BI.emptyFn})},render:function(){var n=this,r=this.options;this.tab=BI.createWidget(this.options.tab,{type:"bi.button_group"}),this.cardMap={},this.showIndex=0,this.layout=BI.createWidget({type:"bi.card"}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(r.direction),BI.extend({},r.logic,{items:BI.LogicFactory.createLogicItemsByDirection(r.direction,this.tab,this.layout)})))),new BI.ShowListener({eventObj:this.tab,cardLayout:this.layout,cardNameCreator:function(e){return n.showIndex+e},cardCreator:function(e){var t=r.cardCreator(e);return n.cardMap[e]=t},afterCardCreated:BI.bind(this.afterCardCreated,this),afterCardShow:BI.bind(this.afterCardShow,this)})},mounted:function(){var e=this.options;!1!==e.showIndex&&this.setSelect(e.showIndex)},_deleteOtherCards:function(n){var r=this;!0===this.options.single&&BI.each(this.cardMap,function(e,t){e!==n+""&&(r.layout.deleteCardByName(e),delete r.cardMap[e])})},afterCardCreated:function(e){var r=this;this.cardMap[e].on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.Navigation.EVENT_CHANGE,n)}),this.options.afterCardCreated.apply(this,arguments)},afterCardShow:function(e){this.showIndex=e,this._deleteOtherCards(e),this.options.afterCardShow.apply(this,arguments)},populate:function(){var e=this.layout.getShowingCard();if(e)return e.populate.apply(e,arguments)},_assertCard:function(e){var t;this.layout.isCardExisted(e)||(t=this.options.cardCreator(e),this.cardMap[e]=t,this.layout.addCardByName(e,t),this.afterCardCreated(e))},setSelect:function(e){this._assertCard(e),this.layout.showCardByName(e),this._deleteOtherCards(e),this.showIndex!==e&&(this.showIndex=e,BI.nextTick(BI.bind(this.afterCardShow,this,e)))},getSelect:function(){return this.showIndex},getSelectedCard:function(){if(BI.isKey(this.showIndex))return this.cardMap[this.showIndex]},getAllCard:function(){return BI.values(this.cardMap)},setValue:function(e){var t=this.layout.getShowingCard();t&&t.setValue(e)},getValue:function(){var e=this.layout.getShowingCard();if(e)return e.getValue()},empty:function(){this.layout.deleteAllCard(),this.cardMap={}},destroy:function(){BI.Navigation.superclass.destroy.apply(this,arguments)}}),BI.Navigation.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.navigation",BI.Navigation)},function(e,t){BI.Searcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Searcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-searcher",lgap:0,rgap:0,tgap:0,bgap:0,vgap:0,hgap:0,isDefaultInit:!1,isAutoSearch:!0,isAutoSync:!0,chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,allowSearchBlank:!0,onSearch:function(e,t){t([])},el:{type:"bi.search_editor"},popup:{type:"bi.searcher_view"},adapter:null,masker:{offset:{}}})},_init:function(){BI.Searcher.superclass._init.apply(this,arguments);var t=this,n=this.options;this.editor=BI.createWidget(n.el,{type:"bi.search_editor"}),BI.createWidget({type:"bi.vertical",element:this,lgap:n.lgap,rgap:n.rgap,tgap:n.tgap,bgap:n.bgap,vgap:n.vgap,hgap:n.hgap,items:[this.editor]}),n.isDefaultInit&&this._assertPopupView();var r=BI.debounce(BI.bind(this._search,this),BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1});this.editor.on(BI.Controller.EVENT_CHANGE,function(e){switch(e){case BI.Events.STARTEDIT:t._startSearch();break;case BI.Events.EMPTY:t._stopSearch();break;case BI.Events.CHANGE:r();break;case BI.Events.PAUSE:n.allowSearchBlank||t._pauseSearch()}})},_assertPopupView:function(){var i=this,a=this.options;(a.masker&&!BI.Maskers.has(this.getName())||!1===a.masker&&!this.popupView)&&(this.popupView=BI.createWidget(a.popup,{type:"bi.searcher_view",chooseType:a.chooseType}),this.popupView.on(BI.Controller.EVENT_CHANGE,function(e,t,n){if(i.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK){if(a.isAutoSync){var r=a.adapter&&a.adapter.getValue();switch(a.chooseType){case BI.ButtonGroup.CHOOSE_TYPE_SINGLE:a.adapter&&a.adapter.setValue([n.getValue()]);break;case BI.ButtonGroup.CHOOSE_TYPE_MULTI:n.isSelected()||a.adapter&&a.adapter.setValue(BI.deepWithout(r,n.getValue())),r.push(n.getValue()),a.adapter&&a.adapter.setValue(r)}}i.fireEvent(BI.Searcher.EVENT_CHANGE,t,n)}}),BI.nextTick(function(){i.fireEvent(BI.Searcher.EVENT_AFTER_INIT)})),a.masker&&!BI.Maskers.has(this.getName())&&BI.Maskers.create(this.getName(),a.adapter,BI.extend({container:this,render:this.popupView},a.masker),this)},_startSearch:function(){this._assertPopupView(),this._stop=!1,this._isSearching=!0,this.fireEvent(BI.Searcher.EVENT_START),this.popupView.startSearch&&this.popupView.startSearch(),BI.nextTick(function(e){BI.Maskers.show(e)},this.getName())},_pauseSearch:function(){this.options,this.getName();this._stop=!0,BI.nextTick(function(e){BI.Maskers.hide(e)},this.getName()),!0===this._isSearching&&(this.popupView&&this.popupView.pauseSearch&&this.popupView.pauseSearch(),this.fireEvent(BI.Searcher.EVENT_PAUSE)),this._isSearching=!1},_stopSearch:function(){this.options;var e=this.getName();this._stop=!0,BI.Maskers.hide(e),!0===this._isSearching&&(this.popupView&&this.popupView.stopSearch&&this.popupView.stopSearch(),this.fireEvent(BI.Searcher.EVENT_STOP)),this._isSearching=!1},_search:function(){var r=this,i=this.options,a=i.allowSearchBlank?this.editor.getValue():this._getLastSearchKeyword();if(""!==a&&!this._stop){if(i.isAutoSearch){var e=i.adapter&&(i.adapter.getItems&&i.adapter.getItems()||i.adapter.attr("items"))||[],t=BI.Func.getSearchResult(e,a),n=t.match,o=t.find;return this.popupView.populate(o,n,a),i.isAutoSync&&i.adapter&&i.adapter.getValue&&this.popupView.setValue(i.adapter.getValue()),void r.fireEvent(BI.Searcher.EVENT_SEARCHING)}this.popupView.loading&&this.popupView.loading(),i.onSearch({times:1,keyword:a,selectedValues:i.adapter&&i.adapter.getValue()},function(e,t){var n;r._stop||(0<(n=[].slice.call(arguments)).length&&n.push(a),BI.Maskers.show(r.getName()),r.popupView.populate.apply(r.popupView,n),i.isAutoSync&&i.adapter&&i.adapter.getValue&&r.popupView.setValue(i.adapter.getValue()),r.popupView.loaded&&r.popupView.loaded(),r.fireEvent(BI.Searcher.EVENT_SEARCHING))})}},_getLastSearchKeyword:function(){if(this.isValid()){var e=this.editor.getValue().match(/[\S]+/g);return BI.isNull(e)?"":e[e.length-1]}},setAdapter:function(e){this.options.adapter=e,BI.Maskers.remove(this.getName())},doSearch:function(){this.isSearching()&&this._search()},stopSearch:function(){this._stopSearch();try{this.editor.blur()}catch(e){if(!this.editor.blur)throw new Error("editor没有实现blur方法")}finally{this.editor.setValue("")}},isSearching:function(){return this._isSearching},isViewVisible:function(){return this.editor.isEnabled()&&BI.Maskers.isVisible(this.getName())},getView:function(){return this.popupView},hasMatched:function(){return this._assertPopupView(),this.popupView.hasMatched()},adjustHeight:function(){BI.Maskers.has(this.getName())&&BI.Maskers.get(this.getName()).isVisible()&&BI.Maskers.show(this.getName())},adjustView:function(){this.isViewVisible()&&BI.Maskers.show(this.getName())},setValue:function(e){BI.isNull(this.popupView)?this.options.popup.value=e:this.popupView.setValue(e)},getKeyword:function(){return this._getLastSearchKeyword()},getKeywords:function(){return this.editor.getKeywords()},getValue:function(){var e=this.options;return e.isAutoSync&&e.adapter&&e.adapter.getValue?e.adapter.getValue():this.isSearching()?this.popupView.getValue():e.adapter&&e.adapter.getValue?e.adapter.getValue():BI.isNull(this.popupView)?e.popup.value:this.popupView.getValue()},populate:function(e,t,n){var r=this.options;this._assertPopupView(),this.popupView.populate.apply(this.popupView,arguments),r.isAutoSync&&r.adapter&&r.adapter.getValue&&this.popupView.setValue(r.adapter.getValue())},empty:function(){this.popupView&&this.popupView.empty()},destroyed:function(){BI.Maskers.remove(this.getName())}}),BI.Searcher.EVENT_CHANGE="EVENT_CHANGE",BI.Searcher.EVENT_START="EVENT_START",BI.Searcher.EVENT_STOP="EVENT_STOP",BI.Searcher.EVENT_PAUSE="EVENT_PAUSE",BI.Searcher.EVENT_SEARCHING="EVENT_SEARCHING",BI.Searcher.EVENT_AFTER_INIT="EVENT_AFTER_INIT",BI.shortcut("bi.searcher",BI.Searcher)},function(e,t){BI.Switcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Switcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-switcher",direction:BI.Direction.Top,trigger:"click",toggle:!0,el:{},popup:{},adapter:null,masker:{},switcherClass:"bi-switcher-popup",hoverClass:"bi-switcher-hover"})},_init:function(){BI.Switcher.superclass._init.apply(this,arguments);var r=this,e=this.options;this._initSwitcher(),this._initPullDownAction(),this.switcher.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.isEnabled()&&r.isValid()&&(e===BI.Events.EXPAND&&r._popupView(),e===BI.Events.COLLAPSE&&r._hideView(),e===BI.Events.EXPAND&&(r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),r.fireEvent(BI.Switcher.EVENT_EXPAND)),e===BI.Events.COLLAPSE&&(r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),r.isViewVisible()&&r.fireEvent(BI.Switcher.EVENT_COLLAPSE)),e===BI.Events.CLICK&&r.fireEvent(BI.Switcher.EVENT_TRIGGER_CHANGE,t,n))}),this.element.hover(function(){r.isEnabled()&&r.switcher.isEnabled()&&r.element.addClass(e.hoverClass)},function(){r.isEnabled()&&r.switcher.isEnabled()&&r.element.removeClass(e.hoverClass)}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[{el:this.switcher}]}),e.isDefaultInit&&this._assertPopupView()},_toggle:function(){this._assertPopupView(),this.isExpanded()?this._hideView():this.isEnabled()&&this._popupView()},_initPullDownAction:function(){var n=this,r=this.options,e=this.options.trigger.split(",");BI.each(e,function(e,t){switch(t){case"hover":n.element[t](function(e){n.isEnabled()&&n.switcher.isEnabled()&&(n._popupView(),n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",n.switcher),n.fireEvent(BI.Switcher.EVENT_EXPAND))},function(){n.isEnabled()&&n.switcher.isEnabled()&&r.toggle&&(n._hideView(),n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,"",n.switcher),n.fireEvent(BI.Switcher.EVENT_COLLAPSE))});break;default:t&&n.element.off(t+"."+n.getName()).on(t+"."+n.getName(),BI.debounce(function(e){n.switcher.element.__isMouseInBounds__(e)&&n.isEnabled()&&n.switcher.isEnabled()&&(r.toggle?n._toggle():n._popupView(),n.isExpanded()?(n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EXPAND,"",n.switcher),n.fireEvent(BI.Switcher.EVENT_EXPAND)):(n.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.COLLAPSE,"",n.switcher),n.fireEvent(BI.Switcher.EVENT_COLLAPSE)))},BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1}))}})},_initSwitcher:function(){this.switcher=BI.createWidget(this.options.el,{value:this.options.value})},_assertPopupView:function(){var r=this,e=this.options;this._created||(this.popupView=BI.createWidget(e.popup,{type:"bi.button_group",element:e.adapter&&BI.Maskers.create(this.getName(),e.adapter,BI.extend({container:this},e.masker)),cls:"switcher-popup",layouts:[{type:"bi.vertical",hgap:0,vgap:0}],value:e.value},this),this.popupView.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.Switcher.EVENT_CHANGE,t,n)}),e.direction===BI.Direction.Custom||e.adapter||BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[{el:this.popupView}]}),this._created=!0,BI.nextTick(function(){r.fireEvent(BI.Switcher.EVENT_AFTER_INIT)}))},_hideView:function(){this.fireEvent(BI.Switcher.EVENT_BEFORE_HIDEVIEW);var e=this,t=this.options;t.adapter?BI.Maskers.hide(e.getName()):e.popupView&&e.popupView.setVisible(!1),BI.nextTick(function(){t.adapter?BI.Maskers.hide(e.getName()):e.popupView&&e.popupView.setVisible(!1),e.element.removeClass(t.switcherClass),e.fireEvent(BI.Switcher.EVENT_AFTER_HIDEVIEW)})},_popupView:function(){var t=this,n=this.options;this._assertPopupView(),this.fireEvent(BI.Switcher.EVENT_BEFORE_POPUPVIEW),n.adapter?BI.Maskers.show(this.getName()):t.popupView.setVisible(!0),BI.nextTick(function(e){n.adapter?BI.Maskers.show(e):t.popupView.setVisible(!0),t.element.addClass(n.switcherClass),t.fireEvent(BI.Switcher.EVENT_AFTER_POPUPVIEW)},this.getName())},populate:function(e){this._assertPopupView(),this.popupView.populate.apply(this.popupView,arguments),this.switcher.populate.apply(this.switcher,arguments)},_setEnable:function(e){BI.Switcher.superclass._setEnable.apply(this,arguments),!e&&this.isViewVisible()&&this._hideView()},setValue:function(e){this.switcher.setValue(e),BI.isNull(this.popupView)?this.options.popup.value=e:this.popupView.setValue(e)},getValue:function(){return BI.isNull(this.popupView)?this.options.popup.value:this.popupView.getValue()},setAdapter:function(e){this.options.adapter=e,BI.Maskers.remove(this.getName())},isViewVisible:function(){return this.isEnabled()&&this.switcher.isEnabled()&&(this.options.adapter?BI.Maskers.isVisible(this.getName()):this.popupView&&this.popupView.isVisible())},isExpanded:function(){return this.isViewVisible()},showView:function(){this.isEnabled()&&this.switcher.isEnabled()&&this._popupView()},hideView:function(){this._hideView()},getView:function(){return this.popupView},adjustView:function(){this.isViewVisible()&&BI.Maskers.show(this.getName())},getAllLeaves:function(){return this.popupView&&this.popupView.getAllLeaves()},getNodeById:function(e){return this.switcher.attr("id")===e?this.switcher:this.popupView&&this.popupView.getNodeById(e)},getNodeByValue:function(e){return this.switcher.getValue()===e?this.switcher:this.popupView&&this.popupView.getNodeByValue(e)},empty:function(){this.popupView&&this.popupView.empty()}}),BI.Switcher.EVENT_EXPAND="EVENT_EXPAND",BI.Switcher.EVENT_COLLAPSE="EVENT_COLLAPSE",BI.Switcher.EVENT_TRIGGER_CHANGE="EVENT_TRIGGER_CHANGE",BI.Switcher.EVENT_CHANGE="EVENT_CHANGE",BI.Switcher.EVENT_AFTER_INIT="EVENT_AFTER_INIT",BI.Switcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.Switcher.EVENT_AFTER_POPUPVIEW="EVENT_AFTER_POPUPVIEW",BI.Switcher.EVENT_BEFORE_HIDEVIEW="EVENT_BEFORE_HIDEVIEW",BI.Switcher.EVENT_AFTER_HIDEVIEW="EVENT_AFTER_HIDEVIEW",BI.shortcut("bi.switcher",BI.Switcher)},function(e,t){BI.Tab=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Tab.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-tab",direction:"top",single:!1,logic:{dynamic:!1},showIndex:!1,tab:!1,cardCreator:function(e){return BI.createWidget()}})},render:function(){var r=this,n=this.options;BI.isObject(n.tab)&&(this.tab=BI.createWidget(this.options.tab,{type:"bi.button_group"}),this.tab.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments)})),this.cardMap={},this.layout=BI.createWidget({type:"bi.card"}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(n.direction),BI.extend({},n.logic,{items:BI.LogicFactory.createLogicItemsByDirection(n.direction,this.tab,this.layout)})))),new BI.ShowListener({eventObj:this.tab,cardLayout:this.layout,cardCreator:function(e){var t=n.cardCreator.apply(r,arguments);return r.cardMap[e]=t},afterCardShow:function(e){r._deleteOtherCards(e),r.curr=e}}).on(BI.ShowListener.EVENT_CHANGE,function(e){r.fireEvent(BI.Tab.EVENT_CHANGE,e,r)})},_deleteOtherCards:function(n){var r=this;!0===this.options.single&&BI.each(this.cardMap,function(e,t){e!==n+""&&(r.layout.deleteCardByName(e),delete r.cardMap[e])})},_assertCard:function(e){var t;this.layout.isCardExisted(e)||(t=this.options.cardCreator(e),this.cardMap[e]=t,this.layout.addCardByName(e,t))},mounted:function(){var e=this.options;!1!==e.showIndex&&this.setSelect(e.showIndex)},setSelect:function(e){this.tab&&this.tab.setValue(e),this._assertCard(e),this.layout.showCardByName(e),this._deleteOtherCards(e),this.curr!==e&&(this.curr=e)},removeTab:function(n){var r=this;this.options;BI.any(this.cardMap,function(e,t){if(BI.isEqual(e,n+""))return r.layout.deleteCardByName(e),delete r.cardMap[e],!0})},getSelect:function(){return this.curr},getSelectedTab:function(){return this.layout.getShowingCard()},getTab:function(e){return this._assertCard(e),this.layout.getCardByName(e)},setValue:function(e){var t=this.layout.getShowingCard();t&&t.setValue(e)},getValue:function(){var e=this.layout.getShowingCard();if(e)return e.getValue()},populate:function(){var e=this.layout.getShowingCard();if(e)return e.populate&&e.populate.apply(e,arguments)},empty:function(){this.layout.deleteAllCard(),this.cardMap={}},destroy:function(){this.cardMap={},BI.Tab.superclass.destroy.apply(this,arguments)}}),BI.Tab.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.tab",BI.Tab)},function(e,t){BI.EL=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.EL.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-el",el:{},layout:{}})},_init:function(){BI.EL.superclass._init.apply(this,arguments);var e=this,t=this.options;this.ele=BI.createWidget(t.el),BI.createWidget(t.layout,{type:"bi.adaptive",element:this,items:[this.ele]}),this.ele.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)})},setValue:function(e){this.ele.setValue(e)},getValue:function(){return this.ele.getValue()},populate:function(){this.ele.populate.apply(this,arguments)}}),BI.shortcut("bi.el",BI.EL)},function(e,t){var s,c,u,l;BI.Msg=(u=[],l=[],{alert:function(e,t,n){this._show(!1,e,t,n)},confirm:function(e,t,n){this._show(!0,e,t,n)},prompt:function(e,t,n,r,i){},toast:function(e,t,n){t=t||{},n=n||BI.Widget._renderEngine.createElement("body");var r=t.level||"common",i=!!BI.isNull(t.autoClose)||t.autoClose,a=BI.isFunction(t.callback)?t.callback:BI.emptyFn,o=BI.createWidget({type:"bi.toast",cls:"bi-message-animate bi-message-leave",level:r,autoClose:i,text:e,listeners:[{eventName:BI.Toast.EVENT_DESTORY,action:function(){BI.remove(l,o.element);var n=10;BI.each(l,function(e,t){t.css({top:n}),n+=t.outerHeight()+10}),a()}}]}),s=10;BI.each(l,function(e,t){s+=t.outerHeight()+10}),BI.createWidget({type:"bi.absolute",element:n,items:[{el:o,left:"50%",top:s}]}),l.push(o.element),o.element.css({"margin-left":-1*o.element.outerWidth()/2}),o.element.removeClass("bi-message-leave").addClass("bi-message-enter"),i&&BI.delay(function(){o.element.removeClass("bi-message-enter").addClass("bi-message-leave"),o.destroy()},5e3)},_show:function(e,t,n,r){BI.isNull(s)&&(s=BI.Widget._renderEngine.createElement('<div class="bi-z-index-mask">').css({position:"absolute",zIndex:BI.zIndex_tip-2,top:0,left:0,right:0,bottom:0,opacity:.5}).appendTo("body")),c=BI.Widget._renderEngine.createElement('<div class="bi-message-depend">').css({position:"absolute",zIndex:BI.zIndex_tip-1,top:0,left:0,right:0,bottom:0}).appendTo("body");var i=function(){u[u.length-1].destroy(),u.pop(),0===u.length&&(s.remove(),s=null)},a=[];!0===e&&a.push({el:{type:"bi.button",text:BI.i18nText("BI-Basic_Cancel"),level:"ignore",handler:function(){i(),BI.isFunction(r)&&r.apply(null,[!1])}}}),a.push({el:{type:"bi.button",text:BI.i18nText("BI-Basic_OK"),handler:function(){i(),BI.isFunction(r)&&r.apply(null,[!0])}}});var o={element:c,type:"bi.center_adapt",items:[{type:"bi.border",cls:"bi-card",items:{north:{el:{type:"bi.border",cls:"bi-message-title bi-background",items:{center:{el:{type:"bi.label",cls:"bi-font-bold",text:t||BI.i18nText("BI-Basic_Prompt"),textAlign:"left",hgap:20,height:40}},east:{el:{type:"bi.icon_button",cls:"bi-message-close close-font",handler:function(){i(),BI.isFunction(r)&&r.apply(null,[!1])}},width:60}}},height:40},center:{el:{type:"bi.label",vgap:10,hgap:20,whiteSpace:"normal",text:n}},south:{el:{type:"bi.absolute",items:[{el:{type:"bi.right_vertical_adapt",lgap:10,items:a},top:0,left:20,right:20,bottom:0}]},height:44}},width:450,height:200}]};u[u.length]=BI.createWidget(o)}})},function(e,t){BI.GridView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.GridView.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-grid-view",overflowX:!0,overflowY:!0,overscanColumnCount:0,overscanRowCount:0,rowHeightGetter:BI.emptyFn,columnWidthGetter:BI.emptyFn,scrollLeft:0,scrollTop:0,items:[]})},_init:function(){BI.GridView.superclass._init.apply(this,arguments);var e=this,t=this.options;this.renderedCells=[],this.renderedKeys=[],this.renderRange={},this._scrollLock=!1,this._debounceRelease=BI.debounce(function(){e._scrollLock=!1},1e3/60),this.container=BI._lazyCreateWidget({type:"bi.absolute"}),this.element.scroll(function(){!0!==e._scrollLock&&(t.scrollLeft=e.element.scrollLeft(),t.scrollTop=e.element.scrollTop(),e._calculateChildrenToRender(),e.fireEvent(BI.GridView.EVENT_SCROLL,{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}))}),BI._lazyCreateWidget({type:"bi.vertical",element:this,scrollable:!0===t.overflowX&&!0===t.overflowY,scrolly:!1===t.overflowX&&!0===t.overflowY,scrollx:!0===t.overflowX&&!1===t.overflowY,items:[this.container]}),0<t.items.length&&this._populate()},mounted:function(){var e=this.options;0===e.scrollLeft&&0===e.scrollTop||(this.element.scrollTop(e.scrollTop),this.element.scrollLeft(e.scrollLeft))},_getOverscanIndices:function(e,t,n,r){return{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,r+t)}},_calculateChildrenToRender:function(){var n=this,e=this.options,t=e.width,r=e.height,i=BI.clamp(e.scrollLeft,0,this._getMaxScrollLeft()),a=BI.clamp(e.scrollTop,0,this._getMaxScrollTop()),o=e.overscanColumnCount,s=e.overscanRowCount;if(0<r&&0<t){var c=this._columnSizeAndPositionManager.getVisibleCellRange(t,i),u=this._rowSizeAndPositionManager.getVisibleCellRange(r,a);if(BI.isEmpty(c)||BI.isEmpty(u))return;var l=this._columnSizeAndPositionManager.getOffsetAdjustment(t,i),d=this._rowSizeAndPositionManager.getOffsetAdjustment(r,a);this._renderedColumnStartIndex=c.start,this._renderedColumnStopIndex=c.stop,this._renderedRowStartIndex=u.start,this._renderedRowStopIndex=u.stop;var p=this._getOverscanIndices(this.columnCount,o,this._renderedColumnStartIndex,this._renderedColumnStopIndex),f=this._getOverscanIndices(this.rowCount,s,this._renderedRowStartIndex,this._renderedRowStopIndex),_=p.overscanStartIndex,h=p.overscanStopIndex,g=f.overscanStartIndex,m=f.overscanStopIndex,y=this._rowSizeAndPositionManager.getSizeAndPositionOfCell(g),b=this._columnSizeAndPositionManager.getSizeAndPositionOfCell(_),v=this._rowSizeAndPositionManager.getSizeAndPositionOfCell(m),E=this._columnSizeAndPositionManager.getSizeAndPositionOfCell(h),I=y.offset+d,T=b.offset+l,C=v.offset+d+v.size,B=E.offset+l+E.size;if(I>=this.renderRange.minY&&C<=this.renderRange.maxY&&T>=this.renderRange.minX&&B<=this.renderRange.maxX)return;for(var x=[],S={},N={},D=this._getMaxScrollLeft(),k=this._getMaxScrollTop(),A=0,w=0,V=0,P=g;P<=m;P++)for(var L=this._rowSizeAndPositionManager.getSizeAndPositionOfCell(P),M=_;M<=h;M++){var F,O=P+"-"+M,R=this._columnSizeAndPositionManager.getSizeAndPositionOfCell(M),H=this.renderedKeys[O]&&this.renderedKeys[O][2];0<=H?(R.size!==this.renderedCells[H]._width&&(this.renderedCells[H]._width=R.size,this.renderedCells[H].el.setWidth(R.size)),L.size!==this.renderedCells[H]._height&&(this.renderedCells[H]._height=L.size,this.renderedCells[H].el.setHeight(L.size)),this.renderedCells[H]._left!==R.offset+l&&this.renderedCells[H].el.element.css("left",R.offset+l+"px"),this.renderedCells[H]._top!==L.offset+d&&this.renderedCells[H].el.element.css("top",L.offset+d+"px"),F=this.renderedCells[H].el,x.push(this.renderedCells[H])):(F=BI._lazyCreateWidget(BI.extend({type:"bi.label",width:R.size,height:L.size},e.items[P][M],{cls:(e.items[P][M].cls||"")+" grid-cell"+(0===P?" first-row":"")+(0===M?" first-col":""),_rowIndex:P,_columnIndex:M,_left:R.offset+l,_top:L.offset+d}),this),x.push({el:F,left:R.offset+l,top:L.offset+d,_left:R.offset+l,_top:L.offset+d,_width:R.size,_height:L.size})),D=Math.min(D,R.offset+l),A=Math.max(A,R.offset+l+R.size),k=Math.min(k,L.offset+d),w=Math.max(w,L.offset+d+L.size),S[O]=[P,M,V],N[V]=F,V++}var j={},W={},G=[];BI.each(S,function(e,t){n.renderedKeys[e]?j[e]=t:W[e]=t}),BI.each(this.renderedKeys,function(e,t){j[e]||W[e]||G.push(t[2])}),BI.each(G,function(e,t){n.renderedCells[t].el._destroy()});var Y=[];BI.each(W,function(e,t){Y.push(x[t[2]])}),this.container.addItems(Y,this),this.container._children=N,this.container.attr("items",x),this.renderedCells=x,this.renderedKeys=S,this.renderRange={minX:D,minY:k,maxX:A,maxY:w}}},_getRealMaxScrollLeft:function(){var t=this.options,n=0;return BI.count(0,this.columnCount,function(e){n+=t.columnWidthGetter(e)}),Math.max(0,n-this.options.width+(this.options.overflowX?BI.DOM.getScrollWidth():0))},_getMaxScrollLeft:function(){return Math.max(0,this._columnSizeAndPositionManager.getTotalSize()-this.options.width+(this.options.overflowX?BI.DOM.getScrollWidth():0))},_getMaxScrollTop:function(){return Math.max(0,this._rowSizeAndPositionManager.getTotalSize()-this.options.height+(this.options.overflowY?BI.DOM.getScrollWidth():0))},_populate:function(e){var t=this.options;this._reRange(),this.columnCount=0,this.rowCount=0,e&&e!==this.options.items&&(this.options.items=e),BI.isNumber(t.columnCount)?this.columnCount=t.columnCount:0<t.items.length&&(this.columnCount=t.items[0].length),BI.isNumber(t.rowCount)?this.rowCount=t.rowCount:this.rowCount=t.items.length,this.container.setWidth(this.columnCount*t.estimatedColumnSize),this.container.setHeight(this.rowCount*t.estimatedRowSize),this._columnSizeAndPositionManager=new BI.ScalingCellSizeAndPositionManager(this.columnCount,t.columnWidthGetter,t.estimatedColumnSize),this._rowSizeAndPositionManager=new BI.ScalingCellSizeAndPositionManager(this.rowCount,t.rowHeightGetter,t.estimatedRowSize),this._calculateChildrenToRender();try{this.element.scrollTop(t.scrollTop),this.element.scrollLeft(t.scrollLeft)}catch(n){}},setScrollLeft:function(e){this.options.scrollLeft!==e&&(this._scrollLock=!0,this.options.scrollLeft=BI.clamp(e||0,0,this._getRealMaxScrollLeft()),this._debounceRelease(),this._calculateChildrenToRender(),this.element.scrollLeft(this.options.scrollLeft))},setScrollTop:function(e){this.options.scrollTop!==e&&(this._scrollLock=!0,this.options.scrollTop=BI.clamp(e||0,0,this._getMaxScrollTop()),this._debounceRelease(),this._calculateChildrenToRender(),this.element.scrollTop(this.options.scrollTop))},setColumnCount:function(e){this.options.columnCount=e},setRowCount:function(e){this.options.rowCount=e},setOverflowX:function(e){var t=this;this.options.overflowX!==!!e&&(this.options.overflowX=!!e,BI.nextTick(function(){t.element.css({overflowX:e?"auto":"hidden"})}))},setOverflowY:function(e){var t=this;this.options.overflowY!==!!e&&(this.options.overflowY=!!e,BI.nextTick(function(){t.element.css({overflowY:e?"auto":"hidden"})}))},getScrollLeft:function(){return this.options.scrollLeft},getScrollTop:function(){return this.options.scrollTop},getMaxScrollLeft:function(){return this._getMaxScrollLeft()},getMaxScrollTop:function(){return this._getMaxScrollTop()},setEstimatedColumnSize:function(e){this.options.estimatedColumnSize=e},setEstimatedRowSize:function(e){this.options.estimatedRowSize=e},_reRange:function(){this.renderRange={}},_clearChildren:function(){this.container._children={},this.container.attr("items",[])},restore:function(){BI.each(this.renderedCells,function(e,t){t.el._destroy()}),this._clearChildren(),this.renderedCells=[],this.renderedKeys=[],this.renderRange={},this._scrollLock=!1},populate:function(e){e&&e!==this.options.items&&this.restore(),this._populate(e)}}),BI.GridView.EVENT_SCROLL="EVENT_SCROLL",BI.shortcut("bi.grid_view",BI.GridView)},function(e,t){BI.Popover=BI.inherit(BI.Widget,{_constant:{SIZE:{SMALL:"small",NORMAL:"normal",BIG:"big"},MAX_HEIGHT:600,BODY_TGAP:10,BODY_HGAP:20},props:{baseCls:"bi-popover bi-card bi-border-radius",size:"normal",logic:{dynamic:!1},header:null,headerHeight:40,body:null,footer:null,footerHeight:44,closable:!0},render:function(){var i=this,e=this.options,t=this._constant;this.startX=0,this.startY=0;var n=this._calculateSize();this.tracker=new BI.MouseMoveTracker(function(e,t){var n=BI.Widget._renderEngine.createElement("body").width(),r=BI.Widget._renderEngine.createElement("body").height();i.startX+=e,i.startY+=t,i.element.css({left:BI.clamp(i.startX,0,n-i.element.width())+"px",top:BI.clamp(i.startY,0,r-i.element.height())+"px"}),BI.Resizers._resize()},function(){i.tracker.releaseMouseMoves()},_global);var r=[{el:{type:"bi.htape",cls:"bi-message-title bi-header-background",ref:function(e){i.dragger=e},items:[{type:"bi.absolute",items:[{el:BI.isPlainObject(e.header)?BI.extend({},e.header,{extraCls:"bi-font-bold"}):{type:"bi.label",cls:"bi-font-bold",height:e.headerHeight,text:e.header,title:e.header,textAlign:"left"},left:20,top:0,right:0,bottom:0}]},{el:e.closable?{type:"bi.icon_button",cls:"bi-message-close close-font",height:e.headerHeight,handler:function(){i.close()}}:{type:"bi.layout"},width:56}],height:e.headerHeight},height:e.headerHeight},e.logic.dynamic?{el:{type:"bi.vertical",scrolly:!0,cls:"popover-body",ref:function(){i.body=this},css:{"max-height":this._getSuitableBodyHeight(t.MAX_HEIGHT-e.headerHeight-(e.footer?e.footerHeight:0)-t.BODY_TGAP),"min-height":this._getSuitableBodyHeight(n.height)},items:[{el:e.body}]},hgap:t.BODY_HGAP,tgap:t.BODY_TGAP}:{el:{type:"bi.absolute",items:[{el:e.body,left:t.BODY_HGAP,top:t.BODY_TGAP,right:t.BODY_HGAP,bottom:0}]}}];return e.footer&&r.push({el:{type:"bi.absolute",items:[{el:e.footer,left:20,top:0,right:20,bottom:0}],height:e.footerHeight},height:e.footerHeight}),BI.extend({type:e.logic.dynamic?"bi.vertical":"bi.vtape",items:r,width:this._getSuitableWidth(n.width)},e.logic.dynamic?{type:"bi.vertical",scrolly:!1}:{type:"bi.vtape",height:this._getSuitableHeight(n.height)})},mounted:function(){var n=this;this.options;this.dragger.element.mousedown(function(e){var t=n.element.offset();n.startX=t.left,n.startY=t.top,n.tracker.captureMouseMoves(e)})},_getSuitableBodyHeight:function(e){var t=this.options,n=this._constant;return BI.clamp(e,0,BI.Widget._renderEngine.createElement("body")[0].clientHeight-t.headerHeight-(t.footer?t.footerHeight:0)-n.BODY_TGAP)},_getSuitableHeight:function(e){return BI.clamp(e,0,BI.Widget._renderEngine.createElement("body")[0].clientHeight)},_getSuitableWidth:function(e){return BI.clamp(e,0,BI.Widget._renderEngine.createElement("body").width())},_calculateSize:function(){var e=this.options,t={};if(BI.isNotNull(e.size))switch(e.size){case this._constant.SIZE.SMALL:t.width=450,t.height=200,t.type="small";break;case this._constant.SIZE.BIG:t.width=900,t.height=500,t.type="big";break;default:t.width=550,t.height=500,t.type="default"}return{width:e.width||t.width,height:e.height||t.height,type:t.type||"default"}},hide:function(){},open:function(){this.show(),this.fireEvent(BI.Popover.EVENT_OPEN,arguments)},close:function(){this.hide(),this.fireEvent(BI.Popover.EVENT_CLOSE,arguments)},setZindex:function(e){this.element.css({"z-index":e})},destroyed:function(){}}),BI.shortcut("bi.popover",BI.Popover),BI.BarPopover=BI.inherit(BI.Popover,{_defaultConfig:function(){return BI.extend(BI.BarPopover.superclass._defaultConfig.apply(this,arguments),{btns:[BI.i18nText("BI-Basic_Sure"),BI.i18nText("BI-Basic_Cancel")]})},beforeCreate:function(){var t=this,e=this.options;e.footer||(e.footer={type:"bi.right_vertical_adapt",lgap:10,items:[{type:"bi.button",text:this.options.btns[1],value:1,level:"ignore",handler:function(e){t.fireEvent(BI.Popover.EVENT_CANCEL,e),t.close(e)}},{type:"bi.button",text:this.options.btns[0],warningTitle:e.warningTitle,value:0,handler:function(e){t.fireEvent(BI.Popover.EVENT_CONFIRM,e),t.close(e)}}]})}}),BI.shortcut("bi.bar_popover",BI.BarPopover),BI.Popover.EVENT_CLOSE="EVENT_CLOSE",BI.Popover.EVENT_OPEN="EVENT_OPEN",BI.Popover.EVENT_CANCEL="EVENT_CANCEL",BI.Popover.EVENT_CONFIRM="EVENT_CONFIRM"},function(e,t){BI.PopupView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.PopupView.superclass._defaultConfig.apply(this,arguments),{_baseCls:"bi-popup-view",maxWidth:"auto",minWidth:100,minHeight:24,lgap:0,rgap:0,tgap:0,bgap:0,vgap:0,hgap:0,innerVGap:0,direction:BI.Direction.Top,stopEvent:!1,stopPropagation:!1,logic:{dynamic:!0},tool:!1,tabs:[],buttons:[],el:{type:"bi.button_group",items:[],chooseType:0,behaviors:{},layouts:[{type:"bi.vertical"}]}})},_init:function(){BI.PopupView.superclass._init.apply(this,arguments);var t=this,e=this.options,n=function(e){e.stopPropagation()},r=function(e){return e.stopEvent(),!1};this.element.css({"z-index":BI.zIndex_popup,"min-width":e.minWidth+"px","max-width":e.maxWidth+"px"}).bind({click:n}),this.element.bind("mousewheel",n),e.stopPropagation&&this.element.bind({mousedown:n,mouseup:n,mouseover:n}),e.stopEvent&&this.element.bind({mousedown:r,mouseup:r,mouseover:r}),this.tool=this._createTool(),this.tab=this._createTab(),this.view=this._createView(),this.toolbar=this._createToolBar(),this.view.on(BI.Controller.EVENT_CHANGE,function(e){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&t.fireEvent(BI.PopupView.EVENT_CHANGE)}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(e.direction),BI.extend({},e.logic,{scrolly:!1,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,vgap:e.vgap,hgap:e.hgap,items:BI.LogicFactory.createLogicItemsByDirection(e.direction,BI.extend({cls:"list-view-outer bi-card list-view-shadow"},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(e.direction),BI.extend({},e.logic,{items:BI.LogicFactory.createLogicItemsByDirection(e.direction,this.tool,this.tab,this.view,this.toolbar)}))))}))))},_createView:function(){var e=this.options;return this.button_group=BI.createWidget(e.el,{type:"bi.button_group",value:e.value}),this.button_group.element.css({"min-height":e.minHeight+"px","padding-top":e.innerVGap+"px","padding-bottom":e.innerVGap+"px"}),this.button_group},_createTool:function(){var e=this.options;if(!1!==e.tool)return BI.createWidget(e.tool)},_createTab:function(){var e=this.options;if(0!==e.tabs.length)return BI.createWidget({type:"bi.center",cls:"list-view-tab",height:25,items:e.tabs,value:e.value})},_createToolBar:function(){var e=this.options;if(0!==e.buttons.length)return BI.createWidget({type:"bi.center",cls:"list-view-toolbar bi-high-light bi-split-top",height:24,items:BI.createItems(e.buttons,{once:!1,shadow:!0,isShadowShowingOnSelected:!0})})},getView:function(){return this.view},populate:function(e){this.view.populate.apply(this.view,arguments)},resetWidth:function(e){this.options.width=e,this.element.width(e)},resetHeight:function(e){var t=e-(this.toolbar?this.toolbar.attr("height")||24:0)-(this.tab?this.tab.attr("height")||24:0)-(this.tool&&this.tool.attr("height")||24)*(this.tool&&this.tool.isVisible()?1:0)-2*this.options.innerVGap;this.view.resetHeight?this.view.resetHeight(t):this.view.element.css({"max-height":t+"px"})},setValue:function(e){this.tab&&this.tab.setValue(e),this.view.setValue(e)},getValue:function(){return this.view.getValue()}}),BI.PopupView.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.popup_view",BI.PopupView)},function(e,t){BI.SearcherView=BI.inherit(BI.Pane,{_defaultConfig:function(){var e=BI.SearcherView.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-searcher-view bi-card",tipText:BI.i18nText("BI-No_Select"),chooseType:BI.Selection.Single,matcher:{type:"bi.button_group",behaviors:{redmark:function(){return!0}},items:[],layouts:[{type:"bi.vertical"}]},searcher:{type:"bi.button_group",behaviors:{redmark:function(){return!0}},items:[],layouts:[{type:"bi.vertical"}]}})},_init:function(){BI.SearcherView.superclass._init.apply(this,arguments);var r=this,e=this.options;this.matcher=BI.createWidget(e.matcher,{type:"bi.button_group",chooseType:e.chooseType,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}],value:e.value}),this.matcher.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.SearcherView.EVENT_CHANGE,t,n)}),this.spliter=BI.createWidget({type:"bi.vertical",height:1,hgap:10,items:[{type:"bi.layout",height:1,cls:"searcher-view-spliter bi-background"}]}),this.searcher=BI.createWidget(e.searcher,{type:"bi.button_group",chooseType:e.chooseType,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}],value:e.value}),this.searcher.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.SearcherView.EVENT_CHANGE,t,n)}),BI.createWidget({type:"bi.vertical",element:this,items:[this.matcher,this.spliter,this.searcher]})},startSearch:function(){},stopSearch:function(){},setValue:function(e){this.matcher.setValue(e),this.searcher.setValue(e)},getValue:function(){return this.matcher.getValue().concat(this.searcher.getValue())},populate:function(e,t,n){e=e||[],t=t||[],this.setTipVisible(e.length+t.length===0),this.spliter.setVisible(BI.isNotEmptyArray(t)&&BI.isNotEmptyArray(e)),this.matcher.populate(t,n),this.searcher.populate(e,n)},empty:function(){this.searcher.empty(),this.matcher.empty()},hasMatched:function(){return 0<this.matcher.getAllButtons().length}}),BI.SearcherView.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.searcher_view",BI.SearcherView)},function(e,t){BI.ListView=BI.inherit(BI.Widget,{props:function(){return{baseCls:"bi-list-view",overscanHeight:100,blockSize:10,scrollTop:0,el:{},items:[]}},init:function(){this.renderedIndex=-1,this.cache={}},render:function(){var e=this,t=this.options;return{type:"bi.vertical",items:[BI.extend({type:"bi.vertical",scrolly:!1,ref:function(){e.container=this}},t.el)],element:this}},mounted:function(){var n=this,t=this.options;this._populate(),this.element.scroll(function(e){t.scrollTop=n.element.scrollTop(),n._calculateBlocksToRender()});var r=this.element.width(),i=this.element.height();BI.ResizeDetector.addResizeListener(this,function(){var e=n.element.width(),t=n.element.height();e===r&&t===i||(r=e,i=t,n._calculateBlocksToRender())})},_renderMoreIf:function(){for(var e,t=this,n=this.options,r=this.element.height(),i=n.scrollTop+r+n.overscanHeight,a=this.cache[this.renderedIndex]&&this.cache[this.renderedIndex].index+n.blockSize||0,o=this.renderedIndex+1,s=function(){return t.container.element.height()};(e=s())<i&&a<n.items.length;){var c=n.items.slice(a,a+n.blockSize);this.container.addItems(c,this);var u=s()-e;this.cache[o]={index:a,scrollTop:e,height:u},this.renderedIndex=o,o++,a+=n.blockSize}},_calculateBlocksToRender:function(){this.options;this._renderMoreIf()},_populate:function(e){var t=this.options;e&&this.options.items!==e&&(this.options.items=e),this._calculateBlocksToRender(),this.element.scrollTop(t.scrollTop)},restore:function(){this.renderedIndex=-1,this.container.empty(),this.cache={}},populate:function(e){e&&this.options.items!==e&&this.restore(),this._populate(e)},destroyed:function(){this.restore()}}),BI.shortcut("bi.list_view",BI.ListView)},function(e,t){BI.VirtualList=BI.inherit(BI.Widget,{props:function(){return{baseCls:"bi-virtual-list",overscanHeight:100,blockSize:10,scrollTop:0,items:[]}},init:function(){this.renderedIndex=-1,this.cache={}},render:function(){var e=this;this.options;return{type:"bi.vertical",items:[{type:"bi.layout",ref:function(){e.topBlank=this}},{type:"bi.vertical",scrolly:!1,ref:function(){e.container=this}},{type:"bi.layout",ref:function(){e.bottomBlank=this}}],element:this}},mounted:function(){var t=this,n=this.options;this._populate(),this.element.scroll(function(e){n.scrollTop=t.element.scrollTop(),t._calculateBlocksToRender()}),BI.ResizeDetector.addResizeListener(this,function(){t._calculateBlocksToRender()})},_renderMoreIf:function(){for(var e,t=this,n=this.options,r=this.element.height(),i=n.scrollTop+r+n.overscanHeight,a=this.cache[this.renderedIndex]&&this.cache[this.renderedIndex].index+n.blockSize||0,o=this.renderedIndex+1,s=function(){return t.container.element.height()+t.topBlank.element.height()+t.bottomBlank.element.height()};(e=s())<i&&a<n.items.length;){var c=n.items.slice(a,a+n.blockSize);this.container.addItems(c,this);var u=s()-e;this.cache[o]={index:a,scrollTop:e,height:u},this.tree.set(o,u),this.renderedIndex=o,o++,a+=n.blockSize}},_calculateBlocksToRender:function(){var e=this.options;this._renderMoreIf();for(var t=this.element.height(),n=e.scrollTop-e.overscanHeight,r=e.scrollTop+t+e.overscanHeight,i=this.tree.greatestLowerBound(n),a=this.tree.leastUpperBound(r),o=[],s=0;s<i;s++){var c=this.cache[s].index;if(!this.cache[s].destroyed){for(var u=c;u<c+e.blockSize&&u<e.items.length;u++)o.push(this.container._children[u]),this.container._children[u]=null;this.cache[s].destroyed=!0}}for(s=a+1;s<=this.renderedIndex;s++){c=this.cache[s].index;if(!this.cache[s].destroyed){for(u=c;u<c+e.blockSize&&u<e.items.length;u++)o.push(this.container._children[u]),this.container._children[u]=null;this.cache[s].destroyed=!0}}for(var l=BI.Widget._renderEngine.createFragment(),d=BI.Widget._renderEngine.createFragment(),p=l,s=i<0?0:i;s<=a&&s<=this.renderedIndex;s++){c=this.cache[s].index;if(this.cache[s].destroyed||(p=d),!0===this.cache[s].destroyed){for(u=c;u<c+e.blockSize&&u<e.items.length;u++){var f=this.container._addElement(u,BI.extend({root:!0},BI.stripEL(e.items[u])),this);p.appendChild(f.element[0])}this.cache[s].destroyed=!1}}this.container.element.prepend(l),this.container.element.append(d),this.topBlank.setHeight(this.tree.sumTo(Math.max(-1,i-1))),this.bottomBlank.setHeight(this.tree.sumTo(this.renderedIndex)-this.tree.sumTo(Math.min(a,this.renderedIndex))),BI.each(o,function(e,t){t&&t._destroy()})},_populate:function(e){var t=this.options;e&&this.options.items!==e&&(this.options.items=e),this.tree=BI.PrefixIntervalTree.empty(Math.ceil(t.items.length/t.blockSize)),this._calculateBlocksToRender();try{this.element.scrollTop(t.scrollTop)}catch(n){}},_clearChildren:function(){BI.each(this.container._children,function(e,t){t&&t._destroy()}),this.container._children={},this.container.attr("items",[])},restore:function(){this.renderedIndex=-1,this._clearChildren(),this.cache={},this.options.scrollTop=0,this.topBlank.setHeight(0),this.bottomBlank.setHeight(0)},populate:function(e){e&&this.options.items!==e&&this.restore(),this._populate(e)},destroyed:function(){this.restore()}}),BI.shortcut("bi.virtual_list",BI.VirtualList)},function(e,t){BI.Pager=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Pager.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-pager",behaviors:{},layouts:[{type:"bi.horizontal",hgap:10,vgap:0}],dynamicShow:!0,dynamicShowFirstLast:!1,dynamicShowPrevNext:!1,pages:!1,curr:function(){return 1},groups:0,jump:BI.emptyFn,first:!1,last:!1,prev:"上一页",next:"下一页",firstPage:1,lastPage:function(){return 1},hasPrev:BI.emptyFn,hasNext:BI.emptyFn})},_init:function(){BI.Pager.superclass._init.apply(this,arguments);this.currPage=BI.result(this.options,"curr"),this._populate()},_populate:function(){var i=this,a=this.options,e=[],t={};this.empty();var n,o=BI.result(a,"pages"),r=BI.result(this,"currPage"),s=BI.result(a,"groups"),c=BI.result(a,"first"),u=BI.result(a,"last"),l=BI.result(a,"prev"),d=BI.result(a,"next");!1===o?(s=0,u=c=!1):o<s&&(s=o),t.index=Math.ceil((r+(1<s&&s!==o?1:0))/(0===s?1:s)),(!a.dynamicShow&&!a.dynamicShowPrevNext||1<r)&&!1!==l&&(BI.isKey(l)?e.push({text:l,value:"prev",disabled:!1===o?!1===a.hasPrev(r):!(1<r&&!1!==l)}):e.push(BI.extend({disabled:!1===o?!1===a.hasPrev(r):!(1<r&&!1!==l)},l))),(!a.dynamicShow&&!a.dynamicShowFirstLast||1<t.index&&0!==s)&&c&&(e.push({text:c,value:"first",disabled:!(1<t.index&&0!==s)}),1<t.index&&0!==s&&e.push({type:"bi.label",cls:"page-ellipsis",text:"…"})),t.poor=Math.floor((s-1)/2),t.start=1<t.index?r-t.poor:1,t.end=1<t.index?(n=r+(s-t.poor-1),o<n?o:n):s,t.end-t.start<s-1&&(t.start=t.end-s+1);var p=t.start,f=t.end;for(c&&u&&1<t.index&&0!==s&&s<o&&t.end<o&&0!==s&&(p++,f--);p<=f;p++)p===r?e.push({text:p,value:p,selected:!0}):e.push({text:p,value:p});(!a.dynamicShow&&!a.dynamicShowFirstLast||s<o&&t.end<o&&0!==s)&&u&&(s<o&&t.end<o&&0!==s&&e.push({type:"bi.label",cls:"page-ellipsis",text:"…"}),e.push({text:u,value:"last",disabled:!(s<o&&t.end<o&&0!==s)})),t.flow=!l&&0===s,(!a.dynamicShow&&!a.dynamicShowPrevNext&&d||r!==o&&d||t.flow)&&e.push(BI.isKey(d)?!1===o?{text:d,value:"next",disabled:!1===a.hasNext(r)}:t.flow&&r===o?{text:d,value:"next",disabled:!0}:{text:d,value:"next",disabled:!(r!==o&&d||t.flow)}:BI.extend({disabled:!1===o?!1===a.hasNext(r):!(r!==o&&d||t.flow)},d)),this.button_group=BI.createWidget({type:"bi.button_group",element:this,items:BI.createItems(e,{cls:"bi-list-item-select bi-border-radius",height:23,hgap:10,stopPropagation:!0}),behaviors:a.behaviors,layouts:a.layouts}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(e,t,n){if(e===BI.Events.CLICK){var r=i.button_group.getValue()[0];switch(r){case"first":i.currPage=1;break;case"last":i.currPage=o;break;case"prev":i.currPage--;break;case"next":i.currPage++;break;default:i.currPage=r}a.jump.apply(i,[{pages:o,curr:i.currPage}]),i._populate(),i.fireEvent(BI.Pager.EVENT_CHANGE,n)}i.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.fireEvent(BI.Pager.EVENT_AFTER_POPULATE)},getCurrentPage:function(){return this.currPage},setAllPages:function(e){this.options.pages=e},hasPrev:function(e){e=e||1;var t=this.options;return!1===this.options.pages?t.hasPrev(e):1<e},hasNext:function(e){e=e||1;var t=this.options,n=this.options.pages;return!1===n?t.hasNext(e):e<n},setValue:function(e){var t,n,r=this.options;e=(e=e||0)<1?1:e,!1===r.pages?(t=BI.result(r,"lastPage"),n=1,this.currPage=t<e?t:e<(n=BI.result(r,"firstPage"))?n:e):(e=e>r.pages?r.pages:e,this.currPage=e),this._populate()},getValue:function(){var e=this.button_group.getValue()[0];switch(e){case"prev":return-1;case"next":return 1;case"first":return BI.MIN;case"last":return BI.MAX;default:return e}},attr:function(e,t){BI.Pager.superclass.attr.apply(this,arguments),"curr"===e&&(this.currPage=BI.result(this.options,"curr"))},populate:function(){this._populate()}}),BI.Pager.EVENT_CHANGE="EVENT_CHANGE",BI.Pager.EVENT_AFTER_POPULATE="EVENT_AFTER_POPULATE",BI.shortcut("bi.pager",BI.Pager)},function(e,t){BI.A=BI.inherit(BI.Text,{_defaultConfig:function(){var e=BI.A.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-a display-block",href:"",target:"_blank",el:null,tagName:"a"})},_init:function(){var e=this.options;BI.A.superclass._init.apply(this,arguments),this.element.attr({href:e.href,target:e.target}),e.el&&BI.createWidget(e.el,{element:this})}}),BI.shortcut("bi.a",BI.A)},function(e,t){BI.LoadingBar=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.LoadingBar.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-loading-bar bi-tips",height:30,handler:BI.emptyFn})},_init:function(){BI.LoadingBar.superclass._init.apply(this,arguments);var t=this;this.loaded=BI.createWidget({type:"bi.text_button",cls:"loading-text bi-list-item-simple",text:BI.i18nText("BI-Load_More"),width:120,handler:this.options.handler}),this.loaded.on(BI.Controller.EVENT_CHANGE,function(e){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.loading=BI.createWidget({type:"bi.layout",width:this.options.height,height:this.options.height,cls:"loading-background cursor-default"});var e=BI.createWidget({type:"bi.center_adapt",items:[this.loaded]}),n=BI.createWidget({type:"bi.center_adapt",items:[this.loading]});this.cardLayout=BI.createWidget({type:"bi.card",element:this,items:[{el:e,cardName:"loaded"},{el:n,cardName:"loading"}]}),this.invisible()},_reset:function(){this.visible(),this.loaded.setText(BI.i18nText("BI-Load_More")),this.loaded.enable()},setLoaded:function(){this._reset(),this.cardLayout.showCardByName("loaded")},setEnd:function(){this.setLoaded(),this.loaded.setText(BI.i18nText("BI-No_More_Data")),this.loaded.disable()},setLoading:function(){this._reset(),this.cardLayout.showCardByName("loading")}}),BI.shortcut("bi.loading_bar",BI.LoadingBar)},function(e,t){BI.IconButton=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.IconButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{_baseCls:(e._baseCls||"")+" bi-icon-button horizon-center",iconWidth:null,iconHeight:null})},_init:function(){BI.IconButton.superclass._init.apply(this,arguments);var e=this.options;this.element.css({textAlign:"center"}),this.icon=BI.createWidget({type:"bi.icon",width:e.iconWidth,height:e.iconHeight}),BI.isNumber(e.height)&&0<e.height&&BI.isNull(e.iconWidth)&&BI.isNull(e.iconHeight)?(this.element.css("lineHeight",e.height+"px"),BI.createWidget({type:"bi.default",element:this,items:[this.icon]})):(this.element.css("lineHeight","1"),BI.createWidget({element:this,type:"bi.center_adapt",items:[this.icon]}))},doClick:function(){BI.IconButton.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.IconButton.EVENT_CHANGE,this)}}),BI.IconButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_button",BI.IconButton)},function(e,t){BI.ImageButton=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.ImageButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-image-button",src:"",iconWidth:"100%",iconHeight:"100%"})},_init:function(){BI.ImageButton.superclass._init.apply(this,arguments);var e=this.options;this.image=BI.createWidget({type:"bi.img",width:e.iconWidth,height:e.iconHeight,src:e.src}),BI.isNumber(e.iconWidth)||BI.isNumber(e.iconHeight)?BI.createWidget({type:"bi.center_adapt",element:this,items:[this.image]}):BI.createWidget({type:"bi.adaptive",element:this,items:[this.image],scrollable:!1})},setWidth:function(e){BI.ImageButton.superclass.setWidth.apply(this,arguments),this.options.width=e},setHeight:function(e){BI.ImageButton.superclass.setHeight.apply(this,arguments),this.options.height=e},setImageWidth:function(e){this.image.setWidth(e)},setImageHeight:function(e){this.image.setHeight(e)},getImageWidth:function(){return this.image.element.width()},getImageHeight:function(){return this.image.element.height()},setSrc:function(e){this.options.src=e,this.image.setSrc(e)},getSrc:function(){return this.image.getSrc()},doClick:function(){BI.ImageButton.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.ImageButton.EVENT_CHANGE,this)}}),BI.ImageButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.image_button",BI.ImageButton)},function(e,t){BI.Button=BI.inherit(BI.BasicButton,{_const:{iconWidth:18},_defaultConfig:function(e){var t=BI.Button.superclass._defaultConfig.apply(this,arguments);return BI.extend(t,{baseCls:(t.baseCls||"")+" bi-button"+(BI.isIE()&&BI.isIE9Below()?" hack":""),minWidth:!0===e.block||!0===e.clear?0:80,height:24,shadow:!0!==e.clear,isShadowShowingOnSelected:!0,readonly:!0,iconCls:"",level:"common",block:!1,clear:!1,ghost:!1,textAlign:"center",whiteSpace:"nowrap",textWidth:null,textHeight:null,hgap:e.clear?0:10,vgap:0,tgap:0,bgap:0,lgap:0,rgap:0})},_init:function(){BI.Button.superclass._init.apply(this,arguments);var e=this.options;!BI.isNumber(e.height)||e.clear||e.block?e.clear||e.block?this.element.css({lineHeight:e.height+"px"}):this.element.css({lineHeight:e.height-2+"px"}):this.element.css({height:e.height+"px",lineHeight:e.height-2+"px"}),BI.isKey(e.iconCls)?(this.icon=BI.createWidget({type:"bi.icon_label",cls:e.iconCls,width:this._const.iconWidth,height:e.height-2,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),this.text=BI.createWidget({type:"bi.label",text:e.text,textWidth:BI.isNotNull(e.textWidth)?e.textWidth-this._const.iconWidth:null,textHeight:e.textHeight,value:e.value,height:e.height-2}),BI.createWidget({type:"bi.center_adapt",element:this,hgap:e.hgap,vgap:e.vgap,items:[{type:"bi.horizontal",columnSize:["","fill"],items:[this.icon,this.text]}]})):this.text=BI.createWidget({type:"bi.label",textAlign:e.textAlign,whiteSpace:e.whiteSpace,textWidth:e.textWidth,textHeight:e.textHeight,hgap:e.hgap,vgap:e.vgap,tgap:e.tgap,bgap:e.bgap,lgap:e.lgap,rgap:e.rgap,element:this,text:e.text,value:e.value}),!0===e.block&&this.element.addClass("block"),!0===e.clear&&this.element.addClass("clear"),!0===e.ghost&&this.element.addClass("ghost"),0<e.minWidth&&this.element.css({"min-width":e.minWidth+"px"})},doClick:function(){BI.Button.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.Button.EVENT_CHANGE,this)},setText:function(e){BI.Button.superclass.setText.apply(this,arguments),this.text.setText(e)},setValue:function(e){BI.Button.superclass.setValue.apply(this,arguments),this.isReadOnly()||this.text.setValue(e)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},destroy:function(){BI.Button.superclass.destroy.apply(this,arguments)}}),BI.shortcut("bi.button",BI.Button),BI.Button.EVENT_CHANGE="EVENT_CHANGE"},function(e,t){BI.TextButton=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.TextButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-button",textAlign:"center",whiteSpace:"nowrap",textWidth:null,textHeight:null,hgap:0,lgap:0,rgap:0,vgap:0,py:""})},_init:function(){BI.TextButton.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",element:this,textAlign:e.textAlign,whiteSpace:e.whiteSpace,textWidth:e.textWidth,textHeight:e.textHeight,width:e.width,height:e.height,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword})},doClick:function(){BI.TextButton.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.TextButton.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},setText:function(e){BI.TextButton.superclass.setText.apply(this,arguments),e=BI.isArray(e)?e.join(","):e,this.text.setText(e)},setStyle:function(e){this.text.setStyle(e)},setValue:function(e){BI.TextButton.superclass.setValue.apply(this,arguments),this.isReadOnly()||(e=BI.isArray(e)?e.join(","):e,this.text.setValue(e))}}),BI.TextButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_button",BI.TextButton)},function(e,t){BI.BlankIconIconTextItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.BlankIconIconTextItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-blank-icon-text-item",logic:{dynamic:!1},iconCls1:"close-ha-font",iconCls2:"close-ha-font",blankWidth:0,iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.BlankIconIconTextItem.superclass._init.apply(this,arguments);var e=this.options,t=(this._const,BI.createWidget({type:"bi.layout",width:e.blankWidth,height:e.height}));this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height}),this.icon1=BI.createWidget({type:"bi.icon_button",cls:e.iconCls1,forceNotSelected:!0,width:e.height,height:e.height}),this.icon2=BI.createWidget({type:"bi.icon_button",cls:e.iconCls2,forceNotSelected:!0,width:e.height,height:e.height}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",t,this.icon1,this.icon2,this.text)}))))},doClick:function(){BI.BlankIconIconTextItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.BlankIconIconTextItem.EVENT_CHANGE,this.getValue(),this)},setSelected:function(e){BI.BlankIconIconTextItem.superclass.setSelected.apply(this,arguments),this.icon1.setSelected(e),this.icon2.setSelected(e)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)}}),BI.BlankIconIconTextItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.blank_icon_icon_text_item",BI.BlankIconIconTextItem)},function(e,t){BI.BlankIconTextIconItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.BlankIconTextIconItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-blank-icon-text-icon-item",logic:{dynamic:!1},iconCls1:"close-ha-font",iconCls2:"close-ha-font",blankWidth:0,iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.BlankIconTextIconItem.superclass._init.apply(this,arguments);var e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height});var t=BI.createWidget({type:"bi.icon_label",cls:e.iconCls1,width:e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight});BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.icon_label",cls:e.iconCls2,width:e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight},top:0,bottom:0,right:0}]}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",{type:"bi.layout",width:e.blankWidth},t,this.text,{type:"bi.layout",width:e.height})}))))},doClick:function(){BI.BlankIconTextIconItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.BlankIconTextIconItem.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()}}),BI.BlankIconTextIconItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.blank_icon_text_icon_item",BI.BlankIconTextIconItem)},function(e,t){BI.BlankIconTextItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.BlankIconTextItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-blank-icon-text-item",logic:{dynamic:!1},cls:"close-ha-font",blankWidth:0,iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.BlankIconTextItem.superclass._init.apply(this,arguments);var e=this.options,t=(this._const,BI.createWidget({type:"bi.layout",width:e.blankWidth}));this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height}),this.icon=BI.createWidget({type:"bi.icon_label",width:e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",t,this.icon,this.text)}))))},doClick:function(){BI.BlankIconTextItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.BlankIconTextItem.EVENT_CHANGE,this.getValue(),this)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)}}),BI.BlankIconTextItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.blank_icon_text_item",BI.BlankIconTextItem)},function(e,t){BI.IconTextIconItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.IconTextIconItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-icon-text-icon-item",logic:{dynamic:!1},iconCls1:"close-ha-font",iconCls2:"close-ha-font",iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.IconTextIconItem.superclass._init.apply(this,arguments);var e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height});var t=BI.createWidget({type:"bi.icon_label",cls:e.iconCls1,width:e.leftIconWrapperWidth,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),n=BI.createWidget({type:"bi.layout",width:e.height});BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.icon_label",cls:e.iconCls2,width:e.rightIconWrapperWidth,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight},top:0,bottom:0,right:0}]}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",t,this.text,n)}))))},doClick:function(){BI.IconTextIconItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.IconTextIconItem.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()}}),BI.IconTextIconItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_text_icon_item",BI.IconTextIconItem)},function(e,t){BI.IconTextItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.IconTextItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-icon-text-item",direction:BI.Direction.Left,logic:{dynamic:!1},iconWrapperWidth:null,iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.IconTextItem.superclass._init.apply(this,arguments);var e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height}),this.icon=BI.createWidget({type:"bi.icon_label",width:e.iconWrapperWidth||e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(e.direction),BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection(e.direction,this.icon,this.text)}))))},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()},doClick:function(){BI.IconTextItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.IconTextItem.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)}}),BI.IconTextItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_text_item",BI.IconTextItem)},function(e,t){BI.TextIconItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.TextIconItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-icon-item",logic:{dynamic:!1},cls:"close-ha-font",iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.TextIconItem.superclass._init.apply(this,arguments);var e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height}),this.icon=BI.createWidget({type:"bi.icon_label",width:e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",this.text,this.icon)}))))},doClick:function(){BI.TextIconItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.TextIconItem.EVENT_CHANGE,this.getValue(),this)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)}}),BI.TextIconItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_icon_item",BI.TextIconItem)},function(e,t){BI.TextItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.TextItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-item",textAlign:"left",whiteSpace:"nowrap",textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.TextItem.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",element:this,textAlign:e.textAlign,whiteSpace:e.whiteSpace,textHeight:"nowrap"==e.whiteSpace?e.height:e.textHeight,height:e.height,hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,py:e.py})},doClick:function(){BI.TextItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.TextItem.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()}}),BI.TextItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_item",BI.TextItem)},function(e,t){BI.IconTextIconNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.IconTextIconNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-icon-text-icon-node",logic:{dynamic:!1},iconCls1:"close-ha-font",iconCls2:"close-ha-font",iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.IconTextIconNode.superclass._init.apply(this,arguments);var e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height});var t=BI.createWidget({type:"bi.icon_label",cls:e.iconCls1,width:e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),n=BI.createWidget({type:"bi.layout",width:e.height,height:e.height});BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.icon_label",cls:e.iconCls2,width:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight},top:0,bottom:0,right:0}]}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",t,this.text,n)}))))},doClick:function(){BI.IconTextIconNode.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.IconTextIconNode.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()}}),BI.IconTextIconNode.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_text_icon_node",BI.IconTextIconNode)},function(e,t){BI.IconTextNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.IconTextNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-icon-text-node",logic:{dynamic:!1},cls:"close-ha-font",iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.IconTextNode.superclass._init.apply(this,arguments);var e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height}),this.icon=BI.createWidget({type:"bi.icon_label",width:e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",this.icon,this.text)}))))},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()},doClick:function(){BI.IconTextNode.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.IconTextNode.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)}}),BI.IconTextNode.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_text_node",BI.IconTextNode)},function(e,t){BI.TextIconNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.TextIconNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-icon-node",logic:{dynamic:!1},cls:"close-ha-font",iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.TextIconNode.superclass._init.apply(this,arguments);var e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height}),this.icon=BI.createWidget({type:"bi.icon_label",width:e.height,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",this.text,this.icon)}))))},doClick:function(){BI.TextIconNode.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.TextIconNode.EVENT_CHANGE,this.getValue(),this)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)}}),BI.TextIconNode.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_icon_node",BI.TextIconNode)},function(e,t){BI.TextNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.TextNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-node",textAlign:"left",whiteSpace:"nowrap",textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.TextNode.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",element:this,textAlign:e.textAlign,whiteSpace:e.whiteSpace,textHeight:"nowrap"==e.whiteSpace?e.height:e.textHeight,height:e.height,hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,py:e.py})},doClick:function(){BI.TextNode.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.TextNode.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()}}),BI.TextNode.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_node",BI.TextNode)},function(e,t){BI.Editor=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.Editor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-editor bi-focus-shadow",hgap:4,vgap:2,lgap:0,rgap:0,tgap:0,bgap:0,tipType:"warning",inputType:"text",validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!1,watermark:"",errorText:""})},_init:function(){BI.Editor.superclass._init.apply(this,arguments);var t=this,e=this.options,n=e.autocomplete?" autocomplete="+e.autocomplete:"";this.editor=this.addWidget(BI.createWidget({type:"bi.input",element:"<input type='"+e.inputType+"'"+n+" />",root:!0,value:e.value,watermark:e.watermark,validationChecker:e.validationChecker,quitChecker:e.quitChecker,allowBlank:e.allowBlank})),this.editor.element.css({width:"100%",height:"100%",border:"none",outline:"none",padding:"0",margin:"0"});var r=[{el:{type:"bi.absolute",ref:function(e){t.contentWrapper=e},items:[{el:this.editor,left:0,right:0,top:0,bottom:0}]},left:e.hgap+e.lgap,right:e.hgap+e.rgap,top:e.vgap+e.tgap,bottom:e.vgap+e.bgap}];BI.createWidget({type:"bi.absolute",element:this,items:r}),this.setWaterMark(this.options.watermark),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Input.EVENT_FOCUS,function(){t._checkError(),t.element.addClass("bi-editor-focus"),t.fireEvent(BI.Editor.EVENT_FOCUS,arguments)}),this.editor.on(BI.Input.EVENT_BLUR,function(){t._setErrorVisible(!1),t.element.removeClass("bi-editor-focus"),t.fireEvent(BI.Editor.EVENT_BLUR,arguments)}),this.editor.on(BI.Input.EVENT_CLICK,function(){t.fireEvent(BI.Editor.EVENT_CLICK,arguments)}),this.editor.on(BI.Input.EVENT_CHANGE,function(){t.fireEvent(BI.Editor.EVENT_CHANGE,arguments)}),this.editor.on(BI.Input.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.Editor.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.Input.EVENT_QUICK_DOWN,function(e){e.keyCode!==BI.KeyCode.TAB&&t.watermark&&t.watermark.invisible()}),this.editor.on(BI.Input.EVENT_VALID,function(){t._checkWaterMark(),t._setErrorVisible(!1),t.fireEvent(BI.Editor.EVENT_VALID,arguments)}),this.editor.on(BI.Input.EVENT_ERROR,function(){t._checkWaterMark(),t.fireEvent(BI.Editor.EVENT_ERROR,arguments),t._setErrorVisible(t.isEditing())}),this.editor.on(BI.Input.EVENT_RESTRICT,function(){t._checkWaterMark();var e=t._setErrorVisible(!0);e&&e.element.fadeOut(100,function(){e.element.fadeIn(100)}),t.fireEvent(BI.Editor.EVENT_RESTRICT,arguments)}),this.editor.on(BI.Input.EVENT_EMPTY,function(){t._checkWaterMark(),t.fireEvent(BI.Editor.EVENT_EMPTY,arguments)}),this.editor.on(BI.Input.EVENT_ENTER,function(){t.fireEvent(BI.Editor.EVENT_ENTER,arguments)}),this.editor.on(BI.Input.EVENT_SPACE,function(){t.fireEvent(BI.Editor.EVENT_SPACE,arguments)}),this.editor.on(BI.Input.EVENT_BACKSPACE,function(){t.fireEvent(BI.Editor.EVENT_BACKSPACE,arguments)}),this.editor.on(BI.Input.EVENT_REMOVE,function(){t.fireEvent(BI.Editor.EVENT_REMOVE,arguments)}),this.editor.on(BI.Input.EVENT_START,function(){t.fireEvent(BI.Editor.EVENT_START,arguments)}),this.editor.on(BI.Input.EVENT_PAUSE,function(){t.fireEvent(BI.Editor.EVENT_PAUSE,arguments)}),this.editor.on(BI.Input.EVENT_STOP,function(){t.fireEvent(BI.Editor.EVENT_STOP,arguments)}),this.editor.on(BI.Input.EVENT_CONFIRM,function(){t.fireEvent(BI.Editor.EVENT_CONFIRM,arguments)}),this.editor.on(BI.Input.EVENT_CHANGE_CONFIRM,function(){t.fireEvent(BI.Editor.EVENT_CHANGE_CONFIRM,arguments)}),this.element.click(function(e){return e.stopPropagation(),!1}),(BI.isKey(this.options.value)||BI.isEmptyString(this.options.value))&&this._checkError(),this._checkWaterMark()},_checkToolTip:function(){var e=this.options.errorText;BI.isFunction(e)&&(e=e(this.editor.getValue())),BI.isKey(e)&&(!this.isEnabled()||this.isValid()||BI.Bubbles.has(this.getName())&&BI.Bubbles.get(this.getName()).isVisible()?this.setTitle(""):this.setTitle(e))},_assertWaterMark:function(){var t=this,e=this.options;BI.isNull(this.watermark)&&(this.watermark=BI.createWidget({type:"bi.label",cls:"bi-water-mark",text:this.options.watermark,height:e.height-2*e.vgap-e.tgap,whiteSpace:"nowrap",textAlign:"left"}),this.watermark.element.bind({mousedown:function(e){t.isEnabled()?t.editor.isEditing()||t.editor.focus():t.editor.isEditing()&&t.editor.blur(),e.stopEvent()}}),this.watermark.element.bind("click",function(e){t.isEnabled()?t.editor.isEditing()||t.editor.focus():t.editor.isEditing()&&t.editor.blur(),e.stopEvent()}))},_checkError:function(){this._setErrorVisible(this.isEnabled()&&!this.isValid()),this._checkToolTip()},_checkWaterMark:function(){var e=this.options;!this.disabledWaterMark&&""===this.editor.getValue()&&BI.isKey(e.watermark)?this.watermark&&this.watermark.visible():this.watermark&&this.watermark.invisible()},setErrorText:function(e){this.options.errorText=e},getErrorText:function(){return this.options.errorText},setWaterMark:function(e){BI.isKey(e)&&(this.options.watermark=e,BI.isNull(this.watermark)&&(this._assertWaterMark(),BI.createWidget({type:"bi.absolute",element:this.contentWrapper,items:[{el:this.watermark,left:3,right:3,top:0,bottom:0}]})),this.watermark.setText(e))},_setErrorVisible:function(e){var t=this.options.errorText;if(BI.isFunction(t)&&(t=t(BI.trim(this.editor.getValue()))),!this.disabledError&&BI.isKey(t))return BI.Bubbles[e?"show":"hide"](this.getName(),t,this,{adjustYOffset:2}),this._checkToolTip(),BI.Bubbles.get(this.getName())},disableError:function(){this.disabledError=!0,this._checkError()},enableError:function(){this.disabledError=!1,this._checkError()},disableWaterMark:function(){this.disabledWaterMark=!0,this._checkWaterMark()},enableWaterMark:function(){this.disabledWaterMark=!1,this._checkWaterMark()},focus:function(){this.element.addClass("text-editor-focus"),this.editor.focus()},blur:function(){this.element.removeClass("text-editor-focus"),this.editor.blur()},selectAll:function(){this.editor.selectAll()},onKeyDown:function(e){this.editor.onKeyDown(e)},setValue:function(e){BI.Editor.superclass.setValue.apply(this,arguments),this.editor.setValue(e),this._checkError(),this._checkWaterMark()},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},getValue:function(){return this.isValid()?BI.trim(this.editor.getValue()):BI.trim(this.editor.getLastValidValue())},isEditing:function(){return this.editor.isEditing()},isValid:function(){return this.editor.isValid()},destroyed:function(){BI.Bubbles.remove(this.getName())}}),BI.Editor.EVENT_CHANGE="EVENT_CHANGE",BI.Editor.EVENT_FOCUS="EVENT_FOCUS",BI.Editor.EVENT_BLUR="EVENT_BLUR",BI.Editor.EVENT_CLICK="EVENT_CLICK",BI.Editor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.Editor.EVENT_SPACE="EVENT_SPACE",BI.Editor.EVENT_BACKSPACE="EVENT_BACKSPACE",BI.Editor.EVENT_START="EVENT_START",BI.Editor.EVENT_PAUSE="EVENT_PAUSE",BI.Editor.EVENT_STOP="EVENT_STOP",BI.Editor.EVENT_CONFIRM="EVENT_CONFIRM",BI.Editor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.Editor.EVENT_VALID="EVENT_VALID",BI.Editor.EVENT_ERROR="EVENT_ERROR",BI.Editor.EVENT_ENTER="EVENT_ENTER",BI.Editor.EVENT_RESTRICT="EVENT_RESTRICT",BI.Editor.EVENT_REMOVE="EVENT_REMOVE",BI.Editor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.editor",BI.Editor)},function(e,t){BI.MultifileEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.MultifileEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-multifile-editor",multiple:!1,maxSize:-1,accept:"",url:""})},_init:function(){var e=this,t=this.options;BI.MultifileEditor.superclass._init.apply(this,arguments),this.file=BI.createWidget({type:"bi.file",cls:"multifile-editor",width:"100%",height:"100%",name:t.name,url:t.url,multiple:t.multiple,accept:t.accept,maxSize:t.maxSize,maxLength:t.maxLength,title:t.title}),this.file.on(BI.File.EVENT_CHANGE,function(){e.fireEvent(BI.MultifileEditor.EVENT_CHANGE,arguments)}),this.file.on(BI.File.EVENT_UPLOADSTART,function(){e.fireEvent(BI.MultifileEditor.EVENT_UPLOADSTART,arguments)}),this.file.on(BI.File.EVENT_ERROR,function(){e.fireEvent(BI.MultifileEditor.EVENT_ERROR,arguments)}),this.file.on(BI.File.EVENT_PROGRESS,function(){e.fireEvent(BI.MultifileEditor.EVENT_PROGRESS,arguments)}),this.file.on(BI.File.EVENT_UPLOADED,function(){e.fireEvent(BI.MultifileEditor.EVENT_UPLOADED,arguments)}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.adaptive",scrollable:!1,items:[this.file]},top:0,right:0,left:0,bottom:0}]})},_reset:function(){this.file.reset()},select:function(){this.file.select()},getValue:function(){return this.file.getValue()},upload:function(){this._reset(),this.file.upload()},reset:function(){this._reset()}}),BI.MultifileEditor.EVENT_CHANGE="EVENT_CHANGE",BI.MultifileEditor.EVENT_UPLOADSTART="EVENT_UPLOADSTART",BI.MultifileEditor.EVENT_ERROR="EVENT_ERROR",BI.MultifileEditor.EVENT_PROGRESS="EVENT_PROGRESS",BI.MultifileEditor.EVENT_UPLOADED="EVENT_UPLOADED",BI.shortcut("bi.multifile_editor",BI.MultifileEditor)},function(e,t){BI.TextAreaEditor=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.TextAreaEditor.superclass._defaultConfig.apply(),{baseCls:"bi-textarea-editor",value:"",errorText:"",validationChecker:function(){return!0}})},render:function(){var e=this.options,t=this;this.content=BI.createWidget({type:"bi.layout",tagName:"textarea",width:"100%",height:"100%",cls:"bi-textarea textarea-editor-content display-block"}),this.content.element.css({resize:"none"}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.adaptive",items:[this.content]},left:4,right:4,top:4,bottom:4}]}),this.content.element.on("input propertychange",function(e){t._checkError(),t._checkWaterMark(),t.fireEvent(BI.TextAreaEditor.EVENT_CHANGE)}),this.content.element.focus(function(){t._checkError(),t._focus(),t.fireEvent(BI.TextAreaEditor.EVENT_FOCUS),BI.Widget._renderEngine.createElement(document).bind("mousedown."+t.getName(),function(e){BI.DOM.isExist(t)&&!t.element.__isMouseInBounds__(e)&&(BI.Widget._renderEngine.createElement(document).unbind("mousedown."+t.getName()),t.content.element.blur())})}),this.content.element.blur(function(){t._setErrorVisible(!1),t._blur(),t.fireEvent(BI.TextAreaEditor.EVENT_BLUR),BI.Widget._renderEngine.createElement(document).unbind("mousedown."+t.getName())}),BI.isKey(e.value)&&this.setValue(e.value),BI.isNotNull(e.style)&&this.setStyle(e.style),this._checkWaterMark()},_checkWaterMark:function(){var e=this,t=this.options,n=this.getValue();BI.isNotEmptyString(n)?(this.watermark&&this.watermark.destroy(),this.watermark=null):BI.isNotEmptyString(t.watermark)&&(this.watermark?(this.watermark.setText(t.watermark),this.watermark.setValid(!t.invalid),this.watermark.setEnable(!t.disabled)):(this.watermark=BI.createWidget({type:"bi.text_button",cls:"bi-water-mark cursor-default textarea-watermark",textAlign:"left",whiteSpace:"normal",text:t.watermark,invalid:t.invalid,disabled:t.disabled,hgap:4,vgap:4}),this.watermark.on(BI.TextButton.EVENT_CHANGE,function(){e.focus()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.watermark,left:0,top:0,right:0}]})))},_checkError:function(){this._setErrorVisible(this.isEnabled()&&!this.options.validationChecker(this.getValue()))},_focus:function(){this.content.element.addClass("textarea-editor-focus"),this._checkWaterMark()},_blur:function(){this.content.element.removeClass("textarea-editor-focus"),this._checkWaterMark()},_setErrorVisible:function(e){var t=this.options.errorText;if(BI.isFunction(t)&&(t=t(BI.trim(this.getValue()))),!this.disabledError&&BI.isKey(t))return BI.Bubbles[e?"show":"hide"](this.getName(),t,this,{adjustYOffset:2}),BI.Bubbles.get(this.getName())},focus:function(){this._focus(),this.content.element.focus()},blur:function(){this._blur(),this.content.element.blur()},getValue:function(){return this.content.element.val()},setValue:function(e){this.content.element.val(e),this._checkError(),this._checkWaterMark()},setStyle:function(e){this.style=e,this.element.css(e),this.content.element.css(BI.extend({},e,{color:e.color||BI.DOM.getContrastColor(BI.DOM.isRGBColor(e.backgroundColor)?BI.DOM.rgb2hex(e.backgroundColor):e.backgroundColor)}))},getStyle:function(){return this.style},setWatermark:function(e){this.options.watermark=e,this._checkWaterMark()},_setValid:function(e){BI.TextAreaEditor.superclass._setValid.apply(this,arguments)},_setEnable:function(e){BI.TextAreaEditor.superclass._setEnable.apply(this,[e]),this.content&&(this.content.element[0].disabled=!e)}}),BI.TextAreaEditor.EVENT_CHANGE="EVENT_CHANGE",BI.TextAreaEditor.EVENT_BLUR="EVENT_BLUR",BI.TextAreaEditor.EVENT_FOCUS="EVENT_FOCUS",BI.shortcut("bi.textarea_editor",BI.TextAreaEditor)},function(e,t){BI.Html=BI.inherit(BI.Single,{props:{baseCls:"bi-html",textAlign:"left",whiteSpace:"normal",lineHeight:null,handler:null,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,text:"",highLight:!1},render:function(){var e=this,t=this.options;0<t.hgap+t.lgap&&this.element.css({"padding-left":t.hgap+t.lgap+"px"}),0<t.hgap+t.rgap&&this.element.css({"padding-right":t.hgap+t.rgap+"px"}),0<t.vgap+t.tgap&&this.element.css({"padding-top":t.vgap+t.tgap+"px"}),0<t.vgap+t.bgap&&this.element.css({"padding-bottom":t.vgap+t.bgap+"px"}),BI.isNumber(t.height)&&this.element.css({lineHeight:t.height+"px"}),BI.isNumber(t.lineHeight)&&this.element.css({lineHeight:t.lineHeight+"px"}),BI.isWidthOrHeight(t.maxWidth)&&this.element.css({maxWidth:t.maxWidth}),this.element.css({textAlign:t.textAlign,whiteSpace:t.whiteSpace,textOverflow:"nowrap"===t.whiteSpace?"ellipsis":"",overflow:"nowrap"===t.whiteSpace?"":"auto"}),t.handler?(this.text=BI.createWidget({type:"bi.layout",tagName:"span"}),this.text.element.click(function(){t.handler(e.getValue())}),BI.createWidget({type:"bi.default",element:this,items:[this.text]})):this.text=this,BI.isKey(t.text)?this.setText(t.text):BI.isKey(t.value)&&this.setText(t.value),t.highLight&&this.doHighLight()},doHighLight:function(){this.text.element.addClass("bi-high-light")},unHighLight:function(){this.text.element.removeClass("bi-high-light")},setValue:function(e){BI.Html.superclass.setValue.apply(this,arguments),this.isReadOnly()||this.setText(e)},setStyle:function(e){this.text.element.css(e)},setText:function(e){BI.Html.superclass.setText.apply(this,arguments),this.options.text=e,this.text.element.html(e)}}),BI.shortcut("bi.html",BI.Html)},function(e,t){BI.Icon=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.Icon.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{tagName:"i",baseCls:(e.baseCls||"")+" x-icon b-font horizon-center display-block"})},_init:function(){BI.Icon.superclass._init.apply(this,arguments),BI.isIE9Below&&BI.isIE9Below()&&this.element.addClass("hack")}}),BI.shortcut("bi.icon",BI.Icon)},function(e,t){BI.Iframe=BI.inherit(BI.Single,{_defaultConfig:function(e){var t=BI.Iframe.superclass._defaultConfig.apply(this,arguments);return BI.extend(t,{tagName:"iframe",baseCls:(t.baseCls||"")+" bi-iframe",src:"",name:"",attributes:{},width:"100%",height:"100%"})},_init:function(){var e=this;BI.Iframe.superclass._init.apply(this,arguments),this.element.on("load",function(){e.fireEvent("EVENT_LOADED")})},_initProps:function(){BI.Iframe.superclass._initProps.apply(this,arguments);var e=this.options;this.options.attributes=BI.extend({frameborder:0,src:e.src,name:e.name},this.options.attributes)},setSrc:function(e){this.options.src=e,this.element.attr("src",e)},getSrc:function(){return this.options.src},setName:function(e){this.options.name=e,this.element.attr("name",e)},getName:function(){return this.options.name}}),BI.shortcut("bi.iframe",BI.Iframe)},function(e,t){BI.Img=BI.inherit(BI.Single,{_defaultConfig:function(e){var t=BI.Img.superclass._defaultConfig.apply(this,arguments);return BI.extend(t,{tagName:"img",baseCls:(t.baseCls||"")+" bi-img display-block",src:"",attributes:e.src?{src:e.src}:{},width:"100%",height:"100%"})},_initProps:function(){BI.Img.superclass._initProps.apply(this,arguments);var e=this.options;this.options.attributes=BI.extend({src:e.src},this.options.attributes)},setSrc:function(e){this.options.src=e,this.element.attr("src",e)},getSrc:function(){return this.options.src}}),BI.shortcut("bi.img",BI.Img)},function(e,t){BI.ImageCheckbox=BI.inherit(BI.IconButton,{_defaultConfig:function(){var e=BI.ImageCheckbox.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-image-checkbox check-box-icon",selected:!1,handler:BI.emptyFn,width:16,height:16,iconWidth:16,iconHeight:16})}}),BI.ImageCheckbox.EVENT_CHANGE=BI.IconButton.EVENT_CHANGE,BI.shortcut("bi.image_checkbox",BI.ImageCheckbox)},function(e,t){BI.Checkbox=BI.inherit(BI.BasicButton,{props:{baseCls:"bi-checkbox",selected:!1,handler:BI.emptyFn,width:16,height:16,iconWidth:16,iconHeight:16},render:function(){var t=this,e=this.options;return{type:"bi.center_adapt",items:[{type:"bi.default",ref:function(e){t.checkbox=e},cls:"checkbox-content",width:e.iconWidth-2,height:e.iconHeight-2}]}},_setEnable:function(e){BI.Checkbox.superclass._setEnable.apply(this,arguments),!0===e?this.checkbox.element.removeClass("base-disabled disabled"):this.checkbox.element.addClass("base-disabled disabled")},doClick:function(){BI.Checkbox.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.Checkbox.EVENT_CHANGE)},setSelected:function(e){BI.Checkbox.superclass.setSelected.apply(this,arguments),e?this.checkbox.element.addClass("bi-high-light-background"):this.checkbox.element.removeClass("bi-high-light-background")}}),BI.Checkbox.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.checkbox",BI.Checkbox)},function(e,t){BI.Input=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.Input.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-input display-block overflow-dot",tagName:"input",validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!1})},_init:function(){BI.Input.superclass._init.apply(this,arguments);var n=this,t=!1,r=null,i=!1,a=BI.debounce(function(e){n.onKeyDown(e,t),n._keydown_=!1},300),o=BI.debounce(BI.bind(this._click,this),BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1});this._focusDebounce=BI.debounce(BI.bind(this._focus,this),BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1}),this._blurDebounce=BI.debounce(BI.bind(this._blur,this),BI.EVENT_RESPONSE_TIME,{leading:!0,trailing:!1}),this.element.keydown(function(e){i=!1,t=e.ctrlKey||e.metaKey,r=e.keyCode,n.fireEvent(BI.Input.EVENT_QUICK_DOWN,arguments)}).keyup(function(e){r=null,i&&e.keyCode===BI.KeyCode.ENTER||(n._keydown_=!0,a(e.keyCode))}).on("input propertychange",function(e){var t=e.originalEvent;!BI.isNull(t.propertyName)&&"value"!==t.propertyName||(i=!0,n._keydown_=!0,a(r),r=null)}).click(function(e){e.stopPropagation(),o()}).mousedown(function(e){n.element.val(n.element.val())}).focus(function(e){n._focusDebounce()}).blur(function(e){n._blurDebounce()}),(BI.isKey(this.options.value)||BI.isEmptyString(this.options.value))&&this.setValue(this.options.value)},_focus:function(){this.element.addClass("bi-input-focus"),this._checkValidationOnValueChange(),this._isEditing=!0,""==this.getValue()&&(this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EMPTY,this.getValue(),this),this.fireEvent(BI.Input.EVENT_EMPTY)),this.fireEvent(BI.Input.EVENT_FOCUS)},_blur:function(){var t=this;function e(){var e;t.isValid()||!1===t.options.quitChecker.apply(t,[BI.trim(t.getValue())])||(t.element.val(t._lastValidValue?t._lastValidValue:""),t._checkValidationOnValueChange(),t._defaultState()),t.element.removeClass("bi-input-focus"),t._isEditing=!1,t._start=!1,t.isValid()&&(e=t._lastValidValue,t._lastValidValue=t.getValue(),t.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.CONFIRM,t.getValue(),t),t.fireEvent(BI.Input.EVENT_CONFIRM),t._lastValidValue!==e&&t.fireEvent(BI.Input.EVENT_CHANGE_CONFIRM)),t.fireEvent(BI.Input.EVENT_BLUR)}!0===t._keydown_?BI.delay(e,300):e()},_click:function(){!0!==this._isEditing&&(this.selectAll(),this.fireEvent(BI.Input.EVENT_CLICK))},onClick:function(){this._click()},onKeyDown:function(e,t){this.isValid()&&BI.trim(this._lastChangedValue)===BI.trim(this.getValue())||this._checkValidationOnValueChange(),this.isValid()&&""!==BI.trim(this.getValue())&&((BI.trim(this.getValue())===this._lastValue||this._start&&null!=this._lastValue&&""!==this._lastValue)&&(!0!==this._pause||/(\s|\u00A0)$/.test(this.getValue()))||(this._start=!0,this._pause=!1,this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.STARTEDIT,this.getValue(),this),this.fireEvent(BI.Input.EVENT_START))),e==BI.KeyCode.ENTER&&(this.isValid()||!1!==this.options.quitChecker.apply(this,[BI.trim(this.getValue())])?(this.blur(),this.fireEvent(BI.Input.EVENT_ENTER)):this.fireEvent(BI.Input.EVENT_RESTRICT)),e==BI.KeyCode.SPACE&&this.fireEvent(BI.Input.EVENT_SPACE),e==BI.KeyCode.BACKSPACE&&""==this._lastValue&&this.fireEvent(BI.Input.EVENT_REMOVE),e!=BI.KeyCode.BACKSPACE&&e!=BI.KeyCode.DELETE||this.fireEvent(BI.Input.EVENT_BACKSPACE),this.fireEvent(BI.Input.EVENT_KEY_DOWN,arguments);var n=this._lastValue;BI.trim(this.getValue())!==BI.trim(this._lastValue||"")&&this._valueChange(),BI.isEndWithBlank(this.getValue())?(this._pause=!0,this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.PAUSE,"",this),this.fireEvent(BI.Input.EVENT_PAUSE),this._defaultState()):e!==BI.KeyCode.BACKSPACE&&e!==BI.KeyCode.DELETE||""!==BI.trim(this.getValue())||null===n||""===BI.trim(n)||(this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.STOPEDIT,this.getValue(),this),this.fireEvent(BI.Input.EVENT_STOP))},_defaultState:function(){""==this.getValue()&&(this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EMPTY,this.getValue(),this),this.fireEvent(BI.Input.EVENT_EMPTY)),this._lastValue=this.getValue(),this._lastSubmitValue=null},_valueChange:function(){this.isValid()&&BI.trim(this.getValue())!==this._lastSubmitValue&&(this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.CHANGE,this.getValue(),this),this.fireEvent(BI.Input.EVENT_CHANGE),this._lastSubmitValue=BI.trim(this.getValue())),""==this.getValue()&&(this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.EMPTY,this.getValue(),this),this.fireEvent(BI.Input.EVENT_EMPTY)),this._lastValue=this.getValue()},_checkValidationOnValueChange:function(){var e=this.options,t=this.getValue();this.setValid(!0===e.allowBlank&&""==BI.trim(t)||BI.isNotEmptyString(BI.trim(t))&&!1!==e.validationChecker.apply(this,[BI.trim(t)]))},focus:function(){if(!this.element.is(":visible"))throw new Error("input输入框在不可见下不能focus");!0==!this._isEditing&&(this.element.focus(),this.selectAll())},blur:function(){if(!this.element.is(":visible"))throw new Error("input输入框在不可见下不能blur");!0===this._isEditing&&(this.element.blur(),this._blurDebounce())},selectAll:function(){if(!this.element.is(":visible"))throw new Error("input输入框在不可见下不能select");this.element.select(),this._isEditing=!0},setValue:function(e){this.element.val(e),BI.nextTick(BI.bind(function(){this._checkValidationOnValueChange(),this._defaultState(),this.isValid()&&(this._lastValidValue=this._lastSubmitValue=this.getValue())},this))},getValue:function(){return this.element.val()||""},isEditing:function(){return this._isEditing},getLastValidValue:function(){return this._lastValidValue},getLastChangedValue:function(){return this._lastChangedValue},_setValid:function(){BI.Input.superclass._setValid.apply(this,arguments),this.isValid()?(this._lastChangedValue=this.getValue(),this.element.removeClass("bi-input-error"),this.fireEvent(BI.Input.EVENT_VALID,BI.trim(this.getValue()),this)):(this._lastChangedValue===this.getValue()&&(this._lastChangedValue=null),this.element.addClass("bi-input-error"),this.fireEvent(BI.Input.EVENT_ERROR,BI.trim(this.getValue()),this))},_setEnable:function(e){BI.Input.superclass._setEnable.apply(this,[e]),this.element[0].disabled=!e}}),BI.Input.EVENT_CHANGE="EVENT_CHANGE",BI.Input.EVENT_FOCUS="EVENT_FOCUS",BI.Input.EVENT_CLICK="EVENT_CLICK",BI.Input.EVENT_BLUR="EVENT_BLUR",BI.Input.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.Input.EVENT_QUICK_DOWN="EVENT_QUICK_DOWN",BI.Input.EVENT_SPACE="EVENT_SPACE",BI.Input.EVENT_BACKSPACE="EVENT_BACKSPACE",BI.Input.EVENT_START="EVENT_START",BI.Input.EVENT_PAUSE="EVENT_PAUSE",BI.Input.EVENT_STOP="EVENT_STOP",BI.Input.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.Input.EVENT_CONFIRM="EVENT_CONFIRM",BI.Input.EVENT_REMOVE="EVENT_REMOVE",BI.Input.EVENT_EMPTY="EVENT_EMPTY",BI.Input.EVENT_VALID="EVENT_VALID",BI.Input.EVENT_ERROR="EVENT_ERROR",BI.Input.EVENT_ENTER="EVENT_ENTER",BI.Input.EVENT_RESTRICT="EVENT_RESTRICT",BI.shortcut("bi.input",BI.Input)},function(e,t){BI.ImageRadio=BI.inherit(BI.IconButton,{_defaultConfig:function(){var e=BI.ImageRadio.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-radio radio-icon",selected:!1,handler:BI.emptyFn,width:16,height:16,iconWidth:16,iconHeight:16})},_init:function(){BI.ImageRadio.superclass._init.apply(this,arguments)},doClick:function(){BI.ImageRadio.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.ImageRadio.EVENT_CHANGE)}}),BI.ImageRadio.EVENT_CHANGE=BI.IconButton.EVENT_CHANGE,BI.shortcut("bi.image_radio",BI.ImageRadio)},function(e,t){BI.Radio=BI.inherit(BI.BasicButton,{props:{baseCls:"bi-radio",selected:!1,handler:BI.emptyFn,width:16,height:16,iconWidth:14,iconHeight:14},render:function(){var t=this,e=this.options;return{type:"bi.center_adapt",element:this.element,items:[{type:"bi.layout",cls:"radio-content",ref:function(e){t.radio=e},width:e.iconWidth,height:e.iconHeight}]}},_setEnable:function(e){BI.Radio.superclass._setEnable.apply(this,arguments),!0===e?this.radio.element.removeClass("base-disabled disabled"):this.radio.element.addClass("base-disabled disabled")},doClick:function(){BI.Radio.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.Radio.EVENT_CHANGE)},setSelected:function(e){BI.Radio.superclass.setSelected.apply(this,arguments),e?this.radio.element.addClass("bi-high-light-background"):this.radio.element.removeClass("bi-high-light-background")}}),BI.Radio.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.radio",BI.Radio)},function(e,t){BI.AbstractLabel=BI.inherit(BI.Single,{_defaultConfig:function(e){var t=BI.AbstractLabel.superclass._defaultConfig.apply(this,arguments);return BI.extend(t,{textAlign:"center",whiteSpace:"nowrap",textWidth:null,textHeight:null,hgap:0,vgap:0,lgap:0,rgap:0,tgap:0,bgap:0,highLight:!1,handler:null})},_createJson:function(){var e=this.options;return{type:"bi.text",textAlign:e.textAlign,whiteSpace:e.whiteSpace,lineHeight:e.textHeight,text:e.text,value:e.value,py:e.py,keyword:e.keyword,highLight:e.highLight,handler:e.handler}},_init:function(){BI.AbstractLabel.superclass._init.apply(this,arguments),"center"===this.options.textAlign?this._createCenterEl():this._createNotCenterEl()},_createCenterEl:function(){var e=this.options,t=this._createJson();return t.textAlign="left",BI.isNumber(e.width)&&0<e.width?BI.isNumber(e.textWidth)&&0<e.textWidth?(t.maxWidth=e.textWidth,BI.isNumber(e.height)&&0<e.height?void BI.createWidget({type:"bi.center_adapt",height:e.height,scrollable:"normal"===e.whiteSpace,element:this,items:[{el:this.text=BI.createWidget(t)}]}):void BI.createWidget({type:"bi.center_adapt",scrollable:"normal"===e.whiteSpace,element:this,items:[{el:this.text=BI.createWidget(t)}]})):"normal"==e.whiteSpace?(BI.extend(t,{hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap}),this.text=BI.createWidget(t),void BI.createWidget({type:"bi.center_adapt",scrollable:"normal"===e.whiteSpace,element:this,items:[this.text]})):BI.isNumber(e.height)&&0<e.height?(this.element.css({"line-height":e.height+"px"}),t.textAlign=e.textAlign,void(this.text=BI.createWidget(BI.extend(t,{element:this,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap})))):(BI.extend(t,{hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,maxWidth:"100%"}),this.text=BI.createWidget(t),void BI.createWidget({type:"bi.center_adapt",scrollable:"normal"===e.whiteSpace,element:this,items:[this.text]})):BI.isNumber(e.textWidth)&&0<e.textWidth?(t.maxWidth=e.textWidth,void BI.createWidget({type:"bi.center_adapt",scrollable:"normal"===e.whiteSpace,element:this,items:[{el:this.text=BI.createWidget(t)}]})):"normal"==e.whiteSpace?(BI.extend(t,{hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap}),this.text=BI.createWidget(t),void BI.createWidget({type:"bi.center_adapt",scrollable:!0,element:this,items:[this.text]})):BI.isNumber(e.height)&&0<e.height?(this.element.css({"line-height":e.height+"px"}),t.textAlign=e.textAlign,void(this.text=BI.createWidget(BI.extend(t,{element:this,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap})))):(BI.extend(t,{hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap}),this.text=BI.createWidget(BI.extend(t,{maxWidth:"100%"})),void BI.createWidget({type:"bi.center_adapt",element:this,items:[this.text]}))},_createNotCenterEl:function(){var e=this.options,t="bi.vertical_adapt",n=this._createJson();return BI.isNumber(e.width)&&0<e.width?BI.isNumber(e.textWidth)&&0<e.textWidth?(n.width=e.textWidth,BI.isNumber(e.height)&&0<e.height?void BI.createWidget({type:t,horizontalAlign:e.textAlign,height:e.height,scrollable:"normal"===e.whiteSpace,element:this,items:[{el:this.text=BI.createWidget(n)}]}):void BI.createWidget({type:t,horizontalAlign:e.textAlign,scrollable:"normal"===e.whiteSpace,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,element:this,items:[{el:this.text=BI.createWidget(n)}]})):BI.isNumber(e.height)&&0<e.height?(this.text=BI.createWidget(BI.extend(n,{element:this,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap})),void("normal"!==e.whiteSpace&&this.element.css({"line-height":e.height-2*e.vgap+"px"}))):(n.width=e.width-2*e.hgap-e.lgap-e.rgap,void BI.createWidget({type:t,horizontalAlign:e.textAlign,scrollable:"normal"===e.whiteSpace,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,element:this,items:[{el:this.text=BI.createWidget(n)}]})):BI.isNumber(e.textWidth)&&0<e.textWidth?(n.width=e.textWidth,void BI.createWidget({type:t,horizontalAlign:e.textAlign,scrollable:"normal"===e.whiteSpace,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,element:this,items:[{el:this.text=BI.createWidget(n)}]})):BI.isNumber(e.height)&&0<e.height?("normal"!==e.whiteSpace&&this.element.css({"line-height":e.height-2*e.vgap+"px"}),void(this.text=BI.createWidget(BI.extend(n,{element:this,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap})))):(BI.extend(n,{hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap}),this.text=BI.createWidget(BI.extend(n,{maxWidth:"100%"})),void BI.createWidget({type:t,horizontalAlign:e.textAlign,element:this,scrollable:"normal"===e.whiteSpace,items:[this.text]}))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},setText:function(e){this.options.text=e,this.text.setText(e)},getText:function(){return this.options.text},setStyle:function(e){this.text.setStyle(e)},setValue:function(e){BI.AbstractLabel.superclass.setValue.apply(this,arguments),this.isReadOnly()||this.text.setValue(e)},populate:function(){BI.AbstractLabel.superclass.populate.apply(this,arguments)}})},function(e,t){BI.HtmlLabel=BI.inherit(BI.AbstractLabel,{props:{baseCls:"bi-html-label"},_createJson:function(){var e=this.options;return{type:"bi.html",textAlign:e.textAlign,whiteSpace:e.whiteSpace,lineHeight:e.textHeight,text:e.text,value:e.value,handler:e.handler}}}),BI.shortcut("bi.html_label",BI.HtmlLabel)},function(e,t){BI.IconLabel=BI.inherit(BI.Single,{props:{baseCls:"bi-icon-label horizon-center",iconWidth:null,iconHeight:null},_init:function(){BI.IconLabel.superclass._init.apply(this,arguments);var e=this.options;this.element.css({textAlign:"center"}),this.icon=BI.createWidget({type:"bi.icon",width:e.iconWidth,height:e.iconHeight}),BI.isNumber(e.height)&&0<e.height&&BI.isNull(e.iconWidth)&&BI.isNull(e.iconHeight)?(this.element.css("lineHeight",e.height+"px"),BI.createWidget({type:"bi.default",element:this,items:[this.icon]})):(this.element.css("lineHeight","1"),BI.createWidget({element:this,type:"bi.center_adapt",items:[this.icon]}))}}),BI.shortcut("bi.icon_label",BI.IconLabel)},function(e,t){BI.Label=BI.inherit(BI.AbstractLabel,{props:{baseCls:"bi-label",py:"",keyword:""},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)}}),BI.shortcut("bi.label",BI.Label)},function(e,t){BI.Link=BI.inherit(BI.Label,{_defaultConfig:function(){var e=BI.Link.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-link display-block",tagName:"a",href:"",target:"_blank"})},_createJson:function(){var e=this.options;return{type:"bi.a",textAlign:e.textAlign,whiteSpace:e.whiteSpace,lineHeight:e.textHeight,text:e.text,keyword:e.keyword,value:e.value,py:e.py,href:e.href,target:e.target}}}),BI.shortcut("bi.link",BI.Link)},function(e,t){BI.PureText=BI.inherit(BI.Widget,{props:{tagName:null},render:function(){var e=this.options,t=this._getShowText();BI.isKey(t)?this.setText(t):BI.isKey(e.value)&&this.setText(e.value)},_getShowText:function(){var e=this.options,t=BI.isFunction(e.text)?e.text():e.text,t=BI.isKey(t)?t:e.value;return BI.isKey(t)?BI.Text.formatText(t+""):""},setValue:function(e){this.options.value=e,this.setText(e)},setText:function(e){this.options.text=BI.isNotNull(e)?e:"",this.element.__textKeywordMarked__(this._getShowText())}}),BI.shortcut("bi.pure_text",BI.PureText)},function(e,t){BI.Bubble=BI.inherit(BI.Tip,{_defaultConfig:function(){return BI.extend(BI.Bubble.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-bubble",direction:"top",text:"",level:"error",height:18})},_init:function(){BI.Bubble.superclass._init.apply(this,arguments);var e=function(e){return e.stopPropagation(),e.stopEvent(),!1};this.element.bind({click:e,mousedown:e,mouseup:e,mouseover:e,mouseenter:e,mouseleave:e,mousemove:e}),BI.createWidget({type:"bi.left",element:this,items:[this["_"+this.options.direction]()]})},_createBubbleText:function(){var e=this.options;return this.text=BI.createWidget({type:"bi.label",cls:"bubble-text bubble-"+e.level,text:e.text,hgap:5,height:18})},_top:function(){return BI.createWidget({type:"bi.vertical",items:[{el:this._createBubbleText(),height:18},{el:{type:"bi.layout"},height:3}]})},_bottom:function(){return BI.createWidget({type:"bi.vertical",items:[{el:{type:"bi.layout"},height:3},{el:this._createBubbleText(),height:18}]})},_left:function(){return BI.createWidget({type:"bi.right",items:[{el:{type:"bi.layout",width:3,height:18}},{el:this._createBubbleText()}]})},_right:function(){return BI.createWidget({type:"bi.left",items:[{el:{type:"bi.layout",width:3,height:18}},{el:this._createBubbleText()}]})},setText:function(e){this.text.setText(e)}}),BI.shortcut("bi.bubble",BI.Bubble),BI.BubbleView=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.BubbleView.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-bubble",direction:"top",text:"",level:"error",height:18})},_init:function(){BI.BubbleView.superclass._init.apply(this,arguments);var e=function(e){return e.stopPropagation(),e.stopEvent(),!1};this.element.bind({click:e,mousedown:e,mouseup:e,mouseover:e,mouseenter:e,mouseleave:e,mousemove:e}),BI.createWidget({type:"bi.left",element:this,items:[this["_"+this.options.direction]()]})},_createBubbleText:function(){var e=this.options;return this.text=BI.createWidget({type:"bi.label",cls:"bubble-text bubble-"+e.level,text:e.text,hgap:5,height:18})},_top:function(){return BI.createWidget({type:"bi.vertical",items:[{el:this._createBubbleText(),height:18},{el:{type:"bi.layout"},height:3}]})},_bottom:function(){return BI.createWidget({type:"bi.vertical",items:[{el:{type:"bi.layout"},height:3},{el:this._createBubbleText(),height:18}]})},_left:function(){return BI.createWidget({type:"bi.right",items:[{el:{type:"bi.layout",width:3,height:18}},{el:this._createBubbleText()}]})},_right:function(){return BI.createWidget({type:"bi.left",items:[{el:{type:"bi.layout",width:3,height:18}},{el:this._createBubbleText()}]})},setText:function(e){this.text.setText(e)}}),BI.shortcut("bi.bubble_view",BI.BubbleView)},function(e,t){BI.Toast=BI.inherit(BI.Tip,{_const:{minWidth:200,hgap:10},_defaultConfig:function(){return BI.extend(BI.Toast.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-toast",text:"",level:"success"})},_init:function(){BI.Toast.superclass._init.apply(this,arguments);var e=this,t=this.options;this.element.css({minWidth:this._const.minWidth+"px"}),this.element.addClass("toast-"+t.level);var n=function(e){return e.stopPropagation(),e.stopEvent(),!1};this.element.bind({click:n,mousedown:n,mouseup:n,mouseover:n,mouseenter:n,mouseleave:n,mousemove:n});var r="close-font";switch(t.level){case"success":r="toast-success-font";break;case"error":r="toast-error-font";break;case"warning":r="toast-warning-font";break;case"normal":default:r="toast-message-font"}var i=[{type:"bi.icon_label",cls:r+" toast-icon",width:36},{el:{type:"bi.label",whiteSpace:"normal",text:t.text,textHeight:16,textAlign:"left"},rgap:t.autoClose?this._const.hgap:0}],a=[36,""];!1===t.autoClose&&(i.push({type:"bi.icon_button",cls:"close-font toast-icon",handler:function(){e.destroy()},width:36}),a.push(36)),this.text=BI.createWidget({type:"bi.horizontal_adapt",element:this,items:i,vgap:7,columnSize:a})},setText:function(e){this.text.setText(e)},beforeDestroy:function(){this.fireEvent(BI.Toast.EVENT_DESTORY)}}),BI.Toast.EVENT_DESTORY="EVENT_DESTORY",BI.shortcut("bi.toast",BI.Toast)},function(e,t){BI.Tooltip=BI.inherit(BI.Tip,{_const:{hgap:5,vgap:3},_defaultConfig:function(){return BI.extend(BI.Tooltip.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-tooltip",text:"",level:"success",stopEvent:!1,stopPropagation:!1})},_init:function(){BI.Tooltip.superclass._init.apply(this,arguments);var t=this.options;this.element.addClass("tooltip-"+t.level);var e=function(e){t.stopPropagation&&e.stopPropagation(),t.stopEvent&&e.stopEvent()};this.element.bind({click:e,mousedown:e,mouseup:e,mouseover:e,mouseenter:e,mouseleave:e,mousemove:e});var n=(t.text+"").split("\n");1<n.length?BI.createWidget({type:"bi.vertical",element:this,hgap:this._const.hgap,items:BI.map(n,function(e,t){return{type:"bi.label",textAlign:"left",whiteSpace:"normal",text:t,textHeight:18}})}):this.text=BI.createWidget({type:"bi.label",element:this,textAlign:"left",whiteSpace:"normal",text:t.text,textHeight:18,hgap:this._const.hgap})},setWidth:function(e){this.element.width(e-2*this._const.hgap)},setText:function(e){this.text&&this.text.setText(e)},setLevel:function(e){this.element.removeClass("tooltip-success").removeClass("tooltip-warning"),this.element.addClass("tooltip-"+e)}}),BI.shortcut("bi.tooltip",BI.Tooltip)},function(e,t){BI.Trigger=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.Trigger.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{_baseCls:(e._baseCls||"")+" bi-trigger cursor-pointer",height:24})},_init:function(){BI.Trigger.superclass._init.apply(this,arguments)},setKey:function(){},getKey:function(){}})},function(e,t){BI.CustomTree=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.CustomTree.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-custom-tree",expander:{el:{},popup:{type:"bi.custom_tree"}},items:[],itemsCreator:BI.emptyFn,el:{type:"bi.button_tree",chooseType:0,layouts:[{type:"bi.vertical"}]}})},_init:function(){BI.CustomTree.superclass._init.apply(this,arguments),this.initTree(this.options.items)},_formatItems:function(e){var i=this,a=this.options;e=BI.Tree.transformToTreeFormat(e);var o=[];return BI.each(e,function(e,n){var t,r;BI.isNotEmptyArray(n.children)||!0===n.isParent?(t=BI.extend({type:"bi.expander",el:{value:n.value},popup:{type:"bi.custom_tree"}},BI.deepClone(a.expander),{id:n.id,pId:n.pId}),r=BI.stripEL(n),BI.isWidget(r)?t.el=r:(delete(r=BI.clone(r)).children,BI.extend(t.el,r)),t.popup.expander=BI.deepClone(a.expander),t.items=t.popup.items=n.children,t.itemsCreator=t.popup.itemsCreator=function(e){if(BI.isNotNull(e.node))return a.itemsCreator.apply(i,arguments);var t=Array.prototype.slice.call(arguments,0);return t[0].node=n,a.itemsCreator.apply(i,t)},BI.isNull(t.popup.el)&&(t.popup.el=BI.deepClone(a.el)),o.push(t)):o.push(n)}),o},initTree:function(e){var r=this,t=this.options;this.tree=BI.createWidget(t.el,{element:this,items:this._formatItems(e),itemsCreator:function(e,n){t.itemsCreator.apply(this,[e,function(e){var t=Array.prototype.slice.call(arguments,0);t[0]=r._formatItems(e),n.apply(null,t)}])},value:t.value}),this.tree.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.CustomTree.EVENT_CHANGE,t,n)})},stroke:function(e){this.populate.apply(this,arguments)},populate:function(e){var t=Array.prototype.slice.call(arguments,0);0<arguments.length&&(t[0]=this._formatItems(e)),this.tree.populate.apply(this.tree,t)},setValue:function(e){this.tree&&this.tree.setValue(e)},getValue:function(){return this.tree?this.tree.getValue():[]},getAllButtons:function(){return this.tree?this.tree.getAllButtons():[]},getAllLeaves:function(){return this.tree?this.tree.getAllLeaves():[]},getNodeById:function(e){return this.tree&&this.tree.getNodeById(e)},getNodeByValue:function(e){return this.tree&&this.tree.getNodeByValue(e)},empty:function(){this.tree.empty()}}),BI.CustomTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.custom_tree",BI.CustomTree)},function(e,t){BI.IconChangeButton=BI.inherit(BI.Single,{_defaultConfig:function(){var e=BI.IconChangeButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-icon-change-button",iconCls:"",iconWidth:null,iconHeight:null,stopEvent:!1,stopPropagation:!1,selected:!1,once:!1,forceSelected:!1,forceNotSelected:!1,disableSelected:!1,shadow:!1,isShadowShowingOnSelected:!1,trigger:null,handler:BI.emptyFn})},_init:function(){BI.IconChangeButton.superclass._init.apply(this,arguments);var e=this,t=this.options;this.button=BI.createWidget({type:"bi.icon_button",element:this,cls:t.iconCls,height:t.height,iconWidth:t.iconWidth,iconHeight:t.iconHeight,stopEvent:t.stopEvent,stopPropagation:t.stopPropagation,selected:t.selected,once:t.once,forceSelected:t.forceSelected,forceNotSelected:t.forceNotSelected,disableSelected:t.disableSelected,shadow:t.shadow,isShadowShowingOnSelected:t.isShadowShowingOnSelected,trigger:t.trigger,handler:t.handler}),this.button.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button.on(BI.IconButton.EVENT_CHANGE,function(){e.fireEvent(BI.IconChangeButton.EVENT_CHANGE,arguments)})},isSelected:function(){return this.button.isSelected()},setSelected:function(e){this.button.setSelected(e)},setIcon:function(e){var t=this.options;t.iconCls!==e&&(this.element.removeClass(t.iconCls).addClass(e),t.iconCls=e)}}),BI.IconChangeButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_change_button",BI.IconChangeButton)},function(e,t){BI.TriggerIconButton=BI.inherit(BI.IconButton,{_defaultConfig:function(){var e=BI.TriggerIconButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-trigger-icon-button overflow-hidden",extraCls:"pull-down-font"})}}),BI.TriggerIconButton.EVENT_CHANGE=BI.IconButton.EVENT_CHANGE,BI.shortcut("bi.trigger_icon_button",BI.TriggerIconButton)},function(e,t){BI.HalfIconButton=BI.inherit(BI.IconButton,{_defaultConfig:function(){var e=BI.HalfIconButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-half-icon-button check-half-select-icon",height:16,width:16,iconWidth:16,iconHeight:16,selected:!1})}}),BI.HalfIconButton.EVENT_CHANGE=BI.IconButton.EVENT_CHANGE,BI.shortcut("bi.half_icon_button",BI.HalfIconButton)},function(e,t){BI.HalfButton=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.HalfIconButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-half-button bi-high-light-border",height:14,width:14,selected:!1})},_init:function(){BI.HalfButton.superclass._init.apply(this,arguments),BI.createWidget({type:"bi.center_adapt",element:this.element,items:[{type:"bi.layout",cls:"bi-high-light-background",width:8,height:8}]})},doClick:function(){BI.HalfButton.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.HalfButton.EVENT_CHANGE)}}),BI.HalfButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.half_button",BI.HalfButton)},function(e,t){BI.MultiSelectItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.MultiSelectItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-multi-select-item",height:24,logic:{dynamic:!1},iconWrapperWidth:26})},_init:function(){BI.MultiSelectItem.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.checkbox"}),this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,rgap:e.rgap,text:e.text,keyword:e.keyword,value:e.value,py:e.py}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&t.setSelected(t.isSelected())}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",{type:"bi.center_adapt",items:[this.checkbox],width:e.iconWrapperWidth},this.text)}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.MultiSelectItem.superclass.doClick.apply(this,arguments),this.checkbox.setSelected(this.isSelected()),this.isValid()&&this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE,this.getValue(),this)},setSelected:function(e){BI.MultiSelectItem.superclass.setSelected.apply(this,arguments),this.checkbox.setSelected(e)}}),BI.MultiSelectItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_item",BI.MultiSelectItem)},function(e,t){BI.SingleSelectIconTextItem=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.SingleSelectIconTextItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-single-select-icon-text-item bi-list-item-active",iconCls:"",height:24})},_init:function(){BI.SingleSelectIconTextItem.superclass._init.apply(this,arguments);var e=this,t=this.options;this.text=BI.createWidget({type:"bi.icon_text_item",element:this,cls:t.iconCls,once:t.once,iconWrapperWidth:t.iconWrapperWidth,selected:t.selected,height:t.height,iconHeight:t.iconHeight,iconWidth:t.iconWidth,text:t.text,keyword:t.keyword,value:t.value,py:t.py}),this.text.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)})},isSelected:function(){return this.text.isSelected()},setSelected:function(e){this.text.setSelected(e)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.SingleSelectIconTextItem.superclass.doClick.apply(this,arguments)}}),BI.shortcut("bi.single_select_icon_text_item",BI.SingleSelectIconTextItem)},function(e,t){BI.SingleSelectItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.SingleSelectItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-single-select-item bi-list-item-active",hgap:10,height:24,textAlign:"left"})},_init:function(){BI.SingleSelectItem.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",element:this,textAlign:e.textAlign,whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,keyword:e.keyword,value:e.value,title:e.title||e.text,warningTitle:e.warningTitle,py:e.py})},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.SingleSelectItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.SingleSelectItem.EVENT_CHANGE,this.isSelected(),this)},setSelected:function(e){BI.SingleSelectItem.superclass.setSelected.apply(this,arguments)}}),BI.SingleSelectItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_item",BI.SingleSelectItem)},function(e,t){BI.SingleSelectRadioItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.SingleSelectRadioItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-single-select-radio-item",logic:{dynamic:!1},hgap:10,height:24})},_init:function(){BI.SingleSelectRadioItem.superclass._init.apply(this,arguments);var e=this.options;this.radio=BI.createWidget({type:"bi.radio",once:e.once}),this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,keyword:e.keyword,value:e.value,py:e.py}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",{type:"bi.center_adapt",items:[this.radio],width:16},this.text)}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.SingleSelectRadioItem.superclass.doClick.apply(this,arguments),this.radio.setSelected(this.isSelected()),this.isValid()&&this.fireEvent(BI.SingleSelectRadioItem.EVENT_CHANGE,this.isSelected(),this)},setSelected:function(e){BI.SingleSelectRadioItem.superclass.setSelected.apply(this,arguments),this.radio.setSelected(e)}}),BI.SingleSelectRadioItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_radio_item",BI.SingleSelectRadioItem)},function(e,t){BI.ArrowNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.ArrowNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-arrow-group-node bi-list-item",logic:{dynamic:!1},id:"",pId:"",open:!1,height:24,iconWrapperWidth:16})},_init:function(){var t=this,e=this.options;BI.ArrowNode.superclass._init.apply(this,arguments),this.checkbox=BI.createWidget({type:"bi.arrow_group_node_checkbox"}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&t.setSelected(t.isSelected()),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:e.iconWrapperWidth,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.ArrowNode.superclass.doClick.apply(this,arguments),this.checkbox.setSelected(this.isOpened())},setText:function(e){BI.ArrowNode.superclass.setText.apply(this,arguments),this.text.setText(e)},setOpened:function(e){BI.ArrowNode.superclass.setOpened.apply(this,arguments),this.checkbox.setSelected(e)}}),BI.shortcut("bi.arrow_group_node",BI.ArrowNode)},function(e,t){BI.FirstPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.FirstPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-first-plus-group-node bi-list-item",logic:{dynamic:!1},id:"",pId:"",open:!1,height:24})},_init:function(){BI.FirstPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.first_tree_node_checkbox",stopPropagation:!0}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.FirstPlusGroupNode.superclass.doClick.apply(this,arguments),this.checkbox.setSelected(this.isSelected())},setOpened:function(e){BI.FirstPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.first_plus_group_node",BI.FirstPlusGroupNode)},function(e,t){BI.IconArrowNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.IconArrowNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-icon-arrow-node bi-list-item",logic:{dynamic:!1},id:"",pId:"",open:!1,height:24,iconHeight:12,iconWidth:12,iconCls:"",iconWrapperWidth:16})},_init:function(){BI.IconArrowNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.arrow_group_node_checkbox",width:24,stopPropagation:!0});var n=BI.createWidget({type:"bi.icon_label",width:24,cls:e.iconCls,iconWidth:e.iconWidth,iconHeight:e.iconHeight});this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var r=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),i=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:e.iconWrapperWidth,el:this.checkbox},{width:16,el:n},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(r,BI.extend(e.logic,{items:i,rgap:5}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.IconArrowNode.superclass.doClick.apply(this,arguments),this.checkbox.setSelected(this.isSelected())},setOpened:function(e){BI.IconArrowNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.icon_arrow_node",BI.IconArrowNode)},function(e,t){BI.LastPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.LastPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-last-plus-group-node bi-list-item",logic:{dynamic:!1},id:"",pId:"",open:!1,height:24})},_init:function(){BI.LastPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.last_tree_node_checkbox",stopPropagation:!0}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.LastPlusGroupNode.superclass.doClick.apply(this,arguments),this.checkbox.setSelected(this.isSelected())},setOpened:function(e){BI.LastPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.last_plus_group_node",BI.LastPlusGroupNode)},function(e,t){BI.MidPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MidPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-mid-plus-group-node bi-list-item",logic:{dynamic:!1},id:"",pId:"",open:!1,height:24})},_init:function(){BI.MidPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.mid_tree_node_checkbox",stopPropagation:!0}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.MidPlusGroupNode.superclass.doClick.apply(this,arguments),this.checkbox.setSelected(this.isSelected())},setOpened:function(e){BI.MidPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.mid_plus_group_node",BI.MidPlusGroupNode)},function(e,t){BI.MultiLayerIconArrowNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerIconArrowNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-icon-arrow-node bi-list-item",layer:0,id:"",pId:"",open:!1,height:24,iconHeight:16,iconWidth:16,iconCls:""})},_init:function(){BI.MultiLayerIconArrowNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.node=BI.createWidget({type:"bi.icon_arrow_node",iconCls:e.iconCls,cls:"bi-list-item-none",id:e.id,pId:e.pId,open:e.open,height:e.height,iconHeight:e.iconHeight,iconWidth:e.iconWidth,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.node.on(BI.Controller.EVENT_CHANGE,function(e){t.setSelected(t.isSelected()),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];BI.count(0,e.layer,function(){n.push({type:"bi.layout",width:15,height:e.height})}),n.push(this.node),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,15),items:n})},isOnce:function(){return!0},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},isSelected:function(){return this.node.isSelected()},setSelected:function(e){BI.MultiLayerIconArrowNode.superclass.setSelected.apply(this,arguments),this.node.setSelected(e)},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerIconArrowNode.superclass.setOpened.apply(this,arguments),this.node.setOpened(e)}}),BI.shortcut("bi.multilayer_icon_arrow_node",BI.MultiLayerIconArrowNode)},function(e,t){BI.PlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.PlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-plus-group-node bi-list-item",logic:{dynamic:!1},id:"",pId:"",open:!1,height:24})},_init:function(){BI.PlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.tree_node_checkbox"}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,keyword:e.keyword,py:e.py}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&t.setSelected(t.isSelected()),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.PlusGroupNode.superclass.doClick.apply(this,arguments),this.checkbox.setSelected(this.isSelected())},setOpened:function(e){BI.PlusGroupNode.superclass.setOpened.apply(this,arguments),this.checkbox&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.plus_group_node",BI.PlusGroupNode)},function(e,t){BI.Switch=BI.inherit(BI.BasicButton,{props:{extraCls:"bi-switch",height:22,width:44,logic:{dynamic:!1}},render:function(){var e=this;return{type:"bi.absolute",ref:function(){e.layout=this},items:[{el:{type:"bi.text_button",cls:"circle-button bi-card"},width:18,height:18,top:2,left:this.options.selected?24:2}]}},setSelected:function(e){BI.Switch.superclass.setSelected.apply(this,arguments),this.layout.attr("items")[0].left=e?24:2,this.layout.resize()},doClick:function(){BI.Switch.superclass.doClick.apply(this,arguments),this.fireEvent(BI.Switch.EVENT_CHANGE)}}),BI.Switch.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.switch",BI.Switch)},function(e,t){BI.FirstTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.FirstTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-first-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",layer:0,height:24})},_init:function(){BI.FirstTreeLeafItem.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword});var t=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),n=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,0===e.layer?"":{width:12,el:{type:"bi.layout",cls:e.pNode&&e.pNode.isLastNode?"":"base-line-conn-background",width:12,height:e.height}},{width:24,el:{type:"bi.layout",cls:"first-line-conn-background",width:24,height:e.height}},{el:this.text});BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(t,BI.extend(e.logic,{items:n}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId}}),BI.shortcut("bi.first_tree_leaf_item",BI.FirstTreeLeafItem)},function(e,t){BI.IconTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.IconTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-icon-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},height:24,iconWidth:16,iconHeight:16,iconCls:""})},_init:function(){BI.IconTreeLeafItem.superclass._init.apply(this,arguments);var e=this.options,t=BI.createWidget({type:"bi.center_adapt",width:24,cls:e.iconCls,items:[{type:"bi.icon",width:e.iconWidth,height:e.iconHeight}]});this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:16,el:t},{el:this.text});BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r,hgap:5}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId}}),BI.shortcut("bi.icon_tree_leaf_item",BI.IconTreeLeafItem)},function(e,t){BI.LastTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.LastTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-last-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",layer:0,height:24})},_init:function(){BI.LastTreeLeafItem.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword});var t=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),n=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,0===e.layer?"":{width:12,el:{type:"bi.layout",cls:e.pNode&&e.pNode.isLastNode?"":"base-line-conn-background",width:12,height:e.height}},{width:24,el:{type:"bi.layout",cls:"last-line-conn-background",width:24,height:e.height}},{el:this.text});BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(t,BI.extend(e.logic,{items:n}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId}}),BI.shortcut("bi.last_tree_leaf_item",BI.LastTreeLeafItem)},function(e,t){BI.MidTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.MidTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-mid-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",layer:0,height:24})},_init:function(){BI.MidTreeLeafItem.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword});var t=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),n=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,0===e.layer?"":{width:12,el:{type:"bi.layout",cls:e.pNode&&e.pNode.isLastNode?"":"base-line-conn-background",width:12,height:e.height}},{width:24,el:{type:"bi.layout",cls:"mid-line-conn-background",width:24,height:e.height}},{el:this.text});BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(t,BI.extend(e.logic,{items:n}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId}}),BI.shortcut("bi.mid_tree_leaf_item",BI.MidTreeLeafItem)},function(e,t){BI.MultiLayerIconTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.MultiLayerIconTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-multilayer-icon-tree-leaf-item bi-list-item-active",layer:0,height:24,iconCls:"",iconHeight:16,iconWidth:16})},_init:function(){BI.MultiLayerIconTreeLeafItem.superclass._init.apply(this,arguments);var t=this,e=this.options;this.item=BI.createWidget({type:"bi.icon_tree_leaf_item",cls:"bi-list-item-none",iconCls:e.iconCls,id:e.id,pId:e.pId,isFront:!0,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword,iconWidth:e.iconWidth,iconHeight:e.iconHeight}),this.item.on(BI.Controller.EVENT_CHANGE,function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];BI.count(0,e.layer,function(){n.push({type:"bi.layout",width:15,height:e.height})}),n.push(this.item),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,15),items:n})},doRedMark:function(){this.item.doRedMark.apply(this.item,arguments)},unRedMark:function(){this.item.unRedMark.apply(this.item,arguments)},doHighLight:function(){this.item.doHighLight.apply(this.item,arguments)},unHighLight:function(){this.item.unHighLight.apply(this.item,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId},doClick:function(){BI.MultiLayerIconTreeLeafItem.superclass.doClick.apply(this,arguments),this.item.setSelected(this.isSelected())},setSelected:function(e){BI.MultiLayerIconTreeLeafItem.superclass.setSelected.apply(this,arguments),this.item.setSelected(e)},getValue:function(){return this.options.value}}),BI.shortcut("bi.multilayer_icon_tree_leaf_item",BI.MultiLayerIconTreeLeafItem)},function(e,t){BI.RootTreeLeafItem=BI.inherit(BI.BasicButton,{props:{baseCls:"bi-root-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",layer:0,height:24},render:function(){var t=this,e=this.options,n={type:"bi.label",ref:function(e){t.text=e},textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword},r=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),i=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:{type:"bi.layout",width:24,height:e.height}},{el:n});return BI.LogicFactory.createLogic(r,BI.extend(e.logic,{items:i}))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId}}),BI.shortcut("bi.root_tree_leaf_item",BI.RootTreeLeafItem)},function(e,t){BI.TreeTextLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.TreeTextLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-tree-text-leaf-item bi-list-item-active",id:"",pId:"",height:24,hgap:0,lgap:0,rgap:0})},_init:function(){BI.TreeTextLeafItem.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,lgap:e.lgap,rgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),BI.createWidget({type:"bi.htape",element:this,items:[{el:this.text}]})},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId}}),BI.shortcut("bi.tree_text_leaf_item",BI.TreeTextLeafItem)},function(e,t){BI.CalendarDateItem=BI.inherit(BI.BasicButton,{render:function(){var e=this,t=this.options;return{type:"bi.absolute",items:[{el:{type:"bi.text_item",cls:"bi-list-item-select",textAlign:"center",whiteSpace:"normal",text:t.text,value:t.value,ref:function(){e.text=this}},left:t.lgap,right:t.rgap,top:0,bottom:0}]}},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},setSelected:function(e){BI.CalendarDateItem.superclass.setSelected.apply(this,arguments),this.text.setSelected(e)},getValue:function(){return this.text.getValue()}}),BI.shortcut("bi.calendar_date_item",BI.CalendarDateItem)},function(e,t){BI.Calendar=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.Calendar.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-calendar",logic:{dynamic:!1},min:"1900-01-01",max:"2099-12-31",year:2015,month:8,day:25})},_dateCreator:function(e,t,n){var r=this.options,a={},i=BI.getDate(),o=r.min.match(/\d+/g),s=r.max.match(/\d+/g);i.setFullYear(e,t,n),a.ymd=[i.getFullYear(),i.getMonth(),i.getDate()];var c=BI.Date._MD.slice(0);c[1]=BI.isLeapYear(a.ymd[0])?29:28,i.setFullYear(a.ymd[0],a.ymd[1],1),a.FDay=i.getDay();var u=(7-BI.StartOfWeek+a.FDay)%7;a.PDay=c[0===t?11:t-1]-u+1,a.NDay=1;var l=[];return BI.each(BI.range(42),function(e){var t,n={},r=a.ymd[0],i=a.ymd[1]+1;e<u?(n.lastMonth=!0,t=e+a.PDay,1===i&&--r,i=1===i?12:i-1):u<=e&&e<u+c[a.ymd[1]]?(t=e-u+1)===a.ymd[2]&&(n.currentDay=!0):(n.nextMonth=!0,t=a.NDay++,12===i&&(r+=1),i=12===i?1:i+1),BI.checkDateVoid(r,i,t,o,s)[0]&&(n.disabled=!0),n.text=t,l.push(n)}),l},_init:function(){BI.Calendar.superclass._init.apply(this,arguments);var e=this,t=this.options,n=BI.map(this._getWeekLabel(),function(e,t){return{type:"bi.label",height:24,text:t}}),r=BI.createWidget({type:"bi.button_group",height:44,items:n,layouts:[{type:"bi.center",hgap:5,vgap:10}]});this.days=BI.createWidget({type:"bi.button_group",items:BI.createItems(this._getItems(),{}),layouts:[BI.LogicFactory.createLogic("table",BI.extend({},t.logic,{columns:7,rows:6,columnSize:[1/7,1/7,1/7,1/7,1/7,1/7,1/7],rowSize:24,vgap:10}))]}),this.days.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("vertical",BI.extend({},t.logic,{items:BI.LogicFactory.createLogicItemsByDirection("top",r,this.days)}))))},_getWeekLabel:function(){return BI.map(BI.range(0,7),function(e,t){return BI.Date._SDN[(t+BI.StartOfWeek)%7]})},isFrontDate:function(){var e=this.options,t=(this._const,e.year),n=e.month,r=BI.getDate(),i=r.getDay();t|=0,r.setFullYear(t,n,1);var a=BI.getOffsetDate(r,-1*(i+1));return!!BI.checkDateVoid(a.getFullYear(),a.getMonth(),a.getDate(),e.min,e.max)[0]},isFinalDate:function(){var e=this.options,t=(this._const,e.year),n=e.month,r=BI.getDate(),i=r.getDay();t|=0,r.setFullYear(t,n,1);var a=BI.getOffsetDate(r,42-i);return!!BI.checkDateVoid(a.getFullYear(),a.getMonth(),a.getDate(),e.min,e.max)[0]},_getItems:function(){var r=this.options,e=this._dateCreator(r.year,r.month-1,r.day),t=[];return t.push(e.slice(0,7)),t.push(e.slice(7,14)),t.push(e.slice(14,21)),t.push(e.slice(21,28)),t.push(e.slice(28,35)),t.push(e.slice(35,42)),BI.map(t,function(e,t){return BI.map(t,function(e,t){var n=t.lastMonth?r.month-1:t.nextMonth?r.month+1:r.month;return BI.extend(t,{type:"bi.calendar_date_item",textAlign:"center",whiteSpace:"normal",once:!1,forceSelected:!0,height:24,value:r.year+"-"+n+"-"+t.text,disabled:t.lastMonth||t.nextMonth||t.disabled,lgap:5,rgap:5})})})},_populate:function(){this.days.populate(this._getItems())},setMinDate:function(e){var t=this.options;BI.isNotEmptyString(t.min)&&(t.min=e,this._populate())},setMaxDate:function(e){var t=this.options;BI.isNotEmptyString(t.max)&&(t.max=e,this._populate())},setValue:function(e){this.days.setValue([e.year+"-"+e.month+"-"+e.day])},getValue:function(){var e=this.days.getValue()[0].match(/\d+/g);return{year:0|e[0],month:0|e[1],day:0|e[2]}}}),BI.extend(BI.Calendar,{getPageByDateJSON:function(e){var t=BI.getDate().getFullYear(),n=BI.getDate().getMonth(),r=12*(e.year-t);return r+=e.month-1-n},getDateJSONByPage:function(e){var t=e;t+=BI.getDate().getMonth();var n=BI.parseInt(t/12);t<0&&t%12!=0&&n--;var r=0<=t?t%12:(12+t%12)%12;return{year:BI.getDate().getFullYear()+n,month:1+r}}}),BI.shortcut("bi.calendar",BI.Calendar)},function(e,t){BI.YearCalendar=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.YearCalendar.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-year-calendar",behaviors:{},logic:{dynamic:!1},min:"1900-01-01",max:"2099-12-31",year:null})},_yearCreator:function(e){var t=this.options;e|=0;var n=BI.YearCalendar.getStartYear(e),r=[],i=BI.parseDateTime(t.min,"%Y-%X-%d"),a=BI.parseDateTime(t.max,"%Y-%X-%d");return BI.each(BI.range(BI.YearCalendar.INTERVAL),function(e){var t={};BI.checkDateVoid(n+e,1,1,BI.print(BI.getDate(i.getFullYear(),0,1),"%Y-%X-%d"),BI.print(BI.getDate(a.getFullYear(),0,1),"%Y-%X-%d"))[0]&&(t.disabled=!0),t.text=n+e,r.push(t)}),r},_init:function(){BI.YearCalendar.superclass._init.apply(this,arguments);var e=this,t=this.options;this.currentYear=BI.getDate().getFullYear(),this.years=BI.createWidget({type:"bi.button_group",behaviors:t.behaviors,items:BI.createItems(this._getItems(),{}),layouts:[BI.LogicFactory.createLogic("table",BI.extend({},t.logic,{columns:2,rows:6,columnSize:[.5,.5],rowSize:24})),{type:"bi.center_adapt",vgap:1}]}),this.years.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("vertical",BI.extend({},t.logic,{items:BI.LogicFactory.createLogicItemsByDirection("top",this.years)}))))},isFrontYear:function(){var e=this.options,t=e.year;return t|=0,!!BI.checkDateVoid(BI.YearCalendar.getStartYear(t)-1,1,1,e.min,e.max)[0]},isFinalYear:function(){var e=this.options,t=(this._const,e.year);return t|=0,!!BI.checkDateVoid(BI.YearCalendar.getEndYear(t)+1,1,1,e.min,e.max)[0]},_getItems:function(){var e=this.options,n=this._yearCreator(e.year||this.currentYear),t=n.length,r=BI.makeArray(t,""),i=[0,6,1,7,2,8,3,9,4,10,5,11];BI.each(n,function(e,t){r[e]=n[i[e]]});var a=[];return a.push(r.slice(0,2)),a.push(r.slice(2,4)),a.push(r.slice(4,6)),a.push(r.slice(6,8)),a.push(r.slice(8,10)),a.push(r.slice(10,12)),BI.map(a,function(e,t){return BI.map(t,function(e,t){return BI.extend(t,{type:"bi.text_item",cls:"bi-list-item-select",textAlign:"center",whiteSpace:"normal",once:!1,forceSelected:!0,height:24,width:45,value:t.text,disabled:t.disabled})})})},_populate:function(){this.years.populate(this._getItems())},setMinDate:function(e){var t=this.options;BI.isNotEmptyString(t.min)&&(t.min=e,this._populate())},setMaxDate:function(e){var t=this.options;BI.isNotEmptyString(this.options.max)&&(t.max=e,this._populate())},setValue:function(e){this.years.setValue([e])},getValue:function(){return this.years.getValue()[0]}}),BI.extend(BI.YearCalendar,{INTERVAL:12,getStartYear:function(e){return e-((e-BI.getDate().getFullYear()+3)%BI.YearCalendar.INTERVAL+12)%BI.YearCalendar.INTERVAL},getEndYear:function(e){return BI.YearCalendar.getStartYear(e)+BI.YearCalendar.INTERVAL-1},getPageByYear:function(e){var t=BI.getDate().getFullYear();return((e=BI.YearCalendar.getStartYear(e))-t+3)/BI.YearCalendar.INTERVAL}}),BI.shortcut("bi.year_calendar",BI.YearCalendar)},function(e,t){BI.ArrowTreeGroupNodeCheckbox=BI.inherit(BI.IconButton,{_defaultConfig:function(){return BI.extend(BI.ArrowTreeGroupNodeCheckbox.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-arrow-group-node-checkbox"})},setSelected:function(e){BI.ArrowTreeGroupNodeCheckbox.superclass.setSelected.apply(this,arguments),e?this.element.removeClass("expander-right-font").addClass("expander-down-font"):this.element.removeClass("expander-down-font").addClass("expander-right-font")}}),BI.shortcut("bi.arrow_group_node_checkbox",BI.ArrowTreeGroupNodeCheckbox)},function(e,t){BI.CheckingMarkNode=BI.inherit(BI.IconButton,{_defaultConfig:function(){return BI.extend(BI.CheckingMarkNode.superclass._defaultConfig.apply(this,arguments),{extraCls:"check-mark-font"})},_init:function(){BI.CheckingMarkNode.superclass._init.apply(this,arguments),this.setSelected(this.options.selected)},setSelected:function(e){BI.CheckingMarkNode.superclass.setSelected.apply(this,arguments),!0===e?this.element.addClass("check-mark-font"):this.element.removeClass("check-mark-font")}}),BI.shortcut("bi.checking_mark_node",BI.CheckingMarkNode)},function(e,t){BI.FirstTreeNodeCheckbox=BI.inherit(BI.IconButton,{_defaultConfig:function(){return BI.extend(BI.FirstTreeNodeCheckbox.superclass._defaultConfig.apply(this,arguments),{extraCls:"tree-collapse-icon-type2",iconWidth:24,iconHeight:24})},setSelected:function(e){BI.FirstTreeNodeCheckbox.superclass.setSelected.apply(this,arguments),!0===e?this.element.addClass("tree-expand-icon-type2"):this.element.removeClass("tree-expand-icon-type2")}}),BI.shortcut("bi.first_tree_node_checkbox",BI.FirstTreeNodeCheckbox)},function(e,t){BI.LastTreeNodeCheckbox=BI.inherit(BI.IconButton,{_defaultConfig:function(){return BI.extend(BI.LastTreeNodeCheckbox.superclass._defaultConfig.apply(this,arguments),{extraCls:"tree-collapse-icon-type4",iconWidth:24,iconHeight:24})},setSelected:function(e){BI.LastTreeNodeCheckbox.superclass.setSelected.apply(this,arguments),!0===e?this.element.addClass("tree-expand-icon-type4"):this.element.removeClass("tree-expand-icon-type4")}}),BI.shortcut("bi.last_tree_node_checkbox",BI.LastTreeNodeCheckbox)},function(e,t){BI.MidTreeNodeCheckbox=BI.inherit(BI.IconButton,{_defaultConfig:function(){return BI.extend(BI.MidTreeNodeCheckbox.superclass._defaultConfig.apply(this,arguments),{extraCls:"tree-collapse-icon-type3",iconWidth:24,iconHeight:24})},setSelected:function(e){BI.MidTreeNodeCheckbox.superclass.setSelected.apply(this,arguments),!0===e?this.element.addClass("tree-expand-icon-type3"):this.element.removeClass("tree-expand-icon-type3")}}),BI.shortcut("bi.mid_tree_node_checkbox",BI.MidTreeNodeCheckbox)},function(e,t){BI.TreeNodeCheckbox=BI.inherit(BI.IconButton,{_defaultConfig:function(){return BI.extend(BI.TreeNodeCheckbox.superclass._defaultConfig.apply(this,arguments),{extraCls:"tree-collapse-icon-type1",iconWidth:24,iconHeight:24})},setSelected:function(e){BI.TreeNodeCheckbox.superclass.setSelected.apply(this,arguments),e?this.element.addClass("tree-expand-icon-type1"):this.element.removeClass("tree-expand-icon-type1")}}),BI.shortcut("bi.tree_node_checkbox",BI.TreeNodeCheckbox)},function(e,t){BI.BubbleCombo=BI.inherit(BI.Widget,{_const:{TRIANGLE_LENGTH:6},_defaultConfig:function(){return BI.extend(BI.BubbleCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-bubble-combo",trigger:"click",toggle:!0,direction:"bottom,left",isDefaultInit:!1,destroyWhenHide:!1,isNeedAdjustHeight:!0,isNeedAdjustWidth:!0,stopPropagation:!1,adjustLength:0,hideChecker:BI.emptyFn,offsetStyle:"left",el:{},popup:{}})},_init:function(){BI.BubbleCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.combo=BI.createWidget({type:"bi.combo",element:this,trigger:t.trigger,toggle:t.toggle,container:t.container,direction:t.direction,isDefaultInit:t.isDefaultInit,destroyWhenHide:t.destroyWhenHide,isNeedAdjustHeight:t.isNeedAdjustHeight,isNeedAdjustWidth:t.isNeedAdjustWidth,adjustLength:this._getAdjustLength(),stopPropagation:t.stopPropagation,adjustXOffset:0,adjustYOffset:0,hideChecker:t.hideChecker,offsetStyle:t.offsetStyle,el:t.el,popup:BI.extend({type:"bi.bubble_popup_view"},t.popup)}),this.combo.on(BI.Combo.EVENT_TRIGGER_CHANGE,function(){e.fireEvent(BI.BubbleCombo.EVENT_TRIGGER_CHANGE,arguments)}),this.combo.on(BI.Combo.EVENT_CHANGE,function(){e.fireEvent(BI.BubbleCombo.EVENT_CHANGE,arguments)}),this.combo.on(BI.Combo.EVENT_EXPAND,function(){e.fireEvent(BI.BubbleCombo.EVENT_EXPAND,arguments)}),this.combo.on(BI.Combo.EVENT_COLLAPSE,function(){e.fireEvent(BI.BubbleCombo.EVENT_COLLAPSE,arguments)}),this.combo.on(BI.Combo.EVENT_AFTER_INIT,function(){e.fireEvent(BI.BubbleCombo.EVENT_AFTER_INIT,arguments)}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){e.fireEvent(BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW,arguments)}),this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW,function(){e._showTriangle(),e.fireEvent(BI.BubbleCombo.EVENT_AFTER_POPUPVIEW,arguments)}),this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW,function(){e._hideTriangle(),e.fireEvent(BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW,arguments)}),this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){e.fireEvent(BI.BubbleCombo.EVENT_AFTER_HIDEVIEW,arguments)})},_getAdjustLength:function(){return this._const.TRIANGLE_LENGTH+this.options.adjustLength},_createTriangle:function(e){var t={},n={},r=this.options.adjustLength,i=this.element.offset(),a=i.left,o=i.left+this.element.outerWidth(),s=i.top,c=i.top+this.element.outerHeight();switch(e){case"left":t={top:s,height:this.element.outerHeight(),left:a-r-this._const.TRIANGLE_LENGTH},n={width:this._const.TRIANGLE_LENGTH};break;case"right":t={top:s,height:this.element.outerHeight(),left:o+r},n={width:this._const.TRIANGLE_LENGTH};break;case"top":t={left:a,width:this.element.outerWidth(),top:s-r-this._const.TRIANGLE_LENGTH},n={height:this._const.TRIANGLE_LENGTH};break;case"bottom":t={left:a,width:this.element.outerWidth(),top:c+r},n={height:this._const.TRIANGLE_LENGTH}}this.triangle&&this.triangle.destroy(),this.triangle=BI.createWidget(n,{type:"bi.center_adapt",cls:"button-combo-triangle-wrapper",items:[{type:"bi.layout",cls:"bubble-combo-triangle-"+e}]}),t.el=this.triangle,BI.createWidget({type:"bi.absolute",element:this,items:[t]})},_createLeftTriangle:function(){this._createTriangle("left")},_createRightTriangle:function(){this._createTriangle("right")},_createTopTriangle:function(){this._createTriangle("top")},_createBottomTriangle:function(){this._createTriangle("bottom")},_showTriangle:function(){switch(this.combo.getPopupPosition().dir){case"left,top":case"left,bottom":this._createLeftTriangle();break;case"right,top":case"right,bottom":this._createRightTriangle();break;case"top,left":case"top,right":this._createTopTriangle();break;case"bottom,left":case"bottom,right":this._createBottomTriangle()}},_hideTriangle:function(){this.triangle&&this.triangle.destroy(),this.triangle=null},hideView:function(){this._hideTriangle(),this.combo&&this.combo.hideView()},showView:function(){this.combo&&this.combo.showView()},isViewVisible:function(){return this.combo.isViewVisible()}}),BI.BubbleCombo.EVENT_TRIGGER_CHANGE="EVENT_TRIGGER_CHANGE",BI.BubbleCombo.EVENT_CHANGE="EVENT_CHANGE",BI.BubbleCombo.EVENT_EXPAND="EVENT_EXPAND",BI.BubbleCombo.EVENT_COLLAPSE="EVENT_COLLAPSE",BI.BubbleCombo.EVENT_AFTER_INIT="EVENT_AFTER_INIT",BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.BubbleCombo.EVENT_AFTER_POPUPVIEW="EVENT_AFTER_POPUPVIEW",BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW="EVENT_BEFORE_HIDEVIEW",BI.BubbleCombo.EVENT_AFTER_HIDEVIEW="EVENT_AFTER_HIDEVIEW",BI.shortcut("bi.bubble_combo",BI.BubbleCombo)},function(e,t){BI.BubblePopupView=BI.inherit(BI.PopupView,{_defaultConfig:function(){var e=BI.BubblePopupView.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:e.baseCls+" bi-bubble-popup-view",minWidth:220,maxWidth:300,minHeight:90})},_init:function(){BI.BubblePopupView.superclass._init.apply(this,arguments)}}),BI.shortcut("bi.bubble_popup_view",BI.BubblePopupView),BI.BubblePopupBarView=BI.inherit(BI.BubblePopupView,{_defaultConfig:function(){return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-bubble-bar-popup-view",buttons:[{value:!1,text:BI.i18nText("BI-Basic_Cancel"),ghost:!0},{text:BI.i18nText(BI.i18nText("BI-Basic_Sure")),value:!0}]})},_init:function(){BI.BubblePopupBarView.superclass._init.apply(this,arguments)},_createToolBar:function(){var e=this.options,n=this,r=[];return BI.each(e.buttons,function(e,t){BI.isWidget(t)?r.push(t):r.push(BI.extend({type:"bi.button",height:24,handler:function(e){n.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON,e)}},t))}),BI.createWidget({type:"bi.center",height:44,rgap:15,items:[{type:"bi.right_vertical_adapt",lgap:10,items:r}]})},_createView:function(){var e=this.options,t=BI.createWidget({type:"bi.button_group",items:[e.el],layouts:[{type:"bi.vertical",cls:"bar-popup-container",hgap:15,tgap:10}]});return t.element.css("min-height",e.minHeight-44),t}}),BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON="EVENT_CLICK_TOOLBAR_BUTTON",BI.shortcut("bi.bubble_bar_popup_view",BI.BubblePopupBarView),BI.TextBubblePopupBarView=BI.inherit(BI.Widget,{props:function(){return{baseCls:"bi-text-bubble-bar-popup-view",text:"",buttons:[{level:"ignore",value:!1,stopPropagation:!0,text:BI.i18nText("BI-Basic_Cancel")},{value:!0,stopPropagation:!0,text:BI.i18nText("BI-Basic_Sure")}]}},render:function(){var n=this,e=this.options,t=BI.map(e.buttons,function(e,t){return BI.isWidget(t)?t:BI.extend({type:"bi.button",height:24,handler:function(e){n.fireEvent(BI.TextBubblePopupBarView.EVENT_CHANGE,e)}},t)});return{type:"bi.bubble_bar_popup_view",minWidth:e.minWidth,maxWidth:e.maxWidth,minHeight:e.minHeight,ref:function(){n.popup=this},el:{type:"bi.label",text:e.text,whiteSpace:"normal",textAlign:"left",ref:function(){n.text=this}},buttons:t}},populate:function(e){this.text.setText(e||this.options.text)}}),BI.TextBubblePopupBarView.EVENT_CHANGE="EVENT_CLICK_TOOLBAR_BUTTON",BI.shortcut("bi.text_bubble_bar_popup_view",BI.TextBubblePopupBarView)},function(e,t){BI.EditorIconCheckCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.EditorIconCheckCombo.superclass._defaultConfig.apply(this,arguments),{baseClass:"bi-check-editor-combo",width:100,height:24,chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!0,watermark:"",errorText:""})},_init:function(){BI.EditorIconCheckCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget({type:"bi.editor_trigger",items:t.items,height:t.height,validationChecker:t.validationChecker,quitChecker:t.quitChecker,allowBlank:t.allowBlank,watermark:t.watermark,errorText:t.errorText,value:t.value}),this.trigger.on(BI.EditorTrigger.EVENT_CHANGE,function(){e.popup.setValue(this.getValue()),e.fireEvent(BI.EditorIconCheckCombo.EVENT_CHANGE,arguments)}),this.trigger.on(BI.EditorTrigger.EVENT_FOCUS,function(){e.fireEvent(BI.EditorIconCheckCombo.EVENT_FOCUS,arguments)}),this.trigger.on(BI.EditorTrigger.EVENT_EMPTY,function(){e.fireEvent(BI.EditorIconCheckCombo.EVENT_EMPTY,arguments)}),this.trigger.on(BI.EditorTrigger.EVENT_VALID,function(){e.fireEvent(BI.EditorIconCheckCombo.EVENT_VALID,arguments)}),this.trigger.on(BI.EditorTrigger.EVENT_ERROR,function(){e.fireEvent(BI.EditorIconCheckCombo.EVENT_ERROR,arguments)}),this.popup=BI.createWidget({type:"bi.text_value_check_combo_popup",chooseType:t.chooseType,items:t.items,value:t.value}),this.popup.on(BI.TextValueCheckComboPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.editorIconCheckCombo.hideView(),e.fireEvent(BI.EditorIconCheckCombo.EVENT_CHANGE)}),this.popup.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editorIconCheckCombo=BI.createWidget({type:"bi.combo",container:t.container,element:this,adjustLength:2,el:this.trigger,popup:{el:this.popup,maxHeight:300}})},setValue:function(e){this.editorIconCheckCombo.setValue(e)},getValue:function(){return this.trigger.getValue()},populate:function(e){this.options.items=e,this.editorIconCheckCombo.populate(e)}}),BI.EditorIconCheckCombo.EVENT_CHANGE="EVENT_CHANGE",BI.EditorIconCheckCombo.EVENT_FOCUS="EVENT_FOCUS",BI.EditorIconCheckCombo.EVENT_EMPTY="EVENT_EMPTY",BI.EditorIconCheckCombo.EVENT_VALID="EVENT_VALID",BI.EditorIconCheckCombo.EVENT_ERROR="EVENT_ERROR",BI.shortcut("bi.editor_icon_check_combo",BI.EditorIconCheckCombo)},function(e,t){BI.IconCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.IconCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-icon-combo",width:24,height:24,el:{},popup:{},minWidth:100,maxWidth:"auto",maxHeight:300,direction:"bottom",adjustLength:3,adjustXOffset:0,adjustYOffset:0,offsetStyle:"left",chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE})},_init:function(){BI.IconCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget(t.el,{type:"bi.icon_combo_trigger",iconCls:t.iconCls,title:t.title,items:t.items,width:t.width,height:t.height,iconWidth:t.iconWidth,iconHeight:t.iconHeight,value:t.value}),this.popup=BI.createWidget(t.popup,{type:"bi.icon_combo_popup",chooseType:t.chooseType,items:t.items,value:t.value}),this.popup.on(BI.IconComboPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.iconCombo.hideView(),e.fireEvent(BI.IconCombo.EVENT_CHANGE)}),this.popup.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.iconCombo=BI.createWidget({type:"bi.combo",element:this,direction:t.direction,trigger:t.trigger,container:t.container,adjustLength:t.adjustLength,adjustXOffset:t.adjustXOffset,adjustYOffset:t.adjustYOffset,offsetStyle:t.offsetStyle,el:this.trigger,popup:{el:this.popup,maxWidth:t.maxWidth,maxHeight:t.maxHeight,minWidth:t.minWidth}})},showView:function(){this.iconCombo.showView()},hideView:function(){this.iconCombo.hideView()},setValue:function(e){this.trigger.setValue(e),this.popup.setValue(e)},getValue:function(){var e=this.popup.getValue();return BI.isNull(e)?[]:BI.isArray(e)?e:[e]},populate:function(e){this.options.items=e,this.iconCombo.populate(e)}}),BI.IconCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_combo",BI.IconCombo)},function(e,t){BI.IconComboPopup=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.IconComboPopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi.icon-combo-popup",chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE})},_init:function(){BI.IconComboPopup.superclass._init.apply(this,arguments);var e=this.options,r=this;this.popup=BI.createWidget({type:"bi.button_group",items:BI.createItems(e.items,{type:"bi.single_select_icon_text_item",height:24}),chooseType:e.chooseType,layouts:[{type:"bi.vertical"}],value:e.value}),this.popup.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.IconComboPopup.EVENT_CHANGE,t,n)}),BI.createWidget({type:"bi.vertical",element:this,vgap:5,items:[this.popup]})},populate:function(e){BI.IconComboPopup.superclass.populate.apply(this,arguments),e=BI.createItems(e,{type:"bi.single_select_icon_text_item",height:24}),this.popup.populate(e)},getValue:function(){return this.popup.getValue()},setValue:function(e){this.popup.setValue(e)}}),BI.IconComboPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_combo_popup",BI.IconComboPopup)},function(e,t){BI.IconComboTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.IconComboTrigger.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-icon-combo-trigger",el:{},items:[],iconCls:"",width:24,height:24,isShowDown:!0,value:""})},_init:function(){BI.IconComboTrigger.superclass._init.apply(this,arguments);var e=this.options,t="";BI.isKey(e.value)&&(t=this._digest(e.value,e.items)),this.button=BI.createWidget(e.el,{type:"bi.icon_change_button",cls:"icon-combo-trigger-icon",iconCls:t,disableSelected:!0,width:e.isShowDown?e.width-12:e.width,height:e.height,iconWidth:e.iconWidth,iconHeight:e.iconHeight,selected:BI.isNotEmptyString(t)}),this.down=BI.createWidget({type:"bi.icon_button",disableSelected:!0,cls:"icon-combo-down-icon trigger-triangle-font font-size-12",width:12,height:8,selected:BI.isNotEmptyString(t)}),this.down.setVisible(e.isShowDown),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.button,left:0,right:0,top:0,bottom:0},{el:this.down,right:3,bottom:0}]})},_digest:function(n,e){var r="";return n=BI.isArray(n)?n[0]:n,BI.any(e,function(e,t){if(n===t.value)return r=t.iconCls,!0}),r},populate:function(e){var t=this.options;this.options.items=e||[],this.button.setIcon(t.iconCls),this.button.setSelected(!1),this.down.setSelected(!1)},setValue:function(e){BI.IconComboTrigger.superclass.setValue.apply(this,arguments);var t=this.options,n=this._digest(e,this.options.items);e=BI.isArray(e)?e[0]:e,BI.isNotEmptyString(n)?(this.button.setIcon(n),this.button.setSelected(!0),this.down.setSelected(!0)):(this.button.setIcon(t.iconCls),this.button.setSelected(!1),this.down.setSelected(!1))}}),BI.IconComboTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_combo_trigger",BI.IconComboTrigger)},function(e,t){BI.IconTextValueCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.IconTextValueCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-icon-text-value-combo",height:24,iconHeight:null,iconWidth:null,value:"",attributes:{tabIndex:0}})},_init:function(){BI.IconTextValueCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget({type:"bi.select_icon_text_trigger",cls:"icon-text-value-trigger",items:t.items,height:t.height,text:t.text,iconCls:t.iconCls,value:t.value,iconHeight:t.iconHeight,iconWidth:t.iconWidth,iconWrapperWidth:t.iconWrapperWidth,title:t.title,warningTitle:t.warningTitle}),this.popup=BI.createWidget({type:"bi.icon_text_value_combo_popup",items:t.items,value:t.value,iconHeight:t.iconHeight,iconWidth:t.iconWidth,iconWrapperWidth:t.iconWrapperWidth}),this.popup.on(BI.IconTextValueComboPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.textIconCombo.hideView(),e.fireEvent(BI.IconTextValueCombo.EVENT_CHANGE,arguments)}),this.popup.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.textIconCombo=BI.createWidget({type:"bi.combo",element:this,container:t.container,adjustLength:2,el:this.trigger,popup:{el:this.popup,maxHeight:240,minHeight:25}}),BI.isKey(t.value)&&this.setValue(t.value)},_checkError:function(n){var e;BI.isNull(n)||BI.isEmptyArray(n)||BI.isEmptyString(n)?(this.trigger.options.tipType="success",this.element.removeClass("combo-error")):(n=BI.isArray(n)?n:[n],e=BI.find(this.options.items,function(e,t){return BI.contains(n,t.value)}),BI.isNull(e)?(this.trigger.options.tipType="warning",this.element.removeClass("combo-error").addClass("combo-error")):(this.trigger.options.tipType="success",this.element.removeClass("combo-error")))},setValue:function(e){this.trigger.setValue(e),this.popup.setValue(e),this._checkError(e)},getValue:function(){var e=this.popup.getValue();return BI.isNull(e)?[]:BI.isArray(e)?e:[e]},populate:function(e){this.options.items=e,this.textIconCombo.populate(e)}}),BI.IconTextValueCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_text_value_combo",BI.IconTextValueCombo)},function(e,t){BI.IconTextValueComboPopup=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.IconTextValueComboPopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-icon-text-icon-popup",behaviors:{redmark:function(){return!0}}})},_init:function(){BI.IconTextValueComboPopup.superclass._init.apply(this,arguments);var e=this.options,r=this;this.popup=BI.createWidget({type:"bi.button_group",items:BI.createItems(e.items,{type:"bi.single_select_icon_text_item",height:24,iconHeight:e.iconHeight,iconWidth:e.iconWidth,iconWrapperWidth:e.iconWrapperWidth}),chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,layouts:[{type:"bi.vertical"}],behaviors:e.behaviors,value:e.value}),this.popup.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.IconTextValueComboPopup.EVENT_CHANGE,t,n)}),this.check(),BI.createWidget({type:"bi.vertical",element:this,vgap:5,items:[this.popup]})},populate:function(e,t){BI.IconTextValueComboPopup.superclass.populate.apply(this,arguments);var n=this.options;e=BI.createItems(e,{type:"bi.single_select_icon_text_item",height:24,iconWrapperWidth:n.iconWrapperWidth,iconHeight:n.iconHeight,iconWidth:n.iconWidth}),this.popup.populate(e,t)},getValue:function(){return this.popup.getValue()},setValue:function(e){this.popup.setValue(e)}}),BI.IconTextValueComboPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.icon_text_value_combo_popup",BI.IconTextValueComboPopup)},function(e,t){BI.SearchTextValueCombo=BI.inherit(BI.Widget,{props:{baseCls:"bi-search-text-value-combo",height:24,text:"",items:[],tipType:"",warningTitle:"",attributes:{tabIndex:0}},render:function(){var t=this,e=this.options;return{type:"bi.absolute",items:[{el:{type:"bi.combo",container:e.container,adjustLength:2,toggle:!1,ref:function(){t.combo=this},el:{type:"bi.search_text_value_trigger",cls:"search-text-value-trigger",watermark:e.watermark,ref:function(){t.trigger=this},items:e.items,height:e.height-2,text:e.text,value:e.value,tipType:e.tipType,warningTitle:e.warningTitle,title:e.title,listeners:[{eventName:BI.SearchTextValueTrigger.EVENT_CHANGE,action:function(){t.setValue(this.getValue()),t.combo.hideView(),t.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE)}}]},popup:{el:{type:"bi.text_value_combo_popup",chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,value:e.value,items:e.items,ref:function(){t.popup=this,t.trigger.getSearcher().setAdapter(t.popup)},listeners:[{eventName:BI.TextValueComboPopup.EVENT_CHANGE,action:function(){t.setValue(this.getValue()),t.combo.hideView(),t.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE)}}]},value:e.value,maxHeight:252,minHeight:25},listeners:[{eventName:BI.Combo.EVENT_AFTER_HIDEVIEW,action:function(){t.trigger.stopEditing()}},{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW)}}],hideChecker:function(e){return 0===t.triggerBtn.element.find(e.target).length}},left:0,right:0,bottom:0,top:0},{el:{type:"bi.trigger_icon_button",cls:"trigger-icon-button",ref:function(){t.triggerBtn=this},width:e.height,height:e.height,handler:function(){t.combo.isViewVisible()?t.combo.hideView():t.combo.showView()}},right:0,bottom:0,top:0}]}},mounted:function(){var e=this.options;BI.isKey(e.value)&&this._checkError(e.value)},_checkError:function(n){var e;BI.isNull(n)||BI.isEmptyArray(n)||BI.isEmptyString(n)?(this.trigger.options.tipType="success",this.element.removeClass("combo-error")):(n=BI.isArray(n)?n:[n],e=BI.find(this.options.items,function(e,t){return BI.contains(n,t.value)}),BI.isNull(e)?(this.element.removeClass("combo-error").addClass("combo-error"),this.trigger.attr("tipType","warning")):(this.element.removeClass("combo-error"),this.trigger.attr("tipType","success")))},populate:function(e){this.options.items=e,this.combo.populate(e)},setValue:function(e){this.combo.setValue(e),this._checkError(e)},getValue:function(){var e=this.combo.getValue();return BI.isNull(e)?[]:BI.isArray(e)?e:[e]}}),BI.SearchTextValueCombo.EVENT_CHANGE="EVENT_CHANGE",BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.search_text_value_combo",BI.SearchTextValueCombo)},function(e,t){BI.SearchTextValueComboPopup=BI.inherit(BI.Pane,{props:{baseCls:"bi-search-text-value-popup"},render:function(){var r=this,e=this.options;return{type:"bi.vertical",vgap:5,items:[{type:"bi.button_group",ref:function(){r.popup=this},items:BI.createItems(e.items,{type:"bi.single_select_item",textAlign:e.textAlign,height:24}),chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,layouts:[{type:"bi.vertical"}],behaviors:{redmark:function(){return!0}},value:e.value,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.SearchTextValueComboPopup.EVENT_CHANGE,t,n)}}]}]}},mounted:function(){this.check()},populate:function(e,t,n){var r=BI.concat(e,t);BI.SearchTextValueComboPopup.superclass.populate.apply(this,r),r=BI.createItems(r,{type:"bi.single_select_item",height:24}),this.popup.populate(r,n)},getValue:function(){return this.popup.getValue()},setValue:function(e){this.popup.setValue(e)}}),BI.SearchTextValueComboPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.search_text_value_combo_popup",BI.SearchTextValueComboPopup)},function(e,t){BI.SearchTextValueTrigger=BI.inherit(BI.Trigger,{props:function(){return{extraCls:"bi-search-text-value-trigger bi-border",height:24,watermark:BI.i18nText("BI-Basic_Search")}},render:function(){var e=this,i=this.options;return{type:"bi.htape",items:[{el:{type:"bi.searcher",ref:function(){e.searcher=this},isAutoSearch:!1,el:{type:"bi.state_editor",ref:function(){e.editor=this},watermark:i.watermark,defaultText:i.text,text:this._digest(i.value,i.items),value:i.value,height:i.height,tipText:""},popup:{type:"bi.search_text_value_combo_popup",cls:"bi-card",chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE},onSearch:function(e,t){var n=e.keyword,r=BI.Func.getSearchResult(i.items,n);t(r.match,r.find)},listeners:[{eventName:BI.Searcher.EVENT_CHANGE,action:function(){e.fireEvent(BI.SearchTextValueTrigger.EVENT_CHANGE)}}]}},{el:{type:"bi.layout",width:24},width:24}]}},_setState:function(e){this.editor.setState(e)},_digest:function(n,e){var t=this.options;n=BI.isArray(n)?n:[n];var r=[],i=BI.Tree.transformToArrayFormat(e);return BI.each(i,function(e,t){BI.deepContains(n,t.value)&&!BI.contains(r,t.text||t.value)&&r.push(t.text||t.value)}),0<r.length?r.join(","):BI.isFunction(t.text)?t.text():t.text},stopEditing:function(){this.searcher.stopSearch()},getSearcher:function(){return this.searcher},populate:function(e){this.options.items=e},setValue:function(e){this._setState(this._digest(e,this.options.items))},getValue:function(){return this.searcher.getValue()}}),BI.SearchTextValueTrigger.EVENT_SEARCHING="EVENT_SEARCHING",BI.SearchTextValueTrigger.EVENT_STOP="EVENT_STOP",BI.SearchTextValueTrigger.EVENT_START="EVENT_START",BI.SearchTextValueTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.search_text_value_trigger",BI.SearchTextValueTrigger)},function(e,t){BI.TextValueCheckCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.TextValueCheckCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-text-value-check-combo",width:100,height:24,chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,value:"",attributes:{tabIndex:0}})},_init:function(){BI.TextValueCheckCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget({type:"bi.select_text_trigger",cls:"text-value-trigger",items:t.items,height:t.height,text:t.text,value:t.value}),this.popup=BI.createWidget({type:"bi.text_value_check_combo_popup",chooseType:t.chooseType,items:t.items,value:t.value}),this.popup.on(BI.TextValueCheckComboPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.textIconCheckCombo.hideView(),e.fireEvent(BI.TextValueCheckCombo.EVENT_CHANGE)}),this.popup.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.textIconCheckCombo=BI.createWidget({type:"bi.combo",container:t.container,element:this,adjustLength:2,el:this.trigger,popup:{el:this.popup,maxHeight:300}}),BI.isKey(t.value)&&this.setValue(t.value)},setTitle:function(e){this.trigger.setTitle(e)},setValue:function(e){this.trigger.setValue(e),this.popup.setValue(e)},setWarningTitle:function(e){this.trigger.setWarningTitle(e)},getValue:function(){var e=this.popup.getValue();return BI.isNull(e)?[]:BI.isArray(e)?e:[e]},populate:function(e){this.options.items=e,this.textIconCheckCombo.populate(e)}}),BI.TextValueCheckCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_value_check_combo",BI.TextValueCheckCombo)},function(e,t){BI.TextValueCheckComboPopup=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.TextValueCheckComboPopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-text-icon-popup",chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE})},_init:function(){BI.TextValueCheckComboPopup.superclass._init.apply(this,arguments);var e=this.options,r=this;this.popup=BI.createWidget({type:"bi.button_group",items:this._formatItems(e.items),chooseType:e.chooseType,layouts:[{type:"bi.vertical"}],value:e.value}),this.popup.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.TextValueCheckComboPopup.EVENT_CHANGE,t,n)}),BI.createWidget({type:"bi.vertical",element:this,vgap:5,items:[this.popup]})},_formatItems:function(e){return BI.map(e,function(e,t){return BI.extend({type:"bi.single_select_item",cls:"bi-list-item",height:24},t)})},populate:function(e){BI.TextValueCheckComboPopup.superclass.populate.apply(this,arguments),this.popup.populate(this._formatItems(e))},getValue:function(){return this.popup.getValue()},setValue:function(e){this.popup.setValue(e)}}),BI.TextValueCheckComboPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_value_check_combo_popup",BI.TextValueCheckComboPopup)},function(e,t){BI.TextValueCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.TextValueCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-text-value-combo",height:24,chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,text:"",value:"",attributes:{tabIndex:0}})},_init:function(){BI.TextValueCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget({type:"bi.select_text_trigger",cls:"text-value-trigger",items:t.items,height:t.height,text:t.text,value:t.value,warningTitle:t.warningTitle}),this.popup=BI.createWidget({type:"bi.text_value_combo_popup",chooseType:t.chooseType,value:t.value,items:t.items}),this.popup.on(BI.TextValueComboPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.textIconCombo.hideView(),e.fireEvent(BI.TextValueCombo.EVENT_CHANGE,arguments)}),this.popup.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.textIconCombo=BI.createWidget({type:"bi.combo",container:t.container,element:this,adjustLength:2,el:this.trigger,popup:{el:this.popup,maxHeight:240,minHeight:25}}),BI.isKey(t.value)&&this._checkError(t.value)},_checkError:function(n){var e;BI.isNull(n)||BI.isEmptyArray(n)||BI.isEmptyString(n)?(this.trigger.options.tipType="success",this.element.removeClass("combo-error")):(n=BI.isArray(n)?n:[n],e=BI.find(this.options.items,function(e,t){return BI.contains(n,t.value)}),BI.isNull(e)?(this.trigger.setTipType("warning"),this.element.removeClass("combo-error").addClass("combo-error")):(this.trigger.setTipType("success"),this.element.removeClass("combo-error")))},setValue:function(e){this.trigger.setValue(e),this.popup.setValue(e),this._checkError(e)},getValue:function(){var e=this.popup.getValue();return BI.isNull(e)?[]:BI.isArray(e)?e:[e]},populate:function(e){this.options.items=e,this.textIconCombo.populate(e)}}),BI.TextValueCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_value_combo",BI.TextValueCombo)},function(e,t){BI.SmallTextValueCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SmallTextValueCombo.superclass._defaultConfig.apply(this,arguments),{width:100,height:20,chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,el:{},text:""})},_init:function(){BI.SmallTextValueCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget(t.el,{type:"bi.small_select_text_trigger",items:t.items,height:t.height,text:t.text}),this.popup=BI.createWidget({type:"bi.text_value_combo_popup",chooseType:t.chooseType,items:t.items}),this.popup.on(BI.TextValueComboPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.SmallTextValueCombo.hideView(),e.fireEvent(BI.SmallTextValueCombo.EVENT_CHANGE)}),this.popup.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.SmallTextValueCombo=BI.createWidget({type:"bi.combo",element:this,container:t.container,adjustLength:2,el:this.trigger,popup:{el:this.popup,maxHeight:240,minHeight:25}})},setValue:function(e){this.trigger.setValue(e),this.popup.setValue(e)},getValue:function(){return this.popup.getValue()},populate:function(e){this.options.items=e,this.SmallTextValueCombo.populate(e)}}),BI.SmallTextValueCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.small_text_value_combo",BI.SmallTextValueCombo)},function(e,t){BI.TextValueComboPopup=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.TextValueComboPopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-text-icon-popup",chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE})},_init:function(){BI.TextValueComboPopup.superclass._init.apply(this,arguments);var e=this.options,r=this;this.popup=BI.createWidget({type:"bi.button_group",items:BI.createItems(e.items,{type:"bi.single_select_item",textAlign:e.textAlign,height:24}),chooseType:e.chooseType,layouts:[{type:"bi.vertical"}],value:e.value}),this.popup.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.TextValueComboPopup.EVENT_CHANGE,t,n)}),this.check(),BI.createWidget({type:"bi.vertical",element:this,vgap:5,items:[this.popup]})},populate:function(e){BI.TextValueComboPopup.superclass.populate.apply(this,arguments),e=BI.createItems(e,{type:"bi.single_select_item",height:24}),this.popup.populate(e)},getValue:function(){return this.popup.getValue()},setValue:function(e){this.popup.setValue(e)}}),BI.TextValueComboPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_value_combo_popup",BI.TextValueComboPopup)},function(e,t){BI.ClearEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.ClearEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-clear-editor",height:24,errorText:"",watermark:"",validationChecker:BI.emptyFn,quitChecker:BI.emptyFn})},_init:function(){BI.ClearEditor.superclass._init.apply(this,arguments);var t=this,e=this.options;this.editor=BI.createWidget({type:"bi.editor",height:e.height,watermark:e.watermark,allowBlank:!0,errorText:e.errorText,validationChecker:e.validationChecker,quitChecker:e.quitChecker,value:e.value}),this.clear=BI.createWidget({type:"bi.icon_button",stopEvent:!0,cls:"search-close-h-font"}),this.clear.on(BI.IconButton.EVENT_CHANGE,function(){t.setValue(""),t.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.STOPEDIT),t.fireEvent(BI.ClearEditor.EVENT_CLEAR)}),BI.createWidget({element:this,type:"bi.htape",items:[{el:this.editor},{el:this.clear,width:24}]}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_FOCUS,function(){t.fireEvent(BI.ClearEditor.EVENT_FOCUS)}),this.editor.on(BI.Editor.EVENT_BLUR,function(){t.fireEvent(BI.ClearEditor.EVENT_BLUR)}),this.editor.on(BI.Editor.EVENT_CLICK,function(){t.fireEvent(BI.ClearEditor.EVENT_CLICK)}),this.editor.on(BI.Editor.EVENT_CHANGE,function(){t._checkClear(),t.fireEvent(BI.ClearEditor.EVENT_CHANGE)}),this.editor.on(BI.Editor.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.ClearEditor.EVENT_KEY_DOWN,e)}),this.editor.on(BI.Editor.EVENT_SPACE,function(){t.fireEvent(BI.ClearEditor.EVENT_SPACE)}),this.editor.on(BI.Editor.EVENT_BACKSPACE,function(){t.fireEvent(BI.ClearEditor.EVENT_BACKSPACE)}),this.editor.on(BI.Editor.EVENT_VALID,function(){t.fireEvent(BI.ClearEditor.EVENT_VALID)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){t.fireEvent(BI.ClearEditor.EVENT_ERROR)}),this.editor.on(BI.Editor.EVENT_ENTER,function(){t.fireEvent(BI.ClearEditor.EVENT_ENTER)}),this.editor.on(BI.Editor.EVENT_RESTRICT,function(){t.fireEvent(BI.ClearEditor.EVENT_RESTRICT)}),this.editor.on(BI.Editor.EVENT_EMPTY,function(){t._checkClear(),t.fireEvent(BI.ClearEditor.EVENT_EMPTY)}),this.editor.on(BI.Editor.EVENT_REMOVE,function(){t.fireEvent(BI.ClearEditor.EVENT_REMOVE)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){t.fireEvent(BI.ClearEditor.EVENT_CONFIRM)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){t.fireEvent(BI.ClearEditor.EVENT_CHANGE_CONFIRM)}),this.editor.on(BI.Editor.EVENT_START,function(){t.fireEvent(BI.ClearEditor.EVENT_START)}),this.editor.on(BI.Editor.EVENT_PAUSE,function(){t.fireEvent(BI.ClearEditor.EVENT_PAUSE)}),this.editor.on(BI.Editor.EVENT_STOP,function(){t.fireEvent(BI.ClearEditor.EVENT_STOP)}),BI.isKey(e.value)?this.clear.visible():this.clear.invisible()},_checkClear:function(){this.getValue()?this.clear.visible():this.clear.invisible()},setWaterMark:function(e){this.options.watermark=e,this.editor.setWaterMark(e)},focus:function(){this.editor.focus()},blur:function(){this.editor.blur()},getValue:function(){if(this.isValid())return this.editor.getValue()},setValue:function(e){this.editor.setValue(e),BI.isKey(e)&&this.clear.visible()},isValid:function(){return this.editor.isValid()}}),BI.ClearEditor.EVENT_CHANGE="EVENT_CHANGE",BI.ClearEditor.EVENT_FOCUS="EVENT_FOCUS",BI.ClearEditor.EVENT_BLUR="EVENT_BLUR",BI.ClearEditor.EVENT_CLICK="EVENT_CLICK",BI.ClearEditor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.ClearEditor.EVENT_SPACE="EVENT_SPACE",BI.ClearEditor.EVENT_BACKSPACE="EVENT_BACKSPACE",BI.ClearEditor.EVENT_CLEAR="EVENT_CLEAR",BI.ClearEditor.EVENT_START="EVENT_START",BI.ClearEditor.EVENT_PAUSE="EVENT_PAUSE",BI.ClearEditor.EVENT_STOP="EVENT_STOP",BI.ClearEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.ClearEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.ClearEditor.EVENT_VALID="EVENT_VALID",BI.ClearEditor.EVENT_ERROR="EVENT_ERROR",BI.ClearEditor.EVENT_ENTER="EVENT_ENTER",BI.ClearEditor.EVENT_RESTRICT="EVENT_RESTRICT",BI.ClearEditor.EVENT_REMOVE="EVENT_REMOVE",BI.ClearEditor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.clear_editor",BI.ClearEditor)},function(e,t){BI.ShelterEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.ShelterEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-shelter-editor",hgap:4,vgap:2,lgap:0,rgap:0,tgap:0,bgap:0,validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!0,watermark:"",errorText:"",height:24,textAlign:"left"})},_init:function(){BI.ShelterEditor.superclass._init.apply(this,arguments);var t=this,e=this.options;this.editor=BI.createWidget({type:"bi.editor",height:e.height,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,value:e.value,validationChecker:e.validationChecker,quitChecker:e.quitChecker,allowBlank:e.allowBlank,watermark:e.watermark,errorText:e.errorText}),this.text=BI.createWidget({type:"bi.text_button",cls:"shelter-editor-text",title:e.title,warningTitle:e.warningTitle,tipType:e.tipType,textAlign:e.textAlign,height:e.height,hgap:e.hgap+2}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.text,left:0,right:0,top:0,bottom:0}]}),this.text.on(BI.Controller.EVENT_CHANGE,function(){(arguments[2]=t).fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.text.on(BI.TextButton.EVENT_CHANGE,function(){t.fireEvent(BI.ShelterEditor.EVENT_CLICK_LABEL)}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_FOCUS,function(){t.fireEvent(BI.ShelterEditor.EVENT_FOCUS,arguments)}),this.editor.on(BI.Editor.EVENT_BLUR,function(){t.fireEvent(BI.ShelterEditor.EVENT_BLUR,arguments)}),this.editor.on(BI.Editor.EVENT_CLICK,function(){t.fireEvent(BI.ShelterEditor.EVENT_CLICK,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE,function(){t.fireEvent(BI.ShelterEditor.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.ShelterEditor.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.Editor.EVENT_VALID,function(){t.fireEvent(BI.ShelterEditor.EVENT_VALID,arguments)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){t._showHint(),t._checkText(),t.fireEvent(BI.ShelterEditor.EVENT_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){t._showHint(),t._checkText(),t.fireEvent(BI.ShelterEditor.EVENT_CHANGE_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_START,function(){t.fireEvent(BI.ShelterEditor.EVENT_START,arguments)}),this.editor.on(BI.Editor.EVENT_PAUSE,function(){t.fireEvent(BI.ShelterEditor.EVENT_PAUSE,arguments)}),this.editor.on(BI.Editor.EVENT_STOP,function(){t.fireEvent(BI.ShelterEditor.EVENT_STOP,arguments)}),this.editor.on(BI.Editor.EVENT_SPACE,function(){t.fireEvent(BI.ShelterEditor.EVENT_SPACE,arguments)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){t._checkText(),t.fireEvent(BI.ShelterEditor.EVENT_ERROR,arguments)}),this.editor.on(BI.Editor.EVENT_ENTER,function(){t.fireEvent(BI.ShelterEditor.EVENT_ENTER,arguments)}),this.editor.on(BI.Editor.EVENT_RESTRICT,function(){t.fireEvent(BI.ShelterEditor.EVENT_RESTRICT,arguments)}),this.editor.on(BI.Editor.EVENT_EMPTY,function(){t.fireEvent(BI.ShelterEditor.EVENT_EMPTY,arguments)}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[this.editor]}),this._showHint(),t._checkText()},_checkText:function(){var e=this.options;""===this.editor.getValue()?(this.text.setValue(e.watermark||""),this.text.element.addClass("bi-water-mark")):(this.text.setValue(this.editor.getValue()),this.text.element.removeClass("bi-water-mark")),BI.isKey(e.keyword)&&this.text.doRedMark(e.keyword)},_showInput:function(){this.editor.visible(),this.text.invisible()},_showHint:function(){this.editor.invisible(),this.text.visible()},setWaterMark:function(e){this.options.watermark=e,this.editor.setWaterMark(e)},setTitle:function(e){this.text.setTitle(e)},setWarningTitle:function(e){this.text.setWarningTitle(e)},focus:function(){this._showInput(),this.editor.focus()},blur:function(){this.editor.blur(),this._showHint(),this._checkText()},doRedMark:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},isValid:function(){return this.editor.isValid()},setErrorText:function(e){this.editor.setErrorText(e)},getErrorText:function(){return this.editor.getErrorText()},isEditing:function(){return this.editor.isEditing()},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},setTextStyle:function(e){this.text.setStyle(e)},setValue:function(e){this.options;this.editor.setValue(e),this._checkText()},getValue:function(){return this.editor.getValue()},getState:function(){return this.text.getValue()},setState:function(e){this._showHint(),this.text.setValue(e)}}),BI.ShelterEditor.EVENT_CHANGE="EVENT_CHANGE",BI.ShelterEditor.EVENT_FOCUS="EVENT_FOCUS",BI.ShelterEditor.EVENT_BLUR="EVENT_BLUR",BI.ShelterEditor.EVENT_CLICK="EVENT_CLICK",BI.ShelterEditor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.ShelterEditor.EVENT_CLICK_LABEL="EVENT_CLICK_LABEL",BI.ShelterEditor.EVENT_START="EVENT_START",BI.ShelterEditor.EVENT_PAUSE="EVENT_PAUSE",BI.ShelterEditor.EVENT_STOP="EVENT_STOP",BI.ShelterEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.ShelterEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.ShelterEditor.EVENT_VALID="EVENT_VALID",BI.ShelterEditor.EVENT_ERROR="EVENT_ERROR",BI.ShelterEditor.EVENT_ENTER="EVENT_ENTER",BI.ShelterEditor.EVENT_RESTRICT="EVENT_RESTRICT",BI.ShelterEditor.EVENT_SPACE="EVENT_SPACE",BI.ShelterEditor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.shelter_editor",BI.ShelterEditor)},function(e,t){BI.SignEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.SignEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-sign-editor",hgap:4,vgap:2,lgap:0,rgap:0,tgap:0,bgap:0,validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!0,watermark:"",errorText:"",textAlign:"left",height:24})},_init:function(){BI.SignEditor.superclass._init.apply(this,arguments);var t=this,e=this.options;this.editor=BI.createWidget({type:"bi.editor",height:e.height,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,value:e.value,validationChecker:e.validationChecker,quitChecker:e.quitChecker,allowBlank:e.allowBlank,watermark:e.watermark,errorText:e.errorText}),this.text=BI.createWidget({type:"bi.text_button",cls:"sign-editor-text",title:e.title,warningTitle:e.warningTitle,tipType:e.tipType,textAlign:e.textAlign,height:e.height,hgap:e.hgap+2,handler:function(){t._showInput(),t.editor.focus(),t.editor.selectAll()}}),this.text.on(BI.TextButton.EVENT_CHANGE,function(){BI.nextTick(function(){t.fireEvent(BI.SignEditor.EVENT_CLICK_LABEL)})}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.text,left:0,right:0,top:0,bottom:0}]}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_FOCUS,function(){t.fireEvent(BI.SignEditor.EVENT_FOCUS,arguments)}),this.editor.on(BI.Editor.EVENT_BLUR,function(){t.fireEvent(BI.SignEditor.EVENT_BLUR,arguments)}),this.editor.on(BI.Editor.EVENT_CLICK,function(){t.fireEvent(BI.SignEditor.EVENT_CLICK,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE,function(){t.fireEvent(BI.SignEditor.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.SignEditor.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.Editor.EVENT_VALID,function(){t.fireEvent(BI.SignEditor.EVENT_VALID,arguments)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){t._showHint(),t._checkText(),t.fireEvent(BI.SignEditor.EVENT_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){t._showHint(),t._checkText(),t.fireEvent(BI.SignEditor.EVENT_CHANGE_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_START,function(){t.fireEvent(BI.SignEditor.EVENT_START,arguments)}),this.editor.on(BI.Editor.EVENT_PAUSE,function(){t.fireEvent(BI.SignEditor.EVENT_PAUSE,arguments)}),this.editor.on(BI.Editor.EVENT_STOP,function(){t.fireEvent(BI.SignEditor.EVENT_STOP,arguments)}),this.editor.on(BI.Editor.EVENT_SPACE,function(){t.fireEvent(BI.SignEditor.EVENT_SPACE,arguments)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){t._checkText(),t.fireEvent(BI.SignEditor.EVENT_ERROR,arguments)}),this.editor.on(BI.Editor.EVENT_ENTER,function(){t.fireEvent(BI.SignEditor.EVENT_ENTER,arguments)}),this.editor.on(BI.Editor.EVENT_RESTRICT,function(){t.fireEvent(BI.SignEditor.EVENT_RESTRICT,arguments)}),this.editor.on(BI.Editor.EVENT_EMPTY,function(){t.fireEvent(BI.SignEditor.EVENT_EMPTY,arguments)}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[this.editor]}),this._showHint(),t._checkText()},_checkText:function(){var e=this.options;BI.nextTick(BI.bind(function(){""===this.editor.getValue()?(this.text.setValue(e.watermark||""),this.text.element.addClass("bi-water-mark")):(this.text.setValue(this.editor.getValue()),this.text.element.removeClass("bi-water-mark"),BI.isKey(e.keyword)&&this.text.doRedMark(e.keyword))},this))},_showInput:function(){this.editor.visible(),this.text.invisible()},_showHint:function(){this.editor.invisible(),this.text.visible()},setTitle:function(e){this.text.setTitle(e)},setWarningTitle:function(e){this.text.setWarningTitle(e)},setWaterMark:function(e){this.options.watermark=e,this.editor.setWaterMark(e)},focus:function(){this._showInput(),this.editor.focus()},blur:function(){this.editor.blur(),this._showHint(),this._checkText()},doRedMark:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},isValid:function(){return this.editor.isValid()},setErrorText:function(e){this.editor.setErrorText(e)},getErrorText:function(){return this.editor.getErrorText()},isEditing:function(){return this.editor.isEditing()},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},setValue:function(e){this.editor.setValue(e),this._checkText()},getValue:function(){return this.editor.getValue()},getState:function(){return this.text.getValue()},setState:function(e){this._showHint(),this.text.setValue(e)}}),BI.SignEditor.EVENT_CHANGE="EVENT_CHANGE",BI.SignEditor.EVENT_FOCUS="EVENT_FOCUS",BI.SignEditor.EVENT_BLUR="EVENT_BLUR",BI.SignEditor.EVENT_CLICK="EVENT_CLICK",BI.SignEditor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.SignEditor.EVENT_CLICK_LABEL="EVENT_CLICK_LABEL",BI.SignEditor.EVENT_START="EVENT_START",BI.SignEditor.EVENT_PAUSE="EVENT_PAUSE",BI.SignEditor.EVENT_STOP="EVENT_STOP",BI.SignEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.SignEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.SignEditor.EVENT_VALID="EVENT_VALID",BI.SignEditor.EVENT_ERROR="EVENT_ERROR",BI.SignEditor.EVENT_ENTER="EVENT_ENTER",BI.SignEditor.EVENT_RESTRICT="EVENT_RESTRICT",BI.SignEditor.EVENT_SPACE="EVENT_SPACE",BI.SignEditor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.sign_editor",BI.SignEditor)},function(e,t){BI.StateEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.StateEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-state-editor",hgap:4,vgap:2,lgap:0,rgap:0,tgap:0,bgap:0,validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!0,watermark:"",errorText:"",height:24,defaultText:"",text:BI.i18nText("BI-Basic_Unrestricted")})},_init:function(){BI.StateEditor.superclass._init.apply(this,arguments);var t=this,e=this.options;this.editor=BI.createWidget({type:"bi.editor",height:e.height,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,value:e.value,validationChecker:e.validationChecker,quitChecker:e.quitChecker,allowBlank:e.allowBlank,watermark:e.watermark,errorText:e.errorText}),this.text=BI.createWidget({type:"bi.text_button",cls:"bi-water-mark tip-text-style",textAlign:"left",height:e.height,text:e.text,hgap:e.hgap+2,handler:function(){t._showInput(),t.editor.focus(),t.editor.setValue("")},title:BI.isNotNull(e.tipText)?e.tipText:function(){var e="";return BI.isString(t.stateValue)&&(e=t.stateValue),BI.isArray(t.stateValue)&&1===t.stateValue.length&&(e=t.stateValue[0]),e},warningTitle:e.warningTitle,tipType:e.tipType}),this.text.on(BI.TextButton.EVENT_CHANGE,function(){BI.nextTick(function(){t.fireEvent(BI.StateEditor.EVENT_CLICK_LABEL)})}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.text,left:0,right:0,top:0,bottom:0}]}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_FOCUS,function(){t.fireEvent(BI.StateEditor.EVENT_FOCUS,arguments)}),this.editor.on(BI.Editor.EVENT_BLUR,function(){t.fireEvent(BI.StateEditor.EVENT_BLUR,arguments)}),this.editor.on(BI.Editor.EVENT_CLICK,function(){t.fireEvent(BI.StateEditor.EVENT_CLICK,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE,function(){t.fireEvent(BI.StateEditor.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.StateEditor.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.Editor.EVENT_VALID,function(){t.fireEvent(BI.StateEditor.EVENT_VALID,arguments)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){t._showHint(),t.fireEvent(BI.StateEditor.EVENT_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){t._showHint(),t.fireEvent(BI.StateEditor.EVENT_CHANGE_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_START,function(){t.fireEvent(BI.StateEditor.EVENT_START,arguments)}),this.editor.on(BI.Editor.EVENT_PAUSE,function(){t.fireEvent(BI.StateEditor.EVENT_PAUSE,arguments)}),this.editor.on(BI.Editor.EVENT_STOP,function(){t.fireEvent(BI.StateEditor.EVENT_STOP,arguments)}),this.editor.on(BI.Editor.EVENT_SPACE,function(){t.fireEvent(BI.StateEditor.EVENT_SPACE,arguments)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){t.fireEvent(BI.StateEditor.EVENT_ERROR,arguments)}),this.editor.on(BI.Editor.EVENT_ENTER,function(){t.fireEvent(BI.StateEditor.EVENT_ENTER,arguments)}),this.editor.on(BI.Editor.EVENT_RESTRICT,function(){t.fireEvent(BI.StateEditor.EVENT_RESTRICT,arguments)}),this.editor.on(BI.Editor.EVENT_EMPTY,function(){t.fireEvent(BI.StateEditor.EVENT_EMPTY,arguments)}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[this.editor]}),this._showHint(),BI.isNotNull(e.text)&&this.setState(e.text)},setWaterMark:function(e){this.options.watermark=e,this.editor.setWaterMark(e)},doRedMark:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},focus:function(){!1===this.options.disabled&&(this._showInput(),this.editor.focus())},blur:function(){this.editor.blur(),this._showHint()},_showInput:function(){this.editor.visible(),this.text.invisible()},_showHint:function(){this.editor.invisible(),this.text.visible()},_setText:function(e){this.text.setText(e),this.text.setTitle(e)},isValid:function(){return this.editor.isValid()},setErrorText:function(e){this.editor.setErrorText(e)},getErrorText:function(){return this.editor.getErrorText()},isEditing:function(){return this.editor.isEditing()},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},setValue:function(e){this.editor.setValue(e)},getValue:function(){return this.editor.getValue()},getState:function(){return this.editor.getValue().match(/[^\s]+/g)},setState:function(e){var t=this.options,n=BI.isFunction(t.defaultText)?t.defaultText():t.defaultText;if(BI.StateEditor.superclass.setValue.apply(this,arguments),this.stateValue=e,!BI.isNumber(e))return BI.isString(e)?(this._setText(e),void(BI.isKey(n)&&n===e?this.text.element.addClass("bi-water-mark"):this.text.element.removeClass("bi-water-mark"))):void(BI.isArray(e)&&(BI.isEmpty(e)?(this._setText(BI.isKey(n)?n:t.text),BI.isKey(n)?this.text.element.addClass("bi-water-mark"):this.text.element.removeClass("bi-water-mark")):(1===e.length?this._setText(e[0]):this._setText(BI.i18nText("BI-Select_Part")),this.text.element.removeClass("bi-water-mark"))));e===BI.Selection.All?(this._setText(BI.i18nText("BI-Select_All")),this.text.element.removeClass("bi-water-mark")):e===BI.Selection.Multi?(this._setText(BI.i18nText("BI-Select_Part")),this.text.element.removeClass("bi-water-mark")):(this._setText(BI.isKey(n)?n:t.text),BI.isKey(n)?this.text.element.addClass("bi-water-mark"):this.text.element.removeClass("bi-water-mark"))},setTipType:function(e){this.text.options.tipType=e},getText:function(){return this.text.getText()}}),BI.StateEditor.EVENT_CHANGE="EVENT_CHANGE",BI.StateEditor.EVENT_FOCUS="EVENT_FOCUS",BI.StateEditor.EVENT_BLUR="EVENT_BLUR",BI.StateEditor.EVENT_CLICK="EVENT_CLICK",BI.StateEditor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.StateEditor.EVENT_CLICK_LABEL="EVENT_CLICK_LABEL",BI.StateEditor.EVENT_START="EVENT_START",BI.StateEditor.EVENT_PAUSE="EVENT_PAUSE",BI.StateEditor.EVENT_STOP="EVENT_STOP",BI.StateEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.StateEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.StateEditor.EVENT_VALID="EVENT_VALID",BI.StateEditor.EVENT_ERROR="EVENT_ERROR",BI.StateEditor.EVENT_ENTER="EVENT_ENTER",BI.StateEditor.EVENT_RESTRICT="EVENT_RESTRICT",BI.StateEditor.EVENT_SPACE="EVENT_SPACE",BI.StateEditor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.state_editor",BI.StateEditor)},function(e,t){BI.SimpleStateEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.SimpleStateEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-simple-state-editor",hgap:4,vgap:2,lgap:0,rgap:0,tgap:0,bgap:0,validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,mouseOut:!1,allowBlank:!0,watermark:"",errorText:"",height:24,text:BI.i18nText("BI-Basic_Unrestricted")})},_init:function(){BI.SimpleStateEditor.superclass._init.apply(this,arguments);var t=this,e=this.options;this.editor=BI.createWidget({type:"bi.editor",height:e.height,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,value:e.value,validationChecker:e.validationChecker,quitChecker:e.quitChecker,allowBlank:e.allowBlank,watermark:e.watermark,errorText:e.errorText}),this.text=BI.createWidget({type:"bi.text_button",cls:"bi-water-mark",textAlign:"left",text:e.text,height:e.height,hgap:e.hgap+2,handler:function(){t._showInput(),t.editor.focus(),t.editor.setValue("")}}),this.text.on(BI.TextButton.EVENT_CHANGE,function(){BI.nextTick(function(){t.fireEvent(BI.SimpleStateEditor.EVENT_CLICK_LABEL)})}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.text,left:0,right:0,top:0,bottom:0}]}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_FOCUS,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_FOCUS,arguments)}),this.editor.on(BI.Editor.EVENT_BLUR,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_BLUR,arguments)}),this.editor.on(BI.Editor.EVENT_CLICK,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_CLICK,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.SimpleStateEditor.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.Editor.EVENT_VALID,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_VALID,arguments)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){t._showHint(),t.fireEvent(BI.SimpleStateEditor.EVENT_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){t._showHint(),t.fireEvent(BI.SimpleStateEditor.EVENT_CHANGE_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_START,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_START,arguments)}),this.editor.on(BI.Editor.EVENT_PAUSE,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_PAUSE,arguments)}),this.editor.on(BI.Editor.EVENT_STOP,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_STOP,arguments)}),this.editor.on(BI.Editor.EVENT_SPACE,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_SPACE,arguments)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_ERROR,arguments)}),this.editor.on(BI.Editor.EVENT_ENTER,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_ENTER,arguments)}),this.editor.on(BI.Editor.EVENT_RESTRICT,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_RESTRICT,arguments)}),this.editor.on(BI.Editor.EVENT_EMPTY,function(){t.fireEvent(BI.SimpleStateEditor.EVENT_EMPTY,arguments)}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[this.editor]}),this._showHint(),BI.isNotNull(e.text)&&this.setState(e.text)},setWaterMark:function(e){this.options.watermark=e,this.editor.setWaterMark(e)},doRedMark:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},focus:function(){this._showInput(),this.editor.focus()},blur:function(){this.editor.blur(),this._showHint()},_showInput:function(){this.editor.visible(),this.text.invisible()},_showHint:function(){this.editor.invisible(),this.text.visible()},_setText:function(e){this.text.setText(e),this.text.setTitle(e)},isValid:function(){return this.editor.isValid()},setErrorText:function(e){this.editor.setErrorText(e)},getErrorText:function(){return this.editor.getErrorText()},isEditing:function(){return this.editor.isEditing()},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},setValue:function(e){this.editor.setValue(e)},getValue:function(){return this.editor.getValue()},getState:function(){return this.editor.getValue().match(/[^\s]+/g)},setState:function(e){var t=this.options;BI.SimpleStateEditor.superclass.setValue.apply(this,arguments),BI.isNumber(e)?e===BI.Selection.All||e===BI.Selection.Multi?(this._setText(BI.i18nText("BI-Already_Selected")),this.text.element.removeClass("bi-water-mark")):(this._setText(t.text),this.text.element.addClass("bi-water-mark")):BI.isArray(e)&&1!==e.length?BI.isEmpty(e)?(this._setText(t.text),this.text.element.addClass("bi-water-mark")):(this._setText(BI.i18nText("BI-Already_Selected")),this.text.element.removeClass("bi-water-mark")):(this._setText(e),this.text.element.removeClass("bi-water-mark"))},getText:function(){return this.text.getText()}}),BI.SimpleStateEditor.EVENT_CHANGE="EVENT_CHANGE",BI.SimpleStateEditor.EVENT_FOCUS="EVENT_FOCUS",BI.SimpleStateEditor.EVENT_BLUR="EVENT_BLUR",BI.SimpleStateEditor.EVENT_CLICK="EVENT_CLICK",BI.SimpleStateEditor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.SimpleStateEditor.EVENT_CLICK_LABEL="EVENT_CLICK_LABEL",BI.SimpleStateEditor.EVENT_START="EVENT_START",BI.SimpleStateEditor.EVENT_PAUSE="EVENT_PAUSE",BI.SimpleStateEditor.EVENT_STOP="EVENT_STOP",BI.SimpleStateEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.SimpleStateEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.SimpleStateEditor.EVENT_VALID="EVENT_VALID",BI.SimpleStateEditor.EVENT_ERROR="EVENT_ERROR",BI.SimpleStateEditor.EVENT_ENTER="EVENT_ENTER",BI.SimpleStateEditor.EVENT_RESTRICT="EVENT_RESTRICT",BI.SimpleStateEditor.EVENT_SPACE="EVENT_SPACE",BI.SimpleStateEditor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.simple_state_editor",BI.SimpleStateEditor)},function(e,t){BI.MultiPopupView=BI.inherit(BI.PopupView,{_defaultConfig:function(){var e=BI.MultiPopupView.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{_baseCls:(e._baseCls||"")+" bi-multi-list-view",buttons:[BI.i18nText("BI-Basic_Sure")]})},_createToolBar:function(){var e=this.options,n=this;if(0!==e.buttons.length){var r=[];return BI.each(e.buttons,function(e,t){r.push({text:t,value:e})}),this.buttongroup=BI.createWidget({type:"bi.button_group",cls:"list-view-toolbar bi-high-light bi-split-top",height:24,items:BI.createItems(r,{type:"bi.text_button",once:!1,shadow:!0,isShadowShowingOnSelected:!0}),layouts:[{type:"bi.center",hgap:0,vgap:0}]}),this.buttongroup.on(BI.ButtonGroup.EVENT_CHANGE,function(e,t){n.fireEvent(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON,e,t)}),this.buttongroup}}}),BI.MultiPopupView.EVENT_CHANGE="EVENT_CHANGE",BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON="EVENT_CLICK_TOOLBAR_BUTTON",BI.shortcut("bi.multi_popup_view",BI.MultiPopupView)},function(e,t){BI.PopupPanel=BI.inherit(BI.MultiPopupView,{_defaultConfig:function(){var e=BI.PopupPanel.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-popup-panel",title:""})},_createTool:function(){var e=this,t=this.options,n=BI.createWidget({type:"bi.icon_button",cls:"close-h-font",width:25,height:25});return n.on(BI.IconButton.EVENT_CHANGE,function(){e.setVisible(!1),e.fireEvent(BI.PopupPanel.EVENT_CLOSE)}),BI.createWidget({type:"bi.htape",cls:"popup-panel-title bi-header-background",height:25,items:[{el:{type:"bi.label",textAlign:"left",text:t.title,height:25,lgap:10}},{el:n,width:25}]})}}),BI.PopupPanel.EVENT_CHANGE="EVENT_CHANGE",BI.PopupPanel.EVENT_CLOSE="EVENT_CLOSE",BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON="EVENT_CLICK_TOOLBAR_BUTTON",BI.shortcut("bi.popup_panel",BI.PopupPanel)},function(e,t){BI.ListPane=BI.inherit(BI.Pane,{_defaultConfig:function(){var e=BI.ListPane.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-list-pane",logic:{dynamic:!0},lgap:0,rgap:0,tgap:0,bgap:0,vgap:0,hgap:0,items:[],itemsCreator:BI.emptyFn,hasNext:BI.emptyFn,onLoaded:BI.emptyFn,el:{type:"bi.button_group"}})},_init:function(){BI.ListPane.superclass._init.apply(this,arguments);var r=this,n=this.options;this.button_group=BI.createWidget(n.el,{type:"bi.button_group",chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,behaviors:{},items:n.items,itemsCreator:function(e,t){1===e.times&&(r.empty(),BI.nextTick(function(){r.loading()})),n.itemsCreator(e,function(){t.apply(r,arguments),1===e.times&&BI.nextTick(function(){r.loaded(),r.check()})})},hasNext:n.hasNext,layouts:[{type:"bi.vertical"}]}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.ListPane.EVENT_CHANGE,t,n)}),this.check(),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Top),BI.extend({scrolly:!0,lgap:n.lgap,rgap:n.rgap,tgap:n.tgap,bgap:n.bgap,vgap:n.vgap,hgap:n.hgap},n.logic,{items:BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Top,this.button_group)}))))},hasPrev:function(){return this.button_group.hasPrev&&this.button_group.hasPrev()},hasNext:function(){return this.button_group.hasNext&&this.button_group.hasNext()},prependItems:function(e){this.options.items=e.concat(this.options.items),this.button_group.prependItems.apply(this.button_group,arguments),this.check()},addItems:function(e){this.options.items=this.options.items.concat(e),this.button_group.addItems.apply(this.button_group,arguments),this.check()},removeItemAt:function(e){e=e||[],BI.removeAt(this.options.items,e),this.button_group.removeItemAt.apply(this.button_group,arguments),this.check()},populate:function(e){var t=this;this.options;0===arguments.length&&BI.isFunction(this.button_group.attr("itemsCreator"))?this.button_group.attr("itemsCreator").apply(this,[{times:1},function(){if(0===arguments.length)throw new Error("参数不能为空");t.populate.apply(t,arguments)}]):(BI.ListPane.superclass.populate.apply(this,arguments),this.button_group.populate.apply(this.button_group,arguments))},empty:function(){this.button_group.empty()},setNotSelectedValue:function(){this.button_group.setNotSelectedValue.apply(this.button_group,arguments)},getNotSelectedValue:function(){return this.button_group.getNotSelectedValue()},setValue:function(){this.button_group.setValue.apply(this.button_group,arguments)},getValue:function(){return this.button_group.getValue.apply(this.button_group,arguments)},getAllButtons:function(){return this.button_group.getAllButtons()},getAllLeaves:function(){return this.button_group.getAllLeaves()},getSelectedButtons:function(){return this.button_group.getSelectedButtons()},getNotSelectedButtons:function(){return this.button_group.getNotSelectedButtons()},getIndexByValue:function(e){return this.button_group.getIndexByValue(e)},getNodeById:function(e){return this.button_group.getNodeById(e)},getNodeByValue:function(e){return this.button_group.getNodeByValue(e)}}),BI.ListPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.list_pane",BI.ListPane)},function(e,t){BI.Panel=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Panel.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-panel bi-border",title:"",titleButtons:[],el:{},logic:{dynamic:!1}})},_init:function(){BI.Panel.superclass._init.apply(this,arguments);var e=this.options;BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("vertical",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("top",this._createTitle(),this.options.el)}))))},_createTitle:function(){var n=this,e=this.options;return this.text=BI.createWidget({type:"bi.label",cls:"panel-title-text",text:e.title,height:30}),this.button_group=BI.createWidget({type:"bi.button_group",items:e.titleButtons,layouts:[{type:"bi.center_adapt",lgap:10}]}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button_group.on(BI.ButtonGroup.EVENT_CHANGE,function(e,t){n.fireEvent(BI.Panel.EVENT_CHANGE,e,t)}),{el:{type:"bi.left_right_vertical_adapt",cls:"panel-title bi-header-background bi-border-bottom",height:29,items:{left:[this.text],right:[this.button_group]},lhgap:10,rhgap:10},height:29}},setTitle:function(e){this.text.setValue(e)}}),BI.Panel.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.panel",BI.Panel)},function(e,t){BI.LinearSegmentButton=BI.inherit(BI.BasicButton,{props:{extraCls:"bi-line-segment-button bi-list-item-effect",once:!0,readonly:!0,hgap:10,height:25},render:function(){var e=this,t=this.options;return[{type:"bi.label",text:t.text,height:t.height,value:t.value,hgap:t.hgap,ref:function(){e.text=this}},{type:"bi.absolute",items:[{el:{type:"bi.layout",cls:"line-segment-button-line",height:2,ref:function(){e.line=this}},left:0,right:0,bottom:0}]}]},setSelected:function(e){BI.LinearSegmentButton.superclass.setSelected.apply(this,arguments),e?this.line.element.addClass("bi-high-light-background"):this.line.element.removeClass("bi-high-light-background")},setText:function(e){this.text.setText(e)}}),BI.shortcut("bi.linear_segment_button",BI.LinearSegmentButton)},function(e,t){BI.LinearSegment=BI.inherit(BI.Widget,{props:{baseCls:"bi-linear-segment bi-split-bottom",items:[],layouts:[{type:"bi.center"}],height:29},render:function(){var e=this,t=this.options;return{type:"bi.button_group",items:BI.createItems(t.items,{type:"bi.linear_segment_button",height:t.height-1}),layouts:t.layouts,listeners:[{eventName:"__EVENT_CHANGE__",action:function(){e.fireEvent("__EVENT_CHANGE__",arguments)}},{eventName:"EVENT_CHANGE",action:function(){e.fireEvent("EVENT_CHANGE")}}],ref:function(){e.buttonGroup=this}}},setValue:function(e){this.buttonGroup.setValue(e)},setEnabledValue:function(e){this.buttonGroup.setEnabledValue(e)},getValue:function(){return this.buttonGroup.getValue()}}),BI.shortcut("bi.linear_segment",BI.LinearSegment)},function(e,t){BI.SelectList=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SelectList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-select-list",direction:BI.Direction.Top,logic:{dynamic:!0},items:[],itemsCreator:BI.emptyFn,hasNext:BI.emptyFn,onLoaded:BI.emptyFn,toolbar:{type:"bi.multi_select_bar",iconWrapperWidth:36},el:{type:"bi.list_pane"}})},_init:function(){BI.SelectList.superclass._init.apply(this,arguments);var r=this,e=this.options;this.toolbar=BI.createWidget(e.toolbar),this.allSelected=!1,this.toolbar.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.allSelected=this.isSelected(),e===BI.Events.CLICK&&(r.setAllSelected(r.allSelected),r.fireEvent(BI.SelectList.EVENT_CHANGE,t,n)),r.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.list=BI.createWidget(e.el,{type:"bi.list_pane",items:e.items,itemsCreator:function(t,n){1===t.times&&r.toolbar.setVisible(!1),e.itemsCreator(t,function(e){n.apply(r,arguments),1===t.times&&(r.toolbar.setVisible(e&&0<e.length),r.toolbar.setEnable(r.isEnabled()&&e&&0<e.length)),r._checkAllSelected()})},onLoaded:e.onLoaded,hasNext:e.hasNext}),this.list.on(BI.Controller.EVENT_CHANGE,function(e,t,n){e===BI.Events.CLICK&&(r._checkAllSelected(),r.fireEvent(BI.SelectList.EVENT_CHANGE,t,n)),r.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(e.direction),BI.extend({scrolly:!0},e.logic,{items:BI.LogicFactory.createLogicItemsByDirection(e.direction,this.toolbar,this.list)})))),e.items.length<=0&&(this.toolbar.setVisible(!1),this.toolbar.setEnable(!1)),BI.isNotNull(e.value)&&this.setValue(e.value)},_checkAllSelected:function(){var e=this.list.getValue().length,t=this.getAllLeaves().length-e,n=this.list.hasNext(),r=this.toolbar.isSelected(),i=(i=0<e&&(0<t||!r&&n))||0<t&&n&&r;this.toolbar.setHalfSelected(i),i||this.toolbar.setSelected(0<e&&t<=0&&(!n||r))},setAllSelected:function(n){BI.each(this.getAllButtons(),function(e,t){(t.setSelected||t.setAllSelected).apply(t,[n])}),this.allSelected=!!n,this.toolbar.setSelected(n),this.toolbar.setHalfSelected(!1)},setToolBarVisible:function(e){this.toolbar.setVisible(e)},isAllSelected:function(){return this.allSelected},hasPrev:function(){return this.list.hasPrev()},hasNext:function(){return this.list.hasNext()},prependItems:function(e){this.list.prependItems.apply(this.list,arguments)},addItems:function(e){this.list.addItems.apply(this.list,arguments)},setValue:function(e){var t=e.type===BI.ButtonGroup.CHOOSE_TYPE_ALL;this.setAllSelected(t),this.list[t?"setNotSelectedValue":"setValue"](e.value),this._checkAllSelected()},getValue:function(){return!1===this.isAllSelected()?{type:BI.ButtonGroup.CHOOSE_TYPE_MULTI,value:this.list.getValue(),assist:this.list.getNotSelectedValue()}:{type:BI.ButtonGroup.CHOOSE_TYPE_ALL,value:this.list.getNotSelectedValue(),assist:this.list.getValue()}},empty:function(){this.list.empty()},populate:function(e){this.toolbar.setVisible(!BI.isEmptyArray(e)),this.toolbar.setEnable(this.isEnabled()&&!BI.isEmptyArray(e)),this.list.populate.apply(this.list,arguments),this._checkAllSelected()},_setEnable:function(e){BI.SelectList.superclass._setEnable.apply(this,arguments),this.toolbar.setEnable(e)},resetHeight:function(e){var t=(this.toolbar.element.outerHeight()||25)*(this.toolbar.isVisible()?1:0);this.list.resetHeight?this.list.resetHeight(e-t):this.list.element.css({"max-height":e-t+"px"})},setNotSelectedValue:function(){this.list.setNotSelectedValue.apply(this.list,arguments),this._checkAllSelected()},getNotSelectedValue:function(){return this.list.getNotSelectedValue()},getAllButtons:function(){return this.list.getAllButtons()},getAllLeaves:function(){return this.list.getAllLeaves()},getSelectedButtons:function(){return this.list.getSelectedButtons()},getNotSelectedButtons:function(){return this.list.getNotSelectedButtons()},getIndexByValue:function(e){return this.list.getIndexByValue(e)},getNodeById:function(e){return this.list.getNodeById(e)},getNodeByValue:function(e){return this.list.getNodeByValue(e)}}),BI.SelectList.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.select_list",BI.SelectList)},function(e,t){BI.LazyLoader=BI.inherit(BI.Widget,{_const:{PAGE:100},_defaultConfig:function(){return BI.extend(BI.LazyLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-lazy-loader",el:{},items:[]})},_init:function(){var n=this,e=this.options;BI.LazyLoader.superclass._init.apply(this,arguments);var t=e.items.length;this.loader=BI.createWidget({type:"bi.loader",element:this,el:e.el,itemsCreator:function(e,t){t(n._getNextItems(e))},hasNext:function(e){return e.count<t}}),this.loader.on(BI.Loader.EVENT_CHANGE,function(e){n.fireEvent(BI.LazyLoader.EVENT_CHANGE,e)})},_getNextItems:function(e){var t=this.options,n=t.items.length-this._const.PAGE*(e.times-1),r=BI.takeRight(t.items,n);return BI.take(r,this._const.PAGE)},populate:function(e){this.loader.populate(e)},addItems:function(e){this.loader.addItems(e)},empty:function(){this.loader.empty()},setNotSelectedValue:function(){this.loader.setNotSelectedValue.apply(this.loader,arguments)},getNotSelectedValue:function(){return this.loader.getNotSelectedValue()},setValue:function(){this.loader.setValue.apply(this.loader,arguments)},getValue:function(){return this.loader.getValue.apply(this.loader,arguments)},getAllButtons:function(){return this.loader.getAllButtons()},getAllLeaves:function(){return this.loader.getAllLeaves()},getSelectedButtons:function(){return this.loader.getSelectedButtons()},getNotSelectedButtons:function(){return this.loader.getNotSelectedButtons()},getIndexByValue:function(e){return this.loader.getIndexByValue(e)},getNodeById:function(e){return this.loader.getNodeById(e)},getNodeByValue:function(e){return this.loader.getNodeByValue(e)}}),BI.LazyLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.lazy_loader",BI.LazyLoader)},function(e,t){BI.ListLoader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.ListLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-list-loader",isDefaultInit:!0,el:{type:"bi.button_group"},items:[],itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn,count:!1,next:{},hasNext:BI.emptyFn})},_nextLoad:function(){var e=this,t=this.options;this.next.setLoading(),t.itemsCreator.apply(this,[{times:++this.times},function(){e.next.setLoaded(),e.addItems.apply(e,arguments)}])},_init:function(){BI.ListLoader.superclass._init.apply(this,arguments);var r=this,e=this.options;!1===e.itemsCreator&&(e.next=!1),this.button_group=BI.createWidget(e.el,{type:"bi.button_group",element:this,chooseType:0,items:e.items,behaviors:{},layouts:[{type:"bi.vertical"}]}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.ListLoader.EVENT_CHANGE,n)}),!1!==e.next&&(this.next=BI.createWidget(BI.extend({type:"bi.loading_bar"},e.next)),this.next.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&r._nextLoad()})),BI.createWidget({type:"bi.vertical",element:this,items:[this.next]}),e.isDefaultInit&&BI.isEmpty(e.items)&&BI.nextTick(BI.bind(function(){this.populate()},this)),BI.isNotEmptyArray(e.items)&&this.populate(e.items)},hasNext:function(){var e=this.options;return BI.isNumber(e.count)?this.count<e.count:!!e.hasNext.apply(this,[{times:this.times,count:this.count}])},addItems:function(e){this.count+=e.length,BI.isObject(this.next)&&(this.options.items=this.options.items.concat(e),this.hasNext()?this.next.setLoaded():this.next.setEnd()),this.button_group.addItems.apply(this.button_group,arguments),this.next.element.appendTo(this.element)},populate:function(e){var t=this,n=this.options;0===arguments.length&&BI.isFunction(n.itemsCreator)?n.itemsCreator.apply(this,[{times:1},function(){if(0===arguments.length)throw new Error("参数不能为空");t.populate.apply(t,arguments),n.onLoaded()}]):(this.options.items=e,this.times=1,this.count=0,this.count+=e.length,BI.isObject(this.next)&&(this.hasNext()?this.next.setLoaded():this.next.invisible()),BI.DOM.hang([this.next]),this.button_group.populate.apply(this.button_group,arguments),this.next.element.appendTo(this.element))},empty:function(){BI.DOM.hang([this.next]),this.button_group.empty(),this.next.element.appendTo(this.element),BI.each([this.next],function(e,t){t&&t.setVisible(!1)})},setNotSelectedValue:function(){this.button_group.setNotSelectedValue.apply(this.button_group,arguments)},getNotSelectedValue:function(){return this.button_group.getNotSelectedValue()},setValue:function(){this.button_group.setValue.apply(this.button_group,arguments)},getValue:function(){return this.button_group.getValue.apply(this.button_group,arguments)},getAllButtons:function(){return this.button_group.getAllButtons()},getAllLeaves:function(){return this.button_group.getAllLeaves()},getSelectedButtons:function(){return this.button_group.getSelectedButtons()},getNotSelectedButtons:function(){return this.button_group.getNotSelectedButtons()},getIndexByValue:function(e){return this.button_group.getIndexByValue(e)},getNodeById:function(e){return this.button_group.getNodeById(e)},getNodeByValue:function(e){return this.button_group.getNodeByValue(e)}}),BI.ListLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.list_loader",BI.ListLoader)},function(e,t){BI.SortList=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SortList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-sort-list",isDefaultInit:!0,el:{type:"bi.button_group"},items:[],itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn,count:!1,next:{},hasNext:BI.emptyFn})},_init:function(){BI.SortList.superclass._init.apply(this,arguments);var r=this,n=this.options;this.loader=BI.createWidget({type:"bi.list_loader",element:this,isDefaultInit:n.isDefaultInit,el:n.el,items:this._formatItems(n.items),itemsCreator:function(e,t){n.itemsCreator(e,function(e){t(r._formatItems(e))})},onLoaded:n.onLoaded,count:n.count,next:n.next,hasNext:n.hasNext}),this.loader.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.SortList.EVENT_CHANGE,t,n)}),this.loader.element.sortable({containment:n.containment||this.element,connectWith:n.connectWith||".bi-sort-list",items:".sort-item",cursor:n.cursor||"drag",tolerance:n.tolerance||"intersect",placeholder:{element:function(e){var t=BI.createWidget({type:"bi.layout",cls:"bi-sortable-holder",height:e.outerHeight()});return t.element.css({"margin-left":e.css("margin-left"),"margin-right":e.css("margin-right"),"margin-top":e.css("margin-top"),"margin-bottom":e.css("margin-bottom"),margin:e.css("margin")}),t.element},update:function(){}},start:function(e,t){},stop:function(e,t){r.fireEvent(BI.SortList.EVENT_CHANGE)},over:function(e,t){}})},_formatItems:function(e){return BI.each(e,function(e,t){(t=BI.stripEL(t)).cls=t.cls?t.cls+" sort-item":"sort-item",t.attributes={sorted:t.value}}),e},hasNext:function(){return this.loader.hasNext()},addItems:function(e){this.loader.addItems(e)},populate:function(e){e&&(arguments[0]=this._formatItems(e)),this.loader.populate.apply(this.loader,arguments)},empty:function(){this.loader.empty()},setNotSelectedValue:function(){this.loader.setNotSelectedValue.apply(this.loader,arguments)},getNotSelectedValue:function(){return this.loader.getNotSelectedValue()},setValue:function(){this.loader.setValue.apply(this.loader,arguments)},getValue:function(){return this.loader.getValue()},getAllButtons:function(){return this.loader.getAllButtons()},getAllLeaves:function(){return this.loader.getAllLeaves()},getSelectedButtons:function(){return this.loader.getSelectedButtons()},getNotSelectedButtons:function(){return this.loader.getNotSelectedButtons()},getIndexByValue:function(e){return this.loader.getIndexByValue(e)},getNodeById:function(e){return this.loader.getNodeById(e)},getNodeByValue:function(e){return this.loader.getNodeByValue(e)},getSortedValues:function(){return this.loader.element.sortable("toArray",{attribute:"sorted"})}}),BI.SortList.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.sort_list",BI.SortList)},function(e,t){BI.LoadingPane=BI.inherit(BI.Pane,{_mount:function(){BI.Pane.superclass._mount.apply(this,arguments)&&this.beforeInit&&(this.__asking=!0,this.loading(),this.beforeInit(BI.bind(this.__loaded,this)))},_initRender:function(){this.beforeInit?this.__async=!0:this._render()},__loaded:function(){this.__asking=!1,this.loaded(),this._render()}})},function(e,t){BI.AllCountPager=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-all-count-pager",pagerDirection:"vertical",height:24,pages:1,curr:1,count:1,showRowCount:!0})},_init:function(){BI.AllCountPager.superclass._init.apply(this,arguments);var e=this,t=this.options,n=this._getPagerIconCls();this.editor=BI.createWidget({type:"bi.small_text_editor",cls:"pager-editor bi-border-radius",validationChecker:function(e){return 0===t.pages&&"0"===e||BI.isPositiveInteger(e)},hgap:4,vgap:0,value:t.curr,errorText:BI.i18nText("BI-Please_Input_Positive_Integer"),width:40,height:24,invisible:t.pages<=1}),this.pager=BI.createWidget({type:"bi.pager",width:58,layouts:[{type:"bi.horizontal",lgap:5}],dynamicShow:!1,pages:t.pages,curr:t.curr,groups:0,first:!1,last:!1,prev:{type:"bi.icon_button",value:"prev",title:BI.i18nText("BI-Previous_Page"),warningTitle:BI.i18nText("BI-Current_Is_First_Page"),height:22,width:22,cls:"bi-border bi-border-radius all-pager-prev bi-list-item-select2 "+n.preCls},next:{type:"bi.icon_button",value:"next",title:BI.i18nText("BI-Next_Page"),warningTitle:BI.i18nText("BI-Current_Is_Last_Page"),height:22,width:22,cls:"bi-border bi-border-radius all-pager-next bi-list-item-select2 "+n.nextCls},hasPrev:t.hasPrev,hasNext:t.hasNext,firstPage:t.firstPage,lastPage:t.lastPage,invisible:t.pages<=1}),this.editor.on(BI.TextEditor.EVENT_CONFIRM,function(){e.pager.setValue(BI.parseInt(e.editor.getValue())),e.fireEvent(BI.AllCountPager.EVENT_CHANGE)}),this.pager.on(BI.Pager.EVENT_CHANGE,function(){e.fireEvent(BI.AllCountPager.EVENT_CHANGE)}),this.pager.on(BI.Pager.EVENT_AFTER_POPULATE,function(){e.editor.setValue(e.pager.getCurrentPage())}),this.allPages=BI.createWidget({type:"bi.label",title:t.pages,text:"/"+t.pages,lgap:5,invisible:t.pages<=1}),BI.createWidget(t.showRowCount?{type:"bi.left_right_vertical_adapt",element:this,items:{left:[this._getRowCountObject()],right:[this.editor,this.allPages,this.pager]}}:{type:"bi.vertical_adapt",element:this,items:[this.editor,this.allPages,this.pager]})},alwaysShowPager:!0,_getPagerIconCls:function(){switch(this.options.pagerDirection){case"horizontal":return{preCls:"row-pre-page-h-font ",nextCls:"row-next-page-h-font "};case"vertical":default:return{preCls:"column-pre-page-h-font ",nextCls:"column-next-page-h-font "}}},_getRowCountObject:function(){var t=this,e=this.options;return{type:"bi.left",height:e.height,scrollable:!1,items:[{type:"bi.label",height:e.height,text:BI.i18nText("BI-Basic_Total"),width:15},{type:"bi.label",ref:function(e){t.rowCount=e},cls:"row-count",height:e.height,hgap:5,text:e.count,title:e.count},{type:"bi.label",height:e.height,text:BI.i18nText("BI-Tiao_Data"),width:50,textAlign:"left"}]}},setAllPages:function(e){this.allPages.setText("/"+e),this.allPages.setTitle(e),this.options.pages=e,this.pager.setAllPages(e),this.editor.setEnable(1<=e),this.setPagerVisible(1<e)},setValue:function(e){this.pager.setValue(e)},setVPage:function(e){this.pager.setValue(e)},setCount:function(e){this.options.showRowCount&&(this.rowCount.setText(e),this.rowCount.setTitle(e))},getCurrentPage:function(){return this.pager.getCurrentPage()},hasPrev:function(){return this.pager.hasPrev()},hasNext:function(){return this.pager.hasNext()},setPagerVisible:function(e){this.editor.setVisible(e),this.allPages.setVisible(e),this.pager.setVisible(e)},populate:function(){this.pager.populate(),this.setPagerVisible(1<this.options.pages)}}),BI.AllCountPager.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.all_count_pager",BI.AllCountPager)},function(e,t){BI.DirectionPager=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.DirectionPager.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-direction-pager",height:24,horizontal:{pages:!1,curr:1,hasPrev:BI.emptyFn,hasNext:BI.emptyFn,firstPage:1,lastPage:BI.emptyFn},vertical:{pages:!1,curr:1,hasPrev:BI.emptyFn,hasNext:BI.emptyFn,firstPage:1,lastPage:BI.emptyFn}})},_init:function(){BI.DirectionPager.superclass._init.apply(this,arguments);var e=this.options;e.vertical,e.horizontal;this._createVPager(),this._createHPager(),this.layout=BI.createWidget({type:"bi.absolute",scrollable:!1,element:this,items:[{el:this.vpager,top:0,right:86},{el:this.vlabel,top:0,right:110},{el:this.hpager,top:0,right:0},{el:this.hlabel,top:0,right:24}]})},_createVPager:function(){var e=this,t=this.options.vertical;this.vlabel=BI.createWidget({type:"bi.label",width:24,height:24,value:t.curr,title:t.curr,invisible:!0}),this.vpager=BI.createWidget({type:"bi.pager",width:72,layouts:[{type:"bi.horizontal",scrollx:!1,rgap:24}],invisible:!0,dynamicShow:!1,pages:t.pages,curr:t.curr,groups:0,first:!1,last:!1,prev:{type:"bi.icon_button",value:"prev",title:BI.i18nText("BI-Up_Page"),warningTitle:BI.i18nText("BI-Current_Is_First_Page"),height:22,width:22,cls:"bi-border bi-border-radius direction-pager-prev column-pre-page-h-font bi-list-item-select2"},next:{type:"bi.icon_button",value:"next",title:BI.i18nText("BI-Down_Page"),warningTitle:BI.i18nText("BI-Current_Is_Last_Page"),height:22,width:22,cls:"bi-border bi-border-radius direction-pager-next column-next-page-h-font bi-list-item-select2"},hasPrev:t.hasPrev,hasNext:t.hasNext,firstPage:t.firstPage,lastPage:t.lastPage}),this.vpager.on(BI.Pager.EVENT_CHANGE,function(){e.fireEvent(BI.DirectionPager.EVENT_CHANGE)}),this.vpager.on(BI.Pager.EVENT_AFTER_POPULATE,function(){e.vlabel.setValue(this.getCurrentPage()),e.vlabel.setTitle(this.getCurrentPage())})},_createHPager:function(){var e=this,t=this.options.horizontal;this.hlabel=BI.createWidget({type:"bi.label",width:24,height:24,value:t.curr,title:t.curr,invisible:!0}),this.hpager=BI.createWidget({type:"bi.pager",width:72,layouts:[{type:"bi.horizontal",scrollx:!1,rgap:24}],invisible:!0,dynamicShow:!1,pages:t.pages,curr:t.curr,groups:0,first:!1,last:!1,prev:{type:"bi.icon_button",value:"prev",title:BI.i18nText("BI-Left_Page"),warningTitle:BI.i18nText("BI-Current_Is_First_Page"),height:22,width:22,cls:"bi-border bi-border-radius direction-pager-prev row-pre-page-h-font bi-list-item-select2"},next:{type:"bi.icon_button",value:"next",title:BI.i18nText("BI-Right_Page"),warningTitle:BI.i18nText("BI-Current_Is_Last_Page"),height:22,width:22,cls:"bi-border bi-border-radius direction-pager-next row-next-page-h-font bi-list-item-select2"},hasPrev:t.hasPrev,hasNext:t.hasNext,firstPage:t.firstPage,lastPage:t.lastPage}),this.hpager.on(BI.Pager.EVENT_CHANGE,function(){e.fireEvent(BI.DirectionPager.EVENT_CHANGE)}),this.hpager.on(BI.Pager.EVENT_AFTER_POPULATE,function(){e.hlabel.setValue(this.getCurrentPage()),e.hlabel.setTitle(this.getCurrentPage())})},getVPage:function(){return this.vpager.getCurrentPage()},getHPage:function(){return this.hpager.getCurrentPage()},setVPage:function(e){this.vpager.setValue(e),this.vlabel.setValue(e),this.vlabel.setTitle(e)},setHPage:function(e){this.hpager.setValue(e),this.hlabel.setValue(e),this.hlabel.setTitle(e)},hasVNext:function(){return this.vpager.hasNext()},hasHNext:function(){return this.hpager.hasNext()},hasVPrev:function(){return this.vpager.hasPrev()},hasHPrev:function(){return this.hpager.hasPrev()},setHPagerVisible:function(e){this.hpager.setVisible(e),this.hlabel.setVisible(e)},setVPagerVisible:function(e){this.vpager.setVisible(e),this.vlabel.setVisible(e)},populate:function(){this.vpager.populate(),this.hpager.populate();var e=!1,t=!1;this.hasHNext()||this.hasHPrev()?(this.setHPagerVisible(!0),t=!0):this.setHPagerVisible(!1),this.hasVNext()||this.hasVPrev()?(this.setVPagerVisible(!0),e=!0):this.setVPagerVisible(!1),this.setVisible(t||e);var n=[86,110,0,24],r=this.layout.attr("items");!0===e&&!0===t?(r[0].right=n[0],r[1].right=n[1],r[2].right=n[2],r[3].right=n[3]):!0===e?(r[0].right=n[2],r[1].right=n[3]):!0===t&&(r[2].right=n[2],r[3].right=n[3]),this.layout.attr("items",r),this.layout.resize()},clear:function(){this.vpager.attr("curr",1),this.hpager.attr("curr",1)}}),BI.DirectionPager.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.direction_pager",BI.DirectionPager)},function(e,t){BI.DetailPager=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.DetailPager.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-detail-pager",behaviors:{},layouts:[{type:"bi.horizontal",hgap:10,vgap:0}],dynamicShow:!0,dynamicShowFirstLast:!1,dynamicShowPrevNext:!1,pages:!1,curr:function(){return 1},groups:0,jump:BI.emptyFn,first:!1,last:!1,prev:"上一页",next:"下一页",firstPage:1,lastPage:function(){return 1},hasPrev:BI.emptyFn,hasNext:BI.emptyFn})},_init:function(){BI.DetailPager.superclass._init.apply(this,arguments);var e=this;this.currPage=BI.result(this.options,"curr"),this._lock=!1,this._debouce=BI.debounce(function(){e._lock=!1},300),this._populate()},_populate:function(){var i=this,a=this.options,e=[],t={};this.empty();var n,o=BI.result(a,"pages"),r=BI.result(this,"currPage"),s=BI.result(a,"groups"),c=BI.result(a,"first"),u=BI.result(a,"last"),l=BI.result(a,"prev"),d=BI.result(a,"next");!1===o?(s=0,u=c=!1):o<s&&(s=o),t.index=Math.ceil((r+(1<s&&s!==o?1:0))/(0===s?1:s)),(!a.dynamicShow&&!a.dynamicShowPrevNext||1<r)&&!1!==l&&(BI.isKey(l)?e.push({text:l,value:"prev",disabled:!1===o?!1===a.hasPrev(r):!(1<r&&!1!==l)}):e.push(BI.extend({disabled:!1===o?!1===a.hasPrev(r):!(1<r&&!1!==l)},l))),(!a.dynamicShow&&!a.dynamicShowFirstLast||1<t.index&&0!==s)&&c&&(e.push({text:c,value:"first",disabled:!(1<t.index&&0!==s)}),1<t.index&&0!==s&&e.push({type:"bi.label",cls:"page-ellipsis",text:"…"})),t.poor=Math.floor((s-1)/2),t.start=1<t.index?r-t.poor:1,t.end=1<t.index?(n=r+(s-t.poor-1),o<n?o:n):s,t.end-t.start<s-1&&(t.start=t.end-s+1);var p=t.start,f=t.end;for(c&&u&&1<t.index&&0!==s&&s<o&&t.end<o&&0!==s&&(p++,f--);p<=f;p++)p===r?e.push({text:p,value:p,selected:!0}):e.push({text:p,value:p});(!a.dynamicShow&&!a.dynamicShowFirstLast||s<o&&t.end<o&&0!==s)&&u&&(s<o&&t.end<o&&0!==s&&e.push({type:"bi.label",cls:"page-ellipsis",text:"…"}),e.push({text:u,value:"last",disabled:!(s<o&&t.end<o&&0!==s)})),t.flow=!l&&0===s,(!a.dynamicShow&&!a.dynamicShowPrevNext&&d||r!==o&&d||t.flow)&&e.push(BI.isKey(d)?!1===o?{text:d,value:"next",disabled:!1===a.hasNext(r)}:t.flow&&r===o?{text:d,value:"next",disabled:!0}:{text:d,value:"next",disabled:!(r!==o&&d||t.flow)}:BI.extend({disabled:!1===o?!1===a.hasNext(r):!(r!==o&&d||t.flow)},d)),this.button_group=BI.createWidget({type:"bi.button_group",element:this,items:BI.createItems(e,{cls:"page-item bi-border bi-list-item-active",height:23,hgap:10}),behaviors:a.behaviors,layouts:a.layouts}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(e,t,n){if(!0!==i._lock){if(i._lock=!0,i._debouce(),e===BI.Events.CLICK){var r=i.button_group.getValue()[0];switch(r){case"first":i.currPage=1;break;case"last":i.currPage=o;break;case"prev":i.currPage--;break;case"next":i.currPage++;break;default:i.currPage=r}a.jump.apply(i,[{pages:o,curr:i.currPage}]),i._populate(),i.fireEvent(BI.DetailPager.EVENT_CHANGE,n)}i.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}}),this.fireEvent(BI.DetailPager.EVENT_AFTER_POPULATE)},getCurrentPage:function(){return this.currPage},setAllPages:function(e){this.options.pages=e},hasPrev:function(e){e=e||1;var t=this.options;return!1===this.options.pages?t.hasPrev(e):1<e},hasNext:function(e){e=e||1;var t=this.options,n=this.options.pages;return!1===n?t.hasNext(e):e<n},setValue:function(e){var t,n,r=this.options;e=(e=e||0)<1?1:e,!1===r.pages?(t=BI.result(r,"lastPage"),n=1,this.currPage=t<e?t:e<(n=BI.result(r,"firstPage"))?n:e):(e=e>r.pages?r.pages:e,this.currPage=e),this._populate()},getValue:function(){var e=this.button_group.getValue()[0];switch(e){case"prev":return-1;case"next":return 1;case"first":return BI.MIN;case"last":return BI.MAX;default:return e}},attr:function(e,t){BI.DetailPager.superclass.attr.apply(this,arguments),"curr"===e&&(this.currPage=BI.result(this.options,"curr"))},populate:function(){this._populate()}}),BI.DetailPager.EVENT_CHANGE="EVENT_CHANGE",BI.DetailPager.EVENT_AFTER_POPULATE="EVENT_AFTER_POPULATE",BI.shortcut("bi.detail_pager",BI.DetailPager)},function(e,t){BI.SegmentButton=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.SegmentButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-segment-button bi-list-item-select",shadow:!0,readonly:!0,hgap:5})},_init:function(){BI.SegmentButton.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",element:this,textHeight:e.height,whiteSpace:e.whiteSpace,text:e.text,value:e.value,hgap:e.hgap})},setSelected:function(){BI.SegmentButton.superclass.setSelected.apply(this,arguments)},setText:function(e){BI.SegmentButton.superclass.setText.apply(this,arguments),this.text.setText(e)},destroy:function(){BI.SegmentButton.superclass.destroy.apply(this,arguments)}}),BI.shortcut("bi.segment_button",BI.SegmentButton)},function(e,t){BI.Segment=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.Segment.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-segment",items:[],height:24})},_init:function(){BI.Segment.superclass._init.apply(this,arguments);var n=this,e=this.options;this.buttonGroup=BI.createWidget({element:this,type:"bi.button_group",value:e.value,items:BI.createItems(e.items,{type:"bi.segment_button",height:e.height-2,whiteSpace:e.whiteSpace}),layout:[{type:"bi.center"}]}),this.buttonGroup.on(BI.Controller.EVENT_CHANGE,function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.buttonGroup.on(BI.ButtonGroup.EVENT_CHANGE,function(e,t){n.fireEvent(BI.Segment.EVENT_CHANGE,e,t)})},_setEnable:function(e){BI.Segment.superclass._setEnable.apply(this,arguments),!0===e?this.element.removeClass("base-disabled disabled"):!1===e&&this.element.addClass("base-disabled disabled")},setValue:function(e){this.buttonGroup.setValue(e)},setEnabledValue:function(e){this.buttonGroup.setEnabledValue(e)},getValue:function(){return this.buttonGroup.getValue()}}),BI.Segment.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.segment",BI.Segment)},function(e,t){BI.MultiSelectBar=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.MultiSelectBar.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-multi-select-bar",height:25,text:BI.i18nText("BI-Select_All"),isAllCheckedBySelectedValue:BI.emptyFn,disableSelected:!0,isHalfCheckedBySelectedValue:function(e){return 0<e.length},halfSelected:!1,iconWrapperWidth:26})},_init:function(){BI.MultiSelectBar.superclass._init.apply(this,arguments);var e=this,t=this.options,n=!0===t.selected,r=!t.selected&&t.halfSelected;this.checkbox=BI.createWidget({type:"bi.checkbox",stopPropagation:!0,handler:function(){e.setSelected(e.isSelected())},selected:n,invisible:r}),this.half=BI.createWidget({type:"bi.half_icon_button",stopPropagation:!0,handler:function(){e.setSelected(!0)},invisible:n||!r}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.CLICK,e.isSelected(),e)}),this.checkbox.on(BI.Checkbox.EVENT_CHANGE,function(){e.fireEvent(BI.MultiSelectBar.EVENT_CHANGE,e.isSelected(),e)}),this.half.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.CLICK,e.isSelected(),e)}),this.half.on(BI.HalfIconButton.EVENT_CHANGE,function(){e.fireEvent(BI.MultiSelectBar.EVENT_CHANGE,e.isSelected(),e)}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:t.height,height:t.height,hgap:t.hgap,text:t.text,keyword:t.keyword,value:t.value,py:t.py}),BI.createWidget({type:"bi.htape",element:this,items:[{width:t.iconWrapperWidth,el:{type:"bi.center_adapt",items:[this.checkbox,this.half]}},{el:this.text}]})},_setSelected:function(e){this.checkbox.setSelected(!!e)},beforeClick:function(){var e=this.isHalfSelected(),t=this.isSelected();!0===e?this.setSelected(!0):this.setSelected(!t)},setSelected:function(e){this.checkbox.setSelected(e),this.setHalfSelected(!1)},setHalfSelected:function(e){this.halfSelected=!!e,!0===e?(this.checkbox.setSelected(!1),this.half.visible(),this.checkbox.invisible()):(this.half.invisible(),this.checkbox.visible())},isHalfSelected:function(){return!this.isSelected()&&!!this.halfSelected},isSelected:function(){return this.checkbox.isSelected()},setValue:function(e){BI.MultiSelectBar.superclass.setValue.apply(this,arguments);var t=this.options.isAllCheckedBySelectedValue.apply(this,arguments);this._setSelected(t),t||this.setHalfSelected(this.options.isHalfCheckedBySelectedValue.apply(this,arguments))},doClick:function(){BI.MultiSelectBar.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.MultiSelectBar.EVENT_CHANGE,this.isSelected(),this)}}),BI.MultiSelectBar.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_bar",BI.MultiSelectBar)},function(e,t){BI.LevelTree=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.LevelTree.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-level-tree",el:{chooseType:0},expander:{},items:[],value:""})},_init:function(){BI.LevelTree.superclass._init.apply(this,arguments),this.initTree(this.options.items)},_formatItems:function(r,i,a){var o=this;return BI.each(r,function(e,t){var n={layer:i};BI.isKey(t.id)||(t.id=BI.UUID()),n.pNode=a,!0===t.isParent||!0===t.parent||BI.isNotEmptyArray(t.children)?(n.type="bi.mid_plus_group_node",e===r.length-1&&(n.type="bi.last_plus_group_node",n.isLastNode=!0),0!==e||a||(n.type="bi.first_plus_group_node"),0===e&&e===r.length-1&&(n.type="bi.plus_group_node"),BI.defaults(t,n),o._formatItems(t.children,i+1,t)):(n.type="bi.mid_tree_leaf_item",0!==e||a||(n.type="bi.first_tree_leaf_item"),e===r.length-1&&(n.type="bi.last_tree_leaf_item"),BI.defaults(t,n))}),r},_assertId:function(e){BI.each(e,function(e,t){BI.isKey(t.id)||(t.id=BI.UUID())})},initTree:function(e){var r=this,t=this.options;this.empty(),this._assertId(e),this.tree=BI.createWidget({type:"bi.custom_tree",element:this,expander:BI.extend({el:{},popup:{type:"bi.custom_tree"}},t.expander),items:this._formatItems(BI.Tree.transformToTreeFormat(e),0),value:t.value,el:BI.extend({type:"bi.button_tree",chooseType:0,layouts:[{type:"bi.vertical"}]},t.el)}),this.tree.on(BI.Controller.EVENT_CHANGE,function(e,t,n){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&r.fireEvent(BI.LevelTree.EVENT_CHANGE,t,n)})},stroke:function(e){this.tree.stroke.apply(this.tree,arguments)},populate:function(e,t){e=this._formatItems(BI.Tree.transformToTreeFormat(e),0),this.tree.populate(e,t)},setValue:function(e){this.tree.setValue(e)},getValue:function(){return this.tree.getValue()},getAllLeaves:function(){return this.tree.getAllLeaves()},getNodeById:function(e){return this.tree.getNodeById(e)},getNodeByValue:function(e){return this.tree.getNodeByValue(e)}}),BI.LevelTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.level_tree",BI.LevelTree)},function(e,t){var n;n=BI.inherit(BI.Widget,{props:{baseCls:"bi-tree-expander",layer:0,isLastNode:!1,isFirstNode:!1,selectable:!1},render:function(){var t=this,n=this.options;return this.trigger=BI.createWidget(n.el,{forceNotSelected:!n.selectable}),this.trigger.on(BI.Controller.EVENT_CHANGE,function(e){n.selectable&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),{type:"bi.expander",ref:function(e){t.expander=e},trigger:n.selectable?"":"click",el:this.trigger,isDefaultInit:n.isDefaultInit,popup:{type:"bi.tree_expander.popup",layer:n.layer||n.el.layer,isLastNode:n.isLastNode||n.el.isLastNode,isFirstNode:n.isFirstNode||n.el.isFirstNode,el:n.popup},value:n.value,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(e){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}}]}},setValue:function(e){BI.contains(e,this.trigger.getValue())?(this.trigger.setSelected(!0),this.expander.setValue([])):(this.trigger.setSelected(!1),this.expander.setValue(e))},getValue:function(){return this.trigger.isSelected()?[this.trigger.getValue()]:this.expander.getValue()},populate:function(e){this.expander.populate(e)},getAllLeaves:function(){return this.expander&&this.expander.getAllLeaves()}}),BI.shortcut("bi.tree_expander",n)},function(e,t){var n;n=BI.inherit(BI.Widget,{props:{baseCls:"bi-tree-expander-popup",layer:0,el:{},isLastNode:!1},render:function(){var e=this,t=this.options;return this.popupView=BI.createWidget(BI.extend(t.el,{value:t.value}),this),this.popupView.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.popupView.element.css("margin-left",-12*t.layer),this.element.css("margin-left",12*t.layer),{type:"bi.vertical",cls:t.isLastNode?"":"line",scrolly:null,items:[this.popupView]}},setValue:function(e){this.popupView.setValue(e)},getValue:function(){return this.popupview.getValue()},populate:function(e){this.popupview.populate(e)},getAllLeaves:function(){return this.popupView&&this.popupView.getAllLeaves()}}),BI.shortcut("bi.tree_expander.popup",n)},function(e,t){BI.EditorTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4},_defaultConfig:function(){var e=BI.EditorTrigger.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-editor-trigger bi-border bi-border-radius",height:24,validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!1,watermark:"",errorText:""})},_init:function(){this.options.height-=2,BI.EditorTrigger.superclass._init.apply(this,arguments);var e=this,t=this.options;this._const;this.editor=BI.createWidget({type:"bi.sign_editor",height:t.height,value:t.value,validationChecker:t.validationChecker,quitChecker:t.quitChecker,allowBlank:t.allowBlank,watermark:t.watermark,errorText:t.errorText,title:function(){return e.getValue()}}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.SignEditor.EVENT_CHANGE,function(){e.fireEvent(BI.EditorTrigger.EVENT_CHANGE,arguments)}),this.editor.on(BI.SignEditor.EVENT_FOCUS,function(){e.fireEvent(BI.EditorTrigger.EVENT_FOCUS,arguments)}),this.editor.on(BI.SignEditor.EVENT_EMPTY,function(){e.fireEvent(BI.EditorTrigger.EVENT_EMPTY,arguments)}),this.editor.on(BI.SignEditor.EVENT_VALID,function(){e.fireEvent(BI.EditorTrigger.EVENT_VALID,arguments)}),this.editor.on(BI.SignEditor.EVENT_ERROR,function(){e.fireEvent(BI.EditorTrigger.EVENT_ERROR,arguments)}),BI.createWidget({element:this,type:"bi.htape",items:[{el:this.editor},{el:{type:"bi.trigger_icon_button",width:t.triggerWidth||t.height},width:t.triggerWidth||t.height}]})},getValue:function(){return this.editor.getValue()},setValue:function(e){this.editor.setValue(e)},setText:function(e){this.editor.setState(e)}}),BI.EditorTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.EditorTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.EditorTrigger.EVENT_EMPTY="EVENT_EMPTY",BI.EditorTrigger.EVENT_VALID="EVENT_VALID",BI.EditorTrigger.EVENT_ERROR="EVENT_ERROR",BI.shortcut("bi.editor_trigger",BI.EditorTrigger)},function(e,t){BI.IconTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.IconTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-icon-trigger",extraCls:"pull-down-font",el:{},height:24})},_init:function(){var e=this.options;BI.IconTrigger.superclass._init.apply(this,arguments),this.iconButton=BI.createWidget(e.el,{type:"bi.trigger_icon_button",element:this,width:e.width,height:e.height,extraCls:e.extraCls})}}),BI.shortcut("bi.icon_trigger",BI.IconTrigger)},function(e,t){BI.IconTextTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4},_defaultConfig:function(){var e=BI.IconTextTrigger.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-trigger",height:24,iconHeight:null,iconWidth:null,textCls:""})},_init:function(){BI.IconTextTrigger.superclass._init.apply(this,arguments);var t=this,e=this.options;this._const;this.text=BI.createWidget({type:"bi.label",cls:"select-text-label"+(BI.isKey(e.textCls)?" "+e.textCls:""),textAlign:"left",height:e.height,text:e.text}),this.trigerButton=BI.createWidget({type:"bi.trigger_icon_button",width:e.triggerWidth||e.height}),BI.createWidget({element:this,type:"bi.htape",ref:function(e){t.wrapper=e},items:[{el:{type:"bi.icon_change_button",cls:"icon-combo-trigger-icon",iconCls:e.iconCls,ref:function(e){t.icon=e},iconHeight:e.iconHeight,iconWidth:e.iconWidth,disableSelected:!0},width:BI.isEmptyString(e.iconCls)?0:e.iconWrapperWidth||e.height},{el:this.text,lgap:BI.isEmptyString(e.iconCls)?5:0},{el:this.trigerButton,width:e.triggerWidth||e.height}]})},setValue:function(e){this.text.setValue(e)},setIcon:function(e){var t=this.options;this.icon.setIcon(e);var n=this.wrapper.attr("items")[0],r=this.wrapper.attr("items")[1];BI.isNull(e)||BI.isEmptyString(e)?0!==n.width&&(n.width=0,r.lgap=5,this.wrapper.resize()):n.width!==(t.iconWrapperWidth||t.height)&&(n.width=t.iconWrapperWidth||t.height,r.lgap=0,this.wrapper.resize())},setTextCls:function(e){var t=this.options,n=t.textCls;t.textCls=e,this.text.element.removeClass(n).addClass(e)},setText:function(e){this.text.setText(e)}}),BI.shortcut("bi.icon_text_trigger",BI.IconTextTrigger)},function(e,t){BI.SelectIconTextTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.SelectIconTextTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-select-text-trigger bi-border",height:24,iconHeight:null,iconWidth:null,iconCls:""})},_init:function(){this.options.height-=2,BI.SelectIconTextTrigger.superclass._init.apply(this,arguments);var e=this.options,t=this._digist(e.value,e.items);this.trigger=BI.createWidget({type:"bi.icon_text_trigger",element:this,text:t.text,textCls:t.textCls,iconCls:t.iconCls,height:e.height,iconHeight:e.iconHeight,iconWidth:e.iconWidth,iconWrapperWidth:e.iconWrapperWidth})},_digist:function(n,e){var r,t=this.options;n=BI.isArray(n)?n:[n];var i=BI.Tree.transformToArrayFormat(e);return BI.any(i,function(e,t){if(BI.deepContains(n,t.value))return r={text:t.text||t.value,iconCls:t.iconCls},!0}),BI.isNotNull(r)?{text:r.text,textCls:"",iconCls:r.iconCls}:{text:BI.isFunction(t.text)?t.text():t.text,textCls:"bi-water-mark",iconCls:t.iconCls}},setValue:function(e){var t=this._digist(e,this.options.items);this.trigger.setText(t.text),this.trigger.setIcon(t.iconCls),this.trigger.setTextCls(t.textCls)},populate:function(e){this.options.items=e}}),BI.shortcut("bi.select_icon_text_trigger",BI.SelectIconTextTrigger)},function(e,t){BI.TextTrigger=BI.inherit(BI.Trigger,{_const:{hgap:6},_defaultConfig:function(){var e=BI.TextTrigger.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-trigger",height:24,textCls:""})},_init:function(){BI.TextTrigger.superclass._init.apply(this,arguments);var e=this,t=this.options,n=this._const;this.text=BI.createWidget({type:"bi.label",cls:"select-text-label"+(BI.isKey(t.textCls)?" "+t.textCls:""),textAlign:"left",height:t.height,text:t.text,title:function(){return e.text.getText()},tipType:t.tipType,warningTitle:t.warningTitle,hgap:n.hgap,readonly:t.readonly}),this.trigerButton=BI.createWidget({type:"bi.trigger_icon_button",width:t.triggerWidth||t.height}),BI.createWidget({element:this,type:"bi.htape",items:[{el:this.text},{el:this.trigerButton,width:t.triggerWidth||t.height}]})},setTextCls:function(e){var t=this.options,n=t.textCls;t.textCls=e,this.text.element.removeClass(n).addClass(e)},setText:function(e){this.text.setText(e)},setTipType:function(e){this.text.options.tipType=e}}),BI.shortcut("bi.text_trigger",BI.TextTrigger)},function(e,t){BI.SelectTextTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.SelectTextTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-select-text-trigger bi-border bi-focus-shadow",height:24})},_init:function(){this.options.height-=2,BI.SelectTextTrigger.superclass._init.apply(this,arguments);var e=this.options,t=this._digest(e.value,e.items);this.trigger=BI.createWidget({type:"bi.text_trigger",element:this,height:e.height,readonly:e.readonly,text:t.text,textCls:t.textCls,tipType:e.tipType,warningTitle:e.warningTitle})},_digest:function(n,e){var t=this.options;n=BI.isArray(n)?n:[n];var r=[],i=BI.Tree.transformToArrayFormat(e);return BI.each(i,function(e,t){BI.deepContains(n,t.value)&&!BI.contains(r,t.text||t.value)&&r.push(t.text||t.value)}),0<r.length?{textCls:"",text:r.join(",")}:{textCls:"bi-water-mark",text:BI.isFunction(t.text)?t.text():t.text}},setValue:function(e){var t=this._digest(e,this.options.items);this.trigger.setTextCls(t.textCls),this.trigger.setText(t.text)},setTipType:function(e){this.trigger.setTipType(e)},populate:function(e){this.options.items=e}}),BI.shortcut("bi.select_text_trigger",BI.SelectTextTrigger)},function(e,t){BI.SmallSelectTextTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.SmallSelectTextTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-small-select-text-trigger bi-border",height:20})},_init:function(){this.options.height-=2,BI.SmallSelectTextTrigger.superclass._init.apply(this,arguments);var e=this.options,t=this._digest(e.value,e.items);this.trigger=BI.createWidget({type:"bi.small_text_trigger",element:this,height:e.height-2,text:t.text,cls:t.cls})},_digest:function(n,e){var t=this.options;n=BI.isArray(n)?n:[n];var r=[],i=BI.Tree.transformToArrayFormat(e);return BI.each(i,function(e,t){BI.deepContains(n,t.value)&&!BI.contains(r,t.text||t.value)&&r.push(t.text||t.value)}),0<r.length?{cls:"",text:r.join(",")}:{cls:"bi-water-mark",text:t.text}},setValue:function(e){var t=this._digest(e,this.options.items);this.trigger.element.removeClass("bi-water-mark").addClass(t.cls),this.trigger.setText(t.text)},populate:function(e){this.options.items=e}}),BI.shortcut("bi.small_select_text_trigger",BI.SmallSelectTextTrigger)},function(e,t){BI.SmallTextTrigger=BI.inherit(BI.Trigger,{_const:{hgap:6},_defaultConfig:function(){var e=BI.SmallTextTrigger.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-text-trigger",height:20})},_init:function(){BI.SmallTextTrigger.superclass._init.apply(this,arguments);var e=this.options,t=this._const;this.text=BI.createWidget({type:"bi.label",textAlign:"left",height:e.height,text:e.text,hgap:t.hgap}),this.trigerButton=BI.createWidget({type:"bi.trigger_icon_button",width:e.triggerWidth||e.height}),BI.createWidget({element:this,type:"bi.htape",items:[{el:this.text},{el:this.trigerButton,width:e.triggerWidth||e.height}]})},setValue:function(e){this.text.setValue(e)},setText:function(e){this.text.setText(e)}}),BI.shortcut("bi.small_text_trigger",BI.SmallTextTrigger)},function(e,t){BI.MonthDateCombo=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.MonthDateCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-month-combo",height:24,container:null})},_init:function(){BI.MonthDateCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget({type:"bi.date_triangle_trigger"}),this.popup=BI.createWidget({type:"bi.month_popup",allowMonths:t.allowMonths,behaviors:t.behaviors}),this.popup.on(BI.YearPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue())}),this.combo=BI.createWidget({type:"bi.combo",offsetStyle:"center",container:t.container,element:this,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:this.trigger,popup:{minWidth:85,stopPropagation:!1,el:this.popup}}),this.combo.on(BI.Combo.EVENT_CHANGE,function(){e.combo.hideView(),e.fireEvent(BI.MonthDateCombo.EVENT_CHANGE)}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){e.doBehavior()})},populate:function(){this.combo.populate.apply(this.combo,arguments)},setValue:function(e){this.trigger.setValue(e),this.popup.setValue(e)},getValue:function(){return this.popup.getValue()}}),BI.MonthDateCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.month_date_combo",BI.MonthDateCombo)},function(e,t){BI.YearDateCombo=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.YearDateCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-year-combo",min:"1900-01-01",max:"2099-12-31",behaviors:{},height:24,container:null})},_init:function(){BI.YearDateCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget({type:"bi.date_triangle_trigger"}),this.popup=BI.createWidget({type:"bi.year_popup",behaviors:t.behaviors,min:t.min,max:t.max}),this.popup.on(BI.YearPopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.combo.hideView(),e.fireEvent(BI.YearDateCombo.EVENT_CHANGE)}),this.combo=BI.createWidget({type:"bi.combo",offsetStyle:"center",element:this,container:t.container,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:this.trigger,popup:{minWidth:100,stopPropagation:!1,el:this.popup}}),this.combo.on(BI.Combo.EVENT_CHANGE,function(){e.fireEvent(BI.YearDateCombo.EVENT_CHANGE)}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){e.doBehavior()})},setMinDate:function(e){this.popup.setMinDate(e)},setMaxDate:function(e){this.popup.setMaxDate(e)},setValue:function(e){this.trigger.setValue(e),this.popup.setValue(e)},getValue:function(){return this.popup.getValue()}}),BI.YearDateCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.year_date_combo",BI.YearDateCombo)},function(e,t){BI.DatePicker=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.DatePicker.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-date-picker",height:40,min:"1900-01-01",max:"2099-12-31"})},_init:function(){BI.DatePicker.superclass._init.apply(this,arguments);var e=this,t=this.options;this._year=BI.getDate().getFullYear(),this._month=BI.getDate().getMonth()+1,this.left=BI.createWidget({type:"bi.icon_button",cls:"pre-page-h-font",width:24,height:24}),this.left.on(BI.IconButton.EVENT_CHANGE,function(){1===e._month?e.setValue({year:e.year.getValue()-1||BI.getDate().getFullYear()-1,month:12}):e.setValue({year:e.year.getValue()||BI.getDate().getFullYear(),month:e.month.getValue()-1||BI.getDate().getMonth()}),e.fireEvent(BI.DatePicker.EVENT_CHANGE),e._checkLeftValid(),e._checkRightValid()}),this.right=BI.createWidget({type:"bi.icon_button",cls:"next-page-h-font",width:24,height:24}),this.right.on(BI.IconButton.EVENT_CHANGE,function(){12===e._month?e.setValue({year:e.year.getValue()+1||BI.getDate().getFullYear()+1,month:1}):e.setValue({year:e.year.getValue()||BI.getDate().getFullYear(),month:e.month.getValue()+1||BI.getDate().getMonth()+2}),e.fireEvent(BI.DatePicker.EVENT_CHANGE),e._checkLeftValid(),e._checkRightValid()}),this.year=BI.createWidget({type:"bi.year_date_combo",behaviors:t.behaviors,min:t.min,max:t.max}),this.year.on(BI.YearDateCombo.EVENT_CHANGE,function(){e.setValue({year:e.year.getValue(),month:e._refreshMonth()}),e.fireEvent(BI.DatePicker.EVENT_CHANGE)}),this.month=BI.createWidget({type:"bi.month_date_combo",behaviors:t.behaviors,allowMonths:this._getAllowMonths()}),this.month.on(BI.MonthDateCombo.EVENT_CHANGE,function(){e.setValue({year:e.year.getValue()||e._year,month:e.month.getValue()}),e.fireEvent(BI.DatePicker.EVENT_CHANGE)}),BI.createWidget({type:"bi.htape",element:this,items:[{el:{type:"bi.center_adapt",items:[this.left]},width:24},{type:"bi.center_adapt",items:[{el:{type:"bi.horizontal",width:120,rgap:10,items:[{el:this.year,lgap:10},this.month]}}]},{el:{type:"bi.center_adapt",items:[this.right]},width:24}]}),this.setValue({year:this._year,month:this._month})},_refreshMonth:function(e){var t=this.month.getValue();this.month.populate(this._getAllowMonths());var n=this._getAllowMonths();return BI.contains(n,t)||(t=e||n[0]),this.month.setValue(t),t},_getAllowMonths:function(){var n=this._getCheckMinMaxDate(),r=this.year.getValue()||this._year;return BI.filter(BI.range(1,13),function(e,t){return!BI.checkDateVoid(r,t,1,n.min,n.max)[0]})},_checkLeftValid:function(){var e=this._getCheckMinMaxDate(),t=1===this._month?this._year-1:this._year,n=1===this._month?12:this._month-1,r=BI.isNull(BI.checkDateVoid(t,n,1,e.min,e.max)[0]);return this.left.setEnable(r),r},_checkRightValid:function(){var e=this._getCheckMinMaxDate(),t=12===this._month?this._year+1:this._year,n=12===this._month?1:this._month+1,r=BI.isNull(BI.checkDateVoid(t,n,1,e.min,e.max)[0]);return this.right.setEnable(r),r},_getCheckMinMaxDate:function(){var e=this.options,t=BI.parseDateTime(e.min,"%Y-%X-%d"),n=BI.parseDateTime(e.max,"%Y-%X-%d");return t.setDate(1),n.setDate(1),{min:BI.print(t,"%Y-%X-%d"),max:BI.print(n,"%Y-%X-%d")}},setMinDate:function(e){this.options.min=e,this.year.setMinDate(e),this._refreshMonth(this._month),this._checkLeftValid(),this._checkRightValid()},setMaxDate:function(e){this.options.max=e,this.year.setMaxDate(e),this._refreshMonth(this._month),this._checkLeftValid(),this._checkRightValid()},setValue:function(e){this._year=BI.parseInt(e.year),this._month=BI.parseInt(e.month),this.year.setValue(e.year),this._refreshMonth(this._month),this.month.setValue(e.month),this._checkLeftValid(),this._checkRightValid()},getValue:function(){return{year:this.year.getValue(),month:this.month.getValue()}}}),BI.DatePicker.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.date_picker",BI.DatePicker)},function(e,t){BI.YearPicker=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.YearPicker.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-year-picker",behaviors:{},height:40,min:"1900-01-01",max:"2099-12-31"})},_init:function(){BI.YearPicker.superclass._init.apply(this,arguments);var e=this,t=this.options;this._year=BI.getDate().getFullYear(),this.left=BI.createWidget({type:"bi.icon_button",cls:"pre-page-h-font",width:25,height:25}),this.left.on(BI.IconButton.EVENT_CHANGE,function(){e.setValue(e.year.getValue()-1),e.fireEvent(BI.YearPicker.EVENT_CHANGE),e._checkLeftValid(),e._checkRightValid()}),this.right=BI.createWidget({type:"bi.icon_button",cls:"next-page-h-font",width:25,height:25}),this.right.on(BI.IconButton.EVENT_CHANGE,function(){e.setValue(e.year.getValue()+1),e.fireEvent(BI.YearPicker.EVENT_CHANGE),e._checkLeftValid(),e._checkRightValid()}),this.year=BI.createWidget({type:"bi.year_date_combo",min:t.min,behaviors:t.behaviors,max:t.max,width:50}),this.year.on(BI.YearDateCombo.EVENT_CHANGE,function(){e.setValue(e.year.getValue()),e.fireEvent(BI.YearPicker.EVENT_CHANGE)}),BI.createWidget({type:"bi.htape",element:this,items:[{el:{type:"bi.center_adapt",items:[this.left]},width:25},{type:"bi.center_adapt",items:[{el:this.year}]},{el:{type:"bi.center_adapt",items:[this.right]},width:25}]}),this.setValue({year:this._year})},_checkLeftValid:function(){var e=this.options,t=this._year>BI.parseDateTime(e.min,"%Y-%X-%d").getFullYear();return this.left.setEnable(t),t},_checkRightValid:function(){var e=this.options,t=this._year<BI.parseDateTime(e.max,"%Y-%X-%d").getFullYear();return this.right.setEnable(t),t},setMinDate:function(e){this.options.min=e,this.year.setMinDate(e),this._checkLeftValid(),this._checkRightValid()},setMaxDate:function(e){this.options.max=e,this.year.setMaxDate(e),this._checkLeftValid(),this._checkRightValid()},setValue:function(e){this._year=e,this.year.setValue(e),this._checkLeftValid(),this._checkRightValid()},getValue:function(){return this.year.getValue()}}),BI.YearPicker.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.year_picker",BI.YearPicker)},function(e,t){BI.DateCalendarPopup=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.DateCalendarPopup.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-date-calendar-popup",min:"1900-01-01",max:"2099-12-31",selectedTime:null})},_createNav:function(e){var t=BI.Calendar.getDateJSONByPage(e);return BI.createWidget({type:"bi.calendar",logic:{dynamic:!0},min:this.options.min,max:this.options.max,year:t.year,month:t.month,day:1})},_init:function(){BI.DateCalendarPopup.superclass._init.apply(this,arguments);var e=this,t=this.options;this.today=BI.getDate(),this._year=this.today.getFullYear(),this._month=this.today.getMonth()+1,this._day=this.today.getDate(),this.selectedTime=t.selectedTime||{year:this._year,month:this._month,day:this._day},this.datePicker=BI.createWidget({type:"bi.date_picker",behaviors:t.behaviors,min:t.min,max:t.max}),this.calendar=BI.createWidget({direction:"top",logic:{dynamic:!0},type:"bi.navigation",tab:this.datePicker,cardCreator:BI.bind(this._createNav,this),afterCardCreated:function(){},afterCardShow:function(){this.setValue(e.selectedTime)}}),this.datePicker.on(BI.DatePicker.EVENT_CHANGE,function(){e.selectedTime=e.datePicker.getValue(),e.selectedTime.day=1,e.calendar.setSelect(BI.Calendar.getPageByDateJSON(e.selectedTime))}),this.calendar.on(BI.Navigation.EVENT_CHANGE,function(){e.selectedTime=e.calendar.getValue(),e.setValue(e.selectedTime),e.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE)}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.calendar,left:5,right:5},{el:{type:"bi.layout",cls:"bi-split-top"},height:1,top:40,left:0,right:0}]})},_checkMin:function(){var n=this.options;BI.each(this.calendar.getAllCard(),function(e,t){t.setMinDate(n.min)})},_checkMax:function(){var n=this.options;BI.each(this.calendar.getAllCard(),function(e,t){t.setMaxDate(n.max)})},setMinDate:function(e){BI.isNotEmptyString(this.options.min)&&(this.options.min=e,this.datePicker.setMinDate(e),this._checkMin())},setMaxDate:function(e){BI.isNotEmptyString(this.options.max)&&(this.options.max=e,this.datePicker.setMaxDate(e),this._checkMax())},setValue:function(e){this.datePicker.setValue(e),this.calendar.setSelect(BI.Calendar.getPageByDateJSON(e)),this.calendar.setValue(e),this.selectedTime=e},getValue:function(){return this.selectedTime}}),BI.DateCalendarPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.date_calendar_popup",BI.DateCalendarPopup)},function(e,t){BI.MonthPopup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MonthPopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-month-popup",behaviors:{}})},_init:function(){BI.MonthPopup.superclass._init.apply(this,arguments);var t=this,e=this.options;this.month=BI.createWidget({type:"bi.button_group",element:this,behaviors:e.behaviors,items:BI.createItems(this._getItems(e.allowMonths),{}),layouts:[BI.LogicFactory.createLogic("table",BI.extend({dynamic:!0},{columns:2,rows:6,columnSize:[.5,.5],rowSize:25})),{type:"bi.center_adapt",vgap:1,hgap:2}],value:e.value}),this.month.on(BI.Controller.EVENT_CHANGE,function(e){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&t.fireEvent(BI.MonthPopup.EVENT_CHANGE)})},_getItems:function(n){var e=[1,7,2,8,3,9,4,10,5,11,6,12],t=[];return t.push(e.slice(0,2)),t.push(e.slice(2,4)),t.push(e.slice(4,6)),t.push(e.slice(6,8)),t.push(e.slice(8,10)),t.push(e.slice(10,12)),t=BI.map(t,function(e,t){return BI.map(t,function(e,t){return{type:"bi.text_item",cls:"bi-list-item-select",textAlign:"center",whiteSpace:"nowrap",once:!1,forceSelected:!0,height:23,width:38,value:t,text:t,disabled:!BI.contains(n,t)}})})},populate:function(e){this.month.populate(this._getItems(e))},getValue:function(){return this.month.getValue()[0]},setValue:function(e){e=BI.parseInt(e),this.month.setValue([e])}}),BI.MonthPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.month_popup",BI.MonthPopup)},function(e,t){BI.YearPopup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.YearPopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-year-popup",behaviors:{},min:"1900-01-01",max:"2099-12-31"})},_createYearCalendar:function(e){var t=this.options,n=this._year,r=BI.createWidget({type:"bi.year_calendar",behaviors:t.behaviors,min:t.min,max:t.max,logic:{dynamic:!0},year:n+12*e});return r.setValue(this._year),r},_init:function(){BI.YearPopup.superclass._init.apply(this,arguments);var t=this,e=this.options;this.selectedYear=this._year=BI.getDate().getFullYear(),this.backBtn=BI.createWidget({type:"bi.icon_button",cls:"pre-page-h-font",width:24,height:24,value:-1}),this.preBtn=BI.createWidget({type:"bi.icon_button",cls:"next-page-h-font",width:24,height:24,value:1}),this.navigation=BI.createWidget({type:"bi.navigation",element:this,single:!0,logic:{dynamic:!0},tab:{cls:"year-popup-navigation bi-high-light bi-split-top",height:24,items:[this.backBtn,this.preBtn]},cardCreator:BI.bind(this._createYearCalendar,this),afterCardCreated:function(){this.setValue(t.selectedYear);var e=this.getSelectedCard();e&&t.backBtn.setEnable(!e.isFrontYear()),e&&t.preBtn.setEnable(!e.isFinalYear())}}),this.navigation.on(BI.Navigation.EVENT_CHANGE,function(){t.selectedYear=this.getValue(),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments),t.fireEvent(BI.YearPopup.EVENT_CHANGE,t.selectedYear)}),BI.isKey(e.value)&&this.setValue(e.value)},_checkMin:function(){var e=this.navigation.getSelectedCard();BI.isNotNull(e)&&(e.setMinDate(this.options.min),this.backBtn.setEnable(!e.isFrontYear()),this.preBtn.setEnable(!e.isFinalYear()))},_checkMax:function(){var e=this.navigation.getSelectedCard();BI.isNotNull(e)&&(e.setMaxDate(this.options.max),this.backBtn.setEnable(!e.isFrontYear()),this.preBtn.setEnable(!e.isFinalYear()))},setMinDate:function(e){BI.isNotEmptyString(this.options.min)&&(this.options.min=e,this._checkMin())},setMaxDate:function(e){BI.isNotEmptyString(this.options.max)&&(this.options.max=e,this._checkMax())},getValue:function(){return this.selectedYear},setValue:function(e){var t=this.options;e=BI.parseInt(e);var n=BI.parseDateTime(t.min,"%Y-%X-%d"),r=BI.parseDateTime(t.max,"%Y-%X-%d");BI.checkDateVoid(e,1,1,BI.print(BI.getDate(n.getFullYear(),0,1),"%Y-%X-%d"),BI.print(BI.getDate(r.getFullYear(),0,1),"%Y-%X-%d"))[0]?(e=BI.getDate().getFullYear(),this.selectedYear="",this.navigation.setSelect(BI.YearCalendar.getPageByYear(e)),this.navigation.setValue("")):(this.selectedYear=e,this.navigation.setSelect(BI.YearCalendar.getPageByYear(e)),this.navigation.setValue(e))}}),BI.YearPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.year_popup",BI.YearPopup)},function(e,t){BI.DateTriangleTrigger=BI.inherit(BI.Trigger,{_const:{height:24,iconWidth:12,iconHeight:12},_defaultConfig:function(){return BI.extend(BI.DateTriangleTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-date-triangle-trigger pull-down-ha-font cursor-pointer",height:24})},_init:function(){BI.DateTriangleTrigger.superclass._init.apply(this,arguments);var e=this.options,t=this._const;this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"right",text:e.text,value:e.value,height:t.height}),BI.createWidget({type:"bi.vertical_adapt",element:this,items:[{el:this.text,rgap:5},{type:"bi.icon_label",width:16}]})},setValue:function(e){this.text.setValue(e)},getValue:function(){return this.text.getValue()},setText:function(e){this.text.setText(e)},getText:function(){return this.item.getText()},getKey:function(){}}),BI.shortcut("bi.date_triangle_trigger",BI.DateTriangleTrigger)},function(e,t){BI.StaticDatePaneCard=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.StaticDatePaneCard.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-date-pane",min:"1900-01-01",max:"2099-12-31",selectedTime:null})},_init:function(){BI.StaticDatePaneCard.superclass._init.apply(this,arguments);var r=this,e=this.options;this.today=BI.getDate(),this._year=this.today.getFullYear(),this._month=this.today.getMonth()+1,this.selectedTime=e.selectedTime||{year:this._year,month:this._month},this.datePicker=BI.createWidget({type:"bi.date_picker",behaviors:e.behaviors,min:e.min,max:e.max}),this.datePicker.on(BI.DatePicker.EVENT_CHANGE,function(){var e=r.datePicker.getValue(),t=BI.getMonthDays(BI.getDate(e.year,e.month-1,1)),n=r.selectedTime.day||0;t<n&&(n=t),r.selectedTime={year:e.year,month:e.month},0!==n&&(r.selectedTime.day=n),r.calendar.setSelect(BI.Calendar.getPageByDateJSON(r.selectedTime)),r.calendar.setValue(r.selectedTime),0!==n&&r.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE)}),this.calendar=BI.createWidget({direction:"custom",type:"bi.navigation",tab:this.datePicker,cardCreator:BI.bind(this._createNav,this)}),this.calendar.on(BI.Navigation.EVENT_CHANGE,function(){r.selectedTime=r.calendar.getValue(),r.calendar.empty(),r.setValue(r.selectedTime),r.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE)}),this.setValue(e.selectedTime),BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.datePicker,height:40},this.calendar],hgap:10}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.layout",cls:"bi-split-top"},height:1,top:40,left:0,right:0}]})},_createNav:function(e){var t=BI.Calendar.getDateJSONByPage(e);return BI.createWidget({type:"bi.calendar",logic:{dynamic:!1},min:this.options.min,max:this.options.max,year:t.year,month:t.month,day:this.selectedTime.day})},_getNewCurrentDate:function(){var e=BI.getDate();return{year:e.getFullYear(),month:e.getMonth()+1}},_setCalenderValue:function(e){this.calendar.setSelect(BI.Calendar.getPageByDateJSON(e)),this.calendar.setValue(e),this.selectedTime=e},_setDatePicker:function(e){BI.isNull(e)||BI.isNull(e.year)||BI.isNull(e.month)?this.datePicker.setValue(this._getNewCurrentDate()):this.datePicker.setValue(e)},_setCalendar:function(e){BI.isNull(e)||BI.isNull(e.day)?(this.calendar.empty(),this._setCalenderValue(this._getNewCurrentDate())):this._setCalenderValue(e)},setValue:function(e){this._setDatePicker(e),this._setCalendar(e)},getValue:function(){return this.selectedTime}}),BI.shortcut("bi.static_date_pane_card",BI.StaticDatePaneCard)},function(e,t){BI.DynamicDatePane=BI.inherit(BI.Widget,{props:{baseCls:"bi-dynamic-date-pane"},render:function(){var n=this,t=this.options;return{type:"bi.vtape",items:[{el:{type:"bi.linear_segment",cls:"bi-split-bottom",height:30,items:BI.createItems([{text:BI.i18nText("BI-Multi_Date_YMD"),value:BI.DynamicDatePane.Static},{text:BI.i18nText("BI-Basic_Dynamic_Title"),value:BI.DynamicDatePane.Dynamic}],{textAlign:"center"}),listeners:[{eventName:BI.ButtonGroup.EVENT_CHANGE,action:function(){var e=this.getValue()[0];switch(n.dateTab.setSelect(e),e){case BI.DynamicDatePane.Static:var t=BI.DynamicDateHelper.getCalculation(n.dynamicPane.getValue());n.ymd.setValue({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()});break;case BI.DynamicDatePane.Dynamic:n.dynamicPane.setValue({year:0})}n.fireEvent(BI.DynamicDatePane.EVENT_CHANGE)}}],ref:function(){n.switcher=this}},height:30},{type:"bi.tab",ref:function(){n.dateTab=this},showIndex:BI.DynamicDatePane.Static,cardCreator:function(e){switch(e){case BI.DynamicDatePane.Static:return{type:"bi.static_date_pane_card",behaviors:t.behaviors,listeners:[{eventName:"EVENT_CHANGE",action:function(){n.fireEvent(BI.DynamicDatePane.EVENT_CHANGE)}}],ref:function(){n.ymd=this}};case BI.DynamicDatePane.Dynamic:default:return{type:"bi.dynamic_date_card",listeners:[{eventName:"EVENT_CHANGE",action:function(){n._checkValue(n.getValue())&&n.fireEvent(BI.DynamicDatePane.EVENT_CHANGE)}}],ref:function(){n.dynamicPane=this}}}}}]}},mounted:function(){this.setValue(this.options.value)},_checkValueValid:function(e){return BI.isNull(e)||BI.isEmptyObject(e)||BI.isEmptyString(e)},_checkValue:function(e){switch(e.type){case BI.DynamicDateCombo.Dynamic:return BI.isNotEmptyObject(e.value);case BI.DynamicDateCombo.Static:default:return!0}},setValue:function(e){var t,n=(e=e||{}).type||BI.DynamicDateCombo.Static,r=e.value||e;switch(this.switcher.setValue(n),this.dateTab.setSelect(n),n){case BI.DynamicDateCombo.Dynamic:this.dynamicPane.setValue(r);break;case BI.DynamicDateCombo.Static:default:this._checkValueValid(r)?(t=BI.getDate(),this.ymd.setValue({year:t.getFullYear(),month:t.getMonth()+1})):this.ymd.setValue(r)}},getValue:function(){return{type:this.dateTab.getSelect(),value:this.dateTab.getValue()}}}),BI.DynamicDatePane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_date_pane",BI.DynamicDatePane),BI.extend(BI.DynamicDatePane,{Static:1,Dynamic:2})},function(e,t){BI.DateTimeCombo=BI.inherit(BI.Single,{constants:{popupHeight:290,popupWidth:270,comboAdjustHeight:1,border:1},_defaultConfig:function(){return BI.extend(BI.DateTimeCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-date-time-combo bi-border bi-border-radius",width:200,height:24,minDate:"1900-01-01",maxDate:"2099-12-31"})},_init:function(){BI.DateTimeCombo.superclass._init.apply(this,arguments);var e=this,t=this.options,n=BI.getDate();this.storeValue=BI.isNotNull(t.value)?t.value:{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds()},this.trigger=BI.createWidget({type:"bi.date_time_trigger",min:t.minDate,max:t.maxDate,value:t.value}),this.popup=BI.createWidget({type:"bi.date_time_popup",behaviors:t.behaviors,min:t.minDate,max:t.maxDate,value:t.value}),e.setValue(this.storeValue),this.popup.on(BI.DateTimePopup.BUTTON_CANCEL_EVENT_CHANGE,function(){e.setValue(e.storeValue),e.hidePopupView(),e.fireEvent(BI.DateTimeCombo.EVENT_CANCEL)}),this.popup.on(BI.DateTimePopup.BUTTON_OK_EVENT_CHANGE,function(){e.storeValue=e.popup.getValue(),e.setValue(e.storeValue),e.hidePopupView(),e.fireEvent(BI.DateTimeCombo.EVENT_CONFIRM)}),this.combo=BI.createWidget({type:"bi.combo",container:t.container,toggle:!1,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:this.trigger,adjustLength:this.constants.comboAdjustHeight,popup:{el:this.popup,width:this.constants.popupWidth,stopPropagation:!1},hideChecker:function(e){return 0===r.element.find(e.target).length}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){e.popup.setValue(e.storeValue),e.fireEvent(BI.DateTimeCombo.EVENT_BEFORE_POPUPVIEW)});var r=BI.createWidget({type:"bi.icon_button",cls:"bi-trigger-icon-button date-font",width:24,height:24});r.on(BI.IconButton.EVENT_CHANGE,function(){e.combo.isViewVisible()||e.combo.showView()}),BI.createWidget({type:"bi.htape",element:this,items:[{type:"bi.absolute",items:[{el:this.combo,top:0,left:0,right:0,bottom:0},{el:r,top:0,right:0}]}]})},setValue:function(e){this.storeValue=e,this.popup.setValue(e),this.trigger.setValue(e)},getValue:function(){return this.storeValue},hidePopupView:function(){this.combo.hideView()}}),BI.DateTimeCombo.EVENT_CANCEL="EVENT_CANCEL",BI.DateTimeCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.DateTimeCombo.EVENT_CHANGE="EVENT_CHANGE",BI.DateTimeCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.date_time_combo",BI.DateTimeCombo)},function(e,t){BI.DateTimePopup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.DateTimePopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-date-time-popup",width:268,height:374})},_init:function(){BI.DateTimePopup.superclass._init.apply(this,arguments);var t=this,e=this.options;this.cancelButton=BI.createWidget({type:"bi.text_button",cls:"multidate-popup-button bi-border-top bi-border-right",shadow:!0,text:BI.i18nText("BI-Basic_Cancel")}),this.cancelButton.on(BI.TextButton.EVENT_CHANGE,function(){t.fireEvent(BI.DateTimePopup.BUTTON_CANCEL_EVENT_CHANGE)}),this.okButton=BI.createWidget({type:"bi.text_button",cls:"multidate-popup-button bi-border-top",shadow:!0,text:BI.i18nText("BI-Basic_OK")}),this.okButton.on(BI.TextButton.EVENT_CHANGE,function(){t.fireEvent(BI.DateTimePopup.BUTTON_OK_EVENT_CHANGE)}),this.dateCombo=BI.createWidget({type:"bi.date_calendar_popup",behaviors:e.behaviors,min:t.options.min,max:t.options.max}),t.dateCombo.on(BI.DateCalendarPopup.EVENT_CHANGE,function(){t.fireEvent(BI.DateTimePopup.CALENDAR_EVENT_CHANGE)}),this.dateButton=BI.createWidget({type:"bi.grid",items:[[this.cancelButton,this.okButton]]}),BI.createWidget({element:this,type:"bi.vtape",items:[{el:this.dateCombo},{el:{type:"bi.center_adapt",cls:"bi-split-top",items:[{type:"bi.dynamic_date_time_select",ref:function(e){t.timeSelect=e}}]},height:50},{el:this.dateButton,height:30}]}),this.setValue(e.value)},setValue:function(e){var t,n=e;BI.isNull(n)?(t=BI.getDate(),this.dateCombo.setValue({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()}),this.timeSelect.setValue({hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()})):(this.dateCombo.setValue({year:n.year,month:n.month,day:n.day}),this.timeSelect.setValue({hour:n.hour,minute:n.minute,second:n.second}))},getValue:function(){return BI.extend({year:this.dateCombo.getValue().year,month:this.dateCombo.getValue().month,day:this.dateCombo.getValue().day},this.timeSelect.getValue())}}),BI.DateTimePopup.BUTTON_OK_EVENT_CHANGE="BUTTON_OK_EVENT_CHANGE",BI.DateTimePopup.BUTTON_CANCEL_EVENT_CHANGE="BUTTON_CANCEL_EVENT_CHANGE",BI.DateTimePopup.CALENDAR_EVENT_CHANGE="CALENDAR_EVENT_CHANGE",BI.shortcut("bi.date_time_popup",BI.DateTimePopup)},function(e,t){BI.DateTimeTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4},_defaultConfig:function(){return BI.extend(BI.DateTimeTrigger.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-date-time-trigger",min:"1900-01-01",max:"2099-12-31",height:24,width:200})},_init:function(){BI.DateTimeTrigger.superclass._init.apply(this,arguments);var e=this.options,t=this._const;this.text=BI.createWidget({type:"bi.label",textAlign:"left",height:e.height,width:e.width,hgap:t.hgap}),BI.createWidget({type:"bi.htape",element:this,items:[{el:this.text},{el:BI.createWidget(),width:e.height}]}),this.setValue(e.value)},_printTime:function(e){return e<10?"0"+e:e},setValue:function(e){var t,n,r=e;n=BI.isNull(r)?(r=BI.getDate(),BI.print(r,"%Y-%X-%d %H:%M:%S")):(t=BI.getDate(r.year,r.month-1,r.day,r.hour,r.minute,r.second),BI.print(t,"%Y-%X-%d %H:%M:%S")),this.text.setText(n),this.text.setTitle(n)}}),BI.shortcut("bi.date_time_trigger",BI.DateTimeTrigger)},function(e,t){BI.StaticDateTimePaneCard=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.StaticDateTimePaneCard.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-date-time-pane",min:"1900-01-01",max:"2099-12-31",selectedTime:null})},_init:function(){BI.StaticDateTimePaneCard.superclass._init.apply(this,arguments);var r=this,e=this.options;this.today=BI.getDate(),this._year=this.today.getFullYear(),this._month=this.today.getMonth()+1,this.selectedTime=e.selectedTime||{year:this._year,month:this._month},this.datePicker=BI.createWidget({type:"bi.date_picker",behaviors:e.behaviors,min:e.min,max:e.max}),this.datePicker.on(BI.DatePicker.EVENT_CHANGE,function(){var e=r.datePicker.getValue(),t=BI.getMonthDays(BI.getDate(e.year,e.month-1,1)),n=r.selectedTime.day||0;t<n&&(n=t),r.selectedTime=BI.extend(r.selectedTime,{year:e.year,month:e.month}),0!==n&&(r.selectedTime.day=n),r.calendar.setSelect(BI.Calendar.getPageByDateJSON(r.selectedTime)),r.calendar.setValue(r.selectedTime),0!==n&&r.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE)}),this.calendar=BI.createWidget({direction:"custom",type:"bi.navigation",tab:this.datePicker,cardCreator:BI.bind(this._createNav,this)}),this.calendar.on(BI.Navigation.EVENT_CHANGE,function(){r.selectedTime=BI.extend(r.calendar.getValue(),r.timeSelect.getValue()),r.calendar.empty(),r.setValue(r.selectedTime),r.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE)}),BI.createWidget({type:"bi.vtape",element:this,hgap:10,items:[{el:this.datePicker,height:40},this.calendar,{el:{type:"bi.dynamic_date_time_select",cls:"bi-split-top",ref:function(){r.timeSelect=this},listeners:[{eventName:BI.DynamicDateTimeSelect.EVENT_CONFIRM,action:function(){r.selectedTime=BI.extend(r.calendar.getValue(),r.timeSelect.getValue()),r.fireEvent("EVENT_CHANGE")}}]},height:40}]}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.layout",cls:"bi-split-top"},height:1,top:40,left:0,right:0}]}),this.setValue(e.selectedTime)},_createNav:function(e){var t=BI.Calendar.getDateJSONByPage(e);return BI.createWidget({type:"bi.calendar",logic:{dynamic:!1},min:this.options.min,max:this.options.max,year:t.year,month:t.month,day:this.selectedTime.day})},_getNewCurrentDate:function(){var e=BI.getDate();return{year:e.getFullYear(),month:e.getMonth()+1}},_setCalenderValue:function(e){this.calendar.setSelect(BI.Calendar.getPageByDateJSON(e)),this.calendar.setValue(e),this.selectedTime=BI.extend({},this.timeSelect.getValue(),e)},_setDatePicker:function(e){BI.isNull(e)||BI.isNull(e.year)||BI.isNull(e.month)?this.datePicker.setValue(this._getNewCurrentDate()):this.datePicker.setValue(e)},_setCalendar:function(e){BI.isNull(e)||BI.isNull(e.day)?(this.calendar.empty(),this._setCalenderValue(this._getNewCurrentDate())):this._setCalenderValue(e)},setValue:function(e){e=e||{},this._setDatePicker(e),this._setCalendar(e),this.timeSelect.setValue({hour:e.hour,minute:e.minute,second:e.second})},getValue:function(){return this.selectedTime}}),BI.shortcut("bi.static_date_time_pane_card",BI.StaticDateTimePaneCard)},function(e,t){BI.DynamicDateTimePane=BI.inherit(BI.Widget,{props:{baseCls:"bi-dynamic-date-pane"},render:function(){var n=this,t=this.options;return{type:"bi.vtape",items:[{el:{type:"bi.linear_segment",cls:"bi-split-bottom",height:30,items:BI.createItems([{text:BI.i18nText("BI-Multi_Date_YMD"),value:BI.DynamicDateTimePane.Static},{text:BI.i18nText("BI-Basic_Dynamic_Title"),value:BI.DynamicDateTimePane.Dynamic}],{textAlign:"center"}),listeners:[{eventName:BI.ButtonGroup.EVENT_CHANGE,action:function(){var e=this.getValue()[0];switch(n.dateTab.setSelect(e),e){case BI.DynamicDateTimePane.Static:var t=BI.DynamicDateHelper.getCalculation(n.dynamicPane.getValue());n.ymd.setValue({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()});break;case BI.DynamicDateTimePane.Dynamic:n.dynamicPane.setValue({year:0})}}}],ref:function(){n.switcher=this}},height:30},{type:"bi.tab",ref:function(){n.dateTab=this},showIndex:BI.DynamicDateTimePane.Static,cardCreator:function(e){switch(e){case BI.DynamicDateTimePane.Static:return{type:"bi.static_date_time_pane_card",behaviors:t.behaviors,listeners:[{eventName:"EVENT_CHANGE",action:function(){n.fireEvent("EVENT_CHANGE")}}],ref:function(){n.ymd=this}};case BI.DynamicDateTimePane.Dynamic:default:return{type:"bi.dynamic_date_card",listeners:[{eventName:"EVENT_CHANGE",action:function(){n._checkValue(n.getValue())&&n.fireEvent("EVENT_CHANGE")}}],ref:function(){n.dynamicPane=this}}}}}]}},mounted:function(){this.setValue(this.options.value)},_checkValueValid:function(e){return BI.isNull(e)||BI.isEmptyObject(e)||BI.isEmptyString(e)},_checkValue:function(e){switch(e.type){case BI.DynamicDateCombo.Dynamic:return BI.isNotEmptyObject(e.value);case BI.DynamicDateCombo.Static:default:return!0}},setValue:function(e){var t,n=(e=e||{}).type||BI.DynamicDateTimePane.Static,r=e.value||e;switch(this.switcher.setValue(n),this.dateTab.setSelect(n),n){case BI.DynamicDateTimePane.Dynamic:this.dynamicPane.setValue(r);break;case BI.DynamicDateTimePane.Static:default:this._checkValueValid(r)?(t=BI.getDate(),this.ymd.setValue({year:t.getFullYear(),month:t.getMonth()+1})):this.ymd.setValue(r)}},getValue:function(){return{type:this.dateTab.getSelect(),value:this.dateTab.getValue()}}}),BI.shortcut("bi.dynamic_date_time_pane",BI.DynamicDateTimePane),BI.extend(BI.DynamicDateTimePane,{Static:1,Dynamic:2})},function(e,t){BI.DownListCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.DownListCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-down-list-combo",height:24,items:[],adjustLength:0,direction:"bottom",trigger:"click",container:null,stopPropagation:!1,el:{}})},_init:function(){BI.DownListCombo.superclass._init.apply(this,arguments);var n=this,e=this.options;this.popupview=BI.createWidget({type:"bi.down_list_popup",items:e.items,chooseType:e.chooseType,value:e.value}),this.popupview.on(BI.DownListPopup.EVENT_CHANGE,function(e){n.fireEvent(BI.DownListCombo.EVENT_CHANGE,e),n.downlistcombo.hideView()}),this.popupview.on(BI.DownListPopup.EVENT_SON_VALUE_CHANGE,function(e,t){n.fireEvent(BI.DownListCombo.EVENT_SON_VALUE_CHANGE,e,t),n.downlistcombo.hideView()}),this.downlistcombo=BI.createWidget({element:this,type:"bi.combo",trigger:e.trigger,isNeedAdjustWidth:!1,container:e.container,adjustLength:e.adjustLength,direction:e.direction,belowMouse:e.belowMouse,stopPropagation:e.stopPropagation,el:BI.createWidget(e.el,{type:"bi.icon_trigger",extraCls:e.iconCls,width:e.width,height:e.height}),popup:{el:this.popupview,stopPropagation:e.stopPropagation,maxHeight:1e3,minWidth:140}}),this.downlistcombo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){n.fireEvent(BI.DownListCombo.EVENT_BEFORE_POPUPVIEW)})},hideView:function(){this.downlistcombo.hideView()},showView:function(e){this.downlistcombo.showView(e)},populate:function(e){this.popupview.populate(e)},setValue:function(e){this.popupview.setValue(e)},getValue:function(){return this.popupview.getValue()}}),BI.DownListCombo.EVENT_CHANGE="EVENT_CHANGE",BI.DownListCombo.EVENT_SON_VALUE_CHANGE="EVENT_SON_VALUE_CHANGE",BI.DownListCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.down_list_combo",BI.DownListCombo)},function(e,t){BI.DownListGroup=BI.inherit(BI.Widget,{constants:{iconCls:"check-mark-ha-font"},_defaultConfig:function(){return BI.extend(BI.DownListGroup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-down-list-group",items:[{el:{}}]})},_init:function(){BI.DownListGroup.superclass._init.apply(this,arguments);var e=this.options,t=this;this.downlistgroup=BI.createWidget({element:this,type:"bi.button_tree",items:e.items,chooseType:0,layouts:[{type:"bi.vertical",hgap:0,vgap:0}],value:e.value}),this.downlistgroup.on(BI.Controller.EVENT_CHANGE,function(e){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&t.fireEvent(BI.DownListGroup.EVENT_CHANGE,arguments)})},getValue:function(){return this.downlistgroup.getValue()},setValue:function(e){this.downlistgroup.setValue(e)}}),BI.DownListGroup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.down_list_group",BI.DownListGroup)},function(e,t){BI.DownListItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.DownListItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-down-list-item bi-list-item-active",cls:"",height:24,logic:{dynamic:!0},selected:!1,iconHeight:null,iconWidth:null,textHgap:0,textVgap:0,textLgap:0,textRgap:0})},_init:function(){BI.DownListItem.superclass._init.apply(this,arguments);var e=this.options;this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",hgap:e.textHgap,vgap:e.textVgap,lgap:e.textLgap,rgap:e.textRgap,text:e.text,value:e.value,keyword:e.keyword,height:e.height}),this.icon=BI.createWidget({type:"bi.center_adapt",width:36,height:e.height,items:[{el:{type:"bi.icon",width:e.iconWidth,height:e.iconHeight}}]}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,this.icon,this.text)}))))},setValue:function(){this.isReadOnly()||this.text.setValue.apply(this.text,arguments)},getValue:function(){return this.text.getValue()},setText:function(){this.text.setText.apply(this.text,arguments)},getText:function(){return this.text.getText()},doClick:function(){BI.DownListItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.DownListItem.EVENT_CHANGE,this.getValue(),this)},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)}}),BI.DownListItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.down_list_item",BI.DownListItem)},function(e,t){BI.DownListGroupItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.DownListGroupItem.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-down-list-group-item",logic:{dynamic:!1},iconCls1:"dot-e-font",iconCls2:"pull-right-e-font"})},_init:function(){BI.DownListGroupItem.superclass._init.apply(this,arguments);var e=this.options,t=this;this.text=BI.createWidget({type:"bi.label",cls:"list-group-item-text",textAlign:"left",text:e.text,value:e.value,height:e.height}),this.icon1=BI.createWidget({type:"bi.icon_button",cls:e.iconCls1,width:36,disableSelected:!0,selected:this._digest(e.value)}),this.icon2=BI.createWidget({type:"bi.icon_button",cls:e.iconCls2,width:24,forceNotSelected:!0});var n=BI.createWidget({type:"bi.layout",width:24});BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.icon2,top:0,bottom:0,right:0}]}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",this.icon1,this.text,n)})))),this.element.hover(function(){t.isEnabled()&&t.hover()},function(){t.isEnabled()&&t.dishover()})},_digest:function(e){var n=this.options;return e=BI.isArray(e)?e:[e],BI.any(e,function(e,t){return BI.contains(n.childValues,t)})},hover:function(){BI.DownListGroupItem.superclass.hover.apply(this,arguments),this.icon1.element.addClass("hover"),this.icon2.element.addClass("hover")},dishover:function(){BI.DownListGroupItem.superclass.dishover.apply(this,arguments),this.icon1.element.removeClass("hover"),this.icon2.element.removeClass("hover")},doClick:function(){BI.DownListGroupItem.superclass.doClick.apply(this,arguments),this.isValid()&&this.fireEvent(BI.DownListGroupItem.EVENT_CHANGE,this.getValue())},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},setValue:function(e){this.icon1.setSelected(this._digest(e))}}),BI.DownListGroupItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.down_list_group_item",BI.DownListGroupItem)},function(e,t){BI.DownListPopup=BI.inherit(BI.Pane,{constants:{nextIcon:"pull-right-e-font",height:24,iconHeight:12,iconWidth:12,hgap:0,vgap:0,border:1},_defaultConfig:function(){var e=BI.DownListPopup.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-down-list-popup",items:[],chooseType:BI.Selection.Multi})},_init:function(){BI.DownListPopup.superclass._init.apply(this,arguments),this.singleValues=[],this.childValueMap={},this.fatherValueMap={},this.items=BI.deepClone(this.options.items);var a=this,e=this.options,t=this._createChildren(this.items);this.popup=BI.createWidget({type:"bi.button_tree",items:BI.createItems(t,{},{adjustLength:-2}),layouts:[{type:"bi.vertical",hgap:this.constants.hgap,vgap:this.constants.vgap}],value:this._digest(e.value),chooseType:e.chooseType}),this.popup.on(BI.ButtonTree.EVENT_CHANGE,function(e,t){var n,r,i=e;BI.isNotNull(a.childValueMap[e])?(i=a.childValueMap[e],a.fireEvent(BI.DownListPopup.EVENT_SON_VALUE_CHANGE,i,a.fatherValueMap[e])):a.fireEvent(BI.DownListPopup.EVENT_CHANGE,i,t),BI.contains(a.singleValues,i)||(n=a.getValue(),r=[],BI.each(n,function(e,t){t.value!=i&&r.push(t)}),a.setValue(r))}),BI.createWidget({type:"bi.vertical",element:this,items:[this.popup],vgap:5})},_createChildren:function(i){var a=this,o=[];return BI.each(i,function(e,t){var n,r={type:"bi.down_list_group",items:[]};BI.each(t,function(e,i){BI.isNotEmptyArray(i.children)&&!BI.isEmpty(i.el)?(i.type="bi.combo_group",i.isDefaultInit=!0,i.cls="down-list-group",i.trigger="hover",i.isNeedAdjustWidth=!1,i.el.title=i.el.title||i.el.text,i.el.type="bi.down_list_group_item",i.el.logic={dynamic:!0},i.el.height=i.el.height||a.constants.height,i.el.iconCls2=a.constants.nextIcon,i.popup={lgap:1,el:{type:"bi.button_tree",chooseType:0,layouts:[{type:"bi.vertical"}]},innerVGap:5,maxHeight:378},i.el.childValues=[],BI.each(i.children,function(e,t){var n=BI.deepClone(i.el.value),r=BI.deepClone(t.value);a.singleValues.push(t.value),t.type=t.type||"bi.down_list_item",t.extraCls=" child-down-list-item",t.title=t.title||t.text,t.textRgap=10,t.isNeedAdjustWidth=!1,t.logic={dynamic:!0},t.father=n,a.fatherValueMap[a._createChildValue(n,r)]=n,a.childValueMap[a._createChildValue(n,r)]=r,t.value=a._createChildValue(n,r),i.el.childValues.push(t.value)})):(i.type=i.type||"bi.down_list_item",i.title=i.title||i.text,i.textRgap=10,i.isNeedAdjustWidth=!1,i.logic={dynamic:!0});var t={};t.el=i,r.items.push(t)}),a._isGroup(r.items)&&BI.each(r.items,function(e,t){a.singleValues.push(t.el.value)}),o.push(r),a._needSpliter(e,i.length)&&(n=BI.createWidget({type:"bi.vertical",items:[{el:{type:"bi.layout",cls:"bi-down-list-spliter bi-split-top cursor-pointer",height:0}}],cls:"bi-down-list-spliter-container cursor-pointer",vgap:5,lgap:10,rgap:0}),o.push(n))}),o},_isGroup:function(e){return 1<e.length},_needSpliter:function(e,t){return e<t-1},_createChildValue:function(e,t){return e+"_"+t},_digest:function(e){var r=this,i=[];return BI.each(e,function(e,t){var n=BI.isNotNull(t.childValue)?r._createChildValue(t.value,t.childValue):t.value;i.push(n)}),i},_checkValues:function(c){var u=[];return BI.each(this.items,function(s,e){BI.each(e,function(e,t){var n,r,i,a,o;BI.isNotNull(t.children)?(n=BI.map(t.children,"value"),i=n,a=c[s],o="",BI.some(i,function(e,n){return BI.some(a,function(e,t){if(n===t)return o=n,!0})}),r=o,BI.isNotEmptyString(r)&&u.push(r)):t.value===c[s][0]&&u.push(c[s][0])})}),u},populate:function(e){BI.DownListPopup.superclass.populate.apply(this,arguments),this.items=BI.deepClone(e),this.childValueMap={},this.fatherValueMap={},this.singleValues=[];var t=this._createChildren(this.items),n=BI.createItems(t,{},{adjustLength:-2});this.popup.populate(n)},setValue:function(e){this.popup.setValue(this._digest(e))},_getValue:function(){var n=[];return BI.each(this.popup.getAllButtons(),function(e,t){e%2==0&&n.push(t.getValue())}),n},getValue:function(){var i=this,a=[],e=this._checkValues(this._getValue());return BI.each(e,function(e,t){var n,r={};BI.isNotNull(i.childValueMap[t])?(n=i.fatherValueMap[t],r.childValue=i.childValueMap[t],r.value=n):r.value=t,a.push(r)}),a}}),BI.DownListPopup.EVENT_CHANGE="EVENT_CHANGE",BI.DownListPopup.EVENT_SON_VALUE_CHANGE="EVENT_SON_VALUE_CHANGE",BI.shortcut("bi.down_list_popup",BI.DownListPopup)},function(e,t){BI.DynamicDateHelper={},BI.extend(BI.DynamicDateHelper,{getCalculation:function(e){var t=BI.getDate();return this.getCalculationByDate(t,e)},getCalculationByDate:function(e,t){if(BI.isNotNull(t.year)&&(e=BI.getDate(e.getFullYear()+BI.parseInt(t.year),e.getMonth(),e.getDate())),BI.isNotNull(t.quarter)&&(e=BI.getOffsetQuarter(e,BI.parseInt(t.quarter))),BI.isNotNull(t.month)&&(e=BI.getOffsetMonth(e,BI.parseInt(t.month))),BI.isNotNull(t.week)&&(e=BI.getOffsetDate(e,7*BI.parseInt(t.week))),BI.isNotNull(t.day)&&(e=BI.getOffsetDate(e,BI.parseInt(t.day))),BI.isNotNull(t.workDay))if(BI.isNotNull(BI.holidays))for(var n=Math.abs(t.workDay),r=0;r<n;r++)e=BI.getOffsetDate(e,t.workDay<0?-1:1),BI.isNotNull(BI.holidays[BI.print(e,"%Y-%X-%d")])&&r--;else e=BI.getOffsetDate(e,BI.parseInt(t.workDay));return BI.isNotNull(t.position)&&t.position!==BI.DynamicDateCard.OFFSET.CURRENT&&(e=this.getBeginDate(e,t)),BI.getDate(e.getFullYear(),e.getMonth(),e.getDate())},getBeginDate:function(e,t){return BI.isNotNull(t.day)?t.position===BI.DynamicDateCard.OFFSET.BEGIN?BI.getDate(e.getFullYear(),e.getMonth(),1):BI.getDate(e.getFullYear(),e.getMonth(),BI.getLastDateOfMonth(e).getDate()):BI.isNotNull(t.week)?t.position===BI.DynamicDateCard.OFFSET.BEGIN?BI.getWeekStartDate(e):BI.getWeekEndDate(e):BI.isNotNull(t.month)?t.position===BI.DynamicDateCard.OFFSET.BEGIN?BI.getDate(e.getFullYear(),e.getMonth(),1):BI.getDate(e.getFullYear(),e.getMonth(),BI.getLastDateOfMonth(e).getDate()):BI.isNotNull(t.quarter)?t.position===BI.DynamicDateCard.OFFSET.BEGIN?BI.getQuarterStartDate(e):BI.getQuarterEndDate(e):BI.isNotNull(t.year)?t.position===BI.DynamicDateCard.OFFSET.BEGIN?BI.getDate(e.getFullYear(),0,1):BI.getDate(e.getFullYear(),11,31):e}})},function(e,t){BI.DynamicDateCard=BI.inherit(BI.Widget,{props:{baseCls:"bi-dynamic-date-card"},render:function(){var e=this;return this.position=BI.DynamicDateCard.OFFSET.CURRENT,{type:"bi.vertical",items:[{el:{type:"bi.label",text:BI.i18nText("BI-Multi_Date_Relative_Current_Time"),textAlign:"left",height:12,lgap:10},tgap:10,bgap:5},{type:"bi.button_group",ref:function(){e.checkgroup=this},chooseType:BI.ButtonGroup.CHOOSE_TYPE_MULTI,lgap:4,value:[BI.DynamicDateCard.TYPE.YEAR],items:BI.createItems([{text:BI.i18nText("BI-Basic_Year"),value:BI.DynamicDateCard.TYPE.YEAR},{text:BI.i18nText("BI-Basic_Single_Quarter"),value:BI.DynamicDateCard.TYPE.QUARTER},{text:BI.i18nText("BI-Basic_Month"),value:BI.DynamicDateCard.TYPE.MONTH},{text:BI.i18nText("BI-Basic_Week"),value:BI.DynamicDateCard.TYPE.WEEK},{text:BI.i18nText("BI-Basic_Day"),value:BI.DynamicDateCard.TYPE.DAY}],{type:"bi.multi_select_item",logic:{dynamic:!0}}),layouts:[{type:"bi.left",rgap:4}],listeners:[{eventName:BI.ButtonGroup.EVENT_CHANGE,action:function(){0!==e.checkgroup.getValue().length&&e.workDayBox.setSelected(!1);var r={};BI.each(e.resultPane.getAllButtons(),function(e,t){var n=t.getValue();BI.isNotNull(n.dateType)&&(r[n.dateType]={value:n.value,offset:n.offset})}),e.resultPane.populate(e._getParamJson(BI.map(e.checkgroup.getValue(),function(e,t){var n={dateType:t};return BI.has(r,t)&&(n.value=r[t].value,n.offset=r[t].offset),n}))),e.position=BI.DynamicDateCard.OFFSET.CURRENT,e.fireEvent("EVENT_CHANGE")}}]},{type:"bi.vertical_adapt",lgap:2,items:[{el:{type:"bi.multi_select_item",ref:function(){e.workDayBox=this},logic:{dynamic:!0},text:BI.i18nText("BI-Basic_Work_Day"),value:BI.DynamicDateCard.TYPE.WORK_DAY,listeners:[{eventName:BI.MultiSelectItem.EVENT_CHANGE,action:function(){this.isSelected()&&e.checkgroup.setValue(),e.resultPane.populate(this.isSelected()?e._getParamJson([{dateType:BI.DynamicDateCard.TYPE.WORK_DAY}]):[]),e.position=BI.DynamicDateCard.OFFSET.CURRENT,e.fireEvent("EVENT_CHANGE")}}]}}],ref:function(){e.workDay=this}},{type:"bi.button_group",items:this._getParamJson([{dateType:BI.DynamicDateCard.TYPE.YEAR}]),ref:function(){e.resultPane=this},layouts:[{type:"bi.vertical",bgap:10,hgap:10}]}]}},_getParamJson:function(e,t){var n,r=this,i=BI.map(e,function(e,t){return{el:{type:"bi.dynamic_date_param_item",dateType:t.dateType,value:t.value,offset:t.offset,listeners:[{eventName:"EVENT_CHANGE",action:function(){r.fireEvent("EVENT_CHANGE")}}]},tgap:0===e?5:0}});return 1===e.length&&e[0].dateType===BI.DynamicDateCard.TYPE.DAY?((n=this._getText(BI.DynamicDateCard.TYPE.MONTH))[0].text=BI.i18nText("BI-Basic_Empty"),i.push({type:"bi.text_value_combo",height:24,items:n,container:null,value:t||BI.DynamicDateCard.OFFSET.CURRENT,listeners:[{eventName:"EVENT_CHANGE",action:function(){r.position=this.getValue()[0],r.fireEvent("EVENT_CHANGE")}}]})):0!==e.length&&BI.last(e).dateType!==BI.DynamicDateCard.TYPE.DAY&&BI.last(e).dateType!==BI.DynamicDateCard.TYPE.WORK_DAY&&i.push({type:"bi.text_value_combo",height:24,container:null,items:this._getText(BI.last(e).dateType),value:t||BI.DynamicDateCard.OFFSET.CURRENT,listeners:[{eventName:"EVENT_CHANGE",action:function(){r.position=this.getValue()[0],r.fireEvent("EVENT_CHANGE")}}]}),i},_getText:function(e){switch(e){case BI.DynamicDateCard.TYPE.YEAR:return[{text:BI.i18nText("BI-Basic_Current_Day"),value:BI.DynamicDateCard.OFFSET.CURRENT},{text:BI.i18nText("BI-Basic_Year_Begin"),value:BI.DynamicDateCard.OFFSET.BEGIN},{text:BI.i18nText("BI-Basic_Year_End"),value:BI.DynamicDateCard.OFFSET.END}];case BI.DynamicDateCard.TYPE.QUARTER:return[{text:BI.i18nText("BI-Basic_Current_Day"),value:BI.DynamicDateCard.OFFSET.CURRENT},{text:BI.i18nText("BI-Basic_Quarter_Begin"),value:BI.DynamicDateCard.OFFSET.BEGIN},{text:BI.i18nText("BI-Basic_Quarter_End"),value:BI.DynamicDateCard.OFFSET.END}];case BI.DynamicDateCard.TYPE.MONTH:return[{text:BI.i18nText("BI-Basic_Current_Day"),value:BI.DynamicDateCard.OFFSET.CURRENT},{text:BI.i18nText("BI-Basic_Month_Begin"),value:BI.DynamicDateCard.OFFSET.BEGIN},{text:BI.i18nText("BI-Basic_Month_End"),value:BI.DynamicDateCard.OFFSET.END}];case BI.DynamicDateCard.TYPE.WEEK:default:return[{text:BI.i18nText("BI-Basic_Current_Day"),value:BI.DynamicDateCard.OFFSET.CURRENT},{text:BI.i18nText("BI-Basic_Week_Begin"),value:BI.DynamicDateCard.OFFSET.BEGIN},{text:BI.i18nText("BI-Basic_Week_End"),value:BI.DynamicDateCard.OFFSET.END}]}},_createValue:function(e,t){return{dateType:e,value:Math.abs(t),offset:0<t?1:0}},setValue:function(e){e=e||{},this.position=e.position||BI.DynamicDateCard.OFFSET.CURRENT;var t=[],n=[];BI.isNotNull(e.year)&&(t.push(BI.DynamicDateCard.TYPE.YEAR),n.push(this._createValue(BI.DynamicDateCard.TYPE.YEAR,e.year))),BI.isNotNull(e.quarter)&&(t.push(BI.DynamicDateCard.TYPE.QUARTER),n.push(this._createValue(BI.DynamicDateCard.TYPE.QUARTER,e.quarter))),BI.isNotNull(e.month)&&(t.push(BI.DynamicDateCard.TYPE.MONTH),n.push(this._createValue(BI.DynamicDateCard.TYPE.MONTH,e.month))),BI.isNotNull(e.week)&&(t.push(BI.DynamicDateCard.TYPE.WEEK),n.push(this._createValue(BI.DynamicDateCard.TYPE.WEEK,e.week))),BI.isNotNull(e.day)&&(t.push(BI.DynamicDateCard.TYPE.DAY),n.push(this._createValue(BI.DynamicDateCard.TYPE.DAY,e.day))),BI.isNotNull(e.workDay)&&(t.push(BI.DynamicDateCard.TYPE.WORK_DAY),n.push(this._createValue(BI.DynamicDateCard.TYPE.WORK_DAY,e.workDay))),this.checkgroup.setValue(t),this.workDayBox.setSelected(BI.isNotNull(e.workDay)),this.resultPane.populate(this._getParamJson(n,e.position))},getValue:function(){var e,r=this,i={},t=this.checkgroup.getValue(),n=this.resultPane.getAllButtons();return 0!==t.length&&BI.each(n,function(e,t){var n=t.getValue();switch(n.dateType){case BI.DynamicDateCard.TYPE.YEAR:i.year=0===n.offset?-n.value:n.value;break;case BI.DynamicDateCard.TYPE.QUARTER:i.quarter=0===n.offset?-n.value:n.value;break;case BI.DynamicDateCard.TYPE.MONTH:i.month=0===n.offset?-n.value:n.value;break;case BI.DynamicDateCard.TYPE.WEEK:i.week=0===n.offset?-n.value:n.value;break;case BI.DynamicDateCard.TYPE.DAY:i.day=0===n.offset?-n.value:n.value}BI.isNull(n.dateType)&&(i.position=r.position||BI.DynamicDateCard.OFFSET.CURRENT)}),this.workDayBox.isSelected()&&(e=n[0].getValue(),i.workDay=0===e.offset?-e.value:e.value),i}}),BI.shortcut("bi.dynamic_date_card",BI.DynamicDateCard),BI.extend(BI.DynamicDateCard,{TYPE:{YEAR:1,QUARTER:2,MONTH:3,WEEK:4,DAY:5,WORK_DAY:6},OFFSET:{CURRENT:1,BEGIN:2,END:3}})},function(e,t){BI.DynamicDateCombo=BI.inherit(BI.Single,{constants:{popupHeight:259,popupWidth:270,comboAdjustHeight:1,border:1},props:{baseCls:"bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",height:22,minDate:"1900-01-01",maxDate:"2099-12-31",format:"",allowEdit:!0},render:function(){var n=this,e=this.options;this.storeTriggerValue="";var t=BI.getDate();return this.storeValue=e.value,{type:"bi.htape",items:[{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button date-change-h-font",width:e.height,height:e.height,ref:function(){n.changeIcon=this}},width:e.height},{type:"bi.absolute",items:[{el:{type:"bi.combo",container:e.container,ref:function(){n.combo=this},toggle:!1,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,destroyWhenHide:!0,el:{type:"bi.dynamic_date_trigger",min:e.minDate,max:e.maxDate,format:e.format,allowEdit:e.allowEdit,watermark:e.watermark,height:e.height,value:e.value,ref:function(){n.trigger=this},listeners:[{eventName:BI.DynamicDateTrigger.EVENT_KEY_DOWN,action:function(){n.combo.isViewVisible()&&n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_KEY_DOWN,arguments)}},{eventName:BI.DynamicDateTrigger.EVENT_STOP,action:function(){n.combo.isViewVisible()||n.combo.showView()}},{eventName:BI.DynamicDateTrigger.EVENT_FOCUS,action:function(){n.storeTriggerValue=n.trigger.getKey(),n.combo.isViewVisible()||n.combo.showView(),n.fireEvent(BI.DynamicDateCombo.EVENT_FOCUS)}},{eventName:BI.DynamicDateTrigger.EVENT_BLUR,action:function(){n.fireEvent(BI.DynamicDateCombo.EVENT_BLUR)}},{eventName:BI.DynamicDateTrigger.EVENT_ERROR,action:function(){n.storeValue={type:BI.DynamicDateCombo.Static,value:{year:t.getFullYear(),month:t.getMonth()+1}},n.fireEvent(BI.DynamicDateCombo.EVENT_ERROR)}},{eventName:BI.DynamicDateTrigger.EVENT_VALID,action:function(){n.fireEvent(BI.DynamicDateCombo.EVENT_VALID)}},{eventName:BI.DynamicDateTrigger.EVENT_CHANGE,action:function(){n.fireEvent(BI.DynamicDateCombo.EVENT_CHANGE)}},{eventName:BI.DynamicDateTrigger.EVENT_CONFIRM,action:function(){var e,t;n.combo.isViewVisible()||(e=n.storeTriggerValue,t=n.trigger.getKey(),BI.isNotEmptyString(t)&&!BI.isEqual(t,e)?(n.storeValue=n.trigger.getValue(),n.setValue(n.trigger.getValue())):BI.isEmptyString(t)&&(n.storeValue=null,n.trigger.setValue()),n._checkDynamicValue(n.storeValue),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM))}}]},adjustLength:this.constants.comboAdjustHeight,popup:{el:{type:"bi.dynamic_date_popup",behaviors:e.behaviors,min:e.minDate,max:e.maxDate,ref:function(){n.popup=this},listeners:[{eventName:BI.DynamicDatePopup.BUTTON_CLEAR_EVENT_CHANGE,action:function(){n.setValue(),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicDatePopup.BUTTON_lABEL_EVENT_CHANGE,action:function(){var e=BI.getDate();n.setValue({type:BI.DynamicDateCombo.Static,value:{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}}),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE,action:function(){var e=n.popup.getValue();n._checkValue(e)&&n.setValue(e),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicDatePopup.EVENT_CHANGE,action:function(){n.setValue(n.popup.getValue()),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}}]},stopPropagation:!1},hideChecker:function(e){return 0===n.triggerBtn.element.find(e.target).length},listeners:[{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){n.popup.setMinDate(e.minDate),n.popup.setMaxDate(e.maxDate),n.popup.setValue(n.storeValue),n.fireEvent(BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW)}}]},top:0,left:0,right:0,bottom:0},{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button date-font",width:e.height,height:e.height,listeners:[{eventName:BI.IconButton.EVENT_CHANGE,action:function(){n.combo.isViewVisible()||n.combo.showView()}}],ref:function(){n.triggerBtn=this}},top:0,right:0}]}],ref:function(e){n.comboWrapper=e}}},mounted:function(){this._checkDynamicValue(this.storeValue)},_checkDynamicValue:function(e){var t=this.options,n=null;switch(BI.isNotNull(e)&&(n=e.type),n){case BI.DynamicDateCombo.Dynamic:this.changeIcon.setVisible(!0),this.comboWrapper.attr("items")[0].width=t.height,this.comboWrapper.resize();break;default:this.comboWrapper.attr("items")[0].width=0,this.comboWrapper.resize(),this.changeIcon.setVisible(!1)}},_checkValue:function(e){switch(e.type){case BI.DynamicDateCombo.Dynamic:return BI.isNotEmptyObject(e.value);case BI.DynamicDateCombo.Static:default:return!0}},_defaultState:function(){},setMinDate:function(e){this.options.minDate=e,this.trigger.setMinDate(e),this.popup&&this.popup.setMinDate(e)},setMaxDate:function(e){this.options.maxDate=e,this.trigger.setMaxDate(e),this.popup&&this.popup.setMaxDate(e)},setValue:function(e){this.storeValue=e,this.trigger.setValue(e),this._checkDynamicValue(e)},getValue:function(){return this.storeValue},getKey:function(){return this.trigger.getKey()},hidePopupView:function(){this.combo.hideView()}}),BI.DynamicDateCombo.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.DynamicDateCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicDateCombo.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicDateCombo.EVENT_BLUR="EVENT_BLUR",BI.DynamicDateCombo.EVENT_CHANGE="EVENT_CHANGE",BI.DynamicDateCombo.EVENT_VALID="EVENT_VALID",BI.DynamicDateCombo.EVENT_ERROR="EVENT_ERROR",BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.dynamic_date_combo",BI.DynamicDateCombo),BI.extend(BI.DynamicDateCombo,{Static:1,Dynamic:2})},function(e,t){BI.DynamicDateParamItem=BI.inherit(BI.Widget,{props:{baseCls:"bi-dynamic-date-param-item",dateType:BI.DynamicDateCard.TYPE.YEAR,value:0,offset:0,height:24},render:function(){var e=this,t=this.options;return{type:"bi.htape",items:[{el:{type:"bi.sign_editor",cls:"bi-border",height:22,validationChecker:function(e){return BI.isNaturalNumber(e)},value:t.value,ref:function(){e.editor=this},errorText:function(e){return BI.isEmptyString(e)?BI.i18nText("BI-Basic_Please_Input_Content"):BI.i18nText("BI-Please_Input_Natural_Number")},allowBlank:!1,listeners:[{eventName:BI.SignEditor.EVENT_CONFIRM,action:function(){e.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE)}}]},width:60},{el:{type:"bi.label",height:24,text:this._getText()},width:t.dateType===BI.DynamicDateCard.TYPE.WORK_DAY?60:20},{type:"bi.text_value_combo",height:24,items:[{text:BI.i18nText("BI-Basic_Front"),value:0},{text:BI.i18nText("BI-Basic_Behind"),value:1}],ref:function(){e.offsetCombo=this},container:null,value:t.offset,listeners:[{eventName:BI.TextValueCombo.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicDateParamItem.EVENT_CHANGE)}}]}]}},_getText:function(){var e="";switch(this.options.dateType){case BI.DynamicDateCard.TYPE.YEAR:e=BI.i18nText("BI-Basic_Year");break;case BI.DynamicDateCard.TYPE.QUARTER:e=BI.i18nText("BI-Basic_Single_Quarter");break;case BI.DynamicDateCard.TYPE.MONTH:e=BI.i18nText("BI-Basic_Month");break;case BI.DynamicDateCard.TYPE.WEEK:e=BI.i18nText("BI-Basic_Week");break;case BI.DynamicDateCard.TYPE.DAY:e=BI.i18nText("BI-Basic_Day");break;case BI.DynamicDateCard.TYPE.WORK_DAY:default:e=BI.i18nText("BI-Basic_Work_Day")}return e},setValue:function(e){(e=e||{}).value=e.value||0,e.offset=e.offset||0,this.editor.setValue(e.value),this.offsetCombo.setValue(e.offset)},getValue:function(){return{dateType:this.options.dateType,value:this.editor.getValue(),offset:this.offsetCombo.getValue()[0]}}}),BI.DynamicDateParamItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_date_param_item",BI.DynamicDateParamItem)},function(e,t){BI.DynamicDatePopup=BI.inherit(BI.Widget,{constants:{tabHeight:30,buttonHeight:24},props:{baseCls:"bi-dynamic-date-popup",width:248,height:344},_init:function(){BI.DynamicDatePopup.superclass._init.apply(this,arguments);var e=this,t=this.options,n=this.constants;this.storeValue={type:BI.DynamicDateCombo.Static},BI.createWidget({element:this,type:"bi.vtape",items:[{el:this._getTabJson()},{el:{type:"bi.grid",items:[[{type:"bi.text_button",cls:"bi-high-light bi-split-top",shadow:!0,text:BI.i18nText("BI-Basic_Clear"),textHeight:n.buttonHeight-1,listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicDatePopup.BUTTON_CLEAR_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-left bi-split-right bi-high-light bi-split-top",shadow:!0,textHeight:n.buttonHeight-1,text:BI.i18nText("BI-Multi_Date_Today"),ref:function(){e.textButton=this},listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicDatePopup.BUTTON_lABEL_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-high-light bi-split-top",textHeight:n.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_OK"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE)}}]}]]},height:24}]}),this.setValue(t.value)},_getTabJson:function(){var t=this,n=this.options;return{type:"bi.tab",ref:function(){t.dateTab=this},tab:{type:"bi.linear_segment",cls:"bi-split-bottom",height:this.constants.tabHeight,items:BI.createItems([{text:BI.i18nText("BI-Multi_Date_YMD"),value:BI.DynamicDateCombo.Static},{text:BI.i18nText("BI-Basic_Dynamic_Title"),value:BI.DynamicDateCombo.Dynamic}],{textAlign:"center"})},cardCreator:function(e){switch(e){case BI.DynamicDateCombo.Dynamic:return{type:"bi.dynamic_date_card",listeners:[{eventName:"EVENT_CHANGE",action:function(){t._setInnerValue(t.year,e)}}],ref:function(){t.dynamicPane=this}};case BI.DynamicDateCombo.Static:default:return{type:"bi.date_calendar_popup",behaviors:n.behaviors,min:t.options.min,max:t.options.max,listeners:[{eventName:BI.DateCalendarPopup.EVENT_CHANGE,action:function(){t.fireEvent(BI.DynamicDatePopup.EVENT_CHANGE)}}],ref:function(){t.ymd=this}}}},listeners:[{eventName:BI.Tab.EVENT_CHANGE,action:function(){switch(t.dateTab.getSelect()){case BI.DynamicDateCombo.Static:var e=BI.DynamicDateHelper.getCalculation(t.dynamicPane.getValue());t.ymd.setValue({year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}),t._setInnerValue();break;case BI.DynamicDateCombo.Dynamic:default:t.storeValue&&t.storeValue.type===BI.DynamicDateCombo.Dynamic?t.dynamicPane.setValue(t.storeValue.value):t.dynamicPane.setValue({year:0}),t._setInnerValue()}}}]}},_setInnerValue:function(){var e;this.dateTab.getSelect()===BI.DynamicDateCombo.Static?(this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today")),this.textButton.setEnable(!0)):(e=BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()),e=BI.print(e,"%Y-%X-%d"),this.textButton.setValue(e),this.textButton.setEnable(!1))},_checkValueValid:function(e){return BI.isNull(e)||BI.isEmptyObject(e)||BI.isEmptyString(e)},setMinDate:function(e){this.options.min!==e&&(this.options.min=e,this.ymd.setMinDate(e))},setMaxDate:function(e){this.options.max!==e&&(this.options.max=e,this.ymd.setMaxDate(e))},setValue:function(e){this.storeValue=e;var t,n=(e=e||{}).type||BI.DynamicDateCombo.Static,r=e.value||e;switch(this.dateTab.setSelect(n),n){case BI.DynamicDateCombo.Dynamic:this.dynamicPane.setValue(r),this._setInnerValue();break;case BI.DynamicDateCombo.Static:default:this._checkValueValid(r)?(t=BI.getDate(),this.ymd.setValue({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()})):this.ymd.setValue(r),this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today")),this.textButton.setEnable(!0)}},getValue:function(){return{type:this.dateTab.getSelect(),value:this.dateTab.getValue()}}}),BI.DynamicDatePopup.EVENT_CHANGE="EVENT_CHANGE",BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE="BUTTON_OK_EVENT_CHANGE",BI.DynamicDatePopup.BUTTON_lABEL_EVENT_CHANGE="BUTTON_lABEL_EVENT_CHANGE",BI.DynamicDatePopup.BUTTON_CLEAR_EVENT_CHANGE="BUTTON_CLEAR_EVENT_CHANGE",BI.shortcut("bi.dynamic_date_popup",BI.DynamicDatePopup)},function(e,t){BI.DynamicDateTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4,vgap:2,yearLength:4,yearMonthLength:6,yearFullMonthLength:7,compareFormat:"%Y-%X-%d"},props:{extraCls:"bi-date-trigger",min:"1900-01-01",max:"2099-12-31",height:24,format:"",allowEdit:!0,watermark:""},_init:function(){BI.DynamicDateTrigger.superclass._init.apply(this,arguments);var r=this,i=this.options,e=this._const;this.storeTriggerValue="",this.editor=BI.createWidget({type:"bi.sign_editor",height:i.height,validationChecker:function(e){var t=r._getStandardDateStr(e),n=t.match(/\d+/g);return BI.isKey(i.format)||r._autoAppend(e,n),r._dateCheck(t)&&BI.checkDateLegal(t)&&r._checkVoid({year:0|n[0],month:0|n[1],day:0|n[2]})},quitChecker:function(){return!1},hgap:e.hgap,vgap:e.vgap,allowBlank:!0,watermark:BI.isKey(i.watermark)?i.watermark:BI.i18nText("BI-Basic_Unrestricted"),errorText:function(){var e="";return BI.isKey(i.format)||(e=r.editor.isEditing()?BI.i18nText("BI-Date_Trigger_Error_Text"):BI.i18nText("BI-Year_Trigger_Invalid_Text")),e},title:BI.bind(this._getTitle,this)}),this.editor.on(BI.SignEditor.EVENT_KEY_DOWN,function(){r.fireEvent(BI.DynamicDateTrigger.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.SignEditor.EVENT_FOCUS,function(){r.storeTriggerValue=r.getKey(),r.fireEvent(BI.DynamicDateTrigger.EVENT_FOCUS)}),this.editor.on(BI.SignEditor.EVENT_BLUR,function(){r.fireEvent(BI.DynamicDateTrigger.EVENT_BLUR)}),this.editor.on(BI.SignEditor.EVENT_STOP,function(){r.fireEvent(BI.DynamicDateTrigger.EVENT_STOP)}),this.editor.on(BI.SignEditor.EVENT_VALID,function(){r.fireEvent(BI.DynamicDateTrigger.EVENT_VALID)}),this.editor.on(BI.SignEditor.EVENT_ERROR,function(){r.fireEvent(BI.DynamicDateTrigger.EVENT_ERROR)}),this.editor.on(BI.SignEditor.EVENT_CONFIRM,function(){var e,t=r.editor.getValue();BI.isNotNull(t)&&r.editor.setState(t),BI.isNotEmptyString(t)&&!BI.isEqual(r.storeTriggerValue,r.getKey())&&(e=r._getStandardDateStr(t).match(/\d+/g),r.storeValue={type:BI.DynamicDateCombo.Static,value:{year:0|e[0],month:0|e[1],day:0|e[2]}}),r.fireEvent(BI.DynamicDateTrigger.EVENT_CONFIRM)}),this.editor.on(BI.SignEditor.EVENT_SPACE,function(){r.editor.isValid()&&r.editor.blur()}),this.editor.on(BI.SignEditor.EVENT_START,function(){r.fireEvent(BI.DynamicDateTrigger.EVENT_START)}),this.editor.on(BI.SignEditor.EVENT_CHANGE,function(){r.fireEvent(BI.DynamicDateTrigger.EVENT_CHANGE)}),BI.createWidget({type:"bi.htape",element:this,items:[{el:this.editor},{el:BI.createWidget(),width:24}]}),i.allowEdit||BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.text",title:BI.bind(this._getTitle,this)},left:0,right:24,top:0,bottom:0}]}),this.setValue(i.value)},_getTitle:function(){var e=this.storeValue||{},t=e.type||BI.DynamicDateCombo.Static,n=e.value;switch(t){case BI.DynamicDateCombo.Dynamic:var r=this._getText(n),i=BI.getDate(),i=BI.DynamicDateHelper.getCalculation(n),a=BI.print(i,this._getFormatString());return BI.isEmptyString(r)?a:r+":"+a;case BI.DynamicDateCombo.Static:default:return BI.isNull(n)||BI.isNull(n.day)?"":BI.print(BI.getDate(n.year,n.month-1,n.day),this._getFormatString())}},_getStandardDateStr:function(e){var t=this._const,n=[0,1,2],r=this._getFormatString().match(/%./g);BI.each(r,function(e,t){switch(t){case"%Y":case"%y":n[0]=e;break;case"%X":case"%x":n[1]=e;break;case"%d":case"%e":default:n[2]=e}});var i=BI.parseDateTime(e,this._getFormatString());BI.print(i,this._getFormatString())===e&&(e=BI.print(i,t.compareFormat),n=[0,1,2]);var a=e.match(/\d+/g),o=[];return BI.each(a,function(e){o[e]=a[n[e]]}),o.length===n.length&&2===o[0].length?BI.print(BI.parseDateTime(o.join("-"),t.compareFormat),t.compareFormat):o.join("-")},_getFormatString:function(){return this.options.format||this._const.compareFormat},_dateCheck:function(e){return BI.print(BI.parseDateTime(e,"%Y-%x-%d"),"%Y-%x-%d")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%d"),"%Y-%X-%d")===e||BI.print(BI.parseDateTime(e,"%Y-%x-%e"),"%Y-%x-%e")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%e"),"%Y-%X-%e")===e},_checkVoid:function(e){return!BI.checkDateVoid(e.year,e.month,e.day,this.options.min,this.options.max)[0]},_autoAppend:function(e,t){if(BI.isNotNull(t)&&BI.checkDateLegal(e))switch(e.length){case this._const.yearLength:this._yearCheck(e)&&this.editor.setValue(e+"-");break;case this._const.yearMonthLength:case this._const.yearFullMonthLength:var n=e.split("-")[1];(BI.isNotNull(n)&&2===n.length||this._monthCheck(e))&&this.editor.setValue(e+"-")}},_yearCheck:function(e){var t=BI.print(BI.parseDateTime(e,this._getFormatString()),this._const.compareFormat);return BI.print(BI.parseDateTime(e,"%Y"),"%Y")===e&&t>=this.options.min&&t<=this.options.max},_monthCheck:function(e){var t=BI.parseDateTime(e,this._getFormatString()),n=BI.print(t,this._const.compareFormat);return 0<=t.getMonth()&&(BI.print(BI.parseDateTime(e,"%Y-%X"),"%Y-%X")===e||BI.print(BI.parseDateTime(e,"%Y-%x"),"%Y-%x")===e)&&n>=this.options.min&&n<=this.options.max},_setInnerValue:function(e){var t=BI.print(e,this._getFormatString());this.editor.setState(t),this.editor.setValue(t)},_getText:function(e){var t="",n="";return BI.isNotNull(e.year)&&(0!==BI.parseInt(e.year)&&(t+=Math.abs(e.year)+BI.i18nText("BI-Basic_Year")+(e.year<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Year"),e.position)),BI.isNotNull(e.quarter)&&(0!==BI.parseInt(e.quarter)&&(t+=Math.abs(e.quarter)+BI.i18nText("BI-Basic_Single_Quarter")+(e.quarter<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Single_Quarter"),e.position)),BI.isNotNull(e.month)&&(0!==BI.parseInt(e.month)&&(t+=Math.abs(e.month)+BI.i18nText("BI-Basic_Month")+(e.month<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Month"),e.position)),BI.isNotNull(e.week)&&(0!==BI.parseInt(e.week)&&(t+=Math.abs(e.week)+BI.i18nText("BI-Basic_Week")+(e.week<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Week"),e.position)),BI.isNotNull(e.day)&&(0!==BI.parseInt(e.day)&&(t+=Math.abs(e.day)+BI.i18nText("BI-Basic_Day")+(e.day<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=1===BI.size(e)?r(BI.i18nText("BI-Basic_Month"),e.position):""),BI.isNotNull(e.workDay)&&0!==BI.parseInt(e.workDay)&&(t+=Math.abs(e.workDay)+BI.i18nText("BI-Basic_Work_Day")+(e.workDay<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),t+n;function r(e,t){switch(t){case BI.DynamicDateCard.OFFSET.BEGIN:return e+BI.i18nText("BI-Basic_Begin_Start");case BI.DynamicDateCard.OFFSET.END:return e+BI.i18nText("BI-Basic_End_Stop");case BI.DynamicDateCard.OFFSET.CURRENT:default:return BI.i18nText("BI-Basic_Current_Day")}}},setValue:function(e){var t,n,r,i=BI.getDate();switch(this.storeValue=e,BI.isNotNull(e)&&(t=e.type||BI.DynamicDateCombo.Static,n=e.value||e),t){case BI.DynamicDateCombo.Dynamic:var a=this._getText(n),i=BI.DynamicDateHelper.getCalculation(n);this._setInnerValue(i,a);break;case BI.DynamicDateCombo.Static:default:BI.isNull(n)||BI.isNull(n.day)?(this.editor.setState(""),this.editor.setValue("")):(r=BI.print(BI.getDate(n.year,n.month-1,n.day),this._getFormatString()),this.editor.setState(r),this.editor.setValue(r))}},setMinDate:function(e){BI.isNotEmptyString(this.options.min)&&(this.options.min=e)},setMaxDate:function(e){BI.isNotEmptyString(this.options.max)&&(this.options.max=e)},getKey:function(){return this.editor.getValue()},getValue:function(){return this.storeValue}}),BI.DynamicDateTrigger.EVENT_BLUR="EVENT_BLUR",BI.DynamicDateTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicDateTrigger.EVENT_START="EVENT_START",BI.DynamicDateTrigger.EVENT_STOP="EVENT_STOP",BI.DynamicDateTrigger.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicDateTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.DynamicDateTrigger.EVENT_VALID="EVENT_VALID",BI.DynamicDateTrigger.EVENT_ERROR="EVENT_ERROR",BI.DynamicDateTrigger.EVENT_TRIGGER_CLICK="EVENT_TRIGGER_CLICK",BI.DynamicDateTrigger.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.shortcut("bi.dynamic_date_trigger",BI.DynamicDateTrigger)},function(e,t){BI.DynamicDateTimeCombo=BI.inherit(BI.Single,{constants:{popupHeight:259,popupWidth:270,comboAdjustHeight:1,border:1},props:{baseCls:"bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",height:22,minDate:"1900-01-01",maxDate:"2099-12-31",format:"",allowEdit:!0},render:function(){var n=this,e=this.options;this.storeTriggerValue="";var t=BI.getDate();return this.storeValue=e.value,{type:"bi.htape",items:[{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button date-change-h-font",width:e.height,height:e.height,ref:function(){n.changeIcon=this}},width:e.height},{type:"bi.absolute",items:[{el:{type:"bi.combo",destroyWhenHide:!0,container:e.container,ref:function(){n.combo=this},toggle:!1,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:{type:"bi.dynamic_date_time_trigger",min:e.minDate,max:e.maxDate,allowEdit:e.allowEdit,watermark:e.watermark,format:e.format,height:e.height,value:e.value,ref:function(){n.trigger=this},listeners:[{eventName:BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN,action:function(){n.combo.isViewVisible()&&n.combo.hideView(),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_KEY_DOWN,arguments)}},{eventName:BI.DynamicDateTimeTrigger.EVENT_STOP,action:function(){n.combo.isViewVisible()||n.combo.showView()}},{eventName:BI.DynamicDateTimeTrigger.EVENT_TRIGGER_CLICK,action:function(){n.combo.toggle()}},{eventName:BI.DynamicDateTimeTrigger.EVENT_FOCUS,action:function(){n.storeTriggerValue=n.trigger.getKey(),n.combo.isViewVisible()||n.combo.showView(),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_FOCUS)}},{eventName:BI.DynamicDateTimeTrigger.EVENT_BLUR,action:function(){n.fireEvent(BI.DynamicDateTimeCombo.EVENT_BLUR)}},{eventName:BI.DynamicDateTimeTrigger.EVENT_ERROR,action:function(){n.storeValue={type:BI.DynamicDateTimeCombo.Static,value:{year:t.getFullYear(),month:t.getMonth()+1}},n.fireEvent(BI.DynamicDateTimeCombo.EVENT_ERROR)}},{eventName:BI.DynamicDateTimeTrigger.EVENT_VALID,action:function(){n.fireEvent(BI.DynamicDateTimeCombo.EVENT_VALID)}},{eventName:BI.DynamicDateTimeTrigger.EVENT_CHANGE,action:function(){n.fireEvent(BI.DynamicDateTimeCombo.EVENT_CHANGE)}},{eventName:BI.DynamicDateTimeTrigger.EVENT_CONFIRM,action:function(){var e,t;n.combo.isViewVisible()||(e=n.storeTriggerValue,t=n.trigger.getKey(),BI.isNotEmptyString(t)&&!BI.isEqual(t,e)?(n.storeValue=n.trigger.getValue(),n.setValue(n.trigger.getValue())):BI.isEmptyString(t)&&(n.storeValue=null,n.trigger.setValue()),n._checkDynamicValue(n.storeValue),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM))}}]},adjustLength:this.constants.comboAdjustHeight,popup:{el:{type:"bi.dynamic_date_time_popup",behaviors:e.behaviors,min:e.minDate,max:e.maxDate,ref:function(){n.popup=this},listeners:[{eventName:BI.DynamicDateTimePopup.BUTTON_CLEAR_EVENT_CHANGE,action:function(){n.setValue(),n.combo.hideView(),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicDateTimePopup.BUTTON_lABEL_EVENT_CHANGE,action:function(){var e=BI.getDate();n.setValue({type:BI.DynamicDateTimeCombo.Static,value:{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:0,minute:0,second:0}}),n.combo.hideView(),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE,action:function(){var e=n.popup.getValue();n._checkValue(e)&&n.setValue(e),n.combo.hideView(),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicDateTimePopup.EVENT_CHANGE,action:function(){n.setValue(n.popup.getValue()),n.combo.hideView(),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM)}}]},stopPropagation:!1},listeners:[{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){n.popup.setValue(n.storeValue),n.popup.setMinDate(e.minDate),n.popup.setMaxDate(e.maxDate),n.fireEvent(BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW)}}],hideChecker:function(e){return 0===n.triggerBtn.element.find(e.target).length}},top:0,left:0,right:0,bottom:0},{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button date-font",width:e.height,height:e.height,listeners:[{eventName:BI.IconButton.EVENT_CHANGE,action:function(){n.combo.isViewVisible()||n.combo.showView()}}],ref:function(){n.triggerBtn=this}},top:0,right:0}]}],ref:function(e){n.comboWrapper=e}}},mounted:function(){this._checkDynamicValue(this.storeValue)},_checkDynamicValue:function(e){var t=this.options,n=null;switch(BI.isNotNull(e)&&(n=e.type),n){case BI.DynamicDateTimeCombo.Dynamic:this.changeIcon.setVisible(!0),this.comboWrapper.attr("items")[0].width=t.height,this.comboWrapper.resize();break;default:this.comboWrapper.attr("items")[0].width=0,this.comboWrapper.resize(),this.changeIcon.setVisible(!1)}},_checkValue:function(e){switch(e.type){case BI.DynamicDateCombo.Dynamic:return BI.isNotEmptyObject(e.value);case BI.DynamicDateCombo.Static:default:return!0}},setMinDate:function(e){this.options.minDate=e,this.trigger.setMinDate(e),this.popup&&this.popup.setMinDate(e)},setMaxDate:function(e){this.options.maxDate=e,this.trigger.setMaxDate(e),this.popup&&this.popup.setMaxDate(e)},setValue:function(e){this.storeValue=e,this.trigger.setValue(e),this._checkDynamicValue(e)},getValue:function(){return this.storeValue},getKey:function(){return this.trigger.getKey()},hidePopupView:function(){this.combo.hideView()},isValid:function(){return this.trigger.isValid()}}),BI.DynamicDateTimeCombo.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.DynamicDateTimeCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicDateTimeCombo.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicDateTimeCombo.EVENT_BLUR="EVENT_BLUR",BI.DynamicDateTimeCombo.EVENT_CHANGE="EVENT_CHANGE",BI.DynamicDateTimeCombo.EVENT_VALID="EVENT_VALID",BI.DynamicDateTimeCombo.EVENT_ERROR="EVENT_ERROR",BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.dynamic_date_time_combo",BI.DynamicDateTimeCombo),BI.extend(BI.DynamicDateTimeCombo,{Static:1,Dynamic:2})},function(e,t){BI.DynamicDateTimePopup=BI.inherit(BI.Widget,{constants:{tabHeight:30,buttonHeight:24},props:{baseCls:"bi-dynamic-date-time-popup",width:248,height:385},_init:function(){BI.DynamicDateTimePopup.superclass._init.apply(this,arguments);var e=this,t=this.options,n=this.constants;this.storeValue={type:BI.DynamicDateCombo.Static},BI.createWidget({element:this,type:"bi.vtape",items:[{el:this._getTabJson()},{el:{type:"bi.grid",items:[[{type:"bi.text_button",cls:"bi-high-light bi-split-top",textHeight:n.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_Clear"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicDateTimePopup.BUTTON_CLEAR_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-left bi-split-right bi-high-light bi-split-top",textHeight:n.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Multi_Date_Today"),ref:function(){e.textButton=this},listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicDateTimePopup.BUTTON_lABEL_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-high-light bi-split-top",textHeight:n.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_OK"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE)}}]}]]},height:24}]}),this.setValue(t.value)},_getTabJson:function(){var t=this,n=this.options;return{type:"bi.tab",ref:function(){t.dateTab=this},tab:{type:"bi.linear_segment",cls:"bi-split-bottom",height:this.constants.tabHeight,items:BI.createItems([{text:BI.i18nText("BI-Multi_Date_YMD"),value:BI.DynamicDateCombo.Static},{text:BI.i18nText("BI-Basic_Dynamic_Title"),value:BI.DynamicDateCombo.Dynamic}],{textAlign:"center"})},cardCreator:function(e){switch(e){case BI.DynamicDateCombo.Dynamic:return{type:"bi.dynamic_date_card",listeners:[{eventName:"EVENT_CHANGE",action:function(){t._setInnerValue(t.year,e)}}],ref:function(){t.dynamicPane=this}};case BI.DynamicDateCombo.Static:default:return{type:"bi.vtape",items:[{type:"bi.date_calendar_popup",behaviors:n.behaviors,min:t.options.min,max:t.options.max,ref:function(){t.ymd=this}},{el:{type:"bi.dynamic_date_time_select",cls:"bi-split-top",ref:function(){t.timeSelect=this}},height:40}]}}},listeners:[{eventName:BI.Tab.EVENT_CHANGE,action:function(){switch(t.dateTab.getSelect()){case BI.DynamicDateCombo.Static:var e=BI.DynamicDateHelper.getCalculation(t.dynamicPane.getValue());t.ymd.setValue({year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}),t.timeSelect.setValue(),t._setInnerValue();break;case BI.DynamicDateCombo.Dynamic:default:t.storeValue&&t.storeValue.type===BI.DynamicDateCombo.Dynamic?t.dynamicPane.setValue(t.storeValue.value):t.dynamicPane.setValue({year:0}),t._setInnerValue()}}}]}},_setInnerValue:function(){var e;this.dateTab.getSelect()===BI.DynamicDateCombo.Static?(this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today")),this.textButton.setEnable(!0)):(e=BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()),e=BI.print(e,"%Y-%X-%d"),this.textButton.setValue(e),this.textButton.setEnable(!1))},_checkValueValid:function(e){return BI.isNull(e)||BI.isEmptyObject(e)||BI.isEmptyString(e)},setMinDate:function(e){this.options.min!==e&&(this.options.min=e,this.ymd.setMinDate(e))},setMaxDate:function(e){this.options.max!==e&&(this.options.max=e,this.ymd.setMaxDate(e))},setValue:function(e){this.storeValue=e;var t,n=(e=e||{}).type||BI.DynamicDateCombo.Static,r=e.value||e;switch(this.dateTab.setSelect(n),n){case BI.DynamicDateCombo.Dynamic:this.dynamicPane.setValue(r),this._setInnerValue();break;case BI.DynamicDateCombo.Static:default:this._checkValueValid(r)?(t=BI.getDate(),this.ymd.setValue({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()}),this.timeSelect.setValue()):(this.ymd.setValue(r),this.timeSelect.setValue({hour:r.hour,minute:r.minute,second:r.second})),this.textButton.setValue(BI.i18nText("BI-Multi_Date_Today")),this.textButton.setEnable(!0)}},getValue:function(){var e=this.dateTab.getSelect();return{type:e,value:e===BI.DynamicDateTimeCombo.Static?BI.extend(this.ymd.getValue(),this.timeSelect.getValue()):this.dynamicPane.getValue()}}}),BI.DynamicDateTimePopup.EVENT_CHANGE="EVENT_CHANGE",BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE="BUTTON_OK_EVENT_CHANGE",BI.DynamicDateTimePopup.BUTTON_lABEL_EVENT_CHANGE="BUTTON_lABEL_EVENT_CHANGE",BI.DynamicDateTimePopup.BUTTON_CLEAR_EVENT_CHANGE="BUTTON_CLEAR_EVENT_CHANGE",BI.shortcut("bi.dynamic_date_time_popup",BI.DynamicDateTimePopup)},function(e,t){BI.DynamicDateTimeSelect=BI.inherit(BI.Widget,{props:{baseCls:"bi-date-time-select"},render:function(){var t=this;return{type:"bi.center_adapt",items:[{type:"bi.vertical_adapt",items:[{el:{type:"bi.number_editor",ref:function(){t.hour=this},validationChecker:function(e){return BI.isNaturalNumber(e)&&BI.parseInt(e)<24},errorText:function(e){return BI.isNumeric(e)?BI.i18nText("BI-Basic_Input_From_To_Number",'"00-23"'):BI.i18nText("BI-Numerical_Interval_Input_Data")},listeners:[{eventName:BI.SignEditor.EVENT_CONFIRM,action:function(){var e=this.getValue();t._checkHour(e),this.setValue(t._formatValueToDoubleDigit(e)),t.fireEvent(BI.DynamicDateTimeSelect.EVENT_CONFIRM)}},{eventName:BI.SignEditor.EVENT_CHANGE,action:function(){var e=t._autoSwitch(this.getValue(),BI.DynamicDateTimeSelect.HOUR);this.setValue(e)}}],width:60,height:24}},{type:"bi.label",text:":",width:20},{type:"bi.number_editor",ref:function(){t.minute=this},validationChecker:function(e){return BI.isNaturalNumber(e)&&BI.parseInt(e)<60},errorText:function(e){return BI.isNumeric(e)?BI.i18nText("BI-Basic_Input_From_To_Number",'"00-59"'):BI.i18nText("BI-Numerical_Interval_Input_Data")},listeners:[{eventName:BI.SignEditor.EVENT_CONFIRM,action:function(){var e=this.getValue();t._checkMinute(e),this.setValue(t._formatValueToDoubleDigit(e),BI.DynamicDateTimeSelect.MINUTE),t.fireEvent(BI.DynamicDateTimeSelect.EVENT_CONFIRM)}},{eventName:BI.SignEditor.EVENT_CHANGE,action:function(){var e=t._autoSwitch(this.getValue(),BI.DynamicDateTimeSelect.MINUTE);this.setValue(e)}}],width:60,height:24},{type:"bi.label",text:":",width:20},{type:"bi.number_editor",ref:function(){t.second=this},validationChecker:function(e){return BI.isNaturalNumber(e)&&BI.parseInt(e)<60},errorText:function(e){return BI.isNumeric(e)?BI.i18nText("BI-Basic_Input_From_To_Number",'"00-59"'):BI.i18nText("BI-Numerical_Interval_Input_Data")},listeners:[{eventName:BI.SignEditor.EVENT_CONFIRM,action:function(){var e=this.getValue();t._checkSecond(e),this.setValue(t._formatValueToDoubleDigit(e)),t.fireEvent(BI.DynamicDateTimeSelect.EVENT_CONFIRM)}}],width:60,height:24}]}]}},_checkBorder:function(e){e=e||{},this._checkHour(e.hour),this._checkMinute(e.minute),this._checkSecond(e.second)},_checkHour:function(e){this.hour.setDownEnable(0<BI.parseInt(e)),this.hour.setUpEnable(BI.parseInt(e)<23)},_checkMinute:function(e){this.minute.setDownEnable(0<BI.parseInt(e)),this.minute.setUpEnable(BI.parseInt(e)<59)},_checkSecond:function(e){this.second.setDownEnable(0<BI.parseInt(e)),this.second.setUpEnable(BI.parseInt(e)<59)},_autoSwitch:function(e,t){var n=0,r=e+"";switch(t){case BI.DynamicDateTimeSelect.HOUR:n=2;break;case BI.DynamicDateTimeSelect.MINUTE:n=5}if(1===r.length&&BI.parseInt(r)>n&&(r="0"+r),2===r.length)switch(t){case BI.DynamicDateTimeSelect.HOUR:this.hour.isEditing()&&this.minute.focus();break;case BI.DynamicDateTimeSelect.MINUTE:this.minute.isEditing()&&this.second.focus();break;case BI.DynamicDateTimeSelect.SECOND:}return r},_formatValueToDoubleDigit:function(e){(BI.isNull(e)||BI.isEmptyString(e))&&(e=0);var t=BI.parseInt(e);return t<10&&(t="0"+t),t},_assertValue:function(e){return(e=e||{}).hour=this._formatValueToDoubleDigit(e.hour)||"00",e.minute=this._formatValueToDoubleDigit(e.minute)||"00",e.second=this._formatValueToDoubleDigit(e.second)||"00",e},getValue:function(){return{hour:BI.parseInt(this.hour.getValue()),minute:BI.parseInt(this.minute.getValue()),second:BI.parseInt(this.second.getValue())}},setValue:function(e){e=this._assertValue(e),this.hour.setValue(e.hour),this.minute.setValue(e.minute),this.second.setValue(e.second),this._checkBorder(e)}}),BI.DynamicDateTimeSelect.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.dynamic_date_time_select",BI.DynamicDateTimeSelect),BI.extend(BI.DynamicDateTimeSelect,{HOUR:1,MINUTE:2,SECOND:3})},function(e,t){BI.DynamicDateTimeTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4,vgap:2,yearLength:4,yearMonthLength:6,yearFullMonthLength:7,compareFormat:"%Y-%X-%d %H:%M:%S"},props:{extraCls:"bi-date-time-trigger",min:"1900-01-01",max:"2099-12-31",height:24,format:"",allowEdit:!0,watermark:""},_init:function(){BI.DynamicDateTimeTrigger.superclass._init.apply(this,arguments);var r=this,i=this.options,e=this._const;this.storeTriggerValue="",this.editor=BI.createWidget({type:"bi.sign_editor",height:i.height,validationChecker:function(e){var t=r._getStandardDateStr(e),n=t.match(/\d+/g);return BI.isKey(i.format)||r._autoAppend(e,n),r._dateCheck(t)&&BI.checkDateLegal(t)&&r._checkVoid({year:0|n[0],month:0|n[1],day:0|n[2]})},quitChecker:function(){return!1},hgap:e.hgap,vgap:e.vgap,allowBlank:!0,watermark:BI.isKey(i.watermark)?i.watermark:BI.i18nText("BI-Basic_Unrestricted"),errorText:function(){var e="";return BI.isKey(i.format)||(e=r.editor.isEditing()?BI.i18nText("BI-Basic_Date_Time_Error_Text"):BI.i18nText("BI-Year_Trigger_Invalid_Text")),e},title:BI.bind(this._getTitle,this)}),this.editor.on(BI.SignEditor.EVENT_KEY_DOWN,function(){r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.SignEditor.EVENT_FOCUS,function(){r.storeTriggerValue=r.getKey(),r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_FOCUS)}),this.editor.on(BI.SignEditor.EVENT_BLUR,function(){r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_BLUR)}),this.editor.on(BI.SignEditor.EVENT_STOP,function(){r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_STOP)}),this.editor.on(BI.SignEditor.EVENT_VALID,function(){r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_VALID)}),this.editor.on(BI.SignEditor.EVENT_ERROR,function(){r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_ERROR)}),this.editor.on(BI.SignEditor.EVENT_CONFIRM,function(){var e,t=r.editor.getValue();BI.isNotNull(t)&&r.editor.setState(t),BI.isNotEmptyString(t)&&!BI.isEqual(r.storeTriggerValue,r.getKey())&&(e=r._getStandardDateStr(t).match(/\d+/g),r.storeValue={type:BI.DynamicDateCombo.Static,value:{year:0|e[0],month:0|e[1],day:0|e[2],hour:0|e[3],minute:0|e[4],second:0|e[5]}}),r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_CONFIRM)}),this.editor.on(BI.SignEditor.EVENT_START,function(){r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_START)}),this.editor.on(BI.SignEditor.EVENT_CHANGE,function(){r.fireEvent(BI.DynamicDateTimeTrigger.EVENT_CHANGE)}),BI.createWidget({type:"bi.htape",element:this,items:[{el:this.editor},{el:BI.createWidget(),width:24}]}),i.allowEdit||BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.text",title:BI.bind(this._getTitle,this)},left:0,right:24,top:0,bottom:0}]}),this.setValue(i.value)},_getTitle:function(){var e=this.storeValue||{},t=e.type||BI.DynamicDateCombo.Static,n=e.value;switch(t){case BI.DynamicDateCombo.Dynamic:var r=this._getText(n),i=BI.DynamicDateHelper.getCalculation(n),a=BI.print(i,this._getFormatString());return BI.isEmptyString(r)?a:r+":"+a;case BI.DynamicDateCombo.Static:default:return BI.isNull(n)||BI.isNull(n.day)?"":BI.print(BI.getDate(n.year,n.month-1,n.day,n.hour||0,n.minute||0,n.second||0),this._getFormatString())}},_getStandardDateStr:function(e){var t=this._const,n=[],r=!1,i=this._getFormatString().match(/%./g);BI.each(i,function(e,t){switch(t){case"%Y":case"%y":n[0]=e;break;case"%X":case"%x":n[1]=e;break;case"%d":case"%e":n[2]=e;break;case"%S":r=!0}});var a=BI.parseDateTime(e,this._getFormatString());BI.print(a,this._getFormatString())===e&&(e=BI.print(a,t.compareFormat),n=[0,1,2]);var o=e.match(/\d+/g)||[],s=[];BI.each(o.slice(0,3),function(e){s[e]=o[n[e]]});var c=o.slice(3);BI.each(c,function(e,t){BI.isNumeric(t)&&1===t.length&&(c[e]="0"+t)}),2!==c.length||r||c.push("00");var u=c.join(":"),l=s.slice(0,3).join("-");return BI.isNotEmptyString(u)&&(l+=" "+u),l},_getFormatString:function(){return this.options.format||this._const.compareFormat},_dateCheck:function(e){return BI.print(BI.parseDateTime(e,"%Y-%x-%d %H:%M:%S"),"%Y-%x-%d %H:%M:%S")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%d %H:%M:%S"),"%Y-%X-%d %H:%M:%S")===e||BI.print(BI.parseDateTime(e,"%Y-%x-%e %H:%M:%S"),"%Y-%x-%e %H:%M:%S")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%e %H:%M:%S"),"%Y-%X-%e %H:%M:%S")===e||BI.print(BI.parseDateTime(e,"%Y-%x-%d"),"%Y-%x-%d")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%d"),"%Y-%X-%d")===e||BI.print(BI.parseDateTime(e,"%Y-%x-%e"),"%Y-%x-%e")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%e"),"%Y-%X-%e")===e},_checkVoid:function(e){return!BI.checkDateVoid(e.year,e.month,e.day,this.options.min,this.options.max)[0]},_autoAppend:function(e,t){if(BI.isNotNull(t)&&BI.checkDateLegal(e))switch(e.length){case this._const.yearLength:this._yearCheck(e)&&this.editor.setValue(e+"-");break;case this._const.yearMonthLength:case this._const.yearFullMonthLength:var n=e.split("-")[1];(BI.isNotNull(n)&&2===n.length||this._monthCheck(e))&&this.editor.setValue(e+"-")}},_yearCheck:function(e){var t=BI.print(BI.parseDateTime(e,"%Y-%X-%d"),"%Y-%X-%d");return BI.print(BI.parseDateTime(e,"%Y"),"%Y")===e&&t>=this.options.min&&t<=this.options.max},_monthCheck:function(e){var t=BI.parseDateTime(e,"%Y-%X-%d"),n=BI.print(t,"%Y-%X-%d");return 0<t.getMonth()&&(BI.print(BI.parseDateTime(e,"%Y-%X"),"%Y-%X")===e||BI.print(BI.parseDateTime(e,"%Y-%x"),"%Y-%x")===e)&&n>=this.options.min&&n<=this.options.max},_setInnerValue:function(e){var t=BI.print(e,this._getFormatString());this.editor.setState(t),this.editor.setValue(t)},_getText:function(e){var t="",n="";return BI.isNotNull(e.year)&&(0!==BI.parseInt(e.year)&&(t+=Math.abs(e.year)+BI.i18nText("BI-Basic_Year")+(e.year<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Year"),e.position)),BI.isNotNull(e.quarter)&&(0!==BI.parseInt(e.quarter)&&(t+=Math.abs(e.quarter)+BI.i18nText("BI-Basic_Single_Quarter")+(e.quarter<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Single_Quarter"),e.position)),BI.isNotNull(e.month)&&(0!==BI.parseInt(e.month)&&(t+=Math.abs(e.month)+BI.i18nText("BI-Basic_Month")+(e.month<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Month"),e.position)),BI.isNotNull(e.week)&&(0!==BI.parseInt(e.week)&&(t+=Math.abs(e.week)+BI.i18nText("BI-Basic_Week")+(e.week<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=r(BI.i18nText("BI-Basic_Week"),e.position)),BI.isNotNull(e.day)&&(0!==BI.parseInt(e.day)&&(t+=Math.abs(e.day)+BI.i18nText("BI-Basic_Day")+(e.day<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),n=1===BI.size(e)?r(BI.i18nText("BI-Basic_Month"),e.position):""),BI.isNotNull(e.workDay)&&0!==BI.parseInt(e.workDay)&&(t+=Math.abs(e.workDay)+BI.i18nText("BI-Basic_Work_Day")+(e.workDay<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),t+n;function r(e,t){switch(t){case BI.DynamicDateCard.OFFSET.BEGIN:return e+BI.i18nText("BI-Basic_Begin_Start");case BI.DynamicDateCard.OFFSET.END:return e+BI.i18nText("BI-Basic_End_Stop");case BI.DynamicDateCard.OFFSET.CURRENT:default:return BI.i18nText("BI-Basic_Current_Day")}}},setMinDate:function(e){BI.isNotEmptyString(this.options.min)&&(this.options.min=e)},setMaxDate:function(e){BI.isNotEmptyString(this.options.max)&&(this.options.max=e)},setValue:function(e){var t,n,r,i=BI.getDate();switch(this.storeValue=e,BI.isNotNull(e)&&(t=e.type||BI.DynamicDateCombo.Static,n=e.value||e),t){case BI.DynamicDateCombo.Dynamic:var a=this._getText(n),i=BI.DynamicDateHelper.getCalculation(n);this._setInnerValue(i,a);break;case BI.DynamicDateCombo.Static:default:BI.isNull(n)||BI.isNull(n.day)?(this.editor.setState(""),this.editor.setValue("")):(r=BI.print(BI.getDate(n.year,n.month-1,n.day,n.hour||0,n.minute||0,n.second||0),this._getFormatString()),this.editor.setState(r),this.editor.setValue(r))}},getKey:function(){return this.editor.getValue()},getValue:function(){return this.storeValue},isValid:function(){return this.editor.isValid()}}),BI.DynamicDateTimeTrigger.EVENT_BLUR="EVENT_BLUR",BI.DynamicDateTimeTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicDateTimeTrigger.EVENT_START="EVENT_START",BI.DynamicDateTimeTrigger.EVENT_STOP="EVENT_STOP",BI.DynamicDateTimeTrigger.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicDateTimeTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.DynamicDateTimeTrigger.EVENT_VALID="EVENT_VALID",BI.DynamicDateTimeTrigger.EVENT_ERROR="EVENT_ERROR",BI.DynamicDateTimeTrigger.EVENT_TRIGGER_CLICK="EVENT_TRIGGER_CLICK",BI.DynamicDateTimeTrigger.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.shortcut("bi.dynamic_date_time_trigger",BI.DynamicDateTimeTrigger)},function(e,t){BI.SearchEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.SearchEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-search-editor bi-border bi-focus-shadow",height:24,errorText:"",watermark:BI.i18nText("BI-Basic_Search"),validationChecker:BI.emptyFn,quitChecker:BI.emptyFn})},_init:function(){this.options.height-=2,BI.SearchEditor.superclass._init.apply(this,arguments);var t=this,e=this.options;this.editor=BI.createWidget({type:"bi.editor",height:e.height,watermark:e.watermark,allowBlank:!0,hgap:1,errorText:e.errorText,validationChecker:e.validationChecker,quitChecker:e.quitChecker,value:e.value}),this.clear=BI.createWidget({type:"bi.icon_button",stopEvent:!0,cls:"close-font"}),this.clear.on(BI.IconButton.EVENT_CHANGE,function(){t.setValue(""),t.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.STOPEDIT),t.fireEvent(BI.SearchEditor.EVENT_CHANGE),t.fireEvent(BI.SearchEditor.EVENT_CLEAR)}),BI.createWidget({element:this,type:"bi.htape",items:[{el:{type:"bi.icon_label",cls:"search-font"},width:24},{el:t.editor},{el:this.clear,width:24}]}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_FOCUS,function(){t.fireEvent(BI.SearchEditor.EVENT_FOCUS)}),this.editor.on(BI.Editor.EVENT_BLUR,function(){t.fireEvent(BI.SearchEditor.EVENT_BLUR)}),this.editor.on(BI.Editor.EVENT_CLICK,function(){t.fireEvent(BI.SearchEditor.EVENT_CLICK)}),this.editor.on(BI.Editor.EVENT_CHANGE,function(){t._checkClear(),t.fireEvent(BI.SearchEditor.EVENT_CHANGE)}),this.editor.on(BI.Editor.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.SearchEditor.EVENT_KEY_DOWN,e)}),this.editor.on(BI.Editor.EVENT_SPACE,function(){t.fireEvent(BI.SearchEditor.EVENT_SPACE)}),this.editor.on(BI.Editor.EVENT_BACKSPACE,function(){t.fireEvent(BI.SearchEditor.EVENT_BACKSPACE)}),this.editor.on(BI.Editor.EVENT_VALID,function(){t.fireEvent(BI.SearchEditor.EVENT_VALID)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){t.fireEvent(BI.SearchEditor.EVENT_ERROR)}),this.editor.on(BI.Editor.EVENT_ENTER,function(){t.fireEvent(BI.SearchEditor.EVENT_ENTER)}),this.editor.on(BI.Editor.EVENT_RESTRICT,function(){t.fireEvent(BI.SearchEditor.EVENT_RESTRICT)}),this.editor.on(BI.Editor.EVENT_EMPTY,function(){t._checkClear(),t.fireEvent(BI.SearchEditor.EVENT_EMPTY)}),this.editor.on(BI.Editor.EVENT_REMOVE,function(){t.fireEvent(BI.SearchEditor.EVENT_REMOVE)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){t.fireEvent(BI.SearchEditor.EVENT_CONFIRM)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){t.fireEvent(BI.SearchEditor.EVENT_CHANGE_CONFIRM)}),this.editor.on(BI.Editor.EVENT_START,function(){t.fireEvent(BI.SearchEditor.EVENT_START)}),this.editor.on(BI.Editor.EVENT_PAUSE,function(){t.fireEvent(BI.SearchEditor.EVENT_PAUSE)}),this.editor.on(BI.Editor.EVENT_STOP,function(){t.fireEvent(BI.SearchEditor.EVENT_STOP)}),this.clear.invisible()},_checkClear:function(){this.getValue()?this.clear.visible():this.clear.invisible()},setWaterMark:function(e){this.options.watermark=e,this.editor.setWaterMark(e)},focus:function(){this.editor.focus()},blur:function(){this.editor.blur()},getValue:function(){if(this.isValid())return this.editor.getValue()},getKeywords:function(){var e=this.editor.getLastChangedValue(),t=e.match(/[\S]+/g);return BI.isEndWithBlank(e)?t.concat([" "]):t},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},setValue:function(e){this.editor.setValue(e),BI.isKey(e)&&this.clear.visible()},isEditing:function(){return this.editor.isEditing()},isValid:function(){return this.editor.isValid()}}),BI.SearchEditor.EVENT_CHANGE="EVENT_CHANGE",BI.SearchEditor.EVENT_FOCUS="EVENT_FOCUS",BI.SearchEditor.EVENT_BLUR="EVENT_BLUR",BI.SearchEditor.EVENT_CLICK="EVENT_CLICK",BI.SearchEditor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.SearchEditor.EVENT_SPACE="EVENT_SPACE",BI.SearchEditor.EVENT_BACKSPACE="EVENT_BACKSPACE",BI.SearchEditor.EVENT_CLEAR="EVENT_CLEAR",BI.SearchEditor.EVENT_START="EVENT_START",BI.SearchEditor.EVENT_PAUSE="EVENT_PAUSE",BI.SearchEditor.EVENT_STOP="EVENT_STOP",BI.SearchEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.SearchEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.SearchEditor.EVENT_VALID="EVENT_VALID",BI.SearchEditor.EVENT_ERROR="EVENT_ERROR",BI.SearchEditor.EVENT_ENTER="EVENT_ENTER",BI.SearchEditor.EVENT_RESTRICT="EVENT_RESTRICT",BI.SearchEditor.EVENT_REMOVE="EVENT_REMOVE",BI.SearchEditor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.search_editor",BI.SearchEditor)},function(e,t){BI.SmallSearchEditor=BI.inherit(BI.SearchEditor,{_defaultConfig:function(){var e=BI.SmallSearchEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-small-search-editor",height:20})},_init:function(){BI.SmallSearchEditor.superclass._init.apply(this,arguments)}}),BI.shortcut("bi.small_search_editor",BI.SmallSearchEditor)},function(e,t){BI.TextEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.TextEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-text-editor bi-border bi-focus-shadow",hgap:4,vgap:2,lgap:0,rgap:0,tgap:0,bgap:0,validationChecker:BI.emptyFn,quitChecker:BI.emptyFn,allowBlank:!1,watermark:"",errorText:"",height:24})},_init:function(){BI.TextEditor.superclass._init.apply(this,arguments);var t=this,e=this.options;BI.isNumber(e.height)&&this.element.css({height:e.height-2}),BI.isNumber(e.width)&&this.element.css({width:e.width-2}),this.editor=BI.createWidget({type:"bi.editor",height:e.height-2,hgap:e.hgap,vgap:e.vgap,lgap:e.lgap,rgap:e.rgap,tgap:e.tgap,bgap:e.bgap,value:e.value,title:e.title,tipType:e.tipType,validationChecker:e.validationChecker,quitChecker:e.quitChecker,allowBlank:e.allowBlank,watermark:e.watermark,errorText:e.errorText}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_FOCUS,function(){t.fireEvent(BI.TextEditor.EVENT_FOCUS)}),this.editor.on(BI.Editor.EVENT_BLUR,function(){t.fireEvent(BI.TextEditor.EVENT_BLUR)}),this.editor.on(BI.Editor.EVENT_CLICK,function(){t.fireEvent(BI.TextEditor.EVENT_CLICK)}),this.editor.on(BI.Editor.EVENT_CHANGE,function(){t.fireEvent(BI.TextEditor.EVENT_CHANGE)}),this.editor.on(BI.Editor.EVENT_KEY_DOWN,function(e){t.fireEvent(BI.TextEditor.EVENT_KEY_DOWN)}),this.editor.on(BI.Editor.EVENT_SPACE,function(e){t.fireEvent(BI.TextEditor.EVENT_SPACE)}),this.editor.on(BI.Editor.EVENT_BACKSPACE,function(e){t.fireEvent(BI.TextEditor.EVENT_BACKSPACE)}),this.editor.on(BI.Editor.EVENT_VALID,function(){t.fireEvent(BI.TextEditor.EVENT_VALID)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){t.fireEvent(BI.TextEditor.EVENT_CONFIRM)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){t.fireEvent(BI.TextEditor.EVENT_CHANGE_CONFIRM)}),this.editor.on(BI.Editor.EVENT_REMOVE,function(e){t.fireEvent(BI.TextEditor.EVENT_REMOVE)}),this.editor.on(BI.Editor.EVENT_START,function(){t.fireEvent(BI.TextEditor.EVENT_START)}),this.editor.on(BI.Editor.EVENT_PAUSE,function(){t.fireEvent(BI.TextEditor.EVENT_PAUSE)}),this.editor.on(BI.Editor.EVENT_STOP,function(){t.fireEvent(BI.TextEditor.EVENT_STOP)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){t.fireEvent(BI.TextEditor.EVENT_ERROR,arguments)}),this.editor.on(BI.Editor.EVENT_ENTER,function(){t.fireEvent(BI.TextEditor.EVENT_ENTER)}),this.editor.on(BI.Editor.EVENT_RESTRICT,function(){t.fireEvent(BI.TextEditor.EVENT_RESTRICT)}),this.editor.on(BI.Editor.EVENT_EMPTY,function(){t.fireEvent(BI.TextEditor.EVENT_EMPTY)}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[this.editor]})},setWaterMark:function(e){this.options.watermark=e,this.editor.setWaterMark(e)},focus:function(){this.editor.focus()},blur:function(){this.editor.blur()},setErrorText:function(e){this.editor.setErrorText(e)},getErrorText:function(){return this.editor.getErrorText()},isValid:function(){return this.editor.isValid()},setValue:function(e){this.editor.setValue(e)},getValue:function(){return this.editor.getValue()}}),BI.TextEditor.EVENT_CHANGE="EVENT_CHANGE",BI.TextEditor.EVENT_FOCUS="EVENT_FOCUS",BI.TextEditor.EVENT_BLUR="EVENT_BLUR",BI.TextEditor.EVENT_CLICK="EVENT_CLICK",BI.TextEditor.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.TextEditor.EVENT_SPACE="EVENT_SPACE",BI.TextEditor.EVENT_BACKSPACE="EVENT_BACKSPACE",BI.TextEditor.EVENT_START="EVENT_START",BI.TextEditor.EVENT_PAUSE="EVENT_PAUSE",BI.TextEditor.EVENT_STOP="EVENT_STOP",BI.TextEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.TextEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.TextEditor.EVENT_VALID="EVENT_VALID",BI.TextEditor.EVENT_ERROR="EVENT_ERROR",BI.TextEditor.EVENT_ENTER="EVENT_ENTER",BI.TextEditor.EVENT_RESTRICT="EVENT_RESTRICT",BI.TextEditor.EVENT_REMOVE="EVENT_REMOVE",BI.TextEditor.EVENT_EMPTY="EVENT_EMPTY",BI.shortcut("bi.text_editor",BI.TextEditor)},function(e,t){BI.SmallTextEditor=BI.inherit(BI.TextEditor,{_defaultConfig:function(){var e=BI.SmallTextEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-small-text-editor",height:20})},_init:function(){BI.SmallTextEditor.superclass._init.apply(this,arguments)}}),BI.shortcut("bi.small_text_editor",BI.SmallTextEditor)},function(e,t){BI.IntervalSlider=BI.inherit(BI.Single,{_constant:{EDITOR_WIDTH:58,EDITOR_R_GAP:60,EDITOR_HEIGHT:30,SLIDER_WIDTH_HALF:15,SLIDER_WIDTH:30,SLIDER_HEIGHT:30,TRACK_HEIGHT:24},props:{baseCls:"bi-interval-slider bi-slider-track",digit:!1,unit:""},render:function(){var i=this,e=this._constant;return this.enable=!1,this.valueOne="",this.valueTwo="",this.calculation=new BI.AccurateCalculationModel,this.grayTrack=BI.createWidget({type:"bi.layout",cls:"gray-track",height:6}),this.blueTrack=BI.createWidget({type:"bi.layout",cls:"blue-track bi-high-light-background",height:6}),this.track=this._createTrackWrapper(),this.labelOne=BI.createWidget({type:"bi.sign_text_editor",cls:"slider-editor-button",text:this.options.unit,allowBlank:!1,width:e.EDITOR_WIDTH,validationChecker:function(e){return i._checkValidation(e)}}),this.labelOne.element.hover(function(){i.labelOne.element.removeClass("bi-border").addClass("bi-border")},function(){i.labelOne.element.removeClass("bi-border")}),this.labelOne.on(BI.Editor.EVENT_CONFIRM,function(){var e=i.valueOne,t=BI.parseFloat(this.getValue());i.valueOne=t;var n=i._getPercentByValue(t),r=BI.parseFloat(n.toFixed(1));i._setSliderOnePosition(r),i._setBlueTrack(),i._checkLabelPosition(e,i.valueTwo,i.valueOne,i.valueTwo),i.fireEvent(BI.IntervalSlider.EVENT_CHANGE)}),this.labelTwo=BI.createWidget({type:"bi.sign_text_editor",cls:"slider-editor-button",text:this.options.unit,allowBlank:!1,width:e.EDITOR_WIDTH,validationChecker:function(e){return i._checkValidation(e)}}),this.labelTwo.element.hover(function(){i.labelTwo.element.removeClass("bi-border").addClass("bi-border")},function(){i.labelTwo.element.removeClass("bi-border")}),this.labelTwo.on(BI.Editor.EVENT_CONFIRM,function(){var e=i.valueTwo,t=BI.parseFloat(this.getValue());i.valueTwo=t;var n=i._getPercentByValue(t),r=BI.parseFloat(n.toFixed(1));i._setSliderTwoPosition(r),i._setBlueTrack(),i._checkLabelPosition(i.valueOne,e,i.valueOne,i.valueTwo),i.fireEvent(BI.IntervalSlider.EVENT_CHANGE)}),this.sliderOne=BI.createWidget({type:"bi.single_slider_button"}),this.sliderTwo=BI.createWidget({type:"bi.single_slider_button"}),this._draggable(this.sliderOne,!0),this._draggable(this.sliderTwo,!1),this._setVisible(!1),{type:"bi.absolute",element:this,items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.track,width:"100%",height:e.TRACK_HEIGHT}]}],hgap:7,height:e.TRACK_HEIGHT},top:23,left:0,width:"100%"},this._createLabelWrapper(),this._createSliderWrapper()]}},_rePosBySizeAfterMove:function(e,t){var n=this.options,r=100*e/this._getGrayTrackLength(),i=BI.parseFloat(r.toFixed(1)),a=this._getValueByPercent(i),a=this._assertValue(a);a=!1===n.digit?a:a.toFixed(n.digit);var o=this.valueOne,s=this.valueTwo;t?(this._setSliderOnePosition(i),this.labelOne.setValue(a),this.valueOne=a,this._checkLabelPosition(o,s,a,this.valueTwo)):(this._setSliderTwoPosition(i),this.labelTwo.setValue(a),this.valueTwo=a,this._checkLabelPosition(o,s,this.valueOne,a)),this._setBlueTrack()},_rePosBySizeAfterStop:function(e,t){var n=100*e/this._getGrayTrackLength(),r=BI.parseFloat(n.toFixed(1));t?this._setSliderOnePosition(r):this._setSliderTwoPosition(r)},_draggable:function(t,n){var r=this,i=(this.options,!1),a=0,o=0,s=0,c=new BI.MouseMoveTracker(function(e){c.isDragging()&&(i=!0,a=u(s+(o+=e)),t.element.addClass("dragging"),r._rePosBySizeAfterMove(a,n))},function(){!0===i&&(a=u(a),r._rePosBySizeAfterStop(a,n),o=a=0,s=a,i=!1),t.element.removeClass("dragging"),c.releaseMouseMoves(),r.fireEvent(BI.IntervalSlider.EVENT_CHANGE)},window);function u(e){return BI.clamp(e,0,r._getGrayTrackLength())}t.element.on("mousedown",function(e){t.isEnabled()&&(u(s=this.offsetLeft),c.captureMouseMoves(e))})},_createLabelWrapper:function(){var e=this._constant;return{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.labelOne,top:0,left:"0%"}]},{type:"bi.absolute",items:[{el:this.labelTwo,top:0,left:"100%"}]}],rgap:e.EDITOR_R_GAP,height:e.SLIDER_HEIGHT},top:0,left:0,width:"100%"}},_createSliderWrapper:function(){var e=this._constant;return{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.sliderOne,top:0,left:"0%"}]},{type:"bi.absolute",items:[{el:this.sliderTwo,top:0,left:"100%"}]}],hgap:e.SLIDER_WIDTH_HALF,height:e.SLIDER_HEIGHT},top:20,left:0,width:"100%"}},_createTrackWrapper:function(){return BI.createWidget({type:"bi.absolute",items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.grayTrack,top:0,left:0,width:"100%"},{el:this.blueTrack,top:0,left:0,width:"0%"}]}],hgap:8,height:8},top:8,left:0,width:"100%"}]})},_checkValidation:function(e){var t=this.options,n=!1,r=(e+"").split(".")[1];return BI.isEmptyString(r)||BI.isNumeric(e)&&!(BI.isNull(e)||e<this.min||e>this.max)&&(n=!(!1!==t.digit&&!BI.isInteger(e))||(r||"").length===t.digit),n},_checkOverlap:function(){var e=this.labelOne.element[0].offsetLeft,t=this.labelTwo.element[0].offsetLeft;e<=t?t-e<90?this.labelTwo.element.css({top:40}):this.labelTwo.element.css({top:0}):e-t<90?this.labelTwo.element.css({top:40}):this.labelTwo.element.css({top:0})},_checkLabelPosition:function(e,t,n,r,i){var a;e=BI.parseFloat(e),t=BI.parseFloat(t),n=BI.parseFloat(n),r=BI.parseFloat(r),(e<=t&&r<n||t<=e&&n<r)&&(a=BI.parseFloat(this.sliderOne.element[0].style.left)<BI.parseFloat(this.sliderTwo.element[0].style.left),this._resetLabelPosition(!a))},_resetLabelPosition:function(e){this.labelOne.element.css({left:e?"100%":"0%"}),this.labelTwo.element.css({left:e?"0%":"100%"})},_setSliderOnePosition:function(e){this.sliderOne.element.css({left:e+"%"})},_setSliderTwoPosition:function(e){this.sliderTwo.element.css({left:e+"%"})},_setBlueTrackLeft:function(e){this.blueTrack.element.css({left:e+"%"})},_setBlueTrackWidth:function(e){this.blueTrack.element.css({width:e+"%"})},_setBlueTrack:function(){var e=this._getPercentByValue(this.labelOne.getValue()),t=this._getPercentByValue(this.labelTwo.getValue());e<=t?(this._setBlueTrackLeft(e),this._setBlueTrackWidth(t-e)):(this._setBlueTrackLeft(t),this._setBlueTrackWidth(e-t))},_setAllPosition:function(e,t){this._setSliderOnePosition(e),this._setSliderTwoPosition(t),this._setBlueTrack()},_setVisible:function(e){this.sliderOne.setVisible(e),this.sliderTwo.setVisible(e),this.labelOne.setVisible(e),this.labelTwo.setVisible(e)},_setErrorText:function(){var e=BI.i18nText("BI-Basic_Please_Enter_Number_Between",this.min,this.max);this.labelOne.setErrorText(e),this.labelTwo.setErrorText(e)},_getGrayTrackLength:function(){return this.grayTrack.element[0].scrollWidth},_getValueByPercent:function(e){if(0===e)return this.min;if(100===e)return this.max;var t=this.calculation.accurateSubtraction(this.max,this.min),n=this.calculation.accurateMultiplication(t,e),r=this.calculation.accurateDivisionTenExponent(n,2);if(this.precision<0){var i=BI.parseFloat(this.calculation.accurateAddition(r,this.min)),a=Math.round(this.calculation.accurateDivisionTenExponent(i,-this.precision));return this.calculation.accurateMultiplication(a,Math.pow(10,-this.precision))}return BI.parseFloat(this.calculation.accurateAddition(r,this.min).toFixed(this.precision))},_getPercentByValue:function(e){return 100*(e-this.min)/(this.max-this.min)},_getPrecision:function(){var e=this.calculation.accurateSubtraction(this.max,this.min).toPrecision(4),t=[];if(-1<e.indexOf("e")){t=e.split("e");return BI.size(t[0].split(".")[1])-BI.parseInt(t[1].substring(1))}return 1<(t=e.split(".")).length?t[1].length:0},_assertValue:function(e){return e<=this.min?this.min:e>=this.max?this.max:e},_setEnable:function(e){BI.IntervalSlider.superclass._setEnable.apply(this,[e]),e?this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track"):this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track")},getValue:function(){return this.valueOne<=this.valueTwo?{min:this.valueOne,max:this.valueTwo}:{min:this.valueTwo,max:this.valueOne}},setMinAndMax:function(e){var t=BI.parseFloat(e.min),n=BI.parseFloat(e.max);!isNaN(t)&&!isNaN(n)&&t<=n&&(this.min=t,this.max=n,this.valueOne=t,this.valueTwo=n,this.precision=this._getPrecision(),this.setEnable(!0)),n===t&&this.setEnable(!1)},setValue:function(e){var t=this.options,n=BI.parseFloat(e.min),r=BI.parseFloat(e.max),n=!1===t.digit?n:BI.parseFloat(n.toFixed(t.digit)),r=!1===t.digit?r:BI.parseFloat(r.toFixed(t.digit));isNaN(n)||isNaN(r)||(this._checkValidation(n)&&(this.valueOne=this.valueOne<=this.valueTwo?n:r),this._checkValidation(r)&&(this.valueTwo=this.valueOne<=this.valueTwo?r:n),n<this.min&&(this.valueOne=this.min),r>this.max&&(this.valueTwo=this.max))},reset:function(){this._setVisible(!1),this.enable=!1,this.valueOne="",this.valueTwo="",this.min=NaN,this.max=NaN,this._setBlueTrackWidth(0)},populate:function(){var e=this.options;isNaN(this.min)||isNaN(this.max)||(this.enable=!0,this._setVisible(!0),this._setErrorText(),(BI.isNumeric(this.valueOne)||BI.isNotEmptyString(this.valueOne))&&(BI.isNumeric(this.valueTwo)||BI.isNotEmptyString(this.valueTwo))?(this.labelOne.setValue(!1===e.digit?this.valueOne:BI.parseFloat(this.valueOne).toFixed(e.digit)),this.labelTwo.setValue(!1===e.digit?this.valueTwo:BI.parseFloat(this.valueTwo).toFixed(e.digit)),this._setAllPosition(this._getPercentByValue(this.valueOne),this._getPercentByValue(this.valueTwo))):(this.labelOne.setValue(this.min),this.labelTwo.setValue(this.max),this._setAllPosition(0,100)),this._resetLabelPosition(this.valueOne>this.valueTwo))}}),BI.IntervalSlider.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.interval_slider",BI.IntervalSlider)},function(e,t){BI.AccurateCalculationModel=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.AccurateCalculationModel.superclass._defaultConfig.apply(this,arguments),{baseCls:""})},_init:function(){BI.AccurateCalculationModel.superclass._init.apply(this,arguments)},_getMagnitude:function(e){for(var t="1",n=0;n<e;n++)t+="0";return BI.parseInt(t)},_formatDecimal:function(e,t){if(e.numDecimalLength!==t.numDecimalLength){var n,r=e.numDecimalLength-t.numDecimalLength;0<r?n=t:(n=e,r=0-r);for(var i=0;i<r;i++)"0"===n.numDecimal&&0===i||(n.numDecimal+="0")}},_stringNumberFactory:function(e){var t,n,r=e.toString().split("."),i=r[0];return n=1===r.length?(t="0",0):(t=r[1],r[1].length),{numInteger:i,numDecimal:t,numDecimalLength:n}},_accurateSubtraction:function(e,t){var n=this._stringNumberFactory(e),r=this._stringNumberFactory(t),i=BI.parseInt(n.numInteger)-BI.parseInt(r.numInteger);this._formatDecimal(n,r);var a,o=function(e,t){if(e.numDecimal.length>=t.numDecimal.length)return e.numDecimal.length;return t.numDecimal.length}(n,r);a=BI.parseInt(n.numDecimal)>=BI.parseInt(r.numDecimal)?c((BI.parseInt(n.numDecimal)-BI.parseInt(r.numDecimal)).toString(),o):(i--,c((this._getMagnitude(o)+BI.parseInt(n.numDecimal)-BI.parseInt(r.numDecimal)).toString(),o));var s=i+"."+a;return BI.parseFloat(s);function c(e,t){for(var n=t-e.length,r=0;r<n;r++)e="0"+e;return e}},_accurateAddition:function(e,t){var n=this._stringNumberFactory(e),r=this._stringNumberFactory(t),i=BI.parseInt(n.numInteger)+BI.parseInt(r.numInteger);this._formatDecimal(n,r);var a=(BI.parseInt(n.numDecimal)+BI.parseInt(r.numDecimal)).toString();"0"!==a&&(a=a.length<=n.numDecimal.length?function(e,t){for(var n=t-e.length,r=0;r<n;r++)e="0"+e;return e}(a,n.numDecimal.length):(i++,a.slice(1)));var o=i+"."+a;return BI.parseFloat(o)},_accurateMultiplication:function(e,t){var n=this._stringNumberFactory(e),r=this._stringNumberFactory(t),i=BI.parseInt(n.numInteger)*BI.parseInt(r.numInteger),a=this._accurateDivisionTenExponent(BI.parseInt(n.numDecimal)*BI.parseInt(r.numInteger),n.numDecimalLength),o=this._accurateDivisionTenExponent(BI.parseInt(n.numInteger)*BI.parseInt(r.numDecimal),r.numDecimalLength),s=this._accurateDivisionTenExponent(BI.parseInt(n.numDecimal)*BI.parseInt(r.numDecimal),n.numDecimalLength+r.numDecimalLength);return this._accurateAddition(this._accurateAddition(this._accurateAddition(i,a),o),s)},_accurateDivisionTenExponent:function(e,t){var n,r,i=this._stringNumberFactory(e);r=i.numInteger.length>t?(n=i.numInteger.slice(0,i.numInteger.length-t),i.numInteger.slice(-t)):(n="0",function(e,t){for(var n=t-e.length,r=0;r<n;r++)e="0"+e;return e}(i.numInteger,t));var a=n+"."+r+i.numDecimal;return BI.parseFloat(a)},accurateSubtraction:function(e,t){return 0<=e&&0<=t?t<=e?this._accurateSubtraction(e,t):-this._accurateSubtraction(t,e):0<=e&&t<0?this._accurateAddition(e,-t):e<0&&0<=t?-this._accurateAddition(-e,t):e<0&&t<0?t<=e?this._accurateSubtraction(-t,-e):this._accurateSubtraction(-e,-t):void 0},accurateAddition:function(e,t){return 0<=e&&0<=t?this._accurateAddition(e,t):0<=e&&t<0?this.accurateSubtraction(e,-t):e<0&&0<=t?this.accurateSubtraction(t,-e):e<0&&t<0?-this._accurateAddition(-e,-t):void 0},accurateMultiplication:function(e,t){return 0<=e&&0<=t?this._accurateMultiplication(e,t):0<=e&&t<0?-this._accurateMultiplication(e,-t):e<0&&0<=t?-this._accurateMultiplication(-e,t):e<0&&t<0?this._accurateMultiplication(-e,-t):void 0},accurateDivisionTenExponent:function(e,t){return 0<=e?this._accurateDivisionTenExponent(e,t):-this._accurateDivisionTenExponent(-e,t)}})},function(e,t){BI.MultiLayerDownListCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiLayerDownListCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multilayer-down-list-combo",height:24,items:[],adjustLength:0,direction:"bottom",trigger:"click",container:null,stopPropagation:!1,el:{}})},_init:function(){BI.MultiLayerDownListCombo.superclass._init.apply(this,arguments);var n=this,e=this.options;this.popupview=BI.createWidget({type:"bi.multi_layer_down_list_popup",items:e.items,chooseType:e.chooseType,value:e.value}),this.popupview.on(BI.MultiLayerDownListPopup.EVENT_CHANGE,function(e){n.fireEvent(BI.MultiLayerDownListCombo.EVENT_CHANGE,e),n.downlistcombo.hideView()}),this.popupview.on(BI.MultiLayerDownListPopup.EVENT_SON_VALUE_CHANGE,function(e,t){n.fireEvent(BI.MultiLayerDownListCombo.EVENT_SON_VALUE_CHANGE,e,t),n.downlistcombo.hideView()}),this.downlistcombo=BI.createWidget({element:this,type:"bi.combo",trigger:e.trigger,isNeedAdjustWidth:!1,container:e.container,adjustLength:e.adjustLength,direction:e.direction,stopPropagation:e.stopPropagation,el:BI.createWidget(e.el,{type:"bi.icon_trigger",extraCls:e.iconCls?e.iconCls:"pull-down-font",width:e.width,height:e.height}),popup:{el:this.popupview,stopPropagation:e.stopPropagation,maxHeight:1e3}}),this.downlistcombo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){n.fireEvent(BI.MultiLayerDownListCombo.EVENT_BEFORE_POPUPVIEW)})},hideView:function(){this.downlistcombo.hideView()},showView:function(e){this.downlistcombo.showView(e)},populate:function(e){this.popupview.populate(e)},setValue:function(e){this.popupview.setValue(e)},getValue:function(){return this.popupview.getValue()}}),BI.MultiLayerDownListCombo.EVENT_CHANGE="EVENT_CHANGE",BI.MultiLayerDownListCombo.EVENT_SON_VALUE_CHANGE="EVENT_SON_VALUE_CHANGE",BI.MultiLayerDownListCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.multi_layer_down_list_combo",BI.MultiLayerDownListCombo)},function(e,t){BI.MultiLayerDownListPopup=BI.inherit(BI.Pane,{constants:{nextIcon:"pull-right-e-font",height:25,iconHeight:12,iconWidth:12,hgap:0,vgap:0,border:1},_defaultConfig:function(){var e=BI.MultiLayerDownListPopup.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:"bi-down-list-popup",items:[],chooseType:BI.Selection.Multi})},_init:function(){BI.MultiLayerDownListPopup.superclass._init.apply(this,arguments),this.singleValues=[],this.childValueMap={},this.fatherValueMap={};var s=this,e=this.options,t=this._createPopupItems(e.items);this.popup=BI.createWidget({type:"bi.button_tree",items:BI.createItems(t,{},{adjustLength:-2}),layouts:[{type:"bi.vertical",hgap:this.constants.hgap,vgap:this.constants.vgap}],value:this._digest(e.value),chooseType:e.chooseType}),this.popup.on(BI.ButtonTree.EVENT_CHANGE,function(e,t){var n,r,i,a,o=e;BI.isNotNull(s.childValueMap[e])?(o=s.childValueMap[e],r=((n=s.fatherValueMap[e])+"").split("_"),s.fireEvent(BI.MultiLayerDownListPopup.EVENT_SON_VALUE_CHANGE,o,1<r.length?r:n)):s.fireEvent(BI.MultiLayerDownListPopup.EVENT_CHANGE,o,t),BI.contains(s.singleValues,o)||(i=s.getValue(),a=[],BI.each(i,function(e,t){t.value!=o&&a.push(t)}),s.setValue(a))}),BI.createWidget({type:"bi.vertical",element:this,items:[this.popup],vgap:5})},_createPopupItems:function(i){var a=this,o=[];return BI.each(i,function(e,t){var n,r={type:"bi.down_list_group",items:[]};BI.each(t,function(e,i){BI.isNotEmptyArray(i.children)&&!BI.isEmpty(i.el)?(i.type="bi.combo_group",i.cls="down-list-group",i.trigger="hover",i.isNeedAdjustWidth=!1,i.el.title=i.el.title||i.el.text,i.el.type="bi.down_list_group_item",i.el.logic={dynamic:!0},i.el.height=a.constants.height,i.el.iconCls2=a.constants.nextIcon,i.popup={lgap:1,el:{type:"bi.button_tree",chooseType:0,layouts:[{type:"bi.vertical"}]},innerVGap:5},i.el.childValues=[],BI.each(i.children,function(e,t){t=t.el?BI.extend(t.el,{children:t.children}):t;var n=BI.deepClone(i.el.value),r=BI.deepClone(t.value);a.singleValues.push(t.value),t.type="bi.down_list_item",t.extraCls=" child-down-list-item",t.title=t.title||t.text,t.textRgap=10,t.isNeedAdjustWidth=!1,t.logic={dynamic:!0},t.father=n,a.fatherValueMap[a._createChildValue(n,r)]=n,a.childValueMap[a._createChildValue(n,r)]=r,t.value=a._createChildValue(n,r),i.el.childValues.push(t.value),BI.isNotEmptyArray(t.children)&&(t.type="bi.down_list_group_item",a._createChildren(t),t.height=a.constants.height,t.iconCls2=a.constants.nextIcon,i.el.childValues=BI.concat(i.el.childValues,t.childValues))})):(i.type="bi.down_list_item",i.title=i.title||i.text,i.textRgap=10,i.isNeedAdjustWidth=!1,i.logic={dynamic:!0});var t={};t.el=i,r.items.push(t)}),a._isGroup(r.items)&&BI.each(r.items,function(e,t){a.singleValues.push(t.el.value)}),o.push(r),a._needSpliter(e,i.length)&&(n=BI.createWidget({type:"bi.vertical",items:[{el:{type:"bi.layout",cls:"bi-down-list-spliter bi-border-top cursor-pointer",height:0}}],cls:"bi-down-list-spliter-container cursor-pointer",vgap:5,lgap:10}),o.push(n))}),o},_createChildren:function(i){var a=this;i.childValues=[],BI.each(i.children,function(e,t){var n=BI.deepClone(i.value),r=BI.deepClone(t.value);t.type="bi.down_list_item",t.title=t.title||t.text,t.textRgap=10,t.isNeedAdjustWidth=!1,t.logic={dynamic:!0},t.father=n,a.fatherValueMap[a._createChildValue(n,r)]=n,a.childValueMap[a._createChildValue(n,r)]=r,t.value=a._createChildValue(n,r),i.childValues.push(t.value)})},_isGroup:function(e){return 1<e.length},_needSpliter:function(e,t){return e<t-1},_createChildValue:function(e,t){var n=e;return BI.isArray(e)&&(n=e.join("_")),n+"_"+t},_digest:function(e){var r=this,i=[];return BI.each(e,function(e,t){var n=BI.isNotNull(t.childValue)?r._createChildValue(t.value,t.childValue):t.value;i.push(n)}),i},_checkValues:function(u){var e=this.options,l=[];return BI.each(e.items,function(c,e){BI.each(e,function(e,t){var n,r,i,a,o;BI.isNotNull(t.children)?(n=function s(e){var n=[];BI.isNotNull(e.children)?BI.each(e.children,function(e,t){n=BI.concat(n,s(t))}):n.push(e.value);return n}(t),i=n,a=u[c],o="",BI.some(i,function(e,n){return BI.some(a,function(e,t){if(n===t)return o=n,!0})}),r=o,BI.isNotEmptyString(r)&&l.push(r)):t.value===u[c][0]&&l.push(u[c][0])})}),l},populate:function(e){BI.MultiLayerDownListPopup.superclass.populate.apply(this,arguments);this.childValueMap={},this.fatherValueMap={},this.singleValues=[];var t=this._createPopupItems(e),n=BI.createItems(t,{},{adjustLength:-2});this.popup.populate(n)},setValue:function(e){this.popup.setValue(this._digest(e))},_getValue:function(){var n=[];return BI.each(this.popup.getAllButtons(),function(e,t){e%2==0&&n.push(t.getValue())}),n},getValue:function(){var a=this,o=[],e=this._checkValues(this._getValue());return BI.each(e,function(e,t){var n,r,i={};BI.isNotNull(a.childValueMap[t])?(n=a.fatherValueMap[t],i.childValue=a.childValueMap[t],r=(n+"").split("_"),i.value=1<r.length?r:n):i.value=t,o.push(i)}),o}}),BI.MultiLayerDownListPopup.EVENT_CHANGE="EVENT_CHANGE",BI.MultiLayerDownListPopup.EVENT_SON_VALUE_CHANGE="EVENT_SON_VALUE_CHANGE",BI.shortcut("bi.multi_layer_down_list_popup",BI.MultiLayerDownListPopup)},function(e,t){BI.MultiLayerSelectTreeCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSelectTreeCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multilayer-select-tree-combo",isDefaultInit:!1,height:24,text:"",itemsCreator:BI.emptyFn,items:[],value:"",attributes:{tabIndex:0},allowEdit:!1,allowSearchValue:!1,allowInsertValue:!1,isNeedAdjustWidth:!0})},render:function(){var t=this,e=this.options,n=e.itemsCreator===BI.emptyFn?this._getSyncConfig():this._getAsyncConfig();return e.allowEdit||e.itemsCreator!==BI.emptyFn?{type:"bi.absolute",items:[{el:n,left:0,right:0,top:0,bottom:0},{el:{type:"bi.trigger_icon_button",cls:"trigger-icon-button",ref:function(e){t.triggerBtn=e},width:e.height,height:e.height,handler:function(){t.combo.isViewVisible()?t.combo.hideView():t.combo.showView()}},right:0,bottom:0,top:0}]}:n},_getBaseConfig:function(){var t=this,e=this.options;return{type:"bi.combo",container:e.container,destroyWhenHide:e.destroyWhenHide,adjustLength:2,ref:function(e){t.combo=e},popup:{el:{type:"bi.multilayer_select_tree_popup",isDefaultInit:e.isDefaultInit,itemsCreator:e.itemsCreator,items:e.items,ref:function(e){t.trigger&&t.trigger.getSearcher().setAdapter(e)},listeners:[{eventName:BI.MultiLayerSelectTreePopup.EVENT_CHANGE,action:function(){t.setValue(this.getValue()),t.combo.hideView(),t.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE)}}],onLoaded:function(){BI.nextTick(function(){t.combo.adjustWidth(),t.combo.adjustHeight()})}},value:e.value,maxHeight:400,maxWidth:e.isNeedAdjustWidth?"auto":500,minHeight:240},isNeedAdjustWidth:e.isNeedAdjustWidth,listeners:[{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_BEFORE_POPUPVIEW)}}]}},_getSearchConfig:function(){var t=this,n=this.options;return{el:{type:"bi.multilayer_select_tree_trigger",container:n.container,allowInsertValue:n.allowInsertValue,allowSearchValue:n.allowSearchValue,allowEdit:n.allowEdit,cls:"multilayer-select-tree-trigger",ref:function(e){t.trigger=e},items:n.items,itemsCreator:n.itemsCreator,valueFormatter:n.valueFormatter,watermark:n.watermark,height:n.height-2,text:n.text,value:n.value,tipType:n.tipType,warningTitle:n.warningTitle,title:n.title,listeners:[{eventName:BI.MultiLayerSelectTreeTrigger.EVENT_CHANGE,action:function(){t.setValue(this.getValue()),t.combo.hideView(),t.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE)}},{eventName:BI.MultiLayerSelectTreeTrigger.EVENT_FOCUS,action:function(){t.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_FOCUS)}},{eventName:BI.MultiLayerSelectTreeTrigger.EVENT_BLUR,action:function(){t.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_BLUR)}},{eventName:BI.MultiLayerSelectTreeTrigger.EVENT_SEARCHING,action:function(){t.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_SEARCHING)}},{eventName:BI.MultiLayerSelectTreeTrigger.EVENT_ADD_ITEM,action:function(){var e=t.trigger.getSearcher().getKeyword();t.combo.setValue([e]),t.combo.hideView()}}]},toggle:!n.allowEdit,hideChecker:function(e){return!(n.container&&t.trigger.getSearcher().isSearching()&&0<t.trigger.getSearcher().getView().element.find(e.target).length)&&0===t.triggerBtn.element.find(e.target).length},listeners:[{eventName:BI.Combo.EVENT_AFTER_HIDEVIEW,action:function(){t.trigger.stopEditing()}},{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_BEFORE_POPUPVIEW)}}]}},_getSyncConfig:function(){var e=this.options,t=this._getBaseConfig();return BI.extend(t,e.allowEdit?this._getSearchConfig():{el:{type:"bi.single_tree_trigger",text:e.text,height:e.height,items:e.items,value:e.value}})},_getAsyncConfig:function(){var e=this._getBaseConfig();return BI.extend(e,this._getSearchConfig())},setValue:function(e){e=BI.isArray(e)?e:[e],this.combo.setValue(e)},getValue:function(){return this.combo.getValue()},populate:function(e){this.combo.populate(e)}}),BI.MultiLayerSelectTreeCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiLayerSelectTreeCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiLayerSelectTreeCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiLayerSelectTreeCombo.EVENT_CHANGE="EVENT_CHANGE",BI.MultiLayerSelectTreeCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.multilayer_select_tree_combo",BI.MultiLayerSelectTreeCombo)},function(e,t){BI.MultiLayerSelectTreeInsertSearchPane=BI.inherit(BI.Widget,{props:function(){return{baseCls:"bi-multilayer-select-tree-popup",tipText:BI.i18nText("BI-No_Selected_Item"),isDefaultInit:!1,itemsCreator:BI.emptyFn,items:[],value:""}},render:function(){var n=this,r=this.options;return this.tree=BI.createWidget({type:"bi.multilayer_select_level_tree",isDefaultInit:r.isDefaultInit,items:r.items,itemsCreator:r.itemsCreator===BI.emptyFn?BI.emptyFn:function(e,t){r.itemsCreator(e,function(e){t(e),n.setKeyword(r.keywordGetter())})},keywordGetter:r.keywordGetter,value:r.value,scrollable:null,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}},{eventName:BI.MultiLayerSelectLevelTree.EVENT_CHANGE,action:function(){n.fireEvent(BI.MultiLayerSelectTreeInsertSearchPane.EVENT_CHANGE)}}]}),{type:"bi.vertical",scrolly:!1,scrollable:!0,vgap:5,items:[{type:"bi.text_button",invisible:!0,text:BI.i18nText("BI-Basic_Click_To_Add_Text",""),height:24,cls:"bi-high-light",hgap:5,ref:function(e){n.addNotMatchTip=e},handler:function(){n.fireEvent(BI.MultiLayerSelectTreeInsertSearchPane.EVENT_ADD_ITEM,r.keywordGetter())}},this.tree]}},setKeyword:function(e){var t=BI.isEmptyArray(this.tree.getAllLeaves());this.addNotMatchTip.setVisible(t),t&&this.addNotMatchTip.setText(BI.i18nText("BI-Basic_Click_To_Add_Text",e))},getValue:function(){return this.tree.getValue()},setValue:function(e){e=BI.isArray(e)?e:[e],this.tree.setValue(e)},populate:function(e){this.tree.populate(e)}}),BI.MultiLayerSelectTreeInsertSearchPane.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.MultiLayerSelectTreeInsertSearchPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multilayer_select_tree_insert_search_pane",BI.MultiLayerSelectTreeInsertSearchPane)},function(e,t){BI.MultiLayerSelectLevelTree=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSelectLevelTree.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multilayer-select-level-tree",isDefaultInit:!1,items:[],itemsCreator:BI.emptyFn,keywordGetter:BI.emptyFn,value:"",scrollable:!0})},_init:function(){var e=this.options;BI.MultiLayerSelectLevelTree.superclass._init.apply(this,arguments),this.storeValue=e.value,this.initTree(this.options.items),this.check()},_formatItems:function(r,i,a){var o=this,s=this.options.keywordGetter();return BI.each(r,function(e,t){var n={isFirstNode:0===e,isLastNode:e===r.length-1};t.layer=i,BI.isKey(t.id)||(t.id=BI.UUID()),t.keyword=t.keyword||s,n.pNode=a,!0===t.isParent||!0===t.parent||BI.isNotEmptyArray(t.children)?(0===i&&n.isFirstNode&&n.isLastNode?n.type="bi.multilayer_select_tree_plus_group_node":0===i&&n.isFirstNode?n.type="bi.multilayer_select_tree_first_plus_group_node":n.isLastNode?n.type="bi.multilayer_select_tree_last_plus_group_node":n.type="bi.multilayer_select_tree_mid_plus_group_node",BI.defaults(t,n),o._formatItems(t.children,i+1,t)):(0===i&&n.isFirstNode&&n.isLastNode?n.type="bi.root_tree_leaf_item":0===i&&n.isFirstNode?n.type="bi.multilayer_single_tree_first_tree_leaf_item":n.isLastNode?n.type="bi.multilayer_single_tree_last_tree_leaf_item":n.type="bi.multilayer_single_tree_mid_tree_leaf_item",BI.defaults(t,n))}),r},_assertId:function(e){BI.each(e,function(e,t){t.id=t.id||BI.UUID()})},initTree:function(e){var r=this,i=this.options,a=!1;this.empty(),this._assertId(e),this.tree=BI.createWidget({type:"bi.custom_tree",cls:"tree-view display-table",expander:{type:"bi.tree_expander",selectable:!0,isDefaultInit:i.isDefaultInit,el:{},popup:{type:"bi.custom_tree"}},items:this._formatItems(BI.Tree.transformToTreeFormat(e),0),itemsCreator:function(t,n){1!==t.times||t.node||BI.nextTick(function(){r.loading()}),i.itemsCreator(t,function(e){a=e.hasNext,1!==t.times||t.node||r._populate(e.items),n(r._formatItems(BI.Tree.transformToTreeFormat(e.items),t.node?t.node.layer+1:0,t.node)),r.setValue(r.storeValue),1!==t.times||t.node||BI.nextTick(function(){r.loaded()})})},value:i.value,el:{type:"bi.loader",isDefaultInit:i.itemsCreator!==BI.emptyFn,el:{type:"bi.button_tree",chooseType:i.chooseType===BI.Selection.None?BI.Selection.None:BI.Selection.Default,behaviors:i.behaviors,layouts:[{type:"bi.vertical"}]},hasNext:function(){return a}}}),this.tree.on(BI.Controller.EVENT_CHANGE,function(e,t){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&(r.setValue(t),r.fireEvent(BI.MultiLayerSelectLevelTree.EVENT_CHANGE,arguments))}),BI.createWidget({type:"bi.adaptive",element:this,scrollable:i.scrollable,items:[this.tree]})},_populate:function(){BI.MultiLayerSelectLevelTree.superclass.populate.apply(this,arguments)},populate:function(e){this._populate(e),BI.isNull(e)?this.tree.populate():this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(e),0))},setValue:function(e){this.options.chooseType===BI.Selection.None||(this.storeValue=e,this.tree.setValue(e))},getValue:function(){return BI.isArray(this.storeValue)?this.storeValue:BI.isNull(this.storeValue)?[]:[this.storeValue]},getAllLeaves:function(){return this.tree.getAllLeaves()},getNodeById:function(e){return this.tree.getNodeById(e)},getNodeByValue:function(e){return this.tree.getNodeByValue(e)}}),BI.MultiLayerSelectLevelTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multilayer_select_level_tree",BI.MultiLayerSelectLevelTree)},function(e,t){BI.MultiLayerSelectTreePopup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSelectTreePopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multilayer-select-tree-popup",tipText:BI.i18nText("BI-No_Selected_Item"),isDefaultInit:!1,itemsCreator:BI.emptyFn,items:[],value:"",onLoaded:BI.emptyFn,minHeight:240})},_init:function(){BI.MultiLayerSelectTreePopup.superclass._init.apply(this,arguments);var e=this,t=this.options;this.tree=BI.createWidget({type:"bi.multilayer_select_level_tree",isDefaultInit:t.isDefaultInit,items:t.items,itemsCreator:t.itemsCreator,keywordGetter:t.keywordGetter,value:t.value,scrollable:null,onLoaded:function(){e.tree.check(),t.onLoaded()}}),BI.createWidget({type:"bi.vertical",scrolly:!1,scrollable:!0,element:this,vgap:5,items:[this.tree]}),this.tree.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.tree.on(BI.MultiLayerSelectLevelTree.EVENT_CHANGE,function(){e.fireEvent(BI.MultiLayerSelectTreePopup.EVENT_CHANGE)}),this.tree.css("min-height",t.minHeight-10)},getValue:function(){return this.tree.getValue()},setValue:function(e){e=BI.isArray(e)?e:[e],this.tree.setValue(e)},populate:function(e){this.tree.populate(e)}}),BI.MultiLayerSelectTreePopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multilayer_select_tree_popup",BI.MultiLayerSelectTreePopup)},function(e,t){BI.MultiLayerSelectTreeTrigger=BI.inherit(BI.Trigger,{props:function(){return{extraCls:"bi-multi-layer-select-tree-trigger bi-border bi-focus-shadow bi-border-radius",height:24,itemsCreator:BI.emptyFn,watermark:BI.i18nText("BI-Basic_Search"),allowSearchValue:!1,title:BI.bind(this._getShowText,this)}},render:function(){var r=this,i=this.options;i.itemsCreator===BI.emptyFn&&this._initData();var e={type:"bi.htape",items:[{el:{type:"bi.searcher",ref:function(){r.searcher=this},masker:BI.isNotNull(i.container)?{offset:{},container:i.container}:{offset:{}},isAutoSearch:!1,el:{type:"bi.state_editor",ref:function(){r.editor=this},defaultText:i.text,text:this._digest(i.value),value:i.value,height:i.height,tipText:"",watermark:i.watermark,listeners:[{eventName:BI.StateEditor.EVENT_FOCUS,action:function(){r.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_FOCUS)}},{eventName:BI.StateEditor.EVENT_BLUR,action:function(){r.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_BLUR)}},{eventName:BI.StateEditor.EVENT_CHANGE,action:function(){r.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_SEARCHING)}}]},popup:{type:i.allowInsertValue?"bi.multilayer_select_tree_insert_search_pane":"bi.multilayer_select_tree_popup",itemsCreator:i.itemsCreator===BI.emptyFn?BI.emptyFn:function(e,t){e.keyword=r.editor.getValue(),i.itemsCreator(e,t)},keywordGetter:function(){return r.editor.getValue()},cls:"bi-card",listeners:[{eventName:BI.MultiLayerSelectTreeInsertSearchPane.EVENT_ADD_ITEM,action:function(){r.options.text=r.getSearcher().getKeyword(),r.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_ADD_ITEM)}}],ref:function(e){r.popup=e}},onSearch:function(e,t){var n=e.keyword;i.itemsCreator===BI.emptyFn?(t(r._getSearchItems(n)),i.allowInsertValue&&r.popup.setKeyword(n)):t()},listeners:[{eventName:BI.Searcher.EVENT_CHANGE,action:function(){r.fireEvent(BI.MultiLayerSelectTreeTrigger.EVENT_CHANGE)}}]}},{el:{type:"bi.layout",width:24},width:24}]};return i.allowEdit?e:{type:"bi.absolute",items:[{el:e,left:0,right:0,top:0,bottom:0},{el:{type:"bi.layout"},left:0,right:24,top:0,bottom:0}]}},_initData:function(){var e=this.options;this.tree=new BI.Tree,this.nodes=BI.Tree.treeFormat(BI.deepClone(e.items)),this.tree.initTree(this.nodes)},_getSearchItems:function(n){var r=this,i=this.options,a=[];return this.tree.traverse(function(e){var t=BI.Func.getSearchResult(r.tree.isRoot(e)?[]:BI.concat([e.text],i.allowSearchValue?[e.value]:[]),n);if(0<t.find.length||0<t.match.length)return a.push(e),!0}),this._fillTreeStructure4Search(a,"id")},_createJson:function(e,t){return{id:e.id,pId:e.pId,text:e.text,value:e.value,isParent:BI.isNotEmptyArray(e.children),open:t}},_getChildren:function(e){var r=this;e.children=e.children||[];var i=[];return BI.each(e.children,function(e,t){var n=r._getChildren(t);i=i.concat(n)}),e.children.concat(i)},_fillTreeStructure4Search:function(e){var n=this,r=[],i=[];for(BI.each(e,function(e,t){i.push({pId:t.pId}),r.push(t),r=r.concat(n._getChildren(t))});BI.isNotEmptyArray(i);){var t=i.pop(),a=this.tree.search(this.tree.getRoot(),t.pId,"id");null!=a&&(a.open=!0,i.push({pId:a.pId}),r.push(a))}return BI.uniqBy(BI.map(r,function(e,t){return n._createJson(t,t.open)}),"id")},_digest:function(n){var e=this.options;if(BI.isFunction(e.valueFormatter))return e.valueFormatter(n);if(e.itemsCreator!==BI.emptyFn)return n;var t=BI.find(e.items,function(e,t){return t.value===n});return BI.isNotNull(t)?t.text:e.text},_getShowText:function(){return this.editor.getText()},stopEditing:function(){this.searcher.stopSearch()},getSearcher:function(){return this.searcher},populate:function(e){this.options.items=e,this._initData(e)},setValue:function(e){this.editor.setState(this._digest(e[0]))},getValue:function(){return this.searcher.getValue()}}),BI.MultiLayerSelectTreeTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.MultiLayerSelectTreeTrigger.EVENT_BLUR="EVENT_BLUR",BI.MultiLayerSelectTreeTrigger.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiLayerSelectTreeTrigger.EVENT_STOP="EVENT_STOP",BI.MultiLayerSelectTreeTrigger.EVENT_START="EVENT_START",BI.MultiLayerSelectTreeTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.MultiLayerSelectTreeTrigger.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.shortcut("bi.multilayer_select_tree_trigger",BI.MultiLayerSelectTreeTrigger)},function(e,t){BI.MultiLayerSelectTreeFirstPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-select-tree-first-plus-group-node bi-list-item-active",layer:0,id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.node=BI.createWidget({type:"bi.select_tree_first_plus_group_node",cls:"bi-list-item-none",stopPropagation:!0,logic:{dynamic:!0},id:e.id,pId:e.pId,keyword:e.keyword,open:e.open,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py}),this.node.on(BI.Controller.EVENT_CHANGE,function(e){t.setSelected(t.isSelected()),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];n.push({el:this.node,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:n})},isOnce:function(){return!0},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},isSelected:function(){return this.node.isSelected()},setSelected:function(e){BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass.setSelected.apply(this,arguments),this.node.setSelected(e)},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSelectTreeFirstPlusGroupNode.superclass.setOpened.apply(this,arguments),this.node.setOpened(e)}}),BI.shortcut("bi.multilayer_select_tree_first_plus_group_node",BI.MultiLayerSelectTreeFirstPlusGroupNode)},function(e,t){BI.MultiLayerSelectTreeLastPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSelectTreeLastPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-select-tree-last-plus-group-node bi-list-item-active",layer:0,id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.MultiLayerSelectTreeLastPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.node=BI.createWidget({type:"bi.select_tree_last_plus_group_node",cls:"bi-list-item-none",stopPropagation:!0,logic:{dynamic:!0},id:e.id,pId:e.pId,keyword:e.keyword,open:e.open,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py}),this.node.on(BI.Controller.EVENT_CHANGE,function(e){t.setSelected(t.isSelected()),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];n.push({el:this.node,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:n})},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},isSelected:function(){return this.node.isSelected()},setSelected:function(e){BI.MultiLayerSelectTreeLastPlusGroupNode.superclass.setSelected.apply(this,arguments),this.node.setSelected(e)},doClick:function(){BI.MultiLayerSelectTreeLastPlusGroupNode.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSelectTreeLastPlusGroupNode.superclass.setOpened.apply(this,arguments),this.node.setOpened(e)}}),BI.shortcut("bi.multilayer_select_tree_last_plus_group_node",BI.MultiLayerSelectTreeLastPlusGroupNode)},function(e,t){BI.MultiLayerSelectTreeMidPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSelectTreeMidPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-select-tree-mid-plus-group-node bi-list-item-active",layer:0,id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.MultiLayerSelectTreeMidPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.node=BI.createWidget({type:"bi.select_tree_mid_plus_group_node",cls:"bi-list-item-none",stopPropagation:!0,logic:{dynamic:!0},id:e.id,pId:e.pId,keyword:e.keyword,open:e.open,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py}),this.node.on(BI.Controller.EVENT_CHANGE,function(e){t.setSelected(t.isSelected()),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];n.push({el:this.node,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:n})},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},isSelected:function(){return this.node.isSelected()},setSelected:function(e){BI.MultiLayerSelectTreeMidPlusGroupNode.superclass.setSelected.apply(this,arguments),this.node.setSelected(e)},doClick:function(){BI.MultiLayerSelectTreeMidPlusGroupNode.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSelectTreeMidPlusGroupNode.superclass.setOpened.apply(this,arguments),this.node.setOpened(e)}}),BI.shortcut("bi.multilayer_select_tree_mid_plus_group_node",BI.MultiLayerSelectTreeMidPlusGroupNode)},function(e,t){BI.MultiLayerSelectTreePlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSelectTreePlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-select-tree-first-plus-group-node bi-list-item-active",layer:0,id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.MultiLayerSelectTreePlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.node=BI.createWidget({type:"bi.select_tree_plus_group_node",cls:"bi-list-item-none",stopPropagation:!0,logic:{dynamic:!0},id:e.id,pId:e.pId,keyword:e.keyword,open:e.open,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py}),this.node.on(BI.Controller.EVENT_CHANGE,function(e){t.setSelected(t.isSelected()),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];n.push({el:this.node,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:n})},isOnce:function(){return!0},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},isSelected:function(){return this.node.isSelected()},setSelected:function(e){BI.MultiLayerSelectTreePlusGroupNode.superclass.setSelected.apply(this,arguments),this.node.setSelected(e)},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSelectTreePlusGroupNode.superclass.setOpened.apply(this,arguments),this.node.setOpened(e)}}),BI.shortcut("bi.multilayer_select_tree_plus_group_node",BI.MultiLayerSelectTreePlusGroupNode)},function(e,t){BI.MultiLayerSingleTreeCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSingleTreeCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multilayer-single-tree-combo",isDefaultInit:!1,height:24,text:"",itemsCreator:BI.emptyFn,items:[],value:"",attributes:{tabIndex:0},allowEdit:!1,allowSearchValue:!1,allowInsertValue:!1,isNeedAdjustWidth:!0})},render:function(){var t=this,e=this.options,n=e.itemsCreator===BI.emptyFn?this._getSyncConfig():this._getAsyncConfig();return e.allowEdit||e.itemsCreator!==BI.emptyFn?{type:"bi.absolute",items:[{el:n,left:0,right:0,top:0,bottom:0},{el:{type:"bi.trigger_icon_button",cls:"trigger-icon-button",ref:function(e){t.triggerBtn=e},width:e.height,height:e.height,handler:function(){t.combo.isViewVisible()?t.combo.hideView():t.combo.showView()}},right:0,bottom:0,top:0}]}:n},_getBaseConfig:function(){var t=this,e=this.options;return{type:"bi.combo",container:e.container,destroyWhenHide:e.destroyWhenHide,adjustLength:2,ref:function(e){t.combo=e},popup:{el:{type:"bi.multilayer_single_tree_popup",isDefaultInit:e.isDefaultInit,itemsCreator:e.itemsCreator,items:e.items,ref:function(e){t.trigger&&t.trigger.getSearcher().setAdapter(e)},listeners:[{eventName:BI.MultiLayerSingleTreePopup.EVENT_CHANGE,action:function(){t.setValue(this.getValue()),t.combo.hideView(),t.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE)}}],onLoaded:function(){BI.nextTick(function(){t.combo.adjustWidth(),t.combo.adjustHeight()})}},value:e.value,maxHeight:400,maxWidth:e.isNeedAdjustWidth?"auto":500,minHeight:240},isNeedAdjustWidth:e.isNeedAdjustWidth,listeners:[{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_BEFORE_POPUPVIEW)}}]}},_getSearchConfig:function(){var t=this,n=this.options;return{el:{type:"bi.multilayer_single_tree_trigger",container:n.container,allowInsertValue:n.allowInsertValue,allowSearchValue:n.allowSearchValue,allowEdit:n.allowEdit,cls:"multilayer-single-tree-trigger",ref:function(e){t.trigger=e},watermark:n.watermark,items:n.items,itemsCreator:n.itemsCreator,valueFormatter:n.valueFormatter,height:n.height-2,text:n.text,value:n.value,tipType:n.tipType,warningTitle:n.warningTitle,title:n.title,listeners:[{eventName:BI.MultiLayerSingleTreeTrigger.EVENT_CHANGE,action:function(){t.setValue(this.getValue()),t.combo.hideView(),t.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE)}},{eventName:BI.MultiLayerSingleTreeTrigger.EVENT_FOCUS,action:function(){t.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_FOCUS)}},{eventName:BI.MultiLayerSingleTreeTrigger.EVENT_BLUR,action:function(){t.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_BLUR)}},{eventName:BI.MultiLayerSingleTreeTrigger.EVENT_SEARCHING,action:function(){t.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_SEARCHING)}},{eventName:BI.MultiLayerSingleTreeTrigger.EVENT_ADD_ITEM,action:function(){var e=t.trigger.getSearcher().getKeyword();t.combo.setValue([e]),t.combo.hideView()}}]},toggle:!n.allowEdit,hideChecker:function(e){return!(n.container&&t.trigger.getSearcher().isSearching()&&0<t.trigger.getSearcher().getView().element.find(e.target).length)&&0===t.triggerBtn.element.find(e.target).length},listeners:[{eventName:BI.Combo.EVENT_AFTER_HIDEVIEW,action:function(){t.trigger.stopEditing()}},{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_BEFORE_POPUPVIEW)}}]}},_getSyncConfig:function(){var e=this.options,t=this._getBaseConfig();return BI.extend(t,e.allowEdit?this._getSearchConfig():{el:{type:"bi.single_tree_trigger",text:e.text,height:e.height,items:e.items,value:e.value}})},_getAsyncConfig:function(){var e=this._getBaseConfig();return BI.extend(e,this._getSearchConfig())},setValue:function(e){e=BI.isArray(e)?e:[e],this.combo.setValue(e)},getValue:function(){return this.combo.getValue()},populate:function(e){this.combo.populate(e)}}),BI.MultiLayerSingleTreeCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiLayerSingleTreeCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiLayerSingleTreeCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiLayerSingleTreeCombo.EVENT_CHANGE="EVENT_CHANGE",BI.MultiLayerSingleTreeCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.multilayer_single_tree_combo",BI.MultiLayerSingleTreeCombo)},function(e,t){BI.MultiLayerSingleTreeInsertSearchPane=BI.inherit(BI.Widget,{props:function(){return{baseCls:"bi-multilayer-single-tree-popup",tipText:BI.i18nText("BI-No_Selected_Item"),isDefaultInit:!1,itemsCreator:BI.emptyFn,items:[],value:""}},render:function(){var n=this,r=this.options;return this.tree=BI.createWidget({type:"bi.multilayer_single_level_tree",isDefaultInit:r.isDefaultInit,items:r.items,itemsCreator:r.itemsCreator===BI.emptyFn?BI.emptyFn:function(e,t){r.itemsCreator(e,function(e){t(e),n.setKeyword(r.keywordGetter())})},keywordGetter:r.keywordGetter,value:r.value,scrollable:null,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}},{eventName:BI.MultiLayerSelectLevelTree.EVENT_CHANGE,action:function(){n.fireEvent(BI.MultiLayerSingleTreeInsertSearchPane.EVENT_CHANGE)}}]}),{type:"bi.vertical",scrolly:!1,scrollable:!0,vgap:5,items:[{type:"bi.text_button",invisible:!0,text:BI.i18nText("BI-Basic_Click_To_Add_Text",""),height:24,cls:"bi-high-light",hgap:5,ref:function(e){n.addNotMatchTip=e},handler:function(){n.fireEvent(BI.MultiLayerSingleTreeInsertSearchPane.EVENT_ADD_ITEM,r.keywordGetter())}},this.tree]}},setKeyword:function(e){var t=BI.isEmptyArray(this.tree.getAllLeaves());this.addNotMatchTip.setVisible(t),t&&this.addNotMatchTip.setText(BI.i18nText("BI-Basic_Click_To_Add_Text",e))},getValue:function(){return this.tree.getValue()},setValue:function(e){e=BI.isArray(e)?e:[e],this.tree.setValue(e)},populate:function(e){this.tree.populate(e)}}),BI.MultiLayerSingleTreeInsertSearchPane.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.MultiLayerSingleTreeInsertSearchPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multilayer_single_tree_insert_search_pane",BI.MultiLayerSingleTreeInsertSearchPane)},function(e,t){BI.MultiLayerSingleLevelTree=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSingleLevelTree.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multilayer-single-level-tree",isDefaultInit:!1,items:[],itemsCreator:BI.emptyFn,keywordGetter:BI.emptyFn,chooseType:BI.Selection.Single,scrollable:!0})},_init:function(){var e=this.options;BI.MultiLayerSingleLevelTree.superclass._init.apply(this,arguments),this.storeValue=e.value,this.initTree(this.options.items),this.check()},_formatItems:function(r,i,a){var o=this,s=this.options.keywordGetter();return BI.each(r,function(e,t){var n={isFirstNode:0===e,isLastNode:e===r.length-1};t.layer=i,BI.isKey(t.id)||(t.id=BI.UUID()),t.keyword=t.keyword||s,n.pNode=a,!0===t.isParent||!0===t.parent||BI.isNotEmptyArray(t.children)?(0===i&&n.isFirstNode&&n.isLastNode?n.type="bi.multilayer_single_tree_plus_group_node":0===i&&n.isFirstNode?n.type="bi.multilayer_single_tree_first_plus_group_node":n.isLastNode?n.type="bi.multilayer_single_tree_last_plus_group_node":n.type="bi.multilayer_single_tree_mid_plus_group_node",BI.defaults(t,n),o._formatItems(t.children,i+1,t)):(0===i&&n.isFirstNode&&n.isLastNode?n.type="bi.root_tree_leaf_item":0===i&&n.isFirstNode?n.type="bi.multilayer_single_tree_first_tree_leaf_item":n.isLastNode?n.type="bi.multilayer_single_tree_last_tree_leaf_item":n.type="bi.multilayer_single_tree_mid_tree_leaf_item",BI.defaults(t,n))}),r},_assertId:function(e){BI.each(e,function(e,t){t.id=t.id||BI.UUID()})},initTree:function(e){var r=this,i=this.options,a=!1;this.empty(),this._assertId(e),this.tree=BI.createWidget({type:"bi.custom_tree",cls:"tree-view display-table",expander:{type:"bi.tree_expander",isDefaultInit:i.isDefaultInit,el:{},popup:{type:"bi.custom_tree"}},items:this._formatItems(BI.Tree.transformToTreeFormat(e),0),value:i.value,itemsCreator:function(t,n){1!==t.times||t.node||BI.nextTick(function(){r.loading()}),i.itemsCreator(t,function(e){a=e.hasNext,1!==t.times||t.node||r._populate(e.items),n(r._formatItems(BI.Tree.transformToTreeFormat(e.items),t.node?t.node.layer+1:0,t.node)),r.setValue(r.storeValue),1!==t.times||t.node||BI.nextTick(function(){r.loaded()})})},el:{type:"bi.loader",isDefaultInit:i.itemsCreator!==BI.emptyFn,el:{type:"bi.button_tree",chooseType:i.chooseType===BI.Selection.None?BI.Selection.None:BI.Selection.Default,behaviors:i.behaviors,layouts:[{type:"bi.vertical"}]},hasNext:function(){return a}}}),this.tree.on(BI.Controller.EVENT_CHANGE,function(e,t){r.fireEvent(BI.Controller.EVENT_CHANGE,arguments),e===BI.Events.CLICK&&(r.setValue(t),r.fireEvent(BI.MultiLayerSingleLevelTree.EVENT_CHANGE,t))}),BI.createWidget({type:"bi.adaptive",element:this,scrollable:i.scrollable,items:[this.tree]})},_populate:function(){BI.MultiLayerSelectLevelTree.superclass.populate.apply(this,arguments)},populate:function(e){this._populate(e),BI.isNull(e)?this.tree.populate():this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(e),0))},setValue:function(e){this.options.chooseType===BI.Selection.None||(this.storeValue=e,this.tree.setValue(e))},getValue:function(){return BI.isArray(this.storeValue)?this.storeValue:BI.isNull(this.storeValue)?[]:[this.storeValue]},getAllLeaves:function(){return this.tree.getAllLeaves()},getNodeById:function(e){return this.tree.getNodeById(e)},getNodeByValue:function(e){return this.tree.getNodeByValue(e)}}),BI.MultiLayerSingleLevelTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multilayer_single_level_tree",BI.MultiLayerSingleLevelTree)},function(e,t){BI.MultiLayerSingleTreePopup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSingleTreePopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multilayer-singletree-popup",tipText:BI.i18nText("BI-No_Selected_Item"),isDefaultInit:!1,itemsCreator:BI.emptyFn,items:[],onLoaded:BI.emptyFn,minHeight:240})},_init:function(){BI.MultiLayerSingleTreePopup.superclass._init.apply(this,arguments);var e=this,t=this.options;this.tree=BI.createWidget({type:"bi.multilayer_single_level_tree",isDefaultInit:t.isDefaultInit,items:t.items,itemsCreator:t.itemsCreator,keywordGetter:t.keywordGetter,value:t.value,scrollable:null,onLoaded:function(){e.tree.check(),t.onLoaded()}}),BI.createWidget({type:"bi.vertical",scrolly:!1,scrollable:!0,element:this,vgap:5,items:[this.tree]}),this.tree.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.tree.on(BI.MultiLayerSingleLevelTree.EVENT_CHANGE,function(){e.fireEvent(BI.MultiLayerSingleTreePopup.EVENT_CHANGE)}),this.tree.css("min-height",t.minHeight-10)},getValue:function(){return this.tree.getValue()},setValue:function(e){e=BI.isArray(e)?e:[e],this.tree.setValue(e)},populate:function(e){this.tree.populate(e)}}),BI.MultiLayerSingleTreePopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multilayer_single_tree_popup",BI.MultiLayerSingleTreePopup)},function(e,t){BI.MultiLayerSingleTreeTrigger=BI.inherit(BI.Trigger,{props:function(){return{extraCls:"bi-multi-layer-single-tree-trigger bi-border bi-focus-shadow bi-border-radius",height:24,itemsCreator:BI.emptyFn,watermark:BI.i18nText("BI-Basic_Search"),allowSearchValue:!1,title:BI.bind(this._getShowText,this)}},render:function(){var r=this,i=this.options;i.itemsCreator===BI.emptyFn&&this._initData();var e={type:"bi.htape",items:[{el:{type:"bi.searcher",ref:function(){r.searcher=this},masker:BI.isNotNull(i.container)?{offset:{},container:i.container}:{offset:{}},isAutoSearch:!1,el:{type:"bi.state_editor",ref:function(){r.editor=this},defaultText:i.text,text:this._digest(i.value),value:i.value,height:i.height,tipText:"",watermark:i.watermark,listeners:[{eventName:BI.StateEditor.EVENT_FOCUS,action:function(){r.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_FOCUS)}},{eventName:BI.StateEditor.EVENT_BLUR,action:function(){r.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_BLUR)}},{eventName:BI.StateEditor.EVENT_CHANGE,action:function(){r.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_SEARCHING)}}]},popup:{type:i.allowInsertValue?"bi.multilayer_single_tree_insert_search_pane":"bi.multilayer_single_tree_popup",itemsCreator:i.itemsCreator===BI.emptyFn?BI.emptyFn:function(e,t){e.keyword=r.editor.getValue(),i.itemsCreator(e,t)},keywordGetter:function(){return r.editor.getValue()},cls:"bi-card",listeners:[{eventName:BI.MultiLayerSingleTreeInsertSearchPane.EVENT_ADD_ITEM,action:function(){r.options.text=r.getSearcher().getKeyword(),r.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_ADD_ITEM)}}],ref:function(e){r.popup=e}},onSearch:function(e,t){var n=e.keyword;i.itemsCreator===BI.emptyFn?(t(r._getSearchItems(n)),i.allowInsertValue&&r.popup.setKeyword(n)):t()},listeners:[{eventName:BI.Searcher.EVENT_CHANGE,action:function(){r.fireEvent(BI.MultiLayerSingleTreeTrigger.EVENT_CHANGE)}}]}},{el:{type:"bi.layout",width:24},width:24}]};return i.allowEdit?e:{type:"bi.absolute",items:[{el:e,left:0,right:0,top:0,bottom:0},{el:{type:"bi.layout"},left:0,right:24,top:0,bottom:0}]}},_initData:function(){var e=this.options;this.tree=new BI.Tree,this.nodes=BI.Tree.treeFormat(BI.deepClone(e.items)),this.tree.initTree(this.nodes)},_getSearchItems:function(n){var r=this,i=this.options,a=[];return this.tree.traverse(function(e){var t=BI.Func.getSearchResult(r.tree.isRoot(e)?[]:BI.concat([e.text],i.allowSearchValue?[e.value]:[]),n);if(0<t.find.length||0<t.match.length)return a.push(e),!0}),this._fillTreeStructure4Search(a,"id")},_createJson:function(e,t){return{id:e.id,pId:e.pId,text:e.text,value:e.value,isParent:BI.isNotEmptyArray(e.children),open:t}},_getChildren:function(e){var r=this;e.children=e.children||[];var i=[];return BI.each(e.children,function(e,t){var n=r._getChildren(t);i=i.concat(n)}),e.children.concat(i)},_fillTreeStructure4Search:function(e){var n=this,r=[],i=[];for(BI.each(e,function(e,t){i.push({pId:t.pId}),r.push(t),r=r.concat(n._getChildren(t))});BI.isNotEmptyArray(i);){var t=i.pop(),a=this.tree.search(this.tree.getRoot(),t.pId,"id");null!=a&&(a.open=!0,i.push({pId:a.pId}),r.push(a))}return BI.uniqBy(BI.map(r,function(e,t){return n._createJson(t,t.open)}),"id")},_digest:function(n){var e=this.options;if(BI.isFunction(e.valueFormatter))return e.valueFormatter(n);if(e.itemsCreator!==BI.emptyFn)return n;var t=BI.find(e.items,function(e,t){return t.value===n});return BI.isNotNull(t)?t.text:e.text},_getShowText:function(){return this.editor.getText()},stopEditing:function(){this.searcher.stopSearch()},getSearcher:function(){return this.searcher},populate:function(e){this.options.items=e,this._initData()},setValue:function(e){this.editor.setState(this._digest(e[0]))},getValue:function(){return this.searcher.getValue()}}),BI.MultiLayerSingleTreeTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.MultiLayerSingleTreeTrigger.EVENT_BLUR="EVENT_BLUR",BI.MultiLayerSingleTreeTrigger.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiLayerSingleTreeTrigger.EVENT_STOP="EVENT_STOP",BI.MultiLayerSingleTreeTrigger.EVENT_START="EVENT_START",BI.MultiLayerSingleTreeTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.MultiLayerSingleTreeTrigger.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.shortcut("bi.multilayer_single_tree_trigger",BI.MultiLayerSingleTreeTrigger)},function(e,t){BI.MultiLayerSingleTreeFirstPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-single-tree-first-plus-group-node bi-list-item",layer:0,id:"",pId:"",open:!1,height:24})},_init:function(){BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass._init.apply(this,arguments);var e=this.options;this.node=this._createNode();var t=[];t.push({el:this.node,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:t})},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},doClick:function(){BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSingleTreeFirstPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.node)&&this.node.setOpened(e)},_createNode:function(){var t=this,e=this.options;return BI.createWidget({type:"bi.first_plus_group_node",cls:"bi-list-item-none",logic:{dynamic:!0},id:e.id,pId:e.pId,open:e.open,isLastNode:e.isLastNode,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}}]})}}),BI.shortcut("bi.multilayer_single_tree_first_plus_group_node",BI.MultiLayerSingleTreeFirstPlusGroupNode)},function(e,t){BI.MultiLayerSingleTreeLastPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSingleTreeLastPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-single-tree-last-plus-group-node bi-list-item",layer:0,id:"",pId:"",open:!1,height:24})},_init:function(){BI.MultiLayerSingleTreeLastPlusGroupNode.superclass._init.apply(this,arguments);var e=this.options;this.node=this._createNode();var t=[];t.push({el:this.node,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:t})},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},doClick:function(){BI.MultiLayerSingleTreeLastPlusGroupNode.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSingleTreeLastPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.node)&&this.node.setOpened(e)},_createNode:function(){var t=this,e=this.options;return BI.createWidget({type:"bi.last_plus_group_node",cls:"bi-list-item-none",logic:{dynamic:!0},id:e.id,pId:e.pId,open:e.open,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}}]})}}),BI.shortcut("bi.multilayer_single_tree_last_plus_group_node",BI.MultiLayerSingleTreeLastPlusGroupNode)},function(e,t){BI.MultiLayerSingleTreeMidPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSingleTreeMidPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-single-tree-mid-plus-group-node bi-list-item",layer:0,id:"",pId:"",open:!1,height:24})},_init:function(){BI.MultiLayerSingleTreeMidPlusGroupNode.superclass._init.apply(this,arguments);var e=this.options;this.node=this._createNode();var t=[];t.push({el:this.node,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:t})},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},doClick:function(){BI.MultiLayerSingleTreeMidPlusGroupNode.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSingleTreeMidPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.node)&&this.node.setOpened(e)},_createNode:function(){var t=this,e=this.options;return BI.createWidget({type:"bi.mid_plus_group_node",cls:"bi-list-item-none",logic:{dynamic:!0},id:e.id,pId:e.pId,open:e.open,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}}]})}}),BI.shortcut("bi.multilayer_single_tree_mid_plus_group_node",BI.MultiLayerSingleTreeMidPlusGroupNode)},function(e,t){BI.MultiLayerSingleTreePlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.MultiLayerSingleTreePlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-multilayer-single-tree-plus-group-node bi-list-item",layer:0,id:"",pId:"",open:!1,height:24})},_init:function(){BI.MultiLayerSingleTreePlusGroupNode.superclass._init.apply(this,arguments);var t=this.options;this.node=this._createNode();for(var n=[],e=t.pNode;e;)e.isLastNode&&n.push(e.layer),e=e.pNode;var r=[];BI.count(0,t.layer,function(e){r.push({type:"bi.layout",cls:BI.contains(n,e)?"":"base-line-conn-background",width:12,height:t.height})}),r.push(this.node),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(t.layer,12),items:r})},doRedMark:function(){this.node.doRedMark.apply(this.node,arguments)},unRedMark:function(){this.node.unRedMark.apply(this.node,arguments)},doClick:function(){BI.MultiLayerSingleTreePlusGroupNode.superclass.doClick.apply(this,arguments),this.node.setSelected(this.isSelected())},setOpened:function(e){BI.MultiLayerSingleTreePlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.node)&&this.node.setOpened(e)},_createNode:function(){var t=this,e=this.options;return BI.createWidget({type:"bi.plus_group_node",cls:"bi-list-item-none",logic:{dynamic:!0},id:e.id,pId:e.pId,open:e.open,isLastNode:e.isLastNode,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}}]})}}),BI.shortcut("bi.multilayer_single_tree_plus_group_node",BI.MultiLayerSingleTreePlusGroupNode)},function(e,t){BI.MultiLayerSingleTreeFirstTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-multilayer-single-tree-first-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},layer:0,id:"",pId:"",height:24})},_init:function(){BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass._init.apply(this,arguments);var t=this,e=this.options;this.item=BI.createWidget({type:"bi.first_tree_leaf_item",cls:"bi-list-item-none",logic:{dynamic:!0},id:e.id,pId:e.pId,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.item.on(BI.Controller.EVENT_CHANGE,function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];n.push({el:this.item,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:n})},doHighLight:function(){this.item.doHighLight.apply(this.item,arguments)},unHighLight:function(){this.item.unHighLight.apply(this.item,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId},doClick:function(){BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass.doClick.apply(this,arguments),this.item.setSelected(this.isSelected())},setSelected:function(e){BI.MultiLayerSingleTreeFirstTreeLeafItem.superclass.setSelected.apply(this,arguments),this.item.setSelected(e)}}),BI.shortcut("bi.multilayer_single_tree_first_tree_leaf_item",BI.MultiLayerSingleTreeFirstTreeLeafItem)},function(e,t){BI.MultiLayerSingleTreeLastTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSingleTreeLastTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-multilayer-single-tree-last-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},layer:0,id:"",pId:"",height:24})},_init:function(){BI.MultiLayerSingleTreeLastTreeLeafItem.superclass._init.apply(this,arguments);var t=this,e=this.options;this.item=BI.createWidget({type:"bi.last_tree_leaf_item",cls:"bi-list-item-none",logic:{dynamic:!0},id:e.id,pId:e.pId,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.item.on(BI.Controller.EVENT_CHANGE,function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];n.push({el:this.item,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:n})},doHighLight:function(){this.item.doHighLight.apply(this.item,arguments)},unHighLight:function(){this.item.unHighLight.apply(this.item,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId},doClick:function(){BI.MultiLayerSingleTreeLastTreeLeafItem.superclass.doClick.apply(this,arguments),this.item.setSelected(this.isSelected())},setSelected:function(e){BI.MultiLayerSingleTreeLastTreeLeafItem.superclass.setSelected.apply(this,arguments),this.item.setSelected(e)}}),BI.shortcut("bi.multilayer_single_tree_last_tree_leaf_item",BI.MultiLayerSingleTreeLastTreeLeafItem)},function(e,t){BI.MultiLayerSingleTreeMidTreeLeafItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.MultiLayerSingleTreeMidTreeLeafItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-multilayer-single-tree-mid-tree-leaf-item bi-list-item-active",logic:{dynamic:!1},layer:0,id:"",pId:"",height:24})},_init:function(){BI.MultiLayerSingleTreeMidTreeLeafItem.superclass._init.apply(this,arguments);var t=this,e=this.options;this.item=BI.createWidget({type:"bi.mid_tree_leaf_item",cls:"bi-list-item-none",logic:{dynamic:!0},id:e.id,pId:e.pId,height:e.height,hgap:e.hgap,text:e.text,value:e.value,py:e.py,keyword:e.keyword}),this.item.on(BI.Controller.EVENT_CHANGE,function(e){e!==BI.Events.CLICK&&t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)});var n=[];n.push({el:this.item,lgap:12*e.layer}),BI.createWidget({type:"bi.horizontal_adapt",element:this,columnSize:BI.makeArray(e.layer,12),items:n})},doHighLight:function(){this.item.doHighLight.apply(this.item,arguments)},unHighLight:function(){this.item.unHighLight.apply(this.item,arguments)},getId:function(){return this.options.id},getPId:function(){return this.options.pId},doClick:function(){BI.MultiLayerSingleTreeMidTreeLeafItem.superclass.doClick.apply(this,arguments),this.item.setSelected(this.isSelected())},setSelected:function(e){BI.MultiLayerSingleTreeMidTreeLeafItem.superclass.setSelected.apply(this,arguments),this.item.setSelected(e)}}),BI.shortcut("bi.multilayer_single_tree_mid_tree_leaf_item",BI.MultiLayerSingleTreeMidTreeLeafItem)},function(e,t){BI.MultiSelectCheckPane=BI.inherit(BI.Widget,{constants:{height:12,lgap:10,tgap:10,bgap:5},_defaultConfig:function(){return BI.extend(BI.MultiSelectCheckPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-check-pane bi-background",items:[],itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,onClickContinueSelect:BI.emptyFn})},_init:function(){BI.MultiSelectCheckPane.superclass._init.apply(this,arguments);var n=this,r=this.options;this.storeValue=r.value||{},this.display=BI.createWidget({type:"bi.display_selected_list",items:r.items,itemsCreator:function(e,t){e=BI.extend(e||{},{selectedValues:n.storeValue.value}),n.storeValue.type!==BI.Selection.Multi?r.itemsCreator(e,t):t({items:BI.map(n.storeValue.value,function(e,t){var n=r.valueFormatter(t)||t;return{text:n,value:t,title:n}})})}}),this.continueSelect=BI.createWidget({type:"bi.text_button",text:BI.i18nText("BI-Continue_Select"),cls:"multi-select-check-selected bi-high-light"}),this.continueSelect.on(BI.TextButton.EVENT_CHANGE,function(){r.onClickContinueSelect()}),BI.createWidget({type:"bi.vtape",element:this,items:[{height:this.constants.height,el:{type:"bi.vertical_adapt",cls:"multi-select-continue-select",items:[{el:{type:"bi.label",text:BI.i18nText("BI-Selected_Data")},lgap:this.constants.lgap},{el:this.continueSelect,lgap:this.constants.lgap}]},tgap:this.constants.tgap},{height:"fill",el:this.display,tgap:this.constants.bgap}]})},setValue:function(e){this.storeValue=e||{}},empty:function(){this.display.empty()},populate:function(){this.display.populate.apply(this.display,arguments)}}),BI.shortcut("bi.multi_select_check_pane",BI.MultiSelectCheckPane)},function(e,t){BI.DisplaySelectedList=BI.inherit(BI.Pane,{constants:{height:24,lgap:10},_defaultConfig:function(){return BI.extend(BI.DisplaySelectedList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-display-list",itemsCreator:BI.emptyFn,items:[]})},_init:function(){BI.DisplaySelectedList.superclass._init.apply(this,arguments);var n=this,r=this.options;this.hasNext=!1,this.button_group=BI.createWidget({type:"bi.list_pane",element:this,el:{type:"bi.loader",isDefaultInit:!1,logic:{dynamic:!0,scrolly:!0},items:this._createItems(r.items),chooseType:BI.ButtonGroup.CHOOSE_TYPE_MULTI,layouts:[{type:"bi.vertical",lgap:10}]},itemsCreator:function(e,t){r.itemsCreator(e,function(e){n.hasNext=!!e.hasNext,t(n._createItems(e.items))})},hasNext:function(){return n.hasNext}})},_createItems:function(e){return BI.createItems(e,{type:"bi.icon_text_item",cls:"cursor-default check-font icon-size-12 display-list-item bi-tips",once:!0,invalid:!0,selected:!0,height:this.constants.height,logic:{dynamic:!0}})},empty:function(){this.button_group.empty()},populate:function(e){0===arguments.length?this.button_group.populate():this.button_group.populate(this._createItems(e))}}),BI.shortcut("bi.display_selected_list",BI.DisplaySelectedList)},function(e,t){BI.MultiSelectCombo=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiSelectCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-combo",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,itemHeight:24,height:24,attributes:{tabIndex:0},allowEdit:!0})},_init:function(){BI.MultiSelectCombo.superclass._init.apply(this,arguments);var n=this,e=this.options,r=function(){BI.isKey(n._startValue)&&(n.storeValue.type===BI.Selection.All?(BI.remove(n.storeValue.value,n._startValue),n.storeValue.assist=n.storeValue.assist||[],n.storeValue.assist.pushDistinct(n._startValue)):(BI.pushDistinct(n.storeValue.value,n._startValue),BI.remove(n.storeValue.assist,n._startValue))),n.trigger.getSearcher().setState(n.storeValue),n.numberCounter.setButtonChecked(n.storeValue)};this.storeValue=e.value||{},this._assertValue(this.storeValue),this.requesting=!1,this.trigger=BI.createWidget({type:"bi.multi_select_trigger",allowEdit:e.allowEdit,height:e.height,text:e.text,masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),itemHeight:e.itemHeight,value:this.storeValue}),this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS,function(){n.fireEvent(BI.MultiSelectCombo.EVENT_FOCUS)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR,function(){n.fireEvent(BI.MultiSelectCombo.EVENT_BLUR)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_START,function(){n._setStartValue(""),this.getSearcher().setValue(n.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP,function(){n._setStartValue(""),n.fireEvent(BI.MultiSelectCombo.EVENT_STOP)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_PAUSE,function(){var e;this.getSearcher().hasMatched()&&(e=this.getSearcher().getMatchedItemValue(),n._join({type:BI.Selection.Multi,value:[e]},function(){n.combo.setValue(n.storeValue),n._setStartValue(e),r(),n.populate(),n._setStartValue("")}))}),this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING,function(e){var t=BI.last(e);0<(e=BI.initial(e||[])).length&&n._joinKeywords(e,function(){BI.isEndWithBlank(t)?(n.combo.setValue(n.storeValue),r(),n.combo.populate(),n._setStartValue("")):(n.combo.setValue(n.storeValue),r())}),n.fireEvent(BI.MultiSelectCombo.EVENT_SEARCHING)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE,function(e,t){t instanceof BI.MultiSelectBar?n._joinAll(this.getValue(),function(){r()}):n._join(this.getValue(),function(){r()}),n.fireEvent(BI.MultiSelectCombo.EVENT_CLICK_ITEM)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW,function(){n.numberCounter.updateSelectedValue(n.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK,function(){n.combo.isViewVisible()||n.combo.showView()}),this.combo=BI.createWidget({type:"bi.combo",toggle:!e.allowEdit,container:e.container,el:this.trigger,adjustLength:1,popup:{type:"bi.multi_select_popup_view",ref:function(){n.popup=this,n.trigger.setAdapter(this),n.numberCounter.setAdapter(this)},listeners:[{eventName:BI.MultiSelectPopupView.EVENT_CHANGE,action:function(){n.storeValue=this.getValue(),n._adjust(function(){r()}),n.fireEvent(BI.MultiSelectCombo.EVENT_CLICK_ITEM)}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,action:function(){n._defaultState()}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,action:function(){n.setValue(),n._defaultState()}}],itemsCreator:e.itemsCreator,itemsHeight:e.itemsHeight,valueFormatter:e.valueFormatter,onLoaded:function(){BI.nextTick(function(){n.combo.adjustWidth(),n.combo.adjustHeight(),n.numberCounter.adjustView(),n.trigger.getSearcher().adjustView()})}},value:e.value,hideChecker:function(e){return 0===t.element.find(e.target).length&&0===n.numberCounter.element.find(e.target).length}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){this.setValue(n.storeValue),BI.nextTick(function(){n._populate()})}),this.wants2Quit=!1,this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){n._stopEditing(),!0===n.requesting?n.wants2Quit=!0:n.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM)});var t=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});t.on(BI.TriggerIconButton.EVENT_CHANGE,function(){n.numberCounter.hideView(),n.combo.isViewVisible()?n.combo.hideView():n.combo.showView()}),this.numberCounter=BI.createWidget({type:"bi.multi_select_check_selected_switcher",masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),value:this.storeValue}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){n.combo.isViewVisible()||n.combo.showView()}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){this.updateSelectedValue(n.storeValue)}),this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(!0===e?n.numberCounter.element.outerWidth()+8:0)})}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW,function(){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(0)})}),this.trigger.element.click(function(e){0<n.trigger.element.find(e.target).length&&n.numberCounter.hideView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:t,right:0,top:0,bottom:0},{el:{type:"bi.vertical_adapt",items:[this.numberCounter]},right:e.height,top:0,height:e.height}]})},_itemsCreator4Trigger:function(t,n){var r=this;this.options.itemsCreator(t,function(e){1===t.times&&BI.isNotNull(t.keywords)&&r.trigger.setValue(BI.deepClone(r.getValue())),n.apply(r,arguments)})},_stopEditing:function(){this.trigger.stopEditing(),this.numberCounter.hideView()},_defaultState:function(){this._stopEditing(),this.combo.hideView()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectCombo.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),o._adjust(a)})},_joinAll:function(t,c){var u=this,e=this.options;this._assertValue(t),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectCombo.REQ_GET_ALL_DATA,keywords:[this.trigger.getKey()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,u.storeValue.assist&&u.storeValue.assist.push(i[t]),delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void u._adjust(c)}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&(u.storeValue.assist&&u.storeValue.assist.push(a[n[e]]),delete a[n[e]]),BI.isNull(o[n[e]])&&(BI.remove(u.storeValue.assist,t),s.push(t))}),u.storeValue.value=s.concat(BI.values(a)),u._adjust(c)})},_adjust:function(e){var t=this;this.options;!function(){!0===t.wants2Quit&&(t.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM),t.wants2Quit=!1);t.requesting=!1}(),e()},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),BI.remove(n.storeValue.assist,t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,n.storeValue.assist&&n.storeValue.assist.push(r[t]),delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void n._adjust(t)}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.popup.setStartValue(e)},_populate:function(){this.combo.populate.apply(this.combo,arguments)},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue=e||{},this._assertValue(this.storeValue),this.combo.setValue(this.storeValue),this.numberCounter.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue)},populate:function(){this._populate.apply(this,arguments),this.numberCounter.populateSwitcher.apply(this.numberCounter,arguments)}}),BI.extend(BI.MultiSelectCombo,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.MultiSelectCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiSelectCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiSelectCombo.EVENT_STOP="EVENT_STOP",BI.MultiSelectCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiSelectCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.MultiSelectCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.multi_select_combo",BI.MultiSelectCombo)},function(e,t){BI.MultiSelectNoBarCombo=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiSelectNoBarCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-combo-no-bar",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,itemHeight:24,height:24,attributes:{tabIndex:0}})},_init:function(){BI.MultiSelectNoBarCombo.superclass._init.apply(this,arguments);var n=this,e=this.options,r=function(){BI.isKey(n._startValue)&&(n.storeValue.type===BI.Selection.All?(BI.remove(n.storeValue.value,n._startValue),n.storeValue.assist=n.storeValue.assist||[],n.storeValue.assist.pushDistinct(n._startValue)):(BI.pushDistinct(n.storeValue.value,n._startValue),BI.remove(n.storeValue.assist,n._startValue))),n.trigger.getSearcher().setState(n.storeValue),n.numberCounter.setButtonChecked(n.storeValue)};this.storeValue={type:BI.Selection.Multi,value:e.value||[]},this.requesting=!1,this.trigger=BI.createWidget({type:"bi.multi_select_trigger",height:e.height,text:e.text,masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),itemHeight:e.itemHeight,value:{type:BI.Selection.Multi,value:e.value}}),this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS,function(){n.fireEvent(BI.MultiSelectNoBarCombo.EVENT_FOCUS)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR,function(){n.fireEvent(BI.MultiSelectNoBarCombo.EVENT_BLUR)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_START,function(){n._setStartValue(""),this.getSearcher().setValue(n.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP,function(){n._setStartValue(""),n.fireEvent(BI.MultiSelectNoBarCombo.EVENT_STOP)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_PAUSE,function(){this.getSearcher().hasMatched()&&n._addItem(r,!0)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING,function(e){var t=BI.last(e);0<(e=BI.initial(e||[])).length&&n._joinKeywords(e,function(){BI.isEndWithBlank(t)?(n.combo.setValue(n.storeValue),r(),n.combo.populate(),n._setStartValue("")):(n.combo.setValue(n.storeValue),r())})}),this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE,function(e,t){t instanceof BI.MultiSelectBar?n._joinAll(this.getValue(),function(){r()}):n._join(this.getValue(),function(){r()}),n.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CLICK_ITEM)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW,function(){n.numberCounter.updateSelectedValue(n.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK,function(){n.combo.isViewVisible()||n.combo.showView()}),this.combo=BI.createWidget({type:"bi.combo",toggle:!1,container:e.container,el:this.trigger,adjustLength:1,popup:{type:"bi.multi_select_no_bar_popup_view",ref:function(){n.popup=this,n.trigger.setAdapter(this),n.numberCounter.setAdapter(this)},listeners:[{eventName:BI.MultiSelectPopupView.EVENT_CHANGE,action:function(){n.storeValue=this.getValue(),n._adjust(function(){r()}),n.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CLICK_ITEM)}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,action:function(){n._defaultState()}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,action:function(){n.setValue(),n._defaultState()}}],itemsCreator:e.itemsCreator,itemHeight:e.itemHeight,valueFormatter:e.valueFormatter,onLoaded:function(){BI.nextTick(function(){n.combo.adjustWidth(),n.combo.adjustHeight(),n.numberCounter.adjustView(),n.trigger.getSearcher().adjustView()})}},value:{type:BI.Selection.Multi,value:e.value},hideChecker:function(e){return 0===t.element.find(e.target).length&&0===n.numberCounter.element.find(e.target).length}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){this.setValue(n.storeValue),BI.nextTick(function(){n._populate()})}),this.wants2Quit=!1,this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){n._stopEditing(),!0===n.requesting?n.wants2Quit=!0:n.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM)});var t=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});t.on(BI.TriggerIconButton.EVENT_CHANGE,function(){n.numberCounter.hideView(),n.combo.isViewVisible()?n.combo.hideView():n.combo.showView()}),this.numberCounter=BI.createWidget({type:"bi.multi_select_check_selected_switcher",masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),value:{type:BI.Selection.Multi,value:e.value}}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){n.combo.isViewVisible()||n.combo.showView()}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){this.updateSelectedValue(n.storeValue)}),this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(!0===e?n.numberCounter.element.outerWidth()+8:0)})}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW,function(){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(0)})}),this.trigger.element.click(function(e){0<n.trigger.element.find(e.target).length&&n.numberCounter.hideView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:t,right:0,top:0,bottom:0},{el:{type:"bi.vertical_adapt",items:[this.numberCounter]},right:e.height,top:0,height:e.height}]})},_addItem:function(e,t){var n=this,r=t?this.trigger.getSearcher().getMatchedItemValue():this.trigger.getSearcher().getKeyword();this._join({type:BI.Selection.Multi,value:[r]},function(){n.storeValue.type===BI.Selection.Multi&&BI.pushDistinct(n.storeValue.value,r),n.combo.setValue(n.storeValue),n._setStartValue(r),e(),n.populate(),n._setStartValue("")})},_itemsCreator4Trigger:function(t,n){var r=this;this.options.itemsCreator(t,function(e){1===t.times&&BI.isNotNull(t.keywords)&&r.trigger.setValue(BI.deepClone(r.storeValue)),n.apply(r,arguments)})},_stopEditing:function(){this.trigger.stopEditing(),this.numberCounter.hideView()},_defaultState:function(){this._stopEditing(),this.combo.hideView()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectNoBarCombo.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),o._adjust(a)})},_joinAll:function(t,c){var u=this,e=this.options;this._assertValue(t),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectNoBarCombo.REQ_GET_ALL_DATA,keywords:[this.trigger.getKey()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,u.storeValue.assist&&u.storeValue.assist.push(i[t]),delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void u._adjust(c)}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&(u.storeValue.assist&&u.storeValue.assist.push(a[n[e]]),delete a[n[e]]),BI.isNull(o[n[e]])&&(BI.remove(u.storeValue.assist,t),s.push(t))}),u.storeValue.value=s.concat(BI.values(a)),u._adjust(c)})},_adjust:function(e){var t=this;this.options;!function(){!0===t.wants2Quit&&(t.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM),t.wants2Quit=!1);t.requesting=!1}(),e()},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),BI.remove(n.storeValue.assist,t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,n.storeValue.assist&&n.storeValue.assist.push(r[t]),delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void n._adjust(t)}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.popup.setStartValue(e)},_populate:function(){this.combo.populate.apply(this.combo,arguments)},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue={type:BI.Selection.Multi,value:e||[]},this.combo.setValue(this.storeValue),this.numberCounter.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue.value)},populate:function(){this._populate.apply(this,arguments),this.numberCounter.populateSwitcher.apply(this.numberCounter,arguments)}}),BI.extend(BI.MultiSelectNoBarCombo,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.MultiSelectNoBarCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiSelectNoBarCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiSelectNoBarCombo.EVENT_STOP="EVENT_STOP",BI.MultiSelectNoBarCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiSelectNoBarCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.MultiSelectNoBarCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.multi_select_no_bar_combo",BI.MultiSelectNoBarCombo)},function(e,t){BI.MultiSelectInsertCombo=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiSelectInsertCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-insert-combo",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,height:24,itemHeight:24,attributes:{tabIndex:0},allowEdit:!0})},_init:function(){BI.MultiSelectInsertCombo.superclass._init.apply(this,arguments);var n=this,e=this.options,r=function(){BI.isKey(n._startValue)&&(n.storeValue.type===BI.Selection.All?(BI.remove(n.storeValue.value,n._startValue),n.storeValue.assist=n.storeValue.assist||[],n.storeValue.assist.pushDistinct(n._startValue)):(BI.pushDistinct(n.storeValue.value,n._startValue),BI.remove(n.storeValue.assist,n._startValue))),n.trigger.getSearcher().setState(n.storeValue),n.numberCounter.setButtonChecked(n.storeValue)};this.storeValue=e.value||{},this.requesting=!1,this.trigger=BI.createWidget({type:"bi.multi_select_insert_trigger",allowEdit:e.allowEdit,height:e.height,text:e.text,watermark:e.watermark,masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),itemHeight:e.itemHeight,value:e.value}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_FOCUS,function(){n.fireEvent(BI.MultiSelectInsertCombo.EVENT_FOCUS)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BLUR,function(){n.fireEvent(BI.MultiSelectInsertCombo.EVENT_BLUR)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_START,function(){n._setStartValue(""),this.getSearcher().setValue(n.storeValue)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_STOP,function(){n._setStartValue(""),n.fireEvent(BI.MultiSelectInsertCombo.EVENT_STOP)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE,function(){this.getSearcher().hasMatched()&&n._addItem(r,!0)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM,function(){var e;this.getSearcher().hasMatched()||(n._addItem(r),e=this.getSearcher().getKeyword(),n._stopEditing(),n.fireEvent(BI.MultiSelectInsertCombo.EVENT_ADD_ITEM,e))}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING,function(e){var t=BI.last(e);0<(e=BI.initial(e||[])).length&&n._joinKeywords(e,function(){BI.isEndWithBlank(t)?(n.combo.setValue(n.storeValue),r(),n.combo.populate(),n._setStartValue("")):(n.combo.setValue(n.storeValue),r())}),n.fireEvent(BI.MultiSelectInsertCombo.EVENT_SEARCHING)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_CHANGE,function(e,t){t instanceof BI.MultiSelectBar?n._joinAll(this.getValue(),function(){r()}):n._join(this.getValue(),function(){r()}),n.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW,function(){n.numberCounter.updateSelectedValue(n.storeValue)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK,function(){n.combo.isViewVisible()||n.combo.showView()}),this.combo=BI.createWidget({type:"bi.combo",toggle:!e.allowEdit,el:this.trigger,adjustLength:1,container:e.container,popup:{type:"bi.multi_select_popup_view",ref:function(){n.popup=this,n.trigger.setAdapter(this),n.numberCounter.setAdapter(this)},listeners:[{eventName:BI.MultiSelectPopupView.EVENT_CHANGE,action:function(){n.storeValue=this.getValue(),n._adjust(function(){r()}),n.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM)}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,action:function(){n._defaultState()}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,action:function(){n.setValue(),n._defaultState()}}],itemsCreator:e.itemsCreator,valueFormatter:e.valueFormatter,itemHeight:e.itemHeight,onLoaded:function(){BI.nextTick(function(){n.combo.adjustWidth(),n.combo.adjustHeight(),n.numberCounter.adjustView(),n.trigger.getSearcher().adjustView()})}},value:e.value,hideChecker:function(e){return 0===t.element.find(e.target).length&&0===n.numberCounter.element.find(e.target).length}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){this.setValue(n.storeValue),BI.nextTick(function(){n._populate()})}),this.wants2Quit=!1,this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){n._stopEditing(),!0===n.requesting?n.wants2Quit=!0:n.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM)});var t=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});t.on(BI.TriggerIconButton.EVENT_CHANGE,function(){n.numberCounter.hideView(),n.combo.isViewVisible()?n.combo.hideView():n.combo.showView()}),this.numberCounter=BI.createWidget({type:"bi.multi_select_check_selected_switcher",masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),value:e.value}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){n.combo.isViewVisible()||n.combo.showView()}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){this.updateSelectedValue(n.storeValue)}),this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(!0===e?n.numberCounter.element.outerWidth()+8:0)})}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW,function(){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(0)})}),this.trigger.element.click(function(e){0<n.trigger.element.find(e.target).length&&n.numberCounter.hideView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:t,right:0,top:0,bottom:0},{el:{type:"bi.vertical_adapt",items:[this.numberCounter]},right:e.height,top:0,height:e.height}]})},_itemsCreator4Trigger:function(t,n){var r=this;this.options.itemsCreator(t,function(e){1===t.times&&BI.isNotNull(t.keywords)&&r.trigger.setValue(BI.deepClone(r.getValue())),n.apply(r,arguments)})},_addItem:function(e,t){var n=this,r=t?this.trigger.getSearcher().getMatchedItemValue():this.trigger.getSearcher().getKeyword();this._join({type:BI.Selection.Multi,value:[r]},function(){n.storeValue.type===BI.Selection.Multi&&BI.pushDistinct(n.storeValue.value,r),n.combo.setValue(n.storeValue),n._setStartValue(r),e(),n.populate(),n._setStartValue("")})},_stopEditing:function(){this.trigger.stopEditing(),this.numberCounter.hideView()},_defaultState:function(){this._stopEditing(),this.combo.hideView()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),o._adjust(a)})},_joinAll:function(t,c){var u=this,e=this.options;this._assertValue(t),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectInsertCombo.REQ_GET_ALL_DATA,keywords:[this.trigger.getKey()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,u.storeValue.assist&&u.storeValue.assist.push(i[t]),delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void u._adjust(c)}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&(u.storeValue.assist&&u.storeValue.assist.push(a[n[e]]),delete a[n[e]]),BI.isNull(o[n[e]])&&(BI.remove(u.storeValue.assist,t),s.push(t))}),u.storeValue.value=s.concat(BI.values(a)),u._adjust(c)})},_adjust:function(e){var t=this;this.options;!function(){!0===t.wants2Quit&&(t.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM),t.wants2Quit=!1);t.requesting=!1}(),e()},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),BI.remove(n.storeValue.assist,t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,n.storeValue.assist&&n.storeValue.assist.push(r[t]),delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void n._adjust(t)}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.popup.setStartValue(e)},_populate:function(){this.combo.populate.apply(this.combo,arguments)},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue=e||{},this._assertValue(this.storeValue),this.combo.setValue(this.storeValue),this.numberCounter.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue)},populate:function(){this._populate.apply(this,arguments),this.numberCounter.populateSwitcher.apply(this.numberCounter,arguments)}}),BI.extend(BI.MultiSelectInsertCombo,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.MultiSelectInsertCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiSelectInsertCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiSelectInsertCombo.EVENT_STOP="EVENT_STOP",BI.MultiSelectInsertCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.MultiSelectInsertCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.MultiSelectInsertCombo.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.shortcut("bi.multi_select_insert_combo",BI.MultiSelectInsertCombo)},function(e,t){BI.MultiSelectInsertNoBarCombo=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiSelectInsertNoBarCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-insert-combo-no-bar",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,itemsHeight:24,height:24,attributes:{tabIndex:0}})},_init:function(){BI.MultiSelectInsertNoBarCombo.superclass._init.apply(this,arguments);var n=this,e=this.options,r=function(){BI.isKey(n._startValue)&&(n.storeValue.type===BI.Selection.All?(BI.remove(n.storeValue.value,n._startValue),n.storeValue.assist=n.storeValue.assist||[],n.storeValue.assist.pushDistinct(n._startValue)):(BI.pushDistinct(n.storeValue.value,n._startValue),BI.remove(n.storeValue.assist,n._startValue))),n.trigger.getSearcher().setState(n.storeValue),n.numberCounter.setButtonChecked(n.storeValue)};this.storeValue={type:BI.Selection.Multi,value:e.value||[]},this.requesting=!1,this.trigger=BI.createWidget({type:"bi.multi_select_insert_trigger",height:e.height,text:e.text,masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),itemHeight:e.itemHeight,value:{type:BI.Selection.Multi,value:e.value}}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_START,function(){n._setStartValue(""),this.getSearcher().setValue(n.storeValue)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_STOP,function(){n._setStartValue("")}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE,function(){this.getSearcher().hasMatched()&&n._addItem(r,!0)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM,function(){var e;this.getSearcher().hasMatched()||(n._addItem(r),e=this.getSearcher().getKeyword(),n._stopEditing(),n.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_ADD_ITEM,e))}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING,function(e){var t=BI.last(e);0<(e=BI.initial(e||[])).length&&n._joinKeywords(e,function(){BI.isEndWithBlank(t)?(n.combo.setValue(n.storeValue),r(),n.combo.populate(),n._setStartValue("")):(n.combo.setValue(n.storeValue),r())})}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_CHANGE,function(e,t){t instanceof BI.MultiSelectBar?n._joinAll(this.getValue(),function(){r()}):n._join(this.getValue(),function(){r()})}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW,function(){n.numberCounter.updateSelectedValue(n.storeValue)}),this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK,function(){n.combo.isViewVisible()||n.combo.showView()}),this.combo=BI.createWidget({type:"bi.combo",toggle:!1,container:e.container,el:this.trigger,adjustLength:1,popup:{type:"bi.multi_select_no_bar_popup_view",ref:function(){n.popup=this,n.trigger.setAdapter(this),n.numberCounter.setAdapter(this)},listeners:[{eventName:BI.MultiSelectPopupView.EVENT_CHANGE,action:function(){n.storeValue=this.getValue(),n._adjust(function(){r()})}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,action:function(){n._defaultState()}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,action:function(){n.setValue(),n._defaultState()}}],itemsCreator:e.itemsCreator,itemHeight:e.itemHeight,valueFormatter:e.valueFormatter,onLoaded:function(){BI.nextTick(function(){n.combo.adjustWidth(),n.combo.adjustHeight(),n.numberCounter.adjustView(),n.trigger.getSearcher().adjustView()})}},value:{type:BI.Selection.Multi,value:e.value},hideChecker:function(e){return 0===t.element.find(e.target).length&&0===n.numberCounter.element.find(e.target).length}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){this.setValue(n.storeValue),BI.nextTick(function(){n._populate()})}),this.wants2Quit=!1,this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){n._stopEditing(),!0===n.requesting?n.wants2Quit=!0:n.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM)});var t=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});t.on(BI.TriggerIconButton.EVENT_CHANGE,function(){n.numberCounter.hideView(),n.combo.isViewVisible()?n.combo.hideView():n.combo.showView()}),this.numberCounter=BI.createWidget({type:"bi.multi_select_check_selected_switcher",masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,itemsCreator:BI.bind(this._itemsCreator4Trigger,this),value:{type:BI.Selection.Multi,value:e.value}}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){n.combo.isViewVisible()||n.combo.showView()}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){this.updateSelectedValue(n.storeValue)}),this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(!0===e?n.numberCounter.element.outerWidth()+8:0)})}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW,function(){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(0)})}),this.trigger.element.click(function(e){0<n.trigger.element.find(e.target).length&&n.numberCounter.hideView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:t,right:0,top:0,bottom:0},{el:{type:"bi.vertical_adapt",items:[this.numberCounter]},right:e.height,top:0,height:e.height}]})},_itemsCreator4Trigger:function(t,n){var r=this;this.options.itemsCreator(t,function(e){1===t.times&&BI.isNotNull(t.keywords)&&r.trigger.setValue(BI.deepClone(r.storeValue)),n.apply(r,arguments)})},_addItem:function(e,t){var n=this,r=t?this.trigger.getSearcher().getMatchedItemValue():this.trigger.getSearcher().getKeyword();this._join({type:BI.Selection.Multi,value:[r]},function(){n.storeValue.type===BI.Selection.Multi&&BI.pushDistinct(n.storeValue.value,r),n.combo.setValue(n.storeValue),n._setStartValue(r),e(),n.populate(),n._setStartValue("")})},_stopEditing:function(){this.trigger.stopEditing(),this.numberCounter.hideView()},_defaultState:function(){this._stopEditing(),this.combo.hideView()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectInsertNoBarCombo.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),o._adjust(a)})},_joinAll:function(t,c){var u=this,e=this.options;this._assertValue(t),this.requesting=!0,e.itemsCreator({type:BI.MultiSelectInsertNoBarCombo.REQ_GET_ALL_DATA,keywords:[this.trigger.getKey()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,u.storeValue.assist&&u.storeValue.assist.push(i[t]),delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void u._adjust(c)}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&(u.storeValue.assist&&u.storeValue.assist.push(a[n[e]]),delete a[n[e]]),BI.isNull(o[n[e]])&&(BI.remove(u.storeValue.assist,t),s.push(t))}),u.storeValue.value=s.concat(BI.values(a)),u._adjust(c)})},_adjust:function(e){var t=this;this.options;!function(){!0===t.wants2Quit&&(t.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM),t.wants2Quit=!1);t.requesting=!1}(),e()},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),BI.remove(n.storeValue.assist,t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,n.storeValue.assist&&n.storeValue.assist.push(r[t]),delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void n._adjust(t)}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.popup.setStartValue(e)},_populate:function(){this.combo.populate.apply(this.combo,arguments)},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue={type:BI.Selection.Multi,value:e||[]},this.combo.setValue(this.storeValue),this.numberCounter.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue.value)},populate:function(){this._populate.apply(this,arguments),this.numberCounter.populateSwitcher.apply(this.numberCounter,arguments)}}),BI.extend(BI.MultiSelectInsertNoBarCombo,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.MultiSelectInsertNoBarCombo.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.shortcut("bi.multi_select_insert_no_bar_combo",BI.MultiSelectInsertNoBarCombo)},function(e,t){BI.MultiSelectInsertTrigger=BI.inherit(BI.Trigger,{constants:{height:14,rgap:4,lgap:4},_defaultConfig:function(){return BI.extend(BI.MultiSelectInsertTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-trigger bi-border bi-border-radius",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,itemHeight:24,searcher:{},switcher:{},adapter:null,masker:{},allowEdit:!0})},_init:function(){BI.MultiSelectInsertTrigger.superclass._init.apply(this,arguments);var e=this,t=this.options;t.height&&this.setHeight(t.height-2),this.searcher=BI.createWidget(t.searcher,{type:"bi.multi_select_insert_searcher",height:t.height,text:t.text,itemsCreator:t.itemsCreator,valueFormatter:t.valueFormatter,itemHeight:t.itemHeight,watermark:t.watermark,popup:{},adapter:t.adapter,masker:t.masker,value:t.value}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_START,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_START)}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM)}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_PAUSE,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_PAUSE)}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_SEARCHING,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_SEARCHING,arguments)}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_STOP,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_STOP)}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_CHANGE,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_CHANGE,arguments)}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_BLUR,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_BLUR)}),this.searcher.on(BI.MultiSelectInsertSearcher.EVENT_FOCUS,function(){e.fireEvent(BI.MultiSelectInsertTrigger.EVENT_FOCUS)}),this.wrapNumberCounter=BI.createWidget({type:"bi.layout"}),this.wrapper=BI.createWidget({type:"bi.htape",element:this,items:[{el:this.searcher,width:"fill"},{el:this.wrapNumberCounter,width:0},{el:BI.createWidget(),width:24}]}),t.allowEdit||BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.text",title:function(){return e.searcher.getState()}},left:0,right:24,top:0,bottom:0}]})},refreshPlaceHolderWidth:function(e){this.wrapper.attr("items")[1].width=e,this.wrapper.resize()},getSearcher:function(){return this.searcher},stopEditing:function(){this.searcher.stopSearch()},setAdapter:function(e){this.searcher.setAdapter(e)},setValue:function(e){this.searcher.setValue(e)},getKey:function(){return this.searcher.getKey()},getValue:function(){return this.searcher.getValue()}}),BI.MultiSelectInsertTrigger.EVENT_TRIGGER_CLICK="EVENT_TRIGGER_CLICK",BI.MultiSelectInsertTrigger.EVENT_COUNTER_CLICK="EVENT_COUNTER_CLICK",BI.MultiSelectInsertTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.MultiSelectInsertTrigger.EVENT_START="EVENT_START",BI.MultiSelectInsertTrigger.EVENT_STOP="EVENT_STOP",BI.MultiSelectInsertTrigger.EVENT_PAUSE="EVENT_PAUSE",BI.MultiSelectInsertTrigger.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW="EVENT_BEFORE_COUNTER_POPUPVIEW",BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.MultiSelectInsertTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.MultiSelectInsertTrigger.EVENT_BLUR="EVENT_BLUR",BI.shortcut("bi.multi_select_insert_trigger",BI.MultiSelectInsertTrigger)},function(e,t){BI.MultiSelectLoader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-loader",logic:{dynamic:!0},el:{height:400},valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn,itemHeight:24})},_init:function(){BI.MultiSelectLoader.superclass._init.apply(this,arguments);var s=this,c=this.options,u=!1;this.storeValue=c.value||{},this._assertValue(this.storeValue),this.button_group=BI.createWidget({type:"bi.select_list",logic:c.logic,toolbar:{type:"bi.multi_select_bar",cls:"bi-list-item-active",iconWrapperWidth:36},el:BI.extend({onLoaded:c.onLoaded,el:{type:"bi.loader",isDefaultInit:!1,logic:{dynamic:!0,scrolly:!0},el:{chooseType:BI.ButtonGroup.CHOOSE_TYPE_MULTI,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}]}}},c.el),itemsCreator:function(i,a){var o=s._startValue;s.storeValue&&(i=BI.extend(i||{},{selectedValues:BI.isKey(o)&&s.storeValue.type===BI.Selection.Multi?s.storeValue.value.concat(o):s.storeValue.value})),c.itemsCreator(i,function(e){u=e.hasNext;var t,n,r=[];1===i.times&&s.storeValue&&(t=BI.map(s.storeValue.value,function(e,t){var n=c.valueFormatter(t)||t;return{text:n,value:t,title:n,selected:s.storeValue.type===BI.Selection.Multi}}),BI.isKey(s._startValue)&&!BI.contains(s.storeValue.value,s._startValue)&&(n=c.valueFormatter(o)||o,t.unshift({text:n,value:o,title:n,selected:!0})),r=s._createItems(t)),a(r.concat(s._createItems(e.items)),e.keyword||""),1===i.times&&s.storeValue&&(BI.isKey(o)&&(s.storeValue.type===BI.Selection.All?BI.remove(s.storeValue.value,o):BI.pushDistinct(s.storeValue.value,o)),s.setValue(s.storeValue)),1===i.times&&s._scrollToTop()})},hasNext:function(){return u},value:this.storeValue}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Top),BI.extend({scrolly:!0,vgap:5},c.logic,{items:BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Top,this.button_group)})))),this.button_group.on(BI.Controller.EVENT_CHANGE,function(){s.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button_group.on(BI.SelectList.EVENT_CHANGE,function(){s.fireEvent(BI.MultiSelectLoader.EVENT_CHANGE,arguments)})},_createItems:function(e){return BI.createItems(e,{type:"bi.multi_select_item",logic:this.options.logic,cls:"bi-list-item-active",height:this.options.itemHeight,selected:this.isAllSelected(),iconWrapperWidth:36})},_scrollToTop:function(){var e=this;BI.delay(function(){e.button_group.element.scrollTop(0)},30)},isAllSelected:function(){return this.button_group.isAllSelected()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},setStartValue:function(e){this._startValue=e},setValue:function(e){this.storeValue=e||{},this._assertValue(this.storeValue),this.button_group.setValue(this.storeValue)},getValue:function(){return this.button_group.getValue()},getAllButtons:function(){return this.button_group.getAllButtons()},empty:function(){this.button_group.empty()},populate:function(e){arguments[0]=this._createItems(e),this.button_group.populate.apply(this.button_group,arguments)},resetHeight:function(e){this.button_group.resetHeight(e-10)},resetWidth:function(e){this.button_group.resetWidth(e)}}),BI.MultiSelectLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_loader",BI.MultiSelectLoader)},function(e,t){BI.MultiSelectNoBarLoader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectNoBarLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-loader",logic:{dynamic:!0},el:{height:400},valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,itemHeight:24,onLoaded:BI.emptyFn})},_init:function(){BI.MultiSelectNoBarLoader.superclass._init.apply(this,arguments);var s=this,c=this.options,u=!1;this.storeValue=c.value||{},this._assertValue(this.storeValue),this.button_group=BI.createWidget(BI.extend({type:"bi.list_pane",onLoaded:c.onLoaded,el:{type:"bi.loader",isDefaultInit:!1,logic:{dynamic:!0,scrolly:!0},el:{chooseType:BI.ButtonGroup.CHOOSE_TYPE_MULTI,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}]}},itemsCreator:function(i,a){var o=s._startValue;s.storeValue&&(i=BI.extend(i||{},{selectedValues:BI.isKey(o)&&s.storeValue.type===BI.Selection.Multi?s.storeValue.value.concat(o):s.storeValue.value})),c.itemsCreator(i,function(e){u=e.hasNext;var t,n,r=[];1===i.times&&s.storeValue&&(t=BI.map(s.storeValue.value,function(e,t){var n=c.valueFormatter(t)||t;return{text:n,value:t,title:n,selected:s.storeValue.type===BI.Selection.Multi}}),BI.isKey(s._startValue)&&!BI.contains(s.storeValue.value,s._startValue)&&(n=c.valueFormatter(o)||o,t.unshift({text:n,value:o,title:n,selected:!0})),r=s._createItems(t)),a(r.concat(s._createItems(e.items)),e.keyword||""),1===i.times&&s.storeValue&&(BI.isKey(o)&&(s.storeValue.type===BI.Selection.All?BI.remove(s.storeValue.value,o):BI.pushDistinct(s.storeValue.value,o)),s.setValue(s.storeValue)),1===i.times&&s._scrollToTop()})},hasNext:function(){return u},value:this.storeValue},c.el)),BI.createWidget({type:"bi.vertical",element:this,items:[this.button_group],vgap:5}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(){s.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button_group.on(BI.SelectList.EVENT_CHANGE,function(){s.fireEvent(BI.MultiSelectNoBarLoader.EVENT_CHANGE,arguments)})},_createItems:function(e){return BI.createItems(e,{type:"bi.multi_select_item",cls:"bi-list-item-active",logic:this.options.logic,height:this.options.itemHeight,iconWrapperWidth:36})},_scrollToTop:function(){var e=this;BI.delay(function(){e.button_group.element.scrollTop(0)},30)},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},setStartValue:function(e){this._startValue=e},setValue:function(e){this.storeValue=e||{},this._assertValue(this.storeValue),this.button_group.setValue(this.storeValue.value)},getValue:function(){return{type:BI.Selection.Multi,value:this.button_group.getValue()}},getAllButtons:function(){return this.button_group.getAllButtons()},empty:function(){this.button_group.empty()},populate:function(e){arguments[0]=this._createItems(e),this.button_group.populate.apply(this.button_group,arguments)},resetHeight:function(e){this.button_group.element.css({"max-height":e+"px"})},resetWidth:function(){}}),BI.MultiSelectNoBarLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_no_bar_loader",BI.MultiSelectNoBarLoader)},function(e,t){BI.MultiSelectPopupView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectPopupView.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-popup-view",maxWidth:"auto",minWidth:135,maxHeight:400,valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn,itemHeight:24})},_init:function(){BI.MultiSelectPopupView.superclass._init.apply(this,arguments);var t=this,e=this.options;this.loader=BI.createWidget({type:"bi.multi_select_loader",itemsCreator:e.itemsCreator,itemHeight:e.itemHeight,valueFormatter:e.valueFormatter,onLoaded:e.onLoaded,value:e.value}),this.popupView=BI.createWidget({type:"bi.multi_popup_view",stopPropagation:!1,maxWidth:e.maxWidth,minWidth:e.minWidth,maxHeight:e.maxHeight,element:this,buttons:[BI.i18nText("BI-Basic_Clears"),BI.i18nText("BI-Basic_Sure")],el:this.loader,value:e.value}),this.popupView.on(BI.MultiPopupView.EVENT_CHANGE,function(){t.fireEvent(BI.MultiSelectPopupView.EVENT_CHANGE)}),this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON,function(e){switch(e){case 0:t.fireEvent(BI.MultiSelectPopupView.EVENT_CLICK_CLEAR);break;case 1:t.fireEvent(BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM)}})},isAllSelected:function(){return this.loader.isAllSelected()},setStartValue:function(e){this.loader.setStartValue(e)},setValue:function(e){this.popupView.setValue(e)},getValue:function(){return this.popupView.getValue()},populate:function(e){this.popupView.populate.apply(this.popupView,arguments)},resetHeight:function(e){this.popupView.resetHeight(e)},resetWidth:function(e){this.popupView.resetWidth(e)}}),BI.MultiSelectPopupView.EVENT_CHANGE="EVENT_CHANGE",BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM="EVENT_CLICK_CONFIRM",BI.MultiSelectPopupView.EVENT_CLICK_CLEAR="EVENT_CLICK_CLEAR",BI.shortcut("bi.multi_select_popup_view",BI.MultiSelectPopupView)},function(e,t){BI.MultiSelectNoBarPopupView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectNoBarPopupView.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-popup-view",maxWidth:"auto",minWidth:135,maxHeight:400,valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,itemHeight:24,onLoaded:BI.emptyFn})},_init:function(){BI.MultiSelectNoBarPopupView.superclass._init.apply(this,arguments);var t=this,e=this.options;this.loader=BI.createWidget({type:"bi.multi_select_no_bar_loader",itemsCreator:e.itemsCreator,itemHeight:e.itemHeight,valueFormatter:e.valueFormatter,onLoaded:e.onLoaded,value:e.value}),this.popupView=BI.createWidget({type:"bi.multi_popup_view",stopPropagation:!1,maxWidth:e.maxWidth,minWidth:e.minWidth,maxHeight:e.maxHeight,element:this,buttons:[BI.i18nText("BI-Basic_Clears"),BI.i18nText("BI-Basic_Sure")],el:this.loader,value:e.value}),this.popupView.on(BI.MultiPopupView.EVENT_CHANGE,function(){t.fireEvent(BI.MultiSelectNoBarPopupView.EVENT_CHANGE)}),this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON,function(e){switch(e){case 0:t.fireEvent(BI.MultiSelectNoBarPopupView.EVENT_CLICK_CLEAR);break;case 1:t.fireEvent(BI.MultiSelectNoBarPopupView.EVENT_CLICK_CONFIRM)}})},setStartValue:function(e){this.loader.setStartValue(e)},setValue:function(e){this.popupView.setValue(e)},getValue:function(){return this.popupView.getValue()},populate:function(e){this.popupView.populate.apply(this.popupView,arguments)},resetHeight:function(e){this.popupView.resetHeight(e)},resetWidth:function(e){this.popupView.resetWidth(e)}}),BI.MultiSelectNoBarPopupView.EVENT_CHANGE="EVENT_CHANGE",BI.MultiSelectNoBarPopupView.EVENT_CLICK_CONFIRM="EVENT_CLICK_CONFIRM",BI.MultiSelectNoBarPopupView.EVENT_CLICK_CLEAR="EVENT_CLICK_CLEAR",BI.shortcut("bi.multi_select_no_bar_popup_view",BI.MultiSelectNoBarPopupView)},function(e,t){BI.MultiSelectTrigger=BI.inherit(BI.Trigger,{constants:{height:14,rgap:4,lgap:4},_defaultConfig:function(){return BI.extend(BI.MultiSelectTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-trigger bi-border bi-border-radius",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,searcher:{},switcher:{},adapter:null,masker:{},allowEdit:!0,itemHeight:24})},_init:function(){BI.MultiSelectTrigger.superclass._init.apply(this,arguments);var e=this,t=this.options;t.height&&this.setHeight(t.height-2),this.searcher=BI.createWidget(t.searcher,{type:"bi.multi_select_searcher",height:t.height,text:t.text,itemsCreator:t.itemsCreator,itemHeight:t.itemHeight,valueFormatter:t.valueFormatter,watermark:t.watermark,popup:{},adapter:t.adapter,masker:t.masker,value:t.value}),this.searcher.on(BI.MultiSelectSearcher.EVENT_START,function(){e.fireEvent(BI.MultiSelectTrigger.EVENT_START)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_PAUSE,function(){e.fireEvent(BI.MultiSelectTrigger.EVENT_PAUSE)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_SEARCHING,function(){e.fireEvent(BI.MultiSelectTrigger.EVENT_SEARCHING,arguments)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_STOP,function(){e.fireEvent(BI.MultiSelectTrigger.EVENT_STOP)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_CHANGE,function(){e.fireEvent(BI.MultiSelectTrigger.EVENT_CHANGE,arguments)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_BLUR,function(){e.fireEvent(BI.MultiSelectTrigger.EVENT_BLUR)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_FOCUS,function(){e.fireEvent(BI.MultiSelectTrigger.EVENT_FOCUS)}),this.wrapNumberCounter=BI.createWidget({type:"bi.layout"}),this.wrapper=BI.createWidget({type:"bi.htape",element:this,items:[{el:this.searcher,width:"fill"},{el:this.wrapNumberCounter,width:0},{el:BI.createWidget(),width:24}]}),t.allowEdit||BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.text",title:function(){return e.searcher.getState()}},left:0,right:24,top:0,bottom:0}]})},refreshPlaceHolderWidth:function(e){this.wrapper.attr("items")[1].width=e,this.wrapper.resize()},getSearcher:function(){return this.searcher},stopEditing:function(){this.searcher.stopSearch()},setAdapter:function(e){this.searcher.setAdapter(e)},setValue:function(e){this.searcher.setValue(e)},getKey:function(){return this.searcher.getKey()},getValue:function(){return this.searcher.getValue()}}),BI.MultiSelectTrigger.EVENT_TRIGGER_CLICK="EVENT_TRIGGER_CLICK",BI.MultiSelectTrigger.EVENT_COUNTER_CLICK="EVENT_COUNTER_CLICK",BI.MultiSelectTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.MultiSelectTrigger.EVENT_START="EVENT_START",BI.MultiSelectTrigger.EVENT_STOP="EVENT_STOP",BI.MultiSelectTrigger.EVENT_PAUSE="EVENT_PAUSE",BI.MultiSelectTrigger.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW="EVENT_BEFORE_COUNTER_POPUPVIEW",BI.MultiSelectTrigger.EVENT_BLUR="EVENT_BLUR",BI.MultiSelectTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.shortcut("bi.multi_select_trigger",BI.MultiSelectTrigger)},function(e,t){BI.MultiSelectSearchInsertPane=BI.inherit(BI.Widget,{constants:{height:24,lgap:10,tgap:5},_defaultConfig:function(){return BI.extend(BI.MultiSelectSearchInsertPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-search-pane bi-card",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,keywordGetter:BI.emptyFn,itemHeight:24})},_init:function(){BI.MultiSelectSearchInsertPane.superclass._init.apply(this,arguments);var n=this,r=this.options;this.tooltipClick=BI.createWidget({type:"bi.label",invisible:!0,text:BI.i18nText("BI-Click_Blank_To_Select"),cls:"multi-select-toolbar",height:this.constants.height}),this.addNotMatchTip=BI.createWidget({type:"bi.text_button",invisible:!0,text:BI.i18nText("BI-Basic_Click_To_Add_Text",""),height:this.constants.height,cls:"bi-high-light",hgap:5,handler:function(){n.fireEvent(BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,r.keywordGetter())}}),this.loader=BI.createWidget({type:"bi.multi_select_search_loader",keywordGetter:r.keywordGetter,valueFormatter:r.valueFormatter,itemsCreator:function(e,t){r.itemsCreator.apply(n,[e,function(e){t(e),n.setKeyword(r.keywordGetter())}])},itemHeight:r.itemHeight,value:r.value}),this.loader.on(BI.Controller.EVENT_CHANGE,function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.resizer=BI.createWidget({type:"bi.vtape",element:this,items:[{type:"bi.vertical",items:[this.tooltipClick,this.addNotMatchTip],height:this.constants.height},{el:this.loader}]})},setKeyword:function(n){var r=this.options,e=BI.some(this.loader.getAllButtons(),function(e,t){return n===(r.valueFormatter(t.getValue())||t.getValue())}),t=0<this.loader.getAllButtons().length&&e;this.tooltipClick.setVisible(t),this.addNotMatchTip.setVisible(!t),t||this.addNotMatchTip.setText(BI.i18nText("BI-Basic_Click_To_Add_Text",n))},getMatchedItemValue:function(){var r,i=this.options;return BI.some(this.loader.getAllButtons(),function(e,t){var n=t.getValue();if(i.keywordGetter()===(i.valueFormatter(n)||n))return r=n,!0}),r},isAllSelected:function(){return this.loader.isAllSelected()},hasMatched:function(){return this.tooltipClick.isVisible()},setValue:function(e){this.loader.setValue(e)},getValue:function(){return this.loader.getValue()},empty:function(){this.loader.empty()},populate:function(e){this.loader.populate.apply(this.loader,arguments)}}),BI.MultiSelectSearchInsertPane.EVENT_CHANGE="EVENT_CHANGE",BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.shortcut("bi.multi_select_search_insert_pane",BI.MultiSelectSearchInsertPane)},function(e,t){BI.MultiSelectSearchLoader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectSearchLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-search-loader",itemsCreator:BI.emptyFn,keywordGetter:BI.emptyFn,valueFormatter:BI.emptyFn,itemHeight:24})},_init:function(){BI.MultiSelectSearchLoader.superclass._init.apply(this,arguments);var o=this,s=this.options,c=!1;this.storeValue=BI.deepClone(s.value),this.button_group=BI.createWidget({type:"bi.select_list",toolbar:{type:"bi.multi_select_bar",cls:"bi-list-item-active",iconWrapperWidth:36},element:this,logic:{dynamic:!1},value:s.value,el:{tipText:BI.i18nText("BI-No_Select"),el:{type:"bi.loader",isDefaultInit:!1,logic:{dynamic:!0,scrolly:!0},el:{chooseType:BI.ButtonGroup.CHOOSE_TYPE_MULTI,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}]}}},itemsCreator:function(i,a){o.storeValue&&(i=BI.extend(i||{},{selectedValues:o.storeValue.value})),s.itemsCreator(i,function(e){var t=e.keyword=s.keywordGetter();c=e.hasNext;var n,r=[];1===i.times&&o.storeValue&&(n=o._filterValues(o.storeValue),r=o._createItems(n)),a(r.concat(o._createItems(e.items)),t),1===i.times&&o.storeValue&&o.setValue(o.storeValue)})},hasNext:function(){return c}}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(){o.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button_group.on(BI.SelectList.EVENT_CHANGE,function(){o.fireEvent(BI.MultiSelectSearchLoader.EVENT_CHANGE,arguments)})},_createItems:function(e){return BI.createItems(e,{type:"bi.multi_select_item",logic:{dynamic:!1},height:this.options.itemHeight,selected:this.isAllSelected(),cls:"bi-list-item-active",iconWrapperWidth:36})},isAllSelected:function(){return this.button_group.isAllSelected()},_filterValues:function(n){var e,r=this.options,t=r.keywordGetter(),i=BI.deepClone(n.value)||[],a=BI.map(i,function(e,t){return{text:r.valueFormatter(t)||t,value:t}});return BI.isKey(t)&&(i=(e=BI.Func.getSearchResult(a,t)).match.concat(e.find)),BI.map(i,function(e,t){return{text:t.text,title:t.text,value:t.value,selected:n.type===BI.Selection.All}})},setValue:function(e){this.storeValue=BI.deepClone(e),this.button_group.setValue(e)},getValue:function(){return this.button_group.getValue()},getAllButtons:function(){return this.button_group.getAllButtons()},empty:function(){this.button_group.empty()},populate:function(e){this.button_group.populate.apply(this.button_group,arguments)},resetHeight:function(e){this.button_group.resetHeight(e)},resetWidth:function(e){this.button_group.resetWidth(e)}}),BI.MultiSelectSearchLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_search_loader",BI.MultiSelectSearchLoader)},function(e,t){BI.MultiSelectSearchPane=BI.inherit(BI.Widget,{constants:{height:24,lgap:10,tgap:5},_defaultConfig:function(){return BI.extend(BI.MultiSelectSearchPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-search-pane bi-card",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,keywordGetter:BI.emptyFn,itemHeight:24})},_init:function(){BI.MultiSelectSearchPane.superclass._init.apply(this,arguments);var n=this,r=this.options;this.tooltipClick=BI.createWidget({type:"bi.label",invisible:!0,text:BI.i18nText("BI-Click_Blank_To_Select"),cls:"multi-select-toolbar",height:this.constants.height}),this.loader=BI.createWidget({type:"bi.multi_select_search_loader",keywordGetter:r.keywordGetter,valueFormatter:r.valueFormatter,itemsCreator:function(e,t){r.itemsCreator.apply(n,[e,function(e){t(e),n.setKeyword(r.keywordGetter())}])},itemHeight:r.itemHeight,value:r.value}),this.loader.on(BI.Controller.EVENT_CHANGE,function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.resizer=BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.tooltipClick,height:0},{el:this.loader}]}),this.tooltipClick.setVisible(!1)},setKeyword:function(e){var t,n=this.options,r=0<this.loader.getAllButtons().length&&(t=this.loader.getAllButtons()[0])&&e===(n.valueFormatter(t.getValue())||t.getValue());r!==this.tooltipClick.isVisible()&&(this.tooltipClick.setVisible(r),this.resizer.attr("items")[0].height=r?this.constants.height:0,this.resizer.resize())},getMatchedItemValue:function(){var r,i=this.options;return BI.some(this.loader.getAllButtons(),function(e,t){var n=t.getValue();if(i.keywordGetter()===(i.valueFormatter(n)||n))return r=n,!0}),r},isAllSelected:function(){return this.loader.isAllSelected()},hasMatched:function(){return this.tooltipClick.isVisible()},setValue:function(e){this.loader.setValue(e)},getValue:function(){return this.loader.getValue()},empty:function(){this.loader.empty()},populate:function(e){this.loader.populate.apply(this.loader,arguments)}}),BI.MultiSelectSearchPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_search_pane",BI.MultiSelectSearchPane)},function(e,t){BI.MultiSelectCheckSelectedButton=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiSelectCheckSelectedButton.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-check-selected-button",itemsCreator:BI.emptyFn})},_init:function(){BI.MultiSelectCheckSelectedButton.superclass._init.apply(this,arguments);var e=this,t=this.options;this.numberCounter=BI.createWidget({type:"bi.text_button",element:this,hgap:4,text:"0",textAlign:"center",textHeight:16,cls:"bi-high-light-background count-tip"}),this.numberCounter.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.numberCounter.on(BI.TextButton.EVENT_CHANGE,function(){e.fireEvent(BI.MultiSelectCheckSelectedButton.EVENT_CHANGE,arguments)}),this.numberCounter.element.hover(function(){e.numberCounter.setTag(e.numberCounter.getText()),e.numberCounter.setText(BI.i18nText("BI-Check_Selected"))},function(){e.numberCounter.setText(e.numberCounter.getTag())}),this.setVisible(!1),BI.isNotNull(t.value)&&this.setValue(t.value)},_populate:function(n){var r=this,e=this.options;n.type!==BI.Selection.All?BI.nextTick(function(){r.numberCounter.setText(n.value.length),r.setVisible(0<n.value.length)}):e.itemsCreator({type:BI.MultiSelectCombo.REQ_GET_DATA_LENGTH},function(e){var t=e.count-n.value.length;BI.nextTick(function(){r.numberCounter.setText(t),r.setVisible(0<t)})})},_assertValue:function(e){return(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[]),e},setValue:function(e){e=this._assertValue(e),this.options.value=e,this._populate(e)},populate:function(){this._populate(this._assertValue(this.options.value))},getValue:function(){}}),BI.MultiSelectCheckSelectedButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_check_selected_button",BI.MultiSelectCheckSelectedButton)},function(e,t){BI.MultiSelectEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectEditor.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-editor",el:{},watermark:BI.i18nText("BI-Basic_Search")})},_init:function(){BI.MultiSelectEditor.superclass._init.apply(this,arguments);var e=this,t=this.options;this.editor=BI.createWidget(t.el,{type:"bi.state_editor",element:this,height:t.height,watermark:t.watermark,allowBlank:!0,value:t.value,defaultText:t.text,text:t.text,tipType:t.tipType,warningTitle:t.warningTitle}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.StateEditor.EVENT_PAUSE,function(){e.fireEvent(BI.MultiSelectEditor.EVENT_PAUSE)}),this.editor.on(BI.StateEditor.EVENT_FOCUS,function(){e.fireEvent(BI.MultiSelectEditor.EVENT_FOCUS)}),this.editor.on(BI.StateEditor.EVENT_BLUR,function(){e.fireEvent(BI.MultiSelectEditor.EVENT_BLUR)})},focus:function(){this.editor.focus()},blur:function(){this.editor.blur()},setState:function(e){this.editor.setState(e)},setValue:function(e){this.editor.setValue(e)},setTipType:function(e){this.editor.setTipType(e)},getValue:function(){var e=this.editor.getState();return BI.isArray(e)&&0<e.length?e[e.length-1]:""},getState:function(){return this.editor.getText()},getKeywords:function(){var e=this.editor.getLastChangedValue(),t=e.match(/[\S]+/g);return BI.isEndWithBlank(e)?t.concat([" "]):t},populate:function(e){}}),BI.MultiSelectEditor.EVENT_FOCUS="EVENT_FOCUS",BI.MultiSelectEditor.EVENT_BLUR="EVENT_BLUR",BI.MultiSelectEditor.EVENT_PAUSE="EVENT_PAUSE",BI.shortcut("bi.multi_select_editor",BI.MultiSelectEditor)},function(e,t){BI.MultiSelectInsertSearcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectInsertSearcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-searcher",itemsCreator:BI.emptyFn,itemHeight:24,el:{},popup:{},valueFormatter:BI.emptyFn,adapter:null,masker:{},text:BI.i18nText("BI-Basic_Please_Select")})},_init:function(){BI.MultiSelectInsertSearcher.superclass._init.apply(this,arguments);var r=this,i=this.options;this.editor=BI.createWidget(i.el,{type:"bi.multi_select_editor",watermark:i.watermark,height:i.height,text:i.text,listeners:[{eventName:BI.MultiSelectEditor.EVENT_FOCUS,action:function(){r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_FOCUS)}},{eventName:BI.MultiSelectEditor.EVENT_BLUR,action:function(){r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_BLUR)}}]}),this.searcher=BI.createWidget({type:"bi.searcher",allowSearchBlank:!1,element:this,height:i.height,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},el:this.editor,popup:BI.extend({type:"bi.multi_select_search_insert_pane",valueFormatter:i.valueFormatter,keywordGetter:function(){return r.editor.getValue()},itemsCreator:function(e,t){var n=r.editor.getValue();e.keywords=[n],this.setKeyword(n),i.itemsCreator(e,t)},itemHeight:i.itemHeight,value:i.value,listeners:[{eventName:BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,action:function(){r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM)}}]},i.popup),adapter:i.adapter,masker:i.masker}),this.searcher.on(BI.Searcher.EVENT_START,function(){r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_START)}),this.searcher.on(BI.Searcher.EVENT_PAUSE,function(){this.hasMatched(),r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_PAUSE)}),this.searcher.on(BI.Searcher.EVENT_STOP,function(){r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_STOP)}),this.searcher.on(BI.Searcher.EVENT_CHANGE,function(){r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_CHANGE,arguments)}),this.searcher.on(BI.Searcher.EVENT_SEARCHING,function(){var e=this.getKeywords();r.fireEvent(BI.MultiSelectInsertSearcher.EVENT_SEARCHING,e)}),BI.isNotNull(i.value)&&this.setState(i.value)},adjustView:function(){this.searcher.adjustView()},isSearching:function(){return this.searcher.isSearching()},stopSearch:function(){this.searcher.stopSearch()},getKeyword:function(){return this.editor.getValue()},hasMatched:function(){return this.searcher.hasMatched()},hasChecked:function(){return this.searcher.getView()&&this.searcher.getView().hasChecked()},setAdapter:function(e){this.searcher.setAdapter(e)},setState:function(e){var n,r=this.options;(e=e||{}).value||(e.value=[]),e.type===BI.Selection.All?0===e.value.length?this.editor.setState(BI.Selection.All):BI.size(e.assist)<=20?(n="",BI.each(e.assist,function(e,t){n+=0===e?""+(r.valueFormatter(t+"")||t):","+(r.valueFormatter(t+"")||t)}),this.editor.setState(n)):this.editor.setState(BI.Selection.Multi):0===e.value.length?this.editor.setState(BI.Selection.None):BI.size(e.value)<=20?(n="",BI.each(e.value,function(e,t){n+=0===e?""+(r.valueFormatter(t+"")||t):","+(r.valueFormatter(t+"")||t)}),this.editor.setState(n)):this.editor.setState(BI.Selection.Multi)},getMatchedItemValue:function(){return this.searcher.getView().getMatchedItemValue()},getState:function(){return this.editor.getState()},setValue:function(e){this.setState(e),this.searcher.setValue(e)},getKey:function(){return this.editor.getValue()},getValue:function(){return this.searcher.getValue()},populate:function(e){this.searcher.populate.apply(this.searcher,arguments)}}),BI.MultiSelectInsertSearcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.MultiSelectInsertSearcher.EVENT_CHANGE="EVENT_CHANGE",BI.MultiSelectInsertSearcher.EVENT_START="EVENT_START",BI.MultiSelectInsertSearcher.EVENT_STOP="EVENT_STOP",BI.MultiSelectInsertSearcher.EVENT_PAUSE="EVENT_PAUSE",BI.MultiSelectInsertSearcher.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.MultiSelectInsertSearcher.EVENT_FOCUS="EVENT_FOCUS",BI.MultiSelectInsertSearcher.EVENT_BLUR="EVENT_BLUR",BI.shortcut("bi.multi_select_insert_searcher",BI.MultiSelectInsertSearcher)},function(e,t){BI.MultiSelectSearcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectSearcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-searcher",itemsCreator:BI.emptyFn,el:{},popup:{},valueFormatter:BI.emptyFn,adapter:null,masker:{},text:BI.i18nText("BI-Basic_Please_Select"),itemHeight:24})},_init:function(){BI.MultiSelectSearcher.superclass._init.apply(this,arguments);var r=this,i=this.options;this.editor=BI.createWidget(i.el,{type:"bi.multi_select_editor",height:i.height,text:i.text,watermark:i.watermark,listeners:[{eventName:BI.MultiSelectEditor.EVENT_FOCUS,action:function(){r.fireEvent(BI.MultiSelectSearcher.EVENT_FOCUS)}},{eventName:BI.MultiSelectEditor.EVENT_BLUR,action:function(){r.fireEvent(BI.MultiSelectSearcher.EVENT_BLUR)}}]}),this.searcher=BI.createWidget({type:"bi.searcher",allowSearchBlank:!1,element:this,height:i.height,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},el:this.editor,popup:BI.extend({type:"bi.multi_select_search_pane",valueFormatter:i.valueFormatter,keywordGetter:function(){return r.editor.getValue()},itemsCreator:function(e,t){var n=r.editor.getValue();e.keywords=[n],this.setKeyword(n),i.itemsCreator(e,t)},itemHeight:i.itemHeight,value:i.value},i.popup),adapter:i.adapter,masker:i.masker}),this.searcher.on(BI.Searcher.EVENT_START,function(){r.fireEvent(BI.MultiSelectSearcher.EVENT_START)}),this.searcher.on(BI.Searcher.EVENT_PAUSE,function(){this.hasMatched(),r.fireEvent(BI.MultiSelectSearcher.EVENT_PAUSE)}),this.searcher.on(BI.Searcher.EVENT_STOP,function(){r.fireEvent(BI.MultiSelectSearcher.EVENT_STOP)}),this.searcher.on(BI.Searcher.EVENT_CHANGE,function(){r.fireEvent(BI.MultiSelectSearcher.EVENT_CHANGE,arguments)}),this.searcher.on(BI.Searcher.EVENT_SEARCHING,function(){var e=this.getKeywords();r.fireEvent(BI.MultiSelectSearcher.EVENT_SEARCHING,e)}),BI.isNotNull(i.value)&&this.setState(i.value)},getMatchedItemValue:function(){return this.searcher.getView().getMatchedItemValue()},adjustView:function(){this.searcher.adjustView()},isSearching:function(){return this.searcher.isSearching()},stopSearch:function(){this.searcher.stopSearch()},getKeyword:function(){return this.editor.getValue()},hasMatched:function(){return this.searcher.hasMatched()},hasChecked:function(){return this.searcher.getView()&&this.searcher.getView().hasChecked()},setAdapter:function(e){this.searcher.setAdapter(e)},setState:function(e){var n,r=this.options;(e=e||{}).value||(e.value=[]),e.type===BI.Selection.All?0===e.value.length?this.editor.setState(BI.Selection.All):BI.size(e.assist)<=20?(n="",BI.each(e.assist,function(e,t){n+=0===e?""+(r.valueFormatter(t+"")||t):","+(r.valueFormatter(t+"")||t)}),this.editor.setState(n)):this.editor.setState(BI.Selection.Multi):0===e.value.length?this.editor.setState(BI.Selection.None):BI.size(e.value)<=20?(n="",BI.each(e.value,function(e,t){n+=0===e?""+(r.valueFormatter(t+"")||t):","+(r.valueFormatter(t+"")||t)}),this.editor.setState(n)):this.editor.setState(BI.Selection.Multi)},getState:function(){return this.editor.getState()},setValue:function(e){this.setState(e),this.searcher.setValue(e)},getKey:function(){return this.editor.getValue()},getValue:function(){return this.searcher.getValue()},populate:function(e){this.searcher.populate.apply(this.searcher,arguments)}}),BI.MultiSelectSearcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.MultiSelectSearcher.EVENT_CHANGE="EVENT_CHANGE",BI.MultiSelectSearcher.EVENT_START="EVENT_START",BI.MultiSelectSearcher.EVENT_STOP="EVENT_STOP",BI.MultiSelectSearcher.EVENT_PAUSE="EVENT_PAUSE",BI.MultiSelectSearcher.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiSelectSearcher.EVENT_FOCUS="EVENT_FOCUS",BI.MultiSelectSearcher.EVENT_BLUR="EVENT_BLUR",BI.shortcut("bi.multi_select_searcher",BI.MultiSelectSearcher)},function(e,t){BI.MultiSelectCheckSelectedSwitcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectCheckSelectedSwitcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-check-selected-switcher",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,el:{},popup:{},adapter:null,masker:{}})},_init:function(){BI.MultiSelectCheckSelectedSwitcher.superclass._init.apply(this,arguments);var t=this,e=this.options;this.button=BI.createWidget(e.el,{type:"bi.multi_select_check_selected_button",itemsCreator:e.itemsCreator,value:e.value}),this.button.on(BI.Events.VIEW,function(){t.fireEvent(BI.Events.VIEW,arguments)}),this.switcher=BI.createWidget({type:"bi.switcher",toggle:!1,element:this,el:this.button,popup:BI.extend({type:"bi.multi_select_check_pane",valueFormatter:e.valueFormatter,itemsCreator:e.itemsCreator,onClickContinueSelect:function(){t.switcher.hideView()},ref:function(e){t.checkPane=e},value:e.value},e.popup),adapter:e.adapter,masker:e.masker}),this.switcher.on(BI.Switcher.EVENT_TRIGGER_CHANGE,function(){t.fireEvent(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE)}),this.switcher.on(BI.Switcher.EVENT_BEFORE_POPUPVIEW,function(){t.fireEvent(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW)}),this.switcher.on(BI.Switcher.EVENT_AFTER_HIDEVIEW,function(){t.fireEvent(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW)}),this.switcher.on(BI.Switcher.EVENT_AFTER_POPUPVIEW,function(){var e=this;BI.nextTick(function(){e.populate()})})},adjustView:function(){this.switcher.adjustView()},hideView:function(){this.switcher.empty(),this.switcher.hideView()},setAdapter:function(e){this.switcher.setAdapter(e)},setValue:function(e){this.switcher.setValue(e)},updateSelectedValue:function(e){this.checkPane.setValue(e)},setButtonChecked:function(e){this.button.setValue(e)},getValue:function(){},populate:function(e){this.switcher.populate.apply(this.switcher,arguments)},populateSwitcher:function(){this.button.populate.apply(this.button,arguments)}}),BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE="EVENT_TRIGGER_CHANGE",BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW="EVENT_AFTER_HIDEVIEW",BI.shortcut("bi.multi_select_check_selected_switcher",BI.MultiSelectCheckSelectedSwitcher)},function(e,t){BI.MultiSelectInsertList=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiSelectInsertList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-insert-list",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,searcherHeight:24,itemHeight:24})},_init:function(){BI.MultiSelectInsertList.superclass._init.apply(this,arguments);var r=this,i=this.options;this.storeValue=this._assertValue(i.value||{});var n=function(){BI.isKey(r._startValue)&&(r.storeValue.type===BI.Selection.All?BI.remove(r.storeValue.value,r._startValue):BI.pushDistinct(r.storeValue.value,r._startValue))};this.adapter=BI.createWidget({type:"bi.multi_select_loader",cls:"popup-multi-select-list bi-border-left bi-border-right bi-border-bottom",itemsCreator:i.itemsCreator,itemHeight:i.itemHeight,valueFormatter:i.valueFormatter,logic:{dynamic:!1},el:{},value:i.value}),this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE,function(){r.storeValue=this.getValue(),n(),r.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE)}),this.searcherPane=BI.createWidget({type:"bi.multi_select_search_insert_pane",cls:"bi-border-left bi-border-right bi-border-bottom",valueFormatter:i.valueFormatter,keywordGetter:function(){return r.trigger.getKeyword()},itemsCreator:function(e,t){var n=r.trigger.getKeyword();BI.isNotEmptyString(n)&&(e.keywords=[n],this.setKeyword(e.keywords[0]),i.itemsCreator(e,t))},itemHeight:i.itemHeight,listeners:[{eventName:BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,action:function(){var e=r.trigger.getKeyword();r.trigger.hasMatched()||(r.storeValue.type===BI.Selection.Multi&&BI.pushDistinct(r.storeValue.value,e),r._showAdapter(),r.adapter.setValue(r.storeValue),r.adapter.populate(),r.storeValue.type===BI.Selection.Multi&&r.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE))}}]}),this.searcherPane.setVisible(!1),this.trigger=BI.createWidget({type:"bi.searcher",el:{height:i.searcherHeight},allowSearchBlank:!1,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},adapter:this.adapter,popup:this.searcherPane,height:200,masker:!1,listeners:[{eventName:BI.Searcher.EVENT_START,action:function(){r._showSearcherPane(),r._setStartValue(""),this.setValue(BI.deepClone(r.storeValue))}},{eventName:BI.Searcher.EVENT_STOP,action:function(){r._showAdapter(),r._setStartValue(""),r.adapter.setValue(r.storeValue),r.adapter.populate()}},{eventName:BI.Searcher.EVENT_PAUSE,action:function(){var e=this.getKeyword();this.hasMatched()&&r._join({type:BI.Selection.Multi,value:[e]},function(){r.storeValue.type===BI.Selection.Multi&&BI.pushDistinct(r.storeValue.value,e),r._showAdapter(),r.adapter.setValue(r.storeValue),r._setStartValue(e),n(),r.adapter.populate(),r._setStartValue(""),r.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE)}),r._showAdapter()}},{eventName:BI.Searcher.EVENT_SEARCHING,action:function(){var e=this.getKeywords(),t=BI.last(e);0<(e=BI.initial(e||[])).length&&r._joinKeywords(e,function(){BI.isEndWithBlank(t)?(r.adapter.setValue(r.storeValue),n(),r.adapter.populate(),r._setStartValue("")):(r.adapter.setValue(r.storeValue),n()),r.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE)})}},{eventName:BI.Searcher.EVENT_CHANGE,action:function(e,t){t instanceof BI.MultiSelectBar?r._joinAll(this.getValue(),function(){n(),r.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE)}):r._join(this.getValue(),function(){n(),r.fireEvent(BI.MultiSelectInsertList.EVENT_CHANGE)})}}],value:i.value}),BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.trigger,height:i.searcherHeight},{el:this.adapter,height:"fill"}]}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.searcherPane,top:i.searcherHeight,bottom:0,left:0,right:0}]})},_showAdapter:function(){this.adapter.setVisible(!0),this.searcherPane.setVisible(!1)},_showSearcherPane:function(){this.searcherPane.setVisible(!0),this.adapter.setVisible(!1)},_defaultState:function(){this.trigger.stopEditing()},_assertValue:function(e){return(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[]),e},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),e.itemsCreator({type:BI.MultiSelectInsertList.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),a()})},_joinAll:function(t,c){var u=this,e=this.options;this._assertValue(t),e.itemsCreator({type:BI.MultiSelectInsertList.REQ_GET_ALL_DATA,keywords:[u.trigger.getKeyword()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void c()}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&delete a[n[e]],BI.isNull(o[n[e]])&&s.push(t)}),u.storeValue.value=s.concat(BI.values(a)),c()})},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void t()}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.adapter.setStartValue(e)},isAllSelected:function(){return this.adapter.isAllSelected()},resize:function(){},setValue:function(e){this.storeValue=e||{},this._assertValue(this.storeValue),this.adapter.setValue(this.storeValue),this.trigger.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue)},populate:function(){this.adapter.populate.apply(this.adapter,arguments),this.trigger.populate.apply(this.trigger,arguments)}}),BI.extend(BI.MultiSelectInsertList,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.MultiSelectInsertList.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_insert_list",BI.MultiSelectInsertList)},function(e,t){BI.MultiSelectInsertNoBarList=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiSelectInsertNoBarList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-insert-list",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,searcherHeight:24})},_init:function(){BI.MultiSelectInsertNoBarList.superclass._init.apply(this,arguments);var r=this,i=this.options;this.storeValue={type:BI.Selection.Multi,value:i.value||[]};var n=function(){BI.isKey(r._startValue)&&(r.storeValue.type===BI.Selection.All?BI.remove(r.storeValue.value,r._startValue):BI.pushDistinct(r.storeValue.value,r._startValue))};this.adapter=BI.createWidget({type:"bi.multi_select_no_bar_loader",cls:"popup-multi-select-list bi-border-left bi-border-right bi-border-bottom",itemsCreator:i.itemsCreator,itemHeight:i.itemHeight,valueFormatter:i.valueFormatter,logic:{dynamic:!1},el:{},value:{type:BI.Selection.Multi,value:i.value||[]}}),this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE,function(){r.storeValue=this.getValue(),n(),r.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE)}),this.searcherPane=BI.createWidget({type:"bi.multi_select_search_insert_pane",cls:"bi-border-left bi-border-right bi-border-bottom",valueFormatter:i.valueFormatter,keywordGetter:function(){return r.trigger.getKeyword()},itemsCreator:function(e,t){var n=r.trigger.getKeyword();BI.isNotEmptyString(n)&&(e.keywords=[n],this.setKeyword(e.keywords[0]),i.itemsCreator(e,t))},listeners:[{eventName:BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,action:function(){var e=r.trigger.getKeyword();r.trigger.hasMatched()||(r.storeValue.type===BI.Selection.Multi&&BI.pushDistinct(r.storeValue.value,e),r._showAdapter(),r.adapter.setValue(r.storeValue),r.adapter.populate(),r.storeValue.type===BI.Selection.Multi&&r.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE))}}]}),this.searcherPane.setVisible(!1),this.trigger=BI.createWidget({type:"bi.searcher",el:{height:i.searcherHeight},allowSearchBlank:!1,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},adapter:this.adapter,popup:this.searcherPane,height:200,masker:!1,listeners:[{eventName:BI.Searcher.EVENT_START,action:function(){r._showSearcherPane(),r._setStartValue(""),this.setValue(BI.deepClone(r.storeValue))}},{eventName:BI.Searcher.EVENT_STOP,action:function(){r._showAdapter(),r._setStartValue(""),r.adapter.setValue(r.storeValue),r.adapter.populate()}},{eventName:BI.Searcher.EVENT_PAUSE,action:function(){var e=this.getKeyword();this.hasMatched()&&r._join({type:BI.Selection.Multi,value:[e]},function(){r.storeValue.type===BI.Selection.Multi&&BI.pushDistinct(r.storeValue.value,e),r._showAdapter(),r.adapter.setValue(r.storeValue),r._setStartValue(e),n(),r.adapter.populate(),r._setStartValue(""),r.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE)})}},{eventName:BI.Searcher.EVENT_SEARCHING,action:function(){var e=this.getKeywords(),t=BI.last(e);0<(e=BI.initial(e||[])).length&&r._joinKeywords(e,function(){BI.isEndWithBlank(t)?(r.adapter.setValue(r.storeValue),n(),r.adapter.populate(),r._setStartValue("")):(r.adapter.setValue(r.storeValue),n()),r.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE)})}},{eventName:BI.Searcher.EVENT_CHANGE,action:function(e,t){t instanceof BI.MultiSelectBar?r._joinAll(this.getValue(),function(){n(),r.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE)}):r._join(this.getValue(),function(){n(),r.fireEvent(BI.MultiSelectInsertNoBarList.EVENT_CHANGE)})}}],value:{type:BI.Selection.Multi,value:i.value||[]}}),BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.trigger,height:i.searcherHeight},{el:this.adapter,height:"fill"}]}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.searcherPane,top:i.searcherHeight,bottom:0,left:0,right:0}]})},_showAdapter:function(){this.adapter.setVisible(!0),this.searcherPane.setVisible(!1)},_showSearcherPane:function(){this.searcherPane.setVisible(!0),this.adapter.setVisible(!1)},_defaultState:function(){this.trigger.stopEditing()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),e.itemsCreator({type:BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),a()})},_joinAll:function(t,c){var u=this,e=this.options;this._assertValue(t),e.itemsCreator({type:BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA,keywords:[u.trigger.getKeyword()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void c()}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&delete a[n[e]],BI.isNull(o[n[e]])&&s.push(t)}),u.storeValue.value=s.concat(BI.values(a)),c()})},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void t()}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.adapter.setStartValue(e)},isAllSelected:function(){return this.adapter.isAllSelected()},resize:function(){},setValue:function(e){this.storeValue={type:BI.Selection.Multi,value:e||[]},this.adapter.setValue(this.storeValue),this.trigger.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue.value)},populate:function(){this.adapter.populate.apply(this.adapter,arguments),this.trigger.populate.apply(this.trigger,arguments)}}),BI.extend(BI.MultiSelectInsertNoBarList,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.MultiSelectInsertNoBarList.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_insert_no_bar_list",BI.MultiSelectInsertNoBarList)},function(e,t){BI.MultiSelectList=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-list",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,searcherHeight:24,itemHeight:24})},_init:function(){BI.MultiSelectList.superclass._init.apply(this,arguments);var r=this,i=this.options;this.storeValue={};var n=function(){BI.isKey(r._startValue)&&(r.storeValue.type===BI.Selection.All?BI.remove(r.storeValue.value,r._startValue):BI.pushDistinct(r.storeValue.value,r._startValue))};this.adapter=BI.createWidget({type:"bi.multi_select_loader",cls:"popup-multi-select-list bi-border-left bi-border-right bi-border-bottom",itemsCreator:i.itemsCreator,valueFormatter:i.valueFormatter,itemHeight:i.itemHeight,logic:{dynamic:!1},el:{}}),this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE,function(){r.storeValue=this.getValue(),r._adjust(function(){n(),r.fireEvent(BI.MultiSelectList.EVENT_CHANGE)})}),this.searcherPane=BI.createWidget({type:"bi.multi_select_search_pane",cls:"bi-border-left bi-border-right bi-border-bottom",valueFormatter:i.valueFormatter,keywordGetter:function(){return r.trigger.getKeyword()},itemsCreator:function(e,t){var n=r.trigger.getKeyword();BI.isNotEmptyString(n)&&(e.keywords=[n],this.setKeyword(e.keywords[0]),i.itemsCreator(e,t))},itemHeight:i.itemHeight}),this.searcherPane.setVisible(!1),this.trigger=BI.createWidget({type:"bi.searcher",el:{height:i.searcherHeight},allowSearchBlank:!1,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},adapter:this.adapter,popup:this.searcherPane,height:200,masker:!1,listeners:[{eventName:BI.Searcher.EVENT_START,action:function(){r._showSearcherPane(),r._setStartValue(""),this.setValue(BI.deepClone(r.storeValue))}},{eventName:BI.Searcher.EVENT_STOP,action:function(){r._showAdapter(),r._setStartValue(""),r.adapter.setValue(r.storeValue),r.adapter.populate()}},{eventName:BI.Searcher.EVENT_PAUSE,action:function(){var e=this.getKeyword();this.hasMatched()&&r._join({type:BI.Selection.Multi,value:[e]},function(){r._showAdapter(),r.adapter.setValue(r.storeValue),r._setStartValue(e),n(),r.adapter.populate(),r._setStartValue(""),r.fireEvent(BI.MultiSelectList.EVENT_CHANGE)})}},{eventName:BI.Searcher.EVENT_SEARCHING,action:function(){var e=this.getKeyword(),t=BI.last(e);0<(e=BI.initial(e||[])).length&&r._joinKeywords(e,function(){BI.isEndWithBlank(t)?(r.adapter.setValue(r.storeValue),n(),r.adapter.populate(),r._setStartValue("")):(r.adapter.setValue(r.storeValue),n()),r.fireEvent(BI.MultiSelectList.EVENT_CHANGE)})}},{eventName:BI.Searcher.EVENT_CHANGE,action:function(e,t){t instanceof BI.MultiSelectBar?r._joinAll(this.getValue(),function(){n(),r.fireEvent(BI.MultiSelectList.EVENT_CHANGE)}):r._join(this.getValue(),function(){n(),r.fireEvent(BI.MultiSelectList.EVENT_CHANGE)})}}]}),BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.trigger,height:i.searcherHeight},{el:this.adapter,height:"fill"}]}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.searcherPane,top:i.searcherHeight,bottom:0,left:0,right:0}]})},_showAdapter:function(){this.adapter.setVisible(!0),this.searcherPane.setVisible(!1)},_showSearcherPane:function(){this.searcherPane.setVisible(!0),this.adapter.setVisible(!1)},_defaultState:function(){this.trigger.stopEditing()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),e.itemsCreator({type:BI.MultiSelectList.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),o._adjust(a)})},_joinAll:function(t,c){var u=this,e=this.options;this._assertValue(t),e.itemsCreator({type:BI.MultiSelectList.REQ_GET_ALL_DATA,keywords:[this.trigger.getKey()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void u._adjust(c)}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&delete a[n[e]],BI.isNull(o[n[e]])&&s.push(t)}),u.storeValue.value=s.concat(BI.values(a)),u._adjust(c)})},_adjust:function(t){var n=this,e=this.options;function r(){n.storeValue.type===BI.Selection.All&&n.storeValue.value.length>=n._count?n.storeValue={type:BI.Selection.Multi,value:[]}:n.storeValue.type===BI.Selection.Multi&&n.storeValue.value.length>=n._count&&(n.storeValue={type:BI.Selection.All,value:[]})}this._count?(r(),t()):e.itemsCreator({type:BI.MultiSelectList.REQ_GET_DATA_LENGTH},function(e){n._count=e.count,r(),t()})},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void n._adjust(t)}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.adapter.setStartValue(e)},isAllSelected:function(){return this.adapter.isAllSelected()},resize:function(){},setValue:function(e){this.storeValue=e||{},this._assertValue(this.storeValue),this.adapter.setValue(this.storeValue),this.trigger.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue)},populate:function(){this.adapter.populate.apply(this.adapter,arguments),this.trigger.populate.apply(this.trigger,arguments)}}),BI.extend(BI.MultiSelectList,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.MultiSelectList.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_list",BI.MultiSelectList)},function(e,t){BI.MultiSelectTree=BI.inherit(BI.Single,{_constant:{EDITOR_HEIGHT:24},_defaultConfig:function(){return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-tree",itemsCreator:BI.emptyFn})},_init:function(){BI.MultiSelectTree.superclass._init.apply(this,arguments);var n=this,r=this.options;this.storeValue={value:{}},this.adapter=BI.createWidget({type:"bi.multi_select_tree_popup",itemsCreator:r.itemsCreator,showLine:r.showLine}),this.adapter.on(BI.MultiSelectTreePopup.EVENT_CHANGE,function(){n.searcher.isSearching()?n.storeValue={value:n.searcherPane.getValue()}:n.storeValue={value:n.adapter.getValue()},n.setSelectedValue(n.storeValue.value),n.fireEvent(BI.MultiSelectTree.EVENT_CHANGE)}),this.searcherPane=BI.createWidget({type:"bi.multi_tree_search_pane",cls:"bi-border-left bi-border-right bi-border-bottom",keywordGetter:function(){return n.searcher.getKeyword()},itemsCreator:function(e,t){e.keyword=n.searcher.getKeyword(),r.itemsCreator(e,t)}}),this.searcherPane.setVisible(!1),this.searcher=BI.createWidget({type:"bi.searcher",isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t({keyword:n.searcher.getKeyword()})},adapter:this.adapter,popup:this.searcherPane,masker:!1,listeners:[{eventName:BI.Searcher.EVENT_START,action:function(){n._showSearcherPane()}},{eventName:BI.Searcher.EVENT_STOP,action:function(){n._showAdapter(),BI.nextTick(function(){n.adapter.populate()})}},{eventName:BI.Searcher.EVENT_CHANGE,action:function(){n.searcher.isSearching()?n.storeValue={value:n.searcherPane.getValue()}:n.storeValue={value:n.adapter.getValue()},n.setSelectedValue(n.storeValue.value),n.fireEvent(BI.MultiSelectTree.EVENT_CHANGE)}},{eventName:BI.Searcher.EVENT_PAUSE,action:function(){n._showAdapter(),BI.nextTick(function(){n.adapter.populate()})}}]}),BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.searcher,height:this._constant.EDITOR_HEIGHT},{el:this.adapter,height:"fill"}]}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.searcherPane,top:this._constant.EDITOR_HEIGHT,bottom:0,left:0,right:0}]})},_showAdapter:function(){this.adapter.setVisible(!0),this.searcherPane.setVisible(!1)},_showSearcherPane:function(){this.searcherPane.setVisible(!0),this.adapter.setVisible(!1)},resize:function(){},setSelectedValue:function(e){this.storeValue.value=e||{},this.adapter.setSelectedValue(e),this.searcherPane.setSelectedValue(e),this.searcher.setValue({value:e||{}})},setValue:function(e){this.adapter.setValue(e)},stopSearch:function(){this.searcher.stopSearch()},updateValue:function(e){this.adapter.updateValue(e)},getValue:function(){return this.storeValue.value},populate:function(){this.searcher.populate(),this.adapter.populate()}}),BI.MultiSelectTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_tree",BI.MultiSelectTree)},function(e,t){BI.MultiSelectTreePopup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiSelectTreePopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-tree-popup bi-border-left bi-border-right bi-border-bottom",itemsCreator:BI.emptyFn})},_init:function(){BI.MultiSelectTreePopup.superclass._init.apply(this,arguments);var e=this,t=this.options;this.popup=BI.createWidget({type:"bi.async_tree",showLine:t.showLine,element:this,itemsCreator:t.itemsCreator}),this.popup.on(BI.TreeView.EVENT_AFTERINIT,function(){e.fireEvent(BI.MultiSelectTreePopup.EVENT_AFTER_INIT)}),this.popup.on(BI.TreeView.EVENT_CHANGE,function(){e.fireEvent(BI.MultiSelectTreePopup.EVENT_CHANGE)})},hasChecked:function(){return this.popup.hasChecked()},getValue:function(){return this.popup.getValue()},setValue:function(e){e=e||{},this.popup.setValue(e)},setSelectedValue:function(e){e=e||{},this.popup.setSelectedValue(e)},updateValue:function(e){this.popup.updateValue(e),this.popup.refresh()},populate:function(e){this.popup.stroke(e)}}),BI.MultiSelectTreePopup.EVENT_AFTER_INIT="EVENT_AFTER_INIT",BI.MultiSelectTreePopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_select_tree_popup",BI.MultiSelectTreePopup)},function(e,t){BI.MultiTreeCheckPane=BI.inherit(BI.Pane,{constants:{height:25,lgap:10,tgap:5},_defaultConfig:function(){return BI.extend(BI.MultiTreeCheckPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-check-pane bi-background",onClickContinueSelect:BI.emptyFn,el:{type:"bi.display_tree"}})},_init:function(){BI.MultiTreeCheckPane.superclass._init.apply(this,arguments);var e=this,n=this.options;this.selectedValues={};var t=BI.createWidget({type:"bi.text_button",text:BI.i18nText("BI-Continue_Select"),cls:"multi-tree-check-selected"});t.on(BI.TextButton.EVENT_CHANGE,function(){n.onClickContinueSelect(),BI.nextTick(function(){e.empty()})});var r=BI.createWidget({type:"bi.left",cls:"multi-tree-continue-select",items:[{el:{type:"bi.label",text:BI.i18nText("BI-Selected_Data")},lgap:this.constants.lgap,tgap:this.constants.tgap},{el:t,lgap:this.constants.lgap,tgap:this.constants.tgap}]});this.display=BI.createWidget(n.el,{type:"bi.display_tree",cls:"bi-multi-tree-display",itemsCreator:function(e,t){e.type=BI.TreeView.REQ_TYPE_GET_SELECTED_DATA,n.itemsCreator(e,t)},value:(n.value||{}).value}),this.display.on(BI.Events.AFTERINIT,function(){e.fireEvent(BI.Events.AFTERINIT)}),this.display.on(BI.TreeView.EVENT_INIT,function(){r.setVisible(!1)}),this.display.on(BI.TreeView.EVENT_AFTERINIT,function(){r.setVisible(!0)}),BI.createWidget({type:"bi.vtape",element:this,items:[{height:this.constants.height,el:r},{height:"fill",el:this.display}]})},empty:function(){this.display.empty()},populate:function(e){this.display.stroke(e)},setValue:function(e){e=e||{},this.display.setSelectedValue(e.value)},getValue:function(){}}),BI.MultiTreeCheckPane.EVENT_CONTINUE_CLICK="EVENT_CONTINUE_CLICK",BI.shortcut("bi.multi_tree_check_pane",BI.MultiTreeCheckPane)},function(e,t){BI.MultiTreeCombo=BI.inherit(BI.Single,{constants:{offset:{top:0,left:0,right:0,bottom:25}},_defaultConfig:function(){return BI.extend(BI.MultiTreeCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-combo",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,height:24,allowEdit:!0,isNeedAdjustWidth:!0})},_init:function(){BI.MultiTreeCombo.superclass._init.apply(this,arguments);var n=this,e=this.options,t=!1,r=!1;this.storeValue={value:e.value||{}},this.trigger=BI.createWidget({type:"bi.multi_select_trigger",allowEdit:e.allowEdit,height:e.height,valueFormatter:e.valueFormatter,text:e.text,watermark:e.watermark,masker:{offset:this.constants.offset},searcher:{type:"bi.multi_tree_searcher",itemsCreator:e.itemsCreator},value:{value:e.value||{}}}),this.combo=BI.createWidget({type:"bi.combo",toggle:!e.allowEdit,container:e.container,el:this.trigger,adjustLength:1,popup:{type:"bi.multi_tree_popup_view",ref:function(){n.popup=this,n.trigger.setAdapter(this),n.numberCounter.setAdapter(this)},listeners:[{eventName:BI.MultiTreePopup.EVENT_AFTERINIT,action:function(){n.numberCounter.adjustView(),(t=!0)===r&&c()}},{eventName:BI.MultiTreePopup.EVENT_CHANGE,action:function(){i=!0;var e={type:BI.Selection.Multi,value:this.hasChecked()?this.getValue():{}};n.trigger.getSearcher().setState(e),n.numberCounter.setButtonChecked(e),n.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM,n.combo.getValue())}},{eventName:BI.MultiTreePopup.EVENT_CLICK_CONFIRM,action:function(){n.combo.hideView()}},{eventName:BI.MultiTreePopup.EVENT_CLICK_CLEAR,action:function(){a=!0,n.setValue(),n._defaultState()}}],itemsCreator:e.itemsCreator,onLoaded:function(){BI.nextTick(function(){n.numberCounter.adjustView(),n.trigger.getSearcher().adjustView()})},maxWidth:e.isNeedAdjustWidth?"auto":500},isNeedAdjustWidth:e.isNeedAdjustWidth,value:{value:e.value||{}},hideChecker:function(e){return 0===u.element.find(e.target).length&&0===n.numberCounter.element.find(e.target).length}});var i=!1,a=!1,o=function(){return n.trigger.getSearcher().isSearching()},s=function(){return n.combo.isViewVisible()};function c(){o()?n.storeValue={value:n.trigger.getValue()}:s()&&(n.storeValue={value:n.combo.getValue()}),n.trigger.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue)}this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS,function(){n.fireEvent(BI.MultiTreeCombo.EVENT_FOCUS)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR,function(){n.fireEvent(BI.MultiTreeCombo.EVENT_BLUR)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_START,function(){n.storeValue={value:n.combo.getValue()},this.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP,function(){n.storeValue={value:this.getValue()},n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),BI.nextTick(function(){s()&&n.combo.populate()}),n.fireEvent(BI.MultiTreeCombo.EVENT_STOP)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING,function(){n.fireEvent(BI.MultiTreeCombo.EVENT_SEARCHING)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_TRIGGER_CLICK,function(){n.combo.toggle()}),this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK,function(){n.combo.isViewVisible()||n.combo.showView()}),this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE,function(){var e=this.getSearcher().hasChecked(),t={type:BI.Selection.Multi,value:e?{1:1}:{}};this.getSearcher().setState(e?BI.Selection.Multi:BI.Selection.None),n.numberCounter.setButtonChecked(t),n.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM,n.combo.getValue())}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){o()||(!0===i&&(n.storeValue={value:n.combo.getValue()},i=!1),n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),n.populate(),n.fireEvent(BI.MultiTreeCombo.EVENT_BEFORE_POPUPVIEW))}),this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW,function(){o()?(n._stopEditing(),n.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM)):s()&&(n._stopEditing(),n.storeValue={value:n.combo.getValue()},!0===a&&(n.storeValue={value:{}}),n.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM)),i=a=!1});var u=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});u.on(BI.TriggerIconButton.EVENT_CHANGE,function(){n.numberCounter.hideView(),n.combo.isViewVisible()?n.combo.hideView():n.combo.showView()}),this.numberCounter=BI.createWidget({type:"bi.multi_select_check_selected_switcher",el:{type:"bi.multi_tree_check_selected_button"},popup:{type:"bi.multi_tree_check_pane"},masker:{offset:this.constants.offset},itemsCreator:e.itemsCreator,valueFormatter:e.valueFormatter,value:{value:e.value||{}}}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){n.combo.isViewVisible()||n.combo.showView()}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){!1===r&&(r=!0),!0===t&&(r=null,c())}),this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(!0===e?n.numberCounter.element.outerWidth()+8:0)})}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW,function(){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(0)})}),this.trigger.element.click(function(e){0<n.trigger.element.find(e.target).length&&n.numberCounter.hideView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:u,right:0,top:0,bottom:0},{el:{type:"bi.vertical_adapt",items:[this.numberCounter]},right:e.height,top:0,height:e.height}]})},_stopEditing:function(){this.trigger.stopEditing(),this.numberCounter.hideView()},_defaultState:function(){this._stopEditing(),this.combo.hideView()},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue.value=e||{},this.combo.setValue({value:e||{}}),this.numberCounter.setValue({value:e||{}})},getValue:function(){return BI.deepClone(this.storeValue.value)},populate:function(){this.combo.populate()}}),BI.MultiTreeCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiTreeCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiTreeCombo.EVENT_STOP="EVENT_STOP",BI.MultiTreeCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiTreeCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.MultiTreeCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.MultiTreeCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.multi_tree_combo",BI.MultiTreeCombo)},function(e,t){BI.MultiTreeInsertCombo=BI.inherit(BI.Single,{constants:{offset:{top:0,left:0,right:0,bottom:25}},_defaultConfig:function(){return BI.extend(BI.MultiTreeInsertCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-insert-combo",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,height:24,allowEdit:!0,isNeedAdjustWidth:!0})},_init:function(){BI.MultiTreeInsertCombo.superclass._init.apply(this,arguments);var n=this,e=this.options,t=!1,r=!1;this.storeValue={value:e.value||{}},this.trigger=BI.createWidget({type:"bi.multi_select_trigger",allowEdit:e.allowEdit,height:e.height,valueFormatter:e.valueFormatter,masker:{offset:this.constants.offset},searcher:{type:"bi.multi_tree_searcher",text:e.text,watermark:e.watermark,itemsCreator:e.itemsCreator,popup:{type:"bi.multi_tree_search_insert_pane",listeners:[{eventName:BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM,action:function(){n.storeValue.value[n.trigger.getSearcher().getKeyword()]={},n._assertShowValue(),n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),n._stopEditing()}}]}},value:{value:e.value||{}}}),this.combo=BI.createWidget({type:"bi.combo",toggle:!e.allowEdit,container:e.container,el:this.trigger,adjustLength:1,popup:{type:"bi.multi_tree_popup_view",ref:function(){n.popup=this,n.trigger.setAdapter(this),n.numberCounter.setAdapter(this)},listeners:[{eventName:BI.MultiTreePopup.EVENT_AFTERINIT,action:function(){n.numberCounter.adjustView(),(t=!0)===r&&c()}},{eventName:BI.MultiTreePopup.EVENT_CHANGE,action:function(){i=!0;var e={type:BI.Selection.Multi,value:this.hasChecked()?this.getValue():{}};n.trigger.getSearcher().setState(e),n.numberCounter.setButtonChecked(e),n.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM,n.combo.getValue())}},{eventName:BI.MultiTreePopup.EVENT_CLICK_CONFIRM,action:function(){n.combo.hideView()}},{eventName:BI.MultiTreePopup.EVENT_CLICK_CLEAR,action:function(){a=!0,n.setValue(),n._defaultState()}}],itemsCreator:e.itemsCreator,onLoaded:function(){BI.nextTick(function(){n.numberCounter.adjustView(),n.trigger.getSearcher().adjustView()})},maxWidth:e.isNeedAdjustWidth?"auto":500},isNeedAdjustWidth:e.isNeedAdjustWidth,value:{value:e.value||{}},hideChecker:function(e){return 0===u.element.find(e.target).length&&0===n.numberCounter.element.find(e.target).length}});var i=!1,a=!1,o=function(){return n.trigger.getSearcher().isSearching()},s=function(){return n.combo.isViewVisible()};function c(){o()?n.storeValue={value:n.trigger.getValue()}:s()&&(n.storeValue={value:n.combo.getValue()}),n.trigger.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue)}this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS,function(){n.fireEvent(BI.MultiTreeInsertCombo.EVENT_FOCUS)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR,function(){n.fireEvent(BI.MultiTreeInsertCombo.EVENT_BLUR)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_START,function(){n.storeValue={value:n.combo.getValue()},this.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP,function(){n.storeValue={value:this.getValue()},n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),BI.nextTick(function(){s()&&n.combo.populate()}),n.fireEvent(BI.MultiTreeInsertCombo.EVENT_STOP)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING,function(){n.fireEvent(BI.MultiTreeInsertCombo.EVENT_SEARCHING)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_TRIGGER_CLICK,function(){n.combo.toggle()}),this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE,function(){var e=this.getSearcher().hasChecked(),t={type:BI.Selection.Multi,value:e?{1:1}:{}};this.getSearcher().setState(e?BI.Selection.Multi:BI.Selection.None),n.numberCounter.setButtonChecked(t),n.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM,n.combo.getValue())}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){o()||(!0===i&&(n.storeValue={value:n.combo.getValue()},i=!1),n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),n.populate(),n.fireEvent(BI.MultiTreeInsertCombo.EVENT_BEFORE_POPUPVIEW))}),this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW,function(){o()?(n._stopEditing(),n.fireEvent(BI.MultiTreeInsertCombo.EVENT_CONFIRM)):s()&&(n._stopEditing(),n.storeValue={value:n.combo.getValue()},!0===a&&(n.storeValue={value:{}}),n.fireEvent(BI.MultiTreeInsertCombo.EVENT_CONFIRM)),i=a=!1});var u=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});u.on(BI.TriggerIconButton.EVENT_CHANGE,function(){n.numberCounter.hideView(),n.combo.isViewVisible()?n.combo.hideView():n.combo.showView()}),this.numberCounter=BI.createWidget({type:"bi.multi_select_check_selected_switcher",el:{type:"bi.multi_tree_check_selected_button"},popup:{type:"bi.multi_tree_check_pane"},itemsCreator:e.itemsCreator,masker:{offset:this.constants.offset},valueFormatter:e.valueFormatter,value:e.value}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){n.combo.isViewVisible()||n.combo.showView()}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){!1===r&&(r=!0),!0===t&&(r=null,c())}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW,function(){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(0)})}),this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(!0===e?n.numberCounter.element.outerWidth()+8:0)})}),this.trigger.element.click(function(e){0<n.trigger.element.find(e.target).length&&n.numberCounter.hideView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:u,right:0,top:0,bottom:0},{el:{type:"bi.vertical_adapt",items:[this.numberCounter]},right:e.height,top:0,height:e.height}]})},_assertShowValue:function(){this.trigger.getSearcher().setState(this.storeValue),this.numberCounter.setButtonChecked(this.storeValue)},_stopEditing:function(){this.trigger.stopEditing(),this.numberCounter.hideView()},_defaultState:function(){this._stopEditing(),this.combo.hideView()},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue.value=e||{},this.combo.setValue({value:e||{}}),this.numberCounter.setValue({value:e||{}})},getValue:function(){return BI.deepClone(this.storeValue.value)},populate:function(){this.combo.populate()}}),BI.MultiTreeInsertCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiTreeInsertCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiTreeInsertCombo.EVENT_STOP="EVENT_STOP",BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.MultiTreeInsertCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiTreeInsertCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.MultiTreeInsertCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.multi_tree_insert_combo",BI.MultiTreeInsertCombo)},function(e,t){BI.MultiTreeListCombo=BI.inherit(BI.Single,{constants:{offset:{top:0,left:0,right:0,bottom:25}},_defaultConfig:function(){return BI.extend(BI.MultiTreeListCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-list-combo",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,height:24,allowEdit:!0,allowInsertValue:!0,isNeedAdjustWidth:!0})},_init:function(){BI.MultiTreeListCombo.superclass._init.apply(this,arguments);var n=this,e=this.options,t=!1,r=!1;this.storeValue={value:e.value||[]},this.trigger=BI.createWidget({type:"bi.multi_select_trigger",allowEdit:e.allowEdit,text:e.text,watermark:e.watermark,height:e.height,valueFormatter:e.valueFormatter,masker:{offset:this.constants.offset},searcher:{type:"bi.multi_list_tree_searcher",itemsCreator:e.itemsCreator,popup:{type:e.allowInsertValue?"bi.multi_tree_search_insert_pane":"bi.multi_tree_search_pane",el:{type:"bi.list_part_tree"},listeners:[{eventName:BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM,action:function(){n.storeValue.value.unshift([n.trigger.getSearcher().getKeyword()]),n._assertShowValue(),n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),n._stopEditing()}}]}},switcher:{el:{type:"bi.multi_tree_check_selected_button"},popup:{type:"bi.multi_tree_check_pane",el:{type:"bi.list_display_tree"},itemsCreator:e.itemsCreator}},value:{value:e.value||{}}}),this.combo=BI.createWidget({type:"bi.combo",toggle:!e.allowEdit,container:e.container,el:this.trigger,adjustLength:1,popup:{type:"bi.multi_tree_popup_view",ref:function(){n.popup=this,n.trigger.setAdapter(this),n.numberCounter.setAdapter(this)},el:{type:"bi.list_async_tree"},listeners:[{eventName:BI.MultiTreePopup.EVENT_AFTERINIT,action:function(){n.numberCounter.adjustView(),(t=!0)===r&&c()}},{eventName:BI.MultiTreePopup.EVENT_CHANGE,action:function(){i=!0;var e={type:BI.Selection.Multi,value:this.hasChecked()?this.getValue():[]};n.trigger.getSearcher().setState(e),n.numberCounter.setButtonChecked(e),n.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM,n.combo.getValue())}},{eventName:BI.MultiTreePopup.EVENT_CLICK_CONFIRM,action:function(){n.combo.hideView()}},{eventName:BI.MultiTreePopup.EVENT_CLICK_CLEAR,action:function(){a=!0,n.setValue(),n._defaultState()}}],itemsCreator:e.itemsCreator,onLoaded:function(){BI.nextTick(function(){n.numberCounter.adjustView(),n.trigger.getSearcher().adjustView()})},maxWidth:e.isNeedAdjustWidth?"auto":500},isNeedAdjustWidth:e.isNeedAdjustWidth,value:{value:e.value||{}},hideChecker:function(e){return 0===u.element.find(e.target).length&&0===n.numberCounter.element.find(e.target).length}});var i=!1,a=!1,o=function(){return n.trigger.getSearcher().isSearching()},s=function(){return n.combo.isViewVisible()};function c(){o()?n.storeValue={value:n.trigger.getValue()}:s()&&(n.storeValue={value:n.combo.getValue()}),n.trigger.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue)}this.trigger.on(BI.MultiSelectTrigger.EVENT_FOCUS,function(){n.fireEvent(BI.MultiTreeListCombo.EVENT_FOCUS)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BLUR,function(){n.fireEvent(BI.MultiTreeListCombo.EVENT_BLUR)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_START,function(){n.storeValue={value:n.combo.getValue()},this.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP,function(){n.storeValue={value:this.getValue()},n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),BI.nextTick(function(){s()&&n.combo.populate()}),n.fireEvent(BI.MultiTreeListCombo.EVENT_STOP)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING,function(){n.fireEvent(BI.MultiTreeListCombo.EVENT_SEARCHING)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_TRIGGER_CLICK,function(){n.combo.toggle()}),this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE,function(){var e=this.getSearcher().hasChecked(),t={type:BI.Selection.Multi,value:e?{1:1}:{}};this.getSearcher().setState(e?BI.Selection.Multi:BI.Selection.None),n.numberCounter.setButtonChecked(t),n.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM,n.combo.getValue())}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){o()||(!0===i&&(n.storeValue={value:n.combo.getValue()},i=!1),n.combo.setValue(n.storeValue),n.numberCounter.setValue(n.storeValue),n.populate(),n.fireEvent(BI.MultiTreeListCombo.EVENT_BEFORE_POPUPVIEW))}),this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW,function(){o()?(n.trigger.stopEditing(),n.fireEvent(BI.MultiTreeListCombo.EVENT_CONFIRM)):s()&&(n._stopEditing(),n.storeValue={value:n.combo.getValue()},!0===a&&(n.storeValue={value:[]}),n.fireEvent(BI.MultiTreeListCombo.EVENT_CONFIRM)),i=a=!1});var u=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});u.on(BI.TriggerIconButton.EVENT_CHANGE,function(){n.numberCounter.hideView(),n.combo.isViewVisible()?n.combo.hideView():n.combo.showView()}),this.numberCounter=BI.createWidget({type:"bi.multi_select_check_selected_switcher",el:{type:"bi.multi_tree_check_selected_button"},popup:{type:"bi.multi_tree_check_pane"},itemsCreator:e.itemsCreator,masker:{offset:{left:0,top:0,right:0,bottom:25}},valueFormatter:e.valueFormatter,value:e.value}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){n.combo.isViewVisible()||n.combo.showView()}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){!1===r&&(r=!0),!0===t&&(r=null,c())}),this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(!0===e?n.numberCounter.element.outerWidth()+8:0)})}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_AFTER_HIDEVIEW,function(){BI.nextTick(function(){n.trigger.refreshPlaceHolderWidth(0)})}),this.trigger.element.click(function(e){0<n.trigger.element.find(e.target).length&&n.numberCounter.hideView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:u,right:0,top:0,bottom:0},{el:{type:"bi.vertical_adapt",items:[this.numberCounter]},right:e.height,top:0,height:e.height}]})},_assertShowValue:function(){this.trigger.getSearcher().setState(this.storeValue),this.numberCounter.setButtonChecked(this.storeValue)},_stopEditing:function(){this.trigger.stopEditing(),this.numberCounter.hideView()},_defaultState:function(){this._stopEditing(),this.combo.hideView()},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue.value=e||[],this.combo.setValue({value:e||[]}),this.numberCounter.setValue({value:e||[]})},getValue:function(){return BI.deepClone(this.storeValue.value)},populate:function(){this.combo.populate()}}),BI.MultiTreeListCombo.EVENT_FOCUS="EVENT_FOCUS",BI.MultiTreeListCombo.EVENT_BLUR="EVENT_BLUR",BI.MultiTreeListCombo.EVENT_STOP="EVENT_STOP",BI.MultiTreeListCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.MultiTreeListCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiTreeListCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.MultiTreeListCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.multi_tree_list_combo",BI.MultiTreeListCombo)},function(e,t){BI.MultiTreePopup=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.MultiTreePopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-popup",maxWidth:"auto",minWidth:140,maxHeight:400,onLoaded:BI.emptyFn,el:{type:"bi.async_tree"}})},_init:function(){BI.MultiTreePopup.superclass._init.apply(this,arguments);var t=this,e=this.options,n=e.value;this.selectedValues={},this.tree=BI.createWidget(e.el,{type:"bi.async_tree",showLine:e.showLine,height:400,cls:"popup-view-tree",itemsCreator:e.itemsCreator,onLoaded:e.onLoaded,value:n.value||{}}),this.popupView=BI.createWidget({type:"bi.multi_popup_view",element:this,stopPropagation:!1,maxWidth:e.maxWidth,minWidth:e.minWidth,maxHeight:e.maxHeight,buttons:[BI.i18nText("BI-Basic_Clears"),BI.i18nText("BI-Basic_Sure")],el:this.tree}),this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON,function(e){switch(e){case 0:t.fireEvent(BI.MultiTreePopup.EVENT_CLICK_CLEAR);break;case 1:t.fireEvent(BI.MultiTreePopup.EVENT_CLICK_CONFIRM)}}),this.tree.on(BI.TreeView.EVENT_CHANGE,function(){t.fireEvent(BI.MultiTreePopup.EVENT_CHANGE)}),this.tree.on(BI.TreeView.EVENT_AFTERINIT,function(){t.fireEvent(BI.MultiTreePopup.EVENT_AFTERINIT)})},getValue:function(){return this.tree.getValue()},setValue:function(e){e=e||{},this.tree.setSelectedValue(e.value)},populate:function(e){this.tree.stroke(e)},hasChecked:function(){return this.tree.hasChecked()},resetHeight:function(e){this.popupView.resetHeight(e)},resetWidth:function(e){this.popupView.resetWidth(e)}}),BI.MultiTreePopup.EVENT_CHANGE="EVENT_CHANGE",BI.MultiTreePopup.EVENT_CLICK_CONFIRM="EVENT_CLICK_CONFIRM",BI.MultiTreePopup.EVENT_CLICK_CLEAR="EVENT_CLICK_CLEAR",BI.MultiTreePopup.EVENT_AFTERINIT="EVENT_AFTERINIT",BI.shortcut("bi.multi_tree_popup_view",BI.MultiTreePopup)},function(e,t){BI.MultiTreeCheckSelectedButton=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.MultiTreeCheckSelectedButton.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-check-selected-button",itemsCreator:BI.emptyFn})},_init:function(){BI.MultiTreeCheckSelectedButton.superclass._init.apply(this,arguments);var e=this;this.indicator=BI.createWidget({type:"bi.icon_button",cls:"check-font trigger-check-selected icon-size-12",width:15,height:15,stopPropagation:!0}),this.checkSelected=BI.createWidget({type:"bi.text_button",cls:"trigger-check-selected",invisible:!0,hgap:4,text:BI.i18nText("BI-Check_Selected"),textAlign:"center",textHeight:15}),this.checkSelected.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.checkSelected.on(BI.TextButton.EVENT_CHANGE,function(){e.fireEvent(BI.MultiSelectCheckSelectedButton.EVENT_CHANGE,arguments)}),BI.createWidget({type:"bi.horizontal",element:this,items:[this.indicator,this.checkSelected]}),this.element.hover(function(){e.indicator.setVisible(!1),e.checkSelected.setVisible(!0)},function(){e.indicator.setVisible(!0),e.checkSelected.setVisible(!1)}),this.setVisible(!1)},setValue:function(e){e=e||{};var t=0<BI.size(e.value);this.setVisible(t)}}),BI.MultiTreeCheckSelectedButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.multi_tree_check_selected_button",BI.MultiTreeCheckSelectedButton)},function(e,t){BI.MultiTreeSearchInsertPane=BI.inherit(BI.Widget,{constants:{height:24},props:{baseCls:"bi-multi-tree-search-insert-pane bi-card",itemsCreator:BI.emptyFn,keywordGetter:BI.emptyFn,el:{type:"bi.part_tree"}},render:function(){var n=this,r=this.options;return{type:"bi.absolute",items:[{el:{type:"bi.text_button",invisible:!0,ref:function(e){n.addTip=e},text:BI.i18nText("BI-Basic_Click_To_Add_Text",""),height:this.constants.height,cls:"bi-high-light",handler:function(){n.fireEvent(BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM,r.keywordGetter())}},top:5,left:0,right:0},{el:BI.extend({type:"bi.part_tree",tipText:BI.i18nText("BI-No_Select"),itemsCreator:function(e,t){e.keyword=r.keywordGetter(),r.itemsCreator(e,function(e){t(e),n.setKeyword(r.keywordGetter(),e.items)})},ref:function(e){n.partTree=e},value:r.value,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}},{eventName:BI.TreeView.EVENT_CHANGE,action:function(){n.fireEvent(BI.MultiTreeSearchInsertPane.EVENT_CHANGE)}}]},r.el),left:0,top:0,bottom:0,right:0}]}},setKeyword:function(e,t){var n=BI.isEmptyArray(t);this.addTip.setVisible(n),this.partTree.setVisible(!n),n&&this.addTip.setText(BI.i18nText("BI-Basic_Click_To_Add_Text",e))},hasChecked:function(){return this.partTree.hasChecked()},setValue:function(e){this.setSelectedValue(e.value)},setSelectedValue:function(e){e=e||{},this.partTree.setSelectedValue(e)},getValue:function(){return this.partTree.getValue()},empty:function(){this.partTree.empty()},populate:function(e){this.partTree.stroke.apply(this.partTree,arguments)}}),BI.MultiTreeSearchInsertPane.EVENT_CHANGE="EVENT_CHANGE",BI.MultiTreeSearchInsertPane.EVENT_CLICK_CONFIRM="EVENT_CLICK_CONFIRM",BI.MultiTreeSearchInsertPane.EVENT_CLICK_CLEAR="EVENT_CLICK_CLEAR",BI.MultiTreeSearchInsertPane.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.shortcut("bi.multi_tree_search_insert_pane",BI.MultiTreeSearchInsertPane)},function(e,t){BI.MultiTreeSearchPane=BI.inherit(BI.Pane,{props:{baseCls:"bi-multi-tree-search-pane bi-card",itemsCreator:BI.emptyFn,keywordGetter:BI.emptyFn},render:function(){var t=this,n=this.options;return BI.extend({type:"bi.part_tree",element:this,tipText:BI.i18nText("BI-No_Select"),itemsCreator:function(e,t){e.keyword=n.keywordGetter(),n.itemsCreator(e,t)},value:n.value,listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(){t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}},{eventName:BI.TreeView.EVENT_CHANGE,action:function(){t.fireEvent(BI.MultiTreeSearchPane.EVENT_CHANGE)}}],ref:function(e){t.partTree=e}},n.el)},hasChecked:function(){return this.partTree.hasChecked()},setValue:function(e){this.setSelectedValue(e.value)},setSelectedValue:function(e){e=e||{},this.partTree.setSelectedValue(e)},getValue:function(){return this.partTree.getValue()},empty:function(){this.partTree.empty()},populate:function(e){this.partTree.stroke.apply(this.partTree,arguments)}}),BI.MultiTreeSearchPane.EVENT_CHANGE="EVENT_CHANGE",BI.MultiTreeSearchPane.EVENT_CLICK_CONFIRM="EVENT_CLICK_CONFIRM",BI.MultiTreeSearchPane.EVENT_CLICK_CLEAR="EVENT_CLICK_CLEAR",BI.shortcut("bi.multi_tree_search_pane",BI.MultiTreeSearchPane)},function(e,t){BI.MultiListTreeSearcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiListTreeSearcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-searcher",itemsCreator:BI.emptyFn,valueFormatter:function(e){return e},popup:{},adapter:null,masker:{}})},_init:function(){BI.MultiListTreeSearcher.superclass._init.apply(this,arguments);var n=this,r=this.options;this.editor=BI.createWidget({type:"bi.multi_select_editor",height:r.height,text:r.text,watermark:r.watermark,el:{type:"bi.simple_state_editor",height:r.height}}),this.searcher=BI.createWidget({type:"bi.searcher",element:this,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t({keyword:n.editor.getValue()})},el:this.editor,popup:BI.extend({type:"bi.multi_tree_search_pane",keywordGetter:function(){return n.editor.getValue()},itemsCreator:function(e,t){e.keyword=n.editor.getValue(),r.itemsCreator(e,t)},value:r.value},r.popup),adapter:r.adapter,masker:r.masker}),this.searcher.on(BI.Searcher.EVENT_START,function(){n.fireEvent(BI.MultiListTreeSearcher.EVENT_START)}),this.searcher.on(BI.Searcher.EVENT_PAUSE,function(){this.hasMatched(),n.fireEvent(BI.MultiListTreeSearcher.EVENT_PAUSE)}),this.searcher.on(BI.Searcher.EVENT_STOP,function(){n.fireEvent(BI.MultiListTreeSearcher.EVENT_STOP)}),this.searcher.on(BI.Searcher.EVENT_CHANGE,function(){n.fireEvent(BI.MultiListTreeSearcher.EVENT_CHANGE,arguments)}),BI.isNotNull(r.value)&&this.setState(r.value)},adjustView:function(){this.searcher.adjustView()},setAdapter:function(e){this.searcher.setAdapter(e)},isSearching:function(){return this.searcher.isSearching()},stopSearch:function(){this.searcher.stopSearch()},getKeyword:function(){return this.editor.getValue()},hasMatched:function(){return this.searcher.hasMatched()},hasChecked:function(){return this.searcher.getView()&&this.searcher.getView().hasChecked()},setState:function(e){var r=this.options;(e=e||{}).value||(e.value=[]);var i,a=0;BI.isNumber(e)?this.editor.setState(e):0===BI.size(e.value)?this.editor.setState(BI.Selection.None):(i="",BI.each(e.value,function(e,t){var n=BI.last(t);i+=(r.valueFormatter(n+"")||n)+"; ",a++}),20<a?this.editor.setState(BI.Selection.Multi):this.editor.setState(i))},getState:function(){return this.editor.getState()},setValue:function(e){this.setState(e),this.searcher.setValue(e)},getKey:function(){return this.editor.getValue()},getValue:function(){return this.searcher.getValue()},populate:function(e){this.searcher.populate.apply(this.searcher,arguments)}}),BI.MultiListTreeSearcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.MultiListTreeSearcher.EVENT_CHANGE="EVENT_CHANGE",BI.MultiListTreeSearcher.EVENT_START="EVENT_START",BI.MultiListTreeSearcher.EVENT_STOP="EVENT_STOP",BI.MultiListTreeSearcher.EVENT_PAUSE="EVENT_PAUSE",BI.shortcut("bi.multi_list_tree_searcher",BI.MultiListTreeSearcher)},function(e,t){BI.MultiTreeSearcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.MultiTreeSearcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-tree-searcher",itemsCreator:BI.emptyFn,valueFormatter:function(e){return e},popup:{},adapter:null,masker:{}})},_init:function(){BI.MultiTreeSearcher.superclass._init.apply(this,arguments);var n=this,r=this.options;this.editor=BI.createWidget({type:"bi.multi_select_editor",watermark:r.watermark,height:r.height,el:{type:"bi.simple_state_editor",text:r.text,height:r.height},listeners:[{eventName:BI.MultiSelectEditor.EVENT_FOCUS,action:function(){n.fireEvent(BI.MultiSelectSearcher.EVENT_FOCUS)}},{eventName:BI.MultiSelectEditor.EVENT_BLUR,action:function(){n.fireEvent(BI.MultiSelectSearcher.EVENT_BLUR)}}]}),this.searcher=BI.createWidget({type:"bi.searcher",element:this,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t({keyword:n.editor.getValue()})},el:this.editor,popup:BI.extend({type:"bi.multi_tree_search_pane",keywordGetter:function(){return n.editor.getValue()},itemsCreator:function(e,t){e.keyword=n.editor.getValue(),r.itemsCreator(e,t)},value:r.value},r.popup),adapter:r.adapter,masker:r.masker}),this.searcher.on(BI.Searcher.EVENT_START,function(){n.fireEvent(BI.MultiTreeSearcher.EVENT_START)}),this.searcher.on(BI.Searcher.EVENT_PAUSE,function(){n.fireEvent(BI.MultiTreeSearcher.EVENT_PAUSE)}),this.searcher.on(BI.Searcher.EVENT_STOP,function(){n.fireEvent(BI.MultiTreeSearcher.EVENT_STOP)}),this.searcher.on(BI.Searcher.EVENT_CHANGE,function(){n.fireEvent(BI.MultiTreeSearcher.EVENT_CHANGE,arguments)}),this.searcher.on(BI.Searcher.EVENT_SEARCHING,function(){var e=this.getKeywords();n.fireEvent(BI.MultiTreeSearcher.EVENT_SEARCHING,e)}),BI.isNotNull(r.value)&&this.setState(r.value)},adjustView:function(){this.searcher.adjustView()},setAdapter:function(e){this.searcher.setAdapter(e)},isSearching:function(){return this.searcher.isSearching()},stopSearch:function(){this.searcher.stopSearch()},getKeyword:function(){return this.editor.getValue()},hasMatched:function(){return this.searcher.hasMatched()},hasChecked:function(){return this.searcher.getView()&&this.searcher.getView().hasChecked()},setState:function(e){var c=this.options;(e=e||{}).value||(e.value={});var r,i,t,u=0;BI.isNumber(e)?this.editor.setState(e):0===BI.size(e.value)?this.editor.setState(BI.Selection.None):(r="",i=e.value,t=BI.Func.getSortedResult(BI.keys(i)),BI.each(t,function(e,t){var n=function s(r){var i="";var a=0,o=BI.size(r);var e=BI.Func.getSortedResult(BI.keys(r));BI.each(e,function(e,t){a++;var n=s(r[t]);i+=(c.valueFormatter(t+"")||t)+(""===n?"":":"+n)+(a===o?"":","),""===n&&u++});return i}(i[t]);r+=(c.valueFormatter(t+"")||t)+(""===n?"":":"+n)+"; ",""===n&&u++}),20<u?this.editor.setState(BI.Selection.Multi):this.editor.setState(r))},getState:function(){return this.editor.getState()},setValue:function(e){this.setState(e),this.searcher.setValue(e)},getKey:function(){return this.editor.getValue()},getValue:function(){return this.searcher.getValue()},populate:function(e){this.searcher.populate.apply(this.searcher,arguments)}}),BI.MultiTreeSearcher.EVENT_SEARCHING="EVENT_SEARCHING",BI.MultiTreeSearcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.MultiTreeSearcher.EVENT_CHANGE="EVENT_CHANGE",BI.MultiTreeSearcher.EVENT_START="EVENT_START",BI.MultiTreeSearcher.EVENT_STOP="EVENT_STOP",BI.MultiTreeSearcher.EVENT_PAUSE="EVENT_PAUSE",BI.shortcut("bi.multi_tree_searcher",BI.MultiTreeSearcher)},function(e,t){BI.NumberEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.NumberEditor.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-number-editor bi-border bi-focus-shadow",validationChecker:BI.emptyFn,valueFormatter:function(e){return e},value:0,allowBlank:!1,errorText:"",step:1,min:BI.MIN,max:BI.MAX})},_init:function(){BI.NumberEditor.superclass._init.apply(this,arguments);var t=this,n=this.options;this.editor=BI.createWidget({type:"bi.sign_editor",height:n.height-2,allowBlank:n.allowBlank,value:n.valueFormatter(n.value),validationChecker:function(e){return!(n.validationChecker===BI.emptyFn&&!t._checkValueInRange(e))&&n.validationChecker(e)},errorText:n.errorText}),this.editor.on(BI.TextEditor.EVENT_CHANGE,function(){t.fireEvent(BI.NumberEditor.EVENT_CHANGE)}),this.editor.on(BI.TextEditor.EVENT_ERROR,function(){n.value=BI.parseFloat(this.getLastValidValue()),t._checkAdjustDisabled(n.value)}),this.editor.on(BI.TextEditor.EVENT_VALID,function(){n.value=BI.parseFloat(this.getValue()),t._checkAdjustDisabled(n.value)}),this.editor.on(BI.TextEditor.EVENT_CONFIRM,function(){t.fireEvent(BI.NumberEditor.EVENT_CONFIRM)}),this.topBtn=BI.createWidget({type:"bi.icon_button",forceNotSelected:!0,trigger:"lclick,",cls:"add-up-font top-button bi-border-left bi-list-item-active2 icon-size-12"}),this.topBtn.on(BI.IconButton.EVENT_CHANGE,function(){t._finetuning(n.step),t.fireEvent(BI.NumberEditor.EVENT_CHANGE),t.fireEvent(BI.NumberEditor.EVENT_CONFIRM)}),this.bottomBtn=BI.createWidget({type:"bi.icon_button",trigger:"lclick,",forceNotSelected:!0,cls:"minus-down-font bottom-button bi-border-left bi-list-item-active2 icon-size-12"}),this.bottomBtn.on(BI.IconButton.EVENT_CHANGE,function(){t._finetuning(-n.step),t.fireEvent(BI.NumberEditor.EVENT_CHANGE),t.fireEvent(BI.NumberEditor.EVENT_CONFIRM)}),BI.createWidget({type:"bi.htape",height:n.height-2,element:this,items:[this.editor,{el:{type:"bi.grid",columns:1,rows:2,items:[{column:0,row:0,el:this.topBtn},{column:0,row:1,el:this.bottomBtn}]},width:23}]})},focus:function(){this.editor.focus()},isEditing:function(){return this.editor.isEditing()},_checkValueInRange:function(e){var t=this.options;return!!(BI.isNumeric(e)&&BI.parseFloat(e)>=t.min&&BI.parseFloat(e)<=t.max)},_checkAdjustDisabled:function(e){this.options.validationChecker===BI.emptyFn&&(this.bottomBtn.setEnable(BI.parseFloat(e)>this.options.min),this.topBtn.setEnable(BI.parseFloat(e)<this.options.max))},_finetuning:function(e){var t=BI.parseFloat(this.getValue());this.setValue(BI.add(t,e))},setUpEnable:function(e){this.topBtn.setEnable(!!e)},setDownEnable:function(e){this.bottomBtn.setEnable(!!e)},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},getValue:function(){return this.options.value},setValue:function(e){var t=this.options;t.value=e,this.editor.setValue(t.valueFormatter(e))}}),BI.NumberEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.NumberEditor.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.number_editor",BI.NumberEditor)},function(e,t){BI.NumberInterval=BI.inherit(BI.Single,{constants:{typeError:"typeBubble",numberError:"numberBubble",signalError:"signalBubble",editorWidth:114,columns:5,width:24,rows:1,numberErrorCls:"number-error",border:1,less:0,less_equal:1,numTip:"",adjustYOffset:2},_defaultConfig:function(){var e=BI.NumberInterval.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-number-interval"+(BI.isIE()&&BI.getIEVersion()<10?" hack":""),height:24,validation:"valid",closeMin:!0,allowBlank:!0,watermark:BI.i18nText("BI-Basic_Unrestricted")})},_init:function(){var t=this,n=this.constants,e=this.options;BI.NumberInterval.superclass._init.apply(this,arguments),this.smallEditor=BI.createWidget({type:"bi.number_interval_single_editor",height:e.height-2,watermark:e.watermark,allowBlank:e.allowBlank,value:e.min,level:"warning",tipType:"success",title:function(){return t.smallEditor&&t.smallEditor.getValue()},quitChecker:function(){return!1},validationChecker:function(e){return!!BI.isNumeric(e)||(t.smallEditorBubbleType=n.typeError,!1)},cls:"number-interval-small-editor bi-border"}),this.smallTip=BI.createWidget({type:"bi.label",text:e.numTip,height:e.height-2,invisible:!0}),BI.createWidget({type:"bi.absolute",element:this.smallEditor.element,items:[{el:this.smallTip,top:0,right:5}]}),this.bigEditor=BI.createWidget({type:"bi.number_interval_single_editor",height:e.height-2,watermark:e.watermark,allowBlank:e.allowBlank,value:e.max,title:function(){return t.bigEditor&&t.bigEditor.getValue()},quitChecker:function(){return!1},validationChecker:function(e){return!!BI.isNumeric(e)||(t.bigEditorBubbleType=n.typeError,!1)},cls:"number-interval-big-editor bi-border"}),this.bigTip=BI.createWidget({type:"bi.label",text:e.numTip,height:e.height-2,invisible:!0}),BI.createWidget({type:"bi.absolute",element:this.bigEditor.element,items:[{el:this.bigTip,top:0,right:5}]}),this.smallCombo=BI.createWidget({type:"bi.icon_combo",cls:"number-interval-small-combo bi-border-top bi-border-bottom bi-border-right",height:e.height-2,items:[{text:"("+BI.i18nText("BI-Less_Than")+")",iconCls:"less-font",value:0},{text:"("+BI.i18nText("BI-Less_And_Equal")+")",value:1,iconCls:"less-equal-font"}]}),!0===e.closeMin?this.smallCombo.setValue(1):this.smallCombo.setValue(0),this.bigCombo=BI.createWidget({type:"bi.icon_combo",cls:"number-interval-big-combo bi-border-top bi-border-bottom bi-border-left",height:e.height-2,items:[{text:"("+BI.i18nText("BI-Less_Than")+")",iconCls:"less-font",value:0},{text:"("+BI.i18nText("BI-Less_And_Equal")+")",value:1,iconCls:"less-equal-font"}]}),!0===e.closeMax?this.bigCombo.setValue(1):this.bigCombo.setValue(0),this.label=BI.createWidget({type:"bi.label",text:BI.i18nText("BI-Basic_Value"),textHeight:e.height-2*n.border,width:n.width-2*n.border,height:e.height-2*n.border,level:"warning",tipType:"warning"}),this.left=BI.createWidget({type:"bi.htape",items:[{el:t.smallEditor},{el:t.smallCombo,width:n.width-n.border}]}),this.right=BI.createWidget({type:"bi.htape",items:[{el:t.bigCombo,width:n.width-n.border},{el:t.bigEditor,lgap:1}]}),BI.createWidget({element:t,type:"bi.center",hgap:15,height:e.height,items:[{type:"bi.absolute",items:[{el:t.left,left:-15,right:0,top:0,bottom:0}]},{type:"bi.absolute",items:[{el:t.right,left:0,right:-15,top:0,bottom:0}]}]}),BI.createWidget({element:t,type:"bi.horizontal_auto",items:[t.label]}),t._setValidEvent(t.bigEditor,n.bigEditor),t._setValidEvent(t.smallEditor,n.smallEditor),t._setErrorEvent(t.bigEditor,n.bigEditor),t._setErrorEvent(t.smallEditor,n.smallEditor),t._setBlurEvent(t.bigEditor),t._setBlurEvent(t.smallEditor),t._setFocusEvent(t.bigEditor),t._setFocusEvent(t.smallEditor),t._setComboValueChangedEvent(t.bigCombo),t._setComboValueChangedEvent(t.smallCombo),t._setEditorValueChangedEvent(t.bigEditor),t._setEditorValueChangedEvent(t.smallEditor),t._checkValidation()},_checkValidation:function(){var e=this,t=this.constants,n=this.options;if(e._setTitle(""),BI.Bubbles.hide(t.typeError),BI.Bubbles.hide(t.numberError),BI.Bubbles.hide(t.signalError),!e.smallEditor.isValid()||!e.bigEditor.isValid())return e.element.removeClass("number-error"),n.validation="invalid",t.typeError;if(BI.isEmptyString(e.smallEditor.getValue())||BI.isEmptyString(e.bigEditor.getValue()))return e.element.removeClass("number-error"),n.validation="valid","";var r=parseFloat(e.smallEditor.getValue()),i=parseFloat(e.bigEditor.getValue()),a=e.bigCombo.getValue(),o=e.smallCombo.getValue();return a[0]===t.less_equal&&o[0]===t.less_equal?i<r?(e.element.addClass("number-error"),n.validation="invalid",t.numberError):(e.element.removeClass("number-error"),n.validation="valid",""):i<r?(e.element.addClass("number-error"),n.validation="invalid",t.numberError):r===i?(e.element.addClass("number-error"),n.validation="invalid",t.signalError):(e.element.removeClass("number-error"),n.validation="valid","")},_setTitle:function(e){this.label.setTitle(e)},_setFocusEvent:function(e){var t=this,n=this.constants;e.on(BI.NumberIntervalSingleEidtor.EVENT_FOCUS,function(){switch(t._setTitle(""),t._checkValidation()){case n.typeError:BI.Bubbles.show(n.typeError,BI.i18nText("BI-Numerical_Interval_Input_Data"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset});break;case n.numberError:BI.Bubbles.show(n.numberError,BI.i18nText("BI-Numerical_Interval_Number_Value"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset});break;case n.signalError:BI.Bubbles.show(n.signalError,BI.i18nText("BI-Numerical_Interval_Signal_Value"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset});break;default:return}})},_setBlurEvent:function(e){var t=this.constants,n=this;e.on(BI.NumberIntervalSingleEidtor.EVENT_BLUR,function(){switch(BI.Bubbles.hide(t.typeError),BI.Bubbles.hide(t.numberError),BI.Bubbles.hide(t.signalError),n._checkValidation()){case t.typeError:n._setTitle(BI.i18nText("BI-Numerical_Interval_Input_Data"));break;case t.numberError:n._setTitle(BI.i18nText("BI-Numerical_Interval_Number_Value"));break;case t.signalError:n._setTitle(BI.i18nText("BI-Numerical_Interval_Signal_Value"));break;default:n._setTitle("")}})},_setErrorEvent:function(e){var t=this.constants,n=this;e.on(BI.NumberIntervalSingleEidtor.EVENT_ERROR,function(){n._checkValidation(),BI.Bubbles.show(t.typeError,BI.i18nText("BI-Numerical_Interval_Input_Data"),n,{offsetStyle:"left",adjustYOffset:t.adjustYOffset}),n.fireEvent(BI.NumberInterval.EVENT_ERROR)})},_setValidEvent:function(e){var t=this,n=this.constants;e.on(BI.NumberIntervalSingleEidtor.EVENT_VALID,function(){switch(t._checkValidation()){case n.numberError:BI.Bubbles.show(n.numberError,BI.i18nText("BI-Numerical_Interval_Number_Value"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset}),t.fireEvent(BI.NumberInterval.EVENT_ERROR);break;case n.signalError:BI.Bubbles.show(n.signalError,BI.i18nText("BI-Numerical_Interval_Signal_Value"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset}),t.fireEvent(BI.NumberInterval.EVENT_ERROR);break;default:t.fireEvent(BI.NumberInterval.EVENT_VALID)}})},_setEditorValueChangedEvent:function(e){var t=this,n=this.constants;e.on(BI.NumberIntervalSingleEidtor.EVENT_CHANGE,function(){switch(t._checkValidation()){case n.typeError:BI.Bubbles.show(n.typeError,BI.i18nText("BI-Numerical_Interval_Input_Data"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset});break;case n.numberError:BI.Bubbles.show(n.numberError,BI.i18nText("BI-Numerical_Interval_Number_Value"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset});break;case n.signalError:BI.Bubbles.show(n.signalError,BI.i18nText("BI-Numerical_Interval_Signal_Value"),t,{offsetStyle:"left",adjustYOffset:n.adjustYOffset})}t.fireEvent(BI.NumberInterval.EVENT_CHANGE)}),e.on(BI.NumberIntervalSingleEidtor.EVENT_CONFIRM,function(){t.fireEvent(BI.NumberInterval.EVENT_CONFIRM)})},_setComboValueChangedEvent:function(e){var t=this,n=this.constants;e.on(BI.IconCombo.EVENT_CHANGE,function(){switch(t._checkValidation()){case n.typeError:t._setTitle(BI.i18nText("BI-Numerical_Interval_Input_Data")),t.fireEvent(BI.NumberInterval.EVENT_ERROR);break;case n.numberError:t._setTitle(BI.i18nText("BI-Numerical_Interval_Number_Value")),t.fireEvent(BI.NumberInterval.EVENT_ERROR);break;case n.signalError:t._setTitle(BI.i18nText("BI-Numerical_Interval_Signal_Value")),t.fireEvent(BI.NumberInterval.EVENT_ERROR);break;default:t.fireEvent(BI.NumberInterval.EVENT_CHANGE),t.fireEvent(BI.NumberInterval.EVENT_CONFIRM),t.fireEvent(BI.NumberInterval.EVENT_VALID)}})},isStateValid:function(){return"valid"===this.options.validation},setMinEnable:function(e){this.smallEditor.setEnable(e)},setCloseMinEnable:function(e){this.smallCombo.setEnable(e)},setMaxEnable:function(e){this.bigEditor.setEnable(e)},setCloseMaxEnable:function(e){this.bigCombo.setEnable(e)},showNumTip:function(){this.smallTip.setVisible(!0),this.bigTip.setVisible(!0)},hideNumTip:function(){this.smallTip.setVisible(!1),this.bigTip.setVisible(!1)},setNumTip:function(e){this.smallTip.setText(e),this.bigTip.setText(e)},getNumTip:function(){return this.smallTip.getText()},setValue:function(e){e=e||{};var t;(BI.isNumeric(e.min)||BI.isEmptyString(e.min))&&this.smallEditor.setValue(e.min),BI.isNotNull(e.min)||this.smallEditor.setValue(""),(BI.isNumeric(e.max)||BI.isEmptyString(e.max))&&this.bigEditor.setValue(e.max),BI.isNotNull(e.max)||this.bigEditor.setValue(""),BI.isNull(e.closeMin)||(t=!0===e.closeMin?1:0,this.smallCombo.setValue(t)),BI.isNull(e.closeMax)||(t=!0===e.closeMax?1:0,this.bigCombo.setValue(t)),this._checkValidation()},getValue:function(){var e={},t=this.smallCombo.getValue(),n=this.bigCombo.getValue();return e.min=this.smallEditor.getValue(),e.max=this.bigEditor.getValue(),0===t[0]?e.closeMin=!1:e.closeMin=!0,0===n[0]?e.closeMax=!1:e.closeMax=!0,e},destroyed:function(){var e=this.constants;BI.Bubbles.remove(e.typeError),BI.Bubbles.remove(e.numberError),BI.Bubbles.remove(e.signalError)}}),BI.NumberInterval.EVENT_CHANGE="EVENT_CHANGE",BI.NumberInterval.EVENT_CONFIRM="EVENT_CONFIRM",BI.NumberInterval.EVENT_VALID="EVENT_VALID",BI.NumberInterval.EVENT_ERROR="EVENT_ERROR",BI.shortcut("bi.number_interval",BI.NumberInterval)},function(e,t){BI.NumberIntervalSingleEidtor=BI.inherit(BI.Single,{props:{baseCls:"bi-number-interval-single-editor",tipType:"success",title:""},render:function(){var t=this,e=this.options;return{type:"bi.vertical",items:[{type:"bi.editor",ref:function(e){t.editor=e},height:e.height-2,watermark:e.watermark,allowBlank:e.allowBlank,value:e.value,quitChecker:e.quitChecker,validationChecker:e.validationChecker,listeners:[{eventName:BI.Editor.EVENT_ERROR,action:function(){t.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_ERROR,arguments)}},{eventName:BI.Editor.EVENT_FOCUS,action:function(){t.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_FOCUS,arguments)}},{eventName:BI.Editor.EVENT_BLUR,action:function(){t.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_BLUR,arguments)}},{eventName:BI.Editor.EVENT_VALID,action:function(){t.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_VALID,arguments)}},{eventName:BI.Editor.EVENT_CHANGE,action:function(){t.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_CHANGE,arguments)}},{eventName:BI.Editor.EVENT_CONFIRM,action:function(){t.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_CONFIRM,arguments)}},{eventName:BI.Editor.EVENT_CHANGE_CONFIRM,action:function(){t.fireEvent(BI.NumberIntervalSingleEidtor.EVENT_CHANGE_CONFIRM,arguments)}}]}]}},isValid:function(){return this.editor.isValid()},getValue:function(){return this.editor.getValue()},setValue:function(e){return this.editor.setValue(e)}}),BI.NumberIntervalSingleEidtor.EVENT_FOCUS="EVENT_FOCUS",BI.NumberIntervalSingleEidtor.EVENT_BLUR="EVENT_BLUR",BI.NumberIntervalSingleEidtor.EVENT_ERROR="EVENT_ERROR",BI.NumberIntervalSingleEidtor.EVENT_VALID="EVENT_VALID",BI.NumberIntervalSingleEidtor.EVENT_CHANGE="EVENT_CHANGE",BI.NumberIntervalSingleEidtor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.NumberIntervalSingleEidtor.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.number_interval_single_editor",BI.NumberIntervalSingleEidtor)},function(e,t){BI.SearchMultiTextValueCombo=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.SearchMultiTextValueCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-combo bi-search-multi-text-value-combo",height:24,items:[]})},_init:function(){BI.SearchMultiTextValueCombo.superclass._init.apply(this,arguments);var r=this,e=this.options,n=function(){BI.isKey(r._startValue)&&(r.storeValue.type===BI.Selection.All?BI.remove(r.storeValue.value,r._startValue):BI.pushDistinct(r.storeValue.value,r._startValue)),r._updateAllValue(),r._checkError(),r.trigger.getSearcher().setState(r.storeValue),r.trigger.getCounter().setButtonChecked(r.storeValue)};this.storeValue=BI.deepClone(e.value||{}),this._updateAllValue(),this._assertValue(this.storeValue),this._checkError(),this.requesting=!1,this.trigger=BI.createWidget({type:"bi.search_multi_select_trigger",text:e.text,height:e.height,masker:{offset:{left:0,top:0,right:0,bottom:25}},allValueGetter:function(){return r.allValue},valueFormatter:e.valueFormatter,itemsCreator:function(t,n){r._itemsCreator(t,function(e){1===t.times&&BI.isNotNull(t.keywords)&&r.trigger.setValue(BI.deepClone(r.getValue())),n.apply(r,arguments)})},value:this.storeValue,warningTitle:e.warningTitle}),this.trigger.on(BI.MultiSelectTrigger.EVENT_START,function(){r._setStartValue(""),this.getSearcher().setValue(r.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_STOP,function(){r._setStartValue("")}),this.trigger.on(BI.MultiSelectTrigger.EVENT_PAUSE,function(){var e;this.getSearcher().hasMatched()&&(e=this.getSearcher().getKeyword(),r._join({type:BI.Selection.Multi,value:[e]},function(){r.combo.setValue(r.storeValue),r._setStartValue(e),n(),r._populate(),r._setStartValue("")}))}),this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING,function(e){var t=BI.last(e);0<(e=BI.initial(e||[])).length&&r._joinKeywords(e,function(){BI.isEndWithBlank(t)?(r.combo.setValue(r.storeValue),n(),r.combo.populate(),r._setStartValue("")):(r.combo.setValue(r.storeValue),n())})}),this.trigger.on(BI.MultiSelectTrigger.EVENT_CHANGE,function(e,t){t instanceof BI.MultiSelectBar?r._joinAll(this.getValue(),function(){n()}):r._join(this.getValue(),function(){n()})}),this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW,function(){this.getCounter().setValue(r.storeValue)}),this.trigger.on(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK,function(){r.combo.isViewVisible()||r.combo.showView()}),this.combo=BI.createWidget({type:"bi.combo",toggle:!1,container:e.container,el:this.trigger,adjustLength:1,popup:{type:"bi.search_multi_select_popup_view",ref:function(){r.popup=this,r.trigger.setAdapter(this)},listeners:[{eventName:BI.MultiSelectPopupView.EVENT_CHANGE,action:function(){r.storeValue=this.getValue(),r._adjust(function(){n()})}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CONFIRM,action:function(){r._defaultState()}},{eventName:BI.MultiSelectPopupView.EVENT_CLICK_CLEAR,action:function(){r.setValue(),r._defaultState()}}],itemsCreator:BI.bind(r._itemsCreator,this),valueFormatter:e.valueFormatter,onLoaded:function(){BI.nextTick(function(){r.combo.adjustWidth(),r.combo.adjustHeight(),r.trigger.getCounter().adjustView(),r.trigger.getSearcher().adjustView()})}},value:e.value,hideChecker:function(e){return 0===t.element.find(e.target).length}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){this.setValue(r.storeValue),BI.nextTick(function(){r._populate()})}),this.wants2Quit=!1,this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){r.trigger.stopEditing(),!0===r.requesting?r.wants2Quit=!0:(n(),r.fireEvent(BI.SearchMultiTextValueCombo.EVENT_CONFIRM))});var t=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"multi-select-trigger-icon-button"});t.on(BI.TriggerIconButton.EVENT_CHANGE,function(){r.trigger.getCounter().hideView(),r.combo.isViewVisible()?r.combo.hideView():r.combo.showView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:t,right:0,top:0,bottom:0}]}),this._checkError()},_defaultState:function(){this.trigger.stopEditing(),this.combo.hideView()},_assertValue:function(e){var n=this.options;(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[]),BI.remove(e.value,function(e,t){return!BI.contains(BI.map(n.items,"value"),t)})},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this;this.options;this._assertValue(this.storeValue),this.requesting=!0,this._itemsCreator({type:BI.SearchMultiTextValueCombo.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&(o.storeValue.type===BI.Selection.Multi?BI.pushDistinct(o.storeValue.value,t):BI.remove(o.storeValue.value,t))}),o._adjust(a)})},_joinAll:function(t,c){var u=this;this.options;this._assertValue(t),this.requesting=!0,this._itemsCreator({type:BI.SearchMultiTextValueCombo.REQ_GET_ALL_DATA,keywords:[this.trigger.getKey()]},function(e){var n=BI.map(e.items,"value");if(u.storeValue.type===t.type){var r=!1,i=u._makeMap(u.storeValue.value);return BI.each(n,function(e,t){BI.isNotNull(i[t])&&(r=!0,u.storeValue.assist&&u.storeValue.assist.push(i[t]),delete i[t])}),r&&(u.storeValue.value=BI.values(i)),void u._adjust(c)}var a=u._makeMap(u.storeValue.value),o=u._makeMap(t.value),s=[];BI.each(n,function(e,t){BI.isNotNull(a[n[e]])&&(u.storeValue.assist&&u.storeValue.assist.push(a[n[e]]),delete a[n[e]]),BI.isNull(o[n[e]])&&(BI.remove(u.storeValue.assist,t),s.push(t))}),u.storeValue.value=s.concat(BI.values(a)),u._adjust(c)})},_adjust:function(t){var n=this;this.options;function r(){n.storeValue.type===BI.Selection.All&&n.storeValue.value.length>=n._count?n.storeValue={type:BI.Selection.Multi,value:[]}:n.storeValue.type===BI.Selection.Multi&&n.storeValue.value.length>=n._count&&(n.storeValue={type:BI.Selection.All,value:[]}),n._updateAllValue(),n._checkError(),!0===n.wants2Quit&&(n.fireEvent(BI.SearchMultiTextValueCombo.EVENT_CONFIRM),n.wants2Quit=!1),n.requesting=!1}this._count?(r(),t()):this._itemsCreator({type:BI.SearchMultiTextValueCombo.REQ_GET_DATA_LENGTH},function(e){n._count=e.count,r(),t()})},_join:function(e,t){var n=this;this.options;if(this._assertValue(e),this._assertValue(this.storeValue),this.storeValue.type===e.type){var r=this._makeMap(this.storeValue.value);BI.each(e.value,function(e,t){r[t]||(n.storeValue.value.push(t),BI.remove(n.storeValue.assist,t),r[t]=t)});var i=!1;return BI.each(e.assist,function(e,t){BI.isNotNull(r[t])&&(i=!0,n.storeValue.assist&&n.storeValue.assist.push(r[t]),delete r[t])}),i&&(this.storeValue.value=BI.values(r)),void n._adjust(t)}this._joinAll(e,t)},_setStartValue:function(e){this._startValue=e,this.popup.setStartValue(e)},_getItemsByTimes:function(e,t){for(var n=[],r=100*(t-1);e[r]&&r<100*t;r++)n.push(e[r]);return n},_hasNextByTimes:function(e,t){return 100*t<e.length},_itemsCreator:function(e,t){var n,r=this.options.items,i=(e.keywords||[]).slice();e.keyword&&i.push(e.keyword),BI.each(i,function(e,t){var n=BI.Func.getSearchResult(r,t);r=n.match.concat(n.find)}),e.selectedValues&&(n=BI.makeObject(e.selectedValues,!0),r=BI.filter(r,function(e,t){return!n[t.value]})),e.type!=BI.MultiSelectCombo.REQ_GET_ALL_DATA?e.type!=BI.MultiSelectCombo.REQ_GET_DATA_LENGTH?t({items:this._getItemsByTimes(r,e.times),hasNext:this._hasNextByTimes(r,e.times)}):t({count:r.length}):t({items:r})},_checkError:function(){var e,n=this.storeValue.value||[];BI.isNotEmptyArray(n)?(n=BI.isArray(n)?n:[n],e=BI.find(this.allValue,function(e,t){return!BI.contains(n,t)}),BI.isNull(e)?(BI.isNotNull(this.trigger)&&this.trigger.setTipType("success"),this.element.removeClass("combo-error")):(BI.isNotNull(this.trigger)&&this.trigger.setTipType("warning"),this.element.addClass("combo-error"))):n.length===this.allValue.length?(BI.isNotNull(this.trigger)&&this.trigger.setTipType("success"),this.element.removeClass("combo-error")):(BI.isNotNull(this.trigger)&&this.trigger.setTipType("warning"),this.element.addClass("combo-error"))},_updateAllValue:function(){this.storeValue=this.storeValue||{},this.allValue=BI.deepClone(this.storeValue.value||[])},setValue:function(e){this.storeValue=BI.deepClone(e||{}),this._updateAllValue(),this._assertValue(this.storeValue),this.combo.setValue(this.storeValue),this._checkError()},getValue:function(){return BI.deepClone(this.storeValue)},_populate:function(){this._count=null,this.combo.populate()},populate:function(e){this.options.items=e,this._populate()}}),BI.extend(BI.SearchMultiTextValueCombo,{REQ_GET_DATA_LENGTH:1,REQ_GET_ALL_DATA:-1}),BI.SearchMultiTextValueCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.search_multi_text_value_combo",BI.SearchMultiTextValueCombo)},function(e,t){BI.SearchMultiSelectTrigger=BI.inherit(BI.Trigger,{constants:{height:14,rgap:4,lgap:4},_defaultConfig:function(){return BI.extend(BI.SearchMultiSelectTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-trigger bi-border",itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,searcher:{},switcher:{},adapter:null,masker:{}})},_init:function(){BI.SearchMultiSelectTrigger.superclass._init.apply(this,arguments);var t=this,e=this.options;e.height&&this.setHeight(e.height-2),this.searcher=BI.createWidget(e.searcher,{type:"bi.search_multi_select_searcher",height:e.height,itemsCreator:e.itemsCreator,valueFormatter:e.valueFormatter,allValueGetter:e.allValueGetter,popup:{},adapter:e.adapter,masker:e.masker,value:e.value,text:e.text,tipType:e.tipType,warningTitle:e.warningTitle}),this.searcher.on(BI.MultiSelectSearcher.EVENT_START,function(){t.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_PAUSE,function(){t.fireEvent(BI.SearchMultiSelectTrigger.EVENT_PAUSE)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_SEARCHING,function(){t.fireEvent(BI.SearchMultiSelectTrigger.EVENT_SEARCHING,arguments)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_STOP,function(){t.fireEvent(BI.SearchMultiSelectTrigger.EVENT_STOP)}),this.searcher.on(BI.MultiSelectSearcher.EVENT_CHANGE,function(){t.fireEvent(BI.SearchMultiSelectTrigger.EVENT_CHANGE,arguments)}),this.numberCounter=BI.createWidget(e.switcher,{type:"bi.multi_select_check_selected_switcher",valueFormatter:e.valueFormatter,itemsCreator:e.itemsCreator,adapter:e.adapter,masker:e.masker,value:e.value}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,function(){t.fireEvent(BI.SearchMultiSelectTrigger.EVENT_COUNTER_CLICK)}),this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW,function(){t.fireEvent(BI.SearchMultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW)});var n=BI.createWidget({type:"bi.right_vertical_adapt",hgap:4,items:[{el:this.numberCounter}]}),r=BI.createWidget({type:"bi.htape",element:this,items:[{el:this.searcher,width:"fill"},{el:n,width:0},{el:BI.createWidget(),width:24}]});this.numberCounter.on(BI.Events.VIEW,function(e){BI.nextTick(function(){r.attr("items")[1].width=!0===e?t.numberCounter.element.outerWidth()+8:0,r.resize()})}),this.element.click(function(e){0<t.element.find(e.target).length&&t.numberCounter.hideView()})},getCounter:function(){return this.numberCounter},getSearcher:function(){return this.searcher},stopEditing:function(){this.searcher.stopSearch(),this.numberCounter.hideView()},setAdapter:function(e){this.searcher.setAdapter(e),this.numberCounter.setAdapter(e)},setValue:function(e){this.searcher.setValue(e),this.numberCounter.setValue(e)},setTipType:function(e){this.searcher.setTipType(e)},getKey:function(){return this.searcher.getKey()},getValue:function(){return this.searcher.getValue()}}),BI.SearchMultiSelectTrigger.EVENT_TRIGGER_CLICK="EVENT_TRIGGER_CLICK",BI.SearchMultiSelectTrigger.EVENT_COUNTER_CLICK="EVENT_COUNTER_CLICK",BI.SearchMultiSelectTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.SearchMultiSelectTrigger.EVENT_START="EVENT_START",BI.SearchMultiSelectTrigger.EVENT_STOP="EVENT_STOP",BI.SearchMultiSelectTrigger.EVENT_PAUSE="EVENT_PAUSE",BI.SearchMultiSelectTrigger.EVENT_SEARCHING="EVENT_SEARCHING",BI.SearchMultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW="EVENT_BEFORE_COUNTER_POPUPVIEW",BI.shortcut("bi.search_multi_select_trigger",BI.SearchMultiSelectTrigger)},function(e,t){BI.SearchMultiSelectLoader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SearchMultiSelectLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-loader",logic:{dynamic:!0},el:{height:400},valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn})},_init:function(){BI.SearchMultiSelectLoader.superclass._init.apply(this,arguments);var s=this,c=this.options,u=!1;this.storeValue=c.value||{},this._assertValue(this.storeValue),this.button_group=BI.createWidget({type:"bi.select_list",element:this,logic:c.logic,el:BI.extend({onLoaded:c.onLoaded,el:{type:"bi.loader",isDefaultInit:!1,logic:{dynamic:!0,scrolly:!0},el:{chooseType:BI.ButtonGroup.CHOOSE_TYPE_MULTI,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}]}}},c.el),itemsCreator:function(i,a){var o=s._startValue;s.storeValue&&(i=BI.extend(i||{},{selectedValues:BI.isKey(o)&&s.storeValue.type===BI.Selection.Multi?s.storeValue.value.concat(o):s.storeValue.value})),c.itemsCreator(i,function(e){u=e.hasNext;var t,n,r=[];1===i.times&&s.storeValue&&(t=BI.map(s.storeValue.value,function(e,t){var n=c.valueFormatter(t)||t;return{text:n,value:t,title:n,selected:s.storeValue.type===BI.Selection.Multi}}),BI.isKey(s._startValue)&&!BI.contains(s.storeValue.value,s._startValue)&&(n=c.valueFormatter(o)||o,t.unshift({text:n,value:o,title:n,selected:!0})),r=s._createItems(t)),a(r.concat(s._createItems(e.items)),e.keyword||""),1===i.times&&s.storeValue&&(BI.isKey(o)&&(s.storeValue.type===BI.Selection.All?BI.remove(s.storeValue.value,o):BI.pushDistinct(s.storeValue.value,o)),s.setValue(s.storeValue)),1===i.times&&s._scrollToTop()})},hasNext:function(){return u},value:this.storeValue}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(){s.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button_group.on(BI.SelectList.EVENT_CHANGE,function(){s.fireEvent(BI.SearchMultiSelectLoader.EVENT_CHANGE,arguments)})},_createItems:function(e){return BI.createItems(e,{type:"bi.multi_select_item",logic:this.options.logic,cls:"bi-list-item-active",height:24,selected:this.isAllSelected(),iconWrapperWidth:36})},_scrollToTop:function(){var e=this;BI.delay(function(){e.button_group.element.scrollTop(0)},30)},isAllSelected:function(){return this.button_group.isAllSelected()},_assertValue:function(e){(e=e||{}).type||(e.type=BI.Selection.Multi),e.value||(e.value=[])},setStartValue:function(e){this._startValue=e},setValue:function(e){this.storeValue=e||{},this._assertValue(this.storeValue),this.button_group.setValue(this.storeValue)},getValue:function(){return this.button_group.getValue()},getAllButtons:function(){return this.button_group.getAllButtons()},empty:function(){this.button_group.empty()},populate:function(e){arguments[0]=this._createItems(e),this.button_group.populate.apply(this.button_group,arguments)},resetHeight:function(e){this.button_group.resetHeight(e)},resetWidth:function(e){this.button_group.resetWidth(e)}}),BI.SearchMultiSelectLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.search_multi_select_loader",BI.SearchMultiSelectLoader)},function(e,t){BI.SearchMultiSelectPopupView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SearchMultiSelectPopupView.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-popup-view",maxWidth:"auto",minWidth:135,maxHeight:400,valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn})},_init:function(){BI.SearchMultiSelectPopupView.superclass._init.apply(this,arguments);var t=this,e=this.options;this.loader=BI.createWidget({type:"bi.search_multi_select_loader",itemsCreator:e.itemsCreator,valueFormatter:e.valueFormatter,onLoaded:e.onLoaded,value:e.value}),this.popupView=BI.createWidget({type:"bi.multi_popup_view",stopPropagation:!1,maxWidth:e.maxWidth,minWidth:e.minWidth,maxHeight:e.maxHeight,element:this,buttons:[BI.i18nText("BI-Basic_Clears"),BI.i18nText("BI-Basic_Sure")],el:this.loader,value:e.value}),this.popupView.on(BI.MultiPopupView.EVENT_CHANGE,function(){t.fireEvent(BI.SearchMultiSelectPopupView.EVENT_CHANGE)}),this.popupView.on(BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON,function(e){switch(e){case 0:t.fireEvent(BI.SearchMultiSelectPopupView.EVENT_CLICK_CLEAR);break;case 1:t.fireEvent(BI.SearchMultiSelectPopupView.EVENT_CLICK_CONFIRM)}})},isAllSelected:function(){return this.loader.isAllSelected()},setStartValue:function(e){this.loader.setStartValue(e)},setValue:function(e){this.popupView.setValue(e)},getValue:function(){return this.popupView.getValue()},populate:function(e){this.popupView.populate.apply(this.popupView,arguments)},resetHeight:function(e){this.popupView.resetHeight(e)},resetWidth:function(e){this.popupView.resetWidth(e)}}),BI.SearchMultiSelectPopupView.EVENT_CHANGE="EVENT_CHANGE",BI.SearchMultiSelectPopupView.EVENT_CLICK_CONFIRM="EVENT_CLICK_CONFIRM",BI.SearchMultiSelectPopupView.EVENT_CLICK_CLEAR="EVENT_CLICK_CLEAR",BI.shortcut("bi.search_multi_select_popup_view",BI.SearchMultiSelectPopupView)},function(e,t){BI.SearchMultiSelectSearcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SearchMultiSelectSearcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-searcher",itemsCreator:BI.emptyFn,el:{},popup:{},valueFormatter:BI.emptyFn,adapter:null,masker:{}})},_init:function(){BI.SearchMultiSelectSearcher.superclass._init.apply(this,arguments);var r=this,i=this.options;this.editor=BI.createWidget(i.el,{type:"bi.multi_select_editor",height:i.height,text:i.text,tipType:i.tipType,warningTitle:i.warningTitle}),this.searcher=BI.createWidget({type:"bi.searcher",allowSearchBlank:!1,element:this,height:i.height,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},el:this.editor,popup:BI.extend({type:"bi.multi_select_search_pane",valueFormatter:i.valueFormatter,keywordGetter:function(){return r.editor.getValue()},itemsCreator:function(e,t){var n=r.editor.getValue();e.keywords=[n],this.setKeyword(n),i.itemsCreator(e,t)},value:i.value},i.popup),adapter:i.adapter,masker:i.masker}),this.searcher.on(BI.Searcher.EVENT_START,function(){r.fireEvent(BI.SearchMultiSelectSearcher.EVENT_START)}),this.searcher.on(BI.Searcher.EVENT_PAUSE,function(){this.hasMatched(),r.fireEvent(BI.SearchMultiSelectSearcher.EVENT_PAUSE)}),this.searcher.on(BI.Searcher.EVENT_STOP,function(){r.fireEvent(BI.SearchMultiSelectSearcher.EVENT_STOP)}),this.searcher.on(BI.Searcher.EVENT_CHANGE,function(){r.fireEvent(BI.SearchMultiSelectSearcher.EVENT_CHANGE,arguments)}),this.searcher.on(BI.Searcher.EVENT_SEARCHING,function(){var e=this.getKeywords();r.fireEvent(BI.SearchMultiSelectSearcher.EVENT_SEARCHING,e)}),BI.isNotNull(i.value)&&this.setState(i.value)},adjustView:function(){this.searcher.adjustView()},isSearching:function(){return this.searcher.isSearching()},stopSearch:function(){this.searcher.stopSearch()},getKeyword:function(){return this.editor.getValue()},hasMatched:function(){return this.searcher.hasMatched()},hasChecked:function(){return this.searcher.getView()&&this.searcher.getView().hasChecked()},setAdapter:function(e){this.searcher.setAdapter(e)},setState:function(e){var n,r=this.options,t={};t.type=e.type,t.value=r.allValueGetter()||[],t.assist=e.assist,t.type===BI.Selection.All?0===t.value.length?this.editor.setState(BI.Selection.All):BI.size(t.assist)<=20?(n="",BI.each(t.assist,function(e,t){n+=0===e?""+(r.valueFormatter(t+"")||t):","+(r.valueFormatter(t+"")||t)}),this.editor.setState(n)):this.editor.setState(BI.Selection.Multi):0===t.value.length?this.editor.setState(BI.Selection.None):BI.size(t.value)<=20?(n="",BI.each(t.value,function(e,t){n+=0===e?""+(r.valueFormatter(t+"")||t):","+(r.valueFormatter(t+"")||t)}),this.editor.setState(n)):this.editor.setState(BI.Selection.Multi)},setTipType:function(e){this.editor.setTipType(e)},setValue:function(e){this.setState(e),this.searcher.setValue(e)},getKey:function(){return this.editor.getValue()},getValue:function(){return this.searcher.getValue()},populate:function(e){this.searcher.populate.apply(this.searcher,arguments)}}),BI.SearchMultiSelectSearcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.SearchMultiSelectSearcher.EVENT_CHANGE="EVENT_CHANGE",BI.SearchMultiSelectSearcher.EVENT_START="EVENT_START",BI.SearchMultiSelectSearcher.EVENT_STOP="EVENT_STOP",BI.SearchMultiSelectSearcher.EVENT_PAUSE="EVENT_PAUSE",BI.SearchMultiSelectSearcher.EVENT_SEARCHING="EVENT_SEARCHING",BI.shortcut("bi.search_multi_select_searcher",BI.SearchMultiSelectSearcher)},function(e,t){BI.SelectTreeFirstPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.SelectTreeFirstPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-select-tree-first-plus-group-node bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.SelectTreeFirstPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.first_tree_node_checkbox",stopPropagation:!0}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,keyword:e.keyword,py:e.py}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},isOnce:function(){return!0},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments)},setOpened:function(e){BI.SelectTreeFirstPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.select_tree_first_plus_group_node",BI.SelectTreeFirstPlusGroupNode)},function(e,t){BI.SelectTreeLastPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.SelectTreeLastPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-select-tree-last-plus-group-node bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.SelectTreeLastPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.last_tree_node_checkbox",stopPropagation:!0}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,keyword:e.keyword,py:e.py}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},isOnce:function(){return!0},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments)},setOpened:function(e){BI.SelectTreeLastPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.select_tree_last_plus_group_node",BI.SelectTreeLastPlusGroupNode)},function(e,t){BI.SelectTreeMidPlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.SelectTreeMidPlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-select-tree-mid-plus-group-node bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.SelectTreeMidPlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.mid_tree_node_checkbox",stopPropagation:!0}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,keyword:e.keyword,py:e.py}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},isOnce:function(){return!0},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments)},setOpened:function(e){BI.SelectTreeMidPlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.select_tree_mid_plus_group_node",BI.SelectTreeMidPlusGroupNode)},function(e,t){BI.SelectTreePlusGroupNode=BI.inherit(BI.NodeButton,{_defaultConfig:function(){var e=BI.SelectTreePlusGroupNode.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-select-tree-plus-group-node bi-list-item-active",logic:{dynamic:!1},id:"",pId:"",readonly:!0,open:!1,height:24})},_init:function(){BI.SelectTreePlusGroupNode.superclass._init.apply(this,arguments);var t=this,e=this.options;this.checkbox=BI.createWidget({type:"bi.tree_node_checkbox",stopPropagation:!0}),this.text=BI.createWidget({type:"bi.label",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,value:e.value,keyword:e.keyword,py:e.py}),this.checkbox.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&(this.isSelected()?t.triggerExpand():t.triggerCollapse())});var n=BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left),r=BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left,{width:24,el:this.checkbox},this.text);BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(n,BI.extend(e.logic,{items:r}))))},isOnce:function(){return!0},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.NodeButton.superclass.doClick.apply(this,arguments)},setOpened:function(e){BI.SelectTreePlusGroupNode.superclass.setOpened.apply(this,arguments),BI.isNotNull(this.checkbox)&&this.checkbox.setSelected(e)}}),BI.shortcut("bi.select_tree_plus_group_node",BI.SelectTreePlusGroupNode)},function(e,t){BI.SelectTreeCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SelectTreeCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-select-tree-combo",height:24,text:"",items:[],value:"",attributes:{tabIndex:0}})},_init:function(){BI.SelectTreeCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget({type:"bi.single_tree_trigger",text:t.text,height:t.height,items:t.items,value:t.value}),this.popup=BI.createWidget({type:"bi.select_level_tree",items:t.items,value:t.value}),this.combo=BI.createWidget({type:"bi.combo",container:t.container,element:this,adjustLength:2,el:this.trigger,popup:{el:this.popup}}),this.combo.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.popup.on(BI.SingleTreePopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.combo.hideView()})},setValue:function(e){e=BI.isArray(e)?e:[e],this.trigger.setValue(e),this.popup.setValue(e)},getValue:function(){return this.popup.getValue()},populate:function(e){this.combo.populate(e)}}),BI.shortcut("bi.select_tree_combo",BI.SelectTreeCombo)},function(e,t){BI.SelectTreeExpander=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SelectTreeExpander.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-select-tree-expander",trigger:"",toggle:!0,direction:"bottom",isDefaultInit:!0,el:{},popup:{}})},_init:function(){BI.SelectTreeExpander.superclass._init.apply(this,arguments);var t=this,e=this.options;this.trigger=BI.createWidget(e.el),this.trigger.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&this.isSelected()&&t.expander.setValue([]),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.expander=BI.createWidget({type:"bi.expander",element:this,trigger:e.trigger,toggle:e.toggle,direction:e.direction,isDefaultInit:e.isDefaultInit,el:this.trigger,popup:e.popup}),this.expander.on(BI.Controller.EVENT_CHANGE,function(e){e===BI.Events.CLICK&&t.trigger.setSelected(!1),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments)})},getAllLeaves:function(){return this.expander.getAllLeaves()},setValue:function(e){BI.contains(e,this.trigger.getValue())?(this.trigger.setSelected(!0),this.expander.setValue([])):(this.trigger.setSelected(!1),this.expander.setValue(e))},getValue:function(){return this.trigger.isSelected()?[this.trigger.getValue()]:this.expander.getValue()},populate:function(e){this.expander.populate(e)}}),BI.shortcut("bi.select_tree_expander",BI.SelectTreeExpander)},function(e,t){BI.SelectTreePopup=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.SelectTreePopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-select-level-tree",tipText:BI.i18nText("BI-No_Selected_Item"),items:[],value:""})},_formatItems:function(r,i,a){var o=this;return BI.each(r,function(e,t){var n={layer:i};t.id=t.id||BI.UUID(),n.pNode=a,!0===t.isParent||!0===t.parent||BI.isNotEmptyArray(t.children)?(n.type="bi.select_tree_mid_plus_group_node",e===r.length-1&&(n.type="bi.select_tree_last_plus_group_node",n.isLastNode=!0),0!==e||a||(n.type="bi.select_tree_first_plus_group_node"),0===e&&e===r.length-1&&(n.type="bi.select_tree_plus_group_node"),BI.defaults(t,n),o._formatItems(t.children,i+1,t)):(n.type="bi.mid_tree_leaf_item",0!==e||a||(n.type="bi.first_tree_leaf_item"),e===r.length-1&&(n.type="bi.last_tree_leaf_item"),BI.defaults(t,n))}),r},_init:function(){BI.SelectTreePopup.superclass._init.apply(this,arguments);var e=this,t=this.options;this.tree=BI.createWidget({type:"bi.level_tree",expander:{type:"bi.select_tree_expander",isDefaultInit:!0},items:this._formatItems(BI.Tree.transformToTreeFormat(t.items),0),value:t.value,chooseType:BI.Selection.Single}),BI.createWidget({type:"bi.vertical",element:this,vgap:5,items:[this.tree]}),this.tree.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.tree.on(BI.LevelTree.EVENT_CHANGE,function(){e.fireEvent(BI.SelectTreePopup.EVENT_CHANGE)}),this.check()},getValue:function(){return this.tree.getValue()},setValue:function(e){e=BI.isArray(e)?e:[e],this.tree.setValue(e)},populate:function(e){BI.SelectTreePopup.superclass.populate.apply(this,arguments),this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(e)))}}),BI.SelectTreePopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.select_level_tree",BI.SelectTreePopup)},function(e,t){BI.SingleSelectSearchLoader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SingleSelectSearchLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-search-loader",allowNoSelect:!1,itemsCreator:BI.emptyFn,keywordGetter:BI.emptyFn,valueFormatter:BI.emptyFn})},_init:function(){BI.SingleSelectSearchLoader.superclass._init.apply(this,arguments);var o=this,s=this.options,c=!1;this.button_group=BI.createWidget({type:"bi.single_select_list",allowNoSelect:s.allowNoSelect,element:this,logic:{dynamic:!1},value:s.value,el:{tipText:BI.i18nText("BI-No_Select"),el:{type:"bi.loader",isDefaultInit:!1,logic:{dynamic:!0,scrolly:!0},el:{chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}]}}},itemsCreator:function(i,a){o.storeValue&&(i=BI.extend(i||{},{selectedValues:[o.storeValue]})),s.itemsCreator(i,function(e){var t=e.keyword=s.keywordGetter();c=e.hasNext;var n,r=[];1===i.times&&BI.isNotNull(o.storeValue)&&(n=o._filterValues(o.storeValue),r=o._createItems(n)),a(r.concat(o._createItems(e.items)),t||""),1===i.times&&o.storeValue&&o.setValue(o.storeValue)})},hasNext:function(){return c}}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(){o.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button_group.on(BI.SingleSelectList.EVENT_CHANGE,function(){o.fireEvent(BI.SingleSelectSearchLoader.EVENT_CHANGE,arguments)})},_createItems:function(e){return BI.createItems(e,{type:this.options.allowNoSelect?"bi.single_select_item":"bi.single_select_combo_item",cls:"bi-list-item-active",logic:{dynamic:!1},height:25,selected:!1})},_filterValues:function(e){var t,n=this.options,r=n.keywordGetter(),i=e||[],a=BI.map(BI.isArray(i)?i:[i],function(e,t){return{text:n.valueFormatter(t)||t,value:t}});return BI.isKey(r)&&(i=(t=BI.Func.getSearchResult(a,r)).match.concat(t.find)),BI.map(i,function(e,t){return{text:t.text,title:t.text,value:t.value,selected:!1}})},setValue:function(e){this.storeValue=e,this.button_group.setValue(e)},getValue:function(){return this.button_group.getValue()},getAllButtons:function(){return this.button_group.getAllButtons()},empty:function(){this.button_group.empty()},populate:function(e){this.button_group.populate.apply(this.button_group,arguments)},resetHeight:function(e){this.button_group.resetHeight(e)},resetWidth:function(e){this.button_group.resetWidth(e)}}),BI.SingleSelectSearchLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_search_loader",BI.SingleSelectSearchLoader)},function(e,t){BI.SingleSelectSearchInsertPane=BI.inherit(BI.Widget,{constants:{height:25,lgap:10,tgap:5},_defaultConfig:function(){return BI.extend(BI.SingleSelectSearchInsertPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-search-pane bi-card",allowNoSelect:!1,itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,keywordGetter:BI.emptyFn})},_init:function(){BI.SingleSelectSearchInsertPane.superclass._init.apply(this,arguments);var n=this,r=this.options;this.tooltipClick=BI.createWidget({type:"bi.label",invisible:!0,text:BI.i18nText("BI-Click_Blank_To_Select"),cls:"single-select-toolbar",height:this.constants.height}),this.addNotMatchTip=BI.createWidget({type:"bi.text_button",invisible:!0,text:BI.i18nText("BI-Basic_Click_To_Add_Text",""),height:this.constants.height,cls:"bi-high-light",hgap:5,handler:function(){n.fireEvent(BI.SingleSelectSearchInsertPane.EVENT_ADD_ITEM,r.keywordGetter())}}),this.loader=BI.createWidget({type:"bi.single_select_search_loader",allowNoSelect:r.allowNoSelect,keywordGetter:r.keywordGetter,valueFormatter:r.valueFormatter,itemsCreator:function(e,t){r.itemsCreator.apply(n,[e,function(e){t(e),n.setKeyword(r.keywordGetter())}])},value:r.value}),this.loader.on(BI.Controller.EVENT_CHANGE,function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.resizer=BI.createWidget({type:"bi.vtape",element:this,items:[{type:"bi.vertical",items:[this.tooltipClick,this.addNotMatchTip],height:this.constants.height},{el:this.loader}]})},setKeyword:function(n){var r=this.options,e=BI.some(this.loader.getAllButtons(),function(e,t){return n===(r.valueFormatter(t.getValue())||t.getValue())}),t=0<this.loader.getAllButtons().length&&e;this.tooltipClick.setVisible(t),this.addNotMatchTip.setVisible(!t),t||this.addNotMatchTip.setText(BI.i18nText("BI-Basic_Click_To_Add_Text",n))},getMatchedItemValue:function(){var r,i=this.options;return BI.some(this.loader.getAllButtons(),function(e,t){var n=t.getValue();if(i.keywordGetter()===(i.valueFormatter(n)||n))return r=n,!0}),r},hasMatched:function(){return this.tooltipClick.isVisible()},setValue:function(e){this.loader.setValue(e)},getValue:function(){return this.loader.getValue()},empty:function(){this.loader.empty()},populate:function(e){this.loader.populate.apply(this.loader,arguments)}}),BI.SingleSelectSearchInsertPane.EVENT_CHANGE="EVENT_CHANGE",BI.SingleSelectSearchInsertPane.EVENT_ADD_ITEM="EVENT_ADD_ITEM",BI.shortcut("bi.single_select_search_insert_pane",BI.SingleSelectSearchInsertPane)},function(e,t){BI.SingleSelectSearchPane=BI.inherit(BI.Widget,{constants:{height:25,lgap:10,tgap:5},_defaultConfig:function(){return BI.extend(BI.SingleSelectSearchPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-search-pane bi-card",allowNoSelect:!1,itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,keywordGetter:BI.emptyFn})},_init:function(){BI.SingleSelectSearchPane.superclass._init.apply(this,arguments);var n=this,r=this.options;this.tooltipClick=BI.createWidget({type:"bi.label",invisible:!0,text:BI.i18nText("BI-Click_Blank_To_Select"),cls:"single-select-toolbar",height:this.constants.height}),this.loader=BI.createWidget({type:"bi.single_select_search_loader",allowNoSelect:r.allowNoSelect,keywordGetter:r.keywordGetter,valueFormatter:r.valueFormatter,itemsCreator:function(e,t){r.itemsCreator.apply(n,[e,function(e){t(e),n.setKeyword(r.keywordGetter())}])},value:r.value}),this.loader.on(BI.Controller.EVENT_CHANGE,function(){n.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.resizer=BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.tooltipClick,height:0},{el:this.loader}]}),this.tooltipClick.setVisible(!1)},setKeyword:function(e){var t,n=this.options,r=0<this.loader.getAllButtons().length&&(t=this.loader.getAllButtons()[0])&&e===(n.valueFormatter(t.getValue())||t.getValue());r!==this.tooltipClick.isVisible()&&(this.tooltipClick.setVisible(r),this.resizer.attr("items")[0].height=r?this.constants.height:0,this.resizer.resize())},getMatchedItemValue:function(){var r,i=this.options;return BI.some(this.loader.getAllButtons(),function(e,t){var n=t.getValue();if(i.keywordGetter()===(i.valueFormatter(n)||n))return r=n,!0}),r},hasMatched:function(){return this.tooltipClick.isVisible()},setValue:function(e){this.loader.setValue(e)},getValue:function(){return this.loader.getValue()},empty:function(){this.loader.empty()},populate:function(e){this.loader.populate.apply(this.loader,arguments)}}),BI.SingleSelectSearchPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_search_pane",BI.SingleSelectSearchPane)},function(e,t){BI.SingleSelectCombo=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.SingleSelectCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-combo",allowNoSelect:!1,itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,height:24,attributes:{tabIndex:0},allowEdit:!0})},_init:function(){BI.SingleSelectCombo.superclass._init.apply(this,arguments);var r=this,e=this.options,n=function(){BI.isKey(r._startValue)&&(r.storeValue=r._startValue),r.trigger.getSearcher().setState(r.storeValue)};this.storeValue=e.value,this.requesting=!1,this.trigger=BI.createWidget({type:"bi.single_select_trigger",height:e.height,allowNoSelect:e.allowNoSelect,allowEdit:e.allowEdit,valueFormatter:e.valueFormatter,itemsCreator:function(t,n){e.itemsCreator(t,function(e){1===t.times&&BI.isNotNull(t.keywords)&&r.trigger.setValue(r.getValue()),n.apply(r,arguments)})},text:e.text,value:this.storeValue}),this.trigger.on(BI.SingleSelectTrigger.EVENT_FOCUS,function(){r.fireEvent(BI.SingleSelectCombo.EVENT_FOCUS)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_BLUR,function(){r.fireEvent(BI.SingleSelectCombo.EVENT_BLUR)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_START,function(){r._setStartValue(),this.getSearcher().setValue(r.storeValue)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_STOP,function(){r._setStartValue(),r.fireEvent(BI.SingleSelectCombo.EVENT_STOP)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE,function(){var e;this.getSearcher().hasMatched()&&(e=this.getSearcher().getMatchedItemValue(),r.combo.setValue(r.storeValue),r._setStartValue(e),n(),r.populate(),r._setStartValue())}),this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING,function(e){var t=BI.last(e);0<(e=BI.initial(e||[])).length&&r._joinKeywords(e,function(){BI.isEndWithBlank(t)?(r.combo.setValue(r.storeValue),n(),r.combo.populate(),r._setStartValue()):(r.combo.setValue(r.storeValue),n())}),r.fireEvent(BI.SingleSelectCombo.EVENT_SEARCHING)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_CHANGE,function(e,t){r.storeValue=this.getValue(),n(),r._defaultState()}),this.trigger.on(BI.SingleSelectTrigger.EVENT_COUNTER_CLICK,function(){r.combo.isViewVisible()||r.combo.showView()}),this.combo=BI.createWidget({type:"bi.combo",container:e.container,toggle:!1,el:this.trigger,adjustLength:1,popup:{type:"bi.single_select_popup_view",allowNoSelect:e.allowNoSelect,ref:function(){r.popup=this,r.trigger.setAdapter(this)},listeners:[{eventName:BI.SingleSelectPopupView.EVENT_CHANGE,action:function(){r.storeValue=this.getValue(),r._adjust(function(){n(),r._defaultState()}),r.fireEvent(BI.SingleSelectCombo.EVENT_CLICK_ITEM)}}],itemsCreator:e.itemsCreator,valueFormatter:e.valueFormatter,onLoaded:function(){BI.nextTick(function(){r.combo.adjustWidth(),r.combo.adjustHeight(),r.trigger.getSearcher().adjustView()})}},hideChecker:function(e){return 0===t.element.find(e.target).length},value:e.value}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){this.setValue(r.storeValue),BI.nextTick(function(){r.populate()})}),this.wants2Quit=!1,this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){r.trigger.stopEditing(),!0===r.requesting?r.wants2Quit=!0:r.fireEvent(BI.SingleSelectCombo.EVENT_CONFIRM)});var t=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"single-select-trigger-icon-button"});t.on(BI.TriggerIconButton.EVENT_CHANGE,function(){r.combo.isViewVisible()?r.combo.hideView():r.combo.showView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:t,right:0,top:0,bottom:0}]})},_defaultState:function(){this.trigger.stopEditing(),this.combo.hideView()},_assertValue:function(e){},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),this.requesting=!0,e.itemsCreator({type:BI.SingleSelectCombo.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&BI.remove(o.storeValue.value,t)}),o._adjust(a)})},_adjust:function(t){var n=this,e=this.options;function r(){!0===n.wants2Quit&&(n.fireEvent(BI.SingleSelectCombo.EVENT_CONFIRM),n.wants2Quit=!1),n.requesting=!1}this._count?(r(),t()):e.itemsCreator({type:BI.SingleSelectCombo.REQ_GET_DATA_LENGTH},function(e){n._count=e.count,r(),t()})},_setStartValue:function(e){this._startValue=e,this.popup.setStartValue(e)},setValue:function(e){this.storeValue=e,this._assertValue(this.storeValue),this.combo.setValue(this.storeValue)},getValue:function(){return this.storeValue},populate:function(){this._count=null,this.combo.populate.apply(this.combo,arguments)}}),BI.extend(BI.SingleSelectCombo,{REQ_GET_DATA_LENGTH:0,REQ_GET_ALL_DATA:-1}),BI.SingleSelectCombo.EVENT_BLUR="EVENT_BLUR",BI.SingleSelectCombo.EVENT_FOCUS="EVENT_FOCUS",BI.SingleSelectCombo.EVENT_STOP="EVENT_STOP",BI.SingleSelectCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.SingleSelectCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.SingleSelectCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.single_select_combo",BI.SingleSelectCombo)},function(e,t){BI.SingleSelectInsertCombo=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.SingleSelectInsertCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-combo",allowNoSelect:!1,itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,height:24,attributes:{tabIndex:0},allowEdit:!0})},_init:function(){BI.SingleSelectInsertCombo.superclass._init.apply(this,arguments);var r=this,e=this.options,n=function(){BI.isKey(r._startValue)&&(r.storeValue=r._startValue),r.trigger.getSearcher().setState(r.storeValue)};this.storeValue=e.value,this.requesting=!1,this.trigger=BI.createWidget({type:"bi.single_select_trigger",height:e.height,allowNoSelect:e.allowNoSelect,allowEdit:e.allowEdit,valueFormatter:e.valueFormatter,itemsCreator:function(t,n){e.itemsCreator(t,function(e){1===t.times&&BI.isNotNull(t.keywords)&&r.trigger.setValue(r.getValue()),n.apply(r,arguments)})},text:e.text,value:this.storeValue,searcher:{popup:{type:"bi.single_select_search_insert_pane",listeners:[{eventName:BI.SingleSelectSearchInsertPane.EVENT_ADD_ITEM,action:function(){r.trigger.getSearcher().hasMatched()||(r.storeValue=r.trigger.getSearcher().getKeyword(),n(),r._defaultState())}}]}}}),this.trigger.on(BI.SingleSelectTrigger.EVENT_FOCUS,function(){r.fireEvent(BI.SingleSelectInsertCombo.EVENT_FOCUS)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_BLUR,function(){r.fireEvent(BI.SingleSelectInsertCombo.EVENT_BLUR)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_START,function(){r._setStartValue(),this.getSearcher().setValue(r.storeValue)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_STOP,function(){r._setStartValue(),r.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE,function(){var e;this.getSearcher().hasMatched()&&(e=this.getSearcher().getMatchedItemValue(),r.storeValue=e,r.combo.setValue(r.storeValue),r._setStartValue(e),n(),r.populate(),r._setStartValue())}),this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING,function(e){var t=BI.last(e);0<(e=BI.initial(e||[])).length&&r._joinKeywords(e,function(){BI.isEndWithBlank(t)?(r.combo.setValue(r.storeValue),n(),r.combo.populate(),r._setStartValue()):(r.combo.setValue(r.storeValue),n())}),r.fireEvent(BI.SingleSelectInsertCombo.EVENT_SEARCHING)}),this.trigger.on(BI.SingleSelectTrigger.EVENT_CHANGE,function(e,t){r.storeValue=this.getValue(),n(),r._defaultState()}),this.trigger.on(BI.SingleSelectTrigger.EVENT_COUNTER_CLICK,function(){r.combo.isViewVisible()||r.combo.showView()}),this.combo=BI.createWidget({type:"bi.combo",container:e.container,toggle:!1,el:this.trigger,adjustLength:1,popup:{type:"bi.single_select_popup_view",allowNoSelect:e.allowNoSelect,ref:function(){r.popup=this,r.trigger.setAdapter(this)},listeners:[{eventName:BI.SingleSelectPopupView.EVENT_CHANGE,action:function(){r.storeValue=this.getValue(),r._adjust(function(){n(),r._defaultState()}),r.fireEvent(BI.SingleSelectInsertCombo.EVENT_CLICK_ITEM)}}],itemsCreator:e.itemsCreator,valueFormatter:e.valueFormatter,onLoaded:function(){BI.nextTick(function(){r.combo.adjustWidth(),r.combo.adjustHeight(),r.trigger.getSearcher().adjustView()})}},hideChecker:function(e){return 0===t.element.find(e.target).length},value:e.value}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){this.setValue(r.storeValue),BI.nextTick(function(){r.populate()})}),this.wants2Quit=!1,this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){r.trigger.stopEditing(),!0===r.requesting?r.wants2Quit=!0:r.fireEvent(BI.SingleSelectInsertCombo.EVENT_CONFIRM)});var t=BI.createWidget({type:"bi.trigger_icon_button",width:e.height,height:e.height,cls:"single-select-trigger-icon-button"});t.on(BI.TriggerIconButton.EVENT_CHANGE,function(){r.combo.isViewVisible()?r.combo.hideView():r.combo.showView()}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.combo,left:0,right:0,top:0,bottom:0},{el:t,right:0,top:0,bottom:0}]})},_defaultState:function(){this.trigger.stopEditing(),this.combo.hideView()},_assertValue:function(e){},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(i,a){var o=this,e=this.options;this._assertValue(this.storeValue),this.requesting=!0,e.itemsCreator({type:BI.SingleSelectInsertCombo.REQ_GET_ALL_DATA,keywords:i},function(e){var t,n,r=BI.map(e.items,"value");t=r,n=o._makeMap(t),BI.each(i,function(e,t){BI.isNotNull(n[t])&&BI.remove(o.storeValue.value,t)}),o._adjust(a)})},_adjust:function(e){var t=this;this.options;!function(){!0===t.wants2Quit&&(t.fireEvent(BI.SingleSelectInsertCombo.EVENT_CONFIRM),t.wants2Quit=!1);t.requesting=!1}(),e()},_setStartValue:function(e){this._startValue=e,this.popup.setStartValue(e)},setValue:function(e){this.storeValue=e,this._assertValue(this.storeValue),this.combo.setValue(this.storeValue)},getValue:function(){return this.storeValue},populate:function(){this.combo.populate.apply(this.combo,arguments)}}),BI.extend(BI.SingleSelectInsertCombo,{REQ_GET_DATA_LENGTH:0,REQ_GET_ALL_DATA:-1}),BI.SingleSelectInsertCombo.EVENT_FOCUS="EVENT_FOCUS",BI.SingleSelectInsertCombo.EVENT_BLUR="EVENT_BLUR",BI.SingleSelectInsertCombo.EVENT_STOP="EVENT_STOP",BI.SingleSelectInsertCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.SingleSelectInsertCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.SingleSelectInsertCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.single_select_insert_combo",BI.SingleSelectInsertCombo)},function(e,t){BI.SingleSelectComboItem=BI.inherit(BI.BasicButton,{_defaultConfig:function(){return BI.extend(BI.SingleSelectComboItem.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-single-select-radio-item",logic:{dynamic:!1},height:24})},_init:function(){BI.SingleSelectComboItem.superclass._init.apply(this,arguments);var e=this.options;this.radio=BI.createWidget({type:"bi.radio"}),this.text=BI.createWidget({type:"bi.label",cls:"list-item-text",textAlign:"left",whiteSpace:"nowrap",textHeight:e.height,height:e.height,hgap:e.hgap,text:e.text,keyword:e.keyword,value:e.value,py:e.py}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic("horizontal",BI.extend(e.logic,{items:BI.LogicFactory.createLogicItemsByDirection("left",{type:"bi.center_adapt",items:[this.radio],width:26},this.text)}))))},doRedMark:function(){this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doClick:function(){BI.SingleSelectComboItem.superclass.doClick.apply(this,arguments),this.radio.setSelected(this.isSelected()),this.isValid()&&this.fireEvent(BI.SingleSelectComboItem.EVENT_CHANGE,this.isSelected(),this)},setSelected:function(e){BI.SingleSelectComboItem.superclass.setSelected.apply(this,arguments),this.radio.setSelected(e)}}),BI.SingleSelectComboItem.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_combo_item",BI.SingleSelectComboItem)},function(e,t){BI.SingleSelectList=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-select-list",direction:BI.Direction.Top,logic:{dynamic:!0},items:[],itemsCreator:BI.emptyFn,hasNext:BI.emptyFn,onLoaded:BI.emptyFn,el:{type:"bi.list_pane"},allowNoSelect:!1})},_init:function(){BI.SingleSelectList.superclass._init.apply(this,arguments);var r=this,e=this.options;this.list=BI.createWidget(e.el,{type:"bi.list_pane",items:e.items,itemsCreator:function(t,n){1===t.times&&r.toolbar&&r.toolbar.setVisible(!1),e.itemsCreator(t,function(e){n.apply(r,arguments),1===t.times&&(r.toolbar&&r.toolbar.setVisible(e&&0<e.length),r.toolbar&&r.toolbar.setEnable(e&&0<e.length))})},onLoaded:e.onLoaded,hasNext:e.hasNext,value:e.value}),this.list.on(BI.Controller.EVENT_CHANGE,function(e,t,n){e===BI.Events.CLICK&&r.fireEvent(BI.SingleSelectList.EVENT_CHANGE,t,n),r.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),BI.createWidget(BI.extend({element:this},BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(e.direction),BI.extend({scrolly:!0},e.logic,{items:e.allowNoSelect?BI.LogicFactory.createLogicItemsByDirection(e.direction,{type:"bi.single_select_item",cls:"bi-list-item-active",height:24,forceNotSelected:!0,text:BI.i18nText("BI-Basic_No_Select"),ref:function(e){r.toolbar=e},listeners:[{eventName:BI.Controller.EVENT_CHANGE,action:function(e){e===BI.Events.CLICK&&(r.list.setValue(),r.fireEvent(BI.SingleSelectList.EVENT_CHANGE)),r.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}}]},this.list):BI.LogicFactory.createLogicItemsByDirection(e.direction,this.list)}))))},hasPrev:function(){return this.list.hasPrev()},hasNext:function(){return this.list.hasNext()},prependItems:function(e){this.list.prependItems.apply(this.list,arguments)},addItems:function(e){this.list.addItems.apply(this.list,arguments)},setValue:function(e){this.list.setValue([e])},getValue:function(){return this.list.getValue()[0]},empty:function(){this.list.empty()},populate:function(e){this.list.populate.apply(this.list,arguments)},resetHeight:function(e){this.list.resetHeight?this.list.resetHeight(e):this.list.element.css({"max-height":e+"px"})},setNotSelectedValue:function(){this.list.setNotSelectedValue.apply(this.list,arguments)},getNotSelectedValue:function(){return this.list.getNotSelectedValue()},getAllButtons:function(){return this.list.getAllButtons()},getAllLeaves:function(){return this.list.getAllLeaves()},getSelectedButtons:function(){return this.list.getSelectedButtons()},getNotSelectedButtons:function(){return this.list.getNotSelectedButtons()},getIndexByValue:function(e){return this.list.getIndexByValue(e)},getNodeById:function(e){return this.list.getNodeById(e)},getNodeByValue:function(e){return this.list.getNodeByValue(e)}}),BI.SingleSelectList.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_list",BI.SingleSelectList)},function(e,t){BI.SingleSelectLoader=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-loader",logic:{dynamic:!0},el:{height:400},allowNoSelect:!1,valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn})},_init:function(){BI.SingleSelectLoader.superclass._init.apply(this,arguments);var o=this,s=this.options,c=!1;this.storeValue=s.value,this.button_group=BI.createWidget({type:"bi.single_select_list",allowNoSelect:s.allowNoSelect,logic:s.logic,el:BI.extend({onLoaded:s.onLoaded,el:{type:"bi.loader",isDefaultInit:!1,logic:{dynamic:!0,scrolly:!0},el:{chooseType:BI.ButtonGroup.CHOOSE_TYPE_SINGLE,behaviors:{redmark:function(){return!0}},layouts:[{type:"bi.vertical"}]}}},s.el),itemsCreator:function(r,i){var a=o._startValue;BI.isNotNull(o.storeValue)&&(r=BI.extend(r||{},{selectedValues:[o.storeValue]})),s.itemsCreator(r,function(e){c=e.hasNext;var t,n=[];1===r.times&&BI.isNotNull(o.storeValue)&&(t=BI.map([o.storeValue],function(e,t){var n=s.valueFormatter(t)||t;return{text:n,value:t,title:n,selected:!0}}),n=o._createItems(t)),i(n.concat(o._createItems(e.items)),e.keyword||""),1===r.times&&o.storeValue&&(BI.isKey(a)&&(o.storeValue=a),o.setValue(o.storeValue)),1===r.times&&o._scrollToTop()})},hasNext:function(){return c},value:this.storeValue}),BI.createWidget({type:"bi.vertical",element:this,items:[this.button_group],vgap:5}),this.button_group.on(BI.Controller.EVENT_CHANGE,function(){o.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.button_group.on(BI.SingleSelectList.EVENT_CHANGE,function(){o.fireEvent(BI.SingleSelectLoader.EVENT_CHANGE,arguments)})},_createItems:function(e){return BI.createItems(e,{type:this.options.allowNoSelect?"bi.single_select_item":"bi.single_select_combo_item",logic:this.options.logic,cls:"bi-list-item-active",height:24,selected:!1})},_scrollToTop:function(){var e=this;BI.delay(function(){e.button_group.element.scrollTop(0)},30)},_assertValue:function(e){},setStartValue:function(e){this._startValue=e},setValue:function(e){this.storeValue=e,this._assertValue(this.storeValue),this.button_group.setValue(this.storeValue)},getValue:function(){return this.button_group.getValue()},getAllButtons:function(){return this.button_group.getAllButtons()},empty:function(){this.button_group.empty()},populate:function(e){this.button_group.populate.apply(this.button_group,arguments)},resetHeight:function(e){this.button_group.resetHeight(e)},resetWidth:function(e){this.button_group.resetWidth(e)}}),BI.SingleSelectLoader.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_loader",BI.SingleSelectLoader)},function(e,t){BI.SingleSelectPopupView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SingleSelectPopupView.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-popup-view",allowNoSelect:!1,maxWidth:"auto",minWidth:135,maxHeight:400,valueFormatter:BI.emptyFn,itemsCreator:BI.emptyFn,onLoaded:BI.emptyFn})},_init:function(){BI.SingleSelectPopupView.superclass._init.apply(this,arguments);var e=this,t=this.options;this.loader=BI.createWidget({type:"bi.single_select_loader",allowNoSelect:t.allowNoSelect,itemsCreator:t.itemsCreator,valueFormatter:t.valueFormatter,onLoaded:t.onLoaded,value:t.value}),this.popupView=BI.createWidget({type:"bi.popup_view",stopPropagation:!1,maxWidth:t.maxWidth,minWidth:t.minWidth,maxHeight:t.maxHeight,element:this,el:this.loader,value:t.value}),this.popupView.on(BI.MultiPopupView.EVENT_CHANGE,function(){e.fireEvent(BI.SingleSelectPopupView.EVENT_CHANGE)})},setStartValue:function(e){this.loader.setStartValue(e)},setValue:function(e){this.popupView.setValue(e)},getValue:function(){return this.popupView.getValue()},populate:function(e){this.popupView.populate.apply(this.popupView,arguments)},resetHeight:function(e){this.popupView.resetHeight(e)},resetWidth:function(e){this.popupView.resetWidth(e)}}),BI.SingleSelectPopupView.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_popup_view",BI.SingleSelectPopupView)},function(e,t){BI.SingleSelectTrigger=BI.inherit(BI.Trigger,{constants:{height:14,rgap:4,lgap:4},_defaultConfig:function(){return BI.extend(BI.SingleSelectTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-trigger bi-border bi-border-radius",allowNoSelect:!1,itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn,searcher:{},switcher:{},adapter:null,masker:{},allowEdit:!0})},_init:function(){BI.SingleSelectTrigger.superclass._init.apply(this,arguments);var e=this,t=this.options;t.height&&this.setHeight(t.height-2),this.searcher=BI.createWidget(t.searcher,{type:"bi.single_select_searcher",allowNoSelect:t.allowNoSelect,text:t.text,height:t.height,itemsCreator:t.itemsCreator,valueFormatter:t.valueFormatter,popup:{},adapter:t.adapter,masker:t.masker,value:t.value}),this.searcher.on(BI.SingleSelectSearcher.EVENT_START,function(){e.fireEvent(BI.SingleSelectTrigger.EVENT_START)}),this.searcher.on(BI.SingleSelectSearcher.EVENT_PAUSE,function(){e.fireEvent(BI.SingleSelectTrigger.EVENT_PAUSE)}),this.searcher.on(BI.SingleSelectSearcher.EVENT_SEARCHING,function(){e.fireEvent(BI.SingleSelectTrigger.EVENT_SEARCHING,arguments)}),this.searcher.on(BI.SingleSelectSearcher.EVENT_STOP,function(){e.fireEvent(BI.SingleSelectTrigger.EVENT_STOP)}),this.searcher.on(BI.SingleSelectSearcher.EVENT_CHANGE,function(){e.fireEvent(BI.SingleSelectTrigger.EVENT_CHANGE,arguments)}),this.searcher.on(BI.SingleSelectSearcher.EVENT_FOCUS,function(){e.fireEvent(BI.SingleSelectTrigger.EVENT_FOCUS)}),this.searcher.on(BI.SingleSelectSearcher.EVENT_BLUR,function(){e.fireEvent(BI.SingleSelectTrigger.EVENT_BLUR,arguments)});BI.createWidget({type:"bi.htape",element:this,items:[{el:this.searcher,width:"fill"},{el:BI.createWidget(),width:24}]});t.allowEdit||BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.text",title:function(){return e.searcher.getState()}},left:0,right:24,top:0,bottom:0}]})},getSearcher:function(){return this.searcher},stopEditing:function(){this.searcher.stopSearch()},setAdapter:function(e){this.searcher.setAdapter(e)},setValue:function(e){this.searcher.setValue(e)},getKey:function(){return this.searcher.getKey()},getValue:function(){return this.searcher.getValue()}}),BI.SingleSelectTrigger.EVENT_TRIGGER_CLICK="EVENT_TRIGGER_CLICK",BI.SingleSelectTrigger.EVENT_COUNTER_CLICK="EVENT_COUNTER_CLICK",BI.SingleSelectTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.SingleSelectTrigger.EVENT_START="EVENT_START",BI.SingleSelectTrigger.EVENT_STOP="EVENT_STOP",BI.SingleSelectTrigger.EVENT_PAUSE="EVENT_PAUSE",BI.SingleSelectTrigger.EVENT_SEARCHING="EVENT_SEARCHING",BI.SingleSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW="EVENT_BEFORE_COUNTER_POPUPVIEW",BI.SingleSelectTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.SingleSelectTrigger.EVENT_BLUR="EVENT_BLUR",BI.shortcut("bi.single_select_trigger",BI.SingleSelectTrigger)},function(e,t){BI.SingleSelectInsertList=BI.inherit(BI.Single,{_defaultConfig:function(){return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-multi-select-insert-list",allowNoSelect:!1,itemsCreator:BI.emptyFn,valueFormatter:BI.emptyFn})},_init:function(){BI.SingleSelectInsertList.superclass._init.apply(this,arguments);var n=this,r=this.options;this.storeValue=r.value;var i=function(){BI.isKey(n._startValue)&&(n.storeValue=n._startValue)};this.adapter=BI.createWidget({type:"bi.single_select_loader",allowNoSelect:r.allowNoSelect,cls:"popup-single-select-list bi-border-left bi-border-right bi-border-bottom",itemsCreator:r.itemsCreator,valueFormatter:r.valueFormatter,logic:{dynamic:!0},el:{},value:r.value}),this.adapter.on(BI.SingleSelectLoader.EVENT_CHANGE,function(){n.storeValue=this.getValue(),i(),n.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE)}),this.searcherPane=BI.createWidget({type:"bi.single_select_search_insert_pane",allowNoSelect:r.allowNoSelect,cls:"bi-border-left bi-border-right bi-border-bottom",valueFormatter:r.valueFormatter,keywordGetter:function(){return n.trigger.getKeyword()},itemsCreator:function(e,t){e.keywords=[n.trigger.getKeyword()],this.setKeyword(e.keywords[0]),r.itemsCreator(e,t)},listeners:[{eventName:BI.SingleSelectSearchInsertPane.EVENT_ADD_ITEM,action:function(){var e=n.trigger.getKeyword();n.trigger.hasMatched()||(n.storeValue=e,n._showAdapter(),n.adapter.setValue(n.storeValue),n.adapter.populate(),n.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE))}}]}),this.searcherPane.setVisible(!1),this.trigger=BI.createWidget({type:"bi.searcher",allowSearchBlank:!1,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},adapter:this.adapter,popup:this.searcherPane,height:200,masker:!1,value:r.value,listeners:[{eventName:BI.Searcher.EVENT_START,action:function(){n._showSearcherPane(),n._setStartValue(),this.setValue(BI.deepClone(n.storeValue))}},{eventName:BI.Searcher.EVENT_STOP,action:function(){n._showAdapter(),n._setStartValue(),n.adapter.setValue(n.storeValue),n.adapter.populate()}},{eventName:BI.Searcher.EVENT_PAUSE,action:function(){var e=this.getKeyword();this.hasMatched()?(n.storeValue=e,n._showAdapter(),n.adapter.setValue(n.storeValue),n._setStartValue(e),i(),n.adapter.populate(),n._setStartValue(),n.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE)):n._showAdapter()}},{eventName:BI.Searcher.EVENT_SEARCHING,action:function(){var e=this.getKeyword(),t=BI.last(e);0<(e=BI.initial(e||[])).length&&n._joinKeywords(e,function(){BI.isEndWithBlank(t)?(n.adapter.setValue(n.storeValue),i(),n.adapter.populate(),n._setStartValue()):(n.adapter.setValue(n.storeValue),i())})}},{eventName:BI.Searcher.EVENT_CHANGE,action:function(){n.storeValue=this.getValue(),n.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE)}}]}),BI.createWidget({type:"bi.vtape",element:this,items:[{el:this.trigger,height:24},{el:this.adapter,height:"fill"}]}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.searcherPane,top:24,bottom:0,left:0,right:0}]})},_showAdapter:function(){this.adapter.setVisible(!0),this.searcherPane.setVisible(!1)},_showSearcherPane:function(){this.searcherPane.setVisible(!0),this.adapter.setVisible(!1)},_defaultState:function(){this.trigger.stopEditing()},_assertValue:function(){},_makeMap:function(e){return BI.makeObject(e||[])},_joinKeywords:function(t,r){var i=this,e=this.options;function n(e){var n=i._makeMap(e);BI.each(t,function(e,t){BI.isNotNull(n[t])&&BI.pushDistinct(i.storeValue.value,t)}),r()}this._assertValue(this.storeValue),this._allData?n(this._allData):e.itemsCreator({type:BI.SingleSelectInsertList.REQ_GET_ALL_DATA},function(e){i._allData=BI.map(e.items,"value"),n(i._allData)})},_setStartValue:function(e){this._startValue=e,this.adapter.setStartValue(e)},isAllSelected:function(){return this.adapter.isAllSelected()},resize:function(){},setValue:function(e){this.storeValue=e,this.adapter.setValue(this.storeValue),this.trigger.setValue(this.storeValue)},getValue:function(){return BI.deepClone(this.storeValue)},populate:function(){this._count=null,this._allData=null,this.adapter.populate.apply(this.adapter,arguments),this.trigger.populate.apply(this.trigger,arguments)}}),BI.extend(BI.SingleSelectInsertList,{REQ_GET_DATA_LENGTH:0,REQ_GET_ALL_DATA:-1}),BI.SingleSelectInsertList.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_select_insert_list",BI.SingleSelectInsertList)},function(e,t){BI.SingleSelectEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SingleSelectEditor.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-editor",el:{},text:BI.i18nText("BI-Basic_Please_Select")})},_init:function(){BI.SingleSelectEditor.superclass._init.apply(this,arguments);var e=this,t=this.options;this.editor=BI.createWidget(t.el,{type:"bi.state_editor",element:this,height:t.height,watermark:BI.i18nText("BI-Basic_Search"),allowBlank:!0,value:t.value,defaultText:t.text,text:t.text}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.StateEditor.EVENT_PAUSE,function(){e.fireEvent(BI.SingleSelectEditor.EVENT_PAUSE)}),this.editor.on(BI.StateEditor.EVENT_FOCUS,function(){e.fireEvent(BI.SingleSelectEditor.EVENT_FOCUS)}),this.editor.on(BI.StateEditor.EVENT_BLUR,function(){e.fireEvent(BI.SingleSelectEditor.EVENT_BLUR)})},focus:function(){this.editor.focus()},blur:function(){this.editor.blur()},setState:function(e){this.editor.setState(e)},setValue:function(e){this.editor.setValue(e)},getValue:function(){var e=this.editor.getState();return BI.isArray(e)&&0<e.length?e[e.length-1]:""},getKeywords:function(){var e=this.editor.getLastChangedValue(),t=e.match(/[\S]+/g);return BI.isEndWithBlank(e)?t.concat([" "]):t},populate:function(e){}}),BI.SingleSelectEditor.EVENT_FOCUS="EVENT_FOCUS",BI.SingleSelectEditor.EVENT_BLUR="EVENT_BLUR",BI.SingleSelectEditor.EVENT_PAUSE="EVENT_PAUSE",BI.shortcut("bi.single_select_editor",BI.SingleSelectEditor)},function(e,t){BI.SingleSelectSearcher=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SingleSelectSearcher.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-select-searcher",itemsCreator:BI.emptyFn,el:{},popup:{},valueFormatter:BI.emptyFn,adapter:null,masker:{},allowNoSelect:!1})},_init:function(){BI.SingleSelectSearcher.superclass._init.apply(this,arguments);var r=this,i=this.options;this.editor=BI.createWidget(i.el,{type:"bi.single_select_editor",height:i.height,text:i.text,listeners:[{eventName:BI.SingleSelectEditor.EVENT_FOCUS,action:function(){r.fireEvent(BI.SingleSelectSearcher.EVENT_FOCUS)}},{eventName:BI.SingleSelectEditor.EVENT_BLUR,action:function(){r.fireEvent(BI.SingleSelectSearcher.EVENT_BLUR)}}]}),this.searcher=BI.createWidget({type:"bi.searcher",allowSearchBlank:!1,element:this,height:i.height,isAutoSearch:!1,isAutoSync:!1,onSearch:function(e,t){t()},el:this.editor,popup:BI.extend({type:"bi.single_select_search_pane",allowNoSelect:i.allowNoSelect,valueFormatter:i.valueFormatter,keywordGetter:function(){return r.editor.getValue()},itemsCreator:function(e,t){var n=r.editor.getValue();e.keywords=[n],this.setKeyword(n),i.itemsCreator(e,t)},value:i.value},i.popup),adapter:i.adapter,masker:i.masker}),this.searcher.on(BI.Searcher.EVENT_START,function(){r.fireEvent(BI.SingleSelectSearcher.EVENT_START)}),this.searcher.on(BI.Searcher.EVENT_PAUSE,function(){this.hasMatched(),r.fireEvent(BI.SingleSelectSearcher.EVENT_PAUSE)}),this.searcher.on(BI.Searcher.EVENT_STOP,function(){r.fireEvent(BI.SingleSelectSearcher.EVENT_STOP)}),this.searcher.on(BI.Searcher.EVENT_CHANGE,function(){r.fireEvent(BI.SingleSelectSearcher.EVENT_CHANGE,arguments)}),this.searcher.on(BI.Searcher.EVENT_SEARCHING,function(){var e=this.getKeywords();r.fireEvent(BI.SingleSelectSearcher.EVENT_SEARCHING,e)}),BI.isNotNull(i.value)&&this.setState(i.value)},getMatchedItemValue:function(){return this.searcher.getView().getMatchedItemValue()},adjustView:function(){this.searcher.adjustView()},isSearching:function(){return this.searcher.isSearching()},stopSearch:function(){this.searcher.stopSearch()},getKeyword:function(){return this.editor.getValue()},hasMatched:function(){return this.searcher.hasMatched()},hasChecked:function(){return this.searcher.getView()&&this.searcher.getView().hasChecked()},setAdapter:function(e){this.searcher.setAdapter(e)},setState:function(e){var t=this.options;BI.isNull(e)?this.editor.setState(BI.Selection.None):this.editor.setState(t.valueFormatter(e+"")||e+"")},setValue:function(e){this.setState(e),this.searcher.setValue(e)},getKey:function(){return this.editor.getValue()},getValue:function(){return this.searcher.getValue()},populate:function(e){this.searcher.populate.apply(this.searcher,arguments)}}),BI.SingleSelectSearcher.EVENT_FOCUS="EVENT_FOCUS",BI.SingleSelectSearcher.EVENT_BLUR="EVENT_BLUR",BI.SingleSelectSearcher.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.SingleSelectSearcher.EVENT_CHANGE="EVENT_CHANGE",BI.SingleSelectSearcher.EVENT_START="EVENT_START",BI.SingleSelectSearcher.EVENT_STOP="EVENT_STOP",BI.SingleSelectSearcher.EVENT_PAUSE="EVENT_PAUSE",BI.SingleSelectSearcher.EVENT_SEARCHING="EVENT_SEARCHING",BI.shortcut("bi.single_select_searcher",BI.SingleSelectSearcher)},function(e,t){BI.SignTextEditor=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.SignTextEditor.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-sign-initial-editor",validationChecker:BI.emptyFn,text:"",height:24})},_init:function(){BI.SignTextEditor.superclass._init.apply(this,arguments);var e=this,t=this.options;this.editor=BI.createWidget({type:"bi.editor",height:t.height,hgap:4,vgap:2,value:t.value,validationChecker:t.validationChecker,allowBlank:!1}),this.text=BI.createWidget({type:"bi.text_button",cls:"sign-editor-text",title:function(){return e.getValue()},textAlign:t.textAlign,height:t.height,hgap:4,handler:function(){e._showInput(),e.editor.focus(),e.editor.selectAll()}}),this.text.on(BI.TextButton.EVENT_CHANGE,function(){BI.nextTick(function(){e.fireEvent(BI.SignTextEditor.EVENT_CLICK_LABEL)})}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.text,left:0,right:0,top:0,bottom:0}]}),this.editor.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.editor.on(BI.Editor.EVENT_CONFIRM,function(){e._showHint(),e._checkText(),e.fireEvent(BI.SignTextEditor.EVENT_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_CHANGE_CONFIRM,function(){e._showHint(),e._checkText(),e.fireEvent(BI.SignTextEditor.EVENT_CHANGE_CONFIRM,arguments)}),this.editor.on(BI.Editor.EVENT_ERROR,function(){e._checkText()}),BI.createWidget({type:"bi.vertical",scrolly:!1,element:this,items:[this.editor]}),this._showHint(),e._checkText()},_checkText:function(){var t=this.options;BI.nextTick(BI.bind(function(){var e;""===this.editor.getValue()?(this.text.setValue(t.watermark||""),this.text.element.addClass("bi-water-mark")):(e=this.editor.getValue(),e=BI.isEmpty(e)||e==t.text?t.text:e+t.text,this.text.setValue(e),this.text.element.removeClass("bi-water-mark"))},this))},_showInput:function(){this.editor.visible(),this.text.invisible()},_showHint:function(){this.editor.invisible(),this.text.visible()},setTitle:function(e){this.text.setTitle(e)},setWarningTitle:function(e){this.text.setWarningTitle(e)},focus:function(){this._showInput(),this.editor.focus()},blur:function(){this.editor.blur(),this._showHint(),this._checkText()},doRedMark:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doRedMark.apply(this.text,arguments)},unRedMark:function(){this.text.unRedMark.apply(this.text,arguments)},doHighLight:function(){""===this.editor.getValue()&&BI.isKey(this.options.watermark)||this.text.doHighLight.apply(this.text,arguments)},unHighLight:function(){this.text.unHighLight.apply(this.text,arguments)},isValid:function(){return this.editor.isValid()},setErrorText:function(e){this.editor.setErrorText(e)},getErrorText:function(){return this.editor.getErrorText()},isEditing:function(){return this.editor.isEditing()},getLastValidValue:function(){return this.editor.getLastValidValue()},getLastChangedValue:function(){return this.editor.getLastChangedValue()},setValue:function(e){this.editor.setValue(e),this._checkText()},getValue:function(){return this.editor.getValue()},getState:function(){return this.text.getValue()},setState:function(e){var t=this.options;this._showHint(),e=BI.isEmpty(e)||e==t.text?t.text:e+t.text,this.text.setValue(e)}}),BI.SignTextEditor.EVENT_CONFIRM="EVENT_CONFIRM",BI.SignTextEditor.EVENT_CHANGE_CONFIRM="EVENT_CHANGE_CONFIRM",BI.SignTextEditor.EVENT_CLICK_LABEL="EVENT_CLICK_LABEL",BI.shortcut("bi.sign_text_editor",BI.SignTextEditor)},function(e,t){BI.SliderIconButton=BI.inherit(BI.Widget,{props:{baseCls:"bi-single-slider-button"},constants:{LARGE_SIZE:16,NORMAL_SIZE:12,LARGE_OFFSET:4,NORMAL_OFFSET:6},render:function(){var e=this;return{type:"bi.absolute",ref:function(){e.wrapper=this},items:[{el:{type:"bi.text_button",cls:"slider-button bi-high-light-border",ref:function(){e.slider=this}}}]}}}),BI.shortcut("bi.single_slider_button",BI.SliderIconButton)},function(e,t){BI.SingleSlider=BI.inherit(BI.Single,{_constant:{EDITOR_WIDTH:90,EDITOR_HEIGHT:30,SLIDER_WIDTH_HALF:15,SLIDER_WIDTH:30,SLIDER_HEIGHT:30,TRACK_HEIGHT:24,TRACK_GAP_HALF:7,TRACK_GAP:14},props:{baseCls:"bi-single-slider bi-slider-track",digit:!1,unit:""},render:function(){var o=this,s=this.options,c=this._constant;this.enable=!1,this.value="",this.grayTrack=BI.createWidget({type:"bi.layout",cls:"gray-track",height:6}),this.blueTrack=BI.createWidget({type:"bi.layout",cls:"blue-track bi-high-light-background",height:6}),this.track=this._createTrackWrapper(),this.slider=BI.createWidget({type:"bi.single_slider_button"}),this._draggable(this.slider);var u=BI.createWidget({type:"bi.vertical",items:[{type:"bi.absolute",items:[this.slider]}],hgap:c.SLIDER_WIDTH_HALF,height:c.SLIDER_HEIGHT});return u.element.click(function(e){var t,n,r,i,a;o.enable&&o.isEnabled()&&u.element[0]===e.originalEvent.target&&(t=e.clientX-o.element.offset().left-c.SLIDER_WIDTH_HALF,n=o.track.element[0].scrollWidth-c.TRACK_GAP,(r=0)<t&&t<n&&(r=100*t/o._getGrayTrackLength()),n<=t&&(r=100),i=BI.parseFloat(r.toFixed(1)),o._setAllPosition(i),a=o._getValueByPercent(i),a=!1===s.digit?a:a.toFixed(s.digit),o.label.setValue(a),o.value=a,o.fireEvent(BI.SingleSlider.EVENT_CHANGE))}),this.label=BI.createWidget({type:"bi.sign_text_editor",cls:"slider-editor-button",text:s.unit,width:c.EDITOR_WIDTH-2,allowBlank:!1,textAlign:"center",validationChecker:function(e){return o._checkValidation(e)}}),this.label.element.hover(function(){o.label.element.removeClass("bi-border").addClass("bi-border")},function(){o.label.element.removeClass("bi-border")}),this.label.on(BI.SignEditor.EVENT_CONFIRM,function(){var e=BI.parseFloat(this.getValue()),t=o._getPercentByValue(e),n=BI.parseFloat(t.toFixed(1));o._setAllPosition(n),this.setValue(e),o.value=e,o.fireEvent(BI.SingleSlider.EVENT_CHANGE)}),this._setVisible(!1),{type:"bi.absolute",items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.track,width:"100%",height:c.TRACK_HEIGHT}]}],hgap:c.TRACK_GAP_HALF,height:c.TRACK_HEIGHT},top:23,left:0,width:"100%"},{el:u,top:20,left:0,width:"100%"},{el:{type:"bi.vertical",items:[{type:"bi.horizontal_auto",items:[this.label]}],height:c.EDITOR_HEIGHT},top:0,left:0,width:"100%"}]}},_draggable:function(i){var a=this,o=this.options,s=!1,c=0,u=0,l=0,d=new BI.MouseMoveTracker(function(e){var t,n,r;d.isDragging()&&(s=!0,c=p(l+(u+=e)),i.element.addClass("dragging"),t=100*c/a._getGrayTrackLength(),n=BI.parseFloat(t.toFixed(1)),a._setBlueTrack(n),a._setLabelPosition(n),a._setSliderPosition(n),r=a._getValueByPercent(n),r=!1===o.digit?r:r.toFixed(o.digit),a.label.setValue(r),a.value=r)},function(){var e,t;!0===s&&(e=100*(c=p(c))/a._getGrayTrackLength(),t=BI.parseFloat(e.toFixed(1)),a._setSliderPosition(t),u=c=0,l=c,s=!1),i.element.removeClass("dragging"),d.releaseMouseMoves(),a.fireEvent(BI.SingleSlider.EVENT_CHANGE)},window);function p(e){return BI.clamp(e,0,a._getGrayTrackLength())}i.element.on("mousedown",function(e){i.isEnabled()&&(p(l=this.offsetLeft),d.captureMouseMoves(e))})},_createTrackWrapper:function(){return BI.createWidget({type:"bi.absolute",items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.grayTrack,top:0,left:0,width:"100%"},{el:this.blueTrack,top:0,left:0,width:"0%"}]}],hgap:8,height:8},top:8,left:0,width:"100%"}]})},_checkValidation:function(e){var t=this.options,n=!1;return BI.isNumeric(e)&&!(BI.isNull(e)||e<this.min||e>this.max)&&(n=!1===t.digit||((e+"").split(".")[1]||"").length===t.digit),n},_setBlueTrack:function(e){this.blueTrack.element.css({width:e+"%"})},_setLabelPosition:function(e){},_setSliderPosition:function(e){this.slider.element.css({left:e+"%"})},_setAllPosition:function(e){this._setSliderPosition(e),this._setLabelPosition(e),this._setBlueTrack(e)},_setVisible:function(e){this.slider.setVisible(e),this.label.setVisible(e)},_getGrayTrackLength:function(){return this.grayTrack.element[0].scrollWidth},_getValueByPercent:function(e){var t=BI.parseInt(10*e);return(this.max-this.min)*t/1e3+this.min},_getPercentByValue:function(e){return 100*(e-this.min)/(this.max-this.min)},getValue:function(){return this.value},setValue:function(e){var t=this.options;e=BI.parseFloat(e),e=!1===t.digit?e:e.toFixed(t.digit),isNaN(e)||(this._checkValidation(e)&&(this.value=e),e>this.max&&(this.value=this.max),e<this.min&&(this.value=this.min))},_setEnable:function(e){BI.SingleSlider.superclass._setEnable.apply(this,[e]),e?this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track"):this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track")},setMinAndMax:function(e){var t=BI.parseFloat(e.min),n=BI.parseFloat(e.max);!isNaN(t)&&!isNaN(n)&&t<n&&(this.min=t,this.max=n)},reset:function(){this._setVisible(!1),this.enable=!1,this.value="",this.min=0,this.max=0,this._setBlueTrack(0)},populate:function(){var e=this.options;isNaN(this.min)||isNaN(this.max)||(this._setVisible(!0),this.enable=!0,e.digit?this.label.setErrorText(BI.i18nText("BI-Basic_Please_Enter_Number_Between",this.min,this.max)):this.label.setErrorText(BI.i18nText("BI-Basic_Please_Enter_Integer_Number_Between",this.min,this.max)),BI.isNumeric(this.value)||BI.isNotEmptyString(this.value)?(this.label.setValue(this.value),this._setAllPosition(this._getPercentByValue(this.value))):(this.label.setValue(this.max),this._setAllPosition(100)))}}),BI.SingleSlider.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_slider",BI.SingleSlider)},function(e,t){BI.SingleSliderLabel=BI.inherit(BI.Single,{_constant:{EDITOR_WIDTH:90,EDITOR_HEIGHT:20,HEIGHT:20,SLIDER_WIDTH_HALF:15,SLIDER_WIDTH:30,SLIDER_HEIGHT:30,TRACK_HEIGHT:24,TRACK_GAP_HALF:7,TRACK_GAP:14},_defaultConfig:function(){return BI.extend(BI.SingleSliderLabel.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-slider-label bi-slider-track",digit:!1,unit:""})},_init:function(){BI.SingleSliderLabel.superclass._init.apply(this,arguments);var o=this,s=this.options,c=this._constant;this.enable=!1,this.value="",this.grayTrack=BI.createWidget({type:"bi.layout",cls:"gray-track",height:6}),this.blueTrack=BI.createWidget({type:"bi.layout",cls:"blue-track bi-high-light-background",height:6}),this.track=this._createTrackWrapper(),this.slider=BI.createWidget({type:"bi.single_slider_button"}),this._draggable(this.slider);var u=BI.createWidget({type:"bi.vertical",items:[{type:"bi.absolute",items:[this.slider]}],hgap:c.SLIDER_WIDTH_HALF,height:c.SLIDER_HEIGHT});u.element.click(function(e){var t,n,r,i,a;o.enable&&o.isEnabled()&&u.element[0]===e.originalEvent.target&&(t=e.clientX-o.element.offset().left-c.SLIDER_WIDTH_HALF,n=o.track.element[0].scrollWidth-c.TRACK_GAP,(r=0)<t&&t<n&&(r=100*t/o._getGrayTrackLength()),n<=t&&(r=100),i=BI.parseFloat(r.toFixed(1)),o._setAllPosition(i),a=o._getValueByPercent(i),a=!1===s.digit?a:a.toFixed(s.digit),o.label.setText(a+s.unit),o.value=a,o.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE))}),this.label=BI.createWidget({type:"bi.label",height:c.HEIGHT,width:c.EDITOR_WIDTH-2}),this._setVisible(!1),BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.track,width:"100%",height:c.TRACK_HEIGHT}]}],hgap:c.TRACK_GAP_HALF,height:c.TRACK_HEIGHT},top:13,left:0,width:"100%"},{el:u,top:10,left:0,width:"100%"},{el:{type:"bi.vertical",items:[{type:"bi.horizontal_auto",items:[this.label]}],height:c.EDITOR_HEIGHT},top:0,left:0,width:"100%"}]})},_draggable:function(i){var a=this,o=this.options,s=!1,c=0,u=0,l=0,d=new BI.MouseMoveTracker(function(e){var t,n,r;d.isDragging()&&(s=!0,c=p(l+(u+=e)),i.element.addClass("dragging"),t=100*c/a._getGrayTrackLength(),n=BI.parseFloat(t.toFixed(1)),a._setBlueTrack(n),a._setLabelPosition(n),a._setSliderPosition(n),r=a._getValueByPercent(n),r=!1===o.digit?r:r.toFixed(o.digit),a.label.setValue(r+o.unit),a.value=r,a.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE))},function(){var e,t;!0===s&&(e=100*(c=p(c))/a._getGrayTrackLength(),t=BI.parseFloat(e.toFixed(1)),a._setSliderPosition(t),u=c=0,l=c,s=!1),i.element.removeClass("dragging"),d.releaseMouseMoves(),a.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE)},window);function p(e){return BI.clamp(e,0,a._getGrayTrackLength())}i.element.on("mousedown",function(e){i.isEnabled()&&(p(l=this.offsetLeft),d.captureMouseMoves(e))})},_createTrackWrapper:function(){return BI.createWidget({type:"bi.absolute",items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.grayTrack,top:0,left:0,width:"100%"},{el:this.blueTrack,top:0,left:0,width:"0%"}]}],hgap:8,height:8},top:8,left:0,width:"100%"}]})},_checkValidation:function(e){return BI.isNumeric(e)&&!(BI.isNull(e)||e<this.min||e>this.max)},_setBlueTrack:function(e){this.blueTrack.element.css({width:e+"%"})},_setLabelPosition:function(e){},_setSliderPosition:function(e){this.slider.element.css({left:e+"%"})},_setAllPosition:function(e){this._setSliderPosition(e),this._setLabelPosition(e),this._setBlueTrack(e)},_setVisible:function(e){this.slider.setVisible(e),this.label.setVisible(e)},_getGrayTrackLength:function(){return this.grayTrack.element[0].scrollWidth},_getValueByPercent:function(e){var t=BI.parseInt(10*e);return(this.max-this.min)*t/1e3+this.min},_getPercentByValue:function(e){return 100*(e-this.min)/(this.max-this.min)},_setEnable:function(e){BI.SingleSliderLabel.superclass._setEnable.apply(this,[e]),e?this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track"):this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track")},getValue:function(){return this.value},setValue:function(e){var t=this.options;e=BI.parseFloat(e),e=!1===t.digit?e:e.toFixed(t.digit),isNaN(e)||(this._checkValidation(e)&&(this.value=e),e>this.max&&(this.value=this.max),e<this.min&&(this.value=this.min))},setMinAndMax:function(e){var t=BI.parseFloat(e.min),n=BI.parseFloat(e.max);!isNaN(t)&&!isNaN(n)&&t<n&&(this.min=t,this.max=n)},reset:function(){this._setVisible(!1),this.enable=!1,this.value="",this.min=0,this.max=0,this._setBlueTrack(0)},populate:function(){var e=this.options;isNaN(this.min)||isNaN(this.max)||(this._setVisible(!0),this.enable=!0,BI.isNumeric(this.value)||BI.isNotEmptyString(this.value)?(this.label.setValue(this.value+e.unit),this._setAllPosition(this._getPercentByValue(this.value))):(this.label.setValue(this.max+e.unit),this._setAllPosition(100)))}}),BI.SingleSliderLabel.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_slider_label",BI.SingleSliderLabel)},function(e,t){BI.SingleSliderNormal=BI.inherit(BI.Single,{_constant:{HEIGHT:28,SLIDER_WIDTH_HALF:15,SLIDER_WIDTH:30,SLIDER_HEIGHT:30,TRACK_HEIGHT:24,TRACK_GAP_HALF:7,TRACK_GAP:14},props:{baseCls:"bi-single-slider-normal bi-slider-track",minMax:{min:0,max:100}},render:function(){var o=this,s=this._constant,e=this._createTrack();this.slider=BI.createWidget({type:"bi.single_slider_button"}),this._draggable(this.slider);var c=BI.createWidget({type:"bi.vertical",items:[{type:"bi.absolute",items:[this.slider]}],hgap:s.SLIDER_WIDTH_HALF,height:s.SLIDER_HEIGHT});return c.element.click(function(e){var t,n,r,i,a;o.enable&&o.isEnabled()&&c.element[0]===e.originalEvent.target&&(t=e.clientX-o.element.offset().left-s.SLIDER_WIDTH_HALF,n=o.track.element[0].scrollWidth-s.TRACK_GAP,(r=0)<t&&t<n&&(r=100*t/o._getGrayTrackLength()),n<=t&&(r=100),i=BI.parseFloat(r.toFixed(1)),o._setAllPosition(i),a=o._getValueByPercent(i),o.value=a,o.fireEvent(BI.SingleSlider.EVENT_CHANGE))}),{type:"bi.absolute",element:this,items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:e,width:"100%",height:s.TRACK_HEIGHT}]}],hgap:s.TRACK_GAP_HALF,height:s.TRACK_HEIGHT},top:3,left:0,width:"100%"},{el:c,top:0,left:0,width:"100%"}]}},_draggable:function(i){var a=this,o=this.options,s=!1,c=0,u=0,l=0,d=new BI.MouseMoveTracker(function(e){var t,n,r;d.isDragging()&&(s=!0,c=p(l+(u+=e)),i.element.addClass("dragging"),t=100*c/a._getGrayTrackLength(),n=BI.parseFloat(t.toFixed(1)),a._setBlueTrack(n),a._setSliderPosition(n),r=a._getValueByPercent(n),r=!1===o.digit?r:r.toFixed(o.digit),a.value=r,a.fireEvent(BI.SingleSliderNormal.EVENT_DRAG,r))},function(){var e,t;!0===s&&(e=100*(c=p(c))/a._getGrayTrackLength(),t=BI.parseFloat(e.toFixed(1)),a._setSliderPosition(t),u=c=0,l=c,s=!1),i.element.removeClass("dragging"),d.releaseMouseMoves(),a.fireEvent(BI.SingleSlider.EVENT_CHANGE)},window);function p(e){return BI.clamp(e,0,a._getGrayTrackLength())}i.element.on("mousedown",function(e){i.isEnabled()&&(p(l=this.offsetLeft),d.captureMouseMoves(e))})},_createTrack:function(){var t=this;this._constant;return this.grayTrack=BI.createWidget({type:"bi.layout",cls:"gray-track",height:6}),this.blueTrack=BI.createWidget({type:"bi.layout",cls:"blue-track bi-high-light-background",height:6}),this.options.color&&this.blueTrack.element.css({"background-color":this.options.color}),{type:"bi.absolute",items:[{el:{type:"bi.vertical",items:[{type:"bi.absolute",items:[{el:this.grayTrack,top:0,left:0,width:"100%"},{el:this.blueTrack,top:0,left:0,width:"0%"}]}],hgap:8,height:8},top:8,left:0,width:"100%"}],ref:function(e){t.track=e}}},_checkValidation:function(e){return!(BI.isNull(e)||e<this.min||e>this.max)},_setBlueTrack:function(e){this.blueTrack.element.css({width:e+"%"})},_setSliderPosition:function(e){this.slider.element.css({left:e+"%"})},_setAllPosition:function(e){this._setSliderPosition(e),this._setBlueTrack(e)},_setVisible:function(e){this.slider.setVisible(e)},_getGrayTrackLength:function(){return this.grayTrack.element[0].scrollWidth},_getValueByPercent:function(e){var t=BI.parseInt(10*e);return(this.max-this.min)*t/1e3+this.min},_getPercentByValue:function(e){return 100*(e-this.min)/(this.max-this.min)},_setEnable:function(e){BI.SingleSliderNormal.superclass._setEnable.apply(this,[e]),e?this.blueTrack.element.removeClass("disabled-blue-track").addClass("blue-track"):this.blueTrack.element.removeClass("blue-track").addClass("disabled-blue-track")},getValue:function(){return this.value},setValue:function(e){var t=BI.parseFloat(e);isNaN(t)||(this._checkValidation(t)&&(this.value=t),t>this.max&&(this.value=this.max),t<this.min&&(this.value=this.min))},setMinAndMax:function(e){var t=BI.parseFloat(e.min),n=BI.parseFloat(e.max);!isNaN(t)&&!isNaN(n)&&t<n&&(this.min=t,this.max=n)},reset:function(){this._setVisible(!1),this.enable=!1,this.value="",this.min=0,this.max=0,this._setBlueTrack(0)},populate:function(){isNaN(this.min)||isNaN(this.max)||(this._setVisible(!0),this.enable=!0,BI.isNumeric(this.value)||BI.isNotEmptyString(this.value)?this._setAllPosition(this._getPercentByValue(this.value)):this._setAllPosition(100))}}),BI.SingleSliderNormal.EVENT_DRAG="EVENT_DRAG",BI.shortcut("bi.single_slider_normal",BI.SingleSliderNormal)},function(e,t){BI.SingleTreeCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SingleTreeCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-tree-combo",trigger:{},height:24,text:"",items:[],value:"",attributes:{tabIndex:0}})},_init:function(){BI.SingleTreeCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;this.trigger=BI.createWidget(BI.extend({type:"bi.single_tree_trigger",text:t.text,height:t.height,items:t.items,value:t.value},t.trigger)),this.popup=BI.createWidget({type:"bi.single_level_tree",items:t.items,value:t.value}),this.combo=BI.createWidget({type:"bi.combo",container:t.container,element:this,adjustLength:2,el:this.trigger,popup:{el:this.popup}}),this.combo.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){e.fireEvent(BI.SingleTreeCombo.EVENT_BEFORE_POPUPVIEW,arguments)}),this.popup.on(BI.SingleTreePopup.EVENT_CHANGE,function(){e.setValue(e.popup.getValue()),e.combo.hideView(),e.fireEvent(BI.SingleTreeCombo.EVENT_CHANGE)})},populate:function(e){this.combo.populate(e)},setValue:function(e){e=BI.isArray(e)?e:[e],this.trigger.setValue(e),this.popup.setValue(e)},getValue:function(){return this.popup.getValue()}}),BI.SingleTreeCombo.EVENT_CHANGE="EVENT_CHANGE",BI.SingleTreeCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.single_tree_combo",BI.SingleTreeCombo)},function(e,t){BI.SingleTreePopup=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.SingleTreePopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-level-tree",tipText:BI.i18nText("BI-No_Selected_Item"),items:[],value:""})},_init:function(){BI.SingleTreePopup.superclass._init.apply(this,arguments);var e=this,t=this.options;this.tree=BI.createWidget({type:"bi.level_tree",expander:{isDefaultInit:!0},items:t.items,value:t.value,chooseType:BI.Selection.Single}),BI.createWidget({type:"bi.vertical",element:this,vgap:5,items:[this.tree]}),this.tree.on(BI.Controller.EVENT_CHANGE,function(){e.fireEvent(BI.Controller.EVENT_CHANGE,arguments)}),this.tree.on(BI.LevelTree.EVENT_CHANGE,function(){e.fireEvent(BI.SingleTreePopup.EVENT_CHANGE)}),this.check()},getValue:function(){return this.tree.getValue()},setValue:function(e){e=BI.isArray(e)?e:[e],this.tree.setValue(e)},populate:function(e){BI.SingleTreePopup.superclass.populate.apply(this,arguments),this.tree.populate(e)}}),BI.SingleTreePopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.single_level_tree",BI.SingleTreePopup)},function(e,t){BI.SingleTreeTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.SingleTreeTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-single-tree-trigger",height:24,text:"",items:[],value:""})},_init:function(){BI.SingleTreeTrigger.superclass._init.apply(this,arguments);var e=this.options;this.trigger=BI.createWidget({type:"bi.select_text_trigger",element:this,text:e.text,items:e.items,height:e.height,value:e.value})},_checkTitle:function(){var n=this,r=this.getValue();BI.any(this.options.items,function(e,t){if(BI.contains(r,t.value))return n.trigger.setTitle(t.text||t.value),!0})},setValue:function(e){e=BI.isArray(e)?e:[e],this.options.value=e,this.trigger.setValue(e),this._checkTitle()},getValue:function(){return this.options.value||[]},populate:function(e){BI.SingleTreeTrigger.superclass.populate.apply(this,arguments),this.trigger.populate(e)}}),BI.shortcut("bi.single_tree_trigger",BI.SingleTreeTrigger)},function(e,t){BI.TextValueDownListCombo=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.TextValueDownListCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-text-value-down-list-combo",height:24,attributes:{tabIndex:0}})},_init:function(){BI.TextValueDownListCombo.superclass._init.apply(this,arguments);var e,t=this,n=this.options;this._createValueMap(),BI.isNotNull(n.value)&&(e=this._digest(n.value)),this.trigger=BI.createWidget({type:"bi.down_list_select_text_trigger",cls:"text-value-down-list-trigger",height:n.height,items:n.items,text:n.text,value:e}),this.combo=BI.createWidget({type:"bi.down_list_combo",element:this,chooseType:BI.Selection.Single,adjustLength:2,height:n.height,el:this.trigger,value:BI.isNull(e)?[]:[e],items:BI.deepClone(n.items)}),this.combo.on(BI.DownListCombo.EVENT_CHANGE,function(){var e=t.combo.getValue()[0].value;e!==t.value&&(t.setValue(e),t.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE))}),this.combo.on(BI.DownListCombo.EVENT_SON_VALUE_CHANGE,function(){var e=t.combo.getValue()[0].childValue;e!==t.value&&(t.setValue(e),t.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE))})},_createValueMap:function(){var r=this;this.valueMap={},BI.each(BI.flatten(this.options.items),function(e,n){BI.has(n,"el")?BI.each(n.children,function(e,t){r.valueMap[t.value]={value:n.el.value,childValue:t.value}}):r.valueMap[n.value]={value:n.value}})},_digest:function(e){return this.value=e,this.valueMap[e]},setValue:function(e){e=this._digest(e),this.combo.setValue([e]),this.trigger.setValue(e)},getValue:function(){var e=this.combo.getValue()[0];return[e.childValue||e.value]},populate:function(e){this.options.items=BI.flatten(e),this.combo.populate(e),this._createValueMap()}}),BI.TextValueDownListCombo.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.text_value_down_list_combo",BI.TextValueDownListCombo)},function(e,t){BI.DownListSelectTextTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){return BI.extend(BI.DownListSelectTextTrigger.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-down-list-select-text-trigger",height:24,text:""})},_init:function(){BI.DownListSelectTextTrigger.superclass._init.apply(this,arguments);var e=this.options;this.trigger=BI.createWidget({type:"bi.select_text_trigger",element:this,height:e.height,items:this._formatItemArray(e.items),text:e.text,value:BI.isNull(e.value)?"":e.value.childValue||e.value.value})},_formatItemArray:function(){var e=BI.flatten(BI.deepClone(this.options.items)),t=[];return BI.each(e,function(e,n){BI.has(n,"el")?(BI.each(n.children,function(e,t){t.text=n.el.text+"("+t.text+")"}),t=BI.concat(t,n.children)):t.push(n)}),t},setValue:function(e){this.trigger.setValue(e.childValue||e.value)},populate:function(e){this.trigger.populate(this._formatItemArray(e))}}),BI.shortcut("bi.down_list_select_text_trigger",BI.DownListSelectTextTrigger)},function(e,t){BI.TimePopup=BI.inherit(BI.Widget,{props:{baseCls:"bi-date-time-popup",height:68},render:function(){var t=this;return{type:"bi.vtape",items:[{el:{type:"bi.center_adapt",cls:"bi-split-top",items:[{type:"bi.dynamic_date_time_select",value:this.options.value,ref:function(e){t.timeSelect=e}}]},hgap:10,height:44},{el:{type:"bi.grid",items:[[{type:"bi.text_button",cls:"bi-high-light bi-split-top",shadow:!0,text:BI.i18nText("BI-Basic_Clears"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){t.fireEvent(BI.TimePopup.BUTTON_CLEAR_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-left bi-split-right bi-high-light bi-split-top",shadow:!0,text:BI.i18nText("BI-Basic_Now"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){t.fireEvent(BI.TimePopup.BUTTON_NOW_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-high-light bi-split-top",shadow:!0,text:BI.i18nText("BI-Basic_OK"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){t.fireEvent(BI.TimePopup.BUTTON_OK_EVENT_CHANGE)}}]}]]},height:24}]}},setValue:function(e){this._checkValueValid(e)?this.timeSelect.setValue():this.timeSelect.setValue({hour:e.hour,minute:e.minute,second:e.second})},getValue:function(){return this.timeSelect.getValue()},_checkValueValid:function(e){return BI.isNull(e)||BI.isEmptyObject(e)||BI.isEmptyString(e)}}),BI.TimePopup.BUTTON_OK_EVENT_CHANGE="BUTTON_OK_EVENT_CHANGE",BI.TimePopup.BUTTON_CLEAR_EVENT_CHANGE="BUTTON_CLEAR_EVENT_CHANGE",BI.TimePopup.BUTTON_NOW_EVENT_CHANGE="BUTTON_NOW_EVENT_CHANGE",BI.TimePopup.CALENDAR_EVENT_CHANGE="CALENDAR_EVENT_CHANGE",BI.shortcut("bi.time_popup",BI.TimePopup)},function(e,t){BI.TimeCombo=BI.inherit(BI.Single,{constants:{popupHeight:80,popupWidth:240,comboAdjustHeight:1,border:1},props:{baseCls:"bi-time-combo bi-border bi-border-radius bi-focus-shadow",format:"",allowEdit:!1},render:function(){var n=this,e=this.options;this.storeTriggerValue="",this.storeValue=e.value;var t={type:"bi.time_popup",value:e.value,listeners:[{eventName:BI.TimePopup.BUTTON_CLEAR_EVENT_CHANGE,action:function(){n.setValue(),n.hidePopupView(),n.fireEvent(BI.TimeCombo.EVENT_CONFIRM)}},{eventName:BI.TimePopup.BUTTON_OK_EVENT_CHANGE,action:function(){n.setValue(n.popup.getValue()),n.hidePopupView(),n.fireEvent(BI.TimeCombo.EVENT_CONFIRM)}},{eventName:BI.TimePopup.BUTTON_NOW_EVENT_CHANGE,action:function(){n._setNowTime()}}],ref:function(e){n.popup=e}};return{type:"bi.htape",items:[{type:"bi.absolute",items:[{el:{type:"bi.combo",container:e.container,toggle:!1,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:{type:"bi.time_trigger",height:e.height,allowEdit:e.allowEdit,watermark:e.watermark,format:e.format,value:e.value,ref:function(e){n.trigger=e},listeners:[{eventName:"EVENT_KEY_DOWN",action:function(){n.combo.isViewVisible()&&n.combo.hideView(),n.fireEvent(BI.TimeCombo.EVENT_KEY_DOWN,arguments)}},{eventName:"EVENT_STOP",action:function(){n.combo.isViewVisible()||n.combo.showView()}},{eventName:"EVENT_FOCUS",action:function(){n.storeTriggerValue=n.trigger.getKey(),n.combo.isViewVisible()||n.combo.showView(),n.fireEvent("EVENT_FOCUS")}},{eventName:"EVENT_BLUR",action:function(){n.fireEvent("EVENT_BLUR")}},{eventName:"EVENT_ERROR",action:function(){var e=BI.getDate();n.storeValue={hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds()},n.fireEvent("EVENT_ERROR")}},{eventName:"EVENT_VALID",action:function(){n.fireEvent("EVENT_VALID")}},{eventName:"EVENT_CHANGE",action:function(){n.fireEvent("EVENT_CHANGE")}},{eventName:"EVENT_CONFIRM",action:function(){var e,t;n.combo.isViewVisible()||(e=n.storeTriggerValue,t=n.trigger.getKey(),BI.isNotEmptyString(t)&&!BI.isEqual(t,e)?(n.storeValue=n.trigger.getValue(),n.setValue(n.trigger.getValue())):BI.isEmptyString(t)&&(n.storeValue=null,n.trigger.setValue()),n.fireEvent("EVENT_CONFIRM"))}}]},adjustLength:this.constants.comboAdjustHeight,popup:{el:t,width:this.constants.popupWidth,stopPropagation:!1},hideChecker:function(e){return 0===n.triggerBtn.element.find(e.target).length},listeners:[{eventName:BI.Combo.EVENT_BEFORE_POPUPVIEW,action:function(){n.popup.setValue(n.storeValue),n.fireEvent(BI.TimeCombo.EVENT_BEFORE_POPUPVIEW)}}],ref:function(e){n.combo=e}},top:0,left:0,right:22,bottom:0},{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button time-font icon-size-16",width:22,height:22,listeners:[{eventName:BI.IconButton.EVENT_CHANGE,action:function(){n.combo.isViewVisible()||n.combo.showView()}}],ref:function(e){n.triggerBtn=e}},top:0,right:0}]}]}},setValue:function(e){this.storeValue=e,this.trigger.setValue(e)},getValue:function(){return this.storeValue},hidePopupView:function(){this.combo.hideView()},_setNowTime:function(){var e=BI.getDate(),t={hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds()};this.setValue(t),this.hidePopupView(),this.fireEvent(BI.TimeCombo.EVENT_CONFIRM)}}),BI.TimeCombo.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.TimeCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.TimeCombo.EVENT_CHANGE="EVENT_CHANGE",BI.TimeCombo.EVENT_VALID="EVENT_VALID",BI.TimeCombo.EVENT_ERROR="EVENT_ERROR",BI.TimeCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.time_combo",BI.TimeCombo)},function(e,t){BI.TimeTrigger=BI.inherit(BI.Trigger,{_const:{COMPARE_FORMAT:"%H:%M:%S",COMPLETE_COMPARE_FORMAT:"%Y-%M-%d %H:%M:%S %P",FORMAT_ARRAY:["%H:%M:%S","%I:%M:%S","%l:%M:%S","%k:%M:%S","%l:%M:%S %p","%l:%M:%S %P","%H:%M:%S %p","%H:%M:%S %P","%l:%M","%k:%M","%I:%M","%H:%M","%M:%S"],DEFAULT_DATE_STRING:"2000-01-01",DEFAULT_HOUR:"00"},props:{extraCls:"bi-time-trigger",value:{},format:"",allowEdit:!1},render:function(){var n=this,e=this.options;return this.storeTriggerValue="",this.storeValue=e.value,{type:"bi.absolute",items:[{el:{type:"bi.sign_editor",height:e.height,validationChecker:function(e){return n._dateCheck(e)},quitChecker:function(){return!1},ref:function(e){n.editor=e},value:this._formatValue(e.value),hgap:4,allowBlank:!0,watermark:BI.isKey(e.watermark)?e.watermark:BI.i18nText("BI-Basic_Unrestricted"),title:BI.bind(this._getTitle,this),listeners:[{eventName:"EVENT_KEY_DOWN",action:function(){n.fireEvent("EVENT_KEY_DOWN",arguments)}},{eventName:"EVENT_FOCUS",action:function(){n.storeTriggerValue=n.getKey(),n.fireEvent("EVENT_FOCUS")}},{eventName:"EVENT_BLUR",action:function(){n.fireEvent("EVENT_BLUR")}},{eventName:"EVENT_STOP",action:function(){n.fireEvent("EVENT_STOP")}},{eventName:"EVENT_VALID",action:function(){n.fireEvent("EVENT_VALID")}},{eventName:"EVENT_ERROR",action:function(){n.fireEvent("EVENT_ERROR")}},{eventName:"EVENT_CONFIRM",action:function(){var e,t=n.editor.getValue();BI.isNotNull(t)&&n.editor.setState(t),BI.isNotEmptyString(t)&&!BI.isEqual(n.storeTriggerValue,n.getKey())&&(e=t.match(/\d+/g),n.storeValue={hour:0|e[0],minute:0|e[1],second:0|e[2]}),n.fireEvent("EVENT_CONFIRM")}},{eventName:"EVENT_START",action:function(){n.fireEvent("EVENT_START")}},{eventName:"EVENT_CHANGE",action:function(){n.fireEvent("EVENT_CHANGE")}}]},left:0,right:0,top:0,bottom:0},{el:{type:"bi.text",invisible:e.allowEdit,cls:"show-text",title:BI.bind(this._getTitle,this),hgap:4},left:0,right:0,top:0,bottom:0}]}},_dateCheck:function(n){var r=this._const,i=this;return BI.any(r.FORMAT_ARRAY,function(e,t){return BI.print(BI.parseDateTime(r.DEFAULT_DATE_STRING+" "+i._getCompleteHMS(n,t),r.COMPLETE_COMPARE_FORMAT),t)===n})},_getCompleteHMS:function(e,t){var n=this._const;switch(t){case"%M:%S":e=n.DEFAULT_HOUR+":"+e}return e},_getTitle:function(){var e=this.storeValue||{},t=BI.getDate();return BI.print(BI.getDate(t.getFullYear(),0,1,e.hour,e.minute,e.second),this._getFormatString())},_getFormatString:function(){return this.options.format||this._const.COMPARE_FORMAT},_formatValue:function(e){var t=BI.getDate();return BI.isNotEmptyObject(e)?BI.print(BI.getDate(t.getFullYear(),t.getMonth(),t.getDay(),e.hour,e.minute,e.second),this._getFormatString()):""},getKey:function(){return this.editor.getValue()},setValue:function(e){this.storeValue=e,this.editor.setValue(this._formatValue(e))},getValue:function(){return this.storeValue}}),BI.shortcut("bi.time_trigger",BI.TimeTrigger)},function(e,t){BI.DateInterval=BI.inherit(BI.Single,{constants:{height:24,width:24,lgap:15,offset:0,timeErrorCls:"time-error"},_defaultConfig:function(){var e=BI.DateInterval.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-date-interval",minDate:"1900-01-01",maxDate:"2099-12-31",height:24})},_init:function(){var e=this.options;BI.DateInterval.superclass._init.apply(this,arguments),e.value=e.value||{},this.left=this._createCombo(e.value.start),this.right=this._createCombo(e.value.end),this.label=BI.createWidget({type:"bi.label",height:e.height,width:this.constants.width,text:"-"}),BI.createWidget({element:this,type:"bi.center",height:e.height,items:[{type:"bi.absolute",items:[{el:this.left,left:this.constants.offset,right:this.constants.width/2,top:0,bottom:0}]},{type:"bi.absolute",items:[{el:this.right,left:this.constants.width/2,right:this.constants.offset,top:0,bottom:0}]}]}),BI.createWidget({type:"bi.horizontal_auto",element:this,items:[this.label]})},_createCombo:function(e){var n=this,t=this.options,r=BI.createWidget({type:"bi.dynamic_date_combo",behaviors:t.behaviors,value:e,height:t.height});return r.on(BI.DynamicDateCombo.EVENT_ERROR,function(){n._clearTitle(),BI.Bubbles.hide("error"),n.element.removeClass(n.constants.timeErrorCls),n.fireEvent(BI.DateInterval.EVENT_ERROR)}),r.on(BI.DynamicDateCombo.EVENT_VALID,function(){BI.Bubbles.hide("error");var e=n.left.getKey(),t=n.right.getKey();n._check(e,t)&&n._compare(e,t)?(n._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),n.element.addClass(n.constants.timeErrorCls),BI.Bubbles.show("error",BI.i18nText("BI-Time_Interval_Error_Text"),n,{offsetStyle:"center"}),n.fireEvent(BI.DateInterval.EVENT_ERROR)):(n._clearTitle(),n.element.removeClass(n.constants.timeErrorCls))}),r.on(BI.DynamicDateCombo.EVENT_FOCUS,function(){BI.Bubbles.hide("error");var e=n.left.getKey(),t=n.right.getKey();n._check(e,t)&&n._compare(e,t)?(n._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),n.element.addClass(n.constants.timeErrorCls),BI.Bubbles.show("error",BI.i18nText("BI-Time_Interval_Error_Text"),n,{offsetStyle:"center"}),n.fireEvent(BI.DateInterval.EVENT_ERROR)):(n._clearTitle(),n.element.removeClass(n.constants.timeErrorCls))}),r.on(BI.DynamicDateCombo.EVENT_CONFIRM,function(){BI.Bubbles.hide("error");var e=n.left.getKey(),t=n.right.getKey();n._check(e,t)&&n._compare(e,t)?(n._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),n.element.addClass(n.constants.timeErrorCls),n.fireEvent(BI.DateInterval.EVENT_ERROR)):(n._clearTitle(),n.element.removeClass(n.constants.timeErrorCls),n.fireEvent(BI.DateInterval.EVENT_CHANGE))}),r},_dateCheck:function(e){return BI.print(BI.parseDateTime(e,"%Y-%x-%d"),"%Y-%x-%d")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%d"),"%Y-%X-%d")===e||BI.print(BI.parseDateTime(e,"%Y-%x-%e"),"%Y-%x-%e")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%e"),"%Y-%X-%e")===e},_checkVoid:function(e){var t=this.options;return!BI.checkDateVoid(e.year,e.month,e.day,t.minDate,t.maxDate)[0]},_check:function(e,t){var n=e.match(/\d+/g),r=t.match(/\d+/g);return this._dateCheck(e)&&BI.checkDateLegal(e)&&this._checkVoid({year:n[0],month:n[1],day:n[2]})&&this._dateCheck(t)&&BI.checkDateLegal(t)&&this._checkVoid({year:r[0],month:r[1],day:r[2]})},_compare:function(e,t){return e=BI.print(BI.parseDateTime(e,"%Y-%X-%d"),"%Y-%X-%d"),t=BI.print(BI.parseDateTime(t,"%Y-%X-%d"),"%Y-%X-%d"),BI.isNotNull(e)&&BI.isNotNull(t)&&t<e},_setTitle:function(e){this.left.setTitle(e),this.right.setTitle(e),this.label.setTitle(e)},_clearTitle:function(){this.left.setTitle(""),this.right.setTitle(""),this.label.setTitle("")},setValue:function(e){e=e||{},this.left.setValue(e.start),this.right.setValue(e.end)},getValue:function(){return{start:this.left.getValue(),end:this.right.getValue()}}}),BI.DateInterval.EVENT_VALID="EVENT_VALID",BI.DateInterval.EVENT_ERROR="EVENT_ERROR",BI.DateInterval.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.date_interval",BI.DateInterval)},function(e,t){BI.TimeInterval=BI.inherit(BI.Single,{constants:{height:24,width:24,lgap:15,offset:0,timeErrorCls:"time-error"},_defaultConfig:function(){var e=BI.TimeInterval.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{extraCls:"bi-time-interval",minDate:"1900-01-01",maxDate:"2099-12-31",height:24})},_init:function(){var e=this.options;BI.TimeInterval.superclass._init.apply(this,arguments),e.value=e.value||{},this.left=this._createCombo(e.value.start),this.right=this._createCombo(e.value.end),this.label=BI.createWidget({type:"bi.label",height:e.height,width:this.constants.width,text:"-"}),BI.createWidget({element:this,type:"bi.center",height:e.height,items:[{type:"bi.absolute",items:[{el:this.left,left:this.constants.offset,right:this.constants.width/2,top:0,bottom:0}]},{type:"bi.absolute",items:[{el:this.right,left:this.constants.width/2,right:this.constants.offset,top:0,bottom:0}]}]}),BI.createWidget({type:"bi.horizontal_auto",element:this,items:[this.label]})},_createCombo:function(e){var n=this,t=this.options,r=BI.createWidget({type:"bi.dynamic_date_time_combo",behaviors:t.behaviors,value:e,height:t.height});return r.on(BI.DynamicDateTimeCombo.EVENT_ERROR,function(){n._clearTitle(),BI.Bubbles.hide("error"),n.element.removeClass(n.constants.timeErrorCls),n.fireEvent(BI.TimeInterval.EVENT_ERROR)}),r.on(BI.DynamicDateTimeCombo.EVENT_VALID,function(){BI.Bubbles.hide("error");var e=n.left.getKey(),t=n.right.getKey();n.left.isValid()&&n.right.isValid()&&n._check(e,t)&&n._compare(e,t)?(n._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),n.element.addClass(n.constants.timeErrorCls),BI.Bubbles.show("error",BI.i18nText("BI-Time_Interval_Error_Text"),n,{offsetStyle:"center"}),n.fireEvent(BI.TimeInterval.EVENT_ERROR)):(n._clearTitle(),n.element.removeClass(n.constants.timeErrorCls))}),r.on(BI.DynamicDateTimeCombo.EVENT_FOCUS,function(){BI.Bubbles.hide("error");var e=n.left.getKey(),t=n.right.getKey();n.left.isValid()&&n.right.isValid()&&n._check(e,t)&&n._compare(e,t)?(n._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),n.element.addClass(n.constants.timeErrorCls),BI.Bubbles.show("error",BI.i18nText("BI-Time_Interval_Error_Text"),n,{offsetStyle:"center"}),n.fireEvent(BI.TimeInterval.EVENT_ERROR)):(n._clearTitle(),n.element.removeClass(n.constants.timeErrorCls))}),r.on(BI.DynamicDateTimeCombo.EVENT_CONFIRM,function(){BI.Bubbles.hide("error");var e=n.left.getKey(),t=n.right.getKey();n.left.isValid()&&n.right.isValid()&&n._check(e,t)&&n._compare(e,t)?(n._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),n.element.addClass(n.constants.timeErrorCls),n.fireEvent(BI.TimeInterval.EVENT_ERROR)):(n._clearTitle(),n.element.removeClass(n.constants.timeErrorCls),n.fireEvent(BI.TimeInterval.EVENT_CHANGE))}),r},_dateCheck:function(e){return BI.print(BI.parseDateTime(e,"%Y-%x-%d %H:%M:%S"),"%Y-%x-%d %H:%M:%S")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%d %H:%M:%S"),"%Y-%X-%d %H:%M:%S")===e||BI.print(BI.parseDateTime(e,"%Y-%x-%e %H:%M:%S"),"%Y-%x-%e %H:%M:%S")===e||BI.print(BI.parseDateTime(e,"%Y-%X-%e %H:%M:%S"),"%Y-%X-%e %H:%M:%S")===e},_checkVoid:function(e){var t=this.options;return!BI.checkDateVoid(e.year,e.month,e.day,t.minDate,t.maxDate)[0]},_check:function(e,t){var n=e.match(/\d+/g),r=t.match(/\d+/g);return this._dateCheck(e)&&BI.checkDateLegal(e)&&this._checkVoid({year:n[0],month:n[1],day:n[2]})&&this._dateCheck(t)&&BI.checkDateLegal(t)&&this._checkVoid({year:r[0],month:r[1],day:r[2]})},_compare:function(e,t){return e=BI.print(BI.parseDateTime(e,"%Y-%X-%d %H:%M:%S"),"%Y-%X-%d %H:%M:%S"),t=BI.print(BI.parseDateTime(t,"%Y-%X-%d %H:%M:%S"),"%Y-%X-%d %H:%M:%S"),BI.isNotNull(e)&&BI.isNotNull(t)&&t<e},_setTitle:function(e){this.left.setTitle(e),this.right.setTitle(e),this.label.setTitle(e)},_clearTitle:function(){this.left.setTitle(""),this.right.setTitle(""),this.label.setTitle("")},setValue:function(e){e=e||{},this.left.setValue(e.start),this.right.setValue(e.end)},getValue:function(){return{start:this.left.getValue(),end:this.right.getValue()}}}),BI.TimeInterval.EVENT_VALID="EVENT_VALID",BI.TimeInterval.EVENT_ERROR="EVENT_ERROR",BI.TimeInterval.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.time_interval",BI.TimeInterval)},function(e,t){BI.TimePeriods=BI.inherit(BI.Single,{constants:{height:24,width:24,hgap:15,offset:-15},props:{extraCls:"bi-time-interval",value:{}},render:function(){var t=this,e=this.options;return{type:"bi.absolute",height:this.constants.height,items:[{el:{type:"bi.horizontal_auto",items:[{type:"bi.label",height:this.constants.height,width:this.constants.width,text:"-",ref:function(e){t.label=e}}]},top:0,left:0,right:0,bottom:0},{el:{type:"bi.center",height:this.constants.height,hgap:this.constants.hgap,items:[{type:"bi.absolute",items:[{el:BI.extend({ref:function(e){t.left=e}},this._createCombo(e.value.start)),left:this.constants.offset,right:0,top:0,bottom:0}]},{type:"bi.absolute",items:[{el:BI.extend({ref:function(e){t.right=e}},this._createCombo(e.value.end)),left:0,right:this.constants.offset,top:0,bottom:0}]}]},top:0,left:0,right:0,bottom:0}]}},_createCombo:function(e){var t=this;return{type:"bi.time_combo",value:e,listeners:[{eventName:BI.TimeCombo.EVENT_BEFORE_POPUPVIEW,action:function(){t.left.hidePopupView(),t.right.hidePopupView()}},{eventName:BI.TimeCombo.EVENT_CHANGE,action:function(){t.fireEvent(BI.TimePeriods.EVENT_CHANGE)}},{eventName:BI.TimeCombo.EVENT_CONFIRM,action:function(){t.fireEvent(BI.TimePeriods.EVENT_CONFIRM)}}]}},setValue:function(e){e=e||{},this.left.setValue(e.start),this.right.setValue(e.end)},getValue:function(){return{start:this.left.getValue(),end:this.right.getValue()}}}),BI.TimePeriods.EVENT_CONFIRM="EVENT_CONFIRM",BI.TimePeriods.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.time_periods",BI.TimePeriods)},function(e,t){BI.DynamicYearCard=BI.inherit(BI.Widget,{props:{baseCls:"bi-year-card"},render:function(){var e=this;return{type:"bi.vertical",items:[{type:"bi.label",text:BI.i18nText("BI-Multi_Date_Relative_Current_Time"),textAlign:"left",height:24},{type:"bi.dynamic_date_param_item",ref:function(){e.item=this},listeners:[{eventName:"EVENT_CHANGE",action:function(){e.fireEvent("EVENT_CHANGE")}}]}],vgap:10,hgap:10}},_createValue:function(e,t){return{dateType:e,value:Math.abs(t),offset:0<t?1:0}},setValue:function(e){e=e||{year:0},this.item.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR,e.year))},getValue:function(){var e=this.item.getValue();return{year:0===e.offset?-e.value:e.value}}}),BI.DynamicYearCard.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_year_card",BI.DynamicYearCard)},function(e,t){BI.StaticYearCard=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.StaticYearCard.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-year-card",behaviors:{},min:"1900-01-01",max:"2099-12-31"})},_createYearCalendar:function(e){var t=this.options,n=this._year,r=BI.createWidget({type:"bi.year_calendar",behaviors:t.behaviors,min:t.min,max:t.max,logic:{dynamic:!0},year:n+12*e});return r.setValue(this._year),r},_init:function(){BI.StaticYearCard.superclass._init.apply(this,arguments);var t=this,e=this.options;this.selectedYear=this._year=BI.getDate().getFullYear(),this.backBtn=BI.createWidget({type:"bi.icon_button",cls:"pre-page-h-font",width:25,height:25,value:-1,listeners:[{eventName:BI.IconButton.EVENT_CHANGE,action:function(){t.navigation.setSelect(t.navigation.getSelect()-1),t._checkLeftValid(),t._checkRightValid()}}]}),this.preBtn=BI.createWidget({type:"bi.icon_button",cls:"next-page-h-font",width:25,height:25,value:1,listeners:[{eventName:BI.IconButton.EVENT_CHANGE,action:function(){t.navigation.setSelect(t.navigation.getSelect()+1),t._checkLeftValid(),t._checkRightValid()}}]}),this.navigation=BI.createWidget({type:"bi.navigation",direction:"top",element:this,single:!0,logic:{dynamic:!0},tab:{type:"bi.htape",cls:"bi-split-top bi-split-bottom",height:30,items:[{el:{type:"bi.center_adapt",items:[t.backBtn]},width:25},{type:"bi.layout"},{el:{type:"bi.center_adapt",items:[t.preBtn]},width:25}]},cardCreator:BI.bind(this._createYearCalendar,this),afterCardShow:function(){this.setValue(t.selectedYear);var e=this.getSelectedCard();t.backBtn.setEnable(!e.isFrontYear()),t.preBtn.setEnable(!e.isFinalYear())}}),this.navigation.on(BI.Navigation.EVENT_CHANGE,function(){t.selectedYear=this.getValue(),t.fireEvent(BI.Controller.EVENT_CHANGE,arguments),t.fireEvent(BI.StaticYearCard.EVENT_CHANGE,t.selectedYear)}),BI.isKey(e.value)&&this.setValue(e.value)},_checkLeftValid:function(){this.options;return this.backBtn.setEnable(!0),!0},_checkRightValid:function(){this.options;return this.preBtn.setEnable(!0),!0},getValue:function(){return{year:this.selectedYear}},setValue:function(e){var t=this.options,n=(e=e||{}).year;BI.checkDateVoid(n,1,1,t.min,t.max)[0]?(n=BI.getDate().getFullYear(),this.selectedYear="",this.navigation.setSelect(BI.YearCalendar.getPageByYear(n)),this.navigation.setValue("")):(this.selectedYear=BI.parseInt(n),this.navigation.setSelect(BI.YearCalendar.getPageByYear(n)),this.navigation.setValue(this.selectedYear)),this._checkLeftValid(),this._checkRightValid()}}),BI.StaticYearCard.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.static_year_card",BI.StaticYearCard)},function(e,t){BI.DynamicYearCombo=BI.inherit(BI.Widget,{props:{baseCls:"bi-year-combo bi-border bi-border-radius bi-focus-shadow",behaviors:{},min:"1900-01-01",max:"2099-12-31",height:22},_init:function(){BI.DynamicYearCombo.superclass._init.apply(this,arguments);var t=this,e=this.options;this.storeValue=e.value,this.trigger=BI.createWidget({type:"bi.dynamic_year_trigger",min:e.min,max:e.max,height:e.height,value:e.value||""}),this.trigger.on(BI.DynamicYearTrigger.EVENT_KEY_DOWN,function(){t.combo.isViewVisible()&&t.combo.hideView()}),this.trigger.on(BI.DynamicYearTrigger.EVENT_FOCUS,function(){t.storeTriggerValue=this.getKey()}),this.trigger.on(BI.DynamicYearTrigger.EVENT_START,function(){t.combo.isViewVisible()&&t.combo.hideView()}),this.trigger.on(BI.DynamicYearTrigger.EVENT_STOP,function(){t.combo.showView()}),this.trigger.on(BI.DynamicYearTrigger.EVENT_ERROR,function(){t.combo.isViewVisible()&&t.combo.hideView()}),this.trigger.on(BI.DynamicYearTrigger.EVENT_CONFIRM,function(){t.combo.isViewVisible()||(this.getKey()&&this.getKey()!==t.storeTriggerValue?(t.storeValue=t.trigger.getValue(),t.setValue(t.storeValue)):this.getKey()||(t.storeValue=null,t.setValue()),t._checkDynamicValue(t.storeValue),t.fireEvent(BI.DynamicYearCombo.EVENT_CONFIRM))}),this.combo=BI.createWidget({type:"bi.combo",container:e.container,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:this.trigger,popup:{minWidth:85,stopPropagation:!1,el:{type:"bi.dynamic_year_popup",ref:function(){t.popup=this},listeners:[{eventName:BI.DynamicYearPopup.EVENT_CHANGE,action:function(){t.setValue(t.popup.getValue()),t.combo.hideView(),t.fireEvent(BI.DynamicYearCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearPopup.BUTTON_CLEAR_EVENT_CHANGE,action:function(){t.setValue(),t.combo.hideView(),t.fireEvent(BI.DynamicYearCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearPopup.BUTTON_lABEL_EVENT_CHANGE,action:function(){var e=BI.getDate();t.setValue({type:BI.DynamicYearCombo.Static,value:{year:e.getFullYear()}}),t.combo.hideView(),t.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE,action:function(){t.setValue(t.popup.getValue()),t.combo.hideView(),t.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}}],behaviors:e.behaviors,min:e.min,max:e.max},value:e.value||""}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){t.popup.setValue(t.storeValue),t.fireEvent(BI.DynamicYearCombo.EVENT_BEFORE_POPUPVIEW)}),BI.createWidget({type:"bi.htape",element:this,ref:function(){t.comboWrapper=this},items:[{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button date-change-h-font",width:24,height:24,ref:function(){t.changeIcon=this}},width:24},this.combo]}),this._checkDynamicValue(e.value)},_checkDynamicValue:function(e){var t=null;switch(BI.isNotNull(e)&&(t=e.type),t){case BI.DynamicYearCombo.Dynamic:this.changeIcon.setVisible(!0),this.comboWrapper.attr("items")[0].width=24,this.comboWrapper.resize();break;default:this.comboWrapper.attr("items")[0].width=0,this.comboWrapper.resize(),this.changeIcon.setVisible(!1)}},setValue:function(e){this.storeValue=e,this.trigger.setValue(e),this._checkDynamicValue(e)},getValue:function(){return this.storeValue}}),BI.DynamicYearCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicYearCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.dynamic_year_combo",BI.DynamicYearCombo),BI.extend(BI.DynamicYearCombo,{Static:1,Dynamic:2})},function(e,t){BI.DynamicYearPopup=BI.inherit(BI.Widget,{constants:{tabHeight:30,buttonHeight:24},props:{baseCls:"bi-year-popup",behaviors:{},min:"1900-01-01",max:"2099-12-31",width:180,height:240},render:function(){var e=this,t=(this.options,this.constants);return this.storeValue={type:BI.DynamicYearCombo.Static},{type:"bi.vtape",items:[{el:this._getTabJson()},{el:{type:"bi.grid",items:[[{type:"bi.text_button",cls:"bi-split-top bi-high-light",textHeight:t.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_Clear"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearPopup.BUTTON_CLEAR_EVENT_CHANGE)}}]},{type:"bi.text_button",textHeight:t.buttonHeight-1,cls:"bi-split-left bi-split-right bi-high-light bi-split-top",shadow:!0,text:BI.i18nText("BI-Basic_Current_Year"),ref:function(){e.textButton=this},listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearPopup.BUTTON_lABEL_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-top bi-high-light",textHeight:t.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_OK"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE)}}]}]]},height:24}]}},_setInnerValue:function(){var e;this.dateTab.getSelect()===BI.DynamicDateCombo.Static?(this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year")),this.textButton.setEnable(!0)):(e=BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()),e=BI.print(e,"%Y"),this.textButton.setValue(e),this.textButton.setEnable(!1))},_getTabJson:function(){var t=this,n=this.options;return{type:"bi.tab",ref:function(){t.dateTab=this},tab:{type:"bi.linear_segment",cls:"bi-split-bottom",height:this.constants.tabHeight,items:BI.createItems([{text:BI.i18nText("BI-Basic_Year_Fen"),value:BI.DynamicYearCombo.Static},{text:BI.i18nText("BI-Basic_Dynamic_Title"),value:BI.DynamicYearCombo.Dynamic}],{textAlign:"center"})},cardCreator:function(e){switch(e){case BI.DynamicYearCombo.Dynamic:return{type:"bi.dynamic_year_card",listeners:[{eventName:"EVENT_CHANGE",action:function(){t._setInnerValue(t.year,e)}}],ref:function(){t.dynamicPane=this}};case BI.DynamicYearCombo.Static:default:return{type:"bi.static_year_card",behaviors:n.behaviors,min:t.options.min,max:t.options.max,listeners:[{eventName:BI.StaticYearCard.EVENT_CHANGE,action:function(){t.fireEvent(BI.DynamicYearPopup.EVENT_CHANGE)}}],ref:function(){t.year=this}}}},listeners:[{eventName:BI.Tab.EVENT_CHANGE,action:function(){switch(t.dateTab.getSelect()){case BI.DynamicYearCombo.Static:var e=BI.DynamicDateHelper.getCalculation(t.dynamicPane.getValue());t.year.setValue({year:e.getFullYear()}),t._setInnerValue();break;case BI.DynamicYearCombo.Dynamic:default:t.storeValue&&t.storeValue.type===BI.DynamicYearCombo.Dynamic?t.dynamicPane.setValue(t.storeValue.value):t.dynamicPane.setValue({year:0}),t._setInnerValue()}}}]}},setValue:function(e){this.storeValue=e;var t=(e=e||{}).type||BI.DynamicDateCombo.Static,n=e.value||e;switch(this.dateTab.setSelect(t),t){case BI.DynamicDateCombo.Dynamic:this.dynamicPane.setValue(n),this._setInnerValue();break;case BI.DynamicDateCombo.Static:default:this.year.setValue(n),this.textButton.setValue(BI.i18nText("BI-Basic_Current_Year")),this.textButton.setEnable(!0)}},getValue:function(){return{type:this.dateTab.getSelect(),value:this.dateTab.getValue()}}}),BI.DynamicYearPopup.BUTTON_CLEAR_EVENT_CHANGE="BUTTON_CLEAR_EVENT_CHANGE",BI.DynamicYearPopup.BUTTON_lABEL_EVENT_CHANGE="BUTTON_lABEL_EVENT_CHANGE",BI.DynamicYearPopup.BUTTON_OK_EVENT_CHANGE="BUTTON_OK_EVENT_CHANGE",BI.DynamicYearPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_year_popup",BI.DynamicYearPopup)},function(e,t){BI.DynamicYearTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4,vgap:2},_defaultConfig:function(){return BI.extend(BI.DynamicYearTrigger.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-year-trigger",min:"1900-01-01",max:"2099-12-31",height:24})},beforeInit:function(e){this.options.title=BI.bind(this._titleCreator,this),e()},_init:function(){BI.DynamicYearTrigger.superclass._init.apply(this,arguments);var t=this,n=this.options,e=this._const;this.editor=BI.createWidget({type:"bi.sign_editor",height:n.height,validationChecker:function(e){return""===e||BI.isPositiveInteger(e)&&!BI.checkDateVoid(e,1,1,n.min,n.max)[0]},quitChecker:function(e){return!1},hgap:e.hgap,vgap:e.vgap,watermark:BI.i18nText("BI-Basic_Unrestricted"),allowBlank:!0,errorText:function(){return BI.i18nText("BI-Year_Trigger_Invalid_Text")}}),this.editor.on(BI.SignEditor.EVENT_KEY_DOWN,function(){t.fireEvent(BI.DynamicYearTrigger.EVENT_KEY_DOWN,arguments)}),this.editor.on(BI.SignEditor.EVENT_FOCUS,function(){t.fireEvent(BI.DynamicYearTrigger.EVENT_FOCUS)}),this.editor.on(BI.SignEditor.EVENT_STOP,function(){t.fireEvent(BI.DynamicYearTrigger.EVENT_STOP)}),this.editor.on(BI.SignEditor.EVENT_CONFIRM,function(){var e=t.editor.getValue();BI.isNotNull(e)&&t.editor.setValue(e),BI.isNotEmptyString(e)&&(t.storeValue={type:BI.DynamicDateCombo.Static,value:{year:e}}),t.fireEvent(BI.DynamicYearTrigger.EVENT_CONFIRM)}),this.editor.on(BI.SignEditor.EVENT_SPACE,function(){t.editor.isValid()&&t.editor.blur()}),this.editor.on(BI.SignEditor.EVENT_START,function(){t.fireEvent(BI.DynamicYearTrigger.EVENT_START)}),this.editor.on(BI.SignEditor.EVENT_ERROR,function(){t.fireEvent(BI.DynamicYearTrigger.EVENT_ERROR)}),BI.createWidget({element:this,type:"bi.htape",items:[{el:this.editor},{el:{type:"bi.text_button",baseCls:"bi-trigger-year-text",text:BI.i18nText("BI-Multi_Date_Year"),width:n.height},width:n.height},{el:{type:"bi.trigger_icon_button",width:n.height},width:n.height}]}),this.setValue(n.value)},_getText:function(e){var t="";return BI.isNotNull(e.year)&&0!==BI.parseInt(e.year)&&(t+=Math.abs(e.year)+BI.i18nText("BI-Basic_Year")+(e.year<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),t},_setInnerValue:function(e,t){var n=BI.print(e,"%Y");this.editor.setState(n),this.editor.setValue(n)},_titleCreator:function(){var e=this.storeValue||{},t=e.type||BI.DynamicDateCombo.Static,n=e.value;if(!this.editor.isValid())return"";switch(t){case BI.DynamicDateCombo.Dynamic:var r=this._getText(n),i=BI.getDate(),i=BI.DynamicDateHelper.getCalculation(n),a=BI.print(i,"%Y");return BI.isEmptyString(r)?a:r+":"+a;case BI.DynamicDateCombo.Static:default:return(n=n||{}).year}},setValue:function(e){var t,n,r=BI.getDate();switch(this.storeValue=e,BI.isNotNull(e)&&(t=e.type||BI.DynamicDateCombo.Static,n=e.value||e),t){case BI.DynamicDateCombo.Dynamic:var i=this._getText(n),r=BI.DynamicDateHelper.getCalculation(n);this._setInnerValue(r,i);break;case BI.DynamicDateCombo.Static:default:n=n||{},this.editor.setState(n.year),this.editor.setValue(n.year)}},getValue:function(){return this.storeValue},getKey:function(){return 0|this.editor.getValue()}}),BI.DynamicYearTrigger.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.DynamicYearTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicYearTrigger.EVENT_ERROR="EVENT_ERROR",BI.DynamicYearTrigger.EVENT_START="EVENT_START",BI.DynamicYearTrigger.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicYearTrigger.EVENT_STOP="EVENT_STOP",BI.shortcut("bi.dynamic_year_trigger",BI.DynamicYearTrigger)},function(e,t){BI.DynamicYearMonthCard=BI.inherit(BI.Widget,{props:{baseCls:"bi-year-month-card"},render:function(){var e=this;return{type:"bi.vertical",items:[{type:"bi.label",text:BI.i18nText("BI-Multi_Date_Relative_Current_Time"),textAlign:"left",height:24},{type:"bi.dynamic_date_param_item",ref:function(){e.year=this},listeners:[{eventName:"EVENT_CHANGE",action:function(){e.fireEvent("EVENT_CHANGE")}}]},{type:"bi.dynamic_date_param_item",dateType:BI.DynamicDateCard.TYPE.MONTH,ref:function(){e.month=this},listeners:[{eventName:"EVENT_CHANGE",action:function(){e.fireEvent("EVENT_CHANGE")}}]}],vgap:10,hgap:10}},_createValue:function(e,t){return{dateType:e,value:Math.abs(t),offset:0<t?1:0}},setValue:function(e){e=e||{year:0,month:0},this.year.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR,e.year)),this.month.setValue(this._createValue(BI.DynamicDateCard.TYPE.MONTH,e.month))},getValue:function(){var e=this.year.getValue(),t=this.month.getValue();return{year:0===e.offset?-e.value:e.value,month:0===t.offset?-t.value:t.value}}}),BI.DynamicYearMonthCard.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_year_month_card",BI.DynamicYearMonthCard)},function(e,t){BI.StaticYearMonthCard=BI.inherit(BI.Widget,{props:{baseCls:"bi-static-year-month-card",behaviors:{}},_createMonths:function(){var r=this,e=[1,7,2,8,3,9,4,10,5,11,6,12],t=[];return t.push(e.slice(0,2)),t.push(e.slice(2,4)),t.push(e.slice(4,6)),t.push(e.slice(6,8)),t.push(e.slice(8,10)),t.push(e.slice(10,12)),BI.map(t,function(n,e){return BI.map(e,function(t,e){return{type:"bi.text_item",cls:"bi-list-item-select",textAlign:"center",whiteSpace:"nowrap",once:!1,forceSelected:!0,height:23,width:38,value:e,text:e,ref:function(e){r.monthMap[0===t?n:n+6]=e}}})})},render:function(){var t=this,e=this.options;return this.monthMap={},{type:"bi.vertical",items:[{type:"bi.year_picker",min:e.min,max:e.max,ref:function(){t.yearPicker=this},behaviors:e.behaviors,height:30,listeners:[{eventName:BI.YearPicker.EVENT_CHANGE,action:function(){var e=this.getValue();t._checkMonthStatus(e),t.setValue({year:e,month:t.selectedMonth})}}]},{type:"bi.button_group",cls:"bi-split-top",behaviors:e.behaviors,ref:function(){t.month=this},items:this._createMonths(),layouts:[BI.LogicFactory.createLogic("table",BI.extend({dynamic:!0},{columns:2,rows:6,columnSize:[.5,.5],rowSize:25})),{type:"bi.center_adapt",vgap:1,hgap:2}],value:e.value,listeners:[{eventName:BI.ButtonGroup.EVENT_CHANGE,action:function(){t.selectedYear=t.yearPicker.getValue(),t.selectedMonth=this.getValue()[0],t.fireEvent(BI.StaticYearMonthCard.EVENT_CHANGE)}}]}]}},mounted:function(){this._checkMonthStatus(this.selectedYear)},_checkMonthStatus:function(e){var t=this.options,n=BI.parseDateTime(t.min,"%Y-%X-%d"),r=BI.parseDateTime(t.max,"%Y-%X-%d"),i=n.getFullYear(),a=r.getFullYear(),o=0,s=11;i===e&&(o=n.getMonth()),a===e&&(s=r.getMonth());var c=e<i||a<e;BI.each(this.monthMap,function(e,t){var n=e<o||s<e;t.setEnable(!c&&!n)})},setMinDate:function(e){this.options.min!==e&&(this.options.min=e,this.yearPicker.setMinDate(e),this._checkMonthStatus(this.selectedYear))},setMaxDate:function(e){this.options.max!==e&&(this.options.max=e,this.yearPicker.setMaxDate(e),this._checkMonthStatus(this.selectedYear))},getValue:function(){return{year:this.selectedYear,month:this.selectedMonth}},setValue:function(e){var t,n=this.options,r={};r.year=e.year||0,r.month=e.month||0,0===r.year||0===r.month||BI.checkDateVoid(r.year,r.month,1,n.min,n.max)[0]?(t=r.year||BI.getDate().getFullYear(),this.selectedYear=t,this.selectedMonth="",this.yearPicker.setValue(t),this.month.setValue()):(this.selectedYear=BI.parseInt(r.year),this.selectedMonth=BI.parseInt(r.month),this.yearPicker.setValue(this.selectedYear),this.month.setValue(this.selectedMonth))}}),BI.StaticYearMonthCard.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.static_year_month_card",BI.StaticYearMonthCard)},function(e,t){BI.DynamicYearMonthCombo=BI.inherit(BI.Single,{props:{baseCls:"bi-year-month-combo bi-border bi-border-radius bi-focus-shadow",behaviors:{},minDate:"1900-01-01",maxDate:"2099-12-31",height:22},_init:function(){BI.DynamicYearMonthCombo.superclass._init.apply(this,arguments);var n=this,e=this.options;this.storeValue=e.value,this.storeTriggerValue="",this.trigger=BI.createWidget({type:"bi.dynamic_year_month_trigger",min:e.minDate,max:e.maxDate,height:e.height,value:e.value||""}),this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_KEY_DOWN,function(){n.combo.isViewVisible()&&n.combo.hideView()}),this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_START,function(){n.combo.isViewVisible()&&n.combo.hideView()}),this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_STOP,function(){n.combo.showView()}),this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_ERROR,function(){n.combo.isViewVisible()&&n.combo.hideView(),n.fireEvent(BI.DynamicYearMonthCombo.EVENT_ERROR)}),this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_VALID,function(){n.fireEvent(BI.DynamicYearMonthCombo.EVENT_VALID)}),this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_CONFIRM,function(){var e=n.storeTriggerValue,t=n.trigger.getKey();BI.isNotEmptyString(t)&&!BI.isEqual(t,e)&&(n.storeValue=n.trigger.getValue(),n.setValue(n.trigger.getValue())),n._checkDynamicValue(n.storeValue),n.fireEvent(BI.DynamicYearMonthCombo.EVENT_CONFIRM)}),this.trigger.on(BI.DynamicYearMonthTrigger.EVENT_FOCUS,function(){n.storeTriggerValue=n.trigger.getKey(),n.fireEvent(BI.DynamicYearMonthCombo.EVENT_FOCUS)}),this.combo=BI.createWidget({type:"bi.combo",container:e.container,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:this.trigger,popup:{minWidth:100,stopPropagation:!1,el:{type:"bi.dynamic_year_month_popup",ref:function(){n.popup=this},listeners:[{eventName:BI.DynamicYearMonthPopup.EVENT_CHANGE,action:function(){n.setValue(n.popup.getValue()),n.combo.hideView(),n.fireEvent(BI.DynamicYearMonthCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearMonthPopup.BUTTON_CLEAR_EVENT_CHANGE,action:function(){n.setValue(),n.combo.hideView(),n.fireEvent(BI.DynamicYearMonthCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE,action:function(){var e=BI.getDate();n.setValue({type:BI.DynamicYearMonthCombo.Static,value:{year:e.getFullYear(),month:e.getMonth()+1}}),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE,action:function(){n.setValue(n.popup.getValue()),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}}],behaviors:e.behaviors,min:e.minDate,max:e.maxDate},value:e.value||""}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){n.popup.setValue(n.storeValue),n.fireEvent(BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW)}),BI.createWidget({type:"bi.htape",element:this,ref:function(){n.comboWrapper=this},items:[{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button date-change-h-font",width:24,height:24,ref:function(){n.changeIcon=this}},width:24},this.combo]}),this._checkDynamicValue(e.value)},_checkDynamicValue:function(e){var t=null;switch(BI.isNotNull(e)&&(t=e.type),t){case BI.DynamicYearMonthCombo.Dynamic:this.changeIcon.setVisible(!0),this.comboWrapper.attr("items")[0].width=24,this.comboWrapper.resize();break;default:this.comboWrapper.attr("items")[0].width=0,this.comboWrapper.resize(),this.changeIcon.setVisible(!1)}},hideView:function(){this.combo.hideView()},setValue:function(e){this.storeValue=e,this.trigger.setValue(e),this._checkDynamicValue(e)},getValue:function(){return this.storeValue},getKey:function(){return this.trigger.getKey()},isValid:function(){return this.trigger.isValid()}}),BI.DynamicYearMonthCombo.EVENT_ERROR="EVENT_ERROR",BI.DynamicYearMonthCombo.EVENT_VALID="EVENT_VALID",BI.DynamicYearMonthCombo.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicYearMonthCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.dynamic_year_month_combo",BI.DynamicYearMonthCombo),BI.extend(BI.DynamicYearMonthCombo,{Static:1,Dynamic:2})},function(e,t){BI.DynamicYearMonthPopup=BI.inherit(BI.Widget,{constants:{tabHeight:30,buttonHeight:24},props:{baseCls:"bi-year-month-popup",behaviors:{},min:"1900-01-01",max:"2099-12-31",width:180,height:240},render:function(){var e=this,t=(this.options,this.constants);return this.storeValue={type:BI.DynamicYearMonthCombo.Static},{type:"bi.vtape",items:[{el:this._getTabJson()},{el:{type:"bi.grid",items:[[{type:"bi.text_button",cls:"bi-split-top bi-high-light",textHeight:t.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_Clear"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearMonthPopup.BUTTON_CLEAR_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-left bi-split-right bi-high-light bi-split-top",textHeight:t.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_Current_Month"),ref:function(){e.textButton=this},listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-top bi-high-light",textHeight:t.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_OK"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE)}}]}]]},height:24}]}},_setInnerValue:function(){var e;this.dateTab.getSelect()===BI.DynamicDateCombo.Static?(this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month")),this.textButton.setEnable(!0)):(e=BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()),e=BI.print(e,"%Y-%x"),this.textButton.setValue(e),this.textButton.setEnable(!1))},_getTabJson:function(){var t=this,n=this.options;return{type:"bi.tab",ref:function(){t.dateTab=this},tab:{type:"bi.linear_segment",cls:"bi-split-bottom",height:this.constants.tabHeight,items:BI.createItems([{text:BI.i18nText("BI-Basic_Year_Month"),value:BI.DynamicYearCombo.Static},{text:BI.i18nText("BI-Basic_Dynamic_Title"),value:BI.DynamicYearCombo.Dynamic}],{textAlign:"center"})},cardCreator:function(e){switch(e){case BI.DynamicYearCombo.Dynamic:return{type:"bi.dynamic_year_month_card",listeners:[{eventName:"EVENT_CHANGE",action:function(){t._setInnerValue(t.year,e)}}],ref:function(){t.dynamicPane=this}};case BI.DynamicYearCombo.Static:default:return{type:"bi.static_year_month_card",behaviors:n.behaviors,min:t.options.min,max:t.options.max,listeners:[{eventName:BI.StaticYearMonthCard.EVENT_CHANGE,action:function(){t.fireEvent(BI.DynamicYearMonthPopup.EVENT_CHANGE)}}],ref:function(){t.year=this}}}},listeners:[{eventName:BI.Tab.EVENT_CHANGE,action:function(){switch(t.dateTab.getSelect()){case BI.DynamicYearCombo.Static:var e=BI.DynamicDateHelper.getCalculation(t.dynamicPane.getValue());t.year.setValue({year:e.getFullYear(),month:e.getMonth()+1}),t._setInnerValue();break;case BI.DynamicYearCombo.Dynamic:default:t.storeValue&&t.storeValue.type===BI.DynamicYearCombo.Dynamic?t.dynamicPane.setValue(t.storeValue.value):t.dynamicPane.setValue({year:0}),t._setInnerValue()}}}]}},setMinDate:function(e){this.options.min!==e&&(this.options.min=e,this.year.setMinDate(e))},setMaxDate:function(e){this.options.max!==e&&(this.options.max=e,this.year.setMaxDate(e))},setValue:function(e){this.storeValue=e;var t=(e=e||{}).type||BI.DynamicDateCombo.Static,n=e.value||e;switch(this.dateTab.setSelect(t),t){case BI.DynamicDateCombo.Dynamic:this.dynamicPane.setValue(n),this._setInnerValue();break;case BI.DynamicDateCombo.Static:default:this.year.setValue(n),this.textButton.setValue(BI.i18nText("BI-Basic_Current_Month")),this.textButton.setEnable(!0)}},getValue:function(){return{type:this.dateTab.getSelect(),value:this.dateTab.getValue()}}}),BI.DynamicYearMonthPopup.BUTTON_CLEAR_EVENT_CHANGE="BUTTON_CLEAR_EVENT_CHANGE",BI.DynamicYearMonthPopup.BUTTON_lABEL_EVENT_CHANGE="BUTTON_lABEL_EVENT_CHANGE",BI.DynamicYearMonthPopup.BUTTON_OK_EVENT_CHANGE="BUTTON_OK_EVENT_CHANGE",BI.DynamicYearMonthPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_year_month_popup",BI.DynamicYearMonthPopup)},function(e,t){BI.DynamicYearMonthTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4,vgap:2},props:{extraCls:"bi-year-month-trigger",min:"1900-01-01",max:"2099-12-31",height:22},beforeInit:function(e){this.options.title=BI.bind(this._titleCreator,this),e()},_init:function(){BI.DynamicYearMonthTrigger.superclass._init.apply(this,arguments);var e=this.options;this.yearEditor=this._createEditor(!0),this.monthEditor=this._createEditor(!1),BI.createWidget({element:this,type:"bi.htape",items:[{type:"bi.center",items:[{type:"bi.htape",items:[this.yearEditor,{el:{type:"bi.text_button",text:BI.i18nText("BI-Multi_Date_Year"),width:e.height},width:e.height}]},{type:"bi.htape",items:[this.monthEditor,{el:{type:"bi.text_button",text:BI.i18nText("BI-Multi_Date_Month"),width:e.height},width:e.height}]}]},{el:{type:"bi.trigger_icon_button",width:e.height},width:e.height}]}),this.setValue(e.value)},_createEditor:function(t){var n=this,r=this.options,e=this._const,i=BI.parseDateTime(r.min,"%Y-%X-%d"),a=BI.createWidget({type:"bi.sign_editor",height:r.height,validationChecker:function(e){return t?""===e||BI.isPositiveInteger(e)&&!BI.checkDateVoid(e,parseInt(e,10)===i.getFullYear()?i.getMonth()+1:1,1,r.min,r.max)[0]:""===e||BI.isPositiveInteger(e)&&1<=e&&e<=12&&!BI.checkDateVoid(BI.getDate().getFullYear(),e,1,r.min,r.max)[0]},quitChecker:function(){return!1},watermark:BI.i18nText("BI-Basic_Unrestricted"),errorText:function(e){return BI.i18nText("BI-Year_Trigger_Invalid_Text")},hgap:e.hgap,vgap:e.vgap,allowBlank:!0});return a.on(BI.SignEditor.EVENT_KEY_DOWN,function(){n.fireEvent(BI.DynamicYearMonthTrigger.EVENT_KEY_DOWN)}),a.on(BI.SignEditor.EVENT_FOCUS,function(){n.fireEvent(BI.DynamicYearMonthTrigger.EVENT_FOCUS)}),a.on(BI.SignEditor.EVENT_STOP,function(){n.fireEvent(BI.DynamicYearMonthTrigger.EVENT_STOP)}),a.on(BI.SignEditor.EVENT_CONFIRM,function(){n._doEditorConfirm(a),n.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM)}),a.on(BI.SignEditor.EVENT_SPACE,function(){a.isValid()&&a.blur()}),a.on(BI.SignEditor.EVENT_START,function(){n.fireEvent(BI.DynamicYearMonthTrigger.EVENT_START)}),a.on(BI.SignEditor.EVENT_ERROR,function(){n.fireEvent(BI.DynamicYearMonthTrigger.EVENT_ERROR)}),a.on(BI.SignEditor.EVENT_VALID,function(){var e=n.yearEditor.getValue(),t=n.monthEditor.getValue();BI.isNotEmptyString(e)&&BI.isNotEmptyString(t)&&BI.isPositiveInteger(e)&&1<=t&&t<=12&&!BI.checkDateVoid(e,t,1,r.min,r.max)[0]&&n.fireEvent(BI.DynamicYearMonthTrigger.EVENT_VALID)}),a.on(BI.SignEditor.EVENT_CHANGE,function(){t&&n._autoSwitch(a)}),a},_titleCreator:function(){var e=this.storeValue||{},t=e.type||BI.DynamicDateCombo.Static,n=e.value;if(!this.monthEditor.isValid()||!this.yearEditor.isValid())return"";switch(t){case BI.DynamicDateCombo.Dynamic:var r=this._getText(n),i=BI.getDate(),i=BI.DynamicDateHelper.getCalculation(n),a=BI.print(i,"%Y-%x");return BI.isEmptyString(r)?a:r+":"+a;case BI.DynamicDateCombo.Static:default:return n=n||{},this._getStaticTitle(n)}},_doEditorConfirm:function(e){var t=e.getValue();BI.isNotNull(t)&&e.setValue(t);var n=this.monthEditor.getValue();this.storeValue={type:BI.DynamicDateCombo.Static,value:{year:this.yearEditor.getValue(),month:BI.isEmptyString(this.monthEditor.getValue())?"":n}}},_yearCheck:function(e){var t=BI.print(BI.parseDateTime(e,"%Y-%X-%d"),"%Y-%X-%d");return BI.print(BI.parseDateTime(e,"%Y"),"%Y")===e&&t>=this.options.min&&t<=this.options.max},_autoSwitch:function(e){var t=e.getValue();BI.isNotEmptyString(t)&&BI.checkDateLegal(t)&&4===t.length&&this._yearCheck(t)&&(this._doEditorConfirm(e),this.fireEvent(BI.DynamicYearMonthTrigger.EVENT_CONFIRM),this.monthEditor.focus())},_getText:function(e){var t="";return BI.isNotNull(e.year)&&0!==BI.parseInt(e.year)&&(t+=Math.abs(e.year)+BI.i18nText("BI-Basic_Year")+(e.year<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),BI.isNotNull(e.month)&&0!==BI.parseInt(e.month)&&(t+=Math.abs(e.month)+BI.i18nText("BI-Basic_Month")+(e.month<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),t},_setInnerValue:function(e,t){this.yearEditor.setValue(e.getFullYear()),this.monthEditor.setValue(e.getMonth()+1)},_getStaticTitle:function(e){switch(e=e||{},!(BI.isNull(e.year)||BI.isEmptyString(e.year))<<1|!(BI.isNull(e.month)||BI.isEmptyString(e.month))){case 0:return"";case 1:return e.month;case 2:return e.year;case 3:default:return e.year+"-"+e.month}},setValue:function(e){var t,n,r=BI.getDate();switch(this.storeValue=e,BI.isNotNull(e)&&(t=e.type||BI.DynamicDateCombo.Static,n=e.value||e),t){case BI.DynamicDateCombo.Dynamic:var i=this._getText(n),r=BI.DynamicDateHelper.getCalculation(n);this._setInnerValue(r,i);break;case BI.DynamicDateCombo.Static:default:n=n||{};var a=BI.isNull(n.month)?null:n.month;this.yearEditor.setValue(n.year),this.monthEditor.setValue(a)}},getValue:function(){return this.storeValue},getKey:function(){return this.yearEditor.getValue()+"-"+this.monthEditor.getValue()},isValid:function(){return this.yearEditor.isValid()&&this.monthEditor.isValid()}}),BI.DynamicYearMonthTrigger.EVENT_VALID="EVENT_VALID",BI.DynamicYearMonthTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicYearMonthTrigger.EVENT_ERROR="EVENT_ERROR",BI.DynamicYearMonthTrigger.EVENT_START="EVENT_START",BI.DynamicYearMonthTrigger.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicYearMonthTrigger.EVENT_STOP="EVENT_STOP",BI.DynamicYearMonthTrigger.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.shortcut("bi.dynamic_year_month_trigger",BI.DynamicYearMonthTrigger)},function(e,t){BI.YearMonthInterval=BI.inherit(BI.Single,{constants:{height:24,width:25,lgap:15,offset:-15,timeErrorCls:"time-error"},props:{extraCls:"bi-year-month-interval",minDate:"1900-01-01",maxDate:"2099-12-31"},_init:function(){var e=this.options;BI.YearMonthInterval.superclass._init.apply(this,arguments),e.value=e.value||{},this.left=this._createCombo(e.value.start),this.right=this._createCombo(e.value.end),this.label=BI.createWidget({type:"bi.label",height:this.constants.height,width:this.constants.width,text:"-"}),BI.createWidget({element:this,type:"bi.center",hgap:15,height:this.constants.height,items:[{type:"bi.absolute",items:[{el:this.left,left:this.constants.offset,right:0,top:0,bottom:0}]},{type:"bi.absolute",items:[{el:this.right,left:0,right:this.constants.offset,top:0,bottom:0}]}]}),BI.createWidget({type:"bi.horizontal_auto",element:this,items:[this.label]})},_createCombo:function(e){var n=this,t=this.options,r=BI.createWidget({type:"bi.dynamic_year_month_combo",behaviors:t.behaviors,value:e,listeners:[{eventName:BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW,action:function(){n.fireEvent(BI.YearMonthInterval.EVENT_BEFORE_POPUPVIEW)}}]});return r.on(BI.DynamicYearMonthCombo.EVENT_ERROR,function(){n._clearTitle(),BI.Bubbles.hide("error"),n.element.removeClass(n.constants.timeErrorCls),n.fireEvent(BI.YearMonthInterval.EVENT_ERROR)}),r.on(BI.DynamicYearMonthCombo.EVENT_VALID,function(){n._checkValid()}),r.on(BI.DynamicYearMonthCombo.EVENT_FOCUS,function(){n._checkValid()}),r.on(BI.DynamicYearMonthCombo.EVENT_BEFORE_POPUPVIEW,function(){n.left.hideView(),n.right.hideView()}),r.on(BI.DynamicYearMonthCombo.EVENT_CONFIRM,function(){BI.Bubbles.hide("error");var e=n.left.getKey(),t=n.right.getKey();n.left.isValid()&&n.right.isValid()&&n._check(e,t)&&n._compare(e,t)?(n._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),n.element.addClass(n.constants.timeErrorCls),n.fireEvent(BI.YearMonthInterval.EVENT_ERROR)):(n._clearTitle(),n.element.removeClass(n.constants.timeErrorCls),n.fireEvent(BI.YearMonthInterval.EVENT_CHANGE))}),r},_dateCheck:function(e){return BI.print(BI.parseDateTime(e,"%Y-%x"),"%Y-%x")===e||BI.print(BI.parseDateTime(e,"%Y-%X"),"%Y-%X")===e},_checkVoid:function(e){var t=this.options;return!BI.checkDateVoid(e.year,e.month,1,t.minDate,t.maxDate)[0]},_check:function(e,t){var n=e.match(/\d+/g),r=t.match(/\d+/g),i="";BI.isNotNull(n)&&(i=(n[0]||"")+"-"+(n[1]||1));var a="";return BI.isNotNull(r)&&(a=(r[0]||"")+"-"+(r[1]||1)),this._dateCheck(i)&&BI.checkDateLegal(i)&&this._checkVoid({year:n[0],month:n[1]||1,day:1})&&this._dateCheck(a)&&BI.checkDateLegal(a)&&this._checkVoid({year:r[0],month:r[1]||1,day:1})},_compare:function(e,t){return e=BI.print(BI.parseDateTime(e,"%Y-%X"),"%Y-%X"),t=BI.print(BI.parseDateTime(t,"%Y-%X"),"%Y-%X"),BI.isNotNull(e)&&BI.isNotNull(t)&&t<e},_setTitle:function(e){this.setTitle(e)},_clearTitle:function(){this.setTitle("")},_checkValid:function(){var e=this;BI.Bubbles.hide("error");var t=e.left.getKey(),n=e.right.getKey();e.left.isValid()&&e.right.isValid()&&e._check(t,n)&&e._compare(t,n)?(e._setTitle(BI.i18nText("BI-Time_Interval_Error_Text")),e.element.addClass(e.constants.timeErrorCls),BI.Bubbles.show("error",BI.i18nText("BI-Time_Interval_Error_Text"),e,{offsetStyle:"center"}),e.fireEvent(BI.YearMonthInterval.EVENT_ERROR)):(e._clearTitle(),e.element.removeClass(e.constants.timeErrorCls))},setValue:function(e){e=e||{},this.left.setValue(e.start),this.right.setValue(e.end),this._checkValid()},getValue:function(){return{start:this.left.getValue(),end:this.right.getValue()}}}),BI.YearMonthInterval.EVENT_VALID="EVENT_VALID",BI.YearMonthInterval.EVENT_ERROR="EVENT_ERROR",BI.YearMonthInterval.EVENT_CHANGE="EVENT_CHANGE",BI.YearMonthInterval.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.year_month_interval",BI.YearMonthInterval)},function(e,t){BI.DynamicYearQuarterCard=BI.inherit(BI.Widget,{props:{baseCls:"bi-year-month-card"},render:function(){var e=this;return{type:"bi.vertical",items:[{type:"bi.label",text:BI.i18nText("BI-Multi_Date_Relative_Current_Time"),textAlign:"left",height:24},{type:"bi.dynamic_date_param_item",ref:function(){e.year=this},listeners:[{eventName:"EVENT_CHANGE",action:function(){e.fireEvent("EVENT_CHANGE")}}]},{type:"bi.dynamic_date_param_item",dateType:BI.DynamicDateCard.TYPE.QUARTER,ref:function(){e.quarter=this},listeners:[{eventName:"EVENT_CHANGE",action:function(){e.fireEvent("EVENT_CHANGE")}}]}],vgap:10,hgap:10}},_createValue:function(e,t){return{dateType:e,value:Math.abs(t),offset:0<t?1:0}},setValue:function(e){e=e||{year:0,month:0},this.year.setValue(this._createValue(BI.DynamicDateCard.TYPE.YEAR,e.year)),this.quarter.setValue(this._createValue(BI.DynamicDateCard.TYPE.QUARTER,e.quarter))},getValue:function(){var e=this.year.getValue(),t=this.quarter.getValue();return{year:0===e.offset?-e.value:e.value,quarter:0===t.offset?-t.value:t.value}}}),BI.DynamicYearQuarterCard.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_year_quarter_card",BI.DynamicYearQuarterCard)},function(e,t){BI.StaticYearQuarterCard=BI.inherit(BI.Widget,{props:{baseCls:"bi-static-year-quarter-card",behaviors:{}},_createQuarter:function(){var e=[{text:BI.Date._QN[1],value:1},{text:BI.Date._QN[2],value:2},{text:BI.Date._QN[3],value:3},{text:BI.Date._QN[4],value:4}];return BI.map(e,function(e,t){return BI.extend(t,{type:"bi.text_item",cls:"bi-list-item-select",textAlign:"center",whiteSpace:"nowrap",once:!1,forceSelected:!0,height:24})})},render:function(){var t=this,e=this.options;return{type:"bi.vertical",items:[{type:"bi.year_picker",ref:function(){t.yearPicker=this},behaviors:e.behaviors,height:30,listeners:[{eventName:BI.YearPicker.EVENT_CHANGE,action:function(){var e=this.getValue();t.setValue({year:e,quarter:t.selectedQuarter})}}]},{type:"bi.button_group",behaviors:e.behaviors,ref:function(){t.quarter=this},items:this._createQuarter(),layouts:[{type:"bi.vertical",vgap:10}],value:e.value,listeners:[{eventName:BI.ButtonGroup.EVENT_CHANGE,action:function(){t.selectedYear=t.yearPicker.getValue(),t.selectedQuarter=this.getValue()[0],t.fireEvent(BI.StaticYearQuarterCard.EVENT_CHANGE)}}]}]}},getValue:function(){return{year:this.selectedYear,quarter:this.selectedQuarter}},setValue:function(e){var t,n=this.options,r={};r.year=e.year||0,r.quarter=e.quarter||0,0===r.quarter||0===r.year||BI.checkDateVoid(r.year,r.quarter,1,n.min,n.max)[0]?(t=r.year||BI.getDate().getFullYear(),this.selectedYear=t,this.selectedQuarter="",this.yearPicker.setValue(t),this.quarter.setValue()):(this.selectedYear=BI.parseInt(r.year),this.selectedQuarter=BI.parseInt(r.quarter),this.yearPicker.setValue(this.selectedYear),this.quarter.setValue(this.selectedQuarter))}}),BI.StaticYearQuarterCard.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.static_year_quarter_card",BI.StaticYearQuarterCard)},function(e,t){BI.DynamicYearQuarterCombo=BI.inherit(BI.Widget,{props:{baseCls:"bi-year-quarter-combo bi-border bi-border-radius bi-focus-shadow",behaviors:{},min:"1900-01-01",max:"2099-12-31",height:22},_init:function(){BI.DynamicYearQuarterCombo.superclass._init.apply(this,arguments);var n=this,e=this.options;this.storeValue=e.value,n.storeTriggerValue="",this.trigger=BI.createWidget({type:"bi.dynamic_year_quarter_trigger",min:e.min,max:e.max,height:e.height,value:e.value||""}),this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN,function(){n.combo.isViewVisible()&&n.combo.hideView()}),this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_START,function(){n.combo.isViewVisible()&&n.combo.hideView()}),this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_STOP,function(){n.combo.showView()}),this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_ERROR,function(){n.combo.isViewVisible()&&n.combo.hideView()}),this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM,function(){var e=n.storeTriggerValue,t=n.trigger.getKey();BI.isNotEmptyString(t)&&!BI.isEqual(t,e)&&(n.storeValue=n.trigger.getValue(),n.setValue(n.trigger.getValue())),n._checkDynamicValue(n.storeValue),n.fireEvent(BI.DynamicYearQuarterCombo.EVENT_CONFIRM)}),this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_FOCUS,function(){n.storeTriggerValue=n.trigger.getKey()}),this.combo=BI.createWidget({type:"bi.combo",container:e.container,isNeedAdjustHeight:!1,isNeedAdjustWidth:!1,el:this.trigger,popup:{minWidth:85,stopPropagation:!1,el:{type:"bi.dynamic_year_quarter_popup",ref:function(){n.popup=this},listeners:[{eventName:BI.DynamicYearQuarterPopup.EVENT_CHANGE,action:function(){n.setValue(n.popup.getValue()),n.combo.hideView(),n.fireEvent(BI.DynamicYearQuarterCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearQuarterPopup.BUTTON_CLEAR_EVENT_CHANGE,action:function(){n.setValue(),n.combo.hideView(),n.fireEvent(BI.DynamicYearQuarterCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE,action:function(){var e=BI.getDate();n.setValue({type:BI.DynamicYearMonthCombo.Static,value:{year:e.getFullYear(),quarter:BI.getQuarter(e)}}),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}},{eventName:BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE,action:function(){n.setValue(n.popup.getValue()),n.combo.hideView(),n.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM)}}],behaviors:e.behaviors,min:e.min,max:e.max},value:e.value||""}}),this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW,function(){n.popup.setValue(n.storeValue),n.fireEvent(BI.DynamicYearQuarterCombo.EVENT_BEFORE_POPUPVIEW)}),BI.createWidget({type:"bi.htape",element:this,ref:function(){n.comboWrapper=this},items:[{el:{type:"bi.icon_button",cls:"bi-trigger-icon-button date-change-h-font",width:24,height:24,ref:function(){n.changeIcon=this}},width:24},this.combo]}),this._checkDynamicValue(e.value)},_checkDynamicValue:function(e){var t=null;switch(BI.isNotNull(e)&&(t=e.type),t){case BI.DynamicYearQuarterCombo.Dynamic:this.changeIcon.setVisible(!0),this.comboWrapper.attr("items")[0].width=24,this.comboWrapper.resize();break;default:this.comboWrapper.attr("items")[0].width=0,this.comboWrapper.resize(),this.changeIcon.setVisible(!1)}},setValue:function(e){this.storeValue=e,this.trigger.setValue(e),this._checkDynamicValue(e)},getValue:function(){return this.storeValue}}),BI.DynamicYearQuarterCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicYearQuarterCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.dynamic_year_quarter_combo",BI.DynamicYearQuarterCombo),BI.extend(BI.DynamicYearQuarterCombo,{Static:1,Dynamic:2})},function(e,t){BI.DynamicYearQuarterPopup=BI.inherit(BI.Widget,{constants:{tabHeight:30,buttonHeight:24},props:{baseCls:"bi-year-quarter-popup",behaviors:{},min:"1900-01-01",max:"2099-12-31",width:180,height:240},render:function(){var e=this,t=(this.options,this.constants);return this.storeValue={type:BI.DynamicYearQuarterCombo.Static},{type:"bi.vtape",items:[{el:this._getTabJson()},{el:{type:"bi.grid",items:[[{type:"bi.text_button",cls:"bi-split-top bi-high-light",shadow:!0,textHeight:t.buttonHeight-1,text:BI.i18nText("BI-Basic_Clear"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_CLEAR_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-left bi-split-right bi-high-light bi-split-top",textHeight:t.buttonHeight-1,shadow:!0,text:BI.i18nText("BI-Basic_Current_Quarter"),ref:function(){e.textButton=this},listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE)}}]},{type:"bi.text_button",cls:"bi-split-top bi-high-light",shadow:!0,textHeight:t.buttonHeight-1,text:BI.i18nText("BI-Basic_OK"),listeners:[{eventName:BI.TextButton.EVENT_CHANGE,action:function(){e.fireEvent(BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE)}}]}]]},height:24}]}},_setInnerValue:function(){var e;this.dateTab.getSelect()===BI.DynamicYearQuarterCombo.Static?(this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter")),this.textButton.setEnable(!0)):(e=BI.DynamicDateHelper.getCalculation(this.dynamicPane.getValue()),e=BI.print(e,"%Y-%Q"),this.textButton.setValue(e),this.textButton.setEnable(!1))},_getTabJson:function(){var t=this,n=this.options;return{type:"bi.tab",ref:function(){t.dateTab=this},tab:{type:"bi.linear_segment",cls:"bi-split-bottom",height:this.constants.tabHeight,items:BI.createItems([{text:BI.i18nText("BI-Basic_Year_Quarter"),value:BI.DynamicYearQuarterCombo.Static},{text:BI.i18nText("BI-Basic_Dynamic_Title"),value:BI.DynamicYearQuarterCombo.Dynamic}],{textAlign:"center"})},cardCreator:function(e){switch(e){case BI.DynamicYearQuarterCombo.Dynamic:return{type:"bi.dynamic_year_quarter_card",listeners:[{eventName:"EVENT_CHANGE",action:function(){t._setInnerValue(t.year,e)}}],ref:function(){t.dynamicPane=this}};case BI.DynamicYearQuarterCombo.Static:default:return{type:"bi.static_year_quarter_card",behaviors:n.behaviors,min:t.options.min,max:t.options.max,listeners:[{eventName:BI.DynamicYearCard.EVENT_CHANGE,action:function(){t.fireEvent(BI.DynamicYearQuarterPopup.EVENT_CHANGE)}}],ref:function(){t.year=this}}}},listeners:[{eventName:BI.Tab.EVENT_CHANGE,action:function(){switch(t.dateTab.getSelect()){case BI.DynamicYearQuarterCombo.Static:var e=BI.DynamicDateHelper.getCalculation(t.dynamicPane.getValue());t.year.setValue({year:e.getFullYear(),quarter:BI.getQuarter(e)}),t._setInnerValue();break;case BI.DynamicYearQuarterCombo.Dynamic:default:t.storeValue&&t.storeValue.type===BI.DynamicYearQuarterCombo.Dynamic?t.dynamicPane.setValue(t.storeValue.value):t.dynamicPane.setValue({year:0}),t._setInnerValue()}}}]}},setValue:function(e){this.storeValue=e;var t=(e=e||{}).type||BI.DynamicDateCombo.Static,n=e.value||e;switch(this.dateTab.setSelect(t),t){case BI.DynamicDateCombo.Dynamic:this.dynamicPane.setValue(n),this._setInnerValue();break;case BI.DynamicDateCombo.Static:default:this.year.setValue(n),this.textButton.setValue(BI.i18nText("BI-Basic_Current_Quarter")),this.textButton.setEnable(!0)}},getValue:function(){return{type:this.dateTab.getSelect(),value:this.dateTab.getValue()}}}),BI.DynamicYearQuarterPopup.BUTTON_CLEAR_EVENT_CHANGE="BUTTON_CLEAR_EVENT_CHANGE",BI.DynamicYearQuarterPopup.BUTTON_lABEL_EVENT_CHANGE="BUTTON_lABEL_EVENT_CHANGE",BI.DynamicYearQuarterPopup.BUTTON_OK_EVENT_CHANGE="BUTTON_OK_EVENT_CHANGE",BI.DynamicYearQuarterPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.dynamic_year_quarter_popup",BI.DynamicYearQuarterPopup)},function(e,t){BI.DynamicYearQuarterTrigger=BI.inherit(BI.Trigger,{_const:{hgap:4,vgap:2},props:{extraCls:"bi-year-quarter-trigger",min:"1900-01-01",max:"2099-12-31",height:22},_init:function(){BI.DynamicYearQuarterTrigger.superclass._init.apply(this,arguments);var e=this.options;this.yearEditor=this._createEditor(!0),this.quarterEditor=this._createEditor(!1);var t=e.height+2;BI.createWidget({element:this,type:"bi.htape",items:[{type:"bi.center",items:[{type:"bi.htape",items:[this.yearEditor,{el:{type:"bi.text_button",text:BI.i18nText("BI-Multi_Date_Year"),width:t},width:t}]},{type:"bi.htape",items:[this.quarterEditor,{el:{type:"bi.text_button",text:BI.i18nText("BI-Multi_Date_Quarter"),width:t},width:t}]}]},{el:{type:"bi.trigger_icon_button",width:t},width:t}]}),this.setValue(e.value)},_createEditor:function(t){var e=this,n=this.options,r=this._const,i=BI.createWidget({type:"bi.sign_editor",height:n.height,validationChecker:function(e){return t?""===e||BI.isPositiveInteger(e)&&!BI.checkDateVoid(e,1,1,n.min,n.max)[0]:""===e||BI.isPositiveInteger(e)&&1<=e&&e<=4&&!BI.checkDateVoid(BI.getDate().getFullYear(),e,1,n.min,n.max)[0]},quitChecker:function(){return!1},errorText:function(e){return BI.i18nText("BI-Year_Trigger_Invalid_Text")},watermark:BI.i18nText("BI-Basic_Unrestricted"),hgap:r.hgap,vgap:r.vgap,title:"",allowBlank:!0});return i.on(BI.SignEditor.EVENT_KEY_DOWN,function(){e.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN)}),i.on(BI.SignEditor.EVENT_FOCUS,function(){e.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_FOCUS)}),i.on(BI.SignEditor.EVENT_STOP,function(){e.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_STOP)}),i.on(BI.SignEditor.EVENT_CONFIRM,function(){e._doEditorConfirm(i),e.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM)}),i.on(BI.SignEditor.EVENT_SPACE,function(){i.isValid()&&i.blur()}),i.on(BI.SignEditor.EVENT_START,function(){e.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_START)}),i.on(BI.SignEditor.EVENT_ERROR,function(){e.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_ERROR)}),i.on(BI.SignEditor.EVENT_CHANGE,function(){t&&e._autoSwitch(i)}),i},_doEditorConfirm:function(e){var t=e.getValue();BI.isNotNull(t)&&e.setValue(t);var n=this.quarterEditor.getValue();this.storeValue={type:BI.DynamicYearQuarterCombo.Static,value:{year:this.yearEditor.getValue(),quarter:BI.isEmptyString(this.quarterEditor.getValue())?"":n}},this.setTitle(this._getStaticTitle(this.storeValue.value))},_yearCheck:function(e){var t=BI.print(BI.parseDateTime(e,"%Y-%X-%d"),"%Y-%X-%d");return BI.print(BI.parseDateTime(e,"%Y"),"%Y")===e&&t>=this.options.min&&t<=this.options.max},_autoSwitch:function(e){var t=e.getValue();BI.isNotEmptyString(t)&&BI.checkDateLegal(t)&&4===t.length&&this._yearCheck(t)&&(this._doEditorConfirm(e),this.fireEvent(BI.DynamicYearQuarterTrigger.EVENT_CONFIRM),this.quarterEditor.focus())},_getStaticTitle:function(e){switch(e=e||{},!(BI.isNull(e.year)||BI.isEmptyString(e.year))<<1|!(BI.isNull(e.quarter)||BI.isEmptyString(e.quarter))){case 0:return"";case 1:return e.quarter;case 2:return e.year;case 3:default:return e.year+"-"+e.quarter}},_getText:function(e){var t="";return BI.isNotNull(e.year)&&0!==BI.parseInt(e.year)&&(t+=Math.abs(e.year)+BI.i18nText("BI-Basic_Year")+(e.year<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),BI.isNotNull(e.quarter)&&0!==BI.parseInt(e.quarter)&&(t+=Math.abs(e.quarter)+BI.i18nText("BI-Basic_Single_Quarter")+(e.quarter<0?BI.i18nText("BI-Basic_Front"):BI.i18nText("BI-Basic_Behind"))),t},_setInnerValue:function(e,t){var n=BI.print(e,"%Y-%Q");this.yearEditor.setValue(e.getFullYear()),this.quarterEditor.setValue(BI.getQuarter(e)),this.setTitle(BI.isEmptyString(t)?n:t+":"+n)},setValue:function(e){var t,n,r=BI.getDate();switch(this.storeValue=e,BI.isNotNull(e)&&(t=e.type||BI.DynamicYearQuarterCombo.Static,n=e.value||e),t){case BI.DynamicYearQuarterCombo.Dynamic:var i=this._getText(n),r=BI.DynamicDateHelper.getCalculation(n);this._setInnerValue(r,i);break;case BI.DynamicYearQuarterCombo.Static:default:n=n||{};var a=BI.isNull(n.quarter)?null:n.quarter;this.yearEditor.setValue(n.year),this.yearEditor.setTitle(n.year),this.quarterEditor.setValue(a),this.quarterEditor.setTitle(a),this.setTitle(this._getStaticTitle(n))}},getValue:function(){return this.storeValue},getKey:function(){return this.yearEditor.getValue()+"-"+this.quarterEditor.getValue()}}),BI.DynamicYearQuarterTrigger.EVENT_FOCUS="EVENT_FOCUS",BI.DynamicYearQuarterTrigger.EVENT_ERROR="EVENT_ERROR",BI.DynamicYearQuarterTrigger.EVENT_START="EVENT_START",BI.DynamicYearQuarterTrigger.EVENT_CONFIRM="EVENT_CONFIRM",BI.DynamicYearQuarterTrigger.EVENT_STOP="EVENT_STOP",BI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN="EVENT_KEY_DOWN",BI.shortcut("bi.dynamic_year_quarter_trigger",BI.DynamicYearQuarterTrigger)},function(e,t){BI.AbstractAllValueChooser=BI.inherit(BI.Widget,{_const:{perPage:100},_defaultConfig:function(){return BI.extend(BI.AbstractAllValueChooser.superclass._defaultConfig.apply(this,arguments),{width:200,height:30,items:null,itemsCreator:BI.emptyFn,cache:!0})},_valueFormatter:function(n){var r=n;return BI.isNotNull(this.items)&&BI.some(this.items,function(e,t){if(t.value===n||t.value+""===n)return r=t.text,!0}),r},_itemsCreator:function(t,a){var n=this,e=this.options;function r(r){var e=(t.keywords||[]).slice();t.keyword&&e.push(t.keyword);var n,i=r;BI.isNotEmptyArray(e)&&(i=[],BI.each(e,function(e,t){var n=BI.Func.getSearchResult(r,t);i=i.concat(n.match).concat(n.find)}),i=BI.uniq(i)),t.selectedValues&&(n=BI.makeObject(t.selectedValues,!0),i=BI.filter(i,function(e,t){return!n[t.value]})),t.type!==BI.MultiSelectCombo.REQ_GET_ALL_DATA?t.type!==BI.MultiSelectCombo.REQ_GET_DATA_LENGTH?a({items:i,hasNext:!1}):a({count:i.length}):a({items:i})}e.cache&&this.items?r(this.items):e.itemsCreator({},function(e){r(n.items=e)})},_assertValue:function(e){var t=e=e||{};return BI.isNotNull(this.items)&&0===BI.difference(BI.map(this.items,"value"),e.value).length&&(t={type:BI.Selection.All,value:[]}),t}})},function(e,t){BI.AllValueChooserCombo=BI.inherit(BI.AbstractAllValueChooser,{_defaultConfig:function(){return BI.extend(BI.AllValueChooserCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-all-value-chooser-combo",width:200,height:24,items:null,itemsCreator:BI.emptyFn,cache:!0})},_init:function(){BI.AllValueChooserCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;BI.isNotNull(t.items)&&(this.items=t.items),this.combo=BI.createWidget({type:"bi.multi_select_combo",text:t.text,element:this,itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this),width:t.width,height:t.height,value:this._assertValue({type:BI.Selection.Multi,value:t.value||[]})}),this.combo.on(BI.MultiSelectCombo.EVENT_CONFIRM,function(){e.fireEvent(BI.AllValueChooserCombo.EVENT_CONFIRM)})},setValue:function(e){this.combo.setValue(this._assertValue({type:BI.Selection.Multi,value:e||[]}))},getValue:function(){return this.getAllValue()},getAllValue:function(){var e=this.combo.getValue()||{};return e.type===BI.Selection.Multi?e.value||[]:BI.difference(BI.map(this.items,"value"),e.value||[])},populate:function(e){BI.isNotNull(e)&&(this.items=e),this.combo.populate()}}),BI.AllValueChooserCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.all_value_chooser_combo",BI.AllValueChooserCombo)},function(e,t){BI.AllValueChooserPane=BI.inherit(BI.AbstractAllValueChooser,{_defaultConfig:function(){return BI.extend(BI.AllValueChooserPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-all-value-chooser-pane",width:200,height:30,items:null,itemsCreator:BI.emptyFn,cache:!0})},_init:function(){BI.AllValueChooserPane.superclass._init.apply(this,arguments);var e=this,t=this.options;this.list=BI.createWidget({type:"bi.multi_select_list",element:this,itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this),width:t.width,height:t.height}),this.list.on(BI.MultiSelectList.EVENT_CHANGE,function(){e.fireEvent(BI.AllValueChooserPane.EVENT_CHANGE)}),BI.isNotNull(t.items)&&(this.items=t.items,this.list.populate())},setValue:function(e){this.list.setValue({type:BI.Selection.Multi,value:e||[]})},getValue:function(){var e=this.list.getValue()||{};return e.type===BI.Selection.All?e.assist:e.value||[]},populate:function(e){BI.isNotNull(e)&&(this.items=e),this.list.populate()}}),BI.AllValueChooserPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.all_value_chooser_pane",BI.AllValueChooserPane)},function(e,t){BI.AllValueMultiTextValueCombo=BI.inherit(BI.Widget,{props:{baseCls:"bi-all-value-multi-text-value-combo",width:200,height:24,items:[]},render:function(){var e=this,t=this.options,n=this._digestValue(t.value);return{type:"bi.search_multi_text_value_combo",text:t.text,height:t.height,items:t.items,value:n,numOfPage:100,valueFormatter:t.valueFormatter,warningTitle:t.warningTitle,listeners:[{eventName:BI.SearchMultiTextValueCombo.EVENT_CONFIRM,action:function(){e.fireEvent(BI.AllValueMultiTextValueCombo.EVENT_CONFIRM)}}],ref:function(){e.combo=this}}},setValue:function(e){var t=this._digestValue(e);this.combo.setValue(t)},getValue:function(){var n=this.combo.getValue()||{};if(n.value=n.value||[],n.type!==BI.Selection.All)return n.value||[];var r=[];return BI.each(this.options.items,function(e,t){BI.contains(n.value,t.value)||r.push(t.value)}),r},populate:function(e){this.options.items=e,this.combo.populate.apply(this.combo,arguments)},_digestValue:function(e){return{type:BI.Selection.Multi,value:e||[]}}}),BI.AllValueMultiTextValueCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.all_value_multi_text_value_combo",BI.AllValueMultiTextValueCombo)},function(e,t){BI.AbstractTreeValueChooser=BI.inherit(BI.Widget,{_const:{perPage:100},_defaultConfig:function(){return BI.extend(BI.AbstractTreeValueChooser.superclass._defaultConfig.apply(this,arguments),{items:null,itemsCreator:BI.emptyFn,open:!1})},_valueFormatter:function(n){var r=n;return BI.isNotNull(this.items)&&BI.some(this.items,function(e,t){if(t.value===n||t.value+""===n)return r=t.text,!0}),r},_initData:function(e){this.items=e;var t=BI.Tree.treeFormat(e);this.tree=new BI.Tree,this.tree.initTree(t)},_itemsCreator:function(e,t){var n=this,r=this.options;function i(){switch(e.type){case BI.TreeView.REQ_TYPE_INIT_DATA:n._reqInitTreeNode(e,t);break;case BI.TreeView.REQ_TYPE_ADJUST_DATA:n._reqAdjustTreeNode(e,t);break;case BI.TreeView.REQ_TYPE_SELECT_DATA:n._reqSelectedTreeNode(e,t);break;case BI.TreeView.REQ_TYPE_GET_SELECTED_DATA:n._reqDisplayTreeNode(e,t);break;default:n._reqTreeNode(e,t)}}this.items?i():r.itemsCreator({},function(e){n._initData(e),i()})},_reqDisplayTreeNode:function(e,t){var o=this,r=[],n=e.selectedValues;function s(e,t){return null==e?0:BI.isEmpty(e)?o._getChildCount(t):BI.size(e)}function c(e,t,n){r.push({id:e.id,pId:t,text:e.text+(0<n?"("+BI.i18nText("BI-Basic_Altogether")+n+BI.i18nText("BI-Basic_Count")+")":""),value:e.value,open:!0})}null==n||BI.isEmpty(n)?t({}):(function u(i,a,r){if(null==r||BI.isEmpty(r))return void BI.each(a.getChildren(),function(e,t){var n=BI.clone(i);n.push(t.value);var r=o._getChildCount(n);c(t,a.id,r),u(n,t,{})});BI.each(r,function(e){var t,n=o._getTreeNode(i,e);BI.isNull(n)?c({id:BI.UUID(),text:e,value:e},BI.UUID(),0):((t=BI.clone(i)).push(n.value),c(n,n.parent&&n.parent.id,s(r[e],t)),u(t,n,r[e]))})}([],this.tree.getRoot(),n),t({items:r}))},_reqSelectedTreeNode:function(e,t){var p=this,n=BI.deepClone(e.selectedValues),a=e.notSelectedValue||{},c=e.keyword||"",o=e.parentValues||[];function s(o,s,c){var u=o,l=[],d=[];BI.some(s,function(n,e){var t=u[e];if(null==t){if(0===n)return!0;if(!BI.isEmpty(u))return!0;var r=s.slice(0,n),i=p._getChildren(r);if(d.push(r),l.push(i.length),n===s.length-1&&1===i.length&&i[0].value===c)for(var a=l.length-1;0<=a&&1===l[a];a--)p._deleteNode(o,d[a]);else BI.each(i,function(e,t){return n===s.length-1&&t.value===c||void(u[t.value]={})});u=u[e]}else u=t})}function u(e,t,r,n){var i=BI.clone(e);if(i.push(t),p._isMatch(e,t,c))return n&&n.push(i),!0;var a=p._getChildren(i),o=[],s=!1;return BI.each(a,function(e,t){u(i,t.value,r,n)?s=!0:o.push(t.value)}),!0===s&&BI.each(o,function(e,t){var n=BI.clone(i);n.push(t),r.push(n)}),s}function l(e){for(var t=0,n=e.length;t<n;t++)if(p._isMatch(e.slice(0,t),e[t],c))return 1}null==n||BI.isEmpty(n)?t({}):(function(n){var e=o.concat(a);{var t;!function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(null==(n=n[i]))return!1}return!0}(n,e)||(l(e)?p._deleteNode(n,e):(i=u(o,a,[],t=[]))&&BI.isNotEmptyArray(t)&&BI.each(t,function(e,t){p._getNode(n,t)?p._deleteNode(n,t):s(n,t,BI.last(t))}))}{var r,i;!function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(!BI.has(n,i))return!1;if(n=n[i],BI.isEmpty(n))return!0}return!1}(n,e)||(i=!(r=[]),l(e)?i=!0:(i=u(o,a,r),e=o),!0===i&&(s(n,e,a),0<r.length&&BI.each(r,function(e,t){p._buildTree(n,t)})))}}(n),t(n))},_reqAdjustTreeNode:function(e,t){var n,r=this,o=[],i=e.selectedValues;null==i||BI.isEmpty(i)?t({}):(BI.each(i,function(e,t){o.push([e])}),function s(n,i){if(null==n||BI.isEmpty(n))return!0;var a=!0;BI.each(n,function(e,t){var r=BI.clone(i);r.push(e),s(n[e],r)||(BI.each(n[e],function(e,t){var n=BI.clone(r);n.push(e),o.push(n)}),a=!1)});return a&&(e=n,t=i,BI.isEmpty(e)||r._getChildCount(t)===BI.size(e));var e,t}(i,[]),n={},BI.each(o,function(e,t){r._buildTree(n,t)}),t(n))},_reqInitTreeNode:function(c,e){var _=this,u=[],h=c.keyword||"",l=c.selectedValues,d=c.lastSearchValue||"",t=function(){var e=_._getChildren([]),t=e.length;if(""!==d){for(var n=0,r=t;n<r;n++)if(e[n].value===d){t=n+1;break}}else t=0;for(var i=[],a=t,r=e.length;a<r;a++){var o;if(i.length<_._const.perPage?o=g(1,[],e[a].value,!1,u):i.length===_._const.perPage&&(o=g(1,[],e[a].value,!1,[])),!0===o[0]&&i.push(e[a].value),i.length>_._const.perPage)break}{var s;1===c.times&&(s=_._getAddedValueNode([],l),u=BI.concat(BI.filter(s,function(e,t){var n=BI.Func.getSearchResult([t.text||t.value],h);return 0<n.find.length||0<n.match.length}),u))}return i}();function g(r,e,t,n,i){var a,o;if(_._isMatch(e,t,h))return m(e,t,!1,p=n||y(e,t),!n&&(a=t,null!=(o=b(e))?BI.any(o,function(e,t){if(e===a&&null!=t&&!BI.isEmpty(t))return!0}):null),!0,i),[!0,p];var s=BI.clone(e);s.push(t);var c,u,l=_._getChildren(s),d=!1,p=!1,f=n||(c=t,null!=(u=b(e))?BI.any(u,function(e,t){if(e===c&&null!=t&&BI.isEmpty(t))return!0}):null);return BI.each(l,function(e,t){var n=g(r+1,s,t.value,f,i);!0===n[1]&&(p=!0),!0===n[0]&&(d=!0)}),!0===d&&m(e,t,!0,p=f||y(e,t)&&p,!1,!1,i),[d,p]}function m(e,t,n,r,i,a,o){var s=_._getTreeNode(e,t);o.push({id:s.id,pId:s.pId,text:s.text,value:s.value,title:s.title,isParent:0<s.getChildrenLength(),open:n,checked:r,halfCheck:i,flag:a})}function y(e,t){var n=b(e);return null!=n&&BI.any(n,function(e){if(e===t)return!0})}function b(e){var n=l;return null==n?null:(BI.every(e,function(e,t){return null!=(n=n[t])}),n)}BI.nextTick(function(){e({hasNext:t.length>_._const.perPage,items:u,lastSearchValue:BI.last(t)})})},_reqTreeNode:function(e,t){for(var n,l=this,r=this.options,o=[],i=e.times,a=e.checkState||{},s=e.parentValues||[],c=e.selectedValues||{},u=_(s,c),d=this._getChildren(s),p=(i-1)*this._const.perPage;d[p]&&p<i*this._const.perPage;p++){var f=h(d[p].value,s,u,a);o.push({id:d[p].id,pId:d[p].pId,value:d[p].value,text:d[p].text,times:1,isParent:0<d[p].getChildrenLength(),checked:f[0],halfCheck:f[1],open:r.open})}function _(e,n){var r={};return BI.each(e,function(e,t){n=n[t]||{}}),BI.each(n,function(e,t){var n;BI.isNull(t)?r[e]=[0,0]:BI.isEmpty(t)?r[e]=[2,0]:(n={},BI.each(t,function(e,t){(BI.isNull(t)||BI.isEmpty(t))&&(n[e]=!0)}),r[e]=[1,BI.size(n)])}),r}function h(e,t,n,r){var i,a,o=r.checked,s=r.half,c=!1,u=!1;return BI.has(n,e)&&(1===n[e][0]?((i=BI.clone(t)).push(e),0<(a=l._getChildCount(i))&&a!==n[e][1]&&(u=!0)):2===n[e][0]&&(c=!0)),[(o||u||c)&&(c||o)&&!s||BI.has(n,e),u]}r.open&&(n=[],BI.each(d,function(e,t){n=BI.concat(n,l._getAllChildren(s.concat([t.value])))}),BI.each(n,function(e,n){var t=_(n.parentValues,c),r={},i=BI.find(o,function(e,t){return t.id===n.pId});i&&(r.checked=!i.halfCheck&&i.checked,r.half=i.halfCheck);var a=h(n.value,n.parentValues,t,r);o.push({id:n.id,pId:n.pId,value:n.value,text:n.text,times:1,isParent:0<n.getChildrenLength(),checked:a[0],halfCheck:a[1],open:l.options.open})})),0===s.length&&1===i&&(o=BI.concat(l._getAddedValueNode(s,c),o)),BI.nextTick(function(){t({items:o,hasNext:d.length>i*l._const.perPage})})},_getAddedValueNode:function(e,t){var n=this._getChildren(e);return BI.map(BI.difference(BI.keys(t),BI.map(n,"value")),function(e,t){return{id:BI.UUID(),pId:0<n.length?n[0].pId:BI.UUID(),value:t,text:t,times:1,isParent:!1,checked:!0,halfCheck:!1}})},_getNode:function(e,t){for(var n=e,r=0,i=t.length;r<i;r++){if(null==n)return null;n=n[t[r]]}return n},_deleteNode:function(e,t){var n=t[t.length-1],r=t.slice(0,t.length-1),i=this._getNode(e,r);if(null!=i&&i[n])for(delete i[n];0<r.length&&BI.isEmpty(i);)n=r[r.length-1],r=r.slice(0,r.length-1),null!=(i=this._getNode(e,r))&&delete i[n]},_buildTree:function(e,t){var n=e;BI.each(t,function(e,t){BI.has(n,t)||(n[t]={}),n=n[t]})},_isMatch:function(e,t,n){var r=this.options,i=this._getTreeNode(e,t);if(!i)return!1;var a=BI.Func.getSearchResult([i.text||i.value],n);if(r.allowSearchValue&&i.value){var o=BI.Func.getSearchResult([i.value],n);return 0<o.find.length||0<o.match.length||0<a.find.length||0<a.match.length}return 0<a.find.length||0<a.match.length},_getTreeNode:function(t,n){var r,i=this,a=0,o=this.tree.getRoot();return this.tree.traverse(function(e){if(!i.tree.isRoot(e)){if(a>t.length)return!1;if(a!==t.length||e.value!==n)return e.value!==t[a]||e.getParent()!==o||(a++,void(o=e));if(e.getParent()!==o)return;return r=e,!1}}),r},_getChildren:function(e){var t;return(0<e.length?(t=BI.last(e),this._getTreeNode(e.slice(0,e.length-1),t)):this.tree.getRoot()).getChildren()},_getAllChildren:function(n){var e=this._getChildren(n),t=[].concat(e);BI.each(t,function(e,t){t.parentValues=n});for(var r=BI.map(e,function(e,t){return{parentValues:n,value:t.value}});BI.isNotEmptyArray(r);){var i=r.shift(),a=i.parentValues.concat(i.value),o=this._getChildren(a);BI.each(o,function(e,t){t.parentValues=a}),r=r.concat(o),t=t.concat(o)}return t},_getChildCount:function(e){return this._getChildren(e).length},buildCompleteTree:function(e){var o=this,t={};return null===e||BI.isEmpty(e)||function s(r,e,i,a){if(null===i||BI.isEmpty(i))return void BI.each(e.getChildren(),function(e,t){var n=BI.clone(r);n.push(t.value),a[t.value]={},s(n,t,null,a[t.value])});BI.each(i,function(e){var t=o._getTreeNode(r,e),n=BI.clone(r);n.push(t.value),a[e]={},s(n,t,i[e],a[e])})}([],this.tree.getRoot(),e,t),t}})},function(e,t){BI.AbstractListTreeValueChooser=BI.inherit(BI.AbstractTreeValueChooser,{_reqDisplayTreeNode:function(e,t){var n,a=this,o={},r=e.selectedValues;function s(e,t){o[e.id]={id:e.id,pId:t,text:e.text,value:e.value,open:!0,isLeaf:e.isLeaf}}null==r||BI.isEmpty(r)?t({}):(this.tree.getRoot(),n=r,BI.each(n,function(e,i){BI.each(i,function(e,t){var n=t,r=a._getTreeNode(i.slice(0,e),n);BI.isNull(r)?s({id:BI.UUID(),text:n,value:n,isLeaf:!0},BI.UUID()):(BI.has(o,r.id)||s(r,r.parent&&r.parent.id),!0!==o[r.id].isLeaf&&(o[r.id].isLeaf=e===i.length-1))})}),t({items:BI.values(o)}))},_reqInitTreeNode:function(c,e){var u=this,l=[],d=c.keyword||"",p=c.selectedValues,f=c.lastSearchValue||"",t=function(){var e=u._getChildren([]),t=e.length;if(""!==f){for(var n=0,r=t;n<r;n++)if(e[n].value===f){t=n+1;break}}else t=0;for(var i=[],a=t,r=e.length;a<r;a++){var o;if(i.length<u._const.perPage?o=_(1,[],e[a].value,l):i.length===u._const.perPage&&(o=_(1,[],e[a].value,[])),!0===o[0]&&i.push(e[a].value),i.length>u._const.perPage)break}{var s;1===c.times&&(s=u._getAddedValueNode([],p),l=BI.concat(BI.filter(s,function(e,t){var n=BI.Func.getSearchResult([t.text||t.value],d);return 0<n.find.length||0<n.match.length}),l))}return i}();function _(r,e,t,i){if(u._isMatch(e,t,d))return h(e,t,!1,s=g(e,t),!0,i),[!0,s];var a=BI.clone(e);a.push(t);var n=u._getChildren(a),o=!1,s=!1;return BI.each(n,function(e,t){var n=_(r+1,a,t.value,i);!0===n[1]&&(s=!0),!0===n[0]&&(o=!0)}),!0===o&&h(e,t,!0,s=g(e,t),!1,i),[o,s]}function h(e,t,n,r,i,a){var o=u._getTreeNode(e,t);a.push({id:o.id,pId:o.pId,text:o.text,value:o.value,title:o.title,isParent:0<o.getChildrenLength(),open:n,checked:r,halfCheck:!1,flag:i})}function g(n,r){return BI.any(p,function(e,t){return BI.isEqual(n,t.slice(0,n.length))&&BI.last(t)===r})}BI.nextTick(function(){e({hasNext:t.length>u._const.perPage,items:l,lastSearchValue:BI.last(t)})})},_reqTreeNode:function(e,t){for(var n,r=this,i=this.options,a=[],o=e.times,s=e.parentValues||[],c=e.selectedValues||[],u=f(s,c),l=this._getChildren(s),d=(o-1)*this._const.perPage;l[d]&&d<o*this._const.perPage;d++){var p=BI.has(u,l[d].value);a.push({id:l[d].id,pId:l[d].pId,value:l[d].value,text:l[d].text,times:1,isParent:0<l[d].getChildrenLength(),checked:p,halfCheck:!1,open:i.open})}function f(n,e){var r={};return BI.each(e,function(e,t){BI.isEqual(n,t.slice(0,n.length))&&(r[BI.last(t)]=[2,0])}),r}i.open&&(n=[],BI.each(l,function(e,t){n=BI.concat(n,r._getAllChildren(s.concat([t.value])))}),BI.each(n,function(e,t){var n=f(t.parentValues,c),r=BI.has(n,t.value);a.push({id:t.id,pId:t.pId,value:t.value,text:t.text,times:1,isParent:0<t.getChildrenLength(),checked:r,halfCheck:!1,open:i.open})})),0===s.length&&1===o&&(a=BI.concat(r._getAddedValueNode(s,c),a)),BI.nextTick(function(){t({items:a,hasNext:l.length>o*r._const.perPage})})},_getAddedValueNode:function(e,t){var n=this._getChildren(e),r=BI.flatten(BI.filter(t,function(e,t){return 1===t.length}));return BI.map(BI.difference(r,BI.map(n,"value")),function(e,t){return{id:BI.UUID(),pId:0<n.length?n[0].pId:BI.UUID(),value:t,text:t,times:1,isParent:!1,checked:!0,halfCheck:!1}})}})},function(e,t){BI.ListTreeValueChooserInsertCombo=BI.inherit(BI.AbstractListTreeValueChooser,{_defaultConfig:function(){return BI.extend(BI.ListTreeValueChooserInsertCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-list-tree-value-chooser-insert-combo",width:200,height:24,items:null,itemsCreator:BI.emptyFn,isNeedAdjustWidth:!0})},_init:function(){BI.ListTreeValueChooserInsertCombo.superclass._init.apply(this,arguments);var t=this,e=this.options;BI.isNotNull(e.items)&&this._initData(e.items),this.combo=BI.createWidget({type:"bi.multi_tree_list_combo",isNeedAdjustWidth:e.isNeedAdjustWidth,element:this,text:e.text,value:e.value,watermark:e.watermark,allowInsertValue:e.allowInsertValue,allowEdit:e.allowEdit,itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this),width:e.width,height:e.height,listeners:[{eventName:BI.MultiTreeListCombo.EVENT_FOCUS,action:function(){t.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_FOCUS)}},{eventName:BI.MultiTreeListCombo.EVENT_BLUR,action:function(){t.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_BLUR)}},{eventName:BI.MultiTreeListCombo.EVENT_STOP,action:function(){t.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_STOP)}},{eventName:BI.MultiTreeListCombo.EVENT_CLICK_ITEM,action:function(e){t.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM,e)}},{eventName:BI.MultiTreeListCombo.EVENT_SEARCHING,action:function(){t.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_SEARCHING)}},{eventName:BI.MultiTreeListCombo.EVENT_CONFIRM,action:function(){t.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM)}},{eventName:BI.MultiTreeCombo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_BEFORE_POPUPVIEW)}}]})},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.combo.setValue(e)},getValue:function(){return this.combo.getValue()},populate:function(e){BI.isNotNull(e)&&this._initData(e),this.combo.populate()}}),BI.ListTreeValueChooserInsertCombo.EVENT_FOCUS="EVENT_FOCUS",BI.ListTreeValueChooserInsertCombo.EVENT_BLUR="EVENT_BLUR",BI.ListTreeValueChooserInsertCombo.EVENT_STOP="EVENT_STOP",BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.ListTreeValueChooserInsertCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.ListTreeValueChooserInsertCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.ListTreeValueChooserInsertCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.list_tree_value_chooser_insert_combo",BI.ListTreeValueChooserInsertCombo)},function(e,t){BI.TreeValueChooserInsertCombo=BI.inherit(BI.AbstractTreeValueChooser,{_defaultConfig:function(){return BI.extend(BI.TreeValueChooserInsertCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-tree-value-chooser-insert-combo",width:200,height:24,items:null,itemsCreator:BI.emptyFn,isNeedAdjustWidth:!0})},_init:function(){BI.TreeValueChooserInsertCombo.superclass._init.apply(this,arguments);var t=this,e=this.options;BI.isNotNull(e.items)&&this._initData(e.items),this.combo=BI.createWidget({type:"bi.multi_tree_insert_combo",isNeedAdjustWidth:e.isNeedAdjustWidth,allowEdit:e.allowEdit,text:e.text,value:e.value,watermark:e.watermark,element:this,itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this),width:e.width,height:e.height,listeners:[{eventName:BI.MultiTreeInsertCombo.EVENT_FOCUS,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_FOCUS)}},{eventName:BI.MultiTreeInsertCombo.EVENT_BLUR,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_BLUR)}},{eventName:BI.MultiTreeInsertCombo.EVENT_STOP,action:function(){t.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_STOP)}},{eventName:BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM,action:function(e){t.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM,e)}},{eventName:BI.MultiTreeInsertCombo.EVENT_SEARCHING,action:function(){t.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_SEARCHING)}},{eventName:BI.MultiTreeInsertCombo.EVENT_CONFIRM,action:function(){t.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CONFIRM)}},{eventName:BI.MultiTreeCombo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_BEFORE_POPUPVIEW)}}]})},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.combo.setValue(e)},getValue:function(){return this.combo.getValue()},populate:function(e){BI.isNotNull(e)&&this._initData(e),this.combo.populate()}}),BI.TreeValueChooserInsertCombo.EVENT_FOCUS="EVENT_FOCUS",BI.TreeValueChooserInsertCombo.EVENT_BLUR="EVENT_BLUR",BI.TreeValueChooserInsertCombo.EVENT_STOP="EVENT_STOP",BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.TreeValueChooserInsertCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.TreeValueChooserInsertCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.TreeValueChooserInsertCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.shortcut("bi.tree_value_chooser_insert_combo",BI.TreeValueChooserInsertCombo)},function(e,t){BI.TreeValueChooserCombo=BI.inherit(BI.AbstractTreeValueChooser,{_defaultConfig:function(){return BI.extend(BI.TreeValueChooserCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-tree-value-chooser-combo",width:200,height:24,items:null,itemsCreator:BI.emptyFn,isNeedAdjustWidth:!0})},_init:function(){BI.TreeValueChooserCombo.superclass._init.apply(this,arguments);var t=this,e=this.options;BI.isNotNull(e.items)&&this._initData(e.items),this.combo=BI.createWidget({type:"bi.multi_tree_combo",text:e.text,allowEdit:e.allowEdit,value:e.value,watermark:e.watermark,element:this,itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this),width:e.width,height:e.height,isNeedAdjustWidth:e.isNeedAdjustWidth,listeners:[{eventName:BI.MultiTreeCombo.EVENT_FOCUS,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_FOCUS)}},{eventName:BI.MultiTreeCombo.EVENT_BLUR,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_BLUR)}},{eventName:BI.MultiTreeCombo.EVENT_STOP,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_STOP)}},{eventName:BI.MultiTreeCombo.EVENT_CLICK_ITEM,action:function(e){t.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM,e)}},{eventName:BI.MultiTreeCombo.EVENT_SEARCHING,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_SEARCHING)}},{eventName:BI.MultiTreeCombo.EVENT_CONFIRM,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_CONFIRM)}},{eventName:BI.MultiTreeCombo.EVENT_BEFORE_POPUPVIEW,action:function(){t.fireEvent(BI.TreeValueChooserCombo.EVENT_BEFORE_POPUPVIEW)}}]})},showView:function(){this.combo.showView()},hideView:function(){this.combo.hideView()},setValue:function(e){this.combo.setValue(e)},getValue:function(){return this.combo.getValue()},getAllValue:function(){return this.buildCompleteTree(this.combo.getValue())},populate:function(e){BI.isNotNull(e)&&this._initData(e),this.combo.populate()}}),BI.TreeValueChooserCombo.EVENT_BEFORE_POPUPVIEW="EVENT_BEFORE_POPUPVIEW",BI.TreeValueChooserCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.TreeValueChooserCombo.EVENT_FOCUS="EVENT_FOCUS",BI.TreeValueChooserCombo.EVENT_BLUR="EVENT_BLUR",BI.TreeValueChooserCombo.EVENT_STOP="EVENT_STOP",BI.TreeValueChooserCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.TreeValueChooserCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.shortcut("bi.tree_value_chooser_combo",BI.TreeValueChooserCombo)},function(e,t){BI.TreeValueChooserPane=BI.inherit(BI.AbstractTreeValueChooser,{_defaultConfig:function(){return BI.extend(BI.TreeValueChooserPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-tree-value-chooser-pane",items:null,itemsCreator:BI.emptyFn,showLine:!0})},_init:function(){BI.TreeValueChooserPane.superclass._init.apply(this,arguments);var e=this,t=this.options;this.pane=BI.createWidget({type:t.hideSearch?"bi.multi_select_tree_popup":"bi.multi_select_tree",element:this,showLine:t.showLine,itemsCreator:BI.bind(this._itemsCreator,this)}),this.pane.on(BI.MultiSelectTree.EVENT_CHANGE,function(){e.fireEvent(BI.TreeValueChooserPane.EVENT_CHANGE)}),BI.isNotNull(t.items)&&(this._initData(t.items),this.pane.populate())},setSelectedValue:function(e){this.pane.setSelectedValue(e)},setValue:function(e){this.pane.setValue(e)},getValue:function(){return this.pane.getValue()},getAllValue:function(){return this.buildCompleteTree(this.pane.getValue())},populate:function(e){BI.isNotNull(e)&&this._initData(e),this.pane.populate()}}),BI.TreeValueChooserPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.tree_value_chooser_pane",BI.TreeValueChooserPane)},function(e,t){BI.AbstractValueChooser=BI.inherit(BI.Widget,{_const:{perPage:100},_defaultConfig:function(){return BI.extend(BI.AbstractValueChooser.superclass._defaultConfig.apply(this,arguments),{items:null,itemsCreator:BI.emptyFn,cache:!0})},_valueFormatter:function(n){var r=n;return BI.isNotNull(this.items)&&BI.some(this.items,function(e,t){if(t.value===n||t.value+""===n)return r=t.text,!0}),r},_getItemsByTimes:function(e,t){for(var n=[],r=(t-1)*this._const.perPage;e[r]&&r<t*this._const.perPage;r++)n.push(e[r]);return n},_hasNextByTimes:function(e,t){return t*this._const.perPage<e.length},_itemsCreator:function(t,a){var o=this,e=this.options;function n(r){var n,e=(t.keywords||[]).slice(),i=r;BI.isNotEmptyArray(e)&&(i=[],BI.each(e,function(e,t){var n=BI.Func.getSearchResult(r,t);i=i.concat(n.match).concat(n.find)}),i=BI.uniq(i)),t.selectedValues&&(n=BI.makeObject(t.selectedValues,!0),i=BI.filter(i,function(e,t){return!n[t.value]})),t.type!==BI.MultiSelectCombo.REQ_GET_ALL_DATA?t.type!==BI.MultiSelectCombo.REQ_GET_DATA_LENGTH?a({items:o._getItemsByTimes(i,t.times),hasNext:o._hasNextByTimes(i,t.times)}):a({count:i.length}):a({items:i})}e.cache&&this.items?n(this.items):e.itemsCreator({},function(e){n(o.items=e)})},_assertValue:function(e){var t=e=e||{};return e.type===BI.Selection.Multi&&BI.isNotNull(this.items)&&0===BI.difference(BI.map(this.items,"value"),e.value).length&&(t={type:BI.Selection.All,value:[]}),t}})},function(e,t){BI.ValueChooserInsertCombo=BI.inherit(BI.AbstractValueChooser,{_defaultConfig:function(){return BI.extend(BI.ValueChooserInsertCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-value-chooser-insert-combo",width:200,height:24,items:null,itemsCreator:BI.emptyFn,cache:!0})},_init:function(){BI.ValueChooserInsertCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;BI.isNotNull(t.items)&&(this.items=t.items),this.combo=BI.createWidget({type:"bi.multi_select_insert_combo",element:this,allowEdit:t.allowEdit,text:t.text,value:this._assertValue(t.value),itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this),width:t.width,height:t.height,listeners:[{eventName:BI.MultiSelectCombo.EVENT_FOCUS,action:function(){e.fireEvent(BI.ValueChooserInsertCombo.EVENT_FOCUS)}},{eventName:BI.MultiSelectCombo.EVENT_BLUR,action:function(){e.fireEvent(BI.ValueChooserInsertCombo.EVENT_BLUR)}},{eventName:BI.MultiSelectCombo.EVENT_STOP,action:function(){e.fireEvent(BI.ValueChooserInsertCombo.EVENT_STOP)}},{eventName:BI.MultiSelectCombo.EVENT_CLICK_ITEM,action:function(){e.fireEvent(BI.ValueChooserInsertCombo.EVENT_CLICK_ITEM)}},{eventName:BI.MultiSelectCombo.EVENT_SEARCHING,action:function(){e.fireEvent(BI.ValueChooserInsertCombo.EVENT_SEARCHING)}},{eventName:BI.MultiSelectCombo.EVENT_CONFIRM,action:function(){e.fireEvent(BI.ValueChooserInsertCombo.EVENT_CONFIRM)}}]})},setValue:function(e){this.combo.setValue(this._assertValue(e))},getValue:function(){var e=this.combo.getValue()||{};return{type:e.type,value:e.value}},getAllValue:function(){var e=this.combo.getValue()||{};return e.type===BI.Selection.Multi?e.value||[]:BI.difference(BI.map(this.items,"value"),e.value||[])},populate:function(e){BI.isNotNull(e)&&(this.items=e),this.combo.populate()}}),BI.ValueChooserInsertCombo.EVENT_BLUR="EVENT_BLUR",BI.ValueChooserInsertCombo.EVENT_FOCUS="EVENT_FOCUS",BI.ValueChooserInsertCombo.EVENT_STOP="EVENT_STOP",BI.ValueChooserInsertCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.ValueChooserInsertCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.ValueChooserInsertCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.value_chooser_insert_combo",BI.ValueChooserInsertCombo)},function(e,t){BI.ValueChooserCombo=BI.inherit(BI.AbstractValueChooser,{_defaultConfig:function(){return BI.extend(BI.ValueChooserCombo.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-value-chooser-combo",width:200,height:24,items:null,itemsCreator:BI.emptyFn,cache:!0})},_init:function(){BI.ValueChooserCombo.superclass._init.apply(this,arguments);var e=this,t=this.options;BI.isNotNull(t.items)&&(this.items=t.items),this.combo=BI.createWidget({type:"bi.multi_select_combo",element:this,allowEdit:t.allowEdit,text:t.text,value:this._assertValue(t.value),itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this),width:t.width,height:t.height,listeners:[{eventName:BI.MultiSelectCombo.EVENT_FOCUS,action:function(){e.fireEvent(BI.ValueChooserCombo.EVENT_FOCUS)}},{eventName:BI.MultiSelectCombo.EVENT_BLUR,action:function(){e.fireEvent(BI.ValueChooserCombo.EVENT_BLUR)}},{eventName:BI.MultiSelectCombo.EVENT_STOP,action:function(){e.fireEvent(BI.ValueChooserCombo.EVENT_STOP)}},{eventName:BI.MultiSelectCombo.EVENT_CLICK_ITEM,action:function(){e.fireEvent(BI.ValueChooserCombo.EVENT_CLICK_ITEM)}},{eventName:BI.MultiSelectCombo.EVENT_SEARCHING,action:function(){e.fireEvent(BI.ValueChooserCombo.EVENT_SEARCHING)}},{eventName:BI.MultiSelectCombo.EVENT_CONFIRM,action:function(){e.fireEvent(BI.ValueChooserCombo.EVENT_CONFIRM)}}]})},setValue:function(e){this.combo.setValue(this._assertValue(e))},getValue:function(){var e=this.combo.getValue()||{};return{type:e.type,value:e.value}},getAllValue:function(){var e=this.combo.getValue()||{};return e.type===BI.Selection.Multi?e.value||[]:BI.difference(BI.map(this.items,"value"),e.value||[])},populate:function(e){BI.isNotNull(e)&&(this.items=e),this.combo.populate()}}),BI.ValueChooserCombo.EVENT_BLUR="EVENT_BLUR",BI.ValueChooserCombo.EVENT_FOCUS="EVENT_FOCUS",BI.ValueChooserCombo.EVENT_STOP="EVENT_STOP",BI.ValueChooserCombo.EVENT_SEARCHING="EVENT_SEARCHING",BI.ValueChooserCombo.EVENT_CLICK_ITEM="EVENT_CLICK_ITEM",BI.ValueChooserCombo.EVENT_CONFIRM="EVENT_CONFIRM",BI.shortcut("bi.value_chooser_combo",BI.ValueChooserCombo)},function(e,t){BI.ValueChooserPane=BI.inherit(BI.AbstractValueChooser,{_defaultConfig:function(){return BI.extend(BI.ValueChooserPane.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-value-chooser-pane",items:null,itemsCreator:BI.emptyFn,cache:!0})},_init:function(){BI.ValueChooserPane.superclass._init.apply(this,arguments);var e=this,t=this.options;this.list=BI.createWidget({type:"bi.multi_select_list",element:this,value:t.value,itemsCreator:BI.bind(this._itemsCreator,this),valueFormatter:BI.bind(this._valueFormatter,this)}),this.list.on(BI.MultiSelectList.EVENT_CHANGE,function(){e.fireEvent(BI.ValueChooserPane.EVENT_CHANGE)}),BI.isNotNull(t.items)&&(this.items=t.items,this.list.populate())},setValue:function(e){this.list.setValue(e)},getValue:function(){var e=this.list.getValue()||{};return{type:e.type,value:e.value}},getAllValue:function(){var e=this.combo.getValue()||{};return e.type===BI.Selection.Multi?e.value||[]:BI.difference(BI.map(this.items,"value"),e.value||[])},populate:function(e){BI.isNotNull(e)&&(this.items=e),this.list.populate()}}),BI.ValueChooserPane.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.value_chooser_pane",BI.ValueChooserPane)},function(e,t,n){"use strict";var r,i=(r=n(758))&&r.__esModule?r:{"default":r};BI.extend(BI,i["default"])},function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function o(t){return typeof t}:function o(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return r.ButtonGroup}}),Object.defineProperty(t,"Tab",{enumerable:!0,get:function(){return i.Tab}}),Object.defineProperty(t,"BasicButton",{enumerable:!0,get:function(){return a.BasicButton}}),Object.defineProperty(t,"NodeButton",{enumerable:!0,get:function(){return s.NodeButton}}),Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return c.Button}}),Object.defineProperty(t,"TextButton",{enumerable:!0,get:function(){return u.TextButton}}),Object.defineProperty(t,"Editor",{enumerable:!0,get:function(){return l.Editor}}),Object.defineProperty(t,"AbstractLabel",{enumerable:!0,get:function(){return d.AbstractLabel}}),Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return p.Label}}),Object.defineProperty(t,"Single",{enumerable:!0,get:function(){return f.Single}}),Object.defineProperty(t,"IconChangeButton",{enumerable:!0,get:function(){return _.IconChangeButton}}),Object.defineProperty(t,"MultiSelectItem",{enumerable:!0,get:function(){return h.MultiSelectItem}}),Object.defineProperty(t,"TextValueCombo",{enumerable:!0,get:function(){return g.TextValueCombo}}),Object.defineProperty(t,"Widget",{enumerable:!0,get:function(){return y.Widget}}),Object.defineProperty(t,"Layout",{enumerable:!0,get:function(){return b.Layout}}),Object.defineProperty(t,"AbsoluteLayout",{enumerable:!0,get:function(){return v.AbsoluteLayout}}),Object.defineProperty(t,"HTapeLayout",{enumerable:!0,get:function(){return E.HTapeLayout}}),Object.defineProperty(t,"VTapeLayout",{enumerable:!0,get:function(){return E.VTapeLayout}}),Object.defineProperty(t,"VerticalLayout",{enumerable:!0,get:function(){return I.VerticalLayout}}),Object.defineProperty(t,"DefaultLayout",{enumerable:!0,get:function(){return T.DefaultLayout}}),Object.defineProperty(t,"DownListCombo",{enumerable:!0,get:function(){return C.DownListCombo}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return B.Icon}}),Object.defineProperty(t,"LeftRightVerticalAdaptLayout",{enumerable:!0,get:function(){return x.LeftRightVerticalAdaptLayout}}),Object.defineProperty(t,"RightVerticalAdaptLayout",{enumerable:!0,get:function(){return x.RightVerticalAdaptLayout}}),Object.defineProperty(t,"IconTextIconItem",{enumerable:!0,get:function(){return S.IconTextIconItem}}),Object.defineProperty(t,"HorizontalAutoLayout",{enumerable:!0,get:function(){return N.HorizontalAutoLayout}}),Object.defineProperty(t,"InlineVerticalAdaptLayout",{enumerable:!0,get:function(){return D.InlineVerticalAdaptLayout}}),Object.defineProperty(t,"TableAdaptLayout",{enumerable:!0,get:function(){return k.TableAdaptLayout}}),Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return A.IconButton}}),Object.defineProperty(t,"TextEditor",{enumerable:!0,get:function(){return w.TextEditor}}),Object.defineProperty(t,"IconLabel",{enumerable:!0,get:function(){return V.IconLabel}}),Object.defineProperty(t,"Popover",{enumerable:!0,get:function(){return P.Popover}}),Object.defineProperty(t,"BarPopover",{enumerable:!0,get:function(){return P.BarPopover}}),Object.defineProperty(t,"IconCombo",{enumerable:!0,get:function(){return L.IconCombo}}),Object.defineProperty(t,"DynamicDateCombo",{enumerable:!0,get:function(){return M.DynamicDateCombo}}),Object.defineProperty(t,"CustomTree",{enumerable:!0,get:function(){return F.CustomTree}}),Object.defineProperty(t,"ButtonTree",{enumerable:!0,get:function(){return O.ButtonTree}}),Object.defineProperty(t,"IconArrowNode",{enumerable:!0,get:function(){return R.IconArrowNode}}),Object.defineProperty(t,"MidTreeLeafItem",{enumerable:!0,get:function(){return H.MidTreeLeafItem}}),Object.defineProperty(t,"FirstTreeLeafItem",{enumerable:!0,get:function(){return j.FirstTreeLeafItem}}),Object.defineProperty(t,"LastTreeLeafItem",{enumerable:!0,get:function(){return W.LastTreeLeafItem}}),Object.defineProperty(t,"AbsoluteCenterLayout",{enumerable:!0,get:function(){return G.AbsoluteCenterLayout}}),Object.defineProperty(t,"HorizontalAdaptLayout",{enumerable:!0,get:function(){return Y.HorizontalAdaptLayout}}),Object.defineProperty(t,"FloatLeftLayout",{enumerable:!0,get:function(){return J.FloatLeftLayout}}),Object.defineProperty(t,"CenterAdaptLayout",{enumerable:!0,get:function(){return z.CenterAdaptLayout}}),Object.defineProperty(t,"VerticalAdaptLayout",{enumerable:!0,get:function(){return U.VerticalAdaptLayout}}),t["default"]=void 0;var r=n(98),i=n(760),a=n(20),s=n(99),c=n(761),u=n(762),l=n(763),d=n(100),p=n(764),f=n(25),_=n(765),h=n(766),g=n(767),m=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{"default":e};var t=K();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){var a;Object.prototype.hasOwnProperty.call(e,i)&&((a=r?Object.getOwnPropertyDescriptor(e,i):null)&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i])}n["default"]=e,t&&t.set(e,n);return n}(n(768)),y=n(17),b=n(18),v=n(769),E=n(770),I=n(856),T=n(857),C=n(858),B=n(859),x=n(860),S=n(861),N=n(862),D=n(863),k=n(864),A=n(865),w=n(866),V=n(867),P=n(868),L=n(869),M=n(870),F=n(871),O=n(872),R=n(873),H=n(874),j=n(875),W=n(876),G=n(877),Y=n(878),J=n(879),z=n(880),U=n(881);function K(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return K=function K(){return t},t}var Z={Decorators:m};t["default"]=Z},function(e,t,n){},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";n(100)},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&e[i]===undefined&&Object.defineProperty(e,i,a)}}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function(){return function(e){BI.shortcut(e.xtype,e)}},t.provider=function(){return function(e){BI.provider(e.xtype,e)}},t.model=function(){return function(e){BI.model(e.xtype,e)}},t.store=function(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=r.props?r.props.apply(this):undefined;return BI.Models.getModel(n.xtype,e)},t}(e)}},t.mixin=function(){return function(t){var n={};Object.getOwnPropertyNames(t.prototype).forEach(function(e){"constructor"!==e&&(n[e]=t.prototype[e])}),Fix.mixin(t.xtype,n)}},t.mixins=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var a=[];return t.forEach(function(e){e.xtype&&a.push(e.xtype)}),function(i){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(o(e=i.call.apply(i,[this].concat(n))||this),"mixins",a),e}return c(e,i),e}(e)}},t.Model=void 0;var r=function(i){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(o(e=i.call.apply(i,[this].concat(n))||this),"model",void 0),s(o(e),"store",void 0),s(o(e),"context",void 0),s(o(e),"actions",void 0),s(o(e),"childContext",void 0),s(o(e),"TYPE",void 0),s(o(e),"computed",void 0),e}return c(e,i),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=r},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(73)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";e.exports=n(19).createHmac},function(e,t,n){"use strict";e.exports=n(776)},function(e){e.exports={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(e,t,i){"use strict";(function(u,l){var n,a=i(2).Buffer,d=i(102),p=i(103),f=i(104),_=i(117),o=u.crypto&&u.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},r=[];function g(e){if(u.process&&!u.process.browser)return Promise.resolve(!1);if(!o||!o.importKey||!o.deriveBits)return Promise.resolve(!1);if(r[e]!==undefined)return r[e];var t=m(n=n||a.alloc(8),n,10,128,e).then(function(){return!0})["catch"](function(){return!1});return r[e]=t}function m(e,t,n,r,i){return o.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return o.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)}).then(function(e){return a.from(e)})}e.exports=function(n,r,i,a,o,s){"function"==typeof o&&(s=o,o=undefined);var e,t,c=h[(o=o||"sha1").toLowerCase()];if(!c||"function"!=typeof u.Promise)return l.nextTick(function(){var e;try{e=f(n,r,i,a,o)}catch(t){return s(t)}s(null,e)});if(d(i,a),n=_(n,p,"Password"),r=_(r,p,"Salt"),"function"!=typeof s)throw new Error("No callback provided to pbkdf2");e=g(c).then(function(e){return e?m(n,r,i,a,c):f(n,r,i,a,o)}),t=s,e.then(function(e){l.nextTick(function(){t(null,e)})},function(e){l.nextTick(function(){t(e)})})}}).call(this,i(10),i(11))},function(e,t,n){"use strict";t.byteLength=function(e){var t=d(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=d(e),i=r[0],a=r[1],o=new l(function(e,t){return 3*(e+t)/4-t}(i,a)),s=0,c=0<a?i-4:i;for(n=0;n<c;n+=4)t=u[e.charCodeAt(n)]<<18|u[e.charCodeAt(n+1)]<<12|u[e.charCodeAt(n+2)]<<6|u[e.charCodeAt(n+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=255&t;2===a&&(t=u[e.charCodeAt(n)]<<2|u[e.charCodeAt(n+1)]>>4,o[s++]=255&t);1===a&&(t=u[e.charCodeAt(n)]<<10|u[e.charCodeAt(n+1)]<<4|u[e.charCodeAt(n+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t);return o},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;a<o;a+=16383)i.push(function(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(function(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}(r));return i.join("")}(e,a,o<a+16383?o:a+16383));1==r?(t=e[n-1],i.push(s[t>>2]+s[t<<4&63]+"==")):2==r&&(t=(e[n-2]<<8)+e[n-1],i.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return i.join("")};for(var s=[],u=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i<a;++i)s[i]=r[i],u[r.charCodeAt(i)]=i;function d(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},function(e,t,n){"use strict";t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-l)-1,f>>=-l,l+=s;0<l;a=256*a+e[t+d],d+=p,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;0<l;o=256*o+e[t+d],d+=p,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:(f?-1:1)*Infinity;o+=Math.pow(2,r),a-=u}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,d=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,_=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),2<=(t+=1<=o+d?p/c:p*Math.pow(2,1-d))*c&&(o++,c/=2),l<=o+d?(s=0,o=l):1<=o+d?(s=(t*c-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));8<=i;e[n+f]=255&s,f+=_,s/=256,i-=8);for(o=o<<i|s,u+=i;0<u;e[n+f]=255&o,f+=_,o/=256,u-=8);e[n+f-_]|=128*h}},function(e,t,n){"use strict";var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,n){"use strict";var r=n(105);e.exports=function(e){return(new r).update(e).digest()}},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function r(t){return typeof t}:function r(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}e.exports=function(e){return e&&"object"===r(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,n){"use strict";try{var r=n(74);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(i){e.exports=n(784)}},function(e,t,n){"use strict";"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function n(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){var n;t&&(e.super_=t,n=function n(){},n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e)}},function(e,t,n){"use strict";(((t=e.exports=n(107)).Stream=t).Readable=t).Writable=n(112),t.Duplex=n(38),t.Transform=n(114),t.PassThrough=n(793),t.finished=n(75),t.pipeline=n(794)},function(e,t){},function(e,t,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function i(i){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?r(Object(a),!0).forEach(function(e){var t,n,r;t=i,r=a[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(a,e))})}return i}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=n(15).Buffer,o=n(789).inspect,c=o&&o.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,n,r,i=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,n=i,r=o,s.prototype.copy.call(t,n,r),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0===(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t).data=i.slice(a);break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0===(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n).data=i.slice(a);break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return o(this,i({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),r&&a(t,r),e}()},function(e,t){},function(e,t,n){"use strict";e.exports=n(74).deprecate},function(r,e,m){"use strict";(function(s){var e;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=m(75),a=Symbol("lastResolve"),o=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function f(e,t){return{value:e,done:t}}function _(e){var t,n=e[a];null===n||null!==(t=e[p].read())&&(e[l]=null,e[a]=null,e[o]=null,n(f(t,!1)))}var t=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((n(e={get stream(){return this[p]},next:function(){var n=this,e=this[c];if(null!==e)return Promise.reject(e);if(this[u])return Promise.resolve(f(undefined,!0));if(this[p].destroyed)return new Promise(function(e,t){s.nextTick(function(){n[c]?t(n[c]):e(f(undefined,!0))})});var t,r,i,a=this[l];if(a)t=new Promise((r=a,i=this,function(e,t){r.then(function(){i[u]?e(f(undefined,!0)):i[d](e,t)},t)}));else{var o=this[p].read();if(null!==o)return Promise.resolve(f(o,!1));t=new Promise(this[d])}return this[l]=t}},Symbol.asyncIterator,function(){return this}),n(e,"return",function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){e?n(e):t(f(undefined,!0))})})}),e),t),g=function g(e){var t,r=Object.create(h,(n(t={},p,{value:e,writable:!0}),n(t,a,{value:null,writable:!0}),n(t,o,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[p].read();n?(r[l]=null,r[a]=null,r[o]=null,e(f(n,!1))):(r[a]=e,r[o]=t)},writable:!0}),t));return r[l]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[o];return null!==t&&(r[l]=null,r[a]=null,r[o]=null,t(e)),void(r[c]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[o]=null,n(f(undefined,!0))),r[u]=!0}),e.on("readable",function(e){s.nextTick(_,e)}.bind(null,r)),r};r.exports=g}).call(this,m(11))},function(e,t,n){"use strict";e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,n){"use strict";e.exports=i;var r=n(114);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(1)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,c){"use strict";var u;var n=c(37).codes,s=n.ERR_MISSING_ARGS,l=n.ERR_STREAM_DESTROYED;function d(e){if(e)throw e}function p(n,e,t,r){var i,a;i=r,a=!1;var o=!(r=function(){a||(a=!0,i.apply(void 0,arguments))});n.on("close",function(){o=!0}),u===undefined&&(u=c(75)),u(n,{readable:e,writable:t},function(e){return e?r(e):(o=!0,void r())});var s=!1;return function(e){var t;if(!o&&!s)return s=!0,(t=n).setHeader&&"function"==typeof t.abort?n.abort():"function"==typeof n.destroy?n.destroy():void r(e||new l("pipe"))}}function f(e){e()}function _(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n,i,a=(n=r).length&&"function"==typeof n[n.length-1]?n.pop():d;if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new s("streams");var o=r.map(function(e,t){var n=t<r.length-1;return p(e,n,0<t,function(e){i=i||e,e&&o.forEach(f),n||(o.forEach(f),a(i))})});return r.reduce(_)}},function(e,t,n){"use strict";var r=n(15).Buffer,i=n(1),a=n(106),g=new Array(16),m=[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],y=[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],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],E=[0,1518500249,1859775393,2400959708,2840853838],I=[1352829926,1548603684,1836072691,2053994217,0];function o(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function T(e,t){return e<<t|e>>>32-t}function C(e,t,n,r,i,a,o,s){return T(e+(t^n^r)+a+o|0,s)+i|0}function B(e,t,n,r,i,a,o,s){return T(e+(t&n|~t&r)+a+o|0,s)+i|0}function x(e,t,n,r,i,a,o,s){return T(e+((t|~n)^r)+a+o|0,s)+i|0}function S(e,t,n,r,i,a,o,s){return T(e+(t&r|n&~r)+a+o|0,s)+i|0}function N(e,t,n,r,i,a,o,s){return T(e+(t^(n|~r))+a+o|0,s)+i|0}i(o,a),o.prototype._update=function(){for(var e=g,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,s=0|this._a,c=0|this._b,u=0|this._c,l=0|this._d,d=0|this._e,p=0;p<80;p+=1)var f,_=p<16?(f=C(n,r,i,a,o,e[m[p]],E[0],b[p]),N(s,c,u,l,d,e[y[p]],I[0],v[p])):p<32?(f=B(n,r,i,a,o,e[m[p]],E[1],b[p]),S(s,c,u,l,d,e[y[p]],I[1],v[p])):p<48?(f=x(n,r,i,a,o,e[m[p]],E[2],b[p]),x(s,c,u,l,d,e[y[p]],I[2],v[p])):p<64?(f=S(n,r,i,a,o,e[m[p]],E[3],b[p]),B(s,c,u,l,d,e[y[p]],I[3],v[p])):(f=N(n,r,i,a,o,e[m[p]],E[4],b[p]),C(s,c,u,l,d,e[y[p]],I[4],v[p])),n=o,o=a,a=T(i,10),i=r,r=f,s=d,d=l,l=T(u,10),u=c,c=_;var h=this._b+i+l|0;this._b=this._c+a+d|0,this._c=this._d+o+s|0,this._d=this._e+n+c|0,this._e=this._a+r+u|0,this._a=h},o.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=o},function(e,t,n){"use strict";var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=n(797),r.sha1=n(798),r.sha224=n(799),r.sha256=n(115),r.sha384=n(800),r.sha512=n(116)},function(e,t,n){"use strict";var r=n(1),i=n(39),a=n(2).Buffer,m=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,i.call(this,64,56)}r(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,s=0;s<16;++s)t[s]=e.readInt32BE(4*s);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var c,u,l,d,p,f,_=0;_<80;++_)var h=~~(_/20),g=0|((f=n)<<5|f>>>27)+(l=r,d=i,p=a,0===(u=h)?l&d|~l&p:2===u?l&d|l&p|d&p:l^d^p)+o+t[_]+m[h],o=a,a=i,i=(c=r)<<30|c>>>2,r=n,n=g;this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){"use strict";var r=n(1),i=n(39),a=n(2).Buffer,y=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,i.call(this,64,56)}r(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)n[c]=e.readInt32BE(4*c);for(;c<80;++c)n[c]=(t=n[c-3]^n[c-8]^n[c-14]^n[c-16])<<1|t>>>31;for(var u,l,d,p,f,_,h=0;h<80;++h)var g=~~(h/20),m=0|((_=r)<<5|_>>>27)+(d=i,p=a,f=o,0===(l=g)?d&p|~d&f:2===l?d&p|d&f|p&f:d^p^f)+s+n[h]+y[g],s=o,o=a,a=(u=i)<<30|u>>>2,i=r,r=m;this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,n){"use strict";var r=n(1),i=n(115),a=n(39),o=n(2).Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),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 e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,n){"use strict";var r=n(1),i=n(116),a=n(39),o=n(2).Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),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 r=o.allocUnsafe(48);function e(e,t,n){r.writeInt32BE(e,n),r.writeInt32BE(t,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r},e.exports=c},function(e,t,n){"use strict";var r=n(19);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=r.createDecipher,t.createDecipheriv=t.Decipheriv=r.createDecipheriv,t.listCiphers=t.getCiphers=r.getCiphers},function(e,t,n){"use strict";var r=n(19);t.DiffieHellmanGroup=r.DiffieHellmanGroup,t.createDiffieHellmanGroup=r.createDiffieHellmanGroup,t.getDiffieHellman=r.getDiffieHellman,t.createDiffieHellman=r.createDiffieHellman,t.DiffieHellman=r.DiffieHellman},function(e,t,n){"use strict";var r=n(19);t.createSign=r.createSign,t.Sign=r.Sign,t.createVerify=r.createVerify,t.Verify=r.Verify},function(e,t,n){"use strict";var r=n(19).createECDH;e.exports=r||n(805)},function(e,t,s){"use strict";(function(a){var t=s(806),r=s(8);e.exports=function(e){return new i(e)};var n={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 i(e){this.curveType=n[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function o(e,t,n){Array.isArray(e)||(e=e.toArray());var r,i=new a(e);return n&&i.length<n&&((r=new a(n-i.length)).fill(0),i=a.concat([r,i])),t?i.toString(t):i}n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1,i.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},i.prototype.computeSecret=function(e,t,n){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},i.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),o(n,e)},i.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},i.prototype.setPublicKey=function(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this.keys._importPublic(e),this},i.prototype.setPrivateKey=function(e,t){t=t||"utf8",a.isBuffer(e)||(e=new a(e,t));var n=(n=new r(e)).toString(16);return this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,s(15).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(807).version,r.utils=n(16),r.rand=n(119),r.curve=n(120),r.curves=n(76),r.ec=n(820),r.eddsa=n(824)},function(e){e.exports={name:"elliptic",version:"6.5.3",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],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",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},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"}}},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(16),E=n(8),i=n(1),a=n(61),o=r.assert;function s(e){a.call(this,"short",e),this.a=new E(e.a,16).toRed(this.red),this.b=new E(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,n,r){a.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new E(t,16),this.y=new E(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){a.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new E(0)):(this.x=new E(t,16),this.y=new E(n,16),this.z=new E(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(s,a),(e.exports=s).prototype._getEndomorphism=function(e){var t,n,r,i;if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3))return r=e.beta?new E(e.beta,16).toRed(this.red):(r=(n=this._getEndoRoots(this.p))[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red),e.lambda?t=new E(e.lambda,16):(i=this._getEndoRoots(this.n),0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(r))?t=i[0]:(t=i[1],o(0===this.g.mul(t).x.cmp(this.g.x.redMul(r))))),{beta:r,lambda:t,basis:e.basis?e.basis.map(function(e){return{a:new E(e.a,16),b:new E(e.b,16)}}):this._getEndoBasis(t)}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:E.mont(e),n=new E(2).toRed(t).redInvm(),r=n.redNeg(),i=new E(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,n,r,i,a,o,s,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=e,l=this.n.clone(),d=new E(1),p=new E(0),f=new E(0),_=new E(1),h=0;0!==u.cmpn(0);){var g=l.div(u),m=l.sub(g.mul(u)),y=f.sub(g.mul(d)),b=_.sub(g.mul(p));if(!r&&m.cmp(c)<0)t=s.neg(),n=d,r=m.neg(),i=y;else if(r&&2==++h)break;l=u,u=s=m,f=d,d=y,_=p,p=b}a=m.neg(),o=y;var v=r.sqr().add(i.sqr());return 0<=a.sqr().add(o.sqr()).cmp(v)&&(a=t,o=n),r.negative&&(r=r.neg(),i=i.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:r,b:i},{a:a,b:o}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),c=i.mul(n.b),u=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},s.prototype.pointFromX=function(e,t){(e=new E(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var u=this._wnafMulAdd(1,r,i,2*a,n),l=0;l<2*a;l++)r[l]=null,i[l]=null;return u},i(c,a.BasePoint),s.prototype.point=function(e,t,n){return new c(this,e,t,n)},s.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t,n,r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);return e&&(t=this.curve,n=function n(e){return t.point(e.x.redMul(t.endo.beta),e.y)},(e.beta=r).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}),r}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function i(e){return t.point(e[0],e[1],n)}var a=e[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new E(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t,n,r=this.curve.point(this.x,this.y.redNeg());return e&&this.precomputed&&(t=this.precomputed,n=function n(e){return e.neg()},r.precomputed={naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}),r},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(u,a.BasePoint),s.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=r.redMul(u),p=c.redSqr().redIAdd(l).redISub(d).redISub(d),f=c.redMul(d.redISub(p)).redISub(a.redMul(l)),_=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(p,f,_)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),l=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),p=s.redMul(l.redISub(d)).redISub(i.redMul(u)),f=this.z.redMul(o);return this.curve.jpoint(d,p,f)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}for(var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),u=o.redAdd(o),n=0;n<e;n++){var l=a.redSqr(),d=u.redSqr(),p=d.redSqr(),f=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(c)),_=a.redMul(d),h=f.redSqr().redISub(_.redAdd(_)),g=_.redISub(h),m=(m=f.redMul(g)).redIAdd(m).redISub(p),y=u.redMul(s);n+1<e&&(c=c.redMul(p)),a=h,s=y,u=m}return this.curve.jpoint(a,u.redMul(i),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 e,t,n,r,i,a,o,s,c,u,l,d,p,f,_,h,g=this.zOne?(n=this.x.redSqr(),i=(r=this.y.redSqr()).redSqr(),a=(a=this.x.redAdd(r).redSqr().redISub(n).redISub(i)).redIAdd(a),s=(o=n.redAdd(n).redIAdd(n)).redSqr().redISub(a).redISub(a),c=(c=(c=i.redIAdd(i)).redIAdd(c)).redIAdd(c),e=s,t=o.redMul(a.redISub(s)).redISub(c),this.y.redAdd(this.y)):(u=this.x.redSqr(),d=(l=this.y.redSqr()).redSqr(),p=(p=this.x.redAdd(l).redSqr().redISub(u).redISub(d)).redIAdd(p),_=(f=u.redAdd(u).redIAdd(u)).redSqr(),h=(h=(h=d.redIAdd(d)).redIAdd(h)).redIAdd(h),e=_.redISub(p).redISub(p),t=f.redMul(p.redISub(e)).redISub(h),(g=this.y.redMul(this.z)).redIAdd(g));return this.curve.jpoint(e,t,g)},u.prototype._threeDbl=function(){var e,t,n,r,i,a,o,s,c,u,l,d,p,f,_,h,g;return this.zOne?(n=this.x.redSqr(),i=(r=this.y.redSqr()).redSqr(),a=(a=this.x.redAdd(r).redSqr().redISub(n).redISub(i)).redIAdd(a),c=s=(o=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a)).redSqr().redISub(a).redISub(a),u=(u=(u=i.redIAdd(i)).redIAdd(u)).redIAdd(u),e=o.redMul(a.redISub(s)).redISub(u),t=this.y.redAdd(this.y)):(l=this.z.redSqr(),d=this.y.redSqr(),p=this.x.redMul(d),f=(f=this.x.redSub(l).redMul(this.x.redAdd(l))).redAdd(f).redIAdd(f),h=(_=(_=p.redIAdd(p)).redIAdd(_)).redAdd(_),c=f.redSqr().redISub(h),t=this.y.redAdd(this.z).redSqr().redISub(d).redISub(l),g=(g=(g=(g=d.redSqr()).redIAdd(g)).redIAdd(g)).redIAdd(g),e=f.redMul(_.redISub(c)).redISub(g)),this.curve.jpoint(c,e,t)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(o),l=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(l),p=o.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=s.redMul(d).redISub(p),_=n.redAdd(n).redMul(r);return this.curve.jpoint(l,f,_)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),l=t.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.x.redMul(s).redISub(l);d=(d=d.redIAdd(d)).redIAdd(d);var p=this.y.redMul(u.redMul(c.redISub(u)).redISub(o.redMul(s)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,p,f)},u.prototype.mul=function(e,t){return e=new E(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(n.redIAdd(i),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(e,t,n){"use strict";var r=n(8),i=n(1),a=n(61),o=n(16);function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),(e.exports=s).prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.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 e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;0<=a;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},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(e){return 0===this.getX().cmp(e.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(e,t,n){"use strict";var r=n(16),c=n(8),i=n(1),a=n(61),o=r.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new c(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new c(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new c(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,n,r,i){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new c(t,16),this.y=new c(n,16),this.z=r?new c(r,16):this.curve.one,this.t=i&&new c(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.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()))))}i(s,a),(e.exports=s).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},s.prototype.pointFromX=function(e,t){(e=new c(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(i.redInvm()),o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},s.prototype.pointFromY=function(e,t){(e=new c(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},i(u,a.BasePoint),s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},s.prototype.point=function(e,t,n,r){return new u(this,e,t,n,r)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=(n=this.z.redSqr()).redIAdd(n),r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),c=i.redMul(o),u=a.redMul(s),l=i.redMul(s),d=o.redMul(a);return this.curve.point(c,u,d,l)},u.prototype._projDbl=function(){var e,t,n,r,i,a,o,s=this.x.redAdd(this.y).redSqr(),c=this.x.redSqr(),u=this.y.redSqr();return r=this.curve.twisted?(e=(i=this.curve._mulA(c)).redAdd(u),this.zOne?(t=s.redSub(c).redSub(u).redMul(e.redSub(this.curve.two)),n=e.redMul(i.redSub(u)),e.redSqr().redSub(e).redSub(e)):(a=this.z.redSqr(),o=e.redSub(a).redISub(a),t=s.redSub(c).redISub(u).redMul(o),n=e.redMul(i.redSub(u)),e.redMul(o))):(i=c.redAdd(u),a=this.curve._mulC(this.z).redSqr(),o=i.redSub(a).redSub(a),t=this.curve._mulC(s.redISub(i)).redMul(o),n=this.curve._mulC(i).redMul(c.redISub(u)),i.redMul(o)),this.curve.point(t,n,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),u=a.redMul(o),l=s.redMul(c),d=a.redMul(c),p=o.redMul(s);return this.curve.point(u,l,p,d)},u.prototype._projAdd=function(e){var t,n=this.z.redMul(e.z),r=n.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),o=this.curve.d.redMul(i).redMul(a),s=r.redSub(o),c=r.redAdd(o),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),l=n.redMul(s).redMul(u),d=this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(i))),s.redMul(c)):(t=n.redMul(c).redMul(a.redSub(i)),this.curve._mulC(s).redMul(c));return this.curve.point(l,t,d)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},u.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),0<=n.cmp(this.curve.p))return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(e,t,n){"use strict";t.sha1=n(814),t.sha224=n(815),t.sha256=n(122),t.sha384=n(816),t.sha512=n(123)},function(e,t,n){"use strict";var r=n(21),i=n(45),a=n(121),d=r.rotl32,p=r.sum32,f=r.sum32_5,_=a.ft_1,o=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(s,o),(e.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=d(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);for(var i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],r=0;r<n.length;r++)var u=~~(r/20),l=f(d(i,5),_(u,a,o,s),c,n[r],h[u]),c=s,s=o,o=d(a,30),a=i,i=l;this.h[0]=p(this.h[0],i),this.h[1]=p(this.h[1],a),this.h[2]=p(this.h[2],o),this.h[3]=p(this.h[3],s),this.h[4]=p(this.h[4],c)},s.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(21),i=n(122);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),(e.exports=a).blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(21),i=n(123);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),(e.exports=a).blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(21),i=n(45),g=r.rotl32,m=r.sum32,y=r.sum32_3,b=r.sum32_4,a=i.BlockHash;function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}r.inherits(o,a),(t.ripemd160=o).blockSize=512,o.outSize=160,o.hmacStrength=192,o.padLength=64,o.prototype._update=function(e,t){for(var n,r,i=d=this.h[0],a=h=this.h[1],o=_=this.h[2],s=f=this.h[3],c=p=this.h[4],u=0;u<80;u++)var l=m(g(b(d,v(u,h,_,f),e[E[u]+t],(r=u)<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838),T[u]),p),d=p,p=f,f=g(_,10),_=h,h=l,l=m(g(b(i,v(79-u,a,o,s),e[I[u]+t],(n=u)<=15?1352829926:n<=31?1548603684:n<=47?1836072691:n<=63?2053994217:0),C[u]),c),i=c,c=s,s=g(o,10),o=a,a=l;l=y(this.h[1],_,s),this.h[1]=y(this.h[2],f,c),this.h[2]=y(this.h[3],p,i),this.h[3]=y(this.h[4],d,a),this.h[4]=y(this.h[0],h,o),this.h[0]=l},o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var E=[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],I=[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],T=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],C=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(21),i=n(26);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}(e.exports=a).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,n){"use strict";e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function g(t){return typeof t}:function g(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(e)}var m=n(8),y=n(821),r=n(16),i=n(76),a=n(119),f=r.assert,o=n(822),b=n(823);function s(e){if(!(this instanceof s))return new s(e);"string"==typeof e&&(f(i.hasOwnProperty(e),"Unknown curve "+e),e=i[e]),e instanceof i.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(e.exports=s).prototype.keyPair=function(e){return new o(this,e)},s.prototype.keyFromPrivate=function(e,t){return o.fromPrivate(this,e,t)},s.prototype.keyFromPublic=function(e,t){return o.fromPublic(this,e,t)},s.prototype.genKeyPair=function(e){e=e||{};for(var t=new y({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new m(2));;){var i=new m(t.generate(n));if(!(0<i.cmp(r)))return i.iaddn(1),this.keyFromPrivate(i)}},s.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return 0<n&&(e=e.ushrn(n)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},s.prototype.sign=function(e,t,n,r){"object"===g(n)&&(r=n,n=null),r=r||{},t=this.keyFromPrivate(t,n),e=this._truncateToN(new m(e,16));for(var i=this.n.byteLength(),a=t.getPrivate().toArray("be",i),o=e.toArray("be",i),s=new y({hash:this.hash,entropy:a,nonce:o,pers:r.pers,persEnc:r.persEnc||"utf8"}),c=this.n.sub(new m(1)),u=0;;u++){var l=r.k?r.k(u):new m(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||0<=l.cmp(c))){var d=this.g.mul(l);if(!d.isInfinity()){var p=d.getX(),f=p.umod(this.n);if(0!==f.cmpn(0)){var _=l.invm(this.n).mul(f.mul(t.getPrivate()).iadd(e));if(0!==(_=_.umod(this.n)).cmpn(0)){var h=(d.getY().isOdd()?1:0)|(0!==p.cmp(f)?2:0);return r.canonical&&0<_.cmp(this.nh)&&(_=this.n.sub(_),h^=1),new b({r:f,s:_,recoveryParam:h})}}}}}},s.prototype.verify=function(e,t,n,r){e=this._truncateToN(new m(e,16)),n=this.keyFromPublic(n,r);var i=(t=new b(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||0<=i.cmp(this.n))return!1;if(a.cmpn(1)<0||0<=a.cmp(this.n))return!1;var o,s=a.invm(this.n),c=s.mul(e).umod(this.n),u=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,n.getPublic(),u)).isInfinity()&&o.eqXToP(i):!(o=this.g.mulAdd(c,n.getPublic(),u)).isInfinity()&&0===o.getX().umod(this.n).cmp(i)},s.prototype.recoverPubKey=function(e,t,n,r){f((3&n)===n,"The recovery param is more than two bits"),t=new b(t,r);var i=this.n,a=new m(e),o=t.r,s=t.s,c=1&n,u=n>>1;if(0<=o.cmp(this.curve.p.umod(this.curve.n))&&u)throw new Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),c):this.curve.pointFromX(o,c);var l=t.r.invm(i),d=i.sub(a).mul(l).umod(i),p=s.mul(l).umod(i);return this.g.mulAdd(d,o,p)},s.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new b(t,r)).recoveryParam)return t.recoveryParam;for(var i,a=0;a<4;a++){try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(77),o=n(118),i=n(26);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}(e.exports=a).prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=o.toArray(e,t),n=o.toArray(n,r),i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,e);return this._update(n),this._reseed++,o.encode(a,t)}},function(e,t,n){"use strict";var r=n(8),i=n(16).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(e.exports=a).fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var c=n(8),u=n(16),r=u.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(r(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),e.recoveryParam===undefined?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function l(){this.place=0}function d(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0==r||4<r)return!1;for(var i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function o(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function s(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}(e.exports=i).prototype._importDER=function(e,t){e=u.toArray(e,t);var n=new l;if(48!==e[n.place++])return!1;var r=d(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=d(e,n);if(!1===i)return!1;var a=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var o=d(e,n);if(!1===o)return!1;if(e.length!==o+n.place)return!1;var s=e.slice(n.place,o+n.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new c(a),this.s=new c(s),!(this.recoveryParam=null)},i.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=o(t),n=o(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];s(r,t.length),(r=r.concat(t)).push(2),s(r,n.length);var i=r.concat(n),a=[48];return s(a,i.length),a=a.concat(i),u.encode(a,e)}},function(e,t,n){"use strict";var r=n(77),i=n(76),a=n(16),o=a.assert,c=a.parseBytes,s=n(825),u=n(826);function l(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}(e.exports=l).prototype.sign=function(e,t){e=c(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),s=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:a})},l.prototype.verify=function(e,t,n){e=c(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return a.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(16),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},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 e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),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(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function r(t){return typeof t}:function r(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}var i=n(8),a=n(16),o=a.assert,s=a.cachedProperty,c=a.parseBytes;function u(e,t){this.eddsa=e,"object"!==r(t)&&(t=c(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},function(e,t,n){"use strict";var r=n(19);"function"!=typeof r.publicEncrypt&&(r=n(78)),t.publicEncrypt=r.publicEncrypt,t.privateDecrypt=r.privateDecrypt,"function"!=typeof r.privateEncrypt?t.privateEncrypt=n(78).privateEncrypt:t.privateEncrypt=r.privateEncrypt,"function"!=typeof r.publicDecrypt?t.publicDecrypt=n(78).publicDecrypt:t.publicDecrypt=r.publicDecrypt},function(e,t,n){"use strict";var o=n(124),p=n(59),f=n(60),_=n(130),h=n(131),g=n(8),s=n(132),c=n(133),m=n(2).Buffer;e.exports=function(e,t,n){var r,i=e.padding?e.padding:n?1:4,a=o(e);if(4===i)r=function(e,t){var n=e.modulus.byteLength(),r=t.length,i=f("sha1").update(m.alloc(0)).digest(),a=i.length,o=2*a;if(n-o-2<r)throw new Error("message too long");var s=m.alloc(n-r-o-2),c=n-a-1,u=p(a),l=h(m.concat([i,s,m.alloc(1,1),t],c),_(u,c)),d=h(u,_(l,a));return new g(m.concat([m.alloc(1),d,l],n))}(a,t);else if(1===i)r=function(e,t,n){var r,i=t.length,a=e.modulus.byteLength();if(a-11<i)throw new Error("message too long");r=n?m.alloc(a-i-3,255):function(e){var t,n=m.allocUnsafe(e),r=0,i=p(2*e),a=0;for(;r<e;)a===i.length&&(i=p(2*e),a=0),(t=i[a++])&&(n[r++]=t);return n}(a-i-3);return new g(m.concat([m.from([0,n?1:2]),r,m.alloc(1),t],a))}(a,t,n);else{if(3!==i)throw new Error("unknown padding");if(0<=(r=new g(t)).cmp(a.modulus))throw new Error("data too long for modulus")}return(n?c:s)(r,a)}},function(e,t,n){"use strict";var r=n(46);t.certificate=n(839);var i=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version")["int"](),this.key("modulus")["int"](),this.key("publicExponent")["int"](),this.key("privateExponent")["int"](),this.key("prime1")["int"](),this.key("prime2")["int"](),this.key("exponent1")["int"](),this.key("exponent2")["int"](),this.key("coefficient")["int"]())});t.RSAPrivateKey=i;var a=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus")["int"](),this.key("publicExponent")["int"]())});t.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=o;var s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p")["int"](),this.key("q")["int"](),this.key("g")["int"]()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version")["int"](),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters")["int"]())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=u;var l=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version")["int"](),this.key("p")["int"](),this.key("q")["int"](),this.key("g")["int"](),this.key("pub_key")["int"](),this.key("priv_key")["int"]())});t.DSAPrivateKey=l,t.DSAparam=r.define("DSAparam",function(){this["int"]()});var d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version")["int"](),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var p=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=r.define("signature",function(){this.seq().obj(this.key("r")["int"](),this.key("s")["int"]())})},function(e,t,r){"use strict";var n=r(46),i=r(1);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(t){var n;try{n=r(831).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){n=function n(e){this._initNamed(e)}}return i(n,t),n.prototype._initNamed=function(e){t.call(this,e)},new n(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports,__webpack_require__){"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var indexOf=function indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},Object_keys=function Object_keys(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function forEach(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=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(e){if(!(this instanceof Script))return new Script(e);this.code=e};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,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=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=r.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 n=Script.createContext(t),e=this.runInContext(n);return t&&forEach(Object_keys(n),function(e){t[e]=n[e]}),e},forEach(Object_keys(Script.prototype),function(n){exports[n]=Script[n]=function(e){var t=Script(e);return t[n].apply(t,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(t){var n=new Context;return"object"===_typeof(t)&&forEach(Object_keys(t),function(e){n[e]=t[e]}),n}},function(e,t,n){"use strict";var r=n(1);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}(t.Reporter=i).prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t=this._reporterState,n=e instanceof a,r=n?e:new a(t.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack);if(!t.options.partial)throw r;return n||t.errors.push(r),r},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" 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(e,t,n){"use strict";function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function l(t){return typeof t}:function l(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(e)}var d=n(47).Reporter,r=n(47).EncoderBuffer,_=n(47).DecoderBuffer,i=n(26),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],o=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function s(e,t){var n={};(this._baseState=n).enc=e,n.parent=t||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())}e.exports=s;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];s.prototype.clone=function(){var t=this._baseState,n={};c.forEach(function(e){n[e]=t[e]});var e=new this.constructor(n.parent);return e._baseState=n,e},s.prototype._wrap=function(){var n=this._baseState;o.forEach(function(t){this[t]=function(){var e=new this.constructor(this);return n.children.push(e),e[t].apply(e,arguments)}},this)},s.prototype._init=function(e){var t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),i.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(i(null===t.children),(t.children=n).forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map(function(n){if("object"!==l(n)||n.constructor!==Object)return n;var r={};return Object.keys(n).forEach(function(e){e==(0|e)&&(e|=0);var t=n[e];r[t]=e}),r}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){s.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),a.forEach(function(n){s.prototype[n]=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return i(null===e.tag),e.tag=n,this._useArgs(t),this}}),s.prototype.use=function(e){i(e);var t=this._baseState;return i(null===t.use),t.use=e,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(e){var t=this._baseState;return i(null===t["default"]),t["default"]=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},s.prototype.obj=function obj(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return t.obj=!0,0!==n.length&&this._useArgs(n),this},s.prototype.key=function(e){var t=this._baseState;return i(null===t.key),t.key=e,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(t){var e=this._baseState;return i(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},s.prototype.contains=function(e){var t=this._baseState;return i(null===t.use),t.contains=e,this},s.prototype._decode=function(t,n){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,n));var r,i=e["default"],a=!0,o=null;if(null!==e.key&&(o=t.enterKey(e.key)),e.optional){var s=null;if(null!==e.explicit?s=e.explicit:null!==e.implicit?s=e.implicit:null!==e.tag&&(s=e.tag),null!==s||e.any){if(a=this._peekTag(t,s,e.any),t.isError(a))return a}else{var c=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,n):this._decodeChoice(t,n),a=!0}catch(f){a=!1}t.restore(c)}}if(e.obj&&a&&(r=t.enterObject()),a){if(null!==e.explicit){var u=this._decodeTag(t,e.explicit);if(t.isError(u))return u;t=u}var l,d=t.offset;if(null===e.use&&null===e.choice){e.any&&(c=t.save());var p=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(p))return p;e.any?i=t.raw(c):t=p}if(n&&n.track&&null!==e.tag&&n.track(t.path(),d,t.length,"tagged"),n&&n.track&&null!==e.tag&&n.track(t.path(),t.offset,t.length,"content"),e.any||(i=null===e.choice?this._decodeGeneric(e.tag,t,n):this._decodeChoice(t,n)),t.isError(i))return i;e.any||null!==e.choice||null===e.children||e.children.forEach(function(e){e._decode(t,n)}),!e.contains||"octstr"!==e.tag&&"bitstr"!==e.tag||(l=new _(i),i=this._getUse(e.contains,t._reporterState.obj)._decode(l,n))}return e.obj&&a&&(i=t.leaveObject(r)),null===e.key||null===i&&!0!==a?null!==o&&t.exitKey(o):t.leaveKey(o,e.key,i),i},s.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),i(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},s.prototype._decodeChoice=function(a,o){var s=this._baseState,c=null,u=!1;return Object.keys(s.choice).some(function(e){var t=a.save(),n=s.choice[e];try{var r=n._decode(a,o);if(a.isError(r))return!1;c={type:e,value:r},u=!0}catch(i){return a.restore(t),!1}return!0},this),u?c:a.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},s.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r["default"]||r["default"]!==e){var i=this._encodeValue(e,t,n);if(i!==undefined&&!this._skipDefault(i,t,n))return i}},s.prototype._encodeValue=function(r,i,e){var t=this._baseState;if(null===t.parent)return t.children[0]._encode(r,i||new d);var n=null;if(this.reporter=i,t.optional&&r===undefined){if(null===t["default"])return;r=t["default"]}var a,o,s=null,c=!1;if(t.any)n=this._createEncoderBuffer(r);else if(t.choice)n=this._encodeChoice(r,i);else if(t.contains)s=this._getUse(t.contains,e)._encode(r,i),c=!0;else if(t.children)s=t.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,i,r);if(null===e._baseState.key)return i.error("Child should have a key");var t=i.enterKey(e._baseState.key);if("object"!==l(r))return i.error("Child expected, but input is not object");var n=e._encode(r[e._baseState.key],i,r);return i.leaveKey(t),n},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===t.tag||"setof"===t.tag){if(!t.args||1!==t.args.length)return i.error("Too many args for : "+t.tag);if(!Array.isArray(r))return i.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,s=this._createEncoderBuffer(r.map(function(e){var t=this._baseState;return this._getUse(t.args[0],r)._encode(e,i)},u))}else null!==t.use?n=this._getUse(t.use,e)._encode(r,i):(s=this._encodePrimitive(t.tag,r),c=!0);return t.any||null!==t.choice||(a=null!==t.implicit?t.implicit:t.tag,o=null===t.implicit?"universal":"context",null===a?null===t.use&&i.error("Tag could be omitted only for .use()"):null===t.use&&(n=this._encodeComposite(a,c,o,s))),null!==t.explicit&&(n=this._encodeComposite(t.explicit,!1,"context",n)),n},s.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||i(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},s.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},s.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){"use strict";var r=n(126);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){"use strict";var r=t;r.der=n(127),r.pem=n(836)},function(e,t,n){"use strict";var r=n(1),d=n(15).Buffer,p=n(127);function i(e){p.call(this,e),this.enc="pem"}r(i,p),(e.exports=i).prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,o=-1,s=0;s<n.length;s++){var c=n[s].match(i);if(null!==c&&c[2]===r){if(-1!==a){if("END"!==c[1])break;o=s;break}if("BEGIN"!==c[1])break;a=s}}if(-1===a||-1===o)throw new Error("PEM section not found for: "+r);var u=n.slice(a+1,o).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new d(u,"base64");return p.prototype.decode.call(this,l,t)}},function(e,t,n){"use strict";var r=t;r.der=n(128),r.pem=n(838)},function(e,t,n){"use strict";var r=n(1),a=n(128);function i(e){a.call(this,e),this.enc="pem"}r(i,a),(e.exports=i).prototype.encode=function(e,t){for(var n=a.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],i=0;i<n.length;i+=64)r.push(n.slice(i,i+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";var r=n(46),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(a)}),u=r.define("RDNSequence",function(){this.seqof(c)}),l=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),p=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=r.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(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())}),_=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});e.exports=_},function(e){e.exports={"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(e,t,n){"use strict";var p=/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,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,_=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,h=n(842),g=n(129),m=n(2).Buffer;e.exports=function(e,t){var n,r,i,a,o,s,c,u,l=e.toString(),d=l.match(p);return u=d?(n="aes"+d[1],r=m.from(d[2],"hex"),i=m.from(d[3].replace(/[\r\n]/g,""),"base64"),a=h(t,r.slice(0,8),parseInt(d[1],10)).key,o=[],s=g.createDecipheriv(n,a,r),o.push(s.update(i)),o.push(s["final"]()),m.concat(o)):(c=l.match(_),new m(c[2].replace(/[\r\n]/g,""),"base64")),{tag:l.match(f)[1],data:u}}},function(e,t,n){"use strict";var f=n(2).Buffer,_=n(105);e.exports=function(e,t,n,r){if(f.isBuffer(e)||(e=f.from(e,"binary")),t&&(f.isBuffer(t)||(t=f.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=n/8,a=f.alloc(i),o=f.alloc(r||0),s=f.alloc(0);0<i||0<r;){var c=new _;c.update(s),c.update(e),t&&c.update(t),s=c.digest();var u,l,d,p=0;0<i&&(u=a.length-i,p=Math.min(i,s.length),s.copy(a,u,0,p),i-=p),p<s.length&&0<r&&(l=o.length-r,d=Math.min(r,s.length-p),s.copy(o,l,p,p+d),r-=d)}return s.fill(0),{key:a,iv:o}}},function(e,t,n){"use strict";var c=n(124),l=n(130),d=n(131),u=n(8),p=n(133),f=n(60),_=n(132),h=n(2).Buffer;e.exports=function(e,t,n){var r=e.padding?e.padding:n?1:4,i=c(e),a=i.modulus.byteLength();if(t.length>a||0<=new u(t).cmp(i.modulus))throw new Error("decryption error");s=n?_(new u(t),i):p(t,i);var o=h.alloc(a-s.length),s=h.concat([o,s],a);if(4===r)return function(e,t){var n=e.modulus.byteLength(),r=f("sha1").update(h.alloc(0)).digest(),i=r.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,i+1),o=t.slice(i+1),s=d(a,l(o,i)),c=d(o,l(s,n-i-1));if(function(e,t){e=h.from(e),t=h.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,c.slice(0,i)))throw new Error("decryption error");var u=i;for(;0===c[u];)u++;if(1===c[u++])return c.slice(u);throw new Error("decryption error")}(i,s);if(1===r)return function(e,t){var n=e.slice(0,2),r=2,i=0;for(;0!==e[r++];)if(r>=e.length){i++;break}var a=e.slice(2,r-1);("0002"!==n.toString("hex")&&!t||"0001"!==n.toString("hex")&&t)&&i++;a.length<8&&i++;if(i)throw new Error("decryption error");return e.slice(r)}(s,n);if(3===r)return s;throw new Error("unknown padding")}},function(e,t,n){"use strict";var r=n(19);"function"==typeof r.randomFill&&"function"==typeof r.randomFillSync?(t.randomFill=r.randomFill,t.randomFillSync=r.randomFillSync):e.exports=n(845)},function(e,n,f){"use strict";(function(i,o){function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=f(2),s=f(59),a=t.Buffer,r=t.kMaxLength,c=i.crypto||i.msCrypto,u=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(u<e||e<0)throw new TypeError("offset must be a uint32");if(r<e||t<e)throw new RangeError("offset out of range")}function d(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(u<e||e<0)throw new TypeError("size must be a uint32");if(n<e+t||r<e)throw new RangeError("buffer too small")}function p(n,r,e,i){if(o.browser){var t=n.buffer,a=new Uint8Array(t,r,e);return c.getRandomValues(a),i?void o.nextTick(function(){i(null,n)}):n}if(!i)return s(e).copy(n,r),n;s(e,function(e,t){return e?i(e):(t.copy(n,r),void i(null,n))})}c&&c.getRandomValues||!o.browser?(n.randomFill=function(e,t,n,r){if(!(a.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,n=e.length;else if("function"==typeof n)r=n,n=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return l(t,e.length),d(n,t,e.length),p(e,t,n,r)},n.randomFillSync=function(e,t,n){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(t,e.length),n===undefined&&(n=e.length-t);return d(n,t,e.length),p(e,t,n)}):(n.randomFill=e,n.randomFillSync=e)}).call(this,f(10),f(11))},function(e,w,V){"use strict";(function(l,a){function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function o(t){return typeof t}:function o(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(e)}var c,r=V(847).SourceMapConsumer,s=V(854);try{(c=V(!function(){var e=new Error("Cannot find module 'fs'");throw e.code="MODULE_NOT_FOUND",e}())).existsSync&&c.readFileSync||(c=null)}catch(A){}var i=V(855);function u(e,t){return e.require(t)}var d=!1,p=!1,f=!1,_="auto",h={},g={},m=/^data:application\/json[^,]+base64,/,y=[],b=[];function v(){return"browser"===_||"node"!==_&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function e(r){return function(e){for(var t=0;t<r.length;t++){var n=r[t](e);if(n)return n}return null}}var E=e(y);function I(e,t){if(!e)return t;var n=s.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",a=n.slice(i.length);return i&&/^\/\w\:/.test(a)?(i+="/")+s.resolve(n.slice(i.length),t).replace(/\\/g,"/"):i+s.resolve(n.slice(i.length),t)}y.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(e,t){return t?"":"/"})),e in h)return h[e];var t,n="";try{c?c.existsSync(e)&&(n=c.readFileSync(e,"utf8")):((t=new XMLHttpRequest).open("GET",e,!1),t.send(null),4===t.readyState&&200===t.status&&(n=t.responseText))}catch(r){}return h[e]=n});var T=e(b);function C(e){var t,i=g[e.source];if(i||((t=T(e.source))?(i=g[e.source]={url:t.url,map:new r(t.map)}).map.sourcesContent&&i.map.sources.forEach(function(e,t){var n,r=i.map.sourcesContent[t];r&&(n=I(i.url,e),h[n]=r)}):i=g[e.source]={url:null,map:null}),i&&i.map&&"function"==typeof i.map.originalPositionFor){var n=i.map.originalPositionFor(e);if(null!==n.source)return n.source=I(i.url,n.source),n}return e}function B(){var e,t,n,r="";this.isNative()?r="native":(!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(r=this.getEvalOrigin(),r+=", "),r+=e||"<anonymous>",null!=(t=this.getLineNumber())&&(r+=":"+t,(n=this.getColumnNumber())&&(r+=":"+n)));var i,a,o="",s=this.getFunctionName(),c=!0,u=this.isConstructor();return!(this.isToplevel()||u)?("[object Object]"===(i=this.getTypeName())&&(i="null"),a=this.getMethodName(),s?(i&&0!=s.indexOf(i)&&(o+=i+"."),o+=s,a&&s.indexOf("."+a)!=s.length-a.length-1&&(o+=" [as "+a+"]")):o+=i+"."+(a||"<anonymous>")):u?o+="new "+(s||"<anonymous>"):s?o+=s:(o+=r,c=!1),c&&(o+=" ("+r+")"),o}function x(t){var n={};return Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){n[e]=/^(?:is|get)/.test(e)?function(){return t[e].call(t)}:t[e]}),n.toString=B,n}function S(e,t){if(t===undefined&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test(l.version)?0:62;1===r&&a<i&&!v()&&!e.isEval()&&(i-=a);var o=C({source:n,line:r,column:i});t.curPosition=o;var s=(e=x(e)).getFunctionName;return e.getFunctionName=function(){return null!=t.nextPosition&&t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c&&(c=function u(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=C({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return(t=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+t[1]+" ("+u(t[2])+")":e}(c),(e=x(e)).getEvalOrigin=function(){return c}),e}function N(e,t){f&&(h={},g={});for(var n=(e.name||"Error")+": "+(e.message||""),r={nextPosition:null,curPosition:null},i=[],a=t.length-1;0<=a;a--)i.push("\n at "+S(t[a],r)),r.nextPosition=r.curPosition;return r.curPosition=r.nextPosition=null,n+i.reverse().join("")}function D(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],a=h[n];if(!a&&c&&c.existsSync(n))try{a=c.readFileSync(n,"utf8")}catch(s){a=""}if(a){var o=a.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(i).join(" ")+"^"}}return null}function k(){var a=l.emit;l.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,n=0<this.listeners(e).length;if(t&&!n)return i=D(r=arguments[1]),l.stderr._handle&&l.stderr._handle.setBlocking&&l.stderr._handle.setBlocking(!0),i&&(console.error(),console.error(i)),console.error(r.stack),void l.exit(1)}var r,i;return a.apply(this,arguments)}}b.push(function(e){var t,n,r=function(e){var t;if(v())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(s){}t=E(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);return r?(m.test(r)?(t=r.slice(r.indexOf(",")+1),n=i(t,"base64").toString(),r=e):(r=I(e,r),n=E(r)),n?{url:r,map:n}:null):null});var t=y.slice(0),n=b.slice(0);w.wrapCallSite=S,w.getErrorSource=D,w.mapSourcePosition=C,w.retrieveSourceMap=T,w.install=function(e){if((e=e||{}).environment&&(_=e.environment,-1===["node","browser","auto"].indexOf(_)))throw new Error("environment "+_+" was unknown. Available options are {auto, browser, node}");var t,n;if(e.retrieveFile&&(e.overrideRetrieveFile&&(y.length=0),y.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(b.length=0),b.unshift(e.retrieveSourceMap)),e.hookRequire&&!v()&&(t=u(a,"module"),(n=t.prototype._compile).__sourceMapSupport||(t.prototype._compile=function(e,t){return h[t]=e,g[t]=undefined,n.call(this,e,t)},t.prototype._compile.__sourceMapSupport=!0)),f=f||"emptyCacheBetweenOperations"in e&&e.emptyCacheBetweenOperations,d||(d=!0,Error.prepareStackTrace=N),!p){var r=!("handleUncaughtExceptions"in e)||e.handleUncaughtExceptions;try{!1===u(a,"worker_threads").isMainThread&&(r=!1)}catch(i){}r&&"object"===(void 0===l?"undefined":o(l))&&null!==l&&"function"==typeof l.on&&(p=!0,k())}},w.resetRetrieveHandlers=function(){y.length=0,b.length=0,y=t.slice(0),b=n.slice(0),T=e(b),E=e(y)}}).call(this,V(11),V(81)(e))},function(e,t,n){"use strict";t.SourceMapGenerator=n(134).SourceMapGenerator,t.SourceMapConsumer=n(850).SourceMapConsumer,t.SourceNode=n(853).SourceNode},function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){"use strict";var s=n(48);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,i,a,o;t=this._last,n=e,r=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,o=n.generatedColumn,r<i||i==r&&a<=o||s.compareByGeneratedPositionsInflated(t,n)<=0?this._last=e:this._sorted=!1,this._array.push(e)},r.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=r},function(e,t,n){"use strict";var b=n(48),c=n(851),p=n(136).ArraySet,v=n(135),E=n(852).quickSort;function o(e,t){var n=e;return"string"==typeof e&&(n=b.parseSourceMapInput(e)),new(null!=n.sections?r:f)(n,t)}function f(e,t){var n=e;"string"==typeof e&&(n=b.parseSourceMapInput(e));var r=b.getArg(n,"version"),i=b.getArg(n,"sources"),a=b.getArg(n,"names",[]),o=b.getArg(n,"sourceRoot",null),s=b.getArg(n,"sourcesContent",null),c=b.getArg(n,"mappings"),u=b.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o=o&&b.normalize(o),i=i.map(String).map(b.normalize).map(function(e){return o&&b.isAbsolute(o)&&b.isAbsolute(e)?b.relative(o,e):e}),this._names=p.fromArray(a.map(String),!0),this._sources=p.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(e){return b.computeSourceURL(o,e,t)}),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=u}function I(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function r(e,i){var t=e;"string"==typeof e&&(t=b.parseSourceMapInput(e));var n=b.getArg(t,"version"),r=b.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new p,this._names=new p;var a={line:-1,column:0};this._sections=r.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=b.getArg(e,"offset"),n=b.getArg(t,"line"),r=b.getArg(t,"column");if(n<a.line||n===a.line&&r<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=t,{generatedOffset:{generatedLine:n+1,generatedColumn:r+1},consumer:new o(b.getArg(e,"map"),i)}})}o.fromSourceMap=function(e,t){return f.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},o.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||o.GENERATED_ORDER){case o.GENERATED_ORDER:r=this._generatedMappings;break;case o.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=b.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},o.prototype.allGeneratedPositionsFor=function(e){var t=b.getArg(e,"line"),n={source:b.getArg(e,"source"),originalLine:t,originalColumn:b.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",b.compareByOriginalPositions,c.LEAST_UPPER_BOUND);if(0<=i){var a=this._originalMappings[i];if(e.column===undefined)for(var o=a.originalLine;a&&a.originalLine===o;)r.push({line:b.getArg(a,"generatedLine",null),column:b.getArg(a,"generatedColumn",null),lastColumn:b.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)r.push({line:b.getArg(a,"generatedLine",null),column:b.getArg(a,"generatedColumn",null),lastColumn:b.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return r},t.SourceMapConsumer=o,(f.prototype=Object.create(o.prototype)).consumer=o,f.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=b.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},f.fromSourceMap=function(e,t){var n=Object.create(f.prototype),r=n._names=p.fromArray(e._names.toArray(),!0),i=n._sources=p.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(e){return b.computeSourceURL(n.sourceRoot,e,t)});for(var a=e._mappings.toArray().slice(),o=n.__generatedMappings=[],s=n.__originalMappings=[],c=0,u=a.length;c<u;c++){var l=a[c],d=new I;d.generatedLine=l.generatedLine,d.generatedColumn=l.generatedColumn,l.source&&(d.source=i.indexOf(l.source),d.originalLine=l.originalLine,d.originalColumn=l.originalColumn,l.name&&(d.name=r.indexOf(l.name)),s.push(d)),o.push(d)}return E(n.__originalMappings,b.compareByOriginalPositions),n},f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),f.prototype._parseMappings=function(e,t){for(var n,r,i,a,o,s=1,c=0,u=0,l=0,d=0,p=0,f=e.length,_=0,h={},g={},m=[],y=[];_<f;)if(";"===e.charAt(_))s++,_++,c=0;else if(","===e.charAt(_))_++;else{for((n=new I).generatedLine=s,a=_;a<f&&!this._charIsMappingSeparator(e,a);a++);if(i=h[r=e.slice(_,a)])_+=r.length;else{for(i=[];_<a;)v.decode(e,_,g),o=g.value,_=g.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");h[r]=i}n.generatedColumn=c+i[0],c=n.generatedColumn,1<i.length&&(n.source=d+i[1],d+=i[1],n.originalLine=u+i[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+i[3],l=n.originalColumn,4<i.length&&(n.name=p+i[4],p+=i[4])),y.push(n),"number"==typeof n.originalLine&&m.push(n)}E(y,b.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,E(m,b.compareByOriginalPositions),this.__originalMappings=m},f.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return c.search(e,t,i,a)},f.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=Infinity}},f.prototype.originalPositionFor=function(e){var t={generatedLine:b.getArg(e,"line"),generatedColumn:b.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",b.compareByGeneratedPositionsDeflated,b.getArg(e,"bias",o.GREATEST_LOWER_BOUND));if(0<=n){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=b.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),i=b.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=b.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:b.getArg(r,"originalLine",null),column:b.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},f.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},f.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(0<=n)return this.sourcesContent[n];var r,i=e;if(null!=this.sourceRoot&&(i=b.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(r=b.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!r.path||"/"==r.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},f.prototype.generatedPositionFor=function(e){var t=b.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:b.getArg(e,"line"),originalColumn:b.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",b.compareByOriginalPositions,b.getArg(e,"bias",o.GREATEST_LOWER_BOUND));if(0<=r){var i=this._originalMappings[r];if(i.source===n.source)return{line:b.getArg(i,"generatedLine",null),column:b.getArg(i,"generatedColumn",null),lastColumn:b.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=f,(r.prototype=Object.create(o.prototype)).constructor=o,r.prototype._version=3,Object.defineProperty(r.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),r.prototype.originalPositionFor=function(e){var t={generatedLine:b.getArg(e,"line"),generatedColumn:b.getArg(e,"column")},n=c.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},r.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},r.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},r.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(b.getArg(e,"source"))){var r=n.consumer.generatedPositionFor(e);if(r)return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},r.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=r.consumer._sources.at(o.source),s=b.computeSourceURL(r.consumer.sourceRoot,s,this._sourceMapURL);this._sources.add(s),s=this._sources.indexOf(s);var c=null;o.name&&(c=r.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var u={source:s,generatedLine:o.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(r.generatedOffset.generatedLine===o.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}E(this.__generatedMappings,b.compareByGeneratedPositionsDeflated),E(this.__originalMappings,b.compareByOriginalPositions)},t.IndexedSourceMapConsumer=r},function(e,u,t){"use strict";u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.search=function(e,t,n,r){if(0===t.length)return-1;var i=function c(e,t,n,r,i,a){var o=Math.floor((t-e)/2)+e,s=i(n,r[o],!0);return 0===s?o:0<s?1<t-o?c(o,t,n,r,i,a):a==u.LEAST_UPPER_BOUND?t<r.length?t:-1:o:1<o-e?c(e,o,n,r,i,a):a==u.LEAST_UPPER_BOUND?o:e<0?-1:e}(-1,t.length,e,t,n,r||u.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;0<=i-1&&0===n(t[i],t[i-1],!0);)--i;return i}},function(e,t,n){"use strict";function l(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function d(e,t,n,r){if(n<r){var i=n-1;l(e,(c=n,u=r,Math.round(c+Math.random()*(u-c))),r);for(var a=e[r],o=n;o<r;o++)t(e[o],a)<=0&&l(e,i+=1,o);l(e,i+1,o);var s=i+1;d(e,t,n,s-1),d(e,t,s+1,r)}var c,u}t.quickSort=function(e,t){d(e,t,0,e.length-1)}},function(e,t,n){"use strict";var r=n(134).SourceMapGenerator,p=n(48),f=/(\r?\n)/,a="$$$isSourceNode$$$";function _(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[a]=!0,null!=r&&this.add(r)}_.fromStringWithSourceMap=function(e,n,r){var i=new _,a=e.split(f),o=0,s=function s(){return e()+(e()||"");function e(){return o<a.length?a[o++]:undefined}},c=1,u=0,l=null;return n.eachMapping(function(e){if(null!==l){if(!(c<e.generatedLine)){var t=(n=a[o]||"").substr(0,e.generatedColumn-u);return a[o]=n.substr(e.generatedColumn-u),u=e.generatedColumn,d(l,t),void(l=e)}d(l,s()),c++,u=0}for(;c<e.generatedLine;)i.add(s()),c++;var n;u<e.generatedColumn&&(n=a[o]||"",i.add(n.substr(0,e.generatedColumn)),a[o]=n.substr(e.generatedColumn),u=e.generatedColumn),l=e},this),o<a.length&&(l&&d(l,s()),i.add(a.splice(o).join(""))),n.sources.forEach(function(e){var t=n.sourceContentFor(e);null!=t&&(null!=r&&(e=p.join(r,e)),i.setSourceContent(e,t))}),i;function d(e,t){var n;null===e||e.source===undefined?i.add(t):(n=r?p.join(r,e.source):e.source,i.add(new _(e.originalLine,e.originalColumn,n,t,e.name)))}},_.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},_.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;0<=t;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},_.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},_.prototype.join=function(e){var t,n,r=this.children.length;if(0<r){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},_.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},_.prototype.setSourceContent=function(e,t){this.sourceContents[p.toSetString(e)]=t},_.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),t=0,n=r.length;t<n;t++)e(p.fromSetString(r[t]),this.sourceContents[r[t]])},_.prototype.toString=function(){var t="";return this.walk(function(e){t+=e}),t},_.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},a=new r(e),o=!1,s=null,c=null,u=null,l=null;return this.walk(function(e,t){i.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(s===t.source&&c===t.line&&u===t.column&&l===t.name||a.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name}),s=t.source,c=t.line,u=t.column,l=t.name,o=!0):o&&(a.addMapping({generated:{line:i.line,column:i.column}}),s=null,o=!1);for(var n=0,r=e.length;n<r;n++)10===e.charCodeAt(n)?(i.line++,i.column=0,n+1===r?(s=null,o=!1):o&&a.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name})):i.column++}),this.walkSourceContents(function(e,t){a.setSourceContent(e,t)}),{code:i.code,map:a}},t.SourceNode=_},function(e,u,t){"use strict";(function(i){function a(e,t){for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;)e.unshift("..");return e}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}u.resolve=function(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){var r=0<=n?arguments[n]:i.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=a(o(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},u.normalize=function(e){var t=u.isAbsolute(e),n="/"===r(e,-1);return(e=a(o(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},u.isAbsolute=function(e){return"/"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(o(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},u.relative=function(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;0<=n&&""===e[n];n--);return n<t?[]:e.slice(t,n-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),a=Math.min(r.length,i.length),o=a,s=0;s<a;s++)if(r[s]!==i[s]){o=s;break}for(var c=[],s=o;s<r.length;s++)c.push("..");return(c=c.concat(i.slice(o))).join("/")},u.sep="/",u.delimiter=":",u.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;1<=a;--a)if(47===e.charCodeAt(a)){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},u.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");for(var t=0,n=-1,r=!0,i=e.length-1;0<=i;--i)if(47===e.charCodeAt(i)){if(!r){t=i+1;break}}else-1===n&&(r=!1,n=i+1);return-1===n?"":e.slice(t,n)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},u.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;0<=o;--o){var s=e.charCodeAt(o);if(47===s){if(i)continue;n=o+1;break}-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1)}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,t(11))},function(e,t,n){"use strict";(function(i){var a=Object.prototype.toString,o="function"==typeof i.alloc&&"function"==typeof i.allocUnsafe&&"function"==typeof i.from;e.exports=function(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return r=e,"ArrayBuffer"===a.call(r).slice(8,-1)?function(e,t,n){t>>>=0;var r=e.byteLength-t;if(r<0)throw new RangeError("'offset' is out of bounds");if(n===undefined)n=r;else if(r<(n>>>=0))throw new RangeError("'length' is out of bounds");return o?i.from(e.slice(t,t+n)):new i(new Uint8Array(e.slice(t,t+n)))}(e,t,n):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return o?i.from(e,t):new i(e,t)}(e,t):o?i.from(e):new i(e);var r}}).call(this,n(15).Buffer)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";n(25)},function(e,t,n){"use strict";n(17)},function(e,t,n){"use strict";n(98)},function(e,t,n){"use strict";n(99)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(20)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(18)},function(e,t,n){"use strict";n(73)},function(e,t,n){"use strict";n(73)},function(e,t){Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0==i)return-1;var a=0|t;if(i<=a)return-1;for(n=Math.max(0<=a?a:i-Math.abs(a),0);n<i;){if(n in r&&r[n]===e)return n;n++}return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){"use strict";if(null==this)throw new TypeError;var t,n,r=Object(this),i=r.length>>>0;if(0==i)return-1;for(t=i-1,1<arguments.length&&((t=Number(arguments[1]))!=t?t=0:0!=t&&t!=1/0&&t!=-1/0&&(t=(0<t||-1)*Math.floor(Math.abs(t)))),n=0<=t?Math.min(t,i-1):i-Math.abs(t);0<=n;n--)if(n in r&&r[n]===e)return n;return-1})},function(e,t){var n;_global.console=_global.console||((n={}).log=n.warn=n.debug=n.info=n.error=n.time=n.dir=n.profile=n.clear=n.exception=n.trace=n.assert=function(){},n)},function(e,t){_global.localStorage||(_global.localStorage={items:{},setItem:function(e,t){BI.Cache.addCookie(e,t)},getItem:function(e){return BI.Cache.getCookie(e)},removeItem:function(e){BI.Cache.deleteCookie(e)},key:function(){},clear:function(){this.items={}}})},function(e,t){Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,n,r={__ob__:t,$accessors:t,$vbthis:t,$vbsetter:t},i=[];for(n in e)n in r||Object.prototype.hasOwnProperty.call(e,n)&&i.push(n);return i}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Date.now||(Date.now=function(){return(new Date).valueOf()})},function(e,t){"undefined"!=typeof Set&&Set.toString().match(/native code/)||(Set=function(){this.set={}},Set.prototype.has=function(e){return this.set[e]!==undefined},Set.prototype.add=function(e){this.set[e]=1},Set.prototype.clear=function(){this.set={}})},function(e,t){var o,n;n=window.navigator.userAgent.toLowerCase(),/msie/.test(n)&&(o=Array.prototype.sort,Array.prototype.sort=function(e){if(e&&"function"==typeof e){if(this.length<2)return this;for(var t,n,r=0,i=r+1,a=this.length;r<a;r++)for(i=r+1;i<a;i++)!0==0<("number"==typeof(n=e.call(this,this[r],this[i]))?n:n?1:0)&&(t=this[r],this[r]=this[i],this[i]=t);return this}return o.call(this)})},function(e,t,n){},function(e,t,n){},function(e,t){BI.prepares.push(function(){var e,i=function(){return null==e&&(e=!(!BI.isSupportCss3||!BI.isSupportCss3("flex"))),e};BI.Plugin.configWidget("bi.horizontal",function(e){var t=BI.isIE(),n=i();return t&&BI.getIEVersion()<8?e:e.horizontalAlign===BI.HorizontalAlign.Center||e.horizontalAlign===BI.HorizontalAlign.Stretch?BI.extend(e,{type:"bi.table_adapt"}):!t&&n?BI.extend(e,{type:"bi.flex_horizontal"}):e.horizontalAlign===BI.HorizontalAlign.Right?BI.extend({verticalAlign:BI.VerticalAlign.Top},e,{type:"bi.inline_vertical_adapt",items:e.items&&e.items.reverse()}):BI.extend(e,{type:"bi.table_adapt"})}),BI.Plugin.configWidget("bi.center_adapt",function(e){var t=BI.isIE(),n=i(),r=e.items&&e.items.length<=1;return!(!e.horizontalAlign||e.horizontalAlign===BI.HorizontalAlign.Center||e.horizontalAlign===BI.HorizontalAlign.Stretch)||r?!t&&n?BI.extend(e,{type:"bi.flex_center_adapt"}):e.horizontalAlign===BI.HorizontalAlign.Right?BI.extend(e,{type:"bi.inline_center_adapt",items:e.items&&e.items.reverse()}):BI.extend(e,{type:"bi.inline_center_adapt"}):e}),BI.Plugin.configWidget("bi.vertical_adapt",function(e){var t=BI.isIE(),n=i(),r=e.items&&e.items.length<=1;return!(e.horizontalAlign===BI.HorizontalAlign.Center||e.horizontalAlign===BI.HorizontalAlign.Stretch)||r?!t&&n?BI.extend(e,{type:"bi.flex_vertical_center_adapt"}):e.horizontalAlign===BI.HorizontalAlign.Right?BI.extend(e,{type:"bi.inline_vertical_adapt",items:e.items&&e.items.reverse()}):BI.extend(e,{type:"bi.inline_vertical_adapt"}):e}),BI.Plugin.configWidget("bi.horizontal_adapt",function(e){var t=e.items&&e.items.length<=1;return e.verticalAlign&&e.verticalAlign!==BI.VerticalAlign.TOP||!t?e:BI.extend(e,{type:"bi.horizontal_auto"})}),BI.Plugin.configWidget("bi.horizontal_float",function(e){return!BI.isIE()&&i()?BI.extend(e,{type:"bi.flex_horizontal_adapt"}):BI.extend(e,{type:"bi.inline_horizontal_adapt"})}),BI.Plugin.configWidget("bi.flex_horizontal",function(e){if(!0===e.scrollable||!0===e.scrolly)return BI.extend(e,{type:"bi.flex_scrollable_horizontal"})}),BI.Plugin.configWidget("bi.flex_vertical",function(e){if(!0===e.scrollable||!0===e.scrollx)return BI.extend(e,{type:"bi.flex_scrollable_vertical"})}),BI.Plugin.configWidget("bi.flex_horizontal_adapt",function(e){if(!0===e.scrollable||!0===e.scrollx)return BI.extend(e,{type:"bi.flex_scrollable_horizontal_adapt"})}),BI.Plugin.configWidget("bi.flex_vertical_adapt",function(e){if(!0===e.scrollable||!0===e.scrolly)return BI.extend(e,{type:"bi.flex_scrollable_vertical_adapt"})}),BI.Plugin.configWidget("bi.flex_horizontal_center_adapt",function(e){if(!0===e.scrollable||!0===e.scrollx)return BI.extend(e,{type:"bi.flex_scrollable_horizontal_adapt"})}),BI.Plugin.configWidget("bi.flex_vertical_center_adapt",function(e){if(!0===e.scrollable||!0===e.scrolly)return BI.extend(e,{type:"bi.flex_scrollable_vertical_adapt"})}),BI.Plugin.configWidget("bi.flex_center_adapt",function(e){if(!0===e.scrollable||!0===e.scrolly||!0===e.scrollx)return BI.extend(e,{type:"bi.flex_scrollable_center_adapt"})}),BI.Plugin.configWidget("bi.radio",function(e){return BI.isIE()&&BI.getIEVersion()<9?BI.extend(e,{type:"bi.image_radio"}):e}),BI.Plugin.configWidget("bi.checkbox",function(e){return BI.isIE()&&BI.getIEVersion()<9?BI.extend(e,{type:"bi.image_checkbox"}):e}),BI.Plugin.configWidget("bi.half_icon_button",function(e){return BI.isIE()&&BI.getIEVersion()<9?e:BI.extend(e,{type:"bi.half_button"})})})},function(e,t){!function(){var t,n,a=_global.document&&_global.document.attachEvent,o=!1;if(_global.document&&!a){var e=(n=_global.requestAnimationFrame||_global.mozRequestAnimationFrame||_global.webkitRequestAnimationFrame||function(e){return _global.setTimeout(e,20)},function(e){return n(e)}),r=(t=_global.cancelAnimationFrame||_global.mozCancelAnimationFrame||_global.webkitCancelAnimationFrame||_global.clearTimeout,function(e){return t(e)}),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},c=function(t){var n=this;s(this),this.__resizeRAF__&&r(this.__resizeRAF__),this.__resizeRAF__=e(function(){var e;(e=n).offsetWidth===e.__resizeLast__.width&&e.offsetHeight===e.__resizeLast__.height||(n.__resizeLast__.width=n.offsetWidth,n.__resizeLast__.height=n.offsetHeight,n.__resizeListeners__.forEach(function(e){e.call(n,t)}))})},i=!1,u="",l="animationstart",d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f="",_=document.createElement("fakeelement");if(_.style.animationName!==undefined&&(i=!0),!1===i)for(var h=0;h<d.length;h++)if(_.style[d[h]+"AnimationName"]!==undefined){f=d[h],u="-"+f.toLowerCase()+"-",l=p[h],i=!0;break}var g="resizeanim",m="@"+u+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=u+"animation: 1ms "+g+"; "}var b=function(t,e){var n,r,i;a?(t.attachEvent("onresize",e),BI.nextTick(e)):(t.__resizeTriggers__||("static"===getComputedStyle(t).position&&(t.style.position="relative"),o||(n=(m||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("style")).type="text/css",i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),r.appendChild(i),o=!0),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=document.createElement("div")).className="resize-triggers",t.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",c,!0),l&&t.__resizeTriggers__.addEventListener(l,function(e){e.animationName===g&&s(t)})),t.__resizeListeners__.push(e))},v=function(e,t){a?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",c),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))};BI.ResizeDetector={addResizeListener:function(e,t){return b(e.element[0],t),function(){v(e.element[0],t)}},removeResizeListener:function(e,t){v(e.element[0],t)}}}()},function(e,t){BI.DOM=BI.DOM||{},BI.extend(BI.DOM,{ready:function(e){BI.Widget._renderEngine.createElement(document).ready(e)}}),BI.extend(BI.DOM,{patchProps:function(e,r){var t=BI.jQuery._data(e[0]).events;BI.each(t,function(n,e){BI.each(e,function(e,t){r.on(n+(t.namespace?"."+t.namespace:""),t)})});var n=e.children(),i=r.children();if(n.length!==i.length)throw new Error("不匹配");BI.each(n,function(e,t){BI.DOM.patchProps(BI.jQuery(t),BI.jQuery(i[e]))}),BI.each(e.data("__widgets"),function(e,t){t.element=r})},hang:function(e){if(!BI.isEmpty(e)){var n=BI.Widget._renderEngine.createFragment();return BI.each(e,function(e,t){t instanceof BI.Widget&&(t=t.element),t instanceof BI.$&&t[0]&&n.appendChild(t[0])}),n}},isExist:function(e){return 0<BI.Widget._renderEngine.createElement("body").find(e.element).length},preloadImages:function(e,t){var n=0,r=[];function i(){++n>=e.length&&t()}BI.each(e,function(e,t){r[e]=new Image,r[e].src=t,r[e].onload=function(){i()},r[e].onerror=function(){i()}})},getTextSizeWidth:function(e,t){var n=BI.Widget._renderEngine.createElement("<span></span>").addClass("text-width-span").appendTo("body");null==t&&(t=12),t+="px",n.css("font-size",t).text(e);var r=n.width();return n.remove(),r},getTextSizeHeight:function(e,t){var n=BI.Widget._renderEngine.createElement("<span></span>").addClass("text-width-span").appendTo("body");null==t&&(t=12),t+="px",n.css("font-size",t).text(e);var r=n.height();return n.remove(),r},getScrollWidth:function(){var e;return!BI.isNull(this._scrollWidth)&&0!==this._scrollWidth||(e=BI.Widget._renderEngine.createElement("<div>").width(50).height(50).css({position:"absolute",top:"-9999px",overflow:"scroll"}).appendTo("body"),this._scrollWidth=e[0].offsetWidth-e[0].clientWidth,e.destroy()),this._scrollWidth},getImage:function(e,t,n){var r=document.createElement("canvas");BI.Widget._renderEngine.createElement("body").append(r);var i=r.getContext("2d");i.font="12px Georgia";var a=i.measureText(e).width+4;r.width=2*a,r.height=32,i.font="24px Georgia",i.fillStyle=t||"#3685f2",i.textBaseline="middle",i.fillText(e,4,18),BI.Widget._renderEngine.createElement(r).destroy();var o=n||"rgba(54, 133, 242, 0.1)";return{width:a,height:16,src:r.toDataURL("image/png"),style:"background-color: "+o+";vertical-align: middle; margin: 0 1px; width:"+a+"px;height: 16px; max-width:"+a+"px;max-height: 16px; min-width:"+a+"px;min-height: 16px",param:e}}}),BI.extend(BI.DOM,{isColor:function(e){return e&&(this.isRGBColor(e)||this.isHexColor(e))},isRGBColor:function(e){return!!e&&"rgb"===e.substr(0,3)},isHexColor:function(e){return!!e&&("#"===e[0]&&7===e.length)},isDarkColor:function(e){if(!e||!this.isHexColor(e))return!1;var t=this.rgb2json(this.hex2rgb(e));return Math.round(.299*t.r+.587*t.g+.114*t.b)<192},getContrastColor:function(e){return e&&this.isColor(e)?this.isDarkColor(e)?"#ffffff":"#1a1a1a":""},rgb2hex:function(e){if(!e||"rgb"!=e.substr(0,3))return"";var t=e.match(/\d+(\.\d+)?/g),n=BI.parseInt(t[0]),r=BI.parseInt(t[1]),i=BI.parseInt(t[2]);return"#"+this.int2hex(n)+this.int2hex(r)+this.int2hex(i)},rgb2json:function(e){if(!e)return{};if(!this.isRGBColor(e))return{};var t=e.match(/\d+(\.\d+)?/g);return{r:BI.parseInt(t[0]),g:BI.parseInt(t[1]),b:BI.parseInt(t[2])}},rgba2json:function(e){if(!e)return{};var t=e.match(/\d+(\.\d+)?/g);return{r:BI.parseInt(t[0]),g:BI.parseInt(t[1]),b:BI.parseInt(t[2]),a:BI.parseFloat(t[3])}},json2rgb:function(e){return BI.isKey(e.r)&&BI.isKey(e.g)&&BI.isKey(e.b)?"rgb("+e.r+","+e.g+","+e.b+")":""},json2rgba:function(e){return BI.isKey(e.r)&&BI.isKey(e.g)&&BI.isKey(e.b)?"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":""},int2hex:function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return t[e>>>4]+""+t[15&e]},hex2rgb:function(e){if(!e)return"";if(!this.isHexColor(e))return e;var t,n="rgb(";return 7===e.length?t=[BI.parseInt("0x"+e.substring(1,3)),BI.parseInt("0x"+e.substring(3,5)),BI.parseInt("0x"+e.substring(5,7))]:4===e.length&&(t=[BI.parseInt("0x"+e.substring(1,2)),BI.parseInt("0x"+e.substring(2,3)),BI.parseInt("0x"+e.substring(3,4))]),n+=t[0]+",",n+=t[1]+",",n+=t[2]+")"},rgba2rgb:function(e,t){if(BI.isNull(t)&&(t=1),"rgba"!=e.substr(0,4))return"";var n=e.match(/\d+(\.\d+)?/g);if(n.length<4)return"";var r=BI.parseFloat(n[0]),i=BI.parseFloat(n[1]),a=BI.parseFloat(n[2]),o=BI.parseFloat(n[3]);return"rgb("+Math.floor(t*(1-o)*255+r*o)+","+Math.floor(t*(1-o)*255+i*o)+","+Math.floor(t*(1-o)*255+a*o)+")"}}),BI.extend(BI.DOM,{getLeftPosition:function(e,t,n){return{left:e.element.offset().left-t.element.outerWidth()-(n||0)}},getInnerLeftPosition:function(e,t,n){return{left:e.element.offset().left+(n||0)}},getRightPosition:function(e,t,n){var r=e.element;return{left:r.offset().left+r.outerWidth()+(n||0)}},getInnerRightPosition:function(e,t,n){var r=e.element,i=t.element.bounds();return{left:r.offset().left+r.outerWidth()-i.width-(n||0)}},getTopPosition:function(e,t,n){return{top:e.element.offset().top-t.element.outerHeight()-(n||0)}},getBottomPosition:function(e,t,n){var r=e.element;return{top:r.offset().top+r.outerHeight()+(n||0)}},isLeftSpaceEnough:function(e,t,n){return 0<=BI.DOM.getLeftPosition(e,t,n).left},isInnerLeftSpaceEnough:function(e,t,n){var r=t.element.bounds(),i=BI.Widget._renderEngine.createElement("body").bounds();return BI.DOM.getInnerLeftPosition(e,t,n).left+r.width<=i.width},isRightSpaceEnough:function(e,t,n){var r=t.element.bounds(),i=BI.Widget._renderEngine.createElement("body").bounds();return BI.DOM.getRightPosition(e,t,n).left+r.width<=i.width},isInnerRightSpaceEnough:function(e,t,n){return 0<=BI.DOM.getInnerRightPosition(e,t,n).left},isTopSpaceEnough:function(e,t,n){return 0<=BI.DOM.getTopPosition(e,t,n).top},isBottomSpaceEnough:function(e,t,n){var r=t.element.bounds(),i=BI.Widget._renderEngine.createElement("body").bounds();return BI.DOM.getBottomPosition(e,t,n).top+r.height<=i.height},isRightSpaceLarger:function(e){return BI.Widget._renderEngine.createElement("body").bounds().width-e.element.offset().left-e.element.bounds().width>=e.element.offset().left},isBottomSpaceLarger:function(e){return BI.Widget._renderEngine.createElement("body").bounds().height-e.element.offset().top-e.element.bounds().height>=e.element.offset().top},getLeftAlignPosition:function(e,t,n){var r=t.element.bounds(),i=BI.Widget._renderEngine.createElement("body").bounds(),a=e.element.offset().left+n;return a+r.width>i.width&&(a=i.width-r.width),a<0&&(a=0),{left:a}},getLeftAdaptPosition:function(e,t,n){return BI.DOM.isLeftSpaceEnough(e,t,n)?BI.DOM.getLeftPosition(e,t,n):{left:0}},getRightAlignPosition:function(e,t,n){var r=e.element.bounds(),i=t.element.bounds(),a=e.element.offset().left+r.width-i.width-n;return a<0&&(a=0),{left:a}},getRightAdaptPosition:function(e,t,n){return BI.DOM.isRightSpaceEnough(e,t,n)?BI.DOM.getRightPosition(e,t,n):{left:BI.Widget._renderEngine.createElement("body").bounds().width-t.element.bounds().width}},getTopAlignPosition:function(e,t,n,r){var i,a,o=e.element.offset(),s=e.element.bounds(),c=t.element.bounds(),u=BI.Widget._renderEngine.createElement("body").bounds();return BI.DOM.isBottomSpaceEnough(e,t,-1*s.height+n)?i=o.top+n:r?(i=o.top+n,a=u.height-i):(i=u.height-c.height)<n&&(a=u.height-n),i<n&&(i=n),a?{top:i,adaptHeight:a}:{top:i}},getTopAdaptPosition:function(e,t,n,r){var i=t.element.bounds(),a=BI.Widget._renderEngine.createElement("body").bounds();return BI.DOM.isTopSpaceEnough(e,t,n)?BI.DOM.getTopPosition(e,t,n):r?{top:0,adaptHeight:e.element.offset().top-n}:i.height+n>a.height?{top:0,adaptHeight:a.height-n}:{top:0}},getBottomAlignPosition:function(e,t,n,r){var i,a,o=e.element.offset(),s=e.element.bounds(),c=t.element.bounds(),u=BI.Widget._renderEngine.createElement("body").bounds();return BI.DOM.isTopSpaceEnough(e,t,-1*s.height+n)?i=o.top+s.height-c.height-n:r?(i=0,a=o.top+s.height-n):(i=0,c.height+n>u.height&&(a=u.height-n)),i<0&&(i=0),a?{top:i,adaptHeight:a}:{top:i}},getBottomAdaptPosition:function(e,t,n,r){var i=e.element.offset(),a=e.element.bounds(),o=t.element.bounds(),s=BI.Widget._renderEngine.createElement("body").bounds();return BI.DOM.isBottomSpaceEnough(e,t,n)?BI.DOM.getBottomPosition(e,t,n):r?{top:i.top+a.height+n,adaptHeight:s.height-i.top-a.height-n}:o.height+n>s.height?{top:n,adaptHeight:s.height-n}:{top:s.height-o.height-n}},getCenterAdaptPosition:function(e,t){var n=e.element.offset(),r=e.element.bounds(),i=t.element.bounds(),a=BI.Widget._renderEngine.createElement("body").bounds(),o=n.left+r.width/2+i.width/2>a.width?a.width-i.width:n.left+r.width/2-i.width/2;return o<0&&(o=0),{left:o}},getMiddleAdaptPosition:function(e,t){var n=e.element.offset(),r=e.element.bounds(),i=t.element.bounds(),a=BI.Widget._renderEngine.createElement("body").bounds(),o=n.top+r.height/2+i.height/2>a.height?a.height-i.height:n.top+r.height/2-i.height/2;return o<0&&(o=0),{top:o}},getComboPositionByDirections:function(e,t,n,r,i,a){var o;n=n||0,r=r||0;for(var s,c,u,l=[],d=[],p=[],f=!1,_=!1,h=!1,g=a[0],m=0;m<a.length;m++)switch(o=a[m]){case"left":case"right":l.push(o);break;case"top":case"bottom":d.push(o);break;case"innerLeft":case"innerRight":p.push(o)}for(m=0;m<a.length;m++)switch(o=a[m]){case"left":if(!f){var y=_?r:n,b=_?0:r;if(BI.DOM.isLeftSpaceEnough(e,t,y))return s=BI.DOM.getLeftPosition(e,t,y).left,"bottom"===d[0]?(u=BI.DOM.getTopAlignPosition(e,t,b,i)).dir="left,bottom":(u=BI.DOM.getBottomAlignPosition(e,t,b,i)).dir="left,top",_&&(u.change="left"),u.left=s,u}h=!0;break;case"right":if(!f){y=_?r:n,b=_?n:r;if(BI.DOM.isRightSpaceEnough(e,t,y))return s=BI.DOM.getRightPosition(e,t,y).left,"bottom"===d[0]?(u=BI.DOM.getTopAlignPosition(e,t,b,i)).dir="right,bottom":(u=BI.DOM.getBottomAlignPosition(e,t,b,i)).dir="right,top",_&&(u.change="right"),u.left=s,u}h=!0;break;case"top":y=h?r:n,b=h?n:r;if(BI.DOM.isTopSpaceEnough(e,t,b))return c=BI.DOM.getTopPosition(e,t,b).top,"right"===l[0]?(u=BI.DOM.getLeftAlignPosition(e,t,y,i)).dir="top,right":(u=BI.DOM.getRightAlignPosition(e,t,y)).dir="top,left",h&&(u.change="top"),u.top=c,u;i&&(f=!0),_=!0;break;case"bottom":y=h?r:n,b=h?n:r;if(BI.DOM.isBottomSpaceEnough(e,t,b))return c=BI.DOM.getBottomPosition(e,t,b).top,"right"===l[0]?(u=BI.DOM.getLeftAlignPosition(e,t,y,i)).dir="bottom,right":(u=BI.DOM.getRightAlignPosition(e,t,y)).dir="bottom,left",h&&(u.change="bottom"),u.top=c,u;i&&(f=!0),_=!0;break;case"innerLeft":if(!f){y=_?r:n,b=_?0:r;if(BI.DOM.isInnerLeftSpaceEnough(e,t,y))return s=BI.DOM.getInnerLeftPosition(e,t,y).left,"bottom"===d[0]?(u=BI.DOM.getTopAlignPosition(e,t,b,i)).dir="innerLeft,bottom":(u=BI.DOM.getBottomAlignPosition(e,t,b,i)).dir="innerLeft,top",_&&(u.change="innerLeft"),u.left=s,u}h=!0;break;case"innerRight":if(!f){y=_?r:n,b=_?n:r;if(BI.DOM.isInnerRightSpaceEnough(e,t,y))return s=BI.DOM.getInnerRightPosition(e,t,y).left,"bottom"===d[0]?(u=BI.DOM.getTopAlignPosition(e,t,b,i)).dir="innerRight,bottom":(u=BI.DOM.getBottomAlignPosition(e,t,b,i)).dir="innerRight,top",_&&(u.change="innerRight"),u.left=s,u}}switch(a[0]){case"left":case"right":return(g=BI.DOM.isRightSpaceLarger(e)?(s=BI.DOM.getRightAdaptPosition(e,t,n).left,"right"):(s=BI.DOM.getLeftAdaptPosition(e,t,n).left,"left"),"bottom"===d[0])?((u=BI.DOM.getTopAlignPosition(e,t,r,i)).left=s,u.dir=g+",bottom",u):((u=BI.DOM.getBottomAlignPosition(e,t,r,i)).left=s,u.dir=g+",top",u);default:return(g=BI.DOM.isBottomSpaceLarger(e)?(u=BI.DOM.getBottomAdaptPosition(e,t,r,i),"bottom"):(u=BI.DOM.getTopAdaptPosition(e,t,r,i),"top"),"right"===l[0])?(s=BI.DOM.getLeftAlignPosition(e,t,n,i).left,u.left=s,u.dir=g+",right",u):(s=BI.DOM.getRightAlignPosition(e,t,n).left,u.left=s,u.dir=g+",left",u)}},getComboPosition:function(e,t,n,r,i,a,o){n=n||0,r=r||0;var s=BI.Widget._renderEngine.createElement("body").bounds().height-r,c=Math.min(t.attr("maxHeight")||s,s);t.resetHeight&&t.resetHeight(c);var u,l=BI.DOM.getComboPositionByDirections(e,t,n,r,i,a||["bottom","top","right","left"]);switch(o){case"center":l.change?(u=BI.DOM.getMiddleAdaptPosition(e,t),l.top=u.top):(u=BI.DOM.getCenterAdaptPosition(e,t),l.left=u.left);break;case"middle":l.change?(u=BI.DOM.getCenterAdaptPosition(e,t),l.left=u.left):(u=BI.DOM.getMiddleAdaptPosition(e,t),l.top=u.top)}return!0===i&&t.resetHeight&&t.resetHeight(Math.min(s-l.top,c)),l}})},function(e,t){BI.EventListener={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:BI.emptyFn}},registerDefault:function(){}}},function(e,t){_.extend(BI,{isIE:function(){return!!_global.navigator&&(null==this.__isIE&&(this.__isIE=/(msie|trident)/i.test(navigator.userAgent.toLowerCase())),this.__isIE)},getIEVersion:function(){if(!_global.navigator)return 0;if(null!=this.__IEVersion)return this.__IEVersion;var e=0,t=navigator.userAgent.toLowerCase(),n=t.match(/(?:msie\s([\w.]+))/),r=t.match(/(?:trident.*rv:([\w.]+))/),e=n&&r&&n[1]&&r[1]?Math.max(+n[1],+r[1]):n&&n[1]?+n[1]:r&&r[1]?+r[1]:0;return this.__IEVersion=e},isIE9Below:function(){return!!BI.isIE()&&this.getIEVersion()<9},isEdge:function(){return!!_global.navigator&&/edge/i.test(navigator.userAgent.toLowerCase())},isChrome:function(){return!!_global.navigator&&/chrome/i.test(navigator.userAgent.toLowerCase())},isFireFox:function(){return!!_global.navigator&&/firefox/i.test(navigator.userAgent.toLowerCase())},isOpera:function(){return!!_global.navigator&&/opera/i.test(navigator.userAgent.toLowerCase())},isSafari:function(){return!!_global.navigator&&(/safari/i.test(navigator.userAgent.toLowerCase())&&!/chrome/i.test(navigator.userAgent.toLowerCase()))},isKhtml:function(){return!!_global.navigator&&/Konqueror|Safari|KHTML/i.test(navigator.userAgent)},isMac:function(){return!!_global.navigator&&/macintosh|mac os x/i.test(navigator.userAgent)},isWindows:function(){return!!_global.navigator&&/windows|win32/i.test(navigator.userAgent)},isSupportCss3:function(e){if(!_global.document)return!1;for(var t,n=["webkit","Moz","ms","o"],r=[],i=document.documentElement.style,a=function(e){return BI.isString(e)?e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()}):""},o=0;o<n.length;o++)r.push(a(n[o]+"-"+e));for(r.push(a(e)),o=0,t=r.length;o<t;o++)if(r[o]in i)return!0;return!1}})},function(In,Tn,e){var Cn,t,n;t="undefined"!=typeof window?window:this,n=function(T,e){var d=[],h=T.document,l=d.slice,g=d.concat,s=d.push,i=d.indexOf,n={},t=n.toString,m=n.hasOwnProperty,y={},C=function(e,t){return new C.fn.init(e,t)},r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,a=/^-ms-/,o=/-([\da-z])/gi,c=function(e,t){return t.toUpperCase()};function u(e){var t=!!e&&"length"in e&&e.length,n=C.type(e);return"function"!==n&&!C.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}C.fn=C.prototype={jquery:"1.12.4",constructor:C,selector:"",length:0,toArray:function(){return l.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:l.call(this)},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){if(1<arguments.length)throw new Error("调用兼容出错");return C.each(this,e)},map:function(n){return this.pushStack(C.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:d.sort,splice:d.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[s]||{},s++),"object"==typeof o||C.isFunction(o)||(o={}),s===c&&(o=this,s--);s<c;s++)if(null!=(i=arguments[s]))for(r in i)e=o[r],o!==(n=i[r])&&(u&&n&&(C.isPlainObject(n)||(t=C.isArray(n)))?(a=t?(t=!1,e&&C.isArray(e)?e:[]):e&&C.isPlainObject(e)?e:{},o[r]=C.extend(u,a,n)):n!==undefined&&(o[r]=n));return o},C.extend({expando:"jQuery"+("1.12.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===C.type(e)},isArray:Array.isArray||function(e){return"array"===C.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!C.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==C.type(e)||e.nodeType||C.isWindow(e))return!1;try{if(e.constructor&&!m.call(e,"constructor")&&!m.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!y.ownFirst)for(t in e)return m.call(e,t);for(t in e);return t===undefined||m.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[t.call(e)]||"object":typeof e},globalEval:function(e){e&&C.trim(e)&&(T.execScript||function(e){T.eval.call(T,e)})(e)},camelCase:function(e){return e.replace(a,"ms-").replace(o,c)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(u(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(r,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(u(Object(e))?C.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(i)return i.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;t[r]!==undefined;)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!=o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,o=[];if(u(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&o.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&o.push(i);return g.apply([],o)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(i=e[t],t=e,e=i),C.isFunction(e)?(n=l.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(l.call(arguments)))}).guid=e.guid=e.guid||C.guid++,r):undefined},now:function(){return+new Date},support:y}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=d[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){var e,h,v,a,i,E,d,g,I,c,u,T,C,o,B,m,s,l,y,x="sizzle"+ +new Date,b=n.document,S=0,r=0,p=ie(),f=ie(),N=ie(),_=function(e,t){return e===t&&(u=!0),0},D={}.hasOwnProperty,t=[],k=t.pop,A=t.push,w=t.push,V=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O="\\["+M+"*("+F+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+M+"*\\]",R=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",H=new RegExp(M+"+","g"),j=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),W=new RegExp("^"+M+"*,"+M+"*"),G=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),Y=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),J=new RegExp(R),z=new RegExp("^"+F+"$"),U={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,$=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),te=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)},ne=function(){T()};try{w.apply(t=V.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(me){w={apply:t.length?function(e,t){A.apply(e,V.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function re(e,t,n,r){var i,a,o,s,c,u,l,d,p=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!r&&((t?t.ownerDocument||t:b)!==C&&T(t),t=t||C,B)){if(11!==f&&(u=q.exec(e)))if(i=u[1]){if(9===f){if(!(o=t.getElementById(i)))return n;if(o.id===i)return n.push(o),n}else if(p&&(o=p.getElementById(i))&&y(t,o)&&o.id===i)return n.push(o),n}else{if(u[2])return w.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&h.getElementsByClassName&&t.getElementsByClassName)return w.apply(n,t.getElementsByClassName(i)),n}if(h.qsa&&!N[e+" "]&&(!m||!m.test(e))){if(1!==f)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace($,"\\$&"):t.setAttribute("id",s=x),a=(l=E(e)).length,c=z.test(s)?"#"+s:"[id='"+s+"']";a--;)l[a]=c+" "+pe(l[a]);d=l.join(","),p=Q.test(e)&&le(t.parentNode)||t}if(d)try{return w.apply(n,p.querySelectorAll(d)),n}catch(_){}finally{s===x&&t.removeAttribute("id")}}}return g(e.replace(j,"$1"),t,n,r)}function ie(){var n=[];function r(e,t){return n.push(e+" ")>v.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function ae(e){return e[x]=!0,e}function oe(e){var t=C.createElement("div");try{return!!e(t)}catch(me){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var n=e.split("|"),r=n.length;r--;)v.attrHandle[n[r]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(o){return ae(function(a){return a=+a,ae(function(e,t){for(var n,r=o([],e.length,a),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function le(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in h=re.support={},i=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},T=re.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:b;return r!==C&&9===r.nodeType&&r.documentElement&&(o=(C=r).documentElement,B=!i(C),(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ne,!1):n.attachEvent&&n.attachEvent("onunload",ne)),h.attributes=oe(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=oe(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=X.test(C.getElementsByClassName),h.getById=oe(function(e){return o.appendChild(e).id=x,!C.getElementsByName||!C.getElementsByName(x).length}),h.getById?(v.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&B){var n=t.getElementById(e);return n?[n]:[]}},v.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete v.find.ID,v.filter.ID=function(e){var n=e.replace(ee,te);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),v.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"!==e)return a;for(;n=a[i++];)1===n.nodeType&&r.push(n);return r},v.find.CLASS=h.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&B)return t.getElementsByClassName(e)},s=[],m=[],(h.qsa=X.test(C.querySelectorAll))&&(oe(function(e){o.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),oe(function(e){var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(h.matchesSelector=X.test(l=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&oe(function(e){h.disconnectedMatch=l.call(e,"div"),l.call(e,"[s!='']:x"),s.push("!=",R)}),m=m.length&&new RegExp(m.join("|")),s=s.length&&new RegExp(s.join("|")),t=X.test(o.compareDocumentPosition),y=t||X.test(o.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===b&&y(b,e)?-1:t===C||t.ownerDocument===b&&y(b,t)?1:c?P(c,e)-P(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e===C?-1:t===C?1:i?-1:a?1:c?P(c,e)-P(c,t):0;if(i===a)return ce(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?ce(o[r],s[r]):o[r]===b?-1:s[r]===b?1:0}),C},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),t=t.replace(Y,"='$1']"),h.matchesSelector&&B&&!N[t+" "]&&(!s||!s.test(t))&&(!m||!m.test(t)))try{var n=l.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(me){}return 0<re(t,C,null,[e]).length},re.contains=function(e,t){return(e.ownerDocument||e)!==C&&T(e),y(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==C&&T(e);var n=v.attrHandle[t.toLowerCase()],r=n&&D.call(v.attrHandle,t.toLowerCase())?n(e,t,!B):undefined;return r!==undefined?r:h.attributes||!B?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,n=[],r=0,i=0;if(u=!h.detectDuplicates,c=!h.sortStable&&e.slice(0),e.sort(_),u){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return c=null,e},a=re.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(v=re.selectors={cacheLength:50,createPseudo:ae,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&J.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=re.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(H," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(_,e,t,h,g){var m="nth"!==_.slice(0,3),y="last"!==_.slice(-4),b="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,a,o,s,c,u=m!=y?"nextSibling":"previousSibling",l=e.parentNode,d=b&&e.nodeName.toLowerCase(),p=!n&&!b,f=!1;if(l){if(m){for(;u;){for(o=e;o=o[u];)if(b?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;c=u="only"===_&&!c&&"nextSibling"}return!0}if(c=[y?l.firstChild:l.lastChild],y&&p){for(f=(s=(r=(i=(a=(o=l)[x]||(o[x]={}))[o.uniqueID]||(a[o.uniqueID]={}))[_]||[])[0]===S&&r[1])&&r[2],o=s&&l.childNodes[s];o=++s&&o&&o[u]||(f=s=0)||c.pop();)if(1===o.nodeType&&++f&&o===e){i[_]=[S,s,f];break}}else if(p&&(f=s=(r=(i=(a=(o=e)[x]||(o[x]={}))[o.uniqueID]||(a[o.uniqueID]={}))[_]||[])[0]===S&&r[1]),!1===f)for(;(o=++s&&o&&o[u]||(f=s=0)||c.pop())&&((b?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++f||(p&&((i=(a=o[x]||(o[x]={}))[o.uniqueID]||(a[o.uniqueID]={}))[_]=[S,f]),o!==e)););return(f-=g)===h||f%h==0&&0<=f/h}}},PSEUDO:function(e,a){var t,o=v.pseudos[e]||v.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[x]?o(a):1<o.length?(t=[e,e,"",a],v.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,t){for(var n,r=o(e,a),i=r.length;i--;)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return o(e,0,t)}):o}},pseudos:{not:ae(function(e){var r=[],i=[],s=d(e.replace(j,"$1"));return s[x]?ae(function(e,t,n,r){for(var i,a=s(e,null,r,[]),o=e.length;o--;)(i=a[o])&&(e[o]=!(t[o]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:ae(function(t){return function(e){return 0<re(t,e).length}}),contains:ae(function(t){return t=t.replace(ee,te),function(e){return-1<(e.textContent||e.innerText||a(e)).indexOf(t)}}),lang:ae(function(n){return z.test(n||"")||re.error("unsupported lang: "+n),n=n.replace(ee,te).toLowerCase(),function(e){var t;do{if(t=B?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===o},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!v.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ue(function(){return[0]}),last:ue(function(e,t){return[t-1]}),eq:ue(function(e,t,n){return[n<0?n+t:n]}),even:ue(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ue(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ue(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:ue(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=v.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})v.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function de(){}function pe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function fe(s,e,t){var c=e.dir,u=t&&"parentNode"===c,l=r++;return e.first?function(e,t,n){for(;e=e[c];)if(1===e.nodeType||u)return s(e,t,n)}:function(e,t,n){var r,i,a,o=[S,l];if(n){for(;e=e[c];)if((1===e.nodeType||u)&&s(e,t,n))return!0}else for(;e=e[c];)if(1===e.nodeType||u){if((r=(i=(a=e[x]||(e[x]={}))[e.uniqueID]||(a[e.uniqueID]={}))[c])&&r[0]===S&&r[1]===l)return o[2]=r[2];if((i[c]=o)[2]=s(e,t,n))return!0}}}function _e(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function he(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,u=null!=t;s<c;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),u&&t.push(s)));return o}function ge(f,_,h,g,m,e){return g&&!g[x]&&(g=ge(g)),m&&!m[x]&&(m=ge(m,e)),ae(function(e,t,n,r){var i,a,o,s=[],c=[],u=t.length,l=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)re(e,t[r],n);return n}(_||"*",n.nodeType?[n]:n,[]),d=!f||!e&&_?l:he(l,s,f,n,r),p=h?m||(e?f:u||g)?[]:t:d;if(h&&h(d,p,n,r),g)for(i=he(p,c),g(i,[],n,r),a=i.length;a--;)(o=i[a])&&(p[c[a]]=!(d[c[a]]=o));if(e){if(m||f){if(m){for(i=[],a=p.length;a--;)(o=p[a])&&i.push(d[a]=o);m(null,p=[],i,r)}for(a=p.length;a--;)(o=p[a])&&-1<(i=m?P(e,o):s[a])&&(e[i]=!(t[i]=o))}}else p=he(p===t?p.splice(u,p.length):p),m?m(null,t,p,r):w.apply(t,p)})}return de.prototype=v.filters=v.pseudos,v.setFilters=new de,E=re.tokenize=function(e,t){var n,r,i,a,o,s,c,u=f[e+" "];if(u)return t?0:u.slice(0);for(o=e,s=[],c=v.preFilter;o;){for(a in n&&!(r=W.exec(o))||(r&&(o=o.slice(r[0].length)||o),s.push(i=[])),n=!1,(r=G.exec(o))&&(n=r.shift(),i.push({value:n,type:r[0].replace(j," ")}),o=o.slice(n.length)),v.filter)!(r=U[a].exec(o))||c[a]&&!(r=c[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),o=o.slice(n.length));if(!n)break}return t?o.length:o?re.error(e):f(e,s).slice(0)},d=re.compile=function(e,t){var n,g,m,y,b,r,i=[],a=[],o=N[e+" "];if(!o){for(n=(t=t||E(e)).length;n--;)(o=function d(e){for(var i,t,n,r=e.length,a=v.relative[e[0].type],o=a||v.relative[" "],s=a?1:0,c=fe(function(e){return e===i},o,!0),u=fe(function(e){return-1<P(i,e)},o,!0),l=[function(e,t,n){var r=!a&&(n||t!==I)||((i=t).nodeType?c:u)(e,t,n);return i=null,r}];s<r;s++)if(t=v.relative[e[s].type])l=[fe(_e(l),t)];else{if((t=v.filter[e[s].type].apply(null,e[s].matches))[x]){for(n=++s;n<r&&!v.relative[e[n].type];n++);return ge(1<s&&_e(l),1<s&&pe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(j,"$1"),t,s<n&&d(e.slice(s,n)),n<r&&d(e=e.slice(n)),n<r&&pe(e))}l.push(t)}return _e(l)}(t[n]))[x]?i.push(o):a.push(o);(o=N(e,(g=a,y=0<(m=i).length,b=0<g.length,r=function(e,t,n,r,i){var a,o,s,c=0,u="0",l=e&&[],d=[],p=I,f=e||b&&v.find.TAG("*",i),_=S+=null==p?1:Math.random()||.1,h=f.length;for(i&&(I=t===C||t||i);u!==h&&null!=(a=f[u]);u++){if(b&&a){for(o=0,t||a.ownerDocument===C||(T(a),n=!B);s=g[o++];)if(s(a,t||C,n)){r.push(a);break}i&&(S=_)}y&&((a=!s&&a)&&c--,e&&l.push(a))}if(c+=u,y&&u!==c){for(o=0;s=m[o++];)s(l,d,t,n);if(e){if(0<c)for(;u--;)l[u]||d[u]||(d[u]=k.call(r));d=he(d)}w.apply(r,d),i&&!e&&0<d.length&&1<c+m.length&&re.uniqueSort(r)}return i&&(S=_,I=p),l},y?ae(r):r))).selector=e}return o},g=re.select=function(e,t,n,r){var i,a,o,s,c,u="function"==typeof e&&e,l=!r&&E(e=u.selector||e);if(n=n||[],1===l.length){if(2<(a=l[0]=l[0].slice(0)).length&&"ID"===(o=a[0]).type&&h.getById&&9===t.nodeType&&B&&v.relative[a[1].type]){if(!(t=(v.find.ID(o.matches[0].replace(ee,te),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=U.needsContext.test(e)?0:a.length;i--&&(o=a[i],!v.relative[s=o.type]);)if((c=v.find[s])&&(r=c(o.matches[0].replace(ee,te),Q.test(a[0].type)&&le(t.parentNode)||t))){if(a.splice(i,1),!(e=r.length&&pe(a)))return w.apply(n,r),n;break}}return(u||d(e,l))(r,t,!B,n,!t||Q.test(e)&&le(t.parentNode)||t),n},h.sortStable=x.split("").sort(_).join("")===x,h.detectDuplicates=!!u,T(),h.sortDetached=oe(function(e){return 1&e.compareDocumentPosition(C.createElement("div"))}),oe(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||se("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&oe(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||se("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),oe(function(e){return null==e.getAttribute("disabled")})||se(L,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),re}(T);C.find=p,C.expr=p.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=p.uniqueSort,C.text=p.getText,C.isXMLDoc=p.isXML,C.contains=p.contains;var f=function(e,t,n){for(var r=[],i=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},b=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},v=C.expr.match.needsContext,E=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,I=/^.[^:#\[\.,]*$/;function B(e,n,r){if(C.isFunction(n))return C.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return C.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(I.test(n))return C.filter(n,e,r);n=C.filter(n,e)}return C.grep(e,function(e){return-1<C.inArray(e,n)!==r})}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<i;t++)if(C.contains(r[t],this))return!0}));for(t=0;t<i;t++)C.find(e,r[t],n);return(n=this.pushStack(1<i?C.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(B(this,e||[],!1))},not:function(e){return this.pushStack(B(this,e||[],!0))},is:function(e){return!!B(this,"string"==typeof e&&v.test(e)?C(e):e||[],!1).length}});var x,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||x,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):C.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(C):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),C.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:h,!0)),E.test(r[1])&&C.isPlainObject(t))for(r in t)C.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if((i=h.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return x.find(e);this.length=1,this[0]=i}return this.context=h,this.selector=e,this}).prototype=C.fn,x=C(h);var N=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function k(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t,n=C(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(C.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,a=[],o=v.test(e)||"string"!=typeof e?C(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?-1<o.index(n):1===n.nodeType&&C.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(1<a.length?C.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?C.inArray(this[0],C(e)):C.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return f(e,"parentNode")},parentsUntil:function(e,t,n){return f(e,"parentNode",n)},next:function(e){return k(e,"nextSibling")},prev:function(e){return k(e,"previousSibling")},nextAll:function(e){return f(e,"nextSibling")},prevAll:function(e){return f(e,"previousSibling")},nextUntil:function(e,t,n){return f(e,"nextSibling",n)},prevUntil:function(e,t,n){return f(e,"previousSibling",n)},siblings:function(e){return b((e.parentNode||{}).firstChild,e)},children:function(e){return b(e.firstChild)},contents:function(e){return C.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:C.merge([],e.childNodes)}},function(r,i){C.fn[r]=function(e,t){var n=C.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=C.filter(t,n)),1<this.length&&(D[r]||(n=C.uniqueSort(n)),N.test(r)&&(n=n.reverse())),this.pushStack(n)}});var A,w,V=/\S+/g;function P(){h.addEventListener?(h.removeEventListener("DOMContentLoaded",L),T.removeEventListener("load",L)):(h.detachEvent("onreadystatechange",L),T.detachEvent("onload",L))}function L(){!h.addEventListener&&"load"!==T.event.type&&"complete"!==h.readyState||(P(),C.ready())}for(w in C.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},C.each(e.match(V)||[],function(e,t){n[t]=!0}),n):C.extend({},r);var i,t,a,o,s=[],c=[],u=-1,l=function(){for(o=r.once,a=i=!0;c.length;u=-1)for(t=c.shift();++u<s.length;)!1===s[u].apply(t[0],t[1])&&r.stopOnFalse&&(u=s.length,t=!1);r.memory||(t=!1),i=!1,o&&(s=t?[]:"")},d={add:function(){return s&&(t&&!i&&(u=s.length-1,c.push(t)),function n(e){C.each(e,function(e,t){C.isFunction(t)?r.unique&&d.has(t)||s.push(t):t&&t.length&&"string"!==C.type(t)&&n(t)})}(arguments),t&&!i&&l()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;-1<(n=C.inArray(t,s,n));)s.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<C.inArray(e,s):0<s.length},empty:function(){return s=s&&[],this},disable:function(){return o=c=[],s=t="",this},disabled:function(){return!s},lock:function(){return o=!0,t||d.disable(),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),i||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},C.extend({Deferred:function(e){var a=[["resolve","done",C.Callbacks("once memory"),"resolved"],["reject","fail",C.Callbacks("once memory"),"rejected"],["notify","progress",C.Callbacks("memory")]],i="pending",o={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var i=arguments;return C.Deferred(function(r){C.each(a,function(e,t){var n=C.isFunction(i[e])&&i[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&C.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this===o?r.promise():this,n?[e]:arguments)})}),i=null}).promise()},promise:function(e){return null!=e?C.extend(e,o):o}},s={};return o.pipe=o.then,C.each(a,function(e,t){var n=t[2],r=t[3];o[t[1]]=n.add,r&&n.add(function(){i=r},a[1^e][2].disable,a[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?o:this,arguments),this},s[t[0]+"With"]=n.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(e){var i,t,n,r=0,a=l.call(arguments),o=a.length,s=1!==o||e&&C.isFunction(e.promise)?o:0,c=1===s?e:C.Deferred(),u=function(t,n,r){return function(e){n[t]=this,r[t]=1<arguments.length?l.call(arguments):e,r===i?c.notifyWith(n,r):--s||c.resolveWith(n,r)}};if(1<o)for(i=new Array(o),t=new Array(o),n=new Array(o);r<o;r++)a[r]&&C.isFunction(a[r].promise)?a[r].promise().progress(u(r,t,i)).done(u(r,n,a)).fail(c.reject):--s;return s||c.resolveWith(n,a),c.promise()}}),C.fn.ready=function(e){return C.ready.promise().done(e),this},C.extend({isReady:!1,readyWait:1,holdReady:function(e){e?C.readyWait++:C.ready(!0)},ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0)!==e&&0<--C.readyWait||(A.resolveWith(h,[C]),C.fn.triggerHandler&&(C(h).triggerHandler("ready"),C(h).off("ready")))}}),C.ready.promise=function(e){if(!A)if(A=C.Deferred(),"complete"===h.readyState||"loading"!==h.readyState&&!h.documentElement.doScroll)T.setTimeout(C.ready);else if(h.addEventListener)h.addEventListener("DOMContentLoaded",L),T.addEventListener("load",L);else{h.attachEvent("onreadystatechange",L),T.attachEvent("onload",L);var t=!1;try{t=null==T.frameElement&&h.documentElement}catch(n){}t&&t.doScroll&&!function r(){if(!C.isReady){try{t.doScroll("left")}catch(n){return T.setTimeout(r,50)}P(),C.ready()}}()}return A.promise(e)},C.ready.promise(),C(y))break;y.ownFirst="0"===w,y.inlineBlockNeedsLayout=!1,C(function(){var e,t,n,r=h.getElementsByTagName("body")[0];r&&r.style&&(t=h.createElement("div"),(n=h.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(n).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",y.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(r.style.zoom=1)),r.removeChild(n))}),function(){var e=h.createElement("div");y.deleteExpando=!0;try{delete e.test}catch(t){y.deleteExpando=!1}e=null}();var M,F=function(e){var t=C.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},O=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/([A-Z])/g;function H(e,t,n){if(n===undefined&&1===e.nodeType){var r="data-"+t.replace(R,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:O.test(n)?C.parseJSON(n):n)}catch(i){}C.data(e,t,n)}else n=undefined}return n}function j(e){var t;for(t in e)if(("data"!==t||!C.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}function W(e,t,n,r){if(F(e)){var i,a,o=C.expando,s=e.nodeType,c=s?C.cache:e,u=s?e[o]:e[o]&&o;if(u&&c[u]&&(r||c[u].data)||n!==undefined||"string"!=typeof t)return c[u=u||(s?e[o]=d.pop()||C.guid++:o)]||(c[u]=s?{}:{toJSON:C.noop}),"object"!=typeof t&&"function"!=typeof t||(r?c[u]=C.extend(c[u],t):c[u].data=C.extend(c[u].data,t)),a=c[u],r||(a.data||(a.data={}),a=a.data),n!==undefined&&(a[C.camelCase(t)]=n),"string"==typeof t?null==(i=a[t])&&(i=a[C.camelCase(t)]):i=a,i}}function G(e,t,n){if(F(e)){var r,i,a=e.nodeType,o=a?C.cache:e,s=a?e[C.expando]:C.expando;if(o[s]){if(t&&(r=n?o[s]:o[s].data)){i=(t=C.isArray(t)?t.concat(C.map(t,C.camelCase)):t in r||(t=C.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!j(r):!C.isEmptyObject(r))return}(n||(delete o[s].data,j(o[s])))&&(a?C.cleanData([e],!0):y.deleteExpando||o!=o.window?delete o[s]:o[s]=undefined)}}}C.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?C.cache[e[C.expando]]:e[C.expando])&&!j(e)},data:function(e,t,n){return W(e,t,n)},removeData:function(e,t){return G(e,t)},_data:function(e,t,n){return W(e,t,n,!0)},_removeData:function(e,t){return G(e,t,!0)}}),C.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(e!==undefined)return"object"==typeof e?this.each(function(){C.data(this,e)}):1<arguments.length?this.each(function(){C.data(this,e,t)}):a?H(a,e,C.data(a,e)):undefined;if(this.length&&(i=C.data(a),1===a.nodeType&&!C._data(a,"parsedAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&H(a,r=C.camelCase(r.slice(5)),i[r]);C._data(a,"parsedAttrs",!0)}return i},removeData:function(e){return this.each(function(){C.removeData(this,e)})}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=C._data(e,t),n&&(!r||C.isArray(n)?r=C._data(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),a=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,function(){C.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return C._data(e,n)||C._data(e,n,{empty:C.Callbacks("once memory").add(function(){C._removeData(e,t+"queue"),C._removeData(e,n)})})}}),C.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):n===undefined?this:this.each(function(){var e=C.queue(this,t,n);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=C.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";o--;)(n=C._data(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}}),y.shrinkWrapBlocks=function(){return null!=M?M:(M=!1,(t=h.getElementsByTagName("body")[0])&&t.style?(e=h.createElement("div"),(n=h.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(h.createElement("div")).style.width="5px",M=3!==e.offsetWidth),t.removeChild(n),M):void 0);var e,t,n};var Y=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,J=new RegExp("^(?:([+-])=|)("+Y+")([a-z%]*)$","i"),z=["Top","Right","Bottom","Left"],U=function(e,t){return e=t||e,"none"===C.css(e,"display")||!C.contains(e.ownerDocument,e)};function K(e,t,n,r){var i,a=1,o=20,s=r?function(){return r.cur()}:function(){return C.css(e,t,"")},c=s(),u=n&&n[3]||(C.cssNumber[t]?"":"px"),l=(C.cssNumber[t]||"px"!==u&&+c)&&J.exec(C.css(e,t));if(l&&l[3]!==u)for(u=u||l[3],n=n||[],l=+c||1;l/=a=a||".5",C.style(e,t,l+u),a!==(a=s()/c)&&1!==a&&--o;);return n&&(l=+l||+c||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}var Z,X,q,Q=function(e,t,n,r,i,a,o){var s=0,c=e.length,u=null==n;if("object"===C.type(n))for(s in i=!0,n)Q(e,t,s,n[s],!0,a,o);else if(r!==undefined&&(i=!0,C.isFunction(r)||(o=!0),u&&(t=o?(t.call(e,r),null):(u=t,function(e,t,n){return u.call(C(e),n)})),t))for(;s<c;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):c?t(e[0],n):a},$=/^(?:checkbox|radio)$/i,ee=/<([\w:-]+)/,te=/^$|\/(?:java|ecma)script/i,ne=/^\s+/,re="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ie(e){var t=re.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}Z=h.createElement("div"),X=h.createDocumentFragment(),q=h.createElement("input"),Z.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",y.leadingWhitespace=3===Z.firstChild.nodeType,y.tbody=!Z.getElementsByTagName("tbody").length,y.htmlSerialize=!!Z.getElementsByTagName("link").length,y.html5Clone="<:nav></:nav>"!==h.createElement("nav").cloneNode(!0).outerHTML,q.type="checkbox",q.checked=!0,X.appendChild(q),y.appendChecked=q.checked,Z.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!Z.cloneNode(!0).lastChild.defaultValue,X.appendChild(Z),(q=h.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),Z.appendChild(q),y.checkClone=Z.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!!Z.addEventListener,Z[C.expando]=1,y.attributes=!Z.getAttribute(C.expando);var ae={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:y.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function oe(e,t){var n,r,i=0,a="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!a)for(a=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||C.nodeName(r,t)?a.push(r):C.merge(a,oe(r,t));return t===undefined||t&&C.nodeName(e,t)?C.merge([e],a):a}function se(e,t){for(var n,r=0;null!=(n=e[r]);r++)C._data(n,"globalEval",!t||C._data(t[r],"globalEval"))}ae.optgroup=ae.option,ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td;var ce=/<|&#?\w+;/,ue=/<tbody/i;function le(e){$.test(e.type)&&(e.defaultChecked=e.checked)}function de(e,t,n,r,i){for(var a,o,s,c,u,l,d,p=e.length,f=ie(t),_=[],h=0;h<p;h++)if((o=e[h])||0===o)if("object"===C.type(o))C.merge(_,o.nodeType?[o]:o);else if(ce.test(o)){for(c=c||f.appendChild(t.createElement("div")),u=(ee.exec(o)||["",""])[1].toLowerCase(),d=ae[u]||ae._default,c.innerHTML=d[1]+C.htmlPrefilter(o)+d[2],a=d[0];a--;)c=c.lastChild;if(!y.leadingWhitespace&&ne.test(o)&&_.push(t.createTextNode(ne.exec(o)[0])),!y.tbody)for(a=(o="table"!==u||ue.test(o)?"<table>"!==d[1]||ue.test(o)?0:c:c.firstChild)&&o.childNodes.length;a--;)C.nodeName(l=o.childNodes[a],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(C.merge(_,c.childNodes),c.textContent="";c.firstChild;)c.removeChild(c.firstChild);c=f.lastChild}else _.push(t.createTextNode(o));for(c&&f.removeChild(c),y.appendChecked||C.grep(oe(_,"input"),le),h=0;o=_[h++];)if(r&&-1<C.inArray(o,r))i&&i.push(o);else if(s=C.contains(o.ownerDocument,o),c=oe(f.appendChild(o),"script"),s&&se(c),n)for(a=0;o=c[a++];)te.test(o.type||"")&&n.push(o);return c=null,f}!function(){var e,t,n=h.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(y[e]=t in T)||(n.setAttribute(t,"t"),y[e]=!1===n.attributes[t].expando);n=null}();var pe=/^(?:input|select|textarea)$/i,fe=/^key/,_e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,he=/^(?:focusinfocus|focusoutblur)$/,ge=/^([^.]*)(?:\.(.+)|)/;function me(){return!0}function ye(){return!1}function be(){try{return h.activeElement}catch(e){}}function ve(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=undefined),t)ve(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=undefined):null==i&&("string"==typeof n?(i=r,r=undefined):(i=r,r=n,n=undefined)),!1===i)i=ye;else if(!i)return e;return 1===a&&(o=i,(i=function(e){return C().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=C.guid++)),e.each(function(){C.event.add(this,t,i,r,n)})}C.event={global:{},add:function(e,t,n,r,i){var a,o,s,c,u,l,d,p,f,_,h,g=C._data(e);if(g){for(n.handler&&(n=(c=n).handler,i=c.selector),n.guid||(n.guid=C.guid++),(o=g.events)||(o=g.events={}),(l=g.handle)||((l=g.handle=function(e){return void 0===C||e&&C.event.triggered===e.type?undefined:C.event.dispatch.apply(l.elem,arguments)}).elem=e),s=(t=(t||"").match(V)||[""]).length;s--;)f=h=(a=ge.exec(t[s])||[])[1],_=(a[2]||"").split(".").sort(),f&&(u=C.event.special[f]||{},f=(i?u.delegateType:u.bindType)||f,u=C.event.special[f]||{},d=C.extend({type:f,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:_.join(".")},c),(p=o[f])||((p=o[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,_,l)||(e.addEventListener?e.addEventListener(f,l,!1):e.attachEvent&&e.attachEvent("on"+f,l))),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,d):p.push(d),C.event.global[f]=!0);e=null}},remove:function(e,t,n,r,i){var a,o,s,c,u,l,d,p,f,_,h,g=C.hasData(e)&&C._data(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(V)||[""]).length;u--;)if(f=h=(s=ge.exec(t[u])||[])[1],_=(s[2]||"").split(".").sort(),f){for(d=C.event.special[f]||{},p=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=a=p.length;a--;)o=p[a],!i&&h!==o.origType||n&&n.guid!==o.guid||s&&!s.test(o.namespace)||r&&r!==o.selector&&("**"!==r||!o.selector)||(p.splice(a,1),o.selector&&p.delegateCount--,d.remove&&d.remove.call(e,o));c&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,_,g.handle)||C.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[u],n,r,!0);C.isEmptyObject(l)&&(delete g.handle,C._removeData(e,"events"))}},trigger:function(e,t,n,r){var i,a,o,s,c,u,l=[n||h],d=m.call(e,"type")?e.type:e,p=m.call(e,"namespace")?e.namespace.split("."):[],f=c=n=n||h;if(3!==n.nodeType&&8!==n.nodeType&&!he.test(d+C.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),a=d.indexOf(":")<0&&"on"+d,(e=e[C.expando]?e:new C.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),s=C.event.special[d]||{},r||!s.trigger||!1!==s.trigger.apply(n,t))){if(!r&&!s.noBubble&&!C.isWindow(n)){for(o=s.delegateType||d,he.test(o+d)||(f=f.parentNode);f;f=f.parentNode)l.push(f),c=f;c===(n.ownerDocument||h)&&l.push(c.defaultView||c.parentWindow||T)}for(u=0;(f=l[u++])&&!e.isPropagationStopped();)e.type=1<u?o:s.bindType||d,(i=(C._data(f,"events")||{})[e.type]&&C._data(f,"handle"))&&i.apply(f,t),(i=a&&f[a])&&i.apply&&F(f)&&(e.result=i.apply(f,t),!1===e.result&&e.preventDefault());if(e.type=d,!r&&!e.isDefaultPrevented()&&(!s._default||!1===s._default.apply(l.pop(),t))&&F(n)&&a&&n[d]&&!C.isWindow(n)){(c=n[a])&&(n[a]=null),C.event.triggered=d;try{n[d]()}catch(_){}C.event.triggered=undefined,c&&(n[a]=c)}return e.result}},dispatch:function(e){e=C.event.fix(e);var t,n,r,i,a,o,s=l.call(arguments),c=(C._data(this,"events")||{})[e.type]||[],u=C.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(o=C.event.handlers.call(this,e,c),t=0;(i=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,(r=((C.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))!==undefined&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,a,o=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)r[i=(a=t[n]).selector+" "]===undefined&&(r[i]=a.needsContext?-1<C(i,this).index(c):C.find(i,this,null,[c]).length),r[i]&&r.push(a);r.length&&o.push({elem:c,handlers:r})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},fix:function(e){if(e[C.expando])return e;var t,n,r,i=e.type,a=e,o=this.fixHooks[i];for(o||(this.fixHooks[i]=o=_e.test(i)?this.mouseHooks:fe.test(i)?this.keyHooks:{}),r=o.props?this.props.concat(o.props):this.props,e=new C.Event(a),t=r.length;t--;)e[n=r[t]]=a[n];return e.target||(e.target=a.srcElement||h),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,a=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||h).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||a===undefined||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==be()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===be()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(C.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return C.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t),r.isDefaultPrevented()&&n.preventDefault()}},C.removeEvent=h.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var r="on"+t;e.detachEvent&&("undefined"==typeof e[r]&&(e[r]=null),e.detachEvent(r,n))},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?me:ye):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||C.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=me,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=me,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=me,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){C.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||C.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),y.submit||(C.event.special.submit={setup:function(){if(C.nodeName(this,"form"))return!1;C.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=C.nodeName(t,"input")||C.nodeName(t,"button")?C.prop(t,"form"):undefined;n&&!C._data(n,"submit")&&(C.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),C._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&C.event.simulate("submit",this.parentNode,e))},teardown:function(){if(C.nodeName(this,"form"))return!1;C.event.remove(this,"._submit")}}),y.change||(C.event.special.change={setup:function(){if(pe.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(C.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),C.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),C.event.simulate("change",this,e)})),!1;C.event.add(this,"beforeactivate._change",function(e){var t=e.target;pe.test(t.nodeName)&&!C._data(t,"change")&&(C.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||C.event.simulate("change",this.parentNode,e)}),C._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return C.event.remove(this,"._change"),!pe.test(this.nodeName)}}),y.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){C.event.simulate(r,e.target,C.event.fix(e))};C.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=C._data(e,r);t||e.addEventListener(n,i,!0),C._data(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=C._data(e,r)-1;t?C._data(e,r,t):(e.removeEventListener(n,i,!0),C._removeData(e,r))}}}),C.fn.extend({on:function(e,t,n,r){return ve(this,e,t,n,r)},one:function(e,t,n,r){return ve(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=ye),this.each(function(){C.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this},trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}});var Ee=/ jQuery\d+="(?:null|\d+)"/g,Ie=new RegExp("<(?:"+re+")[\\s/>]","i"),Te=/<script|<style|<link/i,Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^true\/(.*)/,xe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Se=ie(h).appendChild(h.createElement("div"));function Ne(e,t){return C.nodeName(e,"table")&&C.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function De(e){return e.type=(null!==C.find.attr(e,"type"))+"/"+e.type,e}function ke(e){var t=Be.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ae(e,t){if(1===t.nodeType&&C.hasData(e)){var n,r,i,a=C._data(e),o=C._data(t,a),s=a.events;if(s)for(n in delete o.handle,o.events={},s)for(r=0,i=s[n].length;r<i;r++)C.event.add(t,n,s[n][r]);o.data&&(o.data=C.extend({},o.data))}}function we(n,r,i,a){r=g.apply([],r);var e,t,o,s,c,u,l=0,d=n.length,p=d-1,f=r[0],_=C.isFunction(f);if(_||1<d&&"string"==typeof f&&!y.checkClone&&Ce.test(f))return n.each(function(e){var t=n.eq(e);_&&(r[0]=f.call(this,e,t.html())),we(t,r,i,a)});if(d&&(e=(u=de(r,n[0].ownerDocument,!1,n,a)).firstChild,1===u.childNodes.length&&(u=e),e||a)){for(o=(s=C.map(oe(u,"script"),De)).length;l<d;l++)t=u,l!==p&&(t=C.clone(t,!0,!0),o&&C.merge(s,oe(t,"script"))),i.call(n[l],t,l);if(o)for(c=s[s.length-1].ownerDocument,C.map(s,ke),l=0;l<o;l++)t=s[l],te.test(t.type||"")&&!C._data(t,"globalEval")&&C.contains(c,t)&&(t.src?C._evalUrl&&C._evalUrl(t.src):C.globalEval((t.text||t.textContent||t.innerHTML||"").replace(xe,"")));u=e=null}return n}function Ve(e,t,n){for(var r,i=t?C.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||C.cleanData(oe(r)),r.parentNode&&(n&&C.contains(r.ownerDocument,r)&&se(oe(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s,c=C.contains(e.ownerDocument,e);if(y.html5Clone||C.isXMLDoc(e)||!Ie.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(Se.innerHTML=e.outerHTML,Se.removeChild(a=Se.firstChild)),!(y.noCloneEvent&&y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(r=oe(a),s=oe(e),o=0;null!=(i=s[o]);++o)r[o]&&function(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!y.noCloneEvent&&t[C.expando]){for(r in(i=C._data(t)).events)C.removeEvent(t,r,i.handle);t.removeAttribute(C.expando)}"script"===n&&t.text!==e.text?(De(t).text=e.text,ke(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),y.html5Clone&&e.innerHTML&&!C.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&$.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(i,r[o]);if(t)if(n)for(s=s||oe(e),r=r||oe(a),o=0;null!=(i=s[o]);o++)Ae(i,r[o]);else Ae(e,a);return 0<(r=oe(a,"script")).length&&se(r,!c&&oe(e,"script")),r=s=i=null,a},cleanData:function(e,t){for(var n,r,i,a,o=0,s=C.expando,c=C.cache,u=y.attributes,l=C.event.special;null!=(n=e[o]);o++)if((t||F(n))&&(a=(i=n[s])&&c[i])){if(a.events)for(r in a.events)l[r]?C.event.remove(n,r):C.removeEvent(n,r,a.handle);c[i]&&(delete c[i],u||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),d.push(i))}}}),C.fn.extend({domManip:we,detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return Q(this,function(e){return e===undefined?C.text(this):this.empty().append((this[0]&&this[0].ownerDocument||h).createTextNode(e))},null,e,arguments.length)},append:function(){return we(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return we(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ne(this,e)).insertBefore(e,t.firstChild)})},before:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&C.cleanData(oe(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&C.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return Q(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(Ee,""):undefined;if("string"==typeof e&&!Te.test(e)&&(y.htmlSerialize||!Ie.test(e))&&(y.leadingWhitespace||!ne.test(e))&&!ae[(ee.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(oe(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return we(this,arguments,function(e){var t=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(oe(this)),t&&t.replaceChild(e,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){C.fn[e]=function(e){for(var t,n=0,r=[],i=C(e),a=i.length-1;n<=a;n++)t=n===a?this:this.clone(!0),C(i[n])[o](t),s.apply(r,t.get());return this.pushStack(r)}});var Pe,Le={HTML:"block",BODY:"block"};function Me(e,t){var n=C(t.createElement(e)).appendTo(t.body),r=C.css(n[0],"display");return n.detach(),r}function Fe(e){var t=h,n=Le[e];return n||("none"!==(n=Me(e,t))&&n||((t=((Pe=(Pe||C("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Pe[0].contentDocument).document).write(),t.close(),n=Me(e,t),Pe.detach()),Le[e]=n),n}var Oe,Re,He,je,We,Ge,Ye,Je,ze=/^margin/,Ue=new RegExp("^("+Y+")(?!px)[a-z%]+$","i"),Ke=function(e,t,n,r){var i,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,r||[]),t)e.style[a]=o[a];return i},Ze=h.documentElement;function Xe(){var e,t,n=h.documentElement;n.appendChild(Ye),Je.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",Oe=He=Ge=!1,Re=We=!0,T.getComputedStyle&&(t=T.getComputedStyle(Je),Oe="1%"!==(t||{}).top,Ge="2px"===(t||{}).marginLeft,He="4px"===(t||{width:"4px"}).width,Je.style.marginRight="50%",Re="4px"===(t||{marginRight:"4px"}).marginRight,(e=Je.appendChild(h.createElement("div"))).style.cssText=Je.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",Je.style.width="1px",We=!parseFloat((T.getComputedStyle(e)||{}).marginRight),Je.removeChild(e)),Je.style.display="none",(je=0===Je.getClientRects().length)&&(Je.style.display="",Je.innerHTML="<table><tr><td></td><td>t</td></tr></table>",Je.childNodes[0].style.borderCollapse="separate",(e=Je.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(je=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",je=0===e[0].offsetHeight)),n.removeChild(Ye)}Ye=h.createElement("div"),(Je=h.createElement("div")).style&&(Je.style.cssText="float:left;opacity:.5",y.opacity="0.5"===Je.style.opacity,y.cssFloat=!!Je.style.cssFloat,Je.style.backgroundClip="content-box",Je.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Je.style.backgroundClip,(Ye=h.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",Je.innerHTML="",Ye.appendChild(Je),y.boxSizing=""===Je.style.boxSizing||""===Je.style.MozBoxSizing||""===Je.style.WebkitBoxSizing,C.extend(y,{reliableHiddenOffsets:function(){return null==Oe&&Xe(),je},boxSizingReliable:function(){return null==Oe&&Xe(),He},pixelMarginRight:function(){return null==Oe&&Xe(),Re},pixelPosition:function(){return null==Oe&&Xe(),Oe},reliableMarginRight:function(){return null==Oe&&Xe(),We},reliableMarginLeft:function(){return null==Oe&&Xe(),Ge}}));var qe,Qe,$e=/^(top|right|bottom|left)$/;function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}T.getComputedStyle?(qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=T),t.getComputedStyle(e)},Qe=function(e,t,n){var r,i,a,o,s=e.style;return""!==(o=(n=n||qe(e))?n.getPropertyValue(t)||n[t]:undefined)&&o!==undefined||C.contains(e.ownerDocument,e)||(o=C.style(e,t)),n&&!y.pixelMarginRight()&&Ue.test(o)&&ze.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a),o===undefined?o:o+""}):Ze.currentStyle&&(qe=function(e){return e.currentStyle},Qe=function(e,t,n){var r,i,a,o,s=e.style;return null==(o=(n=n||qe(e))?n[t]:undefined)&&s&&s[t]&&(o=s[t]),Ue.test(o)&&!$e.test(t)&&(r=s.left,(a=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":o,o=s.pixelLeft+"px",s.left=r,a&&(i.left=a)),o===undefined?o:o+""||"auto"});var tt=/alpha\([^)]*\)/i,nt=/opacity\s*=\s*([^)]*)/i,rt=/^(none|table(?!-c[ea]).+)/,it=new RegExp("^("+Y+")(.*)$","i"),at={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"},st=["Webkit","O","Moz","ms"],ct=h.createElement("div").style;function ut(e){if(e in ct)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=st.length;n--;)if((e=st[n]+t)in ct)return e}function lt(e,t){for(var n,r,i,a=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(a[o]=C._data(r,"olddisplay"),n=r.style.display,t?(a[o]||"none"!==n||(r.style.display=""),""===r.style.display&&U(r)&&(a[o]=C._data(r,"olddisplay",Fe(r.nodeName)))):(i=U(r),(n&&"none"!==n||!i)&&C._data(r,"olddisplay",i?n:C.css(r,"display"))));for(o=0;o<s;o++)(r=e[o]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?a[o]||"":"none"));return e}function dt(e,t,n){var r=it.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function pt(e,t,n,r,i){for(var a=n===(r?"border":"content")?4:"width"===t?1:0,o=0;a<4;a+=2)"margin"===n&&(o+=C.css(e,n+z[a],!0,i)),r?("content"===n&&(o-=C.css(e,"padding"+z[a],!0,i)),"margin"!==n&&(o-=C.css(e,"border"+z[a]+"Width",!0,i))):(o+=C.css(e,"padding"+z[a],!0,i),"padding"!==n&&(o+=C.css(e,"border"+z[a]+"Width",!0,i)));return o}function ft(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,a=qe(e),o=y.boxSizing&&"border-box"===C.css(e,"boxSizing",!1,a);if(i<=0||null==i){if(((i=Qe(e,t,a))<0||null==i)&&(i=e.style[t]),Ue.test(i))return i;r=o&&(y.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+pt(e,t,n||(o?"border":"content"),r,a)+"px"}function _t(e,t,n,r,i){return new _t.prototype.init(e,t,n,r,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":y.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=C.camelCase(t),c=e.style;if(t=C.cssProps[s]||(C.cssProps[s]=ut(s)||s),o=C.cssHooks[t]||C.cssHooks[s],n===undefined)return o&&"get"in o&&(i=o.get(e,!1,r))!==undefined?i:c[t];if("string"===(a=typeof n)&&(i=J.exec(n))&&i[1]&&(n=K(e,t,i),a="number"),null!=n&&n==n&&("number"===a&&(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),!(o&&"set"in o&&(n=o.set(e,n,r))===undefined)))try{c[t]=n}catch(u){}}},css:function(e,t,n,r){var i,a,o,s=C.camelCase(t);return t=C.cssProps[s]||(C.cssProps[s]=ut(s)||s),(o=C.cssHooks[t]||C.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),a===undefined&&(a=Qe(e,t,r)),"normal"===a&&t in ot&&(a=ot[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),C.each(["height","width"],function(e,i){C.cssHooks[i]={get:function(e,t,n){if(t)return rt.test(C.css(e,"display"))&&0===e.offsetWidth?Ke(e,at,function(){return ft(e,i,n)}):ft(e,i,n)},set:function(e,t,n){var r=n&&qe(e);return dt(0,t,n?pt(e,i,n,y.boxSizing&&"border-box"===C.css(e,"boxSizing",!1,r),r):0)}}}),y.opacity||(C.cssHooks.opacity={get:function(e,t){return nt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=C.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=r&&r.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===C.trim(a.replace(tt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=tt.test(a)?a.replace(tt,i):a+" "+i)}}),C.cssHooks.marginRight=et(y.reliableMarginRight,function(e,t){if(t)return Ke(e,{display:"inline-block"},Qe,[e,"marginRight"])}),C.cssHooks.marginLeft=et(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||(C.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-Ke(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(i,a){C.cssHooks[i+a]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+z[t]+a]=r[t]||r[t-2]||r[0];return n}},ze.test(i)||(C.cssHooks[i+a].set=dt)}),C.fn.extend({css:function(e,t){return Q(this,function(e,t,n){var r,i,a={},o=0;if(C.isArray(t)){for(r=qe(e),i=t.length;o<i;o++)a[t[o]]=C.css(e,t[o],!1,r);return a}return n!==undefined?C.style(e,t,n):C.css(e,t)},e,t,1<arguments.length)},show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){U(this)?C(this).show():C(this).hide()})}}),(C.Tween=_t).prototype={constructor:_t,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(C.cssNumber[n]?"":"px")},cur:function(){var e=_t.propHooks[this.prop];return e&&e.get?e.get(this):_t.propHooks._default.get(this)},run:function(e){var t,n=_t.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):_t.propHooks._default.set(this),this}},_t.prototype.init.prototype=_t.prototype,_t.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[C.cssProps[e.prop]]&&!C.cssHooks[e.prop]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},_t.propHooks.scrollTop=_t.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=_t.prototype.init,C.fx.step={};var ht,gt,mt,yt,bt,vt,Et,It=/^(?:toggle|show|hide)$/,Tt=/queueHooks$/;function Ct(){return T.setTimeout(function(){ht=undefined}),ht=C.now()}function Bt(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=z[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function xt(e,t,n){for(var r,i=(St.tweeners[t]||[]).concat(St.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function St(a,e,t){var n,o,r=0,i=St.prefilters.length,s=C.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var e=ht||Ct(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),r=0,i=u.tweens.length;r<i;r++)u.tweens[r].run(n);return s.notifyWith(a,[u,n,t]),n<1&&i?t:(s.resolveWith(a,[u]),!1)},u=s.promise({elem:a,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},t),originalProperties:e,originalOptions:t,startTime:ht||Ct(),duration:t.duration,tweens:[],createTween:function(e,t){var n=C.Tween(a,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(o)return this;for(o=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(a,[u,1,0]),s.resolveWith(a,[u,e])):s.rejectWith(a,[u,e]),this}}),l=u.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=C.camelCase(n)],a=e[n],C.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=C.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(l,u.opts.specialEasing);r<i;r++)if(n=St.prefilters[r].call(u,a,l,u.opts))return C.isFunction(n.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=C.proxy(n.stop,n)),n;return C.map(l,xt,u),C.isFunction(u.opts.start)&&u.opts.start.call(a,u),C.fx.timer(C.extend(c,{elem:a,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}C.Animation=C.extend(St,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return K(n.elem,e,J.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=C.isFunction(e)?(t=e,["*"]):e.match(V)).length;r<i;r++)n=e[r],St.tweeners[n]=St.tweeners[n]||[],St.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var r,i,a,o,s,c,u,l=this,d={},p=t.style,f=t.nodeType&&U(t),_=C._data(t,"fxshow");for(r in n.queue||(null==(s=C._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,c=s.empty.fire,s.empty.fire=function(){s.unqueued||c()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--,C.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(u=C.css(t,"display"))?C._data(t,"olddisplay")||Fe(t.nodeName):u)&&"none"===C.css(t,"float")&&(y.inlineBlockNeedsLayout&&"inline"!==Fe(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",y.shrinkWrapBlocks()||l.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(i=e[r],It.exec(i)){if(delete e[r],a=a||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!_||_[r]===undefined)continue;f=!0}d[r]=_&&_[r]||C.style(t,r)}else u=undefined;if(C.isEmptyObject(d))"inline"===("none"===u?Fe(t.nodeName):u)&&(p.display=u);else for(r in _?"hidden"in _&&(f=_.hidden):_=C._data(t,"fxshow",{}),a&&(_.hidden=!f),f?C(t).show():l.done(function(){C(t).hide()}),l.done(function(){var e;for(e in C._removeData(t,"fxshow"),d)C.style(t,e,d[e])}),d)o=xt(f?_[r]:0,r,l),r in _||(_[r]=o.start,f&&(o.end=o.start,o.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?St.prefilters.unshift(e):St.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||C.isFunction(e)&&e,duration:e,easing:n&&t||t&&!C.isFunction(t)&&t};return r.duration=C.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in C.fx.speeds?C.fx.speeds[r.duration]:C.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){C.isFunction(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(U).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=C.isEmptyObject(t),a=C.speed(e,n,r),o=function(){var e=St(this,C.extend({},t),a);(i||C._data(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(i,e,a){var o=function(e){var t=e.stop;delete e.stop,t(a)};return"string"!=typeof i&&(a=e,e=i,i=undefined),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=C.timers,r=C._data(this);if(t)r[t]&&r[t].stop&&o(r[t]);else for(t in r)r[t]&&r[t].stop&&Tt.test(t)&&o(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(a),e=!1,n.splice(t,1));!e&&a||C.dequeue(this,i)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=C._data(this),n=t[o+"queue"],r=t[o+"queueHooks"],i=C.timers,a=n?n.length:0;for(t.finish=!0,C.queue(this,o,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===o&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,r){var i=C.fn[r];C.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(Bt(r,!0),e,t,n)}}),C.each({slideDown:Bt("show"),slideUp:Bt("hide"),slideToggle:Bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){C.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),C.timers=[],C.fx.tick=function(){var e,t=C.timers,n=0;for(ht=C.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||C.fx.stop(),ht=undefined},C.fx.timer=function(e){C.timers.push(e),e()?C.fx.start():C.timers.pop()},C.fx.interval=13,C.fx.start=function(){gt=gt||T.setInterval(C.fx.tick,C.fx.interval)},C.fx.stop=function(){T.clearInterval(gt),gt=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(r,e){return r=C.fx&&C.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=T.setTimeout(e,r);t.stop=function(){T.clearTimeout(n)}})},yt=h.createElement("input"),bt=h.createElement("div"),vt=h.createElement("select"),Et=vt.appendChild(h.createElement("option")),(bt=h.createElement("div")).setAttribute("className","t"),bt.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",mt=bt.getElementsByTagName("a")[0],yt.setAttribute("type","checkbox"),bt.appendChild(yt),(mt=bt.getElementsByTagName("a")[0]).style.cssText="top:1px",y.getSetAttribute="t"!==bt.className,y.style=/top/.test(mt.getAttribute("style")),y.hrefNormalized="/a"===mt.getAttribute("href"),y.checkOn=!!yt.value,y.optSelected=Et.selected,y.enctype=!!h.createElement("form").enctype,vt.disabled=!0,y.optDisabled=!Et.disabled,(yt=h.createElement("input")).setAttribute("value",""),y.input=""===yt.getAttribute("value"),yt.value="t",yt.setAttribute("type","radio"),y.radioValue="t"===yt.value;var Nt=/\r/g,Dt=/[\x20\t\r\n\f]+/g;C.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=C.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,C(this).val()):n)?t="":"number"==typeof t?t+="":C.isArray(t)&&(t=C.map(t,function(e){return null==e?"":e+""})),(r=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,t,"value")!==undefined||(this.value=t))})):t?(r=C.valHooks[t.type]||C.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&(e=r.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Nt,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:C.trim(C.text(e)).replace(Dt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,a="select-one"===e.type||i<0,o=a?null:[],s=a?i+1:r.length,c=i<0?s:a?i:0;c<s;c++)if(((n=r[c]).selected||c===i)&&(y.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!C.nodeName(n.parentNode,"optgroup"))){if(t=C(n).val(),a)return t;o.push(t)}return o},set:function(e,t){for(var n,r,i=e.options,a=C.makeArray(t),o=i.length;o--;)if(r=i[o],-1<C.inArray(C.valHooks.option.get(r),a))try{r.selected=n=!0}catch(_){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(C.isArray(t))return e.checked=-1<C.inArray(C(e).val(),t)}},y.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt,At,wt=C.expr.attrHandle,Vt=/^(?:checked|selected)$/i,Pt=y.getSetAttribute,Lt=y.input;C.fn.extend({attr:function(e,t){return Q(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof e.getAttribute?C.prop(e,t,n):(1===a&&C.isXMLDoc(e)||(t=t.toLowerCase(),i=C.attrHooks[t]||(C.expr.match.bool.test(t)?At:kt)),n!==undefined?null===n?void C.removeAttr(e,t):i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:(e.setAttribute(t,n+""),n):!(i&&"get"in i&&null!==(r=i.get(e,t)))&&null==(r=C.find.attr(e,t))?undefined:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&C.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,a=t&&t.match(V);if(a&&1===e.nodeType)for(;n=a[i++];)r=C.propFix[n]||n,C.expr.match.bool.test(n)?Lt&&Pt||!Vt.test(n)?e[r]=!1:e[C.camelCase("default-"+n)]=e[r]=!1:C.attr(e,n,""),e.removeAttribute(Pt?n:r)}}),At={set:function(e,t,n){return!1===t?C.removeAttr(e,n):Lt&&Pt||!Vt.test(n)?e.setAttribute(!Pt&&C.propFix[n]||n,n):e[C.camelCase("default-"+n)]=e[n]=!0,n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var a=wt[t]||C.find.attr;Lt&&Pt||!Vt.test(t)?wt[t]=function(e,t,n){var r,i;return n||(i=wt[t],wt[t]=r,r=null!=a(e,t,n)?t.toLowerCase():null,wt[t]=i),r}:wt[t]=function(e,t,n){if(!n)return e[C.camelCase("default-"+t)]?t.toLowerCase():null}}),Lt&&Pt||(C.attrHooks.value={set:function(e,t,n){if(!C.nodeName(e,"input"))return kt&&kt.set(e,t,n);e.defaultValue=t}}),Pt||(kt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},wt.id=wt.name=wt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},C.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:kt.set},C.attrHooks.contenteditable={set:function(e,t,n){kt.set(e,""!==t&&t,n)}},C.each(["width","height"],function(e,n){C.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),y.style||(C.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var Mt=/^(?:input|select|textarea|button|object)$/i,Ft=/^(?:a|area)$/i;C.fn.extend({prop:function(e,t){return Q(this,C.prop,e,t,1<arguments.length)},removeProp:function(t){return t=C.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(e){}})}}),C.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):Mt.test(e.nodeName)||Ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.hrefNormalized||C.each(["href","src"],function(e,t){C.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),y.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),y.enctype||(C.propFix.enctype="encoding");var Ot=/[\t\r\n\f]/g;function Rt(e){return C.attr(e,"class")||""}C.fn.extend({addClass:function(t){var e,n,r,i,a,o,s,c=0;if(C.isFunction(t))return this.each(function(e){C(this).addClass(t.call(this,e,Rt(this)))});if("string"==typeof t&&t)for(e=t.match(V)||[];n=this[c++];)if(i=Rt(n),r=1===n.nodeType&&(" "+i+" ").replace(Ot," ")){for(o=0;a=e[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=C.trim(r))&&C.attr(n,"class",s)}return this},removeClass:function(t){var e,n,r,i,a,o,s,c=0;if(C.isFunction(t))return this.each(function(e){C(this).removeClass(t.call(this,e,Rt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(V)||[];n=this[c++];)if(i=Rt(n),r=1===n.nodeType&&(" "+i+" ").replace(Ot," ")){for(o=0;a=e[o++];)for(;-1<r.indexOf(" "+a+" ");)r=r.replace(" "+a+" "," ");i!==(s=C.trim(r))&&C.attr(n,"class",s)}return this},toggleClass:function(i,t){var a=typeof i;return"boolean"==typeof t&&"string"==a?t?this.addClass(i):this.removeClass(i):C.isFunction(i)?this.each(function(e){C(this).toggleClass(i.call(this,e,Rt(this),t),t)}):this.each(function(){var e,t,n,r;if("string"==a)for(t=0,n=C(this),r=i.match(V)||[];e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else i!==undefined&&"boolean"!=a||((e=Rt(this))&&C._data(this,"__className__",e),C.attr(this,"class",!e&&!1!==i&&C._data(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,r=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+Rt(t)+" ").replace(Ot," ").indexOf(r))return!0;return!1}}),C.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){C.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Ht=T.location,jt=C.now(),Wt=/\?/,Gt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;C.parseJSON=function(e){if(T.JSON&&T.JSON.parse)return T.JSON.parse(e+"");var i,a=null,t=C.trim(e+"");return t&&!C.trim(t.replace(Gt,function(e,t,n,r){return i&&t&&(a=0),0===a?e:(i=n||t,a+=!r-!n,"")}))?Function("return "+t)():C.error("Invalid JSON: "+e)},C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{T.DOMParser?t=(new T.DOMParser).parseFromString(e,"text/xml"):((t=new T.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(n){t=undefined}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var Yt=/#.*$/,Jt=/([?&])_=[^&]*/,zt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ut=/^(?:GET|HEAD)$/,Kt=/^\/\//,Zt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Xt={},qt={},Qt="*/".concat("*"),$t=Ht.href,en=Zt.exec($t.toLowerCase())||[];function tn(a){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(V)||[];if(C.isFunction(t))for(;n=i[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(a[n]=a[n]||[]).unshift(t)):(a[n]=a[n]||[]).push(t)}}function nn(t,i,a,o){var s={},c=t===qt;function u(e){var r;return s[e]=!0,C.each(t[e]||[],function(e,t){var n=t(i,a,o);return"string"!=typeof n||c||s[n]?c?!(r=n):void 0:(i.dataTypes.unshift(n),u(n),!1)}),r}return u(i.dataTypes[0])||!s["*"]&&u("*")}function rn(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((i[r]?e:n=n||{})[r]=t[r]);return n&&C.extend(!0,e,n),e}function an(e){if(!C.contains(e.ownerDocument||h,e))return!0;for(;e&&1===e.nodeType;){if("none"===((t=e).style&&t.style.display||C.css(t,"display"))||"hidden"===e.type)return!0;e=e.parentNode}var t;return!1}C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$t,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(en[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":C.parseJSON,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?rn(rn(e,C.ajaxSettings),t):rn(C.ajaxSettings,e)},ajaxPrefilter:tn(Xt),ajaxTransport:tn(qt),ajax:function(e,t){"object"==typeof e&&(t=e,e=undefined),t=t||{};var n,r,l,d,p,f,_,i,h=C.ajaxSetup({},t),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?C(g):C.event,y=C.Deferred(),b=C.Callbacks("once memory"),v=h.statusCode||{},a={},o={},E=0,s="canceled",I={readyState:0,getResponseHeader:function(e){var t;if(2===E){if(!i)for(i={};t=zt.exec(d);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===E?d:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return E||(e=o[n]=o[n]||e,a[e]=t),this},overrideMimeType:function(e){return E||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(E<2)for(t in e)v[t]=[v[t],e[t]];else I.always(e[I.status]);return this},abort:function(e){var t=e||s;return _&&_.abort(t),c(0,t),this}};if(y.promise(I).complete=b.add,I.success=I.done,I.error=I.fail,h.url=((e||h.url||$t)+"").replace(Yt,"").replace(Kt,en[1]+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=C.trim(h.dataType||"*").toLowerCase().match(V)||[""],null==h.crossDomain&&(n=Zt.exec(h.url.toLowerCase()),h.crossDomain=!(!n||n[1]===en[1]&&n[2]===en[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(en[3]||("http:"===en[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=C.param(h.data,h.traditional)),nn(Xt,h,t,I),2===E)return I;for(r in(f=C.event&&h.global)&&0==C.active++&&C.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ut.test(h.type),l=h.url,h.hasContent||(h.data&&(l=h.url+=(Wt.test(l)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=Jt.test(l)?l.replace(Jt,"$1_="+jt++):l+(Wt.test(l)?"&":"?")+"_="+jt++)),h.ifModified&&(C.lastModified[l]&&I.setRequestHeader("If-Modified-Since",C.lastModified[l]),C.etag[l]&&I.setRequestHeader("If-None-Match",C.etag[l])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&I.setRequestHeader("Content-Type",h.contentType),I.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Qt+"; q=0.01":""):h.accepts["*"]),h.headers)I.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(!1===h.beforeSend.call(g,I,h)||2===E))return I.abort();for(r in s="abort",{success:1,error:1,complete:1})I[r](h[r]);if(_=nn(qt,h,t,I)){if(I.readyState=1,f&&m.trigger("ajaxSend",[I,h]),2===E)return I;h.async&&0<h.timeout&&(p=T.setTimeout(function(){I.abort("timeout")},h.timeout));try{E=1,_.send(a,c)}catch(u){if(!(E<2))throw u;c(-1,u)}}else c(-1,"No Transport");function c(e,t,n,r){var i,a,o,s,c,u=t;2!==E&&(E=2,p&&T.clearTimeout(p),_=undefined,d=r||"",I.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),i===undefined&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){c.unshift(o);break}if(c[0]in n)a=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){a=o;break}r=r||o}a=a||r}if(a)return a!==c[0]&&c.unshift(a),n[a]}(h,I,n)),s=function(e,t,n,r){var i,a,o,s,c,u={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(a=l.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=l.shift())if("*"===a)a=c;else if("*"!==c&&c!==a){if(!(o=u[c+" "+a]||u["* "+a]))for(i in u)if((s=i.split(" "))[1]===a&&(o=u[c+" "+s[0]]||u["* "+s[0]])){!0===o?o=u[i]:!0!==u[i]&&(a=s[0],l.unshift(s[1]));break}if(!0!==o)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+c+" to "+a}}}return{state:"success",data:t}}(h,s,I,i),i?(h.ifModified&&((c=I.getResponseHeader("Last-Modified"))&&(C.lastModified[l]=c),(c=I.getResponseHeader("etag"))&&(C.etag[l]=c)),204===e||"HEAD"===h.type?u="nocontent":304===e?u="notmodified":(u=s.state,a=s.data,i=!(o=s.error))):(o=u,!e&&u||(u="error",e<0&&(e=0))),I.status=e,I.statusText=(t||u)+"",i?y.resolveWith(g,[a,u,I]):y.rejectWith(g,[I,u,o]),I.statusCode(v),v=undefined,f&&m.trigger(i?"ajaxSuccess":"ajaxError",[I,h,i?a:o]),b.fireWith(g,[I,u]),f&&(m.trigger("ajaxComplete",[I,h]),--C.active||C.event.trigger("ajaxStop")))}return I},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,undefined,t,"script")}}),C.each(["get","post"],function(e,i){C[i]=function(e,t,n,r){return C.isFunction(t)&&(r=r||n,n=t,t=undefined),C.ajax(C.extend({url:e,type:i,dataType:r,data:t,success:n},C.isPlainObject(e)&&e))}}),C._evalUrl=function(e){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},C.fn.extend({wrapAll:function(t){return C.isFunction(t)?this.each(function(e){C(this).wrapAll(t.call(this,e))}):(this[0]&&(e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)),this);var e},wrapInner:function(n){return C.isFunction(n)?this.each(function(e){C(this).wrapInner(n.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=C.isFunction(t);return this.each(function(e){C(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){C.nodeName(this,"body")||C(this).replaceWith(this.childNodes)}).end()}}),C.expr.filters.hidden=function(e){return y.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:an(e)},C.expr.filters.visible=function(e){return!C.expr.filters.hidden(e)};var on=/%20/g,sn=/\[\]$/,cn=/\r?\n/g,un=/^(?:submit|button|image|reset|file)$/i,ln=/^(?:input|select|textarea|keygen)/i;C.param=function(e,t){var n,r=[],i=function(e,t){t=C.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=C.ajaxSettings&&C.ajaxSettings.traditional),C.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){i(this.name,this.value)});else for(n in e)!function a(n,e,r,i){var t;if(C.isArray(e))C.each(e,function(e,t){r||sn.test(n)?i(n,t):a(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==C.type(e))i(n,e);else for(t in e)a(n+"["+t+"]",e[t],r,i)}(n,e[n],t,i);return r.join("&").replace(on,"+")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&ln.test(this.nodeName)&&!un.test(e)&&(this.checked||!$.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:C.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(cn,"\r\n")}}):{name:t.name,value:n.replace(cn,"\r\n")}}).get()}}),C.ajaxSettings.xhr=T.ActiveXObject!==undefined?function(){return this.isLocal?hn():8<h.documentMode?_n():/^(get|post|head|put|delete|options)$/i.test(this.type)&&_n()||hn()}:_n;var dn=0,pn={},fn=C.ajaxSettings.xhr();function _n(){try{return new T.XMLHttpRequest}catch(e){}}function hn(){try{return new T.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}T.attachEvent&&T.attachEvent("onunload",function(){for(var e in pn)pn[e](undefined,!0)}),y.cors=!!fn&&"withCredentials"in fn,(fn=y.ajax=!!fn)&&C.ajaxTransport(function(u){var l;if(!u.crossDomain||y.cors)return{send:function(e,o){var t,s=u.xhr(),c=++dn;if(s.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(t in u.xhrFields)s[t]=u.xhrFields[t];for(t in u.mimeType&&s.overrideMimeType&&s.overrideMimeType(u.mimeType),u.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)e[t]!==undefined&&s.setRequestHeader(t,e[t]+"");s.send(u.hasContent&&u.data||null),l=function(e,t){var n,r,i;if(l&&(t||4===s.readyState))if(delete pn[c],l=undefined,s.onreadystatechange=C.noop,t)4!==s.readyState&&s.abort();else{i={},n=s.status,"string"==typeof s.responseText&&(i.text=s.responseText);try{r=s.statusText}catch(a){r=""}n||!u.isLocal||u.crossDomain?1223===n&&(n=204):n=i.text?200:404}i&&o(n,r,i,s.getAllResponseHeaders())},u.async?4===s.readyState?T.setTimeout(l):s.onreadystatechange=pn[c]=l:l()},abort:function(){l&&l(undefined,!0)}}}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),C.ajaxTransport("script",function(t){if(t.crossDomain){var r,i=h.head||C("head")[0]||h.documentElement;return{send:function(e,n){(r=h.createElement("script")).async=!0,t.scriptCharset&&(r.charset=t.scriptCharset),r.src=t.url,r.onload=r.onreadystatechange=function(e,t){!t&&r.readyState&&!/loaded|complete/.test(r.readyState)||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),r=null,t||n(200,"success"))},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(undefined,!0)}}}});var gn=[],mn=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=gn.pop()||C.expando+"_"+jt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,a,o=!1!==e.jsonp&&(mn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&mn.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=C.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(mn,"$1"+r):!1!==e.jsonp&&(e.url+=(Wt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||C.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=T[r],T[r]=function(){a=arguments},n.always(function(){i===undefined?C(T).removeProp(r):T[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,gn.push(r)),a&&C.isFunction(i)&&i(a[0]),a=i=undefined}),"script"}),C.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||h;var r=E.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=de([e],t,i),i&&i.length&&C(i).remove(),C.merge([],r.childNodes))};var yn=C.fn.load;function bn(e){return C.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}C.fn.load=function(e,t,n){if("string"!=typeof e&&yn)return yn.apply(this,arguments);var r,i,a,o=this,s=e.indexOf(" ");return-1<s&&(r=C.trim(e.slice(s,e.length)),e=e.slice(0,s)),C.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),0<o.length&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.filters.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,u=C.css(e,"position"),l=C(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),a=C.css(e,"top"),c=C.css(e,"left"),i=("absolute"===u||"fixed"===u)&&-1<C.inArray("auto",[a,c])?(o=(r=l.position()).top,r.left):(o=parseFloat(a)||0,parseFloat(c)||0),C.isFunction(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):l.css(d)}},C.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,n,r={top:0,left:0},i=this[0],a=i&&i.ownerDocument;return a?(e=a.documentElement,C.contains(e,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=bn(a),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===C.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),C.nodeName(e[0],"html")||(n=e.offset()),n.top+=C.css(e[0],"borderTopWidth",!0),n.left+=C.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-C.css(r,"marginTop",!0),left:t.left-n.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!C.nodeName(e,"html")&&"static"===C.css(e,"position");)e=e.offsetParent;return e||Ze})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var a=/Y/.test(i);C.fn[t]=function(e){return Q(this,function(e,t,n){var r=bn(e);if(n===undefined)return r?i in r?r[i]:r.document.documentElement[t]:e[t];r?r.scrollTo(a?C(r).scrollLeft():n,a?n:C(r).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),C.each(["top","left"],function(e,n){C.cssHooks[n]=et(y.pixelPosition,function(e,t){if(t)return t=Qe(e,n),Ue.test(t)?C(e).position()[n]+"px":t})}),C.each({Height:"height",Width:"width"},function(a,o){C.each({padding:"inner"+a,content:o,"":"outer"+a},function(r,e){C.fn[e]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return Q(this,function(e,t,n){var r;return C.isWindow(e)?e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):n===undefined?C.css(e,t,i):C.style(e,t,n,i)},o,n?e:undefined,n,null)}})}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),C.fn.size=function(){return this.length},C.fn.andSelf=C.fn.addBack,(Cn=function(){return C}.apply(Tn,[]))===undefined||(In.exports=Cn);var vn=T.jQuery,En=T.$;return C.noConflict=function(e){return T.$===C&&(T.$=En),e&&T.jQuery===C&&(T.jQuery=vn),C},T.$||T.jQuery||(T.jQuery=T.$=C),BI.jQuery=BI.$=C},"object"==typeof In.exports?In.exports=t.document?n(t):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)},function(e,t){BI.$.extend(BI.$.Event.prototype,{stopEvent:function(){this.stopPropagation(),this.preventDefault()}})},function(e,t){var n;BI.jQuery&&((n=BI.jQuery).fn.insets||(n.fn.insets=function(){var e=this.padding(),t=this.border();return{top:e.top,bottom:e.bottom+t.bottom+t.top,left:e.left,right:e.right+t.right+t.left}}),n.fn.bounds||(n.fn.bounds=function(e){var t={hasIgnoredBounds:!0};return e?(isNaN(e.x)||(t.left=e.x),isNaN(e.y)||(t.top=e.y),null!=e.width&&(t.width=e.width-(this.outerWidth(!0)-this.width()),t.width=0<=t.width?t.width:e.width),null!=e.height&&(t.height=e.height-(this.outerHeight(!0)-this.height()),t.height=0<=t.height?t.height:e.height),this.css(t),this):{x:(t=this.position()).left,y:t.top,width:this.outerWidth(),height:this.outerHeight()}}),BI.extend(BI.jQuery.fn,{destroy:function(){this.remove(),!0===BI.isIE()&&(this[0].outerHTML="")},__textKeywordMarked__:function(e,n,t){if(!BI.isKey(n)||100<(e+"").length)return BI.isIE9Below()?this.html(BI.htmlEncode(e)):(this[0].textContent=e,this);n+="",n=BI.toUpperCase(n);var r=(e||"")+"";for(t=(t||BI.makeFirstPY(e,{splitChar:""}))+"",t=BI.toUpperCase(t),this.empty();0<t.length&&0<r.length;){var i=BI.toUpperCase(r).indexOf(n),a=t.indexOf(n);if(0<=a&&(a=(a-Math.floor(a/(r.length+1)))%r.length),0<=i&&(i<a||-1===a))this.append(BI.htmlEncode(r.substr(0,i))),this.append(BI.$("<span>").addClass("bi-keyword-red-mark").html(BI.htmlEncode(r.substr(i,n.length)))),r=r.substr(i+n.length),BI.isNotEmptyString(t)&&(t=BI.map(t.split(""),function(e,t){return t.slice(i+n.length)}).join(""));else{if(!(0<=a)){this.append(BI.htmlEncode(r));break}this.append(BI.htmlEncode(r.substr(0,a))),this.append(BI.$("<span>").addClass("bi-keyword-red-mark").html(BI.htmlEncode(r.substr(a,n.length)))),BI.isNotEmptyString(t)&&(t=BI.map(t.split(""),function(e,t){return t.slice(a+n.length)}).join("")),r=r.substr(a+n.length)}}return this},getDomHeight:function(e){var t=BI.$(this).clone();t.appendTo(BI.$(e||"body"));var n=t.height();return t.remove(),n},hasVerticalScroll:function(){return 0<this.height()&&this[0].clientWidth<this[0].offsetWidth},hasHorizonScroll:function(){return 0<this.width()&&this[0].clientHeight<this[0].offsetHeight},getStyle:function(e){var t=this[0],n=void 0;if(_global.getComputedStyle&&(n=_global.getComputedStyle(t,null)))return n.getPropertyValue(BI.hyphenate(e));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return n.getPropertyValue(BI.hyphenate(e));if("display"===e)return"none"}return t.currentStyle?"float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[BI.camelize(e)]:t.style&&t.style[BI.camelize(e)]},__isMouseInBounds__:function(e){var t=this.get(0).getBoundingClientRect?this.get(0).getBoundingClientRect():this.offset(),n=t.width||this.outerWidth(),r=t.height||this.outerHeight();return!(e.pageX<Math.floor(t.left)||e.pageX>t.left+n||e.pageY<Math.floor(t.top)||e.pageY>t.top+r)},__hasZIndexMask__:function(e){return e&&null!=this.zIndexMask[e]},__buildZIndexMask__:function(e,t){this.zIndexMask=this.zIndexMask||{},this.indexMask=this.indexMask||[];var n=BI.createWidget({type:"bi.center_adapt",cls:"bi-z-index-mask",items:t});return n.element.css({"z-index":e}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:n,left:0,right:0,top:0,bottom:0}]}),this.indexMask.push(n),e&&(this.zIndexMask[e]=n),n.element},__releaseZIndexMask__:function(e){if(e&&this.zIndexMask[e])return BI.remove(this.indexMask,this.zIndexMask[e]),void this.zIndexMask[e].destroy();this.indexMask=this.indexMask||[];var t=this.indexMask.pop();t&&t.destroy()}}))},function(e,t){var i;_.extend(BI,{$import:(i={},function(n,e,t){var r;!function(n,r){var e=BI.$("head script, body script");BI.$.each(e,function(e,t){-1!=t.src.indexOf(n)&&(i[n]=!0)});var t=BI.$("head link");BI.$.each(t,function(e,t){-1!=t.href.indexOf(n)&&r&&(i[n]=!1,BI.$(t).remove())})}(n,t),!0!==i[n]&&("css"===e?((r=document.createElement("link")).rel="stylesheet",r.type="text/css",r.href=n,document.getElementsByTagName("head")[0].appendChild(r),i[n]=!0):BI.$.ajax({url:n,dataType:"script",async:!1,cache:!0,complete:function(e,t){"success"==t&&(i[n]=!0)}}))})})},function(e,t){!function(){var e={on:function(e,t,n){return d(this,"on",e,[t,n])&&t&&(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this})),this},once:function(e,t,n){if(!d(this,"once",e,[t,n])||!t)return this;var r=this,i=_.once(function(){r.off(e,i),t.apply(this,arguments)});return i._callback=t,this.on(e,i,n)},off:function(e,t,n){if(!this._events||!d(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(var r=e?[e]:_.keys(this._events),i=0,a=r.length;i<a;i++){e=r[i];var o=this._events[e];if(o)if(t||n){for(var s=[],c=0,u=o.length;c<u;c++){var l=o[c];(t&&t!==l.callback&&t!==l.callback._callback||n&&n!==l.context)&&s.push(l)}s.length?this._events[e]=s:delete this._events[e]}else delete this._events[e]}return this},un:function(){this.off.apply(this,arguments)},trigger:function(e){if(!this._events)return this;var t=slice.call(arguments,1);if(!d(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&i(n,t),r&&i(r,arguments),this},fireEvent:function(){this.trigger.apply(this,arguments)},listenTo:function(e,t,n){var r=this._listeningTo||(this._listeningTo={});return n||"object"!=typeof t||(n=this),(r[e._listenId||(e._listenId=_.uniqueId("l"))]=e).on(t,n,this),this},listenToOnce:function(e,t,n){if("object"==typeof t){for(var r in t)this.listenToOnce(e,r,t[r]);return this}if(c.test(t)){for(var i=t.split(c),a=0,o=i.length;a<o;a++)this.listenToOnce(e,i[a],n);return this}if(!n)return this;var s=_.once(function(){this.stopListening(e,t,s),n.apply(this,arguments)});return s._callback=n,this.listenTo(e,t,s)},stopListening:function(e,t,n){var r=this._listeningTo;if(!r)return this;var i=!t&&!n;for(var a in n||"object"!=typeof t||(n=this),e&&((r={})[e._listenId]=e),r)(e=r[a]).off(t,n,this),(i||_.isEmpty(e._events))&&delete this._listeningTo[a];return this}},c=/\s+/,d=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)e[t].apply(e,[i,n[i]].concat(r));return!1}if(c.test(n)){for(var a=n.split(c),o=0,s=a.length;o<s;o++)e[t].apply(e,[a[o]].concat(r));return!1}return!0},i=function(e,t){var n,r=-1,i=e.length,a=t[0],o=t[1],s=t[2];switch(t.length){case 0:for(;++r<i;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=e[r]).callback.call(n.ctx,a);return;case 2:for(;++r<i;)(n=e[r]).callback.call(n.ctx,a,o);return;case 3:for(;++r<i;)(n=e[r]).callback.call(n.ctx,a,o,s);return;default:for(;++r<i;)(n=e[r]).callback.apply(n.ctx,t);return}},t=BI.Router=function(e){(e=e||{}).routes&&(this.routes=e.routes),this._bindRoutes(),this._init.apply(this,arguments)},n=/\((.*?)\)/g,r=/(\(\?)?:\w+/g,a=/\*\w+/g,o=/[\-{}\[\]+?.,\\\^$|#\s]/g;_.extend(t.prototype,e,{_init:function(){},route:function(n,r,i){_.isRegExp(n)||(n=this._routeToRegExp(n)),_.isFunction(r)&&(i=r,r=""),i=i||this[r];var a=this;return BI.history.route(n,function(e){var t=a._extractParameters(n,e);!1!==a.execute(i,t,r)&&(a.trigger.apply(a,["route:"+r].concat(t)),a.trigger("route",r,t),BI.history.trigger("route",a,r,t))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,t){return BI.history.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=_.result(this,"routes");for(var e,t=_.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(o,"\\$&").replace(n,"(?:$1)?").replace(r,function(e,t){return t?e:"([^/?]+)"}).replace(a,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return _.map(n,function(e,t){return t===n.length-1?e||null:e?decodeURIComponent(e):null})}});var s=function(){this.handlers=[],this.checkUrl=_.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=_global.location,this.history=_global.history)},u=/^[#\/]|\s+$/g,l=/^\/+|\/+$/g,p=/#.*$/;s.started=!1,_.extend(s.prototype,e,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=decodeURI(this.location.pathname+this.getSearch()),t=this.root.slice(0,-1);return e.indexOf(t)||(e=e.slice(t.length)),"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._hasPushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(u,"")},start:function(e){if(s.started)throw new Error("BI.history has already been started");if(s.started=!0,this.options=_.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState),this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(l,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}var n,r;this._hasHashChange||!this._wantsHashChange||this._wantsPushState&&this._hasPushState||((n=document.createElement("iframe")).src="javascript:0",n.style.display="none",n.tabIndex=-1,r=document.body,this.iframe=r.insertBefore(n,r.firstChild).contentWindow,this.iframe.document.open().close(),this.iframe.location.hash="#"+this.fragment);var i=_global.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._hasPushState?i("popstate",this.checkUrl,!1):this._wantsHashChange&&this._hasHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=_global.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._hasPushState?e("popstate",this.checkUrl,!1):this._wantsHashChange&&this._hasHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe.frameElement),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),s.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},unRoute:function(t){var e=_.findIndex(this.handlers,function(e){return e.route.test(t)});-1<e&&this.handlers.splice(e,1)},checkUrl:function(e){var t=this.getFragment();try{t=decodeURIComponent(t)}catch(e){}if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(t){return t=this.fragment=this.getFragment(t),_.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(e,t){if(!s.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+e;if(e=decodeURI(e.replace(p,"")),this.fragment!==e){if(this.fragment=e,this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe)&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){var r;n?(r=e.href.replace(/(javascript:|#).*$/,""),e.replace(r+"#"+t)):e.hash="#"+t}}),BI.history=new s}()},function(e,t){!function(p){var e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],f=Array.prototype.slice,_,h;if(p.event.fixHooks){for(var n=e.length;n;){p.event.fixHooks[e[--n]]=p.event.mouseHooks}}var g=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener){for(var e=t.length;e;){this.addEventListener(t[--e],r,false)}}else{this.onmousewheel=r}},teardown:function(){if(this.removeEventListener){for(var e=t.length;e;){this.removeEventListener(t[--e],r,false)}}else{this.onmousewheel=null}},settings:{adjustOldDeltas:true,normalizeOffset:true}};function r(e){var t=e||_global.event,n=f.call(arguments,1),r=0,i=0,a=0,o=0,s=0,c=0;e=p.event.fix(t);e.type="mousewheel";if("detail"in t){a=t.detail*-1}if("wheelDelta"in t){a=t.wheelDelta}if("wheelDeltaY"in t){a=t.wheelDeltaY}if("wheelDeltaX"in t){i=t.wheelDeltaX*-1}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){i=a*-1;a=0}r=a===0?i:a;if("deltaY"in t){a=t.deltaY*-1;r=a}if("deltaX"in t){i=t.deltaX;if(a===0){r=i*-1}}if(a===0&&i===0){return}if(t.deltaMode===1){var u=40;r*=u;a*=u;i*=u}else if(t.deltaMode===2){var l=800;r*=l;a*=l;i*=l}o=Math.max(Math.abs(a),Math.abs(i));if(!h||o<h){h=o;if(y(t,o)){h/=40}}if(y(t,o)){r/=40;i/=40;a/=40}r=Math[r>=1?"floor":"ceil"](r/h);i=Math[i>=1?"floor":"ceil"](i/h);a=Math[a>=1?"floor":"ceil"](a/h);if(g.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();s=e.clientX-d.left;c=e.clientY-d.top}e.deltaX=i;e.deltaY=a;e.deltaFactor=h;e.offsetX=s;e.offsetY=c;e.deltaMode=0;n.unshift(e,r,i,a);if(_){clearTimeout(_)}_=setTimeout(m,200);return(p.event.dispatch||p.event.handle).apply(this,n)}function m(){h=null}function y(e,t){return g.settings.adjustOldDeltas&&e.type==="mousewheel"&&t%120===0}p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(BI.jQuery)},function(e,t){!function(){var e=" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⺀⺁⺂⺃⺄⺅⺆⺇⺈⺉⺊⺋⺌⺍⺎⺏⺐⺑⺒⺓⺔⺕⺖⺗⺘⺙⺚⺛⺜⺝⺞⺟⺠⺡⺢⺣⺤⺥⺦⺧⺨⺩⺪⺫⺬⺭⺮⺯⺰⺱⺲⺳⺴⺵⺶⺷⺸⺹⺺⺻⺼⺽⺾⺿⻀⻁⻂⻃⻄⻅⻆⻇⻈⻉⻊⻋⻌⻍⻎⻏⻐⻑⻒⻓⻔⻕⻖⻗⻘⻙⻚⻛⻜⻝⻞⻟⻠⻡⻢⻣⻤⻥⻦⻧⻨⻩⻪⻫⻬⻭⻮⻯⻰⻱⻲⻳⻴⻵⻶⻷⻸⻹⻺⻻⻼⻽⻾⻿⼀⼁⼂⼃⼄⼅⼆⼇⼈⼉⼊⼋⼌⼍⼎⼏⼐⼑⼒⼓⼔⼕⼖⼗⼘⼙⼚⼛⼜⼝⼞⼟⼠⼡⼢⼣⼤⼥⼦⼧⼨⼩⼪⼫⼬⼭⼮⼯⼰⼱⼲⼳⼴⼵⼶⼷⼸⼹⼺⼻⼼⼽⼾⼿⽀⽁⽂⽃⽄⽅⽆⽇⽈⽉⽊⽋⽌⽍⽎⽏⽐⽑⽒⽓⽔⽕⽖⽗⽘⽙⽚⽛⽜⽝⽞⽟⽠⽡⽢⽣⽤⽥⽦⽧⽨⽩⽪⽫⽬⽭⽮⽯⽰⽱⽲⽳⽴⽵⽶⽷⽸⽹⽺⽻⽼⽽⽾⽿⾀⾁⾂⾃⾄⾅⾆⾇⾈⾉⾊⾋⾌⾍⾎⾏⾐⾑⾒⾓⾔⾕⾖⾗⾘⾙⾚⾛⾜⾝⾞⾟⾠⾡⾢⾣⾤⾥⾦⾧⾨⾩⾪⾫⾬⾭⾮⾯⾰⾱⾲⾳⾴⾵⾶⾷⾸⾹⾺⾻⾼⾽⾾⾿⿀⿁⿂⿃⿄⿅⿆⿇⿈⿉⿊⿋⿌⿍⿎⿏⿐⿑⿒⿓⿔⿕⿖⿗⿘⿙⿚⿛⿜⿝⿞⿟⿠⿡⿢⿣⿤⿥⿦⿧⿨⿩⿪⿫⿬⿭⿮⿯⿰⿱⿲⿳⿴⿵⿶⿷⿸⿹⿺⿻⿼⿽⿾⿿ 、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟〠〡〢〣〤〥〦〧〨〩〰〱〲〳〴〵〶〷〸〹〺〻〼〽〾〿぀ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをんゔゕゖ゗゘゛゜ゝゞゟ゠ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ㄀㄁㄂㄃㄄ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩㄪㄫㄬㄭㄮㄯ㄰ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅤㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ㆏㆐㆑㆒㆓㆔㆕㆖㆗㆘㆙㆚㆛㆜㆝㆞㆟ㆠㆡㆢㆣㆤㆥㆦㆧㆨㆩㆪㆫㆬㆭㆮㆯㆰㆱㆲㆳㆴㆵㆶㆷㆸㆹㆺㆻㆼㆽㆾㆿ㇀㇁㇂㇃㇄㇅㇆㇇㇈㇉㇊㇋㇌㇍㇎㇏㇐㇑㇒㇓㇔㇕㇖㇗㇘㇙㇚㇛㇜㇝㇞㇟㇠㇡㇢㇣㇤㇥㇦㇧㇨㇩㇪㇫㇬㇭㇮㇯ㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛㈜㈝㈞㈟㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩㈪㈫㈬㈭㈮㈯㈰㈱㈲㈳㈴㈵㈶㈷㈸㈹㈺㈻㈼㈽㈾㈿㉀㉁㉂㉃㉄㉅㉆㉇㉈㉉㉊㉋㉌㉍㉎㉏㉐㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚㉛㉜㉝㉞㉟㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭㉮㉯㉰㉱㉲㉳㉴㉵㉶㉷㉸㉹㉺㉻㉼㉽㉾㉿㊀㊁㊂㊃㊄㊅㊆㊇㊈㊉㊊㊋㊌㊍㊎㊏㊐㊑㊒㊓㊔㊕㊖㊗㊘㊙㊚㊛㊜㊝㊞㊟㊠㊡㊢㊣㊤㊥㊦㊧㊨㊩㊪㊫㊬㊭㊮㊯㊰㊱㊲㊳㊴㊵㊶㊷㊸㊹㊺㊻㊼㊽㊾㊿㋀㋁㋂㋃㋄㋅㋆㋇㋈㋉㋊㋋㋌㋍㋎㋏㋐㋑㋒㋓㋔㋕㋖㋗㋘㋙㋚㋛㋜㋝㋞㋟㋠㋡㋢㋣㋤㋥㋦㋧㋨㋩㋪㋫㋬㋭㋮㋯㋰㋱㋲㋳㋴㋵㋶㋷㋸㋹㋺㋻㋼㋽㋾㋿㌀㌁㌂㌃㌄㌅㌆㌇㌈㌉㌊㌋㌌㌍㌎㌏㌐㌑㌒㌓㌔㌕㌖㌗㌘㌙㌚㌛㌜㌝㌞㌟㌠㌡㌢㌣㌤㌥㌦㌧㌨㌩㌪㌫㌬㌭㌮㌯㌰㌱㌲㌳㌴㌵㌶㌷㌸㌹㌺㌻㌼㌽㌾㌿㍀㍁㍂㍃㍄㍅㍆㍇㍈㍉㍊㍋㍌㍍㍎㍏㍐㍑㍒㍓㍔㍕㍖㍗㍘㍙㍚㍛㍜㍝㍞㍟㍠㍡㍢㍣㍤㍥㍦㍧㍨㍩㍪㍫㍬㍭㍮㍯㍰㍱㍲㍳㍴㍵㍶㍷㍸㍹㍺㍻㍼㍽㍾㍿㎀㎁㎂㎃㎄㎅㎆㎇㎈㎉㎊㎋㎌㎍㎎㎏㎐㎑㎒㎓㎔㎕㎖㎗㎘㎙㎚㎛㎜㎝㎞㎟㎠㎡㎢㎣㎤㎥㎦㎧㎨㎩㎪㎫㎬㎭㎮㎯㎰㎱㎲㎳㎴㎵㎶㎷㎸㎹㎺㎻㎼㎽㎾㎿㏀㏁㏂㏃㏄㏅㏆㏇㏈㏉㏊㏋㏌㏍㏎㏏㏐㏑㏒㏓㏔㏕㏖㏗㏘㏙㏚㏛㏜㏝㏞㏟㏠㏡㏢㏣㏤㏥㏦㏧㏨㏩㏪㏫㏬㏭㏮㏯㏰㏱㏲㏳㏴㏵㏶㏷㏸㏹㏺㏻㏼㏽㏾㏿㐀㐁㐂㐃㐄㐅㐆㐇㐈㐉㐊㐋㐌㐍㐎㐏㐐㐑㐒㐓㐔㐕㐖㐗㐘㐙㐚㐛㐜㐝㐞㐟㐠㐡㐢㐣㐤㐥㐦㐧㐨㐩㐪㐫㐬㐭㐮㐯㐰㐱㐲㐳㐴㐵㐶㐷㐸㐹㐺㐻㐼㐽㐾㐿㑀㑁㑂㑃㑄㑅㑆㑇㑈㑉㑊㑋㑌㑍㑎㑏㑐㑑㑒㑓㑔㑕㑖㑗㑘㑙㑚㑛㑜㑝㑞㑟㑠㑡㑢㑣㑤㑥㑦㑧㑨㑩㑪㑫㑬㑭㑮㑯㑰㑱㑲㑳㑴㑵㑶㑷㑸㑹㑺㑻㑼㑽㑾㑿㒀㒁㒂㒃㒄㒅㒆㒇㒈㒉㒊㒋㒌㒍㒎㒏㒐㒑㒒㒓㒔㒕㒖㒗㒘㒙㒚㒛㒜㒝㒞㒟㒠㒡㒢㒣㒤㒥㒦㒧㒨㒩㒪㒫㒬㒭㒮㒯㒰㒱㒲㒳㒴㒵㒶㒷㒸㒹㒺㒻㒼㒽㒾㒿㓀㓁㓂㓃㓄㓅㓆㓇㓈㓉㓊㓋㓌㓍㓎㓏㓐㓑㓒㓓㓔㓕㓖㓗㓘㓙㓚㓛㓜㓝㓞㓟㓠㓡㓢㓣㓤㓥㓦㓧㓨㓩㓪㓫㓬㓭㓮㓯㓰㓱㓲㓳㓴㓵㓶㓷㓸㓹㓺㓻㓼㓽㓾㓿㔀㔁㔂㔃㔄㔅㔆㔇㔈㔉㔊㔋㔌㔍㔎㔏㔐㔑㔒㔓㔔㔕㔖㔗㔘㔙㔚㔛㔜㔝㔞㔟㔠㔡㔢㔣㔤㔥㔦㔧㔨㔩㔪㔫㔬㔭㔮㔯㔰㔱㔲㔳㔴㔵㔶㔷㔸㔹㔺㔻㔼㔽㔾㔿㕀㕁㕂㕃㕄㕅㕆㕇㕈㕉㕊㕋㕌㕍㕎㕏㕐㕑㕒㕓㕔㕕㕖㕗㕘㕙㕚㕛㕜㕝㕞㕟㕠㕡㕢㕣㕤㕥㕦㕧㕨㕩㕪㕫㕬㕭㕮㕯㕰㕱㕲㕳㕴㕵㕶㕷㕸㕹㕺㕻㕼㕽㕾㕿㖀㖁㖂㖃㖄㖅㖆㖇㖈㖉㖊㖋㖌㖍㖎㖏㖐㖑㖒㖓㖔㖕㖖㖗㖘㖙㖚㖛㖜㖝㖞㖟㖠㖡㖢㖣㖤㖥㖦㖧㖨㖩㖪㖫㖬㖭㖮㖯㖰㖱㖲㖳㖴㖵㖶㖷㖸㖹㖺㖻㖼㖽㖾㖿㗀㗁㗂㗃㗄㗅㗆㗇㗈㗉㗊㗋㗌㗍㗎㗏㗐㗑㗒㗓㗔㗕㗖㗗㗘㗙㗚㗛㗜㗝㗞㗟㗠㗡㗢㗣㗤㗥㗦㗧㗨㗩㗪㗫㗬㗭㗮㗯㗰㗱㗲㗳㗴㗵㗶㗷㗸㗹㗺㗻㗼㗽㗾㗿㘀㘁㘂㘃㘄㘅㘆㘇㘈㘉㘊㘋㘌㘍㘎㘏㘐㘑㘒㘓㘔㘕㘖㘗㘘㘙㘚㘛㘜㘝㘞㘟㘠㘡㘢㘣㘤㘥㘦㘧㘨㘩㘪㘫㘬㘭㘮㘯㘰㘱㘲㘳㘴㘵㘶㘷㘸㘹㘺㘻㘼㘽㘾㘿㙀㙁㙂㙃㙄㙅㙆㙇㙈㙉㙊㙋㙌㙍㙎㙏㙐㙑㙒㙓㙔㙕㙖㙗㙘㙙㙚㙛㙜㙝㙞㙟㙠㙡㙢㙣㙤㙥㙦㙧㙨㙩㙪㙫㙬㙭㙮㙯㙰㙱㙲㙳㙴㙵㙶㙷㙸㙹㙺㙻㙼㙽㙾㙿㚀㚁㚂㚃㚄㚅㚆㚇㚈㚉㚊㚋㚌㚍㚎㚏㚐㚑㚒㚓㚔㚕㚖㚗㚘㚙㚚㚛㚜㚝㚞㚟㚠㚡㚢㚣㚤㚥㚦㚧㚨㚩㚪㚫㚬㚭㚮㚯㚰㚱㚲㚳㚴㚵㚶㚷㚸㚹㚺㚻㚼㚽㚾㚿㛀㛁㛂㛃㛄㛅㛆㛇㛈㛉㛊㛋㛌㛍㛎㛏㛐㛑㛒㛓㛔㛕㛖㛗㛘㛙㛚㛛㛜㛝㛞㛟㛠㛡㛢㛣㛤㛥㛦㛧㛨㛩㛪㛫㛬㛭㛮㛯㛰㛱㛲㛳㛴㛵㛶㛷㛸㛹㛺㛻㛼㛽㛾㛿㜀㜁㜂㜃㜄㜅㜆㜇㜈㜉㜊㜋㜌㜍㜎㜏㜐㜑㜒㜓㜔㜕㜖㜗㜘㜙㜚㜛㜜㜝㜞㜟㜠㜡㜢㜣㜤㜥㜦㜧㜨㜩㜪㜫㜬㜭㜮㜯㜰㜱㜲㜳㜴㜵㜶㜷㜸㜹㜺㜻㜼㜽㜾㜿㝀㝁㝂㝃㝄㝅㝆㝇㝈㝉㝊㝋㝌㝍㝎㝏㝐㝑㝒㝓㝔㝕㝖㝗㝘㝙㝚㝛㝜㝝㝞㝟㝠㝡㝢㝣㝤㝥㝦㝧㝨㝩㝪㝫㝬㝭㝮㝯㝰㝱㝲㝳㝴㝵㝶㝷㝸㝹㝺㝻㝼㝽㝾㝿㞀㞁㞂㞃㞄㞅㞆㞇㞈㞉㞊㞋㞌㞍㞎㞏㞐㞑㞒㞓㞔㞕㞖㞗㞘㞙㞚㞛㞜㞝㞞㞟㞠㞡㞢㞣㞤㞥㞦㞧㞨㞩㞪㞫㞬㞭㞮㞯㞰㞱㞲㞳㞴㞵㞶㞷㞸㞹㞺㞻㞼㞽㞾㞿㟀㟁㟂㟃㟄㟅㟆㟇㟈㟉㟊㟋㟌㟍㟎㟏㟐㟑㟒㟓㟔㟕㟖㟗㟘㟙㟚㟛㟜㟝㟞㟟㟠㟡㟢㟣㟤㟥㟦㟧㟨㟩㟪㟫㟬㟭㟮㟯㟰㟱㟲㟳㟴㟵㟶㟷㟸㟹㟺㟻㟼㟽㟾㟿㠀㠁㠂㠃㠄㠅㠆㠇㠈㠉㠊㠋㠌㠍㠎㠏㠐㠑㠒㠓㠔㠕㠖㠗㠘㠙㠚㠛㠜㠝㠞㠟㠠㠡㠢㠣㠤㠥㠦㠧㠨㠩㠪㠫㠬㠭㠮㠯㠰㠱㠲㠳㠴㠵㠶㠷㠸㠹㠺㠻㠼㠽㠾㠿㡀㡁㡂㡃㡄㡅㡆㡇㡈㡉㡊㡋㡌㡍㡎㡏㡐㡑㡒㡓㡔㡕㡖㡗㡘㡙㡚㡛㡜㡝㡞㡟㡠㡡㡢㡣㡤㡥㡦㡧㡨㡩㡪㡫㡬㡭㡮㡯㡰㡱㡲㡳㡴㡵㡶㡷㡸㡹㡺㡻㡼㡽㡾㡿㢀㢁㢂㢃㢄㢅㢆㢇㢈㢉㢊㢋㢌㢍㢎㢏㢐㢑㢒㢓㢔㢕㢖㢗㢘㢙㢚㢛㢜㢝㢞㢟㢠㢡㢢㢣㢤㢥㢦㢧㢨㢩㢪㢫㢬㢭㢮㢯㢰㢱㢲㢳㢴㢵㢶㢷㢸㢹㢺㢻㢼㢽㢾㢿㣀㣁㣂㣃㣄㣅㣆㣇㣈㣉㣊㣋㣌㣍㣎㣏㣐㣑㣒㣓㣔㣕㣖㣗㣘㣙㣚㣛㣜㣝㣞㣟㣠㣡㣢㣣㣤㣥㣦㣧㣨㣩㣪㣫㣬㣭㣮㣯㣰㣱㣲㣳㣴㣵㣶㣷㣸㣹㣺㣻㣼㣽㣾㣿㤀㤁㤂㤃㤄㤅㤆㤇㤈㤉㤊㤋㤌㤍㤎㤏㤐㤑㤒㤓㤔㤕㤖㤗㤘㤙㤚㤛㤜㤝㤞㤟㤠㤡㤢㤣㤤㤥㤦㤧㤨㤩㤪㤫㤬㤭㤮㤯㤰㤱㤲㤳㤴㤵㤶㤷㤸㤹㤺㤻㤼㤽㤾㤿㥀㥁㥂㥃㥄㥅㥆㥇㥈㥉㥊㥋㥌㥍㥎㥏㥐㥑㥒㥓㥔㥕㥖㥗㥘㥙㥚㥛㥜㥝㥞㥟㥠㥡㥢㥣㥤㥥㥦㥧㥨㥩㥪㥫㥬㥭㥮㥯㥰㥱㥲㥳㥴㥵㥶㥷㥸㥹㥺㥻㥼㥽㥾㥿㦀㦁㦂㦃㦄㦅㦆㦇㦈㦉㦊㦋㦌㦍㦎㦏㦐㦑㦒㦓㦔㦕㦖㦗㦘㦙㦚㦛㦜㦝㦞㦟㦠㦡㦢㦣㦤㦥㦦㦧㦨㦩㦪㦫㦬㦭㦮㦯㦰㦱㦲㦳㦴㦵㦶㦷㦸㦹㦺㦻㦼㦽㦾㦿㧀㧁㧂㧃㧄㧅㧆㧇㧈㧉㧊㧋㧌㧍㧎㧏㧐㧑㧒㧓㧔㧕㧖㧗㧘㧙㧚㧛㧜㧝㧞㧟㧠㧡㧢㧣㧤㧥㧦㧧㧨㧩㧪㧫㧬㧭㧮㧯㧰㧱㧲㧳㧴㧵㧶㧷㧸㧹㧺㧻㧼㧽㧾㧿㨀㨁㨂㨃㨄㨅㨆㨇㨈㨉㨊㨋㨌㨍㨎㨏㨐㨑㨒㨓㨔㨕㨖㨗㨘㨙㨚㨛㨜㨝㨞㨟㨠㨡㨢㨣㨤㨥㨦㨧㨨㨩㨪㨫㨬㨭㨮㨯㨰㨱㨲㨳㨴㨵㨶㨷㨸㨹㨺㨻㨼㨽㨾㨿㩀㩁㩂㩃㩄㩅㩆㩇㩈㩉㩊㩋㩌㩍㩎㩏㩐㩑㩒㩓㩔㩕㩖㩗㩘㩙㩚㩛㩜㩝㩞㩟㩠㩡㩢㩣㩤㩥㩦㩧㩨㩩㩪㩫㩬㩭㩮㩯㩰㩱㩲㩳㩴㩵㩶㩷㩸㩹㩺㩻㩼㩽㩾㩿㪀㪁㪂㪃㪄㪅㪆㪇㪈㪉㪊㪋㪌㪍㪎㪏㪐㪑㪒㪓㪔㪕㪖㪗㪘㪙㪚㪛㪜㪝㪞㪟㪠㪡㪢㪣㪤㪥㪦㪧㪨㪩㪪㪫㪬㪭㪮㪯㪰㪱㪲㪳㪴㪵㪶㪷㪸㪹㪺㪻㪼㪽㪾㪿㫀㫁㫂㫃㫄㫅㫆㫇㫈㫉㫊㫋㫌㫍㫎㫏㫐㫑㫒㫓㫔㫕㫖㫗㫘㫙㫚㫛㫜㫝㫞㫟㫠㫡㫢㫣㫤㫥㫦㫧㫨㫩㫪㫫㫬㫭㫮㫯㫰㫱㫲㫳㫴㫵㫶㫷㫸㫹㫺㫻㫼㫽㫾㫿㬀㬁㬂㬃㬄㬅㬆㬇㬈㬉㬊㬋㬌㬍㬎㬏㬐㬑㬒㬓㬔㬕㬖㬗㬘㬙㬚㬛㬜㬝㬞㬟㬠㬡㬢㬣㬤㬥㬦㬧㬨㬩㬪㬫㬬㬭㬮㬯㬰㬱㬲㬳㬴㬵㬶㬷㬸㬹㬺㬻㬼㬽㬾㬿㭀㭁㭂㭃㭄㭅㭆㭇㭈㭉㭊㭋㭌㭍㭎㭏㭐㭑㭒㭓㭔㭕㭖㭗㭘㭙㭚㭛㭜㭝㭞㭟㭠㭡㭢㭣㭤㭥㭦㭧㭨㭩㭪㭫㭬㭭㭮㭯㭰㭱㭲㭳㭴㭵㭶㭷㭸㭹㭺㭻㭼㭽㭾㭿㮀㮁㮂㮃㮄㮅㮆㮇㮈㮉㮊㮋㮌㮍㮎㮏㮐㮑㮒㮓㮔㮕㮖㮗㮘㮙㮚㮛㮜㮝㮞㮟㮠㮡㮢㮣㮤㮥㮦㮧㮨㮩㮪㮫㮬㮭㮮㮯㮰㮱㮲㮳㮴㮵㮶㮷㮸㮹㮺㮻㮼㮽㮾㮿㯀㯁㯂㯃㯄㯅㯆㯇㯈㯉㯊㯋㯌㯍㯎㯏㯐㯑㯒㯓㯔㯕㯖㯗㯘㯙㯚㯛㯜㯝㯞㯟㯠㯡㯢㯣㯤㯥㯦㯧㯨㯩㯪㯫㯬㯭㯮㯯㯰㯱㯲㯳㯴㯵㯶㯷㯸㯹㯺㯻㯼㯽㯾㯿㰀㰁㰂㰃㰄㰅㰆㰇㰈㰉㰊㰋㰌㰍㰎㰏㰐㰑㰒㰓㰔㰕㰖㰗㰘㰙㰚㰛㰜㰝㰞㰟㰠㰡㰢㰣㰤㰥㰦㰧㰨㰩㰪㰫㰬㰭㰮㰯㰰㰱㰲㰳㰴㰵㰶㰷㰸㰹㰺㰻㰼㰽㰾㰿㱀㱁㱂㱃㱄㱅㱆㱇㱈㱉㱊㱋㱌㱍㱎㱏㱐㱑㱒㱓㱔㱕㱖㱗㱘㱙㱚㱛㱜㱝㱞㱟㱠㱡㱢㱣㱤㱥㱦㱧㱨㱩㱪㱫㱬㱭㱮㱯㱰㱱㱲㱳㱴㱵㱶㱷㱸㱹㱺㱻㱼㱽㱾㱿㲀㲁㲂㲃㲄㲅㲆㲇㲈㲉㲊㲋㲌㲍㲎㲏㲐㲑㲒㲓㲔㲕㲖㲗㲘㲙㲚㲛㲜㲝㲞㲟㲠㲡㲢㲣㲤㲥㲦㲧㲨㲩㲪㲫㲬㲭㲮㲯㲰㲱㲲㲳㲴㲵㲶㲷㲸㲹㲺㲻㲼㲽㲾㲿㳀㳁㳂㳃㳄㳅㳆㳇㳈㳉㳊㳋㳌㳍㳎㳏㳐㳑㳒㳓㳔㳕㳖㳗㳘㳙㳚㳛㳜㳝㳞㳟㳠㳡㳢㳣㳤㳥㳦㳧㳨㳩㳪㳫㳬㳭㳮㳯㳰㳱㳲㳳㳴㳵㳶㳷㳸㳹㳺㳻㳼㳽㳾㳿㴀㴁㴂㴃㴄㴅㴆㴇㴈㴉㴊㴋㴌㴍㴎㴏㴐㴑㴒㴓㴔㴕㴖㴗㴘㴙㴚㴛㴜㴝㴞㴟㴠㴡㴢㴣㴤㴥㴦㴧㴨㴩㴪㴫㴬㴭㴮㴯㴰㴱㴲㴳㴴㴵㴶㴷㴸㴹㴺㴻㴼㴽㴾㴿㵀㵁㵂㵃㵄㵅㵆㵇㵈㵉㵊㵋㵌㵍㵎㵏㵐㵑㵒㵓㵔㵕㵖㵗㵘㵙㵚㵛㵜㵝㵞㵟㵠㵡㵢㵣㵤㵥㵦㵧㵨㵩㵪㵫㵬㵭㵮㵯㵰㵱㵲㵳㵴㵵㵶㵷㵸㵹㵺㵻㵼㵽㵾㵿㶀㶁㶂㶃㶄㶅㶆㶇㶈㶉㶊㶋㶌㶍㶎㶏㶐㶑㶒㶓㶔㶕㶖㶗㶘㶙㶚㶛㶜㶝㶞㶟㶠㶡㶢㶣㶤㶥㶦㶧㶨㶩㶪㶫㶬㶭㶮㶯㶰㶱㶲㶳㶴㶵㶶㶷㶸㶹㶺㶻㶼㶽㶾㶿㷀㷁㷂㷃㷄㷅㷆㷇㷈㷉㷊㷋㷌㷍㷎㷏㷐㷑㷒㷓㷔㷕㷖㷗㷘㷙㷚㷛㷜㷝㷞㷟㷠㷡㷢㷣㷤㷥㷦㷧㷨㷩㷪㷫㷬㷭㷮㷯㷰㷱㷲㷳㷴㷵㷶㷷㷸㷹㷺㷻㷼㷽㷾㷿㸀㸁㸂㸃㸄㸅㸆㸇㸈㸉㸊㸋㸌㸍㸎㸏㸐㸑㸒㸓㸔㸕㸖㸗㸘㸙㸚㸛㸜㸝㸞㸟㸠㸡㸢㸣㸤㸥㸦㸧㸨㸩㸪㸫㸬㸭㸮㸯㸰㸱㸲㸳㸴㸵㸶㸷㸸㸹㸺㸻㸼㸽㸾㸿㹀㹁㹂㹃㹄㹅㹆㹇㹈㹉㹊㹋㹌㹍㹎㹏㹐㹑㹒㹓㹔㹕㹖㹗㹘㹙㹚㹛㹜㹝㹞㹟㹠㹡㹢㹣㹤㹥㹦㹧㹨㹩㹪㹫㹬㹭㹮㹯㹰㹱㹲㹳㹴㹵㹶㹷㹸㹹㹺㹻㹼㹽㹾㹿㺀㺁㺂㺃㺄㺅㺆㺇㺈㺉㺊㺋㺌㺍㺎㺏㺐㺑㺒㺓㺔㺕㺖㺗㺘㺙㺚㺛㺜㺝㺞㺟㺠㺡㺢㺣㺤㺥㺦㺧㺨㺩㺪㺫㺬㺭㺮㺯㺰㺱㺲㺳㺴㺵㺶㺷㺸㺹㺺㺻㺼㺽㺾㺿㻀㻁㻂㻃㻄㻅㻆㻇㻈㻉㻊㻋㻌㻍㻎㻏㻐㻑㻒㻓㻔㻕㻖㻗㻘㻙㻚㻛㻜㻝㻞㻟㻠㻡㻢㻣㻤㻥㻦㻧㻨㻩㻪㻫㻬㻭㻮㻯㻰㻱㻲㻳㻴㻵㻶㻷㻸㻹㻺㻻㻼㻽㻾㻿㼀㼁㼂㼃㼄㼅㼆㼇㼈㼉㼊㼋㼌㼍㼎㼏㼐㼑㼒㼓㼔㼕㼖㼗㼘㼙㼚㼛㼜㼝㼞㼟㼠㼡㼢㼣㼤㼥㼦㼧㼨㼩㼪㼫㼬㼭㼮㼯㼰㼱㼲㼳㼴㼵㼶㼷㼸㼹㼺㼻㼼㼽㼾㼿㽀㽁㽂㽃㽄㽅㽆㽇㽈㽉㽊㽋㽌㽍㽎㽏㽐㽑㽒㽓㽔㽕㽖㽗㽘㽙㽚㽛㽜㽝㽞㽟㽠㽡㽢㽣㽤㽥㽦㽧㽨㽩㽪㽫㽬㽭㽮㽯㽰㽱㽲㽳㽴㽵㽶㽷㽸㽹㽺㽻㽼㽽㽾㽿㾀㾁㾂㾃㾄㾅㾆㾇㾈㾉㾊㾋㾌㾍㾎㾏㾐㾑㾒㾓㾔㾕㾖㾗㾘㾙㾚㾛㾜㾝㾞㾟㾠㾡㾢㾣㾤㾥㾦㾧㾨㾩㾪㾫㾬㾭㾮㾯㾰㾱㾲㾳㾴㾵㾶㾷㾸㾹㾺㾻㾼㾽㾾㾿㿀㿁㿂㿃㿄㿅㿆㿇㿈㿉㿊㿋㿌㿍㿎㿏㿐㿑㿒㿓㿔㿕㿖㿗㿘㿙㿚㿛㿜㿝㿞㿟㿠㿡㿢㿣㿤㿥㿦㿧㿨㿩㿪㿫㿬㿭㿮㿯㿰㿱㿲㿳㿴㿵㿶㿷㿸㿹㿺㿻㿼㿽㿾㿿䀀䀁䀂䀃䀄䀅䀆䀇䀈䀉䀊䀋䀌䀍䀎䀏䀐䀑䀒䀓䀔䀕䀖䀗䀘䀙䀚䀛䀜䀝䀞䀟䀠䀡䀢䀣䀤䀥䀦䀧䀨䀩䀪䀫䀬䀭䀮䀯䀰䀱䀲䀳䀴䀵䀶䀷䀸䀹䀺䀻䀼䀽䀾䀿䁀䁁䁂䁃䁄䁅䁆䁇䁈䁉䁊䁋䁌䁍䁎䁏䁐䁑䁒䁓䁔䁕䁖䁗䁘䁙䁚䁛䁜䁝䁞䁟䁠䁡䁢䁣䁤䁥䁦䁧䁨䁩䁪䁫䁬䁭䁮䁯䁰䁱䁲䁳䁴䁵䁶䁷䁸䁹䁺䁻䁼䁽䁾䁿䂀䂁䂂䂃䂄䂅䂆䂇䂈䂉䂊䂋䂌䂍䂎䂏䂐䂑䂒䂓䂔䂕䂖䂗䂘䂙䂚䂛䂜䂝䂞䂟䂠䂡䂢䂣䂤䂥䂦䂧䂨䂩䂪䂫䂬䂭䂮䂯䂰䂱䂲䂳䂴䂵䂶䂷䂸䂹䂺䂻䂼䂽䂾䂿䃀䃁䃂䃃䃄䃅䃆䃇䃈䃉䃊䃋䃌䃍䃎䃏䃐䃑䃒䃓䃔䃕䃖䃗䃘䃙䃚䃛䃜䃝䃞䃟䃠䃡䃢䃣䃤䃥䃦䃧䃨䃩䃪䃫䃬䃭䃮䃯䃰䃱䃲䃳䃴䃵䃶䃷䃸䃹䃺䃻䃼䃽䃾䃿䄀䄁䄂䄃䄄䄅䄆䄇䄈䄉䄊䄋䄌䄍䄎䄏䄐䄑䄒䄓䄔䄕䄖䄗䄘䄙䄚䄛䄜䄝䄞䄟䄠䄡䄢䄣䄤䄥䄦䄧䄨䄩䄪䄫䄬䄭䄮䄯䄰䄱䄲䄳䄴䄵䄶䄷䄸䄹䄺䄻䄼䄽䄾䄿䅀䅁䅂䅃䅄䅅䅆䅇䅈䅉䅊䅋䅌䅍䅎䅏䅐䅑䅒䅓䅔䅕䅖䅗䅘䅙䅚䅛䅜䅝䅞䅟䅠䅡䅢䅣䅤䅥䅦䅧䅨䅩䅪䅫䅬䅭䅮䅯䅰䅱䅲䅳䅴䅵䅶䅷䅸䅹䅺䅻䅼䅽䅾䅿䆀䆁䆂䆃䆄䆅䆆䆇䆈䆉䆊䆋䆌䆍䆎䆏䆐䆑䆒䆓䆔䆕䆖䆗䆘䆙䆚䆛䆜䆝䆞䆟䆠䆡䆢䆣䆤䆥䆦䆧䆨䆩䆪䆫䆬䆭䆮䆯䆰䆱䆲䆳䆴䆵䆶䆷䆸䆹䆺䆻䆼䆽䆾䆿䇀䇁䇂䇃䇄䇅䇆䇇䇈䇉䇊䇋䇌䇍䇎䇏䇐䇑䇒䇓䇔䇕䇖䇗䇘䇙䇚䇛䇜䇝䇞䇟䇠䇡䇢䇣䇤䇥䇦䇧䇨䇩䇪䇫䇬䇭䇮䇯䇰䇱䇲䇳䇴䇵䇶䇷䇸䇹䇺䇻䇼䇽䇾䇿䈀䈁䈂䈃䈄䈅䈆䈇䈈䈉䈊䈋䈌䈍䈎䈏䈐䈑䈒䈓䈔䈕䈖䈗䈘䈙䈚䈛䈜䈝䈞䈟䈠䈡䈢䈣䈤䈥䈦䈧䈨䈩䈪䈫䈬䈭䈮䈯䈰䈱䈲䈳䈴䈵䈶䈷䈸䈹䈺䈻䈼䈽䈾䈿䉀䉁䉂䉃䉄䉅䉆䉇䉈䉉䉊䉋䉌䉍䉎䉏䉐䉑䉒䉓䉔䉕䉖䉗䉘䉙䉚䉛䉜䉝䉞䉟䉠䉡䉢䉣䉤䉥䉦䉧䉨䉩䉪䉫䉬䉭䉮䉯䉰䉱䉲䉳䉴䉵䉶䉷䉸䉹䉺䉻䉼䉽䉾䉿䊀䊁䊂䊃䊄䊅䊆䊇䊈䊉䊊䊋䊌䊍䊎䊏䊐䊑䊒䊓䊔䊕䊖䊗䊘䊙䊚䊛䊜䊝䊞䊟䊠䊡䊢䊣䊤䊥䊦䊧䊨䊩䊪䊫䊬䊭䊮䊯䊰䊱䊲䊳䊴䊵䊶䊷䊸䊹䊺䊻䊼䊽䊾䊿䋀䋁䋂䋃䋄䋅䋆䋇䋈䋉䋊䋋䋌䋍䋎䋏䋐䋑䋒䋓䋔䋕䋖䋗䋘䋙䋚䋛䋜䋝䋞䋟䋠䋡䋢䋣䋤䋥䋦䋧䋨䋩䋪䋫䋬䋭䋮䋯䋰䋱䋲䋳䋴䋵䋶䋷䋸䋹䋺䋻䋼䋽䋾䋿䌀䌁䌂䌃䌄䌅䌆䌇䌈䌉䌊䌋䌌䌍䌎䌏䌐䌑䌒䌓䌔䌕䌖䌗䌘䌙䌚䌛䌜䌝䌞䌟䌠䌡䌢䌣䌤䌥䌦䌧䌨䌩䌪䌫䌬䌭䌮䌯䌰䌱䌲䌳䌴䌵䌶䌷䌸䌹䌺䌻䌼䌽䌾䌿䍀䍁䍂䍃䍄䍅䍆䍇䍈䍉䍊䍋䍌䍍䍎䍏䍐䍑䍒䍓䍔䍕䍖䍗䍘䍙䍚䍛䍜䍝䍞䍟䍠䍡䍢䍣䍤䍥䍦䍧䍨䍩䍪䍫䍬䍭䍮䍯䍰䍱䍲䍳䍴䍵䍶䍷䍸䍹䍺䍻䍼䍽䍾䍿䎀䎁䎂䎃䎄䎅䎆䎇䎈䎉䎊䎋䎌䎍䎎䎏䎐䎑䎒䎓䎔䎕䎖䎗䎘䎙䎚䎛䎜䎝䎞䎟䎠䎡䎢䎣䎤䎥䎦䎧䎨䎩䎪䎫䎬䎭䎮䎯䎰䎱䎲䎳䎴䎵䎶䎷䎸䎹䎺䎻䎼䎽䎾䎿䏀䏁䏂䏃䏄䏅䏆䏇䏈䏉䏊䏋䏌䏍䏎䏏䏐䏑䏒䏓䏔䏕䏖䏗䏘䏙䏚䏛䏜䏝䏞䏟䏠䏡䏢䏣䏤䏥䏦䏧䏨䏩䏪䏫䏬䏭䏮䏯䏰䏱䏲䏳䏴䏵䏶䏷䏸䏹䏺䏻䏼䏽䏾䏿䐀䐁䐂䐃䐄䐅䐆䐇䐈䐉䐊䐋䐌䐍䐎䐏䐐䐑䐒䐓䐔䐕䐖䐗䐘䐙䐚䐛䐜䐝䐞䐟䐠䐡䐢䐣䐤䐥䐦䐧䐨䐩䐪䐫䐬䐭䐮䐯䐰䐱䐲䐳䐴䐵䐶䐷䐸䐹䐺䐻䐼䐽䐾䐿䑀䑁䑂䑃䑄䑅䑆䑇䑈䑉䑊䑋䑌䑍䑎䑏䑐䑑䑒䑓䑔䑕䑖䑗䑘䑙䑚䑛䑜䑝䑞䑟䑠䑡䑢䑣䑤䑥䑦䑧䑨䑩䑪䑫䑬䑭䑮䑯䑰䑱䑲䑳䑴䑵䑶䑷䑸䑹䑺䑻䑼䑽䑾䑿䒀䒁䒂䒃䒄䒅䒆䒇䒈䒉䒊䒋䒌䒍䒎䒏䒐䒑䒒䒓䒔䒕䒖䒗䒘䒙䒚䒛䒜䒝䒞䒟䒠䒡䒢䒣䒤䒥䒦䒧䒨䒩䒪䒫䒬䒭䒮䒯䒰䒱䒲䒳䒴䒵䒶䒷䒸䒹䒺䒻䒼䒽䒾䒿䓀䓁䓂䓃䓄䓅䓆䓇䓈䓉䓊䓋䓌䓍䓎䓏䓐䓑䓒䓓䓔䓕䓖䓗䓘䓙䓚䓛䓜䓝䓞䓟䓠䓡䓢䓣䓤䓥䓦䓧䓨䓩䓪䓫䓬䓭䓮䓯䓰䓱䓲䓳䓴䓵䓶䓷䓸䓹䓺䓻䓼䓽䓾䓿䔀䔁䔂䔃䔄䔅䔆䔇䔈䔉䔊䔋䔌䔍䔎䔏䔐䔑䔒䔓䔔䔕䔖䔗䔘䔙䔚䔛䔜䔝䔞䔟䔠䔡䔢䔣䔤䔥䔦䔧䔨䔩䔪䔫䔬䔭䔮䔯䔰䔱䔲䔳䔴䔵䔶䔷䔸䔹䔺䔻䔼䔽䔾䔿䕀䕁䕂䕃䕄䕅䕆䕇䕈䕉䕊䕋䕌䕍䕎䕏䕐䕑䕒䕓䕔䕕䕖䕗䕘䕙䕚䕛䕜䕝䕞䕟䕠䕡䕢䕣䕤䕥䕦䕧䕨䕩䕪䕫䕬䕭䕮䕯䕰䕱䕲䕳䕴䕵䕶䕷䕸䕹䕺䕻䕼䕽䕾䕿䖀䖁䖂䖃䖄䖅䖆䖇䖈䖉䖊䖋䖌䖍䖎䖏䖐䖑䖒䖓䖔䖕䖖䖗䖘䖙䖚䖛䖜䖝䖞䖟䖠䖡䖢䖣䖤䖥䖦䖧䖨䖩䖪䖫䖬䖭䖮䖯䖰䖱䖲䖳䖴䖵䖶䖷䖸䖹䖺䖻䖼䖽䖾䖿䗀䗁䗂䗃䗄䗅䗆䗇䗈䗉䗊䗋䗌䗍䗎䗏䗐䗑䗒䗓䗔䗕䗖䗗䗘䗙䗚䗛䗜䗝䗞䗟䗠䗡䗢䗣䗤䗥䗦䗧䗨䗩䗪䗫䗬䗭䗮䗯䗰䗱䗲䗳䗴䗵䗶䗷䗸䗹䗺䗻䗼䗽䗾䗿䘀䘁䘂䘃䘄䘅䘆䘇䘈䘉䘊䘋䘌䘍䘎䘏䘐䘑䘒䘓䘔䘕䘖䘗䘘䘙䘚䘛䘜䘝䘞䘟䘠䘡䘢䘣䘤䘥䘦䘧䘨䘩䘪䘫䘬䘭䘮䘯䘰䘱䘲䘳䘴䘵䘶䘷䘸䘹䘺䘻䘼䘽䘾䘿䙀䙁䙂䙃䙄䙅䙆䙇䙈䙉䙊䙋䙌䙍䙎䙏䙐䙑䙒䙓䙔䙕䙖䙗䙘䙙䙚䙛䙜䙝䙞䙟䙠䙡䙢䙣䙤䙥䙦䙧䙨䙩䙪䙫䙬䙭䙮䙯䙰䙱䙲䙳䙴䙵䙶䙷䙸䙹䙺䙻䙼䙽䙾䙿䚀䚁䚂䚃䚄䚅䚆䚇䚈䚉䚊䚋䚌䚍䚎䚏䚐䚑䚒䚓䚔䚕䚖䚗䚘䚙䚚䚛䚜䚝䚞䚟䚠䚡䚢䚣䚤䚥䚦䚧䚨䚩䚪䚫䚬䚭䚮䚯䚰䚱䚲䚳䚴䚵䚶䚷䚸䚹䚺䚻䚼䚽䚾䚿䛀䛁䛂䛃䛄䛅䛆䛇䛈䛉䛊䛋䛌䛍䛎䛏䛐䛑䛒䛓䛔䛕䛖䛗䛘䛙䛚䛛䛜䛝䛞䛟䛠䛡䛢䛣䛤䛥䛦䛧䛨䛩䛪䛫䛬䛭䛮䛯䛰䛱䛲䛳䛴䛵䛶䛷䛸䛹䛺䛻䛼䛽䛾䛿䜀䜁䜂䜃䜄䜅䜆䜇䜈䜉䜊䜋䜌䜍䜎䜏䜐䜑䜒䜓䜔䜕䜖䜗䜘䜙䜚䜛䜜䜝䜞䜟䜠䜡䜢䜣䜤䜥䜦䜧䜨䜩䜪䜫䜬䜭䜮䜯䜰䜱䜲䜳䜴䜵䜶䜷䜸䜹䜺䜻䜼䜽䜾䜿䝀䝁䝂䝃䝄䝅䝆䝇䝈䝉䝊䝋䝌䝍䝎䝏䝐䝑䝒䝓䝔䝕䝖䝗䝘䝙䝚䝛䝜䝝䝞䝟䝠䝡䝢䝣䝤䝥䝦䝧䝨䝩䝪䝫䝬䝭䝮䝯䝰䝱䝲䝳䝴䝵䝶䝷䝸䝹䝺䝻䝼䝽䝾䝿䞀䞁䞂䞃䞄䞅䞆䞇䞈䞉䞊䞋䞌䞍䞎䞏䞐䞑䞒䞓䞔䞕䞖䞗䞘䞙䞚䞛䞜䞝䞞䞟䞠䞡䞢䞣䞤䞥䞦䞧䞨䞩䞪䞫䞬䞭䞮䞯䞰䞱䞲䞳䞴䞵䞶䞷䞸䞹䞺䞻䞼䞽䞾䞿䟀䟁䟂䟃䟄䟅䟆䟇䟈䟉䟊䟋䟌䟍䟎䟏䟐䟑䟒䟓䟔䟕䟖䟗䟘䟙䟚䟛䟜䟝䟞䟟䟠䟡䟢䟣䟤䟥䟦䟧䟨䟩䟪䟫䟬䟭䟮䟯䟰䟱䟲䟳䟴䟵䟶䟷䟸䟹䟺䟻䟼䟽䟾䟿䠀䠁䠂䠃䠄䠅䠆䠇䠈䠉䠊䠋䠌䠍䠎䠏䠐䠑䠒䠓䠔䠕䠖䠗䠘䠙䠚䠛䠜䠝䠞䠟䠠䠡䠢䠣䠤䠥䠦䠧䠨䠩䠪䠫䠬䠭䠮䠯䠰䠱䠲䠳䠴䠵䠶䠷䠸䠹䠺䠻䠼䠽䠾䠿䡀䡁䡂䡃䡄䡅䡆䡇䡈䡉䡊䡋䡌䡍䡎䡏䡐䡑䡒䡓䡔䡕䡖䡗䡘䡙䡚䡛䡜䡝䡞䡟䡠䡡䡢䡣䡤䡥䡦䡧䡨䡩䡪䡫䡬䡭䡮䡯䡰䡱䡲䡳䡴䡵䡶䡷䡸䡹䡺䡻䡼䡽䡾䡿䢀䢁䢂䢃䢄䢅䢆䢇䢈䢉䢊䢋䢌䢍䢎䢏䢐䢑䢒䢓䢔䢕䢖䢗䢘䢙䢚䢛䢜䢝䢞䢟䢠䢡䢢䢣䢤䢥䢦䢧䢨䢩䢪䢫䢬䢭䢮䢯䢰䢱䢲䢳䢴䢵䢶䢷䢸䢹䢺䢻䢼䢽䢾䢿䣀䣁䣂䣃䣄䣅䣆䣇䣈䣉䣊䣋䣌䣍䣎䣏䣐䣑䣒䣓䣔䣕䣖䣗䣘䣙䣚䣛䣜䣝䣞䣟䣠䣡䣢䣣䣤䣥䣦䣧䣨䣩䣪䣫䣬䣭䣮䣯䣰䣱䣲䣳䣴䣵䣶䣷䣸䣹䣺䣻䣼䣽䣾䣿䤀䤁䤂䤃䤄䤅䤆䤇䤈䤉䤊䤋䤌䤍䤎䤏䤐䤑䤒䤓䤔䤕䤖䤗䤘䤙䤚䤛䤜䤝䤞䤟䤠䤡䤢䤣䤤䤥䤦䤧䤨䤩䤪䤫䤬䤭䤮䤯䤰䤱䤲䤳䤴䤵䤶䤷䤸䤹䤺䤻䤼䤽䤾䤿䥀䥁䥂䥃䥄䥅䥆䥇䥈䥉䥊䥋䥌䥍䥎䥏䥐䥑䥒䥓䥔䥕䥖䥗䥘䥙䥚䥛䥜䥝䥞䥟䥠䥡䥢䥣䥤䥥䥦䥧䥨䥩䥪䥫䥬䥭䥮䥯䥰䥱䥲䥳䥴䥵䥶䥷䥸䥹䥺䥻䥼䥽䥾䥿䦀䦁䦂䦃䦄䦅䦆䦇䦈䦉䦊䦋䦌䦍䦎䦏䦐䦑䦒䦓䦔䦕䦖䦗䦘䦙䦚䦛䦜䦝䦞䦟䦠䦡䦢䦣䦤䦥䦦䦧䦨䦩䦪䦫䦬䦭䦮䦯䦰䦱䦲䦳䦴䦵䦶䦷䦸䦹䦺䦻䦼䦽䦾䦿䧀䧁䧂䧃䧄䧅䧆䧇䧈䧉䧊䧋䧌䧍䧎䧏䧐䧑䧒䧓䧔䧕䧖䧗䧘䧙䧚䧛䧜䧝䧞䧟䧠䧡䧢䧣䧤䧥䧦䧧䧨䧩䧪䧫䧬䧭䧮䧯䧰䧱䧲䧳䧴䧵䧶䧷䧸䧹䧺䧻䧼䧽䧾䧿䨀䨁䨂䨃䨄䨅䨆䨇䨈䨉䨊䨋䨌䨍䨎䨏䨐䨑䨒䨓䨔䨕䨖䨗䨘䨙䨚䨛䨜䨝䨞䨟䨠䨡䨢䨣䨤䨥䨦䨧䨨䨩䨪䨫䨬䨭䨮䨯䨰䨱䨲䨳䨴䨵䨶䨷䨸䨹䨺䨻䨼䨽䨾䨿䩀䩁䩂䩃䩄䩅䩆䩇䩈䩉䩊䩋䩌䩍䩎䩏䩐䩑䩒䩓䩔䩕䩖䩗䩘䩙䩚䩛䩜䩝䩞䩟䩠䩡䩢䩣䩤䩥䩦䩧䩨䩩䩪䩫䩬䩭䩮䩯䩰䩱䩲䩳䩴䩵䩶䩷䩸䩹䩺䩻䩼䩽䩾䩿䪀䪁䪂䪃䪄䪅䪆䪇䪈䪉䪊䪋䪌䪍䪎䪏䪐䪑䪒䪓䪔䪕䪖䪗䪘䪙䪚䪛䪜䪝䪞䪟䪠䪡䪢䪣䪤䪥䪦䪧䪨䪩䪪䪫䪬䪭䪮䪯䪰䪱䪲䪳䪴䪵䪶䪷䪸䪹䪺䪻䪼䪽䪾䪿䫀䫁䫂䫃䫄䫅䫆䫇䫈䫉䫊䫋䫌䫍䫎䫏䫐䫑䫒䫓䫔䫕䫖䫗䫘䫙䫚䫛䫜䫝䫞䫟䫠䫡䫢䫣䫤䫥䫦䫧䫨䫩䫪䫫䫬䫭䫮䫯䫰䫱䫲䫳䫴䫵䫶䫷䫸䫹䫺䫻䫼䫽䫾䫿䬀䬁䬂䬃䬄䬅䬆䬇䬈䬉䬊䬋䬌䬍䬎䬏䬐䬑䬒䬓䬔䬕䬖䬗䬘䬙䬚䬛䬜䬝䬞䬟䬠䬡䬢䬣䬤䬥䬦䬧䬨䬩䬪䬫䬬䬭䬮䬯䬰䬱䬲䬳䬴䬵䬶䬷䬸䬹䬺䬻䬼䬽䬾䬿䭀䭁䭂䭃䭄䭅䭆䭇䭈䭉䭊䭋䭌䭍䭎䭏䭐䭑䭒䭓䭔䭕䭖䭗䭘䭙䭚䭛䭜䭝䭞䭟䭠䭡䭢䭣䭤䭥䭦䭧䭨䭩䭪䭫䭬䭭䭮䭯䭰䭱䭲䭳䭴䭵䭶䭷䭸䭹䭺䭻䭼䭽䭾䭿䮀䮁䮂䮃䮄䮅䮆䮇䮈䮉䮊䮋䮌䮍䮎䮏䮐䮑䮒䮓䮔䮕䮖䮗䮘䮙䮚䮛䮜䮝䮞䮟䮠䮡䮢䮣䮤䮥䮦䮧䮨䮩䮪䮫䮬䮭䮮䮯䮰䮱䮲䮳䮴䮵䮶䮷䮸䮹䮺䮻䮼䮽䮾䮿䯀䯁䯂䯃䯄䯅䯆䯇䯈䯉䯊䯋䯌䯍䯎䯏䯐䯑䯒䯓䯔䯕䯖䯗䯘䯙䯚䯛䯜䯝䯞䯟䯠䯡䯢䯣䯤䯥䯦䯧䯨䯩䯪䯫䯬䯭䯮䯯䯰䯱䯲䯳䯴䯵䯶䯷䯸䯹䯺䯻䯼䯽䯾䯿䰀䰁䰂䰃䰄䰅䰆䰇䰈䰉䰊䰋䰌䰍䰎䰏䰐䰑䰒䰓䰔䰕䰖䰗䰘䰙䰚䰛䰜䰝䰞䰟䰠䰡䰢䰣䰤䰥䰦䰧䰨䰩䰪䰫䰬䰭䰮䰯䰰䰱䰲䰳䰴䰵䰶䰷䰸䰹䰺䰻䰼䰽䰾䰿䱀䱁䱂䱃䱄䱅䱆䱇䱈䱉䱊䱋䱌䱍䱎䱏䱐䱑䱒䱓䱔䱕䱖䱗䱘䱙䱚䱛䱜䱝䱞䱟䱠䱡䱢䱣䱤䱥䱦䱧䱨䱩䱪䱫䱬䱭䱮䱯䱰䱱䱲䱳䱴䱵䱶䱷䱸䱹䱺䱻䱼䱽䱾䱿䲀䲁䲂䲃䲄䲅䲆䲇䲈䲉䲊䲋䲌䲍䲎䲏䲐䲑䲒䲓䲔䲕䲖䲗䲘䲙䲚䲛䲜䲝䲞䲟䲠䲡䲢䲣䲤䲥䲦䲧䲨䲩䲪䲫䲬䲭䲮䲯䲰䲱䲲䲳䲴䲵䲶䲷䲸䲹䲺䲻䲼䲽䲾䲿䳀䳁䳂䳃䳄䳅䳆䳇䳈䳉䳊䳋䳌䳍䳎䳏䳐䳑䳒䳓䳔䳕䳖䳗䳘䳙䳚䳛䳜䳝䳞䳟䳠䳡䳢䳣䳤䳥䳦䳧䳨䳩䳪䳫䳬䳭䳮䳯䳰䳱䳲䳳䳴䳵䳶䳷䳸䳹䳺䳻䳼䳽䳾䳿䴀䴁䴂䴃䴄䴅䴆䴇䴈䴉䴊䴋䴌䴍䴎䴏䴐䴑䴒䴓䴔䴕䴖䴗䴘䴙䴚䴛䴜䴝䴞䴟䴠䴡䴢䴣䴤䴥䴦䴧䴨䴩䴪䴫䴬䴭䴮䴯䴰䴱䴲䴳䴴䴵䴶䴷䴸䴹䴺䴻䴼䴽䴾䴿䵀䵁䵂䵃䵄䵅䵆䵇䵈䵉䵊䵋䵌䵍䵎䵏䵐䵑䵒䵓䵔䵕䵖䵗䵘䵙䵚䵛䵜䵝䵞䵟䵠䵡䵢䵣䵤䵥䵦䵧䵨䵩䵪䵫䵬䵭䵮䵯䵰䵱䵲䵳䵴䵵䵶䵷䵸䵹䵺䵻䵼䵽䵾䵿䶀䶁䶂䶃䶄䶅䶆䶇䶈䶉䶊䶋䶌䶍䶎䶏䶐䶑䶒䶓䶔䶕䶖䶗䶘䶙䶚䶛䶜䶝䶞䶟䶠䶡䶢䶣䶤䶥䶦䶧䶨䶩䶪䶫䶬䶭䶮䶯䶰䶱䶲䶳䶴䶵䶶䶷䶸䶹䶺䶻䶼䶽䶾䶿䷀䷁䷂䷃䷄䷅䷆䷇䷈䷉䷊䷋䷌䷍䷎䷏䷐䷑䷒䷓䷔䷕䷖䷗䷘䷙䷚䷛䷜䷝䷞䷟䷠䷡䷢䷣䷤䷥䷦䷧䷨䷩䷪䷫䷬䷭䷮䷯䷰䷱䷲䷳䷴䷵䷶䷷䷸䷹䷺䷻䷼䷽䷾䷿乥乲兙兛兝兞兡兣兺匁厼叾哛唜唟喸嗧囕夞巼怾旕朩朰栍桛椧烪猠瓧瓩瓰瓱瓲瓼甅硛硳穒縇莻虄襨迲闏鞥啊腌錒锕阿哀哎唉埃挨溾銰鎄锿凒啀嘊捱敱敳溰癌皑皚磑娾昹毐濭矮蔼藹譪躷霭靄伌僾叆嗳噯塧壒嫒嬡愛懓懝暧曖爱瑷璦皧瞹砹硋碍礙艾薆譺賹鑀隘靉餲馤鱫鴱侒偣啽媕安峖庵桉氨痷盦盫腤菴萻葊蓭誝諳谙鞌鞍韽馣鮟鵪鶕鹌儑玵雸俺唵垵埯揞罯銨铵堓屵岸按晻暗案洝胺荌豻貋錌闇隌黯肮骯岇昂昻枊盎醠凹柪梎熬爊軪厫嗷嗸嶅廒慠摮敖滶獒獓璈磝翱翶翺聱蔜螯謷謸遨鏖隞骜鰲鳌鷔鼇媪媼抝艹芺袄襖镺傲坳垇墺奡奥奧嫯岙岰嶴懊拗擙澚澳鏊隩驁丷仈八叭吧哵夿岜巴扒扷捌朳柭玐疤笆粑羓芭蚆豝釟魞鲃叐妭抜拔炦癹胈茇菝詙跋軷颰魃鼥把鈀钯靶坝垻壩弝欛灞爸矲罢罷耙覇跁霸鮁鲅挀掰白佰捭摆擺柏栢瓸百竡粨絔襬庍拜拝敗猈稗粺薭贁败韛扳搬攽斑斒班瘢癍肦般螌褩辬頒颁鳻坂岅昄板版瓪粄舨蝂鈑钣闆阪魬伴办半坢姅怑扮拌湴瓣秚絆绊辦鉡靽垹帮幇幚幫捠梆浜縍邦邫鞤榜牓綁绑膀髈傍塝挷搒棒棓玤磅稖艕蒡蚌蜯謗谤鎊镑佨剝勹包孢枹煲笣胞苞蕔裦褒襃闁齙龅窇薄雹保堡堢媬宝宲寚寳寶怉珤緥葆藵褓賲靌飹飽饱駂鳵鴇鸨儤勽嚗報忁报抱暴曓爆犦菢虣蚫袌豹趵鉋鑤铇骲髱鮑鲍卑庳悲揹杯柸桮椑盃碑背藣陂鵯鹎北鉳俻倍偝偹備僃备孛悖惫愂憊昁梖焙牬犕狈狽珼琲碚禙糒苝蓓蛽被褙誖貝贝軰輩辈邶郥鄁鋇鐾钡鞁鞴骳呗唄喯奔栟泍漰犇錛锛奙本楍畚翉苯倴坋坌捹撪桳渀笨逩伻嗙嘣奟崩嵭痭祊絣綳繃绷閍甭甮埄埲琣琫菶鞛塴揼泵甏蹦迸逬鏰镚偪屄楅榌毴螕豍逼鎞鰏鲾鵖嬶荸鼻佊俾匕啚夶妣彼朼柀比毞沘疕秕笔筆粃聛舭貏鄙佖咇哔嗶坒堛壁奰妼婢嬖币幣幤庇廦弊弻弼彃必怭怶愊愎敝斃朇柲梐毕毖毙湢滗滭潷濞煏熚狴獘獙珌璧畀畁畢疪痹痺皕睤睥碧禆筚箅箆篦篳粊綼縪繴罼腷臂芘苾荜萆萞蓖蓽蔽薜蜌袐襅襞襣觱詖诐貱賁贔贲赑跸蹕躃躄避邲鄨鄪鉍鏎鐴铋閇閉閟闭陛鞸韠飶饆馝駜驆髀髲魓鮅鷝鷩鼊炞煸牑猵獱甂砭笾箯籩糄編编萹蝙边邉邊鍽鞕鞭鯾鯿鳊匾惼扁揙碥稨窆藊褊貶贬鴘便卞变変峅弁徧忭抃昪汳汴玣緶缏艑苄覍諚變辡辧辨辩辫辮辯遍釆閞儦墂幖彪标標檦淲滮瀌熛爂猋瘭磦穮脿膘臕蔈藨謤贆鏢鑣镖镳颩颮颷飆飇飈飊飑飙飚驫骉骠髟嫑婊表裱褾諘錶俵摽鳔憋瘪癟虌蟞鱉鳖鼈龞別别徶莂蛂襒蹩彆傧儐宾彬斌梹椕槟檳汃滨濒濱濵瀕玢瑸璸繽缤虨豩豳賓賔邠鑌镔霦頻顮摈擯殡殯膑臏髌髕髩鬂鬓鬢仌仒兵冫冰掤氷蛃鋲丙偋寎怲抦昞昺柄棅炳眪禀秉稟苪邴鈵鉼陃鞆鞞餅餠饼並併倂傡垪并幷庰摒栤病窉竝誁靐鮩僠剥嶓拨撥播波溊玻癶癷盋砵碆礡紴缽菠袰蹳鉢钵餑饽驋鱍亳仢伯侼僰勃博帛愽懪挬搏桲欂泊浡淿渤煿牔狛猼瓝瓟礴秡箔簙糪肑胉脖膊舶艊萡葧袯袹襏襮謈踣郣鈸鉑鋍鎛鑮钹铂镈餺馎馛馞駁駮驳髆髉鮊鲌鵓鹁跛孹擘檗簸蘗譒啵蔔峬庯晡誧逋鈽錻钸餔鵏轐醭鳪卜卟哺捕补補鸔不佈勏吥咘埗埠布廍怖悑抪捗柨步歨歩瓿篰簿荹蔀踄部郶鈈钚餢嚓擦攃礤礸遪偲猜才材纔裁財财倸啋埰婇寀彩採棌毝睬綵跴踩采縩菜蔡傪参參叄叅喰嬠湌爘飡餐驂骖惭慙慚残殘蚕蝅蠶蠺惨慘憯朁穇黪黲儏澯灿燦璨粲薒謲仓仺伧倉傖凔嵢沧滄濸獊舱艙苍蒼螥鶬鸧欌藏鑶賶撡操糙嘈嶆慒曹曺槽漕艚蓸螬褿鏪愺懆艸草騲肏襙鄵鼜侧側冊册厕厠夨廁恻惻憡拺敇测測畟笧策筞筴箣簎粣荝萗萴蓛嵾篸埁岑涔笒噌层層嶒曽曾竲驓蹭偛叉嗏扠挿插揷杈疀臿艖銟鍤锸餷馇垞察嵖搽查査槎檫猹碴秅茬茶詧靫蹅鑔镲侘刹剎奼姹岔差汊紁衩詫诧拆肞芆釵钗侪儕喍柴犲祡豺茝囆瘥虿蠆袃訍幨掺搀摻攙梴裧襜覘觇辿鋓儃儳劖嚵壥婵嬋孱巉廛棎欃毚湹潹潺澶瀍瀺煘獑磛禅緾纏纒缠艬苂蝉螹蟐蟬蟾誗讒谗躔鄽酁鋋鑱镵饞馋丳产冁刬剗剷囅嵼幝摌斺旵浐滻灛燀產産簅繟蒇蕆諂譂讇谄醦鏟铲閳闡阐骣忏懴懺摲硟羼韂顫颤伥倀娼昌椙淐猖琩菖裮錩锠閶阊鯧鲳鼚仧仩偿償兏嘗嚐塲嫦尝常徜瑺瓺甞肠腸膓苌萇裳長镸长鱨鲿僘厂厰场場廠惝敞昶氅鋹倡唱怅悵暢焻玚瑒畅畼誯韔鬯弨怊抄欩窼訬超鈔钞嘲巢巣晁朝樔漅潮牊窲罺謿轈鄛鼂鼌吵巐炒焣煼眧麨仦仯耖觘伡俥唓砗硨莗蛼車车偖扯撦勶坼屮彻徹掣撤澈烢爡瞮硩聅迠頙嗔抻捵棽琛瞋諃謓賝郴塵宸尘忱愖敐敶晨曟栕桭梣樄沉煁瘎臣茞莀莐蔯薼螴訦諶谌軙辰迧鈂陈陳霃鷐麎墋夦硶碜磣贂趻踸鍖儭嚫榇櫬疢衬襯讖谶趁趂齓齔龀偁僜憆摚撐撑晿柽棦橕檉泟浾爯牚琤瞠碀称稱穪竀緽罉蛏蟶赪赬鏿鐣阷靗頳饓丞乗乘呈城埕堘塍塖娍宬峸惩憕懲成承挰掁揨朾枨棖椉橙檙洆溗澂澄瀓珵珹畻程窚筬絾脭荿裎誠诚郕酲鋮铖騬鯎侱庱徎悜睈逞騁骋秤吃哧喫嗤噄妛媸彨彲摛攡殦瓻痴癡眵瞝笞粚絺胵蚩螭訵誺魑鴟鵄鸱黐齝匙墀弛持池漦竾筂箎篪茌荎蚳謘貾赿踟迟迡遅遟遲鍉馳驰伬侈卶叺呎垑尺恥欼歯耻肔胣蚇袲袳裭褫豉鉹齒齿侙傺勅勑叱啻彳恜慗憏懘抶敕斥杘湁灻炽烾熾痸瘛翄翅翤翨腟赤趩遫鉓銐雴飭饬鶒鷘麶充冲嘃忡憃憧摏沖浺珫罿翀舂艟茺衝蹖崇崈漴爞緟虫蝩蟲褈隀埫宠寵揰銃铳抽搊犨犫瘳篘紬仇俦儔嬦帱幬惆愁懤栦梼椆檮燽畴疇皗稠筹籌絒綢绸菗薵裯詶讎讐踌躊酧酬醻雔雠雦丑丒偢吜杽瞅矁醜魗殠臭臰遚鮘出初岀摴榋樗貙齣刍厨媰幮廚橱櫉櫥滁犓篨耡芻蒢蒭蜍蟵豠趎蹰躇躕鉏鋤锄除雏雛鶵储儲杵椘楚楮檚濋璴础礎禇處齭齼亍俶傗儊処埱处怵憷搐敊斶欪歜泏滀珿畜矗竌竐絀绌臅触觸諔豖鄐閦黜搋膗揣膪踹巛川氚瑏穿传傳剶圌暷椽篅舡舩船輲遄僢喘堾歂舛荈踳串汌猭玔賗釧钏鶨刅摐牎牕疮瘡窓窗窻噇幢床牀傸磢闖闯创刱剏剙創怆愴吹炊龡倕垂埀捶搥桘棰槌箠腄菙錘鎚锤陲顀媋旾春暙杶椿槆橁櫄瑃箺萅蝽輴鰆鶞唇浱淳湻滣漘犉純纯脣莼蒓蓴醇醕錞陙鯙鶉鹑偆惷睶萶蠢賰戳繛趠踔逴哾啜嚽娕娖婥惙擉歠涰磭綽绰踀輟辍辵辶酫鑡餟齪龊偨玼疵縒蠀趀跐骴髊齹垐嬨慈柌濨珁瓷甆磁礠祠糍茨薋詞词辝辞辤辭雌飺餈鴜鶿鷀鹚佌此泚皉鮆伺佽刺刾庛朿栨次絘茦莿蛓螆賜赐匆囪囱忩怱悤暰枞棇樅樬漗潨熜瑽璁瞛篵繱聡聦聪聰苁茐葱蓯蔥蟌鍯鏓鏦騘驄骢丛从叢婃孮従徔徖從悰樷欉淙漎潀潈灇爜琮藂誴賨賩錝愡憁謥凑楱湊腠輳辏怚橻粗觕麁麄麤徂殂促噈媨憱猝瘄瘯簇縬脨蔟誎趗踧踿蹙蹴蹵醋顣鼀撺攛汆蹿躥鑹镩巑櫕欑穳殩熶爨窜竄篡簒催凗墔崔嵟慛摧榱槯磪縗缞脺鏙漼璀皠趡伜倅啐啛忰悴毳淬濢焠琗疩瘁竁粋粹紣綷翆翠脃脆膬膵臎萃襊顇村澊皴竴膥邨侟壿存拵刌忖寸籿搓撮瑳磋蹉遳醝鎈嵯嵳痤睉矬蒫蔖虘酂酇鹺鹾脞剉剒厝夎庴挫措莝莡蓌逪銼錯锉错咑哒嗒噠墶搭撘笚耷褡鎉鎝剳匒呾垯妲怛溚炟燵畗畣瘩笪答羍荅荙薘蟽詚跶达迏迖迚逹達鐽靼鞑韃龖龘打亣大眔繨呆呔懛獃傣歹代侢叇垈埭岱帒带帯帶廗待怠戴曃柋殆瀻玳瑇甙簤紿緿绐艜蚮蝳袋襶貣貸贷跢蹛軑軚軩轪迨逮霴靆鴏黛黱丹儋勯匰单単單妉媅担擔殚殫甔眈砃箪簞耼耽聃聸褝襌躭郸鄲酖頕亶伔刐抌掸撢撣玬瓭疸紞胆膽衴賧赕馾黕黵但僤唌啖啗啿嘾噉嚪帎惮憚憺旦柦氮沊泹淡澹狚疍瘅癉癚禫窞繵腅萏蓞蛋蜑觛訑誕诞贉霮餤饏駳髧鴠黮儅噹当澢珰璫當筜簹艡蟷裆襠鐺铛闣党挡擋攩欓灙譡讜谠黨凼圵垱壋婸宕愓档檔氹潒璗瓽盪瞊砀碭礑簜荡菪蕩蘯趤逿雼刀刂叨忉朷氘舠螩釖魛鱽捯倒壔导導岛島嶋嶌嶹捣搗擣槝祷禂禱蹈陦隝隯到噵悼椡檤焘燾瓙盗盜稲稻纛翢翿艔菿衜衟軇辺道嘚得徳德恴悳惪棏淂鍀锝的扥扽噔嬁灯燈璒登竳簦艠豋蹬戥等凳墱嶝櫈瞪磴覴邓鄧鐙镫隥仾低啲埞堤奃岻彽樀氐滴磾秪羝袛趆隄鞮唙啇嘀嚁嫡廸敌敵梑涤滌狄笛籴糴翟苖荻蔋蔐藡覿觌豴蹢迪鏑镝靮頔馰髢鸐厎呧坘坻底弤抵拞掋柢牴砥聜菧觝詆诋軧邸阺骶鯳俤偙僀地坔埅埊墑墬娣媂嶳帝弟怟慸摕旳杕枤梊棣楴焍玓珶甋眱睇碲祶禘第締缔腣苐菂蒂蔕蝃蝭螮諦谛踶递逓遆遞遰釱鉪嗲傎厧嵮巅巓巔掂攧敁槇槙滇瘨癫癲蹎顚顛颠齻典嚸奌婰敟椣点碘蒧蕇跕踮點佃坫垫墊壂奠婝店惦扂橂殿淀澱玷琔电甸癜磹簟蜔鈿钿阽電靛驔凋刁刟叼奝弴彫汈琱瞗碉簓虭蛁貂錭雕鮉鯛鲷鳭鵰鼦屌扚伄吊弔掉瘹盄窎窵竨蓧藋訋調釣鈟銚銱鋽鑃钓铞铫雿魡爹褺跌叠咥喋垤堞峌嵽幉恎惵戜挕昳曡楪殜氎牃牒瓞畳疂疉疊眣眰碟絰绖耊耋胅臷艓苵蜨蝶螲褋詄諜谍趃跮蹀迭镻鰈鲽鴩哋丁仃叮帄玎疔盯耵虰酊釘钉靪奵嵿濎艼薡鐤頂顶鼎鼑啶定忊椗矴碇碠磸聢腚萣蝊訂订錠锭顁飣饤丟丢銩铥东倲冬咚埬娻岽崠崬徚昸東氡氭涷笗苳菄蝀鮗鯟鶇鶫鸫鼕嬞懂箽董蕫諌侗働冻凍动動垌姛恫戙挏栋棟洞湩硐胨胴腖迵霘駧兜兠吺唗枓橷篼蔸都唞乧抖蚪鈄钭阧陡吋斗斣梪毭浢痘窦竇脰荳豆逗郖酘閗闘餖饾鬥鬦鬪鬬鬭剢厾嘟督醏闍阇凟匵嬻椟櫝殰毒涜渎瀆牍牘犊犢独獨瓄皾裻読讀讟读豄贕錖鑟韇韣韥騳髑黩黷堵琽睹笃篤覩賭赌妒妬度杜殬渡秺肚芏荰螙蠧蠹鍍镀靯偳媏端耑褍鍴短塅断斷椴段毈煅瑖碫簖籪緞缎腶葮躖鍛锻垖堆塠痽磓鐓鐜镦鴭頧兊兌兑对対對怼憝憞懟濧瀩碓祋綐薱譈譵轛队陮隊吨噸墩墪惇撉撴敦犜獤礅蜳蹲蹾驐盹趸躉伅庉沌潡炖燉盾砘碷踲逇遁遯鈍钝頓顿剟咄哆嚉多夛掇敠敪毲畓裰凙剫喥夺奪敓敚痥踱鈬鐸铎亸哚嚲垛垜埵奲崜挆朵朶椯綞缍趓躱躲軃鬌刴剁堕墮墯尮惰憜挅柮桗舵跥跺陊陏飿饳鵽妸妿娿婀屙俄吪囮娥峉峨峩涐珴皒睋磀莪蛾訛誐譌讹迗鈋鋨锇頟額额魤鵝鵞鹅噁枙砨頋騀鵈偔僫匎卾厄呃呝咢咹噩垩堊堨堮姶岋崿廅恶悪惡愕戹扼搤搹擜櫮歞歺湂琧砈砐硆礘腭苊萼蕚蚅蝁覨諤讍谔豟軛軶轭遌遏遻鄂鈪鍔鑩锷閼阏阨阸頞顎颚餓餩饿鰐鰪鱷鳄鶚鹗齃齶誒诶欸奀恩煾蒽峎嗯摁侕儿児兒唲峏栭洏粫而耏聏胹荋袻輀轜陑隭髵鮞鲕鴯鸸尒尓尔栮毦洱爾珥耳薾衈趰迩邇鉺铒餌饵駬二佴刵咡弍弐樲誀貮貳贰髶冹发彂沷発發乏伐傠坺垡墢姂栰橃浌疺瞂笩筏罚罰罸茷藅閥阀佱峜法灋砝鍅珐琺蕟髪髮勫噃嬏帆幡忛憣旙旛畨番籓繙翻藩轓颿飜鱕凡凢凣匥墦杋柉棥樊瀿烦煩燔璠矾礬笲籵緐繁羳膰舤舧蕃薠蘩蠜襎蹯釩鐇鐢钒鷭仮反払橎返奿嬎梵氾汎泛滼瀪犯畈盕笵範范訉販贩軓軬輽飯飰饭匚坊堏方枋汸淓牥芳蚄趽邡鈁錺钫鴋妨房肪防魴鲂仿倣旊昉昘瓬眆紡纺舫訪访髣鶭放啡妃婓婔扉暃渄猆緋绯菲蜚裶霏非靟飛飝飞餥馡騑騛鯡鲱淝肥腓蜰匪奜悱斐朏棐榧篚翡胐蕜誹诽俷剕厞吠屝废廃廢昲曊杮櫠沸濷狒疿痱癈肺胇芾萉蟦費费鐨镄陫靅鼣分吩帉昐朆梤棻氛竕紛纷翂芬衯訜躮酚鈖雰餴饙馚坟墳妢岎幩朌枌棼橨汾濆炃焚燌燓獖羒羵蒶蕡蚠蚡豮豶轒鐼隫馩魵黂鼖鼢粉黺份偾僨奋奮弅忿愤憤瀵瞓秎粪糞膹鱝鲼丰仹偑僼凨凬凮堼妦寷封峯峰崶枫桻楓檒沣沨渢灃烽犎猦琒疯瘋盽砜碸篈葑蘴蜂蠭豐鄷酆鋒鎽鏠锋霻靊風飌风麷冯堸夆摓浲溄漨綘縫缝艂逢馮唪覂諷讽俸凤奉湗焨煈賵赗鳯鳳鴌覅仏佛坲梻紑否妚殕缶缹缻雬鴀伕呋夫妋姇娐孵尃怤懯敷旉柎玞砆稃筟粰糐紨綒肤胕膚荂荴衭趺跗邞鄜酜鈇鳺麩麬麱麸乀伏俘凫刜匐咈哹垘孚岪巿帗幅幞弗怫扶拂服枎柫栿桴棴榑氟泭洑浮涪澓炥烰玸琈甶畉畐癁砩祓福稪符笰箙紱紼絥綍绂绋罘罦翇艀艴芙芣苻茀茯莩菔葍虙蚨蜉蝠袚袱襆襥諨豧踾輻辐郛鉘鉜韍韨颫髴鮄鮲鳧鳬鴔鵩鶝黻乶俌俛俯呒嘸府弣抚拊捬撫斧椨滏焤甫盙簠脯腐腑蜅輔辅郙釜釡阝頫鬴黼付偩傅冨副咐坿复妇婏婦媍嬔富峊彿復椱父祔禣秿竎緮縛缚腹萯蕧蚥蚹蛗蝜蝮袝複褔覄覆訃詂讣負賦賻负赋赙赴輹鍑鍢阜附馥駙驸鮒鰒鲋鳆嘎嘠旮噶尜釓錷钆尕玍尬魀侅垓姟峐晐畡祴絯荄該该豥賅賌赅郂陔忋改絠丐乢匃匄戤摡概槩槪溉漑瓂盖葢蓋鈣钙凲坩尲尴尶尷干忓攼杆柑泔漧玕甘疳矸竿筸粓肝苷迀酐魐鳱仠感擀敢桿橄澉澸皯秆稈簳芉衦赶趕鱤鳡倝凎幹旰榦檊汵淦灨盰紺绀詌贑贛赣骭冈冮刚剛堈堽岡掆摃棡牨犅疘矼綱纲缸罁罡肛釭鋼鎠钢岗崗港戅戆戇杠槓焵焹筻槔槹橰櫜皋皐睾篙糕羔膏臯韟餻高髙鷎鷱鼛夰搞杲槀槁檺稁稾稿縞缟菒藁藳鎬镐勂吿告峼祮祰禞筶誥诰郜鋯锆割哥圪彁戈戓戨搁擱歌滒牫犵疙肐胳袼謌鎶饹鴚鴿鸽佫佮匌呄嗝塥愅挌搿敋格槅櫊滆獦膈臵葛蛒蛤裓觡諽輵轕鎘镉閣阁隔革鞈鞷韐韚騔骼鬲鮯哿嗰笴舸个亇個各箇茖虼鉻铬給给根跟哏亘亙揯搄艮茛刯庚椩浭焿畊絚緪縆羮羹耕菮賡赓鶊鹒哽埂峺挭梗綆绠耿莄郠骾鯁鲠堩更侊公功匑匔厷塨宫宮工幊弓恭愩慐攻杛碽篢糼糿肱蚣觥觵躬躳髸龏龔龚巩廾拱拲栱汞珙輁鞏供共唝嗊熕貢贡佝勾沟溝痀篝簼緱缑芶袧褠鈎鉤钩鞲韝岣枸狗玽笱耇耈耉苟蚼豿冓啂坸垢够夠姤媾彀搆撀构構煹覯觏訽詬诟購购遘雊估咕唂唃姑嫴孤巬巭杚柧橭沽泒稒笟箍箛篐罛苽菇菰蓇蛄觚軱軲轱辜酤鈲鮕鴣鸪傦古啒嘏夃尳愲扢榖毂汩淈濲瀔牯皷皼盬瞽穀糓縎罟羖股脵臌薣蛊蠱詁诂谷轂逧鈷钴餶馉骨鶻鹘鼓鼔僱凅固堌崓崮故梏棝榾牿痼祻錮锢雇顧顾鯝鲴刮劀呱栝桰歄煱瓜緺胍趏踻颪颳騧鴰鸹冎剐剮叧寡卦啩坬挂掛絓罣褂詿诖乖叏拐枴柺箉罫夬怪恠倌关官棺涫瘝癏窤蒄覌観觀观関闗關鰥鱞鳏琯璭痯筦管舘輨錧館馆鳤丱冠卝悹悺惯慣掼摜樌欟毌泴潅灌爟瓘盥矔礶祼罆罐貫贯躀遦鏆鑵雚鱹鸛鹳僙光咣垙姯桄洸灮炗炚炛烡珖胱茪輄銧黆广広廣犷獷臩俇臦逛亀圭妫媯嫢嬀嶲巂帰廆归摫椝槻槼櫷歸珪瑰璝瓌皈瞡硅胿茥蘬袿規规邽郌閨闺雟騩鬶鬹鮭鲑龜龟佹匦匭厬垝姽宄庋庪恑攱晷氿湀癸祪簋蛫蟡觤詭诡軌轨陒鬼刽刿劊劌撌攰昋柜桂桧椢槶樻檜櫃猤癐眭瞆瞶禬筀蓕螝襘貴贵跪鐀鑎鞼鱖鱥鳜丨惃滚滾磙緄緷绲蓘蔉衮袞輥辊鮌鯀鲧棍睔謴啯嘓埚堝墎崞彉彍懖楇濄猓瘑聒蝈蟈郭鈛鍋锅囯囶囻国圀國帼幗慖掴摑漍簂聝腘膕蔮虢馘惈果椁槨淉粿綶菓蜾裹褁輠餜馃腂过過鐹哈紦鉿铪咍嗨孩还骸塰海烸胲酼醢亥嗐妎害氦餀饚駭駴骇佄哻嫨憨犴蚶谽酣頇顸馠魽鼾函凾含唅圅娢寒崡嵅晗梒浛涵澏焓琀甝筨虷蜬邗邯鋡韓韩丆喊浫罕豃傼厈垾屽悍憾扞捍撖撼旱晘暵汉汗涆漢瀚焊熯猂皔睅翰莟菡蔊蛿蜭螒譀輚釬銲鋎閈闬雗頷顄颔馯駻鶾兯爳夯吭垳斻杭笐筕絎绗航苀蚢裄貥迒頏颃魧沆嚆茠蒿薅薧乚儫嗥嘷噑嚎壕椃毜毫濠獆獋獔竓籇蚝蠔譹豪好郝侴傐号哠恏悎昊昦晧暠暤暭曍浩淏滈澔灏灝皓皜皞皡皥秏耗聕薃號鄗顥颢鰝呵喝嗬抲欱蠚訶诃何劾合咊和啝姀峆惒敆曷朅柇核楁毼河涸渮澕熆狢皬盇盉盍盒礉禾篕籺粭紇纥翮荷菏萂螛覈訸詥貈貉郃釛鉌鑉閡閤闔阂阖鞨頜颌餄饸魺鲄鶡鹖麧齕龁龢哬嗃嚇垎壑寉焃煂熇燺爀癋碋翯袔褐謞賀贺赫靍靎靏鶮鶴鸖鹤嘿潶黑黒拫痕鞎佷很狠詪恨亨哼悙涥脝姮恆恒撗桁横橫烆珩胻蘅衡鑅鴴鵆鸻啈叿呍哄嚝揈渹灴烘焢硡薨訇谾軣輷轟轰鍧仜吰垬妅娂宏宖屸弘彋汯沗泓洪浤渱潂玒玜硔竑竤篊粠紅紘紭綋红纮羾翃翝耾苰荭葒葓虹谹谼鈜鉷鋐閎闳霐霟鞃魟鴻鸿黉黌晎撔澒蕻訌讧銾閧闀闂鬨齁侯喉帿猴瘊睺矦篌糇翭翵葔鄇銗鍭餱骺鯸吼吽犼候厚后垕堠後洉茩豞逅郈鮜鱟鲎鲘乎乯匢匫呼唿嘑垀寣幠忽恗惚昒曶歑泘淴滹烀糊膴苸虍虖謼軤轷雐雽喖嘝囫壶壷壺媩弧抇搰斛楜槲湖瀫焀煳狐猢瑚瓳箶絗縠胡葫蔛蝴螜衚觳醐鍸隺頶餬鬍魱鰗鵠鶘鶦鹄鹕乕俿唬汻浒滸琥萀虎虝錿鯱互冱嗀嚛婟嫭嫮岵帍弖怘怙戶户戸戽扈护摢昈枑槴沍沪滬熩瓠祜笏簄粐綔芐蔰護豰鄠鍙頀鱯鳠鳸鸌鹱埖婲椛硴糀花蒊蘤誮錵划劃华呚哗嘩姡搳撶滑猾磆華蕐螖譁釪釫鋘鏵铧驊骅鷨化夻婳嫿嬅崋摦杹枠桦槬樺澅画畫畵繣舙觟話諙諣譮话黊徊怀懐懷槐櫰淮瀤耲蘹褢褱踝咶坏壊壞蘾孉懽欢歓歡犿獾讙貛酄驩鴅鵍圜堚嬛寏寰峘桓洹澴狟獂环環瓛糫絙綄繯缳羦荁萈萑豲貆還鍰鐶锾镮闤阛雈鬟鹮睆緩缓唤喚喛嚾奂奐宦嵈幻患愌换換擐攌梙槵浣涣渙漶澣烉焕煥瑍痪瘓肒藧豢轘逭鯇鯶鰀鲩塃宺巟慌朚肓荒衁偟凰喤堭墴媓崲徨惶揘楻湟潢煌熿獚瑝璜癀皇磺穔篁簧艎葟蝗蟥諻趪遑鍠鐄锽隍韹餭騜鰉鱑鳇鷬黃黄兤奛幌怳恍晃晄櫎炾熀縨詤謊谎愰曂榥滉皝皩鎤咴噅噕婎媈幑徽恢拻挥揮撝晖暉楎洃瀈灰灳烣煇睢睳禈翚翬蘳袆褘詼诙豗輝辉隓隳鰴麾佪囘回囬廻廽恛洄烠痐茴蚘蛔蛕蜖迴逥鮰悔檓毀毁毇燬虺譭会僡儶匯卉喙嘒嚖圚嬒寭屶屷彗彙彚徻恚恵惠慧憓懳晦暳會槥橞檅櫘汇泋湏滙潓濊烩燴獩璤璯瘣瞺秽穢篲絵繢繪绘缋翙翽芔荟蔧蕙薈薉藱蟪詯誨諱譓譿讳诲賄贿鏸鐬闠阓靧頮顪颒餯婚惛昏昬棔殙涽睧睯荤葷蔒轋閽阍忶浑渾珲琿餛馄魂鼲俒倱圂婫尡慁掍混溷焝睴觨諢诨劐吙攉秴耠豁騞佸活秮秳伙夥漷火灬煷邩鈥钬俰剨咟喐嚄嚯嚿奯彟彠惑或捇掝擭旤曤檴沎湱濩瀖獲癨眓矆矐祸禍穫窢耯臛艧获蒦藿蠖謋貨货鍃鑊锪镬閄雘霍靃韄乩僟击刉刏剞叽咭唧喞嗘嘰圾基墼姬屐嵆嵇撃擊朞机枅槣樭機櫅毄激犄玑璣畸畿癪矶磯禨积稘稽積笄筓箕簊綨緁緝缉羁羇羈耭肌芨虀覉覊觭譏譤讥賫賷赍跻踑躋躸銈錤鐖鑇鑙隮雞鞿韲飢饑饥魕鳮鶏鶺鷄鸄鸡鹡齏齑亟亼亽伋佶偮卙即卽及叝吉堲塉姞嫉岌嶯彶忣急愱戢揤极棘楖楫極槉檝殛汲湒潗濈焏疾瘠皀皍磼笈箿籍級级耤膌艥蒺蕀蕺蝍螏襋觙谻趌踖蹐躤輯轚辑郆銡鍓鏶集雧霵齎丮几妀嵴己幾戟挤掎撠擠橶泲犱穖脊虮蟣魢鱾麂伎偈兾冀剂剤劑勣哜嚌坖垍塈妓季寂寄廭彐彑徛忌悸惎懻技旡既旣暨暩曁梞檕檵洎济済漃漈濟瀱璾痵癠祭禝稩稷穄穊穧紀紒継績繋繼纪继绩罽臮芰茍茤荠葪蓟蔇薊薺蘎蘮蘻裚襀覬觊計記誋諅计记跡跽蹟迹际際霁霽驥骥髻鬾魝魥鯚鯽鰶鰿鱀鱭鲚鲫鵋鷑齌乫伽佳傢加嘉家徍抸拁枷梜毠泇浃浹犌猳珈痂笳糘耞腵葭袈豭貑跏迦鉫鎵镓鴐麚唊圿夹夾忦恝戛戞扴脥荚莢蛱蛺袷裌郏郟鋏铗頬頰颊鴶鵊假叚婽岬徦斚斝椵榎槚檟玾甲瘕胛賈贾鉀钾价價嫁幏架榢稼駕驾兼冿囏坚堅奸姦姧尖幵惤戋戔搛椷椾樫櫼歼殱殲湔瀐瀸煎熞熸牋犍猏玪瑊监監睷碊礛礷笺箋緘縑缄缣肩艰艱菅菺葌蒹蔪蕑蕳虃譼豜豣鋻鑯間间雃靬鞯韀韉餰馢鰔鰜鰹鲣鳒鳽鵑鵳鶼鹣麉俭倹儉减剪囝堿帴弿彅戩戬拣挸捡揀揃撿暕枧柬梘检検檢減湕瀽瑐睑瞼硷碱礆笕筧简篯簡籛絸繭翦茧藆蠒裥襇襉襺詃謇謭譾谫趼蹇鐗鐧锏鬋鰎鹸鹻鹼件俴健僭剑剣剱劍劎劒劔墹寋建徤擶旔栫楗榗槛檻毽洊涧渐溅漸澗濺瀳牮珔瞷磵礀箭糋繝腱臶舰艦荐薦袸見覵覸见諓諫譛谏賎賤贱趝跈践踐踺轞鉴鍳鍵鏩鐱鑑鑒鑬鑳键鞬餞饯僵壃姜将將摪橿殭江浆漿畕畺疅疆礓繮缰翞茳葁薑螀螿豇韁鱂鳉傋塂奖奨奬桨槳獎耩膙蒋蔣講讲顜勥匞匠夅嵹弜弶摾櫤洚滰犟糡糨絳绛謽酱醤醬降交僬姣娇嬌峧嶕嶣憍椒浇澆焦燋礁穚簥胶膠膲艽茭茮蕉虠蛟蟭跤轇郊鐎驕骄鮫鲛鵁鷦鷮鹪嚼佼侥僥儌剿劋勦孂徺徼憿挢捁搅摷撟撹攪敫敽敿晈暞曒灚烄煍燞狡璬皎皦矫矯笅筊絞繳纐绞缴脚腳臫蟜角譑賋踋鉸铰餃饺鱎龣叫呌嘂嘄嘦噍噭嬓嶠挍敎教斠滘漖潐獥珓皭窌窖藠訆譥趭較轎轿较酵醮釂喈喼嗟堦媘嫅接掲揭擑椄楬湝煯疖痎癤皆秸稭脻菨蝔街謯阶階鞂鶛倢偼傑刦刧刼劫劼卩卪婕媫孑尐岊崨嵥嶻巀幯截拮捷掶搩擮昅杢杰桀桔桝楶榤洁滐潔狤疌睫碣礍竭節結结羯节莭蓵蛣蜐蠘蠞蠽衱袺訐詰誱讦诘跲踕迼鉣鍻镼鞊頡颉鮚鲒姐媎檞毑解觧飷丯介借吤唶堺屆届岕庎徣悈戒楐犗玠琾界畍疥砎芥藉蚧蛶衸褯誡诫鎅骱魪今仐堇堻巾惍斤津珒琎琻璡矜矝砛禁筋紟荕衿襟觔金釒釿钅鹶黅仅侭僅儘卺厪嫤巹廑慬槿漌瑾紧緊菫蓳謹谨錦锦饉馑伒僸凚劤劲勁唫噤嚍墐壗妗嬧尽搢晉晋枃歏殣浕浸溍濅濜烬煡燼瑨璶盡祲縉缙荩藎覲觐賮贐赆近进進靳齽京亰兢坕坙婛巠惊旌旍晶橸泾涇猄睛秔稉粳精経經綡经聙腈茎荆荊菁葏驚鯨鲸鶁鶄麖麠鼱丼井儆刭剄坓宑幜憬憼景暻殌汫汬澋璄璟璥穽肼蟼警阱頚頸颈俓傹净凈境妌婙婧弪弳径徑敬曔桱梷浄淨瀞獍痉痙竞竟竧竫競竸胫脛莖誩踁迳逕鏡镜靓靖静靚靜鵛冂冋坰埛扃絅蘏蘔駉駫侰僒冏囧泂浻澃炅炯烱煚煛熲燛窘綗褧迥逈顈颎丩勼啾揂揪揫摎朻樛牞究糺糾纠萛赳阄鬏鬮鳩鸠久乆九乣奺杦汣灸玖紤舏酒镹韭韮倃僦匓匛匶厩咎就廄廏廐慦捄救旧柩柾桕欍殧疚臼舅舊鯦鷲鹫麔齨凥匊娵婮居岨崌抅拘掬梮椐檋毩毱泃涺狙琚疽眗砠罝腒艍苴蜛裾諊跔跙踘躹鋦锔陱雎鞠鞫駒驹鮈鴡鶋侷啹婅局巈挶椈橘泦淗湨焗犑狊粷繘菊蘜趜跼蹫輂郹閰駶驧鵙鵴鶪鼰鼳举咀弆挙擧椇榉榘櫸欅沮矩筥聥舉莒蒟襷踽齟龃乬俱倨倶具剧劇勮句埧埾壉姖寠屦屨岠巨巪怇惧愳懅懼拒拠据據昛歫洰澽炬烥犋秬窭窶簴粔耟聚苣虡蚷袓詎讵豦貗距踞躆遽邭醵鉅鋸鐻钜锯颶飓駏鮔勬姢娟捐朘涓焆脧蠲裐鋑鎸鐫镌鹃卷呟埍巻捲臇菤錈锩倦劵勌奆婘帣弮惓慻桊淃狷獧瓹眷睊睠絭絹绢罥羂腃蔨讂鄄餋噘屩屫撅撧亅决刔劂匷厥噊噱孒孓崛崫嶡嶥弡彏憠憰戄抉挗捔掘攫斍桷橛橜櫭欮氒決泬灍焳熦爑爝爴爵獗玃玦玨珏瑴疦瘚矍矡砄絕絶绝臄芵蕝蕨虳蚗蟨蟩覐覚覺觉觖觮觼訣譎诀谲貜赽趉趹蹶蹷躩鈌鐍鐝钁镢駃鴂鴃鷢倔军君均桾汮皲皸皹碅莙菌蚐袀覠軍鈞銁銞鍕钧頵鮶鲪麇麏麕俊儁呁埈寯峻懏捃攈攟晙棞浚濬燇珺畯竣箘箟葰蜠賐郡陖隽雋餕馂駿骏鵔鵕鵘咖喀佧卡咔咯垰胩裃鉲奒开揩鐦锎開凯凱剀剴嘅垲塏嵦恺愷慨暟楷蒈輆鍇鎧铠锴闓闿颽勓忾愾欬炌烗鎎刊勘堪嵁戡栞龕龛侃偘冚凵坎惂欿歁砍竷莰輡轗顑墈崁看瞰矙磡衎闞阚鬫嫝嵻康忼慷槺漮砊穅粇糠躿鏮閌鱇扛亢伉匟囥抗炕犺邟鈧钪闶尻嵪髛丂拷攷栲洘烤考犒銬铐靠鮳鯌鲓匼嗑嵙搕柯棵榼樖牁牱犐珂疴痾瞌砢磕礚科稞窠苛萪薖蚵蝌趷軻轲醘鈳钶頦顆颏颗髁咳壳揢殻殼翗可坷岢嵑嶱敤渇渴炣克刻勀勊堁娔客尅峇恪愘愙氪溘碦礊緙缂艐衉課课錁锞騍骒剋啃垦墾恳懇肎肯肻豤貇錹掯硍裉褃劥坑妔挳摼牼硁硜硻誙銵鍞鏗铿阬倥埪崆悾涳硿空箜躻錓鵼孔恐控鞚剾彄抠摳眍瞘芤劶口冦叩宼寇怐扣敂滱瞉窛筘簆蔲蔻釦鷇刳哭圐堀枯桍矻窟跍郀骷鮬楛狜苦俈喾嚳库庫廤焅瘔秙絝绔袴裤褲酷咵夸姱舿誇侉垮銙挎胯趶跨骻擓蒯侩儈凷哙噲圦块塊墤巜廥快旝欳浍澮狯獪筷糩脍膾郐鄶鱠鲙宽寛寬臗鑧髋髖梡欵款歀窽窾劻匡匩哐恇洭硄筐筺誆诓軭邼忹抂狂狅誑诳軖軠鵟儣夼懭况圹壙岲懬旷昿曠框況爌眖眶矌矿砿礦穬絋絖纊纩貺贶軦邝鄺鉱鋛鑛黋亏刲岿巋悝盔窥窺聧虧闚顝喹夔奎巙戣揆晆暌楏楑櫆犪睽葵藈蘷虁蝰躨逵鄈鍨鍷頯馗騤骙魁傀煃磈跬蹞頍匮匱喟嘳媿嬇尯愦愧憒殨溃潰篑簣籄聩聭聵膭蒉蕢謉餽饋馈坤堃堒崐崑昆晜潉焜熴猑琨瑻菎蜫裈裩褌醌錕锟騉髠髡髨鯤鲲鵾鶤鹍壸壼悃捆梱硱祵稇稛綑裍閫閸阃困涃睏廓扩拡括挄擴濶筈萿葀蛞闊阔霩鞟鞹韕頢髺鬠啦垃拉搚柆菈邋嚹旯磖喇藞剌揦揧攋楋櫴溂爉瓎瘌翋腊臈臘蜡蝋蝲蠟辢辣鑞镴鬎鯻鞡來俫倈婡崃崍庲徕徠来梾棶涞淶猍琜筙箂莱萊逨郲錸铼騋鯠鶆麳襰唻濑瀨瀬癞癩睐睞籁籟藾賚賴赉赖頼顂鵣儖兰啉囒婪岚嵐幱惏懢拦攔斓斕栏欄欗澜瀾灆灡燣燷璼篮籃籣繿葻蓝藍蘫蘭褴襕襤襴襽譋讕谰躝鑭镧闌阑韊壈嬾孄孏懒懶揽擥攬榄欖浨漤灠爦纜缆罱覧覽览醂顲嚂滥濫烂燗爁爛爤瓓糷钄啷勆嫏廊斏桹榔樃欴狼琅瑯硠稂筤艆蓈蜋螂躴郎郒郞鋃鎯锒塱崀朖朗朤烺蓢誏埌浪莨蒗閬阆捞撈粩僗劳労勞哰崂嶗憥朥浶牢痨癆磱窂簩蟧醪鐒铹顟髝佬咾姥恅栳潦狫珯硓老耂荖蛯轑銠铑鮱唠嗠嘮嫪憦橯涝澇烙耢耮躼軂酪乐仂勒叻忇扐楽樂氻泐玏砳竻簕艻阞韷餎鰳鱳鳓了儽嫘擂攂樏檑櫑欙瓃畾礌礧累縲纍纝缧罍羸蔂蘲虆轠鐳鑘镭雷靁鱩鼺傫儡厽垒塁壘壨櫐洡灅癗矋磊磥礨絫耒蕌蕾藟蘽蠝誄讄诔鑸鸓泪涙淚禷类纇肋蘱酹銇錑頛頪類颣嘞唥塄棱楞碐稜薐冷倰堎愣睖踜刕剓剺劙厘喱嚟囄嫠孷廲悡斄梨梸棃樆漓灕犁犂狸琍璃瓈盠睝离穲竰筣篱籬糎縭纚缡罹艃荲菞蓠蔾藜蘺蟍蟸蠫褵謧貍邌醨釐鋫錅鏫鑗離驪骊鯏鯬鱺鲡鵹鸝鹂黎黧俚娌峛峢峲李欚浬澧理礼禮粴蠡裏裡豊逦邐醴里鋰锂鯉鱧鱱鲤鳢丽例俐俪傈儮儷凓利力励勵历厉厤厯厲叓吏呖唎唳嚦囇坜塛壢娳婯孋屴岦巁悧悷慄戾搮擽攊攦攭暦曆曞朸枥栃栎栗栛棙檪櫔櫟櫪欐歴歷沥沴浰涖溧濿瀝爄爏犡猁珕瑮瓅瓑瓥疠疬痢癘癧皪盭睙砅砬砺砾磿礪礫礰禲秝立笠篥粒粝糲綟脷苈苙茘荔莅莉蒚蒞藶蚸蛎蛠蜊蜧蝷蠇蠣觻詈讈赲跞躒轢轣轹郦酈鉝隶隷隸雳靂靋鬁鳨鴗鷅麗麜哩亷劆匲匳嗹噒奁奩嫾帘廉怜慩憐梿槤櫣涟溓漣濂濓瀮熑燫磏簾籢籨縺翴联聨聫聮聯臁莲蓮薕螊蠊裢褳覝謰蹥连連鎌鐮镰鬑鰱鲢嬚摙敛斂歛琏璉羷脸臉蔹蘝蘞裣襝鄻僆堜媡恋戀楝殓殮湅潋澰瀲炼煉瑓練纞练萰錬鍊鏈链鰊俍凉墚梁椋樑涼粮粱糧良踉輬辌駺両两俩倆兩唡啢掚緉脼蜽裲魉魎亮倞哴喨悢晾湸諒谅輌輛辆量鍄撩蹽僚嘹嫽寥寮尞屪嵺嶚嶛廫憀敹暸橑漻燎爎爒獠璙疗療竂簝繚缭聊膋膫藔蟟豂賿蹘辽遼飉髎鷯鹩憭曢瞭蓼鄝釕钌镽尥尦廖撂料炓窷鐐镣咧挘毟儠冽列劣劽哷埒埓姴巤挒捩擸栵洌浖烈烮煭犣猎猟獵聗脟茢蛚裂趔躐迾颲鬛鬣鮤鱲鴷拎临冧厸壣崊嶙斴晽暽林淋潾瀶燐獜琳璘疄瞵碄磷箖粦粼綝繗翷臨轔辚遴邻鄰鏻阾隣霖驎鱗鳞麐麟亃僯凛凜廩廪懍懔撛檁檩澟癛癝菻吝恡悋橉焛甐膦蔺藺賃赁蹸躏躙躪轥閵〇伶凌刢呤囹坽夌姈婈孁崚彾掕昤朎柃棂櫺欞泠淩澪灵燯爧狑玲琌瓴皊砱祾秢竛笭紷綾绫羐羚翎聆舲苓菱蓤蔆蕶蛉衑裬詅跉軨輘酃醽鈴錂铃閝陵零霊霗霛霝駖魿鯪鲮鴒鸰鹷麢齡齢龄龗岭岺嶺袊領领令另炩蘦靈溜澑熘蹓刘劉嚠媹嵧懰斿旈旒榴橊流浏瀏琉瑠瑬璢畄留畱疁瘤癅硫磂蒥蓅藰蟉裗鎏鎦鏐鐂镏镠飀飅飗駠駵騮驑骝鰡鶹鹠麍嬼柳栁桞桺橮熮珋綹绺罶羀鋶锍六塯廇磟翏遛雡霤飂餾馏鬸鷚鹨咙嚨尨嶐巃巄昽曨朧栊槞櫳泷湰滝漋瀧爖珑瓏癃眬矓砻礱礲窿竜笼篭籠聋聾胧茏蘢蠪蠬襱豅躘鏧鑨隆霳靇驡鸗龍龒龓龙儱垄垅壟壠拢攏竉陇隴哢徿梇贚剅喽嘍娄婁廔楼樓溇漊熡瞜耧耬艛蒌蔞蝼螻謱軁遱鞻髅髏鷜塿嵝嶁搂摟甊篓簍屚漏瘘瘺瘻鏤镂陋露噜嚕撸擼謢卢嚧垆壚庐廬攎曥枦栌櫨泸瀘炉爐獹玈璷瓐盧矑籚纑罏胪臚舮舻艫芦蘆蠦轤轳鈩鑪顱颅馿髗魲鱸鲈鸕鸬黸卤塷掳擄樐橹櫓氇氌滷澛瀂硵磠穞艣艪蓾虏虜鏀鐪鑥镥魯鲁鹵侓僇剹勎勠圥坴塶娽峍廘彔录戮摝椂樚淕淥渌漉潞熝琭璐甪盝睩硉碌祿禄稑穋箓簏簬簵簶籙粶膔菉蔍蕗虂螰賂赂趢路踛蹗輅轆辂辘逯醁錄録錴鏕鏴陆陸騄騼鯥鴼鵦鵱鷺鹭鹿麓圝圞奱娈孌孪孿峦巒挛攣曫栾欒滦灓灤癴癵羉脔臠虊銮鑾鵉鸞鸾卵乱亂釠抡掄仑伦侖倫囵圇婨崘崙棆沦淪碖磮綸纶耣腀芲菕蜦踚輪轮錀陯鯩埨惀稐溣論论啰囉捋頱儸囖攞椤欏猡玀箩籮罗羅脶腡萝蘿螺覶覼逻邏鏍鑼锣镙饠騾驘骡鸁倮剆曪瘰癳臝蓏蠃裸躶峈摞泺洛洜漯濼犖珞硌硦笿絡纙络荦落詻雒駱骆鮥鵅榈櫚氀膢藘閭闾驢驴侣侶偻僂儢吕呂屡屢履慺挔捛旅梠焒祣稆穭絽縷缕膂膐褛褸郘鋁铝勴垏嵂律慮櫖氯滤濾爈率箻綠緑繂绿膟葎虑鑢圙寽掠略畧稤鋝鋢锊妈媽嫲嘛犘痲痳蔴蟆蟇麻杩溤犸獁玛瑪码碼蚂螞遤鎷馬马鰢鷌傌嘜榪睰祃禡罵閁駡骂鬕吗嗎埋薶霾买嘪荬蕒買鷶佅劢勱卖唛売脈脉衇賣迈邁霡霢麥麦顢颟姏悗慲摱樠瞒瞞蛮蠻謾谩鞔饅馒鬗鬘鰻鳗娨屘満满滿矕螨蟎襔鏋僈墁嫚幔慢曼槾漫澷熳獌縵缦蔄蔓蘰鄤鏝镘牤厖吂哤娏忙恾杗杧汒浝牻狵痝盲盳硭笀芒茫蘉蛖邙釯鋩铓駹壾漭硥茻莽莾蟒蠎猫貓堥旄枆楙毛氂渵牦犛矛罞芼茅茆蝥蟊軞酕鉾錨锚髦髳鶜乮冇卯夘峁戼昴泖笷蓩鉚铆冃冐冒媢帽愗懋暓柕毷瑁皃眊瞀耄茂萺蝐袤覒貌貿贸鄚鄮嚒嚰濹么麼麽坆堳塺媒嵋徾攗枚栂梅楣楳槑沒没湄湈煤猸玫珻瑂眉睂禖脄脢腜苺莓葿郿酶鋂鎇镅霉鶥鹛黴凂媄媺嬍嵄挴毎每浼渼燘美羙躾鎂镁黣嚜妹媚寐抺旀昧沬煝痗眛睸祙篃蝞袂跊韎鬽魅椚们們扪捫玧璊穈菛虋鍆钔門閅门悶懑懣暪焖燜闷掹擝矇蒙儚幪懞曚朦橗檬氋氓溕濛獴甍甿盟瞢矒礞艨莔萌蕄虻蝱鄳鄸霿靀顭饛鯍鸏鹲冡勐懵猛艋蜢蠓錳锰鯭鼆夢夣孟懜梦癦霥咪眯瞇冞弥彌戂擟攠瀰爢猕獼瓕祢禰糜縻蒾藌蘪蘼袮詸謎谜迷醚醾醿釄镾靡鸍麊麋麛麿侎孊弭敉沵洣渳濔灖米粎羋脒芈葞蔝銤冖冪嘧塓宓宻密峚幂幎幦怽榓樒櫁汨沕泌淧滵漞濗熐祕秘簚糸羃蔤蜜覓覔覛觅謐谧鼏婂媔嬵宀杣棉檰櫋眠矈矊矏綿緜绵臱芇蝒丏偭免冕勉勔喕娩愐汅沔渑湎澠眄睌絻緬缅腼葂靦鮸糆面靣麪麫麵麺喵媌嫹描瞄緢苗鶓鹋劰杪淼渺眇秒篎緲缈藐邈妙庙庿廟玅竗乜吀咩哶孭幭懱搣櫗滅瀎灭烕礣篾蔑薎蠛衊鑖鱴鴓垊姄岷崏怋慜捪旻旼民玟珉琘琝瑉痻盿砇碈緍緡缗罠苠鈱錉鍲鴖僶冺刡勄忞忟悯惽愍憫抿敃敏敯暋泯湣潣皿笢笽簢蠠閔閩闵闽鰵鳘黽黾冥名嫇明暝朙榠洺溟猽眀眳瞑茗蓂螟覭詺鄍銘铭鳴鸣佲凕姳慏酩命掵謬谬嚤摸劘嫫嬤嬷尛庅摩摹擵模橅磨糢膜蘑謨謩谟饃饝馍髍魔魹懡抹嗼圽塻墨妺嫼寞帓帞昩末枺歾歿殁沫漠爅獏瘼皌眜眽眿瞐瞙砞礳秣絈纆耱茉莈莫蓦藦蛨蟔貃貊貘銆鏌镆陌靺驀魩默黙哞侔劺呣恈牟眸繆缪蛑謀谋踎鍪鴾麰某毪氁亩姆峔拇母牡牳畂畆畒畝畞畮砪胟踇鉧仫凩募坶墓幕幙慔慕暮暯木楘毣沐炑牧狇目睦穆縸艒苜莯蚞鉬钼雮霂鞪嗱拏拿搻鎿镎乸哪雫吶呐妠捺笝納纳肭蒳衲袦豽貀軜那郍鈉钠靹魶孻腉乃倷奶嬭廼氖疓艿迺釢奈柰渿耐萘螚褦錼鼐囡侽南喃娚抩暔枏柟楠男畘莮諵遖难難戁揇湳煵腩萳蝻赧婻囔乪嚢囊欜蠰饢馕擃攮曩灢儾齉孬呶夒峱嶩巎怓憹挠撓猱獶獿硇碙蛲蟯詉譊鐃铙匘垴堖嫐恼悩惱瑙碯脑脳腦淖臑閙闹鬧抐疒眲訥讷呢娞脮腇餒馁鮾鯘內内氝氞錗嫩嫰恁能妮倪坭埿婗尼屔怩棿泥淣猊秜籾聣臡蚭蜺觬貎跜輗郳鈮铌霓馜鯢鲵麑齯伱伲你儗儞妳孴抳拟掜擬旎晲柅檷狔聻苨薿隬匿堄嫟嬺屰惄愵昵暱氼溺眤睨縌胒腻膩誽逆拈蔫哖姩年秊秥粘鮎鯰鲇鲶鵇黏捻撚撵攆涊淰焾碾簐蹍蹨躎輦辇卄唸埝廿念惗艌娘嬢孃酿醸釀嫋嬝嬲樢茑蔦袅裊褭鳥鸟尿脲捏揑苶啮嗫噛嚙囁囓圼孼孽嵲嶭巕帇摰敜枿槷櫱涅湼痆篞籋糱糵聂聶臬臲菍蘖蠥讘踂踗踙蹑躡錜鎳鑈鑷钀镊镍闑陧隉顳颞齧囜您脌拰儜凝咛嚀嬣宁寍寕寗寜寧擰柠橣檸狞獰甯聍聹薴鑏鬡鸋拧矃佞侫倿泞澝濘妞汼牛牜忸扭杻炄狃紐纽莥鈕钮靵侬儂农哝噥檂欁浓濃燶禯秾穠脓膿蕽襛譨農辳醲鬞繷弄挊挵癑齈羺槈檽獳耨鎒鐞伮奴孥帑笯駑驽努弩砮胬傉怒搙奻暖渜煖煗餪黁傩儺娜挪梛橠喏愞懦懧掿搦榒稬穤糑糥糯諾诺蹃逽鍩锘女籹釹钕恧朒沑衂衄婩疟瘧硸虐喔噢哦筽塸櫙欧歐殴毆熰瓯甌膒藲謳讴鏂鴎鷗鸥偶吘呕嘔耦腢蕅藕怄慪沤漚啪妑皅舥苩葩趴掱杷潖爬琶筢帊帕怕袙拍俳徘排棑牌犤猅箄簰簲輫哌沠派渒湃蒎鎃攀潘眅萠丬媻幋搫柈槃洀瀊爿盘盤磐磻縏蒰蟠跘蹒蹣鎜鞶冸判叛沜泮溿炍牉畔盼聁袢襻詊鋬鑻頖鵥乓滂胮膖雱霶厐嫎庞庬彷徬旁舽螃逄鰟鳑龎龐耪覫炐眫肨胖抛拋脬萢刨匏咆垉庖炰爮狍袍褜軳鞄麃麅跑奅泡炮疱皰砲礟礮靤麭呸怌肧胚衃醅培婄毰裴裵賠赔錇锫阫陪俖伂佩姵帔斾旆沛浿犻珮蓜轡辔配霈馷喷噴歕湓瓫盆葐呠翸剻匉嘭怦恲抨梈泙烹砰硑磞軯閛駍倗傰堋塜塳弸彭憉捀朋棚椖樥澎熢硼稝竼篣篷纄膨芃莑蓬蘕蟚蟛袶輣錋鑝韸韼騯髼鬅鬔鵬鹏捧淎皏掽椪槰碰踫丕伓伾劈噼坯岯悂憵批披抷旇枈炋狉狓砒磇礔礕秛秠紕纰翍耚豾邳釽鈚鉟銔錃錍陴霹駓髬魾啤埤壀崥枇毗毘焷琵疲皮笓篺罴羆肶脾腗膍蚍蚽蚾蜱螷蠯裨豼貔郫鈹铍阰隦魮鮍鲏鵧鼙仳匹吡噽嚭圮嶏庀擗疋痞癖脴苉諀銢鴄僻媲嫓屁揊淠潎澼甓疈稫譬辟闢鷿鸊偏囨媥楄犏篇翩鍂鶣楩胼腁賆跰蹁駢騈骈骿覑諞谝貵片騗騙骗魸剽勡嘌彯慓旚漂犥翲螵飃飄飘魒嫖瓢薸闝殍皫瞟篻縹缥醥顠僄徱票驃鰾撆撇暼氕瞥覕丿苤鐅嫳姘拚拼砏礗穦馪驞嚬娦嫔嬪玭琕矉薲蘋蠙貧贫顰频颦品榀汖牝聘乒俜娉涄甹砯聠艵頩凭凴呯坪塀屏岼帡帲幈平慿憑枰檘洴淜焩玶瓶甁竮箳簈缾胓苹荓萍蓱蚲蛢評评軿輧郱鮃鲆屛坡岥泼溌潑酦醗醱釙鏺钋頗颇嘙嚩婆櫇皤蔢鄱叵尀笸箥鉕钷駊哱奤岶廹敀昢洦湐烞珀破砶粕蒪迫魄剖娝垺抔抙捊箁裒咅哣掊犃仆噗扑撲攴攵潽炇痡鋪铺陠鯆僕匍圤墣濮獛璞瞨穙纀莆菐菩葡蒱蒲贌酺鏷镤圃圑埔擈普暜朴樸檏氆浦溥烳諩譜谱蹼鐠镨曝瀑舖舗七倛傶僛凄嘁墄妻娸悽慼慽戚捿攲敧期柒栖桤桼棲榿欹欺沏淒漆紪緀萋褄諆踦蹊迉郪鏚霋魌鶈丌亓亝其剘圻埼奇岐岓崎嵜帺忯愭懠掑斉斊旂旗棊棋檱櫀歧淇濝猉玂琦琪璂畦疧碁碕祁祈祺禥竒簯簱籏粸綥綦耆肵脐臍艩芪萁萕蕲藄蘄蚑蚔蚚蛴蜝蜞螧蠐褀跂軝鄿釮錡锜陭隑頎颀騎騏騹骐骑鬐鬿鯕鰭鲯鳍鵸鶀麒麡齊齐乞企启呇唘啓啔啟婍屺岂晵杞棨玘盀綺绮芑諬豈起邔闙呮咠唭噐器夡契弃愒憇憩摖暣栔棄槭欫气気氣汔汽泣湆湇滊炁甈盵矵砌碛碶磜磧磩罊芞葺藒蟿訖讫迄鐑掐擖葜峠拤跒酠鞐冾圶帢恰殎洽硈胢髂仟佥僉千厱圱圲奷婜孯岍悭愆慳扦拪掔搴撁攐攑攓杄檶櫏欦汘汧牵牽竏签簽籖籤粁臤芊茾蚈褰諐謙谦谸迁遷釺鈆鉛鏲钎铅阡韆顅騫骞鬜鬝鵮鹐乹乾亁仱偂前墘媊岒忴扲拑掮揵榩橬歬潛潜濳灊箝羬荨葥蕁虔軡鈐鉗銭錢鎆钤钱钳騚騝鰬黔黚槏浅淺繾缱肷膁蜸譴谴遣鑓伣俔倩傔儙刋堑塹壍嬱嵌悓慊棈椠槧欠歉皘篏篟綪縴芡茜蒨蔳輤呛啌嗆嗴嶈戕戗戧搶摤斨枪椌槍溬牄猐獇玱瑲篬羌羗羫腔蜣謒跄蹌蹡鎗鏘锖锵墙墻嫱嬙廧強强彊樯檣漒牆艢蔃蔷薔蘠墏抢繈繦羟羥襁鏹镪唴炝熗羻劁勪墝墽帩幧悄敲橇毃燆硗磽繑繰缲趬跷踍蹺蹻郻鄡鄥鍫鍬鐰锹頝骹乔侨僑喬嘺墧嫶峤憔桥槗樵橋櫵犞癄睄瞧硚礄翘翹荍荞菬蕎藮譙谯趫鐈鞒鞽顦巧愀釥髜俏僺峭撬撽窍竅誚诮躈陗鞘鞩韒髚切苆癿聺茄且匧厒妾怯悏惬愜挈洯淁穕窃竊笡箧篋籡蛪趄踥郄鍥锲鯜亲侵兓媇寴嵚嵰嶔欽綅衾親誛钦顉駸骎鮼勤嗪噙埐嫀嶜庈懃懄捦擒斳檎澿珡琴琹瘽禽秦耹肣芩芹菦菳蚙螓蠄鈙鈫雂靲鳹鵭坅寑寖寝寢昑梫笉螼赾鋟锓吢吣唚抋揿搇撳沁瀙菣藽倾傾卿圊埥寈氢氫淸清蜻軽輕轻郬錆鑋靑青鯖鲭剠勍啨夝情擎擏晴暒棾樈檠殑氰甠硘葝黥庼廎檾漀苘請謦请頃顷儬凊庆慶掅櫦殸濪碃磬箐綮罄靘儝卭宆惸憌桏橩焪焭煢熍琼璚瓊瓗睘瞏穷穹窮竆笻筇舼茕藑藭蛩蛬赹跫邛銎丘丠坵媝恘恷楸湫湬秋秌穐篍緧萩蓲蘒蚯蝵蟗蠤趥邱鞦鞧鰌鰍鳅鶖鹙龝俅叴唒囚崷巯巰扏朹梂殏毬求汓泅浗渞湭煪犰玌球璆皳盚紌絿肍芁莍虬虯蛷蝤裘觓觩訄訅賕赇逎逑遒酋醔釚釻銶頄鮂鯄鰽鼽搝糗伹佉匤区區呿坥屈岖岴嶇憈抾敺浀焌煀祛筁粬紶胠蛆蛐袪覰詘誳诎趋趍趨躯軀阹駆駈驅驱髷魼鰸鱋鶌麯麴麹黢佢劬忂戵斪朐欋欔氍淭渠灈爠璖璩癯瞿磲籧絇翑胊臞菃葋蕖蘧螶蟝蠷蠼衐衢躣軥鑺鴝鸜鸲鼩取娶曲竘竬蝺詓齲龋刞厺去耝覷覻觑趣閴闃阒麮鼁圈圏奍悛棬椦箞鐉佺全啳埢姾峑巏恮拳搼权楾権權泉洤湶牷犈瑔痊硂筌絟縓荃葲蜷蠸觠詮诠跧踡輇辁醛銓铨闎顴颧駩騡鬈鰁鳈齤烇犬犭犮畎綣绻虇券劝勧勸牶韏炔缺缼蒛阙瘸傕却卻埆塙崅悫愨慤搉棤榷燩琷皵硞确碏確碻礐礭趞闋闕阕雀鵲鹊囷夋踆逡宭峮帬羣群裙裠呥嘫然燃繎肰蚦蚺衻袇袡髥髯冄冉姌媣染橪珃苒蒅儴勷瀼獽瓤禳穣穰蘘躟鬤嚷壌壤攘爙懹譲讓让娆嬈桡橈荛蕘襓饒饶扰擾隢繞绕遶惹热熱人亻仁壬忈忎朲秂芢銋魜鵀忍栠栣棯秹稔綛荏荵躵仞仭任刃刄妊姙屻岃扨杒梕牣祍紉紝絍纫纴肕腍衽袵訒認认讱軔轫鈓靭靱韌韧飪餁饪扔仍礽芿辸陾囸日衵釰釼鈤馹驲傛媶嫆嬫容峵嵘嵤嶸戎搈搑曧栄榕榮榵槦毧溶瀜烿熔爃狨瑢穁絨縙绒羢肜茙茸荣蓉蝾融螎蠑褣鎔镕駥傇冗坈宂氄軵穃厹媃揉柔楺渘煣瑈瓇禸粈糅脜腬葇蝚蹂輮鍒鞣騥鰇鶔韖宍肉譳嶿侞儒嚅如嬬孺帤挐曘桇渪濡筎繻茹蒘蕠薷蝡蠕袽襦邚醹銣铷顬颥鱬鴑鴽乳擩汝肗辱鄏入嗕媷扖杁洳溽縟缛蓐褥鳰堧壖撋偄媆朊瑌瓀碝礝緛耎腝軟輭软阮桵甤緌蕤壡惢橤繠蕊蕋蘂蘃叡枘汭瑞睿芮蚋蜹銳鋭锐瞤橍润潤膶閏閠闰挼捼偌叒婼嵶弱楉渃焫爇箬篛若蒻鄀鰙鰯鶸仨撒洒灑訯躠靸卅摋櫒脎萨蕯薩鈒钑隡颯飒馺嘥噻塞愢揌毢毸腮顋鰓鳃嗮僿簺賽赛三厁叁弎毵毶毿犙鬖伞傘糁糝糣糤繖鏒鏾饊馓俕散潵閐壭桑桒槡嗓搡磉褬鎟顙颡丧喪慅掻搔溞繅缫臊螦颾騒騷骚鰠鱢鳋嫂扫掃埽氉瘙矂髞閪啬嗇懎摵擌栜歮歰洓涩渋澀澁濇濏瀒瑟璱瘷穑穡穯繬色譅轖銫鏼铯雭飋森椮槮襂僧鬙乷唦杀桬榝樧殺毮沙煞猀痧砂硰粆紗繺纱蔱裟鎩铩閷髿魦鯊鯋鲨啥傻儍倽厦唼啑喢嗄帹廈歃箑翜翣萐閯霎筛篩簁簛籭晒曬傓删刪剼嘇圸姍姗山幓彡挻搧杉柵檆潸澘煽狦珊痁笘縿羴羶脠膻舢芟苫衫跚軕邖釤钐閊鯅晱炶煔熌睒覢閃闪陕陝僐善墠墡嬗扇掞擅敾椫樿歚汕灗疝磰禪繕缮膳蟮蟺訕謆譱讪贍赡赸鄯銏鐥饍騸骟鱓鱔鳝伤傷商墒慯殇殤滳漡熵禓蔏螪觞觴謪鬺垧扄晌樉賞贘赏鋿鏛鑜丄上尙尚恦緔绱鞝弰捎旓梢烧焼燒稍筲艄莦萷蕱輎髾鮹勺杓柖玿芍韶少劭卲哨娋潲紹綤绍袑邵奓奢檨猞畬畭畲賒賖赊輋佘揲舌虵蛇蛥捨舍厍厙射弽慑慴懾摂摄攝欇涉涻渉滠灄社舎蔎蠂設设赦韘騇麝伸侁兟呻堔妽姺娠屾峷扟敒曑柛氠深燊珅甡甧申眒砷穼籶籸糂紳绅罙罧莘葠蓡蔘薓裑訷詵诜身駪鯓鯵鰺鲹鵢什榊神鉮鰰哂婶嬸审宷審弞曋沈渖瀋瞫矤矧覾訠諗讅谂谉邥頣魫侺愼慎昚涁渗滲甚瘆瘮眘祳肾胂脤腎葚蜃蜄鋠升呏声斘昇曻枡殅泩湦焺牲狌珄生甥竔笙聲苼鉎鍟阩陞陹鵿鼪憴縄繉繩绳譝偗渻省眚剩剰勝圣墭嵊晟晠榺橳琞盛聖胜蕂貹賸呞失尸屍师師施浉湤湿溮溼濕狮獅瑡箷絁葹蒒蓍虱蝨褷襹詩诗邿酾釃釶鉇鍦鯴鰤鲺鳲鳾鶳鸤乭十埘塒姼实実寔實峕嵵拾时旹時榯湜溡炻石祏竍蚀蝕識识遈鉐食飠饣鮖鰣鲥鼫鼭乨使兘史始宩屎榁矢笶豕鉂駛驶世丗亊事仕侍冟势勢卋呩嗜噬士奭嬕室崼市式弑弒徥忕恀恃戺拭揓是昰枾柹柿栻氏澨烒煶眂眎眡睗示礻秲筮簭舐舓莳蒔螫襫視视觢試誓諟諡謚试谥貰贳軾轼适逝適遾釈释釋鈰鉃鉽銴铈飾餙餝饰鰘籂辻収收垨守手扌艏首兽受售嘼壽夀寿授涭狩獣獸痩瘦綬绶膄鏉书倏倐儵叔姝婌抒掓摅攄書杸枢梳樞橾殊殳毹毺淑瀭焂琡疎疏紓綀纾舒菽蔬跾踈軗輸输鄃陎鮛鵨塾孰尗熟璹秫贖赎属屬数數暏暑曙潻癙糬署薥薯藷蜀蠴襡襩鱪鱰黍鼠鼡侸咰墅尌庶庻怷恕戍捒朮术束树樹沭漱潄澍濖竖竪絉腧荗蒁虪術裋豎述鉥錰鏣霔鶐刷唰耍誜摔衰甩卛帅帥蟀拴栓閂闩涮腨双孀孇欆礵艭雙霜騻驦骦鷞鸘鹴塽慡漺爽縔鏯灀脽誰谁水氵氺閖帨涗涚睡祱稅税裞吮楯橓瞚瞬舜蕣順顺鬊說説说妁搠朔槊欶烁爍獡矟硕碩箾蒴鎙鑠铄丝俬凘厮厶司咝嘶噝媤廝思恖撕斯楒泀澌燍磃禗禠私糹絲緦纟缌罳蕬虒蛳蜤螄蟖蟴鉰銯鋖鍶鐁锶颸飔騦鷥鸶鼶死亖似佀価俟儩兕嗣四姒娰孠寺巳杫枱柶梩榹汜泗泤洍洠涘瀃牭祀禩竢笥耛耜肂肆蕼覗貄釲鈶鈻飤飼饲駟騃驷倯凇娀崧嵩庺忪憽松枀枩柗梥檧淞濍硹菘鬆傱嵷怂悚愯慫楤竦耸聳駷宋訟誦讼诵送鎹頌颂餸凁嗖廀廋捜搜摉摗溲獀艘蒐蓃螋鄋醙鎪锼颼飕餿馊騪傁叜叟嗾擻櫢瞍籔薮藪嗽擞瘶囌櫯甦稣穌窣苏蘇蘓酥鯂俗傃僳嗉塐塑夙嫊宿愫愬憟梀榡樎樕橚殐泝洬涑溯溸潚潥玊珟璛碿簌粛粟素縤肃肅膆莤蔌藗觫訴謖诉谡趚蹜速遡遬鋉餗驌骕鱐鷫鹔狻痠酸匴祘笇筭算蒜倠哸夊浽滖濉熣芕荽荾虽雖鞖瓍綏绥遀隋随隨髄瀡膸髓亗埣嬘岁嵗旞檖歲歳澻煫燧璲睟砕碎祟禭穂穗穟繀繐繸襚誶譢谇賥遂邃鐆鐩隧韢孙孫搎槂狲猻荪蓀蕵薞飧飱损損榫笋筍箰簨鎨隼鶽傞唆嗍嗦娑挱挲摍桫梭睃簑簔縮缩羧莎莏蓑趖鮻乺唢嗩所暛溑獕琐琑瑣索褨鎍鎖鎻鏁锁溹蜶逤他塌她它榙溻牠祂褟趿鉈铊闧塔墖獭獺鮙鰨鳎傝嚃嚺崉挞搨撻榻橽毾沓涾澾濌狧禢粏誻譶踏蹋蹹躂躢遝遢錔闒闥闼阘鞜鞳侤囼孡胎儓台坮嬯抬擡旲檯炱炲箈籉臺苔菭薹跆邰颱駘骀鮐鲐冭太夳忲态態汏汰汱泰溙燤肽舦酞鈦钛啴嘽坍怹摊擹攤滩潬灘痑瘫癱舑貪贪倓坛埮墰墵壇壜婒弹弾彈惔憛昙曇榃橝檀潭燂痰罈罎藫覃談譚譠谈谭貚郯醈醰錟锬顃僋嗿坦忐憳憻暺毯璮菼袒襢醓鉭钽叹嘆探歎湠炭碳舕劏嘡汤湯羰薚蝪蹚鏜镗鞺鼞傏唐啺坣堂塘嵣搪棠榶樘橖溏漟煻瑭磄禟篖糃糖糛膅膛蓎螗螳赯踼鄌醣鎕闛隚餹饄鶶伖倘偒傥儻戃曭淌爣矘耥躺鎲钂镋摥烫燙趟鐋铴夲嫍幍弢慆掏搯槄涛滔濤瑫絛縚縧绦詜謟轁鞱韜韬飸饕匋咷啕桃洮淘祹綯绹萄蜪裪迯逃醄鋾陶鞀鞉饀駣騊鼗討讨套忑忒慝特脦蟘鋱铽熥膯鼟儯幐滕漛疼痋籐籘縢腾藤虅螣誊謄邆駦騰驣鰧霯剔擿梯踢銻锑鷈鷉偍厗啼嗁媞崹徲惿提渧漽瑅睼碮禔禵稊綈緹绨缇罤蕛褆謕趧蹄蹏醍鍗題题騠鮷鯷鳀鵜鶗鶙鷤鹈体挮躰軆骵體倜剃嚏嚔屉屜悌悐惕惖戻掦揥替朑歒殢涕瓋笹籊薙褅趯逖逷髰鬀鬄兲天婖添酟靔靝黇塡填屇恬搷沺湉璳甛甜田畋畑碵磌窴緂胋菾闐阗鴫鷆鷏倎唺忝悿晪殄淟琠痶睓腆舔覥觍賟錪餂掭瑱舚佻庣恌挑旫祧聎岧岹条條樤祒笤芀苕萔蓚蓨蜩调迢鋚鎥鞗髫鯈鰷鲦齠龆嬥宨晀朓窕窱脁誂眺粜糶絩覜趒跳怗聑萜貼贴僣帖蛈鉄銕鐡鐵铁驖呫飻餮厅厛听庁廰廳桯汀烃烴綎耓聴聼聽鞓亭停婷嵉庭廷楟榳渟筳聤莛葶蜓蝏諪邒閮霆鼮侹圢娗挺梃涏烶珽町甼脡艇誔鋌铤頲颋嗵樋炵痌絧蓪通仝佟僮勭同哃峂峒峝庝彤晍曈朣桐橦氃浵潼烔燑犝狪獞眮瞳砼秱穜童粡膧茼蚒詷赨酮鉖鉵銅铜餇鮦鲖捅桶筒筩統綂统恸慟憅痛衕偷偸婾媮緰鋀鍮亠头投頭骰妵敨斢紏蘣黈透凸堗宊嶀怢捸涋湥痜禿秃突葖鋵鵚鼵凃図图圖圗塗屠峹嵞庩廜徒悇捈揬梌涂潳瑹瘏稌筡腯荼蒤跿途酴鈯鍎馟駼鵌鶟鷋鷵吐唋土圡釷钍兎兔堍莵菟迌鵵汢圕湍煓猯貒剸团団團慱抟摶槫檲漙篿糰鏄鷒鷻墥畽疃彖湪褖推蓷藬尵弚橔穨蘈蹪隤頹頺頽颓魋俀僓腿蹆骽娧煺蛻蜕螁褪退駾吞呑噋旽暾朜涒焞囤坉屯忳臀臋芚蛌豘豚軘霕飩饨魨鲀黗氽乇仛侂咃咜托扡拕拖挩捝杔汑沰涶脫脱莌袥託讬飥饦馲魠鮵佗侻坨堶媠岮柁槖橐沱沲狏砣砤碢紽袉詑跎酡阤陀陁馱駄駝駞騨驒驝驮驼鮀鴕鸵鼉鼍鼧妥嫷庹彵椭楕橢鰖鵎唾嶞拓柝毤毻箨籜萚蘀跅劸哇嗗娲媧屲挖搲攨洼溛漥瓾畖穵窊窐窪蛙韈鼃娃佤咓瓦砙邷嗢聉腽膃袜襪韤呙咼喎歪竵外顡剜塆壪婠帵弯彎湾潫灣睕蜿豌丸刓完岏忨抏捖汍烷玩琓笂紈纨翫芄貦頑顽倇唍埦婉宛惋挽晚晥晩晼梚椀涴琬畹皖盌碗箢綩綰绾脘莞菀萖踠輓鋔万卍卐妧捥杤澫瞣脕腕萬薍蟃贃贎輐鋄錽鎫尣尩尪尫汪亡亾仼兦王莣蚟彺往徃惘暀枉棢瀇網网罒罓罔罖菵蛧蝄誷輞辋魍妄忘旺望朢迋偎危厃喴威媙崴嵔嶶巍微愄揋揻椳楲溦烓煨燰癓縅葨葳薇蜲蝛覣詴逶隇隈霺鰃鰄鳂唯喡囗囲围圍壝媁峗峞嵬帏帷幃惟桅欈沩洈涠湋溈潍潙潿濰為爲犩琟矀硙維维蓶覹违違鄬醀鍏闈闱韋韦鮠亹伟伪偉偽僞儰委娓寪尾屗崣嶉徫愇捤撱斖暐梶椲洧浘渨濻瀢炜煒猥玮瑋痏痿硊碨緯纬腲艉芛苇荱萎葦蒍蔿諉诿踓鍡隗韑韙韡韪頠颹骩骪骫鮪鲔为位卫叞味喂墛媦尉慰懀未渭煟熭犚猬畏緭罻胃苿菋蔚藯蘶蜼蝟螱衛衞褽謂讆讏谓躗躛軎轊鏏霨餧餵饖魏鮇鳚塭昷榅榲殟温溫瑥瘟豱輼轀辒鎾鞰饂鰛鰮鳁彣文炆珳瘒紋繧纹聞芠蚉蚊螡蟁閺閿闅闦闻阌雯馼駇魰鳼鴍鼤伆刎吻呅呡抆桽稳穏穩紊肳脗問妏揾搵汶渂璺莬问顐嗡翁聬螉鎓鶲鹟勜塕奣嵡攚暡滃瞈蓊瓮甕罋蕹齆倭唩挝涡涹渦猧窝窩莴萵蜗蝸踒婐婑我捰仴偓卧媉幄捾握斡枂楃沃渥濣焥瓁瞃硪肟腛臒臥齷龌乌剭呜嗚圬屋巫弙杇歍汙汚污洿烏窏箼螐誈誣诬邬鄔鎢钨鰞鴮吳吴吾呉墲娪峿无梧橆毋洖浯無珸璑祦芜茣莁蕪蜈蟱譕郚鋙铻鯃鵐鷡鹀鼯乄五仵伍侮倵儛午啎妩娒娬嫵庑廡忤怃憮捂摀武潕熓牾玝珷瑦甒瞴碔舞躌迕逜陚鵡鹉俉兀务務勿卼唔坞塢奦婺寤屼岉嵍嵨忢悞悟悮戊扤敄旿晤杌溩焐熃物痦矹窹粅芴蘁誤误鋈阢隖雺雾霚霧靰騖骛鶩鹜鼿齀俙傒僖兮凞卥厀吸唏唽嘻噏嚱夕奚娭嬆嬉屖嵠巇希徆徯忚怸恓息悉悕惁惜扱扸昔晞晰晳暿曦析桸榽樨橀欷歙氥汐浠淅渓溪潝烯焁焈焟焬煕熄熈熙熹熺熻燨爔牺犀犠犧狶琋瘜皙睎瞦矽硒磎礂稀穸窸粞糦緆繥羲翕翖肸肹膝舾莃菥蒠蜥螅螇蟋蠵裼西覡觹觽觿譆谿豀豨豯貕赥邜郗鄎酅醯釸錫鏭鐊鑴锡隵餏饎饻鯑鵗鸂鼷习喺媳嶍席椺槢檄漝習蒵蓆薂袭襲觋謵趘郋鎴隰霫飁騱騽驨鰼鳛喜囍壐屣徙憘憙枲橲歖洗漇玺璽矖禧縰葈葸蓰蟢諰謑蹝躧鈢鉨鉩鱚係匸卌呬墍屃屓屭忥怬恄慀戏戯戱戲椞欯潟澙熂犔盻磶禊稧系細綌縘繫细绤舃舄蕮虩衋覤赩趇郤釳闟阋隙隟霼餼饩鬩黖傄呷煆瞎虲虾蝦谺閕颬鰕侠俠匣埉峡峽敮暇柙炠烚狎狭狹珨瑕硖硤碬磍祫筪縖翈舝舺蕸赮轄辖遐鍜鎋陜陿霞騢魻鶷黠閜丅下乤吓圷夏夓懗梺疜睱罅諕鎼鏬仙仚佡僊僲先嘕奾嬐孅屳廯忺憸掀攕暹杴枮氙珗祆秈籼繊纎纖纤苮莶薟褼襳跹蹮躚酰銛銽鍁铦锨韯韱馦鮮鱻鲜鶱伭咁咸啣嗛妶娴娹婱嫌嫺嫻弦憪挦撏涎湺澖甉痫癇癎盷瞯礥稴絃胘舷藖蚿蛝衔衘誸諴賢贒贤輱醎銜鑦閑閒闲鷳鷴鷼鹇鹹麙冼尟尠崄嶮幰搟攇显櫶毨灦烍燹狝猃獫獮玁禒筅箲藓蘚蚬蜆譣赻跣銑鍌铣险険險韅顕顯僩僴县咞哯垷埳塪壏姭娊宪岘峴憲撊晛橌橺涀瀗献獻现現県睍粯糮絤綫線縣线缐羡羨腺臔臽苋莧誢豏鋧錎限陥陷霰餡馅麲鼸乡厢廂忀楿欀湘瓖相稥箱緗纕缃膷芗萫葙薌襄郷鄉鄊鄕鑲镶香驤骧鱜麘佭庠栙瓨祥絴翔詳详跭享亯响想晑蚃蠁銄響飨餉饗饟饷鮝鯗鱶鲞像勨向嚮姠嶑巷曏橡珦缿蟓衖襐象鐌項项鱌侾削呺哓嘐嘵嚣嚻囂婋宯宵庨彇憢揱撨枭枵梟櫹歊毊消潇瀟灱灲烋焇猇獢痚痟硝硣穘窙箫簘簫綃绡翛肖膮萧蕭藃虈虓蛸蟂蟏蟰蠨踃逍銷销霄颵驍骁髇髐魈鴞鴵鷍鸮崤殽洨淆訤誵郩小晓暁曉皛皢筱筿篠謏俲傚効咲哮啸嘋嘨嘯孝恔效敩斅斆校歗涍熽笑詨誟些娎揳楔歇猲蝎蠍偕劦勰协協嗋嚡垥奊孈峫恊愶拹挟挾携撷擕擷攜斜旪熁燲瑎絜綊緳縀缬翓胁脅脇脋膎蝢衺襭諧讗谐邪鞋鞵龤写冩寫藛血亵伳偞偰僁卨卸噧塮夑媟屑屟屧嶰廨徢懈暬械榍榭泄泻洩渫澥瀉瀣灺炧炨烲焎燮爕獬祄禼糏紲絏絬緤繲纈绁缷薢薤蟹蠏褉褻謝谢躞邂靾鞢韰齂齘齛齥俽噷噺妡嬜廞心忄忻惞新昕杺欣歆盺芯薪訢辛邤鈊鋅鑫锌馨馫枔襑鐔镡伈伩信囟孞炘焮脪舋衅訫軐釁阠顖馸垶惺星曐煋猩瑆皨箵篂腥興觪觲謃騂骍鮏鯹侀刑哘型娙形洐滎硎荥蛵行邢郉鈃鉶銒鋞钘铏陉陘餳饧擤睲醒倖兴姓婞嬹幸性悻杏涬緈臖荇莕葕兄兇凶匂匈哅忷恟汹洶胷胸芎訩詾讻賯熊熋雄焸焽夐敻詗诇休俢修咻庥樇烌羞脙脩臹貅銝鎀鏅飍饈馐髤髹鮴鱃鵂鸺苬朽滫潃糔嗅嚊岫峀溴珛琇璓秀綉繍繡绣螑袖褎褏銹鏥鏽锈齅偦吁嘘噓圩墟媭嬃戌揟旴楈欨欻歔歘燸疞盱砉綇縃胥蕦虗虚虛蝑裇訏許諝譃谞鑐需須须顼驉鬚魆魖俆冔徐禑蒣呴喣姁暊栩湑珝盨稰糈詡諿许诩鄦醑伵侐勖勗卹叙垿壻婿序怴恤慉敍敘旭昫晇朂槒欰殈汿沀洫溆漵潊烅烼煦獝珬盢瞁稸絮続緒緖續绪续聓聟芧蓄蓿藇藚訹賉酗銊頊鱮儇吅喧塇媗宣弲愃愋懁揎昍晅暄梋煊瑄睻矎禤箮翧翾萱萲蓒蕿藼蘐蝖蠉諠諼譞谖軒轩鋗鍹鞙駽鰚嫙悬懸旋暶檈漩玄玹琁璇璿痃蜁咺暅烜癣癬选選怰昡楥楦泫渲炫琄眩眴碹絢縼繏绚蔙衒袨贙鉉鏇铉镟颴疶蒆薛辥辪靴鞾乴壆学學峃嶨斈泶澩燢穴茓袕觷踅鷽鸴樰膤艝轌雪鱈鳕吷坹岤桖瀥狘瞲謔谑趐勋勛勲勳嚑坃埙塤壎壦曛焄熏燻爋獯矄纁臐薫薰蘍醺偱噚姰寻尋峋巡廵循恂揗攳旬杊栒桪樳毥洵浔潯灥燅燖珣璕畃紃荀蟳詢询郇鄩駨鱏鱘鲟伨侚卂噀奞巺巽徇愻殉殾汛潠狥稄蕈訊訓訙训讯迅迿逊遜鑂顨馴驯丫压吖呀圧垭壓孲庘押枒桠椏錏鐚铔鴉鴨鵶鸦鸭伢厑厓堐岈崕崖涯漄牙猚琊睚笌芽蚜衙齖厊哑唖啞庌疨痖瘂蕥雅亚亜亞俹冴劜圔圠埡娅婭挜掗揠氩氬犽猰玡砑稏窫聐襾覀訝讶軋轧迓齾傿剦嫣嬮崦嶖恹懕懨樮歅淊淹渰湮漹烟焉焑煙珚硽篶胭臙菸鄢醃閹阉黫严厳啱喦嚴埏塩壛壧妍姸娫娮岩嵒嵓巌巖巗延揅昖楌檐櫩欕沿炎炏狿琂盐研硏碞礹筵簷綖莚蔅虤蜒言訁訮詽讠郔閆閻闫阎顏顔颜鹽麣乵俨偃儼兖兗剡匽厣厴噞夵奄孍嵃巘巚弇愝戭扊抁掩揜曮棪椼檿沇渷演琰甗眼縯罨萒蝘衍裺褗躽遃郾酓隒顩魇魘鰋鶠黡黤黬黭黶鼴鼹齴龑偐厌厭咽唁喭嚈嚥囐堰墕妟姲嬊嬿宴彥彦敥晏暥曕曣椻溎滟灎灔灧灩烻焔焰焱熖燄燕爓牪猒砚硯艳艶艷覎觃觾諺讌讞谚谳豓豔贋贗赝軅酀酽醶醼釅隁雁餍饜騐験騴驗驠验鬳鳫鴈鴳鷃鷰齞央姎抰殃泱眏秧胦鉠鍈雵鞅鴦鸯佯劷垟崵崸徉扬揚敭旸昜暘杨楊氜洋炀烊煬珜疡瘍眻羊羏蛘諹輰鍚钖阦阳陽霷颺飏鰑鴹鸉仰佒傟养卬咉坱岟慃懩攁柍楧氧氱瀁炴痒癢礢紻蝆軮飬養駚怏恙样様樣漾羕詇吆喓夭妖幺楆殀祅腰葽訞邀鴁鴢倄傜嗂垚堯姚媱尧尭峣嶢嶤徭愮揺搖摇摿暚榣滧烑爻猺珧瑤瑶磘窑窯窰繇肴蘨謠謡谣軺轺遙遥邎鎐顤颻飖餆餚鰩鱙鳐仸偠咬婹宎岆崾抭杳枖柼榚溔狕眑窅窈舀苭蓔闄騕鷕齩曜熎燿獟矅穾窔筄纅耀艞药葯薬藥袎要覞詏讑靿鷂鹞鼼倻吔噎擨暍椰歋潱蠮捓揶爷爺瑘耶釾鋣鎁铘也冶嘢埜壄漜野业亱僷叶墷夜嶪嶫抴捙掖擛擪擫晔曄曅曗曳曵枼枽業殗洂液澲烨煠燁爗璍皣瞱瞸礏腋葉謁谒邺鄴鍱鎑鐷靥靨頁页餣饁馌驜鵺鸈亪一乊伊依医吚咿噫壱壹夁嫛嬄弌悘揖撎檹毉洢渏漪猗瑿畩祎禕稦繄蛜衣衤譩辷郼醫銥铱鷖鹥黟黳乁仪侇儀冝匜咦圯夷姨媐宐宜宧寲峓嶬嶷巸彛彜彝彞怡恞扅拸暆杝柂栘桋椬椸沂沶洟熪狋珆瓵疑痍眙移簃籎羠胰荑萓蛦螔袘觺詒誃謻讉诒貽贻跠迻遗遺鏔頉頤頥顊颐飴饴鮧鴺乙乛以佁倚偯嬟崺已庡扆攺敼旑旖椅檥矣礒笖舣艤苡苢蚁螘蟻裿輢轙迆迤迱逘酏釔鈘鉯钇顗鳦齮乂义亄亦亿仡伇伿佚佾俋億兿刈劓劮勚勩匇呓呭呹唈嗌囈圛坄垼埶埸墿奕嫕嬑寱屹峄嶧帟帠幆廙异弈弋役忆忔怈怿悒悥意憶懌懿抑挹敡斁易晹曀曎杙枍枻栧棭榏槸檍欭歝殔殪殹毅泆浂浥浳湙溢潩澺瀷炈焲熠熤熼燚燡燱獈玴異疫痬瘗瘞瘱癔益睪瞖秇穓竩篒縊繶繹绎缢羛義羿翊翌翳翼耴肄肊膉臆艗艺芅苅萟蓺薏藙藝蘙虉蛡蜴螠衪袣裔裛褹襼訲訳詍詣誼譯議讛议译诣谊豙豛豷貖貤贀跇軼轶逸邑鄓醳醷釴鈠鎰鐿镒镱阣隿霬饐駅驛驿骮鮨鯣鶂鶃鶍鷁鷊鷧鷾鸃鹝鹢黓齸弬侌凐喑噾囙因垔堙姻婣愔慇栶殷氤洇溵濦瘖磤禋秵筃絪緸茵荫蒑蔭裀諲銦铟闉阥阴陰陻隂霒霠鞇音韾駰骃齗乑冘吟噖嚚圁垠夤婬寅峾崟崯斦檭殥泿淫滛烎犾狺珢璌碒荶蔩蟫訔訚訡誾鄞鈝銀银霪鷣齦龂龈吲尹嶾廴引朄檃檼櫽淾濥瘾癮粌蘟蚓螾讔赺趛輑鈏隐隠隱靷飮飲饮印垽堷廕慭憖憗懚洕湚猌癊窨胤茚酳鮣偀嘤噟嚶婴媖嫈嬰孆孾应応愥應撄攖朠桜樱櫻渶瀴煐珱瑛璎瓔甇甖碤礯緓纓绬缨罂罃罌膺英莺蘡蝧蠳褮譍譻賏軈鑍锳霙韺鴬鶑鶧鶯鷪鷹鸎鸚鹦鹰僌営塋嬴巆攍楹櫿溁溋滢潆濙濚濴瀅瀛瀠瀯灐灜熒營瑩盁盈禜籝籯縈茔荧莹萤营萦萾蓥藀蛍蝇蝿螢蠅覮謍贏赢迎鎣巊廮影摬梬浧潁瘿癭矨穎郢鐛頴颍颕颖媵映暎硬膡鱦哟唷喲佣傭嗈噰墉壅嫞庸廱慵拥擁滽澭灉牅痈癕癰臃邕郺鄘鏞镛雍雝饔鱅鳙鷛喁顒颙鰫俑勇勈咏埇塎嵱彮怺恿悀惥愑愹慂柡栐永泳涌湧甬硧蛹詠踊踴鯒鲬用砽苚蒏醟优優呦嚘峳幽忧怮悠憂懮攸櫌泑浟滺瀀纋羪耰逌鄾麀偤尢尤庮怞怣楢沋油游犹猶猷由甴疣秞肬莜莸蕕蚰蝣訧輏輶逰遊邮郵鈾铀駀魷鮋鱿鲉丣卣友有栯梄槱湵牖牗禉羑聈苃莠蜏酉銪铕黝亴佑佦侑又右哊唀囿姷孧宥峟幼柚櫾牰狖祐蚴誘诱貁迶酭釉鼬唹扜扝淤瘀盓穻箊紆纡込迂迃陓乻予于亐伃余俞兪堣堬妤娛娯娱媀嬩崳嵎嵛愉愚扵揄於旟杅桙楡楰榆欤歈歟歶渔渝湡漁澞牏狳玗玙瑜璵盂睮禺窬竽籅羭腴臾舁舆艅茰萮萸蕍蘛虞虶蝓螸衧褕覦觎諛謣谀踰輿轝逾邘酑鍝隃隅雓雩餘馀騟骬髃魚魣鮽鯲鰅鱼鷠鸆齵与伛俁俣偊傴匬噳圄圉宇寙屿嶼庾懙挧敔斔斞楀瑀瘐祤禹穥窳羽與萭語语貐鄅雨頨麌齬龉俼僪儥喅喩喻圫域堉妪嫗寓峪嶎庽彧御忬悆惐愈慾戫昱棛棜棫櫲欎欝欥欲毓浴淢淯滪潏澦灪焴煜燏燠爩狱獄玉琙瘉癒矞砡硢硲礇礖礜禦秗稢稶篽籞籲粖緎罭聿肀育艈芋芌茟蒮蓣蓹蕷薁蘌蜟蜮袬裕誉諭譽谕豫軉輍逳遇遹郁醧鈺銉鋊錥鐭钰閾阈雤霱預预飫饇饫馭驈驭鬰鬱鬻魊鱊鳿鴥鴧鴪鵒鷸鸒鹆鹬冤剈囦嬽寃悁惌棩淵渁渆渊渕灁眢肙葾蒬蜎蜵裷駌鳶鴛鵷鸢鸳鹓鼘鼝元円原厡厵员員园圆圎園圓垣塬媴嫄援杬榞榬橼櫞沅湲源溒爰猨猿笎緣縁缘羱芫茒蒝薗蚖蝝蝯螈袁褤謜貟贠轅辕邍邧酛鈨鎱騵魭鶢鶰黿鼋盶薳远逺遠鋺傆噮垸夗妴媛怨愿掾瑗禐苑衏裫褑院願啘曰曱矱箹約约哕噦刖妜嬳岄岳嶽恱悅悦戉抈捳月樾泧瀹爚玥礿禴篗籆籥籰粤粵蘥蚎蚏越跀跃躍軏鈅鉞鑰钥钺閱閲阅鸑鸙黦龠龥奫晕暈氲氳煴熅蒀蒕蝹贇赟馧云伝勻匀囩妘愪抣昀橒沄涢溳澐熉畇眃秐筠筼篔紜縜纭耘耺芸蒷蕓郧鄖鋆雲允喗夽抎殒殞狁磒荺賱鈗阭陨隕霣馻齫齳傊孕恽惲愠慍枟熨緼縕缊腪蕰蕴薀藴蘊褞运運郓鄆酝醖醞韗韞韫韵韻餫匝咂帀扎拶桚沞臜臢迊鉔魳囃杂沯砸襍雑雜雥韴咋哉栽渽溨災灾烖甾畠睵賳宰崽傤儎再在扗洅縡載载酨兂橵簪簮糌鐕鐟鵤偺咱喒儧儹噆寁揝撍攅攒攢昝趱趲囋暂暫濽灒瓉瓒瓚禶襸讃讚賛贊赞蹔鄼錾鏨饡匨牂羘臧賍賘贓贜赃髒駔驵塟奘弉脏臓臟葬蔵銺傮糟蹧遭醩凿鑿早枣栆棗澡璅璪薻藻蚤唕唣喿噪慥梍灶煰燥皁皂竃竈簉艁譟趮躁造则則啧啫嘖嫧帻幘択择擇樍歵沢泎泽溭滜澤皟瞔矠礋箦簀舴蔶蠌襗諎謮責賾责赜迮鸅齚齰仄崱庂捑昃昗汄戝蠈賊贼鰂鱡鲗怎譖谮増增憎橧璔矰磳繒缯罾譄鄫鱛囎熷甑贈赠鋥锃鬵偧劄哳喳抯挓揸摣柤楂樝渣皶皻紥紮觰譇齄齇札牐箚耫蚻譗鍘铡閘闸霅厏拃眨砟鮓鮺鲊鲝乍吒咤宱搾栅榨溠灹炸痄蚱詐诈醡夈捚摘斋斎榸粂齋宅檡窄鉙债債寨瘵砦噡岾嶦惉旃旜枬栴毡氈氊沾瞻薝蛅詀詹譫谵趈邅閚霑飦饘驙魙鱣鳣鸇鹯讝嫸展崭嶃嶄搌斩斬榐橏琖盏盞輾辗醆颭飐佔偡僝占嶘战戦戰栈桟棧湛站綻绽菚蘸虥虦覱譧轏驏傽嫜张張彰慞暲樟漳獐璋章粻蔁蟑遧鄣鏱餦騿鱆麞仉幥掌涨漲礃丈仗墇嶂帐帳幛扙杖涱痮瘬瘴瞕粀胀脹賬账障佋妱巶招昭皽釗鉊鍣钊駋找沼爪爫瑵兆召垗旐曌枛棹櫂炤照燳狣瞾笊箌罀罩羄肁肇肈詔诏赵趙鮡嗻嫬遮厇哲啠喆嚞埑悊折摺晢晣歽矺砓磔籷粍虴蛰蜇蟄袩詟謫謺讁讋谪輒輙轍辄辙銸鮿乽者褶襵赭踷鍺锗柘樜浙淛蔗蟅这這鷓鹧侦偵嫃寊帧帪幀搸斟桢椹楨榛樼殝浈湞溱潧澵獉珍珎瑧甄眞真砧碪祯禎禛箴籈胗臻葴蒖蓁薽貞贞轃遉酙針鉁錱鍼针鱵姫屒弫抮昣枕畛疹眕稹紾縝縥缜聄萙袗裖覙診诊軫轸辴駗鬒黰侲圳塦挋振揕朕栚甽眹紖絼纼誫賑赈鋴鎭鎮镇阵陣震鴆鸩争佂凧埩姃媜峥崝崢征徰徴徵怔掙揁炡烝爭狰猙癥眐睁睜筝箏篜糽聇脀蒸踭鉦錚鏳钲铮鬇愸抍拯掟撜整晸氶塣幁挣政正症証諍證证诤郑鄭靕鴊之倁卮吱巵憄搘支枝栀栺梔椥榰汁汥泜疷知祗祬秓稙綕織织肢胑胝脂臸芝蘵蜘衼隻馶鳷鴲鼅侄値值埴執妷姪嬂慹戠执摭植樴殖淔漐潪犆瓡直禃絷縶聀职職膱蟙跖踯蹠躑軄釞馽凪劧只咫址坁坧墌夂帋恉扺抧指旨枳止汦沚洔淽疻砋祇祉秖紙纸芷茋藢衹襧訨趾軹轵酯阯黹乿俧偫傂儨制剬劕厔垁墆娡寘峙崻帙帜幟庢庤廌彘徏徝志忮懥懫扻挃挚掷搱摨摯擲擳旘晊智柣栉桎梽櫍櫛歭治洷滍滞滯潌瀄炙熫狾猘璏瓆畤疐痓痔痣瘈礩祑秩秷稚稺穉窒筫紩緻置翐膣至致芖蛭袟袠製覟觗觯觶誌豑豒豸貭質贄质贽跱踬躓輊轾迣郅銍鋕鑕铚锧陟隲雉駤騭騺驇骘鯯鴙鷙鸷中伀刣妐幒彸忠柊汷泈炂盅籦終终舯蔠蜙螤螽衳衷蹱鈡銿鍾鐘钟锺鴤鼨冢喠塚尰徸歱煄瘇种種肿腫踵仲众偅堹妕媑狆眾祌筗茽蚛衆衶諥重侜周啁喌嚋婤州徟洲淍炿烐珘盩矪粥舟謅譸诌诪賙赒輈輖辀週郮銂霌駲騆鵃鸼妯碡軸轴帚晭疛睭箒肘菷鯞伷僽冑呪咒咮噣宙昼晝甃皱皺籀籒籕粙紂縐纣绉胄荮葤詋酎駎驟骤侏朱株槠橥櫧櫫洙潴瀦猪珠硃秼絑茱蕏藸蛛蝫蠩袾誅諸诛诸豬跦邾銖铢駯鮢鯺鴸鼄劚孎斸曯欘灟炢烛燭爥瘃窋竹竺笁笜篴舳茿蓫蠋蠾躅逐逫钃鱁丶主劯嘱囑宔帾拄渚濐煑煮燝瞩矚罜褚詝陼鸀麈乼伫佇住助坾墸壴嵀拀杼柱柷樦殶注炷疰眝砫祝祩竚筑筯箸築篫簗紵紸纻羜翥苎苧莇著蛀註貯贮跓軴迬鉒鋳鑄铸飳馵駐驻麆抓撾檛簻膼髽跩拽专叀塼嫥専專瑼甎砖磗磚膞蟤諯鄟顓颛鱄孨竱轉转僎啭囀堟撰灷瑑篆篹籑縳腞蒃襈譔賺赚転饌馔妆妝娤庄庒桩梉樁湷粧糚荘莊装裝壮壯壵撞焋状狀椎追錐锥隹騅骓鵻沝坠墜娷惴甀畷硾礈笍綴縋缀缒腏膇諈贅赘醊錣鑆啍宒窀肫衠諄谆迍准凖埻準綧稕訰倬拙捉桌梲棁棳槕涿炪焯穛穱窧鐯丵劅卓叕啄啅圴妰娺彴撯擆擢斀斫斮斱斲斵晫椓櫡汋浊浞濁濯灂灼烵犳琢琸着硺禚窡篧籗籱罬茁蠗蠿諁諑謶诼酌鋜鐲镯鵫鷟兹呲咨嗞姕姿孖孜孳孶崰嵫栥椔淄湽滋澬玆禌秶稵粢紎緇緕纃缁茊茲菑葘觜訾諮谘貲資赀资赼趑趦輜輺辎鄑鈭錙鍿鎡锱镃頾頿髭鯔鰦鲻鶅鼒齍齜龇蓻仔吇呰啙姉姊子杍梓榟橴滓矷秄秭笫籽紫耔胏茈虸訿釨倳剚字恣渍漬牸眥眦胔胾自芓茡荢嗭倧堫宗嵏嵕惾朡棕椶熧猣磫稯綜緃緵繌综翪腙葼蝬豵踨踪蹤鍐鑁騌騣骔鬃鬉鬷鯮鯼倊偬傯嵸总惣捴揔搃摠焧燪総緫縂總蓗昮猔疭瘲碂粽糉糭縦縱纵掫棷棸箃緅菆諏诹邹郰鄒鄹陬騶驺鯫鲰黀齱齺走赱鯐奏揍租菹葅蒩卆卒哫崒崪族椊箤足踤鏃镞俎唨爼珇祖組组詛诅鎺阻靻劗躜躦鉆鑚鑽钻籫繤纂纉纘缵攥厜嗺樶纗蟕嘴噿嶊璻冣嶵晬最栬槜檇檌祽稡絊罪蕞辠酔酻醉鋷錊噂墫尊嶟樽繜罇遵鐏鱒鳟鶎鷷僔撙譐捘銌嘬穝捽昨秨稓笮筰苲莋鈼佐左繓作侳做唑坐岝岞座怍柞祚糳胙葃葄蓙袏酢阼飵咗龦龧龨龩龪龫龬龭龮龯龰龱龲龳龴龵龶龷龸龹龺龻龼龽龾龿鿀鿁鿂鿃鿄鿅鿆鿇鿈鿉鿊鿋鿌鿍鿎鿏鿐";BI.CODE_INDEX={};for(var t=0;t<e.length;t++)BI.CODE_INDEX[e[t]]=t}()},function(e,t){BI.TreeView=BI.inherit(BI.Pane,{_defaultConfig:function(){return BI.extend(BI.TreeView.superclass._defaultConfig.apply(this,arguments),{_baseCls:"bi-tree",paras:{selectedValues:{}},itemsCreator:BI.emptyFn,showLine:!0})},_init:function(){BI.TreeView.superclass._init.apply(this,arguments);var e=this.options;this._stop=!1,this._createTree(),this.tip=BI.createWidget({type:"bi.loading_bar",invisible:!0,handler:BI.bind(this._loadMore,this)}),BI.createWidget({type:"bi.vertical",scrollable:!0,scrolly:!1,element:this,items:[this.tip]}),BI.isNotNull(e.value)&&this.setSelectedValue(e.value),BI.isIE9Below&&BI.isIE9Below()&&this.element.addClass("hack")},_createTree:function(){this.id="bi-tree"+BI.UUID(),this.nodes&&this.nodes.destroy(),this.tree&&this.tree.destroy(),this.tree=BI.createWidget({type:"bi.layout",element:"<ul id='"+this.id+"' class='ztree'></ul>"}),BI.createWidget({type:"bi.default",element:this.element,items:[this.tree]})},_selectTreeNode:function(e,t){this.fireEvent(BI.Controller.EVENT_CHANGE,BI.Events.CLICK,t,this),this.fireEvent(BI.TreeView.EVENT_CHANGE,t,this)},_configSetting:function(){var e=this.options.paras,o=this,t=this.options,n={async:{enable:!0,url:function(e,t){var n=o._getParentValues(t);return t.times=t.times||1,"&id="+t.id+"&times="+t.times+++"&parentValues= "+_global.encodeURIComponent(BI.jsonEncode(n))+"&checkState="+_global.encodeURIComponent(BI.jsonEncode(t.getCheckStatus()))},autoParam:["id","name"],otherParam:BI.cjkEncodeDO(e)},check:{enable:!0},data:{key:{title:"title",name:"text"},simpleData:{enable:!0}},view:{showIcon:!1,expandSpeed:"",nameIsHTML:!0,dblClickExpand:!1,showLine:t.showLine},callback:{beforeExpand:function(e,t){if(t.isAjaxing)return BI.Msg.toast("Please Wait。","warning"),!1;t.children||(t.times=1,c(t,"refresh"));return!0},onAsyncSuccess:function(e,t,n,r){if(n.halfCheck=!1,!r||0===r.length||/^<html>[\s,\S]*<\/html>$/gi.test(r)||o._stop)return;var i=o.nodes,a=n.count||0;n.children.length>a?(n.count=n.children.length,BI.delay(function(){c(n)},s)):(i.updateNode(n),i.selectNode(n.children[0]))},onAsyncError:function(e,t,n,r,i,a){o.nodes;BI.Msg.toast("Error!","warning")},beforeCheck:function(e,t){var n=t.getCheckStatus();{var r;!(t.halfCheck=!1)===t.checked&&(function i(e){BI.each(e,function(e,t){!0===t.halfCheck&&(t.halfCheck=!1,i(t.children))})}(t.children),r=o.nodes.getSelectedNodes(),BI.$.each(r,function(e,t){t.halfCheck=!1}))}!0===n.half&&!0===n.checked&&(t.checked=!1)},onCheck:function(e,t,n){o._selectTreeNode(t,n)},onExpand:function(e,t,n){n.halfCheck=!1},onCollapse:function(e,t,n){},onClick:function(e,t,n){var r=n.checked,i=n.getCheckStatus();!0===i.half&&!0===i.checked&&(r=!1);o.nodes.checkNode(n,!r,!0,!0)}}},s=100;function c(e,t){var n=o.nodes;"refresh"==t&&n.updateNode(e),n.reAsyncChildNodes(e,t,!0)}return n},_getParentValues:function(e){if(!e.getParentNode())return[];var t=e.getParentNode();return this._getParentValues(t).concat([this._getNodeValue(t)])},_getNodeValue:function(e){return null==e.value?BI.replaceAll(e.text.replace(/<[^>]+>/g,""),"&nbsp;"," "):e.value},_getHalfSelectedValues:function(n,e){var t,r,i,a,o,s=this,c=e.getCheckStatus();!1===c.checked&&!1===c.half||(BI.isNotEmptyArray(e.children)&&!0===c.half?(t=e.children,BI.each(t,function(e,t){s._getHalfSelectedValues(n,t)})):(i=(r=e.parentValues||s._getParentValues(e)).concat(this._getNodeValue(e)),BI.isNotEmptyArray(e.children)||!1===c.half?this._buildTree(n,i):(a=BI.deepClone(this.options.paras.selectedValues),o=this._getTree(a,i),this._addTreeNode(n,r,this._getNodeValue(e),o))))},_getTree:function(e,t){var n=e;return BI.any(t,function(e,t){return null==n[t]||void(n=n[t])}),n},_addTreeNode:function(e,t,n,r){var i=e;BI.each(t,function(e,t){null==i[t]&&(i[t]={}),i=i[t]}),i[n]=r},_buildTree:function(e,t){var n=e;BI.each(t,function(e,t){null==n[t]&&(n[t]={}),n=n[t]})},_getSelectedValues:function(){var e,i=this,a={},t=this.nodes.getNodes();return e=t,BI.each(e,function(e,t){var n,r=t.getCheckStatus();!0!==r.checked&&!0!==r.half||(!0===r.half?i._getHalfSelectedValues(a,t):(n=(t.parentValues||i._getParentValues(t)).concat([i._getNodeValue(t)]),i._buildTree(a,n)))}),a},_dealWidthNodes:function(e){var n=this.options,t=BI.Tree.arrayFormat(e);return BI.each(t,function(e,t){t.title=t.title||t.text||t.value,t.isParent=t.isParent||t.parent,t.value=BI.isUndefined(t.value)?t.text:t.value,BI.isKey(n.paras.keyword)?t.text=BI.$("<div>").__textKeywordMarked__(BI.Text.formatText(t.text+""),n.paras.keyword,t.py).html():t.text=BI.htmlEncode(BI.Text.formatText(t.text+""))}),e},_loadMore:function(){var r=this,e=this.options;this.tip.setLoading();var t=BI.extend({},e.paras,{times:++this.times});e.itemsCreator(t,function(e){var t,n;!0!==r._stop&&(t=!!e.hasNext,n=e.items||[],t?r.tip.setLoaded():r.tip.setEnd(),0<n.length&&r.nodes.addNodes(null,r._dealWidthNodes(n)))})},_initTree:function(i){var a=this,e=this.options;a.fireEvent(BI.Events.INIT),this.times=1;var o=this.tree;o.empty(),this.loading(),this.tip.setVisible(!1);var s=BI.extend({},e.paras,{times:1});e.itemsCreator(s,function(e){var t,n,r;!0!==a._stop&&(t=!!e.hasNext,0<(n=e.items||[]).length&&(r=a._dealWidthNodes(n),!0!==a._stop&&(a.nodes=BI.$.fn.zTree.init(o.element,i,r))),a.setTipVisible(n.length<=0),a.loaded(),t?a.tip.setLoaded():a.tip.invisible(),1===s.times&&a.fireEvent(BI.Events.AFTERINIT))})},initTree:function(e,t){t=t||{async:{enable:!1},check:{enable:!1},data:{key:{title:"title",name:"text"},simpleData:{enable:!0}},view:{showIcon:!1,expandSpeed:"",nameIsHTML:!0},callback:{}};this.nodes=BI.$.fn.zTree.init(this.tree.element,t,e)},start:function(){this._stop=!1},stop:function(){this._stop=!0},stroke:function(e){delete this.options.keyword,BI.extend(this.options.paras,e);var t=this._configSetting();this._createTree(),this.start(),this._initTree(t)},populate:function(){this.stroke.apply(this,arguments)},hasChecked:function(){return 0<this.nodes.getCheckedNodes(!0).length},checkAll:function(e){this.nodes&&(BI.each(this.nodes.getNodes(),function(e,t){t.halfCheck=!1,function n(e){BI.each(e,function(e,t){t.halfCheck=!1,n(t.children)})}(t.children)}),this.nodes.checkAllNodes(e))},expandAll:function(e){this.nodes&&this.nodes.expandAll(e)},setValue:function(e,t){this.checkAll(!1),this.updateValue(e,t),this.refresh()},setSelectedValue:function(e){this.options.paras.selectedValues=BI.deepClone(e||{})},updateValue:function(e,r){var i;this.nodes&&(r=r||"value",i=this.nodes,BI.each(e,function(e,n){var t=i.getNodesByParam(r,e,null);BI.each(t,function(e,t){BI.extend(t,{checked:!0},n),i.updateNode(t)})}))},refresh:function(){this.nodes&&this.nodes.refresh()},getValue:function(){return this.nodes?this._getSelectedValues():null},destroyed:function(){this.stop(),this.nodes&&this.nodes.destroy()}}),BI.extend(BI.TreeView,{REQ_TYPE_INIT_DATA:1,REQ_TYPE_ADJUST_DATA:2,REQ_TYPE_SELECT_DATA:3,REQ_TYPE_GET_SELECTED_DATA:4}),BI.TreeView.EVENT_CHANGE="EVENT_CHANGE",BI.TreeView.EVENT_INIT=BI.Events.INIT,BI.TreeView.EVENT_AFTERINIT=BI.Events.AFTERINIT,BI.shortcut("bi.tree_view",BI.TreeView)},function(e,t){BI.AsyncTree=BI.inherit(BI.TreeView,{_defaultConfig:function(){return BI.extend(BI.AsyncTree.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.AsyncTree.superclass._init.apply(this,arguments);var t=this;this.service=new BI.TreeRenderPageService({subNodeListGetter:function(e){return BI.$("#"+t.id+" #"+e+"_ul")}})},_configSetting:function(){var e=this.options,t=this.options.paras,r=this;return{async:{enable:!1,otherParam:BI.cjkEncodeDO(t)},check:{enable:!0},data:{key:{title:"title",name:"text"},simpleData:{enable:!0}},view:{showIcon:!1,expandSpeed:"",nameIsHTML:!0,dblClickExpand:!1,showLine:e.showLine},callback:{beforeCheck:function(e,t){var n=t.getCheckStatus();{var r;!(t.halfCheck=!1)===t.checked&&(function i(e){BI.each(e,function(e,t){t.halfCheck=!1,i(t.children)})}(t.children),r=BI.$.fn.zTree.getZTreeObj(e).getSelectedNodes(),BI.each(r,function(e,t){t.halfCheck=!1}))}!0===n.half&&!0===n.checked&&(t.checked=!1)},onCheck:function(e,t,n){r._selectTreeNode(t,n)},beforeExpand:function(e,t){r._beforeExpandNode(e,t)},onExpand:function(e,t,n){n.halfCheck=!1},onCollapse:function(e,t,n){n.halfCheck=!1},onClick:function(e,t,n){var r=BI.$.fn.zTree.getZTreeObj(t),i=n.checked,a=n.getCheckStatus();!0===a.half&&!0===a.checked&&(i=!1);r.checkNode(n,!i,!0,!0)}}}},_selectTreeNode:function(e,t){this.options;var n=BI.deepClone(t.parentValues||this._getParentValues(t)),r=this._getNodeValue(t);if(!0===t.checked)this._addTreeNode(this.options.paras.selectedValues,n,r,{});else{var i=t,a=this._getTree(this.options.paras.selectedValues,n);for(BI.isNotNull(a[r])&&delete a[r];null!=i&&BI.isEmpty(a);)n=n.slice(0,n.length-1),null!=(i=i.getParentNode())&&delete(a=this._getTree(this.options.paras.selectedValues,n))[r=this._getNodeValue(i)];this.options.paras.selectedValues=this._getJoinValue()}BI.AsyncTree.superclass._selectTreeNode.apply(this,arguments)},_beforeExpandNode:function(e,i){var a=this,r=this.options,o=function(e){var t,n,r=e.items||[];0<r.length&&(t=a._dealWidthNodes(r),n=!!e.hasNext,a.nodes.addNodes(i,t),n?a.service.pushNodeList(i.tId,s):a.service.removeNodeList(i.tId))};function s(e){e=e||{};var t=i.parentValues||a._getParentValues(i),n=BI.extend({},r.paras,{id:i.id,times:e.times,parentValues:t.concat(a._getNodeValue(i)),checkState:i.getCheckStatus()},e);r.itemsCreator(n,o)}var t=i.getCheckStatus();i.children||setTimeout(function(){s({times:1,checkState:t})},17)},_join:function(e,t){var a=this,o={};function s(n,r,i){BI.each(r,function(e,t){BI.isNull(i[e])||BI.isEmpty(i[e])?a._addTreeNode(o,n,e,t):s(n.concat([e]),r[e],i[e])})}return s([],e,t),s([],t,e),o},hasChecked:function(){return!BI.isEmpty(this.options.paras.selectedValues)||BI.AsyncTree.superclass.hasChecked.apply(this,arguments)},_getJoinValue:function(){if(!this.nodes)return{};var e=this._getSelectedValues();return BI.isEmpty(e)?BI.deepClone(this.options.paras.selectedValues):BI.isEmpty(this.options.paras.selectedValues)?e:this._join(e,this.options.paras.selectedValues)},getValue:function(){return this._getJoinValue()},stroke:function(e){delete this.options.keyword,this.service.clear(),BI.extend(this.options.paras,e);var t=this._configSetting();this._initTree(t)}}),BI.shortcut("bi.async_tree",BI.AsyncTree)},function(e,t){BI.PartTree=BI.inherit(BI.AsyncTree,{_defaultConfig:function(){return BI.extend(BI.PartTree.superclass._defaultConfig.apply(this,arguments),{})},_loadMore:function(){var r=this,i=this.options,e=BI.extend({},i.paras,{type:BI.TreeView.REQ_TYPE_INIT_DATA,times:++this.times});this.tip.setLoading(),i.itemsCreator(e,function(e){var t=!!e.hasNext,n=e.items||[];i.paras.lastSearchValue=e.lastSearchValue,!0!==r._stop&&(t?r.tip.setLoaded():r.tip.setEnd(),0<n.length&&r.nodes.addNodes(null,r._dealWidthNodes(n)))})},_selectTreeNode:function(e,t){var n=this,r=this.options,i=BI.deepClone(t.parentValues||n._getParentValues(t)),a=this._getNodeValue(t);if(!0===t.checked)this.options.paras.selectedValues=this._getUnionValue(),r.itemsCreator(BI.extend({},r.paras,{type:BI.TreeView.REQ_TYPE_ADJUST_DATA,curSelectedValue:a,parentValues:i}),function(e){n.options.paras.selectedValues=e,BI.AsyncTree.superclass._selectTreeNode.apply(n,arguments)});else{for(var o=this.options.paras.selectedValues,s=i.concat(a),c=0,u=s.length;c<u;c++){if(null==(o=o[s[c]]))return;if(BI.isEmpty(o))break}r.itemsCreator(BI.extend({},r.paras,{type:BI.TreeView.REQ_TYPE_SELECT_DATA,notSelectedValue:a,parentValues:i}),function(e){n.options.paras.selectedValues=e,BI.AsyncTree.superclass._selectTreeNode.apply(n,arguments)})}},_getSelectedValues:function(){var a=this,o={};return function s(e){BI.each(e,function(e,t){var n=t.getCheckStatus();if(!1===n.checked)return!0;var r=t.parentValues||a._getParentValues(t),i=r.concat([a._getNodeValue(t)]);if(a._buildTree(o,i),BI.isNotEmptyArray(t.children))return s(t.children),!0;!0===n.half&&a._getHalfSelectedValues(o,t)})}(this.nodes.getNodes()),o},_initTree:function(r,i){var a=this,o=this.options;this.times=1;var s=this.tree;s.empty(),a.tip.setVisible(!1),this.loading();var e=BI.extend({},o.paras,{type:BI.TreeView.REQ_TYPE_INIT_DATA,times:this.times}),t=function(e){var t,n;!0!==a._stop&&i==o.paras.keyword&&(t=!!e.hasNext,n=e.items||[],o.paras.lastSearchValue=e.lastSearchValue,function(e){if(!0===a._stop)return;a.nodes=BI.$.fn.zTree.init(s.element,r,e)}(0<n.length?a._dealWidthNodes(n):[]),a.setTipVisible(n.length<=0),a.loaded(),t?a.tip.setLoaded():a.tip.invisible(),a.fireEvent(BI.Events.AFTERINIT))};BI.delay(function(){o.itemsCreator(e,t)},100)},getValue:function(){return BI.deepClone(this.options.paras.selectedValues||{})},_getUnionValue:function(){if(!this.nodes)return{};var e=this._getSelectedValues();return BI.isEmpty(e)?BI.deepClone(this.options.paras.selectedValues):BI.isEmpty(this.options.paras.selectedValues)?e:this._union(e,this.options.paras.selectedValues)},_union:function(e,t){var a=this,o={};function s(n,r,i){BI.each(r,function(e,t){BI.isNull(i[e])?a._addTreeNode(o,n,e,t):BI.isEmpty(i[e])?a._addTreeNode(o,n,e,{}):s(n.concat([e]),r[e],i[e])})}return s([],e,t),s([],t,e),o},stroke:function(e){var t=this.options;delete t.paras.keyword,BI.extend(t.paras,e),delete t.paras.lastSearchValue;var n=this._configSetting();this._initTree(n,t.paras.keyword)}}),BI.shortcut("bi.part_tree",BI.PartTree)},function(e,t){BI.ListTreeView=BI.inherit(BI.TreeView,{_constants:{SPLIT:"<|>"},_defaultConfig:function(){return BI.extend(BI.ListTreeView.superclass._defaultConfig.apply(this,arguments),{value:{}})},_init:function(){BI.ListTreeView.superclass._init.apply(this,arguments);var e=this.options;BI.isNotNull(e.value)&&this.setSelectedValue(e.value)},_configSetting:function(){this.options.paras;var a=this;return{async:{enable:!1},check:{enable:!0,chkboxType:{Y:"",N:""}},data:{key:{title:"title",name:"text"},simpleData:{enable:!0}},view:{showIcon:!1,expandSpeed:"",nameIsHTML:!0,dblClickExpand:!1},callback:{onCheck:function(e,t,n){a._selectTreeNode(t,n)},onClick:function(e,t,n){var r=BI.$.fn.zTree.getZTreeObj(t),i=n.checked;a._checkValue(n,!i),r.checkNode(n,!i,!0,!0)}}}},_selectTreeNode:function(e,t){this._checkValue(t,t.checked),BI.ListTreeView.superclass._selectTreeNode.apply(this,arguments)},_transArrayToMap:function(e){var r=this,i={};return BI.each(e,function(e,t){var n=t.join(r._constants.SPLIT);i[n]=!0}),i},_transMapToArray:function(e){var n=this,r=[];return BI.each(e,function(e){var t=e.split(n._constants.SPLIT);r.push(t)}),r},_checkValue:function(e,t){var n=BI.concat(this._getParentValues(e),this._getNodeValue(e)).join(this._constants.SPLIT);t?this.storeValue[n]=!0:delete this.storeValue[n]},setSelectedValue:function(e){this.options.paras.selectedValues=e||[],this.storeValue=this._transArrayToMap(e)},getValue:function(){return this._transMapToArray(this.storeValue)}}),BI.shortcut("bi.list_tree_view",BI.ListTreeView)},function(e,t){BI.ListAsyncTree=BI.inherit(BI.ListTreeView,{_defaultConfig:function(){return BI.extend(BI.ListAsyncTree.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.ListAsyncTree.superclass._init.apply(this,arguments)},_configSetting:function(){var e=this.options.paras,a=this;return{async:{enable:!1,otherParam:BI.cjkEncodeDO(e)},check:{enable:!0,chkboxType:{Y:"",N:""}},data:{key:{title:"title",name:"text"},simpleData:{enable:!0}},view:{showIcon:!1,expandSpeed:"",nameIsHTML:!0,dblClickExpand:!1},callback:{onCheck:function(e,t,n){a._selectTreeNode(t,n)},beforeExpand:function(e,t){a._beforeExpandNode(e,t)},beforeCheck:function(e,t){t.half=!1},onClick:function(e,t,n){var r=BI.$.fn.zTree.getZTreeObj(t),i=n.checked;a._checkValue(n,!i),r.checkNode(n,!i,!0,!0)}}}},_beforeExpandNode:function(e,i){var a=this,o=this.options,t=i.parentValues||a._getParentValues(i),s=BI.extend({},o.paras,{id:i.id,times:1,parentValues:t.concat(this._getNodeValue(i))}),c=function(e){var t,n,r=e.items||[];0<r.length&&(t=a._dealWidthNodes(r),n=!!e.hasNext,a.nodes.addNodes(i,t),!0===n&&BI.delay(function(){u++,s.times=u,o.itemsCreator(s,c)},100))},u=1;i.children||setTimeout(function(){o.itemsCreator(s,c)},17)},hasChecked:function(){return!BI.isEmpty(this.options.paras.selectedValues)||BI.ListAsyncTree.superclass.hasChecked.apply(this,arguments)},stroke:function(e){delete this.options.keyword,BI.extend(this.options.paras,e);var t=this._configSetting();this._initTree(t)}}),BI.shortcut("bi.list_async_tree",BI.ListAsyncTree)},function(e,t){BI.ListPartTree=BI.inherit(BI.ListAsyncTree,{_defaultConfig:function(){return BI.extend(BI.ListPartTree.superclass._defaultConfig.apply(this,arguments),{})},_init:function(){BI.ListPartTree.superclass._init.apply(this,arguments)},_loadMore:function(){var r=this,i=this.options,e=BI.extend({},i.paras,{type:BI.TreeView.REQ_TYPE_INIT_DATA,times:++this.times});this.tip.setLoading(),i.itemsCreator(e,function(e){var t=!!e.hasNext,n=e.items||[];i.paras.lastSearchValue=e.lastSearchValue,!0!==r._stop&&(t?r.tip.setLoaded():r.tip.setEnd(),0<n.length&&r.nodes.addNodes(null,r._dealWidthNodes(n)))})},_initTree:function(r,i){var a=this,o=this.options;this.times=1;var s=this.tree;s.empty(),a.tip.setVisible(!1),this.loading();var e=BI.extend({},o.paras,{type:BI.TreeView.REQ_TYPE_INIT_DATA,times:this.times}),t=function(e){var t,n;!0!==a._stop&&i==o.paras.keyword&&(t=!!e.hasNext,n=e.items||[],o.paras.lastSearchValue=e.lastSearchValue,function(e){if(!0===a._stop)return;a.nodes=BI.$.fn.zTree.init(s.element,r,e)}(0<n.length?a._dealWidthNodes(n):[]),a.setTipVisible(n.length<=0),a.loaded(),t?a.tip.setLoaded():a.tip.invisible(),a.fireEvent(BI.Events.AFTERINIT))};BI.delay(function(){o.itemsCreator(e,t)},100)},stroke:function(e){var t=this.options;delete t.paras.keyword,BI.extend(t.paras,e),delete t.paras.lastSearchValue;var n=this._configSetting();this._initTree(n,t.paras.keyword)}}),BI.shortcut("bi.list_part_tree",BI.ListPartTree)},function(module,exports){!function(document){var F=(_4p=function(e){return this[e]},function(e){var t=e.files||[e];return t.item||(t.item=_4p),t}),_4p,event={add:document.addEventListener?function(e,t,n){return e.addEventListener(t,n,!1),this}:function(e,t,n){return e.attachEvent("on"+t,n),this},del:document.removeEventListener?function(e,t,n){return e.removeEventListener(t,n,!1),this}:function(e,t,n){return e.detachEvent("on"+t,n),this},stop:function(e){return e?(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1):self.event&&(event.returnValue=!(event.cancelBubble=!0)),!1}},sendFile=function(toString){var multipart=function(e,t,n){return"--".concat(e,CRLF,'Content-Disposition: form-data; name="',t,'"; filename="',_global.encodeURIComponent(n.fileName),'"',CRLF,"Content-Type: application/octet-stream",CRLF,CRLF,n.getAsBinary(),CRLF,"--",e,"--",CRLF)},isFunction=function(e){return"[object Function]"===toString.call(e)},split="onabort.onerror.onloadstart.onprogress".split("."),length=split.length,CRLF="\r\n",xhr=this.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),sendFile,sendFile=xhr.upload||xhr.sendAsBinary?function(n,e,t,r){var i=n.current;if(!(-1<e&&e<n.file.fileSize)){for(var a,o=new XMLHttpRequest,s=o.upload||{addEventListener:function(e,t){this["on"+e]=t}},c=0;c<length;c++)s.addEventListener(split[c].substring(2),function(t){return function(e){isFunction(n[t])&&n[t](e,o)}}(split[c]),!1);s.addEventListener("load",function(e){!1===n.onreadystatechange?isFunction(n.onload)&&n.onload(e,o):setTimeout(function(){4===o.readyState?isFunction(n.onload)&&n.onload(e,o):setTimeout(arguments.callee,15)},15)},!1),o.open("post",BI.appendQuery(n.url,{filename:_global.encodeURIComponent(n.file.fileName)}),!0),o.upload?(o.onreadystatechange=function(){switch(o.readyState){case 4:var e=BI.jsonDecode(o.responseText);-1!=n.file.type.indexOf("image")&&(e.attach_type="image"),e.filename=n.file.fileName,1==n.maxLength?n.attach_array[0]=e:n.attach_array[i]=e}},isFunction(s.onloadstart)&&s.onloadstart()):((a={loaded:0,total:n.file.fileSize||n.file.size,simulation:!0}).interval=setInterval(function(){a.loaded+=256,a.total<=a.loaded&&(a.loaded=a.total),s.onprogress(a)},100),o.onabort=function(){s.onabort({})},o.onerror=function(){s.onerror({})},o.onreadystatechange=function(){switch(o.readyState){case 2:case 3:a.total<=a.loaded&&(a.loaded=a.total),s.onprogress(a);break;case 4:var e;clearInterval(a.interval),a.interval=0,a.loaded=a.total,s.onprogress(a),199<o.status&&o.status<400?(s.onload({}),(e=BI.jsonDecode(o.responseText)).filename=n.file.fileName,-1!=n.file.type.indexOf("image")&&(e.attach_type="image"),n.attach_array[i]=e):s.onerror({})}},s.onloadstart(a));var u,l="AjaxUploadBoundary"+(new Date).getTime();return o.setRequestHeader("Content-Type","multipart/form-data; boundary="+l),n.file.getAsBinary?o[o.sendAsBinary?"sendAsBinary":"send"](multipart(l,n.name,n.file)):(o.setRequestHeader("Content-Type","multipart/form-data"),(u=new FormData).append("FileData",n.file),o.send(u)),n}isFunction(n.onerror)&&n.onerror()}:function(handler,maxSize,width,height){var current=handler.current,url=handler.url.concat(-1===handler.url.indexOf("?")?"?":"&","AjaxUploadFrame=true"),rpe={loaded:1,total:100,simulation:!0,interval:setInterval(function(){rpe.loaded<rpe.total&&++rpe.loaded,isFunction(handler.onprogress)&&handler.onprogress(rpe,{})},100)},onload=function(){iframe.onreadystatechange=iframe.onload=iframe.onerror=null,form.parentNode.removeChild(form),form=null,clearInterval(rpe.interval);try{var e=(iframe.contentWindow.document||iframe.contentWindow.contentDocument).body.innerHTML,t=BI.jsonDecode(e);-1!=handler.file.type.indexOf("image")&&(t.attach_type="image");try{t.filename=_global.decodeURIComponent(handler.file.fileName)}catch(n){t.filename=handler.file.fileName}1==handler.maxLength?handler.attach_array[0]=t:handler.attach_array[current]=t}catch(n){isFunction(handler.onerror)&&handler.onerror(rpe,event||_global.event)}isFunction(handler.onload)&&handler.onload(rpe,{responseText:e})},target=["AjaxUpload",(new Date).getTime(),String(Math.random()).substring(2)].join("_");try{var form=document.createElement('<form enctype="multipart/form-data"></form>'),iframe=handler.iframe||(handler.iframe=document.createElement('<iframe id="'+target+'" name="'+target+'" src="'+url+'"></iframe>'))}catch(e){var form=document.createElement("form"),iframe=handler.iframe||(handler.iframe=document.createElement("iframe"));form.setAttribute("enctype","multipart/form-data"),iframe.setAttribute("name",iframe.id=target),iframe.setAttribute("src",url)}with(iframe.style.position="absolute",iframe.style.left=iframe.style.top="-10000px",iframe.onload=onload,iframe.onerror=function(e){isFunction(handler.onerror)&&handler.onerror(rpe,e||_global.event)},iframe.onreadystatechange=function(){/loaded|complete/i.test(iframe.readyState)?onload():isFunction(handler.onloadprogress)&&(rpe.loaded<rpe.total&&++rpe.loaded,handler.onloadprogress(rpe,{readyState:{loading:2,interactive:3,loaded:4,complete:4}[iframe.readyState]||1}))},form.setAttribute("action",handler.url+"&filename="+_global.encodeURIComponent(handler.file.fileName)),form.setAttribute("target",iframe.id),form.setAttribute("method","post"),form.appendChild(handler.file),form.style.display="none",isFunction(handler.onloadstart)&&handler.onloadstart(rpe,{}),document.body||document.documentElement)appendChild(iframe),appendChild(form),form.submit();return handler},xhr=null;return sendFile}(Object.prototype.toString),sendFiles=function(r,i,a,o){var s=r.files.length,c=r.onload,u=r.onloadstart;for(r.current=0,r.total=0,r.sent=0;r.current<s;)r.total+=r.files[r.current].fileSize||r.files[r.current].size,r.current++;return r.current=0,s&&-1!==r.files[0].fileSize?(r.file=r.files[r.current],sendFile(r,i,a,o).onload=function(e,t){r.onloadstart=null,r.sent+=r.files[r.current].fileSize||r.files[r.current].size,++r.current<s?(r.file=r.files[r.current],sendFile(r,i,a,o).onload=arguments.callee):c&&(r.onloadstart=u,r.onload=c,r.onload(e,t))}):s&&(r.total=100*s,r.file=r.files[r.current],sendFile(r,i,a,o).onload=function(e,t){var n=arguments.callee;r.onloadstart=null,r.sent+=100,++r.current<s?(/\b(chrome|safari)\b/i.test(navigator.userAgent)&&(r.iframe.parentNode.removeChild(r.iframe),r.iframe=null),setTimeout(function(){r.file=r.files[r.current],sendFile(r,i,a,o).onload=n},15)):c&&setTimeout(function(){r.iframe.parentNode.removeChild(r.iframe),r.iframe=null,r.onloadstart=u,r.onload=c,r.onload(e,t)},15)}),r},r1=/\.([^.]+)$/,r2=/\/([^/]+)$/,fileTypeValidate=function(r,e){if(!e)return!0;var t=e.split(",");return t[0]===e&&(t=(e+"").split(";")),BI.some(t,function(e,t){var n;return(n=t.match(r1))?-1<r.toLowerCase().indexOf(n[1]):(n=t.match(r2))?"*"===n[1]||-1<r.toLowerCase().indexOf(n[1]):void 0})};BI.File=BI.inherit(BI.Widget,{_defaultConfig:function(){var e=BI.File.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-file display-block",tagName:"input",attributes:{type:"file"},name:"",url:"",multiple:!0,accept:"",maxSize:-1,maxLength:-1})},_init:function(){var e=this.options;BI.File.superclass._init.apply(this,arguments),!0===e.multiple&&this.element.attr("multiple","multiple"),this.element.attr("name",e.name||this.getName()),this.element.attr("title",e.title||""),this.element.attr("accept",e.accept)},created:function(){var r=this,e=this.options,i=this.wrap=this._wrap(this.element[0],e.maxSize);i.onloadstart=function(e,t){r.fireEvent(BI.File.EVENT_UPLOADSTART,arguments)},i.onprogress=function(e,t){-1!==this.file.fileSize&&e.simulation,r.fireEvent(BI.File.EVENT_PROGRESS,{file:this.file,total:e.total,loaded:e.loaded,simulation:e.simulation})},i.onerror=function(){r.fireEvent(BI.File.EVENT_ERROR)},i.onload=function(e,t){var n=this;setTimeout(function(){return n.clean(),n.hide(),t.status<200||399<t.status?(BI.Msg.toast(BI.i18nText("BI-Upload_File_Error"),{level:"error"}),void r.fireEvent(BI.File.EVENT_ERROR)):void(BI.some(i.attach_array,function(e,t){if(t.errorCode)return BI.Msg.toast(BI.i18nText(t.errorMsg),{level:"error"}),r.fireEvent(BI.File.EVENT_ERROR,t),!0})||r.fireEvent(BI.File.EVENT_UPLOADED))},1e3)},i.url=e.url,i.fileType=e.accept,i.attach_array=[],i.attach_names=[],i.attachNum=0},_events:function(s){var c=this;return event.add(s.dom.input,"change",function(){event.del(s.dom.input,"change",arguments.callee);var e=s.dom.input.cloneNode(!0),t=F(s.dom.input);if(-1!==s.maxLength&&s.maxLength<t.length)c.fireEvent(BI.File.EVENT_ERROR,{errorType:2});else for(var n=0;n<t.length;n++){var r=t.item(n),i=r.value||r.name,a=r.fileName||(r.fileName=i.split("\\").pop()),o=(-1!==a.indexOf(".")&&a.split(".").pop().toLowerCase(),r.fileSize||r.size);fileTypeValidate(a,s.fileType)?-1!==s.maxSize&&o&&s.maxSize<o?(BI.Msg.toast(BI.i18nText("BI-Upload_File_Size_Error"),{level:"error"}),c.fireEvent(BI.File.EVENT_ERROR,{errorType:1,file:r})):s.files.unshift(r):(BI.Msg.toast(BI.i18nText("BI-Upload_File_Type_Error"),{level:"error"}),c.fireEvent(BI.File.EVENT_ERROR,{errorType:0,file:r}))}0<s.files.length&&c.fireEvent(BI.File.EVENT_CHANGE,{files:s.files}),e.value="",s.dom.input.parentNode.replaceChild(e,s.dom.input),s.dom.input=e,event.add(s.dom.input,"change",arguments.callee)}),s},_wrap:function(){var e=this.options,t=this.element[0];return!0===e.multiple&&this.element.attr("multiple","multiple"),t.value="",this._events({dom:{input:t,disabled:!1},name:t.name,maxSize:e.maxSize?e.maxSize>>0:-1,maxLength:e.maxLength,files:[],clean:function(){this.files=[]},upload:function(e){if(e)for(var t in e)this[t]=e[t];return sendFiles(this,this.maxSize),this},hide:function(){this.dom.disabled&&(this.dom.disabled=!1,this.dom.input.removeAttribute("disabled"))},show:function(e,t,n,r){this.dom.disabled||(this.dom.disabled=!0,this.dom.input.setAttribute("disabled","disabled"))}})},select:function(){this.wrap&&BI.Widget._renderEngine.createElement(this.wrap.dom.input).click()},upload:function(e){this.wrap&&this.wrap.upload(e)},getValue:function(){return this.wrap?this.wrap.attach_array:[]},reset:function(){this.wrap&&(this.wrap.attach_array=[],this.wrap.attach_names=[],this.wrap.attachNum=0)},_setEnable:function(e){BI.File.superclass._setEnable.apply(this,arguments),!0===e?this.element.attr("disabled","disabled"):this.element.removeAttr("disabled")}}),BI.File.EVENT_CHANGE="EVENT_CHANGE",BI.File.EVENT_UPLOADSTART="EVENT_UPLOADSTART",BI.File.EVENT_ERROR="EVENT_ERROR",BI.File.EVENT_PROGRESS="EVENT_PROGRESS",BI.File.EVENT_UPLOADED="EVENT_UPLOADED",BI.shortcut("bi.file",BI.File)}(_global.document||{})},function(module,exports){!function($){var settings={},roots={},caches={},_consts={className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove",SELECTED:"ztree_selected",UNSELECTED:"ztree_unselected"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_setting={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},_initRoot=function(e){var t=data.getRoot(e);t||(t={},data.setRoot(e,t)),t[e.data.key.children]=[],t.expandTriggerFlag=!1,t.curSelectedList=[],t.noSelection=!0,t.createdNodes=[],t.zId=0,t._ver=(new Date).getTime()},_initCache=function(e){var t=data.getCache(e);t||(t={},data.setCache(e,t)),t.nodes=[],t.doms=[]},_bindEvent=function(o){var e=o.treeObj,t=consts.event;e.bind(t.NODECREATED,function(e,t,n){tools.apply(o.callback.onNodeCreated,[e,t,n])}),e.bind(t.CLICK,function(e,t,n,r,i){tools.apply(o.callback.onClick,[t,n,r,i])}),e.bind(t.EXPAND,function(e,t,n){tools.apply(o.callback.onExpand,[e,t,n])}),e.bind(t.COLLAPSE,function(e,t,n){tools.apply(o.callback.onCollapse,[e,t,n])}),e.bind(t.ASYNC_SUCCESS,function(e,t,n,r){tools.apply(o.callback.onAsyncSuccess,[e,t,n,r])}),e.bind(t.ASYNC_ERROR,function(e,t,n,r,i,a){tools.apply(o.callback.onAsyncError,[e,t,n,r,i,a])}),e.bind(t.REMOVE,function(e,t,n){tools.apply(o.callback.onRemove,[e,t,n])}),e.bind(t.SELECTED,function(e,t,n,r){tools.apply(o.callback.onSelected,[t,n,r])}),e.bind(t.UNSELECTED,function(e,t,n,r){tools.apply(o.callback.onUnSelected,[t,n,r])})},_unbindEvent=function(e){var t=e.treeObj,n=consts.event;t.unbind(n.NODECREATED).unbind(n.CLICK).unbind(n.EXPAND).unbind(n.COLLAPSE).unbind(n.ASYNC_SUCCESS).unbind(n.ASYNC_ERROR).unbind(n.REMOVE).unbind(n.SELECTED).unbind(n.UNSELECTED)},_eventProxy=function(e){var t=e.target,n=data.getSetting(e.data.treeId),r="",i=null,a="",o="",s=null,c=null,u=null;if(tools.eqs(e.type,"mousedown")?o="mousedown":tools.eqs(e.type,"mouseup")?o="mouseup":tools.eqs(e.type,"contextmenu")?o="contextmenu":tools.eqs(e.type,"click")?tools.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+consts.id.SWITCH)?(r=tools.getNodeMainDom(t).id,a="switchNode"):(u=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))&&(r=tools.getNodeMainDom(u).id,a="clickNode"):tools.eqs(e.type,"dblclick")&&(o="dblclick",(u=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))&&(r=tools.getNodeMainDom(u).id,a="switchNode")),0<o.length&&0==r.length&&(u=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))&&(r=tools.getNodeMainDom(u).id),0<r.length)switch(i=data.getNodeCache(n,r),a){case"switchNode":i.isParent&&(tools.eqs(e.type,"click")||tools.eqs(e.type,"dblclick")&&tools.apply(n.view.dblClickExpand,[n.treeId,i],n.view.dblClickExpand))?s=handler.onSwitchNode:a="";break;case"clickNode":s=handler.onClickNode}switch(o){case"mousedown":c=handler.onZTreeMousedown;break;case"mouseup":c=handler.onZTreeMouseup;break;case"dblclick":c=handler.onZTreeDblclick;break;case"contextmenu":c=handler.onZTreeContextmenu}return{stop:!1,node:i,nodeEventType:a,nodeEventCallback:s,treeEventType:o,treeEventCallback:c}},_initNode=function(e,t,n,r,i,a,o){var s,c;n&&(s=data.getRoot(e),c=e.data.key.children,n.level=t,n.tId=e.treeId+"_"+ ++s.zId,n.parentTId=r?r.tId:null,n.open="string"==typeof n.open?tools.eqs(n.open,"true"):!!n.open,n[c]&&0<n[c].length?(n.isParent=!0,n.zAsync=!0):(n.isParent="string"==typeof n.isParent?tools.eqs(n.isParent,"true"):!!n.isParent,n.open=!(!n.isParent||e.async.enable)&&n.open,n.zAsync=!n.isParent),n.isFirstNode=i,n.isLastNode=a,n.getParentNode=function(){return data.getNodeCache(e,n.parentTId)},n.getPreNode=function(){return data.getPreNode(e,n)},n.getNextNode=function(){return data.getNextNode(e,n)},n.isAjaxing=!1,data.fixPIdKeyValue(e,n))},_init={bind:[_bindEvent],unbind:[_unbindEvent],caches:[_initCache],nodes:[_initNode],proxys:[_eventProxy],roots:[_initRoot],beforeA:[],afterA:[],innerBeforeA:[],innerAfterA:[],zTreeTools:[]},data={addNodeCache:function(e,t){data.getCache(e).nodes[data.getNodeCacheId(t.tId)]=t},getNodeCacheId:function(e){return e.substring(e.lastIndexOf("_")+1)},addAfterA:function(e){_init.afterA.push(e)},addBeforeA:function(e){_init.beforeA.push(e)},addInnerAfterA:function(e){_init.innerAfterA.push(e)},addInnerBeforeA:function(e){_init.innerBeforeA.push(e)},addInitBind:function(e){_init.bind.push(e)},addInitUnBind:function(e){_init.unbind.push(e)},addInitCache:function(e){_init.caches.push(e)},addInitNode:function(e){_init.nodes.push(e)},addInitProxy:function(e,t){t?_init.proxys.splice(0,0,e):_init.proxys.push(e)},addInitRoot:function(e){_init.roots.push(e)},addNodesData:function(e,t,n){var r=e.data.key.children;t[r]||(t[r]=[]),0<t[r].length&&(t[r][t[r].length-1].isLastNode=!1,view.setNodeLineIcos(e,t[r][t[r].length-1])),t.isParent=!0,t[r]=t[r].concat(n)},addSelectedNode:function(e,t){var n=data.getRoot(e);data.isSelectedNode(e,t)||n.curSelectedList.push(t)},addCreatedNode:function(e,t){(e.callback.onNodeCreated||e.view.addDiyDom)&&data.getRoot(e).createdNodes.push(t)},addZTreeTools:function(e){_init.zTreeTools.push(e)},exSetting:function(e){$.extend(!0,_setting,e)},fixPIdKeyValue:function(e,t){e.data.simpleData.enable&&(t[e.data.simpleData.pIdKey]=t.parentTId?t.getParentNode()[e.data.simpleData.idKey]:e.data.simpleData.rootPId)},getAfterA:function(e,t,n){for(var r=0,i=_init.afterA.length;r<i;r++)_init.afterA[r].apply(this,arguments)},getBeforeA:function(e,t,n){for(var r=0,i=_init.beforeA.length;r<i;r++)_init.beforeA[r].apply(this,arguments)},getInnerAfterA:function(e,t,n){for(var r=0,i=_init.innerAfterA.length;r<i;r++)_init.innerAfterA[r].apply(this,arguments)},getInnerBeforeA:function(e,t,n){for(var r=0,i=_init.innerBeforeA.length;r<i;r++)_init.innerBeforeA[r].apply(this,arguments)},getCache:function(e){return caches[e.treeId]},getNextNode:function(e,t){if(!t)return null;for(var n=e.data.key.children,r=t.parentTId?t.getParentNode():data.getRoot(e),i=0,a=r[n].length-1;i<=a;i++)if(r[n][i]===t)return i==a?null:r[n][i+1];return null},getNodeByParam:function(e,t,n,r){if(!t||!n)return null;for(var i=e.data.key.children,a=0,o=t.length;a<o;a++){if(t[a][n]==r)return t[a];var s=data.getNodeByParam(e,t[a][i],n,r);if(s)return s}return null},getNodeCache:function(e,t){if(!t)return null;var n=caches[e.treeId].nodes[data.getNodeCacheId(t)];return n||null},getNodeName:function(e,t){return""+t[e.data.key.name]},getNodeTitle:function(e,t){return""+t[""===e.data.key.title?e.data.key.name:e.data.key.title]},getNodes:function(e){return data.getRoot(e)[e.data.key.children]},getNodesByParam:function(e,t,n,r){if(!t||!n)return[];for(var i=e.data.key.children,a=[],o=0,s=t.length;o<s;o++)t[o][n]==r&&a.push(t[o]),a=a.concat(data.getNodesByParam(e,t[o][i],n,r));return a},getNodesByParamFuzzy:function(e,t,n,r){if(!t||!n)return[];var i=e.data.key.children,a=[];r=r.toLowerCase();for(var o=0,s=t.length;o<s;o++)"string"==typeof t[o][n]&&-1<t[o][n].toLowerCase().indexOf(r)&&a.push(t[o]),a=a.concat(data.getNodesByParamFuzzy(e,t[o][i],n,r));return a},getNodesByFilter:function(e,t,n,r,i){if(!t)return r?null:[];for(var a=e.data.key.children,o=r?null:[],s=0,c=t.length;s<c;s++){if(tools.apply(n,[t[s],i],!1)){if(r)return t[s];o.push(t[s])}var u=data.getNodesByFilter(e,t[s][a],n,r,i);if(r&&u)return u;o=r?u:o.concat(u)}return o},getPreNode:function(e,t){if(!t)return null;for(var n=e.data.key.children,r=t.parentTId?t.getParentNode():data.getRoot(e),i=0,a=r[n].length;i<a;i++)if(r[n][i]===t)return 0==i?null:r[n][i-1];return null},getRoot:function(e){return e?roots[e.treeId]:null},getRoots:function(){return roots},getSetting:function(e){return settings[e]},getSettings:function(){return settings},getZTreeTools:function(e){var t=this.getRoot(this.getSetting(e));return t?t.treeTools:null},initCache:function(e){for(var t=0,n=_init.caches.length;t<n;t++)_init.caches[t].apply(this,arguments)},initNode:function(e,t,n,r,i,a){for(var o=0,s=_init.nodes.length;o<s;o++)_init.nodes[o].apply(this,arguments)},initRoot:function(e){for(var t=0,n=_init.roots.length;t<n;t++)_init.roots[t].apply(this,arguments)},isSelectedNode:function(e,t){for(var n=data.getRoot(e),r=0,i=n.curSelectedList.length;r<i;r++)if(t===n.curSelectedList[r])return!0;return!1},removeNodeCache:function(e,t){var n=e.data.key.children;if(t[n])for(var r=0,i=t[n].length;r<i;r++)arguments.callee(e,t[n][r]);data.getCache(e).nodes[data.getNodeCacheId(t.tId)]=null},removeSelectedNode:function(e,t){for(var n=data.getRoot(e),r=0,i=n.curSelectedList.length;r<i;r++)t!==n.curSelectedList[r]&&data.getNodeCache(e,n.curSelectedList[r].tId)||(n.curSelectedList.splice(r,1),r--,i--)},setCache:function(e,t){caches[e.treeId]=t},setRoot:function(e,t){roots[e.treeId]=t},setZTreeTools:function(e,t){for(var n=0,r=_init.zTreeTools.length;n<r;n++)_init.zTreeTools[n].apply(this,arguments)},transformToArrayFormat:function(e,t){if(!t)return[];var n=e.data.key.children,r=[];if(tools.isArray(t))for(var i=0,a=t.length;i<a;i++)r.push(t[i]),t[i][n]&&(r=r.concat(data.transformToArrayFormat(e,t[i][n])));else r.push(t),t[n]&&(r=r.concat(data.transformToArrayFormat(e,t[n])));return r},transformTozTreeFormat:function(e,t){var n=e.data.simpleData.idKey,r=e.data.simpleData.pIdKey,i=e.data.key.children;if(!n||""==n||!t)return[];if(tools.isArray(t)){for(var a=[],o={},s=0,c=t.length;s<c;s++)o[t[s][n]]=t[s];for(s=0,c=t.length;s<c;s++)o[t[s][r]]&&t[s][n]!=t[s][r]?(o[t[s][r]][i]||(o[t[s][r]][i]=[]),o[t[s][r]][i].push(t[s])):a.push(t[s]);return a}return[t]}},event={bindEvent:function(e){for(var t=0,n=_init.bind.length;t<n;t++)_init.bind[t].apply(this,arguments)},unbindEvent:function(e){for(var t=0,n=_init.unbind.length;t<n;t++)_init.unbind[t].apply(this,arguments)},bindTree:function(e){var t={treeId:e.treeId},n=e.treeObj;e.view.txtSelectedEnable||n.bind("selectstart",function(e){var t=e.originalEvent.srcElement.nodeName.toLowerCase();return"input"===t||"textarea"===t}).css({"-moz-user-select":"-moz-none"}),n.bind("click",t,event.proxy),n.bind("dblclick",t,event.proxy),n.bind("mouseover",t,event.proxy),n.bind("mouseout",t,event.proxy),n.bind("mousedown",t,event.proxy),n.bind("mouseup",t,event.proxy),n.bind("contextmenu",t,event.proxy)},unbindTree:function(e){e.treeObj.unbind("click",event.proxy).unbind("dblclick",event.proxy).unbind("mouseover",event.proxy).unbind("mouseout",event.proxy).unbind("mousedown",event.proxy).unbind("mouseup",event.proxy).unbind("contextmenu",event.proxy)},doProxy:function(e){for(var t=[],n=0,r=_init.proxys.length;n<r;n++){var i=_init.proxys[n].apply(this,arguments);if(t.push(i),i.stop)break}return t},proxy:function(e){var t=data.getSetting(e.data.treeId);if(!tools.uCanDo(t,e))return!0;for(var n=event.doProxy(e),r=!0,i=0,a=n.length;i<a;i++){var o=n[i];o.nodeEventCallback&&(r=o.nodeEventCallback.apply(o,[e,o.node])&&r),o.treeEventCallback&&(r=o.treeEventCallback.apply(o,[e,o.node])&&r)}return r}},handler={onSwitchNode:function(e,t){var n=data.getSetting(e.data.treeId);if(t.open){if(0==tools.apply(n.callback.beforeCollapse,[n.treeId,t],!0))return!0;data.getRoot(n).expandTriggerFlag=!0,view.switchNode(n,t)}else{if(0==tools.apply(n.callback.beforeExpand,[n.treeId,t],!0))return!0;data.getRoot(n).expandTriggerFlag=!0,view.switchNode(n,t)}return!0},onClickNode:function(e,t){var n=data.getSetting(e.data.treeId),r=n.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&data.isSelectedNode(n,t)?0:n.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&n.view.selectedMulti?2:1;return 0==tools.apply(n.callback.beforeClick,[n.treeId,t,r],!0)||(0==r?view.cancelPreSelectedNode(n,t):view.selectNode(n,t,2==r),n.treeObj.trigger(consts.event.CLICK,[e,n.treeId,t,r])),!0},onZTreeMousedown:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeMouseDown,[n.treeId,t],!0)&&tools.apply(n.callback.onMouseDown,[e,n.treeId,t]),!0},onZTreeMouseup:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeMouseUp,[n.treeId,t],!0)&&tools.apply(n.callback.onMouseUp,[e,n.treeId,t]),!0},onZTreeDblclick:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeDblClick,[n.treeId,t],!0)&&tools.apply(n.callback.onDblClick,[e,n.treeId,t]),!0},onZTreeContextmenu:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeRightClick,[n.treeId,t],!0)&&tools.apply(n.callback.onRightClick,[e,n.treeId,t]),"function"!=typeof n.callback.onRightClick}},tools={apply:function(e,t,n){return"function"==typeof e?e.apply(zt,t||[]):n},canAsync:function(e,t){var n=e.data.key.children;return e.async.enable&&t&&t.isParent&&!(t.zAsync||t[n]&&0<t[n].length)},clone:function(e){if(null===e)return null;var t=tools.isArray(e)?[]:{};for(var n in e)t[n]=e[n]instanceof Date?new Date(e[n].getTime()):"object"==typeof e[n]?arguments.callee(e[n]):e[n];return t},eqs:function(e,t){return e.toLowerCase()===t.toLowerCase()},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},$:function(e,t,n){return t&&"string"!=typeof t&&(n=t,t=""),"string"==typeof e?$(e,n?n.treeObj.get(0).ownerDocument:null):$("#"+e.tId+t,n?n.treeObj:null)},getMDom:function(e,t,n){if(!t)return null;for(;t&&t.id!==e.treeId;){for(var r=0,i=n.length;t.tagName&&r<i;r++)if(tools.eqs(t.tagName,n[r].tagName)&&null!==t.getAttribute(n[r].attrName))return t;t=t.parentNode}return null},getNodeMainDom:function(e){return $(e).parent("li").get(0)||$(e).parentsUntil("li").parent().get(0)},isChildOrSelf:function(e,t){return 0<$(e).closest("#"+t).length},uCanDo:function(e,t){return!0}},view={addNodes:function(e,t,n,r){var i,a,o;e.data.keep.leaf&&t&&!t.isParent||(tools.isArray(n)||(n=[n]),e.data.simpleData.enable&&(n=data.transformTozTreeFormat(e,n)),t?(i=$$(t,consts.id.SWITCH,e),a=$$(t,consts.id.ICON,e),o=$$(t,consts.id.UL,e),t.open||(view.replaceSwitchClass(t,i,consts.folder.CLOSE),view.replaceIcoClass(t,a,consts.folder.CLOSE),t.open=!1,o.css({display:"none"})),data.addNodesData(e,t,n),view.createNodes(e,t.level+1,n,t),r||view.expandCollapseParentNode(e,t,!0)):(data.addNodesData(e,data.getRoot(e),n),view.createNodes(e,0,n,null)))},appendNodes:function(e,t,n,r,i,a){if(!n)return[];for(var o=[],s=e.data.key.children,c=0,u=n.length;c<u;c++){var l,d,p=n[c];i&&(l=(r||data.getRoot(e))[s].length==n.length&&0==c,d=c==n.length-1,data.initNode(e,t,p,r,l,d,a),data.addNodeCache(e,p));var f=[];p[s]&&0<p[s].length&&(f=view.appendNodes(e,t+1,p[s],p,i,a&&p.open)),a&&(view.makeDOMNodeMainBefore(o,e,p),view.makeDOMNodeLine(o,e,p),data.getBeforeA(e,p,o),view.makeDOMNodeNameBefore(o,e,p),data.getInnerBeforeA(e,p,o),view.makeDOMNodeIcon(o,e,p),data.getInnerAfterA(e,p,o),view.makeDOMNodeNameAfter(o,e,p),data.getAfterA(e,p,o),p.isParent&&p.open&&view.makeUlHtml(e,p,o,f.join("")),view.makeDOMNodeMainAfter(o,e,p),data.addCreatedNode(e,p))}return o},appendParentULDom:function(e,t){var n=[],r=$$(t,e);!r.get(0)&&t.parentTId&&(view.appendParentULDom(e,t.getParentNode()),r=$$(t,e));var i=$$(t,consts.id.UL,e);i.get(0)&&i.remove();var a=e.data.key.children,o=view.appendNodes(e,t.level+1,t[a],t,!1,!0);view.makeUlHtml(e,t,n,o.join("")),r.append(n.join(""))},asyncNode:function(setting,node,isSilent,callback){var i,l,icoObj;if(node&&!node.isParent)return tools.apply(callback),!1;if(node&&node.isAjaxing)return!1;if(0==tools.apply(setting.callback.beforeAsync,[setting.treeId,node],!0))return tools.apply(callback),!1;node&&(node.isAjaxing=!0,icoObj=$$(node,consts.id.ICON,setting),icoObj.attr({style:"","class":consts.className.BUTTON+" "+consts.className.ICO_LOADING}));for(var tmpParam={},i=0,l=setting.async.autoParam.length;node&&i<l;i++){var pKey=setting.async.autoParam[i].split("="),spKey=pKey;1<pKey.length&&(spKey=pKey[1],pKey=pKey[0]),tmpParam[spKey]=node[pKey]}if(tools.isArray(setting.async.otherParam))for(i=0,l=setting.async.otherParam.length;i<l;i+=2)tmpParam[setting.async.otherParam[i]]=setting.async.otherParam[i+1];else for(var p in setting.async.otherParam)tmpParam[p]=setting.async.otherParam[p];var _tmpV=data.getRoot(setting)._ver;return $.ajax({contentType:setting.async.contentType,cache:!1,type:setting.async.type,url:tools.apply(setting.async.url,[setting.treeId,node],setting.async.url),data:tmpParam,dataType:setting.async.dataType,success:function(msg){if(_tmpV==data.getRoot(setting)._ver){var newNodes=[];try{newNodes=msg&&0!=msg.length?"string"==typeof msg?eval("("+msg+")"):msg:[]}catch(err){newNodes=msg}node&&(node.isAjaxing=null,node.zAsync=!0),view.setNodeLineIcos(setting,node),newNodes&&""!==newNodes?(newNodes=tools.apply(setting.async.dataFilter,[setting.treeId,node,newNodes],newNodes),view.addNodes(setting,node,newNodes?tools.clone(newNodes):[],!!isSilent)):view.addNodes(setting,node,[],!!isSilent),setting.treeObj.trigger(consts.event.ASYNC_SUCCESS,[setting.treeId,node,msg]),tools.apply(callback)}},error:function(e,t,n){_tmpV==data.getRoot(setting)._ver&&(node&&(node.isAjaxing=null),view.setNodeLineIcos(setting,node),setting.treeObj.trigger(consts.event.ASYNC_ERROR,[setting.treeId,node,e,t,n]))}}),!0},cancelPreSelectedNode:function(e,t,n){for(var r,i=data.getRoot(e).curSelectedList,a=i.length-1;0<=a;a--)if(t===(r=i[a])||!t&&(!n||n!==r)){if($$(r,consts.id.A,e).removeClass(consts.node.CURSELECTED),t){data.removeSelectedNode(e,t),e.treeObj.trigger(consts.event.UNSELECTED,[event,e.treeId,r]);break}i.splice(a,1),e.treeObj.trigger(consts.event.UNSELECTED,[event,e.treeId,r])}},createNodeCallback:function(e){if(e.callback.onNodeCreated||e.view.addDiyDom)for(var t=data.getRoot(e);0<t.createdNodes.length;){var n=t.createdNodes.shift();tools.apply(e.view.addDiyDom,[e.treeId,n]),e.callback.onNodeCreated&&e.treeObj.trigger(consts.event.NODECREATED,[e.treeId,n])}},createNodes:function(e,t,n,r){var i,a,o,s,c;n&&0!=n.length&&(i=data.getRoot(e),a=e.data.key.children,o=!r||r.open||!!$$(r[a][0],e).get(0),i.createdNodes=[],s=view.appendNodes(e,t,n,r,!0,o),r?(c=$$(r,consts.id.UL,e)).get(0)&&c.append(s.join("")):e.treeObj.append(s.join("")),view.createNodeCallback(e))},destroy:function(e){e&&(data.initCache(e),data.initRoot(e),event.unbindTree(e),event.unbindEvent(e),e.treeObj.empty(),delete settings[e.treeId])},expandCollapseNode:function(e,t,n,r,i){var a,o,s,c,u=data.getRoot(e),l=e.data.key.children;t?(u.expandTriggerFlag&&(a=i,i=function(){a&&a(),t.open?e.treeObj.trigger(consts.event.EXPAND,[e.treeId,t]):e.treeObj.trigger(consts.event.COLLAPSE,[e.treeId,t])},u.expandTriggerFlag=!1),!t.open&&t.isParent&&(!$$(t,consts.id.UL,e).get(0)||t[l]&&0<t[l].length&&!$$(t[l][0],e).get(0))&&(view.appendParentULDom(e,t),view.createNodeCallback(e)),t.open!=n?(o=$$(t,consts.id.UL,e),s=$$(t,consts.id.SWITCH,e),c=$$(t,consts.id.ICON,e),t.isParent?(t.open=!t.open,t.iconOpen&&t.iconClose&&c.attr("style",view.makeNodeIcoStyle(e,t)),t.open?(view.replaceSwitchClass(t,s,consts.folder.OPEN),view.replaceIcoClass(t,c,consts.folder.OPEN),0!=r&&""!=e.view.expandSpeed&&t[l]&&0<t[l].length?o.slideDown(e.view.expandSpeed,i):(o.show(),tools.apply(i,[]))):(view.replaceSwitchClass(t,s,consts.folder.CLOSE),view.replaceIcoClass(t,c,consts.folder.CLOSE),0!=r&&""!=e.view.expandSpeed&&t[l]&&0<t[l].length?o.slideUp(e.view.expandSpeed,i):(o.hide(),tools.apply(i,[])))):tools.apply(i,[])):tools.apply(i,[])):tools.apply(i,[])},expandCollapseParentNode:function(e,t,n,r,i){t&&(t.parentTId?(view.expandCollapseNode(e,t,n,r),t.parentTId&&view.expandCollapseParentNode(e,t.getParentNode(),n,r,i)):view.expandCollapseNode(e,t,n,r,i))},expandCollapseSonNode:function(e,t,n,r,i){var a=data.getRoot(e),o=e.data.key.children,s=t?t[o]:a[o],c=!t&&r,u=data.getRoot(e).expandTriggerFlag;if(data.getRoot(e).expandTriggerFlag=!1,s)for(var l=0,d=s.length;l<d;l++)s[l]&&view.expandCollapseSonNode(e,s[l],n,c);data.getRoot(e).expandTriggerFlag=u,view.expandCollapseNode(e,t,n,r,i)},isSelectedNode:function(e,t){if(!t)return!1;for(var n=data.getRoot(e).curSelectedList,r=n.length-1;0<=r;r--)if(t===n[r])return!0;return!1},makeDOMNodeIcon:function(e,t,n){var r=data.getNodeName(t,n),i=t.view.nameIsHTML?r:r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.push("<span id='",n.tId,consts.id.ICON,"' title='' treeNode",consts.id.ICON," class='",view.makeNodeIcoClass(t,n),"' style='",view.makeNodeIcoStyle(t,n),"'></span><span id='",n.tId,consts.id.SPAN,"'>",i,"</span>")},makeDOMNodeLine:function(e,t,n){e.push("<span id='",n.tId,consts.id.SWITCH,"' title='' class='",view.makeNodeLineClass(t,n),"' treeNode",consts.id.SWITCH,"></span>")},makeDOMNodeMainAfter:function(e,t,n){e.push("</li>")},makeDOMNodeMainBefore:function(e,t,n){e.push("<li id='",n.tId,"' class='",consts.className.LEVEL,n.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(e,t,n){e.push("</a>")},makeDOMNodeNameBefore:function(e,t,n){var r=data.getNodeTitle(t,n),i=view.makeNodeUrl(t,n),a=view.makeNodeFontCss(t,n),o=[];for(var s in a)o.push(s,":",a[s],";");e.push("<a id='",n.tId,consts.id.A,"' class='",consts.className.LEVEL,n.level,"' treeNode",consts.id.A,' onclick="',n.click||"",'" ',null!=i&&0<i.length?"href='"+i+"'":""," target='",view.makeNodeTarget(n),"' style='",o.join(""),"'"),tools.apply(t.view.showTitle,[t.treeId,n],t.view.showTitle)&&r&&e.push("title='",r.replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"'"),e.push(">")},makeNodeFontCss:function(e,t){var n=tools.apply(e.view.fontCss,[e.treeId,t],e.view.fontCss);return n&&"function"!=typeof n?n:{}},makeNodeIcoClass:function(e,t){var n=["ico"];return t.isAjaxing||(n[0]=(t.iconSkin?t.iconSkin+"_":"")+n[0],t.isParent?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU)),consts.className.BUTTON+" "+n.join("_")},makeNodeIcoStyle:function(e,t){var n,r=[];return t.isAjaxing||((n=t.isParent&&t.iconOpen&&t.iconClose?t.open?t.iconOpen:t.iconClose:t.icon)&&r.push("background:url(",n,") 0 0 no-repeat;"),0!=e.view.showIcon&&tools.apply(e.view.showIcon,[e.treeId,t],!0)||r.push("width:0px;height:0px;")),r.join("")},makeNodeLineClass:function(e,t){var n=[];return e.view.showLine?0==t.level&&t.isFirstNode&&t.isLastNode?n.push(consts.line.ROOT):0==t.level&&t.isFirstNode?n.push(consts.line.ROOTS):t.isLastNode?n.push(consts.line.BOTTOM):n.push(consts.line.CENTER):n.push(consts.line.NOLINE),t.isParent?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU),view.makeNodeLineClassEx(t)+n.join("_")},makeNodeLineClassEx:function(e){return consts.className.BUTTON+" "+consts.className.LEVEL+e.level+" "+consts.className.SWITCH+" "},makeNodeTarget:function(e){return e.target||"_blank"},makeNodeUrl:function(e,t){var n=e.data.key.url;return t[n]?t[n]:null},makeUlHtml:function(e,t,n,r){n.push("<ul id='",t.tId,consts.id.UL,"' class='",consts.className.LEVEL,t.level," ",view.makeUlLineClass(e,t),"' style='display:",t.open?"block":"none","'>"),n.push(r),n.push("</ul>")},makeUlLineClass:function(e,t){return e.view.showLine&&!t.isLastNode?consts.line.LINE:""},removeChildNodes:function(e,t){if(t){var n=e.data.key.children,r=t[n];if(r){for(var i,a,o=0,s=r.length;o<s;o++)data.removeNodeCache(e,r[o]);data.removeSelectedNode(e),delete t[n],e.data.keep.parent?$$(t,consts.id.UL,e).empty():(t.isParent=!1,t.open=!1,i=$$(t,consts.id.SWITCH,e),a=$$(t,consts.id.ICON,e),view.replaceSwitchClass(t,i,consts.folder.DOCU),view.replaceIcoClass(t,a,consts.folder.DOCU),$$(t,consts.id.UL,e).remove())}}},setFirstNode:function(e,t){var n=e.data.key.children;0<t[n].length&&(t[n][0].isFirstNode=!0)},setLastNode:function(e,t){var n=e.data.key.children,r=t[n].length;0<r&&(t[n][r-1].isLastNode=!0)},removeNode:function(e,t){var n=data.getRoot(e),r=e.data.key.children,i=t.parentTId?t.getParentNode():n;if(t.isFirstNode=!1,t.isLastNode=!1,t.getPreNode=function(){return null},t.getNextNode=function(){return null},data.getNodeCache(e,t.tId)){$$(t,e).remove(),data.removeNodeCache(e,t),data.removeSelectedNode(e,t);for(var a=0,o=i[r].length;a<o;a++)if(i[r][a].tId==t.tId){i[r].splice(a,1);break}view.setFirstNode(e,i),view.setLastNode(e,i);var s,c,u,l,d,p=i[r].length;e.data.keep.parent||0!=p?e.view.showLine&&0<p&&(s=i[r][p-1],u=$$(s,consts.id.UL,e),l=$$(s,consts.id.SWITCH,e),d=$$(s,consts.id.ICON,e),i==n?1==i[r].length?view.replaceSwitchClass(s,l,consts.line.ROOT):(c=$$(i[r][0],consts.id.SWITCH,e),view.replaceSwitchClass(i[r][0],c,consts.line.ROOTS),view.replaceSwitchClass(s,l,consts.line.BOTTOM)):view.replaceSwitchClass(s,l,consts.line.BOTTOM),u.removeClass(consts.line.LINE)):(i.isParent=!1,i.open=!1,u=$$(i,consts.id.UL,e),l=$$(i,consts.id.SWITCH,e),d=$$(i,consts.id.ICON,e),view.replaceSwitchClass(i,l,consts.folder.DOCU),view.replaceIcoClass(i,d,consts.folder.DOCU),u.css("display","none"))}},replaceIcoClass:function(e,t,n){if(t&&!e.isAjaxing){var r=t.attr("class");if(r!=undefined){var i=r.split("_");switch(n){case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:i[i.length-1]=n}t.attr("class",i.join("_"))}}},replaceSwitchClass:function(e,t,n){if(t){var r=t.attr("class");if(r!=undefined){var i=r.split("_");switch(n){case consts.line.ROOT:case consts.line.ROOTS:case consts.line.CENTER:case consts.line.BOTTOM:case consts.line.NOLINE:i[0]=view.makeNodeLineClassEx(e)+n;break;case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:i[1]=n}t.attr("class",i.join("_")),n!==consts.folder.DOCU?t.removeAttr("disabled"):t.attr("disabled","disabled")}}},selectNode:function(e,t,n){n||view.cancelPreSelectedNode(e,null,t),$$(t,consts.id.A,e).addClass(consts.node.CURSELECTED),data.addSelectedNode(e,t),e.treeObj.trigger(consts.event.SELECTED,[event,e.treeId,t])},setNodeFontCss:function(e,t){var n=$$(t,consts.id.A,e),r=view.makeNodeFontCss(e,t);r&&n.css(r)},setNodeLineIcos:function(e,t){var n,r,i,a;t&&(n=$$(t,consts.id.SWITCH,e),r=$$(t,consts.id.UL,e),i=$$(t,consts.id.ICON,e),0==(a=view.makeUlLineClass(e,t)).length?r.removeClass(consts.line.LINE):r.addClass(a),n.attr("class",view.makeNodeLineClass(e,t)),t.isParent?n.removeAttr("disabled"):n.attr("disabled","disabled"),i.removeAttr("style"),i.attr("style",view.makeNodeIcoStyle(e,t)),i.attr("class",view.makeNodeIcoClass(e,t)))},setNodeName:function(e,t){var n=data.getNodeTitle(e,t),r=$$(t,consts.id.SPAN,e);r.empty(),e.view.nameIsHTML?r.html(data.getNodeName(e,t)):r.text(data.getNodeName(e,t)),tools.apply(e.view.showTitle,[e.treeId,t],e.view.showTitle)&&$$(t,consts.id.A,e).attr("title",n||"")},setNodeTarget:function(e,t){$$(t,consts.id.A,e).attr("target",view.makeNodeTarget(t))},setNodeUrl:function(e,t){var n=$$(t,consts.id.A,e),r=view.makeNodeUrl(e,t);null==r||0==r.length?n.removeAttr("href"):n.attr("href",r)},switchNode:function(e,t){if(t.open||!tools.canAsync(e,t))view.expandCollapseNode(e,t,!t.open);else if(e.async.enable){if(!view.asyncNode(e,t))return void view.expandCollapseNode(e,t,!t.open)}else t&&view.expandCollapseNode(e,t,!t.open)}};$.fn.zTree={consts:_consts,_z:{tools:tools,view:view,event:event,data:data},getZTreeObj:function(e){var t=data.getZTreeTools(e);return t||null},destroy:function(e){if(e&&0<e.length)view.destroy(data.getSetting(e));else for(var t in settings)view.destroy(settings[t])},init:function(e,t,n){var s=tools.clone(_setting);$.extend(!0,s,t),s.treeId=e.attr("id"),s.treeObj=e,s.treeObj.empty(),settings[s.treeId]=s,"undefined"==typeof document.body.style.maxHeight&&(s.view.expandSpeed=""),data.initRoot(s);var r=data.getRoot(s),i=s.data.key.children;n=n?tools.clone(tools.isArray(n)?n:[n]):[],s.data.simpleData.enable?r[i]=data.transformTozTreeFormat(s,n):r[i]=n,data.initCache(s),event.unbindTree(s),event.bindTree(s),event.unbindEvent(s),event.bindEvent(s);var a={setting:s,addNodes:function(e,t,n){if(!t)return null;if((e=e||null)&&!e.isParent&&s.data.keep.leaf)return null;var r=tools.clone(tools.isArray(t)?t:[t]);function i(){view.addNodes(s,e,r,1==n)}return tools.canAsync(s,e)?view.asyncNode(s,e,n,i):i(),r},cancelSelectedNode:function(e){view.cancelPreSelectedNode(s,e)},destroy:function(){view.destroy(s)},expandAll:function(e){return e=!!e,view.expandCollapseSonNode(s,null,e,!0),e},expandNode:function(t,e,n,r,i){if(!t||!t.isParent)return null;if(!0!==e&&!1!==e&&(e=!t.open),(i=!!i)&&e&&0==tools.apply(s.callback.beforeExpand,[s.treeId,t],!0))return null;if(i&&!e&&0==tools.apply(s.callback.beforeCollapse,[s.treeId,t],!0))return null;if(e&&t.parentTId&&view.expandCollapseParentNode(s,t.getParentNode(),e,!1),e===t.open&&!n)return null;if(data.getRoot(s).expandTriggerFlag=i,!tools.canAsync(s,t)&&n)view.expandCollapseSonNode(s,t,e,!0,function(){if(!1!==r)try{$$(t,s).focus().blur()}catch(e){}});else if(t.open=!e,view.switchNode(this.setting,t),!1!==r)try{$$(t,s).focus().blur()}catch(a){}return e},getNodes:function(){return data.getNodes(s)},getNodeByParam:function(e,t,n){return e?data.getNodeByParam(s,n?n[s.data.key.children]:data.getNodes(s),e,t):null},getNodeByTId:function(e){return data.getNodeCache(s,e)},getNodesByParam:function(e,t,n){return e?data.getNodesByParam(s,n?n[s.data.key.children]:data.getNodes(s),e,t):null},getNodesByParamFuzzy:function(e,t,n){return e?data.getNodesByParamFuzzy(s,n?n[s.data.key.children]:data.getNodes(s),e,t):null},getNodesByFilter:function(e,t,n,r){return t=!!t,e&&"function"==typeof e?data.getNodesByFilter(s,n?n[s.data.key.children]:data.getNodes(s),e,t,r):t?null:[]},getNodeIndex:function(e){if(!e)return null;for(var t=s.data.key.children,n=e.parentTId?e.getParentNode():data.getRoot(s),r=0,i=n[t].length;r<i;r++)if(n[t][r]==e)return r;return-1},getSelectedNodes:function(){for(var e=[],t=data.getRoot(s).curSelectedList,n=0,r=t.length;n<r;n++)e.push(t[n]);return e},isSelectedNode:function(e){return data.isSelectedNode(s,e)},reAsyncChildNodes:function(e,t,n){if(this.setting.async.enable){var r=!e;if(r&&(e=data.getRoot(s)),"refresh"==t){for(var i=this.setting.data.key.children,a=0,o=e[i]?e[i].length:0;a<o;a++)data.removeNodeCache(s,e[i][a]);data.removeSelectedNode(s),e[i]=[],r?this.setting.treeObj.empty():$$(e,consts.id.UL,s).empty()}view.asyncNode(this.setting,r?null:e,!!n)}},refresh:function(){this.setting.treeObj.empty();var e=data.getRoot(s),t=e[s.data.key.children];data.initRoot(s),e[s.data.key.children]=t,data.initCache(s),view.createNodes(s,0,e[s.data.key.children])},removeChildNodes:function(e){if(!e)return null;var t=e[s.data.key.children];return view.removeChildNodes(s,e),t||null},removeNode:function(e,t){e&&((t=!!t)&&0==tools.apply(s.callback.beforeRemove,[s.treeId,e],!0)||(view.removeNode(s,e),t&&this.setting.treeObj.trigger(consts.event.REMOVE,[s.treeId,e])))},selectNode:function(t,e){if(t&&tools.uCanDo(s)){if(e=s.view.selectedMulti&&e,t.parentTId)view.expandCollapseParentNode(s,t.getParentNode(),!0,!1,function(){try{$$(t,s).focus().blur()}catch(e){}});else try{$$(t,s).focus().blur()}catch(n){}view.selectNode(s,t,e)}},transformTozTreeNodes:function(e){return data.transformTozTreeFormat(s,e)},transformToArray:function(e){return data.transformToArrayFormat(s,e)},updateNode:function(e,t){e&&$$(e,s).get(0)&&tools.uCanDo(s)&&(view.setNodeName(s,e),view.setNodeTarget(s,e),view.setNodeUrl(s,e),view.setNodeLineIcos(s,e),view.setNodeFontCss(s,e))}};return r.treeTools=a,data.setZTreeTools(s,a),r[i]&&0<r[i].length?view.createNodes(s,0,r[i]):s.async.enable&&s.async.url&&""!==s.async.url&&view.asyncNode(s),a}};var zt=$.fn.zTree,$$=tools.$,consts=zt.consts}(BI.jQuery)},function(e,t){!function(e){var t={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},n={check:{enable:!1,autoCheckTrigger:!1,chkStyle:t.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:t.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}},s={onCheckNode:function(e,t){if(!0===t.chkDisabled)return!1;var n=f.getSetting(e.data.treeId),r=n.data.key.checked;if(0==c.apply(n.callback.beforeCheck,[n.treeId,t],!0))return!0;t[r]=!t[r],p.checkNodeRelation(n,t);var i=_(t,d.id.CHECK,n);return p.setChkClass(n,i,t),p.repairParentChkClassWithSelf(n,t),n.treeObj.trigger(d.event.CHECK,[e,n.treeId,t]),!0},onMouseoverCheck:function(e,t){if(!0===t.chkDisabled)return!1;var n=f.getSetting(e.data.treeId),r=_(t,d.id.CHECK,n);return t.check_Focus=!0,p.setChkClass(n,r,t),!0},onMouseoutCheck:function(e,t){if(!0===t.chkDisabled)return!1;var n=f.getSetting(e.data.treeId),r=_(t,d.id.CHECK,n);return t.check_Focus=!1,p.setChkClass(n,r,t),!0}},r={tools:{},view:{checkNodeRelation:function(e,t){var n,r=e.data.key.children,i=e.data.key.checked,a=d.radio;if(e.check.chkStyle==a.STYLE){var o=f.getRadioCheckedList(e);if(t[i])if(e.check.radioType==a.TYPE_ALL){for(c=o.length-1;0<=c;c--)(n=o[c])[i]&&n!=t&&(n[i]=!1,o.splice(c,1),p.setChkClass(e,_(n,d.id.CHECK,e),n),n.parentTId!=t.parentTId&&p.repairParentChkClassWithSelf(e,n));o.push(t)}else for(var s=t.parentTId?t.getParentNode():f.getRoot(e),c=0,u=s[r].length;c<u;c++)(n=s[r][c])[i]&&n!=t&&(n[i]=!1,p.setChkClass(e,_(n,d.id.CHECK,e),n));else if(e.check.radioType==a.TYPE_ALL)for(c=0,u=o.length;c<u;c++)if(t==o[c]){o.splice(c,1);break}}else t[i]&&(!t[r]||0==t[r].length||-1<e.check.chkboxType.Y.indexOf("s"))&&p.setSonNodeCheckBox(e,t,!0),t[i]||t[r]&&0!=t[r].length&&!(-1<e.check.chkboxType.N.indexOf("s"))||p.setSonNodeCheckBox(e,t,!1),t[i]&&-1<e.check.chkboxType.Y.indexOf("p")&&p.setParentNodeCheckBox(e,t,!0),!t[i]&&-1<e.check.chkboxType.N.indexOf("p")&&p.setParentNodeCheckBox(e,t,!1)},makeChkClass:function(e,t){var n=e.data.key.checked,r=d.checkbox,i=d.radio,a=e.check.chkboxType,o=""===a.Y&&""===a.N;fullStyle="",fullStyle=!0===t.chkDisabled?r.DISABLED:t.halfCheck?r.PART:e.check.chkStyle==i.STYLE?t.check_Child_State<1?r.FULL:r.PART:t[n]?2===t.check_Child_State||-1===t.check_Child_State||o?r.FULL:r.PART:t.check_Child_State<1||o?r.FULL:r.PART;var s=e.check.chkStyle+"_"+(t[n]?r.TRUE:r.FALSE)+"_"+fullStyle,s=t.check_Focus&&!0!==t.chkDisabled?s+"_"+r.FOCUS:s;return d.className.BUTTON+" "+r.DEFAULT+" "+s},repairAllChk:function(e,t){if(e.check.enable&&e.check.chkStyle===d.checkbox.STYLE)for(var n=e.data.key.checked,r=e.data.key.children,i=f.getRoot(e),a=0,o=i[r].length;a<o;a++){var s=i[r][a];!0!==s.nocheck&&!0!==s.chkDisabled&&(s[n]=t),p.setSonNodeCheckBox(e,s,t)}},repairChkClass:function(e,t){var n;t&&(f.makeChkFlag(e,t),!0!==t.nocheck&&(n=_(t,d.id.CHECK,e),p.setChkClass(e,n,t)))},repairParentChkClass:function(e,t){var n;t&&t.parentTId&&(n=t.getParentNode(),p.repairChkClass(e,n),p.repairParentChkClass(e,n))},repairParentChkClassWithSelf:function(e,t){var n;t&&(t[n=e.data.key.children]&&0<t[n].length?p.repairParentChkClass(e,t[n][0]):p.repairParentChkClass(e,t))},repairSonChkDisabled:function(e,t,n,r){if(t){var i=e.data.key.children;if(t.chkDisabled!=n&&(t.chkDisabled=n),p.repairChkClass(e,t),t[i]&&r)for(var a=0,o=t[i].length;a<o;a++){var s=t[i][a];p.repairSonChkDisabled(e,s,n,r)}}},repairParentChkDisabled:function(e,t,n,r){t&&(t.chkDisabled!=n&&r&&(t.chkDisabled=n),p.repairChkClass(e,t),p.repairParentChkDisabled(e,t.getParentNode(),n,r))},setChkClass:function(e,t,n){t&&(!0===n.nocheck?t.hide():t.show(),t.attr("class",p.makeChkClass(e,n)))},setParentNodeCheckBox:function(e,t,n,r){var i=e.data.key.children,a=e.data.key.checked,o=_(t,d.id.CHECK,e);if(r=r||t,f.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled&&(t[a]=n,p.setChkClass(e,o,t),e.check.autoCheckTrigger&&t!=r&&e.treeObj.trigger(d.event.CHECK,[null,e.treeId,t])),t.parentTId){var s=!0;if(!n)for(var c=t.getParentNode()[i],u=0,l=c.length;u<l;u++)if(!0!==c[u].nocheck&&!0!==c[u].chkDisabled&&c[u][a]||(!0===c[u].nocheck||!0===c[u].chkDisabled)&&0<c[u].check_Child_State){s=!1;break}s&&p.setParentNodeCheckBox(e,t.getParentNode(),n,r)}},setSonNodeCheckBox:function(e,t,n,r){if(t){var i=e.data.key.children,a=e.data.key.checked,o=_(t,d.id.CHECK,e);r=r||t;var s=!1;if(t[i])for(var c=0,u=t[i].length;c<u&&!0!==t.chkDisabled;c++){var l=t[i][c];p.setSonNodeCheckBox(e,l,n,r),!0===l.chkDisabled&&(s=!0)}t!=f.getRoot(e)&&!0!==t.chkDisabled&&(s&&!0!==t.nocheck&&f.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled?(t[a]=n,s||(t.check_Child_State=t[i]&&0<t[i].length?n?2:0:-1)):t.check_Child_State=-1,p.setChkClass(e,o,t),e.check.autoCheckTrigger&&t!=r&&!0!==t.nocheck&&!0!==t.chkDisabled&&e.treeObj.trigger(d.event.CHECK,[null,e.treeId,t]))}}},event:{},data:{getRadioCheckedList:function(e){for(var t=f.getRoot(e).radioCheckedList,n=0,r=t.length;n<r;n++)f.getNodeCache(e,t[n].tId)||(t.splice(n,1),n--,r--);return t},getCheckStatus:function(e,t){if(!e.check.enable||t.nocheck||t.chkDisabled)return null;var n=e.data.key.checked;return{checked:t[n],half:t.halfCheck?t.halfCheck:e.check.chkStyle==d.radio.STYLE?2===t.check_Child_State:t[n]?-1<t.check_Child_State&&t.check_Child_State<2:0<t.check_Child_State}},getTreeCheckedNodes:function(e,t,n,r){if(!t)return[];var i=e.data.key.children,a=e.data.key.checked,o=n&&e.check.chkStyle==d.radio.STYLE&&e.check.radioType==d.radio.TYPE_ALL;r=r||[];for(var s=0,c=t.length;s<c&&(!0===t[s].nocheck||!0===t[s].chkDisabled||t[s][a]!=n||(r.push(t[s]),!o))&&(f.getTreeCheckedNodes(e,t[s][i],n,r),!(o&&0<r.length));s++);return r},getTreeChangeCheckedNodes:function(e,t,n){if(!t)return[];var r=e.data.key.children,i=e.data.key.checked;n=n||[];for(var a=0,o=t.length;a<o;a++)!0!==t[a].nocheck&&!0!==t[a].chkDisabled&&t[a][i]!=t[a].checkedOld&&n.push(t[a]),f.getTreeChangeCheckedNodes(e,t[a][r],n);return n},makeChkFlag:function(e,t){if(t){var n=e.data.key.children,r=e.data.key.checked,i=-1;if(t[n])for(var a=0,o=t[n].length;a<o;a++){var s=t[n][a],c=-1;if(e.check.chkStyle==d.radio.STYLE){if(2==(c=!0===s.nocheck||!0===s.chkDisabled?s.check_Child_State:!0===s.halfCheck||s[r]||0<s.check_Child_State?2:0)){i=2;break}0==c&&(i=0)}else if(e.check.chkStyle==d.checkbox.STYLE){if(1===(c=!0===s.nocheck||!0===s.chkDisabled?s.check_Child_State:!0===s.halfCheck?1:s[r]?-1===s.check_Child_State||2===s.check_Child_State?2:1:0<s.check_Child_State?1:0)){i=1;break}if(2===c&&-1<i&&0<a&&c!==i){i=1;break}if(2===i&&-1<c&&c<2){i=1;break}-1<c&&(i=c)}}t.check_Child_State=i}}}};e.extend(!0,e.fn.zTree.consts,t),e.extend(!0,e.fn.zTree._z,r);var i=e.fn.zTree,c=i._z.tools,d=i.consts,p=i._z.view,f=i._z.data,_=(i._z.event,c.$);f.exSetting(n),f.addInitBind(function(i){var e=i.treeObj,t=d.event;e.bind(t.CHECK,function(e,t,n,r){e.srcEvent=t,c.apply(i.callback.onCheck,[e,n,r])})}),f.addInitUnBind(function(e){var t=e.treeObj,n=d.event;t.unbind(n.CHECK)}),f.addInitCache(function(e){}),f.addInitNode(function(e,t,n,r,i,a,o){var s;n&&(s=e.data.key.checked,"string"==typeof n[s]&&(n[s]=c.eqs(n[s],"true")),n[s]=!!n[s],n.checkedOld=n[s],"string"==typeof n.nocheck&&(n.nocheck=c.eqs(n.nocheck,"true")),n.nocheck=!!n.nocheck||e.check.nocheckInherit&&r&&!!r.nocheck,"string"==typeof n.chkDisabled&&(n.chkDisabled=c.eqs(n.chkDisabled,"true")),n.chkDisabled=!!n.chkDisabled||e.check.chkDisabledInherit&&r&&!!r.chkDisabled,"string"==typeof n.halfCheck&&(n.halfCheck=c.eqs(n.halfCheck,"true")),n.halfCheck=!!n.halfCheck,n.check_Child_State=-1,n.check_Focus=!1,n.getCheckStatus=function(){return f.getCheckStatus(e,n)},e.check.chkStyle==d.radio.STYLE&&e.check.radioType==d.radio.TYPE_ALL&&n[s]&&f.getRoot(e).radioCheckedList.push(n))}),f.addInitProxy(function(e){var t=e.target,n=f.getSetting(e.data.treeId),r="",i=null,a="",o=null;if(c.eqs(e.type,"mouseover")?n.check.enable&&c.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+d.id.CHECK)&&(r=c.getNodeMainDom(t).id,a="mouseoverCheck"):c.eqs(e.type,"mouseout")?n.check.enable&&c.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+d.id.CHECK)&&(r=c.getNodeMainDom(t).id,a="mouseoutCheck"):c.eqs(e.type,"click")&&n.check.enable&&c.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+d.id.CHECK)&&(r=c.getNodeMainDom(t).id,a="checkNode"),0<r.length)switch(i=f.getNodeCache(n,r),a){case"checkNode":o=s.onCheckNode;break;case"mouseoverCheck":o=s.onMouseoverCheck;break;case"mouseoutCheck":o=s.onMouseoutCheck}return{stop:"checkNode"===a,node:i,nodeEventType:a,nodeEventCallback:o,treeEventType:"",treeEventCallback:null}},!0),f.addInitRoot(function(e){f.getRoot(e).radioCheckedList=[]}),f.addBeforeA(function(e,t,n){e.data.key.checked;e.check.enable&&(f.makeChkFlag(e,t),n.push("<span ID='",t.tId,d.id.CHECK,"' class='",p.makeChkClass(e,t),"' treeNode",d.id.CHECK,!0===t.nocheck?" style='display:none;'":"","></span>"))}),f.addZTreeTools(function(e,r){r.checkNode=function(e,t,n,r){var i,a=this.setting.data.key.checked;!0!==e.chkDisabled&&(!0!==t&&!1!==t&&(t=!e[a]),r=!!r,e[a]===t&&!n||r&&0==c.apply(this.setting.callback.beforeCheck,[this.setting.treeId,e],!0)||c.uCanDo(this.setting)&&this.setting.check.enable&&!0!==e.nocheck&&(e[a]=t,i=_(e,d.id.CHECK,this.setting),!n&&this.setting.check.chkStyle!==d.radio.STYLE||p.checkNodeRelation(this.setting,e),p.setChkClass(this.setting,i,e),p.repairParentChkClassWithSelf(this.setting,e),r&&this.setting.treeObj.trigger(d.event.CHECK,[null,this.setting.treeId,e])))},r.checkAllNodes=function(e){p.repairAllChk(this.setting,!!e)},r.getCheckedNodes=function(e){var t=this.setting.data.key.children;return e=!1!==e,f.getTreeCheckedNodes(this.setting,f.getRoot(this.setting)[t],e)},r.getChangeCheckedNodes=function(){var e=this.setting.data.key.children;return f.getTreeChangeCheckedNodes(this.setting,f.getRoot(this.setting)[e])},r.setChkDisabled=function(e,t,n,r){t=!!t,n=!!n,r=!!r,p.repairSonChkDisabled(this.setting,e,t,r),p.repairParentChkDisabled(this.setting,e.getParentNode(),t,n)};var i=r.updateNode;r.updateNode=function(e,t){var n;i&&i.apply(r,arguments),e&&this.setting.check.enable&&_(e,this.setting).get(0)&&c.uCanDo(this.setting)&&(n=_(e,d.id.CHECK,this.setting),1!=t&&this.setting.check.chkStyle!==d.radio.STYLE||p.checkNodeRelation(this.setting,e),p.setChkClass(this.setting,n,e),p.repairParentChkClassWithSelf(this.setting,e))}});var a=p.createNodes;p.createNodes=function(e,t,n,r){a&&a.apply(p,arguments),n&&p.repairParentChkClassWithSelf(e,r)};var o=p.removeNode;p.removeNode=function(e,t){var n=t.getParentNode();o&&o.apply(p,arguments),t&&n&&(p.repairChkClass(e,n),p.repairParentChkClass(e,n))};var u=p.appendNodes;p.appendNodes=function(e,t,n,r,i,a){var o="";return u&&(o=u.apply(p,arguments)),r&&f.makeChkFlag(e,r),o}}(BI.jQuery)},function(e,t){BI.TreeRenderScrollService=BI.inherit(BI.OB,{_init:function(){this.nodeLists={},this.id=this.options.id,this.hasBinded=!1,this.container=this.options.container},_getNodeListBounds:function(e){var t=this.options.subNodeListGetter(e)[0];return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}},_getTreeContainerBounds:function(){var e=this.container[0];return BI.isNotNull(e)?{top:e.offsetTop+e.scrollTop,left:e.offsetLeft+e.scrollLeft,width:e.offsetWidth,height:e.offsetHeight}:{}},_canNodePopulate:function(e){if(this.nodeLists[e].locked)return!1;var t=this._getNodeListBounds(e),n=this._getTreeContainerBounds(e);return t.top+t.height<n.top+n.height},_isNodeInVisible:function(e){var t=this.options.subNodeListGetter(e);return 0===t.length||"none"===t.css("display")},pushNodeList:function(e,t){var n=this;BI.has(this.nodeLists,e)?this.nodeLists[e].locked=!1:this.nodeLists[e]={populate:BI.debounce(t,0),options:{times:1},locked:!1},this.hasBinded||(this.hasBinded=!0,this.container&&this.container.on("scroll",BI.debounce(function(){n.refreshAllNodes()},30)))},refreshAllNodes:function(){var t=this;BI.each(this.nodeLists,function(e){t._isNodeInVisible(e)||t.refreshNodes(e)})},refreshNodes:function(e){var t;this._canNodePopulate(e)&&((t=this.nodeLists[e]).options.times++,t.locked=!0,t.populate({times:t.options.times}))},removeNodeList:function(e){delete this.nodeLists[e],0===BI.size(this.nodeLists)&&this.clear()},clear:function(){var t=this;BI.each(this.nodeLists,function(e){t.removeNodeList(e)}),this.nodeLists={},this.container.off("scroll"),this.hasBinded=!1}})},function(e,t){BI.TreeRenderPageService=BI.inherit(BI.OB,{_init:function(){this.nodeLists={}},_getLoadingBar:function(e){var t=this,n=BI.createWidget({type:"bi.loading_bar",height:25,handler:function(){t.refreshNodes(e)}});return n.setLoaded(),n},pushNodeList:function(e,t){var n=this.options,r=this._getLoadingBar(e);BI.has(this.nodeLists,e)?(this.nodeLists[e].loadWidget.destroy(),this.nodeLists[e].loadWidget=r):this.nodeLists[e]={populate:BI.debounce(t,0),options:{times:1},loadWidget:r},BI.createWidget({type:"bi.vertical",element:n.subNodeListGetter(e),items:[r]})},refreshNodes:function(e){var t=this.nodeLists[e];t.options.times++,t.loadWidget.setLoading(),t.populate({times:t.options.times})},removeNodeList:function(e){this.nodeLists[e]&&this.nodeLists[e].loadWidget.destroy(),this.nodeLists[e]&&(this.nodeLists[e].loadWidget=null),delete this.nodeLists[e],0===BI.size(this.nodeLists)&&this.clear()},clear:function(){var t=this;BI.each(this.nodeLists,function(e){t.removeNodeList(e)}),this.nodeLists={}}})},function(e,t){BI.CustomColorChooser=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.CustomColorChooser.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-custom-color-chooser",width:292,height:265})},_init:function(){BI.CustomColorChooser.superclass._init.apply(this,arguments);var e=this,t=this.options;this.editor=BI.createWidget(t.editor,{type:"bi.simple_hex_color_picker_editor"}),this.editor.on(BI.ColorPickerEditor.EVENT_CHANGE,function(){e.setValue(this.getValue())}),this.farbtastic=BI.createWidget({type:"bi.farbtastic"}),this.farbtastic.on(BI.Farbtastic.EVENT_CHANGE,function(){e.setValue(this.getValue())}),BI.createWidget({type:"bi.vtape",element:this,items:[{type:"bi.absolute",items:[{el:this.editor,left:0,top:0,right:0}],height:50},{type:"bi.absolute",items:[{el:this.farbtastic,left:46,right:46,top:7}],height:215}]})},setValue:function(e){this.editor.setValue(e),this.farbtastic.setValue(e)},getValue:function(){return this.editor.getValue()}}),BI.CustomColorChooser.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.custom_color_chooser",BI.CustomColorChooser)},function(e,t){BI.ColorChooser=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.ColorChooser.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-color-chooser",value:"",height:24,el:{}})},_init:function(){BI.ColorChooser.superclass._init.apply(this,arguments);var t=this,e=this.options;e.value=e.value||"",this.combo=BI.createWidget({type:"bi.combo",element:this,container:e.container,adjustLength:1,isNeedAdjustWidth:!1,isNeedAdjustHeight:!1,el:BI.extend({type:e.width<=24?"bi.color_chooser_trigger":"bi.long_color_chooser_trigger",ref:function(e){t.trigger=e},width:e.el.type?e.width:e.width-2,height:e.el.type?e.height:e.height-2},e.el),popup:{el:BI.extend({type:"bi.hex_color_chooser_popup",ref:function(e){t.colorPicker=e},listeners:[{eventName:BI.ColorChooserPopup.EVENT_VALUE_CHANGE,action:function(){n(),t._isRGBColor(t.colorPicker.getValue())||t.combo.hideView()}},{eventName:BI.ColorChooserPopup.EVENT_CHANGE,action:function(){n(),t.combo.hideView()}}]},e.popup),value:e.value,width:292},value:e.value});var n=function(){var e=t.colorPicker.getValue();t.trigger.setValue(e)};this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW,function(){t.fireEvent(BI.ColorChooser.EVENT_CHANGE,arguments)})},_isRGBColor:function(e){return BI.isNotEmptyString(e)&&"transparent"!==e},isViewVisible:function(){return this.combo.isViewVisible()},hideView:function(){this.combo.hideView()},showView:function(){this.combo.showView()},setValue:function(e){this.combo.setValue(e||"")},getValue:function(){return this.combo.getValue()}}),BI.ColorChooser.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.color_chooser",BI.ColorChooser)},function(e,t){BI.HexColorChooserPopup=BI.inherit(BI.Widget,{props:{baseCls:"bi-color-chooser-popup",width:292,height:195,simple:!1},render:function(){var n=this,e=this.options;return{type:"bi.absolute",items:[{el:{type:"bi.vtape",items:[{el:BI.extend({type:e.simple?"bi.simple_hex_color_picker_editor":"bi.hex_color_picker_editor",value:e.value,height:30,listeners:[{eventName:BI.ColorPickerEditor.EVENT_CHANGE,action:function(){n.setValue(this.getValue()),n._dealStoreColors(),n.fireEvent(BI.ColorChooserPopup.EVENT_VALUE_CHANGE,arguments)}}],ref:function(e){n.colorEditor=e}},e.editor),height:50},{el:{type:"bi.absolute",items:[{el:{type:"bi.color_picker",cls:"bi-border-bottom bi-border-right",items:[this._digestStoreColors(this._getStoreColors())],height:34,value:e.value,listeners:[{eventName:BI.ColorPicker.EVENT_CHANGE,action:function(){n.setValue(this.getValue()[0]),n._dealStoreColors(),n.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE,arguments)}}],ref:function(e){n.storeColors=e}},left:10,right:10,top:5}]},height:38},{el:{type:"bi.absolute",items:[{el:{type:"bi.color_picker",value:e.value,listeners:[{eventName:BI.ColorPicker.EVENT_CHANGE,action:function(){n.setValue(this.getValue()[0]),n._dealStoreColors(),n.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE,arguments)}}],ref:function(e){n.colorPicker=e}},left:10,right:10,top:5,bottom:10}]}},{el:{type:"bi.combo",cls:"bi-border-top",container:null,direction:"right,top",isNeedAdjustHeight:!1,el:{type:"bi.text_item",cls:"color-chooser-popup-more bi-list-item",textAlign:"center",height:24,textLgap:10,text:BI.i18nText("BI-Basic_More")+"..."},popup:{type:"bi.popup_panel",buttons:[BI.i18nText("BI-Basic_Cancel"),BI.i18nText("BI-Basic_Save")],title:BI.i18nText("BI-Custom_Color"),el:{type:"bi.custom_color_chooser",editor:e.editor,ref:function(e){n.customColorChooser=e}},stopPropagation:!1,bgap:-1,rgap:1,lgap:1,minWidth:227,listeners:[{eventName:BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON,action:function(e){switch(e){case 0:n.more.hideView();break;case 1:var t=n.customColorChooser.getValue();BI.isNotEmptyString(t)&&(n.setValue(t),n._dealStoreColors()),n.more.hideView(),n.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE,arguments)}}}]},listeners:[{eventName:BI.Combo.EVENT_AFTER_POPUPVIEW,action:function(){n.customColorChooser.setValue(n.getValue())}}],ref:function(e){n.more=e}},height:24}]},left:0,right:0,top:0,bottom:0},{el:{type:"bi.layout",cls:"disable-mask",invisible:!e.disabled,ref:function(){n.mask=this}},left:0,right:0,top:0,bottom:0}]}},mounted:function(){var e=this.options;BI.isNotNull(e.value)&&this.setValue(e.value)},_setEnable:function(e){BI.ColorChooserPopup.superclass._setEnable.apply(this,arguments),this.mask.setVisible(!e)},_dealStoreColors:function(){var e=this.getValue(),t=this._getStoreColors(),n=new BI.Queue(8);n.fromArray(t),n.remove(e),n.unshift(e);var r=n.toArray();BI.Cache.setItem("colors",BI.array2String(r)),this.setStoreColors(r)},_digestStoreColors:function(e){var t=BI.map(e,function(e,t){return{value:t}});return BI.count(e.length,8,function(e){t.push({value:"",disabled:!0})}),t},_getStoreColors:function(){var n=this,r=this.options,e=BI.string2Array(BI.Cache.getItem("colors")||"");return BI.filter(e,function(e,t){return!r.simple||n._isRGBColor(t)})},_isRGBColor:function(e){return BI.isNotEmptyString(e)&&"transparent"!==e},setStoreColors:function(e){BI.isArray(e)&&(this.storeColors.populate([this._digestStoreColors(e)]),this.storeColors.setValue(this.getValue()))},setValue:function(e){this.colorEditor.setValue(e),this.colorPicker.setValue(e),this.storeColors.setValue(e)},getValue:function(){return this.colorEditor.getValue()}}),BI.HexColorChooserPopup.EVENT_VALUE_CHANGE="EVENT_VALUE_CHANGE",BI.HexColorChooserPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.hex_color_chooser_popup",BI.HexColorChooserPopup)},function(e,t){BI.SimpleHexColorChooserPopup=BI.inherit(BI.Widget,{props:{baseCls:"bi-color-chooser-popup"},render:function(){var t=this;return{type:"bi.hex_color_chooser_popup",value:this.options.value,simple:!0,listeners:[{eventName:BI.ColorChooserPopup.EVENT_CHANGE,action:function(){t.fireEvent(BI.SimpleColorChooserPopup.EVENT_CHANGE,arguments)}},{eventName:BI.ColorChooserPopup.EVENT_VALUE_CHANGE,action:function(){t.fireEvent(BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE,arguments)}}],ref:function(e){t.popup=e}}},setStoreColors:function(e){this.popup.setStoreColors(e)},setValue:function(e){this.popup.setValue(e)},getValue:function(){return this.popup.getValue()}}),BI.SimpleHexColorChooserPopup.EVENT_VALUE_CHANGE="EVENT_VALUE_CHANGE",BI.SimpleHexColorChooserPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.simple_hex_color_chooser_popup",BI.SimpleHexColorChooserPopup)},function(e,t){BI.ColorChooserPopup=BI.inherit(BI.Widget,{props:{baseCls:"bi-color-chooser-popup",width:230,height:145,simple:!1},render:function(){var t=this,e=this.options;this.colorEditor=BI.createWidget(e.editor,{type:e.simple?"bi.simple_color_picker_editor":"bi.color_picker_editor",value:e.value,cls:"bi-header-background bi-border-bottom",height:30}),this.colorEditor.on(BI.ColorPickerEditor.EVENT_CHANGE,function(){t.setValue(this.getValue()),t._dealStoreColors(),t.fireEvent(BI.ColorChooserPopup.EVENT_VALUE_CHANGE,arguments)}),this.storeColors=BI.createWidget({type:"bi.color_picker",cls:"bi-border-bottom bi-border-right",items:[this._digestStoreColors(this._getStoreColors())],width:210,height:24,value:e.value}),this.storeColors.on(BI.ColorPicker.EVENT_CHANGE,function(){t.setValue(this.getValue()[0]),t._dealStoreColors(),t.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE,arguments)}),this.colorPicker=BI.createWidget({type:"bi.color_picker",width:210,height:50,value:e.value}),this.colorPicker.on(BI.ColorPicker.EVENT_CHANGE,function(){t.setValue(this.getValue()[0]),t._dealStoreColors(),t.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE,arguments)}),this.customColorChooser=BI.createWidget({type:"bi.custom_color_chooser",editor:e.editor});var n=BI.createWidget({type:"bi.popup_panel",buttons:[BI.i18nText("BI-Basic_Cancel"),BI.i18nText("BI-Basic_Save")],title:BI.i18nText("BI-Custom_Color"),el:this.customColorChooser,stopPropagation:!1,bgap:-1,rgap:1,lgap:1,minWidth:227});return this.more=BI.createWidget({type:"bi.combo",cls:"bi-border-top",container:null,direction:"right,top",isNeedAdjustHeight:!1,el:{type:"bi.text_item",cls:"color-chooser-popup-more bi-list-item",textAlign:"center",height:24,textLgap:10,text:BI.i18nText("BI-Basic_More")+"..."},popup:n}),this.more.on(BI.Combo.EVENT_AFTER_POPUPVIEW,function(){t.customColorChooser.setValue(t.getValue())}),n.on(BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON,function(e){switch(e){case 0:t.more.hideView();break;case 1:t.setValue(t.customColorChooser.getValue()),t._dealStoreColors(),t.more.hideView(),t.fireEvent(BI.ColorChooserPopup.EVENT_CHANGE,arguments)}}),{type:"bi.absolute",items:[{el:{type:"bi.vtape",items:[this.colorEditor,{el:{type:"bi.absolute",items:[{el:this.storeColors,left:10,right:10,top:5}]},height:29},{el:{type:"bi.absolute",items:[{el:this.colorPicker,left:10,right:10,top:5,bottom:5}]},height:60},{el:this.more,height:24}]},left:0,right:0,top:0,bottom:0},{el:{type:"bi.layout",cls:"disable-mask",invisible:!e.disabled,ref:function(){t.mask=this}},left:0,right:0,top:0,bottom:0}]}},mounted:function(){var e=this.options;BI.isNotNull(e.value)&&this.setValue(e.value)},_setEnable:function(e){BI.ColorChooserPopup.superclass._setEnable.apply(this,arguments),this.mask.setVisible(!e)},_dealStoreColors:function(){var e=this.getValue(),t=this._getStoreColors(),n=new BI.Queue(8);n.fromArray(t),n.remove(e),n.unshift(e);var r=n.toArray();BI.Cache.setItem("colors",BI.array2String(r)),this.setStoreColors(r)},_digestStoreColors:function(e){var t=BI.map(e,function(e,t){return{value:t}});return BI.count(e.length,8,function(e){t.push({value:"",disabled:!0})}),t},_getStoreColors:function(){var n=this,r=this.options,e=BI.string2Array(BI.Cache.getItem("colors")||"");return BI.filter(e,function(e,t){return!r.simple||n._isRGBColor(t)})},_isRGBColor:function(e){return BI.isNotEmptyString(e)&&"transparent"!==e},setStoreColors:function(e){BI.isArray(e)&&(this.storeColors.populate([this._digestStoreColors(e)]),this.storeColors.setValue(this.getValue()))},setValue:function(e){this.colorEditor.setValue(e),this.colorPicker.setValue(e),this.storeColors.setValue(e)},getValue:function(){return this.colorEditor.getValue()}}),BI.ColorChooserPopup.EVENT_VALUE_CHANGE="EVENT_VALUE_CHANGE",BI.ColorChooserPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.color_chooser_popup",BI.ColorChooserPopup)},function(e,t){BI.SimpleColorChooserPopup=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SimpleColorChooserPopup.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-color-chooser-popup"})},_init:function(){BI.SimpleColorChooserPopup.superclass._init.apply(this,arguments);var e=this,t=this.options;this.popup=BI.createWidget({type:t.hex?"bi.hex_color_chooser_popup":"bi.color_chooser_popup",value:t.value,element:this,simple:!0}),this.popup.on(BI.ColorChooserPopup.EVENT_CHANGE,function(){e.fireEvent(BI.SimpleColorChooserPopup.EVENT_CHANGE,arguments)}),this.popup.on(BI.ColorChooserPopup.EVENT_VALUE_CHANGE,function(){e.fireEvent(BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE,arguments)})},setStoreColors:function(e){this.popup.setStoreColors(e)},setValue:function(e){this.popup.setValue(e)},getValue:function(){return this.popup.getValue()}}),BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE="EVENT_VALUE_CHANGE",BI.SimpleColorChooserPopup.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.simple_color_chooser_popup",BI.SimpleColorChooserPopup)},function(e,t){BI.SimpleColorChooser=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SimpleColorChooser.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-simple-color-chooser",value:"#ffffff"})},_init:function(){BI.SimpleColorChooser.superclass._init.apply(this,arguments);var e=this,t=this.options;this.combo=BI.createWidget({type:"bi.color_chooser",element:this,container:t.container,value:t.value,width:t.width,height:t.height,popup:{type:"bi.simple_hex_color_chooser_popup"}}),this.combo.on(BI.ColorChooser.EVENT_CHANGE,function(){e.fireEvent(BI.SimpleColorChooser.EVENT_CHANGE,arguments)})},isViewVisible:function(){return this.combo.isViewVisible()},hideView:function(){this.combo.hideView()},showView:function(){this.combo.showView()},setValue:function(e){this.combo.setValue(e)},getValue:function(){return this.combo.getValue()}}),BI.SimpleColorChooser.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.simple_color_chooser",BI.SimpleColorChooser)},function(e,t){BI.ColorChooserTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){var e=BI.ColorChooserTrigger.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-color-chooser-trigger bi-border",height:22})},_init:function(){BI.ColorChooserTrigger.superclass._init.apply(this,arguments),this.colorContainer=BI.createWidget({type:"bi.layout",cls:"color-chooser-trigger-content"+(BI.isIE9Below&&BI.isIE9Below()?" hack":"")});var e=BI.createWidget({type:"bi.icon_button",disableSelected:!0,cls:"icon-combo-down-icon trigger-triangle-font icon-size-12",width:12,height:8});BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.colorContainer,left:2,right:2,top:2,bottom:2},{el:e,right:-1,bottom:1}]}),BI.isNotNull(this.options.value)&&this.setValue(this.options.value)},setValue:function(e){BI.ColorChooserTrigger.superclass.setValue.apply(this,arguments),""===e?this.colorContainer.element.css("background-color","").removeClass("trans-color-background").addClass("auto-color-background"):"transparent"===e?this.colorContainer.element.css("background-color","").removeClass("auto-color-background").addClass("trans-color-background"):this.colorContainer.element.css({"background-color":e}).removeClass("auto-color-background").removeClass("trans-color-background")}}),BI.ColorChooserTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.color_chooser_trigger",BI.ColorChooserTrigger)},function(e,t){BI.LongColorChooserTrigger=BI.inherit(BI.Trigger,{_defaultConfig:function(){var e=BI.LongColorChooserTrigger.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-color-chooser-trigger bi-border",height:22})},_init:function(){BI.LongColorChooserTrigger.superclass._init.apply(this,arguments);var t=this;this.options;this.colorContainer=BI.createWidget({type:"bi.htape",cls:"color-chooser-trigger-content",items:[{type:"bi.icon_change_button",ref:function(e){t.changeIcon=e},disableSelected:!0,iconCls:"auto-color-icon",width:24,iconWidth:16,iconHeight:16},{el:{type:"bi.label",ref:function(e){t.label=e},textAlign:"left",hgap:5,height:18,text:BI.i18nText("BI-Basic_Auto")}}]});var e=BI.createWidget({type:"bi.icon_button",disableSelected:!0,cls:"icon-combo-down-icon trigger-triangle-font icon-size-12",width:12,height:8});BI.createWidget({type:"bi.absolute",element:this,items:[{el:this.colorContainer,left:2,right:2,top:2,bottom:2},{el:e,right:3,bottom:3}]}),this.options.value&&this.setValue(this.options.value)},setValue:function(e){BI.LongColorChooserTrigger.superclass.setValue.apply(this,arguments),""===e?(this.colorContainer.element.css("background-color",""),this.changeIcon.setVisible(!0),this.label.setVisible(!0),this.changeIcon.setIcon("auto-color-icon"),this.label.setText(BI.i18nText("BI-Basic_Auto"))):"transparent"===e?(this.colorContainer.element.css("background-color",""),this.changeIcon.setVisible(!0),this.label.setVisible(!0),this.changeIcon.setIcon("trans-color-icon"),this.label.setText(BI.i18nText("BI-Transparent_Color"))):(this.colorContainer.element.css({"background-color":e}),this.changeIcon.setVisible(!1),this.label.setVisible(!1))}}),BI.LongColorChooserTrigger.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.long_color_chooser_trigger",BI.LongColorChooserTrigger)},function(e,t){BI.ColorPickerButton=BI.inherit(BI.BasicButton,{_defaultConfig:function(){var e=BI.ColorPickerButton.superclass._defaultConfig.apply(this,arguments);return BI.extend(e,{baseCls:(e.baseCls||"")+" bi-color-picker-button bi-background bi-border-top bi-border-left"})},_init:function(){BI.ColorPickerButton.superclass._init.apply(this,arguments);var e,t=this,n=this.options;n.value&&(this.element.css("background-color",n.value),e=this.getName(),this.element.hover(function(){t._createMask(),t.isEnabled()&&BI.Maskers.show(e)},function(){t.isSelected()||BI.Maskers.hide(e)}))},_createMask:function(){var e=this.options,t=this.getName();this.isEnabled()&&!BI.Maskers.has(t)&&BI.Maskers.make(t,this,{offset:{left:-1,top:-1,right:-1,bottom:-1}}).element.addClass("color-picker-button-mask").css("background-color",e.value)},setSelected:function(e){BI.ColorPickerButton.superclass.setSelected.apply(this,arguments),e&&this._createMask(),BI.Maskers[e?"show":"hide"](this.getName())}}),BI.ColorPickerButton.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.color_picker_button",BI.ColorPickerButton)},function(e,t){BI.ColorPicker=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.ColorPicker.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-color-picker",items:null})},_items:[[{value:"#ffffff"},{value:"#f2f2f2"},{value:"#e5e5e5"},{value:"#d9d9d9"},{value:"#cccccc"},{value:"#bfbfbf"},{value:"#b2b2b2"},{value:"#a6a6a6"},{value:"#999999"},{value:"#8c8c8c"},{value:"#808080"},{value:"#737373"},{value:"#666666"},{value:"#4d4d4d"},{value:"#333333"},{value:"#000000"}],[{value:"#d8b5a6"},{value:"#ff9e9a"},{value:"#ffc17d"},{value:"#f5e56b"},{value:"#d8e698"},{value:"#e0ebaf"},{value:"#c3d825"},{value:"#bbe2e7"},{value:"#85d3cd"},{value:"#bde1e6"},{value:"#a0d8ef"},{value:"#89c3eb"},{value:"#bbc8e6"},{value:"#bbbcde"},{value:"#d6b4cc"},{value:"#fbc0d3"}],[{value:"#bb9581"},{value:"#f37d79"},{value:"#fba74f"},{value:"#ffdb4f"},{value:"#c7dc68"},{value:"#b0ca71"},{value:"#99ab4e"},{value:"#84b9cb"},{value:"#00a3af"},{value:"#2ca9e1"},{value:"#0095d9"},{value:"#4c6cb3"},{value:"#8491c3"},{value:"#a59aca"},{value:"#cc7eb1"},{value:"#e89bb4"}],[{value:"#9d775f"},{value:"#dd4b4b"},{value:"#ef8b07"},{value:"#fcc800"},{value:"#aacf53"},{value:"#82ae46"},{value:"#69821b"},{value:"#59b9c6"},{value:"#2a83a2"},{value:"#007bbb"},{value:"#19448e"},{value:"#274a78"},{value:"#4a488e"},{value:"#7058a3"},{value:"#884898"},{value:"#d47596"}]],_init:function(){BI.ColorPicker.superclass._init.apply(this,arguments);var e=this,t=this.options;this.colors=BI.createWidget({type:"bi.button_group",element:this,items:BI.createItems(t.items||this._items,{type:"bi.color_picker_button",once:!1}),layouts:[{type:"bi.grid"}],value:t.value}),this.colors.on(BI.ButtonGroup.EVENT_CHANGE,function(){e.fireEvent(BI.ColorPicker.EVENT_CHANGE,arguments)})},populate:function(e){var t=[].slice.call(arguments);t[0]=BI.createItems(e,{type:"bi.color_picker_button",once:!1}),this.colors.populate.apply(this.colors,t)},setValue:function(e){this.colors.setValue(e)},getValue:function(){return this.colors.getValue()}}),BI.ColorPicker.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.color_picker",BI.ColorPicker)},function(e,t){BI.HexColorPickerEditor=BI.inherit(BI.Widget,{constants:{RGB_WIDTH:32,HEX_WIDTH:70,HEX_PREFIX_POSITION:1},props:{baseCls:"bi-color-picker-editor",height:50},render:function(){var t=this,e=(this.options,this.constants);this.storeValue={};var n=BI.createItems([{text:"R"},{text:"G"},{text:"B"}],{type:"bi.label",cls:"color-picker-editor-label",height:20}),r=function(e){return BI.isNumeric(e)&&0<=(0|e)&&(0|e)<=255},i=BI.map(BI.range(0,3),function(){return{type:"bi.small_text_editor",cls:"color-picker-editor-input",validationChecker:r,errorText:BI.i18nText("BI-Color_Picker_Error_Text"),allowBlank:!0,value:255,width:e.RGB_WIDTH,height:20,listeners:[{eventName:BI.TextEditor.EVENT_CHANGE,action:function(){t._checkEditors(),r(t.storeValue.r)&&r(t.storeValue.g)&&r(t.storeValue.b)&&(t.colorShow.element.css("background-color",t.getValue()),t.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))}}]}});return{type:"bi.absolute",items:[{el:{type:"bi.vertical",tgap:5,items:[{type:"bi.vertical_adapt",rgap:5,items:[{el:{type:"bi.layout",cls:"color-picker-editor-display bi-card bi-border",height:16,width:16,ref:function(e){t.colorShow=e}},width:16},{type:"bi.label",text:"#",width:10},{type:"bi.small_text_editor",ref:function(e){t.hexEditor=e},cls:"color-picker-editor-input",validationChecker:this._hexChecker,allowBlank:!0,errorText:BI.i18nText("BI-Color_Picker_Error_Text_Hex"),width:e.HEX_WIDTH,height:20,listeners:[{eventName:"EVENT_CHANGE",action:function(){t._checkHexEditor(),r(t.storeValue.r)&&r(t.storeValue.g)&&r(t.storeValue.b)&&(t.colorShow.element.css("background-color",t.getValue()),t.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))}}]},{el:BI.extend(i[0],{ref:function(e){t.R=e}}),width:e.RGB_WIDTH},{el:BI.extend(i[1],{ref:function(e){t.G=e}}),width:e.RGB_WIDTH},{el:BI.extend(i[2],{ref:function(e){t.B=e}}),width:e.RGB_WIDTH},{el:{type:"bi.icon_button",cls:"trans-color-icon",width:16,height:16,iconWidth:16,iconHeight:16,title:BI.i18nText("BI-Transparent_Color"),listeners:[{eventName:BI.IconButton.EVENT_CHANGE,action:function(){this.isSelected()?(t.lastColor=t.getValue(),t.setValue("transparent")):("transparent"===t.lastColor&&(t.lastColor=""),t.setValue(t.lastColor||"#ffffff")),(t.R.isValid()&&t.G.isValid()&&t.B.isValid()||t._isEmptyRGB())&&(t.colorShow.element.css("background-color",t.getValue()),t.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))}}],ref:function(e){t.transparent=e}},width:16,lgap:5},{el:{type:"bi.icon_button",cls:"auto-color-icon",width:16,height:16,iconWidth:16,iconHeight:16,title:BI.i18nText("BI-Basic_Auto"),listeners:[{eventName:BI.IconButton.EVENT_CHANGE,action:function(){this.isSelected()?(t.lastColor=t.getValue(),t.setValue("")):t.setValue(t.lastColor||"#ffffff"),(t.R.isValid()&&t.G.isValid()&&t.B.isValid()||t._isEmptyRGB())&&(t.colorShow.element.css("background-color",t.getValue()),t.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))}}],ref:function(e){t.none=e}},width:16,lgap:5}]},{type:"bi.vertical_adapt",items:[{el:{type:"bi.label",cls:"color-picker-editor-label",height:20,text:"HEX"},lgap:60},{el:n[0].el,lgap:44},{el:n[1].el,lgap:28},{el:n[2].el,lgap:28}]}]},left:10,right:10,top:0,bottom:0}]}},_hexChecker:function(e){return/^[0-9a-fA-F]{6}$/.test(e)},_checkEditors:function(){BI.isEmptyString(this.R.getValue())&&this.R.setValue(0),BI.isEmptyString(this.G.getValue())&&this.G.setValue(0),BI.isEmptyString(this.B.getValue())&&this.B.setValue(0),this.storeValue={r:this.R.getValue()||0,g:this.G.getValue()||0,b:this.B.getValue()||0},this.hexEditor.setValue(this.getValue().slice(this.constants.HEX_PREFIX_POSITION))},_isEmptyRGB:function(){return BI.isEmptyString(this.storeValue.r)&&BI.isEmptyString(this.storeValue.g)&&BI.isEmptyString(this.storeValue.b)},_checkHexEditor:function(){BI.isEmptyString(this.hexEditor.getValue())&&this.hexEditor.setValue("000000");var e=BI.DOM.rgb2json(BI.DOM.hex2rgb("#"+this.hexEditor.getValue()));this.storeValue={r:e.r||0,g:e.g||0,b:e.b||0},this.R.setValue(this.storeValue.r),this.G.setValue(this.storeValue.g),this.B.setValue(this.storeValue.b)},_showPreColor:function(e){""===e?this.colorShow.element.css("background-color","").removeClass("trans-color-background").addClass("auto-color-normal-background"):"transparent"===e?this.colorShow.element.css("background-color","").removeClass("auto-color-normal-background").addClass("trans-color-background"):this.colorShow.element.css({"background-color":e}).removeClass("auto-color-normal-background").removeClass("trans-color-background")},_setEnable:function(e){BI.ColorPickerEditor.superclass._setEnable.apply(this,arguments),!0===e?this.element.removeClass("base-disabled disabled"):!1===e&&this.element.addClass("base-disabled disabled")},setValue:function(e){if("transparent"===e)return this.transparent.setSelected(!0),this.none.setSelected(!1),this._showPreColor("transparent"),this.R.setValue(""),this.G.setValue(""),this.B.setValue(""),this.hexEditor.setValue(""),void(this.storeValue={r:"",g:"",b:""});e?this.none.setSelected(!1):(e="",this.none.setSelected(!0)),this.transparent.setSelected(!1),this._showPreColor(e);var t=BI.DOM.rgb2json(BI.DOM.hex2rgb(e));this.storeValue={r:BI.isNull(t.r)?"":t.r,g:BI.isNull(t.g)?"":t.g,b:BI.isNull(t.b)?"":t.b},this.R.setValue(this.storeValue.r),this.G.setValue(this.storeValue.g),this.B.setValue(this.storeValue.b),this.hexEditor.setValue(e.slice(this.constants.HEX_PREFIX_POSITION))},getValue:function(){return this._isEmptyRGB()&&this.transparent.isSelected()?"transparent":BI.DOM.rgb2hex(BI.DOM.json2rgb({r:this.storeValue.r,g:this.storeValue.g,b:this.storeValue.b}))}}),BI.HexColorPickerEditor.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.hex_color_picker_editor",BI.HexColorPickerEditor)},function(e,t){BI.SimpleHexColorPickerEditor=BI.inherit(BI.Widget,{constants:{RGB_WIDTH:40,HEX_WIDTH:70,HEX_PREFIX_POSITION:1},props:{baseCls:"bi-color-picker-editor",height:50},render:function(){var t=this,e=(this.options,this.constants),n=BI.createItems([{text:"R"},{text:"G"},{text:"B"}],{type:"bi.label",cls:"color-picker-editor-label",height:20}),r=function(e){return BI.isNumeric(e)&&0<=(0|e)&&(0|e)<=255},i=BI.map(BI.range(0,3),function(){return{type:"bi.small_text_editor",cls:"color-picker-editor-input",validationChecker:r,errorText:BI.i18nText("BI-Color_Picker_Error_Text"),allowBlank:!0,value:255,width:e.RGB_WIDTH,height:20,listeners:[{eventName:BI.TextEditor.EVENT_CHANGE,action:function(){t._checkEditors(),t.R.isValid()&&t.G.isValid()&&t.B.isValid()&&(t.colorShow.element.css("background-color",t.getValue()),t.fireEvent(BI.SimpleColorPickerEditor.EVENT_CHANGE))}}]}});return{type:"bi.vertical",tgap:5,items:[{type:"bi.vertical_adapt",rgap:10,items:[{el:{type:"bi.layout",cls:"color-picker-editor-display bi-card bi-border",height:16,width:16,ref:function(e){t.colorShow=e}},width:16,lgap:10,rgap:5},{type:"bi.label",text:"#",width:10},{type:"bi.small_text_editor",ref:function(e){t.hexEditor=e},cls:"color-picker-editor-input",validationChecker:this._hexChecker,allowBlank:!0,errorText:BI.i18nText("BI-Color_Picker_Error_Text_Hex"),width:e.HEX_WIDTH,height:20,listeners:[{eventName:"EVENT_CHANGE",action:function(){t._checkHexEditor(),r(t.storeValue.r)&&r(t.storeValue.g)&&r(t.storeValue.b)&&(t.colorShow.element.css("background-color",t.getValue()),t.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))}}]},{el:BI.extend(i[0],{ref:function(e){t.R=e}}),width:e.RGB_WIDTH},{el:BI.extend(i[1],{ref:function(e){t.G=e}}),width:e.RGB_WIDTH},{el:BI.extend(i[2],{ref:function(e){t.B=e}}),width:e.RGB_WIDTH}]},{type:"bi.vertical_adapt",items:[{el:{type:"bi.label",cls:"color-picker-editor-label",height:20,text:"HEX"},lgap:86},{el:n[0].el,lgap:50},{el:n[1].el,lgap:40},{el:n[2].el,lgap:40}]}]}},_hexChecker:function(e){return/^[0-9a-fA-F]{6}$/.test(e)},_checkEditors:function(){BI.isEmptyString(this.R.getValue())&&this.R.setValue(0),BI.isEmptyString(this.G.getValue())&&this.G.setValue(0),BI.isEmptyString(this.B.getValue())&&this.B.setValue(0),this.hexEditor.setValue(this.getValue().slice(this.constants.HEX_PREFIX_POSITION))},_checkHexEditor:function(){BI.isEmptyString(this.hexEditor.getValue())&&this.hexEditor.setValue("000000");var e=BI.DOM.rgb2json(BI.DOM.hex2rgb("#"+this.hexEditor.getValue()));this.storeValue={r:e.r||0,g:e.g||0,b:e.b||0},this.R.setValue(this.storeValue.r),this.G.setValue(this.storeValue.g),this.B.setValue(this.storeValue.b)},setValue:function(e){this.colorShow.element.css({"background-color":e});var t=BI.DOM.rgb2json(BI.DOM.hex2rgb(e));this.R.setValue(BI.isNull(t.r)?"":t.r),this.G.setValue(BI.isNull(t.g)?"":t.g),this.B.setValue(BI.isNull(t.b)?"":t.b),this.hexEditor.setValue(BI.isEmptyObject(t)?"":e.slice(this.constants.HEX_PREFIX_POSITION))},getValue:function(){return BI.DOM.rgb2hex(BI.DOM.json2rgb({r:this.R.getValue(),g:this.G.getValue(),b:this.B.getValue()}))}}),BI.SimpleHexColorPickerEditor.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.simple_hex_color_picker_editor",BI.SimpleHexColorPickerEditor)},function(e,t){BI.ColorPickerEditor=BI.inherit(BI.Widget,{constants:{RGB_WIDTH:32},_defaultConfig:function(){return BI.extend(BI.ColorPickerEditor.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-color-picker-editor",height:30})},_init:function(){BI.ColorPickerEditor.superclass._init.apply(this,arguments);var n=this,e=(this.options,this.constants);this.storeValue={},this.colorShow=BI.createWidget({type:"bi.layout",cls:"color-picker-editor-display bi-card bi-border",height:16,width:16});var t=BI.createWidgets(BI.createItems([{text:"R"},{text:"G"},{text:"B"}],{type:"bi.label",cls:"color-picker-editor-label",width:20,height:20})),r=function(e){return BI.isNumeric(e)&&0<=(0|e)&&(0|e)<=255},i=BI.createWidgets([{},{},{}],{type:"bi.small_text_editor",cls:"color-picker-editor-input",validationChecker:r,errorText:BI.i18nText("BI-Color_Picker_Error_Text"),allowBlank:!0,value:255,width:e.RGB_WIDTH,height:20});BI.each(i,function(e,t){t.on(BI.TextEditor.EVENT_CHANGE,function(){n._checkEditors(),r(n.storeValue.r)&&r(n.storeValue.g)&&r(n.storeValue.b)&&(n.colorShow.element.css("background-color",n.getValue()),n.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))})}),this.R=i[0],this.G=i[1],this.B=i[2],this.none=BI.createWidget({type:"bi.icon_button",cls:"auto-color-icon",width:16,height:16,iconWidth:16,iconHeight:16,title:BI.i18nText("BI-Basic_Auto")}),this.none.on(BI.IconButton.EVENT_CHANGE,function(){this.isSelected()?(n.lastColor=n.getValue(),n.setValue("")):n.setValue(n.lastColor||"#ffffff"),(n.R.isValid()&&n.G.isValid()&&n.B.isValid()||n._isEmptyRGB())&&(n.colorShow.element.css("background-color",n.getValue()),n.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))}),this.transparent=BI.createWidget({type:"bi.icon_button",cls:"trans-color-icon",width:16,height:16,iconWidth:16,iconHeight:16,title:BI.i18nText("BI-Transparent_Color")}),this.transparent.on(BI.IconButton.EVENT_CHANGE,function(){this.isSelected()?(n.lastColor=n.getValue(),n.setValue("transparent")):("transparent"===n.lastColor&&(n.lastColor=""),n.setValue(n.lastColor||"#ffffff")),(n.R.isValid()&&n.G.isValid()&&n.B.isValid()||n._isEmptyRGB())&&(n.colorShow.element.css("background-color",n.getValue()),n.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE))}),BI.createWidget({type:"bi.absolute",element:this,items:[{el:{type:"bi.vertical_adapt",items:[{el:this.colorShow,width:16},{el:t[0],width:20},{el:this.R,width:e.RGB_WIDTH},{el:t[1],width:20},{el:this.G,width:e.RGB_WIDTH},{el:t[2],width:20},{el:this.B,width:e.RGB_WIDTH},{el:this.transparent,width:16,lgap:5},{el:this.none,width:16,lgap:5}]},left:10,right:10,top:0,bottom:0}]})},_checkEditors:function(){BI.isEmptyString(this.R.getValue())&&this.R.setValue(0),BI.isEmptyString(this.G.getValue())&&this.G.setValue(0),BI.isEmptyString(this.B.getValue())&&this.B.setValue(0),this.storeValue={r:this.R.getValue()||0,g:this.G.getValue()||0,b:this.B.getValue()||0}},_isEmptyRGB:function(){return BI.isEmptyString(this.storeValue.r)&&BI.isEmptyString(this.storeValue.g)&&BI.isEmptyString(this.storeValue.b)},_showPreColor:function(e){""===e?this.colorShow.element.css("background-color","").removeClass("trans-color-background").addClass("auto-color-normal-background"):"transparent"===e?this.colorShow.element.css("background-color","").removeClass("auto-color-normal-background").addClass("trans-color-background"):this.colorShow.element.css({"background-color":e}).removeClass("auto-color-normal-background").removeClass("trans-color-background")},_setEnable:function(e){BI.ColorPickerEditor.superclass._setEnable.apply(this,arguments),!0===e?this.element.removeClass("base-disabled disabled"):!1===e&&this.element.addClass("base-disabled disabled")},setValue:function(e){if("transparent"===e)return this.transparent.setSelected(!0),this.none.setSelected(!1),this._showPreColor("transparent"),this.R.setValue(""),this.G.setValue(""),this.B.setValue(""),void(this.storeValue={r:"",g:"",b:""});e?this.none.setSelected(!1):(e="",this.none.setSelected(!0)),this.transparent.setSelected(!1),this._showPreColor(e);var t=BI.DOM.rgb2json(BI.DOM.hex2rgb(e));this.storeValue={r:BI.isNull(t.r)?"":t.r,g:BI.isNull(t.g)?"":t.g,b:BI.isNull(t.b)?"":t.b},this.R.setValue(this.storeValue.r),this.G.setValue(this.storeValue.g),this.B.setValue(this.storeValue.b)},getValue:function(){return this._isEmptyRGB()&&this.transparent.isSelected()?"transparent":BI.DOM.rgb2hex(BI.DOM.json2rgb({r:this.storeValue.r,g:this.storeValue.g,b:this.storeValue.b}))}}),BI.ColorPickerEditor.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.color_picker_editor",BI.ColorPickerEditor)},function(e,t){BI.SimpleColorPickerEditor=BI.inherit(BI.Widget,{constants:{RGB_WIDTH:32},_defaultConfig:function(){return BI.extend(BI.SimpleColorPickerEditor.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-color-picker-editor",height:30})},_init:function(){BI.SimpleColorPickerEditor.superclass._init.apply(this,arguments);var n=this,e=(this.options,this.constants);this.colorShow=BI.createWidget({type:"bi.layout",cls:"color-picker-editor-display bi-card bi-border",height:16,width:16});var t=BI.createWidgets(BI.createItems([{text:"R"},{text:"G"},{text:"B"}],{type:"bi.label",cls:"color-picker-editor-label",width:20,height:20})),r=BI.createWidgets([{},{},{}],{type:"bi.small_text_editor",cls:"color-picker-editor-input",validationChecker:function(e){return BI.isNumeric(e)&&0<=(0|e)&&(0|e)<=255},errorText:BI.i18nText("BI-Color_Picker_Error_Text"),allowBlank:!0,value:255,width:e.RGB_WIDTH,height:20});BI.each(r,function(e,t){t.on(BI.TextEditor.EVENT_CHANGE,function(){n._checkEditors(),n.R.isValid()&&n.G.isValid()&&n.B.isValid()&&(n.colorShow.element.css("background-color",n.getValue()),n.fireEvent(BI.SimpleColorPickerEditor.EVENT_CHANGE))})}),this.R=r[0],this.G=r[1],this.B=r[2],BI.createWidget({type:"bi.vertical_adapt",element:this,items:[{el:this.colorShow,width:16,lgap:20,rgap:15},{el:t[0],width:20},{el:this.R,width:e.RGB_WIDTH},{el:t[1],width:20},{el:this.G,width:e.RGB_WIDTH},{el:t[2],width:20},{el:this.B,width:e.RGB_WIDTH}]})},_checkEditors:function(){BI.isEmptyString(this.R.getValue())&&this.R.setValue(0),BI.isEmptyString(this.G.getValue())&&this.G.setValue(0),BI.isEmptyString(this.B.getValue())&&this.B.setValue(0)},setValue:function(e){this.colorShow.element.css({"background-color":e});var t=BI.DOM.rgb2json(BI.DOM.hex2rgb(e));this.R.setValue(BI.isNull(t.r)?"":t.r),this.G.setValue(BI.isNull(t.g)?"":t.g),this.B.setValue(BI.isNull(t.b)?"":t.b)},getValue:function(){return BI.DOM.rgb2hex(BI.DOM.json2rgb({r:this.R.getValue(),g:this.G.getValue(),b:this.B.getValue()}))}}),BI.SimpleColorPickerEditor.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.simple_color_picker_editor",BI.SimpleColorPickerEditor)},function(e,t){BI.Farbtastic=BI.inherit(BI.BasicButton,{constants:{RADIUS:84,SQUARE:100,WIDTH:194},props:{baseCls:"bi-farbtastic",width:195,height:195,stopPropagation:!0,value:"#000000"},render:function(){var t=this;return{type:"bi.absolute",items:[{el:{type:"bi.layout",cls:"",ref:function(e){t.colorWrapper=e}},top:47,left:47,width:101,height:101},{el:{type:"bi.layout",cls:"wheel",ref:function(e){t.wheel=e}},left:0,right:0,top:0,bottom:0},{el:{type:"bi.layout",cls:"overlay",ref:function(e){t.overlay=e}},top:47,left:47,width:101,height:101},{el:{type:"bi.layout",cls:"marker",ref:function(e){t.hMarker=e},scrollable:!1,width:17,height:17}},{el:{type:"bi.layout",cls:"marker",ref:function(e){t.slMarker=e},scrollable:!1,width:17,height:17}}]}},mounted:function(){var e=this.options;BI.isKey(e.value)&&this.setValue(e.value)},_unpack:function(e){return 7===e.length?[parseInt("0x"+e.substring(1,3))/255,parseInt("0x"+e.substring(3,5))/255,parseInt("0x"+e.substring(5,7))/255]:4===e.length?[parseInt("0x"+e.substring(1,2))/15,parseInt("0x"+e.substring(2,3))/15,parseInt("0x"+e.substring(3,4))/15]:void 0},_pack:function(e){var t=Math.round(255*e[0]),n=Math.round(255*e[1]),r=Math.round(255*e[2]);return"#"+(t<16?"0":"")+t.toString(16)+(n<16?"0":"")+n.toString(16)+(r<16?"0":"")+r.toString(16)},_setColor:function(e){var t=this._unpack(e);this.value!==e&&t&&(this.value=e,this.rgb=t,this.hsl=this._RGBToHSL(this.rgb),this._updateDisplay())},_setHSL:function(e){return this.hsl=e,this.rgb=this._HSLToRGB(e),this.value=this._pack(this.rgb),this._updateDisplay(),this},_HSLToRGB:function(e){var t=e[0],n=e[1],r=e[2],i=r<=.5?r*(n+1):r+n-r*n,a=2*r-i;return[this._hueToRGB(a,i,t+.33333),this._hueToRGB(a,i,t),this._hueToRGB(a,i,t-.33333)]},_hueToRGB:function(e,t,n){return 6*(n=n<0?n+1:1<n?n-1:n)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(.66666-n)*6:e},_RGBToHSL:function(e){var t=e[0],n=e[1],r=e[2],i=Math.min(t,Math.min(n,r)),a=Math.max(t,Math.max(n,r)),o=a-i,s=(i+a)/2,c=0;return 0<o&&(a==t&&a!=n&&(c+=(n-r)/o),a==n&&a!=r&&(c+=2+(r-t)/o),a==r&&a!=t&&(c+=4+(t-n)/o),c/=6),[c,0<s&&s<1?o/(s<.5?2*s:2-2*s):0,s]},_updateDisplay:function(){var e=6.28*this.hsl[0];this.hMarker.element.css({left:Math.round(Math.sin(e)*this.constants.RADIUS+this.constants.WIDTH/2)+"px",top:Math.round(-Math.cos(e)*this.constants.RADIUS+this.constants.WIDTH/2)+"px"}),this.slMarker.element.css({left:Math.round(this.constants.SQUARE*(.5-this.hsl[1])+this.constants.WIDTH/2)+"px",top:Math.round(this.constants.SQUARE*(.5-this.hsl[2])+this.constants.WIDTH/2)+"px"}),this.colorWrapper.element.css("backgroundColor",this._pack(this._HSLToRGB([this.hsl[0],1,.5]))),this.fireEvent(BI.Farbtastic.EVENT_CHANGE,this.getValue(),this)},_absolutePosition:function(e){var t,n={x:e.offsetLeft,y:e.offsetTop};return e.offsetParent&&(t=this._absolutePosition(e.offsetParent),n.x+=t.x,n.y+=t.y),n},_widgetCoords:function(e){var t=e.target||e.srcElement,n=this.wheel.element[0];if("undefined"!=typeof e.offsetX){for(var r={x:e.offsetX,y:e.offsetY},i=t;i;)i.mouseX=r.x,i.mouseY=r.y,r.x+=i.offsetLeft,r.y+=i.offsetTop,i=i.offsetParent;for(var i=n,a={x:0,y:0};i;){if("undefined"!=typeof i.mouseX){o=i.mouseX-a.x,s=i.mouseY-a.y;break}a.x+=i.offsetLeft,a.y+=i.offsetTop,i=i.offsetParent}for(i=t;i;)i.mouseX=undefined,i.mouseY=undefined,i=i.offsetParent}else var r=this._absolutePosition(n),o=(e.pageX||0)-r.x,s=(e.pageY||0)-r.y;return{x:o-this.constants.WIDTH/2,y:s-this.constants.WIDTH/2}},_doMouseMove:function(e){var t,n,r,i=this._widgetCoords(e);this.circleDrag?((t=Math.atan2(i.x,-i.y)/6.28)<0&&(t+=1),this._setHSL([t,this.hsl[1],this.hsl[2]])):(n=Math.max(0,Math.min(1,.5-i.x/this.constants.SQUARE)),r=Math.max(0,Math.min(1,.5-i.y/this.constants.SQUARE)),this._setHSL([this.hsl[0],n,r]))},doClick:function(e){var t=this._widgetCoords(e);return this.circleDrag=2*Math.max(Math.abs(t.x),Math.abs(t.y))>this.constants.SQUARE,this._doMouseMove(e),!1},setValue:function(e){this._setColor(e)},getValue:function(){return this.value}}),BI.Farbtastic.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.farbtastic",BI.Farbtastic)},function(e,t){BI.DisplayTree=BI.inherit(BI.TreeView,{_defaultConfig:function(){return BI.extend(BI.DisplayTree.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-display-tree"})},_configSetting:function(){return{view:{selectedMulti:!1,dblClickExpand:!1,showIcon:!1,nameIsHTML:!0,showTitle:!1},data:{key:{title:"title",name:"text"},simpleData:{enable:!0}},callback:{beforeCollapse:function(e,t){return!1}}}},_dealWidthNodes:function(e){e=BI.DisplayTree.superclass._dealWidthNodes.apply(this,arguments);this.options;return BI.each(e,function(e,t){t.isParent=t.isParent||t.parent,null==t.text&&0<t.count&&(t.text=t.value+"("+BI.i18nText("BI-Basic_Altogether")+t.count+BI.i18nText("BI-Basic_Count")+")")}),e},initTree:function(e,t){t=t||this._configSetting();this.nodes=BI.$.fn.zTree.init(this.tree.element,t,e)}}),BI.DisplayTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.display_tree",BI.DisplayTree)},function(e,t){BI.ListDisplayTree=BI.inherit(BI.ListTreeView,{_defaultConfig:function(){return BI.extend(BI.ListDisplayTree.superclass._defaultConfig.apply(this,arguments),{extraCls:"bi-list-display-tree"})},_init:function(){BI.ListDisplayTree.superclass._init.apply(this,arguments)},_configSetting:function(){return{view:{selectedMulti:!1,dblClickExpand:!1,showIcon:!1,nameIsHTML:!0,showTitle:!1,fontCss:function(e,t){return t.isLeaf?{}:{color:"#999999"}}},data:{key:{title:"title",name:"text"},simpleData:{enable:!0}},callback:{beforeCollapse:function(e,t){return!1}}}},_dealWidthNodes:function(e){e=BI.ListDisplayTree.superclass._dealWidthNodes.apply(this,arguments);this.options;return BI.each(e,function(e,t){t.isParent=t.isParent||t.parent,null==t.text&&0<t.count&&(t.text=t.value+"("+BI.i18nText("BI-Basic_Altogether")+t.count+BI.i18nText("BI-Basic_Count")+")")}),e},initTree:function(e,t){t=t||this._configSetting();this.nodes=BI.$.fn.zTree.init(this.tree.element,t,e)},destroy:function(){BI.ListDisplayTree.superclass.destroy.apply(this,arguments)}}),BI.ListDisplayTree.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.list_display_tree",BI.ListDisplayTree)},function(e,t){BI.SimpleTreeView=BI.inherit(BI.Widget,{_defaultConfig:function(){return BI.extend(BI.SimpleTreeView.superclass._defaultConfig.apply(this,arguments),{baseCls:"bi-simple-tree",itemsCreator:BI.emptyFn,items:null})},_init:function(){BI.SimpleTreeView.superclass._init.apply(this,arguments);var r=this,i=this.options;this.structure=new BI.Tree,this.tree=BI.createWidget({type:"bi.tree_view",element:this,itemsCreator:function(e,t){var n=function(e){t({items:e}),r.structure.initTree(BI.Tree.transformToTreeFormat(e))};BI.isNotNull(i.items)?n(i.items):i.itemsCreator(e,n)}}),this.tree.on(BI.TreeView.EVENT_CHANGE,function(){r.fireEvent(BI.SimpleTreeView.EVENT_CHANGE,arguments)}),BI.isNotEmptyArray(i.items)&&this.populate(),BI.isNotNull(i.value)&&this.setValue(i.value)},populate:function(e,t){e&&(this.options.items=e),this.tree.stroke({keyword:t})},_digest:function(e){e=e||[];var i=this,a={},o=[];return BI.each(e,function(e,t){var n=i.structure.search(t,"value");if(n){var r=n;for((r=r.getParent())&&(a[r.value]||(a[r.value]=0),a[r.value]++);r&&r.getChildrenLength()<=a[r.value];)o.push(r.value),(r=r.getParent())&&(a[r.value]||(a[r.value]=0),a[r.value]++)}}),BI.makeObject(e.concat(o))},setValue:function(e){this.tree.setValue(this._digest(e))},_getValue:function(){var n=[],e=this.tree.getValue(),r=function(e){BI.each(e,function(e,t){BI.isEmpty(t)?n.push(e):r(t)})};return r(e),n},empty:function(){this.tree.empty()},getValue:function(){var r=this,i=[],e=this._getValue();return BI.each(e,function(e,t){var n=r.structure.search(t,"value");n&&r.structure._traverse(n,function(e){e.isLeaf()&&i.push(e.value)})}),i}}),BI.SimpleTreeView.EVENT_CHANGE="EVENT_CHANGE",BI.shortcut("bi.simple_tree",BI.SimpleTreeView)},function(e,t){function a(e,t,n,r){return BI.isPlainObject(n)&&(n=(r=n).handler),r=r||{},Fix.watch(e.model,t,_.bind(n,e),BI.extend(r,{store:e.store}))}var i,o;o={},BI.useWorker=function(e){i=e;var t=BI.Widget.prototype._init;BI.Widget.prototype._init=function(){this.$destroyWorker=function(){var e;if(this._worker){var n=this.getName(),r=this._worker();if(BI.isArray(r)&&(e=r[1],r=r[0]),i){o[n]=this,i.postMessage({type:r,name:n,eventType:"create",options:e,watches:BI.map(this.watch,function(e){return e})});return this.store=new Proxy({},{get:function(e,t){return function(){i.postMessage({type:r,name:n,eventType:"action",action:t,args:[].slice.call(arguments)})}},set:function(e,t,n){return Reflect.set(e,t,n)}}),function(){delete o[n],i.postMessage({type:r,name:n,eventType:"destroy"})}}return this.store=BI.Models.getModel(r,e),this.store&&(this.store._widget=this),this.store instanceof Fix.Model?this.model=this.store.model:this.model=this.store,function(e,t){for(var n in e._watchers||(e._watchers=[]),t){var r=t[n];if(BI.isArray(r))for(var i=0;i<r.length;i++)e._watchers.push(a(e,n,r[i]));else e._watchers.push(a(e,n,r))}}(this,this.watch),function(){this.store&&BI.isFunction(this.store.destroy)&&this.store.destroy(),BI.each(this._watchers,function(e,t){t=BI.isArray(t)?t:[t],BI.each(t,function(e,t){t()})}),this._watchers&&(this._watchers=[]),this.store&&(this.store._parent&&(this.store._parent=null),this.store._widget&&(this.store._widget=null),this.store=null)}}}.call(this);try{t.apply(this,arguments)}catch(e){console.error(e)}};var n=BI.Widget.prototype._initRender;BI.Widget.prototype._initRender=function(){i&&this._worker?(this.__asking=!0,this.__async=!0):n.apply(this,arguments)};var r=BI.Widget.prototype.__d;BI.Widget.prototype.__d=function(){this.$destroyWorker&&this.$destroyWorker();try{r.apply(this,arguments)}catch(e){console.error(e)}},i&&i.addEventListener("message",function(e){var t=e.data;(function(e){switch(e.eventType){case"create":this.model=e.msg,n.call(this);break;case"watch":var t=e.args;this.watch[e.currentWatchType].apply(this,t)}}).apply(o[t.name],[t])},!1)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r,i,a,o,s,c,u,l,d=n(1211),p=n(68),f=n(96),_=n(167),h=n(166),g=n(1149),m=n(1142),y=p.WeakMap;u=d?(r=new y,i=r.get,a=r.has,o=r.set,s=function(e,t){return o.call(r,e,t),t},c=function(e){return i.call(r,e)||{}},function(e){return a.call(r,e)}):(m[l=g("state")]=!0,s=function(e,t){return _(e,l,t),t},c=function(e){return h(e,l)?e[l]:{}},function(e){return h(e,l)}),e.exports={set:s,get:c,has:u,enforce:function(e){return u(e)?c(e):s(e,{})},getterFor:function(n){return function(e){var t;if(!f(e)||(t=c(e)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return t}}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},,,,,function(e,t,n){var r=n(1158),i=n(1148);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(260),i=n(68),a=function(e){return"function"==typeof e?e:undefined};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(97),i=n(1218),a=n(1163),o=n(1142),s=n(1181),c=n(1160),u=n(1149)("IE_PROTO"),l="prototype",d=function(){},p=function(){var e,t=c("iframe"),n=a.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),p=e.F;n--;)delete p[l][a[n]];return p()};e.exports=Object.create||function(e,t){var n;return null!==e?(d[l]=r(e),n=new d,d[l]=null,n[u]=e):n=p(),t===undefined?n:i(n,t)},o[u]=!0},function(e,t,n){var r=n(1148);e.exports=function(e){return Object(r(e))}},function(e,t,n){var f=n(97),_=n(1252),h=n(1151),g=n(1144),m=n(1253),y=n(1254),b=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,r,i){var a,o,s,c,u,l,d,p=g(t,n,r?2:1);if(i)a=e;else{if("function"!=typeof(o=m(e)))throw TypeError("Target is not iterable");if(_(o)){for(s=0,c=h(e.length);s<c;s++)if((u=r?p(f(d=e[s])[0],d[1]):p(e[s]))&&u instanceof b)return u;return new b(!1)}a=o.call(e)}for(l=a.next;!(d=l.call(a)).done;)if("object"==typeof(u=y(a,p,d.value,r))&&u&&u instanceof b)return u;return new b(!1)}).stop=function(e){return new b(!0,e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(941),i=n(1210);(e.exports=function(e,t){return i[e]||(i[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.3.2",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports={}},function(e,t,n){var r=n(168).f,i=n(166),a=n(79)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var a=n(935);e.exports=function(r,i,e){if(a(r),i===undefined)return r;switch(e){case 0:return function(){return r.call(i)};case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}}},function(e,t){e.exports={}},function(e,t,n){"use strict";var i=n(935),r=function(e){var n,r;this.promise=new e(function(e,t){if(n!==undefined||r!==undefined)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=i(n),this.reject=i(r)};e.exports.f=function(e){return new r(e)}},function(e,t,n){var r=n(137),i=n(1157),a=n(1140),o=n(940),s=n(1159),c=n(166),u=n(1177),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=o(e),t=s(t,!0),u)try{return l(e,t)}catch(n){}if(c(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(1141),i=n(1150),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(1152),i=Math.min;e.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(166),i=n(944),a=n(1149),o=n(1186),s=a("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(68),i=n(1144),a=Function.call;e.exports=function(e,t,n){return i(a,r[e].prototype[t],n)}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t){},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(95),i=n(933),a="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(96);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(68),i=n(96),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(68),i=n(167);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(1179),i=n(1163).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(95),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(1179),i=n(1163);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var m=n(80),y=n(1246),b=n(1153),v=n(1168),E=n(1143),I=n(167),T=n(335),r=n(79),C=n(941),B=n(1145),i=n(1192),x=i.IteratorPrototype,S=i.BUGGY_SAFARI_ITERATORS,N=r("iterator"),D="values",k=function(){return this};e.exports=function(e,t,n,r,i,a,o){y(n,t,r);var s,c,u,l=function(e){if(e===i&&h)return h;if(!S&&e in f)return f[e];switch(e){case"keys":case D:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,f=e.prototype,_=f[N]||f["@@iterator"]||i&&f[i],h=!S&&_||l(i),g="Array"==t&&f.entries||_;if(g&&(s=b(g.call(new e)),x!==Object.prototype&&s.next&&(C||b(s)===x||(v?v(s,x):"function"!=typeof s[N]&&I(s,N,k)),E(s,d,!0,!0),C&&(B[d]=k))),i==D&&_&&_.name!==D&&(p=!0,h=function(){return _.call(this)}),C&&!o||f[N]===h||I(f,N,h),B[t]=h,i)if(c={values:l(D),keys:a?h:l("keys"),entries:l("entries")},o)for(u in c)!S&&!p&&u in f||T(f,u,c[u]);else m({target:t,proto:!0,forced:S||p},c);return c}},function(e,t,n){var i=n(97),a=n(1247);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),r=e instanceof Array}catch(t){}return function(e,t){return i(e),a(t),r?n.call(e,t):e.__proto__=t,e}}():undefined)},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(942);e.exports=r("navigator","userAgent")||""},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(137),i=n(95),a=n(1160);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1141);e.exports=r("native-function-to-string",Function.toString)},function(e,t,n){var o=n(166),s=n(940),c=n(1180).indexOf,u=n(1142);e.exports=function(e,t){var n,r=s(e),i=0,a=[];for(n in r)!o(u,n)&&o(r,n)&&a.push(n);for(;t.length>i;)o(r,n=t[i++])&&(~c(a,n)||a.push(n));return a}},function(e,t,n){var c=n(940),u=n(1151),l=n(1214),r=function(s){return function(e,t,n){var r,i=c(e),a=u(i.length),o=l(n,a);if(s&&t!=t){for(;o<a;)if((r=i[o++])!=r)return!0}else for(;o<a;o++)if((s||o in i)&&i[o]===t)return s||o||0;return!s&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},function(e,t,n){var r=n(942);e.exports=r("document","documentElement")},function(e,t,n){var r=n(95);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(e,t,n){var r=n(933);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){t.f=n(79)},function(e,t,n){var v=n(1144),E=n(1158),I=n(944),T=n(1151),C=n(1228),B=[].push,r=function(f){var _=1==f,h=2==f,g=3==f,m=4==f,y=6==f,b=5==f||y;return function(e,t,n,r){for(var i,a,o=I(e),s=E(o),c=v(t,n,3),u=T(s.length),l=0,d=r||C,p=_?d(e,u):h?d(e,0):undefined;l<u;l++)if((b||l in s)&&(a=c(i=s[l],l,o),f))if(_)p[l]=a;else if(a)switch(f){case 3:return!0;case 5:return i;case 6:return l;case 2:B.call(p,i)}else if(m)return!1;return y?-1:g||m?m:p}};e.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6)}},function(e,t,n){var r=n(95);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){"use strict";var r=n(95);e.exports=function(e,t){var n=[][e];return!n||!r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){var r=n(335),i=n(1245),a=Object.prototype;i!==a.toString&&r(a,"toString",i,{unsafe:!0})},function(e,t,n){var i=n(933),a=n(79)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,r;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var i=n(1191).charAt,r=n(934),a=n(1167),o="String Iterator",s=r.set,c=r.getterFor(o);a(String,"String",function(e){s(this,{type:o,string:String(e),index:0})},function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:undefined,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var c=n(1152),u=n(1148),r=function(s){return function(e,t){var n,r,i=String(u(e)),a=c(t),o=i.length;return a<0||o<=a?s?"":undefined:(n=i.charCodeAt(a))<55296||56319<n||a+1===o||(r=i.charCodeAt(a+1))<56320||57343<r?s?i.charAt(a):n:s?i.slice(a,a+2):r-56320+(n-55296<<10)+65536}};e.exports={codeAt:r(!1),charAt:r(!0)}},function(e,t,n){"use strict";var r,i,a,o=n(1153),s=n(167),c=n(166),u=n(79),l=n(941),d=u("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=o(o(a)))!==Object.prototype&&(r=i):p=!0),r==undefined&&(r={}),l||c(r,d)||s(r,d,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(68),i=n(1248),a=n(1249),o=n(167),s=n(79),c=s("iterator"),u=s("toStringTag"),l=a.values;for(var d in i){var p=r[d],f=p&&p.prototype;if(f){if(f[c]!==l)try{o(f,c,l)}catch(h){f[c]=l}if(f[u]||o(f,u,d),i[d])for(var _ in a)if(f[_]!==a[_])try{o(f,_,a[_])}catch(h){f[_]=a[_]}}}},function(e,t,n){var r=n(68);e.exports=r.Promise},function(e,t,n){var i=n(335);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){"use strict";var r=n(942),i=n(168),a=n(79),o=n(137),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(79)("iterator"),a=!1;try{var r=0,o={next:function(){return{done:!!r++}},"return":function(){a=!0}};o[i]=function(){return this},Array.from(o,function(){throw 2})}catch(s){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(s){}return n}},function(e,t,n){var i=n(97),a=n(935),o=n(79)("species");e.exports=function(e,t){var n,r=i(e).constructor;return r===undefined||(n=i(r)[o])==undefined?t:a(n)}},function(e,t,n){var r,i,a,o=n(68),s=n(95),c=n(933),u=n(1144),l=n(1181),d=n(1160),p=n(1170),f=o.location,_=o.setImmediate,h=o.clearImmediate,g=o.process,m=o.MessageChannel,y=o.Dispatch,b=0,v={},E="onreadystatechange",I=function(e){var t;v.hasOwnProperty(e)&&(t=v[e],delete v[e],t())},T=function(e){return function(){I(e)}},C=function(e){I(e.data)},B=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};_&&h||(_=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return v[++b]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},r(b),b},h=function(e){delete v[e]},"process"==c(g)?r=function(e){g.nextTick(T(e))}:y&&y.now?r=function(e){y.now(T(e))}:m&&!/(iphone|ipod|ipad).*applewebkit/i.test(p)?(a=(i=new m).port2,i.port1.onmessage=C,r=u(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(B)?r=E in d("script")?function(e){l.appendChild(d("script"))[E]=function(){l.removeChild(this),I(e)}}:function(e){setTimeout(T(e),0)}:(r=B,o.addEventListener("message",C,!1))),e.exports={set:_,clear:h}},function(e,t,n){var r=n(97),i=n(96),a=n(1146);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(80),u=n(935),i=n(1146),a=n(1155),l=n(945);r({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=i.f(s),c=t.resolve,n=t.reject,r=a(function(){var r=u(s.resolve),i=[],a=0,o=1;l(e,function(e){var t=a++,n=!1;i.push(undefined),o++,r.call(s,e).then(function(e){n||(n=!0,i[t]={status:"fulfilled",value:e},--o||c(i))},function(e){n||(n=!0,i[t]={status:"rejected",reason:e},--o||c(i))})}),--o||c(i)});return r.error&&n(r.value),t.promise}})},function(e,t,n){"use strict";var r,i,a=n(1266),o=RegExp.prototype.exec,s=String.prototype.replace,c=o,u=(r=/a/,i=/b*/g,o.call(r,"a"),o.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=/()??/.exec("")[1]!==undefined;(u||l)&&(c=function(e){var t,n,r,i;return l&&(n=new RegExp("^"+this.source+"$(?!\\s)",a.call(this))),u&&(t=this.lastIndex),r=o.call(this,e),u&&r&&(this.lastIndex=this.global?r.index+r[0].length:t),l&&r&&1<r.length&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===undefined&&(r[i]=undefined)}),r}),e.exports=c},function(e,t,n){var r=n(1142),i=n(96),a=n(166),o=n(168).f,s=n(1150),c=n(1272),u=s("meta"),l=0,d=Object.isExtensible||function(){return!0},p=function(e){o(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,u)){if(!d(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},getWeakData:function(e,t){if(!a(e,u)){if(!d(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},onFreeze:function(e){return c&&f.REQUIRED&&d(e)&&!a(e,u)&&p(e),e}};r[u]=!0},function(e,t){e.exports=_},,,function(e,t,n){e.exports=n(1208)},function(e,t,n){n(1209);var r=n(260).Object,i=e.exports=function i(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(i.sham=!0)},function(e,t,n){var r=n(80),i=n(137);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(168).f})},function(e,t,n){var r=n(68),i=n(1161),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},function(e,t,n){var r=n(68),i=n(1178),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i.call(a))},function(e,t,n){var s=n(166),c=n(1213),u=n(1147),l=n(168);e.exports=function(e,t){for(var n=c(t),r=l.f,i=u.f,a=0;a<n.length;a++){var o=n[a];s(e,o)||r(e,o,i(t,o))}}},function(e,t,n){var r=n(942),i=n(1162),a=n(1164),o=n(97);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(1152),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t,n){e.exports=n(1216)},function(e,t,n){n(1217);var r=n(260).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(80)({target:"Object",stat:!0,sham:!n(137)},{create:n(943)})},function(e,t,n){var r=n(137),o=n(168),s=n(97),c=n(1166);e.exports=r?Object.defineProperties:function(e,t){s(e);for(var n,r=c(t),i=r.length,a=0;a<i;)o.f(e,n=r[a++],t[n]);return e}},function(e,t,n){e.exports=n(1220)},function(e,t,n){n(1221);var r=n(260);e.exports=r.Object.assign},function(e,t,n){var r=n(80),i=n(1222);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var p=n(137),r=n(95),f=n(1166),_=n(1164),h=n(1157),g=n(944),m=n(1158),i=Object.assign;e.exports=!i||r(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=i({},e)[n]||f(i({},t)).join("")!=r})?function(e,t){for(var n=g(e),r=arguments.length,i=1,a=_.f,o=h.f;i<r;)for(var s,c=m(arguments[i++]),u=a?f(c).concat(a(c)):f(c),l=u.length,d=0;d<l;)s=u[d++],p&&!o.call(c,s)||(n[s]=c[s]);return n}:i},function(e,t,n){e.exports=n(1224)},function(e,t,n){n(1225);var r=n(260);e.exports=r.Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(80),i=n(68),a=n(941),o=n(137),s=n(1182),c=n(95),u=n(166),l=n(1183),d=n(96),p=n(97),f=n(944),_=n(940),h=n(1159),g=n(1140),m=n(943),y=n(1166),b=n(1162),v=n(1226),E=n(1164),I=n(1147),T=n(168),C=n(1157),B=n(167),x=n(335),S=n(1141),N=n(1149),D=n(1142),k=n(1150),A=n(79),w=n(1184),V=n(1227),P=n(1143),L=n(934),M=n(1185).forEach,F=N("hidden"),O="Symbol",R="prototype",H=A("toPrimitive"),j=L.set,W=L.getterFor(O),G=Object[R],Y=i.Symbol,J=i.JSON,z=J&&J.stringify,U=I.f,K=T.f,Z=v.f,X=C.f,q=S("symbols"),Q=S("op-symbols"),$=S("string-to-symbol-registry"),ee=S("symbol-to-string-registry"),te=S("wks"),ne=i.QObject,re=!ne||!ne[R]||!ne[R].findChild,ie=o&&c(function(){return 7!=m(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=U(G,t);r&&delete G[t],K(e,t,n),r&&e!==G&&K(G,t,r)}:K,ae=function(e,t){var n=q[e]=m(Y[R]);return j(n,{type:O,tag:e,description:t}),o||(n.description=t),n},oe=s&&"symbol"==typeof Y.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof Y},se=function(e,t,n){e===G&&se(Q,t,n),p(e);var r=h(t,!0);return p(n),u(q,r)?(n.enumerable?(u(e,F)&&e[F][r]&&(e[F][r]=!1),n=m(n,{enumerable:g(0,!1)})):(u(e,F)||K(e,F,g(1,{})),e[F][r]=!0),ie(e,r,n)):K(e,r,n)},ce=function(t,e){p(t);var n=_(e),r=y(n).concat(pe(n));return M(r,function(e){o&&!ue.call(n,e)||se(t,e,n[e])}),t},ue=function(e){var t=h(e,!0),n=X.call(this,t);return!(this===G&&u(q,t)&&!u(Q,t))&&(!(n||!u(this,t)||!u(q,t)||u(this,F)&&this[F][t])||n)},le=function(e,t){var n=_(e),r=h(t,!0);if(n!==G||!u(q,r)||u(Q,r)){var i=U(n,r);return!i||!u(q,r)||u(n,F)&&n[F][r]||(i.enumerable=!0),i}},de=function(e){var t=Z(_(e)),n=[];return M(t,function(e){u(q,e)||u(D,e)||n.push(e)}),n},pe=function(e){var t=e===G,n=Z(t?Q:_(e)),r=[];return M(n,function(e){!u(q,e)||t&&!u(G,e)||r.push(q[e])}),r};s||(x((Y=function Symbol(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,n=k(t),r=function(e){this===G&&r.call(Q,e),u(this,F)&&u(this[F],n)&&(this[F][n]=!1),ie(this,n,g(1,e))};return o&&re&&ie(G,n,{configurable:!0,set:r}),ae(n,t)})[R],"toString",function(){return W(this).tag}),C.f=ue,T.f=se,I.f=le,b.f=v.f=de,E.f=pe,o&&(K(Y[R],"description",{configurable:!0,get:function(){return W(this).description}}),a||x(G,"propertyIsEnumerable",ue,{unsafe:!0})),w.f=function(e){return ae(A(e),e)}),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:Y}),M(y(te),function(e){V(e)}),r({target:O,stat:!0,forced:!s},{"for":function(e){var t=String(e);if(u($,t))return $[t];var n=Y(t);return $[t]=n,ee[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(u(ee,e))return ee[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!o},{create:function(e,t){return t===undefined?m(e):ce(m(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:c(function(){E.f(1)})},{getOwnPropertySymbols:function(e){return E.f(f(e))}}),J&&r({target:"JSON",stat:!0,forced:!s||c(function(){var e=Y();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))})},{stringify:function(e){for(var t,n,r=[e],i=1;i<arguments.length;)r.push(arguments[i++]);if(n=t=r[1],(d(t)||e!==undefined)&&!oe(e))return l(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),r[1]=t,z.apply(J,r)}}),Y[R][H]||B(Y[R],H,Y[R].valueOf),P(Y,O),D[F]=!0},function(e,t,n){var r=n(940),i=n(1162).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(t){return o.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(260),i=n(166),a=n(1184),o=n(168).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(96),i=n(1183),a=n(79)("species");e.exports=function(e,t){var n;return i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||r(n)&&null===(n=n[a]))&&(n=undefined),new(n===undefined?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(1230)},function(e,t,n){n(1231);var r=n(260);e.exports=r.Object.getPrototypeOf},function(e,t,n){var r=n(80),i=n(95),a=n(944),o=n(1153),s=n(1186);r({target:"Object",stat:!0,forced:i(function(){o(1)}),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){e.exports=n(1233)},function(e,t,n){n(1234);var r=n(1154);e.exports=r("Array","forEach")},function(e,t,n){"use strict";var r=n(80),i=n(1235);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){"use strict";var r=n(1185).forEach,i=n(1187);e.exports=i("forEach")?function(e){return r(this,e,1<arguments.length?arguments[1]:undefined)}:[].forEach},function(e,t,n){e.exports=n(1237)},function(e,t,n){n(1238);var r=n(1154);e.exports=r("Array","indexOf")},function(e,t,n){"use strict";var r=n(80),i=n(1180).indexOf,a=n(1187),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,c=a("indexOf");r({target:"Array",proto:!0,forced:s||c},{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,1<arguments.length?arguments[1]:undefined)}})},function(e,t,n){e.exports=n(1240)},function(e,t,n){n(1241);var r=n(1154);e.exports=r("Function","bind")},function(e,t,n){n(80)({target:"Function",proto:!0},{bind:n(1242)})},function(e,t,n){"use strict";var a=n(935),o=n(96),s=[].slice,c={};e.exports=Function.bind||function(t){var n=a(this),r=s.call(arguments,1),i=function(){var e=r.concat(s.call(arguments));return this instanceof i?function(e,t,n){if(!(t in c)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";c[t]=Function("C,a","return new C("+r.join(",")+")")}return c[t](e,n)}(n,e.length,e):n.apply(t,e)};return o(n.prototype)&&(i.prototype=n.prototype),i}},function(e,t,n){e.exports=n(1244),n(1258),n(1259),n(1260),n(1261)},function(e,t,n){n(1188),n(1190),n(1193),n(1251),n(1201),n(1257);var r=n(260);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(1189),i={};i[n(79)("toStringTag")]="z",e.exports="[object z]"!==String(i)?function(){return"[object "+r(this)+"]"}:i.toString},function(e,t,n){"use strict";var i=n(1192).IteratorPrototype,a=n(943),o=n(1140),s=n(1143),c=n(1145),u=function(){return this};e.exports=function(e,t,n){var r=t+" Iterator";return e.prototype=a(i,{next:o(1,n)}),s(e,r,!1,!0),c[r]=u,e}},function(e,t,n){var r=n(96);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(940),i=n(1250),a=n(1145),o=n(934),s=n(1167),c="Array Iterator",u=o.set,l=o.getterFor(c);e.exports=s(Array,"Array",function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r=n(79),i=n(943),a=n(167),o=r("unscopables"),s=Array.prototype;s[o]==undefined&&a(s,o,i(null)),e.exports=function(e){s[o][e]=!0}},function(e,t,n){"use strict";var i,r,a,o,s=n(80),c=n(941),u=n(68),l=n(260),d=n(1194),p=n(335),f=n(1195),_=n(1143),h=n(1196),g=n(96),m=n(935),y=n(1169),b=n(933),v=n(945),E=n(1197),I=n(1198),T=n(1199).set,C=n(1255),B=n(1200),x=n(1256),S=n(1146),N=n(1155),D=n(1170),k=n(934),A=n(1165),w=n(79)("species"),V="Promise",P=k.get,L=k.set,M=k.getterFor(V),F=d,O=u.TypeError,R=u.document,H=u.process,j=u.fetch,W=H&&H.versions,G=W&&W.v8||"",Y=S.f,J=Y,z="process"==b(H),U=!!(R&&R.createEvent&&u.dispatchEvent),K="unhandledrejection",Z=A(V,function(){var e=F.resolve(1),t=function(){},n=(e.constructor={})[w]=function(e){e(t,t)};return!((z||"function"==typeof PromiseRejectionEvent)&&(!c||e["finally"])&&e.then(t)instanceof n&&0!==G.indexOf("6.6")&&-1===D.indexOf("Chrome/66"))}),X=Z||!E(function(e){F.all(e)["catch"](function(){})}),q=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},Q=function(p,f,_){var h;f.notified||(f.notified=!0,h=f.reactions,C(function(){for(var e=f.value,t=1==f.state,n=0;h.length>n;){var r,i,a,o=h[n++],s=t?o.ok:o.fail,c=o.resolve,u=o.reject,l=o.domain;try{s?(t||(2===f.rejection&&ne(p,f),f.rejection=1),!0===s?r=e:(l&&l.enter(),r=s(e),l&&(l.exit(),a=!0)),r===o.promise?u(O("Promise-chain cycle")):(i=q(r))?i.call(r,c,u):c(r)):u(e)}catch(d){l&&!a&&l.exit(),u(d)}}f.reactions=[],f.notified=!1,_&&!f.rejection&&ee(p,f)}))},$=function(e,t,n){var r,i;U?((r=R.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(i=u["on"+e])?i(r):e===K&&x("Unhandled promise rejection",n)},ee=function(n,r){T.call(u,function(){var e,t=r.value;if(te(r)&&(e=N(function(){z?H.emit("unhandledRejection",t,n):$(K,n,t)}),r.rejection=z||te(r)?2:1,e.error))throw e.value})},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){T.call(u,function(){z?H.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)})},re=function(t,n,r,i){return function(e){t(n,r,e,i)}},ie=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Q(e,t,!0))},ae=function(n,r,i,e){if(!r.done){r.done=!0,e&&(r=e);try{if(n===i)throw O("Promise can't be resolved itself");var a=q(i);a?C(function(){var e={done:!1};try{a.call(i,re(ae,n,e,r),re(ie,n,e,r))}catch(t){ie(n,e,t,r)}}):(r.value=i,r.state=1,Q(n,r,!1))}catch(t){ie(n,{done:!1},t,r)}}};Z&&(F=function Promise(t){y(this,F,V),m(t),i.call(this);var n=P(this);try{t(re(ae,this,n),re(ie,this,n))}catch(r){ie(this,n,r)}},(i=function Promise(t){L(this,{type:V,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=f(F.prototype,{then:function(e,t){var n=M(this),r=Y(I(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=z?H.domain:undefined,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},"catch":function(e){return this.then(undefined,e)}}),r=function(){var e=new i,t=P(e);this.promise=e,this.resolve=re(ae,e,t),this.reject=re(ie,e,t)},S.f=Y=function(e){return e===F||e===a?new r:J(e)},c||"function"!=typeof d||(o=d.prototype.then,p(d.prototype,"then",function(e,t){var n=this;return new F(function(e,t){o.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof j&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return B(F,j.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:Z},{Promise:F}),_(F,V,!1,!0),h(V),a=l[V],s({target:V,stat:!0,forced:Z},{reject:function(e){var t=Y(this);return t.reject.call(undefined,e),t.promise}}),s({target:V,stat:!0,forced:c||Z},{resolve:function(e){return B(c&&this===a?F:this,e)}}),s({target:V,stat:!0,forced:X},{all:function(e){var s=this,t=Y(s),c=t.resolve,u=t.reject,n=N(function(){var r=m(s.resolve),i=[],a=0,o=1;v(e,function(e){var t=a++,n=!1;i.push(undefined),o++,r.call(s,e).then(function(e){n||(n=!0,i[t]=e,--o||c(i))},u)}),--o||c(i)});return n.error&&u(n.value),t.promise},race:function(e){var n=this,r=Y(n),i=r.reject,t=N(function(){var t=m(n.resolve);v(e,function(e){t.call(n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}})},function(e,t,n){var r=n(79),i=n(1145),a=r("iterator"),o=Array.prototype;e.exports=function(e){return e!==undefined&&(i.Array===e||o[a]===e)}},function(e,t,n){var r=n(1189),i=n(1145),a=n(79)("iterator");e.exports=function(e){if(e!=undefined)return e[a]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var o=n(97);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw i!==undefined&&o(i.call(e)),a}}},function(e,t,n){var r,i,a,o,s,c,u,l,d=n(68),p=n(1147).f,f=n(933),_=n(1199).set,h=n(1170),g=d.MutationObserver||d.WebKitMutationObserver,m=d.process,y=d.Promise,b="process"==f(m),v=p(d,"queueMicrotask"),E=v&&v.value;E||(r=function(){var e,t;for(b&&(e=m.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(n){throw i?o():a=undefined,n}}a=undefined,e&&e.enter()},o=b?function(){m.nextTick(r)}:g&&!/(iphone|ipod|ipad).*applewebkit/i.test(h)?(s=!0,c=document.createTextNode(""),new g(r).observe(c,{characterData:!0}),function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(undefined),l=u.then,function(){l.call(u,r)}):function(){_.call(d,r)}),e.exports=E||function(e){var t={fn:e,next:undefined};a&&(a.next=t),i||(i=t,o()),a=t}},function(e,t,n){var r=n(68);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var r=n(80),i=n(941),a=n(1194),o=n(942),s=n(1198),c=n(1200),u=n(335);r({target:"Promise",proto:!0,real:!0},{"finally":function(t){var n=s(this,o("Promise")),e="function"==typeof t;return this.then(e?function(e){return c(n,t()).then(function(){return e})}:t,e?function(e){return c(n,t()).then(function(){throw e})}:t)}}),i||"function"!=typeof a||a.prototype["finally"]||u(a.prototype,"finally",o("Promise").prototype["finally"])},function(e,t,n){"use strict";var r=n(80),i=n(137),a=n(1153),o=n(1168),s=n(943),c=n(168),u=n(1140),l=n(945),d=n(167),p=n(97),f=n(934),_=f.set,h=f.getterFor("AggregateError"),g=function(e,t){var n=this;if(!(n instanceof g))return new g(e,t);o&&(n=o(new Error(t),a(n)));var r=[];return l(e,r.push,r),i?_(n,{errors:r,type:"AggregateError"}):n.errors=r,t!==undefined&&d(n,"message",String(t)),n};g.prototype=s(Error.prototype,{constructor:u(5,g),message:u(5,""),name:u(5,"AggregateError"),toString:u(5,function(){var e=(e=p(this).name)===undefined?"AggregateError":String(e),t=this.message;return e+": "+(t=t===undefined?"":String(t))})}),i&&c.f(g.prototype,"errors",{get:function(){return h(this).errors},configurable:!0}),r({global:!0},{AggregateError:g})},function(e,t,n){n(1201)},function(e,t,n){"use strict";var r=n(80),i=n(1146),a=n(1155);r({target:"Promise",stat:!0},{"try":function(e){var t=i.f(this),n=a(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},function(e,t,n){"use strict";var r=n(80),d=n(935),p=n(942),i=n(1146),a=n(1155),f=n(945),_="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var c=this,t=i.f(c),u=t.resolve,l=t.reject,n=a(function(){var r=d(c.resolve),i=[],a=0,o=1,s=!1;f(e,function(e){var t=a++,n=!1;i.push(undefined),o++,r.call(c,e).then(function(e){n||s||(s=!0,u(e))},function(e){n||s||(n=!0,i[t]=e,--o||l(new(p("AggregateError"))(i,_)))})}),--o||l(new(p("AggregateError"))(i,_))});return n.error&&l(n.value),t.promise}})},function(e,t,n){e.exports=n(1263)},function(e,t,n){n(1264);var r=n(1154);e.exports=r("String","replace")},function(e,t,n){"use strict";var r=n(1265),T=n(97),C=n(944),B=n(1151),x=n(1152),a=n(1148),S=n(1267),N=n(1268),D=Math.max,k=Math.min,A=Math.floor,w=/\$([$&'`]|\d\d?|<[^>]*>)/g,V=/\$([$&'`]|\d\d?)/g;r("replace",2,function(i,E,I){return[function(e,t){var n=a(this),r=e==undefined?undefined:e[i];return r!==undefined?r.call(e,n,t):E.call(String(n),e,t)},function(e,t){var n=I(E,e,this,t);if(n.done)return n.value;var r=T(e),i=String(this),a="function"==typeof t;a||(t=String(t));var o,s=r.global;s&&(o=r.unicode,r.lastIndex=0);for(var c=[];;){var u=N(r,i);if(null===u)break;if(c.push(u),!s)break;""===String(u[0])&&(r.lastIndex=S(i,B(r.lastIndex),o))}for(var l,d="",p=0,f=0;f<c.length;f++){u=c[f];for(var _=String(u[0]),h=D(k(x(u.index),i.length),0),g=[],m=1;m<u.length;m++)g.push((l=u[m])===undefined?l:String(l));var y,b=u.groups,v=a?(y=[_].concat(g,h,i),b!==undefined&&y.push(b),String(t.apply(undefined,y))):function(a,o,s,c,u,e){var l=s+a.length,d=c.length,t=V;u!==undefined&&(u=C(u),t=w);return E.call(e,t,function(e,t){var n;switch(t.charAt(0)){case"$":return"$";case"&":return a;case"`":return o.slice(0,s);case"'":return o.slice(l);case"<":n=u[t.slice(1,-1)];break;default:var r=+t;if(0==r)return e;if(d<r){var i=A(r/10);return 0===i?e:i<=d?c[i-1]===undefined?t.charAt(1):c[i-1]+t.charAt(1):e}n=c[r-1]}return n===undefined?"":n})}(_,i,h,g,b,t);p<=h&&(d+=i.slice(p,h)+v,p=h+_.length)}return d+i.slice(p)}]})},function(e,t,n){"use strict";var d=n(167),p=n(335),f=n(95),_=n(79),h=n(1202),g=_("species"),m=!f(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),y=!f(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(n,e,t,r){var a,i,o,s,c=_(n),u=!f(function(){var e={};return e[c]=function(){return 7},7!=""[n](e)}),l=u&&!f(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===n&&(t.constructor={},t.constructor[g]=function(){return t}),t[c](""),!e});u&&l&&("replace"!==n||m)&&("split"!==n||y)||(a=/./[c],o=(i=t(c,""[n],function(e,t,n,r,i){return t.exec===h?u&&!i?{done:!0,value:a.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}))[0],s=i[1],p(String.prototype,n,o),p(RegExp.prototype,c,2==e?function(e,t){return s.call(e,this,t)}:function(e){return s.call(e,this)}),r&&d(RegExp.prototype[c],"sham",!0))}},function(e,t,n){"use strict";var r=n(97);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(1191).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var i=n(933),a=n(1202);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},function(e,t,n){n(1270),n(1188),n(1190),n(1193);var r=n(260);e.exports=r.Map},function(e,t,n){"use strict";var r=n(1271),i=n(1274);e.exports=r("Map",function(t){return function Map(){return t(this,arguments.length?arguments[0]:undefined)}},i,!0)},function(e,t,n){"use strict";var g=n(80),m=n(68),y=n(1165),b=n(335),v=n(1203),E=n(945),I=n(1169),T=n(96),C=n(95),B=n(1197),x=n(1143),S=n(1273);e.exports=function(r,e,t,i,a){var n,o,s,c,u,l=m[r],d=l&&l.prototype,p=l,f=i?"set":"add",_={},h=function(e){var n=d[e];b(d,e,"add"==e?function(e){return n.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(a&&!T(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return a&&!T(e)?undefined:n.call(this,0===e?0:e)}:"has"==e?function(e){return!(a&&!T(e))&&n.call(this,0===e?0:e)}:function(e,t){return n.call(this,0===e?0:e,t),this})};return y(r,"function"!=typeof l||!(a||d.forEach&&!C(function(){(new l).entries().next()})))?(p=t.getConstructor(e,r,i,f),v.REQUIRED=!0):y(r,!0)&&(o=(n=new p)[f](a?{}:-0,1)!=n,s=C(function(){n.has(1)}),c=B(function(e){new l(e)}),u=!a&&C(function(){for(var e=new l,t=5;t--;)e[f](t,t);return!e.has(-0)}),c||(((p=e(function(e,t){I(e,p,r);var n=S(new l,e,p);return t!=undefined&&E(t,n[f],n,i),n})).prototype=d).constructor=p),(s||u)&&(h("delete"),h("has"),i&&h("get")),(u||o)&&h(f),a&&d.clear&&delete d.clear),_[r]=p,g({global:!0,forced:p!=l},_),x(p,r),a||t.setStrong(p,r,i),p}},function(e,t,n){var r=n(95);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var a=n(96),o=n(1168);e.exports=function(e,t,n){var r,i;return o&&"function"==typeof(r=t.constructor)&&r!==n&&a(i=r.prototype)&&i!==n.prototype&&o(e,i),e}},function(e,t,n){"use strict";var u=n(168).f,l=n(943),d=n(1195),p=n(1144),f=n(1169),_=n(945),o=n(1167),s=n(1196),h=n(137),g=n(1203).fastKey,r=n(934),m=r.set,y=r.getterFor;e.exports={getConstructor:function(e,n,r,i){var a=e(function(e,t){f(e,a,n),m(e,{type:n,index:l(null),first:undefined,last:undefined,size:0}),h||(e.size=0),t!=undefined&&_(t,e[i],e,r)}),s=y(n),o=function(e,t,n){var r,i,a=s(e),o=c(e,t);return o?o.value=n:(a.last=o={index:i=g(t,!0),key:t,value:n,previous:r=a.last,next:undefined,removed:!1},a.first||(a.first=o),r&&(r.next=o),h?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},c=function(e,t){var n,r=s(e),i=g(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return d(a.prototype,{clear:function(){for(var e=s(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=undefined),delete t[n.index],n=n.next;e.first=e.last=undefined,h?e.size=0:this.size=0},"delete":function(e){var t,n,r=s(this),i=c(this,e);return i&&(t=i.next,n=i.previous,delete r.index[i.index],i.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first==i&&(r.first=t),r.last==i&&(r.last=n),h?r.size--:this.size--),!!i},forEach:function(e){for(var t,n=s(this),r=p(e,1<arguments.length?arguments[1]:undefined,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),d(a.prototype,r?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),h&&u(a.prototype,"size",{get:function(){return s(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",i=y(t),a=y(r);o(e,t,function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:undefined})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})},n?"entries":"values",!n,!0),s(t)}}},function(t,e,n){(function(e){t.exports=e.Fix=n(1276)}).call(this,n(10))},function(e,t,n){(function(J){function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(function(e,f){"use strict";f="default"in f?f["default"]:f;var t=void 0,h={$accessors:t,$vbthis:t,$vbsetter:t,$vm:t},p=["$accessors","$vbthis","$vbsetter","$vm"],r=[];function s(e,t,n){}function n(e){return"function"==typeof e&&/native code/.test(e.toString())}f.each(["slice","splice"],function(e){r[e]=Array.prototype[e]}),Array.prototype.splice=function(){this.__ref__=c();for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.splice.apply(this,t)};var i=/\d\.\d{4}/;function c(e){var t=0<arguments.length&&e!==undefined?e:"bi";return String(Math.random()+Math.random()).replace(i,t)}"undefined"!=typeof navigator&&/(msie|trident)/i.test(navigator.userAgent.toLowerCase())&&function(){if("undefined"==typeof navigator)return;var e=navigator.userAgent.toLowerCase(),t=e.match(/(?:msie\s([\w.]+))/),n=e.match(/(?:trident.*rv:([\w.]+))/);t&&n&&t[1]&&n[1]?Math.max(+t[1],+n[1]):t&&t[1]?t[1]:n&&n[1]&&n[1]}();var a=Object.prototype.toString;function g(e){return"[object Object]"===a.call(e)}var o=/[^\w.$]/;function u(e){var t=void 0;if(f.isArray(e)){t=[];for(var n=0,r=e.length;n<r;n++)t[n]=u(e[n])}else if(e&&g(e))for(var i in t={},e)-1===p.indexOf(i)&&(t[i]=u(e[i]));else t=e;return t}function l(e){if(null===e)return null;if(Array.isArray(e)){var t=[].concat(e);return e.__ref__!==undefined&&(t.__ref__=e.__ref__),t}return u(e)}var d,m,y,b,v,E,I=(v=!(b=[]),E=void 0,E=void 0!==J&&n(J)?function E(){J(T)}:"undefined"==typeof MessageChannel||!n(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString()?"undefined"!=typeof Promise&&n(Promise)?(d=Promise.resolve(),function E(){d.then(T)}):function E(){setTimeout(T,0)}:(m=new MessageChannel,y=m.port2,m.port1.onmessage=T,function E(){y.postMessage(1)}),function(t,n){var r=void 0;if(b.push(function(){if(t)try{t.call(n)}catch(e){console.error(e)}else r&&r(n)}),v||(v=!0,E()),!t&&"undefined"!=typeof Promise)return new Promise(function(e,t){r=e})});function T(){v=!1;for(var e=b.slice(0),t=b.length=0;t<e.length;t++)e[t]()}function C(e,t,n){"object"==typeof t&&(n=t,t=e,e=function(){return t.apply(this,arguments)});var r=function r(){},i=t.prototype;return r.prototype=i,e.prototype=new r,e.superclass=i,f.extend(e.prototype,n,{superclass:t}),e}Object.prototype.toString,function E$q(t,n,r,i){t instanceof f&&t._wrapped,n instanceof f&&n._wrapped;var a=D$q.call(t);if(a!==D$q.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return B$q.valueOf.call(t)===B$q.valueOf.call(n)}var o="[object Array]"===a;if(!o){if("object"!=typeof t||"object"!=typeof n)return!1;var s=t.constructor,c=n.constructor;if(s!==c&&!(f.isFunction(s)&&s instanceof s&&f.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}0;for(var u=(r||[]).length;u--;)if(r[u]===t)return i[u]===n;if(r.push(t),i.push(n),o){if(t.length!==n.length)return!1;for(;u--;)if(!F$q(t[u],n[u],r,i))return!1}else{var l,d=f.keys(t),u=d.length;if(f.keys(n).length!==u)return!1;for(;u--;){if(d[u],-1!==p.indexOf(l))return!0;if(-1===Object.keys(n).indexOf(l)||!F$q(t[l],n[l],r,i))return!1}}return r.pop(),i.pop(),!0},function F$q(t,n,r,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;return("function"==a||"object"==a||"object"==typeof n)&&("function"==a||E$q(t,n,r,i))};function B(e,t){if(e===t)return 1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return;var n,r,i=void 0,a=void 0;if(Array.isArray(e)){if((i=e.length)!==t.length)return;for(a=i;0!=a--;)if(!B(e[a],t[a]))return;return 1}if(e.constructor===RegExp)return 1;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((i=(r=Object.keys(e)).length)!==Object.keys(t).length)return;for(a=i;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,r[a]))return;for(a=i;0!=a--;)if(n=r[a],-1===p.indexOf(n)&&!B(e[n],t[n]))return;return 1}return"function"==typeof e||e!=e&&t!=t}var x={};var S=void 0,N={"||":S,"&&":S,"(":S,")":S};function D(i,e,a){var s=3<arguments.length&&arguments[3]!==undefined?arguments[3]:{},c=i;!c.$watch&&c.$vm&&(c=c.$vm),g(a)&&(a=(s=a).handler),"string"==typeof a&&(a=c[a]),(s=s||{}).user=!0;var o=void 0;if(f.isFunction(e)||!(o=e.match(/[a-zA-Z0-9_.*]+|[|][|]|[&][&]|[(]|[)]/g))||1===o.length&&!/\*/.test(e))return c.$watch(e,a,s),[];var u=o.slice(),l=!1,d=!1,p=function p(e,t,n,r){!0!==l&&(u[e]=!0,function(e){for(var t="",n=0,r=e.length;n<r;n++)f.isBoolean(e[n])||f.has(N,e[n])?t+=e[n]:t+="false";return new Function("return "+t)()}(u)&&(l=!0,a.call(i,t,n,r)),s&&s.sync?(d=l=!1,u=o.slice()):d||(d=!0,I(function(){d=l=!1,u=o.slice()})))};return f.each(o,function(e,r){if(!f.has(N,e))if(/^[1-9a-zA-Z.]+(\*\*$|\*$)/.test(e)||"**"===e){var t=/\*\*$/.test(e);e=t?e.replace(".**",""):e.replace(".*","");var n=t?e:function(){var n={};return f.each(c.model,function(e,t){t in h||(n[t]=e)}),n};c.$watch(n,function(e,t,n){p(r,e,t,f.extend({index:r},n))},f.extend(s,{deep:t}))}else{if(/\*\*$|\*$/.test(e))throw new Error("not support");var a,o;/\*/.test(e)?(a=e.split("."),o=function o(){for(var t={root:c.model},i=function i(e,n){var r={};"*"===a[n]?f.each(t,function(e,n){f.each(e,function(e,t){n+t in h||(r[n+t]=e)})}):f.each(t,function(e,t){t+a[n]in h||(r[t+a[n]]=e[a[n]])}),t=r},e=0,n=a.length;e<n;e++)i(n,e);return t},c.$watch(o,function(e,t,n){p(r,e,t,f.extend({index:r},n))},s)):c.$watch(e,function(e,t,n){p(r,e,t,f.extend({index:r},n))},s)}}),[]}var k={},A={},w=function w(){},V=(P.prototype.getInstance=function(){return this},P);function P(e){var t=e.get,n=e.last,r=e.listener,i=e.sync,a=(e.deep,e.id);return z(this,P),this.id=a,this.get=t,this.last=l(n),this.listener=r||w,this.sync=i||!1,{id:this.id,get:this.get,last:this.last,listener:this.listener}}function L(e,t,n,r){var i=3<arguments.length&&r!==undefined?r:{};g(n)&&(n=(i=n).handler),"string"==typeof n&&(n=e[n]);var a=f.isFunction(t)?f.bind(t,e):f.bind(function(){return function(e){if(!o.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}("model."+t)(e)},e);return new V({get:a,listener:f.bind(n,e),last:a(),sync:i.sync,deep:i.deep,id:i.id})}function M(t,n){return function(){var e=t.apply(n,[].concat(Array.prototype.slice.call(arguments)));return n.$digest(),e}}function F(r,e){var t=1<arguments.length&&e!==undefined?e:[];f.each(t.reverse(),function(e){var t=x[e];for(var n in t)"function"==typeof t[n]&&(f.has(r,n)||(r[n]=M(t[n],r)))})}function O(i,e){var r=i._contextWatchers={};f.each(e,function(t){var n=function(r){for(var e=i._parent;e;){if(e.childContext&&-1<e.childContext.indexOf(r))return e.$watch(r,function(e,t,n){i._contextWatchers[r]&&(i.model[r]=e,i._contextWatchers[r].last=l(e),i.$digest())},{id:i._modelHashId+"-"+r}),{p:e,value:e.model[r]};e=e._parent}}(t);n&&(i.model[t]=n.p?n.p.model[t]:undefined,r[t]=new V({id:n.p._modelHashId+"-"+t,get:function(){return i.model[t]},last:i.model[t],listener:f.bind(function(e){n.p.model[t]=e,n.p.$digest()},n.p)}))})}function R(e){for(var t=!0,n=!0,r=!0,i=10;t&&0<i;i--)t=function(r){var i=!1;return f.each(r._stateWatchers,function(e,t){var n=e.get();B(n,e.last)||(r.model[t]=n,i=!0,e.last=l(n))}),i}(e);for(var a=10;n&&0<a;a--)n=function(a){var o=!1;return f.each(a._contextWatchers,function(e,t){var n,r=e.get(),i=e.last;B(r,i)||(n={id:e.id,cb:f.bind(e.listener,a,r,i,a)},a.contextListeners.push(n),a.model[t]=r,o=!0,e.last=l(r))}),o}(e);for(var o=10;r&&0<o;o--)r=function(i){var a=!1,o=[],s=[];return f.each(i._computedOrder,function(e){var t=i._computedWatchers[e];try{var n=t.get();B(n,t.last)?s.push(e):(i.model[e]=n,a=!0,o.push(e),t.last=l(n))}catch(r){a=!0,o.push(e)}}),i._computedOrder=[].concat(s,o),a}(e)}var H,j=(H={},function(e,t){var n=e.id,r=e.cb;n&&H[n]||(I(function(){r(),H[n]=!1},t),H[n]=!0)});var W=(G.prototype._constructor=function(e){this.alive=!0,this.options=e||{},this.model={$vm:this},this._modelHashId=c("model"),this.syncListeners=[],this.asyncListeners=[],this.contextListeners=[],this._parent=G.target;var t=f.isFunction(this.state)?this.state():this.state,n=this.computed,r=this.context,i=(this.childContext,this.watch),a=this.actions,o=this.mixins;r&&O(this,r),F(this,o),this.init(),function(n,r){var i=n._stateWatchers={};for(var e in r)n.model[e]=r[e];var a=function a(e){var t=r[e];i[e]=new V({id:n._modelHashId+"-"+e,get:function(){return n.model[e]},last:t,listener:n.options.defaultCallback||w})};for(var t in r)a(t)}(this,t),function(e,t){var n=e._computedWatchers={},r=e._computedOrder=[];for(var i in t){var a=t[i],o=e;r.push(i),n[i]=new V({id:e._modelHashId+"-"+i,get:f.bind(a,o),last:undefined,listener:w})}}(this,n),R(this),function(e,t){for(var n in e._watchers||(e._watchers=[]),t){var r=t[n];if(f.isArray(r))for(var i=0;i<r.length;i++)D(e,n,r[i]);else D(e,n,r)}}(this,i),function(e,t){for(var n in t)e[n]=null==t[n]?s:M(t[n],e)}(this,a),this.created&&this.created(),k[this._modelHashId]=this},G.prototype._init=function(){},G.prototype.init=function(){this._init()},G.prototype.destroy=function(){this.alive=!1,k[this._modelHashId]=null,this._watchers&&(this._watchers=[]),this._computedWatchers&&(this._computedWatchers=[]),this._stateWatchers&&(this._stateWatchers=[]),this._contextWatchers&&(this._contextWatchers=[]),this.destroyed&&this.destroyed()},G.prototype.$watch=function(e,t,n){var r=L(this,e,t,n);this._watchers.push(r)},G.prototype.$digest=function(){R(this),function(i){var a=[].concat(i.syncListeners||[]),o=[].concat(i.asyncListeners||[]),e=[].concat(i.contextListeners||[]);i.asyncListeners=[],i.syncListeners=[];var t=[].concat(i._watchers);f.each(t,function(e){var t,n,r;e&&(B(t=e.get(),n=e.last)||(r={id:e.id,cb:f.bind(e.listener,i,t,n,i)},!0===e.sync?a.push(r):o.push(r),e.last=l(t)))}),f.each(a,function(e){e.cb()}),0===e.length&&0===o.length||I(function(){f.each(BI.uniqBy(e.reverse(),"id").reverse(),function(e){e.cb()}),f.each(o,function(e){e.cb()})})}(this),this.options.define||f.each(A,function(e){e&&e.$digest&&e.$digest()})},G.prototype.getModelID=function(){return this._modelHashId},G);function G(){z(this,G)}function Y(){return k}e.version="2.0",e.$$skipArray=h,e.mixin=function(e,t){x[e]=_.cloneDeep(t)},e.toJSON=u,e.nextListener=j,e.Model=W,e.getAllModelInstances=Y,e.refreshAll=function(){f.each(k,function(e){e&&e.$digest&&e.$digest()})},e.define=function(e){var t=new(C(W,{state:function(){return e}}));return t._constructor({define:!0}),(A[t.getModelID()]=t).model},e.inherit=C,e.watch=D,e.__esModule=!0})(t,(n(1204),n(1204)))}).call(this,n(82).setImmediate)},function(e,t){!function(){function s(e,t,n,r){return BI.isPlainObject(n)&&(n=(r=n).handler),r=r||{},Fix.watch(e.model,t,_.bind(n,e),BI.extend(r,{store:e.store}))}var n=null,t=[];function i(e){n&&t.push(n),Fix.Model.target=n=e}function a(){Fix.Model.target=n=t.pop()}var o=Fix.watch;function r(){var e,t=!1;return _global.Fix&&this._store&&((e=function(e){if(null!=n)return n;for(var t=e=e||BI.Widget.context;t&&!(t instanceof Fix.Model||t.store||t.__cacheStore);)t=t._parent||t.options&&t.options.element;return t?t instanceof Fix.Model?e.__cacheStore=t:(e.__cacheStore=t.store||t.__cacheStore,t.__cacheStore||t.store):void 0}(this.options.context||this._parent||this.options.element))&&(i(e),t=!0),this.store=this._store(),this.store&&(this.store._widget=this),t&&a(),t=!1,i(this.store),this.store instanceof Fix.Model?this.model=this.store.model:this.model=this.store,t=!0),t}Fix.watch=function(e,t,n,r){return BI.isPlainObject(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),o.call(this,e,t,function(){r&&r.store&&i(r.store);var e=n.apply(this,arguments);return r&&r.store&&a(),e},r)},_.each(["populate","addItems","prependItems"],function(e){var t=BI.Loader.prototype[e];BI.Loader.prototype[e]=function(){BI.Widget.pushContext(this);var e=t.apply(this,arguments);return BI.Widget.popContext(),e}}),BI.Widget.prototype._initRender=function(){this.beforeInit?(this.__asking=!0,this.beforeInit(BI.bind(function(){this.model&&this.model.$vm&&this.model.$vm.$digest(),this._render()},this)),!0===this.__asking&&(this.__async=!0)):this._render()};var c=BI.Widget.prototype._init;BI.Widget.prototype._init=function(){var e=r.call(this);c.apply(this,arguments),e&&a()};var u=BI.Widget.prototype._render;BI.Widget.prototype._render=function(){var e=!1;_global.Fix&&this._store&&(e=!0,i(this.store),function(o,e){for(var t in o._watchers||(o._watchers=[]),e){var n=e[t];if(BI.isArray(n))for(var r=0;r<n.length;r++)o._watchers.push(s(o,t,n[r]));else o._watchers.push(s(o,t,n))}BI.each(o.$watchDelayCallbacks,function(e,t){var n=t[0],r=t[1];for(var i in BI.isKey(n)&&(i=n,(n={})[i]=r),n){var a=n[i];if(BI.isArray(a))for(e=0;e<a.length;e++)o._watchers.push(s(o,i,a[e]));else o._watchers.push(s(o,i,a))}})}(this,this.watch)),u.apply(this,arguments),e&&a()};var e=BI.Widget.prototype.__d;BI.Widget.prototype.__d=function(){e.apply(this,arguments),this.store&&BI.isFunction(this.store.destroy)&&this.store.destroy(),BI.each(this._watchers,function(e,t){t=BI.isArray(t)?t:[t],BI.each(t,function(e,t){t()})}),this._watchers&&(this._watchers=[]),this.store&&(this.store._parent&&(this.store._parent=null),this.store._widget&&(this.store._widget=null),this.store=null),delete this.__cacheStore},_.each(["_mount"],function(e){var n=BI.Widget.prototype[e];n&&(BI.Widget.prototype[e]=function(){this.store&&i(this.store);try{var e=n.apply(this,arguments)}catch(t){console.error(t)}return this.store&&a(),e})});var l,d,p,f=function(){BI.nextTick(function(){Fix&&Fix.refreshAll&&Fix.refreshAll()})};$(document).ajaxComplete(f),BI.history&&(l=BI.history.navigate,BI.history.navigate=function(){l.apply(this,arguments),BI.defer(function(){f()},200)},d=window.history.back,window.history.back=function(){d.apply(this,arguments),BI.defer(function(){f()},200)}),BI.Router&&(p=BI.Router.prototype.execute,BI.Router.prototype.execute=function(){p.apply(this,arguments),f()}),_.each(["each","map","reduce","reduceRight","find","filter","reject","every","all","some","any","max","min","sortBy","groupBy","indexBy","countBy","partition","keys","allKeys","values","pairs","invert","mapObject","findKey","pick","omit","tap"],function(e){var r=BI[e];BI[e]=function(e,n,t){return"function"==typeof n?r(e,function(e,t){if(!(e in Fix.$$skipArray))return n.apply(this,arguments)},t):r.apply(this,arguments)}}),BI.isEmpty=function(e){return BI.isPlainObject(e)&&e.__ob__?0===BI.keys(e).length:_.isEmpty(e)},BI.keys=function(e){for(var t=_.keys(e),n=[],r=0;r<t.length;r++)t[r]in Fix.$$skipArray||n.push(t[r]);return n},BI.values=function(e){for(var t=BI.keys(obj),n=t.length,r=[],i=0;i<n;i++)r[i]=obj[t[i]];return r},BI.extend=function(){var e=Array.prototype.slice.call(arguments);if(e.length<1)return{};for(var n=e[0],t=1;t<e.length;)BI.each(e[t],function(e,t){n[e]=t}),t++;return n},BI.size=function(e){return BI.isPlainObject(e)&&e.__ob__?BI.keys(e).length:_.size(e)},BI.isEmptyObject=function(e){return 0===BI.size(e)},BI.deepClone=function(e){return Fix.toJSON(e)},Fix.set=function(e,t,n){try{e&&(e[t]=n)}catch(r){}finally{return _.cloneDeep(e)}},Fix.del=function(e,t){try{delete e[t]}catch(n){}finally{return _.cloneDeep(e)}}}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){n(169),n(882),n(883),n(884),n(885),n(886),n(887),n(1207),n(1215),n(1219),n(1223),n(1229),n(1232),n(1236),n(1239),n(1243),n(1262),n(1269),n(888),n(889),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(170),n(173),n(175),n(369),n(370),n(176),n(177),n(178),n(179),n(180),n(181),n(371),n(372),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(373),n(374),n(375),n(376),n(377),n(190),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(191),n(389),n(192),n(193),n(194),n(195),n(196),n(197),n(390),n(391),n(392),n(393),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(394),n(198),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(199),n(200),n(201),n(1275),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(900),n(901),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(902),n(903),n(904),n(905),n(906),n(907),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(908),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(909),n(910),n(911),n(912),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(928),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(929),n(930),n(931),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(597),n(598),n(599),n(600),n(601),n(602),n(603),n(604),n(605),n(606),n(607),n(608),n(609),n(610),n(611),n(612),n(613),n(614),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628),n(629),n(630),n(631),n(632),n(633),n(634),n(635),n(636),n(637),n(638),n(639),n(640),n(641),n(642),n(643),n(644),n(645),n(646),n(647),n(648),n(649),n(650),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(677),n(678),n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(899),n(1277),n(932),n(1171),n(1172),n(1173),n(1174),n(1175),n(1176),n(1156),e.exports=n(757)}]);