@uiw/doc 4.22.1 → 4.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/asset-manifest.json +5 -5
- package/web/index.html +1 -1
- package/web/static/js/286.8c6a6f4e.chunk.js +2 -0
- package/web/static/js/286.8c6a6f4e.chunk.js.map +1 -0
- package/web/static/js/{main.0674e97d.js → main.c365943d.js} +2 -2
- package/web/static/js/main.c365943d.js.map +1 -0
- package/web/static/js/286.b360fc56.chunk.js +0 -2
- package/web/static/js/286.b360fc56.chunk.js.map +0 -1
- package/web/static/js/main.0674e97d.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e={8869:(e,t,n)=>{n.d(t,{Z:()=>a});n(8573);var r=n(4760);const a={dark:(0,r.jsx)("svg",{viewBox:"0 0 20 20",width:"23",height:"23",version:"1.1",children:(0,r.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M5.70480219,0 L10.4096044,3.41834667 L8.61252986,8.94934776 L2.79707453,8.94934776 L1,3.41834667 L5.70480219,0 Z M5.70480219,20 L1,16.5816533 L2.79707453,11.0506522 L8.61252986,11.0506522 L10.4096044,16.5816533 L5.70480219,20 Z M18.8709653,12.9678909 L13.3400514,14.7649021 L9.92167142,10.0599974 L13.3399103,5.35519519 L18.8708781,7.15237223 L18.8709653,12.9678909 Z",fill:"#FFFFFF"})})}),light:(0,r.jsx)("svg",{viewBox:"0 0 20 20",version:"1.1",children:(0,r.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M5.70480219,0 L10.4096044,3.41834667 L8.61252986,8.94934776 L2.79707453,8.94934776 L1,3.41834667 L5.70480219,0 Z M5.70480219,20 L1,16.5816533 L2.79707453,11.0506522 L8.61252986,11.0506522 L10.4096044,16.5816533 L5.70480219,20 Z M18.8709653,12.9678909 L13.3400514,14.7649021 L9.92167142,10.0599974 L13.3399103,5.35519519 L18.8708781,7.15237223 L18.8709653,12.9678909 Z",fill:"#FFFFFF"})})})}},5578:(e,t,n)=>{var r=n(8573),a=n(8650),l=n(3279),i=n(623),s=n(948),o=(n(9059),n(4760));function c(){return(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{children:"It looks like you're lost..."}),(0,o.jsx)("p",{children:(0,o.jsx)(i.rU,{to:"/",children:"Go to the home page"})})]})}var d=n(7937);function u(){return(0,o.jsx)(d.Loader,{tip:"Loading...",indicator:(0,o.jsx)(d.Icon,{type:"loading",spin:!0,style:{verticalAlign:"text-top"}})})}var h=n(5752);const p={};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.useMemo)((()=>(0,o.jsx)(d.Select.Option,{value:e.version,children:e.version})),[e.version])}const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(e){const t=e.target.value,n="1"===t.split(".")[0];window.location.href=n?"https://unpkg.com/uiw@".concat(t,"/dist/index.html"):"https://unpkg.com/@uiw/doc@".concat(t,"/web/index.html")}const n=h.i8,a=e.data;return a[0]!==n&&a.unshift(n),(0,r.useMemo)((()=>(0,o.jsx)("div",{className:p.nav,children:(0,o.jsx)(d.Select,{defaultValue:a[0],onChange:t,children:a.map(((e,t)=>(0,o.jsx)(m,{version:e},t)))})})),[a])},v={sider:"index_sider__vrASx",menuWarpper:"index_menuWarpper__asOzy",subMenu:"index_subMenu__c4Mvo",layoutWrap:"index_layoutWrap__6CE3D",layoutSider:"index_layoutSider__1t-SG"},x=JSON.parse('["4.0.0","3.10.12","2.0.1","1.16.19"]'),g={title:"index_title__O5TzH",menu:"index_menu__9HE8I",divider:"index_divider__1cINS"};var y=n(6646);const j={home:(0,o.jsx)("svg",{width:"23",height:"24",viewBox:"0 0 23 24",children:(0,o.jsx)("path",{fill:"#555",d:"M7.95808665,21.4797568 L7.95808665,14.2926972 C7.95808665,13.872855 8.29729322,13.5325056 8.71572573,13.5325056 L14.7768383,13.5325056 C15.1952708,13.5325056 15.5344774,13.872855 15.5344774,14.2926972 L15.5344774,21.4800639 L18.3333605,21.4801773 C18.4412665,21.4760176 18.5251665,21.4671569 18.58271,21.4596448 C18.588514,21.3995182 18.5915777,21.3235793 18.5907536,21.2318213 L18.5909124,14.2893672 C18.590922,13.869525 18.9301364,13.5291834 19.3485689,13.5291931 C19.7670014,13.5292027 20.1062001,13.8695599 20.1061905,14.2894021 L20.1059996,21.2248359 C20.1119888,21.8771673 19.9896563,22.3494462 19.5993559,22.6516032 C19.3010239,22.8825616 18.9057568,22.9796164 18.3624477,23 L4.48346492,22.9997015 C3.86961191,22.9824374 3.38486601,22.8118189 3.07125061,22.4182996 C2.79329968,22.0695315 2.68322544,21.5965073 2.68425496,20.9934992 L2.68424909,14.2893853 C2.68424872,13.8695431 3.02345499,13.5291934 3.4418875,13.5291931 C3.86032001,13.5291927 4.19952687,13.8695418 4.19952724,14.289384 L4.199532,20.9947994 C4.19904359,21.2811808 4.23526541,21.4410529 4.2538782,21.4676906 C4.24030246,21.4480656 4.31738234,21.474056 4.50469304,21.4796169 L7.95808665,21.4797568 Z M9.4733648,21.4798183 L14.0191993,21.4800025 L14.0191993,15.0528888 L9.4733648,15.0528888 L9.4733648,21.4798183 Z M2.28332829,11.4133771 C1.98200714,11.7046849 1.50237937,11.6957445 1.21204968,11.3934082 C0.921719999,11.0910719 0.930630346,10.6098283 1.2319515,10.3185205 L10.4507678,1.41136668 C10.7833916,1.14885042 11.1310579,1 11.4999998,1 C11.9102569,1 12.2738276,1.19453217 12.5845816,1.51087139 L21.7658664,10.3164197 C22.0683439,10.6065186 22.0791684,11.0877227 21.7900436,11.3912192 C21.5009189,11.6947157 21.0213305,11.7055767 20.718853,11.4154779 L11.5218713,2.5944308 C11.4545418,2.52599021 11.4440624,2.52038312 11.4999998,2.52038312 C11.514622,2.52038312 11.4750696,2.53731716 11.4448602,2.55629655 L2.28332829,11.4133771 Z"})}),component:(0,o.jsxs)("svg",{viewBox:"0 0 1041 1024",width:"20",height:"20",children:[(0,o.jsx)("path",{d:"M133.498105 661.882904h31.175644v195.047619a34.373146 34.373146 0 0 0 34.373146 34.373146h109.514441a34.373146 34.373146 0 1 0 0-68.746292h-75.141295V627.509758a35.172521 35.172521 0 0 0-34.373146-35.172521h-65.54879a63.950039 63.950039 0 0 1 0-127.900079h65.54879a35.172521 35.172521 0 0 0 34.373146-35.172521V233.417642h195.846994a35.172521 35.172521 0 0 0 35.172522-34.373146v-65.54879a63.950039 63.950039 0 0 1 127.900078 0v65.54879a35.172521 35.172521 0 0 0 35.172521 34.373146h195.047619v74.341921a34.373146 34.373146 0 0 0 68.746292 0V199.044496a34.373146 34.373146 0 0 0-34.373146-34.373145H661.885302v-31.175645a133.495706 133.495706 0 0 0-266.991413 0v31.175645H199.046895a34.373146 34.373146 0 0 0-34.373146 34.373145v195.846995h-31.175644A132.696331 132.696331 0 0 0 0.002398 527.587822a133.495706 133.495706 0 0 0 133.495707 134.295082z",fill:"#6F737E"}),(0,o.jsx)("path",{d:"M1004.817386 840.943013a79.937549 79.937549 0 1 1 0-159.875097 34.373146 34.373146 0 0 0 34.373146-32.774395V533.982826a34.373146 34.373146 0 0 0-34.373146-34.373146H879.315435v-10.391881a103.119438 103.119438 0 1 0-206.238876 0v10.391881H549.972734a35.172521 35.172521 0 0 0-35.172522 34.373146v124.702576h-10.391881a103.119438 103.119438 0 1 0 0 206.238876h10.391881v124.702576a35.172521 35.172521 0 0 0 35.172522 34.373146H663.484053a34.373146 34.373146 0 0 0 34.373146-34.373146 79.937549 79.937549 0 0 1 159.875098 0 34.373146 34.373146 0 0 0 34.373146 34.373146h114.310694a34.373146 34.373146 0 0 0 34.373146-34.373146V879.313037a34.373146 34.373146 0 0 0-35.971897-38.370024z",fill:"#6F737E"})]}),github:(0,o.jsxs)("svg",{viewBox:"0 0 1049 1024",width:"20",height:"20",children:[(0,o.jsx)("path",{d:"M524.979332 0C234.676191 0 0 234.676191 0 524.979332c0 232.068678 150.366597 428.501342 358.967656 498.035028 26.075132 5.215026 35.636014-11.299224 35.636014-25.205961 0-12.168395-0.869171-53.888607-0.869171-97.347161-146.020741 31.290159-176.441729-62.580318-176.441729-62.580318-23.467619-60.841976-58.234462-76.487055-58.234463-76.487055-47.804409-32.15933 3.476684-32.15933 3.476685-32.15933 53.019436 3.476684 80.83291 53.888607 80.83291 53.888607 46.935238 79.963739 122.553122 57.365291 152.97411 43.458554 4.345855-33.897672 18.252593-57.365291 33.028501-70.402857-116.468925-12.168395-239.022047-57.365291-239.022047-259.012982 0-57.365291 20.860106-104.300529 53.888607-140.805715-5.215026-13.037566-23.467619-66.926173 5.215027-139.067372 0 0 44.327725-13.906737 144.282399 53.888607 41.720212-11.299224 86.917108-17.383422 131.244833-17.383422s89.524621 6.084198 131.244833 17.383422C756.178839 203.386032 800.506564 217.29277 800.506564 217.29277c28.682646 72.1412 10.430053 126.029806 5.215026 139.067372 33.897672 36.505185 53.888607 83.440424 53.888607 140.805715 0 201.64769-122.553122 245.975415-239.891218 259.012982 19.121764 16.514251 35.636014 47.804409 35.636015 97.347161 0 70.402857-0.869171 126.898978-0.869172 144.282399 0 13.906737 9.560882 30.420988 35.636015 25.205961 208.601059-69.533686 358.967656-265.96635 358.967655-498.035028C1049.958663 234.676191 814.413301 0 524.979332 0z",fill:"#191717"}),(0,o.jsx)("path",{d:"M199.040177 753.571326c-0.869171 2.607513-5.215026 3.476684-8.691711 1.738342s-6.084198-5.215026-4.345855-7.82254c0.869171-2.607513 5.215026-3.476684 8.691711-1.738342s5.215026 5.215026 4.345855 7.82254z m-6.953369-4.345856M219.900283 777.038945c-2.607513 2.607513-7.82254 0.869171-10.430053-2.607514-3.476684-3.476684-4.345855-8.691711-1.738342-11.299224 2.607513-2.607513 6.953369-0.869171 10.430053 2.607514 3.476684 4.345855 4.345855 9.560882 1.738342 11.299224z m-5.215026-5.215027M240.760389 807.459932c-3.476684 2.607513-8.691711 0-11.299224-4.345855-3.476684-4.345855-3.476684-10.430053 0-12.168395 3.476684-2.607513 8.691711 0 11.299224 4.345855 3.476684 4.345855 3.476684 9.560882 0 12.168395z m0 0M269.443034 837.011749c-2.607513 3.476684-8.691711 2.607513-13.906737-1.738342-4.345855-4.345855-6.084198-10.430053-2.607513-13.037566 2.607513-3.476684 8.691711-2.607513 13.906737 1.738342 4.345855 3.476684 5.215026 9.560882 2.607513 13.037566z m0 0M308.555733 853.526c-0.869171 4.345855-6.953369 6.084198-13.037566 4.345855-6.084198-1.738342-9.560882-6.953369-8.691711-10.430053 0.869171-4.345855 6.953369-6.084198 13.037566-4.345855 6.084198 1.738342 9.560882 6.084198 8.691711 10.430053z m0 0M351.145116 857.002684c0 4.345855-5.215026 7.82254-11.299224 7.82254-6.084198 0-11.299224-3.476684-11.299224-7.82254s5.215026-7.82254 11.299224-7.82254c6.084198 0 11.299224 3.476684 11.299224 7.82254z m0 0M391.126986 850.049315c0.869171 4.345855-3.476684 8.691711-9.560882 9.560882-6.084198 0.869171-11.299224-1.738342-12.168395-6.084197-0.869171-4.345855 3.476684-8.691711 9.560881-9.560882 6.084198-0.869171 11.299224 1.738342 12.168396 6.084197z m0 0",fill:"#191717"})]}),issue:(0,o.jsxs)("svg",{className:"issue",viewBox:"0 0 1024 1024",width:"23",height:"23",children:[(0,o.jsx)("path",{d:"M1022.976 698.368c0-58.88-24.064-113.664-64.512-155.648-44.544 175.616-223.744 307.2-438.784 310.784 51.712 55.296 131.072 90.624 219.648 90.624 21.504 0 41.984-2.048 61.952-6.144 54.784 75.776 121.856 72.192 121.856 72.192-24.064-14.848-27.136-69.632-26.112-108.032 76.288-44.032 125.952-119.296 125.952-203.776z m0 0",fill:"#558EFF"}),(0,o.jsx)("path",{d:"M458.24 13.824C205.312 13.824 0 191.488 0 410.624c0 137.216 80.384 258.048 202.24 329.216 1.536 61.44-3.584 150.016-41.984 174.592 0 0 108.544 5.632 197.12-116.736 32.256 6.144 66.048 9.728 100.352 9.728H465.92c215.04-3.584 394.24-135.168 438.784-310.784 7.168-27.648 10.752-56.32 10.752-86.016 0.512-219.136-204.288-396.8-457.216-396.8zM256 462.848c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m202.24 0c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m202.24 0c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m0 0",fill:"#549EFF"})]}),gitee:(0,o.jsx)("svg",{className:"gitee",viewBox:"0 0 1024 1024",width:"200",height:"200",children:(0,o.jsx)("path",{d:"M512 1024C229.222 1024 0 794.778 0 512S229.222 0 512 0s512 229.222 512 512-229.222 512-512 512z m259.149-568.883h-290.74a25.293 25.293 0 0 0-25.292 25.293l-0.026 63.206c0 13.952 11.315 25.293 25.267 25.293h177.024c13.978 0 25.293 11.315 25.293 25.267v12.646a75.853 75.853 0 0 1-75.853 75.853h-240.23a25.293 25.293 0 0 1-25.267-25.293V417.203a75.853 75.853 0 0 1 75.827-75.853h353.946a25.293 25.293 0 0 0 25.267-25.292l0.077-63.207a25.293 25.293 0 0 0-25.268-25.293H417.152a189.62 189.62 0 0 0-189.62 189.645V771.15c0 13.977 11.316 25.293 25.294 25.293h372.94a170.65 170.65 0 0 0 170.65-170.65V480.384a25.293 25.293 0 0 0-25.293-25.267z",fill:"#C71D23"})}),plugin:(0,o.jsxs)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",children:[(0,o.jsx)("path",{d:"M937.6 251.3L538 69.7c-11.5-5.1-24.6-5.1-36.1 0L102.4 251.3c-22.4 9.9-32.5 32.2-22.6 54.6 4.5 10.1 12.5 15.1 22.6 19.6L502 506.1c11.5 5.1 24.6 5.1 36.1 0l399.6-180.6c22.4-9.9 32.5-33.2 22.6-55.6-4.6-10.1-12.6-14.1-22.7-18.6zM497.6 723.4l-398.7-165c-18.4-7.6-27.1-28.7-19.5-47 7.6-18.4 28.7-27.1 47-19.5l398.7 165c18.4 7.6 27.1 28.7 19.5 47-7.6 18.3-28.6 27.1-47 19.5z"}),(0,o.jsx)("path",{d:"M526.4 723.4l398.7-165c18.4-7.6 27.1-28.7 19.5-47-7.6-18.4-28.7-27.1-47-19.5l-398.7 165c-18.4 7.6-27.1 28.7-19.5 47 7.6 18.3 28.6 27.1 47 19.5z"}),(0,o.jsx)("path",{d:"M497.6 955.4l-398.7-165c-18.4-7.6-27.1-28.7-19.5-47 7.6-18.4 28.7-27.1 47-19.5l398.7 165c18.4 7.6 27.1 28.7 19.5 47-7.6 18.3-28.6 27.1-47 19.5z"}),(0,o.jsx)("path",{d:"M526.4 955.4l398.7-165c18.4-7.6 27.1-28.7 19.5-47-7.6-18.4-28.7-27.1-47-19.5l-398.7 165c-18.4 7.6-27.1 28.7-19.5 47 7.6 18.3 28.6 27.1 47 19.5z"})]})};function b(){const e=(0,l.TH)(),t=y.find((t=>new RegExp("^".concat(t.path||"")).test(e.pathname)));return null!==t&&void 0!==t&&t.children?(0,o.jsxs)("div",{className:g.wapper,children:[(0,o.jsxs)("h2",{className:g.title,children:[j[t.icon],(0,o.jsx)("span",{children:t.name})]}),(0,o.jsx)("div",{className:g.menu,children:t.children&&t.children.map(((e,t)=>e.divider?(0,o.jsx)("div",{className:g.divider,children:e.name},t):/^http(?:|s):\/\//.test(e.path||"")?(0,o.jsxs)("a",{href:e.path,target:"__blank",children:[e.name,(0,o.jsxs)("svg",{viewBox:"0 0 1024 1024",width:14,children:[(0,o.jsx)("path",{d:"M821.1456 276.8384c-235.9296 25.1392-449.1776 226.7136-490.5472 452.352a38.4 38.4 0 1 1-75.5712-13.824c45.568-248.576 269.312-468.48 526.6944-510.6688l-117.8112-69.1712a38.4 38.4 0 0 1 38.912-66.2528l223.3344 131.1744a38.4 38.4 0 0 1 10.1376 57.6l-170.752 206.6432a38.4 38.4 0 1 1-59.1872-48.9472l114.7904-138.9056z"}),(0,o.jsx)("path",{d:"M832 620.0832a38.4 38.4 0 0 1 76.8 0v158.208c0 85.9648-61.5936 157.8496-140.8 157.8496H204.8c-79.2064 0-140.8-71.8848-140.8-157.9008V300.3904c0-86.016 61.5936-157.8496 140.8-157.8496h220.2112a38.4 38.4 0 1 1 0 76.8H204.8c-33.8944 0-64 35.072-64 81.0496V778.24c0 45.9776 30.1056 81.1008 64 81.1008h563.2c33.8944 0 64-35.1232 64-81.1008v-158.1568z"})]})]},t):(0,o.jsx)(i.OL,{to:e.path||"",replace:!0,children:e.name},t)))})]}):null}const w={logo:"index_logo__kUQOi",top:"index_top__DLxV-",nav:"index_nav__SdXbb",navTop:"index_navTop__08yh1",btn:"index_btn__YYGUe",btnTop:"index_btnTop__PlNw6"},C={layout:"top"},N=(e,t)=>({...e,...t}),k=r.createContext({state:C,dispatch:()=>null});var S=n(8869);const Z={menu:(0,o.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 26 26",children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("rect",{width:"26",height:"26",fill:"#9E9E9E",rx:"4"}),(0,o.jsx)("rect",{width:"5",height:"20",x:"3",y:"3",fill:"#202224",rx:"2.5"}),(0,o.jsx)("rect",{width:"12",height:"20",x:"11",y:"3",fill:"#FFF",fillOpacity:".657",rx:"2"})]})}),menutop:(0,o.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 26 26",children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("rect",{width:"26",height:"26",fill:"#9E9E9E",rx:"4"}),(0,o.jsx)("rect",{width:"20",height:"5",x:"3",y:"3",fill:"#202224",rx:"2.5"}),(0,o.jsx)("rect",{width:"20",height:"12",x:"3",y:"11",fill:"#FFF",fillOpacity:".66",rx:"2"})]})}),china:(0,o.jsxs)("svg",{className:"flag",width:"19",height:"19",viewBox:"0 0 512 512",children:[(0,o.jsx)("defs",{children:(0,o.jsx)("path",{id:"a",fill:"#ffde00",d:"M1-.3L-.7.8 0-1 .6.8-1-.3z"})}),(0,o.jsx)("path",{fill:"#de2910",d:"M0 0h512v512H0z"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"matrix(76.8 0 0 76.8 128 128)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-121 142.6 -47) scale(25.5827)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-98.1 198 -82) scale(25.6)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-74 272.4 -114) scale(25.6137)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"matrix(16 -19.968 19.968 16 256 230.4)",xlinkHref:"#a"})]})};function E(){const{state:e,dispatch:t}=(0,r.useContext)(k);return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("div",{className:[w.logo,"left"===e.layout?null:w.top].filter(Boolean).join(" ").trim(),children:(0,o.jsxs)(i.rU,{to:"/",children:[S.Z.dark,"top"===e.layout&&(0,o.jsxs)("span",{children:["UIW",(0,o.jsx)("sup",{children:h.i8})]})]})}),(0,o.jsx)("div",{className:[w.nav,"left"===e.layout?null:w.navTop].filter(Boolean).join(" ").trim(),children:y.map(((t,n)=>{let{path:r,name:a,icon:l}=t;if(Object.keys(j).includes(l)&&(l=j[l]),/^https?:(?:\/\/)?/.test(r))return"top"===e.layout?(0,o.jsxs)("a",{target:"__blank",href:r,className:w.outerUrl,children:[l," ",(0,o.jsx)("span",{children:a})]},n):(0,o.jsx)(d.Tooltip,{usePortal:!1,placement:"left"===e.layout?"right":"bottom",content:(0,o.jsx)("span",{style:{whiteSpace:"nowrap"},children:a}),children:(0,o.jsx)("a",{target:"__blank",href:r,className:w.outerUrl,children:l})},n);let s={color:"#fff"};return"top"===e.layout?(0,o.jsxs)(i.OL,{to:r,style:e=>{let{isActive:t}=e;return t?s:void 0},children:[l," ",(0,o.jsx)("span",{children:a})]},n):(0,o.jsx)(d.Tooltip,{usePortal:!1,placement:"left"===e.layout?"right":"bottom",content:(0,o.jsx)("span",{style:{whiteSpace:"nowrap"},children:a}),children:(0,o.jsx)(i.OL,{to:r,style:e=>{let{isActive:t}=e;return t?s:void 0},children:l})},n)}))}),(0,o.jsxs)("div",{className:[w.btn,"left"===e.layout?null:w.btnTop].filter(Boolean).join(" ").trim(),children:[(0,o.jsx)(d.Tooltip,{placement:"left"===e.layout?"right":"bottom",content:"\u56fd\u5185\u955c\u50cf\u7ad9\u70b9",children:(0,o.jsx)("a",{href:"http://uiw.gitee.io",rel:"noopener noreferrer",target:"_blank",children:Z.china})}),(0,o.jsx)("button",{onClick:()=>t({layout:"left"===e.layout?"top":"left"}),children:"left"===e.layout?Z.menu:Z.menutop})]})]})}const{Header:P,Sider:M,Content:B}=d.Layout;function z(e){const{siderMenu:t=!0}=e,{state:n}=(0,r.useContext)(k);return(0,o.jsx)(d.Layout,{className:v.layout,children:"top"===n.layout?(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d.Affix,{offsetTop:0,style:{zIndex:999,width:"100%"},children:(0,o.jsx)(P,{style:{display:"flex",alignItems:"center"},children:(0,o.jsx)(E,{})})}),(0,o.jsxs)(d.Layout,{className:v.layoutWrap,children:[(0,o.jsx)(M,{width:t?260:0,className:v.layoutSider,children:(0,o.jsx)("div",{style:{width:t?260:0,height:"calc(100vh - 53px)"},children:(0,o.jsx)(b,{})})}),(0,o.jsxs)(B,{style:{padding:20},className:v.layoutContent,children:[(0,o.jsx)(P,{style:{height:"inherit",lineHeight:"32px",position:"absolute",padding:"5px 10px",right:10,marginTop:-10,display:"flex",flexDirection:"row",justifyContent:"flex-end",backgroundColor:"transparent",zIndex:99},children:(0,o.jsx)(f,{data:x})}),(0,o.jsx)(l.j3,{})]})]})]}):(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(M,{width:t?330:64,children:(0,o.jsxs)(d.Layout,{className:v.sider,children:[(0,o.jsx)(M,{className:v.menuWarpper,width:64,children:(0,o.jsx)(E,{})}),(0,o.jsx)(d.Layout,{style:{position:"fixed",width:t?330:64,zIndex:1,left:0,top:0,bottom:0,overflow:"auto"},children:(0,o.jsx)(B,{className:v.subMenu,style:{paddingLeft:64},children:(0,o.jsx)(b,{})})})]})}),(0,o.jsxs)(d.Layout,{style:{position:"relative"},children:[(0,o.jsx)(P,{style:{height:"inherit",lineHeight:"32px",position:"absolute",padding:"5px 10px",width:"100%",display:"flex",flexDirection:"row",justifyContent:"flex-end",backgroundColor:"transparent",zIndex:99},children:(0,o.jsx)(f,{data:x})}),(0,o.jsx)(B,{style:{padding:20},"data-ddd":"xxx",className:v.layoutContent,children:(0,o.jsx)(l.j3,{})})]})]})})}const L=e=>t=>(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(u,{}),children:(0,o.jsx)(e,{...t})}),O=L((0,r.lazy)((()=>n.e(3174).then(n.bind(n,3174))))),D=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6449)]).then(n.bind(n,9860))))),R=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7465)]).then(n.bind(n,8818))))),A=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5877)]).then(n.bind(n,7498))))),T=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4876)]).then(n.bind(n,9558))))),I=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3152)]).then(n.bind(n,707))))),F=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(993)]).then(n.bind(n,762))))),H=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4154)]).then(n.bind(n,6552))))),W=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7779)]).then(n.bind(n,5581))))),_=L((0,r.lazy)((()=>n.e(7025).then(n.bind(n,7025))))),V=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3588)]).then(n.bind(n,3044))))),K=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9406)]).then(n.bind(n,3634))))),Y=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7729)]).then(n.bind(n,9816))))),$=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2923)]).then(n.bind(n,816))))),U=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7427)]).then(n.bind(n,5449))))),J=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3533)]).then(n.bind(n,2180))))),G=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(188)]).then(n.bind(n,9659))))),q=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(295)]).then(n.bind(n,4454))))),X=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9932)]).then(n.bind(n,1981))))),Q=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(677)]).then(n.bind(n,7969))))),ee=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(286)]).then(n.bind(n,2345))))),te=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(8386)]).then(n.bind(n,3282))))),ne=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(1599)]).then(n.bind(n,7852))))),re=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6968)]).then(n.bind(n,9254))))),ae=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(8818)]).then(n.bind(n,3304))))),le=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7329)]).then(n.bind(n,416))))),ie=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6084)]).then(n.bind(n,7942))))),se=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6074)]).then(n.bind(n,8518))))),oe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9846)]).then(n.bind(n,8372))))),ce=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2668)]).then(n.bind(n,8177))))),de=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3028)]).then(n.bind(n,6053))))),ue=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6521)]).then(n.bind(n,6157))))),he=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(1350)]).then(n.bind(n,1249))))),pe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5922)]).then(n.bind(n,4513))))),me=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3451)]).then(n.bind(n,6529))))),fe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6610)]).then(n.bind(n,5921))))),ve=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2474)]).then(n.bind(n,2762))))),xe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(269)]).then(n.bind(n,3805))))),ge=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(8586)]).then(n.bind(n,5462))))),ye=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2027)]).then(n.bind(n,8759))))),je=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1908),n.e(1106),n.e(9677),n.e(8577)]).then(n.bind(n,8080))))),be=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(1992)]).then(n.bind(n,4346))))),we=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4907)]).then(n.bind(n,1712))))),Ce=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(517)]).then(n.bind(n,7737))))),Ne=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2452)]).then(n.bind(n,6421))))),ke=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6965)]).then(n.bind(n,1887))))),Se=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5740)]).then(n.bind(n,1067))))),Ze=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(968)]).then(n.bind(n,1962))))),Ee=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9899)]).then(n.bind(n,6134))))),Pe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4687)]).then(n.bind(n,5046))))),Me=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2976)]).then(n.bind(n,3411))))),Be=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(250)]).then(n.bind(n,8872))))),ze=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(383)]).then(n.bind(n,3962))))),Le=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6819)]).then(n.bind(n,3798))))),Oe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5704)]).then(n.bind(n,4463))))),De=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6434)]).then(n.bind(n,145))))),Re=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(706)]).then(n.bind(n,9754))))),Ae=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2678)]).then(n.bind(n,2437))))),Te=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3492)]).then(n.bind(n,5778))))),Ie=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3966)]).then(n.bind(n,2133))))),Fe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7604)]).then(n.bind(n,350))))),He=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4833)]).then(n.bind(n,1065))))),We=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6037)]).then(n.bind(n,5066))))),_e=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6349)]).then(n.bind(n,9543))))),Ve=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3262)]).then(n.bind(n,2530))))),Ke=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5817)]).then(n.bind(n,2110))))),Ye=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(494)]).then(n.bind(n,6927))))),$e=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5490)]).then(n.bind(n,5626))))),Ue=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9721)]).then(n.bind(n,4426))))),Je=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2993)]).then(n.bind(n,5482))))),Ge=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3864)]).then(n.bind(n,2129))))),qe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(632)]).then(n.bind(n,6982))))),Xe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3026)]).then(n.bind(n,3297))))),Qe=[{path:"/extensions",element:(0,o.jsx)(z,{siderMenu:!1}),children:[{index:!0,element:(0,o.jsx)(D,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/guide",element:(0,o.jsx)(z,{}),children:[{index:!0,element:(0,o.jsx)(R,{})},{path:"/guide/quick-start",element:(0,o.jsx)(R,{})},{path:"/guide/import",element:(0,o.jsx)(A,{})},{path:"/guide/create-react-app",element:(0,o.jsx)(T,{})},{path:"/guide/kkt",element:(0,o.jsx)(I,{})},{path:"/guide/vscode",element:(0,o.jsx)(H,{})},{path:"/guide/docs",element:(0,o.jsx)(F,{})},{path:"/guide/recommendation",element:(0,o.jsx)(W,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/components",element:(0,o.jsx)(z,{}),children:[{index:!0,element:(0,o.jsx)(_,{})},{path:"/components/overview",element:(0,o.jsx)(_,{})},{path:"/components/colors",element:(0,o.jsx)(V,{})},{path:"/components/reset-css",element:(0,o.jsx)($,{})},{path:"/components/alert",element:(0,o.jsx)(K,{})},{path:"/components/auto-link",element:(0,o.jsx)(Y,{})},{path:"/components/avatar",element:(0,o.jsx)(U,{})},{path:"/components/affix",element:(0,o.jsx)(J,{})},{path:"/components/calendar",element:(0,o.jsx)(G,{})},{path:"/components/checkbox",element:(0,o.jsx)(X,{})},{path:"/components/copy-to-clipboard",element:(0,o.jsx)(Q,{})},{path:"/components/collapse",element:(0,o.jsx)(ee,{})},{path:"/components/card",element:(0,o.jsx)(te,{})},{path:"/components/carousel",element:(0,o.jsx)(ne,{})},{path:"/components/cascader",element:(0,o.jsx)(q,{})},{path:"/components/descriptions",element:(0,o.jsx)(re,{})},{path:"/components/loader",element:(0,o.jsx)(ae,{})},{path:"/components/icon",element:(0,o.jsx)(le,{})},{path:"/components/divider",element:(0,o.jsx)(ie,{})},{path:"/components/drawer",element:(0,o.jsx)(se,{})},{path:"/components/date-picker",element:(0,o.jsx)(oe,{})},{path:"/components/date-input",element:(0,o.jsx)(ce,{})},{path:"/components/dropdown",element:(0,o.jsx)(de,{})},{path:"/components/badge",element:(0,o.jsx)(ue,{})},{path:"/components/progress",element:(0,o.jsx)(he,{})},{path:"/components/pagination",element:(0,o.jsx)(pe,{})},{path:"/components/pin-code",element:(0,o.jsx)(me,{})},{path:"/components/input",element:(0,o.jsx)(fe,{})},{path:"/components/button",element:(0,o.jsx)(ve,{})},{path:"/components/radio",element:(0,o.jsx)(xe,{})},{path:"/components/select",element:(0,o.jsx)(ge,{})},{path:"/components/search-select",element:(0,o.jsx)(ye,{})},{path:"/components/split",element:(0,o.jsx)(je,{})},{path:"/components/switch",element:(0,o.jsx)(be,{})},{path:"/components/slider",element:(0,o.jsx)(we,{})},{path:"/components/grid",element:(0,o.jsx)(Ce,{})},{path:"/components/form",element:(0,o.jsx)(Ne,{})},{path:"/components/file-input",element:(0,o.jsx)(ke,{})},{path:"/components/breadcrumb",element:(0,o.jsx)(Se,{})},{path:"/components/list",element:(0,o.jsx)(Ze,{})},{path:"/components/layout",element:(0,o.jsx)(Ee,{})},{path:"/components/notify",element:(0,o.jsx)(Pe,{})},{path:"/components/tree",element:(0,o.jsx)(Me,{})},{path:"/components/tree-checked",element:(0,o.jsx)(Be,{})},{path:"/components/search-tree",element:(0,o.jsx)(ze,{})},{path:"/components/transfer",element:(0,o.jsx)(Le,{})},{path:"/components/tag",element:(0,o.jsx)(Oe,{})},{path:"/components/tabs",element:(0,o.jsx)(De,{})},{path:"/components/tooltip",element:(0,o.jsx)(Re,{})},{path:"/components/table",element:(0,o.jsx)(Ae,{})},{path:"/components/time-picker",element:(0,o.jsx)(Te,{})},{path:"/components/rate",element:(0,o.jsx)(Ie,{})},{path:"/components/overlay",element:(0,o.jsx)(Fe,{})},{path:"/components/back-top",element:(0,o.jsx)(He,{})},{path:"/components/portal",element:(0,o.jsx)(We,{})},{path:"/components/overlay-trigger",element:(0,o.jsx)(_e,{})},{path:"/components/popover",element:(0,o.jsx)(Ve,{})},{path:"/components/message",element:(0,o.jsx)(Ke,{})},{path:"/components/month-picker",element:(0,o.jsx)(Ye,{})},{path:"/components/textarea",element:(0,o.jsx)($e,{})},{path:"/components/modal",element:(0,o.jsx)(Ue,{})},{path:"/components/formatter",element:(0,o.jsx)(Je,{})},{path:"/components/steps",element:(0,o.jsx)(Ge,{})},{path:"/components/menu",element:(0,o.jsx)(qe,{})},{path:"/components/empty",element:(0,o.jsx)(Xe,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/",element:(0,o.jsx)(O,{})}],et=()=>(0,l.V$)(Qe),tt=e=>{let{children:t}=e;const[n,a]=(0,r.useReducer)(N,C);return(0,o.jsx)(k.Provider,{value:{state:n,dispatch:a},children:t})},nt=document.getElementById("root");(0,a.s)(nt).render((0,o.jsxs)(i.UT,{children:[(0,o.jsx)(s.Z,{style:{zIndex:9999},children:"Top"}),(0,o.jsx)(tt,{children:(0,o.jsx)(et,{})})]}))},7937:(e,t,n)=>{n.r(t),n.d(t,{Affix:()=>h,Alert:()=>M,AutoLink:()=>L,Avatar:()=>D,BackTop:()=>T,Badge:()=>F,Breadcrumb:()=>K,Button:()=>N,ButtonGroup:()=>$,Calendar:()=>_e,Card:()=>Ke,Carousel:()=>$e,Cascader:()=>ut,Checkbox:()=>kt,CheckboxGroup:()=>bt,Circle:()=>er,Col:()=>dn,Collapse:()=>zt,CopyToClipboard:()=>Rt,DateInput:()=>Ft,DateInputRange:()=>Tt,DatePicker:()=>Te,DatePickerCaption:()=>De,DatePickerDay:()=>Ee,DatePickerMonth:()=>Me,DatePickerYear:()=>ze,DayRect:()=>ke,Descriptions:()=>Ut,Divider:()=>Gt,Drawer:()=>Xt,Dropdown:()=>Je,Empty:()=>en,FileInput:()=>on,Form:()=>gn,FormItem:()=>mn,Icon:()=>w,Input:()=>fe,InputNumber:()=>pe,Layout:()=>kn.default,LayoutContent:()=>kn.LayoutContent,LayoutContext:()=>kn.LayoutContext,LayoutFooter:()=>kn.LayoutFooter,LayoutHeader:()=>kn.LayoutHeader,LayoutSider:()=>kn.LayoutSider,Line:()=>nr,List:()=>Nn,ListItem:()=>jn,Loader:()=>Zn,Menu:()=>dt,MenuDivider:()=>tt,MenuItem:()=>Qe,Message:()=>Pn,Modal:()=>E,MonthPicker:()=>zn,Notify:()=>Fn,Overlay:()=>y,OverlayTrigger:()=>ce,Pagination:()=>Un,PinCode:()=>qn,Popover:()=>ue,Portal:()=>x,Progress:()=>rr,Radio:()=>mt,RadioAbstract:()=>pt,RadioButton:()=>yt,RadioGroup:()=>vt,Rate:()=>lr,Row:()=>hn,SearchSelect:()=>dr,SearchTree:()=>aa,Select:()=>Yn,Slider:()=>gr,Split:()=>ur.default,Steps:()=>fr,SubMenu:()=>at,Switch:()=>jr,Table:()=>Or,Tabs:()=>Ar,Tag:()=>sr,Textarea:()=>Ir,ThemeContext:()=>it,TimePicker:()=>be,TimePickerTime:()=>ye,Tooltip:()=>Hr,Transfer:()=>ia,Tree:()=>Gr,TreeChecked:()=>Xr,canUseDOM:()=>v,formatter:()=>U.Z,getChildKeys:()=>$r,randomid:()=>kn.randomid});var r=n(808),a=n(5773),l=n(8573);function i(){}function s(e,t){if("undefined"===typeof window)return 0;var n=t?"scrollTop":"scrollLeft",r=e===window,a=r?e[t?"pageYOffset":"pageXOffset"]:e[n];return r&&"number"!==typeof a&&(a=document.documentElement[n]),a}var o=(e,t)=>{var n=e.getBoundingClientRect(),r=(e=>e!==window?e.getBoundingClientRect():{top:0,left:0,bottom:0})(t),a=s(t,!0),l=s(t),i=window.document.body,o=i.clientTop||0,c=i.clientLeft||0;return{top:n.top-r.top+a-o,left:n.left-r.left+l-c,width:n.width,height:n.height}},c=()=>"undefined"!==typeof window?window:null,d=n(4760),u=["prefixCls","className","children","offsetTop","offsetBottom","target","onChange"];class h extends l.Component{constructor(e){super(e),this.state={placeholderStyle:void 0,affixStyle:void 0},this.box=void 0,this.target=void 0,this.events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],this.eventHandlers={},this.timeout=void 0,this.getInstance=e=>{e&&(this.box=e)},this.updatePosition=this.updatePosition.bind(this)}componentDidMount(){var e=this.props.target||c;this.timeout=window.setTimeout((()=>{this.target=e(),this.setTargetEventListeners()}))}componentWillUnmount(){this.clearEventListeners(),clearTimeout(this.timeout)}updatePosition(){var{offsetTop:e}=this.props,{offsetBottom:t}=this.props;if(this.box&&this.box.offsetParent){var n={width:this.box.clientWidth,height:this.box.clientHeight},r={top:!0,bottom:!1};"number"!==typeof e&&"number"!==typeof t&&(r.top=!0,e=0),"number"===typeof t&&(r.top=!1,r.bottom=!0);var l=o(this.box,this.target),i=this.box.getBoundingClientRect(),s=document.documentElement.clientHeight-i.y-l.height;r.top&&i.y<0?(this.setPlaceholderStyle((0,a.Z)({},n)),this.setAffixStyle({position:"fixed",top:e||0,left:l.left,width:l.width})):r.bottom&&s<0?(this.setPlaceholderStyle((0,a.Z)({},n)),this.setAffixStyle({position:"fixed",bottom:t||0,left:l.left,width:l.width})):(this.setPlaceholderStyle(),this.setAffixStyle())}}setAffixStyle(e){var{onChange:t}=this.props,n=!!this.state.affixStyle;this.setState({affixStyle:e},(()=>{t&&t(n)}))}setPlaceholderStyle(e){this.setState({placeholderStyle:e})}setTargetEventListeners(){this.clearEventListeners(),this.events.forEach((e=>{this.eventHandlers[e]=this.updatePosition,this.target&&this.target.addEventListener(e,this.updatePosition,!1)}))}clearEventListeners(){this.events.forEach((e=>{var t=this.eventHandlers[e];this.target&&this.target.removeEventListener(e,t,!1)}))}render(){var e=this.props,{prefixCls:t,className:n,children:l}=e,i=(0,r.Z)(e,u),s=[n,t].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({},i,{ref:this.getInstance,style:(0,a.Z)({},this.state.placeholderStyle,this.props.style),children:(0,d.jsx)("div",{className:s,style:this.state.affixStyle,children:l})}))}}h.defaultProps={prefixCls:"w-affix",onChange:i};var p=n(7791),m=n(6231),f=n(6836),v=!("undefined"===typeof window||!window.document||!window.document.createElement);function x(e){var{container:t}=e,n=(0,l.useRef)(),r=(0,l.useRef)(t);return(0,l.useEffect)((()=>()=>{n.current&&r.current&&(r.current.removeChild(n.current),n.current=void 0)}),[]),v?(r.current||(r.current=document.body),n.current||(n.current=document.createElement("div"),r.current.appendChild(n.current)),f.createPortal(e.children,n.current)):null}var g=["className","style","isOpen","prefixCls","usePortal","maskClosable","backdropProps","portalProps","hasBackdrop","unmountOnExit","timeout","transitionName","onOpening","onOpened","onClosing","onClosed","onClose","onEnter","onExiting","onEntering","onEntered","onExit","children","dialogProps"];function y(e){var{className:t,style:n,isOpen:s=!1,prefixCls:o="w-overlay",usePortal:c=!0,maskClosable:u=!0,backdropProps:h={},portalProps:p={},hasBackdrop:f=!0,unmountOnExit:v=!0,timeout:y=300,transitionName:j="w-overlay",onOpening:b=i,onOpened:w=i,onClosing:C=i,onClosed:N=i,onClose:k=i,onEnter:S=i,onExiting:Z=i,onEntering:E=i,onEntered:P=i,onExit:M=i,children:B,dialogProps:z={}}=e,L=(0,r.Z)(e,g),[O,D]=(0,l.useState)(),[R,A]=(0,l.useState)(!1),T=(0,l.useRef)(null),I=(0,l.useRef)(null);(0,l.useEffect)((()=>{O!==e.isOpen&&e.isOpen&&A(!0),O===e.isOpen||e.isOpen||(W(),D(!1))}),[e.isOpen]),(0,l.useEffect)((()=>{R&&(f&&c&&document.body.classList.add(o+"-open"),D(!0))}),[R]);var F="object"===typeof B?(0,l.cloneElement)(B,(0,a.Z)({},z,{style:(0,a.Z)({},B.props.style,z.style),className:[B.props.className,o+"-content"].filter(Boolean).join(" ").trim(),tabIndex:0})):(0,d.jsx)("span",(0,a.Z)({},z,{className:o+"-content",children:B}));function H(e){e.target!==T.current&&c||(u&&f&&(W(),D(!1),k&&k(e)),h&&h.onMouseDown&&h.onMouseDown(e))}function W(){f&&c&&document.body.classList.remove(o+"-open")}var _=(0,d.jsx)(m.Z,(0,a.Z)({classNames:j,unmountOnExit:v,timeout:y,in:O,onEnter:e=>{S(I.current,e)},onEntering:e=>{b(I.current,e),E(I.current)},onEntered:e=>{w(I.current,e),P(I.current)},onExiting:()=>{C(I.current),Z(I.current)},onExited:()=>{var e;e=I.current,A(!1),N&&N(e),M(I.current)},nodeRef:I},L,{children:e=>(0,d.jsxs)("div",{style:n,ref:I,className:[o,t,c?null:o+"-inline",O?o+"-enter-done":null].filter(Boolean).join(" ").trim(),children:[f&&(0,l.cloneElement)((0,d.jsx)("div",{}),(0,a.Z)({},h,{onMouseDown:H,className:[o+"-backdrop",h.className].filter(Boolean).join(" ").trim(),tabIndex:u?0:null})),c?(0,d.jsx)("div",{ref:T,onMouseDown:H,className:o+"-container",children:(0,l.cloneElement)(F,{"data-status":e})}):(0,l.cloneElement)(F,{"data-status":e})]})}));return R&&c?(0,d.jsx)(x,(0,a.Z)({},(0,a.Z)({},p),{children:_})):_}var j=n(2193),b=["className","prefixCls","verticalAlign","tagName","color","type","spin","style"];const w=e=>{var{className:t,prefixCls:n="w-icon",verticalAlign:l="middle",tagName:i="span",color:s,type:o,spin:c=!1,style:u}=e,h=(0,r.Z)(e,b),p=null;"string"===typeof o&&(p=(0,d.jsx)("svg",{fill:s||e.fill,viewBox:"0 0 20 20",children:(j[o]||[]).map(((e,t)=>(0,d.jsx)("path",{d:e,fillRule:"evenodd"},t)))}));var m=(0,a.Z)({fill:"currentColor"},u),f=[n,t,n&&l?n+"-"+l:null,c&&n?n+"-spin":null].filter(Boolean).join(" ").trim();return(0,d.jsx)(i,(0,a.Z)({className:f},h,{style:m,children:p}))};var C=["prefixCls","disabled","active","loading","block","basic","htmlType","type","size","icon","className","children"];const N=l.forwardRef(((e,t)=>{var{prefixCls:n="w-btn",disabled:i=!1,active:s=!1,loading:o=!1,block:c=!1,basic:u=!1,htmlType:h="button",type:p="light",size:m="default",icon:f,className:v,children:x}=e,g=(0,r.Z)(e,C),y=[v,n,m?n+"-size-"+m:null,p?n+"-"+p:null,u?n+"-basic":null,o?n+"-loading":null,i||o?"disabled":null,s?"active":null,c?"block":null].filter(Boolean).join(" ").trim();return(0,d.jsxs)("button",(0,a.Z)({},g,{ref:t,type:h,disabled:i||o,className:y,children:[f&&(0,d.jsx)(w,{type:f}),x&&l.Children.map(x,(e=>e?l.isValidElement(e)?e:(0,d.jsx)("span",{children:e}):e))]}))}));var k=["title","children"];var S=["prefixCls","className","children","useButton","usePortal","autoFocus","isOpen","title","cancelText","cancelButtonProps","confirmButtonProps","content","confirmText","type","icon","maxWidth","minWidth","width","isCloseButtonShown","onCancel","onConfirm","bodyStyle"],Z=l.forwardRef(((e,t)=>{var{prefixCls:n="w-modal",className:s,children:o,useButton:c=!0,usePortal:u=!0,autoFocus:h=!1,isOpen:m=!1,title:f,cancelText:v,cancelButtonProps:x,confirmButtonProps:g,content:j,confirmText:b="\u786e\u8ba4",type:C="light",icon:k,maxWidth:Z=500,minWidth:E=320,width:P,isCloseButtonShown:M=!0,onCancel:B=i,onConfirm:z=i,bodyStyle:L}=e,O=(0,r.Z)(e,S),[D,R]=(0,l.useState)(e.isOpen);(0,l.useEffect)((()=>{e.isOpen!==D&&R(e.isOpen)}),[e.isOpen]);var[A,T]=(0,l.useState)(!1),I=[n,s,C?""+C:null].filter(Boolean).join(" ").trim();function F(e){return H.apply(this,arguments)}function H(){return(H=(0,p.Z)((function*(e){T(!0);try{B&&(yield B(e))}catch(e){}R(!1),T(!1)}))).apply(this,arguments)}function W(){return(W=(0,p.Z)((function*(e){T(!0);try{z&&(yield z(e))}catch(e){}R(!1),T(!1)}))).apply(this,arguments)}return(0,d.jsx)(y,(0,a.Z)({usePortal:u,isOpen:D},O,{onClose:function(){R(!1)},className:I,children:(0,d.jsx)("div",{className:n+"-container",children:(0,d.jsxs)("div",{className:[n+"-inner",f?n+"-shown-title":null,k?n+"-shown-icon":null].filter(Boolean).join(" ").trim(),style:{maxWidth:Z,minWidth:E,width:P},children:[(f||k)&&(0,d.jsxs)("div",{className:n+"-header",children:[k&&(0,d.jsx)(w,{type:k}),f&&(0,d.jsx)("h4",{children:f}),M&&(0,d.jsx)(N,{basic:!0,onClick:e=>F(e),icon:"close",type:"light"})]}),(0,d.jsx)("div",{className:n+"-body",style:L,children:o||j}),c&&(0,d.jsxs)("div",{className:n+"-footer",children:[(0,d.jsx)(N,(0,a.Z)({autoFocus:h,type:C,loading:A,disabled:A},g,{onClick:e=>function(e){return W.apply(this,arguments)}(e),children:b})),v&&(0,d.jsx)(N,(0,a.Z)({},x,{onClick:e=>F(e),children:v}))]})]})})}))}));Z.show=function(e){var t=e||{},{title:n="\u63d0\u793a\u6846",children:l}=t,i=(0,r.Z)(t,k),s=document.createElement("div");s.id="uiw-modal-call-show-element",document.body.appendChild(s),f.render((0,d.jsx)(E,(0,a.Z)({},i,{title:n,isOpen:!0,onClosed:()=>{s.remove()},children:l})),s)};const E=Z;var P=["prefixCls","className","width"];const M=function(e){void 0===e&&(e={});var{prefixCls:t="w-alert",className:n,width:l=400}=e,i=(0,r.Z)(e,P),s=[t,n].filter(Boolean).join(" ").trim();return(0,d.jsx)(E,(0,a.Z)({},i,{width:l,className:s,children:e.children}))};var B=["text"],z=/((?:https?:\/\/)?(?:(?:[a-z0-9]?(?:[a-z0-9\-]{1,61}[a-z0-9])?\.[^\.|\s])+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})(?::\d{1,5})*[a-z0-9.,_\/~#&=;%+?\-\\(\\)]*)/gi;const L=function(e){void 0===e&&(e={});var{text:t=""}=e,n=(0,r.Z)(e,B);return(0,d.jsx)(l.Fragment,{children:t.split(z).map(((e,t)=>{var r=e.match(z);if(r&&r[0]){var i=r[0];return(0,l.createElement)("a",(0,a.Z)({},n,{key:t,href:i.startsWith("http")?i:"http://"+i}),i)}return(0,d.jsx)(l.Fragment,{children:e},t)}))})};var O=["prefixCls","shape","size","className","src","alt","icon","onError"];const D=l.forwardRef(((e,t)=>{var{prefixCls:n="w-avatar",shape:s="circle",size:o="default",className:c,src:u,alt:h,icon:p,onError:m=i}=e,f=(0,r.Z)(e,O),v=e.children,[x,g]=(0,l.useState)(!0),y=[n,c,o?n+"-"+o:null,s?n+"-"+s:null,u?n+"-image":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>{g(!0)}),[e.src]),x&&u?v=(0,d.jsx)("img",{src:u,alt:h,onError:e=>{!1!==(m?m(e):void 0)&&g(!1)}}):p&&"string"===typeof p?v=(0,d.jsx)(w,{type:p}):p&&l.isValidElement(p)&&(v=p),(0,d.jsx)("span",(0,a.Z)({},f,{className:y,ref:t,children:v}))}));function R(){var e=0;return document&&document.documentElement&&document.documentElement.scrollTop?e=document.documentElement.scrollTop:document.body&&(e=document.body.scrollTop),e}var A=["prefixCls","className","content","children","offsetTop","fixed","speed","showBelow","clickable"];const T=l.forwardRef(((e,t)=>{var{prefixCls:n="w-back-top",className:i,content:s,children:o,offsetTop:c=0,fixed:u=!0,speed:h=100,showBelow:p=1,clickable:m=!0}=e,f=(0,r.Z)(e,A),v=u&&p||0,[x,g]=(0,l.useState)(0),[y,j]=(0,l.useState)(0),b=x>=v,w=[n,i,u?null:"no-fixed",b?n+"-show":null,b?null:n+"-hide"].filter(Boolean).join(" ").trim();function C(){g(function(e){void 0===e&&(e=0);var t=0;return e<R()&&(t=Math.round((R()-e)/(document.body.scrollHeight-e-window.innerHeight)*100)),t>100?100:t}(c)),j(R())}function N(){"number"===typeof c&&"number"===typeof h&&"number"===typeof y&&function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=100),void 0===n&&(n=0);var r=0,a=setInterval((()=>{n-r>=e?n-(r+=t)>=e?window.scrollTo(0,n-r):window.scrollTo(0,e):clearInterval(a)}),0)}(c,h,y)}return(0,l.useEffect)((()=>(window&&window.addEventListener("scroll",C),function(){window&&window.removeEventListener("scroll",C)}))),(0,d.jsxs)("div",(0,a.Z)({onClick:()=>m&&N(),className:w},f,{ref:t,children:[s,"function"!==typeof o?o:o({percent:x,current:y,scrollToTop:N})]}))}));var I=["prefixCls","className","style","color","max","dot","processing","count","children"];const F=l.forwardRef(((e,t)=>{var{prefixCls:n="w-badge",className:l,style:i={},color:s,max:o=99,dot:c=!1,processing:u=!1,count:h,children:p}=e,m=(0,r.Z)(e,I),f={className:[c?null:n+"-count",c?"dot":null].filter(Boolean).join(" ").trim(),style:{}},v=[l,n,p?null:"nowrap",p?null:n+"-status",u?n+"-processing":null].filter(Boolean).join(" ").trim(),x={};return h||0===h?f.style=(0,a.Z)({backgroundColor:s},i):x.style=i||{},(0,d.jsxs)("span",(0,a.Z)({className:v},m,x,{ref:t,children:[s&&(0,d.jsx)("span",{className:n+"-dot",style:{backgroundColor:s}}),p,0!==h&&!s&&(0,d.jsx)("sup",(0,a.Z)({},f,{children:!c&&h&&o&&h>o?o+"+":h}))]}))}));var H=["prefixCls","className","tagName","active","separator"];const W=l.forwardRef(((e,t)=>{var{prefixCls:n="w-breadcrumb",className:i,tagName:s="span",active:o,separator:c}=e,u=(0,r.Z)(e,H),h=l.isValidElement(c),p=[n+"-item",i,o?"active":null,c?null:"no-separator",h?"no-before":null].filter(Boolean).join(" ").trim(),m=(0,a.Z)({className:p},u);return h||(m["data-separator"]=c),l.createElement(s,(0,a.Z)({},m,{ref:t}),(0,d.jsxs)(l.Fragment,{children:[h&&(0,d.jsx)("span",{className:n+"-separator",children:c}),e.children]}))}));var _=["prefixCls","className","separator"],V=l.forwardRef(((e,t)=>{var{prefixCls:n="w-breadcrumb",className:i,separator:s="/"}=e,o=(0,r.Z)(e,_),c=[n,i].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({},(0,a.Z)({className:c},o),{ref:t,children:l.Children.map(e.children,(e=>l.cloneElement(e,Object.assign({separator:s},e.props,{}))))}))}));V.Item=W;const K=V;var Y=["prefixCls","vertical","children","className"];const $=l.forwardRef(((e,t)=>{var{prefixCls:n="w-btn-group",vertical:l=!1,children:i,className:s}=e,o=(0,r.Z)(e,Y),c=[n,s,l&&n+"-vertical"].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:c},o,{ref:t,children:i}))}));var U=n(371);function J(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}function G(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const q=!("undefined"===typeof window||!window.document||!window.document.createElement)?function(e,t){return e&&e.contains&&"function"===typeof e.contains&&G(t)?e.contains(t):e&&e.compareDocumentPosition&&G(t)?e===t||!!e.compareDocumentPosition(t):J(e,t)}:J;function X(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}const Q="undefined"!==typeof window&&"undefined"!==typeof document;var ee=Q&&!(!window.MSInputMethodContext||!document.documentMode),te=Q&&/MSIE 10/.test(navigator.userAgent);function ne(e){return 11===e?ee:10===e?te:ee||te}function re(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ne(10)?parseInt(n["offset"+e],10)+parseInt(r["margin"+("Height"===e?"Top":"Left")],10)+parseInt(r["margin"+("Height"===e?"Bottom":"Right")],10):0)}function ae(e){var t={};try{if(ne(10)){t=e.getBoundingClientRect();var n=s(e,!0),r=s(e);t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(m){}var l,i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?function(e){var t=e.body,n=e.documentElement,r=getComputedStyle(n);return{height:re("Height",t,n,r),width:re("Width",t,n,r)}}(e.ownerDocument):{},c=o.width||e.clientWidth||i.right-i.left,d=o.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-c,h=e.offsetHeight-d;if(i.offsetLeft=e.offsetLeft||e.scrollLeft||0,i.offsetTop=e.offsetTop||e.offsetTop||0,u||h){var p=function(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}(e);u-=X(p,"x"),h-=X(p,"y"),i.width-=u,i.height-=h}return l=i,(0,a.Z)({},l,{right:l.left+l.width,bottom:l.top+l.height})}function le(e){var t=e.getBoundingClientRect();return{width:e.offsetWidth||e.scrollWidth||t.width||0,height:e.offsetHeight||e.scrollHeight||t.height||0}}function ie(e){var{trigger:t,popup:n,placement:r,usePortal:l,autoAdjustOverflow:i}=e||{},o={left:0,top:0,placement:r};if(!t||!n||!document)return o;var c=Math.max(document.documentElement.clientHeight,window.innerHeight||0),d=Math.max(document.documentElement.clientWidth,window.innerWidth||0);o.placement=r;var u=s(t.ownerDocument.documentElement,!0),h=s(t.ownerDocument.documentElement),p=(0,a.Z)({},ae(t),le(t)),m=(0,a.Z)({},ae(n),le(n)),f=c-p.bottom,v=d-p.left-p.width;switch(o.top=p.top+u,o.left=p.left,l||(o.top=p.offsetTop,o.left=p.offsetLeft),r&&/^(top)/.test(r)&&(o.top-=m.height),r&&/^(right)/.test(r)&&(o.left+=p.width),r&&/^(bottom)/.test(r)&&(o.top+=p.height),r&&/^(left)/.test(r)&&(o.left-=m.width),o.placement){case"bottomLeft":case"topLeft":case"rightTop":case"leftTop":default:break;case"bottom":case"top":o.left=o.left-(m.width-p.width)/2;break;case"bottomRight":case"topRight":o.left=o.left+h+p.width-m.width;break;case"right":case"left":o.top=o.top-(m.height-p.height)/2;break;case"rightBottom":case"leftBottom":o.top=o.top-m.height+p.height}return i&&(r&&/^(top)/.test(r)&&p.top<m.height&&f>m.height&&(o.placement=r.replace(/^top/,"bottom"),o.top=o.top+m.height+p.height),r&&/^(bottom)/.test(r)&&f<m.height&&p.top>m.height&&(o.placement=r.replace(/^bottom/,"top"),o.top=o.top-m.height-p.height),r&&/^(right)/.test(r)&&v<m.width&&(o.placement=r.replace(/^right/,"left"),o.left=o.left-p.width-m.width),r&&/^(left)/.test(r)&&p.left<m.width&&(o.placement=r.replace(/^left/,"right"),o.left=o.left+p.width+m.width),r&&/^(left|right)/.test(r)&&l?(/(Top)$/.test(r)&&p.top<0||/(right|left)$/.test(r)&&p.top+p.height/2<m.height/2||/(Bottom)$/.test(r)&&p.top+p.height<m.height)&&(o.top=u):(r&&/(Top)$/.test(r)&&p.top<0&&(o.top-=p.top),r&&/(Bottom)$/.test(r)&&p.bottom<m.height&&(o.top=o.top+(m.height-p.bottom)),r&&/(right|left)$/.test(r)&&p.bottom-p.height/2<m.height/2&&(o.top=o.top+m.height/2-(p.bottom-p.height/2))),r&&/^(left|right)/.test(r)&&(/(Top)$/.test(r)&&f+p.height<m.height&&(o.top=o.top-(m.height-f-p.height)),/(right|left)$/.test(r)&&f+p.height/2<m.height/2&&(o.top=o.top-(m.height/2-f-p.height/2)),/(Bottom)$/.test(r)&&f<0&&(o.top=o.top+f)),r&&/^(top|bottom)/.test(r)&&l?((/(Left)$/.test(r)&&p.left<0||/(top|bottom)$/.test(r)&&p.left+p.width/2<m.width/2||/(Right)$/.test(r)&&p.left+p.width<m.width)&&(o.left=h),/(top|bottom)$/.test(r)&&v+p.width/2<m.width/2&&(o.left=p.left+p.width+v-m.width)):r&&/(top|bottom)$/.test(r)&&v+p.width/2<m.width/2&&(o.left=o.left+(v+p.width/2-m.width/2)),r&&/^(top|bottom)/.test(r)&&(/(Left)$/.test(r)&&p.width+v<m.width&&(o.left=o.left-(m.width-p.width-v)),/(Right)$/.test(r)&&v<0&&(o.left=o.left+v))),o}var se=["className","prefixCls","usePortal","isOutside","isClickOutside","disabled","isOpen","trigger","placement","autoAdjustOverflow","transitionName","children","overlay","onVisibleChange","onEnter"],oe=e=>e&&"object"===typeof e?e:{show:e,hide:e};const ce=l.forwardRef(((e,t)=>{var n,{className:s,prefixCls:o="w-overlay-trigger",usePortal:c=!0,isOutside:u=!1,isClickOutside:h=!0,disabled:p=!1,isOpen:m=!1,trigger:f="hover",placement:v="top",autoAdjustOverflow:x,transitionName:g,children:j,overlay:b,onVisibleChange:w=i,onEnter:C=i}=e,N=(0,r.Z)(e,se),k=(0,l.useRef)(999),S=(0,l.useRef)(),Z=(0,l.useRef)(),E=(0,l.useRef)([]),P=(0,l.useRef)(null),[M,B]=(0,l.useState)(!!e.isOpen),[z,L]=(0,l.useState)({placement:v,top:0,bottom:0,left:0,right:0,zIndex:k.current});(0,l.useImperativeHandle)(t,(()=>({hide:()=>_(),show:()=>V(),overlayDom:Z})));var O=l.Children.only(j),D=(0,a.Z)({},N,{placement:v,isOpen:M,dialogProps:{}}),R={};(0,l.useEffect)((()=>(h&&M&&(document&&document.addEventListener("mousedown",T),window.addEventListener("resize",A)),()=>{document&&h&&document.removeEventListener("mousedown",T),window.removeEventListener("resize",A)})),[M]),(0,l.useEffect)((()=>{e.isOpen!==M&&B(!!e.isOpen)}),[e.isOpen]),(0,l.useEffect)((()=>{var e=ie({placement:z.placement||v,trigger:S.current,popup:Z.current,usePortal:c,autoAdjustOverflow:x});L((0,a.Z)({},e,{zIndex:k.current})),w(M)}),[M]);var A=()=>{M&&(k.current-=1,B(!1),w&&w(!1))},T=e=>{var t=Z.current,n=S.current;t&&n&&e.target&&!q(t,e.target)&&!q(n,e.target)&&(k.current-=1,B(!1),w&&w(!1))};function I(){if(E.current.length>0){for(var e of E.current)window.clearTimeout(e);E.current=[]}}function F(){var t;I(),P.current="show";var n=oe(e.delay);if(n.show||null!=(t=e.children)&&t.props.disabled){var r=window.setTimeout((()=>{"show"===P.current&&V()}),n.show);clearTimeout(r),E.current.push(r)}else V()}function H(t){if(I(),t||!e.isOutside){P.current="hide";var n=oe(e.delay);if(n.hide){var r=window.setTimeout((()=>{"hide"===P.current&&_()}),n.hide);E.current.push(r)}else _()}}function W(e,t,n){var r=t.currentTarget,a=t.relatedTarget||t.nativeEvent[n],l=!0;(Z.current&&q(Z.current,a)||S.current&&q(S.current,a))&&(l=!1),a&&a===r||q(r,a)||e(l,t)}function _(){M&&(k.current<=999?k.current=999:k.current-=1,B(!1))}function V(){var e;if(!M){var t=null==(e=S.current)?void 0:e.style.zIndex;t?k.current=Number(t)+1:k.current+=1,B(!0)}}return"click"!==f||p||(R.onClick=e=>{var{onClick:t}=O&&l.isValidElement(O)?O.props:{};M?_():V(),t&&t(e,!M)}),"focus"!==f||p||(R.onFocus=()=>F()),"hover"!==f||p||(R.onMouseOver=R.onMouseEnter=e=>{W(F,e,"fromElement")},R.onMouseOut=R.onMouseLeave=e=>{W(H,e,"toElement")},D.dialogProps&&(D.dialogProps.onMouseLeave=e=>{W(H,e,"toElement")})),D.style=(0,a.Z)({},D.style,z),(0,d.jsxs)(l.Fragment,{children:[(0,l.cloneElement)(O,Object.assign({},O.props,(0,a.Z)({},R,{ref:S,style:(0,a.Z)({},null==(n=O.props)?void 0:n.style,{zIndex:k.current}),className:[O.props.className,p?o+"-disabled":null].filter(Boolean).join(" ").trim()}))),(0,d.jsx)(y,(0,a.Z)({},D,{style:(0,a.Z)({},D.style,z),onEnter:function(e,t){C&&C(e,t);var n=ie({placement:z.placement||v,trigger:S.current,popup:Z.current,usePortal:c,autoAdjustOverflow:x});L((0,a.Z)({},n,{zIndex:k.current}))},className:[o,s,z.placement].filter(Boolean).join(" ").trim(),usePortal:c,transitionName:g,isOpen:M,hasBackdrop:!1,children:(0,l.cloneElement)(b,Object.assign((0,a.Z)({},b.props,{ref:Z,className:[b.props&&b.props.className,v].filter(Boolean).join(" ").trim()})))}))]})}));var de=["prefixCls","className","content","visibleArrow"];class ue extends l.Component{constructor(){super(...arguments),this.renderArrow=()=>{var{prefixCls:e}=this.props;return(0,d.jsx)("div",{className:e+"-arrow",children:(0,d.jsxs)("svg",{viewBox:"0 0 30 30",children:[(0,d.jsx)("path",{fillOpacity:"0.2",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),(0,d.jsx)("path",{fill:"#fff",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})]})})}}render(){var e=this.props,{prefixCls:t,className:n,visibleArrow:l}=e,i=(0,r.Z)(e,de),s=[t,n,l?null:"no-arrow"].filter(Boolean).join(" ").trim();return(0,d.jsx)(ce,(0,a.Z)({},i,{overlay:(0,d.jsxs)("div",{className:s,children:[l&&this.renderArrow(),(0,d.jsx)("div",{className:t+"-inner",children:this.props.content})]}),children:"object"===typeof this.props.children&&"Icon"!==this.props.children.type.name?this.props.children:(0,d.jsx)("span",{style:{display:"block",writingMode:"vertical-rl"},children:this.props.children})}))}}ue.Confirm=function(e){var{trigger:t="click",placement:n="top",confirmText:r="Yes",title:a,cancelText:i="No",visibleArrow:s,children:o,onConfirm:c}=e,[u,h]=(0,l.useState)(!1);return(0,d.jsx)(ue,{isOpen:u,visibleArrow:s,content:(0,d.jsxs)("div",{style:{padding:"12px 16px",position:"relative"},children:[(0,d.jsx)(w,{type:"information",style:{position:"absolute",top:13.5,fontSize:14,transform:"rotate(180deg)",color:"#faad14"}}),(0,d.jsxs)("div",{style:{paddingLeft:20},children:[(0,d.jsx)("div",{style:{fontSize:14},children:a}),(0,d.jsxs)("div",{style:{position:"relative",bottom:0,marginTop:12,display:"flex",justifyContent:"end"},children:[(0,d.jsx)(N,{size:"small",onClick:()=>h(!1),children:i}),(0,d.jsx)(N,{size:"small",type:"primary",style:{marginLeft:10},onClick:()=>{null==c||c(),h(!1)},children:r})]})]})]}),trigger:t,placement:n,children:(0,d.jsx)("div",{onClick:()=>h(!0),children:o})})},ue.defaultProps={prefixCls:"w-popover",placement:"top",usePortal:!0,isOpen:!1,visibleArrow:!0};var he=["className","min","max","step","overLimitColor","keyboard","formatter","prefixCls"];const pe=l.forwardRef(((e,t)=>{var{className:n,min:i,max:s,step:o,overLimitColor:c,keyboard:u=!1,prefixCls:h="w-input-number"}=e,p=(0,r.Z)(e,he),m=(0,l.useMemo)((()=>{var t;return Number.parseFloat(null==(t=e.value||0)?void 0:t.toString())}),[e.value]),[f,v]=(0,l.useState)(x(m));function x(e){return"number"===typeof i&&e<i||"number"===typeof s&&e>s}var g=(0,l.useMemo)((()=>{if(!c)return{min:i,max:s}}),[]),y=[h,n].filter(Boolean).join(" ").trim(),j=(0,l.useMemo)((()=>f?{color:null==c?void 0:c.toString()}:void 0),[f]);return(0,d.jsx)(fe,(0,a.Z)({},p,{className:y,type:"number",inputStyle:j,onChange:t=>{var n=x(Number.parseFloat(t.target.value));v(n),null==e.onChange||e.onChange(t)},step:o},g))}));var me=["prefixCls","className","style","size","type","preIcon","addonAfter","inputStyle"];const fe=l.forwardRef(((e,t)=>{var{prefixCls:n="w-input",className:i,style:s,size:o="default",type:c="text",preIcon:u=null,addonAfter:h,inputStyle:p}=e,m=(0,r.Z)(e,me),f=l.useRef(null),v=l.useRef(null);(0,l.useImperativeHandle)(t,(()=>f.current));var x=[n,i,o?n+"-"+o:null,h?n+"-addon":null,e.disabled?"disabled":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>{!function(){if(v.current&&f.current){var e=window&&window.getComputedStyle(v.current,null);f.current.style.paddingRight=v.current.clientWidth+2*parseInt(e.right,10)+"px"}}()})),(0,d.jsxs)("div",{className:x,style:s,children:[(0,d.jsx)(w,{type:u}),(0,d.jsx)("input",(0,a.Z)({ref:f,type:c,autoComplete:"off"},m,{style:p,className:n+"-inner"})),h&&(0,d.jsx)("span",{className:n+"-addon-after",ref:v,children:h})]})}));var ve=["prefixCls","className","count","date","type","disabledHours","disabledMinutes","disabledSeconds","hideDisabled","onSelected"];function xe(e){var{prefixCls:t="w-timepicker",count:n=24,date:i,type:s="Hours",hideDisabled:o,onSelected:c}=e,u=(0,r.Z)(e,ve),h=(0,l.useRef)([]);function p(t){var n=e["disabled"+s];return!!n&&n(t,s,new Date(i))}var m=(0,l.useMemo)((()=>[...Array(n)].map(((e,t)=>(p(t)&&h.current.push(t),{count:t,disabled:p(t)}))).filter((e=>!o||!e.disabled))),[o]);return(0,d.jsx)("div",(0,a.Z)({className:t+"-spinner"},u,{children:(0,d.jsx)("ul",{children:m.map(((e,t)=>{var n={};e.disabled||(n.onClick=t=>function(e,t){if(i){var n=new Date(i);n["set"+s](e),c&&c(s,e,h.current,n)}}(e.count));var r=i&&s?new Date(i)["get"+s]():0;return(0,d.jsx)("li",(0,a.Z)({"data-index":r===e.count?t:void 0,ref:e=>e&&function(e){if(e&&e.parentNode&&e.dataset.index){var t=Number(e.dataset.index)*e.clientHeight;e.parentNode.parentNode&&(e.parentNode.parentNode.scrollTop=t)}}(e)},n,{className:[e.disabled?"disabled":null,r===e.count?"selected":null,o&&e.disabled?"hide":null].filter(Boolean).join(" ").trim(),children:e.count<10?"0"+e.count:e.count}),t)}))})}))}var ge=["prefixCls","className","precision"];function ye(e){var{prefixCls:t="w-timepicker",className:n,precision:l="second"}=e,i=(0,r.Z)(e,ge);return(0,d.jsxs)("div",{className:[t,n].filter(Boolean).join(" ").trim(),children:[/^(second|minute|hour)$/.test(l)&&(0,d.jsx)(xe,(0,a.Z)({type:"Hours",count:24},i)),/^(second|minute)$/.test(l)&&(0,d.jsx)(xe,(0,a.Z)({type:"Minutes",count:60},i)),/^(second)$/.test(l)&&(0,d.jsx)(xe,(0,a.Z)({type:"Seconds",count:60},i))]})}var je=["prefixCls","className","disabled","value","format","popoverProps","allowClear","onChange","disabledHours","disabledMinutes","disabledSeconds","hideDisabled","precision"];function be(e){var{prefixCls:t="w-timepicker",className:n,disabled:i,format:s="HH:mm:ss",popoverProps:o,allowClear:c=!0,onChange:u,disabledHours:h,disabledMinutes:p,disabledSeconds:m,hideDisabled:f,precision:v}=e,x=(0,r.Z)(e,je),[g,y]=(0,l.useState)(e.value);(0,l.useEffect)((()=>y(e.value)),[e.value]);var j={disabledHours:h,disabledMinutes:p,disabledSeconds:m,hideDisabled:f,precision:v},b=g?(0,U.Z)(s,new Date(g)):"",w=g||new Date,C=(0,a.Z)({},x,{value:b});return c&&""!==b&&b&&(C.addonAfter=(0,d.jsx)(N,{className:t+"-close-btn",icon:"close",disabled:e.disabled,onClick:()=>{y(void 0),u&&u()},size:e.size,basic:!0,type:"light"})),(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0,visibleArrow:!1},o,{content:(0,d.jsx)(ye,(0,a.Z)({className:t+"-popover"},j,{date:w,onSelected:(e,t,n,r)=>{y(new Date(r));var a=r?(0,U.Z)(s,r):"";u&&u(a,r,e,t,n)}})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",readOnly:!0,disabled:i},C,{className:[t+"-input",n].filter(Boolean).join(" ").trim()}))}))}var we=["date","row","col","index","today","panelDate","disabledDate","renderDay","onSelectDay"],Ce=["prefixCls","className","weekday","weekTitle","date","today","panelDate","disabledDate","renderDay","onSelectDay"];function Ne(e){return Object.keys(e||{}).map((t=>e[t]?t:null)).filter(Boolean).join(" ").trim()}function ke(e){var{date:t,col:n,index:i,today:s,panelDate:o,disabledDate:c,renderDay:u,onSelectDay:h}=e,p=(0,r.Z)(e,we),m={end:0===n||6===n,prev:!1,today:!1,selected:!1,next:!1,disabled:!1},f=o;f&&function(e){return e instanceof Date&&!isNaN(e.getTime())}(f)||(f=new Date);var v=f.getFullYear(),x=f.getMonth(),g=(0,l.useMemo)((()=>new Date(new Date(f).setDate(1)).getDay()),[f.toDateString()]),y=(0,l.useMemo)((()=>new Date(v,0===x?12:x+1,0).getDate()),[f.toDateString()]),j=i;f&&((j=j-g+1)<1&&(m.prev=!0),j>y&&(m.next=!0));var b=new Date(new Date(f).setDate(j));s&&s.toDateString()===b.toDateString()&&(m.today=!0),t&&t.toDateString()===b.toDateString()&&(m.selected=!0);var w={onClick:()=>{var e=b.getMonth();h&&h(b,{year:b.getFullYear(),month:0===e?12:e+1,day:b.getDate()})}};return c&&c(b,(0,a.Z)({},e,m))&&(m.disabled=!0,delete w.onClick),(0,d.jsx)("div",(0,a.Z)({className:Ne(m)},p,w,{children:u?u(b.getDate(),(0,a.Z)({},e,m,{date:b})):(0,d.jsx)("div",{children:b.getDate()})}))}var Se=["\u661f\u671f\u5929","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],Ze=["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"];function Ee(e){var{prefixCls:t="w-datepicker",className:n,weekday:i=Ze,weekTitle:s=Se,date:o,today:c,panelDate:u,disabledDate:h,renderDay:p,onSelectDay:m}=e,f=(0,r.Z)(e,Ce),v=(0,l.useMemo)((()=>(0,d.jsx)("div",{className:t+"-weekday",children:(i||[]).map(((e,t)=>(0,d.jsx)("div",{className:Ne({end:0===t||6===t}),title:s&&s[t],children:e},t)))})),[t,i,s]);return(0,d.jsxs)("div",(0,a.Z)({},f,{className:[t?t+"-body":null,n].filter(Boolean).join(" ").trim(),children:[v,(0,d.jsx)("div",{className:[t?t+"-day-body":null].filter(Boolean).join(" ").trim(),children:[...Array(6)].map(((e,n)=>(0,d.jsx)("div",{className:t+"-week",children:[...Array(7)].map(((e,t)=>(0,d.jsx)(ke,{date:o,today:c,disabledDate:h,renderDay:p,panelDate:u,col:t,row:n,onSelectDay:(e,t)=>{m&&m(e,t)},index:7*n+t},t)))},n)))})]}))}var Pe=["prefixCls","className","panelDate","monthLabel","onSelected"];function Me(e){var{prefixCls:t="w-datepicker",className:n,panelDate:l=new Date,monthLabel:s,onSelected:o=i}=e,c=(0,r.Z)(e,Pe);return(0,d.jsx)("div",(0,a.Z)({className:[t?t+"-month":null,n].filter(Boolean).join(" ").trim()},c,{children:[...Array(12)].map(((e,t)=>{var n=l.getMonth();return(0,d.jsx)("div",{className:[n===t?"selected":null].filter(Boolean).join(" ").trim(),children:(0,d.jsx)("span",{onClick:()=>o(t,!1),children:s&&s[t]||t})},t)}))}))}var Be=["prefixCls","panelNum","className","panelDate","onSelected"];function ze(e){var{prefixCls:t="w-datepicker",panelNum:n=[-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10],className:s,onSelected:o=i}=e,c=(0,r.Z)(e,Be),[u,h]=(0,l.useState)(e.panelDate);return(0,d.jsx)("div",(0,a.Z)({className:[t?t+"-year":null,s].filter(Boolean).join(" ").trim()},c,{children:n&&n.map(((e,t)=>{var r=u.getFullYear(),a=r+n[t];return(0,d.jsx)("div",{className:[r===a?"selected":null,0===t||t===n.length-1?"paging":null].filter(Boolean).join(" ").trim(),children:(0,d.jsx)("span",{onClick:()=>function(e,t){if(0===t||t===n.length-1){var r=new Date(u);r.setFullYear(e),h(r)}else o(e)}(a,t),children:a})},t)}))}))}var Le=["prefixCls","className","panelDate","monthLabel","onSelected","todayButton"];function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return[...t].filter(Boolean).join(" ").trim()}function De(e){var{prefixCls:t="w-datepicker",className:n,panelDate:s=new Date,monthLabel:o,onSelected:c=i,todayButton:u}=e,h=(0,r.Z)(e,Le),p=(0,l.useMemo)((()=>{var e=s.getMonth();return o&&o[e]||e+1}),[s.toDateString(),o]);return(0,d.jsxs)("div",(0,a.Z)({className:Oe(t?t+"-caption":null,n)},h,{children:[(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"prev"),onClick:()=>c("prev")}),(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"month"),onClick:()=>c("month"),children:p}),(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"year"),onClick:()=>c("year"),children:s.getFullYear()}),u&&(0,d.jsx)("div",{className:Oe(t?t+"-caption-today":null),onClick:()=>c("today"),title:u}),(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"next"),onClick:()=>c("next")})]}))}var Re=["prefixCls","className","weekday","weekTitle","monthLabel","date","today","todayButton","panelDate","disabledDate","renderDay","onChange","onPanelChange","showTime"],Ae=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"];function Te(e){var{prefixCls:t="w-datepicker",className:n,weekday:s,weekTitle:o,monthLabel:c=Ae,date:u,today:h=new Date,todayButton:p,panelDate:m=new Date,disabledDate:f,renderDay:v,onChange:x=i,onPanelChange:g=i,showTime:y}=e,j=(0,r.Z)(e,Re),[b,w]=(0,l.useState)("day"),[C,N]=(0,l.useState)(u),[k,S]=(0,l.useState)(m);(0,l.useEffect)((()=>{u&&(N(u),S(u))}),[u]);var Z=(0,l.useMemo)((()=>y&&y.format?y.format:"HH:mm:ss"),[y]);function E(e){if(e&&/^(year|month|time)$/.test(e))"time"===b&&(e="day"),w(e);else{var t=new Date(k),n=t.getMonth();"prev"===e&&(n-=1),"next"===e&&(n+=1),t.setMonth(n),"prev"!==e&&"next"!==e||g&&g(new Date(t),e),S("today"===e?h:t),"today"===e&&N(h),w("day")}}function P(e,t,n){(k||new Date)[e](t),S(new Date(k)),w("day"),x&&x(new Date(k))}return(0,d.jsxs)("div",(0,a.Z)({className:[t,n].filter(Boolean).join(" ").trim()},j,{children:[(0,d.jsx)(De,{todayButton:p,panelDate:k,monthLabel:c,onSelected:E}),"day"===b&&(0,d.jsx)(Ee,{prefixCls:t,disabledDate:f,onSelectDay:(e,t)=>{S(e),x(e,t)},renderDay:v,date:C,today:h||new Date,panelDate:k,weekday:s,weekTitle:o}),"month"===b&&(0,d.jsx)(Me,{panelDate:k,monthLabel:c,prefixCls:t,onSelected:e=>P("setMonth",e)}),"year"===b&&(0,d.jsx)(ze,{prefixCls:t,panelDate:C||k,onSelected:e=>P("setFullYear",e)}),"time"===b&&(0,d.jsx)(ye,(0,a.Z)({date:k},y,{className:t+"-timepicker",onSelected:function(e,t){(k||new Date)["set"+e](t),S(new Date(k)),x&&x(new Date(k))}})),y&&Z&&(0,d.jsx)("div",{className:t+"-time-btn",onClick:()=>E("time"),children:(0,U.Z)(Z,C||k)})]}))}var Ie=["date","label"];function Fe(e){var{prefixCls:t,day:n,data:i,currentDate:s}=e,o=(0,l.useMemo)((()=>(i||[]).filter((e=>{var t=(e.date&&e.date.split("/")||[]).map((e=>Number(e)));return 1===t.length?n===t[0]:s&&2===t.length?s.getMonth()+1===t[0]&&n===t[1]:!(!s||3!==t.length)&&(s.getFullYear()===t[0]&&s.getMonth()+1===t[1]&&n===t[2])}))),[s,n,i]);return(0,l.useMemo)((()=>(0,d.jsxs)("div",{className:t+"-inner",children:[(0,d.jsx)("div",{className:t+"-day",children:n}),(0,d.jsx)("div",{className:t+"-panel",children:o&&o.length>0&&o.map(((e,t)=>{var{label:n}=e,l=(0,r.Z)(e,Ie);return(0,d.jsx)("div",(0,a.Z)({},l,{children:n}),t)}))})]})),[o,n])}var He=["prefixCls","className","style","today","date","data","monthLabel","titleFormat","todayLabel","panelDate","onPaging","onSelectDay"],We=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"];function _e(e){var{prefixCls:t="w-calendar",className:n,style:i,today:s=new Date,date:o,data:c,monthLabel:u=We,titleFormat:h="YYYY/MM",todayLabel:p="\u4eca\u5929",onPaging:m,onSelectDay:f}=e,v=(0,r.Z)(e,He),x=[t,n].filter(Boolean).join(" ").trim(),[g,y]=(0,l.useState)(e.panelDate||new Date);function j(e){var t=new Date;if("today"===e)t=s||new Date;else{var n=g.getMonth();g&&"prev"===e&&g.setMonth(n-1),g&&"next"===e&&g.setMonth(n+1),t=g}y(new Date(t)),m&&m(e,t.getMonth()+1,t)}(0,l.useEffect)((()=>{e.panelDate!==g&&y(g)}),[e.panelDate]);var b=(0,l.useMemo)((()=>(0,d.jsx)("div",{className:t+"-title",children:(0,U.Z)(h,g)})),[t,h,g]),C=(0,l.useMemo)((()=>(0,d.jsxs)("div",{className:t+"-btn-group",children:[(0,d.jsx)(w,{type:"down",onClick:()=>j("prev")}),(0,d.jsx)("span",{className:t+"-btn",onClick:()=>j("today"),children:p}),(0,d.jsx)(w,{type:"down",onClick:()=>j("next")})]})),[t,p]);return(0,d.jsxs)("div",{className:x,style:i,children:[(0,d.jsxs)("div",{className:t+"-caption",children:[b,C]}),(0,d.jsx)(Ee,(0,a.Z)({onSelectDay:(e,t)=>{y(e),f&&f(e,t)},renderDay:(e,n)=>(0,d.jsx)(Fe,{prefixCls:t,day:e,data:c,currentDate:n.date}),date:o,today:s,panelDate:g||new Date},v))]})}var Ve=["prefixCls","className","title","extra","footer","bordered","noHover","active","bodyStyle","bodyClassName","children"];const Ke=l.forwardRef(((e,t)=>{var{prefixCls:n="w-card",className:i,title:s,extra:o,footer:c,bordered:u=!0,noHover:h=!1,active:p=!1,bodyStyle:m,bodyClassName:f,children:v}=e,x=(0,r.Z)(e,Ve),g=(0,l.useMemo)((()=>[n,i,u?n+"-bordered":null,h?n+"-no-hover":null,p?"active":null].filter(Boolean).join(" ").trim()),[n,i,u,h]);return(0,d.jsxs)("div",(0,a.Z)({},x,{className:g,ref:t,children:[(s||o)&&(0,d.jsxs)("div",{className:n+"-head",children:[s&&(0,d.jsx)("div",{className:n+"-head-title",children:s}),o&&(0,d.jsx)("div",{className:n+"-extra",children:o})]}),v&&(0,d.jsx)("div",{className:[n+"-body",f].filter(Boolean).join(" ").trim(),style:m,children:v}),c&&(0,d.jsx)("div",{className:n+"-footer",children:c})]}))}));function Ye(e,t){var{position:n=0,direction:r="horizontal",width:i=400,height:s=200,palyTime:o=2e3,scrollTime:c=200,autoPlay:u=!0,afterChange:h,beforeChange:p,prefixCls:m="w-carousel",className:f,style:v}=e,x=(0,l.useMemo)((()=>[m,f].filter(Boolean).join(" ").trim()),[m,f]),[g,y]=(0,l.useState)(n),[j,b]=(0,l.useState)(.001*c+"s ease-in-out"),w=(0,l.useRef)(g),C=l.Children.count(e.children)+1,N=(0,l.useRef)({stop:()=>{},after:h,before:p});l.useImperativeHandle(t,(()=>({gotoSlide:k,prevSlide:()=>k(w.current-1),nextSlide:()=>k(w.current+1),stopPlay:()=>N.current.stop()})),[t]);var k=e=>{N.current.stop();var t=C-1,n=e>t?t:e;n=e<0?0:n,w.current=n,y(n),S()},S=function(e){if(void 0===e&&(e=o),u){var t=setInterval((()=>{null==N.current.after||N.current.after(w.current),w.current++,w.current>=C&&(w.current=0),y(w.current),null==N.current.before||N.current.before(w.current)}),e);N.current.stop=()=>{clearInterval(t)}}};(0,l.useEffect)((()=>(S(),()=>{N.current.stop()})),[u]),(0,l.useEffect)((()=>{var t;return C===g+1&&(t=setTimeout((()=>{N.current.before=()=>{b(.001*c+"s ease-in-out"),N.current.before=e.beforeChange},b("none"),k(0)}),c)),()=>{clearTimeout(t)}}),[g]);var Z=l.Children.map(e.children,(e=>(0,d.jsx)("div",{style:(0,a.Z)({width:i,height:s},v),children:e}))),E=(0,l.useMemo)((()=>{var e={transform:"",display:""};switch(r){case"horizontal":e.transform="translate3d("+-g*i+"px, 0px, 0px)",e.display="flex";break;case"vertical":e.transform="translate3d(0px, "+-g*s+"px, 0px)",e.display="block"}return e}),[r,g,i,s]);return(0,d.jsx)("div",{className:x,style:{width:i,height:s},children:(0,d.jsxs)("div",{className:x+"-content",style:(0,a.Z)({width:i*C,transition:j},E),children:[Z,(0,d.jsx)("div",{style:(0,a.Z)({width:i,height:s},v),children:null==Z?void 0:Z[0]})]})})}const $e=l.forwardRef(Ye);var Ue=["prefixCls","placement","className","menu","children","disabled"];function Je(e){var{prefixCls:t="w-dropdown",placement:n="bottomLeft",className:i,menu:s,children:o,disabled:c}=e,u=(0,r.Z)(e,Ue),h=(0,l.useMemo)((()=>[t,i].filter(Boolean).join(" ").trim()),[t,i]);return(0,d.jsx)(ce,(0,a.Z)({isOutside:!0,autoAdjustOverflow:!0,className:h,disabled:c,placement:n},u,{overlay:s,children:l.cloneElement(o,Object.assign({},o.props))}))}var Ge=["prefixCls","className","tagName","children","disabled","multiline","icon","text","active","addonAfter","isSubMenuItem"],qe={href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1};function Xe(e,t){var{prefixCls:n="w-menu-item",className:i,tagName:s="a",disabled:o=!1,multiline:c=!1,icon:u,text:h,active:p=!1,addonAfter:m,isSubMenuItem:f}=e,v=(0,r.Z)(e,Ge),x=[n,p?"active":null,o?"w-disabled":null,i].filter(Boolean).join(" ").trim(),g=l.createElement(s,(0,a.Z)({},v,o?qe:{},{className:x,ref:t}),(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(w,{className:n+"-icon",type:u}),(0,d.jsx)("div",{className:[n&&n+"-text",!c&&n+"-multiline"].filter(Boolean).join(" ").trim(),children:h}),m]}));return f?g:(0,d.jsxs)("li",{children:[" ",g," "]})}var Qe=l.forwardRef(Xe);Qe.displayName="uiw.MenuItem";var et=["prefixCls","className","title"],tt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-menu-divider",className:l,title:i}=e,s=(0,r.Z)(e,et),o=[n,l].filter(Boolean).join(" ").trim();return i?(0,d.jsx)("li",(0,a.Z)({},s,{ref:t,className:o,"data-menu":"divider",children:(0,d.jsx)("strong",{children:i})})):(0,d.jsx)("li",(0,a.Z)({},s,{ref:t,className:o}))}));tt.displayName="uiw.MenuDivider";var nt=["prefixCls","className","disabled","overlayProps","children","collapse","inlineIndent","inlineCollapsed"];function rt(e){var{prefixCls:t,collapse:n,isOpen:r}=e;return(0,l.useMemo)((()=>(0,d.jsx)(w,{type:"caret-right",className:[t?t+"-collapse-icon":null,!n&&r?"w-open":null,n||r?null:"w-close"].filter(Boolean).join(" ").trim()})),[t,n,r])}var at=l.forwardRef((function(e,t){var{prefixCls:n="w-menu-subitem",className:i,disabled:s,overlayProps:o={},children:c,collapse:u=!1,inlineIndent:h}=e,p=(0,r.Z)(e,nt),m={},f={bordered:!0,children:c,inlineIndent:h,className:[n?n+"-overlay":null].filter(Boolean).join(" ").trim()},v=l.useRef(null),x=l.useRef(),g=l.useRef(),[y,j]=(0,l.useState)(!!o.isOpen),{height:b,setContextHeight:w,ele:C}=(0,l.useContext)(it);return l.useEffect((()=>{if(x.current&&x.current.style&&C===g.current){var e=Number(x.current.style.height.substr(0,x.current.style.height.length-2));x.current.getBoundingClientRect().height<e?x.current.style.height=e+"px":x.current.style.height=e+b+"px"}}),[b,C]),(0,l.useMemo)((()=>{u&&j(!1)}),[u]),u?(m.className=n+"-popup",m.trigger="hover",m.usePortal=!0,f.onClick=function(e){var t=e.currentTarget,n=e.relatedTarget||e.nativeEvent.target;t.children.length<1||function(e){var t=!1;if(e)do{e.dataset.menu||(t=!0),e.dataset.menu&&/^(subitem|divider)$/.test(e.dataset.menu)&&(t=!1)}while(!e.dataset.menu&&(e=e.parentNode));return t}(n)&&v.current&&v.current.hide()}):(delete f.onClick,f.bordered=!1,m.className=n+"-collapse",m.appear=!1,m.isOutside=!0,m.isClickOutside=!1,m.unmountOnExit=!1,m.trigger="click",m.transitionName=""+n,m.onExit=function(e){e.style.height=e.scrollHeight+"px",j(!1)},m.onExiting=function(e){e.style.height="0px",v.current&&v.current.overlayDom.current&&w({height:-v.current.overlayDom.current.getBoundingClientRect().height,ele:g.current})},m.onEnter=function(e){e.style.height="0px",x.current=e,j(!0),v.current&&v.current.overlayDom.current&&w({height:v.current.overlayDom.current.getBoundingClientRect().height,ele:g.current})},m.onEntered=function(e){v.current&&v.current.overlayDom.current&&(e.style.height=v.current.overlayDom.current.getBoundingClientRect().height+"px")},m.onEntering=function(e){e.style.height=e.scrollHeight+"px"}),(0,d.jsx)("li",{"data-menu":"subitem",ref:t,onClick:e=>{u?e.stopPropagation():g.current=e.target},children:(0,d.jsx)(ce,(0,a.Z)({placement:"rightTop",autoAdjustOverflow:!0,disabled:s,isOpen:y,usePortal:!1,isOutside:!0},m,o,{ref:v,overlay:(0,d.jsx)(st,(0,a.Z)({},f,{style:u?{}:{paddingLeft:h}})),children:(0,d.jsx)(Qe,(0,a.Z)({},p,{ref:null,disabled:s,isSubMenuItem:!0,addonAfter:(0,d.jsx)(rt,{collapse:u,prefixCls:n,isOpen:y}),className:[n?n+"-title":null,u?null:n+"-collapse-title",i].filter(Boolean).join(" ").trim()}))}))})}));at.displayName="uiw.SubMenu";var lt=["prefixCls","className","children","bordered","theme","inlineIndent","inlineCollapsed"],it=(0,l.createContext)({}),st=l.forwardRef(((e,t)=>{var{prefixCls:n="w-menu",className:i,children:s,bordered:o,theme:c="light",inlineIndent:u=10,inlineCollapsed:h}=e,p=(0,r.Z)(e,lt),m=(0,l.useMemo)((()=>[n,o?"w-bordered":null,h?n+"-inline-collapsed":null,c?n+"-"+c:null,i].filter(Boolean).join(" ").trim()),[n,o,h,c,i]);return(0,d.jsx)("ul",(0,a.Z)({},p,{ref:t,className:m,"data-menu":"menu",children:l.Children.map(s,((e,t)=>{if(!l.isValidElement(e))return e;var n={};return e.props.children&&e.type===at&&(n.inlineIndent=u),l.cloneElement(e,Object.assign((0,a.Z)({},n),e.props,{key:""+t}))}))}))})),ot=(e,t)=>{var[n,r]=l.useState({height:0,ele:null});return(0,d.jsx)(it.Provider,{value:(0,a.Z)({},n,{setContextHeight:r}),children:(0,d.jsx)(st,(0,a.Z)({},e,{ref:t}))})},ct=l.forwardRef(ot);st.displayName="uiw.Menu",ct.displayName="uiw.Menu",ct.Item=Qe,ct.SubMenu=at,ct.Divider=tt;const dt=ct;const ut=function(e){var{value:t,onChange:n,onSearch:r,expandTrigger:i="click",size:s,disabled:o,allowClear:c,placeholder:u,prefixCls:h="w-cascader",className:p,style:m={width:200},option:f=[],others:v,inputProps:x}=e,g=[h,p].filter(Boolean).join(" ").trim(),[y,j]=(0,l.useState)(!1),[b,C]=(0,l.useState)([]),[N,k]=(0,l.useState)(""),[S,Z]=(0,l.useState)(""),[E,P]=(0,l.useState)(!1),[M,B]=(0,l.useState)(""),[z,L]=(0,l.useState)();(0,l.useEffect)((()=>{if(r){var e=[];O(f,(t=>{var n=t.map((e=>e.label)).join(" / ");e.push({label:n,options:t})})),L(e)}}),[r]);var O=function e(t,n,r){void 0===r&&(r=[]),t.map((t=>{var a=[...r,t];t.children?e(t.children,n,a):null==n||n(a)}))};function D(e){var t;t="enter"===e&&c&&b.length>0?"close":"",k(t)}(0,l.useEffect)((()=>{if(t){var e=[],n=f;null==t||t.map((t=>{var r=n.find((e=>e.value===t));n=(null==r?void 0:r.children)||[],e.push((0,a.Z)({label:t,value:t},r))})),C(e)}}),[t]);var R=(e,t)=>{C([...t]);var r=t.map((e=>e.value));null==n||n(e,r,t)},A=.7*(null==m?void 0:m.width)||void 0,T=(0,l.useMemo)((()=>(e,t)=>{var n={onClick:()=>{},onMouseOver:()=>{}},r=()=>{e()};return"click"===i||t?n.onClick=r:"hover"===i&&(n.onMouseOver=r),n}),[]),I=function(e,t){if(void 0===t&&(t=0),e)return(0,d.jsx)(dt,{bordered:!0,style:{minHeight:25,minWidth:A,overflowY:"scroll",width:A},children:e&&0!==e.length?e.map(((e,n)=>{var r,l,i=(null==(r=b[t])?void 0:r.value)===e.value;return(0,d.jsx)(dt.Item,(0,a.Z)({active:i,text:e.label,addonAfter:e.children?(0,d.jsx)(w,{type:"right"}):void 0},T((()=>{((e,t)=>{b.splice(t,b.length-t,e),e.children||j(!1),R(!0,b)})(e,t)}),!(null!=(l=e.children)&&l.length))),n)})):(0,d.jsx)("div",{style:{color:"#c7c7c7",fontSize:12},children:"\u6ca1\u6709\u6570\u636e"})},t)};return(0,l.useEffect)((()=>{var e=b.map((e=>e.label)).join(" / ");B(e)}),[b]),(0,d.jsx)(Je,(0,a.Z)({className:g,trigger:"click",style:{marginTop:5},overlayStyl:{width:100},disabled:o},v,{onVisibleChange:function(e){j(e)},isOpen:y,menu:S?(0,d.jsx)(dt,{bordered:!0,style:{minHeight:25,minWidth:null==m?void 0:m.width,overflowY:"scroll",width:null==m?void 0:m.width},children:z&&0!==z.length?z.filter((e=>e.label.includes(S.trim()))).map(((e,t)=>(0,d.jsx)(dt.Item,{text:e.label,onClick:()=>{return t=e.options,Z(""),j(!1),void R(!1,t);var t}},t))):(0,d.jsx)("div",{style:{color:"#c7c7c7",fontSize:12},children:"\u6ca1\u6709\u6570\u636e"})}):(0,d.jsx)("div",{style:{display:"flex"},children:new Array(b.length+1).fill(0).map(((e,t)=>{var n,r=t?null==(n=b[t-1])?void 0:n.children:f;return I(r,t)})).filter((e=>!!e))}),children:(0,d.jsx)("span",{onMouseLeave:()=>D("leave"),onMouseOver:()=>D("enter"),children:(0,d.jsx)(fe,(0,a.Z)({},x,{value:E?S:M,onChange:e=>{y||j(!y);var t=e.target.value;r&&(e=>{Z(e)})(t)},size:s,disabled:o,placeholder:E?M:u,style:m,onFocus:()=>r&&P(!0),onBlur:()=>r&&P(!1),readOnly:!r,addonAfter:(0,d.jsx)("span",{style:{width:"auto"},children:!o&&"close"===N&&(0,d.jsx)(w,{type:N,onClick:e=>{e.stopPropagation(),R(!1,[])},className:h+"-close"})})}))})}))};var ht=["prefixCls","type","disabled","value","className","style","children","size","checked","onChange"],pt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-radio",type:i="radio",disabled:s=!1,value:o="",className:c,style:u,children:h,size:p,checked:m=!1,onChange:f}=e,v=(0,r.Z)(e,ht),[x,g]=(0,l.useState)(m),[y,j]=(0,l.useState)();m!==y&&j(m),(0,l.useMemo)((()=>{m!==y&&g(m)}),[y]);var b=[n,c,s?"disabled":null,p?n+"-"+p:null].filter(Boolean).join(" ").trim();(0,l.useMemo)((()=>{x!==e.checked&&g(!!e.checked)}),[e.checked]);var w=h||o;return(0,d.jsxs)("label",{className:b,style:u,children:[(0,d.jsx)("input",(0,a.Z)({},(0,a.Z)({},v,{type:i,disabled:s,value:o}),{checked:x,onChange:function(e){e.persist(),g(e.target.checked),f&&f(e)},ref:t})),w&&(0,d.jsx)("div",{className:n+"-text",children:w})]})}));const mt=l.forwardRef(((e,t)=>(0,d.jsx)(pt,(0,a.Z)({ref:t},e))));var ft=["prefixCls","className","name","value","onChange","children"];const vt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-radio-group",className:i,name:s,value:o,onChange:c,children:u}=e,h=(0,r.Z)(e,ft);return(0,d.jsx)("div",(0,a.Z)({},h,{ref:t,className:[n,i].filter(Boolean).join(" ").trim(),children:(0,d.jsx)($,{children:l.Children.toArray(u).map((e=>{if(e)return l.isValidElement(e)?l.cloneElement(e,(0,a.Z)({},e.props||{},{checked:e.props.value===o,name:s,onChange:c})):e}))})}))}));var xt=["prefixCls","type","disabled","value","className","style","children","size","checked","onChange"],gt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-radio",type:i="button",disabled:s=!1,value:o="",className:c,style:u,children:h,size:p="small",checked:m=!1,onChange:f}=e,v=(0,r.Z)(e,xt),[x,g]=(0,l.useState)(m),[y,j]=(0,l.useState)();m!==y&&j(m),(0,l.useMemo)((()=>{m!==y&&g(m)}),[y]);var b=[n,c,s?"disabled":null,p?n+"-"+p:null].filter(Boolean).join(" ").trim();(0,l.useMemo)((()=>{x!==e.checked&&g(!!e.checked)}),[e.checked]),console.log("props.checked",e.checked);var w=h||o;return(0,d.jsx)(N,(0,a.Z)({},(0,a.Z)({},v,{className:b,style:u,disabled:s,value:o}),{type:x?"primary":"light",ref:t,onClick:function(e){e.persist(),x||(g(!x),f&&f(o))},children:w}))}));const yt=gt;var jt=["prefixCls","className","name","value","onChange"],bt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-checkbox-group",className:i,name:s,value:o,onChange:c}=e,u=(0,r.Z)(e,jt),h=(0,l.useRef)([]),p=[n,i].filter(Boolean).join(" ").trim(),m=l.Children.toArray(e.children);return(0,l.useMemo)((()=>h.current=o||[]),[o]),(0,d.jsx)("div",(0,a.Z)({},u,{className:p,ref:t,children:l.Children.map(m,(e=>{if(l.isValidElement(e))return Array.isArray(o)&&e&&e.props&&e.props.value&&o.includes(e.props.value)&&(h.current.includes(e.props.value)||h.current.push(e.props.value)),l.cloneElement(e,Object.assign({},e.props,{name:s,checked:h.current.includes(e.props.value),onChange:t=>{if(!t.target.type||"checkbox"===t.target.type){var n=t.target.checked,r=h.current.includes(e.props.value);!r&&n?h.current.push(e.props.value):r&&!n&&(h.current=h.current.filter((t=>t!==e.props.value))),c&&c(t,h.current)}}}))}))}))})),wt=["className","prefixCls","type","indeterminate","disabled","value"];function Ct(e,t){var{className:n,prefixCls:l="w-checkbox",type:i="checkbox",indeterminate:s=!1,disabled:o=!1,value:c=""}=e,u=(0,r.Z)(e,wt),h=[n,s&&"indeterminate"].filter(Boolean).join(" ").trim();return(0,d.jsx)(pt,(0,a.Z)({ref:t},u,{type:i,prefixCls:l,disabled:o,value:c,className:h}))}var Nt=l.forwardRef(Ct);Nt.Group=bt;const kt=Nt;var St=["prefixCls","className","icon","children","isActive","onItemClick","disabled","showArrow","header","extra"];function Zt(e){var{children:t,prefixCls:n}=e;return t?(0,d.jsx)("div",{className:n+"-extra",children:t}):null}var Et=["prefixCls","className","children","accordion","bordered","showArrow","activeKey","onChange"];function Pt(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t}function Mt(e,t){var{prefixCls:n="w-collapse",className:i,children:s,accordion:o=!1,bordered:c,showArrow:u=!0,activeKey:h,onChange:p}=e,m=(0,r.Z)(e,Et),[f,v]=(0,l.useState)(Pt(h)),x=[n,i,c?"w-noborder":null].filter(Boolean).join(" ").trim();return(0,l.useMemo)((()=>{h!==f&&v(Pt(h))}),[h]),(0,l.useMemo)((()=>{h!==f&&p&&p(f)}),[f,h]),(0,d.jsx)("div",(0,a.Z)({className:x},m,{ref:t,children:l.Children.map(s,((e,t)=>{var r=e.key||String(t),{disabled:i}=e.props,s=!1;s=o?f[0]===r:f.indexOf(r)>-1;var c=(0,a.Z)({prefixCls:n,isActive:s,disabled:i,showArrow:u,onItemClick:i?()=>{}:()=>function(e){var t=f;if(o)t=t[0]===e?[]:[e];else{var n=(t=[...t]).indexOf(e);n>-1?t.splice(n,1):t.push(e)}v(t)}(r)},e.props);return l.cloneElement(e,c)}))}))}var Bt=l.forwardRef(Mt);Bt.displayName="Collapse",Bt.Panel=function(e){var{prefixCls:t="w-collapse",className:n,icon:i="down",children:s,isActive:o,onItemClick:c,disabled:u=!1,showArrow:h,header:p,extra:f}=e,v=(0,r.Z)(e,St),x=[t?t+"-item":null,n,o?t+"-active":null,u?t+"-disabled":null].filter(Boolean).join(" ").trim(),g="string"===typeof i?(0,d.jsx)(w,{type:i}):i;function y(e,t){t&&("exited"!==e&&"exiting"!==e||(t.style.height="1px"),"entered"!==e&&"entering"!==e||(t.style.height=function(e){var t=e.children,n=0,r=getComputedStyle(e,"::before"),a=getComputedStyle(e,"::after"),l=parseInt(r.height)||0,i=parseInt(a.height)||0;if(n+=l+i,0===t.length)return n;for(var s=0;s<t.length;s++){var o=t[s],c=getComputedStyle(o);n+=o.offsetHeight+parseInt(c.marginTop)+parseInt(c.marginBottom)+parseInt(c.borderTopWidth)+parseInt(c.borderBottomWidth)+parseInt(c.paddingTop)+parseInt(c.paddingBottom);var d=getComputedStyle(o,"::before"),u=getComputedStyle(o,"::after");n+=(parseInt(d.height)||0)+(parseInt(u.height)||0)}return n}(t)+"px"))}return(0,d.jsxs)("div",(0,a.Z)({className:x},v,{children:[(0,d.jsxs)("div",{className:t+"-header",onClick:c,children:[h&&g,(0,d.jsx)("span",{className:t+"-title",children:p}),(0,d.jsx)(Zt,{prefixCls:t,children:f})]}),(0,d.jsx)(m.Z,{in:o,unmountOnExit:!1,timeout:300,classNames:t+"-panel",children:e=>{return l.cloneElement((0,d.jsx)("div",{children:s}),{className:t+"-panel",style:(n=s,Object.assign({},n&&n.props?n.props.style:{},{transitionDuration:"300ms"})),ref:t=>y(e,t)});var n}})]}))};const zt=Bt;var Lt=n(3376),Ot=n.n(Lt),Dt=["prefixCls","className","text","children","onClick"];function Rt(e){var{prefixCls:t="w-copy-to-clipboard",className:n,text:l="",children:i,onClick:s=(()=>null)}=e,o=(0,r.Z)(e,Dt);var c=(0,a.Z)({},o,{className:[t,n].filter(Boolean).join(" ").trim(),onClick:function(e){if(!l)return s("",!1,e);Ot()(l,(t=>{s(l,t,e)}))}});return(0,d.jsxs)("span",(0,a.Z)({},c,{children:[(0,d.jsx)("span",{className:t+"-select",children:l}),i]}))}var At=["prefixCls","bodyStyle","className","popoverProps","datePickerProps","allowClear","format","onChange","value"];function Tt(e){var{prefixCls:t="w-dateinputrange",bodyStyle:n,className:i,popoverProps:s,datePickerProps:o,allowClear:c=!0,format:u="YYYY/MM/DD",onChange:h,value:p}=e,m=(0,r.Z)(e,At),[f,v]=(0,l.useState)([]);function x(e,t){var n=[...f];n[t]=e,v(n),h&&h(e,n)}return(0,l.useEffect)((()=>{var e=[],t=p;Array.isArray(t)&&null!=t&&t.length&&t.forEach(((n,r)=>{e[r]="string"===typeof t[r]?new Date(n):n})),v(e)}),[JSON.stringify(p)]),(0,d.jsxs)("div",{className:[t+"-contents",t+"-inner"].filter(Boolean).join(" ").trim(),style:(0,a.Z)({width:300},n),children:[(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0},s,{content:(0,d.jsx)(Te,(0,a.Z)({date:f[0],className:t+"-popover"},o,{onChange:e=>x(e,0)})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",readOnly:!0},m,{value:f[0]?(0,U.Z)(u,f[0]):"",className:[t,i].filter(Boolean).join(" ").trim()}))})),(0,d.jsx)(w,{type:"swap-right",verticalAlign:"baseline",style:{fontSize:21,top:-1,margin:"0px 8px 0px 5px"}}),(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0},s,{content:(0,d.jsx)(Te,(0,a.Z)({date:f[1],className:t+"-popover"},o,{onChange:e=>x(e,1)})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",readOnly:!0},m,{value:f[1]?(0,U.Z)(u,f[1]):"",className:[t,i].filter(Boolean).join(" ").trim()}))})),c&&f.length>0&&(0,d.jsx)(w,{className:t+"-close-btn",color:"#a5a5a5",onClick:()=>(v([]),void(h&&h(void 0,[]))),type:"close"})]})}var It=["prefixCls","className","popoverProps","datePickerProps","allowClear","autoClose","format","onChange"];function Ft(e){var{prefixCls:t="w-dateinput",className:n,popoverProps:i,datePickerProps:s,allowClear:o=!0,autoClose:c=!1,format:u="YYYY/MM/DD",onChange:h}=e,p=(0,r.Z)(e,It),[m,f]=(0,l.useState)(e.value),v=m||"";function x(e){c&&y(!1),f(e),h&&h(e)}p.value="string"===typeof v?v:(0,U.Z)(u,v),(0,l.useEffect)((()=>{e.value!==m&&f(e.value)}),[e.value]),o&&p.value&&(p.addonAfter=(0,d.jsx)(w,{className:t+"-close-btn",onClick:()=>x(void 0),type:"close"}));var[g,y]=(0,l.useState)(!1);return(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0,isOpen:g,onVisibleChange:e=>y(e)},i,{content:(0,d.jsx)(Te,(0,a.Z)({date:v&&new Date(v)||void 0,className:t+"-popover"},s,{onChange:e=>x(e)})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",readOnly:!0},p,{className:[t,n].filter(Boolean).join(" ").trim()}))}))}const Ht=e=>{var{children:t}=e;return t};var Wt=["prefixCls","className","tagName","layout","bordered","label","isLastCell","colon","span","children","column"];const _t=function(e){void 0===e&&(e={});var{prefixCls:t,className:n,tagName:i="td",layout:s,bordered:o,label:c,colon:u,span:h,children:p}=e,m=(0,r.Z)(e,Wt),f={className:[t?t+"-item-label":null,n,u?t+"-item-colon":null,c?null:t+"-item-no-label"].filter(Boolean).join(" ").trim()};return"horizontal"===s?o?(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("th",(0,a.Z)({},f,{children:c})),(0,d.jsx)(i,(0,a.Z)({},m,{colSpan:h?2*h-1:h,className:t?t+"-item-content":"",children:p}))]}):(0,d.jsxs)(i,(0,a.Z)({},m,{colSpan:h,children:[(0,d.jsx)("span",(0,a.Z)({},f,{children:c})),(0,d.jsx)("span",{className:t?t+"-item-content":"",children:p})]})):(0,d.jsx)(i,{colSpan:h,className:t+"-item-"+("td"===i?"content":"label"),children:p})};function Vt(e){void 0===e&&(e={});var{prefixCls:t,layout:n,bordered:r,column:i,colon:s,children:o=[]}=e;function c(e){return o.map(((c,d)=>(0,l.createElement)(_t,(0,a.Z)({},c.props,{prefixCls:t,key:d,column:i,tagName:e?"th":"td",isLastCell:o.length-1===d,layout:n,colon:s,bordered:r}),e?c.props.label:c.props.children)))}var u=t?t+"-row":"";return(0,d.jsxs)(l.Fragment,{children:["vertical"===n&&(0,d.jsx)("tr",{className:u,children:c(!0)}),(0,d.jsx)("tr",{className:u,children:c()})]})}var Kt=["prefixCls","className","title","bordered","column","size","colon","children","layout"];function Yt(e,t){var{prefixCls:n="w-descriptions",className:i,title:s,bordered:o,column:c=3,size:u,colon:h=!0,children:p,layout:m="horizontal"}=e,f=(0,r.Z)(e,Kt),v=[n,i,n&&m?n+"-"+m:null,o?n+"-bordered":null,u?n+"-"+u:null].filter(Boolean).join(" ").trim(),x=((e,t)=>{var n,r=[],a=null;return e.forEach(((i,s)=>{var o=i;a||(n=t,a=[],r.push(a)),s===e.length-1&&(o=l.cloneElement(o,{span:n}));var{span:c=1}=o.props;a.push(o),(n-=c)<=0&&(a=null)})),r})(l.Children.toArray(p),c);return(0,d.jsx)("div",{className:v,ref:t,children:(0,d.jsxs)("table",(0,a.Z)({},f,{children:[s&&(0,d.jsx)("caption",{className:n+"-title",children:s}),(0,d.jsx)("tbody",{className:n+"-tbody",children:x.map(((e,t)=>(0,d.jsx)(Vt,{prefixCls:n,bordered:o,colon:h,column:c,layout:m,children:e},t)))})]}))})}var $t=l.forwardRef(Yt);$t.Item=Ht;const Ut=$t;var Jt=["prefixCls","className","children","dashed","type","align"];const Gt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-divider",className:l,children:i,dashed:s=!1,type:o="horizontal",align:c="center"}=e,u=(0,r.Z)(e,Jt),h=[l,n,n&&o?n+"-"+o:null,n&&c?n+"-"+c:null,i?n+"-with-text":null,s?n+"-dashed":null].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:h},u,{ref:t,children:i&&(0,d.jsx)("span",{className:n+"-inner-text",children:i})}))}));var qt=["prefixCls","className","style","placement","size","title","footer","icon","isCloseButtonShown","bodyProps","timeout","isOpen","maskClosable"];const Xt=function(e){void 0===e&&(e={});var{prefixCls:t="w-drawer",className:n,style:i,placement:s="right",size:o=260,title:c,footer:u,icon:h,isCloseButtonShown:p=!0,bodyProps:m,timeout:f=300,isOpen:v=!1,maskClosable:x=!0}=e,g=(0,r.Z)(e,qt),j=[n,t,s].filter(Boolean).join(" ").trim(),b=[m?m.className:null,t?t+"-body-inner":null].filter(Boolean).join(" ").trim(),C=(0,a.Z)({},i,{[/^(top|bottom)$/.test(s)?"height":"width"]:o}),k=(0,l.useMemo)((()=>u?(0,d.jsx)("div",{className:t+"-footer",children:u}):null),[u]),S=(0,l.useMemo)((()=>h?(0,d.jsx)(w,{type:h}):null),[h]),Z=(0,l.useMemo)((()=>c?(0,d.jsx)("h4",{children:c}):null),[c]);return(0,d.jsx)(y,(0,a.Z)({className:j,timeout:f,isOpen:v,maskClosable:x},g,{children:(0,d.jsxs)("div",{className:t+"-wrapper",style:C,children:[(c||h)&&(0,d.jsxs)("div",{className:t+"-header",children:[S,Z,c&&p&&(0,d.jsx)(N,{basic:!0,onClick:e.onClose,icon:"close",type:"light"})]}),(0,d.jsx)("div",{className:t+"-body",children:(0,d.jsx)("div",(0,a.Z)({},m,{className:b,children:e.children}))}),k]})}))};var Qt=["prefixCls","className","icon","iconProps","size","description","children"];const en=e=>{var{prefixCls:t="w-empty",className:n,icon:l,iconProps:i,size:s=64,description:o="\u6682\u65e0\u6570\u636e",children:c}=e,u=(0,r.Z)(e,Qt),h=[t,n].filter(Boolean).join(" ").trim();return(0,d.jsxs)("div",(0,a.Z)({className:h},u,{children:[(0,d.jsx)("div",{className:t+"-icon",children:l||(0,d.jsxs)("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:s,height:s},i,{children:[(0,d.jsx)("path",{d:"M20.48 860.16a491.52 102.4 0 1 0 983.04 0 491.52 102.4 0 1 0-983.04 0Z",fill:"#F5F5F5"}),(0,d.jsx)("path",{d:"M225.28 409.6l573.44-8.06912 112.78336 183.296H102.4z",fill:"#C4C5C7"}),(0,d.jsx)("path",{d:"M266.24 61.44h491.52a40.96 40.96 0 0 1 40.96 40.96v532.48a40.96 40.96 0 0 1-40.96 40.96H266.24a40.96 40.96 0 0 1-40.96-40.96V102.4a40.96 40.96 0 0 1 40.96-40.96z",fill:"#F5F5F7"}),(0,d.jsx)("path",{d:"M348.16 143.36h327.68a40.96 40.96 0 0 1 40.96 40.96v122.88a40.96 40.96 0 0 1-40.96 40.96H348.16a40.96 40.96 0 0 1-40.96-40.96V184.32a40.96 40.96 0 0 1 40.96-40.96zM327.68 409.6h368.64a20.48 20.48 0 0 1 0 40.96H327.68a20.48 20.48 0 0 1 0-40.96zM327.68 491.52h368.64a20.48 20.48 0 0 1 0 40.96H327.68a20.48 20.48 0 0 1 0-40.96z",fill:"#EBECEC"}),(0,d.jsx)("path",{d:"M673.44384 607.58016v13.43488c0 25.14944-20.0704 45.52704-44.8512 45.52704H382.95552l-2.2528-0.06144c-23.7568-1.16736-42.63936-21.07392-42.63936-45.4656v-13.45536c0-12.55424-10.0352-22.7328-22.44608-22.7328H102.4v250.30656C102.4 860.2624 122.49088 880.64 147.29216 880.64h719.31904c24.7808 0 44.89216-20.3776 44.89216-45.50656V584.82688H695.88992c-12.3904 0-22.44608 10.17856-22.44608 22.7328z",fill:"#E0E0E0"})]}))}),o&&(0,d.jsx)("div",{className:t+"-description",children:o}),c&&(0,d.jsx)("div",{className:t+"-footer",children:c})]}))};var tn=["className","dataLabel","prefixCls"];const nn=l.forwardRef(((e,t)=>{var{className:n,dataLabel:l="Browse",prefixCls:i="w-fileinput"}=e,s=(0,r.Z)(e,tn),o=[i,n].filter(Boolean).join(" ").trim();return(0,d.jsx)(fe,(0,a.Z)({ref:t,"data-label":l,className:o},s,{type:"file"}))}));const rn=e=>{var{className:t,prefixCls:n="w-fileinput-list",dataList:r=[],uploadType:a,size:i="middle",shape:s="round",readonly:o,children:c,showFileIcon:u={showPreviewIcon:!0,showRemoveIcon:!0},onPreview:h,onAdd:p,onRemove:m}=e,f=[n,n+"-size-"+i,n+"-shape-"+s,t].filter(Boolean).join(" ").trim();return(0,d.jsxs)("div",{className:f,children:[c&&!o&&l.isValidElement(c)&&l.cloneElement(c,{onClick:p}),(0,d.jsx)("div",{children:r.map(((e,t)=>(0,d.jsxs)("div",{className:n+"-"+a,children:["picture"===a&&(0,d.jsxs)("div",{className:n+"-info "+n+"-"+a+"-info",children:[(0,d.jsx)("img",{src:e.dataURL,alt:""}),(null==u?void 0:u.showPreviewIcon)&&(0,d.jsx)("div",{className:n+"-actions",children:(0,d.jsx)("span",{className:n+"-actions-search",onClick:()=>null==h?void 0:h(e),children:(0,d.jsx)(w,{type:"search",style:{color:"#fff",fontSize:16}})})})]}),(0,d.jsx)("div",{className:n+"-"+a+"-text",children:e.name}),(null==u?void 0:u.showRemoveIcon)&&(0,d.jsx)("div",{className:n+"-"+a+"-icon",onClick:()=>null==m?void 0:m(t),children:(0,d.jsx)(w,{type:"delete",style:{color:"#999"}})})]},t)))})]})};const an=e=>{var{className:t,prefixCls:n="w-fileinput-card",dataList:r=[],maxNumber:a=3,shape:l="round",size:i="middle",readonly:s,children:o,showFileIcon:c={showPreviewIcon:!0,showRemoveIcon:!0},onAdd:u,onPreview:h,onRemove:p}=e,m=[n,n+"-size-"+i,n+"-shape-"+l,t].filter(Boolean).join(" ").trim(),f=!(!c.showPreviewIcon&&!c.showRemoveIcon);return(0,d.jsxs)("div",{className:m,children:[r.map(((e,t)=>(0,d.jsxs)("div",{className:n+"-box",children:[(0,d.jsx)("div",{className:n+"-box-info",children:(0,d.jsx)("img",{src:e.dataURL,alt:""})}),(0,d.jsxs)("div",{className:f?n+"-actions":"",children:[(null==c?void 0:c.showPreviewIcon)&&(0,d.jsx)("span",{className:n+"-actions-remove",onClick:()=>null==h?void 0:h(e),children:(0,d.jsx)(w,{type:"search",style:{color:"#fff",fontSize:16}})}),(null==c?void 0:c.showRemoveIcon)&&(0,d.jsx)("span",{className:n+"-actions-remove",onClick:()=>null==p?void 0:p(t),children:(0,d.jsx)(w,{type:"delete",style:{color:"#fff",fontSize:16}})})]})]},t))),a>r.length&&!s&&(0,d.jsx)("div",{className:n+"-box "+n+"-btn",onClick:u,children:o})]})};var ln=e=>{var t=new FileReader;return new Promise((n=>{t.addEventListener("load",(()=>n(String(t.result)))),t.readAsDataURL(e)}))};const sn=e=>{var{uploadType:t,value:n=[],multiple:r=!1,maxNumber:i=3,onChange:s}=e,o=(0,l.useRef)(null),c=n||[],[u,h]=(0,l.useState)([]);(0,l.useEffect)((()=>{h(c)}),[n]);var m,f=(0,l.useCallback)((()=>(e=>{e.current&&e.current.click()})(o)),[o]),v=(0,l.useCallback)((()=>{o.current&&(o.current.value=""),f()}),[f]),x=function(){var e=(0,p.Z)((function*(e){var t=e.target.files;if(t){var n=yield((e,t)=>{for(var n=[],r=0;r<e.length;r+=1)n.push(ln(e[r]));return Promise.all(n).then((n=>n.map(((n,r)=>({[t]:n,file:e[r],name:e[r].name})))))})(t,"dataURL"),r=[...u,...n];i<r.length&&(r=r.slice(0,i)),h(r),null==s||s(r)}}));return function(t){return e.apply(this,arguments)}}();return"card"===t&&(m=an),"picture"!==t&&"text"!==t||(m=rn),(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("input",{type:"file",ref:o,multiple:r,style:{display:"none"},onChange:x}),m&&(0,d.jsx)(m,(0,a.Z)({},e,{maxNumber:i||3,dataList:u,onAdd:v,onRemove:e=>{var t=[...u];t.splice(e,1),h(t),null==s||s(t)}}))]})};const on=function(e){var{uploadType:t="input"}=e;return"input"===t?(0,d.jsx)(nn,(0,a.Z)({},e)):["picture","text","card"].includes(t)?(0,d.jsx)(sn,(0,a.Z)({},e)):null};var cn=["prefixCls","className","fixed","span","grow","align"];function dn(e){void 0===e&&(e={});var{prefixCls:t="w-col",className:n,fixed:l,span:i,grow:s,align:o}=e,c=(0,r.Z)(e,cn),u=[t,n,i?t+"-"+i:null,l?t+"-fixed":null,o?t+"-align-"+o:null,l?t+"-grow-"+s:null].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:u},c,{children:e.children}))}var un=["prefixCls","className","gutter","justify","align"];function hn(e){void 0===e&&(e={});var{prefixCls:t="w-row",className:n,gutter:i=0,justify:s,align:o}=e,c=(0,r.Z)(e,un),u=[t,n,o?t+"-align-"+o:null,s?t+"-justify-"+s:null].filter(Boolean).join(" ").trim(),h=i?{paddingLeft:i/2,paddingRight:i/2}:{};return(0,d.jsx)("div",(0,a.Z)({},c,{className:u,children:l.Children.toArray(e.children).map((e=>l.isValidElement(e)?l.cloneElement(e,Object.assign({},e.props,{style:(0,a.Z)({},e.props.style,h)})):e))}))}var pn=["prefixCls","className","required","style","label","labelFor","labelClassName","labelStyle","help","inline","initialValue","validator","hasError"];class mn extends l.PureComponent{render(){var e=this.props,{prefixCls:t,className:n,required:i,style:s,label:o,labelFor:c,labelClassName:u,labelStyle:h,help:p,inline:m,hasError:f}=e,v=(0,r.Z)(e,pn),x=[t,n,f?t+"-error":null].filter(Boolean).join(" ").trim(),g=["w-form-label",u].filter(Boolean).join(" ").trim();return m?(0,d.jsxs)("div",(0,a.Z)({className:x,style:s},v,{children:[(0,d.jsxs)(hn,{children:[(0,d.jsxs)(dn,{fixed:!0,className:g,children:[i&&(0,d.jsx)("label",{style:{color:"red"},children:"*"}),(0,d.jsx)("label",{style:h,htmlFor:c,children:o})]}),(0,d.jsx)(dn,{className:"w-form-row",children:this.props.children})]}),p&&(0,d.jsx)(hn,{children:(0,d.jsx)(dn,{className:"w-form-help",children:p})})]})):(0,d.jsxs)("div",(0,a.Z)({className:x,style:s},v,{children:[o&&(0,d.jsxs)(l.Fragment,{children:[i&&(0,d.jsx)("label",{style:{color:"red"},children:"*"}),(0,d.jsx)("label",{className:g,style:h,htmlFor:c,children:o})]}),(0,d.jsx)(dn,{className:"w-form-row",children:this.props.children}),p&&(0,d.jsx)("div",{className:"w-form-help",children:p})]}))}}mn.defaultProps={prefixCls:"w-form-item"};var fn=["prefixCls","className","fields","children","resetOnSubmit","onSubmitError","onChange","onSubmit","afterSubmit"],vn=["children","validator","name","help","label","labelFor","labelClassName","labelStyle","inline","initialValue"];function xn(e,t){var{prefixCls:n="w-form",className:i,fields:s,children:o,resetOnSubmit:c,onSubmitError:u,onChange:h,onSubmit:p,afterSubmit:m}=e,f=(0,r.Z)(e,fn),v=(0,l.useMemo)((()=>function(e,t){var n={initial:{},current:{},submitting:!1,errors:{}};for(var r in e){var l=e[r];if(l){var{initialValue:i,currentValue:s}=t((0,a.Z)({},l,{name:r}));n.initial[r]=Array.isArray(i)?[...i]:i,n.current[r]=s}}return n}(s,(e=>{var t,{initialValue:n}=e;return{initialValue:n=null===(t=n)||void 0===t?"":t,currentValue:n}}))),[]),[x,g]=(0,l.useState)(v);(0,l.useImperativeHandle)(t,(()=>({onSubmit:P,resetForm:B,getFieldValues:()=>x.current,getError:()=>x.errors,setFields:S,setFieldValue:Z})),[x]);var y={};for(var j in s){var b=s[j];if(b){var w=x.errors[j];"boolean"===typeof b.initialValue&&(b.checked=b.initialValue);var C=z((0,a.Z)({},b,{name:j})),N=w||b.help,k=b.labelFor;y[j]=(0,l.createElement)(mn,(0,a.Z)({},b,{key:j,children:C,help:N,labelFor:k,name:j,hasError:!!w}))}}function S(e){var t=(0,a.Z)({},x,{current:e});g(t)}function Z(e,t){var n=(0,a.Z)({},x,{current:(0,a.Z)({},x.current,{[e]:t})});g(n)}function E(e,t,n,r){return(l,i)=>{var s=l&&l.target&&"value"in l.target?l.target.value:l;s=i||s,!i&&n&&l&&l.target&&/(radio)/.test(l.target.type)&&(s=l.target.value?l.target.value:l.target.checked),!i&&n&&l&&l.target&&/(checkbox)/.test(l.target.type)&&(s=l.target.checked);var o={current:(0,a.Z)({},x.current,{[e]:s})};t&&t(s)||(o.errors=(0,a.Z)({},x.errors),delete o.errors[e]),l&&l.persist&&"function"===typeof l.persist&&l.persist(),g((0,a.Z)({},x,o)),r&&r(l),h&&h((0,a.Z)({},x,o))}}function P(e){e&&e.preventDefault();var{initial:t,current:n}=x;g((0,a.Z)({},x,{submitting:!0}));var r,l={submitting:!1},i=e=>g((0,a.Z)({},x,l,{errors:u&&u(e)||{}})),s=e=>{c&&(l.current=t),g((0,a.Z)({},x,l,{errors:{}})),m&&m({state:x,response:e,reset:B})};try{var o=p?p({initial:t,current:n},e):void 0;return o&&((r=o)&&"function"===typeof r.then)?o.then(s).catch(i):s(o)}catch(d){i(d)}}function M(){var{submitting:e,current:t={}}=x,n=!0;for(var r in s)if(Object.prototype.hasOwnProperty.call(s,r)){var a=s[r];if(!a)continue;if(a.validator&&a.validator(t[r])){n=!1;break}}return!e&&n}function B(){var{initial:e}=x,t=(0,a.Z)({},e);Object.entries(t).map((e=>{var[n,r]=e;Array.isArray(r)&&(t[n]=[...r])})),g((0,a.Z)({},x,{initial:e,current:t,errors:{}}))}function z(e){var{children:t,validator:n,name:i}=e,s=(0,r.Z)(e,vn),o="function"!==typeof t?t:t({onChange:E(i,n),onSubmit:P,canSubmit:M});if(!o||1!==l.Children.count(o)||!i)return o;var c=(0,a.Z)({name:o.props.name||i},s),d=Object.prototype.hasOwnProperty.call(x.current,i);c.id=o.props.id,c.value=d?x.current&&x.current[i]:c.value;var u=o.props.type;return"checkbox"!==u&&"switch"!==u&&"boolean"!==typeof c.value||(c.checked=!!c.value,delete c.value),c.onChange=E(i,n,o,o.props.onChange),l.cloneElement(o,c)}return(0,d.jsx)("form",(0,a.Z)({},f,{className:[n,i].filter(Boolean).join(" ").trim(),onSubmit:P,children:(0,d.jsx)("fieldset",{disabled:x.submitting,children:"function"===typeof o?o({fields:y,state:x,resetForm:B,canSubmit:M}):o})}))}const gn=l.forwardRef(xn);var yn=["prefixCls","className","children","extra","tagName","active"],jn=l.forwardRef(((e,t)=>{var{prefixCls:n="w-list-item",className:i,children:s,extra:o,tagName:c="div",active:u=!1}=e,h=(0,r.Z)(e,yn),p=[n,i,e.disabled?"w-disabled":null,u?"w-active":null].filter(Boolean).join(" ").trim(),m=e.href&&"string"===typeof c?"a":c;return l.createElement(m,(0,a.Z)({},h,{className:p,ref:t}),!o||h.href?s:(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("div",{className:n+"-main",children:s}),(0,d.jsx)("div",{className:n+"-extra",children:o})]}))}));jn.displayName="List.Item";var bn=["prefixCls","bordered","striped","noHover","active","size","renderItem","className","children","header","footer","dataSource"];function wn(e,t){var n,{prefixCls:i="w-list",bordered:s=!0,striped:o=!1,noHover:c=!1,active:u=!1,size:h="default",renderItem:p,className:m,children:f,header:v,footer:x,dataSource:g=[]}=e,y=(0,r.Z)(e,bn);n=g&&g.length>0?g.map(((e,t)=>p&&p(e,t))):f;var j=l.Children.map(n,((e,t)=>l.isValidElement(e)&&l.cloneElement(e,{key:t}))),b=[i,m,o?i+"-striped":null,c?i+"-no-hover":null,u?i+"-active":null,s?i+"-bordered":null,h&&"default"!==h?i+"-size-"+h:null].filter(Boolean).join(" ").trim();return(0,d.jsxs)("div",(0,a.Z)({className:b},y,{ref:t,children:[v&&(0,d.jsx)("div",{className:i+"-header",children:v}),j,x&&(0,d.jsx)("div",{className:i+"-footer",children:x})]}))}var Cn=l.forwardRef(wn);Cn.Item=jn;const Nn=Cn;var kn=n(6394),Sn=["prefixCls","className","size","loading","tip","vertical","color","bgColor","children","indicator","fullscreen"];const Zn=function(e){void 0===e&&(e={});var{prefixCls:t="w-loader",className:n,size:i="default",loading:s=!0,tip:o,vertical:c,color:u,bgColor:h,children:p,indicator:m,fullscreen:f=!1}=e,v=(0,r.Z)(e,Sn),x=[t,n,i?t+"-"+i:null].filter(Boolean).join(" ").trim(),g=(0,l.useMemo)((()=>(0,d.jsx)("svg",{viewBox:"25 25 50 50",children:(0,d.jsx)("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"5",strokeMiterlimit:"10"})})),[]),y=(0,l.useMemo)((()=>(0,d.jsx)("div",{className:[t+"-tips",f?t+"-fullscreen":null].filter(Boolean).join(" ").trim(),style:{color:u,backgroundColor:h},children:(0,d.jsxs)("div",{className:t+"-tips-nested",children:[m||g,o&&(0,d.jsx)("div",{className:[t+"-text",c?t+"-vertical":null].filter(Boolean).join(" ").trim(),children:o})]})})),[f,h,t,c,o]);return(0,d.jsxs)("div",(0,a.Z)({className:x},v,{children:[(s||f)&&y,p&&l.cloneElement(p,Object.assign({},p.props,{className:[t+"-warp",s?t+"-blur":null].filter(Boolean).join(" ").trim()}))]}))};var En=["prefixCls","className","type","title","description","showIcon","icon","rounded","isCloseButtonShown"];class Pn extends l.Component{constructor(e){super(e),this.handleClosed=e=>{var{onClose:t}=this.props;this.setState({isOpen:!1}),t&&t(e)},this.renderIcon=()=>{var{type:e,showIcon:t}=this.props,n=this.props.icon;if(!n&&t)switch(e){case"success":n="circle-check";break;case"warning":n="warning";break;case"info":n="information";break;case"error":n="circle-close"}return n},this.state={isOpen:!0}}render(){var e=this.props,{prefixCls:t,className:n,type:l,title:i,description:s,showIcon:o,rounded:c,isCloseButtonShown:u}=e,h=(0,r.Z)(e,En),p=s||this.props.children,f=[t,n,t+"-"+l,c?t+"-rounded":null,o?t+"-icon":null,o?t+(i?"-title":"")+(p?"-description":""):null].filter(Boolean).join(" ").trim(),v=(0,d.jsxs)("div",(0,a.Z)({className:f},h,{children:[u&&(0,d.jsx)(N,{basic:!0,onClick:this.handleClosed,icon:"close",type:"light"}),o&&(0,d.jsx)(w,{type:this.renderIcon()}),(0,d.jsx)("span",{className:t+"-title",children:i}),(0,d.jsx)("span",{className:t+"-description",children:p})]}));return u?(0,d.jsx)(m.Z,{in:this.state.isOpen,unmountOnExit:!0,timeout:300,classNames:t,children:v}):v}}Pn.defaultProps={prefixCls:"w-message",rounded:!0,isCloseButtonShown:!1};var Mn=["prefixCls","format","onChange","className","popoverProps","pickerCaptionProps","allowClear","monthLabel"],Bn=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"];function zn(e){var{prefixCls:t="w-monthpicker",format:n="YYYY/MM",onChange:i=(()=>{}),className:s,popoverProps:o,pickerCaptionProps:c={},allowClear:u=!0,monthLabel:h=Bn}=e,p=(0,r.Z)(e,Mn),[m,f]=(0,l.useState)(!1),[v,x]=(0,l.useState)(new Date),[g,y]=(0,l.useState)("month"),[j,b]=(0,l.useState)(e.value);function w(e,t,r){var a=new Date(new Date(v)[e](t));r||y("month");var l=(0,U.Z)(n,new Date(a));b(l),x(a),i&&i(a,l),"setMonth"===e&&f(!1)}return(0,l.useEffect)((()=>b(e.value)),[e.value]),p.value=(0,l.useMemo)((()=>"string"===typeof j?j:j?(0,U.Z)(n,j):""),[n,j]),u&&p.value&&(p.addonAfter=(0,d.jsx)(N,{className:t+"-close-btn",icon:"close",onClick:()=>{b(""),i&&i()},size:p.size,basic:!0,type:"light"})),(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0,isOpen:m},o,{onVisibleChange:e=>f(e),content:(0,d.jsxs)("div",{className:t+"-popover",children:[(0,d.jsx)(De,(0,a.Z)({panelDate:v,monthLabel:h},c,{onSelected:e=>{if(/^(month|year)$/.test(e))y(e);else{var t=new Date(v).getFullYear(),n=new Date(new Date(v).setFullYear("next"===e?t+1:t-1));x(n)}}})),"month"===g&&(0,d.jsx)(Me,{panelDate:v,monthLabel:h,onSelected:(e,t)=>w("setMonth",e,t)}),"year"===g&&(0,d.jsx)(ze,{panelDate:v,onSelected:(e,t)=>w("setFullYear",e,t)})]}),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u8f93\u5165\u65e5\u671f",readOnly:!0},p,{className:[t,s].filter(Boolean).join(" ").trim()}))}))}var Ln=["description","isOpen"],On={},Dn={};class Rn extends l.Component{constructor(){super(...arguments),this.state={notifys:{}}}create(e){var{placement:t,key:n}=e;On[t]||(On[t]={}),e.isOpen=!1,On[t][n]=e,e.duration&&(Dn[n]=setTimeout((()=>{this.closed(n,t)}),e.duration)),this.setState({notifys:On,placement:t},(()=>{On[t][n].isOpen=!0,this.setState({notifys:On})}))}closed(e,t){if(e&&t&&On[t][e]){On[t][e].isOpen=!1;var n=On[t][e];this.setState({notifys:On},(()=>{clearTimeout(Dn[e]),delete Dn[e],delete On[t][e],n&&n.willUnmount&&n.willUnmount(n,On)}))}}render(){var{prefixCls:e}=this.props,{placement:t}=this.state;return(0,d.jsx)(l.Fragment,{children:t&&Object.keys(this.state.notifys[t]).map((n=>{var l=this.state.notifys[t][n],{description:i,isOpen:s}=l,o=(0,r.Z)(l,Ln);return"open"===o.type&&delete o.type,(0,d.jsx)(M,(0,a.Z)({className:e,useButton:!1,width:320},o,{usePortal:!1,hasBackdrop:!1,isOpen:s,content:i}),n)}))})}}Rn.defaultProps={prefixCls:"w-notify",placement:"topRight"};var An={},Tn={};function In(e,t){if(void 0===t&&(t="open"),e.placement||(e.placement="topRight"),e.type=t,!e.icon&&null!==e.icon)switch(e.type){case"success":e.icon="circle-check";break;case"warning":e.icon="warning";break;case"info":e.icon="information";break;case"error":e.icon="circle-close"}switch(e.type){case"info":e.type="primary";break;case"error":e.type="danger"}if(e.placement&&!An[e.placement]){var n=document.createElement("div");document.body.appendChild(n),n.className=["w-notify-warpper",e.placement].filter(Boolean).join(" ").trim(),Tn[e.placement]=n,An[e.placement]=f.render((0,d.jsx)(Rn,{}),n)}null!==e.duration&&(e.duration=1e3*(e.duration||4.5)),An[e.placement]&&An[e.placement].create((0,a.Z)({},e,{duration:e.duration,key:parseInt(String(1e15*Math.random()),10).toString(36),willUnmount(t,n){t&&(t.onClose&&t.onClose(),0===Object.keys(n[e.placement]).length&&An[e.placement]&&(delete An[e.placement],Tn[e.placement]&&document.body.removeChild(Tn[e.placement])))}}))}["open","success","warning","info","error"].forEach((e=>{In[e]=function(t){return void 0===t&&(t={}),In(t,e)}}));const Fn=In,Hn=l.forwardRef(((e,t)=>(0,d.jsx)("option",(0,a.Z)({},e,{ref:t})))),Wn=l.forwardRef(((e,t)=>(0,d.jsx)("optgroup",(0,a.Z)({},e,{ref:t}))));var _n=["prefixCls","className","size"],Vn=(e,t)=>{var{prefixCls:n="w-select",className:l,size:i="default"}=e,s=(0,r.Z)(e,_n);return(0,d.jsx)("select",(0,a.Z)({},s,{ref:t,className:[n,l,i?n+"-"+i:null].filter(Boolean).join(" ").trim()}))},Kn=l.forwardRef(Vn);Kn.Option=Hn,Kn.Group=Wn;const Yn=Kn;var $n=["className","style","prefixCls","alignment","size","total","pageSize","pageSizeOptions","current","onChange","onShowSizeChange","divider"];function Un(e){var{className:t,style:n,prefixCls:i="w-pagination",alignment:s="left",size:o="default",total:c=0,pageSize:u=10,pageSizeOptions:h=[],current:p=1,onChange:m=(()=>null),onShowSizeChange:f,divider:v}=e,x=(0,r.Z)(e,$n),[g,y]=(0,l.useState)(p);(0,l.useEffect)((()=>y(p)),[p]);var j=[i,t,v?"divider":null,o].filter(Boolean).join(" ").trim(),b=(0,l.useMemo)((()=>{var e=[{type:"prev",disabled:1===g}],t=Math.ceil(c/u),n=t<=5?t:5,r=0,a=0;for(g>3&&t>5&&e.push({label:1}),g>4&&t>6&&e.push({type:"jumpPrev",label:"\u2022\u2022\u2022",goto:5});r<n;){g>3&&t>5&&(a=g-3);var l=(r+=1)+a;t-g===0&&t>5&&(l-=2),t-g===1&&t>5&&(l-=1),l<=t&&e.push({label:l,active:g===l})}return g+3<t&&t>6&&e.push({type:"jumpNext",label:"\u2022\u2022\u2022",goto:5}),g+2<t&&t>5&&e.push({label:t}),e.push({type:"next",disabled:g===t}),e}),[g,c,u]);return(0,d.jsxs)("ul",(0,a.Z)({className:j,style:(0,a.Z)({},n,{textAlign:s})},x,{children:[b.map(((e,t)=>{var n=(0,d.jsx)("a",{children:e.label});return/^(prev|next)$/.test(e.type)&&(n=(0,d.jsx)("a",{className:"arrow "+e.type})),(0,d.jsx)("li",{className:[e.active?"active":null,e.disabled?"disabled":null].filter(Boolean).join(" ").trim(),onClick:()=>function(e){if(!e.active&&!e.disabled){var t=Math.ceil(c/u),n={};e.label&&(n.current=e.label),"prev"===e.type&&(n.current=g-1>0?g-1:1),"next"===e.type&&(n.current=g+1<=t?g+1:t),/^(jumpPrev|jumpNext)/.test(e.type)&&e.goto&&(n.current="jumpPrev"===e.type?g-e.goto:g+e.goto,n.current>t&&(n.current=t),n.current<1&&(n.current=1)),y(n.current),m&&m(n.current,c,u)}}(e),children:n},t)})),h.length>0&&(0,d.jsx)("li",{className:i+"-options",children:(0,d.jsx)(Yn,{size:o,defaultValue:u,onChange:e=>{var t=Number(e.target.value),n=Math.ceil(c/t);f&&f(g>n?n:g,t)},children:h.map(((e,t)=>(0,d.jsxs)(Yn.Option,{value:e,children:[e,"\u6761/\u9875"]},t)))})})]}))}var Jn=["prefixCls","placeholder","value","autoFocus","className","size","style","disabled","onChange","onBlur","onFocus"];function Gn(e,t){void 0===e&&(e={});var{prefixCls:n="w-pin-code",placeholder:s="\u25cb",value:o=[],autoFocus:c,className:u,size:h="default",style:p,disabled:m,onChange:f=i,onBlur:v=i,onFocus:x=i}=e,g=(0,r.Z)(e,Jn),[y]=(0,l.useState)({}),[j,b]=(0,l.useState)(s),[w,C]=(0,l.useState)(o),N=[n,u,h?n+"-"+h:null,m?"disabled":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>{w!==o&&f(w)}),[w]),(0,d.jsx)("div",(0,a.Z)({className:N,style:p},g,{ref:t,children:[...w].map(((e,t)=>{var r={min:0,type:"text",inputMode:"numeric",autoComplete:"off",value:e,onChange:e=>function(e,t){var n=e.target.value;n=n.charAt(n.length-1);var r=[...w];Number(n)>-1&&n?(e.currentTarget.value=n,r[t]=n,y[t+1]&&y[t+1].focus(),C(r)):n||(r[t]="",C(r))}(e,t),onKeyDown:e=>function(e,t){var n=e.currentTarget.value,r=e.key.toLocaleLowerCase();!n&&y[t-1]&&/(backspace|delete)/.test(r)&&y[t-1].focus()}(e,t),onBlur:e=>{return t=e,b(s),void v(t);var t},onFocus:e=>{return t=e,b(""),void x(t);var t},className:n+"-inner",placeholder:j,disabled:m,size:h};return c&&0===t&&(r.autoFocus=!0),(0,l.createElement)(fe,(0,a.Z)({ref:e=>{e&&(y[t]=e)}},r,{key:t}))}))}))}const qn=l.forwardRef(Gn);function Xn(e){return(0,d.jsx)(w,{type:e.type})}var Qn=["prefixCls","style","type","className","showText","percent","format","strokeWidth","width","status"];class er extends l.Component{relativeStrokeWidth(e,t){var{strokeWidth:n,percent:r}=this.props;if(t&&t.parentNode){var{width:a}=t.parentNode.getBoundingClientRect(),l=(n/a*100).toFixed(1),i=parseInt((50-parseFloat(l)/2).toString(),10);if(t.setAttribute("stroke-width",l),t.setAttribute("d","M 50 50 m 0 -"+i+" a "+i+" "+i+" 0 1 1 0 "+2*i+" a "+i+" "+i+" 0 1 1 0 -"+2*i),"track"===e){var s=2*Math.PI*i;t.setAttribute("style","stroke-dasharray:"+s+"px,"+s+"px;stroke-dashoffset:"+(1-r/100)*s+"px;transition: stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease;")}}}render(){var e,t=this.props,{prefixCls:n,style:l,className:i,showText:s,percent:o,format:c,width:u,status:h}=t,p=(0,r.Z)(t,Qn),m=[n,i,n+"-circle",s?n+"-show-text":null,h?n+"-status-"+h:null,parseInt(o.toString(),10)>=100?n+"-status-success":null].filter(Boolean).join(" ").trim(),f=parseInt(o.toString(),10)>=100&&!("status"in this.props)?"success":h;if(s){var v=o+"%";"exception"===f?v=(0,d.jsx)(Xn,{type:"close"}):"success"===f&&(v=(0,d.jsx)(Xn,{type:"check"})),e=(0,d.jsx)("span",{className:n+"-text",style:{fontSize:.16*u+6},children:c?c(o):v})}return(0,d.jsxs)("div",(0,a.Z)({className:m,style:l},p,{children:[(0,d.jsxs)("svg",{viewBox:"0 0 100 100",width:""+u,children:[(0,d.jsx)("path",{ref:this.relativeStrokeWidth.bind(this,"bg"),className:n+"-trail",fill:"none"}),(0,d.jsx)("path",{ref:this.relativeStrokeWidth.bind(this,"track"),strokeLinecap:"round",className:n+"-stroke",fill:"none"})]}),e]}))}}er.defaultProps={prefixCls:"w-progress",showText:!0,percent:0,width:126,strokeWidth:6};var tr=["prefixCls","style","className","showText","percent","format","strokeWidth","width","status"];class nr extends l.Component{render(){var e,t=this.props,{prefixCls:n,style:l,className:i,showText:s,percent:o,format:c,strokeWidth:u,status:h}=t,p=(0,r.Z)(t,tr),m=[n,i,n+"-line",s?n+"-show-text":null,h?n+"-status-"+h:null,parseInt(o.toString(),10)>=100?n+"-status-success":null].filter(Boolean).join(" ").trim();if(s){var f=parseInt(o.toString(),10)>=100&&!("status"in this.props)?"success":h,v=o+"%";"exception"===f?v=(0,d.jsx)(Xn,{type:"circle-close"}):"success"===f&&(v=(0,d.jsx)(Xn,{type:"circle-check"})),e=(0,d.jsx)("span",{className:n+"-text",children:c?c(o):v})}var x={width:o+"%",height:u};return(0,d.jsxs)("div",(0,a.Z)({className:m,style:l},p,{children:[(0,d.jsx)("div",{className:n+"-bar",children:(0,d.jsx)("div",{className:n+"-inner",children:(0,d.jsx)("div",{className:n+"-bg",style:x})})}),e]}))}}nr.defaultProps={prefixCls:"w-progress",showText:!0,percent:0,width:126,strokeWidth:6};const rr={Line:nr,Circle:er};var ar=["prefixCls","count","value","className","allowHalf","character","readOnly","disabled","onChange","onHoverChange","color"];function lr(e){void 0===e&&(e={});var{prefixCls:t="w-rate",count:n=5,value:s=0,className:o,allowHalf:c,character:u="\u2605",readOnly:h=!1,disabled:p,onChange:m=i,onHoverChange:f=i,color:v}=e,x=(0,r.Z)(e,ar),[g,y]=(0,l.useState)(s),[j,b]=(0,l.useState)(-1),w=[t,o,p?"disabled":null].filter(Boolean).join(" ").trim(),[C,N]=(0,l.useState)();function k(e,t){e.persist();var n=t,r=e.clientX-e.currentTarget.getBoundingClientRect().left<=e.currentTarget.getBoundingClientRect().width/2;return c?(e.persist(),n=r?t+.5:t+1):n=t+1,n}return s!==C&&N(s),(0,l.useMemo)((()=>{g!==C&&y(s)}),[C]),(0,d.jsx)("div",(0,a.Z)({},x,{className:w,onMouseLeave:()=>{b(-1)},children:[...Array(n)].map(((e,n)=>{var r=g<=n+.5&&Math.ceil(g)-1===n&&-1===j||j===n+.5,l=[t+"-hight",n+1<=g&&-1===j?"star-on":null,n+1<=j?"hover-on":null,r?"half-on":null].filter(Boolean).join(" ").trim(),i={};return h||(i.onClick=e=>function(e,t){if(!h){var n=k(e,t);y(n),m(n)}}(e,n),i.onMouseMove=e=>function(e,t){var n=k(e,t);j!==n&&(b(n),f(n))}(e,n)),(0,d.jsxs)("span",(0,a.Z)({},i,{children:[(0,d.jsx)("span",{style:{color:v},className:l,children:u}),(0,d.jsx)("span",{className:t+"-bg",children:u})]}),n)}))}))}var ir=["prefixCls","className","style","title","children","visible","color","disabled","bordered","closable","light","onClose"];const sr=function(e){void 0===e&&(e={});var{prefixCls:t="w-tag",className:n,style:l,title:i="",children:s,visible:o=!0,color:c="#6E6E6E",disabled:u=!1,bordered:h=!0,closable:p,light:m=!1,onClose:f}=e,v=(0,r.Z)(e,ir),x=[t,n,m?t+"-light":null,u?"disabled":null].filter(Boolean).join(" ").trim(),g=(0,a.Z)({},l);if(m?(g.color=c,g.borderColor=c,h&&m&&(g.boxShadow="inset 0 0 0 1px "+c)):(g.color="#fff",g.backgroundColor=c),!o)return null;var y=!u&&p&&(0,d.jsx)("svg",{onClick:f,className:t+"-close",width:"15",height:"15",viewBox:"0 0 16 16",children:(0,d.jsx)("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z"})});return(0,d.jsxs)("span",(0,a.Z)({className:x,style:g},v,{children:[i||s,y]}))};var or=["allowClear","disabled","valueAmount","size","option","maxTagCount","loading","labelInValue","prefixCls","className","mode","style","isOpen","value","defaultValue","showSearch","tagProps","placeholder","onSearch","onChange","onSelect"],cr={large:25,default:20,small:17};function dr(e){var t,{allowClear:n=!1,disabled:i=!1,valueAmount:s,size:o="default",option:c=[],maxTagCount:u,loading:h=!1,labelInValue:p=!1,prefixCls:m="w-search-select",className:f,mode:v="single",style:x,value:g,defaultValue:y,showSearch:j=!1,tagProps:b={},placeholder:C,onSearch:N,onChange:k,onSelect:S}=e,Z=(0,r.Z)(e,or),E=[m,f].filter(Boolean).join(" ").trim(),P=(0,l.useMemo)((()=>"multiple"===v),[v]),[M,B]=(0,l.useState)(!1),[z,L]=(0,l.useState)([]),[O,D]=(0,l.useState)(""),[R,A]=(0,l.useState)(""),T=(0,l.useRef)(null),I=(0,l.useMemo)((()=>u&&z.length>u?z.length-u:0),[z.length]),F=(0,l.useRef)(null),H=(0,l.useRef)(null),[W,_]=l.useState(180),V=e=>void 0!==e&&""!==e,K=(0,l.useRef)();K.current=(0,l.useMemo)((()=>z),[z]),(0,l.useEffect)((()=>{!V(g)&&V(y)&&$(y)}),[]),(0,l.useEffect)((()=>{i&&B(!1)}),[i]),(0,l.useEffect)((()=>{V(g)?$(g):(L([]),D(""))}),[JSON.stringify(g)]);var Y=(e,t)=>{var n=e.find((e=>e.value===t));return n};function $(e){var t=[];if(p)Array.isArray(e)?t=e:t.push(e);else if(Array.isArray(e))t=e.map((e=>Y(c,e))).filter((e=>!!e));else{var n=Y(c,e);n&&(D(n.label),t.push(n))}!P&&t.length>0&&D(t[0].label||""),L(t.slice(0,s))}var U=e=>{D(e),j&&(null==N||N(e))};function J(e,t){var n=-1!==e?function(e){var t=K.current;return t.splice(e,1),[...t]}(e):[...z.slice(0,s?s-1:void 0),t],r=n.map((e=>e.value));G(r,n)}function G(e,t){D(""),S&&S(e),ee(e,t),void 0===g&&L(t)}function q(e){var t;t="enter"===e&&n&&(z.length>0||O)?"close":"",A(t)}function X(e){B(!0),A(j&&e?"loading":""),U(e)}function Q(e){var t;e.stopPropagation(),null==(t=T.current)||t.focus(),L([]),X(""),B(!1),ee("",[])}function ee(e,t){k&&k(p?t:e)}return l.useEffect((()=>{var e,t;null!=(e=H.current)&&e.clientWidth&&_(null==(t=H.current)?void 0:t.clientWidth)}),[H.current]),(0,d.jsx)(Je,(0,a.Z)({className:E,trigger:"click",style:{marginTop:5},overlayStyl:{width:100},disabled:i},Z,{onVisibleChange:function(e){var t=K.current;B(e),e||U(""),!P&&t.length>0&&D(t[0].label)},isOpen:M,menu:(0,d.jsx)(dt,{bordered:!0,style:{minHeight:25,maxHeight:280,minWidth:null!=(t=null==x?void 0:x.width)?t:200,overflowY:"scroll",width:null==x?void 0:x.width},children:c&&0!==c.length?c.map((e=>{var t=z.findIndex((t=>t.value===e.value));return(0,d.jsx)(dt.Item,{active:-1!==t,text:e.label,onClick:()=>P?J(t,e):function(e){B(!1);var t=[e];D(e.label),G(e.value,t)}(e)},t)})):(0,d.jsx)("div",{style:{color:"#c7c7c7",fontSize:12},children:h?"\u6b63\u5728\u52a0\u8f7d\u6570\u636e...":"\u6ca1\u6709\u6570\u636e"})}),children:(0,d.jsx)("div",{ref:F,onMouseOver:()=>q("enter"),onMouseLeave:()=>q("leave"),onClick:()=>{var e;return null==(e=T.current)?void 0:e.focus()},style:(0,a.Z)({width:"100%",maxWidth:"none"},x),children:P?(0,d.jsxs)("div",{className:[m+"-inner",m+"-search-"+j,m+"-"+o].filter(Boolean).join(" ").trim(),children:[(0,d.jsxs)("div",{ref:H,className:[m+"-tag-content",i&&m+"-tag-content-disabled"].filter(Boolean).join(" ").trim(),children:[P&&z.slice(0,u).map(((e,t)=>(0,d.jsx)(sr,(0,a.Z)({style:(0,a.Z)({height:cr[o],margin:1,display:"flex",alignItems:"center"},b.style),color:"#393E48"},b,{closable:!0,disabled:i,onClose:n=>{n.stopPropagation(),J(t,e)},children:(0,d.jsx)("span",{style:{maxWidth:W-63,textOverflow:"ellipsis",overflow:"auto"},children:e.label})}),t))),!!I&&(0,d.jsxs)(sr,{style:{height:20,margin:1,display:"flex",alignItems:"center"},disabled:!0,children:["+",I," \u2026"," "]}),(0,d.jsx)(fe,{style:{flex:1,width:j?0:50},className:m+"-input-contents",readOnly:!j,size:o,ref:T,disabled:i,onKeyDown:function(e){P&&z.length>0&&!O&&8===e.keyCode&&J(z.length-1)},onChange:e=>X(e.target.value),value:O,placeholder:z.length?"":C})]}),!i&&("close"===R||"loading"===R&&h)&&(0,d.jsx)(w,{className:m+"-multiple-colse",type:R,spin:h&&"loading"===R,onClick:Q})]}):(0,d.jsx)(fe,{className:m+"-search-"+j,readOnly:!j,size:o,ref:T,disabled:i,onChange:e=>X(e.target.value),value:O,placeholder:C,addonAfter:!i&&("close"===R||"loading"===R&&h)&&(0,d.jsx)(w,{type:R,className:m+"-singe-colse",color:"#393e48",spin:h&&"loading"===R,onClick:Q})})})}))}var ur=n(2656),hr=["prefixCls","className","style","status","itemWidth","icon","adjustMarginRight","stepNumber","title","description","progressDot"];var pr=["prefixCls","style","className","children","current","status","progressDot","direction"];function mr(e){var{prefixCls:t="w-steps",style:n={},children:i,current:s,status:o="process",progressDot:c=!1,direction:u="horizontal"}=e,h=(0,r.Z)(e,pr),p=(0,l.useRef)(null),[m,f]=(0,l.useState)(0),v=l.Children.toArray(i).filter((e=>!!e)),x=v.length-1,g=[t,t+"-"+u,c?t+"-dot":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>function(){var e=p.current;if(e&&e.lastChild){var t=(e.lastChild.offsetWidth||0)+1;if(t===m||Math.abs(t-m)<=3)return;f(t)}}())),(0,d.jsx)("div",(0,a.Z)({className:g,style:n},h,{ref:p,children:l.Children.map(i,((e,n)=>{var r=(0,a.Z)({stepNumber:""+(n+1),prefixCls:t,progressDot:c},e.props);return n!==x&&"vertical"!==u&&(r.itemWidth=100/x+"%",r.adjustMarginRight=-Math.round(m/x+1)),c&&"vertical"!==u&&(r.itemWidth=100/v.length+"%",r.adjustMarginRight=0),"error"===o&&n===s-1&&(r.className=t+"-next-error"),e.props.status||(r.status=n===s?o:n<s?"finish":"wait"),l.cloneElement(e,r)}))}))}mr.Step=function(e){var{prefixCls:t="w-steps",className:n,style:l,status:i,itemWidth:s,icon:o,adjustMarginRight:c,stepNumber:u,title:h,description:p,progressDot:m}=e,f=(0,r.Z)(e,hr),v=[t+"-item",t+"-item-"+i,n,o?t+"-custom":null].filter(Boolean).join(" ").trim(),x=(0,a.Z)({},l),g={};s&&(x.width=s),c&&(x.marginRight=c,m&&(g.paddingRight=Math.abs(c)));var y=null;return y=m&&!o?(0,d.jsx)("span",{className:t+"-dot"}):o&&"string"!==typeof o?(0,d.jsx)("span",{className:t+"-icon",children:o}):o&&"string"===typeof o||"finish"===i||"error"===i?(0,d.jsx)(w,{type:[o&&"string"===typeof o?""+o:null,o||"finish"!==i?null:"check",o||"error"!==i?null:"close"].filter(Boolean).join(" ").trim()}):(0,d.jsx)("span",{className:t+"-icon",children:u}),(0,d.jsxs)("div",(0,a.Z)({},f,{className:v,style:x,children:[(0,d.jsx)("div",{className:t+"-item-tail",style:g,children:(0,d.jsx)("i",{style:{paddingRight:"100%"}})}),(0,d.jsx)("div",{className:t+"-item-head",children:(0,d.jsx)("div",{className:[t+"-item-inner",!!o&&"is-icon"].filter(Boolean).join(" ").trim(),children:y})}),(0,d.jsxs)("div",{className:[t+"-item-main",!!o&&"is-icon-main"].filter(Boolean).join(" ").trim(),children:[(0,d.jsx)("div",{className:t+"-item-title",children:h}),p&&(0,d.jsx)("div",{className:t+"-item-description",children:p})]})]}))};const fr=mr;function vr(e){var{prefixCls:t,data:n,step:r,min:a,vertical:l,marks:i,markRender:s}=e;return(0,d.jsx)("div",{className:t+"-dots",children:n.map(((e,n)=>{var o=n*r+a;return(0,d.jsxs)("div",{style:{[l?"top":"left"]:e+"%"},className:[t+"-mark",i&&!0!==i&&!i[o]?"no-marks":null].filter(Boolean).join(" ").trim(),children:[!0===i&&s&&s(o),!0!==i&&i&&i[o]&&s&&s(o,i[o])]},n)}))})}var xr=["prefixCls","value","min","max","dots","step","disabled","progress","tooltip","className","marks","renderMarks","vertical","onChange"];function gr(e){var{prefixCls:t="w-slider",value:n=0,min:i=0,max:s=100,dots:o=!1,step:c=1,disabled:u=!1,progress:h=!0,tooltip:p=!1,className:m,marks:f,renderMarks:v,vertical:x,onChange:g}=e,y=(0,r.Z)(e,xr),j=l.useRef(null),b=l.useRef(null),w=l.useRef(),C=l.useRef(),N=l.useRef(),k=l.useRef(),S=l.useRef(),Z=l.useRef(),[E,P]=(0,l.useState)(Array.isArray(n)?n:[n]);function M(e){P([...e]),g&&g(1===E.length?e[0]:e)}function B(e){var t=(s-i)/c,n=0;b.current&&(n=e/b.current[x?"clientHeight":"clientWidth"]*100),n<=0&&(n=0),n>=100&&(n=100);var r=t*(n/100)+.5;return Math.floor(r)*c+i}function z(e){if(Z.current){var t=[...E],n=B(e[x?"clientY":"clientX"]-C.current+k.current);if(n!==N.current){t[w.current]=n;var r=D(t);j.current&&(j.current.style[x?"top":"left"]=r.left,j.current.style[x?"bottom":"right"]=r.right),M(t),N.current=n}}}function L(){Z.current=void 0,window.removeEventListener("mousemove",z,!1),window.removeEventListener("mouseup",L,!1)}(0,l.useEffect)((()=>P(Array.isArray(n)?n:[n])),[n]),y.onClick=e=>{if(void 0===Z.current){var t=b.current.getBoundingClientRect();M(function(e){if(!Array.isArray(n))return Array.isArray(e)?e:[e];var t=[...E],r=t[0],a=t[1];(r<a&&r>e||r>a&&r<e)&&(t[0]=e);(r<a&&a<e||r>a&&a>e)&&(t[1]=e);if(r>e&&a<e){var l=a+(r-a)/2;l>=e&&(t[1]=e),l<e&&(t[0]=e)}if(a>e&&r<e){var i=r+(a-r)/2;i>=e&&(t[0]=e),i<e&&(t[1]=e)}return t}(B(e[x?"clientY":"clientX"]-t[x?"y":"x"])))}};function O(e){return 100*(e-i)/(s-i)}function D(e){e=e||E;var t={left:"0%",right:"100%"};if(Array.isArray(n)){var r=e[0]>e[1]?e[1]:e[0],a=e[0]>e[1]?e[0]:e[1];t.left=O(r)+"%",t.right=100-O(a)+"%"}else t.right=100-O(e[0])+"%";return t}function R(e){return f&&!0!==f&&f[e]&&f[e].label?f[e].label:f&&!0!==f&&f[e]&&"string"===typeof f[e]?f[e]:v&&"function"===typeof v&&v(e)?v(e):e}var A=D();return u&&delete y.onClick,(0,d.jsxs)("div",(0,a.Z)({ref:b,className:[t,m,u?"disabled":null,f?t+"-with-marks":null,x?t+"-vertical":null].filter(Boolean).join(" ").trim()},y,{children:[(0,d.jsx)("div",{ref:j,className:t+"-bar",style:(0,a.Z)({[x?"top":"left"]:A.left,[x?"bottom":"right"]:A.right},!0!==h?{backgroundColor:h||"initial"}:{})}),[...E].map(((e,r)=>{var a=O(e);return(0,d.jsx)("div",{className:t+"-handle",onMouseDown:e=>function(e,t){if(!u){w.current=e,Z.current=!0,C.current=t[x?"clientY":"clientX"],j.current&&(k.current=j.current[x?"clientHeight":"clientWidth"],S.current=j.current[x?"offsetTop":"offsetLeft"]);var r=[...E];Array.isArray(n)&&(k.current=1===w.current&&r[1]>r[0]||1!==w.current&&r[0]>r[1]?k.current+S.current:S.current),window.addEventListener("mousemove",z),window.addEventListener("mouseup",L)}}(r,e),style:{[x?"top":"left"]:a+"%"},children:(p||!1===p)&&(0,d.jsx)("div",{className:[t+"-tooltip",p?"open":null].filter(Boolean).join(" ").trim(),children:R(e)})},r)})),o&&(0,d.jsx)(vr,{prefixCls:t,min:i,step:c,marks:f,vertical:!!x,data:(()=>{for(var e=(s-i)/c,t=100*c/(s-i),n=[0],r=1;r<e;r+=1)n.push(r*t);return n.push(100),n})(),markRender:function(e,t){if(void 0===t&&(t={}),!t)return(0,d.jsxs)("div",{children:[" ",R(e)," "]});var n="object"===typeof t?t:{};return delete n.label,(0,d.jsxs)("div",(0,a.Z)({},n,{children:[" ",R(e)," "]}))}})]}))}var yr=["prefixCls"];const jr=l.forwardRef(((e,t)=>{var{prefixCls:n="w-switch"}=e,l=(0,r.Z)(e,yr);return(0,d.jsx)(pt,(0,a.Z)({prefixCls:n},(0,a.Z)({},l,{type:"checkbox"}),{ref:t}))}));function br(e,t){void 0===e&&(e=[]),void 0===t&&(t=1);for(var n=[],r=0;r<e.length;r+=1)e[r].children&&(n=n.concat(e[r].children||[]));return n&&n.length>0&&(t=br(n,t+1)),t}function wr(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);for(var n=[],r=0;r<e.length;r+=1)e[r].children?e[r].children&&e[r].children.length>0&&(n=n.concat(wr(e[r].children,t))):n.push(e[r]);return n}function Cr(e,t){t||(t={header:[],render:{}}),t&&!t.header&&(t.header=[]),t&&!t.render&&(t.render={});for(var n=[],r=[],a=0;a<e.length;a+=1)e[a].render&&e[a].key&&(t.render[e[a].key]=e[a].render),e[a].ellipsis&&e[a].key&&(t.ellipsis||(t.ellipsis={}),t.ellipsis[e[a].key]=!0),0===t.header.length&&(e[a].children&&e[a].children&&e[a].children.length>0&&(e[a].colSpan=wr(e[a].children).length),r.push(e[a])),e[a]&&e[a].children&&(n=n.concat(e[a].children.map((e=>(e.children&&e.children.length>0&&(e.colSpan=wr(e.children).length),e)))));if(0===t.header.length){var l=br(r);t.header.push(r.map((e=>(1===l||(!e.children||e.children&&0===e.children.length)&&(e.rowSpan=l),e))))}if(n&&n.length>0){var i=br(n);t.header.push(n.map((e=>(1===i||(!e.children||e.children&&0===e.children.length)&&(e.rowSpan=i),e)))),t=Cr(n,t)}return t}function Nr(e,t){void 0===t&&(t=[]);for(var n=0;n<e.length;n+=1)e[n].children?t=t.concat(Nr(e[n].children||[])):e[n].key?t.push(e[n]):t.push((0,a.Z)({},e[n],{key:n.toString()}));return t}function kr(e,t,n){var r,a;return e?"right"===e?{right:null==(r=t[n])?void 0:r.right}:{left:null==(a=t[n])?void 0:a.left}:{}}var Sr=["title","key","render","children","ellipsis","fixed"];class Zr extends l.Component{constructor(){super(...arguments),this.wrapper=l.createRef()}componentDidMount(){this.props.updateLocation({width:this.wrapper.current.getBoundingClientRect().width},""+this.props.rowNum+this.props.colNum,this.props.item.key,this.props.item.colSpan)}render(){var{colNum:e,rightNum:t,prefixCls:n,item:l,titleNode:i,onCellHead:s,rowNum:o,locationWidth:c}=this.props,{fixed:u=!1}=l,h=(0,r.Z)(l,Sr),p="";u&&(p="right"===u?n+"-fixed-right "+(1===t?n+"-fixed-right-first":""):n+"-fixed-true");return(0,d.jsx)("th",(0,a.Z)({ref:this.wrapper},h,{style:(0,a.Z)({},h.style,kr(u,c,""+o+e)),className:n+"-tr-children-"+((null==l?void 0:l.align)||"left")+" "+(l.className||"")+" "+p,onClick:t=>null==s?void 0:s(l,e,o,t),children:i}),e)}}var Er=["prefixCls","className","data","onCellHead","locationWidth","updateLocation"],Pr=["title","key","render","children","ellipsis","fixed"];function Mr(e){void 0===e&&(e={});var{prefixCls:t="w-table",className:n,data:l=[],onCellHead:s=i,locationWidth:o,updateLocation:c}=e,u=(0,r.Z)(e,Er),h=0;return(0,d.jsx)("thead",(0,a.Z)({className:[t,n].filter(Boolean).join(" ").trim()},u,{children:l&&l.length>0&&l.map(((e,n)=>(0,d.jsx)("tr",{children:(e||[]).map(((e,a)=>{var{title:l,ellipsis:i,fixed:u=!1}=e,p=(0,r.Z)(e,Pr),m=(0,d.jsx)("span",{className:i?(p.className||"")+" "+t+"-ellipsis":void 0,children:"function"===typeof l?l(e,a,n):l});return 0===p.colSpan?null:("right"===u&&(h+=1),(0,d.jsx)(Zr,{colNum:a,rightNum:h,item:e,prefixCls:t,onCellHead:s,rowNum:n,titleNode:m,locationWidth:o,updateLocation:c},a))}))},n)))}))}function Br(e){var{defaultExpand:t,onClick:n,expandIcon:r}=e,[a,i]=(0,l.useState)(t);return(0,d.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{i(!a),n(a)},children:r(a)})}function zr(e){var{rowKey:t,data:n,keys:r,render:s,ellipsis:o,prefixCls:c,onCell:u=i,isExpandedDom:h,hierarchy:p,indentSize:m,childrenColumnName:f,locationWidth:v,header:x}=e,[g,y]=(0,l.useState)(!1),[j,b]=(0,l.useState)(0),[C,N]=(0,l.useState)([]);(0,l.useEffect)((()=>{y(!(null==n||!n.find((e=>e[f])))),b(-1===(null==r?void 0:r.findIndex((e=>"uiw-expanded"===e.key)))?0:1)}),[n]);var k=(0,l.useMemo)((()=>(e,t)=>{var n=C.includes(e);return(0,d.jsx)(w,{type:n?"minus-square-o":"plus-square-o",style:{marginRight:10,opacity:t?1:0,marginLeft:p*m,float:"left",marginTop:3.24},onClick:()=>{N(n?C.filter((t=>t!==e)):[...C,e])}})}),[C]),S=e=>{var t=0,n=x.findIndex((n=>(t=n.findIndex((t=>t.key===e)),t>-1)));return""+n+t};return Array.isArray(n)&&n.length?(0,d.jsx)(l.Fragment,{children:n.map(((n,i)=>{var x=t?n[t]:i,y=0;return(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("tr",{children:r.map(((e,t)=>{var r={children:n[e.key]};if(s[e.key]){var h=s[e.key](n[e.key],e.key,n,i,t);if(l.isValidElement(h))r.children=h;else{if(h.props&&(r=(0,a.Z)({},h.props,{children:r.children}),0===h.props.rowSpan||0===h.props.colSpan))return null;h.children&&(r.children=h.children)}}var b=Array.isArray(n[f]);if(t===j&&(g||p||b)&&(r.children=(0,d.jsxs)(d.Fragment,{children:[k(x,b),(0,d.jsx)("span",{style:{paddingLeft:p*m}}),r.children]})),e.fixed)if("right"===e.fixed){var w=1===(y+=1)?c+"-fixed-right-first":"";r.className=c+"-fixed-right "+w}else r.className=c+"-fixed-true";return(0,l.createElement)("td",(0,a.Z)({},r,{style:e.fixed?(0,a.Z)({},kr(e.fixed,v,""+S(e.key||"undefined"))):{},children:(0,d.jsx)("span",{className:o&&o[e.key]?c+"-ellipsis":void 0,children:r.children}),key:t,className:[c+"-tr-children-"+(e.align||"left"),e.className,r.className].filter((e=>e)).join(" ").trim(),onClick:r=>u(n,{rowNum:i,colNum:t,keyName:e.key},r)}))}))},x),h(n,i),C.includes(x)&&(0,d.jsx)(zr,(0,a.Z)({},e,{data:n[f],hierarchy:p+1}))]},i)}))}):null}var Lr=["prefixCls","className","columns","data","title","footer","bordered","onCell","onCellHead","empty","children","expandable","rowKey","scroll"];function Or(e){void 0===e&&(e={});var{prefixCls:t="w-table",className:n,columns:s=[],data:o=[],title:c,footer:u,bordered:h,onCell:p=i,onCellHead:m=i,empty:f,expandable:v,rowKey:x,scroll:g}=e,y=(0,r.Z)(e,Lr),[j,b]=(0,l.useState)([]),[C,N]=(0,l.useState)({}),k=(0,l.useRef)({}),S=(e,t)=>{var n=0,r=0,a=[];e.forEach(((l,i)=>{var s=""+t+r;if("number"===typeof e[i])return n=e[i]+n,void a.push(e[i]);k.current[s]&&(k.current[s].left=n,n=k.current[s].width+n,Array.isArray(e[i].children)?a.push(...e[i].children):a.push(k.current[s].width)),r+=1})),n=0,r=z[t].length-1;for(var l=e.length-1;l>=0;l--){var i=""+t+r;"number"!==typeof e[l]?(k.current[i]&&(k.current[i].right=n,n=k.current[i].width+n),r-=1):n=e[l]+n}a.filter((e=>"number"!==typeof e)).length&&S(a,t+1)},Z=()=>(S(s,0),k.current);(0,l.useEffect)((()=>{var e=(null==v?void 0:v.childrenColumnName)||"children",t=n=>{var r=[],a=n.map(((n,a)=>(Array.isArray(n[e])&&r.push(...t(n[e])),x?n[x]:a)));return[...r,...a]};if(v){if(v.defaultExpandAllRows)return void b(t(o));if(v.defaultExpandedRowKeys)return void b(v.defaultExpandedRowKeys)}}),[]),(0,l.useEffect)((()=>{v&&v.expandedRowKeys&&JSON.stringify(v.expandedRowKeys)!==JSON.stringify(j)&&b(v.expandedRowKeys)}),[null==v?void 0:v.expandedRowKeys]);var E=(0,l.useMemo)((()=>(e,t)=>{if(!v)return!1;if(!v.expandedRowRender)return!1;var n=!0;return v.rowExpandable&&(n=v.rowExpandable(e)),n&&(0,d.jsx)("tr",{style:j.includes(x?e[x]:t)?{}:{display:"none"},children:(0,d.jsx)("td",{style:{paddingLeft:16},colSpan:s.length+1,children:v.expandedRowRender(e,t,!0)})})}),[v,j]),P=(0,l.useMemo)((()=>{var e=Nr(s),t=[];return null!=v&&v.expandedRowRender?(e=[{key:"uiw-expanded",align:"center"},...e],t=[{title:"",key:"uiw-expanded",width:50,align:"center",render:(e,t,n,r)=>{var a;return(0,d.jsx)(Br,{defaultExpand:void 0===v.defaultExpandAllRows?!(null==(a=v.defaultExpandedRowKeys)||!a.includes(x?n[x]:r)):!!v.defaultExpandAllRows,onClick:e=>{if(null==v.onExpand||v.onExpand(e,n,r),e){var t=j.filter((e=>x?e!==n[x]:e!==r));v.onExpandedRowsChange?v.onExpandedRowsChange(t):b(t)}else{var a=[...j,x?n[x]:r];v.onExpandedRowsChange?v.onExpandedRowsChange(a):b(a)}},expandIcon:e=>!v.rowExpandable||null!=v.rowExpandable&&v.rowExpandable(n)?v.expandIcon?v.expandIcon(e,n,r):e?(0,d.jsx)(w,{type:"minus-square-o"}):(0,d.jsx)(w,{type:"plus-square-o"}):null})}},...s]):t=[...s],{keys:e,selfColumns:t}}),[s,j]),M=(0,l.useMemo)((()=>{var e={table:{},div:{}};return g&&(void 0!==g.x&&(e.table.minWidth="100%",e.table.width=g.x,e.div.overflowX="auto",e.div.overflowY="hidden"),void 0!==g.y&&(e.div.maxHeight=g.y,e.div.overflowY="scroll")),e}),[g]),B=[t,n,h?t+"-bordered":null].filter(Boolean).join(" ").trim(),{header:z,render:L,ellipsis:O}=Cr(P.selfColumns);return(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("div",(0,a.Z)({className:B},y,{style:(0,a.Z)({},y.style,M.div),children:(0,d.jsxs)("table",{style:(0,a.Z)({tableLayout:O?"fixed":"auto"},M.table),children:[c&&(0,d.jsx)("caption",{children:c}),s&&s.length>0&&(0,d.jsx)(Mr,{onCellHead:m,data:z,locationWidth:C,updateLocation:function(e,t,n,r){void 0===r&&(r=0),k.current=(0,a.Z)({},k.current,{[t]:(0,a.Z)({},k.current[t],e,{key:n,colSpan:r})}),t===""+(z.length-1)+(z[z.length-1].length-1)&&N(Z())}}),o&&o.length>0&&(0,d.jsx)("tbody",{children:(0,d.jsx)(zr,{rowKey:x,locationWidth:C,data:o,header:z,keys:P.keys,render:L,ellipsis:O,prefixCls:t,onCell:p,hierarchy:0,isExpandedDom:E,indentSize:"number"===typeof(null==v?void 0:v.indentSize)?null==v?void 0:v.indentSize:16,childrenColumnName:(null==v?void 0:v.childrenColumnName)||"children"})}),o&&0===o.length&&f&&(0,d.jsx)("tbody",{children:(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:P.keys.length,style:{position:"relative",left:0},children:f})})}),e.children]})})),u&&(0,d.jsx)("div",{className:t+"-footer",children:u})]})}var Dr=["prefixCls","className","label"];var Rr=["prefixCls","className","children","type","activeKey","onTabClick"];function Ar(e){var t,{prefixCls:n="w-tabs",className:i,children:s,type:o="default",onTabClick:c}=e,u=(0,r.Z)(e,Rr),[h,p]=(0,l.useState)(e.activeKey),[m,f]=(0,l.useState)({width:0,left:0}),v=(0,l.useRef)(),x=[n,i,o?n+"-"+o:null].filter(Boolean).join(" ").trim(),[g,y]=(0,l.useState)({content:0,nav:[],flowLeft:-1,displayStart:0,displayEnd:0}),[j,b]=(0,l.useState)([]),[w,C]=(0,l.useState)(),N=(0,l.useCallback)((e=>{null!==e&&(C(w),e.addEventListener("scroll",(e=>{var{clientWidth:t,scrollLeft:n}=e.target;g.displayStart=n,g.displayEnd=t+n,y((0,a.Z)({},g))})),g.displayEnd=e.getBoundingClientRect().width,y((0,a.Z)({},g)))}),[]),k=(0,l.useCallback)(((e,t,n,r)=>{null!==e&&(S(e.getBoundingClientRect().width,t),n===r&&(v.current=e))}),[]),S=(e,t)=>{var n=0;g.nav.slice(0,t+1).forEach((e=>n+=e.width)),g.nav[t]={width:e,curWidth:Math.floor(n),index:t},y(g)};(0,l.useEffect)((()=>{Z()}),[g.displayEnd>(null==(t=g.nav[g.nav.length-1])?void 0:t.curWidth)]);var Z=()=>{var e=[];g.nav.length>0&&(g.nav.forEach((t=>{var n=t.curWidth-15;(g.displayStart>0||g.displayEnd>0)&&(n<g.displayStart||n>g.displayEnd)&&e.push(t.index)})),b(e))};function E(){v.current&&"line"===o&&f({width:v.current.clientWidth,left:v.current.offsetLeft})}return(0,l.useEffect)((()=>p((null==e?void 0:e.activeKey)||"")),[e.activeKey]),(0,l.useEffect)((()=>E()),[h]),(0,d.jsxs)("div",(0,a.Z)({className:x},u,{children:[(0,d.jsxs)("div",{style:{display:"flex"},children:[(0,d.jsx)("div",{style:{overflow:"hidden"},children:(0,d.jsx)("div",{className:n+"-bar",ref:N,children:(0,d.jsxs)("div",{className:n+"-nav",style:{width:"max-content"},children:[P(s),(0,d.jsx)("div",{style:m,className:n+"-slide"})]})})}),j.length>0&&(0,d.jsx)(ue,{trigger:"click",placement:"bottomRight",visibleArrow:!1,content:(0,d.jsx)("div",{className:n+"-nav-hidden",children:P(j.map((e=>s[e])))}),children:(0,d.jsx)("div",{onClick:Z,className:n+"-flow-content",children:(0,d.jsx)("span",{children:"\u2026"})})})]}),l.Children.map(s,(e=>e&&h===e.key?l.cloneElement(e,Object.assign({},e.props,{})):null))]}));function P(e){return l.Children.map(e,((e,t)=>{if(!e)return null;var r={className:[n+"-item",e.key===h?"active":null,e.props.disabled?"disabled":null].filter(Boolean).join(" ").trim(),children:e.props.label};return e.props.disabled||(r.onClick=t=>{p(e.key),c&&c(e.key,e,t),E()}),(0,d.jsx)("div",(0,a.Z)({ref:n=>k(n,t,e.key,h)},r),t)}))}}Ar.Pane=function(e){void 0===e&&(e={});var{prefixCls:t="w-tabs-pane",className:n}=e,l=(0,r.Z)(e,Dr);return(0,d.jsx)("div",(0,a.Z)({className:[t,n].filter(Boolean).join(" ").trim()},l))};var Tr=["prefixCls","className"];const Ir=l.forwardRef(((e,t)=>{var{prefixCls:n="w-textarea",className:l}=e,i=(0,r.Z)(e,Tr);return(0,d.jsx)("textarea",(0,a.Z)({className:[n,l].filter(Boolean).join(" ").trim()},i,{ref:t,children:e.children}))}));var Fr=["prefixCls","className","placement","isOpen","trigger","delay","usePortal","visibleArrow","onVisibleChange"];const Hr=function(e){void 0===e&&(e={});var{prefixCls:t="w-tooltip",className:n,placement:l="top",isOpen:i=!1,trigger:s,delay:o,usePortal:c=!0,visibleArrow:u=!0,onVisibleChange:h}=e,p=(0,r.Z)(e,Fr),m=[t,n,u?null:"no-arrow"].filter(Boolean).join(" ").trim();return(0,d.jsx)(ce,(0,a.Z)({usePortal:c,isOpen:i,trigger:s,delay:o,onVisibleChange:h,placement:l},p,{overlay:(0,d.jsxs)("div",{className:m,children:[u&&(0,d.jsx)("div",{className:t+"-arrow"}),(0,d.jsx)("div",{className:t+"-inner",children:e.content})]}),children:"object"===typeof e.children?e.children:(0,d.jsx)("span",{children:e.children})}))};var Wr=["prefixCls","renderTitle","icon","iconAnimation","isSelected","openKeys","selectedKeys","data","level","parent","onItemClick","onItemSelected"],_r=e=>{var{label:t,className:n}=e;return(0,l.useMemo)((()=>(0,d.jsx)("span",{className:n,children:t})),[t])};function Vr(e){var{prefixCls:t,renderTitle:n,icon:s,iconAnimation:o,isSelected:c,openKeys:u,selectedKeys:h,data:p,level:f,parent:v,onItemClick:x=i,onItemSelected:g=i}=e,y=(0,r.Z)(e,Wr),j=!1,b=l.useRef(null);v&&(v.key||0===v.key)&&(j=!!(u&&u.indexOf(v.key)>-1));var C=(0,l.useCallback)((()=>{b.current.style.height=b.current.scrollHeight+"px"}),[]),N=(0,l.useCallback)((()=>{b.current.style.height="1px"}),[]),k=(0,l.useCallback)((()=>{b.current.style.height="1px"}),[]),S=(0,l.useCallback)((()=>{b.current.style.height=b.current.scrollHeight+"px"}),[]),Z=(0,l.useCallback)((()=>{b.current.style.height="initial"}),[]);return(0,d.jsx)(m.Z,{nodeRef:b,classNames:t,in:j,timeout:200,onExit:C,onExiting:N,onEnter:k,onEntered:Z,onEntering:S,children:(0,d.jsx)("ul",{ref:b,className:[1!==f&&j?[t+"-open"]:null,1===f||j?null:[t+"-close"]].filter(Boolean).join(" ").trim(),children:p.map(((e,r)=>{e.parent=v;var l=!!(h&&h.indexOf(e.key)>-1),i=!e.children,p=u&&u.indexOf(e.key)>-1&&!!e.children,m="function"===typeof s?s(e,{isOpen:!!p,noChild:i,openKeys:u,selectedKeys:h}):s,j=i?[]:$r(e.children),b=h?h.filter((e=>j.indexOf(e)>-1)):[],C=b.length>0&&j.length!==b.length,N={onClick:g,disabled:null,disabledMouse:null,disabledClass:void 0,disabledStyle:void 0};return e.disabled&&(N.onClick=void 0,N.disabled="disabled",N.disabledMouse=t+"-disabled-mouse",N.disabledClass=t+"-disabled-ele",N.disabledStyle={color:"#00000040"}),(0,d.jsxs)("li",{style:{display:e.hideNode?"none":"block"},children:[(0,d.jsxs)("div",{className:t+"-label",children:[(0,d.jsx)("span",{style:{display:i?"none":"auto"},className:t+"-switcher",onClick:t=>x(e,t),children:(0,d.jsx)(w,{type:m||"caret-right",className:["function"===typeof s?t+"-switcher-noop":null,i?"no-child":null,o?null:"no-animation",p?"open":null].filter(Boolean).join(" ").trim()})}),(0,d.jsx)("div",{onClick:t=>null==N.onClick?void 0:N.onClick(e,t),className:[t+"-title",l&&c?"selected":null,N.disabled,N.disabledMouse].filter(Boolean).join(" ").trim(),children:n?n(e,{selected:l,noChild:i,openKeys:u,isHalfChecked:C,selectedKeys:h,disabled:e.disabled,disabledClass:N.disabledClass,disabledStyle:N.disabledStyle}):(0,d.jsx)(_r,{label:e.label,className:N.disabledClass})})]}),e.children&&(0,d.jsx)(Vr,(0,a.Z)({},y,{prefixCls:t,icon:s,iconAnimation:o,isSelected:c,openKeys:u,selectedKeys:h,onItemClick:x,onItemSelected:g,renderTitle:n,prefixCls:t,data:e.children,level:f+1,parent:e}))]},r)}))})})}var Kr=["prefixCls","icon","data","openKeys","selectedKeys","defaultExpandAll","showLine","iconAnimation","isSelected","checkStrictly","multiple","onExpand","onSelected","className","autoExpandParent","renderTitle","onChange","value"],Yr=(e,t)=>{if(!(e instanceof Array)||!(t instanceof Array))return!1;if(e.length<t.length)return!1;for(var n=e.toString(),r=0,a=t.length;r<a;r+=1)if(-1===n.indexOf(t[r]))return!1;return!0},$r=function e(t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),t.forEach((t=>{t.hideNode||n.push(t.key),("number"!==typeof r||r-1)&&t.children&&t.children.length>0&&(n=n.concat(e(t.children,void 0,r?r-1:void 0)))})),n},Ur=function e(t,n){return void 0===t&&(t={}),void 0===n&&(n=[]),t.key&&n.push(t.key),t.parent&&(n=e(t.parent,n)),n},Jr=function e(t,n,r){return void 0===t&&(t={}),void 0===n&&(n=[]),void 0===r&&(r=[]),t.key&&t.children&&Yr(n,$r(t.children,void 0,1))&&(r.push(t.key),t.parent&&!t.parent.parent&&(Yr(n,$r(t.children))&&(n=n.concat(r)),Yr(n,$r(t.parent.children))&&r.push(t.parent.key))),t.parent&&(r=e(t.parent,n,r)),r};function Gr(e){var{prefixCls:t="w-tree",icon:n="caret-right",data:s=[],openKeys:o=[],selectedKeys:c=[],defaultExpandAll:u=!1,showLine:h=!1,iconAnimation:p=!0,isSelected:m=!0,checkStrictly:f=!1,multiple:v=!1,onExpand:x=i,onSelected:g=i,className:y,autoExpandParent:j=!0,renderTitle:b,onChange:w,value:C}=e,N=(0,r.Z)(e,Kr),[k,S]=(0,l.useState)(o),[Z,E]=(0,l.useState)(C||c);(0,l.useEffect)((()=>{E(e.value||e.selectedKeys||[])}),[JSON.stringify(e.selectedKeys),JSON.stringify(e.value)]),(0,l.useEffect)((()=>{S(o)}),[JSON.stringify(o)]),(0,l.useEffect)((()=>{var e=[...k];u?e=$r(s):j&&e.push(...$r(s||[],void 0,1)),S(e)}),[]);var P=[y,t,h?t+"-line":null].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:P},N,{children:(0,d.jsx)(Vr,{icon:n,iconAnimation:p,isSelected:m,openKeys:k,selectedKeys:Z,prefixCls:t,renderTitle:b,onItemClick:function(e,t){if(e.children){var n=[...k],r=n.find((t=>t===e.key)),a=t.currentTarget.className.replace(/(\s)open/g,""),l=!1;!r&&e.key?(n.push(e.key),t.currentTarget.className=[a,"open"].filter(Boolean).join(" ").trim(),l=!0):(n=n.filter((t=>t!==e.key)),t.currentTarget.className=a),S(n),x&&x(e.key,l,e,t)}},onItemSelected:function(e,t){var n=[...Z],r=n.find((t=>t===e.key)),a=!1;r||0===r?n=n.filter((t=>t!==e.key)):(a=!0,n.push(e.key)),f&&(r?n=(n=n.filter((t=>-1===$r(e.children).indexOf(t)))).filter((t=>-1===Ur(e.parent).indexOf(t))):(n=(n=n.concat($r(e.children).filter((e=>-1===n.indexOf(e))))).concat(Jr(e,n)),n=Array.from(new Set(n)))),v||(n=r?[]:[e.key]),E(n),g&&g(n,e.key,a,e,t),null==w||w(e.key,n)},data:s,level:1})}))}var qr=["prefixCls"];function Xr(e){var{prefixCls:t="w-treechecked"}=e,n=(0,r.Z)(e,qr);return n.className=[t,n.className].filter(Boolean).join(" ").trim(),n.checkStrictly=!0,n.isSelected=!1,n.multiple=!0,(0,d.jsx)(Gr,(0,a.Z)({renderTitle:(e,n)=>{var r={};return n.isHalfChecked&&(r.indeterminate=!0),n.selected?r.checked=!0:r.checked=!1,(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(kt,(0,a.Z)({className:t+"-checked",disabled:n.disabled},r)),e.label&&(0,d.jsx)("span",{className:n.disabledClass,children:e.label})]})}},n))}var Qr={large:25,default:20,small:17};const ea=function(e){var{prefixCls:t="w-search-tree",size:n="default",disabled:r=!1,allowClear:i=!1,loading:s=!1,selectCloseDrop:o=!1,className:c,style:u,placeholder:h,tagProps:p={},content:m,options:f,values:v,onChange:x,onSearch:g,emptyOption:y}=e,j=[t,c].filter(Boolean).join(" ").trim(),[b,C]=(0,l.useState)(!1),[N,k]=(0,l.useState)(v),S=(0,l.useRef)(),[Z,E]=(0,l.useState)("");S.current=(0,l.useMemo)((()=>N),[N]);var[P,M]=(0,l.useState)(""),B=(0,l.useRef)(null);function z(e){var t="enter"===e&&i&&(N.length||Z)?"close":"";M(t)}(0,l.useEffect)((()=>{k(v)}),[JSON.stringify(v)]);var L=function(e,t,n){void 0===n&&(n=!0),k(e),R(""),null==x||x(e,t,n)},O=e=>{var t=S.current,n=t[e];t.splice(e,1),L([...t],n,!1)};function D(e){C(!0),R(e),M(e?"loading":"")}var R=e=>{E(e),null==g||g(e)},A=(0,l.useMemo)((()=>{if(y)return"boolean"===typeof y?(0,d.jsx)(en,{style:{minWidth:200,width:null==u?void 0:u.width}}):y;var e=(0,a.Z)({},m.props,{onSelected:function(e,t,n){void 0===n&&(n=!0),C(!o),L(e,t,n)},values:N,options:f});return l.cloneElement(m,e)}),[JSON.parse(JSON.stringify(N)),f,y]);return(0,d.jsx)(Je,{className:j,trigger:"click",onVisibleChange:e=>{C(e),e||R("")},disabled:r,isOpen:b,menu:(0,d.jsx)(Ke,{bodyStyle:!0===y?{padding:0}:void 0,children:A}),children:(0,d.jsx)("div",{onMouseOver:()=>z("enter"),onMouseLeave:()=>z("leave"),onClick:()=>{var e;return null==(e=B.current)?void 0:e.focus()},style:(0,a.Z)({minWidth:(null==u?void 0:u.width)||200,maxWidth:"none"},u),children:(0,d.jsxs)("div",{className:[t+"-inner",t+"-"+n].filter(Boolean).join(" ").trim(),children:[(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"wrap",width:"100%"},children:[N.map(((e,l)=>(0,d.jsx)(sr,(0,a.Z)({style:{height:Qr[n],margin:1,display:"flex",alignItems:"center"},className:t+"-tag",closable:!0,color:"#393E48"},p,{disabled:r,onClose:e=>{e.stopPropagation(),O(l)},children:e.label}),l))),(0,d.jsx)(fe,{ref:B,className:t+"-input-contents",size:n,disabled:r,onKeyDown:function(e){N.length>0&&!Z&&8===e.keyCode&&O(N.length-1)},onChange:e=>D(e.target.value),value:Z,placeholder:N.length?"":h})]}),!r&&(0,d.jsx)("span",{style:{height:25,width:14},className:t+"-close-tag-contents",children:("close"===P||"loading"===P&&s)&&(0,d.jsx)(w,{type:P,spin:s&&"loading"===P,onClick:function(e){var t;e.stopPropagation(),null==(t=B.current)||t.focus(),D(""),C(!1),k([]),L([])}})})]})})})};var ta=["onChange","onSearch","multiple","options","value","emptyOption","treeProps"];function na(e){var[t,n]=(0,l.useState)({}),[r,i]=(0,l.useState)([]);(0,l.useEffect)((()=>{var t,r={},a=null==(t=e.values)?void 0:t.map((e=>(r[e.key]=e.label,e.key)));n(r),i(a||[])}),[e.values]);var s=(e,t,n)=>{var r=(e,n,r)=>{r?t[e]=n:delete t[e]},a=e=>{if(e.parent){var n=e.parent.children.filter((e=>!t[e.key])).length;r(e.parent.key,e.parent.label,0===n),a(e.parent)}};return e.forEach((e=>{var l,i;null!=(l=e.children)&&l.length&&(t=s(e.children,t,n)),r(e.key,null==(i=e.label)?void 0:i.toString(),n),a(e)})),t};return(0,d.jsx)(Xr,(0,a.Z)({defaultExpandAll:!0},e,{data:e.options,selectedKeys:r,onSelected:(n,r,a,l)=>{var i=s([l],t,a),o=!1;"number"===typeof r&&(o=!0);var c=Object.entries(i).map((e=>{var[t,n]=e;return{key:o?Number.parseInt(t):t,label:n}}));null==e.onSelected||e.onSelected(c,{key:l.key,label:l.label},a)}}))}function ra(e){var[t,n]=(0,l.useState)([]);(0,l.useEffect)((()=>{var t,r=[];null!=(t=e.values)&&t.length&&(r[0]=e.values[0].key),n(r)}),[e.values]);return(0,d.jsx)(Gr,(0,a.Z)({defaultExpandAll:!0},e,{multiple:!1,data:e.options,selectedKeys:t,onSelected:(t,n,r,a)=>{var{key:l,label:i}=a,s={key:l,label:i};null==e.onSelected||e.onSelected(r?[s]:[],s,r)}}))}const aa=function(e){var{onChange:t,multiple:n=!0,options:i=[],value:s=[],emptyOption:o=!i.length,treeProps:c}=e,u=(0,r.Z)(e,ta),[h,p]=(0,l.useState)(Array.isArray(s)?s:[s]),[m,f]=(0,l.useState)(i),[v,x]=(0,l.useState)(o);return(0,l.useEffect)((()=>{p(Array.isArray(s)?s:[])}),[JSON.stringify(s)]),(0,d.jsx)(ea,(0,a.Z)({},u,{emptyOption:v,selectCloseDrop:!n,onSearch:e=>{!function t(n,r){void 0===r&&(r=!0),n.forEach((n=>{var a,l=!n.label.includes(e.trim())&&r;if(null!=(a=n.children)&&a.length){t(n.children,l);var i=n.children.find((e=>!e.hideNode));n.hideNode=l&&!i}else n.hideNode=l}))}(i),f([...i]);var t=!0;i.forEach((e=>t=t&&!!e.hideNode)),x("boolean"===typeof o&&t?t:o)},onChange:(e,n,r)=>{p(e),null==t||t(n,e,r)},values:h,options:m,content:n?(0,d.jsx)(na,(0,a.Z)({},c)):(0,d.jsx)(ra,(0,a.Z)({},c))}))};var la=function(e){return e[e.UnChecked=0]="UnChecked",e[e.AllChecked=1]="AllChecked",e[e.Indeterminate=2]="Indeterminate",e}(la||{});const ia=function(e){var{placeholder:t,options:n,value:r=[],showSearch:i=!1,selectedAll:s=!1,bodyStyle:o,style:c,className:u,prefixCls:h="w-transfer"}=e,p=[h,u].filter(Boolean).join(" ").trim(),[m,f]=(0,l.useState)(""),[v,x]=(0,l.useState)(""),[g,y]=(0,l.useState)(n||[]),j=(0,l.useRef)(0),[b,C]=(0,l.useState)(new Map),[N,k]=(0,l.useState)(new Map),[S,Z]=(0,l.useState)([]),[E,P]=(0,l.useState)([]),[M,B]=(0,l.useState)([]),[z,L]=(0,l.useState)({left:la.UnChecked,right:la.UnChecked});(0,l.useEffect)((()=>{r&&(B(r||[]),null==r||r.forEach((e=>b.set(e.key,e.label))),O((e=>!(null==r||!r.find((t=>e.key===t.key))))))}),[JSON.stringify(r)]);var O=e=>{j.current=0;var t=n=>{n.forEach((n=>{var r,a=e(n);if(null!=(r=n.children)&&r.length){t(n.children);var l=n.children.find((e=>!e.hideNode));n.hideNode=a&&!l}else n.hideNode=a;n.hideNode||j.current++}))};t(g),y([...g])},D=(e,t,n)=>{var r=(e,n,r)=>{r?t.set(e,n):t.delete(e)},a=e=>{if(e.parent){var n=e.parent.children.filter((e=>!t.get(e.key)&&!e.hideNode)).length;r(e.parent.key,e.parent.label,0===n),a(e.parent)}};return e.forEach((e=>{var l,i;null!=(l=e.children)&&l.length&&(t=D(e.children,t,n)),r(e.key,null==(i=e.label)?void 0:i.toString(),n),a(e)})),t},R=t=>{"left"===t?(N.forEach(((e,t)=>{b.set(t,e)})),k(new Map),Z([])):(E.forEach((e=>{b.delete(e)})),P([])),C(b);var n=[];b.forEach(((e,t)=>n.push({key:t,label:e}))),null==e.onChange||e.onChange(t,n)},A=e=>(0,d.jsx)(w,{onClick:()=>e.click(),type:"down-square-o",className:h+"-arrow",style:(0,a.Z)({fontSize:20,stroke:"#e9e9e9",fill:"#333"},e.style)});return(0,d.jsxs)("div",{className:p,style:(0,a.Z)({width:400},c),children:[(0,d.jsxs)(Ke,{bodyStyle:{padding:"5px 9px"},title:(0,d.jsxs)("div",{children:[s&&(0,d.jsx)(kt,{indeterminate:S.length<j.current&&!!S.length,checked:S.length>=j.current&&!!S.length,onChange:e=>{var t=e.target.checked;if(z.left=t?1:0,t){var n=[],r=e=>{e.forEach((e=>{var t;null!=(t=e.children)&&t.length&&r(e.children),e.hideNode||(N.set(e.key,e.label),n.push(e.key))}))};r(g),k(N),Z(n)}else Z([]),k(new Map);L(z)}}),(0,d.jsxs)("label",{style:{marginLeft:3},children:[S.length,"/",j.current]})]}),className:h+"-card",children:[i&&(0,d.jsx)(fe,{placeholder:t,value:m,onChange:t=>{return n=t.target.value,O((e=>{var t=!e.label.includes(n.trim());return t||(t=!!M.find((t=>t.key===e.key))),t})),f(n),void(null==e.onSearch||e.onSearch("left",n));var n}}),(0,d.jsx)("div",{className:h+"-cheked-content",children:(0,d.jsx)(Xr,{defaultExpandAll:!0,placeholder:t||"\u641c\u7d22\u9009\u9879",data:g,selectedKeys:S,onSelected:(e,t,n,r)=>{Z(e);var a=D([r],N,n);k(a)}})})]}),(0,d.jsxs)("div",{className:h+"-arrow-content",children:[(0,d.jsx)(A,{click:()=>R("left"),style:{transform:"rotate(-90deg)",background:S.length>0?"#393E48":"none"}}),(0,d.jsx)(A,{click:()=>R("right"),style:{transform:"rotate(90deg)",background:E.length>0?"#393E48":"none"}})]}),(0,d.jsxs)(Ke,{bodyStyle:{padding:"5px 9px"},className:h+"-card",title:(0,d.jsxs)("div",{children:[s&&(0,d.jsx)(kt,{indeterminate:E.length<M.length&&!!E.length,checked:E.length===M.length&&!!E.length,onChange:e=>{var t=e.target.checked;if(z.right=t?1:0,t){var n=M.map((e=>e.key));P(n)}else P([]);L(z)}}),(0,d.jsxs)("label",{style:{marginLeft:3},children:[E.length,"/",M.length]})]}),children:[i&&(0,d.jsx)(fe,{placeholder:t,value:v,onChange:t=>{return n=t.target.value,x(n),M.forEach((e=>{var t=!e.label.includes(n.trim());e.hideNode=t})),B(M),void(null==e.onSearch||e.onSearch("right",n));var n}}),(0,d.jsx)("div",{className:h+"-cheked-content",style:o,children:(0,d.jsx)(Xr,{data:M,selectedKeys:E,onSelected:e=>{P(e)}})})]})]})}},5752:e=>{e.exports={i8:"4.22.1"}},6646:e=>{e.exports=JSON.parse('[{"name":"\u6307\u5357","path":"/guide","icon":"home","children":[{"name":"\u5feb\u901f\u5f00\u59cb","path":"quick-start"},{"divider":true,"name":"\u5de5\u5177"},{"name":"\u6309\u9700\u52a0\u8f7d","path":"import"},{"name":"\u5728 create-react-app \u4e2d\u4f7f\u7528","path":"create-react-app"},{"name":"\u5728 kkt \u4e2d\u4f7f\u7528","path":"kkt"},{"name":"VSCode \u63d2\u4ef6","path":"vscode"},{"divider":true,"name":"\u5176\u5b83"},{"name":"\u6587\u6863\u7f16\u8f91\u9884\u89c8","path":"docs"},{"name":"\u66f4\u65b0\u65e5\u5fd7","path":"https://github.com/uiwjs/uiw/releases"},{"name":"\u793e\u533a\u7cbe\u9009\u7ec4\u4ef6","path":"recommendation"},{"name":"Awesome UIKit","path":"https://github.com/jaywcjlove/awesome-uikit"},{"name":"Awesome React Components","path":"https://github.com/brillout/awesome-react-components"}]},{"name":"\u7ec4\u4ef6","path":"/components","icon":"component","children":[{"divider":true,"name":"\u57fa\u672c"},{"name":"Color \u989c\u8272","path":"colors"},{"name":"Reset CSS","path":"reset-css"},{"name":"Icon \u56fe\u6807","path":"icon"},{"name":"Button \u6309\u94ae","path":"button"},{"divider":true,"name":"\u5e03\u5c40"},{"name":"Divider \u5206\u5272\u7ebf","path":"divider"},{"name":"Grid \u6805\u683c","path":"grid"},{"name":"Layout \u5e03\u5c40","path":"layout"},{"name":"Split \u9762\u677f\u5206\u5272","path":"Split"},{"divider":true,"name":"\u8868\u5355"},{"name":"Form \u8868\u5355","path":"form"},{"name":"Radio \u5355\u9009\u6846","path":"radio"},{"name":"Checkbox \u591a\u9009\u6846","path":"checkbox"},{"name":"Cascader \u7ea7\u8054\u9009\u62e9","path":"cascader"},{"name":"Input \u8f93\u5165\u6846","path":"input"},{"name":"FileInput \u4e0a\u4f20\u8f93\u5165\u6846","path":"file-input"},{"name":"PinCode PIN\u7801","path":"pin-code"},{"name":"Rate \u8bc4\u5206","path":"rate"},{"name":"Switch \u5f00\u5173","path":"switch"},{"name":"Select \u9009\u62e9\u5668","path":"select"},{"name":"SearchSelect \u641c\u7d22\u9009\u62e9\u5668","path":"search-select"},{"name":"SearchTree \u641c\u7d22\u6811\u5f62\u63a7\u4ef6","path":"search-tree"},{"name":"Slider \u6ed1\u5757\u8f93\u5165\u6761","path":"slider"},{"name":"TreeChecked \u6811\u5f62\u9009\u62e9\u63a7\u4ef6","path":"tree-checked"},{"name":"Transfer \u7a7f\u68ad\u6846","path":"transfer"},{"name":"Textarea \u591a\u884c\u6587\u672c\u8f93\u5165\u6846","path":"textarea"},{"name":"CSVReader \u6587\u4ef6 CSV \u8f93\u5165","path":"https://uiwjs.github.io/react-csv-reader/"},{"name":"Color \u989c\u8272\u9009\u62e9\u5668","path":"https://uiwjs.github.io/react-color/"},{"divider":true,"name":"\u65f6\u95f4\u65e5\u5386"},{"name":"Calendar \u65e5\u5386","path":"calendar"},{"name":"DatePicker \u65e5\u671f\u9009\u62e9\u5668","path":"date-picker"},{"name":"DateInput \u65e5\u671f\u8f93\u5165\u6846","path":"date-input"},{"name":"TimePicker \u65f6\u95f4\u8f93\u5165\u6846","path":"time-picker"},{"name":"MonthPicker \u6708\u4efd\u9009\u62e9\u5668","path":"month-picker"},{"name":"formatter \u65f6\u95f4\u683c\u5f0f\u5316","path":"formatter"},{"divider":true,"name":"\u6570\u636e\u663e\u793a"},{"name":"Avatar \u5934\u50cf","path":"avatar"},{"name":"Badge \u6807\u8bb0","path":"badge"},{"name":"Card \u5361\u7247","path":"card"},{"name":"Carousel \u8d70\u9a6c\u706f","path":"carousel"},{"name":"Collapse \u6298\u53e0\u9762\u677f","path":"collapse"},{"name":"Descriptions \u63cf\u8ff0\u5217\u8868","path":"descriptions"},{"name":"Tag \u6807\u7b7e","path":"tag"},{"name":"Tree \u6811\u5f62\u63a7\u4ef6","path":"tree"},{"name":"Table \u8868\u683c","path":"table"},{"name":"Progress \u8fdb\u5ea6\u6761","path":"progress"},{"name":"List \u5217\u8868","path":"list"},{"name":"AutoLink \u6587\u672c\u8d85\u94fe\u63a5","path":"auto-link"},{"name":"Empty \u7a7a\u72b6\u6001","path":"empty"},{"name":"JSONView JSON \u9884\u89c8","path":"https://uiwjs.github.io/react-heat-map"},{"name":"HeatMap \u65e5\u5386\u70ed\u56fe","path":"https://uiwjs.github.io/react-heat-map"},{"name":"Watermark \u6c34\u5370","path":"https://uiwjs.github.io/react-watermark"},{"name":"Markdown Preview","path":"https://uiwjs.github.io/react-markdown-preview/"},{"name":"Keywords","path":"https://uiwjs.github.io/react-keywords"},{"name":"Only When","path":"https://uiwjs.github.io/react-only-when"},{"divider":true,"name":"\u5bfc\u822a"},{"name":"Affix \u56fe\u9489","path":"affix"},{"name":"Breadcrumb \u9762\u5305\u5c51","path":"breadcrumb"},{"name":"Dropdown \u4e0b\u62c9\u83dc\u5355","path":"dropdown"},{"name":"Menu \u83dc\u5355","path":"menu"},{"name":"Pagination \u5206\u9875","path":"pagination"},{"name":"Steps \u6b65\u9aa4\u6761","path":"steps"},{"name":"Tabs \u6807\u7b7e\u9875","path":"tabs"},{"name":"Tabs Draggable","path":"https://uiwjs.github.io/react-tabs-draggable"},{"divider":true,"name":"\u53cd\u9988"},{"name":"Overlay \u57fa\u7840\u5f39\u51fa\u5c42","path":"overlay"},{"name":"OverlayTrigger \u57fa\u7840\u5f39\u51fa\u89e6\u53d1","path":"overlay-trigger"},{"name":"Alert \u786e\u8ba4\u5bf9\u8bdd\u6846","path":"alert"},{"name":"Drawer \u62bd\u5c49","path":"drawer"},{"name":"Modal \u6a21\u6001\u5bf9\u8bdd\u6846","path":"modal"},{"name":"Message \u8b66\u544a\u63d0\u793a","path":"message"},{"name":"Loader \u52a0\u8f7d\u5668","path":"loader"},{"name":"Notify \u6d88\u606f\u901a\u77e5","path":"notify"},{"name":"Popover \u6c14\u6ce1\u5361\u7247","path":"popover"},{"name":"Tooltip \u6587\u5b57\u63d0\u793a","path":"tooltip"},{"divider":true,"name":"\u5730\u56fe"},{"name":"AMap \u9ad8\u5fb7\u5730\u56fe","path":"https://uiwjs.github.io/react-amap"},{"name":"BaiduMap \u767e\u5ea6\u5730\u56fe","path":"https://uiwjs.github.io/react-baidu-map"},{"divider":true,"name":"\u7f16\u8f91\u5668"},{"name":"Textarea CodeEditor","path":"https://uiwjs.github.io/react-textarea-code-editor/"},{"name":"MDEditor \u7f16\u8f91\u5668","path":"https://uiwjs.github.io/react-md-editor/"},{"name":"Markdown Editor \u7f16\u8f91\u5668","path":"https://uiwjs.github.io/react-markdown-editor/"},{"name":"CodePreview JS\u7f16\u8f91\u9884\u89c8","path":"https://uiwjs.github.io/react-code-preview/"},{"name":"Codemirror \u4ee3\u7801\u7f16\u8f91\u5668","path":"https://uiwjs.github.io/react-codemirror/"},{"name":"MonacoEditor \u4ee3\u7801\u7f16\u8f91\u5668","path":"https://jaywcjlove.github.io/react-monacoeditor/"},{"name":"Code Preview Layout","path":"https://uiwjs.github.io/react-code-preview-layout"},{"name":"BackTop \u8fd4\u56de\u9876\u90e8","path":"back-top"},{"name":"BackToTop \u8fd4\u56de\u9876\u90e8","path":"https://uiwjs.github.io/react-back-to-top"},{"divider":true,"name":"\u5176\u5b83"},{"name":"Portal \u5165\u53e3","path":"portal"},{"name":"CopyToClipboard \u590d\u5236","path":"copy-to-clipboard"},{"name":"Clock","path":"https://uiwjs.github.io/react-clock"},{"name":"Codepen","path":"https://uiwjs.github.io/react-codepen/"},{"name":"Domain Verify","path":"https://uiwjs.github.io/react-domain-verify"},{"name":"Github Corners","path":"https://uiwjs.github.io/react-github-corners/"},{"name":"Mac Keyboard","path":"https://uiwjs.github.io/react-mac-keyboard/"},{"name":"Only When","path":"https://uiwjs.github.io/react-only-when/"},{"name":"React Login Page \u767b\u5f55","path":"https://uiwjs.github.io/react-login-page"},{"name":"Prismjs","path":"https://uiwjs.github.io/react-prismjs"},{"name":"Run Web","path":"https://uiwjs.github.io/react-run-web/"},{"name":"Shields","path":"https://uiwjs.github.io/react-shields"}]},{"name":"\u6269\u5c55","path":"/extensions","icon":"plugin"},{"name":"\u63d0\u4ea4\u95ee\u9898","icon":"issue","path":"https://github.com/uiwjs/uiw/issues/new/choose"},{"name":"Github","icon":"github","path":"https://github.com/uiwjs/uiw"},{"name":"Gitee","icon":"gitee","path":"https://gitee.com/uiw/uiw"}]')}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.m=e,(()=>{var e=[];n.O=(t,r,a,l)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){r=e[d][0],a=e[d][1],l=e[d][2];for(var s=!0,o=0;o<r.length;o++)(!1&l||i>=l)&&Object.keys(n.O).every((e=>n.O[e](r[o])))?r.splice(o--,1):(s=!1,l<i&&(i=l));if(s){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,a,l]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var l=Object.create(null);n.r(l);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,n.d(l,i),l}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+(6982===e?"vendors-standalone":e)+"."+{188:"afd10cb6",250:"5240af6e",269:"aaaa63ba",286:"b360fc56",295:"44d07a81",383:"9025a1ac",494:"93198d59",517:"904aec4d",632:"f348f4e3",677:"36671bd5",706:"d0e44196",968:"523cf9c9",993:"5e30e3ca",1106:"3fc81e41",1350:"7fe517c9",1599:"72492037",1992:"7934c518",2027:"ade2c74b",2452:"f7a348ec",2474:"68939252",2668:"89dffc36",2678:"e259eedf",2923:"9234f5ee",2976:"07eed6db",2993:"f8031a22",3026:"6556cc70",3028:"f383acf1",3152:"9d4b4798",3174:"d48bb4d7",3262:"0f314638",3451:"69cb3cfc",3492:"7209aa3b",3533:"bfc799de",3588:"f9523915",3864:"664b3141",3966:"b9326bd8",4154:"63ad2ae7",4687:"0ea06870",4833:"7dabdfa9",4876:"169a9569",4907:"e439abb5",5490:"4c40c138",5704:"25db6066",5740:"65ab41b5",5817:"115202c0",5877:"48468af6",5922:"43770765",6037:"52156fb1",6074:"8a8615e1",6084:"eaa4cedd",6349:"1c773f35",6434:"976dd5a3",6449:"6938ace8",6521:"f8eef7c5",6610:"93f6f06a",6819:"1b6d20e1",6965:"2a74d0c6",6968:"583e8ae6",6982:"b258aabc",7025:"37492535",7329:"a2cdd956",7427:"ae682d1d",7465:"cc0d9103",7604:"dd361233",7729:"d2a41229",7779:"e06c2b22",8386:"f25a64a8",8577:"4c7bb468",8586:"82110d71",8818:"758cb720",9406:"7aabdc6d",9677:"64986025",9721:"d36b002d",9846:"2d479f6c",9899:"e23adb8d",9932:"7dd64d37"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{3174:"3b3d8416",7025:"bf58e035",7604:"9365aa58",9677:"b9557aaf"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="website:";n.l=(r,a,l,i)=>{if(e[r])e[r].push(a);else{var s,o;if(void 0!==l)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+l){s=u;break}}s||(o=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+l),s.src=r),e[r]=[a];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),o&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var a=n.miniCssF(e),l=n.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var a=(i=n[r]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(a===e||a===t))return i}var l=document.getElementsByTagName("style");for(r=0;r<l.length;r++){var i;if((a=(i=l[r]).getAttribute("data-href"))===e||a===t)return i}})(a,l))return t();((e,t,n,r,a)=>{var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onerror=l.onload=n=>{if(l.onerror=l.onload=null,"load"===n.type)r();else{var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,o=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=i,o.request=s,l.parentNode&&l.parentNode.removeChild(l),a(o)}},l.href=t,n?n.parentNode.insertBefore(l,n.nextSibling):document.head.appendChild(l)})(e,l,null,t,r)})),t={179:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{3174:1,7025:1,7604:1,9677:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={179:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else if(9677!=t){var l=new Promise(((n,r)=>a=e[t]=[n,r]));r.push(a[2]=l);var i=n.p+n.u(t),s=new Error;n.l(i,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var l=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+l+": "+i+")",s.name="ChunkLoadError",s.type=l,s.request=i,a[1](s)}}),"chunk-"+t,t)}else e[t]=0},n.O.j=t=>0===e[t];var t=(t,r)=>{var a,l,i=r[0],s=r[1],o=r[2],c=0;if(i.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(o)var d=o(n)}for(t&&t(r);c<i.length;c++)l=i[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},r=self.webpackChunkwebsite=self.webpackChunkwebsite||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var r=n.O(void 0,[1908,9896,6450],(()=>n(5578)));r=n.O(r)})();
|
|
2
|
-
//# sourceMappingURL=main.
|
|
1
|
+
(()=>{"use strict";var e={8869:(e,t,n)=>{n.d(t,{Z:()=>a});n(8573);var r=n(4760);const a={dark:(0,r.jsx)("svg",{viewBox:"0 0 20 20",width:"23",height:"23",version:"1.1",children:(0,r.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M5.70480219,0 L10.4096044,3.41834667 L8.61252986,8.94934776 L2.79707453,8.94934776 L1,3.41834667 L5.70480219,0 Z M5.70480219,20 L1,16.5816533 L2.79707453,11.0506522 L8.61252986,11.0506522 L10.4096044,16.5816533 L5.70480219,20 Z M18.8709653,12.9678909 L13.3400514,14.7649021 L9.92167142,10.0599974 L13.3399103,5.35519519 L18.8708781,7.15237223 L18.8709653,12.9678909 Z",fill:"#FFFFFF"})})}),light:(0,r.jsx)("svg",{viewBox:"0 0 20 20",version:"1.1",children:(0,r.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M5.70480219,0 L10.4096044,3.41834667 L8.61252986,8.94934776 L2.79707453,8.94934776 L1,3.41834667 L5.70480219,0 Z M5.70480219,20 L1,16.5816533 L2.79707453,11.0506522 L8.61252986,11.0506522 L10.4096044,16.5816533 L5.70480219,20 Z M18.8709653,12.9678909 L13.3400514,14.7649021 L9.92167142,10.0599974 L13.3399103,5.35519519 L18.8708781,7.15237223 L18.8709653,12.9678909 Z",fill:"#FFFFFF"})})})}},5578:(e,t,n)=>{var r=n(8573),a=n(8650),l=n(3279),i=n(623),s=n(948),o=(n(9059),n(4760));function c(){return(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{children:"It looks like you're lost..."}),(0,o.jsx)("p",{children:(0,o.jsx)(i.rU,{to:"/",children:"Go to the home page"})})]})}var d=n(7937);function u(){return(0,o.jsx)(d.Loader,{tip:"Loading...",indicator:(0,o.jsx)(d.Icon,{type:"loading",spin:!0,style:{verticalAlign:"text-top"}})})}var h=n(5752);const p={};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.useMemo)((()=>(0,o.jsx)(d.Select.Option,{value:e.version,children:e.version})),[e.version])}const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(e){const t=e.target.value,n="1"===t.split(".")[0];window.location.href=n?"https://unpkg.com/uiw@".concat(t,"/dist/index.html"):"https://unpkg.com/@uiw/doc@".concat(t,"/web/index.html")}const n=h.i8,a=e.data;return a[0]!==n&&a.unshift(n),(0,r.useMemo)((()=>(0,o.jsx)("div",{className:p.nav,children:(0,o.jsx)(d.Select,{defaultValue:a[0],onChange:t,children:a.map(((e,t)=>(0,o.jsx)(m,{version:e},t)))})})),[a])},v={sider:"index_sider__vrASx",menuWarpper:"index_menuWarpper__asOzy",subMenu:"index_subMenu__c4Mvo",layoutWrap:"index_layoutWrap__6CE3D",layoutSider:"index_layoutSider__1t-SG"},x=JSON.parse('["4.0.0","3.10.12","2.0.1","1.16.19"]'),g={title:"index_title__O5TzH",menu:"index_menu__9HE8I",divider:"index_divider__1cINS"};var y=n(6646);const j={home:(0,o.jsx)("svg",{width:"23",height:"24",viewBox:"0 0 23 24",children:(0,o.jsx)("path",{fill:"#555",d:"M7.95808665,21.4797568 L7.95808665,14.2926972 C7.95808665,13.872855 8.29729322,13.5325056 8.71572573,13.5325056 L14.7768383,13.5325056 C15.1952708,13.5325056 15.5344774,13.872855 15.5344774,14.2926972 L15.5344774,21.4800639 L18.3333605,21.4801773 C18.4412665,21.4760176 18.5251665,21.4671569 18.58271,21.4596448 C18.588514,21.3995182 18.5915777,21.3235793 18.5907536,21.2318213 L18.5909124,14.2893672 C18.590922,13.869525 18.9301364,13.5291834 19.3485689,13.5291931 C19.7670014,13.5292027 20.1062001,13.8695599 20.1061905,14.2894021 L20.1059996,21.2248359 C20.1119888,21.8771673 19.9896563,22.3494462 19.5993559,22.6516032 C19.3010239,22.8825616 18.9057568,22.9796164 18.3624477,23 L4.48346492,22.9997015 C3.86961191,22.9824374 3.38486601,22.8118189 3.07125061,22.4182996 C2.79329968,22.0695315 2.68322544,21.5965073 2.68425496,20.9934992 L2.68424909,14.2893853 C2.68424872,13.8695431 3.02345499,13.5291934 3.4418875,13.5291931 C3.86032001,13.5291927 4.19952687,13.8695418 4.19952724,14.289384 L4.199532,20.9947994 C4.19904359,21.2811808 4.23526541,21.4410529 4.2538782,21.4676906 C4.24030246,21.4480656 4.31738234,21.474056 4.50469304,21.4796169 L7.95808665,21.4797568 Z M9.4733648,21.4798183 L14.0191993,21.4800025 L14.0191993,15.0528888 L9.4733648,15.0528888 L9.4733648,21.4798183 Z M2.28332829,11.4133771 C1.98200714,11.7046849 1.50237937,11.6957445 1.21204968,11.3934082 C0.921719999,11.0910719 0.930630346,10.6098283 1.2319515,10.3185205 L10.4507678,1.41136668 C10.7833916,1.14885042 11.1310579,1 11.4999998,1 C11.9102569,1 12.2738276,1.19453217 12.5845816,1.51087139 L21.7658664,10.3164197 C22.0683439,10.6065186 22.0791684,11.0877227 21.7900436,11.3912192 C21.5009189,11.6947157 21.0213305,11.7055767 20.718853,11.4154779 L11.5218713,2.5944308 C11.4545418,2.52599021 11.4440624,2.52038312 11.4999998,2.52038312 C11.514622,2.52038312 11.4750696,2.53731716 11.4448602,2.55629655 L2.28332829,11.4133771 Z"})}),component:(0,o.jsxs)("svg",{viewBox:"0 0 1041 1024",width:"20",height:"20",children:[(0,o.jsx)("path",{d:"M133.498105 661.882904h31.175644v195.047619a34.373146 34.373146 0 0 0 34.373146 34.373146h109.514441a34.373146 34.373146 0 1 0 0-68.746292h-75.141295V627.509758a35.172521 35.172521 0 0 0-34.373146-35.172521h-65.54879a63.950039 63.950039 0 0 1 0-127.900079h65.54879a35.172521 35.172521 0 0 0 34.373146-35.172521V233.417642h195.846994a35.172521 35.172521 0 0 0 35.172522-34.373146v-65.54879a63.950039 63.950039 0 0 1 127.900078 0v65.54879a35.172521 35.172521 0 0 0 35.172521 34.373146h195.047619v74.341921a34.373146 34.373146 0 0 0 68.746292 0V199.044496a34.373146 34.373146 0 0 0-34.373146-34.373145H661.885302v-31.175645a133.495706 133.495706 0 0 0-266.991413 0v31.175645H199.046895a34.373146 34.373146 0 0 0-34.373146 34.373145v195.846995h-31.175644A132.696331 132.696331 0 0 0 0.002398 527.587822a133.495706 133.495706 0 0 0 133.495707 134.295082z",fill:"#6F737E"}),(0,o.jsx)("path",{d:"M1004.817386 840.943013a79.937549 79.937549 0 1 1 0-159.875097 34.373146 34.373146 0 0 0 34.373146-32.774395V533.982826a34.373146 34.373146 0 0 0-34.373146-34.373146H879.315435v-10.391881a103.119438 103.119438 0 1 0-206.238876 0v10.391881H549.972734a35.172521 35.172521 0 0 0-35.172522 34.373146v124.702576h-10.391881a103.119438 103.119438 0 1 0 0 206.238876h10.391881v124.702576a35.172521 35.172521 0 0 0 35.172522 34.373146H663.484053a34.373146 34.373146 0 0 0 34.373146-34.373146 79.937549 79.937549 0 0 1 159.875098 0 34.373146 34.373146 0 0 0 34.373146 34.373146h114.310694a34.373146 34.373146 0 0 0 34.373146-34.373146V879.313037a34.373146 34.373146 0 0 0-35.971897-38.370024z",fill:"#6F737E"})]}),github:(0,o.jsxs)("svg",{viewBox:"0 0 1049 1024",width:"20",height:"20",children:[(0,o.jsx)("path",{d:"M524.979332 0C234.676191 0 0 234.676191 0 524.979332c0 232.068678 150.366597 428.501342 358.967656 498.035028 26.075132 5.215026 35.636014-11.299224 35.636014-25.205961 0-12.168395-0.869171-53.888607-0.869171-97.347161-146.020741 31.290159-176.441729-62.580318-176.441729-62.580318-23.467619-60.841976-58.234462-76.487055-58.234463-76.487055-47.804409-32.15933 3.476684-32.15933 3.476685-32.15933 53.019436 3.476684 80.83291 53.888607 80.83291 53.888607 46.935238 79.963739 122.553122 57.365291 152.97411 43.458554 4.345855-33.897672 18.252593-57.365291 33.028501-70.402857-116.468925-12.168395-239.022047-57.365291-239.022047-259.012982 0-57.365291 20.860106-104.300529 53.888607-140.805715-5.215026-13.037566-23.467619-66.926173 5.215027-139.067372 0 0 44.327725-13.906737 144.282399 53.888607 41.720212-11.299224 86.917108-17.383422 131.244833-17.383422s89.524621 6.084198 131.244833 17.383422C756.178839 203.386032 800.506564 217.29277 800.506564 217.29277c28.682646 72.1412 10.430053 126.029806 5.215026 139.067372 33.897672 36.505185 53.888607 83.440424 53.888607 140.805715 0 201.64769-122.553122 245.975415-239.891218 259.012982 19.121764 16.514251 35.636014 47.804409 35.636015 97.347161 0 70.402857-0.869171 126.898978-0.869172 144.282399 0 13.906737 9.560882 30.420988 35.636015 25.205961 208.601059-69.533686 358.967656-265.96635 358.967655-498.035028C1049.958663 234.676191 814.413301 0 524.979332 0z",fill:"#191717"}),(0,o.jsx)("path",{d:"M199.040177 753.571326c-0.869171 2.607513-5.215026 3.476684-8.691711 1.738342s-6.084198-5.215026-4.345855-7.82254c0.869171-2.607513 5.215026-3.476684 8.691711-1.738342s5.215026 5.215026 4.345855 7.82254z m-6.953369-4.345856M219.900283 777.038945c-2.607513 2.607513-7.82254 0.869171-10.430053-2.607514-3.476684-3.476684-4.345855-8.691711-1.738342-11.299224 2.607513-2.607513 6.953369-0.869171 10.430053 2.607514 3.476684 4.345855 4.345855 9.560882 1.738342 11.299224z m-5.215026-5.215027M240.760389 807.459932c-3.476684 2.607513-8.691711 0-11.299224-4.345855-3.476684-4.345855-3.476684-10.430053 0-12.168395 3.476684-2.607513 8.691711 0 11.299224 4.345855 3.476684 4.345855 3.476684 9.560882 0 12.168395z m0 0M269.443034 837.011749c-2.607513 3.476684-8.691711 2.607513-13.906737-1.738342-4.345855-4.345855-6.084198-10.430053-2.607513-13.037566 2.607513-3.476684 8.691711-2.607513 13.906737 1.738342 4.345855 3.476684 5.215026 9.560882 2.607513 13.037566z m0 0M308.555733 853.526c-0.869171 4.345855-6.953369 6.084198-13.037566 4.345855-6.084198-1.738342-9.560882-6.953369-8.691711-10.430053 0.869171-4.345855 6.953369-6.084198 13.037566-4.345855 6.084198 1.738342 9.560882 6.084198 8.691711 10.430053z m0 0M351.145116 857.002684c0 4.345855-5.215026 7.82254-11.299224 7.82254-6.084198 0-11.299224-3.476684-11.299224-7.82254s5.215026-7.82254 11.299224-7.82254c6.084198 0 11.299224 3.476684 11.299224 7.82254z m0 0M391.126986 850.049315c0.869171 4.345855-3.476684 8.691711-9.560882 9.560882-6.084198 0.869171-11.299224-1.738342-12.168395-6.084197-0.869171-4.345855 3.476684-8.691711 9.560881-9.560882 6.084198-0.869171 11.299224 1.738342 12.168396 6.084197z m0 0",fill:"#191717"})]}),issue:(0,o.jsxs)("svg",{className:"issue",viewBox:"0 0 1024 1024",width:"23",height:"23",children:[(0,o.jsx)("path",{d:"M1022.976 698.368c0-58.88-24.064-113.664-64.512-155.648-44.544 175.616-223.744 307.2-438.784 310.784 51.712 55.296 131.072 90.624 219.648 90.624 21.504 0 41.984-2.048 61.952-6.144 54.784 75.776 121.856 72.192 121.856 72.192-24.064-14.848-27.136-69.632-26.112-108.032 76.288-44.032 125.952-119.296 125.952-203.776z m0 0",fill:"#558EFF"}),(0,o.jsx)("path",{d:"M458.24 13.824C205.312 13.824 0 191.488 0 410.624c0 137.216 80.384 258.048 202.24 329.216 1.536 61.44-3.584 150.016-41.984 174.592 0 0 108.544 5.632 197.12-116.736 32.256 6.144 66.048 9.728 100.352 9.728H465.92c215.04-3.584 394.24-135.168 438.784-310.784 7.168-27.648 10.752-56.32 10.752-86.016 0.512-219.136-204.288-396.8-457.216-396.8zM256 462.848c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m202.24 0c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m202.24 0c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m0 0",fill:"#549EFF"})]}),gitee:(0,o.jsx)("svg",{className:"gitee",viewBox:"0 0 1024 1024",width:"200",height:"200",children:(0,o.jsx)("path",{d:"M512 1024C229.222 1024 0 794.778 0 512S229.222 0 512 0s512 229.222 512 512-229.222 512-512 512z m259.149-568.883h-290.74a25.293 25.293 0 0 0-25.292 25.293l-0.026 63.206c0 13.952 11.315 25.293 25.267 25.293h177.024c13.978 0 25.293 11.315 25.293 25.267v12.646a75.853 75.853 0 0 1-75.853 75.853h-240.23a25.293 25.293 0 0 1-25.267-25.293V417.203a75.853 75.853 0 0 1 75.827-75.853h353.946a25.293 25.293 0 0 0 25.267-25.292l0.077-63.207a25.293 25.293 0 0 0-25.268-25.293H417.152a189.62 189.62 0 0 0-189.62 189.645V771.15c0 13.977 11.316 25.293 25.294 25.293h372.94a170.65 170.65 0 0 0 170.65-170.65V480.384a25.293 25.293 0 0 0-25.293-25.267z",fill:"#C71D23"})}),plugin:(0,o.jsxs)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",children:[(0,o.jsx)("path",{d:"M937.6 251.3L538 69.7c-11.5-5.1-24.6-5.1-36.1 0L102.4 251.3c-22.4 9.9-32.5 32.2-22.6 54.6 4.5 10.1 12.5 15.1 22.6 19.6L502 506.1c11.5 5.1 24.6 5.1 36.1 0l399.6-180.6c22.4-9.9 32.5-33.2 22.6-55.6-4.6-10.1-12.6-14.1-22.7-18.6zM497.6 723.4l-398.7-165c-18.4-7.6-27.1-28.7-19.5-47 7.6-18.4 28.7-27.1 47-19.5l398.7 165c18.4 7.6 27.1 28.7 19.5 47-7.6 18.3-28.6 27.1-47 19.5z"}),(0,o.jsx)("path",{d:"M526.4 723.4l398.7-165c18.4-7.6 27.1-28.7 19.5-47-7.6-18.4-28.7-27.1-47-19.5l-398.7 165c-18.4 7.6-27.1 28.7-19.5 47 7.6 18.3 28.6 27.1 47 19.5z"}),(0,o.jsx)("path",{d:"M497.6 955.4l-398.7-165c-18.4-7.6-27.1-28.7-19.5-47 7.6-18.4 28.7-27.1 47-19.5l398.7 165c18.4 7.6 27.1 28.7 19.5 47-7.6 18.3-28.6 27.1-47 19.5z"}),(0,o.jsx)("path",{d:"M526.4 955.4l398.7-165c18.4-7.6 27.1-28.7 19.5-47-7.6-18.4-28.7-27.1-47-19.5l-398.7 165c-18.4 7.6-27.1 28.7-19.5 47 7.6 18.3 28.6 27.1 47 19.5z"})]})};function b(){const e=(0,l.TH)(),t=y.find((t=>new RegExp("^".concat(t.path||"")).test(e.pathname)));return null!==t&&void 0!==t&&t.children?(0,o.jsxs)("div",{className:g.wapper,children:[(0,o.jsxs)("h2",{className:g.title,children:[j[t.icon],(0,o.jsx)("span",{children:t.name})]}),(0,o.jsx)("div",{className:g.menu,children:t.children&&t.children.map(((e,t)=>e.divider?(0,o.jsx)("div",{className:g.divider,children:e.name},t):/^http(?:|s):\/\//.test(e.path||"")?(0,o.jsxs)("a",{href:e.path,target:"__blank",children:[e.name,(0,o.jsxs)("svg",{viewBox:"0 0 1024 1024",width:14,children:[(0,o.jsx)("path",{d:"M821.1456 276.8384c-235.9296 25.1392-449.1776 226.7136-490.5472 452.352a38.4 38.4 0 1 1-75.5712-13.824c45.568-248.576 269.312-468.48 526.6944-510.6688l-117.8112-69.1712a38.4 38.4 0 0 1 38.912-66.2528l223.3344 131.1744a38.4 38.4 0 0 1 10.1376 57.6l-170.752 206.6432a38.4 38.4 0 1 1-59.1872-48.9472l114.7904-138.9056z"}),(0,o.jsx)("path",{d:"M832 620.0832a38.4 38.4 0 0 1 76.8 0v158.208c0 85.9648-61.5936 157.8496-140.8 157.8496H204.8c-79.2064 0-140.8-71.8848-140.8-157.9008V300.3904c0-86.016 61.5936-157.8496 140.8-157.8496h220.2112a38.4 38.4 0 1 1 0 76.8H204.8c-33.8944 0-64 35.072-64 81.0496V778.24c0 45.9776 30.1056 81.1008 64 81.1008h563.2c33.8944 0 64-35.1232 64-81.1008v-158.1568z"})]})]},t):(0,o.jsx)(i.OL,{to:e.path||"",replace:!0,children:e.name},t)))})]}):null}const w={logo:"index_logo__kUQOi",top:"index_top__DLxV-",nav:"index_nav__SdXbb",navTop:"index_navTop__08yh1",btn:"index_btn__YYGUe",btnTop:"index_btnTop__PlNw6"},C={layout:"top"},N=(e,t)=>({...e,...t}),k=r.createContext({state:C,dispatch:()=>null});var S=n(8869);const Z={menu:(0,o.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 26 26",children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("rect",{width:"26",height:"26",fill:"#9E9E9E",rx:"4"}),(0,o.jsx)("rect",{width:"5",height:"20",x:"3",y:"3",fill:"#202224",rx:"2.5"}),(0,o.jsx)("rect",{width:"12",height:"20",x:"11",y:"3",fill:"#FFF",fillOpacity:".657",rx:"2"})]})}),menutop:(0,o.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 26 26",children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("rect",{width:"26",height:"26",fill:"#9E9E9E",rx:"4"}),(0,o.jsx)("rect",{width:"20",height:"5",x:"3",y:"3",fill:"#202224",rx:"2.5"}),(0,o.jsx)("rect",{width:"20",height:"12",x:"3",y:"11",fill:"#FFF",fillOpacity:".66",rx:"2"})]})}),china:(0,o.jsxs)("svg",{className:"flag",width:"19",height:"19",viewBox:"0 0 512 512",children:[(0,o.jsx)("defs",{children:(0,o.jsx)("path",{id:"a",fill:"#ffde00",d:"M1-.3L-.7.8 0-1 .6.8-1-.3z"})}),(0,o.jsx)("path",{fill:"#de2910",d:"M0 0h512v512H0z"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"matrix(76.8 0 0 76.8 128 128)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-121 142.6 -47) scale(25.5827)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-98.1 198 -82) scale(25.6)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-74 272.4 -114) scale(25.6137)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"matrix(16 -19.968 19.968 16 256 230.4)",xlinkHref:"#a"})]})};function E(){const{state:e,dispatch:t}=(0,r.useContext)(k);return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("div",{className:[w.logo,"left"===e.layout?null:w.top].filter(Boolean).join(" ").trim(),children:(0,o.jsxs)(i.rU,{to:"/",children:[S.Z.dark,"top"===e.layout&&(0,o.jsxs)("span",{children:["UIW",(0,o.jsx)("sup",{children:h.i8})]})]})}),(0,o.jsx)("div",{className:[w.nav,"left"===e.layout?null:w.navTop].filter(Boolean).join(" ").trim(),children:y.map(((t,n)=>{let{path:r,name:a,icon:l}=t;if(Object.keys(j).includes(l)&&(l=j[l]),/^https?:(?:\/\/)?/.test(r))return"top"===e.layout?(0,o.jsxs)("a",{target:"__blank",href:r,className:w.outerUrl,children:[l," ",(0,o.jsx)("span",{children:a})]},n):(0,o.jsx)(d.Tooltip,{usePortal:!1,placement:"left"===e.layout?"right":"bottom",content:(0,o.jsx)("span",{style:{whiteSpace:"nowrap"},children:a}),children:(0,o.jsx)("a",{target:"__blank",href:r,className:w.outerUrl,children:l})},n);let s={color:"#fff"};return"top"===e.layout?(0,o.jsxs)(i.OL,{to:r,style:e=>{let{isActive:t}=e;return t?s:void 0},children:[l," ",(0,o.jsx)("span",{children:a})]},n):(0,o.jsx)(d.Tooltip,{usePortal:!1,placement:"left"===e.layout?"right":"bottom",content:(0,o.jsx)("span",{style:{whiteSpace:"nowrap"},children:a}),children:(0,o.jsx)(i.OL,{to:r,style:e=>{let{isActive:t}=e;return t?s:void 0},children:l})},n)}))}),(0,o.jsxs)("div",{className:[w.btn,"left"===e.layout?null:w.btnTop].filter(Boolean).join(" ").trim(),children:[(0,o.jsx)(d.Tooltip,{placement:"left"===e.layout?"right":"bottom",content:"\u56fd\u5185\u955c\u50cf\u7ad9\u70b9",children:(0,o.jsx)("a",{href:"http://uiw.gitee.io",rel:"noopener noreferrer",target:"_blank",children:Z.china})}),(0,o.jsx)("button",{onClick:()=>t({layout:"left"===e.layout?"top":"left"}),children:"left"===e.layout?Z.menu:Z.menutop})]})]})}const{Header:P,Sider:M,Content:B}=d.Layout;function z(e){const{siderMenu:t=!0}=e,{state:n}=(0,r.useContext)(k);return(0,o.jsx)(d.Layout,{className:v.layout,children:"top"===n.layout?(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d.Affix,{offsetTop:0,style:{zIndex:999,width:"100%"},children:(0,o.jsx)(P,{style:{display:"flex",alignItems:"center"},children:(0,o.jsx)(E,{})})}),(0,o.jsxs)(d.Layout,{className:v.layoutWrap,children:[(0,o.jsx)(M,{width:t?260:0,className:v.layoutSider,children:(0,o.jsx)("div",{style:{width:t?260:0,height:"calc(100vh - 53px)"},children:(0,o.jsx)(b,{})})}),(0,o.jsxs)(B,{style:{padding:20},className:v.layoutContent,children:[(0,o.jsx)(P,{style:{height:"inherit",lineHeight:"32px",position:"absolute",padding:"5px 10px",right:10,marginTop:-10,display:"flex",flexDirection:"row",justifyContent:"flex-end",backgroundColor:"transparent",zIndex:99},children:(0,o.jsx)(f,{data:x})}),(0,o.jsx)(l.j3,{})]})]})]}):(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(M,{width:t?330:64,children:(0,o.jsxs)(d.Layout,{className:v.sider,children:[(0,o.jsx)(M,{className:v.menuWarpper,width:64,children:(0,o.jsx)(E,{})}),(0,o.jsx)(d.Layout,{style:{position:"fixed",width:t?330:64,zIndex:1,left:0,top:0,bottom:0,overflow:"auto"},children:(0,o.jsx)(B,{className:v.subMenu,style:{paddingLeft:64},children:(0,o.jsx)(b,{})})})]})}),(0,o.jsxs)(d.Layout,{style:{position:"relative"},children:[(0,o.jsx)(P,{style:{height:"inherit",lineHeight:"32px",position:"absolute",padding:"5px 10px",width:"100%",display:"flex",flexDirection:"row",justifyContent:"flex-end",backgroundColor:"transparent",zIndex:99},children:(0,o.jsx)(f,{data:x})}),(0,o.jsx)(B,{style:{padding:20},"data-ddd":"xxx",className:v.layoutContent,children:(0,o.jsx)(l.j3,{})})]})]})})}const L=e=>t=>(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(u,{}),children:(0,o.jsx)(e,{...t})}),O=L((0,r.lazy)((()=>n.e(3174).then(n.bind(n,3174))))),D=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6449)]).then(n.bind(n,9860))))),R=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7465)]).then(n.bind(n,8818))))),A=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5877)]).then(n.bind(n,7498))))),T=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4876)]).then(n.bind(n,9558))))),I=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3152)]).then(n.bind(n,707))))),F=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(993)]).then(n.bind(n,762))))),H=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4154)]).then(n.bind(n,6552))))),W=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7779)]).then(n.bind(n,5581))))),_=L((0,r.lazy)((()=>n.e(7025).then(n.bind(n,7025))))),V=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3588)]).then(n.bind(n,3044))))),K=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9406)]).then(n.bind(n,3634))))),Y=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7729)]).then(n.bind(n,9816))))),$=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2923)]).then(n.bind(n,816))))),U=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7427)]).then(n.bind(n,5449))))),J=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3533)]).then(n.bind(n,2180))))),G=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(188)]).then(n.bind(n,9659))))),q=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(295)]).then(n.bind(n,4454))))),X=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9932)]).then(n.bind(n,1981))))),Q=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(677)]).then(n.bind(n,7969))))),ee=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(286)]).then(n.bind(n,2345))))),te=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(8386)]).then(n.bind(n,3282))))),ne=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(1599)]).then(n.bind(n,7852))))),re=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6968)]).then(n.bind(n,9254))))),ae=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(8818)]).then(n.bind(n,3304))))),le=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7329)]).then(n.bind(n,416))))),ie=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6084)]).then(n.bind(n,7942))))),se=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6074)]).then(n.bind(n,8518))))),oe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9846)]).then(n.bind(n,8372))))),ce=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2668)]).then(n.bind(n,8177))))),de=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3028)]).then(n.bind(n,6053))))),ue=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6521)]).then(n.bind(n,6157))))),he=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(1350)]).then(n.bind(n,1249))))),pe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5922)]).then(n.bind(n,4513))))),me=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3451)]).then(n.bind(n,6529))))),fe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6610)]).then(n.bind(n,5921))))),ve=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2474)]).then(n.bind(n,2762))))),xe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(269)]).then(n.bind(n,3805))))),ge=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(8586)]).then(n.bind(n,5462))))),ye=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2027)]).then(n.bind(n,8759))))),je=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1908),n.e(1106),n.e(9677),n.e(8577)]).then(n.bind(n,8080))))),be=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(1992)]).then(n.bind(n,4346))))),we=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4907)]).then(n.bind(n,1712))))),Ce=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(517)]).then(n.bind(n,7737))))),Ne=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2452)]).then(n.bind(n,6421))))),ke=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6965)]).then(n.bind(n,1887))))),Se=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5740)]).then(n.bind(n,1067))))),Ze=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(968)]).then(n.bind(n,1962))))),Ee=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9899)]).then(n.bind(n,6134))))),Pe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4687)]).then(n.bind(n,5046))))),Me=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2976)]).then(n.bind(n,3411))))),Be=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(250)]).then(n.bind(n,8872))))),ze=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(383)]).then(n.bind(n,3962))))),Le=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6819)]).then(n.bind(n,3798))))),Oe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5704)]).then(n.bind(n,4463))))),De=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6434)]).then(n.bind(n,145))))),Re=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(706)]).then(n.bind(n,9754))))),Ae=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2678)]).then(n.bind(n,2437))))),Te=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3492)]).then(n.bind(n,5778))))),Ie=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3966)]).then(n.bind(n,2133))))),Fe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(7604)]).then(n.bind(n,350))))),He=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(4833)]).then(n.bind(n,1065))))),We=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6037)]).then(n.bind(n,5066))))),_e=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(6349)]).then(n.bind(n,9543))))),Ve=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3262)]).then(n.bind(n,2530))))),Ke=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5817)]).then(n.bind(n,2110))))),Ye=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(494)]).then(n.bind(n,6927))))),$e=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(5490)]).then(n.bind(n,5626))))),Ue=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(9721)]).then(n.bind(n,4426))))),Je=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(2993)]).then(n.bind(n,5482))))),Ge=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3864)]).then(n.bind(n,2129))))),qe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(632)]).then(n.bind(n,6982))))),Xe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1106),n.e(9677),n.e(3026)]).then(n.bind(n,3297))))),Qe=[{path:"/extensions",element:(0,o.jsx)(z,{siderMenu:!1}),children:[{index:!0,element:(0,o.jsx)(D,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/guide",element:(0,o.jsx)(z,{}),children:[{index:!0,element:(0,o.jsx)(R,{})},{path:"/guide/quick-start",element:(0,o.jsx)(R,{})},{path:"/guide/import",element:(0,o.jsx)(A,{})},{path:"/guide/create-react-app",element:(0,o.jsx)(T,{})},{path:"/guide/kkt",element:(0,o.jsx)(I,{})},{path:"/guide/vscode",element:(0,o.jsx)(H,{})},{path:"/guide/docs",element:(0,o.jsx)(F,{})},{path:"/guide/recommendation",element:(0,o.jsx)(W,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/components",element:(0,o.jsx)(z,{}),children:[{index:!0,element:(0,o.jsx)(_,{})},{path:"/components/overview",element:(0,o.jsx)(_,{})},{path:"/components/colors",element:(0,o.jsx)(V,{})},{path:"/components/reset-css",element:(0,o.jsx)($,{})},{path:"/components/alert",element:(0,o.jsx)(K,{})},{path:"/components/auto-link",element:(0,o.jsx)(Y,{})},{path:"/components/avatar",element:(0,o.jsx)(U,{})},{path:"/components/affix",element:(0,o.jsx)(J,{})},{path:"/components/calendar",element:(0,o.jsx)(G,{})},{path:"/components/checkbox",element:(0,o.jsx)(X,{})},{path:"/components/copy-to-clipboard",element:(0,o.jsx)(Q,{})},{path:"/components/collapse",element:(0,o.jsx)(ee,{})},{path:"/components/card",element:(0,o.jsx)(te,{})},{path:"/components/carousel",element:(0,o.jsx)(ne,{})},{path:"/components/cascader",element:(0,o.jsx)(q,{})},{path:"/components/descriptions",element:(0,o.jsx)(re,{})},{path:"/components/loader",element:(0,o.jsx)(ae,{})},{path:"/components/icon",element:(0,o.jsx)(le,{})},{path:"/components/divider",element:(0,o.jsx)(ie,{})},{path:"/components/drawer",element:(0,o.jsx)(se,{})},{path:"/components/date-picker",element:(0,o.jsx)(oe,{})},{path:"/components/date-input",element:(0,o.jsx)(ce,{})},{path:"/components/dropdown",element:(0,o.jsx)(de,{})},{path:"/components/badge",element:(0,o.jsx)(ue,{})},{path:"/components/progress",element:(0,o.jsx)(he,{})},{path:"/components/pagination",element:(0,o.jsx)(pe,{})},{path:"/components/pin-code",element:(0,o.jsx)(me,{})},{path:"/components/input",element:(0,o.jsx)(fe,{})},{path:"/components/button",element:(0,o.jsx)(ve,{})},{path:"/components/radio",element:(0,o.jsx)(xe,{})},{path:"/components/select",element:(0,o.jsx)(ge,{})},{path:"/components/search-select",element:(0,o.jsx)(ye,{})},{path:"/components/split",element:(0,o.jsx)(je,{})},{path:"/components/switch",element:(0,o.jsx)(be,{})},{path:"/components/slider",element:(0,o.jsx)(we,{})},{path:"/components/grid",element:(0,o.jsx)(Ce,{})},{path:"/components/form",element:(0,o.jsx)(Ne,{})},{path:"/components/file-input",element:(0,o.jsx)(ke,{})},{path:"/components/breadcrumb",element:(0,o.jsx)(Se,{})},{path:"/components/list",element:(0,o.jsx)(Ze,{})},{path:"/components/layout",element:(0,o.jsx)(Ee,{})},{path:"/components/notify",element:(0,o.jsx)(Pe,{})},{path:"/components/tree",element:(0,o.jsx)(Me,{})},{path:"/components/tree-checked",element:(0,o.jsx)(Be,{})},{path:"/components/search-tree",element:(0,o.jsx)(ze,{})},{path:"/components/transfer",element:(0,o.jsx)(Le,{})},{path:"/components/tag",element:(0,o.jsx)(Oe,{})},{path:"/components/tabs",element:(0,o.jsx)(De,{})},{path:"/components/tooltip",element:(0,o.jsx)(Re,{})},{path:"/components/table",element:(0,o.jsx)(Ae,{})},{path:"/components/time-picker",element:(0,o.jsx)(Te,{})},{path:"/components/rate",element:(0,o.jsx)(Ie,{})},{path:"/components/overlay",element:(0,o.jsx)(Fe,{})},{path:"/components/back-top",element:(0,o.jsx)(He,{})},{path:"/components/portal",element:(0,o.jsx)(We,{})},{path:"/components/overlay-trigger",element:(0,o.jsx)(_e,{})},{path:"/components/popover",element:(0,o.jsx)(Ve,{})},{path:"/components/message",element:(0,o.jsx)(Ke,{})},{path:"/components/month-picker",element:(0,o.jsx)(Ye,{})},{path:"/components/textarea",element:(0,o.jsx)($e,{})},{path:"/components/modal",element:(0,o.jsx)(Ue,{})},{path:"/components/formatter",element:(0,o.jsx)(Je,{})},{path:"/components/steps",element:(0,o.jsx)(Ge,{})},{path:"/components/menu",element:(0,o.jsx)(qe,{})},{path:"/components/empty",element:(0,o.jsx)(Xe,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/",element:(0,o.jsx)(O,{})}],et=()=>(0,l.V$)(Qe),tt=e=>{let{children:t}=e;const[n,a]=(0,r.useReducer)(N,C);return(0,o.jsx)(k.Provider,{value:{state:n,dispatch:a},children:t})},nt=document.getElementById("root");(0,a.s)(nt).render((0,o.jsxs)(i.UT,{children:[(0,o.jsx)(s.Z,{style:{zIndex:9999},children:"Top"}),(0,o.jsx)(tt,{children:(0,o.jsx)(et,{})})]}))},7937:(e,t,n)=>{n.r(t),n.d(t,{Affix:()=>h,Alert:()=>M,AutoLink:()=>L,Avatar:()=>D,BackTop:()=>T,Badge:()=>F,Breadcrumb:()=>K,Button:()=>N,ButtonGroup:()=>$,Calendar:()=>_e,Card:()=>Ke,Carousel:()=>$e,Cascader:()=>ut,Checkbox:()=>kt,CheckboxGroup:()=>bt,Circle:()=>er,Col:()=>dn,Collapse:()=>zt,CopyToClipboard:()=>Rt,DateInput:()=>Ft,DateInputRange:()=>Tt,DatePicker:()=>Te,DatePickerCaption:()=>De,DatePickerDay:()=>Ee,DatePickerMonth:()=>Me,DatePickerYear:()=>ze,DayRect:()=>ke,Descriptions:()=>Ut,Divider:()=>Gt,Drawer:()=>Xt,Dropdown:()=>Je,Empty:()=>en,FileInput:()=>on,Form:()=>gn,FormItem:()=>mn,Icon:()=>w,Input:()=>fe,InputNumber:()=>pe,Layout:()=>kn.default,LayoutContent:()=>kn.LayoutContent,LayoutContext:()=>kn.LayoutContext,LayoutFooter:()=>kn.LayoutFooter,LayoutHeader:()=>kn.LayoutHeader,LayoutSider:()=>kn.LayoutSider,Line:()=>nr,List:()=>Nn,ListItem:()=>jn,Loader:()=>Zn,Menu:()=>dt,MenuDivider:()=>tt,MenuItem:()=>Qe,Message:()=>Pn,Modal:()=>E,MonthPicker:()=>zn,Notify:()=>Fn,Overlay:()=>y,OverlayTrigger:()=>ce,Pagination:()=>Un,PinCode:()=>qn,Popover:()=>ue,Portal:()=>x,Progress:()=>rr,Radio:()=>mt,RadioAbstract:()=>pt,RadioButton:()=>yt,RadioGroup:()=>vt,Rate:()=>lr,Row:()=>hn,SearchSelect:()=>dr,SearchTree:()=>aa,Select:()=>Yn,Slider:()=>gr,Split:()=>ur.default,Steps:()=>fr,SubMenu:()=>at,Switch:()=>jr,Table:()=>Or,Tabs:()=>Ar,Tag:()=>sr,Textarea:()=>Ir,ThemeContext:()=>it,TimePicker:()=>be,TimePickerTime:()=>ye,Tooltip:()=>Hr,Transfer:()=>ia,Tree:()=>Gr,TreeChecked:()=>Xr,canUseDOM:()=>v,formatter:()=>U.Z,getChildKeys:()=>$r,randomid:()=>kn.randomid});var r=n(808),a=n(5773),l=n(8573);function i(){}function s(e,t){if("undefined"===typeof window)return 0;var n=t?"scrollTop":"scrollLeft",r=e===window,a=r?e[t?"pageYOffset":"pageXOffset"]:e[n];return r&&"number"!==typeof a&&(a=document.documentElement[n]),a}var o=(e,t)=>{var n=e.getBoundingClientRect(),r=(e=>e!==window?e.getBoundingClientRect():{top:0,left:0,bottom:0})(t),a=s(t,!0),l=s(t),i=window.document.body,o=i.clientTop||0,c=i.clientLeft||0;return{top:n.top-r.top+a-o,left:n.left-r.left+l-c,width:n.width,height:n.height}},c=()=>"undefined"!==typeof window?window:null,d=n(4760),u=["prefixCls","className","children","offsetTop","offsetBottom","target","onChange"];class h extends l.Component{constructor(e){super(e),this.state={placeholderStyle:void 0,affixStyle:void 0},this.box=void 0,this.target=void 0,this.events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],this.eventHandlers={},this.timeout=void 0,this.getInstance=e=>{e&&(this.box=e)},this.updatePosition=this.updatePosition.bind(this)}componentDidMount(){var e=this.props.target||c;this.timeout=window.setTimeout((()=>{this.target=e(),this.setTargetEventListeners()}))}componentWillUnmount(){this.clearEventListeners(),clearTimeout(this.timeout)}updatePosition(){var{offsetTop:e}=this.props,{offsetBottom:t}=this.props;if(this.box&&this.box.offsetParent){var n={width:this.box.clientWidth,height:this.box.clientHeight},r={top:!0,bottom:!1};"number"!==typeof e&&"number"!==typeof t&&(r.top=!0,e=0),"number"===typeof t&&(r.top=!1,r.bottom=!0);var l=o(this.box,this.target),i=this.box.getBoundingClientRect(),s=document.documentElement.clientHeight-i.y-l.height;r.top&&i.y<0?(this.setPlaceholderStyle((0,a.Z)({},n)),this.setAffixStyle({position:"fixed",top:e||0,left:l.left,width:l.width})):r.bottom&&s<0?(this.setPlaceholderStyle((0,a.Z)({},n)),this.setAffixStyle({position:"fixed",bottom:t||0,left:l.left,width:l.width})):(this.setPlaceholderStyle(),this.setAffixStyle())}}setAffixStyle(e){var{onChange:t}=this.props,n=!!this.state.affixStyle;this.setState({affixStyle:e},(()=>{t&&t(n)}))}setPlaceholderStyle(e){this.setState({placeholderStyle:e})}setTargetEventListeners(){this.clearEventListeners(),this.events.forEach((e=>{this.eventHandlers[e]=this.updatePosition,this.target&&this.target.addEventListener(e,this.updatePosition,!1)}))}clearEventListeners(){this.events.forEach((e=>{var t=this.eventHandlers[e];this.target&&this.target.removeEventListener(e,t,!1)}))}render(){var e=this.props,{prefixCls:t,className:n,children:l}=e,i=(0,r.Z)(e,u),s=[n,t].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({},i,{ref:this.getInstance,style:(0,a.Z)({},this.state.placeholderStyle,this.props.style),children:(0,d.jsx)("div",{className:s,style:this.state.affixStyle,children:l})}))}}h.defaultProps={prefixCls:"w-affix",onChange:i};var p=n(7791),m=n(6231),f=n(6836),v=!("undefined"===typeof window||!window.document||!window.document.createElement);function x(e){var{container:t}=e,n=(0,l.useRef)(),r=(0,l.useRef)(t);return(0,l.useEffect)((()=>()=>{n.current&&r.current&&(r.current.removeChild(n.current),n.current=void 0)}),[]),v?(r.current||(r.current=document.body),n.current||(n.current=document.createElement("div"),r.current.appendChild(n.current)),f.createPortal(e.children,n.current)):null}var g=["className","style","isOpen","prefixCls","usePortal","maskClosable","backdropProps","portalProps","hasBackdrop","unmountOnExit","timeout","transitionName","onOpening","onOpened","onClosing","onClosed","onClose","onEnter","onExiting","onEntering","onEntered","onExit","children","dialogProps"];function y(e){var{className:t,style:n,isOpen:s=!1,prefixCls:o="w-overlay",usePortal:c=!0,maskClosable:u=!0,backdropProps:h={},portalProps:p={},hasBackdrop:f=!0,unmountOnExit:v=!0,timeout:y=300,transitionName:j="w-overlay",onOpening:b=i,onOpened:w=i,onClosing:C=i,onClosed:N=i,onClose:k=i,onEnter:S=i,onExiting:Z=i,onEntering:E=i,onEntered:P=i,onExit:M=i,children:B,dialogProps:z={}}=e,L=(0,r.Z)(e,g),[O,D]=(0,l.useState)(),[R,A]=(0,l.useState)(!1),T=(0,l.useRef)(null),I=(0,l.useRef)(null);(0,l.useEffect)((()=>{O!==e.isOpen&&e.isOpen&&A(!0),O===e.isOpen||e.isOpen||(W(),D(!1))}),[e.isOpen]),(0,l.useEffect)((()=>{R&&(f&&c&&document.body.classList.add(o+"-open"),D(!0))}),[R]);var F="object"===typeof B?(0,l.cloneElement)(B,(0,a.Z)({},z,{style:(0,a.Z)({},B.props.style,z.style),className:[B.props.className,o+"-content"].filter(Boolean).join(" ").trim(),tabIndex:0})):(0,d.jsx)("span",(0,a.Z)({},z,{className:o+"-content",children:B}));function H(e){e.target!==T.current&&c||(u&&f&&(W(),D(!1),k&&k(e)),h&&h.onMouseDown&&h.onMouseDown(e))}function W(){f&&c&&document.body.classList.remove(o+"-open")}var _=(0,d.jsx)(m.Z,(0,a.Z)({classNames:j,unmountOnExit:v,timeout:y,in:O,onEnter:e=>{S(I.current,e)},onEntering:e=>{b(I.current,e),E(I.current)},onEntered:e=>{w(I.current,e),P(I.current)},onExiting:()=>{C(I.current),Z(I.current)},onExited:()=>{var e;e=I.current,A(!1),N&&N(e),M(I.current)},nodeRef:I},L,{children:e=>(0,d.jsxs)("div",{style:n,ref:I,className:[o,t,c?null:o+"-inline",O?o+"-enter-done":null].filter(Boolean).join(" ").trim(),children:[f&&(0,l.cloneElement)((0,d.jsx)("div",{}),(0,a.Z)({},h,{onMouseDown:H,className:[o+"-backdrop",h.className].filter(Boolean).join(" ").trim(),tabIndex:u?0:null})),c?(0,d.jsx)("div",{ref:T,onMouseDown:H,className:o+"-container",children:(0,l.cloneElement)(F,{"data-status":e})}):(0,l.cloneElement)(F,{"data-status":e})]})}));return R&&c?(0,d.jsx)(x,(0,a.Z)({},(0,a.Z)({},p),{children:_})):_}var j=n(2193),b=["className","prefixCls","verticalAlign","tagName","color","type","spin","style"];const w=e=>{var{className:t,prefixCls:n="w-icon",verticalAlign:l="middle",tagName:i="span",color:s,type:o,spin:c=!1,style:u}=e,h=(0,r.Z)(e,b),p=null;"string"===typeof o&&(p=(0,d.jsx)("svg",{fill:s||e.fill,viewBox:"0 0 20 20",children:(j[o]||[]).map(((e,t)=>(0,d.jsx)("path",{d:e,fillRule:"evenodd"},t)))}));var m=(0,a.Z)({fill:"currentColor"},u),f=[n,t,n&&l?n+"-"+l:null,c&&n?n+"-spin":null].filter(Boolean).join(" ").trim();return(0,d.jsx)(i,(0,a.Z)({className:f},h,{style:m,children:p}))};var C=["prefixCls","disabled","active","loading","block","basic","htmlType","type","size","icon","className","children"];const N=l.forwardRef(((e,t)=>{var{prefixCls:n="w-btn",disabled:i=!1,active:s=!1,loading:o=!1,block:c=!1,basic:u=!1,htmlType:h="button",type:p="light",size:m="default",icon:f,className:v,children:x}=e,g=(0,r.Z)(e,C),y=[v,n,m?n+"-size-"+m:null,p?n+"-"+p:null,u?n+"-basic":null,o?n+"-loading":null,i||o?"disabled":null,s?"active":null,c?"block":null].filter(Boolean).join(" ").trim();return(0,d.jsxs)("button",(0,a.Z)({},g,{ref:t,type:h,disabled:i||o,className:y,children:[f&&(0,d.jsx)(w,{type:f}),x&&l.Children.map(x,(e=>e?l.isValidElement(e)?e:(0,d.jsx)("span",{children:e}):e))]}))}));var k=["title","children"];var S=["prefixCls","className","children","useButton","usePortal","autoFocus","isOpen","title","cancelText","cancelButtonProps","confirmButtonProps","content","confirmText","type","icon","maxWidth","minWidth","width","isCloseButtonShown","onCancel","onConfirm","bodyStyle"],Z=l.forwardRef(((e,t)=>{var{prefixCls:n="w-modal",className:s,children:o,useButton:c=!0,usePortal:u=!0,autoFocus:h=!1,isOpen:m=!1,title:f,cancelText:v,cancelButtonProps:x,confirmButtonProps:g,content:j,confirmText:b="\u786e\u8ba4",type:C="light",icon:k,maxWidth:Z=500,minWidth:E=320,width:P,isCloseButtonShown:M=!0,onCancel:B=i,onConfirm:z=i,bodyStyle:L}=e,O=(0,r.Z)(e,S),[D,R]=(0,l.useState)(e.isOpen);(0,l.useEffect)((()=>{e.isOpen!==D&&R(e.isOpen)}),[e.isOpen]);var[A,T]=(0,l.useState)(!1),I=[n,s,C?""+C:null].filter(Boolean).join(" ").trim();function F(e){return H.apply(this,arguments)}function H(){return(H=(0,p.Z)((function*(e){T(!0);try{B&&(yield B(e))}catch(e){}R(!1),T(!1)}))).apply(this,arguments)}function W(){return(W=(0,p.Z)((function*(e){T(!0);try{z&&(yield z(e))}catch(e){}R(!1),T(!1)}))).apply(this,arguments)}return(0,d.jsx)(y,(0,a.Z)({usePortal:u,isOpen:D},O,{onClose:function(){R(!1)},className:I,children:(0,d.jsx)("div",{className:n+"-container",children:(0,d.jsxs)("div",{className:[n+"-inner",f?n+"-shown-title":null,k?n+"-shown-icon":null].filter(Boolean).join(" ").trim(),style:{maxWidth:Z,minWidth:E,width:P},children:[(f||k)&&(0,d.jsxs)("div",{className:n+"-header",children:[k&&(0,d.jsx)(w,{type:k}),f&&(0,d.jsx)("h4",{children:f}),M&&(0,d.jsx)(N,{basic:!0,onClick:e=>F(e),icon:"close",type:"light"})]}),(0,d.jsx)("div",{className:n+"-body",style:L,children:o||j}),c&&(0,d.jsxs)("div",{className:n+"-footer",children:[(0,d.jsx)(N,(0,a.Z)({autoFocus:h,type:C,loading:A,disabled:A},g,{onClick:e=>function(e){return W.apply(this,arguments)}(e),children:b})),v&&(0,d.jsx)(N,(0,a.Z)({},x,{onClick:e=>F(e),children:v}))]})]})})}))}));Z.show=function(e){var t=e||{},{title:n="\u63d0\u793a\u6846",children:l}=t,i=(0,r.Z)(t,k),s=document.createElement("div");s.id="uiw-modal-call-show-element",document.body.appendChild(s),f.render((0,d.jsx)(E,(0,a.Z)({},i,{title:n,isOpen:!0,onClosed:()=>{s.remove()},children:l})),s)};const E=Z;var P=["prefixCls","className","width"];const M=function(e){void 0===e&&(e={});var{prefixCls:t="w-alert",className:n,width:l=400}=e,i=(0,r.Z)(e,P),s=[t,n].filter(Boolean).join(" ").trim();return(0,d.jsx)(E,(0,a.Z)({},i,{width:l,className:s,children:e.children}))};var B=["text"],z=/((?:https?:\/\/)?(?:(?:[a-z0-9]?(?:[a-z0-9\-]{1,61}[a-z0-9])?\.[^\.|\s])+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})(?::\d{1,5})*[a-z0-9.,_\/~#&=;%+?\-\\(\\)]*)/gi;const L=function(e){void 0===e&&(e={});var{text:t=""}=e,n=(0,r.Z)(e,B);return(0,d.jsx)(l.Fragment,{children:t.split(z).map(((e,t)=>{var r=e.match(z);if(r&&r[0]){var i=r[0];return(0,l.createElement)("a",(0,a.Z)({},n,{key:t,href:i.startsWith("http")?i:"http://"+i}),i)}return(0,d.jsx)(l.Fragment,{children:e},t)}))})};var O=["prefixCls","shape","size","className","src","alt","icon","onError"];const D=l.forwardRef(((e,t)=>{var{prefixCls:n="w-avatar",shape:s="circle",size:o="default",className:c,src:u,alt:h,icon:p,onError:m=i}=e,f=(0,r.Z)(e,O),v=e.children,[x,g]=(0,l.useState)(!0),y=[n,c,o?n+"-"+o:null,s?n+"-"+s:null,u?n+"-image":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>{g(!0)}),[e.src]),x&&u?v=(0,d.jsx)("img",{src:u,alt:h,onError:e=>{!1!==(m?m(e):void 0)&&g(!1)}}):p&&"string"===typeof p?v=(0,d.jsx)(w,{type:p}):p&&l.isValidElement(p)&&(v=p),(0,d.jsx)("span",(0,a.Z)({},f,{className:y,ref:t,children:v}))}));function R(){var e=0;return document&&document.documentElement&&document.documentElement.scrollTop?e=document.documentElement.scrollTop:document.body&&(e=document.body.scrollTop),e}var A=["prefixCls","className","content","children","offsetTop","fixed","speed","showBelow","clickable"];const T=l.forwardRef(((e,t)=>{var{prefixCls:n="w-back-top",className:i,content:s,children:o,offsetTop:c=0,fixed:u=!0,speed:h=100,showBelow:p=1,clickable:m=!0}=e,f=(0,r.Z)(e,A),v=u&&p||0,[x,g]=(0,l.useState)(0),[y,j]=(0,l.useState)(0),b=x>=v,w=[n,i,u?null:"no-fixed",b?n+"-show":null,b?null:n+"-hide"].filter(Boolean).join(" ").trim();function C(){g(function(e){void 0===e&&(e=0);var t=0;return e<R()&&(t=Math.round((R()-e)/(document.body.scrollHeight-e-window.innerHeight)*100)),t>100?100:t}(c)),j(R())}function N(){"number"===typeof c&&"number"===typeof h&&"number"===typeof y&&function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=100),void 0===n&&(n=0);var r=0,a=setInterval((()=>{n-r>=e?n-(r+=t)>=e?window.scrollTo(0,n-r):window.scrollTo(0,e):clearInterval(a)}),0)}(c,h,y)}return(0,l.useEffect)((()=>(window&&window.addEventListener("scroll",C),function(){window&&window.removeEventListener("scroll",C)}))),(0,d.jsxs)("div",(0,a.Z)({onClick:()=>m&&N(),className:w},f,{ref:t,children:[s,"function"!==typeof o?o:o({percent:x,current:y,scrollToTop:N})]}))}));var I=["prefixCls","className","style","color","max","dot","processing","count","children"];const F=l.forwardRef(((e,t)=>{var{prefixCls:n="w-badge",className:l,style:i={},color:s,max:o=99,dot:c=!1,processing:u=!1,count:h,children:p}=e,m=(0,r.Z)(e,I),f={className:[c?null:n+"-count",c?"dot":null].filter(Boolean).join(" ").trim(),style:{}},v=[l,n,p?null:"nowrap",p?null:n+"-status",u?n+"-processing":null].filter(Boolean).join(" ").trim(),x={};return h||0===h?f.style=(0,a.Z)({backgroundColor:s},i):x.style=i||{},(0,d.jsxs)("span",(0,a.Z)({className:v},m,x,{ref:t,children:[s&&(0,d.jsx)("span",{className:n+"-dot",style:{backgroundColor:s}}),p,0!==h&&!s&&(0,d.jsx)("sup",(0,a.Z)({},f,{children:!c&&h&&o&&h>o?o+"+":h}))]}))}));var H=["prefixCls","className","tagName","active","separator"];const W=l.forwardRef(((e,t)=>{var{prefixCls:n="w-breadcrumb",className:i,tagName:s="span",active:o,separator:c}=e,u=(0,r.Z)(e,H),h=l.isValidElement(c),p=[n+"-item",i,o?"active":null,c?null:"no-separator",h?"no-before":null].filter(Boolean).join(" ").trim(),m=(0,a.Z)({className:p},u);return h||(m["data-separator"]=c),l.createElement(s,(0,a.Z)({},m,{ref:t}),(0,d.jsxs)(l.Fragment,{children:[h&&(0,d.jsx)("span",{className:n+"-separator",children:c}),e.children]}))}));var _=["prefixCls","className","separator"],V=l.forwardRef(((e,t)=>{var{prefixCls:n="w-breadcrumb",className:i,separator:s="/"}=e,o=(0,r.Z)(e,_),c=[n,i].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({},(0,a.Z)({className:c},o),{ref:t,children:l.Children.map(e.children,(e=>l.cloneElement(e,Object.assign({separator:s},e.props,{}))))}))}));V.Item=W;const K=V;var Y=["prefixCls","vertical","children","className"];const $=l.forwardRef(((e,t)=>{var{prefixCls:n="w-btn-group",vertical:l=!1,children:i,className:s}=e,o=(0,r.Z)(e,Y),c=[n,s,l&&n+"-vertical"].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:c},o,{ref:t,children:i}))}));var U=n(371);function J(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}function G(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const q=!("undefined"===typeof window||!window.document||!window.document.createElement)?function(e,t){return e&&e.contains&&"function"===typeof e.contains&&G(t)?e.contains(t):e&&e.compareDocumentPosition&&G(t)?e===t||!!e.compareDocumentPosition(t):J(e,t)}:J;function X(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}const Q="undefined"!==typeof window&&"undefined"!==typeof document;var ee=Q&&!(!window.MSInputMethodContext||!document.documentMode),te=Q&&/MSIE 10/.test(navigator.userAgent);function ne(e){return 11===e?ee:10===e?te:ee||te}function re(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ne(10)?parseInt(n["offset"+e],10)+parseInt(r["margin"+("Height"===e?"Top":"Left")],10)+parseInt(r["margin"+("Height"===e?"Bottom":"Right")],10):0)}function ae(e){var t={};try{if(ne(10)){t=e.getBoundingClientRect();var n=s(e,!0),r=s(e);t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(m){}var l,i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?function(e){var t=e.body,n=e.documentElement,r=getComputedStyle(n);return{height:re("Height",t,n,r),width:re("Width",t,n,r)}}(e.ownerDocument):{},c=o.width||e.clientWidth||i.right-i.left,d=o.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-c,h=e.offsetHeight-d;if(i.offsetLeft=e.offsetLeft||e.scrollLeft||0,i.offsetTop=e.offsetTop||e.offsetTop||0,u||h){var p=function(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}(e);u-=X(p,"x"),h-=X(p,"y"),i.width-=u,i.height-=h}return l=i,(0,a.Z)({},l,{right:l.left+l.width,bottom:l.top+l.height})}function le(e){var t=e.getBoundingClientRect();return{width:e.offsetWidth||e.scrollWidth||t.width||0,height:e.offsetHeight||e.scrollHeight||t.height||0}}function ie(e){var{trigger:t,popup:n,placement:r,usePortal:l,autoAdjustOverflow:i}=e||{},o={left:0,top:0,placement:r};if(!t||!n||!document)return o;var c=Math.max(document.documentElement.clientHeight,window.innerHeight||0),d=Math.max(document.documentElement.clientWidth,window.innerWidth||0);o.placement=r;var u=s(t.ownerDocument.documentElement,!0),h=s(t.ownerDocument.documentElement),p=(0,a.Z)({},ae(t),le(t)),m=(0,a.Z)({},ae(n),le(n)),f=c-p.bottom,v=d-p.left-p.width;switch(o.top=p.top+u,o.left=p.left,l||(o.top=p.offsetTop,o.left=p.offsetLeft),r&&/^(top)/.test(r)&&(o.top-=m.height),r&&/^(right)/.test(r)&&(o.left+=p.width),r&&/^(bottom)/.test(r)&&(o.top+=p.height),r&&/^(left)/.test(r)&&(o.left-=m.width),o.placement){case"bottomLeft":case"topLeft":case"rightTop":case"leftTop":default:break;case"bottom":case"top":o.left=o.left-(m.width-p.width)/2;break;case"bottomRight":case"topRight":o.left=o.left+h+p.width-m.width;break;case"right":case"left":o.top=o.top-(m.height-p.height)/2;break;case"rightBottom":case"leftBottom":o.top=o.top-m.height+p.height}return i&&(r&&/^(top)/.test(r)&&p.top<m.height&&f>m.height&&(o.placement=r.replace(/^top/,"bottom"),o.top=o.top+m.height+p.height),r&&/^(bottom)/.test(r)&&f<m.height&&p.top>m.height&&(o.placement=r.replace(/^bottom/,"top"),o.top=o.top-m.height-p.height),r&&/^(right)/.test(r)&&v<m.width&&(o.placement=r.replace(/^right/,"left"),o.left=o.left-p.width-m.width),r&&/^(left)/.test(r)&&p.left<m.width&&(o.placement=r.replace(/^left/,"right"),o.left=o.left+p.width+m.width),r&&/^(left|right)/.test(r)&&l?(/(Top)$/.test(r)&&p.top<0||/(right|left)$/.test(r)&&p.top+p.height/2<m.height/2||/(Bottom)$/.test(r)&&p.top+p.height<m.height)&&(o.top=u):(r&&/(Top)$/.test(r)&&p.top<0&&(o.top-=p.top),r&&/(Bottom)$/.test(r)&&p.bottom<m.height&&(o.top=o.top+(m.height-p.bottom)),r&&/(right|left)$/.test(r)&&p.bottom-p.height/2<m.height/2&&(o.top=o.top+m.height/2-(p.bottom-p.height/2))),r&&/^(left|right)/.test(r)&&(/(Top)$/.test(r)&&f+p.height<m.height&&(o.top=o.top-(m.height-f-p.height)),/(right|left)$/.test(r)&&f+p.height/2<m.height/2&&(o.top=o.top-(m.height/2-f-p.height/2)),/(Bottom)$/.test(r)&&f<0&&(o.top=o.top+f)),r&&/^(top|bottom)/.test(r)&&l?((/(Left)$/.test(r)&&p.left<0||/(top|bottom)$/.test(r)&&p.left+p.width/2<m.width/2||/(Right)$/.test(r)&&p.left+p.width<m.width)&&(o.left=h),/(top|bottom)$/.test(r)&&v+p.width/2<m.width/2&&(o.left=p.left+p.width+v-m.width)):r&&/(top|bottom)$/.test(r)&&v+p.width/2<m.width/2&&(o.left=o.left+(v+p.width/2-m.width/2)),r&&/^(top|bottom)/.test(r)&&(/(Left)$/.test(r)&&p.width+v<m.width&&(o.left=o.left-(m.width-p.width-v)),/(Right)$/.test(r)&&v<0&&(o.left=o.left+v))),o}var se=["className","prefixCls","usePortal","isOutside","isClickOutside","disabled","isOpen","trigger","placement","autoAdjustOverflow","transitionName","children","overlay","onVisibleChange","onEnter"],oe=e=>e&&"object"===typeof e?e:{show:e,hide:e};const ce=l.forwardRef(((e,t)=>{var n,{className:s,prefixCls:o="w-overlay-trigger",usePortal:c=!0,isOutside:u=!1,isClickOutside:h=!0,disabled:p=!1,isOpen:m=!1,trigger:f="hover",placement:v="top",autoAdjustOverflow:x,transitionName:g,children:j,overlay:b,onVisibleChange:w=i,onEnter:C=i}=e,N=(0,r.Z)(e,se),k=(0,l.useRef)(999),S=(0,l.useRef)(),Z=(0,l.useRef)(),E=(0,l.useRef)([]),P=(0,l.useRef)(null),[M,B]=(0,l.useState)(!!e.isOpen),[z,L]=(0,l.useState)({placement:v,top:0,bottom:0,left:0,right:0,zIndex:k.current});(0,l.useImperativeHandle)(t,(()=>({hide:()=>_(),show:()=>V(),overlayDom:Z})));var O=l.Children.only(j),D=(0,a.Z)({},N,{placement:v,isOpen:M,dialogProps:{}}),R={};(0,l.useEffect)((()=>(h&&M&&(document&&document.addEventListener("mousedown",T),window.addEventListener("resize",A)),()=>{document&&h&&document.removeEventListener("mousedown",T),window.removeEventListener("resize",A)})),[M]),(0,l.useEffect)((()=>{e.isOpen!==M&&B(!!e.isOpen)}),[e.isOpen]),(0,l.useEffect)((()=>{var e=ie({placement:z.placement||v,trigger:S.current,popup:Z.current,usePortal:c,autoAdjustOverflow:x});L((0,a.Z)({},e,{zIndex:k.current})),w(M)}),[M]);var A=()=>{M&&(k.current-=1,B(!1),w&&w(!1))},T=e=>{var t=Z.current,n=S.current;t&&n&&e.target&&!q(t,e.target)&&!q(n,e.target)&&(k.current-=1,B(!1),w&&w(!1))};function I(){if(E.current.length>0){for(var e of E.current)window.clearTimeout(e);E.current=[]}}function F(){var t;I(),P.current="show";var n=oe(e.delay);if(n.show||null!=(t=e.children)&&t.props.disabled){var r=window.setTimeout((()=>{"show"===P.current&&V()}),n.show);clearTimeout(r),E.current.push(r)}else V()}function H(t){if(I(),t||!e.isOutside){P.current="hide";var n=oe(e.delay);if(n.hide){var r=window.setTimeout((()=>{"hide"===P.current&&_()}),n.hide);E.current.push(r)}else _()}}function W(e,t,n){var r=t.currentTarget,a=t.relatedTarget||t.nativeEvent[n],l=!0;(Z.current&&q(Z.current,a)||S.current&&q(S.current,a))&&(l=!1),a&&a===r||q(r,a)||e(l,t)}function _(){M&&(k.current<=999?k.current=999:k.current-=1,B(!1))}function V(){var e;if(!M){var t=null==(e=S.current)?void 0:e.style.zIndex;t?k.current=Number(t)+1:k.current+=1,B(!0)}}return"click"!==f||p||(R.onClick=e=>{var{onClick:t}=O&&l.isValidElement(O)?O.props:{};M?_():V(),t&&t(e,!M)}),"focus"!==f||p||(R.onFocus=()=>F()),"hover"!==f||p||(R.onMouseOver=R.onMouseEnter=e=>{W(F,e,"fromElement")},R.onMouseOut=R.onMouseLeave=e=>{W(H,e,"toElement")},D.dialogProps&&(D.dialogProps.onMouseLeave=e=>{W(H,e,"toElement")})),D.style=(0,a.Z)({},D.style,z),(0,d.jsxs)(l.Fragment,{children:[(0,l.cloneElement)(O,Object.assign({},O.props,(0,a.Z)({},R,{ref:S,style:(0,a.Z)({},null==(n=O.props)?void 0:n.style,{zIndex:k.current}),className:[O.props.className,p?o+"-disabled":null].filter(Boolean).join(" ").trim()}))),(0,d.jsx)(y,(0,a.Z)({},D,{style:(0,a.Z)({},D.style,z),onEnter:function(e,t){C&&C(e,t);var n=ie({placement:z.placement||v,trigger:S.current,popup:Z.current,usePortal:c,autoAdjustOverflow:x});L((0,a.Z)({},n,{zIndex:k.current}))},className:[o,s,z.placement].filter(Boolean).join(" ").trim(),usePortal:c,transitionName:g,isOpen:M,hasBackdrop:!1,children:(0,l.cloneElement)(b,Object.assign((0,a.Z)({},b.props,{ref:Z,className:[b.props&&b.props.className,v].filter(Boolean).join(" ").trim()})))}))]})}));var de=["prefixCls","className","content","visibleArrow"];class ue extends l.Component{constructor(){super(...arguments),this.renderArrow=()=>{var{prefixCls:e}=this.props;return(0,d.jsx)("div",{className:e+"-arrow",children:(0,d.jsxs)("svg",{viewBox:"0 0 30 30",children:[(0,d.jsx)("path",{fillOpacity:"0.2",d:"M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z"}),(0,d.jsx)("path",{fill:"#fff",d:"M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z"})]})})}}render(){var e=this.props,{prefixCls:t,className:n,visibleArrow:l}=e,i=(0,r.Z)(e,de),s=[t,n,l?null:"no-arrow"].filter(Boolean).join(" ").trim();return(0,d.jsx)(ce,(0,a.Z)({},i,{overlay:(0,d.jsxs)("div",{className:s,children:[l&&this.renderArrow(),(0,d.jsx)("div",{className:t+"-inner",children:this.props.content})]}),children:"object"===typeof this.props.children&&"Icon"!==this.props.children.type.name?this.props.children:(0,d.jsx)("span",{style:{display:"block",writingMode:"vertical-rl"},children:this.props.children})}))}}ue.Confirm=function(e){var{trigger:t="click",placement:n="top",confirmText:r="Yes",title:a,cancelText:i="No",visibleArrow:s,children:o,onConfirm:c}=e,[u,h]=(0,l.useState)(!1);return(0,d.jsx)(ue,{isOpen:u,visibleArrow:s,content:(0,d.jsxs)("div",{style:{padding:"12px 16px",position:"relative"},children:[(0,d.jsx)(w,{type:"information",style:{position:"absolute",top:13.5,fontSize:14,transform:"rotate(180deg)",color:"#faad14"}}),(0,d.jsxs)("div",{style:{paddingLeft:20},children:[(0,d.jsx)("div",{style:{fontSize:14},children:a}),(0,d.jsxs)("div",{style:{position:"relative",bottom:0,marginTop:12,display:"flex",justifyContent:"end"},children:[(0,d.jsx)(N,{size:"small",onClick:()=>h(!1),children:i}),(0,d.jsx)(N,{size:"small",type:"primary",style:{marginLeft:10},onClick:()=>{null==c||c(),h(!1)},children:r})]})]})]}),trigger:t,placement:n,children:(0,d.jsx)("div",{onClick:()=>h(!0),children:o})})},ue.defaultProps={prefixCls:"w-popover",placement:"top",usePortal:!0,isOpen:!1,visibleArrow:!0};var he=["className","min","max","step","overLimitColor","keyboard","formatter","prefixCls"];const pe=l.forwardRef(((e,t)=>{var{className:n,min:i,max:s,step:o,overLimitColor:c,keyboard:u=!1,prefixCls:h="w-input-number"}=e,p=(0,r.Z)(e,he),m=(0,l.useMemo)((()=>{var t;return Number.parseFloat(null==(t=e.value||0)?void 0:t.toString())}),[e.value]),[f,v]=(0,l.useState)(x(m));function x(e){return"number"===typeof i&&e<i||"number"===typeof s&&e>s}var g=(0,l.useMemo)((()=>{if(!c)return{min:i,max:s}}),[]),y=[h,n].filter(Boolean).join(" ").trim(),j=(0,l.useMemo)((()=>f?{color:null==c?void 0:c.toString()}:void 0),[f]);return(0,d.jsx)(fe,(0,a.Z)({},p,{className:y,type:"number",inputStyle:j,onChange:t=>{var n=x(Number.parseFloat(t.target.value));v(n),null==e.onChange||e.onChange(t)},step:o},g))}));var me=["prefixCls","className","style","size","type","preIcon","addonAfter","inputStyle"];const fe=l.forwardRef(((e,t)=>{var{prefixCls:n="w-input",className:i,style:s,size:o="default",type:c="text",preIcon:u=null,addonAfter:h,inputStyle:p}=e,m=(0,r.Z)(e,me),f=l.useRef(null),v=l.useRef(null);(0,l.useImperativeHandle)(t,(()=>f.current));var x=[n,i,o?n+"-"+o:null,h?n+"-addon":null,e.disabled?"disabled":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>{!function(){if(v.current&&f.current){var e=window&&window.getComputedStyle(v.current,null);f.current.style.paddingRight=v.current.clientWidth+2*parseInt(e.right,10)+"px"}}()})),(0,d.jsxs)("div",{className:x,style:s,children:[(0,d.jsx)(w,{type:u}),(0,d.jsx)("input",(0,a.Z)({ref:f,type:c,autoComplete:"off"},m,{style:p,className:n+"-inner"})),h&&(0,d.jsx)("span",{className:n+"-addon-after",ref:v,children:h})]})}));var ve=["prefixCls","className","count","date","type","disabledHours","disabledMinutes","disabledSeconds","hideDisabled","onSelected"];function xe(e){var{prefixCls:t="w-timepicker",count:n=24,date:i,type:s="Hours",hideDisabled:o,onSelected:c}=e,u=(0,r.Z)(e,ve),h=(0,l.useRef)([]);function p(t){var n=e["disabled"+s];return!!n&&n(t,s,new Date(i))}var m=(0,l.useMemo)((()=>[...Array(n)].map(((e,t)=>(p(t)&&h.current.push(t),{count:t,disabled:p(t)}))).filter((e=>!o||!e.disabled))),[o]);return(0,d.jsx)("div",(0,a.Z)({className:t+"-spinner"},u,{children:(0,d.jsx)("ul",{children:m.map(((e,t)=>{var n={};e.disabled||(n.onClick=t=>function(e,t){if(i){var n=new Date(i);n["set"+s](e),c&&c(s,e,h.current,n)}}(e.count));var r=i&&s?new Date(i)["get"+s]():0;return(0,d.jsx)("li",(0,a.Z)({"data-index":r===e.count?t:void 0,ref:e=>e&&function(e){if(e&&e.parentNode&&e.dataset.index){var t=Number(e.dataset.index)*e.clientHeight;e.parentNode.parentNode&&(e.parentNode.parentNode.scrollTop=t)}}(e)},n,{className:[e.disabled?"disabled":null,r===e.count?"selected":null,o&&e.disabled?"hide":null].filter(Boolean).join(" ").trim(),children:e.count<10?"0"+e.count:e.count}),t)}))})}))}var ge=["prefixCls","className","precision"];function ye(e){var{prefixCls:t="w-timepicker",className:n,precision:l="second"}=e,i=(0,r.Z)(e,ge);return(0,d.jsxs)("div",{className:[t,n].filter(Boolean).join(" ").trim(),children:[/^(second|minute|hour)$/.test(l)&&(0,d.jsx)(xe,(0,a.Z)({type:"Hours",count:24},i)),/^(second|minute)$/.test(l)&&(0,d.jsx)(xe,(0,a.Z)({type:"Minutes",count:60},i)),/^(second)$/.test(l)&&(0,d.jsx)(xe,(0,a.Z)({type:"Seconds",count:60},i))]})}var je=["prefixCls","className","disabled","value","format","popoverProps","allowClear","onChange","disabledHours","disabledMinutes","disabledSeconds","hideDisabled","precision"];function be(e){var{prefixCls:t="w-timepicker",className:n,disabled:i,format:s="HH:mm:ss",popoverProps:o,allowClear:c=!0,onChange:u,disabledHours:h,disabledMinutes:p,disabledSeconds:m,hideDisabled:f,precision:v}=e,x=(0,r.Z)(e,je),[g,y]=(0,l.useState)(e.value);(0,l.useEffect)((()=>y(e.value)),[e.value]);var j={disabledHours:h,disabledMinutes:p,disabledSeconds:m,hideDisabled:f,precision:v},b=g?(0,U.Z)(s,new Date(g)):"",w=g||new Date,C=(0,a.Z)({},x,{value:b});return c&&""!==b&&b&&(C.addonAfter=(0,d.jsx)(N,{className:t+"-close-btn",icon:"close",disabled:e.disabled,onClick:()=>{y(void 0),u&&u()},size:e.size,basic:!0,type:"light"})),(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0,visibleArrow:!1},o,{content:(0,d.jsx)(ye,(0,a.Z)({className:t+"-popover"},j,{date:w,onSelected:(e,t,n,r)=>{y(new Date(r));var a=r?(0,U.Z)(s,r):"";u&&u(a,r,e,t,n)}})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",readOnly:!0,disabled:i},C,{className:[t+"-input",n].filter(Boolean).join(" ").trim()}))}))}var we=["date","row","col","index","today","panelDate","disabledDate","renderDay","onSelectDay"],Ce=["prefixCls","className","weekday","weekTitle","date","today","panelDate","disabledDate","renderDay","onSelectDay"];function Ne(e){return Object.keys(e||{}).map((t=>e[t]?t:null)).filter(Boolean).join(" ").trim()}function ke(e){var{date:t,col:n,index:i,today:s,panelDate:o,disabledDate:c,renderDay:u,onSelectDay:h}=e,p=(0,r.Z)(e,we),m={end:0===n||6===n,prev:!1,today:!1,selected:!1,next:!1,disabled:!1},f=o;f&&function(e){return e instanceof Date&&!isNaN(e.getTime())}(f)||(f=new Date);var v=f.getFullYear(),x=f.getMonth(),g=(0,l.useMemo)((()=>new Date(new Date(f).setDate(1)).getDay()),[f.toDateString()]),y=(0,l.useMemo)((()=>new Date(v,0===x?12:x+1,0).getDate()),[f.toDateString()]),j=i;f&&((j=j-g+1)<1&&(m.prev=!0),j>y&&(m.next=!0));var b=new Date(new Date(f).setDate(j));s&&s.toDateString()===b.toDateString()&&(m.today=!0),t&&t.toDateString()===b.toDateString()&&(m.selected=!0);var w={onClick:()=>{var e=b.getMonth();h&&h(b,{year:b.getFullYear(),month:0===e?12:e+1,day:b.getDate()})}};return c&&c(b,(0,a.Z)({},e,m))&&(m.disabled=!0,delete w.onClick),(0,d.jsx)("div",(0,a.Z)({className:Ne(m)},p,w,{children:u?u(b.getDate(),(0,a.Z)({},e,m,{date:b})):(0,d.jsx)("div",{children:b.getDate()})}))}var Se=["\u661f\u671f\u5929","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],Ze=["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"];function Ee(e){var{prefixCls:t="w-datepicker",className:n,weekday:i=Ze,weekTitle:s=Se,date:o,today:c,panelDate:u,disabledDate:h,renderDay:p,onSelectDay:m}=e,f=(0,r.Z)(e,Ce),v=(0,l.useMemo)((()=>(0,d.jsx)("div",{className:t+"-weekday",children:(i||[]).map(((e,t)=>(0,d.jsx)("div",{className:Ne({end:0===t||6===t}),title:s&&s[t],children:e},t)))})),[t,i,s]);return(0,d.jsxs)("div",(0,a.Z)({},f,{className:[t?t+"-body":null,n].filter(Boolean).join(" ").trim(),children:[v,(0,d.jsx)("div",{className:[t?t+"-day-body":null].filter(Boolean).join(" ").trim(),children:[...Array(6)].map(((e,n)=>(0,d.jsx)("div",{className:t+"-week",children:[...Array(7)].map(((e,t)=>(0,d.jsx)(ke,{date:o,today:c,disabledDate:h,renderDay:p,panelDate:u,col:t,row:n,onSelectDay:(e,t)=>{m&&m(e,t)},index:7*n+t},t)))},n)))})]}))}var Pe=["prefixCls","className","panelDate","monthLabel","onSelected"];function Me(e){var{prefixCls:t="w-datepicker",className:n,panelDate:l=new Date,monthLabel:s,onSelected:o=i}=e,c=(0,r.Z)(e,Pe);return(0,d.jsx)("div",(0,a.Z)({className:[t?t+"-month":null,n].filter(Boolean).join(" ").trim()},c,{children:[...Array(12)].map(((e,t)=>{var n=l.getMonth();return(0,d.jsx)("div",{className:[n===t?"selected":null].filter(Boolean).join(" ").trim(),children:(0,d.jsx)("span",{onClick:()=>o(t,!1),children:s&&s[t]||t})},t)}))}))}var Be=["prefixCls","panelNum","className","panelDate","onSelected"];function ze(e){var{prefixCls:t="w-datepicker",panelNum:n=[-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10],className:s,onSelected:o=i}=e,c=(0,r.Z)(e,Be),[u,h]=(0,l.useState)(e.panelDate);return(0,d.jsx)("div",(0,a.Z)({className:[t?t+"-year":null,s].filter(Boolean).join(" ").trim()},c,{children:n&&n.map(((e,t)=>{var r=u.getFullYear(),a=r+n[t];return(0,d.jsx)("div",{className:[r===a?"selected":null,0===t||t===n.length-1?"paging":null].filter(Boolean).join(" ").trim(),children:(0,d.jsx)("span",{onClick:()=>function(e,t){if(0===t||t===n.length-1){var r=new Date(u);r.setFullYear(e),h(r)}else o(e)}(a,t),children:a})},t)}))}))}var Le=["prefixCls","className","panelDate","monthLabel","onSelected","todayButton"];function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return[...t].filter(Boolean).join(" ").trim()}function De(e){var{prefixCls:t="w-datepicker",className:n,panelDate:s=new Date,monthLabel:o,onSelected:c=i,todayButton:u}=e,h=(0,r.Z)(e,Le),p=(0,l.useMemo)((()=>{var e=s.getMonth();return o&&o[e]||e+1}),[s.toDateString(),o]);return(0,d.jsxs)("div",(0,a.Z)({className:Oe(t?t+"-caption":null,n)},h,{children:[(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"prev"),onClick:()=>c("prev")}),(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"month"),onClick:()=>c("month"),children:p}),(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"year"),onClick:()=>c("year"),children:s.getFullYear()}),u&&(0,d.jsx)("div",{className:Oe(t?t+"-caption-today":null),onClick:()=>c("today"),title:u}),(0,d.jsx)("div",{className:Oe(t?t+"-caption-pane":null,"next"),onClick:()=>c("next")})]}))}var Re=["prefixCls","className","weekday","weekTitle","monthLabel","date","today","todayButton","panelDate","disabledDate","renderDay","onChange","onPanelChange","showTime"],Ae=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"];function Te(e){var{prefixCls:t="w-datepicker",className:n,weekday:s,weekTitle:o,monthLabel:c=Ae,date:u,today:h=new Date,todayButton:p,panelDate:m=new Date,disabledDate:f,renderDay:v,onChange:x=i,onPanelChange:g=i,showTime:y}=e,j=(0,r.Z)(e,Re),[b,w]=(0,l.useState)("day"),[C,N]=(0,l.useState)(u),[k,S]=(0,l.useState)(m);(0,l.useEffect)((()=>{u&&(N(u),S(u))}),[u]);var Z=(0,l.useMemo)((()=>y&&y.format?y.format:"HH:mm:ss"),[y]);function E(e){if(e&&/^(year|month|time)$/.test(e))"time"===b&&(e="day"),w(e);else{var t=new Date(k),n=t.getMonth();"prev"===e&&(n-=1),"next"===e&&(n+=1),t.setMonth(n),"prev"!==e&&"next"!==e||g&&g(new Date(t),e),S("today"===e?h:t),"today"===e&&N(h),w("day")}}function P(e,t,n){(k||new Date)[e](t),S(new Date(k)),w("day"),x&&x(new Date(k))}return(0,d.jsxs)("div",(0,a.Z)({className:[t,n].filter(Boolean).join(" ").trim()},j,{children:[(0,d.jsx)(De,{todayButton:p,panelDate:k,monthLabel:c,onSelected:E}),"day"===b&&(0,d.jsx)(Ee,{prefixCls:t,disabledDate:f,onSelectDay:(e,t)=>{S(e),x(e,t)},renderDay:v,date:C,today:h||new Date,panelDate:k,weekday:s,weekTitle:o}),"month"===b&&(0,d.jsx)(Me,{panelDate:k,monthLabel:c,prefixCls:t,onSelected:e=>P("setMonth",e)}),"year"===b&&(0,d.jsx)(ze,{prefixCls:t,panelDate:C||k,onSelected:e=>P("setFullYear",e)}),"time"===b&&(0,d.jsx)(ye,(0,a.Z)({date:k},y,{className:t+"-timepicker",onSelected:function(e,t){(k||new Date)["set"+e](t),S(new Date(k)),x&&x(new Date(k))}})),y&&Z&&(0,d.jsx)("div",{className:t+"-time-btn",onClick:()=>E("time"),children:(0,U.Z)(Z,C||k)})]}))}var Ie=["date","label"];function Fe(e){var{prefixCls:t,day:n,data:i,currentDate:s}=e,o=(0,l.useMemo)((()=>(i||[]).filter((e=>{var t=(e.date&&e.date.split("/")||[]).map((e=>Number(e)));return 1===t.length?n===t[0]:s&&2===t.length?s.getMonth()+1===t[0]&&n===t[1]:!(!s||3!==t.length)&&(s.getFullYear()===t[0]&&s.getMonth()+1===t[1]&&n===t[2])}))),[s,n,i]);return(0,l.useMemo)((()=>(0,d.jsxs)("div",{className:t+"-inner",children:[(0,d.jsx)("div",{className:t+"-day",children:n}),(0,d.jsx)("div",{className:t+"-panel",children:o&&o.length>0&&o.map(((e,t)=>{var{label:n}=e,l=(0,r.Z)(e,Ie);return(0,d.jsx)("div",(0,a.Z)({},l,{children:n}),t)}))})]})),[o,n])}var He=["prefixCls","className","style","today","date","data","monthLabel","titleFormat","todayLabel","panelDate","onPaging","onSelectDay"],We=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"];function _e(e){var{prefixCls:t="w-calendar",className:n,style:i,today:s=new Date,date:o,data:c,monthLabel:u=We,titleFormat:h="YYYY/MM",todayLabel:p="\u4eca\u5929",onPaging:m,onSelectDay:f}=e,v=(0,r.Z)(e,He),x=[t,n].filter(Boolean).join(" ").trim(),[g,y]=(0,l.useState)(e.panelDate||new Date);function j(e){var t=new Date;if("today"===e)t=s||new Date;else{var n=g.getMonth();g&&"prev"===e&&g.setMonth(n-1),g&&"next"===e&&g.setMonth(n+1),t=g}y(new Date(t)),m&&m(e,t.getMonth()+1,t)}(0,l.useEffect)((()=>{e.panelDate!==g&&y(g)}),[e.panelDate]);var b=(0,l.useMemo)((()=>(0,d.jsx)("div",{className:t+"-title",children:(0,U.Z)(h,g)})),[t,h,g]),C=(0,l.useMemo)((()=>(0,d.jsxs)("div",{className:t+"-btn-group",children:[(0,d.jsx)(w,{type:"down",onClick:()=>j("prev")}),(0,d.jsx)("span",{className:t+"-btn",onClick:()=>j("today"),children:p}),(0,d.jsx)(w,{type:"down",onClick:()=>j("next")})]})),[t,p]);return(0,d.jsxs)("div",{className:x,style:i,children:[(0,d.jsxs)("div",{className:t+"-caption",children:[b,C]}),(0,d.jsx)(Ee,(0,a.Z)({onSelectDay:(e,t)=>{y(e),f&&f(e,t)},renderDay:(e,n)=>(0,d.jsx)(Fe,{prefixCls:t,day:e,data:c,currentDate:n.date}),date:o,today:s,panelDate:g||new Date},v))]})}var Ve=["prefixCls","className","title","extra","footer","bordered","noHover","active","bodyStyle","bodyClassName","children"];const Ke=l.forwardRef(((e,t)=>{var{prefixCls:n="w-card",className:i,title:s,extra:o,footer:c,bordered:u=!0,noHover:h=!1,active:p=!1,bodyStyle:m,bodyClassName:f,children:v}=e,x=(0,r.Z)(e,Ve),g=(0,l.useMemo)((()=>[n,i,u?n+"-bordered":null,h?n+"-no-hover":null,p?"active":null].filter(Boolean).join(" ").trim()),[n,i,u,h]);return(0,d.jsxs)("div",(0,a.Z)({},x,{className:g,ref:t,children:[(s||o)&&(0,d.jsxs)("div",{className:n+"-head",children:[s&&(0,d.jsx)("div",{className:n+"-head-title",children:s}),o&&(0,d.jsx)("div",{className:n+"-extra",children:o})]}),v&&(0,d.jsx)("div",{className:[n+"-body",f].filter(Boolean).join(" ").trim(),style:m,children:v}),c&&(0,d.jsx)("div",{className:n+"-footer",children:c})]}))}));function Ye(e,t){var{position:n=0,direction:r="horizontal",width:i=400,height:s=200,palyTime:o=2e3,scrollTime:c=200,autoPlay:u=!0,afterChange:h,beforeChange:p,prefixCls:m="w-carousel",className:f,style:v}=e,x=(0,l.useMemo)((()=>[m,f].filter(Boolean).join(" ").trim()),[m,f]),[g,y]=(0,l.useState)(n),[j,b]=(0,l.useState)(.001*c+"s ease-in-out"),w=(0,l.useRef)(g),C=l.Children.count(e.children)+1,N=(0,l.useRef)({stop:()=>{},after:h,before:p});l.useImperativeHandle(t,(()=>({gotoSlide:k,prevSlide:()=>k(w.current-1),nextSlide:()=>k(w.current+1),stopPlay:()=>N.current.stop()})),[t]);var k=e=>{N.current.stop();var t=C-1,n=e>t?t:e;n=e<0?0:n,w.current=n,y(n),S()},S=function(e){if(void 0===e&&(e=o),u){var t=setInterval((()=>{null==N.current.after||N.current.after(w.current),w.current++,w.current>=C&&(w.current=0),y(w.current),null==N.current.before||N.current.before(w.current)}),e);N.current.stop=()=>{clearInterval(t)}}};(0,l.useEffect)((()=>(S(),()=>{N.current.stop()})),[u]),(0,l.useEffect)((()=>{var t;return C===g+1&&(t=setTimeout((()=>{N.current.before=()=>{b(.001*c+"s ease-in-out"),N.current.before=e.beforeChange},b("none"),k(0)}),c)),()=>{clearTimeout(t)}}),[g]);var Z=l.Children.map(e.children,(e=>(0,d.jsx)("div",{style:(0,a.Z)({width:i,height:s},v),children:e}))),E=(0,l.useMemo)((()=>{var e={transform:"",display:""};switch(r){case"horizontal":e.transform="translate3d("+-g*i+"px, 0px, 0px)",e.display="flex";break;case"vertical":e.transform="translate3d(0px, "+-g*s+"px, 0px)",e.display="block"}return e}),[r,g,i,s]);return(0,d.jsx)("div",{className:x,style:{width:i,height:s},children:(0,d.jsxs)("div",{className:x+"-content",style:(0,a.Z)({width:i*C,transition:j},E),children:[Z,(0,d.jsx)("div",{style:(0,a.Z)({width:i,height:s},v),children:null==Z?void 0:Z[0]})]})})}const $e=l.forwardRef(Ye);var Ue=["prefixCls","placement","className","menu","children","disabled"];function Je(e){var{prefixCls:t="w-dropdown",placement:n="bottomLeft",className:i,menu:s,children:o,disabled:c}=e,u=(0,r.Z)(e,Ue),h=(0,l.useMemo)((()=>[t,i].filter(Boolean).join(" ").trim()),[t,i]);return(0,d.jsx)(ce,(0,a.Z)({isOutside:!0,autoAdjustOverflow:!0,className:h,disabled:c,placement:n},u,{overlay:s,children:l.cloneElement(o,Object.assign({},o.props))}))}var Ge=["prefixCls","className","tagName","children","disabled","multiline","icon","text","active","addonAfter","isSubMenuItem"],qe={href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1};function Xe(e,t){var{prefixCls:n="w-menu-item",className:i,tagName:s="a",disabled:o=!1,multiline:c=!1,icon:u,text:h,active:p=!1,addonAfter:m,isSubMenuItem:f}=e,v=(0,r.Z)(e,Ge),x=[n,p?"active":null,o?"w-disabled":null,i].filter(Boolean).join(" ").trim(),g=l.createElement(s,(0,a.Z)({},v,o?qe:{},{className:x,ref:t}),(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(w,{className:n+"-icon",type:u}),(0,d.jsx)("div",{className:[n&&n+"-text",!c&&n+"-multiline"].filter(Boolean).join(" ").trim(),children:h}),m]}));return f?g:(0,d.jsxs)("li",{children:[" ",g," "]})}var Qe=l.forwardRef(Xe);Qe.displayName="uiw.MenuItem";var et=["prefixCls","className","title"],tt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-menu-divider",className:l,title:i}=e,s=(0,r.Z)(e,et),o=[n,l].filter(Boolean).join(" ").trim();return i?(0,d.jsx)("li",(0,a.Z)({},s,{ref:t,className:o,"data-menu":"divider",children:(0,d.jsx)("strong",{children:i})})):(0,d.jsx)("li",(0,a.Z)({},s,{ref:t,className:o}))}));tt.displayName="uiw.MenuDivider";var nt=["prefixCls","className","disabled","overlayProps","children","collapse","inlineIndent","inlineCollapsed"];function rt(e){var{prefixCls:t,collapse:n,isOpen:r}=e;return(0,l.useMemo)((()=>(0,d.jsx)(w,{type:"caret-right",className:[t?t+"-collapse-icon":null,!n&&r?"w-open":null,n||r?null:"w-close"].filter(Boolean).join(" ").trim()})),[t,n,r])}var at=l.forwardRef((function(e,t){var{prefixCls:n="w-menu-subitem",className:i,disabled:s,overlayProps:o={},children:c,collapse:u=!1,inlineIndent:h}=e,p=(0,r.Z)(e,nt),m={},f={bordered:!0,children:c,inlineIndent:h,className:[n?n+"-overlay":null].filter(Boolean).join(" ").trim()},v=l.useRef(null),x=l.useRef(),g=l.useRef(),[y,j]=(0,l.useState)(!!o.isOpen),{height:b,setContextHeight:w,ele:C}=(0,l.useContext)(it);return l.useEffect((()=>{if(x.current&&x.current.style&&C===g.current){var e=Number(x.current.style.height.substr(0,x.current.style.height.length-2));x.current.getBoundingClientRect().height<e?x.current.style.height=e+"px":x.current.style.height=e+b+"px"}}),[b,C]),(0,l.useMemo)((()=>{u&&j(!1)}),[u]),u?(m.className=n+"-popup",m.trigger="hover",m.usePortal=!0,f.onClick=function(e){var t=e.currentTarget,n=e.relatedTarget||e.nativeEvent.target;t.children.length<1||function(e){var t=!1;if(e)do{e.dataset.menu||(t=!0),e.dataset.menu&&/^(subitem|divider)$/.test(e.dataset.menu)&&(t=!1)}while(!e.dataset.menu&&(e=e.parentNode));return t}(n)&&v.current&&v.current.hide()}):(delete f.onClick,f.bordered=!1,m.className=n+"-collapse",m.appear=!1,m.isOutside=!0,m.isClickOutside=!1,m.unmountOnExit=!1,m.trigger="click",m.transitionName=""+n,m.onExit=function(e){e.style.height=e.scrollHeight+"px",j(!1)},m.onExiting=function(e){e.style.height="0px",v.current&&v.current.overlayDom.current&&w({height:-v.current.overlayDom.current.getBoundingClientRect().height,ele:g.current})},m.onEnter=function(e){e.style.height="0px",x.current=e,j(!0),v.current&&v.current.overlayDom.current&&w({height:v.current.overlayDom.current.getBoundingClientRect().height,ele:g.current})},m.onEntered=function(e){v.current&&v.current.overlayDom.current&&(e.style.height=v.current.overlayDom.current.getBoundingClientRect().height+"px")},m.onEntering=function(e){e.style.height=e.scrollHeight+"px"}),(0,d.jsx)("li",{"data-menu":"subitem",ref:t,onClick:e=>{u?e.stopPropagation():g.current=e.target},children:(0,d.jsx)(ce,(0,a.Z)({placement:"rightTop",autoAdjustOverflow:!0,disabled:s,isOpen:y,usePortal:!1,isOutside:!0},m,o,{ref:v,overlay:(0,d.jsx)(st,(0,a.Z)({},f,{style:u?{}:{paddingLeft:h}})),children:(0,d.jsx)(Qe,(0,a.Z)({},p,{ref:null,disabled:s,isSubMenuItem:!0,addonAfter:(0,d.jsx)(rt,{collapse:u,prefixCls:n,isOpen:y}),className:[n?n+"-title":null,u?null:n+"-collapse-title",i].filter(Boolean).join(" ").trim()}))}))})}));at.displayName="uiw.SubMenu";var lt=["prefixCls","className","children","bordered","theme","inlineIndent","inlineCollapsed"],it=(0,l.createContext)({}),st=l.forwardRef(((e,t)=>{var{prefixCls:n="w-menu",className:i,children:s,bordered:o,theme:c="light",inlineIndent:u=10,inlineCollapsed:h}=e,p=(0,r.Z)(e,lt),m=(0,l.useMemo)((()=>[n,o?"w-bordered":null,h?n+"-inline-collapsed":null,c?n+"-"+c:null,i].filter(Boolean).join(" ").trim()),[n,o,h,c,i]);return(0,d.jsx)("ul",(0,a.Z)({},p,{ref:t,className:m,"data-menu":"menu",children:l.Children.map(s,((e,t)=>{if(!l.isValidElement(e))return e;var n={};return e.props.children&&e.type===at&&(n.inlineIndent=u),l.cloneElement(e,Object.assign((0,a.Z)({},n),e.props,{key:""+t}))}))}))})),ot=(e,t)=>{var[n,r]=l.useState({height:0,ele:null});return(0,d.jsx)(it.Provider,{value:(0,a.Z)({},n,{setContextHeight:r}),children:(0,d.jsx)(st,(0,a.Z)({},e,{ref:t}))})},ct=l.forwardRef(ot);st.displayName="uiw.Menu",ct.displayName="uiw.Menu",ct.Item=Qe,ct.SubMenu=at,ct.Divider=tt;const dt=ct;const ut=function(e){var{value:t,onChange:n,onSearch:r,expandTrigger:i="click",size:s,disabled:o,allowClear:c,placeholder:u,prefixCls:h="w-cascader",className:p,style:m={width:200},option:f=[],others:v,inputProps:x}=e,g=[h,p].filter(Boolean).join(" ").trim(),[y,j]=(0,l.useState)(!1),[b,C]=(0,l.useState)([]),[N,k]=(0,l.useState)(""),[S,Z]=(0,l.useState)(""),[E,P]=(0,l.useState)(!1),[M,B]=(0,l.useState)(""),[z,L]=(0,l.useState)();(0,l.useEffect)((()=>{if(r){var e=[];O(f,(t=>{var n=t.map((e=>e.label)).join(" / ");e.push({label:n,options:t})})),L(e)}}),[r]);var O=function e(t,n,r){void 0===r&&(r=[]),t.map((t=>{var a=[...r,t];t.children?e(t.children,n,a):null==n||n(a)}))};function D(e){var t;t="enter"===e&&c&&b.length>0?"close":"",k(t)}(0,l.useEffect)((()=>{if(t){var e=[],n=f;null==t||t.map((t=>{var r=n.find((e=>e.value===t));n=(null==r?void 0:r.children)||[],e.push((0,a.Z)({label:t,value:t},r))})),C(e)}}),[t]);var R=(e,t)=>{C([...t]);var r=t.map((e=>e.value));null==n||n(e,r,t)},A=.7*(null==m?void 0:m.width)||void 0,T=(0,l.useMemo)((()=>(e,t)=>{var n={onClick:()=>{},onMouseOver:()=>{}},r=()=>{e()};return"click"===i||t?n.onClick=r:"hover"===i&&(n.onMouseOver=r),n}),[]),I=function(e,t){if(void 0===t&&(t=0),e)return(0,d.jsx)(dt,{bordered:!0,style:{minHeight:25,minWidth:A,overflowY:"scroll",width:A},children:e&&0!==e.length?e.map(((e,n)=>{var r,l,i=(null==(r=b[t])?void 0:r.value)===e.value;return(0,d.jsx)(dt.Item,(0,a.Z)({active:i,text:e.label,addonAfter:e.children?(0,d.jsx)(w,{type:"right"}):void 0},T((()=>{((e,t)=>{b.splice(t,b.length-t,e),e.children||j(!1),R(!0,b)})(e,t)}),!(null!=(l=e.children)&&l.length))),n)})):(0,d.jsx)("div",{style:{color:"#c7c7c7",fontSize:12},children:"\u6ca1\u6709\u6570\u636e"})},t)};return(0,l.useEffect)((()=>{var e=b.map((e=>e.label)).join(" / ");B(e)}),[b]),(0,d.jsx)(Je,(0,a.Z)({className:g,trigger:"click",style:{marginTop:5},overlayStyl:{width:100},disabled:o},v,{onVisibleChange:function(e){j(e)},isOpen:y,menu:S?(0,d.jsx)(dt,{bordered:!0,style:{minHeight:25,minWidth:null==m?void 0:m.width,overflowY:"scroll",width:null==m?void 0:m.width},children:z&&0!==z.length?z.filter((e=>e.label.includes(S.trim()))).map(((e,t)=>(0,d.jsx)(dt.Item,{text:e.label,onClick:()=>{return t=e.options,Z(""),j(!1),void R(!1,t);var t}},t))):(0,d.jsx)("div",{style:{color:"#c7c7c7",fontSize:12},children:"\u6ca1\u6709\u6570\u636e"})}):(0,d.jsx)("div",{style:{display:"flex"},children:new Array(b.length+1).fill(0).map(((e,t)=>{var n,r=t?null==(n=b[t-1])?void 0:n.children:f;return I(r,t)})).filter((e=>!!e))}),children:(0,d.jsx)("span",{onMouseLeave:()=>D("leave"),onMouseOver:()=>D("enter"),children:(0,d.jsx)(fe,(0,a.Z)({},x,{value:E?S:M,onChange:e=>{y||j(!y);var t=e.target.value;r&&(e=>{Z(e)})(t)},size:s,disabled:o,placeholder:E?M:u,style:m,onFocus:()=>r&&P(!0),onBlur:()=>r&&P(!1),readOnly:!r,addonAfter:(0,d.jsx)("span",{style:{width:"auto"},children:!o&&"close"===N&&(0,d.jsx)(w,{type:N,onClick:e=>{e.stopPropagation(),R(!1,[])},className:h+"-close"})})}))})}))};var ht=["prefixCls","type","disabled","value","className","style","children","size","checked","onChange"],pt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-radio",type:i="radio",disabled:s=!1,value:o="",className:c,style:u,children:h,size:p,checked:m=!1,onChange:f}=e,v=(0,r.Z)(e,ht),[x,g]=(0,l.useState)(m),[y,j]=(0,l.useState)();m!==y&&j(m),(0,l.useMemo)((()=>{m!==y&&g(m)}),[y]);var b=[n,c,s?"disabled":null,p?n+"-"+p:null].filter(Boolean).join(" ").trim();(0,l.useMemo)((()=>{x!==e.checked&&g(!!e.checked)}),[e.checked]);var w=h||o;return(0,d.jsxs)("label",{className:b,style:u,children:[(0,d.jsx)("input",(0,a.Z)({},(0,a.Z)({},v,{type:i,disabled:s,value:o}),{checked:x,onChange:function(e){e.persist(),g(e.target.checked),f&&f(e)},ref:t})),w&&(0,d.jsx)("div",{className:n+"-text",children:w})]})}));const mt=l.forwardRef(((e,t)=>(0,d.jsx)(pt,(0,a.Z)({ref:t},e))));var ft=["prefixCls","className","name","value","onChange","children"];const vt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-radio-group",className:i,name:s,value:o,onChange:c,children:u}=e,h=(0,r.Z)(e,ft);return(0,d.jsx)("div",(0,a.Z)({},h,{ref:t,className:[n,i].filter(Boolean).join(" ").trim(),children:(0,d.jsx)($,{children:l.Children.toArray(u).map((e=>{if(e)return l.isValidElement(e)?l.cloneElement(e,(0,a.Z)({},e.props||{},{checked:e.props.value===o,name:s,onChange:c})):e}))})}))}));var xt=["prefixCls","type","disabled","value","className","style","children","size","checked","onChange"],gt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-radio",type:i="button",disabled:s=!1,value:o="",className:c,style:u,children:h,size:p="small",checked:m=!1,onChange:f}=e,v=(0,r.Z)(e,xt),[x,g]=(0,l.useState)(m),[y,j]=(0,l.useState)();m!==y&&j(m),(0,l.useMemo)((()=>{m!==y&&g(m)}),[y]);var b=[n,c,s?"disabled":null,p?n+"-"+p:null].filter(Boolean).join(" ").trim();(0,l.useMemo)((()=>{x!==e.checked&&g(!!e.checked)}),[e.checked]),console.log("props.checked",e.checked);var w=h||o;return(0,d.jsx)(N,(0,a.Z)({},(0,a.Z)({},v,{className:b,style:u,disabled:s,value:o}),{type:x?"primary":"light",ref:t,onClick:function(e){e.persist(),x||(g(!x),f&&f(o))},children:w}))}));const yt=gt;var jt=["prefixCls","className","name","value","onChange"],bt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-checkbox-group",className:i,name:s,value:o,onChange:c}=e,u=(0,r.Z)(e,jt),h=(0,l.useRef)([]),p=[n,i].filter(Boolean).join(" ").trim(),m=l.Children.toArray(e.children);return(0,l.useMemo)((()=>h.current=o||[]),[o]),(0,d.jsx)("div",(0,a.Z)({},u,{className:p,ref:t,children:l.Children.map(m,(e=>{if(l.isValidElement(e))return Array.isArray(o)&&e&&e.props&&e.props.value&&o.includes(e.props.value)&&(h.current.includes(e.props.value)||h.current.push(e.props.value)),l.cloneElement(e,Object.assign({},e.props,{name:s,checked:h.current.includes(e.props.value),onChange:t=>{if(!t.target.type||"checkbox"===t.target.type){var n=t.target.checked,r=h.current.includes(e.props.value);!r&&n?h.current.push(e.props.value):r&&!n&&(h.current=h.current.filter((t=>t!==e.props.value))),c&&c(t,h.current)}}}))}))}))})),wt=["className","prefixCls","type","indeterminate","disabled","value"];function Ct(e,t){var{className:n,prefixCls:l="w-checkbox",type:i="checkbox",indeterminate:s=!1,disabled:o=!1,value:c=""}=e,u=(0,r.Z)(e,wt),h=[n,s&&"indeterminate"].filter(Boolean).join(" ").trim();return(0,d.jsx)(pt,(0,a.Z)({ref:t},u,{type:i,prefixCls:l,disabled:o,value:c,className:h}))}var Nt=l.forwardRef(Ct);Nt.Group=bt;const kt=Nt;var St=["prefixCls","className","icon","children","isActive","onItemClick","disabled","showArrow","header","extra"];function Zt(e){var{children:t,prefixCls:n}=e;return t?(0,d.jsx)("div",{className:n+"-extra",children:t}):null}var Et=["prefixCls","className","children","accordion","bordered","showArrow","activeKey","onChange"];function Pt(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t}function Mt(e,t){var{prefixCls:n="w-collapse",className:i,children:s,accordion:o=!1,bordered:c,showArrow:u=!0,activeKey:h,onChange:p}=e,m=(0,r.Z)(e,Et),[f,v]=(0,l.useState)(Pt(h)),x=[n,i,c?"w-noborder":null].filter(Boolean).join(" ").trim();return(0,l.useMemo)((()=>{h!==f&&v(Pt(h))}),[h]),(0,l.useMemo)((()=>{h!==f&&p&&p(f)}),[f,h]),(0,d.jsx)("div",(0,a.Z)({className:x},m,{ref:t,children:l.Children.map(s,((e,t)=>{var r=e.key||String(t),{disabled:i}=e.props,s=!1;s=o?f[0]===r:f.indexOf(r)>-1;var c=(0,a.Z)({prefixCls:n,isActive:s,disabled:i,showArrow:u,onItemClick:i?()=>{}:()=>function(e){var t=f;if(o)t=t[0]===e?[]:[e];else{var n=(t=[...t]).indexOf(e);n>-1?t.splice(n,1):t.push(e)}v(t)}(r)},e.props);return l.cloneElement(e,c)}))}))}var Bt=l.forwardRef(Mt);Bt.displayName="Collapse",Bt.Panel=function(e){var{prefixCls:t="w-collapse",className:n,icon:i="down",children:s,isActive:o,onItemClick:c,disabled:u=!1,showArrow:h,header:p,extra:f}=e,v=(0,r.Z)(e,St),x=[t?t+"-item":null,n,o?t+"-active":null,u?t+"-disabled":null].filter(Boolean).join(" ").trim(),g="string"===typeof i?(0,d.jsx)(w,{type:i}):i;function y(e,t){t&&("exited"!==e&&"exiting"!==e||(t.style.height="1px"),"entered"!==e&&"entering"!==e||(t.style.height=function(e){var t=e.children,n=0,r=getComputedStyle(e,"::before"),a=getComputedStyle(e,"::after"),l=parseInt(r.height)||0,i=parseInt(a.height)||0;if(n+=l+i,0===t.length)return n;for(var s=0;s<t.length;s++){var o=t[s],c=getComputedStyle(o);n+=o.offsetHeight+ +parseInt(c.marginTop)+parseInt(c.marginBottom)+parseInt(c.borderTopWidth)+parseInt(c.borderBottomWidth);var d=getComputedStyle(o,"::before"),u=getComputedStyle(o,"::after");n+=(parseInt(d.height)||0)+(parseInt(u.height)||0)}return n}(t)+"px"))}return(0,d.jsxs)("div",(0,a.Z)({className:x},v,{children:[(0,d.jsxs)("div",{className:t+"-header",onClick:c,children:[h&&g,(0,d.jsx)("span",{className:t+"-title",children:p}),(0,d.jsx)(Zt,{prefixCls:t,children:f})]}),(0,d.jsx)(m.Z,{in:o,unmountOnExit:!1,timeout:300,classNames:t+"-panel",children:e=>{return l.cloneElement((0,d.jsx)("div",{children:s}),{className:t+"-panel",style:(n=s,Object.assign({},n&&n.props?n.props.style:{},{transitionDuration:"300ms"})),ref:t=>y(e,t)});var n}})]}))};const zt=Bt;var Lt=n(3376),Ot=n.n(Lt),Dt=["prefixCls","className","text","children","onClick"];function Rt(e){var{prefixCls:t="w-copy-to-clipboard",className:n,text:l="",children:i,onClick:s=(()=>null)}=e,o=(0,r.Z)(e,Dt);var c=(0,a.Z)({},o,{className:[t,n].filter(Boolean).join(" ").trim(),onClick:function(e){if(!l)return s("",!1,e);Ot()(l,(t=>{s(l,t,e)}))}});return(0,d.jsxs)("span",(0,a.Z)({},c,{children:[(0,d.jsx)("span",{className:t+"-select",children:l}),i]}))}var At=["prefixCls","bodyStyle","className","popoverProps","datePickerProps","allowClear","format","onChange","value"];function Tt(e){var{prefixCls:t="w-dateinputrange",bodyStyle:n,className:i,popoverProps:s,datePickerProps:o,allowClear:c=!0,format:u="YYYY/MM/DD",onChange:h,value:p}=e,m=(0,r.Z)(e,At),[f,v]=(0,l.useState)([]);function x(e,t){var n=[...f];n[t]=e,v(n),h&&h(e,n)}return(0,l.useEffect)((()=>{var e=[],t=p;Array.isArray(t)&&null!=t&&t.length&&t.forEach(((n,r)=>{e[r]="string"===typeof t[r]?new Date(n):n})),v(e)}),[JSON.stringify(p)]),(0,d.jsxs)("div",{className:[t+"-contents",t+"-inner"].filter(Boolean).join(" ").trim(),style:(0,a.Z)({width:300},n),children:[(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0},s,{content:(0,d.jsx)(Te,(0,a.Z)({date:f[0],className:t+"-popover"},o,{onChange:e=>x(e,0)})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",readOnly:!0},m,{value:f[0]?(0,U.Z)(u,f[0]):"",className:[t,i].filter(Boolean).join(" ").trim()}))})),(0,d.jsx)(w,{type:"swap-right",verticalAlign:"baseline",style:{fontSize:21,top:-1,margin:"0px 8px 0px 5px"}}),(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0},s,{content:(0,d.jsx)(Te,(0,a.Z)({date:f[1],className:t+"-popover"},o,{onChange:e=>x(e,1)})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",readOnly:!0},m,{value:f[1]?(0,U.Z)(u,f[1]):"",className:[t,i].filter(Boolean).join(" ").trim()}))})),c&&f.length>0&&(0,d.jsx)(w,{className:t+"-close-btn",color:"#a5a5a5",onClick:()=>(v([]),void(h&&h(void 0,[]))),type:"close"})]})}var It=["prefixCls","className","popoverProps","datePickerProps","allowClear","autoClose","format","onChange"];function Ft(e){var{prefixCls:t="w-dateinput",className:n,popoverProps:i,datePickerProps:s,allowClear:o=!0,autoClose:c=!1,format:u="YYYY/MM/DD",onChange:h}=e,p=(0,r.Z)(e,It),[m,f]=(0,l.useState)(e.value),v=m||"";function x(e){c&&y(!1),f(e),h&&h(e)}p.value="string"===typeof v?v:(0,U.Z)(u,v),(0,l.useEffect)((()=>{e.value!==m&&f(e.value)}),[e.value]),o&&p.value&&(p.addonAfter=(0,d.jsx)(w,{className:t+"-close-btn",onClick:()=>x(void 0),type:"close"}));var[g,y]=(0,l.useState)(!1);return(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0,isOpen:g,onVisibleChange:e=>y(e)},i,{content:(0,d.jsx)(Te,(0,a.Z)({date:v&&new Date(v)||void 0,className:t+"-popover"},s,{onChange:e=>x(e)})),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",readOnly:!0},p,{className:[t,n].filter(Boolean).join(" ").trim()}))}))}const Ht=e=>{var{children:t}=e;return t};var Wt=["prefixCls","className","tagName","layout","bordered","label","isLastCell","colon","span","children","column"];const _t=function(e){void 0===e&&(e={});var{prefixCls:t,className:n,tagName:i="td",layout:s,bordered:o,label:c,colon:u,span:h,children:p}=e,m=(0,r.Z)(e,Wt),f={className:[t?t+"-item-label":null,n,u?t+"-item-colon":null,c?null:t+"-item-no-label"].filter(Boolean).join(" ").trim()};return"horizontal"===s?o?(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("th",(0,a.Z)({},f,{children:c})),(0,d.jsx)(i,(0,a.Z)({},m,{colSpan:h?2*h-1:h,className:t?t+"-item-content":"",children:p}))]}):(0,d.jsxs)(i,(0,a.Z)({},m,{colSpan:h,children:[(0,d.jsx)("span",(0,a.Z)({},f,{children:c})),(0,d.jsx)("span",{className:t?t+"-item-content":"",children:p})]})):(0,d.jsx)(i,{colSpan:h,className:t+"-item-"+("td"===i?"content":"label"),children:p})};function Vt(e){void 0===e&&(e={});var{prefixCls:t,layout:n,bordered:r,column:i,colon:s,children:o=[]}=e;function c(e){return o.map(((c,d)=>(0,l.createElement)(_t,(0,a.Z)({},c.props,{prefixCls:t,key:d,column:i,tagName:e?"th":"td",isLastCell:o.length-1===d,layout:n,colon:s,bordered:r}),e?c.props.label:c.props.children)))}var u=t?t+"-row":"";return(0,d.jsxs)(l.Fragment,{children:["vertical"===n&&(0,d.jsx)("tr",{className:u,children:c(!0)}),(0,d.jsx)("tr",{className:u,children:c()})]})}var Kt=["prefixCls","className","title","bordered","column","size","colon","children","layout"];function Yt(e,t){var{prefixCls:n="w-descriptions",className:i,title:s,bordered:o,column:c=3,size:u,colon:h=!0,children:p,layout:m="horizontal"}=e,f=(0,r.Z)(e,Kt),v=[n,i,n&&m?n+"-"+m:null,o?n+"-bordered":null,u?n+"-"+u:null].filter(Boolean).join(" ").trim(),x=((e,t)=>{var n,r=[],a=null;return e.forEach(((i,s)=>{var o=i;a||(n=t,a=[],r.push(a)),s===e.length-1&&(o=l.cloneElement(o,{span:n}));var{span:c=1}=o.props;a.push(o),(n-=c)<=0&&(a=null)})),r})(l.Children.toArray(p),c);return(0,d.jsx)("div",{className:v,ref:t,children:(0,d.jsxs)("table",(0,a.Z)({},f,{children:[s&&(0,d.jsx)("caption",{className:n+"-title",children:s}),(0,d.jsx)("tbody",{className:n+"-tbody",children:x.map(((e,t)=>(0,d.jsx)(Vt,{prefixCls:n,bordered:o,colon:h,column:c,layout:m,children:e},t)))})]}))})}var $t=l.forwardRef(Yt);$t.Item=Ht;const Ut=$t;var Jt=["prefixCls","className","children","dashed","type","align"];const Gt=l.forwardRef(((e,t)=>{var{prefixCls:n="w-divider",className:l,children:i,dashed:s=!1,type:o="horizontal",align:c="center"}=e,u=(0,r.Z)(e,Jt),h=[l,n,n&&o?n+"-"+o:null,n&&c?n+"-"+c:null,i?n+"-with-text":null,s?n+"-dashed":null].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:h},u,{ref:t,children:i&&(0,d.jsx)("span",{className:n+"-inner-text",children:i})}))}));var qt=["prefixCls","className","style","placement","size","title","footer","icon","isCloseButtonShown","bodyProps","timeout","isOpen","maskClosable"];const Xt=function(e){void 0===e&&(e={});var{prefixCls:t="w-drawer",className:n,style:i,placement:s="right",size:o=260,title:c,footer:u,icon:h,isCloseButtonShown:p=!0,bodyProps:m,timeout:f=300,isOpen:v=!1,maskClosable:x=!0}=e,g=(0,r.Z)(e,qt),j=[n,t,s].filter(Boolean).join(" ").trim(),b=[m?m.className:null,t?t+"-body-inner":null].filter(Boolean).join(" ").trim(),C=(0,a.Z)({},i,{[/^(top|bottom)$/.test(s)?"height":"width"]:o}),k=(0,l.useMemo)((()=>u?(0,d.jsx)("div",{className:t+"-footer",children:u}):null),[u]),S=(0,l.useMemo)((()=>h?(0,d.jsx)(w,{type:h}):null),[h]),Z=(0,l.useMemo)((()=>c?(0,d.jsx)("h4",{children:c}):null),[c]);return(0,d.jsx)(y,(0,a.Z)({className:j,timeout:f,isOpen:v,maskClosable:x},g,{children:(0,d.jsxs)("div",{className:t+"-wrapper",style:C,children:[(c||h)&&(0,d.jsxs)("div",{className:t+"-header",children:[S,Z,c&&p&&(0,d.jsx)(N,{basic:!0,onClick:e.onClose,icon:"close",type:"light"})]}),(0,d.jsx)("div",{className:t+"-body",children:(0,d.jsx)("div",(0,a.Z)({},m,{className:b,children:e.children}))}),k]})}))};var Qt=["prefixCls","className","icon","iconProps","size","description","children"];const en=e=>{var{prefixCls:t="w-empty",className:n,icon:l,iconProps:i,size:s=64,description:o="\u6682\u65e0\u6570\u636e",children:c}=e,u=(0,r.Z)(e,Qt),h=[t,n].filter(Boolean).join(" ").trim();return(0,d.jsxs)("div",(0,a.Z)({className:h},u,{children:[(0,d.jsx)("div",{className:t+"-icon",children:l||(0,d.jsxs)("svg",(0,a.Z)({viewBox:"0 0 1024 1024",width:s,height:s},i,{children:[(0,d.jsx)("path",{d:"M20.48 860.16a491.52 102.4 0 1 0 983.04 0 491.52 102.4 0 1 0-983.04 0Z",fill:"#F5F5F5"}),(0,d.jsx)("path",{d:"M225.28 409.6l573.44-8.06912 112.78336 183.296H102.4z",fill:"#C4C5C7"}),(0,d.jsx)("path",{d:"M266.24 61.44h491.52a40.96 40.96 0 0 1 40.96 40.96v532.48a40.96 40.96 0 0 1-40.96 40.96H266.24a40.96 40.96 0 0 1-40.96-40.96V102.4a40.96 40.96 0 0 1 40.96-40.96z",fill:"#F5F5F7"}),(0,d.jsx)("path",{d:"M348.16 143.36h327.68a40.96 40.96 0 0 1 40.96 40.96v122.88a40.96 40.96 0 0 1-40.96 40.96H348.16a40.96 40.96 0 0 1-40.96-40.96V184.32a40.96 40.96 0 0 1 40.96-40.96zM327.68 409.6h368.64a20.48 20.48 0 0 1 0 40.96H327.68a20.48 20.48 0 0 1 0-40.96zM327.68 491.52h368.64a20.48 20.48 0 0 1 0 40.96H327.68a20.48 20.48 0 0 1 0-40.96z",fill:"#EBECEC"}),(0,d.jsx)("path",{d:"M673.44384 607.58016v13.43488c0 25.14944-20.0704 45.52704-44.8512 45.52704H382.95552l-2.2528-0.06144c-23.7568-1.16736-42.63936-21.07392-42.63936-45.4656v-13.45536c0-12.55424-10.0352-22.7328-22.44608-22.7328H102.4v250.30656C102.4 860.2624 122.49088 880.64 147.29216 880.64h719.31904c24.7808 0 44.89216-20.3776 44.89216-45.50656V584.82688H695.88992c-12.3904 0-22.44608 10.17856-22.44608 22.7328z",fill:"#E0E0E0"})]}))}),o&&(0,d.jsx)("div",{className:t+"-description",children:o}),c&&(0,d.jsx)("div",{className:t+"-footer",children:c})]}))};var tn=["className","dataLabel","prefixCls"];const nn=l.forwardRef(((e,t)=>{var{className:n,dataLabel:l="Browse",prefixCls:i="w-fileinput"}=e,s=(0,r.Z)(e,tn),o=[i,n].filter(Boolean).join(" ").trim();return(0,d.jsx)(fe,(0,a.Z)({ref:t,"data-label":l,className:o},s,{type:"file"}))}));const rn=e=>{var{className:t,prefixCls:n="w-fileinput-list",dataList:r=[],uploadType:a,size:i="middle",shape:s="round",readonly:o,children:c,showFileIcon:u={showPreviewIcon:!0,showRemoveIcon:!0},onPreview:h,onAdd:p,onRemove:m}=e,f=[n,n+"-size-"+i,n+"-shape-"+s,t].filter(Boolean).join(" ").trim();return(0,d.jsxs)("div",{className:f,children:[c&&!o&&l.isValidElement(c)&&l.cloneElement(c,{onClick:p}),(0,d.jsx)("div",{children:r.map(((e,t)=>(0,d.jsxs)("div",{className:n+"-"+a,children:["picture"===a&&(0,d.jsxs)("div",{className:n+"-info "+n+"-"+a+"-info",children:[(0,d.jsx)("img",{src:e.dataURL,alt:""}),(null==u?void 0:u.showPreviewIcon)&&(0,d.jsx)("div",{className:n+"-actions",children:(0,d.jsx)("span",{className:n+"-actions-search",onClick:()=>null==h?void 0:h(e),children:(0,d.jsx)(w,{type:"search",style:{color:"#fff",fontSize:16}})})})]}),(0,d.jsx)("div",{className:n+"-"+a+"-text",children:e.name}),(null==u?void 0:u.showRemoveIcon)&&(0,d.jsx)("div",{className:n+"-"+a+"-icon",onClick:()=>null==m?void 0:m(t),children:(0,d.jsx)(w,{type:"delete",style:{color:"#999"}})})]},t)))})]})};const an=e=>{var{className:t,prefixCls:n="w-fileinput-card",dataList:r=[],maxNumber:a=3,shape:l="round",size:i="middle",readonly:s,children:o,showFileIcon:c={showPreviewIcon:!0,showRemoveIcon:!0},onAdd:u,onPreview:h,onRemove:p}=e,m=[n,n+"-size-"+i,n+"-shape-"+l,t].filter(Boolean).join(" ").trim(),f=!(!c.showPreviewIcon&&!c.showRemoveIcon);return(0,d.jsxs)("div",{className:m,children:[r.map(((e,t)=>(0,d.jsxs)("div",{className:n+"-box",children:[(0,d.jsx)("div",{className:n+"-box-info",children:(0,d.jsx)("img",{src:e.dataURL,alt:""})}),(0,d.jsxs)("div",{className:f?n+"-actions":"",children:[(null==c?void 0:c.showPreviewIcon)&&(0,d.jsx)("span",{className:n+"-actions-remove",onClick:()=>null==h?void 0:h(e),children:(0,d.jsx)(w,{type:"search",style:{color:"#fff",fontSize:16}})}),(null==c?void 0:c.showRemoveIcon)&&(0,d.jsx)("span",{className:n+"-actions-remove",onClick:()=>null==p?void 0:p(t),children:(0,d.jsx)(w,{type:"delete",style:{color:"#fff",fontSize:16}})})]})]},t))),a>r.length&&!s&&(0,d.jsx)("div",{className:n+"-box "+n+"-btn",onClick:u,children:o})]})};var ln=e=>{var t=new FileReader;return new Promise((n=>{t.addEventListener("load",(()=>n(String(t.result)))),t.readAsDataURL(e)}))};const sn=e=>{var{uploadType:t,value:n=[],multiple:r=!1,maxNumber:i=3,onChange:s}=e,o=(0,l.useRef)(null),c=n||[],[u,h]=(0,l.useState)([]);(0,l.useEffect)((()=>{h(c)}),[n]);var m,f=(0,l.useCallback)((()=>(e=>{e.current&&e.current.click()})(o)),[o]),v=(0,l.useCallback)((()=>{o.current&&(o.current.value=""),f()}),[f]),x=function(){var e=(0,p.Z)((function*(e){var t=e.target.files;if(t){var n=yield((e,t)=>{for(var n=[],r=0;r<e.length;r+=1)n.push(ln(e[r]));return Promise.all(n).then((n=>n.map(((n,r)=>({[t]:n,file:e[r],name:e[r].name})))))})(t,"dataURL"),r=[...u,...n];i<r.length&&(r=r.slice(0,i)),h(r),null==s||s(r)}}));return function(t){return e.apply(this,arguments)}}();return"card"===t&&(m=an),"picture"!==t&&"text"!==t||(m=rn),(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("input",{type:"file",ref:o,multiple:r,style:{display:"none"},onChange:x}),m&&(0,d.jsx)(m,(0,a.Z)({},e,{maxNumber:i||3,dataList:u,onAdd:v,onRemove:e=>{var t=[...u];t.splice(e,1),h(t),null==s||s(t)}}))]})};const on=function(e){var{uploadType:t="input"}=e;return"input"===t?(0,d.jsx)(nn,(0,a.Z)({},e)):["picture","text","card"].includes(t)?(0,d.jsx)(sn,(0,a.Z)({},e)):null};var cn=["prefixCls","className","fixed","span","grow","align"];function dn(e){void 0===e&&(e={});var{prefixCls:t="w-col",className:n,fixed:l,span:i,grow:s,align:o}=e,c=(0,r.Z)(e,cn),u=[t,n,i?t+"-"+i:null,l?t+"-fixed":null,o?t+"-align-"+o:null,l?t+"-grow-"+s:null].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:u},c,{children:e.children}))}var un=["prefixCls","className","gutter","justify","align"];function hn(e){void 0===e&&(e={});var{prefixCls:t="w-row",className:n,gutter:i=0,justify:s,align:o}=e,c=(0,r.Z)(e,un),u=[t,n,o?t+"-align-"+o:null,s?t+"-justify-"+s:null].filter(Boolean).join(" ").trim(),h=i?{paddingLeft:i/2,paddingRight:i/2}:{};return(0,d.jsx)("div",(0,a.Z)({},c,{className:u,children:l.Children.toArray(e.children).map((e=>l.isValidElement(e)?l.cloneElement(e,Object.assign({},e.props,{style:(0,a.Z)({},e.props.style,h)})):e))}))}var pn=["prefixCls","className","required","style","label","labelFor","labelClassName","labelStyle","help","inline","initialValue","validator","hasError"];class mn extends l.PureComponent{render(){var e=this.props,{prefixCls:t,className:n,required:i,style:s,label:o,labelFor:c,labelClassName:u,labelStyle:h,help:p,inline:m,hasError:f}=e,v=(0,r.Z)(e,pn),x=[t,n,f?t+"-error":null].filter(Boolean).join(" ").trim(),g=["w-form-label",u].filter(Boolean).join(" ").trim();return m?(0,d.jsxs)("div",(0,a.Z)({className:x,style:s},v,{children:[(0,d.jsxs)(hn,{children:[(0,d.jsxs)(dn,{fixed:!0,className:g,children:[i&&(0,d.jsx)("label",{style:{color:"red"},children:"*"}),(0,d.jsx)("label",{style:h,htmlFor:c,children:o})]}),(0,d.jsx)(dn,{className:"w-form-row",children:this.props.children})]}),p&&(0,d.jsx)(hn,{children:(0,d.jsx)(dn,{className:"w-form-help",children:p})})]})):(0,d.jsxs)("div",(0,a.Z)({className:x,style:s},v,{children:[o&&(0,d.jsxs)(l.Fragment,{children:[i&&(0,d.jsx)("label",{style:{color:"red"},children:"*"}),(0,d.jsx)("label",{className:g,style:h,htmlFor:c,children:o})]}),(0,d.jsx)(dn,{className:"w-form-row",children:this.props.children}),p&&(0,d.jsx)("div",{className:"w-form-help",children:p})]}))}}mn.defaultProps={prefixCls:"w-form-item"};var fn=["prefixCls","className","fields","children","resetOnSubmit","onSubmitError","onChange","onSubmit","afterSubmit"],vn=["children","validator","name","help","label","labelFor","labelClassName","labelStyle","inline","initialValue"];function xn(e,t){var{prefixCls:n="w-form",className:i,fields:s,children:o,resetOnSubmit:c,onSubmitError:u,onChange:h,onSubmit:p,afterSubmit:m}=e,f=(0,r.Z)(e,fn),v=(0,l.useMemo)((()=>function(e,t){var n={initial:{},current:{},submitting:!1,errors:{}};for(var r in e){var l=e[r];if(l){var{initialValue:i,currentValue:s}=t((0,a.Z)({},l,{name:r}));n.initial[r]=Array.isArray(i)?[...i]:i,n.current[r]=s}}return n}(s,(e=>{var t,{initialValue:n}=e;return{initialValue:n=null===(t=n)||void 0===t?"":t,currentValue:n}}))),[]),[x,g]=(0,l.useState)(v);(0,l.useImperativeHandle)(t,(()=>({onSubmit:P,resetForm:B,getFieldValues:()=>x.current,getError:()=>x.errors,setFields:S,setFieldValue:Z})),[x]);var y={};for(var j in s){var b=s[j];if(b){var w=x.errors[j];"boolean"===typeof b.initialValue&&(b.checked=b.initialValue);var C=z((0,a.Z)({},b,{name:j})),N=w||b.help,k=b.labelFor;y[j]=(0,l.createElement)(mn,(0,a.Z)({},b,{key:j,children:C,help:N,labelFor:k,name:j,hasError:!!w}))}}function S(e){var t=(0,a.Z)({},x,{current:e});g(t)}function Z(e,t){var n=(0,a.Z)({},x,{current:(0,a.Z)({},x.current,{[e]:t})});g(n)}function E(e,t,n,r){return(l,i)=>{var s=l&&l.target&&"value"in l.target?l.target.value:l;s=i||s,!i&&n&&l&&l.target&&/(radio)/.test(l.target.type)&&(s=l.target.value?l.target.value:l.target.checked),!i&&n&&l&&l.target&&/(checkbox)/.test(l.target.type)&&(s=l.target.checked);var o={current:(0,a.Z)({},x.current,{[e]:s})};t&&t(s)||(o.errors=(0,a.Z)({},x.errors),delete o.errors[e]),l&&l.persist&&"function"===typeof l.persist&&l.persist(),g((0,a.Z)({},x,o)),r&&r(l),h&&h((0,a.Z)({},x,o))}}function P(e){e&&e.preventDefault();var{initial:t,current:n}=x;g((0,a.Z)({},x,{submitting:!0}));var r,l={submitting:!1},i=e=>g((0,a.Z)({},x,l,{errors:u&&u(e)||{}})),s=e=>{c&&(l.current=t),g((0,a.Z)({},x,l,{errors:{}})),m&&m({state:x,response:e,reset:B})};try{var o=p?p({initial:t,current:n},e):void 0;return o&&((r=o)&&"function"===typeof r.then)?o.then(s).catch(i):s(o)}catch(d){i(d)}}function M(){var{submitting:e,current:t={}}=x,n=!0;for(var r in s)if(Object.prototype.hasOwnProperty.call(s,r)){var a=s[r];if(!a)continue;if(a.validator&&a.validator(t[r])){n=!1;break}}return!e&&n}function B(){var{initial:e}=x,t=(0,a.Z)({},e);Object.entries(t).map((e=>{var[n,r]=e;Array.isArray(r)&&(t[n]=[...r])})),g((0,a.Z)({},x,{initial:e,current:t,errors:{}}))}function z(e){var{children:t,validator:n,name:i}=e,s=(0,r.Z)(e,vn),o="function"!==typeof t?t:t({onChange:E(i,n),onSubmit:P,canSubmit:M});if(!o||1!==l.Children.count(o)||!i)return o;var c=(0,a.Z)({name:o.props.name||i},s),d=Object.prototype.hasOwnProperty.call(x.current,i);c.id=o.props.id,c.value=d?x.current&&x.current[i]:c.value;var u=o.props.type;return"checkbox"!==u&&"switch"!==u&&"boolean"!==typeof c.value||(c.checked=!!c.value,delete c.value),c.onChange=E(i,n,o,o.props.onChange),l.cloneElement(o,c)}return(0,d.jsx)("form",(0,a.Z)({},f,{className:[n,i].filter(Boolean).join(" ").trim(),onSubmit:P,children:(0,d.jsx)("fieldset",{disabled:x.submitting,children:"function"===typeof o?o({fields:y,state:x,resetForm:B,canSubmit:M}):o})}))}const gn=l.forwardRef(xn);var yn=["prefixCls","className","children","extra","tagName","active"],jn=l.forwardRef(((e,t)=>{var{prefixCls:n="w-list-item",className:i,children:s,extra:o,tagName:c="div",active:u=!1}=e,h=(0,r.Z)(e,yn),p=[n,i,e.disabled?"w-disabled":null,u?"w-active":null].filter(Boolean).join(" ").trim(),m=e.href&&"string"===typeof c?"a":c;return l.createElement(m,(0,a.Z)({},h,{className:p,ref:t}),!o||h.href?s:(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("div",{className:n+"-main",children:s}),(0,d.jsx)("div",{className:n+"-extra",children:o})]}))}));jn.displayName="List.Item";var bn=["prefixCls","bordered","striped","noHover","active","size","renderItem","className","children","header","footer","dataSource"];function wn(e,t){var n,{prefixCls:i="w-list",bordered:s=!0,striped:o=!1,noHover:c=!1,active:u=!1,size:h="default",renderItem:p,className:m,children:f,header:v,footer:x,dataSource:g=[]}=e,y=(0,r.Z)(e,bn);n=g&&g.length>0?g.map(((e,t)=>p&&p(e,t))):f;var j=l.Children.map(n,((e,t)=>l.isValidElement(e)&&l.cloneElement(e,{key:t}))),b=[i,m,o?i+"-striped":null,c?i+"-no-hover":null,u?i+"-active":null,s?i+"-bordered":null,h&&"default"!==h?i+"-size-"+h:null].filter(Boolean).join(" ").trim();return(0,d.jsxs)("div",(0,a.Z)({className:b},y,{ref:t,children:[v&&(0,d.jsx)("div",{className:i+"-header",children:v}),j,x&&(0,d.jsx)("div",{className:i+"-footer",children:x})]}))}var Cn=l.forwardRef(wn);Cn.Item=jn;const Nn=Cn;var kn=n(6394),Sn=["prefixCls","className","size","loading","tip","vertical","color","bgColor","children","indicator","fullscreen"];const Zn=function(e){void 0===e&&(e={});var{prefixCls:t="w-loader",className:n,size:i="default",loading:s=!0,tip:o,vertical:c,color:u,bgColor:h,children:p,indicator:m,fullscreen:f=!1}=e,v=(0,r.Z)(e,Sn),x=[t,n,i?t+"-"+i:null].filter(Boolean).join(" ").trim(),g=(0,l.useMemo)((()=>(0,d.jsx)("svg",{viewBox:"25 25 50 50",children:(0,d.jsx)("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"5",strokeMiterlimit:"10"})})),[]),y=(0,l.useMemo)((()=>(0,d.jsx)("div",{className:[t+"-tips",f?t+"-fullscreen":null].filter(Boolean).join(" ").trim(),style:{color:u,backgroundColor:h},children:(0,d.jsxs)("div",{className:t+"-tips-nested",children:[m||g,o&&(0,d.jsx)("div",{className:[t+"-text",c?t+"-vertical":null].filter(Boolean).join(" ").trim(),children:o})]})})),[f,h,t,c,o]);return(0,d.jsxs)("div",(0,a.Z)({className:x},v,{children:[(s||f)&&y,p&&l.cloneElement(p,Object.assign({},p.props,{className:[t+"-warp",s?t+"-blur":null].filter(Boolean).join(" ").trim()}))]}))};var En=["prefixCls","className","type","title","description","showIcon","icon","rounded","isCloseButtonShown"];class Pn extends l.Component{constructor(e){super(e),this.handleClosed=e=>{var{onClose:t}=this.props;this.setState({isOpen:!1}),t&&t(e)},this.renderIcon=()=>{var{type:e,showIcon:t}=this.props,n=this.props.icon;if(!n&&t)switch(e){case"success":n="circle-check";break;case"warning":n="warning";break;case"info":n="information";break;case"error":n="circle-close"}return n},this.state={isOpen:!0}}render(){var e=this.props,{prefixCls:t,className:n,type:l,title:i,description:s,showIcon:o,rounded:c,isCloseButtonShown:u}=e,h=(0,r.Z)(e,En),p=s||this.props.children,f=[t,n,t+"-"+l,c?t+"-rounded":null,o?t+"-icon":null,o?t+(i?"-title":"")+(p?"-description":""):null].filter(Boolean).join(" ").trim(),v=(0,d.jsxs)("div",(0,a.Z)({className:f},h,{children:[u&&(0,d.jsx)(N,{basic:!0,onClick:this.handleClosed,icon:"close",type:"light"}),o&&(0,d.jsx)(w,{type:this.renderIcon()}),(0,d.jsx)("span",{className:t+"-title",children:i}),(0,d.jsx)("span",{className:t+"-description",children:p})]}));return u?(0,d.jsx)(m.Z,{in:this.state.isOpen,unmountOnExit:!0,timeout:300,classNames:t,children:v}):v}}Pn.defaultProps={prefixCls:"w-message",rounded:!0,isCloseButtonShown:!1};var Mn=["prefixCls","format","onChange","className","popoverProps","pickerCaptionProps","allowClear","monthLabel"],Bn=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"];function zn(e){var{prefixCls:t="w-monthpicker",format:n="YYYY/MM",onChange:i=(()=>{}),className:s,popoverProps:o,pickerCaptionProps:c={},allowClear:u=!0,monthLabel:h=Bn}=e,p=(0,r.Z)(e,Mn),[m,f]=(0,l.useState)(!1),[v,x]=(0,l.useState)(new Date),[g,y]=(0,l.useState)("month"),[j,b]=(0,l.useState)(e.value);function w(e,t,r){var a=new Date(new Date(v)[e](t));r||y("month");var l=(0,U.Z)(n,new Date(a));b(l),x(a),i&&i(a,l),"setMonth"===e&&f(!1)}return(0,l.useEffect)((()=>b(e.value)),[e.value]),p.value=(0,l.useMemo)((()=>"string"===typeof j?j:j?(0,U.Z)(n,j):""),[n,j]),u&&p.value&&(p.addonAfter=(0,d.jsx)(N,{className:t+"-close-btn",icon:"close",onClick:()=>{b(""),i&&i()},size:p.size,basic:!0,type:"light"})),(0,d.jsx)(ue,(0,a.Z)({trigger:"focus",placement:"bottomLeft",autoAdjustOverflow:!0,isOpen:m},o,{onVisibleChange:e=>f(e),content:(0,d.jsxs)("div",{className:t+"-popover",children:[(0,d.jsx)(De,(0,a.Z)({panelDate:v,monthLabel:h},c,{onSelected:e=>{if(/^(month|year)$/.test(e))y(e);else{var t=new Date(v).getFullYear(),n=new Date(new Date(v).setFullYear("next"===e?t+1:t-1));x(n)}}})),"month"===g&&(0,d.jsx)(Me,{panelDate:v,monthLabel:h,onSelected:(e,t)=>w("setMonth",e,t)}),"year"===g&&(0,d.jsx)(ze,{panelDate:v,onSelected:(e,t)=>w("setFullYear",e,t)})]}),children:(0,d.jsx)(fe,(0,a.Z)({placeholder:"\u8bf7\u8f93\u5165\u65e5\u671f",readOnly:!0},p,{className:[t,s].filter(Boolean).join(" ").trim()}))}))}var Ln=["description","isOpen"],On={},Dn={};class Rn extends l.Component{constructor(){super(...arguments),this.state={notifys:{}}}create(e){var{placement:t,key:n}=e;On[t]||(On[t]={}),e.isOpen=!1,On[t][n]=e,e.duration&&(Dn[n]=setTimeout((()=>{this.closed(n,t)}),e.duration)),this.setState({notifys:On,placement:t},(()=>{On[t][n].isOpen=!0,this.setState({notifys:On})}))}closed(e,t){if(e&&t&&On[t][e]){On[t][e].isOpen=!1;var n=On[t][e];this.setState({notifys:On},(()=>{clearTimeout(Dn[e]),delete Dn[e],delete On[t][e],n&&n.willUnmount&&n.willUnmount(n,On)}))}}render(){var{prefixCls:e}=this.props,{placement:t}=this.state;return(0,d.jsx)(l.Fragment,{children:t&&Object.keys(this.state.notifys[t]).map((n=>{var l=this.state.notifys[t][n],{description:i,isOpen:s}=l,o=(0,r.Z)(l,Ln);return"open"===o.type&&delete o.type,(0,d.jsx)(M,(0,a.Z)({className:e,useButton:!1,width:320},o,{usePortal:!1,hasBackdrop:!1,isOpen:s,content:i}),n)}))})}}Rn.defaultProps={prefixCls:"w-notify",placement:"topRight"};var An={},Tn={};function In(e,t){if(void 0===t&&(t="open"),e.placement||(e.placement="topRight"),e.type=t,!e.icon&&null!==e.icon)switch(e.type){case"success":e.icon="circle-check";break;case"warning":e.icon="warning";break;case"info":e.icon="information";break;case"error":e.icon="circle-close"}switch(e.type){case"info":e.type="primary";break;case"error":e.type="danger"}if(e.placement&&!An[e.placement]){var n=document.createElement("div");document.body.appendChild(n),n.className=["w-notify-warpper",e.placement].filter(Boolean).join(" ").trim(),Tn[e.placement]=n,An[e.placement]=f.render((0,d.jsx)(Rn,{}),n)}null!==e.duration&&(e.duration=1e3*(e.duration||4.5)),An[e.placement]&&An[e.placement].create((0,a.Z)({},e,{duration:e.duration,key:parseInt(String(1e15*Math.random()),10).toString(36),willUnmount(t,n){t&&(t.onClose&&t.onClose(),0===Object.keys(n[e.placement]).length&&An[e.placement]&&(delete An[e.placement],Tn[e.placement]&&document.body.removeChild(Tn[e.placement])))}}))}["open","success","warning","info","error"].forEach((e=>{In[e]=function(t){return void 0===t&&(t={}),In(t,e)}}));const Fn=In,Hn=l.forwardRef(((e,t)=>(0,d.jsx)("option",(0,a.Z)({},e,{ref:t})))),Wn=l.forwardRef(((e,t)=>(0,d.jsx)("optgroup",(0,a.Z)({},e,{ref:t}))));var _n=["prefixCls","className","size"],Vn=(e,t)=>{var{prefixCls:n="w-select",className:l,size:i="default"}=e,s=(0,r.Z)(e,_n);return(0,d.jsx)("select",(0,a.Z)({},s,{ref:t,className:[n,l,i?n+"-"+i:null].filter(Boolean).join(" ").trim()}))},Kn=l.forwardRef(Vn);Kn.Option=Hn,Kn.Group=Wn;const Yn=Kn;var $n=["className","style","prefixCls","alignment","size","total","pageSize","pageSizeOptions","current","onChange","onShowSizeChange","divider"];function Un(e){var{className:t,style:n,prefixCls:i="w-pagination",alignment:s="left",size:o="default",total:c=0,pageSize:u=10,pageSizeOptions:h=[],current:p=1,onChange:m=(()=>null),onShowSizeChange:f,divider:v}=e,x=(0,r.Z)(e,$n),[g,y]=(0,l.useState)(p);(0,l.useEffect)((()=>y(p)),[p]);var j=[i,t,v?"divider":null,o].filter(Boolean).join(" ").trim(),b=(0,l.useMemo)((()=>{var e=[{type:"prev",disabled:1===g}],t=Math.ceil(c/u),n=t<=5?t:5,r=0,a=0;for(g>3&&t>5&&e.push({label:1}),g>4&&t>6&&e.push({type:"jumpPrev",label:"\u2022\u2022\u2022",goto:5});r<n;){g>3&&t>5&&(a=g-3);var l=(r+=1)+a;t-g===0&&t>5&&(l-=2),t-g===1&&t>5&&(l-=1),l<=t&&e.push({label:l,active:g===l})}return g+3<t&&t>6&&e.push({type:"jumpNext",label:"\u2022\u2022\u2022",goto:5}),g+2<t&&t>5&&e.push({label:t}),e.push({type:"next",disabled:g===t}),e}),[g,c,u]);return(0,d.jsxs)("ul",(0,a.Z)({className:j,style:(0,a.Z)({},n,{textAlign:s})},x,{children:[b.map(((e,t)=>{var n=(0,d.jsx)("a",{children:e.label});return/^(prev|next)$/.test(e.type)&&(n=(0,d.jsx)("a",{className:"arrow "+e.type})),(0,d.jsx)("li",{className:[e.active?"active":null,e.disabled?"disabled":null].filter(Boolean).join(" ").trim(),onClick:()=>function(e){if(!e.active&&!e.disabled){var t=Math.ceil(c/u),n={};e.label&&(n.current=e.label),"prev"===e.type&&(n.current=g-1>0?g-1:1),"next"===e.type&&(n.current=g+1<=t?g+1:t),/^(jumpPrev|jumpNext)/.test(e.type)&&e.goto&&(n.current="jumpPrev"===e.type?g-e.goto:g+e.goto,n.current>t&&(n.current=t),n.current<1&&(n.current=1)),y(n.current),m&&m(n.current,c,u)}}(e),children:n},t)})),h.length>0&&(0,d.jsx)("li",{className:i+"-options",children:(0,d.jsx)(Yn,{size:o,defaultValue:u,onChange:e=>{var t=Number(e.target.value),n=Math.ceil(c/t);f&&f(g>n?n:g,t)},children:h.map(((e,t)=>(0,d.jsxs)(Yn.Option,{value:e,children:[e,"\u6761/\u9875"]},t)))})})]}))}var Jn=["prefixCls","placeholder","value","autoFocus","className","size","style","disabled","onChange","onBlur","onFocus"];function Gn(e,t){void 0===e&&(e={});var{prefixCls:n="w-pin-code",placeholder:s="\u25cb",value:o=[],autoFocus:c,className:u,size:h="default",style:p,disabled:m,onChange:f=i,onBlur:v=i,onFocus:x=i}=e,g=(0,r.Z)(e,Jn),[y]=(0,l.useState)({}),[j,b]=(0,l.useState)(s),[w,C]=(0,l.useState)(o),N=[n,u,h?n+"-"+h:null,m?"disabled":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>{w!==o&&f(w)}),[w]),(0,d.jsx)("div",(0,a.Z)({className:N,style:p},g,{ref:t,children:[...w].map(((e,t)=>{var r={min:0,type:"text",inputMode:"numeric",autoComplete:"off",value:e,onChange:e=>function(e,t){var n=e.target.value;n=n.charAt(n.length-1);var r=[...w];Number(n)>-1&&n?(e.currentTarget.value=n,r[t]=n,y[t+1]&&y[t+1].focus(),C(r)):n||(r[t]="",C(r))}(e,t),onKeyDown:e=>function(e,t){var n=e.currentTarget.value,r=e.key.toLocaleLowerCase();!n&&y[t-1]&&/(backspace|delete)/.test(r)&&y[t-1].focus()}(e,t),onBlur:e=>{return t=e,b(s),void v(t);var t},onFocus:e=>{return t=e,b(""),void x(t);var t},className:n+"-inner",placeholder:j,disabled:m,size:h};return c&&0===t&&(r.autoFocus=!0),(0,l.createElement)(fe,(0,a.Z)({ref:e=>{e&&(y[t]=e)}},r,{key:t}))}))}))}const qn=l.forwardRef(Gn);function Xn(e){return(0,d.jsx)(w,{type:e.type})}var Qn=["prefixCls","style","type","className","showText","percent","format","strokeWidth","width","status"];class er extends l.Component{relativeStrokeWidth(e,t){var{strokeWidth:n,percent:r}=this.props;if(t&&t.parentNode){var{width:a}=t.parentNode.getBoundingClientRect(),l=(n/a*100).toFixed(1),i=parseInt((50-parseFloat(l)/2).toString(),10);if(t.setAttribute("stroke-width",l),t.setAttribute("d","M 50 50 m 0 -"+i+" a "+i+" "+i+" 0 1 1 0 "+2*i+" a "+i+" "+i+" 0 1 1 0 -"+2*i),"track"===e){var s=2*Math.PI*i;t.setAttribute("style","stroke-dasharray:"+s+"px,"+s+"px;stroke-dashoffset:"+(1-r/100)*s+"px;transition: stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease;")}}}render(){var e,t=this.props,{prefixCls:n,style:l,className:i,showText:s,percent:o,format:c,width:u,status:h}=t,p=(0,r.Z)(t,Qn),m=[n,i,n+"-circle",s?n+"-show-text":null,h?n+"-status-"+h:null,parseInt(o.toString(),10)>=100?n+"-status-success":null].filter(Boolean).join(" ").trim(),f=parseInt(o.toString(),10)>=100&&!("status"in this.props)?"success":h;if(s){var v=o+"%";"exception"===f?v=(0,d.jsx)(Xn,{type:"close"}):"success"===f&&(v=(0,d.jsx)(Xn,{type:"check"})),e=(0,d.jsx)("span",{className:n+"-text",style:{fontSize:.16*u+6},children:c?c(o):v})}return(0,d.jsxs)("div",(0,a.Z)({className:m,style:l},p,{children:[(0,d.jsxs)("svg",{viewBox:"0 0 100 100",width:""+u,children:[(0,d.jsx)("path",{ref:this.relativeStrokeWidth.bind(this,"bg"),className:n+"-trail",fill:"none"}),(0,d.jsx)("path",{ref:this.relativeStrokeWidth.bind(this,"track"),strokeLinecap:"round",className:n+"-stroke",fill:"none"})]}),e]}))}}er.defaultProps={prefixCls:"w-progress",showText:!0,percent:0,width:126,strokeWidth:6};var tr=["prefixCls","style","className","showText","percent","format","strokeWidth","width","status"];class nr extends l.Component{render(){var e,t=this.props,{prefixCls:n,style:l,className:i,showText:s,percent:o,format:c,strokeWidth:u,status:h}=t,p=(0,r.Z)(t,tr),m=[n,i,n+"-line",s?n+"-show-text":null,h?n+"-status-"+h:null,parseInt(o.toString(),10)>=100?n+"-status-success":null].filter(Boolean).join(" ").trim();if(s){var f=parseInt(o.toString(),10)>=100&&!("status"in this.props)?"success":h,v=o+"%";"exception"===f?v=(0,d.jsx)(Xn,{type:"circle-close"}):"success"===f&&(v=(0,d.jsx)(Xn,{type:"circle-check"})),e=(0,d.jsx)("span",{className:n+"-text",children:c?c(o):v})}var x={width:o+"%",height:u};return(0,d.jsxs)("div",(0,a.Z)({className:m,style:l},p,{children:[(0,d.jsx)("div",{className:n+"-bar",children:(0,d.jsx)("div",{className:n+"-inner",children:(0,d.jsx)("div",{className:n+"-bg",style:x})})}),e]}))}}nr.defaultProps={prefixCls:"w-progress",showText:!0,percent:0,width:126,strokeWidth:6};const rr={Line:nr,Circle:er};var ar=["prefixCls","count","value","className","allowHalf","character","readOnly","disabled","onChange","onHoverChange","color"];function lr(e){void 0===e&&(e={});var{prefixCls:t="w-rate",count:n=5,value:s=0,className:o,allowHalf:c,character:u="\u2605",readOnly:h=!1,disabled:p,onChange:m=i,onHoverChange:f=i,color:v}=e,x=(0,r.Z)(e,ar),[g,y]=(0,l.useState)(s),[j,b]=(0,l.useState)(-1),w=[t,o,p?"disabled":null].filter(Boolean).join(" ").trim(),[C,N]=(0,l.useState)();function k(e,t){e.persist();var n=t,r=e.clientX-e.currentTarget.getBoundingClientRect().left<=e.currentTarget.getBoundingClientRect().width/2;return c?(e.persist(),n=r?t+.5:t+1):n=t+1,n}return s!==C&&N(s),(0,l.useMemo)((()=>{g!==C&&y(s)}),[C]),(0,d.jsx)("div",(0,a.Z)({},x,{className:w,onMouseLeave:()=>{b(-1)},children:[...Array(n)].map(((e,n)=>{var r=g<=n+.5&&Math.ceil(g)-1===n&&-1===j||j===n+.5,l=[t+"-hight",n+1<=g&&-1===j?"star-on":null,n+1<=j?"hover-on":null,r?"half-on":null].filter(Boolean).join(" ").trim(),i={};return h||(i.onClick=e=>function(e,t){if(!h){var n=k(e,t);y(n),m(n)}}(e,n),i.onMouseMove=e=>function(e,t){var n=k(e,t);j!==n&&(b(n),f(n))}(e,n)),(0,d.jsxs)("span",(0,a.Z)({},i,{children:[(0,d.jsx)("span",{style:{color:v},className:l,children:u}),(0,d.jsx)("span",{className:t+"-bg",children:u})]}),n)}))}))}var ir=["prefixCls","className","style","title","children","visible","color","disabled","bordered","closable","light","onClose"];const sr=function(e){void 0===e&&(e={});var{prefixCls:t="w-tag",className:n,style:l,title:i="",children:s,visible:o=!0,color:c="#6E6E6E",disabled:u=!1,bordered:h=!0,closable:p,light:m=!1,onClose:f}=e,v=(0,r.Z)(e,ir),x=[t,n,m?t+"-light":null,u?"disabled":null].filter(Boolean).join(" ").trim(),g=(0,a.Z)({},l);if(m?(g.color=c,g.borderColor=c,h&&m&&(g.boxShadow="inset 0 0 0 1px "+c)):(g.color="#fff",g.backgroundColor=c),!o)return null;var y=!u&&p&&(0,d.jsx)("svg",{onClick:f,className:t+"-close",width:"15",height:"15",viewBox:"0 0 16 16",children:(0,d.jsx)("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z"})});return(0,d.jsxs)("span",(0,a.Z)({className:x,style:g},v,{children:[i||s,y]}))};var or=["allowClear","disabled","valueAmount","size","option","maxTagCount","loading","labelInValue","prefixCls","className","mode","style","isOpen","value","defaultValue","showSearch","tagProps","placeholder","onSearch","onChange","onSelect"],cr={large:25,default:20,small:17};function dr(e){var t,{allowClear:n=!1,disabled:i=!1,valueAmount:s,size:o="default",option:c=[],maxTagCount:u,loading:h=!1,labelInValue:p=!1,prefixCls:m="w-search-select",className:f,mode:v="single",style:x,value:g,defaultValue:y,showSearch:j=!1,tagProps:b={},placeholder:C,onSearch:N,onChange:k,onSelect:S}=e,Z=(0,r.Z)(e,or),E=[m,f].filter(Boolean).join(" ").trim(),P=(0,l.useMemo)((()=>"multiple"===v),[v]),[M,B]=(0,l.useState)(!1),[z,L]=(0,l.useState)([]),[O,D]=(0,l.useState)(""),[R,A]=(0,l.useState)(""),T=(0,l.useRef)(null),I=(0,l.useMemo)((()=>u&&z.length>u?z.length-u:0),[z.length]),F=(0,l.useRef)(null),H=(0,l.useRef)(null),[W,_]=l.useState(180),V=e=>void 0!==e&&""!==e,K=(0,l.useRef)();K.current=(0,l.useMemo)((()=>z),[z]),(0,l.useEffect)((()=>{!V(g)&&V(y)&&$(y)}),[]),(0,l.useEffect)((()=>{i&&B(!1)}),[i]),(0,l.useEffect)((()=>{V(g)?$(g):(L([]),D(""))}),[JSON.stringify(g)]);var Y=(e,t)=>{var n=e.find((e=>e.value===t));return n};function $(e){var t=[];if(p)Array.isArray(e)?t=e:t.push(e);else if(Array.isArray(e))t=e.map((e=>Y(c,e))).filter((e=>!!e));else{var n=Y(c,e);n&&(D(n.label),t.push(n))}!P&&t.length>0&&D(t[0].label||""),L(t.slice(0,s))}var U=e=>{D(e),j&&(null==N||N(e))};function J(e,t){var n=-1!==e?function(e){var t=K.current;return t.splice(e,1),[...t]}(e):[...z.slice(0,s?s-1:void 0),t],r=n.map((e=>e.value));G(r,n)}function G(e,t){D(""),S&&S(e),ee(e,t),void 0===g&&L(t)}function q(e){var t;t="enter"===e&&n&&(z.length>0||O)?"close":"",A(t)}function X(e){B(!0),A(j&&e?"loading":""),U(e)}function Q(e){var t;e.stopPropagation(),null==(t=T.current)||t.focus(),L([]),X(""),B(!1),ee("",[])}function ee(e,t){k&&k(p?t:e)}return l.useEffect((()=>{var e,t;null!=(e=H.current)&&e.clientWidth&&_(null==(t=H.current)?void 0:t.clientWidth)}),[H.current]),(0,d.jsx)(Je,(0,a.Z)({className:E,trigger:"click",style:{marginTop:5},overlayStyl:{width:100},disabled:i},Z,{onVisibleChange:function(e){var t=K.current;B(e),e||U(""),!P&&t.length>0&&D(t[0].label)},isOpen:M,menu:(0,d.jsx)(dt,{bordered:!0,style:{minHeight:25,maxHeight:280,minWidth:null!=(t=null==x?void 0:x.width)?t:200,overflowY:"scroll",width:null==x?void 0:x.width},children:c&&0!==c.length?c.map((e=>{var t=z.findIndex((t=>t.value===e.value));return(0,d.jsx)(dt.Item,{active:-1!==t,text:e.label,onClick:()=>P?J(t,e):function(e){B(!1);var t=[e];D(e.label),G(e.value,t)}(e)},t)})):(0,d.jsx)("div",{style:{color:"#c7c7c7",fontSize:12},children:h?"\u6b63\u5728\u52a0\u8f7d\u6570\u636e...":"\u6ca1\u6709\u6570\u636e"})}),children:(0,d.jsx)("div",{ref:F,onMouseOver:()=>q("enter"),onMouseLeave:()=>q("leave"),onClick:()=>{var e;return null==(e=T.current)?void 0:e.focus()},style:(0,a.Z)({width:"100%",maxWidth:"none"},x),children:P?(0,d.jsxs)("div",{className:[m+"-inner",m+"-search-"+j,m+"-"+o].filter(Boolean).join(" ").trim(),children:[(0,d.jsxs)("div",{ref:H,className:[m+"-tag-content",i&&m+"-tag-content-disabled"].filter(Boolean).join(" ").trim(),children:[P&&z.slice(0,u).map(((e,t)=>(0,d.jsx)(sr,(0,a.Z)({style:(0,a.Z)({height:cr[o],margin:1,display:"flex",alignItems:"center"},b.style),color:"#393E48"},b,{closable:!0,disabled:i,onClose:n=>{n.stopPropagation(),J(t,e)},children:(0,d.jsx)("span",{style:{maxWidth:W-63,textOverflow:"ellipsis",overflow:"auto"},children:e.label})}),t))),!!I&&(0,d.jsxs)(sr,{style:{height:20,margin:1,display:"flex",alignItems:"center"},disabled:!0,children:["+",I," \u2026"," "]}),(0,d.jsx)(fe,{style:{flex:1,width:j?0:50},className:m+"-input-contents",readOnly:!j,size:o,ref:T,disabled:i,onKeyDown:function(e){P&&z.length>0&&!O&&8===e.keyCode&&J(z.length-1)},onChange:e=>X(e.target.value),value:O,placeholder:z.length?"":C})]}),!i&&("close"===R||"loading"===R&&h)&&(0,d.jsx)(w,{className:m+"-multiple-colse",type:R,spin:h&&"loading"===R,onClick:Q})]}):(0,d.jsx)(fe,{className:m+"-search-"+j,readOnly:!j,size:o,ref:T,disabled:i,onChange:e=>X(e.target.value),value:O,placeholder:C,addonAfter:!i&&("close"===R||"loading"===R&&h)&&(0,d.jsx)(w,{type:R,className:m+"-singe-colse",color:"#393e48",spin:h&&"loading"===R,onClick:Q})})})}))}var ur=n(2656),hr=["prefixCls","className","style","status","itemWidth","icon","adjustMarginRight","stepNumber","title","description","progressDot"];var pr=["prefixCls","style","className","children","current","status","progressDot","direction"];function mr(e){var{prefixCls:t="w-steps",style:n={},children:i,current:s,status:o="process",progressDot:c=!1,direction:u="horizontal"}=e,h=(0,r.Z)(e,pr),p=(0,l.useRef)(null),[m,f]=(0,l.useState)(0),v=l.Children.toArray(i).filter((e=>!!e)),x=v.length-1,g=[t,t+"-"+u,c?t+"-dot":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>function(){var e=p.current;if(e&&e.lastChild){var t=(e.lastChild.offsetWidth||0)+1;if(t===m||Math.abs(t-m)<=3)return;f(t)}}())),(0,d.jsx)("div",(0,a.Z)({className:g,style:n},h,{ref:p,children:l.Children.map(i,((e,n)=>{var r=(0,a.Z)({stepNumber:""+(n+1),prefixCls:t,progressDot:c},e.props);return n!==x&&"vertical"!==u&&(r.itemWidth=100/x+"%",r.adjustMarginRight=-Math.round(m/x+1)),c&&"vertical"!==u&&(r.itemWidth=100/v.length+"%",r.adjustMarginRight=0),"error"===o&&n===s-1&&(r.className=t+"-next-error"),e.props.status||(r.status=n===s?o:n<s?"finish":"wait"),l.cloneElement(e,r)}))}))}mr.Step=function(e){var{prefixCls:t="w-steps",className:n,style:l,status:i,itemWidth:s,icon:o,adjustMarginRight:c,stepNumber:u,title:h,description:p,progressDot:m}=e,f=(0,r.Z)(e,hr),v=[t+"-item",t+"-item-"+i,n,o?t+"-custom":null].filter(Boolean).join(" ").trim(),x=(0,a.Z)({},l),g={};s&&(x.width=s),c&&(x.marginRight=c,m&&(g.paddingRight=Math.abs(c)));var y=null;return y=m&&!o?(0,d.jsx)("span",{className:t+"-dot"}):o&&"string"!==typeof o?(0,d.jsx)("span",{className:t+"-icon",children:o}):o&&"string"===typeof o||"finish"===i||"error"===i?(0,d.jsx)(w,{type:[o&&"string"===typeof o?""+o:null,o||"finish"!==i?null:"check",o||"error"!==i?null:"close"].filter(Boolean).join(" ").trim()}):(0,d.jsx)("span",{className:t+"-icon",children:u}),(0,d.jsxs)("div",(0,a.Z)({},f,{className:v,style:x,children:[(0,d.jsx)("div",{className:t+"-item-tail",style:g,children:(0,d.jsx)("i",{style:{paddingRight:"100%"}})}),(0,d.jsx)("div",{className:t+"-item-head",children:(0,d.jsx)("div",{className:[t+"-item-inner",!!o&&"is-icon"].filter(Boolean).join(" ").trim(),children:y})}),(0,d.jsxs)("div",{className:[t+"-item-main",!!o&&"is-icon-main"].filter(Boolean).join(" ").trim(),children:[(0,d.jsx)("div",{className:t+"-item-title",children:h}),p&&(0,d.jsx)("div",{className:t+"-item-description",children:p})]})]}))};const fr=mr;function vr(e){var{prefixCls:t,data:n,step:r,min:a,vertical:l,marks:i,markRender:s}=e;return(0,d.jsx)("div",{className:t+"-dots",children:n.map(((e,n)=>{var o=n*r+a;return(0,d.jsxs)("div",{style:{[l?"top":"left"]:e+"%"},className:[t+"-mark",i&&!0!==i&&!i[o]?"no-marks":null].filter(Boolean).join(" ").trim(),children:[!0===i&&s&&s(o),!0!==i&&i&&i[o]&&s&&s(o,i[o])]},n)}))})}var xr=["prefixCls","value","min","max","dots","step","disabled","progress","tooltip","className","marks","renderMarks","vertical","onChange"];function gr(e){var{prefixCls:t="w-slider",value:n=0,min:i=0,max:s=100,dots:o=!1,step:c=1,disabled:u=!1,progress:h=!0,tooltip:p=!1,className:m,marks:f,renderMarks:v,vertical:x,onChange:g}=e,y=(0,r.Z)(e,xr),j=l.useRef(null),b=l.useRef(null),w=l.useRef(),C=l.useRef(),N=l.useRef(),k=l.useRef(),S=l.useRef(),Z=l.useRef(),[E,P]=(0,l.useState)(Array.isArray(n)?n:[n]);function M(e){P([...e]),g&&g(1===E.length?e[0]:e)}function B(e){var t=(s-i)/c,n=0;b.current&&(n=e/b.current[x?"clientHeight":"clientWidth"]*100),n<=0&&(n=0),n>=100&&(n=100);var r=t*(n/100)+.5;return Math.floor(r)*c+i}function z(e){if(Z.current){var t=[...E],n=B(e[x?"clientY":"clientX"]-C.current+k.current);if(n!==N.current){t[w.current]=n;var r=D(t);j.current&&(j.current.style[x?"top":"left"]=r.left,j.current.style[x?"bottom":"right"]=r.right),M(t),N.current=n}}}function L(){Z.current=void 0,window.removeEventListener("mousemove",z,!1),window.removeEventListener("mouseup",L,!1)}(0,l.useEffect)((()=>P(Array.isArray(n)?n:[n])),[n]),y.onClick=e=>{if(void 0===Z.current){var t=b.current.getBoundingClientRect();M(function(e){if(!Array.isArray(n))return Array.isArray(e)?e:[e];var t=[...E],r=t[0],a=t[1];(r<a&&r>e||r>a&&r<e)&&(t[0]=e);(r<a&&a<e||r>a&&a>e)&&(t[1]=e);if(r>e&&a<e){var l=a+(r-a)/2;l>=e&&(t[1]=e),l<e&&(t[0]=e)}if(a>e&&r<e){var i=r+(a-r)/2;i>=e&&(t[0]=e),i<e&&(t[1]=e)}return t}(B(e[x?"clientY":"clientX"]-t[x?"y":"x"])))}};function O(e){return 100*(e-i)/(s-i)}function D(e){e=e||E;var t={left:"0%",right:"100%"};if(Array.isArray(n)){var r=e[0]>e[1]?e[1]:e[0],a=e[0]>e[1]?e[0]:e[1];t.left=O(r)+"%",t.right=100-O(a)+"%"}else t.right=100-O(e[0])+"%";return t}function R(e){return f&&!0!==f&&f[e]&&f[e].label?f[e].label:f&&!0!==f&&f[e]&&"string"===typeof f[e]?f[e]:v&&"function"===typeof v&&v(e)?v(e):e}var A=D();return u&&delete y.onClick,(0,d.jsxs)("div",(0,a.Z)({ref:b,className:[t,m,u?"disabled":null,f?t+"-with-marks":null,x?t+"-vertical":null].filter(Boolean).join(" ").trim()},y,{children:[(0,d.jsx)("div",{ref:j,className:t+"-bar",style:(0,a.Z)({[x?"top":"left"]:A.left,[x?"bottom":"right"]:A.right},!0!==h?{backgroundColor:h||"initial"}:{})}),[...E].map(((e,r)=>{var a=O(e);return(0,d.jsx)("div",{className:t+"-handle",onMouseDown:e=>function(e,t){if(!u){w.current=e,Z.current=!0,C.current=t[x?"clientY":"clientX"],j.current&&(k.current=j.current[x?"clientHeight":"clientWidth"],S.current=j.current[x?"offsetTop":"offsetLeft"]);var r=[...E];Array.isArray(n)&&(k.current=1===w.current&&r[1]>r[0]||1!==w.current&&r[0]>r[1]?k.current+S.current:S.current),window.addEventListener("mousemove",z),window.addEventListener("mouseup",L)}}(r,e),style:{[x?"top":"left"]:a+"%"},children:(p||!1===p)&&(0,d.jsx)("div",{className:[t+"-tooltip",p?"open":null].filter(Boolean).join(" ").trim(),children:R(e)})},r)})),o&&(0,d.jsx)(vr,{prefixCls:t,min:i,step:c,marks:f,vertical:!!x,data:(()=>{for(var e=(s-i)/c,t=100*c/(s-i),n=[0],r=1;r<e;r+=1)n.push(r*t);return n.push(100),n})(),markRender:function(e,t){if(void 0===t&&(t={}),!t)return(0,d.jsxs)("div",{children:[" ",R(e)," "]});var n="object"===typeof t?t:{};return delete n.label,(0,d.jsxs)("div",(0,a.Z)({},n,{children:[" ",R(e)," "]}))}})]}))}var yr=["prefixCls"];const jr=l.forwardRef(((e,t)=>{var{prefixCls:n="w-switch"}=e,l=(0,r.Z)(e,yr);return(0,d.jsx)(pt,(0,a.Z)({prefixCls:n},(0,a.Z)({},l,{type:"checkbox"}),{ref:t}))}));function br(e,t){void 0===e&&(e=[]),void 0===t&&(t=1);for(var n=[],r=0;r<e.length;r+=1)e[r].children&&(n=n.concat(e[r].children||[]));return n&&n.length>0&&(t=br(n,t+1)),t}function wr(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);for(var n=[],r=0;r<e.length;r+=1)e[r].children?e[r].children&&e[r].children.length>0&&(n=n.concat(wr(e[r].children,t))):n.push(e[r]);return n}function Cr(e,t){t||(t={header:[],render:{}}),t&&!t.header&&(t.header=[]),t&&!t.render&&(t.render={});for(var n=[],r=[],a=0;a<e.length;a+=1)e[a].render&&e[a].key&&(t.render[e[a].key]=e[a].render),e[a].ellipsis&&e[a].key&&(t.ellipsis||(t.ellipsis={}),t.ellipsis[e[a].key]=!0),0===t.header.length&&(e[a].children&&e[a].children&&e[a].children.length>0&&(e[a].colSpan=wr(e[a].children).length),r.push(e[a])),e[a]&&e[a].children&&(n=n.concat(e[a].children.map((e=>(e.children&&e.children.length>0&&(e.colSpan=wr(e.children).length),e)))));if(0===t.header.length){var l=br(r);t.header.push(r.map((e=>(1===l||(!e.children||e.children&&0===e.children.length)&&(e.rowSpan=l),e))))}if(n&&n.length>0){var i=br(n);t.header.push(n.map((e=>(1===i||(!e.children||e.children&&0===e.children.length)&&(e.rowSpan=i),e)))),t=Cr(n,t)}return t}function Nr(e,t){void 0===t&&(t=[]);for(var n=0;n<e.length;n+=1)e[n].children?t=t.concat(Nr(e[n].children||[])):e[n].key?t.push(e[n]):t.push((0,a.Z)({},e[n],{key:n.toString()}));return t}function kr(e,t,n){var r,a;return e?"right"===e?{right:null==(r=t[n])?void 0:r.right}:{left:null==(a=t[n])?void 0:a.left}:{}}var Sr=["title","key","render","children","ellipsis","fixed"];class Zr extends l.Component{constructor(){super(...arguments),this.wrapper=l.createRef()}componentDidMount(){this.props.updateLocation({width:this.wrapper.current.getBoundingClientRect().width},""+this.props.rowNum+this.props.colNum,this.props.item.key,this.props.item.colSpan)}render(){var{colNum:e,rightNum:t,prefixCls:n,item:l,titleNode:i,onCellHead:s,rowNum:o,locationWidth:c}=this.props,{fixed:u=!1}=l,h=(0,r.Z)(l,Sr),p="";u&&(p="right"===u?n+"-fixed-right "+(1===t?n+"-fixed-right-first":""):n+"-fixed-true");return(0,d.jsx)("th",(0,a.Z)({ref:this.wrapper},h,{style:(0,a.Z)({},h.style,kr(u,c,""+o+e)),className:n+"-tr-children-"+((null==l?void 0:l.align)||"left")+" "+(l.className||"")+" "+p,onClick:t=>null==s?void 0:s(l,e,o,t),children:i}),e)}}var Er=["prefixCls","className","data","onCellHead","locationWidth","updateLocation"],Pr=["title","key","render","children","ellipsis","fixed"];function Mr(e){void 0===e&&(e={});var{prefixCls:t="w-table",className:n,data:l=[],onCellHead:s=i,locationWidth:o,updateLocation:c}=e,u=(0,r.Z)(e,Er),h=0;return(0,d.jsx)("thead",(0,a.Z)({className:[t,n].filter(Boolean).join(" ").trim()},u,{children:l&&l.length>0&&l.map(((e,n)=>(0,d.jsx)("tr",{children:(e||[]).map(((e,a)=>{var{title:l,ellipsis:i,fixed:u=!1}=e,p=(0,r.Z)(e,Pr),m=(0,d.jsx)("span",{className:i?(p.className||"")+" "+t+"-ellipsis":void 0,children:"function"===typeof l?l(e,a,n):l});return 0===p.colSpan?null:("right"===u&&(h+=1),(0,d.jsx)(Zr,{colNum:a,rightNum:h,item:e,prefixCls:t,onCellHead:s,rowNum:n,titleNode:m,locationWidth:o,updateLocation:c},a))}))},n)))}))}function Br(e){var{defaultExpand:t,onClick:n,expandIcon:r}=e,[a,i]=(0,l.useState)(t);return(0,d.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{i(!a),n(a)},children:r(a)})}function zr(e){var{rowKey:t,data:n,keys:r,render:s,ellipsis:o,prefixCls:c,onCell:u=i,isExpandedDom:h,hierarchy:p,indentSize:m,childrenColumnName:f,locationWidth:v,header:x}=e,[g,y]=(0,l.useState)(!1),[j,b]=(0,l.useState)(0),[C,N]=(0,l.useState)([]);(0,l.useEffect)((()=>{y(!(null==n||!n.find((e=>e[f])))),b(-1===(null==r?void 0:r.findIndex((e=>"uiw-expanded"===e.key)))?0:1)}),[n]);var k=(0,l.useMemo)((()=>(e,t)=>{var n=C.includes(e);return(0,d.jsx)(w,{type:n?"minus-square-o":"plus-square-o",style:{marginRight:10,opacity:t?1:0,marginLeft:p*m,float:"left",marginTop:3.24},onClick:()=>{N(n?C.filter((t=>t!==e)):[...C,e])}})}),[C]),S=e=>{var t=0,n=x.findIndex((n=>(t=n.findIndex((t=>t.key===e)),t>-1)));return""+n+t};return Array.isArray(n)&&n.length?(0,d.jsx)(l.Fragment,{children:n.map(((n,i)=>{var x=t?n[t]:i,y=0;return(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("tr",{children:r.map(((e,t)=>{var r={children:n[e.key]};if(s[e.key]){var h=s[e.key](n[e.key],e.key,n,i,t);if(l.isValidElement(h))r.children=h;else{if(h.props&&(r=(0,a.Z)({},h.props,{children:r.children}),0===h.props.rowSpan||0===h.props.colSpan))return null;h.children&&(r.children=h.children)}}var b=Array.isArray(n[f]);if(t===j&&(g||p||b)&&(r.children=(0,d.jsxs)(d.Fragment,{children:[k(x,b),(0,d.jsx)("span",{style:{paddingLeft:p*m}}),r.children]})),e.fixed)if("right"===e.fixed){var w=1===(y+=1)?c+"-fixed-right-first":"";r.className=c+"-fixed-right "+w}else r.className=c+"-fixed-true";return(0,l.createElement)("td",(0,a.Z)({},r,{style:e.fixed?(0,a.Z)({},kr(e.fixed,v,""+S(e.key||"undefined"))):{},children:(0,d.jsx)("span",{className:o&&o[e.key]?c+"-ellipsis":void 0,children:r.children}),key:t,className:[c+"-tr-children-"+(e.align||"left"),e.className,r.className].filter((e=>e)).join(" ").trim(),onClick:r=>u(n,{rowNum:i,colNum:t,keyName:e.key},r)}))}))},x),h(n,i),C.includes(x)&&(0,d.jsx)(zr,(0,a.Z)({},e,{data:n[f],hierarchy:p+1}))]},i)}))}):null}var Lr=["prefixCls","className","columns","data","title","footer","bordered","onCell","onCellHead","empty","children","expandable","rowKey","scroll"];function Or(e){void 0===e&&(e={});var{prefixCls:t="w-table",className:n,columns:s=[],data:o=[],title:c,footer:u,bordered:h,onCell:p=i,onCellHead:m=i,empty:f,expandable:v,rowKey:x,scroll:g}=e,y=(0,r.Z)(e,Lr),[j,b]=(0,l.useState)([]),[C,N]=(0,l.useState)({}),k=(0,l.useRef)({}),S=(e,t)=>{var n=0,r=0,a=[];e.forEach(((l,i)=>{var s=""+t+r;if("number"===typeof e[i])return n=e[i]+n,void a.push(e[i]);k.current[s]&&(k.current[s].left=n,n=k.current[s].width+n,Array.isArray(e[i].children)?a.push(...e[i].children):a.push(k.current[s].width)),r+=1})),n=0,r=z[t].length-1;for(var l=e.length-1;l>=0;l--){var i=""+t+r;"number"!==typeof e[l]?(k.current[i]&&(k.current[i].right=n,n=k.current[i].width+n),r-=1):n=e[l]+n}a.filter((e=>"number"!==typeof e)).length&&S(a,t+1)},Z=()=>(S(s,0),k.current);(0,l.useEffect)((()=>{var e=(null==v?void 0:v.childrenColumnName)||"children",t=n=>{var r=[],a=n.map(((n,a)=>(Array.isArray(n[e])&&r.push(...t(n[e])),x?n[x]:a)));return[...r,...a]};if(v){if(v.defaultExpandAllRows)return void b(t(o));if(v.defaultExpandedRowKeys)return void b(v.defaultExpandedRowKeys)}}),[]),(0,l.useEffect)((()=>{v&&v.expandedRowKeys&&JSON.stringify(v.expandedRowKeys)!==JSON.stringify(j)&&b(v.expandedRowKeys)}),[null==v?void 0:v.expandedRowKeys]);var E=(0,l.useMemo)((()=>(e,t)=>{if(!v)return!1;if(!v.expandedRowRender)return!1;var n=!0;return v.rowExpandable&&(n=v.rowExpandable(e)),n&&(0,d.jsx)("tr",{style:j.includes(x?e[x]:t)?{}:{display:"none"},children:(0,d.jsx)("td",{style:{paddingLeft:16},colSpan:s.length+1,children:v.expandedRowRender(e,t,!0)})})}),[v,j]),P=(0,l.useMemo)((()=>{var e=Nr(s),t=[];return null!=v&&v.expandedRowRender?(e=[{key:"uiw-expanded",align:"center"},...e],t=[{title:"",key:"uiw-expanded",width:50,align:"center",render:(e,t,n,r)=>{var a;return(0,d.jsx)(Br,{defaultExpand:void 0===v.defaultExpandAllRows?!(null==(a=v.defaultExpandedRowKeys)||!a.includes(x?n[x]:r)):!!v.defaultExpandAllRows,onClick:e=>{if(null==v.onExpand||v.onExpand(e,n,r),e){var t=j.filter((e=>x?e!==n[x]:e!==r));v.onExpandedRowsChange?v.onExpandedRowsChange(t):b(t)}else{var a=[...j,x?n[x]:r];v.onExpandedRowsChange?v.onExpandedRowsChange(a):b(a)}},expandIcon:e=>!v.rowExpandable||null!=v.rowExpandable&&v.rowExpandable(n)?v.expandIcon?v.expandIcon(e,n,r):e?(0,d.jsx)(w,{type:"minus-square-o"}):(0,d.jsx)(w,{type:"plus-square-o"}):null})}},...s]):t=[...s],{keys:e,selfColumns:t}}),[s,j]),M=(0,l.useMemo)((()=>{var e={table:{},div:{}};return g&&(void 0!==g.x&&(e.table.minWidth="100%",e.table.width=g.x,e.div.overflowX="auto",e.div.overflowY="hidden"),void 0!==g.y&&(e.div.maxHeight=g.y,e.div.overflowY="scroll")),e}),[g]),B=[t,n,h?t+"-bordered":null].filter(Boolean).join(" ").trim(),{header:z,render:L,ellipsis:O}=Cr(P.selfColumns);return(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("div",(0,a.Z)({className:B},y,{style:(0,a.Z)({},y.style,M.div),children:(0,d.jsxs)("table",{style:(0,a.Z)({tableLayout:O?"fixed":"auto"},M.table),children:[c&&(0,d.jsx)("caption",{children:c}),s&&s.length>0&&(0,d.jsx)(Mr,{onCellHead:m,data:z,locationWidth:C,updateLocation:function(e,t,n,r){void 0===r&&(r=0),k.current=(0,a.Z)({},k.current,{[t]:(0,a.Z)({},k.current[t],e,{key:n,colSpan:r})}),t===""+(z.length-1)+(z[z.length-1].length-1)&&N(Z())}}),o&&o.length>0&&(0,d.jsx)("tbody",{children:(0,d.jsx)(zr,{rowKey:x,locationWidth:C,data:o,header:z,keys:P.keys,render:L,ellipsis:O,prefixCls:t,onCell:p,hierarchy:0,isExpandedDom:E,indentSize:"number"===typeof(null==v?void 0:v.indentSize)?null==v?void 0:v.indentSize:16,childrenColumnName:(null==v?void 0:v.childrenColumnName)||"children"})}),o&&0===o.length&&f&&(0,d.jsx)("tbody",{children:(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:P.keys.length,style:{position:"relative",left:0},children:f})})}),e.children]})})),u&&(0,d.jsx)("div",{className:t+"-footer",children:u})]})}var Dr=["prefixCls","className","label"];var Rr=["prefixCls","className","children","type","activeKey","onTabClick"];function Ar(e){var t,{prefixCls:n="w-tabs",className:i,children:s,type:o="default",onTabClick:c}=e,u=(0,r.Z)(e,Rr),[h,p]=(0,l.useState)(e.activeKey),[m,f]=(0,l.useState)({width:0,left:0}),v=(0,l.useRef)(),x=[n,i,o?n+"-"+o:null].filter(Boolean).join(" ").trim(),[g,y]=(0,l.useState)({content:0,nav:[],flowLeft:-1,displayStart:0,displayEnd:0}),[j,b]=(0,l.useState)([]),[w,C]=(0,l.useState)(),N=(0,l.useCallback)((e=>{null!==e&&(C(w),e.addEventListener("scroll",(e=>{var{clientWidth:t,scrollLeft:n}=e.target;g.displayStart=n,g.displayEnd=t+n,y((0,a.Z)({},g))})),g.displayEnd=e.getBoundingClientRect().width,y((0,a.Z)({},g)))}),[]),k=(0,l.useCallback)(((e,t,n,r)=>{null!==e&&(S(e.getBoundingClientRect().width,t),n===r&&(v.current=e))}),[]),S=(e,t)=>{var n=0;g.nav.slice(0,t+1).forEach((e=>n+=e.width)),g.nav[t]={width:e,curWidth:Math.floor(n),index:t},y(g)};(0,l.useEffect)((()=>{Z()}),[g.displayEnd>(null==(t=g.nav[g.nav.length-1])?void 0:t.curWidth)]);var Z=()=>{var e=[];g.nav.length>0&&(g.nav.forEach((t=>{var n=t.curWidth-15;(g.displayStart>0||g.displayEnd>0)&&(n<g.displayStart||n>g.displayEnd)&&e.push(t.index)})),b(e))};function E(){v.current&&"line"===o&&f({width:v.current.clientWidth,left:v.current.offsetLeft})}return(0,l.useEffect)((()=>p((null==e?void 0:e.activeKey)||"")),[e.activeKey]),(0,l.useEffect)((()=>E()),[h]),(0,d.jsxs)("div",(0,a.Z)({className:x},u,{children:[(0,d.jsxs)("div",{style:{display:"flex"},children:[(0,d.jsx)("div",{style:{overflow:"hidden"},children:(0,d.jsx)("div",{className:n+"-bar",ref:N,children:(0,d.jsxs)("div",{className:n+"-nav",style:{width:"max-content"},children:[P(s),(0,d.jsx)("div",{style:m,className:n+"-slide"})]})})}),j.length>0&&(0,d.jsx)(ue,{trigger:"click",placement:"bottomRight",visibleArrow:!1,content:(0,d.jsx)("div",{className:n+"-nav-hidden",children:P(j.map((e=>s[e])))}),children:(0,d.jsx)("div",{onClick:Z,className:n+"-flow-content",children:(0,d.jsx)("span",{children:"\u2026"})})})]}),l.Children.map(s,(e=>e&&h===e.key?l.cloneElement(e,Object.assign({},e.props,{})):null))]}));function P(e){return l.Children.map(e,((e,t)=>{if(!e)return null;var r={className:[n+"-item",e.key===h?"active":null,e.props.disabled?"disabled":null].filter(Boolean).join(" ").trim(),children:e.props.label};return e.props.disabled||(r.onClick=t=>{p(e.key),c&&c(e.key,e,t),E()}),(0,d.jsx)("div",(0,a.Z)({ref:n=>k(n,t,e.key,h)},r),t)}))}}Ar.Pane=function(e){void 0===e&&(e={});var{prefixCls:t="w-tabs-pane",className:n}=e,l=(0,r.Z)(e,Dr);return(0,d.jsx)("div",(0,a.Z)({className:[t,n].filter(Boolean).join(" ").trim()},l))};var Tr=["prefixCls","className"];const Ir=l.forwardRef(((e,t)=>{var{prefixCls:n="w-textarea",className:l}=e,i=(0,r.Z)(e,Tr);return(0,d.jsx)("textarea",(0,a.Z)({className:[n,l].filter(Boolean).join(" ").trim()},i,{ref:t,children:e.children}))}));var Fr=["prefixCls","className","placement","isOpen","trigger","delay","usePortal","visibleArrow","onVisibleChange"];const Hr=function(e){void 0===e&&(e={});var{prefixCls:t="w-tooltip",className:n,placement:l="top",isOpen:i=!1,trigger:s,delay:o,usePortal:c=!0,visibleArrow:u=!0,onVisibleChange:h}=e,p=(0,r.Z)(e,Fr),m=[t,n,u?null:"no-arrow"].filter(Boolean).join(" ").trim();return(0,d.jsx)(ce,(0,a.Z)({usePortal:c,isOpen:i,trigger:s,delay:o,onVisibleChange:h,placement:l},p,{overlay:(0,d.jsxs)("div",{className:m,children:[u&&(0,d.jsx)("div",{className:t+"-arrow"}),(0,d.jsx)("div",{className:t+"-inner",children:e.content})]}),children:"object"===typeof e.children?e.children:(0,d.jsx)("span",{children:e.children})}))};var Wr=["prefixCls","renderTitle","icon","iconAnimation","isSelected","openKeys","selectedKeys","data","level","parent","onItemClick","onItemSelected"],_r=e=>{var{label:t,className:n}=e;return(0,l.useMemo)((()=>(0,d.jsx)("span",{className:n,children:t})),[t])};function Vr(e){var{prefixCls:t,renderTitle:n,icon:s,iconAnimation:o,isSelected:c,openKeys:u,selectedKeys:h,data:p,level:f,parent:v,onItemClick:x=i,onItemSelected:g=i}=e,y=(0,r.Z)(e,Wr),j=!1,b=l.useRef(null);v&&(v.key||0===v.key)&&(j=!!(u&&u.indexOf(v.key)>-1));var C=(0,l.useCallback)((()=>{b.current.style.height=b.current.scrollHeight+"px"}),[]),N=(0,l.useCallback)((()=>{b.current.style.height="1px"}),[]),k=(0,l.useCallback)((()=>{b.current.style.height="1px"}),[]),S=(0,l.useCallback)((()=>{b.current.style.height=b.current.scrollHeight+"px"}),[]),Z=(0,l.useCallback)((()=>{b.current.style.height="initial"}),[]);return(0,d.jsx)(m.Z,{nodeRef:b,classNames:t,in:j,timeout:200,onExit:C,onExiting:N,onEnter:k,onEntered:Z,onEntering:S,children:(0,d.jsx)("ul",{ref:b,className:[1!==f&&j?[t+"-open"]:null,1===f||j?null:[t+"-close"]].filter(Boolean).join(" ").trim(),children:p.map(((e,r)=>{e.parent=v;var l=!!(h&&h.indexOf(e.key)>-1),i=!e.children,p=u&&u.indexOf(e.key)>-1&&!!e.children,m="function"===typeof s?s(e,{isOpen:!!p,noChild:i,openKeys:u,selectedKeys:h}):s,j=i?[]:$r(e.children),b=h?h.filter((e=>j.indexOf(e)>-1)):[],C=b.length>0&&j.length!==b.length,N={onClick:g,disabled:null,disabledMouse:null,disabledClass:void 0,disabledStyle:void 0};return e.disabled&&(N.onClick=void 0,N.disabled="disabled",N.disabledMouse=t+"-disabled-mouse",N.disabledClass=t+"-disabled-ele",N.disabledStyle={color:"#00000040"}),(0,d.jsxs)("li",{style:{display:e.hideNode?"none":"block"},children:[(0,d.jsxs)("div",{className:t+"-label",children:[(0,d.jsx)("span",{style:{display:i?"none":"auto"},className:t+"-switcher",onClick:t=>x(e,t),children:(0,d.jsx)(w,{type:m||"caret-right",className:["function"===typeof s?t+"-switcher-noop":null,i?"no-child":null,o?null:"no-animation",p?"open":null].filter(Boolean).join(" ").trim()})}),(0,d.jsx)("div",{onClick:t=>null==N.onClick?void 0:N.onClick(e,t),className:[t+"-title",l&&c?"selected":null,N.disabled,N.disabledMouse].filter(Boolean).join(" ").trim(),children:n?n(e,{selected:l,noChild:i,openKeys:u,isHalfChecked:C,selectedKeys:h,disabled:e.disabled,disabledClass:N.disabledClass,disabledStyle:N.disabledStyle}):(0,d.jsx)(_r,{label:e.label,className:N.disabledClass})})]}),e.children&&(0,d.jsx)(Vr,(0,a.Z)({},y,{prefixCls:t,icon:s,iconAnimation:o,isSelected:c,openKeys:u,selectedKeys:h,onItemClick:x,onItemSelected:g,renderTitle:n,prefixCls:t,data:e.children,level:f+1,parent:e}))]},r)}))})})}var Kr=["prefixCls","icon","data","openKeys","selectedKeys","defaultExpandAll","showLine","iconAnimation","isSelected","checkStrictly","multiple","onExpand","onSelected","className","autoExpandParent","renderTitle","onChange","value"],Yr=(e,t)=>{if(!(e instanceof Array)||!(t instanceof Array))return!1;if(e.length<t.length)return!1;for(var n=e.toString(),r=0,a=t.length;r<a;r+=1)if(-1===n.indexOf(t[r]))return!1;return!0},$r=function e(t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),t.forEach((t=>{t.hideNode||n.push(t.key),("number"!==typeof r||r-1)&&t.children&&t.children.length>0&&(n=n.concat(e(t.children,void 0,r?r-1:void 0)))})),n},Ur=function e(t,n){return void 0===t&&(t={}),void 0===n&&(n=[]),t.key&&n.push(t.key),t.parent&&(n=e(t.parent,n)),n},Jr=function e(t,n,r){return void 0===t&&(t={}),void 0===n&&(n=[]),void 0===r&&(r=[]),t.key&&t.children&&Yr(n,$r(t.children,void 0,1))&&(r.push(t.key),t.parent&&!t.parent.parent&&(Yr(n,$r(t.children))&&(n=n.concat(r)),Yr(n,$r(t.parent.children))&&r.push(t.parent.key))),t.parent&&(r=e(t.parent,n,r)),r};function Gr(e){var{prefixCls:t="w-tree",icon:n="caret-right",data:s=[],openKeys:o=[],selectedKeys:c=[],defaultExpandAll:u=!1,showLine:h=!1,iconAnimation:p=!0,isSelected:m=!0,checkStrictly:f=!1,multiple:v=!1,onExpand:x=i,onSelected:g=i,className:y,autoExpandParent:j=!0,renderTitle:b,onChange:w,value:C}=e,N=(0,r.Z)(e,Kr),[k,S]=(0,l.useState)(o),[Z,E]=(0,l.useState)(C||c);(0,l.useEffect)((()=>{E(e.value||e.selectedKeys||[])}),[JSON.stringify(e.selectedKeys),JSON.stringify(e.value)]),(0,l.useEffect)((()=>{S(o)}),[JSON.stringify(o)]),(0,l.useEffect)((()=>{var e=[...k];u?e=$r(s):j&&e.push(...$r(s||[],void 0,1)),S(e)}),[]);var P=[y,t,h?t+"-line":null].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:P},N,{children:(0,d.jsx)(Vr,{icon:n,iconAnimation:p,isSelected:m,openKeys:k,selectedKeys:Z,prefixCls:t,renderTitle:b,onItemClick:function(e,t){if(e.children){var n=[...k],r=n.find((t=>t===e.key)),a=t.currentTarget.className.replace(/(\s)open/g,""),l=!1;!r&&e.key?(n.push(e.key),t.currentTarget.className=[a,"open"].filter(Boolean).join(" ").trim(),l=!0):(n=n.filter((t=>t!==e.key)),t.currentTarget.className=a),S(n),x&&x(e.key,l,e,t)}},onItemSelected:function(e,t){var n=[...Z],r=n.find((t=>t===e.key)),a=!1;r||0===r?n=n.filter((t=>t!==e.key)):(a=!0,n.push(e.key)),f&&(r?n=(n=n.filter((t=>-1===$r(e.children).indexOf(t)))).filter((t=>-1===Ur(e.parent).indexOf(t))):(n=(n=n.concat($r(e.children).filter((e=>-1===n.indexOf(e))))).concat(Jr(e,n)),n=Array.from(new Set(n)))),v||(n=r?[]:[e.key]),E(n),g&&g(n,e.key,a,e,t),null==w||w(e.key,n)},data:s,level:1})}))}var qr=["prefixCls"];function Xr(e){var{prefixCls:t="w-treechecked"}=e,n=(0,r.Z)(e,qr);return n.className=[t,n.className].filter(Boolean).join(" ").trim(),n.checkStrictly=!0,n.isSelected=!1,n.multiple=!0,(0,d.jsx)(Gr,(0,a.Z)({renderTitle:(e,n)=>{var r={};return n.isHalfChecked&&(r.indeterminate=!0),n.selected?r.checked=!0:r.checked=!1,(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(kt,(0,a.Z)({className:t+"-checked",disabled:n.disabled},r)),e.label&&(0,d.jsx)("span",{className:n.disabledClass,children:e.label})]})}},n))}var Qr={large:25,default:20,small:17};const ea=function(e){var{prefixCls:t="w-search-tree",size:n="default",disabled:r=!1,allowClear:i=!1,loading:s=!1,selectCloseDrop:o=!1,className:c,style:u,placeholder:h,tagProps:p={},content:m,options:f,values:v,onChange:x,onSearch:g,emptyOption:y}=e,j=[t,c].filter(Boolean).join(" ").trim(),[b,C]=(0,l.useState)(!1),[N,k]=(0,l.useState)(v),S=(0,l.useRef)(),[Z,E]=(0,l.useState)("");S.current=(0,l.useMemo)((()=>N),[N]);var[P,M]=(0,l.useState)(""),B=(0,l.useRef)(null);function z(e){var t="enter"===e&&i&&(N.length||Z)?"close":"";M(t)}(0,l.useEffect)((()=>{k(v)}),[JSON.stringify(v)]);var L=function(e,t,n){void 0===n&&(n=!0),k(e),R(""),null==x||x(e,t,n)},O=e=>{var t=S.current,n=t[e];t.splice(e,1),L([...t],n,!1)};function D(e){C(!0),R(e),M(e?"loading":"")}var R=e=>{E(e),null==g||g(e)},A=(0,l.useMemo)((()=>{if(y)return"boolean"===typeof y?(0,d.jsx)(en,{style:{minWidth:200,width:null==u?void 0:u.width}}):y;var e=(0,a.Z)({},m.props,{onSelected:function(e,t,n){void 0===n&&(n=!0),C(!o),L(e,t,n)},values:N,options:f});return l.cloneElement(m,e)}),[JSON.parse(JSON.stringify(N)),f,y]);return(0,d.jsx)(Je,{className:j,trigger:"click",onVisibleChange:e=>{C(e),e||R("")},disabled:r,isOpen:b,menu:(0,d.jsx)(Ke,{bodyStyle:!0===y?{padding:0}:void 0,children:A}),children:(0,d.jsx)("div",{onMouseOver:()=>z("enter"),onMouseLeave:()=>z("leave"),onClick:()=>{var e;return null==(e=B.current)?void 0:e.focus()},style:(0,a.Z)({minWidth:(null==u?void 0:u.width)||200,maxWidth:"none"},u),children:(0,d.jsxs)("div",{className:[t+"-inner",t+"-"+n].filter(Boolean).join(" ").trim(),children:[(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"wrap",width:"100%"},children:[N.map(((e,l)=>(0,d.jsx)(sr,(0,a.Z)({style:{height:Qr[n],margin:1,display:"flex",alignItems:"center"},className:t+"-tag",closable:!0,color:"#393E48"},p,{disabled:r,onClose:e=>{e.stopPropagation(),O(l)},children:e.label}),l))),(0,d.jsx)(fe,{ref:B,className:t+"-input-contents",size:n,disabled:r,onKeyDown:function(e){N.length>0&&!Z&&8===e.keyCode&&O(N.length-1)},onChange:e=>D(e.target.value),value:Z,placeholder:N.length?"":h})]}),!r&&(0,d.jsx)("span",{style:{height:25,width:14},className:t+"-close-tag-contents",children:("close"===P||"loading"===P&&s)&&(0,d.jsx)(w,{type:P,spin:s&&"loading"===P,onClick:function(e){var t;e.stopPropagation(),null==(t=B.current)||t.focus(),D(""),C(!1),k([]),L([])}})})]})})})};var ta=["onChange","onSearch","multiple","options","value","emptyOption","treeProps"];function na(e){var[t,n]=(0,l.useState)({}),[r,i]=(0,l.useState)([]);(0,l.useEffect)((()=>{var t,r={},a=null==(t=e.values)?void 0:t.map((e=>(r[e.key]=e.label,e.key)));n(r),i(a||[])}),[e.values]);var s=(e,t,n)=>{var r=(e,n,r)=>{r?t[e]=n:delete t[e]},a=e=>{if(e.parent){var n=e.parent.children.filter((e=>!t[e.key])).length;r(e.parent.key,e.parent.label,0===n),a(e.parent)}};return e.forEach((e=>{var l,i;null!=(l=e.children)&&l.length&&(t=s(e.children,t,n)),r(e.key,null==(i=e.label)?void 0:i.toString(),n),a(e)})),t};return(0,d.jsx)(Xr,(0,a.Z)({defaultExpandAll:!0},e,{data:e.options,selectedKeys:r,onSelected:(n,r,a,l)=>{var i=s([l],t,a),o=!1;"number"===typeof r&&(o=!0);var c=Object.entries(i).map((e=>{var[t,n]=e;return{key:o?Number.parseInt(t):t,label:n}}));null==e.onSelected||e.onSelected(c,{key:l.key,label:l.label},a)}}))}function ra(e){var[t,n]=(0,l.useState)([]);(0,l.useEffect)((()=>{var t,r=[];null!=(t=e.values)&&t.length&&(r[0]=e.values[0].key),n(r)}),[e.values]);return(0,d.jsx)(Gr,(0,a.Z)({defaultExpandAll:!0},e,{multiple:!1,data:e.options,selectedKeys:t,onSelected:(t,n,r,a)=>{var{key:l,label:i}=a,s={key:l,label:i};null==e.onSelected||e.onSelected(r?[s]:[],s,r)}}))}const aa=function(e){var{onChange:t,multiple:n=!0,options:i=[],value:s=[],emptyOption:o=!i.length,treeProps:c}=e,u=(0,r.Z)(e,ta),[h,p]=(0,l.useState)(Array.isArray(s)?s:[s]),[m,f]=(0,l.useState)(i),[v,x]=(0,l.useState)(o);return(0,l.useEffect)((()=>{p(Array.isArray(s)?s:[])}),[JSON.stringify(s)]),(0,d.jsx)(ea,(0,a.Z)({},u,{emptyOption:v,selectCloseDrop:!n,onSearch:e=>{!function t(n,r){void 0===r&&(r=!0),n.forEach((n=>{var a,l=!n.label.includes(e.trim())&&r;if(null!=(a=n.children)&&a.length){t(n.children,l);var i=n.children.find((e=>!e.hideNode));n.hideNode=l&&!i}else n.hideNode=l}))}(i),f([...i]);var t=!0;i.forEach((e=>t=t&&!!e.hideNode)),x("boolean"===typeof o&&t?t:o)},onChange:(e,n,r)=>{p(e),null==t||t(n,e,r)},values:h,options:m,content:n?(0,d.jsx)(na,(0,a.Z)({},c)):(0,d.jsx)(ra,(0,a.Z)({},c))}))};var la=function(e){return e[e.UnChecked=0]="UnChecked",e[e.AllChecked=1]="AllChecked",e[e.Indeterminate=2]="Indeterminate",e}(la||{});const ia=function(e){var{placeholder:t,options:n,value:r=[],showSearch:i=!1,selectedAll:s=!1,bodyStyle:o,style:c,className:u,prefixCls:h="w-transfer"}=e,p=[h,u].filter(Boolean).join(" ").trim(),[m,f]=(0,l.useState)(""),[v,x]=(0,l.useState)(""),[g,y]=(0,l.useState)(n||[]),j=(0,l.useRef)(0),[b,C]=(0,l.useState)(new Map),[N,k]=(0,l.useState)(new Map),[S,Z]=(0,l.useState)([]),[E,P]=(0,l.useState)([]),[M,B]=(0,l.useState)([]),[z,L]=(0,l.useState)({left:la.UnChecked,right:la.UnChecked});(0,l.useEffect)((()=>{r&&(B(r||[]),null==r||r.forEach((e=>b.set(e.key,e.label))),O((e=>!(null==r||!r.find((t=>e.key===t.key))))))}),[JSON.stringify(r)]);var O=e=>{j.current=0;var t=n=>{n.forEach((n=>{var r,a=e(n);if(null!=(r=n.children)&&r.length){t(n.children);var l=n.children.find((e=>!e.hideNode));n.hideNode=a&&!l}else n.hideNode=a;n.hideNode||j.current++}))};t(g),y([...g])},D=(e,t,n)=>{var r=(e,n,r)=>{r?t.set(e,n):t.delete(e)},a=e=>{if(e.parent){var n=e.parent.children.filter((e=>!t.get(e.key)&&!e.hideNode)).length;r(e.parent.key,e.parent.label,0===n),a(e.parent)}};return e.forEach((e=>{var l,i;null!=(l=e.children)&&l.length&&(t=D(e.children,t,n)),r(e.key,null==(i=e.label)?void 0:i.toString(),n),a(e)})),t},R=t=>{"left"===t?(N.forEach(((e,t)=>{b.set(t,e)})),k(new Map),Z([])):(E.forEach((e=>{b.delete(e)})),P([])),C(b);var n=[];b.forEach(((e,t)=>n.push({key:t,label:e}))),null==e.onChange||e.onChange(t,n)},A=e=>(0,d.jsx)(w,{onClick:()=>e.click(),type:"down-square-o",className:h+"-arrow",style:(0,a.Z)({fontSize:20,stroke:"#e9e9e9",fill:"#333"},e.style)});return(0,d.jsxs)("div",{className:p,style:(0,a.Z)({width:400},c),children:[(0,d.jsxs)(Ke,{bodyStyle:{padding:"5px 9px"},title:(0,d.jsxs)("div",{children:[s&&(0,d.jsx)(kt,{indeterminate:S.length<j.current&&!!S.length,checked:S.length>=j.current&&!!S.length,onChange:e=>{var t=e.target.checked;if(z.left=t?1:0,t){var n=[],r=e=>{e.forEach((e=>{var t;null!=(t=e.children)&&t.length&&r(e.children),e.hideNode||(N.set(e.key,e.label),n.push(e.key))}))};r(g),k(N),Z(n)}else Z([]),k(new Map);L(z)}}),(0,d.jsxs)("label",{style:{marginLeft:3},children:[S.length,"/",j.current]})]}),className:h+"-card",children:[i&&(0,d.jsx)(fe,{placeholder:t,value:m,onChange:t=>{return n=t.target.value,O((e=>{var t=!e.label.includes(n.trim());return t||(t=!!M.find((t=>t.key===e.key))),t})),f(n),void(null==e.onSearch||e.onSearch("left",n));var n}}),(0,d.jsx)("div",{className:h+"-cheked-content",children:(0,d.jsx)(Xr,{defaultExpandAll:!0,placeholder:t||"\u641c\u7d22\u9009\u9879",data:g,selectedKeys:S,onSelected:(e,t,n,r)=>{Z(e);var a=D([r],N,n);k(a)}})})]}),(0,d.jsxs)("div",{className:h+"-arrow-content",children:[(0,d.jsx)(A,{click:()=>R("left"),style:{transform:"rotate(-90deg)",background:S.length>0?"#393E48":"none"}}),(0,d.jsx)(A,{click:()=>R("right"),style:{transform:"rotate(90deg)",background:E.length>0?"#393E48":"none"}})]}),(0,d.jsxs)(Ke,{bodyStyle:{padding:"5px 9px"},className:h+"-card",title:(0,d.jsxs)("div",{children:[s&&(0,d.jsx)(kt,{indeterminate:E.length<M.length&&!!E.length,checked:E.length===M.length&&!!E.length,onChange:e=>{var t=e.target.checked;if(z.right=t?1:0,t){var n=M.map((e=>e.key));P(n)}else P([]);L(z)}}),(0,d.jsxs)("label",{style:{marginLeft:3},children:[E.length,"/",M.length]})]}),children:[i&&(0,d.jsx)(fe,{placeholder:t,value:v,onChange:t=>{return n=t.target.value,x(n),M.forEach((e=>{var t=!e.label.includes(n.trim());e.hideNode=t})),B(M),void(null==e.onSearch||e.onSearch("right",n));var n}}),(0,d.jsx)("div",{className:h+"-cheked-content",style:o,children:(0,d.jsx)(Xr,{data:M,selectedKeys:E,onSelected:e=>{P(e)}})})]})]})}},5752:e=>{e.exports={i8:"4.22.2"}},6646:e=>{e.exports=JSON.parse('[{"name":"\u6307\u5357","path":"/guide","icon":"home","children":[{"name":"\u5feb\u901f\u5f00\u59cb","path":"quick-start"},{"divider":true,"name":"\u5de5\u5177"},{"name":"\u6309\u9700\u52a0\u8f7d","path":"import"},{"name":"\u5728 create-react-app \u4e2d\u4f7f\u7528","path":"create-react-app"},{"name":"\u5728 kkt \u4e2d\u4f7f\u7528","path":"kkt"},{"name":"VSCode \u63d2\u4ef6","path":"vscode"},{"divider":true,"name":"\u5176\u5b83"},{"name":"\u6587\u6863\u7f16\u8f91\u9884\u89c8","path":"docs"},{"name":"\u66f4\u65b0\u65e5\u5fd7","path":"https://github.com/uiwjs/uiw/releases"},{"name":"\u793e\u533a\u7cbe\u9009\u7ec4\u4ef6","path":"recommendation"},{"name":"Awesome UIKit","path":"https://github.com/jaywcjlove/awesome-uikit"},{"name":"Awesome React Components","path":"https://github.com/brillout/awesome-react-components"}]},{"name":"\u7ec4\u4ef6","path":"/components","icon":"component","children":[{"divider":true,"name":"\u57fa\u672c"},{"name":"Color \u989c\u8272","path":"colors"},{"name":"Reset CSS","path":"reset-css"},{"name":"Icon \u56fe\u6807","path":"icon"},{"name":"Button \u6309\u94ae","path":"button"},{"divider":true,"name":"\u5e03\u5c40"},{"name":"Divider \u5206\u5272\u7ebf","path":"divider"},{"name":"Grid \u6805\u683c","path":"grid"},{"name":"Layout \u5e03\u5c40","path":"layout"},{"name":"Split \u9762\u677f\u5206\u5272","path":"Split"},{"divider":true,"name":"\u8868\u5355"},{"name":"Form \u8868\u5355","path":"form"},{"name":"Radio \u5355\u9009\u6846","path":"radio"},{"name":"Checkbox \u591a\u9009\u6846","path":"checkbox"},{"name":"Cascader \u7ea7\u8054\u9009\u62e9","path":"cascader"},{"name":"Input \u8f93\u5165\u6846","path":"input"},{"name":"FileInput \u4e0a\u4f20\u8f93\u5165\u6846","path":"file-input"},{"name":"PinCode PIN\u7801","path":"pin-code"},{"name":"Rate \u8bc4\u5206","path":"rate"},{"name":"Switch \u5f00\u5173","path":"switch"},{"name":"Select \u9009\u62e9\u5668","path":"select"},{"name":"SearchSelect \u641c\u7d22\u9009\u62e9\u5668","path":"search-select"},{"name":"SearchTree \u641c\u7d22\u6811\u5f62\u63a7\u4ef6","path":"search-tree"},{"name":"Slider \u6ed1\u5757\u8f93\u5165\u6761","path":"slider"},{"name":"TreeChecked \u6811\u5f62\u9009\u62e9\u63a7\u4ef6","path":"tree-checked"},{"name":"Transfer \u7a7f\u68ad\u6846","path":"transfer"},{"name":"Textarea \u591a\u884c\u6587\u672c\u8f93\u5165\u6846","path":"textarea"},{"name":"CSVReader \u6587\u4ef6 CSV \u8f93\u5165","path":"https://uiwjs.github.io/react-csv-reader/"},{"name":"Color \u989c\u8272\u9009\u62e9\u5668","path":"https://uiwjs.github.io/react-color/"},{"divider":true,"name":"\u65f6\u95f4\u65e5\u5386"},{"name":"Calendar \u65e5\u5386","path":"calendar"},{"name":"DatePicker \u65e5\u671f\u9009\u62e9\u5668","path":"date-picker"},{"name":"DateInput \u65e5\u671f\u8f93\u5165\u6846","path":"date-input"},{"name":"TimePicker \u65f6\u95f4\u8f93\u5165\u6846","path":"time-picker"},{"name":"MonthPicker \u6708\u4efd\u9009\u62e9\u5668","path":"month-picker"},{"name":"formatter \u65f6\u95f4\u683c\u5f0f\u5316","path":"formatter"},{"divider":true,"name":"\u6570\u636e\u663e\u793a"},{"name":"Avatar \u5934\u50cf","path":"avatar"},{"name":"Badge \u6807\u8bb0","path":"badge"},{"name":"Card \u5361\u7247","path":"card"},{"name":"Carousel \u8d70\u9a6c\u706f","path":"carousel"},{"name":"Collapse \u6298\u53e0\u9762\u677f","path":"collapse"},{"name":"Descriptions \u63cf\u8ff0\u5217\u8868","path":"descriptions"},{"name":"Tag \u6807\u7b7e","path":"tag"},{"name":"Tree \u6811\u5f62\u63a7\u4ef6","path":"tree"},{"name":"Table \u8868\u683c","path":"table"},{"name":"Progress \u8fdb\u5ea6\u6761","path":"progress"},{"name":"List \u5217\u8868","path":"list"},{"name":"AutoLink \u6587\u672c\u8d85\u94fe\u63a5","path":"auto-link"},{"name":"Empty \u7a7a\u72b6\u6001","path":"empty"},{"name":"JSONView JSON \u9884\u89c8","path":"https://uiwjs.github.io/react-heat-map"},{"name":"HeatMap \u65e5\u5386\u70ed\u56fe","path":"https://uiwjs.github.io/react-heat-map"},{"name":"Watermark \u6c34\u5370","path":"https://uiwjs.github.io/react-watermark"},{"name":"Markdown Preview","path":"https://uiwjs.github.io/react-markdown-preview/"},{"name":"Keywords","path":"https://uiwjs.github.io/react-keywords"},{"name":"Only When","path":"https://uiwjs.github.io/react-only-when"},{"divider":true,"name":"\u5bfc\u822a"},{"name":"Affix \u56fe\u9489","path":"affix"},{"name":"Breadcrumb \u9762\u5305\u5c51","path":"breadcrumb"},{"name":"Dropdown \u4e0b\u62c9\u83dc\u5355","path":"dropdown"},{"name":"Menu \u83dc\u5355","path":"menu"},{"name":"Pagination \u5206\u9875","path":"pagination"},{"name":"Steps \u6b65\u9aa4\u6761","path":"steps"},{"name":"Tabs \u6807\u7b7e\u9875","path":"tabs"},{"name":"Tabs Draggable","path":"https://uiwjs.github.io/react-tabs-draggable"},{"divider":true,"name":"\u53cd\u9988"},{"name":"Overlay \u57fa\u7840\u5f39\u51fa\u5c42","path":"overlay"},{"name":"OverlayTrigger \u57fa\u7840\u5f39\u51fa\u89e6\u53d1","path":"overlay-trigger"},{"name":"Alert \u786e\u8ba4\u5bf9\u8bdd\u6846","path":"alert"},{"name":"Drawer \u62bd\u5c49","path":"drawer"},{"name":"Modal \u6a21\u6001\u5bf9\u8bdd\u6846","path":"modal"},{"name":"Message \u8b66\u544a\u63d0\u793a","path":"message"},{"name":"Loader \u52a0\u8f7d\u5668","path":"loader"},{"name":"Notify \u6d88\u606f\u901a\u77e5","path":"notify"},{"name":"Popover \u6c14\u6ce1\u5361\u7247","path":"popover"},{"name":"Tooltip \u6587\u5b57\u63d0\u793a","path":"tooltip"},{"divider":true,"name":"\u5730\u56fe"},{"name":"AMap \u9ad8\u5fb7\u5730\u56fe","path":"https://uiwjs.github.io/react-amap"},{"name":"BaiduMap \u767e\u5ea6\u5730\u56fe","path":"https://uiwjs.github.io/react-baidu-map"},{"divider":true,"name":"\u7f16\u8f91\u5668"},{"name":"Textarea CodeEditor","path":"https://uiwjs.github.io/react-textarea-code-editor/"},{"name":"MDEditor \u7f16\u8f91\u5668","path":"https://uiwjs.github.io/react-md-editor/"},{"name":"Markdown Editor \u7f16\u8f91\u5668","path":"https://uiwjs.github.io/react-markdown-editor/"},{"name":"CodePreview JS\u7f16\u8f91\u9884\u89c8","path":"https://uiwjs.github.io/react-code-preview/"},{"name":"Codemirror \u4ee3\u7801\u7f16\u8f91\u5668","path":"https://uiwjs.github.io/react-codemirror/"},{"name":"MonacoEditor \u4ee3\u7801\u7f16\u8f91\u5668","path":"https://jaywcjlove.github.io/react-monacoeditor/"},{"name":"Code Preview Layout","path":"https://uiwjs.github.io/react-code-preview-layout"},{"name":"BackTop \u8fd4\u56de\u9876\u90e8","path":"back-top"},{"name":"BackToTop \u8fd4\u56de\u9876\u90e8","path":"https://uiwjs.github.io/react-back-to-top"},{"divider":true,"name":"\u5176\u5b83"},{"name":"Portal \u5165\u53e3","path":"portal"},{"name":"CopyToClipboard \u590d\u5236","path":"copy-to-clipboard"},{"name":"Clock","path":"https://uiwjs.github.io/react-clock"},{"name":"Codepen","path":"https://uiwjs.github.io/react-codepen/"},{"name":"Domain Verify","path":"https://uiwjs.github.io/react-domain-verify"},{"name":"Github Corners","path":"https://uiwjs.github.io/react-github-corners/"},{"name":"Mac Keyboard","path":"https://uiwjs.github.io/react-mac-keyboard/"},{"name":"Only When","path":"https://uiwjs.github.io/react-only-when/"},{"name":"React Login Page \u767b\u5f55","path":"https://uiwjs.github.io/react-login-page"},{"name":"Prismjs","path":"https://uiwjs.github.io/react-prismjs"},{"name":"Run Web","path":"https://uiwjs.github.io/react-run-web/"},{"name":"Shields","path":"https://uiwjs.github.io/react-shields"}]},{"name":"\u6269\u5c55","path":"/extensions","icon":"plugin"},{"name":"\u63d0\u4ea4\u95ee\u9898","icon":"issue","path":"https://github.com/uiwjs/uiw/issues/new/choose"},{"name":"Github","icon":"github","path":"https://github.com/uiwjs/uiw"},{"name":"Gitee","icon":"gitee","path":"https://gitee.com/uiw/uiw"}]')}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.m=e,(()=>{var e=[];n.O=(t,r,a,l)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){r=e[d][0],a=e[d][1],l=e[d][2];for(var s=!0,o=0;o<r.length;o++)(!1&l||i>=l)&&Object.keys(n.O).every((e=>n.O[e](r[o])))?r.splice(o--,1):(s=!1,l<i&&(i=l));if(s){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,a,l]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var l=Object.create(null);n.r(l);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,n.d(l,i),l}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+(6982===e?"vendors-standalone":e)+"."+{188:"afd10cb6",250:"5240af6e",269:"aaaa63ba",286:"8c6a6f4e",295:"44d07a81",383:"9025a1ac",494:"93198d59",517:"904aec4d",632:"f348f4e3",677:"36671bd5",706:"d0e44196",968:"523cf9c9",993:"5e30e3ca",1106:"3fc81e41",1350:"7fe517c9",1599:"72492037",1992:"7934c518",2027:"ade2c74b",2452:"f7a348ec",2474:"68939252",2668:"89dffc36",2678:"e259eedf",2923:"9234f5ee",2976:"07eed6db",2993:"f8031a22",3026:"6556cc70",3028:"f383acf1",3152:"9d4b4798",3174:"d48bb4d7",3262:"0f314638",3451:"69cb3cfc",3492:"7209aa3b",3533:"bfc799de",3588:"f9523915",3864:"664b3141",3966:"b9326bd8",4154:"63ad2ae7",4687:"0ea06870",4833:"7dabdfa9",4876:"169a9569",4907:"e439abb5",5490:"4c40c138",5704:"25db6066",5740:"65ab41b5",5817:"115202c0",5877:"48468af6",5922:"43770765",6037:"52156fb1",6074:"8a8615e1",6084:"eaa4cedd",6349:"1c773f35",6434:"976dd5a3",6449:"6938ace8",6521:"f8eef7c5",6610:"93f6f06a",6819:"1b6d20e1",6965:"2a74d0c6",6968:"583e8ae6",6982:"b258aabc",7025:"37492535",7329:"a2cdd956",7427:"ae682d1d",7465:"cc0d9103",7604:"dd361233",7729:"d2a41229",7779:"e06c2b22",8386:"f25a64a8",8577:"4c7bb468",8586:"82110d71",8818:"758cb720",9406:"7aabdc6d",9677:"64986025",9721:"d36b002d",9846:"2d479f6c",9899:"e23adb8d",9932:"7dd64d37"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{3174:"3b3d8416",7025:"bf58e035",7604:"9365aa58",9677:"b9557aaf"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="website:";n.l=(r,a,l,i)=>{if(e[r])e[r].push(a);else{var s,o;if(void 0!==l)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+l){s=u;break}}s||(o=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+l),s.src=r),e[r]=[a];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),o&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var a=n.miniCssF(e),l=n.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var a=(i=n[r]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(a===e||a===t))return i}var l=document.getElementsByTagName("style");for(r=0;r<l.length;r++){var i;if((a=(i=l[r]).getAttribute("data-href"))===e||a===t)return i}})(a,l))return t();((e,t,n,r,a)=>{var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onerror=l.onload=n=>{if(l.onerror=l.onload=null,"load"===n.type)r();else{var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,o=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=i,o.request=s,l.parentNode&&l.parentNode.removeChild(l),a(o)}},l.href=t,n?n.parentNode.insertBefore(l,n.nextSibling):document.head.appendChild(l)})(e,l,null,t,r)})),t={179:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{3174:1,7025:1,7604:1,9677:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={179:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else if(9677!=t){var l=new Promise(((n,r)=>a=e[t]=[n,r]));r.push(a[2]=l);var i=n.p+n.u(t),s=new Error;n.l(i,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var l=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+l+": "+i+")",s.name="ChunkLoadError",s.type=l,s.request=i,a[1](s)}}),"chunk-"+t,t)}else e[t]=0},n.O.j=t=>0===e[t];var t=(t,r)=>{var a,l,i=r[0],s=r[1],o=r[2],c=0;if(i.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(o)var d=o(n)}for(t&&t(r);c<i.length;c++)l=i[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},r=self.webpackChunkwebsite=self.webpackChunkwebsite||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var r=n.O(void 0,[1908,9896,6450],(()=>n(5578)));r=n.O(r)})();
|
|
2
|
+
//# sourceMappingURL=main.c365943d.js.map
|