import{t as v}from"./toString-DlRqgfqz.js";import{t as j}from"./_baseSlice-39dTX4Wi.js";import{t as i}from"./_hasUnicode-QS_pSfjY.js";import{m as b}from"./useEventListener-CjXriKgk.js";import{t as g}from"./invariant-awXiPaF0.js";function x(f,t,u){var n=f.length;return u=u===void 0?n:u,!t&&u>=n?f:j(f,t,u)}var h=x;function l(f){return f.split("")}var U=l,e="\\ud800-\\udfff",w="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",y="\\ufe0e\\ufe0f",A="["+e+"]",r="["+w+"]",o="\\ud83c[\\udffb-\\udfff]",C="(?:"+r+"|"+o+")",d="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",m=C+"?",p="["+y+"]?",N="(?:"+E+"(?:"+[d,a,c].join("|")+")"+p+m+")*",O=p+m+N,S="(?:"+[d+r+"?",r,a,c,A].join("|")+")",$=RegExp(o+"(?="+o+")|"+S+O,"g");function k(f){return f.match($)||[]}var D=k;function J(f){return i(f)?D(f):U(f)}var M=J;function R(f){return function(t){t=v(t);var u=i(t)?M(t):void 0,n=u?u[0]:t.charAt(0),s=u?h(u,1).join(""):t.slice(1);return n[f]()+s}}var T=R("toUpperCase");function _(f){g(!1,`Unexpected object: ${f}`)}function q(f){return b.warn(`Unexpected object: ${JSON.stringify(f)}`),f}export{q as n,T as r,_ as t};
