var QRCode; !function(){function J(a){this.mode=x.MODE_8BIT_BYTE;this.data=a;this.parsedData=[];a=0;for(var b=this.data.length;a>>18,c[1]=128|(258048&d)>>>12,c[2]=128|(4032&d)>>>6,c[3]=128|63&d):2048>>12,c[1]=128|(4032&d)>>>6,c[2]=128|63&d):128>>6,c[1]=128|63&d):c[0]=d;this.parsedData.push(c)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191), this.parsedData.unshift(187),this.parsedData.unshift(239))}function q(a,b){this.typeNumber=a;this.errorCorrectLevel=b;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}function D(a,b){if(null==a.length)throw Error(a.length+"/"+b);for(var c=0;ca||this.moduleCount<=a||0>b|| this.moduleCount<=b)throw Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(a,b){this.moduleCount=4*this.typeNumber+17;this.modules=Array(this.moduleCount);for(var c=0;c=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var d=-1;7>=d;d++)-1>=b+d||this.moduleCount<=b+d||(this.modules[a+c][b+d]=0<=c&& 6>=c&&(0==d||6==d)||0<=d&&6>=d&&(0==c||6==c)||2<=c&&4>=c&&2<=d&&4>=d)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var d=p.getLostPoint(this);(0==c||d=f;f++)for(var h=-2;2>=h;h++)this.modules[d+f][e+h]=-2==f||2==f||-2==h||2==h||0==f&&0==h}},setupTypeNumber:function(a){for(var b= p.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var d=!a&&1==(b>>c&1);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(c=0;18>c;c++)d=!a&&1==(b>>c&1),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d},setupTypeInfo:function(a,b){b=p.getBCHTypeInfo(this.errorCorrectLevel<<3|b);for(var c=0;15>c;c++){var d=!a&&1==(b>>c&1);6>c?this.modules[c][8]=d:8>c?this.modules[c+1][8]=d:this.modules[this.moduleCount-15+c][8]=d}for(c=0;15>c;c++)d=!a&&1==(b>>c&1),8>c?this.modules[8][this.moduleCount- c-1]=d:9>c?this.modules[8][15-c-1+1]=d:this.modules[8][15-c-1]=d;this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,d=this.moduleCount-1,e=7,f=0,h=this.moduleCount-1;0g;g++)if(null==this.modules[d][h-g]){var l=!1;f>>e&1));p.getMask(b,d,h-g)&&(l=!l);this.modules[d][h-g]=l;-1==--e&&(f++,e=7)}if(0>(d+=c)||this.moduleCount<=d){d-=c;c=-c;break}}}};q.PAD0=236;q.PAD1=17;q.createData=function(a,b,c){b=z.getRSBlocks(a,b); for(var d=new E,e=0;e8*a)throw Error("code length overflow. ("+d.getLengthInBits()+">"+8*a+")");for(d.getLengthInBits()+4<=8*a&&d.put(0,4);0!=d.getLengthInBits()%8;)d.putBit(!1);for(;!(d.getLengthInBits()>=8*a||(d.put(q.PAD0,8),d.getLengthInBits()>=8*a));)d.put(q.PAD1,8);return q.createBytes(d,b)};q.createBytes=function(a,b){for(var c= 0,d=0,e=0,f=Array(b.length),h=Array(b.length),g=0;g>>=1;return b},getPatternPosition:function(a){return p.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case 0:return 0==(b+c)%2;case 1:return 0==b%2;case 2:return 0==c%3;case 3:return 0==(b+c)%3;case 4:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case 5:return 0==b*c% 2+b*c%3;case 6:return 0==(b*c%2+b*c%3)%2;case 7:return 0==(b*c%3+(b+c)%2)%2;default:throw Error("bad maskPattern:"+a);}},getErrorCorrectPolynomial:function(a){for(var b=new D([1],0),c=0;cb)switch(a){case x.MODE_NUMBER:return 10;case x.MODE_ALPHA_NUM:return 9;case x.MODE_8BIT_BYTE:case x.MODE_KANJI:return 8;default:throw Error("mode:"+a);}else if(27>b)switch(a){case x.MODE_NUMBER:return 12;case x.MODE_ALPHA_NUM:return 11; case x.MODE_8BIT_BYTE:return 16;case x.MODE_KANJI:return 10;default:throw Error("mode:"+a);}else{if(!(41>b))throw Error("type:"+b);switch(a){case x.MODE_NUMBER:return 14;case x.MODE_ALPHA_NUM:return 13;case x.MODE_8BIT_BYTE:return 16;case x.MODE_KANJI:return 12;default:throw Error("mode:"+a);}}},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;d=g;g++)if(!(0>d+g||b<=d+g))for(var l=-1;1>=l;l++)0>e+l||b<=e+l||0==g&&0==l||h== a.isDark(d+g,e+l)&&f++;5a)throw Error("glog("+a+")");return r.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return r.EXP_TABLE[a]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},t=0;8>t;t++)r.EXP_TABLE[t]=1<t;t++)r.EXP_TABLE[t]=r.EXP_TABLE[t-4]^r.EXP_TABLE[t-5]^r.EXP_TABLE[t-6]^r.EXP_TABLE[t-8];for(t=0;255>t;t++)r.LOG_TABLE[r.EXP_TABLE[t]]=t;D.prototype={get:function(a){return this.num[a]}, getLength:function(){return this.num.length},multiply:function(a){for(var b=Array(this.getLength()+a.getLength()-1),c=0;cthis.getLength()-a.getLength())return this;for(var b=r.glog(this.get(0))-r.glog(a.get(0)),c=Array(this.getLength()),d=0;d>>7-a%8&1)},put:function(a,b){for(var c=0;c>>b-c-1&1))},getLengthInBits:function(){return this.length}, putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0);a&&(this.buffer[b]|=128>>>this.length%8);this.length++}};var H=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711, 509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],N=(M.prototype.draw=function(a){function b(g,l){g=document.createElementNS("http://www.w3.org/2000/svg", g);for(var m in l)l.hasOwnProperty(m)&&g.setAttribute(m,l[m]);return g}var c=this._htOption,d=this._el,e=a.getModuleCount();Math.floor(c.width/e);Math.floor(c.height/e);this.clear();var f=b("svg",{viewBox:"0 0 "+String(e)+" "+String(e),width:"100%",height:"100%",fill:c.colorLight});f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");d.appendChild(f);f.appendChild(b("rect",{fill:c.colorLight,width:"100%",height:"100%"}));f.appendChild(b("rect",{fill:c.colorDark, width:"1",height:"1",id:"template"}));for(c=0;c'],g=0;g");for(var l=0;l');h.push("")}h.push("");c.innerHTML=h.join("");a=c.childNodes[0];c=(b.width-a.offsetWidth)/2;b=(b.height-a.offsetHeight)/2;0=this._android){var c=1/window.devicePixelRatio,d=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,f,h,g,l,m,k,u,v){if("nodeName"in e&&/img/i.test(e.nodeName))for(var n=arguments.length-1;1<=n;n--)arguments[n]*=c;else void 0===u&&(f*=c,h*=c,g*=c,l*=c);d.apply(this,arguments)}}return b.prototype.draw= function(e){var f=this._elImage,h=this._oContext,g=this._htOption,l=e.getModuleCount(),m=g.width/l,k=g.height/l,u=Math.round(m),v=Math.round(k);f.style.display="none";this.clear();for(f=0;f=q.documentElement.clientWidth,t=(q.images[0]||0).src||"",H=E("site")||E("Site")|| q.title,N=E("title")||E("Title")||q.title,O=E("description")||E("Description")||"",a={url:location.href,origin:location.origin,source:H,title:N,description:O,image:t,imageSelector:D,weiboKey:"",wechatQrcodeTitle:"\u5fae\u4fe1\u626b\u4e00\u626b\uff1a\u5206\u4eab",wechatQrcodeHelper:"

\u5fae\u4fe1\u91cc\u70b9\u201c\u53d1\u73b0\u201d\uff0c\u626b\u4e00\u4e0b

\u4e8c\u7ef4\u7801\u4fbf\u53ef\u5c06\u672c\u6587\u5206\u4eab\u81f3\u670b\u53cb\u5708\u3002

",wechatQrcodeSize:100,sites:"weibo qq wechat douban qzone linkedin facebook twitter google".split(" "), mobileSites:[],disabled:[],initialized:!1},b={qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{URL}}&title={{TITLE}}&desc={{DESCRIPTION}}&summary={{SUMMARY}}&site={{SOURCE}}&pics={{IMAGE}}",qq:'http://connect.qq.com/widget/shareqq/index.html?url={{URL}}&title={{TITLE}}&source={{SOURCE}}&desc={{DESCRIPTION}}&pics={{IMAGE}}&summary="{{SUMMARY}}"',weibo:"https://service.weibo.com/share/share.php?url={{URL}}&title={{TITLE}}&pic={{IMAGE}}&appkey={{WEIBOKEY}}",wechat:"javascript:", douban:"http://shuo.douban.com/!service/share?href={{URL}}&name={{TITLE}}&text={{DESCRIPTION}}&image={{IMAGE}}&starid=0&aid=0&style=11",linkedin:"http://www.linkedin.com/shareArticle?mini=true&ro=true&title={{TITLE}}&url={{URL}}&summary={{SUMMARY}}&source={{SOURCE}}&armin=armin",facebook:"https://www.facebook.com/sharer/sharer.php?u={{URL}}",twitter:"https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{ORIGIN}}",google:"https://plus.google.com/share?url={{URL}}"};J.socialShare=function(e, f){(e="string"==typeof e?z(e):e).length===D&&(e=[e]);A(e,function(h){h.initialized||function(g,l){l=function(){var m=arguments;if(B)return B.apply(null,m);var k={};return A(m,function(u){A(u,function(v,n){k[n]=v})}),m[0]=k}({},a,l||{},function(m){if(m.dataset)return JSON.parse(JSON.stringify(m.dataset));var k={};return m.hasAttributes()?(A(m.attributes,function(u){var v=u.name;if(0!==v.indexOf("data-"))return!0;v=v.replace(/^data-/i,"").replace(/-(\w)/g,function(n,C){return C.toUpperCase()});k[v]= u.value}),k):{}}(g));l.imageSelector&&(l.image=z(l.imageSelector).map(function(m){return m.src}).join("||"));(function(m,k){if(k&&"string"==typeof k){k=(m.className+" "+k).split(/\s+/);var u=" ";A(k,function(v){0>u.indexOf(" "+v+" ")&&(u+=v+" ")});m.className=u.slice(1,-1)}})(g,"share-component social-share");(function(m,k){var u=function(n){n.mobileSites.length||(n.mobileSites=n.sites);var C=(r?n.mobileSites:n.sites).slice(0);n=n.disabled;"string"==typeof C&&(C=C.split(/\s*,\s*/));"string"==typeof n&& (n=n.split(/\s*,\s*/));p&&n.push("wechat");return n.length&&A(n,function(w){var F=C,I=F.splice;a:{var G=C,y=void 0;if(G){if(x){w=x.call(G,w,y);break a}var L=G.length;for(y=y?0>y?Math.max(0,L+y):y:0;y