import t from"../../prop-types/index.js";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function e(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),n}function o(t){document.body.style.paddingRight=t>0?"".concat(t,"px"):null}function r(){return document.body.clientWidth<window.innerWidth}function i(){var t=window.getComputedStyle(document.body,null);return parseInt(t&&t.getPropertyValue("padding-right")||0,10)}function u(){var t=e(),n=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],i=n?parseInt(n.style.paddingRight||0,10):0;r()&&o(i+t)}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:undefined;return n?t.split(" ").map((function(t){return n[t]||t})).join(" "):t}function d(t,n){var e={};return Object.keys(t).forEach((function(o){-1===n.indexOf(o)&&(e[o]=t[o])})),e}function a(t,n){for(var e,o=Array.isArray(n)?n:[n],r=o.length,i={};r>0;)i[e=o[r-=1]]=t[e];return i}var l={};function f(t){l[t]||("undefined"!=typeof console&&console.error(t),l[t]=!0)}function p(t,n){return function(e,o,r){null!==e[o]&&void 0!==e[o]&&f('"'.concat(o,'" property of "').concat(r,'" has been deprecated.\n').concat(n));for(var i=arguments.length,u=new Array(i>3?i-3:0),c=3;c<i;c++)u[c-3]=arguments[c];return t.apply(void 0,[e,o,r].concat(u))}}var s="object"===("undefined"==typeof window?"undefined":n(window))&&window.Element||function(){};function y(t,n,e){if(!(t[n]instanceof s))return new Error("Invalid prop `"+n+"` supplied to `"+e+"`. Expected prop to be an instance of Element. Validation failed.")}var b=t.oneOfType([t.string,t.func,y,t.shape({current:t.any})]),m=t.oneOfType([t.func,t.string,t.shape({$$typeof:t.symbol,render:t.func}),t.arrayOf(t.oneOfType([t.func,t.string,t.shape({$$typeof:t.symbol,render:t.func})]))]),h={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},g=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],v={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},w=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],x=!("undefined"==typeof window||!window.document||!window.document.createElement);function E(t){return!(!t||"object"!==n(t))&&"current"in t}function j(t){var e=n(t);return null!=t&&("object"===e||"function"===e)}function O(t){if(!j(t))return!1;var n=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}(t);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object Proxy]"===n}function S(t){if(E(t))return t.current;if(O(t))return t();if("string"==typeof t&&x){var n=document.querySelectorAll(t);if(n.length||(n=document.querySelectorAll("#".concat(t))),!n.length)throw new Error("The target '".concat(t,"' could not be identified in the dom, tip: check spelling"));return n}return t}function A(t){return null!==t&&(Array.isArray(t)||x&&"number"==typeof t.length)}function C(t,n){var e=S(t);return n?A(e)?e:null===e?[]:[e]:A(e)?e[0]:e}var F=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];export{y as DOMElement,w as PopperPlacements,g as TransitionPropTypeKeys,h as TransitionTimeouts,x as canUseDOM,u as conditionallyUpdateScrollbar,p as deprecated,S as findDOMElements,F as focusableElements,i as getOriginalBodyPadding,e as getScrollbarWidth,C as getTarget,A as isArrayOrNodeList,r as isBodyOverflowing,O as isFunction,j as isObject,E as isReactRefObj,v as keyCodes,c as mapToCssModules,d as omit,a as pick,o as setScrollbarWidth,m as tagPropType,b as targetPropType,f as warnOnce};
//# sourceMappingURL=utils.js.map
