theme.keycloak.v2.admin.resources.assets.debounce-DTNSlfWG.js Maven / Gradle / Ivy
import{dl as L,dh as v,dw as M}from"./main-C7ps2lmX.js";var N=/\s/;function B(n){for(var r=n.length;r--&&N.test(n.charAt(r)););return r}var R=/^\s+/;function $(n){return n&&n.slice(0,B(n)+1).replace(R,"")}var k=NaN,F=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,j=/^0o[0-7]+$/i,D=parseInt;function S(n){if(typeof n=="number")return n;if(L(n))return k;if(v(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=v(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=$(n);var t=_.test(n);return t||j.test(n)?D(n.slice(2),t?2:8):F.test(n)?k:+n}var I=function(){return M.Date.now()},H="Expected a function",P=Math.max,U=Math.min;function q(n,r,t){var u,s,l,d,i,f,c=0,p=!1,o=!1,T=!0;if(typeof n!="function")throw new TypeError(H);r=S(r)||0,v(t)&&(p=!!t.leading,o="maxWait"in t,l=o?P(S(t.maxWait)||0,r):l,T="trailing"in t?!!t.trailing:T);function x(e){var a=u,m=s;return u=s=void 0,c=e,d=n.apply(m,a),d}function W(e){return c=e,i=setTimeout(g,r),p?x(e):d}function O(e){var a=e-f,m=e-c,E=r-a;return o?U(E,l-m):E}function y(e){var a=e-f,m=e-c;return f===void 0||a>=r||a<0||o&&m>=l}function g(){var e=I();if(y(e))return b(e);i=setTimeout(g,O(e))}function b(e){return i=void 0,T&&u?x(e):(u=s=void 0,d)}function A(){i!==void 0&&clearTimeout(i),c=0,u=f=s=i=void 0}function C(){return i===void 0?d:b(I())}function h(){var e=I(),a=y(e);if(u=arguments,s=this,f=e,a){if(i===void 0)return W(f);if(o)return clearTimeout(i),i=setTimeout(g,r),x(f)}return i===void 0&&(i=setTimeout(g,r)),d}return h.cancel=A,h.flush=C,h}export{q as d};
//# sourceMappingURL=debounce-DTNSlfWG.js.map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy