chainlesschain 0.166.58 → 0.166.59

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 (163) hide show
  1. package/package.json +2 -2
  2. package/src/assets/web-panel/assets/{AIOps-DoyI29Aw.js → AIOps-B9i3kk5f.js} +1 -1
  3. package/src/assets/web-panel/assets/{ActionButton-eZKcEoxc.js → ActionButton-DGMs1wBm.js} +1 -1
  4. package/src/assets/web-panel/assets/{Analytics-B2C2e9A7.js → Analytics-D-JGeynM.js} +2 -2
  5. package/src/assets/web-panel/assets/{AppLayout-DkZJiu4X.js → AppLayout-DLECnXlP.js} +5 -5
  6. package/src/assets/web-panel/assets/{Artifacts-8PD3BXVa.js → Artifacts-CwaTiXN4.js} +1 -1
  7. package/src/assets/web-panel/assets/{Audit-Cv6sRlFu.js → Audit-BCb7s5Ky.js} +1 -1
  8. package/src/assets/web-panel/assets/{BackgroundAgents-D-V84Qpm.js → BackgroundAgents-D4IOzvKs.js} +1 -1
  9. package/src/assets/web-panel/assets/{Backup-DYJQcxj1.js → Backup-Cknunk10.js} +1 -1
  10. package/src/assets/web-panel/assets/{BaseInput-KL2IeywH.js → BaseInput-DnU8pbUh.js} +1 -1
  11. package/src/assets/web-panel/assets/{Chat-Bt9wy_Yn.js → Chat-DOouYIhz.js} +5 -5
  12. package/src/assets/web-panel/assets/ChatBubbleRenderer-C4tdSms8.js +1 -0
  13. package/src/assets/web-panel/assets/{Checkbox-Dm-nfdnd.js → Checkbox-BrumNw6V.js} +1 -1
  14. package/src/assets/web-panel/assets/{Codegen-CYi3yDzv.js → Codegen-B4E_uI_N.js} +1 -1
  15. package/src/assets/web-panel/assets/{Col-C7sQywfG.js → Col-C7H2sdaL.js} +1 -1
  16. package/src/assets/web-panel/assets/{Community-DjxuqAM4.js → Community-BFdzcMSl.js} +1 -1
  17. package/src/assets/web-panel/assets/{Compact-CD_4lbxr.js → Compact-BzVXohrg.js} +1 -1
  18. package/src/assets/web-panel/assets/{Compliance-BtDpNJrS.js → Compliance-B_4QcuSH.js} +1 -1
  19. package/src/assets/web-panel/assets/{Cowork-l19ANH6Q.js → Cowork-DjuQzJx8.js} +3 -3
  20. package/src/assets/web-panel/assets/{Cron-Br-rBoEK.js → Cron-Bf2iY-1-.js} +2 -2
  21. package/src/assets/web-panel/assets/{Crosschain-60UVvKET.js → Crosschain-CY9QW7IT.js} +1 -1
  22. package/src/assets/web-panel/assets/{DID-B9dqar51.js → DID-kDZBvaKr.js} +2 -2
  23. package/src/assets/web-panel/assets/{Dashboard-B39hhdHb.js → Dashboard-DoYboS3g.js} +2 -2
  24. package/src/assets/web-panel/assets/{Dropdown-Bm5rCfvF.js → Dropdown-LLEzI6l1.js} +1 -1
  25. package/src/assets/web-panel/assets/{EmailListRenderer-BI9HANDl.js → EmailListRenderer-D2kmSvkg.js} +1 -1
  26. package/src/assets/web-panel/assets/{EvolutionSettings-Cfqn_yCq.js → EvolutionSettings-DHj2yUGZ.js} +1 -1
  27. package/src/assets/web-panel/assets/{FamilyGuardDashboard-9Y4_zyhT.js → FamilyGuardDashboard-B7Hg7fR0.js} +1 -1
  28. package/src/assets/web-panel/assets/{Federation-vnbbmMdF.js → Federation-CUdwU6aH.js} +1 -1
  29. package/src/assets/web-panel/assets/{FormItemContext-BEKNtNF9.js → FormItemContext-D1KrwjwY.js} +1 -1
  30. package/src/assets/web-panel/assets/{GenericCardRenderer-BmWr16IL.js → GenericCardRenderer-CXGLoHfw.js} +1 -1
  31. package/src/assets/web-panel/assets/{Git-CUUwAXdn.js → Git-TG3Q9JWG.js} +2 -2
  32. package/src/assets/web-panel/assets/{Governance-Bw8XZmH9.js → Governance-BJD7h_fv.js} +1 -1
  33. package/src/assets/web-panel/assets/{Inference-CNrml6dn.js → Inference-Dky4l_bZ.js} +1 -1
  34. package/src/assets/web-panel/assets/{KnowledgeGraph-BhxOwpW_.js → KnowledgeGraph-CCx9aXBV.js} +1 -1
  35. package/src/assets/web-panel/assets/{Logs-BV8WViUG.js → Logs-BtesccPB.js} +2 -2
  36. package/src/assets/web-panel/assets/MarkdownRenderer-DoN7oE2J.js +1 -0
  37. package/src/assets/web-panel/assets/{Marketplace-ztcu4mg4.js → Marketplace-BzL6KJMX.js} +1 -1
  38. package/src/assets/web-panel/assets/{McpTools-D-wzRO7z.js → McpTools-BReSRzEU.js} +3 -3
  39. package/src/assets/web-panel/assets/{Memory-ChdjWC1R.js → Memory-BhmkkCxd.js} +2 -2
  40. package/src/assets/web-panel/assets/{MobileBridge-B1QHzIjE.js → MobileBridge-BeQMHr_n.js} +1 -1
  41. package/src/assets/web-panel/assets/{MobileProjects-DmaRtaMw.js → MobileProjects-CphEwj_l.js} +1 -1
  42. package/src/assets/web-panel/assets/{Mtc-DRQMr4WP.js → Mtc-CFk1ibuN.js} +4 -4
  43. package/src/assets/web-panel/assets/{MtcAudit-Cwo0on-u.js → MtcAudit-CU9qrmbH.js} +5 -5
  44. package/src/assets/web-panel/assets/{Multisig-QplgySFt.js → Multisig-CKR-Gh0Y.js} +3 -3
  45. package/src/assets/web-panel/assets/{NLProgramming-BWkMyuAy.js → NLProgramming-D1qWY6Mx.js} +1 -1
  46. package/src/assets/web-panel/assets/{Notes-BI_pSEM0.js → Notes-B4CM0C65.js} +4 -4
  47. package/src/assets/web-panel/assets/{NotificationSettings-DiuFo6Xe.js → NotificationSettings-BTQYWveR.js} +1 -1
  48. package/src/assets/web-panel/assets/{OrderTableRenderer-DZzQhujZ.js → OrderTableRenderer-DxN6fAn8.js} +1 -1
  49. package/src/assets/web-panel/assets/{Organization-DqEdqWB0.js → Organization-scgboNfd.js} +2 -2
  50. package/src/assets/web-panel/assets/{Overflow-CO7_2YLN.js → Overflow-BP4aQhid.js} +1 -1
  51. package/src/assets/web-panel/assets/{P2P-BN5RiNst.js → P2P-65jIo6MY.js} +2 -2
  52. package/src/assets/web-panel/assets/{PdhVaultBrowser-CapfG4bl.js → PdhVaultBrowser-Bfi4-tDQ.js} +5 -5
  53. package/src/assets/web-panel/assets/{Permissions-B24c5fWW.js → Permissions-DWtxT7bE.js} +3 -3
  54. package/src/assets/web-panel/assets/{PersonalDataHub-D7Mb3_vh.js → PersonalDataHub-Bilmr8BR.js} +4 -4
  55. package/src/assets/web-panel/assets/{Pipeline-BsfxlbOQ.js → Pipeline-IPIMM-1y.js} +1 -1
  56. package/src/assets/web-panel/assets/{Privacy-Bq7c7IYy.js → Privacy-DFB8RiVK.js} +1 -1
  57. package/src/assets/web-panel/assets/{ProjectInit-Clse2DPl.js → ProjectInit-DxZksvu1.js} +2 -2
  58. package/src/assets/web-panel/assets/{ProjectSettings-CHAEdjri.js → ProjectSettings-DsjPsnYN.js} +2 -2
  59. package/src/assets/web-panel/assets/Projects-CC5FBLLq.js +1 -0
  60. package/src/assets/web-panel/assets/{Providers-DQyH3PXU.js → Providers-Dk3ViPuF.js} +1 -1
  61. package/src/assets/web-panel/assets/{QrScannerModal-t2Z-N49o.js → QrScannerModal-CJ8R6-bF.js} +1 -1
  62. package/src/assets/web-panel/assets/{QuickAsk-BacR7PlI.js → QuickAsk-DJfCPORc.js} +1 -1
  63. package/src/assets/web-panel/assets/{Recommend-D-NAy0CQ.js → Recommend-DjDygXeb.js} +1 -1
  64. package/src/assets/web-panel/assets/{RemoteSession-CjI3GeVQ.js → RemoteSession-BJiJ1YHw.js} +2 -2
  65. package/src/assets/web-panel/assets/{Reputation-HoQ3i2oW.js → Reputation-fYE8jPcc.js} +1 -1
  66. package/src/assets/web-panel/assets/{Row-CY2jczWa.js → Row-vcvsjMm4.js} +1 -1
  67. package/src/assets/web-panel/assets/{RssFeed-Bd3o20IY.js → RssFeed-CZnKliwn.js} +3 -3
  68. package/src/assets/web-panel/assets/{Search-C88KjgTv.js → Search-DEStiFGI.js} +1 -1
  69. package/src/assets/web-panel/assets/{Security-yfmfvujK.js → Security-BPb_szxS.js} +2 -2
  70. package/src/assets/web-panel/assets/{Services-DLPBWoxT.js → Services-TR0xZhSF.js} +2 -2
  71. package/src/assets/web-panel/assets/{Skeleton-DzDjvVQi.js → Skeleton-BSPu9boC.js} +1 -1
  72. package/src/assets/web-panel/assets/{Skills-DqfrJIyP.js → Skills-CXEj9pC6.js} +1 -1
  73. package/src/assets/web-panel/assets/{Sla-BXhsGzkm.js → Sla-jlOlDGMA.js} +1 -1
  74. package/src/assets/web-panel/assets/{SpeechSettings-jxSl2JDo.js → SpeechSettings-C8oPE_HQ.js} +1 -1
  75. package/src/assets/web-panel/assets/{SyncSettings-BX2xKtI3.js → SyncSettings-DZNUx8zt.js} +2 -2
  76. package/src/assets/web-panel/assets/{Tasks-P9MmRYt4.js → Tasks-B4T6aoOl.js} +1 -1
  77. package/src/assets/web-panel/assets/{Templates-CTpj9f62.js → Templates-DeRgtwZ5.js} +1 -1
  78. package/src/assets/web-panel/assets/{Tenant-nnQuhdPg.js → Tenant-DDVoXGxa.js} +1 -1
  79. package/src/assets/web-panel/assets/{Terminal-cJ0vbuTe.js → Terminal-DGAUoJMz.js} +2 -2
  80. package/src/assets/web-panel/assets/{TimelineRenderer-DN08D0SD.js → TimelineRenderer-Co4Nkpjm.js} +1 -1
  81. package/src/assets/web-panel/assets/{Tokens-C8BWWBUD.js → Tokens-DaMLa0Fm.js} +1 -1
  82. package/src/assets/web-panel/assets/{Trigger-DhD-LUoe.js → Trigger-C7iLr-Ik.js} +1 -1
  83. package/src/assets/web-panel/assets/{Trust-D0nFyc_Z.js → Trust-CxX_tQqi.js} +1 -1
  84. package/src/assets/web-panel/assets/{UkeySign-B59G57LP.js → UkeySign-ClrdckEx.js} +1 -1
  85. package/src/assets/web-panel/assets/{VideoEditing-BpYACxVC.js → VideoEditing-DgTVhaoK.js} +1 -1
  86. package/src/assets/web-panel/assets/{Wallet-DlZ3rKGD.js → Wallet-SIbwES0O.js} +4 -4
  87. package/src/assets/web-panel/assets/{WebAuthn-De4dNyig.js → WebAuthn-YNqVnhZF.js} +5 -5
  88. package/src/assets/web-panel/assets/{WorkflowEditor-C2Tewnhp.js → WorkflowEditor-BvynT9mj.js} +1 -1
  89. package/src/assets/web-panel/assets/{chat-CDBn4JLE.js → chat-X79b2tVy.js} +1 -1
  90. package/src/assets/web-panel/assets/{colors-BNawl0d_.js → colors-DioWDCbu.js} +1 -1
  91. package/src/assets/web-panel/assets/{compact-item-n65WDhze.js → compact-item-DpAXXaqu.js} +1 -1
  92. package/src/assets/web-panel/assets/{createContext-DAKgOdIy.js → createContext-BYq8bCQX.js} +1 -1
  93. package/src/assets/web-panel/assets/devWarning-ONeWC5dH.js +1 -0
  94. package/src/assets/web-panel/assets/{hasIn-DhxFG46W.js → hasIn-CDJNMJ_n.js} +1 -1
  95. package/src/assets/web-panel/assets/index--QLnQuO9.js +1 -0
  96. package/src/assets/web-panel/assets/{index-CW_OUdP8.js → index-00kVj4me.js} +1 -1
  97. package/src/assets/web-panel/assets/{index-DleKcclQ.js → index-B6wxVEIZ.js} +1 -1
  98. package/src/assets/web-panel/assets/{index-BRyzRluv.js → index-B8ChecWd.js} +1 -1
  99. package/src/assets/web-panel/assets/{index-BudfMkBy.js → index-B8_grEFP.js} +1 -1
  100. package/src/assets/web-panel/assets/{index-gG1WJBpa.js → index-BBvA7Hxj.js} +1 -1
  101. package/src/assets/web-panel/assets/{index-CE6OcLof.js → index-BGEXGr9g.js} +1 -1
  102. package/src/assets/web-panel/assets/{index-KZkt4e9N.js → index-BIO8EVHt.js} +1 -1
  103. package/src/assets/web-panel/assets/{index-5oJjovnA.js → index-BK53HyEP.js} +1 -1
  104. package/src/assets/web-panel/assets/{index-Cv7LqHwv.js → index-Bh9la-GL.js} +1 -1
  105. package/src/assets/web-panel/assets/{index-DCujBaFg.js → index-Bt0zcD5R.js} +1 -1
  106. package/src/assets/web-panel/assets/{index-BQFAuU1c.js → index-BwHEGjR7.js} +1 -1
  107. package/src/assets/web-panel/assets/{index-BDTrf8WH.js → index-Byt1ny7l.js} +1 -1
  108. package/src/assets/web-panel/assets/{index-hA9VUXGr.js → index-C1-NqghD.js} +1 -1
  109. package/src/assets/web-panel/assets/{index-BAogaHa9.js → index-C4xggKQp.js} +1 -1
  110. package/src/assets/web-panel/assets/{index-DeTlqus4.js → index-C7cXBJcM.js} +1 -1
  111. package/src/assets/web-panel/assets/{index-D_-6qQf0.js → index-CJEFd0QJ.js} +1 -1
  112. package/src/assets/web-panel/assets/{index-BzONk4rW.js → index-CLSt7mOy.js} +1 -1
  113. package/src/assets/web-panel/assets/{index-0Y-ncsVy.js → index-COqkDiRU.js} +1 -1
  114. package/src/assets/web-panel/assets/{index-BfXdTvku.js → index-CS3QdYDW.js} +1 -1
  115. package/src/assets/web-panel/assets/{index--76HBS1k.js → index-CUbuCFWb.js} +1 -1
  116. package/src/assets/web-panel/assets/{index-L1QnA0gW.js → index-CbxqdIzD.js} +1 -1
  117. package/src/assets/web-panel/assets/index-CkgeII0e.js +1 -0
  118. package/src/assets/web-panel/assets/{index-D6sWUgN6.js → index-Cx0_WiSe.js} +1 -1
  119. package/src/assets/web-panel/assets/{index-pzEYIGNA.js → index-D3J9FKFr.js} +1 -1
  120. package/src/assets/web-panel/assets/{index-DkW0HGr-.js → index-D88MWTOx.js} +1 -1
  121. package/src/assets/web-panel/assets/{index-By-zGgUp.js → index-DAnXSg0r.js} +1 -1
  122. package/src/assets/web-panel/assets/{index-KT94nMha.js → index-DP9ZLjra.js} +1 -1
  123. package/src/assets/web-panel/assets/{index-PlOBwfR1.js → index-DSFkmRvK.js} +1 -1
  124. package/src/assets/web-panel/assets/{index-DFkamspD.js → index-DUe-hFGb.js} +1 -1
  125. package/src/assets/web-panel/assets/{index-CSOgoyqx.js → index-DZysaS5T.js} +1 -1
  126. package/src/assets/web-panel/assets/{index-DLFRz0_7.js → index-DmNspbVU.js} +1 -1
  127. package/src/assets/web-panel/assets/{index-DV6iHrUO.js → index-DwG9khVs.js} +1 -1
  128. package/src/assets/web-panel/assets/{index-Ds290C06.js → index-Q3WQ5Zhr.js} +1 -1
  129. package/src/assets/web-panel/assets/{index-ByDs4cW4.js → index-TqLyy6IR.js} +3 -3
  130. package/src/assets/web-panel/assets/{index-CZJrAg98.js → index-V6l3ia83.js} +1 -1
  131. package/src/assets/web-panel/assets/{index-BZI8xwwt.js → index-Wl55a61D.js} +1 -1
  132. package/src/assets/web-panel/assets/{index-BBFjMjmp.js → index-YviHYMA2.js} +1 -1
  133. package/src/assets/web-panel/assets/{index-D34AXxN9.js → index-mHAPEcPi.js} +1 -1
  134. package/src/assets/web-panel/assets/{initDefaultProps-B3bCivrt.js → initDefaultProps-18rmGkik.js} +1 -1
  135. package/src/assets/web-panel/assets/{motion-CF5pGsxz.js → motion-3kvGzSgV.js} +1 -1
  136. package/src/assets/web-panel/assets/{move-CaOFtFLU.js → move-Dx3DiVHc.js} +1 -1
  137. package/src/assets/web-panel/assets/{mtc-parser-Z4-50Y1c.js → mtc-parser-VX1dFJEI.js} +1 -1
  138. package/src/assets/web-panel/assets/{omit-AK4WqVTT.js → omit-CniSeCOA.js} +1 -1
  139. package/src/assets/web-panel/assets/{pickAttrs-Dbye0px4.js → pickAttrs-RPggmcOd.js} +1 -1
  140. package/src/assets/web-panel/assets/{placementArrow-DCmr-Dks.js → placementArrow-B45YBykr.js} +1 -1
  141. package/src/assets/web-panel/assets/{responsiveObserve-CJ3Zm_-H.js → responsiveObserve-D0nciAEn.js} +1 -1
  142. package/src/assets/web-panel/assets/{slide-BuSk5-ue.js → slide-UxLNWqjI.js} +1 -1
  143. package/src/assets/web-panel/assets/{statusUtils-8u_lKSFJ.js → statusUtils-CukpV_uI.js} +1 -1
  144. package/src/assets/web-panel/assets/{styleChecker-sy6_m42F.js → styleChecker-BIcEZk6Y.js} +1 -1
  145. package/src/assets/web-panel/assets/{useFlexGapSupport-Di5EfYGo.js → useFlexGapSupport-Zah-xvV3.js} +1 -1
  146. package/src/assets/web-panel/assets/{useFs-BTfX_Ri1.js → useFs-BA7ihKFN.js} +1 -1
  147. package/src/assets/web-panel/assets/{usePersonalDataHub-kqurO26X.js → usePersonalDataHub-C64CsyY3.js} +1 -1
  148. package/src/assets/web-panel/assets/{vnode-DRkH4mPV.js → vnode-Datcekgj.js} +1 -1
  149. package/src/assets/web-panel/assets/{zoom-ON_-UuD_.js → zoom-CaFQv1KF.js} +1 -1
  150. package/src/assets/web-panel/index.html +1 -1
  151. package/src/data/changelog.json +26 -0
  152. package/src/generated/cc-agent-protocol.schema.json +65 -1
  153. package/src/lib/context-memory-kernel/jsonl-session-context-port.js +33 -0
  154. package/src/lib/context-memory-kernel/task-worklog-port.js +388 -0
  155. package/src/lib/public-ide-capability-manifest.js +1 -0
  156. package/src/runtime/agent-core.js +2 -0
  157. package/src/runtime/headless-stream.js +121 -4
  158. package/src/assets/web-panel/assets/ChatBubbleRenderer-ChB6fH-W.js +0 -1
  159. package/src/assets/web-panel/assets/MarkdownRenderer-CO1qbiOY.js +0 -1
  160. package/src/assets/web-panel/assets/Projects-C1UHvBEK.js +0 -1
  161. package/src/assets/web-panel/assets/devWarning-sBSSW127.js +0 -1
  162. package/src/assets/web-panel/assets/index-BIJTDSLY.js +0 -1
  163. package/src/assets/web-panel/assets/index-CrBauOkp.js +0 -1
