pixivflow 2.29.0 → 2.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.en.md +2 -2
  2. package/README.md +2 -2
  3. package/dist/commands/WebUICommand.d.ts +2 -2
  4. package/dist/commands/WebUICommand.js +9 -7
  5. package/dist/config/types.d.ts +31 -0
  6. package/dist/config/validation.js +35 -0
  7. package/dist/download/handlers/IllustrationTargetHandler.d.ts +8 -0
  8. package/dist/download/handlers/IllustrationTargetHandler.js +74 -0
  9. package/dist/download/handlers/NovelTargetHandler.d.ts +7 -0
  10. package/dist/download/handlers/NovelTargetHandler.js +71 -0
  11. package/dist/download/inventory.d.ts +29 -0
  12. package/dist/download/inventory.js +80 -0
  13. package/dist/interfaces/IDatabase.d.ts +3 -0
  14. package/dist/package.json +1 -1
  15. package/dist/scheduler/TargetOutcome.d.ts +13 -0
  16. package/dist/scheduler/TargetOutcome.js +3 -1
  17. package/dist/storage/Database.d.ts +4 -0
  18. package/dist/storage/Database.js +7 -0
  19. package/dist/storage/DatabaseMigration.js +20 -0
  20. package/dist/storage/repositories/CandidateInventoryRepository.d.ts +51 -0
  21. package/dist/storage/repositories/CandidateInventoryRepository.js +129 -0
  22. package/dist/version.js +1 -1
  23. package/dist/webui/package.json +1 -1
  24. package/package.json +2 -1
  25. package/webui-frontend/dist/assets/CheckCircleOutlined-H3DnUyMO.js +2 -0
  26. package/webui-frontend/dist/assets/ClearOutlined-BpODq7I7.js +2 -0
  27. package/webui-frontend/dist/assets/CloseCircleOutlined-BFfS5iXd.js +2 -0
  28. package/webui-frontend/dist/assets/Config-DRElCeDC.js +16 -0
  29. package/webui-frontend/dist/assets/Dashboard-aqPMquSO.js +2 -0
  30. package/webui-frontend/dist/assets/DeleteOutlined-BFmW1oWe.js +2 -0
  31. package/webui-frontend/dist/assets/Download-DCKDU51K.js +2 -0
  32. package/webui-frontend/dist/assets/Files-nNoRY5tl.js +5 -0
  33. package/webui-frontend/dist/assets/PictureOutlined-U51jGr2U.js +2 -0
  34. package/webui-frontend/dist/assets/SortDescendingOutlined-CckVuL_b.js +2 -0
  35. package/webui-frontend/dist/assets/ThunderboltOutlined-ulcCd7ui.js +2 -0
  36. package/webui-frontend/dist/assets/UrlDownload-Bzs0AZN0.js +3 -0
  37. package/webui-frontend/dist/assets/dateUtils-gQt2uAjS.js +2 -0
  38. package/webui-frontend/dist/assets/errorCodeTranslator-BqIackMm.js +3 -0
  39. package/webui-frontend/dist/assets/index-B2ns27ii.js +2 -0
  40. package/webui-frontend/dist/assets/index-B7yYDv10.js +2 -0
  41. package/webui-frontend/dist/assets/index-Bbsa44oT.js +2 -0
  42. package/webui-frontend/dist/assets/index-C2ANILg9.js +19 -0
  43. package/webui-frontend/dist/assets/index-CDrp3NIf.js +8 -0
  44. package/webui-frontend/dist/assets/index-CFtP5lqo.js +22 -0
  45. package/webui-frontend/dist/assets/index-CJln3zA7.js +14 -0
  46. package/webui-frontend/dist/assets/index-CZhfhXvc.js +2 -0
  47. package/webui-frontend/dist/assets/index-CfHs6AUn.js +2 -0
  48. package/webui-frontend/dist/assets/index-DG6kGbYq.js +217 -0
  49. package/webui-frontend/dist/assets/index-DHwJxrFi.css +1 -0
  50. package/webui-frontend/dist/assets/index-DPigBPWX.js +2 -0
  51. package/webui-frontend/dist/assets/index-DarObP-C.js +2 -0
  52. package/webui-frontend/dist/assets/index-_EG4kaKN.js +47 -0
  53. package/webui-frontend/dist/assets/row-_c51T55h.js +20 -0
  54. package/webui-frontend/dist/assets/socket-oqYz9cKb.js +2 -0
  55. package/webui-frontend/dist/assets/useAuth-wCjAOx6S.js +9 -0
  56. package/webui-frontend/dist/assets/useConfig-Ds7RpIL1.js +9 -0
  57. package/webui-frontend/dist/assets/useDownload-BlxvZNEm.js +2 -0
  58. package/webui-frontend/dist/assets/useErrorHandler-BOvHue1w.js +84 -0
  59. package/webui-frontend/dist/index.html +15 -0
