!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DisableDevtool=e():n.DisableDevtool=e()}(this,(function(){return function(n){var e={};function t(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return n[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=n,t.c=e,t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(o,r,function(e){return n[e]}.bind(null,r));return o},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";function o(n){return-1!==navigator.userAgent.toLocaleLowerCase().indexOf(n)}t.r(e);var r=function(){try{return window.self!==window.top}catch(n){return!0}}(),i=o("qqbrowser"),u=o("firefox"),c=o("macintosh"),a=o("edge")&&!o("chrome")||o("trident")||o("msie"),f=window.console||{log:function(){}},l=a?function(){return f.log.apply(f,arguments)}:f.log,d=a?function(){return f.clear()}:f.clear,s=null,v=null,w=[],m=0;function p(){var n,e,t,o,r,i,u=!1,c=function(){u=!0},a=function(){u=!1};n=c,e=a,t=window.alert,o=window.confirm,r=window.prompt,i=function(t){return function(){n&&n(),t.apply(void 0,arguments),e&&e()}},window.alert=i(t),window.confirm=i(o),window.prompt=i(r),function(n,e){var t,o,r;void 0!==document.hidden?(t="hidden",r="visibilitychange",o="visibilityState"):void 0!==document.mozHidden?(t="mozHidden",r="mozvisibilitychange",o="mozVisibilityState"):void 0!==document.msHidden?(t="msHidden",r="msvisibilitychange",o="msVisibilityState"):void 0!==document.webkitHidden&&(t="webkitHidden",r="webkitvisibilitychange",o="webkitVisibilityState");var i=function(){document[o]===t?e():n()};document.removeEventListener(r,i,!1),document.addEventListener(r,i,!1)}(a,c),s=window.setInterval((function(){u||(w.forEach((function(n){n(m++)})),d())}),_.interval),v=setTimeout((function(){/(iphone|ipad|ipod|ios|android)/i.test(navigator.userAgent.toLowerCase())&&b()}),_.stopIntervalTime)}function y(n){w.push(n)}function b(){window.clearInterval(s)}function h(){window.clearTimeout(v)}function g(){if(b(),_.url)window.location.href=_.url;else{try{window.opener=null,window.open("","_self"),window.close(),window.history.back()}catch(n){console.log(n)}setTimeout((function(){window.location.href="https://tackchen.gitee.io/404.html?h=".concat(encodeURIComponent(location.host))}),500)}}function T(n){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var _={md5:"",ondevtoolopen:g,url:"",tkName:"ddtk",interval:200,disableMenu:!0,stopIntervalTime:5e3,clearIntervalWhenDevOpenTrigger:!1,detectors:"all"},I=["detectors"];function E(n,e,t,o,r,i){return R((u=R(R(e,n),R(o,i)))<<(c=r)|u>>>32-c,t);var u,c}function S(n,e,t,o,r,i,u){return E(e&t|~e&o,n,e,r,i,u)}function O(n,e,t,o,r,i,u){return E(e&o|t&~o,n,e,r,i,u)}function D(n,e,t,o,r,i,u){return E(e^t^o,n,e,r,i,u)}function N(n,e,t,o,r,i,u){return E(t^(e|~o),n,e,r,i,u)}function R(n,e){var t=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(t>>16)<<16|65535&t}var x,G=function(n){return function(n){for(var e="0123456789abcdef",t="",o=0;o<4*n.length;o++)t+=e.charAt(n[o>>2]>>o%4*8+4&15)+e.charAt(n[o>>2]>>o%4*8&15);return t}(function(n,e){n[e>>5]|=128<>>9<<4)]=e;for(var t=1732584193,o=-271733879,r=-1732584194,i=271733878,u=0;u>5]|=(255&n.charCodeAt(t/8))<200,t=window.outerHeight-window.innerHeight*n>300;return!e&&!t||(K(A.SIZE),!1)}function P(n){return null!=n}function k(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var A={UNKONW:-1,REG_TO_STRING:0,DEFINE_ID:1,SIZE:2,DATE_TO_STRING:3,FUNC_TO_STRING:4},C=(k(x={},A.REG_TO_STRING,(function(){var n=i,e=u;if(n||e){var t=0,o=/./;l(o),o.toString=function(){if(n){var o=(new Date).getTime();t&&o-t<100?K(A.REG_TO_STRING):t=o}else e&&K(A.REG_TO_STRING);return""},y((function(){l(o)}))}})),k(x,A.DEFINE_ID,(function(){var n=document.createElement("div");n.__defineGetter__("id",(function(){K(A.DEFINE_ID)})),Object.defineProperty(n,"id",{get:function(){K(A.DEFINE_ID)}}),y((function(){l(n)}))})),k(x,A.SIZE,(function(){r?console.warn("SizeDetector is disabled in IFrame"):(j(),window.addEventListener("resize",(function(){setTimeout(j,100)}),!0))})),k(x,A.DATE_TO_STRING,(function(){var n=0,e=new Date;e.toString=function(){return n++,""},y((function(){n=0,l(e),d(),n>=2&&K(A.DATE_TO_STRING)}))})),k(x,A.FUNC_TO_STRING,(function(){var n=0,e=function(){};e.toString=function(){return n++,""},y((function(){n=0,l(e),d(),n>=2&&K(A.FUNC_TO_STRING)}))})),x);function K(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.UNKONW;console.warn("You ar not allow to use DEVTOOL! 【type = ".concat(n,"】")),_.clearIntervalWhenDevOpenTrigger&&b(),h(),_.ondevtoolopen(n,g)}function L(n){var e,t,o,r,i,u;(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in _)void 0===n[e]||T(_[e])!==T(n[e])&&!I.includes(e)||(_[e]=n[e])}(n),function(){if(_.md5){var n=function(n){var e=window.location.search;if(""!==e){var t=new RegExp("(^|&)"+n+"=([^&]*)(&|$)","i"),o=e.substr(1).match(t);if(null!=o)return unescape(o[2])}return""}(_.tkName);if(G(n)===_.md5)return!0}return!1}())||(p(),e=73,t=85,o=83,r=123,i=c?function(n,t){return n.metaKey&&n.altKey&&t===e}:function(n,t){return n.ctrlKey&&n.shiftKey&&t===e},u=c?function(n,e){return n.metaKey&&n.altKey&&e===t||n.metaKey&&e===o}:function(n,e){return n.ctrlKey&&(e===o||e===t)},window.addEventListener("keydown",(function(n){var e=(n=n||window.event).keyCode||n.which;if(e===r||i(n,e)||u(n,e))return n.returnValue=!1,n.preventDefault(),!1}),!0),_.disableMenu&&window.addEventListener("contextmenu",(function(n){return(n=n||window.event).returnValue=!1,n.preventDefault(),!1}),!0),("all"===_.detectors?Object.keys(C):_.detectors).forEach((function(n){C[n]&&C[n]()})))}L.md5=G,L.version="0.1.12",L.DETECTOR_TYPE=A,function(){if("undefined"!=typeof document){var n=document.querySelector("[disable-devtool-auto]");if(n){var e={};["md5","url","tk-name","interval","disable-menu","detectors"].forEach((function(t){var o=n.getAttribute(t);null!==o&&("interval"===t?o=parseInt(o):"disable-menu"===t?o="false"!==o:"detector"===t&&"all"!==o&&(o=o.split(" ")),e[function(n){if(-1===n.indexOf("-"))return n;var e=!1;return n.split("").map((function(n){return"-"===n?(e=!0,""):e?(e=!1,n.toUpperCase()):n})).join("")}(t)]=o)})),L(e)}}}();e.default=L}]).default}));