import{g as l,o as c,u as a}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";var s;const f=typeof window<"u",g=e=>typeof e=="string",T=()=>{};f&&((s=window==null?void 0:window.navigator)==null?void 0:s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function p(e,i){function n(...t){e(()=>i.apply(this,t),{fn:i,thisArg:this,args:t})}return n}function d(e,i={}){let n,t;return r=>{const u=a(e),o=a(i.maxWait);if(n&&clearTimeout(n),u<=0||o!==void 0&&o<=0)return t&&(clearTimeout(t),t=null),r();o&&!t&&(t=setTimeout(()=>{n&&clearTimeout(n),t=null,r()},o)),n=setTimeout(()=>{t&&clearTimeout(t),t=null,r()},u)}}function h(e){return l()?(c(e),!0):!1}function v(e,i=200,n={}){return p(d(i,n),e)}export{g as a,f as i,T as n,h as t,v as u};
