let _={data:""},N=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||_},O=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,k=/\/\*[^]*?\*\/|  +/g,w=/\n+/g,d=(e,t)=>{let a="",i="",c="";for(let r in e){let n=e[r];r[0]=="@"?r[1]=="i"?a=r+" "+n+";":i+=r[1]=="f"?d(n,r):r+"{"+d(n,r[1]=="k"?"":t)+"}":typeof n=="object"?i+=d(n,t?t.replace(/([^,])+/g,l=>r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,o=>/&/.test(o)?o.replace(/&/g,l):l?l+" "+o:o)):r):n!=null&&(r=r[1]=="-"?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),c+=d.p?d.p(r,n):r+":"+n+";")}return a+(t&&c?t+"{"+c+"}":c)+i},p={},j=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+j(e[a]);return t}return e},C=(e,t,a,i,c)=>{let r=j(e),n=p[r]||(p[r]=(o=>{let s=0,u=11;for(;s<o.length;)u=101*u+o.charCodeAt(s++)>>>0;return"go"+u})(r));if(!p[n]){let o=r!==e?e:(s=>{let u,f,g=[{}];for(;u=O.exec(s.replace(k,""));)u[4]?g.shift():u[3]?(f=u[3].replace(w," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][u[1]]=u[2].replace(w," ").trim();return g[0]})(e);p[n]=d(c?{["@keyframes "+n]:o}:o,a?"":"."+n)}let l=a&&p.g;return a&&(p.g=p[n]),((o,s,u,f)=>{f?s.data=s.data.replace(f,o):s.data.indexOf(o)===-1&&(s.data=u?o+s.data:s.data+o)})(p[n],t,i,l),n},F=(e,t,a)=>e.reduce((i,c,r)=>{let n=t[r];if(n&&n.call){let l=n(a),o=l&&l.props&&l.props.className||/^go/.test(l)&&l;n=o?"."+o:l&&typeof l=="object"?l.props?"":d(l,""):l===!1?"":l}return i+c+(n??"")},"");function h(e){let t=this||{},a=e.call?e(t.p):e;return C(a.unshift?a.raw?F(a,[].slice.call(arguments,1),t.p):a.reduce((i,c)=>Object.assign(i,c&&c.call?c(t.p):c),{}):a,N(t.target),t.g,t.o,t.k)}let y,m,b;h.bind({g:1});let x=h.bind({k:1});function A(e,t,a,i){d.p=t,y=e,m=a,b=i}function L(e,t){let a=this||{};return function(){let i=arguments;function c(r,n){let l=Object.assign({},r),o=l.className||c.className;a.p=Object.assign({theme:m&&m()},l),a.o=/go\d/.test(o),l.className=h.apply(a,i)+(o?" "+o:"");let s=e;return e[0]&&(s=l.as||e,delete l.as),b&&s[0]&&b(l),y(s,l)}return c}}export{x as h,A as m,h as u,L as w};
