mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-10 20:12:48 +00:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
import {
|
|
require_debounce
|
|
} from "./chunk-MICYOATF.js";
|
|
import {
|
|
require_isObject
|
|
} from "./chunk-3UIITD3Q.js";
|
|
import {
|
|
__commonJS
|
|
} from "./chunk-USJHI7ER.js";
|
|
|
|
// node_modules/lodash/throttle.js
|
|
var require_throttle = __commonJS({
|
|
"node_modules/lodash/throttle.js"(exports, module) {
|
|
var debounce = require_debounce();
|
|
var isObject = require_isObject();
|
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
function throttle(func, wait, options) {
|
|
var leading = true, trailing = true;
|
|
if (typeof func != "function") {
|
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
}
|
|
if (isObject(options)) {
|
|
leading = "leading" in options ? !!options.leading : leading;
|
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
}
|
|
return debounce(func, wait, {
|
|
"leading": leading,
|
|
"maxWait": wait,
|
|
"trailing": trailing
|
|
});
|
|
}
|
|
module.exports = throttle;
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_throttle
|
|
};
|
|
//# sourceMappingURL=chunk-5RIRA43F.js.map
|