@@ -1 +1 @@
1
- import{l as M,m as lo,h as c,r as io,a0 as F,w as L,q as V,i as K,f as b,s as q,N as W,ag as y,p as so,A as co,v as R,af as po}from"./index-ByDs4cW4.js";import{d as X,b as O,c as d,r as G,F as uo,a9 as mo}from"./vendor-Bn1JzzAn.js";import{T as vo,t as U,a as Z}from"./index-CW_OUdP8.js";import{o as J}from"./omit-AK4WqVTT.js";import{i as fo}from"./zoom-ON_-UuD_.js";import{g as go}from"./placementArrow-DCmr-Dks.js";import{P as Co}from"./colors-BNawl0d_.js";import{i as Q}from"./initDefaultProps-B3bCivrt.js";import{c as H,B as xo}from"./index-By-zGgUp.js";import{E as yo}from"./icons-DG5UD-6K.js";import{u as Po}from"./useMergedState-DXbJa_zE.js";import{K as bo}from"./KeyCode-D63Tfrq7.js";import{b as ho}from"./vnode-DRkH4mPV.js";import{A as $o}from"./ActionButton-eZKcEoxc.js";import"./Trigger-DhD-LUoe.js";import"./raf-Deuc0E8-.js";import"./motion-CF5pGsxz.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./firstNotUndefined-CLFzEa0p.js";import"./index-KT94nMha.js";import"./useState-CnxtbLoC.js";import"./devWarning-sBSSW127.js";import"./compact-item-n65WDhze.js";import"./createContext-DAKgOdIy.js";import"./Compact-CD_4lbxr.js";const So=o=>{const{componentCls:e,popoverBg:t,popoverColor:n,width:a,fontWeightStrong:f,popoverPadding:i,boxShadowSecondary:p,colorTextHeading:g,borderRadiusLG:m,zIndexPopup:C,marginXS:x,colorBgElevated:s}=o;return[{[e]:c(c({},io(o)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:C,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":s,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:t,backgroundClip:"padding-box",borderRadius:m,boxShadow:p,padding:i},[`${e}-title`]:{minWidth:a,marginBottom:x,color:g,fontWeight:f},[`${e}-inner-content`]:{color:n}})},go(o,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",[`${e}-content`]:{display:"inline-block"}}}]},To=o=>{const{componentCls:e}=o;return{[e]:Co.map(t=>{const n=o[`${t}-6`];return{[`&${e}-${t}`]:{"--antd-arrow-background-color":n,[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{background:"transparent"}}}})}},ko=o=>{const{componentCls:e,lineWidth:t,lineType:n,colorSplit:a,paddingSM:f,controlHeight:i,fontSize:p,lineHeight:g,padding:m}=o,C=i-Math.round(p*g),x=C/2,s=C/2-t,v=m;return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${x}px ${v}px ${s}px`,borderBottom:`${t}px ${n} ${a}`},[`${e}-inner-content`]:{padding:`${f}px ${v}px`}}}},wo=M("Popover",o=>{const{colorBgElevated:e,colorText:t,wireframe:n}=o,a=lo(o,{popoverBg:e,popoverColor:t,popoverPadding:12});return[So(a),To(a),n&&ko(a),fo(a,"zoom-big")]},o=>{let{zIndexPopupBase:e}=o;return{zIndexPopup:e+30,width:177}}),Bo=()=>c(c({},Z()),{content:y(),title:y()}),_o=X({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Q(Bo(),c(c({},U()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(o,e){let{expose:t,slots:n,attrs:a}=e;const f=G();L(o.visible===void 0,"popover","`visible` will be removed in next major version, please use `open` instead."),t({getPopupDomNode:()=>{var s,v;return(v=(s=f.value)===null||s===void 0?void 0:s.getPopupDomNode)===null||v===void 0?void 0:v.call(s)}});const{prefixCls:i,configProvider:p}=V("popover",o),[g,m]=wo(i),C=O(()=>p.getPrefixCls()),x=()=>{var s,v;const{title:P=W((s=n.title)===null||s===void 0?void 0:s.call(n)),content:u=W((v=n.content)===null||v===void 0?void 0:v.call(n))}=o,h=!!(Array.isArray(P)?P.length:P),w=!!(Array.isArray(u)?u.length:P);return!h&&!w?null:d(uo,null,[h&&d("div",{class:`${i.value}-title`},[P]),d("div",{class:`${i.value}-inner-content`},[u])])};return()=>{const s=K(o.overlayClassName,m.value);return g(d(vo,b(b(b({},J(o,["title","content"])),a),{},{prefixCls:i.value,ref:f,overlayClassName:s,transitionName:q(C.value,"zoom-big",o.transitionName),"data-popover-inject":!0}),{title:x,default:n.default}))}}}),No=F(_o),Oo=o=>{const{componentCls:e,iconCls:t,zIndexPopup:n,colorText:a,colorWarning:f,marginXS:i,fontSize:p,fontWeightStrong:g,lineHeight:m}=o;return{[e]:{zIndex:n,[`${e}-inner-content`]:{color:a},[`${e}-message`]:{position:"relative",marginBottom:i,color:a,fontSize:p,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon ${t}`]:{color:f,fontSize:p,flex:"none",lineHeight:1,paddingTop:(Math.round(p*m)-p)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:g}},[`${e}-description`]:{position:"relative",marginInlineStart:p+i,marginBottom:i,color:a,fontSize:p},[`${e}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},zo=M("Popconfirm",o=>Oo(o),o=>{const{zIndexPopupBase:e}=o;return{zIndexPopup:e+60}});var Ao=function(o,e){var t={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(o);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(o,n[a])&&(t[n[a]]=o[n[a]]);return t};const Io=()=>c(c({},Z()),{prefixCls:String,content:y(),title:y(),description:y(),okType:po("primary"),disabled:{type:Boolean,default:!1},okText:y(),cancelText:y(),icon:y(),okButtonProps:R(),cancelButtonProps:R(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Do=X({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Q(Io(),c(c({},U()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(o,e){let{slots:t,emit:n,expose:a,attrs:f}=e;const i=G();L(o.visible===void 0,"Popconfirm","`visible` will be removed in next major version, please use `open` instead."),a({getPopupDomNode:()=>{var r,l;return(l=(r=i.value)===null||r===void 0?void 0:r.getPopupDomNode)===null||l===void 0?void 0:l.call(r)}});const[p,g]=Po(!1,{value:mo(o,"open")}),m=(r,l)=>{o.open===void 0&&g(r),n("update:open",r),n("openChange",r,l)},C=r=>{m(!1,r)},x=r=>{var l;return(l=o.onConfirm)===null||l===void 0?void 0:l.call(o,r)},s=r=>{var l;m(!1,r),(l=o.onCancel)===null||l===void 0||l.call(o,r)},v=r=>{r.keyCode===bo.ESC&&p&&m(!1,r)},P=r=>{const{disabled:l}=o;l||m(r)},{prefixCls:u,getPrefixCls:h}=V("popconfirm",o),w=O(()=>h()),Y=O(()=>h("btn")),[oo]=zo(u),[z]=so("Popconfirm",co.Popconfirm),eo=()=>{var r,l,$,S,T;const{okButtonProps:k,cancelButtonProps:B,title:_=(r=t.title)===null||r===void 0?void 0:r.call(t),description:N=(l=t.description)===null||l===void 0?void 0:l.call(t),cancelText:to=($=t.cancel)===null||$===void 0?void 0:$.call(t),okText:no=(S=t.okText)===null||S===void 0?void 0:S.call(t),okType:A,icon:I=((T=t.icon)===null||T===void 0?void 0:T.call(t))||d(yo,null,null),showCancel:ro=!0}=o,{cancelButton:D,okButton:j}=t,E=c({onClick:s,size:"small"},B),ao=c(c(c({onClick:x},H(A)),{size:"small"}),k);return d("div",{class:`${u.value}-inner-content`},[d("div",{class:`${u.value}-message`},[I&&d("span",{class:`${u.value}-message-icon`},[I]),d("div",{class:[`${u.value}-message-title`,{[`${u.value}-message-title-only`]:!!N}]},[_])]),N&&d("div",{class:`${u.value}-description`},[N]),d("div",{class:`${u.value}-buttons`},[ro?D?D(E):d(xo,E,{default:()=>[to||z.value.cancelText]}):null,j?j(ao):d($o,{buttonProps:c(c({size:"small"},H(A)),k),actionFn:x,close:C,prefixCls:Y.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[no||z.value.okText]})])])};return()=>{var r;const{placement:l,overlayClassName:$,trigger:S="click"}=o,T=Ao(o,["placement","overlayClassName","trigger"]),k=J(T,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),B=K(u.value,$);return oo(d(No,b(b(b({},k),f),{},{trigger:S,placement:l,onOpenChange:P,open:p.value,overlayClassName:B,transitionName:q(w.value,"zoom-big",o.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[ho(((r=t.default)===null||r===void 0?void 0:r.call(t))||[],{onKeydown:_=>{v(_)}},!1)],content:eo}))}}}),ce=F(Do);export{ce as default,Io as popconfirmProps};
1
+ import{l as M,m as lo,h as c,r as io,a0 as F,w as L,q as V,i as K,f as b,s as q,N as W,ag as y,p as so,A as co,v as R,af as po}from"./index-TqLyy6IR.js";import{d as X,b as O,c as d,r as G,F as uo,a9 as mo}from"./vendor-Bn1JzzAn.js";import{T as vo,t as U,a as Z}from"./index-00kVj4me.js";import{o as J}from"./omit-CniSeCOA.js";import{i as fo}from"./zoom-CaFQv1KF.js";import{g as go}from"./placementArrow-B45YBykr.js";import{P as Co}from"./colors-DioWDCbu.js";import{i as Q}from"./initDefaultProps-18rmGkik.js";import{c as H,B as xo}from"./index-DAnXSg0r.js";import{E as yo}from"./icons-DG5UD-6K.js";import{u as Po}from"./useMergedState-DXbJa_zE.js";import{K as bo}from"./KeyCode-D63Tfrq7.js";import{b as ho}from"./vnode-Datcekgj.js";import{A as $o}from"./ActionButton-DGMs1wBm.js";import"./Trigger-C7iLr-Ik.js";import"./raf-Deuc0E8-.js";import"./motion-3kvGzSgV.js";import"./isVisible-C7tPsqfj.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./_getTag-DnrRH4E6.js";import"./firstNotUndefined-CLFzEa0p.js";import"./index-DP9ZLjra.js";import"./useState-CnxtbLoC.js";import"./devWarning-ONeWC5dH.js";import"./compact-item-DpAXXaqu.js";import"./createContext-BYq8bCQX.js";import"./Compact-BzVXohrg.js";const So=o=>{const{componentCls:e,popoverBg:t,popoverColor:n,width:a,fontWeightStrong:f,popoverPadding:i,boxShadowSecondary:p,colorTextHeading:g,borderRadiusLG:m,zIndexPopup:C,marginXS:x,colorBgElevated:s}=o;return[{[e]:c(c({},io(o)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:C,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":s,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:t,backgroundClip:"padding-box",borderRadius:m,boxShadow:p,padding:i},[`${e}-title`]:{minWidth:a,marginBottom:x,color:g,fontWeight:f},[`${e}-inner-content`]:{color:n}})},go(o,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",[`${e}-content`]:{display:"inline-block"}}}]},To=o=>{const{componentCls:e}=o;return{[e]:Co.map(t=>{const n=o[`${t}-6`];return{[`&${e}-${t}`]:{"--antd-arrow-background-color":n,[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{background:"transparent"}}}})}},ko=o=>{const{componentCls:e,lineWidth:t,lineType:n,colorSplit:a,paddingSM:f,controlHeight:i,fontSize:p,lineHeight:g,padding:m}=o,C=i-Math.round(p*g),x=C/2,s=C/2-t,v=m;return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${x}px ${v}px ${s}px`,borderBottom:`${t}px ${n} ${a}`},[`${e}-inner-content`]:{padding:`${f}px ${v}px`}}}},wo=M("Popover",o=>{const{colorBgElevated:e,colorText:t,wireframe:n}=o,a=lo(o,{popoverBg:e,popoverColor:t,popoverPadding:12});return[So(a),To(a),n&&ko(a),fo(a,"zoom-big")]},o=>{let{zIndexPopupBase:e}=o;return{zIndexPopup:e+30,width:177}}),Bo=()=>c(c({},Z()),{content:y(),title:y()}),_o=X({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Q(Bo(),c(c({},U()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(o,e){let{expose:t,slots:n,attrs:a}=e;const f=G();L(o.visible===void 0,"popover","`visible` will be removed in next major version, please use `open` instead."),t({getPopupDomNode:()=>{var s,v;return(v=(s=f.value)===null||s===void 0?void 0:s.getPopupDomNode)===null||v===void 0?void 0:v.call(s)}});const{prefixCls:i,configProvider:p}=V("popover",o),[g,m]=wo(i),C=O(()=>p.getPrefixCls()),x=()=>{var s,v;const{title:P=W((s=n.title)===null||s===void 0?void 0:s.call(n)),content:u=W((v=n.content)===null||v===void 0?void 0:v.call(n))}=o,h=!!(Array.isArray(P)?P.length:P),w=!!(Array.isArray(u)?u.length:P);return!h&&!w?null:d(uo,null,[h&&d("div",{class:`${i.value}-title`},[P]),d("div",{class:`${i.value}-inner-content`},[u])])};return()=>{const s=K(o.overlayClassName,m.value);return g(d(vo,b(b(b({},J(o,["title","content"])),a),{},{prefixCls:i.value,ref:f,overlayClassName:s,transitionName:q(C.value,"zoom-big",o.transitionName),"data-popover-inject":!0}),{title:x,default:n.default}))}}}),No=F(_o),Oo=o=>{const{componentCls:e,iconCls:t,zIndexPopup:n,colorText:a,colorWarning:f,marginXS:i,fontSize:p,fontWeightStrong:g,lineHeight:m}=o;return{[e]:{zIndex:n,[`${e}-inner-content`]:{color:a},[`${e}-message`]:{position:"relative",marginBottom:i,color:a,fontSize:p,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon ${t}`]:{color:f,fontSize:p,flex:"none",lineHeight:1,paddingTop:(Math.round(p*m)-p)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:g}},[`${e}-description`]:{position:"relative",marginInlineStart:p+i,marginBottom:i,color:a,fontSize:p},[`${e}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},zo=M("Popconfirm",o=>Oo(o),o=>{const{zIndexPopupBase:e}=o;return{zIndexPopup:e+60}});var Ao=function(o,e){var t={};for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(o);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(o,n[a])&&(t[n[a]]=o[n[a]]);return t};const Io=()=>c(c({},Z()),{prefixCls:String,content:y(),title:y(),description:y(),okType:po("primary"),disabled:{type:Boolean,default:!1},okText:y(),cancelText:y(),icon:y(),okButtonProps:R(),cancelButtonProps:R(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Do=X({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Q(Io(),c(c({},U()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(o,e){let{slots:t,emit:n,expose:a,attrs:f}=e;const i=G();L(o.visible===void 0,"Popconfirm","`visible` will be removed in next major version, please use `open` instead."),a({getPopupDomNode:()=>{var r,l;return(l=(r=i.value)===null||r===void 0?void 0:r.getPopupDomNode)===null||l===void 0?void 0:l.call(r)}});const[p,g]=Po(!1,{value:mo(o,"open")}),m=(r,l)=>{o.open===void 0&&g(r),n("update:open",r),n("openChange",r,l)},C=r=>{m(!1,r)},x=r=>{var l;return(l=o.onConfirm)===null||l===void 0?void 0:l.call(o,r)},s=r=>{var l;m(!1,r),(l=o.onCancel)===null||l===void 0||l.call(o,r)},v=r=>{r.keyCode===bo.ESC&&p&&m(!1,r)},P=r=>{const{disabled:l}=o;l||m(r)},{prefixCls:u,getPrefixCls:h}=V("popconfirm",o),w=O(()=>h()),Y=O(()=>h("btn")),[oo]=zo(u),[z]=so("Popconfirm",co.Popconfirm),eo=()=>{var r,l,$,S,T;const{okButtonProps:k,cancelButtonProps:B,title:_=(r=t.title)===null||r===void 0?void 0:r.call(t),description:N=(l=t.description)===null||l===void 0?void 0:l.call(t),cancelText:to=($=t.cancel)===null||$===void 0?void 0:$.call(t),okText:no=(S=t.okText)===null||S===void 0?void 0:S.call(t),okType:A,icon:I=((T=t.icon)===null||T===void 0?void 0:T.call(t))||d(yo,null,null),showCancel:ro=!0}=o,{cancelButton:D,okButton:j}=t,E=c({onClick:s,size:"small"},B),ao=c(c(c({onClick:x},H(A)),{size:"small"}),k);return d("div",{class:`${u.value}-inner-content`},[d("div",{class:`${u.value}-message`},[I&&d("span",{class:`${u.value}-message-icon`},[I]),d("div",{class:[`${u.value}-message-title`,{[`${u.value}-message-title-only`]:!!N}]},[_])]),N&&d("div",{class:`${u.value}-description`},[N]),d("div",{class:`${u.value}-buttons`},[ro?D?D(E):d(xo,E,{default:()=>[to||z.value.cancelText]}):null,j?j(ao):d($o,{buttonProps:c(c({size:"small"},H(A)),k),actionFn:x,close:C,prefixCls:Y.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[no||z.value.okText]})])])};return()=>{var r;const{placement:l,overlayClassName:$,trigger:S="click"}=o,T=Ao(o,["placement","overlayClassName","trigger"]),k=J(T,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),B=K(u.value,$);return oo(d(No,b(b(b({},k),f),{},{trigger:S,placement:l,onOpenChange:P,open:p.value,overlayClassName:B,transitionName:q(w.value,"zoom-big",o.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[ho(((r=t.default)===null||r===void 0?void 0:r.call(t))||[],{onKeydown:_=>{v(_)}},!1)],content:eo}))}}}),ce=F(Do);export{ce as default,Io as popconfirmProps};
@@ -1,4 +1,4 @@
1
- import{o as be,x as Ce,s as pe,e as $e,d as R,c as a,b as Q,r as ve,Q as de,a9 as Se}from"./vendor-Bn1JzzAn.js";import{h as l,P as s,i as v,ap as xe,f as N,ae as ne,aq as K,ar as ye,as as Ie,l as Pe,m as Oe,r as Te,n as ze,at as re,q as Be,p as we,a5 as M,H as F,af as Ne,a6 as Me,a7 as Ee,au as je,a0 as De}from"./index-ByDs4cW4.js";import{ah as ae,bc as oe,bd as le,be as se}from"./icons-DG5UD-6K.js";import{S as G,s as ge}from"./index-BBFjMjmp.js";import{u as Re}from"./responsiveObserve-CJ3Zm_-H.js";import{i as Ae,g as _e,h as He}from"./index-D_-6qQf0.js";import{B as Ke}from"./Trigger-DhD-LUoe.js";import{B as me}from"./BaseInput-KL2IeywH.js";import{c as ue}from"./vnode-DRkH4mPV.js";import{f as ce}from"./firstNotUndefined-CLFzEa0p.js";function Fe(){const e=pe({});let t=null;const i=Re();return be(()=>{t=i.value.subscribe(n=>{e.value=n})}),Ce(()=>{i.value.unsubscribe(t)}),e}function ft(e){const t=pe();return $e(()=>{t.value=e()},{flush:"sync"}),t}const Ve=R({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"small"}),i);return a(G,r,n)}}}),We=R({name:"MiddleSelect",inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"middle"}),i);return a(G,r,n)}}}),E=R({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:s.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:i,attrs:n}=t;const r=()=>{i("click",e.page)},O=g=>{i("keypress",g,r,e.page)};return()=>{const{showTitle:g,page:p,itemRender:c}=e,{class:h,style:u}=n,b=`${e.rootPrefixCls}-item`,$=v(b,`${b}-${e.page}`,{[`${b}-active`]:e.active,[`${b}-disabled`]:!e.page},h);return a("li",{onClick:r,onKeypress:O,title:g?String(p):null,tabindex:"0",class:$,style:u},[c({page:p,type:"page",originalElement:a("a",{rel:"nofollow"},[p])})])}}}),j={ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Je=R({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:s.any,current:Number,pageSizeOptions:s.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:s.object,rootPrefixCls:String,selectPrefixCls:String,goButton:s.any},setup(e){const t=ve(""),i=Q(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),n=c=>`${c.value} ${e.locale.items_per_page}`,r=c=>{const{value:h}=c.target;t.value!==h&&(t.value=h)},O=c=>{const{goButton:h,quickGo:u,rootPrefixCls:b}=e;if(!(h||t.value===""))if(c.relatedTarget&&(c.relatedTarget.className.indexOf(`${b}-item-link`)>=0||c.relatedTarget.className.indexOf(`${b}-item`)>=0)){t.value="";return}else u(i.value),t.value=""},g=c=>{t.value!==""&&(c.keyCode===j.ENTER||c.type==="click")&&(e.quickGo(i.value),t.value="")},p=Q(()=>{const{pageSize:c,pageSizeOptions:h}=e;return h.some(u=>u.toString()===c.toString())?h:h.concat([c.toString()]).sort((u,b)=>{const $=isNaN(Number(u))?0:Number(u),S=isNaN(Number(b))?0:Number(b);return $-S})});return()=>{const{rootPrefixCls:c,locale:h,changeSize:u,quickGo:b,goButton:$,selectComponentClass:S,selectPrefixCls:m,pageSize:T,disabled:x}=e,o=`${c}-options`;let C=null,y=null,z=null;if(!u&&!b)return null;if(u&&S){const D=e.buildOptionText||n,d=p.value.map((f,V)=>a(S.Option,{key:V,value:f},{default:()=>[D({value:f})]}));C=a(S,{disabled:x,prefixCls:m,showSearch:!1,class:`${o}-size-changer`,optionLabelProp:"children",value:(T||p.value[0]).toString(),onChange:f=>u(Number(f)),getPopupContainer:f=>f.parentNode},{default:()=>[d]})}return b&&($&&(z=typeof $=="boolean"?a("button",{type:"button",onClick:g,onKeyup:g,disabled:x,class:`${o}-quick-jumper-button`},[h.jump_to_confirm]):a("span",{onClick:g,onKeyup:g},[$])),y=a("div",{class:`${o}-quick-jumper`},[h.jump_to,a(me,{disabled:x,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:g,onBlur:O},null),h.page,z])),a("li",{class:`${o}`},[C,y])}}});var Le=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};function Xe(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Ge(e){let{originalElement:t}=e;return t}function P(e,t,i){const n=typeof e>"u"?t.statePageSize:e;return Math.floor((i.total-1)/n)+1}const qe=R({compatConfig:{MODE:3},name:"Pagination",mixins:[Ke],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:s.string.def("rc-pagination"),selectPrefixCls:s.string.def("rc-select"),current:Number,defaultCurrent:s.number.def(1),total:s.number.def(0),pageSize:Number,defaultPageSize:s.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:s.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:s.oneOfType([s.looseBool,s.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:s.arrayOf(s.oneOfType([s.number,s.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:s.object.def(Ie),itemRender:s.func.def(Ge),prevIcon:s.any,nextIcon:s.any,jumpPrevIcon:s.any,jumpNextIcon:s.any,totalBoundaryShowSizeChanger:s.number.def(50)},data(){const e=this.$props;let t=ce([this.current,this.defaultCurrent]);const i=ce([this.pageSize,this.defaultPageSize]);return t=Math.min(t,P(i,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:i}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let i=this.stateCurrent;const n=P(e,this.$data,this.$props);i=i>n?n:i,K(this,"current")||(t.stateCurrent=i,t.stateCurrentInputValue=i),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const i=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);i&&document.activeElement===i&&i.blur()}})},total(){const e={},t=P(this.pageSize,this.$data,this.$props);if(K(this,"current")){const i=Math.min(this.current,t);e.stateCurrent=i,e.stateCurrentInputValue=i}else{let i=this.stateCurrent;i===0&&t>0?i=1:i=Math.min(this.stateCurrent,t),e.stateCurrent=i}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(P(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:i}=this.$props;return ye(this,e,this.$props)||a("button",{type:"button","aria-label":t,class:`${i}-item-link`},null)},getValidValue(e){const t=e.target.value,i=P(void 0,this.$data,this.$props),{stateCurrentInputValue:n}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=n:t>=i?r=i:r=Number(t),r},isValid(e){return Xe(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:i}=this.$props;return i<=t?!1:e},handleKeyDown(e){(e.keyCode===j.ARROW_UP||e.keyCode===j.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),i=this.stateCurrentInputValue;t!==i&&this.setState({stateCurrentInputValue:t}),e.keyCode===j.ENTER?this.handleChange(t):e.keyCode===j.ARROW_UP?this.handleChange(t-1):e.keyCode===j.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const i=t,n=P(e,this.$data,this.$props);t=t>n?n:t,n===0&&(t=this.stateCurrent),typeof e=="number"&&(K(this,"pageSize")||this.setState({statePageSize:e}),K(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==i&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let i=e;if(this.isValid(i)&&!t){const n=P(void 0,this.$data,this.$props);return i>n?i=n:i<1&&(i=1),K(this,"current")||this.setState({stateCurrent:i,stateCurrentInputValue:i}),this.__emit("update:current",i),this.__emit("change",i,this.statePageSize),i}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<P(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:i}=this.$props;return typeof e<"u"?e:t>i},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];t(...n)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===j.ENTER||e.type==="click")&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,i=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),n=!this.hasPrev();return ne(i)?ue(i,n?{disabled:n}:{}):i},renderNext(e){const{itemRender:t}=this.$props,i=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),n=!this.hasNext();return ne(i)?ue(i,n?{disabled:n}:{}):i}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:i,total:n,locale:r,showQuickJumper:O,showLessItems:g,showTitle:p,showTotal:c,simple:h,itemRender:u,showPrevNextJumpers:b,jumpPrevIcon:$,jumpNextIcon:S,selectComponentClass:m,selectPrefixCls:T,pageSizeOptions:x}=this.$props,{stateCurrent:o,statePageSize:C}=this,y=xe(this.$attrs).extraAttrs,{class:z}=y,D=Le(y,["class"]);if(i===!0&&this.total<=C)return null;const d=P(void 0,this.$data,this.$props),f=[];let V=null,Y=null,Z=null,k=null,A=null;const W=O&&O.goButton,I=g?1:2,ee=o-1>0?o-1:0,te=o+1<d?o+1:d,J=this.hasPrev(),L=this.hasNext();if(h)return W&&(typeof W=="boolean"?A=a("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[r.jump_to_confirm]):A=a("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[W]),A=a("li",{title:p?`${r.jump_to}${o}/${d}`:null,class:`${e}-simple-pager`},[A])),a("ul",N({class:v(`${e} ${e}-simple`,{[`${e}-disabled`]:t},z)},D),[a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:J?0:null,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:!J}),"aria-disabled":!J},[this.renderPrev(ee)]),a("li",{title:p?`${o}/${d}`:null,class:`${e}-simple-pager`},[a(me,{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),a("span",{class:`${e}-slash`},[de("/")]),d]),a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:L?0:null,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:!L}),"aria-disabled":!L},[this.renderNext(te)]),A]);if(d<=3+I*2){const X={locale:r,rootPrefixCls:e,showTitle:p,itemRender:u,onClick:this.handleChange,onKeypress:this.runIfEnter};d||f.push(a(E,N(N({},X),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let B=1;B<=d;B+=1){const w=o===B;f.push(a(E,N(N({},X),{},{key:B,page:B,active:w}),null))}}else{const X=g?r.prev_3:r.prev_5,B=g?r.next_3:r.next_5;b&&(V=a("li",{title:this.showTitle?X:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:v(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!$})},[u({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),Y=a("li",{title:this.showTitle?B:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:v(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!S})},[u({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),k=a(E,{locale:r,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:d,page:d,active:!1,showTitle:p,itemRender:u},null),Z=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:u},null);let w=Math.max(1,o-I),_=Math.min(o+I,d);o-1<=I&&(_=1+I*2),d-o<=I&&(w=d-I*2);for(let H=w;H<=_;H+=1){const fe=o===H;f.push(a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:H,page:H,active:fe,showTitle:p,itemRender:u},null))}o-1>=I*2&&o!==3&&(f[0]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:w,page:w,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.unshift(V)),d-o>=I*2&&o!==d-2&&(f[f.length-1]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:_,page:_,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.push(Y)),w!==1&&f.unshift(Z),_!==d&&f.push(k)}let ie=null;c&&(ie=a("li",{class:`${e}-total-text`},[c(n,[n===0?0:(o-1)*C+1,o*C>n?n:o*C])]));const q=!J||!d,U=!L||!d,he=this.buildOptionText||this.$slots.buildOptionText;return a("ul",N(N({unselectable:"on",ref:"paginationNode"},D),{},{class:v({[`${e}`]:!0,[`${e}-disabled`]:t},z)}),[ie,a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:q?null:0,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:q}),"aria-disabled":q},[this.renderPrev(ee)]),f,a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:U?null:0,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:U}),"aria-disabled":U},[this.renderNext(te)]),a(Je,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:m,selectPrefixCls:T,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:C,pageSizeOptions:x,buildOptionText:he||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:W},null)])}}),Ue=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`
1
+ import{o as be,x as Ce,s as pe,e as $e,d as R,c as a,b as Q,r as ve,Q as de,a9 as Se}from"./vendor-Bn1JzzAn.js";import{h as l,P as s,i as v,ap as xe,f as N,ae as ne,aq as K,ar as ye,as as Ie,l as Pe,m as Oe,r as Te,n as ze,at as re,q as Be,p as we,a5 as M,H as F,af as Ne,a6 as Me,a7 as Ee,au as je,a0 as De}from"./index-TqLyy6IR.js";import{ah as ae,bc as oe,bd as le,be as se}from"./icons-DG5UD-6K.js";import{S as G,s as ge}from"./index-YviHYMA2.js";import{u as Re}from"./responsiveObserve-D0nciAEn.js";import{i as Ae,g as _e,h as He}from"./index-CJEFd0QJ.js";import{B as Ke}from"./Trigger-C7iLr-Ik.js";import{B as me}from"./BaseInput-DnU8pbUh.js";import{c as ue}from"./vnode-Datcekgj.js";import{f as ce}from"./firstNotUndefined-CLFzEa0p.js";function Fe(){const e=pe({});let t=null;const i=Re();return be(()=>{t=i.value.subscribe(n=>{e.value=n})}),Ce(()=>{i.value.unsubscribe(t)}),e}function ft(e){const t=pe();return $e(()=>{t.value=e()},{flush:"sync"}),t}const Ve=R({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"small"}),i);return a(G,r,n)}}}),We=R({name:"MiddleSelect",inheritAttrs:!1,props:ge(),Option:G.Option,setup(e,t){let{attrs:i,slots:n}=t;return()=>{const r=l(l(l({},e),{size:"middle"}),i);return a(G,r,n)}}}),E=R({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:s.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:i,attrs:n}=t;const r=()=>{i("click",e.page)},O=g=>{i("keypress",g,r,e.page)};return()=>{const{showTitle:g,page:p,itemRender:c}=e,{class:h,style:u}=n,b=`${e.rootPrefixCls}-item`,$=v(b,`${b}-${e.page}`,{[`${b}-active`]:e.active,[`${b}-disabled`]:!e.page},h);return a("li",{onClick:r,onKeypress:O,title:g?String(p):null,tabindex:"0",class:$,style:u},[c({page:p,type:"page",originalElement:a("a",{rel:"nofollow"},[p])})])}}}),j={ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Je=R({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:s.any,current:Number,pageSizeOptions:s.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:s.object,rootPrefixCls:String,selectPrefixCls:String,goButton:s.any},setup(e){const t=ve(""),i=Q(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),n=c=>`${c.value} ${e.locale.items_per_page}`,r=c=>{const{value:h}=c.target;t.value!==h&&(t.value=h)},O=c=>{const{goButton:h,quickGo:u,rootPrefixCls:b}=e;if(!(h||t.value===""))if(c.relatedTarget&&(c.relatedTarget.className.indexOf(`${b}-item-link`)>=0||c.relatedTarget.className.indexOf(`${b}-item`)>=0)){t.value="";return}else u(i.value),t.value=""},g=c=>{t.value!==""&&(c.keyCode===j.ENTER||c.type==="click")&&(e.quickGo(i.value),t.value="")},p=Q(()=>{const{pageSize:c,pageSizeOptions:h}=e;return h.some(u=>u.toString()===c.toString())?h:h.concat([c.toString()]).sort((u,b)=>{const $=isNaN(Number(u))?0:Number(u),S=isNaN(Number(b))?0:Number(b);return $-S})});return()=>{const{rootPrefixCls:c,locale:h,changeSize:u,quickGo:b,goButton:$,selectComponentClass:S,selectPrefixCls:m,pageSize:T,disabled:x}=e,o=`${c}-options`;let C=null,y=null,z=null;if(!u&&!b)return null;if(u&&S){const D=e.buildOptionText||n,d=p.value.map((f,V)=>a(S.Option,{key:V,value:f},{default:()=>[D({value:f})]}));C=a(S,{disabled:x,prefixCls:m,showSearch:!1,class:`${o}-size-changer`,optionLabelProp:"children",value:(T||p.value[0]).toString(),onChange:f=>u(Number(f)),getPopupContainer:f=>f.parentNode},{default:()=>[d]})}return b&&($&&(z=typeof $=="boolean"?a("button",{type:"button",onClick:g,onKeyup:g,disabled:x,class:`${o}-quick-jumper-button`},[h.jump_to_confirm]):a("span",{onClick:g,onKeyup:g},[$])),y=a("div",{class:`${o}-quick-jumper`},[h.jump_to,a(me,{disabled:x,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:g,onBlur:O},null),h.page,z])),a("li",{class:`${o}`},[C,y])}}});var Le=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};function Xe(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Ge(e){let{originalElement:t}=e;return t}function P(e,t,i){const n=typeof e>"u"?t.statePageSize:e;return Math.floor((i.total-1)/n)+1}const qe=R({compatConfig:{MODE:3},name:"Pagination",mixins:[Ke],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:s.string.def("rc-pagination"),selectPrefixCls:s.string.def("rc-select"),current:Number,defaultCurrent:s.number.def(1),total:s.number.def(0),pageSize:Number,defaultPageSize:s.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:s.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:s.oneOfType([s.looseBool,s.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:s.arrayOf(s.oneOfType([s.number,s.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:s.object.def(Ie),itemRender:s.func.def(Ge),prevIcon:s.any,nextIcon:s.any,jumpPrevIcon:s.any,jumpNextIcon:s.any,totalBoundaryShowSizeChanger:s.number.def(50)},data(){const e=this.$props;let t=ce([this.current,this.defaultCurrent]);const i=ce([this.pageSize,this.defaultPageSize]);return t=Math.min(t,P(i,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:i}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let i=this.stateCurrent;const n=P(e,this.$data,this.$props);i=i>n?n:i,K(this,"current")||(t.stateCurrent=i,t.stateCurrentInputValue=i),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const i=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);i&&document.activeElement===i&&i.blur()}})},total(){const e={},t=P(this.pageSize,this.$data,this.$props);if(K(this,"current")){const i=Math.min(this.current,t);e.stateCurrent=i,e.stateCurrentInputValue=i}else{let i=this.stateCurrent;i===0&&t>0?i=1:i=Math.min(this.stateCurrent,t),e.stateCurrent=i}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(P(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:i}=this.$props;return ye(this,e,this.$props)||a("button",{type:"button","aria-label":t,class:`${i}-item-link`},null)},getValidValue(e){const t=e.target.value,i=P(void 0,this.$data,this.$props),{stateCurrentInputValue:n}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=n:t>=i?r=i:r=Number(t),r},isValid(e){return Xe(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:i}=this.$props;return i<=t?!1:e},handleKeyDown(e){(e.keyCode===j.ARROW_UP||e.keyCode===j.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),i=this.stateCurrentInputValue;t!==i&&this.setState({stateCurrentInputValue:t}),e.keyCode===j.ENTER?this.handleChange(t):e.keyCode===j.ARROW_UP?this.handleChange(t-1):e.keyCode===j.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const i=t,n=P(e,this.$data,this.$props);t=t>n?n:t,n===0&&(t=this.stateCurrent),typeof e=="number"&&(K(this,"pageSize")||this.setState({statePageSize:e}),K(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==i&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let i=e;if(this.isValid(i)&&!t){const n=P(void 0,this.$data,this.$props);return i>n?i=n:i<1&&(i=1),K(this,"current")||this.setState({stateCurrent:i,stateCurrentInputValue:i}),this.__emit("update:current",i),this.__emit("change",i,this.statePageSize),i}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<P(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:i}=this.$props;return typeof e<"u"?e:t>i},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];t(...n)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===j.ENTER||e.type==="click")&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,i=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),n=!this.hasPrev();return ne(i)?ue(i,n?{disabled:n}:{}):i},renderNext(e){const{itemRender:t}=this.$props,i=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),n=!this.hasNext();return ne(i)?ue(i,n?{disabled:n}:{}):i}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:i,total:n,locale:r,showQuickJumper:O,showLessItems:g,showTitle:p,showTotal:c,simple:h,itemRender:u,showPrevNextJumpers:b,jumpPrevIcon:$,jumpNextIcon:S,selectComponentClass:m,selectPrefixCls:T,pageSizeOptions:x}=this.$props,{stateCurrent:o,statePageSize:C}=this,y=xe(this.$attrs).extraAttrs,{class:z}=y,D=Le(y,["class"]);if(i===!0&&this.total<=C)return null;const d=P(void 0,this.$data,this.$props),f=[];let V=null,Y=null,Z=null,k=null,A=null;const W=O&&O.goButton,I=g?1:2,ee=o-1>0?o-1:0,te=o+1<d?o+1:d,J=this.hasPrev(),L=this.hasNext();if(h)return W&&(typeof W=="boolean"?A=a("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[r.jump_to_confirm]):A=a("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[W]),A=a("li",{title:p?`${r.jump_to}${o}/${d}`:null,class:`${e}-simple-pager`},[A])),a("ul",N({class:v(`${e} ${e}-simple`,{[`${e}-disabled`]:t},z)},D),[a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:J?0:null,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:!J}),"aria-disabled":!J},[this.renderPrev(ee)]),a("li",{title:p?`${o}/${d}`:null,class:`${e}-simple-pager`},[a(me,{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),a("span",{class:`${e}-slash`},[de("/")]),d]),a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:L?0:null,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:!L}),"aria-disabled":!L},[this.renderNext(te)]),A]);if(d<=3+I*2){const X={locale:r,rootPrefixCls:e,showTitle:p,itemRender:u,onClick:this.handleChange,onKeypress:this.runIfEnter};d||f.push(a(E,N(N({},X),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let B=1;B<=d;B+=1){const w=o===B;f.push(a(E,N(N({},X),{},{key:B,page:B,active:w}),null))}}else{const X=g?r.prev_3:r.prev_5,B=g?r.next_3:r.next_5;b&&(V=a("li",{title:this.showTitle?X:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:v(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!$})},[u({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),Y=a("li",{title:this.showTitle?B:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:v(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!S})},[u({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),k=a(E,{locale:r,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:d,page:d,active:!1,showTitle:p,itemRender:u},null),Z=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:u},null);let w=Math.max(1,o-I),_=Math.min(o+I,d);o-1<=I&&(_=1+I*2),d-o<=I&&(w=d-I*2);for(let H=w;H<=_;H+=1){const fe=o===H;f.push(a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:H,page:H,active:fe,showTitle:p,itemRender:u},null))}o-1>=I*2&&o!==3&&(f[0]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:w,page:w,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.unshift(V)),d-o>=I*2&&o!==d-2&&(f[f.length-1]=a(E,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:_,page:_,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),f.push(Y)),w!==1&&f.unshift(Z),_!==d&&f.push(k)}let ie=null;c&&(ie=a("li",{class:`${e}-total-text`},[c(n,[n===0?0:(o-1)*C+1,o*C>n?n:o*C])]));const q=!J||!d,U=!L||!d,he=this.buildOptionText||this.$slots.buildOptionText;return a("ul",N(N({unselectable:"on",ref:"paginationNode"},D),{},{class:v({[`${e}`]:!0,[`${e}-disabled`]:t},z)}),[ie,a("li",{title:p?r.prev_page:null,onClick:this.prev,tabindex:q?null:0,onKeypress:this.runIfEnterPrev,class:v(`${e}-prev`,{[`${e}-disabled`]:q}),"aria-disabled":q},[this.renderPrev(ee)]),f,a("li",{title:p?r.next_page:null,onClick:this.next,tabindex:U?null:0,onKeypress:this.runIfEnterNext,class:v(`${e}-next`,{[`${e}-disabled`]:U}),"aria-disabled":U},[this.renderNext(te)]),a(Je,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:m,selectPrefixCls:T,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:C,pageSizeOptions:x,buildOptionText:he||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:W},null)])}}),Ue=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`
2
2
  &:hover ${t}-item:not(${t}-item-active),
