@customize-agent/server 4.0.51 → 4.0.52

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 (49) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +32 -26
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/chunks/6697.js +1 -1
  5. package/.next/server/middleware-build-manifest.js +1 -1
  6. package/.next/server/pages/404.html +1 -1
  7. package/.next/server/pages/500.html +1 -1
  8. package/.next/server/pages/api/health.js +1 -1
  9. package/.next/server/pages/asset-library.html +1 -1
  10. package/.next/server/pages/context/long-term.html +1 -1
  11. package/.next/server/pages/context/short-term.html +1 -1
  12. package/.next/server/pages/document-roles.html +1 -1
  13. package/.next/server/pages/documents.html +1 -1
  14. package/.next/server/pages/guide.html +1 -1
  15. package/.next/server/pages/index.html +1 -1
  16. package/.next/server/pages/knowledge/file-detail.html +1 -1
  17. package/.next/server/pages/knowledge/files.html +1 -1
  18. package/.next/server/pages/knowledge/manage.html +1 -1
  19. package/.next/server/pages/knowledge/search.html +1 -1
  20. package/.next/server/pages/knowledge.html +1 -1
  21. package/.next/server/pages/models.html +1 -1
  22. package/.next/server/pages/overview.html +1 -1
  23. package/.next/server/pages/prompt.html +1 -1
  24. package/.next/server/pages/settings.html +1 -1
  25. package/.next/server/pages/system/logs.html +1 -1
  26. package/.next/server/pages-manifest.json +23 -23
  27. package/.next/static/chunks/{150-134099bf526e9292.js → 102-881dcc464f983c89.js} +14 -14
  28. package/.next/static/chunks/{20-00147a779147a5a4.js → 20-86ac6910225cce4e.js} +3 -3
  29. package/.next/static/chunks/289-0031e62ca424247b.js +38 -0
  30. package/.next/static/chunks/{749-83476f9bcd014a5a.js → 317-18aac52df5551e76.js} +1 -1
  31. package/.next/static/chunks/375-4a1c73eb22d653d2.js +1 -0
  32. package/.next/static/chunks/499-d6bcc76195b28550.js +4 -0
  33. package/.next/static/chunks/{412-b9c854c6a76db67d.js → 940-7cb66111eee2f9fb.js} +1 -1
  34. package/.next/static/chunks/pages/{asset-library-e9ddfe1cbaac42d9.js → asset-library-8ba41e8bc4644f41.js} +1 -1
  35. package/.next/static/chunks/pages/context/{long-term-6b9a9683a4d6ea86.js → long-term-994425812e118c6c.js} +1 -1
  36. package/.next/static/chunks/pages/context/{short-term-6078efae6e3a905c.js → short-term-fcae99e1744d998a.js} +1 -1
  37. package/.next/static/chunks/pages/documents-d34a2487e74532e1.js +1 -0
  38. package/.next/static/chunks/pages/{guide-cba4ca0b28bb9b64.js → guide-0a3cdfa79c037307.js} +1 -1
  39. package/.next/static/chunks/pages/knowledge/{file-detail-2e874c92d01b1c14.js → file-detail-87669392540614e4.js} +1 -1
  40. package/.next/static/chunks/pages/knowledge/{files-9d30d5f23d78f46b.js → files-14ef1012fd201e47.js} +1 -1
  41. package/.next/static/chunks/pages/system/{logs-3826fa44a76b12fc.js → logs-cbeeb77dc70086ae.js} +1 -1
  42. package/.next/static/z8eSOMtVWA-Ve20p9dRke/_buildManifest.js +1 -0
  43. package/package.json +2 -2
  44. package/scripts/verify-next-static.js +9 -1
  45. package/.next/static/Ki0fhhnkp5kCGWyYdaCEa/_buildManifest.js +0 -1
  46. package/.next/static/chunks/289-30e7c55f49a896b7.js +0 -38
  47. package/.next/static/chunks/304-7bc5b1cd0b9315a1.js +0 -1
  48. package/.next/static/chunks/pages/documents-9967f1fdf3fb6d03.js +0 -1
  49. /package/.next/static/{Ki0fhhnkp5kCGWyYdaCEa → z8eSOMtVWA-Ve20p9dRke}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[375],{10218:(e,t,n)=>{n.d(t,{A:()=>y,H:()=>f});var o=n(97109),r=n(4932),i=n(42644);let l=e=>"object"==typeof e&&null!=e&&1===e.nodeType,a=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return a(n.overflowY,t)||a(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},d=(e,t,n,o,r,i,l,a)=>i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-o:l>t&&a<n||i<e&&a>n?l-t+r:0,c=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},h=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];let{scrollMode:a,block:h,inline:u,boundary:p,skipOverflowHiddenElements:f}=t,g="function"==typeof p?p:e=>e!==p;if(!l(e))throw TypeError("Invalid target");let y=document.scrollingElement||document.documentElement,v=[],b=e;for(;l(b)&&g(b);){if((b=c(b))===y){v.push(b);break}null!=b&&b===document.body&&s(b)&&!s(document.documentElement)||null!=b&&s(b,f)&&v.push(b)}let m=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,k=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:N,scrollY:w}=window,{height:x,width:E,top:$,right:K,bottom:C,left:S}=e.getBoundingClientRect(),{top:D,right:A,bottom:O,left:M}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),P="start"===h||"nearest"===h?$-D:"end"===h?C+O:$+x/2-D+O,T="center"===u?S+E/2-M+A:"end"===u?K+A:S-M,I=[];for(let e=0;e<v.length;e++){let t=v[e],{height:n,width:o,top:r,right:i,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===a&&$>=0&&S>=0&&C<=k&&K<=m&&(t===y&&!s(t)||$>=r&&C<=l&&S>=c&&K<=i))break;let p=getComputedStyle(t),f=parseInt(p.borderLeftWidth,10),g=parseInt(p.borderTopWidth,10),b=parseInt(p.borderRightWidth,10),D=parseInt(p.borderBottomWidth,10),A=0,O=0,M="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-b:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-D:0,L="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,j="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(y===t)A="start"===h?P:"end"===h?P-k:"nearest"===h?d(w,w+k,k,g,D,w+P,w+P+x,x):P-k/2,O="start"===u?T:"center"===u?T-m/2:"end"===u?T-m:d(N,N+m,m,f,b,N+T,N+T+E,E),A=Math.max(0,A+w),O=Math.max(0,O+N);else{A="start"===h?P-r-g:"end"===h?P-l+D+R:"nearest"===h?d(r,l,n,g,D+R,P,P+x,x):P-(r+n/2)+R/2,O="start"===u?T-c-f:"center"===u?T-(c+o/2)+M/2:"end"===u?T-i+b+M:d(c,i,o,f,b+M,T,T+E,E);let{scrollLeft:e,scrollTop:a}=t;A=0===j?0:Math.max(0,Math.min(a+A/j,t.scrollHeight-n/j+R)),O=0===L?0:Math.max(0,Math.min(e+O/L,t.scrollWidth-o/L+M)),P+=a-A,T+=e-O}I.push({el:t,top:A,left:O})}return I};var u=n(26047),p=n(44624);function f(e){return(0,p.$r)(e).join("_")}function g(e,t){let n=t.getFieldInstance(e),o=(0,i.rb)(n);if(o)return o;let r=(0,p.kV)((0,p.$r)(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function y(e){let[t]=(0,r.mN)(),n=o.useRef({}),i=o.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let o=f(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:(e,t={})=>{let{focus:n,...o}=t,r=g(e,i);r&&(!function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(h(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:i,left:l}of h(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=i-n.top+n.bottom,t=l-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}(r,{scrollMode:"if-needed",block:"nearest",...o}),n&&i.focusField(e))},focusField:e=>{let t=i.getFieldInstance(e);(0,u.Tn)(t?.focus)?t.focus():g(e,i)?.focus?.()},getFieldInstance:e=>{let t=f(e);return n.current[t]}},[e,t]);return[i]}},15437:(e,t,n)=>{n.d(t,{A:()=>o});let o=e=>{let{componentCls:t,antCls:n,motionDurationMid:o,motionEaseInOut:r}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(e=>`${e} ${o} ${r}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(e=>`${e} ${o} ${r}`).join(", ")} !important`}}}}},23830:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"}},29606:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(97109),r=n(23830),i=n(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(i.A,l({},e,{ref:t,icon:r.A})))},30960:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"}},44624:(e,t,n)=>{n.d(t,{$r:()=>r,BS:()=>l,kV:()=>i});let o=["parentNode"];function r(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function i(e,t){if(!e.length)return;let n=e.join("_");return t?`${t}_${n}`:o.includes(n)?`form_item_${n}`:n}function l(e,t,n,o,r,i){let l=o;return void 0!==i?l=i:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||r&&n.validated)&&(l="success"),l}},49604:(e,t,n)=>{n.d(t,{A:()=>q});var o=n(87925),r=n(9750),i=n(97109),l=n(56768),a=n(64254),s=n(29606),d=n(3638),c=n(74567),h=n(57516),u=n(88483);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let f=i.forwardRef((e,t)=>i.createElement(u.A,p({},e,{ref:t,icon:h.A})));var g=n(92162),y=n(84649),v=n(6831),b=n(7709),m=n(15561),k=n(96285),N=n(7961),w=n(15437),x=n(28403),E=n(10540);let $=new m.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),K=(0,E.OF)("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:(0,k.gd)(`${t}-checkbox`,e)},((e,t,n=!0)=>{let o=`.${e}`,r=`${o}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),l=(0,x.oX)(t,{treeCls:o,treeNodeCls:r,treeNodePadding:i});return[((e,t)=>{let{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,indentSize:l,switcherSize:a,motionDurationMid:s,nodeSelectedBg:d,nodeHoverBg:c,colorTextQuaternary:h,controlItemBgActiveDisabled:u}=t;return{[n]:{...(0,N.dF)(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`${n}-list`]:{"&:focus-visible":{outline:"none",[`${o}-active ${n}-node-content-wrapper`]:{...(0,N.jk)(t)}}},[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:$,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:(0,m.zA)(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:h},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...{[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}},position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${s}, border 0s, line-height 0s, box-shadow 0s`,...((e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,m.zA)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}))(e,t),"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:d},[`${n}-iconEle`]:{display:"inline-block",width:a,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,m.zA)(t.calc(i).div(2).equal())} !important`}}}})(e,l),n&&(({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:o,motionDurationMid:r,borderRadius:i,controlItemBgHover:l})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${r}`,content:'""',borderRadius:i},"&:hover:before":{background:l}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:o},[`${e}-node-content-wrapper`]:{color:o,background:"transparent","&, &:hover":{color:o},"&:before, &:hover:before":{background:n}}}}}))(l)].filter(Boolean)})(t,e),(0,w.A)(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...(e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,switcherSize:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}})(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),C=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:r,direction:l="ltr"}=e,a="ltr"===l?"left":"right",s={[a]:-n*r+4,["ltr"===l?"right":"left"]:0};switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=r+4}return i.createElement("div",{style:s,className:`${o}-drop-indicator`})};var S=n(60495);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let A=i.forwardRef((e,t)=>i.createElement(u.A,D({},e,{ref:t,icon:S.A})));var O=n(83914),M=n(58833);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let T=i.forwardRef((e,t)=>i.createElement(u.A,P({},e,{ref:t,icon:M.A})));var I=n(98953);function R(){return(R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let L=i.forwardRef((e,t)=>i.createElement(u.A,R({},e,{ref:t,icon:I.A})));var j=n(26047),H=n(52690);let B=e=>{let t,{prefixCls:n,switcherIcon:o,treeNodeProps:r,showLine:a,switcherLoadingIcon:s}=e,{isLeaf:c,expanded:h,loading:u}=r;if(u)return i.isValidElement(s)?s:i.createElement(O.A,{className:`${n}-switcher-loading-icon`});if((0,j.Qd)(a)&&(t=a.showLeafIcon),c){if(!a)return null;if("boolean"!=typeof t&&t){let e=(0,j.Tn)(t)?t(r):t,o=`${n}-switcher-line-custom-icon`;return i.isValidElement(e)?(0,H.Ob)(e,{className:(0,d.$)(e.props?.className,o)}):e}return t?i.createElement(l.A,{className:`${n}-switcher-line-icon`}):i.createElement("span",{className:`${n}-switcher-leaf-line`})}let p=`${n}-switcher-icon`,f=(0,j.Tn)(o)?o(r):o;return i.isValidElement(f)?(0,H.Ob)(f,{className:(0,d.$)(f.props?.className,a?`${n}-switcher-line-icon`:p)}):void 0!==f?f:a?h?i.createElement(T,{className:`${n}-switcher-line-icon`}):i.createElement(L,{className:`${n}-switcher-line-icon`}):i.createElement(A,{className:p})},z=i.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:l,style:a,classNames:s,styles:h}=(0,c.TP)("tree"),{virtual:u}=i.useContext(c.QO),{prefixCls:p,className:m,showIcon:k=!1,showLine:N,switcherIcon:w,switcherLoadingIcon:x,blockNode:E=!1,children:$,checkable:S=!1,selectable:D=!0,draggable:A,disabled:O,motion:M,style:P,rootClassName:T,classNames:I,styles:R,icon:L}=e,j=i.useContext(v.A),H=O??j,z=n("tree",p),_=n(),W=M??{...(0,y.A)(_),motionAppear:!1},V={...e,showIcon:k,blockNode:E,checkable:S,selectable:D,disabled:H,motion:W},[F,q]=(0,g.AV)([s,I],[h,R],{props:V}),U={...V,showLine:!!N,icon:L,dropIndicatorRender:C},[G,X]=K(z),[,Q]=(0,b.Ay)(),Y=Q.paddingXS/2+(Q.Tree?.titleHeight||Q.controlHeightSM),Z=i.useMemo(()=>{if(!A)return!1;let e={};switch(typeof A){case"function":e.nodeDraggable=A;break;case"object":e={...A}}return!1!==e.icon&&(e.icon=e.icon||i.createElement(f,null)),e},[A]);return i.createElement(o.Ay,{itemHeight:Y,ref:t,virtual:u,...U,prefixCls:z,className:(0,d.$)({[`${z}-icon-hide`]:!k,[`${z}-block-node`]:E,[`${z}-unselectable`]:!D,[`${z}-rtl`]:"rtl"===r,[`${z}-disabled`]:H},l,m,G,X),style:{...a,...P},rootClassName:(0,d.$)(F.root,T),rootStyle:q.root,classNames:F,styles:q,direction:r,checkable:S?i.createElement("span",{className:`${z}-checkbox-inner`}):S,selectable:D,switcherIcon:e=>i.createElement(B,{prefixCls:z,switcherIcon:w,switcherLoadingIcon:x,treeNodeProps:e,showLine:N}),draggable:Z},$)});function _(e,t,n){let{key:o,children:r}=n;e.forEach(function(e){let i=e[o],l=e[r];!1!==t(i,e)&&_(l||[],t,n)})}function W(e){let{isLeaf:t,expanded:n}=e;return t?i.createElement(l.A,null):n?i.createElement(a.A,null):i.createElement(s.A,null)}function V({treeData:e,children:t}){return e||(0,o.vH)(t)}let F=i.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:l=!0,defaultExpandedKeys:a,...s}=e,h=i.useRef(null),u=i.useRef(null),[p,f]=i.useState(s.selectedKeys||s.defaultSelectedKeys||[]),[g,y]=i.useState(()=>(()=>{let{keyEntities:e}=(0,o.cG)(V(s),{fieldNames:s.fieldNames}),t=s.expandedKeys||a||[];return n?Object.keys(e):l?(0,o.hr)(t,e):t})());i.useEffect(()=>{"selectedKeys"in s&&f(s.selectedKeys)},[s.selectedKeys]),i.useEffect(()=>{"expandedKeys"in s&&y(s.expandedKeys)},[s.expandedKeys]);let{getPrefixCls:v,direction:b}=i.useContext(c.QO),{prefixCls:m,className:k,showIcon:N=!0,expandAction:w="click",...x}=s,E=v("tree",m),$=(0,d.$)(`${E}-directory`,{[`${E}-directory-rtl`]:"rtl"===b},k);return i.createElement(z,{icon:W,ref:t,blockNode:!0,...x,showIcon:N,expandAction:w,prefixCls:E,className:$,defaultExpandParent:l,expandedKeys:g,selectedKeys:p,onSelect:(e,t)=>{let n,{multiple:i,fieldNames:l}=s,{node:a,nativeEvent:d}=t,{key:c=""}=a,p=V(s),y={...t,selected:!0},v=d?.ctrlKey||d?.metaKey,b=d?.shiftKey;i&&v?(n=e,h.current=c,u.current=n):i&&b?n=Array.from(new Set([].concat((0,r.A)(u.current||[]),(0,r.A)(function({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let l=[],a=0;return n&&n===r?[n]:n&&r?(_(e,e=>{if(2===a)return!1;if(e===n||e===r){if(l.push(e),0===a)a=1;else if(1===a)return a=2,!1}else 1===a&&l.push(e);return t.includes(e)},(0,o.AZ)(i)),l):[]}({treeData:p,expandedKeys:g,startKey:c,endKey:h.current,fieldNames:l}))))):(n=[c],h.current=c,u.current=n),y.selectedNodes=function(e,t,n){let i=(0,r.A)(t),l=[];return _(e,(e,t)=>{let n=i.indexOf(e);return -1!==n&&(l.push(t),i.splice(n,1)),!!i.length},(0,o.AZ)(n)),l}(p,n,l),s.onSelect?.(n,y),"selectedKeys"in s||f(n)},onExpand:(e,t)=>("expandedKeys"in s||y(e),s.onExpand?.(e,t))})});z.DirectoryTree=F,z.TreeNode=o.nF;let q=z},56768:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(97109),r=n(30960),i=n(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(i.A,l({},e,{ref:t,icon:r.A})))},57516:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"}},58833:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"}},60495:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"}},64254:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(97109),r=n(79662),i=n(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(i.A,l({},e,{ref:t,icon:r.A})))},79662:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"}},87925:(e,t,n)=>{n.d(t,{nF:()=>E,$s:()=>j,BA:()=>L,po:()=>q,hr:()=>W,cG:()=>y,vH:()=>f,Ay:()=>X,AZ:()=>p});var o=n(3638),r=n(42644),i=n(97109);let l=i.createContext(null),a=i.createContext({}),s=e=>{let{dropPosition:t,dropLevelOffset:n,indent:o}=e,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return i.createElement("div",{style:r})};var d=n(93307),c=n(67189);let h=i.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let l=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(i.createElement("span",{key:e,className:(0,o.$)(l,{[`${l}-start`]:n[e],[`${l}-end`]:r[e]})}));return i.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},a)});function u(e,t){return null!=e?e:t}function p(e){let{title:t,_title:n,key:o,children:r}=e||{},i=t||"title";return{title:i,_title:n||[i],key:o||"key",children:r||"children"}}function f(e){return function e(t){return(0,r.$r)(t).map(t=>{if(!(t&&t.type&&t.type.isTreeNode))return(0,r.$e)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;let{key:n}=t,{children:o,...i}=t.props,l={key:n,...i},a=e(o);return a.length&&(l.children=a),l}).filter(e=>e)}(e)}function g(e,t,n){let{_title:o,key:i,children:l}=p(n),a=new Set(!0===t?[]:t),s=[];return!function e(n,d=null){return n.map((c,h)=>{var p;let f,g=(p=d?d.pos:"0",`${p}-${h}`),y=u(c[i],g);for(let e=0;e<o.length;e+=1){let t=o[e];if(void 0!==c[t]){f=c[t];break}}let v=Object.assign((0,r.cJ)(c,[...o,i,l]),{title:f,key:y,parent:d,pos:g,children:null,data:c,isStart:[...d?d.isStart:[],0===h],isEnd:[...d?d.isEnd:[],h===n.length-1]});return s.push(v),!0===t||a.has(y)?v.children=e(c[l]||[],v):v.children=[],v})}(e),s}function y(e,{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:i,fieldNames:l}={},a){let s={},d={},c={posEntities:s,keyEntities:d};return t&&(c=t(c)||c),!function(e,t,n){let o,{childrenPropName:r,externalGetKey:i,fieldNames:l}=("object"==typeof n?n:{externalGetKey:n})||{},{key:a,children:s}=p(l),d=r||s;i?"string"==typeof i?o=e=>e[i]:"function"==typeof i&&(o=e=>i(e)):o=(e,t)=>u(e[a],t),!function n(r,i,l,a){var s;let c=r?r[d]:e,h=r?(s=l.pos,`${s}-${i}`):"0",u=r?[...a,r]:[];if(r){let e=o(r,h);t({node:r,index:i,pos:h,key:e,parentPos:l.node?l.pos:null,level:l.level+1,nodes:u})}c&&c.forEach((e,t)=>{n(e,t,{node:r,pos:h,level:l?l.level+1:-1},u)})}(null)}(e,e=>{let{node:t,index:o,pos:r,key:i,parentPos:l,level:a,nodes:h}=e,p={node:t,nodes:h,index:o,key:i,pos:r,level:a},f=u(i,r);s[r]=p,d[f]=p,p.parent=s[l],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,c)},{externalGetKey:r||a,childrenPropName:i,fieldNames:l}),o&&o(c),c}function v(e,t,n,o){return!1!==e&&(e||!t&&!n||t&&o&&!n)}function b(e,{expandedKeys:t,selectedKeys:n,loadedKeys:o,loadingKeys:r,checkedKeys:i,halfCheckedKeys:l,dragOverNodeKey:a,dropPosition:s,keyEntities:d}){let c=d[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==r.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(c?c.pos:""),dragOver:a===e&&0===s,dragOverGapTop:a===e&&-1===s,dragOverGapBottom:a===e&&1===s}}function m(e){let{data:t,expanded:n,selected:o,checked:i,loaded:l,loading:a,halfChecked:s,dragOver:d,dragOverGapTop:c,dragOverGapBottom:h,pos:u,active:p,eventKey:f}=e,g={...t,expanded:n,selected:o,checked:i,loaded:l,loading:a,halfChecked:s,dragOver:d,dragOverGapTop:c,dragOverGapBottom:h,pos:u,active:p,key:f};return"props"in g||Object.defineProperty(g,"props",{get:()=>((0,r.$e)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e)}),g}function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let N="open",w="close",x=e=>{let{eventKey:t,className:n,style:s,dragOver:d,dragOverGapTop:c,dragOverGapBottom:u,isLeaf:p,isStart:f,isEnd:g,expanded:y,selected:b,checked:x,halfChecked:E,loading:$,domRef:K,active:C,data:S,onMouseMove:D,selectable:A,treeId:O,...M}=e,P=(0,r.OX)(O,t),T=i.useContext(l),{classNames:I,styles:R}=T||{},L=i.useContext(a),j=i.useRef(null),[H,B]=i.useState(!1),z=!!(T.disabled||e.disabled||L.nodeDisabled?.(S)),_=i.useMemo(()=>!!T.checkable&&!1!==e.checkable&&T.checkable,[T.checkable,e.checkable]),W=t=>{z||_&&!e.disableCheckbox&&T.onNodeCheck(t,m(e),!x)},V=i.useMemo(()=>"boolean"==typeof A?A:T.selectable,[A,T.selectable]),F=t=>{if(T.onNodeClick(t,m(e)),V)z||T.onNodeSelect(t,m(e));else W(t)},q=t=>{T.onNodeDoubleClick(t,m(e))},U=t=>{T.onNodeMouseEnter(t,m(e))},G=t=>{T.onNodeMouseLeave(t,m(e))},X=t=>{T.onNodeContextMenu(t,m(e))},Q=i.useMemo(()=>!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(S))),[T.draggable,S]),Y=t=>{$||T.onNodeExpand(t,m(e))},Z=i.useMemo(()=>{let{children:e}=T.keyEntities[t]||{};return!!(e||[]).length},[T.keyEntities,t]),J=i.useMemo(()=>v(p,T.loadData,Z,e.loaded),[p,T.loadData,Z,e.loaded]);i.useEffect(()=>{!$&&("function"!=typeof T.loadData||!y||J||e.loaded||T.onNodeLoad(m(e)))},[$,T.loadData,T.onNodeLoad,y,J,e]);let ee=i.useMemo(()=>T.draggable?.icon?i.createElement("span",{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null,[T.draggable]),et=t=>{let n=e.switcherIcon||T.switcherIcon;return"function"==typeof n?n({...e,isLeaf:t}):n},en=i.useMemo(()=>{if(!_)return null;let t="boolean"!=typeof _?_:null;return i.createElement("span",{className:(0,o.$)(`${T.prefixCls}-checkbox`,{[`${T.prefixCls}-checkbox-checked`]:x,[`${T.prefixCls}-checkbox-indeterminate`]:!x&&E,[`${T.prefixCls}-checkbox-disabled`]:z||e.disableCheckbox}),onClick:W,role:"checkbox","aria-checked":E?"mixed":x,"aria-disabled":z||e.disableCheckbox,"aria-labelledby":P},t)},[_,x,E,z,e.disableCheckbox,P]),eo=i.useMemo(()=>J?null:y?N:w,[J,y]),er=i.useMemo(()=>i.createElement("span",{className:(0,o.$)(I?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${eo||"docu"}`,{[`${T.prefixCls}-icon_loading`]:$}),style:R?.itemIcon}),[T.prefixCls,eo,$]),ei=i.useMemo(()=>{let n=!!T.draggable;return!e.disabled&&n&&T.dragOverNodeKey===t?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),el=i.useMemo(()=>{let t,n,{title:r="---"}=e,l=`${T.prefixCls}-node-content-wrapper`;if(T.showIcon){let n=e.icon||T.icon;t=n?i.createElement("span",{className:(0,o.$)(I?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__customize`),style:R?.itemIcon},"function"==typeof n?n(e):n):er}else T.loadData&&$&&(t=er);return n="function"==typeof r?r(S):T.titleRender?T.titleRender(S):r,i.createElement("span",{ref:j,title:"string"==typeof r?r:"",className:(0,o.$)(l,`${l}-${eo||"normal"}`,{[`${T.prefixCls}-node-selected`]:!z&&(b||H)}),onMouseEnter:U,onMouseLeave:G,onContextMenu:X,onClick:F,onDoubleClick:q},t,i.createElement("span",{className:(0,o.$)(`${T.prefixCls}-title`,I?.itemTitle),style:R?.itemTitle},n),ei)},[T.prefixCls,T.showIcon,e,T.icon,er,T.titleRender,S,eo,U,G,X,F,q]),ea=(0,r.KE)(M,{aria:!0,data:!0}),{level:es}=T.keyEntities[t]||{},ed=g[g.length-1],ec=!z&&Q,eh=T.draggingNodeKey===t;return i.createElement("div",k({ref:K,role:"treeitem",id:P,"aria-expanded":J?void 0:y,"aria-selected":V&&!z?b:void 0,"aria-checked":_&&!z?E?"mixed":x:void 0,"aria-disabled":z,className:(0,o.$)(n,`${T.prefixCls}-treenode`,I?.item,{[`${T.prefixCls}-treenode-disabled`]:z,[`${T.prefixCls}-treenode-switcher-${y?"open":"close"}`]:!p,[`${T.prefixCls}-treenode-checkbox-checked`]:x,[`${T.prefixCls}-treenode-checkbox-indeterminate`]:E,[`${T.prefixCls}-treenode-selected`]:b,[`${T.prefixCls}-treenode-loading`]:$,[`${T.prefixCls}-treenode-active`]:C,[`${T.prefixCls}-treenode-leaf-last`]:ed,[`${T.prefixCls}-treenode-draggable`]:Q,dragging:eh,"drop-target":T.dropTargetKey===t,"drop-container":T.dropContainerKey===t,"drag-over":!z&&d,"drag-over-gap-top":!z&&c,"drag-over-gap-bottom":!z&&u,"filter-node":T.filterTreeNode?.(m(e)),[`${T.prefixCls}-treenode-leaf`]:J}),style:{...s,...R?.item},draggable:ec,onDragStart:ec?t=>{t.stopPropagation(),B(!0),T.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:Q?t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragEnter(t,e)}:void 0,onDragOver:Q?t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragOver(t,e)}:void 0,onDragLeave:Q?t=>{t.stopPropagation(),T.onNodeDragLeave(t,e)}:void 0,onDrop:Q?t=>{t.preventDefault(),t.stopPropagation(),B(!1),T.onNodeDrop(t,e)}:void 0,onDragEnd:Q?t=>{t.stopPropagation(),B(!1),T.onNodeDragEnd(t,e)}:void 0,onMouseMove:D},ea),i.createElement(h,{prefixCls:T.prefixCls,level:es,isStart:f,isEnd:g}),ee,(()=>{if(J){let e=et(!0);return!1!==e?i.createElement("span",{className:(0,o.$)(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher-noop`,I?.itemSwitcher),style:R?.itemSwitcher},e):null}let e=et(!1);return!1!==e?i.createElement("span",{onClick:Y,className:(0,o.$)(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${y?N:w}`,I?.itemSwitcher),style:R?.itemSwitcher},e):null})(),en,el)};x.isTreeNode=1;let E=x,$=function(e,t){let[n,o]=i.useState(!1);(0,r.Nf)(()=>{if(n)return e(),()=>{t()}},[n]),(0,r.Nf)(()=>(o(!0),()=>{o(!1)}),[])};function K(){return(K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let C=i.forwardRef((e,t)=>{let{className:n,style:a,motion:s,motionNodes:d,motionType:h,onMotionStart:u,onMotionEnd:p,active:f,treeNodeRequiredProps:g,...y}=e,[v,m]=i.useState(!0),{prefixCls:k}=i.useContext(l),N=d&&"hide"!==h;(0,r.Nf)(()=>{d&&N!==v&&m(N)},[d]);let w=i.useRef(!1),x=()=>{d&&!w.current&&(w.current=!0,p())};return($(()=>{d&&u()},x),d)?i.createElement(c.Ay,K({ref:t,visible:v},s,{motionAppear:"show"===h,onVisibleChanged:e=>{N===e&&x()}}),({className:e,style:t},n)=>i.createElement("div",{ref:n,className:(0,o.$)(`${k}-treenode-motion`,e),style:t},d.map(e=>{let{data:{...t},title:n,key:o,isStart:r,isEnd:l}=e;delete t.children;let a=b(o,g);return i.createElement(E,K({},t,a,{title:n,active:f,data:e.data,key:o,isStart:r,isEnd:l}))}))):i.createElement(E,K({domRef:t,className:n,style:a},y,{active:f}))});function S(e,t,n){let o=e.findIndex(e=>e.key===n),r=e[o+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let A=`RC_TREE_MOTION_${Math.random()}`,O={key:A},M={key:A,level:0,index:0,pos:"0",node:O,nodes:[O]},P={parent:null,children:[],pos:M.pos,data:O,title:null,key:A,isStart:[],isEnd:[]};function T(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function I(e){let{key:t,pos:n}=e;return u(t,n)}let R=i.forwardRef((e,t)=>{let{prefixCls:n,data:o,selectable:l,checkable:a,expandedKeys:s,selectedKeys:c,checkedKeys:h,loadedKeys:p,loadingKeys:f,halfCheckedKeys:g,keyEntities:y,disabled:v,dragging:m,dragOverNodeKey:k,dropPosition:N,motion:w,height:x,itemHeight:E,virtual:$,scrollWidth:K,focusable:O,activeItem:M,tabIndex:R,onKeyDown:L,onFocus:j,onBlur:H,onMouseDown:B,onActiveChange:z,onListChangeStart:_,onListChangeEnd:W,...V}=e,F=(0,r.Bi)(),q=i.useRef(null),U=i.useRef(null);i.useImperativeHandle(t,()=>({scrollTo:e=>{q.current.scrollTo(e)},getIndentWidth:()=>U.current.offsetWidth}));let[G,X]=i.useState(s),[Q,Y]=i.useState(o),[Z,J]=i.useState(o),[ee,et]=i.useState([]),[en,eo]=i.useState(null),er=i.useRef(o);function ei(){let e=er.current;Y(e),J(e),et([]),eo(null),W()}er.current=o,(0,r.Nf)(()=>{X(s);let e=function(e=[],t=[]){let n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let o=t.filter(e=>!n.has(e));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(G,s);if(null!==e.key)if(e.add){let t=Q.findIndex(({key:t})=>t===e.key),n=T(S(Q,o,e.key),$,x,E),r=Q.slice();r.splice(t+1,0,P),J(r),et(n),eo("show")}else{let t=o.findIndex(({key:t})=>t===e.key),n=T(S(o,Q,e.key),$,x,E),r=o.slice();r.splice(t+1,0,P),J(r),et(n),eo("hide")}else Q!==o&&(Y(o),J(o))},[s,o]),i.useEffect(()=>{m||ei()},[m]);let el=w?Z:o,ea={expandedKeys:s,selectedKeys:c,loadedKeys:p,loadingKeys:f,checkedKeys:h,halfCheckedKeys:g,dragOverNodeKey:k,dropPosition:N,keyEntities:y};return i.createElement(i.Fragment,null,i.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:`${n}-indent`},i.createElement("div",{ref:U,className:`${n}-indent-unit`}))),i.createElement(d.A,D({},V,{data:el,itemKey:I,height:x,fullHeight:!1,virtual:$,itemHeight:E,scrollWidth:K,prefixCls:`${n}-list`,ref:q,role:"tree",tabIndex:!1===O||v?void 0:R,"aria-activedescendant":M?(0,r.OX)(F,M.key):void 0,onKeyDown:L,onFocus:j,onBlur:H,onMouseDown:B,onVisibleChange:e=>{e.every(e=>I(e)!==A)&&ei()}}),e=>{let{pos:t,data:{...n},title:o,key:r,isStart:l,isEnd:a}=e,s=u(r,t);delete n.key,delete n.children;let d=b(s,ea);return i.createElement(C,D({},n,d,{title:o,active:!!M&&r===M.key,pos:t,data:e.data,isStart:l,isEnd:a,motion:w,motionNodes:r===A?ee:null,motionType:en,onMotionStart:_,onMotionEnd:ei,treeNodeRequiredProps:ea,treeId:F,onMouseMove:()=>{z(null)}}))}))});function L(e,t){if(!e)return[];let n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function j(e,t){let n=(e||[]).slice();return -1===n.indexOf(t)&&n.push(t),n}function H(e){return e.split("-")}function B(e,t,n,o,r,i,l,a,s,d){let{clientX:c,clientY:h}=e,{top:u,height:p}=e.target.getBoundingClientRect(),f=(("rtl"===d?-1:1)*((r?.x||0)-c)-12)/o,g=s.filter(e=>a[e]?.children?.length),y=a[n.eventKey];if(h<u+p/2){let e=l.findIndex(e=>e.key===y.key);y=a[l[e<=0?0:e-1].key]}let v=y.key,b=y,m=y.key,k=0,N=0;if(!g.includes(v))for(let e=0;e<f;e+=1)if(function(e){if(e.parent){let t=H(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}(y))y=y.parent,N+=1;else break;let w=t.data,x=y.node,E=!0;return function(e){let t=H(e.pos);return 0===Number(t[t.length-1])}(y)&&0===y.level&&h<u+p/2&&i({dragNode:w,dropNode:x,dropPosition:-1})&&y.key===n.eventKey?k=-1:(b.children||[]).length&&g.includes(m)?i({dragNode:w,dropNode:x,dropPosition:0})?k=0:E=!1:0===N?f>-1.5?i({dragNode:w,dropNode:x,dropPosition:1})?k=1:E=!1:i({dragNode:w,dropNode:x,dropPosition:0})?k=0:i({dragNode:w,dropNode:x,dropPosition:1})?k=1:E=!1:i({dragNode:w,dropNode:x,dropPosition:1})?k=1:E=!1,{dropPosition:k,dropLevelOffset:N,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:m,dropContainerKey:0===k?null:y.parent?.key||null,dropAllowed:E}}function z(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function _(e){let t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return(0,r.$e)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function W(e,t){let n=new Set;return(e||[]).forEach(e=>{!function e(o){if(n.has(o))return;let r=t[o];if(!r)return;n.add(o);let{parent:i,node:l}=r;!l.disabled&&i&&e(i.key)}(e)}),[...n]}function V(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function F(e){let{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||!1===o}function q(e,t,n,o){let i,l=[];i=o||F;let a=new Set(e.filter(e=>{let t=!!n[e];return t||l.push(e),t})),s=new Map,d=0;return Object.keys(n).forEach(e=>{let t=n[e],{level:o}=t,r=s.get(o);r||(r=new Set,s.set(o,r)),r.add(t),d=Math.max(d,o)}),(0,r.$e)(!l.length,`Tree missing follow keys: ${l.slice(0,100).map(e=>`'${e}'`).join(", ")}`),!0===t?function(e,t,n,o){let r=new Set(e),i=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:i=[]}=e;r.has(t)&&!o(n)&&i.filter(e=>!o(e.node)).forEach(e=>{r.add(e.key)})});let l=new Set;for(let e=n;e>=0;e-=1)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(o(n)||!e.parent||l.has(e.parent.key))return;if(o(e.parent.node))return void l.add(t.key);let a=!0,s=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{let t=r.has(e);a&&!t&&(a=!1),!s&&(t||i.has(e))&&(s=!0)}),a&&r.add(t.key),s&&i.add(t.key),l.add(t.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(V(i,r))}}(a,s,d,i):function(e,t,n,o,r){let i=new Set(e),l=new Set(t);for(let e=0;e<=o;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:o=[]}=e;i.has(t)||l.has(t)||r(n)||o.filter(e=>!r(e.node)).forEach(e=>{i.delete(e.key)})});l=new Set;let a=new Set;for(let e=o;e>=0;e-=1)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let o=!0,s=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);o&&!t&&(o=!1),!s&&(t||l.has(e))&&(s=!0)}),o||i.delete(t.key),s&&l.add(t.key),a.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(V(l,i))}}(a,t.halfCheckedKeys,s,d,i)}function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}class G extends i.Component{static defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:s,allowDrop:()=>!0,expandAction:!1};static TreeNode=E;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:p()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=i.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let n,{prevProps:o}=t,i={prevProps:e};function l(t){return!o&&e.hasOwnProperty(t)||o&&o[t]!==e[t]}let{fieldNames:a}=t;l("fieldNames")&&(i.fieldNames=a=p(e.fieldNames)),l("treeData")?{treeData:n}=e:l("children")&&((0,r.$e)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=f(e.children)),n&&(i.treeData=n,i.keyEntities={[A]:M,...y(n,{fieldNames:a}).keyEntities});let s=i.keyEntities||t.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?W(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){let e={...s};delete e[A];let t=[];Object.keys(e).forEach(n=>{let o=e[n];o.children&&o.children.length&&t.push(o.key)}),i.expandedKeys=t}else!o&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?W(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){let e=g(n||t.treeData,i.expandedKeys||t.expandedKeys,a);i.flattenNodes=e}if(e.selectable&&(l("selectedKeys")?i.selectedKeys=z(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(i.selectedKeys=z(e.defaultSelectedKeys,e))),e.checkable){let r;if(l("checkedKeys")?r=_(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?r=_(e.defaultCheckedKeys)||{}:n&&(r=_(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),r){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=r;if(!e.checkStrictly){let e=q(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}i.checkedKeys=t,i.halfCheckedKeys=n}}return l("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:o}=this.state,{onDragStart:r}=this.props,{eventKey:i}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let l=L(n,i);this.setState({draggingNodeKey:i,dragChildrenKeys:function(e,t){let n=[];return!function e(t=[]){t.forEach(({key:t,children:o})=>{n.push(t),e(o)})}(t[e].children),n}(i,o),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(l),window.addEventListener("dragend",this.onWindowDragEnd),r?.({event:e,node:m(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:o,dragChildrenKeys:r,flattenNodes:i,indent:l}=this.state,{onDragEnter:a,onExpand:s,allowDrop:d,direction:c}=this.props,{pos:h,eventKey:u}=t;if(this.currentMouseOverDroppableNodeKey!==u&&(this.currentMouseOverDroppableNodeKey=u),!this.dragNodeProps)return void this.resetDragState();let{dropPosition:p,dropLevelOffset:f,dropTargetKey:g,dropContainerKey:y,dropTargetPos:v,dropAllowed:b,dragOverNodeKey:k}=B(e,this.dragNodeProps,t,l,this.dragStartMousePosition,d,i,o,n,c);return r.includes(g)||!b||(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[h]=window.setTimeout(()=>{if(null===this.state.draggingNodeKey)return;let r=[...n],i=o[t.eventKey];i&&(i.children||[]).length&&(r=j(n,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(r),s?.(r,{node:m(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===g&&0===f)?void this.resetDragState():void(this.setState({dragOverNodeKey:k,dropPosition:p,dropLevelOffset:f,dropTargetKey:g,dropContainerKey:y,dropTargetPos:v,dropAllowed:b}),a?.({event:e,node:m(t),expandedKeys:n}))};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:o,keyEntities:r,expandedKeys:i,indent:l}=this.state,{onDragOver:a,allowDrop:s,direction:d}=this.props;if(!this.dragNodeProps)return;let{dropPosition:c,dropLevelOffset:h,dropTargetKey:u,dropContainerKey:p,dropTargetPos:f,dropAllowed:g,dragOverNodeKey:y}=B(e,this.dragNodeProps,t,l,this.dragStartMousePosition,s,o,r,i,d);!n.includes(u)&&g&&(this.dragNodeProps.eventKey===u&&0===h?(null!==this.state.dropPosition||null!==this.state.dropLevelOffset||null!==this.state.dropTargetKey||null!==this.state.dropContainerKey||null!==this.state.dropTargetPos||!1!==this.state.dropAllowed||null!==this.state.dragOverNodeKey)&&this.resetDragState():(c!==this.state.dropPosition||h!==this.state.dropLevelOffset||u!==this.state.dropTargetKey||p!==this.state.dropContainerKey||f!==this.state.dropTargetPos||g!==this.state.dropAllowed||y!==this.state.dragOverNodeKey)&&this.setState({dropPosition:c,dropLevelOffset:h,dropTargetKey:u,dropContainerKey:p,dropTargetPos:f,dropAllowed:g,dragOverNodeKey:y}),a?.({event:e,node:m(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:m(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:m(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:o,dropPosition:i,dropTargetKey:l,dropTargetPos:a,dropAllowed:s}=this.state;if(!s)return;let{onDrop:d}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),null===l)return;let c={...b(l,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===l,data:this.state.keyEntities[l].node},h=o.includes(l);(0,r.$e)(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");let u=H(a),p={event:e,node:m(c),dragNode:this.dragNodeProps?m(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:0!==i,dropPosition:i+Number(u[u.length-1])};n||d?.(p),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:o}=this.state,{expanded:r,key:i,isLeaf:l}=t;if(l||e.shiftKey||e.metaKey||e.ctrlKey)return;let a=o.filter(e=>e.key===i)[0],s=m({...b(i,this.getTreeNodeRequiredProps()),data:a.data});this.setExpandedKeys(r?L(n,i):j(n,i)),this.onNodeExpand(e,s)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:o}=this.props;"click"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:o}=this.props;"doubleClick"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:o,fieldNames:r}=this.state,{onSelect:i,multiple:l}=this.props,{selected:a}=t,s=t[r.key],d=!a,c=(n=d?l?j(n,s):[s]:L(n,s)).map(e=>{let t=o[e];return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),i?.(n,{event:"select",selected:d,node:t,selectedNodes:c,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let o,{keyEntities:r,checkedKeys:i,halfCheckedKeys:l}=this.state,{checkStrictly:a,onCheck:s}=this.props,{key:d}=t,c={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(a){let e=n?j(i,d):L(i,d);o={checked:e,halfChecked:L(l,d)},c.checkedNodes=e.map(e=>r[e]).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=q([...i,d],!0,r);if(!n){let n=new Set(e);n.delete(d),{checkedKeys:e,halfCheckedKeys:t}=q(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}o=e,c.checkedNodes=[],c.checkedNodesPositions=[],c.halfCheckedKeys=t,e.forEach(e=>{let t=r[e];if(!t)return;let{node:n,pos:o}=t;c.checkedNodes.push(n),c.checkedNodesPositions.push({node:n,pos:o})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(o,c)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state,o=n[t];if(o?.children?.length)return;let i=new Promise((n,o)=>{this.setState(({loadedKeys:i=[],loadingKeys:l=[]})=>{let{loadData:a,onLoad:s}=this.props;return!a||i.includes(t)||l.includes(t)?null:(a(e).then(()=>{let{loadedKeys:o}=this.state,r=j(o,t);s?.(r,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:r}),this.setState(e=>({loadingKeys:L(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:L(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=10){let{loadedKeys:e}=this.state;(0,r.$e)(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:j(e,t)}),n()}o(e)}),{loadingKeys:j(l,t)})})});return i.catch(()=>{}),i};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:o,selectedKeys:r,flattenNodes:i}=this.state;if(!this.focusedByMouse&&!n&&null===o){let e=r.find(e=>i.some(t=>t.key===e));void 0!==e?this.onActiveChange(e):this.onActiveChange(i?.[0]?.key||null)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:o,checkedKeys:r,halfCheckedKeys:i,dragOverNodeKey:l,dropPosition:a,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:o||[],checkedKeys:r||[],halfCheckedKeys:i||[],dragOverNodeKey:l,dropPosition:a,keyEntities:s}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,o=g(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:o},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:o,fieldNames:i}=this.state,{onExpand:l,loadData:a}=this.props,{expanded:s}=t,d=t[i.key];if(o)return;let c=n.includes(d),h=!s;if((0,r.$e)(s&&c||!s&&!c,"Expand state not sync with index check"),n=h?j(n,d):L(n,d),this.setExpandedKeys(n),l?.(n,{node:t,expanded:h,nativeEvent:e.nativeEvent}),h&&a){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=g(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=L(e,d);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:o=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:o}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return null===e?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,o=t.findIndex(({key:e})=>e===n);-1===o&&e<0&&(o=t.length),o=(o+e+t.length)%t.length;let r=t[o];if(r){let{key:e}=r;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:o,flattenNodes:r,keyEntities:i}=this.state,{onKeyDown:l,checkable:a,selectable:s,disabled:d,loadData:c}=this.props;if(d)return;switch(e.key){case"ArrowUp":this.offsetActiveKey(-1),e.preventDefault();break;case"ArrowDown":this.offsetActiveKey(1),e.preventDefault();break;case"Home":this.onActiveChange(r?.[0]?.key),e.preventDefault();break;case"End":this.onActiveChange(r?.[r.length-1]?.key),e.preventDefault()}let h=this.getActiveItem();if(h&&h.data){let r=m({...b(t,this.getTreeNodeRequiredProps()),data:h.data,active:!0}),l=i[t],d=!!l?.children?.length,u=!v(h.data.isLeaf,c,d,r.loaded),p=a&&!r.disabled&&!1!==r.checkable&&!r.disableCheckbox,f=!a&&s&&!r.disabled&&!1!==r.selectable;switch(e.key){case"ArrowLeft":u&&n.includes(t)?this.onNodeExpand({},r):h.parent&&this.onActiveChange(h.parent.key),e.preventDefault();break;case"ArrowRight":u&&!n.includes(t)?this.onNodeExpand({},r):h.children&&h.children.length&&this.onActiveChange(h.children[0].key),e.preventDefault();break;case"Enter":u?(e.preventDefault(),this.onNodeExpand({},r)):p?o.includes(t)||(e.preventDefault(),this.onNodeCheck({},r,!0)):f&&!r.selected&&(e.preventDefault(),this.onNodeSelect({},r));break;case" ":p?(e.preventDefault(),this.onNodeCheck({},r,!o.includes(t))):f&&(e.preventDefault(),this.onNodeSelect({},r))}}l?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let o=!1,r=!0,i={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){r=!1;return}o=!0,i[t]=e[t]}),o&&(!t||r)&&this.setState({...i,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let e,{flattenNodes:t,keyEntities:n,draggingNodeKey:a,dropLevelOffset:s,dropContainerKey:d,dropTargetKey:c,dropPosition:h,dragOverNodeKey:u,indent:p}=this.state,{prefixCls:f,className:g,style:y,styles:v,classNames:b,showLine:m,focusable:k,tabIndex:N=0,selectable:w,showIcon:x,icon:E,switcherIcon:$,draggable:K,checkable:C,checkStrictly:S,disabled:D,motion:A,loadData:O,filterTreeNode:M,height:P,itemHeight:T,scrollWidth:I,virtual:L,titleRender:j,dropIndicatorRender:H,onContextMenu:B,onScroll:z,direction:_,rootClassName:W,rootStyle:V}=this.props,F=(0,r.KE)(this.props,{aria:!0,data:!0});K&&(e="object"==typeof K?K:"function"==typeof K?{nodeDraggable:K}:{});let q={styles:v,classNames:b,prefixCls:f,selectable:w,showIcon:x,icon:E,switcherIcon:$,draggable:e,draggingNodeKey:a,checkable:C,checkStrictly:S,disabled:D,keyEntities:n,dropLevelOffset:s,dropContainerKey:d,dropTargetKey:c,dropPosition:h,dragOverNodeKey:u,indent:p,direction:_,dropIndicatorRender:H,loadData:O,filterTreeNode:M,titleRender:j,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return i.createElement(l.Provider,{value:q},i.createElement("div",{className:(0,o.$)(f,g,W,{[`${f}-show-line`]:m}),style:V},i.createElement(R,U({ref:this.listRef,prefixCls:f,style:y,data:t,disabled:D,selectable:w,checkable:!!C,motion:A,dragging:null!==a,height:P,itemHeight:T,virtual:L,focusable:k,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:z,scrollWidth:I},this.getTreeNodeRequiredProps(),F))))}}let X=G},98953:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"}}}]);
@@ -0,0 +1,4 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[499],{1310:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(90190),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},1611:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"}},12887:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}},16285:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(71885),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},23216:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(29664),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},26619:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(1611),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},26631:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(12887),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},29071:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(78847),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},29664:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"}},51307:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"}},56398:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}},63552:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(87312),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},64068:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(76148),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},66284:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"}},67547:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(51307),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},71885:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"}},75548:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(66284),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},76148:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"}},76830:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(97109),n=r(56398),a=r(88483);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}let c=o.forwardRef((e,t)=>o.createElement(a.A,i({},e,{ref:t,icon:n.A})))},78847:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"}},85493:(e,t,r)=>{r.d(t,{A:()=>j});var o=r(97109),n=r(59188),a=r(4216),i=r(45042),c=r(97137),l=r(62188),s=r(67189),d=r(42644),p=r(3638),u=r(92162),h=r(26047),v=r(74567),f=r(15561),m=r(7961),b=r(10540);let g=(e,t,r)=>({background:e,[`${r}-icon`]:{color:t}}),$=(0,b.OF)("Alert",e=>[(e=>{let{componentCls:t,motionDurationSlow:r,marginXS:o,marginSM:n,fontSize:a,fontSizeLG:i,lineHeight:c,borderRadiusLG:l,motionEaseInOutCirc:s,withDescriptionIconSize:d,colorText:p,colorTextHeading:u,withDescriptionPadding:h,defaultPadding:v,lineWidth:b,lineType:g,colorSuccessBorder:$,colorWarningBorder:y,colorErrorBorder:A,colorInfoBorder:w}=e;return{[t]:{...(0,m.dF)(e),position:"relative",display:"flex",alignItems:"center",padding:v,wordWrap:"break-word",borderRadius:l,borderWidth:(0,f.zA)(b),borderStyle:g,[`&${t}-success`]:{borderColor:$},[`&${t}-info`]:{borderColor:w},[`&${t}-warning`]:{borderColor:y},[`&${t}-error`]:{borderColor:A},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:c},"&-title":{color:u},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${r} ${s}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:n,fontSize:d,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:o,color:u,fontSize:i},[`${t}-description`]:{display:"block",color:p}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}})(e),(e=>{let{componentCls:t,colorSuccess:r,colorSuccessBg:o,colorWarning:n,colorWarningBg:a,colorError:i,colorErrorBg:c,colorInfo:l,colorInfoBg:s}=e;return{[t]:{"&-success":g(o,r,t),"&-info":g(s,l,t),"&-warning":g(a,n,t),"&-error":{...g(c,i,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}})(e),(e=>{let{componentCls:t,iconCls:r,motionDurationMid:o,marginXS:n,fontSizeIcon:a,colorIcon:i,colorIconHover:c}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:n},[`${t}-close-icon`]:{marginInlineStart:n,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,f.zA)(a),backgroundColor:"transparent",border:"none",cursor:"pointer",...(0,m.K8)(e),[`${r}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:c}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:c}}}}})(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),y=e=>{let{icon:t,type:r,className:i,style:s,successIcon:d,infoIcon:p,warningIcon:u,errorIcon:h}=e,v={success:d??o.createElement(n.A,null),info:p??o.createElement(l.A,null),error:h??o.createElement(a.A,null),warning:u??o.createElement(c.A,null)};return o.createElement("span",{className:i,style:s},t??v[r])},A=e=>{let{isClosable:t,prefixCls:r,closeIcon:n,handleClose:a,ariaProps:c,className:l,style:s}=e,d=!0===n||void 0===n?o.createElement(i.A,null):n;return t?o.createElement("button",{type:"button",onClick:a,className:(0,p.$)(`${r}-close-icon`,l),tabIndex:0,style:s,...c},d):null},w=o.forwardRef((e,t)=>{let{description:r,prefixCls:n,message:a,title:i,banner:c,className:l,rootClassName:f,style:m,onMouseEnter:b,onMouseLeave:g,onClick:w,afterClose:z,showIcon:C,closable:H,closeText:O,closeIcon:x,action:E,id:V,styles:j,classNames:S,...M}=e,k=i??a,[I,B]=o.useState(!1),L=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:L.current}));let{getPrefixCls:P,direction:R,variant:N,closable:D,closeIcon:F,className:T,style:X,classNames:W,styles:G,successIcon:Q,infoIcon:q,warningIcon:K,errorIcon:_}=(0,v.TP)("alert"),J=P("alert",n),[U,Y]=$(J),{onClose:Z,afterClose:ee}=(0,h.Qd)(H)?H:{},et=t=>{B(!0),(Z??e.onClose)?.(t)},er=o.useMemo(()=>void 0!==e.type?e.type:c?"warning":"info",[e.type,c]),eo=e.variant??N??"outlined",en=o.useMemo(()=>!!(0,h.Qd)(H)&&!!H.closeIcon||!!O||("boolean"==typeof H?H:!!(!1!==x&&(0,h.R)(x))||!!D),[O,x,H,D]),ea=!!c&&void 0===C||C,ei={...e,prefixCls:J,variant:eo,type:er,showIcon:ea,closable:en},ec=(0,u.XT)(X),el=(0,u.XT)(m),[es,ed]=(0,u.AV)([W,S],[G,ec,j,el],{props:ei}),ep=(0,p.$)(J,`${J}-${er}`,`${J}-${eo}`,{[`${J}-with-description`]:!!r,[`${J}-no-icon`]:!ea,[`${J}-banner`]:!!c,[`${J}-rtl`]:"rtl"===R},T,l,f,es.root,Y,U),eu=(0,d.KE)(M,{aria:!0,data:!0}),eh=o.useMemo(()=>(0,h.Qd)(H)&&H.closeIcon?H.closeIcon:O||(void 0!==x?x:(0,h.Qd)(D)&&D.closeIcon?D.closeIcon:F),[x,H,D,O,F]),ev=o.useMemo(()=>{let e=H??D;return(0,h.Qd)(e)?(0,d.KE)(e,{data:!0,aria:!0}):{}},[H,D]);return o.createElement(s.Ay,{visible:!I,motionName:`${J}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ee??z},({className:t,style:n},a)=>o.createElement("div",{id:V,ref:(0,d.K4)(L,a),"data-show":!I,className:(0,p.$)(ep,t),style:{...ed.root,...n},onMouseEnter:b,onMouseLeave:g,onClick:w,role:"alert",...eu},ea?o.createElement(y,{className:(0,p.$)(`${J}-icon`,es.icon),style:ed.icon,description:r,icon:e.icon,prefixCls:J,type:er,successIcon:Q,infoIcon:q,warningIcon:K,errorIcon:_}):null,o.createElement("div",{className:(0,p.$)(`${J}-section`,es.section),style:ed.section},k?o.createElement("div",{className:(0,p.$)(`${J}-title`,es.title),style:ed.title},k):null,r?o.createElement("div",{className:(0,p.$)(`${J}-description`,es.description),style:ed.description},r):null),E?o.createElement("div",{className:(0,p.$)(`${J}-actions`,es.actions),style:ed.actions},E):null,o.createElement(A,{className:es.close,style:ed.close,isClosable:en,prefixCls:J,closeIcon:eh,handleClose:et,ariaProps:ev})))});var z=r(41113),C=r(49939),H=r(90218),O=r(13076),x=r(83784),E=r(15472);let V=function(e){function t(){var e,r,o;return(0,z.A)(this,t),r=t,o=arguments,r=(0,H.A)(r),(e=(0,x.A)(this,(0,O.A)()?Reflect.construct(r,o||[],(0,H.A)(this).constructor):r.apply(this,o))).state={error:void 0,info:{}},e}return(0,E.A)(t,e),(0,C.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,title:t,description:r,id:n,children:a}=this.props,{error:i,info:c}=this.state,l=t??e,s=c?.componentStack||null,d=(0,h.R)(l)?l:i?.toString(),p=(0,h.R)(r)?r:s;return i?o.createElement(w,{id:n,type:"error",title:d,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},p)}):a}}])}(o.PureComponent);w.ErrorBoundary=V;let j=w},87312:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"}},90190:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"}},96285:(e,t,r)=>{r.d(t,{Ay:()=>l,gd:()=>c});var o=r(15561),n=r(7961),a=r(16666),i=r(28403);function c(e,t){var r=(0,i.oX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});let{checkboxCls:c,checkboxSize:l,lineWidth:s}=r,d=`${c}-wrapper`,p="@media (hover: hover) and (pointer: fine)";return[{[`${c}-group`]:{...(0,n.dF)(r),display:"inline-flex",flexWrap:"wrap",columnGap:r.marginXS,[`> ${r.antCls}-row`]:{flex:1}},[d]:{...(0,n.dF)(r),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${d}`]:{marginInlineStart:0}},[c]:{...(0,n.dF)(r),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:l,height:l,direction:"ltr",backgroundColor:r.colorBgContainer,border:`${(0,o.zA)(s)} ${r.lineType} ${r.colorBorder}`,borderRadius:r.borderRadiusSM,borderCollapse:"separate",transition:`all ${r.motionDurationSlow}`,flex:"none",...(0,a.V)(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${l} / 2 - ${s})`,insetInlineStart:`calc(${l} / 4 - ${s})`,display:"table",width:r.calc(l).div(14).mul(5).equal(),height:r.calc(l).div(14).mul(8).equal(),border:`${(0,o.zA)(r.lineWidthBold)} solid ${r.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${r.motionDurationFast} ${r.motionEaseInBack}, opacity ${r.motionDurationFast}`,...(0,a.V)()},[`${c}-input`]:{position:"absolute",inset:`calc(-1 * (${s}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${c}-input:focus-visible)`]:(0,n.jk)(r),"& + span":{paddingInlineStart:r.paddingXS,paddingInlineEnd:r.paddingXS}}},{[p]:{[`
2
+ ${d}:not(${d}-disabled),
3
+ ${c}:not(${c}-disabled)
4
+ `]:{[`&:hover ${c}`]:{borderColor:r.colorPrimary}},[`${d}:not(${d}-disabled)`]:{[`&:hover ${c}-checked:not(${c}-disabled)`]:{backgroundColor:r.colorPrimaryHover,borderColor:"transparent"}}}},{[`${c}-checked`]:{backgroundColor:r.colorPrimary,borderColor:r.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${r.motionDurationMid} ${r.motionEaseOutBack} ${r.motionDurationFast}`,...(0,a.V)()},[p]:{[`&:not(${c}-disabled):hover`]:{backgroundColor:r.colorPrimaryHover,borderColor:"transparent"}}}},{[c]:{"&-indeterminate":{backgroundColor:r.colorBgContainer,borderColor:r.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:r.calc(r.fontSizeLG).div(2).equal(),height:r.calc(r.fontSizeLG).div(2).equal(),backgroundColor:r.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},[p]:{[`&:not(${c}-disabled):hover`]:{backgroundColor:r.colorBgContainer,borderColor:r.colorPrimary}}}}},{[`${d}-disabled`]:{cursor:"not-allowed"},[`${c}-disabled`]:{[`&, ${c}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:r.colorBgContainerDisabled,borderColor:r.colorBorder,"&:after":{borderColor:r.colorTextDisabled},"& + span":{color:r.colorTextDisabled},[`&${c}-indeterminate::after`]:{background:r.colorTextDisabled}}}]}let l=(0,r(10540).OF)("Checkbox",(e,{prefixCls:t})=>[c(t,e)])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{2256:(e,t,i)=>{i.d(t,{A:()=>o});let o=i(25341).A},7851:(e,t,i)=>{i.d(t,{A:()=>a});var o=i(97109),r=i(12059),n=i(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(n.A,l({},e,{ref:t,icon:r.A})))},8579:(e,t,i)=>{i.d(t,{A:()=>a});var o=i(97109),r=i(95008),n=i(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(n.A,l({},e,{ref:t,icon:r.A})))},9730:(e,t,i)=>{i.d(t,{A:()=>P});var o=i(97109),r=i(84190),n=i(45042),l=i(99981),a=i(3638),c=i(92162),s=i(26047),m=i(38862),d=i(35622),p=i(74567),$=i(27273),h=i(59609),u=i(10540),g=i(14932),b=i(17564);let v=e=>{let{prefixCls:t}=e;return o.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},o.createElement("title",null,"Arrow"),o.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},f=e=>{let{prefixCls:t,rootPrefixCls:i,children:r,percent:n}=e,l=`${t}-item-progress-icon`,c=`${l}-circle`,[,s]=(0,u.PN)(i,"cmp-steps"),m=`calc(${s("progress-radius")} * 2 * ${Math.PI*n/100}) 9999`;return o.createElement(o.Fragment,null,o.createElement("svg",{className:`${l}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":n},o.createElement("title",null,"Progress"),o.createElement("circle",{className:(0,a.$)(c,`${c}-rail`)}),o.createElement("circle",{className:(0,a.$)(c,`${c}-ptg`),strokeDasharray:m,transform:"rotate(-90 50 50)"})),r)};var x=i(7961),z=i(28403);let w=(e,t,i)=>{let{calc:o,componentCls:r,descriptionMaxWidth:n,antCls:l}=e,a=`${r}-item`,[,c]=(0,u.PN)(l,"cmp-steps");return{[`@container style(${(n||"--ant-not-exist").replace(/var\((.*)\)/,"$1")})`]:[{[`${a}-icon`]:{marginInlineStart:o(n).sub(c("icon-size")).div(2).equal()},[`${a}-rail`]:{width:"auto",insetInlineStart:o(n).add(c("icon-size")).div(2).add(t).equal(),insetInlineEnd:o(n).sub(c("icon-size")).div(2).sub(t).mul(-1).equal()}},i]}};var y=i(15561);let S="wait",I="process",k="finish",A="error",E=(0,u.OF)("Steps",e=>{let t=(0,z.oX)(e,{inlineDotSize:6});return[(e=>{let{componentCls:t,antCls:i}=e,o=`${t}-item`,[r,n]=(0,u.PN)(i,"cmp-steps");return{[t]:{[r("title-font-size")]:e.fontSizeLG,[r("title-line-height")]:e.lineHeightLG,[r("subtitle-font-size")]:e.fontSize,[r("subtitle-line-height")]:e.lineHeight,[r("item-wrapper-padding-top")]:"0px",[r("rail-size")]:e.lineWidth,[r("rail-line-style")]:e.lineType,...(0,x.dF)(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[o]:{flex:"none",position:"relative"},[`${o}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:n("item-wrapper-padding-top")},[`${o}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${o}-title`]:{color:e.colorText,fontSize:n("title-font-size"),lineHeight:n("title-line-height"),wordBreak:"break-word"},[`${o}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:n("subtitle-font-size"),lineHeight:n("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${o}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${o}-rail`]:{borderStyle:n("rail-line-style"),borderWidth:0},[`${o}-title, ${o}-subtitle, ${o}-content, ${o}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${o}-title, ${o}-subtitle, ${o}-content`]:x.L9},[`${o}[role='button']:not(${o}-active):hover`]:{cursor:"pointer"}}}})(t),(e=>{let{componentCls:t,customIconFontSize:i,motionDurationSlow:o,iconSize:r,lineWidth:n,lineType:l,antCls:a}=e,c=`${t}-item`,[s,m]=(0,u.PN)(a,"cmp-steps");return{[t]:{[s("icon-size")]:r,[s("icon-border-width")]:n,[`${c}-icon`]:{width:m("icon-size"),height:m("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:m("icon-size"),textAlign:"center",borderRadius:m("icon-size"),border:`${m("icon-border-width")} ${l} transparent`,transition:["background-color","border","color","inset","transform"].map(e=>`${e} ${o}`).join(", "),zIndex:1},[`${c}-custom ${c}-icon`]:{background:"none",border:0,fontSize:i}}}})(t),(e=>{let{componentCls:t,marginXXS:i,paddingSM:o,controlHeight:r,antCls:n,calc:l}=e,a=`${t}-item`,[c,s]=(0,u.PN)(n,"cmp-steps");return{[`${t}-vertical`]:{[c("vertical-rail-margin")]:l(i).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${a}`]:{minHeight:l(r).mul(1.5).equal(),paddingBottom:o,"&:last-child":{paddingBottom:0},[`${a}-icon`]:{marginInlineStart:`calc((${s("icon-size-max")} - ${s("icon-size")}) / 2)`},[`${a}-rail`]:{[c("rail-offset")]:l(s("heading-height")).sub(s("icon-size")).div(2).equal(),borderInlineStartWidth:s("rail-size"),position:"absolute",top:l(s("icon-size")).add(s("item-wrapper-padding-top")).add(s("rail-offset")).add(s("vertical-rail-margin")).equal(),insetInlineStart:l(s("icon-size-max")).div(2).equal(),bottom:l(s("vertical-rail-margin")).sub(s("rail-offset")).equal(),marginInlineStart:`calc(${s("rail-size")} / -2)`}}}}})(t),(e=>{let{componentCls:t,antCls:i}=e,o=`${t}-item`,[r,n]=(0,u.PN)(i,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${o}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${o}-rail`]:{[r("horizontal-rail-margin")]:`calc(${n("icon-size-max")} / 2 - ${n("rail-size")} / 2 + ${n("item-wrapper-padding-top")})`,position:"static",marginTop:n("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:n("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}})(t),(e=>{let{componentCls:t,descriptionMaxWidth:i,marginXS:o,fontHeightLG:r,margin:n,paddingSM:l,marginXXS:a,antCls:c,calc:s}=e,m=`${t}-item`,[d,p]=(0,u.PN)(c,"cmp-steps");return{[t]:{[d("icon-size-max")]:`max(${p("icon-size")}, ${p("icon-size-active",p("icon-size"))})`,[`${m}-icon`]:{marginBlockStart:`calc((${p("heading-height")} - ${p("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[d("title-horizontal-item-margin")]:n,[d("title-horizontal-rail-margin")]:n,[d("title-horizontal-title-height")]:r,[d("heading-height")]:`max(${p("icon-size")}, ${p("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${m}:not(:first-child)`]:{marginInlineStart:p("title-horizontal-item-margin")},[`${m}:last-child`]:{flex:"0 1 auto"},[`${m}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${m}-wrapper`]:{columnGap:e.margin},[`${m}-empty-header`]:{[`${m}-header`]:{minHeight:"auto"},[`${m}-content`]:{marginTop:s(p("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${m}-section`]:{flex:1,minWidth:0},[`${m}-header`]:{minHeight:p("heading-height")},[`${m}-title`]:{flex:"0 1 auto"},[`${m}-content`]:{maxWidth:i},[`${m}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${m}-rail`]:{[d("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:p("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[d("title-vertical-row-gap")]:l,[d("title-horizontal-rail-gap")]:a,[d("heading-height")]:p("icon-size-max"),[`> ${m}`]:{flex:"1 1 0%",[`${m}-wrapper`]:{flexDirection:"column",rowGap:p("title-vertical-row-gap"),alignItems:"center"},[`${m}-section`]:{alignSelf:"stretch"},[`${m}-header`]:{flexDirection:"column",alignItems:"center"},[`${m}-title, ${m}-subtitle, ${m}-content`]:{textAlign:"center",maxWidth:"100%"},[`${m}-subtitle`]:{margin:0},[`${m}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${p("icon-size")} - ${p("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${p("icon-size")} / 2 + ${p("title-horizontal-rail-gap")})`}},...w(e,o,{[`${m}:last-child`]:{flex:"none"},[`${m}-icon`]:{alignSelf:"flex-start"},[`${m}-section`]:{width:i}})}}})(t),(e=>{let{componentCls:t,iconSizeSM:i,fontSize:o,lineHeight:r,marginXS:n,fontHeight:l,marginSM:a,paddingXS:c,antCls:s}=e,[m]=(0,u.PN)(s,"cmp-steps");return{[`${t}${t}-small`]:{[m("icon-size")]:i,[m("title-horizontal-item-margin")]:a,[m("title-vertical-row-gap")]:c,[m("title-font-size")]:o,[m("title-line-height")]:r,[m("title-horizontal-rail-margin")]:n,[m("title-horizontal-title-height")]:l,[`&${t}-horizontal${t}-title-vertical`]:w(e,n)}}})(t),(e=>{let{componentCls:t,iconSize:i,dotSize:o,dotCurrentSize:r,marginXXS:n,lineWidthBold:l,fontSizeSM:a,antCls:c}=e,s=`${t}-item`,[m,d]=(0,u.PN)(c,"cmp-steps");return{[`${t}${t}-dot`]:{[m("icon-size-active")]:r,[m("icon-size")]:o,[m("dot-icon-size")]:o,[m("dot-icon-border-width")]:l,[m("rail-size")]:l,[m("icon-border-width")]:l,[`${s}-custom ${s}-icon`]:{fontSize:a},[`${s}-icon`]:{position:"relative","&:after":{content:'""',width:i,height:i,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${s}-active ${s}-icon`]:{[m("icon-size")]:d("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:w(e,n)}}}})(t),(e=>{let{componentCls:t,colorTextDisabled:i,colorTextLightSolid:o,colorPrimary:r,colorTextLabel:n,colorError:l,colorErrorHover:a,colorErrorBgFilledHover:c,colorFillTertiary:s,colorErrorBg:m,colorPrimaryBgHover:d,colorPrimaryBg:p,colorText:$,colorTextDescription:h,colorBgContainer:g,colorPrimaryHover:b,lineType:v,antCls:f}=e,x=`${t}-item`,[z,w]=(0,u.PN)(f,"cmp-steps");return{[t]:[{[x]:{[z("item-solid-line-color")]:"#000",[z("item-title-color")]:"#000",[z("item-content-color")]:"#000",[z("item-subtitle-color")]:w("item-content-color"),[z("item-icon-custom-color")]:"#000",[z("item-icon-bg-color")]:"#000",[z("item-icon-border-color")]:"#000",[z("item-icon-text-color")]:"#fff",[z("item-icon-dot-color")]:"#000",[z("item-icon-dot-bg-color")]:w("item-icon-dot-color"),[z("item-icon-dot-border-color")]:w("item-icon-dot-color"),[z("item-text-hover-color")]:"#000",[z("item-icon-bg-hover-color")]:w("item-icon-bg-color"),[z("item-icon-border-hover-color")]:w("item-icon-border-color"),[z("item-icon-text-hover-color")]:w("item-icon-text-color"),[z("item-content-active-color")]:w("item-content-color"),[z("item-icon-active-bg-color")]:w("item-icon-bg-color"),[z("item-icon-active-border-color")]:w("item-icon-border-color"),[z("item-icon-active-text-color")]:w("item-icon-text-color"),[z("item-process-rail-line-style")]:v},[`${x}-rail`]:{borderColor:w("item-solid-line-color")},[`${x}-custom ${x}-icon`]:{color:w("item-icon-custom-color")},[`${x}-title`]:{color:w("item-title-color")},[`${x}-subtitle`]:{color:w("item-subtitle-color")},[`${x}-content`]:{color:w("item-content-color")},[`${x}-active ${x}-icon`]:{},[`${x}-active ${x}-content`]:{color:w("item-content-active-color")},[`${x}[role='button']:not(${x}-active):hover`]:{[`${x}-title, ${x}-content`]:{color:w("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${x}:not(${x}-custom)`]:{[`${x}-icon`]:{background:w("item-icon-bg-color"),borderColor:w("item-icon-border-color"),color:w("item-icon-text-color")},[`&[role='button']:not(${x}-active):hover`]:{[`${x}-icon`]:{background:w("item-icon-bg-hover-color"),borderColor:w("item-icon-border-hover-color"),color:w("item-icon-text-hover-color")}},[`&${x}-active`]:{[`${x}-icon`]:{background:w("item-icon-active-bg-color"),borderColor:w("item-icon-active-border-color"),color:w("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${x}-icon`]:{background:w("item-icon-dot-bg-color"),borderColor:w("item-icon-dot-border-color"),color:w("item-icon-dot-color"),[`&${x}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${x}-${S}`]:{[z("item-icon-custom-color")]:i,[z("item-title-color")]:h,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${S}`]:{[z("item-solid-line-color")]:i},[`${x}-${I}`]:{[z("item-icon-custom-color")]:r,[z("item-title-color")]:$,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${I}`]:{[z("item-solid-line-color")]:r,[z("rail-line-style")]:w("item-process-rail-line-style")},[`${x}-${k}`]:{[z("item-icon-custom-color")]:r,[z("item-title-color")]:$,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${k}`]:{[z("item-solid-line-color")]:r},[`${x}-${A}`]:{[z("item-icon-custom-color")]:l,[z("item-title-color")]:l,[z("item-content-color")]:l,[z("item-content-active-color")]:l,[z("item-text-hover-color")]:a},[`${x}-rail-${A}`]:{[z("item-solid-line-color")]:l}},{[`&${t}-filled`]:{[x]:{[z("item-icon-dot-border-color")]:"transparent"},[`${x}-${S}`]:{[z("item-icon-bg-color")]:s,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:n,[z("item-icon-dot-bg-color")]:i,[z("item-icon-bg-hover-color")]:d,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:r,[z("item-icon-active-bg-color")]:r,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o},[`${x}-${I}, ${x}-${k}`]:{[z("item-icon-bg-color")]:p,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:r,[z("item-icon-dot-bg-color")]:r,[z("item-icon-bg-hover-color")]:d,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:r,[z("item-icon-active-bg-color")]:r,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o},[`${x}-${A}`]:{[z("item-icon-bg-color")]:m,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:l,[z("item-icon-dot-bg-color")]:l,[z("item-icon-bg-hover-color")]:c,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:l,[z("item-icon-active-bg-color")]:l,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o}}},{[`&${t}-outlined`]:{[x]:{[z("item-icon-dot-bg-color")]:"transparent"},[`${x}-${S}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:i,[z("item-icon-text-color")]:i,[z("item-icon-dot-color")]:i,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:b,[z("item-icon-text-hover-color")]:b,[z("item-icon-active-bg-color")]:s},[`${x}-${I}, ${x}-${k}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:r,[z("item-icon-text-color")]:r,[z("item-icon-dot-color")]:r,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:b,[z("item-icon-text-hover-color")]:b,[z("item-icon-active-bg-color")]:p},[`${x}-${A}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:l,[z("item-icon-text-color")]:l,[z("item-icon-dot-color")]:l,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:a,[z("item-icon-text-hover-color")]:a,[z("item-icon-active-bg-color")]:m}}}]}})(t),(e=>{let{componentCls:t,fontSizeIcon:i,navContentMaxWidth:o,navArrowColor:r,colorPrimary:n,motionDurationSlow:l,antCls:a,calc:c}=e,s=`${t}-item`,[m,d]=(0,u.PN)(a,"cmp-steps");return{[`${t}${t}-navigation`]:{[s.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${s}-wrapper`]:{paddingBlock:e.paddingSM},[`${s}-section`]:{maxWidth:o},[`${s}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:n,transition:`all ${l}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:'""'},[`&${s}-active`]:{[m("item-content-active-color")]:d("item-content-color"),[m("item-icon-active-bg-color")]:d("item-icon-bg-color"),[m("item-icon-active-border-color")]:d("item-icon-border-color"),[m("item-icon-active-text-color")]:d("item-icon-text-color")}},[`&${t}-horizontal`]:{[s]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${s}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:c(i).div(2).mul(-1).add("100%").equal(),width:i,height:i,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[s.repeat(4)]:{[`${s}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${s}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:c(i).div(3).mul(2).equal(),height:c(i).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}})(t),(e=>{let{componentCls:t,lineWidthBold:i,borderRadius:o,borderRadiusSM:r,motionDurationMid:n,paddingXS:l,lineType:a,paddingSM:c,antCls:s,calc:m}=e,d=`${t}-item`,[p,$]=(0,u.PN)(s,"cmp-steps"),h=`${(0,y.zA)(i)} ${a} ${$("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{[p("panel-padding")]:c,[p("item-border-radius")]:o,[d]:{[p("panel-bg-color")]:$("item-icon-bg-color"),[p("panel-border-color")]:$("item-icon-border-color"),[p("panel-active-bg-color")]:$("item-icon-active-bg-color"),[p("panel-active-border-color")]:$("item-icon-active-border-color"),[p("panel-title-height")]:`calc(${$("title-font-size")} * ${$("title-line-height")})`,[p("item-base-height")]:m($("panel-padding")).mul(2).add($("icon-size")).add($("panel-title-height")).equal(),[p("item-base-width")]:`calc(${$("item-base-height")} * 0.7071)`,transition:`background-color ${n}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:m(i).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:m(i).mul(2).add("100%").equal(),width:$("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:$("panel-bg-color"),stroke:$("panel-border-color"),strokeWidth:i,vectorEffect:"non-scaling-stroke",transition:`fill ${n}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:$("panel-padding"),background:$("panel-bg-color"),position:"relative",borderBlock:h,"&:not(:first-child)":{paddingInlineStart:`calc(${$("panel-padding")} + ${$("item-base-width")})`},"&:first-child":{borderInlineStart:h,borderStartStartRadius:$("item-border-radius"),borderEndStartRadius:$("item-border-radius")},"&:last-child":{borderInlineEnd:h,borderStartEndRadius:$("item-border-radius"),borderEndEndRadius:$("item-border-radius")},"&-active":{background:$("panel-active-bg-color"),borderColor:$("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:$("panel-active-bg-color"),stroke:$("panel-active-border-color")}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:$("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[p("panel-padding")]:l,[p("item-border-radius")]:r}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${(0,y.zA)(i)} 0,calc(100% + ${$("item-base-width")}) 0,calc(100% + ${$("item-base-width")}) 100%,${(0,y.zA)(i)} 100%,calc(${$("item-base-width")} + ${(0,y.zA)(i)}) 50%)`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:m(i).div(2).mul(-1).equal(),height:m(i).add("100%").equal()}}}]}})(t),(e=>{let{componentCls:t,inlineDotSize:i,paddingXS:o,lineWidth:r,antCls:n,calc:l}=e,a=l(o).add(r).equal(),c=`${t}-item`,[s,m]=(0,u.PN)(n,"cmp-steps");return{[`${t}-inline`]:{[s("items-offset")]:"0",[s("item-wrapper-padding-top")]:a,display:"inline-flex","&:before":{content:'""',flex:m("items-offset")},[c]:{[s("title-vertical-row-gap")]:o,[s("icon-size")]:i,[s("icon-size-active")]:i,[s("title-font-size")]:e.fontSizeSM,[s("title-line-height")]:e.lineHeightSM,[s("item-title-color")]:e.colorTextSecondary,[s("subtitle-font-size")]:e.fontSizeSM,[s("subtitle-line-height")]:e.lineHeightSM,[s("item-subtitle-color")]:e.colorTextQuaternary,[s("rail-size")]:e.lineWidth,[s("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${c}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}})(t),(e=>{let{componentCls:t}=e,i=`${t}-item`;return{[`${t}-max-count`]:{[`${i}-ellipsis`]:{[`${i}-title, ${i}-subtitle, ${i}-content`]:{color:e.colorTextDescription}}}}})(t),(e=>{let{calc:t,antCls:i,componentCls:o,lineWidthBold:r,motionDurationSlow:n}=e,l=`${o}-item`,[a,c]=(0,u.PN)(i,"cmp-steps"),s=t(r).add(r).equal();return{[`${o}${o}-with-progress`]:{[a("item-wrapper-padding-top")]:s,[`${l}${l}-process`]:{[`${l}-icon`]:{position:"relative"}},[`${l}-progress-icon`]:{"&-svg":{[a("svg-size")]:t(s).mul(2).add(c("icon-size")).equal(),[a("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${c("svg-size")}, 1px)))`,fontSize:c("svg-size"),lineHeight:c("icon-size-ptg-unitless"),position:"absolute",inset:t(s).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:c("icon-size-ptg-unitless"),strokeWidth:t(c("icon-size-ptg-unitless")).mul(r).equal(),[a("progress-radius")]:t(c("svg-size")).sub(r).mul(c("icon-size-ptg-unitless")).div(2).equal(),r:c("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${n} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}})(t),(e=>{let{componentCls:t,lineWidthBold:i,antCls:o}=e,r=`${t}-item`,[,n]=(0,u.PN)(o,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(calc(0px - ${n("item-base-width")}) 0px,calc(100% - ${(0,y.zA)(i)}) 0px,calc(100% - ${n("item-base-width")} - ${(0,y.zA)(i)}) 50%,calc(100% - ${(0,y.zA)(i)}) 100%,calc(0px - ${n("item-base-width")}) 100%)`}}}}}}})(t)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));var C=i(20241);let N={itemIcon:d.D},P=e=>{let t,i,{size:d,className:x,rootClassName:z,style:w,variant:y="filled",type:S,classNames:I,styles:k,direction:A,orientation:P,responsive:M=!0,progressDot:H,labelPlacement:B,titlePlacement:W,ellipsis:O,maxCount:T,offset:j=0,items:q,percent:R,current:L=0,initial:D=0,onChange:F,iconRender:_,...X}=e,G=o.useContext(b.j),V=(0,p.TP)("steps"),{getPrefixCls:Y,direction:Q,className:K,style:J}=V,U={};G?U={root:G.rootComponent,item:G.itemComponent}:{classNames:t,styles:i}=V;let Z=Y(),ee=Y("steps",e.prefixCls),et=`${ee}-item-icon`,[ei,eo]=E(ee),[er]=(0,u.PN)(Z,"cmp-steps"),en=(0,$.A)(d),el=o.useMemo(()=>(q||[]).filter(Boolean),[q]),{xs:ea}=(0,h.A)(M),ec=o.useMemo(()=>S&&"default"!==S?S:H?"dot":S,[H,S]),es="inline"===ec,em="dot"===ec||"inline"===ec,ed=o.useMemo(()=>"dot"===ec&&(0,s.Tn)(H)?H:void 0,[ec,H]),ep=o.useMemo(()=>{let e=P||A;return"panel"===ec?"horizontal":M&&ea||"vertical"===e?"vertical":"horizontal"},[P,A,ec,M,ea]),e$=o.useMemo(()=>em||"vertical"===ep?"vertical"===ep?"horizontal":"vertical":"navigation"===S?"horizontal":W||B||"horizontal",[em,B,ep,W,S]),eh=es?void 0:R,{canApplyMaxCount:eu,displaySteps:eg,mappedDisplayCurrent:eb,displayItems:ev}=function(e,t,i,r,n){let l=void 0!==r&&r>=3&&e.length>r,a=t-i,c=o.useMemo(()=>{if(!l)return e.map((e,t)=>({item:e,originIndex:t}));let t=function(e,t,i){let o=Math.min(Math.max(t,0),e-1),r=Math.min(i,e),n=new Set([0,o,e-1]);for(let t=1;n.size<r&&t<e;t+=1)for(let i of[o-t,o+t,t,e-1-t]){if(n.size>=r)break;i>=0&&i<e&&n.add(i)}return Array.from(n).sort((e,t)=>e-t).flatMap((e,t,i)=>t>0&&e-i[t-1]>1?[null,e]:[e])}(e.length,a,r);return t.map((i,r)=>{var l;return null===i?function(e,t,i,r,n){let l=e[i].key??i,a=e[r].key??r,c=e.slice(i+1,r).some(e=>"error"===e.status)?"error":r-1<t?"finish":"wait";return{item:{key:`ellipsis-${l}-${a}`,title:"",icon:o.createElement(C.A),status:c,disabled:!0,className:`${n}-item-ellipsis`},originIndex:-1}}(e,a,t[r-1],t[r+1],n):(l=e[i],{item:{...l,key:l.key??i},originIndex:i})})},[l,a,e,r,n]),s=c.findIndex(e=>e.originIndex===a);return{canApplyMaxCount:l,displaySteps:c,mappedDisplayCurrent:s>=0?s:a,displayItems:c.map(e=>e.item)}}(el,L,D,T,ee),ef={...e,variant:y,size:en,type:ec,orientation:ep,titlePlacement:e$,current:L,initial:D,percent:eh,responsive:M,offset:j,ellipsis:O,maxCount:T},[ex,ez]=(0,c.AV)([N,t,I],[i,k],{props:ef}),ew="panel"===ec?e=>o.createElement(o.Fragment,null,e,o.createElement(v,{prefixCls:ee})):void 0,ey={[er("items-offset")]:`${j}`,...J,...w},eS=(0,a.$)(K,`${ee}-${y}`,{[`${ee}-${ec}`]:"dot"!==ec&&ec,[`${ee}-rtl`]:"rtl"===Q,[`${ee}-dot`]:em,[`${ee}-ellipsis`]:O,[`${ee}-max-count`]:eu,[`${ee}-with-progress`]:void 0!==eh,[`${ee}-small`]:"small"===en},x,z,ei,eo);return o.createElement(l.Ay,{...X,prefixCls:ee,className:eS,style:ey,classNames:ex,styles:ez,orientation:ep,titlePlacement:e$,components:U,initial:0,current:eb,items:ev,onChange:F?e=>{let t=eg[e];F&&t&&t.originIndex>=0&&F(D+t.originIndex)}:void 0,iconRender:(e,t)=>{let{item:i,index:l,active:a,components:{Icon:c}}=t,m=eg[l]?.originIndex,d=void 0!==m&&m>=0?D+m:l,{status:p,icon:$}=i,h=null;if(em||$)h=$;else switch(p){case"finish":h=o.createElement(r.A,{className:`${et}-finish`});break;case"error":h=o.createElement(n.A,{className:`${et}-error`});break;default:{let e=o.createElement("span",{className:`${et}-number`},d+1);"process"===p&&void 0!==eh&&(e=o.createElement(f,{prefixCls:ee,rootPrefixCls:Z,percent:eh},e)),h=e}}let u=o.createElement(c,null,h);return _?u=_(u,{index:d,active:a,item:i,components:{Icon:c}}):(0,s.Tn)(ed)&&(u=ed(u,{index:d,...i})),u},itemRender:(e,t)=>{let i=e;return es&&t.item.content&&(i=o.createElement(g.A,{destroyOnHidden:!0,title:t.item.content},e)),o.createElement(m.A,{component:"Steps",disabled:t.item.disabled||!F,colorSource:"filled"===y?"color":null},i)},itemWrapperRender:ew})}},12059:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"}},15437:(e,t,i)=>{i.d(t,{A:()=>o});let o=e=>{let{componentCls:t,antCls:i,motionDurationMid:o,motionEaseInOut:r}=e;return{[t]:{[`${i}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(e=>`${e} ${o} ${r}`).join(", ")} !important`}},[`${i}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(e=>`${e} ${o} ${r}`).join(", ")} !important`}}}}},17564:(e,t,i)=>{i.d(t,{j:()=>o});let o=i(97109).createContext(null)},38770:(e,t,i)=>{i.d(t,{A:()=>o});let o=i(51916).A},68498:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"}},71330:(e,t,i)=>{i.d(t,{A:()=>a});var o=i(97109),r=i(68498),n=i(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(n.A,l({},e,{ref:t,icon:r.A})))},95008:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"}},99981:(e,t,i)=>{i.d(t,{QB:()=>a,Ay:()=>b});var o=i(3638),r=i(97109),n=i(99452);function l(e){let{prefixCls:t,className:i,style:n,status:l}=e,a=`${t}-rail`;return r.createElement("div",{className:(0,o.$)(a,`${a}-${l}`,i),style:n})}let a=r.createContext({}),c=r.createContext(null);var s=i(17597);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let d=r.createContext({}),p=r.forwardRef((e,t)=>{let{className:i,style:n,children:l,...a}=e,{prefixCls:p,classNames:$,styles:h}=r.useContext(c),{className:u,style:g}=r.useContext(d),b=`${p}-item`;return r.createElement("div",m({},(0,s.A)(a,!1),{ref:t,className:(0,o.$)(`${b}-icon`,$.itemIcon,u,i),style:{...h.itemIcon,...g,...n}}),l)});function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}function h(e){let{prefixCls:t,classNames:i,styles:s,data:m,last:h,nextStatus:u,active:g,index:b,itemRender:v,iconRender:f,itemWrapperRender:x,onClick:z}=e,w=`${t}-item`,{railFollowPrevStatus:y}=r.useContext(a),{ItemComponent:S}=r.useContext(c),{onClick:I,title:k,subTitle:A,content:E,description:C,disabled:N,icon:P,status:M,className:H,style:B,classNames:W={},styles:O={},...T}=m,j=E??C,q={item:{...m,content:j},index:b,active:g},R={};(z||I)&&!N&&(R.role="button",R.tabIndex=0,R.onClick=e=>{I?.(e),z(b)},R.onKeyDown=e=>{let{which:t}=e;(t===n.A.ENTER||t===n.A.SPACE)&&z(b)});let L=M||"wait",D=null!=k,F=null!=A,_=(0,o.$)(w,`${w}-${L}`,{[`${w}-custom`]:P,[`${w}-active`]:g,[`${w}-disabled`]:!0===N,[`${w}-empty-header`]:!D&&!F},H,i.item,W.root),X=r.createElement(p,null);f&&(X=f(X,{...q,components:{Icon:p}}));let G=r.createElement("div",{className:(0,o.$)(`${w}-wrapper`,i.itemWrapper,W.wrapper),style:{...s.itemWrapper,...O.wrapper}},r.createElement(d.Provider,{value:{className:W.icon,style:O.icon}},X),r.createElement("div",{className:(0,o.$)(`${w}-section`,i.itemSection,W.section),style:{...s.itemSection,...O.section}},r.createElement("div",{className:(0,o.$)(`${w}-header`,i.itemHeader,W.header),style:{...s.itemHeader,...O.header}},D&&r.createElement("div",{className:(0,o.$)(`${w}-title`,i.itemTitle,W.title),style:{...s.itemTitle,...O.title}},k),F&&r.createElement("div",{title:"string"==typeof A?A:void 0,className:(0,o.$)(`${w}-subtitle`,i.itemSubtitle,W.subtitle),style:{...s.itemSubtitle,...O.subtitle}},A),!h&&r.createElement(l,{prefixCls:w,className:(0,o.$)(i.itemRail,W.rail),style:{...s.itemRail,...O.rail},status:y?M:u})),null!=j&&r.createElement("div",{className:(0,o.$)(`${w}-content`,i.itemContent,W.content),style:{...s.itemContent,...O.content}},j))),V=r.createElement(S,$({},T,R,{className:_,style:{...s.item,...O.root,...B}}),x?x(G):G);return v&&(V=v(V,q)||null),V}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let g={},b=function(e){let{prefixCls:t="rc-steps",style:i,className:n,classNames:l=g,styles:a=g,rootClassName:s,orientation:m,titlePlacement:d,components:p,status:$="process",current:b=0,initial:v=0,onChange:f,items:x,iconRender:z,itemRender:w,itemWrapperRender:y,...S}=e,I="vertical"===m,k=(0,o.$)(t,`${t}-${I?"vertical":"horizontal"}`,`${t}-title-${I||"vertical"!==d?"horizontal":"vertical"}`,s,n,l.root),A=r.useMemo(()=>(x||[]).filter(Boolean),[x]),E=r.useMemo(()=>A.map(({status:e},t)=>{let i=v+t;return e?e:i===b?$:i<b?"finish":"wait"}),[A,$,b,v]),C=e=>{f&&b!==e&&f(e)},{root:N="div",item:P="div"}=p||{},M=r.useMemo(()=>({prefixCls:t,classNames:l,styles:a,ItemComponent:P}),[t,l,a,P]);return r.createElement(N,u({className:k,style:{...i,...a?.root}},S),r.createElement(c.Provider,{value:M},A.map((e,i)=>{let o=v+i,n=E[i],c=E[i+1],s={...e,status:n};return r.createElement(h,{key:o,prefixCls:t,classNames:l,styles:a,data:s,nextStatus:c,active:o===b,index:o,last:A.length-1===i,iconRender:z,itemRender:w,itemWrapperRender:y,onClick:f&&C})})))}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[940],{2256:(e,t,i)=>{i.d(t,{A:()=>o});let o=i(25341).A},7851:(e,t,i)=>{i.d(t,{A:()=>a});var o=i(97109),r=i(12059),n=i(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(n.A,l({},e,{ref:t,icon:r.A})))},8579:(e,t,i)=>{i.d(t,{A:()=>a});var o=i(97109),r=i(95008),n=i(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(n.A,l({},e,{ref:t,icon:r.A})))},9730:(e,t,i)=>{i.d(t,{A:()=>P});var o=i(97109),r=i(84190),n=i(45042),l=i(99981),a=i(3638),c=i(92162),s=i(26047),m=i(38862),d=i(35622),p=i(74567),$=i(27273),h=i(59609),u=i(10540),g=i(14932),b=i(17564);let v=e=>{let{prefixCls:t}=e;return o.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},o.createElement("title",null,"Arrow"),o.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},f=e=>{let{prefixCls:t,rootPrefixCls:i,children:r,percent:n}=e,l=`${t}-item-progress-icon`,c=`${l}-circle`,[,s]=(0,u.PN)(i,"cmp-steps"),m=`calc(${s("progress-radius")} * 2 * ${Math.PI*n/100}) 9999`;return o.createElement(o.Fragment,null,o.createElement("svg",{className:`${l}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":n},o.createElement("title",null,"Progress"),o.createElement("circle",{className:(0,a.$)(c,`${c}-rail`)}),o.createElement("circle",{className:(0,a.$)(c,`${c}-ptg`),strokeDasharray:m,transform:"rotate(-90 50 50)"})),r)};var x=i(7961),z=i(28403);let w=(e,t,i)=>{let{calc:o,componentCls:r,descriptionMaxWidth:n,antCls:l}=e,a=`${r}-item`,[,c]=(0,u.PN)(l,"cmp-steps");return{[`@container style(${(n||"--ant-not-exist").replace(/var\((.*)\)/,"$1")})`]:[{[`${a}-icon`]:{marginInlineStart:o(n).sub(c("icon-size")).div(2).equal()},[`${a}-rail`]:{width:"auto",insetInlineStart:o(n).add(c("icon-size")).div(2).add(t).equal(),insetInlineEnd:o(n).sub(c("icon-size")).div(2).sub(t).mul(-1).equal()}},i]}};var y=i(15561);let S="wait",I="process",k="finish",A="error",E=(0,u.OF)("Steps",e=>{let t=(0,z.oX)(e,{inlineDotSize:6});return[(e=>{let{componentCls:t,antCls:i}=e,o=`${t}-item`,[r,n]=(0,u.PN)(i,"cmp-steps");return{[t]:{[r("title-font-size")]:e.fontSizeLG,[r("title-line-height")]:e.lineHeightLG,[r("subtitle-font-size")]:e.fontSize,[r("subtitle-line-height")]:e.lineHeight,[r("item-wrapper-padding-top")]:"0px",[r("rail-size")]:e.lineWidth,[r("rail-line-style")]:e.lineType,...(0,x.dF)(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[o]:{flex:"none",position:"relative"},[`${o}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:n("item-wrapper-padding-top")},[`${o}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${o}-title`]:{color:e.colorText,fontSize:n("title-font-size"),lineHeight:n("title-line-height"),wordBreak:"break-word"},[`${o}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:n("subtitle-font-size"),lineHeight:n("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${o}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${o}-rail`]:{borderStyle:n("rail-line-style"),borderWidth:0},[`${o}-title, ${o}-subtitle, ${o}-content, ${o}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${o}-title, ${o}-subtitle, ${o}-content`]:x.L9},[`${o}[role='button']:not(${o}-active):hover`]:{cursor:"pointer"}}}})(t),(e=>{let{componentCls:t,customIconFontSize:i,motionDurationSlow:o,iconSize:r,lineWidth:n,lineType:l,antCls:a}=e,c=`${t}-item`,[s,m]=(0,u.PN)(a,"cmp-steps");return{[t]:{[s("icon-size")]:r,[s("icon-border-width")]:n,[`${c}-icon`]:{width:m("icon-size"),height:m("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:m("icon-size"),textAlign:"center",borderRadius:m("icon-size"),border:`${m("icon-border-width")} ${l} transparent`,transition:["background-color","border","color","inset","transform"].map(e=>`${e} ${o}`).join(", "),zIndex:1},[`${c}-custom ${c}-icon`]:{background:"none",border:0,fontSize:i}}}})(t),(e=>{let{componentCls:t,marginXXS:i,paddingSM:o,controlHeight:r,antCls:n,calc:l}=e,a=`${t}-item`,[c,s]=(0,u.PN)(n,"cmp-steps");return{[`${t}-vertical`]:{[c("vertical-rail-margin")]:l(i).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${a}`]:{minHeight:l(r).mul(1.5).equal(),paddingBottom:o,"&:last-child":{paddingBottom:0},[`${a}-icon`]:{marginInlineStart:`calc((${s("icon-size-max")} - ${s("icon-size")}) / 2)`},[`${a}-rail`]:{[c("rail-offset")]:l(s("heading-height")).sub(s("icon-size")).div(2).equal(),borderInlineStartWidth:s("rail-size"),position:"absolute",top:l(s("icon-size")).add(s("item-wrapper-padding-top")).add(s("rail-offset")).add(s("vertical-rail-margin")).equal(),insetInlineStart:l(s("icon-size-max")).div(2).equal(),bottom:l(s("vertical-rail-margin")).sub(s("rail-offset")).equal(),marginInlineStart:`calc(${s("rail-size")} / -2)`}}}}})(t),(e=>{let{componentCls:t,antCls:i}=e,o=`${t}-item`,[r,n]=(0,u.PN)(i,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${o}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${o}-rail`]:{[r("horizontal-rail-margin")]:`calc(${n("icon-size-max")} / 2 - ${n("rail-size")} / 2 + ${n("item-wrapper-padding-top")})`,position:"static",marginTop:n("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:n("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}})(t),(e=>{let{componentCls:t,descriptionMaxWidth:i,marginXS:o,fontHeightLG:r,margin:n,paddingSM:l,marginXXS:a,antCls:c,calc:s}=e,m=`${t}-item`,[d,p]=(0,u.PN)(c,"cmp-steps");return{[t]:{[d("icon-size-max")]:`max(${p("icon-size")}, ${p("icon-size-active",p("icon-size"))})`,[`${m}-icon`]:{marginBlockStart:`calc((${p("heading-height")} - ${p("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[d("title-horizontal-item-margin")]:n,[d("title-horizontal-rail-margin")]:n,[d("title-horizontal-title-height")]:r,[d("heading-height")]:`max(${p("icon-size")}, ${p("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${m}:not(:first-child)`]:{marginInlineStart:p("title-horizontal-item-margin")},[`${m}:last-child`]:{flex:"0 1 auto"},[`${m}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${m}-wrapper`]:{columnGap:e.margin},[`${m}-empty-header`]:{[`${m}-header`]:{minHeight:"auto"},[`${m}-content`]:{marginTop:s(p("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${m}-section`]:{flex:1,minWidth:0},[`${m}-header`]:{minHeight:p("heading-height")},[`${m}-title`]:{flex:"0 1 auto"},[`${m}-content`]:{maxWidth:i},[`${m}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${m}-rail`]:{[d("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:p("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[d("title-vertical-row-gap")]:l,[d("title-horizontal-rail-gap")]:a,[d("heading-height")]:p("icon-size-max"),[`> ${m}`]:{flex:"1 1 0%",[`${m}-wrapper`]:{flexDirection:"column",rowGap:p("title-vertical-row-gap"),alignItems:"center"},[`${m}-section`]:{alignSelf:"stretch"},[`${m}-header`]:{flexDirection:"column",alignItems:"center"},[`${m}-title, ${m}-subtitle, ${m}-content`]:{textAlign:"center",maxWidth:"100%"},[`${m}-subtitle`]:{margin:0},[`${m}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${p("icon-size")} - ${p("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${p("icon-size")} / 2 + ${p("title-horizontal-rail-gap")})`}},...w(e,o,{[`${m}:last-child`]:{flex:"none"},[`${m}-icon`]:{alignSelf:"flex-start"},[`${m}-section`]:{width:i}})}}})(t),(e=>{let{componentCls:t,iconSizeSM:i,fontSize:o,lineHeight:r,marginXS:n,fontHeight:l,marginSM:a,paddingXS:c,antCls:s}=e,[m]=(0,u.PN)(s,"cmp-steps");return{[`${t}${t}-small`]:{[m("icon-size")]:i,[m("title-horizontal-item-margin")]:a,[m("title-vertical-row-gap")]:c,[m("title-font-size")]:o,[m("title-line-height")]:r,[m("title-horizontal-rail-margin")]:n,[m("title-horizontal-title-height")]:l,[`&${t}-horizontal${t}-title-vertical`]:w(e,n)}}})(t),(e=>{let{componentCls:t,iconSize:i,dotSize:o,dotCurrentSize:r,marginXXS:n,lineWidthBold:l,fontSizeSM:a,antCls:c}=e,s=`${t}-item`,[m,d]=(0,u.PN)(c,"cmp-steps");return{[`${t}${t}-dot`]:{[m("icon-size-active")]:r,[m("icon-size")]:o,[m("dot-icon-size")]:o,[m("dot-icon-border-width")]:l,[m("rail-size")]:l,[m("icon-border-width")]:l,[`${s}-custom ${s}-icon`]:{fontSize:a},[`${s}-icon`]:{position:"relative","&:after":{content:'""',width:i,height:i,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${s}-active ${s}-icon`]:{[m("icon-size")]:d("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:w(e,n)}}}})(t),(e=>{let{componentCls:t,colorTextDisabled:i,colorTextLightSolid:o,colorPrimary:r,colorTextLabel:n,colorError:l,colorErrorHover:a,colorErrorBgFilledHover:c,colorFillTertiary:s,colorErrorBg:m,colorPrimaryBgHover:d,colorPrimaryBg:p,colorText:$,colorTextDescription:h,colorBgContainer:g,colorPrimaryHover:b,lineType:v,antCls:f}=e,x=`${t}-item`,[z,w]=(0,u.PN)(f,"cmp-steps");return{[t]:[{[x]:{[z("item-solid-line-color")]:"#000",[z("item-title-color")]:"#000",[z("item-content-color")]:"#000",[z("item-subtitle-color")]:w("item-content-color"),[z("item-icon-custom-color")]:"#000",[z("item-icon-bg-color")]:"#000",[z("item-icon-border-color")]:"#000",[z("item-icon-text-color")]:"#fff",[z("item-icon-dot-color")]:"#000",[z("item-icon-dot-bg-color")]:w("item-icon-dot-color"),[z("item-icon-dot-border-color")]:w("item-icon-dot-color"),[z("item-text-hover-color")]:"#000",[z("item-icon-bg-hover-color")]:w("item-icon-bg-color"),[z("item-icon-border-hover-color")]:w("item-icon-border-color"),[z("item-icon-text-hover-color")]:w("item-icon-text-color"),[z("item-content-active-color")]:w("item-content-color"),[z("item-icon-active-bg-color")]:w("item-icon-bg-color"),[z("item-icon-active-border-color")]:w("item-icon-border-color"),[z("item-icon-active-text-color")]:w("item-icon-text-color"),[z("item-process-rail-line-style")]:v},[`${x}-rail`]:{borderColor:w("item-solid-line-color")},[`${x}-custom ${x}-icon`]:{color:w("item-icon-custom-color")},[`${x}-title`]:{color:w("item-title-color")},[`${x}-subtitle`]:{color:w("item-subtitle-color")},[`${x}-content`]:{color:w("item-content-color")},[`${x}-active ${x}-icon`]:{},[`${x}-active ${x}-content`]:{color:w("item-content-active-color")},[`${x}[role='button']:not(${x}-active):hover`]:{[`${x}-title, ${x}-content`]:{color:w("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${x}:not(${x}-custom)`]:{[`${x}-icon`]:{background:w("item-icon-bg-color"),borderColor:w("item-icon-border-color"),color:w("item-icon-text-color")},[`&[role='button']:not(${x}-active):hover`]:{[`${x}-icon`]:{background:w("item-icon-bg-hover-color"),borderColor:w("item-icon-border-hover-color"),color:w("item-icon-text-hover-color")}},[`&${x}-active`]:{[`${x}-icon`]:{background:w("item-icon-active-bg-color"),borderColor:w("item-icon-active-border-color"),color:w("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${x}-icon`]:{background:w("item-icon-dot-bg-color"),borderColor:w("item-icon-dot-border-color"),color:w("item-icon-dot-color"),[`&${x}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${x}-${S}`]:{[z("item-icon-custom-color")]:i,[z("item-title-color")]:h,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${S}`]:{[z("item-solid-line-color")]:i},[`${x}-${I}`]:{[z("item-icon-custom-color")]:r,[z("item-title-color")]:$,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${I}`]:{[z("item-solid-line-color")]:r,[z("rail-line-style")]:w("item-process-rail-line-style")},[`${x}-${k}`]:{[z("item-icon-custom-color")]:r,[z("item-title-color")]:$,[z("item-content-color")]:h,[z("item-content-active-color")]:$,[z("item-text-hover-color")]:b},[`${x}-rail-${k}`]:{[z("item-solid-line-color")]:r},[`${x}-${A}`]:{[z("item-icon-custom-color")]:l,[z("item-title-color")]:l,[z("item-content-color")]:l,[z("item-content-active-color")]:l,[z("item-text-hover-color")]:a},[`${x}-rail-${A}`]:{[z("item-solid-line-color")]:l}},{[`&${t}-filled`]:{[x]:{[z("item-icon-dot-border-color")]:"transparent"},[`${x}-${S}`]:{[z("item-icon-bg-color")]:s,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:n,[z("item-icon-dot-bg-color")]:i,[z("item-icon-bg-hover-color")]:d,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:r,[z("item-icon-active-bg-color")]:r,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o},[`${x}-${I}, ${x}-${k}`]:{[z("item-icon-bg-color")]:p,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:r,[z("item-icon-dot-bg-color")]:r,[z("item-icon-bg-hover-color")]:d,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:r,[z("item-icon-active-bg-color")]:r,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o},[`${x}-${A}`]:{[z("item-icon-bg-color")]:m,[z("item-icon-border-color")]:"transparent",[z("item-icon-text-color")]:l,[z("item-icon-dot-bg-color")]:l,[z("item-icon-bg-hover-color")]:c,[z("item-icon-border-hover-color")]:"transparent",[z("item-icon-text-hover-color")]:l,[z("item-icon-active-bg-color")]:l,[z("item-icon-active-border-color")]:"transparent",[z("item-icon-active-text-color")]:o}}},{[`&${t}-outlined`]:{[x]:{[z("item-icon-dot-bg-color")]:"transparent"},[`${x}-${S}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:i,[z("item-icon-text-color")]:i,[z("item-icon-dot-color")]:i,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:b,[z("item-icon-text-hover-color")]:b,[z("item-icon-active-bg-color")]:s},[`${x}-${I}, ${x}-${k}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:r,[z("item-icon-text-color")]:r,[z("item-icon-dot-color")]:r,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:b,[z("item-icon-text-hover-color")]:b,[z("item-icon-active-bg-color")]:p},[`${x}-${A}`]:{[z("item-icon-bg-color")]:g,[z("item-icon-border-color")]:l,[z("item-icon-text-color")]:l,[z("item-icon-dot-color")]:l,[z("item-icon-bg-hover-color")]:"transparent",[z("item-icon-border-hover-color")]:a,[z("item-icon-text-hover-color")]:a,[z("item-icon-active-bg-color")]:m}}}]}})(t),(e=>{let{componentCls:t,fontSizeIcon:i,navContentMaxWidth:o,navArrowColor:r,colorPrimary:n,motionDurationSlow:l,antCls:a,calc:c}=e,s=`${t}-item`,[m,d]=(0,u.PN)(a,"cmp-steps");return{[`${t}${t}-navigation`]:{[s.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${s}-wrapper`]:{paddingBlock:e.paddingSM},[`${s}-section`]:{maxWidth:o},[`${s}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:n,transition:`all ${l}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:'""'},[`&${s}-active`]:{[m("item-content-active-color")]:d("item-content-color"),[m("item-icon-active-bg-color")]:d("item-icon-bg-color"),[m("item-icon-active-border-color")]:d("item-icon-border-color"),[m("item-icon-active-text-color")]:d("item-icon-text-color")}},[`&${t}-horizontal`]:{[s]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${s}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:c(i).div(2).mul(-1).add("100%").equal(),width:i,height:i,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[s.repeat(4)]:{[`${s}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${s}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:c(i).div(3).mul(2).equal(),height:c(i).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}})(t),(e=>{let{componentCls:t,lineWidthBold:i,borderRadius:o,borderRadiusSM:r,motionDurationMid:n,paddingXS:l,lineType:a,paddingSM:c,antCls:s,calc:m}=e,d=`${t}-item`,[p,$]=(0,u.PN)(s,"cmp-steps"),h=`${(0,y.zA)(i)} ${a} ${$("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{[p("panel-padding")]:c,[p("item-border-radius")]:o,[d]:{[p("panel-bg-color")]:$("item-icon-bg-color"),[p("panel-border-color")]:$("item-icon-border-color"),[p("panel-active-bg-color")]:$("item-icon-active-bg-color"),[p("panel-active-border-color")]:$("item-icon-active-border-color"),[p("panel-title-height")]:`calc(${$("title-font-size")} * ${$("title-line-height")})`,[p("item-base-height")]:m($("panel-padding")).mul(2).add($("icon-size")).add($("panel-title-height")).equal(),[p("item-base-width")]:`calc(${$("item-base-height")} * 0.7071)`,transition:`background-color ${n}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:m(i).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:m(i).mul(2).add("100%").equal(),width:$("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:$("panel-bg-color"),stroke:$("panel-border-color"),strokeWidth:i,vectorEffect:"non-scaling-stroke",transition:`fill ${n}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:$("panel-padding"),background:$("panel-bg-color"),position:"relative",borderBlock:h,"&:not(:first-child)":{paddingInlineStart:`calc(${$("panel-padding")} + ${$("item-base-width")})`},"&:first-child":{borderInlineStart:h,borderStartStartRadius:$("item-border-radius"),borderEndStartRadius:$("item-border-radius")},"&:last-child":{borderInlineEnd:h,borderStartEndRadius:$("item-border-radius"),borderEndEndRadius:$("item-border-radius")},"&-active":{background:$("panel-active-bg-color"),borderColor:$("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:$("panel-active-bg-color"),stroke:$("panel-active-border-color")}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:$("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[p("panel-padding")]:l,[p("item-border-radius")]:r}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${(0,y.zA)(i)} 0,calc(100% + ${$("item-base-width")}) 0,calc(100% + ${$("item-base-width")}) 100%,${(0,y.zA)(i)} 100%,calc(${$("item-base-width")} + ${(0,y.zA)(i)}) 50%)`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:m(i).div(2).mul(-1).equal(),height:m(i).add("100%").equal()}}}]}})(t),(e=>{let{componentCls:t,inlineDotSize:i,paddingXS:o,lineWidth:r,antCls:n,calc:l}=e,a=l(o).add(r).equal(),c=`${t}-item`,[s,m]=(0,u.PN)(n,"cmp-steps");return{[`${t}-inline`]:{[s("items-offset")]:"0",[s("item-wrapper-padding-top")]:a,display:"inline-flex","&:before":{content:'""',flex:m("items-offset")},[c]:{[s("title-vertical-row-gap")]:o,[s("icon-size")]:i,[s("icon-size-active")]:i,[s("title-font-size")]:e.fontSizeSM,[s("title-line-height")]:e.lineHeightSM,[s("item-title-color")]:e.colorTextSecondary,[s("subtitle-font-size")]:e.fontSizeSM,[s("subtitle-line-height")]:e.lineHeightSM,[s("item-subtitle-color")]:e.colorTextQuaternary,[s("rail-size")]:e.lineWidth,[s("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${c}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}})(t),(e=>{let{componentCls:t}=e,i=`${t}-item`;return{[`${t}-max-count`]:{[`${i}-ellipsis`]:{[`${i}-title, ${i}-subtitle, ${i}-content`]:{color:e.colorTextDescription}}}}})(t),(e=>{let{calc:t,antCls:i,componentCls:o,lineWidthBold:r,motionDurationSlow:n}=e,l=`${o}-item`,[a,c]=(0,u.PN)(i,"cmp-steps"),s=t(r).add(r).equal();return{[`${o}${o}-with-progress`]:{[a("item-wrapper-padding-top")]:s,[`${l}${l}-process`]:{[`${l}-icon`]:{position:"relative"}},[`${l}-progress-icon`]:{"&-svg":{[a("svg-size")]:t(s).mul(2).add(c("icon-size")).equal(),[a("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${c("svg-size")}, 1px)))`,fontSize:c("svg-size"),lineHeight:c("icon-size-ptg-unitless"),position:"absolute",inset:t(s).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:c("icon-size-ptg-unitless"),strokeWidth:t(c("icon-size-ptg-unitless")).mul(r).equal(),[a("progress-radius")]:t(c("svg-size")).sub(r).mul(c("icon-size-ptg-unitless")).div(2).equal(),r:c("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${n} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}})(t),(e=>{let{componentCls:t,lineWidthBold:i,antCls:o}=e,r=`${t}-item`,[,n]=(0,u.PN)(o,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(calc(0px - ${n("item-base-width")}) 0px,calc(100% - ${(0,y.zA)(i)}) 0px,calc(100% - ${n("item-base-width")} - ${(0,y.zA)(i)}) 50%,calc(100% - ${(0,y.zA)(i)}) 100%,calc(0px - ${n("item-base-width")}) 100%)`}}}}}}})(t)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));var C=i(20241);let N={itemIcon:d.D},P=e=>{let t,i,{size:d,className:x,rootClassName:z,style:w,variant:y="filled",type:S,classNames:I,styles:k,direction:A,orientation:P,responsive:M=!0,progressDot:H,labelPlacement:B,titlePlacement:W,ellipsis:O,maxCount:T,offset:q=0,items:j,percent:R,current:L=0,initial:D=0,onChange:F,iconRender:_,...X}=e,G=o.useContext(b.j),V=(0,p.TP)("steps"),{getPrefixCls:Y,direction:Q,className:K,style:J}=V,U={};G?U={root:G.rootComponent,item:G.itemComponent}:{classNames:t,styles:i}=V;let Z=Y(),ee=Y("steps",e.prefixCls),et=`${ee}-item-icon`,[ei,eo]=E(ee),[er]=(0,u.PN)(Z,"cmp-steps"),en=(0,$.A)(d),el=o.useMemo(()=>(j||[]).filter(Boolean),[j]),{xs:ea}=(0,h.A)(M),ec=o.useMemo(()=>S&&"default"!==S?S:H?"dot":S,[H,S]),es="inline"===ec,em="dot"===ec||"inline"===ec,ed=o.useMemo(()=>"dot"===ec&&(0,s.Tn)(H)?H:void 0,[ec,H]),ep=o.useMemo(()=>{let e=P||A;return"panel"===ec?"horizontal":M&&ea||"vertical"===e?"vertical":"horizontal"},[P,A,ec,M,ea]),e$=o.useMemo(()=>em||"vertical"===ep?"vertical"===ep?"horizontal":"vertical":"navigation"===S?"horizontal":W||B||"horizontal",[em,B,ep,W,S]),eh=es?void 0:R,{canApplyMaxCount:eu,displaySteps:eg,mappedDisplayCurrent:eb,displayItems:ev}=function(e,t,i,r,n){let l=void 0!==r&&r>=3&&e.length>r,a=t-i,c=o.useMemo(()=>{if(!l)return e.map((e,t)=>({item:e,originIndex:t}));let t=function(e,t,i){let o=Math.min(Math.max(t,0),e-1),r=Math.min(i,e),n=new Set([0,o,e-1]);for(let t=1;n.size<r&&t<e;t+=1)for(let i of[o-t,o+t,t,e-1-t]){if(n.size>=r)break;i>=0&&i<e&&n.add(i)}return Array.from(n).sort((e,t)=>e-t).flatMap((e,t,i)=>t>0&&e-i[t-1]>1?[null,e]:[e])}(e.length,a,r);return t.map((i,r)=>{var l;return null===i?function(e,t,i,r,n){let l=e[i].key??i,a=e[r].key??r,c=e.slice(i+1,r).some(e=>"error"===e.status)?"error":r-1<t?"finish":"wait";return{item:{key:`ellipsis-${l}-${a}`,title:"",icon:o.createElement(C.A),status:c,disabled:!0,className:`${n}-item-ellipsis`},originIndex:-1}}(e,a,t[r-1],t[r+1],n):(l=e[i],{item:{...l,key:l.key??i},originIndex:i})})},[l,a,e,r,n]),s=c.findIndex(e=>e.originIndex===a);return{canApplyMaxCount:l,displaySteps:c,mappedDisplayCurrent:s>=0?s:a,displayItems:c.map(e=>e.item)}}(el,L,D,T,ee),ef={...e,variant:y,size:en,type:ec,orientation:ep,titlePlacement:e$,current:L,initial:D,percent:eh,responsive:M,offset:q,ellipsis:O,maxCount:T},[ex,ez]=(0,c.AV)([N,t,I],[i,k],{props:ef}),ew="panel"===ec?e=>o.createElement(o.Fragment,null,e,o.createElement(v,{prefixCls:ee})):void 0,ey={[er("items-offset")]:`${q}`,...J,...w},eS=(0,a.$)(K,`${ee}-${y}`,{[`${ee}-${ec}`]:"dot"!==ec&&ec,[`${ee}-rtl`]:"rtl"===Q,[`${ee}-dot`]:em,[`${ee}-ellipsis`]:O,[`${ee}-max-count`]:eu,[`${ee}-with-progress`]:void 0!==eh,[`${ee}-small`]:"small"===en},x,z,ei,eo);return o.createElement(l.Ay,{...X,prefixCls:ee,className:eS,style:ey,classNames:ex,styles:ez,orientation:ep,titlePlacement:e$,components:U,initial:0,current:eb,items:ev,onChange:F?e=>{let t=eg[e];F&&t&&t.originIndex>=0&&F(D+t.originIndex)}:void 0,iconRender:(e,t)=>{let{item:i,index:l,active:a,components:{Icon:c}}=t,m=eg[l]?.originIndex,d=void 0!==m&&m>=0?D+m:l,{status:p,icon:$}=i,h=null;if(em||$)h=$;else switch(p){case"finish":h=o.createElement(r.A,{className:`${et}-finish`});break;case"error":h=o.createElement(n.A,{className:`${et}-error`});break;default:{let e=o.createElement("span",{className:`${et}-number`},d+1);"process"===p&&void 0!==eh&&(e=o.createElement(f,{prefixCls:ee,rootPrefixCls:Z,percent:eh},e)),h=e}}let u=o.createElement(c,null,h);return _?u=_(u,{index:d,active:a,item:i,components:{Icon:c}}):(0,s.Tn)(ed)&&(u=ed(u,{index:d,...i})),u},itemRender:(e,t)=>{let i=e;return es&&t.item.content&&(i=o.createElement(g.A,{destroyOnHidden:!0,title:t.item.content},e)),o.createElement(m.A,{component:"Steps",disabled:t.item.disabled||!F,colorSource:"filled"===y?"color":null},i)},itemWrapperRender:ew})}},12059:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"}},17564:(e,t,i)=>{i.d(t,{j:()=>o});let o=i(97109).createContext(null)},38770:(e,t,i)=>{i.d(t,{A:()=>o});let o=i(51916).A},68498:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"}},71330:(e,t,i)=>{i.d(t,{A:()=>a});var o=i(97109),r=i(68498),n=i(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(n.A,l({},e,{ref:t,icon:r.A})))},95008:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"}},99981:(e,t,i)=>{i.d(t,{QB:()=>a,Ay:()=>b});var o=i(3638),r=i(97109),n=i(99452);function l(e){let{prefixCls:t,className:i,style:n,status:l}=e,a=`${t}-rail`;return r.createElement("div",{className:(0,o.$)(a,`${a}-${l}`,i),style:n})}let a=r.createContext({}),c=r.createContext(null);var s=i(17597);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let d=r.createContext({}),p=r.forwardRef((e,t)=>{let{className:i,style:n,children:l,...a}=e,{prefixCls:p,classNames:$,styles:h}=r.useContext(c),{className:u,style:g}=r.useContext(d),b=`${p}-item`;return r.createElement("div",m({},(0,s.A)(a,!1),{ref:t,className:(0,o.$)(`${b}-icon`,$.itemIcon,u,i),style:{...h.itemIcon,...g,...n}}),l)});function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}function h(e){let{prefixCls:t,classNames:i,styles:s,data:m,last:h,nextStatus:u,active:g,index:b,itemRender:v,iconRender:f,itemWrapperRender:x,onClick:z}=e,w=`${t}-item`,{railFollowPrevStatus:y}=r.useContext(a),{ItemComponent:S}=r.useContext(c),{onClick:I,title:k,subTitle:A,content:E,description:C,disabled:N,icon:P,status:M,className:H,style:B,classNames:W={},styles:O={},...T}=m,q=E??C,j={item:{...m,content:q},index:b,active:g},R={};(z||I)&&!N&&(R.role="button",R.tabIndex=0,R.onClick=e=>{I?.(e),z(b)},R.onKeyDown=e=>{let{which:t}=e;(t===n.A.ENTER||t===n.A.SPACE)&&z(b)});let L=M||"wait",D=null!=k,F=null!=A,_=(0,o.$)(w,`${w}-${L}`,{[`${w}-custom`]:P,[`${w}-active`]:g,[`${w}-disabled`]:!0===N,[`${w}-empty-header`]:!D&&!F},H,i.item,W.root),X=r.createElement(p,null);f&&(X=f(X,{...j,components:{Icon:p}}));let G=r.createElement("div",{className:(0,o.$)(`${w}-wrapper`,i.itemWrapper,W.wrapper),style:{...s.itemWrapper,...O.wrapper}},r.createElement(d.Provider,{value:{className:W.icon,style:O.icon}},X),r.createElement("div",{className:(0,o.$)(`${w}-section`,i.itemSection,W.section),style:{...s.itemSection,...O.section}},r.createElement("div",{className:(0,o.$)(`${w}-header`,i.itemHeader,W.header),style:{...s.itemHeader,...O.header}},D&&r.createElement("div",{className:(0,o.$)(`${w}-title`,i.itemTitle,W.title),style:{...s.itemTitle,...O.title}},k),F&&r.createElement("div",{title:"string"==typeof A?A:void 0,className:(0,o.$)(`${w}-subtitle`,i.itemSubtitle,W.subtitle),style:{...s.itemSubtitle,...O.subtitle}},A),!h&&r.createElement(l,{prefixCls:w,className:(0,o.$)(i.itemRail,W.rail),style:{...s.itemRail,...O.rail},status:y?M:u})),null!=q&&r.createElement("div",{className:(0,o.$)(`${w}-content`,i.itemContent,W.content),style:{...s.itemContent,...O.content}},q))),V=r.createElement(S,$({},T,R,{className:_,style:{...s.item,...O.root,...B}}),x?x(G):G);return v&&(V=v(V,j)||null),V}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let g={},b=function(e){let{prefixCls:t="rc-steps",style:i,className:n,classNames:l=g,styles:a=g,rootClassName:s,orientation:m,titlePlacement:d,components:p,status:$="process",current:b=0,initial:v=0,onChange:f,items:x,iconRender:z,itemRender:w,itemWrapperRender:y,...S}=e,I="vertical"===m,k=(0,o.$)(t,`${t}-${I?"vertical":"horizontal"}`,`${t}-title-${I||"vertical"!==d?"horizontal":"vertical"}`,s,n,l.root),A=r.useMemo(()=>(x||[]).filter(Boolean),[x]),E=r.useMemo(()=>A.map(({status:e},t)=>{let i=v+t;return e?e:i===b?$:i<b?"finish":"wait"}),[A,$,b,v]),C=e=>{f&&b!==e&&f(e)},{root:N="div",item:P="div"}=p||{},M=r.useMemo(()=>({prefixCls:t,classNames:l,styles:a,ItemComponent:P}),[t,l,a,P]);return r.createElement(N,u({className:k,style:{...i,...a?.root}},S),r.createElement(c.Provider,{value:M},A.map((e,i)=>{let o=v+i,n=E[i],c=E[i+1],s={...e,status:n};return r.createElement(h,{key:o,prefixCls:t,classNames:l,styles:a,data:s,nextStatus:c,active:o===b,index:o,last:A.length-1===i,iconRender:z,itemRender:w,itemWrapperRender:y,onClick:f&&C})})))}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{63806:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>I});var n=i(65321),l=i(97109),a=i(17807),s=i(25258),r=i(88762),o=i(2256),c=i(38770),d=i(68787),p=i(33442),x=i(85114),h=i(84253),g=i(71102),y=i(384),m=i(11702),f=i(58209),u=i(93051),j=i(81668),w=i(64254),v=i(26619),A=i(85855),b=i(75548),k=i(56768),S=i(79059),z=i(6578);let C={knowledge_base:"知识库",generated:"AI生成",uploaded:"上传",external_url:"外部URL"},_={cover:"magenta",reference:"blue",generated:"purple",attachment:"cyan",map:"orange",operator:"geekblue"};function I(){let e=(0,S.Vr)(),{message:t}=a.A.useApp(),[i,I]=(0,l.useState)([]),[N,T]=(0,l.useState)(new Set),[E,F]=(0,l.useState)(!0),P=async()=>{try{I((await (0,z.f$)()).assets)}catch(e){I([])}};(0,l.useEffect)(()=>{F(!0),P().finally(()=>F(!1))},[]);let B=async e=>{var i;e&&(await (null==(i=navigator.clipboard)?void 0:i.writeText(e)),t.success("已复制路径"))},D=async(e,i)=>{try{"index"===i?(I((await (0,z.uc)(e)).assets),t.success("已加入知识库索引")):"openFile"===i?await (0,z.oS)(e,"file"):"openDirectory"===i?await (0,z.oS)(e,"directory"):"delete"===i&&(I((await (0,z.JU)(e)).assets),T(t=>{let i=new Set(t);return i.delete(e),i}))}catch(e){t.error(e instanceof Error?e.message:"操作失败")}},R=n=>{let l="selected"===n?[...N]:i.map(e=>e.id);0!==l.length&&s.A.confirm({title:"all"===n?"删除全部资源?":"删除已选 ".concat(l.length," 个资源?"),content:"此操作不可撤销。",okText:e("common.confirm"),cancelText:e("common.cancel"),okButtonProps:{danger:!0},onOk:async()=>{F(!0);try{await Promise.all(l.map(e=>(0,z.JU)(e))),await P(),T(new Set),t.success("已删除 ".concat(l.length," 个资源"))}catch(e){t.error("批量删除失败")}finally{F(!1)}}})},W=e=>{T(t=>{let i=new Set(t);return i.has(e)?i.delete(e):i.add(e),i})};return E?(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsx)(r.A,{active:!0,title:!0,paragraph:{rows:1}}),(0,n.jsx)(o.A,{gutter:[12,12],children:Array.from({length:6}).map((e,t)=>(0,n.jsx)(c.A,{xs:24,sm:12,md:8,xl:6,children:(0,n.jsx)(d.A,{size:"small",children:(0,n.jsx)(r.A,{active:!0,paragraph:{rows:3}})})},t))})]}):(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:12},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"pageTitle",children:e("nav.assetLibrary")}),(0,n.jsx)("p",{className:"pageDesc",children:"管理文档生成产生的本地资源。生成完成后资源会自动回流知识库,后续文档可继续检索复用。"})]}),(0,n.jsxs)(p.A,{size:8,children:[(0,n.jsxs)("span",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["共 ",i.length," 个资源"]}),(0,n.jsxs)(x.Ay,{danger:!0,size:"small",disabled:0===N.size,icon:(0,n.jsx)(f.A,{}),onClick:()=>R("selected"),children:["删除已选 ",N.size||""]}),(0,n.jsx)(x.Ay,{danger:!0,size:"small",disabled:0===i.length,onClick:()=>R("all"),children:"删除全部"})]})]}),0===i.length?(0,n.jsx)(h.A,{description:"暂无生成资源"}):(0,n.jsx)(o.A,{gutter:[12,12],children:i.map((t,i)=>{let l="image"===t.type&&t.path?"/api/assets/generated/preview?id=".concat(encodeURIComponent(t.id)):void 0,a=N.has(t.id),s=[...t.path?[{key:"copy",icon:(0,n.jsx)(u.A,{}),label:"复制路径",onClick:()=>{B(t.path)}}]:[],...t.path?[{key:"open",icon:(0,n.jsx)(j.A,{}),label:"打开文件",onClick:()=>{D(t.id,"openFile")}}]:[],...t.path?[{key:"folder",icon:(0,n.jsx)(w.A,{}),label:"打开目录",onClick:()=>{D(t.id,"openDirectory")}}]:[],...!t.indexed&&t.path?[{key:"index",icon:(0,n.jsx)(v.A,{}),label:"加入知识库",onClick:()=>{D(t.id,"index")}}]:[],{type:"divider"},{key:"delete",icon:(0,n.jsx)(f.A,{}),label:e("common.delete"),danger:!0,onClick:()=>{D(t.id,"delete")}}];return(0,n.jsx)(c.A,{xs:24,sm:12,md:8,xl:6,children:(0,n.jsxs)(d.A,{size:"small",hoverable:!0,styles:{body:{padding:12}},style:{border:a?"2px solid #1677ff":void 0,cursor:"pointer",position:"relative"},onClick:()=>W(t.id),children:[(0,n.jsx)("div",{onClick:e=>{e.stopPropagation(),W(t.id)},style:{position:"absolute",top:8,left:8,zIndex:2,width:22,height:22,borderRadius:5,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.15s",background:a?"#1677ff":"rgba(0,0,0,0.6)",color:"#fff",fontSize:12,fontWeight:700},children:a?"✓":""}),(0,n.jsx)(g.A,{menu:{items:s},trigger:["click"],placement:"bottomRight",children:(0,n.jsx)(x.Ay,{type:"text",size:"small",icon:(0,n.jsx)(A.A,{}),style:{position:"absolute",top:6,right:6,zIndex:2,width:24,height:24,padding:0,background:"var(--colorBgContainer)",borderRadius:6,boxShadow:"0 1px 3px rgba(0,0,0,0.08)"},onClick:e=>e.stopPropagation()})}),l&&(0,n.jsx)("div",{style:{margin:"-12px -12px 10px -12px",borderRadius:"10px 10px 0 0",overflow:"hidden",height:140,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--colorFillAlter)"},children:(0,n.jsx)(y.A,{src:l,alt:t.name,style:{width:"100%",height:"100%",objectFit:"cover"},onClick:e=>e.stopPropagation()})}),(0,n.jsx)("div",{style:{display:"flex",alignItems:"flex-start",gap:8,marginBottom:6},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,minWidth:0,flex:1},children:[!l&&("image"===t.type?(0,n.jsx)(b.A,{style:{color:"var(--colorWarning)",fontSize:15,flexShrink:0}}):(0,n.jsx)(k.A,{style:{color:"var(--colorAccent)",fontSize:15,flexShrink:0}})),(0,n.jsx)("span",{style:{fontWeight:600,fontSize:13,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name})]})}),(0,n.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:8},children:[(0,n.jsx)(m.A,{color:t.indexed?"success":"default",style:{margin:0,fontSize:10,lineHeight:"16px"},children:t.indexed?"已入库":"未入库"}),(0,n.jsx)(m.A,{color:_[t.role]||"blue",style:{margin:0,fontSize:10,lineHeight:"16px"},children:t.role}),(0,n.jsx)(m.A,{style:{margin:0,fontSize:10,lineHeight:"16px"},children:t.type})]}),(0,n.jsxs)("div",{style:{fontSize:12,color:"var(--colorTextSecondary)",lineHeight:1.5,marginBottom:6},children:[t.path&&(0,n.jsx)("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"monospace",fontSize:11},children:t.path}),(0,n.jsxs)("div",{children:[C[t.source]||t.source," \xb7 ",t.usedByDocumentIds.length," 个文档 \xb7 ",new Date(t.updatedAt).toLocaleDateString()]})]})]})},t.id)})})]})}},85015:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/asset-library",function(){return i(63806)}])}},e=>{e.O(0,[433,787,150,749,636,593,792],()=>e(e.s=85015)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{63806:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>I});var n=i(65321),l=i(97109),a=i(17807),s=i(25258),r=i(88762),o=i(2256),c=i(38770),d=i(68787),p=i(33442),x=i(85114),h=i(84253),g=i(71102),y=i(384),m=i(11702),f=i(58209),u=i(93051),j=i(81668),w=i(64254),v=i(26619),A=i(85855),b=i(75548),k=i(56768),S=i(79059),z=i(6578);let C={knowledge_base:"知识库",generated:"AI生成",uploaded:"上传",external_url:"外部URL"},_={cover:"magenta",reference:"blue",generated:"purple",attachment:"cyan",map:"orange",operator:"geekblue"};function I(){let e=(0,S.Vr)(),{message:t}=a.A.useApp(),[i,I]=(0,l.useState)([]),[N,T]=(0,l.useState)(new Set),[E,F]=(0,l.useState)(!0),P=async()=>{try{I((await (0,z.f$)()).assets)}catch(e){I([])}};(0,l.useEffect)(()=>{F(!0),P().finally(()=>F(!1))},[]);let B=async e=>{var i;e&&(await (null==(i=navigator.clipboard)?void 0:i.writeText(e)),t.success("已复制路径"))},D=async(e,i)=>{try{"index"===i?(I((await (0,z.uc)(e)).assets),t.success("已加入知识库索引")):"openFile"===i?await (0,z.oS)(e,"file"):"openDirectory"===i?await (0,z.oS)(e,"directory"):"delete"===i&&(I((await (0,z.JU)(e)).assets),T(t=>{let i=new Set(t);return i.delete(e),i}))}catch(e){t.error(e instanceof Error?e.message:"操作失败")}},R=n=>{let l="selected"===n?[...N]:i.map(e=>e.id);0!==l.length&&s.A.confirm({title:"all"===n?"删除全部资源?":"删除已选 ".concat(l.length," 个资源?"),content:"此操作不可撤销。",okText:e("common.confirm"),cancelText:e("common.cancel"),okButtonProps:{danger:!0},onOk:async()=>{F(!0);try{await Promise.all(l.map(e=>(0,z.JU)(e))),await P(),T(new Set),t.success("已删除 ".concat(l.length," 个资源"))}catch(e){t.error("批量删除失败")}finally{F(!1)}}})},W=e=>{T(t=>{let i=new Set(t);return i.has(e)?i.delete(e):i.add(e),i})};return E?(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsx)(r.A,{active:!0,title:!0,paragraph:{rows:1}}),(0,n.jsx)(o.A,{gutter:[12,12],children:Array.from({length:6}).map((e,t)=>(0,n.jsx)(c.A,{xs:24,sm:12,md:8,xl:6,children:(0,n.jsx)(d.A,{size:"small",children:(0,n.jsx)(r.A,{active:!0,paragraph:{rows:3}})})},t))})]}):(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:12},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"pageTitle",children:e("nav.assetLibrary")}),(0,n.jsx)("p",{className:"pageDesc",children:"管理文档生成产生的本地资源。生成完成后资源会自动回流知识库,后续文档可继续检索复用。"})]}),(0,n.jsxs)(p.A,{size:8,children:[(0,n.jsxs)("span",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["共 ",i.length," 个资源"]}),(0,n.jsxs)(x.Ay,{danger:!0,size:"small",disabled:0===N.size,icon:(0,n.jsx)(f.A,{}),onClick:()=>R("selected"),children:["删除已选 ",N.size||""]}),(0,n.jsx)(x.Ay,{danger:!0,size:"small",disabled:0===i.length,onClick:()=>R("all"),children:"删除全部"})]})]}),0===i.length?(0,n.jsx)(h.A,{description:"暂无生成资源"}):(0,n.jsx)(o.A,{gutter:[12,12],children:i.map((t,i)=>{let l="image"===t.type&&t.path?"/api/assets/generated/preview?id=".concat(encodeURIComponent(t.id)):void 0,a=N.has(t.id),s=[...t.path?[{key:"copy",icon:(0,n.jsx)(u.A,{}),label:"复制路径",onClick:()=>{B(t.path)}}]:[],...t.path?[{key:"open",icon:(0,n.jsx)(j.A,{}),label:"打开文件",onClick:()=>{D(t.id,"openFile")}}]:[],...t.path?[{key:"folder",icon:(0,n.jsx)(w.A,{}),label:"打开目录",onClick:()=>{D(t.id,"openDirectory")}}]:[],...!t.indexed&&t.path?[{key:"index",icon:(0,n.jsx)(v.A,{}),label:"加入知识库",onClick:()=>{D(t.id,"index")}}]:[],{type:"divider"},{key:"delete",icon:(0,n.jsx)(f.A,{}),label:e("common.delete"),danger:!0,onClick:()=>{D(t.id,"delete")}}];return(0,n.jsx)(c.A,{xs:24,sm:12,md:8,xl:6,children:(0,n.jsxs)(d.A,{size:"small",hoverable:!0,styles:{body:{padding:12}},style:{border:a?"2px solid #1677ff":void 0,cursor:"pointer",position:"relative"},onClick:()=>W(t.id),children:[(0,n.jsx)("div",{onClick:e=>{e.stopPropagation(),W(t.id)},style:{position:"absolute",top:8,left:8,zIndex:2,width:22,height:22,borderRadius:5,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.15s",background:a?"#1677ff":"rgba(0,0,0,0.6)",color:"#fff",fontSize:12,fontWeight:700},children:a?"✓":""}),(0,n.jsx)(g.A,{menu:{items:s},trigger:["click"],placement:"bottomRight",children:(0,n.jsx)(x.Ay,{type:"text",size:"small",icon:(0,n.jsx)(A.A,{}),style:{position:"absolute",top:6,right:6,zIndex:2,width:24,height:24,padding:0,background:"var(--colorBgContainer)",borderRadius:6,boxShadow:"0 1px 3px rgba(0,0,0,0.08)"},onClick:e=>e.stopPropagation()})}),l&&(0,n.jsx)("div",{style:{margin:"-12px -12px 10px -12px",borderRadius:"10px 10px 0 0",overflow:"hidden",height:140,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--colorFillAlter)"},children:(0,n.jsx)(y.A,{src:l,alt:t.name,style:{width:"100%",height:"100%",objectFit:"cover"},onClick:e=>e.stopPropagation()})}),(0,n.jsx)("div",{style:{display:"flex",alignItems:"flex-start",gap:8,marginBottom:6},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,minWidth:0,flex:1},children:[!l&&("image"===t.type?(0,n.jsx)(b.A,{style:{color:"var(--colorWarning)",fontSize:15,flexShrink:0}}):(0,n.jsx)(k.A,{style:{color:"var(--colorAccent)",fontSize:15,flexShrink:0}})),(0,n.jsx)("span",{style:{fontWeight:600,fontSize:13,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name})]})}),(0,n.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:8},children:[(0,n.jsx)(m.A,{color:t.indexed?"success":"default",style:{margin:0,fontSize:10,lineHeight:"16px"},children:t.indexed?"已入库":"未入库"}),(0,n.jsx)(m.A,{color:_[t.role]||"blue",style:{margin:0,fontSize:10,lineHeight:"16px"},children:t.role}),(0,n.jsx)(m.A,{style:{margin:0,fontSize:10,lineHeight:"16px"},children:t.type})]}),(0,n.jsxs)("div",{style:{fontSize:12,color:"var(--colorTextSecondary)",lineHeight:1.5,marginBottom:6},children:[t.path&&(0,n.jsx)("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"monospace",fontSize:11},children:t.path}),(0,n.jsxs)("div",{children:[C[t.source]||t.source," \xb7 ",t.usedByDocumentIds.length," 个文档 \xb7 ",new Date(t.updatedAt).toLocaleDateString()]})]})]})},t.id)})})]})}},85015:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/asset-library",function(){return i(63806)}])}},e=>{e.O(0,[433,787,102,317,636,593,792],()=>e(e.s=85015)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[893],{260:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>k});var n=a(65321),o=a(97109),c=a(79059),r=a(17807),s=a(11702),l=a(85114),i=a(26171),d=a(33442),m=a(7576),h=a(68787),u=a(54849),x=a(21289),g=a(25258),p=a(63455),f=a(99650),w=a(58209),j=a(30486),A=a(83374),y=a(8383),v=a(26619),S=a(53998),_=a(6578),C=a(45551);let z={project_fact:"项目知识",user_preference:"用户偏好",feedback:"历史纠偏",pattern:"解决方案"},N={high:"red",medium:"orange",low:"default"};function k(){let e=(0,c.Vr)(),{message:t}=r.A.useApp(),[a,k]=(0,o.useState)(!0),[T,b]=(0,o.useState)([]),[D,I]=(0,o.useState)({count:0,totalBytes:0}),[M,B]=(0,o.useState)(""),[E,P]=(0,o.useState)(!1),[O,L]=(0,o.useState)(null),[U,F]=(0,o.useState)(""),[H,J]=(0,o.useState)(""),[K,X]=(0,o.useState)(!1),G=async a=>{k(!0);try{let[e,t]=await Promise.all([(0,_.hn)("long_term",a),(0,_.p)("long_term")]);b(e),I(t)}catch(a){t.error(e("common.error"))}finally{k(!1)}};(0,o.useEffect)(()=>{G()},[]);let V=async a=>{try{await (0,_.xw)(a),t.success(e("common.success")),await G(M)}catch(a){t.error(e("common.error"))}},W=async()=>{try{await (0,_.PH)("long_term"),t.success(e("common.success")),await G(M)}catch(a){t.error(e("common.error"))}},q=async()=>{try{await (0,_.E)("long_term"),t.success(e("common.success")),await G(M)}catch(a){t.error(e("common.error"))}},Q=async()=>{if(O&&U.trim()){X(!0);try{await (0,_.zo)(O.id,{content:U.trim(),context:H||void 0}),t.success(e("common.success")),P(!1),await G(M)}catch(a){t.error(e("common.error"))}finally{X(!1)}}},R=[{title:"序号",key:"index",width:70,render:(e,t,a)=>a+1},{title:e("models.modelName"),dataIndex:"title",ellipsis:!0,width:180},{title:"类型",dataIndex:"type",width:90,render:e=>(0,n.jsx)(s.A,{children:z[e]||e})},{title:e("context.content"),dataIndex:"content",ellipsis:!0},{title:e("context.importance"),dataIndex:"importance",width:80,render:e=>(0,n.jsx)(s.A,{color:N[e]||"default",children:"high"===e?"高":"medium"===e?"中":"低"})},{title:e("context.source"),dataIndex:"source",width:100,ellipsis:!0},{title:e("context.updatedAt"),dataIndex:"updated_at",width:140,render:e=>e?new Date(e).toLocaleString():"-"},{title:e("common.edit"),width:100,render:(t,a)=>(0,n.jsxs)("span",{style:{display:"flex",gap:4},children:[(0,n.jsx)(l.Ay,{size:"small",type:"text",icon:(0,n.jsx)(f.A,{}),onClick:()=>{L(a),F(a.content),J(""),P(!0)}}),(0,n.jsx)(i.A,{title:e("models.deleteProviderConfirm"),onConfirm:()=>{V(a.id)},children:(0,n.jsx)(l.Ay,{size:"small",type:"text",danger:!0,icon:(0,n.jsx)(w.A,{})})})]})}];return(0,n.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"pageTitle",children:e("nav.longTermContext")}),(0,n.jsx)("p",{className:"pageDesc",children:e("context.longTermDesc")})]}),(0,n.jsxs)(d.A,{wrap:!0,children:[(0,n.jsx)(m.A,{prefix:(0,n.jsx)(j.A,{}),placeholder:e("common.search"),value:M,onChange:e=>B(e.target.value),onPressEnter:()=>{G(M)},allowClear:!0,style:{width:240}}),(0,n.jsx)(l.Ay,{icon:(0,n.jsx)(A.A,{}),onClick:()=>{W()},children:"压缩"}),(0,n.jsx)(i.A,{title:"确定清除长期上下文吗?",onConfirm:()=>{q()},children:(0,n.jsx)(l.Ay,{danger:!0,icon:(0,n.jsx)(y.A,{}),children:"清除"})})]})]}),(0,n.jsx)(h.A,{size:"small",children:(0,n.jsx)(u.A,{title:"总上下文大小",value:(0,C.z3)(D.totalBytes),prefix:(0,n.jsx)(v.A,{}),suffix:" / ".concat(D.count," 条")})}),(0,n.jsxs)(h.A,{size:"small",children:[(0,n.jsxs)("div",{style:{marginBottom:12,color:"var(--colorTextSecondary)",fontSize:13},children:[(0,n.jsx)(S.A,{})," ",e("context.longTermSource")]}),(0,n.jsx)(x.A,{rowKey:"id",columns:R,dataSource:T,loading:a,size:"small",pagination:{pageSize:15}})]}),(0,n.jsx)(g.A,{maskClosable:!1,title:e("models.editModel"),open:E,onCancel:()=>P(!1),onOk:()=>{Q()},confirmLoading:K,okText:e("common.save"),cancelText:e("common.cancel"),children:(0,n.jsxs)(p.A,{layout:"vertical",size:"middle",children:[(0,n.jsx)(p.A.Item,{label:e("context.content"),children:(0,n.jsx)(m.A.TextArea,{rows:6,value:U,onChange:e=>F(e.target.value)})}),(0,n.jsx)(p.A.Item,{label:e("context.source"),children:(0,n.jsx)(m.A,{value:H,onChange:e=>J(e.target.value),placeholder:e("context.sourceHint")})})]})})]})}},36382:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/context/long-term",function(){return a(260)}])},45551:(e,t,a)=>{"use strict";function n(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),a=e/Math.pow(1024,t);return"".concat(a.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let a=Math.floor(Math.floor((Date.now()-e)/1e3)/60),n=Math.floor(a/60),o=Math.floor(n/24);return o>30?new Date(e).toLocaleDateString(t):"en-US"===t?o>0?"".concat(o,"d ago"):n>0?"".concat(n,"h ago"):a>0?"".concat(a,"m ago"):"Just now":o>0?"".concat(o," 天前"):n>0?"".concat(n," 小时前"):a>0?"".concat(a," 分钟前"):"刚刚"}a.d(t,{Jm:()=>s,fw:()=>o,z3:()=>n});let c={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},r={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function s(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===a?r:c)[e])?t:e}}},e=>{e.O(0,[433,787,576,195,985,150,289,455,932,636,593,792],()=>e(e.s=36382)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[893],{260:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>k});var n=a(65321),o=a(97109),c=a(79059),r=a(17807),s=a(11702),l=a(85114),i=a(26171),d=a(33442),m=a(7576),h=a(68787),u=a(54849),x=a(21289),g=a(25258),p=a(63455),f=a(99650),w=a(58209),j=a(30486),A=a(83374),y=a(8383),v=a(26619),S=a(53998),_=a(6578),C=a(45551);let z={project_fact:"项目知识",user_preference:"用户偏好",feedback:"历史纠偏",pattern:"解决方案"},N={high:"red",medium:"orange",low:"default"};function k(){let e=(0,c.Vr)(),{message:t}=r.A.useApp(),[a,k]=(0,o.useState)(!0),[T,b]=(0,o.useState)([]),[D,I]=(0,o.useState)({count:0,totalBytes:0}),[M,B]=(0,o.useState)(""),[E,P]=(0,o.useState)(!1),[O,L]=(0,o.useState)(null),[U,F]=(0,o.useState)(""),[H,J]=(0,o.useState)(""),[K,X]=(0,o.useState)(!1),G=async a=>{k(!0);try{let[e,t]=await Promise.all([(0,_.hn)("long_term",a),(0,_.p)("long_term")]);b(e),I(t)}catch(a){t.error(e("common.error"))}finally{k(!1)}};(0,o.useEffect)(()=>{G()},[]);let V=async a=>{try{await (0,_.xw)(a),t.success(e("common.success")),await G(M)}catch(a){t.error(e("common.error"))}},W=async()=>{try{await (0,_.PH)("long_term"),t.success(e("common.success")),await G(M)}catch(a){t.error(e("common.error"))}},q=async()=>{try{await (0,_.E)("long_term"),t.success(e("common.success")),await G(M)}catch(a){t.error(e("common.error"))}},Q=async()=>{if(O&&U.trim()){X(!0);try{await (0,_.zo)(O.id,{content:U.trim(),context:H||void 0}),t.success(e("common.success")),P(!1),await G(M)}catch(a){t.error(e("common.error"))}finally{X(!1)}}},R=[{title:"序号",key:"index",width:70,render:(e,t,a)=>a+1},{title:e("models.modelName"),dataIndex:"title",ellipsis:!0,width:180},{title:"类型",dataIndex:"type",width:90,render:e=>(0,n.jsx)(s.A,{children:z[e]||e})},{title:e("context.content"),dataIndex:"content",ellipsis:!0},{title:e("context.importance"),dataIndex:"importance",width:80,render:e=>(0,n.jsx)(s.A,{color:N[e]||"default",children:"high"===e?"高":"medium"===e?"中":"低"})},{title:e("context.source"),dataIndex:"source",width:100,ellipsis:!0},{title:e("context.updatedAt"),dataIndex:"updated_at",width:140,render:e=>e?new Date(e).toLocaleString():"-"},{title:e("common.edit"),width:100,render:(t,a)=>(0,n.jsxs)("span",{style:{display:"flex",gap:4},children:[(0,n.jsx)(l.Ay,{size:"small",type:"text",icon:(0,n.jsx)(f.A,{}),onClick:()=>{L(a),F(a.content),J(""),P(!0)}}),(0,n.jsx)(i.A,{title:e("models.deleteProviderConfirm"),onConfirm:()=>{V(a.id)},children:(0,n.jsx)(l.Ay,{size:"small",type:"text",danger:!0,icon:(0,n.jsx)(w.A,{})})})]})}];return(0,n.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"pageTitle",children:e("nav.longTermContext")}),(0,n.jsx)("p",{className:"pageDesc",children:e("context.longTermDesc")})]}),(0,n.jsxs)(d.A,{wrap:!0,children:[(0,n.jsx)(m.A,{prefix:(0,n.jsx)(j.A,{}),placeholder:e("common.search"),value:M,onChange:e=>B(e.target.value),onPressEnter:()=>{G(M)},allowClear:!0,style:{width:240}}),(0,n.jsx)(l.Ay,{icon:(0,n.jsx)(A.A,{}),onClick:()=>{W()},children:"压缩"}),(0,n.jsx)(i.A,{title:"确定清除长期上下文吗?",onConfirm:()=>{q()},children:(0,n.jsx)(l.Ay,{danger:!0,icon:(0,n.jsx)(y.A,{}),children:"清除"})})]})]}),(0,n.jsx)(h.A,{size:"small",children:(0,n.jsx)(u.A,{title:"总上下文大小",value:(0,C.z3)(D.totalBytes),prefix:(0,n.jsx)(v.A,{}),suffix:" / ".concat(D.count," 条")})}),(0,n.jsxs)(h.A,{size:"small",children:[(0,n.jsxs)("div",{style:{marginBottom:12,color:"var(--colorTextSecondary)",fontSize:13},children:[(0,n.jsx)(S.A,{})," ",e("context.longTermSource")]}),(0,n.jsx)(x.A,{rowKey:"id",columns:R,dataSource:T,loading:a,size:"small",pagination:{pageSize:15}})]}),(0,n.jsx)(g.A,{maskClosable:!1,title:e("models.editModel"),open:E,onCancel:()=>P(!1),onOk:()=>{Q()},confirmLoading:K,okText:e("common.save"),cancelText:e("common.cancel"),children:(0,n.jsxs)(p.A,{layout:"vertical",size:"middle",children:[(0,n.jsx)(p.A.Item,{label:e("context.content"),children:(0,n.jsx)(m.A.TextArea,{rows:6,value:U,onChange:e=>F(e.target.value)})}),(0,n.jsx)(p.A.Item,{label:e("context.source"),children:(0,n.jsx)(m.A,{value:H,onChange:e=>J(e.target.value),placeholder:e("context.sourceHint")})})]})})]})}},36382:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/context/long-term",function(){return a(260)}])},45551:(e,t,a)=>{"use strict";function n(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),a=e/Math.pow(1024,t);return"".concat(a.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let a=Math.floor(Math.floor((Date.now()-e)/1e3)/60),n=Math.floor(a/60),o=Math.floor(n/24);return o>30?new Date(e).toLocaleDateString(t):"en-US"===t?o>0?"".concat(o,"d ago"):n>0?"".concat(n,"h ago"):a>0?"".concat(a,"m ago"):"Just now":o>0?"".concat(o," 天前"):n>0?"".concat(n," 小时前"):a>0?"".concat(a," 分钟前"):"刚刚"}a.d(t,{Jm:()=>s,fw:()=>o,z3:()=>n});let c={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},r={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function s(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===a?r:c)[e])?t:e}}},e=>{e.O(0,[433,787,576,195,985,375,102,289,455,932,636,593,792],()=>e(e.s=36382)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{19164:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/context/short-term",function(){return a(51162)}])},45551:(e,t,a)=>{"use strict";function o(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),a=e/Math.pow(1024,t);return"".concat(a.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let a=Math.floor(Math.floor((Date.now()-e)/1e3)/60),o=Math.floor(a/60),n=Math.floor(o/24);return n>30?new Date(e).toLocaleDateString(t):"en-US"===t?n>0?"".concat(n,"d ago"):o>0?"".concat(o,"h ago"):a>0?"".concat(a,"m ago"):"Just now":n>0?"".concat(n," 天前"):o>0?"".concat(o," 小时前"):a>0?"".concat(a," 分钟前"):"刚刚"}a.d(t,{Jm:()=>s,fw:()=>n,z3:()=>o});let r={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},c={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function s(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===a?c:r)[e])?t:e}},51162:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>N});var o=a(65321),n=a(97109),r=a(79059),c=a(17807),s=a(11702),i=a(85114),l=a(26171),d=a(33442),m=a(7576),h=a(68787),u=a(54849),x=a(21289),w=a(25258),f=a(63455),p=a(99650),g=a(58209),j=a(30486),A=a(83374),y=a(8383),v=a(26619),S=a(53998),C=a(6578),_=a(45551);let z={high:"red",medium:"orange",low:"default"};function N(){let e=(0,r.Vr)(),{message:t}=c.A.useApp(),[a,N]=(0,n.useState)(!0),[T,k]=(0,n.useState)([]),[D,M]=(0,n.useState)({count:0,totalBytes:0}),[b,B]=(0,n.useState)(""),[I,E]=(0,n.useState)(!1),[P,O]=(0,n.useState)(null),[L,U]=(0,n.useState)(""),[F,H]=(0,n.useState)(""),[J,K]=(0,n.useState)(!1),X=async a=>{N(!0);try{let[e,t]=await Promise.all([(0,C.hn)("short_term",a),(0,C.p)("short_term")]);k(e),M(t)}catch(a){t.error(e("common.error"))}finally{N(!1)}};(0,n.useEffect)(()=>{X()},[]);let G=async a=>{try{await (0,C.xw)(a),t.success(e("common.success")),await X(b)}catch(a){t.error(e("common.error"))}},V=async()=>{try{await (0,C.PH)("short_term"),t.success(e("common.success")),await X(b)}catch(a){t.error(e("common.error"))}},W=async()=>{try{await (0,C.E)("short_term"),t.success(e("common.success")),await X(b)}catch(a){t.error(e("common.error"))}},q=async()=>{if(P&&L.trim()){K(!0);try{await (0,C.zo)(P.id,{content:L.trim(),context:F||void 0}),t.success(e("common.success")),E(!1),await X(b)}catch(a){t.error(e("common.error"))}finally{K(!1)}}},Q=[{title:"序号",key:"index",width:70,render:(e,t,a)=>a+1},{title:e("models.modelName"),dataIndex:"title",ellipsis:!0,width:180},{title:e("context.importance"),dataIndex:"importance",width:80,render:e=>(0,o.jsx)(s.A,{color:z[e]||"default",children:"high"===e?"高":"medium"===e?"中":"低"})},{title:e("context.content"),dataIndex:"content",ellipsis:!0},{title:e("context.source"),dataIndex:"source",width:120,ellipsis:!0},{title:e("context.updatedAt"),dataIndex:"updated_at",width:140,render:e=>e?new Date(e).toLocaleString():"-"},{title:e("common.edit"),width:100,render:(t,a)=>(0,o.jsxs)("span",{style:{display:"flex",gap:4},children:[(0,o.jsx)(i.Ay,{size:"small",type:"text",icon:(0,o.jsx)(p.A,{}),onClick:()=>{O(a),U(a.content),H(""),E(!0)}}),(0,o.jsx)(l.A,{title:e("models.deleteProviderConfirm"),onConfirm:()=>{G(a.id)},children:(0,o.jsx)(i.Ay,{size:"small",type:"text",danger:!0,icon:(0,o.jsx)(g.A,{})})})]})}];return(0,o.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h1",{className:"pageTitle",children:e("nav.shortTermContext")}),(0,o.jsx)("p",{className:"pageDesc",children:e("context.shortTermDesc")})]}),(0,o.jsxs)(d.A,{wrap:!0,children:[(0,o.jsx)(m.A,{prefix:(0,o.jsx)(j.A,{}),placeholder:e("common.search"),value:b,onChange:e=>B(e.target.value),onPressEnter:()=>{X(b)},allowClear:!0,style:{width:240}}),(0,o.jsx)(i.Ay,{icon:(0,o.jsx)(A.A,{}),onClick:()=>{V()},children:"压缩"}),(0,o.jsx)(l.A,{title:"确定清除短期上下文吗?",onConfirm:()=>{W()},children:(0,o.jsx)(i.Ay,{danger:!0,icon:(0,o.jsx)(y.A,{}),children:"清除"})})]})]}),(0,o.jsx)(h.A,{size:"small",children:(0,o.jsx)(u.A,{title:"总上下文大小",value:(0,_.z3)(D.totalBytes),prefix:(0,o.jsx)(v.A,{}),suffix:" / ".concat(D.count," 条")})}),(0,o.jsxs)(h.A,{size:"small",children:[(0,o.jsxs)("div",{style:{marginBottom:12,color:"var(--colorTextSecondary)",fontSize:13},children:[(0,o.jsx)(S.A,{})," ",e("context.shortTermSource")]}),(0,o.jsx)(x.A,{rowKey:"id",columns:Q,dataSource:T,loading:a,size:"small",pagination:{pageSize:15}})]}),(0,o.jsx)(w.A,{maskClosable:!1,title:e("models.editModel"),open:I,onCancel:()=>E(!1),onOk:()=>{q()},confirmLoading:J,okText:e("common.save"),cancelText:e("common.cancel"),children:(0,o.jsxs)(f.A,{layout:"vertical",size:"middle",children:[(0,o.jsx)(f.A.Item,{label:e("context.content"),children:(0,o.jsx)(m.A.TextArea,{rows:6,value:L,onChange:e=>U(e.target.value)})}),(0,o.jsx)(f.A.Item,{label:e("context.source"),children:(0,o.jsx)(m.A,{value:F,onChange:e=>H(e.target.value),placeholder:e("context.sourceHint")})})]})})]})}}},e=>{e.O(0,[433,787,576,195,985,150,289,455,932,636,593,792],()=>e(e.s=19164)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{19164:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/context/short-term",function(){return a(51162)}])},45551:(e,t,a)=>{"use strict";function o(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),a=e/Math.pow(1024,t);return"".concat(a.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let a=Math.floor(Math.floor((Date.now()-e)/1e3)/60),o=Math.floor(a/60),n=Math.floor(o/24);return n>30?new Date(e).toLocaleDateString(t):"en-US"===t?n>0?"".concat(n,"d ago"):o>0?"".concat(o,"h ago"):a>0?"".concat(a,"m ago"):"Just now":n>0?"".concat(n," 天前"):o>0?"".concat(o," 小时前"):a>0?"".concat(a," 分钟前"):"刚刚"}a.d(t,{Jm:()=>s,fw:()=>n,z3:()=>o});let r={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},c={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function s(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===a?c:r)[e])?t:e}},51162:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>N});var o=a(65321),n=a(97109),r=a(79059),c=a(17807),s=a(11702),i=a(85114),l=a(26171),d=a(33442),m=a(7576),h=a(68787),u=a(54849),x=a(21289),w=a(25258),f=a(63455),p=a(99650),g=a(58209),j=a(30486),A=a(83374),y=a(8383),v=a(26619),S=a(53998),C=a(6578),_=a(45551);let z={high:"red",medium:"orange",low:"default"};function N(){let e=(0,r.Vr)(),{message:t}=c.A.useApp(),[a,N]=(0,n.useState)(!0),[T,k]=(0,n.useState)([]),[D,M]=(0,n.useState)({count:0,totalBytes:0}),[b,B]=(0,n.useState)(""),[I,E]=(0,n.useState)(!1),[P,O]=(0,n.useState)(null),[L,U]=(0,n.useState)(""),[F,H]=(0,n.useState)(""),[J,K]=(0,n.useState)(!1),X=async a=>{N(!0);try{let[e,t]=await Promise.all([(0,C.hn)("short_term",a),(0,C.p)("short_term")]);k(e),M(t)}catch(a){t.error(e("common.error"))}finally{N(!1)}};(0,n.useEffect)(()=>{X()},[]);let G=async a=>{try{await (0,C.xw)(a),t.success(e("common.success")),await X(b)}catch(a){t.error(e("common.error"))}},V=async()=>{try{await (0,C.PH)("short_term"),t.success(e("common.success")),await X(b)}catch(a){t.error(e("common.error"))}},W=async()=>{try{await (0,C.E)("short_term"),t.success(e("common.success")),await X(b)}catch(a){t.error(e("common.error"))}},q=async()=>{if(P&&L.trim()){K(!0);try{await (0,C.zo)(P.id,{content:L.trim(),context:F||void 0}),t.success(e("common.success")),E(!1),await X(b)}catch(a){t.error(e("common.error"))}finally{K(!1)}}},Q=[{title:"序号",key:"index",width:70,render:(e,t,a)=>a+1},{title:e("models.modelName"),dataIndex:"title",ellipsis:!0,width:180},{title:e("context.importance"),dataIndex:"importance",width:80,render:e=>(0,o.jsx)(s.A,{color:z[e]||"default",children:"high"===e?"高":"medium"===e?"中":"低"})},{title:e("context.content"),dataIndex:"content",ellipsis:!0},{title:e("context.source"),dataIndex:"source",width:120,ellipsis:!0},{title:e("context.updatedAt"),dataIndex:"updated_at",width:140,render:e=>e?new Date(e).toLocaleString():"-"},{title:e("common.edit"),width:100,render:(t,a)=>(0,o.jsxs)("span",{style:{display:"flex",gap:4},children:[(0,o.jsx)(i.Ay,{size:"small",type:"text",icon:(0,o.jsx)(p.A,{}),onClick:()=>{O(a),U(a.content),H(""),E(!0)}}),(0,o.jsx)(l.A,{title:e("models.deleteProviderConfirm"),onConfirm:()=>{G(a.id)},children:(0,o.jsx)(i.Ay,{size:"small",type:"text",danger:!0,icon:(0,o.jsx)(g.A,{})})})]})}];return(0,o.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h1",{className:"pageTitle",children:e("nav.shortTermContext")}),(0,o.jsx)("p",{className:"pageDesc",children:e("context.shortTermDesc")})]}),(0,o.jsxs)(d.A,{wrap:!0,children:[(0,o.jsx)(m.A,{prefix:(0,o.jsx)(j.A,{}),placeholder:e("common.search"),value:b,onChange:e=>B(e.target.value),onPressEnter:()=>{X(b)},allowClear:!0,style:{width:240}}),(0,o.jsx)(i.Ay,{icon:(0,o.jsx)(A.A,{}),onClick:()=>{V()},children:"压缩"}),(0,o.jsx)(l.A,{title:"确定清除短期上下文吗?",onConfirm:()=>{W()},children:(0,o.jsx)(i.Ay,{danger:!0,icon:(0,o.jsx)(y.A,{}),children:"清除"})})]})]}),(0,o.jsx)(h.A,{size:"small",children:(0,o.jsx)(u.A,{title:"总上下文大小",value:(0,_.z3)(D.totalBytes),prefix:(0,o.jsx)(v.A,{}),suffix:" / ".concat(D.count," 条")})}),(0,o.jsxs)(h.A,{size:"small",children:[(0,o.jsxs)("div",{style:{marginBottom:12,color:"var(--colorTextSecondary)",fontSize:13},children:[(0,o.jsx)(S.A,{})," ",e("context.shortTermSource")]}),(0,o.jsx)(x.A,{rowKey:"id",columns:Q,dataSource:T,loading:a,size:"small",pagination:{pageSize:15}})]}),(0,o.jsx)(w.A,{maskClosable:!1,title:e("models.editModel"),open:I,onCancel:()=>E(!1),onOk:()=>{q()},confirmLoading:J,okText:e("common.save"),cancelText:e("common.cancel"),children:(0,o.jsxs)(f.A,{layout:"vertical",size:"middle",children:[(0,o.jsx)(f.A.Item,{label:e("context.content"),children:(0,o.jsx)(m.A.TextArea,{rows:6,value:L,onChange:e=>U(e.target.value)})}),(0,o.jsx)(f.A.Item,{label:e("context.source"),children:(0,o.jsx)(m.A,{value:F,onChange:e=>H(e.target.value),placeholder:e("context.sourceHint")})})]})})]})}}},e=>{e.O(0,[433,787,576,195,985,375,102,289,455,932,636,593,792],()=>e(e.s=19164)),_N_E=e.O()}]);