!function(){var t,e,n,i,r,s,o,a,h,u,c,f,l,p,d,g,m,y,b,S;t=function(t){function e(t){var e=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"y":return n*u;case"days":case"day":case"d":return n*h;case"hours":case"hour":case"h":return n*a;case"minutes":case"minute":case"m":return n*o;case"seconds":case"second":case"s":return n*s;case"ms":return n}}}function n(t){return t>=h?Math.round(t/h)+"d":t>=a?Math.round(t/a)+"h":t>=o?Math.round(t/o)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return r(t,h,"day")||r(t,a,"hour")||r(t,o,"minute")||r(t,s,"second")||t+" ms"}function r(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,o=60*s,a=60*o,h=24*a,u=365.25*h;return t=function(t,r){return r=r||{},"string"==typeof t?e(t):r.long?i(t):n(t)}}(),e=function(t){function e(t){for(var e,n={},i=t.split("&"),r=0;r<i.length;r++)if(e=i[r]){var s=e.indexOf("="),o=e.slice(0,s);if(o){var a=e.slice(s+1);n[decodeURIComponent(o)]=decodeURIComponent(a)}}return n}function n(t){var n=e(t),i=[];for(var r in n)i.push(encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return i.join("&")}return t={parseQuery:e,encodeCmdStr:n}}(),n=function(t){function e(t,e){try{return!!new ActiveXObject(t)}catch(n){return!(!navigator.plugins||!navigator.plugins[e])}}function n(t,e){try{var n=new ActiveXObject(t.activex);"undefined"!=typeof n[t.defaultMethod]?e(null,n):e({code:-1,message:"\u63a7\u4ef6\u53ef\u4ee5\u521d\u59cb\u5316\uff0c\u4f46\u662f\u8c03\u7528\u4e0d\u5230"+t.defaultMethod+"\u65b9\u6cd5, \u5e94\u8be5\u662f\u88ab\u6d4f\u89c8\u5668\u62e6\u622a\u4e86\u3002"})}catch(r){u(function(){var n=i(t.type,t.classId);"undefined"!=typeof n[t.defaultMethod]?e(null,n):e({code:-1,message:"\u63a7\u4ef6\u53ef\u4ee5\u521d\u59cb\u5316\uff0c\u4f46\u662f\u8c03\u7528\u4e0d\u5230"+t.defaultMethod+"\u65b9\u6cd5, \u5e94\u8be5\u662f\u88ab\u6d4f\u89c8\u5668\u62e6\u622a\u4e86\u3002"})})}}function i(t,e){var n=document.createElement("object");return n.setAttribute("height",1),n.setAttribute("width",1),h?n.setAttribute("classid","clsid:"+e):n.setAttribute("type",t),document.body.appendChild(n),n}var r=navigator.userAgent.toLowerCase(),s=!1,o=!1,a=!1,h=!1,u=jQuery;/\bwindows nt/.test(r)?s=!0:/\bmac os/.test(r)?o=!0:/\blinux /.test(r)&&(a=!0),(/\bmsie /.test(r)||/\btrident\//.test(r)&&/\brv:/.test(r))&&(h=!0);var c={options:{activex:"Aliedit.EditCtrl",plugin:function(){return s?"Alipay security control":o?"Aliedit Plug-In":a?"Aliedit":""}(),classId:"488A4255-3236-44B3-8F27-FA1AECAA8844",type:"application/aliedit",defaultMethod:"TextData"},cmd2param:{ci1:"ci1",ci2:"ipproxy",version:"alieditVersion"},check:function(t){e(this.options.activex,this.options.plugin)?n(this.options,function(e){t(e)}):t({code:-1,message:"Edit is not installed."})},getInfo:function(t,e){var i=this.objCache,r=this;i?e(null,this.execute(i,t)):n(this.options,function(n,i){n?e({code:-1,message:"Get control object error: "+n.message}):(r.objCache=i,e(null,r.execute(i,t)))})},execute:function(t,e){if("undefined"==typeof t[e])return"";var n=t[e]();return/XOR_1_0{30}_/.test(n)||/(?:\d\.){3}\d/.test(n)||(n=""),n},getCi1:function(t){this.getInfo(this.cmd2param.ci1,t)},getCi2:function(t){this.getInfo(this.cmd2param.ci2,t)},getVersion:function(t){this.getInfo(this.cmd2param.version,t)},objCache:null},f={options:{activex:"npAliSecCtrl.SecCtrl",plugin:"Alipay Security Control 3",classId:"8EB7C6CB-2DA6-4ABE-B2EA-EAC5A372E757",type:"application/x-alisecctrl-plugin",defaultMethod:"GetMiscInfo"},cmd2param:{ci1:"4",ci2:"5",netinfo:"lbs",version:"1"},check:function(t){e(this.options.activex,this.options.plugin)?n(this.options,function(e){t(e)}):t({code:-1,message:"Npedit is not installed."})},getInfo:function(t,e){var i=this.objCache,r=this;i?e(null,i.GetMiscInfo(t,0)):n(this.options,function(n,i){n?e({code:-1,message:"Get control object error: "+n.message}):(r.objCache=i,e(null,i.GetMiscInfo(t,0)))})},getCi1:function(t){this.getInfo(this.cmd2param.ci1,t)},getCi2:function(t){this.getInfo(this.cmd2param.ci2,t)},getVersion:function(t){this.getInfo(this.cmd2param.version,t)},getNetInfo:function(t){this.getInfo(this.cmd2param.netinfo,t)},objCache:null};return t.Npedit=f,t.Edit=c,t}({}),i=function(t){var e,n={},i=n.Base64,r="2.1.2",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(t){for(var e={},n=0,i=t.length;i>n;n++)e[t.charAt(n)]=n;return e}(s),a=String.fromCharCode,h=function(t){if(t.length<2){var e=t.charCodeAt(0);return 128>e?t:2048>e?a(192|e>>>6)+a(128|63&e):a(224|e>>>12&15)+a(128|e>>>6&63)+a(128|63&e)}var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return a(240|e>>>18&7)+a(128|e>>>12&63)+a(128|e>>>6&63)+a(128|63&e)},u=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,c=function(t){return t.replace(u,h)},f=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0),i=[s.charAt(n>>>18),s.charAt(n>>>12&63),e>=2?"=":s.charAt(n>>>6&63),e>=1?"=":s.charAt(63&n)];return i.join("")},l=n.btoa?function(t){return n.btoa(t)}:function(t){return t.replace(/[\s\S]{1,3}/g,f)},p=e?function(t){return new e(t).toString("base64")}:function(t){return l(c(t))},d=function(t,e){return e?p(t).replace(/[+\/]/g,function(t){return"+"==t?"-":"_"}).replace(/=/g,""):p(t)},g=function(t){return d(t,!0)},m=new RegExp(["[\xc0-\xdf][\x80-\xbf]","[\xe0-\xef][\x80-\xbf]{2}","[\xf0-\xf7][\x80-\xbf]{3}"].join("|"),"g"),v=function(t){switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return a((n>>>10)+55296)+a((1023&n)+56320);case 3:return a((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return a((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},y=function(t){return t.replace(m,v)},b=function(t){var e=t.length,n=e%4,i=(e>0?o[t.charAt(0)]<<18:0)|(e>1?o[t.charAt(1)]<<12:0)|(e>2?o[t.charAt(2)]<<6:0)|(e>3?o[t.charAt(3)]:0),r=[a(i>>>16),a(i>>>8&255),a(255&i)];return r.length-=[0,0,2,1][n],r.join("")},S=n.atob?function(t){return n.atob(t)}:function(t){return t.replace(/[\s\S]{1,4}/g,b)},T=e?function(t){return new e(t,"base64").toString()}:function(t){return y(S(t))},w=function(t){return T(t.replace(/[-_]/g,function(t){return"-"==t?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(){var t=n.Base64;return n.Base64=i,t};if(n.Base64={VERSION:r,atob:S,btoa:l,fromBase64:w,toBase64:d,utob:c,encode:d,encodeURI:g,btou:y,decode:w,noConflict:E},"function"==typeof Object.defineProperty){var R=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",R(function(){return w(this)})),Object.defineProperty(String.prototype,"toBase64",R(function(t){return d(this,t)})),Object.defineProperty(String.prototype,"toBase64URI",R(function(){return d(this,!0)}))}}return t=n.Base64}(),r=function(t){return t=function(t,e){for(var n="",i=0;i<t.length;++i)n+=String.fromCharCode(e.charCodeAt(i%e.length)^t.charCodeAt(i));return n}}(),s=function(t){function e(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function n(){return new e(null)}function i(t,e,n,i,r,s){for(;--s>=0;){var o=e*this[t++]+n[i]+r;r=Math.floor(o/67108864),n[i++]=67108863&o}return r}function r(t,e,n,i,r,s){for(var o=32767&e,a=e>>15;--s>=0;){var h=32767&this[t],u=this[t++]>>15,c=a*h+u*o;h=o*h+((32767&c)<<15)+n[i]+(1073741823&r),r=(h>>>30)+(c>>>15)+a*u+(r>>>30),n[i++]=1073741823&h}return r}function s(t,e,n,i,r,s){for(var o=16383&e,a=e>>14;--s>=0;){var h=16383&this[t],u=this[t++]>>14,c=a*h+u*o;h=o*h+((16383&c)<<14)+n[i]+r,r=(h>>28)+(c>>14)+a*u,n[i++]=268435455&h}return r}function o(t){return On.charAt(t)}function a(t,e){var n=Kn[t.charCodeAt(e)];return null==n?-1:n}function h(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function u(t){this.t=1,this.s=0>t?-1:0,t>0?this[0]=t:-1>t?this[0]=t+DV:this.t=0}function c(t){var e=n();return e.fromInt(t),e}function f(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;for(var r=t.length,s=!1,o=0;--r>=0;){var h=8==i?255&t[r]:a(t,r);0>h?"-"==t.charAt(r)&&(s=!0):(s=!1,0==o?this[this.t++]=h:o+i>this.DB?(this[this.t-1]|=(h&(1<<this.DB-o)-1)<<o,this[this.t++]=h>>this.DB-o):this[this.t-1]|=h<<o,o+=i,o>=this.DB&&(o-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)}function l(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function p(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(4!=t)return this.toRadix(t);e=2}var n,i=(1<<e)-1,r=!1,s="",a=this.t,h=this.DB-a*this.DB%e;if(a-->0)for(h<this.DB&&(n=this[a]>>h)>0&&(r=!0,s=o(n));a>=0;)e>h?(n=(this[a]&(1<<h)-1)<<e-h,n|=this[--a]>>(h+=this.DB-e)):(n=this[a]>>(h-=e)&i,0>=h&&(h+=this.DB,--a)),n>0&&(r=!0),r&&(s+=o(n));return r?s:"0"}function d(){var t=n();return e.ZERO.subTo(this,t),t}function g(){return this.s<0?this.negate():this}function m(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(e=n-t.t,0!=e)return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0}function y(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function b(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)}function S(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function T(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s}function w(t,e){var n,i=t%this.DB,r=this.DB-i,s=(1<<r)-1,o=Math.floor(t/this.DB),a=this.s<<i&this.DM;for(n=this.t-1;n>=0;--n)e[n+o+1]=this[n]>>r|a,a=(this[n]&s)<<i;for(n=o-1;n>=0;--n)e[n]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()}function E(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)return void(e.t=0);var i=t%this.DB,r=this.DB-i,s=(1<<i)-1;e[0]=this[n]>>i;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&s)<<r,e[o-n]=this[o]>>i;i>0&&(e[this.t-n-1]|=(this.s&s)<<r),e.t=this.t-n,e.clamp()}function R(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);r>n;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=0>i?-1:0,-1>i?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()}function x(t,n){var i=this.abs(),r=t.abs(),s=i.t;for(n.t=s+r.t;--s>=0;)n[s]=0;for(s=0;s<r.t;++s)n[s+i.t]=i.am(0,r[s],n,s,0,i.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)}function D(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()}function A(t,i,r){var s=t.abs();if(!(s.t<=0)){var o=this.abs();if(o.t<s.t)return null!=i&&i.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=n());var a=n(),h=this.s,u=t.s,c=this.DB-y(s[s.t-1]);c>0?(s.lShiftTo(c,a),o.lShiftTo(c,r)):(s.copyTo(a),o.copyTo(r));var f=a.t,l=a[f-1];if(0!=l){var p=l*(1<<this.F1)+(f>1?a[f-2]>>this.F2:0),d=this.FV/p,g=(1<<this.F1)/p,m=1<<this.F2,v=r.t,b=v-f,S=null==i?n():i;for(a.dlShiftTo(b,S),r.compareTo(S)>=0&&(r[r.t++]=1,r.subTo(S,r)),e.ONE.dlShiftTo(f,S),S.subTo(a,a);a.t<f;)a[a.t++]=0;for(;--b>=0;){var T=r[--v]==l?this.DM:Math.floor(r[v]*d+(r[v-1]+m)*g);if((r[v]+=a.am(0,T,r,b,0,f))<T)for(a.dlShiftTo(b,S),r.subTo(S,r);r[v]<--T;)r.subTo(S,r)}null!=i&&(r.drShiftTo(f,i),h!=u&&e.ZERO.subTo(i,i)),r.t=f,r.clamp(),c>0&&r.rShiftTo(c,r),0>h&&e.ZERO.subTo(r,r)}}}function C(t){var i=n();return this.abs().divRemTo(t,null,i),this.s<0&&i.compareTo(e.ZERO)>0&&t.subTo(i,i),i}function B(t){this.m=t}function O(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function K(t){return t}function k(t){t.divRemTo(this.m,null,t)}function U(t,e,n){t.multiplyTo(e,n),this.reduce(n)}function I(t,e){t.squareTo(e),this.reduce(e)}function N(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function V(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function M(t){var i=n();return t.abs().dlShiftTo(this.m.t,i),i.divRemTo(this.m,null,i),t.s<0&&i.compareTo(e.ZERO)>0&&this.m.subTo(i,i),i}function J(t){var e=n();return t.copyTo(e),this.reduce(e),e}function P(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function L(t,e){t.squareTo(e),this.reduce(e)}function j(t,e,n){t.multiplyTo(e,n),this.reduce(n)}function q(){return 0==(this.t>0?1&this[0]:this.s)}function H(t,i){if(t>4294967295||1>t)return e.ONE;var r=n(),s=n(),o=i.convert(this),a=y(t)-1;for(o.copyTo(r);--a>=0;)if(i.sqrTo(r,s),(t&1<<a)>0)i.mulTo(s,o,r);else{var h=r;r=s,s=h}return i.revert(r)}function F(t,e){var n;return n=256>t||e.isEven()?new B(e):new V(e),this.exp(t,n)}function _(){var t=n();return this.copyTo(t),t}function z(){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)<<this.DB|this[0]}function G(){return 0==this.t?this.s:this[0]<<24>>24}function W(){return 0==this.t?this.s:this[0]<<16>>16}function Z(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function $(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function Q(t){if(null==t&&(t=10),0==this.signum()||2>t||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),r=c(i),s=n(),o=n(),a="";for(this.divRemTo(r,s,o);s.signum()>0;)a=(i+o.intValue()).toString(t).substr(1)+a,s.divRemTo(r,s,o);return o.intValue().toString(t)+a}function X(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),s=!1,o=0,h=0,u=0;u<t.length;++u){var c=a(t,u);0>c?"-"==t.charAt(u)&&0==this.signum()&&(s=!0):(h=n*h+c,++o>=i&&(this.dMultiply(r),this.dAddOffset(h,0),o=0,h=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(h,0)),s&&e.ZERO.subTo(this,this)}function Y(t,n,i){if("number"==typeof n)if(2>t)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),ae,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var r=new Array,s=7&t;r.length=(t>>3)+1,n.nextBytes(r),s>0?r[0]&=(1<<s)-1:r[0]=0,this.fromString(r,256)}}function te(){var t=this.t,e=new Array;e[0]=this.s;var n,i=this.DB-t*this.DB%8,r=0;if(t-->0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[r++]=n|this.s<<this.DB-i);t>=0;)8>i?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,0>=i&&(i+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(e[r++]=n);return e}function ee(t){return 0==this.compareTo(t)}function ne(t){return this.compareTo(t)<0?this:t}function ie(t){return this.compareTo(t)>0?this:t}function re(t,e,n){var i,r,s=Math.min(t.t,this.t);for(i=0;s>i;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(r=t.s&this.DM,i=s;i<this.t;++i)n[i]=e(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=s;i<t.t;++i)n[i]=e(r,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()}function se(t,e){return t&e}function oe(t){var e=n();return this.bitwiseTo(t,se,e),e}function ae(t,e){return t|e}function he(t){var e=n();return this.bitwiseTo(t,ae,e),e}function ue(t,e){return t^e}function ce(t){var e=n();return this.bitwiseTo(t,ue,e),e}function fe(t,e){return t&~e}function le(t){var e=n();return this.bitwiseTo(t,fe,e),e}function pe(){for(var t=n(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t}function de(t){var e=n();return 0>t?this.rShiftTo(-t,e):this.lShiftTo(t,e),e}function ge(t){var e=n();return 0>t?this.lShiftTo(-t,e):this.rShiftTo(t,e),e}function me(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function ve(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+me(this[t]);return this.s<0?this.t*this.DB:-1}function ye(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function be(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=ye(this[n]^e);return t}function Se(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)}function Te(t,n){var i=e.ONE.shiftLeft(t);return this.bitwiseTo(i,n,i),i}function we(t){return this.changeBit(t,ae)}function Ee(t){return this.changeBit(t,fe)}function Re(t){return this.changeBit(t,ue)}function xe(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);r>n;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=0>i?-1:0,i>0?e[n++]=i:-1>i&&(e[n++]=this.DV+i),e.t=n,e.clamp()}function De(t){var e=n();return this.addTo(t,e),e}function Ae(t){var e=n();return this.subTo(t,e),e}function Ce(t){var e=n();return this.multiplyTo(t,e),e}function Be(){var t=n();return this.squareTo(t),t}function Oe(t){var e=n();return this.divRemTo(t,e,null),e}function Ke(t){var e=n();return this.divRemTo(t,null,e),e}function ke(t){var e=n(),i=n();return this.divRemTo(t,e,i),new Array(e,i)}function Ue(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function Ie(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 Ne(){}function Ve(t){return t}function Me(t,e,n){t.multiplyTo(e,n)}function Je(t,e){t.squareTo(e)}function Pe(t){return this.exp(t,new Ne)}function Le(t,e,n){var i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;var r;for(r=n.t-this.t;r>i;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(r=Math.min(t.t,e);r>i;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()}function je(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)}function qe(t){this.r2=n(),this.q3=n(),e.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}function He(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=n();return t.copyTo(e),this.reduce(e),e}function Fe(t){return t}function _e(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 ze(t,e){t.squareTo(e),this.reduce(e)}function Ge(t,e,n){t.multiplyTo(e,n),this.reduce(n)}function We(t,e){var i,r,s=t.bitLength(),o=c(1);if(0>=s)return o;i=18>s?1:48>s?3:144>s?4:768>s?5:6,r=8>s?new B(e):e.isEven()?new qe(e):new V(e);var a=new Array,h=3,u=i-1,f=(1<<i)-1;if(a[1]=r.convert(this),i>1){var l=n();for(r.sqrTo(a[1],l);f>=h;)a[h]=n(),r.mulTo(l,a[h-2],a[h]),h+=2}var p,d,g=t.t-1,m=!0,v=n();for(s=y(t[g])-1;g>=0;){for(s>=u?p=t[g]>>s-u&f:(p=(t[g]&(1<<s+1)-1)<<u-s,g>0&&(p|=t[g-1]>>this.DB+s-u)),h=i;0==(1&p);)p>>=1,--h;if((s-=h)<0&&(s+=this.DB,--g),m)a[p].copyTo(o),m=!1;else{for(;h>1;)r.sqrTo(o,v),r.sqrTo(v,o),h-=2;h>0?r.sqrTo(o,v):(d=o,o=v,v=d),r.mulTo(v,a[p],o)}for(;g>=0&&0==(t[g]&1<<s);)r.sqrTo(o,v),d=o,o=v,v=d,--s<0&&(s=this.DB-1,--g)}return r.revert(o)}function Ze(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var r=e.getLowestSetBit(),s=n.getLowestSetBit();if(0>s)return e;for(s>r&&(s=r),s>0&&(e.rShiftTo(s,e),n.rShiftTo(s,n));e.signum()>0;)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n}function $e(t){if(0>=t)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n}function Qe(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var i=t.clone(),r=this.clone(),s=c(1),o=c(0),a=c(0),h=c(1);0!=i.signum();){for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&o.isEven()||(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&h.isEven()||(a.addTo(this,a),h.subTo(t,h)),a.rShiftTo(1,a)):h.isEven()||h.subTo(t,h),h.rShiftTo(1,h);i.compareTo(r)>=0?(i.subTo(r,i),n&&s.subTo(a,s),o.subTo(h,o)):(r.subTo(i,r),n&&a.subTo(s,a),h.subTo(o,h))}return 0!=r.compareTo(e.ONE)?e.ZERO:h.compareTo(t)>=0?h.subtract(t):h.signum()<0?(h.addTo(t,h),h.signum()<0?h.add(t):h):h}function Xe(t){var e,n=this.abs();if(1==n.t&&n[0]<=kn[kn.length-1]){for(e=0;e<kn.length;++e)if(n[0]==kn[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<kn.length;){for(var i=kn[e],r=e+1;r<kn.length&&Un>i;)i*=kn[r++];for(i=n.modInt(i);r>e;)if(i%kn[e++]==0)return!1}return n.millerRabin(t)}function Ye(t){var i=this.subtract(e.ONE),r=i.getLowestSetBit();if(0>=r)return!1;var s=i.shiftRight(r);t=t+1>>1,t>kn.length&&(t=kn.length);for(var o=n(),a=0;t>a;++a){o.fromInt(kn[Math.floor(Math.random()*kn.length)]);var h=o.modPow(s,this);if(0!=h.compareTo(e.ONE)&&0!=h.compareTo(i)){for(var u=1;u++<r&&0!=h.compareTo(i);)if(h=h.modPowInt(2,this),0==h.compareTo(e.ONE))return!1;if(0!=h.compareTo(i))return!1}}return!0}function tn(){this.i=0,this.j=0,this.S=new Array}function en(t){var e,n,i;for(e=0;256>e;++e)this.S[e]=e;for(n=0,e=0;256>e;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0}function nn(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]}function rn(){return new tn}function sn(){if(null==In){for(In=rn();Mn>Vn;){var t=Math.floor(65536*Math.random());Nn[Vn++]=255&t}for(In.init(Nn),Vn=0;Vn<Nn.length;++Vn)Nn[Vn]=0;Vn=0}return In.next()}function on(t){var e;for(e=0;e<t.length;++e)t[e]=sn()}function an(){}function hn(t,n){return new e(t,n)}function un(t,n){if(n<t.length+11)return console.error("Message too long for RSA"),null;for(var i=new Array,r=t.length-1;r>=0&&n>0;){var s=t.charCodeAt(r--);128>s?i[--n]=s:s>127&&2048>s?(i[--n]=63&s|128,i[--n]=s>>6|192):(i[--n]=63&s|128,i[--n]=s>>6&63|128,i[--n]=s>>12|224)}i[--n]=0;for(var o=new an,a=new Array;n>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);i[--n]=a[0]}return i[--n]=2,i[--n]=0,new e(i)}function cn(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function fn(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=hn(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")}function ln(t){return t.modPowInt(this.e,this.n)}function pn(t){var e=un(t,this.n.bitLength()+7>>3);if(null==e)return null;var n=this.doPublic(e);if(null==n)return null;var i=n.toString(16);return 0==(1&i.length)?i:"0"+i}function dn(t,n,i){for(var r=[Number(t)],s=gn(n,32),o=gn("",12),a=gn(i,200),h=this.n.bitLength()+7>>3,u=[],c=r.concat(s).concat(o).concat(a),f=c.length-1;f>=0&&h>0;)u[--h]=c[f--];u[--h]=0;for(var l=new an,p=new Array;h>2;){for(p[0]=0;0==p[0];)l.nextBytes(p);u[--h]=p[0]}u[--h]=2,u[--h]=0;var d=new e(u);if(null==d)return null;var g=this.doPublic(d);if(null==g)return null;var m=g.toString(16);return 0==(1&m.length)?m:"0"+m}function gn(t,e){for(var n=[],i=0,r=t.length;r>i;i++){var s=t.charCodeAt(i);128>s?n.push(s):s>127&&2048>s?(n.push(63&s|128),n.push(s>>6|192)):(n.push(63&s|128),n.push(s>>6&63|128),n.push(s>>12|224))}var r=e-t.length;if(r>0)for(var i=0;r>i;i++)n.push(0);return n}function mn(t,e){for(var n=t.toByteArray(),i=0;i<n.length&&0==n[i];)++i;if(n.length-i!=e-1||2!=n[i])return null;for(++i;0!=n[i];)if(++i>=n.length)return null;for(var r="";++i<n.length;){var s=255&n[i];128>s?r+=String.fromCharCode(s):s>191&&224>s?(r+=String.fromCharCode((31&s)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&s)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}function vn(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=hn(t,16),this.e=parseInt(e,16),this.d=hn(n,16)):console.error("Invalid RSA private key")}function yn(t,e,n,i,r,s,o,a){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=hn(t,16),this.e=parseInt(e,16),this.d=hn(n,16),this.p=hn(i,16),this.q=hn(r,16),this.dmp1=hn(s,16),this.dmq1=hn(o,16),this.coeff=hn(a,16)):console.error("Invalid RSA private key")}function bn(t,n){var i=new an,r=t>>1;this.e=parseInt(n,16);for(var s=new e(n,16);;){for(;this.p=new e(t-r,1,i),0!=this.p.subtract(e.ONE).gcd(s).compareTo(e.ONE)||!this.p.isProbablePrime(10););for(;this.q=new e(r,1,i),0!=this.q.subtract(e.ONE).gcd(s).compareTo(e.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(e.ONE),h=this.q.subtract(e.ONE),u=a.multiply(h);if(0==u.gcd(s).compareTo(e.ONE)){this.n=this.p.multiply(this.q),this.d=s.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(h),this.coeff=this.q.modInverse(this.p);break}}}function Sn(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)}function Tn(t){var e=hn(t,16),n=this.doPrivate(e);return null==n?null:mn(n,this.n.bitLength()+7>>3)}function wn(t){var e,n,i="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+=jn.charAt(n>>6)+jn.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=jn.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=jn.charAt(n>>2)+jn.charAt((3&n)<<4));(3&i.length)>0;)i+=qn;return i}function En(t){var e,n,i="",r=0;for(e=0;e<t.length&&t.charAt(e)!=qn;++e)v=jn.indexOf(t.charAt(e)),0>v||(0==r?(i+=o(v>>2),n=3&v,r=1):1==r?(i+=o(n<<2|v>>4),n=15&v,r=2):2==r?(i+=o(n),i+=o(v>>2),n=3&v,r=3):(i+=o(n<<2|v>>4),i+=o(15&v),r=0));return 1==r&&(i+=o(n<<2)),i}var Rn,xn=0xdeadbeefcafe,Dn=15715070==(16777215&xn);Dn&&"Microsoft Internet Explorer"==navigator.appName?(e.prototype.am=r,Rn=30):Dn&&"Netscape"!=navigator.appName?(e.prototype.am=i,Rn=26):(e.prototype.am=s,Rn=28),e.prototype.DB=Rn,e.prototype.DM=(1<<Rn)-1,e.prototype.DV=1<<Rn;var An=52;e.prototype.FV=Math.pow(2,An),e.prototype.F1=An-Rn,e.prototype.F2=2*Rn-An;var Cn,Bn,On="0123456789abcdefghijklmnopqrstuvwxyz",Kn=new Array;for(Cn="0".charCodeAt(0),Bn=0;9>=Bn;++Bn)Kn[Cn++]=Bn;for(Cn="a".charCodeAt(0),Bn=10;36>Bn;++Bn)Kn[Cn++]=Bn;for(Cn="A".charCodeAt(0),Bn=10;36>Bn;++Bn)Kn[Cn++]=Bn;B.prototype.convert=O,B.prototype.revert=K,B.prototype.reduce=k,B.prototype.mulTo=U,B.prototype.sqrTo=I,V.prototype.convert=M,V.prototype.revert=J,V.prototype.reduce=P,V.prototype.mulTo=j,V.prototype.sqrTo=L,e.prototype.copyTo=h,e.prototype.fromInt=u,e.prototype.fromString=f,e.prototype.clamp=l,e.prototype.dlShiftTo=S,e.prototype.drShiftTo=T,e.prototype.lShiftTo=w,e.prototype.rShiftTo=E,e.prototype.subTo=R,e.prototype.multiplyTo=x,e.prototype.squareTo=D,e.prototype.divRemTo=A,e.prototype.invDigit=N,e.prototype.isEven=q,e.prototype.exp=H,e.prototype.toString=p,e.prototype.negate=d,e.prototype.abs=g,e.prototype.compareTo=m,e.prototype.bitLength=b,e.prototype.mod=C,e.prototype.modPowInt=F,e.ZERO=c(0),e.ONE=c(1),Ne.prototype.convert=Ve,Ne.prototype.revert=Ve,Ne.prototype.mulTo=Me,Ne.prototype.sqrTo=Je,qe.prototype.convert=He,qe.prototype.revert=Fe,qe.prototype.reduce=_e,qe.prototype.mulTo=Ge,qe.prototype.sqrTo=ze;var kn=[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],Un=(1<<26)/kn[kn.length-1];e.prototype.chunkSize=Z,e.prototype.toRadix=Q,e.prototype.fromRadix=X,e.prototype.fromNumber=Y,e.prototype.bitwiseTo=re,e.prototype.changeBit=Te,e.prototype.addTo=xe,e.prototype.dMultiply=Ue,e.prototype.dAddOffset=Ie,e.prototype.multiplyLowerTo=Le,e.prototype.multiplyUpperTo=je,e.prototype.modInt=$e,e.prototype.millerRabin=Ye,e.prototype.clone=_,e.prototype.intValue=z,e.prototype.byteValue=G,e.prototype.shortValue=W,e.prototype.signum=$,e.prototype.toByteArray=te,e.prototype.equals=ee,e.prototype.min=ne,e.prototype.max=ie,e.prototype.and=oe,e.prototype.or=he,e.prototype.xor=ce,e.prototype.andNot=le,e.prototype.not=pe,e.prototype.shiftLeft=de,e.prototype.shiftRight=ge,e.prototype.getLowestSetBit=ve,e.prototype.bitCount=be,e.prototype.testBit=Se,e.prototype.setBit=we,e.prototype.clearBit=Ee,e.prototype.flipBit=Re,e.prototype.add=De,e.prototype.subtract=Ae,e.prototype.multiply=Ce,e.prototype.divide=Oe,e.prototype.remainder=Ke,e.prototype.divideAndRemainder=ke,e.prototype.modPow=We,e.prototype.modInverse=Qe,e.prototype.pow=Pe,e.prototype.gcd=Ze,e.prototype.isProbablePrime=Xe,e.prototype.square=Be,tn.prototype.init=en,tn.prototype.next=nn;var In,Nn,Vn,Mn=256;if(null==Nn){Nn=new Array,Vn=0;var Jn;if(window.crypto&&window.crypto.getRandomValues){var Pn=new Uint32Array(256);for(window.crypto.getRandomValues(Pn),Jn=0;Jn<Pn.length;++Jn)Nn[Vn++]=255&Pn[Jn]}var Ln=function(t){if(this.count=this.count||0,this.count>=256||Vn>=Mn)return void(window.removeEventListener?window.removeEventListener("mousemove",Ln):window.detachEvent&&window.detachEvent("onmousemove",Ln));this.count+=1;var e=t.x+t.y;Nn[Vn++]=255&e};window.addEventListener?window.addEventListener("mousemove",Ln):window.attachEvent&&window.attachEvent("onmousemove",Ln)}an.prototype.nextBytes=on,cn.prototype.doPublic=ln,cn.prototype.setPublic=fn,cn.prototype.encrypt=pn,cn.prototype.alipayEncrypt=dn,cn.prototype.doPrivate=Sn,cn.prototype.setPrivate=vn,cn.prototype.setPrivateEx=yn,cn.prototype.generate=bn,cn.prototype.decrypt=Tn,function(){var t=function(t,i,r){var s=new an,o=t>>1;this.e=parseInt(i,16);var a=new e(i,16),h=this,u=function(){var i=function(){if(h.p.compareTo(h.q)<=0){var t=h.p;h.p=h.q,h.q=t}var n=h.p.subtract(e.ONE),i=h.q.subtract(e.ONE),s=n.multiply(i);0==s.gcd(a).compareTo(e.ONE)?(h.n=h.p.multiply(h.q),h.d=a.modInverse(s),h.dmp1=h.d.mod(n),h.dmq1=h.d.mod(i),h.coeff=h.q.modInverse(h.p),setTimeout(function(){r()},0)):setTimeout(u,0)},c=function(){h.q=n(),h.q.fromNumberAsync(o,1,s,function(){h.q.subtract(e.ONE).gcda(a,function(t){0==t.compareTo(e.ONE)&&h.q.isProbablePrime(10)?setTimeout(i,0):setTimeout(c,0)})})},f=function(){h.p=n(),h.p.fromNumberAsync(t-o,1,s,function(){h.p.subtract(e.ONE).gcda(a,function(t){0==t.compareTo(e.ONE)&&h.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(u,0)};cn.prototype.generateAsync=t;var i=function(t,e){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var s=n.getLowestSetBit(),o=i.getLowestSetBit();if(0>o)return void e(n);o>s&&(o=s),o>0&&(n.rShiftTo(o,n),i.rShiftTo(o,i));var a=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(a,0):(o>0&&i.lShiftTo(o,i),setTimeout(function(){e(i)
},0))};setTimeout(a,10)};e.prototype.gcda=i;var r=function(t,n,i,r){if("number"==typeof n)if(2>t)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),ae,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(n)?setTimeout(function(){r()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=new Array,h=7&t;a.length=(t>>3)+1,n.nextBytes(a),h>0?a[0]&=(1<<h)-1:a[0]=0,this.fromString(a,256)}};e.prototype.fromNumberAsync=r}();var jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qn="=",Hn=Hn||{};Hn.env=Hn.env||{};var Fn=Hn,_n=Object.prototype,zn="[object Function]",Gn=["toString","valueOf"];Hn.env.parseUA=function(t){var e,n=function(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 1==e++?"":"."}))},i=navigator,r={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,caja:i&&i.cajaVersion,secure:!1,os:null},s=t||navigator&&navigator.userAgent,o=window&&window.location,a=o&&o.href;return r.secure=a&&0===a.toLowerCase().indexOf("https"),s&&(/windows|win32/i.test(s)?r.os="windows":/macintosh/i.test(s)?r.os="macintosh":/rhino/i.test(s)&&(r.os="rhino"),/KHTML/.test(s)&&(r.webkit=1),e=s.match(/AppleWebKit\/([^\s]*)/),e&&e[1]&&(r.webkit=n(e[1]),/ Mobile\//.test(s)?(r.mobile="Apple",e=s.match(/OS ([^\s]*)/),e&&e[1]&&(e=n(e[1].replace("_","."))),r.ios=e,r.ipad=r.ipod=r.iphone=0,e=s.match(/iPad|iPod|iPhone/),e&&e[0]&&(r[e[0].toLowerCase()]=r.ios)):(e=s.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/),e&&(r.mobile=e[0]),/webOS/.test(s)&&(r.mobile="WebOS",e=s.match(/webOS\/([^\s]*);/),e&&e[1]&&(r.webos=n(e[1]))),/ Android/.test(s)&&(r.mobile="Android",e=s.match(/Android ([^\s]*);/),e&&e[1]&&(r.android=n(e[1])))),e=s.match(/Chrome\/([^\s]*)/),e&&e[1]?r.chrome=n(e[1]):(e=s.match(/AdobeAIR\/([^\s]*)/),e&&(r.air=e[0]))),r.webkit||(e=s.match(/Opera[\s\/]([^\s]*)/),e&&e[1]?(r.opera=n(e[1]),e=s.match(/Version\/([^\s]*)/),e&&e[1]&&(r.opera=n(e[1])),e=s.match(/Opera Mini[^;]*/),e&&(r.mobile=e[0])):(e=s.match(/MSIE\s([^;]*)/),e&&e[1]?r.ie=n(e[1]):(e=s.match(/Gecko\/([^\s]*)/),e&&(r.gecko=1,e=s.match(/rv:([^\s\)]*)/),e&&e[1]&&(r.gecko=n(e[1]))))))),r},Hn.env.ua=Hn.env.parseUA(),Hn.isFunction=function(t){return"function"==typeof t||_n.toString.apply(t)===zn},Hn._IEEnumFix=Hn.env.ua.ie?function(t,e){var n,i,r;for(n=0;n<Gn.length;n+=1)i=Gn[n],r=e[i],Fn.isFunction(r)&&r!=_n[i]&&(t[i]=r)}:function(){},Hn.extend=function(t,e,n){if(!e||!t)throw new Error("extend failed, please check that all dependencies are included.");var i,r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==_n.constructor&&(e.prototype.constructor=e),n){for(i in n)Fn.hasOwnProperty(n,i)&&(t.prototype[i]=n[i]);Fn._IEEnumFix(t.prototype,n)}},"undefined"!=typeof KJUR&&KJUR||(KJUR={}),"undefined"!=typeof KJUR.asn1&&KJUR.asn1||(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var n=t.toString(16);if("-"!=n.substr(0,1))n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var i=n.substr(1),r=i.length;r%2==1?r+=1:n.match(/^[0-7]/)||(r+=2);for(var s="",o=0;r>o;o++)s+="f";var a=new e(s,16),h=a.xor(t).add(e.ONE);n=h.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(t,e){var n=CryptoJS.enc.Hex.parse(t),i=CryptoJS.enc.Base64.stringify(n),r=i.replace(/(.{64})/g,"$1\r\n");return r=r.replace(/\r\n$/,""),"-----BEGIN "+e+"-----\r\n"+r+"\r\n-----END "+e+"-----\r\n"}},KJUR.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,n=e.toString(16);if(n.length%2==1&&(n="0"+n),128>e)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var r=128+i;return r.toString(16)+n},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},KJUR.asn1.DERAbstractString=function(t){KJUR.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t.str?this.setString(t.str):"undefined"!=typeof t.hex&&this.setStringHex(t.hex))},Hn.extend(KJUR.asn1.DERAbstractString,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractTime=function(){KJUR.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e},this.formatDate=function(t,e){var n=this.zeroPadding,i=this.localDateToUTC(t),r=String(i.getFullYear());"utc"==e&&(r=r.substr(2,2));var s=n(String(i.getMonth()+1),2),o=n(String(i.getDate()),2),a=n(String(i.getHours()),2),h=n(String(i.getMinutes()),2),u=n(String(i.getSeconds()),2);return r+s+o+a+h+u+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setByDateValue=function(t,e,n,i,r,s){var o=new Date(Date.UTC(t,e-1,n,i,r,s,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Hn.extend(KJUR.asn1.DERAbstractTime,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractStructured=function(t){KJUR.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,"undefined"!=typeof t&&"undefined"!=typeof t.array&&(this.asn1Array=t.array)},Hn.extend(KJUR.asn1.DERAbstractStructured,KJUR.asn1.ASN1Object),KJUR.asn1.DERBoolean=function(){KJUR.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Hn.extend(KJUR.asn1.DERBoolean,KJUR.asn1.ASN1Object),KJUR.asn1.DERInteger=function(t){KJUR.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new e(String(t),10);this.setByBigInteger(n)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t.bigint?this.setByBigInteger(t.bigint):"undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"undefined"!=typeof t.hex&&this.setValueHex(t.hex))},Hn.extend(KJUR.asn1.DERInteger,KJUR.asn1.ASN1Object),KJUR.asn1.DERBitString=function(t){KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(0>t||t>7)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;8==e&&(e=0);for(var n=0;e>=n;n++)t+="0";for(var i="",n=0;n<t.length-1;n+=8){var r=t.substr(n,8),s=parseInt(r,2).toString(16);1==s.length&&(s="0"+s),i+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+e+i},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)e+=1==t[n]?"1":"0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;t>n;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t.hex?this.setHexValueIncludingUnusedBits(t.hex):"undefined"!=typeof t.bin?this.setByBinaryString(t.bin):"undefined"!=typeof t.array&&this.setByBooleanArray(t.array))},Hn.extend(KJUR.asn1.DERBitString,KJUR.asn1.ASN1Object),KJUR.asn1.DEROctetString=function(t){KJUR.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Hn.extend(KJUR.asn1.DEROctetString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNull=function(){KJUR.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Hn.extend(KJUR.asn1.DERNull,KJUR.asn1.ASN1Object),KJUR.asn1.DERObjectIdentifier=function(t){var n=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},i=function(t){var i="",r=new e(t,10),s=r.toString(2),o=7-s.length%7;7==o&&(o=0);for(var a="",h=0;o>h;h++)a+="0";s=a+s;for(var h=0;h<s.length-1;h+=7){var u=s.substr(h,7);h!=s.length-7&&(u="1"+u),i+=n(parseInt(u,2))}return i};KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var e="",r=t.split("."),s=40*parseInt(r[0])+parseInt(r[1]);e+=n(s),r.splice(0,2);for(var o=0;o<r.length;o++)e+=i(r[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueName=function(t){if("undefined"==typeof KJUR.asn1.x509.OID.name2oidList[t])throw"DERObjectIdentifier oidName undefined: "+t;var e=KJUR.asn1.x509.OID.name2oidList[t];this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t.oid?this.setValueOidString(t.oid):"undefined"!=typeof t.hex?this.setValueHex(t.hex):"undefined"!=typeof t.name&&this.setValueName(t.name))},Hn.extend(KJUR.asn1.DERObjectIdentifier,KJUR.asn1.ASN1Object),KJUR.asn1.DERUTF8String=function(t){KJUR.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Hn.extend(KJUR.asn1.DERUTF8String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNumericString=function(t){KJUR.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Hn.extend(KJUR.asn1.DERNumericString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERPrintableString=function(t){KJUR.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Hn.extend(KJUR.asn1.DERPrintableString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERTeletexString=function(t){KJUR.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Hn.extend(KJUR.asn1.DERTeletexString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERIA5String=function(t){KJUR.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Hn.extend(KJUR.asn1.DERIA5String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERUTCTime=function(t){KJUR.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},"undefined"!=typeof t&&("undefined"!=typeof t.str?this.setString(t.str):"undefined"!=typeof t.hex?this.setStringHex(t.hex):"undefined"!=typeof t.date&&this.setByDate(t.date))},Hn.extend(KJUR.asn1.DERUTCTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERGeneralizedTime=function(t){KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen"),this.hV=stohex(this.s)},"undefined"!=typeof t&&("undefined"!=typeof t.str?this.setString(t.str):"undefined"!=typeof t.hex?this.setStringHex(t.hex):"undefined"!=typeof t.date&&this.setByDate(t.date))},Hn.extend(KJUR.asn1.DERGeneralizedTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERSequence=function(t){KJUR.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}},Hn.extend(KJUR.asn1.DERSequence,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERSet=function(t){KJUR.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return t.sort(),this.hV=t.join(""),this.hV}},Hn.extend(KJUR.asn1.DERSet,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERTaggedObject=function(t){KJUR.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t.tag&&(this.hT=t.tag),"undefined"!=typeof t.explicit&&(this.isExplicit=t.explicit),"undefined"!=typeof t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Hn.extend(KJUR.asn1.DERTaggedObject,KJUR.asn1.ASN1Object),function(t){"use strict";var e,n={};n.decode=function(n){var i;if(e===t){var r="0123456789ABCDEF",s=" \f\n\r	\xa0\u2028\u2029";for(e=[],i=0;16>i;++i)e[r.charAt(i)]=i;for(r=r.toLowerCase(),i=10;16>i;++i)e[r.charAt(i)]=i;for(i=0;i<s.length;++i)e[s.charAt(i)]=-1}var o=[],a=0,h=0;for(i=0;i<n.length;++i){var u=n.charAt(i);if("="==u)break;if(u=e[u],-1!=u){if(u===t)throw"Illegal character at offset "+i;a|=u,++h>=2?(o[o.length]=a,a=0,h=0):a<<=4}}if(h)throw"Hex encoding incomplete: 4 bits missing";return o},window.Hex=n}(),function(t){"use strict";var e,n={};n.decode=function(n){var i;if(e===t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="= \f\n\r	\xa0\u2028\u2029";for(e=[],i=0;64>i;++i)e[r.charAt(i)]=i;for(i=0;i<s.length;++i)e[s.charAt(i)]=-1}var o=[],a=0,h=0;for(i=0;i<n.length;++i){var u=n.charAt(i);if("="==u)break;if(u=e[u],-1!=u){if(u===t)throw"Illegal character at offset "+i;a|=u,++h>=4?(o[o.length]=a>>16,o[o.length]=a>>8&255,o[o.length]=255&a,a=0,h=0):a<<=6}}switch(h){case 1:throw"Base64 encoding incomplete: at least 2 bits missing";case 2:o[o.length]=a>>10;break;case 3:o[o.length]=a>>16,o[o.length]=a>>8&255}return o},n.re=/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,n.unarmor=function(t){var e=n.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw"RegExp out of sync";t=e[2]}return n.decode(t)},window.Base64=n}(),function(t){"use strict";function e(t,n){t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}function n(t,e,n,i,r){this.stream=t,this.header=e,this.length=n,this.tag=i,this.sub=r}var i=100,r="\u2026",s={tag:function(t,e){var n=document.createElement(t);return n.className=e,n},text:function(t){return document.createTextNode(t)}};e.prototype.get=function(e){if(e===t&&(e=this.pos++),e>=this.enc.length)throw"Requesting byte offset "+e+" on a stream of length "+this.enc.length;return this.enc[e]},e.prototype.hexDigits="0123456789ABCDEF",e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},e.prototype.hexDump=function(t,e,n){for(var i="",r=t;e>r;++r)if(i+=this.hexByte(this.get(r)),n!==!0)switch(15&r){case 7:i+="  ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.parseStringISO=function(t,e){for(var n="",i=t;e>i;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,e){for(var n="",i=t;e>i;){var r=this.get(i++);n+=String.fromCharCode(128>r?r:r>191&&224>r?(31&r)<<6|63&this.get(i++):(15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(t,e){for(var n="",i=t;e>i;i+=2){var r=this.get(i),s=this.get(i+1);n+=String.fromCharCode((r<<8)+s)}return n},e.prototype.reTime=/^((?:1[89]|2\d)?\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,e.prototype.parseTime=function(t,e){var n=this.parseStringISO(t,e),i=this.reTime.exec(n);return i?(n=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(n+=":"+i[5],i[6]&&(n+=":"+i[6],i[7]&&(n+="."+i[7]))),i[8]&&(n+=" UTC","Z"!=i[8]&&(n+=i[8],i[9]&&(n+=":"+i[9]))),n):"Unrecognized time: "+n},e.prototype.parseInteger=function(t,e){var n=e-t;if(n>4){n<<=3;var i=this.get(t);if(0===i)n-=8;else for(;128>i;)i<<=1,--n;return"("+n+" bit)"}for(var r=0,s=t;e>s;++s)r=r<<8|this.get(s);return r},e.prototype.parseBitString=function(t,e){var n=this.get(t),i=(e-t-1<<3)-n,r="("+i+" bit)";if(20>=i){var s=n;r+=" ";for(var o=e-1;o>t;--o){for(var a=this.get(o),h=s;8>h;++h)r+=a>>h&1?"1":"0";s=0}}return r},e.prototype.parseOctetString=function(t,e){var n=e-t,s="("+n+" byte) ";n>i&&(e=t+i);for(var o=t;e>o;++o)s+=this.hexByte(this.get(o));return n>i&&(s+=r),s},e.prototype.parseOID=function(t,e){for(var n="",i=0,r=0,s=t;e>s;++s){var o=this.get(s);if(i=i<<7|127&o,r+=7,!(128&o)){if(""===n){var a=80>i?40>i?0:1:2;n=a+"."+(i-40*a)}else n+="."+(r>=31?"bigint":i);i=r=0}}return n},n.prototype.typeName=function(){if(this.tag===t)return"unknown";var e=this.tag>>6,n=(this.tag>>5&1,31&this.tag);switch(e){case 0:switch(n){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString";default:return"Universal_"+n.toString(16)}case 1:return"Application_"+n.toString(16);case 2:return"["+n+"]";case 3:return"Private_"+n.toString(16)}},n.prototype.reSeemsASCII=/^[ -~]+$/,n.prototype.content=function(){if(this.tag===t)return null;var e=this.tag>>6,n=31&this.tag,s=this.posContent(),o=Math.abs(this.length);if(0!==e){if(null!==this.sub)return"("+this.sub.length+" elem)";var a=this.stream.parseStringISO(s,s+Math.min(o,i));return this.reSeemsASCII.test(a)?a.substring(0,2*i)+(a.length>2*i?r:""):this.stream.parseOctetString(s,s+o)}switch(n){case 1:return 0===this.stream.get(s)?"false":"true";case 2:return this.stream.parseInteger(s,s+o);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(s,s+o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(s,s+o);case 6:return this.stream.parseOID(s,s+o);case 16:case 17:return"("+this.sub.length+" elem)";case 12:return this.stream.parseStringUTF(s,s+o);case 18:case 19:case 20:case 21:case 22:case 26:return this.stream.parseStringISO(s,s+o);case 30:return this.stream.parseStringBMP(s,s+o);case 23:case 24:return this.stream.parseTime(s,s+o)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},n.prototype.print=function(e){if(e===t&&(e=""),document.writeln(e+this),null!==this.sub){e+="  ";for(var n=0,i=this.sub.length;i>n;++n)this.sub[n].print(e)}},n.prototype.toPrettyString=function(e){e===t&&(e="");var n=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,32&this.tag?n+=" (constructed)":3!=this.tag&&4!=this.tag||null===this.sub||(n+=" (encapsulates)"),n+="\n",null!==this.sub){e+="  ";for(var i=0,r=this.sub.length;r>i;++i)n+=this.sub[i].toPrettyString(e)}return n},n.prototype.toDOM=function(){var t=s.tag("div","node");t.asn1=this;var e=s.tag("div","head"),n=this.typeName().replace(/_/g," ");e.innerHTML=n;var i=this.content();if(null!==i){i=String(i).replace(/</g,"&lt;");var r=s.tag("span","preview");r.appendChild(s.text(i)),e.appendChild(r)}t.appendChild(e),this.node=t,this.head=e;var o=s.tag("div","value");if(n="Offset: "+this.stream.pos+"<br/>",n+="Length: "+this.header+"+",n+=this.length>=0?this.length:-this.length+" (undefined)",32&this.tag?n+="<br/>(constructed)":3!=this.tag&&4!=this.tag||null===this.sub||(n+="<br/>(encapsulates)"),null!==i&&(n+="<br/>Value:<br/><b>"+i+"</b>","object"==typeof oids&&6==this.tag)){var a=oids[i];a&&(a.d&&(n+="<br/>"+a.d),a.c&&(n+="<br/>"+a.c),a.w&&(n+="<br/>(warning!)"))}o.innerHTML=n,t.appendChild(o);var h=s.tag("div","sub");if(null!==this.sub)for(var u=0,c=this.sub.length;c>u;++u)h.appendChild(this.sub[u].toDOM());return t.appendChild(h),e.onclick=function(){t.className="node collapsed"==t.className?"node":"node collapsed"},t},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.fakeHover=function(t){this.node.className+=" hover",t&&(this.head.className+=" hover")},n.prototype.fakeOut=function(t){var e=/ ?hover/;this.node.className=this.node.className.replace(e,""),t&&(this.head.className=this.head.className.replace(e,""))},n.prototype.toHexDOM_sub=function(t,e,n,i,r){if(!(i>=r)){var o=s.tag("span",e);o.appendChild(s.text(n.hexDump(i,r))),t.appendChild(o)}},n.prototype.toHexDOM=function(e){var n=s.tag("span","hex");if(e===t&&(e=n),this.head.hexNode=n,this.head.onmouseover=function(){this.hexNode.className="hexCurrent"},this.head.onmouseout=function(){this.hexNode.className="hex"},n.asn1=this,n.onmouseover=function(){var t=!e.selected;t&&(e.selected=this.asn1,this.className="hexCurrent"),this.asn1.fakeHover(t)},n.onmouseout=function(){var t=e.selected==this.asn1;this.asn1.fakeOut(t),t&&(e.selected=null,this.className="hex")},this.toHexDOM_sub(n,"tag",this.stream,this.posStart(),this.posStart()+1),this.toHexDOM_sub(n,this.length>=0?"dlen":"ulen",this.stream,this.posStart()+1,this.posContent()),null===this.sub)n.appendChild(s.text(this.stream.hexDump(this.posContent(),this.posEnd())));else if(this.sub.length>0){var i=this.sub[0],r=this.sub[this.sub.length-1];this.toHexDOM_sub(n,"intro",this.stream,this.posContent(),i.posStart());for(var o=0,a=this.sub.length;a>o;++o)n.appendChild(this.sub[o].toHexDOM(e));this.toHexDOM_sub(n,"outro",this.stream,r.posEnd(),this.posEnd())}return n},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>3)throw"Length over 24 bits not supported at position "+(t.pos-1);if(0===n)return-1;e=0;for(var i=0;n>i;++i)e=e<<8|t.get();return e},n.hasContent=function(t,i,r){if(32&t)return!0;if(3>t||t>4)return!1;var s=new e(r);3==t&&s.get();var o=s.get();if(o>>6&1)return!1;try{var a=n.decodeLength(s);return s.pos-r.pos+a==i}catch(h){return!1}},n.decode=function(t){t instanceof e||(t=new e(t,0));var i=new e(t),r=t.get(),s=n.decodeLength(t),o=t.pos-i.pos,a=null;if(n.hasContent(r,s,t)){var h=t.pos;if(3==r&&t.get(),a=[],s>=0){for(var u=h+s;t.pos<u;)a[a.length]=n.decode(t);if(t.pos!=u)throw"Content size is not correct for container starting at offset "+h}else try{for(;;){var c=n.decode(t);if(0===c.tag)break;a[a.length]=c}s=h-t.pos}catch(f){throw"Exception while decoding undefined length content: "+f}}else t.pos+=s;return new n(i,o,s,r,a)},n.test=function(){for(var t=[{value:[39],expected:39},{value:[129,201],expected:201},{value:[131,254,220,186],expected:16702650}],i=0,r=t.length;r>i;++i){var s=new e(t[i].value,0),o=n.decodeLength(s);o!=t[i].expected&&document.write("In test["+i+"] expected "+t[i].expected+" got "+o+"\n")}},window.ASN1=n}(),ASN1.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},cn.prototype.parseKey=function(t){try{var e=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,n=e.test(t)?Hex.decode(t):Base64.unarmor(t),i=ASN1.decode(n);if(9===i.sub.length){var r=i.sub[1].getHexStringValue();this.n=hn(r,16);var s=i.sub[2].getHexStringValue();this.e=parseInt(s,16);var o=i.sub[3].getHexStringValue();this.d=hn(o,16);var a=i.sub[4].getHexStringValue();this.p=hn(a,16);var h=i.sub[5].getHexStringValue();this.q=hn(h,16);var u=i.sub[6].getHexStringValue();this.dmp1=hn(u,16);var c=i.sub[7].getHexStringValue();this.dmq1=hn(c,16);var f=i.sub[8].getHexStringValue();this.coeff=hn(f,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1],p=l.sub[0],r=p.sub[0].getHexStringValue();this.n=hn(r,16);var s=p.sub[1].getHexStringValue();this.e=parseInt(s,16)}return!0}catch(d){return!1}},cn.prototype.getPrivateBaseKey=function(){var t={array:[new KJUR.asn1.DERInteger({"int":0}),new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({"int":this.e}),new KJUR.asn1.DERInteger({bigint:this.d}),new KJUR.asn1.DERInteger({bigint:this.p}),new KJUR.asn1.DERInteger({bigint:this.q}),new KJUR.asn1.DERInteger({bigint:this.dmp1}),new KJUR.asn1.DERInteger({bigint:this.dmq1}),new KJUR.asn1.DERInteger({bigint:this.coeff})]},e=new KJUR.asn1.DERSequence(t);return e.getEncodedHex()},cn.prototype.getPrivateBaseKeyB64=function(){return wn(this.getPrivateBaseKey())},cn.prototype.getPublicBaseKey=function(){var t={array:[new KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new KJUR.asn1.DERNull]},e=new KJUR.asn1.DERSequence(t);t={array:[new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({"int":this.e})]};var n=new KJUR.asn1.DERSequence(t);t={hex:"00"+n.getEncodedHex()};var i=new KJUR.asn1.DERBitString(t);t={array:[e,i]};var r=new KJUR.asn1.DERSequence(t);return r.getEncodedHex()},cn.prototype.getPublicBaseKeyB64=function(){return wn(this.getPublicBaseKey())},cn.prototype.wordwrap=function(t,e){if(e=e||64,!t)return t;var n="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},cn.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=this.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},cn.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=this.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},cn.prototype.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},cn.prototype.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},cn.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)};var Wn=function(t){cn.call(this),t&&("string"==typeof t?this.parseKey(t):(this.hasPrivateKeyProperty(t)||this.hasPublicKeyProperty(t))&&this.parsePropertiesFrom(t))};Wn.prototype=new cn,Wn.prototype.constructor=Wn;var Zn=function(t){t=t||{},this.default_key_size=parseInt(t.default_key_size)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null};return Zn.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Wn(t)},Zn.prototype.setPrivateKey=function(t){this.setKey(t)},Zn.prototype.setPublicKey=function(t){this.setKey(t)},Zn.prototype.decrypt=function(t){try{return this.getKey().decrypt(En(t))}catch(e){return!1}},Zn.prototype.encrypt=function(t){try{return wn(this.getKey().encrypt(t))}catch(e){return!1}},Zn.prototype.alipayEncrypt=function(t,e,n){try{return wn(this.getKey().alipayEncrypt(t,e,n))}catch(i){return!1}},Zn.prototype.getKey=function(t){if(!this.key){if(this.key=new Wn,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},Zn.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},Zn.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},Zn.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},Zn.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t=Zn}(),o=function(t){function e(t){var e=document.getElementById(t);if(e){var n=s[t]=[];o(e,"keydown",function(t){n.push(["D",t.keyCode,(new Date).getTime()])}),o(e,"keyup",function(i){""===e.value?n=s[t]=[]:n.push(["U",i.keyCode,(new Date).getTime()])})}}function n(t){var e=s[t];if(!e||0===e.length)return"";for(var n=i(e).join("|");e.length;)e.pop();return n.length>=1024?"":n}function i(t){for(var e,n,i=t[0][2],r=0,s=t.length;s>r;r++)e=t[r],e[2]-=i,n=e[1],n>=48&&57>=n||n>=65&&90>=n||n>=186&&192>=n||n>=219&&222>=n?e[1]=0:n>=96&&111>=n&&(e[1]=-1);return t}function r(t,e){for(var n,i=[],r=0,s="",o=0;256>o;o++)i[o]=o;for(o=0;256>o;o++)r=(r+i[o]+t.charCodeAt(o%t.length))%256,n=i[o],i[o]=i[r],i[r]=n;o=0,r=0;for(var a=0;a<e.length;a++)o=(o+1)%256,r=(r+i[o])%256,n=i[o],i[o]=i[r],i[r]=n,s+=String.fromCharCode(e.charCodeAt(a)^i[(i[o]+i[r])%256]);return s}var s={},o=function(){return document.addEventListener?function(t,e,n){t.addEventListener(e,n,!1)}:document.attachEvent?function(t,e,n){t.attachEvent("on"+e,n)}:function(t,e,n){t["on"+e.toLowerCase()]=n}}();return t={start:e,get:n,ksk:r}}(),a=function(t){function e(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n],n,t)===!1)break}var n=navigator.userAgent.toLowerCase(),i={os:{windows:/\bwindows nt/,macos:/\bmac os/,linux:/\blinux\b/},browser:{ie:/\bmsie |(?:\btrident\/\d+.+?\brv:\d)/,chrome:/ (?:chrome|crios)\//,safari:/version\/\d+.+? safari\//,firefox:/firefox\/\d+/,opera:/opera.+?version\/\d+/},engine:{trident:/\btrident\/\d+\.\d+/}},r={os:{},browser:{},engine:{}};return e(i,function(t,i){e(t,function(t,e){return t.test(n)?(r[i][e]=!0,!1):void 0})}),t=r}(),h=function(t){function e(t){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*h;case"hours":case"hour":case"hrs":case"hr":case"h":return n*a;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}function n(t){return t>=h?Math.round(t/h)+"d":t>=a?Math.round(t/a)+"h":t>=o?Math.round(t/o)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return r(t,h,"day")||r(t,a,"hour")||r(t,o,"minute")||r(t,s,"second")||t+" ms"}function r(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,o=60*s,a=60*o,h=24*a,u=365.25*h;return t=function(t,r){return r=r||{},"string"==typeof t?e(t):r.long?i(t):n(t)}}(),u=function(e){function n(){return e.colors[u++%e.colors.length]}function i(t){function i(){}function r(){var t=r,i=+new Date,s=i-(h||i);t.diff=s,t.prev=h,t.curr=i,h=i,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=n());var o=Array.prototype.slice.call(arguments);o[0]=e.coerce(o[0]),"string"!=typeof o[0]&&(o=["%o"].concat(o));var a=0;o[0]=o[0].replace(/%([a-z%])/g,function(n,i){if("%%"===n)return n;a++;var r=e.formatters[i];if("function"==typeof r){var s=o[a];n=r.call(t,s),o.splice(a,1),a--}return n}),"function"==typeof e.formatArgs&&(o=e.formatArgs.apply(t,o));var u=r.log||e.log||console.log.bind(console);u.apply(t,o)}i.enabled=!1,r.enabled=!0;var s=e.enabled(t)?r:i;return s.namespace=t,s}function r(t){e.save(t);
for(var n=(t||"").split(/[\s,]+/),i=n.length,r=0;i>r;r++)n[r]&&(t=n[r].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function s(){e.enable("")}function o(t){var n,i;for(n=0,i=e.skips.length;i>n;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;i>n;n++)if(e.names[n].test(t))return!0;return!1}function a(t){return t instanceof Error?t.stack||t.message:t}e=e=i,e.coerce=a,e.disable=s,e.enable=r,e.enabled=o,e.humanize=t,e.names=[],e.skips=[],e.formatters={};var h,u=0;return e}({}),c=function(t){return t={Base64:i,xor:r,RSA:s}}(),f=function(t){function e(){return t.colors[u++%t.colors.length]}function n(n){function i(){}function r(){var n=r,i=+new Date,s=i-(a||i);n.diff=s,n.prev=a,n.curr=i,a=i,null==n.useColors&&(n.useColors=t.useColors()),null==n.color&&n.useColors&&(n.color=e());var o=Array.prototype.slice.call(arguments);o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&(o=["%o"].concat(o));var h=0;o[0]=o[0].replace(/%([a-z%])/g,function(e,i){if("%%"===e)return e;h++;var r=t.formatters[i];if("function"==typeof r){var s=o[h];e=r.call(n,s),o.splice(h,1),h--}return e}),"function"==typeof t.formatArgs&&(o=t.formatArgs.apply(n,o));var u=r.log||t.log||console.log.bind(console);u.apply(n,o)}i.enabled=!1,r.enabled=!0;var s=t.enabled(n)?r:i;return s.namespace=n,s}function i(e){t.save(e);for(var n=(e||"").split(/[\s,]+/),i=n.length,r=0;i>r;r++)n[r]&&(e=n[r].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))}function r(){t.enable("")}function s(e){var n,i;for(n=0,i=t.skips.length;i>n;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;i>n;n++)if(t.names[n].test(e))return!0;return!1}function o(t){return t instanceof Error?t.stack||t.message:t}t=t=n,t.coerce=o,t.disable=r,t.enable=i,t.enabled=s,t.humanize=h,t.names=[],t.skips=[],t.formatters={};var a,u=0;return t}({}),l=function(t){function e(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function n(){var e=arguments,n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return e;var i="color: "+this.color;e=[e[0],i,"color: inherit"].concat(Array.prototype.slice.call(e,1));var r=0,s=0;return e[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(s=r))}),e.splice(s,0,i),e}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function r(t){try{null==t?o.removeItem("debug"):o.debug=t}catch(e){}}function s(){var t;try{t=o.debug}catch(e){}return t}t=t=u,t.log=i,t.formatArgs=n,t.save=r,t.load=s,t.useColors=e;var o;return o="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:window.localStorage,t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(t){return JSON.stringify(t)},t.enable(s()),t}({}),p=function(t){function n(){var t,e=!1;try{t=new ActiveXObject("AliCertDO.AliCertDOCtrl"),e=!!t,t=null,a=!0}catch(n){e=!(!navigator.plugins||!navigator.plugins["npalicdo plugin"])}finally{t=null}return h(e?"\u68c0\u6d4b\u5230\u6570\u5b57\u8bc1\u4e66\u63a7\u4ef6\u5df2\u5b89\u88c5":"\u672a\u68c0\u6d4b\u5230\u6570\u5b57\u8bc1\u4e66\u63a7\u4ef6"),e}function i(){if(!n())return null;var t=document.createElement("object");a?t.setAttribute("classid","clsid:08d512d2-7d97-4e22-b7db-82791106c086"):t.setAttribute("type","application/npalicdo"),t.setAttribute("width",0),t.setAttribute("height",0);var e=document.body;return e.appendChild(t),t}function r(){return a?!!s:!(!s||!s.Do)}var s,o=jQuery,a=!1,h=l("security-client-utils:CertControl"),u=e,c=u.parseQuery,f=u.encodeCmdStr,p=function(){};return p.check=function(t){return n()?void o(function(){if(s||(s=i()),!r()){var e="\u63d2\u4ef6\u5df2\u5b89\u88c5\uff0c\u4f46\u662f\u65b9\u6cd5\u4e0d\u53ef\u7528\uff0c\u5f88\u53ef\u80fd\u662f\u7528\u6237\u672a\u5141\u8bb8\u6267\u884c\uff0c\u6216\u88ab\u6d4f\u89c8\u5668\u9ed8\u8ba4\u62e6\u622a";return h(e),t({code:"-2",message:e})}t(null)}):t({code:"-1",message:"\u672a\u5b89\u88c5\u6570\u5b57\u8bc1\u4e66\u63d2\u4ef6\uff0c\u6216\u5df2\u88ab\u7981\u7528"})},p.execCertCmd=function(t,e){p.check(function(n){if(n)return e(n);if(!t)return h("\u6307\u4ee4\u4e3a\u7a7a"),e({code:-3,message:"\u6307\u4ee4\u4e3a\u7a7a"});var i=c(t),r=i.service;if(!r)return h("\u6307\u4ee4\u683c\u5f0f\u9519\u8bef\uff0c\u6ca1\u6709service\u5b57\u6bb5"),e({code:-4,message:"\u6307\u4ee4\u53c2\u6570\u4e0d\u6b63\u786e"});h('\u5f00\u59cb\u6267\u884c\u6307\u4ee4"'+r+'"\uff0c\u8be6\u7ec6\u6307\u4ee4\u4e3a: '+t);var o;try{o=s.Do(f(t))}catch(a){var u="Do \u65b9\u6cd5\u629b\u51fa\u5f02\u5e38\uff1a"+a.toString();return h(u),e({code:-4,message:u})}h('\u6267\u884c\u6307\u4ee4"'+r+'"\u7ed3\u675f\uff0c\u8fd4\u56de\u539f\u59cb\u4fe1\u606f\u4e3a\uff1a'+o);var l=c(o);l.rawData=o,"0"===l.status?(h("\u6267\u884c\u6307\u4ee4\u6210\u529f"),e(null,l)):(h("\u6267\u884c\u6307\u4ee4\u5931\u8d25\uff0c\u63a7\u4ef6\u8fd4\u56de\u9519\u8bef\u7801\u662f\uff1a"+l.status+"\uff0c\u9519\u8bef\u4fe1\u606f\u4e3a\uff1a"+l.msg),e({code:l.status,message:l.msg}))})},t=p}(),d=function(t){function n(t,e){i({command:"check_"+t},function(n,i){if(n)return e(n);if(i.existence)r("\u68c0\u6d4b\u5230\u5ba2\u6237\u7aefhost\u5e94\u7528\uff0ctype: "+t),e(null);else{var s="\u672a\u68c0\u6d4b\u5230\u5ba2\u6237\u7aefhost\u5e94\u7528\uff0ctype: "+t;r(s),e({code:-5,message:"\u672a\u68c0\u6d4b\u5230\u5ba2\u6237\u7aefhost\u5e94\u7528"})}})}function i(t,e){try{chrome.runtime.sendMessage(c.id,t,function(n){if("object"==typeof n)r("\u8c03\u7528sendMessage\u65b9\u6cd5\u6210\u529f\uff0c\u6307\u4ee4\u4e3a: ",t,"\u8fd4\u56de\u4fe1\u606f\u4e3a\uff1a",n),e(null,n);else{var i="\u8c03\u7528sendMessage\u65b9\u6cd5\u8fd4\u56de\u4fe1\u606f\u4e0d\u662fobject\u7c7b\u578b\uff0c\u8bf4\u660e\u672a\u5b89\u88c5extension";r(i),e({code:-3,message:i})}})}catch(n){var i="\u8c03\u7528sendMessage\u65b9\u6cd5\u629b\u51fa\u5f02\u5e38: "+n.message;r(i),e({code:-4,message:i})}}var r=l("security-client-utils:ChromeExtension"),s=e,o=s.parseQuery,a=s.encodeCmdStr,h=!!(document.domain.indexOf("alipay.com")>-1),u=h?"lapoiohkeidniicbalnfmakkbnpejgbi":"egfmbejabpddgnickdlmfabfdjbbgbpp";r("\u9ed8\u8ba4\u4f7f\u7528"+(h?"\u7ebf\u4e0a":"\u7ebf\u4e0b")+"\u7248\u672cextension, id\u4e3a\uff1a"+u);var c={id:u,setID:function(t){return t&&(this.id=t),r("\u66f4\u6362extension id\u4e3a\uff1a"+t),this},checkExtension:function(t){var e="object"==typeof chrome;if(!e){var n="\u4e0d\u662fchrome\u6d4f\u89c8\u5668\uff0c\u4e0d\u652f\u6301ChromeExtension";return r(n),t({code:-1,message:n})}var s="object"==typeof chrome.runtime&&"function"==typeof chrome.runtime.sendMessage;if(!s){var n="\u652f\u4ed8\u5b9d\u5b89\u5168extension\u672a\u5b89\u88c5\uff0csendMessage\u65b9\u6cd5\u4e0d\u5b58\u5728";return r(n),t({code:-2,message:n})}i({command:"check_aliedit"},function(e){return e?t(e):(r("\u68c0\u6d4b\u5230\u652f\u4ed8\u5b9dExtension\u5df2\u5b89\u88c5"),void t(null))})},checkEdit:function(t){this.checkExtension(function(e){return e?t(e):void n("aliedit",t)})},checkCert:function(t){this.checkExtension(function(e){return e?t(e):void n("alicert",t)})},getCi1:function(t){this.checkEdit(function(e){return e?t(e):void i({command:"mac"},function(e,n){return e?t(e):void t(null,n.mac||"")})})},getCi2:function(t){t(null,"")},getSuiteVersion:function(t){this.checkEdit(function(e){return e?t(e):void i({command:"version"},function(e,n){return e?t(e):void t(null,n.version||"")})})},getNetInfo:function(t){t(null,"")},getUmid:function(t){this.checkEdit(function(e){return e?t(e):void i({command:"umid"},function(e,n){return e?t(e):void t(null,n.umid||"")})})},execCertCmd:function(t,e){this.checkCert(function(n){if(n)return e(n);if(!t)return e({code:-6,message:"\u8bc1\u4e66\u6307\u4ee4\u4e3a\u7a7a"});var s=o(t),h=s.service;return h?(r('\u5f00\u59cb\u6267\u884c\u8bc1\u4e66\u6307\u4ee4"'+h+'"\uff0c\u8be6\u7ec6\u6307\u4ee4\u4e3a\uff1a'+t),void i({command:"cert",input:a(t)},function(t,n){if(t)return e(t);var i=n.cert;r('\u8bc1\u4e66\u6307\u4ee4"'+h+'"\u6267\u884c\u7ed3\u675f\uff0c\u8fd4\u56de\u539f\u59cb\u4fe1\u606f\u4e3a\uff1a'+n.cert);var s=o(i);s.rawData=i,"0"===s.status?(r("\u8bc1\u4e66\u6307\u4ee4\u6267\u884c\u6210\u529f"),e(null,s)):(r("\u6267\u884c\u6307\u4ee4\u5931\u8d25\uff0c\u8fd4\u56de\u9519\u8bef\u7801\u662f\uff1a"+s.status+"\uff0c\u9519\u8bef\u4fe1\u606f\u4e3a\uff1a"+s.msg),e({code:s.status,message:s.msg}))})):e({code:-7,message:"\u8bc1\u4e66\u6307\u4ee4\u53c2\u6570\u4e0d\u5408\u6cd5"})})},install:function(t,e,n){var i=this.url+this.id;try{this.addWebStoreLink(),window.top.chrome.webstore.install(i,t,e)}catch(r){n(r)}},url:"https://chrome.google.com/webstore/detail/",webStoreLinkAdded:!1,addWebStoreLink:function(){if(!this.webStoreLinkAdded){var t=window.top.document,e=t.createElement("link");e.setAttribute("rel","chrome-webstore-item"),e.setAttribute("href",this.url+this.id),t.getElementsByTagName("head")[0].appendChild(e),this.webStoreLinkAdded=!0}}};return t=c}(),g=function(t){function n(){}function i(t,e,i){i=i||function(){},n.check(function(n){if(n)return i(n);if(g[t])return i(null,g[t]);var r="getinfo-"+v++,s=!1;m[r]=function(n){if(s=!0,0===n.status){var r="cert"==e.command?n:n.value;g[t]=r,h("\u83b7\u53d6\u4fe1\u606f\u6210\u529f\uff1a"+JSON.stringify(n)),i(null,r)}else{var o="\u83b7\u53d6\u4fe1\u606f\u5931\u8d25\uff1a"+JSON.stringify(n);h(o),i({code:n.status,message:o})}},e.token=r,h("\u53d1\u9001\uff1a"+JSON.stringify(e)),a.send(u.xor(JSON.stringify(e),a.key1)),setTimeout(function(){s||(m[r]=function(){},h("\u83b7\u53d6\u4fe1\u606f\u8d85\u65f6\u5931\u8d25(4s)\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u6ca1\u6709\u8fd4\u56de\u3001\u8fd4\u56de\u8d85\u65f6\u6216\u8005\u8fd4\u56de\u4fe1\u606f\u4e2d\u6ca1\u6709token"),s=!0,i(!1))},4e3)})}function r(t,e){function n(t,n){i||(n&&!t&&h("\u8fde\u63a5websocket server\u8d85\u65f6\u5931\u8d25\uff0c\u65f6\u95f4\uff1a"+r+"ms"),e(t)),i=!0}h("\u5c1d\u8bd5\u7aef\u53e3\u53f7\uff1a["+t.join(", ")+"]...");var i=!1,r=5e3;setTimeout(function(){n(null,!0)},r);var a=0;s(t,function(t,e,i){setTimeout(function(){function t(t){t._hasBeenMarkedAsFailed||(h("\u8fde\u63a5"+e+"\u7aef\u53e3\u5931\u8d25"),t._hasBeenMarkedAsFailed=!0,a++,a==i.length&&(h("\u8fde\u63a5\u6240\u6709\u7aef\u53e3\u5931\u8d25\uff0c\u7aef\u53e3\u53f7\u4e3a\uff1a"+i.join(", ")),n(null)))}var r;try{r=new WebSocket("wss://127.0.0.1:"+e+"/ef2ca22475eb251a71d9f7118a1e4678")}catch(s){h("new websocket\u629b\u51fa\u5f02\u5e38\uff1a"+s.message),r=r||{}}r.onopen=function(){r.port=e,o(r,function(t){t?n(r):r.onerror()})},r.onmessage=function(t){var e=r.key2?u.xor(t.data,r.key2):t.data,n=p(e||"");if(n.rawData=e,n.token){"undefined"!=typeof n.status&&(n.status=parseInt(n.status,10)),r.key2&&n.value&&(n.value=u.Base64.decode(n.value));var i=m[n.token]||function(){};i(n),delete m[n.token]}else h("\u8fd4\u56de\u4fe1\u606f\u6ca1\u6709token\u5b57\u6bb5\uff1a"+e),r.onerror()},r.onclose=r.onerror=function(){t(r)}},0)})}function s(t,e){for(var n=0,i=t.length;i>n;n++)e(n,t[n],t)}function o(t,e){var n=u.Base64,i="hs-"+v++,r=!1;m[i]=function(i){if(r=!0,0===i.status){var s=i.value,o=s.split("|"),a=n.decode(n.decode(o[0])),u=n.decode(o[1]);a==t.key1?(t.key2=u,h("\u63e1\u624b\u6210\u529f"),e(!0)):(h("\u8fde\u63a5\u6210\u529f\uff0c\u4f46\u662f\u7531\u4e8ekey1\u4e0d\u5339\u914d\uff0c\u63e1\u624b\u4e0d\u6210\u529f"),e(!1))}else h("\u63e1\u624b\u5931\u8d25\uff0cstatus\u4e0d\u4e3a0"),e(!1)},t.key1=(new Date).getTime()+"-alipay-hs";var s={command:"hs",key:n.encode(t.key1),token:i};t.send(JSON.stringify(s)),setTimeout(function(){r||(m[i]=function(){},h("\u63e1\u624b\u8d85\u65f6\u5931\u8d25(4s)\uff0c\u53ef\u80fd\u539f\u56e0\u662f\u8d85\u65f6\u6216\u8fd4\u56de\u4fe1\u606f\u6ca1\u6709token"),r=!0,e(!1))},4e3)}var a,h=l("security-client-utils:WebSocket"),u=c,f=e,p=f.parseQuery,d=f.encodeCmdStr,g={},m={},v=0,y=["27382","45242"],b=!1,S=[];return n.check=function(t,e){if("function"==typeof t&&(e=t,t=y),y=t,e=e||function(){},a)return e(null,a.port);if(!window.WebSocket){var n="\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301WebSocket\uff0c\u6216\u8005x-ua-compatible header\u88ab\u8bbe\u7f6e\u6210\u4f4e\u7248\u672c\u6d4f\u89c8\u5668\uff0cua\u4e3a\uff1a"+navigator.userAgent;return e({code:-1,message:n})}S.push(e),b||(b=!0,r(t,function(t){if(b=!1,t)for(a=t;S.length>0;)S.shift().call(null,null,a.port);else for(;S.length>0;)S.shift().call(null,{code:-2,message:"\u8fde\u63a5websocket server\u5931\u8d25"})}))},n.getCi1=function(t){i("mac",{command:"mac"},t)},n.getCi2=function(t){i("ipproxy",{command:"ipproxy"},t)},n.getSuiteVersion=function(t){i("version",{command:"suite_version"},t)},n.getNetInfo=function(t){i("lbs",{command:"lbs"},t)},n.getUmid=function(t){i("umid",{command:"umid"},t)},n.execCertCmd=function(t,e){var n=p(t),r=n.service;h('\u5f00\u59cb\u6267\u884c\u6307\u4ee4"'+r+'"\uff0c\u8be6\u7ec6\u6307\u4ee4\u4e3a: '+t),i("cert: "+t,{command:"cert",param:d(t)},e)},t=n}(),m=function(t){function e(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function n(){var e=arguments,n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return e;var i="color: "+this.color;e=[e[0],i,"color: inherit"].concat(Array.prototype.slice.call(e,1));var r=0,s=0;return e[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(s=r))}),e.splice(s,0,i),e}function i(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function r(t){try{null==t?localStorage.removeItem("debug"):localStorage.debug=t}catch(e){}}function s(){var t;try{t=localStorage.debug}catch(e){}return t}return t=t=f,t.log=i,t.formatArgs=n,t.save=r,t.load=s,t.useColors=e,t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(t){return JSON.stringify(t)},t.enable(s()),t}({}),y=function(t){return t={CertControl:p,ChromeExtension:d,Edit:n.Edit,Npedit:n.Npedit,WebSocket:g,KeySequence:o,ua:a}}(),b=function(t){function e(t,e){n("\u53ef\u9009\u7b56\u7565: "+t.join(",")),this._detectList=[],this._collectList=[];var r=y;this.policy2handler={C1:r.Edit,C2:r.Npedit,W:r.WebSocket,E:r.ChromeExtension},this.policies=t.slice(),e.websocketPorts&&(e.websocketPorts=e.websocketPorts.split(",")),this.options=i.extend({},this.options,e)}var n=l("security-sensor:index"),i=jQuery;return e.prototype={constructor:e,_status:0,_detectList:null,_collectList:null,collecting:!1,infoResults:null,availablePolicy:null,policy2handler:null,policies:null,options:{controlCheckTimeout:5e3},detect:function(t){function e(){var t=r.shift();s.check(t,function(e){e?n():(clearTimeout(i),s.detectComplete(null,t))})}function n(){r.length>0?e():o||(clearTimeout(i),s.detectComplete({code:-1,message:"\u6ca1\u6709\u53ef\u7528\u7b56\u7565"}))}switch(t&&this._detectList.push(t),this._status){case 0:break;case 1:return;case 2:this.wakeDetectList(this.availablePolicy);default:return}var i,r=this.policies.slice(),s=this,o=!1;i=setTimeout(function(){o=!0,s.detectComplete({code:-2,message:"\u68c0\u6d4b\u7b56\u7565\u8d85\u65f6"})},Number(this.options.controlCheckTimeout)),n()},detectComplete:function(t,e){t?n("\u6ca1\u6709\u68c0\u6d4b\u5230\u53ef\u7528\u7b56\u7565\uff0c\u62a5\u9519\u4fe1\u606f: "+t.message):(n("\u53ef\u7528\u7684\u83b7\u53d6\u4fe1\u606f\u7b56\u7565\u662f: "+e),this.availablePolicy=e),this.wakeDetectList(t,e),this._status=2},collectInfo:function(t){if(this.infoResults)return void(t&&t(null,this.infoResults));if(!this.availablePolicy)return t&&t({code:"-1",message:"\u6ca1\u6709\u53ef\u7528\u7684\u83b7\u53d6\u4fe1\u606f\u7b56\u7565"}),void n("\u83b7\u53d6\u4fe1\u606f\u5931\u8d25\uff1a \u6ca1\u6709\u53ef\u7528\u7684\u83b7\u53d6\u4fe1\u606f\u7684\u7b56\u7565");if(n("\u5f00\u59cb\u6536\u96c6\u4fe1\u606f..."),t&&this._collectList.push(t),!this.collecting){this.collecting=!0;for(var e=["Version","Ci1","Ci2","NetInfo"],i=e.length,r={},s=this,o=0,a=i;a>o;o++)this["get"+e[o]](function(t){return function(e,n){r[t]=e?"":n,0===--i&&(s.collecting=!1,s.wakeCollectList(s.infoResults=r))}}(e[o].toLowerCase()))}},onCollectComplete:function(t){return"function"!=typeof t?void n("onCollectComplete\uff1a\u4f20\u5165\u7684callback\u4e0d\u662f\u51fd\u6570"):void(this.infoResults?t(null,this.infoResults):this._collectList.push(t))},wakeCollectList:function(t){n("\u83b7\u53d6\u4fe1\u606f\u5b8c\u6210.");for(var e=this._collectList;e.length;)e.shift().call(this,null,t)},wakeDetectList:function(t,e){for(var n=this._detectList;n.length;)n.shift().call(this,t,e)},check:function(t,e){switch(t){case"C1":this.policy2handler.C1.check(e);break;case"C2":this.policy2handler.C2.check(e);break;case"W":this.options.websocketPorts?this.policy2handler.W.check(this.options.websocketPorts,e):this.policy2handler.W.check(e);break;case"E":this.policy2handler.E.checkEdit(e);break;default:e({code:-1,message:"\u7b56\u7565\u975e\u6cd5: "+t}),n("\u7b56\u7565\u975e\u6cd5: "+t)}},getVersion:function(t){var e=this.policy2handler[this.availablePolicy];if(!e)return t({code:-1,message:"No handler."});switch(this.availablePolicy){case"C1":case"C2":e.getVersion(function(e,i){n(e?"\u83b7\u53d6\u7248\u672c\u53f7\u5931\u8d25: "+e.message:"\u83b7\u53d6\u7248\u672c\u53f7\u6210\u529f: "+i),t(e,i)});break;case"W":case"E":e.getSuiteVersion(function(e,i){n(e?"\u83b7\u53d6\u7248\u672c\u53f7\u5931\u8d25: "+e.message:"\u83b7\u53d6\u7248\u672c\u53f7\u6210\u529f: "+i),t(e,i)});break;default:n("\u975e\u6cd5\u7b56\u7565: "+this.availablePolicy),t({code:-2,message:"\u975e\u6cd5\u7b56\u7565: "+this.availablePolicy})}},getCi1:function(t){this.get("Ci1",function(e,i){n(e?"\u83b7\u53d6ci1\u5931\u8d25: "+e.message:"\u83b7\u53d6ci1\u6210\u529f: "+i),t(e,i)})},getCi2:function(t){this.get("Ci2",function(e,i){n(e?"\u83b7\u53d6ci2\u5931\u8d25: "+e.message:"\u83b7\u53d6ci2\u6210\u529f: "+i),t(e,i)})},getNetInfo:function(t){this.get("NetInfo",function(e,i){n(e?"\u83b7\u53d6netinfo\u5931\u8d25: "+e.message:"\u83b7\u53d6netinfo\u6210\u529f: "+i),t(e,i)})},get:function(t,e){var n;if(n=this.availablePolicy){var i="get"+t,r=this.policy2handler[n];r&&"function"==typeof r[i]?r[i](e):e({code:-2,message:"The policy: "+n+" doesn't implements "+i+" method."})}else e({code:-1,message:"No available policy."})}},t=e}(),S=function(){var t=b,e=jQuery,n=m("sendor-sdk");e(function(){var e=["C2","C1","E","W"],i=new t(e,{});i.detect(function(t,e){t?n("detect err:"+t):(n("policy:"+e),i.getCi1(function(t,e){t&&n("getci1 error!"),window.macid=e}),i.getNetInfo(function(t,e){t&&n("getnetinfo error!"),window.netinfo=e}))})})}()}();