var dbits,canary=0xdeadbeefcafe,j_lm=15715070==(16777215&canary);function BigInteger(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function nbi(){return new BigInteger(null)}function am1(t,e,r,n,i,o){for(;--o>=0;){var a=e*this[t++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i}function am2(t,e,r,n,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var l=32767&this[t],c=this[t++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+r[n]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),r[n++]=1073741823&l}return i}function am3(t,e,r,n,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var l=16383&this[t],c=this[t++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+r[n]+i)>>28)+(u>>14)+s*c,r[n++]=268435455&l}return i}j_lm&&"Microsoft Internet Explorer"==navigator.appName?(BigInteger.prototype.am=am2,dbits=30):j_lm&&"Netscape"!=navigator.appName?(BigInteger.prototype.am=am1,dbits=26):(BigInteger.prototype.am=am3,dbits=28),BigInteger.prototype.DB=dbits,BigInteger.prototype.DM=(1<=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function bnpFromInt(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+DV:this.t=0}function nbv(t){var e=nbi();return e.fromInt(t),e}function bnpFromString(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var n=t.length,i=!1,o=0;--n>=0;){var a=8==r?255&t[n]:intAt(t,n);a<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}8==r&&128&t[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t}function bnToString(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(64==t)e=6;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<0)for(s>s)>0&&(i=!0,o=int2char(r));a>=0;)s>(s+=this.DB-e)):(r=this[a]>>(s-=e)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=int2char(r));return i?o:"0"}function bnNegate(){var t=nbi();return BigInteger.ZERO.subTo(this,t),t}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0}function nbits(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function bnBitLength(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s}function bnpDRShiftTo(t,e){for(var r=t;r=0;--r)e[r+a+1]=this[r]>>i|s,s=(this[r]&o)<=0;--r)e[r]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()}function bnpRShiftTo(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<>n;for(var a=r+1;a>n;n>0&&(e[this.t-r-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()}function bnpMultiplyTo(t,e){var r=this.abs(),n=t.abs(),i=r.t;for(e.t=i+n.t;--i>=0;)e[i]=0;for(i=0;i=0;)t[r]=0;for(r=0;r=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()}function bnpDivRemTo(t,e,r){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t0?(n.lShiftTo(l,o),i.lShiftTo(l,r)):(n.copyTo(o),i.copyTo(r));var c=o.t,u=o[c-1];if(0!=u){var d=u*(1<1?o[c-2]>>this.F2:0),p=this.FV/d,h=(1<=0&&(r[r.t++]=1,r.subTo(_,r)),BigInteger.ONE.dlShiftTo(c,_),_.subTo(o,o);o.t=0;){var b=r[--g]==u?this.DM:Math.floor(r[g]*p+(r[g-1]+f)*h);if((r[g]+=o.am(0,b,r,m,0,c))0&&r.rShiftTo(l,r),a<0&&BigInteger.ZERO.subTo(r,r)}}}function bnMod(t){var e=nbi();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(BigInteger.ZERO)>0&&t.subTo(e,e),e}function Classic(t){this.m=t}function cConvert(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function cRevert(t){return t}function cReduce(t){t.divRemTo(this.m,null,t)}function cMulTo(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function cSqrTo(t,e){t.squareTo(e),this.reduce(e)}function bnpInvDigit(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e}function Montgomery(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e}function montRevert(t){var e=nbi();return t.copyTo(e),this.reduce(e),e}function montReduce(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function montSqrTo(t,e){t.squareTo(e),this.reduce(e)}function montMulTo(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function bnpIsEven(){return 0==(this.t>0?1&this[0]:this.s)}function bnpExp(t,e){if(t>4294967295||t<1)return BigInteger.ONE;var r=nbi(),n=nbi(),i=e.convert(this),o=nbits(t)-1;for(i.copyTo(r);--o>=0;)if(e.sqrTo(r,n),(t&1<0)e.mulTo(n,i,r);else{var a=r;r=n,n=a}return e.revert(r)}function bnModPowInt(t,e){var r;return r=t<256||e.isEven()?new Classic(e):new Montgomery(e),this.exp(t,r)}function bnClone(){var t=nbi();return this.copyTo(t),t}function bnIntValue(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return 0==this.t?this.s:this[0]<<16>>16}function bnpChunkSize(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function bnSigNum(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function bnpToRadix(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=nbv(r),i=nbi(),o=nbi(),a="";for(this.divRemTo(n,i,o);i.signum()>0;)a=(r+o.intValue()).toString(t).substr(1)+a,i.divRemTo(n,i,o);return o.intValue().toString(t)+a}function bnpFromRadix(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),n=Math.pow(e,r),i=!1,o=0,a=0,s=0;s=r&&(this.dMultiply(n),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),i&&BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(BigInteger.ONE.shiftLeft(t-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(BigInteger.ONE.shiftLeft(t-1),this);else{var n=new Array,i=7&t;n.length=1+(t>>3),e.nextBytes(n),i>0?n[0]&=(1<0)for(n>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<=0;)n<8?(r=(this[t]&(1<>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),128&r&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e}function bnEquals(t){return 0==this.compareTo(t)}function bnMin(t){return this.compareTo(t)<0?this:t}function bnMax(t){return this.compareTo(t)>0?this:t}function bnpBitwiseTo(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function bnGetLowestSetBit(){for(var t=0;t=this.t?0!=this.s:!!(this[e]&1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()}function bnAdd(t){var e=nbi();return this.addTo(t,e),e}function bnSubtract(t){var e=nbi();return this.subTo(t,e),e}function bnMultiply(t){var e=nbi();return this.multiplyTo(t,e),e}function bnSquare(){var t=nbi();return this.squareTo(t),t}function bnDivide(t){var e=nbi();return this.divRemTo(t,e,null),e}function bnRemainder(t){var e=nbi();return this.divRemTo(t,null,e),e}function bnDivideAndRemainder(t){var e=nbi(),r=nbi();return this.divRemTo(t,e,r),new Array(e,r)}function bnpDMultiply(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function bnpDAddOffset(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}}function NullExp(){}function nNop(t){return t}function nMulTo(t,e,r){t.multiplyTo(e,r)}function nSqrTo(t,e){t.squareTo(e)}function bnPow(t){return this.exp(t,new NullExp)}function bnpMultiplyLowerTo(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i=0;)r[n]=0;for(n=Math.max(e-this.t,0);n2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=nbi();return t.copyTo(e),this.reduce(e),e}function barrettRevert(t){return t}function barrettReduce(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function barrettSqrTo(t,e){t.squareTo(e),this.reduce(e)}function barrettMulTo(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function bnModPow(t,e){var r,n,i=t.bitLength(),o=nbv(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new Classic(e):e.isEven()?new Barrett(e):new Montgomery(e);var a=new Array,s=3,l=r-1,c=(1<1){var u=nbi();for(n.sqrTo(a[1],u);s<=c;)a[s]=nbi(),n.mulTo(u,a[s-2],a[s]),s+=2}var d,p,h=t.t-1,f=!0,g=nbi();for(i=nbits(t[h])-1;h>=0;){for(i>=l?d=t[h]>>i-l&c:(d=(t[h]&(1<0&&(d|=t[h-1]>>this.DB+i-l)),s=r;!(1&d);)d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--h),f)a[d].copyTo(o),f=!1;else{for(;s>1;)n.sqrTo(o,g),n.sqrTo(g,o),s-=2;s>0?n.sqrTo(o,g):(p=o,o=g,g=p),n.mulTo(g,a[d],o)}for(;h>=0&&!(t[h]&1<0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r}function bnpModInt(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r}function bnModInverse(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return BigInteger.ZERO;for(var r=t.clone(),n=this.clone(),i=nbv(1),o=nbv(0),a=nbv(0),s=nbv(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(t,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;n.isEven();)n.rShiftTo(1,n),e?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(t,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);r.compareTo(n)>=0?(r.subTo(n,r),e&&i.subTo(a,i),o.subTo(s,o)):(n.subTo(r,n),e&&a.subTo(i,a),s.subTo(o,s))}return 0!=n.compareTo(BigInteger.ONE)?BigInteger.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s}Classic.prototype.convert=cConvert,Classic.prototype.revert=cRevert,Classic.prototype.reduce=cReduce,Classic.prototype.mulTo=cMulTo,Classic.prototype.sqrTo=cSqrTo,Montgomery.prototype.convert=montConvert,Montgomery.prototype.revert=montRevert,Montgomery.prototype.reduce=montReduce,Montgomery.prototype.mulTo=montMulTo,Montgomery.prototype.sqrTo=montSqrTo,BigInteger.prototype.copyTo=bnpCopyTo,BigInteger.prototype.fromInt=bnpFromInt,BigInteger.prototype.fromString=bnpFromString,BigInteger.prototype.clamp=bnpClamp,BigInteger.prototype.dlShiftTo=bnpDLShiftTo,BigInteger.prototype.drShiftTo=bnpDRShiftTo,BigInteger.prototype.lShiftTo=bnpLShiftTo,BigInteger.prototype.rShiftTo=bnpRShiftTo,BigInteger.prototype.subTo=bnpSubTo,BigInteger.prototype.multiplyTo=bnpMultiplyTo,BigInteger.prototype.squareTo=bnpSquareTo,BigInteger.prototype.divRemTo=bnpDivRemTo,BigInteger.prototype.invDigit=bnpInvDigit,BigInteger.prototype.isEven=bnpIsEven,BigInteger.prototype.exp=bnpExp,BigInteger.prototype.toString=bnToString,BigInteger.prototype.negate=bnNegate,BigInteger.prototype.abs=bnAbs,BigInteger.prototype.compareTo=bnCompareTo,BigInteger.prototype.bitLength=bnBitLength,BigInteger.prototype.mod=bnMod,BigInteger.prototype.modPowInt=bnModPowInt,BigInteger.ZERO=nbv(0),BigInteger.ONE=nbv(1),NullExp.prototype.convert=nNop,NullExp.prototype.revert=nNop,NullExp.prototype.mulTo=nMulTo,NullExp.prototype.sqrTo=nSqrTo,Barrett.prototype.convert=barrettConvert,Barrett.prototype.revert=barrettRevert,Barrett.prototype.reduce=barrettReduce,Barrett.prototype.mulTo=barrettMulTo,Barrett.prototype.sqrTo=barrettSqrTo;var lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],lplim=(1<<26)/lowprimes[lowprimes.length-1];function bnIsProbablePrime(t){var e,r=this.abs();if(1==r.t&&r[0]<=lowprimes[lowprimes.length-1]){for(e=0;e>1)>lowprimes.length&&(t=lowprimes.length);for(var i=nbi(),o=0;o>8&255,rng_pool[rng_pptr++]^=t>>16&255,rng_pool[rng_pptr++]^=t>>24&255,rng_pptr>=rng_psize&&(rng_pptr-=rng_psize)}function rng_seed_time(){rng_seed_int((new Date).getTime())}if(null==rng_pool){var t;if(rng_pool=new Array,rng_pptr=0,window.crypto&&window.crypto.getRandomValues){var ua=new Uint8Array(32);for(window.crypto.getRandomValues(ua),t=0;t<32;++t)rng_pool[rng_pptr++]=ua[t]}if("Netscape"==navigator.appName&&navigator.appVersion<"5"&&window.crypto){var z=window.crypto.random(32);for(t=0;t>>8,rng_pool[rng_pptr++]=255&t;rng_pptr=0,rng_seed_time()}function rng_get_byte(){if(null==rng_state){for(rng_seed_time(),(rng_state=prng_newstate()).init(rng_pool),rng_pptr=0;rng_pptr127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e},decode:function(t){for(var e="",r=0,n=$c1=$c2=0;r191&&n<224?($c2=t.charCodeAt(r+1),e+=String.fromCharCode((31&n)<<6|63&$c2),r+=2):($c2=t.charCodeAt(r+1),$c3=t.charCodeAt(r+2),e+=String.fromCharCode((15&n)<<12|(63&$c2)<<6|63&$c3),r+=3);return e}},Base64={base64:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){if(!t)return!1;var e,r,n,i,o,a,s,l="",c=0;do{i=(e=t.charCodeAt(c++))>>2,o=(3&e)<<4|(r=t.charCodeAt(c++))>>4,a=(15&r)<<2|(n=t.charCodeAt(c++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),l+=this.base64.charAt(i)+this.base64.charAt(o)+this.base64.charAt(a)+this.base64.charAt(s)}while(c>4),64!=n&&(o+=String.fromCharCode((15&r)<<4|n>>2)),64!=i&&(o+=String.fromCharCode((3&n)<<6|i))}while(a>4&15)+this.hex.charAt(15&e)}while(n0;){var r=t.charCodeAt(0);t=t.substr(1);var n=0;if(5==(31&r))t=t.substr(1);else if(128&t.charCodeAt(0)){var i=127&t.charCodeAt(0);if(t=t.substr(1),i>0&&(n=t.charCodeAt(0)),i>1&&(n=n<<8|t.charCodeAt(1)),i>2)return this.error=!0,null;t=t.substr(i)}else n=t.charCodeAt(0),t=t.substr(1);var o="";if(n){if(n>t.length)return this.error=!0,null;o=t.substr(0,n),t=t.substr(n)}32&r?e.push(this.parse(o)):e.push(this.value(128&r?4:31&r,o))}return e},this.value=function(t,e){if(1==t)return!!e;if(2==t)return e;if(3==t)return this.parse(e.substr(1));if(5==t)return null;if(6==t){var r=[],n=e.charCodeAt(0);r.push(Math.floor(n/40)),r.push(n-40*r[0]);var i,o=[],a=0;for(i=1;i>3;if(!(t=this.pkcs1pad2(t,r)))return!1;if(!(t=t.modPowInt(e.encryptionExponent,e.modulus)))return!1;for(t=t.toString(16);t.length<2*r;)t="0"+t;return Base64.encode(Hex.decode(t))},decrypt:function(t,e){if(!e)return!1;for(t=Hex.encode(Base64.decode(t)).toString(16);"0"==t[0];)t=t.replace("0","");if(!(t=(t=new BigInteger(t,16)).modPowInt(e.encryptionExponent,e.modulus)))return!1;var r=e.modulus.bitLength()+7>>3;return t=this.pkcs1unpad2(t,r)},pkcs1pad2:function(t,e){if(e=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=63&i|128,r[--e]=i>>6|192):(r[--e]=63&i|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var o=new SecureRandom,a=new Array;e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);r[--e]=a[0]}return r[--e]=2,r[--e]=0,new BigInteger(r)},pkcs1unpad2:function(t,e){for(var r=t.toByteArray(),n=0;n=r.length)return null;for(var i="";++n191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&r[n+1]),++n):(i+=String.fromCharCode((15&o)<<12|(63&r[n+1])<<6|63&r[n+2]),n+=2)}return i}};!function(t){"use strict";t.__InputSecurity={rsaDecrypt:function(t){return RSA.decrypt(t,__InputSecurity.getPublicRSA())},rsaEncrypt:function(t){return RSA.encrypt(t,__InputSecurity.getPublicRSA())},getPublicRSA:function(){return RSA.getPublicKey(t.__pbkey?t.__pbkey:"-----BEGIN PUBLIC KEY-----MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAPJwwNa//eaQYxkNsAODohg38azVtalEh7Lw4wxlBrbDONgYaebgscpjPRloeL0kj4aLI462lcQGVAxhyh8JijsCAwEAAQ==-----END PUBLIC KEY-----")},processSecuredData:function(t){if(t&&t.__maskedData){for(var e=t.__maskedData.split("__==__"),r="",n=0;n/g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,(function(t){var e="color: darkorange;";return/^"/.test(t)?e=/:$/.test(t)?"color: red;":"color: green;":/true|false/.test(t)?e="color: blue;":/null/.test(t)&&(e="color: magenta;"),''+t+""}))},displayInTabWindow:function(e){if(t.appConfig&&t.appConfig.debug){if(e){var r="";_.isObject(e)?(_.has(e,"data")&&(r='
URL: '+(e.config?e.config.url:"")+" 
Method:
"+(e.config?e.config.method:"")+"
statusText:
"+e.statusText+" ("+e.status+')
Error Message: '+e.data.message+"
"),r+='
'+__Utils.syntaxHighlight(JSON.stringify(e,null,4))+"
"):r=e;var n=t.open("","_blank");n.document.write(r),n.document.close(),n.focus()}else console.log("__Utils: Text not found for window.");e=r=null}},openEmailDebugView:function(e){t.appConfig&&t.appConfig.debug&&(t.open(e,"__emailDebugView"),__Utils.info("Request Sent to open Email Debug View."))},error:function(e){t.appConfig&&t.appConfig.debug&&console.error(e)},info:function(e){t.appConfig&&t.appConfig.debug&&console.info(e)},warn:function(e){t.appConfig&&t.appConfig.debug&&console.warn(e)},throwError:function(e){if(t.appConfig&&t.appConfig.debug)throw new Error(e)},jsdd:function(e){if(t.appConfig&&t.appConfig.debug){if(e.__dd&&e.__pr&&!e.__prExecuted){var r=1;_.forEach(e.__pr,(function(t){var e="";console.log("%c Server __pr "+r+" --------------------------------------------------","color:#f0ad4e"),_.forEach(t,(function(t,r){"debug_backtrace"!==r?console.log(t):e=t})),console.log("%c Reference --------------------------------------------------","color:#f0ad4e"),console.log(e),r++})),e.__prExecuted=!0,console.log("%c ------------------------------------------------------------ __pr end","color: #f0ad4e")}if(e.__dd&&e.__clog&&(e.__clogExecuted||(__Utils.clog(e),e.__clogExecuted=!0)),e.__dd&&"__dd"===e.__dd){if(!e.__ddExecuted){console.log("%c Server __dd --------------------------------------------------","color:#ff0000");_.forEach(e.data,(function(t,e){"debug_backtrace"!==e?console.log(t):(console.log("%c Reference --------------------------------------------------","color:#ff0000"),console.log(t))})),e.__ddExecuted=!0}throw console.log("%c ------------------------------------------------------------ __dd end","color: #ff0000"),"------------------------------------------------------------ __dd end."}}},clog:function(t){if(!e)var e={__clogCount:0};var r=1,n=t.__clogType?t.__clogType:"";_.forEach(t.__clog,(function(t){_.forEach(t,(function(t){console.log("%c __clog "+n+" "+r+" --------------------------------------------------","color: #bada55"),console.log("%c "+t,"color: #9c9c9c"),r++,e.__clogCount++}))})),console.log("%c ------------------------------------------------------------ __clog "+n+" items end. TotalCount: "+e.__clogCount,"color: #bada55")},detectIE:function(){var e=t.navigator.userAgent,r=e.indexOf("MSIE ");if(r>0)return parseInt(e.substring(r+5,e.indexOf(".",r)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var i=e.indexOf("Edge/");return i>0&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)},time:function(e){t.appConfig&&t.appConfig.debug&&(__Utils.detectIE()>=11||0==__Utils.detectIE())&&(console.time(e),e=null)},timeEnd:function(e){t.appConfig&&t.appConfig.debug&&(__Utils.detectIE()>=11||0==__Utils.detectIE())&&(console.timeEnd(e),e=null)},modalTemplatize:function(t,e,r,n){var i=$(t),o=$.Deferred(),a=i.data("modalEvent"),s=i.data("modalCloseEvent"),l=i.data("modalId"),c=(_.template(i.html()),i.data("replaceTarget"),{});return e?$(l).on((a||"show")+".bs.modal",(function(r){var n=$(t),i=_.template(n.html()),a=n.data("replaceTarget");"function"==typeof e?(c=e(r,$(r.relatedTarget).data()),o.resolve(c)):__Utils.error("responseCallback should be function"),$(a||"modal-body").html(i(c))})):o.resolve(c),n&&$(l).on("shown.bs.modal",(function(t){"function"==typeof n?n(t,c):__Utils.error("shownCallback should be function")})),r&&$(l).on((s||"hidden")+".bs.modal",(function(t){"function"==typeof r?r(t,c):__Utils.error("closeCallback should be function")})),i=s=l=c=null,o.promise()},queryConvertToObject:function(t){if(_.isString(t)){for(var e=t.replace("?","&").split("&"),r={},n=0,i=e.length;n