3
3
  &:active ${t}-item:not(${t}-item-active),
4
4
  &:hover ${t}-item-link,
@@ -1,4 +1,4 @@
1
- import{h as S,ah as gn,P as V,f as k,i as ue,ae as Pe,L as Rt,B as bn,Q as ve,aB as St,r as Je,ab as Qe,m as Se,ai as Dt,l as Sn,q as yn,M as wn,aC as In,a5 as Cn,af as Me,H as xn,a6 as yt,s as $n,aD as On}from"./index-ByDs4cW4.js";import{d as fe,b as H,c as M,r as me,k as Tn,a7 as Vt,i as Be,e as Ie,o as ye,w as ne,Q as qe,F as Fe,s as X,f as De,p as ke,j as Mn,a as $e,t as En,x as Pn,z as et,n as Ee,q as Fn,a9 as ge}from"./vendor-Bn1JzzAn.js";import{T as Rn}from"./Trigger-DhD-LUoe.js";import{K as _}from"./KeyCode-D63Tfrq7.js";import{c as Ht}from"./vnode-DRkH4mPV.js";import{B as Dn}from"./BaseInput-KL2IeywH.js";import{p as tt}from"./pickAttrs-Dbye0px4.js";import{O as Vn}from"./Overflow-CO7_2YLN.js";import{i as Hn}from"./isMobile--2fOlCHx.js";import{i as nt}from"./initDefaultProps-B3bCivrt.js";import{R as Nn}from"./index-DleKcclQ.js";import{w as he}from"./raf-Deuc0E8-.js";import{s as be}from"./motion-CF5pGsxz.js";import{o as _e}from"./omit-AK4WqVTT.js";import{u as wt}from"./useMergedState-DXbJa_zE.js";import{u as It}from"./useState-CnxtbLoC.js";import{C as Ln,L as Bn,ak as _n,b as An,k as zn,ai as Wn}from"./icons-DG5UD-6K.js";import{u as Kn,F as jn}from"./FormItemContext-BEKNtNF9.js";import{a as Un,g as Gn}from"./statusUtils-8u_lKSFJ.js";import{u as Yn}from"./Compact-CD_4lbxr.js";import{i as Ct}from"./move-CaOFtFLU.js";import{s as Xn,a as Qn,b as qn,c as Zn,i as xt}from"./slide-BuSk5-ue.js";import{g as Jn}from"./compact-item-n65WDhze.js";import{d as kn}from"./devWarning-sBSSW127.js";function $t(e,t){const{key:o}=e;let n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Nt(e,t){const{label:o,value:n,options:l}=e||{};return{label:o||(t?"children":"label"),value:n||"value",options:l||"options"}}function eo(e){let{fieldNames:t,childrenAsData:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:l,value:i,options:c}=Nt(t,!1);function a(f,s){f.forEach(r=>{const m=r[l];if(s||!(c in r)){const b=r[i];n.push({key:$t(r,n.length),groupOption:s,data:r,label:m,value:b})}else{let b=m;b===void 0&&o&&(b=r.label),n.push({key:$t(r,n.length),group:!0,data:r,label:b}),a(r[c],!0)}})}return a(e,!1),n}function Ze(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return gn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function to(e,t){if(!t||!t.length)return null;let o=!1;function n(i,c){let[a,...f]=c;if(!a)return[i];const s=i.split(a);return o=o||s.length>1,s.reduce((r,m)=>[...r,...n(m,f)],[]).filter(r=>r)}const l=n(e,t);return o?l:null}var no=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 l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const oo=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},lo=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:n,expose:l}=t;const i=H(()=>{const{dropdownMatchSelectWidth:a}=e;return oo(a)}),c=me();return l({getPopupElement:()=>c.value}),()=>{const a=S(S({},e),n),{empty:f=!1}=a,s=no(a,["empty"]),{visible:r,dropdownAlign:m,prefixCls:b,popupElement:C,dropdownClassName:g,dropdownStyle:y,direction:w="ltr",placement:x,dropdownMatchSelectWidth:D,containerWidth:E,dropdownRender:I,animation:v,transitionName:P,getPopupContainer:O,getTriggerDOMNode:R,onPopupVisibleChange:N,onPopupMouseEnter:A,onPopupFocusin:B,onPopupFocusout:U}=s,Y=`${b}-dropdown`;let W=C;I&&(W=I({menuNode:C,props:e}));const G=v?`${Y}-${v}`:P,z=S({minWidth:`${E}px`},y);return typeof D=="number"?z.width=`${D}px`:D&&(z.width=`${E}px`),M(Rn,k(k({},e),{},{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:x||(w==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:Y,popupTransitionName:G,popupAlign:m,popupVisible:r,getPopupContainer:O,popupClassName:ue(g,{[`${Y}-empty`]:f}),popupStyle:z,getTriggerDOMNode:R,onPopupVisibleChange:N}),{default:o.default,popup:()=>M("div",{ref:c,onMouseenter:A,onFocusin:B,onFocusout:U},[W])})}}}),Ce=(e,t)=>{let{slots:o}=t;var n;const{class:l,customizeIcon:i,customizeIconProps:c,onMousedown:a,onClick:f}=e;let s;return typeof i=="function"?s=i(c):s=Tn(i)?Vt(i):i,M("span",{class:l,onMousedown:r=>{r.preventDefault(),a&&a(r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[s!==void 0?s:M("span",{class:l.split(/\s+/).map(r=>`${r}-icon`)},[(n=o.default)===null||n===void 0?void 0:n.call(o)])])};Ce.inheritAttrs=!1;Ce.displayName="TransBtn";Ce.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const io={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Lt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:io,setup(e){let t=null;const o=Be("VCSelectContainerEvent");return()=>{var n;const{prefixCls:l,id:i,inputElement:c,disabled:a,tabindex:f,autofocus:s,autocomplete:r,editable:m,activeDescendantId:b,value:C,onKeydown:g,onMousedown:y,onChange:w,onPaste:x,onCompositionstart:D,onCompositionend:E,onFocus:I,onBlur:v,open:P,inputRef:O,attrs:R}=e;let N=c||M(Dn,null,null);const A=N.props||{},{onKeydown:B,onInput:U,onFocus:Y,onBlur:W,onMousedown:G,onCompositionstart:z,onCompositionend:oe,style:ie}=A;return N=Ht(N,S(S(S(S(S({type:"search"},A),{id:i,ref:O,disabled:a,tabindex:f,lazy:!1,autocomplete:r||"off",autofocus:s,class:ue(`${l}-selection-search-input`,(n=N?.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":b}),R),{value:m?C:"",readonly:!m,unselectable:m?null:"on",style:S(S({},ie),{opacity:m?null:0}),onKeydown:p=>{g(p),B&&B(p)},onMousedown:p=>{y(p),G&&G(p)},onInput:p=>{w(p),U&&U(p)},onCompositionstart(p){D(p),z&&z(p)},onCompositionend(p){E(p),oe&&oe(p)},onPaste:x,onFocus:function(){clearTimeout(t),Y&&Y(arguments.length<=0?void 0:arguments[0]),I&&I(arguments.length<=0?void 0:arguments[0]),o?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var p=arguments.length,L=new Array(p),T=0;T<p;T++)L[T]=arguments[T];t=setTimeout(()=>{W&&W(L[0]),v&&v(L[0]),o?.blur(L[0])},100)}}),N.type==="textarea"?{}:{type:"search"}),!0,!0),N}}}),ao=Symbol("TreeSelectLegacyContextPropsKey");function ot(){return Be(ao,{})}const ro={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),compositionStatus:Boolean,removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ot=e=>{e.preventDefault(),e.stopPropagation()},so=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:ro,setup(e){const t=X(),o=X(0),n=X(!1),l=ot(),i=H(()=>`${e.prefixCls}-selection`),c=H(()=>e.open||e.mode==="tags"?e.searchValue:""),a=H(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value)),f=me("");Ie(()=>{f.value=c.value}),ye(()=>{ne(f,()=>{o.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(g,y,w,x,D){return M("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:w}),title:typeof g=="string"||typeof g=="number"?g.toString():void 0},[M("span",{class:`${i.value}-item-content`},[y]),x&&M(Ce,{class:`${i.value}-item-remove`,onMousedown:Ot,onClick:D,customizeIcon:e.removeIcon},{default:()=>[qe("×")]})])}function r(g,y,w,x,D,E){var I;const v=O=>{Ot(O),e.onToggleOpen(!open)};let P=E;return l.keyEntities&&(P=((I=l.keyEntities[g])===null||I===void 0?void 0:I.node)||{}),M("span",{key:g,onMousedown:v},[e.tagRender({label:y,value:g,disabled:w,closable:x,onClose:D,option:P})])}function m(g){const{disabled:y,label:w,value:x,option:D}=g,E=!e.disabled&&!y;let I=w;if(typeof e.maxTagTextLength=="number"&&(typeof w=="string"||typeof w=="number")){const P=String(I);P.length>e.maxTagTextLength&&(I=`${P.slice(0,e.maxTagTextLength)}...`)}const v=P=>{var O;P&&P.stopPropagation(),(O=e.onRemove)===null||O===void 0||O.call(e,g)};return typeof e.tagRender=="function"?r(x,I,y,E,v,D):s(w,I,y,E,v)}function b(g){const{maxTagPlaceholder:y=x=>`+ ${x.length} ...`}=e,w=typeof y=="function"?y(g):y;return s(w,w,!1)}const C=g=>{const y=g.target.composing;f.value=g.target.value,y||e.onInputChange(g)};return()=>{const{id:g,prefixCls:y,values:w,open:x,inputRef:D,placeholder:E,disabled:I,autofocus:v,autocomplete:P,activeDescendantId:O,tabindex:R,compositionStatus:N,onInputPaste:A,onInputKeyDown:B,onInputMouseDown:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=M("div",{class:`${i.value}-search`,style:{width:o.value+"px"},key:"input"},[M(Lt,{inputRef:D,open:x,prefixCls:y,id:g,inputElement:null,disabled:I,autofocus:v,autocomplete:P,editable:a.value,activeDescendantId:O,value:f.value,onKeydown:B,onMousedown:U,onChange:C,onPaste:A,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),M("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[f.value,qe(" ")])]),z=M(Vn,{prefixCls:`${i.value}-overflow`,data:w,renderItem:m,renderRest:b,suffix:G,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return M(Fe,null,[z,!w.length&&!c.value&&!N&&M("span",{class:`${i.value}-placeholder`},[E])])}}}),uo={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},lt=fe({name:"SingleSelector",setup(e){const t=X(!1),o=H(()=>e.mode==="combobox"),n=H(()=>o.value||e.showSearch),l=H(()=>{let r=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),i=ot();ne([o,()=>e.activeValue],()=>{o.value&&(t.value=!1)},{immediate:!0});const c=H(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value||e.compositionStatus),a=H(()=>{const r=e.values[0];return r&&(typeof r.label=="string"||typeof r.label=="number")?r.label.toString():void 0}),f=()=>{if(e.values[0])return null;const r=c.value?{visibility:"hidden"}:void 0;return M("span",{class:`${e.prefixCls}-selection-placeholder`,style:r},[e.placeholder])},s=r=>{r.target.composing||(t.value=!0,e.onInputChange(r))};return()=>{var r,m,b,C;const{inputElement:g,prefixCls:y,id:w,values:x,inputRef:D,disabled:E,autofocus:I,autocomplete:v,activeDescendantId:P,open:O,tabindex:R,optionLabelRender:N,onInputKeyDown:A,onInputMouseDown:B,onInputPaste:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=x[0];let z=null;if(G&&i.customSlots){const oe=(r=G.key)!==null&&r!==void 0?r:G.value,ie=((m=i.keyEntities[oe])===null||m===void 0?void 0:m.node)||{};z=i.customSlots[(b=ie.slots)===null||b===void 0?void 0:b.title]||i.customSlots.title||G.label,typeof z=="function"&&(z=z(ie))}else z=N&&G?N(G.option):G?.label;return M(Fe,null,[M("span",{class:`${y}-selection-search`},[M(Lt,{inputRef:D,prefixCls:y,id:w,open:O,inputElement:g,disabled:E,autofocus:I,autocomplete:v,editable:n.value,activeDescendantId:P,value:l.value,onKeydown:A,onMousedown:B,onChange:s,onPaste:U,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0)},null)]),!o.value&&G&&!c.value&&M("span",{class:`${y}-selection-item`,title:a.value},[M(Fe,{key:(C=G.key)!==null&&C!==void 0?C:G.value},[z])]),f()])}}});lt.props=uo;lt.inheritAttrs=!1;function co(e){return![_.ESC,_.SHIFT,_.BACKSPACE,_.TAB,_.WIN_KEY,_.ALT,_.META,_.WIN_KEY_RIGHT,_.CTRL,_.SEMICOLON,_.EQUALS,_.CAPS_LOCK,_.CONTEXT_MENU,_.F1,_.F2,_.F3,_.F4,_.F5,_.F6,_.F7,_.F8,_.F9,_.F10,_.F11,_.F12].includes(e)}function Bt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,o;De(()=>{clearTimeout(o)});function n(l){(l||t===null)&&(t=l),clearTimeout(o),o=setTimeout(()=>{t=null},e)}return[()=>t,n]}function Re(){const e=t=>{e.current=t};return e}const fo=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:o}=t;const n=Re(),l=me(!1),[i,c]=Bt(0),a=x=>{const{which:D}=x;(D===_.UP||D===_.DOWN)&&x.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(x),D===_.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(x.target.value),co(D)&&e.onToggleOpen(!0)},f=()=>{c(!0)};let s=null;const r=x=>{e.onSearch(x,!0,l.value)!==!1&&e.onToggleOpen(!0)},m=()=>{l.value=!0},b=x=>{l.value=!1,e.mode!=="combobox"&&r(x.target.value)},C=x=>{let{target:{value:D}}=x;if(e.tokenWithEnter&&s&&/[\r\n]/.test(s)){const E=s.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(E,s)}s=null,r(D)},g=x=>{const{clipboardData:D}=x;s=D.getData("text")},y=x=>{let{target:D}=x;D!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},w=x=>{const D=i();x.target!==n.current&&!D&&x.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return o({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:x,domRef:D,mode:E}=e,I={inputRef:n,onInputKeyDown:a,onInputMouseDown:f,onInputChange:C,onInputPaste:g,compositionStatus:l.value,onInputCompositionStart:m,onInputCompositionEnd:b},v=E==="multiple"||E==="tags"?M(so,k(k({},e),I),null):M(lt,k(k({},e),I),null);return M("div",{ref:D,class:`${x}-selector`,onClick:y,onMousedown:w},[v])}}});function po(e,t,o){function n(l){var i,c,a;let f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f);const s=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(c=e[1])===null||c===void 0?void 0:c.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&s.every(r=>r&&!r.contains(f)&&r!==f)&&o(!1)}ye(()=>{window.addEventListener("mousedown",n)}),De(()=>{window.removeEventListener("mousedown",n)})}function mo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let o;const n=()=>{clearTimeout(o)};return ye(()=>{n()}),[t,(i,c)=>{n(),o=setTimeout(()=>{t.value=i,c&&c()},e)},n]}const _t=Symbol("BaseSelectContextKey");function vo(e){return ke(_t,e)}function ho(){return Be(_t,{})}function At(e){if(!Mn(e))return $e(e);const t=new Proxy({},{get(o,n,l){return Reflect.get(e.value,n,l)},set(o,n,l){return e.value[n]=l,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return $e(t)}var go=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 l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const bo=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],So=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),zt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),yo=()=>S(S({},So()),zt());function it(e){return e==="tags"||e==="multiple"}const wo=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:nt(yo(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:n,slots:l}=t;const i=H(()=>it(e.mode)),c=H(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=X(!1);ye(()=>{a.value=Hn()});const f=ot(),s=X(null),r=Re(),m=X(null),b=X(null),C=X(null),g=me(!1),[y,w,x]=mo();n({focus:()=>{var u;(u=b.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=b.value)===null||u===void 0||u.blur()},scrollTo:u=>{var d;return(d=C.value)===null||d===void 0?void 0:d.scrollTo(u)}});const I=H(()=>{var u;if(e.mode!=="combobox")return e.searchValue;const d=(u=e.displayValues[0])===null||u===void 0?void 0:u.value;return typeof d=="string"||typeof d=="number"?String(d):""}),v=e.open!==void 0?e.open:e.defaultOpen,P=X(v),O=X(v),R=u=>{P.value=e.open!==void 0?e.open:u,O.value=P.value};ne(()=>e.open,()=>{R(e.open)});const N=H(()=>!e.notFoundContent&&e.emptyOptions);Ie(()=>{O.value=P.value,(e.disabled||N.value&&O.value&&e.mode==="combobox")&&(O.value=!1)});const A=H(()=>N.value?!1:O.value),B=u=>{const d=u!==void 0?u:!O.value;O.value!==d&&!e.disabled&&(R(d),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(d),!d&&K.value&&(K.value=!1,w(!1,()=>{L.value=!1,g.value=!1})))},U=H(()=>(e.tokenSeparators||[]).some(u=>[`
1
+ import{h as S,ah as gn,P as V,f as k,i as ue,ae as Pe,L as Rt,B as bn,Q as ve,aB as St,r as Je,ab as Qe,m as Se,ai as Dt,l as Sn,q as yn,M as wn,aC as In,a5 as Cn,af as Me,H as xn,a6 as yt,s as $n,aD as On}from"./index-TqLyy6IR.js";import{d as fe,b as H,c as M,r as me,k as Tn,a7 as Vt,i as Be,e as Ie,o as ye,w as ne,Q as qe,F as Fe,s as X,f as De,p as ke,j as Mn,a as $e,t as En,x as Pn,z as et,n as Ee,q as Fn,a9 as ge}from"./vendor-Bn1JzzAn.js";import{T as Rn}from"./Trigger-C7iLr-Ik.js";import{K as _}from"./KeyCode-D63Tfrq7.js";import{c as Ht}from"./vnode-Datcekgj.js";import{B as Dn}from"./BaseInput-DnU8pbUh.js";import{p as tt}from"./pickAttrs-RPggmcOd.js";import{O as Vn}from"./Overflow-BP4aQhid.js";import{i as Hn}from"./isMobile--2fOlCHx.js";import{i as nt}from"./initDefaultProps-18rmGkik.js";import{R as Nn}from"./index-B6wxVEIZ.js";import{w as he}from"./raf-Deuc0E8-.js";import{s as be}from"./motion-3kvGzSgV.js";import{o as _e}from"./omit-CniSeCOA.js";import{u as wt}from"./useMergedState-DXbJa_zE.js";import{u as It}from"./useState-CnxtbLoC.js";import{C as Ln,L as Bn,ak as _n,b as An,k as zn,ai as Wn}from"./icons-DG5UD-6K.js";import{u as Kn,F as jn}from"./FormItemContext-D1KrwjwY.js";import{a as Un,g as Gn}from"./statusUtils-CukpV_uI.js";import{u as Yn}from"./Compact-BzVXohrg.js";import{i as Ct}from"./move-Dx3DiVHc.js";import{s as Xn,a as Qn,b as qn,c as Zn,i as xt}from"./slide-UxLNWqjI.js";import{g as Jn}from"./compact-item-DpAXXaqu.js";import{d as kn}from"./devWarning-ONeWC5dH.js";function $t(e,t){const{key:o}=e;let n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Nt(e,t){const{label:o,value:n,options:l}=e||{};return{label:o||(t?"children":"label"),value:n||"value",options:l||"options"}}function eo(e){let{fieldNames:t,childrenAsData:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:l,value:i,options:c}=Nt(t,!1);function a(f,s){f.forEach(r=>{const m=r[l];if(s||!(c in r)){const b=r[i];n.push({key:$t(r,n.length),groupOption:s,data:r,label:m,value:b})}else{let b=m;b===void 0&&o&&(b=r.label),n.push({key:$t(r,n.length),group:!0,data:r,label:b}),a(r[c],!0)}})}return a(e,!1),n}function Ze(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return gn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function to(e,t){if(!t||!t.length)return null;let o=!1;function n(i,c){let[a,...f]=c;if(!a)return[i];const s=i.split(a);return o=o||s.length>1,s.reduce((r,m)=>[...r,...n(m,f)],[]).filter(r=>r)}const l=n(e,t);return o?l:null}var no=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 l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const oo=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},lo=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:n,expose:l}=t;const i=H(()=>{const{dropdownMatchSelectWidth:a}=e;return oo(a)}),c=me();return l({getPopupElement:()=>c.value}),()=>{const a=S(S({},e),n),{empty:f=!1}=a,s=no(a,["empty"]),{visible:r,dropdownAlign:m,prefixCls:b,popupElement:C,dropdownClassName:g,dropdownStyle:y,direction:w="ltr",placement:x,dropdownMatchSelectWidth:D,containerWidth:E,dropdownRender:I,animation:v,transitionName:P,getPopupContainer:O,getTriggerDOMNode:R,onPopupVisibleChange:N,onPopupMouseEnter:A,onPopupFocusin:B,onPopupFocusout:U}=s,Y=`${b}-dropdown`;let W=C;I&&(W=I({menuNode:C,props:e}));const G=v?`${Y}-${v}`:P,z=S({minWidth:`${E}px`},y);return typeof D=="number"?z.width=`${D}px`:D&&(z.width=`${E}px`),M(Rn,k(k({},e),{},{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:x||(w==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:Y,popupTransitionName:G,popupAlign:m,popupVisible:r,getPopupContainer:O,popupClassName:ue(g,{[`${Y}-empty`]:f}),popupStyle:z,getTriggerDOMNode:R,onPopupVisibleChange:N}),{default:o.default,popup:()=>M("div",{ref:c,onMouseenter:A,onFocusin:B,onFocusout:U},[W])})}}}),Ce=(e,t)=>{let{slots:o}=t;var n;const{class:l,customizeIcon:i,customizeIconProps:c,onMousedown:a,onClick:f}=e;let s;return typeof i=="function"?s=i(c):s=Tn(i)?Vt(i):i,M("span",{class:l,onMousedown:r=>{r.preventDefault(),a&&a(r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[s!==void 0?s:M("span",{class:l.split(/\s+/).map(r=>`${r}-icon`)},[(n=o.default)===null||n===void 0?void 0:n.call(o)])])};Ce.inheritAttrs=!1;Ce.displayName="TransBtn";Ce.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const io={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Lt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:io,setup(e){let t=null;const o=Be("VCSelectContainerEvent");return()=>{var n;const{prefixCls:l,id:i,inputElement:c,disabled:a,tabindex:f,autofocus:s,autocomplete:r,editable:m,activeDescendantId:b,value:C,onKeydown:g,onMousedown:y,onChange:w,onPaste:x,onCompositionstart:D,onCompositionend:E,onFocus:I,onBlur:v,open:P,inputRef:O,attrs:R}=e;let N=c||M(Dn,null,null);const A=N.props||{},{onKeydown:B,onInput:U,onFocus:Y,onBlur:W,onMousedown:G,onCompositionstart:z,onCompositionend:oe,style:ie}=A;return N=Ht(N,S(S(S(S(S({type:"search"},A),{id:i,ref:O,disabled:a,tabindex:f,lazy:!1,autocomplete:r||"off",autofocus:s,class:ue(`${l}-selection-search-input`,(n=N?.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":b}),R),{value:m?C:"",readonly:!m,unselectable:m?null:"on",style:S(S({},ie),{opacity:m?null:0}),onKeydown:p=>{g(p),B&&B(p)},onMousedown:p=>{y(p),G&&G(p)},onInput:p=>{w(p),U&&U(p)},onCompositionstart(p){D(p),z&&z(p)},onCompositionend(p){E(p),oe&&oe(p)},onPaste:x,onFocus:function(){clearTimeout(t),Y&&Y(arguments.length<=0?void 0:arguments[0]),I&&I(arguments.length<=0?void 0:arguments[0]),o?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var p=arguments.length,L=new Array(p),T=0;T<p;T++)L[T]=arguments[T];t=setTimeout(()=>{W&&W(L[0]),v&&v(L[0]),o?.blur(L[0])},100)}}),N.type==="textarea"?{}:{type:"search"}),!0,!0),N}}}),ao=Symbol("TreeSelectLegacyContextPropsKey");function ot(){return Be(ao,{})}const ro={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),compositionStatus:Boolean,removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ot=e=>{e.preventDefault(),e.stopPropagation()},so=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:ro,setup(e){const t=X(),o=X(0),n=X(!1),l=ot(),i=H(()=>`${e.prefixCls}-selection`),c=H(()=>e.open||e.mode==="tags"?e.searchValue:""),a=H(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value)),f=me("");Ie(()=>{f.value=c.value}),ye(()=>{ne(f,()=>{o.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(g,y,w,x,D){return M("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:w}),title:typeof g=="string"||typeof g=="number"?g.toString():void 0},[M("span",{class:`${i.value}-item-content`},[y]),x&&M(Ce,{class:`${i.value}-item-remove`,onMousedown:Ot,onClick:D,customizeIcon:e.removeIcon},{default:()=>[qe("×")]})])}function r(g,y,w,x,D,E){var I;const v=O=>{Ot(O),e.onToggleOpen(!open)};let P=E;return l.keyEntities&&(P=((I=l.keyEntities[g])===null||I===void 0?void 0:I.node)||{}),M("span",{key:g,onMousedown:v},[e.tagRender({label:y,value:g,disabled:w,closable:x,onClose:D,option:P})])}function m(g){const{disabled:y,label:w,value:x,option:D}=g,E=!e.disabled&&!y;let I=w;if(typeof e.maxTagTextLength=="number"&&(typeof w=="string"||typeof w=="number")){const P=String(I);P.length>e.maxTagTextLength&&(I=`${P.slice(0,e.maxTagTextLength)}...`)}const v=P=>{var O;P&&P.stopPropagation(),(O=e.onRemove)===null||O===void 0||O.call(e,g)};return typeof e.tagRender=="function"?r(x,I,y,E,v,D):s(w,I,y,E,v)}function b(g){const{maxTagPlaceholder:y=x=>`+ ${x.length} ...`}=e,w=typeof y=="function"?y(g):y;return s(w,w,!1)}const C=g=>{const y=g.target.composing;f.value=g.target.value,y||e.onInputChange(g)};return()=>{const{id:g,prefixCls:y,values:w,open:x,inputRef:D,placeholder:E,disabled:I,autofocus:v,autocomplete:P,activeDescendantId:O,tabindex:R,compositionStatus:N,onInputPaste:A,onInputKeyDown:B,onInputMouseDown:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=M("div",{class:`${i.value}-search`,style:{width:o.value+"px"},key:"input"},[M(Lt,{inputRef:D,open:x,prefixCls:y,id:g,inputElement:null,disabled:I,autofocus:v,autocomplete:P,editable:a.value,activeDescendantId:O,value:f.value,onKeydown:B,onMousedown:U,onChange:C,onPaste:A,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),M("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[f.value,qe(" ")])]),z=M(Vn,{prefixCls:`${i.value}-overflow`,data:w,renderItem:m,renderRest:b,suffix:G,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return M(Fe,null,[z,!w.length&&!c.value&&!N&&M("span",{class:`${i.value}-placeholder`},[E])])}}}),uo={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},lt=fe({name:"SingleSelector",setup(e){const t=X(!1),o=H(()=>e.mode==="combobox"),n=H(()=>o.value||e.showSearch),l=H(()=>{let r=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),i=ot();ne([o,()=>e.activeValue],()=>{o.value&&(t.value=!1)},{immediate:!0});const c=H(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value||e.compositionStatus),a=H(()=>{const r=e.values[0];return r&&(typeof r.label=="string"||typeof r.label=="number")?r.label.toString():void 0}),f=()=>{if(e.values[0])return null;const r=c.value?{visibility:"hidden"}:void 0;return M("span",{class:`${e.prefixCls}-selection-placeholder`,style:r},[e.placeholder])},s=r=>{r.target.composing||(t.value=!0,e.onInputChange(r))};return()=>{var r,m,b,C;const{inputElement:g,prefixCls:y,id:w,values:x,inputRef:D,disabled:E,autofocus:I,autocomplete:v,activeDescendantId:P,open:O,tabindex:R,optionLabelRender:N,onInputKeyDown:A,onInputMouseDown:B,onInputPaste:U,onInputCompositionStart:Y,onInputCompositionEnd:W}=e,G=x[0];let z=null;if(G&&i.customSlots){const oe=(r=G.key)!==null&&r!==void 0?r:G.value,ie=((m=i.keyEntities[oe])===null||m===void 0?void 0:m.node)||{};z=i.customSlots[(b=ie.slots)===null||b===void 0?void 0:b.title]||i.customSlots.title||G.label,typeof z=="function"&&(z=z(ie))}else z=N&&G?N(G.option):G?.label;return M(Fe,null,[M("span",{class:`${y}-selection-search`},[M(Lt,{inputRef:D,prefixCls:y,id:w,open:O,inputElement:g,disabled:E,autofocus:I,autocomplete:v,editable:n.value,activeDescendantId:P,value:l.value,onKeydown:A,onMousedown:B,onChange:s,onPaste:U,onCompositionstart:Y,onCompositionend:W,tabindex:R,attrs:tt(e,!0)},null)]),!o.value&&G&&!c.value&&M("span",{class:`${y}-selection-item`,title:a.value},[M(Fe,{key:(C=G.key)!==null&&C!==void 0?C:G.value},[z])]),f()])}}});lt.props=uo;lt.inheritAttrs=!1;function co(e){return![_.ESC,_.SHIFT,_.BACKSPACE,_.TAB,_.WIN_KEY,_.ALT,_.META,_.WIN_KEY_RIGHT,_.CTRL,_.SEMICOLON,_.EQUALS,_.CAPS_LOCK,_.CONTEXT_MENU,_.F1,_.F2,_.F3,_.F4,_.F5,_.F6,_.F7,_.F8,_.F9,_.F10,_.F11,_.F12].includes(e)}function Bt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,o;De(()=>{clearTimeout(o)});function n(l){(l||t===null)&&(t=l),clearTimeout(o),o=setTimeout(()=>{t=null},e)}return[()=>t,n]}function Re(){const e=t=>{e.current=t};return e}const fo=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:o}=t;const n=Re(),l=me(!1),[i,c]=Bt(0),a=x=>{const{which:D}=x;(D===_.UP||D===_.DOWN)&&x.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(x),D===_.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(x.target.value),co(D)&&e.onToggleOpen(!0)},f=()=>{c(!0)};let s=null;const r=x=>{e.onSearch(x,!0,l.value)!==!1&&e.onToggleOpen(!0)},m=()=>{l.value=!0},b=x=>{l.value=!1,e.mode!=="combobox"&&r(x.target.value)},C=x=>{let{target:{value:D}}=x;if(e.tokenWithEnter&&s&&/[\r\n]/.test(s)){const E=s.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(E,s)}s=null,r(D)},g=x=>{const{clipboardData:D}=x;s=D.getData("text")},y=x=>{let{target:D}=x;D!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},w=x=>{const D=i();x.target!==n.current&&!D&&x.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return o({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:x,domRef:D,mode:E}=e,I={inputRef:n,onInputKeyDown:a,onInputMouseDown:f,onInputChange:C,onInputPaste:g,compositionStatus:l.value,onInputCompositionStart:m,onInputCompositionEnd:b},v=E==="multiple"||E==="tags"?M(so,k(k({},e),I),null):M(lt,k(k({},e),I),null);return M("div",{ref:D,class:`${x}-selector`,onClick:y,onMousedown:w},[v])}}});function po(e,t,o){function n(l){var i,c,a;let f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f);const s=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(c=e[1])===null||c===void 0?void 0:c.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&s.every(r=>r&&!r.contains(f)&&r!==f)&&o(!1)}ye(()=>{window.addEventListener("mousedown",n)}),De(()=>{window.removeEventListener("mousedown",n)})}function mo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let o;const n=()=>{clearTimeout(o)};return ye(()=>{n()}),[t,(i,c)=>{n(),o=setTimeout(()=>{t.value=i,c&&c()},e)},n]}const _t=Symbol("BaseSelectContextKey");function vo(e){return ke(_t,e)}function ho(){return Be(_t,{})}function At(e){if(!Mn(e))return $e(e);const t=new Proxy({},{get(o,n,l){return Reflect.get(e.value,n,l)},set(o,n,l){return e.value[n]=l,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return $e(t)}var go=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 l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const bo=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],So=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),zt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),yo=()=>S(S({},So()),zt());function it(e){return e==="tags"||e==="multiple"}const wo=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:nt(yo(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:n,slots:l}=t;const i=H(()=>it(e.mode)),c=H(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=X(!1);ye(()=>{a.value=Hn()});const f=ot(),s=X(null),r=Re(),m=X(null),b=X(null),C=X(null),g=me(!1),[y,w,x]=mo();n({focus:()=>{var u;(u=b.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=b.value)===null||u===void 0||u.blur()},scrollTo:u=>{var d;return(d=C.value)===null||d===void 0?void 0:d.scrollTo(u)}});const I=H(()=>{var u;if(e.mode!=="combobox")return e.searchValue;const d=(u=e.displayValues[0])===null||u===void 0?void 0:u.value;return typeof d=="string"||typeof d=="number"?String(d):""}),v=e.open!==void 0?e.open:e.defaultOpen,P=X(v),O=X(v),R=u=>{P.value=e.open!==void 0?e.open:u,O.value=P.value};ne(()=>e.open,()=>{R(e.open)});const N=H(()=>!e.notFoundContent&&e.emptyOptions);Ie(()=>{O.value=P.value,(e.disabled||N.value&&O.value&&e.mode==="combobox")&&(O.value=!1)});const A=H(()=>N.value?!1:O.value),B=u=>{const d=u!==void 0?u:!O.value;O.value!==d&&!e.disabled&&(R(d),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(d),!d&&K.value&&(K.value=!1,w(!1,()=>{L.value=!1,g.value=!1})))},U=H(()=>(e.tokenSeparators||[]).some(u=>[`
2
2
  `,`\r
3
3
  `].includes(u))),Y=(u,d,F)=>{var $,j;let q=!0,Z=u;($=e.onActiveValueChange)===null||$===void 0||$.call(e,null);const J=F?null:to(u,e.tokenSeparators);return e.mode!=="combobox"&&J&&(Z="",(j=e.onSearchSplit)===null||j===void 0||j.call(e,J),B(!1),q=!1),e.onSearch&&I.value!==Z&&e.onSearch(Z,{source:d?"typing":"effect"}),q},W=u=>{var d;!u||!u.trim()||(d=e.onSearch)===null||d===void 0||d.call(e,u,{source:"submit"})};ne(O,()=>{!O.value&&!i.value&&e.mode!=="combobox"&&Y("",!1,!1)},{immediate:!0,flush:"post"}),ne(()=>e.disabled,()=>{P.value&&e.disabled&&R(!1),e.disabled&&!g.value&&w(!1)},{immediate:!0});const[G,z]=Bt(),oe=function(u){var d;const F=G(),{which:$}=u;if($===_.ENTER&&(e.mode!=="combobox"&&u.preventDefault(),O.value||B(!0)),z(!!I.value),$===_.BACKSPACE&&!F&&i.value&&!I.value&&e.displayValues.length){const J=[...e.displayValues];let Q=null;for(let le=J.length-1;le>=0;le-=1){const ae=J[le];if(!ae.disabled){J.splice(le,1),Q=ae;break}}Q&&e.onDisplayValuesChange(J,{type:"remove",values:[Q]})}for(var j=arguments.length,q=new Array(j>1?j-1:0),Z=1;Z<j;Z++)q[Z-1]=arguments[Z];O.value&&C.value&&C.value.onKeydown(u,...q),(d=e.onKeydown)===null||d===void 0||d.call(e,u,...q)},ie=function(u){for(var d=arguments.length,F=new Array(d>1?d-1:0),$=1;$<d;$++)F[$-1]=arguments[$];O.value&&C.value&&C.value.onKeyup(u,...F),e.onKeyup&&e.onKeyup(u,...F)},p=u=>{const d=e.displayValues.filter(F=>F!==u);e.onDisplayValuesChange(d,{type:"remove",values:[u]})},L=X(!1),T=function(){w(!0),e.disabled||(e.onFocus&&!L.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&B(!0)),L.value=!0},K=me(!1),te=function(){if(K.value||(g.value=!0,w(!1,()=>{L.value=!1,g.value=!1,B(!1)}),e.disabled))return;const u=I.value;u&&(e.mode==="tags"?e.onSearch(u,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},re=()=>{K.value=!0},se=()=>{K.value=!1};ke("VCSelectContainerEvent",{focus:T,blur:te});const ee=[];ye(()=>{ee.forEach(u=>clearTimeout(u)),ee.splice(0,ee.length)}),De(()=>{ee.forEach(u=>clearTimeout(u)),ee.splice(0,ee.length)});const ce=function(u){var d,F;const{target:$}=u,j=(d=m.value)===null||d===void 0?void 0:d.getPopupElement();if(j&&j.contains($)){const Q=setTimeout(()=>{var le;const ae=ee.indexOf(Q);ae!==-1&&ee.splice(ae,1),x(),!a.value&&!j.contains(document.activeElement)&&((le=b.value)===null||le===void 0||le.focus())});ee.push(Q)}for(var q=arguments.length,Z=new Array(q>1?q-1:0),J=1;J<q;J++)Z[J-1]=arguments[J];(F=e.onMousedown)===null||F===void 0||F.call(e,u,...Z)},de=X(null),h=()=>{};return ye(()=>{ne(A,()=>{var u;if(A.value){const d=Math.ceil((u=s.value)===null||u===void 0?void 0:u.offsetWidth);de.value!==d&&!Number.isNaN(d)&&(de.value=d)}},{immediate:!0,flush:"post"})}),po([s,m],A,B),vo(At(S(S({},En(e)),{open:O,triggerOpen:A,showSearch:c,multiple:i,toggleOpen:B}))),()=>{const u=S(S({},e),o),{prefixCls:d,id:F,open:$,defaultOpen:j,mode:q,showSearch:Z,searchValue:J,onSearch:Q,allowClear:le,clearIcon:ae,showArrow:Ve,inputIcon:He,disabled:Oe,loading:Ne,getInputElement:ct,getPopupContainer:Xt,placement:Qt,animation:qt,transitionName:Zt,dropdownStyle:Jt,dropdownClassName:kt,dropdownMatchSelectWidth:en,dropdownRender:tn,dropdownAlign:nn,showAction:cl,direction:on,tokenSeparators:dl,tagRender:ln,optionLabelRender:an,onPopupScroll:fl,onDropdownVisibleChange:pl,onFocus:ml,onBlur:vl,onKeyup:hl,onKeydown:gl,onMousedown:bl,onClear:ze,omitDomProps:We,getRawInputElement:dt,displayValues:Le,onDisplayValuesChange:rn,emptyOptions:sn,activeDescendantId:un,activeValue:cn,OptionList:dn}=u,fn=go(u,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),ft=q==="combobox"&&ct&&ct()||null,Te=typeof dt=="function"&&dt(),Ke=S({},fn);let pt;Te&&(pt=we=>{B(we)}),bo.forEach(we=>{delete Ke[we]}),We?.forEach(we=>{delete Ke[we]});const mt=Ve!==void 0?Ve:Ne||!i.value&&q!=="combobox";let vt;mt&&(vt=M(Ce,{class:ue(`${d}-arrow`,{[`${d}-arrow-loading`]:Ne}),customizeIcon:He,customizeIconProps:{loading:Ne,searchValue:I.value,open:O.value,focused:y.value,showSearch:c.value}},null));let ht;const pn=()=>{ze?.(),rn([],{type:"clear",values:Le}),Y("",!1,!1)};!Oe&&le&&(Le.length||I.value)&&(ht=M(Ce,{class:`${d}-clear`,onMousedown:pn,customizeIcon:ae},{default:()=>[qe("×")]}));const mn=M(dn,{ref:C},S(S({},f.customSlots),{option:l.option})),vn=ue(d,o.class,{[`${d}-focused`]:y.value,[`${d}-multiple`]:i.value,[`${d}-single`]:!i.value,[`${d}-allow-clear`]:le,[`${d}-show-arrow`]:mt,[`${d}-disabled`]:Oe,[`${d}-loading`]:Ne,[`${d}-open`]:O.value,[`${d}-customize-input`]:ft,[`${d}-show-search`]:c.value}),gt=M(lo,{ref:m,disabled:Oe,prefixCls:d,visible:A.value,popupElement:mn,containerWidth:de.value,animation:qt,transitionName:Zt,dropdownStyle:Jt,dropdownClassName:kt,direction:on,dropdownMatchSelectWidth:en,dropdownRender:tn,dropdownAlign:nn,placement:Qt,getPopupContainer:Xt,empty:sn,getTriggerDOMNode:()=>r.current,onPopupVisibleChange:pt,onPopupMouseEnter:h,onPopupFocusin:re,onPopupFocusout:se},{default:()=>Te?Pe(Te)&&Ht(Te,{ref:r},!1,!0):M(fo,k(k({},e),{},{domRef:r,prefixCls:d,inputElement:ft,ref:b,id:F,showSearch:c.value,mode:q,activeDescendantId:un,tagRender:ln,optionLabelRender:an,values:Le,open:O.value,onToggleOpen:B,activeValue:cn,searchValue:I.value,onSearch:Y,onSearchSubmit:W,onRemove:p,tokenWithEnter:U.value}),null)});let je;return Te?je=gt:je=M("div",k(k({},Ke),{},{class:vn,ref:s,onMousedown:ce,onKeydown:oe,onKeyup:ie}),[y.value&&!O.value&&M("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Le.map(we=>{let{label:bt,value:hn}=we;return["number","string"].includes(typeof bt)?bt:hn}).join(", ")}`]),gt,vt,ht]),je}}}),Ae=(e,t)=>{let{height:o,offset:n,prefixCls:l,onInnerResize:i}=e,{slots:c}=t;var a;let f={},s={display:"flex",flexDirection:"column"};return n!==void 0&&(f={height:`${o}px`,position:"relative",overflow:"hidden"},s=S(S({},s),{transform:`translateY(${n}px)`,position:"absolute",left:0,right:0,top:0})),M("div",{style:f},[M(Nn,{onResize:r=>{let{offsetHeight:m}=r;m&&i&&i()}},{default:()=>[M("div",{style:s,class:ue({[`${l}-holder-inner`]:l})},[(a=c.default)===null||a===void 0?void 0:a.call(c)])]})])};Ae.displayName="Filter";Ae.inheritAttrs=!1;Ae.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Wt=(e,t)=>{let{setRef:o}=e,{slots:n}=t;var l;const i=Rt((l=n.default)===null||l===void 0?void 0:l.call(n));return i&&i.length?Vt(i[0],{ref:o}):i};Wt.props={setRef:{type:Function,default:()=>{}}};const Io=20;function Tt(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Co=fe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Re(),thumbRef:Re(),visibleTimeout:null,state:$e({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,be?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,be?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,be?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,be?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,be?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,be?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),he.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;S(this.state,{dragging:!0,pageY:Tt(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:o,startTop:n}=this.state,{onScroll:l}=this.$props;if(he.cancel(this.moveRaf),t){const i=Tt(e)-o,c=n+i,a=this.getEnableScrollRange(),f=this.getEnableHeightRange(),s=f?c/f:0,r=Math.ceil(s*a);this.moveRaf=he(()=>{l(r)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let o=e/t*100;return o=Math.max(o,Io),o=Math.min(o,e/2),Math.floor(o)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),o=this.getEnableHeightRange();return e===0||t===0?0:e/t*o},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:o}=this.$props,n=this.getSpinHeight()+"px",l=this.getTop()+"px",i=this.showScroll(),c=i&&t;return M("div",{ref:this.scrollbarRef,class:ue(`${o}-scrollbar`,{[`${o}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:c?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[M("div",{ref:this.thumbRef,class:ue(`${o}-scrollbar-thumb`,{[`${o}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:n,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function xo(e,t,o,n){const l=new Map,i=new Map,c=me(Symbol("update"));ne(e,()=>{c.value=Symbol("update")});let a;function f(){he.cancel(a)}function s(){f(),a=he(()=>{l.forEach((m,b)=>{if(m&&m.offsetParent){const{offsetHeight:C}=m;i.get(b)!==C&&(c.value=Symbol("update"),i.set(b,m.offsetHeight))}})})}function r(m,b){const C=t(m);l.get(C),b?(l.set(C,b.$el||b),s()):l.delete(C)}return Pn(()=>{f()}),[r,s,i,c]}function $o(e,t,o,n,l,i,c,a){let f;return s=>{if(s==null){a();return}he.cancel(f);const r=t.value,m=n.itemHeight;if(typeof s=="number")c(s);else if(s&&typeof s=="object"){let b;const{align:C}=s;"index"in s?{index:b}=s:b=r.findIndex(w=>l(w)===s.key);const{offset:g=0}=s,y=(w,x)=>{if(w<0||!e.value)return;const D=e.value.clientHeight;let E=!1,I=x;if(D){const v=x||C;let P=0,O=0,R=0;const N=Math.min(r.length,b);for(let U=0;U<=N;U+=1){const Y=l(r[U]);O=P;const W=o.get(Y);R=O+(W===void 0?m:W),P=R,U===b&&W===void 0&&(E=!0)}const A=e.value.scrollTop;let B=null;switch(v){case"top":B=O-g;break;case"bottom":B=R-D+g;break;default:{const U=A+D;O<A?I="top":R>U&&(I="bottom")}}B!==null&&B!==A&&c(B)}f=he(()=>{E&&i(),y(w-1,I)},2)};y(5)}}}const Oo=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Kt=((e,t)=>{let o=!1,n=null;function l(){clearTimeout(n),o=!0,n=setTimeout(()=>{o=!1},50)}return function(i){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=i<0&&e.value||i>0&&t.value;return c&&a?(clearTimeout(n),o=!1):(!a||o)&&l(),!o&&a}});function To(e,t,o,n){let l=0,i=null,c=null,a=!1;const f=Kt(t,o);function s(m){if(!e.value)return;he.cancel(i);const{deltaY:b}=m;l+=b,c=b,!f(b)&&(Oo||m.preventDefault(),i=he(()=>{n(l*(a?10:1)),l=0}))}function r(m){e.value&&(a=m.detail===c)}return[s,r]}const Mo=14/15;function Eo(e,t,o){let n=!1,l=0,i=null,c=null;const a=()=>{i&&(i.removeEventListener("touchmove",f),i.removeEventListener("touchend",s))},f=b=>{if(n){const C=Math.ceil(b.touches[0].pageY);let g=l-C;l=C,o(g)&&b.preventDefault(),clearInterval(c),c=setInterval(()=>{g*=Mo,(!o(g,!0)||Math.abs(g)<=.1)&&clearInterval(c)},16)}},s=()=>{n=!1,a()},r=b=>{a(),b.touches.length===1&&!n&&(n=!0,l=Math.ceil(b.touches[0].pageY),i=b.target,i.addEventListener("touchmove",f,{passive:!1}),i.addEventListener("touchend",s))},m=()=>{};ye(()=>{document.addEventListener("touchmove",m,{passive:!1}),ne(e,b=>{t.value.removeEventListener("touchstart",r),a(),clearInterval(c),b&&t.value.addEventListener("touchstart",r,{passive:!1})},{immediate:!0})}),De(()=>{document.removeEventListener("touchmove",m)})}var Po=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 l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const Fo=[],Ro={overflowY:"auto",overflowAnchor:"none"};function Do(e,t,o,n,l,i){let{getKey:c}=i;return e.slice(t,o+1).map((a,f)=>{const s=t+f,r=l(a,s,{}),m=c(a);return M(Wt,{key:m,setRef:b=>n(a,b)},{default:()=>[r]})})}const Vo=fe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:V.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:o}=t;const n=H(()=>{const{height:p,itemHeight:L,virtual:T}=e;return!!(T!==!1&&p&&L)}),l=H(()=>{const{height:p,itemHeight:L,data:T}=e;return n.value&&T&&L*T.length>p}),i=$e({scrollTop:0,scrollMoving:!1}),c=H(()=>e.data||Fo),a=X([]);ne(c,()=>{a.value=et(c.value).slice()},{immediate:!0});const f=X(p=>{});ne(()=>e.itemKey,p=>{typeof p=="function"?f.value=p:f.value=L=>L?.[p]},{immediate:!0});const s=X(),r=X(),m=X(),b=p=>f.value(p),C={getKey:b};function g(p){let L;typeof p=="function"?L=p(i.scrollTop):L=p;const T=P(L);s.value&&(s.value.scrollTop=T),i.scrollTop=T}const[y,w,x,D]=xo(a,b),E=$e({scrollHeight:void 0,start:0,end:0,offset:void 0}),I=X(0);ye(()=>{Ee(()=>{var p;I.value=((p=r.value)===null||p===void 0?void 0:p.offsetHeight)||0})}),Fn(()=>{Ee(()=>{var p;I.value=((p=r.value)===null||p===void 0?void 0:p.offsetHeight)||0})}),ne([n,a],()=>{n.value||S(E,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),ne([n,a,I,l],()=>{n.value&&!l.value&&S(E,{scrollHeight:I.value,start:0,end:a.value.length-1,offset:void 0}),s.value&&(i.scrollTop=s.value.scrollTop)},{immediate:!0}),ne([l,n,()=>i.scrollTop,a,D,()=>e.height,I],()=>{if(!n.value||!l.value)return;let p=0,L,T,K;const te=a.value.length,re=a.value,se=i.scrollTop,{itemHeight:ee,height:ce}=e,de=se+ce;for(let h=0;h<te;h+=1){const u=re[h],d=b(u);let F=x.get(d);F===void 0&&(F=ee);const $=p+F;L===void 0&&$>=se&&(L=h,T=p),K===void 0&&$>de&&(K=h),p=$}L===void 0&&(L=0,T=0,K=Math.ceil(ce/ee)),K===void 0&&(K=te-1),K=Math.min(K+1,te),S(E,{scrollHeight:p,start:L,end:K,offset:T})},{immediate:!0});const v=H(()=>E.scrollHeight-e.height);function P(p){let L=p;return Number.isNaN(v.value)||(L=Math.min(L,v.value)),L=Math.max(L,0),L}const O=H(()=>i.scrollTop<=0),R=H(()=>i.scrollTop>=v.value),N=Kt(O,R);function A(p){g(p)}function B(p){var L;const{scrollTop:T}=p.currentTarget;T!==i.scrollTop&&g(T),(L=e.onScroll)===null||L===void 0||L.call(e,p)}const[U,Y]=To(n,O,R,p=>{g(L=>L+p)});Eo(n,s,(p,L)=>N(p,L)?!1:(U({preventDefault(){},deltaY:p}),!0));function W(p){n.value&&p.preventDefault()}const G=()=>{s.value&&(s.value.removeEventListener("wheel",U,be?{passive:!1}:!1),s.value.removeEventListener("DOMMouseScroll",Y),s.value.removeEventListener("MozMousePixelScroll",W))};Ie(()=>{Ee(()=>{s.value&&(G(),s.value.addEventListener("wheel",U,be?{passive:!1}:!1),s.value.addEventListener("DOMMouseScroll",Y),s.value.addEventListener("MozMousePixelScroll",W))})}),De(()=>{G()});const z=$o(s,a,x,e,b,w,g,()=>{var p;(p=m.value)===null||p===void 0||p.delayHidden()});o({scrollTo:z});const oe=H(()=>{let p=null;return e.height&&(p=S({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Ro),n.value&&(p.overflowY="hidden",i.scrollMoving&&(p.pointerEvents="none"))),p});return ne([()=>E.start,()=>E.end,a],()=>{if(e.onVisibleChange){const p=a.value.slice(E.start,E.end+1);e.onVisibleChange(p,a.value)}},{flush:"post"}),{state:i,mergedData:a,componentStyle:oe,onFallbackScroll:B,onScrollBar:A,componentRef:s,useVirtual:n,calRes:E,collectHeight:w,setInstance:y,sharedConfig:C,scrollBarRef:m,fillerInnerRef:r,delayHideScrollBar:()=>{var p;(p=m.value)===null||p===void 0||p.delayHidden()}}},render(){const e=S(S({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:o,itemHeight:n,fullHeight:l,data:i,itemKey:c,virtual:a,component:f="div",onScroll:s,children:r=this.$slots.default,style:m,class:b}=e,C=Po(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),g=ue(t,b),{scrollTop:y}=this.state,{scrollHeight:w,offset:x,start:D,end:E}=this.calRes,{componentStyle:I,onFallbackScroll:v,onScrollBar:P,useVirtual:O,collectHeight:R,sharedConfig:N,setInstance:A,mergedData:B,delayHideScrollBar:U}=this;return M("div",k({style:S(S({},m),{position:"relative"}),class:g},C),[M(f,{class:`${t}-holder`,style:I,ref:"componentRef",onScroll:v,onMouseenter:U},{default:()=>[M(Ae,{prefixCls:t,height:w,offset:x,onInnerResize:R,ref:"fillerInnerRef"},{default:()=>Do(B,D,E,A,r,N)})]}),O&&M(Co,{ref:"scrollBarRef",prefixCls:t,scrollTop:y,height:o,scrollHeight:w,count:B.length,onScroll:P,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Ho(e,t,o){const n=me(e());return ne(t,(l,i)=>{o?o(l,i)&&(n.value=e()):n.value=e()}),n}function No(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const jt=Symbol("SelectContextKey");function Lo(e){return ke(jt,e)}function Bo(){return Be(jt,{})}var _o=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 l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function Mt(e){return typeof e=="string"||typeof e=="number"}const Ao=fe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:o,slots:n}=t;const l=ho(),i=Bo(),c=H(()=>`${l.prefixCls}-item`),a=Ho(()=>i.flattenOptions,[()=>l.open,()=>i.flattenOptions],v=>v[0]),f=Re(),s=v=>{v.preventDefault()},r=v=>{f.current&&f.current.scrollTo(typeof v=="number"?{index:v}:v)},m=function(v){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const O=a.value.length;for(let R=0;R<O;R+=1){const N=(v+R*P+O)%O,{group:A,data:B}=a.value[N];if(!A&&!B.disabled)return N}return-1},b=$e({activeIndex:m(0)}),C=function(v){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;b.activeIndex=v;const O={source:P?"keyboard":"mouse"},R=a.value[v];if(!R){i.onActiveValue(null,-1,O);return}i.onActiveValue(R.value,v,O)};ne([()=>a.value.length,()=>l.searchValue],()=>{C(i.defaultActiveFirstOption!==!1?m(0):-1)},{immediate:!0});const g=v=>i.rawValues.has(v)&&l.mode!=="combobox";ne([()=>l.open,()=>l.searchValue],()=>{if(!l.multiple&&l.open&&i.rawValues.size===1){const v=Array.from(i.rawValues)[0],P=et(a.value).findIndex(O=>{let{data:R}=O;return R[i.fieldNames.value]===v});P!==-1&&(C(P),Ee(()=>{r(P)}))}l.open&&Ee(()=>{var v;(v=f.current)===null||v===void 0||v.scrollTo(void 0)})},{immediate:!0,flush:"post"});const y=v=>{v!==void 0&&i.onSelect(v,{selected:!i.rawValues.has(v)}),l.multiple||l.toggleOpen(!1)},w=v=>typeof v.label=="function"?v.label():v.label;function x(v){const P=a.value[v];if(!P)return null;const O=P.data||{},{value:R}=O,{group:N}=P,A=tt(O,!0),B=w(P);return P?M("div",k(k({"aria-label":typeof B=="string"&&!N?B:null},A),{},{key:v,role:N?"presentation":"option",id:`${l.id}_list_${v}`,"aria-selected":g(R)}),[R]):null}return o({onKeydown:v=>{const{which:P,ctrlKey:O}=v;switch(P){case _.N:case _.P:case _.UP:case _.DOWN:{let R=0;if(P===_.UP?R=-1:P===_.DOWN?R=1:No()&&O&&(P===_.N?R=1:P===_.P&&(R=-1)),R!==0){const N=m(b.activeIndex+R,R);r(N),C(N,!0)}break}case _.ENTER:{const R=a.value[b.activeIndex];R&&!R.data.disabled?y(R.value):y(void 0),l.open&&v.preventDefault();break}case _.ESC:l.toggleOpen(!1),l.open&&v.stopPropagation()}},onKeyup:()=>{},scrollTo:v=>{r(v)}}),()=>{const{id:v,notFoundContent:P,onPopupScroll:O}=l,{menuItemSelectedIcon:R,fieldNames:N,virtual:A,listHeight:B,listItemHeight:U}=i,Y=n.option,{activeIndex:W}=b,G=Object.keys(N).map(z=>N[z]);return a.value.length===0?M("div",{role:"listbox",id:`${v}_list`,class:`${c.value}-empty`,onMousedown:s},[P]):M(Fe,null,[M("div",{role:"listbox",id:`${v}_list`,style:{height:0,width:0,overflow:"hidden"}},[x(W-1),x(W),x(W+1)]),M(Vo,{itemKey:"key",ref:f,data:a.value,height:B,itemHeight:U,fullHeight:!1,onMousedown:s,onScroll:O,virtual:A},{default:(z,oe)=>{var ie;const{group:p,groupOption:L,data:T,value:K}=z,{key:te}=T,re=typeof z.label=="function"?z.label():z.label;if(p){const ae=(ie=T.title)!==null&&ie!==void 0?ie:Mt(re)&&re;return M("div",{class:ue(c.value,`${c.value}-group`),title:ae},[Y?Y(T):re!==void 0?re:te])}const{disabled:se,title:ee,children:ce,style:de,class:h,className:u}=T,d=_o(T,["disabled","title","children","style","class","className"]),F=_e(d,G),$=g(K),j=`${c.value}-option`,q=ue(c.value,j,h,u,{[`${j}-grouped`]:L,[`${j}-active`]:W===oe&&!se,[`${j}-disabled`]:se,[`${j}-selected`]:$}),Z=w(z),J=!R||typeof R=="function"||$,Q=typeof Z=="number"?Z:Z||K;let le=Mt(Q)?Q.toString():void 0;return ee!==void 0&&(le=ee),M("div",k(k({},F),{},{"aria-selected":$,class:q,title:le,onMousemove:ae=>{d.onMousemove&&d.onMousemove(ae),!(W===oe||se)&&C(oe)},onClick:ae=>{se||y(K),d.onClick&&d.onClick(ae)},style:de}),[M("div",{class:`${j}-content`},[Y?Y(T):Q]),Pe(R)||$,J&&M(Ce,{class:`${c.value}-option-state`,customizeIcon:R,customizeIconProps:{isSelected:$}},{default:()=>[$?"✓":null]})])}})])}}});var zo=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 l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function Wo(e){const t=e,{key:o,children:n}=t,l=t.props,{value:i,disabled:c}=l,a=zo(l,["value","disabled"]),f=n?.default;return S({key:o,value:i!==void 0?i:o,children:f,disabled:c||c===""},a)}function at(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rt(e).map((n,l)=>{var i;if(!Pe(n)||!n.type)return null;const{type:{isSelectOptGroup:c},key:a,children:f,props:s}=n;if(t||!c)return Wo(n);const r=f&&f.default?f.default():void 0,m=s?.label||((i=f.label)===null||i===void 0?void 0:i.call(f))||a;return S(S({key:`__RC_SELECT_GRP__${a===null?l:String(a)}__`},s),{label:m,options:at(r||[])})}).filter(n=>n)}function Ko(e,t,o){const n=X(),l=X(),i=X(),c=X([]);return ne([e,t],()=>{e.value?c.value=et(e.value).slice():c.value=at(t.value)},{immediate:!0,deep:!0}),Ie(()=>{const a=c.value,f=new Map,s=new Map,r=o.value;function m(b){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let g=0;g<b.length;g+=1){const y=b[g];!y[r.options]||C?(f.set(y[r.value],y),s.set(y[r.label],y)):m(y[r.options],!0)}}m(a),n.value=a,l.value=f,i.value=s}),{options:n,valueOptions:l,labelOptions:i}}let Et=0;const jo=bn();function Uo(){let e;return jo?(e=Et,Et+=1):e="TEST_OR_SSR",e}function Go(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me("");const t=`rc_select_${Uo()}`;return e.value||t}function rt(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Yo(e){const{mode:t,options:o,children:n,backfill:l,allowClear:i,placeholder:c,getInputElement:a,showSearch:f,onSearch:s,defaultOpen:r,autofocus:m,labelInValue:b,value:C,inputValue:g,optionLabelProp:y}=e,w=it(t),x=f!==void 0?f:w||t==="combobox",D=o||at(n);if(ve(t!=="tags"||D.every(E=>!E.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ve(t!=="combobox"||!y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),ve(t==="combobox"||!l,"`backfill` only works with `combobox` mode."),ve(t==="combobox"||!a,"`getInputElement` only work with `combobox` mode."),St(t!=="combobox"||!a||!i||!c,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),s&&!x&&t!=="combobox"&&t!=="tags"&&ve(!1,"`onSearch` should work with `showSearch` instead of use alone."),St(!r||m,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."),C!=null){const E=rt(C);ve(!b||E.every(I=>typeof I=="object"&&("key"in I||"value"in I)),"`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"),ve(!w||Array.isArray(C),"`value` should be array when `mode` is `multiple` or `tags`")}if(n){let E=null;n.some(I=>{var v;if(!Pe(I)||!I.type)return!1;const{type:P}=I;return P.isSelectOption?!1:P.isSelectOptGroup?!(((v=I.children)===null||v===void 0?void 0:v.default())||[]).every(N=>!Pe(N)||!I.type||N.type.isSelectOption?!0:(E=N.type,!1)):(E=P,!0)}),E&&ve(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${E.displayName||E.name||E}\`.`),ve(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ue(e,t){return rt(e).join("").toUpperCase().includes(t)}const Xo=((e,t,o,n,l)=>H(()=>{const i=o.value,c=l?.value,a=n?.value;if(!i||a===!1)return e.value;const{options:f,label:s,value:r}=t.value,m=[],b=typeof a=="function",C=i.toUpperCase(),g=b?a:(w,x)=>c?Ue(x[c],C):x[f]?Ue(x[s!=="children"?s:"label"],C):Ue(x[r],C),y=b?w=>Ze(w):w=>w;return e.value.forEach(w=>{if(w[f]){if(g(i,y(w)))m.push(w);else{const D=w[f].filter(E=>g(i,y(E)));D.length&&m.push(S(S({},w),{[f]:D}))}return}g(i,y(w))&&m.push(w)}),m})),Qo=((e,t)=>{const o=X({values:new Map,options:new Map});return[H(()=>{const{values:i,options:c}=o.value,a=e.value.map(r=>{var m;return r.label===void 0?S(S({},r),{label:(m=i.get(r.value))===null||m===void 0?void 0:m.label}):r}),f=new Map,s=new Map;return a.forEach(r=>{f.set(r.value,r),s.set(r.value,t.value.get(r.value)||c.get(r.value))}),o.value.values=f,o.value.options=s,a}),i=>t.value.get(i)||o.value.options.get(i)]}),qo=["inputValue"];function Ut(){return S(S({},zt()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:V.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:V.any,defaultValue:V.any,onChange:Function,children:Array})}function Zo(e){return!e||typeof e!="object"}const Jo=fe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:nt(Ut(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:o,attrs:n,slots:l}=t;const i=Go(ge(e,"id")),c=H(()=>it(e.mode)),a=H(()=>!!(!e.options&&e.children)),f=H(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),s=H(()=>Nt(e.fieldNames,a.value)),[r,m]=wt("",{value:H(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:h=>h||""}),b=Ko(ge(e,"options"),ge(e,"children"),s),{valueOptions:C,labelOptions:g,options:y}=b,w=h=>rt(h).map(d=>{var F,$;let j,q,Z,J;Zo(d)?j=d:(Z=d.key,q=d.label,j=(F=d.value)!==null&&F!==void 0?F:Z);const Q=C.value.get(j);return Q&&(q===void 0&&(q=Q?.[e.optionLabelProp||s.value.label]),Z===void 0&&(Z=($=Q?.key)!==null&&$!==void 0?$:j),J=Q?.disabled),{label:q,value:j,key:Z,disabled:J,option:Q}}),[x,D]=wt(e.defaultValue,{value:ge(e,"value")}),E=H(()=>{var h;const u=w(x.value);return e.mode==="combobox"&&!(!((h=u[0])===null||h===void 0)&&h.value)?[]:u}),[I,v]=Qo(E,C),P=H(()=>{if(!e.mode&&I.value.length===1){const h=I.value[0];if(h.value===null&&(h.label===null||h.label===void 0))return[]}return I.value.map(h=>{var u;return S(S({},h),{label:(u=typeof h.label=="function"?h.label():h.label)!==null&&u!==void 0?u:h.value})})}),O=H(()=>new Set(I.value.map(h=>h.value)));Ie(()=>{var h;if(e.mode==="combobox"){const u=(h=I.value[0])===null||h===void 0?void 0:h.value;u!=null&&m(String(u))}},{flush:"post"});const R=(h,u)=>{const d=u??h;return{[s.value.value]:h,[s.value.label]:d}},N=X();Ie(()=>{if(e.mode!=="tags"){N.value=y.value;return}const h=y.value.slice(),u=d=>C.value.has(d);[...I.value].sort((d,F)=>d.value<F.value?-1:1).forEach(d=>{const F=d.value;u(F)||h.push(R(F,d.label))}),N.value=h});const A=Xo(N,s,r,f,ge(e,"optionFilterProp")),B=H(()=>e.mode!=="tags"||!r.value||A.value.some(h=>h[e.optionFilterProp||"value"]===r.value)?A.value:[R(r.value),...A.value]),U=H(()=>e.filterSort?[...B.value].sort((h,u)=>e.filterSort(h,u)):B.value),Y=H(()=>eo(U.value,{fieldNames:s.value,childrenAsData:a.value})),W=h=>{const u=w(h);if(D(u),e.onChange&&(u.length!==I.value.length||u.some((d,F)=>{var $;return(($=I.value[F])===null||$===void 0?void 0:$.value)!==d?.value}))){const d=e.labelInValue?u.map($=>S(S({},$),{originLabel:$.label,label:typeof $.label=="function"?$.label():$.label})):u.map($=>$.value),F=u.map($=>Ze(v($.value)));e.onChange(c.value?d:d[0],c.value?F:F[0])}},[G,z]=It(null),[oe,ie]=It(0),p=H(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),L=function(h,u){let{source:d="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ie(u),e.backfill&&e.mode==="combobox"&&h!==null&&d==="keyboard"&&z(String(h))},T=(h,u)=>{const d=()=>{var F;const $=v(h),j=$?.[s.value.label];return[e.labelInValue?{label:typeof j=="function"?j():j,originLabel:j,value:h,key:(F=$?.key)!==null&&F!==void 0?F:h}:h,Ze($)]};if(u&&e.onSelect){const[F,$]=d();e.onSelect(F,$)}else if(!u&&e.onDeselect){const[F,$]=d();e.onDeselect(F,$)}},K=(h,u)=>{let d;const F=c.value?u.selected:!0;F?d=c.value?[...I.value,h]:[h]:d=I.value.filter($=>$.value!==h),W(d),T(h,F),e.mode==="combobox"?z(""):(!c.value||e.autoClearSearchValue)&&(m(""),z(""))},te=(h,u)=>{W(h),(u.type==="remove"||u.type==="clear")&&u.values.forEach(d=>{T(d.value,!1)})},re=(h,u)=>{var d;if(m(h),z(null),u.source==="submit"){const F=(h||"").trim();if(F){const $=Array.from(new Set([...O.value,F]));W($),T(F,!0),m("")}return}u.source!=="blur"&&(e.mode==="combobox"&&W(h),(d=e.onSearch)===null||d===void 0||d.call(e,h))},se=h=>{let u=h;e.mode!=="tags"&&(u=h.map(F=>{const $=g.value.get(F);return $?.value}).filter(F=>F!==void 0));const d=Array.from(new Set([...O.value,...u]));W(d),d.forEach(F=>{T(F,!0)})},ee=H(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Lo(At(S(S({},b),{flattenOptions:Y,onActiveValue:L,defaultActiveFirstOption:p,onSelect:K,menuItemSelectedIcon:ge(e,"menuItemSelectedIcon"),rawValues:O,fieldNames:s,virtual:ee,listHeight:ge(e,"listHeight"),listItemHeight:ge(e,"listItemHeight"),childrenAsData:a}))),Ie(()=>{Yo(e)},{flush:"post"});const ce=me();o({focus(){var h;(h=ce.value)===null||h===void 0||h.focus()},blur(){var h;(h=ce.value)===null||h===void 0||h.blur()},scrollTo(h){var u;(u=ce.value)===null||u===void 0||u.scrollTo(h)}});const de=H(()=>_e(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>M(wo,k(k(k({},de.value),n),{},{id:i,prefixCls:e.prefixCls,ref:ce,omitDomProps:qo,mode:e.mode,displayValues:P.value,onDisplayValuesChange:te,searchValue:r.value,onSearch:re,onSearchSplit:se,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Ao,emptyOptions:!Y.value.length,activeValue:G.value,activeDescendantId:`${i}_list_${oe.value}`}),l)}}),st=()=>null;st.isSelectOption=!0;st.displayName="ASelectOption";const ut=()=>null;ut.isSelectOptGroup=!0;ut.displayName="ASelectOptGroup";function ko(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:o,multiple:n,prefixCls:l,hasFeedback:i,feedbackIcon:c,showArrow:a}=e,f=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),s=e.clearIcon||t.clearIcon&&t.clearIcon(),r=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),m=e.removeIcon||t.removeIcon&&t.removeIcon(),b=s??M(Ln,null,null),C=x=>M(Fe,null,[a!==!1&&x,i&&c]);let g=null;if(f!==void 0)g=C(f);else if(o)g=C(M(Bn,{spin:!0},null));else{const x=`${l}-suffix`;g=D=>{let{open:E,showSearch:I}=D;return C(E&&I?M(zn,{class:x},null):M(Wn,{class:x},null))}}let y=null;r!==void 0?y=r:n?y=M(_n,null,null):y=null;let w=null;return m!==void 0?w=m:w=M(An,null,null),{clearIcon:b,suffixIcon:g,itemIcon:y,removeIcon:w}}const Pt=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},el=e=>{const{antCls:t,componentCls:o}=e,n=`${o}-item`;return[{[`${o}-dropdown`]:S(S({},Je(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
4
4
  &${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-bottomLeft,
@@ -1 +1 @@
1
- import{l as q,m as J,h as N,r as Q,af as P,v as tt,f as y,a0 as et,w as nt,p as ot,q as st,J as it}from"./index-ByDs4cW4.js";import{d as L,b as F,e as D,w as rt,c as C,F as O,s as I,r as lt}from"./vendor-Bn1JzzAn.js";import at from"./index-BfXdTvku.js";import{B as ut}from"./index-By-zGgUp.js";import{R as ct}from"./icons-DG5UD-6K.js";import"./initDefaultProps-B3bCivrt.js";import"./index-KT94nMha.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./raf-Deuc0E8-.js";import"./devWarning-sBSSW127.js";import"./compact-item-n65WDhze.js";import"./createContext-DAKgOdIy.js";import"./Compact-CD_4lbxr.js";import"./_getTag-DnrRH4E6.js";const ht=r=>{const{componentCls:s}=r;return{[s]:N(N({},Q(r)),{display:"flex",justifyContent:"center",alignItems:"center",padding:r.paddingSM,backgroundColor:r.colorWhite,borderRadius:r.borderRadiusLG,border:`${r.lineWidth}px ${r.lineType} ${r.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${s}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:r.colorText,lineHeight:r.lineHeight,background:r.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${s}-expired , & > ${s}-scanned`]:{color:r.QRCodeTextColor}},"&-icon":{marginBlockEnd:r.marginXS,fontSize:r.controlHeight}}),[`${s}-borderless`]:{borderColor:"transparent"}}},dt=q("QRCode",r=>ht(J(r,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))),z=()=>({size:{type:Number,default:160},value:{type:String,required:!0},type:P("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:tt()}),ft=()=>N(N({},z()),{errorLevel:P("M"),icon:String,iconSize:{type:Number,default:40},status:P("active"),bordered:{type:Boolean,default:!0}});var R;(function(r){class s{static encodeText(t,n){const e=r.QrSegment.makeSegments(t);return s.encodeSegments(e,n)}static encodeBinary(t,n){const e=r.QrSegment.makeBytes(t);return s.encodeSegments([e],n)}static encodeSegments(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(s.MIN_VERSION<=e&&e<=o&&o<=s.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");let a,g;for(a=e;;a++){const m=s.getNumDataCodewords(a,n)*8,w=l.getTotalBits(t,a);if(w<=m){g=w;break}if(a>=o)throw new RangeError("Data too long")}for(const m of[s.Ecc.MEDIUM,s.Ecc.QUARTILE,s.Ecc.HIGH])c&&g<=s.getNumDataCodewords(a,m)*8&&(n=m);const d=[];for(const m of t){u(m.mode.modeBits,4,d),u(m.numChars,m.mode.numCharCountBits(a),d);for(const w of m.getData())d.push(w)}h(d.length==g);const p=s.getNumDataCodewords(a,n)*8;h(d.length<=p),u(0,Math.min(4,p-d.length),d),u(0,(8-d.length%8)%8,d),h(d.length%8==0);for(let m=236;d.length<p;m^=253)u(m,8,d);const M=[];for(;M.length*8<d.length;)M.push(0);return d.forEach((m,w)=>M[w>>>3]|=m<<7-(w&7)),new s(a,n,M,i)}constructor(t,n,e,o){if(this.version=t,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],t<s.MIN_VERSION||t>s.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;const i=[];for(let a=0;a<this.size;a++)i.push(!1);for(let a=0;a<this.size;a++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(e);if(this.drawCodewords(c),o==-1){let a=1e9;for(let g=0;g<8;g++){this.applyMask(g),this.drawFormatBits(g);const d=this.getPenaltyScore();d<a&&(o=g,a=d),this.applyMask(g)}}h(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}getModule(t,n){return 0<=t&&t<this.size&&0<=n&&n<this.size&&this.modules[n][t]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const t=this.getAlignmentPatternPositions(),n=t.length;for(let e=0;e<n;e++)for(let o=0;o<n;o++)e==0&&o==0||e==0&&o==n-1||e==n-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){const n=this.errorCorrectionLevel.formatBits<<3|t;let e=n;for(let i=0;i<10;i++)e=e<<1^(e>>>9)*1335;const o=(n<<10|e)^21522;h(o>>>15==0);for(let i=0;i<=5;i++)this.setFunctionModule(8,i,f(o,i));this.setFunctionModule(8,7,f(o,6)),this.setFunctionModule(8,8,f(o,7)),this.setFunctionModule(7,8,f(o,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,f(o,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,f(o,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,f(o,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;const n=this.version<<12|t;h(n>>>18==0);for(let e=0;e<18;e++){const o=f(n,e),i=this.size-11+e%3,c=Math.floor(e/3);this.setFunctionModule(i,c,o),this.setFunctionModule(c,i,o)}}drawFinderPattern(t,n){for(let e=-4;e<=4;e++)for(let o=-4;o<=4;o++){const i=Math.max(Math.abs(o),Math.abs(e)),c=t+o,a=n+e;0<=c&&c<this.size&&0<=a&&a<this.size&&this.setFunctionModule(c,a,i!=2&&i!=4)}}drawAlignmentPattern(t,n){for(let e=-2;e<=2;e++)for(let o=-2;o<=2;o++)this.setFunctionModule(t+o,n+e,Math.max(Math.abs(o),Math.abs(e))!=1)}setFunctionModule(t,n,e){this.modules[n][t]=e,this.isFunction[n][t]=!0}addEccAndInterleave(t){const n=this.version,e=this.errorCorrectionLevel;if(t.length!=s.getNumDataCodewords(n,e))throw new RangeError("Invalid argument");const o=s.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][n],i=s.ECC_CODEWORDS_PER_BLOCK[e.ordinal][n],c=Math.floor(s.getNumRawDataModules(n)/8),a=o-c%o,g=Math.floor(c/o),d=[],p=s.reedSolomonComputeDivisor(i);for(let m=0,w=0;m<o;m++){const v=t.slice(w,w+g-i+(m<a?0:1));w+=v.length;const A=s.reedSolomonComputeRemainder(v,p);m<a&&v.push(0),d.push(v.concat(A))}const M=[];for(let m=0;m<d[0].length;m++)d.forEach((w,v)=>{(m!=g-i||v>=a)&&M.push(w[m])});return h(M.length==c),M}drawCodewords(t){if(t.length!=Math.floor(s.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const c=e-i,g=(e+1&2)==0?this.size-1-o:o;!this.isFunction[g][c]&&n<t.length*8&&(this.modules[g][c]=f(t[n>>>3],7-(n&7)),n++)}}h(n==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let n=0;n<this.size;n++)for(let e=0;e<this.size;e++){let o;switch(t){case 0:o=(e+n)%2==0;break;case 1:o=n%2==0;break;case 2:o=e%3==0;break;case 3:o=(e+n)%3==0;break;case 4:o=(Math.floor(e/3)+Math.floor(n/2))%2==0;break;case 5:o=e*n%2+e*n%3==0;break;case 6:o=(e*n%2+e*n%3)%2==0;break;case 7:o=((e+n)%2+e*n%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[n][e]&&o&&(this.modules[n][e]=!this.modules[n][e])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let c=!1,a=0;const g=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[i][d]==c?(a++,a==5?t+=s.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,g),c||(t+=this.finderPenaltyCountPatterns(g)*s.PENALTY_N3),c=this.modules[i][d],a=1);t+=this.finderPenaltyTerminateAndCount(c,a,g)*s.PENALTY_N3}for(let i=0;i<this.size;i++){let c=!1,a=0;const g=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[d][i]==c?(a++,a==5?t+=s.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,g),c||(t+=this.finderPenaltyCountPatterns(g)*s.PENALTY_N3),c=this.modules[d][i],a=1);t+=this.finderPenaltyTerminateAndCount(c,a,g)*s.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let c=0;c<this.size-1;c++){const a=this.modules[i][c];a==this.modules[i][c+1]&&a==this.modules[i+1][c]&&a==this.modules[i+1][c+1]&&(t+=s.PENALTY_N2)}let n=0;for(const i of this.modules)n=i.reduce((c,a)=>c+(a?1:0),n);const e=this.size*this.size,o=Math.ceil(Math.abs(n*20-e*10)/e)-1;return h(0<=o&&o<=9),t+=o*s.PENALTY_N4,h(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{const t=Math.floor(this.version/7)+2,n=this.version==32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,e=[6];for(let o=this.size-7;e.length<t;o-=n)e.splice(1,0,o);return e}}static getNumRawDataModules(t){if(t<s.MIN_VERSION||t>s.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;n-=(25*e-10)*e-55,t>=7&&(n-=36)}return h(208<=n&&n<=29648),n}static getNumDataCodewords(t,n){return Math.floor(s.getNumRawDataModules(t)/8)-s.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*s.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");const n=[];for(let o=0;o<t-1;o++)n.push(0);n.push(1);let e=1;for(let o=0;o<t;o++){for(let i=0;i<n.length;i++)n[i]=s.reedSolomonMultiply(n[i],e),i+1<n.length&&(n[i]^=n[i+1]);e=s.reedSolomonMultiply(e,2)}return n}static reedSolomonComputeRemainder(t,n){const e=n.map(o=>0);for(const o of t){const i=o^e.shift();e.push(0),n.forEach((c,a)=>e[a]^=s.reedSolomonMultiply(c,i))}return e}static reedSolomonMultiply(t,n){if(t>>>8||n>>>8)throw new RangeError("Byte out of range");let e=0;for(let o=7;o>=0;o--)e=e<<1^(e>>>7)*285,e^=(n>>>o&1)*t;return h(e>>>8==0),e}finderPenaltyCountPatterns(t){const n=t[1];h(n<=this.size*3);const e=n>0&&t[2]==n&&t[3]==n*3&&t[4]==n&&t[5]==n;return(e&&t[0]>=n*4&&t[6]>=n?1:0)+(e&&t[6]>=n*4&&t[0]>=n?1:0)}finderPenaltyTerminateAndCount(t,n,e){return t&&(this.finderPenaltyAddHistory(n,e),n=0),n+=this.size,this.finderPenaltyAddHistory(n,e),this.finderPenaltyCountPatterns(e)}finderPenaltyAddHistory(t,n){n[0]==0&&(t+=this.size),n.pop(),n.unshift(t)}}s.MIN_VERSION=1,s.MAX_VERSION=40,s.PENALTY_N1=3,s.PENALTY_N2=3,s.PENALTY_N3=40,s.PENALTY_N4=10,s.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],s.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],r.QrCode=s;function u(E,t,n){if(t<0||t>31||E>>>t)throw new RangeError("Value out of range");for(let e=t-1;e>=0;e--)n.push(E>>>e&1)}function f(E,t){return(E>>>t&1)!=0}function h(E){if(!E)throw new Error("Assertion error")}class l{static makeBytes(t){const n=[];for(const e of t)u(e,8,n);return new l(l.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!l.isNumeric(t))throw new RangeError("String contains non-numeric characters");const n=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);u(parseInt(t.substring(e,e+o),10),o*3+1,n),e+=o}return new l(l.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!l.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");const n=[];let e;for(e=0;e+2<=t.length;e+=2){let o=l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e))*45;o+=l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1)),u(o,11,n)}return e<t.length&&u(l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,n),new l(l.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return t==""?[]:l.isNumeric(t)?[l.makeNumeric(t)]:l.isAlphanumeric(t)?[l.makeAlphanumeric(t)]:[l.makeBytes(l.toUtf8ByteArray(t))]}static makeEci(t){const n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)u(t,8,n);else if(t<16384)u(2,2,n),u(t,14,n);else if(t<1e6)u(6,3,n),u(t,21,n);else throw new RangeError("ECI assignment value out of range");return new l(l.Mode.ECI,0,n)}static isNumeric(t){return l.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return l.ALPHANUMERIC_REGEX.test(t)}constructor(t,n,e){if(this.mode=t,this.numChars=n,this.bitData=e,n<0)throw new RangeError("Invalid argument");this.bitData=e.slice()}getData(){return this.bitData.slice()}static getTotalBits(t,n){let e=0;for(const o of t){const i=o.mode.numCharCountBits(n);if(o.numChars>=1<<i)return 1/0;e+=4+i+o.bitData.length}return e}static toUtf8ByteArray(t){t=encodeURI(t);const n=[];for(let e=0;e<t.length;e++)t.charAt(e)!="%"?n.push(t.charCodeAt(e)):(n.push(parseInt(t.substring(e+1,e+3),16)),e+=2);return n}}l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",r.QrSegment=l})(R||(R={}));(function(r){(function(s){class u{constructor(h,l){this.ordinal=h,this.formatBits=l}}u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),s.Ecc=u})(r.QrCode||(r.QrCode={}))})(R||(R={}));(function(r){(function(s){class u{constructor(h,l){this.modeBits=h,this.numBitsCharCount=l}numCharCountBits(h){return this.numBitsCharCount[Math.floor((h+7)/17)]}}u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),s.Mode=u})(r.QrSegment||(r.QrSegment={}))})(R||(R={}));const U={L:R.QrCode.Ecc.LOW,M:R.QrCode.Ecc.MEDIUM,Q:R.QrCode.Ecc.QUARTILE,H:R.QrCode.Ecc.HIGH},S=128,$="L",k="#FFFFFF",H="#000000",G=!1,gt=4,mt=0,Et=.1;function Y(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const u=[];return r.forEach(function(f,h){let l=null;f.forEach(function(E,t){if(!E&&l!==null){u.push(`M${l+s} ${h+s}h${t-l}v1H${l+s}z`),l=null;return}if(t===f.length-1){if(!E)return;l===null?u.push(`M${t+s},${h+s} h1v1H${t+s}z`):u.push(`M${l+s},${h+s} h${t+1-l}v1H${l+s}z`);return}E&&l===null&&(l=t)})}),u.join("")}function V(r,s){return r.slice().map((u,f)=>f<s.y||f>=s.y+s.h?u:u.map((h,l)=>l<s.x||l>=s.x+s.w?h:!1))}function X(r,s,u,f){if(f==null)return null;const h=r.length+u*2,l=Math.floor(s*Et),E=h/s,t=(f.width||l)*E,n=(f.height||l)*E,e=f.x==null?r.length/2-t/2:f.x*E,o=f.y==null?r.length/2-n/2:f.y*E;let i=null;if(f.excavate){const c=Math.floor(e),a=Math.floor(o),g=Math.ceil(t+e-c),d=Math.ceil(n+o-a);i={x:c,y:a,w:g,h:d}}return{x:e,y:o,h:n,w:t,excavation:i}}function _(r,s){return s!=null?Math.floor(s):r?gt:mt}const wt=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Mt=L({name:"QRCodeCanvas",inheritAttrs:!1,props:N(N({},z()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(r,s){let{attrs:u,expose:f}=s;const h=F(()=>{var n;return(n=r.imageSettings)===null||n===void 0?void 0:n.src}),l=I(null),E=I(null),t=I(!1);return f({toDataURL:(n,e)=>{var o;return(o=l.value)===null||o===void 0?void 0:o.toDataURL(n,e)}}),D(()=>{const{value:n,size:e=S,level:o=$,bgColor:i=k,fgColor:c=H,includeMargin:a=G,marginSize:g,imageSettings:d}=r;if(l.value!=null){const p=l.value,M=p.getContext("2d");if(!M)return;let m=R.QrCode.encodeText(n,U[o]).getModules();const w=_(a,g),v=m.length+w*2,A=X(m,e,w,d),b=E.value,x=t.value&&A!=null&&b!==null&&b.complete&&b.naturalHeight!==0&&b.naturalWidth!==0;x&&A.excavation!=null&&(m=V(m,A.excavation));const B=window.devicePixelRatio||1;p.height=p.width=e*B;const T=e/v*B;M.scale(T,T),M.fillStyle=i,M.fillRect(0,0,v,v),M.fillStyle=c,wt?M.fill(new Path2D(Y(m,w))):m.forEach(function(W,j){W.forEach(function(K,Z){K&&M.fillRect(Z+w,j+w,1,1)})}),x&&M.drawImage(b,A.x+w,A.y+w,A.w,A.h)}},{flush:"post"}),rt(h,()=>{t.value=!1}),()=>{var n;const e=(n=r.size)!==null&&n!==void 0?n:S,o={height:`${e}px`,width:`${e}px`};let i=null;return h.value!=null&&(i=C("img",{src:h.value,key:h.value,style:{display:"none"},onLoad:()=>{t.value=!0},ref:E},null)),C(O,null,[C("canvas",y(y({},u),{},{style:[o,u.style],ref:l}),null),i])}}}),Ct=L({name:"QRCodeSVG",inheritAttrs:!1,props:N(N({},z()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(r){let s=null,u=null,f=null,h=null,l=null,E=null;return D(()=>{const{value:t,size:n=S,level:e=$,includeMargin:o=G,marginSize:i,imageSettings:c}=r;s=R.QrCode.encodeText(t,U[e]).getModules(),u=_(o,i),f=s.length+u*2,h=X(s,n,u,c),c!=null&&h!=null&&(h.excavation!=null&&(s=V(s,h.excavation)),E=C("image",{"xlink:href":c.src,height:h.h,width:h.w,x:h.x+u,y:h.y+u,preserveAspectRatio:"none"},null)),l=Y(s,u)}),()=>{const t=r.bgColor&&k,n=r.fgColor&&H;return C("svg",{height:r.size,width:r.size,viewBox:`0 0 ${f} ${f}`},[!!r.title&&C("title",null,[r.title]),C("path",{fill:t,d:`M0,0 h${f}v${f}H0z`,"shape-rendering":"crispEdges"},null),C("path",{fill:n,d:l,"shape-rendering":"crispEdges"},null),E])}}}),Rt=L({name:"AQrcode",inheritAttrs:!1,props:ft(),emits:["refresh"],setup(r,s){let{emit:u,attrs:f,expose:h}=s;nt(!(r.icon&&r.errorLevel==="L"),"QRCode","ErrorLevel `L` is not recommended to be used with `icon`, for scanning result would be affected by low level.");const[l]=ot("QRCode"),{prefixCls:E}=st("qrcode",r),[t,n]=dt(E),[,e]=it(),o=lt();h({toDataURL:(c,a)=>{var g;return(g=o.value)===null||g===void 0?void 0:g.toDataURL(c,a)}});const i=F(()=>{const{value:c,icon:a="",size:g=160,iconSize:d=40,color:p=e.value.colorText,bgColor:M="transparent",errorLevel:m="M"}=r,w={src:a,x:void 0,y:void 0,height:d,width:d,excavate:!0};return{value:c,size:g-(e.value.paddingSM+e.value.lineWidth)*2,level:m,bgColor:M,fgColor:p,imageSettings:a?w:void 0}});return()=>{const c=E.value;return t(C("div",y(y({},f),{},{style:[f.style,{width:`${r.size}px`,height:`${r.size}px`,backgroundColor:i.value.bgColor}],class:[n.value,c,{[`${c}-borderless`]:!r.bordered}]}),[r.status!=="active"&&C("div",{class:`${c}-mask`},[r.status==="loading"&&C(at,null,null),r.status==="expired"&&C(O,null,[C("p",{class:`${c}-expired`},[l.value.expired]),C(ut,{type:"link",onClick:a=>u("refresh",a)},{default:()=>[l.value.refresh],icon:()=>C(ct,null,null)})]),r.status==="scanned"&&C("p",{class:`${c}-scanned`},[l.value.scanned])]),r.type==="canvas"?C(Mt,y({ref:o},i.value),null):C(Ct,i.value,null)]))}}}),Dt=et(Rt);export{Dt as default};
1
+ import{l as q,m as J,h as N,r as Q,af as P,v as tt,f as y,a0 as et,w as nt,p as ot,q as st,J as it}from"./index-TqLyy6IR.js";import{d as L,b as F,e as D,w as rt,c as C,F as O,s as I,r as lt}from"./vendor-Bn1JzzAn.js";import at from"./index-CS3QdYDW.js";import{B as ut}from"./index-DAnXSg0r.js";import{R as ct}from"./icons-DG5UD-6K.js";import"./initDefaultProps-18rmGkik.js";import"./index-DP9ZLjra.js";import"./isVisible-C7tPsqfj.js";import"./useState-CnxtbLoC.js";import"./raf-Deuc0E8-.js";import"./devWarning-ONeWC5dH.js";import"./compact-item-DpAXXaqu.js";import"./createContext-BYq8bCQX.js";import"./Compact-BzVXohrg.js";import"./_getTag-DnrRH4E6.js";const ht=r=>{const{componentCls:s}=r;return{[s]:N(N({},Q(r)),{display:"flex",justifyContent:"center",alignItems:"center",padding:r.paddingSM,backgroundColor:r.colorWhite,borderRadius:r.borderRadiusLG,border:`${r.lineWidth}px ${r.lineType} ${r.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${s}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:r.colorText,lineHeight:r.lineHeight,background:r.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${s}-expired , & > ${s}-scanned`]:{color:r.QRCodeTextColor}},"&-icon":{marginBlockEnd:r.marginXS,fontSize:r.controlHeight}}),[`${s}-borderless`]:{borderColor:"transparent"}}},dt=q("QRCode",r=>ht(J(r,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))),z=()=>({size:{type:Number,default:160},value:{type:String,required:!0},type:P("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:tt()}),ft=()=>N(N({},z()),{errorLevel:P("M"),icon:String,iconSize:{type:Number,default:40},status:P("active"),bordered:{type:Boolean,default:!0}});var R;(function(r){class s{static encodeText(t,n){const e=r.QrSegment.makeSegments(t);return s.encodeSegments(e,n)}static encodeBinary(t,n){const e=r.QrSegment.makeBytes(t);return s.encodeSegments([e],n)}static encodeSegments(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(s.MIN_VERSION<=e&&e<=o&&o<=s.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");let a,g;for(a=e;;a++){const m=s.getNumDataCodewords(a,n)*8,w=l.getTotalBits(t,a);if(w<=m){g=w;break}if(a>=o)throw new RangeError("Data too long")}for(const m of[s.Ecc.MEDIUM,s.Ecc.QUARTILE,s.Ecc.HIGH])c&&g<=s.getNumDataCodewords(a,m)*8&&(n=m);const d=[];for(const m of t){u(m.mode.modeBits,4,d),u(m.numChars,m.mode.numCharCountBits(a),d);for(const w of m.getData())d.push(w)}h(d.length==g);const p=s.getNumDataCodewords(a,n)*8;h(d.length<=p),u(0,Math.min(4,p-d.length),d),u(0,(8-d.length%8)%8,d),h(d.length%8==0);for(let m=236;d.length<p;m^=253)u(m,8,d);const M=[];for(;M.length*8<d.length;)M.push(0);return d.forEach((m,w)=>M[w>>>3]|=m<<7-(w&7)),new s(a,n,M,i)}constructor(t,n,e,o){if(this.version=t,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],t<s.MIN_VERSION||t>s.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;const i=[];for(let a=0;a<this.size;a++)i.push(!1);for(let a=0;a<this.size;a++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(e);if(this.drawCodewords(c),o==-1){let a=1e9;for(let g=0;g<8;g++){this.applyMask(g),this.drawFormatBits(g);const d=this.getPenaltyScore();d<a&&(o=g,a=d),this.applyMask(g)}}h(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}getModule(t,n){return 0<=t&&t<this.size&&0<=n&&n<this.size&&this.modules[n][t]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const t=this.getAlignmentPatternPositions(),n=t.length;for(let e=0;e<n;e++)for(let o=0;o<n;o++)e==0&&o==0||e==0&&o==n-1||e==n-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){const n=this.errorCorrectionLevel.formatBits<<3|t;let e=n;for(let i=0;i<10;i++)e=e<<1^(e>>>9)*1335;const o=(n<<10|e)^21522;h(o>>>15==0);for(let i=0;i<=5;i++)this.setFunctionModule(8,i,f(o,i));this.setFunctionModule(8,7,f(o,6)),this.setFunctionModule(8,8,f(o,7)),this.setFunctionModule(7,8,f(o,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,f(o,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,f(o,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,f(o,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;const n=this.version<<12|t;h(n>>>18==0);for(let e=0;e<18;e++){const o=f(n,e),i=this.size-11+e%3,c=Math.floor(e/3);this.setFunctionModule(i,c,o),this.setFunctionModule(c,i,o)}}drawFinderPattern(t,n){for(let e=-4;e<=4;e++)for(let o=-4;o<=4;o++){const i=Math.max(Math.abs(o),Math.abs(e)),c=t+o,a=n+e;0<=c&&c<this.size&&0<=a&&a<this.size&&this.setFunctionModule(c,a,i!=2&&i!=4)}}drawAlignmentPattern(t,n){for(let e=-2;e<=2;e++)for(let o=-2;o<=2;o++)this.setFunctionModule(t+o,n+e,Math.max(Math.abs(o),Math.abs(e))!=1)}setFunctionModule(t,n,e){this.modules[n][t]=e,this.isFunction[n][t]=!0}addEccAndInterleave(t){const n=this.version,e=this.errorCorrectionLevel;if(t.length!=s.getNumDataCodewords(n,e))throw new RangeError("Invalid argument");const o=s.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][n],i=s.ECC_CODEWORDS_PER_BLOCK[e.ordinal][n],c=Math.floor(s.getNumRawDataModules(n)/8),a=o-c%o,g=Math.floor(c/o),d=[],p=s.reedSolomonComputeDivisor(i);for(let m=0,w=0;m<o;m++){const v=t.slice(w,w+g-i+(m<a?0:1));w+=v.length;const A=s.reedSolomonComputeRemainder(v,p);m<a&&v.push(0),d.push(v.concat(A))}const M=[];for(let m=0;m<d[0].length;m++)d.forEach((w,v)=>{(m!=g-i||v>=a)&&M.push(w[m])});return h(M.length==c),M}drawCodewords(t){if(t.length!=Math.floor(s.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const c=e-i,g=(e+1&2)==0?this.size-1-o:o;!this.isFunction[g][c]&&n<t.length*8&&(this.modules[g][c]=f(t[n>>>3],7-(n&7)),n++)}}h(n==t.length*8)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let n=0;n<this.size;n++)for(let e=0;e<this.size;e++){let o;switch(t){case 0:o=(e+n)%2==0;break;case 1:o=n%2==0;break;case 2:o=e%3==0;break;case 3:o=(e+n)%3==0;break;case 4:o=(Math.floor(e/3)+Math.floor(n/2))%2==0;break;case 5:o=e*n%2+e*n%3==0;break;case 6:o=(e*n%2+e*n%3)%2==0;break;case 7:o=((e+n)%2+e*n%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[n][e]&&o&&(this.modules[n][e]=!this.modules[n][e])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let c=!1,a=0;const g=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[i][d]==c?(a++,a==5?t+=s.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,g),c||(t+=this.finderPenaltyCountPatterns(g)*s.PENALTY_N3),c=this.modules[i][d],a=1);t+=this.finderPenaltyTerminateAndCount(c,a,g)*s.PENALTY_N3}for(let i=0;i<this.size;i++){let c=!1,a=0;const g=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[d][i]==c?(a++,a==5?t+=s.PENALTY_N1:a>5&&t++):(this.finderPenaltyAddHistory(a,g),c||(t+=this.finderPenaltyCountPatterns(g)*s.PENALTY_N3),c=this.modules[d][i],a=1);t+=this.finderPenaltyTerminateAndCount(c,a,g)*s.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let c=0;c<this.size-1;c++){const a=this.modules[i][c];a==this.modules[i][c+1]&&a==this.modules[i+1][c]&&a==this.modules[i+1][c+1]&&(t+=s.PENALTY_N2)}let n=0;for(const i of this.modules)n=i.reduce((c,a)=>c+(a?1:0),n);const e=this.size*this.size,o=Math.ceil(Math.abs(n*20-e*10)/e)-1;return h(0<=o&&o<=9),t+=o*s.PENALTY_N4,h(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{const t=Math.floor(this.version/7)+2,n=this.version==32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,e=[6];for(let o=this.size-7;e.length<t;o-=n)e.splice(1,0,o);return e}}static getNumRawDataModules(t){if(t<s.MIN_VERSION||t>s.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;n-=(25*e-10)*e-55,t>=7&&(n-=36)}return h(208<=n&&n<=29648),n}static getNumDataCodewords(t,n){return Math.floor(s.getNumRawDataModules(t)/8)-s.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*s.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");const n=[];for(let o=0;o<t-1;o++)n.push(0);n.push(1);let e=1;for(let o=0;o<t;o++){for(let i=0;i<n.length;i++)n[i]=s.reedSolomonMultiply(n[i],e),i+1<n.length&&(n[i]^=n[i+1]);e=s.reedSolomonMultiply(e,2)}return n}static reedSolomonComputeRemainder(t,n){const e=n.map(o=>0);for(const o of t){const i=o^e.shift();e.push(0),n.forEach((c,a)=>e[a]^=s.reedSolomonMultiply(c,i))}return e}static reedSolomonMultiply(t,n){if(t>>>8||n>>>8)throw new RangeError("Byte out of range");let e=0;for(let o=7;o>=0;o--)e=e<<1^(e>>>7)*285,e^=(n>>>o&1)*t;return h(e>>>8==0),e}finderPenaltyCountPatterns(t){const n=t[1];h(n<=this.size*3);const e=n>0&&t[2]==n&&t[3]==n*3&&t[4]==n&&t[5]==n;return(e&&t[0]>=n*4&&t[6]>=n?1:0)+(e&&t[6]>=n*4&&t[0]>=n?1:0)}finderPenaltyTerminateAndCount(t,n,e){return t&&(this.finderPenaltyAddHistory(n,e),n=0),n+=this.size,this.finderPenaltyAddHistory(n,e),this.finderPenaltyCountPatterns(e)}finderPenaltyAddHistory(t,n){n[0]==0&&(t+=this.size),n.pop(),n.unshift(t)}}s.MIN_VERSION=1,s.MAX_VERSION=40,s.PENALTY_N1=3,s.PENALTY_N2=3,s.PENALTY_N3=40,s.PENALTY_N4=10,s.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],s.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],r.QrCode=s;function u(E,t,n){if(t<0||t>31||E>>>t)throw new RangeError("Value out of range");for(let e=t-1;e>=0;e--)n.push(E>>>e&1)}function f(E,t){return(E>>>t&1)!=0}function h(E){if(!E)throw new Error("Assertion error")}class l{static makeBytes(t){const n=[];for(const e of t)u(e,8,n);return new l(l.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!l.isNumeric(t))throw new RangeError("String contains non-numeric characters");const n=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);u(parseInt(t.substring(e,e+o),10),o*3+1,n),e+=o}return new l(l.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!l.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");const n=[];let e;for(e=0;e+2<=t.length;e+=2){let o=l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e))*45;o+=l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1)),u(o,11,n)}return e<t.length&&u(l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,n),new l(l.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return t==""?[]:l.isNumeric(t)?[l.makeNumeric(t)]:l.isAlphanumeric(t)?[l.makeAlphanumeric(t)]:[l.makeBytes(l.toUtf8ByteArray(t))]}static makeEci(t){const n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)u(t,8,n);else if(t<16384)u(2,2,n),u(t,14,n);else if(t<1e6)u(6,3,n),u(t,21,n);else throw new RangeError("ECI assignment value out of range");return new l(l.Mode.ECI,0,n)}static isNumeric(t){return l.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return l.ALPHANUMERIC_REGEX.test(t)}constructor(t,n,e){if(this.mode=t,this.numChars=n,this.bitData=e,n<0)throw new RangeError("Invalid argument");this.bitData=e.slice()}getData(){return this.bitData.slice()}static getTotalBits(t,n){let e=0;for(const o of t){const i=o.mode.numCharCountBits(n);if(o.numChars>=1<<i)return 1/0;e+=4+i+o.bitData.length}return e}static toUtf8ByteArray(t){t=encodeURI(t);const n=[];for(let e=0;e<t.length;e++)t.charAt(e)!="%"?n.push(t.charCodeAt(e)):(n.push(parseInt(t.substring(e+1,e+3),16)),e+=2);return n}}l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",r.QrSegment=l})(R||(R={}));(function(r){(function(s){class u{constructor(h,l){this.ordinal=h,this.formatBits=l}}u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),s.Ecc=u})(r.QrCode||(r.QrCode={}))})(R||(R={}));(function(r){(function(s){class u{constructor(h,l){this.modeBits=h,this.numBitsCharCount=l}numCharCountBits(h){return this.numBitsCharCount[Math.floor((h+7)/17)]}}u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),s.Mode=u})(r.QrSegment||(r.QrSegment={}))})(R||(R={}));const U={L:R.QrCode.Ecc.LOW,M:R.QrCode.Ecc.MEDIUM,Q:R.QrCode.Ecc.QUARTILE,H:R.QrCode.Ecc.HIGH},S=128,$="L",k="#FFFFFF",H="#000000",G=!1,gt=4,mt=0,Et=.1;function Y(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const u=[];return r.forEach(function(f,h){let l=null;f.forEach(function(E,t){if(!E&&l!==null){u.push(`M${l+s} ${h+s}h${t-l}v1H${l+s}z`),l=null;return}if(t===f.length-1){if(!E)return;l===null?u.push(`M${t+s},${h+s} h1v1H${t+s}z`):u.push(`M${l+s},${h+s} h${t+1-l}v1H${l+s}z`);return}E&&l===null&&(l=t)})}),u.join("")}function V(r,s){return r.slice().map((u,f)=>f<s.y||f>=s.y+s.h?u:u.map((h,l)=>l<s.x||l>=s.x+s.w?h:!1))}function X(r,s,u,f){if(f==null)return null;const h=r.length+u*2,l=Math.floor(s*Et),E=h/s,t=(f.width||l)*E,n=(f.height||l)*E,e=f.x==null?r.length/2-t/2:f.x*E,o=f.y==null?r.length/2-n/2:f.y*E;let i=null;if(f.excavate){const c=Math.floor(e),a=Math.floor(o),g=Math.ceil(t+e-c),d=Math.ceil(n+o-a);i={x:c,y:a,w:g,h:d}}return{x:e,y:o,h:n,w:t,excavation:i}}function _(r,s){return s!=null?Math.floor(s):r?gt:mt}const wt=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Mt=L({name:"QRCodeCanvas",inheritAttrs:!1,props:N(N({},z()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(r,s){let{attrs:u,expose:f}=s;const h=F(()=>{var n;return(n=r.imageSettings)===null||n===void 0?void 0:n.src}),l=I(null),E=I(null),t=I(!1);return f({toDataURL:(n,e)=>{var o;return(o=l.value)===null||o===void 0?void 0:o.toDataURL(n,e)}}),D(()=>{const{value:n,size:e=S,level:o=$,bgColor:i=k,fgColor:c=H,includeMargin:a=G,marginSize:g,imageSettings:d}=r;if(l.value!=null){const p=l.value,M=p.getContext("2d");if(!M)return;let m=R.QrCode.encodeText(n,U[o]).getModules();const w=_(a,g),v=m.length+w*2,A=X(m,e,w,d),b=E.value,x=t.value&&A!=null&&b!==null&&b.complete&&b.naturalHeight!==0&&b.naturalWidth!==0;x&&A.excavation!=null&&(m=V(m,A.excavation));const B=window.devicePixelRatio||1;p.height=p.width=e*B;const T=e/v*B;M.scale(T,T),M.fillStyle=i,M.fillRect(0,0,v,v),M.fillStyle=c,wt?M.fill(new Path2D(Y(m,w))):m.forEach(function(W,j){W.forEach(function(K,Z){K&&M.fillRect(Z+w,j+w,1,1)})}),x&&M.drawImage(b,A.x+w,A.y+w,A.w,A.h)}},{flush:"post"}),rt(h,()=>{t.value=!1}),()=>{var n;const e=(n=r.size)!==null&&n!==void 0?n:S,o={height:`${e}px`,width:`${e}px`};let i=null;return h.value!=null&&(i=C("img",{src:h.value,key:h.value,style:{display:"none"},onLoad:()=>{t.value=!0},ref:E},null)),C(O,null,[C("canvas",y(y({},u),{},{style:[o,u.style],ref:l}),null),i])}}}),Ct=L({name:"QRCodeSVG",inheritAttrs:!1,props:N(N({},z()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(r){let s=null,u=null,f=null,h=null,l=null,E=null;return D(()=>{const{value:t,size:n=S,level:e=$,includeMargin:o=G,marginSize:i,imageSettings:c}=r;s=R.QrCode.encodeText(t,U[e]).getModules(),u=_(o,i),f=s.length+u*2,h=X(s,n,u,c),c!=null&&h!=null&&(h.excavation!=null&&(s=V(s,h.excavation)),E=C("image",{"xlink:href":c.src,height:h.h,width:h.w,x:h.x+u,y:h.y+u,preserveAspectRatio:"none"},null)),l=Y(s,u)}),()=>{const t=r.bgColor&&k,n=r.fgColor&&H;return C("svg",{height:r.size,width:r.size,viewBox:`0 0 ${f} ${f}`},[!!r.title&&C("title",null,[r.title]),C("path",{fill:t,d:`M0,0 h${f}v${f}H0z`,"shape-rendering":"crispEdges"},null),C("path",{fill:n,d:l,"shape-rendering":"crispEdges"},null),E])}}}),Rt=L({name:"AQrcode",inheritAttrs:!1,props:ft(),emits:["refresh"],setup(r,s){let{emit:u,attrs:f,expose:h}=s;nt(!(r.icon&&r.errorLevel==="L"),"QRCode","ErrorLevel `L` is not recommended to be used with `icon`, for scanning result would be affected by low level.");const[l]=ot("QRCode"),{prefixCls:E}=st("qrcode",r),[t,n]=dt(E),[,e]=it(),o=lt();h({toDataURL:(c,a)=>{var g;return(g=o.value)===null||g===void 0?void 0:g.toDataURL(c,a)}});const i=F(()=>{const{value:c,icon:a="",size:g=160,iconSize:d=40,color:p=e.value.colorText,bgColor:M="transparent",errorLevel:m="M"}=r,w={src:a,x:void 0,y:void 0,height:d,width:d,excavate:!0};return{value:c,size:g-(e.value.paddingSM+e.value.lineWidth)*2,level:m,bgColor:M,fgColor:p,imageSettings:a?w:void 0}});return()=>{const c=E.value;return t(C("div",y(y({},f),{},{style:[f.style,{width:`${r.size}px`,height:`${r.size}px`,backgroundColor:i.value.bgColor}],class:[n.value,c,{[`${c}-borderless`]:!r.bordered}]}),[r.status!=="active"&&C("div",{class:`${c}-mask`},[r.status==="loading"&&C(at,null,null),r.status==="expired"&&C(O,null,[C("p",{class:`${c}-expired`},[l.value.expired]),C(ut,{type:"link",onClick:a=>u("refresh",a)},{default:()=>[l.value.refresh],icon:()=>C(ct,null,null)})]),r.status==="scanned"&&C("p",{class:`${c}-scanned`},[l.value.scanned])]),r.type==="canvas"?C(Mt,y({ref:o},i.value),null):C(Ct,i.value,null)]))}}}),Dt=et(Rt);export{Dt as default};
@@ -1 +1 @@
1
- import{h as s}from"./index-ByDs4cW4.js";const n=(p,o)=>{const r=s({},p);return Object.keys(o).forEach(t=>{const e=r[t];if(e)e.type||e.default?e.default=o[t]:e.def?e.def(o[t]):r[t]={type:e,default:o[t]};else throw new Error(`not have ${t} prop`)}),r};export{n as i};
1
+ import{h as s}from"./index-TqLyy6IR.js";const n=(p,o)=>{const r=s({},p);return Object.keys(o).forEach(t=>{const e=r[t];if(e)e.type||e.default?e.default=o[t]:e.def?e.def(o[t]):r[t]={type:e,default:o[t]};else throw new Error(`not have ${t} prop`)}),r};export{n as i};
@@ -1,4 +1,4 @@
1
- import{b as D,e as k,d as F,q as _,o as H,w as I,n as O,f as R,c as z,s as f}from"./vendor-Bn1JzzAn.js";import{B as p,D as j,F as C,P as q,G as A,H as G,h as v}from"./index-ByDs4cW4.js";import{w as L}from"./raf-Deuc0E8-.js";let M=!1;try{const e=Object.defineProperty({},"passive",{get(){M=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function te(e,n,o,t){if(e&&e.addEventListener){let r=t;r===void 0&&M&&(n==="touchstart"||n==="touchmove"||n==="wheel")&&(r={passive:!1}),e.addEventListener(n,o,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(n,o)}}}let g;function W(e){if(typeof document>"u")return 0;if(g===void 0){const n=document.createElement("div");n.style.width="100%",n.style.height="200px";const o=document.createElement("div"),t=o.style;t.position="absolute",t.top="0",t.left="0",t.pointerEvents="none",t.visibility="hidden",t.width="200px",t.height="150px",t.overflow="hidden",o.appendChild(n),document.body.appendChild(o);const r=n.offsetWidth;o.style.overflow="scroll";let a=n.offsetWidth;r===a&&(a=o.clientWidth),document.body.removeChild(o),g=r-a}return g}function N(e){const n=e.match(/^(.*)px$/),o=Number(n?.[1]);return Number.isNaN(o)?W():o}function ne(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:n,height:o}=getComputedStyle(e,"::-webkit-scrollbar");return{width:N(n),height:N(o)}}const T=`vc-util-locker-${Date.now()}`;let x=0;function V(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function Q(e){const n=D(()=>!!e&&!!e.value);x+=1;const o=`${T}_${x}`;k(t=>{if(p()){if(n.value){const r=W(),a=V();j(`
1
+ import{b as D,e as k,d as F,q as _,o as H,w as I,n as O,f as R,c as z,s as f}from"./vendor-Bn1JzzAn.js";import{B as p,D as j,F as C,P as q,G as A,H as G,h as v}from"./index-TqLyy6IR.js";import{w as L}from"./raf-Deuc0E8-.js";let M=!1;try{const e=Object.defineProperty({},"passive",{get(){M=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function te(e,n,o,t){if(e&&e.addEventListener){let r=t;r===void 0&&M&&(n==="touchstart"||n==="touchmove"||n==="wheel")&&(r={passive:!1}),e.addEventListener(n,o,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(n,o)}}}let g;function W(e){if(typeof document>"u")return 0;if(g===void 0){const n=document.createElement("div");n.style.width="100%",n.style.height="200px";const o=document.createElement("div"),t=o.style;t.position="absolute",t.top="0",t.left="0",t.pointerEvents="none",t.visibility="hidden",t.width="200px",t.height="150px",t.overflow="hidden",o.appendChild(n),document.body.appendChild(o);const r=n.offsetWidth;o.style.overflow="scroll";let a=n.offsetWidth;r===a&&(a=o.clientWidth),document.body.removeChild(o),g=r-a}return g}function N(e){const n=e.match(/^(.*)px$/),o=Number(n?.[1]);return Number.isNaN(o)?W():o}function ne(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:n,height:o}=getComputedStyle(e,"::-webkit-scrollbar");return{width:N(n),height:N(o)}}const T=`vc-util-locker-${Date.now()}`;let x=0;function V(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function Q(e){const n=D(()=>!!e&&!!e.value);x+=1;const o=`${T}_${x}`;k(t=>{if(p()){if(n.value){const r=W(),a=V();j(`
2
2
  html body {
3
3
  overflow-y: hidden;
4
4
  ${a?`width: calc(100% - ${r}px);`:""}
@@ -1,4 +1,4 @@
1
- import{K as t}from"./index-ByDs4cW4.js";import{i as s}from"./motion-CF5pGsxz.js";const m=new t("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new t("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),c=new t("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y=new t("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),p=new t("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),O=new t("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),g=new t("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new t("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),l={"move-up":{inKeyframes:g,outKeyframes:v},"move-down":{inKeyframes:m,outKeyframes:f},"move-left":{inKeyframes:c,outKeyframes:y},"move-right":{inKeyframes:p,outKeyframes:O}},w=(n,a)=>{const{antCls:o}=n,r=`${o}-${a}`,{inKeyframes:i,outKeyframes:e}=l[a];return[s(r,i,e,n.motionDurationMid),{[`
1
+ import{K as t}from"./index-TqLyy6IR.js";import{i as s}from"./motion-3kvGzSgV.js";const m=new t("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new t("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),c=new t("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y=new t("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),p=new t("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),O=new t("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),g=new t("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new t("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),l={"move-up":{inKeyframes:g,outKeyframes:v},"move-down":{inKeyframes:m,outKeyframes:f},"move-left":{inKeyframes:c,outKeyframes:y},"move-right":{inKeyframes:p,outKeyframes:O}},w=(n,a)=>{const{antCls:o}=n,r=`${o}-${a}`,{inKeyframes:i,outKeyframes:e}=l[a];return[s(r,i,e,n.motionDurationMid),{[`
2
2
  ${r}-enter,
3
3
  ${r}-appear
4
4
  `]:{opacity:0,animationTimingFunction:n.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:n.motionEaseInOutCirc}}]};export{w as i};
@@ -1 +1 @@
1
- import{t as s}from"./index-ByDs4cW4.js";const i=Object.freeze({ok:!1,config:{enabled:!1,batch_interval_seconds:3600,namespace_prefix:"",issuer:""},staging:{count:0,malformed:0,oldest_queued_at:null},batches:{count:0,last_batch_id:null,last_closed_at:null,last_tree_size:null,last_tree_head_id:null}});function n(r,t=0){return typeof r=="number"&&Number.isFinite(r)?r:t}function a(r,t=""){return typeof r=="string"?r:t}function f(r){const t=JSON.parse(JSON.stringify(i)),e=r&&typeof r=="object"&&!Array.isArray(r)?r:s(r);return!e||typeof e!="object"||Array.isArray(e)||(t.ok=!0,e.config&&typeof e.config=="object"&&(t.config.enabled=e.config.enabled===!0,t.config.batch_interval_seconds=n(e.config.batch_interval_seconds,t.config.batch_interval_seconds),t.config.namespace_prefix=a(e.config.namespace_prefix),t.config.issuer=a(e.config.issuer)),e.staging&&typeof e.staging=="object"&&(t.staging.count=n(e.staging.count,0),t.staging.malformed=n(e.staging.malformed,0),t.staging.oldest_queued_at=e.staging.oldest_queued_at??null),e.batches&&typeof e.batches=="object"&&(t.batches.count=n(e.batches.count,0),t.batches.last_batch_id=e.batches.last_batch_id??null,t.batches.last_closed_at=e.batches.last_closed_at??null,t.batches.last_tree_size=e.batches.last_tree_size??null,t.batches.last_tree_head_id=e.batches.last_tree_head_id??null)),t}const o=Object.freeze({ok:!1,exists:!1,stateFile:"",lastSeq:0,lastFingerprint:null,lastPublishedAt:null,historyCount:0,history:[]});function l(r){if(!r||typeof r!="object")return null;const t=a(r.seq);return t?{key:t,seq:t,namespace:a(r.namespace),treeHeadId:a(r.tree_head_id),rootHash:a(r.root_hash),treeSize:n(r.tree_size,0),fingerprint:a(r.fingerprint),publishedAt:a(r.published_at),batchDir:a(r.batch_dir)}:null}function _(r){const t=JSON.parse(JSON.stringify(o)),e=s(r);return!e||typeof e!="object"||Array.isArray(e)||(t.ok=e.ok===!0,t.exists=e.exists===!0,t.stateFile=a(e.state_file),!t.exists)||(t.lastSeq=n(e.last_seq,0),t.lastFingerprint=e.last_fingerprint??null,t.lastPublishedAt=e.last_published_at??null,t.historyCount=n(e.history_count,0),Array.isArray(e.history)&&(t.history=e.history.map(l).filter(Boolean))),t}const u=Object.freeze({ok:!1,code:"",recoverable:!1,leaf:null,treeHead:null,raw:null});function d(r){const t=JSON.parse(JSON.stringify(u)),e=s(r);return!e||typeof e!="object"||Array.isArray(e)||(t.raw=e,t.ok=e.ok===!0,t.code=a(e.code,e.reason||""),t.recoverable=e.recoverable===!0,e.leaf&&typeof e.leaf=="object"&&(t.leaf=e.leaf),e.treeHead&&typeof e.treeHead=="object"&&(t.treeHead=e.treeHead)),t}function h(r){return typeof r!="number"||!Number.isFinite(r)||r<=0?"—":r<60?`${r}s`:r<3600?`${Math.round(r/60)}min`:`${Math.round(r/3600)}h`}function b(r){if(!r)return"—";const t=new Date(r);return isNaN(t.getTime())?r:t.toLocaleString("zh-CN",{hour12:!1})}function g(r){if(!r)return"—";const t=Date.parse(r);if(isNaN(t))return r;const e=Math.round((Date.now()-t)/1e3);return e<60?`${e}s 前`:e<3600?`${Math.round(e/60)}min 前`:e<86400?`${Math.round(e/3600)}h 前`:`${Math.round(e/86400)}d 前`}export{f as a,_ as b,b as c,h as d,g as f,d as p};
1
+ import{t as s}from"./index-TqLyy6IR.js";const i=Object.freeze({ok:!1,config:{enabled:!1,batch_interval_seconds:3600,namespace_prefix:"",issuer:""},staging:{count:0,malformed:0,oldest_queued_at:null},batches:{count:0,last_batch_id:null,last_closed_at:null,last_tree_size:null,last_tree_head_id:null}});function n(r,t=0){return typeof r=="number"&&Number.isFinite(r)?r:t}function a(r,t=""){return typeof r=="string"?r:t}function f(r){const t=JSON.parse(JSON.stringify(i)),e=r&&typeof r=="object"&&!Array.isArray(r)?r:s(r);return!e||typeof e!="object"||Array.isArray(e)||(t.ok=!0,e.config&&typeof e.config=="object"&&(t.config.enabled=e.config.enabled===!0,t.config.batch_interval_seconds=n(e.config.batch_interval_seconds,t.config.batch_interval_seconds),t.config.namespace_prefix=a(e.config.namespace_prefix),t.config.issuer=a(e.config.issuer)),e.staging&&typeof e.staging=="object"&&(t.staging.count=n(e.staging.count,0),t.staging.malformed=n(e.staging.malformed,0),t.staging.oldest_queued_at=e.staging.oldest_queued_at??null),e.batches&&typeof e.batches=="object"&&(t.batches.count=n(e.batches.count,0),t.batches.last_batch_id=e.batches.last_batch_id??null,t.batches.last_closed_at=e.batches.last_closed_at??null,t.batches.last_tree_size=e.batches.last_tree_size??null,t.batches.last_tree_head_id=e.batches.last_tree_head_id??null)),t}const o=Object.freeze({ok:!1,exists:!1,stateFile:"",lastSeq:0,lastFingerprint:null,lastPublishedAt:null,historyCount:0,history:[]});function l(r){if(!r||typeof r!="object")return null;const t=a(r.seq);return t?{key:t,seq:t,namespace:a(r.namespace),treeHeadId:a(r.tree_head_id),rootHash:a(r.root_hash),treeSize:n(r.tree_size,0),fingerprint:a(r.fingerprint),publishedAt:a(r.published_at),batchDir:a(r.batch_dir)}:null}function _(r){const t=JSON.parse(JSON.stringify(o)),e=s(r);return!e||typeof e!="object"||Array.isArray(e)||(t.ok=e.ok===!0,t.exists=e.exists===!0,t.stateFile=a(e.state_file),!t.exists)||(t.lastSeq=n(e.last_seq,0),t.lastFingerprint=e.last_fingerprint??null,t.lastPublishedAt=e.last_published_at??null,t.historyCount=n(e.history_count,0),Array.isArray(e.history)&&(t.history=e.history.map(l).filter(Boolean))),t}const u=Object.freeze({ok:!1,code:"",recoverable:!1,leaf:null,treeHead:null,raw:null});function d(r){const t=JSON.parse(JSON.stringify(u)),e=s(r);return!e||typeof e!="object"||Array.isArray(e)||(t.raw=e,t.ok=e.ok===!0,t.code=a(e.code,e.reason||""),t.recoverable=e.recoverable===!0,e.leaf&&typeof e.leaf=="object"&&(t.leaf=e.leaf),e.treeHead&&typeof e.treeHead=="object"&&(t.treeHead=e.treeHead)),t}function h(r){return typeof r!="number"||!Number.isFinite(r)||r<=0?"—":r<60?`${r}s`:r<3600?`${Math.round(r/60)}min`:`${Math.round(r/3600)}h`}function b(r){if(!r)return"—";const t=new Date(r);return isNaN(t.getTime())?r:t.toLocaleString("zh-CN",{hour12:!1})}function g(r){if(!r)return"—";const t=Date.parse(r);if(isNaN(t))return r;const e=Math.round((Date.now()-t)/1e3);return e<60?`${e}s 前`:e<3600?`${Math.round(e/60)}min 前`:e<86400?`${Math.round(e/3600)}h 前`:`${Math.round(e/86400)}d 前`}export{f as a,_ as b,b as c,h as d,g as f,d as p};
@@ -1 +1 @@
1
- import{h as s}from"./index-ByDs4cW4.js";function a(n,t){const e=s({},n);for(let o=0;o<t.length;o+=1){const r=t[o];delete e[r]}return e}export{a as o};
1
+ import{h as s}from"./index-TqLyy6IR.js";function a(n,t){const e=s({},n);for(let o=0;o<t.length;o+=1){const r=t[o];delete e[r]}return e}export{a as o};
@@ -1,4 +1,4 @@
1
- import{h as i}from"./index-ByDs4cW4.js";const l=`accept acceptcharset accesskey action allowfullscreen allowtransparency
1
+ import{h as i}from"./index-TqLyy6IR.js";const l=`accept acceptcharset accesskey action allowfullscreen allowtransparency
2
2
  alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
3
3
  charset checked classid classname colspan cols content contenteditable contextmenu
4
4
  controls coords crossorigin data datetime default defer dir disabled download draggable
@@ -1 +1 @@
1
- import{h as i}from"./index-ByDs4cW4.js";const L=(e,o,t,n,p)=>{const r=e/2,a=0,s=r,m=t*1/Math.sqrt(2),h=r-t*(1-1/Math.sqrt(2)),b=r-o*(1/Math.sqrt(2)),u=t*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),g=2*r-b,w=u,d=2*r-m,c=h,A=2*r-a,x=s,v=r*Math.sqrt(2)+t*(Math.sqrt(2)-2),$=t*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:p,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*r-$}px 100%, ${$}px 100%)`,`path('M ${a} ${s} A ${t} ${t} 0 0 0 ${m} ${h} L ${b} ${u} A ${o} ${o} 0 0 1 ${g} ${w} L ${d} ${c} A ${t} ${t} 0 0 0 ${A} ${x} Z')`]},content:'""'}}},f={adjustX:1,adjustY:1},l=[0,0],j={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:l}},M={adjustX:1,adjustY:1},O={adjustX:0,adjustY:0},T=[0,0];function k(e){return typeof e=="boolean"?e?M:O:i(i({},O),e)}function Y(e){const{arrowWidth:o=4,horizontalArrowShift:t=16,verticalArrowShift:n=8,autoAdjustOverflow:p,arrowPointAtCenter:r}=e,a={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(t+o),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(n+o)]},topRight:{points:["br","tc"],offset:[t+o,-4]},rightTop:{points:["tl","cr"],offset:[4,-(n+o)]},bottomRight:{points:["tr","bc"],offset:[t+o,4]},rightBottom:{points:["bl","cr"],offset:[4,n+o]},bottomLeft:{points:["tl","bc"],offset:[-(t+o),4]},leftBottom:{points:["br","cl"],offset:[-4,n+o]}};return Object.keys(a).forEach(s=>{a[s]=r?i(i({},a[s]),{overflow:k(p),targetOffset:T}):i(i({},j[s]),{overflow:k(p)}),a[s].ignoreShake=!0}),a}function _(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(t=>`${o}${t}`).join(",")}const X=8;function B(e){const o=X,{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:p,limitVerticalRadius:r}=e,a=t/2-Math.ceil(p*(Math.sqrt(2)-1)),s=(n>12?n+2:12)-a,m=r?o-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:m}}function q(e,o){const{componentCls:t,sizePopupArrow:n,marginXXS:p,borderRadiusXS:r,borderRadiusOuter:a,boxShadowPopoverArrow:s}=e,{colorBg:m,showArrowCls:h,contentRadius:b=e.borderRadiusLG,limitVerticalRadius:u}=o,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:w}=B({sizePopupArrow:n,contentRadius:b,borderRadiusOuter:a,limitVerticalRadius:u}),d=n/2+p;return{[t]:{[`${t}-arrow`]:[i(i({position:"absolute",zIndex:1,display:"block"},L(n,r,a,m,s)),{"&:before":{background:m}})],[[`&-placement-top ${t}-arrow`,`&-placement-topLeft ${t}-arrow`,`&-placement-topRight ${t}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${t}-arrow`]:{left:{_skip_check_:!0,value:w}},[`&-placement-topRight ${t}-arrow`]:{right:{_skip_check_:!0,value:w}},[[`&-placement-bottom ${t}-arrow`,`&-placement-bottomLeft ${t}-arrow`,`&-placement-bottomRight ${t}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${t}-arrow`]:{left:{_skip_check_:!0,value:w}},[`&-placement-bottomRight ${t}-arrow`]:{right:{_skip_check_:!0,value:w}},[[`&-placement-left ${t}-arrow`,`&-placement-leftTop ${t}-arrow`,`&-placement-leftBottom ${t}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${t}-arrow`]:{top:g},[`&-placement-leftBottom ${t}-arrow`]:{bottom:g},[[`&-placement-right ${t}-arrow`,`&-placement-rightTop ${t}-arrow`,`&-placement-rightBottom ${t}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${t}-arrow`]:{top:g},[`&-placement-rightBottom ${t}-arrow`]:{bottom:g},[_(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingBottom:d},[_(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingTop:d},[_(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingRight:{_skip_check_:!0,value:d}},[_(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingLeft:{_skip_check_:!0,value:d}}}}}export{X as M,Y as a,B as b,q as g,j as p,L as r};
1
+ import{h as i}from"./index-TqLyy6IR.js";const L=(e,o,t,n,p)=>{const r=e/2,a=0,s=r,m=t*1/Math.sqrt(2),h=r-t*(1-1/Math.sqrt(2)),b=r-o*(1/Math.sqrt(2)),u=t*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),g=2*r-b,w=u,d=2*r-m,c=h,A=2*r-a,x=s,v=r*Math.sqrt(2)+t*(Math.sqrt(2)-2),$=t*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:p,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*r-$}px 100%, ${$}px 100%)`,`path('M ${a} ${s} A ${t} ${t} 0 0 0 ${m} ${h} L ${b} ${u} A ${o} ${o} 0 0 1 ${g} ${w} L ${d} ${c} A ${t} ${t} 0 0 0 ${A} ${x} Z')`]},content:'""'}}},f={adjustX:1,adjustY:1},l=[0,0],j={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:l}},M={adjustX:1,adjustY:1},O={adjustX:0,adjustY:0},T=[0,0];function k(e){return typeof e=="boolean"?e?M:O:i(i({},O),e)}function Y(e){const{arrowWidth:o=4,horizontalArrowShift:t=16,verticalArrowShift:n=8,autoAdjustOverflow:p,arrowPointAtCenter:r}=e,a={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(t+o),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(n+o)]},topRight:{points:["br","tc"],offset:[t+o,-4]},rightTop:{points:["tl","cr"],offset:[4,-(n+o)]},bottomRight:{points:["tr","bc"],offset:[t+o,4]},rightBottom:{points:["bl","cr"],offset:[4,n+o]},bottomLeft:{points:["tl","bc"],offset:[-(t+o),4]},leftBottom:{points:["br","cl"],offset:[-4,n+o]}};return Object.keys(a).forEach(s=>{a[s]=r?i(i({},a[s]),{overflow:k(p),targetOffset:T}):i(i({},j[s]),{overflow:k(p)}),a[s].ignoreShake=!0}),a}function _(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(t=>`${o}${t}`).join(",")}const X=8;function B(e){const o=X,{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:p,limitVerticalRadius:r}=e,a=t/2-Math.ceil(p*(Math.sqrt(2)-1)),s=(n>12?n+2:12)-a,m=r?o-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:m}}function q(e,o){const{componentCls:t,sizePopupArrow:n,marginXXS:p,borderRadiusXS:r,borderRadiusOuter:a,boxShadowPopoverArrow:s}=e,{colorBg:m,showArrowCls:h,contentRadius:b=e.borderRadiusLG,limitVerticalRadius:u}=o,{dropdownArrowOffsetVertical:g,dropdownArrowOffset:w}=B({sizePopupArrow:n,contentRadius:b,borderRadiusOuter:a,limitVerticalRadius:u}),d=n/2+p;return{[t]:{[`${t}-arrow`]:[i(i({position:"absolute",zIndex:1,display:"block"},L(n,r,a,m,s)),{"&:before":{background:m}})],[[`&-placement-top ${t}-arrow`,`&-placement-topLeft ${t}-arrow`,`&-placement-topRight ${t}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${t}-arrow`]:{left:{_skip_check_:!0,value:w}},[`&-placement-topRight ${t}-arrow`]:{right:{_skip_check_:!0,value:w}},[[`&-placement-bottom ${t}-arrow`,`&-placement-bottomLeft ${t}-arrow`,`&-placement-bottomRight ${t}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${t}-arrow`]:{left:{_skip_check_:!0,value:w}},[`&-placement-bottomRight ${t}-arrow`]:{right:{_skip_check_:!0,value:w}},[[`&-placement-left ${t}-arrow`,`&-placement-leftTop ${t}-arrow`,`&-placement-leftBottom ${t}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${t}-arrow`]:{top:g},[`&-placement-leftBottom ${t}-arrow`]:{bottom:g},[[`&-placement-right ${t}-arrow`,`&-placement-rightTop ${t}-arrow`,`&-placement-rightBottom ${t}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${t}-arrow`]:{top:g},[`&-placement-rightBottom ${t}-arrow`]:{bottom:g},[_(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingBottom:d},[_(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingTop:d},[_(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingRight:{_skip_check_:!0,value:d}},[_(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(c=>c+=":not(&-arrow-hidden)"),h)]:{paddingLeft:{_skip_check_:!0,value:d}}}}}export{X as M,Y as a,B as b,q as g,j as p,L as r};
@@ -1 +1 @@
1
- import{J as o,h}from"./index-ByDs4cW4.js";import{b as x}from"./vendor-Bn1JzzAn.js";const v=["xxxl","xxl","xl","lg","md","sm","xs"],p=r=>({xs:`(max-width: ${r.screenXSMax}px)`,sm:`(min-width: ${r.screenSM}px)`,md:`(min-width: ${r.screenMD}px)`,lg:`(min-width: ${r.screenLG}px)`,xl:`(min-width: ${r.screenXL}px)`,xxl:`(min-width: ${r.screenXXL}px)`,xxxl:`{min-width: ${r.screenXXXL}px}`});function w(){const[,r]=o();return x(()=>{const n=p(r.value),i=new Map;let a=-1,c={};return{matchHandlers:{},dispatch(e){return c=e,i.forEach(t=>t(c)),i.size>=1},subscribe(e){return i.size||this.register(),a+=1,i.set(a,e),e(c),a},unsubscribe(e){i.delete(e),i.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{const t=n[e],s=this.matchHandlers[t];s?.mql.removeListener(s?.listener)}),i.clear()},register(){Object.keys(n).forEach(e=>{const t=n[e],s=l=>{let{matches:m}=l;this.dispatch(h(h({},c),{[e]:m}))},d=window.matchMedia(t);d.addListener(s),this.matchHandlers[t]={mql:d,listener:s},s(d)})},responsiveMap:n}})}export{v as r,w as u};
1
+ import{J as o,h}from"./index-TqLyy6IR.js";import{b as x}from"./vendor-Bn1JzzAn.js";const v=["xxxl","xxl","xl","lg","md","sm","xs"],p=r=>({xs:`(max-width: ${r.screenXSMax}px)`,sm:`(min-width: ${r.screenSM}px)`,md:`(min-width: ${r.screenMD}px)`,lg:`(min-width: ${r.screenLG}px)`,xl:`(min-width: ${r.screenXL}px)`,xxl:`(min-width: ${r.screenXXL}px)`,xxxl:`{min-width: ${r.screenXXXL}px}`});function w(){const[,r]=o();return x(()=>{const n=p(r.value),i=new Map;let a=-1,c={};return{matchHandlers:{},dispatch(e){return c=e,i.forEach(t=>t(c)),i.size>=1},subscribe(e){return i.size||this.register(),a+=1,i.set(a,e),e(c),a},unsubscribe(e){i.delete(e),i.size||this.unregister()},unregister(){Object.keys(n).forEach(e=>{const t=n[e],s=this.matchHandlers[t];s?.mql.removeListener(s?.listener)}),i.clear()},register(){Object.keys(n).forEach(e=>{const t=n[e],s=l=>{let{matches:m}=l;this.dispatch(h(h({},c),{[e]:m}))},d=window.matchMedia(t);d.addListener(s),this.matchHandlers[t]={mql:d,listener:s},s(d)})},responsiveMap:n}})}export{v as r,w as u};
@@ -1,4 +1,4 @@
1
- import{K as n}from"./index-ByDs4cW4.js";import{i as e}from"./motion-CF5pGsxz.js";const m=new n("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),f=new n("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),c=new n("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new n("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),y=new n("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),p=new n("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),O=new n("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new n("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),g={"slide-up":{inKeyframes:m,outKeyframes:f},"slide-down":{inKeyframes:c,outKeyframes:l},"slide-left":{inKeyframes:y,outKeyframes:p},"slide-right":{inKeyframes:O,outKeyframes:d}},K=(t,r)=>{const{antCls:a}=t,i=`${a}-${r}`,{inKeyframes:s,outKeyframes:o}=g[r];return[e(i,s,o,t.motionDurationMid),{[`
1
+ import{K as n}from"./index-TqLyy6IR.js";import{i as e}from"./motion-3kvGzSgV.js";const m=new n("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),f=new n("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),c=new n("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new n("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),y=new n("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),p=new n("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),O=new n("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new n("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),g={"slide-up":{inKeyframes:m,outKeyframes:f},"slide-down":{inKeyframes:c,outKeyframes:l},"slide-left":{inKeyframes:y,outKeyframes:p},"slide-right":{inKeyframes:O,outKeyframes:d}},K=(t,r)=>{const{antCls:a}=t,i=`${a}-${r}`,{inKeyframes:s,outKeyframes:o}=g[r];return[e(i,s,o,t.motionDurationMid),{[`
2
2
  ${i}-enter,
3
3
  ${i}-appear
4
4
  `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint},[`${i}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]};export{f as a,c as b,m as c,K as i,l as s};
@@ -1 +1 @@
1
- import{i as e}from"./index-ByDs4cW4.js";function r(a,s,t){return e({[`${a}-status-success`]:s==="success",[`${a}-status-warning`]:s==="warning",[`${a}-status-error`]:s==="error",[`${a}-status-validating`]:s==="validating",[`${a}-has-feedback`]:t})}const c=(a,s)=>s||a;export{c as a,r as g};
1
+ import{i as e}from"./index-TqLyy6IR.js";function r(a,s,t){return e({[`${a}-status-success`]:s==="success",[`${a}-status-warning`]:s==="warning",[`${a}-status-error`]:s==="error",[`${a}-status-validating`]:s==="validating",[`${a}-has-feedback`]:t})}const c=(a,s)=>s||a;export{c as a,r as g};
@@ -1 +1 @@
1
- import{B as d}from"./index-ByDs4cW4.js";const i=()=>d()&&window.document.documentElement,c=e=>{if(d()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1},u=(e,t)=>{if(!c(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function s(e,t){return!Array.isArray(e)&&t!==void 0?u(e,t):c(e)}let o;const p=()=>{if(!i())return!1;if(o!==void 0)return o;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),o=e.scrollHeight===1,document.body.removeChild(e),o};export{i as c,p as d,s as i};
1
+ import{B as d}from"./index-TqLyy6IR.js";const i=()=>d()&&window.document.documentElement,c=e=>{if(d()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1},u=(e,t)=>{if(!c(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function s(e,t){return!Array.isArray(e)&&t!==void 0?u(e,t):c(e)}let o;const p=()=>{if(!i())return!1;if(o!==void 0)return o;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),o=e.scrollHeight===1,document.body.removeChild(e),o};export{i as c,p as d,s as i};
@@ -1 +1 @@
1
- import{o,s as t}from"./vendor-Bn1JzzAn.js";import{d as s}from"./styleChecker-sy6_m42F.js";const r=(()=>{const e=t(!1);return o(()=>{e.value=s()}),e});export{r as u};
1
+ import{o,s as t}from"./vendor-Bn1JzzAn.js";import{d as s}from"./styleChecker-BIcEZk6Y.js";const r=(()=>{const e=t(!1);return o(()=>{e.value=s()}),e});export{r as u};