import{t as e}from"./chunk-jRWAZmH_.js";import{n as t}from"./jsx-runtime-CEixWuwE.js";import{Nn as n,Wn as r}from"./axios-v6FV69Ne.js";import{J as i,Y as a}from"./index-BqyXv5bE.js";import{D as o,E as s,T as c,n as l,v as u}from"./context-un7wPzry.js";var d=e((e=>{var t=a().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=c;var n=t(o()),r=Symbol.for(`react.element`),i=Symbol.for(`react.transitional.element`),s=Symbol.for(`react.fragment`);function c(e){return e&&(0,n.default)(e)===`object`&&(e.$$typeof===r||e.$$typeof===i)&&e.type===s}})),f=e((e=>{var n=a().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=o;var r=n(d()),i=n(t());function o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return i.default.Children.forEach(e,function(e){e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(o(e)):(0,r.default)(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))}),n}})),p=e((e=>{var n=s().default,o=a().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.useCompactItemContext=e.default=e.SpaceCompactItemContext=e.NoCompactStyle=void 0;var u=o(i()),d=o(c()),p=o(r()),m=o(f()),h=n(t()),g=l(),_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},v=e.SpaceCompactItemContext=h.createContext(null);e.useCompactItemContext=function(e,t){var n=h.useContext(v),r=h.useMemo(function(){if(!n)return``;var r=n.compactDirection,i=n.isFirstItem,a=n.isLastItem,o=r===`vertical`?`-vertical-`:`-`;return(0,p.default)((0,d.default)((0,d.default)((0,d.default)((0,d.default)({},`${e}-compact${o}item`,!0),`${e}-compact${o}first-item`,i),`${e}-compact${o}last-item`,a),`${e}-compact${o}item-rtl`,t===`rtl`))},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},e.NoCompactStyle=function(e){var t=e.children;return h.createElement(v.Provider,{value:null},t)};var y=function(e){var t=e.children,n=_(e,[`children`]);return h.createElement(v.Provider,{value:n},t)};e.default=function(e){var t=h.useContext(g.ConfigContext),n=t.getPrefixCls,r=t.direction,i=e.size,a=i===void 0?`middle`:i,o=e.direction,s=e.block,c=e.prefixCls,l=e.className,f=e.children,b=_(e,[`size`,`direction`,`block`,`prefixCls`,`className`,`children`]),x=n(`space-compact`,c),S=(0,p.default)(x,(0,d.default)((0,d.default)((0,d.default)({},`${x}-rtl`,r===`rtl`),`${x}-block`,s),`${x}-vertical`,o===`vertical`),l),C=h.useContext(v),w=(0,m.default)(f),T=h.useMemo(function(){return w.map(function(e,t){var n=e&&e.key||`${x}-item-${t}`;return h.createElement(y,{key:n,compactSize:a,compactDirection:o,isFirstItem:t===0&&(!C||C?.isFirstItem),isLastItem:t===w.length-1&&(!C||C?.isLastItem)},e)})},[a,w,C]);return w.length===0?null:h.createElement(`div`,(0,u.default)({className:S},b),T)}})),m=e((e=>{var n=s().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.cloneElement=c,e.isFragment=a,e.isValidElement=void 0,e.replaceElement=o;var r=n(t()),i=e.isValidElement=r.isValidElement;function a(e){return e&&i(e)&&e.type===r.Fragment}function o(e,t,n){return i(e)?r.cloneElement(e,typeof n==`function`?n(e.props||{}):n):t}function c(e,t){return o(e,e,t)}})),h=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.tupleNum=e.tuple=void 0,e.tuple=function(){return[...arguments]},e.tupleNum=function(){return[...arguments]}})),g=e((e=>{var r=a().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.useComposeRef=e.supportRef=e.supportNodeRef=e.getNodeRef=e.fillRef=e.composeRef=void 0;var i=r(o()),s=t(),c=n(),l=r(u()),f=r(d()),p=Number(s.version.split(`.`)[0]),m=e.fillRef=function(e,t){typeof e==`function`?e(t):(0,i.default)(e)===`object`&&e&&`current`in e&&(e.current=t)},h=e.composeRef=function(){var e=[...arguments],t=e.filter(Boolean);return t.length<=1?t[0]:function(t){e.forEach(function(e){m(e,t)})}};e.useComposeRef=function(){var e=[...arguments];return(0,l.default)(function(){return h.apply(void 0,e)},e,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})};var g=e.supportRef=function(e){var t,n;if(!e)return!1;if(_(e)&&p>=19)return!0;var r=(0,c.isMemo)(e)?e.type.type:e.type;return!(typeof r==`function`&&!((t=r.prototype)!=null&&t.render)&&r.$$typeof!==c.ForwardRef||typeof e==`function`&&!((n=e.prototype)!=null&&n.render)&&e.$$typeof!==c.ForwardRef)};function _(e){return(0,s.isValidElement)(e)&&!(0,f.default)(e)}e.supportNodeRef=function(e){return _(e)&&g(e)},e.getNodeRef=function(e){if(e&&_(e)){var t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null}}));export{p as i,h as n,m as r,g as t};