(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{240:function(o,t,n){"use strict";var e=n(0),i=n(5),a="为保证良好的阅读体验，建议不要缩放浏览器大小哦～";function r(o){var t=this;t.loopInst=null,t.isShowing=!1,t.once=o.toastOnce,o&&o.dynamicDetect&&Object(i.$)(window).on("resize",(function(){t.detect()&&!t.isShowing&&t.showToast()})),t.detect()&&t.showToast()}function s(){var o=window.devicePixelRatio,t=window.screen;return 1!==function(o,t){var n=Math.pow(10,t);return Math.round(o*n)/n}(o&&o<1&&o>0?o:isNaN(t.deviceXDPI)||isNaN(t.logicalXDPI)?window.outerWidth/window.innerWidth:t.deviceXDPI/t.logicalXDPI,1)}r.prototype.showToast=function(){var o=this,t=["<style>","#wk-zoom-warn-toast{","position:fixed;z-index:99999;","background:rgba(0,0,0,0.7);color:#fff;","font-size:16px;border-radius:6px;","width:420px;text-align:center;","height:32px;line-height:32px;","left:50%;top:50%;","margin-left:-210px;margin-top:-16px;","animation:fadein .5s;-webkit-animation:fadein .5s;}","@keyframes fadein {from{opacity:0;}to{opacity:1;}}","@-webkit-keyframes fadein {from{opacity:0;}to{opacity:1;}}","</style>",'<div id="wk-zoom-warn-toast">',a,"</div>"].join("");Object(i.$)("body").append(t),Object(i.$)("#wk-zoom-warn-toast").fadeIn(),o.isShowing=!0,e.log.xsend(102484,{}),setTimeout((function(){Object(i.$)("#wk-zoom-warn-toast").fadeOut(500,(function(){Object(i.$)("#wk-zoom-warn-toast").remove(),o.isShowing=!1,o.once&&o.destroy()}))}),3e3)},r.prototype.detect=function(){return s()},r.prototype.destroy=function(){this.isShowing=!0,window.clearInterval(this.loopInst),0!==Object(i.$)("#wk-zoom-warn-toast").length&&Object(i.$)("#wk-zoom-warn-toast").remove()},t.a={run:function(o){return new r(o)},zoomDetect:s}}}]);