import{n as e,s as t}from"./jsx-runtime-Bzw2jH9X.js";import{C as n,E as r,I as i,J as a,V as o,X as s,_ as c,b as l,c as u,d,et as f,g as p,s as m,t as h,v as ee,wt as g,x as _}from"./useSize-B63T5I0m.js";import{t as v}from"./KeyCode-Bm8t-2oB.js";import{c as y,i as b}from"./fallbackProp-B11gqN1s.js";import{t as x}from"./AntdIconLight-CvbQyke2.js";import{n as S,t as C}from"./LeftOutlined-BuFKOoQs.js";import{t as te}from"./EllipsisOutlined-bdG3ke8N.js";import{Ct as w,Et as T,Ft as ne,It as re,Mt as ie,Nt as E,Ot as D,St as O,wt as k,zt as ae}from"./index-DkcBoy_T.js";var A=t(e()),oe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}var M=A.forwardRef((e,t)=>A.createElement(x,j({},e,{ref:t,icon:oe}))),se={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}var ce=A.forwardRef((e,t)=>A.createElement(x,N({},e,{ref:t,icon:se}))),le={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},P=[10,20,50,100],ue=e=>{let{pageSizeOptions:t=P,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=A.useState(``),m=A.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,ee=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},g=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},_=e=>{f!==``&&(e.keyCode===v.ENTER||e.type===`click`)&&(p(``),o?.(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let x=null,S=null,C=null;return u&&d&&(x=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(C=typeof a==`boolean`?A.createElement(`button`,{type:`button`,onClick:_,onKeyUp:_,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):A.createElement(`span`,{onClick:_,onKeyUp:_},a)),S=A.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,A.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:ee,onKeyUp:_,onBlur:g,"aria-label":n.page}),n.page,C)),A.createElement(`li`,{className:b},x,S)},F=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:c,onKeyPress:l,itemRender:u}=e,d=`${t}-item`,f=s(d,`${d}-${n}`,{[`${d}-active`]:r,[`${d}-disabled`]:!n},i),p=()=>{c(n)},m=e=>{l(e,c,n)},h=u(n,`page`,A.createElement(`a`,{rel:`nofollow`},n));return h?A.createElement(`li`,{title:o?String(n):null,className:f,style:a,onClick:p,onKeyDown:m,tabIndex:0},h):null};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}var de=(e,t,n)=>n;function L(){}function fe(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function R(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var z=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:c=1,total:l=0,pageSize:u,defaultPageSize:d=10,onChange:p=L,hideOnSinglePage:m,align:h,showPrevNextJumpers:ee=!0,showQuickJumper:_,showLessItems:y,showTitle:b=!0,onShowSizeChange:x=L,locale:S=le,style:C,totalBoundaryShowSizeChanger:te=50,disabled:w,simple:T,showTotal:ne,showSizeChanger:re=l>te,sizeChangerRender:ie,pageSizeOptions:E,itemRender:D=de,jumpPrevIcon:O,jumpNextIcon:k,prevIcon:ae,nextIcon:oe}=e,j=A.useRef(null),[M,se]=g(d,u),[N,ce]=g(c,o),P=Math.max(1,Math.min(N,R(void 0,M,l))),[z,B]=A.useState(P);(0,A.useEffect)(()=>{B(P)},[P]),`current`in e;let V=Math.max(1,P-(y?3:5)),H=Math.min(R(void 0,M,l),P+(y?3:5));function U(n,r){let i=n||A.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=A.createElement(n,e)),i}function W(e){let t=e.target.value,n=R(void 0,M,l),r;return r=t===``?t:Number.isNaN(Number(t))?z:t>=n?n:Number(t),r}function pe(e){return fe(e)&&e!==P&&fe(l)&&l>0}let me=l>M&&_;function he(e){(e.keyCode===v.UP||e.keyCode===v.DOWN)&&e.preventDefault()}function ge(e){let t=W(e);switch(t!==z&&B(t),e.keyCode){case v.ENTER:G(t);break;case v.UP:G(t-1);break;case v.DOWN:G(t+1)}}function _e(e){G(W(e))}function ve(e){let t=R(e,M,l),n=P>t&&t!==0?t:P;se(e),B(n),x?.(P,e),ce(n),p?.(n,e)}function G(e){if(pe(e)&&!w){let t=R(void 0,M,l),n=e;return e>t?n=t:e<1&&(n=1),n!==z&&B(n),ce(n),p?.(n,M),n}return P}let K=P>1,q=P<R(void 0,M,l);function ye(){K&&G(P-1)}function be(){q&&G(P+1)}function xe(){G(V)}function Se(){G(H)}function J(e,t,...n){(e.key===`Enter`||e.charCode===v.ENTER||e.keyCode===v.ENTER)&&t(...n)}function Ce(e){J(e,ye)}function we(e){J(e,be)}function Te(e){J(e,xe)}function Ee(e){J(e,Se)}function De(e){let t=D(e,`prev`,U(ae,`prev page`));return A.isValidElement(t)?A.cloneElement(t,{disabled:!K}):t}function Oe(e){let t=D(e,`next`,U(oe,`next page`));return A.isValidElement(t)?A.cloneElement(t,{disabled:!q}):t}function ke(e){(e.type===`click`||e.keyCode===v.ENTER)&&G(z)}let Ae=null,je=f(e,{aria:!0,data:!0}),Me=ne&&A.createElement(`li`,{className:`${t}-total-text`},ne(l,[l===0?0:(P-1)*M+1,P*M>l?l:P*M])),Ne=null,Y=R(void 0,M,l);if(m&&l<=M)return null;let X=[],Z={rootPrefixCls:t,onClick:G,onKeyPress:J,showTitle:b,itemRender:D,page:-1,className:i?.item,style:a?.item},Pe=P-1>0?P-1:0,Fe=P+1<Y?P+1:Y,Ie=_&&_.goButton,Le=typeof T==`object`?T.readOnly:!T,Re=Ie,ze=null;T&&(Ie&&(Re=typeof Ie==`boolean`?A.createElement(`button`,{type:`button`,onClick:ke,onKeyUp:ke},S.jump_to_confirm):A.createElement(`span`,{onClick:ke,onKeyUp:ke},Ie),Re=A.createElement(`li`,{title:b?`${S.jump_to}${P}/${Y}`:null,className:`${t}-simple-pager`},Re)),ze=A.createElement(`li`,{title:b?`${P}/${Y}`:null,className:s(`${t}-simple-pager`,i?.item),style:a?.item},Le?z:A.createElement(`input`,{type:`text`,"aria-label":S.jump_to,value:z,disabled:w,onKeyDown:he,onKeyUp:ge,onChange:ge,onBlur:_e,size:3}),A.createElement(`span`,{className:`${t}-slash`},`/`),Y));let Q=y?1:2;if(Y<=3+Q*2){Y||X.push(A.createElement(F,I({},Z,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=Y;e+=1)X.push(A.createElement(F,I({},Z,{key:e,page:e,active:P===e})))}else{let e=y?S.prev_3:S.prev_5,n=y?S.next_3:S.next_5,r=D(V,`jump-prev`,U(O,`prev page`)),i=D(H,`jump-next`,U(k,`next page`));ee&&(Ae=r?A.createElement(`li`,{title:b?e:null,key:`prev`,onClick:xe,tabIndex:0,onKeyDown:Te,className:s(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!O})},r):null,Ne=i?A.createElement(`li`,{title:b?n:null,key:`next`,onClick:Se,tabIndex:0,onKeyDown:Ee,className:s(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!k})},i):null);let a=Math.max(1,P-Q),o=Math.min(P+Q,Y);P-1<=Q&&(o=1+Q*2),Y-P<=Q&&(a=Y-Q*2);let c=!!Ae&&P-1>=Q*2&&P!==3,l=!!Ne&&Y-P>=Q*2&&P!==Y-2;!y&&c&&o!==Y&&(a+=1),!y&&l&&a!==1&&--o;for(let e=a;e<=o;e+=1)X.push(A.createElement(F,I({},Z,{key:e,page:e,active:P===e})));if(c&&(X[0]=A.cloneElement(X[0],{className:s(`${t}-item-after-jump-prev`,X[0].props.className)}),X.unshift(Ae)),l){let e=X[X.length-1];X[X.length-1]=A.cloneElement(e,{className:s(`${t}-item-before-jump-next`,e.props.className)}),X.push(Ne)}a!==1&&X.unshift(A.createElement(F,I({},Z,{key:1,page:1}))),o!==Y&&X.push(A.createElement(F,I({},Z,{key:Y,page:Y})))}let Be=De(Pe);if(Be){let e=!K||!Y;Be=A.createElement(`li`,{title:b?S.prev_page:null,onClick:ye,tabIndex:e?null:0,onKeyDown:Ce,className:s(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Be)}let $=Oe(Fe);if($){let e,n;T?(e=!q,n=K?0:null):(e=!q||!Y,n=e?null:0),$=A.createElement(`li`,{title:b?S.next_page:null,onClick:be,tabIndex:n,onKeyDown:we,className:s(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},$)}let Ve=s(t,r,{[`${t}-start`]:h===`start`,[`${t}-center`]:h===`center`,[`${t}-end`]:h===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return A.createElement(`ul`,I({className:Ve,style:C,ref:j},je),Me,Be,T?ze:X,$,A.createElement(ue,{locale:S,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ve,pageSize:M,pageSizeOptions:E,quickGo:me?G:null,goButton:Re,showSizeChanger:re,sizeChangerRender:ie}))},B=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},V=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...k(e),width:e.paginationMiniQuickJumperInputWidth}}}}},H=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...w(e)}}}}},U=e=>{let{componentCls:t,antCls:n}=e,[,r]=p(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${o(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${o(e.inputOutlineOffset)} 0 ${o(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},W=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...D(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${o(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},pe=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=p(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:a(`item-spacing-actual`)},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${o(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:{...O(e),...T(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...D(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},me=e=>{let{componentCls:t,antCls:n}=e,[,r]=p(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:o(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${o(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${o(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},he=e=>{let{componentCls:t,antCls:r}=e,[i,a]=p(r,`pagination`);return{[t]:{[i(`item-size-actual`)]:o(e.itemSize),[i(`item-spacing-actual`)]:o(e.marginXS),"&-small":{[i(`item-size-actual`)]:o(e.itemSizeSM),[i(`item-spacing-actual`)]:o(e.marginXXS)},"&-large":{[i(`item-size-actual`)]:o(e.itemSizeLG),[i(`item-spacing-actual`)]:o(e.marginSM)},...n(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:a(`item-size-actual`),marginInlineEnd:a(`item-spacing-actual`),lineHeight:o(e.calc(a(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...me(e),...pe(e),...U(e),...W(e),...V(e),...H(e),...B(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},ge=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{..._(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...l(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:l(e)}}}},_e=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...ie(e)}),ve=e=>i(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},E(e)),G=c(`Pagination`,e=>{let t=ve(e);return[he(t),ge(t)]},_e),K=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},q=ee([`Pagination`,`bordered`],e=>K(ve(e)),_e);function ye(e){return(0,A.useMemo)(()=>typeof e==`boolean`?[e,{}]:d(e)?[!0,e]:[void 0,void 0],[e])}var be=e=>{let{align:t,prefixCls:n,selectPrefixCls:i,className:o,rootClassName:c,style:l,size:d,locale:f,responsive:p,showSizeChanger:ee,components:g,selectComponentClass:_,pageSizeOptions:v,styles:x,classNames:w,...T}=e,{xs:ie}=ne(p),[,E]=r(),{getPrefixCls:D,direction:O,showSizeChanger:k,className:oe,style:j,classNames:se,styles:N,totalBoundaryShowSizeChanger:le}=a(`pagination`),P=D(`pagination`,n),[ue,F]=G(P),I=h(d),de=I===`small`||!!(ie&&!I&&p),[L,fe]=ae(`input`),R={...e,size:I},B=u(j),V=u(l),[H,U]=m([se,w],[N,B,x,V],{props:R}),[W]=b(`Pagination`,y),pe={...W,...f},[me,he]=ye(ee),[ge,_e]=ye(k),ve=me??ge,K=he??_e,be=_||re,xe=A.useMemo(()=>v?v.map(Number):void 0,[v]),Se=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,c=g?.sizeChanger;if(c)return A.createElement(c,{value:n,onChange:r,disabled:!!t,className:a});let{className:l,onChange:u}=K||{},d=o.find(e=>String(e.value)===String(n))?.value;return A.createElement(be,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...K,value:d,onChange:(e,t)=>{r?.(e),u?.(e,t)},size:I,className:s(`${P}-options-size-changer-select`,a,l)})},J=A.useMemo(()=>{let e=A.createElement(`span`,{className:`${P}-item-ellipsis`},A.createElement(te,null));return{prevIcon:A.createElement(`button`,{className:`${P}-item-link`,type:`button`,tabIndex:-1},O===`rtl`?A.createElement(S,null):A.createElement(C,null)),nextIcon:A.createElement(`button`,{className:`${P}-item-link`,type:`button`,tabIndex:-1},O===`rtl`?A.createElement(C,null):A.createElement(S,null)),jumpPrevIcon:A.createElement(`a`,{className:`${P}-item-link`},A.createElement(`div`,{className:`${P}-item-container`},O===`rtl`?A.createElement(ce,{className:`${P}-item-link-icon`}):A.createElement(M,{className:`${P}-item-link-icon`}),e)),jumpNextIcon:A.createElement(`a`,{className:`${P}-item-link`},A.createElement(`div`,{className:`${P}-item-container`},O===`rtl`?A.createElement(M,{className:`${P}-item-link-icon`}):A.createElement(ce,{className:`${P}-item-link-icon`}),e))}},[O,P]),Ce=D(`select`,i),we=s({[`${P}-${t}`]:!!t,[`${P}-${I}`]:I,[`${P}-${L}`]:fe&&L!==`outlined`,[`${P}-mini`]:de,[`${P}-rtl`]:O===`rtl`,[`${P}-bordered`]:E.wireframe},oe,o,c,H.root,ue,F),Te={...U.root};return A.createElement(A.Fragment,null,E.wireframe&&A.createElement(q,{prefixCls:P}),A.createElement(z,{...J,...T,styles:U,classNames:H,style:Te,prefixCls:P,selectPrefixCls:Ce,className:we,locale:pe,pageSizeOptions:xe,showSizeChanger:ve,totalBoundaryShowSizeChanger:T.totalBoundaryShowSizeChanger??le,sizeChangerRender:Se}))};export{be as t};