"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=t=>typeof t=="function",p=Array.isArray,l=t=>typeof t=="string",f=t=>t!==null&&typeof t=="object",h=/^on[^a-z]/,y=t=>h.test(t),i=t=>{const n=Object.create(null);return e=>n[e]||(n[e]=t(e))},P=/-(\w)/g,d=i(t=>t.replace(P,(n,e)=>e?e.toUpperCase():"")),g=/\B([A-Z])/g,O=i(t=>t.replace(g,"-$1").toLowerCase()),A=i(t=>t.charAt(0).toUpperCase()+t.slice(1)),b=Object.prototype.hasOwnProperty,a=(t,n)=>b.call(t,n);function m(t,n,e,r){const o=t[e];if(o!=null){const c=a(o,"default");if(c&&r===void 0){const s=o.default;r=o.type!==Function&&u(s)?s():s}o.type===Boolean&&(!a(n,e)&&!c?r=!1:r===""&&(r=!0))}return r}function w(t){return Object.keys(t).reduce((n,e)=>((e.startsWith("data-")||e.startsWith("aria-"))&&(n[e]=t[e]),n),{})}function F(t){return typeof t=="number"?`${t}px`:t}function j(t,n={},e){return typeof t=="function"?t(n):t??e}function z(t){let n;const e=new Promise(o=>{n=t(()=>{o(!0)})}),r=()=>{n?.()};return r.then=(o,c)=>e.then(o,c),r.promise=e,r}exports.cacheStringFunction=i;exports.camelize=d;exports.capitalize=A;exports.getDataAndAriaProps=w;exports.hyphenate=O;exports.isArray=p;exports.isFunction=u;exports.isObject=f;exports.isOn=y;exports.isString=l;exports.renderHelper=j;exports.resolvePropValue=m;exports.toPx=F;exports.wrapPromiseFn=z;
