@customize-agent/server 4.59.1 → 4.59.2

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 (96) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +15 -15
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/chunks/1928.js +1 -1
  5. package/.next/server/chunks/{5547.js → 4435.js} +8 -8
  6. package/.next/server/chunks/6321.js +1 -1
  7. package/.next/server/chunks/8204.js +1 -1
  8. package/.next/server/middleware-build-manifest.js +1 -1
  9. package/.next/server/pages/404.html +1 -1
  10. package/.next/server/pages/500.html +1 -1
  11. package/.next/server/pages/api/assets/generated/preview.js +1 -1
  12. package/.next/server/pages/api/assets/generated/preview.js.nft.json +1 -1
  13. package/.next/server/pages/api/assets/generated.js +1 -1
  14. package/.next/server/pages/api/assets/generated.js.nft.json +1 -1
  15. package/.next/server/pages/api/documents/canvas/[id].js +1 -1
  16. package/.next/server/pages/api/documents/canvas/[id].js.nft.json +1 -1
  17. package/.next/server/pages/api/documents/export.js +1 -1
  18. package/.next/server/pages/api/documents/export.js.nft.json +1 -1
  19. package/.next/server/pages/api/documents/generate/preview.js +1 -1
  20. package/.next/server/pages/api/documents/generate/preview.js.nft.json +1 -1
  21. package/.next/server/pages/api/documents/generate.js +1 -1
  22. package/.next/server/pages/api/documents/generate.js.nft.json +1 -1
  23. package/.next/server/pages/api/documents/generated/[id]/events.js +1 -1
  24. package/.next/server/pages/api/documents/generated/[id]/events.js.nft.json +1 -1
  25. package/.next/server/pages/api/documents/generated/[id]/figure/[name].js +1 -1
  26. package/.next/server/pages/api/documents/generated/[id]/figure/[name].js.nft.json +1 -1
  27. package/.next/server/pages/api/documents/generated/[id]/nodes/[nodeId].js +1 -1
  28. package/.next/server/pages/api/documents/generated/[id]/nodes/[nodeId].js.nft.json +1 -1
  29. package/.next/server/pages/api/documents/generated/[id]/nodes.js +1 -1
  30. package/.next/server/pages/api/documents/generated/[id]/nodes.js.nft.json +1 -1
  31. package/.next/server/pages/api/documents/generated/[id]/pause.js +1 -1
  32. package/.next/server/pages/api/documents/generated/[id]/pause.js.nft.json +1 -1
  33. package/.next/server/pages/api/documents/generated/[id]/preview.js +1 -1
  34. package/.next/server/pages/api/documents/generated/[id]/preview.js.nft.json +1 -1
  35. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/confirm.js +1 -1
  36. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/confirm.js.nft.json +1 -1
  37. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/rollback.js +1 -1
  38. package/.next/server/pages/api/documents/generated/[id]/repair/[rid]/rollback.js.nft.json +1 -1
  39. package/.next/server/pages/api/documents/generated/[id]/repair.js +1 -1
  40. package/.next/server/pages/api/documents/generated/[id]/repair.js.nft.json +1 -1
  41. package/.next/server/pages/api/documents/generated/[id]/resume-generate.js +1 -1
  42. package/.next/server/pages/api/documents/generated/[id]/resume-generate.js.nft.json +1 -1
  43. package/.next/server/pages/api/documents/generated/[id].js +1 -1
  44. package/.next/server/pages/api/documents/generated/[id].js.nft.json +1 -1
  45. package/.next/server/pages/api/documents/generated.js +1 -1
  46. package/.next/server/pages/api/documents/generated.js.nft.json +1 -1
  47. package/.next/server/pages/api/kb/files/reindex.js +1 -1
  48. package/.next/server/pages/api/kb/files/reindex.js.nft.json +1 -1
  49. package/.next/server/pages/api/kb/intelligence.js +1 -1
  50. package/.next/server/pages/api/kb/intelligence.js.nft.json +1 -1
  51. package/.next/server/pages/api/kb/reindex.js +1 -1
  52. package/.next/server/pages/api/kb/reindex.js.nft.json +1 -1
  53. package/.next/server/pages/api/kb/upload/complete.js +1 -1
  54. package/.next/server/pages/api/kb/upload/complete.js.nft.json +1 -1
  55. package/.next/server/pages/api/kb/upload.js +1 -1
  56. package/.next/server/pages/api/kb/upload.js.nft.json +1 -1
  57. package/.next/server/pages/api/skills/[id].js +1 -1
  58. package/.next/server/pages/api/skills/[id].js.nft.json +1 -1
  59. package/.next/server/pages/api/skills/validate.js +1 -1
  60. package/.next/server/pages/api/skills/validate.js.nft.json +1 -1
  61. package/.next/server/pages/api/skills.js +1 -1
  62. package/.next/server/pages/api/skills.js.nft.json +1 -1
  63. package/.next/server/pages/api/system/data-health.js +2 -0
  64. package/.next/server/pages/api/system/data-health.js.nft.json +1 -0
  65. package/.next/server/pages/canvas/[id].html +1 -1
  66. package/.next/server/pages/canvas.html +1 -1
  67. package/.next/server/pages/documents.html +1 -1
  68. package/.next/server/pages/guide.html +1 -1
  69. package/.next/server/pages/index.html +1 -1
  70. package/.next/server/pages/knowledge/file-detail.html +1 -1
  71. package/.next/server/pages/knowledge/files.html +1 -1
  72. package/.next/server/pages/knowledge/manage.html +1 -1
  73. package/.next/server/pages/knowledge.html +1 -1
  74. package/.next/server/pages/models.html +1 -1
  75. package/.next/server/pages/overview.html +1 -1
  76. package/.next/server/pages/prompt.html +1 -1
  77. package/.next/server/pages/settings.html +1 -1
  78. package/.next/server/pages/skills.html +1 -1
  79. package/.next/server/pages/system/logs.html +1 -1
  80. package/.next/server/pages-manifest.json +33 -32
  81. package/.next/static/{4xQDkixSretJDM503EzIq → 2MjosIoMmZUcFnY_P02ZD}/_buildManifest.js +1 -1
  82. package/.next/static/chunks/{289-0cccd8131332e041.js → 289-136ebb30e0f6723a.js} +3 -3
  83. package/.next/static/chunks/{426-22c4cedb04b0d45d.js → 426-90638907336adcb8.js} +1 -1
  84. package/.next/static/chunks/530-df2ce692cf0fa512.js +1 -0
  85. package/.next/static/chunks/795-81a3e3973fc43791.js +1 -0
  86. package/.next/static/chunks/pages/{_app-ebb535779b63fd5d.js → _app-c560816f0a8a0815.js} +1 -1
  87. package/.next/static/chunks/pages/knowledge-ca8ad5501faed486.js +1 -0
  88. package/.next/static/chunks/pages/prompt-dd9a9f9105216e2b.js +1 -0
  89. package/.next/static/chunks/pages/system/logs-9deb1217739490af.js +1 -0
  90. package/package.json +1 -1
  91. package/.next/static/chunks/530-6f3f5848c6f702ae.js +0 -1
  92. package/.next/static/chunks/795-9e0cb0bb11e8c89f.js +0 -1
  93. package/.next/static/chunks/pages/knowledge-09dde24cdce1b195.js +0 -1
  94. package/.next/static/chunks/pages/prompt-6a224562d194cb45.js +0 -1
  95. package/.next/static/chunks/pages/system/logs-70790bee46e5a08d.js +0 -1
  96. /package/.next/static/{4xQDkixSretJDM503EzIq → 2MjosIoMmZUcFnY_P02ZD}/_ssgManifest.js +0 -0
@@ -7,7 +7,7 @@
7
7
  `]:{...n(o),animationPlayState:"paused"},[`${i}${e}-leave`]:{...n(o),animationPlayState:"paused"},[`
8
8
  ${i}${e}-enter${e}-enter-active,
9
9
  ${i}${e}-appear${e}-appear-active
