chainlesschain 0.157.7 → 0.157.8

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 (135) hide show
  1. package/package.json +1 -1
  2. package/src/assets/web-panel/.build-hash +1 -1
  3. package/src/assets/web-panel/assets/{AIOps-CoVPS4_f.js → AIOps-Dmur24hV.js} +1 -1
  4. package/src/assets/web-panel/assets/{ActionButton-BYA9htq4.js → ActionButton-BiXQ5MCX.js} +1 -1
  5. package/src/assets/web-panel/assets/{Analytics-CkCmN3yh.js → Analytics-BrBdBLPi.js} +1 -1
  6. package/src/assets/web-panel/assets/AppLayout-DCrLKryi.css +1 -0
  7. package/src/assets/web-panel/assets/AppLayout-DGosvMBr.js +1 -0
  8. package/src/assets/web-panel/assets/Audit-DLYnWfX_.js +1 -0
  9. package/src/assets/web-panel/assets/Audit-L4_ApS01.css +1 -0
  10. package/src/assets/web-panel/assets/{Backup-SPQtiUev.js → Backup-CKHLFZZS.js} +1 -1
  11. package/src/assets/web-panel/assets/{BaseInput-BAmfd4Ir.js → BaseInput-B7lryLAY.js} +1 -1
  12. package/src/assets/web-panel/assets/Chat-Ga0oUawB.js +2 -0
  13. package/src/assets/web-panel/assets/{Checkbox-BiSO-WqE.js → Checkbox-DAqCmQtS.js} +1 -1
  14. package/src/assets/web-panel/assets/{Col-DIGPvqVy.js → Col-BxNojt4A.js} +1 -1
  15. package/src/assets/web-panel/assets/{Community-RZzIND1A.js → Community-BG7vSQg7.js} +1 -1
  16. package/src/assets/web-panel/assets/{Compact-B-UF0szM.js → Compact-Bl_FTVcP.js} +1 -1
  17. package/src/assets/web-panel/assets/{Compliance-D7dNQEQ9.js → Compliance-CL6jUiTf.js} +1 -1
  18. package/src/assets/web-panel/assets/{Cowork-CPj75S0j.js → Cowork-Q37C8zUh.js} +4 -4
  19. package/src/assets/web-panel/assets/{Cron-PnlUFCIP.js → Cron-Kq3eJC0L.js} +2 -2
  20. package/src/assets/web-panel/assets/{Crosschain-C7Kxjjlo.js → Crosschain-CvI5bEH8.js} +1 -1
  21. package/src/assets/web-panel/assets/{DID-B3aBXElX.js → DID-BD9PovRf.js} +1 -1
  22. package/src/assets/web-panel/assets/{Dashboard-XxsWjoEF.js → Dashboard-BXSj5-OS.js} +2 -2
  23. package/src/assets/web-panel/assets/{Dropdown-B6FSgG11.js → Dropdown-BcEYFA4h.js} +1 -1
  24. package/src/assets/web-panel/assets/{FormItemContext-B0xgi547.js → FormItemContext-C_8M0L9X.js} +1 -1
  25. package/src/assets/web-panel/assets/{Git-BnVgKR_0.js → Git-DW9KmRrN.js} +2 -2
  26. package/src/assets/web-panel/assets/Governance--0gVd3YR.js +1 -0
  27. package/src/assets/web-panel/assets/Governance-BfmfQBGB.css +1 -0
  28. package/src/assets/web-panel/assets/{Inference-pcPaCXHq.js → Inference-CSuaikJO.js} +1 -1
  29. package/src/assets/web-panel/assets/{KnowledgeGraph-CH3dpH-_.js → KnowledgeGraph-Bz8-Uh6r.js} +1 -1
  30. package/src/assets/web-panel/assets/{Logs-4wvIp1ss.js → Logs-BMTqVPem.js} +2 -2
  31. package/src/assets/web-panel/assets/{Marketplace-BydQkgpf.js → Marketplace-CTZqO_RV.js} +1 -1
  32. package/src/assets/web-panel/assets/{McpTools-DBERPbTA.js → McpTools-IN5l2BCN.js} +3 -3
  33. package/src/assets/web-panel/assets/{Memory-CMNbDULN.js → Memory-DEJ96vkh.js} +2 -2
  34. package/src/assets/web-panel/assets/{NLProgramming-DVSbNLly.js → NLProgramming-BMftRM4D.js} +1 -1
  35. package/src/assets/web-panel/assets/{Notes-DMgBT122.js → Notes-DAP1s6Bg.js} +2 -2
  36. package/src/assets/web-panel/assets/{Organization-u7P1VpPr.js → Organization-CutzdziK.js} +3 -3
  37. package/src/assets/web-panel/assets/{Overflow-BYKMeaWJ.js → Overflow-CFLJpWAb.js} +1 -1
  38. package/src/assets/web-panel/assets/{P2P-DKDUTaaL.js → P2P-H7hLODDc.js} +2 -2
  39. package/src/assets/web-panel/assets/{Permissions-DlZ_n4w_.js → Permissions-B7UejC3D.js} +1 -1
  40. package/src/assets/web-panel/assets/{Pipeline-BUqsWXKt.js → Pipeline-DhmIDzq5.js} +1 -1
  41. package/src/assets/web-panel/assets/{Privacy-5YZQ-neP.js → Privacy-D98lbFiD.js} +1 -1
  42. package/src/assets/web-panel/assets/{ProjectSettings-DnrhLjZI.js → ProjectSettings-BiKBzbRF.js} +2 -2
  43. package/src/assets/web-panel/assets/{Projects-Bi66Yv3y.js → Projects-asWgm0Iz.js} +2 -2
  44. package/src/assets/web-panel/assets/{Providers-CikNkb5X.js → Providers-C2eO_XrC.js} +1 -1
  45. package/src/assets/web-panel/assets/Recommend-CIZjeClx.js +1 -0
  46. package/src/assets/web-panel/assets/Recommend-DgNSCgRX.css +1 -0
  47. package/src/assets/web-panel/assets/Reputation-Dq21I6NZ.js +1 -0
  48. package/src/assets/web-panel/assets/Reputation-y-46ThW8.css +1 -0
  49. package/src/assets/web-panel/assets/{Row-Dq1TXcMH.js → Row-BBRGnkyd.js} +1 -1
  50. package/src/assets/web-panel/assets/{RssFeed-NMgrJXli.js → RssFeed-B4jpCYCI.js} +3 -3
  51. package/src/assets/web-panel/assets/{Security-C8Ivt-oU.js → Security-D2BQD7tk.js} +4 -4
  52. package/src/assets/web-panel/assets/{Services-CEuZeNM6.js → Services-VasZTmqN.js} +2 -2
  53. package/src/assets/web-panel/assets/{Skeleton-CVXI8LKZ.js → Skeleton-1joyz4wO.js} +1 -1
  54. package/src/assets/web-panel/assets/{Skills-CIv4Cs3T.js → Skills-BkTmE8SJ.js} +1 -1
  55. package/src/assets/web-panel/assets/Sla-C1WYuQKf.css +1 -0
  56. package/src/assets/web-panel/assets/Sla-DTbGerEL.js +1 -0
  57. package/src/assets/web-panel/assets/{Tasks-DePDDw0g.js → Tasks-DI3oKTDz.js} +1 -1
  58. package/src/assets/web-panel/assets/{Templates-h2flhfZ2.js → Templates-C9Z_82IH.js} +1 -1
  59. package/src/assets/web-panel/assets/{Tenant-BZN5JCLW.js → Tenant-kLu9x3Ty.js} +1 -1
  60. package/src/assets/web-panel/assets/{Trigger-DmhLeltH.js → Trigger-BIXZjkDZ.js} +1 -1
  61. package/src/assets/web-panel/assets/{VideoEditing-DP5Te9MV.js → VideoEditing-nIRTUjK_.js} +1 -1
  62. package/src/assets/web-panel/assets/{Wallet-DbdgPt_i.js → Wallet-bO-fXxBx.js} +3 -3
  63. package/src/assets/web-panel/assets/{WebAuthn-0qV34Bht.js → WebAuthn-uNwYx1Yn.js} +3 -3
  64. package/src/assets/web-panel/assets/{WorkflowEditor-C4sIrXd7.js → WorkflowEditor-Bw6cIw_h.js} +1 -1
  65. package/src/assets/web-panel/assets/{colors-Iv3ft_s8.js → colors-WgDc41S9.js} +1 -1
  66. package/src/assets/web-panel/assets/{compact-item-CtT5KcXA.js → compact-item-BI2RK_Ub.js} +1 -1
  67. package/src/assets/web-panel/assets/{createContext-CHLVxTn6.js → createContext-gy9ZhS49.js} +1 -1
  68. package/src/assets/web-panel/assets/{hasIn-B9IRZs23.js → hasIn-BeuofWqK.js} +1 -1
  69. package/src/assets/web-panel/assets/icons-E3MGhN6s.js +57 -0
  70. package/src/assets/web-panel/assets/{index-CDWpDZgD.js → index--V8HSAh9.js} +1 -1
  71. package/src/assets/web-panel/assets/{index-DzKYMmMu.js → index-B1KhJnQM.js} +1 -1
  72. package/src/assets/web-panel/assets/{index-TOigBSzr.js → index-B4FsQ2CI.js} +1 -1
  73. package/src/assets/web-panel/assets/{index-NJzH4w-U.js → index-BIlQFerH.js} +2 -2
  74. package/src/assets/web-panel/assets/{index-BRlYu6_d.js → index-BSrnzqkD.js} +1 -1
  75. package/src/assets/web-panel/assets/{index-C1uasX17.js → index-BVg8Wf40.js} +1 -1
  76. package/src/assets/web-panel/assets/{index-q__DPgfq.js → index-B_Jn0gUS.js} +1 -1
  77. package/src/assets/web-panel/assets/{index-BWtxplKf.js → index-BeI4fOXN.js} +1 -1
  78. package/src/assets/web-panel/assets/{index-cqU5_E3h.js → index-BhSfMAk_.js} +2 -2
  79. package/src/assets/web-panel/assets/{index-4wtT_zvC.js → index-BhwkejpN.js} +1 -1
  80. package/src/assets/web-panel/assets/{index-KZbeEKa2.js → index-BqUqxSm3.js} +2 -2
  81. package/src/assets/web-panel/assets/index-CBI2Y4Kj.js +55 -0
  82. package/src/assets/web-panel/assets/{index-D7VXIYiM.js → index-CBfv-ndK.js} +1 -1
  83. package/src/assets/web-panel/assets/{index-CYQVfA_R.js → index-CCe5JJYI.js} +1 -1
  84. package/src/assets/web-panel/assets/index-CFjz2AoU.js +21 -0
  85. package/src/assets/web-panel/assets/index-CK4CCFyw.js +1 -0
  86. package/src/assets/web-panel/assets/{index-UmTF1KQy.js → index-CUV4Xqwc.js} +1 -1
  87. package/src/assets/web-panel/assets/{index-BjC8S1t1.js → index-CapUO117.js} +2 -2
  88. package/src/assets/web-panel/assets/{index-DXEG5UZz.js → index-ChQfosO1.js} +1 -1
  89. package/src/assets/web-panel/assets/{index-E7-XzEfE.js → index-CndKqpaA.js} +1 -1
  90. package/src/assets/web-panel/assets/index-CsESExuO.js +1 -0
  91. package/src/assets/web-panel/assets/{index-d3aFQf7u.js → index-Ct1YvTCX.js} +2 -2
  92. package/src/assets/web-panel/assets/{index-C8LBTJ8l.js → index-Cwuee4M2.js} +1 -1
  93. package/src/assets/web-panel/assets/{index-CMKIwCKt.js → index-CwzHos3n.js} +1 -1
  94. package/src/assets/web-panel/assets/{index-DUg23xvw.js → index-D3LHutKn.js} +1 -1
  95. package/src/assets/web-panel/assets/{index-CzGZa5Ow.js → index-DLcTmwiN.js} +3 -3
  96. package/src/assets/web-panel/assets/index-DPaLf3-g.js +36 -0
  97. package/src/assets/web-panel/assets/index-D_bHyAnC.js +1 -0
  98. package/src/assets/web-panel/assets/{index-Dbaj1U7z.js → index-DhwwIcoT.js} +1 -1
  99. package/src/assets/web-panel/assets/{index-4I01hpiN.js → index-Dxy2NQqS.js} +1 -1
  100. package/src/assets/web-panel/assets/{index-B6JARzH-.js → index-IXyQceyp.js} +2 -2
  101. package/src/assets/web-panel/assets/{index-ThYPc1ub.js → index-Q7v4BZgp.js} +3 -3
  102. package/src/assets/web-panel/assets/index-TpCAHpWv.js +1 -0
  103. package/src/assets/web-panel/assets/index-bpC7BiFY.js +13 -0
  104. package/src/assets/web-panel/assets/{index-dzwxxvlh.js → index-pGLDMYoo.js} +1 -1
  105. package/src/assets/web-panel/assets/{index--eBMlDjO.js → index-t5BUMwJ1.js} +1 -1
  106. package/src/assets/web-panel/assets/{index-DiZ3aYcD.js → index-t8Iy1rHD.js} +1 -1
  107. package/src/assets/web-panel/assets/{index-BOlkR4CB.js → index-vwTt5gIV.js} +1 -1
  108. package/src/assets/web-panel/assets/{initDefaultProps-BcWs5QbR.js → initDefaultProps-C1zn_AKT.js} +1 -1
  109. package/src/assets/web-panel/assets/{motion-CrLibvjP.js → motion-BflWvLDD.js} +1 -1
  110. package/src/assets/web-panel/assets/{move-B5c6-VQr.js → move-TfXJb-sS.js} +1 -1
  111. package/src/assets/web-panel/assets/{omit-DpIEkCg5.js → omit-COjrlUIA.js} +1 -1
  112. package/src/assets/web-panel/assets/{pickAttrs-KtgV4VKB.js → pickAttrs-1WCywewt.js} +1 -1
  113. package/src/assets/web-panel/assets/{placementArrow-UtY5srm7.js → placementArrow-y75Pew0G.js} +1 -1
  114. package/src/assets/web-panel/assets/{responsiveObserve-C---VD6e.js → responsiveObserve-BDt6Mlnb.js} +1 -1
  115. package/src/assets/web-panel/assets/{slide-hr0X8KAK.js → slide-B1oHu6JW.js} +1 -1
  116. package/src/assets/web-panel/assets/{statusUtils-CgoYe6s3.js → statusUtils-CO9QQaYQ.js} +1 -1
  117. package/src/assets/web-panel/assets/{styleChecker-DJv72QFU.js → styleChecker-C2ONfKU2.js} +1 -1
  118. package/src/assets/web-panel/assets/{transition-D2wU6PAY.js → transition-atE2sWdv.js} +1 -1
  119. package/src/assets/web-panel/assets/{useConfigInject-DqhngD-R.js → useConfigInject-DIKG5Y4I.js} +2 -2
  120. package/src/assets/web-panel/assets/{useFlexGapSupport-CTWfwV__.js → useFlexGapSupport-C0OopxrG.js} +1 -1
  121. package/src/assets/web-panel/assets/{vnode-B2xg11HE.js → vnode-Cryb4eNl.js} +1 -1
  122. package/src/assets/web-panel/assets/{zoom-BGImMPSi.js → zoom-zuDCIwwE.js} +1 -1
  123. package/src/assets/web-panel/index.html +2 -2
  124. package/src/assets/web-panel/assets/AppLayout-BbhrUX4i.css +0 -1
  125. package/src/assets/web-panel/assets/AppLayout-CcqxQGmE.js +0 -1
  126. package/src/assets/web-panel/assets/Chat-Cl9LpsTj.js +0 -2
  127. package/src/assets/web-panel/assets/icons-srBCpwXl.js +0 -57
  128. package/src/assets/web-panel/assets/index-69KL83qL.js +0 -1
  129. package/src/assets/web-panel/assets/index-B0IQIuHE.js +0 -1
  130. package/src/assets/web-panel/assets/index-B18bc0ut.js +0 -21
  131. package/src/assets/web-panel/assets/index-BaHFTtgz.js +0 -55
  132. package/src/assets/web-panel/assets/index-C8wxMp_Z.js +0 -1
  133. package/src/assets/web-panel/assets/index-Cps5gHTC.js +0 -1
  134. package/src/assets/web-panel/assets/index-D5hcqkeW.js +0 -13
  135. package/src/assets/web-panel/assets/index-DlSUq1W3.js +0 -36
