1import{c5 as V,i as S,c6 as Q}from"./useConfig-DLqk4N_9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d56b2614-c034-4272-98fd-9f236a46eda6",e._sentryDebugIdIdentifier="sentry-dbid-d56b2614-c034-4272-98fd-9f236a46eda6")}catch(t){}})();var D=/\s/;function M(e){for(var n=e.length;n--&&D.test(e.charAt(n)););return n}var z=/^\s+/;function K(e){return e&&e.slice(0,M(e)+1).replace(z,"")}var E=NaN,X=/^[-+]0x[0-9a-f]+$/i,G=/^0b[01]+$/i,J=/^0o[0-7]+$/i,Z=parseInt;function L(e){if(typeof e=="number")return e;if(V(e))return E;if(S(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=S(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=K(e);var t=G.test(e);return t||J.test(e)?Z(e.slice(2),t?2:8):X.test(e)?E:+e}var w=function(){return Q.Date.now()},ee="Expected a function",ne=Math.max,te=Math.min;function Oe(e,n,t){var i,a,c,u,r,o,f=0,l=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(ee);n=L(n)||0,S(t)&&(l=!!t.leading,d="maxWait"in t,c=d?ne(L(t.maxWait)||0,n):c,m="trailing"in t?!!t.trailing:m);function I(s){var v=i,g=a;return i=a=void 0,f=s,u=e.apply(g,v),u}function R(s){return f=s,r=setTimeout(T,n),l?I(s):u}function Y(s){var v=s-o,g=s-f,A=n-v;return d?te(A,c-g):A}function x(s){var v=s-o,g=s-f;return o===void 0||v>=n||v<0||d&&g>=c}function T(){var s=w();if(x(s))return U(s);r=setTimeout(T,Y(s))}function U(s){return r=void 0,m&&i?I(s):(i=a=void 0,u)}function j(){r!==void 0&&clearTimeout(r),f=0,i=o=a=r=void 0}function H(){return r===void 0?u:U(w())}function C(){var s=w(),v=x(s);if(i=arguments,a=this,o=s,v){if(r===void 0)return R(o);if(d)return clearTimeout(r),r=setTimeout(T,n),I(o)}return r===void 0&&(r=setTimeout(T,n)),u}return C.cancel=j,C.flush=H,C}function ie(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function F(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function re(e,n,t){return n&&F(e.prototype,n),t&&F(e,t),e}function ae(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _(){return _=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_.apply(this,arguments)}var p=navigator.userAgent||"",oe=function(n,t){for(var i=window,a=i.isNaN,c=n.split("."),u=t.split("."),r=0;r<3;r++){var o=Number(c[r]),f=Number(u[r]);if(o>f)return 1;if(f>o)return-1;if(!a(o)&&a(f))return 1;if(a(o)&&!a(f))return-1}return 0},ce=function(){var n=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return Number.parseInt(n[1],10)},ue=function(){var n=navigator.appVersion.match(/micromessenger\/(\d+\.\d+\.\d+)/i);return n[1]},se=/android/i.test(p),fe=/iphone|ipad|ipod/i.test(p),O=/micromessenger\/([\d.]+)/i.test(p),W=/(weibo).*weibo__([\d.]+)/i.test(p),de=/(baiduboxapp)\/([\d.]+)/i.test(p),le=/qq\/([\d.]+)/i.test(p),pe=/(qqbrowser)\/([\d.]+)/i.test(p),B=/qzone\/.*_qz_([\d.]+)/i.test(p),ve=/chrome\/[\d.]+ mobile safari\/[\d.]+/i.test(p)&&se&&p.indexOf("Version")<0;function q(e){var n=typeof e<"u"?Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&"):"";return n?"?".concat(n):""}function P(e,n){var t=e.path,i=e.param,a=n.scheme,c=n.buildScheme;if(typeof c<"u")return c(e,n);var u=a.host,r=a.port,o=a.protocol,f=r?":".concat(r):"",l=u?"".concat(u).concat(f,"/"):"",d=q(i);return"".concat(o,"://").concat(l).concat(t).concat(d)}function $(e,n){var t=n.outChain,i=P(e,n);if(typeof t<"u"&&t){var a=t.protocol,c=t.path,u=t.key;i="".concat(a,"://").concat(c,"?").concat(u,"=").concat(encodeURIComponent(i))}return i}function he(e,n){var t=n.outChain,i=n.intent,a=n.fallback;if(typeof i>"u")return"";var c=Object.keys(i),u=c.map(function(d){return"".concat(d,"=").concat(i[d],";")}).join(""),r="#Intent;".concat(u,"S.browser_fallback_url=").concat(encodeURIComponent(a),";end;"),o=P(e,n);if(typeof t<"u"&&t){var f=t.path,l=t.key;return"intent://".concat(f,"?").concat(l,"=").concat(encodeURIComponent(o)).concat(r)}return o=o.slice(o.indexOf("//")+2),"intent://".concat(o).concat(r)}function me(e,n){var t=n.universal;if(typeof t>"u")return"";var i=t.host,a=t.pathKey,c=e.path,u=e.param,r=q(u),o="https://".concat(i,"/").concat(c).concat(r),f="https://".concat(i,"?").concat(a,"=").concat(c).concat(r.replace("?","&"));return a?f:o}function ge(e,n){var t=$(e,n);return"".concat(n.yingyongbao,"&android_schema=").concat(encodeURIComponent(t))}var b,k,y;function ye(){typeof document>"u"||(typeof document.hidden<"u"?(b="hidden",k="visibilitychange"):typeof document.msHidden<"u"?(b="msHidden",k="msvisibilitychange"):typeof document.webkitHidden<"u"&&(b="webkitHidden",k="webkitvisibilitychange"))}ye();function be(){return typeof b>"u"?!1:document[b]}function h(e){window.top.location.href=e}function ke(e){var n=document.createElement("a");n.setAttribute("href",e),n.style.display="none",document.body.appendChild(n),n.click()}function N(e){y||(y=document.createElement("iframe"),y.style.cssText="display:none;border:0;width:0;height:0;",document.body.appendChild(y)),y.src=e}function Te(e,n){var t=setTimeout(function(){var i=be();i||e()},n);typeof k<"u"?document.addEventListener(k,function(){clearTimeout(t)}):window.addEventListener("pagehide",function(){clearTimeout(t)})}var Ie=function(){function e(n){ie(this,e),ae(this,"options",void 0);var t={timeout:2e3};this.options=_(t,n)}return re(e,[{key:"generateScheme",value:function(t){return $(t,this.options)}},{key:"generateIntent",value:function(t){return he(t,this.options)}},{key:"generateUniversalLink",value:function(t){return me(t,this.options)}},{key:"generateYingYongBao",value:function(t){return ge(t,this.options)}},{key:"checkOpen",value:function(t){var i=this.options,a=i.logFunc,c=i.timeout;return Te(function(){typeof a<"u"&&a("failure"),t()},c)}},{key:"fallToAppStore",value:function(){var t=this;this.checkOpen(function(){h(t.options.appstore)})}},{key:"fallToFbUrl",value:function(){var t=this;this.checkOpen(function(){h(t.options.fallback)})}},{key:"fallToCustomCb",value:function(t){this.checkOpen(function(){t()})}},{key:"open",value:function(t){var i=this.options,a=i.universal,c=i.appstore,u=i.logFunc,r=i.intent,o=t.callback,f=typeof a<"u",l=this.generateScheme(t),d;typeof u<"u"&&u("pending");var m=!!this.options.isSupportWeibo;if(fe?O&&oe(ue(),"7.0.5")===-1||W&&!m?h(c):ce()<9?(N(l),d=this.fallToAppStore):!f||le||pe||B?(ke(l),d=this.fallToAppStore):h(this.generateUniversalLink(t)):O&&typeof this.options.yingyongbao<"u"?h(this.generateYingYongBao(t)):ve?typeof r<"u"?h(this.generateIntent
1(t)):(h(l),d=this.fallToFbUrl):O||de||W&&!m||B?h(this.options.fallback):(N(l),d=this.fallToFbUrl),typeof o<"u"){this.fallToCustomCb(o);return}d&&d.call(this)}}]),e}();const Ce=new Ie({scheme:{protocol:"kjq"},appstore:"https://apps.apple.com/cn/app/id1659339393",timeout:4e3,fallback:location.origin+"/download.html"}),Se=()=>({callAppIns:Ce});export{Oe as d,L as t,Se as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.