1 |
- (window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[11],{"91if":function(e,t,r){},D1Df:function(e,t,r){"use strict";function n(e){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(r,!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function h(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?d(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=r("q1tI"),b=(r("17x9"),r("H38U")),w=r("aRTE");function y(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n<2048?(t+=String.fromCharCode(192|n>>6),t+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(t+=String.fromCharCode(224|n>>12),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t+=String.fromCharCode(240|n>>18),t+=String.fromCharCode(128|n>>12&63),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n))}return t}var _={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return e.forEach((function(e,n){var a=null;e.forEach((function(o,i){if(!o&&null!==a)return r.push("M".concat(a+t," ").concat(n+t,"h").concat(i-a,"v1H").concat(a+t,"z")),void(a=null);if(i!==e.length-1)o&&null===a&&(a=i);else{if(!o)return;null===a?r.push("M".concat(i+t,",").concat(n+t," h1v1H").concat(i+t,"z")):r.push("M".concat(a+t,",").concat(n+t," h").concat(i+1-a,"v1H").concat(a+t,"z"))}}))})),r.join("")}function k(e,t){return e.slice().map((function(e,r){return r<t.y||r>=t.y+t.h?e:e.map((function(e,r){return(r<t.x||r>=t.x+t.w)&&e}))}))}function O(e,t){var r=e.imageSettings,n=e.size,a=e.includeMargin;if(null==r)return null;var o=a?4:0,i=t.length+2*o,s=Math.floor(.1*n),l=i/n,c=(r.width||s)*l,u=(r.height||s)*l,h=null==r.x?t.length/2-c/2:r.x*l,f=null==r.y?t.length/2-u/2:r.y*l,d=null;if(r.excavate){var g=Math.floor(h),m=Math.floor(f);d={x:g,y:m,w:Math.ceil(c+h-g),h:Math.ceil(u+f-m)}}return{x:h,y:f,h:u,w:c,excavation:d}}var E=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),N=function(e){function t(){var e,r;l(this,t);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return p(d(r=h(this,(e=f(t)).call.apply(e,[this].concat(a)))),"_canvas",void 0),p(d(r),"_image",void 0),p(d(r),"state",{imgLoaded:!1}),p(d(r),"handleImageLoad",(function(){r.setState({imgLoaded:!0})})),r}return g(t,e),u(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(e){var t,r;(null===(t=this.props.imageSettings)||void 0===t?void 0:t.src)!==(null===(r=e.imageSettings)||void 0===r?void 0:r.src)&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,a=e.bgColor,o=e.fgColor,i=e.includeMargin,s=e.imageSettings,l=new b(-1,w[n]);if(l.addData(y(t)),l.make(),null!=this._canvas){var c=this._canvas,u=c.getContext("2d");if(!u)return;var h=l.modules;if(null===h)return;var f=i?4:0,d=h.length+2*f,g=O(this.props,h);null!=s&&null!=g&&null!=g.excavation&&(h=k(h,g.excavation));var m=window.devicePixelRatio||1;c.height=c.width=r*m;var p=r/d*m;u.scale(p,p),u.fillStyle=a,u.fillRect(0,0,d,d),u.fillStyle=o,E?u.fill(new Path2D(C(h,f))):h.forEach((function(e,t){e.forEach((function(e,r){e&&u.fillRect(r+f,t+f,1,1)}))})),this.state.imgLoaded&&this._image&&null!=g&&u.drawImage(this._image,g.x+f,g.y+f,g.w,g.h)}}},{key:"render",value:function(){var e=this,t=this.props,r=(t.value,t.size),n=(t.level,t.bgColor,t.fgColor,t.style),o=(t.includeMargin,t.imageSettings),l=s(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),c=i({height:r,width:r},n),u=null,h=o&&o.src;return null!=o&&null!=h&&(u=v.createElement("img",{src:h,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),v.createElement(v.Fragment,null,v.createElement("canvas",a({style:c,height:r,width:r,ref:function(t){return e._canvas=t}},l)),u)}}]),t}(v.PureComponent);p(N,"defaultProps",_);var L=function(e){function t(){return l(this,t),h(this,f(t).apply(this,arguments))}return g(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,o=e.bgColor,i=e.fgColor,l=e.includeMargin,c=e.imageSettings,u=s(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),h=new b(-1,w[n]);h.addData(y(t)),h.make();var f=h.modules;if(null===f)return null;var d=l?4:0,g=f.length+2*d,m=O(this.props,f),p=null;null!=c&&null!=m&&(null!=m.excavation&&(f=k(f,m.excavation)),p=v.createElement("image",{xlinkHref:c.src,height:m.h,width:m.w,x:m.x+d,y:m.y+d,preserveAspectRatio:"none"}));var _=C(f,d);return v.createElement("svg",a({shapeRendering:"crispEdges",height:r,width:r,viewBox:"0 0 ".concat(g," ").concat(g)},u),v.createElement("path",{fill:o,d:"M0,0 h".concat(g,"v").concat(g,"H0z")}),v.createElement("path",{fill:i,d:_}),p)}}]),t}(v.PureComponent);p(L,"defaultProps",_);var P=function(e){var t=e.renderAs,r=s(e,["renderAs"]),n="svg"===t?L:N;return v.createElement(n,r)};P.defaultProps=i({renderAs:"canvas"},_),e.exports=P},GSm1:function(e,t,r){},H38U:function(e,t,r){var n=r("f4xo"),a=r("rcnY"),o=r("wU8J"),i=r("Iq15"),s=r("dWSS");function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;c.addData=function(e){var t=new n(e);this.dataList.push(t),this.dataCache=null},c.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=a.getRSBlocks(e,this.errorCorrectLevel),r=new o,n=0,s=0;s<t.length;s++)n+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var l=this.dataList[s];r.put(l.mode,4),r.put(l.getLength(),i.getLengthInBits(l.mode,e)),l.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},c.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},c.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=i.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},c.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var a=0;a<this.modules.length;a++)for(var o=1*a,i=0;i<this.modules[a].length;i++){var s=1*i;this.modules[a][i]&&(n.beginFill(0,100),n.moveTo(s,o),n.lineTo(s+1,o),n.lineTo(s+1,o+1),n.lineTo(s,o+1),n.endFill())}return n},c.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},c.setupPositionAdjustPattern=function(){for(var e=i.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],a=e[r];if(null==this.modules[n][a])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[n+o][a+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},c.setupTypeNumber=function(e){for(var t=i.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},c.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=i.getBCHTypeInfo(r),a=0;a<15;a++){var o=!e&&1==(n>>a&1);a<6?this.modules[a][8]=o:a<8?this.modules[a+1][8]=o:this.modules[this.moduleCount-15+a][8]=o}for(a=0;a<15;a++){o=!e&&1==(n>>a&1);a<8?this.modules[8][this.moduleCount-a-1]=o:a<9?this.modules[8][15-a-1+1]=o:this.modules[8][15-a-1]=o}this.modules[this.moduleCount-8][8]=!e},c.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,a=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[n][s-l]){var c=!1;o<e.length&&(c=1==(e[o]>>>a&1)),i.getMask(t,n,s-l)&&(c=!c),this.modules[n][s-l]=c,-1==--a&&(o++,a=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,r){for(var n=a.getRSBlocks(e,t),s=new o,c=0;c<r.length;c++){var u=r[c];s.put(u.mode,4),s.put(u.getLength(),i.getLengthInBits(u.mode,e)),u.write(s)}var h=0;for(c=0;c<n.length;c++)h+=n[c].dataCount;if(s.getLengthInBits()>8*h)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*h+")");for(s.getLengthInBits()+4<=8*h&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*h)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*h));)s.put(l.PAD1,8);return l.createBytes(s,n)},l.createBytes=function(e,t){for(var r=0,n=0,a=0,o=new Array(t.length),l=new Array(t.length),c=0;c<t.length;c++){var u=t[c].dataCount,h=t[c].totalCount-u;n=Math.max(n,u),a=Math.max(a,h),o[c]=new Array(u);for(var f=0;f<o[c].length;f++)o[c][f]=255&e.buffer[f+r];r+=u;var d=i.getErrorCorrectPolynomial(h),g=new s(o[c],d.getLength()-1).mod(d);l[c]=new Array(d.getLength()-1);for(f=0;f<l[c].length;f++){var m=f+g.getLength()-l[c].length;l[c][f]=m>=0?g.get(m):0}}var p=0;for(f=0;f<t.length;f++)p+=t[f].totalCount;var v=new Array(p),b=0;for(f=0;f<n;f++)for(c=0;c<t.length;c++)f<o[c].length&&(v[b++]=o[c][f]);for(f=0;f<a;f++)for(c=0;c<t.length;c++)f<l[c].length&&(v[b++]=l[c][f]);return v},e.exports=l},Iq15:function(e,t,r){var n=r("nVVt"),a=r("dWSS"),o=r("dQei"),i=0,s=1,l=2,c=3,u=4,h=5,f=6,d=7,g={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;g.getBCHDigit(t)-g.getBCHDigit(g.G15)>=0;)t^=g.G15<<g.getBCHDigit(t)-g.getBCHDigit(g.G15);return(e<<10|t)^g.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;g.getBCHDigit(t)-g.getBCHDigit(g.G18)>=0;)t^=g.G18<<g.getBCHDigit(t)-g.getBCHDigit(g.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return g.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case i:return(t+r)%2==0;case s:return t%2==0;case l:return r%3==0;case c:return(t+r)%3==0;case u:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case h:return t*r%2+t*r%3==0;case f:return(t*r%2+t*r%3)%2==0;case d:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new a([1],0),r=0;r<e;r++)t=t.multiply(new a([1,o.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var a=0;a<t;a++){for(var o=0,i=e.isDark(n,a),s=-1;s<=1;s++)if(!(n+s<0||t<=n+s))for(var l=-1;l<=1;l++)a+l<0||t<=a+l||0==s&&0==l||i==e.isDark(n+s,a+l)&&o++;o>5&&(r+=3+o-5)}for(n=0;n<t-1;n++)for(a=0;a<t-1;a++){var c=0;e.isDark(n,a)&&c++,e.isDark(n+1,a)&&c++,e.isDark(n,a+1)&&c++,e.isDark(n+1,a+1)&&c++,0!=c&&4!=c||(r+=3)}for(n=0;n<t;n++)for(a=0;a<t-6;a++)e.isDark(n,a)&&!e.isDark(n,a+1)&&e.isDark(n,a+2)&&e.isDark(n,a+3)&&e.isDark(n,a+4)&&!e.isDark(n,a+5)&&e.isDark(n,a+6)&&(r+=40);for(a=0;a<t;a++)for(n=0;n<t-6;n++)e.isDark(n,a)&&!e.isDark(n+1,a)&&e.isDark(n+2,a)&&e.isDark(n+3,a)&&e.isDark(n+4,a)&&!e.isDark(n+5,a)&&e.isDark(n+6,a)&&(r+=40);var u=0;for(a=0;a<t;a++)for(n=0;n<t;n++)e.isDark(n,a)&&u++;return r+=10*(Math.abs(100*u/t/t-50)/5)}};e.exports=g},U4ru:function(e,t,r){},WUZf:function(e,t,r){},aRTE:function(e,t){e.exports={L:1,M:0,Q:3,H:2}},dQei:function(e,t){for(var r={glog:function(e){if(e<1)throw new Error("glog("+e+")");return r.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return r.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)r.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)r.EXP_TABLE[n]=r.EXP_TABLE[n-4]^r.EXP_TABLE[n-5]^r.EXP_TABLE[n-6]^r.EXP_TABLE[n-8];for(n=0;n<255;n++)r.LOG_TABLE[r.EXP_TABLE[n]]=n;e.exports=r},dWSS:function(e,t,r){var n=r("dQei");function a(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}a.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<e.getLength();o++)t[r+o]^=n.gexp(n.glog(this.get(r))+n.glog(e.get(o)));return new a(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=n.glog(this.get(0))-n.glog(e.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(o=0;o<e.getLength();o++)r[o]^=n.gexp(n.glog(e.get(o))+t);return new a(r,0).mod(e)}},e.exports=a},e6uh:function(e,t,r){},f4xo:function(e,t,r){var n=r("nVVt");function a(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}a.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=a},gFcc:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r("q1tI"),a=r.n(n),o=(r("qktM"),a.a.createElement),i=function(e){var t=e.children,r=e.onClick;return o("div",{onClick:r,className:"floating-bar-wrapper"},t)},s=(r("91if"),a.a.createElement),l=function(e){var t=e.locale,r=e.activity,n=r.startAt,o=r.endAt,l=r.url,c=r.img,u=e.onlyLocale,h=/zh/i.test(t)?"zh":"en",f=function(e){var t;return null!==(t=e[h])&&void 0!==t?t:e[u]},d=f(l),g=f(c);if(!d||!g)throw new Error("Parse URL failure.");return function(e,t){var r=Date.now();return r>=Date.parse(e)&&r<=Date.parse(t)}(n,o)?u&&h!==u?s(a.a.Fragment,null):s(i,{onClick:function(){return window.open(d)}},s("img",{className:"activity-entry-img",src:g})):s(a.a.Fragment,null)}},kjs4:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={startAt:"2021/06/17 14:00:00 +0800",endAt:"2021/06/25 18:00:00 +0800",url:{zh:"https://jinshuju.net/f/zxduw9"},img:{zh:"/images/activity/am-activity.svg"}}},nVVt:function(e,t){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},ndSh:function(e,t,r){"use strict";r.r(t),r.d(t,"DownloadPage",(function(){return I}));var n=r("1OyB"),a=r("vuIU"),o=r("md7G"),i=r("foSv"),s=r("Ji7U"),l=r("q1tI"),c=r.n(l),u=(r("eznW"),r("J05j")),h=r("0zJ3"),f=r("ozjc"),d=r("wzFB"),g=(r("w0MD"),r("aOJk")),m=r.n(g),p=r("D1Df"),v=r.n(p),b=(r("U4ru"),l.createElement),w=function(e){var t=e.locale,r=e.userAgent,n=e.page,a="https://itunes.apple.com/us/app/imtoken2/id1384798940",o="https://token.im/downloads/imToken-v2.apk",i="https://token.im/download?index=0&locale=".concat(t),s=/android/i.test(r),l=/iPhone|iPad/i.test(r),c=/Mobile/i.test(r),u=/^zh$/i.test(t)||/zh-cn/i.test(t),h=b("a",{className:"js_download",href:a,"data-source":"".concat(n,"-app-store")},b("img",{src:"/images/download/app-store.svg",className:"app-store",alt:"app store"}));l&&(h=null);var d=b("a",{className:"js_download",href:o,"data-source":"".concat(n,"-android-apk"),"data-link":o,target:"_blank"},b("img",{src:"/images/download/apk-".concat(u?"zh":"en",".svg"),className:"app-store",alt:"downoad apk"}));return s&&(h=d),b("div",{className:"flex-column platforms mini-download"},b("div",{className:"flex-row"},b("div",{className:"flex-column"},h,!c&&!1),b("div",{className:"flex-column"},l?b("a",{className:"js_download",href:a,"data-source":"".concat(n,"-app-store")},b("img",{src:"/images/download/app-store.svg",className:"app-store",alt:"app store"})):b("a",{className:"js_download",href:"https://play.google.com/store/apps/details?id=im.token.app","data-source":"".concat(n,"-android-play")},b("img",{src:"/images/download/google-play.svg",className:"app-store",alt:"google play"}))),!c&&b("div",{className:"flex-column"},d),!c&&b(m.a,{trigger:"hover",overlayClassName:"qrcode-popover",placement:"bottom",content:b("div",{className:"flex-column",style:{alignItems:"center"}},b(v.a,{value:i,size:180,style:{padding:10}}),b("span",null,Object(f.b)("download_by_qrcode")))},b("div",{className:"flex-column qrcode"},b("img",{src:"/images/download/qr-code.svg"})))))},y=r("8Kt/"),_=r.n(y),C=r("yIgx"),k=r("gFcc"),O=r("kjs4"),E=(r("WUZf"),r("oIFK")),N=r("wsDI"),L=c.a.createElement,P=Object(E.a)("checksums").useChecksumsConfig,B=Object(E.b)().OStaticChecksums,D=function(e){var t=e.locale,r=e.userAgent,n=P(B,[],B).data,a=n.version,o=n.checksums,i=void 0===o?[]:o,s=Object(l.useState)(!1),c=s[0],u=s[1],h="".concat(Object(f.d)(t),"/articles/4405256632601"),d=/android/i.test(r),g=/iPhone|iPad/i.test(r);return L("div",{className:"checksum-wrapper"},L("div",{className:"checksum_header",onClick:function(){return u((function(e){return!e}))}},L("div",{className:"checksum_line"},L("div",{className:"verify-security"},Object(f.b)("how_to_valid_security")),L("img",{className:"checksum_expand",src:"/images/download/".concat(c?"fold-arrow":"expand-arrow",".svg")}))),L("div",{style:{display:c?"block":"none"},className:"checksum_body"},L("div",{className:"apk-version"},g?Object(f.b)("current_version"):Object(f.b)("current_apk_version")," ",a),!g&&i.map((function(e){var t=e.name,r=e.hash;return t.includes("Android")&&L("div",{key:t,className:"hash-block"},L("div",{className:"name"},t),L("p",{className:"hash"},r))})),L("div",{className:"hash-block"},L("div",{className:"name"},d?"Google Play":g?"App Store":Object(f.b)("google_paly_and_app_store")),L("p",{className:"hash"},Object(f.b)("please_confirm_developer"))),L("div",{className:"learn-more-wrppaer"},L("a",{onClick:function(){return Object(N.a)("valid_app_security","click","click_count")},href:h,className:"learn-more"},Object(f.b)("learn_more")),L("img",{className:"arrow-right",src:"/images/download/blue-arrow-right.svg"}))))},A=(r("e6uh"),c.a.createElement),j=function(e){var t=e.children;return A("div",{className:"fake-tip-item"},A("div",{className:"list-prefix"}),t)},M=function(e){var t=e.locale;return A("div",{className:"fake-warning"},A("img",{className:"guard-img",src:"/images/download/guard.svg"}),A(j,null,A("div",{className:"make-sure-correct-addr"},Object(f.b)("make_sure_correct_addr"),A("b",null,Object(f.b)("network_certificate_security")))),A("img",{className:"right-domain",src:"/images/download/right-domain.svg"}),A("div",{className:"fake-warning__line"}),A(j,null,A("div",null,Object(f.b)("dont_trust"),A("b",null,Object(f.b)("stranger_calls")),Object(f.b)("dont_expose"),A("b",null,Object(f.b)("mnemonic")),Object(f.b)("and"),A("b",null,Object(f.b)("private_key")),Object(f.b)("fake_tip_item_2_suffix"))),A(j,null,A("div",{className:"learn-more"},A("a",{href:"".concat(Object(f.d)(t),"/sections/900000531866?from=download}/"),className:"learn-more-link"},Object(f.b)("learn_more_about_scam")),A("img",{src:"/images/download/yellow-arrow-right.svg"}))))},x=function(e){var t=e.userAgent,r=e.locale;return A("div",{className:"fake-tip-wrapper"},A(M,{locale:r}),A(D,{locale:r,userAgent:t}))},S=l.createElement;function T(e,t,r){return t=Object(i.a)(t),Object(o.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Object(i.a)(e).constructor):t.apply(e,r))}var I=function(e){function t(){return Object(n.a)(this,t),T(this,t,arguments)}return Object(s.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e=this.props,t=e.locale,r=e.userAgent,n=/zh-cn/i.test(t),a=/Mobile/i.test(r),o=S("div",{className:"inner-wrapper"},S("div",{className:"feature-wrapper"},S(C.a,{title:"",subtitle:"",sectionClass:"download-inner",items:[{title:Object(f.b)("multiple_chain_wallet"),subtitles:[Object(f.b)("download_multiple_chain_wallet_subtitle")],imgSrc:"/images/download/wallet.svg"},{title:Object(f.b)("download_market_title"),subtitles:[Object(f.b)("download_market_subtitle")],imgSrc:"/images/download/market.svg"}]})));return S("div",{className:"download-page"},S(_.a,null,S("title",null,Object(f.b)("download_page_title")),S("meta",{name:"description",content:Object(f.b)("download_page_desc")}),S("meta",{name:"keywords",content:Object(f.b)("keywords")}),S("meta",{name:"generator",content:Object(f.b)("generator")})),S(h.a,{userAgent:r,locale:t}),S("div",{className:"download-page"},S("section",{className:"download-container download-container-".concat(n?"zh":"en")},S("div",{className:"download-area download-area-active"},S("div",{className:"flex-column download-area-inner"},S("img",{className:"download-area-icon",src:"/img/appLogo.svg",alt:"Logo"}),S("p",{className:"download-area-title"},Object(f.b)("download_international_version")),S("p",{className:"download-area-subtitle"},Object(f.b)("home_slogan_subtitle")),S(w,{locale:t,userAgent:r,page:"download"}),S(x,{userAgent:r,locale:t})),a&&S("div",{className:"line"}),a&&o)),!a&&S("div",{className:"line"}),!a&&o),S(k.a,{onlyLocale:"zh",locale:t,activity:O.a}),S(d.a,{locale:t,userAgent:r}))}}])}(l.Component);t.default=Object(u.a)(I)},qktM:function(e,t,r){},rcnY:function(e,t,r){var n=r("aRTE");function a(e,t){this.totalCount=e,this.dataCount=t}a.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],a.getRSBlocks=function(e,t){var r=a.getRsBlockTable(e,t);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,o=new Array,i=0;i<n;i++)for(var s=r[3*i+0],l=r[3*i+1],c=r[3*i+2],u=0;u<s;u++)o.push(new a(l,c));return o},a.getRsBlockTable=function(e,t){switch(t){case n.L:return a.RS_BLOCK_TABLE[4*(e-1)+0];case n.M:return a.RS_BLOCK_TABLE[4*(e-1)+1];case n.Q:return a.RS_BLOCK_TABLE[4*(e-1)+2];case n.H:return a.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=a},wU8J:function(e,t){function r(){this.buffer=new Array,this.length=0}r.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=r},yIgx:function(e,t,r){"use strict";var n=r("q1tI"),a=r.n(n),o=r("QIvD"),i=(r("GSm1"),a.a.createElement);t.a=function(e){var t=e.sectionClass,r=e.title,n=e.subtitle,a=e.items,s=e.subtitleExtra,l=void 0===s?null:s,c=e.children,u=void 0===c?null:c;return i(o.a,{title:r,subtitle:n,className:t||"",subtitleExtra:l},i("div",{className:"flex-row feature-row"},a.map((function(e,t){return i("div",{className:"flex-column",key:e.title||t},i("div",null,i("img",{src:e.imgSrc,alt:"Wallet"}),i("div",null,i("p",{className:"title"},e.title),(e.subtitles||[]).map((function(e){return i("p",{className:"subtitle",key:e},e)})))),e.extra)}))),u)}}}]);
|