@@ -1,4 +1,4 @@
1
- import{_ as p,w as it,a as lt,c as rt,b as st,d as ct,e as ut,D as dt,f as ft,s as vt}from"./index-DlSUq1W3.js";import{l as fe,_ as T,c as R,g as we,m as Ne,r as Oe,w as mt,u as Me,a as z,b as pt,d as gt,e as Ct,f as yt,h as $t,L as ht,i as xt,j as ve,k as bt,n as Pt,o as It}from"./useConfigInject-DqhngD-R.js";import{d as L,a as V,w as Q,p as _t,l as ke,M as St,c as g,T as wt,j as P,S as Te,r as Ee,U as Nt,V as ye,s as K,f as me}from"./vendor-BVetwVfk.js";import{g as Ae}from"./transition-D2wU6PAY.js";import{X as pe,as as ee,at as te,Q as ne,au as oe,ah as ge,av as Ot,aw as Mt,y as kt,a4 as Tt,T as re,g as $e}from"./icons-srBCpwXl.js";import{K as H}from"./Keyframes-C7fCrnlS.js";import{P as Et,g as At}from"./Portal-CHsntPCQ.js";let q=p({},fe.Modal);function Rt(e){e?q=p(p({},q),e):q=p({},fe.Modal)}function Dn(){return q}const ce="internalMark",J=L({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:o}=t;lt(e.ANT_MARK__===ce);const n=V({antLocale:p(p({},e.locale),{exist:!0}),ANT_MARK__:ce});return _t("localeData",n),Q(()=>e.locale,a=>{Rt(a&&a.Modal),n.antLocale=p(p({},a),{exist:!0})},{immediate:!0}),()=>{var a;return(a=o.default)===null||a===void 0?void 0:a.call(o)}}});J.install=function(e){return e.component(J.name,J),e};const Lt=it(J),Re=L({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:o,slots:n}=t,a,m=!1;const s=P(()=>e.duration===void 0?4.5:e.duration),d=()=>{s.value&&!m&&(a=setTimeout(()=>{l()},s.value*1e3))},f=()=>{a&&(clearTimeout(a),a=null)},l=c=>{c&&c.stopPropagation(),f();const{onClose:u,noticeKey:v}=e;u&&u(v)},r=()=>{f(),d()};return ke(()=>{d()}),St(()=>{m=!0,f()}),Q([s,()=>e.updateMark,()=>e.visible],(c,u)=>{let[v,y,C]=c,[x,h,I]=u;(v!==x||y!==h||C!==I&&I)&&r()},{flush:"post"}),()=>{var c,u;const{prefixCls:v,closable:y,closeIcon:C=(c=n.closeIcon)===null||c===void 0?void 0:c.call(n),onClick:x,holder:h}=e,{class:I,style:N}=o,b=`${v}-notice`,_=Object.keys(o).reduce((S,O)=>((O.startsWith("data-")||O.startsWith("aria-")||O==="role")&&(S[O]=o[O]),S),{}),w=g("div",T({class:R(b,I,{[`${b}-closable`]:y}),style:N,onMouseenter:f,onMouseleave:d,onClick:x},_),[g("div",{class:`${b}-content`},[(u=n.default)===null||u===void 0?void 0:u.call(n)]),y?g("a",{tabindex:0,onClick:l,class:`${b}-close`},[C||g("span",{class:`${b}-close-x`},null)]):null]);return h?g(wt,{to:h},{default:()=>w}):w}}});var jt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};let he=0;const Ft=Date.now();function xe(){const e=he;return he+=1,`rcNotification_${Ft}_${e}`}const Z=L({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:o,expose:n,slots:a}=t;const m=new Map,s=Ee([]),d=P(()=>{const{prefixCls:r,animation:c="fade"}=e;let u=e.transitionName;return!u&&c&&(u=`${r}-${c}`),Ae(u)}),f=(r,c)=>{const u=r.key||xe(),v=p(p({},r),{key:u}),{maxCount:y}=e,C=s.value.map(h=>h.notice.key).indexOf(u),x=s.value.concat();C!==-1?x.splice(C,1,{notice:v,holderCallback:c}):(y&&s.value.length>=y&&(v.key=x[0].notice.key,v.updateMark=xe(),v.userPassKey=u,x.shift()),x.push({notice:v,holderCallback:c})),s.value=x},l=r=>{s.value=Nt(s.value).filter(c=>{let{notice:{key:u,userPassKey:v}}=c;return(v||u)!==r})};return n({add:f,remove:l,notices:s}),()=>{var r;const{prefixCls:c,closeIcon:u=(r=a.closeIcon)===null||r===void 0?void 0:r.call(a,{prefixCls:c})}=e,v=s.value.map((C,x)=>{let{notice:h,holderCallback:I}=C;const N=x===s.value.length-1?h.updateMark:void 0,{key:b,userPassKey:_}=h,{content:w}=h,S=p(p(p({prefixCls:c,closeIcon:typeof u=="function"?u({prefixCls:c}):u},h),h.props),{key:b,noticeKey:_||b,updateMark:N,onClose:O=>{var E;l(O),(E=h.onClose)===null||E===void 0||E.call(h)},onClick:h.onClick});return I?g("div",{key:b,class:`${c}-hook-holder`,ref:O=>{typeof b>"u"||(O?(m.set(b,O),I(O,S)):m.delete(b))}},null):g(Re,T(T({},S),{},{class:R(S.class,e.hashId)}),{default:()=>[typeof w=="function"?w({prefixCls:c}):w]})}),y={[c]:1,[o.class]:!!o.class,[e.hashId]:!0};return g("div",{class:y,style:o.style||{top:"65px",left:"50%"}},[g(Te,T({tag:"div"},d.value),{default:()=>[v]})])}}});Z.newInstance=function(t,o){const n=t||{},{name:a="notification",getContainer:m,appContext:s,prefixCls:d,rootPrefixCls:f,transitionName:l,hasTransitionName:r,useStyle:c}=n,u=jt(n,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),v=document.createElement("div");m?m().appendChild(v):document.body.appendChild(v);const y=L({compatConfig:{MODE:3},name:"NotificationWrapper",setup(x,h){let{attrs:I}=h;const N=K(),b=P(()=>k.getPrefixCls(a,d)),[,_]=c(b);return ke(()=>{o({notice(w){var S;(S=N.value)===null||S===void 0||S.add(w)},removeNotice(w){var S;(S=N.value)===null||S===void 0||S.remove(w)},destroy(){ye(null,v),v.parentNode&&v.parentNode.removeChild(v)},component:N})}),()=>{const w=k,S=w.getRootPrefixCls(f,b.value),O=r?l:`${b.value}-${l}`;return g(G,T(T({},w),{},{prefixCls:S}),{default:()=>[g(Z,T(T({ref:N},I),{},{prefixCls:b.value,transitionName:O,hashId:_.value}),null)]})}}}),C=g(y,u);C.appContext=s||C.appContext,ye(C,v)};let be=0;const Dt=Date.now();function Pe(){const e=be;return be+=1,`rcNotification_${Dt}_${e}`}const Ht=L({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:o,slots:n}=t;const a=new Map,m=P(()=>e.notices),s=P(()=>{let r=e.transitionName;if(!r&&e.animation)switch(typeof e.animation){case"string":r=e.animation;break;case"function":r=e.animation().name;break;case"object":r=e.animation.name;break;default:r=`${e.prefixCls}-fade`;break}return Ae(r)}),d=r=>e.remove(r),f=Ee({});Q(m,()=>{const r={};Object.keys(f.value).forEach(c=>{r[c]=[]}),e.notices.forEach(c=>{const{placement:u="topRight"}=c.notice;u&&(r[u]=r[u]||[],r[u].push(c))}),f.value=r});const l=P(()=>Object.keys(f.value));return()=>{var r;const{prefixCls:c,closeIcon:u=(r=n.closeIcon)===null||r===void 0?void 0:r.call(n,{prefixCls:c})}=e,v=l.value.map(y=>{var C,x;const h=f.value[y],I=(C=e.getClassName)===null||C===void 0?void 0:C.call(e,y),N=(x=e.getStyles)===null||x===void 0?void 0:x.call(e,y),b=h.map((S,O)=>{let{notice:E,holderCallback:Y}=S;const ae=O===m.value.length-1?E.updateMark:void 0,{key:j,userPassKey:ie}=E,{content:W}=E,i=p(p(p({prefixCls:c,closeIcon:typeof u=="function"?u({prefixCls:c}):u},E),E.props),{key:j,noticeKey:ie||j,updateMark:ae,onClose:$=>{var M;d($),(M=E.onClose)===null||M===void 0||M.call(E)},onClick:E.onClick});return Y?g("div",{key:j,class:`${c}-hook-holder`,ref:$=>{typeof j>"u"||($?(a.set(j,$),Y($,i)):a.delete(j))}},null):g(Re,T(T({},i),{},{class:R(i.class,e.hashId)}),{default:()=>[typeof W=="function"?W({prefixCls:c}):W]})}),_={[c]:1,[`${c}-${y}`]:1,[o.class]:!!o.class,[e.hashId]:!0,[I]:!!I};function w(){var S;h.length>0||(Reflect.deleteProperty(f.value,y),(S=e.onAllRemoved)===null||S===void 0||S.call(e))}return g("div",{key:y,class:_,style:o.style||N||{top:"65px",left:"50%"}},[g(Te,T(T({tag:"div"},s.value),{},{onAfterLeave:w}),{default:()=>[b]})])});return g(Et,{getContainer:e.getContainer},{default:()=>[v]})}}});var zt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Kt=()=>document.body;let Ie=0;function Bt(){const e={};for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return o.forEach(a=>{a&&Object.keys(a).forEach(m=>{const s=a[m];s!==void 0&&(e[m]=s)})}),e}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=Kt,motion:o,prefixCls:n,maxCount:a,getClassName:m,getStyles:s,onAllRemoved:d}=e,f=zt(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),l=K([]),r=K(),c=(h,I)=>{const N=h.key||Pe(),b=p(p({},h),{key:N}),_=l.value.map(S=>S.notice.key).indexOf(N),w=l.value.concat();_!==-1?w.splice(_,1,{notice:b,holderCallback:I}):(a&&l.value.length>=a&&(b.key=w[0].notice.key,b.updateMark=Pe(),b.userPassKey=N,w.shift()),w.push({notice:b,holderCallback:I})),l.value=w},u=h=>{l.value=l.value.filter(I=>{let{notice:{key:N,userPassKey:b}}=I;return(b||N)!==h})},v=()=>{l.value=[]},y=()=>g(Ht,{ref:r,prefixCls:n,maxCount:a,notices:l.value,remove:u,getClassName:m,getStyles:s,animation:o,hashId:e.hashId,onAllRemoved:d,getContainer:t},null),C=K([]),x={open:h=>{const I=Bt(f,h);(I.key===null||I.key===void 0)&&(I.key=`vc-notification-${Ie}`,Ie+=1),C.value=[...C.value,{type:"open",config:I}]},close:h=>{C.value=[...C.value,{type:"close",key:h}]},destroy:()=>{C.value=[...C.value,{type:"destroy"}]}};return Q(C,()=>{C.value.length&&(C.value.forEach(h=>{switch(h.type){case"open":c(h.config);break;case"close":u(h.key);break;case"destroy":v();break}}),C.value=[])}),[x,y]}const Gt=e=>{const{componentCls:t,iconCls:o,boxShadowSecondary:n,colorBgElevated:a,colorSuccess:m,colorError:s,colorWarning:d,colorInfo:f,fontSizeLG:l,motionEaseInOutCirc:r,motionDurationSlow:c,marginXS:u,paddingXS:v,borderRadiusLG:y,zIndexPopup:C,messageNoticeContentPadding:x}=e,h=new H("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),I=new H("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:p(p({},Oe(e)),{position:"fixed",top:u,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
1
+ import{_ as p,w as it,a as lt,c as rt,b as st,d as ct,e as ut,D as dt,f as ft,s as vt}from"./index-DPaLf3-g.js";import{l as fe,_ as T,c as R,g as we,m as Ne,r as Oe,w as mt,u as Me,a as z,b as pt,d as gt,e as Ct,f as yt,h as $t,L as ht,i as xt,j as ve,k as bt,n as Pt,o as It}from"./useConfigInject-DIKG5Y4I.js";import{d as L,a as V,w as Y,p as _t,l as ke,M as St,c as g,T as wt,j as P,S as Te,r as Ee,U as Nt,V as ye,s as K,f as me}from"./vendor-BVetwVfk.js";import{g as Ae}from"./transition-atE2sWdv.js";import{$ as pe,aw as ee,ax as te,_ as ne,ay as oe,ak as ge,az as Ot,au as Mt,N as kt,a8 as Tt,T as re,g as $e}from"./icons-E3MGhN6s.js";import{K as H}from"./Keyframes-C7fCrnlS.js";import{P as Et,g as At}from"./Portal-CHsntPCQ.js";let Q=p({},fe.Modal);function Rt(e){e?Q=p(p({},Q),e):Q=p({},fe.Modal)}function Dn(){return Q}const ce="internalMark",J=L({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:o}=t;lt(e.ANT_MARK__===ce);const n=V({antLocale:p(p({},e.locale),{exist:!0}),ANT_MARK__:ce});return _t("localeData",n),Y(()=>e.locale,a=>{Rt(a&&a.Modal),n.antLocale=p(p({},a),{exist:!0})},{immediate:!0}),()=>{var a;return(a=o.default)===null||a===void 0?void 0:a.call(o)}}});J.install=function(e){return e.component(J.name,J),e};const Lt=it(J),Re=L({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:o,slots:n}=t,a,m=!1;const s=P(()=>e.duration===void 0?4.5:e.duration),d=()=>{s.value&&!m&&(a=setTimeout(()=>{l()},s.value*1e3))},f=()=>{a&&(clearTimeout(a),a=null)},l=c=>{c&&c.stopPropagation(),f();const{onClose:u,noticeKey:v}=e;u&&u(v)},r=()=>{f(),d()};return ke(()=>{d()}),St(()=>{m=!0,f()}),Y([s,()=>e.updateMark,()=>e.visible],(c,u)=>{let[v,y,C]=c,[x,h,I]=u;(v!==x||y!==h||C!==I&&I)&&r()},{flush:"post"}),()=>{var c,u;const{prefixCls:v,closable:y,closeIcon:C=(c=n.closeIcon)===null||c===void 0?void 0:c.call(n),onClick:x,holder:h}=e,{class:I,style:N}=o,b=`${v}-notice`,_=Object.keys(o).reduce((S,O)=>((O.startsWith("data-")||O.startsWith("aria-")||O==="role")&&(S[O]=o[O]),S),{}),w=g("div",T({class:R(b,I,{[`${b}-closable`]:y}),style:N,onMouseenter:f,onMouseleave:d,onClick:x},_),[g("div",{class:`${b}-content`},[(u=n.default)===null||u===void 0?void 0:u.call(n)]),y?g("a",{tabindex:0,onClick:l,class:`${b}-close`},[C||g("span",{class:`${b}-close-x`},null)]):null]);return h?g(wt,{to:h},{default:()=>w}):w}}});var jt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};let he=0;const Ft=Date.now();function xe(){const e=he;return he+=1,`rcNotification_${Ft}_${e}`}const Z=L({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:o,expose:n,slots:a}=t;const m=new Map,s=Ee([]),d=P(()=>{const{prefixCls:r,animation:c="fade"}=e;let u=e.transitionName;return!u&&c&&(u=`${r}-${c}`),Ae(u)}),f=(r,c)=>{const u=r.key||xe(),v=p(p({},r),{key:u}),{maxCount:y}=e,C=s.value.map(h=>h.notice.key).indexOf(u),x=s.value.concat();C!==-1?x.splice(C,1,{notice:v,holderCallback:c}):(y&&s.value.length>=y&&(v.key=x[0].notice.key,v.updateMark=xe(),v.userPassKey=u,x.shift()),x.push({notice:v,holderCallback:c})),s.value=x},l=r=>{s.value=Nt(s.value).filter(c=>{let{notice:{key:u,userPassKey:v}}=c;return(v||u)!==r})};return n({add:f,remove:l,notices:s}),()=>{var r;const{prefixCls:c,closeIcon:u=(r=a.closeIcon)===null||r===void 0?void 0:r.call(a,{prefixCls:c})}=e,v=s.value.map((C,x)=>{let{notice:h,holderCallback:I}=C;const N=x===s.value.length-1?h.updateMark:void 0,{key:b,userPassKey:_}=h,{content:w}=h,S=p(p(p({prefixCls:c,closeIcon:typeof u=="function"?u({prefixCls:c}):u},h),h.props),{key:b,noticeKey:_||b,updateMark:N,onClose:O=>{var E;l(O),(E=h.onClose)===null||E===void 0||E.call(h)},onClick:h.onClick});return I?g("div",{key:b,class:`${c}-hook-holder`,ref:O=>{typeof b>"u"||(O?(m.set(b,O),I(O,S)):m.delete(b))}},null):g(Re,T(T({},S),{},{class:R(S.class,e.hashId)}),{default:()=>[typeof w=="function"?w({prefixCls:c}):w]})}),y={[c]:1,[o.class]:!!o.class,[e.hashId]:!0};return g("div",{class:y,style:o.style||{top:"65px",left:"50%"}},[g(Te,T({tag:"div"},d.value),{default:()=>[v]})])}}});Z.newInstance=function(t,o){const n=t||{},{name:a="notification",getContainer:m,appContext:s,prefixCls:d,rootPrefixCls:f,transitionName:l,hasTransitionName:r,useStyle:c}=n,u=jt(n,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),v=document.createElement("div");m?m().appendChild(v):document.body.appendChild(v);const y=L({compatConfig:{MODE:3},name:"NotificationWrapper",setup(x,h){let{attrs:I}=h;const N=K(),b=P(()=>k.getPrefixCls(a,d)),[,_]=c(b);return ke(()=>{o({notice(w){var S;(S=N.value)===null||S===void 0||S.add(w)},removeNotice(w){var S;(S=N.value)===null||S===void 0||S.remove(w)},destroy(){ye(null,v),v.parentNode&&v.parentNode.removeChild(v)},component:N})}),()=>{const w=k,S=w.getRootPrefixCls(f,b.value),O=r?l:`${b.value}-${l}`;return g(G,T(T({},w),{},{prefixCls:S}),{default:()=>[g(Z,T(T({ref:N},I),{},{prefixCls:b.value,transitionName:O,hashId:_.value}),null)]})}}}),C=g(y,u);C.appContext=s||C.appContext,ye(C,v)};let be=0;const Dt=Date.now();function Pe(){const e=be;return be+=1,`rcNotification_${Dt}_${e}`}const Ht=L({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:o,slots:n}=t;const a=new Map,m=P(()=>e.notices),s=P(()=>{let r=e.transitionName;if(!r&&e.animation)switch(typeof e.animation){case"string":r=e.animation;break;case"function":r=e.animation().name;break;case"object":r=e.animation.name;break;default:r=`${e.prefixCls}-fade`;break}return Ae(r)}),d=r=>e.remove(r),f=Ee({});Y(m,()=>{const r={};Object.keys(f.value).forEach(c=>{r[c]=[]}),e.notices.forEach(c=>{const{placement:u="topRight"}=c.notice;u&&(r[u]=r[u]||[],r[u].push(c))}),f.value=r});const l=P(()=>Object.keys(f.value));return()=>{var r;const{prefixCls:c,closeIcon:u=(r=n.closeIcon)===null||r===void 0?void 0:r.call(n,{prefixCls:c})}=e,v=l.value.map(y=>{var C,x;const h=f.value[y],I=(C=e.getClassName)===null||C===void 0?void 0:C.call(e,y),N=(x=e.getStyles)===null||x===void 0?void 0:x.call(e,y),b=h.map((S,O)=>{let{notice:E,holderCallback:q}=S;const ae=O===m.value.length-1?E.updateMark:void 0,{key:j,userPassKey:ie}=E,{content:W}=E,i=p(p(p({prefixCls:c,closeIcon:typeof u=="function"?u({prefixCls:c}):u},E),E.props),{key:j,noticeKey:ie||j,updateMark:ae,onClose:$=>{var M;d($),(M=E.onClose)===null||M===void 0||M.call(E)},onClick:E.onClick});return q?g("div",{key:j,class:`${c}-hook-holder`,ref:$=>{typeof j>"u"||($?(a.set(j,$),q($,i)):a.delete(j))}},null):g(Re,T(T({},i),{},{class:R(i.class,e.hashId)}),{default:()=>[typeof W=="function"?W({prefixCls:c}):W]})}),_={[c]:1,[`${c}-${y}`]:1,[o.class]:!!o.class,[e.hashId]:!0,[I]:!!I};function w(){var S;h.length>0||(Reflect.deleteProperty(f.value,y),(S=e.onAllRemoved)===null||S===void 0||S.call(e))}return g("div",{key:y,class:_,style:o.style||N||{top:"65px",left:"50%"}},[g(Te,T(T({tag:"div"},s.value),{},{onAfterLeave:w}),{default:()=>[b]})])});return g(Et,{getContainer:e.getContainer},{default:()=>[v]})}}});var zt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Kt=()=>document.body;let Ie=0;function Bt(){const e={};for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return o.forEach(a=>{a&&Object.keys(a).forEach(m=>{const s=a[m];s!==void 0&&(e[m]=s)})}),e}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=Kt,motion:o,prefixCls:n,maxCount:a,getClassName:m,getStyles:s,onAllRemoved:d}=e,f=zt(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),l=K([]),r=K(),c=(h,I)=>{const N=h.key||Pe(),b=p(p({},h),{key:N}),_=l.value.map(S=>S.notice.key).indexOf(N),w=l.value.concat();_!==-1?w.splice(_,1,{notice:b,holderCallback:I}):(a&&l.value.length>=a&&(b.key=w[0].notice.key,b.updateMark=Pe(),b.userPassKey=N,w.shift()),w.push({notice:b,holderCallback:I})),l.value=w},u=h=>{l.value=l.value.filter(I=>{let{notice:{key:N,userPassKey:b}}=I;return(b||N)!==h})},v=()=>{l.value=[]},y=()=>g(Ht,{ref:r,prefixCls:n,maxCount:a,notices:l.value,remove:u,getClassName:m,getStyles:s,animation:o,hashId:e.hashId,onAllRemoved:d,getContainer:t},null),C=K([]),x={open:h=>{const I=Bt(f,h);(I.key===null||I.key===void 0)&&(I.key=`vc-notification-${Ie}`,Ie+=1),C.value=[...C.value,{type:"open",config:I}]},close:h=>{C.value=[...C.value,{type:"close",key:h}]},destroy:()=>{C.value=[...C.value,{type:"destroy"}]}};return Y(C,()=>{C.value.length&&(C.value.forEach(h=>{switch(h.type){case"open":c(h.config);break;case"close":u(h.key);break;case"destroy":v();break}}),C.value=[])}),[x,y]}const Gt=e=>{const{componentCls:t,iconCls:o,boxShadowSecondary:n,colorBgElevated:a,colorSuccess:m,colorError:s,colorWarning:d,colorInfo:f,fontSizeLG:l,motionEaseInOutCirc:r,motionDurationSlow:c,marginXS:u,paddingXS:v,borderRadiusLG:y,zIndexPopup:C,messageNoticeContentPadding:x}=e,h=new H("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),I=new H("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:p(p({},Oe(e)),{position:"fixed",top:u,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
2
2
  ${t}-move-up-appear,
3
3
  ${t}-move-up-enter
4
4
  `]:{animationName:h,animationDuration:c,animationPlayState:"paused",animationTimingFunction:r},[`
@@ -6,9 +6,9 @@ import{_ as p,w as it,a as lt,c as rt,b as st,d as ct,e as ut,D as dt,f as ft,s
6
6
  ${t}-move-up-enter${t}-move-up-enter-active
7
7
  `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:I,animationDuration:c,animationPlayState:"paused",animationTimingFunction:r},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:v,textAlign:"center",[o]:{verticalAlign:"text-bottom",marginInlineEnd:u,fontSize:l},[`${t}-notice-content`]:{display:"inline-block",padding:x,background:a,borderRadius:y,boxShadow:n,pointerEvents:"all"},[`${t}-success ${o}`]:{color:m},[`${t}-error ${o}`]:{color:s},[`${t}-warning ${o}`]:{color:d},[`
8
8
  ${t}-info ${o},
9
- ${t}-loading ${o}`]:{color:f}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},je=we("Message",e=>{const t=Ne(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[Gt(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),Ut={info:g(oe,null,null),success:g(ne,null,null),error:g(te,null,null),warning:g(ee,null,null),loading:g(pe,null,null)},Wt=L({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:o}=t;return()=>{var n;return g("div",{class:R(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||Ut[e.type],g("span",null,[(n=o.default)===null||n===void 0?void 0:n.call(o)])])}}});var Vt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Xt=8,Qt=3,Yt=L({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved","animation","staticGetContainer"],setup(e,t){let{expose:o}=t;var n,a;const{getPrefixCls:m,getPopupContainer:s}=Me("message",e),d=P(()=>m("message",e.prefixCls)),[,f]=je(d),l=()=>{var C;const x=(C=e.top)!==null&&C!==void 0?C:Xt;return{left:"50%",transform:"translateX(-50%)",top:typeof x=="number"?`${x}px`:x}},r=()=>R(f.value,e.rtl?`${d.value}-rtl`:""),c=()=>{var C;return At({prefixCls:d.value,animation:(C=e.animation)!==null&&C!==void 0?C:"move-up",transitionName:e.transitionName})},u=g("span",{class:`${d.value}-close-x`},[g(ge,{class:`${d.value}-close-icon`},null)]),[v,y]=Le({getStyles:l,prefixCls:d.value,getClassName:r,motion:c,closable:!1,closeIcon:u,duration:(n=e.duration)!==null&&n!==void 0?n:Qt,getContainer:(a=e.staticGetContainer)!==null&&a!==void 0?a:s.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return o(p(p({},v),{prefixCls:d,hashId:f})),y}});let _e=0;function qt(e){const t=K(null),o=Symbol("messageHolderKey"),n=f=>{var l;(l=t.value)===null||l===void 0||l.close(f)},a=f=>{if(!t.value){const _=()=>{};return _.then=()=>{},_}const{open:l,prefixCls:r,hashId:c}=t.value,u=`${r}-notice`,{content:v,icon:y,type:C,key:x,class:h,onClose:I}=f,N=Vt(f,["content","icon","type","key","class","onClose"]);let b=x;return b==null&&(_e+=1,b=`antd-message-${_e}`),mt(_=>(l(p(p({},N),{key:b,content:()=>g(Wt,{prefixCls:r,type:C,icon:typeof y=="function"?y():y},{default:()=>[typeof v=="function"?v():v]}),placement:"top",class:R(C&&`${u}-${C}`,c,h),onClose:()=>{I?.(),_()}})),()=>{n(b)}))},s={open:a,destroy:f=>{var l;f!==void 0?n(f):(l=t.value)===null||l===void 0||l.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const l=(r,c,u)=>{let v;r&&typeof r=="object"&&"content"in r?v=r:v={content:r};let y,C;typeof c=="function"?C=c:(y=c,C=u);const x=p(p({onClose:C,duration:y},v),{type:f});return a(x)};s[f]=l}),[s,()=>g(Yt,T(T({key:o},e),{},{ref:t}),null)]}function Jt(e){return qt(e)}let Fe=3,De,A,Zt=1,He="",ze="move-up",Ke=!1,Be=()=>document.body,Ge,Ue=!1;function en(){return Zt++}function tn(e){e.top!==void 0&&(De=e.top,A=null),e.duration!==void 0&&(Fe=e.duration),e.prefixCls!==void 0&&(He=e.prefixCls),e.getContainer!==void 0&&(Be=e.getContainer,A=null),e.transitionName!==void 0&&(ze=e.transitionName,A=null,Ke=!0),e.maxCount!==void 0&&(Ge=e.maxCount,A=null),e.rtl!==void 0&&(Ue=e.rtl)}function nn(e,t){if(A){t(A);return}Z.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||He,rootPrefixCls:e.rootPrefixCls,transitionName:ze,hasTransitionName:Ke,style:{top:De},getContainer:Be||e.getPopupContainer,maxCount:Ge,name:"message",useStyle:je},o=>{if(A){t(A);return}A=o,t(o)})}const We={info:oe,success:ne,error:te,warning:ee,loading:pe},on=Object.keys(We);function an(e){const t=e.duration!==void 0?e.duration:Fe,o=e.key||en(),n=new Promise(m=>{const s=()=>(typeof e.onClose=="function"&&e.onClose(),m(!0));nn(e,d=>{d.notice({key:o,duration:t,style:e.style||{},class:e.class,content:f=>{let{prefixCls:l}=f;const r=We[e.type],c=r?g(r,null,null):"",u=R(`${l}-custom-content`,{[`${l}-${e.type}`]:e.type,[`${l}-rtl`]:Ue===!0});return g("div",{class:u},[typeof e.icon=="function"?e.icon():e.icon||c,g("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:s,onClick:e.onClick})})}),a=()=>{A&&A.removeNotice(o)};return a.then=(m,s)=>n.then(m,s),a.promise=n,a}function ln(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const X={open:an,config:tn,destroy(e){if(A)if(e){const{removeNotice:t}=A;t(e)}else{const{destroy:t}=A;t(),A=null}}};function rn(e,t){e[t]=(o,n,a)=>ln(o)?e.open(p(p({},o),{type:t})):(typeof n=="function"&&(a=n,n=void 0),e.open({content:o,duration:n,type:t,onClose:a}))}on.forEach(e=>rn(X,e));X.warn=X.warning;X.useMessage=Jt;const sn=e=>{const{componentCls:t,width:o,notificationMarginEdge:n}=e,a=new H("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),m=new H("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),s=new H("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:o},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:m}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:n,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}},cn=e=>{const{iconCls:t,componentCls:o,boxShadowSecondary:n,fontSizeLG:a,notificationMarginBottom:m,borderRadiusLG:s,colorSuccess:d,colorInfo:f,colorWarning:l,colorError:r,colorTextHeading:c,notificationBg:u,notificationPadding:v,notificationMarginEdge:y,motionDurationMid:C,motionEaseInOut:x,fontSize:h,lineHeight:I,width:N,notificationIconSize:b}=e,_=`${o}-notice`,w=new H("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:N},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),S=new H("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:m,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[o]:p(p(p(p({},Oe(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:y,[`${o}-hook-holder`]:{position:"relative"},[`&${o}-top, &${o}-bottom`]:{[`${o}-notice`]:{marginInline:"auto auto"}},[`&${o}-topLeft, &${o}-bottomLeft`]:{[`${o}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${o}-fade-enter, ${o}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:x,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${o}-fade-leave`]:{animationTimingFunction:x,animationFillMode:"both",animationDuration:C,animationPlayState:"paused"},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:w,animationPlayState:"running"},[`${o}-fade-leave${o}-fade-leave-active`]:{animationName:S,animationPlayState:"running"}}),sn(e)),{"&-rtl":{direction:"rtl",[`${o}-notice-btn`]:{float:"left"}}})},{[_]:{position:"relative",width:N,maxWidth:`calc(100vw - ${y*2}px)`,marginBottom:m,marginInlineStart:"auto",padding:v,overflow:"hidden",lineHeight:I,wordWrap:"break-word",background:u,borderRadius:s,boxShadow:n,[`${o}-close-icon`]:{fontSize:h,cursor:"pointer"},[`${_}-message`]:{marginBottom:e.marginXS,color:c,fontSize:a,lineHeight:e.lineHeightLG},[`${_}-description`]:{fontSize:h},[`&${_}-closable ${_}-message`]:{paddingInlineEnd:e.paddingLG},[`${_}-with-icon ${_}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+b,fontSize:a},[`${_}-with-icon ${_}-description`]:{marginInlineStart:e.marginSM+b,fontSize:h},[`${_}-icon`]:{position:"absolute",fontSize:b,lineHeight:0,[`&-success${t}`]:{color:d},[`&-info${t}`]:{color:f},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:r}},[`${_}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${_}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${_}-pure-panel`]:{margin:0}}]},Ve=we("Notification",e=>{const t=e.paddingMD,o=e.paddingLG,n=Ne(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[cn(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function un(e,t){return t||g("span",{class:`${e}-close-x`},[g(ge,{class:`${e}-close-icon`},null)])}g(oe,null,null),g(ne,null,null),g(te,null,null),g(ee,null,null),g(pe,null,null);const dn={success:ne,info:oe,error:te,warning:ee};function fn(e){let{prefixCls:t,icon:o,type:n,message:a,description:m,btn:s}=e,d=null;if(o)d=g("span",{class:`${t}-icon`},[z(o)]);else if(n){const f=dn[n];d=g(f,{class:`${t}-icon ${t}-icon-${n}`},null)}return g("div",{class:R({[`${t}-with-icon`]:d}),role:"alert"},[d,g("div",{class:`${t}-message`},[a]),g("div",{class:`${t}-description`},[m]),s&&g("div",{class:`${t}-btn`},[s])])}function Xe(e,t,o){let n;switch(t=typeof t=="number"?`${t}px`:t,o=typeof o=="number"?`${o}px`:o,e){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":n={left:0,top:t,bottom:"auto"};break;case"topRight":n={right:0,top:t,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:o};break;case"bottomLeft":n={left:0,top:"auto",bottom:o};break;default:n={right:0,top:"auto",bottom:o};break}return n}function vn(e){return{name:`${e}-fade`}}var mn=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Se=24,pn=4.5,gn=L({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:o}=t;const{getPrefixCls:n,getPopupContainer:a}=Me("notification",e),m=P(()=>e.prefixCls||n("notification")),s=u=>{var v,y;return Xe(u,(v=e.top)!==null&&v!==void 0?v:Se,(y=e.bottom)!==null&&y!==void 0?y:Se)},[,d]=Ve(m),f=()=>R(d.value,{[`${m.value}-rtl`]:e.rtl}),l=()=>vn(m.value),[r,c]=Le({prefixCls:m.value,getStyles:s,getClassName:f,motion:l,closable:!0,closeIcon:un(m.value),duration:pn,getContainer:()=>{var u,v;return((u=e.getPopupContainer)===null||u===void 0?void 0:u.call(e))||((v=a.value)===null||v===void 0?void 0:v.call(a))||document.body},maxCount:e.maxCount,hashId:d.value,onAllRemoved:e.onAllRemoved});return o(p(p({},r),{prefixCls:m.value,hashId:d})),c}});function Cn(e){const t=K(null),o=Symbol("notificationHolderKey"),n=d=>{if(!t.value)return;const{open:f,prefixCls:l,hashId:r}=t.value,c=`${l}-notice`,{message:u,description:v,icon:y,type:C,btn:x,class:h}=d,I=mn(d,["message","description","icon","type","btn","class"]);return f(p(p({placement:"topRight"},I),{content:()=>g(fn,{prefixCls:c,icon:typeof y=="function"?y():y,type:C,message:typeof u=="function"?u():u,description:typeof v=="function"?v():v,btn:typeof x=="function"?x():x},null),class:R(C&&`${c}-${C}`,r,h)}))},m={open:n,destroy:d=>{var f,l;d!==void 0?(f=t.value)===null||f===void 0||f.close(d):(l=t.value)===null||l===void 0||l.destroy()}};return["success","info","warning","error"].forEach(d=>{m[d]=f=>n(p(p({},f),{type:d}))}),[m,()=>g(gn,T(T({key:o},e),{},{ref:t}),null)]}function yn(e){return Cn(e)}const D={};let Qe=4.5,Ye="24px",qe="24px",ue="",Je="topRight",Ze=()=>document.body,et=null,de=!1,tt;function $n(e){const{duration:t,placement:o,bottom:n,top:a,getContainer:m,closeIcon:s,prefixCls:d}=e;d!==void 0&&(ue=d),t!==void 0&&(Qe=t),o!==void 0&&(Je=o),n!==void 0&&(qe=typeof n=="number"?`${n}px`:n),a!==void 0&&(Ye=typeof a=="number"?`${a}px`:a),m!==void 0&&(Ze=m),s!==void 0&&(et=s),e.rtl!==void 0&&(de=e.rtl),e.maxCount!==void 0&&(tt=e.maxCount)}function hn(e,t){let{prefixCls:o,placement:n=Je,getContainer:a=Ze,top:m,bottom:s,closeIcon:d=et,appContext:f}=e;const{getPrefixCls:l}=at(),r=l("notification",o||ue),c=`${r}-${n}-${de}`,u=D[c];if(u){Promise.resolve(u).then(y=>{t(y)});return}const v=R(`${r}-${n}`,{[`${r}-rtl`]:de===!0});Z.newInstance({name:"notification",prefixCls:o||ue,useStyle:Ve,class:v,style:Xe(n,m??Ye,s??qe),appContext:f,getContainer:a,closeIcon:y=>{let{prefixCls:C}=y;return g("span",{class:`${C}-close-x`},[z(d,{},g(ge,{class:`${C}-close-icon`},null))])},maxCount:tt,hasTransitionName:!0},y=>{D[c]=y,t(y)})}const xn={success:Tt,info:kt,error:Mt,warning:Ot};function bn(e){const{icon:t,type:o,description:n,message:a,btn:m}=e,s=e.duration===void 0?Qe:e.duration;hn(e,d=>{d.notice({content:f=>{let{prefixCls:l}=f;const r=`${l}-notice`;let c=null;if(t)c=()=>g("span",{class:`${r}-icon`},[z(t)]);else if(o){const u=xn[o];c=()=>g(u,{class:`${r}-icon ${r}-icon-${o}`},null)}return g("div",{class:c?`${r}-with-icon`:""},[c&&c(),g("div",{class:`${r}-message`},[!n&&c?g("span",{class:`${r}-message-single-line-auto-margin`},null):null,z(a)]),g("div",{class:`${r}-description`},[z(n)]),m?g("span",{class:`${r}-btn`},[z(m)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const U={open:bn,close(e){Object.keys(D).forEach(t=>Promise.resolve(D[t]).then(o=>{o.removeNotice(e)}))},config:$n,destroy(){Object.keys(D).forEach(e=>{Promise.resolve(D[e]).then(t=>{t.destroy()}),delete D[e]})}},Pn=["success","info","warning","error"];Pn.forEach(e=>{U[e]=t=>U.open(p(p({},t),{type:e}))});U.warn=U.warning;U.useNotification=yn;const In=`-ant-${Date.now()}-${Math.random()}`;function _n(e,t){const o={},n=(s,d)=>{let f=s.clone();return f=d?.(f)||f,f.toRgbString()},a=(s,d)=>{const f=new re(s),l=$e(f.toRgbString());o[`${d}-color`]=n(f),o[`${d}-color-disabled`]=l[1],o[`${d}-color-hover`]=l[4],o[`${d}-color-active`]=l[6],o[`${d}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),o[`${d}-color-deprecated-bg`]=l[0],o[`${d}-color-deprecated-border`]=l[2]};if(t.primaryColor){a(t.primaryColor,"primary");const s=new re(t.primaryColor),d=$e(s.toRgbString());d.forEach((l,r)=>{o[`primary-${r+1}`]=l}),o["primary-color-deprecated-l-35"]=n(s,l=>l.lighten(35)),o["primary-color-deprecated-l-20"]=n(s,l=>l.lighten(20)),o["primary-color-deprecated-t-20"]=n(s,l=>l.tint(20)),o["primary-color-deprecated-t-50"]=n(s,l=>l.tint(50)),o["primary-color-deprecated-f-12"]=n(s,l=>l.setAlpha(l.getAlpha()*.12));const f=new re(d[0]);o["primary-color-active-deprecated-f-30"]=n(f,l=>l.setAlpha(l.getAlpha()*.3)),o["primary-color-active-deprecated-d-02"]=n(f,l=>l.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
9
+ ${t}-loading ${o}`]:{color:f}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},je=we("Message",e=>{const t=Ne(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[Gt(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),Ut={info:g(oe,null,null),success:g(ne,null,null),error:g(te,null,null),warning:g(ee,null,null),loading:g(pe,null,null)},Wt=L({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:o}=t;return()=>{var n;return g("div",{class:R(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||Ut[e.type],g("span",null,[(n=o.default)===null||n===void 0?void 0:n.call(o)])])}}});var Vt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Xt=8,Yt=3,qt=L({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved","animation","staticGetContainer"],setup(e,t){let{expose:o}=t;var n,a;const{getPrefixCls:m,getPopupContainer:s}=Me("message",e),d=P(()=>m("message",e.prefixCls)),[,f]=je(d),l=()=>{var C;const x=(C=e.top)!==null&&C!==void 0?C:Xt;return{left:"50%",transform:"translateX(-50%)",top:typeof x=="number"?`${x}px`:x}},r=()=>R(f.value,e.rtl?`${d.value}-rtl`:""),c=()=>{var C;return At({prefixCls:d.value,animation:(C=e.animation)!==null&&C!==void 0?C:"move-up",transitionName:e.transitionName})},u=g("span",{class:`${d.value}-close-x`},[g(ge,{class:`${d.value}-close-icon`},null)]),[v,y]=Le({getStyles:l,prefixCls:d.value,getClassName:r,motion:c,closable:!1,closeIcon:u,duration:(n=e.duration)!==null&&n!==void 0?n:Yt,getContainer:(a=e.staticGetContainer)!==null&&a!==void 0?a:s.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return o(p(p({},v),{prefixCls:d,hashId:f})),y}});let _e=0;function Qt(e){const t=K(null),o=Symbol("messageHolderKey"),n=f=>{var l;(l=t.value)===null||l===void 0||l.close(f)},a=f=>{if(!t.value){const _=()=>{};return _.then=()=>{},_}const{open:l,prefixCls:r,hashId:c}=t.value,u=`${r}-notice`,{content:v,icon:y,type:C,key:x,class:h,onClose:I}=f,N=Vt(f,["content","icon","type","key","class","onClose"]);let b=x;return b==null&&(_e+=1,b=`antd-message-${_e}`),mt(_=>(l(p(p({},N),{key:b,content:()=>g(Wt,{prefixCls:r,type:C,icon:typeof y=="function"?y():y},{default:()=>[typeof v=="function"?v():v]}),placement:"top",class:R(C&&`${u}-${C}`,c,h),onClose:()=>{I?.(),_()}})),()=>{n(b)}))},s={open:a,destroy:f=>{var l;f!==void 0?n(f):(l=t.value)===null||l===void 0||l.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const l=(r,c,u)=>{let v;r&&typeof r=="object"&&"content"in r?v=r:v={content:r};let y,C;typeof c=="function"?C=c:(y=c,C=u);const x=p(p({onClose:C,duration:y},v),{type:f});return a(x)};s[f]=l}),[s,()=>g(qt,T(T({key:o},e),{},{ref:t}),null)]}function Jt(e){return Qt(e)}let Fe=3,De,A,Zt=1,He="",ze="move-up",Ke=!1,Be=()=>document.body,Ge,Ue=!1;function en(){return Zt++}function tn(e){e.top!==void 0&&(De=e.top,A=null),e.duration!==void 0&&(Fe=e.duration),e.prefixCls!==void 0&&(He=e.prefixCls),e.getContainer!==void 0&&(Be=e.getContainer,A=null),e.transitionName!==void 0&&(ze=e.transitionName,A=null,Ke=!0),e.maxCount!==void 0&&(Ge=e.maxCount,A=null),e.rtl!==void 0&&(Ue=e.rtl)}function nn(e,t){if(A){t(A);return}Z.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||He,rootPrefixCls:e.rootPrefixCls,transitionName:ze,hasTransitionName:Ke,style:{top:De},getContainer:Be||e.getPopupContainer,maxCount:Ge,name:"message",useStyle:je},o=>{if(A){t(A);return}A=o,t(o)})}const We={info:oe,success:ne,error:te,warning:ee,loading:pe},on=Object.keys(We);function an(e){const t=e.duration!==void 0?e.duration:Fe,o=e.key||en(),n=new Promise(m=>{const s=()=>(typeof e.onClose=="function"&&e.onClose(),m(!0));nn(e,d=>{d.notice({key:o,duration:t,style:e.style||{},class:e.class,content:f=>{let{prefixCls:l}=f;const r=We[e.type],c=r?g(r,null,null):"",u=R(`${l}-custom-content`,{[`${l}-${e.type}`]:e.type,[`${l}-rtl`]:Ue===!0});return g("div",{class:u},[typeof e.icon=="function"?e.icon():e.icon||c,g("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:s,onClick:e.onClick})})}),a=()=>{A&&A.removeNotice(o)};return a.then=(m,s)=>n.then(m,s),a.promise=n,a}function ln(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const X={open:an,config:tn,destroy(e){if(A)if(e){const{removeNotice:t}=A;t(e)}else{const{destroy:t}=A;t(),A=null}}};function rn(e,t){e[t]=(o,n,a)=>ln(o)?e.open(p(p({},o),{type:t})):(typeof n=="function"&&(a=n,n=void 0),e.open({content:o,duration:n,type:t,onClose:a}))}on.forEach(e=>rn(X,e));X.warn=X.warning;X.useMessage=Jt;const sn=e=>{const{componentCls:t,width:o,notificationMarginEdge:n}=e,a=new H("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),m=new H("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),s=new H("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:o},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:m}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:n,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}},cn=e=>{const{iconCls:t,componentCls:o,boxShadowSecondary:n,fontSizeLG:a,notificationMarginBottom:m,borderRadiusLG:s,colorSuccess:d,colorInfo:f,colorWarning:l,colorError:r,colorTextHeading:c,notificationBg:u,notificationPadding:v,notificationMarginEdge:y,motionDurationMid:C,motionEaseInOut:x,fontSize:h,lineHeight:I,width:N,notificationIconSize:b}=e,_=`${o}-notice`,w=new H("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:N},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),S=new H("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:m,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[o]:p(p(p(p({},Oe(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:y,[`${o}-hook-holder`]:{position:"relative"},[`&${o}-top, &${o}-bottom`]:{[`${o}-notice`]:{marginInline:"auto auto"}},[`&${o}-topLeft, &${o}-bottomLeft`]:{[`${o}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${o}-fade-enter, ${o}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:x,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${o}-fade-leave`]:{animationTimingFunction:x,animationFillMode:"both",animationDuration:C,animationPlayState:"paused"},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:w,animationPlayState:"running"},[`${o}-fade-leave${o}-fade-leave-active`]:{animationName:S,animationPlayState:"running"}}),sn(e)),{"&-rtl":{direction:"rtl",[`${o}-notice-btn`]:{float:"left"}}})},{[_]:{position:"relative",width:N,maxWidth:`calc(100vw - ${y*2}px)`,marginBottom:m,marginInlineStart:"auto",padding:v,overflow:"hidden",lineHeight:I,wordWrap:"break-word",background:u,borderRadius:s,boxShadow:n,[`${o}-close-icon`]:{fontSize:h,cursor:"pointer"},[`${_}-message`]:{marginBottom:e.marginXS,color:c,fontSize:a,lineHeight:e.lineHeightLG},[`${_}-description`]:{fontSize:h},[`&${_}-closable ${_}-message`]:{paddingInlineEnd:e.paddingLG},[`${_}-with-icon ${_}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+b,fontSize:a},[`${_}-with-icon ${_}-description`]:{marginInlineStart:e.marginSM+b,fontSize:h},[`${_}-icon`]:{position:"absolute",fontSize:b,lineHeight:0,[`&-success${t}`]:{color:d},[`&-info${t}`]:{color:f},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:r}},[`${_}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${_}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${_}-pure-panel`]:{margin:0}}]},Ve=we("Notification",e=>{const t=e.paddingMD,o=e.paddingLG,n=Ne(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[cn(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function un(e,t){return t||g("span",{class:`${e}-close-x`},[g(ge,{class:`${e}-close-icon`},null)])}g(oe,null,null),g(ne,null,null),g(te,null,null),g(ee,null,null),g(pe,null,null);const dn={success:ne,info:oe,error:te,warning:ee};function fn(e){let{prefixCls:t,icon:o,type:n,message:a,description:m,btn:s}=e,d=null;if(o)d=g("span",{class:`${t}-icon`},[z(o)]);else if(n){const f=dn[n];d=g(f,{class:`${t}-icon ${t}-icon-${n}`},null)}return g("div",{class:R({[`${t}-with-icon`]:d}),role:"alert"},[d,g("div",{class:`${t}-message`},[a]),g("div",{class:`${t}-description`},[m]),s&&g("div",{class:`${t}-btn`},[s])])}function Xe(e,t,o){let n;switch(t=typeof t=="number"?`${t}px`:t,o=typeof o=="number"?`${o}px`:o,e){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":n={left:0,top:t,bottom:"auto"};break;case"topRight":n={right:0,top:t,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:o};break;case"bottomLeft":n={left:0,top:"auto",bottom:o};break;default:n={right:0,top:"auto",bottom:o};break}return n}function vn(e){return{name:`${e}-fade`}}var mn=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Se=24,pn=4.5,gn=L({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:o}=t;const{getPrefixCls:n,getPopupContainer:a}=Me("notification",e),m=P(()=>e.prefixCls||n("notification")),s=u=>{var v,y;return Xe(u,(v=e.top)!==null&&v!==void 0?v:Se,(y=e.bottom)!==null&&y!==void 0?y:Se)},[,d]=Ve(m),f=()=>R(d.value,{[`${m.value}-rtl`]:e.rtl}),l=()=>vn(m.value),[r,c]=Le({prefixCls:m.value,getStyles:s,getClassName:f,motion:l,closable:!0,closeIcon:un(m.value),duration:pn,getContainer:()=>{var u,v;return((u=e.getPopupContainer)===null||u===void 0?void 0:u.call(e))||((v=a.value)===null||v===void 0?void 0:v.call(a))||document.body},maxCount:e.maxCount,hashId:d.value,onAllRemoved:e.onAllRemoved});return o(p(p({},r),{prefixCls:m.value,hashId:d})),c}});function Cn(e){const t=K(null),o=Symbol("notificationHolderKey"),n=d=>{if(!t.value)return;const{open:f,prefixCls:l,hashId:r}=t.value,c=`${l}-notice`,{message:u,description:v,icon:y,type:C,btn:x,class:h}=d,I=mn(d,["message","description","icon","type","btn","class"]);return f(p(p({placement:"topRight"},I),{content:()=>g(fn,{prefixCls:c,icon:typeof y=="function"?y():y,type:C,message:typeof u=="function"?u():u,description:typeof v=="function"?v():v,btn:typeof x=="function"?x():x},null),class:R(C&&`${c}-${C}`,r,h)}))},m={open:n,destroy:d=>{var f,l;d!==void 0?(f=t.value)===null||f===void 0||f.close(d):(l=t.value)===null||l===void 0||l.destroy()}};return["success","info","warning","error"].forEach(d=>{m[d]=f=>n(p(p({},f),{type:d}))}),[m,()=>g(gn,T(T({key:o},e),{},{ref:t}),null)]}function yn(e){return Cn(e)}const D={};let Ye=4.5,qe="24px",Qe="24px",ue="",Je="topRight",Ze=()=>document.body,et=null,de=!1,tt;function $n(e){const{duration:t,placement:o,bottom:n,top:a,getContainer:m,closeIcon:s,prefixCls:d}=e;d!==void 0&&(ue=d),t!==void 0&&(Ye=t),o!==void 0&&(Je=o),n!==void 0&&(Qe=typeof n=="number"?`${n}px`:n),a!==void 0&&(qe=typeof a=="number"?`${a}px`:a),m!==void 0&&(Ze=m),s!==void 0&&(et=s),e.rtl!==void 0&&(de=e.rtl),e.maxCount!==void 0&&(tt=e.maxCount)}function hn(e,t){let{prefixCls:o,placement:n=Je,getContainer:a=Ze,top:m,bottom:s,closeIcon:d=et,appContext:f}=e;const{getPrefixCls:l}=at(),r=l("notification",o||ue),c=`${r}-${n}-${de}`,u=D[c];if(u){Promise.resolve(u).then(y=>{t(y)});return}const v=R(`${r}-${n}`,{[`${r}-rtl`]:de===!0});Z.newInstance({name:"notification",prefixCls:o||ue,useStyle:Ve,class:v,style:Xe(n,m??qe,s??Qe),appContext:f,getContainer:a,closeIcon:y=>{let{prefixCls:C}=y;return g("span",{class:`${C}-close-x`},[z(d,{},g(ge,{class:`${C}-close-icon`},null))])},maxCount:tt,hasTransitionName:!0},y=>{D[c]=y,t(y)})}const xn={success:Tt,info:kt,error:Mt,warning:Ot};function bn(e){const{icon:t,type:o,description:n,message:a,btn:m}=e,s=e.duration===void 0?Ye:e.duration;hn(e,d=>{d.notice({content:f=>{let{prefixCls:l}=f;const r=`${l}-notice`;let c=null;if(t)c=()=>g("span",{class:`${r}-icon`},[z(t)]);else if(o){const u=xn[o];c=()=>g(u,{class:`${r}-icon ${r}-icon-${o}`},null)}return g("div",{class:c?`${r}-with-icon`:""},[c&&c(),g("div",{class:`${r}-message`},[!n&&c?g("span",{class:`${r}-message-single-line-auto-margin`},null):null,z(a)]),g("div",{class:`${r}-description`},[z(n)]),m?g("span",{class:`${r}-btn`},[z(m)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const U={open:bn,close(e){Object.keys(D).forEach(t=>Promise.resolve(D[t]).then(o=>{o.removeNotice(e)}))},config:$n,destroy(){Object.keys(D).forEach(e=>{Promise.resolve(D[e]).then(t=>{t.destroy()}),delete D[e]})}},Pn=["success","info","warning","error"];Pn.forEach(e=>{U[e]=t=>U.open(p(p({},t),{type:e}))});U.warn=U.warning;U.useNotification=yn;const In=`-ant-${Date.now()}-${Math.random()}`;function _n(e,t){const o={},n=(s,d)=>{let f=s.clone();return f=d?.(f)||f,f.toRgbString()},a=(s,d)=>{const f=new re(s),l=$e(f.toRgbString());o[`${d}-color`]=n(f),o[`${d}-color-disabled`]=l[1],o[`${d}-color-hover`]=l[4],o[`${d}-color-active`]=l[6],o[`${d}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),o[`${d}-color-deprecated-bg`]=l[0],o[`${d}-color-deprecated-border`]=l[2]};if(t.primaryColor){a(t.primaryColor,"primary");const s=new re(t.primaryColor),d=$e(s.toRgbString());d.forEach((l,r)=>{o[`primary-${r+1}`]=l}),o["primary-color-deprecated-l-35"]=n(s,l=>l.lighten(35)),o["primary-color-deprecated-l-20"]=n(s,l=>l.lighten(20)),o["primary-color-deprecated-t-20"]=n(s,l=>l.tint(20)),o["primary-color-deprecated-t-50"]=n(s,l=>l.tint(50)),o["primary-color-deprecated-f-12"]=n(s,l=>l.setAlpha(l.getAlpha()*.12));const f=new re(d[0]);o["primary-color-active-deprecated-f-30"]=n(f,l=>l.setAlpha(l.getAlpha()*.3)),o["primary-color-active-deprecated-d-02"]=n(f,l=>l.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
10
10
  :root {
11
11
  ${Object.keys(o).map(s=>`--${e}-${s}: ${o[s]};`).join(`
12
12
  `)}
13
13
  }
14
- `.trim()}function Sn(e,t){const o=_n(e,t);rt()&&st(o,`${In}-dynamic-theme`)}const wn=e=>{const[t,o]=ct();return pt(P(()=>({theme:t.value,token:o.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:p(p({},gt()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function Nn(e,t){const o=P(()=>e?.value||{}),n=P(()=>o.value.inherit===!1||!t?.value?ut:t.value);return P(()=>{if(!e?.value)return t?.value;const m=p({},n.value.components);return Object.keys(e.value.components||{}).forEach(s=>{m[s]=p(p({},m[s]),e.value.components[s])}),p(p(p({},n.value),o.value),{token:p(p({},n.value.token),o.value.token),components:m})})}var On=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const nt="ant";function B(){return k.prefixCls||nt}function ot(){return k.iconPrefixCls||ve}const Ce=V({}),k=V({}),Mn=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];me(()=>{p(k,Ce),k.prefixCls=B(),k.iconPrefixCls=ot(),k.getPrefixCls=(e,t)=>t||(e?`${k.prefixCls}-${e}`:k.prefixCls),k.getRootPrefixCls=()=>k.prefixCls?k.prefixCls:B()});let se;const kn=e=>{se&&se(),se=me(()=>{p(Ce,V(e)),p(k,V(e))}),e.theme&&Sn(B(),e.theme)},at=()=>({getPrefixCls:(e,t)=>t||(e?`${B()}-${e}`:B()),getIconPrefixCls:ot,getRootPrefixCls:()=>k.prefixCls?k.prefixCls:B()}),G=L({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:xt(),setup(e,t){let{slots:o}=t;const n=Ct(),a=(i,$)=>{const{prefixCls:M="ant"}=e;if($)return $;const F=M||n.getPrefixCls("");return i?`${F}-${i}`:F},m=P(()=>e.iconPrefixCls||n.iconPrefixCls.value||ve),s=P(()=>m.value!==n.iconPrefixCls.value),d=P(()=>{var i;return e.csp||((i=n.csp)===null||i===void 0?void 0:i.value)}),f=wn(m),l=Nn(P(()=>e.theme),P(()=>{var i;return(i=n.theme)===null||i===void 0?void 0:i.value})),r=i=>(e.renderEmpty||o.renderEmpty||n.renderEmpty||It)(i),c=P(()=>{var i,$;return(i=e.autoInsertSpaceInButton)!==null&&i!==void 0?i:($=n.autoInsertSpaceInButton)===null||$===void 0?void 0:$.value}),u=P(()=>{var i;return e.locale||((i=n.locale)===null||i===void 0?void 0:i.value)});Q(u,()=>{Ce.locale=u.value},{immediate:!0});const v=P(()=>{var i;return e.direction||((i=n.direction)===null||i===void 0?void 0:i.value)}),y=P(()=>{var i,$;return(i=e.space)!==null&&i!==void 0?i:($=n.space)===null||$===void 0?void 0:$.value}),C=P(()=>{var i,$;return(i=e.virtual)!==null&&i!==void 0?i:($=n.virtual)===null||$===void 0?void 0:$.value}),x=P(()=>{var i,$;return(i=e.dropdownMatchSelectWidth)!==null&&i!==void 0?i:($=n.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),h=P(()=>{var i;return e.getTargetContainer!==void 0?e.getTargetContainer:(i=n.getTargetContainer)===null||i===void 0?void 0:i.value}),I=P(()=>{var i;return e.getPopupContainer!==void 0?e.getPopupContainer:(i=n.getPopupContainer)===null||i===void 0?void 0:i.value}),N=P(()=>{var i;return e.pageHeader!==void 0?e.pageHeader:(i=n.pageHeader)===null||i===void 0?void 0:i.value}),b=P(()=>{var i;return e.input!==void 0?e.input:(i=n.input)===null||i===void 0?void 0:i.value}),_=P(()=>{var i;return e.pagination!==void 0?e.pagination:(i=n.pagination)===null||i===void 0?void 0:i.value}),w=P(()=>{var i;return e.form!==void 0?e.form:(i=n.form)===null||i===void 0?void 0:i.value}),S=P(()=>{var i;return e.select!==void 0?e.select:(i=n.select)===null||i===void 0?void 0:i.value}),O=P(()=>e.componentSize),E=P(()=>e.componentDisabled),Y=P(()=>{var i,$;return(i=e.wave)!==null&&i!==void 0?i:($=n.wave)===null||$===void 0?void 0:$.value}),ae={csp:d,autoInsertSpaceInButton:c,locale:u,direction:v,space:y,virtual:C,dropdownMatchSelectWidth:x,getPrefixCls:a,iconPrefixCls:m,theme:P(()=>{var i,$;return(i=l.value)!==null&&i!==void 0?i:($=n.theme)===null||$===void 0?void 0:$.value}),renderEmpty:r,getTargetContainer:h,getPopupContainer:I,pageHeader:N,input:b,pagination:_,form:w,select:S,componentSize:O,componentDisabled:E,transformCellText:P(()=>e.transformCellText),wave:Y},j=P(()=>{const i=l.value||{},{algorithm:$,token:M}=i,F=On(i,["algorithm","token"]),le=$&&(!Array.isArray($)||$.length>0)?ft($):void 0;return p(p({},F),{theme:le,token:p(p({},vt),M)})}),ie=P(()=>{var i,$;let M={};return u.value&&(M=((i=u.value.Form)===null||i===void 0?void 0:i.defaultValidateMessages)||(($=fe.Form)===null||$===void 0?void 0:$.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(M=p(p({},M),e.form.validateMessages)),M});bt(ae),Pt({validateMessages:ie}),yt(O),$t(E);const W=i=>{var $,M;let F=s.value?f(($=o.default)===null||$===void 0?void 0:$.call(o)):(M=o.default)===null||M===void 0?void 0:M.call(o);if(e.theme){const le=(function(){return F})();F=g(dt,{value:j.value},{default:()=>[le]})}return g(Lt,{locale:u.value||i,ANT_MARK__:ce},{default:()=>[F]})};return me(()=>{v.value&&(X.config({rtl:v.value==="rtl"}),U.config({rtl:v.value==="rtl"}))}),()=>g(ht,{children:(i,$,M)=>W(M)},null)}});G.config=kn;G.install=function(e){e.component(G.name,G)};const Hn=Object.freeze(Object.defineProperty({__proto__:null,configConsumerProps:Mn,default:G,defaultIconPrefixCls:ve,defaultPrefixCls:nt,globalConfig:at,globalConfigForApi:k},Symbol.toStringTag,{value:"Module"}));export{G as C,X as a,Dn as b,k as g,Hn as i};
14
+ `.trim()}function Sn(e,t){const o=_n(e,t);rt()&&st(o,`${In}-dynamic-theme`)}const wn=e=>{const[t,o]=ct();return pt(P(()=>({theme:t.value,token:o.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:p(p({},gt()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function Nn(e,t){const o=P(()=>e?.value||{}),n=P(()=>o.value.inherit===!1||!t?.value?ut:t.value);return P(()=>{if(!e?.value)return t?.value;const m=p({},n.value.components);return Object.keys(e.value.components||{}).forEach(s=>{m[s]=p(p({},m[s]),e.value.components[s])}),p(p(p({},n.value),o.value),{token:p(p({},n.value.token),o.value.token),components:m})})}var On=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const nt="ant";function B(){return k.prefixCls||nt}function ot(){return k.iconPrefixCls||ve}const Ce=V({}),k=V({}),Mn=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];me(()=>{p(k,Ce),k.prefixCls=B(),k.iconPrefixCls=ot(),k.getPrefixCls=(e,t)=>t||(e?`${k.prefixCls}-${e}`:k.prefixCls),k.getRootPrefixCls=()=>k.prefixCls?k.prefixCls:B()});let se;const kn=e=>{se&&se(),se=me(()=>{p(Ce,V(e)),p(k,V(e))}),e.theme&&Sn(B(),e.theme)},at=()=>({getPrefixCls:(e,t)=>t||(e?`${B()}-${e}`:B()),getIconPrefixCls:ot,getRootPrefixCls:()=>k.prefixCls?k.prefixCls:B()}),G=L({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:xt(),setup(e,t){let{slots:o}=t;const n=Ct(),a=(i,$)=>{const{prefixCls:M="ant"}=e;if($)return $;const F=M||n.getPrefixCls("");return i?`${F}-${i}`:F},m=P(()=>e.iconPrefixCls||n.iconPrefixCls.value||ve),s=P(()=>m.value!==n.iconPrefixCls.value),d=P(()=>{var i;return e.csp||((i=n.csp)===null||i===void 0?void 0:i.value)}),f=wn(m),l=Nn(P(()=>e.theme),P(()=>{var i;return(i=n.theme)===null||i===void 0?void 0:i.value})),r=i=>(e.renderEmpty||o.renderEmpty||n.renderEmpty||It)(i),c=P(()=>{var i,$;return(i=e.autoInsertSpaceInButton)!==null&&i!==void 0?i:($=n.autoInsertSpaceInButton)===null||$===void 0?void 0:$.value}),u=P(()=>{var i;return e.locale||((i=n.locale)===null||i===void 0?void 0:i.value)});Y(u,()=>{Ce.locale=u.value},{immediate:!0});const v=P(()=>{var i;return e.direction||((i=n.direction)===null||i===void 0?void 0:i.value)}),y=P(()=>{var i,$;return(i=e.space)!==null&&i!==void 0?i:($=n.space)===null||$===void 0?void 0:$.value}),C=P(()=>{var i,$;return(i=e.virtual)!==null&&i!==void 0?i:($=n.virtual)===null||$===void 0?void 0:$.value}),x=P(()=>{var i,$;return(i=e.dropdownMatchSelectWidth)!==null&&i!==void 0?i:($=n.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),h=P(()=>{var i;return e.getTargetContainer!==void 0?e.getTargetContainer:(i=n.getTargetContainer)===null||i===void 0?void 0:i.value}),I=P(()=>{var i;return e.getPopupContainer!==void 0?e.getPopupContainer:(i=n.getPopupContainer)===null||i===void 0?void 0:i.value}),N=P(()=>{var i;return e.pageHeader!==void 0?e.pageHeader:(i=n.pageHeader)===null||i===void 0?void 0:i.value}),b=P(()=>{var i;return e.input!==void 0?e.input:(i=n.input)===null||i===void 0?void 0:i.value}),_=P(()=>{var i;return e.pagination!==void 0?e.pagination:(i=n.pagination)===null||i===void 0?void 0:i.value}),w=P(()=>{var i;return e.form!==void 0?e.form:(i=n.form)===null||i===void 0?void 0:i.value}),S=P(()=>{var i;return e.select!==void 0?e.select:(i=n.select)===null||i===void 0?void 0:i.value}),O=P(()=>e.componentSize),E=P(()=>e.componentDisabled),q=P(()=>{var i,$;return(i=e.wave)!==null&&i!==void 0?i:($=n.wave)===null||$===void 0?void 0:$.value}),ae={csp:d,autoInsertSpaceInButton:c,locale:u,direction:v,space:y,virtual:C,dropdownMatchSelectWidth:x,getPrefixCls:a,iconPrefixCls:m,theme:P(()=>{var i,$;return(i=l.value)!==null&&i!==void 0?i:($=n.theme)===null||$===void 0?void 0:$.value}),renderEmpty:r,getTargetContainer:h,getPopupContainer:I,pageHeader:N,input:b,pagination:_,form:w,select:S,componentSize:O,componentDisabled:E,transformCellText:P(()=>e.transformCellText),wave:q},j=P(()=>{const i=l.value||{},{algorithm:$,token:M}=i,F=On(i,["algorithm","token"]),le=$&&(!Array.isArray($)||$.length>0)?ft($):void 0;return p(p({},F),{theme:le,token:p(p({},vt),M)})}),ie=P(()=>{var i,$;let M={};return u.value&&(M=((i=u.value.Form)===null||i===void 0?void 0:i.defaultValidateMessages)||(($=fe.Form)===null||$===void 0?void 0:$.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(M=p(p({},M),e.form.validateMessages)),M});bt(ae),Pt({validateMessages:ie}),yt(O),$t(E);const W=i=>{var $,M;let F=s.value?f(($=o.default)===null||$===void 0?void 0:$.call(o)):(M=o.default)===null||M===void 0?void 0:M.call(o);if(e.theme){const le=(function(){return F})();F=g(dt,{value:j.value},{default:()=>[le]})}return g(Lt,{locale:u.value||i,ANT_MARK__:ce},{default:()=>[F]})};return me(()=>{v.value&&(X.config({rtl:v.value==="rtl"}),U.config({rtl:v.value==="rtl"}))}),()=>g(ht,{children:(i,$,M)=>W(M)},null)}});G.config=kn;G.install=function(e){e.component(G.name,G)};const Hn=Object.freeze(Object.defineProperty({__proto__:null,configConsumerProps:Mn,default:G,defaultIconPrefixCls:ve,defaultPrefixCls:nt,globalConfig:at,globalConfigForApi:k},Symbol.toStringTag,{value:"Module"}));export{G as C,X as a,Dn as b,k as g,Hn as i};
@@ -0,0 +1,36 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AppLayout-DGosvMBr.js","./vendor-BVetwVfk.js","./ws-Bv7YH0VB.js","./_plugin-vue_export-helper-DlAUqK2U.js","./icons-E3MGhN6s.js","./AppLayout-DCrLKryi.css","./Dashboard-BXSj5-OS.js","./chat-CVn-r3oV.js","./Dashboard-Cviwdc26.css","./Chat-Ga0oUawB.js","./markdown-vYH_ziAO.js","./markdown-xjUYbPSW.js","./markdown-Dfs9RUU9.css","./Chat-DmX5bWvL.css","./Cowork-Q37C8zUh.js","./Cowork-DsOst4XK.css","./Services-VasZTmqN.js","./Services-C8Qs6KXv.css","./Logs-BMTqVPem.js","./Logs-Gf_Mv9Nx.css","./Skills-BkTmE8SJ.js","./parsers-DftYMnlk.js","./Skills-BdjRyorN.css","./Providers-C2eO_XrC.js","./index-DLcTmwiN.js","./useConfigInject-DIKG5Y4I.js","./transition-atE2sWdv.js","./Keyframes-C7fCrnlS.js","./Portal-CHsntPCQ.js","./index-U4Zd5IK6.js","./Providers-BEakqcO5.css","./McpTools-IN5l2BCN.js","./McpTools-CyhSLDwf.css","./ProjectSettings-BiKBzbRF.js","./ProjectSettings-pLSae-wy.css","./Notes-DAP1s6Bg.js","./Notes-BG69sJKi.css","./Memory-DEJ96vkh.js","./Memory-DRghrGJr.css","./KnowledgeGraph-Bz8-Uh6r.js","./KnowledgeGraph-U8ps3aGJ.css","./Cron-Kq3eJC0L.js","./WorkflowEditor-Bw6cIw_h.js","./WorkflowEditor-D5bX6woe.css","./Tasks-DI3oKTDz.js","./Tasks-BJjN_YEm.css","./Security-D2BQD7tk.js","./Security-Dwxw7rfP.css","./DID-BD9PovRf.js","./DID-BDvsVa08.css","./Permissions-B7UejC3D.js","./Permissions-C9WlkGl-.css","./P2P-H7hLODDc.js","./P2P-OEzOeMZX.css","./Git-DW9KmRrN.js","./Git-DGcuBXST.css","./Projects-asWgm0Iz.js","./Projects-DxKelI5h.css","./Wallet-bO-fXxBx.js","./Wallet-DnIumafl.css","./Organization-CutzdziK.js","./Organization-DdOOM4ic.css","./Analytics-BrBdBLPi.js","./Analytics-BFI7jbwM.css","./Templates-C9Z_82IH.js","./Templates-DOY_oZnm.css","./Backup-CKHLFZZS.js","./Backup-fZqtfC1m.css","./RssFeed-B4jpCYCI.js","./RssFeed-BlFC20eg.css","./WebAuthn-uNwYx1Yn.js","./WebAuthn-CNPl2VQR.css","./Community-BG7vSQg7.js","./community-parser-CO25nZFt.js","./Community-DqDfLQui.css","./Governance--0gVd3YR.js","./Governance-BfmfQBGB.css","./Audit-DLYnWfX_.js","./Audit-L4_ApS01.css","./Reputation-Dq21I6NZ.js","./index-Q7v4BZgp.js","./KeyCode-D63Tfrq7.js","./omit-COjrlUIA.js","./pickAttrs-1WCywewt.js","./initDefaultProps-C1zn_AKT.js","./motion-BflWvLDD.js","./raf-Deuc0E8-.js","./index-B4FsQ2CI.js","./index-CwzHos3n.js","./isVisible-C7tPsqfj.js","./useState-DoAhV80c.js","./devWarning-CNIS3FrJ.js","./warning-Pq00owYb.js","./compact-item-BI2RK_Ub.js","./createContext-gy9ZhS49.js","./Compact-Bl_FTVcP.js","./_getTag-CWA3v-Ds.js","./styleChecker-C2ONfKU2.js","./zoom-zuDCIwwE.js","./ActionButton-BiXQ5MCX.js","./vnode-Cryb4eNl.js","./Reputation-y-46ThW8.css","./Recommend-CIZjeClx.js","./Recommend-DgNSCgRX.css","./Sla-DTbGerEL.js","./Sla-C1WYuQKf.css","./Marketplace-CTZqO_RV.js","./Marketplace-B-4uYu_j.css","./Crosschain-CvI5bEH8.js","./Crosschain-DThGgQk8.css","./AIOps-Dmur24hV.js","./AIOps-Bfzpnnlg.css","./Compliance-CL6jUiTf.js","./Compliance-CKxw6vIq.css","./Privacy-D98lbFiD.js","./Privacy-B_cAicd1.css","./Inference-CSuaikJO.js","./Inference-EFFc7eNZ.css","./NLProgramming-BMftRM4D.js","./NLProgramming-jURs-f-a.css","./Tenant-kLu9x3Ty.js","./Tenant-BJr-h-_0.css","./Pipeline-DhmIDzq5.js","./Pipeline-DyqCLFVr.css","./VideoEditing-nIRTUjK_.js","./VideoEditing-BA1N-5kq.css","./index-IXyQceyp.js","./index-t5BUMwJ1.js","./colors-WgDc41S9.js","./isNumeric-DjvBa-1E.js","./index-BVg8Wf40.js","./index-t8Iy1rHD.js","./index-Dxy2NQqS.js","./Trigger-BIXZjkDZ.js","./ResizeObserver.es-D6qJbdzf.js","./_arrayIncludes-B8uzE354.js","./injectionKey-BXVc-oGP.js","./Overflow-CFLJpWAb.js","./index-BeI4fOXN.js","./index-Cwuee4M2.js","./placementArrow-y75Pew0G.js","./firstNotUndefined-CLFzEa0p.js","./collapseMotion-D3P4mRvK.js","./slide-B1oHu6JW.js","./OverrideContext-DEW2m7K6.js","./Dropdown-BcEYFA4h.js","./useRefs-DRyTVik7.js","./hasIn-BeuofWqK.js","./isSymbol-CsP9Ob42.js","./isMobile--2fOlCHx.js","./useMergedState-DbHXwBgv.js","./isPlainObject-DSTnI585.js","./Skeleton-1joyz4wO.js","./index-CndKqpaA.js","./Checkbox-DAqCmQtS.js","./FormItemContext-C_8M0L9X.js","./index-CsESExuO.js","./Col-BxNojt4A.js","./index-pGLDMYoo.js","./index-BqUqxSm3.js","./index-DhwwIcoT.js","./responsiveObserve-BDt6Mlnb.js","./index-vwTt5gIV.js","./index-BIlQFerH.js","./move-TfXJb-sS.js","./index-B_Jn0gUS.js","./Row-BBRGnkyd.js","./useFlexGapSupport-C0OopxrG.js","./debounce-Q0BOJsYd.js","./index-CapUO117.js","./statusUtils-CO9QQaYQ.js","./BaseInput-B7lryLAY.js","./index-ChQfosO1.js","./index-bpC7BiFY.js","./index-D_bHyAnC.js","./index-BSrnzqkD.js","./index-CCe5JJYI.js","./index-CFjz2AoU.js","./index-B1KhJnQM.js","./index-CBfv-ndK.js","./index-Ct1YvTCX.js","./index-BhSfMAk_.js","./index-CK4CCFyw.js","./index--V8HSAh9.js","./index-CUV4Xqwc.js","./index-BhwkejpN.js","./index-TpCAHpWv.js","./index-CBI2Y4Kj.js","./index-D3LHutKn.js"])))=>i.map(i=>d[i]);
2
+ import{b as Ie,e as Le,i as le,s as R,g as Ce,d as se,w as U,u as w,p as ue,f as Re,o as De,j as E,r as me,t as Oe,k as Be,l as we,m as Ve,q as J,v as Me,x as ke,c as He,y as ze,z as Xe,A as Fe}from"./vendor-BVetwVfk.js";import{T as A,g as M}from"./icons-E3MGhN6s.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();const Ne="modulepreload",$e=function(e,t){return new URL(e,t).href},Z={},i=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let d=function(_){return Promise.all(_.map(m=>Promise.resolve(m).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const c=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),p=s?.nonce||s?.getAttribute("nonce");o=d(r.map(_=>{if(_=$e(_,n),_ in Z)return;Z[_]=!0;const m=_.endsWith(".css"),f=m?'[rel="stylesheet"]':"";if(n)for(let h=c.length-1;h>=0;h--){const v=c[h];if(v.href===_&&(!m||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${f}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":Ne,m||(g.as="script"),g.crossOrigin="",g.href=_,p&&g.setAttribute("nonce",p),document.head.appendChild(g),m)return new Promise((h,v)=>{g.addEventListener("load",h),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${_}`)))})}))}function a(c){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=c,window.dispatchEvent(s),!s.defaultPrevented)throw c}return o.then(c=>{for(const s of c||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})},Ge=[{path:"/",component:()=>i(()=>import("./AppLayout-DGosvMBr.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),children:[{path:"",redirect:"/dashboard"},{path:"dashboard",name:"Dashboard",component:()=>i(()=>import("./Dashboard-BXSj5-OS.js"),__vite__mapDeps([6,1,2,7,3,4,8]),import.meta.url)},{path:"chat",name:"Chat",component:()=>i(()=>import("./Chat-Ga0oUawB.js"),__vite__mapDeps([9,1,7,2,3,4,10,11,12,13]),import.meta.url)},{path:"cowork",name:"Cowork",component:()=>i(()=>import("./Cowork-Q37C8zUh.js"),__vite__mapDeps([14,1,2,7,10,11,12,3,4,15]),import.meta.url)},{path:"services",name:"Services",component:()=>i(()=>import("./Services-VasZTmqN.js"),__vite__mapDeps([16,2,1,3,4,17]),import.meta.url)},{path:"logs",name:"Logs",component:()=>i(()=>import("./Logs-BMTqVPem.js"),__vite__mapDeps([18,2,1,3,4,19]),import.meta.url)},{path:"skills",name:"Skills",component:()=>i(()=>import("./Skills-BkTmE8SJ.js"),__vite__mapDeps([20,1,2,21,7,3,4,22]),import.meta.url)},{path:"providers",name:"Providers",component:()=>i(()=>import("./Providers-C2eO_XrC.js"),__vite__mapDeps([23,1,2,21,3,24,25,4,26,27,28,29,30]),import.meta.url)},{path:"mcp",name:"McpTools",component:()=>i(()=>import("./McpTools-IN5l2BCN.js"),__vite__mapDeps([31,2,1,3,4,32]),import.meta.url)},{path:"project-settings",name:"ProjectSettings",component:()=>i(()=>import("./ProjectSettings-BiKBzbRF.js"),__vite__mapDeps([33,2,1,3,24,25,4,26,27,28,29,34]),import.meta.url)},{path:"notes",name:"Notes",component:()=>i(()=>import("./Notes-DAP1s6Bg.js"),__vite__mapDeps([35,2,1,3,4,24,25,26,27,28,29,36]),import.meta.url)},{path:"memory",name:"Memory",component:()=>i(()=>import("./Memory-DEJ96vkh.js"),__vite__mapDeps([37,2,1,3,4,24,25,26,27,28,29,38]),import.meta.url)},{path:"knowledge",name:"Knowledge",component:()=>i(()=>import("./KnowledgeGraph-Bz8-Uh6r.js"),__vite__mapDeps([39,1,2,3,24,25,4,26,27,28,29,40]),import.meta.url)},{path:"cron",name:"Cron",component:()=>i(()=>import("./Cron-Kq3eJC0L.js"),__vite__mapDeps([41,2,1,4,24,25,26,27,28,29]),import.meta.url)},{path:"workflow",name:"Workflow",component:()=>i(()=>import("./WorkflowEditor-Bw6cIw_h.js"),__vite__mapDeps([42,1,2,3,4,24,25,26,27,28,29,43]),import.meta.url)},{path:"tasks",name:"Tasks",component:()=>i(()=>import("./Tasks-DI3oKTDz.js"),__vite__mapDeps([44,1,2,3,4,45]),import.meta.url)},{path:"security",name:"Security",component:()=>i(()=>import("./Security-D2BQD7tk.js"),__vite__mapDeps([46,2,1,3,24,25,4,26,27,28,29,47]),import.meta.url)},{path:"did",name:"DID",component:()=>i(()=>import("./DID-BD9PovRf.js"),__vite__mapDeps([48,2,1,3,24,25,4,26,27,28,29,49]),import.meta.url)},{path:"permissions",name:"Permissions",component:()=>i(()=>import("./Permissions-B7UejC3D.js"),__vite__mapDeps([50,2,1,3,24,25,4,26,27,28,29,51]),import.meta.url)},{path:"p2p",name:"P2P",component:()=>i(()=>import("./P2P-H7hLODDc.js"),__vite__mapDeps([52,2,1,3,4,53]),import.meta.url)},{path:"git",name:"Git",component:()=>i(()=>import("./Git-DW9KmRrN.js"),__vite__mapDeps([54,2,1,3,4,24,25,26,27,28,29,55]),import.meta.url)},{path:"projects",name:"Projects",component:()=>i(()=>import("./Projects-asWgm0Iz.js"),__vite__mapDeps([56,2,1,3,4,57]),import.meta.url)},{path:"wallet",name:"Wallet",component:()=>i(()=>import("./Wallet-bO-fXxBx.js"),__vite__mapDeps([58,2,1,3,24,25,4,26,27,28,29,59]),import.meta.url)},{path:"organization",name:"Organization",component:()=>i(()=>import("./Organization-CutzdziK.js"),__vite__mapDeps([60,1,2,3,24,25,4,26,27,28,29,61]),import.meta.url)},{path:"analytics",name:"Analytics",component:()=>i(()=>import("./Analytics-BrBdBLPi.js"),__vite__mapDeps([62,2,1,3,4,24,25,26,27,28,29,63]),import.meta.url)},{path:"templates",name:"Templates",component:()=>i(()=>import("./Templates-C9Z_82IH.js"),__vite__mapDeps([64,1,2,3,4,24,25,26,27,28,29,65]),import.meta.url)},{path:"backup",name:"Backup",component:()=>i(()=>import("./Backup-CKHLFZZS.js"),__vite__mapDeps([66,2,1,3,4,67]),import.meta.url)},{path:"rssfeed",name:"RssFeed",component:()=>i(()=>import("./RssFeed-B4jpCYCI.js"),__vite__mapDeps([68,1,2,3,4,24,25,26,27,28,29,69]),import.meta.url)},{path:"webauthn",name:"WebAuthn",component:()=>i(()=>import("./WebAuthn-uNwYx1Yn.js"),__vite__mapDeps([70,2,1,3,24,25,4,26,27,28,29,71]),import.meta.url)},{path:"community",name:"Community",component:()=>i(()=>import("./Community-BG7vSQg7.js"),__vite__mapDeps([72,2,1,73,3,24,25,4,26,27,28,29,74]),import.meta.url)},{path:"governance",name:"Governance",component:()=>i(()=>import("./Governance--0gVd3YR.js"),__vite__mapDeps([75,2,1,73,3,25,4,24,26,27,28,29,76]),import.meta.url)},{path:"audit",name:"Audit",component:()=>i(()=>import("./Audit-DLYnWfX_.js"),__vite__mapDeps([77,2,1,73,3,24,25,4,26,27,28,29,78]),import.meta.url)},{path:"reputation",name:"Reputation",component:()=>i(()=>import("./Reputation-Dq21I6NZ.js"),__vite__mapDeps([79,2,1,73,3,24,25,4,26,27,28,29,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101]),import.meta.url)},{path:"recommend",name:"Recommend",component:()=>i(()=>import("./Recommend-CIZjeClx.js"),__vite__mapDeps([102,2,1,73,3,24,25,4,26,27,28,29,103]),import.meta.url)},{path:"sla",name:"Sla",component:()=>i(()=>import("./Sla-DTbGerEL.js"),__vite__mapDeps([104,2,1,73,3,24,25,4,26,27,28,29,105]),import.meta.url)},{path:"marketplace",name:"Marketplace",component:()=>i(()=>import("./Marketplace-CTZqO_RV.js"),__vite__mapDeps([106,2,1,73,3,24,25,4,26,27,28,29,107]),import.meta.url)},{path:"crosschain",name:"Crosschain",component:()=>i(()=>import("./Crosschain-CvI5bEH8.js"),__vite__mapDeps([108,2,1,73,3,24,25,4,26,27,28,29,109]),import.meta.url)},{path:"aiops",name:"AIOps",component:()=>i(()=>import("./AIOps-Dmur24hV.js"),__vite__mapDeps([110,2,1,73,3,24,25,4,26,27,28,29,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,111]),import.meta.url)},{path:"compliance",name:"Compliance",component:()=>i(()=>import("./Compliance-CL6jUiTf.js"),__vite__mapDeps([112,2,1,73,3,24,25,4,26,27,28,29,113]),import.meta.url)},{path:"privacy",name:"Privacy",component:()=>i(()=>import("./Privacy-D98lbFiD.js"),__vite__mapDeps([114,2,1,73,3,24,25,4,26,27,28,29,115]),import.meta.url)},{path:"inference",name:"Inference",component:()=>i(()=>import("./Inference-CSuaikJO.js"),__vite__mapDeps([116,2,1,73,3,24,25,4,26,27,28,29,117]),import.meta.url)},{path:"nlprog",name:"NLProgramming",component:()=>i(()=>import("./NLProgramming-BMftRM4D.js"),__vite__mapDeps([118,2,1,73,3,24,25,4,26,27,28,29,119]),import.meta.url)},{path:"tenant",name:"Tenant",component:()=>i(()=>import("./Tenant-kLu9x3Ty.js"),__vite__mapDeps([120,2,1,73,3,24,25,4,26,27,28,29,121]),import.meta.url)},{path:"pipeline",name:"Pipeline",component:()=>i(()=>import("./Pipeline-DhmIDzq5.js"),__vite__mapDeps([122,2,1,73,3,24,25,4,26,27,28,29,123]),import.meta.url)},{path:"video",name:"VideoEditing",component:()=>i(()=>import("./VideoEditing-nIRTUjK_.js"),__vite__mapDeps([124,2,1,3,4,24,25,26,27,28,29,125]),import.meta.url)}]}],je=Ie({history:Le(),routes:Ge});function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(null,arguments)}const $t=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t},We=e=>{const t=e;return t.install=function(r){r.component(t.displayName||t.name,e)},e};function Gt(){return{type:[Function,Array]}}function de(e){return{type:Object,default:e}}function z(e){return{type:Boolean,default:e}}function jt(e){return{type:Function,default:e}}function Ue(e,t){const r={validator:()=>!0,default:e};return r}function Wt(){return{validator:()=>!0}}function ee(e){return{type:Array,default:e}}function te(e){return{type:String,default:e}}function Ke(e,t){return e?{type:e,default:t}:Ue(t)}function pe(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const oe="%";class qe{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(oe):t)||null}update(t,r){const n=Array.isArray(t)?t.join(oe):t,o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}const Qe="data-token-hash",X="data-css-hash",I="__cssinjs_instance__";function D(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${X}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(o=>{o[I]=o[I]||e,o[I]===e&&document.head.insertBefore(o,r)});const n={};Array.from(document.querySelectorAll(`style[${X}]`)).forEach(o=>{var a;const c=o.getAttribute(X);n[c]?o[I]===e&&((a=o.parentNode)===null||a===void 0||a.removeChild(o)):n[c]=!0})}return new qe(e)}const _e=Symbol("StyleContextKey"),Ye=()=>{var e,t,r;const n=Ce();let o;if(n&&n.appContext){const a=(r=(t=(e=n.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||r===void 0?void 0:r.__ANTDV_CSSINJS_CACHE__;a?o=a:(o=D(),n.appContext.config.globalProperties&&(n.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=D();return o},fe={cache:D(),defaultCache:!0,hashPriority:"low"},K=()=>{const e=Ye();return le(_e,R(u(u({},fe),{cache:e})))},Je=e=>{const t=K(),r=R(u(u({},fe),{cache:D()}));return U([()=>w(e),t],()=>{const n=u({},t.value),o=w(e);Object.keys(o).forEach(c=>{const s=o[c];o[c]!==void 0&&(n[c]=s)});const{cache:a}=o;n.cache=n.cache||D(),n.defaultCache=!a&&t.value.defaultCache,r.value=n},{immediate:!0}),ue(_e,r),r},Ze=()=>({autoClear:z(),mock:te(),cache:de(),defaultCache:z(),hashPriority:te(),container:Ke(),ssrInline:z(),transformers:ee(),linters:ee()});We(se({name:"AStyleProvider",inheritAttrs:!1,props:Ze(),setup(e,t){let{slots:r}=t;return Je(e),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}));function et(e,t,r,n){const o=K(),a=R(""),c=R();Re(()=>{a.value=[e,...t.value].join("%")});const s=p=>{o.value.cache.update(p,d=>{const[_=0,m]=d||[];return _-1===0?(n?.(m,!1),null):[_-1,m]})};return U(a,(p,d)=>{d&&s(d),o.value.cache.update(p,_=>{const[m=0,f]=_||[],h=f||r();return[m+1,h]}),c.value=o.value.cache.get(a.value)[1]},{immediate:!0}),De(()=>{s(a.value)}),c}function ge(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function tt(e,t){return e&&e.contains?e.contains(t):!1}const re="data-vc-order",ot="vc-util-key",j=new Map;function he(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:ot}function k(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ve(e){return Array.from((j.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Ee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ge())return null;const{csp:r,prepend:n}=t,o=document.createElement("style");o.setAttribute(re,rt(n)),r?.nonce&&(o.nonce=r?.nonce),o.innerHTML=e;const a=k(t),{firstChild:c}=a;if(n){if(n==="queue"){const s=ve(a).filter(p=>["prepend","prependQueue"].includes(p.getAttribute(re)));if(s.length)return a.insertBefore(o,s[s.length-1].nextSibling),o}a.insertBefore(o,c)}else a.appendChild(o);return o}function Ae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=k(t);return ve(r).find(n=>n.getAttribute(he(t))===e)}function nt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Ae(e,t);r&&k(t).removeChild(r)}function it(e,t){const r=j.get(e);if(!r||!tt(document,r)){const n=Ee("",t),{parentNode:o}=n;j.set(e,o),e.removeChild(n)}}function at(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n,o,a;const c=k(r);it(c,r);const s=Ae(t,r);if(s)return!((n=r.csp)===null||n===void 0)&&n.nonce&&s.nonce!==((o=r.csp)===null||o===void 0?void 0:o.nonce)&&(s.nonce=(a=r.csp)===null||a===void 0?void 0:a.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const p=Ee(e,r);return p.setAttribute(he(r),t),p}function ct(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}class S{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n={map:this.cache};return t.forEach(o=>{var a;n?n=(a=n?.map)===null||a===void 0?void 0:a.get(o):n=void 0}),n?.value&&r&&(n.value[1]=this.cacheCallTimes++),n?.value}get(t){var r;return(r=this.internalGet(t,!0))===null||r===void 0?void 0:r[0]}has(t){return!!this.internalGet(t)}set(t,r){if(!this.has(t)){if(this.size()+1>S.MAX_CACHE_SIZE+S.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((a,c)=>{const[,s]=a;return this.internalGet(c)[1]<s?[c,this.internalGet(c)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let n=this.cache;t.forEach((o,a)=>{if(a===t.length-1)n.set(o,{value:[r,this.cacheCallTimes++]});else{const c=n.get(o);c?c.map||(c.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}})}deleteByPath(t,r){var n;const o=t.get(r[0]);if(r.length===1)return o.map?t.set(r[0],{map:o.map}):t.delete(r[0]),(n=o.value)===null||n===void 0?void 0:n[0];const a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(r[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(r=>!ct(r,t)),this.deleteByPath(this.cache,t)}}S.MAX_CACHE_SIZE=20;S.MAX_CACHE_OFFSET=5;function lt(){}let st=lt,ne=0;class Te{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=ne,t.length===0&&st(t.length>0),ne+=1}getDerivativeToken(t){return this.derivatives.reduce((r,n)=>n(t,r),void 0)}}const F=new S;function ut(e){const t=Array.isArray(e)?e:[e];return F.has(t)||F.set(t,new Te(t)),F.get(t)}const ie=new WeakMap;function V(e){let t=ie.get(e)||"";return t||(Object.keys(e).forEach(r=>{const n=e[r];t+=r,n instanceof Te?t+=n.id:n&&typeof n=="object"?t+=V(n):t+=n}),ie.set(e,t)),t}function mt(e,t){return pe(`${t}_${V(e)}`)}const C=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),be="_bAmBoO_";function dt(e,t,r){var n,o;if(ge()){at(e,C);const a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t?.(a),document.body.appendChild(a);const c=r?r(a):(n=getComputedStyle(a).content)===null||n===void 0?void 0:n.includes(be);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),nt(C),c}return!1}let N;function Ut(){return N===void 0&&(N=dt(`@layer ${C} { .${C} { content: "${be}"!important; } }`,e=>{e.className=C})),N}const ae={},pt="css",y=new Map;function _t(e){y.set(e,(y.get(e)||0)+1)}function ft(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Qe}="${e}"]`).forEach(n=>{var o;n[I]===t&&((o=n.parentNode)===null||o===void 0||o.removeChild(n))})}const gt=0;function ht(e,t){y.set(e,(y.get(e)||0)-1);const r=Array.from(y.keys()),n=r.filter(o=>(y.get(o)||0)<=0);r.length-n.length>gt&&n.forEach(o=>{ft(o,t),y.delete(o)})}const vt=(e,t,r,n)=>{const o=r.getDerivativeToken(e);let a=u(u({},o),t);return n&&(a=n(a)),a};function Et(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me({});const n=K(),o=E(()=>u({},...t.value)),a=E(()=>V(o.value)),c=E(()=>V(r.value.override||ae));return et("token",E(()=>[r.value.salt||"",e.value.id,a.value,c.value]),()=>{const{salt:p="",override:d=ae,formatToken:_,getComputedToken:m}=r.value,f=m?m(o.value,d,e.value):vt(o.value,d,e.value,_),g=mt(f,p);f._tokenKey=g,_t(g);const h=`${pt}-${pe(g)}`;return f._hashId=h,[f,h]},p=>{var d;ht(p[0]._tokenKey,(d=n.value)===null||d===void 0?void 0:d.cache.instanceId)})}const At="4.2.6",Tt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function bt(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const q={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"},Q=u(u({},q),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
3
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
4
+ 'Noto Color Emoji'`,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});function ye(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:a,colorError:c,colorInfo:s,colorPrimary:p,colorBgBase:d,colorTextBase:_}=e,m=r(p),f=r(o),g=r(a),h=r(c),v=r(s),Pe=n(d,_);return u(u({},Pe),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new A("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const yt=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function xt(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return u({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},yt(n))}const T=(e,t)=>new A(e).setAlpha(t).toRgbString(),P=(e,t)=>new A(e).darken(t).toHexString(),St=e=>{const t=M(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Pt=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:T(n,.88),colorTextSecondary:T(n,.65),colorTextTertiary:T(n,.45),colorTextQuaternary:T(n,.25),colorFill:T(n,.15),colorFillSecondary:T(n,.06),colorFillTertiary:T(n,.04),colorFillQuaternary:T(n,.02),colorBgLayout:P(r,4),colorBgContainer:P(r,0),colorBgElevated:P(r,0),colorBgSpotlight:T(n,.85),colorBorder:P(r,15),colorBorderSecondary:P(r,6)}};function It(e){const t=new Array(10).fill(null).map((r,n)=>{const o=n-1,a=e*Math.pow(2.71828,o/5),c=n>1?Math.floor(a):Math.ceil(a);return Math.floor(c/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const Lt=e=>{const t=It(e),r=t.map(o=>o.size),n=t.map(o=>o.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Y(e){const t=Object.keys(q).map(r=>{const n=M(e[r]);return new Array(10).fill(1).reduce((o,a,c)=>(o[`${r}-${c+1}`]=n[c],o),{})}).reduce((r,n)=>(r=u(u({},r),n),r),{});return u(u(u(u(u(u(u({},e),t),ye(e,{generateColorPalettes:St,generateNeutralColorPalettes:Pt})),Lt(e.fontSize)),bt(e)),Tt(e)),xt(e))}function $(e){return e>=0&&e<=255}function O(e,t){const{r,g:n,b:o,a}=new A(e).toRgb();if(a<1)return e;const{r:c,g:s,b:p}=new A(t).toRgb();for(let d=.01;d<=1;d+=.01){const _=Math.round((r-c*(1-d))/d),m=Math.round((n-s*(1-d))/d),f=Math.round((o-p*(1-d))/d);if($(_)&&$(m)&&$(f))return new A({r:_,g:m,b:f,a:Math.round(d*100)/100}).toRgbString()}return new A({r,g:n,b:o,a:1}).toRgbString()}var Ct=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Rt(e){const{override:t}=e,r=Ct(e,["override"]),n=u({},t);Object.keys(Q).forEach(g=>{delete n[g]});const o=u(u({},r),n),a=480,c=576,s=768,p=992,d=1200,_=1600,m=2e3;return u(u(u({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:O(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:O(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:O(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:O(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
5
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
6
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
7
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
8
+ `,boxShadowSecondary:`
9
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
10
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
11
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
12
+ `,boxShadowTertiary:`
13
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
14
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
15
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
16
+ `,screenXS:a,screenXSMin:a,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:_-1,screenXXL:_,screenXXLMin:_,screenXXLMax:m-1,screenXXXL:m,screenXXXLMin:m,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
17
+ 0 1px 2px -2px ${new A("rgba(0, 0, 0, 0.16)").toRgbString()},
18
+ 0 3px 6px 0 ${new A("rgba(0, 0, 0, 0.12)").toRgbString()},
19
+ 0 5px 12px 4px ${new A("rgba(0, 0, 0, 0.09)").toRgbString()}
20
+ `,boxShadowDrawerRight:`
21
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
22
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
23
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
24
+ `,boxShadowDrawerLeft:`
25
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
26
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
27
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
28
+ `,boxShadowDrawerUp:`
29
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
30
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
31
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
32
+ `,boxShadowDrawerDown:`
33
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
34
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
35
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
36
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}const Dt=ut(Y),xe={token:Q,hashed:!0},Se=Symbol("DesignTokenContext"),W=R(),Ot=e=>{ue(Se,e),U(e,()=>{W.value=w(e),Oe(W)},{immediate:!0,deep:!0})},Kt=se({props:{value:de()},setup(e,t){let{slots:r}=t;return Ot(E(()=>e.value)),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}});function qt(){const e=le(Se,E(()=>W.value||xe)),t=E(()=>`${At}-${e.value.hashed||""}`),r=E(()=>e.value.theme||Dt),n=Et(r,E(()=>[Q,e.value.token]),E(()=>({salt:t.value,override:u({override:e.value.token},e.value.components),formatToken:Rt})));return[r,E(()=>n.value[0]),E(()=>e.value.hashed?n.value[1]:"")]}const b=(e,t)=>new A(e).setAlpha(t).toRgbString(),x=(e,t)=>new A(e).lighten(t).toHexString(),Bt=e=>{const t=M(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},wt=(e,t)=>{const r=e||"#000",n=t||"#fff";return{colorBgBase:r,colorTextBase:n,colorText:b(n,.85),colorTextSecondary:b(n,.65),colorTextTertiary:b(n,.45),colorTextQuaternary:b(n,.25),colorFill:b(n,.18),colorFillSecondary:b(n,.12),colorFillTertiary:b(n,.08),colorFillQuaternary:b(n,.04),colorBgElevated:x(r,12),colorBgContainer:x(r,8),colorBgLayout:x(r,0),colorBgSpotlight:x(r,26),colorBorder:x(r,26),colorBorderSecondary:x(r,19)}},Vt=(e,t)=>{const r=Object.keys(q).map(o=>{const a=M(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((c,s,p)=>(c[`${o}-${p+1}`]=a[p],c),{})}).reduce((o,a)=>(o=u(u({},o),a),o),{}),n=t??Y(e);return u(u(u({},n),r),ye(e,{generateColorPalettes:Bt,generateNeutralColorPalettes:wt}))},B={defaultSeed:xe.token,defaultAlgorithm:Y,darkAlgorithm:Vt},ce="cc_theme",G={dark:{label:"暗黑",icon:"🌑",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#1677ff",colorBgBase:"#141414",colorBgContainer:"#1f1f1f",colorBgElevated:"#2a2a2a",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#1c1c1c",headerBg:"#1c1c1c",bodyBg:"#141414"},Menu:{darkItemBg:"#1c1c1c",darkSubMenuItemBg:"#171717"}}},vars:{"--bg-base":"#141414","--bg-sidebar":"#1c1c1c","--bg-header":"#1c1c1c","--bg-card":"#1f1f1f","--bg-card-hover":"#262626","--border-color":"#252525","--border-subtle":"#1e1e1e","--text-primary":"#e0e0e0","--text-secondary":"#888","--text-muted":"#444","--logo-text":"#ffffff","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,0,0,.45)","--group-title":"#3a3a3a"}},light:{label:"亮白",icon:"☀️",antd:{algorithm:B.defaultAlgorithm,token:{colorPrimary:"#1677ff",colorBgBase:"#ffffff",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#ffffff",headerBg:"#ffffff",bodyBg:"#f4f6fb"},Menu:{itemBg:"#ffffff"}}},vars:{"--bg-base":"#f4f6fb","--bg-sidebar":"#ffffff","--bg-header":"#ffffff","--bg-card":"#ffffff","--bg-card-hover":"#f0f4ff","--border-color":"#e8edf5","--border-subtle":"#f0f0f0","--text-primary":"#1a1a2e","--text-secondary":"#5a6474","--text-muted":"#b0b8c8","--logo-text":"#1a1a2e","--menu-mode":"light","--shadow-card":"0 2px 12px rgba(0,0,0,.07)","--group-title":"#aab0bc"}},blue:{label:"深蓝",icon:"🌊",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#2f80ed",colorBgBase:"#0d1117",colorBgContainer:"#161b22",colorBgElevated:"#1c2230",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#0f1923",headerBg:"#0f1923",bodyBg:"#0d1117"},Menu:{darkItemBg:"#0f1923",darkSubMenuItemBg:"#0b1520"}}},vars:{"--bg-base":"#0d1117","--bg-sidebar":"#0f1923","--bg-header":"#0f1923","--bg-card":"#161b22","--bg-card-hover":"#1c2230","--border-color":"#21303f","--border-subtle":"#182030","--text-primary":"#c9d8ef","--text-secondary":"#6e8caa","--text-muted":"#2d4060","--logo-text":"#e0eeff","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,40,80,.5)","--group-title":"#2d4060"}},green:{label:"翠绿",icon:"🌿",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#29a270",colorBgBase:"#0a1a12",colorBgContainer:"#0f2318",colorBgElevated:"#152e20",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#0c1e14",headerBg:"#0c1e14",bodyBg:"#0a1a12"},Menu:{darkItemBg:"#0c1e14",darkSubMenuItemBg:"#091810"}}},vars:{"--bg-base":"#0a1a12","--bg-sidebar":"#0c1e14","--bg-header":"#0c1e14","--bg-card":"#0f2318","--bg-card-hover":"#152e20","--border-color":"#1a3828","--border-subtle":"#122a1c","--text-primary":"#c0e8c8","--text-secondary":"#5a9a6a","--text-muted":"#1e4028","--logo-text":"#d8f0e0","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,40,20,.5)","--group-title":"#1e4028"}}},Mt=Be("theme",()=>{const e=me(localStorage.getItem(ce)||"light"),t=E(()=>G[e.value]||G.dark),r=E(()=>t.value.antd),n=E(()=>e.value!=="light");function o(){const s=t.value.vars,p=document.documentElement;for(const[d,_]of Object.entries(s))p.style.setProperty(d,_);p.setAttribute("data-theme",e.value)}function a(s){G[s]&&(e.value=s,localStorage.setItem(ce,s),o())}function c(){o()}return{current:e,config:t,antdTheme:r,isDark:n,setTheme:a,init:c}}),kt={__name:"App",setup(e){const t=Mt();return we(()=>t.init()),(r,n)=>{const o=J("router-view"),a=J("a-config-provider");return Me(),Ve(a,{theme:w(t).antdTheme},{default:ke(()=>[He(o)]),_:1},8,["theme"])}}};function l(e,t=r=>r.default){return ze({suspensible:!1,loader:()=>e().then(r=>t(r))})}const Ht={AAlert:l(()=>i(()=>import("./index-IXyQceyp.js"),__vite__mapDeps([126,25,1,4,29,26,100]),import.meta.url)),ABadge:l(()=>i(()=>import("./index-t5BUMwJ1.js"),__vite__mapDeps([127,25,1,4,29,100,26,27,128,129]),import.meta.url)),AButton:l(()=>i(()=>import("./index-B4FsQ2CI.js").then(e=>e.i),__vite__mapDeps([87,25,1,4,88,89,90,86,29,91,92,93,94,95,96,84]),import.meta.url)),ACard:l(()=>i(()=>import("./index-BVg8Wf40.js"),__vite__mapDeps([130,25,1,4,131,86,81,132,91,92,133,29,85,28,100,89,134,96,26,135,136,137,138,139,140,141,128,98,27,84,142,143,144,145,90,146,147,148,149,150,82,151,152]),import.meta.url)),ACheckbox:l(()=>i(()=>import("./index-CndKqpaA.js").then(e=>e.i),__vite__mapDeps([153,25,1,4,154,29,84,155,94,27]),import.meta.url)),ACol:l(()=>i(()=>import("./index-CsESExuO.js"),__vite__mapDeps([156,157,25,1,4,158]),import.meta.url)),ACollapse:l(()=>i(()=>import("./index-BqUqxSm3.js"),__vite__mapDeps([159,25,1,4,100,29,141,142,84,91,92]),import.meta.url)),ACollapsePanel:l(()=>i(()=>import("./index-BqUqxSm3.js"),__vite__mapDeps([159,25,1,4,100,29,141,142,84,91,92]),import.meta.url),e=>e.default.Panel||e.CollapsePanel),AConfigProvider:l(()=>i(()=>import("./index-DLcTmwiN.js").then(e=>e.i),__vite__mapDeps([24,25,1,4,26,27,28,29]),import.meta.url)),ADescriptions:l(()=>i(()=>import("./index-DhwwIcoT.js"),__vite__mapDeps([160,25,1,4,161,29,100]),import.meta.url)),ADescriptionsItem:l(()=>i(()=>import("./index-DhwwIcoT.js"),__vite__mapDeps([160,25,1,4,161,29,100]),import.meta.url),e=>e.DescriptionsItem),ADivider:l(()=>i(()=>import("./index-vwTt5gIV.js"),__vite__mapDeps([162,25,1,4]),import.meta.url)),ADropdown:l(()=>i(()=>import("./index-BIlQFerH.js"),__vite__mapDeps([163,145,25,1,4,29,133,86,85,28,100,89,134,96,26,87,88,90,91,92,93,94,95,84,140,164,27,143,98,82,144]),import.meta.url)),AEmpty:l(()=>i(()=>import("./useConfigInject-DIKG5Y4I.js").then(e=>e.$),__vite__mapDeps([25,1,4]),import.meta.url)),AForm:l(()=>i(()=>import("./index-B_Jn0gUS.js"),__vite__mapDeps([165,25,1,4,29,133,86,85,28,100,89,134,96,26,147,148,151,166,161,167,97,158,92,135,168,157,139,140,141,128,98,27,84,142,155,94]),import.meta.url)),AFormItem:l(()=>i(()=>import("./index-B_Jn0gUS.js"),__vite__mapDeps([165,25,1,4,29,133,86,85,28,100,89,134,96,26,147,148,151,166,161,167,97,158,92,135,168,157,139,140,141,128,98,27,84,142,155,94]),import.meta.url),e=>e.default.Item||e.FormItem),AInput:l(()=>i(()=>import("./index-CapUO117.js"),__vite__mapDeps([169,25,1,4,155,94,170,82,29,100,171,95,96,172,93,87,88,89,90,86,91,92,84,151,138,134]),import.meta.url)),AInputGroup:l(()=>i(()=>import("./index-CapUO117.js"),__vite__mapDeps([169,25,1,4,155,94,170,82,29,100,171,95,96,172,93,87,88,89,90,86,91,92,84,151,138,134]),import.meta.url),e=>e.default.Group||e.InputGroup),AInputNumber:l(()=>i(()=>import("./index-bpC7BiFY.js"),__vite__mapDeps([173,25,1,4,149,92,86,81,155,94,100,82,29,170,172,93,95,96]),import.meta.url)),AInputPassword:l(()=>i(()=>import("./index-CapUO117.js"),__vite__mapDeps([169,25,1,4,155,94,170,82,29,100,171,95,96,172,93,87,88,89,90,86,91,92,84,151,138,134]),import.meta.url),e=>e.default.Password||e.InputPassword),AInputSearch:l(()=>i(()=>import("./index-CapUO117.js"),__vite__mapDeps([169,25,1,4,155,94,170,82,29,100,171,95,96,172,93,87,88,89,90,86,91,92,84,151,138,134]),import.meta.url),e=>e.default.Search||e.InputSearch),ALayout:l(()=>i(()=>import("./index-D_bHyAnC.js"),__vite__mapDeps([174,25,1,4,136,29,84,129]),import.meta.url)),ALayoutContent:l(()=>i(()=>import("./index-D_bHyAnC.js"),__vite__mapDeps([174,25,1,4,136,29,84,129]),import.meta.url),e=>e.LayoutContent||e.default.Content),ALayoutHeader:l(()=>i(()=>import("./index-D_bHyAnC.js"),__vite__mapDeps([174,25,1,4,136,29,84,129]),import.meta.url),e=>e.LayoutHeader||e.default.Header),ALayoutSider:l(()=>i(()=>import("./index-D_bHyAnC.js"),__vite__mapDeps([174,25,1,4,136,29,84,129]),import.meta.url),e=>e.LayoutSider||e.default.Sider),AList:l(()=>i(()=>import("./index-BSrnzqkD.js"),__vite__mapDeps([175,25,1,4,176,29,84,27,177,178,133,86,85,28,100,89,134,96,26,81,171,83,137,138,149,82,150,90,155,94,170,95,164,143,93,161,172,141,166,167,97,158,157]),import.meta.url)),AListItem:l(()=>i(()=>import("./index-BSrnzqkD.js"),__vite__mapDeps([175,25,1,4,176,29,84,27,177,178,133,86,85,28,100,89,134,96,26,81,171,83,137,138,149,82,150,90,155,94,170,95,164,143,93,161,172,141,166,167,97,158,157]),import.meta.url),e=>e.default.Item||e.Item),AMenu:l(()=>i(()=>import("./index-Dxy2NQqS.js"),__vite__mapDeps([132,25,1,4,91,92,133,29,86,85,28,100,89,134,96,26,135,136,137,138,139,140,141,128,98,27,84,81,142,143,144]),import.meta.url)),AMenuDivider:l(()=>i(()=>import("./index-Dxy2NQqS.js"),__vite__mapDeps([132,25,1,4,91,92,133,29,86,85,28,100,89,134,96,26,135,136,137,138,139,140,141,128,98,27,84,81,142,143,144]),import.meta.url),e=>e.default.Divider||e.Divider),AMenuItem:l(()=>i(()=>import("./index-Dxy2NQqS.js"),__vite__mapDeps([132,25,1,4,91,92,133,29,86,85,28,100,89,134,96,26,135,136,137,138,139,140,141,128,98,27,84,81,142,143,144]),import.meta.url),e=>e.default.Item||e.Item),AMenuItemGroup:l(()=>i(()=>import("./index-Dxy2NQqS.js"),__vite__mapDeps([132,25,1,4,91,92,133,29,86,85,28,100,89,134,96,26,135,136,137,138,139,140,141,128,98,27,84,81,142,143,144]),import.meta.url),e=>e.default.ItemGroup||e.ItemGroup),AModal:l(()=>i(()=>import("./index-Q7v4BZgp.js"),__vite__mapDeps([80,25,1,4,81,82,83,84,26,29,85,28,86,87,88,89,90,91,92,93,94,95,96,97,27,98,99,24,100]),import.meta.url)),APopconfirm:l(()=>i(()=>import("./index-CBfv-ndK.js"),__vite__mapDeps([179,25,1,4,139,29,133,86,85,28,100,89,134,96,26,140,141,128,98,27,84,82,87,88,90,91,92,93,94,95,150,81,99]),import.meta.url)),AProgress:l(()=>i(()=>import("./index-Ct1YvTCX.js"),__vite__mapDeps([180,25,1,4,84,91,92,146,139,29,133,86,85,28,100,89,134,96,26,140,141,128,98,27]),import.meta.url)),ARadioButton:l(()=>i(()=>import("./index-BhSfMAk_.js"),__vite__mapDeps([181,25,1,4,29,154,84,155,94,82,27]),import.meta.url),e=>e.default.Button||e.RadioButton),ARadioGroup:l(()=>i(()=>import("./index-BhSfMAk_.js"),__vite__mapDeps([181,25,1,4,29,154,84,155,94,82,27]),import.meta.url),e=>e.default.Group||e.RadioGroup),ARow:l(()=>i(()=>import("./index-CK4CCFyw.js"),__vite__mapDeps([182,166,25,1,4,161,167,97,158]),import.meta.url)),ASelect:l(()=>i(()=>import("./index-B1KhJnQM.js").then(e=>e.i),__vite__mapDeps([178,25,1,4,133,29,86,85,28,100,89,134,96,26,81,171,83,137,138,149,84,82,150,90,155,94,170,95,164,27,143,93]),import.meta.url)),ASelectOption:l(()=>i(()=>import("./index-B1KhJnQM.js").then(e=>e.i),__vite__mapDeps([178,25,1,4,133,29,86,85,28,100,89,134,96,26,81,171,83,137,138,149,84,82,150,90,155,94,170,95,164,27,143,93]),import.meta.url),e=>e.default.Option||e.Option),ASlider:l(()=>i(()=>import("./index--V8HSAh9.js"),__vite__mapDeps([183,25,1,4,29,133,86,85,28,100,89,134,96,26,81,84,139,140,141,128,98,27,155,94]),import.meta.url)),ASpace:l(()=>i(()=>import("./index-CUV4Xqwc.js"),__vite__mapDeps([184,25,1,4,29,167,97,95,94,96]),import.meta.url)),ASpin:l(()=>i(()=>import("./index-CCe5JJYI.js"),__vite__mapDeps([176,25,1,4,29,84,27]),import.meta.url)),AStatistic:l(()=>i(()=>import("./index-BhwkejpN.js"),__vite__mapDeps([185,25,1,4,84,152,27,82]),import.meta.url)),ASwitch:l(()=>i(()=>import("./index-TpCAHpWv.js"),__vite__mapDeps([186,25,1,4,29,81,88,89,90,86,155,94,82]),import.meta.url)),ATable:l(()=>i(()=>import("./index-CBI2Y4Kj.js"),__vite__mapDeps([187,25,1,4,97,177,178,133,29,86,85,28,100,89,134,96,26,81,171,83,137,138,149,84,82,150,90,155,94,170,95,164,27,143,93,161,172,141,142,91,92,176,153,154,163,145,87,88,140,98,144,132,135,136,139,128,181,169,151,168,148]),import.meta.url)),ATabPane:l(()=>i(()=>import("./index-t8Iy1rHD.js"),__vite__mapDeps([131,25,1,4,86,81,132,91,92,133,29,85,28,100,89,134,96,26,135,136,137,138,139,140,141,128,98,27,84,142,143,144,145,90,146,147,148,149,150,82]),import.meta.url),e=>e.default.TabPane||e.TabPane),ATabs:l(()=>i(()=>import("./index-t8Iy1rHD.js"),__vite__mapDeps([131,25,1,4,86,81,132,91,92,133,29,85,28,100,89,134,96,26,135,136,137,138,139,140,141,128,98,27,84,142,143,144,145,90,146,147,148,149,150,82]),import.meta.url)),ATag:l(()=>i(()=>import("./index-D3LHutKn.js"),__vite__mapDeps([188,25,1,4,29,88,89,90,86,128]),import.meta.url)),ATextarea:l(()=>i(()=>import("./index-CapUO117.js"),__vite__mapDeps([169,25,1,4,155,94,170,82,29,100,171,95,96,172,93,87,88,89,90,86,91,92,84,151,138,134]),import.meta.url),e=>e.default.TextArea||e.Textarea),ATooltip:l(()=>i(()=>import("./index-Cwuee4M2.js").then(e=>e.i),__vite__mapDeps([139,29,133,86,25,1,4,85,28,100,89,134,96,26,140,141,128,98,27,84]),import.meta.url))};function zt(e){Object.entries(Ht).forEach(([t,r])=>{e.component(t,r)})}const Xt=new URL(""+new URL("favicon-FSU2gSy6.ico",import.meta.url).href,import.meta.url).href;let L=document.querySelector('link[rel="icon"]');L||(L=document.createElement("link"),L.rel="icon",document.head.appendChild(L));L.href=Xt;const H=Xe(kt);H.use(Fe());H.use(je);zt(H);H.mount("#app");export{X as A,I as C,Kt as D,G as T,u as _,st as a,at as b,ge as c,qt as d,xe as e,ut as f,K as g,et as h,Qe as i,Ut as j,Ue as k,tt as l,pe as m,z as n,de as o,Gt as p,jt as q,nt as r,Q as s,$t as t,Mt as u,Wt as v,We as w,ee as x,te as y,Ke as z};
@@ -0,0 +1 @@
1
+ import{_ as v,t as D}from"./index-DPaLf3-g.js";import{g as re,m as ne,u as I,c as M,_ as F}from"./useConfigInject-DIKG5Y4I.js";import{a as Z,S as ae}from"./injectionKey-BXVc-oGP.js";import{d as L,c as g,j as ie,r as le,p as G,i as se,s as R,w as j,l as de,o as ue}from"./vendor-BVetwVfk.js";import{P as p}from"./index-U4Zd5IK6.js";import{i as ce}from"./initDefaultProps-C1zn_AKT.js";import{i as ge}from"./isNumeric-DjvBa-1E.js";import{aR as fe,aS as _,a1 as X}from"./icons-E3MGhN6s.js";const pe=e=>{const{componentCls:n,colorBgContainer:o,colorBgBody:s,colorText:a}=e;return{[`${n}-sider-light`]:{background:o,[`${n}-sider-trigger`]:{color:a,background:o},[`${n}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${s}`,borderInlineStart:0}}}},me=e=>{const{antCls:n,componentCls:o,colorText:s,colorTextLightSolid:a,colorBgHeader:f,colorBgBody:d,colorBgTrigger:i,layoutHeaderHeight:u,layoutHeaderPaddingInline:h,layoutHeaderColor:x,layoutFooterPadding:t,layoutTriggerHeight:l,layoutZeroTriggerSize:y,motionDurationMid:S,motionDurationSlow:r,fontSize:m,borderRadius:c}=e;return{[o]:v(v({display:"flex",flex:"auto",flexDirection:"column",color:s,minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},[`${o}-header`]:{height:u,paddingInline:h,color:x,lineHeight:`${u}px`,background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:t,color:s,fontSize:m,background:d},[`${o}-content`]:{flex:"auto",minHeight:0},[`${o}-sider`]:{position:"relative",minWidth:0,background:f,transition:`all ${S}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${n}-menu${n}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:l},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:l,color:a,lineHeight:`${l}px`,textAlign:"center",background:i,cursor:"pointer",transition:`all ${S}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:-y,zIndex:1,width:y,height:y,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:f,borderStartStartRadius:0,borderStartEndRadius:c,borderEndEndRadius:c,borderEndStartRadius:0,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-y,borderStartStartRadius:c,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:c}}}}},pe(e)),{"&-rtl":{direction:"rtl"}})}},he=re("Layout",e=>{const{colorText:n,controlHeightSM:o,controlHeight:s,controlHeightLG:a,marginXXS:f}=e,d=a*1.25,i=ne(e,{layoutHeaderHeight:s*2,layoutHeaderPaddingInline:d,layoutHeaderColor:n,layoutFooterPadding:`${o}px ${d}px`,layoutTriggerHeight:a+f*2,layoutZeroTriggerSize:a});return[me(i)]},e=>{const{colorBgLayout:n}=e;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140"}}),O=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function B(e){let{suffixCls:n,tagName:o,name:s}=e;return a=>L({compatConfig:{MODE:3},name:s,props:O(),setup(d,i){let{slots:u}=i;const{prefixCls:h}=I(n,d);return()=>{const x=v(v({},d),{prefixCls:h.value,tagName:o});return g(a,x,u)}}})}const P=L({compatConfig:{MODE:3},props:O(),setup(e,n){let{slots:o}=n;return()=>g(e.tagName,{class:e.prefixCls},o)}}),xe=L({compatConfig:{MODE:3},inheritAttrs:!1,props:O(),setup(e,n){let{slots:o,attrs:s}=n;const{prefixCls:a,direction:f}=I("",e),[d,i]=he(a),u=le([]);G(Z,{addSider:t=>{u.value=[...u.value,t]},removeSider:t=>{u.value=u.value.filter(l=>l!==t)}});const x=ie(()=>{const{prefixCls:t,hasSider:l}=e;return{[i.value]:!0,[`${t}`]:!0,[`${t}-has-sider`]:typeof l=="boolean"?l:u.value.length>0,[`${t}-rtl`]:f.value==="rtl"}});return()=>{const{tagName:t}=e;return d(g(t,v(v({},s),{class:[x.value,s.class]}),o))}}}),A=B({suffixCls:"layout",tagName:"section",name:"ALayout"})(xe),C=B({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(P),w=B({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(P),H=B({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(P),K={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},ye=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:p.any,width:p.oneOfType([p.number,p.string]),collapsedWidth:p.oneOfType([p.number,p.string]),breakpoint:p.oneOf(D("xs","sm","md","lg","xl","xxl","xxxl")),theme:p.oneOf(D("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),ve=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),k=L({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ce(ye(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,n){let{emit:o,attrs:s,slots:a}=n;const{prefixCls:f}=I("layout-sider",e),d=se(Z,void 0),i=R(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),u=R(!1);j(()=>e.collapsed,()=>{i.value=!!e.collapsed}),G(ae,i);const h=(r,m)=>{e.collapsed===void 0&&(i.value=r),o("update:collapsed",r),o("collapse",r,m)},x=R(r=>{u.value=r.matches,o("breakpoint",r.matches),i.value!==r.matches&&h(r.matches,"responsive")});let t;function l(r){return x.value(r)}const y=ve("ant-sider-");d&&d.addSider(y),de(()=>{j(()=>e.breakpoint,()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}if(typeof window<"u"){const{matchMedia:r}=window;if(r&&e.breakpoint&&e.breakpoint in K){t=r(`(max-width: ${K[e.breakpoint]})`);try{t.addEventListener("change",l)}catch{t.addListener(l)}l(t)}}},{immediate:!0})}),ue(()=>{try{t?.removeEventListener("change",l)}catch{t?.removeListener(l)}d&&d.removeSider(y)});const S=()=>{h(!i.value,"clickTrigger")};return()=>{var r,m;const c=f.value,{collapsedWidth:N,width:U,reverseArrow:T,zeroWidthTriggerStyle:V,trigger:$=(r=a.trigger)===null||r===void 0?void 0:r.call(a),collapsible:W,theme:J}=e,z=i.value?N:U,b=ge(z)?`${z}px`:String(z),E=parseFloat(String(N||0))===0?g("span",{onClick:S,class:M(`${c}-zero-width-trigger`,`${c}-zero-width-trigger-${T?"right":"left"}`),style:V},[$||g(fe,null,null)]):null,Q={expanded:T?g(X,null,null):g(_,null,null),collapsed:T?g(_,null,null):g(X,null,null)},Y=i.value?"collapsed":"expanded",q=Q[Y],ee=$!==null?E||g("div",{class:`${c}-trigger`,onClick:S,style:{width:b}},[$||q]):null,te=[s.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],oe=M(c,`${c}-${J}`,{[`${c}-collapsed`]:!!i.value,[`${c}-has-trigger`]:W&&$!==null&&!E,[`${c}-below`]:!!u.value,[`${c}-zero-width`]:parseFloat(b)===0},s.class);return g("aside",F(F({},s),{},{class:oe,style:te}),[g("div",{class:`${c}-children`},[(m=a.default)===null||m===void 0?void 0:m.call(a)]),W||u.value&&E?ee:null])}}}),Be=C,Te=w,ze=k,Ee=H,Re=v(A,{Header:C,Footer:w,Content:H,Sider:k,install:e=>(e.component(A.name,A),e.component(C.name,C),e.component(w.name,w),e.component(k.name,k),e.component(H.name,H),e)});export{Ee as LayoutContent,Te as LayoutFooter,Be as LayoutHeader,ze as LayoutSider,Re as default};
@@ -1 +1 @@
1
- import{K as Z,S as q,Q as J,g as Y,m as k,r as ee,B as te,u as le,_ as G,t as ne}from"./useConfigInject-DqhngD-R.js";import{u as oe,r as X}from"./responsiveObserve-C---VD6e.js";import{_ as c}from"./index-DlSUq1W3.js";import{c as i,i as ie,r as O,H as re,d as K,Z as se,o as ae,j as de,p as ce,a4 as F}from"./vendor-BVetwVfk.js";import{P as B}from"./index-U4Zd5IK6.js";import{c as pe}from"./vnode-B2xg11HE.js";import"./icons-srBCpwXl.js";function I(e){return e!=null}const E=e=>{const{itemPrefixCls:t,component:l,span:o,labelStyle:n,contentStyle:r,bordered:d,label:a,content:s,colon:u}=e,p=l;return d?i(p,{class:[{[`${t}-item-label`]:I(a),[`${t}-item-content`]:I(s)}],colSpan:o},{default:()=>[I(a)&&i("span",{style:n},[a]),I(s)&&i("span",{style:r},[s])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(a||a===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:n},[a]),(s||s===0)&&i("span",{class:`${t}-item-content`,style:r},[s])])]})},ue=e=>{const t=(u,p,P)=>{let{colon:m,prefixCls:x,bordered:b}=p,{component:y,type:w,showLabel:L,showContent:M,labelStyle:g,contentStyle:S}=P;return u.map((f,h)=>{var $,v;const _=f.props||{},{prefixCls:j=x,span:R=1,labelStyle:A=_["label-style"],contentStyle:H=_["content-style"],label:N=(v=($=f.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=_,W=Z(f),z=q(f),D=J(f),{key:T}=f;return typeof y=="string"?i(E,{key:`${w}-${String(T)||h}`,class:z,style:D,labelStyle:c(c({},g),A),contentStyle:c(c({},S),H),span:R,colon:m,component:y,itemPrefixCls:j,bordered:b,label:L?N:null,content:M?W:null},null):[i(E,{key:`label-${String(T)||h}`,class:z,style:c(c(c({},g),D),A),span:1,colon:m,component:y[0],itemPrefixCls:j,bordered:b,label:N},null),i(E,{key:`content-${String(T)||h}`,class:z,style:c(c(c({},S),D),H),span:R*2-1,component:y[1],itemPrefixCls:j,bordered:b,content:W},null)]})},{prefixCls:l,vertical:o,row:n,index:r,bordered:d}=e,{labelStyle:a,contentStyle:s}=ie(V,{labelStyle:O({}),contentStyle:O({})});return o?i(re,null,[i("tr",{key:`label-${r}`,class:`${l}-row`},[t(n,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),i("tr",{key:`content-${r}`,class:`${l}-row`},[t(n,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):i("tr",{key:r,class:`${l}-row`},[t(n,e,{component:d?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},me=e=>{const{componentCls:t,descriptionsSmallPadding:l,descriptionsDefaultPadding:o,descriptionsMiddlePadding:n,descriptionsBg:r}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:r,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}}}}},fe=e=>{const{componentCls:t,descriptionsExtraColor:l,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:n,descriptionsItemLabelColonMarginLeft:r,descriptionsTitleMarginBottom:d}=e;return{[t]:c(c(c({},ee(e)),me(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:d},[`${t}-title`]:c(c({},te),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${r}px ${n}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},be=Y("Descriptions",e=>{const t=e.colorFillAlter,l=e.fontSizeSM*e.lineHeightSM,o=e.colorText,n=`${e.paddingXS}px ${e.padding}px`,r=`${e.padding}px ${e.paddingLG}px`,d=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,u=e.marginXXS/2,p=k(e,{descriptionsBg:t,descriptionsTitleMarginBottom:l,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:n,descriptionsDefaultPadding:r,descriptionsMiddlePadding:d,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[fe(p)]}),Le={prefixCls:String,label:B.any,span:Number},ye=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),ge=K({compatConfig:{MODE:3},name:"ADescriptionsItem",props:ye(),setup(e,t){let{slots:l}=t;return()=>{var o;return(o=l.default)===null||o===void 0?void 0:o.call(l)}}}),Q={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Se(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let l=0;l<X.length;l++){const o=X[l];if(t[o]&&e[o]!==void 0)return e[o]||Q[o]}return 3}function U(e,t,l){let o=e;return(l===void 0||l>t)&&(o=pe(e,{span:t})),o}function $e(e,t){const l=ne(e),o=[];let n=[],r=t;return l.forEach((d,a)=>{var s;const u=(s=d.props)===null||s===void 0?void 0:s.span,p=u||1;if(a===l.length-1){n.push(U(d,r,u)),o.push(n);return}p<r?(r-=p,n.push(d)):(n.push(U(d,r,p)),o.push(n),r=t,n=[])}),o}const ve=()=>({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>Q},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),V=Symbol("descriptionsContext"),C=K({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:ve(),slots:Object,Item:ge,setup(e,t){let{slots:l,attrs:o}=t;const{prefixCls:n,direction:r}=le("descriptions",e);let d;const a=O({}),[s,u]=be(n),p=oe();se(()=>{d=p.value.subscribe(m=>{typeof e.column=="object"&&(a.value=m)})}),ae(()=>{p.value.unsubscribe(d)}),ce(V,{labelStyle:F(e,"labelStyle"),contentStyle:F(e,"contentStyle")});const P=de(()=>Se(e.column,a.value));return()=>{var m,x,b;const{size:y,bordered:w=!1,layout:L="horizontal",colon:M=!0,title:g=(m=l.title)===null||m===void 0?void 0:m.call(l),extra:S=(x=l.extra)===null||x===void 0?void 0:x.call(l)}=e,f=(b=l.default)===null||b===void 0?void 0:b.call(l),h=$e(f,P.value);return s(i("div",G(G({},o),{},{class:[n.value,{[`${n.value}-${y}`]:y!=="default",[`${n.value}-bordered`]:!!w,[`${n.value}-rtl`]:r.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${n.value}-header`},[g&&i("div",{class:`${n.value}-title`},[g]),S&&i("div",{class:`${n.value}-extra`},[S])]),i("div",{class:`${n.value}-view`},[i("table",null,[i("tbody",null,[h.map(($,v)=>i(ue,{key:v,index:v,colon:M,prefixCls:n.value,vertical:L==="vertical",bordered:w,row:$},null))])])])]))}}});C.install=function(e){return e.component(C.name,C),e.component(C.Item.name,C.Item),e};export{ge as DescriptionsItem,Le as DescriptionsItemProps,C as default,V as descriptionsContext,ve as descriptionsProps};
1
+ import{M as J,T as K,R as Q,g as Y,m as k,r as ee,B as te,u as le,_ as G,t as ne}from"./useConfigInject-DIKG5Y4I.js";import{u as oe,r as X}from"./responsiveObserve-BDt6Mlnb.js";import{_ as c}from"./index-DPaLf3-g.js";import{c as i,i as ie,r as O,H as re,d as V,Z as se,o as ae,j as de,p as ce,a4 as F}from"./vendor-BVetwVfk.js";import{P as B}from"./index-U4Zd5IK6.js";import{c as pe}from"./vnode-Cryb4eNl.js";import"./icons-E3MGhN6s.js";function I(e){return e!=null}const E=e=>{const{itemPrefixCls:t,component:l,span:o,labelStyle:n,contentStyle:r,bordered:d,label:a,content:s,colon:u}=e,p=l;return d?i(p,{class:[{[`${t}-item-label`]:I(a),[`${t}-item-content`]:I(s)}],colSpan:o},{default:()=>[I(a)&&i("span",{style:n},[a]),I(s)&&i("span",{style:r},[s])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(a||a===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:n},[a]),(s||s===0)&&i("span",{class:`${t}-item-content`,style:r},[s])])]})},ue=e=>{const t=(u,p,P)=>{let{colon:m,prefixCls:x,bordered:b}=p,{component:y,type:w,showLabel:L,showContent:M,labelStyle:g,contentStyle:S}=P;return u.map((f,h)=>{var $,v;const _=f.props||{},{prefixCls:T=x,span:R=1,labelStyle:A=_["label-style"],contentStyle:H=_["content-style"],label:N=(v=($=f.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=_,W=J(f),j=K(f),z=Q(f),{key:D}=f;return typeof y=="string"?i(E,{key:`${w}-${String(D)||h}`,class:j,style:z,labelStyle:c(c({},g),A),contentStyle:c(c({},S),H),span:R,colon:m,component:y,itemPrefixCls:T,bordered:b,label:L?N:null,content:M?W:null},null):[i(E,{key:`label-${String(D)||h}`,class:j,style:c(c(c({},g),z),A),span:1,colon:m,component:y[0],itemPrefixCls:T,bordered:b,label:N},null),i(E,{key:`content-${String(D)||h}`,class:j,style:c(c(c({},S),z),H),span:R*2-1,component:y[1],itemPrefixCls:T,bordered:b,content:W},null)]})},{prefixCls:l,vertical:o,row:n,index:r,bordered:d}=e,{labelStyle:a,contentStyle:s}=ie(q,{labelStyle:O({}),contentStyle:O({})});return o?i(re,null,[i("tr",{key:`label-${r}`,class:`${l}-row`},[t(n,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),i("tr",{key:`content-${r}`,class:`${l}-row`},[t(n,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):i("tr",{key:r,class:`${l}-row`},[t(n,e,{component:d?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},me=e=>{const{componentCls:t,descriptionsSmallPadding:l,descriptionsDefaultPadding:o,descriptionsMiddlePadding:n,descriptionsBg:r}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:r,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}}}}},fe=e=>{const{componentCls:t,descriptionsExtraColor:l,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:n,descriptionsItemLabelColonMarginLeft:r,descriptionsTitleMarginBottom:d}=e;return{[t]:c(c(c({},ee(e)),me(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:d},[`${t}-title`]:c(c({},te),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${r}px ${n}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},be=Y("Descriptions",e=>{const t=e.colorFillAlter,l=e.fontSizeSM*e.lineHeightSM,o=e.colorText,n=`${e.paddingXS}px ${e.padding}px`,r=`${e.padding}px ${e.paddingLG}px`,d=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,u=e.marginXXS/2,p=k(e,{descriptionsBg:t,descriptionsTitleMarginBottom:l,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:n,descriptionsDefaultPadding:r,descriptionsMiddlePadding:d,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[fe(p)]}),Le={prefixCls:String,label:B.any,span:Number},ye=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),ge=V({compatConfig:{MODE:3},name:"ADescriptionsItem",props:ye(),setup(e,t){let{slots:l}=t;return()=>{var o;return(o=l.default)===null||o===void 0?void 0:o.call(l)}}}),Z={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Se(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let l=0;l<X.length;l++){const o=X[l];if(t[o]&&e[o]!==void 0)return e[o]||Z[o]}return 3}function U(e,t,l){let o=e;return(l===void 0||l>t)&&(o=pe(e,{span:t})),o}function $e(e,t){const l=ne(e),o=[];let n=[],r=t;return l.forEach((d,a)=>{var s;const u=(s=d.props)===null||s===void 0?void 0:s.span,p=u||1;if(a===l.length-1){n.push(U(d,r,u)),o.push(n);return}p<r?(r-=p,n.push(d)):(n.push(U(d,r,p)),o.push(n),r=t,n=[])}),o}const ve=()=>({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>Z},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),q=Symbol("descriptionsContext"),C=V({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:ve(),slots:Object,Item:ge,setup(e,t){let{slots:l,attrs:o}=t;const{prefixCls:n,direction:r}=le("descriptions",e);let d;const a=O({}),[s,u]=be(n),p=oe();se(()=>{d=p.value.subscribe(m=>{typeof e.column=="object"&&(a.value=m)})}),ae(()=>{p.value.unsubscribe(d)}),ce(q,{labelStyle:F(e,"labelStyle"),contentStyle:F(e,"contentStyle")});const P=de(()=>Se(e.column,a.value));return()=>{var m,x,b;const{size:y,bordered:w=!1,layout:L="horizontal",colon:M=!0,title:g=(m=l.title)===null||m===void 0?void 0:m.call(l),extra:S=(x=l.extra)===null||x===void 0?void 0:x.call(l)}=e,f=(b=l.default)===null||b===void 0?void 0:b.call(l),h=$e(f,P.value);return s(i("div",G(G({},o),{},{class:[n.value,{[`${n.value}-${y}`]:y!=="default",[`${n.value}-bordered`]:!!w,[`${n.value}-rtl`]:r.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${n.value}-header`},[g&&i("div",{class:`${n.value}-title`},[g]),S&&i("div",{class:`${n.value}-extra`},[S])]),i("div",{class:`${n.value}-view`},[i("table",null,[i("tbody",null,[h.map(($,v)=>i(ue,{key:v,index:v,colon:M,prefixCls:n.value,vertical:L==="vertical",bordered:w,row:$},null))])])])]))}}});C.install=function(e){return e.component(C.name,C),e.component(C.Item.name,C.Item),e};export{ge as DescriptionsItem,Le as DescriptionsItemProps,C as default,q as descriptionsContext,ve as descriptionsProps};
@@ -1,4 +1,4 @@
1
- import{t as lt,_ as B,z as it,c as ye,G as Ne,A as rt,H as ht,B as It,g as St,m as je,q as Ve,r as Ct,d as xt,u as Mt}from"./useConfigInject-DqhngD-R.js";import{_ as p,o as Ae}from"./index-DlSUq1W3.js";import{U as We,i as de,d as J,a4 as Ge,p as ge,j as m,o as he,w as X,c as f,g as at,s as H,r as F,$ as wt,a0 as Kt,a1 as Ot,H as Ee,l as Tt,f as Te,u as be,T as kt}from"./vendor-BVetwVfk.js";import{d as Ie}from"./devWarning-CNIS3FrJ.js";import{s as st,S as Pt,c as Bt,T as Et}from"./Trigger-DmhLeltH.js";import{a as Dt}from"./_arrayIncludes-B8uzE354.js";import{n as ke}from"./_getTag-CWA3v-Ds.js";import{S as At}from"./injectionKey-BXVc-oGP.js";import{O as fe}from"./Overflow-BYKMeaWJ.js";import{P as Se}from"./index-U4Zd5IK6.js";import{c as _e}from"./vnode-B2xg11HE.js";import{T as _t}from"./index-C8LBTJ8l.js";import{K as Rt}from"./KeyCode-D63Tfrq7.js";import{w as Pe}from"./raf-Deuc0E8-.js";import{a as Ht}from"./transition-D2wU6PAY.js";import{T as Xe,aH as zt}from"./icons-srBCpwXl.js";import{g as Ft,c as Lt}from"./collapseMotion-D3P4mRvK.js";import{i as Ye}from"./slide-hr0X8KAK.js";import{i as Nt}from"./zoom-BGImMPSi.js";import{a as jt}from"./OverrideContext-DEW2m7K6.js";import"./warning-Pq00owYb.js";import"./motion-CrLibvjP.js";import"./Portal-CHsntPCQ.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./index-BWtxplKf.js";import"./placementArrow-UtY5srm7.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-Iv3ft_s8.js";import"./initDefaultProps-BcWs5QbR.js";import"./Keyframes-C7fCrnlS.js";function Vt(){}var Wt=1/0,Gt=ke&&1/st(new ke([,-0]))[1]==Wt?function(t){return new ke(t)}:Vt,Xt=200;function Yt(t,n,e){var o=-1,l=Dt,u=t.length,c=!0,i=[],s=i;if(u>=Xt){var v=Gt(t);if(v)return st(v);c=!1,l=Bt,s=new Pt}else s=i;e:for(;++o<u;){var d=t[o],r=d;if(d=d!==0?d:0,c&&r===r){for(var $=s.length;$--;)if(s[$]===r)continue e;i.push(d)}else l(s,r,e)||(s!==i&&s.push(r),i.push(d))}return i}function Be(t){return t&&t.length?Yt(t):[]}function Ut(t,n,e,o){let l;if(l!==void 0)return!!l;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;const u=Object.keys(t),c=Object.keys(n);if(u.length!==c.length)return!1;const i=Object.prototype.hasOwnProperty.bind(n);for(let s=0;s<u.length;s++){const v=u[s];if(!i(v))return!1;const d=t[v],r=n[v];if(l=void 0,l===!1||l===void 0&&d!==r)return!1}return!0}function ve(t,n){return Ut(We(t),We(n))}const ut=Symbol("menuContextKey"),ct=t=>{ge(ut,t)},Q=()=>de(ut),dt=Symbol("ForceRenderKey"),qt=t=>{ge(dt,t)},mt=()=>de(dt,!1),vt=Symbol("menuFirstLevelContextKey"),ft=t=>{ge(vt,t)},Zt=()=>de(vt,!0),Ce=J({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,n){let{slots:e}=n;const o=Q(),l=p({},o);return t.mode!==void 0&&(l.mode=Ge(t,"mode")),t.overflowDisabled!==void 0&&(l.overflowDisabled=Ge(t,"overflowDisabled")),ct(l),()=>{var u;return(u=e.default)===null||u===void 0?void 0:u.call(e)}}}),$e="$$__vc-menu-more__key",pt=Symbol("KeyPathContext"),Re=()=>de(pt,{parentEventKeys:m(()=>[]),parentKeys:m(()=>[]),parentInfo:{}}),Jt=(t,n,e)=>{const{parentEventKeys:o,parentKeys:l}=Re(),u=m(()=>[...o.value,t]),c=m(()=>[...l.value,n]);return ge(pt,{parentEventKeys:u,parentKeys:c,parentInfo:e}),c},gt=Symbol("measure"),Ue=J({compatConfig:{MODE:3},setup(t,n){let{slots:e}=n;return ge(gt,!0),()=>{var o;return(o=e.default)===null||o===void 0?void 0:o.call(e)}}}),He=()=>de(gt,!1);function bt(t){const{mode:n,rtl:e,inlineIndent:o}=Q();return m(()=>n.value!=="inline"?null:e.value?{paddingRight:`${t.value*o.value}px`}:{paddingLeft:`${t.value*o.value}px`})}let Qt=0;const en=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Se.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Ae()}),pe=J({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:en(),slots:Object,setup(t,n){let{slots:e,emit:o,attrs:l}=n;const u=at(),c=He(),i=typeof u.vnode.key=="symbol"?String(u.vnode.key):u.vnode.key;Ie(typeof u.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(i)}"\` not support Symbol type`);const s=`menu_item_${++Qt}_$$_${i}`,{parentEventKeys:v,parentKeys:d}=Re(),{prefixCls:r,activeKeys:$,disabled:y,changeActiveKeys:g,rtl:C,inlineCollapsed:x,siderCollapsed:k,onItemClick:K,selectedKeys:L,registerMenuInfo:q,unRegisterMenuInfo:I}=Q(),O=Zt(),R=H(!1),_=m(()=>[...d.value,i]);q(s,{eventKey:s,key:i,parentEventKeys:v,parentKeys:d,isLeaf:!0}),he(()=>{I(s)}),X($,()=>{R.value=!!$.value.find(h=>h===i)},{immediate:!0});const T=m(()=>y.value||t.disabled),V=m(()=>L.value.includes(i)),W=m(()=>{const h=`${r.value}-item`;return{[`${h}`]:!0,[`${h}-danger`]:t.danger,[`${h}-active`]:R.value,[`${h}-selected`]:V.value,[`${h}-disabled`]:T.value}}),Y=h=>({key:i,eventKey:s,keyPath:_.value,eventKeyPath:[...v.value,s],domEvent:h,item:p(p({},t),l)}),re=h=>{if(T.value)return;const E=Y(h);o("click",h),K(E)},ae=h=>{T.value||(g(_.value),o("mouseenter",h))},ee=h=>{T.value||(g([]),o("mouseleave",h))},te=h=>{if(o("keydown",h),h.which===Rt.ENTER){const E=Y(h);o("click",h),K(E)}},se=h=>{g(_.value),o("focus",h)},N=(h,E)=>{const z=f("span",{class:`${r.value}-title-content`},[E]);return(!h||it(E)&&E.type==="span")&&E&&x.value&&O&&typeof E=="string"?f("div",{class:`${r.value}-inline-collapsed-noicon`},[E.charAt(0)]):z},me=bt(m(()=>_.value.length));return()=>{var h,E,z,Z,ne;if(c)return null;const U=(h=t.title)!==null&&h!==void 0?h:(E=e.title)===null||E===void 0?void 0:E.call(e),a=lt((z=e.default)===null||z===void 0?void 0:z.call(e)),b=a.length;let M=U;typeof U>"u"?M=O&&b?a:"":U===!1&&(M="");const P={title:M};!k.value&&!x.value&&(P.title=null,P.open=!1);const D={};t.role==="option"&&(D["aria-selected"]=V.value);const w=(Z=t.icon)!==null&&Z!==void 0?Z:(ne=e.icon)===null||ne===void 0?void 0:ne.call(e,t);return f(_t,B(B({},P),{},{placement:C.value?"left":"right",overlayClassName:`${r.value}-inline-collapsed-tooltip`}),{default:()=>[f(fe.Item,B(B(B({component:"li"},l),{},{id:t.id,style:p(p({},l.style||{}),me.value),class:[W.value,{[`${l.class}`]:!!l.class,[`${r.value}-item-only-child`]:(w?b+1:b)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":i,"aria-disabled":t.disabled},D),{},{onMouseenter:ae,onMouseleave:ee,onClick:re,onKeydown:te,onFocus:se,title:typeof U=="string"?U:void 0}),{default:()=>[_e(typeof w=="function"?w(t.originItemValue):w,{class:`${r.value}-item-icon`},!1),N(w,a)]})]})}}}),le={adjustX:1,adjustY:1},tn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},nn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},on={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},qe=J({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(t,n){let{slots:e,emit:o}=n;const l=H(!1),{getPopupContainer:u,rtl:c,subMenuOpenDelay:i,subMenuCloseDelay:s,builtinPlacements:v,triggerSubMenuAction:d,forceSubMenuRender:r,motion:$,defaultMotions:y,rootClassName:g}=Q(),C=mt(),x=m(()=>c.value?p(p({},nn),v.value):p(p({},tn),v.value)),k=m(()=>on[t.mode]),K=H();X(()=>t.visible,I=>{Pe.cancel(K.value),K.value=Pe(()=>{l.value=I})},{immediate:!0}),he(()=>{Pe.cancel(K.value)});const L=I=>{o("visibleChange",I)},q=m(()=>{var I,O;const R=$.value||((I=y.value)===null||I===void 0?void 0:I[t.mode])||((O=y.value)===null||O===void 0?void 0:O.other),_=typeof R=="function"?R():R;return _?Ht(_.name,{css:!0}):void 0});return()=>{const{prefixCls:I,popupClassName:O,mode:R,popupOffset:_,disabled:j}=t;return f(Et,{prefixCls:I,popupClassName:ye(`${I}-popup`,{[`${I}-rtl`]:c.value},O,g.value),stretch:R==="horizontal"?"minWidth":null,getPopupContainer:u.value,builtinPlacements:x.value,popupPlacement:k.value,popupVisible:l.value,popupAlign:_&&{offset:_},action:j?[]:[d.value],mouseEnterDelay:i.value,mouseLeaveDelay:s.value,onPopupVisibleChange:L,forceRender:C||r.value,popupAnimation:q.value},{popup:e.popup,default:e.default})}}}),ze=(t,n)=>{let{slots:e,attrs:o}=n;var l;const{prefixCls:u,mode:c}=Q();return f("ul",B(B({},o),{},{class:ye(u.value,`${u.value}-sub`,`${u.value}-${c.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(l=e.default)===null||l===void 0?void 0:l.call(e)])};ze.displayName="SubMenuList";const ln=J({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,n){let{slots:e}=n;const o=m(()=>"inline"),{motion:l,mode:u,defaultMotions:c}=Q(),i=m(()=>u.value===o.value),s=F(!i.value),v=m(()=>i.value?t.open:!1);X(u,()=>{i.value&&(s.value=!1)},{flush:"post"});const d=m(()=>{var r,$;const y=l.value||((r=c.value)===null||r===void 0?void 0:r[o.value])||(($=c.value)===null||$===void 0?void 0:$.other),g=typeof y=="function"?y():y;return p(p({},g),{appear:t.keyPath.length<=1})});return()=>{var r;return s.value?null:f(Ce,{mode:o.value},{default:()=>[f(wt,d.value,{default:()=>[Kt(f(ze,{id:t.id},{default:()=>[(r=e.default)===null||r===void 0?void 0:r.call(e)]}),[[Ot,v.value]])]})]})}}});let Ze=0;const rn=()=>({icon:Se.any,title:Se.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Ae()}),ce=J({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:rn(),slots:Object,setup(t,n){let{slots:e,attrs:o,emit:l}=n;var u,c;ft(!1);const i=He(),s=at(),v=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;Ie(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(v)}"\` not support Symbol type`);const d=Ne(v)?v:`sub_menu_${++Ze}_$$_not_set_key`,r=(u=t.eventKey)!==null&&u!==void 0?u:Ne(v)?`sub_menu_${++Ze}_$$_${v}`:d,{parentEventKeys:$,parentInfo:y,parentKeys:g}=Re(),C=m(()=>[...g.value,d]),x=H([]),k={eventKey:r,key:d,parentEventKeys:$,childrenEventKeys:x,parentKeys:g};(c=y.childrenEventKeys)===null||c===void 0||c.value.push(r),he(()=>{var S;y.childrenEventKeys&&(y.childrenEventKeys.value=(S=y.childrenEventKeys)===null||S===void 0?void 0:S.value.filter(A=>A!=r))}),Jt(r,d,k);const{prefixCls:K,activeKeys:L,disabled:q,changeActiveKeys:I,mode:O,inlineCollapsed:R,openKeys:_,overflowDisabled:j,onOpenChange:T,registerMenuInfo:V,unRegisterMenuInfo:W,selectedSubMenuKeys:Y,expandIcon:re,theme:ae}=Q(),ee=v!=null,te=!i&&(mt()||!ee);qt(te),(i&&ee||!i&&!ee||te)&&(V(r,k),he(()=>{W(r)}));const se=m(()=>`${K.value}-submenu`),N=m(()=>q.value||t.disabled),me=H(),h=H(),E=m(()=>_.value.includes(d)),z=m(()=>!j.value&&E.value),Z=m(()=>Y.value.includes(d)),ne=H(!1);X(L,()=>{ne.value=!!L.value.find(S=>S===d)},{immediate:!0});const U=S=>{N.value||(l("titleClick",S,d),O.value==="inline"&&T(d,!E.value))},a=S=>{N.value||(I(C.value),l("mouseenter",S))},b=S=>{N.value||(I([]),l("mouseleave",S))},M=bt(m(()=>C.value.length)),P=S=>{O.value!=="inline"&&T(d,S)},D=()=>{I(C.value)},w=r&&`${r}-popup`,G=m(()=>ye(K.value,`${K.value}-${t.theme||ae.value}`,t.popupClassName)),ue=(S,A)=>{if(!A)return R.value&&!g.value.length&&S&&typeof S=="string"?f("div",{class:`${K.value}-inline-collapsed-noicon`},[S.charAt(0)]):f("span",{class:`${K.value}-title-content`},[S]);const oe=it(S)&&S.type==="span";return f(Ee,null,[_e(typeof A=="function"?A(t.originItemValue):A,{class:`${K.value}-item-icon`},!1),oe?S:f("span",{class:`${K.value}-title-content`},[S])])},we=m(()=>O.value!=="inline"&&C.value.length>1?"vertical":O.value),$t=m(()=>O.value==="horizontal"?"vertical":O.value),yt=m(()=>we.value==="horizontal"?"vertical":we.value),Fe=()=>{var S,A;const oe=se.value,Ke=(S=t.icon)!==null&&S!==void 0?S:(A=e.icon)===null||A===void 0?void 0:A.call(e,t),Le=t.expandIcon||e.expandIcon||re.value,Oe=ue(rt(e,t,"title"),Ke);return f("div",{style:M.value,class:`${oe}-title`,tabindex:N.value?null:-1,ref:me,title:typeof Oe=="string"?Oe:null,"data-menu-id":d,"aria-expanded":z.value,"aria-haspopup":!0,"aria-controls":w,"aria-disabled":N.value,onClick:U,onFocus:D},[Oe,O.value!=="horizontal"&&Le?Le(p(p({},t),{isOpen:z.value})):f("i",{class:`${oe}-arrow`},null)])};return()=>{var S;if(i)return ee?(S=e.default)===null||S===void 0?void 0:S.call(e):null;const A=se.value;let oe=()=>null;if(!j.value&&O.value!=="inline"){const Ke=O.value==="horizontal"?[0,8]:[10,0];oe=()=>f(qe,{mode:we.value,prefixCls:A,visible:!t.internalPopupClose&&z.value,popupClassName:G.value,popupOffset:t.popupOffset||Ke,disabled:N.value,onVisibleChange:P},{default:()=>[Fe()],popup:()=>f(Ce,{mode:yt.value},{default:()=>[f(ze,{id:w,ref:h},{default:e.default})]})})}else oe=()=>f(qe,null,{default:Fe});return f(Ce,{mode:$t.value},{default:()=>[f(fe.Item,B(B({component:"li"},o),{},{role:"none",class:ye(A,`${A}-${O.value}`,o.class,{[`${A}-open`]:z.value,[`${A}-active`]:ne.value,[`${A}-selected`]:Z.value,[`${A}-disabled`]:N.value}),onMouseenter:a,onMouseleave:b,"data-submenu-id":d}),{default:()=>f(Ee,null,[oe(),!j.value&&f(ln,{id:w,open:z.value,keyPath:C.value},{default:e.default})])})]})}}}),an=()=>({title:Se.any,originItemValue:Ae()}),xe=J({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:an(),slots:Object,setup(t,n){let{slots:e,attrs:o}=n;const{prefixCls:l}=Q(),u=m(()=>`${l.value}-item-group`),c=He();return()=>{var i,s;return c?(i=e.default)===null||i===void 0?void 0:i.call(e):f("li",B(B({},o),{},{onClick:v=>v.stopPropagation(),class:u.value}),[f("div",{title:typeof t.title=="string"?t.title:void 0,class:`${u.value}-title`},[rt(e,t,"title")]),f("ul",{class:`${u.value}-list`},[(s=e.default)===null||s===void 0?void 0:s.call(e)])])}}}),sn=()=>({prefixCls:String,dashed:Boolean}),Me=J({compatConfig:{MODE:3},name:"AMenuDivider",props:sn(),setup(t){const{prefixCls:n}=Q(),e=m(()=>({[`${n.value}-item-divider`]:!0,[`${n.value}-item-divider-dashed`]:!!t.dashed}));return()=>f("li",{class:e.value},null)}});var un=function(t,n){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(e[o[l]]=t[o[l]]);return e};function De(t,n,e){return(t||[]).map((o,l)=>{if(o&&typeof o=="object"){const u=o,{label:c,children:i,key:s,type:v}=u,d=un(u,["label","children","key","type"]),r=s??`tmp-${l}`,$=e?e.parentKeys.slice():[],y=[],g={eventKey:r,key:r,parentEventKeys:F($),parentKeys:F($),childrenEventKeys:F(y),isLeaf:!1};if(i||v==="group"){if(v==="group"){const x=De(i,n,e);return f(xe,B(B({key:r},d),{},{title:c,originItemValue:o}),{default:()=>[x]})}n.set(r,g),e&&e.childrenEventKeys.push(r);const C=De(i,n,{childrenEventKeys:y,parentKeys:[].concat($,r)});return f(ce,B(B({key:r},d),{},{title:c,originItemValue:o}),{default:()=>[C]})}return v==="divider"?f(Me,B({key:r},d),null):(g.isLeaf=!0,n.set(r,g),f(pe,B(B({key:r},d),{},{originItemValue:o}),{default:()=>[c]}))}return null}).filter(o=>o)}function cn(t){const n=H([]),e=H(!1),o=H(new Map);return X(()=>t.items,()=>{const l=new Map;e.value=!1,t.items?(e.value=!0,n.value=De(t.items,l)):n.value=void 0,o.value=l},{immediate:!0,deep:!0}),{itemsNodes:n,store:o,hasItmes:e}}const dn=t=>{const{componentCls:n,motionDurationSlow:e,menuHorizontalHeight:o,colorSplit:l,lineWidth:u,lineType:c,menuItemPaddingInline:i}=t;return{[`${n}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${u}px ${c} ${l}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${n}-item:hover,
1
+ import{t as lt,_ as B,z as it,c as ye,H as Ne,A as rt,I as ht,B as It,g as St,m as je,q as Ve,r as Ct,d as xt,u as Mt}from"./useConfigInject-DIKG5Y4I.js";import{_ as p,o as Ae}from"./index-DPaLf3-g.js";import{U as We,i as de,d as J,a4 as Ge,p as ge,j as m,o as he,w as X,c as f,g as at,s as H,r as F,$ as wt,a0 as Kt,a1 as Ot,H as Ee,l as Tt,f as Te,u as be,T as kt}from"./vendor-BVetwVfk.js";import{d as Ie}from"./devWarning-CNIS3FrJ.js";import{s as st,S as Pt,c as Bt,T as Et}from"./Trigger-BIXZjkDZ.js";import{a as Dt}from"./_arrayIncludes-B8uzE354.js";import{n as ke}from"./_getTag-CWA3v-Ds.js";import{S as At}from"./injectionKey-BXVc-oGP.js";import{O as fe}from"./Overflow-CFLJpWAb.js";import{P as Se}from"./index-U4Zd5IK6.js";import{c as _e}from"./vnode-Cryb4eNl.js";import{T as _t}from"./index-Cwuee4M2.js";import{K as Rt}from"./KeyCode-D63Tfrq7.js";import{w as Pe}from"./raf-Deuc0E8-.js";import{a as Ht}from"./transition-atE2sWdv.js";import{T as Xe,aO as zt}from"./icons-E3MGhN6s.js";import{g as Ft,c as Lt}from"./collapseMotion-D3P4mRvK.js";import{i as Ye}from"./slide-B1oHu6JW.js";import{i as Nt}from"./zoom-zuDCIwwE.js";import{a as jt}from"./OverrideContext-DEW2m7K6.js";import"./warning-Pq00owYb.js";import"./motion-BflWvLDD.js";import"./Portal-CHsntPCQ.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./index-BeI4fOXN.js";import"./placementArrow-y75Pew0G.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-WgDc41S9.js";import"./initDefaultProps-C1zn_AKT.js";import"./Keyframes-C7fCrnlS.js";function Vt(){}var Wt=1/0,Gt=ke&&1/st(new ke([,-0]))[1]==Wt?function(t){return new ke(t)}:Vt,Xt=200;function Yt(t,n,e){var o=-1,l=Dt,u=t.length,c=!0,i=[],s=i;if(u>=Xt){var v=Gt(t);if(v)return st(v);c=!1,l=Bt,s=new Pt}else s=i;e:for(;++o<u;){var d=t[o],r=d;if(d=d!==0?d:0,c&&r===r){for(var $=s.length;$--;)if(s[$]===r)continue e;i.push(d)}else l(s,r,e)||(s!==i&&s.push(r),i.push(d))}return i}function Be(t){return t&&t.length?Yt(t):[]}function Ut(t,n,e,o){let l;if(l!==void 0)return!!l;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;const u=Object.keys(t),c=Object.keys(n);if(u.length!==c.length)return!1;const i=Object.prototype.hasOwnProperty.bind(n);for(let s=0;s<u.length;s++){const v=u[s];if(!i(v))return!1;const d=t[v],r=n[v];if(l=void 0,l===!1||l===void 0&&d!==r)return!1}return!0}function ve(t,n){return Ut(We(t),We(n))}const ut=Symbol("menuContextKey"),ct=t=>{ge(ut,t)},Q=()=>de(ut),dt=Symbol("ForceRenderKey"),qt=t=>{ge(dt,t)},mt=()=>de(dt,!1),vt=Symbol("menuFirstLevelContextKey"),ft=t=>{ge(vt,t)},Zt=()=>de(vt,!0),Ce=J({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,n){let{slots:e}=n;const o=Q(),l=p({},o);return t.mode!==void 0&&(l.mode=Ge(t,"mode")),t.overflowDisabled!==void 0&&(l.overflowDisabled=Ge(t,"overflowDisabled")),ct(l),()=>{var u;return(u=e.default)===null||u===void 0?void 0:u.call(e)}}}),$e="$$__vc-menu-more__key",pt=Symbol("KeyPathContext"),Re=()=>de(pt,{parentEventKeys:m(()=>[]),parentKeys:m(()=>[]),parentInfo:{}}),Jt=(t,n,e)=>{const{parentEventKeys:o,parentKeys:l}=Re(),u=m(()=>[...o.value,t]),c=m(()=>[...l.value,n]);return ge(pt,{parentEventKeys:u,parentKeys:c,parentInfo:e}),c},gt=Symbol("measure"),Ue=J({compatConfig:{MODE:3},setup(t,n){let{slots:e}=n;return ge(gt,!0),()=>{var o;return(o=e.default)===null||o===void 0?void 0:o.call(e)}}}),He=()=>de(gt,!1);function bt(t){const{mode:n,rtl:e,inlineIndent:o}=Q();return m(()=>n.value!=="inline"?null:e.value?{paddingRight:`${t.value*o.value}px`}:{paddingLeft:`${t.value*o.value}px`})}let Qt=0;const en=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Se.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Ae()}),pe=J({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:en(),slots:Object,setup(t,n){let{slots:e,emit:o,attrs:l}=n;const u=at(),c=He(),i=typeof u.vnode.key=="symbol"?String(u.vnode.key):u.vnode.key;Ie(typeof u.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(i)}"\` not support Symbol type`);const s=`menu_item_${++Qt}_$$_${i}`,{parentEventKeys:v,parentKeys:d}=Re(),{prefixCls:r,activeKeys:$,disabled:y,changeActiveKeys:g,rtl:C,inlineCollapsed:x,siderCollapsed:k,onItemClick:K,selectedKeys:L,registerMenuInfo:q,unRegisterMenuInfo:I}=Q(),O=Zt(),R=H(!1),_=m(()=>[...d.value,i]);q(s,{eventKey:s,key:i,parentEventKeys:v,parentKeys:d,isLeaf:!0}),he(()=>{I(s)}),X($,()=>{R.value=!!$.value.find(h=>h===i)},{immediate:!0});const T=m(()=>y.value||t.disabled),V=m(()=>L.value.includes(i)),W=m(()=>{const h=`${r.value}-item`;return{[`${h}`]:!0,[`${h}-danger`]:t.danger,[`${h}-active`]:R.value,[`${h}-selected`]:V.value,[`${h}-disabled`]:T.value}}),Y=h=>({key:i,eventKey:s,keyPath:_.value,eventKeyPath:[...v.value,s],domEvent:h,item:p(p({},t),l)}),re=h=>{if(T.value)return;const E=Y(h);o("click",h),K(E)},ae=h=>{T.value||(g(_.value),o("mouseenter",h))},ee=h=>{T.value||(g([]),o("mouseleave",h))},te=h=>{if(o("keydown",h),h.which===Rt.ENTER){const E=Y(h);o("click",h),K(E)}},se=h=>{g(_.value),o("focus",h)},N=(h,E)=>{const z=f("span",{class:`${r.value}-title-content`},[E]);return(!h||it(E)&&E.type==="span")&&E&&x.value&&O&&typeof E=="string"?f("div",{class:`${r.value}-inline-collapsed-noicon`},[E.charAt(0)]):z},me=bt(m(()=>_.value.length));return()=>{var h,E,z,Z,ne;if(c)return null;const U=(h=t.title)!==null&&h!==void 0?h:(E=e.title)===null||E===void 0?void 0:E.call(e),a=lt((z=e.default)===null||z===void 0?void 0:z.call(e)),b=a.length;let M=U;typeof U>"u"?M=O&&b?a:"":U===!1&&(M="");const P={title:M};!k.value&&!x.value&&(P.title=null,P.open=!1);const D={};t.role==="option"&&(D["aria-selected"]=V.value);const w=(Z=t.icon)!==null&&Z!==void 0?Z:(ne=e.icon)===null||ne===void 0?void 0:ne.call(e,t);return f(_t,B(B({},P),{},{placement:C.value?"left":"right",overlayClassName:`${r.value}-inline-collapsed-tooltip`}),{default:()=>[f(fe.Item,B(B(B({component:"li"},l),{},{id:t.id,style:p(p({},l.style||{}),me.value),class:[W.value,{[`${l.class}`]:!!l.class,[`${r.value}-item-only-child`]:(w?b+1:b)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":i,"aria-disabled":t.disabled},D),{},{onMouseenter:ae,onMouseleave:ee,onClick:re,onKeydown:te,onFocus:se,title:typeof U=="string"?U:void 0}),{default:()=>[_e(typeof w=="function"?w(t.originItemValue):w,{class:`${r.value}-item-icon`},!1),N(w,a)]})]})}}}),le={adjustX:1,adjustY:1},tn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},nn={topLeft:{points:["bl","tl"],overflow:le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:le,offset:[4,0]}},on={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},qe=J({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(t,n){let{slots:e,emit:o}=n;const l=H(!1),{getPopupContainer:u,rtl:c,subMenuOpenDelay:i,subMenuCloseDelay:s,builtinPlacements:v,triggerSubMenuAction:d,forceSubMenuRender:r,motion:$,defaultMotions:y,rootClassName:g}=Q(),C=mt(),x=m(()=>c.value?p(p({},nn),v.value):p(p({},tn),v.value)),k=m(()=>on[t.mode]),K=H();X(()=>t.visible,I=>{Pe.cancel(K.value),K.value=Pe(()=>{l.value=I})},{immediate:!0}),he(()=>{Pe.cancel(K.value)});const L=I=>{o("visibleChange",I)},q=m(()=>{var I,O;const R=$.value||((I=y.value)===null||I===void 0?void 0:I[t.mode])||((O=y.value)===null||O===void 0?void 0:O.other),_=typeof R=="function"?R():R;return _?Ht(_.name,{css:!0}):void 0});return()=>{const{prefixCls:I,popupClassName:O,mode:R,popupOffset:_,disabled:j}=t;return f(Et,{prefixCls:I,popupClassName:ye(`${I}-popup`,{[`${I}-rtl`]:c.value},O,g.value),stretch:R==="horizontal"?"minWidth":null,getPopupContainer:u.value,builtinPlacements:x.value,popupPlacement:k.value,popupVisible:l.value,popupAlign:_&&{offset:_},action:j?[]:[d.value],mouseEnterDelay:i.value,mouseLeaveDelay:s.value,onPopupVisibleChange:L,forceRender:C||r.value,popupAnimation:q.value},{popup:e.popup,default:e.default})}}}),ze=(t,n)=>{let{slots:e,attrs:o}=n;var l;const{prefixCls:u,mode:c}=Q();return f("ul",B(B({},o),{},{class:ye(u.value,`${u.value}-sub`,`${u.value}-${c.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(l=e.default)===null||l===void 0?void 0:l.call(e)])};ze.displayName="SubMenuList";const ln=J({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,n){let{slots:e}=n;const o=m(()=>"inline"),{motion:l,mode:u,defaultMotions:c}=Q(),i=m(()=>u.value===o.value),s=F(!i.value),v=m(()=>i.value?t.open:!1);X(u,()=>{i.value&&(s.value=!1)},{flush:"post"});const d=m(()=>{var r,$;const y=l.value||((r=c.value)===null||r===void 0?void 0:r[o.value])||(($=c.value)===null||$===void 0?void 0:$.other),g=typeof y=="function"?y():y;return p(p({},g),{appear:t.keyPath.length<=1})});return()=>{var r;return s.value?null:f(Ce,{mode:o.value},{default:()=>[f(wt,d.value,{default:()=>[Kt(f(ze,{id:t.id},{default:()=>[(r=e.default)===null||r===void 0?void 0:r.call(e)]}),[[Ot,v.value]])]})]})}}});let Ze=0;const rn=()=>({icon:Se.any,title:Se.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Ae()}),ce=J({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:rn(),slots:Object,setup(t,n){let{slots:e,attrs:o,emit:l}=n;var u,c;ft(!1);const i=He(),s=at(),v=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;Ie(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(v)}"\` not support Symbol type`);const d=Ne(v)?v:`sub_menu_${++Ze}_$$_not_set_key`,r=(u=t.eventKey)!==null&&u!==void 0?u:Ne(v)?`sub_menu_${++Ze}_$$_${v}`:d,{parentEventKeys:$,parentInfo:y,parentKeys:g}=Re(),C=m(()=>[...g.value,d]),x=H([]),k={eventKey:r,key:d,parentEventKeys:$,childrenEventKeys:x,parentKeys:g};(c=y.childrenEventKeys)===null||c===void 0||c.value.push(r),he(()=>{var S;y.childrenEventKeys&&(y.childrenEventKeys.value=(S=y.childrenEventKeys)===null||S===void 0?void 0:S.value.filter(A=>A!=r))}),Jt(r,d,k);const{prefixCls:K,activeKeys:L,disabled:q,changeActiveKeys:I,mode:O,inlineCollapsed:R,openKeys:_,overflowDisabled:j,onOpenChange:T,registerMenuInfo:V,unRegisterMenuInfo:W,selectedSubMenuKeys:Y,expandIcon:re,theme:ae}=Q(),ee=v!=null,te=!i&&(mt()||!ee);qt(te),(i&&ee||!i&&!ee||te)&&(V(r,k),he(()=>{W(r)}));const se=m(()=>`${K.value}-submenu`),N=m(()=>q.value||t.disabled),me=H(),h=H(),E=m(()=>_.value.includes(d)),z=m(()=>!j.value&&E.value),Z=m(()=>Y.value.includes(d)),ne=H(!1);X(L,()=>{ne.value=!!L.value.find(S=>S===d)},{immediate:!0});const U=S=>{N.value||(l("titleClick",S,d),O.value==="inline"&&T(d,!E.value))},a=S=>{N.value||(I(C.value),l("mouseenter",S))},b=S=>{N.value||(I([]),l("mouseleave",S))},M=bt(m(()=>C.value.length)),P=S=>{O.value!=="inline"&&T(d,S)},D=()=>{I(C.value)},w=r&&`${r}-popup`,G=m(()=>ye(K.value,`${K.value}-${t.theme||ae.value}`,t.popupClassName)),ue=(S,A)=>{if(!A)return R.value&&!g.value.length&&S&&typeof S=="string"?f("div",{class:`${K.value}-inline-collapsed-noicon`},[S.charAt(0)]):f("span",{class:`${K.value}-title-content`},[S]);const oe=it(S)&&S.type==="span";return f(Ee,null,[_e(typeof A=="function"?A(t.originItemValue):A,{class:`${K.value}-item-icon`},!1),oe?S:f("span",{class:`${K.value}-title-content`},[S])])},we=m(()=>O.value!=="inline"&&C.value.length>1?"vertical":O.value),$t=m(()=>O.value==="horizontal"?"vertical":O.value),yt=m(()=>we.value==="horizontal"?"vertical":we.value),Fe=()=>{var S,A;const oe=se.value,Ke=(S=t.icon)!==null&&S!==void 0?S:(A=e.icon)===null||A===void 0?void 0:A.call(e,t),Le=t.expandIcon||e.expandIcon||re.value,Oe=ue(rt(e,t,"title"),Ke);return f("div",{style:M.value,class:`${oe}-title`,tabindex:N.value?null:-1,ref:me,title:typeof Oe=="string"?Oe:null,"data-menu-id":d,"aria-expanded":z.value,"aria-haspopup":!0,"aria-controls":w,"aria-disabled":N.value,onClick:U,onFocus:D},[Oe,O.value!=="horizontal"&&Le?Le(p(p({},t),{isOpen:z.value})):f("i",{class:`${oe}-arrow`},null)])};return()=>{var S;if(i)return ee?(S=e.default)===null||S===void 0?void 0:S.call(e):null;const A=se.value;let oe=()=>null;if(!j.value&&O.value!=="inline"){const Ke=O.value==="horizontal"?[0,8]:[10,0];oe=()=>f(qe,{mode:we.value,prefixCls:A,visible:!t.internalPopupClose&&z.value,popupClassName:G.value,popupOffset:t.popupOffset||Ke,disabled:N.value,onVisibleChange:P},{default:()=>[Fe()],popup:()=>f(Ce,{mode:yt.value},{default:()=>[f(ze,{id:w,ref:h},{default:e.default})]})})}else oe=()=>f(qe,null,{default:Fe});return f(Ce,{mode:$t.value},{default:()=>[f(fe.Item,B(B({component:"li"},o),{},{role:"none",class:ye(A,`${A}-${O.value}`,o.class,{[`${A}-open`]:z.value,[`${A}-active`]:ne.value,[`${A}-selected`]:Z.value,[`${A}-disabled`]:N.value}),onMouseenter:a,onMouseleave:b,"data-submenu-id":d}),{default:()=>f(Ee,null,[oe(),!j.value&&f(ln,{id:w,open:z.value,keyPath:C.value},{default:e.default})])})]})}}}),an=()=>({title:Se.any,originItemValue:Ae()}),xe=J({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:an(),slots:Object,setup(t,n){let{slots:e,attrs:o}=n;const{prefixCls:l}=Q(),u=m(()=>`${l.value}-item-group`),c=He();return()=>{var i,s;return c?(i=e.default)===null||i===void 0?void 0:i.call(e):f("li",B(B({},o),{},{onClick:v=>v.stopPropagation(),class:u.value}),[f("div",{title:typeof t.title=="string"?t.title:void 0,class:`${u.value}-title`},[rt(e,t,"title")]),f("ul",{class:`${u.value}-list`},[(s=e.default)===null||s===void 0?void 0:s.call(e)])])}}}),sn=()=>({prefixCls:String,dashed:Boolean}),Me=J({compatConfig:{MODE:3},name:"AMenuDivider",props:sn(),setup(t){const{prefixCls:n}=Q(),e=m(()=>({[`${n.value}-item-divider`]:!0,[`${n.value}-item-divider-dashed`]:!!t.dashed}));return()=>f("li",{class:e.value},null)}});var un=function(t,n){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(e[o[l]]=t[o[l]]);return e};function De(t,n,e){return(t||[]).map((o,l)=>{if(o&&typeof o=="object"){const u=o,{label:c,children:i,key:s,type:v}=u,d=un(u,["label","children","key","type"]),r=s??`tmp-${l}`,$=e?e.parentKeys.slice():[],y=[],g={eventKey:r,key:r,parentEventKeys:F($),parentKeys:F($),childrenEventKeys:F(y),isLeaf:!1};if(i||v==="group"){if(v==="group"){const x=De(i,n,e);return f(xe,B(B({key:r},d),{},{title:c,originItemValue:o}),{default:()=>[x]})}n.set(r,g),e&&e.childrenEventKeys.push(r);const C=De(i,n,{childrenEventKeys:y,parentKeys:[].concat($,r)});return f(ce,B(B({key:r},d),{},{title:c,originItemValue:o}),{default:()=>[C]})}return v==="divider"?f(Me,B({key:r},d),null):(g.isLeaf=!0,n.set(r,g),f(pe,B(B({key:r},d),{},{originItemValue:o}),{default:()=>[c]}))}return null}).filter(o=>o)}function cn(t){const n=H([]),e=H(!1),o=H(new Map);return X(()=>t.items,()=>{const l=new Map;e.value=!1,t.items?(e.value=!0,n.value=De(t.items,l)):n.value=void 0,o.value=l},{immediate:!0,deep:!0}),{itemsNodes:n,store:o,hasItmes:e}}const dn=t=>{const{componentCls:n,motionDurationSlow:e,menuHorizontalHeight:o,colorSplit:l,lineWidth:u,lineType:c,menuItemPaddingInline:i}=t;return{[`${n}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${u}px ${c} ${l}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${n}-item:hover,
2
2
  > ${n}-item-active,
3
3
  > ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${e}`,`background ${e}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},mn=t=>{let{componentCls:n,menuArrowOffset:e}=t;return{[`${n}-rtl`]:{direction:"rtl"},[`${n}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${n}-rtl${n}-vertical,
4
4
  ${n}-submenu-rtl ${n}-vertical`]:{[`${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${e})`},"&::after":{transform:`rotate(45deg) translateY(${e})`}}}}},Je=t=>p({},ht(t)),Qe=(t,n)=>{const{componentCls:e,colorItemText:o,colorItemTextSelected:l,colorGroupTitle:u,colorItemBg:c,colorSubItemBg:i,colorItemBgSelected:s,colorActiveBarHeight:v,colorActiveBarWidth:d,colorActiveBarBorderSize:r,motionDurationSlow:$,motionEaseInOut:y,motionEaseOut:g,menuItemPaddingInline:C,motionDurationMid:x,colorItemTextHover:k,lineType:K,colorSplit:L,colorItemTextDisabled:q,colorDangerItemText:I,colorDangerItemTextHover:O,colorDangerItemTextSelected:R,colorDangerItemBgActive:_,colorDangerItemBgSelected:j,colorItemBgHover:T,menuSubMenuBg:V,colorItemTextSelectedHorizontal:W,colorItemBgSelectedHorizontal:Y}=t;return{[`${e}-${n}`]:{color:o,background:c,[`&${e}-root:focus-visible`]:p({},Je(t)),[`${e}-item-group-title`]:{color:u},[`${e}-submenu-selected`]:{[`> ${e}-submenu-title`]:{color:l}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{color:`${q} !important`},[`${e}-item:hover, ${e}-submenu-title:hover`]:{[`&:not(${e}-item-selected):not(${e}-submenu-selected)`]:{color:k}},[`&:not(${e}-horizontal)`]:{[`${e}-item:not(${e}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:s}},[`${e}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:s}}},[`${e}-item-danger`]:{color:I,[`&${e}-item:hover`]:{[`&:not(${e}-item-selected):not(${e}-submenu-selected)`]:{color:O}},[`&${e}-item:active`]:{background:_}},[`${e}-item a`]:{"&, &:hover":{color:"inherit"}},[`${e}-item-selected`]:{color:l,[`&${e}-item-danger`]:{color:R},"a, a:hover":{color:"inherit"}},[`& ${e}-item-selected`]:{backgroundColor:s,[`&${e}-item-danger`]:{backgroundColor:j}},[`${e}-item, ${e}-submenu-title`]:{[`&:not(${e}-item-disabled):focus-visible`]:p({},Je(t))},[`&${e}-submenu > ${e}`]:{backgroundColor:V},[`&${e}-popup > ${e}`]:{backgroundColor:c},[`&${e}-horizontal`]:p(p({},n==="dark"?{borderBottom:0}:{}),{[`> ${e}-item, > ${e}-submenu`]:{top:r,marginTop:-r,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${v}px solid transparent`,transition:`border-color ${$} ${y}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:v,borderBottomColor:W}},"&-selected":{color:W,backgroundColor:Y,"&::after":{borderBottomWidth:v,borderBottomColor:W}}}}),[`&${e}-root`]:{[`&${e}-inline, &${e}-vertical`]:{borderInlineEnd:`${r}px ${K} ${L}`}},[`&${e}-inline`]:{[`${e}-sub${e}-inline`]:{background:i},[`${e}-item, ${e}-submenu-title`]:r&&d?{width:`calc(100% + ${r}px)`}:{},[`${e}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${l}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${g}`,`opacity ${x} ${g}`].join(","),content:'""'},[`&${e}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${e}-selected, ${e}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${y}`,`opacity ${x} ${y}`].join(",")}}}}}},et=t=>{const{componentCls:n,menuItemHeight:e,itemMarginInline:o,padding:l,menuArrowSize:u,marginXS:c,marginXXS:i}=t,s=l+u+c;return{[`${n}-item`]:{position:"relative"},[`${n}-item, ${n}-submenu-title`]:{height:e,lineHeight:`${e}px`,paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:i,width:`calc(100% - ${o*2}px)`},[`${n}-submenu`]:{paddingBottom:.02},[`> ${n}-item,
@@ -1,3 +1,3 @@
1
- import{g as J,m as K,r as U,u as Y,c as Z,z as oo,_ as j}from"./useConfigInject-DqhngD-R.js";import{d as eo,c as s,a0 as no,a1 as to,$ as lo,s as w,j as io}from"./vendor-BVetwVfk.js";import{av as ao,aw as so,y as ro,a4 as co,as as uo,at as go,au as mo,Q as po,ah as fo}from"./icons-srBCpwXl.js";import{P as v}from"./index-U4Zd5IK6.js";import{a as vo}from"./transition-D2wU6PAY.js";import{_ as H,w as $o,t as yo}from"./index-DlSUq1W3.js";import{c as ho}from"./vnode-B2xg11HE.js";const B=(o,e,n,i,a)=>({backgroundColor:o,border:`${i.lineWidth}px ${i.lineType} ${e}`,[`${a}-icon`]:{color:n}}),Co=o=>{const{componentCls:e,motionDurationSlow:n,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:r,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:f,alertPaddingHorizontal:y,paddingMD:C,paddingContentHorizontalLG:x}=o;return{[e]:H(H({},U(o)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${y}px`,wordWrap:"break-word",borderRadius:$,[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:u,lineHeight:g},"&-message":{color:p},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
1
+ import{g as K,m as Q,r as U,u as Y,c as Z,z as oo,_ as R}from"./useConfigInject-DIKG5Y4I.js";import{d as eo,c as r,a0 as no,a1 as to,$ as lo,s as w,j as io}from"./vendor-BVetwVfk.js";import{az as ao,au as ro,N as so,a8 as co,aw as uo,ax as go,ay as mo,_ as po,ak as fo}from"./icons-E3MGhN6s.js";import{P as v}from"./index-U4Zd5IK6.js";import{a as vo}from"./transition-atE2sWdv.js";import{_ as H,w as $o,t as yo}from"./index-DPaLf3-g.js";import{c as ho}from"./vnode-Cryb4eNl.js";const B=(o,e,n,i,a)=>({backgroundColor:o,border:`${i.lineWidth}px ${i.lineType} ${e}`,[`${a}-icon`]:{color:n}}),Co=o=>{const{componentCls:e,motionDurationSlow:n,marginXS:i,marginSM:a,fontSize:u,fontSizeLG:s,lineHeight:g,borderRadiusLG:$,motionEaseInOutCirc:c,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:f,alertPaddingHorizontal:y,paddingMD:C,paddingContentHorizontalLG:x}=o;return{[e]:H(H({},U(o)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${y}px`,wordWrap:"break-word",borderRadius:$,[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:u,lineHeight:g},"&-message":{color:p},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
2
2
  padding-top ${n} ${c}, padding-bottom ${n} ${c},
3
- margin-bottom ${n} ${c}`},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${e}-with-description`]:{alignItems:"flex-start",paddingInline:x,paddingBlock:C,[`${e}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${e}-message`]:{display:"block",marginBottom:i,color:p,fontSize:r},[`${e}-description`]:{display:"block"}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},xo=o=>{const{componentCls:e,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:r,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:f,colorInfoBg:y}=o;return{[e]:{"&-success":B(a,i,n,o,e),"&-info":B(y,f,p,o,e),"&-warning":B(g,r,u,o,e),"&-error":H(H({},B(d,c,$,o,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},So=o=>{const{componentCls:e,iconCls:n,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:r,colorIconHover:g}=o;return{[e]:{"&-action":{marginInlineStart:a},[`${e}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:r,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:r,transition:`color ${i}`,"&:hover":{color:g}}}}},Io=o=>[Co(o),xo(o),So(o)],bo=J("Alert",o=>{const{fontSizeHeading3:e}=o,n=K(o,{alertIconSizeLG:e,alertPaddingHorizontal:12});return[Io(n)]}),wo={success:po,info:mo,error:go,warning:uo},Bo={success:co,info:ro,error:so,warning:ao},Ho=yo("success","info","warning","error"),To=()=>({type:v.oneOf(Ho),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),_o=eo({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:To(),setup(o,e){let{slots:n,emit:i,attrs:a,expose:u}=e;const{prefixCls:r,direction:g}=Y("alert",o),[$,c]=bo(r),d=w(!1),p=w(!1),f=w(),y=l=>{l.preventDefault();const m=f.value;m.style.height=`${m.offsetHeight}px`,m.style.height=`${m.offsetHeight}px`,d.value=!0,i("close",l)},C=()=>{var l;d.value=!1,p.value=!0,(l=o.afterClose)===null||l===void 0||l.call(o)},x=io(()=>{const{type:l}=o;return l!==void 0?l:o.banner?"warning":"info"});u({animationEnd:C});const N=w({});return()=>{var l,m,T,_,z,E,A,O,L,F;const{banner:D,closeIcon:W=(l=n.closeIcon)===null||l===void 0?void 0:l.call(n)}=o;let{closable:M,showIcon:h}=o;const P=(m=o.closeText)!==null&&m!==void 0?m:(T=n.closeText)===null||T===void 0?void 0:T.call(n),S=(_=o.description)!==null&&_!==void 0?_:(z=n.description)===null||z===void 0?void 0:z.call(n),G=(E=o.message)!==null&&E!==void 0?E:(A=n.message)===null||A===void 0?void 0:A.call(n),I=(O=o.icon)!==null&&O!==void 0?O:(L=n.icon)===null||L===void 0?void 0:L.call(n),R=(F=n.action)===null||F===void 0?void 0:F.call(n);h=D&&h===void 0?!0:h;const V=(S?Bo:wo)[x.value]||null;P&&(M=!0);const t=r.value,k=Z(t,{[`${t}-${x.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!S,[`${t}-no-icon`]:!h,[`${t}-banner`]:!!D,[`${t}-closable`]:M,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),X=M?s("button",{type:"button",onClick:y,class:`${t}-close-icon`,tabindex:0},[P?s("span",{class:`${t}-close-text`},[P]):W===void 0?s(fo,null,null):W]):null,Q=I&&(oo(I)?ho(I,{class:`${t}-icon`}):s("span",{class:`${t}-icon`},[I]))||s(V,{class:`${t}-icon`},null),q=vo(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:C,onBeforeLeave:b=>{b.style.maxHeight=`${b.offsetHeight}px`},onLeave:b=>{b.style.maxHeight="0px"}});return $(p.value?null:s(lo,q,{default:()=>[no(s("div",j(j({role:"alert"},a),{},{style:[a.style,N.value],class:[a.class,k],"data-show":!d.value,ref:f}),[h?Q:null,s("div",{class:`${t}-content`},[G?s("div",{class:`${t}-message`},[G]):null,S?s("div",{class:`${t}-description`},[S]):null]),R?s("div",{class:`${t}-action`},[R]):null,X]),[[to,!d.value]])]}))}}}),Po=$o(_o);export{To as alertProps,Po as default};
3
+ margin-bottom ${n} ${c}`},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${e}-with-description`]:{alignItems:"flex-start",paddingInline:x,paddingBlock:C,[`${e}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${e}-message`]:{display:"block",marginBottom:i,color:p,fontSize:s},[`${e}-description`]:{display:"block"}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},xo=o=>{const{componentCls:e,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:a,colorWarning:u,colorWarningBorder:s,colorWarningBg:g,colorError:$,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:f,colorInfoBg:y}=o;return{[e]:{"&-success":B(a,i,n,o,e),"&-info":B(y,f,p,o,e),"&-warning":B(g,s,u,o,e),"&-error":H(H({},B(d,c,$,o,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},So=o=>{const{componentCls:e,iconCls:n,motionDurationMid:i,marginXS:a,fontSizeIcon:u,colorIcon:s,colorIconHover:g}=o;return{[e]:{"&-action":{marginInlineStart:a},[`${e}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:u,lineHeight:`${u}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:s,transition:`color ${i}`,"&:hover":{color:g}}},"&-close-text":{color:s,transition:`color ${i}`,"&:hover":{color:g}}}}},Io=o=>[Co(o),xo(o),So(o)],bo=K("Alert",o=>{const{fontSizeHeading3:e}=o,n=Q(o,{alertIconSizeLG:e,alertPaddingHorizontal:12});return[Io(n)]}),wo={success:po,info:mo,error:go,warning:uo},Bo={success:co,info:so,error:ro,warning:ao},Ho=yo("success","info","warning","error"),To=()=>({type:v.oneOf(Ho),closable:{type:Boolean,default:void 0},closeText:v.any,message:v.any,description:v.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.any,closeIcon:v.any,onClose:Function}),_o=eo({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:To(),setup(o,e){let{slots:n,emit:i,attrs:a,expose:u}=e;const{prefixCls:s,direction:g}=Y("alert",o),[$,c]=bo(s),d=w(!1),p=w(!1),f=w(),y=l=>{l.preventDefault();const m=f.value;m.style.height=`${m.offsetHeight}px`,m.style.height=`${m.offsetHeight}px`,d.value=!0,i("close",l)},C=()=>{var l;d.value=!1,p.value=!0,(l=o.afterClose)===null||l===void 0||l.call(o)},x=io(()=>{const{type:l}=o;return l!==void 0?l:o.banner?"warning":"info"});u({animationEnd:C});const j=w({});return()=>{var l,m,T,_,z,E,A,O,L,F;const{banner:D,closeIcon:W=(l=n.closeIcon)===null||l===void 0?void 0:l.call(n)}=o;let{closable:M,showIcon:h}=o;const P=(m=o.closeText)!==null&&m!==void 0?m:(T=n.closeText)===null||T===void 0?void 0:T.call(n),S=(_=o.description)!==null&&_!==void 0?_:(z=n.description)===null||z===void 0?void 0:z.call(n),G=(E=o.message)!==null&&E!==void 0?E:(A=n.message)===null||A===void 0?void 0:A.call(n),I=(O=o.icon)!==null&&O!==void 0?O:(L=n.icon)===null||L===void 0?void 0:L.call(n),N=(F=n.action)===null||F===void 0?void 0:F.call(n);h=D&&h===void 0?!0:h;const k=(S?Bo:wo)[x.value]||null;P&&(M=!0);const t=s.value,V=Z(t,{[`${t}-${x.value}`]:!0,[`${t}-closing`]:d.value,[`${t}-with-description`]:!!S,[`${t}-no-icon`]:!h,[`${t}-banner`]:!!D,[`${t}-closable`]:M,[`${t}-rtl`]:g.value==="rtl",[c.value]:!0}),X=M?r("button",{type:"button",onClick:y,class:`${t}-close-icon`,tabindex:0},[P?r("span",{class:`${t}-close-text`},[P]):W===void 0?r(fo,null,null):W]):null,q=I&&(oo(I)?ho(I,{class:`${t}-icon`}):r("span",{class:`${t}-icon`},[I]))||r(k,{class:`${t}-icon`},null),J=vo(`${t}-motion`,{appear:!1,css:!0,onAfterLeave:C,onBeforeLeave:b=>{b.style.maxHeight=`${b.offsetHeight}px`},onLeave:b=>{b.style.maxHeight="0px"}});return $(p.value?null:r(lo,J,{default:()=>[no(r("div",R(R({role:"alert"},a),{},{style:[a.style,j.value],class:[a.class,V],"data-show":!d.value,ref:f}),[h?q:null,r("div",{class:`${t}-content`},[G?r("div",{class:`${t}-message`},[G]):null,S?r("div",{class:`${t}-description`},[S]):null]),N?r("div",{class:`${t}-action`},[N]):null,X]),[[to,!d.value]])]}))}}}),Po=$o(_o);export{To as alertProps,Po as default};