10
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}}},5741:(e,t,r)=>{"use strict";function n(e,t){return{motionName:t??`${e}-fade`}}function o(e){let t,r=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{t?.()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}r.d(t,{E:()=>o,V:()=>n})},6551:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},6578:(e,t,r)=>{"use strict";r.d(t,{BO:()=>Z,Bh:()=>J,CU:()=>h,FC:()=>G,G8:()=>v,H1:()=>x,H7:()=>m,HC:()=>s,HT:()=>i,Ho:()=>I,II:()=>q,NH:()=>u,OX:()=>C,QG:()=>R,Qx:()=>f,SJ:()=>b,UE:()=>B,UQ:()=>T,X8:()=>$,Z3:()=>D,_m:()=>L,aP:()=>W,ax:()=>p,bZ:()=>X,c1:()=>d,cQ:()=>S,dd:()=>U,dk:()=>E,dx:()=>w,ef:()=>k,f$:()=>O,h1:()=>_,hH:()=>Q,hc:()=>a,iN:()=>F,le:()=>K,oH:()=>Y,oS:()=>N,r:()=>M,sz:()=>P,tZ:()=>y,tn:()=>c,u6:()=>V,v7:()=>A,vX:()=>z,xC:()=>l,xU:()=>j,xq:()=>g,zr:()=>H});var n=r(55182);async function o(e,t){let r=await fetch(e,t);if(!r.ok){let e=await r.text(),t=e||"HTTP ".concat(r.status);try{let r=JSON.parse(e);t=r.error||r.message||t}catch(i){var n,o;let a=null==(n=e.match(/<script id="__NEXT_DATA__" type="application\/json">([\s\S]*?)<\/script>/u))?void 0:n[1];if(a)try{t=(null==(o=JSON.parse(a.replace(/&quot;/gu,'"')).err)?void 0:o.message)||"HTTP ".concat(r.status)}catch(e){t="HTTP ".concat(r.status)}}throw Error(t)}return r.json()}async function a(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/kb/stats".concat(t))}async function i(e){var t,r;let n=new URLSearchParams;return(null==e?void 0:e.projectRoot)&&n.set("projectRoot",e.projectRoot),(null==e?void 0:e.category)&&n.set("category",e.category),(null==e?void 0:e.page)&&n.set("page",String(null!=(t=e.page)?t:1)),(null==e?void 0:e.limit)&&n.set("limit",String(null!=(r=e.limit)?r:50)),o("/api/kb/files?".concat(n))}async function l(e,t){let r=new URLSearchParams({relativePath:e});return t&&r.set("projectRoot",t),o("/api/kb/files/detail?".concat(r))}async function s(e,t){return o("/api/kb/files/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function c(e,t,r){return o("/api/kb/files/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,target:t,projectRoot:r})})}class u extends Error{constructor(e){super("上传部分成功:".concat(e.succeededBatches,"/").concat(e.totalBatches," 个批次已上传,").concat(e.failedBatches," 个批次失败")),this.name="PartialUploadError",this.succeededBatches=e.succeededBatches,this.failedBatches=e.failedBatches,this.totalBatches=e.totalBatches,this.failures=e.failures}}async function d(e,t,r,a){var i,l;let s=Number(n.env.NEXT_PUBLIC_CUSTOMIZE_KB_UPLOAD_BATCH_FILES||500),c=Number(n.env.NEXT_PUBLIC_CUSTOMIZE_KB_UPLOAD_BATCH_BYTES||0x8000000),d=Math.max(1,Math.min(4,Number(n.env.NEXT_PUBLIC_CUSTOMIZE_KB_UPLOAD_CONCURRENCY||2))),f=[],p=[],m=0,h=0,g=0;for(let t of e)p.length>0&&(p.length>=s||m+t.size>c)&&(f.push({files:p,offset:h}),p=[],m=0,h=g),p.push(t),m+=t.size,g+=1;p.length>0&&f.push({files:p,offset:h});let b=[],y=[],v=0,$=0;async function x(n){let i,l=f[n],s=new URLSearchParams({batchIndex:String(n),totalBatches:String(f.length)});r&&s.set("uploadId",r);for(let c=0;c<2;c++)try{let i=await o("/api/kb/upload?".concat(s),{method:"POST",body:function(e,t){var r;let n=new FormData;for(let o of(t.projectRoot&&n.append("projectRoot",t.projectRoot),t.uploadId&&n.append("uploadId",t.uploadId),n.append("batchIndex",String(t.batchIndex)),n.append("totalBatches",String(t.totalBatches)),n.append("fileOffset",String(t.fileOffset)),n.append("startIndex",t.startIndex?"1":"0"),n.append("uploadComplete",(null!=(r=t.uploadComplete)?r:t.batchIndex===t.totalBatches-1)?"1":"0"),e))n.append("files",o,o.name),n.append("relativePaths",o.webkitRelativePath||o.name);return n}(l.files,{projectRoot:t,uploadId:r,batchIndex:n,totalBatches:f.length,fileOffset:l.offset,startIndex:0===n,uploadComplete:1===f.length})});b[n]=i,v+=l.files.length,null==a||a({uploadedFiles:v,totalFiles:e.length,batchIndex:n,totalBatches:f.length});return}catch(e){i=e instanceof Error?e:Error(String(e))}y.push({batchIndex:n,files:l.files.slice(0,5).map(e=>e.name),message:(null==i?void 0:i.message)||"上传失败"}),null==a||a({uploadedFiles:v,totalFiles:e.length,batchIndex:n,totalBatches:f.length})}let w=Array.from({length:Math.min(d,f.length)},async()=>{for(;$<f.length;){let e=$++;await x(e)}});await Promise.all(w);let C=f.length-y.length;if(y.length>0&&0===C)throw Error((null==(i=y[0])?void 0:i.message)||"上传失败");if(f.length>1&&C>0){let e=await o("/api/kb/upload/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:t,uploadId:r})});b.push(e)}if(y.length>0)throw new u({succeededBatches:C,failedBatches:y.length,totalBatches:f.length,failures:y});return null!=(l=b.filter(Boolean).at(-1))?l:{success:!0}}async function f(e){let t=new URLSearchParams({limit:"50"});return e&&t.set("projectRoot",e),o("/api/kb/operations?".concat(t))}async function p(e,t){let r=new URLSearchParams;return t&&r.set("projectRoot",t),o("/api/jobs/".concat(encodeURIComponent(e),"?").concat(r))}async function m(e){let t=new URLSearchParams;return e&&t.set("projectRoot",e),o("/api/kb/operations?".concat(t),{method:"DELETE"})}async function h(e,t){let r=new URLSearchParams({id:e});return t&&r.set("projectRoot",t),o("/api/kb/operations?".concat(r),{method:"DELETE"})}async function g(e,t){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function b(e,t){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePaths:e,projectRoot:t})})}async function y(e,t,r){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePaths:e,folderPaths:t,projectRoot:r})})}async function v(e){let t=await fetch("/api/kb/files/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let e="导出失败 (".concat(t.status,")");try{let r=await t.json();(null==r?void 0:r.error)&&(e=r.error)}catch(e){}throw Error(e)}let r=await t.blob(),n=t.headers.get("content-disposition")||"",o=/filename\*=(?:UTF-8'')?([^;]+)/iu.exec(n);return{blob:r,fileName:(null==o?void 0:o[1])?decodeURIComponent(o[1]):"kb-export.txt",exported:Number(t.headers.get("x-export-count")||0),skipped:Number(t.headers.get("x-export-skipped")||0)}}async function $(e){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0,projectRoot:e})})}async function x(e){return o("/api/kb/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:e})})}async function w(){return o("/api/prompt")}async function C(e){return o("/api/documents/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function E(e){return o("/api/documents/generate/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function k(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/kb/material-groups".concat(t))}async function S(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/documents/generated".concat(t))}async function A(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=new URLSearchParams;t&&i.set("lite","1"),r&&i.set("projectRoot",r),void 0!==a&&Number.isFinite(a)&&i.set("ifUpdatedSince",String(a));let l=i.toString()?"?".concat(i.toString()):"";return o("/api/documents/generated/".concat(encodeURIComponent(e)).concat(l),{signal:n})}async function P(e,t,r){let n=new URLSearchParams;t&&n.set("projectRoot",t);let a=n.toString()?"?".concat(n.toString()):"";return o("/api/documents/generated/".concat(encodeURIComponent(e),"/preview").concat(a),{signal:r})}async function R(e,t){let r=t?"?projectRoot=".concat(encodeURIComponent(t)):"";return o("/api/documents/generated/".concat(encodeURIComponent(e)).concat(r),{method:"DELETE"})}async function M(e,t){return o("/api/documents/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"abort",documentId:e,projectRoot:t})})}async function T(e,t){return o("/api/documents/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"resume",documentId:e,projectRoot:t})})}async function O(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/assets/generated".concat(t))}async function N(e,t,r){return o("/api/assets/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,action:"open",target:t,projectRoot:r})})}function F(e,t){let r=t?"&projectRoot=".concat(encodeURIComponent(t)):"";return"/api/assets/generated/preview?id=".concat(encodeURIComponent(e)).concat(r)}async function j(e){let{documentId:t,...r}=e;return o("/api/documents/generated/".concat(encodeURIComponent(t),"/repair"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}async function I(e){let{documentId:t,requestId:r,...n}=e;return o("/api/documents/generated/".concat(encodeURIComponent(t),"/repair/").concat(encodeURIComponent(r),"/confirm"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}async function z(e){let{documentId:t,requestId:r,...n}=e;return o("/api/documents/generated/".concat(encodeURIComponent(t),"/repair/").concat(encodeURIComponent(r),"/rollback"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}async function B(e){var t;let r,n,o=await fetch("/api/documents/export",{method:"POST",headers:{"Content-Type":"application/json",Accept:"pdf"===e.format?"application/pdf":"*/*"},body:JSON.stringify(e)}),a=o.headers.get("content-type")||"",i=async()=>{let e=await o.text(),t=e||"导出失败";try{var r;let n=JSON.parse(e),o=null==(r=n.issues)?void 0:r.map(e=>e.message).filter(Boolean).slice(0,3).join(";");t=n.message||(o?"".concat(n.error||"导出失败",":").concat(o):n.error||t)}catch(e){}throw Error(t.length>300?"".concat(t.slice(0,300),"..."):t)};o.ok||await i(),"pdf"!==e.format||a.includes("application/pdf")||await i(),"docx"!==e.format||a.includes("officedocument.wordprocessingml.document")||await i();let l="true"===o.headers.get("X-Export-Not-Deliverable"),s=o.headers.get("X-Export-Gate-Issues")||"";try{r=s?JSON.parse(decodeURIComponent(s)):[]}catch(e){r=[]}let c=o.headers.get("content-disposition")||"",u=null==(t=/filename\*=UTF-8''([^;]+)/iu.exec(c))?void 0:t[1];try{n=u?decodeURIComponent(u):void 0}catch(e){n=void 0}return{blob:await o.blob(),filename:n,notDeliverable:l,gateIssues:r}}async function D(){return o("/api/config/providers")}async function L(e,t){return o("/api/config/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,...t})})}async function _(e){return o("/api/config/providers/".concat(encodeURIComponent(e)),{method:"DELETE"})}async function H(){return o("/api/config/models")}async function W(e){return o("/api/config/models",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function q(){return o("/api/config/embedding")}async function U(e){return o("/api/config/embedding",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function V(){return o("/api/config/embedding/healthCheck",{method:"POST"})}async function X(e){return o("/api/config/healthCheck",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e})})}async function K(){return o("/api/health")}async function G(){return o("/api/system/stats")}async function Y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return o("/api/system/logs?limit=".concat(e))}async function Q(){return o("/api/system/logs",{method:"DELETE"})}async function Z(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/kb/categories".concat(t))}async function J(e){return o("/api/config/providers/".concat(encodeURIComponent(e)))}},6831:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,X:()=>a});var n=r(97109);let o=n.createContext(!1),a=({children:e,disabled:t})=>{let r=n.useContext(o);return n.createElement(o.Provider,{value:t??r},e)},i=o},7709:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,Is:()=>u});var n=r(97109),o=r(15561),a=r(74567),i=r(12754),l=r(18625),s=r(9311),c=r(44444);let u={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},d={motionBase:!0,motionUnit:!0},f={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},p=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...a}=t,i={...n,override:o};return i=(0,c.A)(i),a&&Object.entries(a).forEach(([e,t])=>{let{theme:r,...n}=t,o=n;r&&(o=p({...i,...n},{override:n},r)),i[e]=o}),i};function m(){let{token:e,hashed:t,theme:r,override:c,cssVar:m,zeroRuntime:h}=n.useContext(i.vG),{csp:g,getPrefixCls:b}=n.useContext(a.QO),y={prefix:m?.prefix??b(),key:m?.key??"css-var-root"},v=`6.5.0-${t||""}`,$=r||l.A,[x,w,C]=(0,o.hV)($,[s.A,e],{salt:v,override:c,getComputedToken:p,cssVar:{...y,unitless:u,ignore:d,preserve:f},nonce:g?.nonce});return[$,C,t?w:"",x,y,!!h]}},7961:(e,t,r)=>{"use strict";r.d(t,{K8:()=>u,L9:()=>o,Nk:()=>i,Y1:()=>m,av:()=>d,dF:()=>a,jk:()=>c,jz:()=>p,t6:()=>s,vj:()=>f});var n=r(15561);let o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=new n.Mo("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=(e,t)=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),u=(e,t)=>({"&:focus-visible":c(e,t)}),d=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...u(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),f=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return!1!==n&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...l,...i,[o]:i}}},p=e=>({[`.${e}`]:{...i(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:l,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),m=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...u(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}})},8572:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(90892);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||(0,n.A)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8627:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(13911),o=r(26047);let a={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},l=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:s,offset:c,borderRadius:u,visibleFirst:d}=e,f=t/2,p={},m=(0,n.Ke)({contentRadius:u,limitVerticalRadius:!0});return Object.keys(a).forEach(e=>{let n={...s&&i[e]||a[e],offset:[0,0],dynamicInset:!0};switch(p[e]=n,l.has(e)&&(n.autoArrow=!1),e){case"top":case"topLeft":case"topRight":n.offset[1]=-f-c;break;case"bottom":case"bottomLeft":case"bottomRight":n.offset[1]=f+c;break;case"left":case"leftTop":case"leftBottom":n.offset[0]=-f-c;break;case"right":case"rightTop":case"rightBottom":n.offset[0]=f+c}if(s)switch(e){case"topLeft":case"bottomLeft":n.offset[0]=-m.arrowOffsetHorizontal-f;break;case"topRight":case"bottomRight":n.offset[0]=m.arrowOffsetHorizontal+f;break;case"leftTop":case"rightTop":n.offset[1]=-(2*m.arrowOffsetHorizontal)+f;break;case"leftBottom":case"rightBottom":n.offset[1]=2*m.arrowOffsetHorizontal-f}n.overflow=function(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let a=(0,o.Qd)(n)?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+r,i.shiftX=!0,i.adjustX=!0}let l={...i,...a};return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}(e,m,t,r),d&&(n.htmlRegion="visibleFirst")}),p}},9290:(e,t,r)=>{"use strict";r.d(t,{A:()=>H});var n=r(97109),o=r(42644),a=r(3638),i=r(92162),l=r(26047),s=r(38862),c=r(74567),u=r(6831),d=r(27273),f=r(49644),p=r(7709);let m=n.createContext(void 0);var h=r(86099),g=r(83914),b=r(67189);let y=(0,n.forwardRef)((e,t)=>{let{className:r,style:o,children:i,prefixCls:l}=e,s=(0,a.$)(`${l}-icon`,r);return n.createElement("span",{ref:t,className:s,style:o},i)}),v=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:i,iconClassName:l}=e,s=(0,a.$)(`${r}-loading-icon`,o);return n.createElement(y,{prefixCls:r,className:s,style:i,ref:t},n.createElement(g.A,{className:l}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),x=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),w=e=>{let{prefixCls:t,loading:r,existIcon:o,className:i,style:l,mount:s}=e;return o?n.createElement(v,{prefixCls:t,className:i,style:l}):n.createElement(b.Ay,{visible:!!r,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:$,onAppearActive:x,onEnterStart:$,onEnterActive:x,onLeaveStart:x,onLeaveActive:$},({className:e,style:r},o)=>{let s={...l,...r};return n.createElement(v,{prefixCls:t,className:(0,a.$)(i,e),style:s,ref:o})})};var C=r(15561),E=r(7961),k=r(16666),S=r(28403),A=r(10540);let P=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var R=r(38697),M=r(32154),T=r(78012),O=r(44539),N=r(32279);let F=e=>{let{paddingInline:t,onlyIconSize:r,borderColorDisabled:n}=e;return(0,S.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:n})},j=e=>{let t=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??(0,O.k)(t),a=e.contentLineHeightSM??(0,O.k)(r),i=e.contentLineHeightLG??(0,O.k)(n),l=(0,M.z)(new R.kf(e.colorBgSolid),"#fff")?"#000":"#fff",s=T.s.reduce((t,r)=>({...t,[`${r}ShadowColor`]:`0 ${(0,C.zA)(e.controlOutlineWidth)} 0 ${(0,N.A)(e[`${r}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...s,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:r,contentFontSizeLG:n,contentLineHeight:o,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u}},I=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${(0,C.zA)(s)} ${(0,C.zA)(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[l]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:{minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},z=(0,A.OF)("Button",e=>{let t=F(e);return[(e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...(0,k.V)(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,E.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,E.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}})(t),(e=>I((0,S.oX)(e,{fontSize:e.contentFontSize}),e.componentCls))(t),(e=>I((0,S.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`))(t),(e=>I((0,S.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`))(t),(e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}})(t),(e=>{let{componentCls:t,antCls:r,lineWidth:n}=e,[o,a]=(0,A.PN)(r,"btn");return{[t]:[{[o("border-width")]:n,[o("border-color")]:"#000",[o("border-color-hover")]:a("border-color"),[o("border-color-active")]:a("border-color"),[o("border-color-disabled")]:a("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color"),[o("text-color-disabled")]:a("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:a("bg-color"),[o("bg-color-active")]:a("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[a("border-width"),a("border-style"),a("border-color")].join(" "),color:a("text-color"),backgroundColor:a("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a("border-width"),a("border-style"),a("border-color-hover")].join(" "),color:a("text-color-hover"),backgroundColor:a("bg-color-hover")},"&:active":{border:[a("border-width"),a("border-style"),a("border-color-active")].join(" "),color:a("text-color-active"),backgroundColor:a("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:a("color-base"),[o("solid-bg-color-hover")]:a("color-hover"),[o("solid-bg-color-active")]:a("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:a("solid-bg-color"),[o("bg-color-hover")]:a("solid-bg-color-hover"),[o("bg-color-active")]:a("solid-bg-color-active"),boxShadow:a("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:a("color-base"),[o("border-color-hover")]:a("color-hover"),[o("border-color-active")]:a("color-active"),[o("bg-color")]:a("bg-color-container"),[o("text-color")]:a("color-base"),[o("text-color-hover")]:a("color-hover"),[o("text-color-active")]:a("color-active"),boxShadow:a("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:a("color-base"),[o("bg-color")]:a("color-light"),[o("bg-color-hover")]:a("color-light-hover"),[o("bg-color-active")]:a("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:a("color-base"),[o("text-color-hover")]:a("color-hover"),[o("text-color-active")]:a("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:a("color-light"),[o("bg-color-active")]:a("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},T.s.map(r=>{let n=e[`${r}6`],a=e[`${r}1`],i=e[`${r}Hover`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}Active`],u=e[`${r}ShadowColor`];return{[`&${t}-color-${r}`]:{[o("color-base")]:n,[o("color-hover")]:i,[o("color-active")]:c,[o("color-light")]:a,[o("color-light-hover")]:l,[o("color-light-active")]:s,[o("shadow")]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:a("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}})(t),(e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},P(`${t}-primary`,o),P(`${t}-danger`,a)]}})(t)]},j,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var B=r(77032);let D=(0,A.bf)(["Button","compact"],e=>{let t=F(e);return[(0,B.G)(t),function(e){var t,r;let n=`${e.componentCls}-compact-vertical`;return{[n]:{...(t=e.componentCls,{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${t}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}),...(r=e.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}}}(t),(e=>{let{antCls:t,componentCls:r,lineWidth:n,calc:o,colorBgContainer:a}=e,i=`${r}-variant-solid:not([disabled])`,l=o(n).mul(-1).equal(),[s,c]=(0,A.PN)(t,"btn"),u=e=>({[`${r}-compact${e?"-vertical":""}-item`]:{[s("compact-connect-border-color")]:c("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:l,insetInline:l,height:n}:{insetBlock:l,insetInlineStart:l,width:n}],"&:hover:before":{display:"none"}}}});return[u(),u(!0),{[`${i}${r}-color-default`]:{[s("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${a})`}}]})(t)]},j),L={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},_=n.forwardRef((e,t)=>{let r,{_skipSemantic:p,loading:g=!1,prefixCls:b,color:v,variant:$,type:x,danger:C=!1,shape:E,size:k,disabled:S,className:A,rootClassName:P,children:R,icon:M,iconPosition:T,iconPlacement:O,ghost:N=!1,block:F=!1,htmlType:j="button",classNames:I,styles:B,style:_,autoInsertSpace:H,autoFocus:W,...q}=e,U=(0,o.$r)(R),V=x||"default",{getPrefixCls:X,direction:K,autoInsertSpace:G,className:Y,style:Q,classNames:Z,styles:J,loadingIcon:ee,shape:et,color:er,variant:en}=(0,c.TP)("button"),eo=E||et||"default",[ea,ei]=(0,n.useMemo)(()=>{if(v&&$)return[v,$];if(x||C){let e=L[V]||[];return C?["danger",e[1]]:e}return"solid"===$?["primary",$]:er&&en?[er,en]:"solid"===en?["primary",en]:["default","outlined"]},[v,$,x,C,er,en,V]),[el,es]=(0,n.useMemo)(()=>N&&"solid"===ei?[ea,"outlined"]:[ea,ei],[ea,ei,N]),ec="danger"===el,eu=ec?"dangerous":el,ed=H??G??!0,ef=X("btn",b),[ep,em]=z(ef),eh=(0,n.useContext)(u.A),eg=S??eh,eb=(0,n.useContext)(m),ey=(0,n.useMemo)(()=>(function(e){if((0,l.Qd)(e)){let t=e?.delay;return{loading:(t=(0,l.Et)(t)?t:0)<=0,delay:t}}return{loading:!!e,delay:0}})(g),[g]),[ev,e$]=(0,n.useState)(ey.loading),[ex,ew]=(0,n.useState)(!1),eC=(0,n.useRef)(null),eE=(0,o.xK)(t,eC),ek=1===U.length&&!M&&!(0,h.u1)(es),eS=(0,n.useRef)(!0);n.useEffect(()=>(eS.current=!1,()=>{eS.current=!0}),[]),(0,o.Nf)(()=>{let e=null;return ey.delay>0?e=setTimeout(()=>{e=null,e$(!0)},ey.delay):e$(ey.loading),function(){e&&(clearTimeout(e),e=null)}},[ey.delay,ey.loading]),(0,n.useEffect)(()=>{if(!eC.current||!ed)return;let e=eC.current.textContent||"";ek&&(0,h.Ap)(e)?ex||ew(!0):ex&&ew(!1)}),(0,n.useEffect)(()=>{W&&eC.current&&eC.current.focus()},[]);let eA=n.useCallback(t=>{if(ev||eg)return void t.preventDefault();e.onClick?.(("href"in e,t))},[e.onClick,ev,eg]),{compactSize:eP,compactItemClassnames:eR}=(0,f.RQ)(ef,K),eM=(0,d.A)(e=>k??eP??eb??e),eT=ev?"loading":M,eO=O??T??"start",eN=(0,o.cJ)(q,["navigate"]),eF={...e,type:V,color:el,variant:es,danger:ec,shape:eo,size:eM,disabled:eg,loading:ev,iconPlacement:eO},ej=(0,i.XT)(Q),eI=(0,i.XT)(_),[ez,eB]=(0,i.AV)([p?void 0:Z,I],[p?void 0:J,ej,B,eI],{props:eF}),eD=(0,a.$)(ef,ep,em,{[`${ef}-${eo}`]:"default"!==eo&&"square"!==eo&&eo,[`${ef}-${V}`]:V,[`${ef}-dangerous`]:C,[`${ef}-color-${eu}`]:eu,[`${ef}-variant-${es}`]:es,[`${ef}-lg`]:"large"===eM,[`${ef}-sm`]:"small"===eM,[`${ef}-icon-only`]:!R&&0!==R&&!!eT,[`${ef}-background-ghost`]:N&&!(0,h.u1)(es),[`${ef}-loading`]:ev,[`${ef}-two-chinese-chars`]:ex&&ed&&!ev,[`${ef}-block`]:F,[`${ef}-rtl`]:"rtl"===K,[`${ef}-icon-end`]:"end"===eO},eR,A,P,Y,ez.root),eL={className:ez.icon,style:eB.icon},e_=e=>n.createElement(y,{prefixCls:ef,...eL},e),eH=n.createElement(w,{existIcon:!!M,prefixCls:ef,loading:ev,mount:eS.current,...eL}),eW=(0,l.Qd)(g)&&g.icon||ee;r=M&&!ev?e_(M):g&&eW?e_(eW):eH;let eq=(0,l.AZ)(R)?(0,h.uR)(R,ek&&ed,eB.content,ez.content):null;if(void 0!==eN.href)return n.createElement("a",{...eN,className:(0,a.$)(eD,{[`${ef}-disabled`]:eg}),href:eg?void 0:eN.href,style:eB.root,onClick:eA,ref:eE,tabIndex:eg?-1:0,"aria-disabled":eg},r,eq);let eU=n.createElement("button",{...q,type:j,className:eD,style:eB.root,onClick:eA,disabled:eg,ref:eE},r,eq,eR&&n.createElement(D,{prefixCls:ef}));return(0,h.u1)(es)||(eU=n.createElement(s.A,{component:"Button",disabled:ev},eU)),eU});_.Group=e=>{let{getPrefixCls:t,direction:r}=n.useContext(c.QO),{prefixCls:o,size:i,className:l,...s}=e,u=t("btn-group",o),[,,d]=(0,p.Ay)(),f=n.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),h=(0,a.$)(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===r},l,d);return n.createElement(m.Provider,{value:i},n.createElement("div",{...s,className:h}))},_.__ANT_BUTTON=!0;let H=_},9311:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,r:()=>n});let n={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o={...n,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
10
+ `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}}},5741:(e,t,r)=>{"use strict";function n(e,t){return{motionName:t??`${e}-fade`}}function o(e){let t,r=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{t?.()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}r.d(t,{E:()=>o,V:()=>n})},6551:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},6578:(e,t,r)=>{"use strict";r.d(t,{BO:()=>Z,Bh:()=>J,CU:()=>h,FC:()=>G,G8:()=>v,H1:()=>x,H7:()=>m,HC:()=>s,HT:()=>i,Ho:()=>I,II:()=>q,NH:()=>u,OX:()=>C,QG:()=>R,Qx:()=>f,SJ:()=>b,UE:()=>B,UQ:()=>T,X8:()=>$,Z3:()=>D,_m:()=>L,aP:()=>W,ax:()=>p,bZ:()=>X,c1:()=>d,cQ:()=>S,dd:()=>U,dk:()=>E,dx:()=>w,ef:()=>k,f$:()=>O,fc:()=>et,h1:()=>_,hH:()=>Q,hc:()=>a,iN:()=>F,le:()=>K,nn:()=>ee,oH:()=>Y,oS:()=>N,r:()=>M,sz:()=>P,tZ:()=>y,tn:()=>c,u6:()=>V,v7:()=>A,vX:()=>z,xC:()=>l,xU:()=>j,xq:()=>g,zr:()=>H});var n=r(55182);async function o(e,t){let r=await fetch(e,t);if(!r.ok){let e=await r.text(),t=e||"HTTP ".concat(r.status);try{let r=JSON.parse(e);t=r.error||r.message||t}catch(i){var n,o;let a=null==(n=e.match(/<script id="__NEXT_DATA__" type="application\/json">([\s\S]*?)<\/script>/u))?void 0:n[1];if(a)try{t=(null==(o=JSON.parse(a.replace(/&quot;/gu,'"')).err)?void 0:o.message)||"HTTP ".concat(r.status)}catch(e){t="HTTP ".concat(r.status)}}throw Error(t)}return r.json()}async function a(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/kb/stats".concat(t))}async function i(e){var t,r;let n=new URLSearchParams;return(null==e?void 0:e.projectRoot)&&n.set("projectRoot",e.projectRoot),(null==e?void 0:e.category)&&n.set("category",e.category),(null==e?void 0:e.page)&&n.set("page",String(null!=(t=e.page)?t:1)),(null==e?void 0:e.limit)&&n.set("limit",String(null!=(r=e.limit)?r:50)),o("/api/kb/files?".concat(n))}async function l(e,t){let r=new URLSearchParams({relativePath:e});return t&&r.set("projectRoot",t),o("/api/kb/files/detail?".concat(r))}async function s(e,t){return o("/api/kb/files/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function c(e,t,r){return o("/api/kb/files/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,target:t,projectRoot:r})})}class u extends Error{constructor(e){super("上传部分成功:".concat(e.succeededBatches,"/").concat(e.totalBatches," 个批次已上传,").concat(e.failedBatches," 个批次失败")),this.name="PartialUploadError",this.succeededBatches=e.succeededBatches,this.failedBatches=e.failedBatches,this.totalBatches=e.totalBatches,this.failures=e.failures}}async function d(e,t,r,a){var i,l;let s=Number(n.env.NEXT_PUBLIC_CUSTOMIZE_KB_UPLOAD_BATCH_FILES||500),c=Number(n.env.NEXT_PUBLIC_CUSTOMIZE_KB_UPLOAD_BATCH_BYTES||0x8000000),d=Math.max(1,Math.min(4,Number(n.env.NEXT_PUBLIC_CUSTOMIZE_KB_UPLOAD_CONCURRENCY||2))),f=[],p=[],m=0,h=0,g=0;for(let t of e)p.length>0&&(p.length>=s||m+t.size>c)&&(f.push({files:p,offset:h}),p=[],m=0,h=g),p.push(t),m+=t.size,g+=1;p.length>0&&f.push({files:p,offset:h});let b=[],y=[],v=0,$=0;async function x(n){let i,l=f[n],s=new URLSearchParams({batchIndex:String(n),totalBatches:String(f.length)});r&&s.set("uploadId",r);for(let c=0;c<2;c++)try{let i=await o("/api/kb/upload?".concat(s),{method:"POST",body:function(e,t){var r;let n=new FormData;for(let o of(t.projectRoot&&n.append("projectRoot",t.projectRoot),t.uploadId&&n.append("uploadId",t.uploadId),n.append("batchIndex",String(t.batchIndex)),n.append("totalBatches",String(t.totalBatches)),n.append("fileOffset",String(t.fileOffset)),n.append("startIndex",t.startIndex?"1":"0"),n.append("uploadComplete",(null!=(r=t.uploadComplete)?r:t.batchIndex===t.totalBatches-1)?"1":"0"),e))n.append("files",o,o.name),n.append("relativePaths",o.webkitRelativePath||o.name);return n}(l.files,{projectRoot:t,uploadId:r,batchIndex:n,totalBatches:f.length,fileOffset:l.offset,startIndex:0===n,uploadComplete:1===f.length})});b[n]=i,v+=l.files.length,null==a||a({uploadedFiles:v,totalFiles:e.length,batchIndex:n,totalBatches:f.length});return}catch(e){i=e instanceof Error?e:Error(String(e))}y.push({batchIndex:n,files:l.files.slice(0,5).map(e=>e.name),message:(null==i?void 0:i.message)||"上传失败"}),null==a||a({uploadedFiles:v,totalFiles:e.length,batchIndex:n,totalBatches:f.length})}let w=Array.from({length:Math.min(d,f.length)},async()=>{for(;$<f.length;){let e=$++;await x(e)}});await Promise.all(w);let C=f.length-y.length;if(y.length>0&&0===C)throw Error((null==(i=y[0])?void 0:i.message)||"上传失败");if(f.length>1&&C>0){let e=await o("/api/kb/upload/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:t,uploadId:r})});b.push(e)}if(y.length>0)throw new u({succeededBatches:C,failedBatches:y.length,totalBatches:f.length,failures:y});return null!=(l=b.filter(Boolean).at(-1))?l:{success:!0}}async function f(e){let t=new URLSearchParams({limit:"50"});return e&&t.set("projectRoot",e),o("/api/kb/operations?".concat(t))}async function p(e,t){let r=new URLSearchParams;return t&&r.set("projectRoot",t),o("/api/jobs/".concat(encodeURIComponent(e),"?").concat(r))}async function m(e){let t=new URLSearchParams;return e&&t.set("projectRoot",e),o("/api/kb/operations?".concat(t),{method:"DELETE"})}async function h(e,t){let r=new URLSearchParams({id:e});return t&&r.set("projectRoot",t),o("/api/kb/operations?".concat(r),{method:"DELETE"})}async function g(e,t){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function b(e,t){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePaths:e,projectRoot:t})})}async function y(e,t,r){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePaths:e,folderPaths:t,projectRoot:r})})}async function v(e){let t=await fetch("/api/kb/files/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let e="导出失败 (".concat(t.status,")");try{let r=await t.json();(null==r?void 0:r.error)&&(e=r.error)}catch(e){}throw Error(e)}let r=await t.blob(),n=t.headers.get("content-disposition")||"",o=/filename\*=(?:UTF-8'')?([^;]+)/iu.exec(n);return{blob:r,fileName:(null==o?void 0:o[1])?decodeURIComponent(o[1]):"kb-export.txt",exported:Number(t.headers.get("x-export-count")||0),skipped:Number(t.headers.get("x-export-skipped")||0)}}async function $(e){return o("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0,projectRoot:e})})}async function x(e){return o("/api/kb/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:e})})}async function w(){return o("/api/prompt")}async function C(e){return o("/api/documents/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function E(e){return o("/api/documents/generate/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function k(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/kb/material-groups".concat(t))}async function S(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/documents/generated".concat(t))}async function A(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=new URLSearchParams;t&&i.set("lite","1"),r&&i.set("projectRoot",r),void 0!==a&&Number.isFinite(a)&&i.set("ifUpdatedSince",String(a));let l=i.toString()?"?".concat(i.toString()):"";return o("/api/documents/generated/".concat(encodeURIComponent(e)).concat(l),{signal:n})}async function P(e,t,r){let n=new URLSearchParams;t&&n.set("projectRoot",t);let a=n.toString()?"?".concat(n.toString()):"";return o("/api/documents/generated/".concat(encodeURIComponent(e),"/preview").concat(a),{signal:r})}async function R(e,t){let r=t?"?projectRoot=".concat(encodeURIComponent(t)):"";return o("/api/documents/generated/".concat(encodeURIComponent(e)).concat(r),{method:"DELETE"})}async function M(e,t){return o("/api/documents/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"abort",documentId:e,projectRoot:t})})}async function T(e,t){return o("/api/documents/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"resume",documentId:e,projectRoot:t})})}async function O(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/assets/generated".concat(t))}async function N(e,t,r){return o("/api/assets/generated",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,action:"open",target:t,projectRoot:r})})}function F(e,t){let r=t?"&projectRoot=".concat(encodeURIComponent(t)):"";return"/api/assets/generated/preview?id=".concat(encodeURIComponent(e)).concat(r)}async function j(e){let{documentId:t,...r}=e;return o("/api/documents/generated/".concat(encodeURIComponent(t),"/repair"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}async function I(e){let{documentId:t,requestId:r,...n}=e;return o("/api/documents/generated/".concat(encodeURIComponent(t),"/repair/").concat(encodeURIComponent(r),"/confirm"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}async function z(e){let{documentId:t,requestId:r,...n}=e;return o("/api/documents/generated/".concat(encodeURIComponent(t),"/repair/").concat(encodeURIComponent(r),"/rollback"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}async function B(e){var t;let r,n,o=await fetch("/api/documents/export",{method:"POST",headers:{"Content-Type":"application/json",Accept:"pdf"===e.format?"application/pdf":"*/*"},body:JSON.stringify(e)}),a=o.headers.get("content-type")||"",i=async()=>{let e=await o.text(),t=e||"导出失败";try{var r;let n=JSON.parse(e),o=null==(r=n.issues)?void 0:r.map(e=>e.message).filter(Boolean).slice(0,3).join(";");t=n.message||(o?"".concat(n.error||"导出失败",":").concat(o):n.error||t)}catch(e){}throw Error(t.length>300?"".concat(t.slice(0,300),"..."):t)};o.ok||await i(),"pdf"!==e.format||a.includes("application/pdf")||await i(),"docx"!==e.format||a.includes("officedocument.wordprocessingml.document")||await i();let l="true"===o.headers.get("X-Export-Not-Deliverable"),s=o.headers.get("X-Export-Gate-Issues")||"";try{r=s?JSON.parse(decodeURIComponent(s)):[]}catch(e){r=[]}let c=o.headers.get("content-disposition")||"",u=null==(t=/filename\*=UTF-8''([^;]+)/iu.exec(c))?void 0:t[1];try{n=u?decodeURIComponent(u):void 0}catch(e){n=void 0}return{blob:await o.blob(),filename:n,notDeliverable:l,gateIssues:r}}async function D(){return o("/api/config/providers")}async function L(e,t){return o("/api/config/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,...t})})}async function _(e){return o("/api/config/providers/".concat(encodeURIComponent(e)),{method:"DELETE"})}async function H(){return o("/api/config/models")}async function W(e){return o("/api/config/models",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function q(){return o("/api/config/embedding")}async function U(e){return o("/api/config/embedding",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function V(){return o("/api/config/embedding/healthCheck",{method:"POST"})}async function X(e){return o("/api/config/healthCheck",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e})})}async function K(){return o("/api/health")}async function G(){return o("/api/system/stats")}async function Y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return o("/api/system/logs?limit=".concat(e))}async function Q(){return o("/api/system/logs",{method:"DELETE"})}async function Z(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return o("/api/kb/categories".concat(t))}async function J(e){return o("/api/config/providers/".concat(encodeURIComponent(e)))}async function ee(){return o("/api/system/data-health")}async function et(e){return o("/api/system/data-health",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scopes:e,confirm:!0})})}},6831:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,X:()=>a});var n=r(97109);let o=n.createContext(!1),a=({children:e,disabled:t})=>{let r=n.useContext(o);return n.createElement(o.Provider,{value:t??r},e)},i=o},7709:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,Is:()=>u});var n=r(97109),o=r(15561),a=r(74567),i=r(12754),l=r(18625),s=r(9311),c=r(44444);let u={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},d={motionBase:!0,motionUnit:!0},f={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},p=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...a}=t,i={...n,override:o};return i=(0,c.A)(i),a&&Object.entries(a).forEach(([e,t])=>{let{theme:r,...n}=t,o=n;r&&(o=p({...i,...n},{override:n},r)),i[e]=o}),i};function m(){let{token:e,hashed:t,theme:r,override:c,cssVar:m,zeroRuntime:h}=n.useContext(i.vG),{csp:g,getPrefixCls:b}=n.useContext(a.QO),y={prefix:m?.prefix??b(),key:m?.key??"css-var-root"},v=`6.5.0-${t||""}`,$=r||l.A,[x,w,C]=(0,o.hV)($,[s.A,e],{salt:v,override:c,getComputedToken:p,cssVar:{...y,unitless:u,ignore:d,preserve:f},nonce:g?.nonce});return[$,C,t?w:"",x,y,!!h]}},7961:(e,t,r)=>{"use strict";r.d(t,{K8:()=>u,L9:()=>o,Nk:()=>i,Y1:()=>m,av:()=>d,dF:()=>a,jk:()=>c,jz:()=>p,t6:()=>s,vj:()=>f});var n=r(15561);let o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=new n.Mo("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=(e,t)=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),u=(e,t)=>({"&:focus-visible":c(e,t)}),d=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...u(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),f=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return!1!==n&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...l,...i,[o]:i}}},p=e=>({[`.${e}`]:{...i(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:l,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),m=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...u(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}})},8572:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(90892);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||(0,n.A)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8627:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(13911),o=r(26047);let a={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},l=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:s,offset:c,borderRadius:u,visibleFirst:d}=e,f=t/2,p={},m=(0,n.Ke)({contentRadius:u,limitVerticalRadius:!0});return Object.keys(a).forEach(e=>{let n={...s&&i[e]||a[e],offset:[0,0],dynamicInset:!0};switch(p[e]=n,l.has(e)&&(n.autoArrow=!1),e){case"top":case"topLeft":case"topRight":n.offset[1]=-f-c;break;case"bottom":case"bottomLeft":case"bottomRight":n.offset[1]=f+c;break;case"left":case"leftTop":case"leftBottom":n.offset[0]=-f-c;break;case"right":case"rightTop":case"rightBottom":n.offset[0]=f+c}if(s)switch(e){case"topLeft":case"bottomLeft":n.offset[0]=-m.arrowOffsetHorizontal-f;break;case"topRight":case"bottomRight":n.offset[0]=m.arrowOffsetHorizontal+f;break;case"leftTop":case"rightTop":n.offset[1]=-(2*m.arrowOffsetHorizontal)+f;break;case"leftBottom":case"rightBottom":n.offset[1]=2*m.arrowOffsetHorizontal-f}n.overflow=function(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let a=(0,o.Qd)(n)?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+r,i.shiftX=!0,i.adjustX=!0}let l={...i,...a};return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}(e,m,t,r),d&&(n.htmlRegion="visibleFirst")}),p}},9290:(e,t,r)=>{"use strict";r.d(t,{A:()=>H});var n=r(97109),o=r(42644),a=r(3638),i=r(92162),l=r(26047),s=r(38862),c=r(74567),u=r(6831),d=r(27273),f=r(49644),p=r(7709);let m=n.createContext(void 0);var h=r(86099),g=r(83914),b=r(67189);let y=(0,n.forwardRef)((e,t)=>{let{className:r,style:o,children:i,prefixCls:l}=e,s=(0,a.$)(`${l}-icon`,r);return n.createElement("span",{ref:t,className:s,style:o},i)}),v=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:i,iconClassName:l}=e,s=(0,a.$)(`${r}-loading-icon`,o);return n.createElement(y,{prefixCls:r,className:s,style:i,ref:t},n.createElement(g.A,{className:l}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),x=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),w=e=>{let{prefixCls:t,loading:r,existIcon:o,className:i,style:l,mount:s}=e;return o?n.createElement(v,{prefixCls:t,className:i,style:l}):n.createElement(b.Ay,{visible:!!r,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:$,onAppearActive:x,onEnterStart:$,onEnterActive:x,onLeaveStart:x,onLeaveActive:$},({className:e,style:r},o)=>{let s={...l,...r};return n.createElement(v,{prefixCls:t,className:(0,a.$)(i,e),style:s,ref:o})})};var C=r(15561),E=r(7961),k=r(16666),S=r(28403),A=r(10540);let P=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var R=r(38697),M=r(32154),T=r(78012),O=r(44539),N=r(32279);let F=e=>{let{paddingInline:t,onlyIconSize:r,borderColorDisabled:n}=e;return(0,S.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:n})},j=e=>{let t=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??(0,O.k)(t),a=e.contentLineHeightSM??(0,O.k)(r),i=e.contentLineHeightLG??(0,O.k)(n),l=(0,M.z)(new R.kf(e.colorBgSolid),"#fff")?"#000":"#fff",s=T.s.reduce((t,r)=>({...t,[`${r}ShadowColor`]:`0 ${(0,C.zA)(e.controlOutlineWidth)} 0 ${(0,N.A)(e[`${r}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...s,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:r,contentFontSizeLG:n,contentLineHeight:o,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u}},I=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${(0,C.zA)(s)} ${(0,C.zA)(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[l]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:{minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},z=(0,A.OF)("Button",e=>{let t=F(e);return[(e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...(0,k.V)(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,E.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,E.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}})(t),(e=>I((0,S.oX)(e,{fontSize:e.contentFontSize}),e.componentCls))(t),(e=>I((0,S.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`))(t),(e=>I((0,S.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`))(t),(e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}})(t),(e=>{let{componentCls:t,antCls:r,lineWidth:n}=e,[o,a]=(0,A.PN)(r,"btn");return{[t]:[{[o("border-width")]:n,[o("border-color")]:"#000",[o("border-color-hover")]:a("border-color"),[o("border-color-active")]:a("border-color"),[o("border-color-disabled")]:a("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color"),[o("text-color-disabled")]:a("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:a("bg-color"),[o("bg-color-active")]:a("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[a("border-width"),a("border-style"),a("border-color")].join(" "),color:a("text-color"),backgroundColor:a("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a("border-width"),a("border-style"),a("border-color-hover")].join(" "),color:a("text-color-hover"),backgroundColor:a("bg-color-hover")},"&:active":{border:[a("border-width"),a("border-style"),a("border-color-active")].join(" "),color:a("text-color-active"),backgroundColor:a("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:a("color-base"),[o("solid-bg-color-hover")]:a("color-hover"),[o("solid-bg-color-active")]:a("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:a("solid-bg-color"),[o("bg-color-hover")]:a("solid-bg-color-hover"),[o("bg-color-active")]:a("solid-bg-color-active"),boxShadow:a("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:a("color-base"),[o("border-color-hover")]:a("color-hover"),[o("border-color-active")]:a("color-active"),[o("bg-color")]:a("bg-color-container"),[o("text-color")]:a("color-base"),[o("text-color-hover")]:a("color-hover"),[o("text-color-active")]:a("color-active"),boxShadow:a("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:a("color-base"),[o("bg-color")]:a("color-light"),[o("bg-color-hover")]:a("color-light-hover"),[o("bg-color-active")]:a("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:a("color-base"),[o("text-color-hover")]:a("color-hover"),[o("text-color-active")]:a("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:a("color-light"),[o("bg-color-active")]:a("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},T.s.map(r=>{let n=e[`${r}6`],a=e[`${r}1`],i=e[`${r}Hover`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}Active`],u=e[`${r}ShadowColor`];return{[`&${t}-color-${r}`]:{[o("color-base")]:n,[o("color-hover")]:i,[o("color-active")]:c,[o("color-light")]:a,[o("color-light-hover")]:l,[o("color-light-active")]:s,[o("shadow")]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:a("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}})(t),(e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},P(`${t}-primary`,o),P(`${t}-danger`,a)]}})(t)]},j,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var B=r(77032);let D=(0,A.bf)(["Button","compact"],e=>{let t=F(e);return[(0,B.G)(t),function(e){var t,r;let n=`${e.componentCls}-compact-vertical`;return{[n]:{...(t=e.componentCls,{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${t}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}),...(r=e.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}}}(t),(e=>{let{antCls:t,componentCls:r,lineWidth:n,calc:o,colorBgContainer:a}=e,i=`${r}-variant-solid:not([disabled])`,l=o(n).mul(-1).equal(),[s,c]=(0,A.PN)(t,"btn"),u=e=>({[`${r}-compact${e?"-vertical":""}-item`]:{[s("compact-connect-border-color")]:c("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:l,insetInline:l,height:n}:{insetBlock:l,insetInlineStart:l,width:n}],"&:hover:before":{display:"none"}}}});return[u(),u(!0),{[`${i}${r}-color-default`]:{[s("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${a})`}}]})(t)]},j),L={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},_=n.forwardRef((e,t)=>{let r,{_skipSemantic:p,loading:g=!1,prefixCls:b,color:v,variant:$,type:x,danger:C=!1,shape:E,size:k,disabled:S,className:A,rootClassName:P,children:R,icon:M,iconPosition:T,iconPlacement:O,ghost:N=!1,block:F=!1,htmlType:j="button",classNames:I,styles:B,style:_,autoInsertSpace:H,autoFocus:W,...q}=e,U=(0,o.$r)(R),V=x||"default",{getPrefixCls:X,direction:K,autoInsertSpace:G,className:Y,style:Q,classNames:Z,styles:J,loadingIcon:ee,shape:et,color:er,variant:en}=(0,c.TP)("button"),eo=E||et||"default",[ea,ei]=(0,n.useMemo)(()=>{if(v&&$)return[v,$];if(x||C){let e=L[V]||[];return C?["danger",e[1]]:e}return"solid"===$?["primary",$]:er&&en?[er,en]:"solid"===en?["primary",en]:["default","outlined"]},[v,$,x,C,er,en,V]),[el,es]=(0,n.useMemo)(()=>N&&"solid"===ei?[ea,"outlined"]:[ea,ei],[ea,ei,N]),ec="danger"===el,eu=ec?"dangerous":el,ed=H??G??!0,ef=X("btn",b),[ep,em]=z(ef),eh=(0,n.useContext)(u.A),eg=S??eh,eb=(0,n.useContext)(m),ey=(0,n.useMemo)(()=>(function(e){if((0,l.Qd)(e)){let t=e?.delay;return{loading:(t=(0,l.Et)(t)?t:0)<=0,delay:t}}return{loading:!!e,delay:0}})(g),[g]),[ev,e$]=(0,n.useState)(ey.loading),[ex,ew]=(0,n.useState)(!1),eC=(0,n.useRef)(null),eE=(0,o.xK)(t,eC),ek=1===U.length&&!M&&!(0,h.u1)(es),eS=(0,n.useRef)(!0);n.useEffect(()=>(eS.current=!1,()=>{eS.current=!0}),[]),(0,o.Nf)(()=>{let e=null;return ey.delay>0?e=setTimeout(()=>{e=null,e$(!0)},ey.delay):e$(ey.loading),function(){e&&(clearTimeout(e),e=null)}},[ey.delay,ey.loading]),(0,n.useEffect)(()=>{if(!eC.current||!ed)return;let e=eC.current.textContent||"";ek&&(0,h.Ap)(e)?ex||ew(!0):ex&&ew(!1)}),(0,n.useEffect)(()=>{W&&eC.current&&eC.current.focus()},[]);let eA=n.useCallback(t=>{if(ev||eg)return void t.preventDefault();e.onClick?.(("href"in e,t))},[e.onClick,ev,eg]),{compactSize:eP,compactItemClassnames:eR}=(0,f.RQ)(ef,K),eM=(0,d.A)(e=>k??eP??eb??e),eT=ev?"loading":M,eO=O??T??"start",eN=(0,o.cJ)(q,["navigate"]),eF={...e,type:V,color:el,variant:es,danger:ec,shape:eo,size:eM,disabled:eg,loading:ev,iconPlacement:eO},ej=(0,i.XT)(Q),eI=(0,i.XT)(_),[ez,eB]=(0,i.AV)([p?void 0:Z,I],[p?void 0:J,ej,B,eI],{props:eF}),eD=(0,a.$)(ef,ep,em,{[`${ef}-${eo}`]:"default"!==eo&&"square"!==eo&&eo,[`${ef}-${V}`]:V,[`${ef}-dangerous`]:C,[`${ef}-color-${eu}`]:eu,[`${ef}-variant-${es}`]:es,[`${ef}-lg`]:"large"===eM,[`${ef}-sm`]:"small"===eM,[`${ef}-icon-only`]:!R&&0!==R&&!!eT,[`${ef}-background-ghost`]:N&&!(0,h.u1)(es),[`${ef}-loading`]:ev,[`${ef}-two-chinese-chars`]:ex&&ed&&!ev,[`${ef}-block`]:F,[`${ef}-rtl`]:"rtl"===K,[`${ef}-icon-end`]:"end"===eO},eR,A,P,Y,ez.root),eL={className:ez.icon,style:eB.icon},e_=e=>n.createElement(y,{prefixCls:ef,...eL},e),eH=n.createElement(w,{existIcon:!!M,prefixCls:ef,loading:ev,mount:eS.current,...eL}),eW=(0,l.Qd)(g)&&g.icon||ee;r=M&&!ev?e_(M):g&&eW?e_(eW):eH;let eq=(0,l.AZ)(R)?(0,h.uR)(R,ek&&ed,eB.content,ez.content):null;if(void 0!==eN.href)return n.createElement("a",{...eN,className:(0,a.$)(eD,{[`${ef}-disabled`]:eg}),href:eg?void 0:eN.href,style:eB.root,onClick:eA,ref:eE,tabIndex:eg?-1:0,"aria-disabled":eg},r,eq);let eU=n.createElement("button",{...q,type:j,className:eD,style:eB.root,onClick:eA,disabled:eg,ref:eE},r,eq,eR&&n.createElement(D,{prefixCls:ef}));return(0,h.u1)(es)||(eU=n.createElement(s.A,{component:"Button",disabled:ev},eU)),eU});_.Group=e=>{let{getPrefixCls:t,direction:r}=n.useContext(c.QO),{prefixCls:o,size:i,className:l,...s}=e,u=t("btn-group",o),[,,d]=(0,p.Ay)(),f=n.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),h=(0,a.$)(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===r},l,d);return n.createElement(m.Provider,{value:i},n.createElement("div",{...s,className:h}))},_.__ANT_BUTTON=!0;let H=_},9311:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,r:()=>n});let n={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o={...n,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
11
11
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
12
12
  'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}},9750:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(88797),o=r(90892);function a(e){return function(e){if(Array.isArray(e))return(0,n.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10090:()=>{},10252:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,B:()=>o});var n=r(97109);let o=n.createContext({}),a=n.createContext({message:{},notification:{},modal:{}})},10540:(e,t,r)=>{"use strict";r.d(t,{OF:()=>s,Or:()=>c,PN:()=>d,bf:()=>u});var n=r(97109),o=r(28403),a=r(74567),i=r(7961),l=r(7709);let{genStyleHooks:s,genComponentStyleHook:c,genSubStyleComponent:u}=(0,o.L_)({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(a.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o,a]=(0,l.Ay)();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,n.useContext)(a.QO);return e??{}},getResetStyles:(e,t)=>{let r=(0,i.av)(e);return[r,{"&":r},(0,i.jz)(t?.prefix.iconPrefixCls??a.pM)]},getCommonStyle:i.vj,getCompUnitless:()=>l.Is}),d=(e,t)=>{let r=`--${e.replace(/\./g,"")}-${t}-`;return[e=>`${r}${e}`,(e,t)=>t?`var(${r}${e}, ${t})`:`var(${r}${e})`]}},10709:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},10740:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(44539);let o=e=>{let t=(0,n.A)(e),r=t.map(e=>e.size),o=t.map(e=>e.lineHeight),a=r[1],i=r[0],l=r[2],s=o[1],c=o[0],u=o[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:l,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(c*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}}},11702:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(97109),o=r(42644),a=r(3638),i=r(77960),l=r(92162),s=r(26047),c=r(52690),u=r(38862),d=r(74567),f=r(6831),p=r(15561),m=r(47252),h=r(38697),g=r(32154),b=r(7961),y=r(28403),v=r(10540);let $=e=>{let{lineWidth:t,fontSizeIcon:r,calc:n}=e,o=e.fontSizeSM;return(0,y.oX)(e,{tagFontSize:o,tagLineHeight:(0,p.zA)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},x=e=>{let t=(0,g.z)(new h.kf(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new m.Y(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},w=(0,v.OF)("Tag",e=>(e=>{let{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:o,calc:a}=e,i=a(n).sub(r).equal(),l=a(t).sub(r).equal();return{[o]:{...(0,b.dF)(e),display:"inline-block",height:"auto",paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${(0,p.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})($(e)),x),C=n.forwardRef((e,t)=>{let{prefixCls:r,style:o,className:i,checked:l,children:s,icon:c,onChange:u,onClick:p,onKeyDown:m,disabled:h,...g}=e,{getPrefixCls:b,tag:y}=n.useContext(d.QO),v=n.useContext(f.A),$=h??v,x=b("tag",r),[C,E]=w(x),k=(0,a.$)(x,`${x}-checkable`,{[`${x}-checkable-checked`]:l,[`${x}-checkable-disabled`]:$},y?.className,i,C,E);return n.createElement("span",{...g,ref:t,role:"checkbox","aria-checked":l,"aria-disabled":$||void 0,tabIndex:$?-1:0,style:{...o,...y?.style},className:k,onClick:e=>{$||(u?.(!l),p?.(e))},onKeyDown:e=>{m?.(e),e.defaultPrevented||$||" "===e.key&&(e.preventDefault(),u?.(!l))}},c,n.createElement("span",null,s))});var E=r(9750),k=r(632);let S=n.forwardRef((e,t)=>{let{id:r,prefixCls:i,rootClassName:c,className:u,style:f,classNames:p,styles:m,disabled:h,options:g,value:b,defaultValue:y,onChange:v,multiple:$,...x}=e,{getPrefixCls:S,direction:A,className:P,style:R,classNames:M,styles:T}=(0,d.TP)("tag"),O=S("tag",i),N=`${O}-checkable-group`,F=(0,k.A)(O),[j,I]=w(O,F),z=(0,l.XT)(R),B=(0,l.XT)(f),[D,L]=(0,l.AV)([M,p],[T,z,m,B],{props:e}),_=(0,n.useMemo)(()=>Array.isArray(g)?g.map(e=>(0,s.Qd)(e)?e:{value:e,label:e}):[],[g]),[H,W]=(0,o.PW)(y,b),q=n.useRef(null);(0,n.useImperativeHandle)(t,()=>({nativeElement:q.current}));let U=(0,o.KE)(x,{aria:!0,data:!0});return n.createElement("div",{...U,className:(0,a.$)(N,P,c,{[`${N}-disabled`]:h,[`${N}-rtl`]:"rtl"===A},j,I,u,D.root),style:L.root,id:r,ref:q},_.map(e=>n.createElement(C,{key:e.value,className:(0,a.$)(`${N}-item`,D.item,e.className),style:{...L.item,...e.style},checked:$?(H||[]).includes(e.value):H===e.value,onChange:t=>((e,t)=>{let r=null;if($){let n=H||[];r=e?[].concat((0,E.A)(n),[t.value]):n.filter(e=>e!==t.value)}else r=e?t.value:null;W(r),v?.(r)})(t,e),disabled:h},e.label)))});var A=r(95347),P=r(16924);let R=(0,v.bf)(["Tag","preset"],e=>(e=>(0,P.A)(e,(t,{textColor:r,lightBorderColor:n,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:n,color:r},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:r}}})))($(e)),x),M=(e,t,r)=>{let n=function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}(r);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${n}Bg`],borderColor:e[`color${n}Border`],color:e[`color${r}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${r}`],borderColor:e[`color${r}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${n}Bg`],color:e[`color${r}`]}}}},T=(0,v.bf)(["Tag","status"],e=>{let t=$(e);return[M(t,"success","Success"),M(t,"processing","Info"),M(t,"error","Error"),M(t,"warning","Warning")]},x),O=n.forwardRef((e,t)=>{let{prefixCls:r,className:p,rootClassName:h,style:g,children:b,icon:y,color:v,variant:$,onClose:x,bordered:C,disabled:E,href:k,target:S,styles:P,classNames:M,...O}=e,{getPrefixCls:N,direction:F,className:j,variant:I,style:z,classNames:B,styles:D}=(0,d.TP)("tag"),[L,_,H,W,q]=function(e,t){let{color:r,variant:o,bordered:a}=e;return n.useMemo(()=>{let e,n=r?.endsWith("-inverse");e=o||(n?"solid":!1===a?"filled":t||"filled");let i=n?r?.replace("-inverse",""):r;void 0===i&&"solid"===e&&(i="default");let l=(0,A.nP)(i),s=(0,A.ZZ)(i),c={};if(!l&&!s&&i)if("solid"===e)c.backgroundColor=r;else{let t=new m.Y(i).toHsl();t.l=.95,c.backgroundColor=new m.Y(t).toHexString(),c.color=r,"outlined"===e&&(c.borderColor=r)}return[e,i,l,s,c]},[r,o,a,t])}(e,I),U=H||W,V=n.useContext(f.A),X=E??V,{tag:K}=n.useContext(d.QO),[G,Y]=n.useState(!0),Q=(0,o.cJ)(O,["closeIcon","closable"]),Z={...e,color:_,variant:L,disabled:X},[J,ee]=(0,l.AV)([B,M],[D,P],{props:Z}),et=n.useMemo(()=>{let e={...ee.root,...z,...g};return X||(e={...q,...e}),e},[ee.root,z,g,q,X]),er=N("tag",r),[en,eo]=w(er),ea=(0,a.$)(er,j,J.root,`${er}-${L}`,{[`${er}-${_}`]:U,[`${er}-hidden`]:!G,[`${er}-rtl`]:"rtl"===F,[`${er}-disabled`]:X},p,h,en,eo),ei=e=>{!X&&(e.stopPropagation(),x?.(e),e.defaultPrevented||Y(!1))},el=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click())},[,es]=(0,i.$Z)((0,i.dG)(e),(0,i.dG)(K),{closable:!1,closeIconRender:e=>{let t=n.createElement("span",{role:"button",tabIndex:X?-1:0,"aria-disabled":X||void 0,className:(0,a.$)(`${er}-close-icon`,J.close),onClick:ei,onKeyDown:el,style:ee.close},e);return(0,c.fx)(e,t,e=>({onClick:t=>{e?.onClick?.(t),ei(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||el(t)},role:"button",tabIndex:X?-1:0,"aria-disabled":X||void 0,className:(0,a.$)(e?.className,`${er}-close-icon`,J.close),style:{...ee.close,...e?.style}}))}}),ec=(0,s.Tn)(O.onClick)||b&&"a"===b.type,eu=(0,c.Ob)(y,{className:(0,a.$)(n.isValidElement(y)?y.props?.className:void 0,J.icon),style:ee.icon}),ed=eu?n.createElement(n.Fragment,null,eu,b&&n.createElement("span",{className:J.content,style:ee.content},b)):b,ef=n.createElement(k?"a":"span",{...Q,ref:t,className:ea,style:et,href:X?void 0:k,target:S,onClick:X?void 0:Q.onClick,...k&&X?{"aria-disabled":!0}:{}},ed,es,H&&n.createElement(R,{key:"preset",prefixCls:er}),W&&n.createElement(T,{key:"status",prefixCls:er}));return ec?n.createElement(u.A,{component:"Tag"},ef):ef});O.CheckableTag=C,O.CheckableTagGroup=S;let N=O},12754:(e,t,r)=>{"use strict";r.d(t,{sb:()=>a,vG:()=>i});var n=r(97109),o=r(9311);let a={token:o.A,override:{override:o.A},hashed:!0},i=n.createContext(a)},13018:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"}},13076:(e,t,r)=>{"use strict";function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n=function(){return!!e})()}r.d(t,{A:()=>n})},13500:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>n})},13865:(e,t,r)=>{"use strict";r.d(t,{z:()=>a,A:()=>p});var n=r(3638),o=r(97109);let a=e=>{let{children:t,prefixCls:r,id:a,classNames:i,styles:l,className:s,style:c}=e;return o.createElement("div",{id:a,className:(0,n.$)(`${r}-container`,i?.container,s),style:{...l?.container,...c},role:"tooltip"},"function"==typeof t?t():t)};var i=r(82865),l=r(2819);let s={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},u=[0,0],d={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:u}};function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let p=o.forwardRef((e,t)=>{let{trigger:r=["hover"],mouseEnterDelay:s=0,mouseLeaveDelay:c=.1,prefixCls:u="rc-tooltip",children:p,onVisibleChange:m,afterVisibleChange:h,motion:g,placement:b="right",align:y={},destroyOnHidden:v=!1,defaultVisible:$,getTooltipContainer:x,arrowContent:w,overlay:C,id:E,showArrow:k=!0,classNames:S,styles:A,...P}=e,R=(0,l.Ay)(E),M=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,()=>M.current);let T={...P};"visible"in e&&(T.popupVisible=e.visible);let O=o.useMemo(()=>{if(!k)return!1;let e=!0===k?{}:k;return{...e,className:(0,n.$)(e.className,S?.arrow),style:{...e.style,...A?.arrow},content:e.content??w}},[k,S?.arrow,A?.arrow,w]);return o.createElement(i.Ay,f({popupClassName:S?.root,prefixCls:u,popup:o.createElement(a,{key:"content",prefixCls:u,id:R,classNames:S,styles:A},C),action:r,builtinPlacements:d,popupPlacement:b,ref:M,popupAlign:y,getPopupContainer:x,onOpenChange:m,afterOpenChange:h,popupMotion:g,defaultPopupVisible:$,autoDestroy:v,mouseLeaveDelay:c,popupStyle:A?.root,mouseEnterDelay:s,arrow:O,uniqueContainerClassName:S?.uniqueContainer,uniqueContainerStyle:A?.uniqueContainer},T),({open:e})=>{let t=o.Children.only(p);return o.cloneElement(t,{"aria-describedby":C&&e?R:void 0})})})},13911:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,Ke:()=>l,Zs:()=>i});var n=r(15561),o=r(10540),a=r(21701);let i=8;function l(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?i:n}}let s=(e,t,r)=>{let{componentCls:i,boxShadowPopoverArrow:l,arrowOffsetVertical:s,arrowOffsetHorizontal:c,antCls:u}=e,[d]=(0,o.PN)(u,"tooltip"),{arrowDistance:f=0,arrowShadow:p=!0}=r||{};return{[i]:{[`${i}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...(0,a.j)(e,t,!!p&&l),"&:before":{background:t}}],[`&-placement-top > ${i}-arrow,&-placement-topLeft > ${i}-arrow,&-placement-topRight > ${i}-arrow`]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[d("arrow-offset-x")]:c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[d("arrow-offset-x")]:`calc(100% - ${(0,n.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}},[`&-placement-bottom > ${i}-arrow,&-placement-bottomLeft > ${i}-arrow,&-placement-bottomRight > ${i}-arrow`]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[d("arrow-offset-x")]:c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[d("arrow-offset-x")]:`calc(100% - ${(0,n.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}},[`&-placement-left > ${i}-arrow,&-placement-leftTop > ${i}-arrow,&-placement-leftBottom > ${i}-arrow`]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:s},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:s},[`&-placement-right > ${i}-arrow,&-placement-rightTop > ${i}-arrow,&-placement-rightBottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:s},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:s}}}}},14450:(e,t,r)=>{"use strict";function n(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}r.d(t,{A:()=>n})},14489:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(97109),o=r(26047);let a=(e,t)=>n.useMemo(()=>{let r=e??t;return!!r&&{...(0,o.Qd)(t)?t:{},...(0,o.Qd)(r)?r:{}}},[e,t])},14932:(e,t,r)=>{"use strict";r.d(t,{A:()=>z});var n=r(97109),o=r(13865),a=r(42644),i=r(3638),l=r(44137),s=r(36319),c=r(92162),u=r(26047),d=r(84649),f=r(8627),p=r(52690),m=r(29633),h=r(58860),g=r(74567),b=r(632),y=r(60367),v=r(7709),$=r(21207),x=r(15561),w=r(7961),C=r(72668),E=r(49345),k=r(13911),S=r(21701),A=r(16924),P=r(28403),R=r(10540);let M=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...(0,k.Ke)({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...(0,S.n)((0,P.oX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),T=(e,t,r=!0)=>(0,R.OF)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:r,colorBgSpotlight:n,maxWidth:o}=e;return[(e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,dropShadowPopover:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=(0,R.PN)(m,"tooltip"),b=t(i).add(p).add(f).equal(),y={minWidth:t(i).mul(2).add(p).equal(),minHeight:s,padding:`${(0,x.zA)(e.calc(u).div(2).equal())} ${(0,x.zA)(d)}`,color:g("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxSizing:"border-box"},v={[h("valid-offset-x")]:g("arrow-offset-x","var(--arrow-x)"),transformOrigin:[g("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" ")};return[{[r]:{...(0,w.dF)(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:n,visibility:"visible",filter:c,...v,"&-hidden":{display:"none"},[h("arrow-background-color")]:a,[`${r}-container`]:[y,(0,C.p9)(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent"}},"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":{minWidth:b},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${r}-inner`]:{borderRadius:e.min(i,k.Zs)}},[`${r}-content`]:{position:"relative"},...(0,A.A)(e,(e,{darkColor:t})=>({[`&${r}-${e}`]:{[`${r}-container`]:{backgroundColor:t},[`${r}-arrow`]:{[h("arrow-background-color")]:t}}})),"&-rtl":{direction:"rtl"}}},(0,k.Ay)(e,g("arrow-background-color"),{arrowShadow:!1}),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...y,...v,position:"absolute",zIndex:t(l).sub(1).equal(),filter:c,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]})((0,P.oX)(e,{tooltipMaxWidth:o,tooltipColor:r,tooltipBorderRadius:t,tooltipBg:n})),(0,E.aB)(e,"zoom-big-fast")]},M,{resetStyle:!1,injectStyle:r})(e,t);var O=r(95347);r(58018);var N=r(38697);let F=(e,t,r)=>{let n=(0,O.nP)(r),[o]=(0,R.PN)(e,"tooltip"),a=(0,i.$)({[`${t}-${r}`]:r&&n}),l={},s={},c=(e=>e instanceof N.kf?e:new N.kf(e))(r).toRgb(),u=(.299*c.r+.587*c.g+.114*c.b)/255;return r&&!n&&(l.background=r,l[o("overlay-color")]=u<.5?"#FFF":"#000",s[o("arrow-background-color")]=r),{className:a,overlayStyle:l,arrowStyle:s}};var j=r(47188);let I=n.forwardRef((e,t)=>{let{prefixCls:r,openClassName:x,getTooltipContainer:w,color:C,children:E,afterOpenChange:k,arrow:S,destroyTooltipOnHide:A,destroyOnHidden:P,title:R,overlay:M,trigger:O,builtinPlacements:N,autoAdjustOverflow:j=!0,motion:I,getPopupContainer:z,placement:B="top",mouseEnterDelay:D=.1,mouseLeaveDelay:L=.1,rootClassName:_,styles:H,classNames:W,onOpenChange:q,overlayInnerStyle:U,overlayStyle:V,overlayClassName:X,...K}=e,[,G]=(0,v.Ay)(),Y=e["data-popover-inject"],{getPopupContainer:Q,getPrefixCls:Z,direction:J,...ee}=(0,g.TP)("tooltip"),{className:et,style:er,classNames:en,styles:eo,arrow:ea,trigger:ei}=Y?{}:ee,el=(0,$.A)(S,ea),es=el.show,ec=O||ei||"hover",eu=z||Q,ed=P??!!A,ef=n.useContext(y.A);(0,m.rJ)("Tooltip");let ep=n.useRef(null),em=()=>{ep.current?.forceAlign()};n.useImperativeHandle(t,()=>({forceAlign:em,nativeElement:ep.current?.nativeElement,popupElement:ep.current?.popupElement}));let[eh,eg]=(0,a.PW)(e.defaultOpen??!1,e.open),eb=!R&&!M&&0!==R,ey=n.useMemo(()=>N||(0,f.A)({arrowPointAtCenter:el?.pointAtCenter??!1,autoAdjustOverflow:j,arrowWidth:es?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0}),[el,N,G,es,j]),ev=n.useMemo(()=>0===R?R:M||R||"",[M,R]),e$=n.createElement(l.A,{space:!0,form:!0},(0,u.Tn)(ev)?ev():ev),ex={...e,trigger:ec,builtinPlacements:ey,getPopupContainer:eu,destroyOnHidden:ed},[ew,eC]=(0,c.AV)([en,W],[eo,H],{props:ex}),eE=Z("tooltip",r),ek=Z(),eS=eh;("open"in e||!eb)&&!ef||(eS=!1);let eA=n.isValidElement(E)&&!(0,p.zv)(E)?E:n.createElement("span",null,E),eP=eA.props,eR=eP.className&&"string"!=typeof eP.className?eP.className:(0,i.$)(eP.className,x||`${eE}-open`),eM=(0,b.A)(eE),[eT,eO]=T(eE,eM,!Y),eN=F(ek,eE,C),eF=eN.arrowStyle,ej=(0,i.$)(eM,eT,eO),eI=(0,i.$)(X,{[`${eE}-rtl`]:"rtl"===J},eN.className,_,ej,et,ew.root),[ez,eB]=(0,s.YK)("Tooltip",K.zIndex),eD={...eC.container,...U,...eN.overlayStyle},eL=n.createElement(o.A,{unique:!0,...K,zIndex:ez,showArrow:es,placement:B,mouseEnterDelay:D,mouseLeaveDelay:L,prefixCls:eE,classNames:{root:eI,container:ew.container,arrow:ew.arrow,uniqueContainer:(0,i.$)(ej,ew.container)},styles:{root:{...eF,...eC.root,...er,...V},container:eD,uniqueContainer:eD,arrow:eC.arrow},ref:ep,overlay:e$,visible:eS,onVisibleChange:e=>{eg(!eb&&e),!eb&&q&&q(e)},afterVisibleChange:k,arrowContent:n.createElement("span",{className:`${eE}-arrow-content`}),motion:{motionName:(0,d.b)(ek,"zoom-big-fast","string"==typeof I?.motionName?I?.motionName:void 0),motionDeadline:1e3},trigger:ec,builtinPlacements:ey,getTooltipContainer:eu,destroyOnHidden:ed},eS?(0,p.Ob)(eA,{className:eR}):eA);return n.createElement(h.A.Provider,{value:eB},eL)});I._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,placement:a="top",title:l,color:s,overlayInnerStyle:u,classNames:d,styles:f}=e,{getPrefixCls:p}=n.useContext(g.QO),m=p("tooltip",t),h=p(),y=(0,b.A)(m),[v,$]=T(m,y),x=F(h,m,s),w=x.arrowStyle,C=n.useMemo(()=>({container:{...u,...x.overlayStyle}}),[u,x.overlayStyle]),E={...e,placement:a},[k,S]=(0,c.AV)([d],[C,f],{props:E}),A=(0,i.$)(y,v,$,m,`${m}-pure`,`${m}-placement-${a}`,r,x.className);return n.createElement("div",{className:A,style:w},n.createElement("div",{className:`${m}-arrow`}),n.createElement(o.z,{...e,className:v,prefixCls:m,classNames:k,styles:S},l))},I.UniqueProvider=j.A;let z=I},15472:(e,t,r)=>{"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}r.d(t,{A:()=>o})},15561:(e,t,r)=>{"use strict";let n;r.d(t,{Mo:()=>eO,J:()=>p,an:()=>$,lO:()=>j,Ki:()=>R,zA:()=>S,RC:()=>eM,hV:()=>I,IV:()=>eR});let o=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)};var a=r(63255),i=r(97109);function l(e){return e.join("%")}r(87248),r(25846);let s=0;class c{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(l(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(l(e),t)}opUpdate(e,t){let r=t(this.cache.get(e));null===r?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,r),this.updateTimes.set(e,s),s+=1)}}let u="data-token-hash",d="data-css-hash",f="__cssinjs_instance__",p=i.createContext({hashPriority:"low",cache:function(){let e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){let t=document.body.querySelectorAll(`style[${d}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(t=>{t[f]||=e,t[f]===e&&document.head.insertBefore(t,r)});let n={};Array.from(document.querySelectorAll(`style[${d}]`)).forEach(t=>{let r=t.getAttribute(d);n[r]?t[f]===e&&t.parentNode?.removeChild(t):n[r]=!0})}return new c(e)}(),defaultCache:!0,autoPrefix:!1});var m=r(14450);class h{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let r={map:this.cache};return e.forEach(e=>{r=r?r?.map?.get(e):void 0}),r?.value&&t&&(r.value[1]=this.cacheCallTimes++),r?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>h.MAX_CACHE_SIZE+h.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,r]=e;return this.internalGet(t)[1]<r?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let r=this.cache;e.forEach((n,o)=>{if(o===e.length-1)r.set(n,{value:[t,this.cacheCallTimes++]});else{let e=r.get(n);e?e.map||(e.map=new Map):r.set(n,{map:new Map}),r=r.get(n).map}})}deleteByPath(e,t){let r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),r.value?.[0];let n=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),n}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,e)),this.deleteByPath(this.cache,e)}}var g=r(96546);let b=0;class y{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=b,0===e.length&&(0,g.$e)(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),b+=1}getDerivativeToken(e){return this.derivatives.reduce((t,r)=>r(e,t),void 0)}}let v=new h;function $(e){let t=Array.isArray(e)?e:[e];return v.has(t)||v.set(t,new y(t)),v.get(t)}let x=new WeakMap,w={},C=new WeakMap;function E(e){let t=C.get(e)||"";return t||(Object.keys(e).forEach(r=>{let n=e[r];t+=r,n instanceof y?t+=n.id:n&&"object"==typeof n?t+=E(n):t+=n}),t=o(t),C.set(e,t)),t}`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");let k=(0,m.A)();function S(e){return"number"==typeof e?`${e}px`:e}function A(e){let{hashCls:t,hashPriority:r="low"}=e||{};if(!t)return"";let n=`.${t}`;return"low"===r?`:where(${n})`:n}function P(e,t){let r="function"==typeof t?t():t;return r?{...e,csp:{...e.csp,nonce:r}}:e}let R=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),M=(e,t,r)=>{let{hashCls:n,hashPriority:o="low",prefix:a,unitless:i,ignore:l,preserve:s}=r||{},c={},u={};return Object.entries(e).forEach(([e,t])=>{if(s?.[e])u[e]=t;else if(("string"==typeof t||"number"==typeof t)&&!l?.[e]){let r=R(e,a);c[r]="number"!=typeof t||i?.[e]?String(t):`${t}px`,u[e]=`var(${r})`}}),[u,((e,t,r)=>{let{hashCls:n,hashPriority:o="low",scope:a}=r||{};if(!Object.keys(e).length)return"";let i=`${A({hashCls:n,hashPriority:o})}.${t}`,l=[a].flat().filter(Boolean),s=l.length?l.map(e=>`${i}.${e}`).join(", "):i;return`${s}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`})(c,t,{scope:r?.scope,hashCls:n,hashPriority:o})]},T=new Map;function O(e,t,r,n,o){let{cache:a}=i.useContext(p),s=l([e,...t]),c=e=>{a.opUpdate(s,t=>{let[n=0,o]=t||[void 0,void 0],a=[n,o||r()];return e?e(a):a})};i.useMemo(()=>{c()},[s]);let u=a.opGet(s)[1];return(0,i.useInsertionEffect)(()=>(c(([e,t])=>[e+1,t]),T.has(s)||(o?.(u),T.set(s,!0),Promise.resolve().then(()=>{T.delete(s)})),()=>{a.opUpdate(s,e=>{let[t=0,r]=e||[];return 0==t-1?(n?.(r,!1),T.delete(s),null):[t-1,r]})}),[s]),u}let N={},F=new Map,j=(e,t,r,n)=>{let o={...r.getDerivativeToken(e),...t};return n&&(o=n(o)),o};function I(e,t,r){let{cache:{instanceId:n},container:l,hashPriority:s}=(0,i.useContext)(p),{salt:c="",override:m=N,formatToken:h,getComputedToken:g,cssVar:b,nonce:y}=r,v=function(e,t){let r=x;for(let e=0;e<t.length;e+=1){let n=t[e];r.has(n)||r.set(n,new WeakMap),r=r.get(n)}return r.has(w)||r.set(w,e()),r.get(w)}(()=>Object.assign({},...t),t),$=E(v),C=E(m),k=E(b);return O("token",[c,e.id,$,C,k],()=>{var t;let r=g?g(v,m,e):j(v,m,e,h),n={...r},a=`${c}_${b.prefix}`,i=o(a),l=`css-${i}`;n._tokenKey=o(`${a}_${E(n)}`);let[u,d]=M(r,b.key,{prefix:b.prefix,ignore:b.ignore,unitless:b.unitless,preserve:b.preserve,hashPriority:s,hashCls:b.hashed?l:void 0});return u._hashId=i,t=b.key,F.set(t,(F.get(t)||0)+1),[u,l,n,d,b.key]},([,,,,e])=>{F.set(e,(F.get(e)||0)-1);let t=new Set;F.forEach((e,r)=>{e<=0&&t.add(r)}),F.size-t.size>-1&&t.forEach(e=>{"undefined"!=typeof document&&document.querySelectorAll(`style[${u}="${e}"]`).forEach(e=>{e[f]===n&&e.parentNode?.removeChild(e)}),F.delete(e)})},([,,,e,t])=>{if(!e)return;let r={mark:d,prepend:"queue",attachTo:l,priority:-999};r=P(r,y);let i=(0,a.BD)(e,o(`css-var-${t}`),r);i[f]=n,i.setAttribute(u,t)})}let z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var B="-ms-",D="-moz-",L="-webkit-",_="comm",H="rule",W="decl",q="@keyframes",U=Math.abs,V=String.fromCharCode,X=Object.assign;function K(e,t){return(e=t.exec(e))?e[0]:e}function G(e,t,r){return e.replace(t,r)}function Y(e,t){return e.indexOf(t)}function Q(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function J(e){return e.length}function ee(e,t){return t.push(e),e}function et(e,t){return e.filter(function(e){return!K(e,t)})}function er(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function en(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case W:return e.return=e.return||e.value;case _:return"";case q:return e.return=e.value+"{"+er(e.children,n)+"}";case H:if(!J(e.value=e.props.join(",")))return""}return J(r=er(e.children,n))?e.return=e.value+"{"+r+"}":""}var eo=1,ea=1,ei=0,el=0,es=0,ec="";function eu(e,t,r,n,o,a,i,l){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:eo,column:ea,length:i,return:"",siblings:l}}function ed(e,t){return X(eu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ef(e){for(;e.root;)e=ed(e.root,{children:[e]});ee(e,e.siblings)}function ep(){return es=el<ei?Q(ec,el++):0,ea++,10===es&&(ea=1,eo++),es}function em(){return Q(ec,el)}function eh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eg(e){var t,r;return(t=el-1,r=function e(t){for(;ep();)switch(es){case t:return el;case 34:case 39:34!==t&&39!==t&&e(es);break;case 40:41===t&&e(t);break;case 92:ep()}return el}(91===e?e+2:40===e?e+1:e),Z(ec,t,r)).trim()}function eb(e){var t,r;return r=function e(t,r,n,o,a,i,l,s,c){for(var u,d,f,p,m=0,h=0,g=l,b=0,y=0,v=0,$=1,x=1,w=1,C=0,E=0,k="",S=a,A=i,P=o,R=k;x;)switch(v=E,E=ep()){case 40:108!=v&&58==Q(R,g-1)?(C++,R+="("):R+=eg(E);break;case 41:C--,R+=")";break;case 34:case 39:case 91:R+=eg(E);break;case 9:case 10:case 13:case 32:if(C>0){R+=V(E);break}R+=function(e){for(;es=em();)if(es<33)ep();else break;return eh(e)>2||eh(es)>3?"":" "}(v);break;case 92:R+=function(e,t){for(var r;--t&&ep()&&!(es<48)&&!(es>102)&&(!(es>57)||!(es<65))&&(!(es>70)||!(es<97)););return r=el+(t<6&&32==em()&&32==ep()),Z(ec,e,r)}(el-1,7);continue;case 47:switch(em()){case 42:case 47:ee((u=function(e,t){for(;ep();)if(e+es===57)break;else if(e+es===84&&47===em())break;return"/*"+Z(ec,t,el-1)+"*"+V(47===e?e:ep())}(ep(),el),d=r,f=n,p=c,eu(u,d,f,_,V(es),Z(u,2,-2),0,p)),c),(5==eh(v||1)||5==eh(em()||1))&&J(R)&&" "!==Z(R,-1,void 0)&&(R+=" ");break;default:R+="/"}break;case 123*$:s[m++]=J(R)*w;case 125*$:case 59:case 0:if(C>0&&E){R+=V(E);break}switch(E){case 0:case 125:x=0;case 59+h:-1==w&&(R=G(R,/\f/g,"")),y>0&&(J(R)-g||0===$)&&ee(y>32?ev(R+";",o,n,g-1,c):ev(G(R," ","")+";",o,n,g-2,c),c);break;case 59:R+=";";default:if(ee(P=ey(R,r,n,m,h,a,s,k,S=[],A=[],g,i),i),123===E)if(0===h)e(R,r,P,P,S,i,g,s,A);else{switch(b){case 99:if(110===Q(R,3))break;case 108:if(97===Q(R,2))break;default:h=0;case 100:case 109:case 115:}h?e(t,P,P,o&&ee(ey(t,P,P,0,0,a,s,k,a,S=[],g,A),A),a,A,g,s,o?S:A):e(R,P,P,P,[""],A,0,s,A)}}m=h=y=0,$=w=1,k=R="",g=l;break;case 58:g=1+J(R),y=v;default:if($<1){if(123==E)--$;else if(125==E&&0==$++&&125==(es=el>0?Q(ec,--el):0,ea--,10===es&&(ea=1,eo--),es))continue}switch(R+=V(E),E*$){case 38:w=h>0?1:(R+="\f",-1);break;case 44:if(C>0)break;s[m++]=(J(R)-1)*w,w=1;break;case 64:45===em()&&(R+=eg(ep())),b=em(),h=g=J(k=R+=function(e){for(;!eh(em());)ep();return Z(ec,e,el)}(el)),E++;break;case 45:45===v&&2==J(R)&&($=0)}}return i}("",null,null,null,[""],(t=e,eo=ea=1,ei=J(ec=t),el=0,e=[]),0,[0],e),ec="",r}function ey(e,t,r,n,o,a,i,l,s,c,u,d){for(var f=o-1,p=0===o?a:[""],m=p.length,h=0,g=0,b=0;h<n;++h)for(var y=0,v=Z(e,f+1,f=U(g=i[h])),$=e;y<m;++y)($=(g>0?p[y]+" "+v:G(v,/&\f/g,p[y])).trim())&&(s[b++]=$);return eu(e,t,r,0===o?H:l,s,c,u,d)}function ev(e,t,r,n,o){return eu(e,t,r,W,Z(e,0,n),Z(e,n+1,-1),n,o)}function e$(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=function e(t,r,n){var o;switch(o=r,45^Q(t,0)?(((o<<2^Q(t,0))<<2^Q(t,1))<<2^Q(t,2))<<2^Q(t,3):0){case 5103:return L+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return L+t+t;case 4855:return L+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return D+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return L+t+D+t+B+t+t;case 5936:switch(Q(t,r+11)){case 114:return L+t+B+G(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return L+t+B+G(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return L+t+B+G(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return L+t+B+t+t;case 6165:return L+t+B+"flex-"+t+t;case 5187:return L+t+G(t,/(\w+).+(:[^]+)/,L+"box-$1$2"+B+"flex-$1$2")+t;case 5443:return L+t+B+"flex-item-"+G(t,/flex-|-self/g,"")+(K(t,/flex-|baseline/)?"":B+"grid-row-"+G(t,/flex-|-self/g,""))+t;case 4675:return L+t+B+"flex-line-pack"+G(t,/align-content|flex-|-self/g,"")+t;case 5548:return L+t+B+G(t,"shrink","negative")+t;case 5292:return L+t+B+G(t,"basis","preferred-size")+t;case 6060:return L+"box-"+G(t,"-grow","")+L+t+B+G(t,"grow","positive")+t;case 4554:return L+G(t,/([^-])(transform)/g,"$1"+L+"$2")+t;case 6187:return G(G(G(t,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),t,"")+t;case 5495:case 3959:return G(t,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return G(G(t,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+B+"flex-pack:$3"),/space-between/,"justify")+L+t+t;case 4200:if(!K(t,/flex-|baseline/))return B+"grid-column-align"+Z(t,r)+t;break;case 2592:case 3360:return B+G(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,K(e.props,/grid-\w+-end/)}))return~Y(t+(n=n[r].value),"span")?t:B+G(t,"-start","")+t+B+"grid-row-span:"+(~Y(n,"span")?K(n,/\d+/):K(n,/\d+/)-K(t,/\d+/))+";";return B+G(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return K(e.props,/grid-\w+-start/)})?t:B+G(G(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return G(t,/(.+)-inline(.+)/,L+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(J(t)-1-r>6)switch(Q(t,r+1)){case 109:if(45!==Q(t,r+4))break;case 102:return G(t,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+D+(108==Q(t,r+3)?"$3":"$2-$3"))+t;case 115:return~Y(t,"stretch")?e(G(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return G(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,o,a,i,l){return B+r+":"+n+l+(o?B+r+"-span:"+(a?i:i-n)+l:"")+t});case 4949:if(121===Q(t,r+6))return G(t,":",":"+L)+t;break;case 6444:switch(Q(t,45===Q(t,14)?18:11)){case 120:return G(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+L+(45===Q(t,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+B+"$2box$3")+t;case 100:return G(t,":",":"+B)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return G(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case q:return er([ed(e,{value:G(e.value,"@","@"+L)})],n);case H:if(e.length){var o,a;return o=r=e.props,a=function(t){switch(K(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ef(ed(e,{props:[G(t,/:(read-\w+)/,":"+D+"$1")]})),ef(ed(e,{props:[t]})),X(e,{props:et(r,n)});break;case"::placeholder":ef(ed(e,{props:[G(t,/:(plac\w+)/,":"+L+"input-$1")]})),ef(ed(e,{props:[G(t,/:(plac\w+)/,":"+D+"$1")]})),ef(ed(e,{props:[G(t,/:(plac\w+)/,B+"input-$1")]})),ef(ed(e,{props:[t]})),X(e,{props:et(r,n)})}return""},o.map(a).join("")}}}let ex="data-ant-cssinjs-cache-path",ew="_FILE_STYLE__",eC=!0,eE="_multi_value_";function ek(e,t){var r,n;return(t?er(eb(e),(n=(r=[e$,en]).length,function(e,t,o,a){for(var i="",l=0;l<n;l++)i+=r[l](e,t,o,a)||"";return i})):er(eb(e),en)).replace(/\{%%%\:[^;];}/g,";")}function eS(e,t,r="high"){if(!t)return e;let n=A({hashCls:t,hashPriority:r});return e.split(",").map(e=>{let t=e.trim().split(/\s+/),r=t[0]||"",o=r.match(/^\w+/)?.[0]||"";return[r=`${o}${n}${r.slice(o.length)}`,...t.slice(1)].join(" ")}).join(",")}let eA=(e,t={},{root:r,injectHash:n,parentSelectors:o}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:i,path:l,hashPriority:s,transformers:c=[],linters:u=[]}=t,d="",f={};function p(e){let r=e.getName(a);if(!f[r]){let[n]=eA(e.style,t,{root:!1,parentSelectors:o});f[r]=`@keyframes ${e.getName(a)}${n}`}}return(function e(t,r=[]){return t.forEach(t=>{Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(e)?e:[e]).forEach(e=>{let i="string"!=typeof e||r?e:{};if("string"==typeof i)d+=`${i}
13
13
  `;else if(i._keyframe)p(i);else{let e=c.reduce((e,t)=>t?.visit?.(e)||e,i);Object.keys(e).forEach(i=>{let l=e[i];if("object"==typeof l&&l&&("animationName"!==i||!l._keyframe)&&!function(e){return"object"==typeof e&&e&&("_skip_check_"in e||eE in e)}(l)){let e=!1,c=i.trim(),u=!1;(r||n)&&a?c.startsWith("@")?e=!0:c="&"===c?eS("",a,s):eS(i,a,s):r&&!a&&("&"===c||""===c)&&(c="",u=!0);let[p,m]=eA(l,t,{root:u,injectHash:e,parentSelectors:[...o,c]});f={...f,...m},d+=`${c}${p}`}else{function c(e,t){let r=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),n=t;z[e]||"number"!=typeof n||0===n||(n=`${n}px`),"animationName"===e&&t?._keyframe&&(p(t),n=t.getName(a)),d+=`${r}:${n};`}let e=l?.value??l;"object"==typeof l&&l?.[eE]&&Array.isArray(e)?e.forEach(e=>{c(i,e)}):null!=e&&c(i,e)}})}}),r?i&&(d&&(d=`@layer ${i.name} {${d}}`),i.dependencies&&(f[`@layer ${i.name}`]=i.dependencies.map(e=>`@layer ${e}, ${i.name};`).join("\n"))):d=`{${d}}`,[d,f]};function eP(e,t){return o(`${e.join("%")}${t}`)}function eR(e,t){let{path:r,hashId:o,layer:l,nonce:s,clientOnly:c,order:u=0}=e,{mock:h,hashPriority:g,container:b,transformers:y,linters:v,cache:$,layer:x,autoPrefix:w}=i.useContext(p),C=[o||""];x&&C.push("layer"),C.push(...r),O("style",C,()=>{let e=C.join("|");if(function(e){if(!n&&(n={},(0,m.A)())){let e=document.createElement("div");e.className=ex,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(e=>{let[t,r]=e.split(":");n[t]=r});let r=document.querySelector(`style[${ex}]`);r&&(eC=!1,r.parentNode?.removeChild(r)),document.body.removeChild(e)}return!!n[e]}(e)){let[t,r]=function(e){let t=n[e],r=null;if(t&&(0,m.A)())if(eC)r=ew;else{let t=document.querySelector(`style[${d}="${n[e]}"]`);t?r=t.innerHTML:delete n[e]}return[r,t]}(e);if(t)return[t,r,{},c,u]}let[a,i]=eA(t(),{hashId:o,hashPriority:g,layer:x?l:void 0,path:r.join("-"),transformers:y,linters:v}),s=ek(a,w||!1),f=eP(C,s);return[s,f,i,c,u]},(e,t)=>{let[,r]=e;t&&k&&(0,a.m6)(r,{mark:d,attachTo:b})},e=>{let[t,r,n,,o]=e;if(k&&t!==ew){let e={mark:d,prepend:!x&&"queue",attachTo:b,priority:o};e=P(e,s);let i=[],l=[];Object.keys(n).forEach(e=>{e.startsWith("@layer")?i.push(e):l.push(e)}),i.forEach(t=>{(0,a.BD)(ek(n[t],w||!1),`_layer-${t}`,{...e,prepend:!0})}),(0,a.BD)(t,r,e)[f]=$.instanceId,l.forEach(t=>{(0,a.BD)(ek(n[t],w||!1),`_effect-${t}`,e)})}})}let eM=(e,t)=>{let{key:r,prefix:n,unitless:o,ignore:l,token:s,hashId:c,scope:m,nonce:h}=e,{cache:{instanceId:g},container:b,hashPriority:y}=(0,i.useContext)(p),{_tokenKey:v}=s,$=Array.isArray(m)?m.join("@@"):m,x=[...e.path,r,$,v];return O("cssVar",x,()=>{let[e,a]=M(t(),r,{prefix:n,unitless:o,ignore:l,scope:m,hashPriority:y,hashCls:c}),i=eP(x,a);return[e,a,i,r]},([,,e])=>{k&&(0,a.m6)(e,{mark:d,attachTo:b})},([,e,t])=>{if(!e)return;let n={mark:d,prepend:"queue",attachTo:b,priority:-999};n=P(n,h);let o=(0,a.BD)(e,t,n);o[f]=g,o.setAttribute(u,r)})};class eT{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0}let eO=eT;function eN(e){return e.notSplit=!0,e}eN(["borderTop","borderBottom"]),eN(["borderTop"]),eN(["borderBottom"]),eN(["borderLeft","borderRight"]),eN(["borderLeft"]),eN(["borderRight"])},15648:(e,t,r)=>{"use strict";r.d(t,{A:()=>function e(t,r={}){let a=[];return o.Children.forEach(t,t=>{(null!=t||r.keepEmpty)&&(Array.isArray(t)?a=a.concat(e(t)):(0,n.A)(t)&&t.props?a=a.concat(e(t.props.children,r)):a.push(t))}),a}});var n=r(5406),o=r(97109)},16666:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});let n=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}})},16924:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(78012);function o(e,t){return n.s.reduce((r,n)=>{let o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],l=e[`${n}7`];return{...r,...t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l})}},{})}},17597:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});let n=`accept acceptCharset accessKey action allowFullScreen allowTransparency
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{1611:(e,t)=>{"use strict";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)=>{"use strict";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"}},13067:(e,t)=>{"use strict";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 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"}},14569:e=>{e.exports={featureLabel:"style_featureLabel__XFSTX",featureValue:"style_featureValue__I_wMP",filterInput:"style_filterInput__4_Elu",filterSelect:"style_filterSelect__vUBJ9",statusCard:"style_statusCard__H7Mee",statusSummary:"style_statusSummary__7KavF",statusSummaryText:"style_statusSummaryText__Shw3j",statusClearBtn:"style_statusClearBtn__uJ9bE",statusExpandBtn:"style_statusExpandBtn__HhgIj",statusFilters:"style_statusFilters__g_LbG",filterPill:"style_filterPill__1pjFW",filterPillActive:"style_filterPillActive___UZVi",statusPanel:"style_statusPanel__9arTu",statusEmpty:"style_statusEmpty__8LWzH",timelineList:"style_timelineList__dqJrz",timelineItem:"style_timelineItem__dbuL_",timelineStatusIcon:"style_timelineStatusIcon__SkRwb",timelinePercent:"style_timelinePercent__pEyH4",timelineRow:"style_timelineRow__EDOVa",timelineTitle:"style_timelineTitle__Yujr8",timelineClose:"style_timelineClose__Byx_9",timelineDetail:"style_timelineDetail__nALei",timelineDesc:"style_timelineDesc__FMjWE",timelinePath:"style_timelinePath__C9VQI",timelineMeta:"style_timelineMeta__u_pCn",timelineMetaTag:"style_timelineMetaTag__G3jF1",timelineExpandArrow:"style_timelineExpandArrow__xIBdF",timelineExpandArrowOpen:"style_timelineExpandArrowOpen__TWWDC",fileNameCell:"style_fileNameCell__EHsnt",folderName:"style_folderName__VhLXP",folderRow:"style_folderRow__d7k9S",searchResultList:"style_searchResultList__cVKZg",searchResultItem:"style_searchResultItem__boj6D",searchResultHeader:"style_searchResultHeader__meVdJ",searchContent:"style_searchContent__XbUVk",pdfPreviewStrip:"style_pdfPreviewStrip__94_eG",drawingPreview:"style_drawingPreview__lkk_L"}},26619:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(97109),l=r(1611),n=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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let s=a.forwardRef((e,t)=>a.createElement(n.A,i({},e,{ref:t,icon:l.A})))},26631:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(97109),l=r(12887),n=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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let s=a.forwardRef((e,t)=>a.createElement(n.A,i({},e,{ref:t,icon:l.A})))},30289:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"}},35311:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"}},45551:(e,t,r)=>{"use strict";function a(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),r=e/Math.pow(1024,t);return"".concat(r.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN",r=Math.max(0,Math.floor(e)),a=Math.floor(r/86400),l=Math.floor(r%86400/3600),n=Math.floor(r%3600/60),i="en-US"===t;return a>0?i?"".concat(a,"d ").concat(l,"h"):"".concat(a," 天 ").concat(l," 小时"):l>0?i?"".concat(l,"h ").concat(n,"m"):"".concat(l," 小时 ").concat(n," 分"):n>0?i?"".concat(n,"m"):"".concat(n," 分"):i?"Just now":"刚刚"}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 r=Math.floor(Math.floor((Date.now()-e)/1e3)/60),a=Math.floor(r/60),l=Math.floor(a/24);return l>30?new Date(e).toLocaleDateString(t):"en-US"===t?l>0?"".concat(l,"d ago"):a>0?"".concat(a,"h ago"):r>0?"".concat(r,"m ago"):"Just now":l>0?"".concat(l," 天前"):a>0?"".concat(a," 小时前"):r>0?"".concat(r," 分钟前"):"刚刚"}r.d(t,{Jm:()=>o,a3:()=>l,fw:()=>n,mc:()=>c,z3:()=>a});let i={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},s={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function o(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===r?s:i)[e])?t:e}let c={active:"common.statusIndexed",outdated:"common.statusOutdated",error:"common.statusAbnormal",deleted:"common.statusDeleted",disk:"common.statusNotIndexed"}},48893:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.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-image",theme:"outlined"}},53234:(e,t)=>{"use strict";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 272H232V680h560v208zM496 208H312c-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 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"}},54746:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(97109),l=r(71242),n=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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let s=a.forwardRef((e,t)=>a.createElement(n.A,i({},e,{ref:t,icon:l.A})))},56398:(e,t)=>{"use strict";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"}},58520:(e,t)=>{"use strict";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 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z"}}]},name:"file-word",theme:"outlined"}},58690:(e,t,r)=>{"use strict";function a(e){var t,r,a;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{pageSize:null!=(t=l.pageSize)?t:10,pageSizeOptions:null!=(r=l.pageSizeOptions)?r:[10,20,50,100],showSizeChanger:!0,showTotal:t=>{var r,a;return e(null!=(r=l.totalLabelKey)?r:"common.totalRows",null!=(a=l.totalLabelFallback)?a:"共 {count} 条").replace("{count}",String(t))},hideOnSinglePage:null!=(a=l.hideOnSinglePage)&&a,showQuickJumper:!1}}r.d(t,{B:()=>a})},61825:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(97109),l=r(30289),n=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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let s=a.forwardRef((e,t)=>a.createElement(n.A,i({},e,{ref:t,icon:l.A})))},71242:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},74183:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge",function(){return r(84607)}])},76830:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(97109),l=r(56398),n=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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let s=a.forwardRef((e,t)=>a.createElement(n.A,i({},e,{ref:t,icon:l.A})))},84607:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ei});var a=r(65321),l=r(97109),n=r(85587),i=r(43220),s=r.n(i),o=r(86109),c=r(17807),d=r(25258),u=r(11702),h=r(71102),f=r(85114),m=r(7576),p=r(57271),g=r(33442),v=r(21289),x=r(56768),y=r(48893),b=r(88483);function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let j=l.forwardRef((e,t)=>l.createElement(b.A,w({},e,{ref:t,icon:y.A})));var _=r(13067);function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let A=l.forwardRef((e,t)=>l.createElement(b.A,z({},e,{ref:t,icon:_.A})));var k=r(58520);function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let S=l.forwardRef((e,t)=>l.createElement(b.A,C({},e,{ref:t,icon:k.A})));var M=r(90939);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let O=l.forwardRef((e,t)=>l.createElement(b.A,P({},e,{ref:t,icon:M.A})));var H=r(53234);function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let E=l.forwardRef((e,t)=>l.createElement(b.A,N({},e,{ref:t,icon:H.A})));var V=r(61825),B=r(26619),F=r(7225),I=r(26631),L=r(64254),T=r(64629),R=r(58209),D=r(35311);function q(){return(q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let U=l.forwardRef((e,t)=>l.createElement(b.A,q({},e,{ref:t,icon:D.A})));var J=r(30486),Q=r(54746),X=r(58740),W=r(38762),K=r(76830),G=r(39219),$=r(22931),Z=r(6578),Y=r(45551),ee=r(14569),et=r.n(ee),er=r(58690);let ea=["document","spreadsheet","image","cad","code","data","web","diagram","archive","other"],el=/\.(zip|jar|war|apk|tar|gz|tgz|bz2|rar|7z)$/iu,en=/(^|\/)\.DS_Store$|(^|\/)Thumbs\.db$|(^|\/)__MACOSX\/|\.bak$/iu;function ei(){var e,t,r;let i=(0,n.Vr)("knowledge"),{locale:y}=(0,n.x_)(),{message:b}=c.A.useApp(),w=(0,o.useRouter)(),_="string"==typeof w.query.category?w.query.category:"",{stats:z,reload:k}=function(){let[e,t]=(0,l.useState)(null),[r,a]=(0,l.useState)(!1),n=(0,l.useCallback)(async()=>{a(!0);try{t(await (0,Z.hc)())}catch(e){}finally{a(!1)}},[]);return(0,l.useEffect)(()=>{n()},[n]),{stats:e,loading:r,reload:n}}(),[C,M]=(0,l.useState)([]),[P,H]=(0,l.useState)(!1),[N,D]=(0,l.useState)(""),[q,ee]=(0,l.useState)(""),[ei,es]=(0,l.useState)(_),[eo,ec]=(0,l.useState)(!1),[ed,eu]=(0,l.useState)(!1),[eh,ef]=(0,l.useState)([]),[em,ep]=(0,l.useState)([]),[eg,ev]=(0,l.useState)([]),[ex,ey]=(0,l.useState)({}),eb=(0,l.useRef)(ei),ew=(0,l.useRef)(new Set),ej=(0,l.useRef)(new Map);(0,l.useEffect)(()=>{eb.current=ei},[ei]),(0,l.useEffect)(()=>{es("string"==typeof w.query.category?w.query.category:"")},[w.query.category]);let e_=(0,l.useCallback)(async()=>{try{let e=await (0,Z.BO)(),t={};for(let r of e)t[r.category]=r.fileCount;ey(t)}catch(e){}},[]);(0,l.useEffect)(()=>{e_()},[e_]);let ez=(0,l.useCallback)(async(e,t)=>{let r=null!=e?e:eb.current;(null==t?void 0:t.silent)||(H(!0),D(""));try{let e=await (0,Z.HT)({category:r||void 0,limit:5e3});M(e.files||[]),e.initializing&&window.setTimeout(()=>{ez(r,{silent:!0})},3e3)}catch(e){(null==t?void 0:t.silent)||(M([]),D(e instanceof Error?e.message:"文件列表加载失败"))}finally{(null==t?void 0:t.silent)||H(!1)}},[]);(0,l.useEffect)(()=>{ez(ei)},[ei,ez]);let eA=(0,l.useCallback)(async e=>{await ez(void 0,e),k(),e_()},[e_,ez,k]),ek=e=>"document"===e.type?null:{id:e.id,type:e.type,title:e.title,description:e.message,status:e.status,percent:e.percent,filePath:e.filePath,chunkCount:e.chunkCount,textLength:e.textLength,extractionMode:e.extractionMode,error:e.error,createdAt:e.createdAt},eC=(0,l.useCallback)(async()=>{try{let t=await (0,Z.Qx)(),r=t.operations.map(ek).filter(e=>!!e);for(let r of[...ew.current]){var e;let a=t.operations.find(e=>e.id===r);if(!a)continue;let l="".concat(a.status,":").concat(a.stage),n=null!=(e=ej.current.get(r))?e:"";"success"===a.status||"error"===a.status?(ew.current.delete(r),ej.current.delete(r),eA({silent:!0})):l!==n&&(ej.current.set(r,l),eA({silent:!0}))}ef(e=>{let t=new Set(r.map(e=>e.id).filter(Boolean)),a=r.map(t=>{var r;let a=e.find(e=>e.id===t.id);return a?{...a,...t,createdAt:null!=(r=a.createdAt)?r:t.createdAt}:t}),l=e.filter(e=>e.id&&!t.has(e.id)&&"processing"===e.status);return[...a,...l].slice(0,50)})}catch(e){}},[eA]),eS=(0,l.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ef(r=>{let a=r.findIndex(r=>e.id&&r.id===e.id||t.includes(r.title));if(a>=0){var l;let t=[...r];return t[a]={...r[a],...e,createdAt:null!=(l=r[a].createdAt)?l:e.createdAt},t}return[e,...r].slice(0,50)})},[]);(0,l.useEffect)(()=>{eC()},[eC]);let eM=(0,l.useMemo)(()=>{let e=0,t=0,r=0;for(let a of eh)"processing"===a.status?e++:"success"===a.status?t++:("error"===a.status||"warning"===a.status)&&r++;return{processing:e,success:t,error:r}},[eh]);(0,l.useEffect)(()=>{if(0===eM.processing)return;let e=window.setInterval(()=>{eC()},2e3),t=window.setInterval(()=>{eA({silent:!0})},8e3);return()=>{window.clearInterval(e),window.clearInterval(t)}},[eC,eA,eM.processing]);let eP=async e=>{let t=e.filter(e=>{let t=e.webkitRelativePath||e.name;return e.size>0&&!el.test(e.name)&&!en.test(t)}),r=e.length-t.length;if(r>0&&b.warning("已跳过 ".concat(r," 个空文件、系统文件、备份文件或压缩包")),0===t.length)return;let a=1===t.length?t[0].name:"".concat(t.length," 个文件");ec(!0);let l="".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2));ew.current.add(l),ej.current.set(l,""),eS({id:l,type:"upload",title:"上传 ".concat(a),description:"等待上传、解析、切片和入库;同路径文件会更新,其他已有文件不会清除",status:"processing",percent:5});try{await (0,Z.c1)(t,void 0,l,e=>{eS({id:l,type:"upload",title:"上传 ".concat(a),description:"正在上传文件:".concat(e.uploadedFiles,"/").concat(e.totalFiles,",批次 ").concat(e.batchIndex+1,"/").concat(e.totalBatches),status:"processing",percent:Math.min(5,Math.max(1,Math.round(e.uploadedFiles/Math.max(1,e.totalFiles)*5)))})});let e=q||ei?"当前筛选(".concat([q?"搜索「".concat(q,"」"):"",ei?"分类「".concat(ei,"」"):""].filter(Boolean).join(" + "),")不会自动清空——新文件若未出现在列表里,调整筛选即可看到"):"新文件会随解析进度出现在列表里";b.info("文件已上传,正在后台解析、切片和入库;同路径文件会更新,其他已有文件不会清除,可在顶部“后台任务”查看进度。".concat(e)),await eC()}catch(e){if(e instanceof Z.NH){let t=e.failures.slice(0,3).map(e=>"批次 ".concat(e.batchIndex+1,"(").concat(e.files.join("、")).concat(e.files.length<5?"":" 等","):").concat(e.message)).join(";");b.warning("".concat(e.message,",失败文件可重新选择上传")),eS({id:l,type:"upload",title:"部分文件上传失败 ".concat(a),description:t||e.message,status:"warning",percent:100,error:t||e.message})}else{ew.current.delete(l),ej.current.delete(l);let t=e instanceof Error?e.message:"请重试或检查文件格式";b.error(t||"上传失败"),eS({id:l,type:"error",title:"上传失败 ".concat(a),description:t,status:"error",percent:100})}}finally{ec(!1),eA({silent:!0})}},eO=async()=>{eu(!0);let e="reindex-ui-".concat(Date.now());eS({id:e,type:"reindex",title:"重新解析入库",description:"正在提交后台任务",status:"processing",percent:5});try{var t;let r=await (0,Z.H1)(),a=r.operationId||e,l=r.job;b.info(r.alreadyRunning?"已有重新解析任务正在后台执行":"已提交重新解析入库任务,可在顶部“后台任务”查看进度"),eS({id:a,type:"reindex",title:(null==l?void 0:l.title)||"重新解析入库",description:(null==l?void 0:l.message)||"后台将重新扫描文件、解析、切片并重建索引",status:(null==l?void 0:l.status)||"processing",percent:null!=(t=null==l?void 0:l.percent)?t:10,error:null==l?void 0:l.error},["重新解析入库"]);for(let e=0;e<360;e++){let e=await (0,Z.ax)(a).then(e=>e.job).catch(async()=>(await (0,Z.Qx)()).operations.find(e=>e.id===a));if(e){let t="success"===e.status||"error"===e.status;if(eS({id:a,type:"error"===e.status?"error":"reindex",title:"success"===e.status?"重新解析入库完成":"error"===e.status?"重新解析入库失败":e.title,description:e.error||e.message,status:e.status,percent:e.percent,filePath:e.filePath,chunkCount:e.chunkCount,error:e.error}),t){"success"===e.status?b.success(e.message||"重新解析入库完成"):b.error(e.error||e.message||"重新解析入库失败");break}}await new Promise(e=>setTimeout(e,1e3))}await eA(),await eC()}catch(r){let t=r instanceof Error?r.message:"重新解析入库失败";b.error(t),eS({id:e,type:"error",title:"重新解析入库失败",description:t,status:"error",percent:100},["重新解析入库","重新解析入库完成","重新解析入库失败"])}finally{eu(!1)}},eH=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="file-reindex-ui-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2));eS({id:r,type:"reindex",title:"".concat(t?"重新解析文件夹":"重新解析"," ").concat(e),description:t?"正在提交文件夹后台任务":"正在提交单文件后台任务",status:"processing",percent:5,filePath:e});try{var a;let t=await (0,Z.HC)(e),l=t.operationId||r,n=t.job;b.info(t.alreadyRunning?"已有知识库任务正在后台执行":"已提交单文件重新解析任务"),eS({id:l,type:"reindex",title:(null==n?void 0:n.title)||"重新解析 ".concat(e),description:(null==n?void 0:n.message)||"后台将重新解析、分块并入库该文件",status:(null==n?void 0:n.status)||"processing",percent:null!=(a=null==n?void 0:n.percent)?a:10,filePath:(null==n?void 0:n.filePath)||e,chunkCount:null==n?void 0:n.chunkCount,error:null==n?void 0:n.error},["重新解析 ".concat(e)]);for(let t=0;t<240;t++){let t=await (0,Z.ax)(l).then(e=>e.job).catch(async()=>(await (0,Z.Qx)()).operations.find(e=>e.id===l));if(t){let r="success"===t.status||"error"===t.status;if(eS({id:l,type:"error"===t.status?"error":"reindex",title:"success"===t.status?"重新解析完成 ".concat(e):"error"===t.status?"重新解析失败 ".concat(e):t.title,description:t.error||t.message,status:t.status,percent:t.percent,filePath:t.filePath||e,chunkCount:t.chunkCount,error:t.error}),await ez(),r){"success"===t.status?b.success(t.message||"单文件重新解析完成"):b.error(t.error||t.message||"单文件重新解析失败");break}}await new Promise(e=>setTimeout(e,1e3))}await eA(),await eC()}catch(a){let t=a instanceof Error?a.message:"单文件重新解析失败";b.error(t),eS({id:r,type:"error",title:"重新解析失败 ".concat(e),description:t,status:"error",percent:100,filePath:e},["重新解析 ".concat(e)])}},eN=e=>{let t="selected"===e?eU:"filtered"===e?eV.map(e=>e.relativePath):[],r=C.length;if("all"!==e&&0===t.length||"all"===e&&0===r)return void b.info("没有可删除的文件");let a="all"===e?"删除全部文件 ".concat(r," 个?"):"filtered"===e?"删除当前筛选结果中的文件 ".concat(t.length," 个?"):"删除已选文件 ".concat(t.length," 个?");d.A.confirm({title:a,content:"将同时删除文件、切片、索引和向量记录。此操作不可撤销。",okText:i("common.delete"),cancelText:i("common.cancel"),okButtonProps:{danger:!0},onOk:async()=>{ef(e=>[{type:"delete",title:a,description:"正在批量删除文件和索引",status:"processing",percent:10},...e].slice(0,50));try{var l;let a=null!=(l=("all"===e?await (0,Z.X8)():"selected"===e?await (0,Z.tZ)(eq,eD):await (0,Z.SJ)(t)).deleted)?l:"all"===e?r:t.length;b.success("已删除 ".concat(a," 个文件")),ep([]),ef(e=>[{type:"delete",title:"批量删除完成",description:"已删除 ".concat(a," 个文件、切片和索引"),status:"success"},...e].slice(0,50)),await eA(),await eC()}catch(e){b.error("批量删除失败"),ef(e=>[{type:"error",title:"批量删除失败",description:"请重试",status:"error"},...e].slice(0,50))}}})},eE=async()=>{if(0===eq.length&&0===eD.length)return;let e=b.loading(i("exporting"),0);try{let{blob:e,fileName:t,exported:r,skipped:a}=await (0,Z.G8)({relativePaths:eq,folderPaths:eD}),l=URL.createObjectURL(e),n=document.createElement("a");n.href=l,n.download=t,document.body.appendChild(n),n.click(),n.remove(),URL.revokeObjectURL(l),a>0?b.warning(i("exportParsedSkipped").replace("{count}",String(a))):b.success(i("exportParsedSuccess").replace("{count}",String(r)))}catch(e){b.error(e instanceof Error&&e.message?e.message:i("exportParsedFailed"))}finally{e()}},eV=(0,l.useMemo)(()=>q?C.filter(e=>e.relativePath.toLowerCase().includes(q.toLowerCase())):C,[q,C]),eB=(0,l.useMemo)(()=>new Set(eV.map(e=>e.relativePath)),[eV]),eF=(0,l.useMemo)(()=>C.filter(e=>"error"===e.status).length,[C]),eI=(0,l.useMemo)(()=>{let e=ea.filter(e=>"other"!==e),t=Object.keys(ex).filter(t=>!e.includes(t)&&"other"!==t);return[{label:i("allCategories"),value:""},...[...e,...t,"other"].map(e=>{var t;let r=null!=(t=ex[e])?t:0,a=(0,Y.Jm)(e,y);return{label:r>0?"".concat(a," (").concat(r,")"):a,value:e}})]},[ex,y,i]),eL=(0,l.useMemo)(()=>{let e={};for(let r of[...eV].sort((e,t)=>e.relativePath.localeCompare(t.relativePath))){let a=r.relativePath.split("/"),l="";for(let n=0;n<a.length;n++){let i=a[n],s=l;l=l?"".concat(l,"/").concat(i):i;let o=n===a.length-1;if(e[l])o||e[l].isFolder?o&&(e[l].isFolder=!1,e[l].file=r,e[l].fileCount=1,e[l].totalSize=r.fileSize,e[l].totalChunks=r.chunkCount):(e[l].isFolder=!0,e[l].children=[],e[l].fileCount=0,e[l].totalSize=0,e[l].totalChunks=0);else{var t;e[l]={key:l,name:i,isFolder:!o,...o?{file:r,fileCount:1,totalSize:r.fileSize,totalChunks:r.chunkCount}:{children:[],fileCount:0,totalSize:0,totalChunks:0}},s&&(null==(t=e[s])?void 0:t.children)&&e[s].children.push(e[l])}}}let r=e=>{for(let n of e)if(n.children){r(n.children);let e=0,i=0,s=0;for(let r of n.children){var t,a,l;e+=null!=(t=r.fileCount)?t:0,i+=null!=(a=r.totalSize)?a:0,s+=null!=(l=r.totalChunks)?l:0}n.fileCount=e,n.totalSize=i,n.totalChunks=s}},a=e=>e.map(e=>e.children?{...e,children:a(e.children)}:e).filter(e=>{var t,r,a;return!e.isFolder||(null!=(r=e.fileCount)?r:0)>0&&(null!=(a=null==(t=e.children)?void 0:t.length)?a:0)>0}),l=Object.values(e).filter(e=>!e.key.includes("/"));return r(l),a(l)},[eV]),eT=(0,l.useMemo)(()=>{let e=[],t=r=>{for(let a of r)e.push(a.key),a.children&&t(a.children)};return t(eL),e},[eL]),eR=(0,l.useMemo)(()=>new Set([...eB,...eT]),[eT,eB]),eD=(0,l.useMemo)(()=>em.map(String).filter(e=>!eB.has(e)&&eT.includes(e)),[eT,em,eB]),eq=(0,l.useMemo)(()=>em.map(String).filter(e=>eB.has(e)),[em,eB]),eU=(0,l.useMemo)(()=>{let e=new Set;for(let t of eq){let r=C.find(e=>e.relativePath===t);r&&e.add(r.relativePath)}for(let t of eD){let r="".concat(t,"/");for(let t of C)t.relativePath.startsWith(r)&&e.add(t.relativePath)}return Array.from(e)},[C,eq,eD]),eJ=eU.length;(0,l.useEffect)(()=>{ep(e=>e.filter(e=>eR.has(String(e))))},[eR]);let eQ=(0,l.useMemo)(()=>q?eT:[],[q,eT]);(0,l.useEffect)(()=>{ev(eQ)},[eQ]);let eX=(e,t)=>{ev(r=>e?[...r,t.key]:r.filter(e=>e!==t.key))},eW=[{title:i("fileName"),dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsxs)("span",{className:et().fileNameCell,children:[t.isFolder?(0,a.jsx)("span",{style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),eX(!eg.includes(t.key),t)},children:(e=>{let t=e.children;return t&&0!==t.length?(0,a.jsx)(L.A,{style:{color:"#fa8c16",fontSize:15}}):(0,a.jsx)(F.A,{style:{color:"#fa8c16",fontSize:15}})})(t)}):(e=>{if(!e)return(0,a.jsx)(x.A,{style:{fontSize:15}});let t=e.category;return"image"===t?(0,a.jsx)(j,{style:{color:"#eb2f96",fontSize:15}}):"spreadsheet"===t?(0,a.jsx)(A,{style:{color:"#52c41a",fontSize:15}}):"document"===t?(0,a.jsx)(S,{style:{color:"#1677ff",fontSize:15}}):"code"===t?(0,a.jsx)(O,{style:{color:"#fa8c16",fontSize:15}}):"archive"===t?(0,a.jsx)(E,{style:{color:"#8c8c8c",fontSize:15}}):"web"===t?(0,a.jsx)(V.A,{style:{color:"#13c2c2",fontSize:15}}):"data"===t?(0,a.jsx)(B.A,{style:{color:"#722ed1",fontSize:15}}):"cad"===t?(0,a.jsx)(F.A,{style:{color:"#fa541c",fontSize:15}}):"diagram"===t?(0,a.jsx)(j,{style:{color:"#a0d911",fontSize:15}}):(0,a.jsx)(I.A,{style:{fontSize:15}})})(t.file),t.isFolder?(0,a.jsx)("span",{className:et().folderName,onClick:e=>{e.stopPropagation(),eX(!eg.includes(t.key),t)},children:t.name}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s(),{className:"min-w-0 max-w-[520px] whitespace-normal break-words leading-relaxed",href:"/knowledge/file-detail?relativePath=".concat(encodeURIComponent(t.key)),children:t.name})})]})},{title:i("fileCategory"),dataIndex:"category",key:"cat",width:110,render:(e,t)=>{var r,l;return t.isFolder?(0,a.jsx)("span",{style:{color:"var(--colorTextQuaternary)"},children:"—"}):(0,a.jsx)(u.A,{children:(0,Y.Jm)(null!=(l=null==(r=t.file)?void 0:r.category)?l:"",y)})}},{title:i("fileSize"),dataIndex:"fileSize",key:"size",width:90,render:(e,t)=>{var r,a,l;return(0,Y.z3)(t.isFolder?null!=(a=t.totalSize)?a:0:null!=(l=null==(r=t.file)?void 0:r.fileSize)?l:0)}},{title:i("chunksCount"),dataIndex:"chunkCount",key:"chunks",width:80,render:(e,t)=>{var r,l,n;let i=t.isFolder?null!=(l=t.totalChunks)?l:0:null!=(n=null==(r=t.file)?void 0:r.chunkCount)?n:0;return(0,a.jsx)(u.A,{color:i>1?"green":"orange",children:i})}},{title:i("parsingStatus"),dataIndex:"status",key:"status",width:100,render:(e,t)=>{var r,l,n,i;return t.isFolder?(0,a.jsx)("span",{style:{color:"var(--colorTextQuaternary)"},children:"—"}):(0,a.jsx)(u.A,{color:"active"===(i=null==(r=t.file)?void 0:r.status)?"green":"processing"===i||"indexing"===i?"blue":"error"===i?"red":"orange",children:(null==(l=t.file)?void 0:l.errorMessage)||(null==(n=t.file)?void 0:n.status)||"—"})}},{title:i("fileDate"),dataIndex:"mtime",key:"date",width:130,render:(e,t)=>{var r;return t.isFolder?(0,a.jsx)("span",{style:{color:"var(--colorTextQuaternary)"},children:"—"}):(null==(r=t.file)?void 0:r.mtime)?new Date(t.file.mtime).toLocaleDateString(y):"—"}},{title:i("source"),key:"source",width:100,render:(e,t)=>t.isFolder?(0,a.jsx)("span",{style:{color:"var(--colorTextQuaternary)"},children:"—"}):(0,a.jsx)(u.A,{color:"cyan",children:i("fileSource")})},{title:"",key:"act",width:80,align:"center",render:(e,t)=>{var r;return(0,a.jsx)(h.A,{menu:{items:t.isFolder?[{key:"reindex-folder",label:"重新索引文件夹",icon:(0,a.jsx)(T.A,{}),disabled:(null!=(r=t.fileCount)?r:0)===0,onClick:()=>{eH(t.key,!0)}}]:[{key:"reindex",label:i("reindex"),icon:(0,a.jsx)(T.A,{}),onClick:()=>{eH(t.file.relativePath)}},{type:"divider"},{key:"delete",label:i("delete"),icon:(0,a.jsx)(R.A,{}),danger:!0,onClick:()=>{var e;return e=t.file,void d.A.confirm({title:i("delete"),content:i("deleteConfirm"),okText:i("common.confirm"),cancelText:i("common.cancel"),okButtonProps:{danger:!0},onOk:async()=>{ef(t=>[{type:"delete",title:"删除 ".concat(e.relativePath),description:"正在删除文件记录",status:"processing"},...t].slice(0,50));try{await (0,Z.xq)(e.relativePath),b.success("已删除"),ef(t=>[{type:"delete",title:"删除完成 ".concat(e.relativePath),description:"文件和索引记录已移除",status:"success"},...t].slice(0,50)),ep([]),await eA(),await eC()}catch(t){b.error("删除失败"),ef(t=>[{type:"error",title:"删除失败 ".concat(e.relativePath),description:"请重试",status:"error"},...t].slice(0,50))}}})}}]},trigger:["click"],children:(0,a.jsx)(f.Ay,{type:"text",size:"small",icon:(0,a.jsx)(U,{})})})}}],eK=(0,a.jsxs)("div",{className:"flex flex-1 md:flex-none w-full md:w-auto items-center gap-3",children:[(0,a.jsx)(m.A,{placeholder:i("searchPlaceholder"),prefix:(0,a.jsx)(J.A,{className:"text-[var(--colorTextTertiary)]"}),value:q,onChange:e=>{ee(e.target.value)},allowClear:!0,variant:"borderless",className:"max-w-[300px] flex-1 bg-transparent hover:bg-transparent focus:bg-transparent",style:{borderBottom:"1px solid var(--borderColor)",borderRadius:0,paddingLeft:0,paddingRight:0}}),(0,a.jsx)(p.A,{value:ei||void 0,onChange:e=>{es(e||"")},placeholder:i("filterCategory"),allowClear:!0,style:{width:170},variant:"borderless",options:eI}),(0,a.jsx)("div",{className:"w-[1px] h-6 bg-[var(--borderColor)] mx-1"}),(0,a.jsx)(h.A,{menu:{items:[{key:"file",label:i("uploadFiles"),icon:(0,a.jsx)(x.A,{}),onClick:()=>{var e;return null==(e=document.getElementById("kb-file-upload-input"))?void 0:e.click()}},{key:"folder",label:i("uploadFolder"),icon:(0,a.jsx)(F.A,{}),onClick:()=>{var e;return null==(e=document.getElementById("kb-folder-upload-input"))?void 0:e.click()}},{type:"divider"},{key:"reindex",label:i("reindexAll"),icon:(0,a.jsx)(T.A,{}),onClick:()=>{eO()},danger:!0}]},trigger:["click"],children:(0,a.jsx)(f.Ay,{type:"primary",icon:(0,a.jsx)(Q.A,{}),loading:eo||ed,className:"rounded-md px-4",children:i("new")})}),(0,a.jsx)("input",{id:"kb-file-upload-input",type:"file",multiple:!0,hidden:!0,accept:".pdf,.doc,.docx,.txt,.md,.csv,.tsv,.xls,.xlsx,.png,.jpg,.jpeg,.webp,.svg,.dwg,.dxf,.step,.stp,.iges,.igs,.js,.ts,.tsx,.jsx,.py,.go,.java,.cs,.cpp,.c,.h,.json,.jsonl,.yaml,.yml,.xml,.html,.htm,.drawio,.dio,.vsdx,.vdx,.puml,.plantuml,.mmd,.mermaid,.excalidraw",onChange:e=>{var t;let r=Array.from(null!=(t=e.target.files)?t:[]);e.target.value="",eP(r)}}),(0,a.jsx)("input",{id:"kb-folder-upload-input",type:"file",multiple:!0,hidden:!0,webkitdirectory:"",onChange:e=>{var t;let r=Array.from(null!=(t=e.target.files)?t:[]);e.target.value="",eP(r)}})]}),eG=[{icon:(0,a.jsx)(x.A,{}),label:i("totalFiles"),value:String(null!=(e=null==z?void 0:z.fileCount)?e:0)},{icon:(0,a.jsx)(B.A,{}),label:i("totalChunks"),value:String(null!=(t=null==z?void 0:z.chunkCount)?t:0)},{icon:(0,a.jsx)(E,{}),label:i("totalSize"),value:(0,Y.z3)(null!=(r=null==z?void 0:z.totalSizeBytes)?r:0)},{icon:(0,a.jsx)(X.A,{}),label:i("lastIndexed"),value:(null==z?void 0:z.lastIndexedAt)?(0,Y.fw)(z.lastIndexedAt,y):i("common.never")}];return(0,a.jsxs)("div",{className:"h-[calc(100vh_-_140px)] flex flex-col",children:[(0,a.jsxs)("div",{className:"bg-[var(--colorBgContainer)] rounded-2xl border border-[var(--borderColor)] p-6 mb-4 shrink-0 animateFadeIn",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6 pb-6 border-b border-[var(--borderColor)]",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h1",{className:"text-2xl font-bold tracking-tight text-[var(--colorText)] mb-1 flex items-center gap-2",children:[(0,a.jsx)(B.A,{className:"text-[var(--colorAccent)]"}),i("title")]}),(0,a.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)] m-0",children:i("description")})]}),eK]}),(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 pt-6 stagger-1",children:eG.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded-xl bg-[var(--colorBgHover)] flex items-center justify-center text-xl text-[var(--colorTextSecondary)]",children:e.icon}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-[11px] font-semibold text-[var(--colorTextTertiary)] uppercase tracking-wider mb-1",children:e.label}),(0,a.jsx)("div",{className:"text-xl font-bold text-[var(--colorText)] leading-none truncate",children:e.value})]})]},e.label))})]}),N&&(0,a.jsx)("div",{className:"p-4 mb-4 bg-[var(--colorDanger)]/10 text-[var(--colorDanger)] rounded-xl border border-[var(--colorDanger)]/20",children:N}),(0,a.jsxs)("div",{className:"flex-1 min-h-0 bg-[var(--colorBgContainer)] rounded-2xl border border-[var(--borderColor)] overflow-hidden flex flex-col animateFadeIn stagger-3",style:{opacity:0},children:[(0,a.jsxs)("div",{className:"flex flex-wrap justify-between items-center gap-3 p-4 bg-[var(--colorBgHover)] border-b border-[var(--borderColor)] shrink-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 text-xs text-[var(--colorTextSecondary)] font-medium",children:[(0,a.jsx)("span",{children:i("showingMatchingFiles").replace("{count}",String(eV.length))}),eF>0&&(0,a.jsxs)(u.A,{color:"red",icon:(0,a.jsx)(W.A,{}),className:"m-0 border-0",children:[i("parsingErrors")," ",eF]})]}),(0,a.jsxs)(g.A,{size:8,children:[eJ>0&&(0,a.jsxs)(f.Ay,{size:"small",icon:(0,a.jsx)(K.A,{}),onClick:()=>void eE(),className:"rounded-lg",children:[i("exportParsed")," (",eJ,")"]}),eJ>0&&(0,a.jsxs)(f.Ay,{danger:!0,size:"small",icon:(0,a.jsx)(R.A,{}),onClick:()=>eN("selected"),className:"rounded-lg",children:[i("deleteSelected")," (",eJ,")"]}),(0,a.jsx)(f.Ay,{danger:!0,size:"small",disabled:0===C.length,onClick:()=>eN("all"),className:"rounded-lg",children:i("deleteAll")})]})]}),(0,a.jsx)(v.A,{rowKey:"key",columns:eW,dataSource:eL,loading:P&&!eo&&!ed,size:"middle",className:"flex-1 border-0 tableFillHeight",expandable:{expandedRowKeys:eg,onExpand:eX,expandIcon:e=>{let{expanded:t,onExpand:r,record:l}=e;return l.isFolder?(0,a.jsx)("button",{type:"button",onClick:e=>r(l,e),className:"w-6 h-6 mr-1 inline-flex items-center justify-center align-middle text-[var(--colorTextTertiary)] hover:text-[var(--colorText)] transition-colors bg-transparent border-0 p-0 leading-none",children:t?(0,a.jsx)(G.A,{size:16}):(0,a.jsx)($.A,{size:16})}):(0,a.jsx)("span",{className:"w-6 h-6 inline-flex"})}},locale:{emptyText:P?i("common.loading"):q?i("emptySearch"):i("noFiles")},pagination:(0,er.B)(i,{totalLabelKey:"knowledge.topLevelCount",totalLabelFallback:"共 {count} 个顶层项目"}),rowClassName:e=>"hover:bg-[var(--colorBgHover)] transition-colors ".concat(e.isFolder?"font-medium bg-[var(--colorBgSecondary)]/30":""),rowSelection:{selectedRowKeys:em,onChange:ep,checkStrictly:!1,getCheckboxProps:e=>{var t;return{disabled:!!e.isFolder&&(null!=(t=e.fileCount)?t:0)===0}}}})]})]})}},90939:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"}}},e=>{e.O(0,[310,700,914,174,189,289,636,593,792],()=>e(e.s=74183)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{27549:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/prompt",function(){return r(34508)}])},34508:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>et});var o=r(65321),a=r(97109),s=r(85587),l=r(45551),c=r(17807),n=r(33442),i=r(11702),d=r(56985),m=r(85114),p=r(32965),u=r(88762),x=r(45759),h=r(7576),g=r(57271),f=r(49292),j=r(84253),v=r(34052),y=r(42700),b=r(55122),w=r(93360),N=r(54746),S=r(99650),A=r(81668),C=r(58209),k=r(26631),T=r(7225),P=r(96091),F=r(30486),z=r(46082),E=r(42758),B=r(7851),O=r(84742),M=r(24810),R=r(7492);async function I(){let e=await fetch("/api/prompt");if(!e.ok)throw Error("Failed");return e.json()}async function D(e,t,r){let o=await fetch("/api/prompt",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:e,content:t,name:r})});if(!o.ok)throw Error("Failed");return o.json()}async function _(e){let t=await fetch("/api/prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"previewRules",content:e})});return t.ok&&(await t.json()).preview||null}async function J(e){let t=await fetch("/api/prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create",projectRoot:e,content:"# CUSTOMIZE\n"})});if(!t.ok)throw Error("Failed");return t.json()}async function L(e,t){let r=await fetch("/api/prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"createCustom",name:e,content:t})});if(!r.ok)throw Error("Failed");return r.json()}async function U(e){let t=await fetch("/api/prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"select",selectedIds:e})});if(!t.ok)throw Error("Failed");return t.json()}async function H(e){let t=await fetch("/api/prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"import",...e&&"object"==typeof e?e:{prompts:[]}})});if(!t.ok)throw Error(await t.text());return t.json()}async function K(){return W("",!1,60)}async function G(e){let t=await fetch("/api/kb/files/detail?relativePath=".concat(encodeURIComponent(e)));if(!t.ok)throw Error("Failed");return((await t.json()).chunks||[]).map(e=>e.content||"").filter(Boolean).join("\n\n").slice(0,12e3)}async function W(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,o=new URLSearchParams({limit:String(r)});e.trim()&&o.set("q",e.trim()),t||o.set("includeContent","0");let a=await fetch("/api/kb/files/search?".concat(o));return a.ok&&(await a.json()).files||[]}async function $(e,t){let r=await fetch("/api/prompt/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){let e=await r.text();try{let r=JSON.parse(e);throw Error(r.error||r.message||e||t)}catch(r){throw Error(e||t)}}return r.json()}function q(e,t){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json;charset=utf-8"}),o=URL.createObjectURL(r),a=document.createElement("a");a.href=o,a.download=e,a.click(),URL.revokeObjectURL(o)}function X(e){return e.id.startsWith("custom:")}function V(e){return X(e)?"custom":e.isCurrent?"current":"project"}function Z(e,t,r){return e?"customize-agent:prompt-chat:".concat(e.id,":").concat(e.customizePath||e.projectName):"customize-agent:prompt-chat:draft:".concat(r||t||"new")}function Q(e){let t=Date.parse(e);return Number.isNaN(t)?"-":new Date(t).toLocaleString()}function Y(e){return{type:"customize-agent.prompts",version:1,exportedAt:new Date().toISOString(),prompts:e.map(e=>({name:e.projectName,content:e.content||"",selected:e.selected,source:V(e)}))}}function ee(e){let t=e.match(/(^|\s)@([^\s@]*)$/);return t?t[2]:null}function et(){let e=(0,s.Vr)(),{message:t}=c.A.useApp(),[r,et]=(0,a.useState)(!0),[er,eo]=(0,a.useState)([]),[ea,es]=(0,a.useState)(!1),[el,ec]=(0,a.useState)(null),[en,ei]=(0,a.useState)(""),[ed,em]=(0,a.useState)(""),[ep,eu]=(0,a.useState)(!1),[ex,eh]=(0,a.useState)(!1),[eg,ef]=(0,a.useState)("custom"),[ej,ev]=(0,a.useState)("all"),[ey,eb]=(0,a.useState)("mtime"),[ew,eN]=(0,a.useState)("list"),[eS,eA]=(0,a.useState)(""),[eC,ek]=(0,a.useState)(null),[eT,eP]=(0,a.useState)([]),[eF,ez]=(0,a.useState)(!1),[eE,eB]=(0,a.useState)([]),[eO,eM]=(0,a.useState)(""),[eR,eI]=(0,a.useState)(""),[eD,e_]=(0,a.useState)(!1),[eJ,eL]=(0,a.useState)([]),[eU,eH]=(0,a.useState)([]),[eK,eG]=(0,a.useState)([]),[eW,e$]=(0,a.useState)(!1),[eq,eX]=(0,a.useState)(!1),[eV,eZ]=(0,a.useState)(!1),[eQ,eY]=(0,a.useState)(null),[e0,e1]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!ea||!en.trim()){eY(null),e1(!1);return}e1(!0);let e=setTimeout(()=>{_(en).then(e=>{eY(e),e1(!1)})},500);return()=>clearTimeout(e)},[en,ea]);let e2=(0,a.useRef)(null),e3=ee(eR),e5=async()=>{et(!0);try{eo(await I())}catch(r){t.error(e("common.error"))}finally{et(!1)}};(0,a.useEffect)(()=>{e5()},[]),(0,a.useEffect)(()=>{let e=window.localStorage.getItem("customize-agent:prompt-view-mode");("list"===e||"card"===e)&&eN(e)},[]),(0,a.useEffect)(()=>{window.localStorage.setItem("customize-agent:prompt-view-mode",ew)},[ew]),(0,a.useEffect)(()=>{let e=e2.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"}),eO&&window.localStorage.setItem(eO,JSON.stringify(eE.slice(-30)))},[eE,eD,eO]),(0,a.useEffect)(()=>{!ea||eJ.length>0||eW||(e$(!0),K().then(eL).catch(()=>void 0).finally(()=>e$(!1)))},[ea,eJ.length,eW]),(0,a.useEffect)(()=>{let e=null==e3?void 0:e3.trim();if(!ea||!e){eH([]),eX(!1);return}let t=!1;eX(!0);let r=window.setTimeout(()=>{W(e).then(e=>{t||eH(e)}).catch(()=>{t||eH([])}).finally(()=>{t||eX(!1)})},250);return()=>{t=!0,window.clearTimeout(r)}},[ea,e3]);let e4=er.find(e=>e.isCurrent),e6=er.filter(X),e8={all:er.length,custom:er.filter(e=>"custom"===V(e)).length,current:er.filter(e=>"current"===V(e)).length,project:er.filter(e=>"project"===V(e)).length,selected:er.filter(e=>e.selected).length,unselected:er.filter(e=>!e.selected).length,hasFile:er.filter(e=>e.hasFile).length,missingFile:er.filter(e=>!e.hasFile).length},e7=er.filter(e=>{var t;let r=V(e);return("all"===eg||r===eg)&&("selected"!==ej||!!e.selected)&&("unselected"!==ej||!e.selected)&&("hasFile"!==ej||!!e.hasFile)&&("missingFile"!==ej||!e.hasFile)&&(!eS.trim()||(t=eS.trim(),!!"".concat(e.projectName,"\n").concat(e.projectRoot||"","\n").concat(e.customizePath||"","\n").concat(e.content||"").toLowerCase().includes(t.toLowerCase())))}).sort((e,t)=>"name"===ey?e.projectName.localeCompare(t.projectName):"source"===ey?["custom","current","project"].indexOf(V(e))-["custom","current","project"].indexOf(V(t)):"selected"===ey&&Number(t.selected)-Number(e.selected)||Date.parse(t.mtime||"")-Date.parse(e.mtime||"")),e9=e7.find(e=>e.id===eC)||e7[0]||null,te=eT.filter(e=>e7.some(t=>t.id===e)),tt=(null==e3?void 0:e3.trim())?eU:eJ,tr=(e,t,r)=>{let o=Z(e,t,r);eM(o),eB(function(e){try{let t=JSON.parse(window.localStorage.getItem(e)||"[]");return Array.isArray(t)?t.filter(e=>("user"===e.role||"assistant"===e.role)&&"string"==typeof e.content).slice(-30):[]}catch(e){return[]}}(o)),eI(""),e_(!1),eG([]),eZ(!1)},to=r=>{if(null==r?void 0:r.projectRoot)return void J(r.projectRoot).then(()=>{t.success(e("common.success")),e5()}).catch(()=>t.error(e("common.error")));let o="new:".concat(Date.now());ec(null),eh(!0),em(""),ei(""),tr(null,"new",o),es(!0)},ta=async()=>{if(!ed.trim())return void t.error(e("prompt.nameRequired"));eu(!0);try{if(el)await D(el.customizePath,en,X(el)?ed.trim():void 0),t.success(e("common.success"));else{let r=await L(ed.trim(),en||"# ".concat(ed.trim(),"\n"));!function(e,t){if(!e||!t||e===t)return;let r=window.localStorage.getItem(e);r&&!window.localStorage.getItem(t)&&window.localStorage.setItem(t,r)}(eO,Z({id:r.id,projectId:r.id,projectName:ed.trim(),customizePath:r.id,content:en,mtime:"",hasFile:!0,isCurrent:!1,selected:!1,source:"custom"},ed.trim())),t.success(e("common.success"))}es(!1),await e5()}catch(r){t.error(e("common.error"))}finally{eu(!1)}},ts=async e=>{let t=Array.from(new Set([...eK,...eJ.filter(t=>e.includes("@".concat(t.relativePath))).map(e=>e.relativePath)])).slice(0,3),r=[];for(let e of t){let t=await G(e);t&&r.push({relativePath:e,content:t})}return r},tl=async()=>{let r=eR.trim();if(!r||eD)return;let o=[...eE,{role:"user",content:r}];eB(o),eI(""),eZ(!1),e_(!0);try{let t=await ts(r),a=await $({name:ed||(null==el?void 0:el.projectName)||e("prompt.untitled"),content:en,message:r,history:eE,references:t},e("prompt.chatFailed"));eB([...o,{role:"assistant",content:a.content||e("prompt.chatEmptyReply")}])}catch(r){t.error(r instanceof Error?r.message:e("prompt.chatFailed")),eB(o)}finally{e_(!1)}},tc=async(r,o)=>{let a=o?Array.from(new Set([...er.filter(e=>e.selected).map(e=>e.id),r.id])):er.filter(e=>e.selected&&e.id!==r.id).map(e=>e.id);try{await U(a),eo(e=>e.map(e=>({...e,selected:a.includes(e.id)})))}catch(r){t.error(e("common.error"))}},tn=async r=>{let o=er.filter(e=>e.selected).map(e=>e.id),a=r?Array.from(new Set([...o,...te])):o.filter(e=>!te.includes(e));try{await U(a),eo(e=>e.map(e=>({...e,selected:a.includes(e.id)}))),eP([]),t.success(e("common.success"))}catch(r){t.error(e("common.error"))}},ti=async r=>{try{if(!(await fetch("/api/prompt",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:r.projectId,filePath:r.customizePath})})).ok)throw Error("Failed");t.success(e("common.success")),eP(e=>e.filter(e=>e!==r.id)),await e5()}catch(r){t.error(e("common.error"))}},td=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"custom",o="checked"===r?er.filter(e=>te.includes(e.id)):"filtered"===r?e7:e6;q("customize-prompts-".concat(new Date().toISOString().slice(0,10),".json"),Y(o)),t.success(e("prompt.exportedCount").replace("{count}",String(o.length)))},tm=async r=>{if(r){ez(!0);try{let o=await r.text(),a=JSON.parse(o),s=await H(a);t.success(e("prompt.importedCount").replace("{count}",String(s.imported))),await e5()}catch(r){t.error(e("prompt.importFailed"))}finally{ez(!1)}}},tp=t=>{let r=V(t);return(0,o.jsxs)(n.A,{size:4,wrap:!0,children:[(0,o.jsx)(i.A,{color:"custom"===r?"cyan":"current"===r?"green":"project"===r?"blue":"default",style:{margin:0},children:e("custom"===r?"prompt.customPrompt":"current"===r?"prompt.currentProject":"project"===r?"prompt.otherProjects":"prompt.allPrompts")}),t.selected&&(0,o.jsx)(i.A,{color:"purple",style:{margin:0},children:e("prompt.selected")}),!t.hasFile&&(0,o.jsx)(i.A,{style:{margin:0},children:e("prompt.missingFileStatus")})]})},tu=r=>(0,o.jsxs)("div",{className:"flex items-center gap-1.5",children:[r.hasFile&&(0,o.jsx)(d.A,{checked:r.selected,onChange:e=>{tc(r,e.target.checked)},className:"mr-1",children:e("prompt.selected")}),!r.hasFile&&r.projectRoot&&(0,o.jsx)(m.Ay,{size:"small",icon:(0,o.jsx)(N.A,{}),onClick:()=>to(r),children:e("common.add")}),r.hasFile&&(0,o.jsx)(m.Ay,{size:"small",icon:(0,o.jsx)(S.A,{}),onClick:()=>{ec(r),eh(!1),em(r.projectName),ei(r.content||""),tr(r,r.projectName),es(!0)},children:e("common.edit")}),r.hasFile&&(0,o.jsx)(m.Ay,{size:"small",icon:(0,o.jsx)(A.A,{}),onClick:()=>{var o;return o=r,void(q("customize-prompt-".concat(o.projectName.trim().replace(/[\\/:*?"<>|]/g,"-").slice(0,80)||"untitled","-").concat(new Date().toISOString().slice(0,10),".json"),Y([o])),t.success(e("prompt.exportedCount").replace("{count}","1")))},children:e("prompt.exportOne")}),(0,o.jsx)(p.A,{title:X(r)?e("prompt.deleteCustomConfirm"):e("prompt.deleteProjectConfirm"),onConfirm:()=>{ti(r)},children:(0,o.jsx)(m.Ay,{size:"small",danger:!0,icon:(0,o.jsx)(C.A,{})})})]});return r?(0,o.jsxs)("div",{className:"space-y-12",children:[(0,o.jsx)(u.A,{active:!0,title:!0,paragraph:{rows:1}}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:Array.from({length:4}).map((e,t)=>(0,o.jsx)("div",{className:"p-4 border border-[var(--borderColor)]",children:(0,o.jsx)(u.A,{active:!0,paragraph:{rows:4}})},t))})]}):(0,o.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,o.jsx)(w.z,{title:e("nav.promptManagement"),description:e("prompt.description"),extra:(0,o.jsxs)(o.Fragment,{children:[e4&&(0,o.jsxs)(i.A,{color:"green",bordered:!1,className:"m-0 max-w-[280px] truncate",title:e4.projectRoot,children:[(0,o.jsx)(T.A,{})," ",e4.projectRoot]}),(0,o.jsx)(x.A,{accept:"application/json,.json",showUploadList:!1,beforeUpload:e=>(tm(e),!1),children:(0,o.jsx)(m.Ay,{icon:(0,o.jsx)(P.A,{}),loading:eF,className:"rounded-lg",children:e("prompt.import")})}),(0,o.jsx)(m.Ay,{icon:(0,o.jsx)(A.A,{}),disabled:0===e7.length,onClick:()=>td("filtered"),className:"rounded-lg",children:e("prompt.exportFiltered")}),(0,o.jsx)(m.Ay,{type:"primary",icon:(0,o.jsx)(N.A,{}),onClick:()=>to(),className:"shadow-none rounded-lg",children:e("prompt.createPrompt")})]})}),(0,o.jsxs)("div",{className:"flex flex-wrap items-center gap-3 bg-[var(--colorBgContainer)] border border-[var(--borderColor)] p-3 rounded-2xl",children:[(0,o.jsx)(h.A,{prefix:(0,o.jsx)(F.A,{className:"text-[var(--colorTextTertiary)]"}),allowClear:!0,placeholder:e("prompt.searchPrompt"),value:eS,onChange:e=>eA(e.target.value),style:{width:260},className:"rounded-lg"}),(0,o.jsx)("div",{className:"h-6 w-[1px] bg-[var(--borderColor)] mx-1","aria-hidden":!0}),(0,o.jsx)(g.A,{value:eg,onChange:ef,style:{width:150},className:"rounded-lg",options:[{label:"".concat(e("prompt.allPrompts")," (").concat(e8.all,")"),value:"all"},{label:"".concat(e("prompt.customPrompt")," (").concat(e8.custom,")"),value:"custom"},{label:"".concat(e("prompt.currentProject")," (").concat(e8.current,")"),value:"current"},{label:"".concat(e("prompt.otherProjects")," (").concat(e8.project,")"),value:"project"}]}),(0,o.jsx)(g.A,{value:ej,onChange:ev,style:{width:130},className:"rounded-lg",options:[{label:e("prompt.promptStatus"),value:"all"},{label:"".concat(e("prompt.selected")," (").concat(e8.selected,")"),value:"selected"},{label:"".concat(e("prompt.unselected")," (").concat(e8.unselected,")"),value:"unselected"},{label:"".concat(e("prompt.hasFileStatus")," (").concat(e8.hasFile,")"),value:"hasFile"},{label:"".concat(e("prompt.missingFileStatus")," (").concat(e8.missingFile,")"),value:"missingFile"}]}),(0,o.jsx)(g.A,{value:ey,onChange:eb,style:{width:140},className:"rounded-lg",options:[{label:e("prompt.sortByMtime"),value:"mtime"},{label:e("prompt.sortByName"),value:"name"},{label:e("prompt.sortBySource"),value:"source"},{label:e("prompt.sortBySelected"),value:"selected"}]}),(0,o.jsx)("div",{className:"flex-1 min-w-4"}),(0,o.jsx)(f.A,{value:ew,onChange:e=>eN(e),options:[{label:(0,o.jsx)(z.A,{}),value:"list"},{label:(0,o.jsx)(E.A,{}),value:"card"}],className:"bg-[var(--colorBgHover)] p-1 rounded-lg"})]}),(0,o.jsxs)("div",{className:"min-w-0",children:[te.length>0&&(0,o.jsxs)("div",{className:"flex items-center gap-3 flex-wrap p-3 px-4 mb-4 bg-[var(--colorBgHover)] border border-[var(--borderColor)] rounded-2xl",children:[(0,o.jsx)("span",{className:"font-semibold text-sm",children:e("prompt.selectedCount").replace("{count}",String(te.length))}),(0,o.jsx)("div",{className:"h-6 w-[1px] bg-[var(--borderColor)] mx-1","aria-hidden":!0}),(0,o.jsx)(m.Ay,{size:"small",onClick:()=>{tn(!0)},children:e("prompt.batchSelect")}),(0,o.jsx)(m.Ay,{size:"small",onClick:()=>{tn(!1)},children:e("prompt.cancelSelect")}),(0,o.jsx)(m.Ay,{size:"small",icon:(0,o.jsx)(A.A,{}),onClick:()=>td("checked"),children:e("prompt.exportSelected")}),(0,o.jsx)(m.Ay,{size:"small",danger:!0,onClick:()=>eP([]),children:e("prompt.clearSelect")})]}),0===e7.length?(0,o.jsx)("div",{className:"py-32 text-center border border-dashed border-[var(--borderColor)] rounded-2xl bg-[var(--colorBgHover)]",children:(0,o.jsx)(j.A,{image:j.A.PRESENTED_IMAGE_SIMPLE,description:(0,o.jsx)("span",{className:"text-[var(--colorTextSecondary)]",children:eS||"all"!==ej?e("prompt.noMatchDesc"):e("prompt.noPromptInGroup")})})}):"list"===ew?(0,o.jsx)("div",{className:"flex flex-col gap-3",children:e7.map(t=>{let r=(null==e9?void 0:e9.id)===t.id;return(0,o.jsxs)("div",{onClick:()=>ek(t.id),className:"group grid grid-cols-[28px_1fr_auto] gap-4 items-center p-4 rounded-xl transition-all cursor-pointer ".concat(r?"bg-[var(--colorBgSelected)] shadow-md":"bg-transparent hover:bg-[var(--colorBgHover)] hover:shadow-sm"),children:[(0,o.jsx)(d.A,{checked:eT.includes(t.id),onClick:e=>e.stopPropagation(),onChange:e=>eP(r=>e.target.checked?Array.from(new Set([...r,t.id])):r.filter(e=>e!==t.id))}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsxs)("div",{className:"flex items-center gap-3 mb-1.5",children:[(0,o.jsx)(k.A,{className:t.isCurrent?"text-[var(--colorOk)] text-lg":"text-[var(--colorTextSecondary)] text-lg"}),(0,o.jsx)("span",{className:"font-semibold truncate text-[var(--colorText)] text-base",children:t.projectName}),tp(t)]}),(0,o.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)] truncate flex items-center gap-1.5 font-medium",children:[(0,o.jsx)(T.A,{})," ",t.projectRoot||t.customizePath||e("prompt.localPrompt"),(0,o.jsx)("span",{className:"text-[var(--colorBorderSecondary)]",children:"|"}),Q(t.mtime)]})]}),(0,o.jsx)("div",{onClick:e=>e.stopPropagation(),className:"transition-opacity flex items-center ".concat(r?"opacity-100":"opacity-0 group-hover:opacity-100"),children:tu(t)})]},t.id)})}):(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:e7.map(t=>{let r=(null==e9?void 0:e9.id)===t.id;return(0,o.jsxs)("div",{onClick:()=>ek(t.id),className:"group flex flex-col p-5 rounded-2xl transition-all cursor-pointer ".concat(r?"bg-[var(--colorBgSelected)] shadow-md":"bg-[var(--colorBgContainer)] hover:bg-[var(--colorBgHover)] shadow-sm hover:shadow-md"),children:[(0,o.jsx)("div",{className:"flex items-start justify-between gap-3 mb-4 min-w-0",children:(0,o.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,o.jsx)(d.A,{checked:eT.includes(t.id),onClick:e=>e.stopPropagation(),onChange:e=>eP(r=>e.target.checked?Array.from(new Set([...r,t.id])):r.filter(e=>e!==t.id))}),(0,o.jsx)(k.A,{className:t.isCurrent?"text-[var(--colorOk)] text-lg":"text-[var(--colorTextSecondary)] text-lg"}),(0,o.jsx)("span",{className:"font-bold text-base text-[var(--colorText)] truncate mb-1",children:t.projectName})]})}),(0,o.jsx)("div",{className:"mb-3",children:tp(t)}),(0,o.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)] truncate flex items-center gap-1.5 mb-4 bg-[var(--colorFillAlter)] p-1.5 rounded inline-flex self-start",children:[(0,o.jsx)(T.A,{}),t.projectRoot||t.customizePath||e("prompt.localPrompt")]}),(0,o.jsxs)("div",{className:"mt-auto pt-4 flex justify-between items-center",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("span",{className:"text-xs font-medium text-[var(--colorTextTertiary)] bg-[var(--colorFillSecondary)] px-2 py-1 rounded",children:Q(t.mtime)}),(0,o.jsx)("div",{className:"transition-opacity ".concat(r?"opacity-100":"opacity-0 group-hover:opacity-100"),children:tu(t)})]})]},t.id)})})]}),(0,o.jsxs)(v.A,{title:ex?e("prompt.createPrompt"):el&&X(el)?"".concat(e("prompt.customPrompt")," — ").concat(ed||el.projectName):"".concat(e("prompt.currentProject")," — ").concat((null==el?void 0:el.projectName)||""),open:ea,onClose:()=>es(!1),styles:{mask:{pointerEvents:"none"},body:{padding:"24px 32px",display:"grid",gridTemplateRows:"minmax(320px, 1fr) 420px",gap:24,height:"100%"},header:{borderBottom:"1px solid var(--colorBorderSecondary)",padding:"16px 32px"}},extra:(0,o.jsxs)(n.A,{children:[(0,o.jsx)(m.Ay,{onClick:()=>es(!1),children:e("common.cancel")}),(0,o.jsx)(m.Ay,{type:"primary",loading:ep,onClick:()=>{ta()},children:e("common.save")})]}),children:[(0,o.jsxs)("div",{className:"min-h-0 flex flex-col",children:[ex||el&&X(el)?(0,o.jsx)(h.A,{size:"large",placeholder:e("prompt.promptName"),value:ed,onChange:e=>em(e.target.value),className:"mb-4 font-medium"}):null,(0,o.jsx)(h.A.TextArea,{value:en,onChange:e=>ei(e.target.value),className:"flex-1 min-h-[140px] resize-none font-mono text-[13px]"}),(0,o.jsxs)("div",{className:"mt-3 rounded-xl border border-[var(--borderColor)] bg-[var(--colorBgContainer)] px-3 py-2.5 max-h-[170px] overflow-y-auto",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,o.jsxs)(n.A,{size:6,children:[(0,o.jsx)(B.A,{className:"text-[var(--colorAccent)]"}),(0,o.jsx)("span",{className:"font-semibold text-xs",children:e("prompt.rulePreviewTitle")})]}),e0&&(0,o.jsx)(y.A,{size:"small"})]}),eQ?eQ.recognized?(0,o.jsx)("div",{className:"flex flex-col gap-1",children:eQ.summary.map((e,t)=>(0,o.jsxs)("div",{className:"text-xs text-[var(--colorText)] flex gap-1.5 leading-relaxed",children:[(0,o.jsx)(O.A,{className:"text-[var(--colorSuccess)] mt-1"}),(0,o.jsx)("span",{children:e})]},t))}):(0,o.jsx)("div",{className:"text-xs text-[var(--colorTextSecondary)]",children:e("prompt.rulePreviewNone")}):(0,o.jsx)("div",{className:"text-xs text-[var(--colorTextSecondary)]",children:en.trim()?e("prompt.rulePreviewAnalyzing"):e("prompt.rulePreviewHint")})]})]}),(0,o.jsxs)("div",{className:"min-h-0 rounded-xl border border-[var(--borderColor)] bg-[var(--colorBgContainer)] flex flex-col overflow-hidden",children:[(0,o.jsxs)("div",{className:"px-3 py-2.5 border-b border-[var(--borderColor)] flex items-center justify-between gap-2",children:[(0,o.jsxs)(n.A,{size:6,children:[(0,o.jsx)(M.A,{className:"text-[var(--colorAccent)]"}),(0,o.jsx)("span",{className:"font-semibold",children:e("prompt.aiPromptAssistant")})]}),(0,o.jsxs)(n.A,{size:6,children:[eE.length>0&&(0,o.jsx)(m.Ay,{size:"small",onClick:()=>eB([]),children:e("prompt.clearHistory")}),eD?(0,o.jsx)(i.A,{color:"processing",className:"m-0",children:e("prompt.generating")}):(0,o.jsx)(i.A,{color:"blue",className:"m-0",children:e("prompt.canConverse")})]})]}),(0,o.jsx)("div",{ref:e2,className:"flex-1 min-h-0 overflow-y-auto p-3.5 bg-[var(--colorFillAlter)]",children:0!==eE.length||eD?(0,o.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[eE.map((r,a)=>{let s="user"===r.role;return(0,o.jsx)("div",{className:"flex ".concat(s?"justify-end":"justify-start"),children:(0,o.jsxs)("div",{className:"max-w-[78%] px-3 py-2.5 rounded-xl border border-[var(--borderColor)] whitespace-pre-wrap leading-relaxed text-[13px] transition-colors ".concat(s?"bg-[var(--colorFillSecondary)]":"bg-[var(--colorBgContainer)]"),children:[r.content,!s&&(0,o.jsx)("div",{className:"flex justify-end mt-2",children:(0,o.jsx)(m.Ay,{size:"small",type:"primary",onClick:()=>{ei(r.content),t.success(e("prompt.appliedToEditor"))},children:e("prompt.apply")})})]})},"".concat(r.role,"-").concat(a))}),eD&&(0,o.jsx)("div",{className:"flex justify-start",children:(0,o.jsxs)("div",{className:"px-3 py-2.5 rounded-xl bg-[var(--colorBgContainer)] border border-[var(--borderColor)] text-[var(--colorTextSecondary)] text-[13px]",children:[(0,o.jsx)(y.A,{size:"small",className:"mr-2"}),e("prompt.aiAnalyzing")]})})]}):(0,o.jsx)(j.A,{image:j.A.PRESENTED_IMAGE_SIMPLE,description:e("prompt.mentionRecallHint")})}),(0,o.jsx)(b.A,{className:"!m-0"}),(0,o.jsxs)("div",{className:"p-3",children:[eK.length>0&&(0,o.jsx)("div",{className:"flex flex-wrap gap-1 mb-2",children:eK.map(e=>(0,o.jsxs)(i.A,{closable:!0,onClose:()=>eG(t=>t.filter(t=>t!==e)),className:"m-0 max-w-[360px] overflow-hidden text-ellipsis",children:["@",e]},e))}),eV&&(0,o.jsxs)("div",{className:"max-h-[260px] overflow-y-auto mb-2 rounded-xl border border-[var(--borderColor)] bg-[var(--colorBgElevated)] shadow-lg",children:[(0,o.jsxs)("div",{className:"sticky top-0 z-[1] px-3 py-2.5 border-b border-[var(--borderColor)] bg-[var(--colorBgElevated)] flex justify-between gap-3 items-center",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"text-[var(--colorText)] text-[13px] font-bold",children:e("prompt.recallKbFiles")}),(0,o.jsx)("div",{className:"text-[var(--colorTextSecondary)] text-[11px]",children:e("prompt.recallLimitHint")})]}),(0,o.jsx)(i.A,{color:e3?"blue":"default",className:"m-0 max-w-[240px] overflow-hidden text-ellipsis",children:e3?"@".concat(e3):e("prompt.inputAtKeyword")})]}),eW?(0,o.jsxs)("div",{className:"p-3.5 text-[var(--colorTextSecondary)] text-xs",children:[(0,o.jsx)(y.A,{size:"small",className:"mr-2"}),e("prompt.loadingKbFiles")]}):0===eJ.length?(0,o.jsx)("div",{className:"p-3.5 text-[var(--colorTextSecondary)] text-xs",children:e("prompt.noRecallableKbFiles")}):0===tt.length?(0,o.jsx)("div",{className:"p-3.5 text-[var(--colorTextSecondary)] text-xs",children:eq?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y.A,{size:"small",className:"mr-2"}),e("prompt.searchingKbContent")]}):e("prompt.noMatchingKbFiles")}):(0,o.jsxs)(o.Fragment,{children:[eq&&(0,o.jsxs)("div",{className:"px-3 py-2 text-[var(--colorTextSecondary)] text-xs border-b border-[var(--borderColor)]",children:[(0,o.jsx)(y.A,{size:"small",className:"mr-2"}),e("prompt.continueSearchingKb")]}),tt.slice(0,30).map(t=>(0,o.jsxs)("div",{onMouseDown:e=>{var r;e.preventDefault(),r=t.relativePath,eG(e=>e.includes(r)?e:[...e,r]),eI(e=>e.replace(/(^|\s)@([^\s@]*)$/,"$1@".concat(r," "))),eZ(!1)},className:"px-3 py-2.5 cursor-pointer border-b border-[var(--borderColor)] text-xs grid grid-cols-[22px_minmax(0,1fr)_auto] gap-2.5 items-center hover:bg-[var(--colorBgHover)] transition-colors",children:[(0,o.jsx)("div",{className:"w-[22px] h-[22px] rounded-lg bg-[var(--colorFillSecondary)] flex items-center justify-center",children:(0,o.jsx)(k.A,{className:"text-[var(--colorAccent)]"})}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("div",{className:"text-[var(--colorText)] truncate font-bold",children:t.relativePath}),(0,o.jsxs)("div",{className:"text-[var(--colorTextSecondary)] text-[11px] truncate",children:[t.category||e("prompt.unclassified")," \xb7 ",t.format||e("prompt.unknownFormat"),"number"==typeof t.score?" \xb7 score ".concat(t.score.toFixed(2)):""]})]}),(0,o.jsxs)(n.A,{size:4,children:[(0,o.jsx)(i.A,{color:"content"===t.matchedBy?"purple":"disk"===t.matchedBy?"orange":"blue",className:"m-0",children:"content"===t.matchedBy?e("prompt.contentMatch"):"disk"===t.matchedBy?e("prompt.diskFile"):e("prompt.fileMatch")}),(0,o.jsx)(i.A,{className:"m-0",children:e(l.mc[t.status]||"common.unknown")})]})]},t.relativePath))]})]}),(0,o.jsxs)("div",{className:"flex gap-2 items-end",children:[(0,o.jsx)(h.A.TextArea,{value:eR,onChange:e=>{let t=e.target.value;eI(t),eZ(null!==ee(t))},onFocus:()=>eZ(null!==ee(eR)),onPressEnter:e=>{e.shiftKey||(e.preventDefault(),tl())},disabled:eD,placeholder:e("prompt.mentionRecallPlaceholder"),autoSize:{minRows:2,maxRows:5},className:"text-[13px] leading-relaxed"}),(0,o.jsx)(m.Ay,{type:"primary",icon:(0,o.jsx)(R.A,{}),loading:eD,disabled:!eR.trim(),onClick:()=>{tl()},children:e("prompt.send")})]})]})]})]})]})}},45551:(e,t,r)=>{"use strict";function o(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),r=e/Math.pow(1024,t);return"".concat(r.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN",r=Math.max(0,Math.floor(e)),o=Math.floor(r/86400),a=Math.floor(r%86400/3600),s=Math.floor(r%3600/60),l="en-US"===t;return o>0?l?"".concat(o,"d ").concat(a,"h"):"".concat(o," 天 ").concat(a," 小时"):a>0?l?"".concat(a,"h ").concat(s,"m"):"".concat(a," 小时 ").concat(s," 分"):s>0?l?"".concat(s,"m"):"".concat(s," 分"):l?"Just now":"刚刚"}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let r=Math.floor(Math.floor((Date.now()-e)/1e3)/60),o=Math.floor(r/60),a=Math.floor(o/24);return a>30?new Date(e).toLocaleDateString(t):"en-US"===t?a>0?"".concat(a,"d ago"):o>0?"".concat(o,"h ago"):r>0?"".concat(r,"m ago"):"Just now":a>0?"".concat(a," 天前"):o>0?"".concat(o," 小时前"):r>0?"".concat(r," 分钟前"):"刚刚"}r.d(t,{Jm:()=>n,a3:()=>a,fw:()=>s,mc:()=>i,z3:()=>o});let l={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 n(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===r?c:l)[e])?t:e}let i={active:"common.statusIndexed",outdated:"common.statusOutdated",error:"common.statusAbnormal",deleted:"common.statusDeleted",disk:"common.statusNotIndexed"}},93360:(e,t,r)=>{"use strict";r.d(t,{z:()=>n});var o=r(65321);r(97109);var a=r(48399),s=r(33442);let{Title:l,Text:c}=a.A;function n(e){let{title:t,description:r,extra:a,bottomContent:n}=e;return(0,o.jsxs)("div",{className:"mb-6 animateFadeIn",children:[(0,o.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(l,{level:4,style:{margin:0,fontWeight:700,letterSpacing:"-0.01em"},children:t}),r&&(0,o.jsx)(c,{type:"secondary",className:"mt-1 block text-sm",children:r})]}),a&&(0,o.jsx)(s.A,{className:"w-full sm:w-auto overflow-x-auto pb-1 sm:pb-0",size:"middle",wrap:!1,children:a})]}),n&&(0,o.jsx)("div",{className:"mt-4",children:n})]})}}},e=>{e.O(0,[310,700,189,426,636,593,792],()=>e(e.s=27549)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[979],{9137:(e,r,t)=>{"use strict";t.d(r,{Ay:()=>A});var a=t(9750),s=t(97109),o=t(42644),l=t(10252),n=t(74567),c=t(48921),i=t(98379),d=t(3638),x=t(632),m=t(34475),g=t(52093),p=t(60815),u=t(5741);let h=null,f=e=>e(),v=[],b={};function w(){let{getContainer:e,duration:r,rtl:t,maxCount:a,top:s,stack:o}=b,l=e?.()||document.body;return{getContainer:()=>l,duration:r,rtl:t,maxCount:a,top:s,stack:o}}let y=s.forwardRef((e,r)=>{let{messageConfig:t,sync:a}=e,{getPrefixCls:o}=(0,s.useContext)(n.QO),c=b.prefixCls||o("message"),i=(0,s.useContext)(l.B),[d,x]=(0,p.y)({...t,prefixCls:c,...i.message});return s.useImperativeHandle(r,()=>{let e={...d};return Object.keys(e).forEach(r=>{e[r]=(...e)=>(a(),d[r].apply(d,e))}),{instance:e,sync:a}}),x}),j=s.forwardRef((e,r)=>{let[t,a]=s.useState(w),o=()=>{a(w)};s.useEffect(o,[]);let l=(0,c.cr)(),n=l.getRootPrefixCls(),i=l.getIconPrefixCls(),d=l.getTheme(),x=s.createElement(y,{ref:r,sync:o,messageConfig:t});return s.createElement(c.Ay,{prefixCls:n,iconPrefixCls:i,theme:d},l.holderRender?l.holderRender(x):x)}),N=()=>{if(!h){let e=document.createDocumentFragment(),r={fragment:e};h=r,f(()=>{(0,o.XX)(s.createElement(j,{ref:e=>{let{instance:t,sync:a}=e||{};Promise.resolve().then(()=>{!r.instance&&t&&(r.instance=t,r.sync=a,N())})}}),e)});return}h.instance&&(v.forEach(e=>{let{type:r,skipped:t}=e;if(!t)switch(r){case"open":f(()=>{let r=h.instance.open({...b,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break;case"destroy":f(()=>{h?.instance.destroy(e.key)});break;default:f(()=>{var t;let s=(t=h.instance)[r].apply(t,(0,a.A)(e.args));s?.then(e.resolve),e.setCloseFn(s)})}}),v=[])},C={open:function(e){let r=(0,u.E)(r=>{let t,a={type:"open",config:e,resolve:r,setCloseFn:e=>{t=e}};return v.push(a),()=>{t?f(()=>{t()}):a.skipped=!0}});return N(),r},destroy:e=>{v.push({type:"destroy",key:e}),N()},config:function(e){b={...b,...e},f(()=>{h?.sync?.()})},useMessage:p.A,_InternalPanelDoNotUseOrYouWillBeFired:m.Ay,_InternalListDoNotUseOrYouWillBeFired:e=>{let{items:r,classNames:t,style:a}=e,{getPrefixCls:o}=(0,n.TP)("message"),l=o("message"),c=(0,x.A)(l),[p,u]=(0,g.A)(l,c),h=`${l}-notice`,f=r.map(e=>{let{content:r,duration:t,key:a,type:s}=e,o=s?`${h}-icon-${s}`:void 0;return{key:a,duration:t,icon:(0,m.HC)(s),title:r,className:`${h}-${s}`,classNames:{wrapper:`${l}-${s}`,icon:o}}});return s.createElement(i.qb,{prefixCls:l,placement:"top",configList:f,className:(0,d.$)(p,u,c),classNames:{...t,wrapper:t?.wrapper,title:t?.title},style:a,stack:!1})}};["success","info","warning","error","loading"].forEach(e=>{C[e]=(...r)=>(function(e,r){(0,c.cr)();let t=(0,u.E)(t=>{let a,s={type:e,args:r,resolve:t,setCloseFn:e=>{a=e}};return v.push(s),()=>{a?f(()=>{a()}):s.skipped=!0}});return N(),t})(e,r)});let A=C},12446:(e,r)=>{"use strict";r.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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},14995:(e,r)=>{"use strict";r.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}},29606:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>A});var a=t(65321),s=t(97109),o=t(48399),l=t(9137),n=t(11702),c=t(88762),i=t(7576),d=t(85114),x=t(32965),m=t(21289),g=t(84253),p=t(30486),u=t(99811),h=t(58209),f=t(12446),v=t(88483);function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}let w=s.forwardRef((e,r)=>s.createElement(v.A,b({},e,{ref:r,icon:f.A})));var y=t(85587),j=t(6578),N=t(58690);let{Text:C}=o.A;function A(){let e=(0,y.Vr)(),[r,t]=(0,s.useState)([]),[o,f]=(0,s.useState)(!0),[v,b]=(0,s.useState)(""),A=async()=>{f(!0);try{t((await (0,j.oH)(500)).logs)}catch(e){l.Ay.error(e instanceof Error?e.message:"加载日志失败")}finally{f(!1)}};(0,s.useEffect)(()=>{A()},[]);let k=(0,s.useMemo)(()=>{let e=v.trim().toLowerCase();return e?r.filter(r=>[r.id,r.level,r.source,r.functionName,r.message,r.stack].filter(Boolean).some(r=>String(r).toLowerCase().includes(e))):r},[v,r]),T=[{title:e("logs.time"),dataIndex:"createdAt",width:160,render:e=>(0,a.jsx)("span",{className:"text-xs text-[var(--colorTextSecondary)] font-mono",children:new Date(e).toLocaleString()})},{title:e("logs.level"),dataIndex:"level",width:80,render:e=>(0,a.jsx)(n.A,{color:"error"===e?"error":"warn"===e?"warning":"blue",className:"m-0 text-[10px] uppercase tracking-wider border-0",children:e})},{title:e("logs.source"),dataIndex:"source",width:220,render:e=>(0,a.jsx)("span",{className:"text-xs font-mono text-[var(--colorTextSecondary)] break-all",children:e})},{title:e("logs.message"),dataIndex:"message",render:e=>(0,a.jsx)("div",{className:"text-sm text-[var(--colorText)] max-w-3xl whitespace-normal break-words leading-relaxed",title:e,children:e})},{title:e("logs.requestId"),dataIndex:"id",width:120,render:e=>(0,a.jsx)(C,{copyable:!0,className:"text-[10px] font-mono text-[var(--colorTextTertiary)]",children:e.slice(0,8)})}];return o&&0===r.length?(0,a.jsxs)("div",{className:"space-y-8 animateFadeIn",children:[(0,a.jsx)(c.A,{active:!0,title:!0,paragraph:{rows:1}}),(0,a.jsx)(c.A,{active:!0,paragraph:{rows:12}})]}):(0,a.jsxs)("div",{className:"h-[calc(100vh_-_140px)] flex flex-col",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4 pb-4 border-b border-[var(--borderColor)] shrink-0 animateFadeIn",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-bold tracking-tight text-[var(--colorText)] mb-1",children:e("nav.systemLogs")}),(0,a.jsx)("p",{className:"text-xs text-[var(--colorTextSecondary)]",children:e("logs.monitorSystem")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(i.A,{placeholder:e("logs.searchLogs"),prefix:(0,a.jsx)(p.A,{className:"text-[var(--colorTextTertiary)]"}),value:v,onChange:e=>b(e.target.value),allowClear:!0,className:"w-[260px] bg-[var(--colorBgHover)] border-transparent"}),(0,a.jsx)(d.Ay,{icon:(0,a.jsx)(u.A,{}),loading:o,onClick:()=>void A(),className:"shadow-none",children:e("logs.refresh")}),(0,a.jsx)(x.A,{title:e("logs.clearConfirm"),onConfirm:()=>{(async()=>{let r=await (0,j.hH)();l.Ay.success(e("logs.clearedFiles").replace("{count}",String(r.deleted))),await A()})()},children:(0,a.jsx)(d.Ay,{danger:!0,icon:(0,a.jsx)(h.A,{}),className:"shadow-none border-transparent",children:e("logs.clear")})})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 py-3 px-1 text-xs text-[var(--colorTextTertiary)] shrink-0 animateFadeIn stagger-1",children:[(0,a.jsx)(w,{})," ",e("logs.logStorageInfo")," ",(0,a.jsx)("code",{className:"bg-[var(--colorBgHover)] px-1 rounded",children:"~/.customize-agent/logs/errors.jsonl"}),". ",e("logs.maxLoaded")]}),(0,a.jsx)("div",{className:"flex-1 overflow-hidden bg-[var(--colorBg)] rounded-lg animateFadeIn stagger-2",children:(0,a.jsx)(m.A,{rowKey:"id",loading:o,dataSource:k,columns:T,size:"middle",className:"h-full modern-table tableFillHeight",locale:{emptyText:(0,a.jsx)(g.A,{description:e("logs.noLogsFound"),className:"py-20"})},pagination:(0,N.B)(e),rowClassName:"hover:bg-[var(--colorBgHover)] transition-colors cursor-pointer",expandable:{expandedRowRender:r=>(0,a.jsxs)("div",{className:"flex flex-col gap-4 p-4 bg-[var(--colorBgHover)]/50 border-t border-[var(--borderColor)]",children:[r.functionName&&(0,a.jsxs)("div",{className:"text-xs text-[var(--colorTextSecondary)]",children:[(0,a.jsx)("span",{className:"font-semibold uppercase tracking-wider text-[var(--colorTextTertiary)] mr-2",children:e("logs.function")}),(0,a.jsx)("code",{className:"font-mono bg-[var(--colorBgElevated)] px-2 py-1 rounded",children:r.functionName})]}),r.request&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-[10px] font-semibold uppercase tracking-wider text-[var(--colorTextTertiary)] mb-2",children:e("logs.requestContext")}),(0,a.jsx)("pre",{className:"text-xs font-mono bg-[var(--colorBgElevated)] p-3 rounded-md border border-[var(--borderColor)] whitespace-pre-wrap break-all m-0 text-[var(--colorTextSecondary)]",children:JSON.stringify(r.request,null,2)})]}),void 0!==r.meta&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-[10px] font-semibold uppercase tracking-wider text-[var(--colorTextTertiary)] mb-2",children:e("logs.metadata")}),(0,a.jsx)("pre",{className:"text-xs font-mono bg-[var(--colorBgElevated)] p-3 rounded-md border border-[var(--borderColor)] whitespace-pre-wrap break-all m-0 text-[var(--colorTextSecondary)]",children:JSON.stringify(r.meta,null,2)})]}),r.stack&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-[10px] font-semibold uppercase tracking-wider text-[var(--colorTextTertiary)] mb-2",children:e("logs.stackTrace")}),(0,a.jsx)("pre",{className:"text-[11px] font-mono bg-[#1e1e1e] text-[#d4d4d4] p-3 rounded-md overflow-x-auto m-0 leading-relaxed",children:r.stack})]})]})}})})]})}},39214:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/system/logs",function(){return t(29606)}])},58690:(e,r,t)=>{"use strict";function a(e){var r,t,a;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{pageSize:null!=(r=s.pageSize)?r:10,pageSizeOptions:null!=(t=s.pageSizeOptions)?t:[10,20,50,100],showSizeChanger:!0,showTotal:r=>{var t,a;return e(null!=(t=s.totalLabelKey)?t:"common.totalRows",null!=(a=s.totalLabelFallback)?a:"共 {count} 条").replace("{count}",String(r))},hideOnSinglePage:null!=(a=s.hideOnSinglePage)&&a,showQuickJumper:!1}}t.d(r,{B:()=>a})},99811:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});var a=t(97109),s=t(14995),o=t(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}let n=a.forwardRef((e,r)=>a.createElement(o.A,l({},e,{ref:r,icon:s.A})))}},e=>{e.O(0,[310,700,914,174,189,289,636,593,792],()=>e(e.s=39214)),_N_E=e.O()}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@customize-agent/server",
3
- "version": "4.59.1",
3
+ "version": "4.59.2",
4
4
  "description": "Customize Agent Web 管理控制台",
5
5
  "exports": {
6
6
  "./package.json": "./package.json"