squarex-ui-component-lib 1.0.1 → 1.0.3
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/README.md +20 -4
- package/dist/charts/components/icons/Icon.d.ts.map +1 -1
- package/dist/components/icons/Icon.d.ts.map +1 -1
- package/dist/index.esm.js +1 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -32
- package/dist/index.js.map +1 -1
- package/dist/ui/components/icons/Icon.d.ts.map +1 -1
- package/dist/ui/index.esm.js +1 -32
- package/dist/ui/index.esm.js.map +1 -1
- package/package.json +6 -2
package/dist/index.js
CHANGED
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("d3"),o=require("react-dom"),r=require("react-dom/client");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var l=i(t),s=a(t),c=i(n);const d={width:800,height:400,margin:{top:20,right:30,bottom:60,left:80},colors:{gradient:{start:"#8B5CF6",end:"#6B46C1"}},showGrid:!0,animate:!0,responsive:!0,showTooltip:!0,cornerRadius:5,barPadding:.6,tickCount:5,formatValue:e=>0===e?"0":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}k`:e.toString()},u={desktop:{width:900,height:650,margin:{top:120,right:180,bottom:60,left:180},fontSize:{title:26,subtitle:14,label:14,value:16},nodeHeight:45,flowScaleFactor:.35},tablet:{width:700,height:550,margin:{top:100,right:140,bottom:50,left:140},fontSize:{title:22,subtitle:14,label:14,value:18},nodeHeight:40,flowScaleFactor:.3},mobile:{width:350,height:400,margin:{top:80,right:80,bottom:40,left:80},fontSize:{title:16,subtitle:12,label:11,value:14},nodeHeight:30,flowScaleFactor:.2}},p={mobile:640,tablet:1024,desktop:1024},m=75,f=16,h=1500,g=20,v=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,b="#7E22CE",y="#7C3AED",x="#DDD6FE",w="#F3F4F6",C="#B4AAFF",$="#8B5FBF",S="#A78BFA",E="#642CFD",k="#131313",N="#5B5B5B",_="#6B7280",I="#059669",P="#7090B0",R=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,O={width:1100,height:650,viewBox:"-30 0 1100 700",scale:1,fontSize:14,cardWidth:259,cardHeight:115,nodeWidth:5,main:{source:{x:430,y:320,width:300},target:{x:833,y:236,width:10,spacing:28}},source:{source:{x:75,y:50,width:40,spacing:50},target:{x:430,y:185,width:28,spacing:31}},cards:{cardX:830,cardY1:30,cardY2:160,padding:{top:24,right:20,bottom:24,left:20},gap:16,fontSize:{title:16,value:24,subtitle:14}},specialFlows:{flow5:{target:{x:833,y:384,width:5}}}},D={width:800,height:600,viewBox:"-25 0 800 600",scale:.7,fontSize:12,cardWidth:220,cardHeight:90,nodeWidth:3.5,main:{source:{x:215,y:224,width:210},target:{x:583,y:165,width:7,spacing:20}},source:{source:{x:52,y:35,width:28,spacing:35},target:{x:215,y:129,width:20,spacing:22}},cards:{cardX:600,cardY1:25,cardY2:140,padding:{top:18,right:15,bottom:18,left:15},gap:12,fontSize:{title:14,value:20,subtitle:12}},specialFlows:{flow5:{target:{x:600,y:280,width:4}}}},M={width:400,height:500,viewBox:"-20 0 400 500",scale:.4,fontSize:10,cardWidth:200,cardHeight:80,nodeWidth:2,main:{source:{x:120,y:160,width:150},target:{x:300,y:118,width:5,spacing:14}},source:{source:{x:30,y:25,width:20,spacing:25},target:{x:120,y:92,width:14,spacing:15}},cards:{cardX:250,cardY1:20,cardY2:120,padding:{top:12,right:10,bottom:12,left:10},gap:8,fontSize:{title:12,value:16,subtitle:10}},specialFlows:{flow5:{target:{x:280,y:200,width:3}}}},B={borderRadius:12,shadowOpacity:.12,defaultOpacity:.8,hoverOpacity:1,strokeWidth:.5,hoverStrokeWidth:2,transitionDuration:300,tooltipOffset:10};(e=>{const t=e.filter(e=>"main"===e.type),n=e.filter(e=>"source"===e.type),o=[];t.forEach((e,n)=>{const r=(t.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});r&&o.push({...e,source:r.source,target:r.target})}),n.forEach((e,t)=>{const r=(n.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});r&&o.push({...e,source:r.source,target:r.target})})})([{id:"flow1",type:"main",color:b,gradientColors:{start:C,end:b}},{id:"flow2",type:"main",color:y,gradientColors:{start:C,end:y}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:C,end:b}},{id:"flow4",type:"main",color:x,gradientColors:{start:C,end:x}},{id:"flow5",type:"main",color:w,gradientColors:{start:C,end:w}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:$,gradientColors:{start:C,end:$}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:y,gradientColors:{start:C,end:y}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:S,gradientColors:{start:C,end:S}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:x,gradientColors:{start:C,end:x}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:w,gradientColors:{start:C,end:w}}]);function T(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=T(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function z(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=T(e))&&(o&&(o+=" "),o+=t);return o}var A={button:"Button-module_button__hvJpb",label:"Button-module_label__zSB3D",icon:"Button-module_icon__pfoz5",loaderIcon:"Button-module_loaderIcon__4WG9k",spin:"Button-module_spin__6Uwop",size_medium:"Button-module_size_medium__TGkrI",size_small:"Button-module_size_small__-vQKB",style_primary:"Button-module_style_primary__GfCKd",state_default:"Button-module_state_default__KGxJA",state_hover:"Button-module_state_hover__NNaw2",state_focus:"Button-module_state_focus__xudCD",state_disabled:"Button-module_state_disabled__6SakQ",state_loading:"Button-module_state_loading__ZhHO9",style_secondary:"Button-module_style_secondary__9kVUP",style_neutral:"Button-module_style_neutral__ZoLsO",style_subtle:"Button-module_style_subtle__oOeBv"},L={icon:"Icon-module_icon__hJi-x",variant_default:"Icon-module_variant_default__4khrG",variant_hover:"Icon-module_variant_hover__Z-Zt4",variant_active:"Icon-module_variant_active__B7W-7",variant_disabled:"Icon-module_variant_disabled__u8BHu",variant_white:"Icon-module_variant_white__LRbrT"};const j=[{name:"app-window",label:"App Window",filePath:"icon/AppWindow.svg",variantCount:1},{name:"arrow-arc-left",label:"Arrow Arc Left",filePath:"icon/ArrowArcLeft.svg",variantCount:1},{name:"arrow-arc-right",label:"Arrow Arc Right",filePath:"icon/ArrowArcRight.svg",variantCount:1},{name:"arrow-bend-double-up-left",label:"Arrow Bend Double Up Left",filePath:"icon/ArrowBendDoubleUpLeft.svg",variantCount:1},{name:"arrow-bend-double-up-right",label:"Arrow Bend Double Up Right",filePath:"icon/ArrowBendDoubleUpRight.svg",variantCount:1},{name:"arrow-bend-down-left",label:"Arrow Bend Down Left",filePath:"icon/ArrowBendDownLeft.svg",variantCount:1},{name:"arrow-bend-down-right",label:"Arrow Bend Down Right",filePath:"icon/ArrowBendDownRight.svg",variantCount:1},{name:"arrow-bend-left-down",label:"Arrow Bend Left Down",filePath:"icon/ArrowBendLeftDown.svg",variantCount:1},{name:"arrow-bend-right-down",label:"Arrow Bend Right Down",filePath:"icon/ArrowBendRightDown.svg",variantCount:1},{name:"arrow-bend-right-up",label:"Arrow Bend Right Up",filePath:"icon/ArrowBendRightUp.svg",variantCount:1},{name:"arrow-bend-up-left",label:"Arrow Bend Up Left",filePath:"icon/ArrowBendUpLeft.svg",variantCount:1},{name:"arrow-bend-up-right",label:"Arrow Bend Up Right",filePath:"icon/ArrowBendUpRight.svg",variantCount:1},{name:"arrow-circle-down",label:"Arrow Circle Down",filePath:"icon/ArrowCircleDown.svg",variantCount:1},{name:"arrow-circle-down-left",label:"Arrow Circle Down Left",filePath:"icon/ArrowCircleDownLeft.svg",variantCount:1},{name:"arrow-circle-down-right",label:"Arrow Circle Down Right",filePath:"icon/ArrowCircleDownRight.svg",variantCount:1},{name:"arrow-circle-left",label:"Arrow Circle Left",filePath:"icon/ArrowCircleLeft.svg",variantCount:1},{name:"arrow-circle-right",label:"Arrow Circle Right",filePath:"icon/ArrowCircleRight.svg",variantCount:1},{name:"arrow-circle-up",label:"Arrow Circle Up",filePath:"icon/ArrowCircleUp.svg",variantCount:1},{name:"arrow-circle-up-left",label:"Arrow Circle Up Left",filePath:"icon/ArrowCircleUpLeft.svg",variantCount:1},{name:"arrow-circle-up-right",label:"Arrow Circle Up Right",filePath:"icon/ArrowCircleUpRight.svg",variantCount:1},{name:"arrow-clockwise",label:"Arrow Clockwise",filePath:"icon/ArrowClockwise.svg",variantCount:1},{name:"arrow-counter-clockwise",label:"Arrow Counter Clockwise",filePath:"icon/ArrowCounterClockwise.svg",variantCount:1},{name:"arrow-down",label:"Arrow Down",filePath:"icon/ArrowDown.svg",variantCount:1},{name:"arrow-down-left",label:"Arrow Down Left",filePath:"icon/ArrowDownLeft.svg",variantCount:1},{name:"arrow-down-right",label:"Arrow Down Right",filePath:"icon/ArrowDownRight.svg",variantCount:1},{name:"arrow-elbow-down-left",label:"Arrow Elbow Down Left",filePath:"icon/ArrowElbowDownLeft.svg",variantCount:1},{name:"arrow-elbow-down-right",label:"Arrow Elbow Down Right",filePath:"icon/ArrowElbowDownRight.svg",variantCount:1},{name:"arrow-elbow-left",label:"Arrow Elbow Left",filePath:"icon/ArrowElbowLeft.svg",variantCount:1},{name:"arrow-elbow-left-down",label:"Arrow Elbow Left Down",filePath:"icon/ArrowElbowLeftDown.svg",variantCount:1},{name:"arrow-elbow-left-up",label:"Arrow Elbow Left Up",filePath:"icon/ArrowElbowLeftUp.svg",variantCount:1},{name:"arrow-elbow-right",label:"Arrow Elbow Right",filePath:"icon/ArrowElbowRight.svg",variantCount:1},{name:"arrow-elbow-right-down",label:"Arrow Elbow Right Down",filePath:"icon/ArrowElbowRightDown.svg",variantCount:1},{name:"arrow-elbow-right-up",label:"Arrow Elbow Right Up",filePath:"icon/ArrowElbowRightUp.svg",variantCount:1},{name:"arrow-elbow-up-left",label:"Arrow Elbow Up Left",filePath:"icon/ArrowElbowUpLeft.svg",variantCount:1},{name:"arrow-elbow-up-right",label:"Arrow Elbow Up Right",filePath:"icon/ArrowElbowUpRight.svg",variantCount:1},{name:"arrow-left",label:"Arrow Left",filePath:"icon/ArrowLeft.svg",variantCount:1},{name:"arrow-line-down",label:"Arrow Line Down",filePath:"icon/ArrowLineDown.svg",variantCount:1},{name:"arrow-line-down-left",label:"Arrow Line Down Left",filePath:"icon/ArrowLineDownLeft.svg",variantCount:1},{name:"arrow-line-down-right",label:"Arrow Line Down Right",filePath:"icon/ArrowLineDownRight.svg",variantCount:1},{name:"arrow-line-left",label:"Arrow Line Left",filePath:"icon/ArrowLineLeft.svg",variantCount:1},{name:"arrow-line-right",label:"Arrow Line Right",filePath:"icon/ArrowLineRight.svg",variantCount:1},{name:"arrow-line-up",label:"Arrow Line Up",filePath:"icon/ArrowLineUp.svg",variantCount:1},{name:"arrow-line-up-left",label:"Arrow Line Up Left",filePath:"icon/ArrowLineUpLeft.svg",variantCount:1},{name:"arrow-line-up-right",label:"Arrow Line Up Right",filePath:"icon/ArrowLineUpRight.svg",variantCount:1},{name:"arrow-right",label:"Arrow Right",filePath:"icon/ArrowRight.svg",variantCount:1},{name:"arrow-square-down",label:"Arrow Square Down",filePath:"icon/ArrowSquareDown.svg",variantCount:1},{name:"arrow-square-down-left",label:"Arrow Square Down Left",filePath:"icon/ArrowSquareDownLeft.svg",variantCount:1},{name:"arrow-square-down-right",label:"Arrow Square Down Right",filePath:"icon/ArrowSquareDownRight.svg",variantCount:1},{name:"arrow-square-left",label:"Arrow Square Left",filePath:"icon/ArrowSquareLeft.svg",variantCount:1},{name:"arrow-square-right",label:"Arrow Square Right",filePath:"icon/ArrowSquareRight.svg",variantCount:1},{name:"arrow-square-up",label:"Arrow Square Up",filePath:"icon/ArrowSquareUp.svg",variantCount:1},{name:"arrow-square-up-left",label:"Arrow Square Up Left",filePath:"icon/ArrowSquareUpLeft.svg",variantCount:1},{name:"arrow-square-up-right",label:"Arrow Square Up Right",filePath:"icon/ArrowSquareUpRight.svg",variantCount:1},{name:"arrow-up",label:"Arrow Up",filePath:"icon/ArrowUp.svg",variantCount:1},{name:"arrow-up-left",label:"Arrow Up Left",filePath:"icon/ArrowUpLeft.svg",variantCount:1},{name:"arrow-up-right",label:"Arrow Up Right",filePath:"icon/ArrowUpRight.svg",variantCount:1},{name:"arrows-clockwise",label:"Arrows Clockwise",filePath:"icon/ArrowsClockwise.svg",variantCount:1},{name:"arrows-counter-clockwise",label:"Arrows Counter Clockwise",filePath:"icon/ArrowsCounterClockwise.svg",variantCount:1},{name:"arrows-down-up",label:"Arrows Down Up",filePath:"icon/ArrowsDownUp.svg",variantCount:1},{name:"arrows-horizontal",label:"Arrows Horizontal",filePath:"icon/ArrowsHorizontal.svg",variantCount:1},{name:"arrows-in",label:"Arrows In",filePath:"icon/ArrowsIn.svg",variantCount:1},{name:"arrows-in-cardinal",label:"Arrows In Cardinal",filePath:"icon/ArrowsInCardinal.svg",variantCount:1},{name:"arrows-in-line-horizontal",label:"Arrows In Line Horizontal",filePath:"icon/ArrowsInLineHorizontal.svg",variantCount:1},{name:"arrows-in-line-vertical",label:"Arrows In Line Vertical",filePath:"icon/ArrowsInLineVertical.svg",variantCount:1},{name:"arrows-in-simple",label:"Arrows In Simple",filePath:"icon/ArrowsInSimple.svg",variantCount:1},{name:"arrows-left-right",label:"Arrows Left Right",filePath:"icon/ArrowsLeftRight.svg",variantCount:1},{name:"arrows-out",label:"Arrows Out",filePath:"icon/ArrowsOut.svg",variantCount:1},{name:"arrows-out-cardinal",label:"Arrows Out Cardinal",filePath:"icon/ArrowsOutCardinal.svg",variantCount:1},{name:"arrows-out-line-horizontal",label:"Arrows Out Line Horizontal",filePath:"icon/ArrowsOutLineHorizontal.svg",variantCount:1},{name:"arrows-out-line-vertical",label:"Arrows Out Line Vertical",filePath:"icon/ArrowsOutLineVertical.svg",variantCount:1},{name:"arrows-out-simple",label:"Arrows Out Simple",filePath:"icon/ArrowsOutSimple.svg",variantCount:1},{name:"arrows-vertical",label:"Arrows Vertical",filePath:"icon/ArrowsVertical.svg",variantCount:1},{name:"article",label:"Article",filePath:"icon/Article.svg",variantCount:1},{name:"bell",label:"Bell",filePath:"icon/Bell.svg",variantCount:1},{name:"bell-ringing",label:"Bell Ringing",filePath:"icon/BellRinging.svg",variantCount:1},{name:"bell-simple",label:"Bell Simple",filePath:"icon/BellSimple.svg",variantCount:1},{name:"bell-simple-ringing",label:"Bell Simple Ringing",filePath:"icon/BellSimpleRinging.svg",variantCount:1},{name:"bell-simple-slash",label:"Bell Simple Slash",filePath:"icon/BellSimpleSlash.svg",variantCount:1},{name:"binoculars",label:"Binoculars",filePath:"icon/Binoculars.svg",variantCount:1},{name:"book",label:"Book",filePath:"icon/Book.svg",variantCount:1},{name:"book-open",label:"Book Open",filePath:"icon/BookOpen.svg",variantCount:1},{name:"book-open-text",label:"Book Open Text",filePath:"icon/BookOpenText.svg",variantCount:1},{name:"box-arrow-down",label:"Box Arrow Down",filePath:"icon/BoxArrowDown.svg",variantCount:1},{name:"box-arrow-up",label:"Box Arrow Up",filePath:"icon/BoxArrowUp.svg",variantCount:1},{name:"brackets-angle",label:"Brackets Angle",filePath:"icon/BracketsAngle.svg",variantCount:1},{name:"brackets-curly",label:"Brackets Curly",filePath:"icon/BracketsCurly.svg",variantCount:1},{name:"brackets-round",label:"Brackets Round",filePath:"icon/BracketsRound.svg",variantCount:1},{name:"brackets-square",label:"Brackets Square",filePath:"icon/BracketsSquare.svg",variantCount:1},{name:"browser",label:"Browser",filePath:"icon/Browser.svg",variantCount:1},{name:"browsers",label:"Browsers",filePath:"icon/Browsers.svg",variantCount:1},{name:"bug",label:"Bug",filePath:"icon/Bug.svg",variantCount:1},{name:"calendar-blank",label:"Calendar Blank",filePath:"icon/CalendarBlank.svg",variantCount:1},{name:"calendar-dots",label:"Calendar Dots",filePath:"icon/CalendarDots.svg",variantCount:1},{name:"cards",label:"Cards",filePath:"icon/Cards.svg",variantCount:1},{name:"cards-three",label:"Cards Three",filePath:"icon/CardsThree.svg",variantCount:1},{name:"caret-circle-double-down",label:"Caret Circle Double Down",filePath:"icon/CaretCircleDoubleDown.svg",variantCount:1},{name:"caret-circle-double-left",label:"Caret Circle Double Left",filePath:"icon/CaretCircleDoubleLeft.svg",variantCount:1},{name:"caret-circle-double-right",label:"Caret Circle Double Right",filePath:"icon/CaretCircleDoubleRight.svg",variantCount:1},{name:"caret-circle-double-up",label:"Caret Circle Double Up",filePath:"icon/CaretCircleDoubleUp.svg",variantCount:1},{name:"caret-circle-down",label:"Caret Circle Down",filePath:"icon/CaretCircleDown.svg",variantCount:1},{name:"caret-circle-left",label:"Caret Circle Left",filePath:"icon/CaretCircleLeft.svg",variantCount:1},{name:"caret-circle-right",label:"Caret Circle Right",filePath:"icon/CaretCircleRight.svg",variantCount:1},{name:"caret-circle-up",label:"Caret Circle Up",filePath:"icon/CaretCircleUp.svg",variantCount:1},{name:"caret-circle-up-down",label:"Caret Circle Up Down",filePath:"icon/CaretCircleUpDown.svg",variantCount:1},{name:"caret-down",label:"Caret Down",filePath:"icon/CaretDown.svg",variantCount:1},{name:"caret-left",label:"Caret Left",filePath:"icon/CaretLeft.svg",variantCount:1},{name:"caret-line-down",label:"Caret Line Down",filePath:"icon/CaretLineDown.svg",variantCount:1},{name:"caret-line-left",label:"Caret Line Left",filePath:"icon/CaretLineLeft.svg",variantCount:1},{name:"caret-line-right",label:"Caret Line Right",filePath:"icon/CaretLineRight.svg",variantCount:1},{name:"caret-line-up",label:"Caret Line Up",filePath:"icon/CaretLineUp.svg",variantCount:1},{name:"caret-right",label:"Caret Right",filePath:"icon/CaretRight.svg",variantCount:1},{name:"caret-up",label:"Caret Up",filePath:"icon/CaretUp.svg",variantCount:1},{name:"caret-up-down",label:"Caret Up Down",filePath:"icon/CaretUpDown.svg",variantCount:1},{name:"check",label:"Check",filePath:"icon/Check.svg",variantCount:1},{name:"check-circle",label:"Check Circle",filePath:"icon/CheckCircle.svg",variantCount:1},{name:"check-square",label:"Check Square",filePath:"icon/CheckSquare.svg",variantCount:1},{name:"check-square-offset",label:"Check Square Offset",filePath:"icon/CheckSquareOffset.svg",variantCount:1},{name:"checks",label:"Checks",filePath:"icon/Checks.svg",variantCount:1},{name:"circles-four",label:"Circles Four",filePath:"icon/CirclesFour.svg",variantCount:1},{name:"clipboard",label:"Clipboard",filePath:"icon/Clipboard.svg",variantCount:1},{name:"clipboard-text",label:"Clipboard Text",filePath:"icon/ClipboardText.svg",variantCount:1},{name:"cloud-arrow-down",label:"Cloud Arrow Down",filePath:"icon/CloudArrowDown.svg",variantCount:1},{name:"cloud-arrow-up",label:"Cloud Arrow Up",filePath:"icon/CloudArrowUp.svg",variantCount:1},{name:"cloud-check",label:"Cloud Check",filePath:"icon/CloudCheck.svg",variantCount:1},{name:"cloud-slash",label:"Cloud Slash",filePath:"icon/CloudSlash.svg",variantCount:1},{name:"cloud-warning",label:"Cloud Warning",filePath:"icon/CloudWarning.svg",variantCount:1},{name:"cloud-x",label:"Cloud X",filePath:"icon/CloudX.svg",variantCount:1},{name:"code",label:"Code",filePath:"icon/Code.svg",variantCount:1},{name:"code-block",label:"Code Block",filePath:"icon/CodeBlock.svg",variantCount:1},{name:"code-simple",label:"Code Simple",filePath:"icon/CodeSimple.svg",variantCount:1},{name:"columns",label:"Columns",filePath:"icon/Columns.svg",variantCount:1},{name:"columns-plus-left",label:"Columns Plus Left",filePath:"icon/ColumnsPlusLeft.svg",variantCount:1},{name:"columns-plus-right",label:"Columns Plus Right",filePath:"icon/ColumnsPlusRight.svg",variantCount:1},{name:"copy",label:"Copy",filePath:"icon/Copy.svg",variantCount:1},{name:"copy-simple",label:"Copy Simple",filePath:"icon/CopySimple.svg",variantCount:1},{name:"cpu",label:"Cpu",filePath:"icon/Cpu.svg",variantCount:1},{name:"credit-card",label:"Credit Card",filePath:"icon/CreditCard.svg",variantCount:1},{name:"cube",label:"Cube",filePath:"icon/Cube.svg",variantCount:1},{name:"cube-transparent",label:"Cube Transparent",filePath:"icon/CubeTransparent.svg",variantCount:1},{name:"database",label:"Database",filePath:"icon/Database.svg",variantCount:1},{name:"desktop",label:"Desktop",filePath:"icon/Desktop.svg",variantCount:1},{name:"desktop-tower",label:"Desktop Tower",filePath:"icon/DesktopTower.svg",variantCount:1},{name:"detective",label:"Detective",filePath:"icon/Detective.svg",variantCount:1},{name:"device-mobile-camera",label:"Device Mobile Camera",filePath:"icon/DeviceMobileCamera.svg",variantCount:1},{name:"device-tablet-camera",label:"Device Tablet Camera",filePath:"icon/DeviceTabletCamera.svg",variantCount:1},{name:"devices",label:"Devices",filePath:"icon/Devices.svg",variantCount:1},{name:"diamonds-four",label:"Diamonds Four",filePath:"icon/DiamondsFour.svg",variantCount:1},{name:"dot",label:"Dot",filePath:"icon/Dot.svg",variantCount:1},{name:"dot-outline",label:"Dot Outline",filePath:"icon/DotOutline.svg",variantCount:1},{name:"dots-nine",label:"Dots Nine",filePath:"icon/DotsNine.svg",variantCount:1},{name:"dots-six",label:"Dots Six",filePath:"icon/DotsSix.svg",variantCount:1},{name:"dots-six-vertical",label:"Dots Six Vertical",filePath:"icon/DotsSixVertical.svg",variantCount:1},{name:"dots-three",label:"Dots Three",filePath:"icon/DotsThree.svg",variantCount:1},{name:"dots-three-circle",label:"Dots Three Circle",filePath:"icon/DotsThreeCircle.svg",variantCount:1},{name:"dots-three-circle-vertical",label:"Dots Three Circle Vertical",filePath:"icon/DotsThreeCircleVertical.svg",variantCount:1},{name:"dots-three-outline",label:"Dots Three Outline",filePath:"icon/DotsThreeOutline.svg",variantCount:1},{name:"dots-three-outline-vertical",label:"Dots Three Outline Vertical",filePath:"icon/DotsThreeOutlineVertical.svg",variantCount:1},{name:"dots-three-vertical",label:"Dots Three Vertical",filePath:"icon/DotsThreeVertical.svg",variantCount:1},{name:"download-simple",label:"Download Simple",filePath:"icon/DownloadSimple.svg",variantCount:1},{name:"envelope",label:"Envelope",filePath:"icon/Envelope.svg",variantCount:1},{name:"envelope-simple",label:"Envelope Simple",filePath:"icon/EnvelopeSimple.svg",variantCount:1},{name:"exclamation-mark",label:"Exclamation Mark",filePath:"icon/ExclamationMark.svg",variantCount:1},{name:"export",label:"Export",filePath:"icon/Export.svg",variantCount:1},{name:"eye",label:"Eye",filePath:"icon/Eye.svg",variantCount:1},{name:"eye-closed",label:"Eye Closed",filePath:"icon/EyeClosed.svg",variantCount:1},{name:"eye-slash",label:"Eye Slash",filePath:"icon/EyeSlash.svg",variantCount:1},{name:"faders",label:"Faders",filePath:"icon/Faders.svg",variantCount:1},{name:"faders-horizontal",label:"Faders Horizontal",filePath:"icon/FadersHorizontal.svg",variantCount:1},{name:"file",label:"File",filePath:"icon/File.svg",variantCount:1},{name:"file-archive",label:"File Archive",filePath:"icon/FileArchive.svg",variantCount:1},{name:"file-arrow-down",label:"File Arrow Down",filePath:"icon/FileArrowDown.svg",variantCount:1},{name:"file-arrow-up",label:"File Arrow Up",filePath:"icon/FileArrowUp.svg",variantCount:1},{name:"file-dashed",label:"File Dashed",filePath:"icon/FileDashed.svg",variantCount:1},{name:"file-text",label:"File Text",filePath:"icon/FileText.svg",variantCount:1},{name:"files",label:"Files",filePath:"icon/Files.svg",variantCount:1},{name:"fingerprint",label:"Fingerprint",filePath:"icon/Fingerprint.svg",variantCount:1},{name:"fingerprint-simple",label:"Fingerprint Simple",filePath:"icon/FingerprintSimple.svg",variantCount:1},{name:"flag",label:"Flag",filePath:"icon/Flag.svg",variantCount:1},{name:"flag-pennant",label:"Flag Pennant",filePath:"icon/FlagPennant.svg",variantCount:1},{name:"floppy-disk",label:"Floppy Disk",filePath:"icon/FloppyDisk.svg",variantCount:1},{name:"folder",label:"Folder",filePath:"icon/Folder.svg",variantCount:1},{name:"folder-dashed",label:"Folder Dashed",filePath:"icon/FolderDashed.svg",variantCount:1},{name:"folder-open",label:"Folder Open",filePath:"icon/FolderOpen.svg",variantCount:1},{name:"folder-simple",label:"Folder Simple",filePath:"icon/FolderSimple.svg",variantCount:1},{name:"folder-simple-dashed",label:"Folder Simple Dashed",filePath:"icon/FolderSimpleDashed.svg",variantCount:1},{name:"folders",label:"Folders",filePath:"icon/Folders.svg",variantCount:1},{name:"funnel",label:"Funnel",filePath:"icon/Funnel.svg",variantCount:1},{name:"funnel-simple",label:"Funnel Simple",filePath:"icon/FunnelSimple.svg",variantCount:1},{name:"gear",label:"Gear",filePath:"icon/Gear.svg",variantCount:1},{name:"gear-six",label:"Gear Six",filePath:"icon/GearSix.svg",variantCount:1},{name:"git-branch",label:"Git Branch",filePath:"icon/GitBranch.svg",variantCount:1},{name:"git-merge",label:"Git Merge",filePath:"icon/GitMerge.svg",variantCount:1},{name:"git-pull-request",label:"Git Pull Request",filePath:"icon/GitPullRequest.svg",variantCount:1},{name:"globe",label:"Globe",filePath:"icon/Globe.svg",variantCount:1},{name:"globe-simple",label:"Globe Simple",filePath:"icon/GlobeSimple.svg",variantCount:1},{name:"green-tick",label:"Green Tick",filePath:"icon/GreenTick.svg",variantCount:1},{name:"grid-four",label:"Grid Four",filePath:"icon/GridFour.svg",variantCount:1},{name:"hammer",label:"Hammer",filePath:"icon/Hammer.svg",variantCount:1},{name:"hand",label:"Hand",filePath:"icon/Hand.svg",variantCount:1},{name:"hand-palm",label:"Hand Palm",filePath:"icon/HandPalm.svg",variantCount:1},{name:"hand-pointing",label:"Hand Pointing",filePath:"icon/HandPointing.svg",variantCount:1},{name:"house",label:"House",filePath:"icon/House.svg",variantCount:1},{name:"identification-badge",label:"Identification Badge",filePath:"icon/IdentificationBadge.svg",variantCount:1},{name:"identification-card",label:"Identification Card",filePath:"icon/IdentificationCard.svg",variantCount:1},{name:"info",label:"Info",filePath:"icon/Info.svg",variantCount:1},{name:"key",label:"Key",filePath:"icon/Key.svg",variantCount:1},{name:"ladder-simple",label:"Ladder Simple",filePath:"icon/LadderSimple.svg",variantCount:1},{name:"layout",label:"Layout",filePath:"icon/Layout.svg",variantCount:1},{name:"lifebuoy",label:"Lifebuoy",filePath:"icon/Lifebuoy.svg",variantCount:1},{name:"lightbulb",label:"Lightbulb",filePath:"icon/Lightbulb.svg",variantCount:1},{name:"lightning",label:"Lightning",filePath:"icon/Lightning.svg",variantCount:1},{name:"link",label:"Link",filePath:"icon/Link.svg",variantCount:1},{name:"link-break",label:"Link Break",filePath:"icon/LinkBreak.svg",variantCount:1},{name:"link-simple",label:"Link Simple",filePath:"icon/LinkSimple.svg",variantCount:1},{name:"link-simple-break",label:"Link Simple Break",filePath:"icon/LinkSimpleBreak.svg",variantCount:1},{name:"link-simple-horizontal",label:"Link Simple Horizontal",filePath:"icon/LinkSimpleHorizontal.svg",variantCount:1},{name:"link-simple-horizontal-break",label:"Link Simple Horizontal Break",filePath:"icon/LinkSimpleHorizontalBreak.svg",variantCount:1},{name:"list",label:"List",filePath:"icon/List.svg",variantCount:1},{name:"list-bullets",label:"List Bullets",filePath:"icon/ListBullets.svg",variantCount:1},{name:"list-checks",label:"List Checks",filePath:"icon/ListChecks.svg",variantCount:1},{name:"list-dashes",label:"List Dashes",filePath:"icon/ListDashes.svg",variantCount:1},{name:"list-heart",label:"List Heart",filePath:"icon/ListHeart.svg",variantCount:1},{name:"list-magnifying-glass",label:"List Magnifying Glass",filePath:"icon/ListMagnifyingGlass.svg",variantCount:1},{name:"list-numbers",label:"List Numbers",filePath:"icon/ListNumbers.svg",variantCount:1},{name:"list-plus",label:"List Plus",filePath:"icon/ListPlus.svg",variantCount:1},{name:"list-star",label:"List Star",filePath:"icon/ListStar.svg",variantCount:1},{name:"lock",label:"Lock",filePath:"icon/Lock.svg",variantCount:1},{name:"lock-key",label:"Lock Key",filePath:"icon/LockKey.svg",variantCount:1},{name:"lock-key-open",label:"Lock Key Open",filePath:"icon/LockKeyOpen.svg",variantCount:1},{name:"lock-open",label:"Lock Open",filePath:"icon/LockOpen.svg",variantCount:1},{name:"lock-simple",label:"Lock Simple",filePath:"icon/LockSimple.svg",variantCount:1},{name:"lock-simple-open",label:"Lock Simple Open",filePath:"icon/LockSimpleOpen.svg",variantCount:1},{name:"magnifying-glass",label:"Magnifying Glass",filePath:"icon/MagnifyingGlass.svg",variantCount:1},{name:"magnifying-glass-minus",label:"Magnifying Glass Minus",filePath:"icon/MagnifyingGlassMinus.svg",variantCount:1},{name:"magnifying-glass-plus",label:"Magnifying Glass Plus",filePath:"icon/MagnifyingGlassPlus.svg",variantCount:1},{name:"megaphone",label:"Megaphone",filePath:"icon/Megaphone.svg",variantCount:1},{name:"megaphone-simple",label:"Megaphone Simple",filePath:"icon/MegaphoneSimple.svg",variantCount:1},{name:"microphone",label:"Microphone",filePath:"icon/Microphone.svg",variantCount:1},{name:"navigation-arrow",label:"Navigation Arrow",filePath:"icon/NavigationArrow.svg",variantCount:1},{name:"network",label:"Network",filePath:"icon/Network.svg",variantCount:1},{name:"network-slash",label:"Network Slash",filePath:"icon/NetworkSlash.svg",variantCount:1},{name:"network-x",label:"Network X",filePath:"icon/NetworkX.svg",variantCount:1},{name:"newspaper",label:"Newspaper",filePath:"icon/Newspaper.svg",variantCount:1},{name:"newspaper-clipping",label:"Newspaper Clipping",filePath:"icon/NewspaperClipping.svg",variantCount:1},{name:"notches",label:"Notches",filePath:"icon/Notches.svg",variantCount:1},{name:"note",label:"Note",filePath:"icon/Note.svg",variantCount:1},{name:"note-blank",label:"Note Blank",filePath:"icon/NoteBlank.svg",variantCount:1},{name:"note-pencil",label:"Note Pencil",filePath:"icon/NotePencil.svg",variantCount:1},{name:"notification",label:"Notification",filePath:"icon/Notification.svg",variantCount:1},{name:"nut",label:"Nut",filePath:"icon/Nut.svg",variantCount:1},{name:"paperclip",label:"Paperclip",filePath:"icon/Paperclip.svg",variantCount:1},{name:"paperclip-horizontal",label:"Paperclip Horizontal",filePath:"icon/PaperclipHorizontal.svg",variantCount:1},{name:"password",label:"Password",filePath:"icon/Password.svg",variantCount:1},{name:"pencil-simple",label:"Pencil Simple",filePath:"icon/PencilSimple.svg",variantCount:1},{name:"pencil-simple-line",label:"Pencil Simple Line",filePath:"icon/PencilSimpleLine.svg",variantCount:1},{name:"person",label:"Person",filePath:"icon/Person.svg",variantCount:1},{name:"person-arms-spread",label:"Person Arms Spread",filePath:"icon/PersonArmsSpread.svg",variantCount:1},{name:"person-simple",label:"Person Simple",filePath:"icon/PersonSimple.svg",variantCount:1},{name:"placeholder",label:"Placeholder",filePath:"icon/Placeholder.svg",variantCount:1},{name:"plus",label:"Plus",filePath:"icon/Plus.svg",variantCount:1},{name:"plus-circle",label:"Plus Circle",filePath:"icon/PlusCircle.svg",variantCount:1},{name:"plus-square",label:"Plus Square",filePath:"icon/PlusSquare.svg",variantCount:1},{name:"prohibit",label:"Prohibit",filePath:"icon/Prohibit.svg",variantCount:1},{name:"prohibit-inset",label:"Prohibit Inset",filePath:"icon/ProhibitInset.svg",variantCount:1},{name:"pulse",label:"Pulse",filePath:"icon/Pulse.svg",variantCount:1},{name:"push-pin",label:"Push Pin",filePath:"icon/PushPin.svg",variantCount:1},{name:"push-pin-simple",label:"Push Pin Simple",filePath:"icon/PushPinSimple.svg",variantCount:1},{name:"push-pin-simple-slash",label:"Push Pin Simple Slash",filePath:"icon/PushPinSimpleSlash.svg",variantCount:1},{name:"push-pin-slash",label:"Push Pin Slash",filePath:"icon/PushPinSlash.svg",variantCount:1},{name:"puzzle-piece",label:"Puzzle Piece",filePath:"icon/PuzzlePiece.svg",variantCount:1},{name:"question",label:"Question",filePath:"icon/Question.svg",variantCount:1},{name:"question-mark",label:"Question Mark",filePath:"icon/QuestionMark.svg",variantCount:1},{name:"receipt",label:"Receipt",filePath:"icon/Receipt.svg",variantCount:1},{name:"receipt-x",label:"Receipt X",filePath:"icon/ReceiptX.svg",variantCount:1},{name:"rows-plus-bottom",label:"Rows Plus Bottom",filePath:"icon/RowsPlusBottom.svg",variantCount:1},{name:"rows-plus-top",label:"Rows Plus Top",filePath:"icon/RowsPlusTop.svg",variantCount:1},{name:"scroll",label:"Scroll",filePath:"icon/Scroll.svg",variantCount:1},{name:"seal",label:"Seal",filePath:"icon/Seal.svg",variantCount:1},{name:"seal-check",label:"Seal Check",filePath:"icon/SealCheck.svg",variantCount:1},{name:"share",label:"Share",filePath:"icon/Share.svg",variantCount:1},{name:"share-fat",label:"Share Fat",filePath:"icon/ShareFat.svg",variantCount:1},{name:"share-network",label:"Share Network",filePath:"icon/ShareNetwork.svg",variantCount:1},{name:"shield",label:"Shield",filePath:"icon/Shield.svg",variantCount:1},{name:"shield-check",label:"Shield Check",filePath:"icon/ShieldCheck.svg",variantCount:1},{name:"shield-checkered",label:"Shield Checkered",filePath:"icon/ShieldCheckered.svg",variantCount:1},{name:"shield-chevron",label:"Shield Chevron",filePath:"icon/ShieldChevron.svg",variantCount:1},{name:"shield-plus",label:"Shield Plus",filePath:"icon/ShieldPlus.svg",variantCount:1},{name:"shield-slash",label:"Shield Slash",filePath:"icon/ShieldSlash.svg",variantCount:1},{name:"shield-star",label:"Shield Star",filePath:"icon/ShieldStar.svg",variantCount:1},{name:"shield-warning",label:"Shield Warning",filePath:"icon/ShieldWarning.svg",variantCount:1},{name:"sidebar",label:"Sidebar",filePath:"icon/Sidebar.svg",variantCount:1},{name:"sidebar-simple",label:"Sidebar Simple",filePath:"icon/SidebarSimple.svg",variantCount:1},{name:"sign-in",label:"Sign In",filePath:"icon/SignIn.svg",variantCount:1},{name:"sign-out",label:"Sign Out",filePath:"icon/SignOut.svg",variantCount:1},{name:"siren",label:"Siren",filePath:"icon/Siren.svg",variantCount:1},{name:"sliders",label:"Sliders",filePath:"icon/Sliders.svg",variantCount:1},{name:"sliders-horizontal",label:"Sliders Horizontal",filePath:"icon/SlidersHorizontal.svg",variantCount:1},{name:"sort-ascending",label:"Sort Ascending",filePath:"icon/SortAscending.svg",variantCount:1},{name:"sort-descending",label:"Sort Descending",filePath:"icon/SortDescending.svg",variantCount:1},{name:"spinner",label:"Spinner",filePath:"icon/Spinner.svg",variantCount:1},{name:"spinner-gap",label:"Spinner Gap",filePath:"icon/SpinnerGap.svg",variantCount:1},{name:"split-horizontal",label:"Split Horizontal",filePath:"icon/SplitHorizontal.svg",variantCount:1},{name:"split-vertical",label:"Split Vertical",filePath:"icon/SplitVertical.svg",variantCount:1},{name:"square-half",label:"Square Half",filePath:"icon/SquareHalf.svg",variantCount:1},{name:"square-half-bottom",label:"Square Half Bottom",filePath:"icon/SquareHalfBottom.svg",variantCount:1},{name:"square-split-horizontal",label:"Square Split Horizontal",filePath:"icon/SquareSplitHorizontal.svg",variantCount:1},{name:"square-split-vertical",label:"Square Split Vertical",filePath:"icon/SquareSplitVertical.svg",variantCount:1},{name:"squares-four",label:"Squares Four",filePath:"icon/SquaresFour.svg",variantCount:1},{name:"stack",label:"Stack",filePath:"icon/Stack.svg",variantCount:1},{name:"stack-minus",label:"Stack Minus",filePath:"icon/StackMinus.svg",variantCount:1},{name:"stack-plus",label:"Stack Plus",filePath:"icon/StackPlus.svg",variantCount:1},{name:"stack-simple",label:"Stack Simple",filePath:"icon/StackSimple.svg",variantCount:1},{name:"star",label:"Star",filePath:"icon/Star.svg",variantCount:1},{name:"table",label:"Table",filePath:"icon/Table.svg",variantCount:1},{name:"tag",label:"Tag",filePath:"icon/Tag.svg",variantCount:1},{name:"tag-chevron",label:"Tag Chevron",filePath:"icon/TagChevron.svg",variantCount:1},{name:"tag-simple",label:"Tag Simple",filePath:"icon/TagSimple.svg",variantCount:1},{name:"target",label:"Target",filePath:"icon/Target.svg",variantCount:1},{name:"terminal",label:"Terminal",filePath:"icon/Terminal.svg",variantCount:1},{name:"terminal-window",label:"Terminal Window",filePath:"icon/TerminalWindow.svg",variantCount:1},{name:"text-columns",label:"Text Columns",filePath:"icon/TextColumns.svg",variantCount:1},{name:"ticket",label:"Ticket",filePath:"icon/Ticket.svg",variantCount:1},{name:"trash",label:"Trash",filePath:"icon/Trash.svg",variantCount:1},{name:"trash-simple",label:"Trash Simple",filePath:"icon/TrashSimple.svg",variantCount:1},{name:"tray",label:"Tray",filePath:"icon/Tray.svg",variantCount:1},{name:"tray-arrow-down",label:"Tray Arrow Down",filePath:"icon/TrayArrowDown.svg",variantCount:1},{name:"tray-arrow-up",label:"Tray Arrow Up",filePath:"icon/TrayArrowUp.svg",variantCount:1},{name:"tree-structure",label:"Tree Structure",filePath:"icon/TreeStructure.svg",variantCount:1},{name:"upload-simple",label:"Upload Simple",filePath:"icon/UploadSimple.svg",variantCount:1},{name:"user",label:"User",filePath:"icon/User.svg",variantCount:1},{name:"user-check",label:"User Check",filePath:"icon/UserCheck.svg",variantCount:1},{name:"user-circle",label:"User Circle",filePath:"icon/UserCircle.svg",variantCount:1},{name:"user-circle-check",label:"User Circle Check",filePath:"icon/UserCircleCheck.svg",variantCount:1},{name:"user-circle-dashed",label:"User Circle Dashed",filePath:"icon/UserCircleDashed.svg",variantCount:1},{name:"user-circle-gear",label:"User Circle Gear",filePath:"icon/UserCircleGear.svg",variantCount:1},{name:"user-circle-minus",label:"User Circle Minus",filePath:"icon/UserCircleMinus.svg",variantCount:1},{name:"user-circle-plus",label:"User Circle Plus",filePath:"icon/UserCirclePlus.svg",variantCount:1},{name:"user-focus",label:"User Focus",filePath:"icon/UserFocus.svg",variantCount:1},{name:"user-gear",label:"User Gear",filePath:"icon/UserGear.svg",variantCount:1},{name:"user-list",label:"User List",filePath:"icon/UserList.svg",variantCount:1},{name:"user-minus",label:"User Minus",filePath:"icon/UserMinus.svg",variantCount:1},{name:"user-plus",label:"User Plus",filePath:"icon/UserPlus.svg",variantCount:1},{name:"user-rectangle",label:"User Rectangle",filePath:"icon/UserRectangle.svg",variantCount:1},{name:"user-sound",label:"User Sound",filePath:"icon/UserSound.svg",variantCount:1},{name:"user-square",label:"User Square",filePath:"icon/UserSquare.svg",variantCount:1},{name:"user-switch",label:"User Switch",filePath:"icon/UserSwitch.svg",variantCount:1},{name:"users",label:"Users",filePath:"icon/Users.svg",variantCount:1},{name:"users-four",label:"Users Four",filePath:"icon/UsersFour.svg",variantCount:1},{name:"users-three",label:"Users Three",filePath:"icon/UsersThree.svg",variantCount:1},{name:"vault",label:"Vault",filePath:"icon/Vault.svg",variantCount:1},{name:"warning",label:"Warning",filePath:"icon/Warning.svg",variantCount:1},{name:"warning-circle",label:"Warning Circle",filePath:"icon/WarningCircle.svg",variantCount:1},{name:"warning-diamond",label:"Warning Diamond",filePath:"icon/WarningDiamond.svg",variantCount:1},{name:"warning-octagon",label:"Warning Octagon",filePath:"icon/WarningOctagon.svg",variantCount:1},{name:"wrench",label:"Wrench",filePath:"icon/Wrench.svg",variantCount:1},{name:"x",label:"X",filePath:"icon/X.svg",variantCount:1},{name:"xcircle",label:"XCircle",filePath:"icon/XCircle.svg",variantCount:1},{name:"xsquare",label:"XSquare",filePath:"icon/XSquare.svg",variantCount:1},{name:"calendar",label:"Calendar",filePath:"icon/calendar.svg",variantCount:1}],H=({name:t,size:n="medium",variant:o="default",className:r="",style:a={},alt:i="",...l})=>{const s=t?.replace(/\.svg$/,"").toLowerCase(),c=(()=>{if("number"==typeof n)return`${n}px`;const e={small:"12px",medium:"16px",large:"24px"};return e[n]||e.medium})(),d=(()=>{const e=j.find(e=>e.name===s||e.name===t);return`https://unpkg.com/squarex-ui-component-lib@1.0.0/public/icon/${e?e.filePath.split("/").pop():`${t}.svg`}`})(),u=i||`${s} icon`,p=[L.icon,L[`variant_${o}`],r].filter(Boolean).join(" "),m={width:c,height:c,...a};return e.jsx("img",{src:d,alt:u,className:p,style:m,...l})},F=({className:t})=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{d:"M7.00033 1.16699L8.80283 4.81866L12.8337 5.40783L9.91699 8.24866L10.6053 12.262L7.00033 10.3662L3.39533 12.262L4.08366 8.24866L1.16699 5.40783L5.19783 4.81866L7.00033 1.16699Z",stroke:"#36204C",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),V=({className:t})=>e.jsxs("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),W=({label:t="Button",showLeadingIcon:n=!0,showTrailingIcon:o=!1,leadingIcon:r,trailingIcon:a,leftIcon:i,rightIcon:l,variant:s,buttonStyle:c="primary",state:d="default",size:u="medium",onClick:p,disabled:m,loading:f,className:h="",children:g,...v})=>{const b=f?"loading":m?"disabled":d,y=m||f||"disabled"===b,x=z(A.button,A[`style_${s||c||"primary"}`],A[`state_${b}`],A[`size_${"md"===u?"medium":"sm"===u?"small":u}`],h),w="Button"===t&&g?g:t;return e.jsxs("button",{className:x,onClick:p,disabled:y,"aria-disabled":y,...v,children:[(()=>{if(!n)return null;const t=r||i;return t?"string"==typeof t?e.jsx(H,{name:t,className:A.icon}):t:"loading"===b?e.jsx(V,{className:A.loaderIcon}):e.jsx(F,{className:A.icon})})(),e.jsx("span",{className:A.label,children:w}),(()=>{if(!o)return null;const t=a||l;return t?"string"==typeof t?e.jsx(H,{name:t,className:A.icon}):t:e.jsx(F,{className:A.icon})})()]})};var K={button:"ButtonDanger-module_button__AOtwP",label:"ButtonDanger-module_label__b5KXy",icon:"ButtonDanger-module_icon__cFsc0",loaderIcon:"ButtonDanger-module_loaderIcon__0Grd9",spin:"ButtonDanger-module_spin__dWDkA",size_medium:"ButtonDanger-module_size_medium__rSyZy",size_small:"ButtonDanger-module_size_small__uAFGW",style_primary:"ButtonDanger-module_style_primary__iUyC1",state_default:"ButtonDanger-module_state_default__Y5C0B",state_hover:"ButtonDanger-module_state_hover__sATSe",state_focus:"ButtonDanger-module_state_focus__gFvzD",state_disabled:"ButtonDanger-module_state_disabled__UT767",state_loading:"ButtonDanger-module_state_loading__-C8Aq",style_neutral:"ButtonDanger-module_style_neutral__VZ0rO",style_subtle:"ButtonDanger-module_style_subtle__PTOK-"};const q=({label:t="Button",showLeadingIcon:n=!0,showTrailingIcon:o=!1,leadingIcon:r,trailingIcon:a,style:i="primary",state:l="default",size:s="medium",onClick:c,disabled:d,loading:u,className:p="",...m})=>{const f=u?"loading":d?"disabled":l,h=d||u||"disabled"===f,g=[K.button,K[`style_${i}`],K[`state_${f}`],K[`size_${s}`],p].filter(Boolean).join(" ");return e.jsxs("button",{className:g,onClick:c,disabled:h,"aria-disabled":h,...m,children:[n?r||("loading"===f?e.jsx(H,{name:"spinner",size:16,className:K.loaderIcon}):e.jsx(H,{name:"star",size:14,className:K.icon})):null,e.jsx("span",{className:K.label,children:t}),o?a||e.jsx(H,{name:"star",size:14,className:K.icon}):null]})};var U={avatar:"Avatar-module_avatar__iHwNB",size_large:"Avatar-module_size_large__lysYk",size_medium:"Avatar-module_size_medium__JL1rC",size_small:"Avatar-module_size_small__F3gWo",shape_circle:"Avatar-module_shape_circle__YEmYW",shape_square:"Avatar-module_shape_square__nLoa1",initialsBg:"Avatar-module_initialsBg__54pKJ",image:"Avatar-module_image__-oxFc",initials:"Avatar-module_initials__DzwqM"};var X="BackgroundGradient-module_container__h-ECQ",G="BackgroundGradient-module_gradientBlobsImage__HSoZE";var Y={badge:"Badge-module_badge__IxlOE",size_small:"Badge-module_size_small__blSq3",size_medium:"Badge-module_size_medium__hlh0Y",size_large:"Badge-module_size_large__EzYlM",type_active:"Badge-module_type_active__CPh-H",type_inactive:"Badge-module_type_inactive__xwWXA",type_default:"Badge-module_type_default__5N9w7"};function Z(e){const t=l.useRef(e);t.current=e;return l.useCallback((...e)=>t.current?.(...e),[])}function Q(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const J="test"!==process.env.NODE_ENV&&Q()?l.useLayoutEffect:l.useEffect,ee=(e,t)=>{const n=l.useRef(!0);J(()=>e(n.current),t),J(()=>(n.current=!1,()=>{n.current=!0}),[])};function te(e){const t=l.useRef(!1),[n,o]=l.useState(e);return l.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[n,function(e,n){n&&t.current||o(e)}]}function ne(e,n){const[o,r]=t.useState(e),a=void 0!==n?n:o;return ee(e=>{e||r(n)},[n]),[a,r]}var oe,re={exports:{}},ae={};var ie,le={};
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-is.development.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/"production"===process.env.NODE_ENV?re.exports=function(){if(oe)return ae;oe=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case o:case a:case r:case d:case u:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case m:case p:case i:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),ae.ContextConsumer=l,ae.ContextProvider=i,ae.Element=t,ae.ForwardRef=c,ae.Fragment=o,ae.Lazy=m,ae.Memo=p,ae.Portal=n,ae.Profiler=a,ae.StrictMode=r,ae.Suspense=d,ae.SuspenseList=u,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(e){return h(e)===l},ae.isContextProvider=function(e){return h(e)===i},ae.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ae.isForwardRef=function(e){return h(e)===c},ae.isFragment=function(e){return h(e)===o},ae.isLazy=function(e){return h(e)===m},ae.isMemo=function(e){return h(e)===p},ae.isPortal=function(e){return h(e)===n},ae.isProfiler=function(e){return h(e)===a},ae.isStrictMode=function(e){return h(e)===r},ae.isSuspense=function(e){return h(e)===d},ae.isSuspenseList=function(e){return h(e)===u},ae.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===r||t===d||t===u||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},ae.typeOf=h,ae}():re.exports=(ie||(ie=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var h=e.type;switch(h){case o:case a:case r:case d:case u:return h;default:var g=h&&h.$$typeof;switch(g){case s:case l:case c:case m:case p:case i:return g;default:return f}}case n:return f}}}e=Symbol.for("react.module.reference");var g=l,v=i,b=t,y=c,x=o,w=m,C=p,$=n,S=a,E=r,k=d,N=u,_=!1,I=!1;le.ContextConsumer=g,le.ContextProvider=v,le.Element=b,le.ForwardRef=y,le.Fragment=x,le.Lazy=w,le.Memo=C,le.Portal=$,le.Profiler=S,le.StrictMode=E,le.Suspense=k,le.SuspenseList=N,le.isAsyncMode=function(e){return _||(_=!0),!1},le.isConcurrentMode=function(e){return I||(I=!0),!1},le.isContextConsumer=function(e){return h(e)===l},le.isContextProvider=function(e){return h(e)===i},le.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},le.isForwardRef=function(e){return h(e)===c},le.isFragment=function(e){return h(e)===o},le.isLazy=function(e){return h(e)===m},le.isMemo=function(e){return h(e)===p},le.isPortal=function(e){return h(e)===n},le.isProfiler=function(e){return h(e)===a},le.isStrictMode=function(e){return h(e)===r},le.isSuspense=function(e){return h(e)===d},le.isSuspenseList=function(e){return h(e)===u},le.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===r||t===d||t===u||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},le.typeOf=h}()),le);var se=re.exports;function ce(e,t,n){const o=l.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}const de=Symbol.for("react.element"),ue=Symbol.for("react.transitional.element"),pe=Symbol.for("react.fragment");function me(e){return e&&"object"==typeof e&&(e.$$typeof===de||e.$$typeof===ue)&&e.type===pe}const fe=Number(t.version.split(".")[0]),he=(e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)},ge=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{he(e,t)})}},ve=(...e)=>ce(()=>ge(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),be=e=>{if(!e)return!1;if(ye(e)&&fe>=19)return!0;const t=se.isMemo(e)?e.type.type:e.type;return!("function"==typeof t&&!t.prototype?.render&&t.$$typeof!==se.ForwardRef)&&!("function"==typeof e&&!e.prototype?.render&&e.$$typeof!==se.ForwardRef)};function ye(e){return t.isValidElement(e)&&!me(e)}const xe=e=>{if(e&&ye(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function we(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(null==n)return;n=n[t[e]]}return n}function Ce(e,t,n,o){if(!t.length)return n;const[r,...a]=t;let i;return i=e||"number"!=typeof r?Array.isArray(e)?[...e]:{...e}:[],o&&void 0===n&&1===a.length?delete i[r][a[0]]:i[r]=Ce(i[r],a,n,o),i}function $e(e,t,n,o=!1){return t.length&&o&&void 0===n&&!we(e,t.slice(0,-1))?e:Ce(e,t,n,o)}function Se(e){return Array.isArray(e)?[]:{}}const Ee="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ke(e,t={}){const{prepareArray:n}=t,o=n||(()=>[]);let r=Se(e[0]);return e.forEach(e=>{!function t(n,a){const i=new Set(a),l=we(e,n),s=Array.isArray(l);if(s||"object"==typeof(c=l)&&null!==c&&Object.getPrototypeOf(c)===Object.prototype){if(!i.has(l)){i.add(l);const e=we(r,n);s?r=$e(r,n,o(e,l)):e&&"object"==typeof e||(r=$e(r,n,Se(l))),Ee(l).forEach(e=>{Object.getOwnPropertyDescriptor(l,e).enumerable&&t([...n,e],i)})}}else r=$e(r,n,l);var c}([])}),r}function Ne(...e){return ke(e)}let _e={};const Ie=[];function Pe(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){Ie.reduce((e,t)=>t(e??"","warning"),t)}}function Re(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){Ie.reduce((e,t)=>t(e??"","note"),t)}}function Oe(e,t,n){t||_e[n]||(e(!1,n),_e[n]=!0)}function De(e,t){Oe(Pe,e,t)}function Me(e,t){Oe(Re,e,t)}function Be(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}function Te(e,t={}){let n=[];return s.default.Children.forEach(e,e=>{(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Te(e)):me(e)&&e.props?n=n.concat(Te(e.props.children,t)):n.push(e))}),n}function ze(){}De.preMessage=e=>{Ie.push(e)},De.resetWarned=function(){_e={}},De.noteOnce=Me;const{resetWarned:Ae}=De;let Le=null;let je=ze;"production"!==process.env.NODE_ENV&&(je=(e,t,n)=>{De(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(Le=null,Ae())});const He=je,Fe=l.createContext({}),Ve="production"!==process.env.NODE_ENV?e=>{const{strict:t}=l.useContext(Fe),n=(n,o,r)=>{if(!n)if(!1===t&&"deprecated"===o){Le||(Le={}),Le[e]=Le[e]||[],Le[e].includes(r||"")||Le[e].push(r||"")}else"production"!==process.env.NODE_ENV&&He(n,e,r)};return n.deprecated=(e,t,o,r="")=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${o}\` instead.${r?` ${r}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=ze,e};var We=He;function Ke(e){return e instanceof HTMLElement||e instanceof SVGElement}function qe(e){return e&&"object"==typeof e&&Ke(e.nativeElement)?e.nativeElement:Ke(e)?e:null}const Ue=l.createContext(null);const Xe=new Map;function Ge(e){e.forEach(e=>{const{target:t}=e;Xe.get(t)?.forEach(e=>e(t))})}let Ye;function Ze(){return Ye||(Ye=new ResizeObserver(Ge)),Ye}function Qe(e,t){const{children:n,disabled:o}=e,r=l.useRef(null),a=l.useContext(Ue),i="function"==typeof n,s=i?n(r):n,c=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!i&&l.isValidElement(s)&&be(s),u=d?xe(s):null,p=ve(u,r),m=()=>qe(r.current);l.useImperativeHandle(t,()=>m());const f=l.useRef(e);f.current=e;const h=l.useCallback(e=>{const{onResize:t,data:n}=f.current,{width:o,height:r}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:l}=e,s=Math.floor(o),d=Math.floor(r);if(c.current.width!==s||c.current.height!==d||c.current.offsetWidth!==i||c.current.offsetHeight!==l){const u={width:s,height:d,offsetWidth:i,offsetHeight:l};c.current=u;const p=i===Math.round(o)?o:i,m=l===Math.round(r)?r:l,f={...u,offsetWidth:p,offsetHeight:m};a?.(f,e,n),t&&Promise.resolve().then(()=>{t(f,e)})}},[]);return l.useEffect(()=>{const e=m();var t,n;return e&&!o&&(t=e,n=h,Xe.has(t)||(Xe.set(t,new Set),Ze().observe(t)),Xe.get(t).add(n)),()=>function(e,t){Xe.has(e)&&(Xe.get(e).delete(t),Xe.get(e).size||(Ze().unobserve(e),Xe.delete(e)))}(e,h)},[r.current,o]),d?l.cloneElement(s,{ref:p}):s}process.env.NODE_ENV,process.env.NODE_ENV;const Je=l.forwardRef(Qe);function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},et.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Je.displayName="SingleObserver");function tt(e,t){const{children:n}=e,o="function"==typeof n?[n]:Te(n);return"production"!==process.env.NODE_ENV&&(o.length>1?Pe(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&Pe(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((n,o)=>{const r=n?.key||`rc-observer-key-${o}`;return l.createElement(Je,et({},e,{key:r,ref:0===o?t:void 0}),n)})}const nt=l.forwardRef(tt);function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function rt(e,t){if(e){if("string"==typeof e)return ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}function at(e){return function(e){if(Array.isArray(e))return ot(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(nt.displayName="ResizeObserver"),nt.Collection=function({children:e,onBatchResize:t}){const n=l.useRef(0),o=l.useRef([]),r=l.useContext(Ue),a=l.useCallback((e,a,i)=>{n.current+=1;const l=n.current;o.current.push({size:e,element:a,data:i}),Promise.resolve().then(()=>{l===n.current&&(t?.(o.current),o.current=[])}),r?.(e,a,i)},[t,r]);return l.createElement(Ue.Provider,{value:a},e)};let it=e=>+setTimeout(e,16),lt=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(it=e=>window.requestAnimationFrame(e),lt=e=>window.cancelAnimationFrame(e));let st=0;const ct=new Map;function dt(e){ct.delete(e)}const ut=(e,t=1)=>{st+=1;const n=st;return function t(o){if(0===o)dt(n),e();else{const e=it(()=>{t(o-1)});ct.set(n,e)}}(t),n};ut.cancel=e=>{const t=ct.get(e);return dt(e),lt(t)},"production"!==process.env.NODE_ENV&&(ut.ids=()=>ct);const pt="ant",mt="anticon",ft=["outlined","borderless","filled","underlined"],ht=l.createContext({getPrefixCls:(e,t)=>t||(e?`${pt}-${e}`:pt),iconPrefixCls:mt}),gt={};function vt(e){const t=l.useContext(ht),{getPrefixCls:n,direction:o,getPopupContainer:r,renderEmpty:a}=t,i=t[e];return{classNames:gt,styles:gt,...i,getPrefixCls:n,direction:o,getPopupContainer:r,renderEmpty:a}}function bt(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const yt="data-rc-order",xt="data-rc-priority",wt=new Map;function Ct({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function $t(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function St(e){return Array.from((wt.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function Et(e,t={}){if(!Q())return null;const{csp:n,prepend:o,priority:r=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),i="prependQueue"===a,l=document.createElement("style");l.setAttribute(yt,a),i&&r&&l.setAttribute(xt,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const s=$t(t),{firstChild:c}=s;if(o){if(i){const e=(t.styles||St(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(yt)))return!1;const t=Number(e.getAttribute(xt)||0);return r>=t});if(e.length)return s.insertBefore(l,e[e.length-1].nextSibling),l}s.insertBefore(l,c)}else s.appendChild(l);return l}function kt(e,t={}){let{styles:n}=t;return n||=St($t(t)),n.find(n=>n.getAttribute(Ct(t))===e)}function Nt(e,t={}){const n=kt(e,t);if(n){$t(t).removeChild(n)}}function _t(e,t,n={}){const o=$t(n),r=St(o),a={...n,styles:r};!function(e,t){const n=wt.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=Et("",t),{parentNode:o}=n;wt.set(e,o),e.removeChild(n)}}(o,a);const i=kt(t,a);if(i)return a.csp?.nonce&&i.nonce!==a.csp?.nonce&&(i.nonce=a.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=Et(e,a);return l.setAttribute(Ct(a),t),l}function It(e,t,n=!1){const o=new Set;return function e(t,r,a=1){const i=o.has(t);if(De(!i,"Warning: There may be circular references"),i)return!1;if(t===r)return!0;if(n&&a>1)return!1;o.add(t);const l=a+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n],l))return!1;return!0}if(t&&r&&"object"==typeof t&&"object"==typeof r){const n=Object.keys(t);return n.length===Object.keys(r).length&&n.every(n=>e(t[n],r[n],l))}return!1}(e,t)}function Pt(e){return e.join("%")}let Rt=0;class Ot{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(Pt(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Pt(e),t)}opUpdate(e,t){const n=t(this.cache.get(e));null===n?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,Rt),Rt+=1)}}const Dt="data-token-hash",Mt="data-css-hash",Bt="__cssinjs_instance__";const Tt=l.createContext({hashPriority:"low",cache:function(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Mt}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Bt]||=e,t[Bt]===e&&document.head.insertBefore(t,n)});const o={};Array.from(document.querySelectorAll(`style[${Mt}]`)).forEach(t=>{const n=t.getAttribute(Mt);o[n]?t[Bt]===e&&t.parentNode?.removeChild(t):o[n]=!0})}return new Ot(e)}(),defaultCache:!0,autoPrefix:!1});class zt{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>zt.MAX_CACHE_SIZE+zt.MAX_CACHE_OFFSET){const[e]=this.keys.reduce((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach((o,r)=>{if(r===e.length-1)n.set(o,{value:[t,this.cacheCallTimes++]});else{const e=n.get(o);e?e.map||(e.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}})}deleteByPath(e,t){const n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];const o=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)),this.deleteByPath(this.cache,e)}}let At=0;class Lt{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=At,0===e.length&&Pe(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),At+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}const jt=new zt;function Ht(e){const t=Array.isArray(e)?e:[e];return jt.has(t)||jt.set(t,new Lt(t)),jt.get(t)}const Ft=new WeakMap,Vt={};const Wt=new WeakMap;function Kt(e){let t=Wt.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,t+=o instanceof Lt?o.id:o&&"object"==typeof o?Kt(o):o}),t=bt(t),Wt.set(e,t)),t}const qt=Q();function Ut(e){return"number"==typeof e?`${e}px`:e}function Xt(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const o=`.${t}`;return"low"===n?`:where(${o})`:o}const Gt=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),Yt=(e,t,n)=>{const{hashCls:o,hashPriority:r="low"}=n||{};return Object.keys(e).length?`${Xt({hashCls:o,hashPriority:r})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`:""},Zt=(e,t,n)=>{const{hashCls:o,hashPriority:r="low",prefix:a,unitless:i,ignore:l,preserve:s}=n||{},c={},d={};return Object.entries(e).forEach(([e,t])=>{if(s?.[e])d[e]=t;else if(("string"==typeof t||"number"==typeof t)&&!l?.[e]){const n=Gt(e,a);c[n]="number"!=typeof t||i?.[e]?String(t):`${t}px`,d[e]=`var(${n})`}}),[d,Yt(c,t,{scope:n?.scope,hashCls:o,hashPriority:r})]};let Qt=!1;var Jt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Qt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){const e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(e&&"function"==typeof e.webpackHotUpdate){const t=e.webpackHotUpdate;e.webpackHotUpdate=(...e)=>(Qt=!0,setTimeout(()=>{Qt=!1},0),t(...e))}}const en=new Map;function tn(e,n,o,r,a){const{cache:i}=l.useContext(Tt),s=Pt([e,...n]),c=Jt(),d=e=>{i.opUpdate(s,t=>{const[n=0,a]=t||[void 0,void 0];let i=a;"production"!==process.env.NODE_ENV&&a&&c&&(r?.(i,c),i=null);const l=[n,i||o()];return e?e(l):l})};l.useMemo(()=>{d()},[s]);let u=i.opGet(s);"production"===process.env.NODE_ENV||u||(d(),u=i.opGet(s));const p=u[1];return t.useInsertionEffect(()=>(d(([e,t])=>[e+1,t]),en.has(s)||(a?.(p),en.set(s,!0),Promise.resolve().then(()=>{en.delete(s)})),()=>{i.opUpdate(s,e=>{const[t=0,n]=e||[];return 0===t-1?(r?.(n,!1),en.delete(s),null):[t-1,n]})}),[s]),p}const nn={},on="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",rn=new Map;function an(e,t){rn.set(e,(rn.get(e)||0)-1);const n=new Set;rn.forEach((e,t)=>{e<=0&&n.add(t)}),rn.size-n.size>-1&&n.forEach(e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${Dt}="${e}"]`).forEach(e=>{e[Bt]===t&&e.parentNode?.removeChild(e)})}(e,t),rn.delete(e)})}function ln(e,n,o){const{cache:{instanceId:r},container:a,hashPriority:i}=t.useContext(Tt),{salt:l="",override:s=nn,formatToken:c,getComputedToken:d,cssVar:u}=o,p=function(e,t){let n=Ft;for(let e=0;e<t.length;e+=1){const o=t[e];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Vt)||n.set(Vt,e()),n.get(Vt)}(()=>Object.assign({},...n),n),m=Kt(p),f=Kt(s),h=Kt(u),g=tn("token",[l,e.id,m,f,h],()=>{const t=d?d(p,s,e):((e,t,n,o)=>{let r={...n.getDerivativeToken(e),...t};return o&&(r=o(r)),r})(p,s,e,c),n={...t},o=`${l}_${u.prefix}`,r=bt(o),a=`${on}-${r}`;n._tokenKey=function(e,t){return bt(`${t}_${Kt(e)}`)}(n,o);const[m,f]=Zt(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:i,hashCls:u.hashed?a:void 0});var h;return m._hashId=r,h=u.key,rn.set(h,(rn.get(h)||0)+1),[m,a,n,f,u.key]},([,,,,e])=>{an(e,r)},([,,,e,t])=>{if(!e)return;const n=_t(e,bt(`css-var-${t}`),{mark:Mt,prepend:"queue",attachTo:a,priority:-999});n[Bt]=r,n.setAttribute(Dt,t)});return g}var sn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cn="-ms-",dn="-moz-",un="-webkit-",pn="comm",mn="rule",fn="decl",hn="@keyframes",gn=Math.abs,vn=String.fromCharCode,bn=Object.assign;function yn(e){return e.trim()}function xn(e,t){return(e=t.exec(e))?e[0]:e}function wn(e,t,n){return e.replace(t,n)}function Cn(e,t,n){return e.indexOf(t,n)}function $n(e,t){return 0|e.charCodeAt(t)}function Sn(e,t,n){return e.slice(t,n)}function En(e){return e.length}function kn(e){return e.length}function Nn(e,t){return t.push(e),e}function _n(e,t){return e.filter(function(e){return!xn(e,t)})}var In=1,Pn=1,Rn=0,On=0,Dn=0,Mn="";function Bn(e,t,n,o,r,a,i,l){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:In,column:Pn,length:i,return:"",siblings:l}}function Tn(e,t){return bn(Bn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function zn(e){for(;e.root;)e=Tn(e.root,{children:[e]});Nn(e,e.siblings)}function An(){return Dn=On>0?$n(Mn,--On):0,Pn--,10===Dn&&(Pn=1,In--),Dn}function Ln(){return Dn=On<Rn?$n(Mn,On++):0,Pn++,10===Dn&&(Pn=1,In++),Dn}function jn(){return $n(Mn,On)}function Hn(){return On}function Fn(e,t){return Sn(Mn,e,t)}function Vn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wn(e){return yn(Fn(On-1,Un(91===e?e+2:40===e?e+1:e)))}function Kn(e){for(;(Dn=jn())&&Dn<33;)Ln();return Vn(e)>2||Vn(Dn)>3?"":" "}function qn(e,t){for(;--t&&Ln()&&!(Dn<48||Dn>102||Dn>57&&Dn<65||Dn>70&&Dn<97););return Fn(e,Hn()+(t<6&&32==jn()&&32==Ln()))}function Un(e){for(;Ln();)switch(Dn){case e:return On;case 34:case 39:34!==e&&39!==e&&Un(Dn);break;case 40:41===e&&Un(e);break;case 92:Ln()}return On}function Xn(e,t){for(;Ln()&&e+Dn!==57&&(e+Dn!==84||47!==jn()););return"/*"+Fn(t,On-1)+"*"+vn(47===e?e:Ln())}function Gn(e){for(;!Vn(jn());)Ln();return Fn(e,On)}function Yn(e){return function(e){return Mn="",e}(Zn("",null,null,null,[""],e=function(e){return In=Pn=1,Rn=En(Mn=e),On=0,[]}(e),0,[0],e))}function Zn(e,t,n,o,r,a,i,l,s){for(var c=0,d=0,u=i,p=0,m=0,f=0,h=1,g=1,v=1,b=0,y="",x=r,w=a,C=o,$=y;g;)switch(f=b,b=Ln()){case 40:if(108!=f&&58==$n($,u-1)){-1!=Cn($+=wn(Wn(b),"&","&\f"),"&\f",gn(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:$+=Wn(b);break;case 9:case 10:case 13:case 32:$+=Kn(f);break;case 92:$+=qn(Hn()-1,7);continue;case 47:switch(jn()){case 42:case 47:Nn(Jn(Xn(Ln(),Hn()),t,n,s),s),5!=Vn(f||1)&&5!=Vn(jn()||1)||!En($)||" "===Sn($,-1,void 0)||($+=" ");break;default:$+="/"}break;case 123*h:l[c++]=En($)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:-1==v&&($=wn($,/\f/g,"")),m>0&&(En($)-u||0===h&&47===f)&&Nn(m>32?eo($+";",o,n,u-1,s):eo(wn($," ","")+";",o,n,u-2,s),s);break;case 59:$+=";";default:if(Nn(C=Qn($,t,n,c,d,r,l,y,x=[],w=[],u,a),a),123===b)if(0===d)Zn($,t,C,C,x,a,u,l,w);else{switch(p){case 99:if(110===$n($,3))break;case 108:if(97===$n($,2))break;default:d=0;case 100:case 109:case 115:}d?Zn(e,C,C,o&&Nn(Qn(e,C,C,0,0,r,l,y,r,x=[],u,w),w),r,w,u,l,o?x:w):Zn($,C,C,C,[""],w,0,l,w)}}c=d=m=0,h=v=1,y=$="",u=i;break;case 58:u=1+En($),m=f;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==An())continue;switch($+=vn(b),b*h){case 38:v=d>0?1:($+="\f",-1);break;case 44:l[c++]=(En($)-1)*v,v=1;break;case 64:45===jn()&&($+=Wn(Ln())),p=jn(),d=u=En(y=$+=Gn(Hn())),b++;break;case 45:45===f&&2==En($)&&(h=0)}}return a}function Qn(e,t,n,o,r,a,i,l,s,c,d,u){for(var p=r-1,m=0===r?a:[""],f=kn(m),h=0,g=0,v=0;h<o;++h)for(var b=0,y=Sn(e,p+1,p=gn(g=i[h])),x=e;b<f;++b)(x=yn(g>0?m[b]+" "+y:wn(y,/&\f/g,m[b])))&&(s[v++]=x);return Bn(e,t,n,0===r?mn:l,s,c,d,u)}function Jn(e,t,n,o){return Bn(e,t,n,pn,vn(Dn),Sn(e,2,-2),0,o)}function eo(e,t,n,o,r){return Bn(e,t,n,fn,Sn(e,0,o),Sn(e,o+1,-1),o,r)}function to(e,t,n){switch(function(e,t){return 45^$n(e,0)?(((t<<2^$n(e,0))<<2^$n(e,1))<<2^$n(e,2))<<2^$n(e,3):0}(e,t)){case 5103:return un+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return un+e+e;case 4855:return un+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return dn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+dn+e+cn+e+e;case 5936:switch($n(e,t+11)){case 114:return un+e+cn+wn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+cn+wn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+cn+wn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return un+e+cn+e+e;case 6165:return un+e+cn+"flex-"+e+e;case 5187:return un+e+wn(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+cn+"flex-$1$2")+e;case 5443:return un+e+cn+"flex-item-"+wn(e,/flex-|-self/g,"")+(xn(e,/flex-|baseline/)?"":cn+"grid-row-"+wn(e,/flex-|-self/g,""))+e;case 4675:return un+e+cn+"flex-line-pack"+wn(e,/align-content|flex-|-self/g,"")+e;case 5548:return un+e+cn+wn(e,"shrink","negative")+e;case 5292:return un+e+cn+wn(e,"basis","preferred-size")+e;case 6060:return un+"box-"+wn(e,"-grow","")+un+e+cn+wn(e,"grow","positive")+e;case 4554:return un+wn(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return wn(wn(wn(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return wn(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return wn(wn(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+cn+"flex-pack:$3"),/space-between/,"justify")+un+e+e;case 4200:if(!xn(e,/flex-|baseline/))return cn+"grid-column-align"+Sn(e,t)+e;break;case 2592:case 3360:return cn+wn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,xn(e.props,/grid-\w+-end/)})?~Cn(e+(n=n[t].value),"span",0)?e:cn+wn(e,"-start","")+e+cn+"grid-row-span:"+(~Cn(n,"span",0)?xn(n,/\d+/):+xn(n,/\d+/)-+xn(e,/\d+/))+";":cn+wn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return xn(e.props,/grid-\w+-start/)})?e:cn+wn(wn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return wn(e,/(.+)-inline(.+)/,un+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(En(e)-1-t>6)switch($n(e,t+1)){case 109:if(45!==$n(e,t+4))break;case 102:return wn(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+dn+(108==$n(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Cn(e,"stretch",0)?to(wn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return wn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,o,r,a,i,l){return cn+n+":"+o+l+(r?cn+n+"-span:"+(a?i:+i-+o)+l:"")+e});case 4949:if(121===$n(e,t+6))return wn(e,":",":"+un)+e;break;case 6444:switch($n(e,45===$n(e,14)?18:11)){case 120:return wn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+un+(45===$n(e,14)?"inline-":"")+"box$3$1"+un+"$2$3$1"+cn+"$2box$3")+e;case 100:return wn(e,":",":"+cn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return wn(e,"scroll-","scroll-snap-")+e}return e}function no(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function oo(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case fn:return e.return=e.return||e.value;case pn:return"";case hn:return e.return=e.value+"{"+no(e.children,o)+"}";case mn:if(!En(e.value=e.props.join(",")))return""}return En(n=no(e.children,o))?e.return=e.value+"{"+n+"}":""}function ro(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case fn:return void(e.return=to(e.value,e.length,n));case hn:return no([Tn(e,{value:wn(e.value,"@","@"+un)})],o);case mn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(xn(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":zn(Tn(e,{props:[wn(t,/:(read-\w+)/,":-moz-$1")]})),zn(Tn(e,{props:[t]})),bn(e,{props:_n(n,o)});break;case"::placeholder":zn(Tn(e,{props:[wn(t,/:(plac\w+)/,":"+un+"input-$1")]})),zn(Tn(e,{props:[wn(t,/:(plac\w+)/,":-moz-$1")]})),zn(Tn(e,{props:[wn(t,/:(plac\w+)/,cn+"input-$1")]})),zn(Tn(e,{props:[t]})),bn(e,{props:_n(n,o)})}return""})}}function ao(e,t){const{path:n,parentSelectors:o}=t;De(!1,`[Ant Design CSS-in-JS] ${n?`Error in ${n}: `:""}${e}${o.length?` Selector: ${o.join(" | ")}`:""}`)}const io=(e,t,n)=>{if("content"===e){const e=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;"string"==typeof t&&(-1!==["normal","none","initial","inherit","unset"].indexOf(t)||e.test(t)||t.startsWith("var(")||t.charAt(0)===t.charAt(t.length-1)&&('"'===t.charAt(0)||"'"===t.charAt(0)))||ao(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,n)}},lo=(e,t,n)=>{"animation"===e&&n.hashId&&"none"!==t&&ao(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,n)},so="data-ant-cssinjs-cache-path",co="_FILE_STYLE__";let uo,po=!0;function mo(e){return function(){if(!uo&&(uo={},Q())){const e=document.createElement("div");e.className=so,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(e=>{const[t,n]=e.split(":");uo[t]=n});const n=document.querySelector(`style[${so}]`);n&&(po=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}(),!!uo[e]}const fo="_skip_check_",ho="_multi_value_";function go(e,t){const n=no(Yn(e),t?function(e){var t=kn(e);return function(n,o,r,a){for(var i="",l=0;l<t;l++)i+=e[l](n,o,r,a)||"";return i}}([ro,oo]):oo);return n.replace(/\{%%%\:[^;];}/g,";")}function vo(e,t,n="high"){if(!t)return e;const o=Xt({hashCls:t,hashPriority:n});return e.split(",").map(e=>{const t=e.trim().split(/\s+/);let n=t[0]||"";const r=n.match(/^\w+/)?.[0]||"";return n=`${r}${o}${n.slice(r.length)}`,[n,...t.slice(1)].join(" ")}).join(",")}const bo=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:i,path:l,hashPriority:s,transformers:c=[],linters:d=[]}=t;let u="",p={};function m(e){const n=e.getName(a);if(!p[n]){const[o]=bo(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(a)}${o}`}}const f=function e(t,n=[]){return t.forEach(t=>{Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(e)?e:[e]);return f.forEach(e=>{const i="string"!=typeof e||n?e:{};if("string"==typeof i)u+=`${i}\n`;else if(i._keyframe)m(i);else{const e=c.reduce((e,t)=>t?.visit?.(e)||e,i);Object.keys(e).forEach(i=>{const c=e[i];if("object"!=typeof c||!c||"animationName"===i&&c._keyframe||function(e){return"object"==typeof e&&e&&(fo in e||ho in e)}(c)){function f(e,t){"production"===process.env.NODE_ENV||"object"==typeof c&&c?.[fo]||[io,lo,...d].forEach(n=>n(e,t,{path:l,hashId:a,parentSelectors:r}));const n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let o=t;sn[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&t?._keyframe&&(m(t),o=t.getName(a)),u+=`${n}:${o};`}const h=c?.value??c;"object"==typeof c&&c?.[ho]&&Array.isArray(h)?h.forEach(e=>{f(i,e)}):f(i,h)}else{let g=!1,v=i.trim(),b=!1;(n||o)&&a?v.startsWith("@")?g=!0:v=vo("&"===v?"":i,a,s):!n||a||"&"!==v&&""!==v||(v="",b=!0);const[y,x]=bo(c,t,{root:b,injectHash:g,parentSelectors:[...r,v]});p={...p,...x},u+=`${v}${y}`}})}}),n?i&&(u&&(u=`@layer ${i.name} {${u}}`),i.dependencies&&(p[`@layer ${i.name}`]=i.dependencies.map(e=>`@layer ${e}, ${i.name};`).join("\n"))):u=`{${u}}`,[u,p]};function yo(e,t){return bt(`${e.join("%")}${t}`)}function xo(e,t){const{path:n,hashId:o,layer:r,nonce:a,clientOnly:i,order:s=0}=e,{mock:c,hashPriority:d,container:u,transformers:p,linters:m,cache:f,layer:h,autoPrefix:g}=l.useContext(Tt),v=[o||""];h&&v.push("layer"),v.push(...n);let b=qt;"production"!==process.env.NODE_ENV&&void 0!==c&&(b="client"===c),tn("style",v,()=>{const e=v.join("|");if(mo(e)){const[t,n]=function(e){const t=uo[e];let n=null;if(t&&Q())if(po)n=co;else{const t=document.querySelector(`style[${Mt}="${uo[e]}"]`);t?n=t.innerHTML:delete uo[e]}return[n,t]}(e);if(t)return[t,n,{},i,s]}const a=t(),[l,c]=bo(a,{hashId:o,hashPriority:d,layer:h?r:void 0,path:n.join("-"),transformers:p,linters:m}),u=go(l,g||!1);return[u,yo(v,u),c,i,s]},(e,t)=>{const[,n]=e;t&&qt&&Nt(n,{mark:Mt,attachTo:u})},e=>{const[t,n,o,,r]=e;if(b&&t!==co){const e={mark:Mt,prepend:!h&&"queue",attachTo:u,priority:r},i="function"==typeof a?a():a;i&&(e.csp={nonce:i});const l=[],s=[];Object.keys(o).forEach(e=>{e.startsWith("@layer")?l.push(e):s.push(e)}),l.forEach(t=>{_t(go(o[t],g||!1),`_layer-${t}`,{...e,prepend:!0})});const c=_t(t,n,e);c[Bt]=f.instanceId,"production"!==process.env.NODE_ENV&&c.setAttribute("data-cache-path",v.join("|")),s.forEach(t=>{_t(go(o[t],g||!1),`_effect-${t}`,e)})}})}class wo{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0}function Co(e){return e.notSplit=!0,e}function $o(e){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$o(e)}function So(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||rt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eo(e){var t=function(e,t){if("object"!=$o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=$o(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$o(t)?t:t+""}function ko(e,t,n){return(t=Eo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach(function(t){ko(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Io(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Po(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Eo(o.key),o)}}function Ro(e,t,n){return t&&Po(e.prototype,t),n&&Po(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Do(e,t){return Do=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Do(e,t)}function Mo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Do(e,t)}function Bo(e){return Bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bo(e)}function To(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(To=function(){return!!e})()}function zo(e){var t=To();return function(){var n,o=Bo(e);if(t){var r=Bo(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==$o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oo(e)}(this,n)}}Co(["borderTop","borderBottom"]),Co(["borderTop"]),Co(["borderBottom"]),Co(["borderLeft","borderRight"]),Co(["borderLeft"]),Co(["borderRight"]);var Ao=Ro(function e(){Io(this,e)}),Lo="CALC_UNIT",jo=new RegExp(Lo,"g");function Ho(e){return"number"==typeof e?"".concat(e).concat(Lo):e}var Fo=function(){Mo(t,Ao);var e=zo(t);function t(n,o){var r;Io(this,t),ko(Oo(r=e.call(this)),"result",""),ko(Oo(r),"unitlessCssVar",void 0),ko(Oo(r),"lowPriority",void 0);var a=$o(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===a?r.result=Ho(n):"string"===a&&(r.result=n),r}return Ro(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Ho(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Ho(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(o=!1),this.result=this.result.replace(jo,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Vo=function(){Mo(t,Ao);var e=zo(t);function t(n){var o;return Io(this,t),ko(Oo(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return Ro(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Wo=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ko(e,t,n,o){var r=_o({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach(function(t){var n,o=So(t,2),a=o[0],i=o[1];("production"!==process.env.NODE_ENV&&De(!(null!=r&&r[a]),"Component Token `".concat(String(a),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(i),"` instead.")),null!=r&&r[a]||null!=r&&r[i])&&(null!==(n=r[i])&&void 0!==n||(r[i]=null==r?void 0:r[a]))});var a=_o(_o({},n),r);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var qo="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Uo=!0;function Xo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!qo)return Object.assign.apply(Object,[{}].concat(t));Uo=!1;var o={};return t.forEach(function(e){"object"===$o(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Uo=!0,o}var Go={};function Yo(){}function Zo(e,t,n){var o;return"function"==typeof n?n(Xo(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var Qo=function(){function e(){Io(this,e),ko(this,"map",new Map),ko(this,"objectIDMap",new WeakMap),ko(this,"nextID",0),ko(this,"lastAccessBeat",new Map),ko(this,"accessBeat",0)}return Ro(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===$o(e)?"obj_".concat(t.getObjectID(e)):"".concat($o(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Jo=new Qo;var er=function(){return{}};const tr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function nr(e){return(e+8)/e}const or={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var rr={...or,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},ar={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const ir=Math.round;function lr(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const sr=(e,t,n)=>0===n?e:e/100;function cr(e,t){const n=t||255;return e>n?n:e<0?0:e}class dr{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(o("rgb"))this.fromRgbString(n);else if(o("hsl"))this.fromHslString(n);else if(o("hsv")||o("hsb"))this.fromHsvString(n);else{const r=ar[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof dr)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=cr(e.r),this.g=cr(e.g),this.b=cr(e.b),this.a="number"==typeof e.a?cr(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:ir(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],a={r:ir(r("r")),g:ir(r("g")),b:ir(r("b")),a:ir(100*r("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>ir((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=ir(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ir(100*this.getSaturation()),n=ir(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=cr(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=ir(255*n);this.r=e,this.g=e,this.b=e}let r=0,a=0,i=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(l%2-1));l>=0&&l<1?(r=s,a=c):l>=1&&l<2?(r=c,a=s):l>=2&&l<3?(a=s,i=c):l>=3&&l<4?(a=c,i=s):l>=4&&l<5?(r=c,i=s):l>=5&&l<6&&(r=s,i=c);const d=n-s/2;this.r=ir(255*(r+d)),this.g=ir(255*(a+d)),this.b=ir(255*(i+d))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=ir(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const a=e/60,i=Math.floor(a),l=a-i,s=ir(n*(1-t)*255),c=ir(n*(1-t*l)*255),d=ir(n*(1-t*(1-l))*255);switch(i){case 0:this.g=d,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=c;break;case 4:this.r=d,this.g=s;break;default:this.g=s,this.b=c}}fromHsvString(e){const t=lr(e,sr);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=lr(e,sr);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=lr(e,(e,t)=>t.includes("%")?ir(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const ur=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function pr(e,t,n){let o;return o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,o<0?o+=360:o>=360&&(o-=360),o}function mr(e,t,n){if(0===e.h&&0===e.s)return e.s;let o;return o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,o>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100}function fr(e,t,n){let o;return o=n?e.v+.05*t:e.v-.15*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function hr(e,t={}){const n=[],o=new dr(e),r=o.toHsv();for(let e=5;e>0;e-=1){const t=new dr({h:pr(r,e,!0),s:mr(r,e,!0),v:fr(r,e,!0)});n.push(t)}n.push(o);for(let e=1;e<=4;e+=1){const t=new dr({h:pr(r,e),s:mr(r,e),v:fr(r,e)});n.push(t)}return"dark"===t.theme?ur.map(({index:e,amount:o})=>new dr(t.backgroundColor||"#141414").mix(n[e],o).toHexString()):n.map(e=>e.toHexString())}const gr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];vr.primary=vr[5];const br=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];br.primary=br[5];const yr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];yr.primary=yr[5];const xr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];xr.primary=xr[5];const wr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];wr.primary=wr[5];const Cr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Cr.primary=Cr[5];const $r=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];$r.primary=$r[5];const Sr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Sr.primary=Sr[5];const Er=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Er.primary=Er[5];const kr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];kr.primary=kr[5];const Nr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Nr.primary=Nr[5];const _r=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_r.primary=_r[5];const Ir=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ir.primary=Ir[5];const Pr={red:vr,volcano:br,orange:yr,gold:xr,yellow:wr,lime:Cr,green:$r,cyan:Sr,blue:Er,geekblue:kr,purple:Nr,magenta:_r,grey:Ir};function Rr(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:r,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,d=t(l),u=t(o),p=t(r),m=t(a),f=t(i),h=n(s,c),g=t(e.colorLink||e.colorInfo),v=new dr(m[1]).mix(new dr(m[3]),50).toHexString();return{...h,colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:v,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new dr("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}var Or=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function Dr(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1,...Or(o)}}var Mr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var Br=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const o=n-1,r=e*Math.E**(o/5),a=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(a/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:nr(e)}))}(e),n=t.map(e=>e.size),o=t.map(e=>e.lineHeight),r=n[1],a=n[0],i=n[2],l=o[1],s=o[0],c=o[2];return{fontSizeSM:a,fontSize:r,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*r),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function Tr(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const zr=(e,t)=>new dr(e).setA(t).toRgbString(),Ar=(e,t)=>new dr(e).darken(t).toHexString(),Lr=e=>{const t=hr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},jr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:zr(o,.88),colorTextSecondary:zr(o,.65),colorTextTertiary:zr(o,.45),colorTextQuaternary:zr(o,.25),colorFill:zr(o,.15),colorFillSecondary:zr(o,.06),colorFillTertiary:zr(o,.04),colorFillQuaternary:zr(o,.02),colorBgSolid:zr(o,1),colorBgSolidHover:zr(o,.75),colorBgSolidActive:zr(o,.95),colorBgLayout:Ar(n,4),colorBgContainer:Ar(n,0),colorBgElevated:Ar(n,0),colorBgSpotlight:zr(o,.85),colorBgBlur:"transparent",colorBorder:Ar(n,15),colorBorderDisabled:Ar(n,15),colorBorderSecondary:Ar(n,6)}};const Hr=Ht(function(e){gr.pink=gr.magenta,Pr.pink=Pr.magenta;const t=Object.keys(or).map(t=>{const n=e[t]===gr[t]?Pr[t]:hr(e[t]);return Array.from({length:10},()=>1).reduce((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e),{})}).reduce((e,t)=>e={...e,...t},{});return{...e,...t,...Rr(e,{generateColorPalettes:Lr,generateNeutralColorPalettes:jr}),...Br(e.fontSize),...Tr(e),...Mr(e),...Dr(e)}});var Fr=Hr;const Vr={token:rr,override:{override:rr},hashed:!0},Wr=s.default.createContext(Vr);function Kr(e){return e>=0&&e<=255}function qr(e,t){const{r:n,g:o,b:r,a:a}=new dr(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new dr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-i*(1-e))/e),a=Math.round((o-l*(1-e))/e),c=Math.round((r-s*(1-e))/e);if(Kr(t)&&Kr(a)&&Kr(c))return new dr({r:t,g:a,b:c,a:Math.round(100*e)/100}).toRgbString()}return new dr({r:n,g:o,b:r,a:1}).toRgbString()}const Ur={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Xr={motionBase:!0,motionUnit:!0},Gr={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Yr=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...a}=t;let i={...o,override:r};return i=function(e){const{override:t,...n}=e,o={...t};Object.keys(rr).forEach(e=>{delete o[e]});const r={...n,...o},a=1200,i=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:qr(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:qr(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:qr(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:qr(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new dr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new dr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new dr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...o}}(i),a&&Object.entries(a).forEach(([e,t])=>{const{theme:n,...o}=t;let r=o;n&&(r=Yr({...i,...o},{override:o},n)),i[e]=r}),i};function Zr(){const{token:e,hashed:t,theme:n,override:o,cssVar:r,zeroRuntime:a}=s.default.useContext(Wr),i={prefix:r?.prefix??"ant",key:r?.key??"css-var-root"},l=`6.1.4-${t||""}`,c=n||Fr,[d,u,p]=ln(c,[rr,e],{salt:l,override:o,getComputedToken:Yr,cssVar:{...i,unitless:Ur,ignore:Xr,preserve:Gr}});return[c,p,t?u:"",d,i,!!a]}const Qr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Jr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ea=(e,t)=>({outline:`${Ut(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),ta=(e,t)=>({"&:focus-visible":ea(e,t)}),na=e=>({[`.${e}`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},[`.${e} .${e}-icon`]:{display:"block"}}}),oa=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...ta(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:ra,genComponentStyleHook:aa,genSubStyleComponent:ia}=function(e){var n=e.useCSP,o=void 0===n?er:n,r=e.useToken,a=e.usePrefix,i=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function d(n,c,d){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(n)?n:[n,n],m=So(p,1)[0],f=p.join("-"),h=e.layer||{name:"antd"};return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,p=r(),g=p.theme,v=p.realToken,b=p.hashId,y=p.token,x=p.cssVar,w=p.zeroRuntime;if(t.useMemo(function(){return w},[]))return b;var C,$,S=a(),E=S.rootPrefixCls,k=S.iconPrefixCls,N=o(),_="css",I=(C=function(){var e=new Set;return Object.keys(u.unitless||{}).forEach(function(t){e.add(Gt(t,x.prefix)),e.add(Gt(t,Wo(m,x.prefix)))}),function(e,t){var n="css"===e?Fo:Vo;return function(e){return new n(e,t)}}(_,e)},$=[_,m,null==x?void 0:x.prefix],s.default.useMemo(function(){var e=Jo.get($);if(e)return e;var t=C();return Jo.set($,t),t},$)),P=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return Ut(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return Ut(e)}).join(","),")")}}}(_),R=P.max,O=P.min,D={theme:g,token:y,hashId:b,nonce:function(){return N.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};return"function"==typeof i&&xo(_o(_o({},D),{},{clientOnly:!1,path:["Shared",E]}),function(){return i(y,{prefix:{rootPrefixCls:E,iconPrefixCls:k},csp:N})}),xo(_o(_o({},D),{},{path:[f,e,k]}),function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,o=Yo;return qo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return Uo&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;Go[e]={global:Array.from(t),component:_o(_o({},null===(o=Go[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=t.token,r=t.flush,a=Zo(m,v,d),i=".".concat(e),s=Ko(m,v,a,{deprecatedTokens:u.deprecatedTokens});a&&"object"===$o(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat(Gt(e,Wo(m,x.prefix)),")")});var p=Xo(o,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(E),calc:I,max:R,min:O},a),f=c(p,{hashId:b,prefixCls:e,rootPrefixCls:E,iconPrefixCls:k});r(m,s);var h="function"==typeof l?l(p,e,n,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}),b}}return{genStyleHooks:function(e,n,o,a){var i=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var s=(null==a?void 0:a.unitless)||{},u=_o(_o({},"function"==typeof c?c(e):{}),{},ko({},l("zIndexPopup"),!0));Object.keys(s).forEach(function(e){u[l(e)]=s[e]});var p=_o(_o({},a),{},{unitless:u,prefixToken:l}),m=d(e,n,o,p),f=function(e,n,o){var a=o.unitless,i=o.prefixToken,l=o.ignore;return function(s){var c=r(),d=c.cssVar,u=c.realToken;return((e,n)=>{const{key:o,prefix:r,unitless:a,ignore:i,token:l,hashId:s,scope:c=""}=e,{cache:{instanceId:d},container:u,hashPriority:p}=t.useContext(Tt),{_tokenKey:m}=l,f=[...e.path,o,c,m],h=tn("cssVar",f,()=>{const e=n(),[t,l]=Zt(e,o,{prefix:r,unitless:a,ignore:i,scope:c,hashPriority:p,hashCls:s});return[t,l,yo(f,l),o]},([,,e])=>{qt&&Nt(e,{mark:Mt,attachTo:u})},([,e,t])=>{if(!e)return;const n=_t(e,t,{mark:Mt,prepend:"queue",attachTo:u,priority:-999});n[Bt]=d,n.setAttribute(Dt,o)})})({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:l,token:u,scope:s},function(){var t=Zo(e,u,n),r=Ko(e,u,t,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return t&&Object.keys(t).forEach(function(e){r[i(e)]=r[e],delete r[e]}),r}),null==d?void 0:d.key}}(i,o,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return[m(e,t),f(t)]}},genSubStyleComponent:function(e,t,n){var o=d(e,t,n,_o({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),r=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(r.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),r},genComponentStyleHook:d}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=t.useContext(ht);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,o,r,a]=Zr();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r,zeroRuntime:a}},useCSP:()=>{const{csp:e}=t.useContext(ht);return e??{}},getResetStyles:(e,t)=>{const n=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[n,{"&":n},na(t?.prefix.iconPrefixCls??mt)]},getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:r,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==o&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...l,...i,[r]:i}}},getCompUnitless:()=>Ur});function la(e,t){return tr.reduce((n,o)=>{const r=e[`${o}1`],a=e[`${o}3`],i=e[`${o}6`],l=e[`${o}7`];return{...n,...t(o,{lightColor:r,lightBorderColor:a,darkColor:i,textColor:l})}},{})}var sa=(e,t)=>{const[n,o]=Zr();return xo({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>na(e))};var ca=t.createContext({});function da(e){return e?.getRootNode?.()}function ua(e){return function(e){return da(e)instanceof ShadowRoot}(e)?da(e):null}function pa(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function ma(e={}){return Object.keys(e).reduce((t,n)=>{const o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=o;var r;return t},{})}function fa(e,t,n){return n?s.default.createElement(e.tag,{key:t,...ma(e.attrs),...n},(e.children||[]).map((n,o)=>fa(n,`${t}-${e.tag}-${o}`))):s.default.createElement(e.tag,{key:t,...ma(e.attrs)},(e.children||[]).map((n,o)=>fa(n,`${t}-${e.tag}-${o}`)))}function ha(e){return hr(e)[0]}function ga(e){return e?Array.isArray(e)?e:[e]:[]}const va={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const ba=e=>{const{icon:n,className:o,onClick:r,style:a,primaryColor:i,secondaryColor:s,...c}=e,d=l.useRef(null);let u=va;if(i&&(u={primaryColor:i,secondaryColor:s||ha(i)}),(e=>{const{csp:n,prefixCls:o,layer:r}=t.useContext(ca);let a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";o&&(a=a.replace(/anticon/g,o)),r&&(a=`@layer ${r} {\n${a}\n}`),t.useEffect(()=>{const t=ua(e.current);_t(a,"@ant-design-icons",{prepend:!r,csp:n,attachTo:t})},[])})(d),De(pa(n),`[@ant-design/icons] ${`icon should be icon definiton, but got ${n}`}`),!pa(n))return null;let p=n;return p&&"function"==typeof p.icon&&(p={...p,icon:p.icon(u.primaryColor,u.secondaryColor)}),fa(p.icon,`svg-${p.name}`,{className:o,onClick:r,style:a,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:d})};ba.displayName="IconReact",ba.getTwoToneColors=function(){return{...va}},ba.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){va.primaryColor=e,va.secondaryColor=t||ha(e),va.calculated=!!t};var ya=ba;function xa(e){const[t,n]=ga(e);return ya.setTwoToneColors({primaryColor:t,secondaryColor:n})}function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wa.apply(this,arguments)}xa(Er.primary);const Ca=l.forwardRef((e,t)=>{const{className:n,icon:o,spin:r,rotate:a,tabIndex:i,onClick:s,twoToneColor:c,...d}=e,{prefixCls:u="anticon",rootClassName:p}=l.useContext(ca),m=z(p,u,{[`${u}-${o.name}`]:!!o.name,[`${u}-spin`]:!!r||"loading"===o.name},n);let f=i;void 0===f&&s&&(f=-1);const h=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[g,v]=ga(c);return l.createElement("span",wa({role:"img","aria-label":o.name},d,{ref:t,tabIndex:f,onClick:s,className:m}),l.createElement(ya,{icon:o,primaryColor:g,secondaryColor:v,style:h}))});Ca.getTwoToneColor=function(){const e=ya.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ca.setTwoToneColor=xa,"production"!==process.env.NODE_ENV&&(Ca.displayName="AntdIcon");var $a=Ca,Sa={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ea.apply(this,arguments)}const ka=(e,t)=>l.createElement($a,Ea({},e,{ref:t,icon:Sa})),Na=l.forwardRef(ka);
|
|
11
|
-
/** */"production"!==process.env.NODE_ENV&&(Na.displayName="CloseCircleFilled");var _a=Na,Ia={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pa.apply(this,arguments)}const Ra=(e,t)=>l.createElement($a,Pa({},e,{ref:t,icon:Ia})),Oa=l.forwardRef(Ra);
|
|
12
|
-
/** */"production"!==process.env.NODE_ENV&&(Oa.displayName="CloseOutlined");var Da=Oa;const Ma=l.createContext({});function Ba({children:e,...t}){return l.createElement(Ma.Provider,{value:t},e)}const Ta="none",za="appear",Aa="enter",La="leave",ja="none",Ha="prepare",Fa="start",Va="active",Wa="end",Ka="prepared";function qa(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}const Ua=function(e,t){const n={animationend:qa("Animation","AnimationEnd"),transitionend:qa("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Q(),"undefined"!=typeof window?window:{});let Xa={};Q()&&({style:Xa}=document.createElement("div"));const Ga={};function Ya(e){if(Ga[e])return Ga[e];const t=Ua[e];if(t){const n=Object.keys(t),o=n.length;for(let r=0;r<o;r+=1){const o=n[r];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Xa)return Ga[e]=t[o],Ga[e]}}return""}const Za=Ya("animationend"),Qa=Ya("transitionend"),Ja=!(!Za||!Qa),ei=Za||"animationend",ti=Qa||"transitionend";function ni(e,t){if(!e)return null;if("object"==typeof e){const n=t.replace(/-\w/g,e=>e[1].toUpperCase());return e[n]}return`${e}-${t}`}const oi=Q()?t.useLayoutEffect:t.useEffect;const ri=[Ha,Fa,Va,Wa],ai=[Ha,Ka],ii=!1;function li(e){return e===Va||e===Wa}var si=(e,t,n)=>{const[o,r]=te(ja),[a,i]=(()=>{const e=l.useRef(null);function t(){ut.cancel(e.current)}return l.useEffect(()=>()=>{t()},[]),[function n(o,r=2){t();const a=ut(()=>{r<=1?o({isCanceled:()=>a!==e.current}):n(o,r-1)});e.current=a},t]})();const s=t?ai:ri;return oi(()=>{if(o!==ja&&o!==Wa){const e=s.indexOf(o),t=s[e+1],i=n(o);i===ii?r(t,!0):t&&a(e=>{function n(){e.isCanceled()||r(t,!0)}!0===i?n():Promise.resolve(i).then(n)})}},[e,o]),l.useEffect(()=>()=>{i()},[]),[function(){r(Ha,!0)},o]};function ci(e,n,o,{motionEnter:r=!0,motionAppear:a=!0,motionLeave:i=!0,motionDeadline:s,motionLeaveImmediately:c,onAppearPrepare:d,onEnterPrepare:u,onLeavePrepare:p,onAppearStart:m,onEnterStart:f,onLeaveStart:h,onAppearActive:g,onEnterActive:v,onLeaveActive:b,onAppearEnd:y,onEnterEnd:x,onLeaveEnd:w,onVisibleChanged:C}){const[$,S]=te(),[E,k]=function(e){const[,t]=l.useReducer(e=>e+1,0),n=l.useRef(e);return[Z(()=>n.current),Z(e=>{n.current="function"==typeof e?e(n.current):e,t()})]}(Ta),[N,_]=te(null),I=E(),P=t.useRef(!1),R=t.useRef(null);function O(){return o()}const D=t.useRef(!1);function M(){k(Ta),_(null,!0)}const B=Z(e=>{const t=E();if(t===Ta)return;const n=O();if(e&&!e.deadline&&e.target!==n)return;const o=D.current;let r;t===za&&o?r=y?.(n,e):t===Aa&&o?r=x?.(n,e):t===La&&o&&(r=w?.(n,e)),o&&!1!==r&&M()}),[T]=(e=>{const n=t.useRef();function o(t){t&&(t.removeEventListener(ti,e),t.removeEventListener(ei,e))}return l.useEffect(()=>()=>{o(n.current),n.current=null},[]),[function(t){n.current&&n.current!==t&&o(n.current),t&&t!==n.current&&(t.addEventListener(ti,e),t.addEventListener(ei,e),n.current=t)},o]})(B),z=e=>{switch(e){case za:return{[Ha]:d,[Fa]:m,[Va]:g};case Aa:return{[Ha]:u,[Fa]:f,[Va]:v};case La:return{[Ha]:p,[Fa]:h,[Va]:b};default:return{}}},A=l.useMemo(()=>z(I),[I]),[L,j]=si(I,!e,e=>{if(e===Ha){const e=A[Ha];return e?e(O()):ii}return j in A&&_(A[j]?.(O(),null)||null),j===Va&&I!==Ta&&(T(O()),s>0&&(clearTimeout(R.current),R.current=setTimeout(()=>{B({deadline:!0})},s))),j===Ka&&M(),true}),H=li(j);D.current=H;const F=t.useRef(null);oi(()=>{if(P.current&&F.current===n)return;S(n);const t=P.current;let o;P.current=!0,!t&&n&&a&&(o=za),t&&n&&r&&(o=Aa),(t&&!n&&i||!t&&c&&!n&&i)&&(o=La);const l=z(o);o&&(e||l[Ha])?(k(o),L()):k(Ta),F.current=n},[n]),t.useEffect(()=>{(I===za&&!a||I===Aa&&!r||I===La&&!i)&&k(Ta)},[a,r,i]),t.useEffect(()=>()=>{P.current=!1,clearTimeout(R.current)},[]);const V=l.useRef(!1);t.useEffect(()=>{$&&(V.current=!0),void 0!==$&&I===Ta&&((V.current||$)&&C?.($),V.current=!0)},[$,I]);let W=N;return A[Ha]&&j===Fa&&(W={transition:"none",...W}),[E,j,W,$??n]}var di=function(e){let n=e;"object"==typeof e&&({transitionSupport:n}=e);const o=l.forwardRef((e,o)=>{const{visible:r=!0,removeOnLeave:a=!0,forceRender:i,children:s,motionName:c,leavedClassName:d,eventProps:u}=e,{motion:p}=l.useContext(Ma),m=function(e,t){return!(!e.motionName||!n||!1===t)}(e,p),f=t.useRef();function h(){return qe(f.current)}const[g,v,b,y]=ci(m,r,h,e),x=g(),w=l.useRef(y);y&&(w.current=!0);const C=l.useMemo(()=>{const e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:h},inMotion:{enumerable:!0,get:()=>()=>g()!==Ta},enableMotion:{enumerable:!0,get:()=>()=>m}}),e},[]);let $;l.useImperativeHandle(o,()=>C,[]);const S={...u,visible:r};if(s)if(x===Ta)$=y?s({...S},f):!a&&w.current&&d?s({...S,className:d},f):i||!a&&!d?s({...S,style:{display:"none"}},f):null;else{let e;v===Ha?e="prepare":li(v)?e="active":v===Fa&&(e="start");const t=ni(c,`${x}-${e}`);$=s({...S,className:z(ni(c,x),{[t]:t&&e,[c]:"string"==typeof c}),style:b},f)}else $=null;if(l.isValidElement($)&&be($)){xe($)||($=l.cloneElement($,{ref:f}))}return $});return o.displayName="CSSMotion",o}(Ja);const ui="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError".split(/[\s\n]+/);function pi(e,t){return 0===e.indexOf(t)}function mi(e,t=!1){let n;n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const o={};return Object.keys(e).forEach(t=>{(n.aria&&("role"===t||pi(t,"aria-"))||n.data&&pi(t,"data-")||n.attr&&ui.includes(t))&&(o[t]=e[t])}),o}const fi={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};function hi(e){return hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hi(e)}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(t){bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bi(e,t,n){var o;return o=function(e,t){if("object"!=hi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=hi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==hi(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yi={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const xi={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...vi(vi({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"})},timePickerLocale:{...yi}};const wi="${label} is not a valid ${type}";var Ci={locale:"en",Pagination:fi,DatePicker:xi,TimePicker:yi,Calendar:xi,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:wi,method:wi,array:wi,object:wi,number:wi,date:wi,boolean:wi,integer:wi,float:wi,regexp:wi,email:wi,url:wi,hex:wi},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Ci.Modal;let $i=[];const Si=()=>$i.reduce((e,t)=>({...e,...t}),Ci.Modal);var Ei=t.createContext(void 0);var ki=(e,t)=>{const n=l.useContext(Ei),o=l.useMemo(()=>{const o=t||Ci[e],r=n?.[e]??{};return{..."function"==typeof o?o():o,...r||{}}},[e,t,n]);return[o,l.useMemo(()=>{const e=n?.locale;return n?.exist&&!e?Ci.locale:e},[n])]};const Ni="internalMark",_i=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;if("production"!==process.env.NODE_ENV){const e=Ve("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===Ni,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}l.useEffect(()=>{const e=function(e){if(e){const t={...e};return $i.push(t),Si(),()=>{$i=$i.filter(e=>e!==t),Si()}}Ci.Modal}(t?.Modal);return e},[t]);const r=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(Ei.Provider,{value:r},n)};"production"!==process.env.NODE_ENV&&(_i.displayName="LocaleProvider");var Ii=_i;function Pi(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}var Ri=e=>null!=e;const Oi=()=>s.default.useReducer(e=>e+1,0),Di=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((e,t)=>(Object.keys(t||{}).forEach(o=>{const r=n[o],a=t[o];if(r&&"object"==typeof r)if(a&&"object"==typeof a)e[o]=Di(r,e[o],a);else{const{_default:t}=r;t&&(e[o]=e[o]||{},e[o][t]=z(e[o][t],a))}else e[o]=z(e[o],a)}),e),{})},Mi=(e,...t)=>l.useMemo(()=>Di.apply(void 0,[e].concat(t)),[e].concat(t)),Bi=(...e)=>e.filter(Boolean).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),Ti=(...e)=>l.useMemo(()=>Bi.apply(void 0,e),[].concat(e)),zi=(e,t)=>{const n={...e};return Object.keys(t).forEach(e=>{if("_default"!==e){const o=t[e],r=n[e]||{};n[e]=o?zi(r,o):r}}),n},Ai=(e,t)=>"function"==typeof e?e(t):e,Li=(e,t,n,o)=>{const r=e.map(e=>e?Ai(e,n):void 0),a=t.map(e=>e?Ai(e,n):void 0),i=Mi.apply(void 0,[o].concat(at(r))),s=Ti.apply(void 0,at(a));return l.useMemo(()=>o?[zi(i,o),zi(s,o)]:[i,s],[i,s,o])},ji=e=>"horizontal"===e||"vertical"===e,Hi=(e,n,o)=>t.useMemo(()=>{let t;if(ji(e))t=e;else if("boolean"==typeof n)t=n?"vertical":"horizontal";else{t=ji(o)?o:"horizontal"}return[t,"vertical"===t]},[o,e,n]),Fi=(e,n)=>t.useImperativeHandle(e,()=>{const e=n(),{nativeElement:t}=e;return"undefined"!=typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=t)._antProxy=o._antProxy||{},Object.keys(r).forEach(e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}}),o);var o,r}),Vi=s.default.createContext(void 0);"production"!==process.env.NODE_ENV&&(Vi.displayName="zIndexContext");var Wi=Vi;const Ki=100,qi={Modal:Ki,Drawer:Ki,Popover:Ki,Popconfirm:Ki,Tooltip:Ki,Tour:Ki,FloatButton:Ki},Ui={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Xi=(e,t)=>{const[,n]=Zr(),o=s.default.useContext(Wi),r=(e=>e in qi)(e);let a;if(void 0!==t)a=[t,t];else{let i=o??0;i+=r?(o?0:n.zIndexPopupBase)+qi[e]:Ui[e],a=[void 0===o?t:i,i]}if("production"!==process.env.NODE_ENV){const o=Ve(e),r=n.zIndexPopupBase+1100,i=a[0]||0;"production"!==process.env.NODE_ENV&&o(void 0!==t||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function Gi(e){return e&&s.default.isValidElement(e)&&e.type===s.default.Fragment}function Yi(e,t){return((e,t,n)=>s.default.isValidElement(e)?s.default.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}function Zi(e){return Ri(e)&&e===e.window}var Qi=e=>{if("undefined"==typeof window)return 0;let t=0;return Zi(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Zi(e)&&"number"!=typeof t&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};var Ji=e=>`${e}-css-var`,el=t.createContext(void 0);const tl=l.createContext(null);let nl=!1;const ol=[];let rl;function al(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const o=n.style;let r,a;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){const n=getComputedStyle(e);o.scrollbarColor=n.scrollbarColor,o.scrollbarWidth=n.scrollbarWidth;const i=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(i.width,10),s=parseInt(i.height,10);try{const e=l?`width: ${i.width};`:"";_t(`\n#${t}::-webkit-scrollbar {\n${e}\n${s?`height: ${i.height};`:""}\n}`,t)}catch(e){r=l,a=s}}document.body.appendChild(n);const i=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,l=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Nt(t),{width:i,height:l}}function il(e){return"undefined"==typeof document?0:((e||void 0===rl)&&(rl=al()),rl.width)}function ll(e){return"undefined"!=typeof document&&e&&e instanceof Element?al(e):{width:0,height:0}}const sl=`rc-util-locker-${Date.now()}`;let cl=0;function dl(e){const t=!!e,[n]=l.useState(()=>(cl+=1,`${sl}_${cl}`));ee(()=>{if(t){const e=ll(document.body).width;_t(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,n)}else Nt(n);return()=>{Nt(n)}},[t,n])}let ul=0;const pl={...l}.useId;var ml=pl?function(e){const t=pl();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){const[t,n]=l.useState("ssr-id");return l.useEffect(()=>{const e=ul;ul+=1,n(`rc_unique_${e}`)},[]),e||("test"===process.env.NODE_ENV?"test-id":t)};let fl=[];let hl=0;process.env.NODE_ENV;const gl=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-hl<200)return;const t=fl.length;for(let n=t-1;n>=0;n-=1)fl[n].onEsc({top:n===t-1,event:e})}},vl=()=>{hl=Date.now()};function bl(e,n){const o=ml(),r=Z(n),a=()=>{fl.find(e=>e.id===o)||fl.push({id:o,onEsc:r})},i=()=>{fl=fl.filter(e=>e.id!==o)};t.useMemo(()=>{e?a():e||i()},[e]),t.useEffect(()=>{if(e)return a(),window.addEventListener("keydown",gl),window.addEventListener("compositionend",vl),()=>{i(),0===fl.length&&(window.removeEventListener("keydown",gl),window.removeEventListener("compositionend",vl))}},[e])}const yl=e=>!1!==e&&(Q()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null),xl=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:a,debug:i,autoDestroy:s=!0,children:c,onEsc:d}=e,[u,p]=l.useState(n),m=u||n;"production"!==process.env.NODE_ENV&&De(Q()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),l.useEffect(()=>{(s||n)&&p(n)},[n,s]);const[f,h]=l.useState(()=>yl(a));l.useEffect(()=>{const e=yl(a);h(()=>e??null)});const[g,v]=function(e,t){const[n]=l.useState(()=>{if(!Q())return null;const e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e}),o=l.useRef(!1),r=l.useContext(tl),[a,i]=l.useState(ol),s=r||(o.current?void 0:e=>{i(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){n.parentElement?.removeChild(n),o.current=!1}return ee(()=>(e?r?r(c):c():d(),d),[e]),ee(()=>{a.length&&(a.forEach(e=>e()),i(ol))},[a]),[n,s]}(m&&!f,i),b=f??g;dl(r&&n&&Q()&&(b===g||b===document.body)),bl(n,d);let y=null;c&&be(c)&&t&&(y=xe(c));const x=ve(y,t);if(!m||!Q()||void 0===f)return null;const w=!1===b||("boolean"==typeof C&&(nl=C),nl);var C;let $=c;return t&&($=l.cloneElement(c,{ref:x})),l.createElement(tl.Provider,{value:v},w?$:o.createPortal($,b))});function wl(e){const{prefixCls:t,align:n,arrow:o,arrowPos:r}=e,{className:a,content:i,style:s}=o||{},{x:c=0,y:d=0}=r,u=l.useRef(null);if(!n||!n.points)return null;const p={position:"absolute"};if(!1!==n.autoArrow){const e=n.points[0],t=n.points[1],o=e[0],r=e[1],a=t[0],i=t[1];o!==a&&["t","b"].includes(o)?"t"===o?p.top=0:p.bottom=0:p.top=d,r!==i&&["l","r"].includes(r)?"l"===r?p.left=0:p.right=0:p.left=c}return l.createElement("div",{ref:u,className:z(`${t}-arrow`,a),style:{...p,...s}},i)}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cl.apply(this,arguments)}function $l(e){const{prefixCls:t,open:n,zIndex:o,mask:r,motion:a,mobile:i}=e;return r?l.createElement(di,Cl({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>l.createElement("div",{style:{zIndex:o},className:z(`${t}-mask`,i&&`${t}-mobile-mask`,e)})):null}"production"!==process.env.NODE_ENV&&(xl.displayName="Portal");const Sl=l.memo(({children:e})=>e,(e,t)=>t.cache);function El(e,t,n,o,r,a,i,l){const s="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:s,bottom:s};if(!e&&(t||!n)){const{points:e}=o,t=o.dynamicInset||o._experimental?.dynamicInset,n=t&&"r"===e[0][1],d=t&&"b"===e[0][0];n?(c.right=r,c.left=s):(c.left=i,c.right=s),d?(c.bottom=a,c.top=s):(c.top=l,c.bottom=s)}return c}function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},kl.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Sl.displayName="PopupContent");const Nl=l.forwardRef((e,t)=>{const{onEsc:n,popup:o,className:r,prefixCls:a,style:i,target:s,onVisibleChanged:c,open:d,keepDom:u,fresh:p,onClick:m,mask:f,arrow:h,arrowPos:g,align:v,motion:b,maskMotion:y,mobile:x,forceRender:w,getPopupContainer:C,autoDestroy:$,portal:S,children:E,zIndex:k,onMouseEnter:N,onMouseLeave:_,onPointerEnter:I,onPointerDownCapture:P,ready:R,offsetX:O,offsetY:D,offsetR:M,offsetB:B,onAlign:T,onPrepare:A,onResize:L,stretch:j,targetWidth:H,targetHeight:F}=e,V="function"==typeof o?o():o,W=d||u,K=!!x,[q,U,X]=l.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[f,y,b],[x,f,y,b]),G=C?.length>0,[Y,Q]=l.useState(!C||!G);ee(()=>{!Y&&G&&s&&Q(!0)},[Y,G,s]);const J=Z((e,t)=>{L?.(e,t),T()}),te=El(K,R,d,v,M,B,O,D);if(!Y)return null;const ne={};return j&&(j.includes("height")&&F?ne.height=F:j.includes("minHeight")&&F&&(ne.minHeight=F),j.includes("width")&&H?ne.width=H:j.includes("minWidth")&&H&&(ne.minWidth=H)),d||(ne.pointerEvents="none"),l.createElement(S,{open:w||W,getContainer:C&&(()=>C(s)),autoDestroy:$,onEsc:n},l.createElement($l,{prefixCls:a,open:d,zIndex:k,mask:q,motion:U,mobile:K}),l.createElement(nt,{onResize:J,disabled:!d},e=>l.createElement(di,kl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:`${a}-hidden`},X,{onAppearPrepare:A,onEnterPrepare:A,visible:d,onVisibleChanged:e=>{b?.onVisibleChanged?.(e),c(e)}}),({className:n,style:o},s)=>{const c=z(a,n,r,{[`${a}-mobile`]:K});return l.createElement("div",{ref:ge(e,t,s),className:c,style:{"--arrow-x":`${g.x||0}px`,"--arrow-y":`${g.y||0}px`,...te,...ne,...o,boxSizing:"border-box",zIndex:k,...i},onMouseEnter:N,onMouseLeave:_,onPointerEnter:I,onClick:m,onPointerDownCapture:P},h&&l.createElement(wl,{prefixCls:a,arrow:h,arrowPos:g,align:v}),l.createElement(Sl,{cache:!d&&!p},V))})),E)});"production"!==process.env.NODE_ENV&&(Nl.displayName="Popup");const _l=l.createContext(null),Il=l.createContext(null);function Pl(e){return e?Array.isArray(e)?e:[e]:[]}var Rl=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1};function Ol(e=[],t=[],n){const o=(e,t)=>e[t]||"";return n?o(e,0)===o(t,0):o(e,0)===o(t,0)&&o(e,1)===o(t,1)}function Dl(e,t,n,o){const{points:r}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){const i=a[n];if(Ol(e[i]?.points,r,o))return`${t}-placement-${i}`}return""}function Ml(e){return e.ownerDocument.defaultView}function Bl(e){const t=[];let n=e?.parentElement;const o=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:e,overflowY:r,overflow:a}=Ml(n).getComputedStyle(n);[e,r,a].some(e=>o.includes(e))&&t.push(n),n=n.parentElement}return t}function Tl(e,t=1){return Number.isNaN(e)?t:e}function zl(e){return Tl(parseFloat(e),0)}function Al(e,t){const n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;const{overflow:t,overflowClipMargin:o,borderTopWidth:r,borderBottomWidth:a,borderLeftWidth:i,borderRightWidth:l}=Ml(e).getComputedStyle(e),s=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:d,offsetWidth:u,clientWidth:p}=e,m=zl(r),f=zl(a),h=zl(i),g=zl(l),v=Tl(Math.round(s.width/u*1e3)/1e3),b=Tl(Math.round(s.height/c*1e3)/1e3),y=(u-p-h-g)*v,x=(c-d-m-f)*b,w=m*b,C=f*b,$=h*v,S=g*v;let E=0,k=0;if("clip"===t){const e=zl(o);E=e*v,k=e*b}const N=s.x+$-E,_=s.y+w-k,I=N+s.width+2*E-$-S-y,P=_+s.height+2*k-w-C-x;n.left=Math.max(n.left,N),n.top=Math.max(n.top,_),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,P)}),n}function Ll(e,t=0){const n=`${t}`,o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function jl(e,t){const[n,o]=t||[];return[Ll(e.width,n),Ll(e.height,o)]}function Hl(e=""){return[e[0],e[1]]}function Fl(e,t){const n=t[0],o=t[1];let r,a;return a="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,{x:r,y:a}}function Vl(e,t){const n=[...e];return n[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",n}function Wl(e){return e.join("")}function Kl(e,t,n,o,r,a,i,s){const[c,d]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),u=l.useRef(0),p=l.useMemo(()=>!t||s?[]:Bl(t),[t]),m=l.useRef({});e||(m.current={});const f=Z(()=>{if(t&&n&&e&&!s){const l=t,c=l.ownerDocument,u=Ml(l),{position:f}=u.getComputedStyle(l),h=l.style.left,g=l.style.top,v=l.style.right,b=l.style.bottom,y=l.style.overflow,x={...r[o],...a},w=c.createElement("div");let C;if(l.parentElement?.appendChild(w),w.style.left=`${l.offsetLeft}px`,w.style.top=`${l.offsetTop}px`,w.style.position=f,w.style.height=`${l.offsetHeight}px`,w.style.width=`${l.offsetWidth}px`,l.style.left="0",l.style.top="0",l.style.right="auto",l.style.bottom="auto",l.style.overflow="hidden",Array.isArray(n))C={x:n[0],y:n[1],width:0,height:0};else{const Xe=n.getBoundingClientRect();Xe.x=Xe.x??Xe.left,Xe.y=Xe.y??Xe.top,C={x:Xe.x,y:Xe.y,width:Xe.width,height:Xe.height}}const $=l.getBoundingClientRect(),{height:S,width:E}=u.getComputedStyle(l);$.x=$.x??$.left,$.y=$.y??$.top;const{clientWidth:k,clientHeight:N,scrollWidth:_,scrollHeight:I,scrollTop:P,scrollLeft:R}=c.documentElement,O=$.height,D=$.width,M=C.height,B=C.width,T={left:0,top:0,right:k,bottom:N},z={left:-R,top:-P,right:_-R,bottom:I-P};let{htmlRegion:A}=x;const L="visible",j="visibleFirst";"scroll"!==A&&A!==j&&(A=L);const H=A===j,F=Al(z,p),V=Al(T,p),W=A===L?V:F,K=H?V:W;l.style.left="auto",l.style.top="auto",l.style.right="0",l.style.bottom="0";const q=l.getBoundingClientRect();l.style.left=h,l.style.top=g,l.style.right=v,l.style.bottom=b,l.style.overflow=y,l.parentElement?.removeChild(w);const U=Tl(Math.round(D/parseFloat(E)*1e3)/1e3),X=Tl(Math.round(O/parseFloat(S)*1e3)/1e3);if(0===U||0===X||Ke(n)&&!Rl(n))return;const{offset:G,targetOffset:Y}=x;let[Z,Q]=jl($,G);const[J,ee]=jl(C,Y);C.x-=J,C.y-=ee;const[te,ne]=x.points||[],oe=Hl(ne),re=Hl(te),ae=Fl(C,oe),ie=Fl($,re),le={...x};let se=[re,oe],ce=ae.x-ie.x+Z,de=ae.y-ie.y+Q;function ue(e,t,n=W){const o=$.x+e,r=$.y+t,a=o+D,i=r+O,l=Math.max(o,n.left),s=Math.max(r,n.top),c=Math.min(a,n.right),d=Math.min(i,n.bottom);return Math.max(0,(c-l)*(d-s))}const pe=ue(ce,de),me=ue(ce,de,V),fe=Fl(C,["t","l"]),he=Fl($,["t","l"]),ge=Fl(C,["b","r"]),ve=Fl($,["b","r"]),be=x.overflow||{},{adjustX:ye,adjustY:xe,shiftX:we,shiftY:Ce}=be,$e=e=>"boolean"==typeof e?e:e>=0;let Se,Ee,ke,Ne;function _e(){Se=$.y+de,Ee=Se+O,ke=$.x+ce,Ne=ke+D}_e();const Ie=$e(xe),Pe=re[0]===oe[0];if(Ie&&"t"===re[0]&&(Ee>K.bottom||m.current.bt)){let Ge=de;Pe?Ge-=O-M:Ge=fe.y-ve.y-Q;const Ye=ue(ce,Ge),Ze=ue(ce,Ge,V);Ye>pe||Ye===pe&&(!H||Ze>=me)?(m.current.bt=!0,de=Ge,Q=-Q,se=[Vl(se[0],0),Vl(se[1],0)]):m.current.bt=!1}if(Ie&&"b"===re[0]&&(Se<K.top||m.current.tb)){let Qe=de;Pe?Qe+=O-M:Qe=ge.y-he.y-Q;const Je=ue(ce,Qe),et=ue(ce,Qe,V);Je>pe||Je===pe&&(!H||et>=me)?(m.current.tb=!0,de=Qe,Q=-Q,se=[Vl(se[0],0),Vl(se[1],0)]):m.current.tb=!1}const Re=$e(ye),Oe=re[1]===oe[1];if(Re&&"l"===re[1]&&(Ne>K.right||m.current.rl)){let tt=ce;Oe?tt-=D-B:tt=fe.x-ve.x-Z;const nt=ue(tt,de),ot=ue(tt,de,V);nt>pe||nt===pe&&(!H||ot>=me)?(m.current.rl=!0,ce=tt,Z=-Z,se=[Vl(se[0],1),Vl(se[1],1)]):m.current.rl=!1}if(Re&&"r"===re[1]&&(ke<K.left||m.current.lr)){let rt=ce;Oe?rt+=D-B:rt=ge.x-he.x-Z;const at=ue(rt,de),it=ue(rt,de,V);at>pe||at===pe&&(!H||it>=me)?(m.current.lr=!0,ce=rt,Z=-Z,se=[Vl(se[0],1),Vl(se[1],1)]):m.current.lr=!1}le.points=[Wl(se[0]),Wl(se[1])],_e();const De=!0===we?0:we;"number"==typeof De&&(ke<V.left&&(ce-=ke-V.left-Z,C.x+B<V.left+De&&(ce+=C.x-V.left+B-De)),Ne>V.right&&(ce-=Ne-V.right-Z,C.x>V.right-De&&(ce+=C.x-V.right+De)));const Me=!0===Ce?0:Ce;"number"==typeof Me&&(Se<V.top&&(de-=Se-V.top-Q,C.y+M<V.top+Me&&(de+=C.y-V.top+M-Me)),Ee>V.bottom&&(de-=Ee-V.bottom-Q,C.y>V.bottom-Me&&(de+=C.y-V.bottom+Me)));const Be=$.x+ce,Te=Be+D,ze=$.y+de,Ae=ze+O,Le=C.x,je=Le+B,He=C.y,Fe=He+M,Ve=(Math.max(Be,Le)+Math.min(Te,je))/2-Be,We=(Math.max(ze,He)+Math.min(Ae,Fe))/2-ze;i?.(t,le);let qe=q.right-$.x-(ce+$.width),Ue=q.bottom-$.y-(de+$.height);1===U&&(ce=Math.round(ce),qe=Math.round(qe)),1===X&&(de=Math.round(de),Ue=Math.round(Ue));d({ready:!0,offsetX:ce/U,offsetY:de/X,offsetR:qe/U,offsetB:Ue/X,arrowX:Ve/U,arrowY:We/X,scaleX:U,scaleY:X,align:le})}}),h=()=>{d(e=>({...e,ready:!1}))};return ee(h,[o]),ee(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,()=>{u.current+=1;const e=u.current;Promise.resolve().then(()=>{u.current===e&&f()})}]}function ql(){const e=l.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return l.useEffect(()=>()=>{t()},[]),(n,o)=>{t(),0===o?n():e.current=setTimeout(()=>{n()},1e3*o)}}function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ul.apply(this,arguments)}const Xl=e=>{const{prefixCls:t,isMobile:n,ready:o,open:r,align:a,offsetR:i,offsetB:l,offsetX:c,offsetY:d,arrowPos:u,popupSize:p,motion:m,uniqueContainerClassName:f,uniqueContainerStyle:h}=e,g=`${t}-unique-container`,[v,b]=s.default.useState(!1),y=El(n,o,r,a,i,l,c,d),x=s.default.useRef(y);o&&(x.current=y);const w={};return p&&(w.width=p.width,w.height=p.height),s.default.createElement(di,Ul({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${g}-hidden`},m,{visible:r,onVisibleChanged:e=>{b(e)}}),({className:e,style:t})=>{const n=z(g,e,f,{[`${g}-visible`]:v});return s.default.createElement("div",{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...x.current,...w,...t,...h}})})},Gl=({children:e,postTriggerProps:t})=>{const[n,o,r,a]=function(){const[e,t]=s.default.useState(null),[n,o]=s.default.useState(!1),[r,a]=s.default.useState(!1),i=s.default.useRef(null),l=Z(e=>{!1===e?(i.current=null,o(!1)):r&&n?i.current=e:(o(!0),t(e),i.current=null,n||a(!0))}),c=Z(e=>{e?(a(!1),i.current&&(t(i.current),i.current=null)):(a(!1),i.current=null)});return[l,n,e,c]}(),i=l.useMemo(()=>r&&t?t(r):r,[r,t]),[c,d]=l.useState(null),[u,p]=l.useState(null),m=l.useRef(null),f=Z(e=>{m.current=e,Ke(e)&&c!==e&&d(e)}),h=l.useRef(null),g=ql(),v=Z((e,t)=>{h.current=t,g(()=>{n(e)},e.delay)}),b=e=>{g(()=>{h.current?.()||n(!1)},e)},y=Z(e=>{a(e)}),[x,w,C,$,S,E,k,,,N,_]=Kl(o,c,i?.target,i?.popupPlacement,i?.builtinPlacements||{},i?.popupAlign,void 0,!1),I=l.useMemo(()=>{if(!i)return"";return z(Dl(i.builtinPlacements||{},i.prefixCls||"",N,!1),i.getPopupClassNameFromAlign?.(N))},[N,i?.getPopupClassNameFromAlign,i?.builtinPlacements,i?.prefixCls]),P=l.useMemo(()=>({show:v,hide:b}),[]);l.useEffect(()=>{_()},[i?.target]);const R=Z(()=>(_(),Promise.resolve())),O=l.useRef({}),D=l.useContext(_l),M=l.useMemo(()=>({registerSubPopup:(e,t)=>{O.current[e]=t,D?.registerSubPopup(e,t)}}),[D]),B=i?.prefixCls;return l.createElement(Il.Provider,{value:P},e,i&&l.createElement(_l.Provider,{value:M},l.createElement(Nl,{ref:f,portal:xl,onEsc:i.onEsc,prefixCls:B,popup:i.popup,className:z(i.popupClassName,I,`${B}-unique-controlled`),style:i.popupStyle,target:i.target,open:o,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:x,offsetX:w,offsetY:C,offsetR:$,offsetB:S,onAlign:_,onPrepare:R,onResize:e=>p({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:E,y:k},align:N,zIndex:i.zIndex,mask:i.mask,arrow:i.arrow,motion:i.popupMotion,maskMotion:i.maskMotion,getPopupContainer:i.getPopupContainer},l.createElement(Xl,{prefixCls:B,isMobile:!1,ready:x,open:o,align:N,offsetR:$,offsetB:S,offsetX:w,offsetY:C,arrowPos:{x:E,y:k},popupSize:u,motion:i.popupMotion,uniqueContainerClassName:z(i.uniqueContainerClassName,I),uniqueContainerStyle:i.uniqueContainerStyle}))))};var Yl=function(e=xl){const t=l.forwardRef((t,n)=>{const{prefixCls:r="rc-trigger-popup",children:a,action:i="hover",showAction:s,hideAction:c,popupVisible:d,defaultPopupVisible:u,onOpenChange:p,afterOpenChange:m,onPopupVisibleChange:f,afterPopupVisibleChange:h,mouseEnterDelay:g,mouseLeaveDelay:v=.1,focusDelay:b,blurDelay:y,mask:x,maskClosable:w=!0,getPopupContainer:C,forceRender:$,autoDestroy:S,popup:E,popupClassName:k,uniqueContainerClassName:N,uniqueContainerStyle:_,popupStyle:I,popupPlacement:P,builtinPlacements:R={},popupAlign:O,zIndex:D,stretch:M,getPopupClassNameFromAlign:B,fresh:T,unique:A,alignPoint:L,onPopupClick:j,onPopupAlign:H,arrow:F,popupMotion:V,maskMotion:W,mobile:K,...q}=t,U=S||!1,X=void 0===d,G=!!K,Y=l.useRef({}),Q=l.useContext(_l),J=l.useMemo(()=>({registerSubPopup:(e,t)=>{Y.current[e]=t,Q?.registerSubPopup(e,t)}}),[Q]),te=l.useContext(Il),oe=ml(),[re,ae]=l.useState(null),ie=l.useRef(null),le=Z(e=>{ie.current=e,Ke(e)&&re!==e&&ae(e),Q?.registerSubPopup(oe,e)}),[se,ce]=l.useState(null),de=l.useRef(null),ue=Z(e=>{Ke(e)&&se!==e&&(ce(e),de.current=e)}),pe={},me=Z(e=>{const t=se;return t?.contains(e)||ua(t)?.host===e||e===t||re?.contains(e)||ua(re)?.host===e||e===re||Object.values(Y.current).some(t=>t?.contains(e)||e===t)}),fe=F?{...!0!==F?F:{}}:null,[he,ge]=ne(u||!1,d),ve=he||!1,be=l.useMemo(()=>{const e="function"==typeof a?a({open:ve}):a;return l.Children.only(e)},[a,ve]),ye=be?.props||{},xe=Z(()=>ve),we=Z((e=0)=>({popup:E,target:se,delay:e,prefixCls:r,popupClassName:k,uniqueContainerClassName:N,uniqueContainerStyle:_,popupStyle:I,popupPlacement:P,builtinPlacements:R,popupAlign:O,zIndex:D,mask:x,maskClosable:w,popupMotion:V,maskMotion:W,arrow:fe,getPopupContainer:C,getPopupClassNameFromAlign:B,id:oe,onEsc:ke}));ee(()=>{te&&A&&se&&!X&&!Q&&(ve?te.show(we(g),xe):te.hide(v))},[ve,se]);const Ce=l.useRef(ve);Ce.current=ve;const $e=Z(e=>{o.flushSync(()=>{ve!==e&&(ge(e),p?.(e),f?.(e))})}),Se=ql(),Ee=(e,t=0)=>{void 0===d&&te&&A&&X&&!Q?e?te.show(we(t),xe):te.hide(t):Se(()=>{$e(e)},t)};function ke({top:e}){e&&Ee(!1)}const[Ne,_e]=l.useState(!1);ee(e=>{e&&!ve||_e(!0)},[ve]);const[Ie,Re]=l.useState(null),[Oe,De]=l.useState(null),Me=e=>{De([e.clientX,e.clientY])},[Be,Te,ze,Ae,Le,je,He,Fe,Ve,We,qe]=Kl(ve,re,L&&null!==Oe?Oe:se,P,R,O,H,G),[Ue,Xe]=function(e,t,n){return l.useMemo(()=>{const o=Pl(t??e),r=Pl(n??e),a=new Set(o),i=new Set(r);return a.has("hover")&&!a.has("click")&&a.add("touch"),i.has("hover")&&!i.has("click")&&i.add("touch"),[a,i]},[e,t,n])}(i,s,c),Ge=Ue.has("click"),Ye=Xe.has("click")||Xe.has("contextMenu"),Ze=Z(()=>{Ne||qe()});!function(e,t,n,o,r){ee(()=>{if(e&&t&&n){const a=n,i=Bl(t),l=Bl(a),s=Ml(a),c=new Set([s,...i,...l]);function d(){o(),r()}return c.forEach(e=>{e.addEventListener("scroll",d,{passive:!0})}),s.addEventListener("resize",d,{passive:!0}),o(),()=>{c.forEach(e=>{e.removeEventListener("scroll",d),s.removeEventListener("resize",d)})}}},[e,t,n])}(ve,se,re,Ze,()=>{Ce.current&&L&&Ye&&Ee(!1)}),ee(()=>{Ze()},[Oe,P]),ee(()=>{ve&&!R?.[P]&&Ze()},[JSON.stringify(O)]);const Qe=l.useMemo(()=>z(Dl(R,r,We,L),B?.(We)),[We,B,R,r,L]);l.useImperativeHandle(n,()=>({nativeElement:de.current,popupElement:ie.current,forceAlign:Ze}));const[Je,et]=l.useState(0),[tt,ot]=l.useState(0),rt=()=>{if(M&&se){const e=se.getBoundingClientRect();et(e.width),ot(e.height)}};function at(e,t,n,o,r){pe[e]=(a,...i)=>{r&&r()||(o?.(a),Ee(t,n)),ye[e]?.(a,...i)}}ee(()=>{Ie&&(qe(),Ie(),Re(null))},[Ie]);const it=Ue.has("touch"),lt=Xe.has("touch"),st=l.useRef(!1);(it||lt)&&(pe.onTouchStart=(...e)=>{st.current=!0,Ce.current&<?Ee(!1):!Ce.current&&it&&Ee(!0),ye.onTouchStart?.(...e)}),(Ge||Ye)&&(pe.onClick=(e,...t)=>{Ce.current&&Ye?Ee(!1):!Ce.current&&Ge&&(Me(e),Ee(!0)),ye.onClick?.(e,...t),st.current=!1});const ct=function(e,t,n,o,r,a,i,s){const c=l.useRef(e);c.current=e;const d=l.useRef(!1);return l.useEffect(()=>{if(t&&o&&(!r||a)){const e=()=>{d.current=!1},t=e=>{!c.current||i(e.composedPath?.()?.[0]||e.target)||d.current||s(!1)},r=Ml(o);r.addEventListener("pointerdown",e,!0),r.addEventListener("mousedown",t,!0),r.addEventListener("contextmenu",t,!0);const a=ua(n);if(a&&(a.addEventListener("mousedown",t,!0),a.addEventListener("contextmenu",t,!0)),"production"!==process.env.NODE_ENV&&n){const e=n.getRootNode?.(),t=o.getRootNode?.();Pe(e===t,"trigger element and popup element should in same shadow root.")}return()=>{r.removeEventListener("pointerdown",e,!0),r.removeEventListener("mousedown",t,!0),r.removeEventListener("contextmenu",t,!0),a&&(a.removeEventListener("mousedown",t,!0),a.removeEventListener("contextmenu",t,!0))}}},[t,n,o,r,a]),function(){d.current=!0}}(ve,Ye||lt,se,re,x,w,me,Ee),dt=Ue.has("hover"),ut=Xe.has("hover");let pt,mt;const ft=()=>st.current;if(dt){const e=e=>{Me(e)};at("onMouseEnter",!0,g,e,ft),at("onPointerEnter",!0,g,e,ft),pt=e=>{(ve||Ne)&&re?.contains(e.target)&&Ee(!0,g)},L&&(pe.onMouseMove=e=>{ye.onMouseMove?.(e)})}ut&&(at("onMouseLeave",!1,v,void 0,ft),at("onPointerLeave",!1,v,void 0,ft),mt=()=>{Ee(!1,v)}),Ue.has("focus")&&at("onFocus",!0,b),Xe.has("focus")&&at("onBlur",!1,y),Ue.has("contextMenu")&&(pe.onContextMenu=(e,...t)=>{Ce.current&&Xe.has("contextMenu")?Ee(!1):(Me(e),Ee(!0)),e.preventDefault(),ye.onContextMenu?.(e,...t)});const ht=l.useRef(!1);ht.current||=$||ve||Ne;const gt={...ye,...pe},vt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{q[e]&&(vt[e]=(...t)=>{gt[e]?.(...t),q[e](...t)})});const bt={x:je,y:He},yt=l.cloneElement(be,{...gt,...vt});return l.createElement(l.Fragment,null,l.createElement(nt,{disabled:!ve,ref:ue,onResize:()=>{rt(),Ze()}},yt),ht.current&&(!te||!A)&&l.createElement(_l.Provider,{value:J},l.createElement(Nl,{portal:e,ref:le,prefixCls:r,popup:E,className:z(k,!G&&Qe),style:I,target:se,onMouseEnter:pt,onMouseLeave:mt,onPointerEnter:pt,zIndex:D,open:ve,keepDom:Ne,fresh:T,onClick:j,onPointerDownCapture:ct,mask:x,motion:V,maskMotion:W,onVisibleChanged:e=>{_e(!1),qe(),m?.(e),h?.(e)},onPrepare:()=>new Promise(e=>{rt(),Re(()=>e)}),forceRender:$,autoDestroy:U,getPopupContainer:C,onEsc:ke,align:We,arrow:fe,arrowPos:bt,ready:Be,offsetX:Te,offsetY:ze,offsetR:Ae,offsetB:Le,onAlign:Ze,stretch:M,targetWidth:Je/Fe,targetHeight:tt/Ve,mobile:K})))});return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(xl);var Zl=({children:e})=>{const{getPrefixCls:t}=s.default.useContext(ht),n=t();return s.default.isValidElement(e)?s.default.createElement(di,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>{const{className:o,style:r}=e.props,a={...r,...t};return s.default.cloneElement(e,{className:z(o,n),style:a})}):e};const Ql=[null,null];var Jl=({children:e})=>s.default.createElement(Gl,{postTriggerProps:e=>{const t="function"==typeof e.popup?e.popup():e.popup,{id:n,builtinPlacements:o}=e,r=function(e){if(Ql[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Ql[0]=e,Ql[1]=t}return Ql[1]}(o);return{...e,getPopupContainer:null,arrow:!1,popup:s.default.createElement(Zl,{key:n},t),builtinPlacements:r}}},e);const es=l.createContext(!1),ts=({children:e,disabled:t})=>{const n=l.useContext(es);return l.createElement(es.Provider,{value:t??n},e)};var ns=es;const os=l.createContext(void 0),rs=({children:e,size:t})=>{const n=l.useContext(os);return l.createElement(os.Provider,{value:t||n},e)};var as=os;const is=l.createContext(!0);function ls(e){const t=l.useContext(is),{children:n}=e,[,o]=Zr(),{motion:r}=o,a=l.useRef(!1);return a.current||(a.current=t!==r),a.current?l.createElement(is.Provider,{value:r},l.createElement(Ba,{motion:r},n)):n}"production"!==process.env.NODE_ENV&&(is.displayName="MotionCacheContext");const ss=l.memo(({dropdownMatchSelectWidth:e})=>(Ve("ConfigProvider").deprecated(void 0===e,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));"production"!==process.env.NODE_ENV&&(ss.displayName="PropWarning");var cs="production"!==process.env.NODE_ENV?ss:()=>null;let ds=!1;process.env.NODE_ENV;const us=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],ps=e=>{const{children:n,csp:o,autoInsertSpaceInButton:r,alert:a,affix:i,anchor:s,form:c,locale:d,componentSize:u,direction:p,space:m,splitter:f,virtual:h,dropdownMatchSelectWidth:g,popupMatchSelectWidth:v,popupOverflow:b,legacyLocale:y,parentContext:x,iconPrefixCls:w,theme:C,componentDisabled:$,segmented:S,statistic:E,spin:k,calendar:N,carousel:_,cascader:I,collapse:P,typography:R,checkbox:O,descriptions:D,divider:M,drawer:B,skeleton:T,steps:z,image:A,layout:L,list:j,mentions:H,modal:F,progress:V,result:W,slider:K,breadcrumb:q,masonry:U,menu:X,pagination:G,input:Y,textArea:Z,otp:Q,empty:J,badge:ee,radio:te,rate:ne,ribbon:oe,switch:re,transfer:ae,avatar:ie,message:le,tag:se,table:de,card:ue,cardMeta:pe,tabs:me,timeline:fe,timePicker:he,upload:ge,notification:ve,tree:be,colorPicker:ye,datePicker:xe,rangePicker:we,flex:Ce,wave:$e,dropdown:Se,warning:Ee,tour:ke,tooltip:_e,popover:Ie,popconfirm:Pe,qrcode:Re,floatButton:Oe,floatButtonGroup:De,variant:Me,inputNumber:Be,treeSelect:Te,watermark:ze}=e,Ae=l.useCallback((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||x.getPrefixCls("");return t?`${r}-${t}`:r},[x.getPrefixCls,e.prefixCls]),Le=w||x.iconPrefixCls||mt,je=o||x.csp;sa(Le,je);const He=function(e,n,o){const r=Ve("ConfigProvider"),a=e||{},i=!1!==a.inherit&&n?n:{...Vr,hashed:n?.hashed??Vr.hashed,cssVar:n?.cssVar},l=t.useId();if("production"!==process.env.NODE_ENV){const e=a.cssVar||i.cssVar,t=!!("object"==typeof a.cssVar&&a.cssVar?.key||l);"production"!==process.env.NODE_ENV&&r(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ce(()=>{if(!e)return n;const t={...i.components};Object.keys(e.components||{}).forEach(n=>{t[n]={...t[n],...e.components[n]}});const r=`css-var-${l.replace(/:/g,"")}`,s={prefix:o?.prefixCls,...i.cssVar,...a.cssVar,key:a.cssVar?.key||r};return{...i,...a,token:{...i.token,...a.token},components:t,cssVar:s}},[a,i],(e,t)=>e.some((e,n)=>!It(e,t[n],!0)))}(C,x.theme,{prefixCls:Ae("")});"production"!==process.env.NODE_ENV&&(ds=ds||!!He);const We={csp:je,autoInsertSpaceInButton:r,alert:a,affix:i,anchor:s,locale:d||y,direction:p,space:m,splitter:f,virtual:h,popupMatchSelectWidth:v??g,popupOverflow:b,getPrefixCls:Ae,iconPrefixCls:Le,theme:He,segmented:S,statistic:E,spin:k,calendar:N,carousel:_,cascader:I,collapse:P,typography:R,checkbox:O,descriptions:D,divider:M,drawer:B,skeleton:T,steps:z,image:A,input:Y,textArea:Z,otp:Q,layout:L,list:j,mentions:H,modal:F,progress:V,result:W,slider:K,breadcrumb:q,masonry:U,menu:X,pagination:G,empty:J,badge:ee,radio:te,rate:ne,ribbon:oe,switch:re,transfer:ae,avatar:ie,message:le,tag:se,table:de,card:ue,cardMeta:pe,tabs:me,timeline:fe,timePicker:he,upload:ge,notification:ve,tree:be,colorPicker:ye,datePicker:xe,rangePicker:we,flex:Ce,wave:$e,dropdown:Se,warning:Ee,tour:ke,tooltip:_e,popover:Ie,popconfirm:Pe,qrcode:Re,floatButton:Oe,floatButtonGroup:De,variant:Me,inputNumber:Be,treeSelect:Te,watermark:ze};if("production"!==process.env.NODE_ENV){Ve("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Ke={...x};Object.keys(We).forEach(e=>{void 0!==We[e]&&(Ke[e]=We[e])}),us.forEach(t=>{const n=e[t];n&&(Ke[t]=n)}),void 0!==r&&(Ke.button={autoInsertSpace:r,...Ke.button});const qe=ce(()=>Ke,Ke,(e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some(n=>e[n]!==t[n])}),{layer:Ue}=l.useContext(Tt),Xe=l.useMemo(()=>({prefixCls:Le,csp:je,layer:Ue?"antd":void 0}),[Le,je,Ue]);let Ge=l.createElement(l.Fragment,null,l.createElement(cs,{dropdownMatchSelectWidth:g}),n);const Ye=l.useMemo(()=>Ne(Ci.Form?.defaultValidateMessages||{},qe.locale?.Form?.defaultValidateMessages||{},qe.form?.validateMessages||{},c?.validateMessages||{}),[qe,c?.validateMessages]);Object.keys(Ye).length>0&&(Ge=l.createElement(el.Provider,{value:Ye},Ge)),d&&(Ge=l.createElement(Ii,{locale:d,_ANT_MARK__:Ni},Ge)),(Le||je)&&(Ge=l.createElement(ca.Provider,{value:Xe},Ge)),u&&(Ge=l.createElement(rs,{size:u},Ge)),Ge=l.createElement(ls,null,Ge),_e?.unique&&(Ge=l.createElement(Jl,null,Ge));const Ze=l.useMemo(()=>{const{algorithm:e,token:t,components:n,cssVar:o,...r}=He||{},a=e&&(!Array.isArray(e)||e.length>0)?Ht(e):Fr,i={};Object.entries(n||{}).forEach(([e,t])=>{const n={...t};"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=Ht(n.algorithm)),delete n.algorithm),i[e]=n});const l={...rr,...t};return{...r,theme:a,token:l,components:i,override:{override:l,...i},cssVar:o}},[He]);return C&&(Ge=l.createElement(Wr.Provider,{value:Ze},Ge)),qe.warning&&(Ge=l.createElement(Fe.Provider,{value:qe.warning},Ge)),void 0!==$&&(Ge=l.createElement(ts,{disabled:$},Ge)),l.createElement(ht.Provider,{value:qe},Ge)},ms=e=>{const t=l.useContext(ht),n=l.useContext(Ei);return l.createElement(ps,{parentContext:t,legacyLocale:n,...e})};ms.ConfigContext=ht,ms.SizeContext=as,ms.config=e=>{},ms.useConfig=function(){return{componentDisabled:t.useContext(ns),componentSize:t.useContext(as)}},Object.defineProperty(ms,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&We(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),as)}),"production"!==process.env.NODE_ENV&&(ms.displayName="ConfigProvider");var fs=ms;const hs={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=hs.F1&&t<=hs.F12)return!1;switch(t){case hs.ALT:case hs.CAPS_LOCK:case hs.CONTEXT_MENU:case hs.CTRL:case hs.DOWN:case hs.END:case hs.ESC:case hs.HOME:case hs.INSERT:case hs.LEFT:case hs.MAC_FF_META:case hs.META:case hs.NUMLOCK:case hs.NUM_CENTER:case hs.PAGE_DOWN:case hs.PAGE_UP:case hs.PAUSE:case hs.PRINT_SCREEN:case hs.RIGHT:case hs.SHIFT:case hs.UP:case hs.WIN_KEY:case hs.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=hs.ZERO&&e<=hs.NINE)return!0;if(e>=hs.NUM_ZERO&&e<=hs.NUM_MULTIPLY)return!0;if(e>=hs.A&&e<=hs.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case hs.SPACE:case hs.QUESTION_MARK:case hs.NUM_PLUS:case hs.NUM_MINUS:case hs.NUM_PERIOD:case hs.NUM_DIVISION:case hs.SEMICOLON:case hs.DASH:case hs.EQUALS:case hs.COMMA:case hs.PERIOD:case hs.SLASH:case hs.APOSTROPHE:case hs.SINGLE_QUOTE:case hs.OPEN_SQUARE_BRACKET:case hs.BACKSLASH:case hs.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){const t=e.target;if(!(t instanceof HTMLElement))return!1;const n=t.tagName;return!("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n&&!t.isContentEditable)}};var gs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vs.apply(this,arguments)}const bs=(e,t)=>l.createElement($a,vs({},e,{ref:t,icon:gs})),ys=l.forwardRef(bs);
|
|
13
|
-
/** */"production"!==process.env.NODE_ENV&&(ys.displayName="LoadingOutlined");var xs=ys;const ws="__rc_react_root__";const Cs=()=>({height:0,opacity:0}),$s=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ss=e=>({height:e?e.offsetHeight:0}),Es=(e,t)=>!0===t?.deadline||"height"===t.propertyName,ks=(e=pt)=>({motionName:`${e}-motion-collapse`,onAppearStart:Cs,onEnterStart:Cs,onAppearActive:$s,onEnterActive:$s,onLeaveStart:Ss,onLeaveActive:Cs,onAppearEnd:Es,onEnterEnd:Es,onLeaveEnd:Es,motionDeadline:500}),Ns=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var _s=aa("Wave",e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}});const Is=`${pt}-wave-target`;function Ps(e){return e&&"string"==typeof e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function Rs(e){return Number.isNaN(e)?0:e}const Os=e=>{const{className:t,target:n,component:o,colorSource:r}=e,a=l.useRef(null),[i,s]=l.useState(null),[c,d]=l.useState([]),[u,p]=l.useState(0),[m,f]=l.useState(0),[h,g]=l.useState(0),[v,b]=l.useState(0),[y,x]=l.useState(!1),w={left:u,top:m,width:h,height:v,borderRadius:c.map(e=>`${e}px`).join(" ")};function C(){const e=getComputedStyle(n);s(function(e,t=null){const n=getComputedStyle(e),{borderTopColor:o,borderColor:r,backgroundColor:a}=n;return t&&Ps(n[t])?n[t]:[o,r,a].find(Ps)??null}(n,r));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:a}=e;p(t?n.offsetLeft:Rs(-Number.parseFloat(o))),f(t?n.offsetTop:Rs(-Number.parseFloat(a))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([i,l,u,c].map(e=>Rs(Number.parseFloat(e))))}if(i&&(w["--wave-color"]=i),l.useEffect(()=>{if(n){const e=ut(()=>{C(),x(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(n)),()=>{ut.cancel(e),t?.disconnect()}}},[n]),!y)return null;const $=("Checkbox"===o||"Radio"===o)&&n?.classList.contains(Is);return l.createElement(di,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||"opacity"===t.propertyName){const e=a.current?.parentElement;(async function(e){return Promise.resolve().then(()=>{e[ws]?.unmount(),delete e[ws]})})(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>l.createElement("div",{ref:ge(a,n),className:z(t,e,{"wave-quick":$}),style:w}))};var Ds=(e,t)=>{const{component:n}=t;if("Checkbox"===n&&!e.querySelector("input")?.checked)return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild),function(e,t){const n=t[ws]||r.createRoot(t);n.render(e),t[ws]=n}(l.createElement(Os,{...t,target:e}),o)};var Ms=(e,t,n,o)=>{const{wave:r}=l.useContext(ht),[,a,i]=Zr(),s=Z(l=>{const s=e.current;if(r?.disabled||!s)return;const c=s.querySelector(`.${Is}`)||s,{showEffect:d}=r||{};(d||Ds)(c,{className:t,token:a,component:n,event:l,hashId:i,colorSource:o})}),c=l.useRef(null);l.useEffect(()=>()=>{ut.cancel(c.current)},[]);return e=>{ut.cancel(c.current),c.current=ut(()=>{s(e)})}};const Bs=e=>{const{children:n,disabled:o,component:r,colorSource:a}=e,{getPrefixCls:i}=t.useContext(ht),l=t.useRef(null),c=i("wave"),d=_s(c),u=Ms(l,z(c,d),r,a);if(s.default.useEffect(()=>{const e=l.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||o)return;const t=t=>{!Rl(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[o]),!s.default.isValidElement(n))return n??null;return Yi(n,{ref:be(n)?ge(xe(n),l):l})};"production"!==process.env.NODE_ENV&&(Bs.displayName="Wave");var Ts=Bs;var zs=e=>{const t=s.default.useContext(as);return s.default.useMemo(()=>e?"string"==typeof e?e??t:"function"==typeof e?e(t):t:t,[e,t])};const As=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}};var Ls=ra(["Space","Compact"],e=>[As(e)],()=>({}),{resetStyle:!1});const js=l.createContext(null),Hs=(e,t)=>{const n=l.useContext(js),o=l.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:a}=n,i="vertical"===o?"-vertical-":"-";return z(`${e}-compact${i}item`,{[`${e}-compact${i}first-item`]:r,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:o}},Fs=e=>{const{children:t}=e;return l.createElement(js.Provider,{value:null},t)},Vs=e=>{const{children:t,...n}=e;return l.createElement(js.Provider,{value:l.useMemo(()=>n,[n])},t)},Ws=l.createContext(void 0);var Ks=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ht),{prefixCls:o,size:r,className:a,...i}=e,s=t("btn-group",o),[,,c]=Zr(),d=l.useMemo(()=>{switch(r){case"large":return"lg";case"small":return"sm";default:return""}},[r]);if("production"!==process.env.NODE_ENV){const e=Ve("Button.Group");e.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&e(!r||["large","small","middle"].includes(r),"usage","Invalid prop `size`.")}const u=z(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:"rtl"===n},a,c);return l.createElement(Ws.Provider,{value:r},l.createElement("div",{...i,className:u}))};const qs=/^[\u4E00-\u9FA5]{2}$/,Us=qs.test.bind(qs);function Xs(e){return"string"==typeof e}function Gs(e){return"text"===e||"link"===e}function Ys(e,t,n,o){let r=!1;const a=[];return s.default.Children.forEach(e,e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=a.length-1,n=a[t];a[t]=`${n}${e}`}else a.push(e);r=n}),s.default.Children.map(a,e=>function(e,t,n,o){if(!Ri(e)||""===e)return;const r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Xs(e.type)&&Us(e.props.children)?Yi(e,e=>({...e,children:e.children.split("").join(r),className:o,style:n})):Xs(e)?s.default.createElement("span",{className:o,style:n},Us(e)?e.split("").join(r):e):Gi(e)?s.default.createElement("span",{className:o,style:n},e):Yi(e,e=>({...e,className:z(e.className,o)||void 0,style:{...e.style,...n}}))}(e,t,n,o))}["default","primary","danger"].concat(at(tr));const Zs=t.forwardRef((e,t)=>{const{className:n,style:o,children:r,prefixCls:a}=e,i=z(`${a}-icon`,n);return s.default.createElement("span",{ref:t,className:i,style:o},r)});var Qs=Zs;const Js=t.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:r,iconClassName:a}=e,i=z(`${n}-loading-icon`,o);return s.default.createElement(Qs,{prefixCls:n,className:i,style:r,ref:t},s.default.createElement(xs,{className:a}))}),ec=()=>({width:0,opacity:0,transform:"scale(0)"}),tc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var nc=e=>{const{prefixCls:t,loading:n,existIcon:o,className:r,style:a,mount:i}=e,l=!!n;return o?s.default.createElement(Js,{prefixCls:t,className:r,style:a}):s.default.createElement(di,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:ec,onAppearActive:tc,onEnterStart:ec,onEnterActive:tc,onLeaveStart:tc,onLeaveActive:ec},({className:e,style:n},o)=>{const i={...a,...n};return s.default.createElement(Js,{prefixCls:t,className:z(r,e),style:i,ref:o})})};const oc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var rc=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},oc(`${t}-primary`,r),oc(`${t}-danger`,a)]}};const ac=e=>Math.round(Number(e||0));class ic extends dr{constructor(e){super((e=>{if(e instanceof dr)return e;if(e&&"object"==typeof e&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e})(e))}toHsbString(){const e=this.toHsb(),t=ac(100*e.s),n=ac(100*e.b),o=ac(e.h),r=e.a,a=`hsb(${o}, ${t}%, ${n}%)`,i=`hsba(${o}, ${t}%, ${n}%, ${r.toFixed(0===r?0:2)})`;return 1===r?a:i}toHsb(){const{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}const lc="rc-color-picker",sc=e=>e instanceof ic?e:new ic(e),cc=sc("#1677ff"),dc=e=>{const{offset:t,targetRef:n,containerRef:o,color:r,type:a}=e,{width:i,height:l}=o.current.getBoundingClientRect(),{width:s,height:c}=n.current.getBoundingClientRect(),d=s/2,u=c/2,p=(t.x+d)/i,m=1-(t.y+u)/l,f=r.toHsb(),h=p,g=(t.x+d)/i*360;if(a)switch(a){case"hue":return sc({...f,h:g<=0?0:g});case"alpha":return sc({...f,a:h<=0?0:h})}return sc({h:f.h,s:p<=0?0:p,b:m>=1?1:m,a:f.a})},uc=(e,t)=>{const n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},pc=({color:e,prefixCls:t,className:n,style:o,onClick:r})=>{const a=`${t}-color-block`;return s.default.createElement("div",{className:z(a,n),style:o,onClick:r},s.default.createElement("div",{className:`${a}-inner`,style:{background:e}}))};function mc(e){const{targetRef:n,containerRef:o,direction:r,onDragChange:a,onDragChangeComplete:i,calculate:l,color:s,disabledDrag:c}=e,[d,u]=t.useState({x:0,y:0}),p=t.useRef(null),m=t.useRef(null);t.useEffect(()=>{u(l())},[s]),t.useEffect(()=>()=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null},[]);const f=e=>{const{pageX:t,pageY:i}=function(e){const t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-o}}(e),{x:l,y:s,width:c,height:u}=o.current.getBoundingClientRect(),{width:p,height:m}=n.current.getBoundingClientRect(),f=p/2,h=m/2,g=Math.max(0,Math.min(t-l,c))-f,v=Math.max(0,Math.min(i-s,u))-h,b={x:g,y:"x"===r?d.y:v};if(0===p&&0===m||p!==m)return!1;a?.(b)},h=e=>{e.preventDefault(),f(e)},g=e=>{e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,i?.()};return[d,e=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),c||(f(e),document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),document.addEventListener("touchmove",h),document.addEventListener("touchend",g),p.current=h,m.current=g)}]}const fc=({size:e="default",color:t,prefixCls:n})=>s.default.createElement("div",{className:z(`${n}-handler`,{[`${n}-handler-sm`]:"small"===e}),style:{backgroundColor:t}}),hc=({children:e,style:t,prefixCls:n})=>s.default.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),gc=t.forwardRef((e,t)=>{const{children:n,x:o,y:r}=e;return s.default.createElement("div",{ref:t,style:{position:"absolute",left:`${o}%`,top:`${r}%`,zIndex:1,transform:"translate(-50%, -50%)"}},n)}),vc=({color:e,onChange:n,prefixCls:o,onChangeComplete:r,disabled:a})=>{const i=t.useRef(),l=t.useRef(),c=t.useRef(e),d=Z(t=>{const o=dc({offset:t,targetRef:l,containerRef:i,color:e});c.current=o,n(o)}),[u,p]=mc({color:e,containerRef:i,targetRef:l,calculate:()=>uc(e),onDragChange:d,onDragChangeComplete:()=>r?.(c.current),disabledDrag:a});return s.default.createElement("div",{ref:i,className:`${o}-select`,onMouseDown:p,onTouchStart:p},s.default.createElement(hc,{prefixCls:o},s.default.createElement(gc,{x:u.x,y:u.y,ref:l},s.default.createElement(fc,{color:e.toRgbString(),prefixCls:o})),s.default.createElement("div",{className:`${o}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},bc=({colors:e,children:n,direction:o="to right",type:r,prefixCls:a})=>{const i=t.useMemo(()=>e.map((t,n)=>{let o=sc(t);return"alpha"===r&&n===e.length-1&&(o=new ic(o.setA(1))),o.toRgbString()}).join(","),[e,r]);return s.default.createElement("div",{className:`${a}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${o}, ${i})`}},n)},yc=e=>{const{prefixCls:n,colors:o,disabled:r,onChange:a,onChangeComplete:i,color:l,type:c}=e,d=t.useRef(null),u=t.useRef(null),p=t.useRef(l),m=e=>"hue"===c?e.getHue():100*e.a,f=Z(e=>{const t=dc({offset:e,targetRef:u,containerRef:d,color:l,type:c});p.current=t,a(m(t))}),[h,g]=mc({color:l,targetRef:u,containerRef:d,calculate:()=>uc(l,c),onDragChange:f,onDragChangeComplete(){i(m(p.current))},direction:"x",disabledDrag:r}),v=s.default.useMemo(()=>{if("hue"===c){const e=l.toHsb();e.s=1,e.b=1,e.a=1;return new ic(e)}return l},[l,c]),b=s.default.useMemo(()=>o.map(e=>`${e.color} ${e.percent}%`),[o]);return s.default.createElement("div",{ref:d,className:z(`${n}-slider`,`${n}-slider-${c}`),onMouseDown:g,onTouchStart:g},s.default.createElement(hc,{prefixCls:n},s.default.createElement(gc,{x:h.x,y:h.y,ref:u},s.default.createElement(fc,{size:"small",color:v.toHexString(),prefixCls:n})),s.default.createElement(bc,{colors:b,type:c,prefixCls:n})))};function xc(e){return l.useMemo(()=>{const{slider:t}=e||{};return[t||yc]},[e])}function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wc.apply(this,arguments)}const Cc=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],$c=t.forwardRef((e,n)=>{const{value:o,defaultValue:r,prefixCls:a=lc,onChange:i,onChangeComplete:l,className:c,style:d,panelRender:u,disabledAlpha:p=!1,disabled:m=!1,components:f}=e,[h]=xc(f),[g,v]=((e,n)=>{const[o,r]=ne(e,n);return[t.useMemo(()=>sc(o),[o]),r]})(r||cc,o),b=t.useMemo(()=>g.setA(1).toRgbString(),[g]),y=(e,t)=>{o||v(e),i?.(e,t)},x=e=>new ic(g.setHue(e)),w=e=>new ic(g.setA(e/100)),C=z(`${a}-panel`,c,{[`${a}-panel-disabled`]:m}),$={prefixCls:a,disabled:m,color:g},S=s.default.createElement(s.default.Fragment,null,s.default.createElement(vc,wc({onChange:y},$,{onChangeComplete:l})),s.default.createElement("div",{className:`${a}-slider-container`},s.default.createElement("div",{className:z(`${a}-slider-group`,{[`${a}-slider-group-disabled-alpha`]:p})},s.default.createElement(h,wc({},$,{type:"hue",colors:Cc,min:0,max:359,value:g.getHue(),onChange:e=>{y(x(e),{type:"hue",value:e})},onChangeComplete:e=>{l&&l(x(e))}})),!p&&s.default.createElement(h,wc({},$,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:b}],min:0,max:100,value:100*g.a,onChange:e=>{y(w(e),{type:"alpha",value:e})},onChangeComplete:e=>{l&&l(w(e))}}))),s.default.createElement(pc,{color:g.toRgbString(),prefixCls:a})));return s.default.createElement("div",{className:C,style:d,ref:n},"function"==typeof u?u(S):S)});"production"!==process.env.NODE_ENV&&($c.displayName="ColorPicker");let Sc=function(){return Ro(function e(t){if(Io(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new ic(this.colors[0].color.metaColor)):this.metaColor=new ic(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)}):this.toHexString()===e.toHexString())}}])}();var Ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},kc.apply(this,arguments)}const Nc=(e,t)=>l.createElement($a,kc({},e,{ref:t,icon:Ec})),_c=l.forwardRef(Nc);
|
|
14
|
-
/** */"production"!==process.env.NODE_ENV&&(_c.displayName="RightOutlined");var Ic=_c;function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pc.apply(null,arguments)}var Rc=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});const Oc=e=>({animationDuration:e,animationFillMode:"both"}),Dc=e=>({animationDuration:e,animationFillMode:"both"}),Mc=(e,t,n,o,r=!1)=>{const a=r?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:{...Oc(o),animationPlayState:"paused"},[`${a}${e}-leave`]:{...Dc(o),animationPlayState:"paused"},[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Bc=new wo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Tc=new wo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),zc=(e,t=!1)=>{const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Mc(o,Bc,Tc,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Ac=new wo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Lc=new wo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),jc=new wo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Hc=new wo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Fc=new wo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vc=new wo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Wc={"move-up":{inKeyframes:new wo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new wo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Ac,outKeyframes:Lc},"move-left":{inKeyframes:jc,outKeyframes:Hc},"move-right":{inKeyframes:Fc,outKeyframes:Vc}},Kc=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=Wc[t];return[Mc(o,r,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qc=new wo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Uc=new wo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Xc=new wo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Gc=new wo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Yc=new wo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Zc=new wo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qc=new wo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Jc=new wo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ed={"slide-up":{inKeyframes:qc,outKeyframes:Uc},"slide-down":{inKeyframes:Xc,outKeyframes:Gc},"slide-left":{inKeyframes:Yc,outKeyframes:Zc},"slide-right":{inKeyframes:Qc,outKeyframes:Jc}},td=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=ed[t];return[Mc(o,r,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},nd=new wo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),od=new wo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),rd=new wo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ad=new wo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),id=new wo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ld=new wo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),sd={zoom:{inKeyframes:nd,outKeyframes:od},"zoom-big":{inKeyframes:rd,outKeyframes:ad},"zoom-big-fast":{inKeyframes:rd,outKeyframes:ad},"zoom-left":{inKeyframes:new wo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new wo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new wo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new wo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:id,outKeyframes:ld},"zoom-down":{inKeyframes:new wo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new wo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},cd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=sd[t];return[Mc(o,r,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},dd=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:o}=e;return Xo(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:o})},ud=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??nr(t),a=e.contentLineHeightSM??nr(n),i=e.contentLineHeightLG??nr(o),l=((e,t)=>{const{r:n,g:o,b:r,a:a}=e.toRgb(),i=new ic(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:.299*n+.587*o+.114*r>192})(new Sc(e.colorBgSolid),"#fff")?"#000":"#fff",s=tr.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${Ut(e.controlOutlineWidth)} 0 ${qr(e[`${n}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,d=e.colorBgContainerDisabled;return{...s,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:o,contentLineHeight:r,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*r)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-o*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:d}};var pd=e=>{const{componentCls:t,antCls:n}=e,o=((e,t)=>{const n=`--${e.replace(".","")}-${t}-`;return(e,t=!1)=>{const o=`${n}${e}`;return t?`var(${o})`:o}})(n,"btn");return{[t]:[{[o("border-width")]:"1px",[o("border-color")]:"#000",[o("border-color-hover")]:`var(${o("border-color")})`,[o("border-color-active")]:`var(${o("border-color")})`,[o("border-color-disabled")]:`var(${o("border-color")})`,[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`,[o("text-color-disabled")]:`var(${o("text-color")})`,[o("bg-color")]:"#ddd",[o("bg-color-hover")]:`var(${o("bg-color")})`,[o("bg-color-active")]:`var(${o("bg-color")})`,[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:`var(${o("border-width")}) var(${o("border-style")}) var(${o("border-color")})`,color:`var(${o("text-color")})`,backgroundColor:`var(${o("bg-color")})`,[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:`var(${o("border-width")}) var(${o("border-style")}) var(${o("border-color-hover")})`,color:`var(${o("text-color-hover")})`,backgroundColor:`var(${o("bg-color-hover")})`},"&:active":{border:`var(${o("border-width")}) var(${o("border-style")}) var(${o("border-color-active")})`,color:`var(${o("text-color-active")})`,backgroundColor:`var(${o("bg-color-active")})`}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:`var(${o("color-base")})`,[o("solid-bg-color-hover")]:`var(${o("color-hover")})`,[o("solid-bg-color-active")]:`var(${o("color-active")})`,[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:`var(${o("solid-bg-color")})`,[o("bg-color-hover")]:`var(${o("solid-bg-color-hover")})`,[o("bg-color-active")]:`var(${o("solid-bg-color-active")})`,boxShadow:`var(${o("shadow")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:`var(${o("color-base")})`,[o("border-color-hover")]:`var(${o("color-hover")})`,[o("border-color-active")]:`var(${o("color-active")})`,[o("bg-color")]:`var(${o("bg-color-container")})`,[o("text-color")]:`var(${o("color-base")})`,[o("text-color-hover")]:`var(${o("color-hover")})`,[o("text-color-active")]:`var(${o("color-active")})`,boxShadow:`var(${o("shadow")})`},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:`var(${o("color-base")})`,[o("bg-color")]:`var(${o("color-light")})`,[o("bg-color-hover")]:`var(${o("color-light-hover")})`,[o("bg-color-active")]:`var(${o("color-light-active")})`},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:`var(${o("color-base")})`,[o("text-color-hover")]:`var(${o("color-hover")})`,[o("text-color-active")]:`var(${o("color-active")})`,[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:`var(${o("color-light")})`,[o("bg-color-active")]:`var(${o("color-light-active")})`}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.colorText,[o("text-color-hover")]:e.defaultHoverBorderColor,[o("text-color-active")]:e.defaultActiveBorderColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:`var(${o("text-color")})`,[o("text-color-active")]:`var(${o("text-color")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},tr.map(n=>{const r=e[`${n}6`],a=e[`${n}1`],i=e[`${n}5`],l=e[`${n}2`],s=e[`${n}3`],c=e[`${n}7`],d=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[o("color-base")]:r,[o("color-hover")]:i,[o("color-active")]:c,[o("color-light")]:a,[o("color-light-hover")]:l,[o("color-light-active")]:s,[o("shadow")]:d}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:`var(${o("bg-color-disabled")})`,color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:"transparent",[o("shadow")]:"none"}}]}};const md=e=>{const{componentCls:t,iconCls:n,fontWeight:o,opacityLoading:r,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":ta(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:r,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},fd=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),hd=(e,t="")=>{const{componentCls:n,controlHeight:o,fontSize:r,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:r,height:o,padding:`${Ut(s)} ${Ut(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:o,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:fd(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},gd=e=>{const t=Xo(e,{fontSize:e.contentFontSize});return hd(t,e.componentCls)},vd=e=>{const t=Xo(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return hd(t,`${e.componentCls}-sm`)},bd=e=>{const t=Xo(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return hd(t,`${e.componentCls}-lg`)},yd=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var xd=ra("Button",e=>{const t=dd(e);return[md(t),gd(t),vd(t),bd(t),yd(t),pd(t),rc(t)]},ud,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function wd(e,t,n,o){const{focusElCls:r,focus:a,borderElCls:i}=n,l=i?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{[s]:{zIndex:3},...r?{[`&${r}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}function Cd(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function $d(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:o}=t,r=o||n,a=`${r}-compact`;return{[a]:{...wd(e,a,t,r),...Cd(r,a,t)}}}function Sd(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Ed(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Sd(e,t,e.componentCls),...(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}};var n,o}const kd=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:o,calc:r}=e,a=r(o).mul(-1).equal(),i=e=>{const r=`${t}-compact${e?"-vertical":""}-item`,i=`${r}${t}-primary:not([disabled])`;return{[r]:{transition:"none"},[`${i} + ${i}::before`]:{position:"absolute",top:e?a:0,insetInlineStart:e?0:a,backgroundColor:n,content:'""',width:e?"100%":o,height:e?o:"100%"}}};return{...i(),...i(!0)}};var Nd=ia(["Button","compact"],e=>{const t=dd(e);return[$d(t),Ed(t),kd(t)]},ud);const _d={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Id=s.default.forwardRef((e,n)=>{const{_skipSemantic:o,loading:r=!1,prefixCls:a,color:i,variant:l,type:c,danger:d=!1,shape:u,size:p,disabled:m,className:f,rootClassName:h,children:g,icon:v,iconPosition:b,iconPlacement:y,ghost:x=!1,block:w=!1,htmlType:C="button",classNames:$,styles:S,style:E,autoInsertSpace:k,autoFocus:N,..._}=e,I=Te(g),P=c||"default",{button:R}=s.default.useContext(ht),O=u||R?.shape||"default",[D,M]=t.useMemo(()=>{if(i&&l)return[i,l];if(c||d){const e=_d[P]||[];return d?["danger",e[1]]:e}return R?.color&&R?.variant?[R.color,R.variant]:["default","outlined"]},[i,l,c,d,R?.color,R?.variant,P]),[B,T]=t.useMemo(()=>x&&"solid"===M?[D,"outlined"]:[D,M],[D,M,x]),A="danger"===B,L=A?"dangerous":B,{getPrefixCls:j,direction:H,autoInsertSpace:F,className:V,style:W,classNames:K,styles:q}=vt("button"),U=k??F??!0,X=j("btn",a),[G,Y]=xd(X),Z=t.useContext(ns),Q=m??Z,J=t.useContext(Ws),te=t.useMemo(()=>function(e){if("object"==typeof e&&e){let t=e?.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(r),[r]),[ne,oe]=t.useState(te.loading),[re,ae]=t.useState(!1),ie=t.useRef(null),le=ve(n,ie),se=1===I.length&&!v&&!Gs(T),ce=t.useRef(!0);s.default.useEffect(()=>(ce.current=!1,()=>{ce.current=!0}),[]),ee(()=>{let e=null;return te.delay>0?e=setTimeout(()=>{e=null,oe(!0)},te.delay):oe(te.loading),function(){e&&(clearTimeout(e),e=null)}},[te.delay,te.loading]),t.useEffect(()=>{if(!ie.current||!U)return;const e=ie.current.textContent||"";se&&Us(e)?re||ae(!0):re&&ae(!1)}),t.useEffect(()=>{N&&ie.current&&ie.current.focus()},[]);const de=s.default.useCallback(t=>{ne||Q?t.preventDefault():e.onClick?.(t)},[e.onClick,ne,Q]);if("production"!==process.env.NODE_ENV){const e=Ve("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof v&&v.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${v}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(x&&Gs(T)),"usage","`link` or `text` button can't be a `ghost` button."),e.deprecated(!b,"iconPosition","iconPlacement")}const{compactSize:ue,compactItemClassnames:pe}=Hs(X,H),me={large:"lg",small:"sm",middle:void 0},fe=zs(e=>p??ue??J??e),he=fe?me[fe]??"":"",ge=ne?"loading":v,be=y??b??"start",ye=Be(_,["navigate"]),xe={...e,type:P,color:B,variant:T,danger:A,shape:O,size:fe,disabled:Q,loading:ne,iconPlacement:be},[we,Ce]=Li([o?void 0:K,$],[o?void 0:q,S],{props:xe}),$e=z(X,G,Y,{[`${X}-${O}`]:"default"!==O&&"square"!==O&&O,[`${X}-${P}`]:P,[`${X}-dangerous`]:d,[`${X}-color-${L}`]:L,[`${X}-variant-${T}`]:T,[`${X}-${he}`]:he,[`${X}-icon-only`]:!g&&0!==g&&!!ge,[`${X}-background-ghost`]:x&&!Gs(T),[`${X}-loading`]:ne,[`${X}-two-chinese-chars`]:re&&U&&!ne,[`${X}-block`]:w,[`${X}-rtl`]:"rtl"===H,[`${X}-icon-end`]:"end"===be},pe,f,h,V,we.root),Se={...Ce.root,...W,...E},Ee={className:we.icon,style:Ce.icon},ke=e=>s.default.createElement(Qs,{prefixCls:X,...Ee},e),Ne=s.default.createElement(nc,{existIcon:!!v,prefixCls:X,loading:ne,mount:ce.current,...Ee});let _e;_e=v&&!ne?ke(v):r&&"object"==typeof r&&r.icon?ke(r.icon):Ne;const Ie=Ri(g)?Ys(g,se&&U,Ce.content,we.content):null;if(void 0!==ye.href)return s.default.createElement("a",{...ye,className:z($e,{[`${X}-disabled`]:Q}),href:Q?void 0:ye.href,style:Se,onClick:de,ref:le,tabIndex:Q?-1:0,"aria-disabled":Q},_e,Ie);let Pe=s.default.createElement("button",{..._,type:C,className:$e,style:Se,onClick:de,disabled:Q,ref:le},_e,Ie,pe&&s.default.createElement(Nd,{prefixCls:X}));return Gs(T)||(Pe=s.default.createElement(Ts,{component:"Button",disabled:ne},Pe)),Pe}),Pd=Id;Pd.Group=Ks,Pd.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Pd.displayName="Button");var Rd=Pd;const Od="RC_FORM_INTERNAL_HOOKS",Dd=()=>{De(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Md=l.createContext({getFieldValue:Dd,getFieldsValue:Dd,getFieldError:Dd,getFieldWarning:Dd,getFieldsError:Dd,isFieldsTouched:Dd,isFieldTouched:Dd,isFieldValidating:Dd,isFieldsValidating:Dd,resetFields:Dd,setFields:Dd,setFieldValue:Dd,setFieldsValue:Dd,validateFields:Dd,submit:Dd,getInternalHooks:()=>(Dd(),{dispatch:Dd,initEntityValue:Dd,registerField:Dd,useSubscribe:Dd,setInitialValues:Dd,destroyForm:Dd,setCallbacks:Dd,registerWatch:Dd,getFields:Dd,setValidateMessages:Dd,setPreserve:Dd,getInitialValue:Dd})}),Bd=l.createContext(null);function Td(e){return null==e?[]:Array.isArray(e)?e:[e]}function zd(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ad=zd();function Ld(e){var t="function"==typeof Map?new Map:void 0;return Ld=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(To())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Do(r,n.prototype),r}(e,arguments,Bo(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Do(n,e)},Ld(e)}var jd=/%[sdj%]/g,Hd=function(){};function Fd(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Vd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,a=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(jd,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}}):e}function Wd(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function Kd(e,t,n){var o=0,r=e.length;!function a(i){if(i&&i.length)n(i);else{var l=o;o+=1,l<r?t(e[l],a):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(Hd=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every(function(e){return"string"==typeof e})});var qd=function(){Mo(t,Ld(Error));var e=zo(t);function t(n,o){var r;return Io(this,t),ko(Oo(r=e.call(this,"Async Validation Error")),"errors",void 0),ko(Oo(r),"fields",void 0),r.errors=n,r.fields=o,r}return Ro(t)}();function Ud(e,t,n,o,r){if(t.first){var a=new Promise(function(t,a){var i=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,at(e[n]||[]))}),t}(e);Kd(i,n,function(e){return o(e),e.length?a(new qd(e,Fd(e))):t(r)})});return a.catch(function(e){return e}),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,d=[],u=new Promise(function(t,a){var u=function(e){if(d.push.apply(d,e),++c===s)return o(d),d.length?a(new qd(d,Fd(d))):t(r)};l.length||(o(d),t(r)),l.forEach(function(t){var o=e[t];-1!==i.indexOf(t)?Kd(o,n,u):function(e,t,n){var o=[],r=0,a=e.length;function i(e){o.push.apply(o,at(e||[])),++r===a&&n(o)}e.forEach(function(e){t(e,i)})}(o,n,u)})});return u.catch(function(e){return e}),u}function Xd(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Gd(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===$o(o)&&"object"===$o(e[n])?e[n]=_o(_o({},e[n]),o):e[n]=o}return e}var Yd,Zd="enum",Qd=function(e,t,n,o,r,a){!e.required||n.hasOwnProperty(e.field)&&!Wd(t,a||e.type)||o.push(Vd(r.messages.required,e.fullField))},Jd=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,eu=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,tu={integer:function(e){return tu.number(e)&&parseInt(e,10)===e},float:function(e){return tu.number(e)&&!tu.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===$o(e)&&!tu.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Jd)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Yd)return Yd;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],a="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(a,"$")),c=function(e){return e&&e.exact?i:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(a).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(a).concat(t(e)),"g")};var d=c.v4().source,u=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(d,"|").concat(u,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Yd=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(eu)}},nu={required:Qd,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Vd(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Qd(e,t,n,o,r);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?tu[a](t)||o.push(Vd(r.messages.types[a],e.fullField,e.type)):a&&$o(t)!==e.type&&o.push(Vd(r.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,o,r){var a="number"==typeof e.len,i="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,d="number"==typeof t,u="string"==typeof t,p=Array.isArray(t);if(d?c="number":u?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),u&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&o.push(Vd(r.messages[c].len,e.fullField,e.len)):i&&!l&&s<e.min?o.push(Vd(r.messages[c].min,e.fullField,e.min)):l&&!i&&s>e.max?o.push(Vd(r.messages[c].max,e.fullField,e.max)):i&&l&&(s<e.min||s>e.max)&&o.push(Vd(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Zd]=Array.isArray(e[Zd])?e[Zd]:[],-1===e[Zd].indexOf(t)&&o.push(Vd(r.messages[Zd],e.fullField,e[Zd].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Vd(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Vd(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},ou=function(e,t,n,o,r){var a=e.type,i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t,a)&&!e.required)return n();nu.required(e,t,o,i,r,a),Wd(t,a)||nu.type(e,t,o,i,r)}n(i)},ru={string:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t,"string")&&!e.required)return n();nu.required(e,t,o,a,r,"string"),Wd(t,"string")||(nu.type(e,t,o,a,r),nu.range(e,t,o,a,r),nu.pattern(e,t,o,a,r),!0===e.whitespace&&nu.whitespace(e,t,o,a,r))}n(a)},method:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),void 0!==t&&nu.type(e,t,o,a,r)}n(a)},number:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),void 0!==t&&(nu.type(e,t,o,a,r),nu.range(e,t,o,a,r))}n(a)},boolean:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),void 0!==t&&nu.type(e,t,o,a,r)}n(a)},regexp:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),Wd(t)||nu.type(e,t,o,a,r)}n(a)},integer:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),void 0!==t&&(nu.type(e,t,o,a,r),nu.range(e,t,o,a,r))}n(a)},float:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),void 0!==t&&(nu.type(e,t,o,a,r),nu.range(e,t,o,a,r))}n(a)},array:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();nu.required(e,t,o,a,r,"array"),null!=t&&(nu.type(e,t,o,a,r),nu.range(e,t,o,a,r))}n(a)},object:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),void 0!==t&&nu.type(e,t,o,a,r)}n(a)},enum:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r),void 0!==t&&nu.enum(e,t,o,a,r)}n(a)},pattern:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t,"string")&&!e.required)return n();nu.required(e,t,o,a,r),Wd(t,"string")||nu.pattern(e,t,o,a,r)}n(a)},date:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t,"date")&&!e.required)return n();var i;if(nu.required(e,t,o,a,r),!Wd(t,"date"))i=t instanceof Date?t:new Date(t),nu.type(e,i,o,a,r),i&&nu.range(e,i.getTime(),o,a,r)}n(a)},url:ou,hex:ou,email:ou,required:function(e,t,n,o,r){var a=[],i=Array.isArray(t)?"array":$o(t);nu.required(e,t,o,a,r,i),n(a)},any:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Wd(t)&&!e.required)return n();nu.required(e,t,o,a,r)}n(a)}},au=function(){function e(t){Io(this,e),ko(this,"rules",null),ko(this,"_messages",Ad),this.define(t)}return Ro(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==$o(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(e){return e&&(this._messages=Gd(zd(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(a=r,r={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,o),Promise.resolve(o);if(r.messages){var i=this.messages();i===Ad&&(i=zd()),Gd(i,r.messages),r.messages=i}else r.messages=this.messages();var l={};(r.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],a=o[e];r.forEach(function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=_o({},o)),null!=(a=o[e]=i.transform(a))&&(i.type=i.type||(Array.isArray(a)?"array":$o(a)))),(i="function"==typeof i?{validator:i}:_o({},i)).validator=n.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=n.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:a,source:o,field:e}))})});var s={};return Ud(l,r,function(t,n){var a,i=t.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!==$o(i.fields)&&"object"!==$o(i.defaultField));function c(e,t){return _o(_o({},t),{},{fullField:"".concat(i.fullField,".").concat(e),fullFields:i.fullFields?[].concat(at(i.fullFields),[e]):[e]})}function d(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=Array.isArray(a)?a:[a];!r.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==i.message&&(d=[].concat(i.message));var u=d.map(Xd(i,o));if(r.first&&u.length)return s[i.field]=1,n(u);if(l){if(i.required&&!t.value)return void 0!==i.message?u=[].concat(i.message).map(Xd(i,o)):r.error&&(u=[r.error(i,Vd(r.messages.required,i.field))]),n(u);var p={};i.defaultField&&Object.keys(t.value).map(function(e){p[e]=i.defaultField}),p=_o(_o({},p),t.rule.fields);var m={};Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];m[e]=n.map(c.bind(null,e))});var f=new e(m);f.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),f.validate(t.value,t.rule.options||r,function(e){var t=[];u&&u.length&&t.push.apply(t,at(u)),e&&e.length&&t.push.apply(t,at(e)),n(t.length?t:null)})}else n(u)}if(l=l&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)a=i.asyncValidator(i,t.value,d,t.source,r);else if(i.validator){try{a=i.validator(i,t.value,d,t.source,r)}catch(e){var u,p;null===(u=(p=console).error)||void 0===u||u.call(p,e),r.suppressValidatorError||setTimeout(function(){throw e},0),d(e.message)}!0===a?d():!1===a?d("function"==typeof i.message?i.message(i.fullField||i.field):i.message||"".concat(i.fullField||i.field," fails")):a instanceof Array?d(a):a instanceof Error&&d(a.message)}a&&a.then&&a.then(function(){return d()},function(e){return d(e)})},function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,at(e)):t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=Fd(t),a(t,n)):a(null,o)}(e)},o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!ru.hasOwnProperty(e.type))throw new Error(Vd("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ru.required:ru[this.getType(e)]||void 0}}]),e}();ko(au,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ru[e]=t}),ko(au,"warning",Hd),ko(au,"messages",Ad),ko(au,"validators",ru);const iu="'${name}' is not a valid ${type}",lu={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:iu,method:iu,array:iu,object:iu,number:iu,date:iu,boolean:iu,integer:iu,float:iu,regexp:iu,email:iu,url:iu,hex:iu},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},su=au;const cu="CODE_LOGIC_ERROR";async function du(e,t,n,o,r){const a={...n};if(delete a.ruleIndex,su.warning=()=>{},a.validator){const e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return Promise.reject(cu)}}}let i=null;a&&"array"===a.type&&a.defaultField&&(i=a.defaultField,delete a.defaultField);const s=new su({[e]:[a]}),c=Ne(lu,o.validateMessages);s.messages(c);let d=[];try{await Promise.resolve(s.validate({[e]:t},{...o}))}catch(e){e.errors&&(d=e.errors.map(({message:e},t)=>{const n=e===cu?c.default:e;return l.isValidElement(n)?l.cloneElement(n,{key:`error_${t}`}):n}))}if(!d.length&&i&&Array.isArray(t)&&t.length>0){return(await Promise.all(t.map((t,n)=>du(`${e}.${n}`,t,i,o,r)))).reduce((e,t)=>[...e,...t],[])}const u={...n,name:e,enum:(n.enum||[]).join(", "),...r},p=d.map(e=>"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>{if(e.startsWith("\\"))return e.slice(1);const n=e.slice(2,-1);return t[n]})}(e,u):e);return p}function uu(e,t,n,o,r,a){const i=e.join("."),l=n.map((e,t)=>{const n=e.validator,o={...e,ruleIndex:t};return n&&(o.validator=(e,t,o)=>{let r=!1;const a=n(e,t,(...e)=>{Promise.resolve().then(()=>{De(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o(...e)})});r=a&&"function"==typeof a.then&&"function"==typeof a.catch,De(r,"`callback` is deprecated. Please return a promise instead."),r&&a.then(()=>{o()}).catch(e=>{o(e||" ")})}),o}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:o})=>!!e==!!n?t-o:e?1:-1);let s;if(!0===r)s=new Promise(async(e,n)=>{for(let e=0;e<l.length;e+=1){const r=l[e],s=await du(i,t,r,o,a);if(s.length)return void n([{errors:s,rule:r}])}e([])});else{const e=l.map(e=>du(i,t,e,o,a).then(t=>({errors:t,rule:e})));s=(r?async function(e){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})}(e):async function(e){return Promise.all(e).then(e=>[].concat(...e))}(e)).then(e=>Promise.reject(e))}return s.catch(e=>e),s}function pu(e){return Td(e)}function mu(e,t){let n={};return t.forEach(t=>{const o=we(e,t);n=$e(n,t,o)}),n}function fu(e,t,n=!1){return e&&e.some(e=>hu(t,e,n))}function hu(e,t,n=!1){return!(!e||!t)&&(!(!n&&e.length!==t.length)&&t.every((t,n)=>e[n]===t))}function gu(e,t,n){const{length:o}=e;if(t<0||t>=o||n<0||n>=o)return e;const r=e[t],a=t-n;return a>0?[...e.slice(0,n),r,...e.slice(n,t),...e.slice(t+1,o)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),r,...e.slice(n+1,o)]:e}function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vu.apply(this,arguments)}const bu=[],yu=[];function xu(e,t,n,o,r,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):o!==r}class wu extends l.Component{static contextType=Md;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=bu;warnings=yu;constructor(e){if(super(e),e.fieldContext){const{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(Od);n(this)}}componentDidMount(){const{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){const{getInternalHooks:e}=t,{registerField:n}=e(Od);this.cancelRegisterFunc=n(this)}!0===e&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,pu(n)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return void 0!==e?[...n,...e]:[]};getRules=()=>{const{rules:e=[],fieldContext:t}=this.props;return e.map(e=>"function"==typeof e?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{const{onMetaChange:t}=this.props;if(t){const n={...this.getMeta(),destroy:e};It(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{const{shouldUpdate:o,dependencies:r=[],onReset:a}=this.props,{store:i}=n,l=this.getNamePath(),s=this.getValue(e),c=this.getValue(i),d=t&&fu(t,l);switch("valueUpdate"!==n.type||"external"!==n.source||It(s,c)||(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=bu,this.warnings=yu,this.triggerMetaEvent()),n.type){case"reset":if(!t||d)return this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=bu,this.warnings=yu,this.triggerMetaEvent(),a?.(),void this.refresh();break;case"remove":if(o&&xu(o,e,i,s,c,n))return void this.reRender();break;case"setField":{const{data:r}=n;if(d)return"touched"in r&&(this.touched=r.touched),"validating"in r&&!("originRCField"in r)&&(this.validatePromise=r.validating?Promise.resolve([]):null),"errors"in r&&(this.errors=r.errors||bu),"warnings"in r&&(this.warnings=r.warnings||yu),this.dirty=!0,this.triggerMetaEvent(),void this.reRender();if("value"in r&&fu(t,l,!0))return void this.reRender();if(o&&!l.length&&xu(o,e,i,s,c,n))return void this.reRender();break}case"dependenciesUpdate":if(r.map(pu).some(e=>fu(n.relatedFields,e)))return void this.reRender();break;default:if(d||(!r.length||l.length||o)&&xu(o,e,i,s,c,n))return void this.reRender()}!0===o&&this.reRender()};validateRules=e=>{const t=this.getNamePath(),n=this.getValue(),{triggerName:o,validateOnly:r=!1}=e||{},a=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:r=!1,messageVariables:i,validateDebounce:l}=this.props;let s=this.getRules();if(o&&(s=s.filter(e=>e).filter(e=>{const{validateTrigger:t}=e;if(!t)return!0;return Td(t).includes(o)})),l&&o&&(await new Promise(e=>{setTimeout(e,l)}),this.validatePromise!==a))return[];const c=uu(t,n,s,e,r,i);return c.catch(e=>e).then((e=bu)=>{if(this.validatePromise===a){this.validatePromise=null;const t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:o=bu})=>{e?n.push(...o):t.push(...o)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),c});return r||(this.validatePromise=a,this.dirty=!0,this.errors=bu,this.warnings=yu,this.triggerMetaEvent(),this.reRender()),a};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||void 0!==this.props.initialValue)return!0;const{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(Od);return void 0!==t(this.getNamePath())};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>{this.prevValidating=this.isFieldValidating();return{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:null===this.validatePromise}};getOnlyChild=e=>{if("function"==typeof e){const t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}const t=Te(e);return 1===t.length&&l.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}};getValue=e=>{const{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return we(e||t(!0),n)};getControlled=(e={})=>{const{name:t,trigger:n="onChange",validateTrigger:o,getValueFromEvent:r,normalize:a,valuePropName:i="value",getValueProps:l,fieldContext:s}=this.props,c=void 0!==o?o:s.validateTrigger,d=this.getNamePath(),{getInternalHooks:u,getFieldsValue:p}=s,{dispatch:m}=u(Od),f=this.getValue(),h=l||(e=>({[i]:e})),g=e[n],v=void 0!==t?h(f):{};"production"!==process.env.NODE_ENV&&v&&Object.keys(v).forEach(e=>{De("function"!=typeof v[e],`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${e})`)});const b={...e,...v};b[n]=(...e)=>{let t;this.touched=!0,this.dirty=!0,this.triggerMetaEvent(),t=r?r(...e):function(e,...t){const n=t[0];return n&&n.target&&"object"==typeof n.target&&e in n.target?n.target[e]:n}(i,...e),a&&(t=a(t,f,p(!0))),t!==f&&m({type:"updateValue",namePath:d,value:t}),g&&g(...e)};return Td(c||[]).forEach(e=>{const t=b[e];b[e]=(...n)=>{t&&t(...n);const{rules:o}=this.props;o&&o.length&&m({type:"validateField",namePath:d,triggerName:e})}}),b};render(){const{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:o}=this.getOnlyChild(t);let r;return o?r=n:l.isValidElement(n)?r=l.cloneElement(n,this.getControlled(n.props)):(De(!n,"`children` of Field is not validate ReactElement."),r=n),l.createElement(l.Fragment,{key:e},r)}}function Cu({name:e,...t}){const n=l.useContext(Md),o=l.useContext(Bd),r=void 0!==e?pu(e):void 0,a=t.isListField??!!o;let i="keep";return a||(i=`_${(r||[]).join("_")}`),"production"!==process.env.NODE_ENV&&!1===t.preserve&&a&&r.length<=1&&De(!1,"`preserve` should not apply on Form.List fields."),l.createElement(wu,vu({key:i,name:r,isListField:a},t,{fieldContext:n}))}const $u="__@field_split__";function Su(e){return e.map(e=>`${typeof e}:${e}`).join($u)}class Eu{kvs=new Map;set(e,t){this.kvs.set(Su(e),t)}get(e){return this.kvs.get(Su(e))}getAsPrefix(e){const t=Su(e),n=t+$u,o=[],r=this.kvs.get(t);return void 0!==r&&o.push(r),this.kvs.forEach((e,t)=>{t.startsWith(n)&&o.push(e)}),o}update(e,t){const n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Su(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>{const o=t.split($u);return e({key:o.map(e=>{const[,t,n]=e.match(/^([^:]*):(.*)$/);return"number"===t?Number(n):n}),value:n})})}toJSON(){const e={};return this.map(({key:t,value:n})=>(e[t.join(".")]=n,null)),e}}class ku{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!hu(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;const e=this.taskId;(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{if(e===this.taskId&&this.watcherList.size){const e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}}class Nu{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new ku(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===Od?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(De(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=Ne(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=$e(t,n,we(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{const e=new Eu;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{const t=we(this.initialValues,e);return e.length?Ne(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{"production"===process.env.NODE_ENV||this.timeoutId||"undefined"==typeof window||(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||De(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{const t=new Eu;return this.getFieldEntities(e).forEach(e=>{const n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);const n=this.getFieldsMap(!0);return t?e.flatMap(e=>{const t=pu(e),o=n.getAsPrefix(t);return o.length?o:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{const t=pu(e);return n.get(t)||{INVALIDATE_NAME_PATH:pu(e)}})};getFieldsValue=(e,t)=>{let n,o;if(this.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,o=t):e&&"object"==typeof e&&(o=e.filter),!0===n&&!o)return this.store;const r=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],i=[];r.forEach(e=>{const t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.())i.push(t);else if(o){const n="getMeta"in e?e.getMeta():null;o(n)&&a.push(t)}else a.push(t)});let l=mu(this.store,a.map(pu));return i.forEach(e=>{we(l,e)||(l=$e(l,e,[]))}),l};getFieldValue=e=>{this.warningUnhooked();const t=pu(e);return we(this.store,t)};getFieldsError=e=>{this.warningUnhooked();return this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:pu(e[n]),errors:[],warnings:[]})};getFieldError=e=>{this.warningUnhooked();const t=pu(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();const t=pu(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();const[t,n]=e;let o,r=!1;0===e.length?o=null:1===e.length?Array.isArray(t)?(o=t.map(pu),r=!1):(o=null,r=t):(o=t.map(pu),r=n);const a=this.getFieldEntities(!0),i=e=>e.isFieldTouched();if(!o)return r?a.every(e=>i(e)||e.isList()):a.some(i);const l=new Eu;o.forEach(e=>{l.set(e,[])}),a.forEach(e=>{const t=e.getNamePath();o.forEach(n=>{n.every((e,n)=>t[n]===e)&&l.update(n,t=>[...t,e])})});const s=e=>e.some(i),c=l.map(({value:e})=>e);return r?c.every(s):c.some(s)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();const t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());const n=e.map(pu);return t.some(e=>{const t=e.getNamePath();return fu(n,t)&&e.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{const t=new Eu,n=this.getFieldEntities(!0);n.forEach(e=>{const{initialValue:n}=e.props,o=e.getNamePath();if(void 0!==n){const r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}});let o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(e=>{const n=t.get(e);n&&o.push(...[...n].map(e=>e.entity))})):o=n,(n=>{n.forEach(n=>{const{initialValue:o}=n.props;if(void 0!==o){const o=n.getNamePath();if(void 0!==this.getInitialValue(o))De(!1,`Form already set 'initialValues' with path '${o.join(".")}'. Field can not overwrite it.`);else{const r=t.get(o);if(r&&r.size>1)De(!1,`Multiple Field with path '${o.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(r){const t=this.getFieldValue(o);n.isListField()||e.skipExist&&void 0!==t||this.updateStore($e(this.store,o,[...r][0].value))}}}})})(o)};resetFields=e=>{this.warningUnhooked();const t=this.store;if(!e)return this.updateStore(Ne(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),void this.notifyWatch();const n=e.map(pu);n.forEach(e=>{const t=this.getInitialValue(e);this.updateStore($e(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:"reset"}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();const t=this.store,n=[];e.forEach(e=>{const{name:o,...r}=e,a=pu(o);n.push(a),"value"in r&&this.updateStore($e(this.store,a,r.value)),this.notifyObservers(t,[a],{type:"setField",data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{const t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n});initEntityValue=e=>{const{initialValue:t}=e.props;if(void 0!==t){const n=e.getNamePath();void 0===we(this.store,n)&&this.updateStore($e(this.store,n,t))}};isMergedPreserve=e=>(void 0!==e?e:this.preserve)??!0;registerField=e=>{this.fieldEntities.push(e);const t=e.getNamePath();if(this.notifyWatch([t]),void 0!==e.props.initialValue){const t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return(n,o,r=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(o)&&(!n||r.length>1)){const e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!hu(e.getNamePath(),t))){const n=this.store;this.updateStore($e(n,t,e,!0)),this.notifyObservers(n,[t],{type:"remove"}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case"updateValue":{const{namePath:t,value:n}=e;this.updateValue(t,n);break}case"validateField":{const{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}}};notifyObservers=(e,t,n)=>{if(this.subscribable){const o={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,o)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{const n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n),this.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t,...n]}),n};updateValue=(e,t)=>{const n=pu(e),o=this.store;this.updateStore($e(this.store,n,t)),this.notifyObservers(o,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);const r=this.triggerDependenciesUpdate(o,n),{onValuesChange:a}=this.callbacks;if(a){const e=this.getFieldsMap(!0).get(n),t=mu(this.store,[n]);a(t,ke([this.getFieldsValue(),t],{prepareArray:t=>e?.isList()?[]:[...t||[]]}))}this.triggerOnFieldsChange([n,...r])};setFieldsValue=e=>{this.warningUnhooked();const t=this.store;if(e){const t=Ne(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{const t=new Set,n=[],o=new Eu;this.getFieldEntities().forEach(e=>{const{dependencies:t}=e.props;(t||[]).forEach(t=>{const n=pu(t);o.update(n,(t=new Set)=>(t.add(e),t))})});const r=e=>{(o.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);const o=e.getNamePath();e.isFieldDirty()&&o.length&&(n.push(o),r(o))}})};return r(e),n};triggerOnFieldsChange=(e,t)=>{const{onFieldsChange:n}=this.callbacks;if(n){const o=this.getFields();if(t){const e=new Eu;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),o.forEach(t=>{t.errors=e.get(t.name)||t.errors})}const r=o.filter(({name:t})=>fu(e,t));r.length&&n(r,o)}};validateFields=(e,t)=>{let n,o;this.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(n=e,o=t):o=e;const r=!!n,a=r?n.map(pu):[],i=[...a],l=[],s=String(Date.now()),c=new Set,{recursive:d,dirty:u}=o||{};this.getFieldEntities(!0).forEach(e=>{const t=e.getNamePath();if(r||(e.isList()&&a.some(e=>hu(e,t,!0))||i.push(t),a.push(t)),e.props.rules&&e.props.rules.length&&(!u||e.isFieldDirty())&&(c.add(t.join(s)),!r||fu(a,t,d))){const n=e.validateRules({validateMessages:{...lu,...this.validateMessages},...o});l.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{const n=[],o=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?o.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:o}):{name:t,errors:n,warnings:o}}))}});const p=function(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,a)=>{e.forEach((e,i)=>{e.catch(e=>(t=!0,e)).then(e=>{n-=1,o[i]=e,n>0||(t&&a(o),r(o))})})}):Promise.resolve([])}(l);this.lastValidatePromise=p,p.catch(e=>e).then(e=>{const t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:"validateFinish"}),this.triggerOnFieldsChange(t,e)});const m=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(i)):Promise.reject([])).catch(e=>{const t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==p})});m.catch(e=>e);const f=a.filter(e=>c.has(e.join(s)));return this.triggerOnFieldsChange(f),m};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{const{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){}}).catch(e=>{const{onFinishFailed:t}=this.callbacks;t&&t(e)})}}function _u(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const e=new Nu(()=>{n({})});t.current=e.getForm()}return[t.current]}const Iu=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}});function Pu(){return Pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pu.apply(this,arguments)}const Ru=({name:e,initialValues:t,fields:n,form:o,preserve:r,children:a,component:i="form",validateMessages:s,validateTrigger:c="onChange",onValuesChange:d,onFieldsChange:u,onFinish:p,onFinishFailed:m,clearOnDestroy:f,...h},g)=>{const v=l.useRef(null),b=l.useContext(Iu),[y]=_u(o),{useSubscribe:x,setInitialValues:w,setCallbacks:C,setValidateMessages:$,setPreserve:S,destroyForm:E}=y.getInternalHooks(Od);l.useImperativeHandle(g,()=>({...y,nativeElement:v.current})),l.useEffect(()=>(b.registerForm(e,y),()=>{b.unregisterForm(e)}),[b,y,e]),$({...b.validateMessages,...s}),C({onValuesChange:d,onFieldsChange:(t,...n)=>{b.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{b.triggerFormFinish(e,t),p&&p(t)},onFinishFailed:m}),S(r);const k=l.useRef(null);let N;w(t,!k.current),k.current||(k.current=!0),l.useEffect(()=>()=>E(f),[]);const _="function"==typeof a;if(_){N=a(y.getFieldsValue(!0),y)}else N=a;x(!_);const I=l.useRef(null);l.useEffect(()=>{(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(e),o=Object.keys(t);return[...new Set([...n,...o])].every(n=>{const o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r})})(I.current||[],n||[])||y.setFields(n||[]),I.current=n},[n,y]);const P=l.useMemo(()=>({...y,validateTrigger:c}),[y,c]),R=l.createElement(Bd.Provider,{value:null},l.createElement(Md.Provider,{value:P},N));return!1===i?R:l.createElement(i,Pu({},h,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),h.onReset?.(e)}}),R)};function Ou(e){try{return JSON.stringify(e)}catch{return Math.random()}}const Du=l.forwardRef(Ru);Du.FormProvider=({validateMessages:e,onFormChange:t,onFormFinish:n,children:o})=>{const r=l.useContext(Iu),a=l.useRef({});return l.createElement(Iu.Provider,{value:{...r,validateMessages:{...r.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),r.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),r.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),r.registerForm(e,t)},unregisterForm:e=>{const t={...a.current};delete t[e],a.current=t,r.unregisterForm(e)}}},o)},Du.Field=Cu,Du.List=function({name:e,initialValue:t,children:n,rules:o,validateTrigger:r,isListField:a}){const i=l.useContext(Md),s=l.useContext(Bd),c=l.useRef({keys:[],id:0}).current,d=l.useMemo(()=>[...pu(i.prefixName)||[],...pu(e)],[i.prefixName,e]),u=l.useMemo(()=>({...i,prefixName:d}),[i,d]),p=l.useMemo(()=>({getKey:e=>{const t=d.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,d]);return"function"!=typeof n?(De(!1,"Form.List only accepts function as children."),null):l.createElement(Bd.Provider,{value:p},l.createElement(Md.Provider,{value:u},l.createElement(Cu,{name:[],shouldUpdate:(e,t,{source:n})=>"internal"!==n&&e!==t,rules:o,validateTrigger:r,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},o)=>{const{getFieldValue:r}=i,a=()=>r(d||[])||[],l={add:(e,n)=>{const o=a();n>=0&&n<=o.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...o.slice(0,n),e,...o.slice(n)])):("production"!==process.env.NODE_ENV&&(n<0||n>o.length)&&De(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[...c.keys,c.id],t([...o,e])),c.id+=1},remove:e=>{const n=a(),o=new Set(Array.isArray(e)?e:[e]);o.size<=0||(c.keys=c.keys.filter((e,t)=>!o.has(t)),t(n.filter((e,t)=>!o.has(t))))},move(e,n){if(e===n)return;const o=a();e<0||e>=o.length||n<0||n>=o.length||(c.keys=gu(c.keys,e,n),t(gu(o,e,n)))}};let s=e||[];return Array.isArray(s)||(s=[],"production"!==process.env.NODE_ENV&&De(!1,`Current value of '${d.join(" > ")}' is not an array type.`)),n(s.map((e,t)=>{let n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),l,o)})))},Du.useForm=_u,Du.useWatch=function(...e){const[n,o={}]=e,r=function(e){return e&&!!e._init}(o)?{form:o}:o,a=r.form,[i,l]=t.useState(()=>"function"==typeof n?n({}):void 0),s=t.useMemo(()=>Ou(i),[i]);t.useRef(s).current=s;const c=t.useContext(Md),d=a||c,u=d&&d._init;"production"!==process.env.NODE_ENV&&De(2===e.length&&!a||u,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:p,getInternalHooks:m}=d,{registerWatch:f}=m(Od),h=Z((e,t)=>{const o=r.preserve?t??p(!0):e??p(),a="function"==typeof n?n(o):we(o,pu(n));Ou(i)!==Ou(a)&&l(a)}),g="function"==typeof n?n:JSON.stringify(n);return t.useEffect(()=>{u&&h()},[u,g]),t.useEffect(()=>{if(!u)return;return f((e,t)=>{h(e,t)})},[u]),i};const Mu=l.createContext({});"production"!==process.env.NODE_ENV&&(Mu.displayName="FormItemInputContext");const Bu=({children:e,status:t,override:n})=>{const o=l.useContext(Mu),r=l.useMemo(()=>{const e={...o};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,o]);return l.createElement(Mu.Provider,{value:r},e)},Tu=l.createContext(void 0);var zu=e=>{const{space:t,form:n,children:o}=e;if(!Ri(o))return null;let r=o;return n&&(r=s.default.createElement(Bu,{override:!0,status:!0},r)),t&&(r=s.default.createElement(Fs,null,r)),r};var Au=(e,t,n,o,r)=>function(e){return t=>l.createElement(fs,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}(a=>{const{prefixCls:i,style:s}=a,c=l.useRef(null),[d,u]=l.useState(0),[p,m]=l.useState(0),[f,h]=ne(!1,a.open),{getPrefixCls:g}=l.useContext(ht),v=g(o||"select",i);l.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;u(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{const n=r?`.${r(v)}`:`.${v}-dropdown`,o=c.current?.querySelector(n);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[v]);let b={...a,style:{...s,margin:0},open:f,getPopupContainer:()=>c.current};n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:d,position:"relative",minWidth:p};return l.createElement("div",{ref:c,style:y},l.createElement(e,{...b}))});const Lu=l.createContext(null);function ju(){return l.useContext(Lu)}function Hu(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fu.apply(this,arguments)}const Vu=(e,t)=>{const{prefixCls:n,disabled:o,visible:r,children:a,popupElement:i,animation:s,transitionName:c,popupStyle:d,popupClassName:u,direction:p="ltr",placement:m,builtinPlacements:f,popupMatchSelectWidth:h,popupRender:g,popupAlign:v,getPopupContainer:b,empty:y,onPopupVisibleChange:x,onPopupMouseEnter:w,onPopupMouseDown:C,onPopupBlur:$,...S}=e,E=`${n}-dropdown`;let k=i;g&&(k=g(i));const N=l.useMemo(()=>f||(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}})(h),[f,h]),_=s?`${E}-${s}`:c,I="number"==typeof h,P=l.useMemo(()=>I?null:!1===h?"minWidth":"width",[h,I]);let R=d;I&&(R={...d,width:h});const O=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>O.current?.popupElement})),l.createElement(Yl,Fu({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:m||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:E,popupMotion:{motionName:_},popup:l.createElement("div",{onMouseEnter:w,onMouseDown:C,onBlur:$},k),ref:O,stretch:P,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:z(u,{[`${E}-empty`]:y}),popupStyle:R,onPopupVisibleChange:x}),a)},Wu=l.forwardRef(Vu);function Ku(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),null!=n?n:void 0!==o?o:`rc-index-key-${t}`}function qu(e){return void 0!==e&&!Number.isNaN(e)}function Uu(e,t){const{label:n,value:o,options:r,groupLabel:a}=e||{},i=n||(t?"children":"label");return{label:i,value:o||"value",options:r||"options",groupLabel:a||i}}function Xu(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>(De(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t)}),t}"production"!==process.env.NODE_ENV&&(Wu.displayName="SelectTrigger");function Gu(e){const{visible:t,values:n}=e;if(!t)return null;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>["number","string"].includes(typeof e)?e:t).join(", ")}`,n.length>50?", ...":null)}const Yu=(e,t=1)=>{t<=0?e():(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{Yu(e,t-1)})};function Zu(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const Qu=l.createContext(null);function Ju(){return l.useContext(Qu)}const ep=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:o,onBlur:r,style:a,syncWidth:i,value:s,className:c,autoComplete:d,...u}=e,{prefixCls:p,mode:m,onSearch:f,onSearchSubmit:h,onInputBlur:g,autoFocus:v,tokenWithEnter:b,placeholder:y,components:{input:x="input"}}=Ju(),{id:w,classNames:C,styles:$,open:S,activeDescendantId:E,role:k,disabled:N}=ju()||{},_=z(`${p}-input`,C?.input,c),I=l.useRef(!1),P=l.useRef(null),R=l.useRef(null);l.useImperativeHandle(t,()=>R.current);const[O,D]=l.useState(void 0);ee(()=>{const e=R.current;if(i&&e){e.style.width="0px";const t=e.scrollWidth;D(t),e.style.width=""}},[i,s]);const M={id:w,type:"combobox"===m?"text":"search",...u,ref:R,style:{...$?.input,...a,"--select-input-width":O},autoFocus:v,autoComplete:d||"off",className:_,disabled:N,value:s||"",onChange:e=>{let{value:t}=e.target;if(b&&P.current&&/[\r\n]/.test(P.current)){const e=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(e,P.current)}P.current=null,f&&f(t,!0,I.current),n?.(e)},onKeyDown:e=>{const{key:t}=e,{value:n}=e.currentTarget;"Enter"===t&&"tags"===m&&!I.current&&h&&h(n),o?.(e)},onBlur:e=>{g?.(),r?.(e)},onPaste:e=>{const{clipboardData:t}=e,n=t?.getData("text");P.current=n||""},onCompositionStart:()=>{I.current=!0},onCompositionEnd:e=>{if(I.current=!1,"combobox"!==m){const{value:t}=e.currentTarget;f?.(t,!0,!1)}},role:k||"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":S?`${w}_list`:void 0,"aria-autocomplete":"list","aria-controls":S?`${w}_list`:void 0,"aria-activedescendant":S?E:void 0};if(l.isValidElement(x)){const t=x.props||{},n={placeholder:e.placeholder||y,...M,...t};return Object.keys(t).forEach(e=>{const o=t[e];"function"==typeof o&&(n[e]=(...t)=>{o(...t),M[e]?.(...t)})}),n.ref=ge(x.ref,M.ref),l.cloneElement(x,n)}const B=x;return l.createElement(B,M)});function tp(e){const{prefixCls:t,placeholder:n,displayValues:o}=Ju(),{classNames:r,styles:a}=ju(),{show:i=!0}=e;return o.length?null:l.createElement("div",{className:z(`${t}-placeholder`,r?.placeholder),style:{visibility:i?"visible":"hidden",...a?.placeholder}},n)}const np=l.createContext(null);function op(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!=typeof window&&window.document&&window.document.documentElement;function rp(e){return["string","number"].includes(typeof e)}function ap(e){let t;return e&&(rp(e.title)?t=e.title.toString():rp(e.label)&&(t=e.label.toString())),t}function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ip.apply(this,arguments)}process.env.NODE_ENV;const lp=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:o,activeValue:r,displayValues:a,maxLength:i,mode:s}=Ju(),{triggerOpen:c,title:d,showSearch:u,classNames:p,styles:m}=ju(),f=l.useContext(np),[h,g]=l.useState(!1),v="combobox"===s,b=a[0],y=l.useMemo(()=>v&&r&&!h&&c?r:u?o:"",[v,r,h,c,o,u]),x=l.useMemo(()=>{const e={className:`${n}-content-value`,style:{visibility:y?"hidden":"visible"}};if(b&&f?.flattenOptions){const t=f.flattenOptions.find(e=>e.value===b.value);if(t?.data){const{className:n,style:o}=t.data;Object.assign(e,{title:ap(t.data),className:z(e.className,n),style:{...e.style,...o}})}}return b&&!e.title&&(e.title=ap(b)),void 0!==d&&(e.title=d),e},[b,f?.flattenOptions,n,y,d]);return l.useEffect(()=>{v&&g(!1)},[v,r]),l.createElement("div",{className:z(`${n}-content`,p?.content),style:m?.content},b?l.createElement("div",x,b.label):l.createElement(tp,{show:!y}),l.createElement(ep,ip({ref:t},e,{value:y,maxLength:"combobox"===s?i:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),sp=void 0;function cp(e,t){const{prefixCls:n,invalidate:o,item:r,renderItem:a,responsive:i,responsiveDisabled:s,registerSize:c,itemKey:d,className:u,style:p,children:m,display:f,order:h,component:g="div",...v}=e,b=i&&!f;function y(e){c(d,e)}l.useEffect(()=>()=>{y(null)},[]);const x=a&&r!==sp?a(r,{index:h}):m;let w;o||(w={opacity:b?0:1,height:b?0:sp,overflowY:b?"hidden":sp,order:i?h:sp,pointerEvents:b?"none":sp,position:b?"absolute":sp});const C={};b&&(C["aria-hidden"]=!0);let $=l.createElement(g,Pc({className:z(!o&&n,u),style:{...w,...p}},C,v,{ref:t}),x);return i&&($=l.createElement(nt,{onResize:({offsetWidth:e})=>{y(e)},disabled:s},$)),$}const dp=l.forwardRef(cp);function up(){const e=l.useRef(null);return t=>{e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)ut(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}(()=>{o.unstable_batchedUpdates(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function pp(e,t){const[n,o]=l.useState(t);return[n,Z(t=>{e(()=>{o(t)})})]}"production"!==process.env.NODE_ENV&&(dp.displayName="Item");const mp=s.default.createContext(null),fp=(e,t)=>{const n=l.useContext(mp);if(!n){const{component:n="div",...o}=e;return l.createElement(n,Pc({},o,{ref:t}))}const{className:o,...r}=n,{className:a,...i}=e;return l.createElement(mp.Provider,{value:null},l.createElement(dp,Pc({ref:t,className:z(o,a)},r,i)))},hp=l.forwardRef(fp);"production"!==process.env.NODE_ENV&&(hp.displayName="RawItem");const gp="responsive",vp="invalidate";function bp(e){return`+ ${e.length} ...`}function yp(e,n){const{prefixCls:o="rc-overflow",data:r=[],renderItem:a,renderRawItem:i,itemKey:s,itemWidth:c=10,ssr:d,style:u,className:p,maxCount:m,renderRest:f,renderRawRest:h,prefix:g,suffix:v,component:b="div",itemComponent:y,onVisibleChange:x,...w}=e,C="full"===d,$=up(),[S,E]=pp($,null),k=S||0,[N,_]=pp($,new Map),[I,P]=pp($,0),[R,O]=pp($,0),[D,M]=pp($,0),[B,T]=pp($,0),[A,L]=t.useState(null),[j,H]=t.useState(null),F=l.useMemo(()=>null===j&&C?Number.MAX_SAFE_INTEGER:j||0,[j,S]),[V,W]=t.useState(!1),K=`${o}-item`,q=Math.max(I,R),U=m===gp,X=r.length&&U,G=m===vp,Y=X||"number"==typeof m&&r.length>m,Z=t.useMemo(()=>{let e=r;return X?e=null===S&&C?r:r.slice(0,Math.min(r.length,k/c)):"number"==typeof m&&(e=r.slice(0,m)),e},[r,c,S,m,X]),Q=t.useMemo(()=>X?r.slice(F+1):r.slice(Z.length),[r,Z,X,F]),J=t.useCallback((e,t)=>"function"==typeof s?s(e):(s&&e?.[s])??t,[s]),te=t.useCallback(a||(e=>e),[a]);function ne(e,t,n){(j!==e||void 0!==t&&t!==A)&&(H(e),n||(W(e<r.length-1),x?.(e)),void 0!==t&&L(t))}function oe(e,t){_(n=>{const o=new Map(n);return null===t?o.delete(e):o.set(e,t),o})}function re(e){return N.get(J(Z[e],e))}ee(()=>{if(k&&"number"==typeof q&&Z){let e=D+B;const t=Z.length,n=t-1;if(!t)return void ne(0,null);for(let o=0;o<t;o+=1){let t=re(o);if(C&&(t=t||0),void 0===t){ne(o-1,void 0,!0);break}if(e+=t,0===n&&e<=k||o===n-1&&e+re(n)<=k){ne(n,null);break}if(e+q>k){ne(o-1,e-t-B+R);break}}v&&re(0)+B>k&&L(null)}},[k,N,R,D,B,J,Z]);const ae=V&&!!Q.length;let ie={};null!==A&&X&&(ie={position:"absolute",left:A,top:0});const le={prefixCls:K,responsive:X,component:y,invalidate:G},se=i?(e,t)=>{const n=J(e,t);return l.createElement(mp.Provider,{key:n,value:{...le,order:t,item:e,itemKey:n,registerSize:oe,display:t<=F}},i(e,t))}:(e,t)=>{const n=J(e,t);return l.createElement(dp,Pc({},le,{order:t,key:n,item:e,renderItem:te,itemKey:n,registerSize:oe,display:t<=F}))},ce={order:ae?F:Number.MAX_SAFE_INTEGER,className:`${K}-rest`,registerSize:function(e,t){O(t),P(R)},display:ae},de=f||bp,ue=h?l.createElement(mp.Provider,{value:{...le,...ce}},h(Q)):l.createElement(dp,Pc({},le,ce),"function"==typeof de?de(Q):de),pe=l.createElement(b,Pc({className:z(!G&&o,p),style:u,ref:n},w),g&&l.createElement(dp,Pc({},le,{responsive:U,responsiveDisabled:!X,order:-1,className:`${K}-prefix`,registerSize:function(e,t){M(t)},display:!0}),g),Z.map(se),Y?ue:null,v&&l.createElement(dp,Pc({},le,{responsive:U,responsiveDisabled:!X,order:F,className:`${K}-suffix`,registerSize:function(e,t){T(t)},display:!0,style:ie}),v));return U?l.createElement(nt,{onResize:function(e,t){E(t.clientWidth)},disabled:!X},pe):pe}const xp=l.forwardRef(yp);xp.Item=hp,xp.RESPONSIVE=gp,xp.INVALIDATE=vp,"production"!==process.env.NODE_ENV&&(xp.displayName="Overflow");const wp=e=>{const{className:t,style:n,customizeIcon:o,customizeIconProps:r,children:a,onMouseDown:i,onClick:s}=e,c="function"==typeof o?o(r):o;return l.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),i?.(e)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:l.createElement("span",{className:z(t.split(/\s+/).map(e=>`${e}-icon`))},a))};function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Cp.apply(this,arguments)}function $p(e){return e.key??e.value}const Sp=e=>{e.preventDefault(),e.stopPropagation()};var Ep=l.forwardRef(function({inputProps:e},t){const{prefixCls:n,displayValues:o,searchValue:r,mode:a,onSelectorRemove:i,removeIcon:s}=Ju(),{disabled:c,showSearch:d,triggerOpen:u,toggleOpen:p,autoClearSearchValue:m,tagRender:f,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:v,classNames:b,styles:y}=ju(),x=`${n}-selection-item`;let w=r;u||"multiple"!==a||!1===m||(w="");const C=d&&w||"",$=d&&!c,S=s??"×",E=h??(e=>`+ ${e.length} ...`),k=f,N=(e,t,n,o,r)=>l.createElement("span",{title:ap(e),className:z(x,{[`${x}-disabled`]:n},b?.item),style:y?.item},l.createElement("span",{className:z(`${x}-content`,b?.itemContent),style:y?.itemContent},t),o&&l.createElement(wp,{className:z(`${x}-remove`,b?.itemRemove),style:y?.itemRemove,onMouseDown:Sp,onClick:r,customizeIcon:S},"×")),_=(e,t,n,o,r,a,i)=>l.createElement("span",{onMouseDown:e=>{Sp(e),p(!u)}},k({label:t,value:e,index:i?.index,disabled:n,closable:o,onClose:r,isMaxTag:!!a}));return l.createElement(xp,{prefixCls:`${n}-content`,className:b?.content,style:y?.content,prefix:o.length||r&&u?null:l.createElement(tp,null),data:o,renderItem:(e,t)=>{const{disabled:n,label:o,value:r}=e,a=!c&&!n;let l=o;if("number"==typeof g&&("string"==typeof o||"number"==typeof o)){const e=String(l);e.length>g&&(l=`${e.slice(0,g)}...`)}const s=t=>{t&&t.stopPropagation(),(e=>{i?.(e)})(e)};return"function"==typeof k?_(r,l,n,a,s,void 0,t):N(e,l,n,a,s)},renderRest:e=>{if(!o.length)return null;const t="function"==typeof E?E(e):E;return"function"==typeof k?_(void 0,t,!1,!1,void 0,!0):N({title:t},t,!1)},suffix:l.createElement(ep,Cp({ref:t,disabled:c,readOnly:!$},e,{value:C||"",syncWidth:!0})),itemKey:$p,maxCount:v})});const kp=l.forwardRef(function(e,t){const{multiple:n,onInputKeyDown:o,tabIndex:r}=Ju(),a=ju(),{showSearch:i}=a,s={...mi(a,{aria:!0}),onKeyDown:o,readOnly:!i,tabIndex:r};return n?l.createElement(Ep,{ref:t,inputProps:s}):l.createElement(lp,{ref:t,inputProps:s})});function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Np.apply(this,arguments)}const _p=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"];var Ip=l.forwardRef(function(e,t){const{prefixCls:n,className:o,style:r,prefix:a,suffix:i,clearIcon:s,children:c,multiple:d,displayValues:u,placeholder:p,mode:m,searchValue:f,onSearch:h,onSearchSubmit:g,onInputBlur:v,maxLength:b,autoFocus:y,onMouseDown:x,onClearMouseDown:w,onInputKeyDown:C,onSelectorRemove:$,tokenWithEnter:S,components:E,...k}=e,{triggerOpen:N,toggleOpen:_,showSearch:I,disabled:P,loading:R,classNames:O,styles:D}=ju(),M=l.useRef(null),B=l.useRef(null),T=Z(e=>{const{which:t}=e,n=B.current instanceof HTMLTextAreaElement;if(n||!N||t!==hs.UP&&t!==hs.DOWN||e.preventDefault(),C&&C(e),n&&!N&&~[hs.UP,hs.DOWN,hs.LEFT,hs.RIGHT].indexOf(t))return;var o;e.ctrlKey||e.altKey||e.metaKey||(!(o=t)||[hs.ESC,hs.SHIFT,hs.BACKSPACE,hs.TAB,hs.WIN_KEY,hs.ALT,hs.META,hs.WIN_KEY_RIGHT,hs.CTRL,hs.SEMICOLON,hs.EQUALS,hs.CAPS_LOCK,hs.CONTEXT_MENU,hs.UP,hs.LEFT,hs.RIGHT,hs.F1,hs.F2,hs.F3,hs.F4,hs.F5,hs.F6,hs.F7,hs.F8,hs.F9,hs.F10,hs.F11,hs.F12].includes(o))||_(!0)});l.useImperativeHandle(t,()=>({focus:e=>{(B.current||M.current).focus?.(e)},blur:()=>{(B.current||M.current).blur?.()},nativeElement:M.current}));const A=Z(e=>{if(!P){const t=qe(B.current);e.nativeEvent._ori_target=t,t&&e.target!==t&&!t.contains(e.target)&&e.preventDefault();const n=N&&!d&&("combobox"===m||I);e.nativeEvent._select_lazy?N&&_(!1):(B.current?.focus(),n||_())}x?.(e)}),{root:L}=E,j=Be(k,_p),H=mi(j,{aria:!0}),F=Object.keys(H),V={...e,onInputKeyDown:T};return L?l.isValidElement(L)?l.cloneElement(L,{...j,ref:ge(L.ref,M)}):l.createElement(L,Np({},j,{ref:M})):l.createElement(Qu.Provider,{value:V},l.createElement("div",Np({},Be(j,F),{ref:M,className:o,style:r,onMouseDown:A}),l.createElement(Zu,{className:z(`${n}-prefix`,O?.prefix),style:D?.prefix},a),l.createElement(kp,{ref:B}),l.createElement(Zu,{className:z(`${n}-suffix`,{[`${n}-suffix-loading`]:R},O?.suffix),style:D?.suffix},i),s&&l.createElement(Zu,{className:z(`${n}-clear`,O?.clear),style:D?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,w?.(e)}},s),c))});function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pp.apply(this,arguments)}const Rp=e=>"tags"===e||"multiple"===e,Op=l.forwardRef((e,n)=>{const{id:o,prefixCls:r,className:a,styles:i,classNames:s,showSearch:c,tagRender:d,showScrollBar:u="optional",direction:p,omitDomProps:m,displayValues:f,onDisplayValuesChange:h,emptyOptions:g,notFoundContent:v="Not Found",onClear:b,maxCount:y,placeholder:x,mode:w,disabled:C,loading:$,getInputElement:S,getRawInputElement:E,open:k,defaultOpen:N,onPopupVisibleChange:_,activeValue:I,onActiveValueChange:P,activeDescendantId:R,searchValue:O,autoClearSearchValue:D,onSearch:M,onSearchSplit:B,tokenSeparators:T,allowClear:A,prefix:L,suffix:j,suffixIcon:H,clearIcon:F,OptionList:V,animation:W,transitionName:K,popupStyle:q,popupClassName:U,popupMatchSelectWidth:X,popupRender:G,popupAlign:Y,placement:Q,builtinPlacements:J,getPopupContainer:ee,showAction:te=[],onFocus:oe,onBlur:re,onKeyUp:ae,onKeyDown:ie,onMouseDown:le,components:se,...ce}=e,de=Rp(w),ue=l.useRef(null),pe=l.useRef(null),me=l.useRef(null),[fe,he]=l.useState(!1);l.useImperativeHandle(n,()=>({focus:ue.current?.focus,blur:ue.current?.blur,scrollTo:e=>me.current?.scrollTo(e),nativeElement:qe(ue.current)}));const ge=function(e,t,n){return l.useMemo(()=>{let{root:o,input:r}=e||{};return n&&(o=n()),t&&(r=t()),{root:o,input:r}},[e,t,n])}(se,S,E),ve=l.useMemo(()=>{if("combobox"!==w)return O;const e=f[0]?.value;return"string"==typeof e||"number"==typeof e?String(e):""},[O,w,f]),be="combobox"===w&&"function"==typeof S&&S()||null,ye=!v&&g,[xe,we]=function(e,n,o,r){const[a,i]=t.useState(!1);t.useEffect(()=>{i(!0)},[]);const[l,s]=ne(e,n),c=r(!!a&&l),d=t.useRef(0),u=Z(e=>{o&&c!==e&&o(e),s(e)}),p=Z((e,t={})=>{const{cancelFun:n}=t;d.current+=1;const o=d.current,r="boolean"==typeof e?e:!c;function a(){o!==d.current||n?.()||u(r)}r?a():Yu(()=>{a()})});return[c,p]}(N||!1,k,_,e=>!C&&!ye&&e),Ce=l.useMemo(()=>(T||[]).some(e=>["\n","\r\n"].includes(e)),[T]),$e=(e,t,n)=>{if(de&&qu(y)&&f.length>=y)return;let o=!0,r=e;P?.(null);const a=((e,t,n)=>{if(!t||!t.length)return null;let o=!1;const r=(e,[t,...n])=>{if(!t)return[e];const a=e.split(t);return o=o||a.length>1,a.reduce((e,t)=>[...e,...r(t,n)],[]).filter(Boolean)},a=r(e,t);return o?void 0!==n?a.slice(0,n):a:null})(e,T,qu(y)?y-f.length:void 0),i=n?null:a;return"combobox"!==w&&i&&(r="",B?.(i),we(!1),o=!1),M&&ve!==r&&M(r,{source:t?"typing":"effect"}),e&&t&&o&&we(!0),o};l.useEffect(()=>{xe||de||"combobox"===w||$e("",!1,!1)},[xe]),l.useEffect(()=>{C&&(we(!1),he(!1))},[C,xe]);const[Se,Ee]=function(e=250){const t=l.useRef(null),n=l.useRef(null);return l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]),[()=>t.current,function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}]}(),ke=l.useRef(!1),Ne=Z(e=>{const t=f.filter(t=>t!==e);h(t,{type:"remove",values:[e]})}),_e=()=>[qe(ue.current),pe.current?.getPopupElement()];!function(e,t,n,o){const r=Z(r=>{if(o)return;let a=r.target;a.shadowRoot&&r.composed&&(a=r.composedPath()[0]||a),r._ori_target&&(a=r._ori_target),t&&!Hu(e(),a)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",r),()=>window.removeEventListener("mousedown",r)),[r])}(_e,xe,we,!!ge.root);const Ie=l.useRef(!1),Pe=()=>{xe&&!Ie.current&&we(!1,{cancelFun:()=>Hu(_e(),document.activeElement)})},Re=(e,...t)=>{const{target:n}=e,o=pe.current?.getPopupElement();o?.contains(n)&&we&&we(!0),le?.(e,...t),Ie.current=!0,Yu(()=>{Ie.current=!1})},[,Oe]=l.useState({});let De;ge.root&&(De=e=>{we(e)});const Me=l.useMemo(()=>({...e,notFoundContent:v,open:xe,triggerOpen:xe,id:o,showSearch:c,multiple:de,toggleOpen:we,showScrollBar:u,styles:i,classNames:s}),[e,v,we,o,c,de,xe,u,i,s]),Be=l.useMemo(()=>{const e=j??H;return"function"==typeof e?e({searchValue:ve,open:xe,focused:fe,showSearch:c,loading:$}):e},[j,H,ve,xe,fe,c,$]),{allowClear:Te,clearIcon:ze}=((e,n,o,r,a=!1,i,l)=>{const s=t.useMemo(()=>"boolean"==typeof o?{allowClear:o}:o&&"object"==typeof o?o:{allowClear:!1},[o]);return t.useMemo(()=>{const e=!a&&!1!==s.allowClear&&(n.length||i)&&!("combobox"===l&&""===i);return{allowClear:e,clearIcon:e?s.clearIcon||r||"×":null}},[s,r,a,n.length,i,l])})(0,f,A,F,C,ve,w),Ae=l.createElement(V,{ref:me}),Le=z(r,a,{[`${r}-focused`]:fe,[`${r}-multiple`]:de,[`${r}-single`]:!de,[`${r}-allow-clear`]:Te,[`${r}-show-arrow`]:null!=Be,[`${r}-disabled`]:C,[`${r}-loading`]:$,[`${r}-open`]:xe,[`${r}-customize-input`]:be,[`${r}-show-search`]:c});let je=l.createElement(Ip,Pp({},ce,{ref:ue,prefixCls:r,className:Le,focused:fe,prefix:L,suffix:Be,clearIcon:ze,multiple:de,mode:w,displayValues:f,placeholder:x,searchValue:ve,activeValue:I,onSearch:$e,onSearchSubmit:e=>{e&&e.trim()&&M(e,{source:"submit"})},onInputBlur:()=>{ke.current=!1},onFocus:e=>{he(!0),C||(te.includes("focus")&&we(!0),oe?.(e))},onBlur:e=>{he(!1),ve&&("tags"===w?M(ve,{source:"submit"}):"multiple"===w&&M("",{source:"blur"})),Pe(),C||re?.(e)},onClearMouseDown:()=>{b?.(),ue.current?.focus(),h([],{type:"clear",values:f}),$e("",!1,!1)},onKeyDown:e=>{const t=Se(),{key:n}=e,o="Enter"===n;if(o&&("combobox"!==w&&e.preventDefault(),xe||we(!0)),Ee(!!ve),"Backspace"===n&&!t&&de&&!ve&&f.length){const e=[...f];let t=null;for(let n=e.length-1;n>=0;n-=1){const o=e[n];if(!o.disabled){e.splice(n,1),t=o;break}}t&&h(e,{type:"remove",values:[t]})}!xe||o&&ke.current||(o&&(ke.current=!0),me.current?.onKeyDown(e)),ie?.(e)},onKeyUp:(e,...t)=>{xe&&me.current?.onKeyUp(e,...t),"Enter"===e.key&&(ke.current=!1),ae?.(e,...t)},onSelectorRemove:Ne,tokenWithEnter:Ce,onMouseDown:Re,components:ge}));return je=l.createElement(Wu,{ref:pe,disabled:C,prefixCls:r,visible:xe,popupElement:Ae,animation:W,transitionName:K,popupStyle:q,popupClassName:U,direction:p,popupMatchSelectWidth:X,popupRender:G,popupAlign:Y,placement:Q,builtinPlacements:J,getPopupContainer:ee,empty:g,onPopupVisibleChange:De,onPopupMouseEnter:function(){Oe({})},onPopupMouseDown:Re,onPopupBlur:Pe},je),l.createElement(Lu.Provider,{value:Me},l.createElement(Gu,{visible:fe&&!xe,values:f}),je)});"production"!==process.env.NODE_ENV&&(Op.displayName="BaseSelect");const Dp=()=>null;Dp.isSelectOptGroup=!0;const Mp=()=>null;Mp.isSelectOption=!0;const Bp=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:o,prefixCls:r,onInnerResize:a,innerProps:i,rtl:s,extra:c},d)=>{let u={},p={display:"flex",flexDirection:"column"};return void 0!==t&&(u={height:e,position:"relative",overflow:"hidden"},p={...p,transform:`translateY(${t}px)`,[s?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),l.createElement("div",{style:u},l.createElement(nt,{onResize:({offsetHeight:e})=>{e&&a&&a()}},l.createElement("div",Pc({style:p,className:z({[`${r}-holder-inner`]:r}),ref:d},i),o,c)))});function Tp({children:e,setRef:t}){const n=l.useCallback(e=>{t(e)},[]);return l.cloneElement(e,{ref:n})}function zp(e,t,n){const[o,r]=l.useState(e),[a,i]=l.useState(null);return l.useEffect(()=>{const a=function(e,t,n){const o=e.length,r=t.length;let a,i;if(0===o&&0===r)return null;o<r?(a=e,i=t):(a=t,i=e);const l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}let c=null,d=1!==Math.abs(o-r);for(let e=0;e<i.length;e+=1){const t=s(a[e]);if(t!==s(i[e])){c=e,d=d||t!==s(i[e+1]);break}}return null===c?null:{index:c,multiple:d}}(o||[],e||[],t);void 0!==a?.index&&(n?.(a.index),i(e[a.index])),r(e)},[e]),[a]}Bp.displayName="Filler";const Ap="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent);var Lp=(e,n,o,r)=>{const a=t.useRef(!1),i=t.useRef(null);const l=t.useRef({top:e,bottom:n,left:o,right:r});return l.current.top=e,l.current.bottom=n,l.current.left=o,l.current.right=r,(e,t,n=!1)=>{const o=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&o?(clearTimeout(i.current),a.current=!1):o&&!a.current||(clearTimeout(i.current),a.current=!0,i.current=setTimeout(()=>{a.current=!1},50)),!a.current&&o}};function jp(e,n,o,r,a,i,l){const s=t.useRef(0),c=t.useRef(null),d=t.useRef(null),u=t.useRef(!1),p=Lp(n,o,r,a);const m=t.useRef(null),f=t.useRef(null);return[function(t){if(!e)return;ut.cancel(f.current),f.current=ut(()=>{m.current=null},2);const{deltaX:n,deltaY:o,shiftKey:r}=t;let a=n,h=o;("sx"===m.current||!m.current&&r&&o&&!n)&&(a=o,h=0,m.current="sx");const g=Math.abs(a),v=Math.abs(h);null===m.current&&(m.current=i&&g>v?"x":"y"),"y"===m.current?function(e,t){if(ut.cancel(c.current),p(!1,t))return;const n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,d.current=t,Ap||n.preventDefault(),c.current=ut(()=>{const e=u.current?10:1;l(s.current*e,!1),s.current=0}))}(t,h):function(e,t){l(t,!0),Ap||e.preventDefault()}(t,a)},function(t){e&&(u.current=t.detail===d.current)}]}class Hp{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function Fp(e){const t=parseFloat(e);return isNaN(t)?0:t}const Vp=14/15;function Wp(e){return Math.floor(e**.5)}function Kp(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}const qp=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:o,scrollOffset:r,scrollRange:a,onStartMove:i,onStopMove:s,onScroll:c,horizontal:d,spinSize:u,containerSize:p,style:m,thumbStyle:f,showScrollBar:h}=e,[g,v]=l.useState(!1),[b,y]=l.useState(null),[x,w]=l.useState(null),C=!o,$=l.useRef(),S=l.useRef(),[E,k]=l.useState(h),N=l.useRef(),_=()=>{!0!==h&&!1!==h&&(clearTimeout(N.current),k(!0),N.current=setTimeout(()=>{k(!1)},3e3))},I=a-p||0,P=p-u||0,R=l.useMemo(()=>{if(0===r||0===I)return 0;return r/I*P},[r,I,P]),O=l.useRef({top:R,dragging:g,pageY:b,startTop:x});O.current={top:R,dragging:g,pageY:b,startTop:x};const D=e=>{v(!0),y(Kp(e,d)),w(O.current.top),i(),e.stopPropagation(),e.preventDefault()};l.useEffect(()=>{const e=e=>{e.preventDefault()},t=$.current,n=S.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",D,{passive:!1}),()=>{t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",D)}},[]);const M=l.useRef();M.current=I;const B=l.useRef();B.current=P,l.useEffect(()=>{if(g){let e;const t=t=>{const{dragging:n,pageY:o,startTop:r}=O.current;ut.cancel(e);const a=$.current.getBoundingClientRect(),i=p/(d?a.width:a.height);if(n){const n=(Kp(t,d)-o)*i;let a=r;!C&&d?a-=n:a+=n;const l=M.current,s=B.current,u=s?a/s:0;let p=Math.ceil(u*l);p=Math.max(p,0),p=Math.min(p,l),e=ut(()=>{c(p,d)})}},n=()=>{v(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ut.cancel(e)}}},[g]),l.useEffect(()=>(_(),()=>{clearTimeout(N.current)}),[r]),l.useImperativeHandle(t,()=>({delayHidden:_}));const T=`${n}-scrollbar`,A={position:"absolute",visibility:E?null:"hidden"},L={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(A,{height:8,left:0,right:0,bottom:0}),Object.assign(L,{height:"100%",width:u,[C?"left":"right"]:R})):(Object.assign(A,{width:8,top:0,bottom:0,[C?"right":"left"]:0}),Object.assign(L,{width:"100%",height:u,top:R})),l.createElement("div",{ref:$,className:z(T,{[`${T}-horizontal`]:d,[`${T}-vertical`]:!d,[`${T}-visible`]:E}),style:{...A,...m},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseMove:_},l.createElement("div",{ref:S,className:z(`${T}-thumb`,{[`${T}-thumb-moving`]:g}),style:{...L,...f},onMouseDown:D}))});"production"!==process.env.NODE_ENV&&(qp.displayName="ScrollBar");function Up(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}const Xp=[],Gp={overflowY:"auto",overflowAnchor:"none"};function Yp(e,n){const{prefixCls:r="rc-virtual-list",className:a,height:i,itemHeight:s,fullHeight:c=!0,style:d,data:u,children:p,itemKey:m,virtual:f,direction:h,scrollWidth:g,component:v="div",onScroll:b,onVirtualScroll:y,onVisibleChange:x,innerProps:w,extraRender:C,styles:$,showScrollBar:S="optional",...E}=e,k=l.useCallback(e=>"function"==typeof m?m(e):e?.[m],[m]),[N,_,I,P]=function(e,n,o){const[r,a]=l.useState(0),i=t.useRef(new Map),s=t.useRef(new Hp),c=t.useRef(0);function d(){c.current+=1}function u(e=!1){d();const t=()=>{let e=!1;i.current.forEach((t,n)=>{if(t&&t.offsetParent){const{offsetHeight:o}=t,{marginTop:r,marginBottom:a}=getComputedStyle(t),i=o+Fp(r)+Fp(a);s.current.get(n)!==i&&(s.current.set(n,i),e=!0)}}),e&&a(e=>e+1)};if(e)t();else{c.current+=1;const e=c.current;Promise.resolve().then(()=>{e===c.current&&t()})}}return t.useEffect(()=>d,[]),[function(t,r){const a=e(t),l=i.current.get(a);r?(i.current.set(a,r),u()):i.current.delete(a),!l!=!r&&(r?n?.(t):o?.(t))},u,s.current,r]}(k,null,null),R=!(!1===f||!i||!s),O=l.useMemo(()=>Object.values(I.maps).reduce((e,t)=>e+t,0),[I.id,I.maps]),D=R&&u&&(Math.max(s*u.length,O)>i||!!g),M="rtl"===h,B=z(r,{[`${r}-rtl`]:M},a),T=u||Xp,A=t.useRef(),L=t.useRef(),j=t.useRef(),[H,F]=t.useState(0),[V,W]=t.useState(0),[K,q]=t.useState(!1),U=()=>{q(!0)},X=()=>{q(!1)},G={getKey:k};function Y(e){F(t=>{let n;n="function"==typeof e?e(t):e;const o=function(e){let t=e;Number.isNaN(me.current)||(t=Math.min(t,me.current));return t=Math.max(t,0),t}(n);return A.current.scrollTop=o,o})}const Q=t.useRef({start:0,end:T.length}),J=t.useRef(),[te]=zp(T,k);J.current=te;const{scrollHeight:ne,start:oe,end:re,offset:ae}=l.useMemo(()=>{if(!R)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!D)return{scrollHeight:L.current?.offsetHeight||0,start:0,end:T.length-1,offset:void 0};let e,t,n,o=0;const r=T.length;for(let a=0;a<r;a+=1){const r=T[a],l=k(r),c=I.get(l),d=o+(void 0===c?s:c);d>=H&&void 0===e&&(e=a,t=o),d>H+i&&void 0===n&&(n=a),o=d}return void 0===e&&(e=0,t=0,n=Math.ceil(i/s)),void 0===n&&(n=T.length-1),n=Math.min(n+1,T.length-1),{scrollHeight:o,start:e,end:n,offset:t}},[D,R,H,T,P,i]);Q.current.start=oe,Q.current.end=re,l.useLayoutEffect(()=>{const e=I.getRecord();if(1===e.size){const t=Array.from(e.keys())[0],n=e.get(t),o=T[oe];if(o&&void 0===n){if(k(o)===t){const e=I.get(t)-s;Y(t=>t+e)}}}I.resetRecord()},[ne]);const[ie,le]=l.useState({width:0,height:i}),se=t.useRef(),ce=t.useRef(),de=l.useMemo(()=>Up(ie.width,g),[ie.width,g]),ue=l.useMemo(()=>Up(ie.height,ne),[ie.height,ne]),pe=ne-i,me=t.useRef(pe);me.current=pe;const fe=H<=0,he=H>=pe,ge=V<=0,ve=V>=g,be=Lp(fe,he,ge,ve),ye=()=>({x:M?-V:V,y:H}),xe=t.useRef(ye()),we=Z(e=>{if(y){const t={...ye(),...e};xe.current.x===t.x&&xe.current.y===t.y||(y(t),xe.current=t)}});function Ce(e,t){const n=e;t?(o.flushSync(()=>{W(n)}),we()):Y(n)}const $e=e=>{let t=e;const n=g?g-ie.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Se=Z((e,t)=>{t?(o.flushSync(()=>{W(t=>$e(t+(M?-e:e)))}),we()):Y(t=>t+e)}),[Ee,ke]=jp(R,fe,he,ge,ve,!!g,Se);!function(e,n,o){const r=t.useRef(!1),a=t.useRef(0),i=t.useRef(0),l=t.useRef(null),s=t.useRef(null);let c;const d=e=>{if(r.current){const t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY);let r=a.current-t,l=i.current-n;const c=Math.abs(r)>Math.abs(l);c?a.current=t:i.current=n;const d=o(c,c?r:l,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval(()=>{c?r*=Vp:l*=Vp;const e=Math.floor(c?r:l);(!o(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},p=e=>{c(),1!==e.touches.length||r.current||(r.current=!0,a.current=Math.ceil(e.touches[0].pageX),i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",d,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};c=()=>{l.current&&(l.current.removeEventListener("touchmove",d),l.current.removeEventListener("touchend",u))},ee(()=>(e&&n.current.addEventListener("touchstart",p,{passive:!0}),()=>{n.current?.removeEventListener("touchstart",p),c(),clearInterval(s.current)}),[e])}(R,A,(e,t,n,o)=>{const r=o;return!be(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Ee({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){l.useEffect(()=>{const o=t.current;if(e&&o){let e,t,r=!1;const a=()=>{ut.cancel(e)},i=()=>{a(),e=ut(()=>{n(t),i()})},l=()=>{r=!1,a()},s=e=>{if(e.target.draggable||0!==e.button)return;const t=e;t._virtualHandled||(t._virtualHandled=!0,r=!0)},c=e=>{if(r){const n=Kp(e,!1),{top:r,bottom:l}=o.getBoundingClientRect();n<=r?(t=-Wp(r-n),i()):n>=l?(t=Wp(n-l),i()):a()}};return o.addEventListener("mousedown",s),o.ownerDocument.addEventListener("mouseup",l),o.ownerDocument.addEventListener("mousemove",c),o.ownerDocument.addEventListener("dragend",l),()=>{o.removeEventListener("mousedown",s),o.ownerDocument.removeEventListener("mouseup",l),o.ownerDocument.removeEventListener("mousemove",c),o.ownerDocument.removeEventListener("dragend",l),a()}}},[e])}(D,A,e=>{Y(t=>t+e)}),ee(()=>{function e(e){const t=fe&&e.detail<0,n=he&&e.detail>0;!R||t||n||e.preventDefault()}const t=A.current;return t.addEventListener("wheel",Ee,{passive:!1}),t.addEventListener("DOMMouseScroll",ke,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",Ee),t.removeEventListener("DOMMouseScroll",ke),t.removeEventListener("MozMousePixelScroll",e)}},[R,fe,he]),ee(()=>{if(g){const e=$e(V);W(e),we({x:e})}},[ie.width,g]);const Ne=()=>{se.current?.delayHidden(),ce.current?.delayHidden()},_e=function(e,t,n,o,r,a,i,s){const c=l.useRef(),[d,u]=l.useState(null);return ee(()=>{if(d&&d.times<10){if(!e.current)return void u(e=>({...e}));a();const{targetAlign:l,originAlign:s,index:c,offset:p}=d,m=e.current.clientHeight;let f=!1,h=l,g=null;if(m){const a=l||s;let u=0,v=0,b=0;const y=Math.min(t.length-1,c);for(let e=0;e<=y;e+=1){const a=r(t[e]);v=u;const i=n.get(a);b=v+(void 0===i?o:i),u=b}let x="top"===a?p:m-p;for(let e=y;e>=0;e-=1){const o=r(t[e]),a=n.get(o);if(void 0===a){f=!0;break}if(x-=a,x<=0)break}switch(a){case"top":g=v-p;break;case"bottom":g=b-m+p;break;default:{const{scrollTop:t}=e.current;v<t?h="top":b>t+m&&(h="bottom")}}null!==g&&i(g),g!==d.lastTop&&(f=!0)}f&&u({...d,times:d.times+1,targetAlign:h,lastTop:g})}else"production"!==process.env.NODE_ENV&&10===d?.times&&De(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,e.current]),e=>{if(null!=e){if(ut.cancel(c.current),"number"==typeof e)i(e);else if(e&&"object"==typeof e){let n;const{align:o}=e;"index"in e?({index:n}=e):n=t.findIndex(t=>r(t)===e.key);const{offset:a=0}=e;u({times:0,index:n,offset:a,originAlign:o})}}else s()}}(A,T,I,s,k,()=>_(!0),Y,Ne);l.useImperativeHandle(n,()=>({nativeElement:j.current,getScrollInfo:ye,scrollTo:e=>{var t;(t=e)&&"object"==typeof t&&("left"in t||"top"in t)?(void 0!==e.left&&W($e(e.left)),_e(e.top)):_e(e)}})),ee(()=>{if(x){const e=T.slice(oe,re+1);x(e,T)}},[oe,re,T]);const Ie=function(e,t,n,o){const[r,a]=l.useMemo(()=>[new Map,[]],[e,n.id,o]);return(i,l=i)=>{let s=r.get(i),c=r.get(l);if(void 0===s||void 0===c){const d=e.length;for(let u=a.length;u<d;u+=1){const d=e[u],p=t(d);r.set(p,u);const m=n.get(p)??o;if(a[u]=(a[u-1]||0)+m,p===i&&(s=u),p===l&&(c=u),void 0!==s&&void 0!==c)break}}return{top:a[s-1]||0,bottom:a[c]}}}(T,k,I,s),Pe=C?.({start:oe,end:re,virtual:D,offsetX:V,offsetY:ae,rtl:M,getSize:Ie}),Re=function(e,t,n,o,r,a,i,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{const c=i(e,t+n,{style:{width:o},offsetX:r}),d=s(e);return l.createElement(Tp,{key:d,setRef:t=>a(e,t)},c)})}(T,oe,re,g,V,N,p,G);let Oe=null;i&&(Oe={[c?"height":"maxHeight"]:i,...Gp},R&&(Oe.overflowY="hidden",g&&(Oe.overflowX="hidden"),K&&(Oe.pointerEvents="none")));const Me={};return M&&(Me.dir="rtl"),l.createElement("div",Pc({ref:j,style:{...d,position:"relative"},className:B},Me,E),l.createElement(nt,{onResize:e=>{le({width:e.offsetWidth,height:e.offsetHeight})}},l.createElement(v,{className:`${r}-holder`,style:Oe,ref:A,onScroll:function(e){const{scrollTop:t}=e.currentTarget;t!==H&&Y(t),b?.(e),we()},onMouseEnter:Ne},l.createElement(Bp,{prefixCls:r,height:ne,offsetX:V,offsetY:ae,scrollWidth:g,onInnerResize:_,ref:L,innerProps:w,rtl:M,extra:Pe},Re))),D&&ne>i&&l.createElement(qp,{ref:se,prefixCls:r,scrollOffset:H,scrollRange:ne,rtl:M,onScroll:Ce,onStartMove:U,onStopMove:X,spinSize:ue,containerSize:ie.height,style:$?.verticalScrollBar,thumbStyle:$?.verticalScrollBarThumb,showScrollBar:S}),D&&g>ie.width&&l.createElement(qp,{ref:ce,prefixCls:r,scrollOffset:V,scrollRange:g,rtl:M,onScroll:Ce,onStartMove:U,onStopMove:X,spinSize:de,containerSize:ie.width,horizontal:!0,style:$?.horizontalScrollBar,thumbStyle:$?.horizontalScrollBarThumb,showScrollBar:S}))}const Zp=l.forwardRef(Yp);function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qp.apply(this,arguments)}function Jp(e){return"string"==typeof e||"number"==typeof e}Zp.displayName="List";const em=(e,n)=>{const{prefixCls:o,id:r,open:a,multiple:i,mode:s,searchValue:c,toggleOpen:d,notFoundContent:u,onPopupScroll:p,showScrollBar:m}=ju(),{maxCount:f,flattenOptions:h,onActiveValue:g,defaultActiveFirstOption:v,onSelect:b,menuItemSelectedIcon:y,rawValues:x,fieldNames:w,virtual:C,direction:$,listHeight:S,listItemHeight:E,optionRender:k,classNames:N,styles:_}=l.useContext(np),I=`${o}-item`,P=ce(()=>h,[a,h],(e,t)=>t[0]&&e[1]!==t[1]),R=l.useRef(null),O=l.useMemo(()=>i&&qu(f)&&x?.size>=f,[i,f,x?.size]),D=e=>{e.preventDefault()},M=e=>{R.current?.scrollTo("number"==typeof e?{index:e}:e)},B=l.useCallback(e=>"combobox"!==s&&x.has(e),[s,[...x].toString(),x.size]),T=(e,t=1)=>{const n=P.length;for(let o=0;o<n;o+=1){const r=(e+o*t+n)%n,{group:a,data:i}=P[r]||{};if(!a&&!i?.disabled&&(B(i.value)||!O))return r}return-1},[A,L]=l.useState(()=>T(0)),j=(e,t=!1)=>{L(e);const n={source:t?"keyboard":"mouse"},o=P[e];o?g(o.value,e,n):g(null,-1,n)};t.useEffect(()=>{j(!1!==v?T(0):-1)},[P.length,c]);const H=l.useCallback(e=>"combobox"===s?String(e).toLowerCase()===c.toLowerCase():x.has(e),[s,c,[...x].toString(),x.size]);t.useEffect(()=>{let e;if(!i&&a&&1===x.size){const t=Array.from(x)[0],n=P.findIndex(({data:e})=>c?String(e.value).startsWith(c):e.value===t);-1!==n&&(j(n),e=setTimeout(()=>{M(n)}))}return a&&R.current?.scrollTo(void 0),()=>clearTimeout(e)},[a,c]);const F=e=>{void 0!==e&&b(e,{selected:!x.has(e)}),i||d(!1)};if(l.useImperativeHandle(n,()=>({onKeyDown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case hs.N:case hs.P:case hs.UP:case hs.DOWN:{let e=0;if(t===hs.UP?e=-1:t===hs.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===hs.N?e=1:t===hs.P&&(e=-1)),0!==e){const t=T(A+e,e);M(t),j(t,!0)}break}case hs.TAB:case hs.ENTER:{const t=P[A];if(!t||t.data.disabled)return F(void 0);!O||x.has(t.value)?F(t.value):F(void 0),a&&e.preventDefault();break}case hs.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{M(e)}})),0===P.length)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${I}-empty`,onMouseDown:D},u);const V=Object.keys(w).map(e=>w[e]),W=e=>e.label;function K(e,t){const{group:n}=e;return{role:n?"presentation":"option",id:`${r}_list_${t}`}}const q=e=>{const t=P[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:r}=t,a=mi(n,!0),i=W(t);return t?l.createElement("div",Qp({"aria-label":"string"!=typeof i||r?null:i},a,{key:e},K(t,e),{"aria-selected":H(o)}),o):null},U={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,C&&l.createElement("div",Qp({},U,{style:{height:0,width:0,overflow:"hidden"}}),q(A-1),q(A),q(A+1)),l.createElement(Zp,{itemKey:"key",ref:R,data:P,height:S,itemHeight:E,fullHeight:!1,onMouseDown:D,onScroll:p,virtual:C,direction:$,innerProps:C?null:U,showScrollBar:m,className:N?.popup?.list,style:_?.popup?.list},(e,t)=>{const{group:n,groupOption:o,data:r,label:a,value:i}=e,{key:s}=r;if(n){const e=r.title??(Jp(a)?a.toString():void 0);return l.createElement("div",{className:z(I,`${I}-group`,r.className),title:e},void 0!==a?a:s)}const{disabled:c,title:d,children:u,style:p,className:m,...f}=r,h=Be(f,V),g=B(i),v=c||!g&&O,b=`${I}-option`,x=z(I,b,m,N?.popup?.listItem,{[`${b}-grouped`]:o,[`${b}-active`]:A===t&&!v,[`${b}-disabled`]:v,[`${b}-selected`]:g}),w=W(e),$=!y||"function"==typeof y||g,S="number"==typeof w?w:w||i;let E=Jp(S)?S.toString():void 0;return void 0!==d&&(E=d),l.createElement("div",Qp({},mi(h),C?{}:K(e,t),{"aria-selected":C?void 0:H(i),className:x,title:E,onMouseMove:()=>{A===t||v||j(t)},onClick:()=>{v||F(i)},style:{..._?.popup?.listItem,...p}}),l.createElement("div",{className:`${b}-content`},"function"==typeof k?k(e,{index:t}):S),l.isValidElement(y)||g,$&&l.createElement(wp,{className:`${I}-option-state`,customizeIcon:y,customizeIconProps:{value:i,disabled:v,isSelected:g}},g?"✓":null))}))},tm=l.forwardRef(em);"production"!==process.env.NODE_ENV&&(tm.displayName="OptionList");function nm(e,t){return op(e).join("").toUpperCase().includes(t)}function om(e,t=!1){return Te(e).map((e,n)=>{if(!l.isValidElement(e)||!e.type)return null;const{type:{isSelectOptGroup:o},key:r,props:{children:a,...i}}=e;return t||!o?function(e){const{key:t,props:{children:n,value:o,...r}}=e;return{key:t,value:void 0!==o?o:t,children:n,...r}}(e):{key:`__RC_SELECT_GRP__${null===r?n:r}__`,label:r,...i,options:om(a)}}).filter(e=>e)}function rm(e){const t=l.useRef();t.current=e;return l.useCallback((...e)=>t.current(...e),[])}function am(){return am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},am.apply(this,arguments)}const im=["inputValue"];const lm=l.forwardRef((e,t)=>{const{id:n,mode:o,prefixCls:r="rc-select",backfill:a,fieldNames:i,showSearch:s,searchValue:c,onSearch:d,autoClearSearchValue:u,filterOption:p,optionFilterProp:m,filterSort:f,onSelect:h,onDeselect:g,onActive:v,popupMatchSelectWidth:b=!0,optionLabelProp:y,options:x,optionRender:w,children:C,defaultActiveFirstOption:$,menuItemSelectedIcon:S,virtual:E,direction:k,listHeight:N=200,listItemHeight:_=20,labelRender:I,value:P,defaultValue:R,labelInValue:O,onChange:D,maxCount:M,classNames:B,styles:T,...z}=e,A={searchValue:c,onSearch:d,autoClearSearchValue:u,filterOption:p,optionFilterProp:m,filterSort:f},[L,j]=function(e,t,n){const{filterOption:o,searchValue:r,optionFilterProp:a,filterSort:i,onSearch:s,autoClearSearchValue:c}=t;return l.useMemo(()=>{const t="object"==typeof e,l={filterOption:o,searchValue:r,optionFilterProp:a,filterSort:i,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[!!(t||"combobox"===n||"tags"===n||"multiple"===n&&void 0===e)||e,l]},[n,e,o,r,a,i,s,c])}(s,A,o),{filterOption:H,searchValue:F,optionFilterProp:V,filterSort:W,onSearch:K,autoClearSearchValue:q=!0}=j,U=l.useMemo(()=>V?Array.isArray(V)?V:[V]:[],[V]),X=ml(n),G=Rp(o),Y=!(x||!C),Z=l.useMemo(()=>(void 0!==H||"combobox"!==o)&&H,[H,o]),Q=l.useMemo(()=>Uu(i,Y),[JSON.stringify(i),Y]),[J,ee]=ne("",F),te=J||"",oe=((e,t,n,o,r)=>l.useMemo(()=>{let a=e;!e&&(a=om(t));const i=new Map,l=new Map,s=(e,t,n)=>{n&&"string"==typeof n&&e.set(t[n],t)},c=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){const d=e[a];!d[n.options]||t?(i.set(d[n.value],d),s(l,d,n.label),o.forEach(e=>{s(l,d,e)}),s(l,d,r)):c(d[n.options],!0)}};return c(a),{options:a,valueOptions:i,labelOptions:l}},[e,t,n,o,r]))(x,C,Q,U,y),{valueOptions:re,labelOptions:ae,options:ie}=oe,le=l.useCallback(e=>op(e).map(e=>{let t,n,o,r;!function(e){return!e||"object"!=typeof e}(e)?(n=e.label,t=e.value):t=e;const a=re.get(t);if(a&&(void 0===n&&(n=a?.[y||Q.label]),o=a?.disabled,r=a?.title,"production"!==process.env.NODE_ENV&&!y)){const e=a?.[Q.label];void 0===e||l.isValidElement(e)||l.isValidElement(n)||e===n||De(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:t,key:t,disabled:o,title:r}}),[Q,y,re]),[se,ce]=ne(R,P),de=l.useMemo(()=>{const e=le(G&&null===se?[]:se);return"combobox"===o&&function(e){return!e&&0!==e}(e[0]?.value)?[]:e},[se,le,o,G]),[ue,pe]=((e,t)=>{const n=l.useRef({values:new Map,options:new Map});return[l.useMemo(()=>{const{values:o,options:r}=n.current,a=e.map(e=>void 0===e.label?{...e,label:o.get(e.value)?.label}:e),i=new Map,l=new Map;return a.forEach(e=>{i.set(e.value,e),l.set(e.value,t.get(e.value)||r.get(e.value))}),n.current.values=i,n.current.options=l,a},[e,t]),l.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]})(de,re),me=l.useMemo(()=>{if(!o&&1===ue.length){const e=ue[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ue.map(e=>({...e,label:("function"==typeof I?I(e):e.label)??e.value}))},[o,ue,I]),fe=l.useMemo(()=>new Set(ue.map(e=>e.value)),[ue]);l.useEffect(()=>{if("combobox"===o){const e=ue[0]?.value;ee(function(e){return null!=e}(e)?String(e):"")}},[ue]);const he=rm((e,t)=>{const n=t??e;return{[Q.value]:e,[Q.label]:n}}),ge=((e,t,n,o,r)=>l.useMemo(()=>{if(!n||!1===o)return e;const{options:a,label:i,value:l}=t,s=[],c="function"==typeof o,d=n.toUpperCase(),u=c?o:(e,t)=>r&&r.length?r.some(e=>nm(t[e],d)):t[a]?nm(t["children"!==i?i:"label"],d):nm(t[l],d),p=c?e=>Xu(e):e=>e;return e.forEach(e=>{if(e[a])if(u(n,p(e)))s.push(e);else{const t=e[a].filter(e=>u(n,p(e)));t.length&&s.push({...e,[a]:t})}else u(n,p(e))&&s.push(e)}),s},[e,o,r,n,t]))(l.useMemo(()=>{if("tags"!==o)return ie;const e=[...ie];return[...ue].sort((e,t)=>e.value<t.value?-1:1).forEach(t=>{const n=t.value;(e=>re.has(e))(n)||e.push(he(n,t.label))}),e},[he,ie,re,ue,o]),Q,te,Z,U),ve=l.useMemo(()=>"tags"!==o||!te||ge.some(e=>(e=>U.length?U.some(t=>e?.[t]===te):e?.value===te)(e))||ge.some(e=>e[Q.value]===te)?ge:[he(te),...ge],[he,U,o,ge,te,Q]),be=e=>[...e].sort((e,t)=>W(e,t,{searchValue:te})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?be(e.options):e.options}:e),ye=l.useMemo(()=>W?be(ve):ve,[ve,W,te]),xe=l.useMemo(()=>function(e,{fieldNames:t,childrenAsData:n}={}){const o=[],{label:r,value:a,options:i,groupLabel:l}=Uu(t,!1);return function e(t,s){Array.isArray(t)&&t.forEach(t=>{if(s||!(i in t)){const e=t[a];o.push({key:Ku(t,o.length),groupOption:s,data:t,label:t[r],value:e})}else{let r=t[l];void 0===r&&n&&(r=t.label),o.push({key:Ku(t,o.length),group:!0,data:t,label:r}),e(t[i],!0)}})}(e,!1),o}(ye,{fieldNames:Q,childrenAsData:Y}),[ye,Q,Y]),we=e=>{const t=le(e);if(ce(t),D&&(t.length!==ue.length||t.some((e,t)=>ue[t]?.value!==e?.value))){const e=O?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>Xu(pe(e.value)));D(G?e:e[0],G?n:n[0])}},[Ce,$e]=l.useState(null),[Se,Ee]=l.useState(0),ke=void 0!==$?$:"combobox"!==o,Ne=l.useRef(),_e=l.useCallback((e,t,{source:n="keyboard"}={})=>{Ee(t),a&&"combobox"===o&&null!==e&&"keyboard"===n&&$e(String(e));const r=Promise.resolve().then(()=>{Ne.current===r&&v?.(e)});Ne.current=r},[a,o,v]),Ie=(e,t,n)=>{const o=()=>{const t=pe(e);return[O?{label:t?.[Q.label],value:e}:e,Xu(t)]};if(t&&h){const[e,t]=o();h(e,t)}else if(!t&&g&&"clear"!==n){const[e,t]=o();g(e,t)}},Pe=rm((e,t)=>{let n;const r=!G||t.selected;n=r?G?[...ue,e]:[e]:ue.filter(t=>t.value!==e),we(n),Ie(e,r),"combobox"===o?$e(""):Rp&&!q||(ee(""),$e(""))}),Re=l.useMemo(()=>{const e=!1!==E&&!1!==b;return{...oe,flattenOptions:xe,onActiveValue:_e,defaultActiveFirstOption:ke,onSelect:Pe,menuItemSelectedIcon:S,rawValues:fe,fieldNames:Q,virtual:e,direction:k,listHeight:N,listItemHeight:_,childrenAsData:Y,maxCount:M,optionRender:w,classNames:B,styles:T}},[M,oe,xe,_e,ke,Pe,S,fe,Q,E,b,k,N,_,Y,w,B,T]);return"production"!==process.env.NODE_ENV&&(function(e){const{mode:t,options:n,children:o,backfill:r,allowClear:a,placeholder:i,getInputElement:s,showSearch:c,onSearch:d,defaultOpen:u,autoFocus:p,labelInValue:m,value:f,optionLabelProp:h}=e,g=Rp(t),v=void 0!==c?c:g||"combobox"===t,b=n||om(o);De("tags"!==t||b.every(e=>!e.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===t||"combobox"===t)&&De(!b.some(e=>e.options?e.options.some(e=>"number"==typeof("value"in e?e.value:e.key)):"number"==typeof("value"in e?e.value:e.key)),"`value` of Option should not use number type when `mode` is `tags` or `combobox`.");if(De("combobox"!==t||!h,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),De("combobox"===t||!r,"`backfill` only works with `combobox` mode."),De("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),Me("combobox"!==t||!s||!a||!i,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),d&&!v&&"combobox"!==t&&"tags"!==t&&De(!1,"`onSearch` should work with `showSearch` instead of use alone."),Me(!u||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){const e=op(f);De(!m||e.every(e=>"object"==typeof e&&("key"in e||"value"in e)),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),De(!g||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(o){let e=null;Te(o).some(t=>{if(!l.isValidElement(t)||!t.type)return!1;const{type:n}=t;return!n.isSelectOption&&(n.isSelectOptGroup?!Te(t.props.children).every(n=>!(l.isValidElement(n)&&t.type&&!n.type.isSelectOption&&(e=n.type,1))):(e=n,!0))}),e&&De(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${e.displayName||e.name||e}\`.`)}}(e),function(e,t){if(e){const n=(e,o=!1)=>{for(let r=0;r<e.length;r++){const a=e[r];if(null===a[t?.value])return De(!1,"`value` in Select options should not be `null`."),!0;if(!o&&Array.isArray(a[t?.options])&&n(a[t?.options],!0))break}};n(e)}}(ie,Q)),l.createElement(np.Provider,{value:Re},l.createElement(Op,am({},z,{id:X,prefixCls:r,ref:t,omitDomProps:im,mode:o,classNames:B,styles:T,displayValues:me,onDisplayValuesChange:(e,t)=>{we(e);const{type:n,values:o}=t;"remove"!==n&&"clear"!==n||o.forEach(e=>{Ie(e.value,!1,n)})},maxCount:M,direction:k,showSearch:L,searchValue:te,onSearch:(e,t)=>{if(ee(e),$e(null),"submit"===t.source){const t=(e||"").trim();if(t){const e=Array.from(new Set([...fe,t]));we(e),Ie(t,!0),ee("")}return}"blur"!==t.source&&("combobox"===o&&we(e),K?.(e))},autoClearSearchValue:q,onSearchSplit:e=>{let t=e;"tags"!==o&&(t=e.map(e=>{const t=ae.get(e);return t?.value}).filter(e=>void 0!==e));const n=Array.from(new Set([...fe,...t]));we(n),n.forEach(e=>{Ie(e,!0)})},popupMatchSelectWidth:b,OptionList:tm,emptyOptions:!xe.length,activeValue:Ce,activeDescendantId:`${X}_list_${Se}`})))});"production"!==process.env.NODE_ENV&&(lm.displayName="Select");const sm=lm;sm.Option=Mp,sm.OptGroup=Dp;const cm=(e,t,n)=>z({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n}),dm=(e,t)=>t||e,um=()=>{const[,e]=Zr(),[t]=ki("Empty"),n=new dr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),l.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),l.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),l.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),l.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(um.displayName="EmptyImage");var pm=um;const mm=()=>{const[,e]=Zr(),[n]=ki("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:s,shadowColor:c,contentColor:d}=t.useMemo(()=>({borderColor:new dr(o).onBackground(i).toHexString(),shadowColor:new dr(r).onBackground(i).toHexString(),contentColor:new dr(a).onBackground(i).toHexString()}),[o,r,a,i]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,n?.description||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:s},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))};"production"!==process.env.NODE_ENV&&(mm.displayName="SimpleImage");var fm=mm;var hm=ra("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e;return(e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(Xo(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()}))});const gm=l.createElement(pm,null),vm=l.createElement(fm,null),bm=e=>{const{className:t,rootClassName:n,prefixCls:o,image:r,description:a,children:i,imageStyle:s,style:c,classNames:d,styles:u,...p}=e,{getPrefixCls:m,direction:f,className:h,style:g,classNames:v,styles:b,image:y}=vt("empty"),x=m("empty",o),[w,C]=hm(x),[$,S]=Li([v,d],[b,u],{props:e}),[E]=ki("Empty"),k=void 0!==a?a:E?.description,N="string"==typeof k?k:"empty",_=r??y??gm;let I=null;if(I="string"==typeof _?l.createElement("img",{draggable:!1,alt:N,src:_}):_,"production"!==process.env.NODE_ENV){const t=Ve("Empty");[["imageStyle","styles.image"]].forEach(([n,o])=>{t.deprecated(!(n in e),n,o)})}return l.createElement("div",{className:z(w,C,x,h,{[`${x}-normal`]:_===vm,[`${x}-rtl`]:"rtl"===f},t,n,$.root),style:{...S.root,...g,...c},...p},l.createElement("div",{className:z(`${x}-image`,$.image),style:{...s,...S.image}},I),k&&l.createElement("div",{className:z(`${x}-description`,$.description),style:S.description},k),i&&l.createElement("div",{className:z(`${x}-footer`,$.footer),style:S.footer},i))};bm.PRESENTED_IMAGE_DEFAULT=gm,bm.PRESENTED_IMAGE_SIMPLE=vm,"production"!==process.env.NODE_ENV&&(bm.displayName="Empty");var ym=bm;var xm=e=>{const{componentName:n}=e,{getPrefixCls:o}=t.useContext(ht),r=o("empty");switch(n){case"Table":case"List":return s.default.createElement(ym,{image:ym.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return s.default.createElement(ym,{image:ym.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return s.default.createElement(ym,null)}};var wm=(e,t,n)=>{const{variant:o,[e]:r}=l.useContext(ht),a=l.useContext(Tu),i=r?.variant;let s;s=void 0!==t?t:!1===n?"borderless":a??i??o??"outlined";return[s,ft.includes(s)]};function Cm(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...t,points:["tl","bl"],offset:[0,4]},bottomRight:{...t,points:["tr","br"],offset:[0,4]},topLeft:{...t,points:["bl","tl"],offset:[0,-4]},topRight:{...t,points:["br","tr"],offset:[0,-4]}}})(t)}const $m=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}};var Sm=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${o}-option-selected`;return[{[`${n}-dropdown`]:{...Jr(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${l}bottomLeft,\n ${a}${l}bottomLeft\n `]:{animationName:qc},[`\n ${r}${l}topLeft,\n ${a}${l}topLeft,\n ${r}${l}topRight,\n ${a}${l}topRight\n `]:{animationName:Xc},[`${i}${l}bottomLeft`]:{animationName:Uc},[`\n ${i}${l}topLeft,\n ${i}${l}topRight\n `]:{animationName:Gc},"&-hidden":{display:"none"},[o]:{...$m(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Qr},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...$m(e),color:e.colorTextDisabled}},[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},td(e,"slide-up"),td(e,"slide-down"),Kc(e,"move-up"),Kc(e,"move-down")]};var Em=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}};var km=e=>{const{componentCls:t,calc:n,iconCls:o,paddingXS:r,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:i,lineWidth:l,colorIcon:s,colorIconHover:c,inputPaddingHorizontalBase:d}=e;return{"&-multiple":{"--select-multi-item-background":e.multipleItemBg,"--select-multi-item-border-color":"transparent","--select-multi-item-border-radius":e.borderRadiusSM,"--select-multi-item-height":e.multipleItemHeight,"--select-multi-padding-base":"calc((var(--select-height) - var(--select-multi-item-height)) / 2)","--select-multi-padding-vertical":`calc(var(--select-multi-padding-base) - ${i} - ${l})`,"--select-multi-item-padding-horizontal":`calc(${d} - var(--select-multi-padding-vertical) - ${l} * 2)`,paddingBlock:"var(--select-multi-padding-vertical)",paddingInlineStart:`calc(var(--select-multi-padding-base) - ${l})`,[`${t}-prefix`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:"var(--select-line-height)",insetInlineStart:"var(--select-multi-item-padding-horizontal)",width:"calc(100% - var(--select-multi-item-padding-horizontal))",top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:"var(--select-font-size)"},"&-item":{lineHeight:1,maxWidth:"calc(100% - 4px)"},[`${t}-content-item-prefix + ${t}-content-item-suffix,\n ${t}-content-item-suffix:first-child`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-selection-item`]:{lineHeight:`calc(var(--select-multi-item-height) - ${l} * 2)`,border:`${l} solid var(--select-multi-item-border-color)`,display:"flex",marginBlock:i,marginInlineEnd:n(i).mul(2).equal(),background:"var(--select-multi-item-background)",borderRadius:"var(--select-multi-item-border-radius)",paddingInlineStart:r,paddingInlineEnd:a,transition:["height","line-height","padding"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),"&-content":{...Qr,marginInlineEnd:a},"&-remove":{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}},[`${t}-input`]:{lineHeight:n(i).mul(2).add("var(--select-multi-item-height)").equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:4,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{"--select-multi-item-height":e.multipleItemHeightSM,"--select-multi-item-border-radius":e.borderRadiusXS},[`&${t}-lg`]:{"--select-multi-item-height":e.multipleItemHeightLG,"--select-multi-item-border-radius":e.borderRadius},[`&${t}-filled`]:{"--select-multi-item-border-color":e.colorSplit,"--select-multi-item-background":e.colorBgContainer,[`&${t}-disabled`]:{"--select-multi-item-border-color":"transparent"}}}}};const Nm=(e,t)=>{const{componentCls:n}=e,{border:o,borderHover:r,borderActive:a,borderOutline:i}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{"--select-border-color":o,"--select-background":l,"--select-color":t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{"--select-border-color":r,"--select-background":t.backgroundHover||l},[`&${n}-focused`]:{"--select-border-color":a,"--select-background":t.backgroundActive||l,boxShadow:`0 0 0 ${Ut(e.controlOutlineWidth)} ${i}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},_m=(e,t,n,o={},r={},a)=>{const{componentCls:i}=e;return{[`&${i}-${t}`]:[Nm(e,n),{[`&${i}-status-error`]:Nm(e,{...n,color:o.color||e.colorError,...o}),[`&${i}-status-warning`]:Nm(e,{...n,color:r.color||e.colorWarning,...r})},a]}};var Im=e=>{const{componentCls:t,calc:n,fontHeight:o,controlHeight:r,iconCls:a}=e;return{[t]:[{"--select-border-radius":e.borderRadius,"--select-border-color":"#000","--select-border-size":e.lineWidth,"--select-background":e.colorBgContainer,"--select-font-size":e.fontSize,"--select-line-height":e.lineHeight,"--select-font-height":o,"--select-color":e.colorText,"--select-height":r,"--select-padding-horizontal":n(e.paddingSM).sub(e.lineWidth).equal(),"--select-padding-vertical":"calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",...Jr(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:"var(--select-border-radius)",borderWidth:"var(--select-border-size)",borderStyle:e.lineType,borderColor:"var(--select-border-color)",background:"var(--select-background)",fontSize:"var(--select-font-size)",lineHeight:"var(--select-line-height)",color:"var(--select-color)",paddingInline:"var(--select-padding-horizontal)",paddingBlock:"var(--select-padding-vertical)",[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Qr,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:n(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...Qr,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`&-open ${t}-content-value`]:{color:e.colorTextPlaceholder},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[a]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{"--select-height":e.controlHeightSM,"--select-padding-horizontal":n(e.paddingXS).sub(e.lineWidth).equal(),"--select-border-radius":e.borderRadiusSM},"&-lg":{"--select-height":e.controlHeightLG,"--select-font-size":e.fontSizeLG,"--select-line-height":e.lineHeightLG,"--select-font-height":e.fontHeightLG,"--select-border-radius":e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:"calc(var(--select-padding-vertical) * -1)",lineHeight:"calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"},[`${t}-content`]:{alignSelf:"center"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},km(e),_m(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),_m(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),_m(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),_m(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),Em(e)]}};const Pm=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o}=e,r={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Jr(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Qr,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":r,"&:hover":r},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Rm=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Pm(e),Sm(e),{[`${t}-rtl`]:{direction:"rtl"}},$d(e,{focusElCls:`${t}-focused`})]};var Om=ra("Select",(e,{rootPrefixCls:t})=>{const n=Xo(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Rm(n),Im(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:f,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,w=2*l,C=2*o,$=Math.min(r-w,r-C),S=Math.min(a-w,a-C),E=Math.min(i-w,i-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(r-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:f,clearBg:f,singleItemHeightLG:i,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:S,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Dm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mm.apply(this,arguments)}const Bm=(e,t)=>l.createElement($a,Mm({},e,{ref:t,icon:Dm})),Tm=l.forwardRef(Bm);
|
|
15
|
-
/** */"production"!==process.env.NODE_ENV&&(Tm.displayName="CheckOutlined");var zm=Tm,Am={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function Lm(){return Lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Lm.apply(this,arguments)}const jm=(e,t)=>l.createElement($a,Lm({},e,{ref:t,icon:Am})),Hm=l.forwardRef(jm);
|
|
16
|
-
/** */"production"!==process.env.NODE_ENV&&(Hm.displayName="DownOutlined");var Fm=Hm,Vm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wm.apply(this,arguments)}const Km=(e,t)=>l.createElement($a,Wm({},e,{ref:t,icon:Vm})),qm=l.forwardRef(Km);
|
|
17
|
-
/** */"production"!==process.env.NODE_ENV&&(qm.displayName="SearchOutlined");var Um=qm;const Xm="SECRET_COMBOBOX_MODE_DO_NOT_USE",Gm=(e,t)=>{const{prefixCls:n,bordered:o,className:r,rootClassName:a,getPopupContainer:i,popupClassName:c,dropdownClassName:d,listHeight:u=256,placement:p,listItemHeight:m,size:f,disabled:h,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:C,allowClear:$,variant:S,popupStyle:E,dropdownStyle:k,transitionName:N,tagRender:_,maxCount:I,prefix:P,dropdownRender:R,popupRender:O,onDropdownVisibleChange:D,onOpenChange:M,styles:B,classNames:T,...A}=e,{getPopupContainer:L,getPrefixCls:j,renderEmpty:H,direction:F,virtual:V,popupMatchSelectWidth:W,popupOverflow:K}=l.useContext(ht),{showSearch:q,style:U,styles:X,className:G,classNames:Y}=vt("select"),[,Z]=Zr(),Q=m??Z?.controlHeight,J=j("select",n),ee=j(),te=w??F,{compactSize:ne,compactItemClassnames:oe}=Hs(J,te),[re,ae]=wm("select",S,o),ie=Ji(J),[le,se]=Om(J,ie),ce=l.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===Xm?"combobox":t},[e.mode]),de="multiple"===ce||"tags"===ce,ue=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),pe=x??y??W,me=(fe=O||R,s.default.useMemo(()=>{if(fe)return(...e)=>s.default.createElement(zu,{space:!0},fe.apply(void 0,e))},[fe]));var fe;const he=M||D,{status:ge,hasFeedback:ve,isFormItemInput:be,feedbackIcon:ye}=l.useContext(Mu),xe=dm(ge,v);let we;we=void 0!==g?g:"combobox"===ce?null:H?.("Select")||l.createElement(xm,{componentName:"Select"});const{suffixIcon:Ce,itemIcon:$e,removeIcon:Se,clearIcon:Ee}=function({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:o,loading:r,multiple:a,hasFeedback:i,showSuffixIcon:s,feedbackIcon:c,showArrow:d,componentName:u}){"production"!==process.env.NODE_ENV&&Ve(u).deprecated(!t,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const p=t??l.createElement(_a,null),m=t=>null!==e||i||d?l.createElement(l.Fragment,null,!1!==s&&t,i&&c):null;let f=null;f=void 0!==e?m(e):r?m(l.createElement(xs,{spin:!0})):({open:e,showSearch:t})=>m(e&&t?l.createElement(Um,null):l.createElement(Fm,null));let h=null;h=void 0!==n?n:a?l.createElement(zm,null):null;let g=null;return g=void 0!==o?o:l.createElement(Da,null),{clearIcon:p,suffixIcon:f,itemIcon:h,removeIcon:g}}({...A,multiple:de,hasFeedback:ve,feedbackIcon:ye,showSuffixIcon:ue,prefixCls:J,componentName:"Select"}),ke=!0===$?{clearIcon:Ee}:$,Ne=Be(A,["suffixIcon","itemIcon"]),_e=zs(e=>f??ne??e),Ie=l.useContext(ns),Pe=h??Ie,Re={...e,variant:re,status:xe,disabled:Pe,size:_e},[Oe,De]=Li([Y,T],[X,B],{props:Re},{popup:{_default:"root"}}),Me=z(Oe.popup?.root,c,d,{[`${J}-dropdown-${te}`]:"rtl"===te},a,se,ie,le),Te={...De.popup?.root,...E??k},ze=z({[`${J}-lg`]:"large"===_e,[`${J}-sm`]:"small"===_e,[`${J}-rtl`]:"rtl"===te,[`${J}-${re}`]:ae,[`${J}-in-form-item`]:be},cm(J,xe,ve),oe,G,r,Oe.root,a,se,ie,le),Ae=l.useMemo(()=>void 0!==p?p:"rtl"===te?"bottomRight":"bottomLeft",[p,te]);if("production"!==process.env.NODE_ENV){const t=Ve("Select"),n={dropdownMatchSelectWidth:"popupMatchSelectWidth",dropdownStyle:"styles.popup.root",dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",dropdownRender:"popupRender",onDropdownVisibleChange:"onOpenChange",bordered:"variant"};Object.entries(n).forEach(([n,o])=>{t.deprecated(!(n in e),n,o)}),"production"!==process.env.NODE_ENV&&t(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),"production"!==process.env.NODE_ENV&&t(!(void 0!==I&&!de),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Le]=Xi("SelectLike",De.popup?.root?.zIndex??Te?.zIndex);return l.createElement(sm,{ref:t,virtual:V,classNames:Oe,styles:De,showSearch:q,...Ne,style:{...De.root,...U,...C},popupMatchSelectWidth:pe,transitionName:Ns(ee,"slide-up",N),builtinPlacements:Cm(b,K),listHeight:u,listItemHeight:Q,mode:ce,prefixCls:J,placement:Ae,direction:te,prefix:P,suffixIcon:Ce,menuItemSelectedIcon:$e,removeIcon:Se,allowClear:ke,notFoundContent:we,className:ze,getPopupContainer:i||L,popupClassName:Me,disabled:Pe,popupStyle:{...De.popup?.root,...Te,zIndex:Le},maxCount:de?I:void 0,tagRender:de?_:void 0,popupRender:me,onPopupVisibleChange:he})};"production"!==process.env.NODE_ENV&&(Gm.displayName="Select");const Ym=l.forwardRef(Gm),Zm=Au(Ym,"popupAlign");Ym.SECRET_COMBOBOX_MODE_DO_NOT_USE=Xm,Ym.Option=Mp,Ym.OptGroup=Dp,Ym._InternalPanelDoNotUseOrYouWillBeFired=Zm,"production"!==process.env.NODE_ENV&&(Ym.displayName="Select");var Qm=Ym;const Jm=["xxl","xl","lg","md","sm","xs"];var ef=()=>{const[,e]=Zr(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Jm).reverse();return n.forEach((e,o)=>{const r=e.toUpperCase(),a=`screen${r}Min`,i=`screen${r}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[i]<=t[e]))throw new Error(`${i}<=${e} fails : !(${t[i]}<=${t[e]})`);const a=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw new Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e})(e));return s.default.useMemo(()=>{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(o=t,e.forEach(e=>e(o)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch({...o,[e]:t})},r=window.matchMedia(t);"function"==typeof r?.addEventListener&&r.addEventListener("change",n),this.matchHandlers[t]={mql:r,listener:n},n(r)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];"function"==typeof t?.mql?.removeEventListener&&t.mql.removeEventListener("change",t?.listener)}),e.clear()}}},[t])};function tf(e=!0,n={}){const o=t.useRef(n),[,r]=Oi(),a=ef();return ee(()=>{const t=a.subscribe(t=>{o.current=t,e&&r()});return()=>a.unsubscribe(t)},[]),o.current}const nf=e=>{const{children:t,prefixCls:n,id:o,classNames:r,styles:a,className:i,style:s}=e;return l.createElement("div",{id:o,className:z(`${n}-container`,r?.container,i),style:{...a?.container,...s},role:"tooltip"},"function"==typeof t?t():t)},of={shiftX:64,adjustY:1},rf={adjustX:1,shiftY:!0},af=[0,0],lf={left:{points:["cr","cl"],overflow:rf,offset:[-4,0],targetOffset:af},right:{points:["cl","cr"],overflow:rf,offset:[4,0],targetOffset:af},top:{points:["bc","tc"],overflow:of,offset:[0,-4],targetOffset:af},bottom:{points:["tc","bc"],overflow:of,offset:[0,4],targetOffset:af},topLeft:{points:["bl","tl"],overflow:of,offset:[0,-4],targetOffset:af},leftTop:{points:["tr","tl"],overflow:rf,offset:[-4,0],targetOffset:af},topRight:{points:["br","tr"],overflow:of,offset:[0,-4],targetOffset:af},rightTop:{points:["tl","tr"],overflow:rf,offset:[4,0],targetOffset:af},bottomRight:{points:["tr","br"],overflow:of,offset:[0,4],targetOffset:af},rightBottom:{points:["bl","br"],overflow:rf,offset:[4,0],targetOffset:af},bottomLeft:{points:["tl","bl"],overflow:of,offset:[0,4],targetOffset:af},leftBottom:{points:["br","bl"],overflow:rf,offset:[-4,0],targetOffset:af}};function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sf.apply(this,arguments)}const cf=l.forwardRef((e,n)=>{const{trigger:o=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:a=.1,prefixCls:i="rc-tooltip",children:s,onVisibleChange:c,afterVisibleChange:d,motion:u,placement:p="right",align:m={},destroyOnHidden:f=!1,defaultVisible:h,getTooltipContainer:g,arrowContent:v,overlay:b,id:y,showArrow:x=!0,classNames:w,styles:C,...$}=e,S=ml(y),E=t.useRef(null);t.useImperativeHandle(n,()=>E.current);const k={...$};"visible"in e&&(k.popupVisible=e.visible);const N=l.useMemo(()=>{if(!x)return!1;const e=!0===x?{}:x;return{...e,className:z(e.className,w?.arrow),style:{...e.style,...C?.arrow},content:e.content??v}},[x,w?.arrow,C?.arrow,v]),_=({open:e})=>{const t=l.Children.only(s),n={"aria-describedby":b&&e?S:void 0};return l.cloneElement(t,n)};return l.createElement(Yl,sf({popupClassName:w?.root,prefixCls:i,popup:l.createElement(nf,{key:"content",prefixCls:i,id:S,classNames:w,styles:C},b),action:o,builtinPlacements:lf,popupPlacement:p,ref:E,popupAlign:m,getPopupContainer:g,onOpenChange:c,afterOpenChange:d,popupMotion:u,defaultPopupVisible:h,autoDestroy:f,mouseLeaveDelay:a,popupStyle:C?.root,mouseEnterDelay:r,arrow:N,uniqueContainerClassName:w?.uniqueContainer,uniqueContainerStyle:C?.uniqueContainer},k),_)});function df(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,a=r,i=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),s=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*r-s,u=c,p=2*r-i,m=l,f=2*r-0,h=a,g=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${o} ${o} 0 0 0 ${i} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${d} ${u} L ${p} ${m} A ${o} ${o} 0 0 0 ${f} ${h} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const uf=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:s(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ut(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function pf(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function mf(e,t){return e?t:{}}function ff(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:{[`${o}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...uf(e,t,r),"&:before":{background:t}}],...mf(!!s.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ut(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...mf(!!s.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ut(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...mf(!!s.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:a},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:a}}),...mf(!!s.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:a},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:a}})}}}const hf={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},gf={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},vf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bf(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:a,visibleFirst:i}=e,l=t/2,s={},c=pf({contentRadius:a,limitVerticalRadius:!0});return Object.keys(hf).forEach(e=>{const a={...o&&gf[e]||hf[e],offset:[0,0],dynamicInset:!0};switch(s[e]=a,vf.has(e)&&(a.autoArrow=!1),e){case"top":case"topLeft":case"topRight":a.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":a.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":a.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":a.offset[0]=l+r}if(o)switch(e){case"topLeft":case"bottomLeft":a.offset[0]=-c.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":a.offset[0]=c.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":a.offset[1]=2*-c.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":a.offset[1]=2*c.arrowOffsetHorizontal-l}a.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.arrowOffsetHorizontal+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.arrowOffsetVertical+n,a.shiftX=!0,a.adjustX=!0}const i={...a,...r};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,c,t,n),i&&(a.htmlRegion="visibleFirst")}),s}var yf=(e,t)=>{const n=e=>"boolean"==typeof e?{show:e}:e||{};return s.default.useMemo(()=>{const o=n(e),r=n(t);return{...r,...o,show:o.show??r.show??!0}},[e,t])};const xf=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:p,sizePopupArrow:m}=e,f=t(i).add(m).add(p).equal(),h={minWidth:t(i).mul(2).add(m).equal(),minHeight:s,padding:`${Ut(e.calc(d).div(2).equal())} ${Ut(u)}`,color:`var(--ant-tooltip-color, ${r})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},g={"--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Jr(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible",...g,"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-container`]:[h,zc(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:f},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,8)}},[`${n}-content`]:{position:"relative"},...la(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}})),"&-rtl":{direction:"rtl"}}},ff(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...h,...g,position:"absolute",zIndex:t(l).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},wf=e=>({zIndexPopup:e.zIndexPopupBase+70,...pf({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...df(Xo(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))});var Cf=(e,t,n=!0)=>{const o=ra("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Xo(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[xf(r),cd(e,"zoom-big-fast")]},wf,{resetStyle:!1,injectStyle:n});return o(e,t)};const $f=tr.map(e=>`${e}-inverse`);function Sf(e,t){const n=function(e,t=!0){return t?[].concat(at($f),at(tr)).includes(e):tr.includes(e)}(t),o=z({[`${e}-${t}`]:t&&n}),r={},a={},i=(e=>e instanceof Sc?e:new Sc(e))(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(r.background=t,r["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:a}}var Ef=e=>{const{prefixCls:t,className:n,placement:o="top",title:r,color:a,overlayInnerStyle:i,classNames:s,styles:c}=e,{getPrefixCls:d}=l.useContext(ht),u=d("tooltip",t),p=Ji(u),[m,f]=Cf(u,p),h=Sf(u,a),g=h.arrowStyle,v=l.useMemo(()=>({container:{...i,...h.overlayStyle}}),[i,h.overlayStyle]),b={...e,placement:o},[y,x]=Li([s],[v,c],{props:b}),w=z(p,m,f,u,`${u}-pure`,`${u}-placement-${o}`,n,h.className);return l.createElement("div",{className:w,style:g},l.createElement("div",{className:`${u}-arrow`}),l.createElement(nf,{...e,className:m,prefixCls:u,classNames:y,styles:x},r))};const kf=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:o,getTooltipContainer:r,color:a,children:i,afterOpenChange:s,arrow:c,destroyTooltipOnHide:d,destroyOnHidden:u,title:p,overlay:m,trigger:f,builtinPlacements:h,autoAdjustOverflow:g=!0,motion:v,getPopupContainer:b,placement:y="top",mouseEnterDelay:x=.1,mouseLeaveDelay:w=.1,rootClassName:C,styles:$,classNames:S,onOpenChange:E,overlayInnerStyle:k,overlayStyle:N,overlayClassName:_,...I}=e,[,P]=Zr(),{getPopupContainer:R,getPrefixCls:O,direction:D,className:M,style:B,classNames:T,styles:A,arrow:L,trigger:j}=vt("tooltip"),H=yf(c,L),F=H.show,V=f||j||"hover",W=Ve("Tooltip"),K=l.useRef(null),q=()=>{K.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:q,nativeElement:K.current?.nativeElement,popupElement:K.current?.popupElement})),"production"!==process.env.NODE_ENV&&([["overlayStyle","styles.root"],["overlayInnerStyle","styles.container"],["overlayClassName","classNames.root"],["destroyTooltipOnHide","destroyOnHidden"]].forEach(([t,n])=>{W.deprecated(!(t in e),t,n)}),"production"!==process.env.NODE_ENV&&W(!d||"boolean"==typeof d,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));const[U,X]=ne(e.defaultOpen??!1,e.open),G=!p&&!m&&0!==p,Y=l.useMemo(()=>h||bf({arrowPointAtCenter:H?.pointAtCenter??!1,autoAdjustOverflow:g,arrowWidth:F?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0}),[H,h,P,F,g]),Z=l.useMemo(()=>0===p?p:m||p||"",[m,p]),Q=l.createElement(zu,{space:!0},"function"==typeof Z?Z():Z),J={...e,trigger:V,color:a,placement:y,builtinPlacements:h,openClassName:o,arrow:c,autoAdjustOverflow:g,getPopupContainer:b,children:i,destroyTooltipOnHide:d,destroyOnHidden:u},[ee,te]=Li([T,S],[A,$],{props:J}),oe=O("tooltip",n),re=O(),ae=e["data-popover-inject"];let ie=U;!("open"in e)&&G&&(ie=!1);const le=l.isValidElement(i)&&!Gi(i)?i:l.createElement("span",null,i),se=le.props,ce=se.className&&"string"!=typeof se.className?se.className:z(se.className,o||`${oe}-open`),de=Ji(oe),[ue,pe]=Cf(oe,de,!ae),me=Sf(oe,a),fe=me.arrowStyle,he=z(de,ue,pe),ge=z(_,{[`${oe}-rtl`]:"rtl"===D},me.className,C,he,M,ee.root),[ve,be]=Xi("Tooltip",I.zIndex),ye={...te.container,...k,...me.overlayStyle},xe=l.createElement(cf,{unique:!0,...I,trigger:V,zIndex:ve,showArrow:F,placement:y,mouseEnterDelay:x,mouseLeaveDelay:w,prefixCls:oe,classNames:{root:ge,container:ee.container,arrow:ee.arrow,uniqueContainer:z(he,ee.container)},styles:{root:{...fe,...te.root,...B,...N},container:ye,uniqueContainer:ye,arrow:te.arrow},getTooltipContainer:b||r||R,ref:K,builtinPlacements:Y,overlay:Q,visible:ie,onVisibleChange:e=>{X(!G&&e),!G&&E&&E(e)},afterVisibleChange:s,arrowContent:l.createElement("span",{className:`${oe}-arrow-content`}),motion:{motionName:Ns(re,"zoom-big-fast","string"==typeof v?.motionName?v?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:u??!!d},ie?Yi(le,{className:ce}):le);return l.createElement(Wi.Provider,{value:be},xe)}),Nf=kf;"production"!==process.env.NODE_ENV&&(Nf.displayName="Tooltip"),Nf._InternalPanelDoNotUseOrYouWillBeFired=Ef,Nf.UniqueProvider=Jl;var _f=Nf;var If=s.default.createContext({}),Pf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rf.apply(this,arguments)}const Of=(e,t)=>l.createElement($a,Rf({},e,{ref:t,icon:Pf})),Df=l.forwardRef(Of);
|
|
18
|
-
/** */"production"!==process.env.NODE_ENV&&(Df.displayName="LeftOutlined");var Mf=Df;const{ESC:Bf,TAB:Tf}=hs;const zf=t.forwardRef((e,n)=>{const{overlay:o,arrow:r,prefixCls:a}=e,i=t.useMemo(()=>{let e;return e="function"==typeof o?o():o,e},[o]),l=ge(n,xe(i));return s.default.createElement(s.default.Fragment,null,r&&s.default.createElement("div",{className:`${a}-arrow`}),s.default.cloneElement(i,{ref:be(i)?l:void 0}))}),Af={adjustX:1,adjustY:1},Lf=[0,0],jf={topLeft:{points:["bl","tl"],overflow:Af,offset:[0,-4],targetOffset:Lf},top:{points:["bc","tc"],overflow:Af,offset:[0,-4],targetOffset:Lf},topRight:{points:["br","tr"],overflow:Af,offset:[0,-4],targetOffset:Lf},bottomLeft:{points:["tl","bl"],overflow:Af,offset:[0,4],targetOffset:Lf},bottom:{points:["tc","bc"],overflow:Af,offset:[0,4],targetOffset:Lf},bottomRight:{points:["tr","br"],overflow:Af,offset:[0,4],targetOffset:Lf}};function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Hf.apply(this,arguments)}const Ff=s.default.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:o="rc-dropdown",transitionName:r,animation:a,align:i,placement:c="bottomLeft",placements:d=jf,getPopupContainer:u,showAction:p,hideAction:m,overlayClassName:f,overlayStyle:h,visible:g,trigger:v=["hover"],autoFocus:b,overlay:y,children:x,onVisibleChange:w,...C}=e,[$,S]=s.default.useState(),E="visible"in e?g:$,k=a?`${o}-${a}`:r,N=s.default.useRef(null),_=s.default.useRef(null),I=s.default.useRef(null);s.default.useImperativeHandle(t,()=>N.current);const P=e=>{S(e),w?.(e)};!function({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:o,overlayRef:r}){const a=l.useRef(!1),i=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>!!r.current?.focus&&(r.current.focus(),a.current=!0,!0),c=e=>{switch(e.keyCode){case Bf:i();break;case Tf:{let t=!1;a.current||(t=s()),t?e.preventDefault():i();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",c),o&&ut(s,3),()=>{window.removeEventListener("keydown",c),a.current=!1}):()=>{a.current=!1},[e])}({visible:E,triggerRef:I,onVisibleChange:P,autoFocus:b,overlayRef:_});const R=()=>s.default.createElement(zf,{ref:_,overlay:y,prefixCls:o,arrow:n}),O=s.default.cloneElement(x,{className:z(x.props?.className,E&&(()=>{const{openClassName:t}=e;return void 0!==t?t:`${o}-open`})()),ref:be(x)?ge(I,xe(x)):void 0});let D=m;return D||-1===v.indexOf("contextMenu")||(D=["click"]),s.default.createElement(Yl,Hf({builtinPlacements:d},C,{prefixCls:o,ref:N,popupClassName:z(f,{[`${o}-show-arrow`]:n}),popupStyle:h,action:v,showAction:p,hideAction:D,popupPlacement:c,popupAlign:i,popupMotion:{motionName:k},popupVisible:E,stretch:(()=>{const{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"==typeof y?R:R(),onOpenChange:P,onPopupClick:t=>{const{onOverlayClick:n}=e;S(!1),n&&n(t)},getPopupContainer:u}),O)});var Vf=e=>"object"!=typeof e&&"function"!=typeof e||null===e;const Wf=l.createContext(null);function Kf(e,t){return`${e}-${t}`}function qf(e){return Kf(l.useContext(Wf),e)}const Uf=l.createContext(null);function Xf({children:e,locked:t,...n}){const o=l.useContext(Uf),r=ce(()=>function(e,t){const n={...e};return Object.keys(t).forEach(e=>{const o=t[e];void 0!==o&&(n[e]=o)}),n}(o,n),[o,n],(e,n)=>!(t||e[0]===n[0]&&It(e[1],n[1],!0)));return l.createElement(Uf.Provider,{value:r},e)}const Gf=[],Yf=l.createContext(null);function Zf(){return l.useContext(Yf)}const Qf=l.createContext(Gf);function Jf(e){const t=l.useContext(Qf);return l.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}const eh=l.createContext(null),th=l.createContext({});function nh(e,t=!1){if(Rl(e)){const n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),a=Number(r);let i=null;return r&&!Number.isNaN(a)?i=a:o&&null===i&&(i=0),o&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}const{LEFT:oh,RIGHT:rh,UP:ah,DOWN:ih,ENTER:lh,ESC:sh,HOME:ch,END:dh}=hs,uh=[ah,ih,oh,rh];function ph(e,t){const n=function(e,t=!1){const n=[...e.querySelectorAll("*")].filter(e=>nh(e,t));return nh(e,t)&&n.unshift(e),n}(e,!0);return n.filter(e=>t.has(e))}function mh(e,t,n,o=1){if(!e)return null;const r=ph(e,t),a=r.length;let i=r.findIndex(e=>n===e);return o<0?-1===i?i=a-1:i-=1:o>0&&(i+=1),i=(i+a)%a,r[i]}const fh=(e,t)=>{const n=new Set,o=new Map,r=new Map;return e.forEach(e=>{const a=document.querySelector(`[data-menu-id='${Kf(t,e)}']`);a&&(n.add(a),r.set(a,e),o.set(e,a))}),{elements:n,key2element:o,element2key:r}};function hh(e,t,n,o,r,a,i,s,c,d){const u=l.useRef(),p=l.useRef();p.current=t;const m=()=>{ut.cancel(u.current)};return l.useEffect(()=>()=>{m()},[]),l=>{const{which:f}=l;if([...uh,lh,sh,ch,dh].includes(f)){const d=a();let h=fh(d,o);const{elements:g,key2element:v,element2key:b}=h,y=function(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}(v.get(t),g),x=b.get(y),w=function(e,t,n,o){const r="prev",a="next",i="children",l="parent";if("inline"===e&&o===lh)return{inlineTrigger:!0};const s={[ah]:r,[ih]:a},c={[oh]:n?a:r,[rh]:n?r:a,[ih]:i,[lh]:i},d={[ah]:r,[ih]:a,[lh]:i,[sh]:l,[oh]:n?i:l,[rh]:n?l:i},u={inline:s,horizontal:c,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d},p=u[`${e}${t?"":"Sub"}`]?.[o];switch(p){case r:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}(e,1===i(x,!0).length,n,f);if(!w&&f!==ch&&f!==dh)return;(uh.includes(f)||[ch,dh].includes(f))&&l.preventDefault();const C=e=>{if(e){let t=e;const n=e.querySelector("a");n?.getAttribute("href")&&(t=n);const o=b.get(e);s(o),m(),u.current=ut(()=>{p.current===o&&t.focus()})}};if([ch,dh].includes(f)||w.sibling||!y){let t,n;t=y&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):r.current;const o=ph(t,g);n=f===ch?o[0]:f===dh?o[o.length-1]:mh(t,g,y,w.offset),C(n)}else if(w.inlineTrigger)c(x);else if(w.offset>0)c(x,!0),m(),u.current=ut(()=>{h=fh(d,o);const e=y.getAttribute("aria-controls"),t=mh(document.getElementById(e),h.elements);C(t)},5);else if(w.offset<0){const e=i(x,!0),t=e[e.length-2],n=v.get(t);c(t,!1),C(n)}}d?.(l)}}const gh="__RC_UTIL_PATH_SPLIT__",vh=e=>e.join(gh),bh="rc-menu-more";function yh(){const[,e]=l.useState({}),n=t.useRef(new Map),o=t.useRef(new Map),[r,a]=l.useState([]),i=t.useRef(0),s=t.useRef(!1),c=t.useCallback((t,r)=>{"production"!==process.env.NODE_ENV&&De(!n.current.has(t),`Duplicated key '${t}' used in Menu by path [${r.join(" > ")}]`);const a=vh(r);o.current.set(a,t),n.current.set(t,a),i.current+=1;const l=i.current;var c;c=()=>{l===i.current&&(s.current||e({}))},Promise.resolve().then(c)},[]),d=t.useCallback((e,t)=>{const r=vh(t);o.current.delete(r),n.current.delete(e)},[]),u=t.useCallback(e=>{a(e)},[]),p=t.useCallback((e,t)=>{const o=n.current.get(e)||"",a=o.split(gh);return t&&r.includes(a[0])&&a.unshift(bh),a},[r]),m=t.useCallback((e,t)=>e.filter(e=>void 0!==e).some(e=>p(e,!0).includes(t)),[p]),f=t.useCallback(e=>{const t=`${n.current.get(e)}${gh}`,r=new Set;return[...o.current.keys()].forEach(e=>{e.startsWith(t)&&r.add(o.current.get(e))}),r},[]);return l.useEffect(()=>()=>{s.current=!0},[]),{registerPath:c,unregisterPath:d,refreshOverflowKeys:u,isSubPathKey:m,getKeyPath:p,getKeys:()=>{const e=[...n.current.keys()];return r.length&&e.push(bh),e},getSubPathKeys:f}}function xh(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function wh(e,t,n,o){const{activeKey:r,onActive:a,onInactive:i}=l.useContext(Uf),s={active:r===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{o?.({key:e,domEvent:t}),i(e)}),s}function Ch(e){const{mode:t,rtl:n,inlineIndent:o}=l.useContext(Uf);if("inline"!==t)return null;return n?{paddingRight:e*o}:{paddingLeft:e*o}}function $h({icon:e,props:t,children:n}){let o;return null===e||!1===e?null:("function"==typeof e?o=l.createElement(e,{...t}):"boolean"!=typeof e&&(o=e),o||n||null)}function Sh({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(De(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Eh.apply(this,arguments)}class kh extends l.Component{render(){const{title:e,attribute:t,elementRef:n,...o}=this.props,r=Be(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return De(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(xp.Item,Eh({},t,{title:"string"==typeof e?e:void 0},r,{ref:n}))}}const Nh=l.forwardRef((e,t)=>{const{style:n,className:o,eventKey:r,warnKey:a,disabled:i,itemIcon:s,children:c,role:d,onMouseEnter:u,onMouseLeave:p,onClick:m,onKeyDown:f,onFocus:h,...g}=e,v=qf(r),{prefixCls:b,onItemClick:y,disabled:x,overflowDisabled:w,itemIcon:C,selectedKeys:$,onActive:S}=l.useContext(Uf),{_internalRenderMenuItem:E}=l.useContext(th),k=`${b}-item`,N=l.useRef(),_=l.useRef(),I=x||i,P=ve(t,_),R=Jf(r);"production"!==process.env.NODE_ENV&&a&&De(!1,"MenuItem should not leave undefined `key`.");const O=e=>({key:r,keyPath:[...R].reverse(),item:N.current,domEvent:e}),D=s||C,{active:M,...B}=wh(r,I,u,p),T=$.includes(r),A=Ch(R.length),L={};"option"===e.role&&(L["aria-selected"]=T);let j=l.createElement(kh,Eh({ref:N,elementRef:P,role:null===d?"none":d||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&v?null:v},Be(g,["extra"]),B,L,{component:"li","aria-disabled":i,style:{...A,...n},className:z(k,{[`${k}-active`]:M,[`${k}-selected`]:T,[`${k}-disabled`]:I},o),onClick:e=>{if(I)return;const t=O(e);m?.(Sh(t)),y(t)},onKeyDown:e=>{if(f?.(e),e.which===hs.ENTER){const t=O(e);m?.(Sh(t)),y(t)}},onFocus:e=>{S(r),h?.(e)}}),c,l.createElement($h,{props:{...e,isSelected:T},icon:D}));return E&&(j=E(j,e,{selected:T})),j});function _h(e,t){const{eventKey:n}=e,o=Zf(),r=Jf(n);return l.useEffect(()=>{if(o)return o.registerPath(n,r),()=>{o.unregisterPath(n,r)}},[r]),o?null:l.createElement(Nh,Eh({},e,{ref:t}))}var Ih=l.forwardRef(_h);function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ph.apply(this,arguments)}const Rh=({className:e,children:t,...n},o)=>{const{prefixCls:r,mode:a,rtl:i}=l.useContext(Uf);return l.createElement("ul",Ph({className:z(r,i&&`${r}-rtl`,`${r}-sub`,`${r}-${"inline"===a?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:o}),t)},Oh=l.forwardRef(Rh);function Dh(e,t){return Te(e).map((e,n)=>{if(l.isValidElement(e)){const{key:o}=e;let r=e.props?.eventKey??o;const a=null==r;a&&(r=`tmp_key-${[...t,n].join("-")}`);const i={key:r,eventKey:r};return"production"!==process.env.NODE_ENV&&a&&(i.warnKey=!0),l.cloneElement(e,i)}return e})}"production"!==process.env.NODE_ENV&&(Oh.displayName="SubMenuList");const Mh={adjustX:1,adjustY:1},Bh={topLeft:{points:["bl","tl"],overflow:Mh},topRight:{points:["br","tr"],overflow:Mh},bottomLeft:{points:["tl","bl"],overflow:Mh},bottomRight:{points:["tr","br"],overflow:Mh},leftTop:{points:["tr","tl"],overflow:Mh},leftBottom:{points:["br","bl"],overflow:Mh},rightTop:{points:["tl","tr"],overflow:Mh},rightBottom:{points:["bl","br"],overflow:Mh}},Th={topLeft:{points:["bl","tl"],overflow:Mh},topRight:{points:["br","tr"],overflow:Mh},bottomLeft:{points:["tl","bl"],overflow:Mh},bottomRight:{points:["tr","br"],overflow:Mh},rightTop:{points:["tr","tl"],overflow:Mh},rightBottom:{points:["br","bl"],overflow:Mh},leftTop:{points:["tl","tr"],overflow:Mh},leftBottom:{points:["bl","br"],overflow:Mh}};function zh(e,t,n){return t||(n?n[e]||n.other:void 0)}const Ah={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Lh({prefixCls:e,visible:t,children:n,popup:o,popupStyle:r,popupClassName:a,popupOffset:i,disabled:s,mode:c,onVisibleChange:d}){const{getPopupContainer:u,rtl:p,subMenuOpenDelay:m,subMenuCloseDelay:f,builtinPlacements:h,triggerSubMenuAction:g,forceSubMenuRender:v,rootClassName:b,motion:y,defaultMotions:x}=l.useContext(Uf),[w,C]=l.useState(!1),$=p?{...Th,...h}:{...Bh,...h},S=Ah[c],E=zh(c,y,x),k=l.useRef(E);"inline"!==c&&(k.current=E);const N={...k.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},_=l.useRef();return l.useEffect(()=>(_.current=ut(()=>{C(t)}),()=>{ut.cancel(_.current)}),[t]),l.createElement(Yl,{prefixCls:e,popupClassName:z(`${e}-popup`,{[`${e}-rtl`]:p},a,b),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:u,builtinPlacements:$,popupPlacement:S,popupVisible:w,popup:o,popupStyle:r,popupAlign:i&&{offset:i},action:s?[]:[g],mouseEnterDelay:m,mouseLeaveDelay:f,onPopupVisibleChange:d,forceRender:v,popupMotion:N,fresh:!0},n)}function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},jh.apply(this,arguments)}function Hh({id:e,open:t,keyPath:n,children:o}){const r="inline",{prefixCls:a,forceSubMenuRender:i,motion:s,defaultMotions:c,mode:d}=l.useContext(Uf),u=l.useRef(!1);u.current=d===r;const[p,m]=l.useState(!u.current),f=!!u.current&&t;l.useEffect(()=>{u.current&&m(!1)},[d]);const h={...zh(r,s,c)};n.length>1&&(h.motionAppear=!1);const g=h.onVisibleChanged;return h.onVisibleChanged=e=>(u.current||e||m(!0),g?.(e)),p?null:l.createElement(Xf,{mode:r,locked:!u.current},l.createElement(di,jh({visible:f},h,{forceRender:i,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>l.createElement(Oh,{id:e,className:t,style:n},o)))}function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fh.apply(this,arguments)}const Vh=l.forwardRef((e,t)=>{const{style:n,className:o,styles:r,classNames:a,title:i,eventKey:s,warnKey:c,disabled:d,internalPopupClose:u,children:p,itemIcon:m,expandIcon:f,popupClassName:h,popupOffset:g,popupStyle:v,onClick:b,onMouseEnter:y,onMouseLeave:x,onTitleClick:w,onTitleMouseEnter:C,onTitleMouseLeave:$,popupRender:S,...E}=e,k=qf(s),{prefixCls:N,mode:_,openKeys:I,disabled:P,overflowDisabled:R,activeKey:O,selectedKeys:D,itemIcon:M,expandIcon:B,onItemClick:T,onOpenChange:A,onActive:L,popupRender:j}=l.useContext(Uf),{_internalRenderSubMenuItem:H}=l.useContext(th),{isSubPathKey:F}=l.useContext(eh),V=Jf(),W=`${N}-submenu`,K=P||d,q=l.useRef(),U=l.useRef();"production"!==process.env.NODE_ENV&&c&&De(!1,"SubMenu should not leave undefined `key`.");const X=m??M,G=f??B,Y=I.includes(s),Z=!R&&Y,Q=F(D,s),{active:J,...ee}=wh(s,K,C,$),[te,ne]=l.useState(!1),oe=e=>{K||ne(e)},re=l.useMemo(()=>J||"inline"!==_&&(te||F([O],s)),[_,J,O,te,s,F]),ae=Ch(V.length),ie=xh(e=>{b?.(Sh(e)),T(e)}),le=e=>{"inline"!==_&&A(s,e)},se=k&&`${k}-popup`,ce=l.useMemo(()=>l.createElement($h,{icon:"horizontal"!==_?G:void 0,props:{...e,isOpen:Z,isSubMenu:!0}},l.createElement("i",{className:`${W}-arrow`})),[_,G,e,Z,W]);let de=l.createElement("div",Fh({role:"menuitem",style:ae,className:`${W}-title`,tabIndex:K?null:-1,ref:q,title:"string"==typeof i?i:null,"data-menu-id":R&&k?null:k,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":K,onClick:e=>{K||(w?.({key:s,domEvent:e}),"inline"===_&&A(s,!Y))},onFocus:()=>{L(s)}},ee),i,ce);const ue=l.useRef(_);"inline"!==_&&V.length>1?ue.current="vertical":ue.current=_;const pe=ue.current,me=l.useMemo(()=>{const t=l.createElement(Xf,{classNames:a,styles:r,mode:"horizontal"===pe?"vertical":pe},l.createElement(Oh,{id:se,ref:U},p)),n=S||j;if(n){return n(t,{item:e,keys:V})}return t},[S,j,V,se,p,e,pe]);if(!R){const e=ue.current;de=l.createElement(Lh,{mode:e,prefixCls:W,visible:!u&&Z&&"inline"!==_,popupClassName:h,popupOffset:g,popupStyle:v,popup:me,disabled:K,onVisibleChange:le},de)}let fe=l.createElement(xp.Item,Fh({ref:t,role:"none"},E,{component:"li",style:n,className:z(W,`${W}-${_}`,o,{[`${W}-open`]:Z,[`${W}-active`]:re,[`${W}-selected`]:Q,[`${W}-disabled`]:K}),onMouseEnter:e=>{oe(!0),y?.({key:s,domEvent:e})},onMouseLeave:e=>{oe(!1),x?.({key:s,domEvent:e})}}),de,!R&&l.createElement(Hh,{id:se,open:Z,keyPath:V},p));return H&&(fe=H(fe,e,{selected:Q,active:re,open:Z,disabled:K})),l.createElement(Xf,{classNames:a,styles:r,onItemClick:ie,mode:"horizontal"===_?"vertical":_,itemIcon:X,expandIcon:G},fe)}),Wh=l.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,r=Jf(n),a=Dh(o,r),i=Zf();let s;return l.useEffect(()=>{if(i)return i.registerPath(n,r),()=>{i.unregisterPath(n,r)}},[r]),s=i?a:l.createElement(Vh,Fh({ref:t},e),a),l.createElement(Qf.Provider,{value:r},s)});function Kh({className:e,style:t}){const{prefixCls:n}=l.useContext(Uf);return Zf()?null:l.createElement("li",{role:"separator",className:z(`${n}-item-divider`,e),style:t})}function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qh.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Wh.displayName="SubMenu");const Uh=l.forwardRef((e,t)=>{const{className:n,title:o,eventKey:r,children:a,...i}=e,{prefixCls:s,classNames:c,styles:d}=l.useContext(Uf),u=`${s}-item-group`;return l.createElement("li",qh({ref:t,role:"presentation"},i,{onClick:e=>e.stopPropagation(),className:z(u,n)}),l.createElement("div",{role:"presentation",className:z(`${u}-title`,c?.listTitle),style:d?.listTitle,title:"string"==typeof o?o:void 0},o),l.createElement("ul",{role:"group",className:z(`${u}-list`,c?.list),style:d?.list},a))}),Xh=l.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,r=Dh(o,Jf(n));return Zf()?r:l.createElement(Uh,qh({ref:t},Be(e,["warnKey"])),r)});function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Gh.apply(this,arguments)}function Yh(e,t,n){const{item:o,group:r,submenu:a,divider:i}=t;return(e||[]).map((e,s)=>{if(e&&"object"==typeof e){const{label:c,children:d,key:u,type:p,extra:m,...f}=e,h=u??`tmp-${s}`;return d||"group"===p?"group"===p?l.createElement(r,Gh({key:h},f,{title:c}),Yh(d,t,n)):l.createElement(a,Gh({key:h},f,{title:c}),Yh(d,t,n)):"divider"===p?l.createElement(i,Gh({key:h},f)):l.createElement(o,Gh({key:h},f,{extra:m}),c,(!!m||0===m)&&l.createElement("span",{className:`${n}-item-extra`},m))}return null}).filter(e=>e)}function Zh(e,t,n,o,r){let a=e;const i={divider:Kh,item:Ih,group:Xh,submenu:Wh,...o};return t&&(a=Yh(t,i,r)),Dh(a,n)}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qh.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Xh.displayName="MenuItemGroup");const Jh=[],eg=l.forwardRef((e,n)=>{const{prefixCls:r="rc-menu",rootClassName:a,style:i,className:s,styles:c,classNames:d,tabIndex:u=0,items:p,children:m,direction:f,id:h,mode:g="vertical",inlineCollapsed:v,disabled:b,disabledOverflow:y,subMenuOpenDelay:x=.1,subMenuCloseDelay:w=.1,forceSubMenuRender:C,defaultOpenKeys:$,openKeys:S,activeKey:E,defaultActiveFirst:k,selectable:N=!0,multiple:_=!1,defaultSelectedKeys:I,selectedKeys:P,onSelect:R,onDeselect:O,inlineIndent:D=24,motion:M,defaultMotions:B,triggerSubMenuAction:T="hover",builtinPlacements:A,itemIcon:L,expandIcon:j,overflowedIndicator:H="...",overflowedIndicatorPopupClassName:F,getPopupContainer:V,onClick:W,onOpenChange:K,onKeyDown:q,openAnimation:U,openTransitionName:X,_internalRenderMenuItem:G,_internalRenderSubMenuItem:Y,_internalComponents:Z,popupRender:Q,...J}=e,[ee,te]=l.useMemo(()=>[Zh(m,p,Jh,Z,r),Zh(m,p,Jh,{},r)],[m,p,Z]),[oe,re]=l.useState(!1),ae=l.useRef(),ie=ml(h?`rc-menu-uuid-${h}`:"rc-menu-uuid"),le="rtl"===f;"production"!==process.env.NODE_ENV&&De(!U&&!X,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");const[se,ce]=ne($,S),de=se||Jh,ue=(e,t=!1)=>{function n(){ce(e),K?.(e)}t?o.flushSync(n):n()},[pe,me]=l.useState(de),fe=l.useRef(!1),[he,ge]=l.useMemo(()=>"inline"!==g&&"vertical"!==g||!v?[g,!1]:["vertical",v],[g,v]),ve="inline"===he,[be,ye]=l.useState(he),[xe,we]=l.useState(ge);l.useEffect(()=>{ye(he),we(ge),fe.current&&(ve?ce(pe):ue(Jh))},[he,ge]);const[Ce,$e]=l.useState(0),Se=Ce>=ee.length-1||"horizontal"!==be||y;l.useEffect(()=>{ve&&me(de)},[de]),l.useEffect(()=>(fe.current=!0,()=>{fe.current=!1}),[]);const{registerPath:Ee,unregisterPath:ke,refreshOverflowKeys:Ne,isSubPathKey:_e,getKeyPath:Ie,getKeys:Pe,getSubPathKeys:Re}=yh(),Oe=l.useMemo(()=>({registerPath:Ee,unregisterPath:ke}),[Ee,ke]),Me=l.useMemo(()=>({isSubPathKey:_e}),[_e]);l.useEffect(()=>{Ne(Se?Jh:ee.slice(Ce+1).map(e=>e.key))},[Ce,Se]);const[Be,Te]=ne(E||k&&ee[0]?.key,E),ze=xh(e=>{Te(e)}),Ae=xh(()=>{Te(void 0)});t.useImperativeHandle(n,()=>({list:ae.current,focus:e=>{const t=Pe(),{elements:n,key2element:o,element2key:r}=fh(t,ie),a=ph(ae.current,n);let i;i=Be&&t.includes(Be)?Be:a[0]?r.get(a[0]):ee.find(e=>!e.props.disabled)?.key;const l=o.get(i);i&&l&&l?.focus?.(e)},findItem:({key:e})=>{const t=Pe(),{key2element:n}=fh(t,ie);return n.get(e)||null}}));const[Le,je]=ne(I||[],P),He=l.useMemo(()=>Array.isArray(Le)?Le:null==Le?Jh:[Le],[Le]),Fe=xh(e=>{W?.(Sh(e)),(e=>{if(N){const{key:t}=e,n=He.includes(t);let o;o=_?n?He.filter(e=>e!==t):[...He,t]:[t],je(o);const r={...e,selectedKeys:o};n?O?.(r):R?.(r)}!_&&de.length&&"inline"!==be&&ue(Jh)})(e)}),Ve=xh((e,t)=>{let n=de.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==be){const t=Re(e);n=n.filter(e=>!t.has(e))}It(de,n,!0)||ue(n,!0)}),We=hh(be,Be,le,ie,ae,Pe,Ie,Te,(e,t)=>{const n=t??!de.includes(e);Ve(e,n)},q);l.useEffect(()=>{re(!0)},[]);const Ke=l.useMemo(()=>({_internalRenderMenuItem:G,_internalRenderSubMenuItem:Y}),[G,Y]),qe="horizontal"!==be||y?ee:ee.map((e,t)=>l.createElement(Xf,{key:e.key,overflowDisabled:t>Ce,classNames:d,styles:c},e)),Ue=l.createElement(xp,Qh({id:h,ref:ae,prefixCls:`${r}-overflow`,component:"ul",itemComponent:Ih,className:z(r,`${r}-root`,`${r}-${be}`,s,{[`${r}-inline-collapsed`]:xe,[`${r}-rtl`]:le},a),dir:f,style:i,role:"menu",tabIndex:u,data:qe,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?ee.slice(-t):null;return l.createElement(Wh,{eventKey:bh,title:H,disabled:Se,internalPopupClose:0===t,popupClassName:F},n)},maxCount:"horizontal"!==be||y?xp.INVALIDATE:xp.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{$e(e)},onKeyDown:We},J));return l.createElement(th.Provider,{value:Ke},l.createElement(Wf.Provider,{value:ie},l.createElement(Xf,{prefixCls:r,rootClassName:a,classNames:d,styles:c,mode:be,openKeys:de,rtl:le,disabled:b,motion:oe?M:null,defaultMotions:oe?B:null,activeKey:Be,onActive:ze,onInactive:Ae,selectedKeys:He,inlineIndent:D,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:C,builtinPlacements:A,triggerSubMenuAction:T,getPopupContainer:V,itemIcon:L,expandIcon:j,onItemClick:Fe,onOpenChange:Ve,popupRender:Q},l.createElement(eh.Provider,{value:Me},Ue),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(Yf.Provider,{value:Oe},te)))))}),tg=eg;tg.Item=Ih,tg.SubMenu=Wh,tg.ItemGroup=Xh,tg.Divider=Kh;var ng={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},og.apply(this,arguments)}const rg=(e,t)=>l.createElement($a,og({},e,{ref:t,icon:ng})),ag=l.forwardRef(rg);
|
|
19
|
-
/** */"production"!==process.env.NODE_ENV&&(ag.displayName="BarsOutlined");var ig=ag;const lg=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),sg=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${a}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:r}},cg=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ra("Layout",e=>{const{antCls:t,componentCls:n,colorText:o,footerBg:r,headerHeight:a,headerPadding:i,headerColor:l,footerPadding:s,fontSize:c,bodyBg:d,headerBg:u}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:i,color:l,lineHeight:Ut(a),background:u,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:o,fontSize:c,background:r},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}},sg,{deprecatedTokens:cg});var dg=ra(["Layout","Sider"],e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:r,antCls:a,triggerHeight:i,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:d,zeroTriggerHeight:u,borderRadiusLG:p,lightSiderBg:m,lightTriggerColor:f,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:Ut(i),textAlign:"center",background:s,cursor:"pointer",transition:`all ${o}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:u,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Ut(p)} ${Ut(p)} 0`,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${Ut(p)} 0 0 ${Ut(p)}`}},"&-light":{background:m,[`${t}-trigger`]:{color:f,background:h},[`${t}-zero-width-trigger`]:{color:f,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},sg,{deprecatedTokens:cg});const ug={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},pg=l.createContext({}),mg=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),fg=l.forwardRef((e,n)=>{const{prefixCls:o,className:r,trigger:a,children:i,defaultCollapsed:s=!1,theme:c="dark",style:d={},collapsible:u=!1,reverseArrow:p=!1,width:m=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:b,...y}=e,{siderHook:x}=t.useContext(lg),[w,C]=t.useState("collapsed"in e?e.collapsed:s),[$,S]=t.useState(!1);t.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const E=(t,n)=>{"collapsed"in e||C(t),v?.(t,n)},{getPrefixCls:k,direction:N}=t.useContext(ht),_=k("layout-sider",o),[I,P]=dg(_),R=t.useRef(null);R.current=e=>{S(e.matches),b?.(e.matches),w!==e.matches&&E(e.matches,"responsive")},t.useEffect(()=>{function e(e){return R.current?.(e)}let t;return void 0!==window?.matchMedia&&g&&g in ug&&(t=window.matchMedia(`screen and (max-width: ${ug[g]})`),"function"==typeof t?.addEventListener&&t.addEventListener("change",e),e(t)),()=>{"function"==typeof t?.removeEventListener&&t.removeEventListener("change",e)}},[g]),t.useEffect(()=>{const e=mg("ant-sider-");return x.addSider(e),()=>x.removeSider(e)},[]);const O=()=>{E(!w,"clickTrigger")},D=Be(y,["collapsed"]),M=w?f:m,B=(T=M,!Number.isNaN(Number.parseFloat(T))&&Number.isFinite(Number(T))?`${M}px`:String(M));var T;const A=0===Number.parseFloat(String(f||0))?l.createElement("span",{onClick:O,className:z(`${_}-zero-width-trigger`,`${_}-zero-width-trigger-${p?"right":"left"}`),style:h},a||l.createElement(ig,null)):null,L="rtl"===N==!p,j={expanded:L?l.createElement(Ic,null):l.createElement(Mf,null),collapsed:L?l.createElement(Mf,null):l.createElement(Ic,null)}[w?"collapsed":"expanded"],H=null!==a?A||l.createElement("div",{className:`${_}-trigger`,onClick:O,style:{width:B}},a||j):null,F={...d,flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B},V=z(_,`${_}-${c}`,{[`${_}-collapsed`]:!!w,[`${_}-has-trigger`]:u&&null!==a&&!A,[`${_}-below`]:!!$,[`${_}-zero-width`]:0===Number.parseFloat(B)},r,I,P),W=l.useMemo(()=>({siderCollapsed:w}),[w]);return l.createElement(pg.Provider,{value:W},l.createElement("aside",{className:V,...D,style:F,ref:n},l.createElement("div",{className:`${_}-children`},i),u||$&&A?H:null))});"production"!==process.env.NODE_ENV&&(fg.displayName="Sider");var hg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gg.apply(this,arguments)}const vg=(e,t)=>l.createElement($a,gg({},e,{ref:t,icon:hg})),bg=l.forwardRef(vg);
|
|
20
|
-
/** */"production"!==process.env.NODE_ENV&&(bg.displayName="EllipsisOutlined");var yg=bg;var xg=t.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null});var wg=e=>{const{prefixCls:t,className:n,dashed:o,...r}=e,{getPrefixCls:a}=l.useContext(ht),i=a("menu",t),s=z({[`${i}-item-divider-dashed`]:!!o},n);return l.createElement(Kh,{className:s,...r})};var Cg=e=>{const{className:t,children:n,icon:o,title:r,danger:a,extra:i}=e,{prefixCls:s,firstLevel:c,direction:d,disableMenuItemTitleTooltip:u,inlineCollapsed:p,styles:m,classNames:f}=l.useContext(xg),{siderCollapsed:h}=l.useContext(pg);let g=r;void 0===r?g=c?n:"":!1===r&&(g="");const v={title:g};h||p||(v.title=null,v.open=!1);const b=Te(n).length;let y=l.createElement(Ih,{...Be(e,["title","icon","danger"]),className:z(c?f.item:f.subMenu.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?b+1:b)},t),style:{...c?m.item:m.subMenu.item,...e.style},title:"string"==typeof r?r:void 0},Yi(o,e=>({className:z(`${s}-item-icon`,c?f.itemIcon:f.subMenu.itemIcon,e.className),style:{...c?m.itemIcon:m.subMenu.itemIcon,...e.style}})),(e=>{const t=n?.[0],r=l.createElement("span",{className:z(`${s}-title-content`,c?f.itemContent:f.subMenu.itemContent,{[`${s}-title-content-with-extra`]:!!i||0===i}),style:c?m.itemContent:m.subMenu.itemContent},n);return(!o||l.isValidElement(n)&&"span"===n.type)&&n&&e&&c&&"string"==typeof t?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):r})(p));return u||(y=l.createElement(_f,{...v,placement:"rtl"===d?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}},y)),y};const $g=l.createContext(null),Sg=l.forwardRef((e,t)=>{const{children:n,...o}=e,r=l.useContext($g),a=l.useMemo(()=>({...r,...o}),[r,o.prefixCls,o.mode,o.selectable,o.rootClassName]),i=(e=>ye(e)&&be(e))(n),s=ve(t,i?xe(n):null);return l.createElement($g.Provider,{value:a},l.createElement(zu,{space:!0},i?l.cloneElement(n,{ref:s}):n))});var Eg=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Ut(a)} ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var kg=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ut(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ut(t)})`}}}});const Ng=e=>ea(e);var _g=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:m,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:w,dangerItemColor:C,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:N,itemHoverBg:_,itemActiveBg:I,menuSubMenuBg:P,horizontalItemSelectedColor:R,horizontalItemSelectedBg:O,horizontalItemBorderRadius:D,horizontalItemHoverBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:{...Ng(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:{...Ng(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:{..."dark"===t?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Ut(d)} solid transparent`,transition:`border-color ${m} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:d,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:d,borderBottomColor:R}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ut(p)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ut(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${f}`,`opacity ${v} ${f}`].join(",")}}}}}};const Ig=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,d=e.calc(a).add(r).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ut(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ut(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:d}}};var Pg=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:a,controlHeightLG:i,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:d,motionDurationFast:u,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:f,collapsedWidth:h,collapsedIconSize:g}=e,v={height:o,lineHeight:Ut(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...Ig(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...Ig(e),boxShadow:f}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Ut(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${u} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ut(e.calc(g).div(2).equal())} - ${Ut(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Ut(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:{...Qr,paddingInline:m}}}]};const Rg=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${a}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Og=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ut(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ut(i)})`}}}}},Dg=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:f,menuArrowOffset:h,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Jr(e),"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ut(l)} ${Ut(s)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}},...Rg(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ut(e.calc(o).mul(2).equal())} ${Ut(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:p,...Rg(e),...Og(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...Og(e),[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Ut(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ut(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ut(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ut(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Mg=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:a,colorTextDescription:i,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:d,lineWidthBold:u,controlItemBgActive:p,colorBgTextHover:m,controlHeightLG:f,lineHeight:h,colorBgElevated:g,marginXXS:v,padding:b,fontSize:y,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:C,colorErrorHover:$}=e,S=e.activeBarWidth??0,E=e.activeBarBorderWidth??d,k=e.itemMarginInline??e.marginXXS,N=new dr(C).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:S,colorActiveBarHeight:u,activeBarHeight:u,colorActiveBarBorderSize:d,activeBarBorderWidth:E,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:r,dangerItemActiveBg:r,colorDangerItemBgSelected:r,dangerItemSelectedBg:r,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:f,groupTitleLineHeight:h,collapsedWidth:2*f,popupBg:g,itemMarginBlock:v,itemPaddingInline:b,horizontalLineHeight:1.15*f+"px",iconSize:y,iconMarginInlineEnd:x-y,collapsedIconSize:w,groupTitleFontSize:y,darkItemDisabledColor:new dr(C).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:C,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n,itemWidth:S?`calc(100% + ${E}px)`:`calc(100% - ${2*k}px)`}};var Bg=e=>{const{popupClassName:t,icon:n,title:o,theme:r}=e,a=l.useContext(xg),{prefixCls:i,inlineCollapsed:s,theme:c,classNames:d,styles:u}=a,p=Jf();let m;if(n){const e=l.isValidElement(o)&&"span"===o.type;m=l.createElement(l.Fragment,null,Yi(n,e=>({className:z(e.className,`${i}-item-icon`,d.itemIcon),style:{...e.style,...u.itemIcon}})),e?o:l.createElement("span",{className:`${i}-title-content`},o))}else m=s&&!p.length&&o&&"string"==typeof o?l.createElement("div",{className:`${i}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${i}-title-content`},o);const f=l.useMemo(()=>({...a,firstLevel:!1}),[a]),[h]=Xi("Menu");return l.createElement(xg.Provider,{value:f},l.createElement(Wh,{...Be(e,["icon"]),title:m,classNames:{list:d.subMenu.list,listTitle:d.subMenu.itemTitle},styles:{list:u.subMenu.list,listTitle:u.subMenu.itemTitle},popupClassName:z(i,t,d.popup.root,`${i}-${r||c}`),popupStyle:{zIndex:h,...e.popupStyle,...u.popup.root}}))};function Tg(e){return null===e||!1===e}const zg={item:Cg,submenu:Bg,divider:wg},Ag=t.forwardRef((e,t)=>{const n=l.useContext($g),o=n||{},{prefixCls:r,className:a,style:i,theme:s="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:d,inlineCollapsed:u,siderCollapsed:p,rootClassName:m,mode:f,selectable:h,onClick:g,overflowedIndicatorPopupClassName:v,classNames:b,styles:y,...x}=e,{menu:w}=l.useContext(ht),{getPrefixCls:C,getPopupContainer:$,direction:S,className:E,style:k,classNames:N,styles:_}=vt("menu"),I=C(),P=Be(x,["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=Ve("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==f),"usage","`inlineCollapsed` should only be used when `mode` is inline."),t.deprecated("items"in e&&!e.children,"children","items")}o.validator?.({mode:f});const R=Z((...e)=>{g?.(...e),o.onClick?.()}),O=o.mode||f,D=h??o.selectable,M=u??p,B={...e,mode:O,inlineCollapsed:M,selectable:D,theme:s},[T,A]=Li([N,b],[_,y],{props:B},{popup:{_default:"root"},subMenu:{_default:"item"}}),L={horizontal:{motionName:`${I}-slide-up`},inline:ks(I),other:{motionName:`${I}-zoom-big`}},j=C("menu",r||o.prefixCls),H=Ji(j),[F,V]=((e,t=e,n=!0)=>{const o=ra("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:a,darkItemBg:i,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:p,darkItemHoverColor:m,darkItemDisabledColor:f,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),w=Xo(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=Xo(w,{itemColor:r,itemHoverColor:m,groupTitleColor:p,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:i,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:f,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:d,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[Dg(w),Eg(w),Pg(w),_g(w,"light"),_g(C,"dark"),kg(w),Rc(w),td(w,"slide-up"),td(w,"slide-down"),cd(w,"zoom-big")]},Mg,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return o(e,t)})(j,H,!n),W=z(`${j}-${s}`,E,a),K=l.useMemo(()=>{if("function"==typeof c||Tg(c))return c||null;if("function"==typeof o.expandIcon||Tg(o.expandIcon))return o.expandIcon||null;if("function"==typeof w?.expandIcon||Tg(w?.expandIcon))return w?.expandIcon||null;const e=c??o?.expandIcon??w?.expandIcon;return Yi(e,{className:z(`${j}-submenu-expand-icon`,l.isValidElement(e)?e.props?.className:void 0)})},[c,o?.expandIcon,w?.expandIcon,j]),q=l.useMemo(()=>({prefixCls:j,inlineCollapsed:M||!1,direction:S,firstLevel:!0,theme:s,mode:O,disableMenuItemTitleTooltip:d,classNames:T,styles:A}),[j,M,S,d,s,O,T,A]);return l.createElement($g.Provider,{value:null},l.createElement(xg.Provider,{value:q},l.createElement(tg,{getPopupContainer:$,overflowedIndicator:l.createElement(yg,null),overflowedIndicatorPopupClassName:z(j,`${j}-${s}`,v),classNames:{list:T.list,listTitle:T.itemTitle},styles:{list:A.list,listTitle:A.itemTitle},mode:O,selectable:D,onClick:R,...P,inlineCollapsed:M,style:{...A.root,...k,...i},className:W,prefixCls:j,direction:S,defaultMotions:L,expandIcon:K,ref:t,rootClassName:z(m,F,o.rootClassName,V,H,T.root),_internalComponents:zg})))});var Lg=Ag;const jg=t.forwardRef((e,n)=>{const o=t.useRef(null),r=l.useContext(pg);return t.useImperativeHandle(n,()=>({menu:o.current,focus:e=>{o.current?.focus(e)}})),l.createElement(Lg,{ref:o,...e,...r})});jg.Item=Cg,jg.SubMenu=Bg,jg.Divider=wg,jg.ItemGroup=Xh,"production"!==process.env.NODE_ENV&&(jg.displayName="Menu");var Hg=jg;var Fg=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}};const Vg=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:d,dropdownEdgeChildPadding:u,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:f,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:m},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,\n &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,\n &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,\n &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,\n &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,\n &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:qc},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,\n &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,\n &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,\n &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,\n &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,\n &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Xc},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,\n &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,\n &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Uc},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,\n &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,\n &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Gc}}},ff(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Jr(e),[n]:{padding:u,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...ta(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ut(c)} ${Ut(f)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${Ut(c)} ${Ut(f)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...ta(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ut(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:m,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${Ut(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[td(e,"slide-up"),td(e,"slide-down"),Kc(e,"move-up"),Kc(e,"move-down"),cd(e,"zoom-big")]]};var Wg=ra("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,a=Xo(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Vg(a),Fg(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...pf({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...df(e)}),{resetStyle:!1});const Kg=e=>{const{menu:t,arrow:n,prefixCls:o,children:r,trigger:a,disabled:i,dropdownRender:s,popupRender:c,getPopupContainer:d,overlayClassName:u,rootClassName:p,overlayStyle:m,open:f,onOpenChange:h,mouseEnterDelay:g=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:b=!0,placement:y="",transitionName:x,classNames:w,styles:C,destroyPopupOnHide:$,destroyOnHidden:S}=e,{getPrefixCls:E,direction:k,getPopupContainer:N,className:_,style:I,classNames:P,styles:R}=vt("dropdown"),O={...e,mouseEnterDelay:g,mouseLeaveDelay:v,autoAdjustOverflow:b},[D,M]=Li([P,w],[R,C],{props:O}),B={...I,...m,...M.root},T=c||s,A=Ve("Dropdown");if("production"!==process.env.NODE_ENV){const t={dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden",overlayClassName:"classNames.root",overlayStyle:"styles.root"};Object.entries(t).forEach(([t,n])=>{A.deprecated(!(t in e),t,n)}),y.includes("Center")&&A.deprecated(!y.includes("Center"),`placement: ${y}`,`placement: ${y.slice(0,y.indexOf("Center"))}`)}const L=l.useMemo(()=>{const e=E();return void 0!==x?x:y.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[E,y,x]),j=l.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:"rtl"===k?"bottomRight":"bottomLeft",[y,k]),H=E("dropdown",o),F=Ji(H),[V,W]=Wg(H,F),[,K]=Zr(),q=l.Children.only(Vf(r)?l.createElement("span",null,r):r),U=Yi(q,{className:z(`${H}-trigger`,{[`${H}-rtl`]:"rtl"===k},q.props.className),disabled:q.props.disabled??i}),X=i?[]:a,G=!!X?.includes("contextMenu"),[Y,Q]=ne(!1,f),J=Z(e=>{h?.(e,{source:"trigger"}),Q(e)}),ee=z(u,p,V,W,F,_,D.root,{[`${H}-rtl`]:"rtl"===k}),te=bf({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:b,offset:K.marginXXS,arrowWidth:n?K.sizePopupArrow:0,borderRadius:K.borderRadius}),oe=Z(()=>{t?.selectable&&t?.multiple||(h?.(!1,{source:"menu"}),Q(!1))}),[re,ae]=Xi("Dropdown",B.zIndex);let ie=l.createElement(Ff,{alignPoint:G,...Be(e,["rootClassName","onOpenChange"]),mouseEnterDelay:g,mouseLeaveDelay:v,visible:Y,builtinPlacements:te,arrow:!!n,overlayClassName:ee,prefixCls:H,getPopupContainer:d||N,transitionName:L,trigger:X,overlay:()=>{const e=Be(D,["root"]),n=Be(M,["root"]);let o;return t?.items&&(o=l.createElement(Hg,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),T&&(o=T(o)),o=l.Children.only("string"==typeof o?l.createElement("span",null,o):o),l.createElement(Sg,{prefixCls:`${H}-menu`,rootClassName:z(W,F),expandIcon:l.createElement("span",{className:`${H}-menu-submenu-arrow`},"rtl"===k?l.createElement(Mf,{className:`${H}-menu-submenu-arrow-icon`}):l.createElement(Ic,{className:`${H}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:({mode:e})=>{"production"!==process.env.NODE_ENV&&A(!e||"vertical"===e,"usage",`mode="${e}" is not supported for Dropdown's Menu.`)}},o)},placement:j,onVisibleChange:J,overlayStyle:{...B,zIndex:re},autoDestroy:S??$},U);return re&&(ie=l.createElement(Wi.Provider,{value:ae},ie)),ie},qg=Au(Kg,"align",void 0,"dropdown",e=>e);Kg._InternalPanelDoNotUseOrYouWillBeFired=e=>l.createElement(qg,{...e},l.createElement("span",null)),"production"!==process.env.NODE_ENV&&(Kg.displayName="Dropdown");var Ug=Kg;const Xg=({children:e})=>{const{getPrefixCls:t}=l.useContext(ht),n=t("breadcrumb"),o=l.useContext(If),{classNames:r,styles:a}=o;return l.createElement("li",{className:z(`${n}-separator`,r?.separator),style:a?.separator,"aria-hidden":"true"},""===e?e:e||"/")};Xg.__ANT_BREADCRUMB_SEPARATOR=!0;var Gg=Xg;function Yg(e,t,n,o){if(!Ri(n))return null;const{className:r,onClick:a,...i}=t,s={...mi(i,{data:!0,aria:!0}),onClick:a};return void 0!==o?l.createElement("a",{...s,className:z(`${e}-link`,r),href:o},n):l.createElement("span",{...s,className:z(`${e}-link`,r)},n)}function Zg(e,t){return(n,o,r,a,i)=>{if(t)return t(n,o,r,a);const l=function(e,t){if(!Ri(e.title))return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(e,n)=>t[n]||e)}(n,o);return Yg(e,n,l,i)}}const Qg=e=>{const{prefixCls:t,separator:n="/",children:o,menu:r,dropdownProps:a,href:i}=e,s=l.useContext(If),{classNames:c,styles:d}=s,u=(e=>{if(r){const n={...a};if(r){const{items:e,...t}=r||{};n.menu={...t,items:e?.map(({key:e,title:t,label:n,path:o,...r},a)=>{let s=n??t;return o&&(s=l.createElement("a",{href:`${i}${o}`},s)),{...r,key:e??a,label:s}})}}return l.createElement(Ug,{placement:"bottom",...n},l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(Fm,null)))}return e})(o);return Ri(u)?l.createElement(l.Fragment,null,l.createElement("li",{className:z(`${t}-item`,c?.item),style:d?.item},u),n&&l.createElement(Gg,null,n)):null},Jg=e=>{const{prefixCls:t,children:n,href:o,...r}=e,{getPrefixCls:a}=l.useContext(ht),i=a("breadcrumb",t);return l.createElement(Qg,{...r,prefixCls:i},Yg(i,r,n,o))};Jg.__ANT_BREADCRUMB_ITEM=!0;var ev=Jg;var tv=ra("Breadcrumb",e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:{...Jr(e),color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Ut(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:o(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...ta(e)},[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Ut(e.paddingXXS)}`,marginInline:o(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}})(Xo(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));function nv(e){const{breadcrumbName:t,children:n,...o}=e,r={title:t,...o};return n&&(r.menu={items:n.map(({breadcrumbName:e,...t})=>({...t,title:e}))}),r}const ov=e=>{const{prefixCls:n,separator:o,style:r,className:a,rootClassName:i,routes:s,items:c,children:d,itemRender:u,params:p={},classNames:m,styles:f,...h}=e,{getPrefixCls:g,direction:v,className:b,style:y,classNames:x,styles:w,separator:C}=vt("breadcrumb"),$=o??C??"/";let S;const E=g("breadcrumb",n),[k,N]=tv(E),_=function(e,n){return t.useMemo(()=>e||(n?n.map(nv):null),[e,n])}(c,s),I=l.useMemo(()=>({...e,separator:$}),[e,$]),[P,R]=Li([x,m],[w,f],{props:I});if("production"!==process.env.NODE_ENV){const e=Ve("Breadcrumb");if(e.deprecated(!s,"routes","items"),!_||0===_.length){const t=Te(d);e.deprecated(0===t.length,"Breadcrumb.Item and Breadcrumb.Separator","items"),t.forEach(t=>{t&&"production"!==process.env.NODE_ENV&&e(t.type&&(!0===t.type.__ANT_BREADCRUMB_ITEM||!0===t.type.__ANT_BREADCRUMB_SEPARATOR),"usage","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children")})}}const O=Zg(E,u);if(_&&_.length>0){const e=[],t=c||s;S=_.map((n,o)=>{const{path:r,key:a,type:i,menu:s,onClick:c,className:d,style:u,separator:m,dropdownProps:f}=n,h=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{n=n.replace(`:${t}`,e[t])}),n})(p,r);void 0!==h&&e.push(h);const g=a??o;if("separator"===i)return l.createElement(Gg,{key:g},m);const v={},b=o===_.length-1;s&&(v.menu=s);let{href:y}=n;return e.length&&void 0!==h&&(y=`#/${e.join("/")}`),l.createElement(Qg,{key:g,...v,...mi(n,{data:!0,aria:!0}),className:d,style:u,dropdownProps:f,href:y,separator:b?"":$,onClick:c,prefixCls:E},O(n,p,t,e,y))})}else if(d){const e=Te(d).length;S=Te(d).map((t,n)=>{if(!t)return t;return Yi(t,{separator:n===e-1?"":$,key:n})})}const D=z(E,b,{[`${E}-rtl`]:"rtl"===v},a,i,P.root,k,N),M={...R.root,...y,...r},B=l.useMemo(()=>({classNames:P,styles:R}),[P,R]);return l.createElement(If.Provider,{value:B},l.createElement("nav",{className:D,style:M,...h},l.createElement("ol",null,S)))};ov.Item=ev,ov.Separator=Gg,"production"!==process.env.NODE_ENV&&(ov.displayName="Breadcrumb");var rv=ov;function av(e){var t;return(void 0===(t=e)||!1===t?[]:Array.isArray(t)?t:[t]).join("_")}const iv=l.createContext(null),lv=iv.Provider,sv=l.createContext(null),cv=sv.Provider;function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dv.apply(this,arguments)}const uv=t.forwardRef((e,n)=>{const{prefixCls:o="rc-checkbox",className:r,style:a,checked:i,disabled:s,defaultChecked:c=!1,type:d="checkbox",title:u,onChange:p,...m}=e,f=t.useRef(null),h=t.useRef(null),[g,v]=ne(c,i);t.useImperativeHandle(n,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:h.current}));const b=z(o,r,{[`${o}-checked`]:g,[`${o}-disabled`]:s});return l.createElement("span",{className:b,title:u,style:a,ref:h},l.createElement("input",dv({},m,{className:`${o}-input`,ref:f,onChange:t=>{s||("checked"in e||v(t.target.checked),p?.({target:{...e,type:d,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!g,type:d})),l.createElement("span",{className:`${o}-inner`}))});function pv(e){const t=s.default.useRef(null),n=()=>{ut.cancel(t.current),t.current=null};return[()=>{n(),t.current=ut(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e?.(o)}]}const mv=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:{...Jr(e),display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS}}}},fv=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:d,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:m,dotColorDisabled:f,lineType:h,radioColor:g,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(r).sub(b(4).mul(2)),w=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:{...Jr(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ut(d)} ${h} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...Jr(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:ea(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:u,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:f}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},hv=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:a,colorBorder:i,motionDurationMid:l,buttonPaddingInline:s,fontSize:c,buttonBg:d,fontSizeLG:u,controlHeightLG:p,controlHeightSM:m,paddingXS:f,borderRadius:h,borderRadiusSM:g,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:y,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:$,colorPrimary:S,colorPrimaryHover:E,colorPrimaryActive:k,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:_,buttonSolidCheckedActiveBg:I,calc:P}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:Ut(P(n).sub(P(r).mul(2)).equal()),background:d,border:`${Ut(r)} ${a} ${i}`,borderBlockStartWidth:P(r).add(.02).equal(),borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:P(r).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Ut(r)} ${a} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${o}-group-large &`]:{height:p,fontSize:u,lineHeight:Ut(P(p).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${o}-group-small &`]:{height:m,paddingInline:P(f).sub(r).equal(),paddingBlock:0,lineHeight:Ut(P(m).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":ea(e),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:b,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:y,background:N,borderColor:N,"&:hover":{color:y,background:_,borderColor:_},"&:active":{color:y,background:I,borderColor:I}},"&-disabled":{color:x,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:$,backgroundColor:C,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var gv=ra("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${Ut(n)} ${t}`,r=Xo(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[mv(r),fv(r),hv(r)]},e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:u,colorPrimaryHover:p,colorPrimaryActive:m,colorWhite:f}=e;return{radioSize:a,dotSize:t?a-8:a-2*(4+r),dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:m,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?u:f,radioBgColor:t?l:u}},{unitless:{radioSize:!0,dotSize:!0}});const vv=(e,t)=>{const n=l.useContext(iv),o=l.useContext(sv),{getPrefixCls:r,direction:a,className:i,style:s,classNames:c,styles:d}=vt("radio"),u=l.useRef(null),p=ge(t,u),{isFormItemInput:m}=l.useContext(Mu);if("production"!==process.env.NODE_ENV){const t=Ve("Radio");"production"!==process.env.NODE_ENV&&t(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:h,className:g,rootClassName:v,children:b,style:y,title:x,classNames:w,styles:C,...$}=e,S=r("radio",h),E="button"===(n?.optionType||o),k=E?`${S}-button`:S,N=Ji(S),[_,I]=gv(S,N),P={...$},R=l.useContext(ns);n&&(P.name=n.name,P.onChange=f,P.checked=e.value===n.value,P.disabled=P.disabled??n.disabled),P.disabled=P.disabled??R;const O={...e,...P},[D,M]=Li([c,w],[d,C],{props:O}),B=z(`${k}-wrapper`,{[`${k}-wrapper-checked`]:P.checked,[`${k}-wrapper-disabled`]:P.disabled,[`${k}-wrapper-rtl`]:"rtl"===a,[`${k}-wrapper-in-form-item`]:m,[`${k}-wrapper-block`]:!!n?.block},i,g,v,D.root,_,I,N),[T,A]=pv(P.onClick);return l.createElement(Ts,{component:"Radio",disabled:P.disabled},l.createElement("label",{className:B,style:{...M.root,...s,...y},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:T},l.createElement(uv,{...P,className:z(D.icon,{[Is]:!E}),style:M.icon,type:"radio",prefixCls:k,ref:p,onClick:A}),void 0!==b?l.createElement("span",{className:z(`${k}-label`,D.label),style:M.label},b):null))},bv=l.forwardRef(vv);"production"!==process.env.NODE_ENV&&(bv.displayName="Radio");var yv=bv;const xv=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=l.useContext(ht),{name:r}=l.useContext(Mu),a=ml(av(r)),{prefixCls:i,className:s,rootClassName:c,options:d,buttonStyle:u="outline",disabled:p,children:m,size:f,style:h,id:g,optionType:v,name:b=a,defaultValue:y,value:x,block:w=!1,onChange:C,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k,orientation:N,vertical:_}=e,[I,P]=ne(y,x),R=l.useCallback(t=>{const n=I,o=t.target.value;"value"in e||P(o),o!==n&&C?.(t)},[I,P,C]),O=n("radio",i),D=`${O}-group`,M=Ji(O),[B,T]=gv(O,M);let A=m;d&&d.length>0&&(A=d.map(e=>"string"==typeof e||"number"==typeof e?l.createElement(yv,{key:e.toString(),prefixCls:O,disabled:p,value:e,checked:I===e},e):l.createElement(yv,{key:`radio-group-value-options-${e.value}`,prefixCls:O,disabled:e.disabled||p,value:e.value,checked:I===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const L=zs(f),[,j]=Hi(N,_),H=z(D,`${D}-${u}`,{[`${D}-${L}`]:L,[`${D}-rtl`]:"rtl"===o,[`${D}-block`]:w},s,c,B,T,M),F=l.useMemo(()=>({onChange:R,value:I,disabled:p,name:b,optionType:v,block:w}),[R,I,p,b,v,w]);return l.createElement("div",{...mi(e,{aria:!0,data:!0}),className:z(H,{[`${O}-group-vertical`]:j}),style:h,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k,id:g,ref:t},l.createElement(lv,{value:F},A))});var wv=l.memo(xv);const Cv=(e,t)=>{const{getPrefixCls:n}=l.useContext(ht),{prefixCls:o,...r}=e,a=n("radio",o);return l.createElement(cv,{value:"button"},l.createElement(yv,{prefixCls:a,...r,type:"radio",ref:t}))};var $v=l.forwardRef(Cv);const Sv=yv;Sv.Button=$v,Sv.Group=wv,Sv.__ANT_RADIO=!0;var Ev=Sv;function kv(e){return Xo(e,{inputAffixPadding:e.paddingXXS})}const Nv=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:f,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:C}=e,$=x||n,S=C||$,E=w||l,k=Math.round((t-$*o)/2*10)/10-r,N=Math.round((a-S*o)/2*10)/10-r,_=Math.ceil((i-E*s)/2*10)/10-r;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(_,0),paddingInline:c-r,paddingInlineSM:d-r,paddingInlineLG:u-r,addonBg:p,activeBorderColor:f,hoverBorderColor:m,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${v}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:$,inputFontSizeLG:E,inputFontSizeSM:S}},_v=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Iv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{..._v(Xo(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),Pv=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Rv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Pv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Ov=(e,t)=>({"&-outlined":{...Pv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Iv(e)},...Rv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Rv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Dv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Mv=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Dv(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Dv(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Iv(e)}}}}),Bv=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},Tv=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),zv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Tv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Av=(e,t)=>({"&-filled":{...Tv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Iv(e)},...zv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...zv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),Lv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),jv=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...Lv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Lv(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),Hv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Ut(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Fv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Hv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Vv=(e,t)=>({"&-underlined":{...Hv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...Fv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Fv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Wv=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Ut(t)} ${Ut(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Kv=e=>({padding:`${Ut(e.paddingBlockSM)} ${Ut(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),qv=(e,t={})=>{return{position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ut(e.paddingBlock)} ${Ut(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...(n=e.colorTextPlaceholder,{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:n,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),"&-lg":{...Wv(e),...t.largeStyle},"&-sm":{...Kv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}};var n},Uv=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...Wv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Kv(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ut(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ut(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ut(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${Ut(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${Ut(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block","&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},Xv=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,a=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:{...Jr(e),...qv(e),...Ov(e),...Av(e),...Bv(e),...Vv(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},Gv=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ut(e.inputAffixPadding)}`}}}},Yv=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:a,colorIconHover:i,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...qv(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...Gv(e),[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Zv=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:{...Jr(e),...Uv(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}},...Mv(e),...jv(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},Qv=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Jv=ra(["Input","Shared"],e=>{const t=Xo(e,kv(e));return[Xv(t),Yv(t)]},Nv,{resetFont:!1});var eb=ra(["Input","Component"],e=>{const t=Xo(e,kv(e));return[Zv(t),Qv(t),$d(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Nv,{resetFont:!1});function tb(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},a=r.noTrailing,i=void 0!==a&&a,l=r.noLeading,s=void 0!==l&&l,c=r.debounceMode,d=void 0===c?void 0:c,u=!1,p=0;function m(){o&&clearTimeout(o)}function f(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var l=this,c=Date.now()-p;function f(){p=Date.now(),t.apply(l,r)}function h(){o=void 0}u||(s||!d||o||f(),m(),void 0===d&&c>e?s?(p=Date.now(),i||(o=setTimeout(d?h:f,e))):f():!0!==i&&(o=setTimeout(d?h:f,void 0===d?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;m(),u=!n},f}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}function nb(e,t){return e[t]}function ob(e,t){return`${e}-${t}`}function rb(e,t){return null!=e?e:t}function ab(e){const{title:t,_title:n,key:o,children:r}=e||{},a=t||"title";return{title:a,_title:n||[a],key:o||"key",children:r||"children"}}function ib(e){return function e(t){return Te(t).map(t=>{if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return De(!t,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:n}=t,{children:o,...r}=t.props,a={key:n,...r},i=e(o);return i.length&&(a.children=i),a}).filter(e=>e)}(e)}function lb(e,t,n){const{_title:o,key:r,children:a}=ab(n),i=new Set(!0===t?[]:t),l=[];return function e(n,s=null){return n.map((c,d)=>{const u=ob(s?s.pos:"0",d),p=rb(c[r],u);let m;for(let e=0;e<o.length;e+=1){const t=o[e];if(void 0!==c[t]){m=c[t];break}}const f=Object.assign(Be(c,[...o,r,a]),{title:m,key:p,parent:s,pos:u,children:null,data:c,isStart:[...s?s.isStart:[],0===d],isEnd:[...s?s.isEnd:[],d===n.length-1]});return l.push(f),!0===t||i.has(p)?f.children=e(c[a]||[],f):f.children=[],f})}(e),l}function sb(e,{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:a,fieldNames:i}={},l){const s=r||l,c={},d={};let u={posEntities:c,keyEntities:d};return t&&(u=t(u)||u),function(e,t,n){let o={};o="object"==typeof n?n:{externalGetKey:n},o=o||{};const{childrenPropName:r,externalGetKey:a,fieldNames:i}=o,{key:l,children:s}=ab(i),c=r||s;let d;a?"string"==typeof a?d=e=>e[a]:"function"==typeof a&&(d=e=>a(e)):d=(e,t)=>rb(e[l],t),function n(o,r,a,i){const l=o?o[c]:e,s=o?ob(a.pos,r):"0",u=o?[...i,o]:[];if(o){const e=d(o,s),n={node:o,index:r,pos:s,key:e,parentPos:a.node?a.pos:null,level:a.level+1,nodes:u};t(n)}l&&l.forEach((e,t)=>{n(e,t,{node:o,pos:s,level:a?a.level+1:-1},u)})}(null)}(e,e=>{const{node:t,index:o,pos:r,key:a,parentPos:i,level:l,nodes:s}=e,p={node:t,nodes:s,index:o,key:a,pos:r,level:l},m=rb(a,r);c[r]=p,d[m]=p,p.parent=c[i],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,u)},{externalGetKey:s,childrenPropName:a,fieldNames:i}),o&&o(u),u}function cb(e,{expandedKeys:t,selectedKeys:n,loadedKeys:o,loadingKeys:r,checkedKeys:a,halfCheckedKeys:i,dragOverNodeKey:l,dropPosition:s,keyEntities:c}){const d=nb(c,e);return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==r.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(d?d.pos:""),dragOver:l===e&&0===s,dragOverGapTop:l===e&&-1===s,dragOverGapBottom:l===e&&1===s}}function db(e){const{data:t,expanded:n,selected:o,checked:r,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:p,eventKey:m}=e,f={...t,expanded:n,selected:o,checked:r,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:p,key:m};return"props"in f||Object.defineProperty(f,"props",{get:()=>(De(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e)}),f}function ub(e,t){const n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function pb(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function mb(e,t,n,o){const r=[];let a;a=o||pb;const i=new Set(e.filter(e=>{const t=!!nb(n,e);return t||r.push(e),t})),l=new Map;let s,c=0;return Object.keys(n).forEach(e=>{const t=n[e],{level:o}=t;let r=l.get(o);r||(r=new Set,l.set(o,r)),r.add(t),c=Math.max(c,o)}),De(!r.length,`Tree missing follow keys: ${r.slice(0,100).map(e=>`'${e}'`).join(", ")}`),s=!0===t?function(e,t,n,o){const r=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{const{key:t,node:n,children:a=[]}=e;r.has(t)&&!o(n)&&a.filter(e=>!o(e.node)).forEach(e=>{r.add(e.key)})});const i=new Set;for(let e=n;e>=0;e-=1)(t.get(e)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||i.has(e.parent.key))return;if(o(e.parent.node))return void i.add(t.key);let l=!0,s=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{const t=r.has(e);l&&!t&&(l=!1),s||!t&&!a.has(e)||(s=!0)}),l&&r.add(t.key),s&&a.add(t.key),i.add(t.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(ub(a,r))}}(i,l,c,a):function(e,t,n,o,r){const a=new Set(e);let i=new Set(t);for(let e=0;e<=o;e+=1)(n.get(e)||new Set).forEach(e=>{const{key:t,node:n,children:o=[]}=e;a.has(t)||i.has(t)||r(n)||o.filter(e=>!r(e.node)).forEach(e=>{a.delete(e.key)})});i=new Set;const l=new Set;for(let e=o;e>=0;e-=1)(n.get(e)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||l.has(e.parent.key))return;if(r(e.parent.node))return void l.add(t.key);let o=!0,s=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{const t=a.has(e);o&&!t&&(o=!1),s||!t&&!i.has(e)||(s=!0)}),o||a.delete(t.key),s&&i.add(t.key),l.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(ub(i,a))}}(i,t.halfCheckedKeys,l,c,a),s}function fb(e,t){return(e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:{...Jr(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[n]:{...Jr(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...Jr(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:ea(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ut(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]})(Xo(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var hb=ra("Checkbox",(e,{prefixCls:t})=>[fb(t,e)]);var gb=s.default.createContext(null);const vb=(e,t)=>{const{prefixCls:n,className:o,rootClassName:r,children:a,indeterminate:i=!1,style:s,onMouseEnter:c,onMouseLeave:d,skipGroup:u=!1,disabled:p,classNames:m,styles:f,...h}=e,{getPrefixCls:g,direction:v,className:b,style:y,classNames:x,styles:w}=vt("checkbox"),C=l.useContext(gb),{isFormItemInput:$}=l.useContext(Mu),S=l.useContext(ns),E=(C?.disabled||p)??S,k={...e,indeterminate:i,disabled:E},[N,_]=Li([x,m],[w,f],{props:k}),I=l.useRef(h.value),P=l.useRef(null),R=ge(t,P);if("production"!==process.env.NODE_ENV){const e=Ve("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in h||!!C||!("value"in h),"usage","`value` is not a valid prop, do you mean `checked`?")}l.useEffect(()=>{C?.registerValue(h.value)},[]),l.useEffect(()=>{if(!u)return h.value!==I.current&&(C?.cancelValue(I.current),C?.registerValue(h.value),I.current=h.value),()=>C?.cancelValue(h.value)},[h.value]),l.useEffect(()=>{P.current?.input&&(P.current.input.indeterminate=i)},[i]);const O=g("checkbox",n),D=Ji(O),[M,B]=hb(O,D),T={...h};C&&!u&&(T.onChange=(...e)=>{h.onChange&&h.onChange.apply(h,e),C.toggleOption&&C.toggleOption({label:a,value:h.value})},T.name=C.name,T.checked=C.value.includes(h.value));const A=z(`${O}-wrapper`,{[`${O}-rtl`]:"rtl"===v,[`${O}-wrapper-checked`]:T.checked,[`${O}-wrapper-disabled`]:E,[`${O}-wrapper-in-form-item`]:$},b,o,N.root,r,B,D,M),L=z(N.icon,{[`${O}-indeterminate`]:i},Is,M),[j,H]=pv(T.onClick);return l.createElement(Ts,{component:"Checkbox",disabled:E},l.createElement("label",{className:A,style:{..._.root,...y,...s},onMouseEnter:c,onMouseLeave:d,onClick:j},l.createElement(uv,{...T,onClick:H,prefixCls:O,className:L,style:_.icon,disabled:E,ref:R}),Ri(a)&&l.createElement("span",{className:z(`${O}-label`,N.label),style:_.label},a)))},bb=l.forwardRef(vb);"production"!==process.env.NODE_ENV&&(bb.displayName="Checkbox");var yb=bb;const xb=l.forwardRef((e,t)=>{const{defaultValue:n,children:o,options:r=[],prefixCls:a,className:i,rootClassName:s,style:c,onChange:d,...u}=e,{getPrefixCls:p,direction:m}=l.useContext(ht),[f,h]=l.useState(u.value||n||[]),[g,v]=l.useState([]);l.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const b=l.useMemo(()=>r.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[r]),y=e=>{v(t=>t.filter(t=>t!==e))},x=e=>{v(t=>[].concat(at(t),[e]))},w=e=>{const t=f.indexOf(e.value),n=at(f);-1===t?n.push(e.value):n.splice(t,1),"value"in u||h(n),d?.(n.filter(e=>g.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},C=p("checkbox",a),$=`${C}-group`,S=Ji(C),[E,k]=hb(C,S),N=Be(u,["value","disabled"]),_=r.length?b.map(e=>l.createElement(yb,{prefixCls:C,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:f.includes(e.value),onChange:e.onChange,className:z(`${$}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):o,I=l.useMemo(()=>({toggleOption:w,value:f,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:y}),[w,f,u.disabled,u.name,x,y]),P=z($,{[`${$}-rtl`]:"rtl"===m},i,s,k,S,E);return l.createElement("div",{className:P,style:c,...N,ref:t},l.createElement(gb.Provider,{value:I},_))});var wb=xb;const Cb=yb;Cb.Group=wb,Cb.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(Cb.displayName="Checkbox");var $b=Cb,Sb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Eb.apply(this,arguments)}const kb=(e,t)=>l.createElement($a,Eb({},e,{ref:t,icon:Sb})),Nb=l.forwardRef(kb);
|
|
21
|
-
/** */"production"!==process.env.NODE_ENV&&(Nb.displayName="CaretDownFilled");var _b=Nb,Ib={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pb.apply(this,arguments)}const Rb=(e,t)=>l.createElement($a,Pb({},e,{ref:t,icon:Ib})),Ob=l.forwardRef(Rb);
|
|
22
|
-
/** */"production"!==process.env.NODE_ENV&&(Ob.displayName="CaretDownOutlined");var Db=Ob,Mb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Bb.apply(this,arguments)}const Tb=(e,t)=>l.createElement($a,Bb({},e,{ref:t,icon:Mb})),zb=l.forwardRef(Tb);
|
|
23
|
-
/** */"production"!==process.env.NODE_ENV&&(zb.displayName="CaretUpOutlined");var Ab=zb,Lb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},jb.apply(this,arguments)}const Hb=(e,t)=>l.createElement($a,jb({},e,{ref:t,icon:Lb})),Fb=l.forwardRef(Hb);
|
|
24
|
-
/** */"production"!==process.env.NODE_ENV&&(Fb.displayName="DoubleLeftOutlined");var Vb=Fb,Wb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Kb.apply(this,arguments)}const qb=(e,t)=>l.createElement($a,Kb({},e,{ref:t,icon:Wb})),Ub=l.forwardRef(qb);
|
|
25
|
-
/** */"production"!==process.env.NODE_ENV&&(Ub.displayName="DoubleRightOutlined");var Xb=Ub,Gb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function Yb(){return Yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yb.apply(this,arguments)}const Zb=(e,t)=>l.createElement($a,Yb({},e,{ref:t,icon:Gb})),Qb=l.forwardRef(Zb);
|
|
26
|
-
/** */"production"!==process.env.NODE_ENV&&(Qb.displayName="FileOutlined");var Jb=Qb,ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ty.apply(this,arguments)}const ny=(e,t)=>l.createElement($a,ty({},e,{ref:t,icon:ey})),oy=l.forwardRef(ny);
|
|
27
|
-
/** */"production"!==process.env.NODE_ENV&&(oy.displayName="FilterFilled");var ry=oy,ay={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},iy.apply(this,arguments)}const ly=(e,t)=>l.createElement($a,iy({},e,{ref:t,icon:ay})),sy=l.forwardRef(ly);
|
|
28
|
-
/** */"production"!==process.env.NODE_ENV&&(sy.displayName="FolderOpenOutlined");var cy=sy,dy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};function uy(){return uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},uy.apply(this,arguments)}const py=(e,t)=>l.createElement($a,uy({},e,{ref:t,icon:dy})),my=l.forwardRef(py);
|
|
29
|
-
/** */"production"!==process.env.NODE_ENV&&(my.displayName="FolderOutlined");var fy=my,hy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gy.apply(this,arguments)}const vy=(e,t)=>l.createElement($a,gy({},e,{ref:t,icon:hy})),by=l.forwardRef(vy);
|
|
30
|
-
/** */"production"!==process.env.NODE_ENV&&(by.displayName="HolderOutlined");var yy=by,xy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wy.apply(this,arguments)}const Cy=(e,t)=>l.createElement($a,wy({},e,{ref:t,icon:xy})),$y=l.forwardRef(Cy);
|
|
31
|
-
/** */"production"!==process.env.NODE_ENV&&($y.displayName="MinusSquareOutlined");var Sy=$y,Ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};function ky(){return ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ky.apply(this,arguments)}const Ny=(e,t)=>l.createElement($a,ky({},e,{ref:t,icon:Ey})),_y=l.forwardRef(Ny);
|
|
32
|
-
/** */"production"!==process.env.NODE_ENV&&(_y.displayName="PlusSquareOutlined");var Iy=_y;const Py=e=>{const{componentCls:t,borderRadius:n,paddingSM:o,colorBorder:r,paddingXS:a,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:u}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:o,margin:0,borderWidth:u,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:i,borderRadius:s},"&-small":{paddingInline:a,borderRadius:c,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{"--space-addon-border-color":r,"--space-addon-background":d,"--space-addon-border-color-outlined":r,"--space-addon-background-filled":d,borderColor:"var(--space-addon-border-color)",background:"var(--space-addon-background)","&-variant-outlined":{"--space-addon-border-color":"var(--space-addon-border-color-outlined)"},"&-variant-filled":{"--space-addon-border-color":"transparent","--space-addon-background":"var(--space-addon-background-filled)",[`&${t}-disabled`]:{"--space-addon-border-color":r,"--space-addon-background":d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{"--space-addon-border-color-outlined":e.colorError,"--space-addon-background-filled":e.colorErrorBg,color:e.colorError},"&-status-warning":{"--space-addon-border-color-outlined":e.colorWarning,"--space-addon-background-filled":e.colorWarningBg,color:e.colorWarning}}]}};var Ry=ra(["Space","Addon"],e=>[Py(e),$d(e,{focus:!1})]);const Oy=s.default.forwardRef((e,t)=>{const{className:n,children:o,style:r,prefixCls:a,variant:i="outlined",disabled:l,status:c,...d}=e,{getPrefixCls:u,direction:p}=s.default.useContext(ht),m=u("space-addon",a),[f,h]=Ry(m),{compactItemClassnames:g,compactSize:v}=Hs(m,p),b=z(m,f,g,h,`${m}-variant-${i}`,cm(m,c),{[`${m}-${v}`]:v,[`${m}-disabled`]:l},n);return s.default.createElement("div",{ref:t,className:b,style:r,...d},o)});var Dy=Oy;function My(e,t,n){const o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},r}function By(e,t,n,o){if(!n)return;let r=t;return"click"===t.type?(r=My(t,e,""),void n(r)):"file"!==e.type&&void 0!==o?(r=My(t,e,o),void n(r)):void n(r)}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ty.apply(this,arguments)}const zy=s.default.forwardRef((e,n)=>{const{inputElement:o,children:r,prefixCls:a,prefix:i,suffix:l,addonBefore:c,addonAfter:d,className:u,style:p,disabled:m,readOnly:f,focused:h,triggerFocus:g,allowClear:v,value:b,handleReset:y,hidden:x,classes:w,classNames:C,dataAttrs:$,styles:S,components:E,onClear:k}=e,N=r??o,_=E?.affixWrapper||"span",I=E?.groupWrapper||"span",P=E?.wrapper||"span",R=E?.groupAddon||"span",O=t.useRef(null),D=e=>{O.current?.contains(e.target)&&g?.()},M=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e);let B=t.cloneElement(N,{value:b,className:z(N.props?.className,!M&&C?.variant)||null});const T=t.useRef(null);if(s.default.useImperativeHandle(n,()=>({nativeElement:T.current||O.current})),M){let e=null;if(v){const t=!m&&!f&&b,n=`${a}-clear-icon`,o="object"==typeof v&&v?.clearIcon?v.clearIcon:"✖";e=s.default.createElement("button",{type:"button",tabIndex:-1,onClick:e=>{y?.(e),k?.()},onMouseDown:e=>e.preventDefault(),className:z(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!l})},o)}const t=`${a}-affix-wrapper`,n=z(t,{[`${a}-disabled`]:m,[`${t}-disabled`]:m,[`${t}-focused`]:h,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:l&&v&&b},w?.affixWrapper,C?.affixWrapper,C?.variant),o=(l||v)&&s.default.createElement("span",{className:z(`${a}-suffix`,C?.suffix),style:S?.suffix},e,l);B=s.default.createElement(_,Ty({className:n,style:S?.affixWrapper,onClick:D},$?.affixWrapper,{ref:O}),i&&s.default.createElement("span",{className:z(`${a}-prefix`,C?.prefix),style:S?.prefix},i),B,o)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){const e=`${a}-group`,t=`${e}-addon`,n=`${e}-wrapper`,o=z(`${a}-wrapper`,e,w?.wrapper,C?.wrapper),r=z(n,{[`${n}-disabled`]:m},w?.group,C?.groupWrapper);B=s.default.createElement(I,{className:r,ref:T},s.default.createElement(P,{className:o},c&&s.default.createElement(R,{className:t},c),B,d&&s.default.createElement(R,{className:t},d)))}return s.default.cloneElement(B,{className:z(B.props?.className,u)||null,style:{...B.props?.style,...p},hidden:x})});function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ay.apply(this,arguments)}const Ly=t.forwardRef((e,n)=>{const{autoComplete:o,onChange:r,onFocus:a,onBlur:i,onPressEnter:c,onKeyDown:d,onKeyUp:u,prefixCls:p="rc-input",disabled:m,htmlSize:f,className:h,maxLength:g,suffix:v,showCount:b,count:y,type:x="text",classes:w,classNames:C,styles:$,onCompositionStart:S,onCompositionEnd:E,...k}=e,[N,_]=t.useState(!1),I=t.useRef(!1),P=t.useRef(!1),R=t.useRef(null),O=t.useRef(null),D=e=>{R.current&&function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(R.current,e)},[M,B]=ne(e.defaultValue,e.value),T=null==M?"":String(M),[A,L]=t.useState(null),j=function(e,t){return l.useMemo(()=>{let n={};t&&(n.show="object"==typeof t&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:o,...r}=n;return{...r,show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:r.strategy||(e=>e.length)}},[e,t])}(y,b),H=j.max||g,F=j.strategy(T),V=!!H&&F>H;t.useImperativeHandle(n,()=>({focus:D,blur:()=>{R.current?.blur()},setSelectionRange:(e,t,n)=>{R.current?.setSelectionRange(e,t,n)},select:()=>{R.current?.select()},input:R.current,nativeElement:O.current?.nativeElement||R.current})),t.useEffect(()=>{P.current&&(P.current=!1),_(e=>(!e||!m)&&e)},[m]);const W=(e,t,n)=>{let o=t;if(!I.current&&j.exceedFormatter&&j.max&&j.strategy(t)>j.max)o=j.exceedFormatter(t,{max:j.max}),t!==o&&L([R.current?.selectionStart||0,R.current?.selectionEnd||0]);else if("compositionEnd"===n.source)return;B(o),R.current&&By(R.current,e,r,o)};t.useEffect(()=>{A&&R.current?.setSelectionRange(...A)},[A]);const K=e=>{W(e,e.target.value,{source:"change"})},q=e=>{I.current=!1,W(e,e.currentTarget.value,{source:"compositionEnd"}),E?.(e)},U=e=>{!c||"Enter"!==e.key||P.current||e.nativeEvent.isComposing||(P.current=!0,c(e)),d?.(e)},X=e=>{"Enter"===e.key&&(P.current=!1),u?.(e)},G=e=>{_(!0),a?.(e)},Y=e=>{P.current&&(P.current=!1),_(!1),i?.(e)},Z=V&&`${p}-out-of-range`;return s.default.createElement(zy,Ay({},k,{prefixCls:p,className:z(h,Z),handleReset:e=>{B(""),D(),R.current&&By(R.current,e,r)},value:T,focused:N,triggerFocus:D,suffix:(()=>{const e=Number(H)>0;if(v||j.show){const t=j.showFormatter?j.showFormatter({value:T,count:F,maxLength:H}):`${F}${e?` / ${H}`:""}`;return s.default.createElement(s.default.Fragment,null,j.show&&s.default.createElement("span",{className:z(`${p}-show-count-suffix`,{[`${p}-show-count-has-suffix`]:!!v},C?.count),style:{...$?.count}},t),v)}return null})(),disabled:m,classes:w,classNames:C,styles:$,ref:O}),(()=>{const t=Be(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return s.default.createElement("input",Ay({autoComplete:o},t,{onChange:K,onFocus:G,onBlur:Y,onKeyDown:U,onKeyUp:X,className:z(p,{[`${p}-disabled`]:m},C?.input),style:$?.input,ref:R,size:f,type:x,onCompositionStart:e=>{I.current=!0,S?.(e)},onCompositionEnd:q}))})())});var jy=e=>{let t;return"object"==typeof e&&e?.clearIcon?t=e:e&&(t={clearIcon:s.default.createElement(_a,null)}),t};const Hy=t.forwardRef((e,n)=>{const{prefixCls:o,bordered:r=!0,status:a,size:i,disabled:l,onBlur:c,onFocus:d,suffix:u,allowClear:p,addonAfter:m,addonBefore:f,className:h,style:g,styles:v,rootClassName:b,onChange:y,classNames:x,variant:w,...C}=e;if("production"!==process.env.NODE_ENV){const{deprecated:t}=Ve("Input");[["bordered","variant"],["addonAfter","Space.Compact"],["addonBefore","Space.Compact"]].forEach(([n,o])=>{t(!(n in e),n,o)})}const{getPrefixCls:$,direction:S,allowClear:E,autoComplete:k,className:N,style:_,classNames:I,styles:P}=vt("input"),R=$("input",o),O=t.useRef(null),D=Ji(R),[M,B]=Jv(R,b);eb(R,D);const{compactSize:T,compactItemClassnames:A}=Hs(R,S),L=zs(e=>i??T??e),j=s.default.useContext(ns),H=l??j,F={...e,size:L,disabled:H},[V,W]=Li([I,x],[P,v],{props:F}),{status:K,hasFeedback:q,feedbackIcon:U}=t.useContext(Mu),X=dm(K,a),G=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!q,Y=t.useRef(G);if("production"!==process.env.NODE_ENV){const e=Ve("Input");t.useEffect(()=>{G&&!Y.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===O.current?.input,"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Y.current=G},[G])}const Z=function(e,n){const o=t.useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&"password"===e.current?.input.getAttribute("type")&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return t.useEffect(()=>(n&&r(),()=>o.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}(O,!0),Q=(q||u)&&s.default.createElement(s.default.Fragment,null,u,q&&U),J=jy(p??E),[ee,te]=wm("input",w,r);return s.default.createElement(Ly,{ref:ge(n,O),prefixCls:R,autoComplete:k,...C,disabled:H,onBlur:e=>{Z(),c?.(e)},onFocus:e=>{Z(),d?.(e)},style:{...W.root,..._,...g},styles:W,suffix:Q,allowClear:J,className:z(h,b,B,D,A,N,V.root),onChange:e=>{Z(),y?.(e)},addonBefore:f&&s.default.createElement(zu,{form:!0,space:!0},f),addonAfter:m&&s.default.createElement(zu,{form:!0,space:!0},m),classNames:{...V,input:z({[`${R}-sm`]:"small"===L,[`${R}-lg`]:"large"===L,[`${R}-rtl`]:"rtl"===S},V.input,M),variant:z({[`${R}-${ee}`]:te},cm(R,X)),affixWrapper:z({[`${R}-affix-wrapper-sm`]:"small"===L,[`${R}-affix-wrapper-lg`]:"large"===L,[`${R}-affix-wrapper-rtl`]:"rtl"===S},M),wrapper:z({[`${R}-group-rtl`]:"rtl"===S},M),groupWrapper:z({[`${R}-group-wrapper-sm`]:"small"===L,[`${R}-group-wrapper-lg`]:"large"===L,[`${R}-group-wrapper-rtl`]:"rtl"===S,[`${R}-group-wrapper-${ee}`]:te},cm(`${R}-group-wrapper`,X,q),M)}})});"production"!==process.env.NODE_ENV&&(Hy.displayName="Input");var Fy=Hy;function Vy(e){return["small","middle","large"].includes(e)}function Wy(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const Ky=s.default.createContext({latestIndex:0}),qy=Ky.Provider;var Uy=e=>{const{className:t,prefix:n,index:o,children:r,separator:a,style:i,classNames:s,styles:c}=e,{latestIndex:d}=l.useContext(Ky);return Ri(r)?l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:i},r),o<d&&a&&l.createElement("span",{className:z(`${n}-item-separator`,s.separator),style:c.separator},a)):null};const Xy=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Gy=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var Yy=ra("Space",e=>{const t=Xo(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Xy(t),Gy(t)]},()=>({}),{resetStyle:!1});const Zy=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,size:r,className:a,style:i,classNames:s,styles:c}=vt("space"),{size:d=r??"small",align:u,className:p,rootClassName:m,children:f,direction:h,orientation:g,prefixCls:v,split:b,separator:y,style:x,vertical:w,wrap:C=!1,classNames:$,styles:S,...E}=e,[k,N]=Array.isArray(d)?d:[d,d],_=Vy(N),I=Vy(k),P=Wy(N),R=Wy(k),O=Te(f,{keepEmpty:!0}),[D,M]=Hi(g,w,h),B=void 0!==u||M?u:"center",T=y??b,A=n("space",v),[L,j]=Yy(A),H={...e,size:d,orientation:D,align:B},[F,V]=Li([s,$],[c,S],{props:H}),W=z(A,a,L,`${A}-${D}`,{[`${A}-rtl`]:"rtl"===o,[`${A}-align-${B}`]:B,[`${A}-gap-row-${N}`]:_,[`${A}-gap-col-${k}`]:I},p,m,j,F.root),K=z(`${A}-item`,F.item),q=O.map((e,t)=>{const n=e?.key||`${K}-${t}`;return l.createElement(Uy,{prefix:A,classNames:F,styles:V,className:K,key:n,index:t,separator:T,style:V.item},e)});if("production"!==process.env.NODE_ENV){const t=Ve("Space");[["direction","orientation"],["split","separator"]].forEach(([n,o])=>{t.deprecated(!(n in e),n,o)})}const U=l.useMemo(()=>({latestIndex:O.reduce((e,t,n)=>Ri(t)?n:e,0)}),[O]);if(0===O.length)return null;const X={};return C&&(X.flexWrap="wrap"),!I&&R&&(X.columnGap=k),!_&&P&&(X.rowGap=N),l.createElement("div",{ref:t,className:W,style:{...X,...V.root,...i,...x},...E},l.createElement(qy,{value:U},q))}),Qy=Zy;Qy.Compact=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ht),{size:o,direction:r,orientation:a,block:i,prefixCls:s,className:c,rootClassName:d,children:u,vertical:p,...m}=e;if("production"!==process.env.NODE_ENV){Ve("Space.Compact").deprecated(!r,"direction","orientation")}const[f,h]=Hi(a,p,r),g=zs(e=>o??e),v=t("space-compact",s),[b]=Ls(v),y=z(v,b,{[`${v}-rtl`]:"rtl"===n,[`${v}-block`]:i,[`${v}-vertical`]:h},c,d),x=l.useContext(js),w=Te(u),C=l.useMemo(()=>w.map((e,t)=>{const n=e?.key||`${v}-item-${t}`;return l.createElement(Vs,{key:n,compactSize:g,compactDirection:f,isFirstItem:0===t&&(!x||x?.isFirstItem),isLastItem:t===w.length-1&&(!x||x?.isLastItem)},e)}),[w,x,f,g,v]);return 0===w.length?null:l.createElement("div",{className:y,...m},C)},Qy.Addon=Dy,"production"!==process.env.NODE_ENV&&(Qy.displayName="Space");var Jy=Qy;const ex=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:o}=l.useContext(ht),{prefixCls:r,type:a="default",danger:i,disabled:s,loading:c,onClick:d,htmlType:u,children:p,className:m,menu:f,arrow:h,autoFocus:g,trigger:v,align:b,open:y,onOpenChange:x,placement:w,getPopupContainer:C,href:$,icon:S=l.createElement(yg,null),title:E,buttonsRender:k=e=>e,mouseEnterDelay:N,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyOnHidden:R,destroyPopupOnHide:O,dropdownRender:D,popupRender:M,...B}=e,T=n("dropdown",r),A=`${T}-button`,L={menu:f,arrow:h,autoFocus:g,align:b,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:N,mouseLeaveDelay:_,classNames:{root:I},styles:{root:P},destroyOnHidden:R,popupRender:M||D},{compactSize:j,compactItemClassnames:H}=Hs(T,o),F=z(A,H,m);if("destroyPopupOnHide"in e&&(L.destroyPopupOnHide=O),"open"in e&&(L.open=y),L.placement="placement"in e?w:"rtl"===o?"bottomLeft":"bottomRight","production"!==process.env.NODE_ENV){Ve("Dropdown.Button").deprecated(!1,"Dropdown.Button","Space.Compact + Dropdown + Button")}const V=l.createElement(Rd,{type:a,danger:i,disabled:s,loading:c,onClick:d,htmlType:u,href:$,title:E},p),W=l.createElement(Rd,{type:a,danger:i,icon:S}),[K,q]=k([V,W]);return l.createElement(Jy.Compact,{className:F,size:j,block:!0,...B},K,l.createElement(Ug,{...L},q))};ex.__ANT_BUTTON=!0;var tx=ex;const nx=Ug;nx.Button=tx;var ox=nx;const rx={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},ax=[10,20,50,100],ix=e=>{const{pageSizeOptions:t=ax,locale:n,changeSize:o,pageSize:r,goButton:a,quickGo:i,rootPrefixCls:l,disabled:c,buildOptionText:d,showSizeChanger:u,sizeChangerRender:p}=e,[m,f]=s.default.useState(""),h=s.default.useMemo(()=>!m||Number.isNaN(m)?void 0:Number(m),[m]),g="function"==typeof d?d:e=>`${e} ${n.items_per_page}`,v=e=>{const t=e.target.value;/^\d*$/.test(t)&&f(t)},b=e=>{a||""===m||(f(""),e.relatedTarget&&(e.relatedTarget.className.includes(`${l}-item-link`)||e.relatedTarget.className.includes(`${l}-item`))||i?.(h))},y=e=>{""!==m&&(e.keyCode!==hs.ENTER&&"click"!==e.type||(f(""),i?.(h)))},x=`${l}-options`;if(!u&&!i)return null;let w=null,C=null,$=null;return u&&p&&(w=p({disabled:c,size:r,onSizeChange:e=>{o?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:(t.some(e=>e.toString()===r.toString())?t:t.concat([r]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t)))).map(e=>({label:g(e),value:e}))})),i&&(a&&($="boolean"==typeof a?s.default.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):s.default.createElement("span",{onClick:y,onKeyUp:y},a)),C=s.default.createElement("div",{className:`${x}-quick-jumper`},n.jump_to,s.default.createElement("input",{disabled:c,type:"text",value:m,onChange:v,onKeyUp:y,onBlur:b,"aria-label":n.page}),n.page,$)),s.default.createElement("li",{className:x},w,C)};"production"!==process.env.NODE_ENV&&(ix.displayName="Options");const lx=e=>{const{rootPrefixCls:t,page:n,active:o,className:r,style:a,showTitle:i,onClick:l,onKeyPress:c,itemRender:d}=e,u=`${t}-item`,p=z(u,`${u}-${n}`,{[`${u}-active`]:o,[`${u}-disabled`]:!n},r),m=d(n,"page",s.default.createElement("a",{rel:"nofollow"},n));return m?s.default.createElement("li",{title:i?String(n):null,className:p,style:a,onClick:()=>{l(n)},onKeyDown:e=>{c(e,l,n)},tabIndex:0},m):null};function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sx.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(lx.displayName="Pager");const cx=(e,t,n)=>n;function dx(){}function ux(e){const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function px(e,t,n){const o=void 0===e?t:e;return Math.floor((n-1)/o)+1}const mx=e=>{const{prefixCls:n="rc-pagination",selectPrefixCls:o="rc-select",className:r,classNames:a,styles:i,current:l,defaultCurrent:c=1,total:d=0,pageSize:u,defaultPageSize:p=10,onChange:m=dx,hideOnSinglePage:f,align:h,showPrevNextJumpers:g=!0,showQuickJumper:v,showLessItems:b,showTitle:y=!0,onShowSizeChange:x=dx,locale:w=rx,style:C,totalBoundaryShowSizeChanger:$=50,disabled:S,simple:E,showTotal:k,showSizeChanger:N=d>$,sizeChangerRender:_,pageSizeOptions:I,itemRender:P=cx,jumpPrevIcon:R,jumpNextIcon:O,prevIcon:D,nextIcon:M}=e,B=s.default.useRef(null),[T,A]=ne(p,u),[L,j]=ne(c,l),H=Math.max(1,Math.min(L,px(void 0,T,d))),[F,V]=s.default.useState(H);t.useEffect(()=>{V(H)},[H]);const W=m!==dx,K="current"in e;"production"!==process.env.NODE_ENV&&De(!K||W,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");const q=Math.max(1,H-(b?3:5)),U=Math.min(px(void 0,T,d),H+(b?3:5));function X(t,o){let r=t||s.default.createElement("button",{type:"button","aria-label":o,className:`${n}-item-link`});return"function"==typeof t&&(r=s.default.createElement(t,e)),r}function G(e){const t=e.target.value,n=px(void 0,T,d);let o;return o=""===t?t:Number.isNaN(Number(t))?F:t>=n?n:Number(t),o}const Y=d>T&&v;function Z(e){const t=G(e);switch(t!==F&&V(t),e.keyCode){case hs.ENTER:Q(t);break;case hs.UP:Q(t-1);break;case hs.DOWN:Q(t+1)}}function Q(e){if(function(e){return ux(e)&&e!==H&&ux(d)&&d>0}(e)&&!S){const t=px(void 0,T,d);let n=e;return e>t?n=t:e<1&&(n=1),n!==F&&V(n),j(n),m?.(n,T),n}return H}const J=H>1,ee=H<px(void 0,T,d);function te(){J&&Q(H-1)}function oe(){ee&&Q(H+1)}function re(){Q(q)}function ae(){Q(U)}function ie(e,t,...n){"Enter"!==e.key&&e.charCode!==hs.ENTER&&e.keyCode!==hs.ENTER||t(...n)}function le(e){"click"!==e.type&&e.keyCode!==hs.ENTER||Q(F)}let se=null;const ce=mi(e,{aria:!0,data:!0}),de=k&&s.default.createElement("li",{className:`${n}-total-text`},k(d,[0===d?0:(H-1)*T+1,H*T>d?d:H*T]));let ue=null;const pe=px(void 0,T,d);if(f&&d<=T)return null;const me=[],fe={rootPrefixCls:n,onClick:Q,onKeyPress:ie,showTitle:y,itemRender:P,page:-1,className:a?.item,style:i?.item},he=H-1>0?H-1:0,ge=H+1<pe?H+1:pe,ve=v&&v.goButton,be="object"==typeof E?E.readOnly:!E;let ye=ve,xe=null;E&&(ve&&(ye="boolean"==typeof ve?s.default.createElement("button",{type:"button",onClick:le,onKeyUp:le},w.jump_to_confirm):s.default.createElement("span",{onClick:le,onKeyUp:le},ve),ye=s.default.createElement("li",{title:y?`${w.jump_to}${H}/${pe}`:null,className:`${n}-simple-pager`},ye)),xe=s.default.createElement("li",{title:y?`${H}/${pe}`:null,className:z(`${n}-simple-pager`,a?.item),style:i?.item},be?F:s.default.createElement("input",{type:"text","aria-label":w.jump_to,value:F,disabled:S,onKeyDown:function(e){e.keyCode!==hs.UP&&e.keyCode!==hs.DOWN||e.preventDefault()},onKeyUp:Z,onChange:Z,onBlur:function(e){Q(G(e))},size:3}),s.default.createElement("span",{className:`${n}-slash`},"/"),pe));const we=b?1:2;if(pe<=3+2*we){pe||me.push(s.default.createElement(lx,sx({},fe,{key:"noPager",page:1,className:`${n}-item-disabled`})));for(let e=1;e<=pe;e+=1)me.push(s.default.createElement(lx,sx({},fe,{key:e,page:e,active:H===e})))}else{const e=b?w.prev_3:w.prev_5,t=b?w.next_3:w.next_5,o=P(q,"jump-prev",X(R,"prev page")),r=P(U,"jump-next",X(O,"next page"));g&&(se=o?s.default.createElement("li",{title:y?e:null,key:"prev",onClick:re,tabIndex:0,onKeyDown:function(e){ie(e,re)},className:z(`${n}-jump-prev`,{[`${n}-jump-prev-custom-icon`]:!!R})},o):null,ue=r?s.default.createElement("li",{title:y?t:null,key:"next",onClick:ae,tabIndex:0,onKeyDown:function(e){ie(e,ae)},className:z(`${n}-jump-next`,{[`${n}-jump-next-custom-icon`]:!!O})},r):null);let a=Math.max(1,H-we),i=Math.min(H+we,pe);H-1<=we&&(i=1+2*we),pe-H<=we&&(a=pe-2*we);for(let e=a;e<=i;e+=1)me.push(s.default.createElement(lx,sx({},fe,{key:e,page:e,active:H===e})));if(H-1>=2*we&&3!==H&&(me[0]=s.default.cloneElement(me[0],{className:z(`${n}-item-after-jump-prev`,me[0].props.className)}),me.unshift(se)),pe-H>=2*we&&H!==pe-2){const e=me[me.length-1];me[me.length-1]=s.default.cloneElement(e,{className:z(`${n}-item-before-jump-next`,e.props.className)}),me.push(ue)}1!==a&&me.unshift(s.default.createElement(lx,sx({},fe,{key:1,page:1}))),i!==pe&&me.push(s.default.createElement(lx,sx({},fe,{key:pe,page:pe})))}let Ce=function(e){const t=P(e,"prev",X(D,"prev page"));return s.default.isValidElement(t)?s.default.cloneElement(t,{disabled:!J}):t}(he);if(Ce){const e=!J||!pe;Ce=s.default.createElement("li",{title:y?w.prev_page:null,onClick:te,tabIndex:e?null:0,onKeyDown:function(e){ie(e,te)},className:z(`${n}-prev`,a?.item,{[`${n}-disabled`]:e}),style:i?.item,"aria-disabled":e},Ce)}let $e=function(e){const t=P(e,"next",X(M,"next page"));return s.default.isValidElement(t)?s.default.cloneElement(t,{disabled:!ee}):t}(ge);if($e){let e,t;E?(e=!ee,t=J?0:null):(e=!ee||!pe,t=e?null:0),$e=s.default.createElement("li",{title:y?w.next_page:null,onClick:oe,tabIndex:t,onKeyDown:function(e){ie(e,oe)},className:z(`${n}-next`,a?.item,{[`${n}-disabled`]:e}),style:i?.item,"aria-disabled":e},$e)}const Se=z(n,r,{[`${n}-start`]:"start"===h,[`${n}-center`]:"center"===h,[`${n}-end`]:"end"===h,[`${n}-simple`]:E,[`${n}-disabled`]:S});return s.default.createElement("ul",sx({className:Se,style:C,ref:B},ce),de,Ce,E?xe:me,$e,s.default.createElement(ix,{locale:w,rootPrefixCls:n,disabled:S,selectPrefixCls:o,changeSize:function(e){const t=px(e,T,d),n=H>t&&0!==t?t:H;A(e),V(n),x?.(H,e),j(n),m?.(n,e)},pageSize:T,pageSizeOptions:I,quickGo:Y?Q:null,goButton:ye,showSizeChanger:N,sizeChangerRender:_}))};"production"!==process.env.NODE_ENV&&(mx.displayName="Pagination");const fx=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},hx=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Ut(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ut(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ut(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Ut(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Ut(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Ut(e.itemSizeSM),input:{...Kv(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},gx=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:Ut(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:Ut(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${Ut(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Ut(e.inputOutlineOffset)} 0 ${Ut(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:Ut(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:Ut(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},vx=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Ut(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ut(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Ut(e.controlHeight),verticalAlign:"top",input:{...qv(e),...Pv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Iv(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},bx=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Ut(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Ut(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ut(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},yx=e=>{const{componentCls:t}=e;return{[t]:{...Jr(e),display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Ut(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...bx(e),...vx(e),...gx(e),...hx(e),...fx(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},xx=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...ta(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...ea(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ea(e)}}}},wx=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Nv(e)}),Cx=e=>Xo(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},kv(e));var $x=ra("Pagination",e=>{const t=Cx(e);return[yx(t),xx(t)]},wx);var Sx=ia(["Pagination","bordered"],e=>(e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Ut(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}})(Cx(e)),wx);function Ex(e){return t.useMemo(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}const kx=e=>{const{align:t,prefixCls:n,selectPrefixCls:o,className:r,rootClassName:a,style:i,size:s,locale:c,responsive:d,showSizeChanger:u,selectComponentClass:p,pageSizeOptions:m,styles:f,classNames:h,...g}=e,{xs:v}=tf(d),[,b]=Zr(),{getPrefixCls:y,direction:x,showSizeChanger:w,className:C,style:$,classNames:S,styles:E}=vt("pagination"),k=y("pagination",n),[N,_]=$x(k),I=zs(s),P="small"===I||!(!v||I||!d),R={...e,size:I},[O,D]=Li([S,h],[E,f],{props:R}),[M]=ki("Pagination",fi),B={...M,...c},[T,A]=Ex(u),[L,j]=Ex(w),H=T??L,F=A??j,V=p||Qm,W=l.useMemo(()=>m?m.map(e=>Number(e)):void 0,[m]);if("production"!==process.env.NODE_ENV){const e=Ve("Pagination");"production"!==process.env.NODE_ENV&&e(!p,"usage","`selectComponentClass` is not official api which will be removed.")}const K=l.useMemo(()=>{const e=l.createElement("span",{className:`${k}-item-ellipsis`},"•••");return{prevIcon:l.createElement("button",{className:`${k}-item-link`,type:"button",tabIndex:-1},"rtl"===x?l.createElement(Ic,null):l.createElement(Mf,null)),nextIcon:l.createElement("button",{className:`${k}-item-link`,type:"button",tabIndex:-1},"rtl"===x?l.createElement(Mf,null):l.createElement(Ic,null)),jumpPrevIcon:l.createElement("a",{className:`${k}-item-link`},l.createElement("div",{className:`${k}-item-container`},"rtl"===x?l.createElement(Xb,{className:`${k}-item-link-icon`}):l.createElement(Vb,{className:`${k}-item-link-icon`}),e)),jumpNextIcon:l.createElement("a",{className:`${k}-item-link`},l.createElement("div",{className:`${k}-item-container`},"rtl"===x?l.createElement(Vb,{className:`${k}-item-link-icon`}):l.createElement(Xb,{className:`${k}-item-link-icon`}),e))}},[x,k]),q=y("select",o),U=z({[`${k}-${t}`]:!!t,[`${k}-mini`]:P,[`${k}-rtl`]:"rtl"===x,[`${k}-bordered`]:b.wireframe},C,r,a,O.root,N,_),X={...D.root,...$,...i};return l.createElement(l.Fragment,null,b.wireframe&&l.createElement(Sx,{prefixCls:k}),l.createElement(mx,{...K,...g,styles:D,classNames:O,style:X,prefixCls:k,selectPrefixCls:q,className:U,locale:B,pageSizeOptions:W,showSizeChanger:H,sizeChangerRender:e=>{const{disabled:t,size:n,onSizeChange:o,"aria-label":r,className:a,options:i}=e,{className:s,onChange:c}=F||{},d=i.find(e=>String(e.value)===String(n))?.value;return l.createElement(V,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":r,options:i,...F,value:d,onChange:(e,t)=>{o?.(e),c?.(e,t)},size:P?"small":"middle",className:z(a,s)})}}))};"production"!==process.env.NODE_ENV&&(kx.displayName="Pagination");var Nx=kx;const _x=80*Math.PI,Ix=e=>{const{dotClassName:t,style:n,hasCircleCls:o}=e;return l.createElement("circle",{className:z(`${t}-circle`,{[`${t}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:n})};var Px=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,o=`${n}-holder`,r=`${o}-hidden`,[a,i]=l.useState(!1);ee(()=>{0!==e&&i(!0)},[0!==e]);const s=Math.max(Math.min(e,100),0);if(!a)return null;const c={strokeDashoffset:""+_x/4,strokeDasharray:`${_x*s/100} ${_x*(100-s)/100}`};return l.createElement("span",{className:z(o,`${n}-progress`,s<=0&&r)},l.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},l.createElement(Ix,{dotClassName:n,hasCircleCls:!0}),l.createElement(Ix,{dotClassName:n,style:c})))};function Rx(e){const{prefixCls:t,percent:n=0,className:o,style:r}=e,a=`${t}-dot`,i=`${a}-holder`,s=`${i}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:z(i,o,n>0&&s),style:r},l.createElement("span",{className:z(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>l.createElement("i",{className:`${t}-dot-item`,key:e})))),l.createElement(Px,{prefixCls:t,percent:n}))}function Ox(e){const{prefixCls:t,indicator:n,percent:o,className:r,style:a}=e,i=`${t}-dot`;return n&&l.isValidElement(n)?Yi(n,e=>({className:z(e.className,i,r),style:{...e.style,...a},percent:o})):l.createElement(Rx,{prefixCls:t,percent:o,className:r,style:a})}const Dx=new wo("antSpinMove",{to:{opacity:1}}),Mx=new wo("antRotate",{to:{transform:"rotate(405deg)"}});var Bx=ra("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:{...Jr(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Dx,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Mx,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}})(Xo(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}});const Tx=[[30,.05],[70,.03],[96,.01]];let zx;const Ax=e=>{const{prefixCls:t,spinning:n=!0,delay:o=0,className:r,rootClassName:a,size:i="default",tip:s,wrapperClassName:c,style:d,children:u,fullscreen:p=!1,indicator:m,percent:f,classNames:h,styles:g,...v}=e,{getPrefixCls:b,direction:y,indicator:x,className:w,style:C,classNames:$,styles:S}=vt("spin"),E=b("spin",t),[k,N]=Bx(E),[_,I]=l.useState(()=>n&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(n,o)),P=function(e,t){const[n,o]=l.useState(0),r=l.useRef(null),a="auto"===t;return l.useEffect(()=>(a&&e&&(o(0),r.current=setInterval(()=>{o(e=>{const t=100-e;for(let n=0;n<Tx.length;n+=1){const[o,r]=Tx[n];if(e<=o)return e+t*r}return e})},200)),()=>{r.current&&(clearInterval(r.current),r.current=null)}),[a,e]),a?n:t}(_,f);l.useEffect(()=>{if(n){const e=tb(o,()=>{I(!0)});return e(),()=>{e?.cancel?.()}}I(!1)},[o,n]);const R=l.useMemo(()=>void 0!==u&&!p,[u,p]),O={...e,size:i,spinning:_,tip:s,fullscreen:p,children:u,percent:P},[D,M]=Li([$,h],[S,g],{props:O});if("production"!==process.env.NODE_ENV){const e=Ve("Spin");"production"!==process.env.NODE_ENV&&e(!s||R||p,"usage","`tip` only work in nest or fullscreen pattern.")}const B=z(E,w,{[`${E}-sm`]:"small"===i,[`${E}-lg`]:"large"===i,[`${E}-spinning`]:_,[`${E}-show-text`]:!!s,[`${E}-rtl`]:"rtl"===y},r,!p&&a,!p&&D.root,k,N),T=z(`${E}-container`,{[`${E}-blur`]:_}),A=m??x??zx,L={...C,...d},j=l.createElement("div",{...v,style:p?L:{...M.root,...L},className:B,"aria-live":"polite","aria-busy":_},l.createElement(Ox,{className:D.indicator,style:M.indicator,prefixCls:E,indicator:A,percent:P}),s&&(R||p)?l.createElement("div",{className:z(`${E}-text`,D.tip),style:M.tip},s):null);return R?l.createElement("div",{...v,className:z(`${E}-nested-loading`,c,D.wrapper,k,N),style:M.wrapper},_&&l.createElement("div",{key:"loading"},j),l.createElement("div",{className:T,key:"container"},u)):p?l.createElement("div",{className:z(`${E}-fullscreen`,{[`${E}-fullscreen-show`]:_},a,k,N,D.mask),style:M.mask},j):j};Ax.setDefaultIndicator=e=>{zx=e},"production"!==process.env.NODE_ENV&&(Ax.displayName="Spin");var Lx=Ax;const jx={},Hx="rc-table-internal-hook";function Fx(e){const t=l.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{const r=l.useRef(e);r.current=e;const[a]=l.useState(()=>({getValue:()=>r.current,listeners:new Set}));return ee(()=>{o.unstable_batchedUpdates(()=>{a.listeners.forEach(t=>{t(e)})})},[e]),l.createElement(t.Provider,{value:a},n)},defaultValue:e}}function Vx(e,t){const n=Z("function"==typeof t?t:e=>{if(void 0===t)return e;if(!Array.isArray(t))return e[t];const n={};return t.forEach(t=>{n[t]=e[t]}),n}),o=l.useContext(e?.Context),{listeners:r,getValue:a}=o||{},i=l.useRef();i.current=n(o?a():e?.defaultValue);const[,s]=l.useState({});return ee(()=>{if(o)return r.add(e),()=>{r.delete(e)};function e(e){const t=n(e);It(i.current,t,!0)||s({})}},[o]),i.current}function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wx.apply(this,arguments)}const{makeImmutable:Kx,responseImmutable:qx,useImmutableMark:Ux}=function(){const e=l.createContext(null);function t(){return l.useContext(e)}return{makeImmutable:function(n,o){const r=be(n),a=(a,i)=>{const s=r?{ref:i}:{},c=l.useRef(0),d=l.useRef(a);return null!==t()?l.createElement(n,Wx({},a,s)):(o&&!o(d.current,a)||(c.current+=1),d.current=a,l.createElement(e.Provider,{value:c.current},l.createElement(n,Wx({},a,s))))};return"production"!==process.env.NODE_ENV&&(a.displayName=`ImmutableRoot(${n.displayName||n.name})`),r?l.forwardRef(a):a},responseImmutable:function(e,n){const o=be(e),r=(n,r)=>{const a=o?{ref:r}:{};return t(),l.createElement(e,Wx({},n,a))};return"production"!==process.env.NODE_ENV&&(r.displayName=`ImmutableResponse(${e.displayName||e.name})`),l.memo(o?l.forwardRef(r):r,n)},useImmutableMark:t}}(),Xx=Fx();function Gx(e,t){const n=l.useRef(0);n.current+=1;const o=l.useRef(e),r=[];Object.keys(e||{}).map(t=>{e?.[t]!==o.current?.[t]&&r.push(t)}),o.current=e;const a=l.useRef([]);return r.length&&(a.current=r),l.useDebugValue(n.current),l.useDebugValue(a.current.join(", ")),n.current}var Yx="production"!==process.env.NODE_ENV?Gx:()=>{};const Zx=l.memo(()=>{const e=Gx();return l.createElement("h1",null,"Render Times: ",e)});"production"!==process.env.NODE_ENV&&(Zx.displayName="RenderBlock");const Qx=l.createContext({renderWithProps:!1});function Jx(e){const t=[],n={};return e.forEach(e=>{const{key:o,dataIndex:r}=e||{};let a=o||(i=r,null==i?[]:Array.isArray(i)?i:[i]).join("-")||"RC_TABLE_KEY";for(var i;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function ew(e){return null!=e}function tw(e,t,n,o,r,a){const i=l.useContext(Qx),s=ce(()=>{if(ew(o))return[o];const a=null==t||""===t?[]:Array.isArray(t)?t:[t],s=we(e,a);let c,d=s;if(r){const t=r(s,e,n);!(u=t)||"object"!=typeof u||Array.isArray(u)||l.isValidElement(u)?d=t:("production"!==process.env.NODE_ENV&&De(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),d=t.children,c=t.props,i.renderWithProps=!0)}var u;return[d,c]},[Ux(),e,o,t,r,n],(e,t)=>{if(a){const[,n]=e,[,o]=t;return a(o,n)}return!!i.renderWithProps||!It(e,t,!0)});return s}function nw(){return nw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},nw.apply(this,arguments)}const ow=e=>{"production"!==process.env.NODE_ENV&&Yx(e);const{component:t,children:n,ellipsis:o,scope:r,prefixCls:a,className:i,style:s,align:c,record:d,render:u,dataIndex:p,renderIndex:m,shouldCellUpdate:f,index:h,rowType:g,colSpan:v,rowSpan:b,fixStart:y,fixEnd:x,fixedStartShadow:w,fixedEndShadow:C,offsetFixedStartShadow:$,offsetFixedEndShadow:S,zIndex:E,zIndexReverse:k,appendNode:N,additionalProps:_={},isSticky:I}=e,P=`${a}-cell`,{allColumnsFixedLeft:R,rowHoverable:O}=Vx(Xx,["allColumnsFixedLeft","rowHoverable"]),[D,M]=tw(d,p,m,n,u,f),B={},T="number"==typeof y&&!R,A="number"==typeof x&&!R,[L,j]=Vx(Xx,({scrollInfo:e})=>{if(!T&&!A)return[!1,!1];const[t,n]=e;return[(T&&w&&t)-$>=1,(A&&C&&n-t)-S>1]});T&&(B.insetInlineStart=y,B["--z-offset"]=E,B["--z-offset-reverse"]=k),A&&(B.insetInlineEnd=x,B["--z-offset"]=E,B["--z-offset-reverse"]=k);const H=M?.colSpan??_.colSpan??v??1,F=M?.rowSpan??_.rowSpan??b??1,[V,W]=function(e,t){return Vx(Xx,n=>{var o,r,a,i;return[(o=e,r=t||1,a=n.hoverStartRow,i=n.hoverEndRow,o<=i&&o+r-1>=a),n.onHover]})}(h,F),K=Z(e=>{d&&W(h,h+F-1),_?.onMouseEnter?.(e)}),q=Z(e=>{d&&W(-1,-1),_?.onMouseLeave?.(e)});if(0===H||0===F)return null;const U=_.title??(({ellipsis:e,rowType:t,children:n})=>{let o;const r=!0===e?{showTitle:!0}:e;return r&&(r.showTitle||"header"===t)&&("string"==typeof n||"number"==typeof n?o=n.toString():l.isValidElement(n)&&"string"==typeof n.props?.children&&(o=n.props?.children)),o})({rowType:g,ellipsis:o,children:D}),X=z(P,i,{[`${P}-fix`]:T||A,[`${P}-fix-start`]:T,[`${P}-fix-end`]:A,[`${P}-fix-start-shadow`]:w,[`${P}-fix-start-shadow-show`]:w&&L,[`${P}-fix-end-shadow`]:C,[`${P}-fix-end-shadow-show`]:C&&j,[`${P}-ellipsis`]:o,[`${P}-with-append`]:N,[`${P}-fix-sticky`]:(T||A)&&I,[`${P}-row-hover`]:!M&&V},_.className,M?.className),G={};c&&(G.textAlign=c);const Y={...M?.style,...B,...G,..._.style,...s};let Q=D;return"object"!=typeof Q||Array.isArray(Q)||l.isValidElement(Q)||(Q=null),o&&(w||C)&&(Q=l.createElement("span",{className:`${P}-content`},Q)),l.createElement(t,nw({},M,_,{className:X,style:Y,title:U,scope:r,onMouseEnter:O?K:void 0,onMouseLeave:O?q:void 0,colSpan:1!==H?H:null,rowSpan:1!==F?F:null}),N,Q)};var rw=l.memo(ow);function aw(e){return"start"===e.fixed}function iw(e){return"end"===e.fixed}function lw(e,t,n,o){const r=n[e]||{},a=n[t]||{};let i=null,l=null;aw(r)&&aw(a)?i=o.start[e]:iw(a)&&iw(r)&&(l=o.end[t]);let s=!1,c=!1,d=0,u=0;null!==i&&(s=!n[t+1]||!aw(n[t+1]),d=2*n.length-e,u=n.length+e),null!==l&&(c=!n[e-1]||!iw(n[e-1]),d=t,u=n.length-t);let p=0,m=0;if(s)for(let t=0;t<e;t+=1)aw(n[t])||(p+=o.widths[t]||0);if(c)for(let e=n.length-1;e>t;e-=1)iw(n[e])||(m+=o.widths[e]||0);return{fixStart:i,fixEnd:l,fixedStartShadow:s,fixedEndShadow:c,offsetFixedStartShadow:p,offsetFixedEndShadow:m,isSticky:o.isSticky,zIndex:d,zIndexReverse:u}}const sw=l.createContext({});function cw(){return cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cw.apply(this,arguments)}const dw=e=>{const{children:t}=e;return t};dw.Row=e=>{const{children:t,...n}=e;return l.createElement("tr",n,t)},dw.Cell=e=>{const{className:t,index:n,children:o,colSpan:r=1,rowSpan:a,align:i}=e,{prefixCls:s}=Vx(Xx,["prefixCls"]),{scrollColumnIndex:c,stickyOffsets:d,flattenColumns:u}=l.useContext(sw),p=n+r-1+1===c?r+1:r,m=l.useMemo(()=>lw(n,n+p-1,u,d),[n,p,u,d]);return l.createElement(rw,cw({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:p,rowSpan:a,render:()=>o},m))};var uw=qx(e=>{"production"!==process.env.NODE_ENV&&Yx(e);const{children:t,stickyOffsets:n,flattenColumns:o}=e,r=Vx(Xx,"prefixCls"),a=o.length-1,i=o[a],s=l.useMemo(()=>({stickyOffsets:n,flattenColumns:o,scrollColumnIndex:i?.scrollbar?a:null}),[i,o,a,n]);return l.createElement(sw.Provider,{value:s},l.createElement("tfoot",{className:`${r}-summary`},t))});const pw=dw;function mw(e,t,n,o,r,a,i){const l=a(t,i);e.push({record:t,indent:n,index:i,rowKey:l});const s=r?.has(l);if(t&&Array.isArray(t[o])&&s)for(let i=0;i<t[o].length;i+=1)mw(e,t[o][i],n+1,o,r,a,i)}function fw(e,t,n,o){return l.useMemo(()=>{if(n?.size){const r=[];for(let a=0;a<e?.length;a+=1){mw(r,e[a],0,t,n,o,a)}return r}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:o(e,t)}))},[e,t,n,o])}function hw(e,t,n,o){const r=Vx(Xx,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:a,expandableType:i,expandedKeys:l,childrenColumnName:s,onTriggerExpand:c,rowExpandable:d,onRow:u,expandRowByClick:p,rowClassName:m}=r,f="nest"===i,h="row"===i&&(!d||d(e)),g=h||f,v=l&&l.has(t),b=s&&e&&e[s],y=Z(c),x=u?.(e,n),w=x?.onClick;let C;"string"==typeof m?C=m:"function"==typeof m&&(C=m(e,n,o));const $=Jx(a);return{...r,columnsKey:$,nestExpandable:f,expanded:v,hasNestChildren:b,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...x,className:z(C,x?.className),onClick:(t,...n)=>{p&&g&&c(e,t),w?.(t,...n)}}}}const gw=e=>{"production"!==process.env.NODE_ENV&&Yx(e);const{prefixCls:t,children:n,component:o,cellComponent:r,className:a,expanded:i,colSpan:s,isEmpty:c,stickyOffset:d=0}=e,{scrollbarSize:u,fixHeader:p,fixColumn:m,componentWidth:f,horizonScroll:h}=Vx(Xx,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let g=n;return(c?h&&f:m)&&(g=l.createElement("div",{style:{width:f-d-(p&&!c?u:0),position:"sticky",left:d,overflow:"hidden"},className:`${t}-expanded-row-fixed`},g)),l.createElement(o,{className:a,style:{display:i?null:"none"}},l.createElement(rw,{component:r,prefixCls:t,colSpan:s},g))};function vw({prefixCls:e,record:t,onExpand:n,expanded:o,expandable:r}){const a=`${e}-row-expand-icon`;if(!r)return l.createElement("span",{className:z(a,`${e}-row-spaced`)});return l.createElement("span",{className:z(a,{[`${e}-row-expanded`]:o,[`${e}-row-collapsed`]:!o}),onClick:e=>{n(t,e),e.stopPropagation()}})}function bw(e,t,n,o){return"string"==typeof e?e:"function"==typeof e?e(t,n,o):""}function yw(){return yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},yw.apply(this,arguments)}function xw(e,t,n,o,r,a=[],i=0){const{record:s,prefixCls:c,columnsKey:d,fixedInfoList:u,expandIconColumnIndex:p,nestExpandable:m,indentSize:f,expandIcon:h,expanded:g,hasNestChildren:v,onTriggerExpand:b,expandable:y,expandedKeys:x}=e,w=d[n],C=u[n];let $;n===(p||0)&&m&&($=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:f*o+"px"},className:`${c}-row-indent indent-level-${o}`}),h({prefixCls:c,expanded:g,expandable:v,record:s,onExpand:b})));const S=t.onCell?.(s,r)||{};if(i){const{rowSpan:e=1}=S;if(y&&e&&n<i){let t=e;for(let n=r;n<r+e;n+=1){const e=a[n];x.has(e)&&(t+=1)}S.rowSpan=t}}return{key:w,fixedInfo:C,appendCellNode:$,additionalCellProps:S}}const ww=e=>{"production"!==process.env.NODE_ENV&&Yx(e);const{className:t,style:n,classNames:o,styles:r,record:a,index:i,renderIndex:s,rowKey:c,rowKeys:d,indent:u=0,rowComponent:p,cellComponent:m,scopeCellComponent:f,expandedRowInfo:h}=e,g=hw(a,c,i,u),{prefixCls:v,flattenColumns:b,expandedRowClassName:y,expandedRowRender:x,rowProps:w,expanded:C,rowSupportExpand:$}=g,S=l.useRef(!1);S.current||=C,"production"!==process.env.NODE_ENV&&Yx(e);const E=bw(y,a,i,u),k=l.createElement(p,yw({},w,{"data-row-key":c,className:z(t,`${v}-row`,`${v}-row-level-${u}`,w?.className,o.row,{[E]:u>=1}),style:{...n,...w?.style,...r.row}}),b.map((e,t)=>{const{render:n,dataIndex:c,className:p}=e,{key:b,fixedInfo:y,appendCellNode:x,additionalCellProps:w}=xw(g,e,t,u,i,d,h?.offset);return l.createElement(rw,yw({className:z(p,o.cell),style:r.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:m,prefixCls:v,key:b,record:a,index:i,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:x,additionalProps:w}))}));let N;if($&&(S.current||C)){const e=x(a,i,u+1,C);N=l.createElement(gw,{expanded:C,className:z(`${v}-expanded-row`,`${v}-expanded-row-level-${u+1}`,E),prefixCls:v,component:p,cellComponent:m,colSpan:h?h.colSpan:b.length,isEmpty:!1,stickyOffset:h?.sticky},e)}return l.createElement(l.Fragment,null,k,N)};"production"!==process.env.NODE_ENV&&(ww.displayName="BodyRow");var Cw=qx(ww);const $w=e=>{const{columnKey:t,onColumnResize:n,title:o}=e,r=l.useRef(null);return ee(()=>{r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(nt,{data:t},l.createElement("td",{ref:r,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},o||" ")))},Sw=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:o})=>{const r=l.useRef(null),{measureRowRender:a}=Vx(Xx,["measureRowRender"]),i=l.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:r},l.createElement(nt.Collection,{onBatchResize:e=>{Rl(r.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{const t=o.find(t=>t.key===e),r=t?.title,a=l.isValidElement(r)?l.cloneElement(r,{ref:null}):r;return l.createElement($w,{key:e,columnKey:e,onColumnResize:n,title:a})})));return"function"==typeof a?a(i):i},Ew=e=>{"production"!==process.env.NODE_ENV&&Yx(e);const{data:t,measureColumnWidth:n}=e,{prefixCls:o,getComponent:r,onColumnResize:a,flattenColumns:i,getRowKey:s,expandedKeys:c,childrenColumnName:d,emptyNode:u,classNames:p,styles:m,expandedRowOffset:f=0,colWidths:h}=Vx(Xx,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:g={}}=p||{},{body:v={}}=m||{},b=fw(t,d,c,s),y=l.useMemo(()=>b.map(e=>e.rowKey),[b]),x=l.useRef({renderWithProps:!1}),w=l.useMemo(()=>{const e=i.length-f;let t=0;for(let e=0;e<f;e+=1)t+=h[e]||0;return{offset:f,colSpan:e,sticky:t}},[i.length,f,h]),C=r(["body","wrapper"],"tbody"),$=r(["body","row"],"tr"),S=r(["body","cell"],"td"),E=r(["body","cell"],"th");let k;k=t.length?b.map((e,t)=>{const{record:n,indent:o,index:r,rowKey:a}=e;return l.createElement(Cw,{classNames:g,styles:v,key:a,rowKey:a,rowKeys:y,record:n,index:t,renderIndex:r,rowComponent:$,cellComponent:S,scopeCellComponent:E,indent:o,expandedRowInfo:w})}):l.createElement(gw,{expanded:!0,className:`${o}-placeholder`,prefixCls:o,component:$,cellComponent:S,colSpan:i.length,isEmpty:!0},u);const N=Jx(i);return l.createElement(Qx.Provider,{value:x.current},l.createElement(C,{style:v.wrapper,className:z(`${o}-tbody`,g.wrapper)},n&&l.createElement(Sw,{prefixCls:o,columnsKey:N,onColumnResize:a,columns:i}),k))};"production"!==process.env.NODE_ENV&&(Ew.displayName="Body");var kw=qx(Ew);const Nw="RC_TABLE_INTERNAL_COL_DEFINE";function _w(){return _w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_w.apply(this,arguments)}const Iw=e=>{const{colWidths:t,columns:n,columCount:o}=e,{tableLayout:r}=Vx(Xx,["tableLayout"]),a=[];let i=!1;for(let e=(o||n.length)-1;e>=0;e-=1){const o=t[e],s=n&&n[e];let c,d;if(s&&(c=s[Nw],"auto"===r&&(d=s.minWidth)),o||d||c||i){const{columnType:t,...n}=c||{};a.unshift(l.createElement("col",_w({key:e,style:{width:o,minWidth:d}},n))),i=!0}}return a.length>0?l.createElement("colgroup",null,a):null};const Pw=l.forwardRef((e,n)=>{"production"!==process.env.NODE_ENV&&Yx(e);const{className:o,style:r,noData:a,columns:i,flattenColumns:s,colWidths:c,colGroup:d,columCount:u,stickyOffsets:p,direction:m,fixHeader:f,stickyTopOffset:h,stickyBottomOffset:g,stickyClassName:v,scrollX:b,tableLayout:y="fixed",onScroll:x,maxContentScroll:w,children:C,...$}=e,{prefixCls:S,scrollbarSize:E,isSticky:k,getComponent:N}=Vx(Xx,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=N(["header","table"],"table"),I=k&&!f?0:E,P=l.useRef(null),R=l.useCallback(e=>{he(n,e),he(P,e)},[]);l.useEffect(()=>{function e(e){const{currentTarget:t,deltaX:n}=e;if(n){const{scrollLeft:o,scrollWidth:r,clientWidth:a}=t,i=r-a;let l=o+n;"rtl"===m?(l=Math.max(-i,l),l=Math.min(0,l)):(l=Math.min(i,l),l=Math.max(0,l)),x({currentTarget:t,scrollLeft:l}),e.preventDefault()}}const t=P.current;return t?.addEventListener("wheel",e,{passive:!1}),()=>{t?.removeEventListener("wheel",e)}},[]);const O=s[s.length-1],D={fixed:O?O.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${S}-cell-scrollbar`})},M=t.useMemo(()=>I?[...i,D]:i,[I,i]),B=t.useMemo(()=>I?[...s,D]:s,[I,s]),T=t.useMemo(()=>{const{start:e,end:t}=p;return{...p,start:e,end:[...t.map(e=>e+I),0],isSticky:k}},[I,p,k]),A=function(e,n){return t.useMemo(()=>{const t=[];for(let o=0;o<n;o+=1){const n=e[o];if(void 0===n)return null;t[o]=n}return t},[e.join("_"),n])}(c,u),L=t.useMemo(()=>{const e=!A||!A.length||A.every(e=>!e);return a||e},[a,A]);return l.createElement("div",{style:{overflow:"hidden",...k?{top:h,bottom:g}:{},...r},ref:R,className:z(o,{[v]:!!v})},l.createElement(_,{style:{tableLayout:y,minWidth:"100%",width:b}},L?d:l.createElement(Iw,{colWidths:[...A,I],columCount:u+1,columns:B}),C({...$,stickyOffsets:T,columns:M,flattenColumns:B})))});"production"!==process.env.NODE_ENV&&(Pw.displayName="FixedHolder");var Rw=l.memo(Pw);function Ow(){return Ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ow.apply(this,arguments)}const Dw=e=>{const{cells:t,stickyOffsets:n,flattenColumns:o,rowComponent:r,cellComponent:a,onHeaderRow:i,index:s,classNames:c,styles:d}=e,{prefixCls:u}=Vx(Xx,["prefixCls"]);let p;i&&(p=i(t.map(e=>e.column),s));const m=Jx(t.map(e=>e.column));return l.createElement(r,Ow({},p,{className:c.row,style:d.row}),t.map((e,t)=>{const{column:r,colStart:i,colEnd:s,colSpan:c}=e,d=lw(i,s,o,n),p=r?.onHeaderCell?.(r)||{};return l.createElement(rw,Ow({},e,{scope:r.title?c>1?"colgroup":"col":null,ellipsis:r.ellipsis,align:r.align,component:a,prefixCls:u,key:m[t]},d,{additionalProps:p,rowType:"header"}))}))};"production"!==process.env.NODE_ENV&&(Dw.displayName="HeaderRow");var Mw=qx(e=>{"production"!==process.env.NODE_ENV&&Yx(e);const{stickyOffsets:t,columns:n,flattenColumns:o,onHeaderRow:r}=e,{prefixCls:a,getComponent:i,classNames:s,styles:c}=Vx(Xx,["prefixCls","getComponent","classNames","styles"]),{header:d={}}=s||{},{header:u={}}=c||{},p=l.useMemo(()=>function(e,t,n){const o=[];!function e(r,a,i=0){o[i]=o[i]||[];let l=a;const s=r.filter(Boolean).map(r=>{const a={key:r.key,className:z(r.className,t.cell)||"",style:n.cell,children:r.title,column:r,colStart:l};let s=1;const c=r.children;return c&&c.length>0&&(s=e(c,l,i+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),"colSpan"in r&&({colSpan:s}=r),"rowSpan"in r&&(a.rowSpan=r.rowSpan),a.colSpan=s,a.colEnd=a.colStart+s-1,o[i].push(a),l+=s,s});return s}(e,0);const r=o.length;for(let e=0;e<r;e+=1)o[e].forEach(t=>{"rowSpan"in t||t.hasSubColumns||(t.rowSpan=r-e)});return o}(n,d,u),[n,d,u]),m=i(["header","wrapper"],"thead"),f=i(["header","row"],"tr"),h=i(["header","cell"],"th");return l.createElement(m,{className:z(`${a}-thead`,d.wrapper),style:u.wrapper},p.map((e,n)=>l.createElement(Dw,{classNames:d,styles:u,key:n,flattenColumns:o,cells:e,stickyOffsets:t,rowComponent:f,cellComponent:h,onHeaderRow:r,index:n})))});function Bw(e,t=""){return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Tw(e){return Te(e).filter(e=>l.isValidElement(e)).map(e=>{const{key:t,props:n}=e,{children:o,...r}=n,a={key:t,...r};return o&&(a.children=Tw(o)),a})}function zw(e){return e.filter(e=>e&&"object"==typeof e&&!e.hidden).map(e=>{const t=e.children;return t&&t.length>0?{...e,children:zw(t)}:e})}function Aw(e,t="key"){return e.filter(e=>e&&"object"==typeof e).reduce((e,n,o)=>{const{fixed:r}=n,a=!0===r||"left"===r?"start":"right"===r?"end":r,i=`${t}-${o}`,l=n.children;return l&&l.length>0?[...e,...Aw(l,i).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:i,...n,fixed:a}]},[])}function Lw({prefixCls:e,columns:t,children:n,expandable:o,expandedKeys:r,columnTitle:a,getRowKey:i,onTriggerExpand:s,expandIcon:c,rowExpandable:d,expandIconColumnIndex:u,expandedRowOffset:p=0,direction:m,expandRowByClick:f,columnWidth:h,fixed:g,scrollWidth:v,clientWidth:b},y){const x=l.useMemo(()=>zw((t||Tw(n)||[]).slice()),[t,n]),w=l.useMemo(()=>{if(o){let t=x.slice();if("production"!==process.env.NODE_ENV&&u>=0&&De(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!t.includes(jx)){const e=u||0,n=0!==e||"right"!==g&&"end"!==g?e:x.length;n>=0&&t.splice(n,0,jx)}"production"!==process.env.NODE_ENV&&t.filter(e=>e===jx).length>1&&De(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");const n=t.indexOf(jx);t=t.filter((e,t)=>e!==jx||t===n);const o=x[n];let m;m=g||(o?o.fixed:null);const v={[Nw]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:a,fixed:m,className:`${e}-row-expand-icon-cell`,width:h,render:(t,n,o)=>{const a=i(n,o),u=r.has(a),p=!d||d(n),m=c({prefixCls:e,expanded:u,expandable:p,record:n,onExpand:s});return f?l.createElement("span",{onClick:e=>e.stopPropagation()},m):m}};return t.map((e,t)=>{const n=e===jx?v:e;return t<p?{...n,fixed:n.fixed||"start"}:n})}return"production"!==process.env.NODE_ENV&&x.includes(jx)&&De(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),x.filter(e=>e!==jx)},[o,x,i,r,c,m,p]),C=l.useMemo(()=>{let e=w;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,w,m]),$=l.useMemo(()=>Aw(C),[C,m,v]),[S,E]=function(e,t,n){return l.useMemo(()=>{if(t&&t>0){let o=0,r=0;e.forEach(e=>{const n=Bw(t,e.width);n?o+=n:r+=1});const a=Math.max(t,n);let i=Math.max(a-o,r),l=r;const s=i/r;let c=0;const d=e.map(e=>{const n={...e},o=Bw(t,n.width);if(o)n.width=o;else{const e=Math.floor(s);n.width=1===l?i:e,i-=e,l-=1}return c+=n.width,n});if(c<a){const e=a/c;i=a,d.forEach((t,n)=>{const o=Math.floor(t.width*e);t.width=n===d.length-1?i:o,i-=o})}return[d,Math.max(c,a)]}return[e,t]},[e,t,n])}($,v,b);return[C,S,E]}function jw(e,t,n){const o=function(e){const{expandable:t,...n}=e;let o;return"expandable"in e?o={...n,...t}:("production"!==process.env.NODE_ENV&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some(t=>t in e)&&De(!1,"expanded related props have been moved into `expandable`."),o=n),!1===o.showExpandColumn&&(o.expandIconColumnIndex=-1),o}(e),{expandIcon:r,expandedRowKeys:a,defaultExpandedRowKeys:i,defaultExpandAllRows:s,expandedRowRender:c,onExpand:d,onExpandedRowsChange:u,childrenColumnName:p}=o,m=r||vw,f=p||"children",h=l.useMemo(()=>c?"row":!!(e.expandable&&e.internalHooks===Hx&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&"object"==typeof e&&e[f]))&&"nest",[!!c,t]),[g,v]=l.useState(()=>i||(s?function(e,t,n){const o=[];return function e(r){(r||[]).forEach((r,a)=>{o.push(t(r,a)),e(r[n])})}(e),o}(t,n,f):[])),b=l.useMemo(()=>new Set(a||g||[]),[a,g]),y=l.useCallback(e=>{const o=n(e,t.indexOf(e));let r;const a=b.has(o);a?(b.delete(o),r=[...b]):r=[...b,o],v(r),d&&d(!a,e),u&&u(r)},[n,b,t,d,u]);return"production"!==process.env.NODE_ENV&&c&&t.some(e=>Array.isArray(e?.[f]))&&De(!1,"`expandedRowRender` should not use with nested Table"),[o,h,b,m,f,y]}const Hw=Q()?window:null;const Fw=e=>{const{children:t,className:n,style:o}=e;return l.createElement("div",{className:n,style:o},t)};function Vw(e){const t=qe(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}const Ww="mouseup",Kw="mousemove",qw="scroll",Uw="resize",Xw=(e,n)=>{const{scrollBodyRef:o,onScroll:r,offsetScroll:a,container:i,direction:s}=e,c=Vx(Xx,"prefixCls"),d=o.current?.scrollWidth||0,u=o.current?.clientWidth||0,p=d&&u*(u/d),m=l.useRef(null),[f,h]=function(e){const n=t.useRef(e),[,o]=t.useState({}),r=t.useRef(null),a=t.useRef([]);return t.useEffect(()=>()=>{r.current=null},[]),[n.current,function(e){a.current.push(e);const t=Promise.resolve();r.current=t,t.then(()=>{if(r.current===t){const e=a.current,t=n.current;a.current=[],e.forEach(e=>{n.current=e(n.current)}),r.current=null,t!==n.current&&o({})}})}]}({scrollLeft:0,isHiddenScrollBar:!0}),g=l.useRef({delta:0,x:0}),[v,b]=l.useState(!1),y=l.useRef(null);l.useEffect(()=>()=>{ut.cancel(y.current)},[]);const x=()=>{b(!1)},w=e=>{const{buttons:t}=e||window?.event;if(!v||0===t)return void(v&&b(!1));let n=g.current.x+e.pageX-g.current.x-g.current.delta;const o="rtl"===s;n=Math.max(o?p-u:0,Math.min(o?0:u-p,n));(!o||Math.abs(n)+Math.abs(p)<u)&&(r({scrollLeft:n/u*(d+2)}),g.current.x=e.pageX)},C=()=>{ut.cancel(y.current),y.current=ut(()=>{if(!o.current)return;const e=Vw(o.current).top,t=e+o.current.offsetHeight,n=i===window?document.documentElement.scrollTop+window.innerHeight:Vw(i).top+i.clientHeight;t-il()<=n||e>=n-a?h(e=>({...e,isHiddenScrollBar:!0})):h(e=>({...e,isHiddenScrollBar:!1}))})},$=e=>{h(t=>({...t,scrollLeft:e/d*u||0}))};return l.useImperativeHandle(n,()=>({setScrollLeft:$,checkScrollBarVisible:C})),l.useEffect(()=>(document.body.addEventListener(Ww,x,!1),document.body.addEventListener(Kw,w,!1),C(),()=>{document.body.removeEventListener(Ww,x),document.body.removeEventListener(Kw,w)}),[p,v]),l.useEffect(()=>{if(o.current){const e=[];let t=qe(o.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(qw,C,!1)}),window.addEventListener(Uw,C,!1),window.addEventListener(qw,C,!1),i.addEventListener(qw,C,!1),()=>{e.forEach(e=>{e.removeEventListener(qw,C)}),window.removeEventListener(Uw,C),window.removeEventListener(qw,C),i.removeEventListener(qw,C)}}},[i]),l.useEffect(()=>{f.isHiddenScrollBar||h(e=>{const t=o.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),d<=u||!p||f.isHiddenScrollBar?null:l.createElement("div",{style:{height:il(),width:u,bottom:a},className:`${c}-sticky-scroll`},l.createElement("div",{onMouseDown:e=>{e.persist(),g.current.delta=e.pageX-f.scrollLeft,g.current.x=0,b(!0),e.preventDefault()},ref:m,className:z(`${c}-sticky-scroll-bar`,{[`${c}-sticky-scroll-bar-active`]:v}),style:{width:`${p}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))};var Gw=l.forwardRef(Xw);function Yw(){return Yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yw.apply(this,arguments)}const Zw="rc-table",Qw=[],Jw={};function eC(){return"No Data"}const tC=(e,n)=>{const o={rowKey:"key",prefixCls:Zw,emptyText:eC,...e},{prefixCls:r,className:a,rowClassName:i,style:s,classNames:c,styles:d,data:u,rowKey:p,scroll:m,tableLayout:f,direction:h,title:g,footer:v,summary:b,caption:y,id:x,showHeader:w,components:C,emptyText:$,onRow:S,onHeaderRow:E,measureRowRender:k,onScroll:N,internalHooks:_,transformColumns:I,internalRefs:P,tailor:R,getContainerWidth:O,sticky:D,rowHoverable:M=!0}=o,B=u||Qw,T=!!B.length,A=_===Hx;"production"!==process.env.NODE_ENV&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach(e=>{De(void 0===o[e],`\`${e}\` is removed, please use \`onRow\` instead.`)}),De(!("getBodyWrapper"in o),"`getBodyWrapper` is deprecated, please use custom `components` instead."));const L=l.useCallback((e,t)=>we(C,e)||t,[C]),j=l.useMemo(()=>"function"==typeof p?p:e=>{const t=e&&e[p];return"production"!==process.env.NODE_ENV&&De(void 0!==t,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),t},[p]),H=L(["body"]),[F,V,W]=function(){const[e,t]=l.useState(-1),[n,o]=l.useState(-1);return[e,n,l.useCallback((e,n)=>{t(e),o(n)},[])]}(),[K,q,U,X,G,Y]=jw(o,B,j),Q=m?.x,[J,te]=l.useState(0),[ne,oe,re]=Lw({...o,...K,expandable:!!K.expandedRowRender,columnTitle:K.columnTitle,expandedKeys:U,getRowKey:j,onTriggerExpand:Y,expandIcon:X,expandIconColumnIndex:K.expandIconColumnIndex,direction:h,scrollWidth:A&&R&&"number"==typeof Q?Q:null,clientWidth:J},A?I:null),ae=re??Q,ie=l.useMemo(()=>({columns:ne,flattenColumns:oe}),[ne,oe]),le=l.useRef(null),se=l.useRef(null),de=l.useRef(null),ue=l.useRef(null);l.useImperativeHandle(n,()=>({nativeElement:le.current,scrollTo:e=>{if(de.current instanceof HTMLElement){const{index:n,top:o,key:r,offset:a}=e;if("number"!=typeof(t=o)||Number.isNaN(t)){const e=r??j(B[n]),t=de.current.querySelector(`[data-row-key="${e}"]`);if(t)if(a){const e=t.offsetTop;de.current.scrollTo({top:e+a})}else t.scrollIntoView()}else de.current?.scrollTo({top:o})}else de.current?.scrollTo&&de.current.scrollTo(e);var t}}));const pe=l.useRef(null),[me,fe]=l.useState(!1),[he,ge]=l.useState(!1),[ve,be]=l.useState(new Map),ye=Jx(oe).map(e=>ve.get(e)),xe=l.useMemo(()=>ye,[ye.join("_")]),Ce=function(e,n){const o=t.useMemo(()=>{const t=n.length,o=(t,o,r)=>{const a=[];let i=0;for(let l=t;l!==o;l+=r)a.push(i),n[l].fixed&&(i+=e[l]||0);return a};return{start:o(0,t,1),end:o(t-1,-1,-1).reverse(),widths:e}},[e,n]);return o}(xe,oe),$e=m&&ew(m.y),Se=m&&ew(ae)||Boolean(K.fixed),Ee=Se&&oe.some(({fixed:e})=>e),ke=l.useRef(null),{isSticky:Ne,offsetHeader:_e,offsetSummary:Ie,offsetScroll:Pe,stickyClassName:Re,container:Oe}=function(e,t){const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:a=()=>Hw}="object"==typeof e?e:{},i=a()||Hw,s=!!e;return l.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:i}),[s,r,n,o,t,i])}(D,r),Me=l.useMemo(()=>b?.(B),[b,B]),Be=($e||Ne)&&l.isValidElement(Me)&&Me.type===dw&&Me.props.fixed;let Te,ze,Ae;$e&&(ze={overflowY:T?"scroll":"auto",maxHeight:m.y}),Se&&(Te={overflowX:"auto"},$e||(ze={overflowY:"hidden"}),Ae={width:!0===ae?"auto":ae,minWidth:"100%"});const Le=l.useCallback((e,t)=>{be(n=>{if(n.get(e)!==t){const o=new Map(n);return o.set(e,t),o}return n})},[]),[je,He]=function(e){const n=t.useRef(e||null),o=t.useRef(null);function r(){clearTimeout(o.current)}return t.useEffect(()=>r,[]),[function(e){n.current=e,r(),o.current=setTimeout(()=>{n.current=null,o.current=void 0},100)},function(){return n.current}]}(null);function Fe(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}const[Ve,We]=l.useState([0,0]),Ke=Z(({currentTarget:e,scrollLeft:t})=>{const n="number"==typeof t?t:e.scrollLeft,o=e||Jw;He()&&He()!==o||(je(o),Fe(n,se.current),Fe(n,de.current),Fe(n,pe.current),Fe(n,ke.current?.setScrollLeft));const r=e||se.current;if(r){const e=A&&R&&"number"==typeof ae?ae:r.scrollWidth,t=r.clientWidth,o=Math.abs(n);if(We(n=>{const r=[o,e-t];return It(n,r)?n:r}),e===t)return fe(!1),void ge(!1);fe(o>0),ge(o<e-t-1)}}),Ue=Z(e=>{Ke(e),N?.(e)}),Xe=()=>{Se&&de.current?Ke({currentTarget:qe(de.current),scrollLeft:de.current?.scrollLeft}):(fe(!1),ge(!1))},Ge=e=>{ke.current?.checkScrollBarVisible();let t=e??le.current?.offsetWidth??0;A&&O&&le.current&&(t=O(le.current,t)||t),t!==J&&(Xe(),te(t))};ee(()=>{Se&&Ge()},[Se]);const Ye=l.useRef(!1);l.useEffect(()=>{Ye.current&&Xe()},[Se,u,ne.length]),l.useEffect(()=>{Ye.current=!0},[]);const[Ze,Qe]=l.useState(0);ee(()=>{R&&A||(de.current instanceof Element?Qe(ll(de.current).width):Qe(ll(ue.current).width))},[]),l.useEffect(()=>{A&&P&&(P.body.current=de.current)});const Je=l.useCallback(e=>l.createElement(l.Fragment,null,l.createElement(Mw,e),"top"===Be&&l.createElement(uw,e,Me)),[Be,Me]),et=l.useCallback(e=>l.createElement(uw,e,Me),[Me]),tt=L(["table"],"table"),ot=l.useMemo(()=>f||(Ee?"max-content"===ae?"auto":"fixed":$e||Ne||oe.some(({ellipsis:e})=>e)?"fixed":"auto"),[$e,Ee,oe,f,Ne]);let rt;const at={colWidths:xe,columCount:oe.length,stickyOffsets:Ce,onHeaderRow:E,fixHeader:$e,scroll:m},it=l.useMemo(()=>T?null:"function"==typeof $?$():$,[T,$]),lt=l.createElement(kw,{data:B,measureColumnWidth:$e||Se||Ne}),st=l.createElement(Iw,{colWidths:oe.map(({width:e})=>e),columns:oe}),ct=null!=y?l.createElement("caption",{className:`${r}-caption`},y):void 0,dt=mi(o,{data:!0}),ut=mi(o,{aria:!0});if($e||Ne){let e;"function"==typeof H?(e=H(B,{scrollbarSize:Ze,ref:de,onScroll:Ke}),at.colWidths=oe.map(({width:e},t)=>{const n=t===oe.length-1?e-Ze:e;return"number"!=typeof n||Number.isNaN(n)?("production"!==process.env.NODE_ENV&&De(0===o.columns.length,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):n})):e=l.createElement("div",{style:{...Te,...ze},onScroll:Ue,ref:de,className:`${r}-body`},l.createElement(tt,Yw({style:{...Ae,tableLayout:ot}},ut),ct,st,lt,!Be&&Me&&l.createElement(uw,{stickyOffsets:Ce,flattenColumns:oe},Me)));const t={noData:!B.length,maxContentScroll:Se&&"max-content"===ae,...at,...ie,direction:h,stickyClassName:Re,scrollX:ae,tableLayout:ot,onScroll:Ke};rt=l.createElement(l.Fragment,null,!1!==w&&l.createElement(Rw,Yw({},t,{stickyTopOffset:_e,className:`${r}-header`,ref:se,colGroup:st}),Je),e,Be&&"top"!==Be&&l.createElement(Rw,Yw({},t,{stickyBottomOffset:Ie,className:`${r}-summary`,ref:pe,colGroup:st}),et),Ne&&de.current&&de.current instanceof Element&&l.createElement(Gw,{ref:ke,offsetScroll:Pe,scrollBodyRef:de,onScroll:Ke,container:Oe,direction:h}))}else rt=l.createElement("div",{style:{...Te,...ze,...d?.content},className:z(`${r}-content`,c?.content),onScroll:Ke,ref:de},l.createElement(tt,Yw({style:{...Ae,tableLayout:ot}},ut),ct,st,!1!==w&&l.createElement(Mw,Yw({},at,ie)),lt,Me&&l.createElement(uw,{stickyOffsets:Ce,flattenColumns:oe},Me)));const pt={...s};Ne&&(pt["--columns-count"]=oe.length);let mt=l.createElement("div",Yw({className:z(r,a,{[`${r}-rtl`]:"rtl"===h,[`${r}-fix-start-shadow`]:Se,[`${r}-fix-end-shadow`]:Se,[`${r}-fix-start-shadow-show`]:Se&&me,[`${r}-fix-end-shadow-show`]:Se&&he,[`${r}-layout-fixed`]:"fixed"===f,[`${r}-fixed-header`]:$e,[`${r}-fixed-column`]:Ee,[`${r}-scroll-horizontal`]:Se,[`${r}-has-fix-start`]:oe[0]?.fixed,[`${r}-has-fix-end`]:"end"===oe[oe.length-1]?.fixed}),style:pt,id:x,ref:le},dt),g&&l.createElement(Fw,{className:z(`${r}-title`,c?.title),style:d?.title},g(B)),l.createElement("div",{ref:ue,className:z(`${r}-container`,c?.section),style:d?.section},rt),v&&l.createElement(Fw,{className:z(`${r}-footer`,c?.footer),style:d?.footer},v(B)));Se&&(mt=l.createElement(nt,{onResize:({offsetWidth:e})=>Ge(e)},mt));const ft=function(e,t){const n=l.useMemo(()=>e.map((n,o)=>lw(o,o,e,t)),[e,t]);return ce(()=>n,[n],(e,t)=>!It(e,t))}(oe,Ce),ht=l.useMemo(()=>({scrollX:ae,scrollInfo:Ve,classNames:c,styles:d,prefixCls:r,getComponent:L,scrollbarSize:Ze,direction:h,fixedInfoList:ft,isSticky:Ne,componentWidth:J,fixHeader:$e,fixColumn:Ee,horizonScroll:Se,tableLayout:ot,rowClassName:i,expandedRowClassName:K.expandedRowClassName,expandIcon:X,expandableType:q,expandRowByClick:K.expandRowByClick,expandedRowRender:K.expandedRowRender,expandedRowOffset:K.expandedRowOffset,onTriggerExpand:Y,expandIconColumnIndex:K.expandIconColumnIndex,indentSize:K.indentSize,allColumnsFixedLeft:oe.every(e=>"start"===e.fixed),emptyNode:it,columns:ne,flattenColumns:oe,onColumnResize:Le,colWidths:xe,hoverStartRow:F,hoverEndRow:V,onHover:W,rowExpandable:K.rowExpandable,onRow:S,getRowKey:j,expandedKeys:U,childrenColumnName:G,rowHoverable:M,measureRowRender:k}),[ae,Ve,c,d,r,L,Ze,h,ft,Ne,J,$e,Ee,Se,ot,i,K.expandedRowClassName,X,q,K.expandRowByClick,K.expandedRowRender,K.expandedRowOffset,Y,K.expandIconColumnIndex,K.indentSize,it,ne,oe,Le,xe,F,V,W,K.rowExpandable,S,j,U,G,M,k]);return l.createElement(Xx.Provider,{value:ht},mt)},nC=l.forwardRef(tC);"production"!==process.env.NODE_ENV&&(nC.displayName="Table");const oC=e=>Kx(nC,e),rC=oC();rC.EXPAND_COLUMN=jx,rC.INTERNAL_HOOKS=Hx,rC.Column=function(e){return null},rC.ColumnGroup=function(e){return null},rC.Summary=pw;const aC=Fx(null),iC=Fx(null);function lC(){return lC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lC.apply(this,arguments)}const sC=e=>{const{rowInfo:t,column:n,colIndex:o,indent:r,index:a,component:i,renderIndex:s,record:c,style:d,className:u,inverse:p,getHeight:m}=e,{render:f,dataIndex:h,className:g,width:v}=n,{columnsOffset:b}=Vx(iC,["columnsOffset"]),{key:y,fixedInfo:x,appendCellNode:w,additionalCellProps:C}=xw(t,n,o,r,a),{style:$,colSpan:S=1,rowSpan:E=1}=C,k=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(o-1,S,b),N={...$,...d,flex:`0 0 ${k}px`,width:`${k}px`,marginRight:S>1?v-k:0,pointerEvents:"auto"},_=l.useMemo(()=>p?E<=1:0===S||0===E||E>1,[E,S,p]);_?N.visibility="hidden":p&&(N.height=m?.(E));const I=_?()=>null:f,P={};return 0!==E&&0!==S||(P.rowSpan=1,P.colSpan=1),l.createElement(rw,lC({className:z(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:y,record:c,index:a,renderIndex:s,dataIndex:h,render:I,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:w,additionalProps:{...C,style:N,...P}}))};function cC(){return cC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cC.apply(this,arguments)}const dC=l.forwardRef((e,t)=>{const{data:n,index:o,className:r,rowKey:a,style:i,extra:s,getHeight:c,...d}=e,{record:u,indent:p,index:m}=n,{scrollX:f,flattenColumns:h,prefixCls:g,fixColumn:v,componentWidth:b}=Vx(Xx,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),{getComponent:y}=Vx(aC,["getComponent"]),x=hw(u,a,o,p),w=y(["body","row"],"div"),C=y(["body","cell"],"div"),{rowSupportExpand:$,expanded:S,rowProps:E,expandedRowRender:k,expandedRowClassName:N}=x;let _;if($&&S){const e=k(u,o,p+1,S),t=bw(N,u,o,p);let n={};v&&(n={style:{"--virtual-width":`${b}px`}});const r=`${g}-expanded-row-cell`;_=l.createElement(w,{className:z(`${g}-expanded-row`,`${g}-expanded-row-level-${p+1}`,t)},l.createElement(rw,{component:C,prefixCls:g,className:z(r,{[`${r}-fixed`]:v}),additionalProps:n},e))}const I={...i,width:f};s&&(I.position="absolute",I.pointerEvents="none");const P=l.createElement(w,cC({},E,d,{"data-row-key":a,ref:$?null:t,className:z(r,`${g}-row`,E?.className,{[`${g}-row-extra`]:s}),style:{...I,...E?.style}}),h.map((e,t)=>l.createElement(sC,{key:t,component:C,rowInfo:x,column:e,colIndex:t,indent:p,index:o,renderIndex:m,record:u,inverse:s,getHeight:c})));return $?l.createElement("div",{ref:t},P,_):P}),uC=qx(dC);"production"!==process.env.NODE_ENV&&(uC.displayName="BodyLine");const pC=l.forwardRef((e,t)=>{const{data:n,onScroll:o}=e,{flattenColumns:r,onColumnResize:a,getRowKey:i,expandedKeys:s,prefixCls:c,childrenColumnName:d,scrollX:u,direction:p}=Vx(Xx,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:m,scrollY:f,listItemHeight:h,getComponent:g,onScroll:v}=Vx(aC),b=l.useRef(null),y=fw(n,d,s,i),x=l.useMemo(()=>{let e=0;return r.map(({width:t,minWidth:n,key:o})=>{const r=Math.max(t||0,n||0);return e+=r,[o,r,e]})},[r]),w=l.useMemo(()=>x.map(e=>e[2]),[x]);l.useEffect(()=>{x.forEach(([e,t])=>{a(e,t)})},[x]),l.useImperativeHandle(t,()=>{const e={scrollTo:e=>{const{offset:t,...n}=e;t?b.current?.scrollTo({...n,offset:t,align:"top"}):b.current?.scrollTo(e)},nativeElement:b.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>b.current?.getScrollInfo().x||0,set:e=>{b.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>b.current?.getScrollInfo().y||0,set:e=>{b.current?.scrollTo({top:e})}}),e});const C=(e,t)=>{const n=y[t]?.record,{onCell:o}=e;if(o){const e=o(n,t);return e?.rowSpan??1}return 1},$=l.useMemo(()=>({columnsOffset:w}),[w]),S=`${c}-tbody`,E=g(["body","wrapper"]),k={};return m&&(k.position="sticky",k.bottom=0,"object"==typeof m&&m.offsetScroll&&(k.bottom=m.offsetScroll)),l.createElement(iC.Provider,{value:$},l.createElement(Zp,{fullHeight:!1,ref:b,prefixCls:`${S}-virtual`,styles:{horizontalScrollBar:k},className:S,height:f,itemHeight:h||24,data:y,itemKey:e=>i(e.record),component:E,scrollWidth:u,direction:p,onVirtualScroll:({x:e})=>{o({currentTarget:b.current?.nativeElement,scrollLeft:e})},onScroll:v,extraRender:e=>{const{start:t,end:n,getSize:o,offsetY:a}=e;if(n<0)return null;let s=r.filter(e=>0===C(e,t)),c=t;for(let e=t;e>=0;e-=1)if(s=s.filter(t=>0===C(t,e)),!s.length){c=e;break}let d=r.filter(e=>1!==C(e,n)),u=n;for(let e=n;e<y.length;e+=1)if(d=d.filter(t=>1!==C(t,e)),!d.length){u=Math.max(e-1,n);break}const p=[];for(let e=c;e<=u;e+=1){y[e]&&(r.some(t=>C(t,e)>1)&&p.push(e))}return p.map(e=>{const t=y[e],n=i(t.record,e),r=o(n);return l.createElement(uC,{key:e,data:t,rowKey:n,index:e,style:{top:-a+r.top},extra:!0,getHeight:t=>{const r=e+t-1,a=y[r];if(!a||!a.record){const e=Math.min(r,y.length-1),t=y[e],a=i(t.record,e),l=o(n,a);return l.bottom-l.top}const l=i(a.record,r),s=o(n,l);return s.bottom-s.top}})})}},(e,t,n)=>{const o=i(e.record,t);return l.createElement(uC,{data:e,rowKey:o,index:t,style:n.style})}))}),mC=qx(pC);function fC(){return fC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fC.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(mC.displayName="ResponseGrid");const hC=(e,t)=>{const{ref:n,onScroll:o}=t;return l.createElement(mC,{ref:n,data:e,onScroll:o})},gC=(e,t)=>{const{data:n,columns:o,scroll:r,sticky:a,prefixCls:i=Zw,className:s,listItemHeight:c,components:d,onScroll:u}=e;let{x:p,y:m}=r||{};"number"!=typeof p&&("production"!==process.env.NODE_ENV&&De(!p,"`scroll.x` in virtual table must be number."),p=1),"number"!=typeof m&&(m=500,"production"!==process.env.NODE_ENV&&De(!1,"`scroll.y` in virtual table must be number."));const f=Z((e,t)=>we(d,e)||t),h=Z(u),g=l.useMemo(()=>({sticky:a,scrollY:m,listItemHeight:c,getComponent:f,onScroll:h}),[a,m,c,f,h]);return l.createElement(aC.Provider,{value:g},l.createElement(rC,fC({},e,{className:z(s,`${i}-virtual`),scroll:{...r,x:p},components:{...d,body:n?.length?hC:void 0},columns:o,internalHooks:Hx,tailor:!0,ref:t})))},vC=l.forwardRef(gC);"production"!==process.env.NODE_ENV&&(vC.displayName="VirtualTable");const bC=e=>Kx(vC,e);bC();var yC=e=>null;var xC=e=>null;const wC=l.createContext(null),CC=l.createContext({}),$C=({prefixCls:e,level:t,isStart:n,isEnd:o})=>{const r=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(l.createElement("span",{key:e,className:z(r,{[`${r}-start`]:n[e],[`${r}-end`]:o[e]})}));return l.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},a)};var SC=l.memo($C);function EC(){return EC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},EC.apply(this,arguments)}const kC="open",NC="close",_C="---",IC=e=>{const{eventKey:t,className:n,style:o,dragOver:r,dragOverGapTop:a,dragOverGapBottom:i,isLeaf:l,isStart:c,isEnd:d,expanded:u,selected:p,checked:m,halfChecked:f,loading:h,domRef:g,active:v,data:b,onMouseMove:y,selectable:x,...w}=e,C=s.default.useContext(wC),{classNames:$,styles:S}=C||{},E=s.default.useContext(CC),k=s.default.useRef(null),[N,_]=s.default.useState(!1),I=!!(C.disabled||e.disabled||E.nodeDisabled?.(b)),P=s.default.useMemo(()=>!(!C.checkable||!1===e.checkable)&&C.checkable,[C.checkable,e.checkable]),R=t=>{I||P&&!e.disableCheckbox&&C.onNodeCheck(t,db(e),!m)},O=s.default.useMemo(()=>"boolean"==typeof x?x:C.selectable,[x,C.selectable]),D=t=>{C.onNodeClick(t,db(e)),O?(t=>{I||C.onNodeSelect(t,db(e))})(t):R(t)},M=t=>{C.onNodeDoubleClick(t,db(e))},B=t=>{C.onNodeMouseEnter(t,db(e))},T=t=>{C.onNodeMouseLeave(t,db(e))},A=t=>{C.onNodeContextMenu(t,db(e))},L=s.default.useMemo(()=>!(!C.draggable||C.draggable.nodeDraggable&&!C.draggable.nodeDraggable(b)),[C.draggable,b]),j=t=>{h||C.onNodeExpand(t,db(e))},H=s.default.useMemo(()=>{const{children:e}=nb(C.keyEntities,t)||{};return Boolean((e||[]).length)},[C.keyEntities,t]),F=s.default.useMemo(()=>!1!==l&&(l||!C.loadData&&!H||C.loadData&&e.loaded&&!H),[l,C.loadData,H,e.loaded]);s.default.useEffect(()=>{h||"function"!=typeof C.loadData||!u||F||e.loaded||C.onNodeLoad(db(e))},[h,C.loadData,C.onNodeLoad,u,F,e]);const V=s.default.useMemo(()=>C.draggable?.icon?s.default.createElement("span",{className:`${C.prefixCls}-draggable-icon`},C.draggable.icon):null,[C.draggable]),W=t=>{const n=e.switcherIcon||C.switcherIcon;return"function"==typeof n?n({...e,isLeaf:t}):n},K=s.default.useMemo(()=>{if(!P)return null;const t="boolean"!=typeof P?P:null;return s.default.createElement("span",{className:z(`${C.prefixCls}-checkbox`,{[`${C.prefixCls}-checkbox-checked`]:m,[`${C.prefixCls}-checkbox-indeterminate`]:!m&&f,[`${C.prefixCls}-checkbox-disabled`]:I||e.disableCheckbox}),onClick:R,role:"checkbox","aria-checked":f?"mixed":m,"aria-disabled":I||e.disableCheckbox,"aria-label":`Select ${"string"==typeof e.title?e.title:"tree node"}`},t)},[P,m,f,I,e.disableCheckbox,e.title]),q=s.default.useMemo(()=>F?null:u?kC:NC,[F,u]),U=s.default.useMemo(()=>s.default.createElement("span",{className:z($?.itemIcon,`${C.prefixCls}-iconEle`,`${C.prefixCls}-icon__${q||"docu"}`,{[`${C.prefixCls}-icon_loading`]:h}),style:S?.itemIcon}),[C.prefixCls,q,h]),X=s.default.useMemo(()=>{const n=Boolean(C.draggable);return!e.disabled&&n&&C.dragOverNodeKey===t?C.dropIndicatorRender({dropPosition:C.dropPosition,dropLevelOffset:C.dropLevelOffset,indent:C.indent,prefixCls:C.prefixCls,direction:C.direction}):null},[C.dropPosition,C.dropLevelOffset,C.indent,C.prefixCls,C.direction,C.draggable,C.dragOverNodeKey,C.dropIndicatorRender]),G=s.default.useMemo(()=>{const{title:t=_C}=e,n=`${C.prefixCls}-node-content-wrapper`;let o,r;if(C.showIcon){const t=e.icon||C.icon;o=t?s.default.createElement("span",{className:z($?.itemIcon,`${C.prefixCls}-iconEle`,`${C.prefixCls}-icon__customize`),style:S?.itemIcon},"function"==typeof t?t(e):t):U}else C.loadData&&h&&(o=U);return r="function"==typeof t?t(b):C.titleRender?C.titleRender(b):t,s.default.createElement("span",{ref:k,title:"string"==typeof t?t:"",className:z(n,`${n}-${q||"normal"}`,{[`${C.prefixCls}-node-selected`]:!I&&(p||N)}),onMouseEnter:B,onMouseLeave:T,onContextMenu:A,onClick:D,onDoubleClick:M},o,s.default.createElement("span",{className:z(`${C.prefixCls}-title`,$?.itemTitle),style:S?.itemTitle},r),X)},[C.prefixCls,C.showIcon,e,C.icon,U,C.titleRender,b,q,B,T,A,D,M]),Y=mi(w,{aria:!0,data:!0}),{level:Z}=nb(C.keyEntities,t)||{},Q=d[d.length-1],J=!I&&L,ee=C.draggingNodeKey===t,te=void 0!==x?{"aria-selected":!!x}:void 0;return s.default.createElement("div",EC({ref:g,role:"treeitem","aria-expanded":l?void 0:u,className:z(n,`${C.prefixCls}-treenode`,$?.item,{[`${C.prefixCls}-treenode-disabled`]:I,[`${C.prefixCls}-treenode-switcher-${u?"open":"close"}`]:!l,[`${C.prefixCls}-treenode-checkbox-checked`]:m,[`${C.prefixCls}-treenode-checkbox-indeterminate`]:f,[`${C.prefixCls}-treenode-selected`]:p,[`${C.prefixCls}-treenode-loading`]:h,[`${C.prefixCls}-treenode-active`]:v,[`${C.prefixCls}-treenode-leaf-last`]:Q,[`${C.prefixCls}-treenode-draggable`]:L,dragging:ee,"drop-target":C.dropTargetKey===t,"drop-container":C.dropContainerKey===t,"drag-over":!I&&r,"drag-over-gap-top":!I&&a,"drag-over-gap-bottom":!I&&i,"filter-node":C.filterTreeNode?.(db(e)),[`${C.prefixCls}-treenode-leaf`]:F}),style:{...o,...S?.item},draggable:J,onDragStart:J?t=>{t.stopPropagation(),_(!0),C.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:L?t=>{t.preventDefault(),t.stopPropagation(),C.onNodeDragEnter(t,e)}:void 0,onDragOver:L?t=>{t.preventDefault(),t.stopPropagation(),C.onNodeDragOver(t,e)}:void 0,onDragLeave:L?t=>{t.stopPropagation(),C.onNodeDragLeave(t,e)}:void 0,onDrop:L?t=>{t.preventDefault(),t.stopPropagation(),_(!1),C.onNodeDrop(t,e)}:void 0,onDragEnd:L?t=>{t.stopPropagation(),_(!1),C.onNodeDragEnd(t,e)}:void 0,onMouseMove:y},te,Y),s.default.createElement(SC,{prefixCls:C.prefixCls,level:Z,isStart:c,isEnd:d}),V,(()=>{if(F){const e=W(!0);return!1!==e?s.default.createElement("span",{className:z(`${C.prefixCls}-switcher`,`${C.prefixCls}-switcher-noop`)},e):null}const e=W(!1);return!1!==e?s.default.createElement("span",{onClick:j,className:z(`${C.prefixCls}-switcher`,`${C.prefixCls}-switcher_${u?kC:NC}`)},e):null})(),K,G)};function PC(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function RC(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function OC(e){return e.split("-")}function DC(e,t){const n=[];return function e(t=[]){t.forEach(({key:t,children:o})=>{n.push(t),e(o)})}(nb(t,e).children),n}function MC(e){if(e.parent){const t=OC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function BC(e,t,n,o,r,a,i,l,s,c){const{clientX:d,clientY:u}=e,{top:p,height:m}=e.target.getBoundingClientRect(),f=(("rtl"===c?-1:1)*((r?.x||0)-d)-12)/o,h=s.filter(e=>l[e]?.children?.length);let g=nb(l,n.eventKey);if(u<p+m/2){const e=i.findIndex(e=>e.key===g.key),t=i[e<=0?0:e-1].key;g=nb(l,t)}const v=g.key,b=g,y=g.key;let x=0,w=0;if(!h.includes(v))for(let e=0;e<f&&MC(g);e+=1)g=g.parent,w+=1;const C=t.data,$=g.node;let S=!0;return function(e){const t=OC(e.pos);return 0===Number(t[t.length-1])}(g)&&0===g.level&&u<p+m/2&&a({dragNode:C,dropNode:$,dropPosition:-1})&&g.key===n.eventKey?x=-1:(b.children||[]).length&&h.includes(y)?a({dragNode:C,dropNode:$,dropPosition:0})?x=0:S=!1:0===w?f>-1.5?a({dragNode:C,dropNode:$,dropPosition:1})?x=1:S=!1:a({dragNode:C,dropNode:$,dropPosition:0})?x=0:a({dragNode:C,dropNode:$,dropPosition:1})?x=1:S=!1:a({dragNode:C,dropNode:$,dropPosition:1})?x=1:S=!1,{dropPosition:x,dropLevelOffset:w,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:0===x?null:g.parent?.key||null,dropAllowed:S}}function TC(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function zC(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return De(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function AC(e,t){const n=new Set;function o(e){if(n.has(e))return;const r=nb(t,e);if(!r)return;n.add(e);const{parent:a,node:i}=r;i.disabled||a&&o(a.key)}return(e||[]).forEach(e=>{o(e)}),[...n]}IC.isTreeNode=1,"production"!==process.env.NODE_ENV&&(IC.displayName="TreeNode");const LC={},jC="SELECT_ALL",HC="SELECT_INVERT",FC="SELECT_NONE",VC=[],WC=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&WC(e,t[e],n)}),n),KC=(e,n)=>{const{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:i,getTitleCheckboxProps:s,onChange:c,onSelect:d,onSelectAll:u,onSelectInvert:p,onSelectNone:m,onSelectMultiple:f,columnWidth:h,type:g,selections:v,fixed:b,renderCell:y,hideSelectAll:x,checkStrictly:w=!0}=n||{},{prefixCls:C,data:$,pageData:S,getRecordByKey:E,getRowKey:k,expandType:N,childrenColumnName:_,locale:I,getPopupContainer:P}=e,R=Ve("Table"),[O,D]=(e=>{const[n,o]=t.useState(null);return[t.useCallback((t,r,a)=>{const i=n??t,l=Math.min(i||0,t),s=Math.max(i||0,t),c=r.slice(l,s+1).map(e),d=c.some(e=>!a.has(e)),u=[];return c.forEach(e=>{d?(a.has(e)||u.push(e),a.add(e)):(a.delete(e),u.push(e))}),o(d?s:null),u},[n]),o]})(e=>e),[M,B]=ne(a||VC,r),T=l.useRef(new Map),A=t.useCallback(e=>{if(o){const t=new Map;e.forEach(e=>{let n=E(e);!n&&T.current.has(e)&&(n=T.current.get(e)),t.set(e,n)}),T.current=t}},[E,o]);l.useEffect(()=>{A(M)},[M]);const L=t.useMemo(()=>WC(_,S),[_,S]),{keyEntities:j}=t.useMemo(()=>{if(w)return{keyEntities:null};let e=$;if(o){const t=new Set(L.map(k)),n=Array.from(T.current).reduce((e,[n,o])=>t.has(n)?e:e.concat(o),[]);e=[].concat(at(e),at(n))}return sb(e,{externalGetKey:k,childrenPropName:_})},[$,k,w,_,o,L]),H=t.useMemo(()=>{const e=new Map;return L.forEach((t,n)=>{const o=k(t,n),r=(i?i(t):null)||{};e.set(o,r),"production"!==process.env.NODE_ENV&&R(!("checked"in r||"defaultChecked"in r),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}),e},[L,k,i]),F=t.useCallback(e=>{const t=k(e);let n;return n=H.has(t)?H.get(k(e)):i?i(e):void 0,!!n?.disabled},[H,k]),[V,W]=t.useMemo(()=>{if(w)return[M||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=mb(M,!0,j,F);return[e||[],t]},[M,w,j,F]),K=t.useMemo(()=>{const e="radio"===g?V.slice(0,1):V;return new Set(e)},[V,g]),q=t.useMemo(()=>"radio"===g?new Set:new Set(W),[W,g]);l.useEffect(()=>{n||B(VC)},[!!n]);const U=t.useCallback((e,t)=>{let n,r;A(e),o?(n=e,r=e.map(e=>T.current.get(e))):(n=[],r=[],e.forEach(e=>{const t=E(e);void 0!==t&&(n.push(e),r.push(t))})),B(n),c?.(n,r,{type:t})},[B,E,c,o]),X=t.useCallback((e,t,n,o)=>{if(d){const r=n.map(e=>E(e));d(E(e),t,r,o)}U(n,"single")},[d,E,U]),G=t.useMemo(()=>{if(!v||x)return null;return(!0===v?[jC,HC,FC]:v).map(e=>e===jC?{key:"all",text:I.selectionAll,onSelect(){U($.map((e,t)=>k(e,t)).filter(e=>{const t=H.get(e);return!t?.disabled||K.has(e)}),"all")}}:e===HC?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(K);S.forEach((t,n)=>{const o=k(t,n),r=H.get(o);r?.disabled||(e.has(o)?e.delete(o):e.add(o))});const t=Array.from(e);p&&(R.deprecated(!1,"onSelectInvert","onChange"),p(t)),U(t,"invert")}}:e===FC?{key:"none",text:I.selectNone,onSelect(){m?.(),U(Array.from(K).filter(e=>{const t=H.get(e);return t?.disabled}),"none")}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),D(null)}}))},[v,x,I.selectionAll,I.selectInvert,I.selectNone,H,K,$,S,k,p,U]),Y=t.useCallback(e=>{if(!n)return"production"!==process.env.NODE_ENV&&R(!e.includes(LC),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),e.filter(e=>e!==LC);let t=at(e);const o=new Set(K),r=L.map(k).filter(e=>!H.get(e).disabled),a=r.every(e=>o.has(e)),i=r.some(e=>o.has(e));let c,d,p;if("radio"!==g){let e;if(G){const t={getPopupContainer:P,items:G.map((e,t)=>{const{key:n,text:o,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(r)},label:o}})};e=l.createElement("div",{className:`${C}-selection-extra`},l.createElement(ox,{menu:t,getPopupContainer:P},l.createElement("span",null,l.createElement(Fm,null))))}const t=L.map((e,t)=>{const n=k(e,t),r=H.get(n)||{};return{checked:o.has(n),...r}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===L.length,p=n&&t.every(({checked:e})=>e),m=n&&t.some(({checked:e})=>e),f=s?.()||{},{onChange:h,disabled:g}=f;d=l.createElement($b,{"aria-label":e?"Custom selection":"Select all",...f,checked:n?p:!!L.length&&a,indeterminate:n?!p&&m:!a&&i,onChange:e=>{(()=>{const e=[];a?r.forEach(t=>{o.delete(t),e.push(t)}):r.forEach(t=>{o.has(t)||(o.add(t),e.push(t))});const t=Array.from(o);u?.(!a,t.map(e=>E(e)),e.map(e=>E(e))),U(t,"all"),D(null)})(),h?.(e)},disabled:g??(0===L.length||n),skipGroup:!0}),c=!x&&l.createElement("div",{className:`${C}-selection`},d,e)}p="radio"===g?(e,t,n)=>{const r=k(t,n),a=o.has(r),i=H.get(r);return{node:l.createElement(Ev,{...i,checked:a,onClick:e=>{e.stopPropagation(),i?.onClick?.(e)},onChange:e=>{o.has(r)||X(r,!0,[r],e.nativeEvent),i?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{const a=k(t,n),i=o.has(a),s=q.has(a),c=H.get(a);let d;return"nest"===N?(d=s,"production"!==process.env.NODE_ENV&&R("boolean"!=typeof c?.indeterminate,"usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):d=c?.indeterminate??s,{node:l.createElement($b,{...c,indeterminate:d,checked:i,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{const{nativeEvent:t}=e,{shiftKey:n}=t,l=r.indexOf(a),s=V.some(e=>r.includes(e));if(n&&w&&s){const e=O(l,r,o),t=Array.from(o);f?.(!i,t.map(e=>E(e)),e.map(e=>E(e))),U(t,"multiple")}else{const e=V;if(w){const n=i?PC(e,a):RC(e,a);X(a,!i,n,t)}else{const n=mb([].concat(at(e),[a]),!0,j,F),{checkedKeys:o,halfCheckedKeys:r}=n;let l=o;if(i){const e=new Set(o);e.delete(a),l=mb(Array.from(e),{checked:!1,halfCheckedKeys:r},j,F).checkedKeys}X(a,!i,l,t)}}D(i?null:l),c?.onChange?.(e)}}),checked:i}};if(!t.includes(LC))if(0===t.findIndex(e=>"EXPAND_COLUMN"===e[Nw]?.columnType)){const[e,...n]=t;t=[e,LC].concat(at(n))}else t=[LC].concat(at(t));const m=t.indexOf(LC);"production"!==process.env.NODE_ENV&&R(t.filter(e=>e===LC).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),t=t.filter((e,t)=>e!==LC||t===m);const $=t[m-1],S=t[m+1];let _=b;void 0===_&&(void 0!==S?.fixed?_=S.fixed:void 0!==$?.fixed&&(_=$.fixed)),_&&$&&"EXPAND_COLUMN"===$[Nw]?.columnType&&void 0===$.fixed&&($.fixed=_);const I=z(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:v&&"checkbox"===g}),M={fixed:_,width:h,className:`${C}-selection-column`,title:n?.columnTitle?"function"==typeof n.columnTitle?n.columnTitle(d):n.columnTitle:c,render:(e,t,n)=>{const{node:o,checked:r}=p(e,t,n);return y?y(r,t,n,o):o},onCell:n.onCell,align:n.align,[Nw]:{className:I}};return t.map(e=>e===LC?M:e)},[k,L,n,V,K,q,h,G,N,H,f,X,F]);return[Y,K]};const qC=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function UC(e,t){return t?`${t}-${e}`:`${e}`}const XC=(e,t)=>"function"==typeof e?e(t):e,GC=e=>{const{dropPosition:t,dropLevelOffset:n,indent:o}=e,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return s.default.createElement("div",{style:r})};function YC(){return YC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},YC.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(GC.displayName="DropIndicator");const ZC=l.forwardRef((e,t)=>{const{className:n,style:o,motion:r,motionNodes:a,motionType:i,onMotionStart:s,onMotionEnd:c,active:d,treeNodeRequiredProps:u,...p}=e,[m,f]=l.useState(!0),{prefixCls:h}=l.useContext(wC),g=a&&"hide"!==i;ee(()=>{a&&g!==m&&f(g)},[a]);const v=l.useRef(!1),b=()=>{a&&!v.current&&(v.current=!0,c())};!function(e,t){const[n,o]=l.useState(!1);ee(()=>{if(n)return e(),()=>{t()}},[n]),ee(()=>(o(!0),()=>{o(!1)}),[])}(()=>{a&&s()},b);const y=e=>{g===e&&b()};return a?l.createElement(di,YC({ref:t,visible:m},r,{motionAppear:"show"===i,onVisibleChanged:y}),({className:e,style:t},n)=>l.createElement("div",{ref:n,className:z(`${h}-treenode-motion`,e),style:t},a.map(e=>{const{data:{...t},title:n,key:o,isStart:r,isEnd:a}=e;delete t.children;const i=cb(o,u);return l.createElement(IC,YC({},t,i,{title:n,active:d,data:e.data,key:o,isStart:r,isEnd:a}))}))):l.createElement(IC,YC({domRef:t,className:n,style:o},p,{active:d}))});function QC(e,t,n){const o=e.findIndex(e=>e.key===n),r=e[o+1],a=t.findIndex(e=>e.key===n);if(r){const e=t.findIndex(e=>e.key===r.key);return t.slice(a+1,e)}return t.slice(a+1)}function JC(){return JC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},JC.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(ZC.displayName="MotionTreeNode");const e$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},t$=()=>{},n$=`RC_TREE_MOTION_${Math.random()}`,o$={key:n$},r$={key:n$,level:0,index:0,pos:"0",node:o$,nodes:[o$]},a$={parent:null,children:[],pos:r$.pos,data:o$,title:null,key:n$,isStart:[],isEnd:[]};function i$(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function l$(e){const{key:t,pos:n}=e;return rb(t,n)}const s$=l.forwardRef((e,t)=>{const{prefixCls:n,data:o,selectable:r,checkable:a,expandedKeys:i,selectedKeys:s,checkedKeys:c,loadedKeys:d,loadingKeys:u,halfCheckedKeys:p,keyEntities:m,disabled:f,dragging:h,dragOverNodeKey:g,dropPosition:v,motion:b,height:y,itemHeight:x,virtual:w,scrollWidth:C,focusable:$,activeItem:S,focused:E,tabIndex:k,onKeyDown:N,onFocus:_,onBlur:I,onActiveChange:P,onListChangeStart:R,onListChangeEnd:O,...D}=e,M=l.useRef(null),B=l.useRef(null);l.useImperativeHandle(t,()=>({scrollTo:e=>{M.current.scrollTo(e)},getIndentWidth:()=>B.current.offsetWidth}));const[T,z]=l.useState(i),[A,L]=l.useState(o),[j,H]=l.useState(o),[F,V]=l.useState([]),[W,K]=l.useState(null),q=l.useRef(o);function U(){const e=q.current;L(e),H(e),V([]),K(null),O()}q.current=o,ee(()=>{z(i);const e=function(e=[],t=[]){const n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){const n=new Map;e.forEach(e=>{n.set(e,!0)});const o=t.filter(e=>!n.has(e));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(T,i);if(null!==e.key)if(e.add){const t=A.findIndex(({key:t})=>t===e.key),n=i$(QC(A,o,e.key),w,y,x),r=A.slice();r.splice(t+1,0,a$),H(r),V(n),K("show")}else{const t=o.findIndex(({key:t})=>t===e.key),n=i$(QC(o,A,e.key),w,y,x),r=o.slice();r.splice(t+1,0,a$),H(r),V(n),K("hide")}else A!==o&&(L(o),H(o))},[i,o]),l.useEffect(()=>{h||U()},[h]);const X=b?j:o,G={expandedKeys:i,selectedKeys:s,loadedKeys:d,loadingKeys:u,checkedKeys:c,halfCheckedKeys:p,dragOverNodeKey:g,dropPosition:v,keyEntities:m};return l.createElement(l.Fragment,null,E&&S&&l.createElement("span",{style:e$,"aria-live":"assertive"},function(e){let t=String(e.data.key),n=e;for(;n.parent;)n=n.parent,t=`${n.data.key} > ${t}`;return t}(S)),l.createElement("div",null,l.createElement("input",{style:e$,disabled:!1===$||f,tabIndex:!1!==$?k:null,onKeyDown:N,onFocus:_,onBlur:I,value:"",onChange:t$,"aria-label":"for screen reader"})),l.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:`${n}-indent`},l.createElement("div",{ref:B,className:`${n}-indent-unit`}))),l.createElement(Zp,JC({},D,{data:X,itemKey:l$,height:y,fullHeight:!1,virtual:w,itemHeight:x,scrollWidth:C,prefixCls:`${n}-list`,ref:M,role:"tree",onVisibleChange:e=>{e.every(e=>l$(e)!==n$)&&U()}}),e=>{const{pos:t,data:{...n},title:o,key:r,isStart:a,isEnd:i}=e,s=rb(r,t);delete n.key,delete n.children;const c=cb(s,G);return l.createElement(ZC,JC({},n,c,{title:o,active:!!S&&r===S.key,pos:t,data:e.data,isStart:a,isEnd:i,motion:b,motionNodes:r===n$?F:null,motionType:W,onMotionStart:R,onMotionEnd:U,treeNodeRequiredProps:G,onMouseMove:()=>{P(null)}}))}))});function c$(){return c$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c$.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(s$.displayName="NodeList");class d$ extends l.Component{static defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:GC,allowDrop:()=>!0,expandAction:!1};static TreeNode=IC;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:ab()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;listRef=l.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){const{prevProps:n}=t,o={prevProps:e};function r(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:i}=t;if(r("fieldNames")&&(i=ab(e.fieldNames),o.fieldNames=i),r("treeData")?({treeData:a}=e):r("children")&&(De(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=ib(e.children)),a){o.treeData=a;const e=sb(a,{fieldNames:i});o.keyEntities={[n$]:r$,...e.keyEntities},"production"!==process.env.NODE_ENV&&function(e,t){const n=new Map;!function e(o,r=""){(o||[]).forEach(o=>{const a=o[t.key],i=o[t.children];De(null!=a,`Tree node must have a certain key: [${r}${a}]`);const l=String(a);De(!n.has(l)||null==a,`Same 'key' exist in the Tree: ${l}`),n.set(l,!0),e(i,`${r}${l} > `)})}(e)}(a,i)}const l=o.keyEntities||t.keyEntities;if(r("expandedKeys")||n&&r("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?AC(e.expandedKeys,l):e.expandedKeys;else if(!n&&e.defaultExpandAll){const e={...l};delete e[n$];const t=[];Object.keys(e).forEach(n=>{const o=e[n];o.children&&o.children.length&&t.push(o.key)}),o.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?AC(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,a||o.expandedKeys){const e=lb(a||t.treeData,o.expandedKeys||t.expandedKeys,i);o.flattenNodes=e}if(e.selectable&&(r("selectedKeys")?o.selectedKeys=TC(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(o.selectedKeys=TC(e.defaultSelectedKeys,e))),e.checkable){let i;if(r("checkedKeys")?i=zC(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?i=zC(e.defaultCheckedKeys)||{}:a&&(i=zC(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),i){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=i;if(!e.checkStrictly){const e=mb(t,!0,l);({checkedKeys:t,halfCheckedKeys:n}=e)}o.checkedKeys=t,o.halfCheckedKeys=n}}return r("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}onNodeDragStart=(e,t)=>{const{expandedKeys:n,keyEntities:o}=this.state,{onDragStart:r}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};const i=PC(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:DC(a,o),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(i),window.addEventListener("dragend",this.onWindowDragEnd),r?.({event:e,node:db(t)})};onNodeDragEnter=(e,t)=>{const{expandedKeys:n,keyEntities:o,dragChildrenKeys:r,flattenNodes:a,indent:i}=this.state,{onDragEnter:l,onExpand:s,allowDrop:c,direction:d}=this.props,{pos:u,eventKey:p}=t;if(this.currentMouseOverDroppableNodeKey!==p&&(this.currentMouseOverDroppableNodeKey=p),!this.dragNodeProps)return void this.resetDragState();const{dropPosition:m,dropLevelOffset:f,dropTargetKey:h,dropContainerKey:g,dropTargetPos:v,dropAllowed:b,dragOverNodeKey:y}=BC(e,this.dragNodeProps,t,i,this.dragStartMousePosition,c,a,o,n,d);!r.includes(h)&&b?(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[u]=window.setTimeout(()=>{if(null===this.state.draggingNodeKey)return;let r=[...n];const a=nb(o,t.eventKey);a&&(a.children||[]).length&&(r=RC(n,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(r),s?.(r,{node:db(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey!==h||0!==f?(this.setState({dragOverNodeKey:y,dropPosition:m,dropLevelOffset:f,dropTargetKey:h,dropContainerKey:g,dropTargetPos:v,dropAllowed:b}),l?.({event:e,node:db(t),expandedKeys:n})):this.resetDragState()):this.resetDragState()};onNodeDragOver=(e,t)=>{const{dragChildrenKeys:n,flattenNodes:o,keyEntities:r,expandedKeys:a,indent:i}=this.state,{onDragOver:l,allowDrop:s,direction:c}=this.props;if(!this.dragNodeProps)return;const{dropPosition:d,dropLevelOffset:u,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h,dragOverNodeKey:g}=BC(e,this.dragNodeProps,t,i,this.dragStartMousePosition,s,o,r,a,c);!n.includes(p)&&h&&(this.dragNodeProps.eventKey===p&&0===u?null===this.state.dropPosition&&null===this.state.dropLevelOffset&&null===this.state.dropTargetKey&&null===this.state.dropContainerKey&&null===this.state.dropTargetPos&&!1===this.state.dropAllowed&&null===this.state.dragOverNodeKey||this.resetDragState():d===this.state.dropPosition&&u===this.state.dropLevelOffset&&p===this.state.dropTargetKey&&m===this.state.dropContainerKey&&f===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:d,dropLevelOffset:u,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h,dragOverNodeKey:g}),l?.({event:e,node:db(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:n}=this.props;n?.({event:e,node:db(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{const{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:db(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{const{dragChildrenKeys:o,dropPosition:r,dropTargetKey:a,dropTargetPos:i,dropAllowed:l}=this.state;if(!l)return;const{onDrop:s}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),null===a)return;const c={...cb(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:nb(this.state.keyEntities,a).node};De(!o.includes(a),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const d=OC(i),u={event:e,node:db(c),dragNode:this.dragNodeProps?db(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:0!==r,dropPosition:r+Number(d[d.length-1])};n||s?.(u),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{const{draggingNodeKey:e}=this.state;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{const{expandedKeys:n,flattenNodes:o}=this.state,{expanded:r,key:a,isLeaf:i}=t;if(i||e.shiftKey||e.metaKey||e.ctrlKey)return;const l=o.filter(e=>e.key===a)[0],s=db({...cb(a,this.getTreeNodeRequiredProps()),data:l.data});this.setExpandedKeys(r?PC(n,a):RC(n,a)),this.onNodeExpand(e,s)};onNodeClick=(e,t)=>{const{onClick:n,expandAction:o}=this.props;"click"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{const{onDoubleClick:n,expandAction:o}=this.props;"doubleClick"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state;const{keyEntities:o,fieldNames:r}=this.state,{onSelect:a,multiple:i}=this.props,{selected:l}=t,s=t[r.key],c=!l;n=c?i?RC(n,s):[s]:PC(n,s);const d=n.map(e=>{const t=nb(o,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:"select",selected:c,node:t,selectedNodes:d,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{const{keyEntities:o,checkedKeys:r,halfCheckedKeys:a}=this.state,{checkStrictly:i,onCheck:l}=this.props,{key:s}=t;let c;const d={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(i){const e=n?RC(r,s):PC(r,s);c={checked:e,halfChecked:PC(a,s)},d.checkedNodes=e.map(e=>nb(o,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=mb([...r,s],!0,o);if(!n){const n=new Set(e);n.delete(s),({checkedKeys:e,halfCheckedKeys:t}=mb(Array.from(n),{checked:!1,halfCheckedKeys:t},o))}c=e,d.checkedNodes=[],d.checkedNodesPositions=[],d.halfCheckedKeys=t,e.forEach(e=>{const t=nb(o,e);if(!t)return;const{node:n,pos:r}=t;d.checkedNodes.push(n),d.checkedNodesPositions.push({node:n,pos:r})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}l?.(c,d)};onNodeLoad=e=>{const{key:t}=e,{keyEntities:n}=this.state,o=nb(n,t);if(o?.children?.length)return;const r=new Promise((n,o)=>{this.setState(({loadedKeys:r=[],loadingKeys:a=[]})=>{const{loadData:i,onLoad:l}=this.props;if(!i||r.includes(t)||a.includes(t))return null;return i(e).then(()=>{const{loadedKeys:o}=this.state,r=RC(o,t);l?.(r,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:r}),this.setState(e=>({loadingKeys:PC(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:PC(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=10){const{loadedKeys:e}=this.state;De(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:RC(e,t)}),n()}o(e)}),{loadingKeys:RC(a,t)}})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{const{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{const{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{const{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onFocus=(...e)=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t?.(...e)};onBlur=(...e)=>{const{onBlur:t}=this.props;this.setState({focused:!1}),this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{const{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:o,checkedKeys:r,halfCheckedKeys:a,dragOverNodeKey:i,dropPosition:l,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:o||[],checkedKeys:r||[],halfCheckedKeys:a||[],dragOverNodeKey:i,dropPosition:l,keyEntities:s}};setExpandedKeys=e=>{const{treeData:t,fieldNames:n}=this.state,o=lb(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:o},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state;const{listChanging:o,fieldNames:r}=this.state,{onExpand:a,loadData:i}=this.props,{expanded:l}=t,s=t[r.key];if(o)return;const c=n.includes(s),d=!l;if(De(l&&c||!l&&!c,"Expand state not sync with index check"),n=d?RC(n,s):PC(n,s),this.setExpandedKeys(n),a?.(n,{node:t,expanded:d,nativeEvent:e.nativeEvent}),d&&i){const e=this.onNodeLoad(t);e&&e.then(()=>{const e=lb(this.state.treeData,n,r);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{const{expandedKeys:e}=this.state,t=PC(e,s);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{const{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:o=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:o}),n?.(e))};getActiveItem=()=>{const{activeKey:e,flattenNodes:t}=this.state;return null===e?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{const{flattenNodes:t,activeKey:n}=this.state;let o=t.findIndex(({key:e})=>e===n);-1===o&&e<0&&(o=t.length),o=(o+e+t.length)%t.length;const r=t[o];if(r){const{key:e}=r;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{const{activeKey:t,expandedKeys:n,checkedKeys:o,fieldNames:r}=this.state,{onKeyDown:a,checkable:i,selectable:l}=this.props;switch(e.which){case hs.UP:this.offsetActiveKey(-1),e.preventDefault();break;case hs.DOWN:this.offsetActiveKey(1),e.preventDefault()}const s=this.getActiveItem();if(s&&s.data){const a=this.getTreeNodeRequiredProps(),c=!1===s.data.isLeaf||!!(s.data[r.children]||[]).length,d=db({...cb(t,a),data:s.data,active:!0});switch(e.which){case hs.LEFT:c&&n.includes(t)?this.onNodeExpand({},d):s.parent&&this.onActiveChange(s.parent.key),e.preventDefault();break;case hs.RIGHT:c&&!n.includes(t)?this.onNodeExpand({},d):s.children&&s.children.length&&this.onActiveChange(s.children[0].key),e.preventDefault();break;case hs.ENTER:case hs.SPACE:!i||d.disabled||!1===d.checkable||d.disableCheckbox?i||!l||d.disabled||!1===d.selectable||this.onNodeSelect({},d):this.onNodeCheck({},d,!o.includes(t))}}a?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let o=!1,r=!0;const a={};Object.keys(e).forEach(t=>{this.props.hasOwnProperty(t)?r=!1:(o=!0,a[t]=e[t])}),!o||t&&!r||this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){const{focused:e,flattenNodes:t,keyEntities:n,draggingNodeKey:o,activeKey:r,dropLevelOffset:a,dropContainerKey:i,dropTargetKey:s,dropPosition:c,dragOverNodeKey:d,indent:u}=this.state,{prefixCls:p,className:m,style:f,styles:h,classNames:g,showLine:v,focusable:b,tabIndex:y=0,selectable:x,showIcon:w,icon:C,switcherIcon:$,draggable:S,checkable:E,checkStrictly:k,disabled:N,motion:_,loadData:I,filterTreeNode:P,height:R,itemHeight:O,scrollWidth:D,virtual:M,titleRender:B,dropIndicatorRender:T,onContextMenu:A,onScroll:L,direction:j,rootClassName:H,rootStyle:F}=this.props,V=mi(this.props,{aria:!0,data:!0});let W;S&&(W="object"==typeof S?S:"function"==typeof S?{nodeDraggable:S}:{});const K={styles:h,classNames:g,prefixCls:p,selectable:x,showIcon:w,icon:C,switcherIcon:$,draggable:W,draggingNodeKey:o,checkable:E,checkStrictly:k,disabled:N,keyEntities:n,dropLevelOffset:a,dropContainerKey:i,dropTargetKey:s,dropPosition:c,dragOverNodeKey:d,indent:u,direction:j,dropIndicatorRender:T,loadData:I,filterTreeNode:P,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return l.createElement(wC.Provider,{value:K},l.createElement("div",{className:z(p,m,H,{[`${p}-show-line`]:v,[`${p}-focused`]:e,[`${p}-active-focused`]:null!==r}),style:F},l.createElement(s$,c$({ref:this.listRef,prefixCls:p,style:f,data:t,disabled:N,selectable:x,checkable:!!E,motion:_,dragging:null!==o,height:R,itemHeight:O,virtual:M,focusable:b,focused:e,tabIndex:y,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:A,onScroll:L,scrollWidth:D},this.getTreeNodeRequiredProps(),V))))}}const u$=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:o,motionDurationMid:r,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${r}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:o},[`${e}-node-content-wrapper`]:{color:o,background:"transparent","&, &:hover":{color:o},"&:before, &:hover:before":{background:n}}}}}),p$=new wo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),m$=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),f$=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ut(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),h$=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:a,indentSize:i,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:{...Jr(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:ea(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:p$,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:Ut(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...m$(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,...f$(e,t),"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Ut(t.calc(a).div(2).equal())} !important`}}}},g$=(e,t,n=!0)=>{const o=`.${e}`,r=`${o}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=Xo(t,{treeCls:o,treeNodeCls:r,treeNodePadding:a});return[h$(e,i),n&&u$(i)].filter(Boolean)},v$=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}};var b$=ra("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:fb(`${t}-checkbox`,e)},g$(t,e),Rc(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return{...v$(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}});function y$(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:r,direction:a="ltr"}=e,i="ltr"===a?"left":"right",l="ltr"===a?"right":"left",c={[i]:-n*r+4,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=r+4}return s.default.createElement("div",{style:c,className:`${o}-drop-indicator`})}var x$=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:o,showLine:r,switcherLoadingIcon:a}=e,{isLeaf:i,expanded:s,loading:c}=o;if(c)return l.isValidElement(a)?a:l.createElement(xs,{className:`${t}-switcher-loading-icon`});let d;if(r&&"object"==typeof r&&(d=r.showLeafIcon),i){if(!r)return null;if("boolean"!=typeof d&&d){const e="function"==typeof d?d(o):d,n=`${t}-switcher-line-custom-icon`;return l.isValidElement(e)?Yi(e,{className:z(e.props?.className,n)}):e}return d?l.createElement(Jb,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,p="function"==typeof n?n(o):n;return l.isValidElement(p)?Yi(p,{className:z(p.props?.className,u)}):void 0!==p?p:r?s?l.createElement(Sy,{className:`${t}-switcher-line-icon`}):l.createElement(Iy,{className:`${t}-switcher-line-icon`}):l.createElement(_b,{className:u})};const w$=s.default.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,className:r,style:a,classNames:i,styles:l}=vt("tree"),{virtual:c}=s.default.useContext(ht),{prefixCls:d,className:u,showIcon:p=!1,showLine:m,switcherIcon:f,switcherLoadingIcon:h,blockNode:g=!1,children:v,checkable:b=!1,selectable:y=!0,draggable:x,disabled:w,motion:C,style:$,rootClassName:S,classNames:E,styles:k}=e,N=s.default.useContext(ns),_=w??N,I=n("tree",d),P=n(),R=C??{...ks(P),motionAppear:!1},O={...e,showIcon:p,blockNode:g,checkable:b,selectable:y,disabled:_,motion:R},[D,M]=Li([i,E],[l,k],{props:O}),B={...e,checkable:b,selectable:y,showIcon:p,motion:R,blockNode:g,disabled:_,showLine:Boolean(m),dropIndicatorRender:y$},[T,A]=b$(I),[,L]=Zr(),j=L.paddingXS/2+(L.Tree?.titleHeight||L.controlHeightSM),H=s.default.useMemo(()=>{if(!x)return!1;let e={};switch(typeof x){case"function":e.nodeDraggable=x;break;case"object":e={...x}}return!1!==e.icon&&(e.icon=e.icon||s.default.createElement(yy,null)),e},[x]);return s.default.createElement(d$,{itemHeight:j,ref:t,virtual:c,...B,prefixCls:I,className:z({[`${I}-icon-hide`]:!p,[`${I}-block-node`]:g,[`${I}-unselectable`]:!y,[`${I}-rtl`]:"rtl"===o,[`${I}-disabled`]:_},r,u,T,A),style:{...a,...$},rootClassName:z(D?.root,S),rootStyle:M?.root,classNames:D,styles:M,direction:o,checkable:b?s.default.createElement("span",{className:`${I}-checkbox-inner`}):b,selectable:y,switcherIcon:e=>s.default.createElement(x$,{prefixCls:I,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:e,showLine:m}),draggable:H},v)});"production"!==process.env.NODE_ENV&&(w$.displayName="Tree");var C$=w$;function $$(e,t,n){const{key:o,children:r}=n;e.forEach(function(e){const a=e[o],i=e[r];!1!==t(a,e)&&$$(i||[],t,n)})}function S$({treeData:e,expandedKeys:t,startKey:n,endKey:o,fieldNames:r}){const a=[];let i=0;if(n&&n===o)return[n];if(!n||!o)return[];return $$(e,e=>{if(2===i)return!1;if(function(e){return e===n||e===o}(e)){if(a.push(e),0===i)i=1;else if(1===i)return i=2,!1}else 1===i&&a.push(e);return t.includes(e)},ab(r)),a}function E$(e,t,n){const o=at(t),r=[];return $$(e,(e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length},ab(n)),r}function k$(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(Jb,null):n?l.createElement(cy,null):l.createElement(fy,null)}function N$({treeData:e,children:t}){return e||ib(t)}const _$=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:n,...o},r)=>{const a=l.useRef(null),i=l.useRef(null),[s,c]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,u]=l.useState(()=>(()=>{const{keyEntities:r}=sb(N$(o),{fieldNames:o.fieldNames});let a;return a=e?Object.keys(r):t?AC(o.expandedKeys||n||[],r):o.expandedKeys||n||[],a})());l.useEffect(()=>{"selectedKeys"in o&&c(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&u(o.expandedKeys)},[o.expandedKeys]);const{getPrefixCls:p,direction:m}=l.useContext(ht),{prefixCls:f,className:h,showIcon:g=!0,expandAction:v="click",...b}=o,y=p("tree",f),x=z(`${y}-directory`,{[`${y}-directory-rtl`]:"rtl"===m},h);return l.createElement(C$,{icon:k$,ref:r,blockNode:!0,...b,showIcon:g,expandAction:v,prefixCls:y,className:x,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{const{multiple:n,fieldNames:r}=o,{node:l,nativeEvent:s}=t,{key:u=""}=l,p=N$(o),m={...t,selected:!0},f=s?.ctrlKey||s?.metaKey,h=s?.shiftKey;let g;n&&f?(g=e,a.current=u,i.current=g,m.selectedNodes=E$(p,g,r)):n&&h?(g=Array.from(new Set([].concat(at(i.current||[]),at(S$({treeData:p,expandedKeys:d,startKey:u,endKey:a.current,fieldNames:r}))))),m.selectedNodes=E$(p,g,r)):(g=[u],a.current=u,i.current=g,m.selectedNodes=E$(p,g,r)),o.onSelect?.(g,m),"selectedKeys"in o||c(g)},onExpand:(e,t)=>("expandedKeys"in o||u(e),o.onExpand?.(e,t))})},I$=l.forwardRef(_$);"production"!==process.env.NODE_ENV&&(I$.displayName="DirectoryTree");var P$=I$;const R$=C$;R$.DirectoryTree=P$,R$.TreeNode=IC;var O$=R$;var D$=s.default.createContext(!1);var M$=e=>{const{value:t,filterSearch:n,tablePrefixCls:o,locale:r,onChange:a}=e;return n?l.createElement("div",{className:`${o}-filter-dropdown-search`},l.createElement(Fy,{prefix:l.createElement(Um,null),placeholder:r.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null};const B$=e=>{const{keyCode:t}=e;t===hs.ENTER&&e.stopPropagation()},T$=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:B$,ref:t},e.children));"production"!==process.env.NODE_ENV&&(T$.displayName="FilterDropdownMenuWrapper");var z$=T$;function A$(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(at(t),at(A$(n))))}),t}function L$(e,t){return("string"==typeof t||"number"==typeof t)&&t?.toString().toLowerCase().includes(e.trim().toLowerCase())}function j$({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:o,searchValue:r,filterSearch:a}){return e.map((e,i)=>{const s=String(e.value);if(e.children)return{key:s||i,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:j$({filters:e.children,prefixCls:t,filteredKeys:n,filterMultiple:o,searchValue:r,filterSearch:a})};const c=o?$b:Ev,d={key:void 0!==e.value?s:i,label:l.createElement(l.Fragment,null,l.createElement(c,{checked:n.includes(s)}),l.createElement("span",null,e.text))};return r.trim()?"function"==typeof a?a(r,e)?d:null:L$(r,e.text)?d:null:d})}function H$(e){return e||[]}const F$=e=>{const{tablePrefixCls:t,prefixCls:n,column:o,dropdownPrefixCls:r,columnKey:a,filterOnClose:i,filterMultiple:s,filterMode:c="menu",filterSearch:d=!1,filterState:u,triggerFilter:p,locale:m,children:f,getPopupContainer:h,rootClassName:g}=e,{filterResetToDefaultFilteredValue:v,defaultFilteredValue:b,filterDropdownProps:y={},filterDropdownOpen:x,onFilterDropdownOpenChange:w}=o,[C,$]=l.useState(!1),S=l.useContext(D$),E=!(!u||!u.filteredKeys?.length&&!u.forceFiltered),k=e=>{$(e),y.onOpenChange?.(e),w?.(e)};if("production"!==process.env.NODE_ENV){const e=Ve("Table");[["filterDropdownOpen","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"]].forEach(([t,n])=>{e.deprecated(!(t in o),t,n)}),e.deprecated(!("filterCheckall"in m),"filterCheckall","locale.filterCheckAll")}const N=y.open??x??C,_=u?.filteredKeys,[I,P]=(e=>{const t=l.useRef(e),[,n]=Oi();return[()=>t.current,e=>{t.current=e,n()}]})(H$(_)),R=({selectedKeys:e})=>{P(e)},O=(e,{node:t,checked:n})=>{R(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};l.useEffect(()=>{C&&R({selectedKeys:H$(_)})},[_]);const[D,M]=l.useState([]),B=e=>{M(e)},[T,A]=l.useState(""),L=e=>{const{value:t}=e.target;A(t)};l.useEffect(()=>{C||A("")},[C]);const j=e=>{const t=e?.length?e:null;return null!==t||u&&u.filteredKeys?It(t,u?.filteredKeys,!0)?null:void p({column:o,key:a,filteredKeys:t}):null},H=()=>{k(!1),j(I())},F=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&j([]),t&&k(!1),A(""),P(v?(b||[]).map(e=>String(e)):[])},V=({closeDropdown:e}={closeDropdown:!0})=>{e&&k(!1),j(I())},W=z({[`${r}-menu-without-submenu`]:(K=o.filters||[],!K.some(({children:e})=>e))});var K;const q=e=>{if(e.target.checked){const e=A$(o?.filters).map(e=>String(e));P(e)}else P([])},U=({filters:e})=>(e||[]).map((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=U({filters:e.children})),o}),X=e=>({...e,text:e.title,value:e.key,children:e.children?.map(e=>X(e))||[]});let G;const{direction:Y,renderEmpty:Z}=l.useContext(ht);if("function"==typeof o.filterDropdown)G=o.filterDropdown({prefixCls:`${r}-custom`,setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:I(),confirm:V,clearFilters:F,filters:o.filters,visible:N,close:()=>{k(!1)}});else if(o.filterDropdown)G=o.filterDropdown;else{const e=I()||[],a=()=>{const a=Z?.("Table.filter")??l.createElement(ym,{image:ym.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(o.filters||[]).length)return a;if("tree"===c)return l.createElement(l.Fragment,null,l.createElement(M$,{filterSearch:d,value:T,onChange:L,tablePrefixCls:t,locale:m}),l.createElement("div",{className:`${t}-filter-dropdown-tree`},s?l.createElement($b,{checked:e.length===A$(o.filters).length,indeterminate:e.length>0&&e.length<A$(o.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:q},m?.filterCheckall??m?.filterCheckAll):null,l.createElement(O$,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${r}-menu`,onCheck:O,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:U({filters:o.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:T.trim()?e=>"function"==typeof d?d(T,X(e)):L$(T,e.title):void 0})));const i=j$({filters:o.filters||[],filterSearch:d,prefixCls:n,filteredKeys:I(),filterMultiple:s,searchValue:T}),u=i.every(e=>null===e);return l.createElement(l.Fragment,null,l.createElement(M$,{filterSearch:d,value:T,onChange:L,tablePrefixCls:t,locale:m}),u?a:l.createElement(Hg,{selectable:!0,multiple:s,prefixCls:`${r}-menu`,className:W,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:h,openKeys:D,onOpenChange:B,items:i}))},i=()=>v?It((b||[]).map(e=>String(e)),e,!0):0===e.length;G=l.createElement(l.Fragment,null,a(),l.createElement("div",{className:`${n}-dropdown-btns`},l.createElement(Rd,{type:"link",size:"small",disabled:i(),onClick:()=>F()},m.filterReset),l.createElement(Rd,{type:"primary",size:"small",onClick:H},m.filterConfirm)))}o.filterDropdown&&(G=l.createElement(Sg,{selectable:void 0},G)),G=l.createElement(z$,{className:`${n}-dropdown`},G);const Q=(()=>{let e;return e="function"==typeof o.filterIcon?o.filterIcon(E):o.filterIcon?o.filterIcon:l.createElement(ry,null),l.createElement("span",{role:"button",tabIndex:-1,className:z(`${n}-trigger`,{active:E}),onClick:e=>{e.stopPropagation()}},e)})();if(S)return l.createElement("div",{className:`${n}-column`},l.createElement("span",{className:`${t}-column-title`},f),Q);const J=Pi({trigger:["click"],placement:"rtl"===Y?"bottomLeft":"bottomRight",children:Q,getPopupContainer:h},{...y,rootClassName:z(g,y.rootClassName),open:N,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==_&&P(H$(_)),k(e),e||o.filterDropdown||!i||H())},popupRender:()=>"function"==typeof y?.dropdownRender?y.dropdownRender(G):G});return l.createElement("div",{className:`${n}-column`},l.createElement("span",{className:`${t}-column-title`},f),l.createElement(ox,{...J}))},V$=(e,t,n)=>{let o=[];return(e||[]).forEach((e,r)=>{const a=UC(r,n),i=void 0!==e.filterDropdown;if(e.filters||i||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;i||(t=t?.map(String)??t),o.push({column:e,key:qC(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:qC(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(at(o),at(V$(e.children,t,a))))}),o};function W$(e,t,n,o,r,a,i,s,c){return n.map((n,d)=>{const u=UC(d,s),{filterOnClose:p=!0,filterMultiple:m=!0,filterMode:f,filterSearch:h}=n;let g=n;if(g.filters||g.filterDropdown){const s=qC(g,u),d=o.find(({key:e})=>s===e);g={...g,title:o=>l.createElement(F$,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:d,filterOnClose:p,filterMultiple:m,filterMode:f,filterSearch:h,triggerFilter:a,locale:r,getPopupContainer:i,rootClassName:c},XC(n.title,o))}}return"children"in g&&(g={...g,children:W$(e,t,g.children,o,r,a,i,u,c)}),g})}const K$=e=>{const t={};return e.forEach(({key:e,filteredKeys:n,column:o})=>{const r=e,{filters:a,filterDropdown:i}=o;if(i)t[r]=n||null;else if(Array.isArray(n)){const e=A$(a);t[r]=e.filter(e=>n.includes(String(e)))}else t[r]=null}),t},q$=(e,t,n)=>{const o=t.reduce((e,o)=>{const{column:{onFilter:r,filters:a},filteredKeys:i}=o;return r&&i&&i.length?e.map(e=>({...e})).filter(e=>i.some(o=>{const i=A$(a),l=i.findIndex(e=>String(e)===String(o)),s=-1!==l?i[l]:o;return e[n]&&(e[n]=q$(e[n],t,n)),r(s,e)})):e},e);return o},U$=e=>e.flatMap(e=>"children"in e?[e].concat(at(U$(e.children||[]))):[e]);var X$=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,onFilterChange:r,getPopupContainer:a,locale:i,rootClassName:s}=e,c=Ve("Table"),d=l.useMemo(()=>U$(o||[]),[o]),[u,p]=l.useState(()=>V$(d,!0)),m=l.useMemo(()=>{const e=V$(d,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e?t=!1:n=!1}),t){const e=(d||[]).map((e,t)=>qC(e,UC(t)));return u.filter(({key:t})=>e.includes(t)).map(t=>{const n=d[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return"production"!==process.env.NODE_ENV&&c(n,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),e},[d,u]),f=l.useMemo(()=>K$(m),[m]),h=e=>{const t=m.filter(({key:t})=>t!==e.key);t.push(e),p(t),r(K$(t),t)};return[e=>W$(t,n,e,m,i,h,a,void 0,s),m,f]};var G$=(e,t,n)=>{const o=l.useRef({});return[function(r){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){const a=new Map;function i(e){e.forEach((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"==typeof e&&t in e&&i(e[t]||[])})}i(e),o.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return o.current.kvMap?.get(r)}]};const Y$=10;const Z$="ascend",Q$="descend",J$=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,eS=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,tS=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:qC(e,t),multiplePriority:J$(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{const i=UC(a,n);e.children?("sortOrder"in e&&r(e,i),o=[].concat(at(o),at(tS(e.children,t,i)))):e.sorter&&("sortOrder"in e?r(e,i):t&&e.defaultSortOrder&&o.push({column:e,key:qC(e,i),multiplePriority:J$(e),sortOrder:e.defaultSortOrder}))}),o},nS=(e,t,n,o,r,a,i,s,c)=>{const d=(t||[]).map((t,d)=>{const u=UC(d,s);let p=t;if(p.sorter){const s=p.sortDirections||r,d=void 0===p.showSorterTooltip?i:p.showSorterTooltip,m=qC(p,u),f=n.find(({key:e})=>e===m),h=f?f.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,h);let v;if(t.sortIcon)v=t.sortIcon({sortOrder:h});else{const t=s.includes(Z$)&&l.createElement(Ab,{className:z(`${e}-column-sorter-up`,{active:h===Z$})}),n=s.includes(Q$)&&l.createElement(Db,{className:z(`${e}-column-sorter-down`,{active:h===Q$})});v=l.createElement("span",{className:z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:y,triggerDesc:x}=a||{};let w=b;g===Q$?w=x:g===Z$&&(w=y);const C="object"==typeof d?{title:w,...d}:{title:w};p={...p,className:z(p.className,{[`${e}-column-sort`]:h}),title:n=>{const o=`${e}-column-sorters`,r=l.createElement("span",{className:`${e}-column-title`},XC(t.title,n)),a=l.createElement("div",{className:o},r,v);return d?"boolean"!=typeof d&&"sorter-icon"===d?.target?l.createElement("div",{className:z(o,`${o}-tooltip-target-sorter`)},r,l.createElement(_f,{...C},v)):l.createElement(_f,{...C},a):a},onHeaderCell:n=>{const r=t.onHeaderCell?.(n)||{},a=r.onClick,i=r.onKeyDown;r.onClick=e=>{o({column:t,key:m,sortOrder:g,multiplePriority:J$(t)}),a?.(e)},r.onKeyDown=e=>{e.keyCode===hs.ENTER&&(o({column:t,key:m,sortOrder:g,multiplePriority:J$(t)}),i?.(e))};const l=((e,t)=>{const n=XC(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=l?.toString();return h&&(r["aria-sort"]="ascend"===h?"ascending":"descending"),r["aria-description"]=c?.sortable,r["aria-label"]=s||"",r.className=z(r.className,`${e}-column-has-sorters`),r.tabIndex=0,t.ellipsis&&(r.title=(l??"").toString()),r}}}return"children"in p&&(p={...p,children:nS(e,p.children,n,o,r,a,i,u,c)}),p});return d},oS=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},rS=e=>{const t=e.filter(({sortOrder:e})=>e).map(oS);if(0===t.length&&e.length){const t=e.length-1;return{...oS(e[t]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},aS=(e,t,n)=>{const o=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),r=e.slice(),a=o.filter(({column:{sorter:e},sortOrder:t})=>eS(e)&&t);return a.length?r.sort((e,t)=>{for(let n=0;n<a.length;n+=1){const o=a[n],{column:{sorter:r},sortOrder:i}=o,l=eS(r);if(l&&i){const n=l(e,t,i);if(0!==n)return i===Z$?n:-n}}return 0}).map(e=>{const o=e[n];return o?{...e,[n]:aS(o,t,n)}:e}):r};var iS=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:o,tableLocale:r,showSorterTooltip:a,onSorterChange:i,globalLocale:s}=e,[c,d]=l.useState(()=>tS(n,!0)),u=(e,t)=>{const n=[];return e.forEach((e,o)=>{const r=UC(o,t);if(n.push(qC(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,at(t))}}),n},p=l.useMemo(()=>{let e=!0;const t=tS(n,!1);if(!t.length){const e=u(n);return c.filter(({key:t})=>e.includes(t))}const o=[];function r(t){e?o.push(t):o.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{null===a?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),r(t))}),o},[n,c]),m=l.useMemo(()=>{const e=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),f=e=>{let t;t=!1!==e.multiplePriority&&p.length&&!1!==p[0].multiplePriority?[].concat(at(p.filter(({key:t})=>t!==e.key)),[e]):[e],d(t),i(rS(t),t)};return[e=>nS(t,e,p,f,o,r,a,void 0,s),p,m,()=>rS(p)]};const lS=(e,t)=>{const n=e.map(e=>{const n={...e};return n.title=XC(e.title,t),"children"in n&&(n.children=lS(n.children,t)),n});return n};var sS=e=>[l.useCallback(t=>lS(t,e),[e])];const cS=oC((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o});var dS=cS;const uS=bC((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o});var pS=uS;var mS=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:s}=e,c=`${Ut(n)} ${o} ${r}`,d=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Ut(s(o).mul(-1).equal())}\n ${Ut(s(s(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Ut(s(i).mul(-1).equal())} ${Ut(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}},...d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ut(n)} 0 ${Ut(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}};var fS=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Qr,wordBreak:"keep-all",[`\n &${t}-cell-fix-start-shadow,\n &${t}-cell-fix-end-shadow\n `]:{overflow:"visible",[`${t}-cell-content`]:{...Qr,display:"block"}},[`${t}-column-title`]:{...Qr,wordBreak:"keep-all"}}}}};var hS=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}};var gS=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:a,lineType:i,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:u,tablePaddingHorizontal:p,tableExpandedRowBg:m,paddingXXS:f,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${Ut(r)} ${i} ${l}`,w=y(f).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:{...oa(e),position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:Ut(g),background:s,border:x,borderRadius:d,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:w,insetInlineStart:w,height:r},"&::after":{top:w,bottom:w,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Ut(y(u).mul(-1).equal())} ${Ut(y(p).mul(-1).equal())}`,padding:`${Ut(u)} ${Ut(p)}`}}}};var vS=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:s,lineWidth:c,lineType:d,tableBorderColor:u,headerIconColor:p,fontSizeSM:m,tablePaddingHorizontal:f,borderRadius:h,motionDurationSlow:g,colorIcon:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:$,controlItemBgActive:S,boxShadowSecondary:E,filterDropdownMenuBg:k,calc:N}=e,_=`${n}-dropdown`,I=`${t}-filter-dropdown`,P=`${n}-tree`,R=`${Ut(c)} ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(i).mul(-1).equal(),marginInline:`${Ut(i)} ${Ut(N(f).div(2).mul(-1).equal())}`,padding:`0 ${Ut(i)}`,color:p,fontSize:m,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[I]:{...Jr(e),minWidth:r,backgroundColor:w,borderRadius:h,boxShadow:E,overflow:"hidden",[`${_}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${Ut(l)} 0`,color:x,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${Ut(l)} 0`,paddingInline:l,[P]:{padding:0},[`${P}-treenode ${P}-node-content-wrapper:hover`]:{backgroundColor:$},[`${P}-treenode-checkbox-checked ${P}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${I}-search`]:{padding:l,borderBottom:R,"&-input":{input:{minWidth:a},[o]:{color:x}}},[`${I}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Ut(N(l).sub(c).equal())} ${Ut(l)}`,overflow:"hidden",borderTop:R}}}},{[`${n}-dropdown ${I}, ${I}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function bS({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var yS=e=>{const{componentCls:t,lineWidth:n,motionDurationSlow:o,zIndexTableFixed:r,tableBg:a,calc:i}=e,l=`${t}-cell`,s=`${l}-fix`,c={position:"absolute",top:0,bottom:i(n).mul(-1).equal(),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[d,u]=bS(e);return{[`${t}-wrapper`]:{[`${l}${s}`]:{position:"sticky"},[s]:{zIndex:`calc(var(--z-offset-reverse) + ${r})`,background:a,"&:after":c,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":d,"&-end-shadow-show:after":u},[`${t}-container`]:{position:"relative","&:before, &:after":{...c,zIndex:`calc(var(--columns-count) * 2 + ${r} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:"none"},[`${t}-has-fix-end ${t}-container:after`]:{display:"none"},[`${t}-fix-start-shadow-show ${t}-container:before`]:d,[`${t}-fix-end-shadow-show ${t}-container:after`]:u}}};var xS=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Ut(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}};var wS=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Ut(n)} ${Ut(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Ut(n)} ${Ut(n)}`}}}}};var CS=e=>{const{componentCls:t}=e,[n,o]=bS(e);return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":o,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:"right"}},[`${t}-fix-start-shadow-show ${t}-container:before`]:o,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}};var $S=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:a,paddingXS:i,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:u,tableRowHoverBg:p,tablePaddingHorizontal:m,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(r).add(f(a).div(4)).add(f(i).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Ut(f(m).div(4).equal()),[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}};var SS=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,a,i)=>({[`${t}${t}-${e}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${Ut(r)} ${Ut(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Ut(o(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Ut(o(r).mul(-1).equal())} ${Ut(o(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Ut(o(r).mul(-1).equal()),marginInline:`${Ut(o(n).sub(a).equal())} ${Ut(o(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Ut(o(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}};var ES=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}};var kS=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:a,tableScrollBg:i,stickyScrollBarBorderRadius:l,lineWidth:s,lineType:c,tableBorderColor:d,zIndexTableFixed:u}=e,p=`${Ut(s)} ${c} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${u} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ut(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${u} + 1)`,display:"flex",alignItems:"center",background:i,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:o,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}};var NS=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,a=`${Ut(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${Ut(r(n).mul(-1).equal())} 0 ${o}`}}}};var _S=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:a,calc:i}=e,l=`${Ut(o)} ${r} ${a}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ut(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(o).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}};const IS=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:a,lineWidth:i,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:d,tableRadius:u,tableHeaderTextColor:p,motionDurationMid:m,tableHeaderBg:f,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:v,calc:b}=e,y=`${Ut(i)} ${l} ${s}`;return{[`${t}-wrapper`]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[t]:{...Jr(e),fontSize:c,background:d,borderRadius:`${Ut(u)} ${Ut(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${Ut(u)} ${Ut(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${Ut(o)} ${Ut(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Ut(o)} ${Ut(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:f,borderBottom:y,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${m}, border-color ${m}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:Ut(b(o).mul(-1).equal()),marginInline:`${Ut(b(a).sub(r).equal())}\n ${Ut(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:f,borderBottom:y,transition:`background ${m} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${Ut(o)} ${Ut(r)}`,color:g,background:v}}}};var PS=ra("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:a,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:d,rowSelectedBg:u,rowSelectedHoverBg:p,rowExpandedBg:m,cellPaddingBlock:f,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:w,footerColor:C,headerBorderRadius:$,cellFontSize:S,cellFontSizeMD:E,cellFontSizeSM:k,headerSplitColor:N,fixedHeaderSortActiveBg:_,headerFilterHoverBg:I,filterDropdownBg:P,expandIconBg:R,selectionColumnWidth:O,stickyScrollBarBg:D,calc:M}=e,B=Xo(e,{tableFontSize:S,tableBg:o,tableRadius:$,tablePaddingVertical:f,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:C,tableFooterBg:w,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:P,tableRowHoverBg:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:p,zIndexTableFixed:2,tableFontSizeMiddle:E,tableFontSizeSmall:k,tableSelectionColumnWidth:O,tableExpandIconBg:R,tableExpandColumnWidth:M(r).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:n});return[IS(B),xS(B),NS(B),ES(B),vS(B),mS(B),wS(B),gS(B),NS(B),hS(B),$S(B),yS(B),kS(B),fS(B),SS(B),CS(B),_S(B)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:d,colorBorderSecondary:u,borderRadiusLG:p,controlHeight:m,colorTextPlaceholder:f,fontSize:h,fontSizeSM:g,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:w,controlInteractiveSize:C}=e,$=new dr(r).onBackground(n).toHexString(),S=new dr(a).onBackground(n).toHexString(),E=new dr(t).onBackground(n).toHexString(),k=new dr(y),N=new dr(x),_=C/2-b,I=2*_+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:$,headerSortHoverBg:S,bodySortBg:E,rowHoverBg:E,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:u,headerBorderRadius:p,footerBg:E,footerColor:o,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:u,fixedHeaderSortActiveBg:$,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*v-3*b)/2-Math.ceil((1.4*g-3*b)/2),headerIconColor:k.clone().setA(k.a*w).toRgbString(),headerIconHoverColor:N.clone().setA(N.a*w).toRgbString(),expandIconHalfInner:_,expandIconSize:I,expandIconScale:C/I}},{resetFont:!1,unitless:{expandIconScale:!0}});const RS=[],OS=(e,n)=>{const{prefixCls:o,className:r,rootClassName:a,style:i,classNames:s,styles:c,size:d,bordered:u,dropdownPrefixCls:p,dataSource:m,pagination:f,rowSelection:h,rowKey:g,rowClassName:v,columns:b,children:y,childrenColumnName:x,onChange:w,getPopupContainer:C,loading:$,expandIcon:S,expandable:E,expandedRowRender:k,expandIconColumnIndex:N,indentSize:_,scroll:I,sortDirections:P,locale:R,showSorterTooltip:O={target:"full-header"},virtual:D}=e,M=Ve("Table"),B=l.useMemo(()=>b||Tw(y),[b,y]),T=tf(l.useMemo(()=>B.some(e=>e.responsive),[B])),A=l.useMemo(()=>{const e=new Set(Object.keys(T).filter(e=>T[e]));return B.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[B,T]),L=Be(e,["className","style","columns"]),{locale:j=Ci,table:H}=l.useContext(ht),{getPrefixCls:F,direction:V,renderEmpty:W,getPopupContainer:K,className:q,style:U,classNames:X,styles:G}=vt("table"),Y=zs(d),Z={...e,size:Y,bordered:u},[Q,J]=Li([X,s],[G,c],{props:Z},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),ee={...j.Table,...R},[te]=ki("global",Ci.global),ne=m||RS,oe=F("table",o),re=F("dropdown",p),[,ae]=Zr(),ie=Ji(oe),[le,se]=PS(oe,ie),ce={childrenColumnName:x,expandIconColumnIndex:N,...E,expandIcon:E?.expandIcon??H?.expandable?.expandIcon},{childrenColumnName:de="children"}=ce,ue=l.useMemo(()=>ne.some(e=>e?.[de])?"nest":k||E?.expandedRowRender?"row":null,[de,ne]),pe={body:l.useRef(null)},me=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return r}}(oe),fe=l.useRef(null),he=l.useRef(null);Fi(n,()=>({...he.current,nativeElement:fe.current}));const ge=g||H?.rowKey||"key";"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&M(!("function"==typeof ge&&ge.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const ve=l.useMemo(()=>"function"==typeof ge?ge:e=>e?.[ge],[ge]),[be]=G$(ne,de,ve),ye={},xe=(e,t,n=!1)=>{const o={...ye,...e};n&&(ye.resetPagination?.(),o.pagination?.current&&(o.pagination.current=1),f&&f.onChange?.(1,o.pagination?.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&pe.body.current&&function(e,t={}){const{getContainer:n=()=>window,callback:o,duration:r=450}=t,a=n(),i=Qi(a),l=Date.now();let s;const c=()=>{const t=Date.now()-l,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,i,e,r);Zi(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||"HTMLDocument"===a.constructor.name?a.documentElement.scrollTop=n:a.scrollTop=n,t<r?s=ut(c):"function"==typeof o&&o()};s=ut(c)}(0,{getContainer:()=>pe.body.current}),w?.(o.pagination,o.filters,o.sorter,{currentDataSource:q$(aS(ne,o.sorterStates,de),o.filterStates,de),action:t})},[we,Ce,$e,Se]=iS({prefixCls:oe,mergedColumns:A,onSorterChange:(e,t)=>{xe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:P||["ascend","descend"],tableLocale:ee,showSorterTooltip:O,globalLocale:te}),Ee=l.useMemo(()=>aS(ne,Ce,de),[de,ne,Ce]);ye.sorter=Se(),ye.sorterStates=Ce;const[ke,Ne,_e]=X$({prefixCls:oe,locale:ee,dropdownPrefixCls:re,mergedColumns:A,onFilterChange:(e,t)=>{xe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:C||K,rootClassName:z(a,ie)}),Ie=q$(Ee,Ne,de);ye.filters=_e,ye.filterStates=Ne;const Pe=l.useMemo(()=>{const e={};return Object.keys(_e).forEach(t=>{null!==_e[t]&&(e[t]=_e[t])}),{...$e,filters:e}},[$e,_e]),[Re]=sS(Pe),[Oe,De]=function(e,n,o){const{total:r=0,...a}=o&&"object"==typeof o?o:{},[i,l]=t.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Y$})),s=Pi(i,a,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);const d=(e,t)=>{l({current:e??1,pageSize:t||s.pageSize})};return!1===o?[{},()=>{}]:[{...s,onChange:(e,t)=>{o&&o.onChange?.(e,t),d(e,t),n(e,t||s?.pageSize)}},d]}(Ie.length,(e,t)=>{xe({pagination:{...ye.pagination,current:e,pageSize:t}},"paginate")},f);ye.pagination=!1===f?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach(t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)}),n}(Oe,f),ye.resetPagination=De;const Me=l.useMemo(()=>{if(!1===f||!Oe.pageSize)return Ie;const{current:e=1,total:t,pageSize:n=Y$}=Oe;return"production"!==process.env.NODE_ENV&&M(e>0,"usage","`current` should be positive number."),Ie.length<t?Ie.length>n?("production"!==process.env.NODE_ENV&&M(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ie.slice((e-1)*n,e*n)):Ie:Ie.slice((e-1)*n,e*n)},[!!f,Ie,Oe?.current,Oe?.pageSize,Oe?.total]),[Te,ze]=KC({prefixCls:oe,data:Ie,pageData:Me,getRowKey:ve,getRecordByKey:be,expandType:ue,childrenColumnName:de,locale:ee,getPopupContainer:C||K},h);ce.__PARENT_RENDER_ICON__=ce.expandIcon,ce.expandIcon=ce.expandIcon||S||function(e){return t=>{const{prefixCls:n,onExpand:o,record:r,expanded:a,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:e=>{o(r,e),e.stopPropagation()},className:z(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&a,[`${s}-collapsed`]:i&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}(ee),"nest"===ue&&void 0===ce.expandIconColumnIndex?ce.expandIconColumnIndex=h?1:0:ce.expandIconColumnIndex>0&&h&&(ce.expandIconColumnIndex-=1),"number"!=typeof ce.indentSize&&(ce.indentSize="number"==typeof _?_:15);const Ae=l.useCallback(e=>Re(Te(ke(we(e)))),[we,ke,Te]);let Le,je;if(!1!==f&&Oe?.total){let e;e=Oe.size?Oe.size:"small"===Y||"middle"===Y?"small":void 0;const t=(t="end")=>l.createElement(Nx,{...Oe,classNames:Q.pagination,styles:J.pagination,className:z(`${oe}-pagination ${oe}-pagination-${t}`,Oe.className),size:e}),{placement:n,position:o}=Oe,r=n??o,a=e=>{const t=e.toLowerCase();return t.includes("center")?"center":t.includes("left")||t.includes("start")?"start":"end"};if(Array.isArray(r)){const[e,n]=["top","bottom"].map(e=>r.find(t=>t.includes(e))),o=r.every(e=>"none"==`${e}`);e||n||o||(je=t()),e&&(Le=t(a(e))),n&&(je=t(a(n)))}else je=t();"production"!==process.env.NODE_ENV&&M.deprecated(!o,"pagination.position","pagination.placement")}const He=l.useMemo(()=>"boolean"==typeof $?{spinning:$}:"object"==typeof $&&null!==$?{spinning:!0,...$}:void 0,[$]),Fe=z(se,ie,`${oe}-wrapper`,q,{[`${oe}-wrapper-rtl`]:"rtl"===V},r,a,Q.root,le),We={...J.root,...U,...i},Ke=l.useMemo(()=>He?.spinning&&ne===RS?null:void 0!==R?.emptyText?R.emptyText:W?.("Table")||l.createElement(xm,{componentName:"Table"}),[He?.spinning,ne,R?.emptyText,W]),qe=D?pS:dS,Ue={},Xe=l.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:o,paddingXS:r,paddingSM:a}=ae,i=Math.floor(e*t);switch(Y){case"middle":return 2*a+i+n;case"small":return 2*r+i+n;default:return 2*o+i+n}},[ae,Y]);return D&&(Ue.listItemHeight=Xe),l.createElement("div",{ref:fe,className:Fe,style:We},l.createElement(Lx,{spinning:!1,...He},Le,l.createElement(qe,{...Ue,...L,classNames:Q,styles:J,ref:he,columns:A,direction:V,expandable:ce,prefixCls:oe,className:z({[`${oe}-middle`]:"middle"===Y,[`${oe}-small`]:"small"===Y,[`${oe}-bordered`]:u,[`${oe}-empty`]:0===ne.length},se,ie,le),data:Me,rowKey:ve,rowClassName:(e,t,n)=>{const o="function"==typeof v?v(e,t,n):v;return z({[`${oe}-row-selected`]:ze.has(ve(e,t))},o)},emptyText:Ke,internalHooks:Hx,internalRefs:pe,transformColumns:Ae,getContainerWidth:me,measureRowRender:e=>l.createElement(D$.Provider,{value:!0},l.createElement(fs,{getPopupContainer:e=>e},e))}),je))};var DS=l.forwardRef(OS);const MS=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(DS,{...e,ref:t,_renderTimes:n.current})},BS=l.forwardRef(MS);BS.SELECTION_COLUMN=LC,BS.EXPAND_COLUMN=jx,BS.SELECTION_ALL=jC,BS.SELECTION_INVERT=HC,BS.SELECTION_NONE=FC,BS.Column=yC,BS.ColumnGroup=xC,BS.Summary=pw,"production"!==process.env.NODE_ENV&&(BS.displayName="Table");var TS=BS,zS={breadcrumbContainer:"Breadcrumb-module_breadcrumbContainer__uBvx5",itemContent:"Breadcrumb-module_itemContent__EuvYW",itemIcon:"Breadcrumb-module_itemIcon__mJSYP",itemTitle:"Breadcrumb-module_itemTitle__g8smt",separator:"Breadcrumb-module_separator__VeZVd"};var AS={container:"Categories-module_container__U5Jrk",searchSection:"Categories-module_searchSection__OtRY7",searchInput:"Categories-module_searchInput__er5yT",searchIcon:"Categories-module_searchIcon__z6tia",searchIconImage:"Categories-module_searchIconImage__pGeZj",searchPlaceholder:"Categories-module_searchPlaceholder__ZmolO",searchValue:"Categories-module_searchValue__21-r9",realSearchInput:"Categories-module_realSearchInput__w4p-O",chipListContainer:"Categories-module_chipListContainer__pacAl",chipListRow:"Categories-module_chipListRow__h7kfy",chip:"Categories-module_chip__QYPTC",chipLabel:"Categories-module_chipLabel__TA2tB",chipRemove:"Categories-module_chipRemove__AZnYD",chipIcon:"Categories-module_chipIcon__jI19r",listsContainer:"Categories-module_listsContainer__qLgWk",categoryList:"Categories-module_categoryList__-hGax",categoryTitle:"Categories-module_categoryTitle__IojeE",categoryTitleText:"Categories-module_categoryTitleText__THhiO",chevronIcon:"Categories-module_chevronIcon__WSZAt",chevronImg:"Categories-module_chevronImg__u0z0y",chevronUp:"Categories-module_chevronUp__3IMMr",categoryItems:"Categories-module_categoryItems__rkjFa",categoryItemWrapper:"Categories-module_categoryItemWrapper__nSWPf",actionsContainer:"Categories-module_actionsContainer__E-9bc",cancelButton:"Categories-module_cancelButton__qSB8B",cancelButtonText:"Categories-module_cancelButtonText__iKhcE",applyButton:"Categories-module_applyButton__f9weo",applyButtonText:"Categories-module_applyButtonText__p7k-s",variant_single:"Categories-module_variant_single__nJbFl",variant_multiple:"Categories-module_variant_multiple__oR0nB"},LS={itemRow:"ItemRow-module_itemRow__rSDeO",infoIcon:"ItemRow-module_infoIcon__Ipwr-",infoIconImg:"ItemRow-module_infoIconImg__70lMY",content:"ItemRow-module_content__Jpfhn",iconWrapper:"ItemRow-module_iconWrapper__tyWxd",fileIconImg:"ItemRow-module_fileIconImg__UtL3V",starIconImg:"ItemRow-module_starIconImg__N5DF0",text:"ItemRow-module_text__2UBMv",label:"ItemRow-module_label__tf9KQ",body:"ItemRow-module_body__nwnZc",checkboxField:"ItemRow-module_checkboxField__fBewb",radioField:"ItemRow-module_radioField__opyC6",type_default:"ItemRow-module_type_default__bHpMa",type_hover:"ItemRow-module_type_hover__96wT9",type_selected:"ItemRow-module_type_selected__Pr3sl",type_disabled:"ItemRow-module_type_disabled__RLuUQ",type_danger:"ItemRow-module_type_danger__4i7oG"},jS={checkboxContainer:"Checkbox-module_checkboxContainer__t5ToR",checkboxWrapper:"Checkbox-module_checkboxWrapper__MQ4h7",checkboxInput:"Checkbox-module_checkboxInput__6emi6",checkbox:"Checkbox-module_checkbox__u-vF9",size_small:"Checkbox-module_size_small__y2One",size_medium:"Checkbox-module_size_medium__tyI8A",size_large:"Checkbox-module_size_large__Dxd5a",checkboxChecked:"Checkbox-module_checkboxChecked__9S3nh",checkboxCheck:"Checkbox-module_checkboxCheck__eC-aU",checkboxIndeterminateState:"Checkbox-module_checkboxIndeterminateState__KlYdz",checkboxIndeterminate:"Checkbox-module_checkboxIndeterminate__KWSZX",indeterminateBar:"Checkbox-module_indeterminateBar__ubEie",checkIconWrapper:"Checkbox-module_checkIconWrapper__5zoMJ",checkIconInner:"Checkbox-module_checkIconInner__-31sZ",checkIcon:"Checkbox-module_checkIcon__ZZUJy",state_default:"Checkbox-module_state_default__07N9s",checkboxDisabled:"Checkbox-module_checkboxDisabled__JuvUf",state_hover:"Checkbox-module_state_hover__-aNwA",state_focus:"Checkbox-module_state_focus__iyLdL",state_pressed:"Checkbox-module_state_pressed__IXWhV",label:"Checkbox-module_label__riL34"};const HS=({checked:t=!1,indeterminate:n=!1,disabled:o=!1,state:r="default",size:a="medium",label:i="",onChange:l,className:s="",id:c,name:d,value:u,...p})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(r),f="number"==typeof a,h=f?"custom":a.toLowerCase(),g=o||"disabled"===r,v=[jS.checkboxContainer,s].filter(Boolean).join(" "),b=[jS.checkbox,jS[`size_${h}`],t&&jS.checkboxChecked,!t&&n&&jS.checkboxIndeterminateState,g&&jS.checkboxDisabled,!g&&jS[`state_${m}`]].filter(Boolean).join(" "),y=c||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:v,children:[e.jsxs("div",{className:jS.checkboxWrapper,children:[e.jsx("input",{type:"checkbox",id:y,name:d,value:u,checked:t,disabled:g,onChange:e=>{!g&&l&&l(e)},className:jS.checkboxInput,"aria-checked":n?"mixed":t,"aria-disabled":g,...p}),e.jsxs("label",{htmlFor:y,className:b,style:f?{width:`${a}px`,height:`${a}px`}:{},children:[t&&e.jsx("div",{className:jS.checkboxCheck,children:e.jsx("div",{className:jS.checkIconWrapper,children:e.jsx("div",{className:jS.checkIconInner,children:e.jsx(H,{name:"Check",size:12,className:jS.checkIcon})})})}),!t&&n&&e.jsx("div",{className:jS.checkboxIndeterminate,children:e.jsx("div",{className:jS.indeterminateBar})})]})]}),i&&e.jsx("label",{htmlFor:y,className:jS.label,children:i})]})};var FS={radioContainer:"Radio-module_radioContainer__nD7Aj",radioWrapper:"Radio-module_radioWrapper__8nQVu",radioInput:"Radio-module_radioInput__GtQt3",radio:"Radio-module_radio__fnkSK",size_small:"Radio-module_size_small__k7iT3",size_medium:"Radio-module_size_medium__KpT8h",size_large:"Radio-module_size_large__81Vmf",radioChecked:"Radio-module_radioChecked__BaL8g",radioDot:"Radio-module_radioDot__RilTO",state_default:"Radio-module_state_default__zFRxN",radioDisabled:"Radio-module_radioDisabled__i08xK",state_hover:"Radio-module_state_hover__h6W-X",state_focus:"Radio-module_state_focus__8UGb9",state_pressed:"Radio-module_state_pressed__k6gEW",label:"Radio-module_label__rS27E"};const VS=({checked:t=!1,disabled:n=!1,state:o="default",size:r="medium",label:a="",name:i,value:l,onChange:s,className:c="",id:d,...u})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),m="number"==typeof r,f=m?"custom":r.toLowerCase(),h=n||"disabled"===o,g=[FS.radioContainer,c].filter(Boolean).join(" "),v=[FS.radio,FS[`size_${f}`],t&&FS.radioChecked,h&&FS.radioDisabled,!h&&FS[`state_${p}`]].filter(Boolean).join(" "),b=d||`radio-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:g,children:[e.jsxs("div",{className:FS.radioWrapper,children:[e.jsx("input",{type:"radio",id:b,name:i,value:l,checked:t,disabled:h,onChange:e=>{!h&&s&&s(e)},className:FS.radioInput,"aria-checked":t,"aria-disabled":h,...u}),e.jsx("label",{htmlFor:b,className:v,style:m?{width:`${r}px`,height:`${r}px`}:{},children:t&&e.jsx("div",{className:FS.radioDot})})]}),a&&e.jsx("label",{htmlFor:b,className:FS.label,children:a})]})},WS=({showLeftIcon:t=!0,hasCheckbox:n=!1,hasRadio:o=!1,checked:r=!1,chooseLeftIcon:a=null,label:i="Item",showBody:l=!1,body:s="Body",showInfo:c=!1,showRightIcon:d=!1,chooseRightIcon:u=null,type:p="Default",onClick:m,className:f="",...h})=>{const g=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(p),v="disabled"===g,b=v?"div":"button",y=[LS.itemRow,LS[`type_${g}`],f].filter(Boolean).join(" "),x=r||"selected"===g;return e.jsxs(b,{className:y,onClick:m,disabled:v,type:"button"===b?"button":void 0,...h,children:[c&&e.jsx("div",{className:LS.infoIcon,children:e.jsx(H,{name:"Info",size:14,className:LS.infoIconImg})}),e.jsxs("div",{className:LS.content,children:[t&&e.jsx("div",{className:LS.iconWrapper,children:a||e.jsx(H,{name:"File",size:14,className:LS.fileIconImg})}),e.jsxs("div",{className:LS.text,children:[e.jsx("p",{className:LS.label,children:i}),l&&e.jsx("p",{className:LS.body,children:s})]}),d&&e.jsx("div",{className:LS.iconWrapper,children:u||e.jsx(H,{name:"Star",size:14,className:LS.starIconImg})})]}),n&&e.jsx("div",{className:LS.checkboxField,children:e.jsx(HS,{checked:x,disabled:v,size:16,readOnly:!m})}),o&&e.jsx("div",{className:LS.radioField,children:e.jsx(VS,{checked:x,disabled:v,size:16,readOnly:!m})})]})};var KS={cell:"Cell-module_cell__wdOpC",label:"Cell-module_label__1JEFV",defaultContent:"Cell-module_defaultContent__Vv8Xy",leadingIcon:"Cell-module_leadingIcon__zmwIZ",trailingIcon:"Cell-module_trailingIcon__6DTXX",avatarContent:"Cell-module_avatarContent__moY52",avatar:"Cell-module_avatar__gUaMQ",avatarPlaceholder:"Cell-module_avatarPlaceholder__RK0QA",statusContent:"Cell-module_statusContent__izq8j",statusDot:"Cell-module_statusDot__5-hPy",status_active:"Cell-module_status_active__yHLS8",status_online:"Cell-module_status_online__oCYlx",status_inactive:"Cell-module_status_inactive__6Jdoj",status_offline:"Cell-module_status_offline__ls8W2",status_pending:"Cell-module_status_pending__ID-H1",socialContent:"Cell-module_socialContent__YuoLv",socialIcon:"Cell-module_socialIcon__ME-Dx",actionsContent:"Cell-module_actionsContent__V-4Lc",actionButton:"Cell-module_actionButton__AJYz-",checkboxContent:"Cell-module_checkboxContent__F2jOW",toggleContent:"Cell-module_toggleContent__0JbeA",userCountContent:"Cell-module_userCountContent__lehFs",userIconWrapper:"Cell-module_userIconWrapper__qqZpf",count:"Cell-module_count__N1yFG",badge:"Cell-module_badge__7KrfZ"},qS={toggleContainer:"Toggle-module_toggleContainer__lTsof",toggleWrapper:"Toggle-module_toggleWrapper__jWaBk",toggleInput:"Toggle-module_toggleInput__srGOt",toggle:"Toggle-module_toggle__zjgHl",toggleThumb:"Toggle-module_toggleThumb__hjTqE",size_small:"Toggle-module_size_small__xxt4m",size_medium:"Toggle-module_size_medium__mZRV2",size_large:"Toggle-module_size_large__dYf3X",toggleChecked:"Toggle-module_toggleChecked__ZM7BJ",state_default:"Toggle-module_state_default__Sk1P2",toggleDisabled:"Toggle-module_toggleDisabled__I8Z63",state_hover:"Toggle-module_state_hover__-Hx6l",state_focus:"Toggle-module_state_focus__E5i0q",state_pressed:"Toggle-module_state_pressed__U2veO",label:"Toggle-module_label__CzLo8"};const US=({checked:t=!1,disabled:n=!1,state:o="default",size:r="medium",label:a="",onChange:i,className:l="",id:s,name:c,value:d,...u})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),m=r.toLowerCase(),f=n||"disabled"===o,h=[qS.toggleContainer,l].filter(Boolean).join(" "),g=[qS.toggle,qS[`size_${m}`],t&&qS.toggleChecked,f&&qS.toggleDisabled,!f&&qS[`state_${p}`]].filter(Boolean).join(" "),v=s||`toggle-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:h,children:[e.jsxs("div",{className:qS.toggleWrapper,children:[e.jsx("input",{type:"checkbox",id:v,name:c,value:d,checked:t,disabled:f,onChange:e=>{!f&&i&&i(e)},className:qS.toggleInput,"aria-checked":t,"aria-disabled":f,role:"switch",...u}),e.jsx("label",{htmlFor:v,className:g,children:e.jsx("span",{className:qS.toggleThumb})})]}),a&&e.jsx("label",{htmlFor:v,className:qS.label,children:a})]})};var XS="CellHeader-module_cellHeader__9mlaW",GS="CellHeader-module_sortable__bpx5y",YS="CellHeader-module_content__6-yV0",ZS="CellHeader-module_checkboxWrapper__ah1PJ",QS="CellHeader-module_sortIcon__6rgJk",JS="CellHeader-module_label__nRBcj";var eE={chip:"Chip-module_chip__QDbLV",label:"Chip-module_label__jkrIf",iconWrapper:"Chip-module_iconWrapper__NWuWA",icon:"Chip-module_icon__Tkzl1",size_small:"Chip-module_size_small__FfLgY",size_medium:"Chip-module_size_medium__lOEvU",state_default:"Chip-module_state_default__Qcr59",state_hover:"Chip-module_state_hover__Fh-CV",state_pressed:"Chip-module_state_pressed__icmBU",state_active:"Chip-module_state_active__JenYe"};const tE=({label:t="Label",showRightIcon:n=!0,showLeftIcon:o=!0,chooseLeftIcon:r=null,chooseRightIcon:a=null,state:i="default",size:l="medium",onRemove:s,onClick:c,className:d="",...u})=>{const p=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(i),m=(l||"medium").toLowerCase(),f="small"===m?12:14,h=[eE.chip,eE[`size_${m}`],eE[`state_${p}`],d].filter(Boolean).join(" "),g=c?"button":"div";return e.jsxs(g,{className:h,onClick:c,type:c?"button":void 0,...u,children:[o?r||e.jsx("div",{className:eE.iconWrapper,children:e.jsx(H,{name:"x",size:f,className:eE.icon,variant:"active"===p?"white":"default"})}):null,e.jsx("span",{className:eE.label,children:t}),n?a||e.jsx("div",{className:eE.iconWrapper,children:e.jsx(H,{name:"x",size:f,className:eE.icon,variant:"active"===p?"white":"default",onClick:e=>{e.stopPropagation(),s&&s()}})}):null]})};var nE={container:"ChipList-module_container__3H1e7",row:"ChipList-module_row__961Z3",layout_single:"ChipList-module_layout_single__t5ANI",layout_double:"ChipList-module_layout_double__5ihDG",layout_doublerow:"ChipList-module_layout_doublerow__qSwD-"};var oE={container:"Dropdown-module_container__ErjTf",type_medium:"Dropdown-module_type_medium__-9PP9",type_small:"Dropdown-module_type_small__RBIcw",label:"Dropdown-module_label__r-lFx",description:"Dropdown-module_description__o8wRo",dropdownWrapper:"Dropdown-module_dropdownWrapper__UL4uW",fieldWrapper:"Dropdown-module_fieldWrapper__tDsIq",dropdownWrapper_type_medium:"Dropdown-module_dropdownWrapper_type_medium__fvECq",dropdownWrapper_type_small:"Dropdown-module_dropdownWrapper_type_small__Giu8S",dropdownInner:"Dropdown-module_dropdownInner__-VN-B",placeholder:"Dropdown-module_placeholder__ZqFux",value:"Dropdown-module_value__pqCLT",chevronWrapper:"Dropdown-module_chevronWrapper__zvdRH",chevronIcon:"Dropdown-module_chevronIcon__iBeCV",chipList:"Dropdown-module_chipList__s1lVm",chip:"Dropdown-module_chip__7rR17",chipLabel:"Dropdown-module_chipLabel__-ksTf",chipRemove:"Dropdown-module_chipRemove__yQ6wd",chipIcon:"Dropdown-module_chipIcon__SMMHv",error:"Dropdown-module_error__5Ptsm",dropdownWrapper_type_medium_state_default:"Dropdown-module_dropdownWrapper_type_medium_state_default__5bpre",dropdownWrapper_type_small_state_default:"Dropdown-module_dropdownWrapper_type_small_state_default__skJVV",dropdownWrapper_type_medium_state_hover:"Dropdown-module_dropdownWrapper_type_medium_state_hover__44jce",dropdownWrapper_type_small_state_hover:"Dropdown-module_dropdownWrapper_type_small_state_hover__7hn5F",dropdownWrapper_type_medium_state_selected:"Dropdown-module_dropdownWrapper_type_medium_state_selected__OC89t",dropdownWrapper_type_small_state_selected:"Dropdown-module_dropdownWrapper_type_small_state_selected__BIPst",dropdownWrapper_type_medium_state_focused:"Dropdown-module_dropdownWrapper_type_medium_state_focused__9BNJD",dropdownWrapper_type_small_state_focused:"Dropdown-module_dropdownWrapper_type_small_state_focused__Eq0nK",dropdownWrapper_type_medium_state_error:"Dropdown-module_dropdownWrapper_type_medium_state_error__YgZfn",dropdownWrapper_type_small_state_error:"Dropdown-module_dropdownWrapper_type_small_state_error__40JGM",dropdownWrapper_type_medium_state_disabled:"Dropdown-module_dropdownWrapper_type_medium_state_disabled__hibT2",dropdownWrapper_type_small_state_disabled:"Dropdown-module_dropdownWrapper_type_small_state_disabled__siGnC"};var rE={dropdownNestedColumn:"DropdownNestedColumn-module_dropdownNestedColumn__-cag7",titleFrame:"DropdownNestedColumn-module_titleFrame__-offj",titleAndCta:"DropdownNestedColumn-module_titleAndCta__4y7z4",titleText:"DropdownNestedColumn-module_titleText__G5mny",clearAllButton:"DropdownNestedColumn-module_clearAllButton__jEO-i",clearAllText:"DropdownNestedColumn-module_clearAllText__WR6Lj",chevronButton:"DropdownNestedColumn-module_chevronButton__pJED1",chevronContainer:"DropdownNestedColumn-module_chevronContainer__KBjay",chevronIcon:"DropdownNestedColumn-module_chevronIcon__B-Vxx",dropdownWithSearch:"DropdownNestedColumn-module_dropdownWithSearch__pLH5k",dropdownContent:"DropdownNestedColumn-module_dropdownContent__yxwX7",chipListSection:"DropdownNestedColumn-module_chipListSection__hz0gx",chipGrid:"DropdownNestedColumn-module_chipGrid__7wFEN",noChips:"DropdownNestedColumn-module_noChips__wktQg",moreChipsChip:"DropdownNestedColumn-module_moreChipsChip__SVtTL",searchInputSection:"DropdownNestedColumn-module_searchInputSection__QRUBF",searchInput:"DropdownNestedColumn-module_searchInput__xvb2F",searchIcon:"DropdownNestedColumn-module_searchIcon__aASpj",searchField:"DropdownNestedColumn-module_searchField__UP-pl",itemsList:"DropdownNestedColumn-module_itemsList__V41r6",itemsContainer:"DropdownNestedColumn-module_itemsContainer__2IXay",noItems:"DropdownNestedColumn-module_noItems__oiWmw"};const aE=({title:n="Title",expanded:o=!0,chips:r=[],items:a=[],onClearAll:i,onChipRemove:l,onItemClick:s,className:c="",...d})=>{const[u,p]=t.useState(o),[m,f]=t.useState(""),h=[rE.dropdownNestedColumn,c].filter(Boolean).join(" "),g=e.jsxs("div",{className:rE.titleAndCta,children:[e.jsx("p",{className:rE.titleText,children:n}),e.jsx("button",{className:rE.clearAllButton,onClick:e=>{e.stopPropagation(),i&&i()},type:"button",children:e.jsx("p",{className:rE.clearAllText,children:"Clear all"})})]}),v=a.filter(e=>e.label.toLowerCase().includes(m.toLowerCase()));return e.jsxs("div",{className:h,...d,children:[e.jsxs("div",{className:rE.titleFrame,children:[g,e.jsx("button",{className:rE.chevronButton,onClick:()=>{p(!u)},type:"button",children:e.jsx("div",{className:rE.chevronContainer,children:e.jsx("div",{className:rE.chevronIcon,style:{transform:u?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:e.jsx(H,{name:"caret-up",size:16})})})})]}),u&&e.jsx("div",{className:rE.dropdownWithSearch,children:e.jsxs("div",{className:rE.dropdownContent,children:[e.jsx("div",{className:rE.chipListSection,children:r.length>0?e.jsxs("div",{className:rE.chipGrid,children:[r.slice(0,5).map(t=>e.jsx(tE,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{l&&l(t)}},t.id||t.label)),r.length>5&&e.jsx(tE,{label:"+"+(r.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:rE.moreChipsChip})]}):e.jsx("div",{className:rE.noChips,children:"No items selected"})}),e.jsx("div",{className:rE.searchInputSection,children:e.jsxs("div",{className:rE.searchInput,children:[e.jsx(H,{name:"magnifying-glass",size:16,className:rE.searchIcon}),e.jsx("input",{type:"text",className:rE.searchField,placeholder:"Search",value:m,onChange:e=>f(e.target.value)})]})}),e.jsx("div",{className:rE.itemsList,children:e.jsx("div",{className:rE.itemsContainer,children:v.length>0?v.map((t,n)=>e.jsx(WS,{label:t.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:t.checked||!1,type:t.type||"Default",onClick:()=>{s&&s(t)}},t.id||n)):e.jsx("div",{className:rE.noItems,children:"No items found"})})})]})})]})};var iE={dropdownNested:"DropdownNested-module_dropdownNested__S7idI",columns:"DropdownNested-module_columns__VciGu",column:"DropdownNested-module_column__clf4o",ctas:"DropdownNested-module_ctas__MWS3w",cancelButton:"DropdownNested-module_cancelButton__c-8mc",applyButton:"DropdownNested-module_applyButton__AvCpG"};var lE={iconButton:"IconButton-module_iconButton__RX7bN",icon:"IconButton-module_icon__1mvRD",loaderIcon:"IconButton-module_loaderIcon__AB3CY",spin:"IconButton-module_spin__dIR-z",size_medium:"IconButton-module_size_medium__vDKx5",size_small:"IconButton-module_size_small__6QIGb",style_primary:"IconButton-module_style_primary__iuggd",state_default:"IconButton-module_state_default__CRDoC",state_hover:"IconButton-module_state_hover__gREn9",state_focus:"IconButton-module_state_focus__rPK-E",state_disabled:"IconButton-module_state_disabled__LFZlJ",state_loading:"IconButton-module_state_loading__jB6U7",style_secondary:"IconButton-module_style_secondary__3em9O",style_neutral:"IconButton-module_style_neutral__hzeSD",style_subtle:"IconButton-module_style_subtle__QK4-l"};var sE={overlay:"Modal-module_overlay__-RqGQ",fadeIn:"Modal-module_fadeIn__bf4KI",modal:"Modal-module_modal__MUsZA",slideUp:"Modal-module_slideUp__ZdbV-",small:"Modal-module_small__tMzhZ",medium:"Modal-module_medium__ww1Z7",large:"Modal-module_large__J-zZn",closeButton:"Modal-module_closeButton__1Oslg",content:"Modal-module_content__1bCpv",iconWrapper:"Modal-module_iconWrapper__99kUR",textStack:"Modal-module_textStack__QbEZb",title:"Modal-module_title__TUIss",description:"Modal-module_description__o6Czk",actions:"Modal-module_actions__YzyOX"};var cE={notification:"Notification-module_notification__U2DR1",size_small:"Notification-module_size_small__kHQRv",size_medium:"Notification-module_size_medium__hJpV4",variant_primary:"Notification-module_variant_primary__OQM8e",variant_neutral:"Notification-module_variant_neutral__tmXIq",variant_subtle:"Notification-module_variant_subtle__uwELf",count:"Notification-module_count__XmK01",plus:"Notification-module_plus__oBCK6"};const dE=({count:t=0,variant:n="primary",size:o="medium",maxCount:r=99,className:a="",...i})=>{const l=[cE.notification,cE[`variant_${n}`],cE[`size_${o}`],a].filter(Boolean).join(" ");return e.jsx("span",{className:l,...i,children:(()=>{if("number"==typeof t&&t>r)return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:cE.count,children:r}),e.jsx("span",{className:cE.plus,children:"+"})]});if("string"==typeof t&&t.endsWith("+")){const n=t.slice(0,-1);return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:cE.count,children:n}),e.jsx("span",{className:cE.plus,children:"+"})]})}return t})()})};var uE={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};var pE={container:"Search-module_container__NslV2",input:"Search-module_input__-SRzW",inputInner:"Search-module_inputInner__BFwA4",searchIcon:"Search-module_searchIcon__kOb49",searchIconImage:"Search-module_searchIconImage__JG5O3",placeholder:"Search-module_placeholder__XGEtM",value:"Search-module_value__r-4hD",realInput:"Search-module_realInput__REpAG",inputInner_state_focused:"Search-module_inputInner_state_focused__Zl5a2",cursor:"Search-module_cursor__hsCJx",blink:"Search-module_blink__PSxpt",cursorTyping:"Search-module_cursorTyping__wAW5b",error:"Search-module_error__4NuH1",input_state_default:"Search-module_input_state_default__5QR0F",inputInner_state_default:"Search-module_inputInner_state_default__YpSHL",input_state_hover:"Search-module_input_state_hover__zvOhd",inputInner_state_hover:"Search-module_inputInner_state_hover__Gxcb9",input_state_focused:"Search-module_input_state_focused__TDgsA",input_state_typing:"Search-module_input_state_typing__GFivl",inputInner_state_typing:"Search-module_inputInner_state_typing__9zezH",input_state_filled:"Search-module_input_state_filled__3FE6u",inputInner_state_filled:"Search-module_inputInner_state_filled__qOdD4",input_state_filledHover:"Search-module_input_state_filledHover__kQu9I",inputInner_state_filledHover:"Search-module_inputInner_state_filledHover__2EMWM",input_state_error:"Search-module_input_state_error__F-GNS",inputInner_state_error:"Search-module_inputInner_state_error__zTv5f",input_state_disabled:"Search-module_input_state_disabled__F5cPc",inputInner_state_disabled:"Search-module_inputInner_state_disabled__gKmLt"};var mE={statusIndicator:"StatusIndicator-module_statusIndicator__dYsH-",indicator:"StatusIndicator-module_indicator__YQzs6",label:"StatusIndicator-module_label__WM5I3",size_medium:"StatusIndicator-module_size_medium__Fp-1x",state_default:"StatusIndicator-module_state_default__J4F1G",state_hover:"StatusIndicator-module_state_hover__Hmr-w",state_pressed:"StatusIndicator-module_state_pressed__Cz8o1",state_active:"StatusIndicator-module_state_active__nOiXv",state_disabled:"StatusIndicator-module_state_disabled__umvwX"};var fE={tab:"Tab-module_tab__SstW0",label:"Tab-module_label__3WQV-",active:"Tab-module_active__RQPjd",disabled:"Tab-module_disabled__m49K5",underline:"Tab-module_underline__IupnS",slideIn:"Tab-module_slideIn__owi-7"};const hE=({label:t,count:n,isActive:o=!1,disabled:r=!1,onClick:a,className:i="",...l})=>{const s=[fE.tab,o&&fE.active,r&&fE.disabled,i].filter(Boolean).join(" ");return e.jsxs("button",{className:s,onClick:e=>{!r&&a&&a(e)},disabled:r,type:"button",role:"tab","aria-selected":o,...l,children:[e.jsx("span",{className:fE.label,children:t}),null!=n&&e.jsx(dE,{count:n,variant:r?"subtle":o?"primary":"neutral",size:"small",className:fE.notification}),o&&e.jsx("div",{className:fE.underline})]})};var gE={tabList:"TabList-module_tabList__sSh3n"};const vE="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function bE(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function yE(e){return"nodeType"in e}function xE(e){var t,n;return e?bE(e)?e:yE(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function wE(e){const{Document:t}=xE(e);return e instanceof t}function CE(e){return!bE(e)&&e instanceof xE(e).HTMLElement}function $E(e){return e instanceof xE(e).SVGElement}function SE(e){return e?bE(e)?e.document:yE(e)?wE(e)?e:CE(e)||$E(e)?e.ownerDocument:document:document:document}const EE=vE?t.useLayoutEffect:t.useEffect;function kE(e){const n=t.useRef(e);return EE(()=>{n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return null==n.current?void 0:n.current(...t)},[])}function NE(e,n){void 0===n&&(n=[e]);const o=t.useRef(e);return EE(()=>{o.current!==e&&(o.current=e)},n),o}function _E(e,n){const o=t.useRef();return t.useMemo(()=>{const t=e(o.current);return o.current=t,t},[...n])}function IE(e){const n=kE(e),o=t.useRef(null),r=t.useCallback(e=>{e!==o.current&&(null==n||n(e,o.current)),o.current=e},[]);return[o,r]}function PE(e){const n=t.useRef();return t.useEffect(()=>{n.current=e},[e]),n.current}let RE={};function OE(e,n){return t.useMemo(()=>{if(n)return n;const t=null==RE[e]?0:RE[e]+1;return RE[e]=t,e+"-"+t},[e,n])}function DE(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((t,n)=>{const o=Object.entries(n);for(const[n,r]of o){const o=t[n];null!=o&&(t[n]=o+e*r)}return t},{...t})}}const ME=DE(1),BE=DE(-1);function TE(e){if(!e)return!1;const{KeyboardEvent:t}=xE(e.target);return t&&e instanceof t}function zE(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=xE(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const AE=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[AE.Translate.toString(e),AE.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),LE="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function jE(e){return e.matches(LE)?e:e.querySelector(LE)}const HE={display:"none"};function FE(e){let{id:t,value:n}=e;return s.default.createElement("div",{id:t,style:HE},n)}function VE(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return s.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const WE=t.createContext(null);const KE={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},qE={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function UE(e){let{announcements:n=qE,container:r,hiddenTextDescribedById:a,screenReaderInstructions:i=KE}=e;const{announce:l,announcement:c}=function(){const[e,n]=t.useState("");return{announce:t.useCallback(e=>{null!=e&&n(e)},[]),announcement:e}}(),d=OE("DndLiveRegion"),[u,p]=t.useState(!1);if(t.useEffect(()=>{p(!0)},[]),function(e){const n=t.useContext(WE);t.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)},[e,n])}(t.useMemo(()=>({onDragStart(e){let{active:t}=e;l(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:o}=e;n.onDragMove&&l(n.onDragMove({active:t,over:o}))},onDragOver(e){let{active:t,over:o}=e;l(n.onDragOver({active:t,over:o}))},onDragEnd(e){let{active:t,over:o}=e;l(n.onDragEnd({active:t,over:o}))},onDragCancel(e){let{active:t,over:o}=e;l(n.onDragCancel({active:t,over:o}))}}),[l,n])),!u)return null;const m=s.default.createElement(s.default.Fragment,null,s.default.createElement(FE,{id:a,value:i.draggable}),s.default.createElement(VE,{id:d,announcement:c}));return r?o.createPortal(m,r):m}var XE;function GE(){}function YE(e,n){return t.useMemo(()=>({sensor:e,options:null!=n?n:{}}),[e,n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(XE||(XE={}));const ZE=Object.freeze({x:0,y:0});function QE(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function JE(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function ek(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function tk(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function nk(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function ok(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const rk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=ok(t,t.left,t.top),a=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=QE(ok(o),r);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(JE)};function ak(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=r-o,l=a-n;if(o<r&&n<a){const n=t.width*t.height,o=e.width*e.height,r=i*l;return Number((r/(n+o-r)).toFixed(4))}return 0}const ik=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const e of o){const{id:o}=e,a=n.get(o);if(a){const n=ak(a,t);n>0&&r.push({id:o,data:{droppableContainer:e,value:n}})}}return r.sort(ek)};function lk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ZE}function sk(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const ck=sk(1);const dk={ignoreTransform:!1};function uk(e,t){void 0===t&&(t=dk);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=xE(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!o)return e;const{scaleX:r,scaleY:a,x:i,y:l}=o,s=e.left-i-(1-r)*parseFloat(n),c=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=a?e.height/a:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(n,t,o))}const{top:o,left:r,width:a,height:i,bottom:l,right:s}=n;return{top:o,left:r,width:a,height:i,bottom:l,right:s}}function pk(e){return uk(e,{ignoreTransform:!0})}function mk(e,t){const n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(wE(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!CE(r)||$E(r))return n;if(n.includes(r))return n;const a=xE(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=xE(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const o=t[e];return"string"==typeof o&&n.test(o)})}(r,a)&&n.push(r),function(e,t){return void 0===t&&(t=xE(e).getComputedStyle(e)),"fixed"===t.position}(r,a)?n:o(r.parentNode)}(e):n}function fk(e){const[t]=mk(e,1);return null!=t?t:null}function hk(e){return vE&&e?bE(e)?e:yE(e)?wE(e)||e===SE(e).scrollingElement?window:CE(e)?e:null:null:null}function gk(e){return bE(e)?e.scrollX:e.scrollLeft}function vk(e){return bE(e)?e.scrollY:e.scrollTop}function bk(e){return{x:gk(e),y:vk(e)}}var yk;function xk(e){return!(!vE||!e)&&e===document.scrollingElement}function wk(e){const t={x:0,y:0},n=xk(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(yk||(yk={}));const Ck={x:.2,y:.2};function $k(e,t,n,o,r){let{top:a,left:i,right:l,bottom:s}=n;void 0===o&&(o=10),void 0===r&&(r=Ck);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=wk(e),m={x:0,y:0},f={x:0,y:0},h=t.height*r.y,g=t.width*r.x;return!c&&a<=t.top+h?(m.y=yk.Backward,f.y=o*Math.abs((t.top+h-a)/h)):!d&&s>=t.bottom-h&&(m.y=yk.Forward,f.y=o*Math.abs((t.bottom-h-s)/h)),!p&&l>=t.right-g?(m.x=yk.Forward,f.x=o*Math.abs((t.right-g-l)/g)):!u&&i<=t.left+g&&(m.x=yk.Backward,f.x=o*Math.abs((t.left+g-i)/g)),{direction:m,speed:f}}function Sk(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Ek(e){return e.reduce((e,t)=>ME(e,bk(t)),ZE)}const kk=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+gk(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+vk(t),0)}]];class Nk{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=mk(t),o=Ek(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of kk)for(const a of t)Object.defineProperty(this,a,{get:()=>{const t=r(n),i=o[e]-t;return this.rect[a]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class _k{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Ik(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var Pk,Rk;function Ok(e){e.preventDefault()}function Dk(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Pk||(Pk={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Rk||(Rk={}));const Mk={start:[Rk.Space,Rk.Enter],cancel:[Rk.Esc],end:[Rk.Space,Rk.Enter,Rk.Tab]},Bk=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Rk.Right:return{...n,x:n.x+25};case Rk.Left:return{...n,x:n.x-25};case Rk.Down:return{...n,y:n.y+25};case Rk.Up:return{...n,y:n.y-25}}};class Tk{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new _k(SE(t)),this.windowListeners=new _k(xE(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Pk.Resize,this.handleCancel),this.windowListeners.add(Pk.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Pk.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=uk),!e)return;const{top:n,left:o,bottom:r,right:a}=t(e);fk(e)&&(r<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(ZE)}handleKeyDown(e){if(TE(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:r=Mk,coordinateGetter:a=Bk,scrollBehavior:i="smooth"}=o,{code:l}=e;if(r.end.includes(l))return void this.handleEnd(e);if(r.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:ZE;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=BE(d,c),o={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:a,isRight:l,isLeft:s,isBottom:c,maxScroll:u,minScroll:p}=wk(n),m=Sk(n),f={x:Math.min(r===Rk.Right?m.right-m.width/2:m.right,Math.max(r===Rk.Right?m.left:m.left+m.width/2,d.x)),y:Math.min(r===Rk.Down?m.bottom-m.height/2:m.bottom,Math.max(r===Rk.Down?m.top:m.top+m.height/2,d.y))},h=r===Rk.Right&&!l||r===Rk.Left&&!s,g=r===Rk.Down&&!c||r===Rk.Up&&!a;if(h&&f.x!==d.x){const e=n.scrollLeft+t.x,a=r===Rk.Right&&e<=u.x||r===Rk.Left&&e>=p.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:i});o.x=a?n.scrollLeft-e:r===Rk.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,o.x&&n.scrollBy({left:-o.x,behavior:i});break}if(g&&f.y!==d.y){const e=n.scrollTop+t.y,a=r===Rk.Down&&e<=u.y||r===Rk.Up&&e>=p.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:i});o.y=a?n.scrollTop-e:r===Rk.Down?n.scrollTop-u.y:n.scrollTop-p.y,o.y&&n.scrollBy({top:-o.y,behavior:i});break}}this.handleMove(e,ME(BE(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function zk(e){return Boolean(e&&"distance"in e)}function Ak(e){return Boolean(e&&"delay"in e)}Tk.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Mk,onActivation:r}=t,{active:a}=n;const{code:i}=e.nativeEvent;if(o.start.includes(i)){const t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0)}return!1}}];class Lk{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=xE(e);return e instanceof t?e:SE(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:r}=e,{target:a}=r;this.props=e,this.events=t,this.document=SE(a),this.documentListeners=new _k(this.document),this.listeners=new _k(n),this.windowListeners=new _k(xE(a)),this.initialCoordinates=null!=(o=zE(r))?o:ZE,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Pk.Resize,this.handleCancel),this.windowListeners.add(Pk.DragStart,Ok),this.windowListeners.add(Pk.VisibilityChange,this.handleCancel),this.windowListeners.add(Pk.ContextMenu,Ok),this.documentListeners.add(Pk.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ak(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(zk(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Pk.Click,Dk,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Pk.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:r}=this,{onMove:a,options:{activationConstraint:i}}=r;if(!o)return;const l=null!=(t=zE(e))?t:ZE,s=BE(o,l);if(!n&&i){if(zk(i)){if(null!=i.tolerance&&Ik(s,i.tolerance))return this.handleCancel();if(Ik(s,i.distance))return this.handleStart()}return Ak(i)&&Ik(s,i.tolerance)?this.handleCancel():void this.handlePending(i,s)}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Rk.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const jk={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Hk extends Lk{constructor(e){const{event:t}=e,n=SE(t.target);super(e,jk,n)}}Hk.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0)}}];const Fk={move:{name:"mousemove"},end:{name:"mouseup"}};var Vk;!function(e){e[e.RightClick=2]="RightClick"}(Vk||(Vk={}));(class extends Lk{constructor(e){super(e,Fk,SE(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==Vk.RightClick&&(null==o||o({event:n}),!0)}}];const Wk={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Kk,qk;function Uk(e){let{acceleration:n,activator:o=Kk.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:l=5,order:s=qk.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:u,delta:p,threshold:m}=e;const f=function(e){let{delta:t,disabled:n}=e;const o=PE(t);return _E(e=>{if(n||!o||!e)return Xk;const r={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[yk.Backward]:e.x[yk.Backward]||-1===r.x,[yk.Forward]:e.x[yk.Forward]||1===r.x},y:{[yk.Backward]:e.y[yk.Backward]||-1===r.y,[yk.Forward]:e.y[yk.Forward]||1===r.y}}},[n,t,o])}({delta:p,disabled:!i}),[h,g]=function(){const e=t.useRef(null);return[t.useCallback((t,n)=>{e.current=setInterval(t,n)},[]),t.useCallback(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=t.useRef({x:0,y:0}),b=t.useRef({x:0,y:0}),y=t.useMemo(()=>{switch(o){case Kk.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Kk.DraggableRect:return a}},[o,a,c]),x=t.useRef(null),w=t.useCallback(()=>{const e=x.current;if(!e)return;const t=v.current.x*b.current.x,n=v.current.y*b.current.y;e.scrollBy(t,n)},[]),C=t.useMemo(()=>s===qk.TreeOrder?[...d].reverse():d,[s,d]);t.useEffect(()=>{if(i&&d.length&&y){for(const e of C){if(!1===(null==r?void 0:r(e)))continue;const t=d.indexOf(e),o=u[t];if(!o)continue;const{direction:a,speed:i}=$k(e,o,y,n,m);for(const e of["x","y"])f[e][a[e]]||(i[e]=0,a[e]=0);if(i.x>0||i.y>0)return g(),x.current=e,h(w,l),v.current=i,void(b.current=a)}v.current={x:0,y:0},b.current={x:0,y:0},g()}else g()},[n,w,r,g,i,l,JSON.stringify(y),JSON.stringify(f),h,d,C,u,JSON.stringify(m)])}(class extends Lk{constructor(e){super(e,Wk)}static setup(){return window.addEventListener(Wk.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Wk.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1)&&(null==o||o({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Kk||(Kk={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(qk||(qk={}));const Xk={x:{[yk.Backward]:!1,[yk.Forward]:!1},y:{[yk.Backward]:!1,[yk.Forward]:!1}};var Gk,Yk;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Gk||(Gk={})),function(e){e.Optimized="optimized"}(Yk||(Yk={}));const Zk=new Map;function Qk(e,t){return _E(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function Jk(e){let{callback:n,disabled:o}=e;const r=kE(n),a=t.useMemo(()=>{if(o||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[o]);return t.useEffect(()=>()=>null==a?void 0:a.disconnect(),[a]),a}function eN(e){return new Nk(uk(e),e)}function tN(e,n,o){void 0===n&&(n=eN);const[r,a]=t.useState(null);function i(){a(t=>{if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=t?t:o)?r:null;const a=n(e);return JSON.stringify(t)===JSON.stringify(a)?t:a})}const l=function(e){let{callback:n,disabled:o}=e;const r=kE(n),a=t.useMemo(()=>{if(o||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,o]);return t.useEffect(()=>()=>null==a?void 0:a.disconnect(),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:o}=n;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){i();break}}}}),s=Jk({callback:i});return EE(()=>{i(),e?(null==s||s.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())},[e]),r}const nN=[];function oN(e,n){void 0===n&&(n=[]);const o=t.useRef(null);return t.useEffect(()=>{o.current=null},n),t.useEffect(()=>{const t=e!==ZE;t&&!o.current&&(o.current=e),!t&&o.current&&(o.current=null)},[e]),o.current?BE(e,o.current):ZE}function rN(e){return t.useMemo(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const aN=[];function iN(e){let{measure:n}=e;const[o,r]=t.useState(null),a=t.useCallback(e=>{for(const{target:t}of e)if(CE(t)){r(e=>{const o=n(t);return e?{...e,width:o.width,height:o.height}:o});break}},[n]),i=Jk({callback:a}),l=t.useCallback(e=>{const t=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return CE(t)?t:e}(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),r(t?n(t):null)},[n,i]),[s,c]=IE(l);return t.useMemo(()=>({nodeRef:s,rect:o,setRef:c}),[o,s,c])}const lN=[{sensor:Hk,options:{}},{sensor:Tk,options:{}}],sN={current:{}},cN={draggable:{measure:pk},droppable:{measure:pk,strategy:Gk.WhileDragging,frequency:Yk.Optimized},dragOverlay:{measure:uk}};class dN extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const uN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new dN,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:GE},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:cN,measureDroppableContainers:GE,windowRect:null,measuringScheduled:!1},pN={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:GE,draggableNodes:new Map,over:null,measureDroppableContainers:GE},mN=t.createContext(pN),fN=t.createContext(uN);function hN(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new dN}}}function gN(e,t){switch(t.type){case XE.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case XE.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case XE.DragEnd:case XE.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case XE.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new dN(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case XE.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,a=e.droppable.containers.get(n);if(!a||o!==a.key)return e;const i=new dN(e.droppable.containers);return i.set(n,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:i}}}case XE.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const a=new dN(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function vN(e){let{disabled:n}=e;const{active:o,activatorEvent:r,draggableNodes:a}=t.useContext(mN),i=PE(r),l=PE(null==o?void 0:o.id);return t.useEffect(()=>{if(!n&&!r&&i&&null!=l){if(!TE(i))return;if(document.activeElement===i.target)return;const e=a.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=jE(e);if(t){t.focus();break}}})}},[r,n,a,l,i]),null}const bN=t.createContext({...ZE,scaleX:1,scaleY:1});var yN;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(yN||(yN={}));const xN=t.memo(function(e){var n,r,a,i;let{id:l,accessibility:c,autoScroll:d=!0,children:u,sensors:p=lN,collisionDetection:m=ik,measuring:f,modifiers:h,...g}=e;const v=t.useReducer(gN,void 0,hN),[b,y]=v,[x,w]=function(){const[e]=t.useState(()=>new Set),n=t.useCallback(t=>(e.add(t),()=>e.delete(t)),[e]),o=t.useCallback(t=>{let{type:n,event:o}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,o)})},[e]);return[o,n]}(),[C,$]=t.useState(yN.Uninitialized),S=C===yN.Initialized,{draggable:{active:E,nodes:k,translate:N},droppable:{containers:_}}=b,I=null!=E?k.get(E):null,P=t.useRef({initial:null,translated:null}),R=t.useMemo(()=>{var e;return null!=E?{id:E,data:null!=(e=null==I?void 0:I.data)?e:sN,rect:P}:null},[E,I]),O=t.useRef(null),[D,M]=t.useState(null),[B,T]=t.useState(null),z=NE(g,Object.values(g)),A=OE("DndDescribedBy",l),L=t.useMemo(()=>_.getEnabled(),[_]),j=(H=f,t.useMemo(()=>({draggable:{...cN.draggable,...null==H?void 0:H.draggable},droppable:{...cN.droppable,...null==H?void 0:H.droppable},dragOverlay:{...cN.dragOverlay,...null==H?void 0:H.dragOverlay}}),[null==H?void 0:H.draggable,null==H?void 0:H.droppable,null==H?void 0:H.dragOverlay]));var H;const{droppableRects:F,measureDroppableContainers:V,measuringScheduled:W}=function(e,n){let{dragging:o,dependencies:r,config:a}=n;const[i,l]=t.useState(null),{frequency:s,measure:c,strategy:d}=a,u=t.useRef(e),p=function(){switch(d){case Gk.Always:return!1;case Gk.BeforeDragging:return o;default:return!o}}(),m=NE(p),f=t.useCallback(function(e){void 0===e&&(e=[]),m.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[m]),h=t.useRef(null),g=_E(t=>{if(p&&!o)return Zk;if(!t||t===Zk||u.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new Nk(c(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t},[e,i,o,p,c]);return t.useEffect(()=>{u.current=e},[e]),t.useEffect(()=>{p||f()},[o,p]),t.useEffect(()=>{i&&i.length>0&&l(null)},[JSON.stringify(i)]),t.useEffect(()=>{p||"number"!=typeof s||null!==h.current||(h.current=setTimeout(()=>{f(),h.current=null},s))},[s,p,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=i}}(L,{dragging:S,dependencies:[N.x,N.y],config:j.droppable}),K=function(e,t){const n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return _E(e=>{var n;return null==t?null:null!=(n=null!=o?o:e)?n:null},[o,t])}(k,E),q=t.useMemo(()=>B?zE(B):null,[B]),U=function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=S&&!e&&!t;if("object"==typeof d)return{...d,enabled:n};return{enabled:n}}(),X=function(e,t){return Qk(e,t)}(K,j.draggable.measure);!function(e){let{activeNode:n,measure:o,initialRect:r,config:a=!0}=e;const i=t.useRef(!1),{x:l,y:s}="boolean"==typeof a?{x:a,y:a}:a;EE(()=>{if(!l&&!s||!n)return void(i.current=!1);if(i.current||!r)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=lk(o(e),r);if(l||(t.x=0),s||(t.y=0),i.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=fk(e);n&&n.scrollBy({top:t.y,left:t.x})}},[n,l,s,r,o])}({activeNode:null!=E?k.get(E):null,config:U.layoutShiftCompensation,initialRect:X,measure:j.draggable.measure});const G=tN(K,j.draggable.measure,X),Y=tN(K?K.parentElement:null),Z=t.useRef({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor(null==(n=Z.current.over)?void 0:n.id),J=iN({measure:j.dragOverlay.measure}),ee=null!=(r=J.nodeRef.current)?r:K,te=S?null!=(a=J.rect)?a:G:null,ne=Boolean(J.nodeRef.current&&J.rect),oe=lk(re=ne?null:G,Qk(re));var re;const ae=rN(ee?xE(ee):null),ie=function(e){const n=t.useRef(e),o=_E(t=>e?t&&t!==nN&&e&&n.current&&e.parentNode===n.current.parentNode?t:mk(e):nN,[e]);return t.useEffect(()=>{n.current=e},[e]),o}(S?null!=Q?Q:K:null),le=function(e,n){void 0===n&&(n=uk);const[o]=e,r=rN(o?xE(o):null),[a,i]=t.useState(aN);function l(){i(()=>e.length?e.map(e=>xk(e)?r:new Nk(n(e),e)):aN)}const s=Jk({callback:l});return EE(()=>{null==s||s.disconnect(),l(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),a}(ie),se=function(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...o}),n):n}(h,{transform:{x:N.x-oe.x,y:N.y-oe.y,scaleX:1,scaleY:1},activatorEvent:B,active:R,activeNodeRect:G,containerNodeRect:Y,draggingNodeRect:te,over:Z.current.over,overlayNodeRect:J.rect,scrollableAncestors:ie,scrollableAncestorRects:le,windowRect:ae}),ce=q?ME(q,N):null,de=function(e){const[n,o]=t.useState(null),r=t.useRef(e),a=t.useCallback(e=>{const t=hk(e.target);t&&o(e=>e?(e.set(t,bk(t)),new Map(e)):null)},[]);return t.useEffect(()=>{const t=r.current;if(e!==t){n(t);const i=e.map(e=>{const t=hk(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,bk(t)]):null}).filter(e=>null!=e);o(i.length?new Map(i):null),r.current=e}return()=>{n(e),n(t)};function n(e){e.forEach(e=>{const t=hk(e);null==t||t.removeEventListener("scroll",a)})}},[a,e]),t.useMemo(()=>e.length?n?Array.from(n.values()).reduce((e,t)=>ME(e,t),ZE):Ek(e):ZE,[e,n])}(ie),ue=oN(de),pe=oN(de,[G]),me=ME(se,ue),fe=te?ck(te,se):null,he=R&&fe?m({active:R,collisionRect:fe,droppableRects:F,droppableContainers:L,pointerCoordinates:ce}):null,ge=nk(he,"id"),[ve,be]=t.useState(null),ye=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ne?se:ME(se,pe),null!=(i=null==ve?void 0:ve.rect)?i:null,G),xe=t.useRef(null),we=t.useCallback((e,t)=>{let{sensor:n,options:r}=t;if(null==O.current)return;const a=k.get(O.current);if(!a)return;const i=e.nativeEvent,l=new n({active:O.current,activeNode:a,event:i,options:r,context:Z,onAbort(e){if(!k.get(e))return;const{onDragAbort:t}=z.current,n={id:e};null==t||t(n),x({type:"onDragAbort",event:n})},onPending(e,t,n,o){if(!k.get(e))return;const{onDragPending:r}=z.current,a={id:e,constraint:t,initialCoordinates:n,offset:o};null==r||r(a),x({type:"onDragPending",event:a})},onStart(e){const t=O.current;if(null==t)return;const n=k.get(t);if(!n)return;const{onDragStart:r}=z.current,a={activatorEvent:i,active:{id:t,data:n.data,rect:P}};o.unstable_batchedUpdates(()=>{null==r||r(a),$(yN.Initializing),y({type:XE.DragStart,initialCoordinates:e,active:t}),x({type:"onDragStart",event:a}),M(xe.current),T(i)})},onMove(e){y({type:XE.DragMove,coordinates:e})},onEnd:s(XE.DragEnd),onCancel:s(XE.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:a}=Z.current;let l=null;if(t&&a){const{cancelDrop:o}=z.current;if(l={activatorEvent:i,active:t,collisions:n,delta:a,over:r},e===XE.DragEnd&&"function"==typeof o){await Promise.resolve(o(l))&&(e=XE.DragCancel)}}O.current=null,o.unstable_batchedUpdates(()=>{y({type:e}),$(yN.Uninitialized),be(null),M(null),T(null),xe.current=null;const t=e===XE.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=z.current[t];null==e||e(l),x({type:t,event:l})}})}}xe.current=l},[k]),Ce=t.useCallback((e,t)=>(n,o)=>{const r=n.nativeEvent,a=k.get(o);if(null!==O.current||!a||r.dndKit||r.defaultPrevented)return;const i={active:a};!0===e(n,t.options,i)&&(r.dndKit={capturedBy:t.sensor},O.current=o,we(n,t))},[k,we]),$e=function(e,n){return t.useMemo(()=>e.reduce((e,t)=>{const{sensor:o}=t;return[...e,...o.activators.map(e=>({eventName:e.eventName,handler:n(e.handler,t)}))]},[]),[e,n])}(p,Ce);!function(e){t.useEffect(()=>{if(!vE)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(p),EE(()=>{G&&C===yN.Initializing&&$(yN.Initialized)},[G,C]),t.useEffect(()=>{const{onDragMove:e}=z.current,{active:t,activatorEvent:n,collisions:r,over:a}=Z.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:me.x,y:me.y},over:a};o.unstable_batchedUpdates(()=>{null==e||e(i),x({type:"onDragMove",event:i})})},[me.x,me.y]),t.useEffect(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:a}=Z.current;if(!e||null==O.current||!t||!a)return;const{onDragOver:i}=z.current,l=r.get(ge),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:a.x,y:a.y},over:s};o.unstable_batchedUpdates(()=>{be(s),null==i||i(c),x({type:"onDragOver",event:c})})},[ge]),EE(()=>{Z.current={activatorEvent:B,active:R,activeNode:K,collisionRect:fe,collisions:he,droppableRects:F,draggableNodes:k,draggingNode:ee,draggingNodeRect:te,droppableContainers:_,over:ve,scrollableAncestors:ie,scrollAdjustedTranslate:me},P.current={initial:te,translated:fe}},[R,K,he,fe,k,ee,te,F,_,ve,ie,me]),Uk({...U,delta:N,draggingRect:fe,pointerCoordinates:ce,scrollableAncestors:ie,scrollableAncestorRects:le});const Se=t.useMemo(()=>({active:R,activeNode:K,activeNodeRect:G,activatorEvent:B,collisions:he,containerNodeRect:Y,dragOverlay:J,draggableNodes:k,droppableContainers:_,droppableRects:F,over:ve,measureDroppableContainers:V,scrollableAncestors:ie,scrollableAncestorRects:le,measuringConfiguration:j,measuringScheduled:W,windowRect:ae}),[R,K,G,B,he,Y,J,k,_,F,ve,V,ie,le,j,W,ae]),Ee=t.useMemo(()=>({activatorEvent:B,activators:$e,active:R,activeNodeRect:G,ariaDescribedById:{draggable:A},dispatch:y,draggableNodes:k,over:ve,measureDroppableContainers:V}),[B,$e,R,G,y,A,k,ve,V]);return s.default.createElement(WE.Provider,{value:w},s.default.createElement(mN.Provider,{value:Ee},s.default.createElement(fN.Provider,{value:Se},s.default.createElement(bN.Provider,{value:ye},u)),s.default.createElement(vN,{disabled:!1===(null==c?void 0:c.restoreFocus)})),s.default.createElement(UE,{...c,hiddenTextDescribedById:A}))}),wN=t.createContext(null),CN="button";function $N(e){let{id:n,data:o,disabled:r=!1,attributes:a}=e;const i=OE("Draggable"),{activators:l,activatorEvent:s,active:c,activeNodeRect:d,ariaDescribedById:u,draggableNodes:p,over:m}=t.useContext(mN),{role:f=CN,roleDescription:h="draggable",tabIndex:g=0}=null!=a?a:{},v=(null==c?void 0:c.id)===n,b=t.useContext(v?bN:wN),[y,x]=IE(),[w,C]=IE(),$=function(e,n){return t.useMemo(()=>e.reduce((e,t)=>{let{eventName:o,handler:r}=t;return e[o]=e=>{r(e,n)},e},{}),[e,n])}(l,n),S=NE(o);EE(()=>(p.set(n,{id:n,key:i,node:y,activatorNode:w,data:S}),()=>{const e=p.get(n);e&&e.key===i&&p.delete(n)}),[p,n]);return{active:c,activatorEvent:s,activeNodeRect:d,attributes:t.useMemo(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!v||f!==CN)||void 0,"aria-roledescription":h,"aria-describedby":u.draggable}),[r,f,g,v,h,u.draggable]),isDragging:v,listeners:r?void 0:$,node:y,over:m,setNodeRef:x,setActivatorNodeRef:C,transform:b}}const SN={timeout:25};function EN(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function kN(e,t){return e.reduce((e,n,o)=>{const r=t.get(n);return r&&(e[o]=r),e},Array(e.length))}function NN(e){return null!==e&&e>=0}const _N=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const a=EN(t,o,n),i=t[r],l=a[r];return l&&i?{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}:null},IN={scaleX:1,scaleY:1},PN=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:a,overIndex:i}=e;const l=null!=(t=a[n])?t:o;if(!l)return null;if(r===n){const e=a[i];return e?{x:0,y:n<i?e.top+e.height-(l.top+l.height):e.top-l.top,...IN}:null}const s=function(e,t,n){const o=e[t],r=e[t-1],a=e[t+1];if(!o)return 0;if(n<t)return r?o.top-(r.top+r.height):a?a.top-(o.top+o.height):0;return a?a.top-(o.top+o.height):r?o.top-(r.top+r.height):0}(a,r,n);return r>n&&r<=i?{x:0,y:-l.height-s,...IN}:r<n&&r>=i?{x:0,y:l.height+s,...IN}:{x:0,y:0,...IN}};const RN="Sortable",ON=s.default.createContext({activeIndex:-1,containerId:RN,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:_N,disabled:{draggable:!1,droppable:!1}});function DN(e){let{children:n,id:o,items:r,strategy:a=_N,disabled:i=!1}=e;const{active:l,dragOverlay:c,droppableRects:d,over:u,measureDroppableContainers:p}=t.useContext(fN),m=OE(RN,o),f=Boolean(null!==c.rect),h=t.useMemo(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),g=null!=l,v=l?h.indexOf(l.id):-1,b=u?h.indexOf(u.id):-1,y=t.useRef(h),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,y.current),w=-1!==b&&-1===v||x,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);EE(()=>{x&&g&&p(h)},[x,h,g,p]),t.useEffect(()=>{y.current=h},[h]);const $=t.useMemo(()=>({activeIndex:v,containerId:m,disabled:C,disableTransforms:w,items:h,overIndex:b,useDragOverlay:f,sortedRects:kN(h,d),strategy:a}),[v,m,C.draggable,C.droppable,w,h,b,d,f,a]);return s.default.createElement(ON.Provider,{value:$},n)}const MN=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return EN(n,o,r).indexOf(t)},BN=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:a,newIndex:i,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!o)&&((l===a||r!==i)&&(!!n||i!==r&&t===s))},TN={duration:200,easing:"ease"},zN="transform",AN=AE.Transition.toString({property:zN,duration:0,easing:"linear"}),LN={roleDescription:"sortable"};function jN(e){let{animateLayoutChanges:n=BN,attributes:o,disabled:r,data:a,getNewIndex:i=MN,id:l,strategy:s,resizeObserverConfig:c,transition:d=TN}=e;const{items:u,containerId:p,activeIndex:m,disabled:f,disableTransforms:h,sortedRects:g,overIndex:v,useDragOverlay:b,strategy:y}=t.useContext(ON),x=function(e,t){var n,o;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(r,f),w=u.indexOf(l),C=t.useMemo(()=>({sortable:{containerId:p,index:w,items:u},...a}),[p,a,w,u]),$=t.useMemo(()=>u.slice(u.indexOf(l)),[u,l]),{rect:S,node:E,isOver:k,setNodeRef:N}=function(e){let{data:n,disabled:o=!1,id:r,resizeObserverConfig:a}=e;const i=OE("Droppable"),{active:l,dispatch:s,over:c,measureDroppableContainers:d}=t.useContext(mN),u=t.useRef({disabled:o}),p=t.useRef(!1),m=t.useRef(null),f=t.useRef(null),{disabled:h,updateMeasurementsFor:g,timeout:v}={...SN,...a},b=NE(null!=g?g:r),y=Jk({callback:t.useCallback(()=>{p.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{d(Array.isArray(b.current)?b.current:[b.current]),f.current=null},v)):p.current=!0},[v]),disabled:h||!l}),x=t.useCallback((e,t)=>{y&&(t&&(y.unobserve(t),p.current=!1),e&&y.observe(e))},[y]),[w,C]=IE(x),$=NE(n);return t.useEffect(()=>{y&&w.current&&(y.disconnect(),p.current=!1,y.observe(w.current))},[w,y]),t.useEffect(()=>(s({type:XE.RegisterDroppable,element:{id:r,key:i,disabled:o,node:w,rect:m,data:$}}),()=>s({type:XE.UnregisterDroppable,key:i,id:r})),[r]),t.useEffect(()=>{o!==u.current.disabled&&(s({type:XE.SetDroppableDisabled,id:r,key:i,disabled:o}),u.current.disabled=o)},[r,i,o,s]),{active:l,rect:m,isOver:(null==c?void 0:c.id)===r,node:w,over:c,setNodeRef:C}}({id:l,data:C,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...c}}),{active:_,activatorEvent:I,activeNodeRect:P,attributes:R,setNodeRef:O,listeners:D,isDragging:M,over:B,setActivatorNodeRef:T,transform:z}=$N({id:l,data:C,attributes:{...LN,...o},disabled:x.draggable}),A=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.useMemo(()=>e=>{n.forEach(t=>t(e))},n)}(N,O),L=Boolean(_),j=L&&!h&&NN(m)&&NN(v),H=!b&&M,F=H&&j?z:null,V=j?null!=F?F:(null!=s?s:y)({rects:g,activeNodeRect:P,activeIndex:m,overIndex:v,index:w}):null,W=NN(m)&&NN(v)?i({id:l,items:u,activeIndex:m,overIndex:v}):w,K=null==_?void 0:_.id,q=t.useRef({activeId:K,items:u,newIndex:W,containerId:p}),U=u!==q.current.items,X=n({active:_,containerId:p,isDragging:M,isSorting:L,id:l,index:w,items:u,newIndex:q.current.newIndex,previousItems:q.current.items,previousContainerId:q.current.containerId,transition:d,wasDragging:null!=q.current.activeId}),G=function(e){let{disabled:n,index:o,node:r,rect:a}=e;const[i,l]=t.useState(null),s=t.useRef(o);return EE(()=>{if(!n&&o!==s.current&&r.current){const e=a.current;if(e){const t=uk(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}o!==s.current&&(s.current=o)},[n,o,r,a]),t.useEffect(()=>{i&&l(null)},[i]),i}({disabled:!X,index:w,node:E,rect:S});return t.useEffect(()=>{L&&q.current.newIndex!==W&&(q.current.newIndex=W),p!==q.current.containerId&&(q.current.containerId=p),u!==q.current.items&&(q.current.items=u)},[L,W,p,u]),t.useEffect(()=>{if(K===q.current.activeId)return;if(null!=K&&null==q.current.activeId)return void(q.current.activeId=K);const e=setTimeout(()=>{q.current.activeId=K},50);return()=>clearTimeout(e)},[K]),{active:_,activeIndex:m,attributes:R,data:C,rect:S,index:w,newIndex:W,items:u,isOver:k,isSorting:L,isDragging:M,listeners:D,node:E,overIndex:v,over:B,setNodeRef:A,setActivatorNodeRef:T,setDroppableNodeRef:N,setDraggableNodeRef:O,transform:null!=G?G:V,transition:function(){if(G||U&&q.current.newIndex===w)return AN;if(H&&!TE(I)||!d)return;if(L||X)return AE.Transition.toString({...d,property:zN});return}()}}function HN(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const FN=[Rk.Down,Rk.Right,Rk.Up,Rk.Left],VN=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:a,over:i,scrollableAncestors:l}}=t;if(FN.includes(e.code)){if(e.preventDefault(),!n||!o)return;const t=[];a.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const a=r.get(n.id);if(a)switch(e.code){case Rk.Down:o.top<a.top&&t.push(n);break;case Rk.Up:o.top>a.top&&t.push(n);break;case Rk.Left:o.left>a.left&&t.push(n);break;case Rk.Right:o.left<a.left&&t.push(n)}});const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=tk(t),a=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=tk(o),i=r.reduce((e,t,o)=>e+QE(n[o],t),0),l=Number((i/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:l}})}}return a.sort(JE)})({active:n,collisionRect:o,droppableRects:r,droppableContainers:t,pointerCoordinates:null});let c=nk(s,"id");if(c===(null==i?void 0:i.id)&&s.length>1&&(c=s[1].id),null!=c){const e=a.get(n.id),t=a.get(c),i=t?r.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&i&&e&&t){const n=mk(s).some((e,t)=>l[t]!==e),r=WN(e,t),a=function(e,t){if(!HN(e)||!HN(t))return!1;if(!WN(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!r?{x:0,y:0}:{x:a?o.width-i.width:0,y:a?o.height-i.height:0},d={x:i.left,y:i.top};return c.x&&c.y?d:BE(d,c)}}}};function WN(e,t){return!(!HN(e)||!HN(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var KN={tableContainer:"Table-module_tableContainer__R0vmz",checkboxHeader:"Table-module_checkboxHeader__nB0jp",tableCell:"Table-module_tableCell__gaAKu",antTable:"Table-module_antTable__bZm6O",dragHandleHeader:"Table-module_dragHandleHeader__KczQT",dragHandleCell:"Table-module_dragHandleCell__3TeKk",dragHandle:"Table-module_dragHandle__gi396",rowDragging:"Table-module_rowDragging__OkG8Q","ant-table-tbody":"Table-module_ant-table-tbody__77qO2",sortIcon:"Table-module_sortIcon__1ordV",columnHeaderContent:"Table-module_columnHeaderContent__3qDkz","ant-table-column-title":"Table-module_ant-table-column-title__OGte0",columnHeaderLabel:"Table-module_columnHeaderLabel__s57EO",sortIconLeft:"Table-module_sortIconLeft__zL1i-","ant-table-thead":"Table-module_ant-table-thead__zf80i",resizeHandle:"Table-module_resizeHandle__2zwBq",resizeHandleLine:"Table-module_resizeHandleLine__i85s6",resizing:"Table-module_resizing__rV8oe","ant-table-column-sorters":"Table-module_ant-table-column-sorters__5YiWY"};const qN=t.createContext(null),UN=({children:t,id:n,rowKey:o,row:r})=>{const{attributes:a,listeners:i,setNodeRef:l,transform:s,transition:c,isDragging:d}=jN({id:n}),u={transform:AE.Transform.toString(s),transition:c,opacity:d?.5:1};return e.jsx(qN.Provider,{value:{attributes:a,listeners:i},children:e.jsx("tr",{ref:l,style:u,className:`${d?KN.rowDragging:""}`,children:t})})},XN=()=>{const n=t.useContext(qN);if(!n)return null;const{attributes:o,listeners:r}=n;return e.jsx("td",{className:KN.dragHandleCell,children:e.jsx("div",{className:KN.dragHandle,...r,...o,children:e.jsx(H,{name:"dots-six-vertical",size:12})})})},GN=({columnKey:n,onResizeStart:o,onResize:r,onResizeEnd:a})=>{const i=t.useRef(null),[l,s]=t.useState(!1),c=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),s(!0);const t=e.clientX,l=i.current?.parentElement?.offsetWidth||0,c=e=>{const o=e.clientX-t,a=Math.max(50,l+o);r&&r(n,a)},d=()=>{s(!1),a&&a(n),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect=""};o&&o(n),document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[n,r,o,a]);return e.jsx("div",{ref:i,className:`${KN.resizeHandle} ${l?KN.resizing:""}`,onMouseDown:c,title:"Drag to resize column",children:e.jsx("div",{className:KN.resizeHandleLine})})};var YN={container:"TextArea-module_container__8G9wA",label:"TextArea-module_label__sMQAR",description:"TextArea-module_description__P-BRk",textareaWrapper:"TextArea-module_textareaWrapper__cnITK",textareaInner:"TextArea-module_textareaInner__yxET8",textContent:"TextArea-module_textContent__5-qwn",title:"TextArea-module_title__V-RBC",nativeTextarea:"TextArea-module_nativeTextarea__1fdWN",iconWrapper:"TextArea-module_iconWrapper__3-EUI",icon:"TextArea-module_icon__K1T5J",dragIcon:"TextArea-module_dragIcon__UGnz0",dragIconImage:"TextArea-module_dragIconImage__u8y7I",error:"TextArea-module_error__qIUbc",textareaWrapper_state_default:"TextArea-module_textareaWrapper_state_default__2mpPG",textareaWrapper_state_hover:"TextArea-module_textareaWrapper_state_hover__yNCVJ",textareaWrapper_state_disabled:"TextArea-module_textareaWrapper_state_disabled__Q2hqV",textareaWrapper_state_focused:"TextArea-module_textareaWrapper_state_focused__UfdMe",textareaWrapper_state_typing:"TextArea-module_textareaWrapper_state_typing__81iqx",textareaWrapper_state_filled:"TextArea-module_textareaWrapper_state_filled__XKopI",textareaWrapper_state_filledHover:"TextArea-module_textareaWrapper_state_filledHover__AQra1",textareaWrapper_state_error:"TextArea-module_textareaWrapper_state_error__iBcMB"};const ZN={light:{background:"#ffffff",text:"#333333",grid:"#e0e0e0",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#cccccc",shadow:"rgba(0, 0, 0, 0.1)"},dark:{background:"#1a1a1a",text:"#ffffff",grid:"#333333",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#444444",shadow:"rgba(255, 255, 255, 0.1)"}};const QN={fadeIn:{duration:300,easing:"ease-in-out",keyframes:[{opacity:0},{opacity:1}]},slideUp:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideDown:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(-10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideLeft:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},slideRight:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(-10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},scaleIn:{duration:200,easing:"ease-out",keyframes:[{transform:"scale(0.95)",opacity:0},{transform:"scale(1)",opacity:1}]},scaleOut:{duration:200,easing:"ease-in",keyframes:[{transform:"scale(1)",opacity:1},{transform:"scale(0.95)",opacity:0}]},bounce:{duration:600,easing:"ease-in-out",keyframes:[{transform:"translateY(0)"},{transform:"translateY(-5px)"},{transform:"translateY(0)"}]},pulse:{duration:1e3,easing:"ease-in-out",iterations:"infinite",keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}]},spin:{duration:1e3,easing:"linear",iterations:"infinite",keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}]}};function JN(e,t,n){if(!e)return null;const o=QN[t],r={duration:n?.duration||o.duration,delay:n?.delay||0,easing:n?.easing||o.easing,iterations:n?.iterations||1,direction:n?.direction||"normal",fillMode:n?.fillMode||"both"};return e.animate(o.keyframes,r)}const e_={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function t_(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function n_(e,t){if(t.required&&(!e||""===e.toString().trim()))return{isValid:!1,message:"This field is required"};if(!e||""===e.toString().trim())return{isValid:!0};const n=e.toString();if(t.minLength&&n.length<t.minLength)return{isValid:!1,message:`Must be at least ${t.minLength} characters long`};if(t.maxLength&&n.length>t.maxLength)return{isValid:!1,message:`Must be no more than ${t.maxLength} characters long`};const o=Number(e);if(!isNaN(o)){if(void 0!==t.min&&o<t.min)return{isValid:!1,message:`Must be at least ${t.min}`};if(void 0!==t.max&&o>t.max)return{isValid:!1,message:`Must be no more than ${t.max}`}}return t.pattern&&!t.pattern.test(n)?{isValid:!1,message:"Invalid format"}:t.custom?t.custom(e):{isValid:!0}}const o_={email:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,phone:/^[\+]?[1-9][\d]{0,15}$/,url:/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,alphanumeric:/^[a-zA-Z0-9]+$/,alphabetic:/^[a-zA-Z\s]+$/,numeric:/^\d+$/,decimal:/^\d*\.?\d+$/,slug:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,hexColor:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ipAddress:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,uuid:/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i},r_={required:{required:!0},email:{required:!0,pattern:o_.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:o_.phone},url:{required:!0,pattern:o_.url},alphanumeric:{pattern:o_.alphanumeric},numeric:{pattern:o_.numeric},decimal:{pattern:o_.decimal},slug:{pattern:o_.slug},hexColor:{pattern:o_.hexColor}};exports.Avatar=({src:t,initials:n,alt:o,size:r="medium",shape:a="circle",className:i="",...l})=>{const s=[U.avatar,U[`size_${r}`],U[`shape_${a}`],!t&&n?U.initialsBg:"",i].filter(Boolean).join(" ");return e.jsx("div",{className:s,...l,children:t?e.jsx("img",{src:t,alt:o||n||"avatar",className:U.image}):e.jsx("span",{className:U.initials,children:n})})},exports.BackgroundGradient=({className:t="",mode:n="Light Mode BG",...o})=>e.jsx("div",{className:`${X} ${t}`,"data-mode":n,...o,children:e.jsx("img",{className:G,src:`/bg/Mode=${n}.svg`,alt:`${n} Blobs`})}),exports.Badge=({label:t="Badge",type:n="default",size:o="medium",className:r="",children:a,...i})=>{const l=(e=>{if(!e)return"default";const t=e.toLowerCase();return"active"===t?"active":"inactive"===t?"inactive":"default"})(n),s=(e=>{if(!e)return"medium";const t=e.toString().toLowerCase();return"small"===t||"sm"===t?"small":"medium"===t||"md"===t?"medium":"large"===t||"lg"===t?"large":"medium"})(o),c=[Y.badge,Y[`type_${l}`],Y[`size_${s}`],r].filter(Boolean).join(" ");return e.jsx("span",{className:c,...i,children:a||t})},exports.BarChart=n=>{const o={...d,...n},{data:r,title:a,titleStyle:i,titleClassName:l,width:s,height:u,margin:p,colors:m,showGrid:f,animate:h,responsive:g,formatValue:v,className:b,style:y,onBarClick:x,onBarHover:w,showTooltip:C,tooltipStyle:$,tooltipClassName:S,tooltipContent:E,showLegend:k=!0,legendPosition:N="bottom",legendStyle:_,legendClassName:I,legendTitle:P,showYAxis:R=!0,showYAxisLine:O=!1,showYAxisTicks:D=!1,yAxisStyle:M,yAxisClassName:B,yAxisLabelStyle:T,yAxisLabelClassName:z,cornerRadius:A,barPadding:L,tickCount:j}=o,H=t.useRef(null),F=t.useRef(null),V=t.useRef(null),[W,K]=t.useState({width:s||800,height:u||400}),[q,U]=t.useState(!1);t.useEffect(()=>{if(U(!0),!g)return;const e=()=>{if(F.current){const e=F.current.getBoundingClientRect().width,t=Math.max(300,e),n=Math.max(300,.5*t);K({width:t,height:n})}};let t;F.current&&(t=new ResizeObserver(e),t.observe(F.current)),window.addEventListener("resize",e);const n=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(n)}},[g]),t.useEffect(()=>{if(!q||!r||0===r.length)return;const e=c.select(H.current);e.selectAll("*").remove();const t=W.width-(p?.left||0)-(p?.right||0),n=W.height-(p?.top||0)-(p?.bottom||0),o=e.attr("width",W.width).attr("height",W.height).append("g").attr("transform",`translate(${p?.left||0},${p?.top||0})`);if(m?.gradient){const t=e.append("defs").append("linearGradient").attr("id","barGradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");t.append("stop").attr("offset","0%").attr("stop-color",m.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",m.gradient.end)}const a=c.scaleBand().domain(r.map(e=>e.category)).range([0,t]).padding(L||.6),i=c.max(r,e=>e.value)||0,l=c.scaleLinear().domain([0,1.1*i]).range([n,0]);if(f){const e=c.axisLeft(l).tickSize(-t).tickFormat(()=>"").ticks(j||5);o.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(R){const e=c.axisLeft(l).ticks(j||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return v?v(t):0===t?"0":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}),t=o.append("g").attr("class","y-axis").style("color","#7D7D7D").style("font-size","0.875rem").call(e);if(M){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const n=M[e];void 0!==n&&t.style(e,n.toString())})}if(O||t.selectAll("path").style("display","none"),D||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${z||""}`).style("font-weight","500").style("fill","#7D7D7D").style("font-size","0.875rem").style("font-family","Inter, system-ui, sans-serif").style("dominant-baseline","middle").style("text-anchor","end").attr("dx","-8px"),T){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const n=T[e];void 0!==n&&t.selectAll("text").style(e,n.toString())})}}const s=c.axisBottom(a),d=o.append("g").attr("class","x-axis").attr("transform",`translate(0,${n})`).style("color","#718096").style("font-size","0.875rem").call(s);d.selectAll("path").style("display","none"),d.selectAll("line").style("display","none"),t<600&&d.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-45)");const u=o.selectAll(".bar").data(r).enter().append("rect").attr("class","bar").attr("x",e=>a(e.category)||0).attr("width",a.bandwidth()).attr("y",n).attr("height",0).attr("rx",A||5).attr("ry",A||5).style("fill",e=>e.color?e.color:m?.gradient?"url(#barGradient)":m?.solid?m.solid:"#8B5CF6").style("cursor",x?"pointer":"default");h?u.transition().duration(800).ease(c.easeBackOut.overshoot(1.1)).attr("y",e=>l(e.value)).attr("height",e=>n-l(e.value)):u.attr("y",e=>l(e.value)).attr("height",e=>n-l(e.value)),(x||w||C)&&u.on("click",(e,t)=>{if(x){const e=r.indexOf(t);x(t,e)}}).on("mouseover",(e,t)=>{if(w){const e=r.indexOf(t);w(t,e)}if(C&&V.current&&F.current){const n=c.select(V.current),o=F.current.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),a=r.left-o.left+r.width/2,i=r.top-o.top-15;n.style("opacity",1).style("left",`${a}px`).style("top",`${i}px`).style("transform","translateX(-50%)").html(`\n <div class="font-semibold text-white">${t.category}</div>\n <div class="text-sm text-gray-200 mt-1">${v?v(t.value):t.value.toString()}</div>\n `)}c.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{C&&V.current&&c.select(V.current).style("opacity",0),c.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(C&&V.current&&F.current){const t=c.select(V.current),n=F.current.getBoundingClientRect(),o=e.clientX-n.left,r=e.clientY-n.top;t.style("left",`${o}px`).style("top",r-15+"px").style("transform","translateX(-50%)")}})},[q,r,W,p,m,f,h,v,x,w,C,A,L,j,R,O,D,M,B,T,z]);const X=()=>{if(!k||!r||0===r.length)return null;const t=r.map((t,n)=>e.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>x?.(t,n),onMouseEnter:()=>w?.(t,n),children:[e.jsx("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:t.color||(m?.gradient?"url(#barGradient)":m?.solid||"#8B5CF6")}}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:t.category}),e.jsxs("span",{className:"text-xs text-gray-500",children:["(",v?v(t.value):t.value.toString(),")"]})]},t.category));return e.jsxs("div",{className:`${{top:"flex flex-wrap justify-center gap-4 mb-4",bottom:"flex flex-wrap justify-center gap-4 mt-4",left:"flex flex-col space-y-2 mr-4",right:"flex flex-col space-y-2 ml-4"}[N]} ${I||""}`,style:_,children:[P&&e.jsx("div",{className:"w-full text-center mb-2",children:e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:P})}),t]})};return e.jsxs("div",{ref:F,className:`bg-white p-6 rounded-xl ${b||""}`,style:y,children:[a&&e.jsx("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${l||""}`,style:i,children:a}),k&&"top"===N&&X(),e.jsxs("div",{className:"relative",children:[e.jsx("svg",{ref:H,className:"w-full h-auto"}),C&&e.jsx("div",{ref:V,className:`absolute pointer-events-none bg-gradient-to-r from-gray-800 to-gray-900 text-white rounded-xl px-4 py-3 shadow-2xl opacity-0 transition-all duration-300 z-50 whitespace-nowrap border border-gray-600 ${S||""}`,style:{fontSize:"0.9rem",minWidth:"120px",textAlign:"center",backdropFilter:"blur(10px)",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05)",...$},children:E?E(r[0]):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"font-semibold text-white",children:r[0]?.category}),e.jsx("div",{className:"text-sm text-gray-200 mt-1",children:v?v(r[0]?.value||0):(r[0]?.value||0).toString()})]})})]}),k&&"bottom"===N&&X()]})},exports.Breadcrumb=({items:t=[],separator:n="/",className:o="",...r})=>{const a=t.map(t=>({...t,title:e.jsxs("span",{className:zS.itemContent,children:[t.icon&&e.jsx(H,{name:t.icon,size:14,className:zS.itemIcon}),e.jsx("span",{className:zS.itemTitle,children:t.title})]})}));return e.jsx("div",{className:`${zS.breadcrumbContainer} ${o}`,children:e.jsx(rv,{items:a,separator:e.jsx("span",{className:zS.separator,children:n}),className:zS.antBreadcrumb,...r})})},exports.Button=W,exports.ButtonDanger=q,exports.Card=({children:t,variant:n="default",padding:o="md",hover:r=!1,clickable:a=!1,header:i,footer:l,onClick:s,className:c,style:d,animate:u=!0,animationDuration:p=300,animationDelay:m=0,animationEasing:f="ease-in-out",...h})=>{const g=z("bg-white rounded-lg transition-all duration-200",{default:"shadow-sm border border-gray-200",elevated:"shadow-lg border border-gray-100",outlined:"border-2 border-gray-200",filled:"bg-gray-50 border border-gray-200"}[n],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[o],r&&"hover:shadow-md hover:-translate-y-0.5",a&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",u&&"animate-fade-in",c),v={...d,...u&&{animationDuration:`${p}ms`,animationDelay:`${m}ms`,animationTimingFunction:f}};return e.jsxs("div",{className:g,style:v,onClick:e=>{a&&s&&s(e)},...h,children:[i&&e.jsx("div",{className:"mb-4 pb-4 border-b border-gray-200",children:i}),e.jsx("div",{className:"flex-1",children:t}),l&&e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:l})]})},exports.Categories=({variant:n="single",chips:o=[],categories:r=[],onChipRemove:a,onCategoryToggle:i,onItemClick:l,onCancel:s,onApply:c,cancelLabel:d="Cancel",applyLabel:u="Apply",className:p="",...m})=>{const[f,h]=t.useState(""),[g,v]=t.useState(r.reduce((e,t,n)=>(e[n]=void 0===t.expanded||t.expanded,e),{})),b=t.useMemo(()=>{if(!f)return r;const e=f.toLowerCase();return r.map(t=>{if((t.title||"").toLowerCase().includes(e))return t;const n=(t.items||[]).filter(t=>(t.label||"").toLowerCase().includes(e));return n.length>0?{...t,items:n}:null}).filter(e=>null!==e)},[r,f]);t.useEffect(()=>{if(f){const e=b.reduce((e,t,n)=>(e[n]=!0,e),{});v(e)}},[f,b.length]);const y=(t,o)=>{const r=!!f||!1!==g[o];return e.jsxs("div",{className:AS.categoryList,children:[e.jsxs("button",{type:"button",className:AS.categoryTitle,onClick:()=>{return e=o,v(t=>({...t,[e]:!t[e]})),void(i&&i(e,!g[e]));var e},children:[e.jsx("p",{className:AS.categoryTitleText,children:t.title||"Category"}),e.jsx("div",{className:AS.chevronIcon,children:e.jsx(H,{name:"CaretDown",size:14,className:`${AS.chevronImg} ${r?AS.chevronUp:""}`})})]}),r&&e.jsx("div",{className:AS.categoryItems,children:(t.items||[]).map((t,r)=>e.jsx("div",{className:AS.categoryItemWrapper,children:e.jsx(WS,{label:t.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===n,hasRadio:"multiple"!==n,checked:t.checked||!1,type:t.type||"default",onClick:()=>{l&&l(t,o)}})},t.id||r))})]},o)},x=[AS.container,AS[`variant_${n}`],p].filter(Boolean).join(" ");return e.jsxs("div",{className:x,...m,children:[e.jsxs("div",{className:AS.searchSection,children:[e.jsxs("div",{className:AS.searchInput,children:[e.jsx("div",{className:AS.searchIcon,children:e.jsx(H,{name:"MagnifyingGlass",size:16,className:AS.searchIconImage})}),e.jsx("input",{type:"text",className:AS.realSearchInput,placeholder:"Search",value:f,onChange:e=>{h(e.target.value)}})]}),(()=>{if(!o||0===o.length)return null;const t=o.slice(0,5),n=o.length-5;let r=null;return n>0&&(r={isMore:!0,label:`+${n}`}),e.jsxs("div",{className:AS.chipListContainer,children:[t.map((t,n)=>e.jsxs("div",{className:AS.chip,children:[e.jsx("p",{className:AS.chipLabel,children:t.label||"Label"}),e.jsx("button",{type:"button",className:AS.chipRemove,onClick:e=>{e.stopPropagation(),a&&a(t)},"aria-label":"Remove chip",children:e.jsx(H,{name:"X",size:14,className:AS.chipIcon})})]},n)),r&&e.jsx("div",{className:AS.chip,children:e.jsx("p",{className:AS.chipLabel,children:r.label})})]})})()]}),e.jsx("div",{className:AS.listsContainer,children:b.map((e,t)=>y(e,t))}),e.jsxs("div",{className:AS.actionsContainer,children:[e.jsx("button",{type:"button",className:AS.cancelButton,onClick:s,children:e.jsx("p",{className:AS.cancelButtonText,children:d})}),e.jsx("button",{type:"button",className:AS.applyButton,onClick:c,children:e.jsx("p",{className:AS.applyButtonText,children:u})})]})]})},exports.Cell=({variant:t="default",label:n="",icon:o=null,badge:r=null,avatar:a=null,status:i=null,checked:l=!1,onChange:s,count:c=null,actions:d=[],className:u="",...p})=>e.jsx("div",{className:`${KS.cell} ${KS[`variant_${t}`]} ${u}`,...p,children:(()=>{switch(t){case"avatar":return e.jsxs("div",{className:KS.avatarContent,children:[a?e.jsx("img",{src:a,alt:n,className:KS.avatar}):e.jsx("div",{className:KS.avatarPlaceholder,children:e.jsx(H,{name:"User",size:16})}),e.jsx("span",{className:KS.label,children:n})]});case"status":return e.jsxs("div",{className:KS.statusContent,children:[e.jsx("div",{className:`${KS.statusDot} ${KS[`status_${i?.toLowerCase()}`]}`}),e.jsx("span",{className:KS.label,children:n}),r&&e.jsx("span",{className:KS.badge,children:r})]});case"social":return e.jsxs("div",{className:KS.socialContent,children:[o&&e.jsx(H,{name:o,size:16,className:KS.socialIcon}),e.jsx("span",{className:KS.label,children:n})]});case"actions":return e.jsx("div",{className:KS.actionsContent,children:d.map((t,n)=>e.jsx("button",{className:KS.actionButton,onClick:t.onClick,title:t.label,type:"button",children:e.jsx(H,{name:t.icon,size:14})},n))});case"checkbox":return e.jsxs("div",{className:KS.checkboxContent,children:[e.jsx(HS,{checked:l,onChange:s,size:"small"}),e.jsx("span",{className:KS.label,children:n})]});case"toggle":return e.jsx("div",{className:KS.toggleContent,children:e.jsx(US,{checked:l,onChange:s,size:"small"})});case"userCount":return e.jsx("div",{className:KS.userCountContent,children:e.jsxs("div",{className:KS.userIconWrapper,children:[e.jsx(H,{name:"User",size:14}),e.jsx("span",{className:KS.count,children:c})]})});default:return e.jsxs("div",{className:KS.defaultContent,children:[o&&e.jsx(H,{name:o,size:16,className:KS.leadingIcon}),e.jsx("span",{className:KS.label,children:n}),r&&e.jsx("span",{className:KS.badge,children:r}),e.jsx(H,{name:"Globe",size:14,className:KS.trailingIcon})]})}})()}),exports.CellHeader=({label:t="",sortable:n=!1,sortOrder:o=null,hasCheckbox:r=!1,checked:a=!1,onSort:i,onCheckboxChange:l,className:s="",...c})=>e.jsx("div",{className:`${XS} ${n?GS:""} ${s}`,onClick:n?i:void 0,...c,children:e.jsxs("div",{className:YS,children:[r&&e.jsx("div",{className:ZS,onClick:e=>e.stopPropagation(),children:e.jsx(HS,{checked:a,onChange:l,size:"small"})}),n&&e.jsx("div",{className:QS,"aria-label":`Sort ${o||"none"}`,children:e.jsx(H,{name:"asc"===o?"SortAscending":"desc"===o?"SortDescending":"CaretUpDown",size:14})}),e.jsx("span",{className:JS,children:t})]})}),exports.Checkbox=HS,exports.Chip=tE,exports.ChipList=({chips:t=[],layout:n="single",onChipRemove:o,className:r="",...a})=>{const i=t.length>0?t:[{label:"Label",id:"1"},{label:"Label",id:"2"},{label:"Label",id:"3"}],l=n.toLowerCase(),s=(()=>{if("double"===l||"doublerow"===l){const e=Math.ceil(i.length/2);return[i.slice(0,e),i.slice(e)]}return[i]})(),c=[nE.container,nE[`layout_${l}`],r].filter(Boolean).join(" ");return e.jsx("div",{className:c,...a,children:s.map((t,n)=>e.jsx("div",{className:nE.row,children:t.map(t=>e.jsx(tE,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{o&&o(t)}},t.id||t.label))},n))})},exports.Dropdown=({value:n="",description:o="",label:r="",error:a="",hasLabel:i=!0,hasDescription:l=!0,hasError:s=!1,hasChips:c=!1,state:d="default",type:u="medium",placeholder:p="Value",chips:m=[],onChange:f,onFocus:h,onBlur:g,onClick:v,onOutsideClick:b,disabled:y,className:x="",children:w,...C})=>{const $=t.useRef(null);t.useEffect(()=>{if(!b)return;const e=e=>{$.current&&!$.current.contains(e.target)&&b()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[b]);const S=(u||"medium").toLowerCase(),E=y?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"selected"===t?"selected":"focused"===t?"focused":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(d),k=[oE.container,oE[`type_${S}`],x].filter(Boolean).join(" "),N=[oE.dropdownWrapper,oE[`dropdownWrapper_type_${S}`],oE[`dropdownWrapper_state_${E}`],oE[`dropdownWrapper_type_${S}_state_${E}`]].filter(Boolean).join(" "),_=y||"disabled"===E,I=e.jsxs("div",{className:oE.fieldWrapper,children:[e.jsx("button",{type:"button",className:N,onClick:v||h,disabled:_,"aria-disabled":_,...C,children:e.jsxs("div",{className:oE.dropdownInner,children:[c&&0!==m.length?e.jsx("div",{className:oE.chipList,children:m.map((t,n)=>e.jsxs("div",{className:oE.chip,children:[e.jsx("span",{className:oE.chipLabel,children:t.label||"Label"}),t.onRemove&&e.jsx("button",{type:"button",className:oE.chipRemove,onClick:e=>{e.stopPropagation(),t.onRemove&&t.onRemove()},"aria-label":"Remove chip",children:e.jsx(H,{name:"x",size:10,className:oE.chipIcon})})]},n))}):null,n?e.jsx("span",{className:oE.value,children:n}):e.jsx("span",{className:oE.placeholder,children:p}),e.jsx("div",{className:oE.chevronWrapper,children:e.jsx(H,{name:w?"caret-up":"caret-down",size:12,className:oE.chevronIcon})})]})}),w]});return e.jsxs("div",{className:k,ref:$,children:[i&&r&&e.jsx("p",{className:oE.label,children:r}),l&&o&&e.jsx("p",{className:oE.description,children:o}),I,s&&a&&e.jsx("p",{className:oE.error,children:a})]})},exports.DropdownNested=({leftColumn:t={title:"Select a Member",chips:[],items:[]},rightColumn:n={title:"Select a Group",chips:[],items:[]},onLeftClearAll:o,onRightClearAll:r,onLeftChipRemove:a,onRightChipRemove:i,onLeftItemClick:l,onRightItemClick:s,onCancel:c,onApply:d,className:u="",...p})=>{const m=t.chips,f=n.chips,h=t.items,g=n.items,v=[iE.dropdownNested,u].filter(Boolean).join(" ");return e.jsxs("div",{className:v,...p,children:[e.jsxs("div",{className:iE.columns,children:[e.jsx("div",{className:iE.column,children:e.jsx(aE,{title:t.title,expanded:!0,chips:m,items:h,onClearAll:o,onChipRemove:a,onItemClick:l})}),e.jsx("div",{className:iE.column,children:e.jsx(aE,{title:n.title,expanded:!0,chips:f,items:g,onClearAll:r,onChipRemove:i,onItemClick:s})})]}),e.jsxs("div",{className:iE.ctas,children:[e.jsx(q,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:c,className:iE.cancelButton}),e.jsx(W,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:d,className:iE.applyButton})]})]})},exports.DropdownNestedColumn=aE,exports.GaugeChart=({segments:n,title:o})=>{const r=t.useRef(null),{segmentData:a,total:i}=(e=>{const t=e.reduce((e,t)=>e+t.value,0);return{segmentData:e.map(e=>({...e,percentage:e.value/t,arcLength:75*Math.PI*(e.value/t)})),total:t}})(n),{count:l,animationProgress:s}=(e=>{const[n,o]=t.useState(0),[r,a]=t.useState(0);return t.useEffect(()=>{let t=0;const n=1/(h/g),r=setInterval(()=>{t+=n,t>=1&&(t=1,clearInterval(r)),o(Math.floor(e*t)),a(t)},g);return()=>{clearInterval(r)}},[e]),{count:n,animationProgress:r}})(i),{tooltip:c,showTooltip:d,updateTooltip:u,hideTooltip:p}=(e=>{const[n,o]=t.useState({show:!1,content:"",x:0,y:0,type:""}),r=t.useCallback((t,n,r)=>{if(!e.current)return;const a=e.current.getBoundingClientRect(),i=t.clientX-a.left,l=t.clientY-a.top;o({show:!0,content:n,type:r,x:i,y:l-70})},[e]),a=t.useCallback((t,r,a)=>{if(!n.show||!e.current)return;const i=e.current.getBoundingClientRect(),l=t.clientX-i.left,s=t.clientY-i.top;o(e=>({...e,x:l,y:s-70}))},[n.show,e]),i=t.useCallback(()=>{o(e=>({...e,show:!1}))},[]);return{tooltip:n,showTooltip:r,updateTooltip:a,hideTooltip:i}})(r),b=m,y=f,x=Math.PI*b,w=t.useMemo(()=>({width:2*b+y,height:b+y+20,viewBox:`0 0 ${2*b+y} ${b+y+20}`}),[b,y]),C=t.useMemo(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(b,y),[b,y]),$=t.useMemo(()=>a.map((e,t)=>({currentArc:e.arcLength*s,previousArcsLength:a.slice(0,t).reduce((e,t)=>e+t.arcLength*s,0)})),[a,s]);return e.jsxs("div",{ref:r,className:"flex flex-col items-center justify-center bg-white rounded-xl p-8 w-96 mx-auto relative shadow-[0px_4px_40px_0px_#7090B01F]",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsxs("svg",{width:w.width,height:w.height,viewBox:w.viewBox,className:"relative",children:[e.jsx("path",{d:C,fill:"transparent",stroke:"#E5E7EB",strokeWidth:y,strokeLinecap:"round"}),a.map((t,n)=>{const{currentArc:o,previousArcsLength:r}=$[n];return e.jsx("path",{d:C,fill:"transparent",stroke:t.color,strokeWidth:y,strokeDasharray:`${o} ${x}`,strokeDashoffset:-r,strokeLinecap:"round"},`visual-${n}`)}),a.map((t,n)=>{const{currentArc:o,previousArcsLength:r}=$[n];return e.jsx("path",{d:C,fill:"transparent",stroke:"transparent",strokeWidth:y+4,strokeDasharray:`${o} ${x}`,strokeDashoffset:-r,strokeLinecap:"round",onMouseEnter:e=>d(e,v(t),t.label),onMouseMove:e=>u(e,v(t),t.label),onMouseLeave:p,className:"cursor-pointer",style:{pointerEvents:o>0?"stroke":"none"}},`hit-${n}`)}),e.jsx("text",{x:b+y/2,y:b+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:l.toLocaleString()}),e.jsx("text",{x:b+y/2,y:b+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:o})]})}),e.jsx("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:a.map((t,n)=>e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:t.color}}),e.jsx("span",{className:"text-sm font-medium text-[#454545]",children:t.label})]},`legend-${n}`))}),c.show&&e.jsx("div",{className:"absolute z-50 pointer-events-none",style:{left:`${c.x}px`,top:`${c.y}px`,transform:"translateX(-50%)"},children:e.jsxs("div",{className:"px-3 py-2 rounded-lg text-gray-700 text-sm font-medium bg-white shadow-lg text-center min-w-[120px]",children:[c.content,e.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-l-transparent border-r-transparent border-t-white"})]})})]})},exports.Icon=H,exports.IconButton=({icon:t,style:n="primary",state:o="default",size:r="medium",onClick:a,disabled:i,loading:l,className:s="",...c})=>{const d=l?"loading":i?"disabled":o,u=i||l||"disabled"===d,p=[lE.iconButton,lE[`style_${n}`],lE[`state_${d}`],lE[`size_${r}`],s].filter(Boolean).join(" ");return e.jsx("button",{className:p,onClick:a,disabled:u,"aria-disabled":u,...c,children:t?"string"==typeof t?e.jsx(H,{name:t,className:lE.icon,size:14}):t:"loading"===d?e.jsx(H,{name:"spinner",className:lE.loaderIcon,size:16}):e.jsx(H,{name:"star",className:lE.icon,size:14})})},exports.ItemRow=WS,exports.Modal=({isOpen:n,onClose:o,title:r,description:a,icon:i,children:l,actions:s,size:c="medium",showCloseButton:d=!0,className:u="",...p})=>{if(t.useEffect(()=>(document.body.style.overflow=n?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[n]),!n)return null;return e.jsx("div",{className:sE.overlay,onClick:e=>{e.target===e.currentTarget&&o&&o()},children:e.jsxs("div",{className:`${sE.modal} ${sE[c]} ${u}`,role:"dialog","aria-modal":"true",...p,children:[d&&e.jsx("button",{className:sE.closeButton,onClick:o,"aria-label":"Close modal",children:e.jsx(H,{name:"X"})}),e.jsxs("div",{className:sE.content,children:[i&&e.jsx("div",{className:sE.iconWrapper,children:i}),l||e.jsxs("div",{className:sE.textStack,children:[r&&e.jsx("h2",{className:sE.title,children:r}),a&&e.jsx("p",{className:sE.description,children:a})]}),s&&e.jsx("div",{className:sE.actions,children:s})]})]})})},exports.Notification=dE,exports.Pagination=t=>e.jsx(fs,{theme:{token:{colorPrimary:"#4432bf",borderRadius:8,fontFamily:"'Host Grotesk', sans-serif",colorText:"#2f353b",colorTextDescription:"#768494",motion:!1},components:{Pagination:{itemActiveBg:"#4432bf",itemActiveColor:"#F3EEF9",itemBg:"transparent",itemInputBg:"#ffffff",itemSize:36,itemSizeSM:32}}},children:e.jsx("div",{className:`${uE.paginationWrapper} ${t.className||""}`,children:e.jsx(Nx,{itemRender:(n,o,r)=>"prev"===o?e.jsxs("div",{className:`${uE.navButtonCustom} ${t.disabled?uE.disabled:""}`,children:[e.jsx("div",{className:uE.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),e.jsx("span",{className:uE.navText,children:"Previous"})]}):"next"===o?e.jsxs("div",{className:`${uE.navButtonCustom} ${t.disabled?uE.disabled:""}`,children:[e.jsx("span",{className:uE.navText,children:"Next"}),e.jsx("div",{className:uE.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):r,...t})})}),exports.PieChart=({data:n,title:o="Policy Effect",titleStyle:r={},containerStyle:a={},chartSize:i=320,showLegend:l=!0,legendStyle:s={}})=>{const d=t.useRef(null),[u,p]=t.useState({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),m=n||[{label:"Allow",value:35,color:"#4A148C"},{label:"Block",value:30,color:"#7B1FA2"},{label:"Isolate",value:20,color:"#BA68C8"},{label:"Tag",value:15,color:"#E1BEE7"}],f=c.sum(m,e=>e.value);t.useEffect(()=>{if(!d.current)return;const e=c.select(d.current);e.selectAll("*").remove();const t=i,n=i,o=Math.min(t,n)/2-30,r=e.attr("width",t).attr("height",n).append("g").attr("transform",`translate(${t/2}, ${n/2})`),a=c.pie().value(e=>e.value).sort(null).padAngle(0),l=c.arc().innerRadius(0).outerRadius(o),s=c.arc().innerRadius(0).outerRadius(o+8);r.selectAll("arc").data(a(m)).enter().append("g").attr("class","arc").append("path").attr("d",l).attr("fill",e=>e.data.color||"#4A148C").style("cursor","pointer").style("transition","all 0.3s ease").on("mouseover",function(e,t){const n=(t.data.value/f*100).toFixed(1);c.select(this).transition().duration(200).attr("d",s(t)).style("filter","brightness(1.1)"),p({visible:!0,x:e.clientX,y:e.clientY,content:`${t.data.label??""}: ${t.data.value} (${n}%)`,label:t.data.label??"",value:t.data.value.toString(),percentage:n})}).on("mousemove",function(e){p(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){c.select(this).transition().duration(200).attr("d",l(t)).style("filter","brightness(1)"),p(e=>({...e,visible:!1}))})},[0,m,i]);const h={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...r},g={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...a},v={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...s};return e.jsxs("div",{style:g,children:[e.jsx("h2",{style:h,children:o}),e.jsx("div",{className:"relative",children:e.jsx("svg",{ref:d})}),l&&e.jsx("div",{style:v,children:m.map((t,n)=>((t.value/f*100).toFixed(1),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:t.color}}),e.jsx("div",{className:"text-sm",children:e.jsx("div",{className:"font-medium text-[#454545]",children:t.label})})]},n)))}),u.visible&&e.jsxs("div",{className:"fixed z-50 bg-gray-900 text-white px-4 py-3 rounded-lg pointer-events-none border border-gray-700",style:{left:u.x+15,top:u.y-60,minWidth:"150px"},children:[e.jsx("div",{className:"text-sm font-semibold text-blue-300",children:u.label}),e.jsxs("div",{className:"text-base",children:[u.value," items"]}),e.jsxs("div",{className:"text-sm text-gray-300",children:[u.percentage,"% of total"]}),e.jsx("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},exports.Radio=VS,exports.Sankey=({data:n,width:o=1200,height:r=600,margin:a={top:80,right:50,bottom:50,left:50},backgroundColor:i="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:l=!0,timeFilters:s=["1W","1M","3M","1Y","ALL"],activeFilter:d="3M",onFilterChange:u=()=>{},filterButtonColor:p="#6366f1",filterButtonInactive:m="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:f=!1,customFlowWidth:h=10,minFlowWidth:g=4,maxFlowWidth:v=20,flowWidthMultiplier:b=1,showStatistics:y=!1,statistics:x={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const w=t.useRef(null),C=t.useRef(),$=t.useRef();t.useEffect(()=>{if(!w.current)return;const e=c.select(w.current);e.selectAll("*").remove(),e.attr("width",o).attr("height",r).style("background",i),e.append("text").attr("x",o/2).attr("y",40).attr("text-anchor","middle").style("font-size","48px").style("font-weight","bold").style("fill","rgba(255,255,255,0.1)").text("Data visualisation");const t=e.append("g").attr("class","zoom-group"),l=t.append("g").attr("transform",`translate(${a.left}, ${a.top})`);$.current&&$.current.remove();const s=c.select("body").append("div").attr("class","tooltip").style("position","absolute").style("background","rgba(0,0,0,0.7)").style("color","white").style("padding","8px").style("border-radius","4px").style("pointer-events","none").style("opacity",0);$.current=s;const d=c.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(d),C.current=d;const u=180,p=80,m=120,N="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",_="white",I=(r-a.top-a.bottom)/2,P=(o-a.left-a.right)/2-90,R=o-a.left-a.right-u-80,O=n.nodes.filter(e=>"source"===e.type),D=n.nodes.filter(e=>"middle"===e.type),M=n.nodes.filter(e=>"target"===e.type);O.forEach(e=>{e.x=80,e.y=I-40}),D.forEach((e,t)=>{const n=(D.length-1)*m,o=I-n/2;e.x=P,e.y=o+t*m}),M.forEach((e,t)=>{const n=(M.length-1)*m,o=I-n/2;e.x=R,e.y=o+t*m});const B=c.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,c.select(this).attr("transform",`translate(${t.x}, ${t.y})`),l.selectAll("path.sankey-link").remove(),A()}),T=e.append("defs"),z=Math.max(...n.links.map(e=>e.value)),A=()=>{T.selectAll("linearGradient.link-gradient").remove(),n.links.forEach((e,t)=>{const o=n.nodes.find(t=>t.id===e.source),r=n.nodes.find(t=>t.id===e.target);if(!o||!r)return;const a=`gradient-${t}`,i=T.append("linearGradient").attr("id",a).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",o.x+u).attr("y1",o.y+40).attr("x2",r.x).attr("y2",r.y+40);i.append("stop").attr("offset","0%").attr("stop-color",o.color).attr("stop-opacity",.8),i.append("stop").attr("offset","100%").attr("stop-color",r.color).attr("stop-opacity",.8);const d=o.x+u,p=o.y+40,m=r.x,y=r.y+40,x=(w=e.value,f?h:(w/z*v+g)*b);var w;l.append("path").attr("class","sankey-link").attr("d",`M${d},${p} C${(d+m)/2},${p} ${(d+m)/2},${y} ${m},${y}`).attr("fill","none").attr("stroke",`url(#${a})`).attr("stroke-width",x).attr("stroke-opacity",.7).style("filter",N).on("mouseover",t=>{s.transition().duration(200).style("opacity",1),s.html(`Flow: ${e.value}<br/>Width: ${x.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),c.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{s.transition().duration(300).style("opacity",0),c.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};n.nodes.forEach((e,t)=>{const n=`node-gradient-${t}`,o=T.append("linearGradient").attr("id",n).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","100%");o.append("stop").attr("offset","0%").attr("stop-color",e.color),o.append("stop").attr("offset","100%").attr("stop-color",c.color(e.color)?.darker(.5)?.toString()||e.color);const r=l.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call(B).on("click",(e,t)=>{});r.append("rect").attr("width",u).attr("height",p).attr("rx",16).style("fill",`url(#${n})`).style("stroke",c.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",N).on("mouseover",function(){c.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){c.select(this).style("filter",N)}).on("click",(e,t)=>{}),r.append("text").attr("x",20).attr("y",30).style("fill",_).style("font-size","18px").style("font-weight","600").text(e.name),r.append("text").attr("x",20).attr("y",55).style("fill",_).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),A();const L=e.append("g").attr("class","zoom-controls"),j=o-100-20;if([{text:"Zoom In",action:"zoomIn"},{text:"Zoom Out",action:"zoomOut"},{text:"Reset Zoom",action:"resetZoom"}].forEach((e,t)=>{const n=20+44*t;L.append("rect").attr("x",j).attr("y",n).attr("width",100).attr("height",36).attr("rx",6).attr("fill","rgba(255, 255, 255, 0.9)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1).style("cursor","pointer").on("mouseover",function(){c.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){c.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":S();break;case"zoomOut":E();break;case"resetZoom":k()}}),L.append("text").attr("x",j+50).attr("y",n+18+4).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","#1a1a3e").style("pointer-events","none").text(e.text)}),e.selectAll(".stats-panel").remove(),!0===y){const t=e.append("g").attr("class","stats-panel"),n=800,a=120,i=(o-n)/2,l=r-a-20;t.append("rect").attr("x",i).attr("y",l).attr("width",n).attr("height",a).attr("rx",12).attr("fill","rgba(15, 15, 35, 1)").attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",1);const s=[{title:"TREND GOODS",value:x.trendGoods.toLocaleString(),icon:"▶",color:"#6366f1"},{title:"SHOPPING VIEWS",value:x.shoppingViews.toLocaleString(),icon:"👁",color:"#8b5cf6"},{title:"STORE DYNAMICS",value:x.storeDynamics.toLocaleString(),icon:"⏱",color:"#a855f7"}],c=n/3;s.forEach((e,n)=>{const o=i+n*c+c/2;t.append("rect").attr("x",o-25).attr("y",l+15).attr("width",50).attr("height",50).attr("rx",8).attr("fill","rgba(255, 255, 255, 0.1)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1),t.append("text").attr("x",o).attr("y",l+45).attr("text-anchor","middle").style("font-size","24px").style("fill",e.color).text(e.icon),t.append("text").attr("x",o).attr("y",l+85).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","rgba(255, 255, 255, 0.7)").style("letter-spacing","1px").text(e.title),t.append("text").attr("x",o).attr("y",l+105).attr("text-anchor","middle").style("font-size","28px").style("font-weight","bold").style("fill","white").text(e.value)})}return()=>{$.current&&$.current.remove()}},[n,o,r,a,i,f,h,g,v,b,y,x]);const S=()=>{w.current&&C.current&&c.select(w.current).transition().duration(300).call(C.current.scaleBy,1.2)},E=()=>{w.current&&C.current&&c.select(w.current).transition().duration(300).call(C.current.scaleBy,.8)},k=()=>{w.current&&C.current&&c.select(w.current).transition().duration(500).call(C.current.transform,c.zoomIdentity)};return e.jsxs("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[l&&e.jsx("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:s.map(t=>e.jsx("button",{onClick:()=>u(t),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:d===t?p:m},children:t},t))}),e.jsx("svg",{ref:w,className:"max-w-full max-h-full"})]})},exports.Search=({value:n="",error:o="",hasError:r=!1,state:a="default",placeholder:i="Search",onChange:l,onFocus:s,onBlur:c,disabled:d,className:u="",title:p="",...m})=>{const[f,h]=t.useState(!1),[g,v]=t.useState(!1),b=(()=>{if(d)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(a);return e||(r?"error":g?n?"typing":"focused":f?n?"filledHover":"hover":n?"filled":"default")})(),y=[pE.container,u].filter(Boolean).join(" "),x=[pE.input,pE[`input_state_${b}`]].filter(Boolean).join(" "),w=[pE.inputInner,pE[`inputInner_state_${b}`]].filter(Boolean).join(" "),C=d||"disabled"===b;return e.jsxs("div",{className:y,title:p,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[e.jsx("div",{className:x,children:e.jsxs("div",{className:w,children:[e.jsx("div",{className:pE.searchIcon,children:e.jsx(H,{name:"magnifying-glass",className:pE.searchIconImage,size:16})}),e.jsx("input",{type:"search",className:pE.realInput,value:n,placeholder:i,onChange:l,onFocus:e=>{v(!0),s?.(e)},onBlur:e=>{v(!1),c?.(e)},disabled:C,...m}),("focused"===b||"typing"===b)&&!n&&e.jsx("span",{className:pE.cursor,children:"|"})]})}),r&&o&&e.jsx("p",{className:pE.error,children:o})]})},exports.ShankeyPro=({flows:n,curvature:o=.5,windowSize:r={width:0,height:0},breakpoints:a={mobile:768,tablet:1024},layoutOverrides:i={},totalDetectionsIcon:l={}})=>{const s=t.useRef(null);return t.useEffect(()=>{if("undefined"==typeof window||!n||!Array.isArray(n)||0===n.length||!s.current)return;const e=c.select(s.current);e.selectAll("*").remove();const t=(e,t={})=>({dimensions:{...e.dimensions,...t.dimensions},nodePlacement:{...e.nodePlacement,...t.nodePlacement},specialFlows:t.specialFlows||e.specialFlows,cardConfig:{...e.cardConfig,...t.cardConfig}}),r="undefined"!=typeof window?window.innerWidth:1200,d=e=>{let t;switch(e){case"mobile":t=M;break;case"tablet":t=D;break;default:t=O}return{dimensions:{width:(()=>{switch(e){case"mobile":return Math.min(r-40,t.width);case"tablet":return Math.min(r-60,t.width);default:return t.width}})(),height:t.height,viewBox:t.viewBox,scale:t.scale,fontSize:t.fontSize,cardWidth:t.cardWidth,cardHeight:t.cardHeight},nodePlacement:{main:t.main,source:t.source},specialFlows:t.specialFlows,cardConfig:{cardX:t.cards.cardX,cardY1:t.cards.cardY1,cardY2:t.cards.cardY2,padding:t.cards.padding,gap:t.cards.gap,fontSize:t.cards.fontSize}}},{dimensions:u,nodePlacement:p,specialFlows:m,cardConfig:f}=(()=>{if("undefined"==typeof window){const e=d("desktop");return t(e,i.desktop)}const e=window.innerWidth,{mobile:n=768,tablet:o=1024}=a;let r,l={};e<=n?(r="mobile",l=i.mobile||{}):e<=o?(r="tablet",l=i.tablet||{}):(r="desktop",l=i.desktop||{});const s=d(r);return t(s,l)})(),{width:h,height:g,viewBox:v,scale:b,fontSize:y,cardWidth:x,cardHeight:w}=u,$=O.nodeWidth*b;e.attr("width",h).attr("height",g).attr("viewBox",v);const S=e.append("defs");S.append("filter").attr("id","cardShadow").attr("x","-50%").attr("y","-50%").attr("width","200%").attr("height","200%").append("feDropShadow").attr("dx",0).attr("dy",4).attr("stdDeviation",20).attr("flood-color",P).attr("flood-opacity",B.shadowOpacity);let T=c.select("body").select(".sankey-tooltip");T.empty()&&(T=c.select("body").append("div").attr("class","sankey-tooltip absolute bg-black bg-opacity-80 text-white px-3 py-2 rounded-md text-xs pointer-events-none z-50 shadow-lg border border-white border-opacity-20").style("opacity",0));const z=n.filter(e=>"main"===e.type).map((e,t)=>{const n=m[e.id];if(n)return{...e,source:{x:p.main.source.x,y:p.main.source.y,width:p.main.source.width},target:n.target};{const n=p.main;return{...e,source:{x:n.source.x,y:n.source.y,width:n.source.width},target:{x:n.target.x,y:n.target.y+t*n.target.spacing,width:n.target.width}}}}),A=n.filter(e=>"source"===e.type).map((e,t)=>{const n=p.source,o=(()=>{if("undefined"==typeof window)return[185,216,280,248,310,340,370,400,216,430,280,460];const e=window.innerWidth;return e<=768?[92,107,122,137,152,167,182,197,107,212,122,227]:e<=1024?[129,151,173,195,217,239,261,283,151,305,173,327]:[185,216,280,248,310,340,370,400,216,430,280,460]})(),r=R(e.sourceValue||0,n.source.width),a=R(e.sourceValue||0,n.target.width);return{...e,source:{x:n.source.x,y:n.source.y+t*n.source.spacing,width:r},target:{x:n.target.x,y:o[t]||n.target.y+t*n.target.spacing,width:a}}});z.forEach(e=>{const t=S.append("linearGradient").attr("id",`gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.gradientColors?.start||e.color;const n=e.gradientColors?.end||e.color||"#b6abff";t.append("stop").attr("offset","0%").attr("stop-color",C).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",C).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",C).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",n).attr("stop-opacity",1)}),A.forEach(e=>{const t=S.append("linearGradient").attr("id",`source-gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",C).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",C).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const L=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:n}=e,r=o,a=n.x-t.x,i=t.x+a*r,l=n.x-a*r;return`\n M ${t.x} ${t.y-t.width/2}\n C ${i} ${t.y-t.width/2}, \n ${l} ${n.y-n.width/2}, \n ${n.x} ${n.y-n.width/2}\n `+`\n L ${n.x} ${n.y+n.width/2}\n C ${l} ${n.y+n.width/2}, \n ${i} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};z.slice().reverse().forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",L(t)).attr("fill",`url(#gradient-${t.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",B.strokeWidth).style("opacity","0.6").style("transition",`opacity ${B.transitionDuration}ms, stroke ${B.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",t.id).style("opacity",B.defaultOpacity).on("mouseover",function(n,o){const r=z.find(e=>e.id===t.id);r&&(T.transition().duration(200).style("opacity",1),T.html(`\n <strong>Flow ${t.id}</strong><br/>\n Source: (${r.source.x}, ${r.source.y})<br/>\n Source Width: ${r.source.width}px<br/>\n Target: (${r.target.x}, ${r.target.y})<br/>\n Target Width: ${r.target.width}px<br/>\n Color: ${r.color}\n `).style("left",n.pageX+10+"px").style("top",n.pageY-10+"px"),e.selectAll("path[data-flow-id]").style("opacity",.3),c.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){T.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){T.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),c.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),A.forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",L(t)).attr("fill",`url(#source-gradient-${t.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width","0.5").style("opacity","0.6").style("transition","opacity 0.3s, stroke 0.3s").style("cursor","pointer").attr("data-flow-id",t.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(n,o){const r=A.find(e=>e.id===t.id);r&&(T.transition().duration(200).style("opacity",1),T.html(`\n <strong>${r.sourceLabel}</strong><br/>\n Value: ${r.sourceValue}<br/>\n Source: (${r.source.x}, ${r.source.y})<br/>\n Source Width: ${r.source.width}px<br/>\n Target: (${r.target.x}, ${r.target.y})<br/>\n Target Width: ${r.target.width}px\n `).style("left",n.pageX+10+"px").style("top",n.pageY-10+"px"),e.selectAll("path[data-flow-id]").style("opacity",.3),c.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){T.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){T.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),c.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),z.slice().reverse().forEach((t,n)=>{t&&t.source&&t.target&&e.append("rect").attr("x",t.target.x-$/2).attr("y",t.target.y-t.target.width/2).attr("width",$).attr("height",t.target.width).style("fill",E).style("rx","3").style("ry","3")}),A.forEach((t,n)=>{if(!t||!t.source||!t.target)return;const o=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();e.append("text").attr("x",o).attr("y",t.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",N).style("font-weight","500").style("font-size",`${y}px`).text(t.sourceLabel||""),e.append("text").attr("x",o).attr("y",t.source.y+8).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","11px").style("fill","black").style("font-weight","600").style("font-size",y-2+"px").text(void 0!==t.sourceValue?t.sourceValue:""),e.append("rect").attr("x",t.target.x-$/2).attr("y",t.target.y-t.target.width/2).attr("width",$-3).attr("height",t.target.width).style("fill",E).style("rx","3").style("ry","3")});const{cardX:j,cardY1:H,cardY2:F,padding:V,gap:W,fontSize:K}=f;e.append("rect").attr("x",j).attr("y",H).attr("width",x).attr("height",w).attr("rx",12*b).attr("ry",12*b).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),e.append("text").attr("x",j+V.left).attr("y",H+V.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",k).style("font-weight","500").style("font-size",`${K.title}px`).style("font-weight","500").text("Total Detections");const q=(()=>{const e=l.alignment||"left",t=l.position?.y||H+V.top+8;if(void 0!==l.position?.x)return{x:l.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",K.title);return{x:j+V.left+e+15,y:t};case"center":return{x:j+x/2,y:t};default:return{x:j+x-V.right-16,y:t}}})(),U={icon:l.icon||"↗",color:l.color||"#8B5FBF",size:l.size||14,x:q.x,y:q.y,alignment:l.alignment||"right"},X=e.append("text").attr("x",U.x).attr("y",U.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(U.alignment)).attr("dominant-baseline","middle").style("font-size",`${U.size}px`).style("fill",U.color).style("font-weight","600").style("cursor",l.onClick?"pointer":"default").text(U.icon);l.onClick&&X.on("click",l.onClick).on("mouseover",function(){c.select(this).style("opacity",.7)}).on("mouseout",function(){c.select(this).style("opacity",1)}),e.append("text").attr("x",j+V.left).attr("y",H+V.top+8+W+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",k).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",k).text("9100"),e.append("text").attr("x",j+V.left+70).attr("y",H+V.top+8+W+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",I).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",I).text("▲ +10%"),e.append("text").attr("x",j+V.left).attr("y",H+V.top+8+W+16+W+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",_).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",_).text("In last 7 days"),e.append("rect").attr("x",j).attr("y",F).attr("width",259).attr("height",307).attr("rx",12).attr("ry",12).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),e.append("text").attr("x",j+V.left).attr("y",F+V.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",k).style("font-weight","500").text("Mitigated Threats"),e.append("text").attr("x",j+259-V.right).attr("y",F+V.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",k).style("font-weight","500").text("9000");[{label:"Critical",value:60,color:"#4C1D95"},{label:"High",value:300,color:"#7C3AED"},{label:"Medium",value:860,color:"#A78BFA"},{label:"Low",value:100,color:"#DDD6FE"}].forEach((t,n)=>{const o=F+V.top+16+W+20+28*n;e.append("text").attr("x",j+V.left).attr("y",o).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",N).style("font-weight","500").text(t.label),e.append("text").attr("x",j+259-V.right).attr("y",o).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",N).style("font-weight","500").text(t.value)});const G=F+V.top+16+W+20+112+W+20;e.append("text").attr("x",j+V.left).attr("y",G).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",k).style("font-weight","500").text("Unmitigated Threats"),e.append("text").attr("x",j+259-V.right).attr("y",G).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",k).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((t,n)=>{const o=G+W+16+28*n;e.append("text").attr("x",j+V.left).attr("y",o).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",N).style("font-weight","500").text(t.label),e.append("text").attr("x",j+259-V.right).attr("y",o).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",N).style("font-weight","500").text(t.value)}),()=>{"undefined"!=typeof window&&c.select("body").selectAll(".sankey-tooltip").remove()}},[n,o,s]),e.jsx("div",{className:"flex justify-center w-full",children:e.jsx("svg",{id:"sankey-chart",ref:s,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})},exports.ShankyFlow=({flows:n=[],hoverColor:o="#FF6B6B",title:r="Clipboard Copy Source to Paste Diagram",subtitle:a="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:i=!0,showTitle:l=!0,showSubtitle:s=!0,showDebug:d=!1,sourceHeader:m="Copying Sources",targetHeader:f="Pasting Targets",labelColor:h="#374151",valueColor:g="#111827",headerColor:v="#454545",titleColor:b="#111827",subtitleColor:y="#6B7280",headerUnderlineColor:x="#D4C4FF",flowOpacity:w=.7,hoverOpacity:C=.9,curvature:$=.4,valueFormatter:S,labelFormatter:E,tooltipRenderer:k,gradientStops:N,responsive:_=!0,width:I,height:P,margin:R,nodeHeight:O,flowScaleFactor:D,fontSize:M,responsiveConfig:B=u,breakpoints:T=p})=>{const z=t.useRef(null),A=t.useRef(null),[L,j]=t.useState({width:0,height:0}),[H,F]=t.useState(B.desktop),[V,W]=t.useState(!1),K=t.useCallback(()=>{if("undefined"==typeof window)return B.desktop;const e=window.innerWidth;return e<T.mobile?B.mobile:e<T.tablet?B.tablet:(T.desktop,B.desktop)},[B,T]);return t.useEffect(()=>{const e=()=>{const e=K(),t={...e,margin:R??e.margin,nodeHeight:O??e.nodeHeight,flowScaleFactor:D??e.flowScaleFactor,fontSize:M??e.fontSize,width:I??e.width,height:P??e.height};F(t);const n=window.innerWidth-128;let o=t.width;_&&(o=e===B.desktop?n>=t.width?t.width:Math.max(n,600):Math.max(n,t.width)),j({width:o,height:t.height}),V||W(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[K,V,_,I,P,R,O,D,M,B]),t.useEffect(()=>{if(!(n.length&&L.width&&L.height&&V))return;const e=c.select(z.current);e.selectAll("*").remove();const{width:t,height:d}=L,{margin:u,fontSize:p,nodeHeight:_,flowScaleFactor:I}=H,P=new Map,R=new Map,O=new Map,D=new Map;n.forEach(e=>{O.has(e.source)||O.set(e.source,[]),O.get(e.source).push(e),D.has(e.target)||D.set(e.target,[]),D.get(e.target).push(e),P.set(e.source,e.sourceValue),R.set(e.target,e.targetValue)});const M=Array.from(P.entries()),B=Array.from(R.entries()),T=d-u.top-u.bottom,A=T/(M.length+1),j=T/(B.length+1),F=M.map(([e,t],n)=>({name:e,value:t,y:u.top+A*(n+1),height:_})),W=B.map(([e,t],n)=>({name:e,value:t,y:u.top+j*(n+1),height:_})),K=u.left,q=t-u.right;e.attr("width",t).attr("height",d);const U=e.append("defs");n.forEach((e,t)=>{const n=U.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",K+80).attr("x2",q-80);(N&&N.length>0?N:[{offset:"0%",color:"#8B5CF6",opacity:.8},{offset:"50%",color:"#3B82F6",opacity:.7},{offset:"100%",color:"#06B6D4",opacity:.8}]).forEach(e=>{n.append("stop").attr("offset","number"==typeof e.offset?`${e.offset}%`:e.offset).attr("stop-color",e.color).attr("stop-opacity",e.opacity??.8)})});let X=c.select("body").select(".sankey-tooltip");X.empty()&&(X=c.select("body").append("div").attr("class","sankey-tooltip").style("position","absolute").style("background","rgba(0, 0, 0, 0.9)").style("color","white").style("padding","12px 16px").style("border-radius","8px").style("font-size","13px").style("font-family","system-ui, sans-serif").style("pointer-events","none").style("opacity",0).style("z-index",1e3).style("box-shadow","0 4px 12px rgba(0,0,0,0.3)").style("max-width","250px"));const G=new Map;F.forEach(e=>{const t=O.get(e.name)||[];let n=e.y-e.height/2;G.set(e.name,new Map),t.forEach(t=>{const o=W.find(e=>e.name===t.target);if(!o)return;const r=o.value,a=_,i=t.thickness/r*a*I;G.get(e.name).set(t.target,{startY:n,endY:n+i,centerY:n+i/2}),n+=i})});const Y=new Map;if(W.forEach(e=>{const t=D.get(e.name)||[];let n=e.y-e.height/2;Y.set(e.name,new Map),t.forEach(t=>{const o=_,r=t.thickness/e.value*o*I;Y.get(e.name).set(t.source,{startY:n,endY:n+r,centerY:n+r/2}),n+=r})}),n.forEach((t,n)=>{const r=F.find(e=>e.name===t.source),a=W.find(e=>e.name===t.target);if(r&&a){const r=G.get(t.source).get(t.target),a=Y.get(t.target).get(t.source),i=r.startY,l=r.endY,s=a.startY,d=a.endY,u=$,p=c.interpolateNumber(K,q),m=p(u),f=p(1-u),h=`M${K},${i}\n C${m},${i} ${f},${s} ${q},${s}\n L${q},${d}\n C${f},${d} ${m},${l} ${K},${l}\n Z`;e.append("path").attr("d",h).attr("fill",`url(#gradient-${n})`).attr("opacity",w).style("cursor","pointer").on("mouseover",function(e){c.select(this).attr("fill",o).attr("opacity",C),"function"==typeof k?X.style("opacity",1).html(k(t)):X.style("opacity",1).html(`\n <div style="font-weight: 600; margin-bottom: 8px;">Flow Details</div>\n <div><strong>From:</strong> ${t.source}</div>\n <div><strong>To:</strong> ${t.target}</div>\n <div><strong>Value:</strong> ${t.thickness}</div>\n <div><strong>Source Total:</strong> ${t.sourceValue}</div>\n <div><strong>Target Total:</strong> ${t.targetValue}</div>\n `)}).on("mousemove",function(e){X.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){c.select(this).attr("fill",`url(#gradient-${n})`).attr("opacity",w),X.style("opacity",0)})}}),i){const t=e.append("text").attr("x",K-15).attr("y",u.top-10).attr("text-anchor","end").attr("fill",v).attr("font-size",`${p.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(m).node();if(t){const n=t.getBBox();e.append("line").attr("x1",n.x).attr("y1",u.top).attr("x2",n.x+n.width).attr("y2",u.top).attr("stroke",x).attr("stroke-width","1").attr("opacity","1")}const n=e.append("text").attr("x",q+15).attr("y",u.top-10).attr("text-anchor","start").attr("fill",v).attr("font-size",`${p.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(f).node();if(n){const t=n.getBBox();e.append("line").attr("x1",t.x).attr("y1",u.top).attr("x2",t.x+t.width).attr("y2",u.top).attr("stroke",x).attr("stroke-width","1").attr("opacity","1")}}return F.forEach(t=>{e.append("text").attr("x",K-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",h).attr("font-size",`${p.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(E?E(t.name):t.name),e.append("text").attr("x",K-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",g).attr("font-size",`${p.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(S?S(t.value):t.value)}),W.forEach(t=>{e.append("text").attr("x",q+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",h).attr("font-size",`${p.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(E?E(t.name):t.name),e.append("text").attr("x",q+15).attr("y",t.y+12).attr("text-anchor","start").attr("fill",g).attr("font-size",`${p.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(S?S(t.value):t.value)}),l&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",b).attr("font-size",`${p.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(r),s&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",y).attr("font-size",`${p.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(a),()=>{c.select("body").selectAll(".sankey-tooltip").remove()}},[n,o,r,a,L,H,N,h,g,v,b,y,x,w,C,$,S,E,k,i,l,s,d]),e.jsx("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[d&&e.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",H===B.desktop?"Desktop":H===B.tablet?"Tablet":"Mobile"," | Chart: ",L.width,"x",L.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",V?"Yes":"No",e.jsx("button",{onClick:()=>{const e=K();F(e);const t=window.innerWidth-128;let n=e.width;n=e===B.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),j({width:n,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),e.jsx("div",{ref:A,className:"w-full overflow-x-auto",children:e.jsx("div",{className:"flex justify-center min-w-max",children:e.jsx("svg",{ref:z,style:{width:L.width||H.width,height:L.height||H.height,minWidth:H.width,minHeight:H.height}})})})]})})},exports.StatusIndicator=({label:t="Status",state:n="default",size:o="medium",color:r="green",onClick:a,className:i="",...l})=>{const s=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(n),c=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(r),d=o.toLowerCase(),u=[mE.statusIndicator,mE[`size_${d}`],mE[`state_${s}`],mE[`color_${c}`],i].filter(Boolean).join(" "),p=a?"button":"div";return e.jsxs(p,{className:u,onClick:a,disabled:"disabled"===s,type:a?"button":void 0,...l,children:[(()=>{const t=(()=>{switch(c){case"red":return"var(--color-red-500)";case"yellow":return"var(--color-yellow-500)";case"blue":return"var(--color-violet-500)";default:return"var(--color-green-500)"}})();return e.jsx("div",{className:mE.indicator,style:{backgroundColor:t}})})(),e.jsx("span",{className:mE.label,children:t})]})},exports.Tab=hE,exports.TabList=({items:t,activeKey:n,onChange:o,className:r=""})=>{const a=[gE.tabList,r].filter(Boolean).join(" ");return e.jsx("div",{className:a,role:"tablist",children:t.map(t=>e.jsx(hE,{label:t.label,count:t.count,disabled:t.disabled,isActive:n===t.key,onClick:()=>!t.disabled&&o?.(t.key)},t.key))})},exports.Table=function({columns:n=[],data:o=[],rowKey:r="id",onRowReorder:a,onRowSelect:i,onSort:l,className:c="",...d}){const[u,p]=t.useState([]),[m,f]=t.useState({}),[h,g]=t.useState(o),[v,b]=t.useState({});s.default.useEffect(()=>{g(o)},[o]),s.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${KN.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-thead > tr > th").forEach(e=>{const t=window.getComputedStyle(e,"::before");if("none"!==t.content&&""!==t.content){const e="remove-table-separator";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`\n .${KN.tableContainer} .ant-table-thead > tr > th::before {\n display: none !important;\n content: none !important;\n width: 0 !important;\n height: 0 !important;\n background: none !important;\n opacity: 0 !important;\n visibility: hidden !important;\n }\n `,document.head.appendChild(t))}})};e();const t=[setTimeout(e,50),setTimeout(e,100),setTimeout(e,200)],n=new MutationObserver(e),o=document.querySelector(`.${KN.tableContainer}`);return o&&n.observe(o,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{t.forEach(clearTimeout),n.disconnect();const e=document.getElementById("remove-table-separator");e&&e.remove()}},[h,n]),s.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${KN.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-column-sorter, .ant-table-column-sorter-full, .ant-table-column-sorter-inner").forEach(e=>{const t=e;t.closest(`.${KN.sortIconLeft}`)||(t.style.display="none",t.style.visibility="hidden",t.style.opacity="0",t.style.width="0",t.style.height="0",t.style.margin="0",t.style.padding="0")})};e();const t=setTimeout(e,100),n=new MutationObserver(e),o=document.querySelector(`.${KN.tableContainer}`);return o&&n.observe(o,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),n.disconnect()}},[h,n,m]);const y=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.useMemo(()=>[...n].filter(e=>null!=e),[...n])}(YE(Hk),YE(Tk,{coordinateGetter:VN})),x=e=>{p(e),i&&i(e)},w=t.useCallback((e,t)=>{b(n=>({...n,[e]:t}))},[]),C=t.useCallback(e=>{},[]),$=t.useCallback(e=>{},[]),S=t.useMemo(()=>{const t={title:"",key:"drag-handle",width:40,fixed:"left",className:KN.dragHandleHeader,render:()=>e.jsx(XN,{})},o=n.map(t=>{const n=v[t.key]||t.width||void 0,o=t.sortable&&m.columnKey===t.key&&m.order||null,r=t.sortable?e.jsx("span",{className:KN.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!t.sortable)return;let n;if(n=m.columnKey===t.key?"ascend"===m.order?"descend":"descend"===m.order?null:"ascend":"ascend",n){if(f({order:n,columnKey:t.key}),l){const e="ascend"===n?"asc":"desc";l(t.key,e)}}else f({}),l&&l(null,null)},title:"Click to sort",children:(a=o,"ascend"===a?e.jsx(H,{name:"sort-ascending",size:14}):"descend"===a?e.jsx(H,{name:"sort-descending",size:14}):e.jsx(H,{name:"caret-up-down",size:14}))}):null;var a;return{title:e.jsxs("div",{className:KN.columnHeaderContent,children:[r,e.jsx("span",{className:KN.columnHeaderLabel,children:t.label}),e.jsx(GN,{columnKey:t.key,onResizeStart:C,onResize:w,onResizeEnd:$})]}),dataIndex:t.key,key:t.key,width:n,sorter:!1,render:t.render||(e=>e),className:KN.tableCell,showSorterTooltip:!1}}),a=h.length,i=u.length,s=a>0&&i===a,c=!(0===i)&&!s;return[t,{title:e.jsx("div",{className:KN.checkboxHeader,children:e.jsx(HS,{checked:s,indeterminate:c,onChange:e=>{if(c)x([]);else{const t=e.target.checked;x(t?h.map(e=>e[r]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${KN.tableCell} ${KN.checkboxColumn}`,render:(t,n)=>{const o=u.includes(n[r]);return e.jsx("div",{className:KN.checkboxCell,children:e.jsx(HS,{checked:o,onChange:e=>{const t=e.target.checked?[...u,n[r]]:u.filter(e=>e!==n[r]);x(t)},size:"small"})})}},...o]},[n,m,v,u,h,r,l,C,w,$]),E=[KN.tableContainer,c].filter(Boolean).join(" "),k=t.useMemo(()=>h.map(e=>e[r]),[h,r]),N={body:{row:t=>{let n=t["data-row-key"];if(!n&&t.children){const e=s.default.Children.toArray(t.children);for(const t of e){const e=t;if(e?.props?.record?.[r]){n=e.props.record[r];break}}}if(!n&&void 0!==t["data-row-index"]){const e=t["data-row-index"];h[e]&&h[e][r]&&(n=h[e][r])}return n?e.jsx(UN,{id:n,rowKey:r,row:t,children:t.children}):e.jsx("tr",{...t,children:t.children})}}};return e.jsx("div",{className:E,...d,children:e.jsx(xN,{sensors:y,collisionDetection:rk,onDragEnd:e=>{const{active:t,over:n}=e;n&&t.id!==n.id&&g(e=>{const o=e.findIndex(e=>e[r]===t.id),i=e.findIndex(e=>e[r]===n.id),l=EN(e,o,i);return a&&a(l),l})},children:e.jsx(DN,{items:k,strategy:PN,children:e.jsx(TS,{className:KN.antTable,columns:S,dataSource:h,rowKey:r,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:N})})})})},exports.TextArea=({value:n,defaultValue:o,body:r,title:a="",description:i="",label:l="",error:s="",hasLabel:c=!0,hasDescription:d=!0,hasError:u=!1,showIcon:p=!1,chooseIcon:m=null,showTitle:f=!1,showDragIcon:h=!0,state:g="default",placeholder:v="Body",onChange:b,onFocus:y,onBlur:x,disabled:w,className:C="",rows:$=4,...S})=>{const[E,k]=t.useState(!1);let N=w?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(g);"default"===N&&E&&(N="focused");const _=[YN.container,C].filter(Boolean).join(" "),I=[YN.textareaWrapper,YN[`textareaWrapper_state_${N}`],u?YN.textareaWrapper_state_error:""].filter(Boolean).join(" "),P=w||"disabled"===N,R=void 0!==n?n:r;return e.jsxs("div",{className:_,children:[c&&l&&e.jsx("label",{className:YN.label,children:l}),d&&i&&e.jsx("p",{className:YN.description,children:i}),e.jsx("div",{className:I,children:e.jsxs("div",{className:YN.textareaInner,children:[e.jsxs("div",{className:YN.textContent,children:[f&&a&&e.jsx("p",{className:YN.title,children:a}),e.jsx("textarea",{className:YN.nativeTextarea,value:R,defaultValue:o,placeholder:v,onChange:b,onFocus:e=>{k(!0),y&&y(e)},onBlur:e=>{k(!1),x&&x(e)},disabled:P,rows:$,...S})]}),p?m||e.jsx("div",{className:YN.iconWrapper,children:e.jsx("img",{src:"/icons/Icon.svg",alt:"Icon",className:YN.icon})}):null,h?e.jsx("div",{className:YN.dragIcon,children:e.jsx("img",{src:"/icons/Vector.svg",alt:"Drag",className:YN.dragIconImage})}):null]})}),(u||"error"===N)&&s&&e.jsx("p",{className:YN.error,children:s})]})},exports.Toggle=US,exports.addAnimationClass=function(e,t){e&&e.classList.add(e_[t])},exports.allIcons=j,exports.animateElement=function(e,t,n){return e?e.animate(t,n):null},exports.animationClasses=e_,exports.capitalizeFirst=t_,exports.capitalizeWords=function(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())},exports.colorPalettes={default:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#feca57","#ff9ff3"],vibrant:["#ff4757","#2ed573","#3742fa","#ffa502","#ff6348","#5352ed"],pastel:["#ffb3ba","#baffc9","#bae1ff","#ffffba","#ffb3d9","#d4b3ff"],monochrome:["#f8f9fa","#e9ecef","#dee2e6","#ced4da","#adb5bd","#6c757d"],warm:["#ff6b6b","#ff8e53","#ffa726","#ffcc02","#ffeb3b","#fff176"],cool:["#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a"]},exports.commonRules=r_,exports.createAnimation=JN,exports.createTheme=function(e){return{...ZN.light,...e}},exports.createTransition=function(e,t,n=300,o="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${n}ms ${o}`).join(", "))},exports.defaultAnimations=QN,exports.defaultThemes=ZN,exports.formatCompactNumber=function(e){if(0===e)return"0";const t=Math.abs(e),n=e<0?"-":"";return t>=1e12?`${n}${(t/1e12).toFixed(1)}T`:t>=1e9?`${n}${(t/1e9).toFixed(1)}B`:t>=1e6?`${n}${(t/1e6).toFixed(1)}M`:t>=1e3?`${n}${(t/1e3).toFixed(1)}K`:e.toString()},exports.formatCreditCard=function(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()},exports.formatCurrency=function(e,t="USD",n=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:n,maximumFractionDigits:n}).format(e)},exports.formatDate=function(e,t={}){const n=new Date(e),o={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",o).format(n)},exports.formatDateTime=function(e,t={}){const n=new Date(e),o={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...t};return new Intl.DateTimeFormat("en-US",o).format(n)},exports.formatDuration=function(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%60);return t>0?`${t}:${n.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`${n}:${o.toString().padStart(2,"0")}`},exports.formatFieldLabel=function(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()},exports.formatFileSize=function(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][t]}`},exports.formatNumber=function(e,t={}){const{minimumFractionDigits:n=0,maximumFractionDigits:o=2,useGrouping:r=!0,currency:a="USD",style:i="decimal"}=t;return new Intl.NumberFormat("en-US",{style:i,currency:a,minimumFractionDigits:n,maximumFractionDigits:o,useGrouping:r}).format(e)},exports.formatPercentage=function(e,t=1){return`${(100*e).toFixed(t)}%`},exports.formatPhoneNumber=function(e){const t=e.replace(/\D/g,"");return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:11===t.length&&"1"===t[0]?`+1 (${t.slice(1,4)}) ${t.slice(4,7)}-${t.slice(7)}`:e},exports.formatRelativeTime=function(e,t=new Date){const n=new Date(e),o=Math.floor((t.getTime()-n.getTime())/1e3);if(o<60)return"just now";const r=Math.floor(o/60);if(r<60)return`${r} minute${r>1?"s":""} ago`;const a=Math.floor(r/60);if(a<24)return`${a} hour${a>1?"s":""} ago`;const i=Math.floor(a/24);if(i<30)return`${i} day${i>1?"s":""} ago`;const l=Math.floor(i/30);if(l<12)return`${l} month${l>1?"s":""} ago`;const s=Math.floor(l/12);return`${s} year${s>1?"s":""} ago`},exports.formatValidationError=function(e,t){return`${t_(e)} ${t}`},exports.removeAnimationClass=function(e,t){e&&e.classList.remove(e_[t])},exports.removeTransition=function(e){e&&(e.style.transition="")},exports.slugify=function(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")},exports.staggerAnimation=function(e,t,n=100,o){return e.map((e,r)=>{const a={...o,delay:(o?.delay||0)+r*n};return JN(e,t,a)}).filter(Boolean)},exports.truncateText=function(e,t,n="..."){return e.length<=t?e:e.slice(0,t-n.length)+n},exports.validateCreditCard=function(e){const t=e.replace(/\D/g,"");if(!e)return{isValid:!1,message:"Credit card number is required"};if(t.length<13||t.length>19)return{isValid:!1,message:"Please enter a valid credit card number"};let n=0,o=!1;for(let e=t.length-1;e>=0;e--){let r=parseInt(t[e]);o&&(r*=2,r>9&&(r-=9)),n+=r,o=!o}return n%10!=0?{isValid:!1,message:"Please enter a valid credit card number"}:{isValid:!0}},exports.validateEmail=function(e){return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{isValid:!0}:{isValid:!1,message:"Please enter a valid email address"}:{isValid:!1,message:"Email is required"}},exports.validateField=n_,exports.validateForm=function(e,t){const n={};let o=!0;for(const[r,a]of Object.entries(t)){const t=n_(e[r],a);t.isValid||(n[r]=t.message||"Invalid value",o=!1)}return{isValid:o,errors:n}},exports.validatePassword=function(e){return e?e.length<8?{isValid:!1,message:"Password must be at least 8 characters long"}:/(?=.*[a-z])/.test(e)?/(?=.*[A-Z])/.test(e)?/(?=.*\d)/.test(e)?/(?=.*[@$!%*?&])/.test(e)?{isValid:!0}:{isValid:!1,message:"Password must contain at least one special character"}:{isValid:!1,message:"Password must contain at least one number"}:{isValid:!1,message:"Password must contain at least one uppercase letter"}:{isValid:!1,message:"Password must contain at least one lowercase letter"}:{isValid:!1,message:"Password is required"}},exports.validatePhoneNumber=function(e){const t=e.replace(/\D/g,"");return e?t.length<10||t.length>15?{isValid:!1,message:"Please enter a valid phone number"}:/^[\+]?[1-9][\d]{0,15}$/.test(t)?{isValid:!0}:{isValid:!1,message:"Please enter a valid phone number"}:{isValid:!1,message:"Phone number is required"}},exports.validateURL=function(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}},exports.validationPatterns=o_;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("d3"),n=require("antd"),o=require("@dnd-kit/core"),r=require("@dnd-kit/sortable"),l=require("@dnd-kit/utilities");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var c=i(t),d=s(a);const u={width:800,height:400,margin:{top:20,right:30,bottom:60,left:80},colors:{gradient:{start:"#8B5CF6",end:"#6B46C1"}},showGrid:!0,animate:!0,responsive:!0,showTooltip:!0,cornerRadius:5,barPadding:.6,tickCount:5,formatValue:e=>0===e?"0":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}k`:e.toString()},m={desktop:{width:900,height:650,margin:{top:120,right:180,bottom:60,left:180},fontSize:{title:26,subtitle:14,label:14,value:16},nodeHeight:45,flowScaleFactor:.35},tablet:{width:700,height:550,margin:{top:100,right:140,bottom:50,left:140},fontSize:{title:22,subtitle:14,label:14,value:18},nodeHeight:40,flowScaleFactor:.3},mobile:{width:350,height:400,margin:{top:80,right:80,bottom:40,left:80},fontSize:{title:16,subtitle:12,label:11,value:14},nodeHeight:30,flowScaleFactor:.2}},h={mobile:640,tablet:1024,desktop:1024},p=75,g=16,f=1500,_=20,v=e=>`${e.label}: ${e.value.toLocaleString()} (${(100*e.percentage).toFixed(1)}%)`,b="#7E22CE",x="#7C3AED",w="#DDD6FE",C="#F3F4F6",y="#B4AAFF",k="#8B5FBF",P="#A78BFA",S="#642CFD",N="#131313",j="#5B5B5B",I="#6B7280",A="#059669",L="#7090B0",D=(e,t=40)=>0===e?0:e>=1e4?t/1:e>5e3?t/2:e<5e3?t/3:t,B={width:1100,height:650,viewBox:"-30 0 1100 700",scale:1,fontSize:14,cardWidth:259,cardHeight:115,nodeWidth:5,main:{source:{x:430,y:320,width:300},target:{x:833,y:236,width:10,spacing:28}},source:{source:{x:75,y:50,width:40,spacing:50},target:{x:430,y:185,width:28,spacing:31}},cards:{cardX:830,cardY1:30,cardY2:160,padding:{top:24,right:20,bottom:24,left:20},gap:16,fontSize:{title:16,value:24,subtitle:14}},specialFlows:{flow5:{target:{x:833,y:384,width:5}}}},z={width:800,height:600,viewBox:"-25 0 800 600",scale:.7,fontSize:12,cardWidth:220,cardHeight:90,nodeWidth:3.5,main:{source:{x:215,y:224,width:210},target:{x:583,y:165,width:7,spacing:20}},source:{source:{x:52,y:35,width:28,spacing:35},target:{x:215,y:129,width:20,spacing:22}},cards:{cardX:600,cardY1:25,cardY2:140,padding:{top:18,right:15,bottom:18,left:15},gap:12,fontSize:{title:14,value:20,subtitle:12}},specialFlows:{flow5:{target:{x:600,y:280,width:4}}}},$={width:400,height:500,viewBox:"-20 0 400 500",scale:.4,fontSize:10,cardWidth:200,cardHeight:80,nodeWidth:2,main:{source:{x:120,y:160,width:150},target:{x:300,y:118,width:5,spacing:14}},source:{source:{x:30,y:25,width:20,spacing:25},target:{x:120,y:92,width:14,spacing:15}},cards:{cardX:250,cardY1:20,cardY2:120,padding:{top:12,right:10,bottom:12,left:10},gap:8,fontSize:{title:12,value:16,subtitle:10}},specialFlows:{flow5:{target:{x:280,y:200,width:3}}}},T={borderRadius:12,shadowOpacity:.12,defaultOpacity:.8,hoverOpacity:1,strokeWidth:.5,hoverStrokeWidth:2,transitionDuration:300,tooltipOffset:10};(e=>{const t=e.filter(e=>"main"===e.type),a=e.filter(e=>"source"===e.type),n=[];t.forEach((e,a)=>{const o=(t.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});o&&n.push({...e,source:o.source,target:o.target})}),a.forEach((e,t)=>{const o=(a.length,e.id,{source:{x:0,y:0,width:0},target:{x:0,y:0,width:0}});o&&n.push({...e,source:o.source,target:o.target})})})([{id:"flow1",type:"main",color:b,gradientColors:{start:y,end:b}},{id:"flow2",type:"main",color:x,gradientColors:{start:y,end:x}},{id:"flow3",type:"main",color:"#A78BFA",gradientColors:{start:y,end:b}},{id:"flow4",type:"main",color:w,gradientColors:{start:y,end:w}},{id:"flow5",type:"main",color:C,gradientColors:{start:y,end:C}},{id:"source1",type:"source",sourceLabel:"Source 1",sourceValue:15e3,color:k,gradientColors:{start:y,end:k}},{id:"source2",type:"source",sourceLabel:"Source 2",sourceValue:12e3,color:x,gradientColors:{start:y,end:x}},{id:"source3",type:"source",sourceLabel:"Source 3",sourceValue:8e3,color:P,gradientColors:{start:y,end:P}},{id:"source4",type:"source",sourceLabel:"Source 4",sourceValue:5e3,color:w,gradientColors:{start:y,end:w}},{id:"source5",type:"source",sourceLabel:"Source 5",sourceValue:2e3,color:C,gradientColors:{start:y,end:C}}]);function R(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=R(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function F(){for(var e,t,a=0,n="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=R(e))&&(n&&(n+=" "),n+=t);return n}var W={button:"Button-module_button__hvJpb",label:"Button-module_label__zSB3D",icon:"Button-module_icon__pfoz5",loaderIcon:"Button-module_loaderIcon__4WG9k",spin:"Button-module_spin__6Uwop",size_medium:"Button-module_size_medium__TGkrI",size_small:"Button-module_size_small__-vQKB",style_primary:"Button-module_style_primary__GfCKd",state_default:"Button-module_state_default__KGxJA",state_hover:"Button-module_state_hover__NNaw2",state_focus:"Button-module_state_focus__xudCD",state_disabled:"Button-module_state_disabled__6SakQ",state_loading:"Button-module_state_loading__ZhHO9",style_secondary:"Button-module_style_secondary__9kVUP",style_neutral:"Button-module_style_neutral__ZoLsO",style_subtle:"Button-module_style_subtle__oOeBv"},E={icon:"Icon-module_icon__hJi-x",variant_default:"Icon-module_variant_default__4khrG",variant_hover:"Icon-module_variant_hover__Z-Zt4",variant_active:"Icon-module_variant_active__B7W-7",variant_disabled:"Icon-module_variant_disabled__u8BHu",variant_white:"Icon-module_variant_white__LRbrT"};const M=[{name:"app-window",label:"App Window",filePath:"icon/AppWindow.svg",variantCount:1},{name:"arrow-arc-left",label:"Arrow Arc Left",filePath:"icon/ArrowArcLeft.svg",variantCount:1},{name:"arrow-arc-right",label:"Arrow Arc Right",filePath:"icon/ArrowArcRight.svg",variantCount:1},{name:"arrow-bend-double-up-left",label:"Arrow Bend Double Up Left",filePath:"icon/ArrowBendDoubleUpLeft.svg",variantCount:1},{name:"arrow-bend-double-up-right",label:"Arrow Bend Double Up Right",filePath:"icon/ArrowBendDoubleUpRight.svg",variantCount:1},{name:"arrow-bend-down-left",label:"Arrow Bend Down Left",filePath:"icon/ArrowBendDownLeft.svg",variantCount:1},{name:"arrow-bend-down-right",label:"Arrow Bend Down Right",filePath:"icon/ArrowBendDownRight.svg",variantCount:1},{name:"arrow-bend-left-down",label:"Arrow Bend Left Down",filePath:"icon/ArrowBendLeftDown.svg",variantCount:1},{name:"arrow-bend-right-down",label:"Arrow Bend Right Down",filePath:"icon/ArrowBendRightDown.svg",variantCount:1},{name:"arrow-bend-right-up",label:"Arrow Bend Right Up",filePath:"icon/ArrowBendRightUp.svg",variantCount:1},{name:"arrow-bend-up-left",label:"Arrow Bend Up Left",filePath:"icon/ArrowBendUpLeft.svg",variantCount:1},{name:"arrow-bend-up-right",label:"Arrow Bend Up Right",filePath:"icon/ArrowBendUpRight.svg",variantCount:1},{name:"arrow-circle-down",label:"Arrow Circle Down",filePath:"icon/ArrowCircleDown.svg",variantCount:1},{name:"arrow-circle-down-left",label:"Arrow Circle Down Left",filePath:"icon/ArrowCircleDownLeft.svg",variantCount:1},{name:"arrow-circle-down-right",label:"Arrow Circle Down Right",filePath:"icon/ArrowCircleDownRight.svg",variantCount:1},{name:"arrow-circle-left",label:"Arrow Circle Left",filePath:"icon/ArrowCircleLeft.svg",variantCount:1},{name:"arrow-circle-right",label:"Arrow Circle Right",filePath:"icon/ArrowCircleRight.svg",variantCount:1},{name:"arrow-circle-up",label:"Arrow Circle Up",filePath:"icon/ArrowCircleUp.svg",variantCount:1},{name:"arrow-circle-up-left",label:"Arrow Circle Up Left",filePath:"icon/ArrowCircleUpLeft.svg",variantCount:1},{name:"arrow-circle-up-right",label:"Arrow Circle Up Right",filePath:"icon/ArrowCircleUpRight.svg",variantCount:1},{name:"arrow-clockwise",label:"Arrow Clockwise",filePath:"icon/ArrowClockwise.svg",variantCount:1},{name:"arrow-counter-clockwise",label:"Arrow Counter Clockwise",filePath:"icon/ArrowCounterClockwise.svg",variantCount:1},{name:"arrow-down",label:"Arrow Down",filePath:"icon/ArrowDown.svg",variantCount:1},{name:"arrow-down-left",label:"Arrow Down Left",filePath:"icon/ArrowDownLeft.svg",variantCount:1},{name:"arrow-down-right",label:"Arrow Down Right",filePath:"icon/ArrowDownRight.svg",variantCount:1},{name:"arrow-elbow-down-left",label:"Arrow Elbow Down Left",filePath:"icon/ArrowElbowDownLeft.svg",variantCount:1},{name:"arrow-elbow-down-right",label:"Arrow Elbow Down Right",filePath:"icon/ArrowElbowDownRight.svg",variantCount:1},{name:"arrow-elbow-left",label:"Arrow Elbow Left",filePath:"icon/ArrowElbowLeft.svg",variantCount:1},{name:"arrow-elbow-left-down",label:"Arrow Elbow Left Down",filePath:"icon/ArrowElbowLeftDown.svg",variantCount:1},{name:"arrow-elbow-left-up",label:"Arrow Elbow Left Up",filePath:"icon/ArrowElbowLeftUp.svg",variantCount:1},{name:"arrow-elbow-right",label:"Arrow Elbow Right",filePath:"icon/ArrowElbowRight.svg",variantCount:1},{name:"arrow-elbow-right-down",label:"Arrow Elbow Right Down",filePath:"icon/ArrowElbowRightDown.svg",variantCount:1},{name:"arrow-elbow-right-up",label:"Arrow Elbow Right Up",filePath:"icon/ArrowElbowRightUp.svg",variantCount:1},{name:"arrow-elbow-up-left",label:"Arrow Elbow Up Left",filePath:"icon/ArrowElbowUpLeft.svg",variantCount:1},{name:"arrow-elbow-up-right",label:"Arrow Elbow Up Right",filePath:"icon/ArrowElbowUpRight.svg",variantCount:1},{name:"arrow-left",label:"Arrow Left",filePath:"icon/ArrowLeft.svg",variantCount:1},{name:"arrow-line-down",label:"Arrow Line Down",filePath:"icon/ArrowLineDown.svg",variantCount:1},{name:"arrow-line-down-left",label:"Arrow Line Down Left",filePath:"icon/ArrowLineDownLeft.svg",variantCount:1},{name:"arrow-line-down-right",label:"Arrow Line Down Right",filePath:"icon/ArrowLineDownRight.svg",variantCount:1},{name:"arrow-line-left",label:"Arrow Line Left",filePath:"icon/ArrowLineLeft.svg",variantCount:1},{name:"arrow-line-right",label:"Arrow Line Right",filePath:"icon/ArrowLineRight.svg",variantCount:1},{name:"arrow-line-up",label:"Arrow Line Up",filePath:"icon/ArrowLineUp.svg",variantCount:1},{name:"arrow-line-up-left",label:"Arrow Line Up Left",filePath:"icon/ArrowLineUpLeft.svg",variantCount:1},{name:"arrow-line-up-right",label:"Arrow Line Up Right",filePath:"icon/ArrowLineUpRight.svg",variantCount:1},{name:"arrow-right",label:"Arrow Right",filePath:"icon/ArrowRight.svg",variantCount:1},{name:"arrow-square-down",label:"Arrow Square Down",filePath:"icon/ArrowSquareDown.svg",variantCount:1},{name:"arrow-square-down-left",label:"Arrow Square Down Left",filePath:"icon/ArrowSquareDownLeft.svg",variantCount:1},{name:"arrow-square-down-right",label:"Arrow Square Down Right",filePath:"icon/ArrowSquareDownRight.svg",variantCount:1},{name:"arrow-square-left",label:"Arrow Square Left",filePath:"icon/ArrowSquareLeft.svg",variantCount:1},{name:"arrow-square-right",label:"Arrow Square Right",filePath:"icon/ArrowSquareRight.svg",variantCount:1},{name:"arrow-square-up",label:"Arrow Square Up",filePath:"icon/ArrowSquareUp.svg",variantCount:1},{name:"arrow-square-up-left",label:"Arrow Square Up Left",filePath:"icon/ArrowSquareUpLeft.svg",variantCount:1},{name:"arrow-square-up-right",label:"Arrow Square Up Right",filePath:"icon/ArrowSquareUpRight.svg",variantCount:1},{name:"arrow-up",label:"Arrow Up",filePath:"icon/ArrowUp.svg",variantCount:1},{name:"arrow-up-left",label:"Arrow Up Left",filePath:"icon/ArrowUpLeft.svg",variantCount:1},{name:"arrow-up-right",label:"Arrow Up Right",filePath:"icon/ArrowUpRight.svg",variantCount:1},{name:"arrows-clockwise",label:"Arrows Clockwise",filePath:"icon/ArrowsClockwise.svg",variantCount:1},{name:"arrows-counter-clockwise",label:"Arrows Counter Clockwise",filePath:"icon/ArrowsCounterClockwise.svg",variantCount:1},{name:"arrows-down-up",label:"Arrows Down Up",filePath:"icon/ArrowsDownUp.svg",variantCount:1},{name:"arrows-horizontal",label:"Arrows Horizontal",filePath:"icon/ArrowsHorizontal.svg",variantCount:1},{name:"arrows-in",label:"Arrows In",filePath:"icon/ArrowsIn.svg",variantCount:1},{name:"arrows-in-cardinal",label:"Arrows In Cardinal",filePath:"icon/ArrowsInCardinal.svg",variantCount:1},{name:"arrows-in-line-horizontal",label:"Arrows In Line Horizontal",filePath:"icon/ArrowsInLineHorizontal.svg",variantCount:1},{name:"arrows-in-line-vertical",label:"Arrows In Line Vertical",filePath:"icon/ArrowsInLineVertical.svg",variantCount:1},{name:"arrows-in-simple",label:"Arrows In Simple",filePath:"icon/ArrowsInSimple.svg",variantCount:1},{name:"arrows-left-right",label:"Arrows Left Right",filePath:"icon/ArrowsLeftRight.svg",variantCount:1},{name:"arrows-out",label:"Arrows Out",filePath:"icon/ArrowsOut.svg",variantCount:1},{name:"arrows-out-cardinal",label:"Arrows Out Cardinal",filePath:"icon/ArrowsOutCardinal.svg",variantCount:1},{name:"arrows-out-line-horizontal",label:"Arrows Out Line Horizontal",filePath:"icon/ArrowsOutLineHorizontal.svg",variantCount:1},{name:"arrows-out-line-vertical",label:"Arrows Out Line Vertical",filePath:"icon/ArrowsOutLineVertical.svg",variantCount:1},{name:"arrows-out-simple",label:"Arrows Out Simple",filePath:"icon/ArrowsOutSimple.svg",variantCount:1},{name:"arrows-vertical",label:"Arrows Vertical",filePath:"icon/ArrowsVertical.svg",variantCount:1},{name:"article",label:"Article",filePath:"icon/Article.svg",variantCount:1},{name:"bell",label:"Bell",filePath:"icon/Bell.svg",variantCount:1},{name:"bell-ringing",label:"Bell Ringing",filePath:"icon/BellRinging.svg",variantCount:1},{name:"bell-simple",label:"Bell Simple",filePath:"icon/BellSimple.svg",variantCount:1},{name:"bell-simple-ringing",label:"Bell Simple Ringing",filePath:"icon/BellSimpleRinging.svg",variantCount:1},{name:"bell-simple-slash",label:"Bell Simple Slash",filePath:"icon/BellSimpleSlash.svg",variantCount:1},{name:"binoculars",label:"Binoculars",filePath:"icon/Binoculars.svg",variantCount:1},{name:"book",label:"Book",filePath:"icon/Book.svg",variantCount:1},{name:"book-open",label:"Book Open",filePath:"icon/BookOpen.svg",variantCount:1},{name:"book-open-text",label:"Book Open Text",filePath:"icon/BookOpenText.svg",variantCount:1},{name:"box-arrow-down",label:"Box Arrow Down",filePath:"icon/BoxArrowDown.svg",variantCount:1},{name:"box-arrow-up",label:"Box Arrow Up",filePath:"icon/BoxArrowUp.svg",variantCount:1},{name:"brackets-angle",label:"Brackets Angle",filePath:"icon/BracketsAngle.svg",variantCount:1},{name:"brackets-curly",label:"Brackets Curly",filePath:"icon/BracketsCurly.svg",variantCount:1},{name:"brackets-round",label:"Brackets Round",filePath:"icon/BracketsRound.svg",variantCount:1},{name:"brackets-square",label:"Brackets Square",filePath:"icon/BracketsSquare.svg",variantCount:1},{name:"browser",label:"Browser",filePath:"icon/Browser.svg",variantCount:1},{name:"browsers",label:"Browsers",filePath:"icon/Browsers.svg",variantCount:1},{name:"bug",label:"Bug",filePath:"icon/Bug.svg",variantCount:1},{name:"calendar-blank",label:"Calendar Blank",filePath:"icon/CalendarBlank.svg",variantCount:1},{name:"calendar-dots",label:"Calendar Dots",filePath:"icon/CalendarDots.svg",variantCount:1},{name:"cards",label:"Cards",filePath:"icon/Cards.svg",variantCount:1},{name:"cards-three",label:"Cards Three",filePath:"icon/CardsThree.svg",variantCount:1},{name:"caret-circle-double-down",label:"Caret Circle Double Down",filePath:"icon/CaretCircleDoubleDown.svg",variantCount:1},{name:"caret-circle-double-left",label:"Caret Circle Double Left",filePath:"icon/CaretCircleDoubleLeft.svg",variantCount:1},{name:"caret-circle-double-right",label:"Caret Circle Double Right",filePath:"icon/CaretCircleDoubleRight.svg",variantCount:1},{name:"caret-circle-double-up",label:"Caret Circle Double Up",filePath:"icon/CaretCircleDoubleUp.svg",variantCount:1},{name:"caret-circle-down",label:"Caret Circle Down",filePath:"icon/CaretCircleDown.svg",variantCount:1},{name:"caret-circle-left",label:"Caret Circle Left",filePath:"icon/CaretCircleLeft.svg",variantCount:1},{name:"caret-circle-right",label:"Caret Circle Right",filePath:"icon/CaretCircleRight.svg",variantCount:1},{name:"caret-circle-up",label:"Caret Circle Up",filePath:"icon/CaretCircleUp.svg",variantCount:1},{name:"caret-circle-up-down",label:"Caret Circle Up Down",filePath:"icon/CaretCircleUpDown.svg",variantCount:1},{name:"caret-down",label:"Caret Down",filePath:"icon/CaretDown.svg",variantCount:1},{name:"caret-left",label:"Caret Left",filePath:"icon/CaretLeft.svg",variantCount:1},{name:"caret-line-down",label:"Caret Line Down",filePath:"icon/CaretLineDown.svg",variantCount:1},{name:"caret-line-left",label:"Caret Line Left",filePath:"icon/CaretLineLeft.svg",variantCount:1},{name:"caret-line-right",label:"Caret Line Right",filePath:"icon/CaretLineRight.svg",variantCount:1},{name:"caret-line-up",label:"Caret Line Up",filePath:"icon/CaretLineUp.svg",variantCount:1},{name:"caret-right",label:"Caret Right",filePath:"icon/CaretRight.svg",variantCount:1},{name:"caret-up",label:"Caret Up",filePath:"icon/CaretUp.svg",variantCount:1},{name:"caret-up-down",label:"Caret Up Down",filePath:"icon/CaretUpDown.svg",variantCount:1},{name:"check",label:"Check",filePath:"icon/Check.svg",variantCount:1},{name:"check-circle",label:"Check Circle",filePath:"icon/CheckCircle.svg",variantCount:1},{name:"check-square",label:"Check Square",filePath:"icon/CheckSquare.svg",variantCount:1},{name:"check-square-offset",label:"Check Square Offset",filePath:"icon/CheckSquareOffset.svg",variantCount:1},{name:"checks",label:"Checks",filePath:"icon/Checks.svg",variantCount:1},{name:"circles-four",label:"Circles Four",filePath:"icon/CirclesFour.svg",variantCount:1},{name:"clipboard",label:"Clipboard",filePath:"icon/Clipboard.svg",variantCount:1},{name:"clipboard-text",label:"Clipboard Text",filePath:"icon/ClipboardText.svg",variantCount:1},{name:"cloud-arrow-down",label:"Cloud Arrow Down",filePath:"icon/CloudArrowDown.svg",variantCount:1},{name:"cloud-arrow-up",label:"Cloud Arrow Up",filePath:"icon/CloudArrowUp.svg",variantCount:1},{name:"cloud-check",label:"Cloud Check",filePath:"icon/CloudCheck.svg",variantCount:1},{name:"cloud-slash",label:"Cloud Slash",filePath:"icon/CloudSlash.svg",variantCount:1},{name:"cloud-warning",label:"Cloud Warning",filePath:"icon/CloudWarning.svg",variantCount:1},{name:"cloud-x",label:"Cloud X",filePath:"icon/CloudX.svg",variantCount:1},{name:"code",label:"Code",filePath:"icon/Code.svg",variantCount:1},{name:"code-block",label:"Code Block",filePath:"icon/CodeBlock.svg",variantCount:1},{name:"code-simple",label:"Code Simple",filePath:"icon/CodeSimple.svg",variantCount:1},{name:"columns",label:"Columns",filePath:"icon/Columns.svg",variantCount:1},{name:"columns-plus-left",label:"Columns Plus Left",filePath:"icon/ColumnsPlusLeft.svg",variantCount:1},{name:"columns-plus-right",label:"Columns Plus Right",filePath:"icon/ColumnsPlusRight.svg",variantCount:1},{name:"copy",label:"Copy",filePath:"icon/Copy.svg",variantCount:1},{name:"copy-simple",label:"Copy Simple",filePath:"icon/CopySimple.svg",variantCount:1},{name:"cpu",label:"Cpu",filePath:"icon/Cpu.svg",variantCount:1},{name:"credit-card",label:"Credit Card",filePath:"icon/CreditCard.svg",variantCount:1},{name:"cube",label:"Cube",filePath:"icon/Cube.svg",variantCount:1},{name:"cube-transparent",label:"Cube Transparent",filePath:"icon/CubeTransparent.svg",variantCount:1},{name:"database",label:"Database",filePath:"icon/Database.svg",variantCount:1},{name:"desktop",label:"Desktop",filePath:"icon/Desktop.svg",variantCount:1},{name:"desktop-tower",label:"Desktop Tower",filePath:"icon/DesktopTower.svg",variantCount:1},{name:"detective",label:"Detective",filePath:"icon/Detective.svg",variantCount:1},{name:"device-mobile-camera",label:"Device Mobile Camera",filePath:"icon/DeviceMobileCamera.svg",variantCount:1},{name:"device-tablet-camera",label:"Device Tablet Camera",filePath:"icon/DeviceTabletCamera.svg",variantCount:1},{name:"devices",label:"Devices",filePath:"icon/Devices.svg",variantCount:1},{name:"diamonds-four",label:"Diamonds Four",filePath:"icon/DiamondsFour.svg",variantCount:1},{name:"dot",label:"Dot",filePath:"icon/Dot.svg",variantCount:1},{name:"dot-outline",label:"Dot Outline",filePath:"icon/DotOutline.svg",variantCount:1},{name:"dots-nine",label:"Dots Nine",filePath:"icon/DotsNine.svg",variantCount:1},{name:"dots-six",label:"Dots Six",filePath:"icon/DotsSix.svg",variantCount:1},{name:"dots-six-vertical",label:"Dots Six Vertical",filePath:"icon/DotsSixVertical.svg",variantCount:1},{name:"dots-three",label:"Dots Three",filePath:"icon/DotsThree.svg",variantCount:1},{name:"dots-three-circle",label:"Dots Three Circle",filePath:"icon/DotsThreeCircle.svg",variantCount:1},{name:"dots-three-circle-vertical",label:"Dots Three Circle Vertical",filePath:"icon/DotsThreeCircleVertical.svg",variantCount:1},{name:"dots-three-outline",label:"Dots Three Outline",filePath:"icon/DotsThreeOutline.svg",variantCount:1},{name:"dots-three-outline-vertical",label:"Dots Three Outline Vertical",filePath:"icon/DotsThreeOutlineVertical.svg",variantCount:1},{name:"dots-three-vertical",label:"Dots Three Vertical",filePath:"icon/DotsThreeVertical.svg",variantCount:1},{name:"download-simple",label:"Download Simple",filePath:"icon/DownloadSimple.svg",variantCount:1},{name:"envelope",label:"Envelope",filePath:"icon/Envelope.svg",variantCount:1},{name:"envelope-simple",label:"Envelope Simple",filePath:"icon/EnvelopeSimple.svg",variantCount:1},{name:"exclamation-mark",label:"Exclamation Mark",filePath:"icon/ExclamationMark.svg",variantCount:1},{name:"export",label:"Export",filePath:"icon/Export.svg",variantCount:1},{name:"eye",label:"Eye",filePath:"icon/Eye.svg",variantCount:1},{name:"eye-closed",label:"Eye Closed",filePath:"icon/EyeClosed.svg",variantCount:1},{name:"eye-slash",label:"Eye Slash",filePath:"icon/EyeSlash.svg",variantCount:1},{name:"faders",label:"Faders",filePath:"icon/Faders.svg",variantCount:1},{name:"faders-horizontal",label:"Faders Horizontal",filePath:"icon/FadersHorizontal.svg",variantCount:1},{name:"file",label:"File",filePath:"icon/File.svg",variantCount:1},{name:"file-archive",label:"File Archive",filePath:"icon/FileArchive.svg",variantCount:1},{name:"file-arrow-down",label:"File Arrow Down",filePath:"icon/FileArrowDown.svg",variantCount:1},{name:"file-arrow-up",label:"File Arrow Up",filePath:"icon/FileArrowUp.svg",variantCount:1},{name:"file-dashed",label:"File Dashed",filePath:"icon/FileDashed.svg",variantCount:1},{name:"file-text",label:"File Text",filePath:"icon/FileText.svg",variantCount:1},{name:"files",label:"Files",filePath:"icon/Files.svg",variantCount:1},{name:"fingerprint",label:"Fingerprint",filePath:"icon/Fingerprint.svg",variantCount:1},{name:"fingerprint-simple",label:"Fingerprint Simple",filePath:"icon/FingerprintSimple.svg",variantCount:1},{name:"flag",label:"Flag",filePath:"icon/Flag.svg",variantCount:1},{name:"flag-pennant",label:"Flag Pennant",filePath:"icon/FlagPennant.svg",variantCount:1},{name:"floppy-disk",label:"Floppy Disk",filePath:"icon/FloppyDisk.svg",variantCount:1},{name:"folder",label:"Folder",filePath:"icon/Folder.svg",variantCount:1},{name:"folder-dashed",label:"Folder Dashed",filePath:"icon/FolderDashed.svg",variantCount:1},{name:"folder-open",label:"Folder Open",filePath:"icon/FolderOpen.svg",variantCount:1},{name:"folder-simple",label:"Folder Simple",filePath:"icon/FolderSimple.svg",variantCount:1},{name:"folder-simple-dashed",label:"Folder Simple Dashed",filePath:"icon/FolderSimpleDashed.svg",variantCount:1},{name:"folders",label:"Folders",filePath:"icon/Folders.svg",variantCount:1},{name:"funnel",label:"Funnel",filePath:"icon/Funnel.svg",variantCount:1},{name:"funnel-simple",label:"Funnel Simple",filePath:"icon/FunnelSimple.svg",variantCount:1},{name:"gear",label:"Gear",filePath:"icon/Gear.svg",variantCount:1},{name:"gear-six",label:"Gear Six",filePath:"icon/GearSix.svg",variantCount:1},{name:"git-branch",label:"Git Branch",filePath:"icon/GitBranch.svg",variantCount:1},{name:"git-merge",label:"Git Merge",filePath:"icon/GitMerge.svg",variantCount:1},{name:"git-pull-request",label:"Git Pull Request",filePath:"icon/GitPullRequest.svg",variantCount:1},{name:"globe",label:"Globe",filePath:"icon/Globe.svg",variantCount:1},{name:"globe-simple",label:"Globe Simple",filePath:"icon/GlobeSimple.svg",variantCount:1},{name:"green-tick",label:"Green Tick",filePath:"icon/GreenTick.svg",variantCount:1},{name:"grid-four",label:"Grid Four",filePath:"icon/GridFour.svg",variantCount:1},{name:"hammer",label:"Hammer",filePath:"icon/Hammer.svg",variantCount:1},{name:"hand",label:"Hand",filePath:"icon/Hand.svg",variantCount:1},{name:"hand-palm",label:"Hand Palm",filePath:"icon/HandPalm.svg",variantCount:1},{name:"hand-pointing",label:"Hand Pointing",filePath:"icon/HandPointing.svg",variantCount:1},{name:"house",label:"House",filePath:"icon/House.svg",variantCount:1},{name:"identification-badge",label:"Identification Badge",filePath:"icon/IdentificationBadge.svg",variantCount:1},{name:"identification-card",label:"Identification Card",filePath:"icon/IdentificationCard.svg",variantCount:1},{name:"info",label:"Info",filePath:"icon/Info.svg",variantCount:1},{name:"key",label:"Key",filePath:"icon/Key.svg",variantCount:1},{name:"ladder-simple",label:"Ladder Simple",filePath:"icon/LadderSimple.svg",variantCount:1},{name:"layout",label:"Layout",filePath:"icon/Layout.svg",variantCount:1},{name:"lifebuoy",label:"Lifebuoy",filePath:"icon/Lifebuoy.svg",variantCount:1},{name:"lightbulb",label:"Lightbulb",filePath:"icon/Lightbulb.svg",variantCount:1},{name:"lightning",label:"Lightning",filePath:"icon/Lightning.svg",variantCount:1},{name:"link",label:"Link",filePath:"icon/Link.svg",variantCount:1},{name:"link-break",label:"Link Break",filePath:"icon/LinkBreak.svg",variantCount:1},{name:"link-simple",label:"Link Simple",filePath:"icon/LinkSimple.svg",variantCount:1},{name:"link-simple-break",label:"Link Simple Break",filePath:"icon/LinkSimpleBreak.svg",variantCount:1},{name:"link-simple-horizontal",label:"Link Simple Horizontal",filePath:"icon/LinkSimpleHorizontal.svg",variantCount:1},{name:"link-simple-horizontal-break",label:"Link Simple Horizontal Break",filePath:"icon/LinkSimpleHorizontalBreak.svg",variantCount:1},{name:"list",label:"List",filePath:"icon/List.svg",variantCount:1},{name:"list-bullets",label:"List Bullets",filePath:"icon/ListBullets.svg",variantCount:1},{name:"list-checks",label:"List Checks",filePath:"icon/ListChecks.svg",variantCount:1},{name:"list-dashes",label:"List Dashes",filePath:"icon/ListDashes.svg",variantCount:1},{name:"list-heart",label:"List Heart",filePath:"icon/ListHeart.svg",variantCount:1},{name:"list-magnifying-glass",label:"List Magnifying Glass",filePath:"icon/ListMagnifyingGlass.svg",variantCount:1},{name:"list-numbers",label:"List Numbers",filePath:"icon/ListNumbers.svg",variantCount:1},{name:"list-plus",label:"List Plus",filePath:"icon/ListPlus.svg",variantCount:1},{name:"list-star",label:"List Star",filePath:"icon/ListStar.svg",variantCount:1},{name:"lock",label:"Lock",filePath:"icon/Lock.svg",variantCount:1},{name:"lock-key",label:"Lock Key",filePath:"icon/LockKey.svg",variantCount:1},{name:"lock-key-open",label:"Lock Key Open",filePath:"icon/LockKeyOpen.svg",variantCount:1},{name:"lock-open",label:"Lock Open",filePath:"icon/LockOpen.svg",variantCount:1},{name:"lock-simple",label:"Lock Simple",filePath:"icon/LockSimple.svg",variantCount:1},{name:"lock-simple-open",label:"Lock Simple Open",filePath:"icon/LockSimpleOpen.svg",variantCount:1},{name:"magnifying-glass",label:"Magnifying Glass",filePath:"icon/MagnifyingGlass.svg",variantCount:1},{name:"magnifying-glass-minus",label:"Magnifying Glass Minus",filePath:"icon/MagnifyingGlassMinus.svg",variantCount:1},{name:"magnifying-glass-plus",label:"Magnifying Glass Plus",filePath:"icon/MagnifyingGlassPlus.svg",variantCount:1},{name:"megaphone",label:"Megaphone",filePath:"icon/Megaphone.svg",variantCount:1},{name:"megaphone-simple",label:"Megaphone Simple",filePath:"icon/MegaphoneSimple.svg",variantCount:1},{name:"microphone",label:"Microphone",filePath:"icon/Microphone.svg",variantCount:1},{name:"navigation-arrow",label:"Navigation Arrow",filePath:"icon/NavigationArrow.svg",variantCount:1},{name:"network",label:"Network",filePath:"icon/Network.svg",variantCount:1},{name:"network-slash",label:"Network Slash",filePath:"icon/NetworkSlash.svg",variantCount:1},{name:"network-x",label:"Network X",filePath:"icon/NetworkX.svg",variantCount:1},{name:"newspaper",label:"Newspaper",filePath:"icon/Newspaper.svg",variantCount:1},{name:"newspaper-clipping",label:"Newspaper Clipping",filePath:"icon/NewspaperClipping.svg",variantCount:1},{name:"notches",label:"Notches",filePath:"icon/Notches.svg",variantCount:1},{name:"note",label:"Note",filePath:"icon/Note.svg",variantCount:1},{name:"note-blank",label:"Note Blank",filePath:"icon/NoteBlank.svg",variantCount:1},{name:"note-pencil",label:"Note Pencil",filePath:"icon/NotePencil.svg",variantCount:1},{name:"notification",label:"Notification",filePath:"icon/Notification.svg",variantCount:1},{name:"nut",label:"Nut",filePath:"icon/Nut.svg",variantCount:1},{name:"paperclip",label:"Paperclip",filePath:"icon/Paperclip.svg",variantCount:1},{name:"paperclip-horizontal",label:"Paperclip Horizontal",filePath:"icon/PaperclipHorizontal.svg",variantCount:1},{name:"password",label:"Password",filePath:"icon/Password.svg",variantCount:1},{name:"pencil-simple",label:"Pencil Simple",filePath:"icon/PencilSimple.svg",variantCount:1},{name:"pencil-simple-line",label:"Pencil Simple Line",filePath:"icon/PencilSimpleLine.svg",variantCount:1},{name:"person",label:"Person",filePath:"icon/Person.svg",variantCount:1},{name:"person-arms-spread",label:"Person Arms Spread",filePath:"icon/PersonArmsSpread.svg",variantCount:1},{name:"person-simple",label:"Person Simple",filePath:"icon/PersonSimple.svg",variantCount:1},{name:"placeholder",label:"Placeholder",filePath:"icon/Placeholder.svg",variantCount:1},{name:"plus",label:"Plus",filePath:"icon/Plus.svg",variantCount:1},{name:"plus-circle",label:"Plus Circle",filePath:"icon/PlusCircle.svg",variantCount:1},{name:"plus-square",label:"Plus Square",filePath:"icon/PlusSquare.svg",variantCount:1},{name:"prohibit",label:"Prohibit",filePath:"icon/Prohibit.svg",variantCount:1},{name:"prohibit-inset",label:"Prohibit Inset",filePath:"icon/ProhibitInset.svg",variantCount:1},{name:"pulse",label:"Pulse",filePath:"icon/Pulse.svg",variantCount:1},{name:"push-pin",label:"Push Pin",filePath:"icon/PushPin.svg",variantCount:1},{name:"push-pin-simple",label:"Push Pin Simple",filePath:"icon/PushPinSimple.svg",variantCount:1},{name:"push-pin-simple-slash",label:"Push Pin Simple Slash",filePath:"icon/PushPinSimpleSlash.svg",variantCount:1},{name:"push-pin-slash",label:"Push Pin Slash",filePath:"icon/PushPinSlash.svg",variantCount:1},{name:"puzzle-piece",label:"Puzzle Piece",filePath:"icon/PuzzlePiece.svg",variantCount:1},{name:"question",label:"Question",filePath:"icon/Question.svg",variantCount:1},{name:"question-mark",label:"Question Mark",filePath:"icon/QuestionMark.svg",variantCount:1},{name:"receipt",label:"Receipt",filePath:"icon/Receipt.svg",variantCount:1},{name:"receipt-x",label:"Receipt X",filePath:"icon/ReceiptX.svg",variantCount:1},{name:"rows-plus-bottom",label:"Rows Plus Bottom",filePath:"icon/RowsPlusBottom.svg",variantCount:1},{name:"rows-plus-top",label:"Rows Plus Top",filePath:"icon/RowsPlusTop.svg",variantCount:1},{name:"scroll",label:"Scroll",filePath:"icon/Scroll.svg",variantCount:1},{name:"seal",label:"Seal",filePath:"icon/Seal.svg",variantCount:1},{name:"seal-check",label:"Seal Check",filePath:"icon/SealCheck.svg",variantCount:1},{name:"share",label:"Share",filePath:"icon/Share.svg",variantCount:1},{name:"share-fat",label:"Share Fat",filePath:"icon/ShareFat.svg",variantCount:1},{name:"share-network",label:"Share Network",filePath:"icon/ShareNetwork.svg",variantCount:1},{name:"shield",label:"Shield",filePath:"icon/Shield.svg",variantCount:1},{name:"shield-check",label:"Shield Check",filePath:"icon/ShieldCheck.svg",variantCount:1},{name:"shield-checkered",label:"Shield Checkered",filePath:"icon/ShieldCheckered.svg",variantCount:1},{name:"shield-chevron",label:"Shield Chevron",filePath:"icon/ShieldChevron.svg",variantCount:1},{name:"shield-plus",label:"Shield Plus",filePath:"icon/ShieldPlus.svg",variantCount:1},{name:"shield-slash",label:"Shield Slash",filePath:"icon/ShieldSlash.svg",variantCount:1},{name:"shield-star",label:"Shield Star",filePath:"icon/ShieldStar.svg",variantCount:1},{name:"shield-warning",label:"Shield Warning",filePath:"icon/ShieldWarning.svg",variantCount:1},{name:"sidebar",label:"Sidebar",filePath:"icon/Sidebar.svg",variantCount:1},{name:"sidebar-simple",label:"Sidebar Simple",filePath:"icon/SidebarSimple.svg",variantCount:1},{name:"sign-in",label:"Sign In",filePath:"icon/SignIn.svg",variantCount:1},{name:"sign-out",label:"Sign Out",filePath:"icon/SignOut.svg",variantCount:1},{name:"siren",label:"Siren",filePath:"icon/Siren.svg",variantCount:1},{name:"sliders",label:"Sliders",filePath:"icon/Sliders.svg",variantCount:1},{name:"sliders-horizontal",label:"Sliders Horizontal",filePath:"icon/SlidersHorizontal.svg",variantCount:1},{name:"sort-ascending",label:"Sort Ascending",filePath:"icon/SortAscending.svg",variantCount:1},{name:"sort-descending",label:"Sort Descending",filePath:"icon/SortDescending.svg",variantCount:1},{name:"spinner",label:"Spinner",filePath:"icon/Spinner.svg",variantCount:1},{name:"spinner-gap",label:"Spinner Gap",filePath:"icon/SpinnerGap.svg",variantCount:1},{name:"split-horizontal",label:"Split Horizontal",filePath:"icon/SplitHorizontal.svg",variantCount:1},{name:"split-vertical",label:"Split Vertical",filePath:"icon/SplitVertical.svg",variantCount:1},{name:"square-half",label:"Square Half",filePath:"icon/SquareHalf.svg",variantCount:1},{name:"square-half-bottom",label:"Square Half Bottom",filePath:"icon/SquareHalfBottom.svg",variantCount:1},{name:"square-split-horizontal",label:"Square Split Horizontal",filePath:"icon/SquareSplitHorizontal.svg",variantCount:1},{name:"square-split-vertical",label:"Square Split Vertical",filePath:"icon/SquareSplitVertical.svg",variantCount:1},{name:"squares-four",label:"Squares Four",filePath:"icon/SquaresFour.svg",variantCount:1},{name:"stack",label:"Stack",filePath:"icon/Stack.svg",variantCount:1},{name:"stack-minus",label:"Stack Minus",filePath:"icon/StackMinus.svg",variantCount:1},{name:"stack-plus",label:"Stack Plus",filePath:"icon/StackPlus.svg",variantCount:1},{name:"stack-simple",label:"Stack Simple",filePath:"icon/StackSimple.svg",variantCount:1},{name:"star",label:"Star",filePath:"icon/Star.svg",variantCount:1},{name:"table",label:"Table",filePath:"icon/Table.svg",variantCount:1},{name:"tag",label:"Tag",filePath:"icon/Tag.svg",variantCount:1},{name:"tag-chevron",label:"Tag Chevron",filePath:"icon/TagChevron.svg",variantCount:1},{name:"tag-simple",label:"Tag Simple",filePath:"icon/TagSimple.svg",variantCount:1},{name:"target",label:"Target",filePath:"icon/Target.svg",variantCount:1},{name:"terminal",label:"Terminal",filePath:"icon/Terminal.svg",variantCount:1},{name:"terminal-window",label:"Terminal Window",filePath:"icon/TerminalWindow.svg",variantCount:1},{name:"text-columns",label:"Text Columns",filePath:"icon/TextColumns.svg",variantCount:1},{name:"ticket",label:"Ticket",filePath:"icon/Ticket.svg",variantCount:1},{name:"trash",label:"Trash",filePath:"icon/Trash.svg",variantCount:1},{name:"trash-simple",label:"Trash Simple",filePath:"icon/TrashSimple.svg",variantCount:1},{name:"tray",label:"Tray",filePath:"icon/Tray.svg",variantCount:1},{name:"tray-arrow-down",label:"Tray Arrow Down",filePath:"icon/TrayArrowDown.svg",variantCount:1},{name:"tray-arrow-up",label:"Tray Arrow Up",filePath:"icon/TrayArrowUp.svg",variantCount:1},{name:"tree-structure",label:"Tree Structure",filePath:"icon/TreeStructure.svg",variantCount:1},{name:"upload-simple",label:"Upload Simple",filePath:"icon/UploadSimple.svg",variantCount:1},{name:"user",label:"User",filePath:"icon/User.svg",variantCount:1},{name:"user-check",label:"User Check",filePath:"icon/UserCheck.svg",variantCount:1},{name:"user-circle",label:"User Circle",filePath:"icon/UserCircle.svg",variantCount:1},{name:"user-circle-check",label:"User Circle Check",filePath:"icon/UserCircleCheck.svg",variantCount:1},{name:"user-circle-dashed",label:"User Circle Dashed",filePath:"icon/UserCircleDashed.svg",variantCount:1},{name:"user-circle-gear",label:"User Circle Gear",filePath:"icon/UserCircleGear.svg",variantCount:1},{name:"user-circle-minus",label:"User Circle Minus",filePath:"icon/UserCircleMinus.svg",variantCount:1},{name:"user-circle-plus",label:"User Circle Plus",filePath:"icon/UserCirclePlus.svg",variantCount:1},{name:"user-focus",label:"User Focus",filePath:"icon/UserFocus.svg",variantCount:1},{name:"user-gear",label:"User Gear",filePath:"icon/UserGear.svg",variantCount:1},{name:"user-list",label:"User List",filePath:"icon/UserList.svg",variantCount:1},{name:"user-minus",label:"User Minus",filePath:"icon/UserMinus.svg",variantCount:1},{name:"user-plus",label:"User Plus",filePath:"icon/UserPlus.svg",variantCount:1},{name:"user-rectangle",label:"User Rectangle",filePath:"icon/UserRectangle.svg",variantCount:1},{name:"user-sound",label:"User Sound",filePath:"icon/UserSound.svg",variantCount:1},{name:"user-square",label:"User Square",filePath:"icon/UserSquare.svg",variantCount:1},{name:"user-switch",label:"User Switch",filePath:"icon/UserSwitch.svg",variantCount:1},{name:"users",label:"Users",filePath:"icon/Users.svg",variantCount:1},{name:"users-four",label:"Users Four",filePath:"icon/UsersFour.svg",variantCount:1},{name:"users-three",label:"Users Three",filePath:"icon/UsersThree.svg",variantCount:1},{name:"vault",label:"Vault",filePath:"icon/Vault.svg",variantCount:1},{name:"warning",label:"Warning",filePath:"icon/Warning.svg",variantCount:1},{name:"warning-circle",label:"Warning Circle",filePath:"icon/WarningCircle.svg",variantCount:1},{name:"warning-diamond",label:"Warning Diamond",filePath:"icon/WarningDiamond.svg",variantCount:1},{name:"warning-octagon",label:"Warning Octagon",filePath:"icon/WarningOctagon.svg",variantCount:1},{name:"wrench",label:"Wrench",filePath:"icon/Wrench.svg",variantCount:1},{name:"x",label:"X",filePath:"icon/X.svg",variantCount:1},{name:"xcircle",label:"XCircle",filePath:"icon/XCircle.svg",variantCount:1},{name:"xsquare",label:"XSquare",filePath:"icon/XSquare.svg",variantCount:1},{name:"calendar",label:"Calendar",filePath:"icon/calendar.svg",variantCount:1}],U=({name:t,size:a="medium",variant:n="default",className:o="",style:r={},alt:l="",...i})=>{const s=t?.replace(/\.svg$/,"").toLowerCase(),c=(()=>{if("number"==typeof a)return`${a}px`;const e={small:"12px",medium:"16px",large:"24px"};return e[a]||e.medium})(),d=(()=>{const e=M.find(e=>e.name===s||e.name===t);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${e?e.filePath.split("/").pop():`${t}.svg`}`})(),u=l||`${s} icon`,m=[E.icon,E[`variant_${n}`],o].filter(Boolean).join(" "),h={width:c,height:c,...r};return e.jsx("img",{src:d,alt:u,className:m,style:h,...i})},H=({className:t})=>e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{d:"M7.00033 1.16699L8.80283 4.81866L12.8337 5.40783L9.91699 8.24866L10.6053 12.262L7.00033 10.3662L3.39533 12.262L4.08366 8.24866L1.16699 5.40783L5.19783 4.81866L7.00033 1.16699Z",stroke:"#36204C",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),q=({className:t})=>e.jsxs("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),V=({label:t="Button",showLeadingIcon:a=!0,showTrailingIcon:n=!1,leadingIcon:o,trailingIcon:r,leftIcon:l,rightIcon:i,variant:s,buttonStyle:c="primary",state:d="default",size:u="medium",onClick:m,disabled:h,loading:p,className:g="",children:f,..._})=>{const v=p?"loading":h?"disabled":d,b=h||p||"disabled"===v,x=F(W.button,W[`style_${s||c||"primary"}`],W[`state_${v}`],W[`size_${"md"===u?"medium":"sm"===u?"small":u}`],g),w="Button"===t&&f?f:t;return e.jsxs("button",{className:x,onClick:m,disabled:b,"aria-disabled":b,..._,children:[(()=>{if(!a)return null;const t=o||l;return t?"string"==typeof t?e.jsx(U,{name:t,className:W.icon}):t:"loading"===v?e.jsx(q,{className:W.loaderIcon}):e.jsx(H,{className:W.icon})})(),e.jsx("span",{className:W.label,children:w}),(()=>{if(!n)return null;const t=r||i;return t?"string"==typeof t?e.jsx(U,{name:t,className:W.icon}):t:e.jsx(H,{className:W.icon})})()]})};var O={button:"ButtonDanger-module_button__AOtwP",label:"ButtonDanger-module_label__b5KXy",icon:"ButtonDanger-module_icon__cFsc0",loaderIcon:"ButtonDanger-module_loaderIcon__0Grd9",spin:"ButtonDanger-module_spin__dWDkA",size_medium:"ButtonDanger-module_size_medium__rSyZy",size_small:"ButtonDanger-module_size_small__uAFGW",style_primary:"ButtonDanger-module_style_primary__iUyC1",state_default:"ButtonDanger-module_state_default__Y5C0B",state_hover:"ButtonDanger-module_state_hover__sATSe",state_focus:"ButtonDanger-module_state_focus__gFvzD",state_disabled:"ButtonDanger-module_state_disabled__UT767",state_loading:"ButtonDanger-module_state_loading__-C8Aq",style_neutral:"ButtonDanger-module_style_neutral__VZ0rO",style_subtle:"ButtonDanger-module_style_subtle__PTOK-"};const G=({label:t="Button",showLeadingIcon:a=!0,showTrailingIcon:n=!1,leadingIcon:o,trailingIcon:r,style:l="primary",state:i="default",size:s="medium",onClick:c,disabled:d,loading:u,className:m="",...h})=>{const p=u?"loading":d?"disabled":i,g=d||u||"disabled"===p,f=[O.button,O[`style_${l}`],O[`state_${p}`],O[`size_${s}`],m].filter(Boolean).join(" ");return e.jsxs("button",{className:f,onClick:c,disabled:g,"aria-disabled":g,...h,children:[a?o||("loading"===p?e.jsx(U,{name:"spinner",size:16,className:O.loaderIcon}):e.jsx(U,{name:"star",size:14,className:O.icon})):null,e.jsx("span",{className:O.label,children:t}),n?r||e.jsx(U,{name:"star",size:14,className:O.icon}):null]})};var Y={avatar:"Avatar-module_avatar__iHwNB",size_large:"Avatar-module_size_large__lysYk",size_medium:"Avatar-module_size_medium__JL1rC",size_small:"Avatar-module_size_small__F3gWo",shape_circle:"Avatar-module_shape_circle__YEmYW",shape_square:"Avatar-module_shape_square__nLoa1",initialsBg:"Avatar-module_initialsBg__54pKJ",image:"Avatar-module_image__-oxFc",initials:"Avatar-module_initials__DzwqM"};var X="BackgroundGradient-module_container__h-ECQ",K="BackgroundGradient-module_gradientBlobsImage__HSoZE";var Z={badge:"Badge-module_badge__IxlOE",size_small:"Badge-module_size_small__blSq3",size_medium:"Badge-module_size_medium__hlh0Y",size_large:"Badge-module_size_large__EzYlM",type_active:"Badge-module_type_active__CPh-H",type_inactive:"Badge-module_type_inactive__xwWXA",type_default:"Badge-module_type_default__5N9w7"};var Q={breadcrumbContainer:"Breadcrumb-module_breadcrumbContainer__uBvx5",itemContent:"Breadcrumb-module_itemContent__EuvYW",itemIcon:"Breadcrumb-module_itemIcon__mJSYP",itemTitle:"Breadcrumb-module_itemTitle__g8smt",separator:"Breadcrumb-module_separator__VeZVd"};var J={container:"Categories-module_container__U5Jrk",searchSection:"Categories-module_searchSection__OtRY7",searchInput:"Categories-module_searchInput__er5yT",searchIcon:"Categories-module_searchIcon__z6tia",searchIconImage:"Categories-module_searchIconImage__pGeZj",searchPlaceholder:"Categories-module_searchPlaceholder__ZmolO",searchValue:"Categories-module_searchValue__21-r9",realSearchInput:"Categories-module_realSearchInput__w4p-O",chipListContainer:"Categories-module_chipListContainer__pacAl",chipListRow:"Categories-module_chipListRow__h7kfy",chip:"Categories-module_chip__QYPTC",chipLabel:"Categories-module_chipLabel__TA2tB",chipRemove:"Categories-module_chipRemove__AZnYD",chipIcon:"Categories-module_chipIcon__jI19r",listsContainer:"Categories-module_listsContainer__qLgWk",categoryList:"Categories-module_categoryList__-hGax",categoryTitle:"Categories-module_categoryTitle__IojeE",categoryTitleText:"Categories-module_categoryTitleText__THhiO",chevronIcon:"Categories-module_chevronIcon__WSZAt",chevronImg:"Categories-module_chevronImg__u0z0y",chevronUp:"Categories-module_chevronUp__3IMMr",categoryItems:"Categories-module_categoryItems__rkjFa",categoryItemWrapper:"Categories-module_categoryItemWrapper__nSWPf",actionsContainer:"Categories-module_actionsContainer__E-9bc",cancelButton:"Categories-module_cancelButton__qSB8B",cancelButtonText:"Categories-module_cancelButtonText__iKhcE",applyButton:"Categories-module_applyButton__f9weo",applyButtonText:"Categories-module_applyButtonText__p7k-s",variant_single:"Categories-module_variant_single__nJbFl",variant_multiple:"Categories-module_variant_multiple__oR0nB"},ee={itemRow:"ItemRow-module_itemRow__rSDeO",infoIcon:"ItemRow-module_infoIcon__Ipwr-",infoIconImg:"ItemRow-module_infoIconImg__70lMY",content:"ItemRow-module_content__Jpfhn",iconWrapper:"ItemRow-module_iconWrapper__tyWxd",fileIconImg:"ItemRow-module_fileIconImg__UtL3V",starIconImg:"ItemRow-module_starIconImg__N5DF0",text:"ItemRow-module_text__2UBMv",label:"ItemRow-module_label__tf9KQ",body:"ItemRow-module_body__nwnZc",checkboxField:"ItemRow-module_checkboxField__fBewb",radioField:"ItemRow-module_radioField__opyC6",type_default:"ItemRow-module_type_default__bHpMa",type_hover:"ItemRow-module_type_hover__96wT9",type_selected:"ItemRow-module_type_selected__Pr3sl",type_disabled:"ItemRow-module_type_disabled__RLuUQ",type_danger:"ItemRow-module_type_danger__4i7oG"},te={checkboxContainer:"Checkbox-module_checkboxContainer__t5ToR",checkboxWrapper:"Checkbox-module_checkboxWrapper__MQ4h7",checkboxInput:"Checkbox-module_checkboxInput__6emi6",checkbox:"Checkbox-module_checkbox__u-vF9",size_small:"Checkbox-module_size_small__y2One",size_medium:"Checkbox-module_size_medium__tyI8A",size_large:"Checkbox-module_size_large__Dxd5a",checkboxChecked:"Checkbox-module_checkboxChecked__9S3nh",checkboxCheck:"Checkbox-module_checkboxCheck__eC-aU",checkboxIndeterminateState:"Checkbox-module_checkboxIndeterminateState__KlYdz",checkboxIndeterminate:"Checkbox-module_checkboxIndeterminate__KWSZX",indeterminateBar:"Checkbox-module_indeterminateBar__ubEie",checkIconWrapper:"Checkbox-module_checkIconWrapper__5zoMJ",checkIconInner:"Checkbox-module_checkIconInner__-31sZ",checkIcon:"Checkbox-module_checkIcon__ZZUJy",state_default:"Checkbox-module_state_default__07N9s",checkboxDisabled:"Checkbox-module_checkboxDisabled__JuvUf",state_hover:"Checkbox-module_state_hover__-aNwA",state_focus:"Checkbox-module_state_focus__iyLdL",state_pressed:"Checkbox-module_state_pressed__IXWhV",label:"Checkbox-module_label__riL34"};const ae=({checked:t=!1,indeterminate:a=!1,disabled:n=!1,state:o="default",size:r="medium",label:l="",onChange:i,className:s="",id:c,name:d,value:u,...m})=>{const h=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(o),p="number"==typeof r,g=p?"custom":r.toLowerCase(),f=n||"disabled"===o,_=[te.checkboxContainer,s].filter(Boolean).join(" "),v=[te.checkbox,te[`size_${g}`],t&&te.checkboxChecked,!t&&a&&te.checkboxIndeterminateState,f&&te.checkboxDisabled,!f&&te[`state_${h}`]].filter(Boolean).join(" "),b=c||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:_,children:[e.jsxs("div",{className:te.checkboxWrapper,children:[e.jsx("input",{type:"checkbox",id:b,name:d,value:u,checked:t,disabled:f,onChange:e=>{!f&&i&&i(e)},className:te.checkboxInput,"aria-checked":a?"mixed":t,"aria-disabled":f,...m}),e.jsxs("label",{htmlFor:b,className:v,style:p?{width:`${r}px`,height:`${r}px`}:{},children:[t&&e.jsx("div",{className:te.checkboxCheck,children:e.jsx("div",{className:te.checkIconWrapper,children:e.jsx("div",{className:te.checkIconInner,children:e.jsx(U,{name:"Check",size:12,className:te.checkIcon})})})}),!t&&a&&e.jsx("div",{className:te.checkboxIndeterminate,children:e.jsx("div",{className:te.indeterminateBar})})]})]}),l&&e.jsx("label",{htmlFor:b,className:te.label,children:l})]})};var ne={radioContainer:"Radio-module_radioContainer__nD7Aj",radioWrapper:"Radio-module_radioWrapper__8nQVu",radioInput:"Radio-module_radioInput__GtQt3",radio:"Radio-module_radio__fnkSK",size_small:"Radio-module_size_small__k7iT3",size_medium:"Radio-module_size_medium__KpT8h",size_large:"Radio-module_size_large__81Vmf",radioChecked:"Radio-module_radioChecked__BaL8g",radioDot:"Radio-module_radioDot__RilTO",state_default:"Radio-module_state_default__zFRxN",radioDisabled:"Radio-module_radioDisabled__i08xK",state_hover:"Radio-module_state_hover__h6W-X",state_focus:"Radio-module_state_focus__8UGb9",state_pressed:"Radio-module_state_pressed__k6gEW",label:"Radio-module_label__rS27E"};const oe=({checked:t=!1,disabled:a=!1,state:n="default",size:o="medium",label:r="",name:l,value:i,onChange:s,className:c="",id:d,...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(n),h="number"==typeof o,p=h?"custom":o.toLowerCase(),g=a||"disabled"===n,f=[ne.radioContainer,c].filter(Boolean).join(" "),_=[ne.radio,ne[`size_${p}`],t&&ne.radioChecked,g&&ne.radioDisabled,!g&&ne[`state_${m}`]].filter(Boolean).join(" "),v=d||`radio-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:f,children:[e.jsxs("div",{className:ne.radioWrapper,children:[e.jsx("input",{type:"radio",id:v,name:l,value:i,checked:t,disabled:g,onChange:e=>{!g&&s&&s(e)},className:ne.radioInput,"aria-checked":t,"aria-disabled":g,...u}),e.jsx("label",{htmlFor:v,className:_,style:h?{width:`${o}px`,height:`${o}px`}:{},children:t&&e.jsx("div",{className:ne.radioDot})})]}),r&&e.jsx("label",{htmlFor:v,className:ne.label,children:r})]})},re=({showLeftIcon:t=!0,hasCheckbox:a=!1,hasRadio:n=!1,checked:o=!1,chooseLeftIcon:r=null,label:l="Item",showBody:i=!1,body:s="Body",showInfo:c=!1,showRightIcon:d=!1,chooseRightIcon:u=null,type:m="Default",onClick:h,className:p="",...g})=>{const f=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(m),_="disabled"===f,v=_?"div":"button",b=[ee.itemRow,ee[`type_${f}`],p].filter(Boolean).join(" "),x=o||"selected"===f;return e.jsxs(v,{className:b,onClick:h,disabled:_,type:"button"===v?"button":void 0,...g,children:[c&&e.jsx("div",{className:ee.infoIcon,children:e.jsx(U,{name:"Info",size:14,className:ee.infoIconImg})}),e.jsxs("div",{className:ee.content,children:[t&&e.jsx("div",{className:ee.iconWrapper,children:r||e.jsx(U,{name:"File",size:14,className:ee.fileIconImg})}),e.jsxs("div",{className:ee.text,children:[e.jsx("p",{className:ee.label,children:l}),i&&e.jsx("p",{className:ee.body,children:s})]}),d&&e.jsx("div",{className:ee.iconWrapper,children:u||e.jsx(U,{name:"Star",size:14,className:ee.starIconImg})})]}),a&&e.jsx("div",{className:ee.checkboxField,children:e.jsx(ae,{checked:x,disabled:_,size:16,readOnly:!h})}),n&&e.jsx("div",{className:ee.radioField,children:e.jsx(oe,{checked:x,disabled:_,size:16,readOnly:!h})})]})};var le={cell:"Cell-module_cell__wdOpC",label:"Cell-module_label__1JEFV",defaultContent:"Cell-module_defaultContent__Vv8Xy",leadingIcon:"Cell-module_leadingIcon__zmwIZ",trailingIcon:"Cell-module_trailingIcon__6DTXX",avatarContent:"Cell-module_avatarContent__moY52",avatar:"Cell-module_avatar__gUaMQ",avatarPlaceholder:"Cell-module_avatarPlaceholder__RK0QA",statusContent:"Cell-module_statusContent__izq8j",statusDot:"Cell-module_statusDot__5-hPy",status_active:"Cell-module_status_active__yHLS8",status_online:"Cell-module_status_online__oCYlx",status_inactive:"Cell-module_status_inactive__6Jdoj",status_offline:"Cell-module_status_offline__ls8W2",status_pending:"Cell-module_status_pending__ID-H1",socialContent:"Cell-module_socialContent__YuoLv",socialIcon:"Cell-module_socialIcon__ME-Dx",actionsContent:"Cell-module_actionsContent__V-4Lc",actionButton:"Cell-module_actionButton__AJYz-",checkboxContent:"Cell-module_checkboxContent__F2jOW",toggleContent:"Cell-module_toggleContent__0JbeA",userCountContent:"Cell-module_userCountContent__lehFs",userIconWrapper:"Cell-module_userIconWrapper__qqZpf",count:"Cell-module_count__N1yFG",badge:"Cell-module_badge__7KrfZ"},ie={toggleContainer:"Toggle-module_toggleContainer__lTsof",toggleWrapper:"Toggle-module_toggleWrapper__jWaBk",toggleInput:"Toggle-module_toggleInput__srGOt",toggle:"Toggle-module_toggle__zjgHl",toggleThumb:"Toggle-module_toggleThumb__hjTqE",size_small:"Toggle-module_size_small__xxt4m",size_medium:"Toggle-module_size_medium__mZRV2",size_large:"Toggle-module_size_large__dYf3X",toggleChecked:"Toggle-module_toggleChecked__ZM7BJ",state_default:"Toggle-module_state_default__Sk1P2",toggleDisabled:"Toggle-module_toggleDisabled__I8Z63",state_hover:"Toggle-module_state_hover__-Hx6l",state_focus:"Toggle-module_state_focus__E5i0q",state_pressed:"Toggle-module_state_pressed__U2veO",label:"Toggle-module_label__CzLo8"};const se=({checked:t=!1,disabled:a=!1,state:n="default",size:o="medium",label:r="",onChange:l,className:i="",id:s,name:c,value:d,...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(n),h=o.toLowerCase(),p=a||"disabled"===n,g=[ie.toggleContainer,i].filter(Boolean).join(" "),f=[ie.toggle,ie[`size_${h}`],t&&ie.toggleChecked,p&&ie.toggleDisabled,!p&&ie[`state_${m}`]].filter(Boolean).join(" "),_=s||`toggle-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:g,children:[e.jsxs("div",{className:ie.toggleWrapper,children:[e.jsx("input",{type:"checkbox",id:_,name:c,value:d,checked:t,disabled:p,onChange:e=>{!p&&l&&l(e)},className:ie.toggleInput,"aria-checked":t,"aria-disabled":p,role:"switch",...u}),e.jsx("label",{htmlFor:_,className:f,children:e.jsx("span",{className:ie.toggleThumb})})]}),r&&e.jsx("label",{htmlFor:_,className:ie.label,children:r})]})};var ce="CellHeader-module_cellHeader__9mlaW",de="CellHeader-module_sortable__bpx5y",ue="CellHeader-module_content__6-yV0",me="CellHeader-module_checkboxWrapper__ah1PJ",he="CellHeader-module_sortIcon__6rgJk",pe="CellHeader-module_label__nRBcj";var ge={chip:"Chip-module_chip__QDbLV",label:"Chip-module_label__jkrIf",iconWrapper:"Chip-module_iconWrapper__NWuWA",icon:"Chip-module_icon__Tkzl1",size_small:"Chip-module_size_small__FfLgY",size_medium:"Chip-module_size_medium__lOEvU",state_default:"Chip-module_state_default__Qcr59",state_hover:"Chip-module_state_hover__Fh-CV",state_pressed:"Chip-module_state_pressed__icmBU",state_active:"Chip-module_state_active__JenYe"};const fe=({label:t="Label",showRightIcon:a=!0,showLeftIcon:n=!0,chooseLeftIcon:o=null,chooseRightIcon:r=null,state:l="default",size:i="medium",onRemove:s,onClick:c,className:d="",...u})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(l),h=(i||"medium").toLowerCase(),p="small"===h?12:14,g=[ge.chip,ge[`size_${h}`],ge[`state_${m}`],d].filter(Boolean).join(" "),f=c?"button":"div";return e.jsxs(f,{className:g,onClick:c,type:c?"button":void 0,...u,children:[n?o||e.jsx("div",{className:ge.iconWrapper,children:e.jsx(U,{name:"x",size:p,className:ge.icon,variant:"active"===m?"white":"default"})}):null,e.jsx("span",{className:ge.label,children:t}),a?r||e.jsx("div",{className:ge.iconWrapper,children:e.jsx(U,{name:"x",size:p,className:ge.icon,variant:"active"===m?"white":"default",onClick:e=>{e.stopPropagation(),s&&s()}})}):null]})};var _e={container:"ChipList-module_container__3H1e7",row:"ChipList-module_row__961Z3",layout_single:"ChipList-module_layout_single__t5ANI",layout_double:"ChipList-module_layout_double__5ihDG",layout_doublerow:"ChipList-module_layout_doublerow__qSwD-"};var ve={container:"Dropdown-module_container__ErjTf",type_medium:"Dropdown-module_type_medium__-9PP9",type_small:"Dropdown-module_type_small__RBIcw",label:"Dropdown-module_label__r-lFx",description:"Dropdown-module_description__o8wRo",dropdownWrapper:"Dropdown-module_dropdownWrapper__UL4uW",fieldWrapper:"Dropdown-module_fieldWrapper__tDsIq",dropdownWrapper_type_medium:"Dropdown-module_dropdownWrapper_type_medium__fvECq",dropdownWrapper_type_small:"Dropdown-module_dropdownWrapper_type_small__Giu8S",dropdownInner:"Dropdown-module_dropdownInner__-VN-B",placeholder:"Dropdown-module_placeholder__ZqFux",value:"Dropdown-module_value__pqCLT",chevronWrapper:"Dropdown-module_chevronWrapper__zvdRH",chevronIcon:"Dropdown-module_chevronIcon__iBeCV",chipList:"Dropdown-module_chipList__s1lVm",chip:"Dropdown-module_chip__7rR17",chipLabel:"Dropdown-module_chipLabel__-ksTf",chipRemove:"Dropdown-module_chipRemove__yQ6wd",chipIcon:"Dropdown-module_chipIcon__SMMHv",error:"Dropdown-module_error__5Ptsm",dropdownWrapper_type_medium_state_default:"Dropdown-module_dropdownWrapper_type_medium_state_default__5bpre",dropdownWrapper_type_small_state_default:"Dropdown-module_dropdownWrapper_type_small_state_default__skJVV",dropdownWrapper_type_medium_state_hover:"Dropdown-module_dropdownWrapper_type_medium_state_hover__44jce",dropdownWrapper_type_small_state_hover:"Dropdown-module_dropdownWrapper_type_small_state_hover__7hn5F",dropdownWrapper_type_medium_state_selected:"Dropdown-module_dropdownWrapper_type_medium_state_selected__OC89t",dropdownWrapper_type_small_state_selected:"Dropdown-module_dropdownWrapper_type_small_state_selected__BIPst",dropdownWrapper_type_medium_state_focused:"Dropdown-module_dropdownWrapper_type_medium_state_focused__9BNJD",dropdownWrapper_type_small_state_focused:"Dropdown-module_dropdownWrapper_type_small_state_focused__Eq0nK",dropdownWrapper_type_medium_state_error:"Dropdown-module_dropdownWrapper_type_medium_state_error__YgZfn",dropdownWrapper_type_small_state_error:"Dropdown-module_dropdownWrapper_type_small_state_error__40JGM",dropdownWrapper_type_medium_state_disabled:"Dropdown-module_dropdownWrapper_type_medium_state_disabled__hibT2",dropdownWrapper_type_small_state_disabled:"Dropdown-module_dropdownWrapper_type_small_state_disabled__siGnC"};var be={dropdownNestedColumn:"DropdownNestedColumn-module_dropdownNestedColumn__-cag7",titleFrame:"DropdownNestedColumn-module_titleFrame__-offj",titleAndCta:"DropdownNestedColumn-module_titleAndCta__4y7z4",titleText:"DropdownNestedColumn-module_titleText__G5mny",clearAllButton:"DropdownNestedColumn-module_clearAllButton__jEO-i",clearAllText:"DropdownNestedColumn-module_clearAllText__WR6Lj",chevronButton:"DropdownNestedColumn-module_chevronButton__pJED1",chevronContainer:"DropdownNestedColumn-module_chevronContainer__KBjay",chevronIcon:"DropdownNestedColumn-module_chevronIcon__B-Vxx",dropdownWithSearch:"DropdownNestedColumn-module_dropdownWithSearch__pLH5k",dropdownContent:"DropdownNestedColumn-module_dropdownContent__yxwX7",chipListSection:"DropdownNestedColumn-module_chipListSection__hz0gx",chipGrid:"DropdownNestedColumn-module_chipGrid__7wFEN",noChips:"DropdownNestedColumn-module_noChips__wktQg",moreChipsChip:"DropdownNestedColumn-module_moreChipsChip__SVtTL",searchInputSection:"DropdownNestedColumn-module_searchInputSection__QRUBF",searchInput:"DropdownNestedColumn-module_searchInput__xvb2F",searchIcon:"DropdownNestedColumn-module_searchIcon__aASpj",searchField:"DropdownNestedColumn-module_searchField__UP-pl",itemsList:"DropdownNestedColumn-module_itemsList__V41r6",itemsContainer:"DropdownNestedColumn-module_itemsContainer__2IXay",noItems:"DropdownNestedColumn-module_noItems__oiWmw"};const xe=({title:a="Title",expanded:n=!0,chips:o=[],items:r=[],onClearAll:l,onChipRemove:i,onItemClick:s,className:c="",...d})=>{const[u,m]=t.useState(n),[h,p]=t.useState(""),g=[be.dropdownNestedColumn,c].filter(Boolean).join(" "),f=e.jsxs("div",{className:be.titleAndCta,children:[e.jsx("p",{className:be.titleText,children:a}),e.jsx("button",{className:be.clearAllButton,onClick:e=>{e.stopPropagation(),l&&l()},type:"button",children:e.jsx("p",{className:be.clearAllText,children:"Clear all"})})]}),_=r.filter(e=>e.label.toLowerCase().includes(h.toLowerCase()));return e.jsxs("div",{className:g,...d,children:[e.jsxs("div",{className:be.titleFrame,children:[f,e.jsx("button",{className:be.chevronButton,onClick:()=>{m(!u)},type:"button",children:e.jsx("div",{className:be.chevronContainer,children:e.jsx("div",{className:be.chevronIcon,style:{transform:u?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:e.jsx(U,{name:"caret-up",size:16})})})})]}),u&&e.jsx("div",{className:be.dropdownWithSearch,children:e.jsxs("div",{className:be.dropdownContent,children:[e.jsx("div",{className:be.chipListSection,children:o.length>0?e.jsxs("div",{className:be.chipGrid,children:[o.slice(0,5).map(t=>e.jsx(fe,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{i&&i(t)}},t.id||t.label)),o.length>5&&e.jsx(fe,{label:"+"+(o.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:be.moreChipsChip})]}):e.jsx("div",{className:be.noChips,children:"No items selected"})}),e.jsx("div",{className:be.searchInputSection,children:e.jsxs("div",{className:be.searchInput,children:[e.jsx(U,{name:"magnifying-glass",size:16,className:be.searchIcon}),e.jsx("input",{type:"text",className:be.searchField,placeholder:"Search",value:h,onChange:e=>p(e.target.value)})]})}),e.jsx("div",{className:be.itemsList,children:e.jsx("div",{className:be.itemsContainer,children:_.length>0?_.map((t,a)=>e.jsx(re,{label:t.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:t.checked||!1,type:t.type||"Default",onClick:()=>{s&&s(t)}},t.id||a)):e.jsx("div",{className:be.noItems,children:"No items found"})})})]})})]})};var we={dropdownNested:"DropdownNested-module_dropdownNested__S7idI",columns:"DropdownNested-module_columns__VciGu",column:"DropdownNested-module_column__clf4o",ctas:"DropdownNested-module_ctas__MWS3w",cancelButton:"DropdownNested-module_cancelButton__c-8mc",applyButton:"DropdownNested-module_applyButton__AvCpG"};var Ce={iconButton:"IconButton-module_iconButton__RX7bN",icon:"IconButton-module_icon__1mvRD",loaderIcon:"IconButton-module_loaderIcon__AB3CY",spin:"IconButton-module_spin__dIR-z",size_medium:"IconButton-module_size_medium__vDKx5",size_small:"IconButton-module_size_small__6QIGb",style_primary:"IconButton-module_style_primary__iuggd",state_default:"IconButton-module_state_default__CRDoC",state_hover:"IconButton-module_state_hover__gREn9",state_focus:"IconButton-module_state_focus__rPK-E",state_disabled:"IconButton-module_state_disabled__LFZlJ",state_loading:"IconButton-module_state_loading__jB6U7",style_secondary:"IconButton-module_style_secondary__3em9O",style_neutral:"IconButton-module_style_neutral__hzeSD",style_subtle:"IconButton-module_style_subtle__QK4-l"};var ye={overlay:"Modal-module_overlay__-RqGQ",fadeIn:"Modal-module_fadeIn__bf4KI",modal:"Modal-module_modal__MUsZA",slideUp:"Modal-module_slideUp__ZdbV-",small:"Modal-module_small__tMzhZ",medium:"Modal-module_medium__ww1Z7",large:"Modal-module_large__J-zZn",closeButton:"Modal-module_closeButton__1Oslg",content:"Modal-module_content__1bCpv",iconWrapper:"Modal-module_iconWrapper__99kUR",textStack:"Modal-module_textStack__QbEZb",title:"Modal-module_title__TUIss",description:"Modal-module_description__o6Czk",actions:"Modal-module_actions__YzyOX"};var ke={notification:"Notification-module_notification__U2DR1",size_small:"Notification-module_size_small__kHQRv",size_medium:"Notification-module_size_medium__hJpV4",variant_primary:"Notification-module_variant_primary__OQM8e",variant_neutral:"Notification-module_variant_neutral__tmXIq",variant_subtle:"Notification-module_variant_subtle__uwELf",count:"Notification-module_count__XmK01",plus:"Notification-module_plus__oBCK6"};const Pe=({count:t=0,variant:a="primary",size:n="medium",maxCount:o=99,className:r="",...l})=>{const i=[ke.notification,ke[`variant_${a}`],ke[`size_${n}`],r].filter(Boolean).join(" ");return e.jsx("span",{className:i,...l,children:(()=>{if("number"==typeof t&&t>o)return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:ke.count,children:o}),e.jsx("span",{className:ke.plus,children:"+"})]});if("string"==typeof t&&t.endsWith("+")){const a=t.slice(0,-1);return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:ke.count,children:a}),e.jsx("span",{className:ke.plus,children:"+"})]})}return t})()})};var Se={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};var Ne={container:"Search-module_container__NslV2",input:"Search-module_input__-SRzW",inputInner:"Search-module_inputInner__BFwA4",searchIcon:"Search-module_searchIcon__kOb49",searchIconImage:"Search-module_searchIconImage__JG5O3",placeholder:"Search-module_placeholder__XGEtM",value:"Search-module_value__r-4hD",realInput:"Search-module_realInput__REpAG",inputInner_state_focused:"Search-module_inputInner_state_focused__Zl5a2",cursor:"Search-module_cursor__hsCJx",blink:"Search-module_blink__PSxpt",cursorTyping:"Search-module_cursorTyping__wAW5b",error:"Search-module_error__4NuH1",input_state_default:"Search-module_input_state_default__5QR0F",inputInner_state_default:"Search-module_inputInner_state_default__YpSHL",input_state_hover:"Search-module_input_state_hover__zvOhd",inputInner_state_hover:"Search-module_inputInner_state_hover__Gxcb9",input_state_focused:"Search-module_input_state_focused__TDgsA",input_state_typing:"Search-module_input_state_typing__GFivl",inputInner_state_typing:"Search-module_inputInner_state_typing__9zezH",input_state_filled:"Search-module_input_state_filled__3FE6u",inputInner_state_filled:"Search-module_inputInner_state_filled__qOdD4",input_state_filledHover:"Search-module_input_state_filledHover__kQu9I",inputInner_state_filledHover:"Search-module_inputInner_state_filledHover__2EMWM",input_state_error:"Search-module_input_state_error__F-GNS",inputInner_state_error:"Search-module_inputInner_state_error__zTv5f",input_state_disabled:"Search-module_input_state_disabled__F5cPc",inputInner_state_disabled:"Search-module_inputInner_state_disabled__gKmLt"};var je={statusIndicator:"StatusIndicator-module_statusIndicator__dYsH-",indicator:"StatusIndicator-module_indicator__YQzs6",label:"StatusIndicator-module_label__WM5I3",size_medium:"StatusIndicator-module_size_medium__Fp-1x",state_default:"StatusIndicator-module_state_default__J4F1G",state_hover:"StatusIndicator-module_state_hover__Hmr-w",state_pressed:"StatusIndicator-module_state_pressed__Cz8o1",state_active:"StatusIndicator-module_state_active__nOiXv",state_disabled:"StatusIndicator-module_state_disabled__umvwX"};var Ie={tab:"Tab-module_tab__SstW0",label:"Tab-module_label__3WQV-",active:"Tab-module_active__RQPjd",disabled:"Tab-module_disabled__m49K5",underline:"Tab-module_underline__IupnS",slideIn:"Tab-module_slideIn__owi-7"};const Ae=({label:t,count:a,isActive:n=!1,disabled:o=!1,onClick:r,className:l="",...i})=>{const s=[Ie.tab,n&&Ie.active,o&&Ie.disabled,l].filter(Boolean).join(" ");return e.jsxs("button",{className:s,onClick:e=>{!o&&r&&r(e)},disabled:o,type:"button",role:"tab","aria-selected":n,...i,children:[e.jsx("span",{className:Ie.label,children:t}),null!=a&&e.jsx(Pe,{count:a,variant:o?"subtle":n?"primary":"neutral",size:"small",className:Ie.notification}),n&&e.jsx("div",{className:Ie.underline})]})};var Le={tabList:"TabList-module_tabList__sSh3n"};var De={tableContainer:"Table-module_tableContainer__R0vmz",checkboxHeader:"Table-module_checkboxHeader__nB0jp",tableCell:"Table-module_tableCell__gaAKu",antTable:"Table-module_antTable__bZm6O",dragHandleHeader:"Table-module_dragHandleHeader__KczQT",dragHandleCell:"Table-module_dragHandleCell__3TeKk",dragHandle:"Table-module_dragHandle__gi396",rowDragging:"Table-module_rowDragging__OkG8Q","ant-table-tbody":"Table-module_ant-table-tbody__77qO2",sortIcon:"Table-module_sortIcon__1ordV",columnHeaderContent:"Table-module_columnHeaderContent__3qDkz","ant-table-column-title":"Table-module_ant-table-column-title__OGte0",columnHeaderLabel:"Table-module_columnHeaderLabel__s57EO",sortIconLeft:"Table-module_sortIconLeft__zL1i-","ant-table-thead":"Table-module_ant-table-thead__zf80i",resizeHandle:"Table-module_resizeHandle__2zwBq",resizeHandleLine:"Table-module_resizeHandleLine__i85s6",resizing:"Table-module_resizing__rV8oe","ant-table-column-sorters":"Table-module_ant-table-column-sorters__5YiWY"};const Be=t.createContext(null),ze=({children:t,id:a,rowKey:n,row:o})=>{const{attributes:i,listeners:s,setNodeRef:c,transform:d,transition:u,isDragging:m}=r.useSortable({id:a}),h={transform:l.CSS.Transform.toString(d),transition:u,opacity:m?.5:1};return e.jsx(Be.Provider,{value:{attributes:i,listeners:s},children:e.jsx("tr",{ref:c,style:h,className:`${m?De.rowDragging:""}`,children:t})})},$e=()=>{const a=t.useContext(Be);if(!a)return null;const{attributes:n,listeners:o}=a;return e.jsx("td",{className:De.dragHandleCell,children:e.jsx("div",{className:De.dragHandle,...o,...n,children:e.jsx(U,{name:"dots-six-vertical",size:12})})})},Te=({columnKey:a,onResizeStart:n,onResize:o,onResizeEnd:r})=>{const l=t.useRef(null),[i,s]=t.useState(!1),c=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),s(!0);const t=e.clientX,i=l.current?.parentElement?.offsetWidth||0,c=e=>{const n=e.clientX-t,r=Math.max(50,i+n);o&&o(a,r)},d=()=>{s(!1),r&&r(a),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect=""};n&&n(a),document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[a,o,n,r]);return e.jsx("div",{ref:l,className:`${De.resizeHandle} ${i?De.resizing:""}`,onMouseDown:c,title:"Drag to resize column",children:e.jsx("div",{className:De.resizeHandleLine})})};var Re={container:"TextArea-module_container__8G9wA",label:"TextArea-module_label__sMQAR",description:"TextArea-module_description__P-BRk",textareaWrapper:"TextArea-module_textareaWrapper__cnITK",textareaInner:"TextArea-module_textareaInner__yxET8",textContent:"TextArea-module_textContent__5-qwn",title:"TextArea-module_title__V-RBC",nativeTextarea:"TextArea-module_nativeTextarea__1fdWN",iconWrapper:"TextArea-module_iconWrapper__3-EUI",icon:"TextArea-module_icon__K1T5J",dragIcon:"TextArea-module_dragIcon__UGnz0",dragIconImage:"TextArea-module_dragIconImage__u8y7I",error:"TextArea-module_error__qIUbc",textareaWrapper_state_default:"TextArea-module_textareaWrapper_state_default__2mpPG",textareaWrapper_state_hover:"TextArea-module_textareaWrapper_state_hover__yNCVJ",textareaWrapper_state_disabled:"TextArea-module_textareaWrapper_state_disabled__Q2hqV",textareaWrapper_state_focused:"TextArea-module_textareaWrapper_state_focused__UfdMe",textareaWrapper_state_typing:"TextArea-module_textareaWrapper_state_typing__81iqx",textareaWrapper_state_filled:"TextArea-module_textareaWrapper_state_filled__XKopI",textareaWrapper_state_filledHover:"TextArea-module_textareaWrapper_state_filledHover__AQra1",textareaWrapper_state_error:"TextArea-module_textareaWrapper_state_error__iBcMB"};const Fe={light:{background:"#ffffff",text:"#333333",grid:"#e0e0e0",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#cccccc",shadow:"rgba(0, 0, 0, 0.1)"},dark:{background:"#1a1a1a",text:"#ffffff",grid:"#333333",primary:"#ff6b6b",secondary:"#4ecdc4",accent:"#45b7d1",border:"#444444",shadow:"rgba(255, 255, 255, 0.1)"}};const We={fadeIn:{duration:300,easing:"ease-in-out",keyframes:[{opacity:0},{opacity:1}]},slideUp:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideDown:{duration:300,easing:"ease-out",keyframes:[{transform:"translateY(-10px)",opacity:0},{transform:"translateY(0)",opacity:1}]},slideLeft:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},slideRight:{duration:300,easing:"ease-out",keyframes:[{transform:"translateX(-10px)",opacity:0},{transform:"translateX(0)",opacity:1}]},scaleIn:{duration:200,easing:"ease-out",keyframes:[{transform:"scale(0.95)",opacity:0},{transform:"scale(1)",opacity:1}]},scaleOut:{duration:200,easing:"ease-in",keyframes:[{transform:"scale(1)",opacity:1},{transform:"scale(0.95)",opacity:0}]},bounce:{duration:600,easing:"ease-in-out",keyframes:[{transform:"translateY(0)"},{transform:"translateY(-5px)"},{transform:"translateY(0)"}]},pulse:{duration:1e3,easing:"ease-in-out",iterations:"infinite",keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}]},spin:{duration:1e3,easing:"linear",iterations:"infinite",keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}]}};function Ee(e,t,a){if(!e)return null;const n=We[t],o={duration:a?.duration||n.duration,delay:a?.delay||0,easing:a?.easing||n.easing,iterations:a?.iterations||1,direction:a?.direction||"normal",fillMode:a?.fillMode||"both"};return e.animate(n.keyframes,o)}const Me={fadeIn:"animate-fade-in",slideUp:"animate-slide-up",bounce:"animate-bounce-gentle",pulse:"animate-pulse-slow",spin:"animate-spin"};function Ue(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function He(e,t){if(t.required&&(!e||""===e.toString().trim()))return{isValid:!1,message:"This field is required"};if(!e||""===e.toString().trim())return{isValid:!0};const a=e.toString();if(t.minLength&&a.length<t.minLength)return{isValid:!1,message:`Must be at least ${t.minLength} characters long`};if(t.maxLength&&a.length>t.maxLength)return{isValid:!1,message:`Must be no more than ${t.maxLength} characters long`};const n=Number(e);if(!isNaN(n)){if(void 0!==t.min&&n<t.min)return{isValid:!1,message:`Must be at least ${t.min}`};if(void 0!==t.max&&n>t.max)return{isValid:!1,message:`Must be no more than ${t.max}`}}return t.pattern&&!t.pattern.test(a)?{isValid:!1,message:"Invalid format"}:t.custom?t.custom(e):{isValid:!0}}const qe={email:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,phone:/^[\+]?[1-9][\d]{0,15}$/,url:/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,alphanumeric:/^[a-zA-Z0-9]+$/,alphabetic:/^[a-zA-Z\s]+$/,numeric:/^\d+$/,decimal:/^\d*\.?\d+$/,slug:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,hexColor:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ipAddress:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,uuid:/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i},Ve={required:{required:!0},email:{required:!0,pattern:qe.email},password:{required:!0,minLength:8},phone:{required:!0,pattern:qe.phone},url:{required:!0,pattern:qe.url},alphanumeric:{pattern:qe.alphanumeric},numeric:{pattern:qe.numeric},decimal:{pattern:qe.decimal},slug:{pattern:qe.slug},hexColor:{pattern:qe.hexColor}};exports.Avatar=({src:t,initials:a,alt:n,size:o="medium",shape:r="circle",className:l="",...i})=>{const s=[Y.avatar,Y[`size_${o}`],Y[`shape_${r}`],!t&&a?Y.initialsBg:"",l].filter(Boolean).join(" ");return e.jsx("div",{className:s,...i,children:t?e.jsx("img",{src:t,alt:n||a||"avatar",className:Y.image}):e.jsx("span",{className:Y.initials,children:a})})},exports.BackgroundGradient=({className:t="",mode:a="Light Mode BG",...n})=>e.jsx("div",{className:`${X} ${t}`,"data-mode":a,...n,children:e.jsx("img",{className:K,src:`/bg/Mode=${a}.svg`,alt:`${a} Blobs`})}),exports.Badge=({label:t="Badge",type:a="default",size:n="medium",className:o="",children:r,...l})=>{const i=(e=>{if(!e)return"default";const t=e.toLowerCase();return"active"===t?"active":"inactive"===t?"inactive":"default"})(a),s=(e=>{if(!e)return"medium";const t=e.toString().toLowerCase();return"small"===t||"sm"===t?"small":"medium"===t||"md"===t?"medium":"large"===t||"lg"===t?"large":"medium"})(n),c=[Z.badge,Z[`type_${i}`],Z[`size_${s}`],o].filter(Boolean).join(" ");return e.jsx("span",{className:c,...l,children:r||t})},exports.BarChart=a=>{const n={...u,...a},{data:o,title:r,titleStyle:l,titleClassName:i,width:s,height:c,margin:m,colors:h,showGrid:p,animate:g,responsive:f,formatValue:_,className:v,style:b,onBarClick:x,onBarHover:w,showTooltip:C,tooltipStyle:y,tooltipClassName:k,tooltipContent:P,showLegend:S=!0,legendPosition:N="bottom",legendStyle:j,legendClassName:I,legendTitle:A,showYAxis:L=!0,showYAxisLine:D=!1,showYAxisTicks:B=!1,yAxisStyle:z,yAxisClassName:$,yAxisLabelStyle:T,yAxisLabelClassName:R,cornerRadius:F,barPadding:W,tickCount:E}=n,M=t.useRef(null),U=t.useRef(null),H=t.useRef(null),[q,V]=t.useState({width:s||800,height:c||400}),[O,G]=t.useState(!1);t.useEffect(()=>{if(G(!0),!f)return;const e=()=>{if(U.current){const e=U.current.getBoundingClientRect().width,t=Math.max(300,e),a=Math.max(300,.5*t);V({width:t,height:a})}};let t;U.current&&(t=new ResizeObserver(e),t.observe(U.current)),window.addEventListener("resize",e);const a=setTimeout(e,0);return()=>{t&&t.disconnect(),window.removeEventListener("resize",e),clearTimeout(a)}},[f]),t.useEffect(()=>{if(!O||!o||0===o.length)return;const e=d.select(M.current);e.selectAll("*").remove();const t=q.width-(m?.left||0)-(m?.right||0),a=q.height-(m?.top||0)-(m?.bottom||0),n=e.attr("width",q.width).attr("height",q.height).append("g").attr("transform",`translate(${m?.left||0},${m?.top||0})`);if(h?.gradient){const t=e.append("defs").append("linearGradient").attr("id","barGradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");t.append("stop").attr("offset","0%").attr("stop-color",h.gradient.start),t.append("stop").attr("offset","100%").attr("stop-color",h.gradient.end)}const r=d.scaleBand().domain(o.map(e=>e.category)).range([0,t]).padding(W||.6),l=d.max(o,e=>e.value)||0,i=d.scaleLinear().domain([0,1.1*l]).range([a,0]);if(p){const e=d.axisLeft(i).tickSize(-t).tickFormat(()=>"").ticks(E||5);n.append("g").attr("class","grid").style("stroke-dasharray","3,3").style("opacity",.3).call(e)}if(L){const e=d.axisLeft(i).ticks(E||5).tickFormat(e=>{const t="number"==typeof e?e:Number(e);return _?_(t):0===t?"0":t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(0)}k`:t.toString()}),t=n.append("g").attr("class","y-axis").style("color","#7D7D7D").style("font-size","0.875rem").call(e);if(z){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=z[e];void 0!==a&&t.style(e,a.toString())})}if(D||t.selectAll("path").style("display","none"),B||t.selectAll("line").style("display","none"),t.selectAll("text").attr("class",`y-axis-label ${R||""}`).style("font-weight","500").style("fill","#7D7D7D").style("font-size","0.875rem").style("font-family","Inter, system-ui, sans-serif").style("dominant-baseline","middle").style("text-anchor","end").attr("dx","-8px"),T){["color","font-size","font-weight","font-family","opacity","visibility","display","text-anchor","dominant-baseline"].forEach(e=>{const a=T[e];void 0!==a&&t.selectAll("text").style(e,a.toString())})}}const s=d.axisBottom(r),c=n.append("g").attr("class","x-axis").attr("transform",`translate(0,${a})`).style("color","#718096").style("font-size","0.875rem").call(s);c.selectAll("path").style("display","none"),c.selectAll("line").style("display","none"),t<600&&c.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-45)");const u=n.selectAll(".bar").data(o).enter().append("rect").attr("class","bar").attr("x",e=>r(e.category)||0).attr("width",r.bandwidth()).attr("y",a).attr("height",0).attr("rx",F||5).attr("ry",F||5).style("fill",e=>e.color?e.color:h?.gradient?"url(#barGradient)":h?.solid?h.solid:"#8B5CF6").style("cursor",x?"pointer":"default");g?u.transition().duration(800).ease(d.easeBackOut.overshoot(1.1)).attr("y",e=>i(e.value)).attr("height",e=>a-i(e.value)):u.attr("y",e=>i(e.value)).attr("height",e=>a-i(e.value)),(x||w||C)&&u.on("click",(e,t)=>{if(x){const e=o.indexOf(t);x(t,e)}}).on("mouseover",(e,t)=>{if(w){const e=o.indexOf(t);w(t,e)}if(C&&H.current&&U.current){const a=d.select(H.current),n=U.current.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),r=o.left-n.left+o.width/2,l=o.top-n.top-15;a.style("opacity",1).style("left",`${r}px`).style("top",`${l}px`).style("transform","translateX(-50%)").html(`\n <div class="font-semibold text-white">${t.category}</div>\n <div class="text-sm text-gray-200 mt-1">${_?_(t.value):t.value.toString()}</div>\n `)}d.select(e.currentTarget).transition().duration(200).style("opacity",.8).style("filter","brightness(1.1)")}).on("mouseout",e=>{C&&H.current&&d.select(H.current).style("opacity",0),d.select(e.currentTarget).transition().duration(200).style("opacity",1).style("filter","brightness(1)")}).on("mousemove",(e,t)=>{if(C&&H.current&&U.current){const t=d.select(H.current),a=U.current.getBoundingClientRect(),n=e.clientX-a.left,o=e.clientY-a.top;t.style("left",`${n}px`).style("top",o-15+"px").style("transform","translateX(-50%)")}})},[O,o,q,m,h,p,g,_,x,w,C,F,W,E,L,D,B,z,$,T,R]);const Y=()=>{if(!S||!o||0===o.length)return null;const t=o.map((t,a)=>e.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>x?.(t,a),onMouseEnter:()=>w?.(t,a),children:[e.jsx("div",{className:"w-4 h-4 rounded-sm",style:{backgroundColor:t.color||(h?.gradient?"url(#barGradient)":h?.solid||"#8B5CF6")}}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:t.category}),e.jsxs("span",{className:"text-xs text-gray-500",children:["(",_?_(t.value):t.value.toString(),")"]})]},t.category));return e.jsxs("div",{className:`${{top:"flex flex-wrap justify-center gap-4 mb-4",bottom:"flex flex-wrap justify-center gap-4 mt-4",left:"flex flex-col space-y-2 mr-4",right:"flex flex-col space-y-2 ml-4"}[N]} ${I||""}`,style:j,children:[A&&e.jsx("div",{className:"w-full text-center mb-2",children:e.jsx("span",{className:"text-sm font-semibold text-gray-600",children:A})}),t]})};return e.jsxs("div",{ref:U,className:`bg-white p-6 rounded-xl ${v||""}`,style:b,children:[r&&e.jsx("h2",{className:`text-xl font-semibold text-[#18044E] mb-6 ${i||""}`,style:l,children:r}),S&&"top"===N&&Y(),e.jsxs("div",{className:"relative",children:[e.jsx("svg",{ref:M,className:"w-full h-auto"}),C&&e.jsx("div",{ref:H,className:`absolute pointer-events-none bg-gradient-to-r from-gray-800 to-gray-900 text-white rounded-xl px-4 py-3 shadow-2xl opacity-0 transition-all duration-300 z-50 whitespace-nowrap border border-gray-600 ${k||""}`,style:{fontSize:"0.9rem",minWidth:"120px",textAlign:"center",backdropFilter:"blur(10px)",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05)",...y},children:P?P(o[0]):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"font-semibold text-white",children:o[0]?.category}),e.jsx("div",{className:"text-sm text-gray-200 mt-1",children:_?_(o[0]?.value||0):(o[0]?.value||0).toString()})]})})]}),S&&"bottom"===N&&Y()]})},exports.Breadcrumb=({items:t=[],separator:a="/",className:o="",...r})=>{const l=t.map(t=>({...t,title:e.jsxs("span",{className:Q.itemContent,children:[t.icon&&e.jsx(U,{name:t.icon,size:14,className:Q.itemIcon}),e.jsx("span",{className:Q.itemTitle,children:t.title})]})}));return e.jsx("div",{className:`${Q.breadcrumbContainer} ${o}`,children:e.jsx(n.Breadcrumb,{items:l,separator:e.jsx("span",{className:Q.separator,children:a}),className:Q.antBreadcrumb,...r})})},exports.Button=V,exports.ButtonDanger=G,exports.Card=({children:t,variant:a="default",padding:n="md",hover:o=!1,clickable:r=!1,header:l,footer:i,onClick:s,className:c,style:d,animate:u=!0,animationDuration:m=300,animationDelay:h=0,animationEasing:p="ease-in-out",...g})=>{const f=F("bg-white rounded-lg transition-all duration-200",{default:"shadow-sm border border-gray-200",elevated:"shadow-lg border border-gray-100",outlined:"border-2 border-gray-200",filled:"bg-gray-50 border border-gray-200"}[a],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[n],o&&"hover:shadow-md hover:-translate-y-0.5",r&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",u&&"animate-fade-in",c),_={...d,...u&&{animationDuration:`${m}ms`,animationDelay:`${h}ms`,animationTimingFunction:p}};return e.jsxs("div",{className:f,style:_,onClick:e=>{r&&s&&s(e)},...g,children:[l&&e.jsx("div",{className:"mb-4 pb-4 border-b border-gray-200",children:l}),e.jsx("div",{className:"flex-1",children:t}),i&&e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:i})]})},exports.Categories=({variant:a="single",chips:n=[],categories:o=[],onChipRemove:r,onCategoryToggle:l,onItemClick:i,onCancel:s,onApply:c,cancelLabel:d="Cancel",applyLabel:u="Apply",className:m="",...h})=>{const[p,g]=t.useState(""),[f,_]=t.useState(o.reduce((e,t,a)=>(e[a]=void 0===t.expanded||t.expanded,e),{})),v=t.useMemo(()=>{if(!p)return o;const e=p.toLowerCase();return o.map(t=>{if((t.title||"").toLowerCase().includes(e))return t;const a=(t.items||[]).filter(t=>(t.label||"").toLowerCase().includes(e));return a.length>0?{...t,items:a}:null}).filter(e=>null!==e)},[o,p]);t.useEffect(()=>{if(p){const e=v.reduce((e,t,a)=>(e[a]=!0,e),{});_(e)}},[p,v.length]);const b=(t,n)=>{const o=!!p||!1!==f[n];return e.jsxs("div",{className:J.categoryList,children:[e.jsxs("button",{type:"button",className:J.categoryTitle,onClick:()=>{return e=n,_(t=>({...t,[e]:!t[e]})),void(l&&l(e,!f[e]));var e},children:[e.jsx("p",{className:J.categoryTitleText,children:t.title||"Category"}),e.jsx("div",{className:J.chevronIcon,children:e.jsx(U,{name:"CaretDown",size:14,className:`${J.chevronImg} ${o?J.chevronUp:""}`})})]}),o&&e.jsx("div",{className:J.categoryItems,children:(t.items||[]).map((t,o)=>e.jsx("div",{className:J.categoryItemWrapper,children:e.jsx(re,{label:t.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===a,hasRadio:"multiple"!==a,checked:t.checked||!1,type:t.type||"default",onClick:()=>{i&&i(t,n)}})},t.id||o))})]},n)},x=[J.container,J[`variant_${a}`],m].filter(Boolean).join(" ");return e.jsxs("div",{className:x,...h,children:[e.jsxs("div",{className:J.searchSection,children:[e.jsxs("div",{className:J.searchInput,children:[e.jsx("div",{className:J.searchIcon,children:e.jsx(U,{name:"MagnifyingGlass",size:16,className:J.searchIconImage})}),e.jsx("input",{type:"text",className:J.realSearchInput,placeholder:"Search",value:p,onChange:e=>{g(e.target.value)}})]}),(()=>{if(!n||0===n.length)return null;const t=n.slice(0,5),a=n.length-5;let o=null;return a>0&&(o={isMore:!0,label:`+${a}`}),e.jsxs("div",{className:J.chipListContainer,children:[t.map((t,a)=>e.jsxs("div",{className:J.chip,children:[e.jsx("p",{className:J.chipLabel,children:t.label||"Label"}),e.jsx("button",{type:"button",className:J.chipRemove,onClick:e=>{e.stopPropagation(),r&&r(t)},"aria-label":"Remove chip",children:e.jsx(U,{name:"X",size:14,className:J.chipIcon})})]},a)),o&&e.jsx("div",{className:J.chip,children:e.jsx("p",{className:J.chipLabel,children:o.label})})]})})()]}),e.jsx("div",{className:J.listsContainer,children:v.map((e,t)=>b(e,t))}),e.jsxs("div",{className:J.actionsContainer,children:[e.jsx("button",{type:"button",className:J.cancelButton,onClick:s,children:e.jsx("p",{className:J.cancelButtonText,children:d})}),e.jsx("button",{type:"button",className:J.applyButton,onClick:c,children:e.jsx("p",{className:J.applyButtonText,children:u})})]})]})},exports.Cell=({variant:t="default",label:a="",icon:n=null,badge:o=null,avatar:r=null,status:l=null,checked:i=!1,onChange:s,count:c=null,actions:d=[],className:u="",...m})=>e.jsx("div",{className:`${le.cell} ${le[`variant_${t}`]} ${u}`,...m,children:(()=>{switch(t){case"avatar":return e.jsxs("div",{className:le.avatarContent,children:[r?e.jsx("img",{src:r,alt:a,className:le.avatar}):e.jsx("div",{className:le.avatarPlaceholder,children:e.jsx(U,{name:"User",size:16})}),e.jsx("span",{className:le.label,children:a})]});case"status":return e.jsxs("div",{className:le.statusContent,children:[e.jsx("div",{className:`${le.statusDot} ${le[`status_${l?.toLowerCase()}`]}`}),e.jsx("span",{className:le.label,children:a}),o&&e.jsx("span",{className:le.badge,children:o})]});case"social":return e.jsxs("div",{className:le.socialContent,children:[n&&e.jsx(U,{name:n,size:16,className:le.socialIcon}),e.jsx("span",{className:le.label,children:a})]});case"actions":return e.jsx("div",{className:le.actionsContent,children:d.map((t,a)=>e.jsx("button",{className:le.actionButton,onClick:t.onClick,title:t.label,type:"button",children:e.jsx(U,{name:t.icon,size:14})},a))});case"checkbox":return e.jsxs("div",{className:le.checkboxContent,children:[e.jsx(ae,{checked:i,onChange:s,size:"small"}),e.jsx("span",{className:le.label,children:a})]});case"toggle":return e.jsx("div",{className:le.toggleContent,children:e.jsx(se,{checked:i,onChange:s,size:"small"})});case"userCount":return e.jsx("div",{className:le.userCountContent,children:e.jsxs("div",{className:le.userIconWrapper,children:[e.jsx(U,{name:"User",size:14}),e.jsx("span",{className:le.count,children:c})]})});default:return e.jsxs("div",{className:le.defaultContent,children:[n&&e.jsx(U,{name:n,size:16,className:le.leadingIcon}),e.jsx("span",{className:le.label,children:a}),o&&e.jsx("span",{className:le.badge,children:o}),e.jsx(U,{name:"Globe",size:14,className:le.trailingIcon})]})}})()}),exports.CellHeader=({label:t="",sortable:a=!1,sortOrder:n=null,hasCheckbox:o=!1,checked:r=!1,onSort:l,onCheckboxChange:i,className:s="",...c})=>e.jsx("div",{className:`${ce} ${a?de:""} ${s}`,onClick:a?l:void 0,...c,children:e.jsxs("div",{className:ue,children:[o&&e.jsx("div",{className:me,onClick:e=>e.stopPropagation(),children:e.jsx(ae,{checked:r,onChange:i,size:"small"})}),a&&e.jsx("div",{className:he,"aria-label":`Sort ${n||"none"}`,children:e.jsx(U,{name:"asc"===n?"SortAscending":"desc"===n?"SortDescending":"CaretUpDown",size:14})}),e.jsx("span",{className:pe,children:t})]})}),exports.Checkbox=ae,exports.Chip=fe,exports.ChipList=({chips:t=[],layout:a="single",onChipRemove:n,className:o="",...r})=>{const l=t.length>0?t:[{label:"Label",id:"1"},{label:"Label",id:"2"},{label:"Label",id:"3"}],i=a.toLowerCase(),s=(()=>{if("double"===i||"doublerow"===i){const e=Math.ceil(l.length/2);return[l.slice(0,e),l.slice(e)]}return[l]})(),c=[_e.container,_e[`layout_${i}`],o].filter(Boolean).join(" ");return e.jsx("div",{className:c,...r,children:s.map((t,a)=>e.jsx("div",{className:_e.row,children:t.map(t=>e.jsx(fe,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{n&&n(t)}},t.id||t.label))},a))})},exports.Dropdown=({value:a="",description:n="",label:o="",error:r="",hasLabel:l=!0,hasDescription:i=!0,hasError:s=!1,hasChips:c=!1,state:d="default",type:u="medium",placeholder:m="Value",chips:h=[],onChange:p,onFocus:g,onBlur:f,onClick:_,onOutsideClick:v,disabled:b,className:x="",children:w,...C})=>{const y=t.useRef(null);t.useEffect(()=>{if(!v)return;const e=e=>{y.current&&!y.current.contains(e.target)&&v()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[v]);const k=(u||"medium").toLowerCase(),P=b?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"selected"===t?"selected":"focused"===t?"focused":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(d),S=[ve.container,ve[`type_${k}`],x].filter(Boolean).join(" "),N=[ve.dropdownWrapper,ve[`dropdownWrapper_type_${k}`],ve[`dropdownWrapper_state_${P}`],ve[`dropdownWrapper_type_${k}_state_${P}`]].filter(Boolean).join(" "),j=b||"disabled"===P,I=e.jsxs("div",{className:ve.fieldWrapper,children:[e.jsx("button",{type:"button",className:N,onClick:_||g,disabled:j,"aria-disabled":j,...C,children:e.jsxs("div",{className:ve.dropdownInner,children:[c&&0!==h.length?e.jsx("div",{className:ve.chipList,children:h.map((t,a)=>e.jsxs("div",{className:ve.chip,children:[e.jsx("span",{className:ve.chipLabel,children:t.label||"Label"}),t.onRemove&&e.jsx("button",{type:"button",className:ve.chipRemove,onClick:e=>{e.stopPropagation(),t.onRemove&&t.onRemove()},"aria-label":"Remove chip",children:e.jsx(U,{name:"x",size:10,className:ve.chipIcon})})]},a))}):null,a?e.jsx("span",{className:ve.value,children:a}):e.jsx("span",{className:ve.placeholder,children:m}),e.jsx("div",{className:ve.chevronWrapper,children:e.jsx(U,{name:w?"caret-up":"caret-down",size:12,className:ve.chevronIcon})})]})}),w]});return e.jsxs("div",{className:S,ref:y,children:[l&&o&&e.jsx("p",{className:ve.label,children:o}),i&&n&&e.jsx("p",{className:ve.description,children:n}),I,s&&r&&e.jsx("p",{className:ve.error,children:r})]})},exports.DropdownNested=({leftColumn:t={title:"Select a Member",chips:[],items:[]},rightColumn:a={title:"Select a Group",chips:[],items:[]},onLeftClearAll:n,onRightClearAll:o,onLeftChipRemove:r,onRightChipRemove:l,onLeftItemClick:i,onRightItemClick:s,onCancel:c,onApply:d,className:u="",...m})=>{const h=t.chips,p=a.chips,g=t.items,f=a.items,_=[we.dropdownNested,u].filter(Boolean).join(" ");return e.jsxs("div",{className:_,...m,children:[e.jsxs("div",{className:we.columns,children:[e.jsx("div",{className:we.column,children:e.jsx(xe,{title:t.title,expanded:!0,chips:h,items:g,onClearAll:n,onChipRemove:r,onItemClick:i})}),e.jsx("div",{className:we.column,children:e.jsx(xe,{title:a.title,expanded:!0,chips:p,items:f,onClearAll:o,onChipRemove:l,onItemClick:s})})]}),e.jsxs("div",{className:we.ctas,children:[e.jsx(G,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:c,className:we.cancelButton}),e.jsx(V,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:d,className:we.applyButton})]})]})},exports.DropdownNestedColumn=xe,exports.GaugeChart=({segments:a,title:n})=>{const o=t.useRef(null),{segmentData:r,total:l}=(e=>{const t=e.reduce((e,t)=>e+t.value,0);return{segmentData:e.map(e=>({...e,percentage:e.value/t,arcLength:75*Math.PI*(e.value/t)})),total:t}})(a),{count:i,animationProgress:s}=(e=>{const[a,n]=t.useState(0),[o,r]=t.useState(0);return t.useEffect(()=>{let t=0;const a=1/(f/_),o=setInterval(()=>{t+=a,t>=1&&(t=1,clearInterval(o)),n(Math.floor(e*t)),r(t)},_);return()=>{clearInterval(o)}},[e]),{count:a,animationProgress:o}})(l),{tooltip:c,showTooltip:d,updateTooltip:u,hideTooltip:m}=(e=>{const[a,n]=t.useState({show:!1,content:"",x:0,y:0,type:""}),o=t.useCallback((t,a,o)=>{if(!e.current)return;const r=e.current.getBoundingClientRect(),l=t.clientX-r.left,i=t.clientY-r.top;n({show:!0,content:a,type:o,x:l,y:i-70})},[e]),r=t.useCallback((t,o,r)=>{if(!a.show||!e.current)return;const l=e.current.getBoundingClientRect(),i=t.clientX-l.left,s=t.clientY-l.top;n(e=>({...e,x:i,y:s-70}))},[a.show,e]),l=t.useCallback(()=>{n(e=>({...e,show:!1}))},[]);return{tooltip:a,showTooltip:o,updateTooltip:r,hideTooltip:l}})(o),h=p,b=g,x=Math.PI*h,w=t.useMemo(()=>({width:2*h+b,height:h+b+20,viewBox:`0 0 ${2*h+b} ${h+b+20}`}),[h,b]),C=t.useMemo(()=>((e,t)=>`M ${t/2},${e+10} \n A ${e},${e} 0 0 1 ${2*e+t/2},${e+10}`)(h,b),[h,b]),y=t.useMemo(()=>r.map((e,t)=>({currentArc:e.arcLength*s,previousArcsLength:r.slice(0,t).reduce((e,t)=>e+t.arcLength*s,0)})),[r,s]);return e.jsxs("div",{ref:o,className:"flex flex-col items-center justify-center bg-white rounded-xl p-8 w-96 mx-auto relative shadow-[0px_4px_40px_0px_#7090B01F]",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsxs("svg",{width:w.width,height:w.height,viewBox:w.viewBox,className:"relative",children:[e.jsx("path",{d:C,fill:"transparent",stroke:"#E5E7EB",strokeWidth:b,strokeLinecap:"round"}),r.map((t,a)=>{const{currentArc:n,previousArcsLength:o}=y[a];return e.jsx("path",{d:C,fill:"transparent",stroke:t.color,strokeWidth:b,strokeDasharray:`${n} ${x}`,strokeDashoffset:-o,strokeLinecap:"round"},`visual-${a}`)}),r.map((t,a)=>{const{currentArc:n,previousArcsLength:o}=y[a];return e.jsx("path",{d:C,fill:"transparent",stroke:"transparent",strokeWidth:b+4,strokeDasharray:`${n} ${x}`,strokeDashoffset:-o,strokeLinecap:"round",onMouseEnter:e=>d(e,v(t),t.label),onMouseMove:e=>u(e,v(t),t.label),onMouseLeave:m,className:"cursor-pointer",style:{pointerEvents:n>0?"stroke":"none"}},`hit-${a}`)}),e.jsx("text",{x:h+b/2,y:h+10-15,textAnchor:"middle",className:"text-base font-bold fill-[#29064D]",children:i.toLocaleString()}),e.jsx("text",{x:h+b/2,y:h+10+20,textAnchor:"middle",className:"text-sm fill-[#454545]",children:n})]})}),e.jsx("div",{className:"flex flex-wrap gap-4 mt-4 w-full max-w-xs justify-center",children:r.map((t,a)=>e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full shadow-sm",style:{backgroundColor:t.color}}),e.jsx("span",{className:"text-sm font-medium text-[#454545]",children:t.label})]},`legend-${a}`))}),c.show&&e.jsx("div",{className:"absolute z-50 pointer-events-none",style:{left:`${c.x}px`,top:`${c.y}px`,transform:"translateX(-50%)"},children:e.jsxs("div",{className:"px-3 py-2 rounded-lg text-gray-700 text-sm font-medium bg-white shadow-lg text-center min-w-[120px]",children:[c.content,e.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-l-transparent border-r-transparent border-t-white"})]})})]})},exports.Icon=U,exports.IconButton=({icon:t,style:a="primary",state:n="default",size:o="medium",onClick:r,disabled:l,loading:i,className:s="",...c})=>{const d=i?"loading":l?"disabled":n,u=l||i||"disabled"===d,m=[Ce.iconButton,Ce[`style_${a}`],Ce[`state_${d}`],Ce[`size_${o}`],s].filter(Boolean).join(" ");return e.jsx("button",{className:m,onClick:r,disabled:u,"aria-disabled":u,...c,children:t?"string"==typeof t?e.jsx(U,{name:t,className:Ce.icon,size:14}):t:"loading"===d?e.jsx(U,{name:"spinner",className:Ce.loaderIcon,size:16}):e.jsx(U,{name:"star",className:Ce.icon,size:14})})},exports.ItemRow=re,exports.Modal=({isOpen:a,onClose:n,title:o,description:r,icon:l,children:i,actions:s,size:c="medium",showCloseButton:d=!0,className:u="",...m})=>{if(t.useEffect(()=>(document.body.style.overflow=a?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[a]),!a)return null;return e.jsx("div",{className:ye.overlay,onClick:e=>{e.target===e.currentTarget&&n&&n()},children:e.jsxs("div",{className:`${ye.modal} ${ye[c]} ${u}`,role:"dialog","aria-modal":"true",...m,children:[d&&e.jsx("button",{className:ye.closeButton,onClick:n,"aria-label":"Close modal",children:e.jsx(U,{name:"X"})}),e.jsxs("div",{className:ye.content,children:[l&&e.jsx("div",{className:ye.iconWrapper,children:l}),i||e.jsxs("div",{className:ye.textStack,children:[o&&e.jsx("h2",{className:ye.title,children:o}),r&&e.jsx("p",{className:ye.description,children:r})]}),s&&e.jsx("div",{className:ye.actions,children:s})]})]})})},exports.Notification=Pe,exports.Pagination=t=>e.jsx(n.ConfigProvider,{theme:{token:{colorPrimary:"#4432bf",borderRadius:8,fontFamily:"'Host Grotesk', sans-serif",colorText:"#2f353b",colorTextDescription:"#768494",motion:!1},components:{Pagination:{itemActiveBg:"#4432bf",itemActiveColor:"#F3EEF9",itemBg:"transparent",itemInputBg:"#ffffff",itemSize:36,itemSizeSM:32}}},children:e.jsx("div",{className:`${Se.paginationWrapper} ${t.className||""}`,children:e.jsx(n.Pagination,{itemRender:(a,n,o)=>"prev"===n?e.jsxs("div",{className:`${Se.navButtonCustom} ${t.disabled?Se.disabled:""}`,children:[e.jsx("div",{className:Se.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),e.jsx("span",{className:Se.navText,children:"Previous"})]}):"next"===n?e.jsxs("div",{className:`${Se.navButtonCustom} ${t.disabled?Se.disabled:""}`,children:[e.jsx("span",{className:Se.navText,children:"Next"}),e.jsx("div",{className:Se.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):o,...t})})}),exports.PieChart=({data:a,title:n="Policy Effect",titleStyle:o={},containerStyle:r={},chartSize:l=320,showLegend:i=!0,legendStyle:s={}})=>{const c=t.useRef(null),[u,m]=t.useState({visible:!1,x:0,y:0,content:"",label:"",value:"",percentage:""}),h=a||[{label:"Allow",value:35,color:"#4A148C"},{label:"Block",value:30,color:"#7B1FA2"},{label:"Isolate",value:20,color:"#BA68C8"},{label:"Tag",value:15,color:"#E1BEE7"}],p=d.sum(h,e=>e.value);t.useEffect(()=>{if(!c.current)return;const e=d.select(c.current);e.selectAll("*").remove();const t=l,a=l,n=Math.min(t,a)/2-30,o=e.attr("width",t).attr("height",a).append("g").attr("transform",`translate(${t/2}, ${a/2})`),r=d.pie().value(e=>e.value).sort(null).padAngle(0),i=d.arc().innerRadius(0).outerRadius(n),s=d.arc().innerRadius(0).outerRadius(n+8);o.selectAll("arc").data(r(h)).enter().append("g").attr("class","arc").append("path").attr("d",i).attr("fill",e=>e.data.color||"#4A148C").style("cursor","pointer").style("transition","all 0.3s ease").on("mouseover",function(e,t){const a=(t.data.value/p*100).toFixed(1);d.select(this).transition().duration(200).attr("d",s(t)).style("filter","brightness(1.1)"),m({visible:!0,x:e.clientX,y:e.clientY,content:`${t.data.label??""}: ${t.data.value} (${a}%)`,label:t.data.label??"",value:t.data.value.toString(),percentage:a})}).on("mousemove",function(e){m(t=>({...t,x:e.clientX,y:e.clientY}))}).on("mouseout",function(e,t){d.select(this).transition().duration(200).attr("d",i(t)).style("filter","brightness(1)"),m(e=>({...e,visible:!1}))})},[0,h,l]);const g={fontSize:"1.5rem",fontWeight:"600",marginBottom:"1rem",color:"#374151",textAlign:"center",...o},f={display:"flex",flexDirection:"column",alignItems:"center",padding:"1.5rem",backgroundColor:"white",borderRadius:"0.5rem",position:"relative",...r},_={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"0.5rem",...s};return e.jsxs("div",{style:f,children:[e.jsx("h2",{style:g,children:n}),e.jsx("div",{className:"relative",children:e.jsx("svg",{ref:c})}),i&&e.jsx("div",{style:_,children:h.map((t,a)=>((t.value/p*100).toFixed(1),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg",children:[e.jsx("div",{className:"w-[10px] h-[10px] rounded-full",style:{backgroundColor:t.color}}),e.jsx("div",{className:"text-sm",children:e.jsx("div",{className:"font-medium text-[#454545]",children:t.label})})]},a)))}),u.visible&&e.jsxs("div",{className:"fixed z-50 bg-gray-900 text-white px-4 py-3 rounded-lg pointer-events-none border border-gray-700",style:{left:u.x+15,top:u.y-60,minWidth:"150px"},children:[e.jsx("div",{className:"text-sm font-semibold text-blue-300",children:u.label}),e.jsxs("div",{className:"text-base",children:[u.value," items"]}),e.jsxs("div",{className:"text-sm text-gray-300",children:[u.percentage,"% of total"]}),e.jsx("div",{className:"absolute -bottom-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45 border-r border-b border-gray-700"})]})]})},exports.Radio=oe,exports.Sankey=({data:a,width:n=1200,height:o=600,margin:r={top:80,right:50,bottom:50,left:50},backgroundColor:l="linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%)",showTimeFilter:i=!0,timeFilters:s=["1W","1M","3M","1Y","ALL"],activeFilter:c="3M",onFilterChange:u=()=>{},filterButtonColor:m="#6366f1",filterButtonInactive:h="rgba(255, 255, 255, 0.1)",useCustomFlowWidth:p=!1,customFlowWidth:g=10,minFlowWidth:f=4,maxFlowWidth:_=20,flowWidthMultiplier:v=1,showStatistics:b=!1,statistics:x={trendGoods:204,shoppingViews:65540,storeDynamics:325}})=>{const w=t.useRef(null),C=t.useRef(),y=t.useRef();t.useEffect(()=>{if(!w.current)return;const e=d.select(w.current);e.selectAll("*").remove(),e.attr("width",n).attr("height",o).style("background",l),e.append("text").attr("x",n/2).attr("y",40).attr("text-anchor","middle").style("font-size","48px").style("font-weight","bold").style("fill","rgba(255,255,255,0.1)").text("Data visualisation");const t=e.append("g").attr("class","zoom-group"),i=t.append("g").attr("transform",`translate(${r.left}, ${r.top})`);y.current&&y.current.remove();const s=d.select("body").append("div").attr("class","tooltip").style("position","absolute").style("background","rgba(0,0,0,0.7)").style("color","white").style("padding","8px").style("border-radius","4px").style("pointer-events","none").style("opacity",0);y.current=s;const c=d.zoom().scaleExtent([.5,3]).on("zoom",e=>{t.attr("transform",e.transform.toString())});e.call(c),C.current=c;const u=180,m=80,h=120,N="drop-shadow(0 8px 16px rgba(0,0,0,0.3))",j="white",I=(o-r.top-r.bottom)/2,A=(n-r.left-r.right)/2-90,L=n-r.left-r.right-u-80,D=a.nodes.filter(e=>"source"===e.type),B=a.nodes.filter(e=>"middle"===e.type),z=a.nodes.filter(e=>"target"===e.type);D.forEach(e=>{e.x=80,e.y=I-40}),B.forEach((e,t)=>{const a=(B.length-1)*h,n=I-a/2;e.x=A,e.y=n+t*h}),z.forEach((e,t)=>{const a=(z.length-1)*h,n=I-a/2;e.x=L,e.y=n+t*h});const $=d.drag().on("start",e=>{e.sourceEvent.stopPropagation()}).on("drag",function(e,t){t.x=e.x,t.y=e.y,d.select(this).attr("transform",`translate(${t.x}, ${t.y})`),i.selectAll("path.sankey-link").remove(),F()}),T=e.append("defs"),R=Math.max(...a.links.map(e=>e.value)),F=()=>{T.selectAll("linearGradient.link-gradient").remove(),a.links.forEach((e,t)=>{const n=a.nodes.find(t=>t.id===e.source),o=a.nodes.find(t=>t.id===e.target);if(!n||!o)return;const r=`gradient-${t}`,l=T.append("linearGradient").attr("id",r).attr("class","link-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",n.x+u).attr("y1",n.y+40).attr("x2",o.x).attr("y2",o.y+40);l.append("stop").attr("offset","0%").attr("stop-color",n.color).attr("stop-opacity",.8),l.append("stop").attr("offset","100%").attr("stop-color",o.color).attr("stop-opacity",.8);const c=n.x+u,m=n.y+40,h=o.x,b=o.y+40,x=(w=e.value,p?g:(w/R*_+f)*v);var w;i.append("path").attr("class","sankey-link").attr("d",`M${c},${m} C${(c+h)/2},${m} ${(c+h)/2},${b} ${h},${b}`).attr("fill","none").attr("stroke",`url(#${r})`).attr("stroke-width",x).attr("stroke-opacity",.7).style("filter",N).on("mouseover",t=>{s.transition().duration(200).style("opacity",1),s.html(`Flow: ${e.value}<br/>Width: ${x.toFixed(1)}px`).style("left",t.pageX+10+"px").style("top",t.pageY-28+"px"),d.select(t.target).attr("stroke-opacity",1)}).on("mouseout",e=>{s.transition().duration(300).style("opacity",0),d.select(e.target).attr("stroke-opacity",.7)}).on("click",()=>{})})};a.nodes.forEach((e,t)=>{const a=`node-gradient-${t}`,n=T.append("linearGradient").attr("id",a).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","100%");n.append("stop").attr("offset","0%").attr("stop-color",e.color),n.append("stop").attr("offset","100%").attr("stop-color",d.color(e.color)?.darker(.5)?.toString()||e.color);const o=i.append("g").datum(e).attr("transform",`translate(${e.x}, ${e.y})`).style("cursor","pointer").call($).on("click",(e,t)=>{});o.append("rect").attr("width",u).attr("height",m).attr("rx",16).style("fill",`url(#${a})`).style("stroke",d.color(e.color)?.darker(.5)?.toString()||e.color).style("stroke-width",2).style("filter",N).on("mouseover",function(){d.select(this).style("filter","drop-shadow(0 12px 24px rgba(0,0,0,0.5))")}).on("mouseout",function(){d.select(this).style("filter",N)}).on("click",(e,t)=>{}),o.append("text").attr("x",20).attr("y",30).style("fill",j).style("font-size","18px").style("font-weight","600").text(e.name),o.append("text").attr("x",20).attr("y",55).style("fill",j).style("font-size","24px").style("font-weight","bold").text(`$${e.value.toLocaleString()}`)}),F();const W=e.append("g").attr("class","zoom-controls"),E=n-100-20;if([{text:"Zoom In",action:"zoomIn"},{text:"Zoom Out",action:"zoomOut"},{text:"Reset Zoom",action:"resetZoom"}].forEach((e,t)=>{const a=20+44*t;W.append("rect").attr("x",E).attr("y",a).attr("width",100).attr("height",36).attr("rx",6).attr("fill","rgba(255, 255, 255, 0.9)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1).style("cursor","pointer").on("mouseover",function(){d.select(this).attr("fill","rgba(255, 255, 255, 1)")}).on("mouseout",function(){d.select(this).attr("fill","rgba(255, 255, 255, 0.9)")}).on("click",()=>{switch(e.action){case"zoomIn":k();break;case"zoomOut":P();break;case"resetZoom":S()}}),W.append("text").attr("x",E+50).attr("y",a+18+4).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","#1a1a3e").style("pointer-events","none").text(e.text)}),e.selectAll(".stats-panel").remove(),!0===b){const t=e.append("g").attr("class","stats-panel"),a=800,r=120,l=(n-a)/2,i=o-r-20;t.append("rect").attr("x",l).attr("y",i).attr("width",a).attr("height",r).attr("rx",12).attr("fill","rgba(15, 15, 35, 1)").attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",1);const s=[{title:"TREND GOODS",value:x.trendGoods.toLocaleString(),icon:"▶",color:"#6366f1"},{title:"SHOPPING VIEWS",value:x.shoppingViews.toLocaleString(),icon:"👁",color:"#8b5cf6"},{title:"STORE DYNAMICS",value:x.storeDynamics.toLocaleString(),icon:"⏱",color:"#a855f7"}],c=a/3;s.forEach((e,a)=>{const n=l+a*c+c/2;t.append("rect").attr("x",n-25).attr("y",i+15).attr("width",50).attr("height",50).attr("rx",8).attr("fill","rgba(255, 255, 255, 0.1)").attr("stroke","rgba(255, 255, 255, 0.2)").attr("stroke-width",1),t.append("text").attr("x",n).attr("y",i+45).attr("text-anchor","middle").style("font-size","24px").style("fill",e.color).text(e.icon),t.append("text").attr("x",n).attr("y",i+85).attr("text-anchor","middle").style("font-size","12px").style("font-weight","600").style("fill","rgba(255, 255, 255, 0.7)").style("letter-spacing","1px").text(e.title),t.append("text").attr("x",n).attr("y",i+105).attr("text-anchor","middle").style("font-size","28px").style("font-weight","bold").style("fill","white").text(e.value)})}return()=>{y.current&&y.current.remove()}},[a,n,o,r,l,p,g,f,_,v,b,x]);const k=()=>{w.current&&C.current&&d.select(w.current).transition().duration(300).call(C.current.scaleBy,1.2)},P=()=>{w.current&&C.current&&d.select(w.current).transition().duration(300).call(C.current.scaleBy,.8)},S=()=>{w.current&&C.current&&d.select(w.current).transition().duration(500).call(C.current.transform,d.zoomIdentity)};return e.jsxs("div",{className:"relative w-full h-screen bg-gray-900 flex flex-col items-center justify-center space-y-4",children:[i&&e.jsx("div",{className:"absolute top-6 right-6 flex space-x-2 z-10",children:s.map(t=>e.jsx("button",{onClick:()=>u(t),className:"px-4 py-1.5 rounded-full text-white text-sm font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:c===t?m:h},children:t},t))}),e.jsx("svg",{ref:w,className:"max-w-full max-h-full"})]})},exports.Search=({value:a="",error:n="",hasError:o=!1,state:r="default",placeholder:l="Search",onChange:i,onFocus:s,onBlur:c,disabled:d,className:u="",title:m="",...h})=>{const[p,g]=t.useState(!1),[f,_]=t.useState(!1),v=(()=>{if(d)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(r);return e||(o?"error":f?a?"typing":"focused":p?a?"filledHover":"hover":a?"filled":"default")})(),b=[Ne.container,u].filter(Boolean).join(" "),x=[Ne.input,Ne[`input_state_${v}`]].filter(Boolean).join(" "),w=[Ne.inputInner,Ne[`inputInner_state_${v}`]].filter(Boolean).join(" "),C=d||"disabled"===v;return e.jsxs("div",{className:b,title:m,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[e.jsx("div",{className:x,children:e.jsxs("div",{className:w,children:[e.jsx("div",{className:Ne.searchIcon,children:e.jsx(U,{name:"magnifying-glass",className:Ne.searchIconImage,size:16})}),e.jsx("input",{type:"search",className:Ne.realInput,value:a,placeholder:l,onChange:i,onFocus:e=>{_(!0),s?.(e)},onBlur:e=>{_(!1),c?.(e)},disabled:C,...h}),("focused"===v||"typing"===v)&&!a&&e.jsx("span",{className:Ne.cursor,children:"|"})]})}),o&&n&&e.jsx("p",{className:Ne.error,children:n})]})},exports.ShankeyPro=({flows:a,curvature:n=.5,windowSize:o={width:0,height:0},breakpoints:r={mobile:768,tablet:1024},layoutOverrides:l={},totalDetectionsIcon:i={}})=>{const s=t.useRef(null);return t.useEffect(()=>{if("undefined"==typeof window||!a||!Array.isArray(a)||0===a.length||!s.current)return;const e=d.select(s.current);e.selectAll("*").remove();const t=(e,t={})=>({dimensions:{...e.dimensions,...t.dimensions},nodePlacement:{...e.nodePlacement,...t.nodePlacement},specialFlows:t.specialFlows||e.specialFlows,cardConfig:{...e.cardConfig,...t.cardConfig}}),o="undefined"!=typeof window?window.innerWidth:1200,c=e=>{let t;switch(e){case"mobile":t=$;break;case"tablet":t=z;break;default:t=B}return{dimensions:{width:(()=>{switch(e){case"mobile":return Math.min(o-40,t.width);case"tablet":return Math.min(o-60,t.width);default:return t.width}})(),height:t.height,viewBox:t.viewBox,scale:t.scale,fontSize:t.fontSize,cardWidth:t.cardWidth,cardHeight:t.cardHeight},nodePlacement:{main:t.main,source:t.source},specialFlows:t.specialFlows,cardConfig:{cardX:t.cards.cardX,cardY1:t.cards.cardY1,cardY2:t.cards.cardY2,padding:t.cards.padding,gap:t.cards.gap,fontSize:t.cards.fontSize}}},{dimensions:u,nodePlacement:m,specialFlows:h,cardConfig:p}=(()=>{if("undefined"==typeof window){const e=c("desktop");return t(e,l.desktop)}const e=window.innerWidth,{mobile:a=768,tablet:n=1024}=r;let o,i={};e<=a?(o="mobile",i=l.mobile||{}):e<=n?(o="tablet",i=l.tablet||{}):(o="desktop",i=l.desktop||{});const s=c(o);return t(s,i)})(),{width:g,height:f,viewBox:_,scale:v,fontSize:b,cardWidth:x,cardHeight:w}=u,C=B.nodeWidth*v;e.attr("width",g).attr("height",f).attr("viewBox",_);const k=e.append("defs");k.append("filter").attr("id","cardShadow").attr("x","-50%").attr("y","-50%").attr("width","200%").attr("height","200%").append("feDropShadow").attr("dx",0).attr("dy",4).attr("stdDeviation",20).attr("flood-color",L).attr("flood-opacity",T.shadowOpacity);let P=d.select("body").select(".sankey-tooltip");P.empty()&&(P=d.select("body").append("div").attr("class","sankey-tooltip absolute bg-black bg-opacity-80 text-white px-3 py-2 rounded-md text-xs pointer-events-none z-50 shadow-lg border border-white border-opacity-20").style("opacity",0));const R=a.filter(e=>"main"===e.type).map((e,t)=>{const a=h[e.id];if(a)return{...e,source:{x:m.main.source.x,y:m.main.source.y,width:m.main.source.width},target:a.target};{const a=m.main;return{...e,source:{x:a.source.x,y:a.source.y,width:a.source.width},target:{x:a.target.x,y:a.target.y+t*a.target.spacing,width:a.target.width}}}}),F=a.filter(e=>"source"===e.type).map((e,t)=>{const a=m.source,n=(()=>{if("undefined"==typeof window)return[185,216,280,248,310,340,370,400,216,430,280,460];const e=window.innerWidth;return e<=768?[92,107,122,137,152,167,182,197,107,212,122,227]:e<=1024?[129,151,173,195,217,239,261,283,151,305,173,327]:[185,216,280,248,310,340,370,400,216,430,280,460]})(),o=D(e.sourceValue||0,a.source.width),r=D(e.sourceValue||0,a.target.width);return{...e,source:{x:a.source.x,y:a.source.y+t*a.source.spacing,width:o},target:{x:a.target.x,y:n[t]||a.target.y+t*a.target.spacing,width:r}}});R.forEach(e=>{const t=k.append("linearGradient").attr("id",`gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.gradientColors?.start||e.color;const a=e.gradientColors?.end||e.color||"#b6abff";t.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),t.append("stop").attr("offset","40%").attr("stop-color",y).attr("stop-opacity",1.8),t.append("stop").attr("offset","45%").attr("stop-color",y).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",a).attr("stop-opacity",1)}),F.forEach(e=>{const t=k.append("linearGradient").attr("id",`source-gradient-${e.id}`).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),t.append("stop").attr("offset","80%").attr("stop-color",y).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color","#BEE4FF").attr("stop-opacity",1)});const W=e=>{if(!e||!e.source||!e.target)return"";const{source:t,target:a}=e,o=n,r=a.x-t.x,l=t.x+r*o,i=a.x-r*o;return`\n M ${t.x} ${t.y-t.width/2}\n C ${l} ${t.y-t.width/2}, \n ${i} ${a.y-a.width/2}, \n ${a.x} ${a.y-a.width/2}\n `+`\n L ${a.x} ${a.y+a.width/2}\n C ${i} ${a.y+a.width/2}, \n ${l} ${t.y+t.width/2}, \n ${t.x} ${t.y+t.width/2}\n Z\n `};R.slice().reverse().forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",W(t)).attr("fill",`url(#gradient-${t.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width",T.strokeWidth).style("opacity","0.6").style("transition",`opacity ${T.transitionDuration}ms, stroke ${T.transitionDuration}ms`).style("cursor","pointer").attr("data-flow-id",t.id).style("opacity",T.defaultOpacity).on("mouseover",function(a,n){const o=R.find(e=>e.id===t.id);o&&(P.transition().duration(200).style("opacity",1),P.html(`\n <strong>Flow ${t.id}</strong><br/>\n Source: (${o.source.x}, ${o.source.y})<br/>\n Source Width: ${o.source.width}px<br/>\n Target: (${o.target.x}, ${o.target.y})<br/>\n Target Width: ${o.target.width}px<br/>\n Color: ${o.color}\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),e.selectAll("path[data-flow-id]").style("opacity",.3),d.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){P.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){P.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),d.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),F.forEach(t=>{t&&t.source&&t.target&&e.append("path").attr("d",W(t)).attr("fill",`url(#source-gradient-${t.id})`).attr("stroke","rgba(255, 255, 255, 0.1)").attr("stroke-width","0.5").style("opacity","0.6").style("transition","opacity 0.3s, stroke 0.3s").style("cursor","pointer").attr("data-flow-id",t.id).style("opacity",.6).style("mix-blend-mode","multiply").on("mouseover",function(a,n){const o=F.find(e=>e.id===t.id);o&&(P.transition().duration(200).style("opacity",1),P.html(`\n <strong>${o.sourceLabel}</strong><br/>\n Value: ${o.sourceValue}<br/>\n Source: (${o.source.x}, ${o.source.y})<br/>\n Source Width: ${o.source.width}px<br/>\n Target: (${o.target.x}, ${o.target.y})<br/>\n Target Width: ${o.target.width}px\n `).style("left",a.pageX+10+"px").style("top",a.pageY-10+"px"),e.selectAll("path[data-flow-id]").style("opacity",.3),d.select(this).style("opacity",1).style("stroke","rgba(139, 95, 191, 1.0)").style("stroke-width","2px").raise())}).on("mousemove",function(e){P.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){P.transition().duration(500).style("opacity",0),e.selectAll("path[data-flow-id]").style("opacity",.8),d.select(this).style("stroke","rgba(255, 255, 255, 0.1)").style("stroke-width","0.5")})}),R.slice().reverse().forEach((t,a)=>{t&&t.source&&t.target&&e.append("rect").attr("x",t.target.x-C/2).attr("y",t.target.y-t.target.width/2).attr("width",C).attr("height",t.target.width).style("fill",S).style("rx","3").style("ry","3")}),F.forEach((t,a)=>{if(!t||!t.source||!t.target)return;const n=(()=>{if("undefined"==typeof window)return 65;const e=window.innerWidth;return e<=768?25:e<=1024?45:65})();e.append("text").attr("x",n).attr("y",t.source.y-10).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","12px").style("fill",j).style("font-weight","500").style("font-size",`${b}px`).text(t.sourceLabel||""),e.append("text").attr("x",n).attr("y",t.source.y+8).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","11px").style("fill","black").style("font-weight","600").style("font-size",b-2+"px").text(void 0!==t.sourceValue?t.sourceValue:""),e.append("rect").attr("x",t.target.x-C/2).attr("y",t.target.y-t.target.width/2).attr("width",C-3).attr("height",t.target.width).style("fill",S).style("rx","3").style("ry","3")});const{cardX:E,cardY1:M,cardY2:U,padding:H,gap:q,fontSize:V}=p;e.append("rect").attr("x",E).attr("y",M).attr("width",x).attr("height",w).attr("rx",12*v).attr("ry",12*v).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),e.append("text").attr("x",E+H.left).attr("y",M+H.top+8).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").style("font-size",`${V.title}px`).style("font-weight","500").text("Total Detections");const O=(()=>{const e=i.alignment||"left",t=i.position?.y||M+H.top+8;if(void 0!==i.position?.x)return{x:i.position.x,y:t};switch(e){case"left":const e=((e,t)=>e.length*t*.55)("Total Detections",V.title);return{x:E+H.left+e+15,y:t};case"center":return{x:E+x/2,y:t};default:return{x:E+x-H.right-16,y:t}}})(),G={icon:i.icon||"↗",color:i.color||"#8B5FBF",size:i.size||14,x:O.x,y:O.y,alignment:i.alignment||"right"},Y=e.append("text").attr("x",G.x).attr("y",G.y).attr("text-anchor",(e=>{switch(e){case"left":return"start";case"center":return"middle";default:return"end"}})(G.alignment)).attr("dominant-baseline","middle").style("font-size",`${G.size}px`).style("fill",G.color).style("font-weight","600").style("cursor",i.onClick?"pointer":"default").text(G.icon);i.onClick&&Y.on("click",i.onClick).on("mouseover",function(){d.select(this).style("opacity",.7)}).on("mouseout",function(){d.select(this).style("opacity",1)}),e.append("text").attr("x",E+H.left).attr("y",M+H.top+8+q+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").style("font-size","24px").style("font-weight","700").style("fill",N).text("9100"),e.append("text").attr("x",E+H.left+70).attr("y",M+H.top+8+q+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","12px").style("fill",A).style("font-weight","500").style("font-size","14px").style("font-weight","500").style("fill",A).text("▲ +10%"),e.append("text").attr("x",E+H.left).attr("y",M+H.top+8+q+16+q+12).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","11px").style("fill",I).style("font-weight","400").style("font-size","14px").style("font-weight","400").style("fill",I).text("In last 7 days"),e.append("rect").attr("x",E).attr("y",U).attr("width",259).attr("height",307).attr("rx",12).attr("ry",12).attr("fill","white").attr("filter","url(#cardShadow)").style("fill","white").style("rx","8").style("ry","8").style("filter","drop-shadow(0px 4px 40px rgba(112, 144, 176, 0.12))"),e.append("text").attr("x",E+H.left).attr("y",U+H.top+16).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("Mitigated Threats"),e.append("text").attr("x",E+259-H.right).attr("y",U+H.top+16).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("9000");[{label:"Critical",value:60,color:"#4C1D95"},{label:"High",value:300,color:"#7C3AED"},{label:"Medium",value:860,color:"#A78BFA"},{label:"Low",value:100,color:"#DDD6FE"}].forEach((t,a)=>{const n=U+H.top+16+q+20+28*a;e.append("text").attr("x",E+H.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.label),e.append("text").attr("x",E+259-H.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.value)});const X=U+H.top+16+q+20+112+q+20;e.append("text").attr("x",E+H.left).attr("y",X).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("Unmitigated Threats"),e.append("text").attr("x",E+259-H.right).attr("y",X).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","16px").style("fill",N).style("font-weight","500").text("100");return[{label:"Informational",value:100,color:"#F3F4F6"}].forEach((t,a)=>{const n=X+q+16+28*a;e.append("text").attr("x",E+H.left).attr("y",n).attr("text-anchor","start").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.label),e.append("text").attr("x",E+259-H.right).attr("y",n).attr("text-anchor","end").attr("dominant-baseline","middle").style("font-size","14px").style("fill",j).style("font-weight","500").text(t.value)}),()=>{"undefined"!=typeof window&&d.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,s]),e.jsx("div",{className:"flex justify-center w-full",children:e.jsx("svg",{id:"sankey-chart",ref:s,className:"block mx-auto",style:{display:"block",margin:"0 auto"}})})},exports.ShankyFlow=({flows:a=[],hoverColor:n="#FF6B6B",title:o="Clipboard Copy Source to Paste Diagram",subtitle:r="Explore the user's Sensitive Data Copy Paste behavior, detection history, and risk exposure.",showHeaders:l=!0,showTitle:i=!0,showSubtitle:s=!0,showDebug:c=!1,sourceHeader:u="Copying Sources",targetHeader:p="Pasting Targets",labelColor:g="#374151",valueColor:f="#111827",headerColor:_="#454545",titleColor:v="#111827",subtitleColor:b="#6B7280",headerUnderlineColor:x="#D4C4FF",flowOpacity:w=.7,hoverOpacity:C=.9,curvature:y=.4,valueFormatter:k,labelFormatter:P,tooltipRenderer:S,gradientStops:N,responsive:j=!0,width:I,height:A,margin:L,nodeHeight:D,flowScaleFactor:B,fontSize:z,responsiveConfig:$=m,breakpoints:T=h})=>{const R=t.useRef(null),F=t.useRef(null),[W,E]=t.useState({width:0,height:0}),[M,U]=t.useState($.desktop),[H,q]=t.useState(!1),V=t.useCallback(()=>{if("undefined"==typeof window)return $.desktop;const e=window.innerWidth;return e<T.mobile?$.mobile:e<T.tablet?$.tablet:(T.desktop,$.desktop)},[$,T]);return t.useEffect(()=>{const e=()=>{const e=V(),t={...e,margin:L??e.margin,nodeHeight:D??e.nodeHeight,flowScaleFactor:B??e.flowScaleFactor,fontSize:z??e.fontSize,width:I??e.width,height:A??e.height};U(t);const a=window.innerWidth-128;let n=t.width;j&&(n=e===$.desktop?a>=t.width?t.width:Math.max(a,600):Math.max(a,t.width)),E({width:n,height:t.height}),H||q(!0)},t=setTimeout(e,100);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[V,H,j,I,A,L,D,B,z,$]),t.useEffect(()=>{if(!(a.length&&W.width&&W.height&&H))return;const e=d.select(R.current);e.selectAll("*").remove();const{width:t,height:c}=W,{margin:m,fontSize:h,nodeHeight:j,flowScaleFactor:I}=M,A=new Map,L=new Map,D=new Map,B=new Map;a.forEach(e=>{D.has(e.source)||D.set(e.source,[]),D.get(e.source).push(e),B.has(e.target)||B.set(e.target,[]),B.get(e.target).push(e),A.set(e.source,e.sourceValue),L.set(e.target,e.targetValue)});const z=Array.from(A.entries()),$=Array.from(L.entries()),T=c-m.top-m.bottom,F=T/(z.length+1),E=T/($.length+1),U=z.map(([e,t],a)=>({name:e,value:t,y:m.top+F*(a+1),height:j})),q=$.map(([e,t],a)=>({name:e,value:t,y:m.top+E*(a+1),height:j})),V=m.left,O=t-m.right;e.attr("width",t).attr("height",c);const G=e.append("defs");a.forEach((e,t)=>{const a=G.append("linearGradient").attr("id",`gradient-${t}`).attr("gradientUnits","userSpaceOnUse").attr("x1",V+80).attr("x2",O-80);(N&&N.length>0?N:[{offset:"0%",color:"#8B5CF6",opacity:.8},{offset:"50%",color:"#3B82F6",opacity:.7},{offset:"100%",color:"#06B6D4",opacity:.8}]).forEach(e=>{a.append("stop").attr("offset","number"==typeof e.offset?`${e.offset}%`:e.offset).attr("stop-color",e.color).attr("stop-opacity",e.opacity??.8)})});let Y=d.select("body").select(".sankey-tooltip");Y.empty()&&(Y=d.select("body").append("div").attr("class","sankey-tooltip").style("position","absolute").style("background","rgba(0, 0, 0, 0.9)").style("color","white").style("padding","12px 16px").style("border-radius","8px").style("font-size","13px").style("font-family","system-ui, sans-serif").style("pointer-events","none").style("opacity",0).style("z-index",1e3).style("box-shadow","0 4px 12px rgba(0,0,0,0.3)").style("max-width","250px"));const X=new Map;U.forEach(e=>{const t=D.get(e.name)||[];let a=e.y-e.height/2;X.set(e.name,new Map),t.forEach(t=>{const n=q.find(e=>e.name===t.target);if(!n)return;const o=n.value,r=j,l=t.thickness/o*r*I;X.get(e.name).set(t.target,{startY:a,endY:a+l,centerY:a+l/2}),a+=l})});const K=new Map;if(q.forEach(e=>{const t=B.get(e.name)||[];let a=e.y-e.height/2;K.set(e.name,new Map),t.forEach(t=>{const n=j,o=t.thickness/e.value*n*I;K.get(e.name).set(t.source,{startY:a,endY:a+o,centerY:a+o/2}),a+=o})}),a.forEach((t,a)=>{const o=U.find(e=>e.name===t.source),r=q.find(e=>e.name===t.target);if(o&&r){const o=X.get(t.source).get(t.target),r=K.get(t.target).get(t.source),l=o.startY,i=o.endY,s=r.startY,c=r.endY,u=y,m=d.interpolateNumber(V,O),h=m(u),p=m(1-u),g=`M${V},${l}\n C${h},${l} ${p},${s} ${O},${s}\n L${O},${c}\n C${p},${c} ${h},${i} ${V},${i}\n Z`;e.append("path").attr("d",g).attr("fill",`url(#gradient-${a})`).attr("opacity",w).style("cursor","pointer").on("mouseover",function(e){d.select(this).attr("fill",n).attr("opacity",C),"function"==typeof S?Y.style("opacity",1).html(S(t)):Y.style("opacity",1).html(`\n <div style="font-weight: 600; margin-bottom: 8px;">Flow Details</div>\n <div><strong>From:</strong> ${t.source}</div>\n <div><strong>To:</strong> ${t.target}</div>\n <div><strong>Value:</strong> ${t.thickness}</div>\n <div><strong>Source Total:</strong> ${t.sourceValue}</div>\n <div><strong>Target Total:</strong> ${t.targetValue}</div>\n `)}).on("mousemove",function(e){Y.style("left",e.pageX+10+"px").style("top",e.pageY-10+"px")}).on("mouseout",function(){d.select(this).attr("fill",`url(#gradient-${a})`).attr("opacity",w),Y.style("opacity",0)})}}),l){const t=e.append("text").attr("x",V-15).attr("y",m.top-10).attr("text-anchor","end").attr("fill",_).attr("font-size",`${h.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(u).node();if(t){const a=t.getBBox();e.append("line").attr("x1",a.x).attr("y1",m.top).attr("x2",a.x+a.width).attr("y2",m.top).attr("stroke",x).attr("stroke-width","1").attr("opacity","1")}const a=e.append("text").attr("x",O+15).attr("y",m.top-10).attr("text-anchor","start").attr("fill",_).attr("font-size",`${h.label}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(p).node();if(a){const t=a.getBBox();e.append("line").attr("x1",t.x).attr("y1",m.top).attr("x2",t.x+t.width).attr("y2",m.top).attr("stroke",x).attr("stroke-width","1").attr("opacity","1")}}return U.forEach(t=>{e.append("text").attr("x",V-15).attr("y",t.y-8).attr("text-anchor","end").attr("fill",g).attr("font-size",`${h.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(P?P(t.name):t.name),e.append("text").attr("x",V-15).attr("y",t.y+12).attr("text-anchor","end").attr("fill",f).attr("font-size",`${h.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),q.forEach(t=>{e.append("text").attr("x",O+15).attr("y",t.y-8).attr("text-anchor","start").attr("fill",g).attr("font-size",`${h.label}px`).attr("font-weight","500").attr("font-family","system-ui, sans-serif").text(P?P(t.name):t.name),e.append("text").attr("x",O+15).attr("y",t.y+12).attr("text-anchor","start").attr("fill",f).attr("font-size",`${h.value}px`).attr("font-weight","700").attr("font-family","system-ui, sans-serif").text(k?k(t.value):t.value)}),i&&e.append("text").attr("x",40).attr("y",35).attr("text-anchor","start").attr("fill",v).attr("font-size",`${h.title}px`).attr("font-weight","600").attr("font-family","system-ui, sans-serif").text(o),s&&e.append("text").attr("x",40).attr("y",60).attr("text-anchor","start").attr("fill",b).attr("font-size",`${h.subtitle}px`).attr("font-weight","400").attr("font-family","system-ui, sans-serif").text(r),()=>{d.select("body").selectAll(".sankey-tooltip").remove()}},[a,n,o,r,W,M,N,g,f,_,v,b,x,w,C,y,k,P,S,l,i,s,c]),e.jsx("div",{className:"w-full max-w-7xl mx-auto p-4 md:p-6",children:e.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-4 md:p-8",children:[c&&e.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["Screen: ","undefined"!=typeof window?window.innerWidth:"SSR","px | Config: ",M===$.desktop?"Desktop":M===$.tablet?"Tablet":"Mobile"," | Chart: ",W.width,"x",W.height," | Available: ","undefined"!=typeof window?window.innerWidth-128:"SSR","px | Initialized: ",H?"Yes":"No",e.jsx("button",{onClick:()=>{const e=V();U(e);const t=window.innerWidth-128;let a=e.width;a=e===$.desktop?t>=e.width?e.width:Math.max(t,600):Math.max(t,e.width),E({width:a,height:e.height})},className:"ml-4 px-2 py-1 bg-blue-500 text-white text-xs rounded",children:"Refresh"})]}),e.jsx("div",{ref:F,className:"w-full overflow-x-auto",children:e.jsx("div",{className:"flex justify-center min-w-max",children:e.jsx("svg",{ref:R,style:{width:W.width||M.width,height:W.height||M.height,minWidth:M.width,minHeight:M.height}})})})]})})},exports.StatusIndicator=({label:t="Status",state:a="default",size:n="medium",color:o="green",onClick:r,className:l="",...i})=>{const s=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(a),c=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(o),d=n.toLowerCase(),u=[je.statusIndicator,je[`size_${d}`],je[`state_${s}`],je[`color_${c}`],l].filter(Boolean).join(" "),m=r?"button":"div";return e.jsxs(m,{className:u,onClick:r,disabled:"disabled"===s,type:r?"button":void 0,...i,children:[(()=>{const t=(()=>{switch(c){case"red":return"var(--color-red-500)";case"yellow":return"var(--color-yellow-500)";case"blue":return"var(--color-violet-500)";default:return"var(--color-green-500)"}})();return e.jsx("div",{className:je.indicator,style:{backgroundColor:t}})})(),e.jsx("span",{className:je.label,children:t})]})},exports.Tab=Ae,exports.TabList=({items:t,activeKey:a,onChange:n,className:o=""})=>{const r=[Le.tabList,o].filter(Boolean).join(" ");return e.jsx("div",{className:r,role:"tablist",children:t.map(t=>e.jsx(Ae,{label:t.label,count:t.count,disabled:t.disabled,isActive:a===t.key,onClick:()=>!t.disabled&&n?.(t.key)},t.key))})},exports.Table=function({columns:a=[],data:l=[],rowKey:i="id",onRowReorder:s,onRowSelect:d,onSort:u,className:m="",...h}){const[p,g]=t.useState([]),[f,_]=t.useState({}),[v,b]=t.useState(l),[x,w]=t.useState({});c.default.useEffect(()=>{b(l)},[l]),c.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${De.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-thead > tr > th").forEach(e=>{const t=window.getComputedStyle(e,"::before");if("none"!==t.content&&""!==t.content){const e="remove-table-separator";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`\n .${De.tableContainer} .ant-table-thead > tr > th::before {\n display: none !important;\n content: none !important;\n width: 0 !important;\n height: 0 !important;\n background: none !important;\n opacity: 0 !important;\n visibility: hidden !important;\n }\n `,document.head.appendChild(t))}})};e();const t=[setTimeout(e,50),setTimeout(e,100),setTimeout(e,200)],a=new MutationObserver(e),n=document.querySelector(`.${De.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{t.forEach(clearTimeout),a.disconnect();const e=document.getElementById("remove-table-separator");e&&e.remove()}},[v,a]),c.default.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${De.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-column-sorter, .ant-table-column-sorter-full, .ant-table-column-sorter-inner").forEach(e=>{const t=e;t.closest(`.${De.sortIconLeft}`)||(t.style.display="none",t.style.visibility="hidden",t.style.opacity="0",t.style.width="0",t.style.height="0",t.style.margin="0",t.style.padding="0")})};e();const t=setTimeout(e,100),a=new MutationObserver(e),n=document.querySelector(`.${De.tableContainer}`);return n&&a.observe(n,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),a.disconnect()}},[v,a,f]);const C=o.useSensors(o.useSensor(o.PointerSensor),o.useSensor(o.KeyboardSensor,{coordinateGetter:r.sortableKeyboardCoordinates})),y=e=>{g(e),d&&d(e)},k=t.useCallback((e,t)=>{w(a=>({...a,[e]:t}))},[]),P=t.useCallback(e=>{},[]),S=t.useCallback(e=>{},[]),N=t.useMemo(()=>{const t={title:"",key:"drag-handle",width:40,fixed:"left",className:De.dragHandleHeader,render:()=>e.jsx($e,{})},n=a.map(t=>{const a=x[t.key]||t.width||void 0,n=t.sortable&&f.columnKey===t.key&&f.order||null,o=t.sortable?e.jsx("span",{className:De.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!t.sortable)return;let a;if(a=f.columnKey===t.key?"ascend"===f.order?"descend":"descend"===f.order?null:"ascend":"ascend",a){if(_({order:a,columnKey:t.key}),u){const e="ascend"===a?"asc":"desc";u(t.key,e)}}else _({}),u&&u(null,null)},title:"Click to sort",children:(r=n,"ascend"===r?e.jsx(U,{name:"sort-ascending",size:14}):"descend"===r?e.jsx(U,{name:"sort-descending",size:14}):e.jsx(U,{name:"caret-up-down",size:14}))}):null;var r;return{title:e.jsxs("div",{className:De.columnHeaderContent,children:[o,e.jsx("span",{className:De.columnHeaderLabel,children:t.label}),e.jsx(Te,{columnKey:t.key,onResizeStart:P,onResize:k,onResizeEnd:S})]}),dataIndex:t.key,key:t.key,width:a,sorter:!1,render:t.render||(e=>e),className:De.tableCell,showSorterTooltip:!1}}),o=v.length,r=p.length,l=o>0&&r===o,s=!(0===r)&&!l;return[t,{title:e.jsx("div",{className:De.checkboxHeader,children:e.jsx(ae,{checked:l,indeterminate:s,onChange:e=>{if(s)y([]);else{const t=e.target.checked;y(t?v.map(e=>e[i]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${De.tableCell} ${De.checkboxColumn}`,render:(t,a)=>{const n=p.includes(a[i]);return e.jsx("div",{className:De.checkboxCell,children:e.jsx(ae,{checked:n,onChange:e=>{const t=e.target.checked?[...p,a[i]]:p.filter(e=>e!==a[i]);y(t)},size:"small"})})}},...n]},[a,f,x,p,v,i,u,P,k,S]),j=[De.tableContainer,m].filter(Boolean).join(" "),I=t.useMemo(()=>v.map(e=>e[i]),[v,i]),A={body:{row:t=>{let a=t["data-row-key"];if(!a&&t.children){const e=c.default.Children.toArray(t.children);for(const t of e){const e=t;if(e?.props?.record?.[i]){a=e.props.record[i];break}}}if(!a&&void 0!==t["data-row-index"]){const e=t["data-row-index"];v[e]&&v[e][i]&&(a=v[e][i])}return a?e.jsx(ze,{id:a,rowKey:i,row:t,children:t.children}):e.jsx("tr",{...t,children:t.children})}}};return e.jsx("div",{className:j,...h,children:e.jsx(o.DndContext,{sensors:C,collisionDetection:o.closestCenter,onDragEnd:e=>{const{active:t,over:a}=e;a&&t.id!==a.id&&b(e=>{const n=e.findIndex(e=>e[i]===t.id),o=e.findIndex(e=>e[i]===a.id),l=r.arrayMove(e,n,o);return s&&s(l),l})},children:e.jsx(r.SortableContext,{items:I,strategy:r.verticalListSortingStrategy,children:e.jsx(n.Table,{className:De.antTable,columns:N,dataSource:v,rowKey:i,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:A})})})})},exports.TextArea=({value:a,defaultValue:n,body:o,title:r="",description:l="",label:i="",error:s="",hasLabel:c=!0,hasDescription:d=!0,hasError:u=!1,showIcon:m=!1,chooseIcon:h=null,showTitle:p=!1,showDragIcon:g=!0,state:f="default",placeholder:_="Body",onChange:v,onFocus:b,onBlur:x,disabled:w,className:C="",rows:y=4,...k})=>{const[P,S]=t.useState(!1);let N=w?"disabled":(e=>{if(!e)return"default";const t=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===t||"filled"===t?"filled":"filledinhover"===t||"filledhover"===t||"filled-hover"===t?"filledHover":"focused"===t?"focused":"typing"===t?"typing":"hover"===t?"hover":"error"===t?"error":"disabled"===t?"disabled":t})(f);"default"===N&&P&&(N="focused");const j=[Re.container,C].filter(Boolean).join(" "),I=[Re.textareaWrapper,Re[`textareaWrapper_state_${N}`],u?Re.textareaWrapper_state_error:""].filter(Boolean).join(" "),A=w||"disabled"===N,L=void 0!==a?a:o;return e.jsxs("div",{className:j,children:[c&&i&&e.jsx("label",{className:Re.label,children:i}),d&&l&&e.jsx("p",{className:Re.description,children:l}),e.jsx("div",{className:I,children:e.jsxs("div",{className:Re.textareaInner,children:[e.jsxs("div",{className:Re.textContent,children:[p&&r&&e.jsx("p",{className:Re.title,children:r}),e.jsx("textarea",{className:Re.nativeTextarea,value:L,defaultValue:n,placeholder:_,onChange:v,onFocus:e=>{S(!0),b&&b(e)},onBlur:e=>{S(!1),x&&x(e)},disabled:A,rows:y,...k})]}),m?h||e.jsx("div",{className:Re.iconWrapper,children:e.jsx("img",{src:"/icons/Icon.svg",alt:"Icon",className:Re.icon})}):null,g?e.jsx("div",{className:Re.dragIcon,children:e.jsx("img",{src:"/icons/Vector.svg",alt:"Drag",className:Re.dragIconImage})}):null]})}),(u||"error"===N)&&s&&e.jsx("p",{className:Re.error,children:s})]})},exports.Toggle=se,exports.addAnimationClass=function(e,t){e&&e.classList.add(Me[t])},exports.allIcons=M,exports.animateElement=function(e,t,a){return e?e.animate(t,a):null},exports.animationClasses=Me,exports.capitalizeFirst=Ue,exports.capitalizeWords=function(e){return e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())},exports.colorPalettes={default:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#feca57","#ff9ff3"],vibrant:["#ff4757","#2ed573","#3742fa","#ffa502","#ff6348","#5352ed"],pastel:["#ffb3ba","#baffc9","#bae1ff","#ffffba","#ffb3d9","#d4b3ff"],monochrome:["#f8f9fa","#e9ecef","#dee2e6","#ced4da","#adb5bd","#6c757d"],warm:["#ff6b6b","#ff8e53","#ffa726","#ffcc02","#ffeb3b","#fff176"],cool:["#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a"]},exports.commonRules=Ve,exports.createAnimation=Ee,exports.createTheme=function(e){return{...Fe.light,...e}},exports.createTransition=function(e,t,a=300,n="ease-in-out"){e&&(e.style.transition=t.map(e=>`${e} ${a}ms ${n}`).join(", "))},exports.defaultAnimations=We,exports.defaultThemes=Fe,exports.formatCompactNumber=function(e){if(0===e)return"0";const t=Math.abs(e),a=e<0?"-":"";return t>=1e12?`${a}${(t/1e12).toFixed(1)}T`:t>=1e9?`${a}${(t/1e9).toFixed(1)}B`:t>=1e6?`${a}${(t/1e6).toFixed(1)}M`:t>=1e3?`${a}${(t/1e3).toFixed(1)}K`:e.toString()},exports.formatCreditCard=function(e){return(e.replace(/\D/g,"").match(/.{1,4}/g)||[]).join(" ").trim()},exports.formatCurrency=function(e,t="USD",a=2){return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:a,maximumFractionDigits:a}).format(e)},exports.formatDate=function(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",...t};return new Intl.DateTimeFormat("en-US",n).format(a)},exports.formatDateTime=function(e,t={}){const a=new Date(e),n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...t};return new Intl.DateTimeFormat("en-US",n).format(a)},exports.formatDuration=function(e){const t=Math.floor(e/3600),a=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${a}:${n.toString().padStart(2,"0")}`},exports.formatFieldLabel=function(e){return e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()},exports.formatFileSize=function(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][t]}`},exports.formatNumber=function(e,t={}){const{minimumFractionDigits:a=0,maximumFractionDigits:n=2,useGrouping:o=!0,currency:r="USD",style:l="decimal"}=t;return new Intl.NumberFormat("en-US",{style:l,currency:r,minimumFractionDigits:a,maximumFractionDigits:n,useGrouping:o}).format(e)},exports.formatPercentage=function(e,t=1){return`${(100*e).toFixed(t)}%`},exports.formatPhoneNumber=function(e){const t=e.replace(/\D/g,"");return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:11===t.length&&"1"===t[0]?`+1 (${t.slice(1,4)}) ${t.slice(4,7)}-${t.slice(7)}`:e},exports.formatRelativeTime=function(e,t=new Date){const a=new Date(e),n=Math.floor((t.getTime()-a.getTime())/1e3);if(n<60)return"just now";const o=Math.floor(n/60);if(o<60)return`${o} minute${o>1?"s":""} ago`;const r=Math.floor(o/60);if(r<24)return`${r} hour${r>1?"s":""} ago`;const l=Math.floor(r/24);if(l<30)return`${l} day${l>1?"s":""} ago`;const i=Math.floor(l/30);if(i<12)return`${i} month${i>1?"s":""} ago`;const s=Math.floor(i/12);return`${s} year${s>1?"s":""} ago`},exports.formatValidationError=function(e,t){return`${Ue(e)} ${t}`},exports.removeAnimationClass=function(e,t){e&&e.classList.remove(Me[t])},exports.removeTransition=function(e){e&&(e.style.transition="")},exports.slugify=function(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")},exports.staggerAnimation=function(e,t,a=100,n){return e.map((e,o)=>{const r={...n,delay:(n?.delay||0)+o*a};return Ee(e,t,r)}).filter(Boolean)},exports.truncateText=function(e,t,a="..."){return e.length<=t?e:e.slice(0,t-a.length)+a},exports.validateCreditCard=function(e){const t=e.replace(/\D/g,"");if(!e)return{isValid:!1,message:"Credit card number is required"};if(t.length<13||t.length>19)return{isValid:!1,message:"Please enter a valid credit card number"};let a=0,n=!1;for(let e=t.length-1;e>=0;e--){let o=parseInt(t[e]);n&&(o*=2,o>9&&(o-=9)),a+=o,n=!n}return a%10!=0?{isValid:!1,message:"Please enter a valid credit card number"}:{isValid:!0}},exports.validateEmail=function(e){return e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{isValid:!0}:{isValid:!1,message:"Please enter a valid email address"}:{isValid:!1,message:"Email is required"}},exports.validateField=He,exports.validateForm=function(e,t){const a={};let n=!0;for(const[o,r]of Object.entries(t)){const t=He(e[o],r);t.isValid||(a[o]=t.message||"Invalid value",n=!1)}return{isValid:n,errors:a}},exports.validatePassword=function(e){return e?e.length<8?{isValid:!1,message:"Password must be at least 8 characters long"}:/(?=.*[a-z])/.test(e)?/(?=.*[A-Z])/.test(e)?/(?=.*\d)/.test(e)?/(?=.*[@$!%*?&])/.test(e)?{isValid:!0}:{isValid:!1,message:"Password must contain at least one special character"}:{isValid:!1,message:"Password must contain at least one number"}:{isValid:!1,message:"Password must contain at least one uppercase letter"}:{isValid:!1,message:"Password must contain at least one lowercase letter"}:{isValid:!1,message:"Password is required"}},exports.validatePhoneNumber=function(e){const t=e.replace(/\D/g,"");return e?t.length<10||t.length>15?{isValid:!1,message:"Please enter a valid phone number"}:/^[\+]?[1-9][\d]{0,15}$/.test(t)?{isValid:!0}:{isValid:!1,message:"Please enter a valid phone number"}:{isValid:!1,message:"Phone number is required"}},exports.validateURL=function(e){try{return new URL(e),{isValid:!0}}catch{return{isValid:!1,message:"Please enter a valid URL"}}},exports.validationPatterns=qe;
|
|
33
2
|
//# sourceMappingURL=index.js.map
|