const e=()=>{const e=window.navigator.userAgent;if(e)return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)};function t(e,t,i=!1){let s=null,n=null,o=i;return function(...r){const l=this;if(i&&(n&&clearTimeout(n),o))return e.call(l,...r),o=!1,void(n=setTimeout((()=>{o=!0}),t));s&&clearTimeout(s),s=setTimeout((()=>{e.call(l,...r),o=!0}),t)}}const i=(e,t,i="")=>{if(!e||!e.length)return"";for(let s=0;s<e.length;s++){const n=e[s];if("required"==n.type&&!t&&-1==i.indexOf("size_"))return n.message;if("regex"==n.type&&t){if(!n.value.test(t))return n.message}}},s=e=>{if(e){const t=e.clientHeight;e.getBoundingClientRect().bottom>t&&(e.style.height="100%",e.style.minHeight=t+"px")}},n=(e,t="local")=>{if("local"==t){const t=localStorage.getItem(e);return t?JSON.parse(t):""}if("session"==t){const t=sessionStorage.getItem(e);return t?JSON.parse(t):""}},o=(e,t,i="local")=>{"local"==i?localStorage.setItem(e,JSON.stringify(t)):"session"==i&&sessionStorage.setItem(e,JSON.stringify(t))};export{s as C,i as V,t as d,n as g,e as i,o as s};
