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.
@@ -1,33 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as o from"react";import r,{useState as a,version as i,isValidElement as l,useInsertionEffect as s,useContext as c,useMemo as d,createContext as u,useEffect as p,useRef as m,useLayoutEffect as f,useCallback as h,useImperativeHandle as g,useId as v,forwardRef as b,cloneElement as y,memo as C,useReducer as w}from"react";import{createPortal as x,flushSync as $,unstable_batchedUpdates as S}from"react-dom";import{createRoot as E}from"react-dom/client";function k(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=k(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=k(e))&&(o&&(o+=" "),o+=t);return o}var N={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"},I={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 P=[{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}],O=({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=P.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=[I.icon,I[`variant_${o}`],r].filter(Boolean).join(" "),m={width:c,height:c,...a};return e("img",{src:d,alt:u,className:p,style:m,...l})},D=({className:t})=>e("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e("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"})}),R=({className:n})=>t("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e("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"})]}),M=({label:n="Button",showLeadingIcon:o=!0,showTrailingIcon:r=!1,leadingIcon:a,trailingIcon:i,leftIcon:l,rightIcon:s,variant:c,buttonStyle:d="primary",state:u="default",size:p="medium",onClick:m,disabled:f,loading:h,className:g="",children:v,...b})=>{const y=h?"loading":f?"disabled":u,C=f||h||"disabled"===y,w=_(N.button,N[`style_${c||d||"primary"}`],N[`state_${y}`],N[`size_${"md"===p?"medium":"sm"===p?"small":p}`],g),x="Button"===n&&v?v:n;return t("button",{className:w,onClick:m,disabled:C,"aria-disabled":C,...b,children:[(()=>{if(!o)return null;const t=a||l;return t?"string"==typeof t?e(O,{name:t,className:N.icon}):t:"loading"===y?e(R,{className:N.loaderIcon}):e(D,{className:N.icon})})(),e("span",{className:N.label,children:x}),(()=>{if(!r)return null;const t=i||s;return t?"string"==typeof t?e(O,{name:t,className:N.icon}):t:e(D,{className:N.icon})})()]})};var B={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 T=({label:n="Button",showLeadingIcon:o=!0,showTrailingIcon:r=!1,leadingIcon:a,trailingIcon:i,style:l="primary",state:s="default",size:c="medium",onClick:d,disabled:u,loading:p,className:m="",...f})=>{const h=p?"loading":u?"disabled":s,g=u||p||"disabled"===h,v=[B.button,B[`style_${l}`],B[`state_${h}`],B[`size_${c}`],m].filter(Boolean).join(" ");return t("button",{className:v,onClick:d,disabled:g,"aria-disabled":g,...f,children:[o?a||e(O,"loading"===h?{name:"spinner",size:16,className:B.loaderIcon}:{name:"star",size:14,className:B.icon}):null,e("span",{className:B.label,children:n}),r?i||e(O,{name:"star",size:14,className:B.icon}):null]})};var z={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"};const A=({src:t,initials:n,alt:o,size:r="medium",shape:a="circle",className:i="",...l})=>{const s=[z.avatar,z[`size_${r}`],z[`shape_${a}`],!t&&n?z.initialsBg:"",i].filter(Boolean).join(" ");return e("div",{className:s,...l,children:t?e("img",{src:t,alt:o||n||"avatar",className:z.image}):e("span",{className:z.initials,children:n})})};var L="BackgroundGradient-module_container__h-ECQ",H="BackgroundGradient-module_gradientBlobsImage__HSoZE";const F=({className:t="",mode:n="Light Mode BG",...o})=>e("div",{className:`${L} ${t}`,"data-mode":n,...o,children:e("img",{className:H,src:`/bg/Mode=${n}.svg`,alt:`${n} Blobs`})});var j={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"};const W=({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=[j.badge,j[`type_${l}`],j[`size_${s}`],r].filter(Boolean).join(" ");return e("span",{className:c,...i,children:a||t})};function V(e){const t=o.useRef(e);t.current=e;return o.useCallback((...e)=>t.current?.(...e),[])}function K(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const q="test"!==process.env.NODE_ENV&&K()?o.useLayoutEffect:o.useEffect,U=(e,t)=>{const n=o.useRef(!0);q(()=>e(n.current),t),q(()=>(n.current=!1,()=>{n.current=!0}),[])};function X(e){const t=o.useRef(!1),[n,r]=o.useState(e);return o.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[n,function(e,n){n&&t.current||r(e)}]}function G(e,t){const[n,o]=a(e),r=void 0!==t?t:n;return U(e=>{e||o(t)},[t]),[r,o]}var Y,Q={exports:{}},Z={};var J,ee={};
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?Q.exports=function(){if(Y)return Z;Y=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"),Z.ContextConsumer=l,Z.ContextProvider=i,Z.Element=t,Z.ForwardRef=c,Z.Fragment=o,Z.Lazy=m,Z.Memo=p,Z.Portal=n,Z.Profiler=a,Z.StrictMode=r,Z.Suspense=d,Z.SuspenseList=u,Z.isAsyncMode=function(){return!1},Z.isConcurrentMode=function(){return!1},Z.isContextConsumer=function(e){return h(e)===l},Z.isContextProvider=function(e){return h(e)===i},Z.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Z.isForwardRef=function(e){return h(e)===c},Z.isFragment=function(e){return h(e)===o},Z.isLazy=function(e){return h(e)===m},Z.isMemo=function(e){return h(e)===p},Z.isPortal=function(e){return h(e)===n},Z.isProfiler=function(e){return h(e)===a},Z.isStrictMode=function(e){return h(e)===r},Z.isSuspense=function(e){return h(e)===d},Z.isSuspenseList=function(e){return h(e)===u},Z.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)},Z.typeOf=h,Z}():Q.exports=(J||(J=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,C=o,w=m,x=p,$=n,S=a,E=r,k=d,_=u,N=!1,I=!1;ee.ContextConsumer=g,ee.ContextProvider=v,ee.Element=b,ee.ForwardRef=y,ee.Fragment=C,ee.Lazy=w,ee.Memo=x,ee.Portal=$,ee.Profiler=S,ee.StrictMode=E,ee.Suspense=k,ee.SuspenseList=_,ee.isAsyncMode=function(e){return N||(N=!0),!1},ee.isConcurrentMode=function(e){return I||(I=!0),!1},ee.isContextConsumer=function(e){return h(e)===l},ee.isContextProvider=function(e){return h(e)===i},ee.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ee.isForwardRef=function(e){return h(e)===c},ee.isFragment=function(e){return h(e)===o},ee.isLazy=function(e){return h(e)===m},ee.isMemo=function(e){return h(e)===p},ee.isPortal=function(e){return h(e)===n},ee.isProfiler=function(e){return h(e)===a},ee.isStrictMode=function(e){return h(e)===r},ee.isSuspense=function(e){return h(e)===d},ee.isSuspenseList=function(e){return h(e)===u},ee.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)},ee.typeOf=h}()),ee);var te=Q.exports;function ne(e,t,n){const r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}const oe=Symbol.for("react.element"),re=Symbol.for("react.transitional.element"),ae=Symbol.for("react.fragment");function ie(e){return e&&"object"==typeof e&&(e.$$typeof===oe||e.$$typeof===re)&&e.type===ae}const le=Number(i.split(".")[0]),se=(e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)},ce=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{se(e,t)})}},de=(...e)=>ne(()=>ce(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),ue=e=>{if(!e)return!1;if(pe(e)&&le>=19)return!0;const t=te.isMemo(e)?e.type.type:e.type;return!("function"==typeof t&&!t.prototype?.render&&t.$$typeof!==te.ForwardRef)&&!("function"==typeof e&&!e.prototype?.render&&e.$$typeof!==te.ForwardRef)};function pe(e){return l(e)&&!ie(e)}const me=e=>{if(e&&pe(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function fe(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 he(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]=he(i[r],a,n,o),i}function ge(e,t,n,o=!1){return t.length&&o&&void 0===n&&!fe(e,t.slice(0,-1))?e:he(e,t,n,o)}function ve(e){return Array.isArray(e)?[]:{}}const be="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ye(e,t={}){const{prepareArray:n}=t,o=n||(()=>[]);let r=ve(e[0]);return e.forEach(e=>{!function t(n,a){const i=new Set(a),l=fe(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=fe(r,n);s?r=ge(r,n,o(e,l)):e&&"object"==typeof e||(r=ge(r,n,ve(l))),be(l).forEach(e=>{Object.getOwnPropertyDescriptor(l,e).enumerable&&t([...n,e],i)})}}else r=ge(r,n,l);var c}([])}),r}function Ce(...e){return ye(e)}let we={};const xe=[];function $e(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){xe.reduce((e,t)=>t(e??"","warning"),t)}}function Se(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){xe.reduce((e,t)=>t(e??"","note"),t)}}function Ee(e,t,n){t||we[n]||(e(!1,n),we[n]=!0)}function ke(e,t){Ee($e,e,t)}function _e(e,t){Ee(Se,e,t)}function Ne(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}function Ie(e,t={}){let n=[];return r.Children.forEach(e,e=>{(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Ie(e)):ie(e)&&e.props?n=n.concat(Ie(e.props.children,t)):n.push(e))}),n}function Pe(){}ke.preMessage=e=>{xe.push(e)},ke.resetWarned=function(){we={}},ke.noteOnce=_e;const{resetWarned:Oe}=ke;let De=null;let Re=Pe;"production"!==process.env.NODE_ENV&&(Re=(e,t,n)=>{ke(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(De=null,Oe())});const Me=Re,Be=o.createContext({}),Te="production"!==process.env.NODE_ENV?e=>{const{strict:t}=o.useContext(Be),n=(n,o,r)=>{if(!n)if(!1===t&&"deprecated"===o){De||(De={}),De[e]=De[e]||[],De[e].includes(r||"")||De[e].push(r||"")}else"production"!==process.env.NODE_ENV&&Me(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=Pe,e};var ze=Me;function Ae(e){return e instanceof HTMLElement||e instanceof SVGElement}function Le(e){return e&&"object"==typeof e&&Ae(e.nativeElement)?e.nativeElement:Ae(e)?e:null}const He=o.createContext(null);const Fe=new Map;function je(e){e.forEach(e=>{const{target:t}=e;Fe.get(t)?.forEach(e=>e(t))})}let We;function Ve(){return We||(We=new ResizeObserver(je)),We}function Ke(e,t){const{children:n,disabled:r}=e,a=o.useRef(null),i=o.useContext(He),l="function"==typeof n,s=l?n(a):n,c=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&o.isValidElement(s)&&ue(s),u=d?me(s):null,p=de(u,a),m=()=>Le(a.current);o.useImperativeHandle(t,()=>m());const f=o.useRef(e);f.current=e;const h=o.useCallback(e=>{const{onResize:t,data:n}=f.current,{width:o,height:r}=e.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=e,s=Math.floor(o),d=Math.floor(r);if(c.current.width!==s||c.current.height!==d||c.current.offsetWidth!==a||c.current.offsetHeight!==l){const u={width:s,height:d,offsetWidth:a,offsetHeight:l};c.current=u;const p=a===Math.round(o)?o:a,m=l===Math.round(r)?r:l,f={...u,offsetWidth:p,offsetHeight:m};i?.(f,e,n),t&&Promise.resolve().then(()=>{t(f,e)})}},[]);return o.useEffect(()=>{const e=m();var t,n;return e&&!r&&(t=e,n=h,Fe.has(t)||(Fe.set(t,new Set),Ve().observe(t)),Fe.get(t).add(n)),()=>function(e,t){Fe.has(e)&&(Fe.get(e).delete(t),Fe.get(e).size||(Ve().unobserve(e),Fe.delete(e)))}(e,h)},[a.current,r]),d?o.cloneElement(s,{ref:p}):s}process.env.NODE_ENV,process.env.NODE_ENV;const qe=o.forwardRef(Ke);function Ue(){return Ue=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},Ue.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(qe.displayName="SingleObserver");function Xe(e,t){const{children:n}=e,r="function"==typeof n?[n]:Ie(n);return"production"!==process.env.NODE_ENV&&(r.length>1?$e(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&$e(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((n,r)=>{const a=n?.key||`rc-observer-key-${r}`;return o.createElement(qe,Ue({},e,{key:a,ref:0===r?t:void 0}),n)})}const Ge=o.forwardRef(Xe);function Ye(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 Qe(e,t){if(e){if("string"==typeof e)return Ye(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)?Ye(e,t):void 0}}function Ze(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qe(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&&(Ge.displayName="ResizeObserver"),Ge.Collection=function({children:e,onBatchResize:t}){const n=o.useRef(0),r=o.useRef([]),a=o.useContext(He),i=o.useCallback((e,o,i)=>{n.current+=1;const l=n.current;r.current.push({size:e,element:o,data:i}),Promise.resolve().then(()=>{l===n.current&&(t?.(r.current),r.current=[])}),a?.(e,o,i)},[t,a]);return o.createElement(He.Provider,{value:i},e)};let Je=e=>+setTimeout(e,16),et=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Je=e=>window.requestAnimationFrame(e),et=e=>window.cancelAnimationFrame(e));let tt=0;const nt=new Map;function ot(e){nt.delete(e)}const rt=(e,t=1)=>{tt+=1;const n=tt;return function t(o){if(0===o)ot(n),e();else{const e=Je(()=>{t(o-1)});nt.set(n,e)}}(t),n};rt.cancel=e=>{const t=nt.get(e);return ot(e),et(t)},"production"!==process.env.NODE_ENV&&(rt.ids=()=>nt);const at="ant",it="anticon",lt=["outlined","borderless","filled","underlined"],st=o.createContext({getPrefixCls:(e,t)=>t||(e?`${at}-${e}`:at),iconPrefixCls:it}),ct={};function dt(e){const t=o.useContext(st),{getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:i}=t,l=t[e];return{classNames:ct,styles:ct,...l,getPrefixCls:n,direction:r,getPopupContainer:a,renderEmpty:i}}function ut(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 pt="data-rc-order",mt="data-rc-priority",ft=new Map;function ht({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function gt(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function vt(e){return Array.from((ft.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function bt(e,t={}){if(!K())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(pt,a),i&&r&&l.setAttribute(mt,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const s=gt(t),{firstChild:c}=s;if(o){if(i){const e=(t.styles||vt(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(pt)))return!1;const t=Number(e.getAttribute(mt)||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 yt(e,t={}){let{styles:n}=t;return n||=vt(gt(t)),n.find(n=>n.getAttribute(ht(t))===e)}function Ct(e,t={}){const n=yt(e,t);if(n){gt(t).removeChild(n)}}function wt(e,t,n={}){const o=gt(n),r=vt(o),a={...n,styles:r};!function(e,t){const n=ft.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=bt("",t),{parentNode:o}=n;ft.set(e,o),e.removeChild(n)}}(o,a);const i=yt(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=bt(e,a);return l.setAttribute(ht(a),t),l}function xt(e,t,n=!1){const o=new Set;return function e(t,r,a=1){const i=o.has(t);if(ke(!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 $t(e){return e.join("%")}let St=0;class Et{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet($t(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate($t(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,St),St+=1)}}const kt="data-token-hash",_t="data-css-hash",Nt="__cssinjs_instance__";const It=o.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[${_t}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Nt]||=e,t[Nt]===e&&document.head.insertBefore(t,n)});const o={};Array.from(document.querySelectorAll(`style[${_t}]`)).forEach(t=>{const n=t.getAttribute(_t);o[n]?t[Nt]===e&&t.parentNode?.removeChild(t):o[n]=!0})}return new Et(e)}(),defaultCache:!0,autoPrefix:!1});class Pt{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>Pt.MAX_CACHE_SIZE+Pt.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 Ot=0;class Dt{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Ot,0===e.length&&$e(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ot+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}const Rt=new Pt;function Mt(e){const t=Array.isArray(e)?e:[e];return Rt.has(t)||Rt.set(t,new Dt(t)),Rt.get(t)}const Bt=new WeakMap,Tt={};const zt=new WeakMap;function At(e){let t=zt.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,t+=o instanceof Dt?o.id:o&&"object"==typeof o?At(o):o}),t=ut(t),zt.set(e,t)),t}const Lt=K();function Ht(e){return"number"==typeof e?`${e}px`:e}function Ft(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const o=`.${t}`;return"low"===n?`:where(${o})`:o}const jt=(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(),Wt=(e,t,n)=>{const{hashCls:o,hashPriority:r="low"}=n||{};return Object.keys(e).length?`${Ft({hashCls:o,hashPriority:r})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`:""},Vt=(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=jt(e,a);c[n]="number"!=typeof t||i?.[e]?String(t):`${t}px`,d[e]=`var(${n})`}}),[d,Wt(c,t,{scope:n?.scope,hashCls:o,hashPriority:r})]};let Kt=!1;var qt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Kt};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)=>(Kt=!0,setTimeout(()=>{Kt=!1},0),t(...e))}}const Ut=new Map;function Xt(e,t,n,r,a){const{cache:i}=o.useContext(It),l=$t([e,...t]),c=qt(),d=e=>{i.opUpdate(l,t=>{const[o=0,a]=t||[void 0,void 0];let i=a;"production"!==process.env.NODE_ENV&&a&&c&&(r?.(i,c),i=null);const l=[o,i||n()];return e?e(l):l})};o.useMemo(()=>{d()},[l]);let u=i.opGet(l);"production"===process.env.NODE_ENV||u||(d(),u=i.opGet(l));const p=u[1];return s(()=>(d(([e,t])=>[e+1,t]),Ut.has(l)||(a?.(p),Ut.set(l,!0),Promise.resolve().then(()=>{Ut.delete(l)})),()=>{i.opUpdate(l,e=>{const[t=0,n]=e||[];return 0===t-1?(r?.(n,!1),Ut.delete(l),null):[t-1,n]})}),[l]),p}const Gt={},Yt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Qt=new Map;function Zt(e,t){Qt.set(e,(Qt.get(e)||0)-1);const n=new Set;Qt.forEach((e,t)=>{e<=0&&n.add(t)}),Qt.size-n.size>-1&&n.forEach(e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${kt}="${e}"]`).forEach(e=>{e[Nt]===t&&e.parentNode?.removeChild(e)})}(e,t),Qt.delete(e)})}function Jt(e,t,n){const{cache:{instanceId:o},container:r,hashPriority:a}=c(It),{salt:i="",override:l=Gt,formatToken:s,getComputedToken:d,cssVar:u}=n,p=function(e,t){let n=Bt;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(Tt)||n.set(Tt,e()),n.get(Tt)}(()=>Object.assign({},...t),t),m=At(p),f=At(l),h=At(u),g=Xt("token",[i,e.id,m,f,h],()=>{const t=d?d(p,l,e):((e,t,n,o)=>{let r={...n.getDerivativeToken(e),...t};return o&&(r=o(r)),r})(p,l,e,s),n={...t},o=`${i}_${u.prefix}`,r=ut(o),c=`${Yt}-${r}`;n._tokenKey=function(e,t){return ut(`${t}_${At(e)}`)}(n,o);const[m,f]=Vt(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?c:void 0});var h;return m._hashId=r,h=u.key,Qt.set(h,(Qt.get(h)||0)+1),[m,c,n,f,u.key]},([,,,,e])=>{Zt(e,o)},([,,,e,t])=>{if(!e)return;const n=wt(e,ut(`css-var-${t}`),{mark:_t,prepend:"queue",attachTo:r,priority:-999});n[Nt]=o,n.setAttribute(kt,t)});return g}var en={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},tn="-ms-",nn="-moz-",on="-webkit-",rn="comm",an="rule",ln="decl",sn="@keyframes",cn=Math.abs,dn=String.fromCharCode,un=Object.assign;function pn(e){return e.trim()}function mn(e,t){return(e=t.exec(e))?e[0]:e}function fn(e,t,n){return e.replace(t,n)}function hn(e,t,n){return e.indexOf(t,n)}function gn(e,t){return 0|e.charCodeAt(t)}function vn(e,t,n){return e.slice(t,n)}function bn(e){return e.length}function yn(e){return e.length}function Cn(e,t){return t.push(e),e}function wn(e,t){return e.filter(function(e){return!mn(e,t)})}var xn=1,$n=1,Sn=0,En=0,kn=0,_n="";function Nn(e,t,n,o,r,a,i,l){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:xn,column:$n,length:i,return:"",siblings:l}}function In(e,t){return un(Nn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Pn(e){for(;e.root;)e=In(e.root,{children:[e]});Cn(e,e.siblings)}function On(){return kn=En>0?gn(_n,--En):0,$n--,10===kn&&($n=1,xn--),kn}function Dn(){return kn=En<Sn?gn(_n,En++):0,$n++,10===kn&&($n=1,xn++),kn}function Rn(){return gn(_n,En)}function Mn(){return En}function Bn(e,t){return vn(_n,e,t)}function Tn(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 zn(e){return pn(Bn(En-1,Hn(91===e?e+2:40===e?e+1:e)))}function An(e){for(;(kn=Rn())&&kn<33;)Dn();return Tn(e)>2||Tn(kn)>3?"":" "}function Ln(e,t){for(;--t&&Dn()&&!(kn<48||kn>102||kn>57&&kn<65||kn>70&&kn<97););return Bn(e,Mn()+(t<6&&32==Rn()&&32==Dn()))}function Hn(e){for(;Dn();)switch(kn){case e:return En;case 34:case 39:34!==e&&39!==e&&Hn(kn);break;case 40:41===e&&Hn(e);break;case 92:Dn()}return En}function Fn(e,t){for(;Dn()&&e+kn!==57&&(e+kn!==84||47!==Rn()););return"/*"+Bn(t,En-1)+"*"+dn(47===e?e:Dn())}function jn(e){for(;!Tn(Rn());)Dn();return Bn(e,En)}function Wn(e){return function(e){return _n="",e}(Vn("",null,null,null,[""],e=function(e){return xn=$n=1,Sn=bn(_n=e),En=0,[]}(e),0,[0],e))}function Vn(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="",C=r,w=a,x=o,$=y;g;)switch(f=b,b=Dn()){case 40:if(108!=f&&58==gn($,u-1)){-1!=hn($+=fn(zn(b),"&","&\f"),"&\f",cn(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:$+=zn(b);break;case 9:case 10:case 13:case 32:$+=An(f);break;case 92:$+=Ln(Mn()-1,7);continue;case 47:switch(Rn()){case 42:case 47:Cn(qn(Fn(Dn(),Mn()),t,n,s),s),5!=Tn(f||1)&&5!=Tn(Rn()||1)||!bn($)||" "===vn($,-1,void 0)||($+=" ");break;default:$+="/"}break;case 123*h:l[c++]=bn($)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:-1==v&&($=fn($,/\f/g,"")),m>0&&(bn($)-u||0===h&&47===f)&&Cn(m>32?Un($+";",o,n,u-1,s):Un(fn($," ","")+";",o,n,u-2,s),s);break;case 59:$+=";";default:if(Cn(x=Kn($,t,n,c,d,r,l,y,C=[],w=[],u,a),a),123===b)if(0===d)Vn($,t,x,x,C,a,u,l,w);else{switch(p){case 99:if(110===gn($,3))break;case 108:if(97===gn($,2))break;default:d=0;case 100:case 109:case 115:}d?Vn(e,x,x,o&&Cn(Kn(e,x,x,0,0,r,l,y,r,C=[],u,w),w),r,w,u,l,o?C:w):Vn($,x,x,x,[""],w,0,l,w)}}c=d=m=0,h=v=1,y=$="",u=i;break;case 58:u=1+bn($),m=f;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==On())continue;switch($+=dn(b),b*h){case 38:v=d>0?1:($+="\f",-1);break;case 44:l[c++]=(bn($)-1)*v,v=1;break;case 64:45===Rn()&&($+=zn(Dn())),p=Rn(),d=u=bn(y=$+=jn(Mn())),b++;break;case 45:45===f&&2==bn($)&&(h=0)}}return a}function Kn(e,t,n,o,r,a,i,l,s,c,d,u){for(var p=r-1,m=0===r?a:[""],f=yn(m),h=0,g=0,v=0;h<o;++h)for(var b=0,y=vn(e,p+1,p=cn(g=i[h])),C=e;b<f;++b)(C=pn(g>0?m[b]+" "+y:fn(y,/&\f/g,m[b])))&&(s[v++]=C);return Nn(e,t,n,0===r?an:l,s,c,d,u)}function qn(e,t,n,o){return Nn(e,t,n,rn,dn(kn),vn(e,2,-2),0,o)}function Un(e,t,n,o,r){return Nn(e,t,n,ln,vn(e,0,o),vn(e,o+1,-1),o,r)}function Xn(e,t,n){switch(function(e,t){return 45^gn(e,0)?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}(e,t)){case 5103:return on+"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 on+e+e;case 4855:return on+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return on+e+nn+e+tn+e+e;case 5936:switch(gn(e,t+11)){case 114:return on+e+tn+fn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return on+e+tn+fn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return on+e+tn+fn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return on+e+tn+e+e;case 6165:return on+e+tn+"flex-"+e+e;case 5187:return on+e+fn(e,/(\w+).+(:[^]+)/,on+"box-$1$2"+tn+"flex-$1$2")+e;case 5443:return on+e+tn+"flex-item-"+fn(e,/flex-|-self/g,"")+(mn(e,/flex-|baseline/)?"":tn+"grid-row-"+fn(e,/flex-|-self/g,""))+e;case 4675:return on+e+tn+"flex-line-pack"+fn(e,/align-content|flex-|-self/g,"")+e;case 5548:return on+e+tn+fn(e,"shrink","negative")+e;case 5292:return on+e+tn+fn(e,"basis","preferred-size")+e;case 6060:return on+"box-"+fn(e,"-grow","")+on+e+tn+fn(e,"grow","positive")+e;case 4554:return on+fn(e,/([^-])(transform)/g,"$1"+on+"$2")+e;case 6187:return fn(fn(fn(e,/(zoom-|grab)/,on+"$1"),/(image-set)/,on+"$1"),e,"")+e;case 5495:case 3959:return fn(e,/(image-set\([^]*)/,on+"$1$`$1");case 4968:return fn(fn(e,/(.+:)(flex-)?(.*)/,on+"box-pack:$3"+tn+"flex-pack:$3"),/space-between/,"justify")+on+e+e;case 4200:if(!mn(e,/flex-|baseline/))return tn+"grid-column-align"+vn(e,t)+e;break;case 2592:case 3360:return tn+fn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,mn(e.props,/grid-\w+-end/)})?~hn(e+(n=n[t].value),"span",0)?e:tn+fn(e,"-start","")+e+tn+"grid-row-span:"+(~hn(n,"span",0)?mn(n,/\d+/):+mn(n,/\d+/)-+mn(e,/\d+/))+";":tn+fn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return mn(e.props,/grid-\w+-start/)})?e:tn+fn(fn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return fn(e,/(.+)-inline(.+)/,on+"$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(bn(e)-1-t>6)switch(gn(e,t+1)){case 109:if(45!==gn(e,t+4))break;case 102:return fn(e,/(.+:)(.+)-([^]+)/,"$1"+on+"$2-$3$1"+nn+(108==gn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~hn(e,"stretch",0)?Xn(fn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return fn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,o,r,a,i,l){return tn+n+":"+o+l+(r?tn+n+"-span:"+(a?i:+i-+o)+l:"")+e});case 4949:if(121===gn(e,t+6))return fn(e,":",":"+on)+e;break;case 6444:switch(gn(e,45===gn(e,14)?18:11)){case 120:return fn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+on+(45===gn(e,14)?"inline-":"")+"box$3$1"+on+"$2$3$1"+tn+"$2box$3")+e;case 100:return fn(e,":",":"+tn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return fn(e,"scroll-","scroll-snap-")+e}return e}function Gn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Yn(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case ln:return e.return=e.return||e.value;case rn:return"";case sn:return e.return=e.value+"{"+Gn(e.children,o)+"}";case an:if(!bn(e.value=e.props.join(",")))return""}return bn(n=Gn(e.children,o))?e.return=e.value+"{"+n+"}":""}function Qn(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case ln:return void(e.return=Xn(e.value,e.length,n));case sn:return Gn([In(e,{value:fn(e.value,"@","@"+on)})],o);case an:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(mn(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Pn(In(e,{props:[fn(t,/:(read-\w+)/,":-moz-$1")]})),Pn(In(e,{props:[t]})),un(e,{props:wn(n,o)});break;case"::placeholder":Pn(In(e,{props:[fn(t,/:(plac\w+)/,":"+on+"input-$1")]})),Pn(In(e,{props:[fn(t,/:(plac\w+)/,":-moz-$1")]})),Pn(In(e,{props:[fn(t,/:(plac\w+)/,tn+"input-$1")]})),Pn(In(e,{props:[t]})),un(e,{props:wn(n,o)})}return""})}}function Zn(e,t){const{path:n,parentSelectors:o}=t;ke(!1,`[Ant Design CSS-in-JS] ${n?`Error in ${n}: `:""}${e}${o.length?` Selector: ${o.join(" | ")}`:""}`)}const Jn=(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)))||Zn(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,n)}},eo=(e,t,n)=>{"animation"===e&&n.hashId&&"none"!==t&&Zn(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,n)},to="data-ant-cssinjs-cache-path",no="_FILE_STYLE__";let oo,ro=!0;function ao(e){return function(){if(!oo&&(oo={},K())){const e=document.createElement("div");e.className=to,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(":");oo[t]=n});const n=document.querySelector(`style[${to}]`);n&&(ro=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}(),!!oo[e]}const io="_skip_check_",lo="_multi_value_";function so(e,t){const n=Gn(Wn(e),t?function(e){var t=yn(e);return function(n,o,r,a){for(var i="",l=0;l<t;l++)i+=e[l](n,o,r,a)||"";return i}}([Qn,Yn]):Yn);return n.replace(/\{%%%\:[^;];}/g,";")}function co(e,t,n="high"){if(!t)return e;const o=Ft({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 uo=(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]=uo(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&&(io in e||lo in e)}(c)){function f(e,t){"production"===process.env.NODE_ENV||"object"==typeof c&&c?.[io]||[Jn,eo,...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;en[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?.[lo]&&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=co("&"===v?"":i,a,s):!n||a||"&"!==v&&""!==v||(v="",b=!0);const[y,C]=uo(c,t,{root:b,injectHash:g,parentSelectors:[...r,v]});p={...p,...C},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 po(e,t){return ut(`${e.join("%")}${t}`)}function mo(e,t){const{path:n,hashId:r,layer:a,nonce:i,clientOnly:l,order:s=0}=e,{mock:c,hashPriority:d,container:u,transformers:p,linters:m,cache:f,layer:h,autoPrefix:g}=o.useContext(It),v=[r||""];h&&v.push("layer"),v.push(...n);let b=Lt;"production"!==process.env.NODE_ENV&&void 0!==c&&(b="client"===c),Xt("style",v,()=>{const e=v.join("|");if(ao(e)){const[t,n]=function(e){const t=oo[e];let n=null;if(t&&K())if(ro)n=no;else{const t=document.querySelector(`style[${_t}="${oo[e]}"]`);t?n=t.innerHTML:delete oo[e]}return[n,t]}(e);if(t)return[t,n,{},l,s]}const o=t(),[i,c]=uo(o,{hashId:r,hashPriority:d,layer:h?a:void 0,path:n.join("-"),transformers:p,linters:m}),u=so(i,g||!1);return[u,po(v,u),c,l,s]},(e,t)=>{const[,n]=e;t&&Lt&&Ct(n,{mark:_t,attachTo:u})},e=>{const[t,n,o,,r]=e;if(b&&t!==no){const e={mark:_t,prepend:!h&&"queue",attachTo:u,priority:r},a="function"==typeof i?i():i;a&&(e.csp={nonce:a});const l=[],s=[];Object.keys(o).forEach(e=>{e.startsWith("@layer")?l.push(e):s.push(e)}),l.forEach(t=>{wt(so(o[t],g||!1),`_layer-${t}`,{...e,prepend:!0})});const c=wt(t,n,e);c[Nt]=f.instanceId,"production"!==process.env.NODE_ENV&&c.setAttribute("data-cache-path",v.join("|")),s.forEach(t=>{wt(so(o[t],g||!1),`_effect-${t}`,e)})}})}class fo{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0}function ho(e){return e.notSplit=!0,e}function go(e){return go="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},go(e)}function vo(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)||Qe(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 bo(e){var t=function(e,t){if("object"!=go(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=go(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==go(t)?t:t+""}function yo(e,t,n){return(t=bo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Co(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach(function(t){yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $o(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,bo(o.key),o)}}function So(e,t,n){return t&&$o(e.prototype,t),n&&$o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ko(e,t){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ko(e,t)}function _o(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&&ko(e,t)}function No(e){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},No(e)}function Io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Io=function(){return!!e})()}function Po(e){var t=Io();return function(){var n,o=No(e);if(t){var r=No(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==go(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Eo(e)}(this,n)}}ho(["borderTop","borderBottom"]),ho(["borderTop"]),ho(["borderBottom"]),ho(["borderLeft","borderRight"]),ho(["borderLeft"]),ho(["borderRight"]);var Oo=So(function e(){xo(this,e)}),Do="CALC_UNIT",Ro=new RegExp(Do,"g");function Mo(e){return"number"==typeof e?"".concat(e).concat(Do):e}var Bo=function(){_o(t,Oo);var e=Po(t);function t(n,o){var r;xo(this,t),yo(Eo(r=e.call(this)),"result",""),yo(Eo(r),"unitlessCssVar",void 0),yo(Eo(r),"lowPriority",void 0);var a=go(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===a?r.result=Mo(n):"string"===a&&(r.result=n),r}return So(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(Mo(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(Mo(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(Ro,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),To=function(){_o(t,Oo);var e=Po(t);function t(n){var o;return xo(this,t),yo(Eo(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return So(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}(),zo=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 Ao(e,t,n,o){var r=wo({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach(function(t){var n,o=vo(t,2),a=o[0],i=o[1];("production"!==process.env.NODE_ENV&&ke(!(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=wo(wo({},n),r);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Lo="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Ho=!0;function Fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Lo)return Object.assign.apply(Object,[{}].concat(t));Ho=!1;var o={};return t.forEach(function(e){"object"===go(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Ho=!0,o}var jo={};function Wo(){}function Vo(e,t,n){var o;return"function"==typeof n?n(Fo(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var Ko=function(){function e(){xo(this,e),yo(this,"map",new Map),yo(this,"objectIDMap",new WeakMap),yo(this,"nextID",0),yo(this,"lastAccessBeat",new Map),yo(this,"accessBeat",0)}return So(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"===go(e)?"obj_".concat(t.getObjectID(e)):"".concat(go(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}(),qo=new Ko;var Uo=function(){return{}};const Xo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Go(e){return(e+8)/e}const Yo={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 Qo={...Yo,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},Zo={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 Jo=Math.round;function er(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 tr=(e,t,n)=>0===n?e:e/100;function nr(e,t){const n=t||255;return e>n?n:e<0?0:e}class or{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=Zo[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof or)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=nr(e.r),this.g=nr(e.g),this.b=nr(e.b),this.a="number"==typeof e.a?nr(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:Jo(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:Jo(r("r")),g:Jo(r("g")),b:Jo(r("b")),a:Jo(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=>Jo((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=Jo(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=Jo(100*this.getSaturation()),n=Jo(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]=nr(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=Jo(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=Jo(255*(r+d)),this.g=Jo(255*(a+d)),this.b=Jo(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=Jo(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=Jo(n*(1-t)*255),c=Jo(n*(1-t*l)*255),d=Jo(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=er(e,tr);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=er(e,tr);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=er(e,(e,t)=>t.includes("%")?Jo(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const rr=[{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 ar(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 ir(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 lr(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 sr(e,t={}){const n=[],o=new or(e),r=o.toHsv();for(let e=5;e>0;e-=1){const t=new or({h:ar(r,e,!0),s:ir(r,e,!0),v:lr(r,e,!0)});n.push(t)}n.push(o);for(let e=1;e<=4;e+=1){const t=new or({h:ar(r,e),s:ir(r,e),v:lr(r,e)});n.push(t)}return"dark"===t.theme?rr.map(({index:e,amount:o})=>new or(t.backgroundColor||"#141414").mix(n[e],o).toHexString()):n.map(e=>e.toHexString())}const cr={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"},dr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];dr.primary=dr[5];const ur=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ur.primary=ur[5];const pr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];pr.primary=pr[5];const mr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];mr.primary=mr[5];const fr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];fr.primary=fr[5];const hr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];hr.primary=hr[5];const gr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gr.primary=gr[5];const vr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];vr.primary=vr[5];const br=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];br.primary=br[5];const yr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];yr.primary=yr[5];const Cr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Cr.primary=Cr[5];const wr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];wr.primary=wr[5];const xr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];xr.primary=xr[5];const $r={red:dr,volcano:ur,orange:pr,gold:mr,yellow:fr,lime:hr,green:gr,cyan:vr,blue:br,geekblue:yr,purple:Cr,magenta:wr,grey:xr};function Sr(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 or(m[1]).mix(new or(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 or("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}var Er=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 kr(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,...Er(o)}}var _r=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var Nr=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:Go(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 Ir(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 Pr=(e,t)=>new or(e).setA(t).toRgbString(),Or=(e,t)=>new or(e).darken(t).toHexString(),Dr=e=>{const t=sr(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]}},Rr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Pr(o,.88),colorTextSecondary:Pr(o,.65),colorTextTertiary:Pr(o,.45),colorTextQuaternary:Pr(o,.25),colorFill:Pr(o,.15),colorFillSecondary:Pr(o,.06),colorFillTertiary:Pr(o,.04),colorFillQuaternary:Pr(o,.02),colorBgSolid:Pr(o,1),colorBgSolidHover:Pr(o,.75),colorBgSolidActive:Pr(o,.95),colorBgLayout:Or(n,4),colorBgContainer:Or(n,0),colorBgElevated:Or(n,0),colorBgSpotlight:Pr(o,.85),colorBgBlur:"transparent",colorBorder:Or(n,15),colorBorderDisabled:Or(n,15),colorBorderSecondary:Or(n,6)}};const Mr=Mt(function(e){cr.pink=cr.magenta,$r.pink=$r.magenta;const t=Object.keys(Yo).map(t=>{const n=e[t]===cr[t]?$r[t]:sr(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,...Sr(e,{generateColorPalettes:Dr,generateNeutralColorPalettes:Rr}),...Nr(e.fontSize),...Ir(e),..._r(e),...kr(e)}});var Br=Mr;const Tr={token:Qo,override:{override:Qo},hashed:!0},zr=r.createContext(Tr);function Ar(e){return e>=0&&e<=255}function Lr(e,t){const{r:n,g:o,b:r,a:a}=new or(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new or(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(Ar(t)&&Ar(a)&&Ar(c))return new or({r:t,g:a,b:c,a:Math.round(100*e)/100}).toRgbString()}return new or({r:n,g:o,b:r,a:1}).toRgbString()}const Hr={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},Fr={motionBase:!0,motionUnit:!0},jr={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},Wr=(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(Qo).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:Lr(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:Lr(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Lr(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:Lr(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 or("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new or("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new or("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=Wr({...i,...o},{override:o},n)),i[e]=r}),i};function Vr(){const{token:e,hashed:t,theme:n,override:o,cssVar:a,zeroRuntime:i}=r.useContext(zr),l={prefix:a?.prefix??"ant",key:a?.key??"css-var-root"},s=`6.1.4-${t||""}`,c=n||Br,[d,u,p]=Jt(c,[Qo,e],{salt:s,override:o,getComputedToken:Wr,cssVar:{...l,unitless:Hr,ignore:Fr,preserve:jr}});return[c,p,t?u:"",d,l,!!i]}const Kr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},qr=(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}),Ur=(e,t)=>({outline:`${Ht(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Xr=(e,t)=>({"&:focus-visible":Ur(e,t)}),Gr=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"}}}),Yr=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...Xr(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Qr,genComponentStyleHook:Zr,genSubStyleComponent:Jr}=function(e){var t=e.useCSP,n=void 0===t?Uo:t,o=e.useToken,a=e.usePrefix,i=e.getResetStyles,l=e.getCommonStyle,s=e.getCompUnitless;function u(t,s,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=vo(p,1)[0],f=p.join("-"),h=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,p=o(),g=p.theme,v=p.realToken,b=p.hashId,y=p.token,C=p.cssVar,w=p.zeroRuntime;if(d(function(){return w},[]))return b;var x,$,S=a(),E=S.rootPrefixCls,k=S.iconPrefixCls,_=n(),N="css",I=(x=function(){var e=new Set;return Object.keys(u.unitless||{}).forEach(function(t){e.add(jt(t,C.prefix)),e.add(jt(t,zo(m,C.prefix)))}),function(e,t){var n="css"===e?Bo:To;return function(e){return new n(e,t)}}(N,e)},$=[N,m,null==C?void 0:C.prefix],r.useMemo(function(){var e=qo.get($);if(e)return e;var t=x();return qo.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 Ht(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 Ht(e)}).join(","),")")}}}(N),O=P.max,D=P.min,R={theme:g,token:y,hashId:b,nonce:function(){return _.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};return"function"==typeof i&&mo(wo(wo({},R),{},{clientOnly:!1,path:["Shared",E]}),function(){return i(y,{prefix:{rootPrefixCls:E,iconPrefixCls:k},csp:_})}),mo(wo(wo({},R),{},{path:[f,e,k]}),function(){if(!1===u.injectStyle)return[];var n=function(e){var t,n=e,o=Wo;return Lo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return Ho&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;jo[e]={global:Array.from(t),component:wo(wo({},null===(o=jo[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=n.token,r=n.flush,a=Vo(m,v,c),i=".".concat(e),d=Ao(m,v,a,{deprecatedTokens:u.deprecatedTokens});a&&"object"===go(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat(jt(e,zo(m,C.prefix)),")")});var p=Fo(o,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(E),calc:I,max:O,min:D},a),f=s(p,{hashId:b,prefixCls:e,rootPrefixCls:E,iconPrefixCls:k});r(m,d);var h="function"==typeof l?l(p,e,t,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}),b}}return{genStyleHooks:function(e,t,n,r){var a=Array.isArray(e)?e[0]:e;function i(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var l=(null==r?void 0:r.unitless)||{},d=wo(wo({},"function"==typeof s?s(e):{}),{},yo({},i("zIndexPopup"),!0));Object.keys(l).forEach(function(e){d[i(e)]=l[e]});var p=wo(wo({},r),{},{unitless:d,prefixToken:i}),m=u(e,t,n,p),f=function(e,t,n){var r=n.unitless,a=n.prefixToken,i=n.ignore;return function(l){var s=o(),d=s.cssVar,u=s.realToken;return((e,t)=>{const{key:n,prefix:o,unitless:r,ignore:a,token:i,hashId:l,scope:s=""}=e,{cache:{instanceId:d},container:u,hashPriority:p}=c(It),{_tokenKey:m}=i,f=[...e.path,n,s,m],h=Xt("cssVar",f,()=>{const e=t(),[i,c]=Vt(e,n,{prefix:o,unitless:r,ignore:a,scope:s,hashPriority:p,hashCls:l});return[i,c,po(f,c),n]},([,,e])=>{Lt&&Ct(e,{mark:_t,attachTo:u})},([,e,t])=>{if(!e)return;const o=wt(e,t,{mark:_t,prepend:"queue",attachTo:u,priority:-999});o[Nt]=d,o.setAttribute(kt,n)})})({path:[e],prefix:d.prefix,key:d.key,unitless:r,ignore:i,token:u,scope:l},function(){var o=Vo(e,u,t),r=Ao(e,u,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return o&&Object.keys(o).forEach(function(e){r[a(e)]=r[e],delete r[e]}),r}),null==d?void 0:d.key}}(a,n,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=u(e,t,n,wo({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:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c(st);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r,a]=Vr();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r,zeroRuntime:a}},useCSP:()=>{const{csp:e}=c(st);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},Gr(t?.prefix.iconPrefixCls??it)]},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:()=>Hr});function ea(e,t){return Xo.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 ta=(e,t)=>{const[n,o]=Vr();return mo({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Gr(e))};var na=u({});function oa(e){return e?.getRootNode?.()}function ra(e){return function(e){return oa(e)instanceof ShadowRoot}(e)?oa(e):null}function aa(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function ia(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 la(e,t,n){return n?r.createElement(e.tag,{key:t,...ia(e.attrs),...n},(e.children||[]).map((n,o)=>la(n,`${t}-${e.tag}-${o}`))):r.createElement(e.tag,{key:t,...ia(e.attrs)},(e.children||[]).map((n,o)=>la(n,`${t}-${e.tag}-${o}`)))}function sa(e){return sr(e)[0]}function ca(e){return e?Array.isArray(e)?e:[e]:[]}const da={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const ua=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:i,secondaryColor:l,...s}=e,d=o.useRef(null);let u=da;if(i&&(u={primaryColor:i,secondaryColor:l||sa(i)}),(e=>{const{csp:t,prefixCls:n,layer:o}=c(na);let r="\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";n&&(r=r.replace(/anticon/g,n)),o&&(r=`@layer ${o} {\n${r}\n}`),p(()=>{const n=ra(e.current);wt(r,"@ant-design-icons",{prepend:!o,csp:t,attachTo:n})},[])})(d),ke(aa(t),`[@ant-design/icons] ${`icon should be icon definiton, but got ${t}`}`),!aa(t))return null;let m=t;return m&&"function"==typeof m.icon&&(m={...m,icon:m.icon(u.primaryColor,u.secondaryColor)}),la(m.icon,`svg-${m.name}`,{className:n,onClick:r,style:a,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:d})};ua.displayName="IconReact",ua.getTwoToneColors=function(){return{...da}},ua.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){da.primaryColor=e,da.secondaryColor=t||sa(e),da.calculated=!!t};var pa=ua;function ma(e){const[t,n]=ca(e);return pa.setTwoToneColors({primaryColor:t,secondaryColor:n})}function fa(){return fa=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},fa.apply(this,arguments)}ma(br.primary);const ha=o.forwardRef((e,t)=>{const{className:n,icon:r,spin:a,rotate:i,tabIndex:l,onClick:s,twoToneColor:c,...d}=e,{prefixCls:u="anticon",rootClassName:p}=o.useContext(na),m=_(p,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!a||"loading"===r.name},n);let f=l;void 0===f&&s&&(f=-1);const h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[g,v]=ca(c);return o.createElement("span",fa({role:"img","aria-label":r.name},d,{ref:t,tabIndex:f,onClick:s,className:m}),o.createElement(pa,{icon:r,primaryColor:g,secondaryColor:v,style:h}))});ha.getTwoToneColor=function(){const e=pa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ha.setTwoToneColor=ma,"production"!==process.env.NODE_ENV&&(ha.displayName="AntdIcon");var ga=ha,va={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 ba(){return ba=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},ba.apply(this,arguments)}const ya=(e,t)=>o.createElement(ga,ba({},e,{ref:t,icon:va})),Ca=o.forwardRef(ya);
11
- /**![close-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNTEyIDY0YzI0Ny40IDAgNDQ4IDIwMC42IDQ0OCA0NDhTNzU5LjQgOTYwIDUxMiA5NjAgNjQgNzU5LjQgNjQgNTEyIDI2NC42IDY0IDUxMiA2NHptMTI3Ljk4IDI3NC44MmgtLjA0bC0uMDguMDZMNTEyIDQ2Ni43NSAzODQuMTQgMzM4Ljg4Yy0uMDQtLjA1LS4wNi0uMDYtLjA4LS4wNmEuMTIuMTIgMCAwMC0uMDcgMGMtLjAzIDAtLjA1LjAxLS4wOS4wNWwtNDUuMDIgNDUuMDJhLjIuMiAwIDAwLS4wNS4wOS4xMi4xMiAwIDAwMCAuMDd2LjAyYS4yNy4yNyAwIDAwLjA2LjA2TDQ2Ni43NSA1MTIgMzM4Ljg4IDYzOS44NmMtLjA1LjA0LS4wNi4wNi0uMDYuMDhhLjEyLjEyIDAgMDAwIC4wN2MwIC4wMy4wMS4wNS4wNS4wOWw0NS4wMiA0NS4wMmEuMi4yIDAgMDAuMDkuMDUuMTIuMTIgMCAwMC4wNyAwYy4wMiAwIC4wNC0uMDEuMDgtLjA1TDUxMiA1NTcuMjVsMTI3Ljg2IDEyNy44N2MuMDQuMDQuMDYuMDUuMDguMDVhLjEyLjEyIDAgMDAuMDcgMGMuMDMgMCAuMDUtLjAxLjA5LS4wNWw0NS4wMi00NS4wMmEuMi4yIDAgMDAuMDUtLjA5LjEyLjEyIDAgMDAwLS4wN3YtLjAyYS4yNy4yNyAwIDAwLS4wNS0uMDZMNTU3LjI1IDUxMmwxMjcuODctMTI3Ljg2Yy4wNC0uMDQuMDUtLjA2LjA1LS4wOGEuMTIuMTIgMCAwMDAtLjA3YzAtLjAzLS4wMS0uMDUtLjA1LS4wOWwtNDUuMDItNDUuMDJhLjIuMiAwIDAwLS4wOS0uMDUuMTIuMTIgMCAwMC0uMDcgMHoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(Ca.displayName="CloseCircleFilled");var wa=Ca,xa={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 $a(){return $a=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},$a.apply(this,arguments)}const Sa=(e,t)=>o.createElement(ga,$a({},e,{ref:t,icon:xa})),Ea=o.forwardRef(Sa);
12
- /**![close](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzk5Ljg2IDE2Ni4zMWMuMDIgMCAuMDQuMDIuMDguMDZsNTcuNjkgNTcuN2MuMDQuMDMuMDUuMDUuMDYuMDhhLjEyLjEyIDAgMDEwIC4wNmMwIC4wMy0uMDIuMDUtLjA2LjA5TDU2OS45MyA1MTJsMjg3LjcgMjg3LjdjLjA0LjA0LjA1LjA2LjA2LjA5YS4xMi4xMiAwIDAxMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMyAwLS4wNS0uMDItLjA5LS4wNkw1MTIgNTY5LjkzbC0yODcuNyAyODcuN2MtLjA0LjA0LS4wNi4wNS0uMDkuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDItLjA4LS4wNmwtNTcuNjktNTcuN2MtLjA0LS4wMy0uMDUtLjA1LS4wNi0uMDdhLjEyLjEyIDAgMDEwLS4wN2MwLS4wMy4wMi0uMDUuMDYtLjA5TDQ1NC4wNyA1MTJsLTI4Ny43LTI4Ny43Yy0uMDQtLjA0LS4wNS0uMDYtLjA2LS4wOWEuMTIuMTIgMCAwMTAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMDEuMDcgMGMuMDMgMCAuMDUuMDIuMDkuMDZMNTEyIDQ1NC4wN2wyODcuNy0yODcuN2MuMDQtLjA0LjA2LS4wNS4wOS0uMDZhLjEyLjEyIDAgMDEuMDcgMHoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(Ea.displayName="CloseOutlined");var ka=Ea;const _a=o.createContext({});function Na({children:e,...t}){return o.createElement(_a.Provider,{value:t},e)}const Ia="none",Pa="appear",Oa="enter",Da="leave",Ra="none",Ma="prepare",Ba="start",Ta="active",za="end",Aa="prepared";function La(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 Ha=function(e,t){const n={animationend:La("Animation","AnimationEnd"),transitionend:La("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(K(),"undefined"!=typeof window?window:{});let Fa={};K()&&({style:Fa}=document.createElement("div"));const ja={};function Wa(e){if(ja[e])return ja[e];const t=Ha[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 Fa)return ja[e]=t[o],ja[e]}}return""}const Va=Wa("animationend"),Ka=Wa("transitionend"),qa=!(!Va||!Ka),Ua=Va||"animationend",Xa=Ka||"transitionend";function Ga(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 Ya=K()?f:p;const Qa=[Ma,Ba,Ta,za],Za=[Ma,Aa],Ja=!1;function ei(e){return e===Ta||e===za}var ti=(e,t,n)=>{const[r,a]=X(Ra),[i,l]=(()=>{const e=o.useRef(null);function t(){rt.cancel(e.current)}return o.useEffect(()=>()=>{t()},[]),[function n(o,r=2){t();const a=rt(()=>{r<=1?o({isCanceled:()=>a!==e.current}):n(o,r-1)});e.current=a},t]})();const s=t?Za:Qa;return Ya(()=>{if(r!==Ra&&r!==za){const e=s.indexOf(r),t=s[e+1],o=n(r);o===Ja?a(t,!0):t&&i(e=>{function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)})}},[e,r]),o.useEffect(()=>()=>{l()},[]),[function(){a(Ma,!0)},r]};function ni(e,t,n,{motionEnter:r=!0,motionAppear:a=!0,motionLeave:i=!0,motionDeadline:l,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:d,onLeavePrepare:u,onAppearStart:f,onEnterStart:h,onLeaveStart:g,onAppearActive:v,onEnterActive:b,onLeaveActive:y,onAppearEnd:C,onEnterEnd:w,onLeaveEnd:x,onVisibleChanged:$}){const[S,E]=X(),[k,_]=function(e){const[,t]=o.useReducer(e=>e+1,0),n=o.useRef(e);return[V(()=>n.current),V(e=>{n.current="function"==typeof e?e(n.current):e,t()})]}(Ia),[N,I]=X(null),P=k(),O=m(!1),D=m(null);function R(){return n()}const M=m(!1);function B(){_(Ia),I(null,!0)}const T=V(e=>{const t=k();if(t===Ia)return;const n=R();if(e&&!e.deadline&&e.target!==n)return;const o=M.current;let r;t===Pa&&o?r=C?.(n,e):t===Oa&&o?r=w?.(n,e):t===Da&&o&&(r=x?.(n,e)),o&&!1!==r&&B()}),[z]=(e=>{const t=m();function n(t){t&&(t.removeEventListener(Xa,e),t.removeEventListener(Ua,e))}return o.useEffect(()=>()=>{n(t.current),t.current=null},[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Xa,e),o.addEventListener(Ua,e),t.current=o)},n]})(T),A=e=>{switch(e){case Pa:return{[Ma]:c,[Ba]:f,[Ta]:v};case Oa:return{[Ma]:d,[Ba]:h,[Ta]:b};case Da:return{[Ma]:u,[Ba]:g,[Ta]:y};default:return{}}},L=o.useMemo(()=>A(P),[P]),[H,F]=ti(P,!e,e=>{if(e===Ma){const e=L[Ma];return e?e(R()):Ja}return F in L&&I(L[F]?.(R(),null)||null),F===Ta&&P!==Ia&&(z(R()),l>0&&(clearTimeout(D.current),D.current=setTimeout(()=>{T({deadline:!0})},l))),F===Aa&&B(),true}),j=ei(F);M.current=j;const W=m(null);Ya(()=>{if(O.current&&W.current===t)return;E(t);const n=O.current;let o;O.current=!0,!n&&t&&a&&(o=Pa),n&&t&&r&&(o=Oa),(n&&!t&&i||!n&&s&&!t&&i)&&(o=Da);const l=A(o);o&&(e||l[Ma])?(_(o),H()):_(Ia),W.current=t},[t]),p(()=>{(P===Pa&&!a||P===Oa&&!r||P===Da&&!i)&&_(Ia)},[a,r,i]),p(()=>()=>{O.current=!1,clearTimeout(D.current)},[]);const K=o.useRef(!1);p(()=>{S&&(K.current=!0),void 0!==S&&P===Ia&&((K.current||S)&&$?.(S),K.current=!0)},[S,P]);let q=N;return L[Ma]&&F===Ba&&(q={transition:"none",...q}),[k,F,q,S??t]}var oi=function(e){let t=e;"object"==typeof e&&({transitionSupport:t}=e);const n=o.forwardRef((e,n)=>{const{visible:r=!0,removeOnLeave:a=!0,forceRender:i,children:l,motionName:s,leavedClassName:c,eventProps:d}=e,{motion:u}=o.useContext(_a),p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,u),f=m();function h(){return Le(f.current)}const[g,v,b,y]=ni(p,r,h,e),C=g(),w=o.useRef(y);y&&(w.current=!0);const x=o.useMemo(()=>{const e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:h},inMotion:{enumerable:!0,get:()=>()=>g()!==Ia},enableMotion:{enumerable:!0,get:()=>()=>p}}),e},[]);let $;o.useImperativeHandle(n,()=>x,[]);const S={...d,visible:r};if(l)if(C===Ia)$=y?l({...S},f):!a&&w.current&&c?l({...S,className:c},f):i||!a&&!c?l({...S,style:{display:"none"}},f):null;else{let e;v===Ma?e="prepare":ei(v)?e="active":v===Ba&&(e="start");const t=Ga(s,`${C}-${e}`);$=l({...S,className:_(Ga(s,C),{[t]:t&&e,[s]:"string"==typeof s}),style:b},f)}else $=null;if(o.isValidElement($)&&ue($)){me($)||($=o.cloneElement($,{ref:f}))}return $});return n.displayName="CSSMotion",n}(qa);const ri="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 ai(e,t){return 0===e.indexOf(t)}function ii(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||ai(t,"aria-"))||n.data&&ai(t,"data-")||n.attr&&ri.includes(t))&&(o[t]=e[t])}),o}const li={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 si(e){return si="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},si(e)}function ci(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 di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach(function(t){ui(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ui(e,t,n){var o;return o=function(e,t){if("object"!=si(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=si(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==si(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pi={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const mi={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"],...di(di({},{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:{...pi}};const fi="${label} is not a valid ${type}";var hi={locale:"en",Pagination:li,DatePicker:mi,TimePicker:pi,Calendar:mi,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:fi,method:fi,array:fi,object:fi,number:fi,date:fi,boolean:fi,integer:fi,float:fi,regexp:fi,email:fi,url:fi,hex:fi},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"}};hi.Modal;let gi=[];const vi=()=>gi.reduce((e,t)=>({...e,...t}),hi.Modal);var bi=u(void 0);var yi=(e,t)=>{const n=o.useContext(bi),r=o.useMemo(()=>{const o=t||hi[e],r=n?.[e]??{};return{..."function"==typeof o?o():o,...r||{}}},[e,t,n]);return[r,o.useMemo(()=>{const e=n?.locale;return n?.exist&&!e?hi.locale:e},[n])]};const Ci="internalMark",wi=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=Te("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Ci,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}o.useEffect(()=>{const e=function(e){if(e){const t={...e};return gi.push(t),vi(),()=>{gi=gi.filter(e=>e!==t),vi()}}hi.Modal}(t?.Modal);return e},[t]);const a=o.useMemo(()=>({...t,exist:!0}),[t]);return o.createElement(bi.Provider,{value:a},n)};"production"!==process.env.NODE_ENV&&(wi.displayName="LocaleProvider");var xi=wi;function $i(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}var Si=e=>null!=e;const Ei=()=>r.useReducer(e=>e+1,0),ki=(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]=ki(r,e[o],a);else{const{_default:t}=r;t&&(e[o]=e[o]||{},e[o][t]=_(e[o][t],a))}else e[o]=_(e[o],a)}),e),{})},_i=(e,...t)=>o.useMemo(()=>ki.apply(void 0,[e].concat(t)),[e].concat(t)),Ni=(...e)=>e.filter(Boolean).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),Ii=(...e)=>o.useMemo(()=>Ni.apply(void 0,e),[].concat(e)),Pi=(e,t)=>{const n={...e};return Object.keys(t).forEach(e=>{if("_default"!==e){const o=t[e],r=n[e]||{};n[e]=o?Pi(r,o):r}}),n},Oi=(e,t)=>"function"==typeof e?e(t):e,Di=(e,t,n,r)=>{const a=e.map(e=>e?Oi(e,n):void 0),i=t.map(e=>e?Oi(e,n):void 0),l=_i.apply(void 0,[r].concat(Ze(a))),s=Ii.apply(void 0,Ze(i));return o.useMemo(()=>r?[Pi(l,r),Pi(s,r)]:[l,s],[l,s,r])},Ri=e=>"horizontal"===e||"vertical"===e,Mi=(e,t,n)=>d(()=>{let o;if(Ri(e))o=e;else if("boolean"==typeof t)o=t?"vertical":"horizontal";else{o=Ri(n)?n:"horizontal"}return[o,"vertical"===o]},[n,e,t]),Bi=(e,t)=>g(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._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}),Ti=r.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ti.displayName="zIndexContext");var zi=Ti;const Ai=100,Li={Modal:Ai,Drawer:Ai,Popover:Ai,Popconfirm:Ai,Tooltip:Ai,Tour:Ai,FloatButton:Ai},Hi={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Fi=(e,t)=>{const[,n]=Vr(),o=r.useContext(zi),a=(e=>e in Li)(e);let i;if(void 0!==t)i=[t,t];else{let r=o??0;r+=a?(o?0:n.zIndexPopupBase)+Li[e]:Hi[e],i=[void 0===o?t:r,r]}if("production"!==process.env.NODE_ENV){const o=Te(e),r=n.zIndexPopupBase+1100,a=i[0]||0;"production"!==process.env.NODE_ENV&&o(void 0!==t||a<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};function ji(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}function Wi(e,t){return((e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}function Vi(e){return Si(e)&&e===e.window}var Ki=e=>{if("undefined"==typeof window)return 0;let t=0;return Vi(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Vi(e)&&"number"!=typeof t&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};var qi=e=>`${e}-css-var`,Ui=u(void 0);const Xi=o.createContext(null);let Gi=!1;const Yi=[];let Qi;function Zi(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};`:"";wt(`\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),Ct(t),{width:i,height:l}}function Ji(e){return"undefined"==typeof document?0:((e||void 0===Qi)&&(Qi=Zi()),Qi.width)}function el(e){return"undefined"!=typeof document&&e&&e instanceof Element?Zi(e):{width:0,height:0}}const tl=`rc-util-locker-${Date.now()}`;let nl=0;function ol(e){const t=!!e,[n]=o.useState(()=>(nl+=1,`${tl}_${nl}`));U(()=>{if(t){const e=el(document.body).width;wt(`\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 Ct(n);return()=>{Ct(n)}},[t,n])}let rl=0;const al={...o}.useId;var il=al?function(e){const t=al();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){const[t,n]=o.useState("ssr-id");return o.useEffect(()=>{const e=rl;rl+=1,n(`rc_unique_${e}`)},[]),e||("test"===process.env.NODE_ENV?"test-id":t)};let ll=[];let sl=0;process.env.NODE_ENV;const cl=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-sl<200)return;const t=ll.length;for(let n=t-1;n>=0;n-=1)ll[n].onEsc({top:n===t-1,event:e})}},dl=()=>{sl=Date.now()};function ul(e,t){const n=il(),o=V(t),r=()=>{ll.find(e=>e.id===n)||ll.push({id:n,onEsc:o})},a=()=>{ll=ll.filter(e=>e.id!==n)};d(()=>{e?r():e||a()},[e]),p(()=>{if(e)return r(),window.addEventListener("keydown",cl),window.addEventListener("compositionend",dl),()=>{a(),0===ll.length&&(window.removeEventListener("keydown",cl),window.removeEventListener("compositionend",dl))}},[e])}const pl=e=>!1!==e&&(K()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null),ml=o.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:a,debug:i,autoDestroy:l=!0,children:s,onEsc:c}=e,[d,u]=o.useState(n),p=d||n;"production"!==process.env.NODE_ENV&&ke(K()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),o.useEffect(()=>{(l||n)&&u(n)},[n,l]);const[m,f]=o.useState(()=>pl(a));o.useEffect(()=>{const e=pl(a);f(()=>e??null)});const[h,g]=function(e,t){const[n]=o.useState(()=>{if(!K())return null;const e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e}),r=o.useRef(!1),a=o.useContext(Xi),[i,l]=o.useState(Yi),s=a||(r.current?void 0:e=>{l(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){n.parentElement?.removeChild(n),r.current=!1}return U(()=>(e?a?a(c):c():d(),d),[e]),U(()=>{i.length&&(i.forEach(e=>e()),l(Yi))},[i]),[n,s]}(p&&!m,i),v=m??h;ol(r&&n&&K()&&(v===h||v===document.body)),ul(n,c);let b=null;s&&ue(s)&&t&&(b=me(s));const y=de(b,t);if(!p||!K()||void 0===m)return null;const C=!1===v||("boolean"==typeof w&&(Gi=w),Gi);var w;let $=s;return t&&($=o.cloneElement(s,{ref:y})),o.createElement(Xi.Provider,{value:g},C?$:x($,v))});function fl(e){const{prefixCls:t,align:n,arrow:r,arrowPos:a}=e,{className:i,content:l,style:s}=r||{},{x:c=0,y:d=0}=a,u=o.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 o.createElement("div",{ref:u,className:_(`${t}-arrow`,i),style:{...p,...s}},l)}function hl(){return hl=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},hl.apply(this,arguments)}function gl(e){const{prefixCls:t,open:n,zIndex:r,mask:a,motion:i,mobile:l}=e;return a?o.createElement(oi,hl({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>o.createElement("div",{style:{zIndex:r},className:_(`${t}-mask`,l&&`${t}-mobile-mask`,e)})):null}"production"!==process.env.NODE_ENV&&(ml.displayName="Portal");const vl=o.memo(({children:e})=>e,(e,t)=>t.cache);function bl(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 yl(){return yl=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},yl.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(vl.displayName="PopupContent");const Cl=o.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:a,prefixCls:i,style:l,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:C,forceRender:w,getPopupContainer:x,autoDestroy:$,portal:S,children:E,zIndex:k,onMouseEnter:N,onMouseLeave:I,onPointerEnter:P,onPointerDownCapture:O,ready:D,offsetX:R,offsetY:M,offsetR:B,offsetB:T,onAlign:z,onPrepare:A,onResize:L,stretch:H,targetWidth:F,targetHeight:j}=e,W="function"==typeof r?r():r,K=d||u,q=!!C,[X,G,Y]=o.useMemo(()=>C?[C.mask,C.maskMotion,C.motion]:[f,y,b],[C,f,y,b]),Q=x?.length>0,[Z,J]=o.useState(!x||!Q);U(()=>{!Z&&Q&&s&&J(!0)},[Z,Q,s]);const ee=V((e,t)=>{L?.(e,t),z()}),te=bl(q,D,d,v,B,T,R,M);if(!Z)return null;const ne={};return H&&(H.includes("height")&&j?ne.height=j:H.includes("minHeight")&&j&&(ne.minHeight=j),H.includes("width")&&F?ne.width=F:H.includes("minWidth")&&F&&(ne.minWidth=F)),d||(ne.pointerEvents="none"),o.createElement(S,{open:w||K,getContainer:x&&(()=>x(s)),autoDestroy:$,onEsc:n},o.createElement(gl,{prefixCls:i,open:d,zIndex:k,mask:X,motion:G,mobile:q}),o.createElement(Ge,{onResize:ee,disabled:!d},e=>o.createElement(oi,yl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:`${i}-hidden`},Y,{onAppearPrepare:A,onEnterPrepare:A,visible:d,onVisibleChanged:e=>{b?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{const c=_(i,n,a,{[`${i}-mobile`]:q});return o.createElement("div",{ref:ce(e,t,s),className:c,style:{"--arrow-x":`${g.x||0}px`,"--arrow-y":`${g.y||0}px`,...te,...ne,...r,boxSizing:"border-box",zIndex:k,...l},onMouseEnter:N,onMouseLeave:I,onPointerEnter:P,onClick:m,onPointerDownCapture:O},h&&o.createElement(fl,{prefixCls:i,arrow:h,arrowPos:g,align:v}),o.createElement(vl,{cache:!d&&!p},W))})),E)});"production"!==process.env.NODE_ENV&&(Cl.displayName="Popup");const wl=o.createContext(null),xl=o.createContext(null);function $l(e){return e?Array.isArray(e)?e:[e]:[]}var Sl=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 El(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 kl(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(El(e[i]?.points,r,o))return`${t}-placement-${i}`}return""}function _l(e){return e.ownerDocument.defaultView}function Nl(e){const t=[];let n=e?.parentElement;const o=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:e,overflowY:r,overflow:a}=_l(n).getComputedStyle(n);[e,r,a].some(e=>o.includes(e))&&t.push(n),n=n.parentElement}return t}function Il(e,t=1){return Number.isNaN(e)?t:e}function Pl(e){return Il(parseFloat(e),0)}function Ol(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}=_l(e).getComputedStyle(e),s=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:d,offsetWidth:u,clientWidth:p}=e,m=Pl(r),f=Pl(a),h=Pl(i),g=Pl(l),v=Il(Math.round(s.width/u*1e3)/1e3),b=Il(Math.round(s.height/c*1e3)/1e3),y=(u-p-h-g)*v,C=(c-d-m-f)*b,w=m*b,x=f*b,$=h*v,S=g*v;let E=0,k=0;if("clip"===t){const e=Pl(o);E=e*v,k=e*b}const _=s.x+$-E,N=s.y+w-k,I=_+s.width+2*E-$-S-y,P=N+s.height+2*k-w-x-C;n.left=Math.max(n.left,_),n.top=Math.max(n.top,N),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,P)}),n}function Dl(e,t=0){const n=`${t}`,o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function Rl(e,t){const[n,o]=t||[];return[Dl(e.width,n),Dl(e.height,o)]}function Ml(e=""){return[e[0],e[1]]}function Bl(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 Tl(e,t){const n=[...e];return n[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",n}function zl(e){return e.join("")}function Al(e,t,n,r,a,i,l,s){const[c,d]=o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),u=o.useRef(0),p=o.useMemo(()=>!t||s?[]:Nl(t),[t]),m=o.useRef({});e||(m.current={});const f=V(()=>{if(t&&n&&e&&!s){const o=t,c=o.ownerDocument,u=_l(o),{position:f}=u.getComputedStyle(o),h=o.style.left,g=o.style.top,v=o.style.right,b=o.style.bottom,y=o.style.overflow,C={...a[r],...i},w=c.createElement("div");let x;if(o.parentElement?.appendChild(w),w.style.left=`${o.offsetLeft}px`,w.style.top=`${o.offsetTop}px`,w.style.position=f,w.style.height=`${o.offsetHeight}px`,w.style.width=`${o.offsetWidth}px`,o.style.left="0",o.style.top="0",o.style.right="auto",o.style.bottom="auto",o.style.overflow="hidden",Array.isArray(n))x={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,x={x:Xe.x,y:Xe.y,width:Xe.width,height:Xe.height}}const $=o.getBoundingClientRect(),{height:S,width:E}=u.getComputedStyle(o);$.x=$.x??$.left,$.y=$.y??$.top;const{clientWidth:k,clientHeight:_,scrollWidth:N,scrollHeight:I,scrollTop:P,scrollLeft:O}=c.documentElement,D=$.height,R=$.width,M=x.height,B=x.width,T={left:0,top:0,right:k,bottom:_},z={left:-O,top:-P,right:N-O,bottom:I-P};let{htmlRegion:A}=C;const L="visible",H="visibleFirst";"scroll"!==A&&A!==H&&(A=L);const F=A===H,j=Ol(z,p),W=Ol(T,p),V=A===L?W:j,K=F?W:V;o.style.left="auto",o.style.top="auto",o.style.right="0",o.style.bottom="0";const q=o.getBoundingClientRect();o.style.left=h,o.style.top=g,o.style.right=v,o.style.bottom=b,o.style.overflow=y,o.parentElement?.removeChild(w);const U=Il(Math.round(R/parseFloat(E)*1e3)/1e3),X=Il(Math.round(D/parseFloat(S)*1e3)/1e3);if(0===U||0===X||Ae(n)&&!Sl(n))return;const{offset:G,targetOffset:Y}=C;let[Q,Z]=Rl($,G);const[J,ee]=Rl(x,Y);x.x-=J,x.y-=ee;const[te,ne]=C.points||[],oe=Ml(ne),re=Ml(te),ae=Bl(x,oe),ie=Bl($,re),le={...C};let se=[re,oe],ce=ae.x-ie.x+Q,de=ae.y-ie.y+Z;function ue(e,t,n=V){const o=$.x+e,r=$.y+t,a=o+R,i=r+D,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,W),fe=Bl(x,["t","l"]),he=Bl($,["t","l"]),ge=Bl(x,["b","r"]),ve=Bl($,["b","r"]),be=C.overflow||{},{adjustX:ye,adjustY:Ce,shiftX:we,shiftY:xe}=be,$e=e=>"boolean"==typeof e?e:e>=0;let Se,Ee,ke,_e;function Ne(){Se=$.y+de,Ee=Se+D,ke=$.x+ce,_e=ke+R}Ne();const Ie=$e(Ce),Pe=re[0]===oe[0];if(Ie&&"t"===re[0]&&(Ee>K.bottom||m.current.bt)){let Ge=de;Pe?Ge-=D-M:Ge=fe.y-ve.y-Z;const Ye=ue(ce,Ge),Qe=ue(ce,Ge,W);Ye>pe||Ye===pe&&(!F||Qe>=me)?(m.current.bt=!0,de=Ge,Z=-Z,se=[Tl(se[0],0),Tl(se[1],0)]):m.current.bt=!1}if(Ie&&"b"===re[0]&&(Se<K.top||m.current.tb)){let Ze=de;Pe?Ze+=D-M:Ze=ge.y-he.y-Z;const Je=ue(ce,Ze),et=ue(ce,Ze,W);Je>pe||Je===pe&&(!F||et>=me)?(m.current.tb=!0,de=Ze,Z=-Z,se=[Tl(se[0],0),Tl(se[1],0)]):m.current.tb=!1}const Oe=$e(ye),De=re[1]===oe[1];if(Oe&&"l"===re[1]&&(_e>K.right||m.current.rl)){let tt=ce;De?tt-=R-B:tt=fe.x-ve.x-Q;const nt=ue(tt,de),ot=ue(tt,de,W);nt>pe||nt===pe&&(!F||ot>=me)?(m.current.rl=!0,ce=tt,Q=-Q,se=[Tl(se[0],1),Tl(se[1],1)]):m.current.rl=!1}if(Oe&&"r"===re[1]&&(ke<K.left||m.current.lr)){let rt=ce;De?rt+=R-B:rt=ge.x-he.x-Q;const at=ue(rt,de),it=ue(rt,de,W);at>pe||at===pe&&(!F||it>=me)?(m.current.lr=!0,ce=rt,Q=-Q,se=[Tl(se[0],1),Tl(se[1],1)]):m.current.lr=!1}le.points=[zl(se[0]),zl(se[1])],Ne();const Re=!0===we?0:we;"number"==typeof Re&&(ke<W.left&&(ce-=ke-W.left-Q,x.x+B<W.left+Re&&(ce+=x.x-W.left+B-Re)),_e>W.right&&(ce-=_e-W.right-Q,x.x>W.right-Re&&(ce+=x.x-W.right+Re)));const Me=!0===xe?0:xe;"number"==typeof Me&&(Se<W.top&&(de-=Se-W.top-Z,x.y+M<W.top+Me&&(de+=x.y-W.top+M-Me)),Ee>W.bottom&&(de-=Ee-W.bottom-Z,x.y>W.bottom-Me&&(de+=x.y-W.bottom+Me)));const Be=$.x+ce,Te=Be+R,ze=$.y+de,Le=ze+D,He=x.x,Fe=He+B,je=x.y,We=je+M,Ve=(Math.max(Be,He)+Math.min(Te,Fe))/2-Be,Ke=(Math.max(ze,je)+Math.min(Le,We))/2-ze;l?.(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:Ke/X,scaleX:U,scaleY:X,align:le})}}),h=()=>{d(e=>({...e,ready:!1}))};return U(h,[r]),U(()=>{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 Ll(){const e=o.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return o.useEffect(()=>()=>{t()},[]),(n,o)=>{t(),0===o?n():e.current=setTimeout(()=>{n()},1e3*o)}}function Hl(){return Hl=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},Hl.apply(this,arguments)}const Fl=e=>{const{prefixCls:t,isMobile:n,ready:o,open:a,align:i,offsetR:l,offsetB:s,offsetX:c,offsetY:d,arrowPos:u,popupSize:p,motion:m,uniqueContainerClassName:f,uniqueContainerStyle:h}=e,g=`${t}-unique-container`,[v,b]=r.useState(!1),y=bl(n,o,a,i,l,s,c,d),C=r.useRef(y);o&&(C.current=y);const w={};return p&&(w.width=p.width,w.height=p.height),r.createElement(oi,Hl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${g}-hidden`},m,{visible:a,onVisibleChanged:e=>{b(e)}}),({className:e,style:t})=>{const n=_(g,e,f,{[`${g}-visible`]:v});return r.createElement("div",{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...C.current,...w,...t,...h}})})},jl=({children:e,postTriggerProps:t})=>{const[n,a,i,l]=function(){const[e,t]=r.useState(null),[n,o]=r.useState(!1),[a,i]=r.useState(!1),l=r.useRef(null),s=V(e=>{!1===e?(l.current=null,o(!1)):a&&n?l.current=e:(o(!0),t(e),l.current=null,n||i(!0))}),c=V(e=>{e?(i(!1),l.current&&(t(l.current),l.current=null)):(i(!1),l.current=null)});return[s,n,e,c]}(),s=o.useMemo(()=>i&&t?t(i):i,[i,t]),[c,d]=o.useState(null),[u,p]=o.useState(null),m=o.useRef(null),f=V(e=>{m.current=e,Ae(e)&&c!==e&&d(e)}),h=o.useRef(null),g=Ll(),v=V((e,t)=>{h.current=t,g(()=>{n(e)},e.delay)}),b=e=>{g(()=>{h.current?.()||n(!1)},e)},y=V(e=>{l(e)}),[C,w,x,$,S,E,k,,,N,I]=Al(a,c,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,!1),P=o.useMemo(()=>{if(!s)return"";return _(kl(s.builtinPlacements||{},s.prefixCls||"",N,!1),s.getPopupClassNameFromAlign?.(N))},[N,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),O=o.useMemo(()=>({show:v,hide:b}),[]);o.useEffect(()=>{I()},[s?.target]);const D=V(()=>(I(),Promise.resolve())),R=o.useRef({}),M=o.useContext(wl),B=o.useMemo(()=>({registerSubPopup:(e,t)=>{R.current[e]=t,M?.registerSubPopup(e,t)}}),[M]),T=s?.prefixCls;return o.createElement(xl.Provider,{value:O},e,s&&o.createElement(wl.Provider,{value:B},o.createElement(Cl,{ref:f,portal:ml,onEsc:s.onEsc,prefixCls:T,popup:s.popup,className:_(s.popupClassName,P,`${T}-unique-controlled`),style:s.popupStyle,target:s.target,open:a,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:C,offsetX:w,offsetY:x,offsetR:$,offsetB:S,onAlign:I,onPrepare:D,onResize:e=>p({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:E,y:k},align:N,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},o.createElement(Fl,{prefixCls:T,isMobile:!1,ready:C,open:a,align:N,offsetR:$,offsetB:S,offsetX:w,offsetY:x,arrowPos:{x:E,y:k},popupSize:u,motion:s.popupMotion,uniqueContainerClassName:_(s.uniqueContainerClassName,P),uniqueContainerStyle:s.uniqueContainerStyle}))))};var Wl=function(e=ml){const t=o.forwardRef((t,n)=>{const{prefixCls:r="rc-trigger-popup",children:a,action:i="hover",showAction:l,hideAction:s,popupVisible:c,defaultPopupVisible:d,onOpenChange:u,afterOpenChange:p,onPopupVisibleChange:m,afterPopupVisibleChange:f,mouseEnterDelay:h,mouseLeaveDelay:g=.1,focusDelay:v,blurDelay:b,mask:y,maskClosable:C=!0,getPopupContainer:w,forceRender:x,autoDestroy:S,popup:E,popupClassName:k,uniqueContainerClassName:N,uniqueContainerStyle:I,popupStyle:P,popupPlacement:O,builtinPlacements:D={},popupAlign:R,zIndex:M,stretch:B,getPopupClassNameFromAlign:T,fresh:z,unique:A,alignPoint:L,onPopupClick:H,onPopupAlign:F,arrow:j,popupMotion:W,maskMotion:K,mobile:q,...X}=t,Y=S||!1,Q=void 0===c,Z=!!q,J=o.useRef({}),ee=o.useContext(wl),te=o.useMemo(()=>({registerSubPopup:(e,t)=>{J.current[e]=t,ee?.registerSubPopup(e,t)}}),[ee]),ne=o.useContext(xl),oe=il(),[re,ae]=o.useState(null),ie=o.useRef(null),le=V(e=>{ie.current=e,Ae(e)&&re!==e&&ae(e),ee?.registerSubPopup(oe,e)}),[se,ce]=o.useState(null),de=o.useRef(null),ue=V(e=>{Ae(e)&&se!==e&&(ce(e),de.current=e)}),pe={},me=V(e=>{const t=se;return t?.contains(e)||ra(t)?.host===e||e===t||re?.contains(e)||ra(re)?.host===e||e===re||Object.values(J.current).some(t=>t?.contains(e)||e===t)}),fe=j?{...!0!==j?j:{}}:null,[he,ge]=G(d||!1,c),ve=he||!1,be=o.useMemo(()=>{const e="function"==typeof a?a({open:ve}):a;return o.Children.only(e)},[a,ve]),ye=be?.props||{},Ce=V(()=>ve),we=V((e=0)=>({popup:E,target:se,delay:e,prefixCls:r,popupClassName:k,uniqueContainerClassName:N,uniqueContainerStyle:I,popupStyle:P,popupPlacement:O,builtinPlacements:D,popupAlign:R,zIndex:M,mask:y,maskClosable:C,popupMotion:W,maskMotion:K,arrow:fe,getPopupContainer:w,getPopupClassNameFromAlign:T,id:oe,onEsc:_e}));U(()=>{ne&&A&&se&&!Q&&!ee&&(ve?ne.show(we(h),Ce):ne.hide(g))},[ve,se]);const xe=o.useRef(ve);xe.current=ve;const Se=V(e=>{$(()=>{ve!==e&&(ge(e),u?.(e),m?.(e))})}),Ee=Ll(),ke=(e,t=0)=>{void 0===c&&ne&&A&&Q&&!ee?e?ne.show(we(t),Ce):ne.hide(t):Ee(()=>{Se(e)},t)};function _e({top:e}){e&&ke(!1)}const[Ne,Ie]=o.useState(!1);U(e=>{e&&!ve||Ie(!0)},[ve]);const[Pe,Oe]=o.useState(null),[De,Re]=o.useState(null),Me=e=>{Re([e.clientX,e.clientY])},[Be,Te,ze,Le,He,Fe,je,We,Ve,Ke,qe]=Al(ve,re,L&&null!==De?De:se,O,D,R,F,Z),[Ue,Xe]=function(e,t,n){return o.useMemo(()=>{const o=$l(t??e),r=$l(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,l,s),Ye=Ue.has("click"),Qe=Xe.has("click")||Xe.has("contextMenu"),Ze=V(()=>{Ne||qe()});!function(e,t,n,o,r){U(()=>{if(e&&t&&n){const a=n,i=Nl(t),l=Nl(a),s=_l(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,()=>{xe.current&&L&&Qe&&ke(!1)}),U(()=>{Ze()},[De,O]),U(()=>{ve&&!D?.[O]&&Ze()},[JSON.stringify(R)]);const Je=o.useMemo(()=>_(kl(D,r,Ke,L),T?.(Ke)),[Ke,T,D,r,L]);o.useImperativeHandle(n,()=>({nativeElement:de.current,popupElement:ie.current,forceAlign:Ze}));const[et,tt]=o.useState(0),[nt,ot]=o.useState(0),rt=()=>{if(B&&se){const e=se.getBoundingClientRect();tt(e.width),ot(e.height)}};function at(e,t,n,o,r){pe[e]=(a,...i)=>{r&&r()||(o?.(a),ke(t,n)),ye[e]?.(a,...i)}}U(()=>{Pe&&(qe(),Pe(),Oe(null))},[Pe]);const it=Ue.has("touch"),lt=Xe.has("touch"),st=o.useRef(!1);(it||lt)&&(pe.onTouchStart=(...e)=>{st.current=!0,xe.current&&lt?ke(!1):!xe.current&&it&&ke(!0),ye.onTouchStart?.(...e)}),(Ye||Qe)&&(pe.onClick=(e,...t)=>{xe.current&&Qe?ke(!1):!xe.current&&Ye&&(Me(e),ke(!0)),ye.onClick?.(e,...t),st.current=!1});const ct=function(e,t,n,r,a,i,l,s){const c=o.useRef(e);c.current=e;const d=o.useRef(!1);return o.useEffect(()=>{if(t&&r&&(!a||i)){const e=()=>{d.current=!1},t=e=>{!c.current||l(e.composedPath?.()?.[0]||e.target)||d.current||s(!1)},o=_l(r);o.addEventListener("pointerdown",e,!0),o.addEventListener("mousedown",t,!0),o.addEventListener("contextmenu",t,!0);const a=ra(n);if(a&&(a.addEventListener("mousedown",t,!0),a.addEventListener("contextmenu",t,!0)),"production"!==process.env.NODE_ENV&&n){const e=n.getRootNode?.(),t=r.getRootNode?.();$e(e===t,"trigger element and popup element should in same shadow root.")}return()=>{o.removeEventListener("pointerdown",e,!0),o.removeEventListener("mousedown",t,!0),o.removeEventListener("contextmenu",t,!0),a&&(a.removeEventListener("mousedown",t,!0),a.removeEventListener("contextmenu",t,!0))}}},[t,n,r,a,i]),function(){d.current=!0}}(ve,Qe||lt,se,re,y,C,me,ke),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,h,e,ft),at("onPointerEnter",!0,h,e,ft),pt=e=>{(ve||Ne)&&re?.contains(e.target)&&ke(!0,h)},L&&(pe.onMouseMove=e=>{ye.onMouseMove?.(e)})}ut&&(at("onMouseLeave",!1,g,void 0,ft),at("onPointerLeave",!1,g,void 0,ft),mt=()=>{ke(!1,g)}),Ue.has("focus")&&at("onFocus",!0,v),Xe.has("focus")&&at("onBlur",!1,b),Ue.has("contextMenu")&&(pe.onContextMenu=(e,...t)=>{xe.current&&Xe.has("contextMenu")?ke(!1):(Me(e),ke(!0)),e.preventDefault(),ye.onContextMenu?.(e,...t)});const ht=o.useRef(!1);ht.current||=x||ve||Ne;const gt={...ye,...pe},vt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{X[e]&&(vt[e]=(...t)=>{gt[e]?.(...t),X[e](...t)})});const bt={x:Fe,y:je},yt=o.cloneElement(be,{...gt,...vt});return o.createElement(o.Fragment,null,o.createElement(Ge,{disabled:!ve,ref:ue,onResize:()=>{rt(),Ze()}},yt),ht.current&&(!ne||!A)&&o.createElement(wl.Provider,{value:te},o.createElement(Cl,{portal:e,ref:le,prefixCls:r,popup:E,className:_(k,!Z&&Je),style:P,target:se,onMouseEnter:pt,onMouseLeave:mt,onPointerEnter:pt,zIndex:M,open:ve,keepDom:Ne,fresh:z,onClick:H,onPointerDownCapture:ct,mask:y,motion:W,maskMotion:K,onVisibleChanged:e=>{Ie(!1),qe(),p?.(e),f?.(e)},onPrepare:()=>new Promise(e=>{rt(),Oe(()=>e)}),forceRender:x,autoDestroy:Y,getPopupContainer:w,onEsc:_e,align:Ke,arrow:fe,arrowPos:bt,ready:Be,offsetX:Te,offsetY:ze,offsetR:Le,offsetB:He,onAlign:Ze,stretch:B,targetWidth:et/We,targetHeight:nt/Ve,mobile:q})))});return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(ml);var Vl=({children:e})=>{const{getPrefixCls:t}=r.useContext(st),n=t();return r.isValidElement(e)?r.createElement(oi,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>{const{className:o,style:a}=e.props,i={...a,...t};return r.cloneElement(e,{className:_(o,n),style:i})}):e};const Kl=[null,null];var ql=({children:e})=>r.createElement(jl,{postTriggerProps:e=>{const t="function"==typeof e.popup?e.popup():e.popup,{id:n,builtinPlacements:o}=e,a=function(e){if(Kl[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Kl[0]=e,Kl[1]=t}return Kl[1]}(o);return{...e,getPopupContainer:null,arrow:!1,popup:r.createElement(Vl,{key:n},t),builtinPlacements:a}}},e);const Ul=o.createContext(!1),Xl=({children:e,disabled:t})=>{const n=o.useContext(Ul);return o.createElement(Ul.Provider,{value:t??n},e)};var Gl=Ul;const Yl=o.createContext(void 0),Ql=({children:e,size:t})=>{const n=o.useContext(Yl);return o.createElement(Yl.Provider,{value:t||n},e)};var Zl=Yl;const Jl=o.createContext(!0);function es(e){const t=o.useContext(Jl),{children:n}=e,[,r]=Vr(),{motion:a}=r,i=o.useRef(!1);return i.current||(i.current=t!==a),i.current?o.createElement(Jl.Provider,{value:a},o.createElement(Na,{motion:a},n)):n}"production"!==process.env.NODE_ENV&&(Jl.displayName="MotionCacheContext");const ts=o.memo(({dropdownMatchSelectWidth:e})=>(Te("ConfigProvider").deprecated(void 0===e,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));"production"!==process.env.NODE_ENV&&(ts.displayName="PropWarning");var ns="production"!==process.env.NODE_ENV?ts:()=>null;let os=!1;process.env.NODE_ENV;const rs=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],as=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,affix:i,anchor:l,form:s,locale:c,componentSize:d,direction:u,space:p,splitter:m,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:b,legacyLocale:y,parentContext:C,iconPrefixCls:w,theme:x,componentDisabled:$,segmented:S,statistic:E,spin:k,calendar:_,carousel:N,cascader:I,collapse:P,typography:O,checkbox:D,descriptions:R,divider:M,drawer:B,skeleton:T,steps:z,image:A,layout:L,list:H,mentions:F,modal:j,progress:W,result:V,slider:K,breadcrumb:q,masonry:U,menu:X,pagination:G,input:Y,textArea:Q,otp:Z,empty:J,badge:ee,radio:te,rate:oe,ribbon:re,switch:ae,transfer:ie,avatar:le,message:se,tag:ce,table:de,card:ue,cardMeta:pe,tabs:me,timeline:fe,timePicker:he,upload:ge,notification:ve,tree:be,colorPicker:ye,datePicker:we,rangePicker:xe,flex:$e,wave:Se,dropdown:Ee,warning:ke,tour:_e,tooltip:Ne,popover:Ie,popconfirm:Pe,qrcode:Oe,floatButton:De,floatButtonGroup:Re,variant:Me,inputNumber:ze,treeSelect:Ae,watermark:Le}=e,He=o.useCallback((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||C.getPrefixCls("");return t?`${r}-${t}`:r},[C.getPrefixCls,e.prefixCls]),Fe=w||C.iconPrefixCls||it,je=n||C.csp;ta(Fe,je);const We=function(e,t,n){const o=Te("ConfigProvider"),r=e||{},a=!1!==r.inherit&&t?t:{...Tr,hashed:t?.hashed??Tr.hashed,cssVar:t?.cssVar},i=v();if("production"!==process.env.NODE_ENV){const e=r.cssVar||a.cssVar,t=!!("object"==typeof r.cssVar&&r.cssVar?.key||i);"production"!==process.env.NODE_ENV&&o(!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 ne(()=>{if(!e)return t;const o={...a.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});const l=`css-var-${i.replace(/:/g,"")}`,s={prefix:n?.prefixCls,...a.cssVar,...r.cssVar,key:r.cssVar?.key||l};return{...a,...r,token:{...a.token,...r.token},components:o,cssVar:s}},[r,a],(e,t)=>e.some((e,n)=>!xt(e,t[n],!0)))}(x,C.theme,{prefixCls:He("")});"production"!==process.env.NODE_ENV&&(os=os||!!We);const Ve={csp:je,autoInsertSpaceInButton:r,alert:a,affix:i,anchor:l,locale:c||y,direction:u,space:p,splitter:m,virtual:f,popupMatchSelectWidth:g??h,popupOverflow:b,getPrefixCls:He,iconPrefixCls:Fe,theme:We,segmented:S,statistic:E,spin:k,calendar:_,carousel:N,cascader:I,collapse:P,typography:O,checkbox:D,descriptions:R,divider:M,drawer:B,skeleton:T,steps:z,image:A,input:Y,textArea:Q,otp:Z,layout:L,list:H,mentions:F,modal:j,progress:W,result:V,slider:K,breadcrumb:q,masonry:U,menu:X,pagination:G,empty:J,badge:ee,radio:te,rate:oe,ribbon:re,switch:ae,transfer:ie,avatar:le,message:se,tag:ce,table:de,card:ue,cardMeta:pe,tabs:me,timeline:fe,timePicker:he,upload:ge,notification:ve,tree:be,colorPicker:ye,datePicker:we,rangePicker:xe,flex:$e,wave:Se,dropdown:Ee,warning:ke,tour:_e,tooltip:Ne,popover:Ie,popconfirm:Pe,qrcode:Oe,floatButton:De,floatButtonGroup:Re,variant:Me,inputNumber:ze,treeSelect:Ae,watermark:Le};if("production"!==process.env.NODE_ENV){Te("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Ke={...C};Object.keys(Ve).forEach(e=>{void 0!==Ve[e]&&(Ke[e]=Ve[e])}),rs.forEach(t=>{const n=e[t];n&&(Ke[t]=n)}),void 0!==r&&(Ke.button={autoInsertSpace:r,...Ke.button});const qe=ne(()=>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}=o.useContext(It),Xe=o.useMemo(()=>({prefixCls:Fe,csp:je,layer:Ue?"antd":void 0}),[Fe,je,Ue]);let Ge=o.createElement(o.Fragment,null,o.createElement(ns,{dropdownMatchSelectWidth:h}),t);const Ye=o.useMemo(()=>Ce(hi.Form?.defaultValidateMessages||{},qe.locale?.Form?.defaultValidateMessages||{},qe.form?.validateMessages||{},s?.validateMessages||{}),[qe,s?.validateMessages]);Object.keys(Ye).length>0&&(Ge=o.createElement(Ui.Provider,{value:Ye},Ge)),c&&(Ge=o.createElement(xi,{locale:c,_ANT_MARK__:Ci},Ge)),(Fe||je)&&(Ge=o.createElement(na.Provider,{value:Xe},Ge)),d&&(Ge=o.createElement(Ql,{size:d},Ge)),Ge=o.createElement(es,null,Ge),Ne?.unique&&(Ge=o.createElement(ql,null,Ge));const Qe=o.useMemo(()=>{const{algorithm:e,token:t,components:n,cssVar:o,...r}=We||{},a=e&&(!Array.isArray(e)||e.length>0)?Mt(e):Br,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=Mt(n.algorithm)),delete n.algorithm),i[e]=n});const l={...Qo,...t};return{...r,theme:a,token:l,components:i,override:{override:l,...i},cssVar:o}},[We]);return x&&(Ge=o.createElement(zr.Provider,{value:Qe},Ge)),qe.warning&&(Ge=o.createElement(Be.Provider,{value:qe.warning},Ge)),void 0!==$&&(Ge=o.createElement(Xl,{disabled:$},Ge)),o.createElement(st.Provider,{value:qe},Ge)},is=e=>{const t=o.useContext(st),n=o.useContext(bi);return o.createElement(as,{parentContext:t,legacyLocale:n,...e})};is.ConfigContext=st,is.SizeContext=Zl,is.config=e=>{},is.useConfig=function(){return{componentDisabled:c(Gl),componentSize:c(Zl)}},Object.defineProperty(is,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&ze(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Zl)}),"production"!==process.env.NODE_ENV&&(is.displayName="ConfigProvider");var ls=is;const ss={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>=ss.F1&&t<=ss.F12)return!1;switch(t){case ss.ALT:case ss.CAPS_LOCK:case ss.CONTEXT_MENU:case ss.CTRL:case ss.DOWN:case ss.END:case ss.ESC:case ss.HOME:case ss.INSERT:case ss.LEFT:case ss.MAC_FF_META:case ss.META:case ss.NUMLOCK:case ss.NUM_CENTER:case ss.PAGE_DOWN:case ss.PAGE_UP:case ss.PAUSE:case ss.PRINT_SCREEN:case ss.RIGHT:case ss.SHIFT:case ss.UP:case ss.WIN_KEY:case ss.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ss.ZERO&&e<=ss.NINE)return!0;if(e>=ss.NUM_ZERO&&e<=ss.NUM_MULTIPLY)return!0;if(e>=ss.A&&e<=ss.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ss.SPACE:case ss.QUESTION_MARK:case ss.NUM_PLUS:case ss.NUM_MINUS:case ss.NUM_PERIOD:case ss.NUM_DIVISION:case ss.SEMICOLON:case ss.DASH:case ss.EQUALS:case ss.COMMA:case ss.PERIOD:case ss.SLASH:case ss.APOSTROPHE:case ss.SINGLE_QUOTE:case ss.OPEN_SQUARE_BRACKET:case ss.BACKSLASH:case ss.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 cs={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 ds(){return ds=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},ds.apply(this,arguments)}const us=(e,t)=>o.createElement(ga,ds({},e,{ref:t,icon:cs})),ps=o.forwardRef(us);
13
- /**![loading](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk4OCA1NDhjLTE5LjkgMC0zNi0xNi4xLTM2LTM2IDAtNTkuNC0xMS42LTExNy0zNC42LTE3MS4zYTQ0MC40NSA0NDAuNDUgMCAwMC05NC4zLTEzOS45IDQzNy43MSA0MzcuNzEgMCAwMC0xMzkuOS05NC4zQzYyOSA4My42IDU3MS40IDcyIDUxMiA3MmMtMTkuOSAwLTM2LTE2LjEtMzYtMzZzMTYuMS0zNiAzNi0zNmM2OS4xIDAgMTM2LjIgMTMuNSAxOTkuMyA0MC4zQzc3Mi4zIDY2IDgyNyAxMDMgODc0IDE1MGM0NyA0NyA4My45IDEwMS44IDEwOS43IDE2Mi43IDI2LjcgNjMuMSA0MC4yIDEzMC4yIDQwLjIgMTk5LjMuMSAxOS45LTE2IDM2LTM1LjkgMzZ6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(ps.displayName="LoadingOutlined");var ms=ps;const fs="__rc_react_root__";const hs=()=>({height:0,opacity:0}),gs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},vs=e=>({height:e?e.offsetHeight:0}),bs=(e,t)=>!0===t?.deadline||"height"===t.propertyName,ys=(e=at)=>({motionName:`${e}-motion-collapse`,onAppearStart:hs,onEnterStart:hs,onAppearActive:gs,onEnterActive:gs,onLeaveStart:vs,onLeaveActive:hs,onAppearEnd:bs,onEnterEnd:bs,onLeaveEnd:bs,motionDeadline:500}),Cs=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var ws=Zr("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 xs=`${at}-wave-target`;function $s(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 Ss(e){return Number.isNaN(e)?0:e}const Es=e=>{const{className:t,target:n,component:r,colorSource:a}=e,i=o.useRef(null),[l,s]=o.useState(null),[c,d]=o.useState([]),[u,p]=o.useState(0),[m,f]=o.useState(0),[h,g]=o.useState(0),[v,b]=o.useState(0),[y,C]=o.useState(!1),w={left:u,top:m,width:h,height:v,borderRadius:c.map(e=>`${e}px`).join(" ")};function x(){const e=getComputedStyle(n);s(function(e,t=null){const n=getComputedStyle(e),{borderTopColor:o,borderColor:r,backgroundColor:a}=n;return t&&$s(n[t])?n[t]:[o,r,a].find($s)??null}(n,a));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;p(t?n.offsetLeft:Ss(-Number.parseFloat(o))),f(t?n.offsetTop:Ss(-Number.parseFloat(r))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([i,l,u,c].map(e=>Ss(Number.parseFloat(e))))}if(l&&(w["--wave-color"]=l),o.useEffect(()=>{if(n){const e=rt(()=>{x(),C(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(n)),()=>{rt.cancel(e),t?.disconnect()}}},[n]),!y)return null;const $=("Checkbox"===r||"Radio"===r)&&n?.classList.contains(xs);return o.createElement(oi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||"opacity"===t.propertyName){const e=i.current?.parentElement;(async function(e){return Promise.resolve().then(()=>{e[fs]?.unmount(),delete e[fs]})})(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>o.createElement("div",{ref:ce(i,n),className:_(t,e,{"wave-quick":$}),style:w}))};var ks=(e,t)=>{const{component:n}=t;if("Checkbox"===n&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),function(e,t){const n=t[fs]||E(t);n.render(e),t[fs]=n}(o.createElement(Es,{...t,target:e}),r)};var _s=(e,t,n,r)=>{const{wave:a}=o.useContext(st),[,i,l]=Vr(),s=V(o=>{const s=e.current;if(a?.disabled||!s)return;const c=s.querySelector(`.${xs}`)||s,{showEffect:d}=a||{};(d||ks)(c,{className:t,token:i,component:n,event:o,hashId:l,colorSource:r})}),c=o.useRef(null);o.useEffect(()=>()=>{rt.cancel(c.current)},[]);return e=>{rt.cancel(c.current),c.current=rt(()=>{s(e)})}};const Ns=e=>{const{children:t,disabled:n,component:o,colorSource:a}=e,{getPrefixCls:i}=c(st),l=m(null),s=i("wave"),d=ws(s),u=_s(l,_(s,d),o,a);if(r.useEffect(()=>{const e=l.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!Sl(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)}},[n]),!r.isValidElement(t))return t??null;return Wi(t,{ref:ue(t)?ce(me(t),l):l})};"production"!==process.env.NODE_ENV&&(Ns.displayName="Wave");var Is=Ns;var Ps=e=>{const t=r.useContext(Zl);return r.useMemo(()=>e?"string"==typeof e?e??t:"function"==typeof e?e(t):t:t,[e,t])};const Os=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}};var Ds=Qr(["Space","Compact"],e=>[Os(e)],()=>({}),{resetStyle:!1});const Rs=o.createContext(null),Ms=(e,t)=>{const n=o.useContext(Rs),r=o.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:a}=n,i="vertical"===o?"-vertical-":"-";return _(`${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:r}},Bs=e=>{const{children:t}=e;return o.createElement(Rs.Provider,{value:null},t)},Ts=e=>{const{children:t,...n}=e;return o.createElement(Rs.Provider,{value:o.useMemo(()=>n,[n])},t)},zs=o.createContext(void 0);var As=e=>{const{getPrefixCls:t,direction:n}=o.useContext(st),{prefixCls:r,size:a,className:i,...l}=e,s=t("btn-group",r),[,,c]=Vr(),d=o.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]);if("production"!==process.env.NODE_ENV){const e=Te("Button.Group");e.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&e(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const u=_(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:"rtl"===n},i,c);return o.createElement(zs.Provider,{value:a},o.createElement("div",{...l,className:u}))};const Ls=/^[\u4E00-\u9FA5]{2}$/,Hs=Ls.test.bind(Ls);function Fs(e){return"string"==typeof e}function js(e){return"text"===e||"link"===e}function Ws(e,t,n,o){let a=!1;const i=[];return r.Children.forEach(e,e=>{const t=typeof e,n="string"===t||"number"===t;if(a&&n){const t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);a=n}),r.Children.map(i,e=>function(e,t,n,o){if(!Si(e)||""===e)return;const a=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Fs(e.type)&&Hs(e.props.children)?Wi(e,e=>({...e,children:e.children.split("").join(a),className:o,style:n})):Fs(e)?r.createElement("span",{className:o,style:n},Hs(e)?e.split("").join(a):e):ji(e)?r.createElement("span",{className:o,style:n},e):Wi(e,e=>({...e,className:_(e.className,o)||void 0,style:{...e.style,...n}}))}(e,t,n,o))}["default","primary","danger"].concat(Ze(Xo));const Vs=b((e,t)=>{const{className:n,style:o,children:a,prefixCls:i}=e,l=_(`${i}-icon`,n);return r.createElement("span",{ref:t,className:l,style:o},a)});var Ks=Vs;const qs=b((e,t)=>{const{prefixCls:n,className:o,style:a,iconClassName:i}=e,l=_(`${n}-loading-icon`,o);return r.createElement(Ks,{prefixCls:n,className:l,style:a,ref:t},r.createElement(ms,{className:i}))}),Us=()=>({width:0,opacity:0,transform:"scale(0)"}),Xs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var Gs=e=>{const{prefixCls:t,loading:n,existIcon:o,className:a,style:i,mount:l}=e,s=!!n;return o?r.createElement(qs,{prefixCls:t,className:a,style:i}):r.createElement(oi,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Us,onAppearActive:Xs,onEnterStart:Us,onEnterActive:Xs,onLeaveStart:Xs,onLeaveActive:Us},({className:e,style:n},o)=>{const l={...i,...n};return r.createElement(qs,{prefixCls:t,className:_(a,e),style:l,ref:o})})};const Ys=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Qs=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}},Ys(`${t}-primary`,r),Ys(`${t}-danger`,a)]}};const Zs=e=>Math.round(Number(e||0));class Js extends or{constructor(e){super((e=>{if(e instanceof or)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=Zs(100*e.s),n=Zs(100*e.b),o=Zs(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 ec="rc-color-picker",tc=e=>e instanceof Js?e:new Js(e),nc=tc("#1677ff"),oc=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 tc({...f,h:g<=0?0:g});case"alpha":return tc({...f,a:h<=0?0:h})}return tc({h:f.h,s:p<=0?0:p,b:m>=1?1:m,a:f.a})},rc=(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)}}},ac=({color:e,prefixCls:t,className:n,style:o,onClick:a})=>{const i=`${t}-color-block`;return r.createElement("div",{className:_(i,n),style:o,onClick:a},r.createElement("div",{className:`${i}-inner`,style:{background:e}}))};function ic(e){const{targetRef:t,containerRef:n,direction:o,onDragChange:r,onDragChangeComplete:i,calculate:l,color:s,disabledDrag:c}=e,[d,u]=a({x:0,y:0}),f=m(null),h=m(null);p(()=>{u(l())},[s]),p(()=>()=>{document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",h.current),f.current=null,h.current=null},[]);const g=e=>{const{pageX:a,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}=n.current.getBoundingClientRect(),{width:p,height:m}=t.current.getBoundingClientRect(),f=p/2,h=m/2,g=Math.max(0,Math.min(a-l,c))-f,v=Math.max(0,Math.min(i-s,u))-h,b={x:g,y:"x"===o?d.y:v};if(0===p&&0===m||p!==m)return!1;r?.(b)},v=e=>{e.preventDefault(),g(e)},b=e=>{e.preventDefault(),document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",f.current),document.removeEventListener("touchend",h.current),f.current=null,h.current=null,i?.()};return[d,e=>{document.removeEventListener("mousemove",f.current),document.removeEventListener("mouseup",h.current),c||(g(e),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b),f.current=v,h.current=b)}]}const lc=({size:e="default",color:t,prefixCls:n})=>r.createElement("div",{className:_(`${n}-handler`,{[`${n}-handler-sm`]:"small"===e}),style:{backgroundColor:t}}),sc=({children:e,style:t,prefixCls:n})=>r.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),cc=b((e,t)=>{const{children:n,x:o,y:a}=e;return r.createElement("div",{ref:t,style:{position:"absolute",left:`${o}%`,top:`${a}%`,zIndex:1,transform:"translate(-50%, -50%)"}},n)}),dc=({color:e,onChange:t,prefixCls:n,onChangeComplete:o,disabled:a})=>{const i=m(),l=m(),s=m(e),c=V(n=>{const o=oc({offset:n,targetRef:l,containerRef:i,color:e});s.current=o,t(o)}),[d,u]=ic({color:e,containerRef:i,targetRef:l,calculate:()=>rc(e),onDragChange:c,onDragChangeComplete:()=>o?.(s.current),disabledDrag:a});return r.createElement("div",{ref:i,className:`${n}-select`,onMouseDown:u,onTouchStart:u},r.createElement(sc,{prefixCls:n},r.createElement(cc,{x:d.x,y:d.y,ref:l},r.createElement(lc,{color:e.toRgbString(),prefixCls:n})),r.createElement("div",{className:`${n}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},uc=({colors:e,children:t,direction:n="to right",type:o,prefixCls:a})=>{const i=d(()=>e.map((t,n)=>{let r=tc(t);return"alpha"===o&&n===e.length-1&&(r=new Js(r.setA(1))),r.toRgbString()}).join(","),[e,o]);return r.createElement("div",{className:`${a}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${n}, ${i})`}},t)},pc=e=>{const{prefixCls:t,colors:n,disabled:o,onChange:a,onChangeComplete:i,color:l,type:s}=e,c=m(null),d=m(null),u=m(l),p=e=>"hue"===s?e.getHue():100*e.a,f=V(e=>{const t=oc({offset:e,targetRef:d,containerRef:c,color:l,type:s});u.current=t,a(p(t))}),[h,g]=ic({color:l,targetRef:d,containerRef:c,calculate:()=>rc(l,s),onDragChange:f,onDragChangeComplete(){i(p(u.current))},direction:"x",disabledDrag:o}),v=r.useMemo(()=>{if("hue"===s){const e=l.toHsb();e.s=1,e.b=1,e.a=1;return new Js(e)}return l},[l,s]),b=r.useMemo(()=>n.map(e=>`${e.color} ${e.percent}%`),[n]);return r.createElement("div",{ref:c,className:_(`${t}-slider`,`${t}-slider-${s}`),onMouseDown:g,onTouchStart:g},r.createElement(sc,{prefixCls:t},r.createElement(cc,{x:h.x,y:h.y,ref:d},r.createElement(lc,{size:"small",color:v.toHexString(),prefixCls:t})),r.createElement(uc,{colors:b,type:s,prefixCls:t})))};function mc(e){return o.useMemo(()=>{const{slider:t}=e||{};return[t||pc]},[e])}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)}const hc=[{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}],gc=b((e,t)=>{const{value:n,defaultValue:o,prefixCls:a=ec,onChange:i,onChangeComplete:l,className:s,style:c,panelRender:u,disabledAlpha:p=!1,disabled:m=!1,components:f}=e,[h]=mc(f),[g,v]=((e,t)=>{const[n,o]=G(e,t);return[d(()=>tc(n),[n]),o]})(o||nc,n),b=d(()=>g.setA(1).toRgbString(),[g]),y=(e,t)=>{n||v(e),i?.(e,t)},C=e=>new Js(g.setHue(e)),w=e=>new Js(g.setA(e/100)),x=_(`${a}-panel`,s,{[`${a}-panel-disabled`]:m}),$={prefixCls:a,disabled:m,color:g},S=r.createElement(r.Fragment,null,r.createElement(dc,fc({onChange:y},$,{onChangeComplete:l})),r.createElement("div",{className:`${a}-slider-container`},r.createElement("div",{className:_(`${a}-slider-group`,{[`${a}-slider-group-disabled-alpha`]:p})},r.createElement(h,fc({},$,{type:"hue",colors:hc,min:0,max:359,value:g.getHue(),onChange:e=>{y(C(e),{type:"hue",value:e})},onChangeComplete:e=>{l&&l(C(e))}})),!p&&r.createElement(h,fc({},$,{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))}}))),r.createElement(ac,{color:g.toRgbString(),prefixCls:a})));return r.createElement("div",{className:x,style:c,ref:t},"function"==typeof u?u(S):S)});"production"!==process.env.NODE_ENV&&(gc.displayName="ColorPicker");let vc=function(){return So(function e(t){if(xo(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 Js(this.colors[0].color.metaColor)):this.metaColor=new Js(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 bc={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 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)}const Cc=(e,t)=>o.createElement(ga,yc({},e,{ref:t,icon:bc})),wc=o.forwardRef(Cc);
14
- /**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(wc.displayName="RightOutlined");var xc=wc;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)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$c.apply(null,arguments)}var Sc=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 Ec=e=>({animationDuration:e,animationFillMode:"both"}),kc=e=>({animationDuration:e,animationFillMode:"both"}),_c=(e,t,n,o,r=!1)=>{const a=r?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:{...Ec(o),animationPlayState:"paused"},[`${a}${e}-leave`]:{...kc(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"}}},Nc=new fo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Ic=new fo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Pc=(e,t=!1)=>{const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[_c(o,Nc,Ic,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Oc=new fo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dc=new fo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Rc=new fo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Mc=new fo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Bc=new fo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Tc=new fo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zc={"move-up":{inKeyframes:new fo("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 fo("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:Oc,outKeyframes:Dc},"move-left":{inKeyframes:Rc,outKeyframes:Mc},"move-right":{inKeyframes:Bc,outKeyframes:Tc}},Ac=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=zc[t];return[_c(o,r,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Lc=new fo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Hc=new fo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fc=new fo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),jc=new fo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wc=new fo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Vc=new fo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kc=new fo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qc=new fo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Uc={"slide-up":{inKeyframes:Lc,outKeyframes:Hc},"slide-down":{inKeyframes:Fc,outKeyframes:jc},"slide-left":{inKeyframes:Wc,outKeyframes:Vc},"slide-right":{inKeyframes:Kc,outKeyframes:qc}},Xc=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=Uc[t];return[_c(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}}]},Gc=new fo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yc=new fo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Qc=new fo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zc=new fo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Jc=new fo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ed=new fo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),td={zoom:{inKeyframes:Gc,outKeyframes:Yc},"zoom-big":{inKeyframes:Qc,outKeyframes:Zc},"zoom-big-fast":{inKeyframes:Qc,outKeyframes:Zc},"zoom-left":{inKeyframes:new fo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new fo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new fo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new fo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Jc,outKeyframes:ed},"zoom-down":{inKeyframes:new fo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new fo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},nd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=td[t];return[_c(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}}]},od=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:o}=e;return Fo(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:o})},rd=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??Go(t),a=e.contentLineHeightSM??Go(n),i=e.contentLineHeightLG??Go(o),l=((e,t)=>{const{r:n,g:o,b:r,a:a}=e.toRgb(),i=new Js(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:.299*n+.587*o+.114*r>192})(new vc(e.colorBgSolid),"#fff")?"#000":"#fff",s=Xo.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${Ht(e.controlOutlineWidth)} 0 ${Lr(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 ad=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}}}},Xo.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 id=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)":Xr(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()}}}}}},ld=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),sd=(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:`${Ht(s)} ${Ht(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:o,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:ld(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},cd=e=>{const t=Fo(e,{fontSize:e.contentFontSize});return sd(t,e.componentCls)},dd=e=>{const t=Fo(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return sd(t,`${e.componentCls}-sm`)},ud=e=>{const t=Fo(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return sd(t,`${e.componentCls}-lg`)},pd=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var md=Qr("Button",e=>{const t=od(e);return[id(t),cd(t),dd(t),ud(t),pd(t),ad(t),Qs(t)]},rd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function fd(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 hd(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 gd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:o}=t,r=o||n,a=`${r}-compact`;return{[a]:{...fd(e,a,t,r),...hd(r,a,t)}}}function vd(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 bd(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...vd(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 yd=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 Cd=Jr(["Button","compact"],e=>{const t=od(e);return[gd(t),bd(t),yd(t)]},rd);const wd={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},xd=r.forwardRef((e,t)=>{const{_skipSemantic:n,loading:o=!1,prefixCls:i,color:l,variant:s,type:u,danger:f=!1,shape:h,size:g,disabled:v,className:b,rootClassName:y,children:C,icon:w,iconPosition:x,iconPlacement:$,ghost:S=!1,block:E=!1,htmlType:k="button",classNames:N,styles:I,style:P,autoInsertSpace:O,autoFocus:D,...R}=e,M=Ie(C),B=u||"default",{button:T}=r.useContext(st),z=h||T?.shape||"default",[A,L]=d(()=>{if(l&&s)return[l,s];if(u||f){const e=wd[B]||[];return f?["danger",e[1]]:e}return T?.color&&T?.variant?[T.color,T.variant]:["default","outlined"]},[l,s,u,f,T?.color,T?.variant,B]),[H,F]=d(()=>S&&"solid"===L?[A,"outlined"]:[A,L],[A,L,S]),j="danger"===H,W=j?"dangerous":H,{getPrefixCls:V,direction:K,autoInsertSpace:q,className:X,style:G,classNames:Y,styles:Q}=dt("button"),Z=O??q??!0,J=V("btn",i),[ee,te]=md(J),ne=c(Gl),oe=v??ne,re=c(zs),ae=d(()=>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}}(o),[o]),[ie,le]=a(ae.loading),[se,ce]=a(!1),ue=m(null),pe=de(t,ue),me=1===M.length&&!w&&!js(F),fe=m(!0);r.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),U(()=>{let e=null;return ae.delay>0?e=setTimeout(()=>{e=null,le(!0)},ae.delay):le(ae.loading),function(){e&&(clearTimeout(e),e=null)}},[ae.delay,ae.loading]),p(()=>{if(!ue.current||!Z)return;const e=ue.current.textContent||"";me&&Hs(e)?se||ce(!0):se&&ce(!1)}),p(()=>{D&&ue.current&&ue.current.focus()},[]);const he=r.useCallback(t=>{ie||oe?t.preventDefault():e.onClick?.(t)},[e.onClick,ie,oe]);if("production"!==process.env.NODE_ENV){const e=Te("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof w&&w.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${w}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(S&&js(F)),"usage","`link` or `text` button can't be a `ghost` button."),e.deprecated(!x,"iconPosition","iconPlacement")}const{compactSize:ge,compactItemClassnames:ve}=Ms(J,K),be={large:"lg",small:"sm",middle:void 0},ye=Ps(e=>g??ge??re??e),Ce=ye?be[ye]??"":"",we=ie?"loading":w,xe=$??x??"start",$e=Ne(R,["navigate"]),Se={...e,type:B,color:H,variant:F,danger:j,shape:z,size:ye,disabled:oe,loading:ie,iconPlacement:xe},[Ee,ke]=Di([n?void 0:Y,N],[n?void 0:Q,I],{props:Se}),_e=_(J,ee,te,{[`${J}-${z}`]:"default"!==z&&"square"!==z&&z,[`${J}-${B}`]:B,[`${J}-dangerous`]:f,[`${J}-color-${W}`]:W,[`${J}-variant-${F}`]:F,[`${J}-${Ce}`]:Ce,[`${J}-icon-only`]:!C&&0!==C&&!!we,[`${J}-background-ghost`]:S&&!js(F),[`${J}-loading`]:ie,[`${J}-two-chinese-chars`]:se&&Z&&!ie,[`${J}-block`]:E,[`${J}-rtl`]:"rtl"===K,[`${J}-icon-end`]:"end"===xe},ve,b,y,X,Ee.root),Pe={...ke.root,...G,...P},Oe={className:Ee.icon,style:ke.icon},De=e=>r.createElement(Ks,{prefixCls:J,...Oe},e),Re=r.createElement(Gs,{existIcon:!!w,prefixCls:J,loading:ie,mount:fe.current,...Oe});let Me;Me=w&&!ie?De(w):o&&"object"==typeof o&&o.icon?De(o.icon):Re;const Be=Si(C)?Ws(C,me&&Z,ke.content,Ee.content):null;if(void 0!==$e.href)return r.createElement("a",{...$e,className:_(_e,{[`${J}-disabled`]:oe}),href:oe?void 0:$e.href,style:Pe,onClick:he,ref:pe,tabIndex:oe?-1:0,"aria-disabled":oe},Me,Be);let ze=r.createElement("button",{...R,type:k,className:_e,style:Pe,onClick:he,disabled:oe,ref:pe},Me,Be,ve&&r.createElement(Cd,{prefixCls:J}));return js(F)||(ze=r.createElement(Is,{component:"Button",disabled:ie},ze)),ze}),$d=xd;$d.Group=As,$d.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&($d.displayName="Button");var Sd=$d;const Ed="RC_FORM_INTERNAL_HOOKS",kd=()=>{ke(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_d=o.createContext({getFieldValue:kd,getFieldsValue:kd,getFieldError:kd,getFieldWarning:kd,getFieldsError:kd,isFieldsTouched:kd,isFieldTouched:kd,isFieldValidating:kd,isFieldsValidating:kd,resetFields:kd,setFields:kd,setFieldValue:kd,setFieldsValue:kd,validateFields:kd,submit:kd,getInternalHooks:()=>(kd(),{dispatch:kd,initEntityValue:kd,registerField:kd,useSubscribe:kd,setInitialValues:kd,destroyForm:kd,setCallbacks:kd,registerWatch:kd,getFields:kd,setValidateMessages:kd,setPreserve:kd,getInitialValue:kd})}),Nd=o.createContext(null);function Id(e){return null==e?[]:Array.isArray(e)?e:[e]}function Pd(){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 Od=Pd();function Dd(e){var t="function"==typeof Map?new Map:void 0;return Dd=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(Io())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&ko(r,n.prototype),r}(e,arguments,No(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ko(n,e)},Dd(e)}var Rd=/%[sdj%]/g,Md=function(){};function Bd(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 Td(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(Rd,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 zd(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 Ad(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&&(Md=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every(function(e){return"string"==typeof e})});var Ld=function(){_o(t,Dd(Error));var e=Po(t);function t(n,o){var r;return xo(this,t),yo(Eo(r=e.call(this,"Async Validation Error")),"errors",void 0),yo(Eo(r),"fields",void 0),r.errors=n,r.fields=o,r}return So(t)}();function Hd(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,Ze(e[n]||[]))}),t}(e);Ad(i,n,function(e){return o(e),e.length?a(new Ld(e,Bd(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 Ld(d,Bd(d))):t(r)};l.length||(o(d),t(r)),l.forEach(function(t){var o=e[t];-1!==i.indexOf(t)?Ad(o,n,u):function(e,t,n){var o=[],r=0,a=e.length;function i(e){o.push.apply(o,Ze(e||[])),++r===a&&n(o)}e.forEach(function(e){t(e,i)})}(o,n,u)})});return u.catch(function(e){return e}),u}function Fd(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 jd(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===go(o)&&"object"===go(e[n])?e[n]=wo(wo({},e[n]),o):e[n]=o}return e}var Wd,Vd="enum",Kd=function(e,t,n,o,r,a){!e.required||n.hasOwnProperty(e.field)&&!zd(t,a||e.type)||o.push(Td(r.messages.required,e.fullField))},qd=/^(([^<>()\[\]\\.,;:\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,}))$/,Ud=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Xd={integer:function(e){return Xd.number(e)&&parseInt(e,10)===e},float:function(e){return Xd.number(e)&&!Xd.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"===go(e)&&!Xd.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(qd)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Wd)return Wd;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 Wd=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Ud)}},Gd={required:Kd,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Td(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Kd(e,t,n,o,r);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?Xd[a](t)||o.push(Td(r.messages.types[a],e.fullField,e.type)):a&&go(t)!==e.type&&o.push(Td(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(Td(r.messages[c].len,e.fullField,e.len)):i&&!l&&s<e.min?o.push(Td(r.messages[c].min,e.fullField,e.min)):l&&!i&&s>e.max?o.push(Td(r.messages[c].max,e.fullField,e.max)):i&&l&&(s<e.min||s>e.max)&&o.push(Td(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Vd]=Array.isArray(e[Vd])?e[Vd]:[],-1===e[Vd].indexOf(t)&&o.push(Td(r.messages[Vd],e.fullField,e[Vd].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(Td(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Td(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Yd=function(e,t,n,o,r){var a=e.type,i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(zd(t,a)&&!e.required)return n();Gd.required(e,t,o,i,r,a),zd(t,a)||Gd.type(e,t,o,i,r)}n(i)},Qd={string:function(e,t,n,o,r){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(zd(t,"string")&&!e.required)return n();Gd.required(e,t,o,a,r,"string"),zd(t,"string")||(Gd.type(e,t,o,a,r),Gd.range(e,t,o,a,r),Gd.pattern(e,t,o,a,r),!0===e.whitespace&&Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),void 0!==t&&Gd.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),zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),void 0!==t&&(Gd.type(e,t,o,a,r),Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),void 0!==t&&Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),zd(t)||Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),void 0!==t&&(Gd.type(e,t,o,a,r),Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),void 0!==t&&(Gd.type(e,t,o,a,r),Gd.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();Gd.required(e,t,o,a,r,"array"),null!=t&&(Gd.type(e,t,o,a,r),Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),void 0!==t&&Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r),void 0!==t&&Gd.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(zd(t,"string")&&!e.required)return n();Gd.required(e,t,o,a,r),zd(t,"string")||Gd.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(zd(t,"date")&&!e.required)return n();var i;if(Gd.required(e,t,o,a,r),!zd(t,"date"))i=t instanceof Date?t:new Date(t),Gd.type(e,i,o,a,r),i&&Gd.range(e,i.getTime(),o,a,r)}n(a)},url:Yd,hex:Yd,email:Yd,required:function(e,t,n,o,r){var a=[],i=Array.isArray(t)?"array":go(t);Gd.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(zd(t)&&!e.required)return n();Gd.required(e,t,o,a,r)}n(a)}},Zd=function(){function e(t){xo(this,e),yo(this,"rules",null),yo(this,"_messages",Od),this.define(t)}return So(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==go(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=jd(Pd(),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===Od&&(i=Pd()),jd(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=wo({},o)),null!=(a=o[e]=i.transform(a))&&(i.type=i.type||(Array.isArray(a)?"array":go(a)))),(i="function"==typeof i?{validator:i}:wo({},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 Hd(l,r,function(t,n){var a,i=t.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!==go(i.fields)&&"object"!==go(i.defaultField));function c(e,t){return wo(wo({},t),{},{fullField:"".concat(i.fullField,".").concat(e),fullFields:i.fullFields?[].concat(Ze(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(Fd(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(Fd(i,o)):r.error&&(u=[r.error(i,Td(r.messages.required,i.field))]),n(u);var p={};i.defaultField&&Object.keys(t.value).map(function(e){p[e]=i.defaultField}),p=wo(wo({},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,Ze(u)),e&&e.length&&t.push.apply(t,Ze(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,Ze(e)):t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=Bd(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&&!Qd.hasOwnProperty(e.type))throw new Error(Td("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]?Qd.required:Qd[this.getType(e)]||void 0}}]),e}();yo(Zd,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Qd[e]=t}),yo(Zd,"warning",Md),yo(Zd,"messages",Od),yo(Zd,"validators",Qd);const Jd="'${name}' is not a valid ${type}",eu={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:Jd,method:Jd,array:Jd,object:Jd,number:Jd,date:Jd,boolean:Jd,integer:Jd,float:Jd,regexp:Jd,email:Jd,url:Jd,hex:Jd},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}"}},tu=Zd;const nu="CODE_LOGIC_ERROR";async function ou(e,t,n,r,a){const i={...n};if(delete i.ruleIndex,tu.warning=()=>{},i.validator){const e=i.validator;i.validator=(...t)=>{try{return e(...t)}catch(e){return Promise.reject(nu)}}}let l=null;i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField);const s=new tu({[e]:[i]}),c=Ce(eu,r.validateMessages);s.messages(c);let d=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(d=e.errors.map(({message:e},t)=>{const n=e===nu?c.default:e;return o.isValidElement(n)?o.cloneElement(n,{key:`error_${t}`}):n}))}if(!d.length&&l&&Array.isArray(t)&&t.length>0){return(await Promise.all(t.map((t,n)=>ou(`${e}.${n}`,t,l,r,a)))).reduce((e,t)=>[...e,...t],[])}const u={...n,name:e,enum:(n.enum||[]).join(", "),...a},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 ru(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(()=>{ke(!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,ke(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 ou(i,t,r,o,a);if(s.length)return void n([{errors:s,rule:r}])}e([])});else{const e=l.map(e=>ou(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 au(e){return Id(e)}function iu(e,t){let n={};return t.forEach(t=>{const o=fe(e,t);n=ge(n,t,o)}),n}function lu(e,t,n=!1){return e&&e.some(e=>su(t,e,n))}function su(e,t,n=!1){return!(!e||!t)&&(!(!n&&e.length!==t.length)&&t.every((t,n)=>e[n]===t))}function cu(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 du(){return du=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},du.apply(this,arguments)}const uu=[],pu=[];function mu(e,t,n,o,r,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):o!==r}class fu extends o.Component{static contextType=_d;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=uu;warnings=pu;constructor(e){if(super(e),e.fieldContext){const{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(Ed);n(this)}}componentDidMount(){const{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){const{getInternalHooks:e}=t,{registerField:n}=e(Ed);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,au(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};xt(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&&lu(t,l);switch("valueUpdate"!==n.type||"external"!==n.source||xt(s,c)||(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=uu,this.warnings=pu,this.triggerMetaEvent()),n.type){case"reset":if(!t||d)return this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=uu,this.warnings=pu,this.triggerMetaEvent(),a?.(),void this.refresh();break;case"remove":if(o&&mu(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||uu),"warnings"in r&&(this.warnings=r.warnings||pu),this.dirty=!0,this.triggerMetaEvent(),void this.reRender();if("value"in r&&lu(t,l,!0))return void this.reRender();if(o&&!l.length&&mu(o,e,i,s,c,n))return void this.reRender();break}case"dependenciesUpdate":if(r.map(au).some(e=>lu(n.relatedFields,e)))return void this.reRender();break;default:if(d||(!r.length||l.length||o)&&mu(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 Id(t).includes(o)})),l&&o&&(await new Promise(e=>{setTimeout(e,l)}),this.validatePromise!==a))return[];const c=ru(t,n,s,e,r,i);return c.catch(e=>e).then((e=uu)=>{if(this.validatePromise===a){this.validatePromise=null;const t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:o=uu})=>{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=uu,this.warnings=pu,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(Ed);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=Ie(e);return 1===t.length&&o.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}};getValue=e=>{const{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return fe(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(Ed),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=>{ke("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 Id(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:r}=this.getOnlyChild(t);let a;return r?a=n:o.isValidElement(n)?a=o.cloneElement(n,this.getControlled(n.props)):(ke(!n,"`children` of Field is not validate ReactElement."),a=n),o.createElement(o.Fragment,{key:e},a)}}function hu({name:e,...t}){const n=o.useContext(_d),r=o.useContext(Nd),a=void 0!==e?au(e):void 0,i=t.isListField??!!r;let l="keep";return i||(l=`_${(a||[]).join("_")}`),"production"!==process.env.NODE_ENV&&!1===t.preserve&&i&&a.length<=1&&ke(!1,"`preserve` should not apply on Form.List fields."),o.createElement(fu,du({key:l,name:a,isListField:i},t,{fieldContext:n}))}const gu="__@field_split__";function vu(e){return e.map(e=>`${typeof e}:${e}`).join(gu)}class bu{kvs=new Map;set(e,t){this.kvs.set(vu(e),t)}get(e){return this.kvs.get(vu(e))}getAsPrefix(e){const t=vu(e),n=t+gu,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(vu(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>{const o=t.split(gu);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 yu{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=>!su(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 Cu{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new yu(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===Ed?(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}):(ke(!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=Ce(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=ge(t,n,fe(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{const e=new bu;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{const t=fe(this.initialValues,e);return e.length?Ce(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||ke(!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 bu;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=au(e),o=n.getAsPrefix(t);return o.length?o:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{const t=au(e);return n.get(t)||{INVALIDATE_NAME_PATH:au(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=iu(this.store,a.map(au));return i.forEach(e=>{fe(l,e)||(l=ge(l,e,[]))}),l};getFieldValue=e=>{this.warningUnhooked();const t=au(e);return fe(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:au(e[n]),errors:[],warnings:[]})};getFieldError=e=>{this.warningUnhooked();const t=au(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();const t=au(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(au),r=!1):(o=null,r=t):(o=t.map(au),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 bu;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(au);return t.some(e=>{const t=e.getNamePath();return lu(n,t)&&e.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{const t=new bu,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))ke(!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)ke(!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(ge(this.store,o,[...r][0].value))}}}})})(o)};resetFields=e=>{this.warningUnhooked();const t=this.store;if(!e)return this.updateStore(Ce(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),void this.notifyWatch();const n=e.map(au);n.forEach(e=>{const t=this.getInitialValue(e);this.updateStore(ge(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=au(o);n.push(a),"value"in r&&this.updateStore(ge(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===fe(this.store,n)&&this.updateStore(ge(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=>!su(e.getNamePath(),t))){const n=this.store;this.updateStore(ge(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=au(e),o=this.store;this.updateStore(ge(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=iu(this.store,[n]);a(t,ye([this.getFieldsValue(),t],{prepareArray:t=>e?.isList()?[]:[...t||[]]}))}this.triggerOnFieldsChange([n,...r])};setFieldsValue=e=>{this.warningUnhooked();const t=this.store;if(e){const t=Ce(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 bu;this.getFieldEntities().forEach(e=>{const{dependencies:t}=e.props;(t||[]).forEach(t=>{const n=au(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 bu;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})=>lu(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(au):[],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=>su(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||lu(a,t,d))){const n=e.validateRules({validateMessages:{...eu,...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 wu(e){const t=o.useRef(null),[,n]=o.useState({});if(!t.current)if(e)t.current=e;else{const e=new Cu(()=>{n({})});t.current=e.getForm()}return[t.current]}const xu=o.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}});function $u(){return $u=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},$u.apply(this,arguments)}const Su=({name:e,initialValues:t,fields:n,form:r,preserve:a,children:i,component:l="form",validateMessages:s,validateTrigger:c="onChange",onValuesChange:d,onFieldsChange:u,onFinish:p,onFinishFailed:m,clearOnDestroy:f,...h},g)=>{const v=o.useRef(null),b=o.useContext(xu),[y]=wu(r),{useSubscribe:C,setInitialValues:w,setCallbacks:x,setValidateMessages:$,setPreserve:S,destroyForm:E}=y.getInternalHooks(Ed);o.useImperativeHandle(g,()=>({...y,nativeElement:v.current})),o.useEffect(()=>(b.registerForm(e,y),()=>{b.unregisterForm(e)}),[b,y,e]),$({...b.validateMessages,...s}),x({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(a);const k=o.useRef(null);let _;w(t,!k.current),k.current||(k.current=!0),o.useEffect(()=>()=>E(f),[]);const N="function"==typeof i;if(N){_=i(y.getFieldsValue(!0),y)}else _=i;C(!N);const I=o.useRef(null);o.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=o.useMemo(()=>({...y,validateTrigger:c}),[y,c]),O=o.createElement(Nd.Provider,{value:null},o.createElement(_d.Provider,{value:P},_));return!1===l?O:o.createElement(l,$u({},h,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),h.onReset?.(e)}}),O)};function Eu(e){try{return JSON.stringify(e)}catch{return Math.random()}}const ku=o.forwardRef(Su);ku.FormProvider=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const a=o.useContext(xu),i=o.useRef({});return o.createElement(xu.Provider,{value:{...a,validateMessages:{...a.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:i.current}),a.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(i.current={...i.current,[e]:t}),a.registerForm(e,t)},unregisterForm:e=>{const t={...i.current};delete t[e],i.current=t,a.unregisterForm(e)}}},r)},ku.Field=hu,ku.List=function({name:e,initialValue:t,children:n,rules:r,validateTrigger:a,isListField:i}){const l=o.useContext(_d),s=o.useContext(Nd),c=o.useRef({keys:[],id:0}).current,d=o.useMemo(()=>[...au(l.prefixName)||[],...au(e)],[l.prefixName,e]),u=o.useMemo(()=>({...l,prefixName:d}),[l,d]),p=o.useMemo(()=>({getKey:e=>{const t=d.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,d]);return"function"!=typeof n?(ke(!1,"Form.List only accepts function as children."),null):o.createElement(Nd.Provider,{value:p},o.createElement(_d.Provider,{value:u},o.createElement(hu,{name:[],shouldUpdate:(e,t,{source:n})=>"internal"!==n&&e!==t,rules:r,validateTrigger:a,initialValue:t,isList:!0,isListField:i??!!s},({value:e=[],onChange:t},o)=>{const{getFieldValue:r}=l,a=()=>r(d||[])||[],i={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)&&ke(!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=cu(c.keys,e,n),t(cu(o,e,n)))}};let s=e||[];return Array.isArray(s)||(s=[],"production"!==process.env.NODE_ENV&&ke(!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}}),i,o)})))},ku.useForm=wu,ku.useWatch=function(...e){const[t,n={}]=e,o=function(e){return e&&!!e._init}(n)?{form:n}:n,r=o.form,[i,l]=a(()=>"function"==typeof t?t({}):void 0),s=d(()=>Eu(i),[i]);m(s).current=s;const u=c(_d),f=r||u,h=f&&f._init;"production"!==process.env.NODE_ENV&&ke(2===e.length&&!r||h,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:g,getInternalHooks:v}=f,{registerWatch:b}=v(Ed),y=V((e,n)=>{const r=o.preserve?n??g(!0):e??g(),a="function"==typeof t?t(r):fe(r,au(t));Eu(i)!==Eu(a)&&l(a)}),C="function"==typeof t?t:JSON.stringify(t);return p(()=>{h&&y()},[h,C]),p(()=>{if(!h)return;return b((e,t)=>{y(e,t)})},[h]),i};const _u=o.createContext({});"production"!==process.env.NODE_ENV&&(_u.displayName="FormItemInputContext");const Nu=({children:e,status:t,override:n})=>{const r=o.useContext(_u),a=o.useMemo(()=>{const e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return o.createElement(_u.Provider,{value:a},e)},Iu=o.createContext(void 0);var Pu=e=>{const{space:t,form:n,children:o}=e;if(!Si(o))return null;let a=o;return n&&(a=r.createElement(Nu,{override:!0,status:!0},a)),t&&(a=r.createElement(Bs,null,a)),a};var Ou=(e,t,n,r,a)=>function(e){return t=>o.createElement(ls,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,{...t}))}(i=>{const{prefixCls:l,style:s}=i,c=o.useRef(null),[d,u]=o.useState(0),[p,m]=o.useState(0),[f,h]=G(!1,i.open),{getPrefixCls:g}=o.useContext(st),v=g(r||"select",l);o.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=a?`.${a(v)}`:`.${v}-dropdown`,o=c.current?.querySelector(n);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[v]);let b={...i,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 o.createElement("div",{ref:c,style:y},o.createElement(e,{...b}))});const Du=o.createContext(null);function Ru(){return o.useContext(Du)}function Mu(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Bu(){return Bu=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},Bu.apply(this,arguments)}const Tu=(e,t)=>{const{prefixCls:n,disabled:r,visible:a,children:i,popupElement:l,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:C,onPopupMouseEnter:w,onPopupMouseDown:x,onPopupBlur:$,...S}=e,E=`${n}-dropdown`;let k=l;g&&(k=g(l));const N=o.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]),I=s?`${E}-${s}`:c,P="number"==typeof h,O=o.useMemo(()=>P?null:!1===h?"minWidth":"width",[h,P]);let D=d;P&&(D={...d,width:h});const R=o.useRef(null);return o.useImperativeHandle(t,()=>({getPopupElement:()=>R.current?.popupElement})),o.createElement(Wl,Bu({},S,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:m||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:E,popupMotion:{motionName:I},popup:o.createElement("div",{onMouseEnter:w,onMouseDown:x,onBlur:$},k),ref:R,stretch:O,popupAlign:v,popupVisible:a,getPopupContainer:b,popupClassName:_(u,{[`${E}-empty`]:y}),popupStyle:D,onPopupVisibleChange:C}),i)},zu=o.forwardRef(Tu);function Au(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 Lu(e){return void 0!==e&&!Number.isNaN(e)}function Hu(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 Fu(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>(ke(!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&&(zu.displayName="SelectTrigger");function ju(e){const{visible:t,values:n}=e;if(!t)return null;return o.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 Wu=(e,t=1)=>{t<=0?e():(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{Wu(e,t-1)})};function Vu(e){const{children:t,...n}=e;return t?o.createElement("div",n,t):null}const Ku=o.createContext(null);function qu(){return o.useContext(Ku)}const Uu=o.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:a,style:i,syncWidth:l,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:C="input"}}=qu(),{id:w,classNames:x,styles:$,open:S,activeDescendantId:E,role:k,disabled:N}=Ru()||{},I=_(`${p}-input`,x?.input,c),P=o.useRef(!1),O=o.useRef(null),D=o.useRef(null);o.useImperativeHandle(t,()=>D.current);const[R,M]=o.useState(void 0);U(()=>{const e=D.current;if(l&&e){e.style.width="0px";const t=e.scrollWidth;M(t),e.style.width=""}},[l,s]);const B={id:w,type:"combobox"===m?"text":"search",...u,ref:D,style:{...$?.input,...i,"--select-input-width":R},autoFocus:v,autoComplete:d||"off",className:I,disabled:N,value:s||"",onChange:e=>{let{value:t}=e.target;if(b&&O.current&&/[\r\n]/.test(O.current)){const e=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(e,O.current)}O.current=null,f&&f(t,!0,P.current),n?.(e)},onKeyDown:e=>{const{key:t}=e,{value:n}=e.currentTarget;"Enter"===t&&"tags"===m&&!P.current&&h&&h(n),r?.(e)},onBlur:e=>{g?.(),a?.(e)},onPaste:e=>{const{clipboardData:t}=e,n=t?.getData("text");O.current=n||""},onCompositionStart:()=>{P.current=!0},onCompositionEnd:e=>{if(P.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(o.isValidElement(C)){const t=C.props||{},n={placeholder:e.placeholder||y,...B,...t};return Object.keys(t).forEach(e=>{const o=t[e];"function"==typeof o&&(n[e]=(...t)=>{o(...t),B[e]?.(...t)})}),n.ref=ce(C.ref,B.ref),o.cloneElement(C,n)}const T=C;return o.createElement(T,B)});function Xu(e){const{prefixCls:t,placeholder:n,displayValues:r}=qu(),{classNames:a,styles:i}=Ru(),{show:l=!0}=e;return r.length?null:o.createElement("div",{className:_(`${t}-placeholder`,a?.placeholder),style:{visibility:l?"visible":"hidden",...i?.placeholder}},n)}const Gu=o.createContext(null);function Yu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!=typeof window&&window.document&&window.document.documentElement;function Qu(e){return["string","number"].includes(typeof e)}function Zu(e){let t;return e&&(Qu(e.title)?t=e.title.toString():Qu(e.label)&&(t=e.label.toString())),t}function Ju(){return Ju=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},Ju.apply(this,arguments)}process.env.NODE_ENV;const ep=o.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:a,displayValues:i,maxLength:l,mode:s}=qu(),{triggerOpen:c,title:d,showSearch:u,classNames:p,styles:m}=Ru(),f=o.useContext(Gu),[h,g]=o.useState(!1),v="combobox"===s,b=i[0],y=o.useMemo(()=>v&&a&&!h&&c?a:u?r:"",[v,a,h,c,r,u]),C=o.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:Zu(t.data),className:_(e.className,n),style:{...e.style,...o}})}}return b&&!e.title&&(e.title=Zu(b)),void 0!==d&&(e.title=d),e},[b,f?.flattenOptions,n,y,d]);return o.useEffect(()=>{v&&g(!1)},[v,a]),o.createElement("div",{className:_(`${n}-content`,p?.content),style:m?.content},b?o.createElement("div",C,b.label):o.createElement(Xu,{show:!y}),o.createElement(Uu,Ju({ref:t},e,{value:y,maxLength:"combobox"===s?l:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),tp=void 0;function np(e,t){const{prefixCls:n,invalidate:r,item:a,renderItem:i,responsive:l,responsiveDisabled:s,registerSize:c,itemKey:d,className:u,style:p,children:m,display:f,order:h,component:g="div",...v}=e,b=l&&!f;function y(e){c(d,e)}o.useEffect(()=>()=>{y(null)},[]);const C=i&&a!==tp?i(a,{index:h}):m;let w;r||(w={opacity:b?0:1,height:b?0:tp,overflowY:b?"hidden":tp,order:l?h:tp,pointerEvents:b?"none":tp,position:b?"absolute":tp});const x={};b&&(x["aria-hidden"]=!0);let $=o.createElement(g,$c({className:_(!r&&n,u),style:{...w,...p}},x,v,{ref:t}),C);return l&&($=o.createElement(Ge,{onResize:({offsetWidth:e})=>{y(e)},disabled:s},$)),$}const op=o.forwardRef(np);function rp(){const e=o.useRef(null);return t=>{e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)rt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}(()=>{S(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function ap(e,t){const[n,r]=o.useState(t);return[n,V(t=>{e(()=>{r(t)})})]}"production"!==process.env.NODE_ENV&&(op.displayName="Item");const ip=r.createContext(null),lp=(e,t)=>{const n=o.useContext(ip);if(!n){const{component:n="div",...r}=e;return o.createElement(n,$c({},r,{ref:t}))}const{className:r,...a}=n,{className:i,...l}=e;return o.createElement(ip.Provider,{value:null},o.createElement(op,$c({ref:t,className:_(r,i)},a,l)))},sp=o.forwardRef(lp);"production"!==process.env.NODE_ENV&&(sp.displayName="RawItem");const cp="responsive",dp="invalidate";function up(e){return`+ ${e.length} ...`}function pp(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:i,renderRawItem:l,itemKey:s,itemWidth:c=10,ssr:u,style:p,className:m,maxCount:f,renderRest:g,renderRawRest:v,prefix:b,suffix:y,component:C="div",itemComponent:w,onVisibleChange:x,...$}=e,S="full"===u,E=rp(),[k,N]=ap(E,null),I=k||0,[P,O]=ap(E,new Map),[D,R]=ap(E,0),[M,B]=ap(E,0),[T,z]=ap(E,0),[A,L]=ap(E,0),[H,F]=a(null),[j,W]=a(null),V=o.useMemo(()=>null===j&&S?Number.MAX_SAFE_INTEGER:j||0,[j,k]),[K,q]=a(!1),X=`${n}-item`,G=Math.max(D,M),Y=f===cp,Q=r.length&&Y,Z=f===dp,J=Q||"number"==typeof f&&r.length>f,ee=d(()=>{let e=r;return Q?e=null===k&&S?r:r.slice(0,Math.min(r.length,I/c)):"number"==typeof f&&(e=r.slice(0,f)),e},[r,c,k,f,Q]),te=d(()=>Q?r.slice(V+1):r.slice(ee.length),[r,ee,Q,V]),ne=h((e,t)=>"function"==typeof s?s(e):(s&&e?.[s])??t,[s]),oe=h(i||(e=>e),[i]);function re(e,t,n){(j!==e||void 0!==t&&t!==H)&&(W(e),n||(q(e<r.length-1),x?.(e)),void 0!==t&&F(t))}function ae(e,t){O(n=>{const o=new Map(n);return null===t?o.delete(e):o.set(e,t),o})}function ie(e){return P.get(ne(ee[e],e))}U(()=>{if(I&&"number"==typeof G&&ee){let e=T+A;const t=ee.length,n=t-1;if(!t)return void re(0,null);for(let o=0;o<t;o+=1){let t=ie(o);if(S&&(t=t||0),void 0===t){re(o-1,void 0,!0);break}if(e+=t,0===n&&e<=I||o===n-1&&e+ie(n)<=I){re(n,null);break}if(e+G>I){re(o-1,e-t-A+M);break}}y&&ie(0)+A>I&&F(null)}},[I,P,M,T,A,ne,ee]);const le=K&&!!te.length;let se={};null!==H&&Q&&(se={position:"absolute",left:H,top:0});const ce={prefixCls:X,responsive:Q,component:w,invalidate:Z},de=l?(e,t)=>{const n=ne(e,t);return o.createElement(ip.Provider,{key:n,value:{...ce,order:t,item:e,itemKey:n,registerSize:ae,display:t<=V}},l(e,t))}:(e,t)=>{const n=ne(e,t);return o.createElement(op,$c({},ce,{order:t,key:n,item:e,renderItem:oe,itemKey:n,registerSize:ae,display:t<=V}))},ue={order:le?V:Number.MAX_SAFE_INTEGER,className:`${X}-rest`,registerSize:function(e,t){B(t),R(M)},display:le},pe=g||up,me=v?o.createElement(ip.Provider,{value:{...ce,...ue}},v(te)):o.createElement(op,$c({},ce,ue),"function"==typeof pe?pe(te):pe),fe=o.createElement(C,$c({className:_(!Z&&n,m),style:p,ref:t},$),b&&o.createElement(op,$c({},ce,{responsive:Y,responsiveDisabled:!Q,order:-1,className:`${X}-prefix`,registerSize:function(e,t){z(t)},display:!0}),b),ee.map(de),J?me:null,y&&o.createElement(op,$c({},ce,{responsive:Y,responsiveDisabled:!Q,order:V,className:`${X}-suffix`,registerSize:function(e,t){L(t)},display:!0,style:se}),y));return Y?o.createElement(Ge,{onResize:function(e,t){N(t.clientWidth)},disabled:!Q},fe):fe}const mp=o.forwardRef(pp);mp.Item=sp,mp.RESPONSIVE=cp,mp.INVALIDATE=dp,"production"!==process.env.NODE_ENV&&(mp.displayName="Overflow");const fp=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:a,children:i,onMouseDown:l,onClick:s}=e,c="function"==typeof r?r(a):r;return o.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),l?.(e)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:o.createElement("span",{className:_(t.split(/\s+/).map(e=>`${e}-icon`))},i))};function hp(){return hp=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},hp.apply(this,arguments)}function gp(e){return e.key??e.value}const vp=e=>{e.preventDefault(),e.stopPropagation()};var bp=o.forwardRef(function({inputProps:e},t){const{prefixCls:n,displayValues:r,searchValue:a,mode:i,onSelectorRemove:l,removeIcon:s}=qu(),{disabled:c,showSearch:d,triggerOpen:u,toggleOpen:p,autoClearSearchValue:m,tagRender:f,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:v,classNames:b,styles:y}=Ru(),C=`${n}-selection-item`;let w=a;u||"multiple"!==i||!1===m||(w="");const x=d&&w||"",$=d&&!c,S=s??"×",E=h??(e=>`+ ${e.length} ...`),k=f,N=(e,t,n,r,a)=>o.createElement("span",{title:Zu(e),className:_(C,{[`${C}-disabled`]:n},b?.item),style:y?.item},o.createElement("span",{className:_(`${C}-content`,b?.itemContent),style:y?.itemContent},t),r&&o.createElement(fp,{className:_(`${C}-remove`,b?.itemRemove),style:y?.itemRemove,onMouseDown:vp,onClick:a,customizeIcon:S},"×")),I=(e,t,n,r,a,i,l)=>o.createElement("span",{onMouseDown:e=>{vp(e),p(!u)}},k({label:t,value:e,index:l?.index,disabled:n,closable:r,onClose:a,isMaxTag:!!i}));return o.createElement(mp,{prefixCls:`${n}-content`,className:b?.content,style:y?.content,prefix:r.length||a&&u?null:o.createElement(Xu,null),data:r,renderItem:(e,t)=>{const{disabled:n,label:o,value:r}=e,a=!c&&!n;let i=o;if("number"==typeof g&&("string"==typeof o||"number"==typeof o)){const e=String(i);e.length>g&&(i=`${e.slice(0,g)}...`)}const s=t=>{t&&t.stopPropagation(),(e=>{l?.(e)})(e)};return"function"==typeof k?I(r,i,n,a,s,void 0,t):N(e,i,n,a,s)},renderRest:e=>{if(!r.length)return null;const t="function"==typeof E?E(e):E;return"function"==typeof k?I(void 0,t,!1,!1,void 0,!0):N({title:t},t,!1)},suffix:o.createElement(Uu,hp({ref:t,disabled:c,readOnly:!$},e,{value:x||"",syncWidth:!0})),itemKey:gp,maxCount:v})});const yp=o.forwardRef(function(e,t){const{multiple:n,onInputKeyDown:r,tabIndex:a}=qu(),i=Ru(),{showSearch:l}=i,s={...ii(i,{aria:!0}),onKeyDown:r,readOnly:!l,tabIndex:a};return n?o.createElement(bp,{ref:t,inputProps:s}):o.createElement(ep,{ref:t,inputProps:s})});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)}const wp=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"];var xp=o.forwardRef(function(e,t){const{prefixCls:n,className:r,style:a,prefix:i,suffix:l,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:C,onClearMouseDown:w,onInputKeyDown:x,onSelectorRemove:$,tokenWithEnter:S,components:E,...k}=e,{triggerOpen:N,toggleOpen:I,showSearch:P,disabled:O,loading:D,classNames:R,styles:M}=Ru(),B=o.useRef(null),T=o.useRef(null),z=V(e=>{const{which:t}=e,n=T.current instanceof HTMLTextAreaElement;if(n||!N||t!==ss.UP&&t!==ss.DOWN||e.preventDefault(),x&&x(e),n&&!N&&~[ss.UP,ss.DOWN,ss.LEFT,ss.RIGHT].indexOf(t))return;var o;e.ctrlKey||e.altKey||e.metaKey||(!(o=t)||[ss.ESC,ss.SHIFT,ss.BACKSPACE,ss.TAB,ss.WIN_KEY,ss.ALT,ss.META,ss.WIN_KEY_RIGHT,ss.CTRL,ss.SEMICOLON,ss.EQUALS,ss.CAPS_LOCK,ss.CONTEXT_MENU,ss.UP,ss.LEFT,ss.RIGHT,ss.F1,ss.F2,ss.F3,ss.F4,ss.F5,ss.F6,ss.F7,ss.F8,ss.F9,ss.F10,ss.F11,ss.F12].includes(o))||I(!0)});o.useImperativeHandle(t,()=>({focus:e=>{(T.current||B.current).focus?.(e)},blur:()=>{(T.current||B.current).blur?.()},nativeElement:B.current}));const A=V(e=>{if(!O){const t=Le(T.current);e.nativeEvent._ori_target=t,t&&e.target!==t&&!t.contains(e.target)&&e.preventDefault();const n=N&&!d&&("combobox"===m||P);e.nativeEvent._select_lazy?N&&I(!1):(T.current?.focus(),n||I())}C?.(e)}),{root:L}=E,H=Ne(k,wp),F=ii(H,{aria:!0}),j=Object.keys(F),W={...e,onInputKeyDown:z};return L?o.isValidElement(L)?o.cloneElement(L,{...H,ref:ce(L.ref,B)}):o.createElement(L,Cp({},H,{ref:B})):o.createElement(Ku.Provider,{value:W},o.createElement("div",Cp({},Ne(H,j),{ref:B,className:r,style:a,onMouseDown:A}),o.createElement(Vu,{className:_(`${n}-prefix`,R?.prefix),style:M?.prefix},i),o.createElement(yp,{ref:T}),o.createElement(Vu,{className:_(`${n}-suffix`,{[`${n}-suffix-loading`]:D},R?.suffix),style:M?.suffix},l),s&&o.createElement(Vu,{className:_(`${n}-clear`,R?.clear),style:M?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,w?.(e)}},s),c))});function $p(){return $p=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},$p.apply(this,arguments)}const Sp=e=>"tags"===e||"multiple"===e,Ep=o.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:i,styles:l,classNames:s,showSearch:c,tagRender:u,showScrollBar:f="optional",direction:h,omitDomProps:g,displayValues:v,onDisplayValuesChange:b,emptyOptions:y,notFoundContent:C="Not Found",onClear:w,maxCount:x,placeholder:$,mode:S,disabled:E,loading:k,getInputElement:N,getRawInputElement:I,open:P,defaultOpen:O,onPopupVisibleChange:D,activeValue:R,onActiveValueChange:M,activeDescendantId:B,searchValue:T,autoClearSearchValue:z,onSearch:A,onSearchSplit:L,tokenSeparators:H,allowClear:F,prefix:j,suffix:W,suffixIcon:K,clearIcon:q,OptionList:U,animation:X,transitionName:Y,popupStyle:Q,popupClassName:Z,popupMatchSelectWidth:J,popupRender:ee,popupAlign:te,placement:ne,builtinPlacements:oe,getPopupContainer:re,showAction:ae=[],onFocus:ie,onBlur:le,onKeyUp:se,onKeyDown:ce,onMouseDown:de,components:ue,...pe}=e,me=Sp(S),fe=o.useRef(null),he=o.useRef(null),ge=o.useRef(null),[ve,be]=o.useState(!1);o.useImperativeHandle(t,()=>({focus:fe.current?.focus,blur:fe.current?.blur,scrollTo:e=>ge.current?.scrollTo(e),nativeElement:Le(fe.current)}));const ye=function(e,t,n){return o.useMemo(()=>{let{root:o,input:r}=e||{};return n&&(o=n()),t&&(r=t()),{root:o,input:r}},[e,t,n])}(ue,N,I),Ce=o.useMemo(()=>{if("combobox"!==S)return T;const e=v[0]?.value;return"string"==typeof e||"number"==typeof e?String(e):""},[T,S,v]),we="combobox"===S&&"function"==typeof N&&N()||null,xe=!C&&y,[$e,Se]=function(e,t,n,o){const[r,i]=a(!1);p(()=>{i(!0)},[]);const[l,s]=G(e,t),c=o(!!r&&l),d=m(0),u=V(e=>{n&&c!==e&&n(e),s(e)}),f=V((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():Wu(()=>{a()})});return[c,f]}(O||!1,P,D,e=>!E&&!xe&&e),Ee=o.useMemo(()=>(H||[]).some(e=>["\n","\r\n"].includes(e)),[H]),ke=(e,t,n)=>{if(me&&Lu(x)&&v.length>=x)return;let o=!0,r=e;M?.(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,H,Lu(x)?x-v.length:void 0),i=n?null:a;return"combobox"!==S&&i&&(r="",L?.(i),Se(!1),o=!1),A&&Ce!==r&&A(r,{source:t?"typing":"effect"}),e&&t&&o&&Se(!0),o};o.useEffect(()=>{$e||me||"combobox"===S||ke("",!1,!1)},[$e]),o.useEffect(()=>{E&&(Se(!1),be(!1))},[E,$e]);const[_e,Ne]=function(e=250){const t=o.useRef(null),n=o.useRef(null);return o.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)}]}(),Ie=o.useRef(!1),Pe=V(e=>{const t=v.filter(t=>t!==e);b(t,{type:"remove",values:[e]})}),Oe=()=>[Le(fe.current),he.current?.getPopupElement()];!function(e,t,n,r){const a=V(o=>{if(r)return;let a=o.target;a.shadowRoot&&o.composed&&(a=o.composedPath()[0]||a),o._ori_target&&(a=o._ori_target),t&&!Mu(e(),a)&&n(!1)});o.useEffect(()=>(window.addEventListener("mousedown",a),()=>window.removeEventListener("mousedown",a)),[a])}(Oe,$e,Se,!!ye.root);const De=o.useRef(!1),Re=()=>{$e&&!De.current&&Se(!1,{cancelFun:()=>Mu(Oe(),document.activeElement)})},Me=(e,...t)=>{const{target:n}=e,o=he.current?.getPopupElement();o?.contains(n)&&Se&&Se(!0),de?.(e,...t),De.current=!0,Wu(()=>{De.current=!1})},[,Be]=o.useState({});let Te;ye.root&&(Te=e=>{Se(e)});const ze=o.useMemo(()=>({...e,notFoundContent:C,open:$e,triggerOpen:$e,id:n,showSearch:c,multiple:me,toggleOpen:Se,showScrollBar:f,styles:l,classNames:s}),[e,C,Se,n,c,me,$e,f,l,s]),Ae=o.useMemo(()=>{const e=W??K;return"function"==typeof e?e({searchValue:Ce,open:$e,focused:ve,showSearch:c,loading:k}):e},[W,K,Ce,$e,ve,c,k]),{allowClear:He,clearIcon:Fe}=((e,t,n,o,r=!1,a,i)=>{const l=d(()=>"boolean"==typeof n?{allowClear:n}:n&&"object"==typeof n?n:{allowClear:!1},[n]);return d(()=>{const e=!r&&!1!==l.allowClear&&(t.length||a)&&!("combobox"===i&&""===a);return{allowClear:e,clearIcon:e?l.clearIcon||o||"×":null}},[l,o,r,t.length,a,i])})(0,v,F,q,E,Ce,S),je=o.createElement(U,{ref:ge}),We=_(r,i,{[`${r}-focused`]:ve,[`${r}-multiple`]:me,[`${r}-single`]:!me,[`${r}-allow-clear`]:He,[`${r}-show-arrow`]:null!=Ae,[`${r}-disabled`]:E,[`${r}-loading`]:k,[`${r}-open`]:$e,[`${r}-customize-input`]:we,[`${r}-show-search`]:c});let Ve=o.createElement(xp,$p({},pe,{ref:fe,prefixCls:r,className:We,focused:ve,prefix:j,suffix:Ae,clearIcon:Fe,multiple:me,mode:S,displayValues:v,placeholder:$,searchValue:Ce,activeValue:R,onSearch:ke,onSearchSubmit:e=>{e&&e.trim()&&A(e,{source:"submit"})},onInputBlur:()=>{Ie.current=!1},onFocus:e=>{be(!0),E||(ae.includes("focus")&&Se(!0),ie?.(e))},onBlur:e=>{be(!1),Ce&&("tags"===S?A(Ce,{source:"submit"}):"multiple"===S&&A("",{source:"blur"})),Re(),E||le?.(e)},onClearMouseDown:()=>{w?.(),fe.current?.focus(),b([],{type:"clear",values:v}),ke("",!1,!1)},onKeyDown:e=>{const t=_e(),{key:n}=e,o="Enter"===n;if(o&&("combobox"!==S&&e.preventDefault(),$e||Se(!0)),Ne(!!Ce),"Backspace"===n&&!t&&me&&!Ce&&v.length){const e=[...v];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&&b(e,{type:"remove",values:[t]})}!$e||o&&Ie.current||(o&&(Ie.current=!0),ge.current?.onKeyDown(e)),ce?.(e)},onKeyUp:(e,...t)=>{$e&&ge.current?.onKeyUp(e,...t),"Enter"===e.key&&(Ie.current=!1),se?.(e,...t)},onSelectorRemove:Pe,tokenWithEnter:Ee,onMouseDown:Me,components:ye}));return Ve=o.createElement(zu,{ref:he,disabled:E,prefixCls:r,visible:$e,popupElement:je,animation:X,transitionName:Y,popupStyle:Q,popupClassName:Z,direction:h,popupMatchSelectWidth:J,popupRender:ee,popupAlign:te,placement:ne,builtinPlacements:oe,getPopupContainer:re,empty:y,onPopupVisibleChange:Te,onPopupMouseEnter:function(){Be({})},onPopupMouseDown:Me,onPopupBlur:Re},Ve),o.createElement(Du.Provider,{value:ze},o.createElement(ju,{visible:ve&&!$e,values:v}),Ve)});"production"!==process.env.NODE_ENV&&(Ep.displayName="BaseSelect");const kp=()=>null;kp.isSelectOptGroup=!0;const _p=()=>null;_p.isSelectOption=!0;const Np=o.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:a,onInnerResize:i,innerProps:l,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}),o.createElement("div",{style:u},o.createElement(Ge,{onResize:({offsetHeight:e})=>{e&&i&&i()}},o.createElement("div",$c({style:p,className:_({[`${a}-holder-inner`]:a}),ref:d},l),r,c)))});function Ip({children:e,setRef:t}){const n=o.useCallback(e=>{t(e)},[]);return o.cloneElement(e,{ref:n})}function Pp(e,t,n){const[r,a]=o.useState(e),[i,l]=o.useState(null);return o.useEffect(()=>{const o=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}}(r||[],e||[],t);void 0!==o?.index&&(n?.(o.index),l(e[o.index])),a(e)},[e]),[i]}Np.displayName="Filler";const Op="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent);var Dp=(e,t,n,o)=>{const r=m(!1),a=m(null);const i=m({top:e,bottom:t,left:n,right:o});return i.current.top=e,i.current.bottom=t,i.current.left=n,i.current.right=o,(e,t,n=!1)=>{const o=e?t<0&&i.current.left||t>0&&i.current.right:t<0&&i.current.top||t>0&&i.current.bottom;return n&&o?(clearTimeout(a.current),r.current=!1):o&&!r.current||(clearTimeout(a.current),r.current=!0,a.current=setTimeout(()=>{r.current=!1},50)),!r.current&&o}};function Rp(e,t,n,o,r,a,i){const l=m(0),s=m(null),c=m(null),d=m(!1),u=Dp(t,n,o,r);const p=m(null),f=m(null);return[function(t){if(!e)return;rt.cancel(f.current),f.current=rt(()=>{p.current=null},2);const{deltaX:n,deltaY:o,shiftKey:r}=t;let m=n,h=o;("sx"===p.current||!p.current&&r&&o&&!n)&&(m=o,h=0,p.current="sx");const g=Math.abs(m),v=Math.abs(h);null===p.current&&(p.current=a&&g>v?"x":"y"),"y"===p.current?function(e,t){if(rt.cancel(s.current),u(!1,t))return;const n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,c.current=t,Op||n.preventDefault(),s.current=rt(()=>{const e=d.current?10:1;i(l.current*e,!1),l.current=0}))}(t,h):function(e,t){i(t,!0),Op||e.preventDefault()}(t,m)},function(t){e&&(d.current=t.detail===c.current)}]}class Mp{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 Bp(e){const t=parseFloat(e);return isNaN(t)?0:t}const Tp=14/15;function zp(e){return Math.floor(e**.5)}function Ap(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}const Lp=o.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:a,scrollRange:i,onStartMove:l,onStopMove:s,onScroll:c,horizontal:d,spinSize:u,containerSize:p,style:m,thumbStyle:f,showScrollBar:h}=e,[g,v]=o.useState(!1),[b,y]=o.useState(null),[C,w]=o.useState(null),x=!r,$=o.useRef(),S=o.useRef(),[E,k]=o.useState(h),N=o.useRef(),I=()=>{!0!==h&&!1!==h&&(clearTimeout(N.current),k(!0),N.current=setTimeout(()=>{k(!1)},3e3))},P=i-p||0,O=p-u||0,D=o.useMemo(()=>{if(0===a||0===P)return 0;return a/P*O},[a,P,O]),R=o.useRef({top:D,dragging:g,pageY:b,startTop:C});R.current={top:D,dragging:g,pageY:b,startTop:C};const M=e=>{v(!0),y(Ap(e,d)),w(R.current.top),l(),e.stopPropagation(),e.preventDefault()};o.useEffect(()=>{const e=e=>{e.preventDefault()},t=$.current,n=S.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",M,{passive:!1}),()=>{t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",M)}},[]);const B=o.useRef();B.current=P;const T=o.useRef();T.current=O,o.useEffect(()=>{if(g){let e;const t=t=>{const{dragging:n,pageY:o,startTop:r}=R.current;rt.cancel(e);const a=$.current.getBoundingClientRect(),i=p/(d?a.width:a.height);if(n){const n=(Ap(t,d)-o)*i;let a=r;!x&&d?a-=n:a+=n;const l=B.current,s=T.current,u=s?a/s:0;let p=Math.ceil(u*l);p=Math.max(p,0),p=Math.min(p,l),e=rt(()=>{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),rt.cancel(e)}}},[g]),o.useEffect(()=>(I(),()=>{clearTimeout(N.current)}),[a]),o.useImperativeHandle(t,()=>({delayHidden:I}));const z=`${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,[x?"left":"right"]:D})):(Object.assign(A,{width:8,top:0,bottom:0,[x?"right":"left"]:0}),Object.assign(L,{width:"100%",height:u,top:D})),o.createElement("div",{ref:$,className:_(z,{[`${z}-horizontal`]:d,[`${z}-vertical`]:!d,[`${z}-visible`]:E}),style:{...A,...m},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseMove:I},o.createElement("div",{ref:S,className:_(`${z}-thumb`,{[`${z}-thumb-moving`]:g}),style:{...L,...f},onMouseDown:M}))});"production"!==process.env.NODE_ENV&&(Lp.displayName="ScrollBar");function Hp(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}const Fp=[],jp={overflowY:"auto",overflowAnchor:"none"};function Wp(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:i,itemHeight:l,fullHeight:s=!0,style:c,data:d,children:u,itemKey:f,virtual:h,direction:g,scrollWidth:v,component:b="div",onScroll:y,onVirtualScroll:C,onVisibleChange:w,innerProps:x,extraRender:S,styles:E,showScrollBar:k="optional",...N}=e,I=o.useCallback(e=>"function"==typeof f?f(e):e?.[f],[f]),[P,O,D,R]=function(e,t,n){const[r,a]=o.useState(0),i=m(new Map),l=m(new Mp),s=m(0);function c(){s.current+=1}function d(e=!1){c();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+Bp(r)+Bp(a);l.current.get(n)!==i&&(l.current.set(n,i),e=!0)}}),e&&a(e=>e+1)};if(e)t();else{s.current+=1;const e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}return p(()=>c,[]),[function(o,r){const a=e(o),l=i.current.get(a);r?(i.current.set(a,r),d()):i.current.delete(a),!l!=!r&&(r?t?.(o):n?.(o))},d,l.current,r]}(I,null,null),M=!(!1===h||!i||!l),B=o.useMemo(()=>Object.values(D.maps).reduce((e,t)=>e+t,0),[D.id,D.maps]),T=M&&d&&(Math.max(l*d.length,B)>i||!!v),z="rtl"===g,A=_(n,{[`${n}-rtl`]:z},r),L=d||Fp,H=m(),F=m(),j=m(),[W,K]=a(0),[q,X]=a(0),[G,Y]=a(!1),Q=()=>{Y(!0)},Z=()=>{Y(!1)},J={getKey:I};function ee(e){K(t=>{let n;n="function"==typeof e?e(t):e;const o=function(e){let t=e;Number.isNaN(he.current)||(t=Math.min(t,he.current));return t=Math.max(t,0),t}(n);return H.current.scrollTop=o,o})}const te=m({start:0,end:L.length}),ne=m(),[oe]=Pp(L,I);ne.current=oe;const{scrollHeight:re,start:ae,end:ie,offset:le}=o.useMemo(()=>{if(!M)return{scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};if(!T)return{scrollHeight:F.current?.offsetHeight||0,start:0,end:L.length-1,offset:void 0};let e,t,n,o=0;const r=L.length;for(let a=0;a<r;a+=1){const r=L[a],s=I(r),c=D.get(s),d=o+(void 0===c?l:c);d>=W&&void 0===e&&(e=a,t=o),d>W+i&&void 0===n&&(n=a),o=d}return void 0===e&&(e=0,t=0,n=Math.ceil(i/l)),void 0===n&&(n=L.length-1),n=Math.min(n+1,L.length-1),{scrollHeight:o,start:e,end:n,offset:t}},[T,M,W,L,R,i]);te.current.start=ae,te.current.end=ie,o.useLayoutEffect(()=>{const e=D.getRecord();if(1===e.size){const t=Array.from(e.keys())[0],n=e.get(t),o=L[ae];if(o&&void 0===n){if(I(o)===t){const e=D.get(t)-l;ee(t=>t+e)}}}D.resetRecord()},[re]);const[se,ce]=o.useState({width:0,height:i}),de=m(),ue=m(),pe=o.useMemo(()=>Hp(se.width,v),[se.width,v]),me=o.useMemo(()=>Hp(se.height,re),[se.height,re]),fe=re-i,he=m(fe);he.current=fe;const ge=W<=0,ve=W>=fe,be=q<=0,ye=q>=v,Ce=Dp(ge,ve,be,ye),we=()=>({x:z?-q:q,y:W}),xe=m(we()),$e=V(e=>{if(C){const t={...we(),...e};xe.current.x===t.x&&xe.current.y===t.y||(C(t),xe.current=t)}});function Se(e,t){const n=e;t?($(()=>{X(n)}),$e()):ee(n)}const Ee=e=>{let t=e;const n=v?v-se.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},_e=V((e,t)=>{t?($(()=>{X(t=>Ee(t+(z?-e:e)))}),$e()):ee(t=>t+e)}),[Ne,Ie]=Rp(M,ge,ve,be,ye,!!v,_e);!function(e,t,n){const o=m(!1),r=m(0),a=m(0),i=m(null),l=m(null);let s;const c=e=>{if(o.current){const t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY);let i=r.current-t,s=a.current-o;const c=Math.abs(i)>Math.abs(s);c?r.current=t:a.current=o;const d=n(c,c?i:s,!1,e);d&&e.preventDefault(),clearInterval(l.current),d&&(l.current=setInterval(()=>{c?i*=Tp:s*=Tp;const e=Math.floor(c?i:s);(!n(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)},16))}},d=()=>{o.current=!1,s()},u=e=>{s(),1!==e.touches.length||o.current||(o.current=!0,r.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};s=()=>{i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",d))},U(()=>(e&&t.current.addEventListener("touchstart",u,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",u),s(),clearInterval(l.current)}),[e])}(M,H,(e,t,n,o)=>{const r=o;return!Ce(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Ne({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){o.useEffect(()=>{const o=t.current;if(e&&o){let e,t,r=!1;const a=()=>{rt.cancel(e)},i=()=>{a(),e=rt(()=>{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=Ap(e,!1),{top:r,bottom:l}=o.getBoundingClientRect();n<=r?(t=-zp(r-n),i()):n>=l?(t=zp(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])}(T,H,e=>{ee(t=>t+e)}),U(()=>{function e(e){const t=ge&&e.detail<0,n=ve&&e.detail>0;!M||t||n||e.preventDefault()}const t=H.current;return t.addEventListener("wheel",Ne,{passive:!1}),t.addEventListener("DOMMouseScroll",Ie,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",Ne),t.removeEventListener("DOMMouseScroll",Ie),t.removeEventListener("MozMousePixelScroll",e)}},[M,ge,ve]),U(()=>{if(v){const e=Ee(q);X(e),$e({x:e})}},[se.width,v]);const Pe=()=>{de.current?.delayHidden(),ue.current?.delayHidden()},Oe=function(e,t,n,r,a,i,l,s){const c=o.useRef(),[d,u]=o.useState(null);return U(()=>{if(d&&d.times<10){if(!e.current)return void u(e=>({...e}));i();const{targetAlign:o,originAlign:s,index:c,offset:p}=d,m=e.current.clientHeight;let f=!1,h=o,g=null;if(m){const i=o||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 o=a(t[e]);v=u;const i=n.get(o);b=v+(void 0===i?r:i),u=b}let C="top"===i?p:m-p;for(let e=y;e>=0;e-=1){const o=a(t[e]),r=n.get(o);if(void 0===r){f=!0;break}if(C-=r,C<=0)break}switch(i){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&&l(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&&ke(!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(rt.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"==typeof e){let n;const{align:o}=e;"index"in e?({index:n}=e):n=t.findIndex(t=>a(t)===e.key);const{offset:r=0}=e;u({times:0,index:n,offset:r,originAlign:o})}}else s()}}(H,L,D,l,I,()=>O(!0),ee,Pe);o.useImperativeHandle(t,()=>({nativeElement:j.current,getScrollInfo:we,scrollTo:e=>{var t;(t=e)&&"object"==typeof t&&("left"in t||"top"in t)?(void 0!==e.left&&X(Ee(e.left)),Oe(e.top)):Oe(e)}})),U(()=>{if(w){const e=L.slice(ae,ie+1);w(e,L)}},[ae,ie,L]);const De=function(e,t,n,r){const[a,i]=o.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,l=o)=>{let s=a.get(o),c=a.get(l);if(void 0===s||void 0===c){const d=e.length;for(let u=i.length;u<d;u+=1){const d=e[u],p=t(d);a.set(p,u);const m=n.get(p)??r;if(i[u]=(i[u-1]||0)+m,p===o&&(s=u),p===l&&(c=u),void 0!==s&&void 0!==c)break}}return{top:i[s-1]||0,bottom:i[c]}}}(L,I,D,l),Re=S?.({start:ae,end:ie,virtual:T,offsetX:q,offsetY:le,rtl:z,getSize:De}),Me=function(e,t,n,r,a,i,l,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{const c=l(e,t+n,{style:{width:r},offsetX:a}),d=s(e);return o.createElement(Ip,{key:d,setRef:t=>i(e,t)},c)})}(L,ae,ie,v,q,P,u,J);let Be=null;i&&(Be={[s?"height":"maxHeight"]:i,...jp},M&&(Be.overflowY="hidden",v&&(Be.overflowX="hidden"),G&&(Be.pointerEvents="none")));const Te={};return z&&(Te.dir="rtl"),o.createElement("div",$c({ref:j,style:{...c,position:"relative"},className:A},Te,N),o.createElement(Ge,{onResize:e=>{ce({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(b,{className:`${n}-holder`,style:Be,ref:H,onScroll:function(e){const{scrollTop:t}=e.currentTarget;t!==W&&ee(t),y?.(e),$e()},onMouseEnter:Pe},o.createElement(Np,{prefixCls:n,height:re,offsetX:q,offsetY:le,scrollWidth:v,onInnerResize:O,ref:F,innerProps:x,rtl:z,extra:Re},Me))),T&&re>i&&o.createElement(Lp,{ref:de,prefixCls:n,scrollOffset:W,scrollRange:re,rtl:z,onScroll:Se,onStartMove:Q,onStopMove:Z,spinSize:me,containerSize:se.height,style:E?.verticalScrollBar,thumbStyle:E?.verticalScrollBarThumb,showScrollBar:k}),T&&v>se.width&&o.createElement(Lp,{ref:ue,prefixCls:n,scrollOffset:q,scrollRange:v,rtl:z,onScroll:Se,onStartMove:Q,onStopMove:Z,spinSize:pe,containerSize:se.width,horizontal:!0,style:E?.horizontalScrollBar,thumbStyle:E?.horizontalScrollBarThumb,showScrollBar:k}))}const Vp=o.forwardRef(Wp);function Kp(){return Kp=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},Kp.apply(this,arguments)}function qp(e){return"string"==typeof e||"number"==typeof e}Vp.displayName="List";const Up=(e,t)=>{const{prefixCls:n,id:r,open:a,multiple:i,mode:l,searchValue:s,toggleOpen:c,notFoundContent:d,onPopupScroll:u,showScrollBar:m}=Ru(),{maxCount:f,flattenOptions:h,onActiveValue:g,defaultActiveFirstOption:v,onSelect:b,menuItemSelectedIcon:y,rawValues:C,fieldNames:w,virtual:x,direction:$,listHeight:S,listItemHeight:E,optionRender:k,classNames:N,styles:I}=o.useContext(Gu),P=`${n}-item`,O=ne(()=>h,[a,h],(e,t)=>t[0]&&e[1]!==t[1]),D=o.useRef(null),R=o.useMemo(()=>i&&Lu(f)&&C?.size>=f,[i,f,C?.size]),M=e=>{e.preventDefault()},B=e=>{D.current?.scrollTo("number"==typeof e?{index:e}:e)},T=o.useCallback(e=>"combobox"!==l&&C.has(e),[l,[...C].toString(),C.size]),z=(e,t=1)=>{const n=O.length;for(let o=0;o<n;o+=1){const r=(e+o*t+n)%n,{group:a,data:i}=O[r]||{};if(!a&&!i?.disabled&&(T(i.value)||!R))return r}return-1},[A,L]=o.useState(()=>z(0)),H=(e,t=!1)=>{L(e);const n={source:t?"keyboard":"mouse"},o=O[e];o?g(o.value,e,n):g(null,-1,n)};p(()=>{H(!1!==v?z(0):-1)},[O.length,s]);const F=o.useCallback(e=>"combobox"===l?String(e).toLowerCase()===s.toLowerCase():C.has(e),[l,s,[...C].toString(),C.size]);p(()=>{let e;if(!i&&a&&1===C.size){const t=Array.from(C)[0],n=O.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);-1!==n&&(H(n),e=setTimeout(()=>{B(n)}))}return a&&D.current?.scrollTo(void 0),()=>clearTimeout(e)},[a,s]);const j=e=>{void 0!==e&&b(e,{selected:!C.has(e)}),i||c(!1)};if(o.useImperativeHandle(t,()=>({onKeyDown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case ss.N:case ss.P:case ss.UP:case ss.DOWN:{let e=0;if(t===ss.UP?e=-1:t===ss.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===ss.N?e=1:t===ss.P&&(e=-1)),0!==e){const t=z(A+e,e);B(t),H(t,!0)}break}case ss.TAB:case ss.ENTER:{const t=O[A];if(!t||t.data.disabled)return j(void 0);!R||C.has(t.value)?j(t.value):j(void 0),a&&e.preventDefault();break}case ss.ESC:c(!1),a&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{B(e)}})),0===O.length)return o.createElement("div",{role:"listbox",id:`${r}_list`,className:`${P}-empty`,onMouseDown:M},d);const W=Object.keys(w).map(e=>w[e]),V=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=O[e];if(!t)return null;const n=t.data||{},{value:r}=n,{group:a}=t,i=ii(n,!0),l=V(t);return t?o.createElement("div",Kp({"aria-label":"string"!=typeof l||a?null:l},i,{key:e},K(t,e),{"aria-selected":F(r)}),r):null},U={role:"listbox",id:`${r}_list`};return o.createElement(o.Fragment,null,x&&o.createElement("div",Kp({},U,{style:{height:0,width:0,overflow:"hidden"}}),q(A-1),q(A),q(A+1)),o.createElement(Vp,{itemKey:"key",ref:D,data:O,height:S,itemHeight:E,fullHeight:!1,onMouseDown:M,onScroll:u,virtual:x,direction:$,innerProps:x?null:U,showScrollBar:m,className:N?.popup?.list,style:I?.popup?.list},(e,t)=>{const{group:n,groupOption:r,data:a,label:i,value:l}=e,{key:s}=a;if(n){const e=a.title??(qp(i)?i.toString():void 0);return o.createElement("div",{className:_(P,`${P}-group`,a.className),title:e},void 0!==i?i:s)}const{disabled:c,title:d,children:u,style:p,className:m,...f}=a,h=Ne(f,W),g=T(l),v=c||!g&&R,b=`${P}-option`,C=_(P,b,m,N?.popup?.listItem,{[`${b}-grouped`]:r,[`${b}-active`]:A===t&&!v,[`${b}-disabled`]:v,[`${b}-selected`]:g}),w=V(e),$=!y||"function"==typeof y||g,S="number"==typeof w?w:w||l;let E=qp(S)?S.toString():void 0;return void 0!==d&&(E=d),o.createElement("div",Kp({},ii(h),x?{}:K(e,t),{"aria-selected":x?void 0:F(l),className:C,title:E,onMouseMove:()=>{A===t||v||H(t)},onClick:()=>{v||j(l)},style:{...I?.popup?.listItem,...p}}),o.createElement("div",{className:`${b}-content`},"function"==typeof k?k(e,{index:t}):S),o.isValidElement(y)||g,$&&o.createElement(fp,{className:`${P}-option-state`,customizeIcon:y,customizeIconProps:{value:l,disabled:v,isSelected:g}},g?"✓":null))}))},Xp=o.forwardRef(Up);"production"!==process.env.NODE_ENV&&(Xp.displayName="OptionList");function Gp(e,t){return Yu(e).join("").toUpperCase().includes(t)}function Yp(e,t=!1){return Ie(e).map((e,n)=>{if(!o.isValidElement(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:a,props:{children:i,...l}}=e;return t||!r?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===a?n:a}__`,label:a,...l,options:Yp(i)}}).filter(e=>e)}function Qp(e){const t=o.useRef();t.current=e;return o.useCallback((...e)=>t.current(...e),[])}function Zp(){return Zp=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},Zp.apply(this,arguments)}const Jp=["inputValue"];const em=o.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:a="rc-select",backfill:i,fieldNames:l,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:C,optionRender:w,children:x,defaultActiveFirstOption:$,menuItemSelectedIcon:S,virtual:E,direction:k,listHeight:_=200,listItemHeight:N=20,labelRender:I,value:P,defaultValue:O,labelInValue:D,onChange:R,maxCount:M,classNames:B,styles:T,...z}=e,A={searchValue:c,onSearch:d,autoClearSearchValue:u,filterOption:p,optionFilterProp:m,filterSort:f},[L,H]=function(e,t,n){const{filterOption:r,searchValue:a,optionFilterProp:i,filterSort:l,onSearch:s,autoClearSearchValue:c}=t;return o.useMemo(()=>{const t="object"==typeof e,o={filterOption:r,searchValue:a,optionFilterProp:i,filterSort:l,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[!!(t||"combobox"===n||"tags"===n||"multiple"===n&&void 0===e)||e,o]},[n,e,r,a,i,l,s,c])}(s,A,r),{filterOption:F,searchValue:j,optionFilterProp:W,filterSort:V,onSearch:K,autoClearSearchValue:q=!0}=H,U=o.useMemo(()=>W?Array.isArray(W)?W:[W]:[],[W]),X=il(n),Y=Sp(r),Q=!(C||!x),Z=o.useMemo(()=>(void 0!==F||"combobox"!==r)&&F,[F,r]),J=o.useMemo(()=>Hu(l,Q),[JSON.stringify(l),Q]),[ee,te]=G("",j),ne=ee||"",oe=((e,t,n,r,a)=>o.useMemo(()=>{let o=e;!e&&(o=Yp(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 o=0;o<e.length;o+=1){const d=e[o];!d[n.options]||t?(i.set(d[n.value],d),s(l,d,n.label),r.forEach(e=>{s(l,d,e)}),s(l,d,a)):c(d[n.options],!0)}};return c(o),{options:o,valueOptions:i,labelOptions:l}},[e,t,n,r,a]))(C,x,J,U,y),{valueOptions:re,labelOptions:ae,options:ie}=oe,le=o.useCallback(e=>Yu(e).map(e=>{let t,n,r,a;!function(e){return!e||"object"!=typeof e}(e)?(n=e.label,t=e.value):t=e;const i=re.get(t);if(i&&(void 0===n&&(n=i?.[y||J.label]),r=i?.disabled,a=i?.title,"production"!==process.env.NODE_ENV&&!y)){const e=i?.[J.label];void 0===e||o.isValidElement(e)||o.isValidElement(n)||e===n||ke(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:t,key:t,disabled:r,title:a}}),[J,y,re]),[se,ce]=G(O,P),de=o.useMemo(()=>{const e=le(Y&&null===se?[]:se);return"combobox"===r&&function(e){return!e&&0!==e}(e[0]?.value)?[]:e},[se,le,r,Y]),[ue,pe]=((e,t)=>{const n=o.useRef({values:new Map,options:new Map});return[o.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]),o.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]})(de,re),me=o.useMemo(()=>{if(!r&&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}))},[r,ue,I]),fe=o.useMemo(()=>new Set(ue.map(e=>e.value)),[ue]);o.useEffect(()=>{if("combobox"===r){const e=ue[0]?.value;te(function(e){return null!=e}(e)?String(e):"")}},[ue]);const he=Qp((e,t)=>{const n=t??e;return{[J.value]:e,[J.label]:n}}),ge=((e,t,n,r,a)=>o.useMemo(()=>{if(!n||!1===r)return e;const{options:o,label:i,value:l}=t,s=[],c="function"==typeof r,d=n.toUpperCase(),u=c?r:(e,t)=>a&&a.length?a.some(e=>Gp(t[e],d)):t[o]?Gp(t["children"!==i?i:"label"],d):Gp(t[l],d),p=c?e=>Fu(e):e=>e;return e.forEach(e=>{if(e[o])if(u(n,p(e)))s.push(e);else{const t=e[o].filter(e=>u(n,p(e)));t.length&&s.push({...e,[o]:t})}else u(n,p(e))&&s.push(e)}),s},[e,r,a,n,t]))(o.useMemo(()=>{if("tags"!==r)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,r]),J,ne,Z,U),ve=o.useMemo(()=>"tags"!==r||!ne||ge.some(e=>(e=>U.length?U.some(t=>e?.[t]===ne):e?.value===ne)(e))||ge.some(e=>e[J.value]===ne)?ge:[he(ne),...ge],[he,U,r,ge,ne,J]),be=e=>[...e].sort((e,t)=>V(e,t,{searchValue:ne})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?be(e.options):e.options}:e),ye=o.useMemo(()=>V?be(ve):ve,[ve,V,ne]),Ce=o.useMemo(()=>function(e,{fieldNames:t,childrenAsData:n}={}){const o=[],{label:r,value:a,options:i,groupLabel:l}=Hu(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:Au(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:Au(t,o.length),group:!0,data:t,label:r}),e(t[i],!0)}})}(e,!1),o}(ye,{fieldNames:J,childrenAsData:Q}),[ye,J,Q]),we=e=>{const t=le(e);if(ce(t),R&&(t.length!==ue.length||t.some((e,t)=>ue[t]?.value!==e?.value))){const e=D?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>Fu(pe(e.value)));R(Y?e:e[0],Y?n:n[0])}},[xe,$e]=o.useState(null),[Se,Ee]=o.useState(0),Ne=void 0!==$?$:"combobox"!==r,Pe=o.useRef(),Oe=o.useCallback((e,t,{source:n="keyboard"}={})=>{Ee(t),i&&"combobox"===r&&null!==e&&"keyboard"===n&&$e(String(e));const o=Promise.resolve().then(()=>{Pe.current===o&&v?.(e)});Pe.current=o},[i,r,v]),De=(e,t,n)=>{const o=()=>{const t=pe(e);return[D?{label:t?.[J.label],value:e}:e,Fu(t)]};if(t&&h){const[e,t]=o();h(e,t)}else if(!t&&g&&"clear"!==n){const[e,t]=o();g(e,t)}},Re=Qp((e,t)=>{let n;const o=!Y||t.selected;n=o?Y?[...ue,e]:[e]:ue.filter(t=>t.value!==e),we(n),De(e,o),"combobox"===r?$e(""):Sp&&!q||(te(""),$e(""))}),Me=o.useMemo(()=>{const e=!1!==E&&!1!==b;return{...oe,flattenOptions:Ce,onActiveValue:Oe,defaultActiveFirstOption:Ne,onSelect:Re,menuItemSelectedIcon:S,rawValues:fe,fieldNames:J,virtual:e,direction:k,listHeight:_,listItemHeight:N,childrenAsData:Q,maxCount:M,optionRender:w,classNames:B,styles:T}},[M,oe,Ce,Oe,Ne,Re,S,fe,J,E,b,k,_,N,Q,w,B,T]);return"production"!==process.env.NODE_ENV&&(function(e){const{mode:t,options:n,children:r,backfill:a,allowClear:i,placeholder:l,getInputElement:s,showSearch:c,onSearch:d,defaultOpen:u,autoFocus:p,labelInValue:m,value:f,optionLabelProp:h}=e,g=Sp(t),v=void 0!==c?c:g||"combobox"===t,b=n||Yp(r);ke("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)&&ke(!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(ke("combobox"!==t||!h,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),ke("combobox"===t||!a,"`backfill` only works with `combobox` mode."),ke("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),_e("combobox"!==t||!s||!i||!l,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),d&&!v&&"combobox"!==t&&"tags"!==t&&ke(!1,"`onSearch` should work with `showSearch` instead of use alone."),_e(!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=Yu(f);ke(!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`"),ke(!g||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){let e=null;Ie(r).some(t=>{if(!o.isValidElement(t)||!t.type)return!1;const{type:n}=t;return!n.isSelectOption&&(n.isSelectOptGroup?!Ie(t.props.children).every(n=>!(o.isValidElement(n)&&t.type&&!n.type.isSelectOption&&(e=n.type,1))):(e=n,!0))}),e&&ke(!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 ke(!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,J)),o.createElement(Gu.Provider,{value:Me},o.createElement(Ep,Zp({},z,{id:X,prefixCls:a,ref:t,omitDomProps:Jp,mode:r,classNames:B,styles:T,displayValues:me,onDisplayValuesChange:(e,t)=>{we(e);const{type:n,values:o}=t;"remove"!==n&&"clear"!==n||o.forEach(e=>{De(e.value,!1,n)})},maxCount:M,direction:k,showSearch:L,searchValue:ne,onSearch:(e,t)=>{if(te(e),$e(null),"submit"===t.source){const t=(e||"").trim();if(t){const e=Array.from(new Set([...fe,t]));we(e),De(t,!0),te("")}return}"blur"!==t.source&&("combobox"===r&&we(e),K?.(e))},autoClearSearchValue:q,onSearchSplit:e=>{let t=e;"tags"!==r&&(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=>{De(e,!0)})},popupMatchSelectWidth:b,OptionList:Xp,emptyOptions:!Ce.length,activeValue:xe,activeDescendantId:`${X}_list_${Se}`})))});"production"!==process.env.NODE_ENV&&(em.displayName="Select");const tm=em;tm.Option=_p,tm.OptGroup=kp;const nm=(e,t,n)=>_({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n}),om=(e,t)=>t||e,rm=()=>{const[,e]=Vr(),[t]=yi("Empty"),n=new or(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,t?.description||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.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"}),o.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)"}),o.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"}),o.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"})),o.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"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(rm.displayName="EmptyImage");var am=rm;const im=()=>{const[,e]=Vr(),[t]=yi("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:l,shadowColor:s,contentColor:c}=d(()=>({borderColor:new or(n).onBackground(i).toHexString(),shadowColor:new or(r).onBackground(i).toHexString(),contentColor:new or(a).onBackground(i).toHexString()}),[n,r,a,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,t?.description||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:l},o.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"}),o.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:c}))))};"production"!==process.env.NODE_ENV&&(im.displayName="SimpleImage");var lm=im;var sm=Qr("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}}}}})(Fo(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()}))});const cm=o.createElement(am,null),dm=o.createElement(lm,null),um=e=>{const{className:t,rootClassName:n,prefixCls:r,image:a,description:i,children:l,imageStyle:s,style:c,classNames:d,styles:u,...p}=e,{getPrefixCls:m,direction:f,className:h,style:g,classNames:v,styles:b,image:y}=dt("empty"),C=m("empty",r),[w,x]=sm(C),[$,S]=Di([v,d],[b,u],{props:e}),[E]=yi("Empty"),k=void 0!==i?i:E?.description,N="string"==typeof k?k:"empty",I=a??y??cm;let P=null;if(P="string"==typeof I?o.createElement("img",{draggable:!1,alt:N,src:I}):I,"production"!==process.env.NODE_ENV){const t=Te("Empty");[["imageStyle","styles.image"]].forEach(([n,o])=>{t.deprecated(!(n in e),n,o)})}return o.createElement("div",{className:_(w,x,C,h,{[`${C}-normal`]:I===dm,[`${C}-rtl`]:"rtl"===f},t,n,$.root),style:{...S.root,...g,...c},...p},o.createElement("div",{className:_(`${C}-image`,$.image),style:{...s,...S.image}},P),k&&o.createElement("div",{className:_(`${C}-description`,$.description),style:S.description},k),l&&o.createElement("div",{className:_(`${C}-footer`,$.footer),style:S.footer},l))};um.PRESENTED_IMAGE_DEFAULT=cm,um.PRESENTED_IMAGE_SIMPLE=dm,"production"!==process.env.NODE_ENV&&(um.displayName="Empty");var pm=um;var mm=e=>{const{componentName:t}=e,{getPrefixCls:n}=c(st),o=n("empty");switch(t){case"Table":case"List":return r.createElement(pm,{image:pm.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(pm,{image:pm.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return r.createElement(pm,null)}};var fm=(e,t,n)=>{const{variant:r,[e]:a}=o.useContext(st),i=o.useContext(Iu),l=a?.variant;let s;s=void 0!==t?t:!1===n?"borderless":i??l??r??"outlined";return[s,lt.includes(s)]};function hm(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 gm=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 vm=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`]:{...qr(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:Lc},[`\n ${r}${l}topLeft,\n ${a}${l}topLeft,\n ${r}${l}topRight,\n ${a}${l}topRight\n `]:{animationName:Fc},[`${i}${l}bottomLeft`]:{animationName:Hc},[`\n ${i}${l}topLeft,\n ${i}${l}topRight\n `]:{animationName:jc},"&-hidden":{display:"none"},[o]:{...gm(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",...Kr},"&-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":{...gm(e),color:e.colorTextDisabled}},[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Xc(e,"slide-up"),Xc(e,"slide-down"),Ac(e,"move-up"),Ac(e,"move-down")]};var bm=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 ym=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":{...Kr,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 Cm=(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 ${Ht(e.controlOutlineWidth)} ${i}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},wm=(e,t,n,o={},r={},a)=>{const{componentCls:i}=e;return{[`&${i}-${t}`]:[Cm(e,n),{[`&${i}-status-error`]:Cm(e,{...n,color:o.color||e.colorError,...o}),[`&${i}-status-warning`]:Cm(e,{...n,color:r.color||e.colorWarning,...r})},a]}};var xm=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))",...qr(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`]:{...Kr,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":{...Kr,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"}},ym(e),wm(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}),wm(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}),wm(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),wm(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"}),bm(e)]}};const $m=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o}=e,r={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...qr(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Kr,[`> ${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()}}}}}},Sm=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},$m(e),vm(e),{[`${t}-rtl`]:{direction:"rtl"}},gd(e,{focusElCls:`${t}-focused`})]};var Em=Qr("Select",(e,{rootPrefixCls:t})=>{const n=Fo(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Sm(n),xm(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:C}=e,w=2*l,x=2*o,$=Math.min(r-w,r-x),S=Math.min(a-w,a-x),E=Math.min(i-w,i-x);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:C,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),km={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 _m(){return _m=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},_m.apply(this,arguments)}const Nm=(e,t)=>o.createElement(ga,_m({},e,{ref:t,icon:km})),Im=o.forwardRef(Nm);
15
- /**![check](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTBoLTY5LjljLTkuOCAwLTE5LjEgNC41LTI1LjEgMTIuMkw0MDQuNyA3MjQuNSAyMDcgNDc0YTMyIDMyIDAgMDAtMjUuMS0xMi4ySDExMmMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlsMjczLjkgMzQ3YzEyLjggMTYuMiAzNy40IDE2LjIgNTAuMyAwbDQ4OC40LTYxOC45YzQuMS01LjEuNC0xMi44LTYuMy0xMi44eiIgLz48L3N2Zz4=) */"production"!==process.env.NODE_ENV&&(Im.displayName="CheckOutlined");var Pm=Im,Om={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 Dm(){return Dm=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},Dm.apply(this,arguments)}const Rm=(e,t)=>o.createElement(ga,Dm({},e,{ref:t,icon:Om})),Mm=o.forwardRef(Rm);
16
- /**![down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NCAyNTZoLTc1Yy01LjEgMC05LjkgMi41LTEyLjkgNi42TDUxMiA2NTQuMiAyMjcuOSAyNjIuNmMtMy00LjEtNy44LTYuNi0xMi45LTYuNmgtNzVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDM1Mi42IDQ4Ni4xYzEyLjggMTcuNiAzOSAxNy42IDUxLjcgMGwzNTIuNi00ODYuMWMzLjktNS4zLjEtMTIuNy02LjQtMTIuN3oiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(Mm.displayName="DownOutlined");var Bm=Mm,Tm={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 zm(){return zm=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},zm.apply(this,arguments)}const Am=(e,t)=>o.createElement(ga,zm({},e,{ref:t,icon:Tm})),Lm=o.forwardRef(Am);
17
- /**![search](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS42IDg1NC41TDY0OS45IDU5NC44QzY5MC4yIDU0Mi43IDcxMiA0NzkgNzEyIDQxMmMwLTgwLjItMzEuMy0xNTUuNC04Ny45LTIxMi4xLTU2LjYtNTYuNy0xMzItODcuOS0yMTIuMS04Ny45cy0xNTUuNSAzMS4zLTIxMi4xIDg3LjlDMTQzLjIgMjU2LjUgMTEyIDMzMS44IDExMiA0MTJjMCA4MC4xIDMxLjMgMTU1LjUgODcuOSAyMTIuMUMyNTYuNSA2ODAuOCAzMzEuOCA3MTIgNDEyIDcxMmM2NyAwIDEzMC42LTIxLjggMTgyLjctNjJsMjU5LjcgMjU5LjZhOC4yIDguMiAwIDAwMTEuNiAwbDQzLjYtNDMuNWE4LjIgOC4yIDAgMDAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(Lm.displayName="SearchOutlined");var Hm=Lm;const Fm="SECRET_COMBOBOX_MODE_DO_NOT_USE",jm=(e,t)=>{const{prefixCls:n,bordered:a,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:d,listHeight:u=256,placement:p,listItemHeight:m,size:f,disabled:h,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:C,direction:w,style:x,allowClear:$,variant:S,popupStyle:E,dropdownStyle:k,transitionName:N,tagRender:I,maxCount:P,prefix:O,dropdownRender:D,popupRender:R,onDropdownVisibleChange:M,onOpenChange:B,styles:T,classNames:z,...A}=e,{getPopupContainer:L,getPrefixCls:H,renderEmpty:F,direction:j,virtual:W,popupMatchSelectWidth:V,popupOverflow:K}=o.useContext(st),{showSearch:q,style:U,styles:X,className:G,classNames:Y}=dt("select"),[,Q]=Vr(),Z=m??Q?.controlHeight,J=H("select",n),ee=H(),te=w??j,{compactSize:ne,compactItemClassnames:oe}=Ms(J,te),[re,ae]=fm("select",S,a),ie=qi(J),[le,se]=Em(J,ie),ce=o.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===Fm?"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=C??y??V,me=(fe=R||D,r.useMemo(()=>{if(fe)return(...e)=>r.createElement(Pu,{space:!0},fe.apply(void 0,e))},[fe]));var fe;const he=B||M,{status:ge,hasFeedback:ve,isFormItemInput:be,feedbackIcon:ye}=o.useContext(_u),Ce=om(ge,v);let we;we=void 0!==g?g:"combobox"===ce?null:F?.("Select")||o.createElement(mm,{componentName:"Select"});const{suffixIcon:xe,itemIcon:$e,removeIcon:Se,clearIcon:Ee}=function({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:i,hasFeedback:l,showSuffixIcon:s,feedbackIcon:c,showArrow:d,componentName:u}){"production"!==process.env.NODE_ENV&&Te(u).deprecated(!t,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const p=t??o.createElement(wa,null),m=t=>null!==e||l||d?o.createElement(o.Fragment,null,!1!==s&&t,l&&c):null;let f=null;f=void 0!==e?m(e):a?m(o.createElement(ms,{spin:!0})):({open:e,showSearch:t})=>m(e&&t?o.createElement(Hm,null):o.createElement(Bm,null));let h=null;h=void 0!==n?n:i?o.createElement(Pm,null):null;let g=null;return g=void 0!==r?r:o.createElement(ka,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}:$,_e=Ne(A,["suffixIcon","itemIcon"]),Ie=Ps(e=>f??ne??e),Pe=o.useContext(Gl),Oe=h??Pe,De={...e,variant:re,status:Ce,disabled:Oe,size:Ie},[Re,Me]=Di([Y,z],[X,T],{props:De},{popup:{_default:"root"}}),Be=_(Re.popup?.root,c,d,{[`${J}-dropdown-${te}`]:"rtl"===te},l,se,ie,le),ze={...Me.popup?.root,...E??k},Ae=_({[`${J}-lg`]:"large"===Ie,[`${J}-sm`]:"small"===Ie,[`${J}-rtl`]:"rtl"===te,[`${J}-${re}`]:ae,[`${J}-in-form-item`]:be},nm(J,Ce,ve),oe,G,i,Re.root,l,se,ie,le),Le=o.useMemo(()=>void 0!==p?p:"rtl"===te?"bottomRight":"bottomLeft",[p,te]);if("production"!==process.env.NODE_ENV){const t=Te("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!==P&&!de),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[He]=Fi("SelectLike",Me.popup?.root?.zIndex??ze?.zIndex);return o.createElement(tm,{ref:t,virtual:W,classNames:Re,styles:Me,showSearch:q,..._e,style:{...Me.root,...U,...x},popupMatchSelectWidth:pe,transitionName:Cs(ee,"slide-up",N),builtinPlacements:hm(b,K),listHeight:u,listItemHeight:Z,mode:ce,prefixCls:J,placement:Le,direction:te,prefix:O,suffixIcon:xe,menuItemSelectedIcon:$e,removeIcon:Se,allowClear:ke,notFoundContent:we,className:Ae,getPopupContainer:s||L,popupClassName:Be,disabled:Oe,popupStyle:{...Me.popup?.root,...ze,zIndex:He},maxCount:de?P:void 0,tagRender:de?I:void 0,popupRender:me,onPopupVisibleChange:he})};"production"!==process.env.NODE_ENV&&(jm.displayName="Select");const Wm=o.forwardRef(jm),Vm=Ou(Wm,"popupAlign");Wm.SECRET_COMBOBOX_MODE_DO_NOT_USE=Fm,Wm.Option=_p,Wm.OptGroup=kp,Wm._InternalPanelDoNotUseOrYouWillBeFired=Vm,"production"!==process.env.NODE_ENV&&(Wm.displayName="Select");var Km=Wm;const qm=["xxl","xl","lg","md","sm","xs"];var Um=()=>{const[,e]=Vr(),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(qm).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 r.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 Xm(e=!0,t={}){const n=m(t),[,o]=Ei(),r=Um();return U(()=>{const t=r.subscribe(t=>{n.current=t,e&&o()});return()=>r.unsubscribe(t)},[]),n.current}const Gm=e=>{const{children:t,prefixCls:n,id:r,classNames:a,styles:i,className:l,style:s}=e;return o.createElement("div",{id:r,className:_(`${n}-container`,a?.container,l),style:{...i?.container,...s},role:"tooltip"},"function"==typeof t?t():t)},Ym={shiftX:64,adjustY:1},Qm={adjustX:1,shiftY:!0},Zm=[0,0],Jm={left:{points:["cr","cl"],overflow:Qm,offset:[-4,0],targetOffset:Zm},right:{points:["cl","cr"],overflow:Qm,offset:[4,0],targetOffset:Zm},top:{points:["bc","tc"],overflow:Ym,offset:[0,-4],targetOffset:Zm},bottom:{points:["tc","bc"],overflow:Ym,offset:[0,4],targetOffset:Zm},topLeft:{points:["bl","tl"],overflow:Ym,offset:[0,-4],targetOffset:Zm},leftTop:{points:["tr","tl"],overflow:Qm,offset:[-4,0],targetOffset:Zm},topRight:{points:["br","tr"],overflow:Ym,offset:[0,-4],targetOffset:Zm},rightTop:{points:["tl","tr"],overflow:Qm,offset:[4,0],targetOffset:Zm},bottomRight:{points:["tr","br"],overflow:Ym,offset:[0,4],targetOffset:Zm},rightBottom:{points:["bl","br"],overflow:Qm,offset:[4,0],targetOffset:Zm},bottomLeft:{points:["tl","bl"],overflow:Ym,offset:[0,4],targetOffset:Zm},leftBottom:{points:["br","bl"],overflow:Qm,offset:[-4,0],targetOffset:Zm}};function ef(){return ef=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},ef.apply(this,arguments)}const tf=o.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:a=.1,prefixCls:i="rc-tooltip",children:l,onVisibleChange:s,afterVisibleChange:c,motion:d,placement:u="right",align:p={},destroyOnHidden:f=!1,defaultVisible:h,getTooltipContainer:v,arrowContent:b,overlay:y,id:C,showArrow:w=!0,classNames:x,styles:$,...S}=e,E=il(C),k=m(null);g(t,()=>k.current);const N={...S};"visible"in e&&(N.popupVisible=e.visible);const I=o.useMemo(()=>{if(!w)return!1;const e=!0===w?{}:w;return{...e,className:_(e.className,x?.arrow),style:{...e.style,...$?.arrow},content:e.content??b}},[w,x?.arrow,$?.arrow,b]),P=({open:e})=>{const t=o.Children.only(l),n={"aria-describedby":y&&e?E:void 0};return o.cloneElement(t,n)};return o.createElement(Wl,ef({popupClassName:x?.root,prefixCls:i,popup:o.createElement(Gm,{key:"content",prefixCls:i,id:E,classNames:x,styles:$},y),action:n,builtinPlacements:Jm,popupPlacement:u,ref:k,popupAlign:p,getPopupContainer:v,onOpenChange:s,afterOpenChange:c,popupMotion:d,defaultPopupVisible:h,autoDestroy:f,mouseLeaveDelay:a,popupStyle:$?.root,mouseEnterDelay:r,arrow:I,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:$?.uniqueContainer},N),P)});function nf(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 of=(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 ${Ht(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function rf(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function af(e,t){return e?t:{}}function lf(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",...of(e,t,r),"&:before":{background:t}}],...af(!!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% - ${Ht(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...af(!!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% - ${Ht(i)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:i}}}}),...af(!!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}}),...af(!!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 sf={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"]}},cf={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"]}},df=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function uf(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:a,visibleFirst:i}=e,l=t/2,s={},c=rf({contentRadius:a,limitVerticalRadius:!0});return Object.keys(sf).forEach(e=>{const a={...o&&cf[e]||sf[e],offset:[0,0],dynamicInset:!0};switch(s[e]=a,df.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 pf=(e,t)=>{const n=e=>"boolean"==typeof e?{show:e}:e||{};return r.useMemo(()=>{const o=n(e),r=n(t);return{...r,...o,show:o.show??r.show??!0}},[e,t])};const mf=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:`${Ht(e.calc(d).div(2).equal())} ${Ht(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]:{...qr(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,Pc(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"},...ea(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}})),"&-rtl":{direction:"rtl"}}},lf(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}`}}}]},ff=e=>({zIndexPopup:e.zIndexPopupBase+70,...rf({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...nf(Fo(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))});var hf=(e,t,n=!0)=>{const o=Qr("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Fo(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[mf(r),nd(e,"zoom-big-fast")]},ff,{resetStyle:!1,injectStyle:n});return o(e,t)};const gf=Xo.map(e=>`${e}-inverse`);function vf(e,t){const n=function(e,t=!0){return t?[].concat(Ze(gf),Ze(Xo)).includes(e):Xo.includes(e)}(t),o=_({[`${e}-${t}`]:t&&n}),r={},a={},i=(e=>e instanceof vc?e:new vc(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 bf=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:i,overlayInnerStyle:l,classNames:s,styles:c}=e,{getPrefixCls:d}=o.useContext(st),u=d("tooltip",t),p=qi(u),[m,f]=hf(u,p),h=vf(u,i),g=h.arrowStyle,v=o.useMemo(()=>({container:{...l,...h.overlayStyle}}),[l,h.overlayStyle]),b={...e,placement:r},[y,C]=Di([s],[v,c],{props:b}),w=_(p,m,f,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return o.createElement("div",{className:w,style:g},o.createElement("div",{className:`${u}-arrow`}),o.createElement(Gm,{...e,className:m,prefixCls:u,classNames:y,styles:C},a))};const yf=o.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:a,color:i,children:l,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:C=.1,mouseLeaveDelay:w=.1,rootClassName:x,styles:$,classNames:S,onOpenChange:E,overlayInnerStyle:k,overlayStyle:N,overlayClassName:I,...P}=e,[,O]=Vr(),{getPopupContainer:D,getPrefixCls:R,direction:M,className:B,style:T,classNames:z,styles:A,arrow:L,trigger:H}=dt("tooltip"),F=pf(c,L),j=F.show,W=f||H||"hover",V=Te("Tooltip"),K=o.useRef(null),q=()=>{K.current?.forceAlign()};o.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])=>{V.deprecated(!(t in e),t,n)}),"production"!==process.env.NODE_ENV&&V(!d||"boolean"==typeof d,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));const[U,X]=G(e.defaultOpen??!1,e.open),Y=!p&&!m&&0!==p,Q=o.useMemo(()=>h||uf({arrowPointAtCenter:F?.pointAtCenter??!1,autoAdjustOverflow:g,arrowWidth:j?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0}),[F,h,O,j,g]),Z=o.useMemo(()=>0===p?p:m||p||"",[m,p]),J=o.createElement(Pu,{space:!0},"function"==typeof Z?Z():Z),ee={...e,trigger:W,color:i,placement:y,builtinPlacements:h,openClassName:r,arrow:c,autoAdjustOverflow:g,getPopupContainer:b,children:l,destroyTooltipOnHide:d,destroyOnHidden:u},[te,ne]=Di([z,S],[A,$],{props:ee}),oe=R("tooltip",n),re=R(),ae=e["data-popover-inject"];let ie=U;!("open"in e)&&Y&&(ie=!1);const le=o.isValidElement(l)&&!ji(l)?l:o.createElement("span",null,l),se=le.props,ce=se.className&&"string"!=typeof se.className?se.className:_(se.className,r||`${oe}-open`),de=qi(oe),[ue,pe]=hf(oe,de,!ae),me=vf(oe,i),fe=me.arrowStyle,he=_(de,ue,pe),ge=_(I,{[`${oe}-rtl`]:"rtl"===M},me.className,x,he,B,te.root),[ve,be]=Fi("Tooltip",P.zIndex),ye={...ne.container,...k,...me.overlayStyle},Ce=o.createElement(tf,{unique:!0,...P,trigger:W,zIndex:ve,showArrow:j,placement:y,mouseEnterDelay:C,mouseLeaveDelay:w,prefixCls:oe,classNames:{root:ge,container:te.container,arrow:te.arrow,uniqueContainer:_(he,te.container)},styles:{root:{...fe,...ne.root,...T,...N},container:ye,uniqueContainer:ye,arrow:ne.arrow},getTooltipContainer:b||a||D,ref:K,builtinPlacements:Q,overlay:J,visible:ie,onVisibleChange:e=>{X(!Y&&e),!Y&&E&&E(e)},afterVisibleChange:s,arrowContent:o.createElement("span",{className:`${oe}-arrow-content`}),motion:{motionName:Cs(re,"zoom-big-fast","string"==typeof v?.motionName?v?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:u??!!d},ie?Wi(le,{className:ce}):le);return o.createElement(zi.Provider,{value:be},Ce)}),Cf=yf;"production"!==process.env.NODE_ENV&&(Cf.displayName="Tooltip"),Cf._InternalPanelDoNotUseOrYouWillBeFired=bf,Cf.UniqueProvider=ql;var wf=Cf;var xf=r.createContext({}),$f={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 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 Ef=(e,t)=>o.createElement(ga,Sf({},e,{ref:t,icon:$f})),kf=o.forwardRef(Ef);
18
- /**![left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcyNCAyMTguM1YxNDFjMC02LjctNy43LTEwLjQtMTIuOS02LjNMMjYwLjMgNDg2LjhhMzEuODYgMzEuODYgMCAwMDAgNTAuM2w0NTAuOCAzNTIuMWM1LjMgNC4xIDEyLjkuNCAxMi45LTYuM3YtNzcuM2MwLTQuOS0yLjMtOS42LTYuMS0xMi42bC0zNjAtMjgxIDM2MC0yODEuMWMzLjgtMyA2LjEtNy43IDYuMS0xMi42eiIgLz48L3N2Zz4=) */"production"!==process.env.NODE_ENV&&(kf.displayName="LeftOutlined");var _f=kf;const{ESC:Nf,TAB:If}=ss;const Pf=b((e,t)=>{const{overlay:n,arrow:o,prefixCls:a}=e,i=d(()=>{let e;return e="function"==typeof n?n():n,e},[n]),l=ce(t,me(i));return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:`${a}-arrow`}),r.cloneElement(i,{ref:ue(i)?l:void 0}))}),Of={adjustX:1,adjustY:1},Df=[0,0],Rf={topLeft:{points:["bl","tl"],overflow:Of,offset:[0,-4],targetOffset:Df},top:{points:["bc","tc"],overflow:Of,offset:[0,-4],targetOffset:Df},topRight:{points:["br","tr"],overflow:Of,offset:[0,-4],targetOffset:Df},bottomLeft:{points:["tl","bl"],overflow:Of,offset:[0,4],targetOffset:Df},bottom:{points:["tc","bc"],overflow:Of,offset:[0,4],targetOffset:Df},bottomRight:{points:["tr","br"],overflow:Of,offset:[0,4],targetOffset:Df}};function Mf(){return Mf=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},Mf.apply(this,arguments)}const Bf=r.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:a="rc-dropdown",transitionName:i,animation:l,align:s,placement:c="bottomLeft",placements:d=Rf,getPopupContainer:u,showAction:p,hideAction:m,overlayClassName:f,overlayStyle:h,visible:g,trigger:v=["hover"],autoFocus:b,overlay:y,children:C,onVisibleChange:w,...x}=e,[$,S]=r.useState(),E="visible"in e?g:$,k=l?`${a}-${l}`:i,N=r.useRef(null),I=r.useRef(null),P=r.useRef(null);r.useImperativeHandle(t,()=>N.current);const O=e=>{S(e),w?.(e)};!function({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:a}){const i=o.useRef(!1),l=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>!!a.current?.focus&&(a.current.focus(),i.current=!0,!0),c=e=>{switch(e.keyCode){case Nf:l();break;case If:{let t=!1;i.current||(t=s()),t?e.preventDefault():l();break}}};o.useEffect(()=>e?(window.addEventListener("keydown",c),r&&rt(s,3),()=>{window.removeEventListener("keydown",c),i.current=!1}):()=>{i.current=!1},[e])}({visible:E,triggerRef:P,onVisibleChange:O,autoFocus:b,overlayRef:I});const D=()=>r.createElement(Pf,{ref:I,overlay:y,prefixCls:a,arrow:n}),R=r.cloneElement(C,{className:_(C.props?.className,E&&(()=>{const{openClassName:t}=e;return void 0!==t?t:`${a}-open`})()),ref:ue(C)?ce(P,me(C)):void 0});let M=m;return M||-1===v.indexOf("contextMenu")||(M=["click"]),r.createElement(Wl,Mf({builtinPlacements:d},x,{prefixCls:a,ref:N,popupClassName:_(f,{[`${a}-show-arrow`]:n}),popupStyle:h,action:v,showAction:p,hideAction:M,popupPlacement:c,popupAlign:s,popupMotion:{motionName:k},popupVisible:E,stretch:(()=>{const{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"==typeof y?D:D(),onOpenChange:O,onPopupClick:t=>{const{onOverlayClick:n}=e;S(!1),n&&n(t)},getPopupContainer:u}),R)});var Tf=e=>"object"!=typeof e&&"function"!=typeof e||null===e;const zf=o.createContext(null);function Af(e,t){return`${e}-${t}`}function Lf(e){return Af(o.useContext(zf),e)}const Hf=o.createContext(null);function Ff({children:e,locked:t,...n}){const r=o.useContext(Hf),a=ne(()=>function(e,t){const n={...e};return Object.keys(t).forEach(e=>{const o=t[e];void 0!==o&&(n[e]=o)}),n}(r,n),[r,n],(e,n)=>!(t||e[0]===n[0]&&xt(e[1],n[1],!0)));return o.createElement(Hf.Provider,{value:a},e)}const jf=[],Wf=o.createContext(null);function Vf(){return o.useContext(Wf)}const Kf=o.createContext(jf);function qf(e){const t=o.useContext(Kf);return o.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}const Uf=o.createContext(null),Xf=o.createContext({});function Gf(e,t=!1){if(Sl(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:Yf,RIGHT:Qf,UP:Zf,DOWN:Jf,ENTER:eh,ESC:th,HOME:nh,END:oh}=ss,rh=[Zf,Jf,Yf,Qf];function ah(e,t){const n=function(e,t=!1){const n=[...e.querySelectorAll("*")].filter(e=>Gf(e,t));return Gf(e,t)&&n.unshift(e),n}(e,!0);return n.filter(e=>t.has(e))}function ih(e,t,n,o=1){if(!e)return null;const r=ah(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 lh=(e,t)=>{const n=new Set,o=new Map,r=new Map;return e.forEach(e=>{const a=document.querySelector(`[data-menu-id='${Af(t,e)}']`);a&&(n.add(a),r.set(a,e),o.set(e,a))}),{elements:n,key2element:o,element2key:r}};function sh(e,t,n,r,a,i,l,s,c,d){const u=o.useRef(),p=o.useRef();p.current=t;const m=()=>{rt.cancel(u.current)};return o.useEffect(()=>()=>{m()},[]),o=>{const{which:f}=o;if([...rh,eh,th,nh,oh].includes(f)){const d=i();let h=lh(d,r);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),C=b.get(y),w=function(e,t,n,o){const r="prev",a="next",i="children",l="parent";if("inline"===e&&o===eh)return{inlineTrigger:!0};const s={[Zf]:r,[Jf]:a},c={[Yf]:n?a:r,[Qf]:n?r:a,[Jf]:i,[eh]:i},d={[Zf]:r,[Jf]:a,[eh]:i,[th]:l,[Yf]:n?i:l,[Qf]: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===l(C,!0).length,n,f);if(!w&&f!==nh&&f!==oh)return;(rh.includes(f)||[nh,oh].includes(f))&&o.preventDefault();const x=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=rt(()=>{p.current===o&&t.focus()})}};if([nh,oh].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):a.current;const o=ah(t,g);n=f===nh?o[0]:f===oh?o[o.length-1]:ih(t,g,y,w.offset),x(n)}else if(w.inlineTrigger)c(C);else if(w.offset>0)c(C,!0),m(),u.current=rt(()=>{h=lh(d,r);const e=y.getAttribute("aria-controls"),t=ih(document.getElementById(e),h.elements);x(t)},5);else if(w.offset<0){const e=l(C,!0),t=e[e.length-2],n=v.get(t);c(t,!1),x(n)}}d?.(o)}}const ch="__RC_UTIL_PATH_SPLIT__",dh=e=>e.join(ch),uh="rc-menu-more";function ph(){const[,e]=o.useState({}),t=m(new Map),n=m(new Map),[r,a]=o.useState([]),i=m(0),l=m(!1),s=h((o,r)=>{"production"!==process.env.NODE_ENV&&ke(!t.current.has(o),`Duplicated key '${o}' used in Menu by path [${r.join(" > ")}]`);const a=dh(r);n.current.set(a,o),t.current.set(o,a),i.current+=1;const s=i.current;var c;c=()=>{s===i.current&&(l.current||e({}))},Promise.resolve().then(c)},[]),c=h((e,o)=>{const r=dh(o);n.current.delete(r),t.current.delete(e)},[]),d=h(e=>{a(e)},[]),u=h((e,n)=>{const o=t.current.get(e)||"",a=o.split(ch);return n&&r.includes(a[0])&&a.unshift(uh),a},[r]),p=h((e,t)=>e.filter(e=>void 0!==e).some(e=>u(e,!0).includes(t)),[u]),f=h(e=>{const o=`${t.current.get(e)}${ch}`,r=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(o)&&r.add(n.current.get(e))}),r},[]);return o.useEffect(()=>()=>{l.current=!0},[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:u,getKeys:()=>{const e=[...t.current.keys()];return r.length&&e.push(uh),e},getSubPathKeys:f}}function mh(e){const t=o.useRef(e);t.current=e;const n=o.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function fh(e,t,n,r){const{activeKey:a,onActive:i,onInactive:l}=o.useContext(Hf),s={active:a===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),i(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),l(e)}),s}function hh(e){const{mode:t,rtl:n,inlineIndent:r}=o.useContext(Hf);if("inline"!==t)return null;return n?{paddingRight:e*r}:{paddingLeft:e*r}}function gh({icon:e,props:t,children:n}){let r;return null===e||!1===e?null:("function"==typeof e?r=o.createElement(e,{...t}):"boolean"!=typeof e&&(r=e),r||n||null)}function vh({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(ke(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function bh(){return bh=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},bh.apply(this,arguments)}class yh extends o.Component{render(){const{title:e,attribute:t,elementRef:n,...r}=this.props,a=Ne(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ke(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(mp.Item,bh({},t,{title:"string"==typeof e?e:void 0},a,{ref:n}))}}const Ch=o.forwardRef((e,t)=>{const{style:n,className:r,eventKey:a,warnKey:i,disabled:l,itemIcon:s,children:c,role:d,onMouseEnter:u,onMouseLeave:p,onClick:m,onKeyDown:f,onFocus:h,...g}=e,v=Lf(a),{prefixCls:b,onItemClick:y,disabled:C,overflowDisabled:w,itemIcon:x,selectedKeys:$,onActive:S}=o.useContext(Hf),{_internalRenderMenuItem:E}=o.useContext(Xf),k=`${b}-item`,N=o.useRef(),I=o.useRef(),P=C||l,O=de(t,I),D=qf(a);"production"!==process.env.NODE_ENV&&i&&ke(!1,"MenuItem should not leave undefined `key`.");const R=e=>({key:a,keyPath:[...D].reverse(),item:N.current,domEvent:e}),M=s||x,{active:B,...T}=fh(a,P,u,p),z=$.includes(a),A=hh(D.length),L={};"option"===e.role&&(L["aria-selected"]=z);let H=o.createElement(yh,bh({ref:N,elementRef:O,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":w&&v?null:v},Ne(g,["extra"]),T,L,{component:"li","aria-disabled":l,style:{...A,...n},className:_(k,{[`${k}-active`]:B,[`${k}-selected`]:z,[`${k}-disabled`]:P},r),onClick:e=>{if(P)return;const t=R(e);m?.(vh(t)),y(t)},onKeyDown:e=>{if(f?.(e),e.which===ss.ENTER){const t=R(e);m?.(vh(t)),y(t)}},onFocus:e=>{S(a),h?.(e)}}),c,o.createElement(gh,{props:{...e,isSelected:z},icon:M}));return E&&(H=E(H,e,{selected:z})),H});function wh(e,t){const{eventKey:n}=e,r=Vf(),a=qf(n);return o.useEffect(()=>{if(r)return r.registerPath(n,a),()=>{r.unregisterPath(n,a)}},[a]),r?null:o.createElement(Ch,bh({},e,{ref:t}))}var xh=o.forwardRef(wh);function $h(){return $h=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},$h.apply(this,arguments)}const Sh=({className:e,children:t,...n},r)=>{const{prefixCls:a,mode:i,rtl:l}=o.useContext(Hf);return o.createElement("ul",$h({className:_(a,l&&`${a}-rtl`,`${a}-sub`,`${a}-${"inline"===i?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},Eh=o.forwardRef(Sh);function kh(e,t){return Ie(e).map((e,n)=>{if(o.isValidElement(e)){const{key:r}=e;let a=e.props?.eventKey??r;const i=null==a;i&&(a=`tmp_key-${[...t,n].join("-")}`);const l={key:a,eventKey:a};return"production"!==process.env.NODE_ENV&&i&&(l.warnKey=!0),o.cloneElement(e,l)}return e})}"production"!==process.env.NODE_ENV&&(Eh.displayName="SubMenuList");const _h={adjustX:1,adjustY:1},Nh={topLeft:{points:["bl","tl"],overflow:_h},topRight:{points:["br","tr"],overflow:_h},bottomLeft:{points:["tl","bl"],overflow:_h},bottomRight:{points:["tr","br"],overflow:_h},leftTop:{points:["tr","tl"],overflow:_h},leftBottom:{points:["br","bl"],overflow:_h},rightTop:{points:["tl","tr"],overflow:_h},rightBottom:{points:["bl","br"],overflow:_h}},Ih={topLeft:{points:["bl","tl"],overflow:_h},topRight:{points:["br","tr"],overflow:_h},bottomLeft:{points:["tl","bl"],overflow:_h},bottomRight:{points:["tr","br"],overflow:_h},rightTop:{points:["tr","tl"],overflow:_h},rightBottom:{points:["br","bl"],overflow:_h},leftTop:{points:["tl","tr"],overflow:_h},leftBottom:{points:["bl","br"],overflow:_h}};function Ph(e,t,n){return t||(n?n[e]||n.other:void 0)}const Oh={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Dh({prefixCls:e,visible:t,children:n,popup:r,popupStyle:a,popupClassName:i,popupOffset:l,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:C}=o.useContext(Hf),[w,x]=o.useState(!1),$=p?{...Ih,...h}:{...Nh,...h},S=Oh[c],E=Ph(c,y,C),k=o.useRef(E);"inline"!==c&&(k.current=E);const N={...k.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},I=o.useRef();return o.useEffect(()=>(I.current=rt(()=>{x(t)}),()=>{rt.cancel(I.current)}),[t]),o.createElement(Wl,{prefixCls:e,popupClassName:_(`${e}-popup`,{[`${e}-rtl`]:p},i,b),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:u,builtinPlacements:$,popupPlacement:S,popupVisible:w,popup:r,popupStyle:a,popupAlign:l&&{offset:l},action:s?[]:[g],mouseEnterDelay:m,mouseLeaveDelay:f,onPopupVisibleChange:d,forceRender:v,popupMotion:N,fresh:!0},n)}function Rh(){return Rh=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},Rh.apply(this,arguments)}function Mh({id:e,open:t,keyPath:n,children:r}){const a="inline",{prefixCls:i,forceSubMenuRender:l,motion:s,defaultMotions:c,mode:d}=o.useContext(Hf),u=o.useRef(!1);u.current=d===a;const[p,m]=o.useState(!u.current),f=!!u.current&&t;o.useEffect(()=>{u.current&&m(!1)},[d]);const h={...Ph(a,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:o.createElement(Ff,{mode:a,locked:!u.current},o.createElement(oi,Rh({visible:f},h,{forceRender:l,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:t,style:n})=>o.createElement(Eh,{id:e,className:t,style:n},r)))}function Bh(){return Bh=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},Bh.apply(this,arguments)}const Th=o.forwardRef((e,t)=>{const{style:n,className:r,styles:a,classNames:i,title:l,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:C,onTitleClick:w,onTitleMouseEnter:x,onTitleMouseLeave:$,popupRender:S,...E}=e,k=Lf(s),{prefixCls:N,mode:I,openKeys:P,disabled:O,overflowDisabled:D,activeKey:R,selectedKeys:M,itemIcon:B,expandIcon:T,onItemClick:z,onOpenChange:A,onActive:L,popupRender:H}=o.useContext(Hf),{_internalRenderSubMenuItem:F}=o.useContext(Xf),{isSubPathKey:j}=o.useContext(Uf),W=qf(),V=`${N}-submenu`,K=O||d,q=o.useRef(),U=o.useRef();"production"!==process.env.NODE_ENV&&c&&ke(!1,"SubMenu should not leave undefined `key`.");const X=m??B,G=f??T,Y=P.includes(s),Q=!D&&Y,Z=j(M,s),{active:J,...ee}=fh(s,K,x,$),[te,ne]=o.useState(!1),oe=e=>{K||ne(e)},re=o.useMemo(()=>J||"inline"!==I&&(te||j([R],s)),[I,J,R,te,s,j]),ae=hh(W.length),ie=mh(e=>{b?.(vh(e)),z(e)}),le=e=>{"inline"!==I&&A(s,e)},se=k&&`${k}-popup`,ce=o.useMemo(()=>o.createElement(gh,{icon:"horizontal"!==I?G:void 0,props:{...e,isOpen:Q,isSubMenu:!0}},o.createElement("i",{className:`${V}-arrow`})),[I,G,e,Q,V]);let de=o.createElement("div",Bh({role:"menuitem",style:ae,className:`${V}-title`,tabIndex:K?null:-1,ref:q,title:"string"==typeof l?l:null,"data-menu-id":D&&k?null:k,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":K,onClick:e=>{K||(w?.({key:s,domEvent:e}),"inline"===I&&A(s,!Y))},onFocus:()=>{L(s)}},ee),l,ce);const ue=o.useRef(I);"inline"!==I&&W.length>1?ue.current="vertical":ue.current=I;const pe=ue.current,me=o.useMemo(()=>{const t=o.createElement(Ff,{classNames:i,styles:a,mode:"horizontal"===pe?"vertical":pe},o.createElement(Eh,{id:se,ref:U},p)),n=S||H;if(n){return n(t,{item:e,keys:W})}return t},[S,H,W,se,p,e,pe]);if(!D){const e=ue.current;de=o.createElement(Dh,{mode:e,prefixCls:V,visible:!u&&Q&&"inline"!==I,popupClassName:h,popupOffset:g,popupStyle:v,popup:me,disabled:K,onVisibleChange:le},de)}let fe=o.createElement(mp.Item,Bh({ref:t,role:"none"},E,{component:"li",style:n,className:_(V,`${V}-${I}`,r,{[`${V}-open`]:Q,[`${V}-active`]:re,[`${V}-selected`]:Z,[`${V}-disabled`]:K}),onMouseEnter:e=>{oe(!0),y?.({key:s,domEvent:e})},onMouseLeave:e=>{oe(!1),C?.({key:s,domEvent:e})}}),de,!D&&o.createElement(Mh,{id:se,open:Q,keyPath:W},p));return F&&(fe=F(fe,e,{selected:Z,active:re,open:Q,disabled:K})),o.createElement(Ff,{classNames:i,styles:a,onItemClick:ie,mode:"horizontal"===I?"vertical":I,itemIcon:X,expandIcon:G},fe)}),zh=o.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=qf(n),i=kh(r,a),l=Vf();let s;return o.useEffect(()=>{if(l)return l.registerPath(n,a),()=>{l.unregisterPath(n,a)}},[a]),s=l?i:o.createElement(Th,Bh({ref:t},e),i),o.createElement(Kf.Provider,{value:a},s)});function Ah({className:e,style:t}){const{prefixCls:n}=o.useContext(Hf);return Vf()?null:o.createElement("li",{role:"separator",className:_(`${n}-item-divider`,e),style:t})}function Lh(){return Lh=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},Lh.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(zh.displayName="SubMenu");const Hh=o.forwardRef((e,t)=>{const{className:n,title:r,eventKey:a,children:i,...l}=e,{prefixCls:s,classNames:c,styles:d}=o.useContext(Hf),u=`${s}-item-group`;return o.createElement("li",Lh({ref:t,role:"presentation"},l,{onClick:e=>e.stopPropagation(),className:_(u,n)}),o.createElement("div",{role:"presentation",className:_(`${u}-title`,c?.listTitle),style:d?.listTitle,title:"string"==typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:_(`${u}-list`,c?.list),style:d?.list},i))}),Fh=o.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,a=kh(r,qf(n));return Vf()?a:o.createElement(Hh,Lh({ref:t},Ne(e,["warnKey"])),a)});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 Wh(e,t,n){const{item:r,group:a,submenu:i,divider:l}=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?o.createElement(a,jh({key:h},f,{title:c}),Wh(d,t,n)):o.createElement(i,jh({key:h},f,{title:c}),Wh(d,t,n)):"divider"===p?o.createElement(l,jh({key:h},f)):o.createElement(r,jh({key:h},f,{extra:m}),c,(!!m||0===m)&&o.createElement("span",{className:`${n}-item-extra`},m))}return null}).filter(e=>e)}function Vh(e,t,n,o,r){let a=e;const i={divider:Ah,item:xh,group:Fh,submenu:zh,...o};return t&&(a=Wh(t,i,r)),kh(a,n)}function Kh(){return Kh=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},Kh.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Fh.displayName="MenuItemGroup");const qh=[],Uh=o.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:a,className:i,styles:l,classNames:s,tabIndex:c=0,items:d,children:u,direction:p,id:m,mode:f="vertical",inlineCollapsed:h,disabled:v,disabledOverflow:b,subMenuOpenDelay:y=.1,subMenuCloseDelay:C=.1,forceSubMenuRender:w,defaultOpenKeys:x,openKeys:S,activeKey:E,defaultActiveFirst:k,selectable:N=!0,multiple:I=!1,defaultSelectedKeys:P,selectedKeys:O,onSelect:D,onDeselect:R,inlineIndent:M=24,motion:B,defaultMotions:T,triggerSubMenuAction:z="hover",builtinPlacements:A,itemIcon:L,expandIcon:H,overflowedIndicator:F="...",overflowedIndicatorPopupClassName:j,getPopupContainer:W,onClick:V,onOpenChange:K,onKeyDown:q,openAnimation:U,openTransitionName:X,_internalRenderMenuItem:Y,_internalRenderSubMenuItem:Q,_internalComponents:Z,popupRender:J,...ee}=e,[te,ne]=o.useMemo(()=>[Vh(u,d,qh,Z,n),Vh(u,d,qh,{},n)],[u,d,Z]),[oe,re]=o.useState(!1),ae=o.useRef(),ie=il(m?`rc-menu-uuid-${m}`:"rc-menu-uuid"),le="rtl"===p;"production"!==process.env.NODE_ENV&&ke(!U&&!X,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");const[se,ce]=G(x,S),de=se||qh,ue=(e,t=!1)=>{function n(){ce(e),K?.(e)}t?$(n):n()},[pe,me]=o.useState(de),fe=o.useRef(!1),[he,ge]=o.useMemo(()=>"inline"!==f&&"vertical"!==f||!h?[f,!1]:["vertical",h],[f,h]),ve="inline"===he,[be,ye]=o.useState(he),[Ce,we]=o.useState(ge);o.useEffect(()=>{ye(he),we(ge),fe.current&&(ve?ce(pe):ue(qh))},[he,ge]);const[xe,$e]=o.useState(0),Se=xe>=te.length-1||"horizontal"!==be||b;o.useEffect(()=>{ve&&me(de)},[de]),o.useEffect(()=>(fe.current=!0,()=>{fe.current=!1}),[]);const{registerPath:Ee,unregisterPath:_e,refreshOverflowKeys:Ne,isSubPathKey:Ie,getKeyPath:Pe,getKeys:Oe,getSubPathKeys:De}=ph(),Re=o.useMemo(()=>({registerPath:Ee,unregisterPath:_e}),[Ee,_e]),Me=o.useMemo(()=>({isSubPathKey:Ie}),[Ie]);o.useEffect(()=>{Ne(Se?qh:te.slice(xe+1).map(e=>e.key))},[xe,Se]);const[Be,Te]=G(E||k&&te[0]?.key,E),ze=mh(e=>{Te(e)}),Ae=mh(()=>{Te(void 0)});g(t,()=>({list:ae.current,focus:e=>{const t=Oe(),{elements:n,key2element:o,element2key:r}=lh(t,ie),a=ah(ae.current,n);let i;i=Be&&t.includes(Be)?Be:a[0]?r.get(a[0]):te.find(e=>!e.props.disabled)?.key;const l=o.get(i);i&&l&&l?.focus?.(e)},findItem:({key:e})=>{const t=Oe(),{key2element:n}=lh(t,ie);return n.get(e)||null}}));const[Le,He]=G(P||[],O),Fe=o.useMemo(()=>Array.isArray(Le)?Le:null==Le?qh:[Le],[Le]),je=mh(e=>{V?.(vh(e)),(e=>{if(N){const{key:t}=e,n=Fe.includes(t);let o;o=I?n?Fe.filter(e=>e!==t):[...Fe,t]:[t],He(o);const r={...e,selectedKeys:o};n?R?.(r):D?.(r)}!I&&de.length&&"inline"!==be&&ue(qh)})(e)}),We=mh((e,t)=>{let n=de.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==be){const t=De(e);n=n.filter(e=>!t.has(e))}xt(de,n,!0)||ue(n,!0)}),Ve=sh(be,Be,le,ie,ae,Oe,Pe,Te,(e,t)=>{const n=t??!de.includes(e);We(e,n)},q);o.useEffect(()=>{re(!0)},[]);const Ke=o.useMemo(()=>({_internalRenderMenuItem:Y,_internalRenderSubMenuItem:Q}),[Y,Q]),qe="horizontal"!==be||b?te:te.map((e,t)=>o.createElement(Ff,{key:e.key,overflowDisabled:t>xe,classNames:s,styles:l},e)),Ue=o.createElement(mp,Kh({id:m,ref:ae,prefixCls:`${n}-overflow`,component:"ul",itemComponent:xh,className:_(n,`${n}-root`,`${n}-${be}`,i,{[`${n}-inline-collapsed`]:Ce,[`${n}-rtl`]:le},r),dir:p,style:a,role:"menu",tabIndex:c,data:qe,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?te.slice(-t):null;return o.createElement(zh,{eventKey:uh,title:F,disabled:Se,internalPopupClose:0===t,popupClassName:j},n)},maxCount:"horizontal"!==be||b?mp.INVALIDATE:mp.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{$e(e)},onKeyDown:Ve},ee));return o.createElement(Xf.Provider,{value:Ke},o.createElement(zf.Provider,{value:ie},o.createElement(Ff,{prefixCls:n,rootClassName:r,classNames:s,styles:l,mode:be,openKeys:de,rtl:le,disabled:v,motion:oe?B:null,defaultMotions:oe?T:null,activeKey:Be,onActive:ze,onInactive:Ae,selectedKeys:Fe,inlineIndent:M,subMenuOpenDelay:y,subMenuCloseDelay:C,forceSubMenuRender:w,builtinPlacements:A,triggerSubMenuAction:z,getPopupContainer:W,itemIcon:L,expandIcon:H,onItemClick:je,onOpenChange:We,popupRender:J},o.createElement(Uf.Provider,{value:Me},Ue),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Wf.Provider,{value:Re},ne)))))}),Xh=Uh;Xh.Item=xh,Xh.SubMenu=zh,Xh.ItemGroup=Fh,Xh.Divider=Ah;var Gh={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 Yh(){return Yh=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},Yh.apply(this,arguments)}const Qh=(e,t)=>o.createElement(ga,Yh({},e,{ref:t,icon:Gh})),Zh=o.forwardRef(Qh);
19
- /**![bars](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTJIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHpNMTA0IDIyOGE1NiA1NiAwIDEwMTEyIDAgNTYgNTYgMCAxMC0xMTIgMHptMCAyODRhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMTAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAweiIgLz48L3N2Zz4=) */"production"!==process.env.NODE_ENV&&(Zh.displayName="BarsOutlined");var Jh=Zh;const eg=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),tg=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}},ng=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qr("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:Ht(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}}},tg,{deprecatedTokens:ng});var og=Qr(["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:Ht(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 ${Ht(p)} ${Ht(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:`${Ht(p)} 0 0 ${Ht(p)}`}},"&-light":{background:m,[`${t}-trigger`]:{color:f,background:h},[`${t}-zero-width-trigger`]:{color:f,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},tg,{deprecatedTokens:ng});const rg={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ag=o.createContext({}),ig=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),lg=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:l,defaultCollapsed:s=!1,theme:d="dark",style:u={},collapsible:f=!1,reverseArrow:h=!1,width:g=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:C,onBreakpoint:w,...x}=e,{siderHook:$}=c(eg),[S,E]=a("collapsed"in e?e.collapsed:s),[k,N]=a(!1);p(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const I=(t,n)=>{"collapsed"in e||E(t),C?.(t,n)},{getPrefixCls:P,direction:O}=c(st),D=P("layout-sider",n),[R,M]=og(D),B=m(null);B.current=e=>{N(e.matches),w?.(e.matches),S!==e.matches&&I(e.matches,"responsive")},p(()=>{function e(e){return B.current?.(e)}let t;return void 0!==window?.matchMedia&&y&&y in rg&&(t=window.matchMedia(`screen and (max-width: ${rg[y]})`),"function"==typeof t?.addEventListener&&t.addEventListener("change",e),e(t)),()=>{"function"==typeof t?.removeEventListener&&t.removeEventListener("change",e)}},[y]),p(()=>{const e=ig("ant-sider-");return $.addSider(e),()=>$.removeSider(e)},[]);const T=()=>{I(!S,"clickTrigger")},z=Ne(x,["collapsed"]),A=S?v:g,L=(H=A,!Number.isNaN(Number.parseFloat(H))&&Number.isFinite(Number(H))?`${A}px`:String(A));var H;const F=0===Number.parseFloat(String(v||0))?o.createElement("span",{onClick:T,className:_(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${h?"right":"left"}`),style:b},i||o.createElement(Jh,null)):null,j="rtl"===O==!h,W={expanded:j?o.createElement(xc,null):o.createElement(_f,null),collapsed:j?o.createElement(_f,null):o.createElement(xc,null)}[S?"collapsed":"expanded"],V=null!==i?F||o.createElement("div",{className:`${D}-trigger`,onClick:T,style:{width:L}},i||W):null,K={...u,flex:`0 0 ${L}`,maxWidth:L,minWidth:L,width:L},q=_(D,`${D}-${d}`,{[`${D}-collapsed`]:!!S,[`${D}-has-trigger`]:f&&null!==i&&!F,[`${D}-below`]:!!k,[`${D}-zero-width`]:0===Number.parseFloat(L)},r,R,M),U=o.useMemo(()=>({siderCollapsed:S}),[S]);return o.createElement(ag.Provider,{value:U},o.createElement("aside",{className:q,...z,style:K,ref:t},o.createElement("div",{className:`${D}-children`},l),f||k&&F?V:null))});"production"!==process.env.NODE_ENV&&(lg.displayName="Sider");var sg={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 cg(){return cg=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},cg.apply(this,arguments)}const dg=(e,t)=>o.createElement(ga,cg({},e,{ref:t,icon:sg})),ug=o.forwardRef(dg);
20
- /**![ellipsis](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE3NiA1MTFhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMTAtMTEyIDB6bTI4MCAwYTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAwem0yODAgMGE1NiA1NiAwIDEwMTEyIDAgNTYgNTYgMCAxMC0xMTIgMHoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(ug.displayName="EllipsisOutlined");var pg=ug;var mg=u({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null});var fg=e=>{const{prefixCls:t,className:n,dashed:r,...a}=e,{getPrefixCls:i}=o.useContext(st),l=i("menu",t),s=_({[`${l}-item-divider-dashed`]:!!r},n);return o.createElement(Ah,{className:s,...a})};var hg=e=>{const{className:t,children:n,icon:r,title:a,danger:i,extra:l}=e,{prefixCls:s,firstLevel:c,direction:d,disableMenuItemTitleTooltip:u,inlineCollapsed:p,styles:m,classNames:f}=o.useContext(mg),{siderCollapsed:h}=o.useContext(ag);let g=a;void 0===a?g=c?n:"":!1===a&&(g="");const v={title:g};h||p||(v.title=null,v.open=!1);const b=Ie(n).length;let y=o.createElement(xh,{...Ne(e,["title","icon","danger"]),className:_(c?f.item:f.subMenu.item,{[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(r?b+1:b)},t),style:{...c?m.item:m.subMenu.item,...e.style},title:"string"==typeof a?a:void 0},Wi(r,e=>({className:_(`${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],a=o.createElement("span",{className:_(`${s}-title-content`,c?f.itemContent:f.subMenu.itemContent,{[`${s}-title-content-with-extra`]:!!l||0===l}),style:c?m.itemContent:m.subMenu.itemContent},n);return(!r||o.isValidElement(n)&&"span"===n.type)&&n&&e&&c&&"string"==typeof t?o.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):a})(p));return u||(y=o.createElement(wf,{...v,placement:"rtl"===d?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}},y)),y};const gg=o.createContext(null),vg=o.forwardRef((e,t)=>{const{children:n,...r}=e,a=o.useContext(gg),i=o.useMemo(()=>({...a,...r}),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=(e=>pe(e)&&ue(e))(n),s=de(t,l?me(n):null);return o.createElement(gg.Provider,{value:i},o.createElement(Pu,{space:!0},l?o.cloneElement(n,{ref:s}):n))});var bg=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:`${Ht(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 yg=({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(${Ht(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ht(t)})`}}}});const Cg=e=>Ur(e);var wg=(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:C,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:_,itemHoverBg:N,itemActiveBg:I,menuSubMenuBg:P,horizontalItemSelectedColor:O,horizontalItemSelectedBg:D,horizontalItemBorderRadius:R,horizontalItemHoverBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:{...Cg(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`]:{...Cg(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:N},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:x,[`&${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}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:{..."dark"===t?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Ht(d)} solid transparent`,transition:`border-color ${m} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:M,"&::after":{borderBottomWidth:d,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:d,borderBottomColor:O}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ht(p)} ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ht(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 xg=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:Ht(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ht(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:d}}};var $g=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:Ht(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...xg(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...xg(e),boxShadow:f}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Ht(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% - ${Ht(e.calc(g).div(2).equal())} - ${Ht(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Ht(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`]:{...Kr,paddingInline:m}}}]};const Sg=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"}}}},Eg=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(${Ht(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ht(i)})`}}}}},kg=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]:{...qr(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:`${Ht(l)} ${Ht(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"}},...Sg(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ht(e.calc(o).mul(2).equal())} ${Ht(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,...Sg(e),...Eg(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}},...Eg(e),[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ht(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Ht(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ht(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ht(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ht(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},_g=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:C,fontSizeLG:w,colorTextLightSolid:x,colorErrorHover:$}=e,S=e.activeBarWidth??0,E=e.activeBarBorderWidth??d,k=e.itemMarginInline??e.marginXXS,_=new or(x).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:C-y,collapsedIconSize:w,groupTitleFontSize:y,darkItemDisabledColor:new or(x).setA(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:x,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:n,itemWidth:S?`calc(100% + ${E}px)`:`calc(100% - ${2*k}px)`}};var Ng=e=>{const{popupClassName:t,icon:n,title:r,theme:a}=e,i=o.useContext(mg),{prefixCls:l,inlineCollapsed:s,theme:c,classNames:d,styles:u}=i,p=qf();let m;if(n){const e=o.isValidElement(r)&&"span"===r.type;m=o.createElement(o.Fragment,null,Wi(n,e=>({className:_(e.className,`${l}-item-icon`,d.itemIcon),style:{...e.style,...u.itemIcon}})),e?r:o.createElement("span",{className:`${l}-title-content`},r))}else m=s&&!p.length&&r&&"string"==typeof r?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):o.createElement("span",{className:`${l}-title-content`},r);const f=o.useMemo(()=>({...i,firstLevel:!1}),[i]),[h]=Fi("Menu");return o.createElement(mg.Provider,{value:f},o.createElement(zh,{...Ne(e,["icon"]),title:m,classNames:{list:d.subMenu.list,listTitle:d.subMenu.itemTitle},styles:{list:u.subMenu.list,listTitle:u.subMenu.itemTitle},popupClassName:_(l,t,d.popup.root,`${l}-${a||c}`),popupStyle:{zIndex:h,...e.popupStyle,...u.popup.root}}))};function Ig(e){return null===e||!1===e}const Pg={item:hg,submenu:Ng,divider:fg},Og=b((e,t)=>{const n=o.useContext(gg),r=n||{},{prefixCls:a,className:i,style:l,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,...C}=e,{menu:w}=o.useContext(st),{getPrefixCls:x,getPopupContainer:$,direction:S,className:E,style:k,classNames:N,styles:I}=dt("menu"),P=x(),O=Ne(C,["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=Te("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")}r.validator?.({mode:f});const D=V((...e)=>{g?.(...e),r.onClick?.()}),R=r.mode||f,M=h??r.selectable,B=u??p,T={...e,mode:R,inlineCollapsed:B,selectable:M,theme:s},[z,A]=Di([N,b],[I,y],{props:T},{popup:{_default:"root"},subMenu:{_default:"item"}}),L={horizontal:{motionName:`${P}-slide-up`},inline:ys(P),other:{motionName:`${P}-zoom-big`}},H=x("menu",a||r.prefixCls),F=qi(H),[j,W]=((e,t=e,n=!0)=>{const o=Qr("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,C=e.calc(o).div(7).mul(5).equal(),w=Fo(e,{menuArrowSize:C,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(C).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),x=Fo(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[kg(w),bg(w),$g(w),wg(w,"light"),wg(x,"dark"),yg(w),Sc(w),Xc(w,"slide-up"),Xc(w,"slide-down"),nd(w,"zoom-big")]},_g,{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)})(H,F,!n),K=_(`${H}-${s}`,E,i),q=o.useMemo(()=>{if("function"==typeof c||Ig(c))return c||null;if("function"==typeof r.expandIcon||Ig(r.expandIcon))return r.expandIcon||null;if("function"==typeof w?.expandIcon||Ig(w?.expandIcon))return w?.expandIcon||null;const e=c??r?.expandIcon??w?.expandIcon;return Wi(e,{className:_(`${H}-submenu-expand-icon`,o.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,w?.expandIcon,H]),U=o.useMemo(()=>({prefixCls:H,inlineCollapsed:B||!1,direction:S,firstLevel:!0,theme:s,mode:R,disableMenuItemTitleTooltip:d,classNames:z,styles:A}),[H,B,S,d,s,R,z,A]);return o.createElement(gg.Provider,{value:null},o.createElement(mg.Provider,{value:U},o.createElement(Xh,{getPopupContainer:$,overflowedIndicator:o.createElement(pg,null),overflowedIndicatorPopupClassName:_(H,`${H}-${s}`,v),classNames:{list:z.list,listTitle:z.itemTitle},styles:{list:A.list,listTitle:A.itemTitle},mode:R,selectable:M,onClick:D,...O,inlineCollapsed:B,style:{...A.root,...k,...l},className:K,prefixCls:H,direction:S,defaultMotions:L,expandIcon:q,ref:t,rootClassName:_(m,j,r.rootClassName,W,F,z.root),_internalComponents:Pg})))});var Dg=Og;const Rg=b((e,t)=>{const n=m(null),r=o.useContext(ag);return g(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),o.createElement(Dg,{ref:n,...e,...r})});Rg.Item=hg,Rg.SubMenu=Ng,Rg.Divider=fg,Rg.ItemGroup=Fh,"production"!==process.env.NODE_ENV&&(Rg.displayName="Menu");var Mg=Rg;var Bg=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 Tg=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:Lc},[`&${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:Fc},[`&${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:Hc},[`&${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:jc}}},lf(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`]:{...qr(e),[n]:{padding:u,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Xr(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ht(c)} ${Ht(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:`${Ht(c)} ${Ht(f)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Xr(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:`${Ht(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 ${Ht(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}}}},[Xc(e,"slide-up"),Xc(e,"slide-down"),Ac(e,"move-up"),Ac(e,"move-down"),nd(e,"zoom-big")]]};var zg=Qr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,a=Fo(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Tg(a),Bg(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...rf({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...nf(e)}),{resetStyle:!1});const Ag=e=>{const{menu:t,arrow:n,prefixCls:r,children:a,trigger:i,disabled:l,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:C,classNames:w,styles:x,destroyPopupOnHide:$,destroyOnHidden:S}=e,{getPrefixCls:E,direction:k,getPopupContainer:N,className:I,style:P,classNames:O,styles:D}=dt("dropdown"),R={...e,mouseEnterDelay:g,mouseLeaveDelay:v,autoAdjustOverflow:b},[M,B]=Di([O,w],[D,x],{props:R}),T={...P,...m,...B.root},z=c||s,A=Te("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=o.useMemo(()=>{const e=E();return void 0!==C?C:y.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[E,y,C]),H=o.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:"rtl"===k?"bottomRight":"bottomLeft",[y,k]),F=E("dropdown",r),j=qi(F),[W,K]=zg(F,j),[,q]=Vr(),U=o.Children.only(Tf(a)?o.createElement("span",null,a):a),X=Wi(U,{className:_(`${F}-trigger`,{[`${F}-rtl`]:"rtl"===k},U.props.className),disabled:U.props.disabled??l}),Y=l?[]:i,Q=!!Y?.includes("contextMenu"),[Z,J]=G(!1,f),ee=V(e=>{h?.(e,{source:"trigger"}),J(e)}),te=_(u,p,W,K,j,I,M.root,{[`${F}-rtl`]:"rtl"===k}),ne=uf({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:b,offset:q.marginXXS,arrowWidth:n?q.sizePopupArrow:0,borderRadius:q.borderRadius}),oe=V(()=>{t?.selectable&&t?.multiple||(h?.(!1,{source:"menu"}),J(!1))}),[re,ae]=Fi("Dropdown",T.zIndex);let ie=o.createElement(Bf,{alignPoint:Q,...Ne(e,["rootClassName","onOpenChange"]),mouseEnterDelay:g,mouseLeaveDelay:v,visible:Z,builtinPlacements:ne,arrow:!!n,overlayClassName:te,prefixCls:F,getPopupContainer:d||N,transitionName:L,trigger:Y,overlay:()=>{const e=Ne(M,["root"]),n=Ne(B,["root"]);let r;return t?.items&&(r=o.createElement(Mg,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),z&&(r=z(r)),r=o.Children.only("string"==typeof r?o.createElement("span",null,r):r),o.createElement(vg,{prefixCls:`${F}-menu`,rootClassName:_(K,j),expandIcon:o.createElement("span",{className:`${F}-menu-submenu-arrow`},"rtl"===k?o.createElement(_f,{className:`${F}-menu-submenu-arrow-icon`}):o.createElement(xc,{className:`${F}-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.`)}},r)},placement:H,onVisibleChange:ee,overlayStyle:{...T,zIndex:re},autoDestroy:S??$},X);return re&&(ie=o.createElement(zi.Provider,{value:ae},ie)),ie},Lg=Ou(Ag,"align",void 0,"dropdown",e=>e);Ag._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(Lg,{...e},o.createElement("span",null)),"production"!==process.env.NODE_ENV&&(Ag.displayName="Dropdown");var Hg=Ag;const Fg=({children:e})=>{const{getPrefixCls:t}=o.useContext(st),n=t("breadcrumb"),r=o.useContext(xf),{classNames:a,styles:i}=r;return o.createElement("li",{className:_(`${n}-separator`,a?.separator),style:i?.separator,"aria-hidden":"true"},""===e?e:e||"/")};Fg.__ANT_BREADCRUMB_SEPARATOR=!0;var jg=Fg;function Wg(e,t,n,r){if(!Si(n))return null;const{className:a,onClick:i,...l}=t,s={...ii(l,{data:!0,aria:!0}),onClick:i};return void 0!==r?o.createElement("a",{...s,className:_(`${e}-link`,a),href:r},n):o.createElement("span",{...s,className:_(`${e}-link`,a)},n)}function Vg(e,t){return(n,o,r,a,i)=>{if(t)return t(n,o,r,a);const l=function(e,t){if(!Si(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 Wg(e,n,l,i)}}const Kg=e=>{const{prefixCls:t,separator:n="/",children:r,menu:a,dropdownProps:i,href:l}=e,s=o.useContext(xf),{classNames:c,styles:d}=s,u=(e=>{if(a){const n={...i};if(a){const{items:e,...t}=a||{};n.menu={...t,items:e?.map(({key:e,title:t,label:n,path:r,...a},i)=>{let s=n??t;return r&&(s=o.createElement("a",{href:`${l}${r}`},s)),{...a,key:e??i,label:s}})}}return o.createElement(Hg,{placement:"bottom",...n},o.createElement("span",{className:`${t}-overlay-link`},e,o.createElement(Bm,null)))}return e})(r);return Si(u)?o.createElement(o.Fragment,null,o.createElement("li",{className:_(`${t}-item`,c?.item),style:d?.item},u),n&&o.createElement(jg,null,n)):null},qg=e=>{const{prefixCls:t,children:n,href:r,...a}=e,{getPrefixCls:i}=o.useContext(st),l=i("breadcrumb",t);return o.createElement(Kg,{...a,prefixCls:l},Wg(l,a,n,r))};qg.__ANT_BREADCRUMB_ITEM=!0;var Ug=qg;var Xg=Qr("Breadcrumb",e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:{...qr(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 ${Ht(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},...Xr(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 ${Ht(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"}}}})(Fo(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));function Gg(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 Yg=e=>{const{prefixCls:t,separator:n,style:r,className:a,rootClassName:i,routes:l,items:s,children:c,itemRender:u,params:p={},classNames:m,styles:f,...h}=e,{getPrefixCls:g,direction:v,className:b,style:y,classNames:C,styles:w,separator:x}=dt("breadcrumb"),$=n??x??"/";let S;const E=g("breadcrumb",t),[k,N]=Xg(E),I=function(e,t){return d(()=>e||(t?t.map(Gg):null),[e,t])}(s,l),P=o.useMemo(()=>({...e,separator:$}),[e,$]),[O,D]=Di([C,m],[w,f],{props:P});if("production"!==process.env.NODE_ENV){const e=Te("Breadcrumb");if(e.deprecated(!l,"routes","items"),!I||0===I.length){const t=Ie(c);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 R=Vg(E,u);if(I&&I.length>0){const e=[],t=s||l;S=I.map((n,r)=>{const{path:a,key:i,type:l,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,a);void 0!==h&&e.push(h);const g=i??r;if("separator"===l)return o.createElement(jg,{key:g},m);const v={},b=r===I.length-1;s&&(v.menu=s);let{href:y}=n;return e.length&&void 0!==h&&(y=`#/${e.join("/")}`),o.createElement(Kg,{key:g,...v,...ii(n,{data:!0,aria:!0}),className:d,style:u,dropdownProps:f,href:y,separator:b?"":$,onClick:c,prefixCls:E},R(n,p,t,e,y))})}else if(c){const e=Ie(c).length;S=Ie(c).map((t,n)=>{if(!t)return t;return Wi(t,{separator:n===e-1?"":$,key:n})})}const M=_(E,b,{[`${E}-rtl`]:"rtl"===v},a,i,O.root,k,N),B={...D.root,...y,...r},T=o.useMemo(()=>({classNames:O,styles:D}),[O,D]);return o.createElement(xf.Provider,{value:T},o.createElement("nav",{className:M,style:B,...h},o.createElement("ol",null,S)))};Yg.Item=Ug,Yg.Separator=jg,"production"!==process.env.NODE_ENV&&(Yg.displayName="Breadcrumb");var Qg=Yg;function Zg(e){var t;return(void 0===(t=e)||!1===t?[]:Array.isArray(t)?t:[t]).join("_")}const Jg=o.createContext(null),ev=Jg.Provider,tv=o.createContext(null),nv=tv.Provider;function ov(){return ov=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},ov.apply(this,arguments)}const rv=b((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:a,checked:i,disabled:l,defaultChecked:s=!1,type:c="checkbox",title:d,onChange:u,...p}=e,f=m(null),h=m(null),[v,b]=G(s,i);g(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:h.current}));const y=_(n,r,{[`${n}-checked`]:v,[`${n}-disabled`]:l});return o.createElement("span",{className:y,title:d,style:a,ref:h},o.createElement("input",ov({},p,{className:`${n}-input`,ref:f,onChange:t=>{l||("checked"in e||b(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:l,checked:!!v,type:c})),o.createElement("span",{className:`${n}-inner`}))});function av(e){const t=r.useRef(null),n=()=>{rt.cancel(t.current),t.current=null};return[()=>{n(),t.current=rt(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e?.(o)}]}const iv=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:{...qr(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}}}},lv=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`,C=b(r).sub(b(4).mul(2)),w=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:{...qr(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:`${Ht(d)} ${h} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...qr(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}`]:Ur(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(C).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},sv=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:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:$,colorPrimary:S,colorPrimaryHover:E,colorPrimaryActive:k,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:N,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:Ht(P(n).sub(P(r).mul(2)).equal()),background:d,border:`${Ht(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:`${Ht(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:Ht(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:Ht(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)":Ur(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:_,borderColor:_,"&:hover":{color:y,background:N,borderColor:N},"&:active":{color:y,background:I,borderColor:I}},"&-disabled":{color:C,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:$,backgroundColor:x,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var cv=Qr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${Ht(n)} ${t}`,r=Fo(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[iv(r),lv(r),sv(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 dv=(e,t)=>{const n=o.useContext(Jg),r=o.useContext(tv),{getPrefixCls:a,direction:i,className:l,style:s,classNames:c,styles:d}=dt("radio"),u=o.useRef(null),p=ce(t,u),{isFormItemInput:m}=o.useContext(_u);if("production"!==process.env.NODE_ENV){const t=Te("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:C,classNames:w,styles:x,...$}=e,S=a("radio",h),E="button"===(n?.optionType||r),k=E?`${S}-button`:S,N=qi(S),[I,P]=cv(S,N),O={...$},D=o.useContext(Gl);n&&(O.name=n.name,O.onChange=f,O.checked=e.value===n.value,O.disabled=O.disabled??n.disabled),O.disabled=O.disabled??D;const R={...e,...O},[M,B]=Di([c,w],[d,x],{props:R}),T=_(`${k}-wrapper`,{[`${k}-wrapper-checked`]:O.checked,[`${k}-wrapper-disabled`]:O.disabled,[`${k}-wrapper-rtl`]:"rtl"===i,[`${k}-wrapper-in-form-item`]:m,[`${k}-wrapper-block`]:!!n?.block},l,g,v,M.root,I,P,N),[z,A]=av(O.onClick);return o.createElement(Is,{component:"Radio",disabled:O.disabled},o.createElement("label",{className:T,style:{...B.root,...s,...y},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:z},o.createElement(rv,{...O,className:_(M.icon,{[xs]:!E}),style:B.icon,type:"radio",prefixCls:k,ref:p,onClick:A}),void 0!==b?o.createElement("span",{className:_(`${k}-label`,M.label),style:B.label},b):null))},uv=o.forwardRef(dv);"production"!==process.env.NODE_ENV&&(uv.displayName="Radio");var pv=uv;const mv=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(st),{name:a}=o.useContext(_u),i=il(Zg(a)),{prefixCls:l,className:s,rootClassName:c,options:d,buttonStyle:u="outline",disabled:p,children:m,size:f,style:h,id:g,optionType:v,name:b=i,defaultValue:y,value:C,block:w=!1,onChange:x,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k,orientation:N,vertical:I}=e,[P,O]=G(y,C),D=o.useCallback(t=>{const n=P,o=t.target.value;"value"in e||O(o),o!==n&&x?.(t)},[P,O,x]),R=n("radio",l),M=`${R}-group`,B=qi(R),[T,z]=cv(R,B);let A=m;d&&d.length>0&&(A=d.map(e=>"string"==typeof e||"number"==typeof e?o.createElement(pv,{key:e.toString(),prefixCls:R,disabled:p,value:e,checked:P===e},e):o.createElement(pv,{key:`radio-group-value-options-${e.value}`,prefixCls:R,disabled:e.disabled||p,value:e.value,checked:P===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const L=Ps(f),[,H]=Mi(N,I),F=_(M,`${M}-${u}`,{[`${M}-${L}`]:L,[`${M}-rtl`]:"rtl"===r,[`${M}-block`]:w},s,c,T,z,B),j=o.useMemo(()=>({onChange:D,value:P,disabled:p,name:b,optionType:v,block:w}),[D,P,p,b,v,w]);return o.createElement("div",{...ii(e,{aria:!0,data:!0}),className:_(F,{[`${R}-group-vertical`]:H}),style:h,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k,id:g,ref:t},o.createElement(ev,{value:j},A))});var fv=o.memo(mv);const hv=(e,t)=>{const{getPrefixCls:n}=o.useContext(st),{prefixCls:r,...a}=e,i=n("radio",r);return o.createElement(nv,{value:"button"},o.createElement(pv,{prefixCls:i,...a,type:"radio",ref:t}))};var gv=o.forwardRef(hv);const vv=pv;vv.Button=gv,vv.Group=fv,vv.__ANT_RADIO=!0;var bv=vv;function yv(e){return Fo(e,{inputAffixPadding:e.paddingXXS})}const Cv=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:C,inputFontSizeLG:w,inputFontSizeSM:x}=e,$=C||n,S=x||$,E=w||l,k=Math.round((t-$*o)/2*10)/10-r,_=Math.round((a-S*o)/2*10)/10-r,N=Math.ceil((i-E*s)/2*10)/10-r;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(N,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}},wv=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),xv=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])":{...wv(Fo(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),$v=(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}}),Sv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...$v(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Ev=(e,t)=>({"&-outlined":{...$v(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...xv(e)},...Sv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Sv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),kv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_v=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ht(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...kv(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...kv(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...xv(e)}}}}),Nv=(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}}},Iv=(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}}),Pv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Iv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Ov=(e,t)=>({"&-filled":{...Iv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...xv(e)},...Pv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...Pv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),Dv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Rv=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...Dv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Dv(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:`${Ht(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ht(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ht(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ht(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ht(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ht(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),Mv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Ht(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}}),Bv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Mv(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`}}),Tv=(e,t)=>({"&-underlined":{...Mv(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"},...Bv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Bv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),zv=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Ht(t)} ${Ht(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Av=e=>({padding:`${Ht(e.paddingBlockSM)} ${Ht(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Lv=(e,t={})=>{return{position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ht(e.paddingBlock)} ${Ht(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":{...zv(e),...t.largeStyle},"&-sm":{...Av(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}};var n},Hv=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`]:{...zv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Av(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 ${Ht(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ht(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ht(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${Ht(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${Ht(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`]:{}}}}},Fv=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]:{...qr(e),...Lv(e),...Ev(e),...Ov(e),...Nv(e),...Tv(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"}}}},jv=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 ${Ht(e.inputAffixPadding)}`}}}},Wv=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]:{...Lv(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}},...jv(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}}}}},Vv=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:{...qr(e),...Hv(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}},..._v(e),...Rv(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}}}}}},Kv=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},qv=Qr(["Input","Shared"],e=>{const t=Fo(e,yv(e));return[Fv(t),Wv(t)]},Cv,{resetFont:!1});var Uv=Qr(["Input","Component"],e=>{const t=Fo(e,yv(e));return[Vv(t),Kv(t),gd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Cv,{resetFont:!1});function Xv(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 Gv(e,t){return e[t]}function Yv(e,t){return`${e}-${t}`}function Qv(e,t){return null!=e?e:t}function Zv(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 Jv(e){return function e(t){return Ie(t).map(t=>{if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return ke(!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 eb(e,t,n){const{_title:o,key:r,children:a}=Zv(n),i=new Set(!0===t?[]:t),l=[];return function e(n,s=null){return n.map((c,d)=>{const u=Yv(s?s.pos:"0",d),p=Qv(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(Ne(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 tb(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}=Zv(i),c=r||s;let d;a?"string"==typeof a?d=e=>e[a]:"function"==typeof a&&(d=e=>a(e)):d=(e,t)=>Qv(e[l],t),function n(o,r,a,i){const l=o?o[c]:e,s=o?Yv(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=Qv(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 nb(e,{expandedKeys:t,selectedKeys:n,loadedKeys:o,loadingKeys:r,checkedKeys:a,halfCheckedKeys:i,dragOverNodeKey:l,dropPosition:s,keyEntities:c}){const d=Gv(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 ob(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:()=>(ke(!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 rb(e,t){const n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function ab(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function ib(e,t,n,o){const r=[];let a;a=o||ab;const i=new Set(e.filter(e=>{const t=!!Gv(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)}),ke(!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(rb(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(rb(i,a))}}(i,t.halfCheckedKeys,l,c,a),s}function lb(e,t){return(e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:{...qr(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[n]:{...qr(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]:{...qr(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`]:Ur(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ht(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:`${Ht(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}}}]})(Fo(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var sb=Qr("Checkbox",(e,{prefixCls:t})=>[lb(t,e)]);var cb=r.createContext(null);const db=(e,t)=>{const{prefixCls:n,className:r,rootClassName:a,children:i,indeterminate:l=!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:C,styles:w}=dt("checkbox"),x=o.useContext(cb),{isFormItemInput:$}=o.useContext(_u),S=o.useContext(Gl),E=(x?.disabled||p)??S,k={...e,indeterminate:l,disabled:E},[N,I]=Di([C,m],[w,f],{props:k}),P=o.useRef(h.value),O=o.useRef(null),D=ce(t,O);if("production"!==process.env.NODE_ENV){const e=Te("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in h||!!x||!("value"in h),"usage","`value` is not a valid prop, do you mean `checked`?")}o.useEffect(()=>{x?.registerValue(h.value)},[]),o.useEffect(()=>{if(!u)return h.value!==P.current&&(x?.cancelValue(P.current),x?.registerValue(h.value),P.current=h.value),()=>x?.cancelValue(h.value)},[h.value]),o.useEffect(()=>{O.current?.input&&(O.current.input.indeterminate=l)},[l]);const R=g("checkbox",n),M=qi(R),[B,T]=sb(R,M),z={...h};x&&!u&&(z.onChange=(...e)=>{h.onChange&&h.onChange.apply(h,e),x.toggleOption&&x.toggleOption({label:i,value:h.value})},z.name=x.name,z.checked=x.value.includes(h.value));const A=_(`${R}-wrapper`,{[`${R}-rtl`]:"rtl"===v,[`${R}-wrapper-checked`]:z.checked,[`${R}-wrapper-disabled`]:E,[`${R}-wrapper-in-form-item`]:$},b,r,N.root,a,T,M,B),L=_(N.icon,{[`${R}-indeterminate`]:l},xs,B),[H,F]=av(z.onClick);return o.createElement(Is,{component:"Checkbox",disabled:E},o.createElement("label",{className:A,style:{...I.root,...y,...s},onMouseEnter:c,onMouseLeave:d,onClick:H},o.createElement(rv,{...z,onClick:F,prefixCls:R,className:L,style:I.icon,disabled:E,ref:D}),Si(i)&&o.createElement("span",{className:_(`${R}-label`,N.label),style:I.label},i)))},ub=o.forwardRef(db);"production"!==process.env.NODE_ENV&&(ub.displayName="Checkbox");var pb=ub;const mb=o.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:i,className:l,rootClassName:s,style:c,onChange:d,...u}=e,{getPrefixCls:p,direction:m}=o.useContext(st),[f,h]=o.useState(u.value||n||[]),[g,v]=o.useState([]);o.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const b=o.useMemo(()=>a.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[a]),y=e=>{v(t=>t.filter(t=>t!==e))},C=e=>{v(t=>[].concat(Ze(t),[e]))},w=e=>{const t=f.indexOf(e.value),n=Ze(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)))},x=p("checkbox",i),$=`${x}-group`,S=qi(x),[E,k]=sb(x,S),N=Ne(u,["value","disabled"]),I=a.length?b.map(e=>o.createElement(pb,{prefixCls:x,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:f.includes(e.value),onChange:e.onChange,className:_(`${$}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,P=o.useMemo(()=>({toggleOption:w,value:f,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y}),[w,f,u.disabled,u.name,C,y]),O=_($,{[`${$}-rtl`]:"rtl"===m},l,s,k,S,E);return o.createElement("div",{className:O,style:c,...N,ref:t},o.createElement(cb.Provider,{value:P},I))});var fb=mb;const hb=pb;hb.Group=fb,hb.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(hb.displayName="Checkbox");var gb=hb,vb={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 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 yb=(e,t)=>o.createElement(ga,bb({},e,{ref:t,icon:vb})),Cb=o.forwardRef(yb);
21
- /**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(Cb.displayName="CaretDownFilled");var wb=Cb,xb={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 $b(){return $b=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},$b.apply(this,arguments)}const Sb=(e,t)=>o.createElement(ga,$b({},e,{ref:t,icon:xb})),Eb=o.forwardRef(Sb);
22
- /**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(Eb.displayName="CaretDownOutlined");var kb=Eb,_b={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 Nb(){return Nb=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},Nb.apply(this,arguments)}const Ib=(e,t)=>o.createElement(ga,Nb({},e,{ref:t,icon:_b})),Pb=o.forwardRef(Ib);
23
- /**![caret-up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OC45IDY4OUw1MzAuNSAzMDguMmMtOS40LTEwLjktMjcuNS0xMC45LTM3IDBMMTY1LjEgNjg5Yy0xMi4yIDE0LjItMS4yIDM1IDE4LjUgMzVoNjU2LjhjMTkuNyAwIDMwLjctMjAuOCAxOC41LTM1eiIgLz48L3N2Zz4=) */"production"!==process.env.NODE_ENV&&(Pb.displayName="CaretUpOutlined");var Ob=Pb,Db={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 Rb(){return Rb=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},Rb.apply(this,arguments)}const Mb=(e,t)=>o.createElement(ga,Rb({},e,{ref:t,icon:Db})),Bb=o.forwardRef(Mb);
24
- /**![double-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3Mi45IDUxMmwyNjUuNC0zMzkuMWM0LjEtNS4yLjQtMTIuOS02LjMtMTIuOWgtNzcuM2MtNC45IDAtOS42IDIuMy0xMi42IDYuMUwxODYuOCA0OTIuM2EzMS45OSAzMS45OSAwIDAwMCAzOS41bDI1NS4zIDMyNi4xYzMgMy45IDcuNyA2LjEgMTIuNiA2LjFINTMyYzYuNyAwIDEwLjQtNy43IDYuMy0xMi45TDI3Mi45IDUxMnptMzA0IDBsMjY1LjQtMzM5LjFjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc3LjNjLTQuOSAwLTkuNiAyLjMtMTIuNiA2LjFMNDkwLjggNDkyLjNhMzEuOTkgMzEuOTkgMCAwMDAgMzkuNWwyNTUuMyAzMjYuMWMzIDMuOSA3LjcgNi4xIDEyLjYgNi4xSDgzNmM2LjcgMCAxMC40LTcuNyA2LjMtMTIuOUw1NzYuOSA1MTJ6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(Bb.displayName="DoubleLeftOutlined");var Tb=Bb,zb={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 Ab(){return Ab=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},Ab.apply(this,arguments)}const Lb=(e,t)=>o.createElement(ga,Ab({},e,{ref:t,icon:zb})),Hb=o.forwardRef(Lb);
25
- /**![double-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzMy4yIDQ5Mi4zTDI3Ny45IDE2Ni4xYy0zLTMuOS03LjctNi4xLTEyLjYtNi4xSDE4OGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlMNDQ3LjEgNTEyIDE4MS43IDg1MS4xQTcuOTggNy45OCAwIDAwMTg4IDg2NGg3Ny4zYzQuOSAwIDkuNi0yLjMgMTIuNi02LjFsMjU1LjMtMzI2LjFjOS4xLTExLjcgOS4xLTI3LjkgMC0zOS41em0zMDQgMEw1ODEuOSAxNjYuMWMtMy0zLjktNy43LTYuMS0xMi42LTYuMUg0OTJjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45TDc1MS4xIDUxMiA0ODUuNyA4NTEuMUE3Ljk4IDcuOTggMCAwMDQ5MiA4NjRoNzcuM2M0LjkgMCA5LjYtMi4zIDEyLjYtNi4xbDI1NS4zLTMyNi4xYzkuMS0xMS43IDkuMS0yNy45IDAtMzkuNXoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(Hb.displayName="DoubleRightOutlined");var Fb=Hb,jb={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 Wb(){return Wb=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},Wb.apply(this,arguments)}const Vb=(e,t)=>o.createElement(ga,Wb({},e,{ref:t,icon:jb})),Kb=o.forwardRef(Vb);
26
- /**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(Kb.displayName="FileOutlined");var qb=Kb,Ub={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 Xb(){return Xb=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},Xb.apply(this,arguments)}const Gb=(e,t)=>o.createElement(ga,Xb({},e,{ref:t,icon:Ub})),Yb=o.forwardRef(Gb);
27
- /**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM0OSA4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNjQySDM0OXYxOTZ6bTUzMS4xLTY4NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4bDIyMS4zIDM3NmgzNDguOGwyMjEuMy0zNzZjMTIuMS0yMS4zLTMuMi00OC0yNy43LTQ4eiIgLz48L3N2Zz4=) */"production"!==process.env.NODE_ENV&&(Yb.displayName="FilterFilled");var Qb=Yb,Zb={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 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 ey=(e,t)=>o.createElement(ga,Jb({},e,{ref:t,icon:Zb})),ty=o.forwardRef(ey);
28
- /**![folder-open](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCA0NDRIODIwVjMzMC40YzAtMTcuNy0xNC4zLTMyLTMyLTMySDQ3M0wzNTUuNyAxODYuMmE4LjE1IDguMTUgMCAwMC01LjUtMi4ySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1OTJjMCAxNy43IDE0LjMgMzIgMzIgMzJoNjk4YzEzIDAgMjQuOC03LjkgMjkuNy0yMGwxMzQtMzMyYzEuNS0zLjggMi4zLTcuOSAyLjMtMTIgMC0xNy43LTE0LjMtMzItMzItMzJ6TTEzNiAyNTZoMTg4LjVsMTE5LjYgMTE0LjRINzQ4VjQ0NEgyMzhjLTEzIDAtMjQuOCA3LjktMjkuNyAyMEwxMzYgNjQzLjJWMjU2em02MzUuMyA1MTJIMTU5bDEwMy4zLTI1Nmg2MTIuNEw3NzEuMyA3Njh6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(ty.displayName="FolderOpenOutlined");var ny=ty,oy={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 ry(){return ry=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},ry.apply(this,arguments)}const ay=(e,t)=>o.createElement(ga,ry({},e,{ref:t,icon:oy})),iy=o.forwardRef(ay);
29
- /**![folder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAyOTguNEg1MjFMNDAzLjcgMTg2LjJhOC4xNSA4LjE1IDAgMDAtNS41LTIuMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjU5MmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzMwLjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTg0MCA3NjhIMTg0VjI1NmgxODguNWwxMTkuNiAxMTQuNEg4NDBWNzY4eiIgLz48L3N2Zz4=) */"production"!==process.env.NODE_ENV&&(iy.displayName="FolderOutlined");var ly=iy,sy={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 cy(){return cy=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},cy.apply(this,arguments)}const dy=(e,t)=>o.createElement(ga,cy({},e,{ref:t,icon:sy})),uy=o.forwardRef(dy);
30
- /**![holder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAyNzYuNWE1NiA1NiAwIDEwNTYtOTcgNTYgNTYgMCAwMC01NiA5N3ptMCAyODRhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCAyMjhhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDAwLTExMiAwek0zMDAgODQ0LjVhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCA3OTZhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(uy.displayName="HolderOutlined");var py=uy,my={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 fy(){return fy=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},fy.apply(this,arguments)}const hy=(e,t)=>o.createElement(ga,fy({},e,{ref:t,icon:my})),gy=o.forwardRef(hy);
31
- /**![minus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMzY4YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04SDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(gy.displayName="MinusSquareOutlined");var vy=gy,by={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 yy(){return yy=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},yy.apply(this,arguments)}const Cy=(e,t)=>o.createElement(ga,yy({},e,{ref:t,icon:by})),wy=o.forwardRef(Cy);
32
- /**![plus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMTUydjE1MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjU0NGgxNTJjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(wy.displayName="PlusSquareOutlined");var xy=wy;const $y=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 Sy=Qr(["Space","Addon"],e=>[$y(e),gd(e,{focus:!1})]);const Ey=r.forwardRef((e,t)=>{const{className:n,children:o,style:a,prefixCls:i,variant:l="outlined",disabled:s,status:c,...d}=e,{getPrefixCls:u,direction:p}=r.useContext(st),m=u("space-addon",i),[f,h]=Sy(m),{compactItemClassnames:g,compactSize:v}=Ms(m,p),b=_(m,f,g,h,`${m}-variant-${l}`,nm(m,c),{[`${m}-${v}`]:v,[`${m}-disabled`]:s},n);return r.createElement("div",{ref:t,className:b,style:a,...d},o)});var ky=Ey;function _y(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 Ny(e,t,n,o){if(!n)return;let r=t;return"click"===t.type?(r=_y(t,e,""),void n(r)):"file"!==e.type&&void 0!==o?(r=_y(t,e,o),void n(r)):void n(r)}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 Py=r.forwardRef((e,t)=>{const{inputElement:n,children:o,prefixCls:a,prefix:i,suffix:l,addonBefore:s,addonAfter:c,className:d,style:u,disabled:p,readOnly:f,focused:h,triggerFocus:g,allowClear:v,value:b,handleReset:C,hidden:w,classes:x,classNames:$,dataAttrs:S,styles:E,components:k,onClear:N}=e,I=o??n,P=k?.affixWrapper||"span",O=k?.groupWrapper||"span",D=k?.wrapper||"span",R=k?.groupAddon||"span",M=m(null),B=e=>{M.current?.contains(e.target)&&g?.()},T=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e);let z=y(I,{value:b,className:_(I.props?.className,!T&&$?.variant)||null});const A=m(null);if(r.useImperativeHandle(t,()=>({nativeElement:A.current||M.current})),T){let e=null;if(v){const t=!p&&!f&&b,n=`${a}-clear-icon`,o="object"==typeof v&&v?.clearIcon?v.clearIcon:"✖";e=r.createElement("button",{type:"button",tabIndex:-1,onClick:e=>{C?.(e),N?.()},onMouseDown:e=>e.preventDefault(),className:_(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!l})},o)}const t=`${a}-affix-wrapper`,n=_(t,{[`${a}-disabled`]:p,[`${t}-disabled`]:p,[`${t}-focused`]:h,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:l&&v&&b},x?.affixWrapper,$?.affixWrapper,$?.variant),o=(l||v)&&r.createElement("span",{className:_(`${a}-suffix`,$?.suffix),style:E?.suffix},e,l);z=r.createElement(P,Iy({className:n,style:E?.affixWrapper,onClick:B},S?.affixWrapper,{ref:M}),i&&r.createElement("span",{className:_(`${a}-prefix`,$?.prefix),style:E?.prefix},i),z,o)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){const e=`${a}-group`,t=`${e}-addon`,n=`${e}-wrapper`,o=_(`${a}-wrapper`,e,x?.wrapper,$?.wrapper),i=_(n,{[`${n}-disabled`]:p},x?.group,$?.groupWrapper);z=r.createElement(O,{className:i,ref:A},r.createElement(D,{className:o},s&&r.createElement(R,{className:t},s),z,c&&r.createElement(R,{className:t},c)))}return r.cloneElement(z,{className:_(z.props?.className,d)||null,style:{...z.props?.style,...u},hidden:w})});function Oy(){return Oy=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},Oy.apply(this,arguments)}const Dy=b((e,t)=>{const{autoComplete:n,onChange:i,onFocus:l,onBlur:s,onPressEnter:c,onKeyDown:d,onKeyUp:u,prefixCls:f="rc-input",disabled:h,htmlSize:v,className:b,maxLength:y,suffix:C,showCount:w,count:x,type:$="text",classes:S,classNames:E,styles:k,onCompositionStart:N,onCompositionEnd:I,...P}=e,[O,D]=a(!1),R=m(!1),M=m(!1),B=m(null),T=m(null),z=e=>{B.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)}}}(B.current,e)},[A,L]=G(e.defaultValue,e.value),H=null==A?"":String(A),[F,j]=a(null),W=function(e,t){return o.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])}(x,w),V=W.max||y,K=W.strategy(H),q=!!V&&K>V;g(t,()=>({focus:z,blur:()=>{B.current?.blur()},setSelectionRange:(e,t,n)=>{B.current?.setSelectionRange(e,t,n)},select:()=>{B.current?.select()},input:B.current,nativeElement:T.current?.nativeElement||B.current})),p(()=>{M.current&&(M.current=!1),D(e=>(!e||!h)&&e)},[h]);const U=(e,t,n)=>{let o=t;if(!R.current&&W.exceedFormatter&&W.max&&W.strategy(t)>W.max)o=W.exceedFormatter(t,{max:W.max}),t!==o&&j([B.current?.selectionStart||0,B.current?.selectionEnd||0]);else if("compositionEnd"===n.source)return;L(o),B.current&&Ny(B.current,e,i,o)};p(()=>{F&&B.current?.setSelectionRange(...F)},[F]);const X=e=>{U(e,e.target.value,{source:"change"})},Y=e=>{R.current=!1,U(e,e.currentTarget.value,{source:"compositionEnd"}),I?.(e)},Q=e=>{!c||"Enter"!==e.key||M.current||e.nativeEvent.isComposing||(M.current=!0,c(e)),d?.(e)},Z=e=>{"Enter"===e.key&&(M.current=!1),u?.(e)},J=e=>{D(!0),l?.(e)},ee=e=>{M.current&&(M.current=!1),D(!1),s?.(e)},te=q&&`${f}-out-of-range`;return r.createElement(Py,Oy({},P,{prefixCls:f,className:_(b,te),handleReset:e=>{L(""),z(),B.current&&Ny(B.current,e,i)},value:H,focused:O,triggerFocus:z,suffix:(()=>{const e=Number(V)>0;if(C||W.show){const t=W.showFormatter?W.showFormatter({value:H,count:K,maxLength:V}):`${K}${e?` / ${V}`:""}`;return r.createElement(r.Fragment,null,W.show&&r.createElement("span",{className:_(`${f}-show-count-suffix`,{[`${f}-show-count-has-suffix`]:!!C},E?.count),style:{...k?.count}},t),C)}return null})(),disabled:h,classes:S,classNames:E,styles:k,ref:T}),(()=>{const t=Ne(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return r.createElement("input",Oy({autoComplete:n},t,{onChange:X,onFocus:J,onBlur:ee,onKeyDown:Q,onKeyUp:Z,className:_(f,{[`${f}-disabled`]:h},E?.input),style:k?.input,ref:B,size:v,type:$,onCompositionStart:e=>{R.current=!0,N?.(e)},onCompositionEnd:Y}))})())});var Ry=e=>{let t;return"object"==typeof e&&e?.clearIcon?t=e:e&&(t={clearIcon:r.createElement(wa,null)}),t};const My=b((e,t)=>{const{prefixCls:n,bordered:o=!0,status:a,size:i,disabled:l,onBlur:s,onFocus:d,suffix:u,allowClear:f,addonAfter:h,addonBefore:g,className:v,style:b,styles:y,rootClassName:C,onChange:w,classNames:x,variant:$,...S}=e;if("production"!==process.env.NODE_ENV){const{deprecated:t}=Te("Input");[["bordered","variant"],["addonAfter","Space.Compact"],["addonBefore","Space.Compact"]].forEach(([n,o])=>{t(!(n in e),n,o)})}const{getPrefixCls:E,direction:k,allowClear:N,autoComplete:I,className:P,style:O,classNames:D,styles:R}=dt("input"),M=E("input",n),B=m(null),T=qi(M),[z,A]=qv(M,C);Uv(M,T);const{compactSize:L,compactItemClassnames:H}=Ms(M,k),F=Ps(e=>i??L??e),j=r.useContext(Gl),W=l??j,V={...e,size:F,disabled:W},[K,q]=Di([D,x],[R,y],{props:V}),{status:U,hasFeedback:X,feedbackIcon:G}=c(_u),Y=om(U,a),Q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!X,Z=m(Q);if("production"!==process.env.NODE_ENV){const e=Te("Input");p(()=>{Q&&!Z.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===B.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"),Z.current=Q},[Q])}const J=function(e,t){const n=m([]),o=()=>{n.current.push(setTimeout(()=>{e.current?.input&&"password"===e.current?.input.getAttribute("type")&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return p(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}(B,!0),ee=(X||u)&&r.createElement(r.Fragment,null,u,X&&G),te=Ry(f??N),[ne,oe]=fm("input",$,o);return r.createElement(Dy,{ref:ce(t,B),prefixCls:M,autoComplete:I,...S,disabled:W,onBlur:e=>{J(),s?.(e)},onFocus:e=>{J(),d?.(e)},style:{...q.root,...O,...b},styles:q,suffix:ee,allowClear:te,className:_(v,C,A,T,H,P,K.root),onChange:e=>{J(),w?.(e)},addonBefore:g&&r.createElement(Pu,{form:!0,space:!0},g),addonAfter:h&&r.createElement(Pu,{form:!0,space:!0},h),classNames:{...K,input:_({[`${M}-sm`]:"small"===F,[`${M}-lg`]:"large"===F,[`${M}-rtl`]:"rtl"===k},K.input,z),variant:_({[`${M}-${ne}`]:oe},nm(M,Y)),affixWrapper:_({[`${M}-affix-wrapper-sm`]:"small"===F,[`${M}-affix-wrapper-lg`]:"large"===F,[`${M}-affix-wrapper-rtl`]:"rtl"===k},z),wrapper:_({[`${M}-group-rtl`]:"rtl"===k},z),groupWrapper:_({[`${M}-group-wrapper-sm`]:"small"===F,[`${M}-group-wrapper-lg`]:"large"===F,[`${M}-group-wrapper-rtl`]:"rtl"===k,[`${M}-group-wrapper-${ne}`]:oe},nm(`${M}-group-wrapper`,Y,X),z)}})});"production"!==process.env.NODE_ENV&&(My.displayName="Input");var By=My;function Ty(e){return["small","middle","large"].includes(e)}function zy(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const Ay=r.createContext({latestIndex:0}),Ly=Ay.Provider;var Hy=e=>{const{className:t,prefix:n,index:r,children:a,separator:i,style:l,classNames:s,styles:c}=e,{latestIndex:d}=o.useContext(Ay);return Si(a)?o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:l},a),r<d&&i&&o.createElement("span",{className:_(`${n}-item-separator`,s.separator),style:c.separator},i)):null};const Fy=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"}}}},jy=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 Wy=Qr("Space",e=>{const t=Fo(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Fy(t),jy(t)]},()=>({}),{resetStyle:!1});const Vy=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:a,className:i,style:l,classNames:s,styles:c}=dt("space"),{size:d=a??"small",align:u,className:p,rootClassName:m,children:f,direction:h,orientation:g,prefixCls:v,split:b,separator:y,style:C,vertical:w,wrap:x=!1,classNames:$,styles:S,...E}=e,[k,N]=Array.isArray(d)?d:[d,d],I=Ty(N),P=Ty(k),O=zy(N),D=zy(k),R=Ie(f,{keepEmpty:!0}),[M,B]=Mi(g,w,h),T=void 0!==u||B?u:"center",z=y??b,A=n("space",v),[L,H]=Wy(A),F={...e,size:d,orientation:M,align:T},[j,W]=Di([s,$],[c,S],{props:F}),V=_(A,i,L,`${A}-${M}`,{[`${A}-rtl`]:"rtl"===r,[`${A}-align-${T}`]:T,[`${A}-gap-row-${N}`]:I,[`${A}-gap-col-${k}`]:P},p,m,H,j.root),K=_(`${A}-item`,j.item),q=R.map((e,t)=>{const n=e?.key||`${K}-${t}`;return o.createElement(Hy,{prefix:A,classNames:j,styles:W,className:K,key:n,index:t,separator:z,style:W.item},e)});if("production"!==process.env.NODE_ENV){const t=Te("Space");[["direction","orientation"],["split","separator"]].forEach(([n,o])=>{t.deprecated(!(n in e),n,o)})}const U=o.useMemo(()=>({latestIndex:R.reduce((e,t,n)=>Si(t)?n:e,0)}),[R]);if(0===R.length)return null;const X={};return x&&(X.flexWrap="wrap"),!P&&D&&(X.columnGap=k),!I&&O&&(X.rowGap=N),o.createElement("div",{ref:t,className:V,style:{...X,...W.root,...l,...C},...E},o.createElement(Ly,{value:U},q))}),Ky=Vy;Ky.Compact=e=>{const{getPrefixCls:t,direction:n}=o.useContext(st),{size:r,direction:a,orientation:i,block:l,prefixCls:s,className:c,rootClassName:d,children:u,vertical:p,...m}=e;if("production"!==process.env.NODE_ENV){Te("Space.Compact").deprecated(!a,"direction","orientation")}const[f,h]=Mi(i,p,a),g=Ps(e=>r??e),v=t("space-compact",s),[b]=Ds(v),y=_(v,b,{[`${v}-rtl`]:"rtl"===n,[`${v}-block`]:l,[`${v}-vertical`]:h},c,d),C=o.useContext(Rs),w=Ie(u),x=o.useMemo(()=>w.map((e,t)=>{const n=e?.key||`${v}-item-${t}`;return o.createElement(Ts,{key:n,compactSize:g,compactDirection:f,isFirstItem:0===t&&(!C||C?.isFirstItem),isLastItem:t===w.length-1&&(!C||C?.isLastItem)},e)}),[w,C,f,g,v]);return 0===w.length?null:o.createElement("div",{className:y,...m},x)},Ky.Addon=ky,"production"!==process.env.NODE_ENV&&(Ky.displayName="Space");var qy=Ky;const Uy=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(st),{prefixCls:a,type:i="default",danger:l,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:C,placement:w,getPopupContainer:x,href:$,icon:S=o.createElement(pg,null),title:E,buttonsRender:k=e=>e,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:P,overlayStyle:O,destroyOnHidden:D,destroyPopupOnHide:R,dropdownRender:M,popupRender:B,...T}=e,z=n("dropdown",a),A=`${z}-button`,L={menu:f,arrow:h,autoFocus:g,align:b,disabled:s,trigger:s?[]:v,onOpenChange:C,getPopupContainer:x||t,mouseEnterDelay:N,mouseLeaveDelay:I,classNames:{root:P},styles:{root:O},destroyOnHidden:D,popupRender:B||M},{compactSize:H,compactItemClassnames:F}=Ms(z,r),j=_(A,F,m);if("destroyPopupOnHide"in e&&(L.destroyPopupOnHide=R),"open"in e&&(L.open=y),L.placement="placement"in e?w:"rtl"===r?"bottomLeft":"bottomRight","production"!==process.env.NODE_ENV){Te("Dropdown.Button").deprecated(!1,"Dropdown.Button","Space.Compact + Dropdown + Button")}const W=o.createElement(Sd,{type:i,danger:l,disabled:s,loading:c,onClick:d,htmlType:u,href:$,title:E},p),V=o.createElement(Sd,{type:i,danger:l,icon:S}),[K,q]=k([W,V]);return o.createElement(qy.Compact,{className:j,size:H,block:!0,...T},K,o.createElement(Hg,{...L},q))};Uy.__ANT_BUTTON=!0;var Xy=Uy;const Gy=Hg;Gy.Button=Xy;var Yy=Gy;const Qy={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:"页码"},Zy=[10,20,50,100],Jy=e=>{const{pageSizeOptions:t=Zy,locale:n,changeSize:o,pageSize:a,goButton:i,quickGo:l,rootPrefixCls:s,disabled:c,buildOptionText:d,showSizeChanger:u,sizeChangerRender:p}=e,[m,f]=r.useState(""),h=r.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=>{i||""===m||(f(""),e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`))||l?.(h))},y=e=>{""!==m&&(e.keyCode!==ss.ENTER&&"click"!==e.type||(f(""),l?.(h)))},C=`${s}-options`;if(!u&&!l)return null;let w=null,x=null,$=null;return u&&p&&(w=p({disabled:c,size:a,onSizeChange:e=>{o?.(Number(e))},"aria-label":n.page_size,className:`${C}-size-changer`,options:(t.some(e=>e.toString()===a.toString())?t:t.concat([a]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t)))).map(e=>({label:g(e),value:e}))})),l&&(i&&($="boolean"==typeof i?r.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:c,className:`${C}-quick-jumper-button`},n.jump_to_confirm):r.createElement("span",{onClick:y,onKeyUp:y},i)),x=r.createElement("div",{className:`${C}-quick-jumper`},n.jump_to,r.createElement("input",{disabled:c,type:"text",value:m,onChange:v,onKeyUp:y,onBlur:b,"aria-label":n.page}),n.page,$)),r.createElement("li",{className:C},w,x)};"production"!==process.env.NODE_ENV&&(Jy.displayName="Options");const eC=e=>{const{rootPrefixCls:t,page:n,active:o,className:a,style:i,showTitle:l,onClick:s,onKeyPress:c,itemRender:d}=e,u=`${t}-item`,p=_(u,`${u}-${n}`,{[`${u}-active`]:o,[`${u}-disabled`]:!n},a),m=d(n,"page",r.createElement("a",{rel:"nofollow"},n));return m?r.createElement("li",{title:l?String(n):null,className:p,style:i,onClick:()=>{s(n)},onKeyDown:e=>{c(e,s,n)},tabIndex:0},m):null};function tC(){return tC=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},tC.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(eC.displayName="Pager");const nC=(e,t,n)=>n;function oC(){}function rC(e){const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function aC(e,t,n){const o=void 0===e?t:e;return Math.floor((n-1)/o)+1}const iC=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:o,classNames:a,styles:i,current:l,defaultCurrent:s=1,total:c=0,pageSize:d,defaultPageSize:u=10,onChange:m=oC,hideOnSinglePage:f,align:h,showPrevNextJumpers:g=!0,showQuickJumper:v,showLessItems:b,showTitle:y=!0,onShowSizeChange:C=oC,locale:w=Qy,style:x,totalBoundaryShowSizeChanger:$=50,disabled:S,simple:E,showTotal:k,showSizeChanger:N=c>$,sizeChangerRender:I,pageSizeOptions:P,itemRender:O=nC,jumpPrevIcon:D,jumpNextIcon:R,prevIcon:M,nextIcon:B}=e,T=r.useRef(null),[z,A]=G(u,d),[L,H]=G(s,l),F=Math.max(1,Math.min(L,aC(void 0,z,c))),[j,W]=r.useState(F);p(()=>{W(F)},[F]);const V=m!==oC,K="current"in e;"production"!==process.env.NODE_ENV&&ke(!K||V,"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,F-(b?3:5)),U=Math.min(aC(void 0,z,c),F+(b?3:5));function X(n,o){let a=n||r.createElement("button",{type:"button","aria-label":o,className:`${t}-item-link`});return"function"==typeof n&&(a=r.createElement(n,e)),a}function Y(e){const t=e.target.value,n=aC(void 0,z,c);let o;return o=""===t?t:Number.isNaN(Number(t))?j:t>=n?n:Number(t),o}const Q=c>z&&v;function Z(e){const t=Y(e);switch(t!==j&&W(t),e.keyCode){case ss.ENTER:J(t);break;case ss.UP:J(t-1);break;case ss.DOWN:J(t+1)}}function J(e){if(function(e){return rC(e)&&e!==F&&rC(c)&&c>0}(e)&&!S){const t=aC(void 0,z,c);let n=e;return e>t?n=t:e<1&&(n=1),n!==j&&W(n),H(n),m?.(n,z),n}return F}const ee=F>1,te=F<aC(void 0,z,c);function ne(){ee&&J(F-1)}function oe(){te&&J(F+1)}function re(){J(q)}function ae(){J(U)}function ie(e,t,...n){"Enter"!==e.key&&e.charCode!==ss.ENTER&&e.keyCode!==ss.ENTER||t(...n)}function le(e){"click"!==e.type&&e.keyCode!==ss.ENTER||J(j)}let se=null;const ce=ii(e,{aria:!0,data:!0}),de=k&&r.createElement("li",{className:`${t}-total-text`},k(c,[0===c?0:(F-1)*z+1,F*z>c?c:F*z]));let ue=null;const pe=aC(void 0,z,c);if(f&&c<=z)return null;const me=[],fe={rootPrefixCls:t,onClick:J,onKeyPress:ie,showTitle:y,itemRender:O,page:-1,className:a?.item,style:i?.item},he=F-1>0?F-1:0,ge=F+1<pe?F+1:pe,ve=v&&v.goButton,be="object"==typeof E?E.readOnly:!E;let ye=ve,Ce=null;E&&(ve&&(ye="boolean"==typeof ve?r.createElement("button",{type:"button",onClick:le,onKeyUp:le},w.jump_to_confirm):r.createElement("span",{onClick:le,onKeyUp:le},ve),ye=r.createElement("li",{title:y?`${w.jump_to}${F}/${pe}`:null,className:`${t}-simple-pager`},ye)),Ce=r.createElement("li",{title:y?`${F}/${pe}`:null,className:_(`${t}-simple-pager`,a?.item),style:i?.item},be?j:r.createElement("input",{type:"text","aria-label":w.jump_to,value:j,disabled:S,onKeyDown:function(e){e.keyCode!==ss.UP&&e.keyCode!==ss.DOWN||e.preventDefault()},onKeyUp:Z,onChange:Z,onBlur:function(e){J(Y(e))},size:3}),r.createElement("span",{className:`${t}-slash`},"/"),pe));const we=b?1:2;if(pe<=3+2*we){pe||me.push(r.createElement(eC,tC({},fe,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let e=1;e<=pe;e+=1)me.push(r.createElement(eC,tC({},fe,{key:e,page:e,active:F===e})))}else{const e=b?w.prev_3:w.prev_5,n=b?w.next_3:w.next_5,o=O(q,"jump-prev",X(D,"prev page")),a=O(U,"jump-next",X(R,"next page"));g&&(se=o?r.createElement("li",{title:y?e:null,key:"prev",onClick:re,tabIndex:0,onKeyDown:function(e){ie(e,re)},className:_(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!D})},o):null,ue=a?r.createElement("li",{title:y?n:null,key:"next",onClick:ae,tabIndex:0,onKeyDown:function(e){ie(e,ae)},className:_(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!R})},a):null);let i=Math.max(1,F-we),l=Math.min(F+we,pe);F-1<=we&&(l=1+2*we),pe-F<=we&&(i=pe-2*we);for(let e=i;e<=l;e+=1)me.push(r.createElement(eC,tC({},fe,{key:e,page:e,active:F===e})));if(F-1>=2*we&&3!==F&&(me[0]=r.cloneElement(me[0],{className:_(`${t}-item-after-jump-prev`,me[0].props.className)}),me.unshift(se)),pe-F>=2*we&&F!==pe-2){const e=me[me.length-1];me[me.length-1]=r.cloneElement(e,{className:_(`${t}-item-before-jump-next`,e.props.className)}),me.push(ue)}1!==i&&me.unshift(r.createElement(eC,tC({},fe,{key:1,page:1}))),l!==pe&&me.push(r.createElement(eC,tC({},fe,{key:pe,page:pe})))}let xe=function(e){const t=O(e,"prev",X(M,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!ee}):t}(he);if(xe){const e=!ee||!pe;xe=r.createElement("li",{title:y?w.prev_page:null,onClick:ne,tabIndex:e?null:0,onKeyDown:function(e){ie(e,ne)},className:_(`${t}-prev`,a?.item,{[`${t}-disabled`]:e}),style:i?.item,"aria-disabled":e},xe)}let $e=function(e){const t=O(e,"next",X(B,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!te}):t}(ge);if($e){let e,n;E?(e=!te,n=ee?0:null):(e=!te||!pe,n=e?null:0),$e=r.createElement("li",{title:y?w.next_page:null,onClick:oe,tabIndex:n,onKeyDown:function(e){ie(e,oe)},className:_(`${t}-next`,a?.item,{[`${t}-disabled`]:e}),style:i?.item,"aria-disabled":e},$e)}const Se=_(t,o,{[`${t}-start`]:"start"===h,[`${t}-center`]:"center"===h,[`${t}-end`]:"end"===h,[`${t}-simple`]:E,[`${t}-disabled`]:S});return r.createElement("ul",tC({className:Se,style:x,ref:T},ce),de,xe,E?Ce:me,$e,r.createElement(Jy,{locale:w,rootPrefixCls:t,disabled:S,selectPrefixCls:n,changeSize:function(e){const t=aC(e,z,c),n=F>t&&0!==t?t:F;A(e),W(n),C?.(F,e),H(n),m?.(n,e)},pageSize:z,pageSizeOptions:P,quickGo:Q?J:null,goButton:ye,showSizeChanger:N,sizeChangerRender:I}))};"production"!==process.env.NODE_ENV&&(iC.displayName="Pagination");const lC=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}}}}},sC=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Ht(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ht(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ht(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:Ht(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Ht(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Ht(e.itemSizeSM),input:{...Av(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},cC=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:Ht(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:Ht(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 ${Ht(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Ht(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:`${Ht(e.inputOutlineOffset)} 0 ${Ht(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:Ht(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:Ht(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},dC=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:Ht(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:`${Ht(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:Ht(e.controlHeight),verticalAlign:"top",input:{...Lv(e),...$v(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...xv(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},uC=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Ht(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Ht(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ht(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}}}}},pC=e=>{const{componentCls:t}=e;return{[t]:{...qr(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:Ht(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...uC(e),...dC(e),...cC(e),...sC(e),...lC(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"}}},mC=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Xr(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ur(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ur(e)}}}},fC=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,...Cv(e)}),hC=e=>Fo(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"},yv(e));var gC=Qr("Pagination",e=>{const t=hC(e);return[pC(t),mC(t)]},fC);var vC=Jr(["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:`${Ht(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}}}}})(hC(e)),fC);function bC(e){return d(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}const yC=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:i,style:l,size:s,locale:c,responsive:d,showSizeChanger:u,selectComponentClass:p,pageSizeOptions:m,styles:f,classNames:h,...g}=e,{xs:v}=Xm(d),[,b]=Vr(),{getPrefixCls:y,direction:C,showSizeChanger:w,className:x,style:$,classNames:S,styles:E}=dt("pagination"),k=y("pagination",n),[N,I]=gC(k),P=Ps(s),O="small"===P||!(!v||P||!d),D={...e,size:P},[R,M]=Di([S,h],[E,f],{props:D}),[B]=yi("Pagination",li),T={...B,...c},[z,A]=bC(u),[L,H]=bC(w),F=z??L,j=A??H,W=p||Km,V=o.useMemo(()=>m?m.map(e=>Number(e)):void 0,[m]);if("production"!==process.env.NODE_ENV){const e=Te("Pagination");"production"!==process.env.NODE_ENV&&e(!p,"usage","`selectComponentClass` is not official api which will be removed.")}const K=o.useMemo(()=>{const e=o.createElement("span",{className:`${k}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${k}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(xc,null):o.createElement(_f,null)),nextIcon:o.createElement("button",{className:`${k}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(_f,null):o.createElement(xc,null)),jumpPrevIcon:o.createElement("a",{className:`${k}-item-link`},o.createElement("div",{className:`${k}-item-container`},"rtl"===C?o.createElement(Fb,{className:`${k}-item-link-icon`}):o.createElement(Tb,{className:`${k}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${k}-item-link`},o.createElement("div",{className:`${k}-item-container`},"rtl"===C?o.createElement(Tb,{className:`${k}-item-link-icon`}):o.createElement(Fb,{className:`${k}-item-link-icon`}),e))}},[C,k]),q=y("select",r),U=_({[`${k}-${t}`]:!!t,[`${k}-mini`]:O,[`${k}-rtl`]:"rtl"===C,[`${k}-bordered`]:b.wireframe},x,a,i,R.root,N,I),X={...M.root,...$,...l};return o.createElement(o.Fragment,null,b.wireframe&&o.createElement(vC,{prefixCls:k}),o.createElement(iC,{...K,...g,styles:M,classNames:R,style:X,prefixCls:k,selectPrefixCls:q,className:U,locale:T,pageSizeOptions:V,showSizeChanger:F,sizeChangerRender:e=>{const{disabled:t,size:n,onSizeChange:r,"aria-label":a,className:i,options:l}=e,{className:s,onChange:c}=j||{},d=l.find(e=>String(e.value)===String(n))?.value;return o.createElement(W,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":a,options:l,...j,value:d,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:O?"small":"middle",className:_(i,s)})}}))};"production"!==process.env.NODE_ENV&&(yC.displayName="Pagination");var CC=yC;const wC=80*Math.PI,xC=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return o.createElement("circle",{className:_(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})};var $C=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[i,l]=o.useState(!1);U(()=>{0!==e&&l(!0)},[0!==e]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const c={strokeDashoffset:""+wC/4,strokeDasharray:`${wC*s/100} ${wC*(100-s)/100}`};return o.createElement("span",{className:_(r,`${n}-progress`,s<=0&&a)},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},o.createElement(xC,{dotClassName:n,hasCircleCls:!0}),o.createElement(xC,{dotClassName:n,style:c})))};function SC(e){const{prefixCls:t,percent:n=0,className:r,style:a}=e,i=`${t}-dot`,l=`${i}-holder`,s=`${l}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:_(l,r,n>0&&s),style:a},o.createElement("span",{className:_(i,`${t}-dot-spin`)},[1,2,3,4].map(e=>o.createElement("i",{className:`${t}-dot-item`,key:e})))),o.createElement($C,{prefixCls:t,percent:n}))}function EC(e){const{prefixCls:t,indicator:n,percent:r,className:a,style:i}=e,l=`${t}-dot`;return n&&o.isValidElement(n)?Wi(n,e=>({className:_(e.className,l,a),style:{...e.style,...i},percent:r})):o.createElement(SC,{prefixCls:t,percent:r,className:a,style:i})}const kC=new fo("antSpinMove",{to:{opacity:1}}),_C=new fo("antRotate",{to:{transform:"rotate(405deg)"}});var NC=Qr("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:{...qr(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:kC,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:_C,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"}}}})(Fo(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}});const IC=[[30,.05],[70,.03],[96,.01]];let PC;const OC=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:a,rootClassName:i,size:l="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:C,className:w,style:x,classNames:$,styles:S}=dt("spin"),E=b("spin",t),[k,N]=NC(E),[I,P]=o.useState(()=>n&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(n,r)),O=function(e,t){const[n,r]=o.useState(0),a=o.useRef(null),i="auto"===t;return o.useEffect(()=>(i&&e&&(r(0),a.current=setInterval(()=>{r(e=>{const t=100-e;for(let n=0;n<IC.length;n+=1){const[o,r]=IC[n];if(e<=o)return e+t*r}return e})},200)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?n:t}(I,f);o.useEffect(()=>{if(n){const e=Xv(r,()=>{P(!0)});return e(),()=>{e?.cancel?.()}}P(!1)},[r,n]);const D=o.useMemo(()=>void 0!==u&&!p,[u,p]),R={...e,size:l,spinning:I,tip:s,fullscreen:p,children:u,percent:O},[M,B]=Di([$,h],[S,g],{props:R});if("production"!==process.env.NODE_ENV){const e=Te("Spin");"production"!==process.env.NODE_ENV&&e(!s||D||p,"usage","`tip` only work in nest or fullscreen pattern.")}const T=_(E,w,{[`${E}-sm`]:"small"===l,[`${E}-lg`]:"large"===l,[`${E}-spinning`]:I,[`${E}-show-text`]:!!s,[`${E}-rtl`]:"rtl"===y},a,!p&&i,!p&&M.root,k,N),z=_(`${E}-container`,{[`${E}-blur`]:I}),A=m??C??PC,L={...x,...d},H=o.createElement("div",{...v,style:p?L:{...B.root,...L},className:T,"aria-live":"polite","aria-busy":I},o.createElement(EC,{className:M.indicator,style:B.indicator,prefixCls:E,indicator:A,percent:O}),s&&(D||p)?o.createElement("div",{className:_(`${E}-text`,M.tip),style:B.tip},s):null);return D?o.createElement("div",{...v,className:_(`${E}-nested-loading`,c,M.wrapper,k,N),style:B.wrapper},I&&o.createElement("div",{key:"loading"},H),o.createElement("div",{className:z,key:"container"},u)):p?o.createElement("div",{className:_(`${E}-fullscreen`,{[`${E}-fullscreen-show`]:I},i,k,N,M.mask),style:B.mask},H):H};OC.setDefaultIndicator=e=>{PC=e},"production"!==process.env.NODE_ENV&&(OC.displayName="Spin");var DC=OC;const RC={},MC="rc-table-internal-hook";function BC(e){const t=o.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{const r=o.useRef(e);r.current=e;const[a]=o.useState(()=>({getValue:()=>r.current,listeners:new Set}));return U(()=>{S(()=>{a.listeners.forEach(t=>{t(e)})})},[e]),o.createElement(t.Provider,{value:a},n)},defaultValue:e}}function TC(e,t){const n=V("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}),r=o.useContext(e?.Context),{listeners:a,getValue:i}=r||{},l=o.useRef();l.current=n(r?i():e?.defaultValue);const[,s]=o.useState({});return U(()=>{if(r)return a.add(e),()=>{a.delete(e)};function e(e){const t=n(e);xt(l.current,t,!0)||s({})}},[r]),l.current}function zC(){return zC=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},zC.apply(this,arguments)}const{makeImmutable:AC,responseImmutable:LC,useImmutableMark:HC}=function(){const e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){const a=ue(n),i=(i,l)=>{const s=a?{ref:l}:{},c=o.useRef(0),d=o.useRef(i);return null!==t()?o.createElement(n,zC({},i,s)):(r&&!r(d.current,i)||(c.current+=1),d.current=i,o.createElement(e.Provider,{value:c.current},o.createElement(n,zC({},i,s))))};return"production"!==process.env.NODE_ENV&&(i.displayName=`ImmutableRoot(${n.displayName||n.name})`),a?o.forwardRef(i):i},responseImmutable:function(e,n){const r=ue(e),a=(n,a)=>{const i=r?{ref:a}:{};return t(),o.createElement(e,zC({},n,i))};return"production"!==process.env.NODE_ENV&&(a.displayName=`ImmutableResponse(${e.displayName||e.name})`),o.memo(r?o.forwardRef(a):a,n)},useImmutableMark:t}}(),FC=BC();function jC(e,t){const n=o.useRef(0);n.current+=1;const r=o.useRef(e),a=[];Object.keys(e||{}).map(t=>{e?.[t]!==r.current?.[t]&&a.push(t)}),r.current=e;const i=o.useRef([]);return a.length&&(i.current=a),o.useDebugValue(n.current),o.useDebugValue(i.current.join(", ")),n.current}var WC="production"!==process.env.NODE_ENV?jC:()=>{};const VC=o.memo(()=>{const e=jC();return o.createElement("h1",null,"Render Times: ",e)});"production"!==process.env.NODE_ENV&&(VC.displayName="RenderBlock");const KC=o.createContext({renderWithProps:!1});function qC(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 UC(e){return null!=e}function XC(e,t,n,r,a,i){const l=o.useContext(KC),s=ne(()=>{if(UC(r))return[r];const i=null==t||""===t?[]:Array.isArray(t)?t:[t],s=fe(e,i);let c,d=s;if(a){const t=a(s,e,n);!(u=t)||"object"!=typeof u||Array.isArray(u)||o.isValidElement(u)?d=t:("production"!==process.env.NODE_ENV&&ke(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),d=t.children,c=t.props,l.renderWithProps=!0)}var u;return[d,c]},[HC(),e,r,t,a,n],(e,t)=>{if(i){const[,n]=e,[,o]=t;return i(o,n)}return!!l.renderWithProps||!xt(e,t,!0)});return s}function GC(){return GC=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},GC.apply(this,arguments)}const YC=e=>{"production"!==process.env.NODE_ENV&&WC(e);const{component:t,children:n,ellipsis:r,scope:a,prefixCls:i,className:l,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:C,fixedStartShadow:w,fixedEndShadow:x,offsetFixedStartShadow:$,offsetFixedEndShadow:S,zIndex:E,zIndexReverse:k,appendNode:N,additionalProps:I={},isSticky:P}=e,O=`${i}-cell`,{allColumnsFixedLeft:D,rowHoverable:R}=TC(FC,["allColumnsFixedLeft","rowHoverable"]),[M,B]=XC(d,p,m,n,u,f),T={},z="number"==typeof y&&!D,A="number"==typeof C&&!D,[L,H]=TC(FC,({scrollInfo:e})=>{if(!z&&!A)return[!1,!1];const[t,n]=e;return[(z&&w&&t)-$>=1,(A&&x&&n-t)-S>1]});z&&(T.insetInlineStart=y,T["--z-offset"]=E,T["--z-offset-reverse"]=k),A&&(T.insetInlineEnd=C,T["--z-offset"]=E,T["--z-offset-reverse"]=k);const F=B?.colSpan??I.colSpan??v??1,j=B?.rowSpan??I.rowSpan??b??1,[W,K]=function(e,t){return TC(FC,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,j),q=V(e=>{d&&K(h,h+j-1),I?.onMouseEnter?.(e)}),U=V(e=>{d&&K(-1,-1),I?.onMouseLeave?.(e)});if(0===F||0===j)return null;const X=I.title??(({ellipsis:e,rowType:t,children:n})=>{let r;const a=!0===e?{showTitle:!0}:e;return a&&(a.showTitle||"header"===t)&&("string"==typeof n||"number"==typeof n?r=n.toString():o.isValidElement(n)&&"string"==typeof n.props?.children&&(r=n.props?.children)),r})({rowType:g,ellipsis:r,children:M}),G=_(O,l,{[`${O}-fix`]:z||A,[`${O}-fix-start`]:z,[`${O}-fix-end`]:A,[`${O}-fix-start-shadow`]:w,[`${O}-fix-start-shadow-show`]:w&&L,[`${O}-fix-end-shadow`]:x,[`${O}-fix-end-shadow-show`]:x&&H,[`${O}-ellipsis`]:r,[`${O}-with-append`]:N,[`${O}-fix-sticky`]:(z||A)&&P,[`${O}-row-hover`]:!B&&W},I.className,B?.className),Y={};c&&(Y.textAlign=c);const Q={...B?.style,...T,...Y,...I.style,...s};let Z=M;return"object"!=typeof Z||Array.isArray(Z)||o.isValidElement(Z)||(Z=null),r&&(w||x)&&(Z=o.createElement("span",{className:`${O}-content`},Z)),o.createElement(t,GC({},B,I,{className:G,style:Q,title:X,scope:a,onMouseEnter:R?q:void 0,onMouseLeave:R?U:void 0,colSpan:1!==F?F:null,rowSpan:1!==j?j:null}),N,Z)};var QC=o.memo(YC);function ZC(e){return"start"===e.fixed}function JC(e){return"end"===e.fixed}function ew(e,t,n,o){const r=n[e]||{},a=n[t]||{};let i=null,l=null;ZC(r)&&ZC(a)?i=o.start[e]:JC(a)&&JC(r)&&(l=o.end[t]);let s=!1,c=!1,d=0,u=0;null!==i&&(s=!n[t+1]||!ZC(n[t+1]),d=2*n.length-e,u=n.length+e),null!==l&&(c=!n[e-1]||!JC(n[e-1]),d=t,u=n.length-t);let p=0,m=0;if(s)for(let t=0;t<e;t+=1)ZC(n[t])||(p+=o.widths[t]||0);if(c)for(let e=n.length-1;e>t;e-=1)JC(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 tw=o.createContext({});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=>{const{children:t}=e;return t};ow.Row=e=>{const{children:t,...n}=e;return o.createElement("tr",n,t)},ow.Cell=e=>{const{className:t,index:n,children:r,colSpan:a=1,rowSpan:i,align:l}=e,{prefixCls:s}=TC(FC,["prefixCls"]),{scrollColumnIndex:c,stickyOffsets:d,flattenColumns:u}=o.useContext(tw),p=n+a-1+1===c?a+1:a,m=o.useMemo(()=>ew(n,n+p-1,u,d),[n,p,u,d]);return o.createElement(QC,nw({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:l,colSpan:p,rowSpan:i,render:()=>r},m))};var rw=LC(e=>{"production"!==process.env.NODE_ENV&&WC(e);const{children:t,stickyOffsets:n,flattenColumns:r}=e,a=TC(FC,"prefixCls"),i=r.length-1,l=r[i],s=o.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l?.scrollbar?i:null}),[l,r,i,n]);return o.createElement(tw.Provider,{value:s},o.createElement("tfoot",{className:`${a}-summary`},t))});const aw=ow;function iw(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)iw(e,t[o][i],n+1,o,r,a,i)}function lw(e,t,n,r){return o.useMemo(()=>{if(n?.size){const o=[];for(let a=0;a<e?.length;a+=1){iw(o,e[a],0,t,n,r,a)}return o}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function sw(e,t,n,o){const r=TC(FC,["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=V(c),C=u?.(e,n),w=C?.onClick;let x;"string"==typeof m?x=m:"function"==typeof m&&(x=m(e,n,o));const $=qC(a);return{...r,columnsKey:$,nestExpandable:f,expanded:v,hasNestChildren:b,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...C,className:_(x,C?.className),onClick:(t,...n)=>{p&&g&&c(e,t),w?.(t,...n)}}}}const cw=e=>{"production"!==process.env.NODE_ENV&&WC(e);const{prefixCls:t,children:n,component:r,cellComponent:a,className:i,expanded:l,colSpan:s,isEmpty:c,stickyOffset:d=0}=e,{scrollbarSize:u,fixHeader:p,fixColumn:m,componentWidth:f,horizonScroll:h}=TC(FC,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let g=n;return(c?h&&f:m)&&(g=o.createElement("div",{style:{width:f-d-(p&&!c?u:0),position:"sticky",left:d,overflow:"hidden"},className:`${t}-expanded-row-fixed`},g)),o.createElement(r,{className:i,style:{display:l?null:"none"}},o.createElement(QC,{component:a,prefixCls:t,colSpan:s},g))};function dw({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:a}){const i=`${e}-row-expand-icon`;if(!a)return o.createElement("span",{className:_(i,`${e}-row-spaced`)});return o.createElement("span",{className:_(i,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:e=>{n(t,e),e.stopPropagation()}})}function uw(e,t,n,o){return"string"==typeof e?e:"function"==typeof e?e(t,n,o):""}function pw(){return pw=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},pw.apply(this,arguments)}function mw(e,t,n,r,a,i=[],l=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:C}=e,w=d[n],x=u[n];let $;n===(p||0)&&m&&($=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:f*r+"px"},className:`${c}-row-indent indent-level-${r}`}),h({prefixCls:c,expanded:g,expandable:v,record:s,onExpand:b})));const S=t.onCell?.(s,a)||{};if(l){const{rowSpan:e=1}=S;if(y&&e&&n<l){let t=e;for(let n=a;n<a+e;n+=1){const e=i[n];C.has(e)&&(t+=1)}S.rowSpan=t}}return{key:w,fixedInfo:x,appendCellNode:$,additionalCellProps:S}}const fw=e=>{"production"!==process.env.NODE_ENV&&WC(e);const{className:t,style:n,classNames:r,styles:a,record:i,index:l,renderIndex:s,rowKey:c,rowKeys:d,indent:u=0,rowComponent:p,cellComponent:m,scopeCellComponent:f,expandedRowInfo:h}=e,g=sw(i,c,l,u),{prefixCls:v,flattenColumns:b,expandedRowClassName:y,expandedRowRender:C,rowProps:w,expanded:x,rowSupportExpand:$}=g,S=o.useRef(!1);S.current||=x,"production"!==process.env.NODE_ENV&&WC(e);const E=uw(y,i,l,u),k=o.createElement(p,pw({},w,{"data-row-key":c,className:_(t,`${v}-row`,`${v}-row-level-${u}`,w?.className,r.row,{[E]:u>=1}),style:{...n,...w?.style,...a.row}}),b.map((e,t)=>{const{render:n,dataIndex:c,className:p}=e,{key:b,fixedInfo:y,appendCellNode:C,additionalCellProps:w}=mw(g,e,t,u,l,d,h?.offset);return o.createElement(QC,pw({className:_(p,r.cell),style:a.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:m,prefixCls:v,key:b,record:i,index:l,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:C,additionalProps:w}))}));let N;if($&&(S.current||x)){const e=C(i,l,u+1,x);N=o.createElement(cw,{expanded:x,className:_(`${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 o.createElement(o.Fragment,null,k,N)};"production"!==process.env.NODE_ENV&&(fw.displayName="BodyRow");var hw=LC(fw);const gw=e=>{const{columnKey:t,onColumnResize:n,title:r}=e,a=o.useRef(null);return U(()=>{a.current&&n(t,a.current.offsetWidth)},[]),o.createElement(Ge,{data:t},o.createElement("td",{ref:a,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},r||" ")))},vw=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{const a=o.useRef(null),{measureRowRender:i}=TC(FC,["measureRowRender"]),l=o.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:a},o.createElement(Ge.Collection,{onBatchResize:e=>{Sl(a.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{const t=r.find(t=>t.key===e),a=t?.title,i=o.isValidElement(a)?o.cloneElement(a,{ref:null}):a;return o.createElement(gw,{key:e,columnKey:e,onColumnResize:n,title:i})})));return"function"==typeof i?i(l):l},bw=e=>{"production"!==process.env.NODE_ENV&&WC(e);const{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:a,onColumnResize:i,flattenColumns:l,getRowKey:s,expandedKeys:c,childrenColumnName:d,emptyNode:u,classNames:p,styles:m,expandedRowOffset:f=0,colWidths:h}=TC(FC,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:g={}}=p||{},{body:v={}}=m||{},b=lw(t,d,c,s),y=o.useMemo(()=>b.map(e=>e.rowKey),[b]),C=o.useRef({renderWithProps:!1}),w=o.useMemo(()=>{const e=l.length-f;let t=0;for(let e=0;e<f;e+=1)t+=h[e]||0;return{offset:f,colSpan:e,sticky:t}},[l.length,f,h]),x=a(["body","wrapper"],"tbody"),$=a(["body","row"],"tr"),S=a(["body","cell"],"td"),E=a(["body","cell"],"th");let k;k=t.length?b.map((e,t)=>{const{record:n,indent:r,index:a,rowKey:i}=e;return o.createElement(hw,{classNames:g,styles:v,key:i,rowKey:i,rowKeys:y,record:n,index:t,renderIndex:a,rowComponent:$,cellComponent:S,scopeCellComponent:E,indent:r,expandedRowInfo:w})}):o.createElement(cw,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:$,cellComponent:S,colSpan:l.length,isEmpty:!0},u);const N=qC(l);return o.createElement(KC.Provider,{value:C.current},o.createElement(x,{style:v.wrapper,className:_(`${r}-tbody`,g.wrapper)},n&&o.createElement(vw,{prefixCls:r,columnsKey:N,onColumnResize:i,columns:l}),k))};"production"!==process.env.NODE_ENV&&(bw.displayName="Body");var yw=LC(bw);const Cw="RC_TABLE_INTERNAL_COL_DEFINE";function ww(){return ww=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},ww.apply(this,arguments)}const xw=e=>{const{colWidths:t,columns:n,columCount:r}=e,{tableLayout:a}=TC(FC,["tableLayout"]),i=[];let l=!1;for(let e=(r||n.length)-1;e>=0;e-=1){const r=t[e],s=n&&n[e];let c,d;if(s&&(c=s[Cw],"auto"===a&&(d=s.minWidth)),r||d||c||l){const{columnType:t,...n}=c||{};i.unshift(o.createElement("col",ww({key:e,style:{width:r,minWidth:d}},n))),l=!0}}return i.length>0?o.createElement("colgroup",null,i):null};const $w=o.forwardRef((e,t)=>{"production"!==process.env.NODE_ENV&&WC(e);const{className:n,style:r,noData:a,columns:i,flattenColumns:l,colWidths:s,colGroup:c,columCount:u,stickyOffsets:p,direction:m,fixHeader:f,stickyTopOffset:h,stickyBottomOffset:g,stickyClassName:v,scrollX:b,tableLayout:y="fixed",onScroll:C,maxContentScroll:w,children:x,...$}=e,{prefixCls:S,scrollbarSize:E,isSticky:k,getComponent:N}=TC(FC,["prefixCls","scrollbarSize","isSticky","getComponent"]),I=N(["header","table"],"table"),P=k&&!f?0:E,O=o.useRef(null),D=o.useCallback(e=>{se(t,e),se(O,e)},[]);o.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)),C({currentTarget:t,scrollLeft:l}),e.preventDefault()}}const t=O.current;return t?.addEventListener("wheel",e,{passive:!1}),()=>{t?.removeEventListener("wheel",e)}},[]);const R=l[l.length-1],M={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${S}-cell-scrollbar`})},B=d(()=>P?[...i,M]:i,[P,i]),T=d(()=>P?[...l,M]:l,[P,l]),z=d(()=>{const{start:e,end:t}=p;return{...p,start:e,end:[...t.map(e=>e+P),0],isSticky:k}},[P,p,k]),A=function(e,t){return d(()=>{const n=[];for(let o=0;o<t;o+=1){const t=e[o];if(void 0===t)return null;n[o]=t}return n},[e.join("_"),t])}(s,u),L=d(()=>{const e=!A||!A.length||A.every(e=>!e);return a||e},[a,A]);return o.createElement("div",{style:{overflow:"hidden",...k?{top:h,bottom:g}:{},...r},ref:D,className:_(n,{[v]:!!v})},o.createElement(I,{style:{tableLayout:y,minWidth:"100%",width:b}},L?c:o.createElement(xw,{colWidths:[...A,P],columCount:u+1,columns:T}),x({...$,stickyOffsets:z,columns:B,flattenColumns:T})))});"production"!==process.env.NODE_ENV&&($w.displayName="FixedHolder");var Sw=o.memo($w);function Ew(){return Ew=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},Ew.apply(this,arguments)}const kw=e=>{const{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:a,cellComponent:i,onHeaderRow:l,index:s,classNames:c,styles:d}=e,{prefixCls:u}=TC(FC,["prefixCls"]);let p;l&&(p=l(t.map(e=>e.column),s));const m=qC(t.map(e=>e.column));return o.createElement(a,Ew({},p,{className:c.row,style:d.row}),t.map((e,t)=>{const{column:a,colStart:l,colEnd:s,colSpan:c}=e,d=ew(l,s,r,n),p=a?.onHeaderCell?.(a)||{};return o.createElement(QC,Ew({},e,{scope:a.title?c>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:i,prefixCls:u,key:m[t]},d,{additionalProps:p,rowType:"header"}))}))};"production"!==process.env.NODE_ENV&&(kw.displayName="HeaderRow");var _w=LC(e=>{"production"!==process.env.NODE_ENV&&WC(e);const{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:a}=e,{prefixCls:i,getComponent:l,classNames:s,styles:c}=TC(FC,["prefixCls","getComponent","classNames","styles"]),{header:d={}}=s||{},{header:u={}}=c||{},p=o.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:_(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=l(["header","wrapper"],"thead"),f=l(["header","row"],"tr"),h=l(["header","cell"],"th");return o.createElement(m,{className:_(`${i}-thead`,d.wrapper),style:u.wrapper},p.map((e,n)=>o.createElement(kw,{classNames:d,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:f,cellComponent:h,onHeaderRow:a,index:n})))});function Nw(e,t=""){return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Iw(e){return Ie(e).filter(e=>o.isValidElement(e)).map(e=>{const{key:t,props:n}=e,{children:o,...r}=n,a={key:t,...r};return o&&(a.children=Iw(o)),a})}function Pw(e){return e.filter(e=>e&&"object"==typeof e&&!e.hidden).map(e=>{const t=e.children;return t&&t.length>0?{...e,children:Pw(t)}:e})}function Ow(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,...Ow(l,i).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:i,...n,fixed:a}]},[])}function Dw({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:a,columnTitle:i,getRowKey:l,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 C=o.useMemo(()=>Pw((t||Iw(n)||[]).slice()),[t,n]),w=o.useMemo(()=>{if(r){let t=C.slice();if("production"!==process.env.NODE_ENV&&u>=0&&ke(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!t.includes(RC)){const e=u||0,n=0!==e||"right"!==g&&"end"!==g?e:C.length;n>=0&&t.splice(n,0,RC)}"production"!==process.env.NODE_ENV&&t.filter(e=>e===RC).length>1&&ke(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");const n=t.indexOf(RC);t=t.filter((e,t)=>e!==RC||t===n);const r=C[n];let m;m=g||(r?r.fixed:null);const v={[Cw]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:i,fixed:m,className:`${e}-row-expand-icon-cell`,width:h,render:(t,n,r)=>{const i=l(n,r),u=a.has(i),p=!d||d(n),m=c({prefixCls:e,expanded:u,expandable:p,record:n,onExpand:s});return f?o.createElement("span",{onClick:e=>e.stopPropagation()},m):m}};return t.map((e,t)=>{const n=e===RC?v:e;return t<p?{...n,fixed:n.fixed||"start"}:n})}return"production"!==process.env.NODE_ENV&&C.includes(RC)&&ke(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),C.filter(e=>e!==RC)},[r,C,l,a,c,m,p]),x=o.useMemo(()=>{let e=w;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,w,m]),$=o.useMemo(()=>Ow(x),[x,m,v]),[S,E]=function(e,t,n){return o.useMemo(()=>{if(t&&t>0){let o=0,r=0;e.forEach(e=>{const n=Nw(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=Nw(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[x,S,E]}function Rw(e,t,n){const r=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)&&ke(!1,"expanded related props have been moved into `expandable`."),o=n),!1===o.showExpandColumn&&(o.expandIconColumnIndex=-1),o}(e),{expandIcon:a,expandedRowKeys:i,defaultExpandedRowKeys:l,defaultExpandAllRows:s,expandedRowRender:c,onExpand:d,onExpandedRowsChange:u,childrenColumnName:p}=r,m=a||dw,f=p||"children",h=o.useMemo(()=>c?"row":!!(e.expandable&&e.internalHooks===MC&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&"object"==typeof e&&e[f]))&&"nest",[!!c,t]),[g,v]=o.useState(()=>l||(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=o.useMemo(()=>new Set(i||g||[]),[i,g]),y=o.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]))&&ke(!1,"`expandedRowRender` should not use with nested Table"),[r,h,b,m,f,y]}const Mw=K()?window:null;const Bw=e=>{const{children:t,className:n,style:r}=e;return o.createElement("div",{className:n,style:r},t)};function Tw(e){const t=Le(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 zw="mouseup",Aw="mousemove",Lw="scroll",Hw="resize",Fw=(e,t)=>{const{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:l,direction:s}=e,c=TC(FC,"prefixCls"),d=n.current?.scrollWidth||0,u=n.current?.clientWidth||0,f=d&&u*(u/d),h=o.useRef(null),[g,v]=function(e){const t=m(e),[,n]=a({}),o=m(null),r=m([]);return p(()=>()=>{o.current=null},[]),[t.current,function(e){r.current.push(e);const a=Promise.resolve();o.current=a,a.then(()=>{if(o.current===a){const e=r.current,a=t.current;r.current=[],e.forEach(e=>{t.current=e(t.current)}),o.current=null,a!==t.current&&n({})}})}]}({scrollLeft:0,isHiddenScrollBar:!0}),b=o.useRef({delta:0,x:0}),[y,C]=o.useState(!1),w=o.useRef(null);o.useEffect(()=>()=>{rt.cancel(w.current)},[]);const x=()=>{C(!1)},$=e=>{const{buttons:t}=e||window?.event;if(!y||0===t)return void(y&&C(!1));let n=b.current.x+e.pageX-b.current.x-b.current.delta;const o="rtl"===s;n=Math.max(o?f-u:0,Math.min(o?0:u-f,n));(!o||Math.abs(n)+Math.abs(f)<u)&&(r({scrollLeft:n/u*(d+2)}),b.current.x=e.pageX)},S=()=>{rt.cancel(w.current),w.current=rt(()=>{if(!n.current)return;const e=Tw(n.current).top,t=e+n.current.offsetHeight,o=l===window?document.documentElement.scrollTop+window.innerHeight:Tw(l).top+l.clientHeight;t-Ji()<=o||e>=o-i?v(e=>({...e,isHiddenScrollBar:!0})):v(e=>({...e,isHiddenScrollBar:!1}))})},E=e=>{v(t=>({...t,scrollLeft:e/d*u||0}))};return o.useImperativeHandle(t,()=>({setScrollLeft:E,checkScrollBarVisible:S})),o.useEffect(()=>(document.body.addEventListener(zw,x,!1),document.body.addEventListener(Aw,$,!1),S(),()=>{document.body.removeEventListener(zw,x),document.body.removeEventListener(Aw,$)}),[f,y]),o.useEffect(()=>{if(n.current){const e=[];let t=Le(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(Lw,S,!1)}),window.addEventListener(Hw,S,!1),window.addEventListener(Lw,S,!1),l.addEventListener(Lw,S,!1),()=>{e.forEach(e=>{e.removeEventListener(Lw,S)}),window.removeEventListener(Hw,S),window.removeEventListener(Lw,S),l.removeEventListener(Lw,S)}}},[l]),o.useEffect(()=>{g.isHiddenScrollBar||v(e=>{const t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[g.isHiddenScrollBar]),d<=u||!f||g.isHiddenScrollBar?null:o.createElement("div",{style:{height:Ji(),width:u,bottom:i},className:`${c}-sticky-scroll`},o.createElement("div",{onMouseDown:e=>{e.persist(),b.current.delta=e.pageX-g.scrollLeft,b.current.x=0,C(!0),e.preventDefault()},ref:h,className:_(`${c}-sticky-scroll-bar`,{[`${c}-sticky-scroll-bar-active`]:y}),style:{width:`${f}px`,transform:`translate3d(${g.scrollLeft}px, 0, 0)`}}))};var jw=o.forwardRef(Fw);function Ww(){return Ww=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},Ww.apply(this,arguments)}const Vw="rc-table",Kw=[],qw={};function Uw(){return"No Data"}const Xw=(e,t)=>{const n={rowKey:"key",prefixCls:Vw,emptyText:Uw,...e},{prefixCls:r,className:a,rowClassName:i,style:l,classNames:s,styles:c,data:u,rowKey:f,scroll:h,tableLayout:g,direction:v,title:b,footer:y,summary:C,caption:w,id:x,showHeader:$,components:S,emptyText:E,onRow:k,onHeaderRow:N,measureRowRender:I,onScroll:P,internalHooks:O,transformColumns:D,internalRefs:R,tailor:M,getContainerWidth:B,sticky:T,rowHoverable:z=!0}=n,A=u||Kw,L=!!A.length,H=O===MC;"production"!==process.env.NODE_ENV&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach(e=>{ke(void 0===n[e],`\`${e}\` is removed, please use \`onRow\` instead.`)}),ke(!("getBodyWrapper"in n),"`getBodyWrapper` is deprecated, please use custom `components` instead."));const F=o.useCallback((e,t)=>fe(S,e)||t,[S]),j=o.useMemo(()=>"function"==typeof f?f:e=>{const t=e&&e[f];return"production"!==process.env.NODE_ENV&&ke(void 0!==t,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),t},[f]),W=F(["body"]),[K,q,X]=function(){const[e,t]=o.useState(-1),[n,r]=o.useState(-1);return[e,n,o.useCallback((e,n)=>{t(e),r(n)},[])]}(),[G,Y,Q,Z,J,ee]=Rw(n,A,j),te=h?.x,[oe,re]=o.useState(0),[ae,ie,le]=Dw({...n,...G,expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:Q,getRowKey:j,onTriggerExpand:ee,expandIcon:Z,expandIconColumnIndex:G.expandIconColumnIndex,direction:v,scrollWidth:H&&M&&"number"==typeof te?te:null,clientWidth:oe},H?D:null),se=le??te,ce=o.useMemo(()=>({columns:ae,flattenColumns:ie}),[ae,ie]),de=o.useRef(null),ue=o.useRef(null),pe=o.useRef(null),me=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:de.current,scrollTo:e=>{if(pe.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(A[n]),t=pe.current.querySelector(`[data-row-key="${e}"]`);if(t)if(a){const e=t.offsetTop;pe.current.scrollTo({top:e+a})}else t.scrollIntoView()}else pe.current?.scrollTo({top:o})}else pe.current?.scrollTo&&pe.current.scrollTo(e);var t}}));const he=o.useRef(null),[ge,ve]=o.useState(!1),[be,ye]=o.useState(!1),[Ce,we]=o.useState(new Map),xe=qC(ie).map(e=>Ce.get(e)),$e=o.useMemo(()=>xe,[xe.join("_")]),Se=function(e,t){const n=d(()=>{const n=t.length,o=(n,o,r)=>{const a=[];let i=0;for(let l=n;l!==o;l+=r)a.push(i),t[l].fixed&&(i+=e[l]||0);return a};return{start:o(0,n,1),end:o(n-1,-1,-1).reverse(),widths:e}},[e,t]);return n}($e,ie),Ee=h&&UC(h.y),_e=h&&UC(se)||Boolean(G.fixed),Ne=_e&&ie.some(({fixed:e})=>e),Ie=o.useRef(null),{isSticky:Pe,offsetHeader:Oe,offsetSummary:De,offsetScroll:Re,stickyClassName:Me,container:Be}=function(e,t){const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:a=0,getContainer:i=()=>Mw}="object"==typeof e?e:{},l=i()||Mw,s=!!e;return o.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:a,container:l}),[s,a,n,r,t,l])}(T,r),Te=o.useMemo(()=>C?.(A),[C,A]),ze=(Ee||Pe)&&o.isValidElement(Te)&&Te.type===ow&&Te.props.fixed;let Ae,He,Fe;Ee&&(He={overflowY:L?"scroll":"auto",maxHeight:h.y}),_e&&(Ae={overflowX:"auto"},Ee||(He={overflowY:"hidden"}),Fe={width:!0===se?"auto":se,minWidth:"100%"});const je=o.useCallback((e,t)=>{we(n=>{if(n.get(e)!==t){const o=new Map(n);return o.set(e,t),o}return n})},[]),[We,Ve]=function(e){const t=m(e||null),n=m(null);function o(){clearTimeout(n.current)}return p(()=>o,[]),[function(e){t.current=e,o(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)},function(){return t.current}]}(null);function Ke(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}const[qe,Ue]=o.useState([0,0]),Xe=V(({currentTarget:e,scrollLeft:t})=>{const n="number"==typeof t?t:e.scrollLeft,o=e||qw;Ve()&&Ve()!==o||(We(o),Ke(n,ue.current),Ke(n,pe.current),Ke(n,he.current),Ke(n,Ie.current?.setScrollLeft));const r=e||ue.current;if(r){const e=H&&M&&"number"==typeof se?se:r.scrollWidth,t=r.clientWidth,o=Math.abs(n);if(Ue(n=>{const r=[o,e-t];return xt(n,r)?n:r}),e===t)return ve(!1),void ye(!1);ve(o>0),ye(o<e-t-1)}}),Ye=V(e=>{Xe(e),P?.(e)}),Qe=()=>{_e&&pe.current?Xe({currentTarget:Le(pe.current),scrollLeft:pe.current?.scrollLeft}):(ve(!1),ye(!1))},Ze=e=>{Ie.current?.checkScrollBarVisible();let t=e??de.current?.offsetWidth??0;H&&B&&de.current&&(t=B(de.current,t)||t),t!==oe&&(Qe(),re(t))};U(()=>{_e&&Ze()},[_e]);const Je=o.useRef(!1);o.useEffect(()=>{Je.current&&Qe()},[_e,u,ae.length]),o.useEffect(()=>{Je.current=!0},[]);const[et,tt]=o.useState(0);U(()=>{M&&H||(pe.current instanceof Element?tt(el(pe.current).width):tt(el(me.current).width))},[]),o.useEffect(()=>{H&&R&&(R.body.current=pe.current)});const nt=o.useCallback(e=>o.createElement(o.Fragment,null,o.createElement(_w,e),"top"===ze&&o.createElement(rw,e,Te)),[ze,Te]),ot=o.useCallback(e=>o.createElement(rw,e,Te),[Te]),rt=F(["table"],"table"),at=o.useMemo(()=>g||(Ne?"max-content"===se?"auto":"fixed":Ee||Pe||ie.some(({ellipsis:e})=>e)?"fixed":"auto"),[Ee,Ne,ie,g,Pe]);let it;const lt={colWidths:$e,columCount:ie.length,stickyOffsets:Se,onHeaderRow:N,fixHeader:Ee,scroll:h},st=o.useMemo(()=>L?null:"function"==typeof E?E():E,[L,E]),ct=o.createElement(yw,{data:A,measureColumnWidth:Ee||_e||Pe}),dt=o.createElement(xw,{colWidths:ie.map(({width:e})=>e),columns:ie}),ut=null!=w?o.createElement("caption",{className:`${r}-caption`},w):void 0,pt=ii(n,{data:!0}),mt=ii(n,{aria:!0});if(Ee||Pe){let e;"function"==typeof W?(e=W(A,{scrollbarSize:et,ref:pe,onScroll:Xe}),lt.colWidths=ie.map(({width:e},t)=>{const o=t===ie.length-1?e-et:e;return"number"!=typeof o||Number.isNaN(o)?("production"!==process.env.NODE_ENV&&ke(0===n.columns.length,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):o})):e=o.createElement("div",{style:{...Ae,...He},onScroll:Ye,ref:pe,className:`${r}-body`},o.createElement(rt,Ww({style:{...Fe,tableLayout:at}},mt),ut,dt,ct,!ze&&Te&&o.createElement(rw,{stickyOffsets:Se,flattenColumns:ie},Te)));const t={noData:!A.length,maxContentScroll:_e&&"max-content"===se,...lt,...ce,direction:v,stickyClassName:Me,scrollX:se,tableLayout:at,onScroll:Xe};it=o.createElement(o.Fragment,null,!1!==$&&o.createElement(Sw,Ww({},t,{stickyTopOffset:Oe,className:`${r}-header`,ref:ue,colGroup:dt}),nt),e,ze&&"top"!==ze&&o.createElement(Sw,Ww({},t,{stickyBottomOffset:De,className:`${r}-summary`,ref:he,colGroup:dt}),ot),Pe&&pe.current&&pe.current instanceof Element&&o.createElement(jw,{ref:Ie,offsetScroll:Re,scrollBodyRef:pe,onScroll:Xe,container:Be,direction:v}))}else it=o.createElement("div",{style:{...Ae,...He,...c?.content},className:_(`${r}-content`,s?.content),onScroll:Xe,ref:pe},o.createElement(rt,Ww({style:{...Fe,tableLayout:at}},mt),ut,dt,!1!==$&&o.createElement(_w,Ww({},lt,ce)),ct,Te&&o.createElement(rw,{stickyOffsets:Se,flattenColumns:ie},Te)));const ft={...l};Pe&&(ft["--columns-count"]=ie.length);let ht=o.createElement("div",Ww({className:_(r,a,{[`${r}-rtl`]:"rtl"===v,[`${r}-fix-start-shadow`]:_e,[`${r}-fix-end-shadow`]:_e,[`${r}-fix-start-shadow-show`]:_e&&ge,[`${r}-fix-end-shadow-show`]:_e&&be,[`${r}-layout-fixed`]:"fixed"===g,[`${r}-fixed-header`]:Ee,[`${r}-fixed-column`]:Ne,[`${r}-scroll-horizontal`]:_e,[`${r}-has-fix-start`]:ie[0]?.fixed,[`${r}-has-fix-end`]:"end"===ie[ie.length-1]?.fixed}),style:ft,id:x,ref:de},pt),b&&o.createElement(Bw,{className:_(`${r}-title`,s?.title),style:c?.title},b(A)),o.createElement("div",{ref:me,className:_(`${r}-container`,s?.section),style:c?.section},it),y&&o.createElement(Bw,{className:_(`${r}-footer`,s?.footer),style:c?.footer},y(A)));_e&&(ht=o.createElement(Ge,{onResize:({offsetWidth:e})=>Ze(e)},ht));const gt=function(e,t){const n=o.useMemo(()=>e.map((n,o)=>ew(o,o,e,t)),[e,t]);return ne(()=>n,[n],(e,t)=>!xt(e,t))}(ie,Se),vt=o.useMemo(()=>({scrollX:se,scrollInfo:qe,classNames:s,styles:c,prefixCls:r,getComponent:F,scrollbarSize:et,direction:v,fixedInfoList:gt,isSticky:Pe,componentWidth:oe,fixHeader:Ee,fixColumn:Ne,horizonScroll:_e,tableLayout:at,rowClassName:i,expandedRowClassName:G.expandedRowClassName,expandIcon:Z,expandableType:Y,expandRowByClick:G.expandRowByClick,expandedRowRender:G.expandedRowRender,expandedRowOffset:G.expandedRowOffset,onTriggerExpand:ee,expandIconColumnIndex:G.expandIconColumnIndex,indentSize:G.indentSize,allColumnsFixedLeft:ie.every(e=>"start"===e.fixed),emptyNode:st,columns:ae,flattenColumns:ie,onColumnResize:je,colWidths:$e,hoverStartRow:K,hoverEndRow:q,onHover:X,rowExpandable:G.rowExpandable,onRow:k,getRowKey:j,expandedKeys:Q,childrenColumnName:J,rowHoverable:z,measureRowRender:I}),[se,qe,s,c,r,F,et,v,gt,Pe,oe,Ee,Ne,_e,at,i,G.expandedRowClassName,Z,Y,G.expandRowByClick,G.expandedRowRender,G.expandedRowOffset,ee,G.expandIconColumnIndex,G.indentSize,st,ae,ie,je,$e,K,q,X,G.rowExpandable,k,j,Q,J,z,I]);return o.createElement(FC.Provider,{value:vt},ht)},Gw=o.forwardRef(Xw);"production"!==process.env.NODE_ENV&&(Gw.displayName="Table");const Yw=e=>AC(Gw,e),Qw=Yw();Qw.EXPAND_COLUMN=RC,Qw.INTERNAL_HOOKS=MC,Qw.Column=function(e){return null},Qw.ColumnGroup=function(e){return null},Qw.Summary=aw;const Zw=BC(null),Jw=BC(null);function ex(){return ex=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},ex.apply(this,arguments)}const tx=e=>{const{rowInfo:t,column:n,colIndex:r,indent:a,index:i,component:l,renderIndex:s,record:c,style:d,className:u,inverse:p,getHeight:m}=e,{render:f,dataIndex:h,className:g,width:v}=n,{columnsOffset:b}=TC(Jw,["columnsOffset"]),{key:y,fixedInfo:C,appendCellNode:w,additionalCellProps:x}=mw(t,n,r,a,i),{style:$,colSpan:S=1,rowSpan:E=1}=x,k=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,S,b),N={...$,...d,flex:`0 0 ${k}px`,width:`${k}px`,marginRight:S>1?v-k:0,pointerEvents:"auto"},I=o.useMemo(()=>p?E<=1:0===S||0===E||E>1,[E,S,p]);I?N.visibility="hidden":p&&(N.height=m?.(E));const P=I?()=>null:f,O={};return 0!==E&&0!==S||(O.rowSpan=1,O.colSpan=1),o.createElement(QC,ex({className:_(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:y,record:c,index:i,renderIndex:s,dataIndex:h,render:P,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:w,additionalProps:{...x,style:N,...O}}))};function nx(){return nx=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},nx.apply(this,arguments)}const ox=o.forwardRef((e,t)=>{const{data:n,index:r,className:a,rowKey:i,style:l,extra:s,getHeight:c,...d}=e,{record:u,indent:p,index:m}=n,{scrollX:f,flattenColumns:h,prefixCls:g,fixColumn:v,componentWidth:b}=TC(FC,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),{getComponent:y}=TC(Zw,["getComponent"]),C=sw(u,i,r,p),w=y(["body","row"],"div"),x=y(["body","cell"],"div"),{rowSupportExpand:$,expanded:S,rowProps:E,expandedRowRender:k,expandedRowClassName:N}=C;let I;if($&&S){const e=k(u,r,p+1,S),t=uw(N,u,r,p);let n={};v&&(n={style:{"--virtual-width":`${b}px`}});const a=`${g}-expanded-row-cell`;I=o.createElement(w,{className:_(`${g}-expanded-row`,`${g}-expanded-row-level-${p+1}`,t)},o.createElement(QC,{component:x,prefixCls:g,className:_(a,{[`${a}-fixed`]:v}),additionalProps:n},e))}const P={...l,width:f};s&&(P.position="absolute",P.pointerEvents="none");const O=o.createElement(w,nx({},E,d,{"data-row-key":i,ref:$?null:t,className:_(a,`${g}-row`,E?.className,{[`${g}-row-extra`]:s}),style:{...P,...E?.style}}),h.map((e,t)=>o.createElement(tx,{key:t,component:x,rowInfo:C,column:e,colIndex:t,indent:p,index:r,renderIndex:m,record:u,inverse:s,getHeight:c})));return $?o.createElement("div",{ref:t},O,I):O}),rx=LC(ox);"production"!==process.env.NODE_ENV&&(rx.displayName="BodyLine");const ax=o.forwardRef((e,t)=>{const{data:n,onScroll:r}=e,{flattenColumns:a,onColumnResize:i,getRowKey:l,expandedKeys:s,prefixCls:c,childrenColumnName:d,scrollX:u,direction:p}=TC(FC,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:m,scrollY:f,listItemHeight:h,getComponent:g,onScroll:v}=TC(Zw),b=o.useRef(null),y=lw(n,d,s,l),C=o.useMemo(()=>{let e=0;return a.map(({width:t,minWidth:n,key:o})=>{const r=Math.max(t||0,n||0);return e+=r,[o,r,e]})},[a]),w=o.useMemo(()=>C.map(e=>e[2]),[C]);o.useEffect(()=>{C.forEach(([e,t])=>{i(e,t)})},[C]),o.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 x=(e,t)=>{const n=y[t]?.record,{onCell:o}=e;if(o){const e=o(n,t);return e?.rowSpan??1}return 1},$=o.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)),o.createElement(Jw.Provider,{value:$},o.createElement(Vp,{fullHeight:!1,ref:b,prefixCls:`${S}-virtual`,styles:{horizontalScrollBar:k},className:S,height:f,itemHeight:h||24,data:y,itemKey:e=>l(e.record),component:E,scrollWidth:u,direction:p,onVirtualScroll:({x:e})=>{r({currentTarget:b.current?.nativeElement,scrollLeft:e})},onScroll:v,extraRender:e=>{const{start:t,end:n,getSize:r,offsetY:i}=e;if(n<0)return null;let s=a.filter(e=>0===x(e,t)),c=t;for(let e=t;e>=0;e-=1)if(s=s.filter(t=>0===x(t,e)),!s.length){c=e;break}let d=a.filter(e=>1!==x(e,n)),u=n;for(let e=n;e<y.length;e+=1)if(d=d.filter(t=>1!==x(t,e)),!d.length){u=Math.max(e-1,n);break}const p=[];for(let e=c;e<=u;e+=1){y[e]&&(a.some(t=>x(t,e)>1)&&p.push(e))}return p.map(e=>{const t=y[e],n=l(t.record,e),a=r(n);return o.createElement(rx,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:t=>{const o=e+t-1,a=y[o];if(!a||!a.record){const e=Math.min(o,y.length-1),t=y[e],a=l(t.record,e),i=r(n,a);return i.bottom-i.top}const i=l(a.record,o),s=r(n,i);return s.bottom-s.top}})})}},(e,t,n)=>{const r=l(e.record,t);return o.createElement(rx,{data:e,rowKey:r,index:t,style:n.style})}))}),ix=LC(ax);function lx(){return lx=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},lx.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(ix.displayName="ResponseGrid");const sx=(e,t)=>{const{ref:n,onScroll:r}=t;return o.createElement(ix,{ref:n,data:e,onScroll:r})},cx=(e,t)=>{const{data:n,columns:r,scroll:a,sticky:i,prefixCls:l=Vw,className:s,listItemHeight:c,components:d,onScroll:u}=e;let{x:p,y:m}=a||{};"number"!=typeof p&&("production"!==process.env.NODE_ENV&&ke(!p,"`scroll.x` in virtual table must be number."),p=1),"number"!=typeof m&&(m=500,"production"!==process.env.NODE_ENV&&ke(!1,"`scroll.y` in virtual table must be number."));const f=V((e,t)=>fe(d,e)||t),h=V(u),g=o.useMemo(()=>({sticky:i,scrollY:m,listItemHeight:c,getComponent:f,onScroll:h}),[i,m,c,f,h]);return o.createElement(Zw.Provider,{value:g},o.createElement(Qw,lx({},e,{className:_(s,`${l}-virtual`),scroll:{...a,x:p},components:{...d,body:n?.length?sx:void 0},columns:r,internalHooks:MC,tailor:!0,ref:t})))},dx=o.forwardRef(cx);"production"!==process.env.NODE_ENV&&(dx.displayName="VirtualTable");const ux=e=>AC(dx,e);ux();var px=e=>null;var mx=e=>null;const fx=o.createContext(null),hx=o.createContext({}),gx=({prefixCls:e,level:t,isStart:n,isEnd:r})=>{const a=`${e}-indent-unit`,i=[];for(let e=0;e<t;e+=1)i.push(o.createElement("span",{key:e,className:_(a,{[`${a}-start`]:n[e],[`${a}-end`]:r[e]})}));return o.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},i)};var vx=o.memo(gx);function bx(){return bx=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},bx.apply(this,arguments)}const yx="open",Cx="close",wx="---",xx=e=>{const{eventKey:t,className:n,style:o,dragOver:a,dragOverGapTop:i,dragOverGapBottom:l,isLeaf:s,isStart:c,isEnd:d,expanded:u,selected:p,checked:m,halfChecked:f,loading:h,domRef:g,active:v,data:b,onMouseMove:y,selectable:C,...w}=e,x=r.useContext(fx),{classNames:$,styles:S}=x||{},E=r.useContext(hx),k=r.useRef(null),[N,I]=r.useState(!1),P=!!(x.disabled||e.disabled||E.nodeDisabled?.(b)),O=r.useMemo(()=>!(!x.checkable||!1===e.checkable)&&x.checkable,[x.checkable,e.checkable]),D=t=>{P||O&&!e.disableCheckbox&&x.onNodeCheck(t,ob(e),!m)},R=r.useMemo(()=>"boolean"==typeof C?C:x.selectable,[C,x.selectable]),M=t=>{x.onNodeClick(t,ob(e)),R?(t=>{P||x.onNodeSelect(t,ob(e))})(t):D(t)},B=t=>{x.onNodeDoubleClick(t,ob(e))},T=t=>{x.onNodeMouseEnter(t,ob(e))},z=t=>{x.onNodeMouseLeave(t,ob(e))},A=t=>{x.onNodeContextMenu(t,ob(e))},L=r.useMemo(()=>!(!x.draggable||x.draggable.nodeDraggable&&!x.draggable.nodeDraggable(b)),[x.draggable,b]),H=t=>{h||x.onNodeExpand(t,ob(e))},F=r.useMemo(()=>{const{children:e}=Gv(x.keyEntities,t)||{};return Boolean((e||[]).length)},[x.keyEntities,t]),j=r.useMemo(()=>!1!==s&&(s||!x.loadData&&!F||x.loadData&&e.loaded&&!F),[s,x.loadData,F,e.loaded]);r.useEffect(()=>{h||"function"!=typeof x.loadData||!u||j||e.loaded||x.onNodeLoad(ob(e))},[h,x.loadData,x.onNodeLoad,u,j,e]);const W=r.useMemo(()=>x.draggable?.icon?r.createElement("span",{className:`${x.prefixCls}-draggable-icon`},x.draggable.icon):null,[x.draggable]),V=t=>{const n=e.switcherIcon||x.switcherIcon;return"function"==typeof n?n({...e,isLeaf:t}):n},K=r.useMemo(()=>{if(!O)return null;const t="boolean"!=typeof O?O:null;return r.createElement("span",{className:_(`${x.prefixCls}-checkbox`,{[`${x.prefixCls}-checkbox-checked`]:m,[`${x.prefixCls}-checkbox-indeterminate`]:!m&&f,[`${x.prefixCls}-checkbox-disabled`]:P||e.disableCheckbox}),onClick:D,role:"checkbox","aria-checked":f?"mixed":m,"aria-disabled":P||e.disableCheckbox,"aria-label":`Select ${"string"==typeof e.title?e.title:"tree node"}`},t)},[O,m,f,P,e.disableCheckbox,e.title]),q=r.useMemo(()=>j?null:u?yx:Cx,[j,u]),U=r.useMemo(()=>r.createElement("span",{className:_($?.itemIcon,`${x.prefixCls}-iconEle`,`${x.prefixCls}-icon__${q||"docu"}`,{[`${x.prefixCls}-icon_loading`]:h}),style:S?.itemIcon}),[x.prefixCls,q,h]),X=r.useMemo(()=>{const n=Boolean(x.draggable);return!e.disabled&&n&&x.dragOverNodeKey===t?x.dropIndicatorRender({dropPosition:x.dropPosition,dropLevelOffset:x.dropLevelOffset,indent:x.indent,prefixCls:x.prefixCls,direction:x.direction}):null},[x.dropPosition,x.dropLevelOffset,x.indent,x.prefixCls,x.direction,x.draggable,x.dragOverNodeKey,x.dropIndicatorRender]),G=r.useMemo(()=>{const{title:t=wx}=e,n=`${x.prefixCls}-node-content-wrapper`;let o,a;if(x.showIcon){const t=e.icon||x.icon;o=t?r.createElement("span",{className:_($?.itemIcon,`${x.prefixCls}-iconEle`,`${x.prefixCls}-icon__customize`),style:S?.itemIcon},"function"==typeof t?t(e):t):U}else x.loadData&&h&&(o=U);return a="function"==typeof t?t(b):x.titleRender?x.titleRender(b):t,r.createElement("span",{ref:k,title:"string"==typeof t?t:"",className:_(n,`${n}-${q||"normal"}`,{[`${x.prefixCls}-node-selected`]:!P&&(p||N)}),onMouseEnter:T,onMouseLeave:z,onContextMenu:A,onClick:M,onDoubleClick:B},o,r.createElement("span",{className:_(`${x.prefixCls}-title`,$?.itemTitle),style:S?.itemTitle},a),X)},[x.prefixCls,x.showIcon,e,x.icon,U,x.titleRender,b,q,T,z,A,M,B]),Y=ii(w,{aria:!0,data:!0}),{level:Q}=Gv(x.keyEntities,t)||{},Z=d[d.length-1],J=!P&&L,ee=x.draggingNodeKey===t,te=void 0!==C?{"aria-selected":!!C}:void 0;return r.createElement("div",bx({ref:g,role:"treeitem","aria-expanded":s?void 0:u,className:_(n,`${x.prefixCls}-treenode`,$?.item,{[`${x.prefixCls}-treenode-disabled`]:P,[`${x.prefixCls}-treenode-switcher-${u?"open":"close"}`]:!s,[`${x.prefixCls}-treenode-checkbox-checked`]:m,[`${x.prefixCls}-treenode-checkbox-indeterminate`]:f,[`${x.prefixCls}-treenode-selected`]:p,[`${x.prefixCls}-treenode-loading`]:h,[`${x.prefixCls}-treenode-active`]:v,[`${x.prefixCls}-treenode-leaf-last`]:Z,[`${x.prefixCls}-treenode-draggable`]:L,dragging:ee,"drop-target":x.dropTargetKey===t,"drop-container":x.dropContainerKey===t,"drag-over":!P&&a,"drag-over-gap-top":!P&&i,"drag-over-gap-bottom":!P&&l,"filter-node":x.filterTreeNode?.(ob(e)),[`${x.prefixCls}-treenode-leaf`]:j}),style:{...o,...S?.item},draggable:J,onDragStart:J?t=>{t.stopPropagation(),I(!0),x.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:L?t=>{t.preventDefault(),t.stopPropagation(),x.onNodeDragEnter(t,e)}:void 0,onDragOver:L?t=>{t.preventDefault(),t.stopPropagation(),x.onNodeDragOver(t,e)}:void 0,onDragLeave:L?t=>{t.stopPropagation(),x.onNodeDragLeave(t,e)}:void 0,onDrop:L?t=>{t.preventDefault(),t.stopPropagation(),I(!1),x.onNodeDrop(t,e)}:void 0,onDragEnd:L?t=>{t.stopPropagation(),I(!1),x.onNodeDragEnd(t,e)}:void 0,onMouseMove:y},te,Y),r.createElement(vx,{prefixCls:x.prefixCls,level:Q,isStart:c,isEnd:d}),W,(()=>{if(j){const e=V(!0);return!1!==e?r.createElement("span",{className:_(`${x.prefixCls}-switcher`,`${x.prefixCls}-switcher-noop`)},e):null}const e=V(!1);return!1!==e?r.createElement("span",{onClick:H,className:_(`${x.prefixCls}-switcher`,`${x.prefixCls}-switcher_${u?yx:Cx}`)},e):null})(),K,G)};function $x(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function Sx(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function Ex(e){return e.split("-")}function kx(e,t){const n=[];return function e(t=[]){t.forEach(({key:t,children:o})=>{n.push(t),e(o)})}(Gv(t,e).children),n}function _x(e){if(e.parent){const t=Ex(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Nx(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=Gv(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=Gv(l,t)}const v=g.key,b=g,y=g.key;let C=0,w=0;if(!h.includes(v))for(let e=0;e<f&&_x(g);e+=1)g=g.parent,w+=1;const x=t.data,$=g.node;let S=!0;return function(e){const t=Ex(e.pos);return 0===Number(t[t.length-1])}(g)&&0===g.level&&u<p+m/2&&a({dragNode:x,dropNode:$,dropPosition:-1})&&g.key===n.eventKey?C=-1:(b.children||[]).length&&h.includes(y)?a({dragNode:x,dropNode:$,dropPosition:0})?C=0:S=!1:0===w?f>-1.5?a({dragNode:x,dropNode:$,dropPosition:1})?C=1:S=!1:a({dragNode:x,dropNode:$,dropPosition:0})?C=0:a({dragNode:x,dropNode:$,dropPosition:1})?C=1:S=!1:a({dragNode:x,dropNode:$,dropPosition:1})?C=1:S=!1,{dropPosition:C,dropLevelOffset:w,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:0===C?null:g.parent?.key||null,dropAllowed:S}}function Ix(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function Px(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return ke(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Ox(e,t){const n=new Set;function o(e){if(n.has(e))return;const r=Gv(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]}xx.isTreeNode=1,"production"!==process.env.NODE_ENV&&(xx.displayName="TreeNode");const Dx={},Rx="SELECT_ALL",Mx="SELECT_INVERT",Bx="SELECT_NONE",Tx=[],zx=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&zx(e,t[e],n)}),n),Ax=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:l,getTitleCheckboxProps:s,onChange:c,onSelect:u,onSelectAll:p,onSelectInvert:m,onSelectNone:f,onSelectMultiple:g,columnWidth:v,type:b,selections:y,fixed:C,renderCell:w,hideSelectAll:x,checkStrictly:$=!0}=t||{},{prefixCls:S,data:E,pageData:k,getRecordByKey:N,getRowKey:I,expandType:P,childrenColumnName:O,locale:D,getPopupContainer:R}=e,M=Te("Table"),[B,T]=(e=>{const[t,n]=a(null);return[h((o,r,a)=>{const i=t??o,l=Math.min(i||0,o),s=Math.max(i||0,o),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))}),n(d?s:null),u},[t]),n]})(e=>e),[z,A]=G(i||Tx,r),L=o.useRef(new Map),H=h(e=>{if(n){const t=new Map;e.forEach(e=>{let n=N(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[N,n]);o.useEffect(()=>{H(z)},[z]);const F=d(()=>zx(O,k),[O,k]),{keyEntities:j}=d(()=>{if($)return{keyEntities:null};let e=E;if(n){const t=new Set(F.map(I)),n=Array.from(L.current).reduce((e,[n,o])=>t.has(n)?e:e.concat(o),[]);e=[].concat(Ze(e),Ze(n))}return tb(e,{externalGetKey:I,childrenPropName:O})},[E,I,$,O,n,F]),W=d(()=>{const e=new Map;return F.forEach((t,n)=>{const o=I(t,n),r=(l?l(t):null)||{};e.set(o,r),"production"!==process.env.NODE_ENV&&M(!("checked"in r||"defaultChecked"in r),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}),e},[F,I,l]),V=h(e=>{const t=I(e);let n;return n=W.has(t)?W.get(I(e)):l?l(e):void 0,!!n?.disabled},[W,I]),[K,q]=d(()=>{if($)return[z||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=ib(z,!0,j,V);return[e||[],t]},[z,$,j,V]),U=d(()=>{const e="radio"===b?K.slice(0,1):K;return new Set(e)},[K,b]),X=d(()=>"radio"===b?new Set:new Set(q),[q,b]);o.useEffect(()=>{t||A(Tx)},[!!t]);const Y=h((e,t)=>{let o,r;H(e),n?(o=e,r=e.map(e=>L.current.get(e))):(o=[],r=[],e.forEach(e=>{const t=N(e);void 0!==t&&(o.push(e),r.push(t))})),A(o),c?.(o,r,{type:t})},[A,N,c,n]),Q=h((e,t,n,o)=>{if(u){const r=n.map(e=>N(e));u(N(e),t,r,o)}Y(n,"single")},[u,N,Y]),Z=d(()=>{if(!y||x)return null;return(!0===y?[Rx,Mx,Bx]:y).map(e=>e===Rx?{key:"all",text:D.selectionAll,onSelect(){Y(E.map((e,t)=>I(e,t)).filter(e=>{const t=W.get(e);return!t?.disabled||U.has(e)}),"all")}}:e===Mx?{key:"invert",text:D.selectInvert,onSelect(){const e=new Set(U);k.forEach((t,n)=>{const o=I(t,n),r=W.get(o);r?.disabled||(e.has(o)?e.delete(o):e.add(o))});const t=Array.from(e);m&&(M.deprecated(!1,"onSelectInvert","onChange"),m(t)),Y(t,"invert")}}:e===Bx?{key:"none",text:D.selectNone,onSelect(){f?.(),Y(Array.from(U).filter(e=>{const t=W.get(e);return t?.disabled}),"none")}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),T(null)}}))},[y,x,D.selectionAll,D.selectInvert,D.selectNone,W,U,E,k,I,m,Y]),J=h(e=>{if(!t)return"production"!==process.env.NODE_ENV&&M(!e.includes(Dx),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),e.filter(e=>e!==Dx);let n=Ze(e);const r=new Set(U),a=F.map(I).filter(e=>!W.get(e).disabled),i=a.every(e=>r.has(e)),l=a.some(e=>r.has(e));let c,d,u;if("radio"!==b){let e;if(Z){const t={getPopupContainer:R,items:Z.map((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:n??t,onClick:()=>{r?.(a)},label:o}})};e=o.createElement("div",{className:`${S}-selection-extra`},o.createElement(Yy,{menu:t,getPopupContainer:R},o.createElement("span",null,o.createElement(Bm,null))))}const t=F.map((e,t)=>{const n=I(e,t),o=W.get(n)||{};return{checked:r.has(n),...o}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===F.length,u=n&&t.every(({checked:e})=>e),m=n&&t.some(({checked:e})=>e),f=s?.()||{},{onChange:h,disabled:g}=f;d=o.createElement(gb,{"aria-label":e?"Custom selection":"Select all",...f,checked:n?u:!!F.length&&i,indeterminate:n?!u&&m:!i&&l,onChange:e=>{(()=>{const e=[];i?a.forEach(t=>{r.delete(t),e.push(t)}):a.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});const t=Array.from(r);p?.(!i,t.map(e=>N(e)),e.map(e=>N(e))),Y(t,"all"),T(null)})(),h?.(e)},disabled:g??(0===F.length||n),skipGroup:!0}),c=!x&&o.createElement("div",{className:`${S}-selection`},d,e)}u="radio"===b?(e,t,n)=>{const a=I(t,n),i=r.has(a),l=W.get(a);return{node:o.createElement(bv,{...l,checked:i,onClick:e=>{e.stopPropagation(),l?.onClick?.(e)},onChange:e=>{r.has(a)||Q(a,!0,[a],e.nativeEvent),l?.onChange?.(e)}}),checked:i}}:(e,t,n)=>{const i=I(t,n),l=r.has(i),s=X.has(i),c=W.get(i);let d;return"nest"===P?(d=s,"production"!==process.env.NODE_ENV&&M("boolean"!=typeof c?.indeterminate,"usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):d=c?.indeterminate??s,{node:o.createElement(gb,{...c,indeterminate:d,checked:l,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{const{nativeEvent:t}=e,{shiftKey:n}=t,o=a.indexOf(i),s=K.some(e=>a.includes(e));if(n&&$&&s){const e=B(o,a,r),t=Array.from(r);g?.(!l,t.map(e=>N(e)),e.map(e=>N(e))),Y(t,"multiple")}else{const e=K;if($){const n=l?$x(e,i):Sx(e,i);Q(i,!l,n,t)}else{const n=ib([].concat(Ze(e),[i]),!0,j,V),{checkedKeys:o,halfCheckedKeys:r}=n;let a=o;if(l){const e=new Set(o);e.delete(i),a=ib(Array.from(e),{checked:!1,halfCheckedKeys:r},j,V).checkedKeys}Q(i,!l,a,t)}}T(l?null:o),c?.onChange?.(e)}}),checked:l}};if(!n.includes(Dx))if(0===n.findIndex(e=>"EXPAND_COLUMN"===e[Cw]?.columnType)){const[e,...t]=n;n=[e,Dx].concat(Ze(t))}else n=[Dx].concat(Ze(n));const m=n.indexOf(Dx);"production"!==process.env.NODE_ENV&&M(n.filter(e=>e===Dx).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),n=n.filter((e,t)=>e!==Dx||t===m);const f=n[m-1],h=n[m+1];let E=C;void 0===E&&(void 0!==h?.fixed?E=h.fixed:void 0!==f?.fixed&&(E=f.fixed)),E&&f&&"EXPAND_COLUMN"===f[Cw]?.columnType&&void 0===f.fixed&&(f.fixed=E);const k=_(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:y&&"checkbox"===b}),O={fixed:E,width:v,className:`${S}-selection-column`,title:t?.columnTitle?"function"==typeof t.columnTitle?t.columnTitle(d):t.columnTitle:c,render:(e,t,n)=>{const{node:o,checked:r}=u(e,t,n);return w?w(r,t,n,o):o},onCell:t.onCell,align:t.align,[Cw]:{className:k}};return n.map(e=>e===Dx?O:e)},[I,F,t,K,U,X,v,Z,P,W,g,Q,V]);return[J,U]};const Lx=(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 Hx(e,t){return t?`${t}-${e}`:`${e}`}const Fx=(e,t)=>"function"==typeof e?e(t):e,jx=e=>{const{dropPosition:t,dropLevelOffset:n,indent:o}=e,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*o;break;case 1:a.bottom=0,a.left=-n*o;break;case 0:a.bottom=0,a.left=o}return r.createElement("div",{style:a})};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)}"production"!==process.env.NODE_ENV&&(jx.displayName="DropIndicator");const Vx=o.forwardRef((e,t)=>{const{className:n,style:r,motion:a,motionNodes:i,motionType:l,onMotionStart:s,onMotionEnd:c,active:d,treeNodeRequiredProps:u,...p}=e,[m,f]=o.useState(!0),{prefixCls:h}=o.useContext(fx),g=i&&"hide"!==l;U(()=>{i&&g!==m&&f(g)},[i]);const v=o.useRef(!1),b=()=>{i&&!v.current&&(v.current=!0,c())};!function(e,t){const[n,r]=o.useState(!1);U(()=>{if(n)return e(),()=>{t()}},[n]),U(()=>(r(!0),()=>{r(!1)}),[])}(()=>{i&&s()},b);const y=e=>{g===e&&b()};return i?o.createElement(oi,Wx({ref:t,visible:m},a,{motionAppear:"show"===l,onVisibleChanged:y}),({className:e,style:t},n)=>o.createElement("div",{ref:n,className:_(`${h}-treenode-motion`,e),style:t},i.map(e=>{const{data:{...t},title:n,key:r,isStart:a,isEnd:i}=e;delete t.children;const l=nb(r,u);return o.createElement(xx,Wx({},t,l,{title:n,active:d,data:e.data,key:r,isStart:a,isEnd:i}))}))):o.createElement(xx,Wx({domRef:t,className:n,style:r},p,{active:d}))});function Kx(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 qx(){return qx=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},qx.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(Vx.displayName="MotionTreeNode");const Ux={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Xx=()=>{},Gx=`RC_TREE_MOTION_${Math.random()}`,Yx={key:Gx},Qx={key:Gx,level:0,index:0,pos:"0",node:Yx,nodes:[Yx]},Zx={parent:null,children:[],pos:Qx.pos,data:Yx,title:null,key:Gx,isStart:[],isEnd:[]};function Jx(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function e$(e){const{key:t,pos:n}=e;return Qv(t,n)}const t$=o.forwardRef((e,t)=>{const{prefixCls:n,data:r,selectable:a,checkable:i,expandedKeys:l,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:C,virtual:w,scrollWidth:x,focusable:$,activeItem:S,focused:E,tabIndex:k,onKeyDown:_,onFocus:N,onBlur:I,onActiveChange:P,onListChangeStart:O,onListChangeEnd:D,...R}=e,M=o.useRef(null),B=o.useRef(null);o.useImperativeHandle(t,()=>({scrollTo:e=>{M.current.scrollTo(e)},getIndentWidth:()=>B.current.offsetWidth}));const[T,z]=o.useState(l),[A,L]=o.useState(r),[H,F]=o.useState(r),[j,W]=o.useState([]),[V,K]=o.useState(null),q=o.useRef(r);function X(){const e=q.current;L(e),F(e),W([]),K(null),D()}q.current=r,U(()=>{z(l);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,l);if(null!==e.key)if(e.add){const t=A.findIndex(({key:t})=>t===e.key),n=Jx(Kx(A,r,e.key),w,y,C),o=A.slice();o.splice(t+1,0,Zx),F(o),W(n),K("show")}else{const t=r.findIndex(({key:t})=>t===e.key),n=Jx(Kx(r,A,e.key),w,y,C),o=r.slice();o.splice(t+1,0,Zx),F(o),W(n),K("hide")}else A!==r&&(L(r),F(r))},[l,r]),o.useEffect(()=>{h||X()},[h]);const G=b?H:r,Y={expandedKeys:l,selectedKeys:s,loadedKeys:d,loadingKeys:u,checkedKeys:c,halfCheckedKeys:p,dragOverNodeKey:g,dropPosition:v,keyEntities:m};return o.createElement(o.Fragment,null,E&&S&&o.createElement("span",{style:Ux,"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)),o.createElement("div",null,o.createElement("input",{style:Ux,disabled:!1===$||f,tabIndex:!1!==$?k:null,onKeyDown:_,onFocus:N,onBlur:I,value:"",onChange:Xx,"aria-label":"for screen reader"})),o.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:`${n}-indent`},o.createElement("div",{ref:B,className:`${n}-indent-unit`}))),o.createElement(Vp,qx({},R,{data:G,itemKey:e$,height:y,fullHeight:!1,virtual:w,itemHeight:C,scrollWidth:x,prefixCls:`${n}-list`,ref:M,role:"tree",onVisibleChange:e=>{e.every(e=>e$(e)!==Gx)&&X()}}),e=>{const{pos:t,data:{...n},title:r,key:a,isStart:i,isEnd:l}=e,s=Qv(a,t);delete n.key,delete n.children;const c=nb(s,Y);return o.createElement(Vx,qx({},n,c,{title:r,active:!!S&&a===S.key,pos:t,data:e.data,isStart:i,isEnd:l,motion:b,motionNodes:a===Gx?j:null,motionType:V,onMotionStart:O,onMotionEnd:X,treeNodeRequiredProps:Y,onMouseMove:()=>{P(null)}}))}))});function n$(){return n$=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},n$.apply(this,arguments)}"production"!==process.env.NODE_ENV&&(t$.displayName="NodeList");class o$ extends o.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:jx,allowDrop:()=>!0,expandAction:!1};static TreeNode=xx;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:Zv()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;listRef=o.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=Zv(e.fieldNames),o.fieldNames=i),r("treeData")?({treeData:a}=e):r("children")&&(ke(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Jv(e.children)),a){o.treeData=a;const e=tb(a,{fieldNames:i});o.keyEntities={[Gx]:Qx,...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];ke(null!=a,`Tree node must have a certain key: [${r}${a}]`);const l=String(a);ke(!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?Ox(e.expandedKeys,l):e.expandedKeys;else if(!n&&e.defaultExpandAll){const e={...l};delete e[Gx];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?Ox(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,a||o.expandedKeys){const e=eb(a||t.treeData,o.expandedKeys||t.expandedKeys,i);o.flattenNodes=e}if(e.selectable&&(r("selectedKeys")?o.selectedKeys=Ix(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(o.selectedKeys=Ix(e.defaultSelectedKeys,e))),e.checkable){let i;if(r("checkedKeys")?i=Px(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?i=Px(e.defaultCheckedKeys)||{}:a&&(i=Px(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),i){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=i;if(!e.checkStrictly){const e=ib(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=$x(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:kx(a,o),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(i),window.addEventListener("dragend",this.onWindowDragEnd),r?.({event:e,node:ob(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}=Nx(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=Gv(o,t.eventKey);a&&(a.children||[]).length&&(r=Sx(n,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(r),s?.(r,{node:ob(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:ob(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}=Nx(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:ob(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:ob(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:ob(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={...nb(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:Gv(this.state.keyEntities,a).node};ke(!o.includes(a),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const d=Ex(i),u={event:e,node:ob(c),dragNode:this.dragNodeProps?ob(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=ob({...nb(a,this.getTreeNodeRequiredProps()),data:l.data});this.setExpandedKeys(r?$x(n,a):Sx(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?Sx(n,s):[s]:$x(n,s);const d=n.map(e=>{const t=Gv(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?Sx(r,s):$x(r,s);c={checked:e,halfChecked:$x(a,s)},d.checkedNodes=e.map(e=>Gv(o,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=ib([...r,s],!0,o);if(!n){const n=new Set(e);n.delete(s),({checkedKeys:e,halfCheckedKeys:t}=ib(Array.from(n),{checked:!1,halfCheckedKeys:t},o))}c=e,d.checkedNodes=[],d.checkedNodesPositions=[],d.halfCheckedKeys=t,e.forEach(e=>{const t=Gv(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=Gv(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=Sx(o,t);l?.(r,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:r}),this.setState(e=>({loadingKeys:$x(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:$x(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=10){const{loadedKeys:e}=this.state;ke(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:Sx(e,t)}),n()}o(e)}),{loadingKeys:Sx(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=eb(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(ke(l&&c||!l&&!c,"Expand state not sync with index check"),n=d?Sx(n,s):$x(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=eb(this.state.treeData,n,r);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{const{expandedKeys:e}=this.state,t=$x(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 ss.UP:this.offsetActiveKey(-1),e.preventDefault();break;case ss.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=ob({...nb(t,a),data:s.data,active:!0});switch(e.which){case ss.LEFT:c&&n.includes(t)?this.onNodeExpand({},d):s.parent&&this.onActiveChange(s.parent.key),e.preventDefault();break;case ss.RIGHT:c&&!n.includes(t)?this.onNodeExpand({},d):s.children&&s.children.length&&this.onActiveChange(s.children[0].key),e.preventDefault();break;case ss.ENTER:case ss.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:r,activeKey:a,dropLevelOffset:i,dropContainerKey:l,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:C,showIcon:w,icon:x,switcherIcon:$,draggable:S,checkable:E,checkStrictly:k,disabled:N,motion:I,loadData:P,filterTreeNode:O,height:D,itemHeight:R,scrollWidth:M,virtual:B,titleRender:T,dropIndicatorRender:z,onContextMenu:A,onScroll:L,direction:H,rootClassName:F,rootStyle:j}=this.props,W=ii(this.props,{aria:!0,data:!0});let V;S&&(V="object"==typeof S?S:"function"==typeof S?{nodeDraggable:S}:{});const K={styles:h,classNames:g,prefixCls:p,selectable:C,showIcon:w,icon:x,switcherIcon:$,draggable:V,draggingNodeKey:r,checkable:E,checkStrictly:k,disabled:N,keyEntities:n,dropLevelOffset:i,dropContainerKey:l,dropTargetKey:s,dropPosition:c,dragOverNodeKey:d,indent:u,direction:H,dropIndicatorRender:z,loadData:P,filterTreeNode:O,titleRender:T,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 o.createElement(fx.Provider,{value:K},o.createElement("div",{className:_(p,m,F,{[`${p}-show-line`]:v,[`${p}-focused`]:e,[`${p}-active-focused`]:null!==a}),style:j},o.createElement(t$,n$({ref:this.listRef,prefixCls:p,style:f,data:t,disabled:N,selectable:C,checkable:!!E,motion:I,dragging:null!==r,height:D,itemHeight:R,virtual:B,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:M},this.getTreeNodeRequiredProps(),W))))}}const r$=({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}}}}}),a$=new fo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),i$=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),l$=(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:`${Ht(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),s$=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:a,indentSize:i,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:{...qr(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)`]:Ur(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:a$,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:Ht(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`]:{...i$(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`,...l$(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:`${Ht(t.calc(a).div(2).equal())} !important`}}}},c$=(e,t,n=!0)=>{const o=`.${e}`,r=`${o}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=Fo(t,{treeCls:o,treeNodeCls:r,treeNodePadding:a});return[s$(e,i),n&&r$(i)].filter(Boolean)},d$=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 u$=Qr("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:lb(`${t}-checkbox`,e)},c$(t,e),Sc(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return{...d$(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}});function p$(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:a,direction:i="ltr"}=e,l="ltr"===i?"left":"right",s="ltr"===i?"right":"left",c={[l]:-n*a+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=a+4}return r.createElement("div",{style:c,className:`${o}-drop-indicator`})}var m$=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:i}=e,{isLeaf:l,expanded:s,loading:c}=r;if(c)return o.isValidElement(i)?i:o.createElement(ms,{className:`${t}-switcher-loading-icon`});let d;if(a&&"object"==typeof a&&(d=a.showLeafIcon),l){if(!a)return null;if("boolean"!=typeof d&&d){const e="function"==typeof d?d(r):d,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?Wi(e,{className:_(e.props?.className,n)}):e}return d?o.createElement(qb,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,p="function"==typeof n?n(r):n;return o.isValidElement(p)?Wi(p,{className:_(p.props?.className,u)}):void 0!==p?p:a?s?o.createElement(vy,{className:`${t}-switcher-line-icon`}):o.createElement(xy,{className:`${t}-switcher-line-icon`}):o.createElement(wb,{className:u})};const f$=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,className:a,style:i,classNames:l,styles:s}=dt("tree"),{virtual:c}=r.useContext(st),{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:C,disabled:w,motion:x,style:$,rootClassName:S,classNames:E,styles:k}=e,N=r.useContext(Gl),I=w??N,P=n("tree",d),O=n(),D=x??{...ys(O),motionAppear:!1},R={...e,showIcon:p,blockNode:g,checkable:b,selectable:y,disabled:I,motion:D},[M,B]=Di([l,E],[s,k],{props:R}),T={...e,checkable:b,selectable:y,showIcon:p,motion:D,blockNode:g,disabled:I,showLine:Boolean(m),dropIndicatorRender:p$},[z,A]=u$(P),[,L]=Vr(),H=L.paddingXS/2+(L.Tree?.titleHeight||L.controlHeightSM),F=r.useMemo(()=>{if(!C)return!1;let e={};switch(typeof C){case"function":e.nodeDraggable=C;break;case"object":e={...C}}return!1!==e.icon&&(e.icon=e.icon||r.createElement(py,null)),e},[C]);return r.createElement(o$,{itemHeight:H,ref:t,virtual:c,...T,prefixCls:P,className:_({[`${P}-icon-hide`]:!p,[`${P}-block-node`]:g,[`${P}-unselectable`]:!y,[`${P}-rtl`]:"rtl"===o,[`${P}-disabled`]:I},a,u,z,A),style:{...i,...$},rootClassName:_(M?.root,S),rootStyle:B?.root,classNames:M,styles:B,direction:o,checkable:b?r.createElement("span",{className:`${P}-checkbox-inner`}):b,selectable:y,switcherIcon:e=>r.createElement(m$,{prefixCls:P,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:e,showLine:m}),draggable:F},v)});"production"!==process.env.NODE_ENV&&(f$.displayName="Tree");var h$=f$;function g$(e,t,n){const{key:o,children:r}=n;e.forEach(function(e){const a=e[o],i=e[r];!1!==t(a,e)&&g$(i||[],t,n)})}function v$({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 g$(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)},Zv(r)),a}function b$(e,t,n){const o=Ze(t),r=[];return g$(e,(e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length},Zv(n)),r}function y$(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(qb,null):n?o.createElement(ny,null):o.createElement(ly,null)}function C$({treeData:e,children:t}){return e||Jv(t)}const w$=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:n,...r},a)=>{const i=o.useRef(null),l=o.useRef(null),[s,c]=o.useState(r.selectedKeys||r.defaultSelectedKeys||[]),[d,u]=o.useState(()=>(()=>{const{keyEntities:o}=tb(C$(r),{fieldNames:r.fieldNames});let a;return a=e?Object.keys(o):t?Ox(r.expandedKeys||n||[],o):r.expandedKeys||n||[],a})());o.useEffect(()=>{"selectedKeys"in r&&c(r.selectedKeys)},[r.selectedKeys]),o.useEffect(()=>{"expandedKeys"in r&&u(r.expandedKeys)},[r.expandedKeys]);const{getPrefixCls:p,direction:m}=o.useContext(st),{prefixCls:f,className:h,showIcon:g=!0,expandAction:v="click",...b}=r,y=p("tree",f),C=_(`${y}-directory`,{[`${y}-directory-rtl`]:"rtl"===m},h);return o.createElement(h$,{icon:y$,ref:a,blockNode:!0,...b,showIcon:g,expandAction:v,prefixCls:y,className:C,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{const{multiple:n,fieldNames:o}=r,{node:a,nativeEvent:s}=t,{key:u=""}=a,p=C$(r),m={...t,selected:!0},f=s?.ctrlKey||s?.metaKey,h=s?.shiftKey;let g;n&&f?(g=e,i.current=u,l.current=g,m.selectedNodes=b$(p,g,o)):n&&h?(g=Array.from(new Set([].concat(Ze(l.current||[]),Ze(v$({treeData:p,expandedKeys:d,startKey:u,endKey:i.current,fieldNames:o}))))),m.selectedNodes=b$(p,g,o)):(g=[u],i.current=u,l.current=g,m.selectedNodes=b$(p,g,o)),r.onSelect?.(g,m),"selectedKeys"in r||c(g)},onExpand:(e,t)=>("expandedKeys"in r||u(e),r.onExpand?.(e,t))})},x$=o.forwardRef(w$);"production"!==process.env.NODE_ENV&&(x$.displayName="DirectoryTree");var $$=x$;const S$=h$;S$.DirectoryTree=$$,S$.TreeNode=xx;var E$=S$;var k$=r.createContext(!1);var _$=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:i}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(By,{prefix:o.createElement(Hm,null),placeholder:a.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null};const N$=e=>{const{keyCode:t}=e;t===ss.ENTER&&e.stopPropagation()},I$=o.forwardRef((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:N$,ref:t},e.children));"production"!==process.env.NODE_ENV&&(I$.displayName="FilterDropdownMenuWrapper");var P$=I$;function O$(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Ze(t),Ze(O$(n))))}),t}function D$(e,t){return("string"==typeof t||"number"==typeof t)&&t?.toString().toLowerCase().includes(e.trim().toLowerCase())}function R$({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i}){return e.map((e,l)=>{const s=String(e.value);if(e.children)return{key:s||l,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:R$({filters:e.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i})};const c=r?gb:bv,d={key:void 0!==e.value?s:l,label:o.createElement(o.Fragment,null,o.createElement(c,{checked:n.includes(s)}),o.createElement("span",null,e.text))};return a.trim()?"function"==typeof i?i(a,e)?d:null:D$(a,e.text)?d:null:d})}function M$(e){return e||[]}const B$=e=>{const{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:a,columnKey:i,filterOnClose:l,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:C,onFilterDropdownOpenChange:w}=r,[x,$]=o.useState(!1),S=o.useContext(k$),E=!(!u||!u.filteredKeys?.length&&!u.forceFiltered),k=e=>{$(e),y.onOpenChange?.(e),w?.(e)};if("production"!==process.env.NODE_ENV){const e=Te("Table");[["filterDropdownOpen","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"]].forEach(([t,n])=>{e.deprecated(!(t in r),t,n)}),e.deprecated(!("filterCheckall"in m),"filterCheckall","locale.filterCheckAll")}const N=y.open??C??x,I=u?.filteredKeys,[P,O]=(e=>{const t=o.useRef(e),[,n]=Ei();return[()=>t.current,e=>{t.current=e,n()}]})(M$(I)),D=({selectedKeys:e})=>{O(e)},R=(e,{node:t,checked:n})=>{D(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};o.useEffect(()=>{x&&D({selectedKeys:M$(I)})},[I]);const[M,B]=o.useState([]),T=e=>{B(e)},[z,A]=o.useState(""),L=e=>{const{value:t}=e.target;A(t)};o.useEffect(()=>{x||A("")},[x]);const H=e=>{const t=e?.length?e:null;return null!==t||u&&u.filteredKeys?xt(t,u?.filteredKeys,!0)?null:void p({column:r,key:i,filteredKeys:t}):null},F=()=>{k(!1),H(P())},j=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&H([]),t&&k(!1),A(""),O(v?(b||[]).map(e=>String(e)):[])},W=({closeDropdown:e}={closeDropdown:!0})=>{e&&k(!1),H(P())},V=_({[`${a}-menu-without-submenu`]:(K=r.filters||[],!K.some(({children:e})=>e))});var K;const q=e=>{if(e.target.checked){const e=O$(r?.filters).map(e=>String(e));O(e)}else O([])},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:Q}=o.useContext(st);if("function"==typeof r.filterDropdown)G=r.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:e=>D({selectedKeys:e}),selectedKeys:P(),confirm:W,clearFilters:j,filters:r.filters,visible:N,close:()=>{k(!1)}});else if(r.filterDropdown)G=r.filterDropdown;else{const e=P()||[],i=()=>{const i=Q?.("Table.filter")??o.createElement(pm,{image:pm.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(r.filters||[]).length)return i;if("tree"===c)return o.createElement(o.Fragment,null,o.createElement(_$,{filterSearch:d,value:z,onChange:L,tablePrefixCls:t,locale:m}),o.createElement("div",{className:`${t}-filter-dropdown-tree`},s?o.createElement(gb,{checked:e.length===O$(r.filters).length,indeterminate:e.length>0&&e.length<O$(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:q},m?.filterCheckall??m?.filterCheckAll):null,o.createElement(E$,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${a}-menu`,onCheck:R,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:U({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z.trim()?e=>"function"==typeof d?d(z,X(e)):D$(z,e.title):void 0})));const l=R$({filters:r.filters||[],filterSearch:d,prefixCls:n,filteredKeys:P(),filterMultiple:s,searchValue:z}),u=l.every(e=>null===e);return o.createElement(o.Fragment,null,o.createElement(_$,{filterSearch:d,value:z,onChange:L,tablePrefixCls:t,locale:m}),u?i:o.createElement(Mg,{selectable:!0,multiple:s,prefixCls:`${a}-menu`,className:V,onSelect:D,onDeselect:D,selectedKeys:e,getPopupContainer:h,openKeys:M,onOpenChange:T,items:l}))},l=()=>v?xt((b||[]).map(e=>String(e)),e,!0):0===e.length;G=o.createElement(o.Fragment,null,i(),o.createElement("div",{className:`${n}-dropdown-btns`},o.createElement(Sd,{type:"link",size:"small",disabled:l(),onClick:()=>j()},m.filterReset),o.createElement(Sd,{type:"primary",size:"small",onClick:F},m.filterConfirm)))}r.filterDropdown&&(G=o.createElement(vg,{selectable:void 0},G)),G=o.createElement(P$,{className:`${n}-dropdown`},G);const Z=(()=>{let e;return e="function"==typeof r.filterIcon?r.filterIcon(E):r.filterIcon?r.filterIcon:o.createElement(Qb,null),o.createElement("span",{role:"button",tabIndex:-1,className:_(`${n}-trigger`,{active:E}),onClick:e=>{e.stopPropagation()}},e)})();if(S)return o.createElement("div",{className:`${n}-column`},o.createElement("span",{className:`${t}-column-title`},f),Z);const J=$i({trigger:["click"],placement:"rtl"===Y?"bottomLeft":"bottomRight",children:Z,getPopupContainer:h},{...y,rootClassName:_(g,y.rootClassName),open:N,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==I&&O(M$(I)),k(e),e||r.filterDropdown||!l||F())},popupRender:()=>"function"==typeof y?.dropdownRender?y.dropdownRender(G):G});return o.createElement("div",{className:`${n}-column`},o.createElement("span",{className:`${t}-column-title`},f),o.createElement(Yy,{...J}))},T$=(e,t,n)=>{let o=[];return(e||[]).forEach((e,r)=>{const a=Hx(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:Lx(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:Lx(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(Ze(o),Ze(T$(e.children,t,a))))}),o};function z$(e,t,n,r,a,i,l,s,c){return n.map((n,d)=>{const u=Hx(d,s),{filterOnClose:p=!0,filterMultiple:m=!0,filterMode:f,filterSearch:h}=n;let g=n;if(g.filters||g.filterDropdown){const s=Lx(g,u),d=r.find(({key:e})=>s===e);g={...g,title:r=>o.createElement(B$,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:d,filterOnClose:p,filterMultiple:m,filterMode:f,filterSearch:h,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:c},Fx(n.title,r))}}return"children"in g&&(g={...g,children:z$(e,t,g.children,r,a,i,l,u,c)}),g})}const A$=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=O$(a);t[r]=e.filter(e=>n.includes(String(e)))}else t[r]=null}),t},L$=(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=O$(a),l=i.findIndex(e=>String(e)===String(o)),s=-1!==l?i[l]:o;return e[n]&&(e[n]=L$(e[n],t,n)),r(s,e)})):e},e);return o},H$=e=>e.flatMap(e=>"children"in e?[e].concat(Ze(H$(e.children||[]))):[e]);var F$=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:i,locale:l,rootClassName:s}=e,c=Te("Table"),d=o.useMemo(()=>H$(r||[]),[r]),[u,p]=o.useState(()=>T$(d,!0)),m=o.useMemo(()=>{const e=T$(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)=>Lx(e,Hx(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=o.useMemo(()=>A$(m),[m]),h=e=>{const t=m.filter(({key:t})=>t!==e.key);t.push(e),p(t),a(A$(t),t)};return[e=>z$(t,n,e,m,l,h,i,void 0,s),m,f]};var j$=(e,t,n)=>{const r=o.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.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),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return r.current.kvMap?.get(o)}]};const W$=10;const V$="ascend",K$="descend",q$=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,U$=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,X$=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:Lx(e,t),multiplePriority:q$(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{const i=Hx(a,n);e.children?("sortOrder"in e&&r(e,i),o=[].concat(Ze(o),Ze(X$(e.children,t,i)))):e.sorter&&("sortOrder"in e?r(e,i):t&&e.defaultSortOrder&&o.push({column:e,key:Lx(e,i),multiplePriority:q$(e),sortOrder:e.defaultSortOrder}))}),o},G$=(e,t,n,r,a,i,l,s,c)=>{const d=(t||[]).map((t,d)=>{const u=Hx(d,s);let p=t;if(p.sorter){const s=p.sortDirections||a,d=void 0===p.showSorterTooltip?l:p.showSorterTooltip,m=Lx(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(V$)&&o.createElement(Ob,{className:_(`${e}-column-sorter-up`,{active:h===V$})}),n=s.includes(K$)&&o.createElement(kb,{className:_(`${e}-column-sorter-down`,{active:h===K$})});v=o.createElement("span",{className:_(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:y,triggerDesc:C}=i||{};let w=b;g===K$?w=C:g===V$&&(w=y);const x="object"==typeof d?{title:w,...d}:{title:w};p={...p,className:_(p.className,{[`${e}-column-sort`]:h}),title:n=>{const r=`${e}-column-sorters`,a=o.createElement("span",{className:`${e}-column-title`},Fx(t.title,n)),i=o.createElement("div",{className:r},a,v);return d?"boolean"!=typeof d&&"sorter-icon"===d?.target?o.createElement("div",{className:_(r,`${r}-tooltip-target-sorter`)},a,o.createElement(wf,{...x},v)):o.createElement(wf,{...x},i):i},onHeaderCell:n=>{const o=t.onHeaderCell?.(n)||{},a=o.onClick,i=o.onKeyDown;o.onClick=e=>{r({column:t,key:m,sortOrder:g,multiplePriority:q$(t)}),a?.(e)},o.onKeyDown=e=>{e.keyCode===ss.ENTER&&(r({column:t,key:m,sortOrder:g,multiplePriority:q$(t)}),i?.(e))};const l=((e,t)=>{const n=Fx(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=l?.toString();return h&&(o["aria-sort"]="ascend"===h?"ascending":"descending"),o["aria-description"]=c?.sortable,o["aria-label"]=s||"",o.className=_(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(l??"").toString()),o}}}return"children"in p&&(p={...p,children:G$(e,p.children,n,r,a,i,l,u,c)}),p});return d},Y$=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Q$=e=>{const t=e.filter(({sortOrder:e})=>e).map(Y$);if(0===t.length&&e.length){const t=e.length-1;return{...Y$(e[t]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},Z$=(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})=>U$(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=U$(r);if(l&&i){const n=l(e,t,i);if(0!==n)return i===V$?n:-n}}return 0}).map(e=>{const o=e[n];return o?{...e,[n]:Z$(o,t,n)}:e}):r};var J$=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:i,onSorterChange:l,globalLocale:s}=e,[c,d]=o.useState(()=>X$(n,!0)),u=(e,t)=>{const n=[];return e.forEach((e,o)=>{const r=Hx(o,t);if(n.push(Lx(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,Ze(t))}}),n},p=o.useMemo(()=>{let e=!0;const t=X$(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=o.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(Ze(p.filter(({key:t})=>t!==e.key)),[e]):[e],d(t),l(Q$(t),t)};return[e=>G$(t,e,p,f,r,a,i,void 0,s),p,m,()=>Q$(p)]};const eS=(e,t)=>{const n=e.map(e=>{const n={...e};return n.title=Fx(e.title,t),"children"in n&&(n.children=eS(n.children,t)),n});return n};var tS=e=>[o.useCallback(t=>eS(t,e),[e])];const nS=Yw((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o});var oS=nS;const rS=ux((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o});var aS=rS;var iS=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:s}=e,c=`${Ht(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:`${Ht(s(o).mul(-1).equal())}\n ${Ht(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:`${Ht(s(i).mul(-1).equal())} ${Ht(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 ${Ht(n)} 0 ${Ht(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}};var lS=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Kr,wordBreak:"keep-all",[`\n &${t}-cell-fix-start-shadow,\n &${t}-cell-fix-end-shadow\n `]:{overflow:"visible",[`${t}-cell-content`]:{...Kr,display:"block"}},[`${t}-column-title`]:{...Kr,wordBreak:"keep-all"}}}}};var sS=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 cS=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,C=`${Ht(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`]:{...Yr(e),position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:Ht(g),background:s,border:C,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:`${Ht(y(u).mul(-1).equal())} ${Ht(y(p).mul(-1).equal())}`,padding:`${Ht(u)} ${Ht(p)}`}}}};var dS=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:C,tableFilterDropdownBg:w,tableFilterDropdownHeight:x,controlItemBgHover:$,controlItemBgActive:S,boxShadowSecondary:E,filterDropdownMenuBg:k,calc:_}=e,N=`${n}-dropdown`,I=`${t}-filter-dropdown`,P=`${n}-tree`,O=`${Ht(c)} ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_(i).mul(-1).equal(),marginInline:`${Ht(i)} ${Ht(_(f).div(2).mul(-1).equal())}`,padding:`0 ${Ht(i)}`,color:p,fontSize:m,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[I]:{...qr(e),minWidth:r,backgroundColor:w,borderRadius:h,boxShadow:E,overflow:"hidden",[`${N}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${Ht(l)} 0`,color:C,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${Ht(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:O,"&-input":{input:{minWidth:a},[o]:{color:C}}},[`${I}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Ht(_(l).sub(c).equal())} ${Ht(l)}`,overflow:"hidden",borderTop:O}}}},{[`${n}-dropdown ${I}, ${I}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function uS({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var pS=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]=uS(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 mS=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Ht(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 fS=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Ht(n)} ${Ht(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 ${Ht(n)} ${Ht(n)}`}}}}};var hS=e=>{const{componentCls:t}=e,[n,o]=uS(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 gS=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:Ht(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 vS=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:`${Ht(r)} ${Ht(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Ht(o(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Ht(o(r).mul(-1).equal())} ${Ht(o(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Ht(o(r).mul(-1).equal()),marginInline:`${Ht(o(n).sub(a).equal())} ${Ht(o(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Ht(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 bS=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 yS=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=`${Ht(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:`${Ht(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 CS=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,a=`${Ht(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 ${Ht(r(n).mul(-1).equal())} 0 ${o}`}}}};var wS=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:a,calc:i}=e,l=`${Ht(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) - ${Ht(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 xS=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=`${Ht(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]:{...qr(e),fontSize:c,background:d,borderRadius:`${Ht(u)} ${Ht(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${Ht(u)} ${Ht(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:`${Ht(o)} ${Ht(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Ht(o)} ${Ht(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:Ht(b(o).mul(-1).equal()),marginInline:`${Ht(b(a).sub(r).equal())}\n ${Ht(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:`${Ht(o)} ${Ht(r)}`,color:g,background:v}}}};var $S=Qr("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:C,footerBg:w,footerColor:x,headerBorderRadius:$,cellFontSize:S,cellFontSizeMD:E,cellFontSizeSM:k,headerSplitColor:_,fixedHeaderSortActiveBg:N,headerFilterHoverBg:I,filterDropdownBg:P,expandIconBg:O,selectionColumnWidth:D,stickyScrollBarBg:R,calc:M}=e,B=Fo(e,{tableFontSize:S,tableBg:o,tableRadius:$,tablePaddingVertical:f,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:C,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:x,tableFooterBg:w,tableHeaderCellSplitColor:_,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:P,tableRowHoverBg:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:p,zIndexTableFixed:2,tableFontSizeMiddle:E,tableFontSizeSmall:k,tableSelectionColumnWidth:D,tableExpandIconBg:O,tableExpandColumnWidth:M(r).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});return[xS(B),mS(B),CS(B),bS(B),dS(B),iS(B),fS(B),cS(B),CS(B),sS(B),gS(B),pS(B),yS(B),lS(B),vS(B),hS(B),wS(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:C,opacityLoading:w,controlInteractiveSize:x}=e,$=new or(r).onBackground(n).toHexString(),S=new or(a).onBackground(n).toHexString(),E=new or(t).onBackground(n).toHexString(),k=new or(y),_=new or(C),N=x/2-b,I=2*N+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:_.clone().setA(_.a*w).toRgbString(),expandIconHalfInner:N,expandIconSize:I,expandIconScale:x/I}},{resetFont:!1,unitless:{expandIconScale:!0}});const SS=[],ES=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,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:C,onChange:w,getPopupContainer:x,loading:$,expandIcon:S,expandable:E,expandedRowRender:k,expandIconColumnIndex:N,indentSize:I,scroll:P,sortDirections:O,locale:D,showSorterTooltip:R={target:"full-header"},virtual:M}=e,B=Te("Table"),T=o.useMemo(()=>b||Iw(y),[b,y]),z=Xm(o.useMemo(()=>T.some(e=>e.responsive),[T])),A=o.useMemo(()=>{const e=new Set(Object.keys(z).filter(e=>z[e]));return T.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[T,z]),L=Ne(e,["className","style","columns"]),{locale:H=hi,table:F}=o.useContext(st),{getPrefixCls:j,direction:W,renderEmpty:V,getPopupContainer:K,className:q,style:U,classNames:X,styles:G}=dt("table"),Y=Ps(d),Q={...e,size:Y,bordered:u},[Z,J]=Di([X,s],[G,c],{props:Q},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),ee={...H.Table,...D},[te]=yi("global",hi.global),ne=m||SS,oe=j("table",n),re=j("dropdown",p),[,ae]=Vr(),ie=qi(oe),[le,se]=$S(oe,ie),ce={childrenColumnName:C,expandIconColumnIndex:N,...E,expandIcon:E?.expandIcon??F?.expandable?.expandIcon},{childrenColumnName:de="children"}=ce,ue=o.useMemo(()=>ne.some(e=>e?.[de])?"nest":k||E?.expandedRowRender?"row":null,[de,ne]),pe={body:o.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=o.useRef(null),he=o.useRef(null);Bi(t,()=>({...he.current,nativeElement:fe.current}));const ge=g||F?.rowKey||"key";"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&B(!("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=o.useMemo(()=>"function"==typeof ge?ge:e=>e?.[ge],[ge]),[be]=j$(ne,de,ve),ye={},Ce=(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)),P&&!1!==P.scrollToFirstRowOnChange&&pe.body.current&&function(e,t={}){const{getContainer:n=()=>window,callback:o,duration:r=450}=t,a=n(),i=Ki(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);Vi(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||"HTMLDocument"===a.constructor.name?a.documentElement.scrollTop=n:a.scrollTop=n,t<r?s=rt(c):"function"==typeof o&&o()};s=rt(c)}(0,{getContainer:()=>pe.body.current}),w?.(o.pagination,o.filters,o.sorter,{currentDataSource:L$(Z$(ne,o.sorterStates,de),o.filterStates,de),action:t})},[we,xe,$e,Se]=J$({prefixCls:oe,mergedColumns:A,onSorterChange:(e,t)=>{Ce({sorter:e,sorterStates:t},"sort",!1)},sortDirections:O||["ascend","descend"],tableLocale:ee,showSorterTooltip:R,globalLocale:te}),Ee=o.useMemo(()=>Z$(ne,xe,de),[de,ne,xe]);ye.sorter=Se(),ye.sorterStates=xe;const[ke,_e,Ie]=F$({prefixCls:oe,locale:ee,dropdownPrefixCls:re,mergedColumns:A,onFilterChange:(e,t)=>{Ce({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||K,rootClassName:_(i,ie)}),Pe=L$(Ee,_e,de);ye.filters=Ie,ye.filterStates=_e;const Oe=o.useMemo(()=>{const e={};return Object.keys(Ie).forEach(t=>{null!==Ie[t]&&(e[t]=Ie[t])}),{...$e,filters:e}},[$e,Ie]),[De]=tS(Oe),[Re,Me]=function(e,t,n){const{total:o=0,...r}=n&&"object"==typeof n?n:{},[i,l]=a(()=>({current:"defaultCurrent"in r?r.defaultCurrent:1,pageSize:"defaultPageSize"in r?r.defaultPageSize:W$})),s=$i(i,r,{total:o>0?o:e}),c=Math.ceil((o||e)/s.pageSize);s.current>c&&(s.current=c||1);const d=(e,t)=>{l({current:e??1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[{...s,onChange:(e,o)=>{n&&n.onChange?.(e,o),d(e,o),t(e,o||s?.pageSize)}},d]}(Pe.length,(e,t)=>{Ce({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}(Re,f),ye.resetPagination=Me;const Be=o.useMemo(()=>{if(!1===f||!Re.pageSize)return Pe;const{current:e=1,total:t,pageSize:n=W$}=Re;return"production"!==process.env.NODE_ENV&&B(e>0,"usage","`current` should be positive number."),Pe.length<t?Pe.length>n?("production"!==process.env.NODE_ENV&&B(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Pe.slice((e-1)*n,e*n)):Pe:Pe.slice((e-1)*n,e*n)},[!!f,Pe,Re?.current,Re?.pageSize,Re?.total]),[ze,Ae]=Ax({prefixCls:oe,data:Pe,pageData:Be,getRowKey:ve,getRecordByKey:be,expandType:ue,childrenColumnName:de,locale:ee,getPopupContainer:x||K},h);ce.__PARENT_RENDER_ICON__=ce.expandIcon,ce.expandIcon=ce.expandIcon||S||function(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:i,expandable:l}=t,s=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(a,e),e.stopPropagation()},className:_(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&i,[`${s}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}(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 I?I:15);const Le=o.useCallback(e=>De(ze(ke(we(e)))),[we,ke,ze]);let He,Fe;if(!1!==f&&Re?.total){let e;e=Re.size?Re.size:"small"===Y||"middle"===Y?"small":void 0;const t=(t="end")=>o.createElement(CC,{...Re,classNames:Z.pagination,styles:J.pagination,className:_(`${oe}-pagination ${oe}-pagination-${t}`,Re.className),size:e}),{placement:n,position:r}=Re,a=n??r,i=e=>{const t=e.toLowerCase();return t.includes("center")?"center":t.includes("left")||t.includes("start")?"start":"end"};if(Array.isArray(a)){const[e,n]=["top","bottom"].map(e=>a.find(t=>t.includes(e))),o=a.every(e=>"none"==`${e}`);e||n||o||(Fe=t()),e&&(He=t(i(e))),n&&(Fe=t(i(n)))}else Fe=t();"production"!==process.env.NODE_ENV&&B.deprecated(!r,"pagination.position","pagination.placement")}const je=o.useMemo(()=>"boolean"==typeof $?{spinning:$}:"object"==typeof $&&null!==$?{spinning:!0,...$}:void 0,[$]),We=_(se,ie,`${oe}-wrapper`,q,{[`${oe}-wrapper-rtl`]:"rtl"===W},r,i,Z.root,le),Ve={...J.root,...U,...l},Ke=o.useMemo(()=>je?.spinning&&ne===SS?null:void 0!==D?.emptyText?D.emptyText:V?.("Table")||o.createElement(mm,{componentName:"Table"}),[je?.spinning,ne,D?.emptyText,V]),qe=M?aS:oS,Ue={},Xe=o.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 M&&(Ue.listItemHeight=Xe),o.createElement("div",{ref:fe,className:We,style:Ve},o.createElement(DC,{spinning:!1,...je},He,o.createElement(qe,{...Ue,...L,classNames:Z,styles:J,ref:he,columns:A,direction:W,expandable:ce,prefixCls:oe,className:_({[`${oe}-middle`]:"middle"===Y,[`${oe}-small`]:"small"===Y,[`${oe}-bordered`]:u,[`${oe}-empty`]:0===ne.length},se,ie,le),data:Be,rowKey:ve,rowClassName:(e,t,n)=>{const o="function"==typeof v?v(e,t,n):v;return _({[`${oe}-row-selected`]:Ae.has(ve(e,t))},o)},emptyText:Ke,internalHooks:MC,internalRefs:pe,transformColumns:Le,getContainerWidth:me,measureRowRender:e=>o.createElement(k$.Provider,{value:!0},o.createElement(ls,{getPopupContainer:e=>e},e))}),Fe))};var kS=o.forwardRef(ES);const _S=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(kS,{...e,ref:t,_renderTimes:n.current})},NS=o.forwardRef(_S);NS.SELECTION_COLUMN=Dx,NS.EXPAND_COLUMN=RC,NS.SELECTION_ALL=Rx,NS.SELECTION_INVERT=Mx,NS.SELECTION_NONE=Bx,NS.Column=px,NS.ColumnGroup=mx,NS.Summary=aw,"production"!==process.env.NODE_ENV&&(NS.displayName="Table");var IS=NS,PS={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"};const OS=({items:n=[],separator:o="/",className:r="",...a})=>{const i=n.map(n=>({...n,title:t("span",{className:PS.itemContent,children:[n.icon&&e(O,{name:n.icon,size:14,className:PS.itemIcon}),e("span",{className:PS.itemTitle,children:n.title})]})}));return e("div",{className:`${PS.breadcrumbContainer} ${r}`,children:e(Qg,{items:i,separator:e("span",{className:PS.separator,children:o}),className:PS.antBreadcrumb,...a})})};var DS={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"},RS={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"},MS={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 BS=({checked:n=!1,indeterminate:o=!1,disabled:r=!1,state:a="default",size:i="medium",label:l="",onChange:s,className:c="",id:d,name:u,value:p,...m})=>{const f=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"focus"===t?"focus":"pressed"===t?"pressed":"default"})(a),h="number"==typeof i,g=h?"custom":i.toLowerCase(),v=r||"disabled"===a,b=[MS.checkboxContainer,c].filter(Boolean).join(" "),y=[MS.checkbox,MS[`size_${g}`],n&&MS.checkboxChecked,!n&&o&&MS.checkboxIndeterminateState,v&&MS.checkboxDisabled,!v&&MS[`state_${f}`]].filter(Boolean).join(" "),C=d||`checkbox-${Math.random().toString(36).substr(2,9)}`;return t("div",{className:b,children:[t("div",{className:MS.checkboxWrapper,children:[e("input",{type:"checkbox",id:C,name:u,value:p,checked:n,disabled:v,onChange:e=>{!v&&s&&s(e)},className:MS.checkboxInput,"aria-checked":o?"mixed":n,"aria-disabled":v,...m}),t("label",{htmlFor:C,className:y,style:h?{width:`${i}px`,height:`${i}px`}:{},children:[n&&e("div",{className:MS.checkboxCheck,children:e("div",{className:MS.checkIconWrapper,children:e("div",{className:MS.checkIconInner,children:e(O,{name:"Check",size:12,className:MS.checkIcon})})})}),!n&&o&&e("div",{className:MS.checkboxIndeterminate,children:e("div",{className:MS.indeterminateBar})})]})]}),l&&e("label",{htmlFor:C,className:MS.label,children:l})]})};var TS={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 zS=({checked:n=!1,disabled:o=!1,state:r="default",size:a="medium",label:i="",name:l,value:s,onChange:c,className:d="",id: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=[TS.radioContainer,d].filter(Boolean).join(" "),b=[TS.radio,TS[`size_${h}`],n&&TS.radioChecked,g&&TS.radioDisabled,!g&&TS[`state_${m}`]].filter(Boolean).join(" "),y=u||`radio-${Math.random().toString(36).substr(2,9)}`;return t("div",{className:v,children:[t("div",{className:TS.radioWrapper,children:[e("input",{type:"radio",id:y,name:l,value:s,checked:n,disabled:g,onChange:e=>{!g&&c&&c(e)},className:TS.radioInput,"aria-checked":n,"aria-disabled":g,...p}),e("label",{htmlFor:y,className:b,style:f?{width:`${a}px`,height:`${a}px`}:{},children:n&&e("div",{className:TS.radioDot})})]}),i&&e("label",{htmlFor:y,className:TS.label,children:i})]})},AS=({showLeftIcon:n=!0,hasCheckbox:o=!1,hasRadio:r=!1,checked:a=!1,chooseLeftIcon:i=null,label:l="Item",showBody:s=!1,body:c="Body",showInfo:d=!1,showRightIcon:u=!1,chooseRightIcon:p=null,type:m="Default",onClick:f,className:h="",...g})=>{const v=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"disabled"===t?"disabled":"selected"===t?"selected":"danger"===t?"danger":"default"})(m),b="disabled"===v,y=b?"div":"button",C=[RS.itemRow,RS[`type_${v}`],h].filter(Boolean).join(" "),w=a||"selected"===v;return t(y,{className:C,onClick:f,disabled:b,type:"button"===y?"button":void 0,...g,children:[d&&e("div",{className:RS.infoIcon,children:e(O,{name:"Info",size:14,className:RS.infoIconImg})}),t("div",{className:RS.content,children:[n&&e("div",{className:RS.iconWrapper,children:i||e(O,{name:"File",size:14,className:RS.fileIconImg})}),t("div",{className:RS.text,children:[e("p",{className:RS.label,children:l}),s&&e("p",{className:RS.body,children:c})]}),u&&e("div",{className:RS.iconWrapper,children:p||e(O,{name:"Star",size:14,className:RS.starIconImg})})]}),o&&e("div",{className:RS.checkboxField,children:e(BS,{checked:w,disabled:b,size:16,readOnly:!f})}),r&&e("div",{className:RS.radioField,children:e(zS,{checked:w,disabled:b,size:16,readOnly:!f})})]})},LS=({variant:n="single",chips:o=[],categories:r=[],onChipRemove:i,onCategoryToggle:l,onItemClick:s,onCancel:c,onApply:u,cancelLabel:m="Cancel",applyLabel:f="Apply",className:h="",...g})=>{const[v,b]=a(""),[y,C]=a(r.reduce((e,t,n)=>(e[n]=void 0===t.expanded||t.expanded,e),{})),w=d(()=>{if(!v)return r;const e=v.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,v]);p(()=>{if(v){const e=w.reduce((e,t,n)=>(e[n]=!0,e),{});C(e)}},[v,w.length]);const x=(o,r)=>{const a=!!v||!1!==y[r];return t("div",{className:DS.categoryList,children:[t("button",{type:"button",className:DS.categoryTitle,onClick:()=>{return e=r,C(t=>({...t,[e]:!t[e]})),void(l&&l(e,!y[e]));var e},children:[e("p",{className:DS.categoryTitleText,children:o.title||"Category"}),e("div",{className:DS.chevronIcon,children:e(O,{name:"CaretDown",size:14,className:`${DS.chevronImg} ${a?DS.chevronUp:""}`})})]}),a&&e("div",{className:DS.categoryItems,children:(o.items||[]).map((t,o)=>e("div",{className:DS.categoryItemWrapper,children:e(AS,{label:t.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===n,hasRadio:"multiple"!==n,checked:t.checked||!1,type:t.type||"default",onClick:()=>{s&&s(t,r)}})},t.id||o))})]},r)},$=[DS.container,DS[`variant_${n}`],h].filter(Boolean).join(" ");return t("div",{className:$,...g,children:[t("div",{className:DS.searchSection,children:[t("div",{className:DS.searchInput,children:[e("div",{className:DS.searchIcon,children:e(O,{name:"MagnifyingGlass",size:16,className:DS.searchIconImage})}),e("input",{type:"text",className:DS.realSearchInput,placeholder:"Search",value:v,onChange:e=>{b(e.target.value)}})]}),(()=>{if(!o||0===o.length)return null;const n=o.slice(0,5),r=o.length-5;let a=null;return r>0&&(a={isMore:!0,label:`+${r}`}),t("div",{className:DS.chipListContainer,children:[n.map((n,o)=>t("div",{className:DS.chip,children:[e("p",{className:DS.chipLabel,children:n.label||"Label"}),e("button",{type:"button",className:DS.chipRemove,onClick:e=>{e.stopPropagation(),i&&i(n)},"aria-label":"Remove chip",children:e(O,{name:"X",size:14,className:DS.chipIcon})})]},o)),a&&e("div",{className:DS.chip,children:e("p",{className:DS.chipLabel,children:a.label})})]})})()]}),e("div",{className:DS.listsContainer,children:w.map((e,t)=>x(e,t))}),t("div",{className:DS.actionsContainer,children:[e("button",{type:"button",className:DS.cancelButton,onClick:c,children:e("p",{className:DS.cancelButtonText,children:m})}),e("button",{type:"button",className:DS.applyButton,onClick:u,children:e("p",{className:DS.applyButtonText,children:f})})]})]})};var HS={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"},FS={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 jS=({checked: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=a.toLowerCase(),h=o||"disabled"===r,g=[FS.toggleContainer,s].filter(Boolean).join(" "),v=[FS.toggle,FS[`size_${f}`],n&&FS.toggleChecked,h&&FS.toggleDisabled,!h&&FS[`state_${m}`]].filter(Boolean).join(" "),b=c||`toggle-${Math.random().toString(36).substr(2,9)}`;return t("div",{className:g,children:[t("div",{className:FS.toggleWrapper,children:[e("input",{type:"checkbox",id:b,name:d,value:u,checked:n,disabled:h,onChange:e=>{!h&&l&&l(e)},className:FS.toggleInput,"aria-checked":n,"aria-disabled":h,role:"switch",...p}),e("label",{htmlFor:b,className:v,children:e("span",{className:FS.toggleThumb})})]}),i&&e("label",{htmlFor:b,className:FS.label,children:i})]})},WS=({variant:n="default",label:o="",icon:r=null,badge:a=null,avatar:i=null,status:l=null,checked:s=!1,onChange:c,count:d=null,actions:u=[],className:p="",...m})=>e("div",{className:`${HS.cell} ${HS[`variant_${n}`]} ${p}`,...m,children:(()=>{switch(n){case"avatar":return t("div",{className:HS.avatarContent,children:[i?e("img",{src:i,alt:o,className:HS.avatar}):e("div",{className:HS.avatarPlaceholder,children:e(O,{name:"User",size:16})}),e("span",{className:HS.label,children:o})]});case"status":return t("div",{className:HS.statusContent,children:[e("div",{className:`${HS.statusDot} ${HS[`status_${l?.toLowerCase()}`]}`}),e("span",{className:HS.label,children:o}),a&&e("span",{className:HS.badge,children:a})]});case"social":return t("div",{className:HS.socialContent,children:[r&&e(O,{name:r,size:16,className:HS.socialIcon}),e("span",{className:HS.label,children:o})]});case"actions":return e("div",{className:HS.actionsContent,children:u.map((t,n)=>e("button",{className:HS.actionButton,onClick:t.onClick,title:t.label,type:"button",children:e(O,{name:t.icon,size:14})},n))});case"checkbox":return t("div",{className:HS.checkboxContent,children:[e(BS,{checked:s,onChange:c,size:"small"}),e("span",{className:HS.label,children:o})]});case"toggle":return e("div",{className:HS.toggleContent,children:e(jS,{checked:s,onChange:c,size:"small"})});case"userCount":return e("div",{className:HS.userCountContent,children:t("div",{className:HS.userIconWrapper,children:[e(O,{name:"User",size:14}),e("span",{className:HS.count,children:d})]})});default:return t("div",{className:HS.defaultContent,children:[r&&e(O,{name:r,size:16,className:HS.leadingIcon}),e("span",{className:HS.label,children:o}),a&&e("span",{className:HS.badge,children:a}),e(O,{name:"Globe",size:14,className:HS.trailingIcon})]})}})()});var VS="CellHeader-module_cellHeader__9mlaW",KS="CellHeader-module_sortable__bpx5y",qS="CellHeader-module_content__6-yV0",US="CellHeader-module_checkboxWrapper__ah1PJ",XS="CellHeader-module_sortIcon__6rgJk",GS="CellHeader-module_label__nRBcj";const YS=({label:n="",sortable:o=!1,sortOrder:r=null,hasCheckbox:a=!1,checked:i=!1,onSort:l,onCheckboxChange:s,className:c="",...d})=>e("div",{className:`${VS} ${o?KS:""} ${c}`,onClick:o?l:void 0,...d,children:t("div",{className:qS,children:[a&&e("div",{className:US,onClick:e=>e.stopPropagation(),children:e(BS,{checked:i,onChange:s,size:"small"})}),o&&e("div",{className:XS,"aria-label":`Sort ${r||"none"}`,children:e(O,{name:"asc"===r?"SortAscending":"desc"===r?"SortDescending":"CaretUpDown",size:14})}),e("span",{className:GS,children:n})]})}),QS=({children:n,variant:o="default",padding:r="md",hover:a=!1,clickable:i=!1,header:l,footer:s,onClick:c,className:d,style:u,animate:p=!0,animationDuration:m=300,animationDelay:f=0,animationEasing:h="ease-in-out",...g})=>{const v=_("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"}[o],{xs:"p-2",sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"}[r],a&&"hover:shadow-md hover:-translate-y-0.5",i&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",p&&"animate-fade-in",d),b={...u,...p&&{animationDuration:`${m}ms`,animationDelay:`${f}ms`,animationTimingFunction:h}};return t("div",{className:v,style:b,onClick:e=>{i&&c&&c(e)},...g,children:[l&&e("div",{className:"mb-4 pb-4 border-b border-gray-200",children:l}),e("div",{className:"flex-1",children:n}),s&&e("div",{className:"mt-4 pt-4 border-t border-gray-200",children:s})]})};var ZS={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 JS=({label:n="Label",showRightIcon:o=!0,showLeftIcon:r=!0,chooseLeftIcon:a=null,chooseRightIcon:i=null,state:l="default",size:s="medium",onRemove:c,onClick:d,className:u="",...p})=>{const m=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"default"})(l),f=(s||"medium").toLowerCase(),h="small"===f?12:14,g=[ZS.chip,ZS[`size_${f}`],ZS[`state_${m}`],u].filter(Boolean).join(" ");return t(d?"button":"div",{className:g,onClick:d,type:d?"button":void 0,...p,children:[r?a||e("div",{className:ZS.iconWrapper,children:e(O,{name:"x",size:h,className:ZS.icon,variant:"active"===m?"white":"default"})}):null,e("span",{className:ZS.label,children:n}),o?i||e("div",{className:ZS.iconWrapper,children:e(O,{name:"x",size:h,className:ZS.icon,variant:"active"===m?"white":"default",onClick:e=>{e.stopPropagation(),c&&c()}})}):null]})};var eE={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-"};const tE=({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=[eE.container,eE[`layout_${l}`],r].filter(Boolean).join(" ");return e("div",{className:c,...a,children:s.map((t,n)=>e("div",{className:eE.row,children:t.map(t=>e(JS,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{o&&o(t)}},t.id||t.label))},n))})};var nE={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"};const oE=({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:f="Value",chips:h=[],onChange:g,onFocus:v,onBlur:b,onClick:y,onOutsideClick:C,disabled:w,className:x="",children:$,...S})=>{const E=m(null);p(()=>{if(!C)return;const e=e=>{E.current&&!E.current.contains(e.target)&&C()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[C]);const k=(u||"medium").toLowerCase(),_=w?"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),N=[nE.container,nE[`type_${k}`],x].filter(Boolean).join(" "),I=[nE.dropdownWrapper,nE[`dropdownWrapper_type_${k}`],nE[`dropdownWrapper_state_${_}`],nE[`dropdownWrapper_type_${k}_state_${_}`]].filter(Boolean).join(" "),P=w||"disabled"===_,D=t("div",{className:nE.fieldWrapper,children:[e("button",{type:"button",className:I,onClick:y||v,disabled:P,"aria-disabled":P,...S,children:t("div",{className:nE.dropdownInner,children:[c&&0!==h.length?e("div",{className:nE.chipList,children:h.map((n,o)=>t("div",{className:nE.chip,children:[e("span",{className:nE.chipLabel,children:n.label||"Label"}),n.onRemove&&e("button",{type:"button",className:nE.chipRemove,onClick:e=>{e.stopPropagation(),n.onRemove&&n.onRemove()},"aria-label":"Remove chip",children:e(O,{name:"x",size:10,className:nE.chipIcon})})]},o))}):null,e("span",n?{className:nE.value,children:n}:{className:nE.placeholder,children:f}),e("div",{className:nE.chevronWrapper,children:e(O,{name:$?"caret-up":"caret-down",size:12,className:nE.chevronIcon})})]})}),$]});return t("div",{className:N,ref:E,children:[i&&r&&e("p",{className:nE.label,children:r}),l&&o&&e("p",{className:nE.description,children:o}),D,s&&a&&e("p",{className:nE.error,children:a})]})};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:i=[],onClearAll:l,onChipRemove:s,onItemClick:c,className:d="",...u})=>{const[p,m]=a(o),[f,h]=a(""),g=[rE.dropdownNestedColumn,d].filter(Boolean).join(" "),v=t("div",{className:rE.titleAndCta,children:[e("p",{className:rE.titleText,children:n}),e("button",{className:rE.clearAllButton,onClick:e=>{e.stopPropagation(),l&&l()},type:"button",children:e("p",{className:rE.clearAllText,children:"Clear all"})})]}),b=i.filter(e=>e.label.toLowerCase().includes(f.toLowerCase()));return t("div",{className:g,...u,children:[t("div",{className:rE.titleFrame,children:[v,e("button",{className:rE.chevronButton,onClick:()=>{m(!p)},type:"button",children:e("div",{className:rE.chevronContainer,children:e("div",{className:rE.chevronIcon,style:{transform:p?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:e(O,{name:"caret-up",size:16})})})})]}),p&&e("div",{className:rE.dropdownWithSearch,children:t("div",{className:rE.dropdownContent,children:[e("div",{className:rE.chipListSection,children:r.length>0?t("div",{className:rE.chipGrid,children:[r.slice(0,5).map(t=>e(JS,{label:t.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{s&&s(t)}},t.id||t.label)),r.length>5&&e(JS,{label:"+"+(r.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:rE.moreChipsChip})]}):e("div",{className:rE.noChips,children:"No items selected"})}),e("div",{className:rE.searchInputSection,children:t("div",{className:rE.searchInput,children:[e(O,{name:"magnifying-glass",size:16,className:rE.searchIcon}),e("input",{type:"text",className:rE.searchField,placeholder:"Search",value:f,onChange:e=>h(e.target.value)})]})}),e("div",{className:rE.itemsList,children:e("div",{className:rE.itemsContainer,children:b.length>0?b.map((t,n)=>e(AS,{label:t.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:t.checked||!1,type:t.type||"Default",onClick:()=>{c&&c(t)}},t.id||n)):e("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"};const lE=({leftColumn:n={title:"Select a Member",chips:[],items:[]},rightColumn:o={title:"Select a Group",chips:[],items:[]},onLeftClearAll:r,onRightClearAll:a,onLeftChipRemove:i,onRightChipRemove:l,onLeftItemClick:s,onRightItemClick:c,onCancel:d,onApply:u,className:p="",...m})=>{const f=n.chips,h=o.chips,g=n.items,v=o.items,b=[iE.dropdownNested,p].filter(Boolean).join(" ");return t("div",{className:b,...m,children:[t("div",{className:iE.columns,children:[e("div",{className:iE.column,children:e(aE,{title:n.title,expanded:!0,chips:f,items:g,onClearAll:r,onChipRemove:i,onItemClick:s})}),e("div",{className:iE.column,children:e(aE,{title:o.title,expanded:!0,chips:h,items:v,onClearAll:a,onChipRemove:l,onItemClick:c})})]}),t("div",{className:iE.ctas,children:[e(T,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:d,className:iE.cancelButton}),e(M,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:u,className:iE.applyButton})]})]})};var sE={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"};const cE=({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=[sE.iconButton,sE[`style_${n}`],sE[`state_${d}`],sE[`size_${r}`],s].filter(Boolean).join(" ");return e("button",{className:p,onClick:a,disabled:u,"aria-disabled":u,...c,children:t?"string"==typeof t?e(O,{name:t,className:sE.icon,size:14}):t:e(O,"loading"===d?{name:"spinner",className:sE.loaderIcon,size:16}:{name:"star",className:sE.icon,size:14})})};var dE={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"};const uE=({isOpen:n,onClose:o,title:r,description:a,icon:i,children:l,actions:s,size:c="medium",showCloseButton:d=!0,className:u="",...m})=>{if(p(()=>(document.body.style.overflow=n?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[n]),!n)return null;return e("div",{className:dE.overlay,onClick:e=>{e.target===e.currentTarget&&o&&o()},children:t("div",{className:`${dE.modal} ${dE[c]} ${u}`,role:"dialog","aria-modal":"true",...m,children:[d&&e("button",{className:dE.closeButton,onClick:o,"aria-label":"Close modal",children:e(O,{name:"X"})}),t("div",{className:dE.content,children:[i&&e("div",{className:dE.iconWrapper,children:i}),l||t("div",{className:dE.textStack,children:[r&&e("h2",{className:dE.title,children:r}),a&&e("p",{className:dE.description,children:a})]}),s&&e("div",{className:dE.actions,children:s})]})]})})};var pE={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 mE=({count:o=0,variant:r="primary",size:a="medium",maxCount:i=99,className:l="",...s})=>{const c=[pE.notification,pE[`variant_${r}`],pE[`size_${a}`],l].filter(Boolean).join(" ");return e("span",{className:c,...s,children:(()=>{if("number"==typeof o&&o>i)return t(n,{children:[e("span",{className:pE.count,children:i}),e("span",{className:pE.plus,children:"+"})]});if("string"==typeof o&&o.endsWith("+")){const r=o.slice(0,-1);return t(n,{children:[e("span",{className:pE.count,children:r}),e("span",{className:pE.plus,children:"+"})]})}return o})()})};var fE={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};const hE=n=>e(ls,{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("div",{className:`${fE.paginationWrapper} ${n.className||""}`,children:e(CC,{itemRender:(o,r,a)=>"prev"===r?t("div",{className:`${fE.navButtonCustom} ${n.disabled?fE.disabled:""}`,children:[e("div",{className:fE.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),e("span",{className:fE.navText,children:"Previous"})]}):"next"===r?t("div",{className:`${fE.navButtonCustom} ${n.disabled?fE.disabled:""}`,children:[e("span",{className:fE.navText,children:"Next"}),e("div",{className:fE.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):a,...n})})});var gE={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"};const vE=({value:n="",error:o="",hasError:r=!1,state:i="default",placeholder:l="Search",onChange:s,onFocus:c,onBlur:d,disabled:u,className:p="",title:m="",...f})=>{const[h,g]=a(!1),[v,b]=a(!1),y=(()=>{if(u)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})(i);return e||(r?"error":v?n?"typing":"focused":h?n?"filledHover":"hover":n?"filled":"default")})(),C=[gE.container,p].filter(Boolean).join(" "),w=[gE.input,gE[`input_state_${y}`]].filter(Boolean).join(" "),x=[gE.inputInner,gE[`inputInner_state_${y}`]].filter(Boolean).join(" "),$=u||"disabled"===y;return t("div",{className:C,title:m,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[e("div",{className:w,children:t("div",{className:x,children:[e("div",{className:gE.searchIcon,children:e(O,{name:"magnifying-glass",className:gE.searchIconImage,size:16})}),e("input",{type:"search",className:gE.realInput,value:n,placeholder:l,onChange:s,onFocus:e=>{b(!0),c?.(e)},onBlur:e=>{b(!1),d?.(e)},disabled:$,...f}),("focused"===y||"typing"===y)&&!n&&e("span",{className:gE.cursor,children:"|"})]})}),r&&o&&e("p",{className:gE.error,children:o})]})};var bE={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"};const yE=({label:n="Status",state:o="default",size:r="medium",color:a="green",onClick:i,className:l="",...s})=>{const c=(e=>{if(!e)return"default";const t=e.toLowerCase();return"hover"===t?"hover":"pressed"===t?"pressed":"active"===t?"active":"disabled"===t?"disabled":"default"})(o),d=(e=>{if(!e)return"green";const t=e.toLowerCase();return"red"===t?"red":"yellow"===t?"yellow":"blue"===t?"blue":"green"})(a),u=r.toLowerCase(),p=[bE.statusIndicator,bE[`size_${u}`],bE[`state_${c}`],bE[`color_${d}`],l].filter(Boolean).join(" ");return t(i?"button":"div",{className:p,onClick:i,disabled:"disabled"===c,type:i?"button":void 0,...s,children:[(()=>{const t=(()=>{switch(d){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("div",{className:bE.indicator,style:{backgroundColor:t}})})(),e("span",{className:bE.label,children:n})]})};var CE={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 wE=({label:n,count:o,isActive:r=!1,disabled:a=!1,onClick:i,className:l="",...s})=>{const c=[CE.tab,r&&CE.active,a&&CE.disabled,l].filter(Boolean).join(" ");return t("button",{className:c,onClick:e=>{!a&&i&&i(e)},disabled:a,type:"button",role:"tab","aria-selected":r,...s,children:[e("span",{className:CE.label,children:n}),null!=o&&e(mE,{count:o,variant:a?"subtle":r?"primary":"neutral",size:"small",className:CE.notification}),r&&e("div",{className:CE.underline})]})};var xE={tabList:"TabList-module_tabList__sSh3n"};const $E=({items:t,activeKey:n,onChange:o,className:r=""})=>{const a=[xE.tabList,r].filter(Boolean).join(" ");return e("div",{className:a,role:"tablist",children:t.map(t=>e(wE,{label:t.label,count:t.count,disabled:t.disabled,isActive:n===t.key,onClick:()=>!t.disabled&&o?.(t.key)},t.key))})};const SE="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function EE(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function kE(e){return"nodeType"in e}function _E(e){var t,n;return e?EE(e)?e:kE(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function NE(e){const{Document:t}=_E(e);return e instanceof t}function IE(e){return!EE(e)&&e instanceof _E(e).HTMLElement}function PE(e){return e instanceof _E(e).SVGElement}function OE(e){return e?EE(e)?e.document:kE(e)?NE(e)?e:IE(e)||PE(e)?e.ownerDocument:document:document:document}const DE=SE?f:p;function RE(e){const t=m(e);return DE(()=>{t.current=e}),h(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)},[])}function ME(e,t){void 0===t&&(t=[e]);const n=m(e);return DE(()=>{n.current!==e&&(n.current=e)},t),n}function BE(e,t){const n=m();return d(()=>{const t=e(n.current);return n.current=t,t},[...t])}function TE(e){const t=RE(e),n=m(null),o=h(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,o]}function zE(e){const t=m();return p(()=>{t.current=e},[e]),t.current}let AE={};function LE(e,t){return d(()=>{if(t)return t;const n=null==AE[e]?0:AE[e]+1;return AE[e]=n,e+"-"+n},[e,t])}function HE(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 FE=HE(1),jE=HE(-1);function WE(e){if(!e)return!1;const{KeyboardEvent:t}=_E(e.target);return t&&e instanceof t}function VE(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=_E(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 KE=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[KE.Translate.toString(e),KE.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),qE="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function UE(e){return e.matches(qE)?e:e.querySelector(qE)}const XE={display:"none"};function GE(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:XE},n)}function YE(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.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 QE=u(null);const ZE={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 "},JE={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 ek(e){let{announcements:t=JE,container:n,hiddenTextDescribedById:o,screenReaderInstructions:i=ZE}=e;const{announce:l,announcement:s}=function(){const[e,t]=a("");return{announce:h(e=>{null!=e&&t(e)},[]),announcement:e}}(),u=LE("DndLiveRegion"),[m,f]=a(!1);if(p(()=>{f(!0)},[]),function(e){const t=c(QE);p(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}(d(()=>({onDragStart(e){let{active:n}=e;l(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:o}=e;t.onDragMove&&l(t.onDragMove({active:n,over:o}))},onDragOver(e){let{active:n,over:o}=e;l(t.onDragOver({active:n,over:o}))},onDragEnd(e){let{active:n,over:o}=e;l(t.onDragEnd({active:n,over:o}))},onDragCancel(e){let{active:n,over:o}=e;l(t.onDragCancel({active:n,over:o}))}}),[l,t])),!m)return null;const g=r.createElement(r.Fragment,null,r.createElement(GE,{id:o,value:i.draggable}),r.createElement(YE,{id:u,announcement:s}));return n?x(g,n):g}var tk;function nk(){}function ok(e,t){return d(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}!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"}(tk||(tk={}));const rk=Object.freeze({x:0,y:0});function ak(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ik(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function lk(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function sk(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 ck(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function dk(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 uk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=dk(t,t.left,t.top),a=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=ak(dk(o),r);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(ik)};function pk(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 mk=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=pk(a,t);n>0&&r.push({id:o,data:{droppableContainer:e,value:n}})}}return r.sort(lk)};function fk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:rk}function hk(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 gk=hk(1);const vk={ignoreTransform:!1};function bk(e,t){void 0===t&&(t=vk);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=_E(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 yk(e){return bk(e,{ignoreTransform:!0})}function Ck(e,t){const n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(NE(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!IE(r)||PE(r))return n;if(n.includes(r))return n;const a=_E(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=_E(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=_E(e).getComputedStyle(e)),"fixed"===t.position}(r,a)?n:o(r.parentNode)}(e):n}function wk(e){const[t]=Ck(e,1);return null!=t?t:null}function xk(e){return SE&&e?EE(e)?e:kE(e)?NE(e)||e===OE(e).scrollingElement?window:IE(e)?e:null:null:null}function $k(e){return EE(e)?e.scrollX:e.scrollLeft}function Sk(e){return EE(e)?e.scrollY:e.scrollTop}function Ek(e){return{x:$k(e),y:Sk(e)}}var kk;function _k(e){return!(!SE||!e)&&e===document.scrollingElement}function Nk(e){const t={x:0,y:0},n=_k(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"}(kk||(kk={}));const Ik={x:.2,y:.2};function Pk(e,t,n,o,r){let{top:a,left:i,right:l,bottom:s}=n;void 0===o&&(o=10),void 0===r&&(r=Ik);const{isTop:c,isBottom:d,isLeft:u,isRight:p}=Nk(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=kk.Backward,f.y=o*Math.abs((t.top+h-a)/h)):!d&&s>=t.bottom-h&&(m.y=kk.Forward,f.y=o*Math.abs((t.bottom-h-s)/h)),!p&&l>=t.right-g?(m.x=kk.Forward,f.x=o*Math.abs((t.right-g-l)/g)):!u&&i<=t.left+g&&(m.x=kk.Backward,f.x=o*Math.abs((t.left+g-i)/g)),{direction:m,speed:f}}function Ok(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 Dk(e){return e.reduce((e,t)=>FE(e,Ek(t)),rk)}const Rk=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+$k(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Sk(t),0)}]];class Mk{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=Ck(t),o=Dk(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of Rk)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 Bk{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 Tk(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 zk,Ak;function Lk(e){e.preventDefault()}function Hk(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"}(zk||(zk={})),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"}(Ak||(Ak={}));const Fk={start:[Ak.Space,Ak.Enter],cancel:[Ak.Esc],end:[Ak.Space,Ak.Enter,Ak.Tab]},jk=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ak.Right:return{...n,x:n.x+25};case Ak.Left:return{...n,x:n.x-25};case Ak.Down:return{...n,y:n.y+25};case Ak.Up:return{...n,y:n.y-25}}};class Wk{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 Bk(OE(t)),this.windowListeners=new Bk(_E(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(zk.Resize,this.handleCancel),this.windowListeners.add(zk.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(zk.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=bk),!e)return;const{top:n,left:o,bottom:r,right:a}=t(e);wk(e)&&(r<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(rk)}handleKeyDown(e){if(WE(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:r=Fk,coordinateGetter:a=jk,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}:rk;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=jE(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}=Nk(n),m=Ok(n),f={x:Math.min(r===Ak.Right?m.right-m.width/2:m.right,Math.max(r===Ak.Right?m.left:m.left+m.width/2,d.x)),y:Math.min(r===Ak.Down?m.bottom-m.height/2:m.bottom,Math.max(r===Ak.Down?m.top:m.top+m.height/2,d.y))},h=r===Ak.Right&&!l||r===Ak.Left&&!s,g=r===Ak.Down&&!c||r===Ak.Up&&!a;if(h&&f.x!==d.x){const e=n.scrollLeft+t.x,a=r===Ak.Right&&e<=u.x||r===Ak.Left&&e>=p.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:i});o.x=a?n.scrollLeft-e:r===Ak.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===Ak.Down&&e<=u.y||r===Ak.Up&&e>=p.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:i});o.y=a?n.scrollTop-e:r===Ak.Down?n.scrollTop-u.y:n.scrollTop-p.y,o.y&&n.scrollBy({top:-o.y,behavior:i});break}}this.handleMove(e,FE(jE(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 Vk(e){return Boolean(e&&"distance"in e)}function Kk(e){return Boolean(e&&"delay"in e)}Wk.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Fk,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 qk{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=_E(e);return e instanceof t?e:OE(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=OE(a),this.documentListeners=new Bk(this.document),this.listeners=new Bk(n),this.windowListeners=new Bk(_E(a)),this.initialCoordinates=null!=(o=VE(r))?o:rk,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(zk.Resize,this.handleCancel),this.windowListeners.add(zk.DragStart,Lk),this.windowListeners.add(zk.VisibilityChange,this.handleCancel),this.windowListeners.add(zk.ContextMenu,Lk),this.documentListeners.add(zk.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Kk(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Vk(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(zk.Click,Hk,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zk.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=VE(e))?t:rk,s=jE(o,l);if(!n&&i){if(Vk(i)){if(null!=i.tolerance&&Tk(s,i.tolerance))return this.handleCancel();if(Tk(s,i.distance))return this.handleStart()}return Kk(i)&&Tk(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===Ak.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Uk={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Xk extends qk{constructor(e){const{event:t}=e,n=OE(t.target);super(e,Uk,n)}}Xk.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 Gk={move:{name:"mousemove"},end:{name:"mouseup"}};var Yk;!function(e){e[e.RightClick=2]="RightClick"}(Yk||(Yk={}));(class extends qk{constructor(e){super(e,Gk,OE(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==Yk.RightClick&&(null==o||o({event:n}),!0)}}];const Qk={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Zk,Jk;function e_(e){let{acceleration:t,activator:n=Zk.Pointer,canScroll:o,draggingRect:r,enabled:a,interval:i=5,order:l=Jk.TreeOrder,pointerCoordinates:s,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:g}=e;const v=function(e){let{delta:t,disabled:n}=e;const o=zE(t);return BE(e=>{if(n||!o||!e)return t_;const r={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[kk.Backward]:e.x[kk.Backward]||-1===r.x,[kk.Forward]:e.x[kk.Forward]||1===r.x},y:{[kk.Backward]:e.y[kk.Backward]||-1===r.y,[kk.Forward]:e.y[kk.Forward]||1===r.y}}},[n,t,o])}({delta:f,disabled:!a}),[b,y]=function(){const e=m(null);return[h((t,n)=>{e.current=setInterval(t,n)},[]),h(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),C=m({x:0,y:0}),w=m({x:0,y:0}),x=d(()=>{switch(n){case Zk.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Zk.DraggableRect:return r}},[n,r,s]),$=m(null),S=h(()=>{const e=$.current;if(!e)return;const t=C.current.x*w.current.x,n=C.current.y*w.current.y;e.scrollBy(t,n)},[]),E=d(()=>l===Jk.TreeOrder?[...c].reverse():c,[l,c]);p(()=>{if(a&&c.length&&x){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=c.indexOf(e),r=u[n];if(!r)continue;const{direction:a,speed:l}=Pk(e,r,x,t,g);for(const e of["x","y"])v[e][a[e]]||(l[e]=0,a[e]=0);if(l.x>0||l.y>0)return y(),$.current=e,b(S,i),C.current=l,void(w.current=a)}C.current={x:0,y:0},w.current={x:0,y:0},y()}else y()},[t,S,o,y,a,i,JSON.stringify(x),JSON.stringify(v),b,c,E,u,JSON.stringify(g)])}(class extends qk{constructor(e){super(e,Qk)}static setup(){return window.addEventListener(Qk.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Qk.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"}(Zk||(Zk={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Jk||(Jk={}));const t_={x:{[kk.Backward]:!1,[kk.Forward]:!1},y:{[kk.Backward]:!1,[kk.Forward]:!1}};var n_,o_;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(n_||(n_={})),function(e){e.Optimized="optimized"}(o_||(o_={}));const r_=new Map;function a_(e,t){return BE(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function i_(e){let{callback:t,disabled:n}=e;const o=RE(t),r=d(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)},[n]);return p(()=>()=>null==r?void 0:r.disconnect(),[r]),r}function l_(e){return new Mk(bk(e),e)}function s_(e,t,n){void 0===t&&(t=l_);const[o,r]=a(null);function i(){r(o=>{if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=o?o:n)?r:null;const a=t(e);return JSON.stringify(o)===JSON.stringify(a)?o:a})}const l=function(e){let{callback:t,disabled:n}=e;const o=RE(t),r=d(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)},[o,n]);return p(()=>()=>null==r?void 0:r.disconnect(),[r]),r}({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=i_({callback:i});return DE(()=>{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]),o}const c_=[];function d_(e,t){void 0===t&&(t=[]);const n=m(null);return p(()=>{n.current=null},t),p(()=>{const t=e!==rk;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?jE(e,n.current):rk}function u_(e){return d(()=>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 p_=[];function m_(e){let{measure:t}=e;const[n,o]=a(null),r=h(e=>{for(const{target:n}of e)if(IE(n)){o(e=>{const o=t(n);return e?{...e,width:o.width,height:o.height}:o});break}},[t]),i=i_({callback:r}),l=h(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return IE(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),o(n?t(n):null)},[t,i]),[s,c]=TE(l);return d(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const f_=[{sensor:Xk,options:{}},{sensor:Wk,options:{}}],h_={current:{}},g_={draggable:{measure:yk},droppable:{measure:yk,strategy:n_.WhileDragging,frequency:o_.Optimized},dragOverlay:{measure:bk}};class v_ 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 b_={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new v_,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:nk},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:g_,measureDroppableContainers:nk,windowRect:null,measuringScheduled:!1},y_=u({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nk,draggableNodes:new Map,over:null,measureDroppableContainers:nk}),C_=u(b_);function w_(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new v_}}}function x_(e,t){switch(t.type){case tk.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case tk.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 tk.DragEnd:case tk.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case tk.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new v_(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case tk.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 v_(e.droppable.containers);return i.set(n,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:i}}}case tk.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const a=new v_(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function $_(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=c(y_),a=zE(o),i=zE(null==n?void 0:n.id);return p(()=>{if(!t&&!o&&a&&null!=i){if(!WE(a))return;if(document.activeElement===a.target)return;const e=r.get(i);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=UE(e);if(t){t.focus();break}}})}},[o,t,r,i,a]),null}const S_=u({...rk,scaleX:1,scaleY:1});var E_;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(E_||(E_={}));const k_=C(function(e){var t,n,o,i;let{id:l,accessibility:s,autoScroll:c=!0,children:u,sensors:f=f_,collisionDetection:g=mk,measuring:v,modifiers:b,...y}=e;const C=w(x_,void 0,w_),[x,$]=C,[E,k]=function(){const[e]=a(()=>new Set),t=h(t=>(e.add(t),()=>e.delete(t)),[e]),n=h(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[n,t]}(),[_,N]=a(E_.Uninitialized),I=_===E_.Initialized,{draggable:{active:P,nodes:O,translate:D},droppable:{containers:R}}=x,M=null!=P?O.get(P):null,B=m({initial:null,translated:null}),T=d(()=>{var e;return null!=P?{id:P,data:null!=(e=null==M?void 0:M.data)?e:h_,rect:B}:null},[P,M]),z=m(null),[A,L]=a(null),[H,F]=a(null),j=ME(y,Object.values(y)),W=LE("DndDescribedBy",l),V=d(()=>R.getEnabled(),[R]),K=d(()=>({draggable:{...g_.draggable,...null==q?void 0:q.draggable},droppable:{...g_.droppable,...null==q?void 0:q.droppable},dragOverlay:{...g_.dragOverlay,...null==q?void 0:q.dragOverlay}}),[null==(q=v)?void 0:q.draggable,null==q?void 0:q.droppable,null==q?void 0:q.dragOverlay]);var q;const{droppableRects:U,measureDroppableContainers:X,measuringScheduled:G}=function(e,t){let{dragging:n,dependencies:o,config:r}=t;const[i,l]=a(null),{frequency:s,measure:c,strategy:d}=r,u=m(e),f=function(){switch(d){case n_.Always:return!1;case n_.BeforeDragging:return n;default:return!n}}(),g=ME(f),v=h(function(e){void 0===e&&(e=[]),g.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[g]),b=m(null),y=BE(t=>{if(f&&!n)return r_;if(!t||t===r_||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 Mk(c(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t},[e,i,n,f,c]);return p(()=>{u.current=e},[e]),p(()=>{f||v()},[n,f]),p(()=>{i&&i.length>0&&l(null)},[JSON.stringify(i)]),p(()=>{f||"number"!=typeof s||null!==b.current||(b.current=setTimeout(()=>{v(),b.current=null},s))},[s,f,v,...o]),{droppableRects:y,measureDroppableContainers:v,measuringScheduled:null!=i}}(V,{dragging:I,dependencies:[D.x,D.y],config:K.droppable}),Y=function(e,t){const n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return BE(e=>{var n;return null==t?null:null!=(n=null!=o?o:e)?n:null},[o,t])}(O,P),Q=d(()=>H?VE(H):null,[H]),Z=function(){const e=!1===(null==A?void 0:A.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=I&&!e&&!t;if("object"==typeof c)return{...c,enabled:n};return{enabled:n}}(),J=function(e,t){return a_(e,t)}(Y,K.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const a=m(!1),{x:i,y:l}="boolean"==typeof r?{x:r,y:r}:r;DE(()=>{if(!i&&!l||!t)return void(a.current=!1);if(a.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=fk(n(e),o);if(i||(r.x=0),l||(r.y=0),a.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=wk(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,i,l,o,n])}({activeNode:null!=P?O.get(P):null,config:Z.layoutShiftCompensation,initialRect:J,measure:K.draggable.measure});const ee=s_(Y,K.draggable.measure,J),te=s_(Y?Y.parentElement:null),ne=m({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=R.getNodeFor(null==(t=ne.current.over)?void 0:t.id),re=m_({measure:K.dragOverlay.measure}),ae=null!=(n=re.nodeRef.current)?n:Y,ie=I?null!=(o=re.rect)?o:ee:null,le=Boolean(re.nodeRef.current&&re.rect),se=fk(ce=le?null:ee,a_(ce));var ce;const de=u_(ae?_E(ae):null),ue=function(e){const t=m(e),n=BE(n=>e?n&&n!==c_&&e&&t.current&&e.parentNode===t.current.parentNode?n:Ck(e):c_,[e]);return p(()=>{t.current=e},[e]),n}(I?null!=oe?oe:Y:null),pe=function(e,t){void 0===t&&(t=bk);const[n]=e,o=u_(n?_E(n):null),[r,i]=a(p_);function l(){i(()=>e.length?e.map(e=>_k(e)?o:new Mk(t(e),e)):p_)}const s=i_({callback:l});return DE(()=>{null==s||s.disconnect(),l(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),r}(ue),me=function(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...o}),n):n}(b,{transform:{x:D.x-se.x,y:D.y-se.y,scaleX:1,scaleY:1},activatorEvent:H,active:T,activeNodeRect:ee,containerNodeRect:te,draggingNodeRect:ie,over:ne.current.over,overlayNodeRect:re.rect,scrollableAncestors:ue,scrollableAncestorRects:pe,windowRect:de}),fe=Q?FE(Q,D):null,he=function(e){const[t,n]=a(null),o=m(e),r=h(e=>{const t=xk(e.target);t&&n(e=>e?(e.set(t,Ek(t)),new Map(e)):null)},[]);return p(()=>{const t=o.current;if(e!==t){a(t);const i=e.map(e=>{const t=xk(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,Ek(t)]):null}).filter(e=>null!=e);n(i.length?new Map(i):null),o.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{const t=xk(e);null==t||t.removeEventListener("scroll",r)})}},[r,e]),d(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>FE(e,t),rk):Dk(e):rk,[e,t])}(ue),ge=d_(he),ve=d_(he,[ee]),be=FE(me,ge),ye=ie?gk(ie,me):null,Ce=T&&ye?g({active:T,collisionRect:ye,droppableRects:U,droppableContainers:V,pointerCoordinates:fe}):null,we=ck(Ce,"id"),[xe,$e]=a(null),Se=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(le?me:FE(me,ve),null!=(i=null==xe?void 0:xe.rect)?i:null,ee),Ee=m(null),ke=h((e,t)=>{let{sensor:n,options:o}=t;if(null==z.current)return;const r=O.get(z.current);if(!r)return;const a=e.nativeEvent,i=new n({active:z.current,activeNode:r,event:a,options:o,context:ne,onAbort(e){if(!O.get(e))return;const{onDragAbort:t}=j.current,n={id:e};null==t||t(n),E({type:"onDragAbort",event:n})},onPending(e,t,n,o){if(!O.get(e))return;const{onDragPending:r}=j.current,a={id:e,constraint:t,initialCoordinates:n,offset:o};null==r||r(a),E({type:"onDragPending",event:a})},onStart(e){const t=z.current;if(null==t)return;const n=O.get(t);if(!n)return;const{onDragStart:o}=j.current,r={activatorEvent:a,active:{id:t,data:n.data,rect:B}};S(()=>{null==o||o(r),N(E_.Initializing),$({type:tk.DragStart,initialCoordinates:e,active:t}),E({type:"onDragStart",event:r}),L(Ee.current),F(a)})},onMove(e){$({type:tk.DragMove,coordinates:e})},onEnd:l(tk.DragEnd),onCancel:l(tk.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:o,scrollAdjustedTranslate:r}=ne.current;let i=null;if(t&&r){const{cancelDrop:l}=j.current;if(i={activatorEvent:a,active:t,collisions:n,delta:r,over:o},e===tk.DragEnd&&"function"==typeof l){await Promise.resolve(l(i))&&(e=tk.DragCancel)}}z.current=null,S(()=>{$({type:e}),N(E_.Uninitialized),$e(null),L(null),F(null),Ee.current=null;const t=e===tk.DragEnd?"onDragEnd":"onDragCancel";if(i){const e=j.current[t];null==e||e(i),E({type:t,event:i})}})}}Ee.current=i},[O]),_e=h((e,t)=>(n,o)=>{const r=n.nativeEvent,a=O.get(o);if(null!==z.current||!a||r.dndKit||r.defaultPrevented)return;const i={active:a};!0===e(n,t.options,i)&&(r.dndKit={capturedBy:t.sensor},z.current=o,ke(n,t))},[O,ke]),Ne=function(e,t){return d(()=>e.reduce((e,n)=>{const{sensor:o}=n;return[...e,...o.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(f,_e);!function(e){p(()=>{if(!SE)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}))}(f),DE(()=>{ee&&_===E_.Initializing&&N(E_.Initialized)},[ee,_]),p(()=>{const{onDragMove:e}=j.current,{active:t,activatorEvent:n,collisions:o,over:r}=ne.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:o,delta:{x:be.x,y:be.y},over:r};S(()=>{null==e||e(a),E({type:"onDragMove",event:a})})},[be.x,be.y]),p(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:o,scrollAdjustedTranslate:r}=ne.current;if(!e||null==z.current||!t||!r)return;const{onDragOver:a}=j.current,i=o.get(we),l=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:l};S(()=>{$e(l),null==a||a(s),E({type:"onDragOver",event:s})})},[we]),DE(()=>{ne.current={activatorEvent:H,active:T,activeNode:Y,collisionRect:ye,collisions:Ce,droppableRects:U,draggableNodes:O,draggingNode:ae,draggingNodeRect:ie,droppableContainers:R,over:xe,scrollableAncestors:ue,scrollAdjustedTranslate:be},B.current={initial:ie,translated:ye}},[T,Y,Ce,ye,O,ae,ie,U,R,xe,ue,be]),e_({...Z,delta:D,draggingRect:ye,pointerCoordinates:fe,scrollableAncestors:ue,scrollableAncestorRects:pe});const Ie=d(()=>({active:T,activeNode:Y,activeNodeRect:ee,activatorEvent:H,collisions:Ce,containerNodeRect:te,dragOverlay:re,draggableNodes:O,droppableContainers:R,droppableRects:U,over:xe,measureDroppableContainers:X,scrollableAncestors:ue,scrollableAncestorRects:pe,measuringConfiguration:K,measuringScheduled:G,windowRect:de}),[T,Y,ee,H,Ce,te,re,O,R,U,xe,X,ue,pe,K,G,de]),Pe=d(()=>({activatorEvent:H,activators:Ne,active:T,activeNodeRect:ee,ariaDescribedById:{draggable:W},dispatch:$,draggableNodes:O,over:xe,measureDroppableContainers:X}),[H,Ne,T,ee,$,W,O,xe,X]);return r.createElement(QE.Provider,{value:k},r.createElement(y_.Provider,{value:Pe},r.createElement(C_.Provider,{value:Ie},r.createElement(S_.Provider,{value:Se},u)),r.createElement($_,{disabled:!1===(null==s?void 0:s.restoreFocus)})),r.createElement(ek,{...s,hiddenTextDescribedById:W}))}),__=u(null),N_="button";function I_(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const a=LE("Draggable"),{activators:i,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:p,draggableNodes:m,over:f}=c(y_),{role:h=N_,roleDescription:g="draggable",tabIndex:v=0}=null!=r?r:{},b=(null==s?void 0:s.id)===t,y=c(b?S_:__),[C,w]=TE(),[x,$]=TE(),S=function(e,t){return d(()=>e.reduce((e,n)=>{let{eventName:o,handler:r}=n;return e[o]=e=>{r(e,t)},e},{}),[e,t])}(i,t),E=ME(n);DE(()=>(m.set(t,{id:t,key:a,node:C,activatorNode:x,data:E}),()=>{const e=m.get(t);e&&e.key===a&&m.delete(t)}),[m,t]);return{active:s,activatorEvent:l,activeNodeRect:u,attributes:d(()=>({role:h,tabIndex:v,"aria-disabled":o,"aria-pressed":!(!b||h!==N_)||void 0,"aria-roledescription":g,"aria-describedby":p.draggable}),[o,h,v,b,g,p.draggable]),isDragging:b,listeners:o?void 0:S,node:C,over:f,setNodeRef:w,setActivatorNodeRef:$,transform:y}}const P_={timeout:25};function O_(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function D_(e,t){return e.reduce((e,n,o)=>{const r=t.get(n);return r&&(e[o]=r),e},Array(e.length))}function R_(e){return null!==e&&e>=0}const M_=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const a=O_(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},B_={scaleX:1,scaleY:1},T_=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,...B_}: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,...B_}:r<n&&r>=i?{x:0,y:l.height+s,...B_}:{x:0,y:0,...B_}};const z_="Sortable",A_=r.createContext({activeIndex:-1,containerId:z_,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:M_,disabled:{draggable:!1,droppable:!1}});function L_(e){let{children:t,id:n,items:o,strategy:a=M_,disabled:i=!1}=e;const{active:l,dragOverlay:s,droppableRects:u,over:f,measureDroppableContainers:h}=c(C_),g=LE(z_,n),v=Boolean(null!==s.rect),b=d(()=>o.map(e=>"object"==typeof e&&"id"in e?e.id:e),[o]),y=null!=l,C=l?b.indexOf(l.id):-1,w=f?b.indexOf(f.id):-1,x=m(b),$=!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}(b,x.current),S=-1!==w&&-1===C||$,E=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);DE(()=>{$&&y&&h(b)},[$,b,y,h]),p(()=>{x.current=b},[b]);const k=d(()=>({activeIndex:C,containerId:g,disabled:E,disableTransforms:S,items:b,overIndex:w,useDragOverlay:v,sortedRects:D_(b,u),strategy:a}),[C,g,E.draggable,E.droppable,S,b,w,u,v,a]);return r.createElement(A_.Provider,{value:k},t)}const H_=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return O_(n,o,r).indexOf(t)},F_=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))},j_={duration:200,easing:"ease"},W_="transform",V_=KE.Transition.toString({property:W_,duration:0,easing:"linear"}),K_={roleDescription:"sortable"};function q_(e){let{animateLayoutChanges:t=F_,attributes:n,disabled:o,data:r,getNewIndex:i=H_,id:l,strategy:s,resizeObserverConfig:u,transition:f=j_}=e;const{items:g,containerId:v,activeIndex:b,disabled:y,disableTransforms:C,sortedRects:w,overIndex:x,useDragOverlay:$,strategy:S}=c(A_),E=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}}(o,y),k=g.indexOf(l),_=d(()=>({sortable:{containerId:v,index:k,items:g},...r}),[v,r,k,g]),N=d(()=>g.slice(g.indexOf(l)),[g,l]),{rect:I,node:P,isOver:O,setNodeRef:D}=function(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const a=LE("Droppable"),{active:i,dispatch:l,over:s,measureDroppableContainers:d}=c(y_),u=m({disabled:n}),f=m(!1),g=m(null),v=m(null),{disabled:b,updateMeasurementsFor:y,timeout:C}={...P_,...r},w=ME(null!=y?y:o),x=i_({callback:h(()=>{f.current?(null!=v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),v.current=null},C)):f.current=!0},[C]),disabled:b||!i}),$=h((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[S,E]=TE($),k=ME(t);return p(()=>{x&&S.current&&(x.disconnect(),f.current=!1,x.observe(S.current))},[S,x]),p(()=>(l({type:tk.RegisterDroppable,element:{id:o,key:a,disabled:n,node:S,rect:g,data:k}}),()=>l({type:tk.UnregisterDroppable,key:a,id:o})),[o]),p(()=>{n!==u.current.disabled&&(l({type:tk.SetDroppableDisabled,id:o,key:a,disabled:n}),u.current.disabled=n)},[o,a,n,l]),{active:i,rect:g,isOver:(null==s?void 0:s.id)===o,node:S,over:s,setNodeRef:E}}({id:l,data:_,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...u}}),{active:R,activatorEvent:M,activeNodeRect:B,attributes:T,setNodeRef:z,listeners:A,isDragging:L,over:H,setActivatorNodeRef:F,transform:j}=I_({id:l,data:_,attributes:{...K_,...n},disabled:E.draggable}),W=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(()=>e=>{t.forEach(t=>t(e))},t)}(D,z),V=Boolean(R),K=V&&!C&&R_(b)&&R_(x),q=!$&&L,U=q&&K?j:null,X=K?null!=U?U:(null!=s?s:S)({rects:w,activeNodeRect:B,activeIndex:b,overIndex:x,index:k}):null,G=R_(b)&&R_(x)?i({id:l,items:g,activeIndex:b,overIndex:x}):k,Y=null==R?void 0:R.id,Q=m({activeId:Y,items:g,newIndex:G,containerId:v}),Z=g!==Q.current.items,J=t({active:R,containerId:v,isDragging:L,isSorting:V,id:l,index:k,items:g,newIndex:Q.current.newIndex,previousItems:Q.current.items,previousContainerId:Q.current.containerId,transition:f,wasDragging:null!=Q.current.activeId}),ee=function(e){let{disabled:t,index:n,node:o,rect:r}=e;const[i,l]=a(null),s=m(n);return DE(()=>{if(!t&&n!==s.current&&o.current){const e=r.current;if(e){const t=bk(o.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)}}n!==s.current&&(s.current=n)},[t,n,o,r]),p(()=>{i&&l(null)},[i]),i}({disabled:!J,index:k,node:P,rect:I});return p(()=>{V&&Q.current.newIndex!==G&&(Q.current.newIndex=G),v!==Q.current.containerId&&(Q.current.containerId=v),g!==Q.current.items&&(Q.current.items=g)},[V,G,v,g]),p(()=>{if(Y===Q.current.activeId)return;if(null!=Y&&null==Q.current.activeId)return void(Q.current.activeId=Y);const e=setTimeout(()=>{Q.current.activeId=Y},50);return()=>clearTimeout(e)},[Y]),{active:R,activeIndex:b,attributes:T,data:_,rect:I,index:k,newIndex:G,items:g,isOver:O,isSorting:V,isDragging:L,listeners:A,node:P,overIndex:x,over:H,setNodeRef:W,setActivatorNodeRef:F,setDroppableNodeRef:D,setDraggableNodeRef:z,transform:null!=ee?ee:X,transition:function(){if(ee||Z&&Q.current.newIndex===k)return V_;if(q&&!WE(M)||!f)return;if(V||J)return KE.Transition.toString({...f,property:W_});return}()}}function U_(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 X_=[Ak.Down,Ak.Right,Ak.Up,Ak.Left],G_=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:a,over:i,scrollableAncestors:l}}=t;if(X_.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 Ak.Down:o.top<a.top&&t.push(n);break;case Ak.Up:o.top>a.top&&t.push(n);break;case Ak.Left:o.left>a.left&&t.push(n);break;case Ak.Right:o.left<a.left&&t.push(n)}});const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=sk(t),a=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=sk(o),i=r.reduce((e,t,o)=>e+ak(n[o],t),0),l=Number((i/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:l}})}}return a.sort(ik)})({active:n,collisionRect:o,droppableRects:r,droppableContainers:t,pointerCoordinates:null});let c=ck(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=Ck(s).some((e,t)=>l[t]!==e),r=Y_(e,t),a=function(e,t){if(!U_(e)||!U_(t))return!1;if(!Y_(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:jE(d,c)}}}};function Y_(e,t){return!(!U_(e)||!U_(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var Q_={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 Z_=u(null),J_=({children:t,id:n,rowKey:o,row:r})=>{const{attributes:a,listeners:i,setNodeRef:l,transform:s,transition:c,isDragging:d}=q_({id:n}),u={transform:KE.Transform.toString(s),transition:c,opacity:d?.5:1};return e(Z_.Provider,{value:{attributes:a,listeners:i},children:e("tr",{ref:l,style:u,className:`${d?Q_.rowDragging:""}`,children:t})})},eN=()=>{const t=c(Z_);if(!t)return null;const{attributes:n,listeners:o}=t;return e("td",{className:Q_.dragHandleCell,children:e("div",{className:Q_.dragHandle,...o,...n,children:e(O,{name:"dots-six-vertical",size:12})})})},tN=({columnKey:t,onResizeStart:n,onResize:o,onResizeEnd:r})=>{const i=m(null),[l,s]=a(!1),c=h(e=>{e.preventDefault(),e.stopPropagation(),s(!0);const a=e.clientX,l=i.current?.parentElement?.offsetWidth||0,c=e=>{const n=e.clientX-a,r=Math.max(50,l+n);o&&o(t,r)},d=()=>{s(!1),r&&r(t),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect=""};n&&n(t),document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[t,o,n,r]);return e("div",{ref:i,className:`${Q_.resizeHandle} ${l?Q_.resizing:""}`,onMouseDown:c,title:"Drag to resize column",children:e("div",{className:Q_.resizeHandleLine})})};function nN({columns:n=[],data:o=[],rowKey:i="id",onRowReorder:l,onRowSelect:s,onSort:c,className:u="",...p}){const[m,f]=a([]),[g,v]=a({}),[b,y]=a(o),[C,w]=a({});r.useEffect(()=>{y(o)},[o]),r.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${Q_.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 .${Q_.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(`.${Q_.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()}},[b,n]),r.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${Q_.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(`.${Q_.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(`.${Q_.tableContainer}`);return o&&n.observe(o,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(t),n.disconnect()}},[b,n,g]);const x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(()=>[...t].filter(e=>null!=e),[...t])}(ok(Xk),ok(Wk,{coordinateGetter:G_})),$=e=>{f(e),s&&s(e)},S=h((e,t)=>{w(n=>({...n,[e]:t}))},[]),E=h(e=>{},[]),k=h(e=>{},[]),_=d(()=>{const o={title:"",key:"drag-handle",width:40,fixed:"left",className:Q_.dragHandleHeader,render:()=>e(eN,{})},r=n.map(n=>{const o=C[n.key]||n.width||void 0,r=n.sortable&&g.columnKey===n.key&&g.order||null,a=n.sortable?e("span",{className:Q_.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!n.sortable)return;let t;if(t=g.columnKey===n.key?"ascend"===g.order?"descend":"descend"===g.order?null:"ascend":"ascend",t){if(v({order:t,columnKey:n.key}),c){const e="ascend"===t?"asc":"desc";c(n.key,e)}}else v({}),c&&c(null,null)},title:"Click to sort",children:(i=r,e(O,"ascend"===i?{name:"sort-ascending",size:14}:"descend"===i?{name:"sort-descending",size:14}:{name:"caret-up-down",size:14}))}):null;var i;return{title:t("div",{className:Q_.columnHeaderContent,children:[a,e("span",{className:Q_.columnHeaderLabel,children:n.label}),e(tN,{columnKey:n.key,onResizeStart:E,onResize:S,onResizeEnd:k})]}),dataIndex:n.key,key:n.key,width:o,sorter:!1,render:n.render||(e=>e),className:Q_.tableCell,showSorterTooltip:!1}}),a=b.length,l=m.length,s=a>0&&l===a,d=!(0===l)&&!s;return[o,{title:e("div",{className:Q_.checkboxHeader,children:e(BS,{checked:s,indeterminate:d,onChange:e=>{if(d)$([]);else{const t=e.target.checked;$(t?b.map(e=>e[i]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${Q_.tableCell} ${Q_.checkboxColumn}`,render:(t,n)=>{const o=m.includes(n[i]);return e("div",{className:Q_.checkboxCell,children:e(BS,{checked:o,onChange:e=>{const t=e.target.checked?[...m,n[i]]:m.filter(e=>e!==n[i]);$(t)},size:"small"})})}},...r]},[n,g,C,m,b,i,c,E,S,k]),N=[Q_.tableContainer,u].filter(Boolean).join(" "),I=d(()=>b.map(e=>e[i]),[b,i]),P={body:{row:t=>{let n=t["data-row-key"];if(!n&&t.children){const e=r.Children.toArray(t.children);for(const t of e){const e=t;if(e?.props?.record?.[i]){n=e.props.record[i];break}}}if(!n&&void 0!==t["data-row-index"]){const e=t["data-row-index"];b[e]&&b[e][i]&&(n=b[e][i])}return n?e(J_,{id:n,rowKey:i,row:t,children:t.children}):e("tr",{...t,children:t.children})}}};return e("div",{className:N,...p,children:e(k_,{sensors:x,collisionDetection:uk,onDragEnd:e=>{const{active:t,over:n}=e;n&&t.id!==n.id&&y(e=>{const o=e.findIndex(e=>e[i]===t.id),r=e.findIndex(e=>e[i]===n.id),a=O_(e,o,r);return l&&l(a),a})},children:e(L_,{items:I,strategy:T_,children:e(IS,{className:Q_.antTable,columns:_,dataSource:b,rowKey:i,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:P})})})})}var oN={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 rN=({value:n,defaultValue:o,body:r,title:i="",description:l="",label:s="",error:c="",hasLabel:d=!0,hasDescription:u=!0,hasError:p=!1,showIcon:m=!1,chooseIcon:f=null,showTitle:h=!1,showDragIcon:g=!0,state:v="default",placeholder:b="Body",onChange:y,onFocus:C,onBlur:w,disabled:x,className:$="",rows:S=4,...E})=>{const[k,_]=a(!1);let N=x?"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})(v);"default"===N&&k&&(N="focused");const I=[oN.container,$].filter(Boolean).join(" "),P=[oN.textareaWrapper,oN[`textareaWrapper_state_${N}`],p?oN.textareaWrapper_state_error:""].filter(Boolean).join(" "),O=x||"disabled"===N,D=void 0!==n?n:r;return t("div",{className:I,children:[d&&s&&e("label",{className:oN.label,children:s}),u&&l&&e("p",{className:oN.description,children:l}),e("div",{className:P,children:t("div",{className:oN.textareaInner,children:[t("div",{className:oN.textContent,children:[h&&i&&e("p",{className:oN.title,children:i}),e("textarea",{className:oN.nativeTextarea,value:D,defaultValue:o,placeholder:b,onChange:y,onFocus:e=>{_(!0),C&&C(e)},onBlur:e=>{_(!1),w&&w(e)},disabled:O,rows:S,...E})]}),m?f||e("div",{className:oN.iconWrapper,children:e("img",{src:"/icons/Icon.svg",alt:"Icon",className:oN.icon})}):null,g?e("div",{className:oN.dragIcon,children:e("img",{src:"/icons/Vector.svg",alt:"Drag",className:oN.dragIconImage})}):null]})}),(p||"error"===N)&&c&&e("p",{className:oN.error,children:c})]})};export{A as Avatar,F as BackgroundGradient,W as Badge,OS as Breadcrumb,M as Button,T as ButtonDanger,QS as Card,LS as Categories,WS as Cell,YS as CellHeader,BS as Checkbox,JS as Chip,tE as ChipList,oE as Dropdown,lE as DropdownNested,aE as DropdownNestedColumn,O as Icon,cE as IconButton,AS as ItemRow,uE as Modal,mE as Notification,hE as Pagination,zS as Radio,vE as Search,yE as StatusIndicator,wE as Tab,$E as TabList,nN as Table,rN as TextArea,jS as Toggle};
1
+ import{jsx as e,jsxs as a,Fragment as t}from"react/jsx-runtime";import{Breadcrumb as n,ConfigProvider as l,Pagination as o,Table as i}from"antd";import r,{useState as s,useMemo as c,useEffect as d,useRef as u,createContext as m,useCallback as _,useContext as h}from"react";import{useSensors as p,useSensor as v,PointerSensor as g,KeyboardSensor as b,DndContext as C,closestCenter as f}from"@dnd-kit/core";import{sortableKeyboardCoordinates as w,SortableContext as P,verticalListSortingStrategy as k,arrayMove as y,useSortable as N}from"@dnd-kit/sortable";import{CSS as I}from"@dnd-kit/utilities";function S(e){var a,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(a=0;a<l;a++)e[a]&&(t=S(e[a]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function L(){for(var e,a,t=0,n="",l=arguments.length;t<l;t++)(e=arguments[t])&&(a=S(e))&&(n&&(n+=" "),n+=a);return n}var D={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"},A={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 B=[{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}],x=({name:a,size:t="medium",variant:n="default",className:l="",style:o={},alt:i="",...r})=>{const s=a?.replace(/\.svg$/,"").toLowerCase(),c=(()=>{if("number"==typeof t)return`${t}px`;const e={small:"12px",medium:"16px",large:"24px"};return e[t]||e.medium})(),d=(()=>{const e=B.find(e=>e.name===s||e.name===a);return`https://cdn.jsdelivr.net/npm/squarex-ui-component-lib@latest/public/icon/${e?e.filePath.split("/").pop():`${a}.svg`}`})(),u=i||`${s} icon`,m=[A.icon,A[`variant_${n}`],l].filter(Boolean).join(" "),_={width:c,height:c,...o};return e("img",{src:d,alt:u,className:m,style:_,...r})},z=({className:a})=>e("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:e("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"})}),T=({className:t})=>a("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e("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"})]}),R=({label:t="Button",showLeadingIcon:n=!0,showTrailingIcon:l=!1,leadingIcon:o,trailingIcon:i,leftIcon:r,rightIcon:s,variant:c,buttonStyle:d="primary",state:u="default",size:m="medium",onClick:_,disabled:h,loading:p,className:v="",children:g,...b})=>{const C=p?"loading":h?"disabled":u,f=h||p||"disabled"===C,w=L(D.button,D[`style_${c||d||"primary"}`],D[`state_${C}`],D[`size_${"md"===m?"medium":"sm"===m?"small":m}`],v),P="Button"===t&&g?g:t;return a("button",{className:w,onClick:_,disabled:f,"aria-disabled":f,...b,children:[(()=>{if(!n)return null;const a=o||r;return a?"string"==typeof a?e(x,{name:a,className:D.icon}):a:"loading"===C?e(T,{className:D.loaderIcon}):e(z,{className:D.icon})})(),e("span",{className:D.label,children:P}),(()=>{if(!l)return null;const a=i||s;return a?"string"==typeof a?e(x,{name:a,className:D.icon}):a:e(z,{className:D.icon})})()]})};var W={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 U=({label:t="Button",showLeadingIcon:n=!0,showTrailingIcon:l=!1,leadingIcon:o,trailingIcon:i,style:r="primary",state:s="default",size:c="medium",onClick:d,disabled:u,loading:m,className:_="",...h})=>{const p=m?"loading":u?"disabled":s,v=u||m||"disabled"===p,g=[W.button,W[`style_${r}`],W[`state_${p}`],W[`size_${c}`],_].filter(Boolean).join(" ");return a("button",{className:g,onClick:d,disabled:v,"aria-disabled":v,...h,children:[n?o||e(x,"loading"===p?{name:"spinner",size:16,className:W.loaderIcon}:{name:"star",size:14,className:W.icon}):null,e("span",{className:W.label,children:t}),l?i||e(x,{name:"star",size:14,className:W.icon}):null]})};var F={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"};const H=({src:a,initials:t,alt:n,size:l="medium",shape:o="circle",className:i="",...r})=>{const s=[F.avatar,F[`size_${l}`],F[`shape_${o}`],!a&&t?F.initialsBg:"",i].filter(Boolean).join(" ");return e("div",{className:s,...r,children:a?e("img",{src:a,alt:n||t||"avatar",className:F.image}):e("span",{className:F.initials,children:t})})};var q="BackgroundGradient-module_container__h-ECQ",E="BackgroundGradient-module_gradientBlobsImage__HSoZE";const $=({className:a="",mode:t="Light Mode BG",...n})=>e("div",{className:`${q} ${a}`,"data-mode":t,...n,children:e("img",{className:E,src:`/bg/Mode=${t}.svg`,alt:`${t} Blobs`})});var M={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"};const G=({label:a="Badge",type:t="default",size:n="medium",className:l="",children:o,...i})=>{const r=(e=>{if(!e)return"default";const a=e.toLowerCase();return"active"===a?"active":"inactive"===a?"inactive":"default"})(t),s=(e=>{if(!e)return"medium";const a=e.toString().toLowerCase();return"small"===a||"sm"===a?"small":"medium"===a||"md"===a?"medium":"large"===a||"lg"===a?"large":"medium"})(n),c=[M.badge,M[`type_${r}`],M[`size_${s}`],l].filter(Boolean).join(" ");return e("span",{className:c,...i,children:o||a})};var O={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"};const V=({items:t=[],separator:l="/",className:o="",...i})=>{const r=t.map(t=>({...t,title:a("span",{className:O.itemContent,children:[t.icon&&e(x,{name:t.icon,size:14,className:O.itemIcon}),e("span",{className:O.itemTitle,children:t.title})]})}));return e("div",{className:`${O.breadcrumbContainer} ${o}`,children:e(n,{items:r,separator:e("span",{className:O.separator,children:l}),className:O.antBreadcrumb,...i})})};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"},K={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"},Q={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 Z=({checked:t=!1,indeterminate:n=!1,disabled:l=!1,state:o="default",size:i="medium",label:r="",onChange:s,className:c="",id:d,name:u,value:m,..._})=>{const h=(e=>{if(!e)return"default";const a=e.toLowerCase();return"hover"===a?"hover":"focus"===a?"focus":"pressed"===a?"pressed":"default"})(o),p="number"==typeof i,v=p?"custom":i.toLowerCase(),g=l||"disabled"===o,b=[Q.checkboxContainer,c].filter(Boolean).join(" "),C=[Q.checkbox,Q[`size_${v}`],t&&Q.checkboxChecked,!t&&n&&Q.checkboxIndeterminateState,g&&Q.checkboxDisabled,!g&&Q[`state_${h}`]].filter(Boolean).join(" "),f=d||`checkbox-${Math.random().toString(36).substr(2,9)}`;return a("div",{className:b,children:[a("div",{className:Q.checkboxWrapper,children:[e("input",{type:"checkbox",id:f,name:u,value:m,checked:t,disabled:g,onChange:e=>{!g&&s&&s(e)},className:Q.checkboxInput,"aria-checked":n?"mixed":t,"aria-disabled":g,..._}),a("label",{htmlFor:f,className:C,style:p?{width:`${i}px`,height:`${i}px`}:{},children:[t&&e("div",{className:Q.checkboxCheck,children:e("div",{className:Q.checkIconWrapper,children:e("div",{className:Q.checkIconInner,children:e(x,{name:"Check",size:12,className:Q.checkIcon})})})}),!t&&n&&e("div",{className:Q.checkboxIndeterminate,children:e("div",{className:Q.indeterminateBar})})]})]}),r&&e("label",{htmlFor:f,className:Q.label,children:r})]})};var X={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 J=({checked:t=!1,disabled:n=!1,state:l="default",size:o="medium",label:i="",name:r,value:s,onChange:c,className:d="",id:u,...m})=>{const _=(e=>{if(!e)return"default";const a=e.toLowerCase();return"hover"===a?"hover":"focus"===a?"focus":"pressed"===a?"pressed":"default"})(l),h="number"==typeof o,p=h?"custom":o.toLowerCase(),v=n||"disabled"===l,g=[X.radioContainer,d].filter(Boolean).join(" "),b=[X.radio,X[`size_${p}`],t&&X.radioChecked,v&&X.radioDisabled,!v&&X[`state_${_}`]].filter(Boolean).join(" "),C=u||`radio-${Math.random().toString(36).substr(2,9)}`;return a("div",{className:g,children:[a("div",{className:X.radioWrapper,children:[e("input",{type:"radio",id:C,name:r,value:s,checked:t,disabled:v,onChange:e=>{!v&&c&&c(e)},className:X.radioInput,"aria-checked":t,"aria-disabled":v,...m}),e("label",{htmlFor:C,className:b,style:h?{width:`${o}px`,height:`${o}px`}:{},children:t&&e("div",{className:X.radioDot})})]}),i&&e("label",{htmlFor:C,className:X.label,children:i})]})},Y=({showLeftIcon:t=!0,hasCheckbox:n=!1,hasRadio:l=!1,checked:o=!1,chooseLeftIcon:i=null,label:r="Item",showBody:s=!1,body:c="Body",showInfo:d=!1,showRightIcon:u=!1,chooseRightIcon:m=null,type:_="Default",onClick:h,className:p="",...v})=>{const g=(e=>{if(!e)return"default";const a=e.toLowerCase();return"hover"===a?"hover":"disabled"===a?"disabled":"selected"===a?"selected":"danger"===a?"danger":"default"})(_),b="disabled"===g,C=b?"div":"button",f=[K.itemRow,K[`type_${g}`],p].filter(Boolean).join(" "),w=o||"selected"===g;return a(C,{className:f,onClick:h,disabled:b,type:"button"===C?"button":void 0,...v,children:[d&&e("div",{className:K.infoIcon,children:e(x,{name:"Info",size:14,className:K.infoIconImg})}),a("div",{className:K.content,children:[t&&e("div",{className:K.iconWrapper,children:i||e(x,{name:"File",size:14,className:K.fileIconImg})}),a("div",{className:K.text,children:[e("p",{className:K.label,children:r}),s&&e("p",{className:K.body,children:c})]}),u&&e("div",{className:K.iconWrapper,children:m||e(x,{name:"Star",size:14,className:K.starIconImg})})]}),n&&e("div",{className:K.checkboxField,children:e(Z,{checked:w,disabled:b,size:16,readOnly:!h})}),l&&e("div",{className:K.radioField,children:e(J,{checked:w,disabled:b,size:16,readOnly:!h})})]})},ee=({variant:t="single",chips:n=[],categories:l=[],onChipRemove:o,onCategoryToggle:i,onItemClick:r,onCancel:u,onApply:m,cancelLabel:_="Cancel",applyLabel:h="Apply",className:p="",...v})=>{const[g,b]=s(""),[C,f]=s(l.reduce((e,a,t)=>(e[t]=void 0===a.expanded||a.expanded,e),{})),w=c(()=>{if(!g)return l;const e=g.toLowerCase();return l.map(a=>{if((a.title||"").toLowerCase().includes(e))return a;const t=(a.items||[]).filter(a=>(a.label||"").toLowerCase().includes(e));return t.length>0?{...a,items:t}:null}).filter(e=>null!==e)},[l,g]);d(()=>{if(g){const e=w.reduce((e,a,t)=>(e[t]=!0,e),{});f(e)}},[g,w.length]);const P=(n,l)=>{const o=!!g||!1!==C[l];return a("div",{className:j.categoryList,children:[a("button",{type:"button",className:j.categoryTitle,onClick:()=>{return e=l,f(a=>({...a,[e]:!a[e]})),void(i&&i(e,!C[e]));var e},children:[e("p",{className:j.categoryTitleText,children:n.title||"Category"}),e("div",{className:j.chevronIcon,children:e(x,{name:"CaretDown",size:14,className:`${j.chevronImg} ${o?j.chevronUp:""}`})})]}),o&&e("div",{className:j.categoryItems,children:(n.items||[]).map((a,n)=>e("div",{className:j.categoryItemWrapper,children:e(Y,{label:a.label||"Item",showLeftIcon:!0,showRightIcon:!1,hasCheckbox:"multiple"===t,hasRadio:"multiple"!==t,checked:a.checked||!1,type:a.type||"default",onClick:()=>{r&&r(a,l)}})},a.id||n))})]},l)},k=[j.container,j[`variant_${t}`],p].filter(Boolean).join(" ");return a("div",{className:k,...v,children:[a("div",{className:j.searchSection,children:[a("div",{className:j.searchInput,children:[e("div",{className:j.searchIcon,children:e(x,{name:"MagnifyingGlass",size:16,className:j.searchIconImage})}),e("input",{type:"text",className:j.realSearchInput,placeholder:"Search",value:g,onChange:e=>{b(e.target.value)}})]}),(()=>{if(!n||0===n.length)return null;const t=n.slice(0,5),l=n.length-5;let i=null;return l>0&&(i={isMore:!0,label:`+${l}`}),a("div",{className:j.chipListContainer,children:[t.map((t,n)=>a("div",{className:j.chip,children:[e("p",{className:j.chipLabel,children:t.label||"Label"}),e("button",{type:"button",className:j.chipRemove,onClick:e=>{e.stopPropagation(),o&&o(t)},"aria-label":"Remove chip",children:e(x,{name:"X",size:14,className:j.chipIcon})})]},n)),i&&e("div",{className:j.chip,children:e("p",{className:j.chipLabel,children:i.label})})]})})()]}),e("div",{className:j.listsContainer,children:w.map((e,a)=>P(e,a))}),a("div",{className:j.actionsContainer,children:[e("button",{type:"button",className:j.cancelButton,onClick:u,children:e("p",{className:j.cancelButtonText,children:_})}),e("button",{type:"button",className:j.applyButton,onClick:m,children:e("p",{className:j.applyButtonText,children:h})})]})]})};var ae={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"},te={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 ne=({checked:t=!1,disabled:n=!1,state:l="default",size:o="medium",label:i="",onChange:r,className:s="",id:c,name:d,value:u,...m})=>{const _=(e=>{if(!e)return"default";const a=e.toLowerCase();return"hover"===a?"hover":"focus"===a?"focus":"pressed"===a?"pressed":"default"})(l),h=o.toLowerCase(),p=n||"disabled"===l,v=[te.toggleContainer,s].filter(Boolean).join(" "),g=[te.toggle,te[`size_${h}`],t&&te.toggleChecked,p&&te.toggleDisabled,!p&&te[`state_${_}`]].filter(Boolean).join(" "),b=c||`toggle-${Math.random().toString(36).substr(2,9)}`;return a("div",{className:v,children:[a("div",{className:te.toggleWrapper,children:[e("input",{type:"checkbox",id:b,name:d,value:u,checked:t,disabled:p,onChange:e=>{!p&&r&&r(e)},className:te.toggleInput,"aria-checked":t,"aria-disabled":p,role:"switch",...m}),e("label",{htmlFor:b,className:g,children:e("span",{className:te.toggleThumb})})]}),i&&e("label",{htmlFor:b,className:te.label,children:i})]})},le=({variant:t="default",label:n="",icon:l=null,badge:o=null,avatar:i=null,status:r=null,checked:s=!1,onChange:c,count:d=null,actions:u=[],className:m="",..._})=>e("div",{className:`${ae.cell} ${ae[`variant_${t}`]} ${m}`,..._,children:(()=>{switch(t){case"avatar":return a("div",{className:ae.avatarContent,children:[i?e("img",{src:i,alt:n,className:ae.avatar}):e("div",{className:ae.avatarPlaceholder,children:e(x,{name:"User",size:16})}),e("span",{className:ae.label,children:n})]});case"status":return a("div",{className:ae.statusContent,children:[e("div",{className:`${ae.statusDot} ${ae[`status_${r?.toLowerCase()}`]}`}),e("span",{className:ae.label,children:n}),o&&e("span",{className:ae.badge,children:o})]});case"social":return a("div",{className:ae.socialContent,children:[l&&e(x,{name:l,size:16,className:ae.socialIcon}),e("span",{className:ae.label,children:n})]});case"actions":return e("div",{className:ae.actionsContent,children:u.map((a,t)=>e("button",{className:ae.actionButton,onClick:a.onClick,title:a.label,type:"button",children:e(x,{name:a.icon,size:14})},t))});case"checkbox":return a("div",{className:ae.checkboxContent,children:[e(Z,{checked:s,onChange:c,size:"small"}),e("span",{className:ae.label,children:n})]});case"toggle":return e("div",{className:ae.toggleContent,children:e(ne,{checked:s,onChange:c,size:"small"})});case"userCount":return e("div",{className:ae.userCountContent,children:a("div",{className:ae.userIconWrapper,children:[e(x,{name:"User",size:14}),e("span",{className:ae.count,children:d})]})});default:return a("div",{className:ae.defaultContent,children:[l&&e(x,{name:l,size:16,className:ae.leadingIcon}),e("span",{className:ae.label,children:n}),o&&e("span",{className:ae.badge,children:o}),e(x,{name:"Globe",size:14,className:ae.trailingIcon})]})}})()});var oe="CellHeader-module_cellHeader__9mlaW",ie="CellHeader-module_sortable__bpx5y",re="CellHeader-module_content__6-yV0",se="CellHeader-module_checkboxWrapper__ah1PJ",ce="CellHeader-module_sortIcon__6rgJk",de="CellHeader-module_label__nRBcj";const ue=({label:t="",sortable:n=!1,sortOrder:l=null,hasCheckbox:o=!1,checked:i=!1,onSort:r,onCheckboxChange:s,className:c="",...d})=>e("div",{className:`${oe} ${n?ie:""} ${c}`,onClick:n?r:void 0,...d,children:a("div",{className:re,children:[o&&e("div",{className:se,onClick:e=>e.stopPropagation(),children:e(Z,{checked:i,onChange:s,size:"small"})}),n&&e("div",{className:ce,"aria-label":`Sort ${l||"none"}`,children:e(x,{name:"asc"===l?"SortAscending":"desc"===l?"SortDescending":"CaretUpDown",size:14})}),e("span",{className:de,children:t})]})}),me=({children:t,variant:n="default",padding:l="md",hover:o=!1,clickable:i=!1,header:r,footer:s,onClick:c,className:d,style:u,animate:m=!0,animationDuration:_=300,animationDelay:h=0,animationEasing:p="ease-in-out",...v})=>{const g=L("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"}[l],o&&"hover:shadow-md hover:-translate-y-0.5",i&&"cursor-pointer hover:shadow-lg hover:-translate-y-1",m&&"animate-fade-in",d),b={...u,...m&&{animationDuration:`${_}ms`,animationDelay:`${h}ms`,animationTimingFunction:p}};return a("div",{className:g,style:b,onClick:e=>{i&&c&&c(e)},...v,children:[r&&e("div",{className:"mb-4 pb-4 border-b border-gray-200",children:r}),e("div",{className:"flex-1",children:t}),s&&e("div",{className:"mt-4 pt-4 border-t border-gray-200",children:s})]})};var _e={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 he=({label:t="Label",showRightIcon:n=!0,showLeftIcon:l=!0,chooseLeftIcon:o=null,chooseRightIcon:i=null,state:r="default",size:s="medium",onRemove:c,onClick:d,className:u="",...m})=>{const _=(e=>{if(!e)return"default";const a=e.toLowerCase();return"hover"===a?"hover":"pressed"===a?"pressed":"active"===a?"active":"default"})(r),h=(s||"medium").toLowerCase(),p="small"===h?12:14,v=[_e.chip,_e[`size_${h}`],_e[`state_${_}`],u].filter(Boolean).join(" ");return a(d?"button":"div",{className:v,onClick:d,type:d?"button":void 0,...m,children:[l?o||e("div",{className:_e.iconWrapper,children:e(x,{name:"x",size:p,className:_e.icon,variant:"active"===_?"white":"default"})}):null,e("span",{className:_e.label,children:t}),n?i||e("div",{className:_e.iconWrapper,children:e(x,{name:"x",size:p,className:_e.icon,variant:"active"===_?"white":"default",onClick:e=>{e.stopPropagation(),c&&c()}})}):null]})};var pe={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-"};const ve=({chips:a=[],layout:t="single",onChipRemove:n,className:l="",...o})=>{const i=a.length>0?a:[{label:"Label",id:"1"},{label:"Label",id:"2"},{label:"Label",id:"3"}],r=t.toLowerCase(),s=(()=>{if("double"===r||"doublerow"===r){const e=Math.ceil(i.length/2);return[i.slice(0,e),i.slice(e)]}return[i]})(),c=[pe.container,pe[`layout_${r}`],l].filter(Boolean).join(" ");return e("div",{className:c,...o,children:s.map((a,t)=>e("div",{className:pe.row,children:a.map(a=>e(he,{label:a.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{n&&n(a)}},a.id||a.label))},t))})};var ge={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"};const be=({value:t="",description:n="",label:l="",error:o="",hasLabel:i=!0,hasDescription:r=!0,hasError:s=!1,hasChips:c=!1,state:m="default",type:_="medium",placeholder:h="Value",chips:p=[],onChange:v,onFocus:g,onBlur:b,onClick:C,onOutsideClick:f,disabled:w,className:P="",children:k,...y})=>{const N=u(null);d(()=>{if(!f)return;const e=e=>{N.current&&!N.current.contains(e.target)&&f()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[f]);const I=(_||"medium").toLowerCase(),S=w?"disabled":(e=>{if(!e)return"default";const a=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"selected"===a?"selected":"focused"===a?"focused":"hover"===a?"hover":"error"===a?"error":"disabled"===a?"disabled":a})(m),L=[ge.container,ge[`type_${I}`],P].filter(Boolean).join(" "),D=[ge.dropdownWrapper,ge[`dropdownWrapper_type_${I}`],ge[`dropdownWrapper_state_${S}`],ge[`dropdownWrapper_type_${I}_state_${S}`]].filter(Boolean).join(" "),A=w||"disabled"===S,B=a("div",{className:ge.fieldWrapper,children:[e("button",{type:"button",className:D,onClick:C||g,disabled:A,"aria-disabled":A,...y,children:a("div",{className:ge.dropdownInner,children:[c&&0!==p.length?e("div",{className:ge.chipList,children:p.map((t,n)=>a("div",{className:ge.chip,children:[e("span",{className:ge.chipLabel,children:t.label||"Label"}),t.onRemove&&e("button",{type:"button",className:ge.chipRemove,onClick:e=>{e.stopPropagation(),t.onRemove&&t.onRemove()},"aria-label":"Remove chip",children:e(x,{name:"x",size:10,className:ge.chipIcon})})]},n))}):null,e("span",t?{className:ge.value,children:t}:{className:ge.placeholder,children:h}),e("div",{className:ge.chevronWrapper,children:e(x,{name:k?"caret-up":"caret-down",size:12,className:ge.chevronIcon})})]})}),k]});return a("div",{className:L,ref:N,children:[i&&l&&e("p",{className:ge.label,children:l}),r&&n&&e("p",{className:ge.description,children:n}),B,s&&o&&e("p",{className:ge.error,children:o})]})};var Ce={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 fe=({title:t="Title",expanded:n=!0,chips:l=[],items:o=[],onClearAll:i,onChipRemove:r,onItemClick:c,className:d="",...u})=>{const[m,_]=s(n),[h,p]=s(""),v=[Ce.dropdownNestedColumn,d].filter(Boolean).join(" "),g=a("div",{className:Ce.titleAndCta,children:[e("p",{className:Ce.titleText,children:t}),e("button",{className:Ce.clearAllButton,onClick:e=>{e.stopPropagation(),i&&i()},type:"button",children:e("p",{className:Ce.clearAllText,children:"Clear all"})})]}),b=o.filter(e=>e.label.toLowerCase().includes(h.toLowerCase()));return a("div",{className:v,...u,children:[a("div",{className:Ce.titleFrame,children:[g,e("button",{className:Ce.chevronButton,onClick:()=>{_(!m)},type:"button",children:e("div",{className:Ce.chevronContainer,children:e("div",{className:Ce.chevronIcon,style:{transform:m?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:e(x,{name:"caret-up",size:16})})})})]}),m&&e("div",{className:Ce.dropdownWithSearch,children:a("div",{className:Ce.dropdownContent,children:[e("div",{className:Ce.chipListSection,children:l.length>0?a("div",{className:Ce.chipGrid,children:[l.slice(0,5).map(a=>e(he,{label:a.label,showRightIcon:!0,showLeftIcon:!1,state:"default",size:"medium",onRemove:()=>{r&&r(a)}},a.id||a.label)),l.length>5&&e(he,{label:"+"+(l.length-5),showRightIcon:!1,showLeftIcon:!1,state:"default",size:"medium",className:Ce.moreChipsChip})]}):e("div",{className:Ce.noChips,children:"No items selected"})}),e("div",{className:Ce.searchInputSection,children:a("div",{className:Ce.searchInput,children:[e(x,{name:"magnifying-glass",size:16,className:Ce.searchIcon}),e("input",{type:"text",className:Ce.searchField,placeholder:"Search",value:h,onChange:e=>p(e.target.value)})]})}),e("div",{className:Ce.itemsList,children:e("div",{className:Ce.itemsContainer,children:b.length>0?b.map((a,t)=>e(Y,{label:a.label,showLeftIcon:!1,showRightIcon:!1,hasCheckbox:!0,hasRadio:!1,checked:a.checked||!1,type:a.type||"Default",onClick:()=>{c&&c(a)}},a.id||t)):e("div",{className:Ce.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"};const Pe=({leftColumn:t={title:"Select a Member",chips:[],items:[]},rightColumn:n={title:"Select a Group",chips:[],items:[]},onLeftClearAll:l,onRightClearAll:o,onLeftChipRemove:i,onRightChipRemove:r,onLeftItemClick:s,onRightItemClick:c,onCancel:d,onApply:u,className:m="",..._})=>{const h=t.chips,p=n.chips,v=t.items,g=n.items,b=[we.dropdownNested,m].filter(Boolean).join(" ");return a("div",{className:b,..._,children:[a("div",{className:we.columns,children:[e("div",{className:we.column,children:e(fe,{title:t.title,expanded:!0,chips:h,items:v,onClearAll:l,onChipRemove:i,onItemClick:s})}),e("div",{className:we.column,children:e(fe,{title:n.title,expanded:!0,chips:p,items:g,onClearAll:o,onChipRemove:r,onItemClick:c})})]}),a("div",{className:we.ctas,children:[e(U,{label:"Cancel",style:"neutral",size:"medium",showLeadingIcon:!1,onClick:d,className:we.cancelButton}),e(R,{label:"Apply",buttonStyle:"primary",size:"medium",showLeadingIcon:!1,onClick:u,className:we.applyButton})]})]})};var ke={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"};const ye=({icon:a,style:t="primary",state:n="default",size:l="medium",onClick:o,disabled:i,loading:r,className:s="",...c})=>{const d=r?"loading":i?"disabled":n,u=i||r||"disabled"===d,m=[ke.iconButton,ke[`style_${t}`],ke[`state_${d}`],ke[`size_${l}`],s].filter(Boolean).join(" ");return e("button",{className:m,onClick:o,disabled:u,"aria-disabled":u,...c,children:a?"string"==typeof a?e(x,{name:a,className:ke.icon,size:14}):a:e(x,"loading"===d?{name:"spinner",className:ke.loaderIcon,size:16}:{name:"star",className:ke.icon,size:14})})};var Ne={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"};const Ie=({isOpen:t,onClose:n,title:l,description:o,icon:i,children:r,actions:s,size:c="medium",showCloseButton:u=!0,className:m="",..._})=>{if(d(()=>(document.body.style.overflow=t?"hidden":"unset",()=>{document.body.style.overflow="unset"}),[t]),!t)return null;return e("div",{className:Ne.overlay,onClick:e=>{e.target===e.currentTarget&&n&&n()},children:a("div",{className:`${Ne.modal} ${Ne[c]} ${m}`,role:"dialog","aria-modal":"true",..._,children:[u&&e("button",{className:Ne.closeButton,onClick:n,"aria-label":"Close modal",children:e(x,{name:"X"})}),a("div",{className:Ne.content,children:[i&&e("div",{className:Ne.iconWrapper,children:i}),r||a("div",{className:Ne.textStack,children:[l&&e("h2",{className:Ne.title,children:l}),o&&e("p",{className:Ne.description,children:o})]}),s&&e("div",{className:Ne.actions,children:s})]})]})})};var Se={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 Le=({count:n=0,variant:l="primary",size:o="medium",maxCount:i=99,className:r="",...s})=>{const c=[Se.notification,Se[`variant_${l}`],Se[`size_${o}`],r].filter(Boolean).join(" ");return e("span",{className:c,...s,children:(()=>{if("number"==typeof n&&n>i)return a(t,{children:[e("span",{className:Se.count,children:i}),e("span",{className:Se.plus,children:"+"})]});if("string"==typeof n&&n.endsWith("+")){const l=n.slice(0,-1);return a(t,{children:[e("span",{className:Se.count,children:l}),e("span",{className:Se.plus,children:"+"})]})}return n})()})};var De={paginationWrapper:"Pagination-module_paginationWrapper__Da07-",navButtonCustom:"Pagination-module_navButtonCustom__dtnOI",navIcon:"Pagination-module_navIcon__jEBAO",navText:"Pagination-module_navText__epoAF"};const Ae=t=>e(l,{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("div",{className:`${De.paginationWrapper} ${t.className||""}`,children:e(o,{itemRender:(n,l,o)=>"prev"===l?a("div",{className:`${De.navButtonCustom} ${t.disabled?De.disabled:""}`,children:[e("div",{className:De.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowLeft.svg')",maskImage:"url('/icon/ArrowLeft.svg')"}}),e("span",{className:De.navText,children:"Previous"})]}):"next"===l?a("div",{className:`${De.navButtonCustom} ${t.disabled?De.disabled:""}`,children:[e("span",{className:De.navText,children:"Next"}),e("div",{className:De.navIcon,style:{WebkitMaskImage:"url('/icon/ArrowRight.svg')",maskImage:"url('/icon/ArrowRight.svg')"}})]}):o,...t})})});var Be={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"};const xe=({value:t="",error:n="",hasError:l=!1,state:o="default",placeholder:i="Search",onChange:r,onFocus:c,onBlur:d,disabled:u,className:m="",title:_="",...h})=>{const[p,v]=s(!1),[g,b]=s(!1),C=(()=>{if(u)return"disabled";const e=(e=>{if(!e||"default"===e)return null;const a=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===a||"filled"===a?"filled":"filledinhover"===a||"filledhover"===a||"filled-hover"===a?"filledHover":"focused"===a?"focused":"typing"===a?"typing":"hover"===a?"hover":"error"===a?"error":"disabled"===a?"disabled":a})(o);return e||(l?"error":g?t?"typing":"focused":p?t?"filledHover":"hover":t?"filled":"default")})(),f=[Be.container,m].filter(Boolean).join(" "),w=[Be.input,Be[`input_state_${C}`]].filter(Boolean).join(" "),P=[Be.inputInner,Be[`inputInner_state_${C}`]].filter(Boolean).join(" "),k=u||"disabled"===C;return a("div",{className:f,title:_,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[e("div",{className:w,children:a("div",{className:P,children:[e("div",{className:Be.searchIcon,children:e(x,{name:"magnifying-glass",className:Be.searchIconImage,size:16})}),e("input",{type:"search",className:Be.realInput,value:t,placeholder:i,onChange:r,onFocus:e=>{b(!0),c?.(e)},onBlur:e=>{b(!1),d?.(e)},disabled:k,...h}),("focused"===C||"typing"===C)&&!t&&e("span",{className:Be.cursor,children:"|"})]})}),l&&n&&e("p",{className:Be.error,children:n})]})};var ze={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"};const Te=({label:t="Status",state:n="default",size:l="medium",color:o="green",onClick:i,className:r="",...s})=>{const c=(e=>{if(!e)return"default";const a=e.toLowerCase();return"hover"===a?"hover":"pressed"===a?"pressed":"active"===a?"active":"disabled"===a?"disabled":"default"})(n),d=(e=>{if(!e)return"green";const a=e.toLowerCase();return"red"===a?"red":"yellow"===a?"yellow":"blue"===a?"blue":"green"})(o),u=l.toLowerCase(),m=[ze.statusIndicator,ze[`size_${u}`],ze[`state_${c}`],ze[`color_${d}`],r].filter(Boolean).join(" ");return a(i?"button":"div",{className:m,onClick:i,disabled:"disabled"===c,type:i?"button":void 0,...s,children:[(()=>{const a=(()=>{switch(d){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("div",{className:ze.indicator,style:{backgroundColor:a}})})(),e("span",{className:ze.label,children:t})]})};var Re={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 We=({label:t,count:n,isActive:l=!1,disabled:o=!1,onClick:i,className:r="",...s})=>{const c=[Re.tab,l&&Re.active,o&&Re.disabled,r].filter(Boolean).join(" ");return a("button",{className:c,onClick:e=>{!o&&i&&i(e)},disabled:o,type:"button",role:"tab","aria-selected":l,...s,children:[e("span",{className:Re.label,children:t}),null!=n&&e(Le,{count:n,variant:o?"subtle":l?"primary":"neutral",size:"small",className:Re.notification}),l&&e("div",{className:Re.underline})]})};var Ue={tabList:"TabList-module_tabList__sSh3n"};const Fe=({items:a,activeKey:t,onChange:n,className:l=""})=>{const o=[Ue.tabList,l].filter(Boolean).join(" ");return e("div",{className:o,role:"tablist",children:a.map(a=>e(We,{label:a.label,count:a.count,disabled:a.disabled,isActive:t===a.key,onClick:()=>!a.disabled&&n?.(a.key)},a.key))})};var He={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 qe=m(null),Ee=({children:a,id:t,rowKey:n,row:l})=>{const{attributes:o,listeners:i,setNodeRef:r,transform:s,transition:c,isDragging:d}=N({id:t}),u={transform:I.Transform.toString(s),transition:c,opacity:d?.5:1};return e(qe.Provider,{value:{attributes:o,listeners:i},children:e("tr",{ref:r,style:u,className:`${d?He.rowDragging:""}`,children:a})})},$e=()=>{const a=h(qe);if(!a)return null;const{attributes:t,listeners:n}=a;return e("td",{className:He.dragHandleCell,children:e("div",{className:He.dragHandle,...n,...t,children:e(x,{name:"dots-six-vertical",size:12})})})},Me=({columnKey:a,onResizeStart:t,onResize:n,onResizeEnd:l})=>{const o=u(null),[i,r]=s(!1),c=_(e=>{e.preventDefault(),e.stopPropagation(),r(!0);const i=e.clientX,s=o.current?.parentElement?.offsetWidth||0,c=e=>{const t=e.clientX-i,l=Math.max(50,s+t);n&&n(a,l)},d=()=>{r(!1),l&&l(a),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect=""};t&&t(a),document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[a,n,t,l]);return e("div",{ref:o,className:`${He.resizeHandle} ${i?He.resizing:""}`,onMouseDown:c,title:"Drag to resize column",children:e("div",{className:He.resizeHandleLine})})};function Ge({columns:t=[],data:n=[],rowKey:l="id",onRowReorder:o,onRowSelect:d,onSort:u,className:m="",...h}){const[N,I]=s([]),[S,L]=s({}),[D,A]=s(n),[B,z]=s({});r.useEffect(()=>{A(n)},[n]),r.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${He.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-thead > tr > th").forEach(e=>{const a=window.getComputedStyle(e,"::before");if("none"!==a.content&&""!==a.content){const e="remove-table-separator";let a=document.getElementById(e);a||(a=document.createElement("style"),a.id=e,a.textContent=`\n .${He.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(a))}})};e();const a=[setTimeout(e,50),setTimeout(e,100),setTimeout(e,200)],t=new MutationObserver(e),n=document.querySelector(`.${He.tableContainer}`);return n&&t.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{a.forEach(clearTimeout),t.disconnect();const e=document.getElementById("remove-table-separator");e&&e.remove()}},[D,t]),r.useEffect(()=>{const e=()=>{const e=document.querySelector(`.${He.tableContainer}`);if(!e)return;e.querySelectorAll(".ant-table-column-sorter, .ant-table-column-sorter-full, .ant-table-column-sorter-inner").forEach(e=>{const a=e;a.closest(`.${He.sortIconLeft}`)||(a.style.display="none",a.style.visibility="hidden",a.style.opacity="0",a.style.width="0",a.style.height="0",a.style.margin="0",a.style.padding="0")})};e();const a=setTimeout(e,100),t=new MutationObserver(e),n=document.querySelector(`.${He.tableContainer}`);return n&&t.observe(n,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(a),t.disconnect()}},[D,t,S]);const T=p(v(g),v(b,{coordinateGetter:w})),R=e=>{I(e),d&&d(e)},W=_((e,a)=>{z(t=>({...t,[e]:a}))},[]),U=_(e=>{},[]),F=_(e=>{},[]),H=c(()=>{const n={title:"",key:"drag-handle",width:40,fixed:"left",className:He.dragHandleHeader,render:()=>e($e,{})},o=t.map(t=>{const n=B[t.key]||t.width||void 0,l=t.sortable&&S.columnKey===t.key&&S.order||null,o=t.sortable?e("span",{className:He.sortIconLeft,onClick:e=>{if(e.stopPropagation(),!t.sortable)return;let a;if(a=S.columnKey===t.key?"ascend"===S.order?"descend":"descend"===S.order?null:"ascend":"ascend",a){if(L({order:a,columnKey:t.key}),u){const e="ascend"===a?"asc":"desc";u(t.key,e)}}else L({}),u&&u(null,null)},title:"Click to sort",children:(i=l,e(x,"ascend"===i?{name:"sort-ascending",size:14}:"descend"===i?{name:"sort-descending",size:14}:{name:"caret-up-down",size:14}))}):null;var i;return{title:a("div",{className:He.columnHeaderContent,children:[o,e("span",{className:He.columnHeaderLabel,children:t.label}),e(Me,{columnKey:t.key,onResizeStart:U,onResize:W,onResizeEnd:F})]}),dataIndex:t.key,key:t.key,width:n,sorter:!1,render:t.render||(e=>e),className:He.tableCell,showSorterTooltip:!1}}),i=D.length,r=N.length,s=i>0&&r===i,c=!(0===r)&&!s;return[n,{title:e("div",{className:He.checkboxHeader,children:e(Z,{checked:s,indeterminate:c,onChange:e=>{if(c)R([]);else{const a=e.target.checked;R(a?D.map(e=>e[l]):[])}},size:"small"})}),key:"selection",width:48,fixed:"left",className:`${He.tableCell} ${He.checkboxColumn}`,render:(a,t)=>{const n=N.includes(t[l]);return e("div",{className:He.checkboxCell,children:e(Z,{checked:n,onChange:e=>{const a=e.target.checked?[...N,t[l]]:N.filter(e=>e!==t[l]);R(a)},size:"small"})})}},...o]},[t,S,B,N,D,l,u,U,W,F]),q=[He.tableContainer,m].filter(Boolean).join(" "),E=c(()=>D.map(e=>e[l]),[D,l]),$={body:{row:a=>{let t=a["data-row-key"];if(!t&&a.children){const e=r.Children.toArray(a.children);for(const a of e){const e=a;if(e?.props?.record?.[l]){t=e.props.record[l];break}}}if(!t&&void 0!==a["data-row-index"]){const e=a["data-row-index"];D[e]&&D[e][l]&&(t=D[e][l])}return t?e(Ee,{id:t,rowKey:l,row:a,children:a.children}):e("tr",{...a,children:a.children})}}};return e("div",{className:q,...h,children:e(C,{sensors:T,collisionDetection:f,onDragEnd:e=>{const{active:a,over:t}=e;t&&a.id!==t.id&&A(e=>{const n=e.findIndex(e=>e[l]===a.id),i=e.findIndex(e=>e[l]===t.id),r=y(e,n,i);return o&&o(r),r})},children:e(P,{items:E,strategy:k,children:e(i,{className:He.antTable,columns:H,dataSource:D,rowKey:l,pagination:!1,scroll:{y:600,x:"max-content"},size:"middle",components:$})})})})}var Oe={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 Ve=({value:t,defaultValue:n,body:l,title:o="",description:i="",label:r="",error:c="",hasLabel:d=!0,hasDescription:u=!0,hasError:m=!1,showIcon:_=!1,chooseIcon:h=null,showTitle:p=!1,showDragIcon:v=!0,state:g="default",placeholder:b="Body",onChange:C,onFocus:f,onBlur:w,disabled:P,className:k="",rows:y=4,...N})=>{const[I,S]=s(!1);let L=P?"disabled":(e=>{if(!e)return"default";const a=e.toLowerCase().replace(/\s+/g,"").replace(/-/g,"");return"filledin"===a||"filled"===a?"filled":"filledinhover"===a||"filledhover"===a||"filled-hover"===a?"filledHover":"focused"===a?"focused":"typing"===a?"typing":"hover"===a?"hover":"error"===a?"error":"disabled"===a?"disabled":a})(g);"default"===L&&I&&(L="focused");const D=[Oe.container,k].filter(Boolean).join(" "),A=[Oe.textareaWrapper,Oe[`textareaWrapper_state_${L}`],m?Oe.textareaWrapper_state_error:""].filter(Boolean).join(" "),B=P||"disabled"===L,x=void 0!==t?t:l;return a("div",{className:D,children:[d&&r&&e("label",{className:Oe.label,children:r}),u&&i&&e("p",{className:Oe.description,children:i}),e("div",{className:A,children:a("div",{className:Oe.textareaInner,children:[a("div",{className:Oe.textContent,children:[p&&o&&e("p",{className:Oe.title,children:o}),e("textarea",{className:Oe.nativeTextarea,value:x,defaultValue:n,placeholder:b,onChange:C,onFocus:e=>{S(!0),f&&f(e)},onBlur:e=>{S(!1),w&&w(e)},disabled:B,rows:y,...N})]}),_?h||e("div",{className:Oe.iconWrapper,children:e("img",{src:"/icons/Icon.svg",alt:"Icon",className:Oe.icon})}):null,v?e("div",{className:Oe.dragIcon,children:e("img",{src:"/icons/Vector.svg",alt:"Drag",className:Oe.dragIconImage})}):null]})}),(m||"error"===L)&&c&&e("p",{className:Oe.error,children:c})]})};export{H as Avatar,$ as BackgroundGradient,G as Badge,V as Breadcrumb,R as Button,U as ButtonDanger,me as Card,ee as Categories,le as Cell,ue as CellHeader,Z as Checkbox,he as Chip,ve as ChipList,be as Dropdown,Pe as DropdownNested,fe as DropdownNestedColumn,x as Icon,ye as IconButton,Y as ItemRow,Ie as Modal,Le as Notification,Ae as Pagination,J as Radio,xe as Search,Te as StatusIndicator,We as Tab,Fe as TabList,Ge as Table,Ve as TextArea,ne as Toggle};
33
2
  //# sourceMappingURL=index.esm.js.map