import{o as e}from"./request-xrnk7ZJV.js";import{Bn as t,Ct as n,Hn as r,Ln as i,Nn as a,Ot as o,Pr as s,Q as c,Rt as l,Wn as u,kt as d,qt as f,wn as p,wt as m}from"./jsx-runtime-OfKoVykY.js";var h=e(s()),g={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`};function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(l,_({},e,{ref:t,icon:g}))),y=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,s=u({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),c=u({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),l=h.useMemo(()=>o(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return h.createElement(`span`,{className:u(t,s,c,n),style:{...l,...r}})},b=new a(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),x=e=>({height:e,lineHeight:i(e)}),S=e=>({width:e,...x(e)}),C=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:b,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),w=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...x(e)}),T=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...S(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...S(i)},[`${t}${t}-sm`]:{...S(a)}}},E=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...w(t,s)},[`${r}-lg`]:{...w(i,s)},[`${r}-sm`]:{...w(a,s)}}},D=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...S(i(r).mul(2).equal())}},O=e=>({[e.skeletonNodeCls]:{...D(e)}}),k=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...D(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...S(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},A=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},j=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...x(e)}),M=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...j(r,s)},...A(e,r,n),[`${n}-lg`]:{...j(i,s)},...A(e,i,`${n}-lg`),[`${n}-sm`]:{...j(a,s)},...A(e,a,`${n}-sm`)}},N=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...S(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...S(u)},[`${n}-sm`]:{...S(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...M(e),...T(e),...E(e),...O(e),...k(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[` ${r}, ${i} > li, ${n}, ${a}, ${o}, ${s}, ${c} `]:{...C(e)}}}},P=f(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return N(p(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),F=e=>{let{prefixCls:n,className:r,classNames:i,rootClassName:a,active:o,style:s,styles:l,shape:d=`circle`,size:f,...p}=e,{getPrefixCls:m}=h.useContext(t),g=m(`skeleton`,n),[_,v]=P(g),b=c(e=>f??e),x=u(g,`${g}-element`,{[`${g}-active`]:o},i?.root,r,a,_,v);return h.createElement(`div`,{className:x,style:l?.root},h.createElement(y,{prefixCls:`${g}-avatar`,className:i?.content,style:{...l?.content,...s},shape:d,size:b,...p}))},I=e=>{let{prefixCls:n,className:r,rootClassName:i,classNames:a,active:o,style:s,styles:l,block:d=!1,size:f,...p}=e,{getPrefixCls:m}=h.useContext(t),g=m(`skeleton`,n),[_,v]=P(g),b=c(e=>f??e),x=u(g,`${g}-element`,{[`${g}-active`]:o,[`${g}-block`]:d},a?.root,r,i,_,v);return h.createElement(`div`,{className:x,style:l?.root},h.createElement(y,{prefixCls:`${g}-button`,className:a?.content,style:{...l?.content,...s},size:b,...p}))},L=e=>{let{prefixCls:n,className:r,classNames:i,rootClassName:a,internalClassName:o,style:s,styles:c,active:l,children:d}=e,{getPrefixCls:f}=h.useContext(t),p=f(`skeleton`,n),[m,g]=P(p),_=u(p,`${p}-element`,{[`${p}-active`]:l},m,i?.root,r,a,g);return h.createElement(`div`,{className:_,style:c?.root},h.createElement(`div`,{className:u(i?.content,o||`${p}-node`),style:{...c?.content,...s}},d))},R=e=>{let{getPrefixCls:n}=h.useContext(t),r=n(`skeleton`,e.prefixCls);return h.createElement(L,{...e,internalClassName:`${r}-image`},h.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${r}-image-svg`,"aria-hidden":`true`,focusable:`false`},h.createElement(`title`,null,`Image placeholder`),h.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${r}-image-path`})))},z=e=>{let{prefixCls:n,className:r,classNames:i,rootClassName:a,active:o,block:s,style:l,styles:d,size:f,...p}=e,{getPrefixCls:m}=h.useContext(t),g=m(`skeleton`,n),[_,v]=P(g),b=c(e=>f??e),x=u(g,`${g}-element`,{[`${g}-active`]:o,[`${g}-block`]:s},i?.root,r,a,_,v);return h.createElement(`div`,{className:x,style:d?.root},h.createElement(y,{prefixCls:`${g}-input`,className:i?.content,style:{...d?.content,...l},size:b,...p}))},B=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},V=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>h.createElement(`li`,{key:n,style:{width:B(n,e)}}));return h.createElement(`ul`,{className:u(t,n),style:r},a)},H=({prefixCls:e,className:t,width:n,style:r})=>h.createElement(`h3`,{className:u(e,t),style:{width:n,...r}});function U(e){return d(e)?e:{}}function W(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function G(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function K(e,t){let n={};return e&&t||(n.width=`61%`),n.rows=!e&&t?3:2,n}var q=h.forwardRef((e,t)=>{let{prefixCls:i,loading:a,className:o,rootClassName:s,classNames:c,style:l,styles:d,children:f,avatar:p=!1,title:g=!0,paragraph:_=!0,active:v,round:b}=e,{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=r(`skeleton`),D=x(`skeleton`,i),[O,k]=P(D),A={...e,avatar:p,title:g,paragraph:_},j=m(w),M=m(l),[N,F]=n([T,c],[E,j,d,M],{props:A}),I=h.useRef(null);if(h.useImperativeHandle(t,()=>({nativeElement:I.current})),a||!(`loading`in e)){let e=!!p,t=!!g,n=!!_,r;if(e){let e={className:N.avatar,prefixCls:`${D}-avatar`,...W(t,n),...U(p),style:F.avatar};r=h.createElement(`div`,{className:u(N.header,`${D}-header`),style:F.header},h.createElement(y,{...e}))}let i;if(t||n){let r;if(t){let t={className:N.title,prefixCls:`${D}-title`,...G(e,n),...U(g),style:F.title};r=h.createElement(H,{...t})}let a;if(n){let n={className:N.paragraph,prefixCls:`${D}-paragraph`,...K(e,t),...U(_),style:F.paragraph};a=h.createElement(V,{...n})}i=h.createElement(`div`,{className:u(N.section,`${D}-section`),style:F.section},r,a)}let a=u(D,{[`${D}-with-avatar`]:e,[`${D}-active`]:v,[`${D}-rtl`]:S===`rtl`,[`${D}-round`]:b},N.root,C,o,s,O,k);return h.createElement(`div`,{ref:I,className:a,style:F.root},r,i)}return f??null});q.Button=I,q.Avatar=F,q.Input=z,q.Image=R,q.Node=L;var J=q,Y={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`};function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(l,X({},e,{ref:t,icon:Y})));export{J as n,v as r,Z as t};