!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("core-js/modules/es6.date.now")):"function"==typeof define&&define.amd?define(["exports","core-js/modules/es6.date.now"],n):n(((e=e||self).Gh=e.Gh||{},e.Gh.openApp={}))}(this,(function(e){"use strict";e.ghOpen=function(){return function(){var e=!0,n=null;function t(){e=!document.hidden}return{__cur_page_visible__:e,addEvent:function(){document.addEventListener("visibilitychange",t)},removeEvent:function(){document.removeEventListener("visibilitychange",t)},openApp:function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1200;n&&clearTimeout(n);var d=document.createElement("iframe");d.src=o||"ghzhushou://",d.style.display="none",document.body.appendChild(d);var u=Date.now();n=setTimeout((function(){document.body.removeChild(d);var n=Date.now();e&&n-u<1500&&("function"==typeof t?t&&t():window.location=t||"https://www.ghzs.com")}),i)}}}()},Object.defineProperty(e,"__esModule",{value:!0})}));
