var e,r=require("react/jsx-runtime"),a=require("react");function t(){return t=Object.assign?Object.assign.bind():function(e){for(var r=1;r=0||(n[a]=e[a]);return n}function s(e,r){return e?r?e+" "+r:e:r}exports.TabElements=void 0,(e=exports.TabElements||(exports.TabElements={})).tabList="tabs",e.tab="tab",e.tabPanel="tab-panel";var l=["role","className","children"],c=function(e){var a=e.className,c=e.children,i=n(e,l),o=s("_react_Tab",a);return r.jsx("button",t({className:o},i,{children:c}))};c.defaultProps={type:"button",role:exports.TabElements.tab};var i=["role","children","className"],o=function(e){var a=e.children,l=e.className,c=n(e,i),o=s("_react_Tab_List",l);return r.jsx("div",t({className:o},c,{children:a}))};o.defaultProps={role:exports.TabElements.tabList};var u=["role","children","className"],b=function(e){var a=e.children,l=e.className,c=n(e,u),i=s("_react_Tab_Panel",l);return r.jsx("div",t({className:i},c,{children:a}))};b.defaultProps={role:exports.TabElements.tabPanel};var p=function(e,r,t,n){var l,c=null!=(l=e.key)?l:r;return e.props.role===exports.TabElements.tab?a.cloneElement(e,{key:"tab-"+c,className:s(n,e.props.className),onClick:function(r){e.props.onClick&&e.props.onClick(r),t()}}):e};function d(e){for(var r=Array.isArray(e)?e:a.Children.toArray(e),t=[],n=0;n