@@ -0,0 +1 @@
1
+ *{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}#root{min-height:100vh}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-break{word-break:break-word;overflow-wrap:break-word}.mt-0{margin-top:0!important}.mt-8{margin-top:8px!important}.mt-16{margin-top:16px!important}.mt-24{margin-top:24px!important}.mb-0{margin-bottom:0!important}.mb-8{margin-bottom:8px!important}.mb-16{margin-bottom:16px!important}.mb-24{margin-bottom:24px!important}.ant-card{border-radius:8px;box-shadow:0 1px 2px #00000008,0 1px 6px -1px #00000005,0 2px 4px #00000005}.ant-card-head{border-bottom:1px solid #f0f0f0}.ant-table{font-size:14px}.ant-table-thead>tr>th{font-weight:600;background:#fafafa}.ant-table-tbody>tr:hover>td{background:#fafafa}.ant-btn{border-radius:6px;font-weight:500;transition:all .3s cubic-bezier(.645,.045,.355,1)}.ant-btn-primary{box-shadow:0 2px #0591ff1a}.ant-btn-primary:hover{box-shadow:0 4px 8px #0591ff33}.ant-input,.ant-input-number,.ant-select-selector{border-radius:6px!important}.ant-input:focus,.ant-input-focused,.ant-input-number:focus,.ant-input-number-focused,.ant-select-focused .ant-select-selector{box-shadow:0 0 0 2px #0591ff1a}.ant-modal-content{border-radius:8px;overflow:hidden}.ant-modal-header{border-bottom:1px solid #f0f0f0;padding:16px 24px}.ant-modal-body{padding:24px}.ant-tag{border-radius:4px;font-size:12px;padding:2px 8px}.ant-alert{border-radius:6px}.page-header{margin-bottom:24px}.page-header h2{margin:0;font-size:24px;font-weight:600;color:#000000d9}.stats-card{text-align:center;padding:16px}.stats-card .ant-statistic-title{font-size:14px;color:#000000a6}.stats-card .ant-statistic-content{font-size:24px;font-weight:600}.loading-container{display:flex;justify-content:center;align-items:center;min-height:200px}.empty-state{text-align:center;padding:40px 20px;color:#00000073}@media(max-width:768px){.ant-card{margin-bottom:16px}.ant-table{font-size:12px}.ant-btn{font-size:14px}.page-header h2{font-size:20px}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .3s ease-in-out}@media print{.ant-layout-sider,.ant-layout-header,.ant-btn,.ant-pagination{display:none!important}.ant-card{box-shadow:none;border:1px solid #d9d9d9}}
@@ -0,0 +1,2 @@
1
+ import{r as n,I as te,_ as ne,D as L,n as q,H as K,v as re,x as ae,m as ie,a8 as le,J as oe,P as ce,an as Z,a9 as ue,K as fe,ag as pe,t as se,G as de,ae as ee,B as me,aH as ve}from"./index-DG6kGbYq.js";import{u as ge,a as Ce,i as be,I as G,q as ye,r as xe}from"./index-_EG4kaKN.js";var Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},he=function(r,a){return n.createElement(te,ne({},r,{ref:a,icon:Oe}))},Pe=n.forwardRef(he);const Ee=e=>{const{getPrefixCls:r,direction:a}=n.useContext(L),{prefixCls:t,className:o}=e,p=r("input-group",t),v=r("input"),[u,I,x]=ge(v),g=q(p,x,{[`${p}-lg`]:e.size==="large",[`${p}-sm`]:e.size==="small",[`${p}-compact`]:e.compact,[`${p}-rtl`]:a==="rtl"},I,o),C=n.useContext(K),b=n.useMemo(()=>Object.assign(Object.assign({},C),{isFormItemInput:!1}),[C]);return u(n.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},n.createElement(K.Provider,{value:b},e.children)))},Ie=e=>{const{componentCls:r,paddingXS:a}=e;return{[r]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:a,[`${r}-input-wrapper`]:{position:"relative",[`${r}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${r}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${r}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${r}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${r}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${r}-sm ${r}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${r}-lg ${r}-input`]:{paddingInline:e.paddingXS}}}},we=re(["Input","OTP"],e=>{const r=ae(e,Ce(e));return Ie(r)},be);var Se=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]]);return a};const $e=n.forwardRef((e,r)=>{const{className:a,value:t,onChange:o,onActiveChange:p,index:v,mask:u}=e,I=Se(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:x}=n.useContext(L),g=x("otp"),C=typeof u=="string"?u:t,b=n.useRef(null);n.useImperativeHandle(r,()=>b.current);const z=d=>{o(v,d.target.value)},O=()=>{ie(()=>{var d;const y=(d=b.current)===null||d===void 0?void 0:d.input;document.activeElement===y&&y&&y.select()})},$=d=>{const{key:y,ctrlKey:k,metaKey:w}=d;y==="ArrowLeft"?p(v-1):y==="ArrowRight"?p(v+1):y==="z"&&(k||w)?d.preventDefault():y==="Backspace"&&!t&&p(v-1),O()};return n.createElement("span",{className:`${g}-input-wrapper`,role:"presentation"},u&&t!==""&&t!==void 0&&n.createElement("span",{className:`${g}-mask-icon`,"aria-hidden":"true"},C),n.createElement(G,Object.assign({"aria-label":`OTP Input ${v+1}`,type:u===!0?"password":"text"},I,{ref:b,value:t,onInput:z,onFocus:O,onKeyDown:$,onMouseDown:O,onMouseUp:O,className:q(a,{[`${g}-mask-input`]:u})})))});var ze=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]]);return a};function H(e){return(e||"").split("")}const je=e=>{const{index:r,prefixCls:a,separator:t}=e,o=typeof t=="function"?t(r):t;return o?n.createElement("span",{className:`${a}-separator`},o):null},ke=n.forwardRef((e,r)=>{const{prefixCls:a,length:t=6,size:o,defaultValue:p,value:v,onChange:u,formatter:I,separator:x,variant:g,disabled:C,status:b,autoFocus:z,mask:O,type:$,onInput:d,inputMode:y}=e,k=ze(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:N}=n.useContext(L),m=w("otp",a),D=le(k,{aria:!0,data:!0,attr:!0}),[A,j,M]=we(m),_=oe(s=>o??s),h=n.useContext(K),P=ce(h.status,b),T=n.useMemo(()=>Object.assign(Object.assign({},h),{status:P,hasFeedback:!1,feedbackIcon:null}),[h,P]),B=n.useRef(null),E=n.useRef({});n.useImperativeHandle(r,()=>({focus:()=>{var s;(s=E.current[0])===null||s===void 0||s.focus()},blur:()=>{var s;for(let i=0;i<t;i+=1)(s=E.current[i])===null||s===void 0||s.blur()},nativeElement:B.current}));const R=s=>I?I(s):s,[S,V]=n.useState(()=>H(R(p||"")));n.useEffect(()=>{v!==void 0&&V(H(v))},[v]);const Q=Z(s=>{V(s),d&&d(s),u&&s.length===t&&s.every(i=>i)&&s.some((i,c)=>S[c]!==i)&&u(s.join(""))}),U=Z((s,i)=>{let c=ue(S);for(let f=0;f<s;f+=1)c[f]||(c[f]="");i.length<=1?c[s]=i:c=c.slice(0,s).concat(H(i)),c=c.slice(0,t);for(let f=c.length-1;f>=0&&!c[f];f-=1)c.pop();const F=R(c.map(f=>f||" ").join(""));return c=H(F).map((f,Y)=>f===" "&&!c[Y]?c[Y]:f),c}),J=(s,i)=>{var c;const F=U(s,i),f=Math.min(s+i.length,t-1);f!==s&&F[s]!==void 0&&((c=E.current[f])===null||c===void 0||c.focus()),Q(F)},W=s=>{var i;(i=E.current[s])===null||i===void 0||i.focus()},l={variant:g,disabled:C,status:P,mask:O,type:$,inputMode:y};return A(n.createElement("div",Object.assign({},D,{ref:B,className:q(m,{[`${m}-sm`]:_==="small",[`${m}-lg`]:_==="large",[`${m}-rtl`]:N==="rtl"},M,j),role:"group"}),n.createElement(K.Provider,{value:T},Array.from({length:t}).map((s,i)=>{const c=`otp-${i}`,F=S[i]||"";return n.createElement(n.Fragment,{key:c},n.createElement($e,Object.assign({ref:f=>{E.current[i]=f},index:i,size:_,htmlSize:1,className:`${m}-input`,onChange:J,value:F,onActiveChange:W,autoFocus:i===0&&z},l)),i<t-1&&n.createElement(je,{separator:x,index:i,prefixCls:m}))}))))});var _e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Re=function(r,a){return n.createElement(te,ne({},r,{ref:a,icon:_e}))},Ne=n.forwardRef(Re),Ae=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]]);return a};const Me=e=>e?n.createElement(Pe,null):n.createElement(Ne,null),Te={click:"onClick",hover:"onMouseOver"},Be=n.forwardRef((e,r)=>{const{disabled:a,action:t="click",visibilityToggle:o=!0,iconRender:p=Me,suffix:v}=e,u=n.useContext(fe),I=a??u,x=typeof o=="object"&&o.visible!==void 0,[g,C]=n.useState(()=>x?o.visible:!1),b=n.useRef(null);n.useEffect(()=>{x&&C(o.visible)},[x,o]);const z=ye(b),O=()=>{var h;if(I)return;g&&z();const P=!g;C(P),typeof o=="object"&&((h=o.onVisibleChange)===null||h===void 0||h.call(o,P))},$=h=>{const P=Te[t]||"",T=p(g),B={[P]:O,className:`${h}-icon`,key:"passwordIcon",onMouseDown:E=>{E.preventDefault()},onMouseUp:E=>{E.preventDefault()}};return n.cloneElement(n.isValidElement(T)?T:n.createElement("span",null,T),B)},{className:d,prefixCls:y,inputPrefixCls:k,size:w}=e,N=Ae(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=n.useContext(L),D=m("input",k),A=m("input-password",y),j=o&&$(A),M=q(A,d,{[`${A}-${w}`]:!!w}),_=Object.assign(Object.assign({},pe(N,["suffix","iconRender","visibilityToggle"])),{type:g?"text":"password",className:M,prefixCls:D,suffix:n.createElement(n.Fragment,null,j,v)});return w&&(_.size=w),n.createElement(G,Object.assign({ref:se(r,b)},_))});var Fe=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]]);return a};const De=n.forwardRef((e,r)=>{const{prefixCls:a,inputPrefixCls:t,className:o,size:p,suffix:v,enterButton:u=!1,addonAfter:I,loading:x,disabled:g,onSearch:C,onChange:b,onCompositionStart:z,onCompositionEnd:O,variant:$,onPressEnter:d}=e,y=Fe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:k,direction:w}=n.useContext(L),N=n.useRef(!1),m=k("input-search",a),D=k("input",t),{compactSize:A}=de(m,w),j=oe(l=>{var s;return(s=p??A)!==null&&s!==void 0?s:l}),M=n.useRef(null),_=l=>{l?.target&&l.type==="click"&&C&&C(l.target.value,l,{source:"clear"}),b?.(l)},h=l=>{var s;document.activeElement===((s=M.current)===null||s===void 0?void 0:s.input)&&l.preventDefault()},P=l=>{var s,i;C&&C((i=(s=M.current)===null||s===void 0?void 0:s.input)===null||i===void 0?void 0:i.value,l,{source:"input"})},T=l=>{N.current||x||(d?.(l),P(l))},B=typeof u=="boolean"?n.createElement(ve,null):null,E=`${m}-button`;let R;const S=u||{},V=S.type&&S.type.__ANT_BUTTON===!0;V||S.type==="button"?R=ee(S,Object.assign({onMouseDown:h,onClick:l=>{var s,i;(i=(s=S?.props)===null||s===void 0?void 0:s.onClick)===null||i===void 0||i.call(s,l),P(l)},key:"enterButton"},V?{className:E,size:j}:{})):R=n.createElement(me,{className:E,color:u?"primary":"default",size:j,disabled:g,key:"enterButton",onMouseDown:h,onClick:P,loading:x,icon:B,variant:$==="borderless"||$==="filled"||$==="underlined"?"text":u?"solid":void 0},u),I&&(R=[R,ee(I,{key:"addonAfter"})]);const Q=q(m,{[`${m}-rtl`]:w==="rtl",[`${m}-${j}`]:!!j,[`${m}-with-button`]:!!u},o),U=l=>{N.current=!0,z?.(l)},J=l=>{N.current=!1,O?.(l)},W=Object.assign(Object.assign({},y),{className:Q,prefixCls:D,type:"search",size:j,variant:$,onPressEnter:T,onCompositionStart:U,onCompositionEnd:J,addonAfter:R,suffix:v,onChange:_,disabled:g});return n.createElement(G,Object.assign({ref:se(M,r)},W))}),X=G;X.Group=Ee;X.Search=De;X.TextArea=xe;X.Password=Be;X.OTP=ke;export{X as I,Pe as R};
2
+ //# sourceMappingURL=index-DPigBPWX.js.map
@@ -0,0 +1,2 @@
1
+ import{r,v as F,x as H,z as I,ac as _,n as L,a8 as B,an as U,m as O,ae as V}from"./index-DG6kGbYq.js";import{S as X}from"./row-_c51T55h.js";const A=t=>{const{value:n,formatter:o,precision:e,decimalSeparator:a,groupSeparator:u="",prefixCls:i}=t;let c;if(typeof o=="function")c=o(n);else{const s=String(n),f=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!f||s==="-")c=s;else{const d=f[1];let p=f[2]||"0",m=f[4]||"";p=p.replace(/\B(?=(\d{3})+(?!\d))/g,u),typeof e=="number"&&(m=m.padEnd(e,"0").slice(0,e>0?e:0)),m&&(m=`${a}${m}`),c=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},d,p),m&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},m)]}}return r.createElement("span",{className:`${i}-content-value`},c)},Y=t=>{const{componentCls:n,marginXXS:o,padding:e,colorTextDescription:a,titleFontSize:u,colorTextHeading:i,contentFontSize:c,fontFamily:s}=t;return{[n]:Object.assign(Object.assign({},I(t)),{[`${n}-title`]:{marginBottom:o,color:a,fontSize:u},[`${n}-skeleton`]:{paddingTop:e},[`${n}-content`]:{color:i,fontSize:c,fontFamily:s,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:o},[`${n}-content-suffix`]:{marginInlineStart:o}}})}},q=t=>{const{fontSizeHeading3:n,fontSize:o}=t;return{titleFontSize:o,contentFontSize:n}},G=F("Statistic",t=>{const n=H(t,{});return Y(n)},q);var J=function(t,n){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(o[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a<e.length;a++)n.indexOf(e[a])<0&&Object.prototype.propertyIsEnumerable.call(t,e[a])&&(o[e[a]]=t[e[a]]);return o};const y=r.forwardRef((t,n)=>{const{prefixCls:o,className:e,rootClassName:a,style:u,valueStyle:i,value:c=0,title:s,valueRender:f,prefix:d,suffix:p,loading:m=!1,formatter:l,precision:g,decimalSeparator:S=".",groupSeparator:w=",",onMouseEnter:$,onMouseLeave:C}=t,h=J(t,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:N,direction:j,className:T,style:k}=_("statistic"),v=N("statistic",o),[z,R,P]=G(v),x=r.createElement(A,{decimalSeparator:S,groupSeparator:w,prefixCls:v,formatter:l,precision:g,value:c}),D=L(v,{[`${v}-rtl`]:j==="rtl"},T,e,a,R,P),b=r.useRef(null);r.useImperativeHandle(n,()=>({nativeElement:b.current}));const M=B(h,{aria:!0,data:!0});return z(r.createElement("div",Object.assign({},M,{ref:b,className:D,style:Object.assign(Object.assign({},k),u),onMouseEnter:$,onMouseLeave:C}),s&&r.createElement("div",{className:`${v}-title`},s),r.createElement(X,{paragraph:!1,loading:m,className:`${v}-skeleton`,active:!0},r.createElement("div",{style:i,className:`${v}-content`},d&&r.createElement("span",{className:`${v}-content-prefix`},d),f?f(x):x,p&&r.createElement("span",{className:`${v}-content-suffix`},p)))))}),K=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Q(t,n){let o=t;const e=/\[[^\]]*]/g,a=(n.match(e)||[]).map(s=>s.slice(1,-1)),u=n.replace(e,"[]"),i=K.reduce((s,[f,d])=>{if(s.includes(f)){const p=Math.floor(o/d);return o-=p*d,s.replace(new RegExp(`${f}+`,"g"),m=>{const l=m.length;return p.toString().padStart(l,"0")})}return s},u);let c=0;return i.replace(e,()=>{const s=a[c];return c+=1,s})}function W(t,n,o){const{format:e=""}=n,a=new Date(t).getTime(),u=Date.now(),i=Math.max(o?a-u:u-a,0);return Q(i,e)}var Z=function(t,n){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(o[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a<e.length;a++)n.indexOf(e[a])<0&&Object.prototype.propertyIsEnumerable.call(t,e[a])&&(o[e[a]]=t[e[a]]);return o};function ee(t){return new Date(t).getTime()}const E=t=>{const{value:n,format:o="HH:mm:ss",onChange:e,onFinish:a,type:u}=t,i=Z(t,["value","format","onChange","onFinish","type"]),c=u==="countdown",[s,f]=r.useState(null),d=U(()=>{const l=Date.now(),g=ee(n);f({});const S=c?g-l:l-g;return e?.(S),c&&g<l?(a?.(),!1):!0});r.useEffect(()=>{let l;const g=()=>O.cancel(l),S=()=>{l=O(()=>{d()&&S()})};return S(),g},[n,c]),r.useEffect(()=>{f({})},[]);const p=(l,g)=>s?W(l,Object.assign(Object.assign({},g),{format:o}),c):"-",m=l=>V(l,{title:void 0});return r.createElement(y,Object.assign({},i,{value:n,valueRender:m,formatter:p}))},te=t=>r.createElement(E,Object.assign({},t,{type:"countdown"})),ne=r.memo(te);y.Timer=E;y.Countdown=ne;export{y as S};
2
+ //# sourceMappingURL=index-DarObP-C.js.map
@@ -0,0 +1,47 @@
1
+ import{aZ as kt,x as je,A as ie,v as Ne,y as er,z as Ot,b3 as tr,a2 as B,r as a,n as W,p as tt,h as ge,_ as we,a4 as ce,o as _e,i as he,a7 as ze,a9 as Me,ag as rt,b7 as rr,ac as nt,E as It,G as zt,J as jt,K as Bt,H as Tt,L as At,t as ot,M as et,N as ut,P as Nt,k as Ee,ap as _t,m as ft,I as at,ca as nr,bE as Mt,ae as or,a3 as pt,al as ar,an as ir,Y as it,$ as lr,aN as sr,a6 as Ht,D as cr,aD as dr}from"./index-DG6kGbYq.js";var Pt=function(t){if(kt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},ur=function(t,n){if(!Pt(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function gt(e,t){return!Array.isArray(e)&&t!==void 0?ur(e,t):Pt(e)}function lt(e){return je(e,{inputAffixPadding:e.paddingXXS})}const st=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:i,fontSizeLG:c,lineHeightLG:f,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:g,colorFillAlter:d,colorPrimaryHover:O,colorPrimary:C,controlOutlineWidth:x,controlOutline:_,colorErrorOutline:S,colorWarningOutline:E,colorBgContainer:V,inputFontSize:T,inputFontSizeLG:y,inputFontSizeSM:m}=e,p=T||n,U=m||p,H=y||c,R=Math.round((t-p*r)/2*10)/10-o,P=Math.round((l-U*r)/2*10)/10-o,k=Math.ceil((i-H*f)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(k,0),paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:g-o,addonBg:d,activeBorderColor:C,hoverBorderColor:O,activeShadow:`0 0 0 ${x}px ${_}`,errorActiveShadow:`0 0 0 ${x}px ${S}`,warningActiveShadow:`0 0 0 ${x}px ${E}`,hoverBg:V,activeBg:V,inputFontSize:p,inputFontSizeLG:H,inputFontSizeSM:U}},fr=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ct=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fr(je(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Dt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),mt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Dt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),pr=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ct(e))}),mt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),vt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),gr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},vt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),vt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ct(e))}})}),mr=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Lt=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t?.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},bt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Lt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vr=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ct(e))}),bt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),bt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ht=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),br=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},ht(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ht(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Wt=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),xt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Wt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),hr=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),xt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),xr=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ft=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Vt=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Gt=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},xr(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Ft(e)),"&-sm":Object.assign({},Vt(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Sr=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Ft(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Vt(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},tr()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
2
+ & > ${t}-affix-wrapper,
3
+ & > ${t}-number-affix-wrapper,
4
+ & > ${n}-picker-range
5
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
6
+ & > ${n}-select-auto-complete ${t},
7
+ & > ${n}-cascader-picker ${t},
8
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
9
+ & > ${n}-select:first-child > ${n}-select-selector,
10
+ & > ${n}-select-auto-complete:first-child ${t},
11
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
12
+ & > ${n}-select:last-child > ${n}-select-selector,
13
+ & > ${n}-cascader-picker:last-child ${t},
14
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},yr=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ot(e)),Gt(e)),pr(e)),vr(e)),mr(e)),hr(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Cr=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ie(e.inputAffixPadding)}`}}}},$r=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:i,iconCls:c}=e,f=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},Gt(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Cr(e)),{[`${c}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[s]:{[`${c}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},Er=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ot(e)),Sr(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},gr(e)),br(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},wr=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
15
+ > ${t},
16
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Rr=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ut=Ne(["Input","Shared"],e=>{const t=je(e,lt(e));return[yr(t),$r(t)]},st,{resetFont:!1}),Or=Ne(["Input","Component"],e=>{const t=je(e,lt(e));return[Er(t),wr(t),Rr(t),er(t)]},st,{resetFont:!1});function Ir(e){return!!(e.addonBefore||e.addonAfter)}function zr(e){return!!(e.prefix||e.suffix||e.allowClear)}function St(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ae(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=St(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=St(t,e,r),n(o);return}n(o)}}function Kt(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var qt=B.forwardRef(function(e,t){var n,r,o,l=e.inputElement,i=e.children,c=e.prefixCls,f=e.prefix,s=e.suffix,u=e.addonBefore,g=e.addonAfter,d=e.className,O=e.style,C=e.disabled,x=e.readOnly,_=e.focused,S=e.triggerFocus,E=e.allowClear,V=e.value,T=e.handleReset,y=e.hidden,m=e.classes,p=e.classNames,U=e.dataAttrs,H=e.styles,R=e.components,P=e.onClear,k=i??l,$=R?.affixWrapper||"span",w=R?.groupWrapper||"span",I=R?.wrapper||"span",b=R?.groupAddon||"span",A=a.useRef(null),h=function(K){var z;(z=A.current)!==null&&z!==void 0&&z.contains(K.target)&&S?.()},ee=zr(e),J=a.cloneElement(k,{value:V,className:W((n=k.props)===null||n===void 0?void 0:n.className,!ee&&p?.variant)||null}),te=a.useRef(null);if(B.useImperativeHandle(t,function(){return{nativeElement:te.current||A.current}}),ee){var F=null;if(E){var X=!C&&!x&&V,fe="".concat(c,"-clear-icon"),de=tt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";F=B.createElement("button",{type:"button",tabIndex:-1,onClick:function(K){T?.(K),P?.()},onMouseDown:function(K){return K.preventDefault()},className:W(fe,ge(ge({},"".concat(fe,"-hidden"),!X),"".concat(fe,"-has-suffix"),!!s))},de)}var Q="".concat(c,"-affix-wrapper"),me=W(Q,ge(ge(ge(ge(ge({},"".concat(c,"-disabled"),C),"".concat(Q,"-disabled"),C),"".concat(Q,"-focused"),_),"".concat(Q,"-readonly"),x),"".concat(Q,"-input-with-clear-btn"),s&&E&&V),m?.affixWrapper,p?.affixWrapper,p?.variant),Y=(s||E)&&B.createElement("span",{className:W("".concat(c,"-suffix"),p?.suffix),style:H?.suffix},F,s);J=B.createElement($,we({className:me,style:H?.affixWrapper,onClick:h},U?.affixWrapper,{ref:A}),f&&B.createElement("span",{className:W("".concat(c,"-prefix"),p?.prefix),style:H?.prefix},f),J,Y)}if(Ir(e)){var le="".concat(c,"-group"),Z="".concat(le,"-addon"),ne="".concat(le,"-wrapper"),q=W("".concat(c,"-wrapper"),le,m?.wrapper,p?.wrapper),ae=W(ne,ge({},"".concat(ne,"-disabled"),C),m?.group,p?.groupWrapper);J=B.createElement(w,{className:ae,ref:te},B.createElement(I,{className:q},u&&B.createElement(b,{className:Z},u),J,g&&B.createElement(b,{className:Z},g)))}return B.cloneElement(J,{className:W((r=J.props)===null||r===void 0?void 0:r.className,d)||null,style:ce(ce({},(o=J.props)===null||o===void 0?void 0:o.style),O),hidden:y})}),jr=["show"];function Xt(e,t){return a.useMemo(function(){var n={};t&&(n.show=tt(t)==="object"&&t.formatter?t.formatter:!!t),n=ce(ce({},n),e);var r=n,o=r.show,l=_e(r,jr);return ce(ce({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(i){return i.length}})},[e,t])}var Br=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Tr=a.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,l=e.onBlur,i=e.onPressEnter,c=e.onKeyDown,f=e.onKeyUp,s=e.prefixCls,u=s===void 0?"rc-input":s,g=e.disabled,d=e.htmlSize,O=e.className,C=e.maxLength,x=e.suffix,_=e.showCount,S=e.count,E=e.type,V=E===void 0?"text":E,T=e.classes,y=e.classNames,m=e.styles,p=e.onCompositionStart,U=e.onCompositionEnd,H=_e(e,Br),R=a.useState(!1),P=he(R,2),k=P[0],$=P[1],w=a.useRef(!1),I=a.useRef(!1),b=a.useRef(null),A=a.useRef(null),h=function(j){b.current&&Kt(b.current,j)},ee=ze(e.defaultValue,{value:e.value}),J=he(ee,2),te=J[0],F=J[1],X=te==null?"":String(te),fe=a.useState(null),de=he(fe,2),Q=de[0],me=de[1],Y=Xt(S,_),le=Y.max||C,Z=Y.strategy(X),ne=!!le&&Z>le;a.useImperativeHandle(t,function(){var G;return{focus:h,blur:function(){var re;(re=b.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,$e,xe){var ve;(ve=b.current)===null||ve===void 0||ve.setSelectionRange(re,$e,xe)},select:function(){var re;(re=b.current)===null||re===void 0||re.select()},input:b.current,nativeElement:((G=A.current)===null||G===void 0?void 0:G.nativeElement)||b.current}}),a.useEffect(function(){I.current&&(I.current=!1),$(function(G){return G&&g?!1:G})},[g]);var q=function(j,re,$e){var xe=re;if(!w.current&&Y.exceedFormatter&&Y.max&&Y.strategy(re)>Y.max){if(xe=Y.exceedFormatter(re,{max:Y.max}),re!==xe){var ve,be;me([((ve=b.current)===null||ve===void 0?void 0:ve.selectionStart)||0,((be=b.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;F(xe),b.current&&Ae(b.current,j,r,xe)};a.useEffect(function(){if(Q){var G;(G=b.current)===null||G===void 0||G.setSelectionRange.apply(G,Me(Q))}},[Q]);var ae=function(j){q(j,j.target.value,{source:"change"})},ue=function(j){w.current=!1,q(j,j.currentTarget.value,{source:"compositionEnd"}),U?.(j)},K=function(j){i&&j.key==="Enter"&&!I.current&&(I.current=!0,i(j)),c?.(j)},z=function(j){j.key==="Enter"&&(I.current=!1),f?.(j)},M=function(j){$(!0),o?.(j)},D=function(j){I.current&&(I.current=!1),$(!1),l?.(j)},se=function(j){F(""),h(),b.current&&Ae(b.current,j,r)},Oe=ne&&"".concat(u,"-out-of-range"),Re=function(){var j=rt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return B.createElement("input",we({autoComplete:n},j,{onChange:ae,onFocus:M,onBlur:D,onKeyDown:K,onKeyUp:z,className:W(u,ge({},"".concat(u,"-disabled"),g),y?.input),style:m?.input,ref:b,size:d,type:V,onCompositionStart:function($e){w.current=!0,p?.($e)},onCompositionEnd:ue}))},Ie=function(){var j=Number(le)>0;if(x||Y.show){var re=Y.showFormatter?Y.showFormatter({value:X,count:Z,maxLength:le}):"".concat(Z).concat(j?" / ".concat(le):"");return B.createElement(B.Fragment,null,Y.show&&B.createElement("span",{className:W("".concat(u,"-show-count-suffix"),ge({},"".concat(u,"-show-count-has-suffix"),!!x),y?.count),style:ce({},m?.count)},re),x)}return null};return B.createElement(qt,we({},H,{prefixCls:u,className:W(O,Oe),handleReset:se,value:X,focused:k,triggerFocus:h,suffix:Ie(),disabled:g,classes:T,classNames:y,styles:m,ref:A}),Re())});const Yt=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:B.createElement(rr,null)}),t};function Ar(e,t){const n=a.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,l,i,c;!((o=e.current)===null||o===void 0)&&o.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return a.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Nr(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var _r=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vn=a.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:l,disabled:i,onBlur:c,onFocus:f,suffix:s,allowClear:u,addonAfter:g,addonBefore:d,className:O,style:C,styles:x,rootClassName:_,onChange:S,classNames:E,variant:V}=e,T=_r(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:y,direction:m,allowClear:p,autoComplete:U,className:H,style:R,classNames:P,styles:k}=nt("input"),$=y("input",n),w=a.useRef(null),I=It($),[b,A,h]=Ut($,_),[ee]=Or($,I),{compactSize:J,compactItemClassnames:te}=zt($,m),F=jt(D=>{var se;return(se=l??J)!==null&&se!==void 0?se:D}),X=B.useContext(Bt),fe=i??X,{status:de,hasFeedback:Q,feedbackIcon:me}=a.useContext(Tt),Y=Nt(de,o),le=Nr(e)||!!Q;a.useRef(le);const Z=Ar(w,!0),ne=D=>{Z(),c?.(D)},q=D=>{Z(),f?.(D)},ae=D=>{Z(),S?.(D)},ue=(Q||s)&&B.createElement(B.Fragment,null,s,Q&&me),K=Yt(u??p),[z,M]=At("input",V,r);return b(ee(B.createElement(Tr,Object.assign({ref:ot(t,w),prefixCls:$,autoComplete:U},T,{disabled:fe,onBlur:ne,onFocus:q,style:Object.assign(Object.assign({},R),C),styles:Object.assign(Object.assign({},k),x),suffix:ue,allowClear:K,className:W(O,_,h,I,te,H),onChange:ae,addonBefore:d&&B.createElement(ut,{form:!0,space:!0},d),addonAfter:g&&B.createElement(ut,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},E),P),{input:W({[`${$}-sm`]:F==="small",[`${$}-lg`]:F==="large",[`${$}-rtl`]:m==="rtl"},E?.input,P.input,A),variant:W({[`${$}-${z}`]:M},et($,Y)),affixWrapper:W({[`${$}-affix-wrapper-sm`]:F==="small",[`${$}-affix-wrapper-lg`]:F==="large",[`${$}-affix-wrapper-rtl`]:m==="rtl"},A),wrapper:W({[`${$}-group-rtl`]:m==="rtl"},A),groupWrapper:W({[`${$}-group-wrapper-sm`]:F==="small",[`${$}-group-wrapper-lg`]:F==="large",[`${$}-group-wrapper-rtl`]:m==="rtl",[`${$}-group-wrapper-${z}`]:M},et(`${$}-group-wrapper`,Y,Q),A)})}))))});var Mr=`
17
+ min-height:0 !important;
18
+ max-height:none !important;
19
+ height:0 !important;
20
+ visibility:hidden !important;
21
+ overflow:hidden !important;
22
+ position:absolute !important;
23
+ z-index:-1000 !important;
24
+ top:0 !important;
25
+ right:0 !important;
26
+ pointer-events: none !important;
27
+ `,Hr=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Fe={},pe;function Pr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Fe[n])return Fe[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=Hr.map(function(s){return"".concat(s,":").concat(r.getPropertyValue(s))}).join(";"),f={sizingStyle:c,paddingSize:l,borderSize:i,boxSizing:o};return t&&n&&(Fe[n]=f),f}function Dr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pe||(pe=document.createElement("textarea"),pe.setAttribute("tab-index","-1"),pe.setAttribute("aria-hidden","true"),pe.setAttribute("name","hiddenTextarea"),document.body.appendChild(pe)),e.getAttribute("wrap")?pe.setAttribute("wrap",e.getAttribute("wrap")):pe.removeAttribute("wrap");var o=Pr(e,t),l=o.paddingSize,i=o.borderSize,c=o.boxSizing,f=o.sizingStyle;pe.setAttribute("style","".concat(f,";").concat(Mr)),pe.value=e.value||e.placeholder||"";var s=void 0,u=void 0,g,d=pe.scrollHeight;if(c==="border-box"?d+=i:c==="content-box"&&(d-=l),n!==null||r!==null){pe.value=" ";var O=pe.scrollHeight-l;n!==null&&(s=O*n,c==="border-box"&&(s=s+l+i),d=Math.max(s,d)),r!==null&&(u=O*r,c==="border-box"&&(u=u+l+i),g=d>u?"":"hidden",d=Math.min(u,d))}var C={height:d,overflowY:g,resize:"none"};return s&&(C.minHeight=s),u&&(C.maxHeight=u),C}var Lr=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ve=0,Ge=1,Ue=2,Wr=a.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,i=n.autoSize,c=n.onResize,f=n.className,s=n.style,u=n.disabled,g=n.onChange;n.onInternalAutoSize;var d=_e(n,Lr),O=ze(o,{value:l,postState:function(X){return X??""}}),C=he(O,2),x=C[0],_=C[1],S=function(X){_(X.target.value),g?.(X)},E=a.useRef();a.useImperativeHandle(t,function(){return{textArea:E.current}});var V=a.useMemo(function(){return i&&tt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),T=he(V,2),y=T[0],m=T[1],p=!!i,U=a.useState(Ue),H=he(U,2),R=H[0],P=H[1],k=a.useState(),$=he(k,2),w=$[0],I=$[1],b=function(){P(Ve)};Ee(function(){p&&b()},[l,y,m,p]),Ee(function(){if(R===Ve)P(Ge);else if(R===Ge){var F=Dr(E.current,!1,y,m);P(Ue),I(F)}},[R]);var A=a.useRef(),h=function(){ft.cancel(A.current)},ee=function(X){R===Ue&&(c?.(X),i&&(h(),A.current=ft(function(){b()})))};a.useEffect(function(){return h},[]);var J=p?w:null,te=ce(ce({},s),J);return(R===Ve||R===Ge)&&(te.overflowY="hidden",te.overflowX="hidden"),a.createElement(_t,{onResize:ee,disabled:!(i||c)},a.createElement("textarea",we({},d,{ref:E,style:te,className:W(r,f,ge({},"".concat(r,"-disabled"),u)),disabled:u,value:x,onChange:S})))}),Fr=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Vr=B.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,l=e.onFocus,i=e.onBlur,c=e.onChange,f=e.allowClear,s=e.maxLength,u=e.onCompositionStart,g=e.onCompositionEnd,d=e.suffix,O=e.prefixCls,C=O===void 0?"rc-textarea":O,x=e.showCount,_=e.count,S=e.className,E=e.style,V=e.disabled,T=e.hidden,y=e.classNames,m=e.styles,p=e.onResize,U=e.onClear,H=e.onPressEnter,R=e.readOnly,P=e.autoSize,k=e.onKeyDown,$=_e(e,Fr),w=ze(r,{value:o,defaultValue:r}),I=he(w,2),b=I[0],A=I[1],h=b==null?"":String(b),ee=B.useState(!1),J=he(ee,2),te=J[0],F=J[1],X=B.useRef(!1),fe=B.useState(null),de=he(fe,2),Q=de[0],me=de[1],Y=a.useRef(null),le=a.useRef(null),Z=function(){var L;return(L=le.current)===null||L===void 0?void 0:L.textArea},ne=function(){Z().focus()};a.useImperativeHandle(t,function(){var oe;return{resizableTextArea:le.current,focus:ne,blur:function(){Z().blur()},nativeElement:((oe=Y.current)===null||oe===void 0?void 0:oe.nativeElement)||Z()}}),a.useEffect(function(){F(function(oe){return!V&&oe})},[V]);var q=B.useState(null),ae=he(q,2),ue=ae[0],K=ae[1];B.useEffect(function(){if(ue){var oe;(oe=Z()).setSelectionRange.apply(oe,Me(ue))}},[ue]);var z=Xt(_,x),M=(n=z.max)!==null&&n!==void 0?n:s,D=Number(M)>0,se=z.strategy(h),Oe=!!M&&se>M,Re=function(L,ye){var v=ye;!X.current&&z.exceedFormatter&&z.max&&z.strategy(ye)>z.max&&(v=z.exceedFormatter(ye,{max:z.max}),ye!==v&&K([Z().selectionStart||0,Z().selectionEnd||0])),A(v),Ae(L.currentTarget,L,c,v)},Ie=function(L){X.current=!0,u?.(L)},G=function(L){X.current=!1,Re(L,L.currentTarget.value),g?.(L)},j=function(L){Re(L,L.target.value)},re=function(L){L.key==="Enter"&&H&&H(L),k?.(L)},$e=function(L){F(!0),l?.(L)},xe=function(L){F(!1),i?.(L)},ve=function(L){A(""),ne(),Ae(Z(),L,c)},be=d,Se;z.show&&(z.showFormatter?Se=z.showFormatter({value:h,count:se,maxLength:M}):Se="".concat(se).concat(D?" / ".concat(M):""),be=B.createElement(B.Fragment,null,be,B.createElement("span",{className:W("".concat(C,"-data-count"),y?.count),style:m?.count},Se)));var De=function(L){var ye;p?.(L),(ye=Z())!==null&&ye!==void 0&&ye.style.height&&me(!0)},Le=!P&&!x&&!f;return B.createElement(qt,{ref:Y,value:h,allowClear:f,handleReset:ve,suffix:be,prefixCls:C,classNames:ce(ce({},y),{},{affixWrapper:W(y?.affixWrapper,ge(ge({},"".concat(C,"-show-count"),x),"".concat(C,"-textarea-allow-clear"),f))}),disabled:V,focused:te,className:W(S,Oe&&"".concat(C,"-out-of-range")),style:ce(ce({},E),Q&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:T,readOnly:R,onClear:U},B.createElement(Wr,we({},$,{autoSize:P,maxLength:s,onKeyDown:re,onChange:j,onFocus:$e,onBlur:xe,onCompositionStart:Ie,onCompositionEnd:G,className:W(y?.textarea),style:ce(ce({},m?.textarea),{},{resize:E?.resize}),disabled:V,prefixCls:C,onResize:De,ref:le,readOnly:R})))});const Gr=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
28
+ &-allow-clear > ${t},
29
+ &-affix-wrapper${r}-has-feedback ${t}
30
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Ur=Ne(["Input","TextArea"],e=>{const t=je(e,lt(e));return Gr(t)},st,{resetFont:!1});var Kr=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qr=a.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:i,status:c,allowClear:f,classNames:s,rootClassName:u,className:g,style:d,styles:O,variant:C,showCount:x,onMouseDown:_,onResize:S}=e,E=Kr(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:V,direction:T,allowClear:y,autoComplete:m,className:p,style:U,classNames:H,styles:R}=nt("textArea"),P=a.useContext(Bt),k=i??P,{status:$,hasFeedback:w,feedbackIcon:I}=a.useContext(Tt),b=Nt($,c),A=a.useRef(null);a.useImperativeHandle(t,()=>{var z;return{resizableTextArea:(z=A.current)===null||z===void 0?void 0:z.resizableTextArea,focus:M=>{var D,se;Kt((se=(D=A.current)===null||D===void 0?void 0:D.resizableTextArea)===null||se===void 0?void 0:se.textArea,M)},blur:()=>{var M;return(M=A.current)===null||M===void 0?void 0:M.blur()}}});const h=V("input",r),ee=It(h),[J,te,F]=Ut(h,u),[X]=Ur(h,ee),{compactSize:fe,compactItemClassnames:de}=zt(h,T),Q=jt(z=>{var M;return(M=l??fe)!==null&&M!==void 0?M:z}),[me,Y]=At("textArea",C,o),le=Yt(f??y),[Z,ne]=a.useState(!1),[q,ae]=a.useState(!1),ue=z=>{ne(!0),_?.(z);const M=()=>{ne(!1),document.removeEventListener("mouseup",M)};document.addEventListener("mouseup",M)},K=z=>{var M,D;if(S?.(z),Z&&typeof getComputedStyle=="function"){const se=(D=(M=A.current)===null||M===void 0?void 0:M.nativeElement)===null||D===void 0?void 0:D.querySelector("textarea");se&&getComputedStyle(se).resize==="both"&&ae(!0)}};return J(X(a.createElement(Vr,Object.assign({autoComplete:m},E,{style:Object.assign(Object.assign({},U),d),styles:Object.assign(Object.assign({},R),O),disabled:k,allowClear:le,className:W(F,ee,g,u,de,p,q&&`${h}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},s),H),{textarea:W({[`${h}-sm`]:Q==="small",[`${h}-lg`]:Q==="large"},te,s?.textarea,H.textarea,Z&&`${h}-mouse-active`),variant:W({[`${h}-${me}`]:Y},et(h,b)),affixWrapper:W(`${h}-textarea-affix-wrapper`,{[`${h}-affix-wrapper-rtl`]:T==="rtl",[`${h}-affix-wrapper-sm`]:Q==="small",[`${h}-affix-wrapper-lg`]:Q==="large",[`${h}-textarea-show-count`]:x||((n=e.count)===null||n===void 0?void 0:n.show)},te)}),prefixCls:h,suffix:w&&a.createElement("span",{className:`${h}-textarea-suffix`},I),showCount:x,ref:A,onResize:K,onMouseDown:ue}))))}),Xr=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var Yr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Zr=function(t,n){return a.createElement(at,we({},t,{ref:n,icon:Yr}))},Jr=a.forwardRef(Zr),Qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},kr=function(t,n){return a.createElement(at,we({},t,{ref:n,icon:Qr}))},en=a.forwardRef(kr);const tn=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},rn=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
31
+ h${r}&,
32
+ div&-h${r},
33
+ div&-h${r} > textarea,
34
+ h${r}
35
+ `]=tn(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},nn=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Mt(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},on=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:nr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),an=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},ln=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),sn=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),cn=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},rn(e)),{[`
36
+ & + h1${t},
37
+ & + h2${t},
38
+ & + h3${t},
39
+ & + h4${t},
40
+ & + h5${t}
41
+ `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),on(e)),nn(e)),{[`
42
+ ${t}-expand,
43
+ ${t}-collapse,
44
+ ${t}-edit,
45
+ ${t}-copy
46
+ `]:Object.assign(Object.assign({},Mt(e)),{marginInlineStart:e.marginXXS})}),an(e)),ln(e)),sn()),{"&-rtl":{direction:"rtl"}})}},dn=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Zt=Ne("Typography",cn,dn),un=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:i,autoSize:c=!0,value:f,onSave:s,onCancel:u,onEnd:g,component:d,enterIcon:O=a.createElement(en,null)}=e,C=a.useRef(null),x=a.useRef(!1),_=a.useRef(null),[S,E]=a.useState(f);a.useEffect(()=>{E(f)},[f]),a.useEffect(()=>{var w;if(!((w=C.current)===null||w===void 0)&&w.resizableTextArea){const{textArea:I}=C.current.resizableTextArea;I.focus();const{length:b}=I.value;I.setSelectionRange(b,b)}},[]);const V=({target:w})=>{E(w.value.replace(/[\n\r]/g,""))},T=()=>{x.current=!0},y=()=>{x.current=!1},m=({keyCode:w})=>{x.current||(_.current=w)},p=()=>{s(S.trim())},U=({keyCode:w,ctrlKey:I,altKey:b,metaKey:A,shiftKey:h})=>{_.current!==w||x.current||I||b||A||h||(w===pt.ENTER?(p(),g?.()):w===pt.ESC&&u())},H=()=>{p()},[R,P,k]=Zt(t),$=W(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${d}`]:!!d},r,P,k);return R(a.createElement("div",{className:$,style:o},a.createElement(qr,{ref:C,maxLength:i,value:S,onChange:V,onKeyDown:m,onKeyUp:U,onCompositionStart:T,onCompositionEnd:y,onBlur:H,"aria-label":n,rows:1,autoSize:c}),O!==null?or(O,{className:`${t}-edit-content-confirm`}):null))};var Ke,yt;function fn(){return yt||(yt=1,Ke=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Ke}var qe,Ct;function pn(){if(Ct)return qe;Ct=1;var e=fn(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,i)}function o(l,i){var c,f,s,u,g,d,O=!1;i||(i={}),c=i.debug||!1;try{s=e(),u=document.createRange(),g=document.getSelection(),d=document.createElement("span"),d.textContent=l,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(x){if(x.stopPropagation(),i.format)if(x.preventDefault(),typeof x.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=t[i.format]||t.default;window.clipboardData.setData(_,l)}else x.clipboardData.clearData(),x.clipboardData.setData(i.format,l);i.onCopy&&(x.preventDefault(),i.onCopy(x.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),g.addRange(u);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");O=!0}catch(x){c&&console.error("unable to copy using execCommand: ",x),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",l),i.onCopy&&i.onCopy(window.clipboardData),O=!0}catch(_){c&&console.error("unable to copy using clipboardData: ",_),c&&console.error("falling back to prompt"),f=r("message"in i?i.message:n),window.prompt(f,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(u):g.removeAllRanges()),d&&document.body.removeChild(d),s()}return O}return qe=o,qe}var gn=pn();const mn=ar(gn);var vn=function(e,t,n,r){function o(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function c(u){try{s(r.next(u))}catch(g){i(g)}}function f(u){try{s(r.throw(u))}catch(g){i(g)}}function s(u){u.done?l(u.value):o(u.value).then(c,f)}s((r=r.apply(e,t||[])).next())})};const bn=({copyConfig:e,children:t})=>{const[n,r]=a.useState(!1),[o,l]=a.useState(!1),i=a.useRef(null),c=()=>{i.current&&clearTimeout(i.current)},f={};e.format&&(f.format=e.format),a.useEffect(()=>c,[]);const s=ir(u=>vn(void 0,void 0,void 0,function*(){var g;u?.preventDefault(),u?.stopPropagation(),l(!0);try{const d=typeof e.text=="function"?yield e.text():e.text;mn(d||Xr(t,!0).join("")||"",f),l(!1),r(!0),c(),i.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,u)}catch(d){throw l(!1),d}}));return{copied:n,copyLoading:o,onClick:s}};function Xe(e,t){return a.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const hn=e=>{const t=a.useRef(void 0);return a.useEffect(()=>{t.current=e}),t.current},xn=(e,t,n)=>a.useMemo(()=>e===!0?{title:t??n}:a.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Sn=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jt=a.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:i,children:c,direction:f,style:s}=e,u=Sn(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:d,className:O,style:C}=nt("typography"),x=f??d,_=i?ot(t,i):t,S=g("typography",n),[E,V,T]=Zt(S),y=W(S,O,{[`${S}-rtl`]:x==="rtl"},o,l,V,T),m=Object.assign(Object.assign({},C),s);return E(a.createElement(r,Object.assign({className:y,style:m,ref:_},u),c))});var yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Cn=function(t,n){return a.createElement(at,we({},t,{ref:n,icon:yn}))},$n=a.forwardRef(Cn);function $t(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ye(e,t,n){return e===!0||e===void 0?t:e||n&&t}function En(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const dt=e=>["string","number"].includes(typeof e),wn=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:i,onCopy:c,loading:f})=>{const s=$t(o),u=$t(l),{copied:g,copy:d}=n??{},O=t?g:d,C=Ye(s[t?1:0],O),x=typeof C=="string"?C:O;return a.createElement(it,{title:C},a.createElement("button",{type:"button",className:W(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":x,tabIndex:i},t?Ye(u[1],a.createElement(lr,null),!0):Ye(u[0],f?a.createElement(sr,null):a.createElement($n,null),!0)))},Be=a.forwardRef(({style:e,children:t},n)=>{const r=a.useRef(null);return a.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),Rn=e=>e.reduce((t,n)=>t+(dt(n)?String(n).length:1),0);function Et(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const l=e[o],c=dt(l)?String(l).length:1,f=n+c;if(f>t){const s=t-n;return r.push(String(l).slice(0,s)),r}r.push(l),n=f}return e}const Ze=0,Je=1,Qe=2,ke=3,wt=4,Te={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function On(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:i,miscDeps:c,onEllipsis:f}=e,s=a.useMemo(()=>Ht(r),[r]),u=a.useMemo(()=>Rn(s),[r]),g=a.useMemo(()=>o(s,!1),[r]),[d,O]=a.useState(null),C=a.useRef(null),x=a.useRef(null),_=a.useRef(null),S=a.useRef(null),E=a.useRef(null),[V,T]=a.useState(!1),[y,m]=a.useState(Ze),[p,U]=a.useState(0),[H,R]=a.useState(null);Ee(()=>{m(t&&n&&u?Je:Ze)},[n,r,l,t,s]),Ee(()=>{var w,I,b,A;if(y===Je){m(Qe);const h=x.current&&getComputedStyle(x.current).whiteSpace;R(h)}else if(y===Qe){const h=!!(!((w=_.current)===null||w===void 0)&&w.isExceed());m(h?ke:wt),O(h?[0,u]:null),T(h);const ee=((I=_.current)===null||I===void 0?void 0:I.getHeight())||0,J=l===1?0:((b=S.current)===null||b===void 0?void 0:b.getHeight())||0,te=((A=E.current)===null||A===void 0?void 0:A.getHeight())||0,F=Math.max(ee,J+te);U(F+1),f(h)}},[y]);const P=d?Math.ceil((d[0]+d[1])/2):0;Ee(()=>{var w;const[I,b]=d||[0,0];if(I!==b){const h=(((w=C.current)===null||w===void 0?void 0:w.getHeight())||0)>p;let ee=P;b-I===1&&(ee=h?I:b),O(h?[I,ee]:[ee,b])}},[d,P]);const k=a.useMemo(()=>{if(!t)return o(s,!1);if(y!==ke||!d||d[0]!==d[1]){const w=o(s,!1);return[wt,Ze].includes(y)?w:a.createElement("span",{style:Object.assign(Object.assign({},Te),{WebkitLineClamp:l})},w)}return o(i?s:Et(s,d[0]),V)},[i,y,d,s].concat(Me(c))),$={width:n,margin:0,padding:0,whiteSpace:H==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,k,y===Qe&&a.createElement(a.Fragment,null,a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:l}),ref:_},g),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:l-1}),ref:S},g),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:1}),ref:E},o([],!0))),y===ke&&d&&d[0]!==d[1]&&a.createElement(Be,{style:Object.assign(Object.assign({},$),{top:400}),ref:C},o(Et(s,P),!0)),y===Je&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const In=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:a.createElement(it,Object.assign({open:t?void 0:!1},r),n);var zn=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jn({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:i},c){let f=c;function s(u,g){g&&(f=a.createElement(u,{},f))}return s("strong",o),s("u",n),s("del",r),s("code",t),s("mark",e),s("kbd",l),s("i",i),f}const Bn="...",Rt=["delete","mark","code","underline","strong","keyboard","italic"],He=a.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:i,disabled:c,children:f,ellipsis:s,editable:u,copyable:g,component:d,title:O}=e,C=zn(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:_}=a.useContext(cr),[S]=dr("Text"),E=a.useRef(null),V=a.useRef(null),T=x("typography",r),y=rt(C,Rt),[m,p]=Xe(u),[U,H]=ze(!1,{value:p.editing}),{triggerType:R=["icon"]}=p,P=v=>{var N;v&&((N=p.onStart)===null||N===void 0||N.call(p)),H(v)},k=hn(U);Ee(()=>{var v;!U&&k&&((v=V.current)===null||v===void 0||v.focus())},[U]);const $=v=>{v?.preventDefault(),P(!0)},w=v=>{var N;(N=p.onChange)===null||N===void 0||N.call(p,v),P(!1)},I=()=>{var v;(v=p.onCancel)===null||v===void 0||v.call(p),P(!1)},[b,A]=Xe(g),{copied:h,copyLoading:ee,onClick:J}=bn({copyConfig:A,children:f}),[te,F]=a.useState(!1),[X,fe]=a.useState(!1),[de,Q]=a.useState(!1),[me,Y]=a.useState(!1),[le,Z]=a.useState(!0),[ne,q]=Xe(s,{expandable:!1,symbol:v=>v?S?.collapse:S?.expand}),[ae,ue]=ze(q.defaultExpanded||!1,{value:q.expanded}),K=ne&&(!ae||q.expandable==="collapsible"),{rows:z=1}=q,M=a.useMemo(()=>K&&(q.suffix!==void 0||q.onEllipsis||q.expandable||m||b),[K,q,m,b]);Ee(()=>{ne&&!M&&(F(gt("webkitLineClamp")),fe(gt("textOverflow")))},[M,ne]);const[D,se]=a.useState(K),Oe=a.useMemo(()=>M?!1:z===1?X:te,[M,X,te]);Ee(()=>{se(Oe&&K)},[Oe,K]);const Re=K&&(D?me:de),Ie=K&&z===1&&D,G=K&&z>1&&D,j=(v,N)=>{var Ce;ue(N.expanded),(Ce=q.onExpand)===null||Ce===void 0||Ce.call(q,v,N)},[re,$e]=a.useState(0),xe=({offsetWidth:v})=>{$e(v)},ve=v=>{var N;Q(v),de!==v&&((N=q.onEllipsis)===null||N===void 0||N.call(q,v))};a.useEffect(()=>{const v=E.current;if(ne&&D&&v){const N=En(v);me!==N&&Y(N)}},[ne,D,f,G,le,re]),a.useEffect(()=>{const v=E.current;if(typeof IntersectionObserver>"u"||!v||!D||!K)return;const N=new IntersectionObserver(()=>{Z(!!v.offsetParent)});return N.observe(v),()=>{N.disconnect()}},[D,K]);const be=xn(q.tooltip,p.text,f),Se=a.useMemo(()=>{if(!(!ne||D))return[p.text,f,O,be.title].find(dt)},[ne,D,O,be.title,Re]);if(U)return a.createElement(un,{value:(n=p.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:w,onCancel:I,onEnd:p.onEnd,prefixCls:T,className:o,style:l,direction:_,component:d,maxLength:p.maxLength,autoSize:p.autoSize,enterIcon:p.enterIcon});const De=()=>{const{expandable:v,symbol:N}=q;return v?a.createElement("button",{type:"button",key:"expand",className:`${T}-${ae?"collapse":"expand"}`,onClick:Ce=>j(Ce,{expanded:!ae}),"aria-label":ae?S.collapse:S?.expand},typeof N=="function"?N(ae):N):null},Le=()=>{if(!m)return;const{icon:v,tooltip:N,tabIndex:Ce}=p,We=Ht(N)[0]||S?.edit,Qt=typeof We=="string"?We:"";return R.includes("icon")?a.createElement(it,{key:"edit",title:N===!1?"":We},a.createElement("button",{type:"button",ref:V,className:`${T}-edit`,onClick:$,"aria-label":Qt,tabIndex:Ce},v||a.createElement(Jr,{role:"button"}))):null},oe=()=>b?a.createElement(wn,Object.assign({key:"copy"},A,{prefixCls:T,copied:h,locale:S,onCopy:J,loading:ee,iconOnly:f==null})):null,L=v=>[v&&De(),Le(),oe()],ye=v=>[v&&!ae&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Bn),q.suffix,L(v)];return a.createElement(_t,{onResize:xe,disabled:!K},v=>a.createElement(In,{tooltipProps:be,enableEllipsis:K,isEllipsis:Re},a.createElement(Jt,Object.assign({className:W({[`${T}-${i}`]:i,[`${T}-disabled`]:c,[`${T}-ellipsis`]:ne,[`${T}-ellipsis-single-line`]:Ie,[`${T}-ellipsis-multiple-line`]:G},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:G?z:void 0}),component:d,ref:ot(v,E,t),direction:_,onClick:R.includes("text")?$:void 0,"aria-label":Se?.toString(),title:O},y),a.createElement(On,{enableMeasure:K&&!D,text:f,rows:z,width:re,onEllipsis:ve,expanded:ae,miscDeps:[h,ae,ee,m,b,S].concat(Me(Rt.map(N=>e[N])))},(N,Ce)=>jn(e,a.createElement(a.Fragment,null,N.length>0&&Ce&&!ae&&Se?a.createElement("span",{key:"show-content","aria-hidden":!0},N):N,ye(Ce)))))))});var Tn=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const An=a.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,i=Tn(e,["ellipsis","rel","children","navigate"]),c=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return a.createElement(He,Object.assign({},c,{ref:t,ellipsis:!!n,component:"a"}),o)});var Nn=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _n=a.forwardRef((e,t)=>{const{children:n}=e,r=Nn(e,["children"]);return a.createElement(He,Object.assign({ref:t},r,{component:"div"}),n)});var Mn=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hn=(e,t)=>{const{ellipsis:n,children:r}=e,o=Mn(e,["ellipsis","children"]),l=a.useMemo(()=>n&&typeof n=="object"?rt(n,["expandable","rows"]):n,[n]);return a.createElement(He,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},Pn=a.forwardRef(Hn);var Dn=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ln=[1,2,3,4,5],Wn=a.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=Dn(e,["level","children"]),l=Ln.includes(n)?`h${n}`:"h1";return a.createElement(He,Object.assign({ref:t},o,{component:l}),r)}),Pe=Jt;Pe.Text=Pn;Pe.Link=An;Pe.Title=Wn;Pe.Paragraph=_n;export{qt as B,Vn as I,$n as R,Pe as T,lt as a,pr as b,vr as c,hr as d,mr as e,xr as f,Gt as g,Sr as h,st as i,gr as j,br as k,Jr as l,gt as m,Dt as n,ct as o,Vt as p,Ar as q,qr as r,Kt as t,Or as u};
47
+ //# sourceMappingURL=index-_EG4kaKN.js.map
@@ -0,0 +1,20 @@
1
+ import{a2 as ne,n as M,r as o,v as Ae,x as Fe,aK as Pa,A as g,D as de,ag as qe,ac as Ra,b4 as Ma,cb as Ta,cc as Ia,k as Na,m as st,a3 as ve,t as Yt,bV as Jt,bs as Qt,o as Be,i as k,am as ja,_ as ge,h as re,I as La,a4 as le,q as za,p as ut,cd as Ba,ce as Aa,an as Ha,a9 as jt,ap as nt,aW as Da,a5 as Ga,l as Wa,a7 as Lt,aT as ka,a6 as Va,au as zt,z as ft,aA as vt,bn as Zt,ab as ct,E as Fa,aS as qa,J as ea,bp as Ka,b3 as gt,L as Xa}from"./index-DG6kGbYq.js";const Ua=()=>ne.useReducer(e=>e+1,0),Ke=e=>{const{prefixCls:t,className:n,style:a,size:r,shape:i}=e,l=M({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),s=M({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=o.useMemo(()=>typeof r=="number"?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return o.createElement("span",{className:M(t,l,s,n),style:Object.assign(Object.assign({},c),a)})},Ya=new Pa("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Xe=e=>({height:e,lineHeight:g(e)}),Re=e=>Object.assign({width:e},Xe(e)),Ja=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ya,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),rt=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Xe(e)),Qa=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:a,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Re(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Re(r)),[`${t}${t}-sm`]:Object.assign({},Re(i))}},Za=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:r,controlHeightSM:i,gradientFromColor:l,calc:s}=e;return{[a]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},rt(t,s)),[`${a}-lg`]:Object.assign({},rt(r,s)),[`${a}-sm`]:Object.assign({},rt(i,s))}},Bt=e=>Object.assign({width:e},Xe(e)),en=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:a,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:a,borderRadius:r},Bt(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Bt(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},it=(e,t,n)=>{const{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},ot=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Xe(e)),tn=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:r,controlHeightSM:i,gradientFromColor:l,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:s(a).mul(2).equal(),minWidth:s(a).mul(2).equal()},ot(a,s))},it(e,a,n)),{[`${n}-lg`]:Object.assign({},ot(r,s))}),it(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ot(i,s))}),it(e,i,`${n}-sm`))},an=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:d,controlHeightSM:f,gradientFromColor:u,padding:m,marginSM:C,borderRadius:L,titleHeight:E,blockRadius:$,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:T}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},Re(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Re(d)),[`${n}-sm`]:Object.assign({},Re(f))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[a]:{width:"100%",height:E,background:u,borderRadius:$,[`+ ${r}`]:{marginBlockStart:f}},[r]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:u,borderRadius:$,"+ li":{marginBlockStart:y}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a}, ${r} > li`]:{borderRadius:L}}},[`${t}-with-avatar ${t}-content`]:{[a]:{marginBlockStart:C,[`+ ${r}`]:{marginBlockStart:T}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},tn(e)),Qa(e)),Za(e)),en(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[`
2
+ ${a},
3
+ ${r} > li,
4
+ ${n},
5
+ ${i},
6
+ ${l},
7
+ ${s}
8
+ `]:Object.assign({},Ja(e))}}},nn=e=>{const{colorFillContent:t,colorFill:n}=e,a=t,r=n;return{color:a,colorGradientEnd:r,gradientFromColor:a,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Te=Ae("Skeleton",e=>{const{componentCls:t,calc:n}=e,a=Fe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,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"});return an(a)},nn,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),rn=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,shape:i="circle",size:l="default"}=e,{getPrefixCls:s}=o.useContext(de),c=s("skeleton",t),[d,f,u]=Te(c),m=qe(e,["prefixCls","className"]),C=M(c,`${c}-element`,{[`${c}-active`]:r},n,a,f,u);return d(o.createElement("div",{className:C},o.createElement(Ke,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:l},m))))},on=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,block:i=!1,size:l="default"}=e,{getPrefixCls:s}=o.useContext(de),c=s("skeleton",t),[d,f,u]=Te(c),m=qe(e,["prefixCls"]),C=M(c,`${c}-element`,{[`${c}-active`]:r,[`${c}-block`]:i},n,a,f,u);return d(o.createElement("div",{className:C},o.createElement(Ke,Object.assign({prefixCls:`${c}-button`,size:l},m))))},ln="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",sn=e=>{const{prefixCls:t,className:n,rootClassName:a,style:r,active:i}=e,{getPrefixCls:l}=o.useContext(de),s=l("skeleton",t),[c,d,f]=Te(s),u=M(s,`${s}-element`,{[`${s}-active`]:i},n,a,d,f);return c(o.createElement("div",{className:u},o.createElement("div",{className:M(`${s}-image`,n),style:r},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},o.createElement("title",null,"Image placeholder"),o.createElement("path",{d:ln,className:`${s}-image-path`})))))},cn=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,block:i,size:l="default"}=e,{getPrefixCls:s}=o.useContext(de),c=s("skeleton",t),[d,f,u]=Te(c),m=qe(e,["prefixCls"]),C=M(c,`${c}-element`,{[`${c}-active`]:r,[`${c}-block`]:i},n,a,f,u);return d(o.createElement("div",{className:C},o.createElement(Ke,Object.assign({prefixCls:`${c}-input`,size:l},m))))},dn=e=>{const{prefixCls:t,className:n,rootClassName:a,style:r,active:i,children:l}=e,{getPrefixCls:s}=o.useContext(de),c=s("skeleton",t),[d,f,u]=Te(c),m=M(c,`${c}-element`,{[`${c}-active`]:i},f,n,a,u);return d(o.createElement("div",{className:m},o.createElement("div",{className:M(`${c}-image`,n),style:r},l)))},un=(e,t)=>{const{width:n,rows:a=2}=t;if(Array.isArray(n))return n[e];if(a-1===e)return n},fn=e=>{const{prefixCls:t,className:n,style:a,rows:r=0}=e,i=Array.from({length:r}).map((l,s)=>o.createElement("li",{key:s,style:{width:un(s,e)}}));return o.createElement("ul",{className:M(t,n),style:a},i)},vn=({prefixCls:e,className:t,width:n,style:a})=>o.createElement("h3",{className:M(e,t),style:Object.assign({width:n},a)});function lt(e){return e&&typeof e=="object"?e:{}}function gn(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function mn(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function bn(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ie=e=>{const{prefixCls:t,loading:n,className:a,rootClassName:r,style:i,children:l,avatar:s=!1,title:c=!0,paragraph:d=!0,active:f,round:u}=e,{getPrefixCls:m,direction:C,className:L,style:E}=Ra("skeleton"),$=m("skeleton",t),[v,y,T]=Te($);if(n||!("loading"in e)){const O=!!s,I=!!c,R=!!d;let B;if(O){const b=Object.assign(Object.assign({prefixCls:`${$}-avatar`},gn(I,R)),lt(s));B=o.createElement("div",{className:`${$}-header`},o.createElement(Ke,Object.assign({},b)))}let x;if(I||R){let b;if(I){const P=Object.assign(Object.assign({prefixCls:`${$}-title`},mn(O,R)),lt(c));b=o.createElement(vn,Object.assign({},P))}let p;if(R){const P=Object.assign(Object.assign({prefixCls:`${$}-paragraph`},bn(O,I)),lt(d));p=o.createElement(fn,Object.assign({},P))}x=o.createElement("div",{className:`${$}-content`},b,p)}const h=M($,{[`${$}-with-avatar`]:O,[`${$}-active`]:f,[`${$}-rtl`]:C==="rtl",[`${$}-round`]:u},L,a,r,y,T);return v(o.createElement("div",{className:h,style:Object.assign(Object.assign({},E),i)},B,x))}return l??null};Ie.Button=on;Ie.Avatar=rn;Ie.Input=cn;Ie.Image=sn;Ie.Node=dn;const hn=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},pn=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},$n=(e,t)=>{const{prefixCls:n,componentCls:a,gridColumns:r}=e,i={};for(let l=r;l>=0;l--)l===0?(i[`${a}${t}-${l}`]={display:"none"},i[`${a}-push-${l}`]={insetInlineStart:"auto"},i[`${a}-pull-${l}`]={insetInlineEnd:"auto"},i[`${a}${t}-push-${l}`]={insetInlineStart:"auto"},i[`${a}${t}-pull-${l}`]={insetInlineEnd:"auto"},i[`${a}${t}-offset-${l}`]={marginInlineStart:0},i[`${a}${t}-order-${l}`]={order:0}):(i[`${a}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/r*100}%`,maxWidth:`${l/r*100}%`}],i[`${a}${t}-push-${l}`]={insetInlineStart:`${l/r*100}%`},i[`${a}${t}-pull-${l}`]={insetInlineEnd:`${l/r*100}%`},i[`${a}${t}-offset-${l}`]={marginInlineStart:`${l/r*100}%`},i[`${a}${t}-order-${l}`]={order:l});return i[`${a}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},dt=(e,t)=>$n(e,t),yn=(e,t,n)=>({[`@media (min-width: ${g(t)})`]:Object.assign({},dt(e,n))}),Sn=()=>({}),Cn=()=>({}),xn=Ae("Grid",hn,Sn),wn=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),On=Ae("Grid",e=>{const t=Fe(e,{gridColumns:24}),n=wn(t);return delete n.xs,[pn(t),dt(t,""),dt(t,"-xs"),Object.keys(n).map(a=>yn(t,n[a],`-${a}`)).reduce((a,r)=>Object.assign(Object.assign({},a),r),{})]},Cn),Me=["xxl","xl","lg","md","sm","xs"],En=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),_n=e=>{const t=e,n=[].concat(Me).reverse();return n.forEach((a,r)=>{const i=a.toUpperCase(),l=`screen${i}Min`,s=`screen${i}`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);if(r<n.length-1){const c=`screen${i}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const f=`screen${n[r+1].toUpperCase()}Min`;if(!(t[c]<=t[f]))throw new Error(`${c}<=${f} fails : !(${t[c]}<=${t[f]})`)}}),e},Vr=(e,t)=>{if(t){for(const n of Me)if(e[n]&&t?.[n]!==void 0)return t[n]}},Pn=()=>{const[,e]=Ma(),t=En(_n(e));return ne.useMemo(()=>{const n=new Map;let a=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return r=i,n.forEach(l=>l(r)),n.size>=1},subscribe(i){return n.size||this.register(),a+=1,n.set(a,i),i(r),a},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,l])=>{const s=({matches:d})=>{this.dispatch(Object.assign(Object.assign({},r),{[i]:d}))},c=window.matchMedia(l);Ia(c,s),this.matchHandlers[l]={mql:c,listener:s},s(c)})},unregister(){Object.values(t).forEach(i=>{const l=this.matchHandlers[i];Ta(l?.mql,l?.listener)}),n.clear()}}},[t])};function Rn(e=!0,t={}){const n=o.useRef(t),[,a]=Ua(),r=Pn();return Na(()=>{const i=r.subscribe(l=>{n.current=l,e&&a()});return()=>r.unsubscribe(i)},[]),n.current}var Mn=ve.ESC,Tn=ve.TAB;function In(e){var t=e.visible,n=e.triggerRef,a=e.onVisibleChange,r=e.autoFocus,i=e.overlayRef,l=o.useRef(!1),s=function(){if(t){var u,m;(u=n.current)===null||u===void 0||(m=u.focus)===null||m===void 0||m.call(u),a?.(!1)}},c=function(){var u;return(u=i.current)!==null&&u!==void 0&&u.focus?(i.current.focus(),l.current=!0,!0):!1},d=function(u){switch(u.keyCode){case Mn:s();break;case Tn:{var m=!1;l.current||(m=c()),m?u.preventDefault():s();break}}};o.useEffect(function(){return t?(window.addEventListener("keydown",d),r&&st(c,3),function(){window.removeEventListener("keydown",d),l.current=!1}):function(){l.current=!1}},[t])}var Nn=o.forwardRef(function(e,t){var n=e.overlay,a=e.arrow,r=e.prefixCls,i=o.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),l=Yt(t,Jt(i));return ne.createElement(ne.Fragment,null,a&&ne.createElement("div",{className:"".concat(r,"-arrow")}),ne.cloneElement(i,{ref:Qt(i)?l:void 0}))}),Ee={adjustX:1,adjustY:1},_e=[0,0],jn={topLeft:{points:["bl","tl"],overflow:Ee,offset:[0,-4],targetOffset:_e},top:{points:["bc","tc"],overflow:Ee,offset:[0,-4],targetOffset:_e},topRight:{points:["br","tr"],overflow:Ee,offset:[0,-4],targetOffset:_e},bottomLeft:{points:["tl","bl"],overflow:Ee,offset:[0,4],targetOffset:_e},bottom:{points:["tc","bc"],overflow:Ee,offset:[0,4],targetOffset:_e},bottomRight:{points:["tr","br"],overflow:Ee,offset:[0,4],targetOffset:_e}},Ln=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function zn(e,t){var n,a=e.arrow,r=a===void 0?!1:a,i=e.prefixCls,l=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,d=e.align,f=e.placement,u=f===void 0?"bottomLeft":f,m=e.placements,C=m===void 0?jn:m,L=e.getPopupContainer,E=e.showAction,$=e.hideAction,v=e.overlayClassName,y=e.overlayStyle,T=e.visible,O=e.trigger,I=O===void 0?["hover"]:O,R=e.autoFocus,B=e.overlay,x=e.children,h=e.onVisibleChange,b=Be(e,Ln),p=ne.useState(),P=k(p,2),w=P[0],_=P[1],J="visible"in e?T:w,D=ne.useRef(null),V=ne.useRef(null),te=ne.useRef(null);ne.useImperativeHandle(t,function(){return D.current});var A=function(q){_(q),h?.(q)};In({visible:J,triggerRef:te,onVisibleChange:A,autoFocus:R,overlayRef:V});var N=function(q){var Q=e.onOverlayClick;_(!1),Q&&Q(q)},ae=function(){return ne.createElement(Nn,{ref:V,overlay:B,prefixCls:l,arrow:r})},oe=function(){return typeof B=="function"?ae:ae()},j=function(){var q=e.minOverlayWidthMatchTrigger,Q=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!Q},G=function(){var q=e.openClassName;return q!==void 0?q:"".concat(l,"-open")},Z=ne.cloneElement(x,{className:M((n=x.props)===null||n===void 0?void 0:n.className,J&&G()),ref:Qt(x)?Yt(te,Jt(x)):void 0}),X=$;return!X&&I.indexOf("contextMenu")!==-1&&(X=["click"]),ne.createElement(ja,ge({builtinPlacements:C},b,{prefixCls:l,ref:D,popupClassName:M(v,re({},"".concat(l,"-show-arrow"),r)),popupStyle:y,action:I,showAction:E,hideAction:X,popupPlacement:u,popupAlign:d,popupTransitionName:s,popupAnimation:c,popupVisible:J,stretch:j()?"minWidth":"",popup:oe(),onPopupVisibleChange:A,onPopupClick:N,getPopupContainer:L}),Z)}const Bn=ne.forwardRef(zn);var An={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"},Hn=function(t,n){return o.createElement(La,ge({},t,{ref:n,icon:An}))},Dn=o.forwardRef(Hn);const Ue=o.createContext(null);var Gn=function(t){var n=t.activeTabOffset,a=t.horizontal,r=t.rtl,i=t.indicator,l=i===void 0?{}:i,s=l.size,c=l.align,d=c===void 0?"center":c,f=o.useState(),u=k(f,2),m=u[0],C=u[1],L=o.useRef(),E=ne.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function $(){st.cancel(L.current)}return o.useEffect(function(){var v={};if(n)if(a){v.width=E(n.width);var y=r?"right":"left";d==="start"&&(v[y]=n[y]),d==="center"&&(v[y]=n[y]+n.width/2,v.transform=r?"translateX(50%)":"translateX(-50%)"),d==="end"&&(v[y]=n[y]+n.width,v.transform="translateX(-100%)")}else v.height=E(n.height),d==="start"&&(v.top=n.top),d==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),d==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return $(),L.current=st(function(){var T=m&&v&&Object.keys(v).every(function(O){var I=v[O],R=m[O];return typeof I=="number"&&typeof R=="number"?Math.round(I)===Math.round(R):I===R});T||C(v)}),$},[JSON.stringify(n),a,r,d,E]),{style:m}},At={width:0,height:0,left:0,top:0};function Wn(e,t,n){return o.useMemo(function(){for(var a,r=new Map,i=t.get((a=e[0])===null||a===void 0?void 0:a.key)||At,l=i.left+i.width,s=0;s<e.length;s+=1){var c=e[s].key,d=t.get(c);if(!d){var f;d=t.get((f=e[s-1])===null||f===void 0?void 0:f.key)||At}var u=r.get(c)||le({},d);u.right=l-u.left-u.width,r.set(c,u)}return r},[e.map(function(a){return a.key}).join("_"),t,n])}function Ht(e,t){var n=o.useRef(e),a=o.useState({}),r=k(a,2),i=r[1];function l(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,i({})}return[n.current,l]}var kn=.1,Dt=.01,Ve=20,Gt=Math.pow(.995,Ve);function Vn(e,t){var n=o.useState(),a=k(n,2),r=a[0],i=a[1],l=o.useState(0),s=k(l,2),c=s[0],d=s[1],f=o.useState(0),u=k(f,2),m=u[0],C=u[1],L=o.useState(),E=k(L,2),$=E[0],v=E[1],y=o.useRef();function T(h){var b=h.touches[0],p=b.screenX,P=b.screenY;i({x:p,y:P}),window.clearInterval(y.current)}function O(h){if(r){var b=h.touches[0],p=b.screenX,P=b.screenY;i({x:p,y:P});var w=p-r.x,_=P-r.y;t(w,_);var J=Date.now();d(J),C(J-c),v({x:w,y:_})}}function I(){if(r&&(i(null),v(null),$)){var h=$.x/m,b=$.y/m,p=Math.abs(h),P=Math.abs(b);if(Math.max(p,P)<kn)return;var w=h,_=b;y.current=window.setInterval(function(){if(Math.abs(w)<Dt&&Math.abs(_)<Dt){window.clearInterval(y.current);return}w*=Gt,_*=Gt,t(w*Ve,_*Ve)},Ve)}}var R=o.useRef();function B(h){var b=h.deltaX,p=h.deltaY,P=0,w=Math.abs(b),_=Math.abs(p);w===_?P=R.current==="x"?b:p:w>_?(P=b,R.current="x"):(P=p,R.current="y"),t(-P,-P)&&h.preventDefault()}var x=o.useRef(null);x.current={onTouchStart:T,onTouchMove:O,onTouchEnd:I,onWheel:B},o.useEffect(function(){function h(w){x.current.onTouchStart(w)}function b(w){x.current.onTouchMove(w)}function p(w){x.current.onTouchEnd(w)}function P(w){x.current.onWheel(w)}return document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",p,{passive:!0}),e.current.addEventListener("touchstart",h,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",b),document.removeEventListener("touchend",p)}},[])}function ta(e){var t=o.useState(0),n=k(t,2),a=n[0],r=n[1],i=o.useRef(0),l=o.useRef();return l.current=e,za(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[a]),function(){i.current===a&&(i.current+=1,r(i.current))}}function Fn(e){var t=o.useRef([]),n=o.useState({}),a=k(n,2),r=a[1],i=o.useRef(typeof e=="function"?e():e),l=ta(function(){var c=i.current;t.current.forEach(function(d){c=d(c)}),t.current=[],i.current=c,r({})});function s(c){t.current.push(c),l()}return[i.current,s]}var Wt={width:0,height:0,left:0,top:0,right:0};function qn(e,t,n,a,r,i,l){var s=l.tabs,c=l.tabPosition,d=l.rtl,f,u,m;return["top","bottom"].includes(c)?(f="width",u=d?"right":"left",m=Math.abs(n)):(f="height",u="top",m=-n),o.useMemo(function(){if(!s.length)return[0,0];for(var C=s.length,L=C,E=0;E<C;E+=1){var $=e.get(s[E].key)||Wt;if(Math.floor($[u]+$[f])>Math.floor(m+t)){L=E-1;break}}for(var v=0,y=C-1;y>=0;y-=1){var T=e.get(s[y].key)||Wt;if(T[u]<m){v=y+1;break}}return v>L?[0,-1]:[v,L]},[e,t,a,r,i,m,c,s.map(function(C){return C.key}).join("_"),d])}function kt(e){var t;return e instanceof Map?(t={},e.forEach(function(n,a){t[a]=n})):t=e,JSON.stringify(t)}var Kn="TABS_DQ";function aa(e){return String(e).replace(/"/g,Kn)}function mt(e,t,n,a){return!(!n||a||e===!1||e===void 0&&(t===!1||t===null))}var na=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.editable,r=e.locale,i=e.style;return!a||a.showAdd===!1?null:o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":r?.addAriaLabel||"Add tab",onClick:function(s){a.onEdit("add",{event:s})}},a.addIcon||"+")}),Vt=o.forwardRef(function(e,t){var n=e.position,a=e.prefixCls,r=e.extra;if(!r)return null;var i,l={};return ut(r)==="object"&&!o.isValidElement(r)?l=r:l.right=r,n==="right"&&(i=l.right),n==="left"&&(i=l.left),i?o.createElement("div",{className:"".concat(a,"-extra-content"),ref:t},i):null}),Xn=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.id,r=e.tabs,i=e.locale,l=e.mobile,s=e.more,c=s===void 0?{}:s,d=e.style,f=e.className,u=e.editable,m=e.tabBarGutter,C=e.rtl,L=e.removeAriaLabel,E=e.onTabClick,$=e.getPopupContainer,v=e.popupClassName,y=o.useState(!1),T=k(y,2),O=T[0],I=T[1],R=o.useState(null),B=k(R,2),x=B[0],h=B[1],b=c.icon,p=b===void 0?"More":b,P="".concat(a,"-more-popup"),w="".concat(n,"-dropdown"),_=x!==null?"".concat(P,"-").concat(x):null,J=i?.dropdownAriaLabel;function D(j,G){j.preventDefault(),j.stopPropagation(),u.onEdit("remove",{key:G,event:j})}var V=o.createElement(Ba,{onClick:function(G){var Z=G.key,X=G.domEvent;E(Z,X),I(!1)},prefixCls:"".concat(w,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[x],"aria-label":J!==void 0?J:"expanded dropdown"},r.map(function(j){var G=j.closable,Z=j.disabled,X=j.closeIcon,F=j.key,q=j.label,Q=mt(G,X,u,Z);return o.createElement(Aa,{key:F,id:"".concat(P,"-").concat(F),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(F),disabled:Z},o.createElement("span",null,q),Q&&o.createElement("button",{type:"button","aria-label":L||"remove",tabIndex:0,className:"".concat(w,"-menu-item-remove"),onClick:function(se){se.stopPropagation(),D(se,F)}},X||u.removeIcon||"×"))}));function te(j){for(var G=r.filter(function(Q){return!Q.disabled}),Z=G.findIndex(function(Q){return Q.key===x})||0,X=G.length,F=0;F<X;F+=1){Z=(Z+j+X)%X;var q=G[Z];if(!q.disabled){h(q.key);return}}}function A(j){var G=j.which;if(!O){[ve.DOWN,ve.SPACE,ve.ENTER].includes(G)&&(I(!0),j.preventDefault());return}switch(G){case ve.UP:te(-1),j.preventDefault();break;case ve.DOWN:te(1),j.preventDefault();break;case ve.ESC:I(!1);break;case ve.SPACE:case ve.ENTER:x!==null&&E(x,j);break}}o.useEffect(function(){var j=document.getElementById(_);j&&j.scrollIntoView&&j.scrollIntoView(!1)},[x]),o.useEffect(function(){O||h(null)},[O]);var N=re({},C?"marginRight":"marginLeft",m);r.length||(N.visibility="hidden",N.order=1);var ae=M(re({},"".concat(w,"-rtl"),C)),oe=l?null:o.createElement(Bn,ge({prefixCls:w,overlay:V,visible:r.length?O:!1,onVisibleChange:I,overlayClassName:M(ae,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:$},c),o.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:N,"aria-haspopup":"listbox","aria-controls":P,id:"".concat(a,"-more"),"aria-expanded":O,onKeyDown:A},p));return o.createElement("div",{className:M("".concat(n,"-nav-operations"),f),style:d,ref:t},oe,o.createElement(na,{prefixCls:n,locale:i,editable:u}))});const Un=o.memo(Xn,function(e,t){return t.tabMoving});var Yn=function(t){var n=t.prefixCls,a=t.id,r=t.active,i=t.focus,l=t.tab,s=l.key,c=l.label,d=l.disabled,f=l.closeIcon,u=l.icon,m=t.closable,C=t.renderWrapper,L=t.removeAriaLabel,E=t.editable,$=t.onClick,v=t.onFocus,y=t.onBlur,T=t.onKeyDown,O=t.onMouseDown,I=t.onMouseUp,R=t.style,B=t.tabCount,x=t.currentPosition,h="".concat(n,"-tab"),b=mt(m,f,E,d);function p(D){d||$(D)}function P(D){D.preventDefault(),D.stopPropagation(),E.onEdit("remove",{key:s,event:D})}var w=o.useMemo(function(){return u&&typeof c=="string"?o.createElement("span",null,c):c},[c,u]),_=o.useRef(null);o.useEffect(function(){i&&_.current&&_.current.focus()},[i]);var J=o.createElement("div",{key:s,"data-node-key":aa(s),className:M(h,re(re(re(re({},"".concat(h,"-with-remove"),b),"".concat(h,"-active"),r),"".concat(h,"-disabled"),d),"".concat(h,"-focus"),i)),style:R,onClick:p},o.createElement("div",{ref:_,role:"tab","aria-selected":r,id:a&&"".concat(a,"-tab-").concat(s),className:"".concat(h,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(s),"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:function(V){V.stopPropagation(),p(V)},onKeyDown:T,onMouseDown:O,onMouseUp:I,onFocus:v,onBlur:y},i&&o.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(x," of ").concat(B)),u&&o.createElement("span",{className:"".concat(h,"-icon")},u),c&&w),b&&o.createElement("button",{type:"button",role:"tab","aria-label":L||"remove",tabIndex:r?0:-1,className:"".concat(h,"-remove"),onClick:function(V){V.stopPropagation(),P(V)}},f||E.removeIcon||"×"));return C?C(J):J},Jn=function(t,n){var a=t.offsetWidth,r=t.offsetHeight,i=t.offsetTop,l=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,d=s.height,f=s.left,u=s.top;return Math.abs(c-a)<1?[c,d,f-n.left,u-n.top]:[a,r,l,i]},Pe=function(t){var n=t.current||{},a=n.offsetWidth,r=a===void 0?0:a,i=n.offsetHeight,l=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,d=s.height;if(Math.abs(c-r)<1)return[c,d]}return[r,l]},ke=function(t,n){return t[n?0:1]},Ft=o.forwardRef(function(e,t){var n=e.className,a=e.style,r=e.id,i=e.animated,l=e.activeKey,s=e.rtl,c=e.extra,d=e.editable,f=e.locale,u=e.tabPosition,m=e.tabBarGutter,C=e.children,L=e.onTabClick,E=e.onTabScroll,$=e.indicator,v=o.useContext(Ue),y=v.prefixCls,T=v.tabs,O=o.useRef(null),I=o.useRef(null),R=o.useRef(null),B=o.useRef(null),x=o.useRef(null),h=o.useRef(null),b=o.useRef(null),p=u==="top"||u==="bottom",P=Ht(0,function(H,S){p&&E&&E({direction:H>S?"left":"right"})}),w=k(P,2),_=w[0],J=w[1],D=Ht(0,function(H,S){!p&&E&&E({direction:H>S?"top":"bottom"})}),V=k(D,2),te=V[0],A=V[1],N=o.useState([0,0]),ae=k(N,2),oe=ae[0],j=ae[1],G=o.useState([0,0]),Z=k(G,2),X=Z[0],F=Z[1],q=o.useState([0,0]),Q=k(q,2),he=Q[0],se=Q[1],pe=o.useState([0,0]),$e=k(pe,2),W=$e[0],ce=$e[1],ue=Fn(new Map),Ce=k(ue,2),Ne=Ce[0],Ye=Ce[1],ee=Wn(T,Ne,X[0]),U=ke(oe,p),me=ke(X,p),je=ke(he,p),bt=ke(W,p),ht=Math.floor(U)<Math.floor(me+je),fe=ht?U-bt:U-je,ca="".concat(y,"-nav-operations-hidden"),ye=0,Se=0;p&&s?(ye=0,Se=Math.max(0,me-fe)):(ye=Math.min(0,fe-me),Se=0);function Je(H){return H<ye?ye:H>Se?Se:H}var Qe=o.useRef(null),da=o.useState(),pt=k(da,2),He=pt[0],$t=pt[1];function Ze(){$t(Date.now())}function et(){Qe.current&&clearTimeout(Qe.current)}Vn(B,function(H,S){function z(K,Y){K(function(ie){var Oe=Je(ie+Y);return Oe})}return ht?(p?z(J,H):z(A,S),et(),Ze(),!0):!1}),o.useEffect(function(){return et(),He&&(Qe.current=setTimeout(function(){$t(0)},100)),et},[He]);var ua=qn(ee,fe,p?_:te,me,je,bt,le(le({},e),{},{tabs:T})),yt=k(ua,2),fa=yt[0],va=yt[1],St=Ha(function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,S=ee.get(H)||{width:0,height:0,left:0,right:0,top:0};if(p){var z=_;s?S.right<_?z=S.right:S.right+S.width>_+fe&&(z=S.right+S.width-fe):S.left<-_?z=-S.left:S.left+S.width>-_+fe&&(z=-(S.left+S.width-fe)),A(0),J(Je(z))}else{var K=te;S.top<-te?K=-S.top:S.top+S.height>-te+fe&&(K=-(S.top+S.height-fe)),J(0),A(Je(K))}}),ga=o.useState(),Ct=k(ga,2),xe=Ct[0],Le=Ct[1],ma=o.useState(!1),xt=k(ma,2),ba=xt[0],wt=xt[1],be=T.filter(function(H){return!H.disabled}).map(function(H){return H.key}),we=function(S){var z=be.indexOf(xe||l),K=be.length,Y=(z+S+K)%K,ie=be[Y];Le(ie)},Ot=function(S,z){var K=be.indexOf(S),Y=T.find(function(Oe){return Oe.key===S}),ie=mt(Y?.closable,Y?.closeIcon,d,Y?.disabled);ie&&(z.preventDefault(),z.stopPropagation(),d.onEdit("remove",{key:S,event:z}),K===be.length-1?we(-1):we(1))},ha=function(S,z){wt(!0),z.button===1&&Ot(S,z)},pa=function(S){var z=S.code,K=s&&p,Y=be[0],ie=be[be.length-1];switch(z){case"ArrowLeft":{p&&we(K?1:-1);break}case"ArrowRight":{p&&we(K?-1:1);break}case"ArrowUp":{S.preventDefault(),p||we(-1);break}case"ArrowDown":{S.preventDefault(),p||we(1);break}case"Home":{S.preventDefault(),Le(Y);break}case"End":{S.preventDefault(),Le(ie);break}case"Enter":case"Space":{S.preventDefault(),L(xe??l,S);break}case"Backspace":case"Delete":{Ot(xe,S);break}}},De={};p?De[s?"marginRight":"marginLeft"]=m:De.marginTop=m;var Et=T.map(function(H,S){var z=H.key;return o.createElement(Yn,{id:r,prefixCls:y,key:z,tab:H,style:S===0?void 0:De,closable:H.closable,editable:d,active:z===l,focus:z===xe,renderWrapper:C,removeAriaLabel:f?.removeAriaLabel,tabCount:be.length,currentPosition:S+1,onClick:function(Y){L(z,Y)},onKeyDown:pa,onFocus:function(){ba||Le(z),St(z),Ze(),B.current&&(s||(B.current.scrollLeft=0),B.current.scrollTop=0)},onBlur:function(){Le(void 0)},onMouseDown:function(Y){return ha(z,Y)},onMouseUp:function(){wt(!1)}})}),_t=function(){return Ye(function(){var S,z=new Map,K=(S=x.current)===null||S===void 0?void 0:S.getBoundingClientRect();return T.forEach(function(Y){var ie,Oe=Y.key,Nt=(ie=x.current)===null||ie===void 0?void 0:ie.querySelector('[data-node-key="'.concat(aa(Oe),'"]'));if(Nt){var xa=Jn(Nt,K),We=k(xa,4),wa=We[0],Oa=We[1],Ea=We[2],_a=We[3];z.set(Oe,{width:wa,height:Oa,left:Ea,top:_a})}}),z})};o.useEffect(function(){_t()},[T.map(function(H){return H.key}).join("_")]);var Ge=ta(function(){var H=Pe(O),S=Pe(I),z=Pe(R);j([H[0]-S[0]-z[0],H[1]-S[1]-z[1]]);var K=Pe(b);se(K);var Y=Pe(h);ce(Y);var ie=Pe(x);F([ie[0]-K[0],ie[1]-K[1]]),_t()}),$a=T.slice(0,fa),ya=T.slice(va+1),Pt=[].concat(jt($a),jt(ya)),Rt=ee.get(l),Sa=Gn({activeTabOffset:Rt,horizontal:p,indicator:$,rtl:s}),Ca=Sa.style;o.useEffect(function(){St()},[l,ye,Se,kt(Rt),kt(ee),p]),o.useEffect(function(){Ge()},[s]);var Mt=!!Pt.length,ze="".concat(y,"-nav-wrap"),tt,at,Tt,It;return p?s?(at=_>0,tt=_!==Se):(tt=_<0,at=_!==ye):(Tt=te<0,It=te!==ye),o.createElement(nt,{onResize:Ge},o.createElement("div",{ref:Da(t,O),role:"tablist","aria-orientation":p?"horizontal":"vertical",className:M("".concat(y,"-nav"),n),style:a,onKeyDown:function(){Ze()}},o.createElement(Vt,{ref:I,position:"left",extra:c,prefixCls:y}),o.createElement(nt,{onResize:Ge},o.createElement("div",{className:M(ze,re(re(re(re({},"".concat(ze,"-ping-left"),tt),"".concat(ze,"-ping-right"),at),"".concat(ze,"-ping-top"),Tt),"".concat(ze,"-ping-bottom"),It)),ref:B},o.createElement(nt,{onResize:Ge},o.createElement("div",{ref:x,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(te,"px)"),transition:He?"none":void 0}},Et,o.createElement(na,{ref:b,prefixCls:y,locale:f,editable:d,style:le(le({},Et.length===0?void 0:De),{},{visibility:Mt?"hidden":null})}),o.createElement("div",{className:M("".concat(y,"-ink-bar"),re({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:Ca}))))),o.createElement(Un,ge({},e,{removeAriaLabel:f?.removeAriaLabel,ref:h,prefixCls:y,tabs:Pt,className:!Mt&&ca,tabMoving:!!He})),o.createElement(Vt,{ref:R,position:"right",extra:c,prefixCls:y})))}),ra=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.className,r=e.style,i=e.id,l=e.active,s=e.tabKey,c=e.children;return o.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:r,className:M(n,l&&"".concat(n,"-active"),a),ref:t},c)}),Qn=["renderTabBar"],Zn=["label","key"],er=function(t){var n=t.renderTabBar,a=Be(t,Qn),r=o.useContext(Ue),i=r.tabs;if(n){var l=le(le({},a),{},{panes:i.map(function(s){var c=s.label,d=s.key,f=Be(s,Zn);return o.createElement(ra,ge({tab:c,key:d,tabKey:d},f))})});return n(l,Ft)}return o.createElement(Ft,a)},tr=["key","forceRender","style","className","destroyInactiveTabPane"],ar=function(t){var n=t.id,a=t.activeKey,r=t.animated,i=t.tabPosition,l=t.destroyInactiveTabPane,s=o.useContext(Ue),c=s.prefixCls,d=s.tabs,f=r.tabPane,u="".concat(c,"-tabpane");return o.createElement("div",{className:M("".concat(c,"-content-holder"))},o.createElement("div",{className:M("".concat(c,"-content"),"".concat(c,"-content-").concat(i),re({},"".concat(c,"-content-animated"),f))},d.map(function(m){var C=m.key,L=m.forceRender,E=m.style,$=m.className,v=m.destroyInactiveTabPane,y=Be(m,tr),T=C===a;return o.createElement(Ga,ge({key:C,visible:T,forceRender:L,removeOnLeave:!!(l||v),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(O,I){var R=O.style,B=O.className;return o.createElement(ra,ge({},y,{prefixCls:u,id:n,tabKey:C,animated:f,active:T,style:le(le({},E),R),className:M($,B),ref:I}))})})))};function nr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=le({inkBar:!0},ut(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var rr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],qt=0,ir=o.forwardRef(function(e,t){var n=e.id,a=e.prefixCls,r=a===void 0?"rc-tabs":a,i=e.className,l=e.items,s=e.direction,c=e.activeKey,d=e.defaultActiveKey,f=e.editable,u=e.animated,m=e.tabPosition,C=m===void 0?"top":m,L=e.tabBarGutter,E=e.tabBarStyle,$=e.tabBarExtraContent,v=e.locale,y=e.more,T=e.destroyInactiveTabPane,O=e.renderTabBar,I=e.onChange,R=e.onTabClick,B=e.onTabScroll,x=e.getPopupContainer,h=e.popupClassName,b=e.indicator,p=Be(e,rr),P=o.useMemo(function(){return(l||[]).filter(function(W){return W&&ut(W)==="object"&&"key"in W})},[l]),w=s==="rtl",_=nr(u),J=o.useState(!1),D=k(J,2),V=D[0],te=D[1];o.useEffect(function(){te(Wa())},[]);var A=Lt(function(){var W;return(W=P[0])===null||W===void 0?void 0:W.key},{value:c,defaultValue:d}),N=k(A,2),ae=N[0],oe=N[1],j=o.useState(function(){return P.findIndex(function(W){return W.key===ae})}),G=k(j,2),Z=G[0],X=G[1];o.useEffect(function(){var W=P.findIndex(function(ue){return ue.key===ae});if(W===-1){var ce;W=Math.max(0,Math.min(Z,P.length-1)),oe((ce=P[W])===null||ce===void 0?void 0:ce.key)}X(W)},[P.map(function(W){return W.key}).join("_"),ae,Z]);var F=Lt(null,{value:n}),q=k(F,2),Q=q[0],he=q[1];o.useEffect(function(){n||(he("rc-tabs-".concat(qt)),qt+=1)},[]);function se(W,ce){R?.(W,ce);var ue=W!==ae;oe(W),ue&&I?.(W)}var pe={id:Q,activeKey:ae,animated:_,tabPosition:C,rtl:w,mobile:V},$e=le(le({},pe),{},{editable:f,locale:v,more:y,tabBarGutter:L,onTabClick:se,onTabScroll:B,extra:$,style:E,panes:null,getPopupContainer:x,popupClassName:h,indicator:b});return o.createElement(Ue.Provider,{value:{tabs:P,prefixCls:r}},o.createElement("div",ge({ref:t,id:n,className:M(r,"".concat(r,"-").concat(C),re(re(re({},"".concat(r,"-mobile"),V),"".concat(r,"-editable"),f),"".concat(r,"-rtl"),w),i)},p),o.createElement(er,ge({},$e,{renderTabBar:O})),o.createElement(ar,ge({destroyInactiveTabPane:T},pe,{animated:_}))))});const or={motionAppear:!1,motionEnter:!0,motionLeave:!0};function lr(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},or),{motionName:ka(e,"switch")})),n}var sr=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};function cr(e){return e.filter(t=>t)}function dr(e,t){if(e)return e.map(a=>{var r;const i=(r=a.destroyOnHidden)!==null&&r!==void 0?r:a.destroyInactiveTabPane;return Object.assign(Object.assign({},a),{destroyInactiveTabPane:i})});const n=Va(t).map(a=>{if(o.isValidElement(a)){const{key:r,props:i}=a,l=i||{},{tab:s}=l,c=sr(l,["tab"]);return Object.assign(Object.assign({key:String(r)},c),{label:s})}return null});return cr(n)}const ur=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[zt(e,"slide-up"),zt(e,"slide-down")]]},fr=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${g(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Zt(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:g(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:g(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${g(e.borderRadiusLG)} 0 0 ${g(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},vr=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ft(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${g(a)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},vt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${g(e.paddingXXS)} ${g(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},gr=e=>{const{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${g(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
9
+ right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
10
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:g(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${g(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${g(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},mr=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,cardHeightSM:r,cardHeightLG:i,horizontalItemPaddingSM:l,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${g(e.borderRadius)} ${g(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${g(e.borderRadius)} ${g(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${g(e.borderRadius)} ${g(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${g(e.borderRadius)} 0 0 ${g(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},br=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:l,itemSelectedColor:s,itemColor:c}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},ct(e)),"&:hover":{color:a},[`&${d}-active ${d}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible`]:Zt(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${r}`]:{margin:0,verticalAlign:"middle"},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:i}}}},hr=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:g(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:g(e.marginXS)},marginLeft:{_skip_check_:!0,value:g(i(e.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},pr=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:r,itemHoverColor:i,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ft(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${g(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:l}},ct(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),br(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},ct(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},$r=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:a,controlHeight:r,controlHeightLG:i}=e,l=t||i,s=n||r,c=a||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:l,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},yr=Ae("Tabs",e=>{const t=Fe(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${g(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${g(e.horizontalItemGutter)}`});return[mr(t),hr(t),gr(t),vr(t),fr(t),pr(t),ur(t)]},$r),Sr=()=>null;var Cr=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};const xr=o.forwardRef((e,t)=>{var n,a,r,i,l,s,c,d,f,u,m;const{type:C,className:L,rootClassName:E,size:$,onEdit:v,hideAdd:y,centered:T,addIcon:O,removeIcon:I,moreIcon:R,more:B,popupClassName:x,children:h,items:b,animated:p,style:P,indicatorSize:w,indicator:_,destroyInactiveTabPane:J,destroyOnHidden:D}=e,V=Cr(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:te}=V,{direction:A,tabs:N,getPrefixCls:ae,getPopupContainer:oe}=o.useContext(de),j=ae("tabs",te),G=Fa(j),[Z,X,F]=yr(j,G),q=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:q.current}));let Q;C==="editable-card"&&(Q={onEdit:(ue,{key:Ce,event:Ne})=>{v?.(ue==="add"?Ne:Ce,ue)},removeIcon:(n=I??N?.removeIcon)!==null&&n!==void 0?n:o.createElement(qa,null),addIcon:(O??N?.addIcon)||o.createElement(Dn,null),showAdd:y!==!0});const he=ae(),se=ea($),pe=dr(b,h),$e=lr(j,p),W=Object.assign(Object.assign({},N?.style),P),ce={align:(a=_?.align)!==null&&a!==void 0?a:(r=N?.indicator)===null||r===void 0?void 0:r.align,size:(c=(l=(i=_?.size)!==null&&i!==void 0?i:w)!==null&&l!==void 0?l:(s=N?.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:N?.indicatorSize};return Z(o.createElement(ir,Object.assign({ref:q,direction:A,getPopupContainer:oe},V,{items:pe,className:M({[`${j}-${se}`]:se,[`${j}-card`]:["card","editable-card"].includes(C),[`${j}-editable-card`]:C==="editable-card",[`${j}-centered`]:T},N?.className,L,E,X,F,G),popupClassName:M(x,X,F,G),style:W,editable:Q,more:Object.assign({icon:(m=(u=(f=(d=N?.more)===null||d===void 0?void 0:d.icon)!==null&&f!==void 0?f:N?.moreIcon)!==null&&u!==void 0?u:R)!==null&&m!==void 0?m:o.createElement(Ka,null),transitionName:`${he}-slide-up`},B),prefixCls:j,animated:$e,indicator:ce,destroyInactiveTabPane:D??J})))}),ia=xr;ia.TabPane=Sr;var wr=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};const oa=e=>{var{prefixCls:t,className:n,hoverable:a=!0}=e,r=wr(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=o.useContext(de),l=i("card",t),s=M(`${l}-grid`,n,{[`${l}-grid-hoverable`]:a});return o.createElement("div",Object.assign({},r,{className:s}))},Or=e=>{const{antCls:t,componentCls:n,headerHeight:a,headerPadding:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${g(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${g(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)} 0 0`},gt()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},vt),{[`
11
+ > ${n}-typography,
12
+ > ${n}-typography-edit-content
13
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${g(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Er=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
14
+ ${g(r)} 0 0 0 ${n},
15
+ 0 ${g(r)} 0 0 ${n},
16
+ ${g(r)} ${g(r)} 0 0 ${n},
17
+ ${g(r)} 0 0 0 ${n} inset,
18
+ 0 ${g(r)} 0 0 ${n} inset;
19
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},_r=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${g(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)}`},gt()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:g(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:g(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${g(e.lineWidth)} ${e.lineType} ${i}`}}})},Pr=e=>Object.assign(Object.assign({margin:`${g(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},gt()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},vt),"&-description":{color:e.colorTextDescription}}),Rr=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:a,bodyPadding:r}=e;return{[`${t}-head`]:{padding:`0 ${g(a)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${g(e.padding)} ${g(r)}`}}},Mr=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Tr=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:r,boxShadowTertiary:i,bodyPadding:l,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ft(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:Or(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,borderRadius:`0 0 ${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)}`},[`${t}-grid`]:Er(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:_r(e),[`${t}-meta`]:Pr(e)}),[`${t}-bordered`]:{border:`${g(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${g(e.borderRadiusLG)} ${g(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:Rr(e),[`${t}-loading`]:Mr(e),[`${t}-rtl`]:{direction:"rtl"}}},Ir=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:a,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${g(a)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Nr=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},jr=Ae("Card",e=>{const t=Fe(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Tr(t),Ir(t)]},Nr);var Kt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};const Lr=e=>{const{actionClasses:t,actions:n=[],actionStyle:a}=e;return o.createElement("ul",{className:t,style:a},n.map((r,i)=>{const l=`action-${i}`;return o.createElement("li",{style:{width:`${100/n.length}%`},key:l},o.createElement("span",null,r))}))},zr=o.forwardRef((e,t)=>{const{prefixCls:n,className:a,rootClassName:r,style:i,extra:l,headStyle:s={},bodyStyle:c={},title:d,loading:f,bordered:u,variant:m,size:C,type:L,cover:E,actions:$,tabList:v,children:y,activeTabKey:T,defaultActiveTabKey:O,tabBarExtraContent:I,hoverable:R,tabProps:B={},classNames:x,styles:h}=e,b=Kt(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:p,direction:P,card:w}=o.useContext(de),[_]=Xa("card",m,u),J=ee=>{var U;(U=e.onTabChange)===null||U===void 0||U.call(e,ee)},D=ee=>{var U;return M((U=w?.classNames)===null||U===void 0?void 0:U[ee],x?.[ee])},V=ee=>{var U;return Object.assign(Object.assign({},(U=w?.styles)===null||U===void 0?void 0:U[ee]),h?.[ee])},te=o.useMemo(()=>{let ee=!1;return o.Children.forEach(y,U=>{U?.type===oa&&(ee=!0)}),ee},[y]),A=p("card",n),[N,ae,oe]=jr(A),j=o.createElement(Ie,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),G=T!==void 0,Z=Object.assign(Object.assign({},B),{[G?"activeKey":"defaultActiveKey"]:G?T:O,tabBarExtraContent:I});let X;const F=ea(C),q=!F||F==="default"?"large":F,Q=v?o.createElement(ia,Object.assign({size:q},Z,{className:`${A}-head-tabs`,onChange:J,items:v.map(ee=>{var{tab:U}=ee,me=Kt(ee,["tab"]);return Object.assign({label:U},me)})})):null;if(d||l||Q){const ee=M(`${A}-head`,D("header")),U=M(`${A}-head-title`,D("title")),me=M(`${A}-extra`,D("extra")),je=Object.assign(Object.assign({},s),V("header"));X=o.createElement("div",{className:ee,style:je},o.createElement("div",{className:`${A}-head-wrapper`},d&&o.createElement("div",{className:U,style:V("title")},d),l&&o.createElement("div",{className:me,style:V("extra")},l)),Q)}const he=M(`${A}-cover`,D("cover")),se=E?o.createElement("div",{className:he,style:V("cover")},E):null,pe=M(`${A}-body`,D("body")),$e=Object.assign(Object.assign({},c),V("body")),W=o.createElement("div",{className:pe,style:$e},f?j:y),ce=M(`${A}-actions`,D("actions")),ue=$?.length?o.createElement(Lr,{actionClasses:ce,actionStyle:V("actions"),actions:$}):null,Ce=qe(b,["onTabChange"]),Ne=M(A,w?.className,{[`${A}-loading`]:f,[`${A}-bordered`]:_!=="borderless",[`${A}-hoverable`]:R,[`${A}-contain-grid`]:te,[`${A}-contain-tabs`]:v?.length,[`${A}-${F}`]:F,[`${A}-type-${L}`]:!!L,[`${A}-rtl`]:P==="rtl"},a,r,ae,oe),Ye=Object.assign(Object.assign({},w?.style),i);return N(o.createElement("div",Object.assign({ref:t},Ce,{className:Ne,style:Ye}),X,se,W,ue))});var Br=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};const Ar=e=>{const{prefixCls:t,className:n,avatar:a,title:r,description:i}=e,l=Br(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=o.useContext(de),c=s("card",t),d=M(`${c}-meta`,n),f=a?o.createElement("div",{className:`${c}-meta-avatar`},a):null,u=r?o.createElement("div",{className:`${c}-meta-title`},r):null,m=i?o.createElement("div",{className:`${c}-meta-description`},i):null,C=u||m?o.createElement("div",{className:`${c}-meta-detail`},u,m):null;return o.createElement("div",Object.assign({},l,{className:d}),f,C)},la=zr;la.Grid=oa;la.Meta=Ar;const sa=o.createContext({});var Hr=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};function Xt(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Dr=["xs","sm","md","lg","xl","xxl"],Fr=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:a}=o.useContext(de),{gutter:r,wrap:i}=o.useContext(sa),{prefixCls:l,span:s,order:c,offset:d,push:f,pull:u,className:m,children:C,flex:L,style:E}=e,$=Hr(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",l),[y,T,O]=On(v),I={};let R={};Dr.forEach(h=>{let b={};const p=e[h];typeof p=="number"?b.span=p:typeof p=="object"&&(b=p||{}),delete $[h],R=Object.assign(Object.assign({},R),{[`${v}-${h}-${b.span}`]:b.span!==void 0,[`${v}-${h}-order-${b.order}`]:b.order||b.order===0,[`${v}-${h}-offset-${b.offset}`]:b.offset||b.offset===0,[`${v}-${h}-push-${b.push}`]:b.push||b.push===0,[`${v}-${h}-pull-${b.pull}`]:b.pull||b.pull===0,[`${v}-rtl`]:a==="rtl"}),b.flex&&(R[`${v}-${h}-flex`]=!0,I[`--${v}-${h}-flex`]=Xt(b.flex))});const B=M(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${c}`]:c,[`${v}-offset-${d}`]:d,[`${v}-push-${f}`]:f,[`${v}-pull-${u}`]:u},m,R,T,O),x={};if(r?.[0]){const h=typeof r[0]=="number"?`${r[0]/2}px`:`calc(${r[0]} / 2)`;x.paddingLeft=h,x.paddingRight=h}return L&&(x.flex=Xt(L),i===!1&&!x.minWidth&&(x.minWidth=0)),y(o.createElement("div",Object.assign({},$,{style:Object.assign(Object.assign(Object.assign({},x),E),I),className:B,ref:t}),C))});function Gr(e,t){const n=[void 0,void 0],a=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return a.forEach((i,l)=>{if(typeof i=="object"&&i!==null)for(let s=0;s<Me.length;s++){const c=Me[s];if(r[c]&&i[c]!==void 0){n[l]=i[c];break}}else n[l]=i}),n}var Wr=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};function Ut(e,t){const[n,a]=o.useState(typeof e=="string"?e:""),r=()=>{if(typeof e=="string"&&a(e),typeof e=="object")for(let i=0;i<Me.length;i++){const l=Me[i];if(!t||!t[l])continue;const s=e[l];if(s!==void 0){a(s);return}}};return o.useEffect(()=>{r()},[JSON.stringify(e),t]),n}const qr=o.forwardRef((e,t)=>{const{prefixCls:n,justify:a,align:r,className:i,style:l,children:s,gutter:c=0,wrap:d}=e,f=Wr(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:u,direction:m}=o.useContext(de),C=Rn(!0,null),L=Ut(r,C),E=Ut(a,C),$=u("row",n),[v,y,T]=xn($),O=Gr(c,C),I=M($,{[`${$}-no-wrap`]:d===!1,[`${$}-${E}`]:E,[`${$}-${L}`]:L,[`${$}-rtl`]:m==="rtl"},i,y,T),R={};if(O?.[0]){const b=typeof O[0]=="number"?`${O[0]/-2}px`:`calc(${O[0]} / -2)`;R.marginLeft=b,R.marginRight=b}const[B,x]=O;R.rowGap=x;const h=o.useMemo(()=>({gutter:[B,x],wrap:d}),[B,x,d]);return v(o.createElement(sa.Provider,{value:h},o.createElement("div",Object.assign({},f,{className:I,style:Object.assign(Object.assign({},R),l),ref:t}),s)))});export{Fr as C,Bn as D,qr as R,Ie as S,ia as T,la as a,Dn as b,Ua as c,wn as g,Vr as m,Me as r,Rn as u};
20
+ //# sourceMappingURL=row-_c51T55h.js.map
@@ -0,0 +1,2 @@
1
+ const y=Object.create(null);y.open="0";y.close="1";y.ping="2";y.pong="3";y.message="4";y.upgrade="5";y.noop="6";const O=Object.create(null);Object.keys(y).forEach(n=>{O[y[n]]=n});const V={type:"error",data:"parser error"},ne=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ie=typeof ArrayBuffer=="function",re=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,$=({type:n,data:e},t,s)=>ne&&e instanceof Blob?t?s(e):j(e,s):ie&&(e instanceof ArrayBuffer||re(e))?t?s(e):j(new Blob([e]),s):s(y[n]+(e||"")),j=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function G(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let P;function _e(n,e){if(ne&&n.data instanceof Blob)return n.data.arrayBuffer().then(G).then(e);if(ie&&(n.data instanceof ArrayBuffer||re(n.data)))return e(G(n.data));$(n,!1,t=>{P||(P=new TextEncoder),e(P.encode(t))})}const Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Z.length;n++)T[Z.charCodeAt(n)]=n;const be=n=>{let e=n.length*.75,t=n.length,s,i=0,r,o,c,h;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const g=new ArrayBuffer(e),f=new Uint8Array(g);for(s=0;s<t;s+=4)r=T[n.charCodeAt(s)],o=T[n.charCodeAt(s+1)],c=T[n.charCodeAt(s+2)],h=T[n.charCodeAt(s+3)],f[i++]=r<<2|o>>4,f[i++]=(o&15)<<4|c>>2,f[i++]=(c&3)<<6|h&63;return g},we=typeof ArrayBuffer=="function",Y=(n,e)=>{if(typeof n!="string")return{type:"message",data:oe(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:ve(n.substring(1),e)}:O[t]?n.length>1?{type:O[t],data:n.substring(1)}:{type:O[t]}:V},ve=(n,e)=>{if(we){const t=be(n);return oe(t,e)}else return{base64:!0,data:n}},oe=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},ae="",Ee=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((r,o)=>{$(r,!1,c=>{s[o]=c,++i===t&&e(s.join(ae))})})},ke=(n,e)=>{const t=n.split(ae),s=[];for(let i=0;i<t.length;i++){const r=Y(t[i],e);if(s.push(r),r.type==="error")break}return s};function Te(){return new TransformStream({transform(n,e){_e(n,t=>{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let q;function A(n){return n.reduce((e,t)=>e+t.length,0)}function R(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;i<e;i++)t[i]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),t}function Ae(n,e){q||(q=new TextDecoder);const t=[];let s=0,i=-1,r=!1;return new TransformStream({transform(o,c){for(t.push(o);;){if(s===0){if(A(t)<1)break;const h=R(t,1);r=(h[0]&128)===128,i=h[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(A(t)<2)break;const h=R(t,2);i=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),s=3}else if(s===2){if(A(t)<8)break;const h=R(t,8),g=new DataView(h.buffer,h.byteOffset,h.length),f=g.getUint32(0);if(f>Math.pow(2,21)-1){c.enqueue(V);break}i=f*Math.pow(2,32)+g.getUint32(4),s=3}else{if(A(t)<i)break;const h=R(t,i);c.enqueue(Y(r?h:q.decode(h),e)),s=0}if(i===0||i>n){c.enqueue(V);break}}}})}const ce=4;function u(n){if(n)return Re(n)}function Re(n){for(var e in u.prototype)n[e]=u.prototype[e];return n}u.prototype.on=u.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};u.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};u.prototype.off=u.prototype.removeListener=u.prototype.removeAllListeners=u.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+n],this};u.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e)}return this};u.prototype.emitReserved=u.prototype.emit;u.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};u.prototype.hasListeners=function(n){return!!this.listeners(n).length};const x=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),l=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Oe="arraybuffer";function he(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Se=l.setTimeout,Ce=l.clearTimeout;function L(n,e){e.useNativeTimers?(n.setTimeoutFn=Se.bind(l),n.clearTimeoutFn=Ce.bind(l)):(n.setTimeoutFn=l.setTimeout.bind(l),n.clearTimeoutFn=l.clearTimeout.bind(l))}const Be=1.33;function Ne(n){return typeof n=="string"?xe(n):Math.ceil((n.byteLength||n.size)*Be)}function xe(n){let e=0,t=0;for(let s=0,i=n.length;s<i;s++)e=n.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function ue(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Le(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Pe(n){let e={},t=n.split("&");for(let s=0,i=t.length;s<i;s++){let r=t[s].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}class qe extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class z extends u{constructor(e){super(),this.writable=!1,L(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new qe(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Y(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Le(e);return t.length?"?"+t:""}}class fe extends z{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};ke(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Ee(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=ue()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let le=!1;try{le=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const De=le;function Ie(){}class Ve extends fe{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class d extends u{constructor(e,t,s){super(),this.createRequest=e,L(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=he(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=d.requestsCount++,d.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Ie,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete d.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}d.requestsCount=0;d.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ee);else if(typeof addEventListener=="function"){const n="onpagehide"in l?"pagehide":"unload";addEventListener(n,ee,!1)}}function ee(){for(let n in d.requests)d.requests.hasOwnProperty(n)&&d.requests[n].abort()}const Ue=(function(){const n=pe({xdomain:!1});return n&&n.responseType!==null})();class U extends Ve{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Ue&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new d(pe,this.uri(),e)}}function pe(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||De))return new XMLHttpRequest}catch{}if(!e)try{return new l[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const de=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Fe extends z{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=de?{}:he(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;$(s,this.supportsBinary,r=>{try{this.doWrite(s,r)}catch{}i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ue()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const D=l.WebSocket||l.MozWebSocket;class F extends Fe{createSocket(e,t,s){return de?new D(e,t,s):t?new D(e,t):new D(e)}doWrite(e,t){this.ws.send(t)}}class ye extends z{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=Ae(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=Te();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const r=()=>{s.read().then(({done:c,value:h})=>{c||(this.onPacket(h),r())}).catch(c=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Me={websocket:F,webtransport:ye,polling:U},He=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,We=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function M(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=He.exec(n||""),r={},o=14;for(;o--;)r[We[o]]=i[o]||"";return t!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=Ke(r,r.path),r.queryKey=$e(r,r.query),r}function Ke(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function $e(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(t[i]=r)}),t}const H=typeof addEventListener=="function"&&typeof removeEventListener=="function",S=[];H&&addEventListener("offline",()=>{S.forEach(n=>n())},!1);class _ extends u{constructor(e,t){if(super(),this.binaryType=Oe,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=M(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=M(t.host).host);L(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Pe(this.opts.query)),H&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},S.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=ce,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&_.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",_.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=Ne(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,x(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(_.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),H&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=S.indexOf(this._offlineEventListener);s!==-1&&S.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}_.protocol=ce;class Ye extends _{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;_.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",m=>{if(!s)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;_.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(f(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const E=new Error("probe error");E.transport=t.name,this.emitReserved("upgradeError",E)}}))};function r(){s||(s=!0,f(),t.close(),t=null)}const o=m=>{const E=new Error("probe error: "+m);E.transport=t.name,r(),this.emitReserved("upgradeError",E)};function c(){o("transport closed")}function h(){o("socket closed")}function g(m){t&&m.name!==t.name&&r()}const f=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",c),this.off("close",h),this.off("upgrading",g)};t.once("open",i),t.once("error",o),t.once("close",c),this.once("close",h),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}let ze=class extends Ye{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>Me[i]).filter(i=>!!i)),super(e,s)}};class Je extends fe{doPoll(){this._fetch().then(e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then(t=>this.onData(t))}).catch(e=>{this.onError("fetch read error",e)})}doWrite(e,t){this._fetch(e).then(s=>{if(!s.ok)return this.onError("fetch write error",s.status,s);t()}).catch(s=>{this.onError("fetch write error",s)})}_fetch(e){var t;const s=e!==void 0,i=new Headers(this.opts.extraHeaders);return s&&i.set("content-type","text/plain;charset=UTF-8"),(t=this.socket._cookieJar)===null||t===void 0||t.appendCookies(i),fetch(this.uri(),{method:s?"POST":"GET",body:s?e:null,headers:i,credentials:this.opts.withCredentials?"include":"omit"}).then(r=>{var o;return(o=this.socket._cookieJar)===null||o===void 0||o.parseCookies(r.headers.getSetCookie()),r})}}function Xe(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=M(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const r=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+r+":"+s.port+e,s.href=s.protocol+"://"+r+(t&&t.port===s.port?"":":"+s.port),s}const Qe=typeof ArrayBuffer=="function",je=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,ge=Object.prototype.toString,Ge=typeof Blob=="function"||typeof Blob<"u"&&ge.call(Blob)==="[object BlobConstructor]",Ze=typeof File=="function"||typeof File<"u"&&ge.call(File)==="[object FileConstructor]";function J(n){return Qe&&(n instanceof ArrayBuffer||je(n))||Ge&&n instanceof Blob||Ze&&n instanceof File}function C(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t<s;t++)if(C(n[t]))return!0;return!1}if(J(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return C(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&C(n[t]))return!0;return!1}function et(n){const e=[],t=n.data,s=n;return s.data=W(t,e),s.attachments=e.length,{packet:s,buffers:e}}function W(n,e){if(!n)return n;if(J(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let s=0;s<n.length;s++)t[s]=W(n[s],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=W(n[s],e));return t}return n}function tt(n,e){return n.data=K(n.data,e),delete n.attachments,n}function K(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=K(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=K(n[t],e));return n}const st=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],me=5;var a;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(a||(a={}));class nt{constructor(e){this.replacer=e}encode(e){return(e.type===a.EVENT||e.type===a.ACK)&&C(e)?this.encodeAsBinary({type:e.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===a.BINARY_EVENT||e.type===a.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=et(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}}function te(n){return Object.prototype.toString.call(n)==="[object Object]"}class X extends u{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===a.BINARY_EVENT;s||t.type===a.BINARY_ACK?(t.type=s?a.EVENT:a.ACK,this.reconstructor=new it(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(J(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(a[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===a.BINARY_EVENT||s.type===a.BINARY_ACK){const r=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(t+1)==="/"){const r=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(r,t)}else s.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const r=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(X.isPayloadValid(s.type,r))s.data=r;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case a.CONNECT:return te(t);case a.DISCONNECT:return t===void 0;case a.CONNECT_ERROR:return typeof t=="string"||te(t);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&st.indexOf(t[0])===-1);case a.ACK:case a.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class it{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=tt(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const rt=Object.freeze(Object.defineProperty({__proto__:null,Decoder:X,Encoder:nt,get PacketType(){return a},protocol:me},Symbol.toStringTag,{value:"Module"}));function p(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const ot=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Q extends u{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[p(e,"open",this.onopen.bind(this)),p(e,"packet",this.onpacket.bind(this)),p(e,"error",this.onerror.bind(this)),p(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,i,r;if(ot.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:a.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const f=this.ids++,m=t.pop();this._registerAckCallback(f,m),o.id=f}const c=(i=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||i===void 0?void 0:i.writable,h=this.connected&&!(!((r=this.io.engine)===null||r===void 0)&&r._hasPingExpired());return this.flags.volatile&&!c||(h?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var s;const i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},i),o=(...c)=>{this.io.clearTimeoutFn(r),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{const r=(o,c)=>o?i(o):s(c);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>(this._queue[0],i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:a.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case a.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case a.EVENT:case a.BINARY_EVENT:this.onevent(e);break;case a.ACK:case a.BINARY_ACK:this.onack(e);break;case a.DISCONNECT:this.ondisconnect();break;case a.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:a.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:a.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function v(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}v.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=(Math.floor(e*10)&1)==0?n-t:n+t}return Math.min(n,this.max)|0};v.prototype.reset=function(){this.attempts=0};v.prototype.setMin=function(n){this.ms=n};v.prototype.setMax=function(n){this.max=n};v.prototype.setJitter=function(n){this.jitter=n};class N extends u{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,L(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new v({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||rt;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ze(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=p(t,"open",function(){s.onopen(),e&&e()}),r=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=p(t,"error",r);if(this._timeout!==!1){const c=this._timeout,h=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),t.close()},c);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(p(e,"ping",this.onping.bind(this)),p(e,"data",this.ondata.bind(this)),p(e,"error",this.onerror.bind(this)),p(e,"close",this.onclose.bind(this)),p(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){x(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Q(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const k={};function b(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Xe(n,e.path||"/socket.io"),s=t.source,i=t.id,r=t.path,o=k[i]&&r in k[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let h;return c?h=new N(s,e):(k[i]||(k[i]=new N(s,e)),h=k[i]),t.query&&!e.query&&(e.query=t.queryKey),h.socket(t.path,e)}Object.assign(b,{Manager:N,Socket:Q,io:b,connect:b});const I=Object.freeze(Object.defineProperty({__proto__:null,Fetch:Je,Manager:N,NodeWebSocket:F,NodeXHR:U,Socket:Q,WebSocket:F,WebTransport:ye,XHR:U,connect:b,default:b,io:b,protocol:me},Symbol.toStringTag,{value:"Module"}));var se={};function at(){return globalThis.__VITE_ENV__}function ct(){const n=at(),e=typeof process<"u"&&se?se:void 0;return e?.NODE_ENV==="production"||e?.NODE_ENV==="test"?"":`http://localhost:${n?.VITE_DEV_API_PORT||e?.VITE_DEV_API_PORT||"3000"}`}function ht(){const n=I,e=typeof I=="function"?I:typeof n.default=="function"?n.default:n.io;if(typeof e!="function")throw new Error("socket.io-client factory could not be resolved");return e}let w=null,B=0;function ft(){return B+=1,w||(w=ht()(ct(),{transports:["websocket","polling"]})),w}function lt(){B=Math.max(0,B-1),B===0&&w&&(w.close(),w=null)}export{ft as a,lt as r};
2
+ //# sourceMappingURL=socket-oqYz9cKb.js.map