Bilibili-Gate

Bilibili 自定义首页

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Bilibili-Gate
// @namespace    https://magicdawn.fun
// @version      0.34.13
// @author       magicdawn
// @description  Bilibili 自定义首页
// @license      MIT
// @icon         https://www.bilibili.com/favicon.ico
// @homepageURL  https://greasyfork.org/zh-CN/scripts/443530-bilibili-gate
// @supportURL   https://github.com/magicdawn/Bilibili-Gate/issues
// @match        https://www.bilibili.com/
// @match        https://www.bilibili.com/?*
// @match        https://www.bilibili.com/index.html
// @match        https://www.bilibili.com/index.html?*
// @match        https://www.bilibili.com/video/*
// @match        https://www.bilibili.com/list/watchlater?*
// @match        https://www.bilibili.com/bangumi/play/*
// @match        https://space.bilibili.com/*
// @match        https://search.bilibili.com/*
// @require      https://registry.npmmirror.com/axios/0.30.2/files/dist/axios.min.js
// @require      https://registry.npmmirror.com/ua-parser-js/1.0.41/files/dist/ua-parser.min.js
// @require      https://registry.npmmirror.com/localforage/1.10.0/files/dist/localforage.min.js
// @require      https://registry.npmmirror.com/pinyin-match/1.2.10/files/dist/main.js
// @require      https://registry.npmmirror.com/spark-md5/3.0.2/files/spark-md5.min.js
// @tag          bilibili
// @connect      app.bilibili.com
// @grant        GM.deleteValue
// @grant        GM.getValue
// @grant        GM.listValues
// @grant        GM.openInTab
// @grant        GM.registerMenuCommand
// @grant        GM.setClipboard
// @grant        GM.setValue
// @grant        GM.xmlHttpRequest
// @grant        GM_addStyle
// @grant        GM_addValueChangeListener
// @grant        GM_download
// @grant        GM_info
// @grant        unsafeWindow
// @run-at       document-body
// ==/UserScript==

(async function (qX, vM, sparkMd5, u5, GX) {
  'use strict';

  const d=new Set;const WX = async e=>{d.has(e)||(d.add(e),(t=>{typeof GM_addStyle=="function"?GM_addStyle(t):(document.head||document.documentElement).appendChild(document.createElement("style")).append(t);})(e));};

  WX(' ._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text{display:inline-flex;align-items:center;min-height:30px}._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text a{color:var(--ant-color-link)}._cls--gate-video-grid--divider_h4766_1 .ant-divider-inner-text a:hover{color:var(--ant-color-primary)}._cls--gate-video-card--context-menu--root_h4766_13 .ant-dropdown-menu{--ant-dropdown-padding-block: 3px}._cls--gate-video-card--context-menu--root_h4766_13 .ant-dropdown-menu:has(:nth-child(12)){--ant-dropdown-padding-block: 2px}._video-grid_ucv12_1{display:grid;position:relative;width:100%;grid-gap:20px 12px;--bilibili-gate--video-card--border-radius: 15px}._grid-template-columns-using-var-col_ucv12_9{--col: 4;grid-template-columns:repeat(var(--col),minmax(0,1fr))}._grid-template-columns-using-card-min-width_ucv12_14{--card-min-width: 330px;grid-template-columns:repeat(auto-fill,minmax(var(--card-min-width),1fr))}._video-grid-addon-center-empty_ucv12_19:before{content:"";grid-column:3/-3;grid-row:1/span 9999;grid-auto-flow:dense}._video-grid-bili-feed4_ucv12_26{grid-gap:20px 20px}@media(max-width:1399px){._video-grid-bili-feed4_ucv12_26{--col: 4}}@media(min-width:1400px){._video-grid-bili-feed4_ucv12_26{--col: 5}}._video-grid-bili-feed4_ucv12_26 .ant-divider-horizontal.ant-divider-with-text{margin-bottom:-15px;margin-top:-15px}._video-grid-bili-feed4_ucv12_26 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}._video-grid-custom_ucv12_47{--row-gap: clamp(20px, 1.4vw, 40px);column-gap:clamp(15px,1.1cqw,20px);row-gap:0}._video-grid-custom_ucv12_47 .bili-video-card{margin-bottom:var(--row-gap)}._video-grid-custom_ucv12_47 .ant-divider-horizontal.ant-divider-with-text{margin-top:calc(10px - var(--row-gap));margin-bottom:5px}._video-grid-custom_ucv12_47 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}._narrow-mode_ucv12_63{--col: 2 !important}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.icon-only-round-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;padding:0}.inline-icon-only-round-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:0}.flex-center{display:flex;align-items:center;justify-content:center}.flex-v-center{display:flex;align-items:center}.inline-flex-center{display:inline-flex;align-items:center;justify-content:center}.\\[refresh\\:scroll\\]{refresh:scroll}.pointer-events-auto{pointer-events:auto}.\\[\\&_svg\\]\\:pointer-events-none svg,.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.position-relative,.relative{position:relative}.sticky{position:sticky}.static{position:static}.inset-0{inset:0}.inset-x-0{left:0;right:0}.bottom--6px{bottom:-6px}.bottom-0{bottom:0}.left--2px{left:-2px}.left--30px{left:-30px}.left-0{left:0}.left-2,.left-8px{left:8px}.left-50\\%{left:50%}.right--30px{right:-30px}.right-\\[calc\\(8px\\+28px\\+5px\\)\\]{right:41px}.right-0{right:0}.right-10px{right:10px}.right-8px{right:8px}.top-\\[-0\\.5px\\]{top:-.5px}.top-\\[-1px\\]{top:-1px}.top-0{top:0}.top-0\\.5px{top:.5px}.top-10px{top:10px}.top-4px{top:4px}.top-50\\%{top:50%}.top-8px{top:8px}.hover\\:left-0:hover{left:0}.hover\\:right-0:hover{right:0}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.isolate{isolation:isolate}.z-10000{z-index:10000}.z-10004{z-index:10004}.z-10005{z-index:10005}.z-1001{z-index:1001}.z-11000{z-index:11000}.z-11200{z-index:11200}.z-11300{z-index:11300}.z-2{z-index:2}.z-3{z-index:3}.z-4{z-index:4}.z-5{z-index:5}.z-6{z-index:6}.z-90000{z-index:90000}.z-9999{z-index:9999}.grid{display:grid}.col-span-full,.grid-col-span-full{grid-column:1/-1}.grid-cols-\\[250px_1fr\\]{grid-template-columns:250px 1fr}.grid-cols-\\[repeat\\(2\\,max-content\\)_1fr\\]{grid-template-columns:repeat(2,max-content) 1fr}.grid-cols-\\[repeat\\(2\\,max-content\\)\\]{grid-template-columns:repeat(2,max-content)}.grid-cols-\\[repeat\\(auto-fill\\,minmax\\(225px\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.m10{margin:40px}.m12{margin:48px}.m13{margin:52px}.m14{margin:56px}.m15{margin:60px}.m16{margin:64px}.m16\\.52{margin:66.08px}.m160{margin:640px}.m19{margin:76px}.m19\\.833{margin:79.332px}.m239\\.82{margin:959.28px}.m24{margin:96px}.m27\\.952{margin:111.808px}.m29\\.756{margin:119.024px}.m3{margin:12px}.m33{margin:132px}.m434\\.8{margin:1739.2px}.m5{margin:20px}.m9{margin:36px}.\\[\\&_\\[role\\=\\"separator\\"\\]\\]\\:mx-0 [role=separator],.mx-0{margin-left:0;margin-right:0}.\\[\\&_\\[role\\=\\"separator\\"\\]\\]\\:my-2px [role=separator],.my-2px{margin-top:2px;margin-bottom:2px}.\\[\\&\\.ant-divider-horizontal\\.ant-divider-with-text\\]\\:my-5px.ant-divider-horizontal.ant-divider-with-text,.my-5px{margin-top:5px;margin-bottom:5px}.\\[\\&\\.ant-empty-normal\\]\\:my-1.ant-empty-normal,.my-1{margin-top:4px;margin-bottom:4px}.mx-1,.mx-4px{margin-left:4px;margin-right:4px}.mx-2px{margin-left:2px;margin-right:2px}.mx-5px{margin-left:5px;margin-right:5px}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-7px{margin-top:7px;margin-bottom:7px}.my-auto{margin-top:auto;margin-bottom:auto}.\\[\\&_svg\\]\\:mr-5px svg,.mr-5px{margin-right:5px}.\\[\\&_svg\\]\\:mt--1px svg,.mt--1px{margin-top:-1px}.mb-0{margin-bottom:0}.mb-10px{margin-bottom:10px}.mb-20px{margin-bottom:20px}.mb-2px{margin-bottom:2px}.mb-40px{margin-bottom:40px}.mb-5px{margin-bottom:5px}.mb-8px{margin-bottom:8px}.ml-0{margin-left:0}.ml-1,.ml-4px{margin-left:4px}.ml-1\\.5,.ml-6px{margin-left:6px}.ml-10px{margin-left:10px}.ml-12px,.ml-3{margin-left:12px}.ml-15px{margin-left:15px}.ml-1px{margin-left:1px}.ml-20px,.ml-xl{margin-left:20px}.ml-25px{margin-left:25px}.ml-2px{margin-left:2px}.ml-30px{margin-left:30px}.ml-4{margin-left:16px}.ml-5px{margin-left:5px}.ml-8px{margin-left:8px}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\\!{margin-right:0!important}.mr-1,.mr-4px{margin-right:4px}.mr-10px{margin-right:10px}.mr-24px{margin-right:24px}.mr-2px{margin-right:2px}.mr-auto{margin-right:auto}.ms{margin-inline-start:16px}.mt--2px{margin-top:-2px}.mt-0{margin-top:0}.mt-0\\.5em{margin-top:.5em}.mt-1,.mt-4px{margin-top:4px}.mt-10px{margin-top:10px}.mt-15px{margin-top:15px}.mt-2,.mt-8px{margin-top:8px}.mt-20px{margin-top:20px}.mt-2px{margin-top:2px}.mt-3px{margin-top:3px}.mt-6px{margin-top:6px}.first\\:ml-0:first-child{margin-left:0}.first\\:mt-0:first-child,.first\\:mt-0px:first-child{margin-top:0}.box-content{box-sizing:content-box}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.contents{display:contents}.\\[\\&\\>\\.ant-checkbox-label\\]\\:hidden>.ant-checkbox-label,.hidden{display:none}.aspect-1{aspect-ratio:1}.aspect-16\\/9{aspect-ratio:16/9}.aspect-ratio-10\\/16{aspect-ratio:10/16}.\\[\\&_svg\\]\\:size-16px svg,.size-16px{width:16px;height:16px}.ant-spin .ant-spin-dot.\\[\\.ant-spin_\\.ant-spin-dot\\&\\]\\:size-25px,.size-25px{width:25px;height:25px}.size-1\\.1em{width:1.1em;height:1.1em}.size-1\\.3em{width:1.3em;height:1.3em}.size-12px{width:12px;height:12px}.size-13px{width:13px;height:13px}.size-14px{width:14px;height:14px}.size-15px{width:15px;height:15px}.size-17px{width:17px;height:17px}.size-18px{width:18px;height:18px}.size-1em{width:1em;height:1em}.size-2\\.5{width:10px;height:10px}.size-2\\.5em{width:2.5em;height:2.5em}.size-20px{width:20px;height:20px}.size-24px{width:24px;height:24px}.size-26px{width:26px;height:26px}.size-28px{width:28px;height:28px}.size-30px{width:30px;height:30px}.size-32px{width:32px;height:32px}.size-40px{width:40px;height:40px}.size-full{width:100%;height:100%}.h-\\[calc\\(100vh-30px\\)\\]{height:calc(100vh - 30px)}.h-0{height:0}.h-100\\%,.h-full{height:100%}.h-100vh{height:100vh}.h-14px{height:14px}.h-16px{height:16px}.h-19px{height:19px}.h-22px{height:22px}.h-24px{height:24px}.h-2px{height:2px}.h-34px{height:34px}.h-35px{height:35px}.h-3px{height:3px}.h-auto{height:auto}.h-fit{height:fit-content}.max-h-\\[calc\\(90vh-50px\\)\\]{max-height:calc(90vh - 50px)}.max-h-\\[max\\(362px\\,calc\\(90vh-50px-56px-15px\\)\\)\\]{max-height:max(362px,calc(90vh - 121px))}.max-h-130px{max-height:130px}.max-h-250px{max-height:250px}.max-h-50vh{max-height:50vh}.max-h-full{max-height:100%}.max-h-unset{max-height:unset}.max-w-\\[calc\\(100\\%-6px\\)\\]{max-width:calc(100% - 6px)}.max-w-130px{max-width:130px}.max-w-250px{max-width:250px}.max-w-288px{max-width:288px}.max-w-300px{max-width:300px}.max-w-350px{max-width:350px}.max-w-450px{max-width:450px}.min-h-100px{min-height:100px}.min-h-100vh{min-height:100vh}.min-h-25px{min-height:25px}.min-h-362px{min-height:362px}.min-h-40px{min-height:40px}.min-w-130px{min-width:130px}.min-w-180px{min-width:180px}.min-w-200px{min-width:200px}.min-w-24px{min-width:24px}.min-w-300px{min-width:300px}.min-w-32px{min-width:32px}.min-w-60px{min-width:60px}.min-w-95px{min-width:95px}.w-\\[calc\\(100vw-30px\\)\\]{width:calc(100vw - 30px)}.w-\\[max-content\\],.w-max{width:max-content}.w-0{width:0}.w-100\\%,.w-full{width:100%}.w-114px{width:114px}.w-130px{width:130px}.w-150px{width:150px}.w-160px{width:160px}.w-16px{width:16px}.w-215px{width:215px}.w-34px{width:34px}.w-500px{width:500px}.w-50px{width:50px}.w-55px{width:55px}.w-720px{width:720px}.w-740px{width:740px}.w-75px{width:75px}.flex{display:flex}.\\[\\&_\\.ant-checkbox-label\\]\\:inline-flex .ant-checkbox-label,.\\[\\&_\\.ant-radio-label\\]\\:inline-flex .ant-radio-label,.\\[\\&_\\.ant-radio-wrapper\\]\\:inline-flex .ant-radio-wrapper,.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.flex-shrink-1{flex-shrink:1}.flex-grow-1{flex-grow:1}.flex-basis-100\\%{flex-basis:100%}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.translate-x--50\\%{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y--50\\%{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y-100\\%{--un-translate-y:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-0{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:0deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-180{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.hover\\:rotate-90:hover{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:90deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-z-0{--un-rotate:0;--un-rotate-z:0deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-z-180deg{--un-rotate:0;--un-rotate-z:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.hover\\:scale-105\\%:hover{--un-scale-x:1.05;--un-scale-y:1.05;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-\\[edit\\]{cursor:edit}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.\\[\\&\\:disabled\\]\\:cursor-wait:disabled{cursor:wait}.cursor-text{cursor:text}.cursor-move{cursor:move}.cursor-grab{cursor:grab}.\\[\\&_\\.ant-checkbox-label\\]\\:select-none .ant-checkbox-label,.\\[\\&_svg\\]\\:select-none svg,.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.list-circle{list-style-type:circle}.list-disc{list-style-type:disc}.content-start{align-content:flex-start}.items-start{align-items:flex-start}.\\[\\&_\\.ant-checkbox-label\\]\\:items-center .ant-checkbox-label,.\\[\\&_\\.ant-radio-label\\]\\:items-center .ant-radio-label,.\\[\\&_\\.ant-radio-wrapper\\]\\:items-center .ant-radio-wrapper,.items-center{align-items:center}.self-start{align-self:flex-start}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-left{justify-content:left}.justify-right{justify-content:right}.gap-0{gap:0}.gap-10px{gap:10px}.gap-15px{gap:15px}.gap-1px{gap:1px}.gap-4px{gap:4px}.gap-x-1,.gap-x-4px{column-gap:4px}.gap-x-10px{column-gap:10px}.gap-x-12px{column-gap:12px}.gap-x-15px{column-gap:15px}.gap-x-2,.gap-x-8px{column-gap:8px}.gap-x-20px{column-gap:20px}.gap-x-25px{column-gap:25px}.gap-x-2px{column-gap:2px}.gap-x-40px{column-gap:40px}.gap-x-50px{column-gap:50px}.gap-x-5px{column-gap:5px}.gap-x-6px{column-gap:6px}.gap-y-0{row-gap:0}.gap-y-0\\.5em{row-gap:.5em}.gap-y-1,.gap-y-4px{row-gap:4px}.gap-y-10px{row-gap:10px}.gap-y-15px{row-gap:15px}.gap-y-2,.gap-y-8px{row-gap:8px}.gap-y-2px{row-gap:2px}.gap-y-3px{row-gap:3px}.gap-y-5px{row-gap:5px}.gap-y-6px{row-gap:6px}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-all{word-break:break-all}.b-1px,.border{border-width:1px}.b-2px{border-width:2px}.b-5px{border-width:5px}.b-b-1px{border-bottom-width:1px}.b-t-1px{border-top-width:1px}.border-b-0{border-bottom-width:0px}.b-\\#444{--un-border-opacity:1;border-color:rgb(68 68 68 / var(--un-border-opacity))}.b-gate-bg-lv-2{border-color:var(--bilibili-gate--bg--lv2)}.b-gate-border,.bilibili-gate-using-dark .dark\\:b-gate-border{border-color:var(--bilibili-gate--border-color)}.b-gate-primary{border-color:var(--bilibili-gate--primary-color)}.b-transparent{border-color:transparent}.b-white\\/20\\%{border-color:#fff3}.b-white\\/33\\%{border-color:#ffffff54}.border-white\\/40{border-color:#fff6}.bilibili-gate-using-light .light\\:hover\\:b-gate-primary:hover,.hover\\:b-gate-primary:hover{border-color:var(--bilibili-gate--primary-color)}.b-b-gate-bg-lv1{border-bottom-color:var(--bilibili-gate--bg--lv1)}.b-b-transparent{border-bottom-color:transparent}.b-t-\\$bilibili-gate--separator-color{border-top-color:var(--bilibili-gate--separator-color)}.rounded,.rounded-4px{border-radius:4px}.rounded-10px{border-radius:10px}.rounded-15px{border-radius:15px}.rounded-18px{border-radius:18px}.rounded-20px{border-radius:20px}.rounded-2px{border-radius:2px}.rounded-5px{border-radius:5px}.rounded-6px,.rounded-md{border-radius:6px}.rounded-8px,.rounded-lg{border-radius:8px}.rounded-9px{border-radius:9px}.rounded-full{border-radius:9999px}.rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.rounded-t-6px{border-top-left-radius:6px;border-top-right-radius:6px}.rounded-t-gate-video-card{border-top-left-radius:var(--bilibili-gate--video-card--border-radius);border-top-right-radius:var(--bilibili-gate--video-card--border-radius)}.b-solid{border-style:solid}.border-none{border-style:none}.b-b-solid{border-bottom-style:solid}.b-t-solid{border-top-style:solid}.\\[\\&\\:has\\(svg\\.peeking\\)\\]\\:bg-transparent:has(svg.peeking),.bg-transparent{background-color:transparent}.bg-\\[rgb\\(33_33_33_\\/_0\\.7\\)\\]{--un-bg-opacity:.7;background-color:rgb(33 33 33 / var(--un-bg-opacity))}.bg-\\$brand_blue{background-color:var(--brand_blue)}.bg-\\$brand_pink{background-color:var(--brand_pink)}.bg-black\\/10{background-color:#0000001a}.bg-black\\/50{background-color:#00000080}.bg-black\\/65{background-color:#000000a6}.bg-black\\/90\\%{background-color:#000000e6}.bg-gate-bg{background-color:var(--bilibili-gate--bg)}.bg-gate-bg-lv1{background-color:var(--bilibili-gate--bg--lv1)}.bg-gate-primary{background-color:var(--bilibili-gate--primary-color)}.bg-gate-primary-lv-3{background-color:var(--bilibili-gate--primary-color--lv3)}.bg-gate-primary\\!{background-color:var(--bilibili-gate--primary-color)!important}.bg-white\\/14\\%{background-color:#ffffff24}.bg-white\\/50\\%{background-color:#ffffff80}.hover\\:bg-gate-bg-lv-3:hover{background-color:var(--bilibili-gate--bg--lv3)}.hover\\:bg-gate-bg-lv1:hover{background-color:var(--bilibili-gate--bg--lv1)}.hover\\:bg-gate-primary-lv1\\!:hover{background-color:var(--bilibili-gate--primary-color--lv1)!important}.hover\\:bg-gate-primary:hover{background-color:var(--bilibili-gate--primary-color)}.hover\\:bg-white\\/40\\%:hover{background-color:#fff6}.\\[\\&_g\\]\\:fill-inherit g{fill:inherit}.\\[\\&_path\\]\\:fill-gate-primary path,.fill-gate-primary{fill:var(--bilibili-gate--primary-color)}.fill-none{fill:none}.\\[\\&_\\.circle\\]\\:stroke-current .circle{stroke:currentColor}.object-cover{object-fit:cover}.object-contain{object-fit:contain}.p-10px{padding:10px}.p-15px{padding:15px}.p-1px{padding:1px}.p-20px{padding:20px}.p-2px{padding:2px}.p-4px{padding:4px}.p-8px{padding:8px}.\\[\\&_\\.ant-radio-button-wrapper\\]\\:px-10px .ant-radio-button-wrapper{padding-left:10px;padding-right:10px}.\\[\\&\\.ant-empty-normal\\]\\:py-5px.ant-empty-normal,.py-5px{padding-top:5px;padding-bottom:5px}.p-x-2,.px-8px{padding-left:8px;padding-right:8px}.p-y-1,.py-4px{padding-top:4px;padding-bottom:4px}.px,.px-4{padding-left:16px;padding-right:16px}.px-0{padding-left:0;padding-right:0}.px-12px,.px-3{padding-left:12px;padding-right:12px}.px-15px{padding-left:15px;padding-right:15px}.px-24px{padding-left:24px;padding-right:24px}.px-2px{padding-left:2px;padding-right:2px}.px-4px{padding-left:4px;padding-right:4px}.px-5px{padding-left:5px;padding-right:5px}.px-6px{padding-left:6px;padding-right:6px}.py-0{padding-top:0;padding-bottom:0}.py-10px{padding-top:10px;padding-bottom:10px}.py-12px{padding-top:12px;padding-bottom:12px}.py-2,.py-8px{padding-top:8px;padding-bottom:8px}.py-2px{padding-top:2px;padding-bottom:2px}.py-30px{padding-top:30px;padding-bottom:30px}.py-3px{padding-top:3px;padding-bottom:3px}.py-6px{padding-top:6px;padding-bottom:6px}.\\!\\[\\&_\\.ant-radio-label\\]\\:pl-4px .ant-radio-label{padding-left:4px!important}.pb-15px{padding-bottom:15px}.pb-2px{padding-bottom:2px}.pb1257{padding-bottom:5028px}.pl-10px{padding-left:10px}.pl-16px{padding-left:16px}.pl-20px{padding-left:20px}.pl-2px{padding-left:2px}.pl-4px{padding-left:4px}.pl-6px{padding-left:6px}.pr-0{padding-right:0}.pr-10px{padding-right:10px}.pr-12px{padding-right:12px}.pr-15px{padding-right:15px}.pr-18px{padding-right:18px}.pr-6px{padding-right:6px}.ps{padding-inline-start:16px}.pt-0{padding-top:0}.pt-15px{padding-top:15px}.pt-5px{padding-top:5px}.text-center{text-align:center}.align-top{vertical-align:top}.\\[\\&\\.ant-divider-horizontal\\.ant-divider-with-text\\]\\:text-14px.ant-divider-horizontal.ant-divider-with-text,.text-14px,.text-size-14px{font-size:14px}.text-\\[1\\.5rem\\]{font-size:24px}.text-1\\.25em{font-size:1.25em}.text-1\\.2em{font-size:1.2em}.text-1\\.4em{font-size:1.4em}.text-1\\.5em,.text-size-1\\.5em{font-size:1.5em}.text-12px,.text-size-12px{font-size:12px}.text-13px,.text-size-13px{font-size:13px}.text-15px{font-size:15px}.text-15px\\!{font-size:15px!important}.text-1em{font-size:1em}.text-20px,.text-size-20px{font-size:20px}.text-2em{font-size:2em}.text-size-0{font-size:0}.text-size-1\\.3em{font-size:1.3em}.text-size-120\\%{font-size:120%}.text-size-16px{font-size:16px}.color-gate-primary,.text-gate-primary{color:var(--bilibili-gate--primary-color)}.text-gate-text{color:var(--bilibili-gate--text-color)}.text-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.color-white,.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-yellow-400{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.hover\\:color-gate-primary:hover{color:var(--bilibili-gate--primary-color)}.color-inherit{color:inherit}.font-600{font-weight:600}.font-700{font-weight:700}.\\[\\&_\\.ant-btn-icon\\]\\:line-height-0 .ant-btn-icon,.line-height-\\[0\\]{line-height:0}.line-height-\\[1\\.2\\]{line-height:1.2}.line-height-\\[1\\]{line-height:1}.line-height-\\[unset\\],.line-height-unset{line-height:unset}.line-height-1\\.5{line-height:6px}.line-height-14px{line-height:14px}.line-height-17px{line-height:17px}.line-height-18px{line-height:18px}.line-height-normal{line-height:1.5}.line-height-snug{line-height:1.375}.line-height-tight{line-height:1.25}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.italic{font-style:italic}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.\\[\\&\\:has\\(svg\\.peeking\\)\\]\\:opacity-10:has(svg.peeking){opacity:.1}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.\\[\\&\\.ant-btn\\:not\\(\\:disabled\\)\\:focus-visible\\]\\:outline-0.ant-btn:not(:disabled):focus-visible{outline-width:0px}.outline-none\\!{outline:2px solid transparent!important;outline-offset:2px!important}.ring-1px{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-gate-border{--un-ring-color:var(--bilibili-gate--border-color) }.ring-gate-primary{--un-ring-color:var(--bilibili-gate--primary-color) }.backdrop-blur-10px{--un-backdrop-blur:blur(10px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-200{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.transition-300{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-duration-150{transition-duration:.15s}.transition-duration-300{transition-duration:.3s}.ease,.ease-in-out,.transition-ease,.transition-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.transition-property-\\[border-color\\]{transition-property:border-color}.transition-property-all{transition-property:all}.transition-property-right\\,left{transition-property:right,left}.transition-property-transform{transition-property:transform}.\\@container,.\\@container-inline-size{container-type:inline-size}@media(min-width:1280px){.xl\\:gap-x-8px{column-gap:8px}}.bilibili-gate-root .bili-video-card__skeleton--cover,.bilibili-gate-root .bili-video-card__skeleton--text,.bilibili-gate-root .bili-video-card__skeleton--light,.bilibili-gate-root .bili-video-card__skeleton--avatar{background:linear-gradient(135deg,#0000000f 25%,#00000026 37%,#0000000f 63%)}.bilibili-gate-root .bili-video-card__skeleton--text.tiny{margin-top:4px;width:15%}html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--cover,html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--text,html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--light,html.bilibili-gate-using-dark .bilibili-gate-root .bili-video-card__skeleton--avatar{background-color:#444}._skeleton-active_wlycr_12 .bili-video-card__skeleton--cover,._skeleton-active_wlycr_12 .bili-video-card__skeleton--text,._skeleton-active_wlycr_12 .bili-video-card__skeleton--light,._skeleton-active_wlycr_12 .bili-video-card__skeleton--avatar{background-size:400% 100%;animation-name:_ant-skeleton-loading_wlycr_1;animation-duration:2s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_wlycr_1{0%{background-position:100% 50%}80%,to{background-position:0 50%}} ');

  function KX(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:true,get:()=>r[o]});}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const YX='@charset "UTF-8";:root{--bilibili-gate--font: "Alibaba PuHuiTi 3.0", "PingFang SC", "HarmonyOS_Regular", "Helvetica Neue", "Microsoft YaHei", sans-serif}:root{--bilibili-gate--primary-color--lv1: oklch(from var(--bilibili-gate--primary-color) calc(l - .04) c h/alpha);--bilibili-gate--primary-color--lv2: oklch(from var(--bilibili-gate--primary-color) calc(l - .08) c h/alpha);--bilibili-gate--primary-color--lv3: oklch(from var(--bilibili-gate--primary-color) calc(l - .12) c h/alpha);--bilibili-gate--border-color: oklch(from var(--bilibili-gate--bg) calc(l - .05) c h/alpha);--bilibili-gate--bg--lv1: oklch(from var(--bilibili-gate--bg) calc(l - .04) c h/alpha);--bilibili-gate--bg--lv2: oklch(from var(--bilibili-gate--bg) calc(l - .08) c h/alpha);--bilibili-gate--bg--lv3: oklch(from var(--bilibili-gate--bg) calc(l - .12) c h/alpha)}:root.bilibili-gate-using-dark{--bilibili-gate--border-color: oklch(from var(--bilibili-gate--bg) calc(l + .07) c h/alpha);--bilibili-gate--bg--lv1: oklch(from var(--bilibili-gate--bg) calc(l + .03) c h/alpha);--bilibili-gate--bg--lv2: oklch(from var(--bilibili-gate--bg) calc(l + .08) c h/alpha);--bilibili-gate--bg--lv3: oklch(from var(--bilibili-gate--bg) calc(l + .12) c h/alpha)}.bilibili-gate-root{font-family:var(--custom-font-family--options--font-family, var(--bilibili-gate--font))!important;font-size:14px;--back-top-right: 24px}.bilibili-gate-root dd,.bilibili-gate-root dl,.bilibili-gate-root ol,.bilibili-gate-root ul{font-size:inherit}.bilibili-gate-root li{list-style:unset}.bilibili-gate-root .bili-video-card .bili-video-card__info--tit:hover,.bilibili-gate-root .bili-video-card a:not(.disable-hover):hover{color:var(--bilibili-gate--primary-color)!important}.bilibili-gate-root .ant-btn{font-size:13px}.bilibili-gate-root img:-moz-loading{visibility:hidden}@media(max-width:1440px){.bilibili-gate-root{--back-top-right: 16px}}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}body .ant-btn.ant-btn-variant-solid:focus,body .ant-btn.ant-btn-variant-solid:active{color:var(--ant-button-primary-color);background:var(--ant-color-primary)}';WX(YX);const XX="_cls--gate-video-grid--divider_h4766_1",QX="_cls--gate-video-card--context-menu--root_h4766_13",bM="_video-grid_ucv12_1",zL="_grid-template-columns-using-var-col_ucv12_9",kL="_grid-template-columns-using-card-min-width_ucv12_14",FL="_video-grid-addon-center-empty_ucv12_19",HL="_video-grid-bili-feed4_ucv12_26",VL="_video-grid-custom_ucv12_47",jL="_narrow-mode_ucv12_63",ZX={videoGrid:bM,gridTemplateColumnsUsingVarCol:zL,gridTemplateColumnsUsingCardMinWidth:kL,videoGridAddonCenterEmpty:FL,videoGridBiliFeed4:HL,videoGridCustom:VL,narrowMode:jL},d5=Object.freeze(Object.defineProperty({__proto__:null,default:ZX,gridTemplateColumnsUsingCardMinWidth:kL,gridTemplateColumnsUsingVarCol:zL,narrowMode:jL,videoGrid:bM,videoGridAddonCenterEmpty:FL,videoGridBiliFeed4:HL,videoGridCustom:VL},Symbol.toStringTag,{value:"Module"}));function JX(e,t){const n={};for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);n[i]=(n[i]??0)+1;}return n}function b0(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function eQ(e,t){const n={};for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);Object.hasOwn(n,i)||(n[i]=[]),n[i].push(o);}return n}function tQ(e,t,n){return e<t?n==="asc"?-1:1:e>t?n==="asc"?1:-1:0}function xs(e,t,n){return e.slice().sort((r,o)=>{const i=n.length;for(let a=0;a<t.length;a++){const l=i>a?n[a]:n[i-1],u=t[a],d=typeof u=="function",m=d?u(r):r[u],p=d?u(o):o[u],g=tQ(m,p,l);if(g!==0)return g}return 0})}function nQ(e,t){if(t==null&&(t=e,e=0),e>=t)throw new Error("Invalid input: The maximum value must be greater than the minimum value.");return Math.random()*(t-e)+e}function rQ(e,t){return Math.floor(nQ(e,t))}function Ci(e){const t=e.slice();for(let n=t.length-1;n>=1;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]];}return t}function UL(e){return typeof e=="symbol"||e instanceof Symbol}function oQ(e){return UL(e)?NaN:Number(e)}function iQ(e){return e?(e=oQ(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function aQ(e){const t=iQ(e),n=t%1;return n?t-n:t}function ky(e){return [...new Set(e)]}function Zl(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r,e);n.has(i)||n.set(i,o);}return Array.from(n.values())}let sQ=class extends Error{constructor(t="The operation was aborted"){super(t),this.name="AbortError";}};function lQ(e,t,{signal:n,edges:r}={}){let o,i=null;const a=r!=null&&r.includes("leading"),l=r==null||r.includes("trailing"),u=()=>{i!==null&&(e.apply(o,i),o=void 0,i=null);},d=()=>{l&&u(),b();};let m=null;const p=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,d();},t);},g=()=>{m!==null&&(clearTimeout(m),m=null);},b=()=>{g(),o=void 0,i=null;},y=()=>{u();},S=function(...C){if(n?.aborted)return;o=this,i=C;const w=m==null;p(),a&&w&&u();};return S.schedule=p,S.cancel=b,S.flush=y,n?.addEventListener("abort",b,{once:true}),S}function WL(e){return e}function cQ(e,t={}){const{cache:n=new Map,getCacheKey:r}=t,o=function(i){const a=r?r(i):i;if(n.has(a))return n.get(a);const l=e.call(this,i);return n.set(a,l),l};return o.cache=n,o}function qL(){}function Rf(e){let t=false,n;return function(...r){return t||(t=true,n=e(...r)),n}}function gn(e,{signal:t}={}){return new Promise((n,r)=>{const o=()=>{r(new sQ);},i=()=>{clearTimeout(a),o();};if(t?.aborted)return o();const a=setTimeout(()=>{t?.removeEventListener("abort",i),n();},e);t?.addEventListener("abort",i,{once:true});})}function Jl(e,t,{signal:n,edges:r=["leading","trailing"]}={}){let o=null;const i=lQ(function(...l){o=Date.now(),e.apply(this,l);},t,{signal:n,edges:r}),a=function(...l){if(o==null&&(o=Date.now()),Date.now()-o>=t){o=Date.now(),e.apply(this,l),i.cancel(),i.schedule();return}i.apply(this,l);};return a.cancel=i.cancel,a.flush=i.flush,a}function GL(e,t,n=1){if(t==null&&(t=e,e=0),!Number.isInteger(n)||n===0)throw new Error("The step value must be a non-zero integer.");const r=Math.max(Math.ceil((t-e)/n),0),o=new Array(r);for(let i=0;i<r;i++)o[i]=e+i*n;return o}function KL(e){return e==null||typeof e!="object"&&typeof e!="function"}function YL(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mx(e){if(KL(e))return e;if(Array.isArray(e)||YL(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){const r=new n(e);return r.lastIndex=e.lastIndex,r}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let r;return e instanceof AggregateError?r=new n(e.errors,e.message,{cause:e.cause}):r=new n(e.message,{cause:e.cause}),r.stack=e.stack,Object.assign(r,e),r}if(typeof File<"u"&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){const r=Object.create(t);return Object.assign(r,e)}return e}function F$(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function H$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const XL="[object RegExp]",QL="[object String]",ZL="[object Number]",JL="[object Boolean]",V$="[object Arguments]",eB="[object Symbol]",tB="[object Date]",nB="[object Map]",rB="[object Set]",oB="[object Array]",uQ="[object Function]",iB="[object ArrayBuffer]",Ib="[object Object]",dQ="[object Error]",aB="[object DataView]",sB="[object Uint8Array]",lB="[object Uint8ClampedArray]",cB="[object Uint16Array]",uB="[object Uint32Array]",fQ="[object BigUint64Array]",dB="[object Int8Array]",fB="[object Int16Array]",mB="[object Int32Array]",mQ="[object BigInt64Array]",hB="[object Float32Array]",pB="[object Float64Array]";function zd(e,t,n,r=new Map,o=void 0){const i=o?.(e,t,n,r);if(i!==void 0)return i;if(KL(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const a=new Array(e.length);r.set(e,a);for(let l=0;l<e.length;l++)a[l]=zd(e[l],l,n,r,o);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){const a=new Map;r.set(e,a);for(const[l,u]of e)a.set(l,zd(u,l,n,r,o));return a}if(e instanceof Set){const a=new Set;r.set(e,a);for(const l of e)a.add(zd(l,void 0,n,r,o));return a}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(YL(e)){const a=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,a);for(let l=0;l<e.length;l++)a[l]=zd(e[l],l,n,r,o);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,a),bl(a,e,n,r,o),a}if(typeof File<"u"&&e instanceof File){const a=new File([e],e.name,{type:e.type});return r.set(e,a),bl(a,e,n,r,o),a}if(typeof Blob<"u"&&e instanceof Blob){const a=new Blob([e],{type:e.type});return r.set(e,a),bl(a,e,n,r,o),a}if(e instanceof Error){const a=new e.constructor;return r.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,bl(a,e,n,r,o),a}if(e instanceof Boolean){const a=new Boolean(e.valueOf());return r.set(e,a),bl(a,e,n,r,o),a}if(e instanceof Number){const a=new Number(e.valueOf());return r.set(e,a),bl(a,e,n,r,o),a}if(e instanceof String){const a=new String(e.valueOf());return r.set(e,a),bl(a,e,n,r,o),a}if(typeof e=="object"&&hQ(e)){const a=Object.create(Object.getPrototypeOf(e));return r.set(e,a),bl(a,e,n,r,o),a}return e}function bl(e,t,n=e,r,o){const i=[...Object.keys(t),...F$(t)];for(let a=0;a<i.length;a++){const l=i[a],u=Object.getOwnPropertyDescriptor(e,l);(u==null||u.writable)&&(e[l]=zd(t[l],l,n,r,o));}}function hQ(e){switch(H$(e)){case V$:case oB:case iB:case aB:case JL:case tB:case hB:case pB:case dB:case fB:case mB:case nB:case ZL:case Ib:case XL:case rB:case QL:case eB:case sB:case lB:case cB:case uB:return  true;default:return  false}}function sf(e){return zd(e,void 0,e,new Map,void 0)}function lf(e){if(!e||typeof e!="object")return  false;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":false}function ep(e){return e==="__proto__"}function Ss(e,t,n){const r=Object.keys(t);for(let o=0;o<r.length;o++){const i=r[o];if(ep(i))continue;const a=t[i],l=e[i],u=n(l,a,i,e,t);u!==void 0?e[i]=u:Array.isArray(a)?Array.isArray(l)?e[i]=Ss(l,a,n):e[i]=Ss([],a,n):lf(a)?lf(l)?e[i]=Ss(l,a,n):e[i]=Ss({},a,n):(l===void 0||a!==void 0)&&(e[i]=a);}return e}function gB(e,t){const n={...e};for(let r=0;r<t.length;r++){const o=t[r];delete n[o];}return n}function hu(e,t){const n={};for(let r=0;r<t.length;r++){const o=t[r];Object.hasOwn(e,o)&&(n[o]=e[o]);}return n}const pQ=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function gQ(e){return Array.from(e.match(pQ)??[])}function vQ(e,t){return Ss(mx(e),t,function n(r,o){if(Array.isArray(o))return Array.isArray(r)?Ss(mx(r),o,n):Ss([],o,n);if(lf(o))return lf(r)?Ss(mx(r),o,n):Ss({},o,n)})}function vB(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function bQ(e,t,n){return Sh(e,t,void 0,void 0,void 0,void 0,n)}function Sh(e,t,n,r,o,i,a){const l=a(e,t,n,r,o,i);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case "bigint":case "string":case "boolean":case "symbol":case "undefined":return e===t;case "number":return e===t||Object.is(e,t);case "function":return e===t;case "object":return Ph(e,t,i,a)}return Ph(e,t,i,a)}function Ph(e,t,n,r){if(Object.is(e,t))return  true;let o=H$(e),i=H$(t);if(o===V$&&(o=Ib),i===V$&&(i=Ib),o!==i)return  false;switch(o){case QL:return e.toString()===t.toString();case ZL:{const u=e.valueOf(),d=t.valueOf();return vB(u,d)}case JL:case tB:case eB:return Object.is(e.valueOf(),t.valueOf());case XL:return e.source===t.source&&e.flags===t.flags;case uQ:return e===t}n=n??new Map;const a=n.get(e),l=n.get(t);if(a!=null&&l!=null)return a===t;n.set(e,t),n.set(t,e);try{switch(o){case nB:{if(e.size!==t.size)return !1;for(const[u,d]of e.entries())if(!t.has(u)||!Sh(d,t.get(u),u,e,t,n,r))return !1;return !0}case rB:{if(e.size!==t.size)return !1;const u=Array.from(e.values()),d=Array.from(t.values());for(let m=0;m<u.length;m++){const p=u[m],g=d.findIndex(b=>Sh(p,b,void 0,e,t,n,r));if(g===-1)return !1;d.splice(g,1);}return !0}case oB:case sB:case lB:case cB:case uB:case fQ:case dB:case fB:case mB:case mQ:case hB:case pB:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return !1;for(let u=0;u<e.length;u++)if(!Sh(e[u],t[u],u,e,t,n,r))return !1;return !0}case iB:return e.byteLength!==t.byteLength?!1:Ph(new Uint8Array(e),new Uint8Array(t),n,r);case aB:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Ph(new Uint8Array(e),new Uint8Array(t),n,r);case dQ:return e.name===t.name&&e.message===t.message;case Ib:{if(!(Ph(e.constructor,t.constructor,n,r)||lf(e)&&lf(t)))return !1;const d=[...Object.keys(e),...F$(e)],m=[...Object.keys(t),...F$(t)];if(d.length!==m.length)return !1;for(let p=0;p<d.length;p++){const g=d[p],b=e[g];if(!Object.hasOwn(t,g))return !1;const y=t[g];if(!Sh(b,y,g,e,t,n,r))return !1}return !0}default:return !1}}finally{n.delete(e),n.delete(t);}}function fa(e,t){return bQ(e,t,qL)}function Va(e){return e==null}function yQ(e){const t=gQ(e.trim());let n="";for(let r=0;r<t.length;r++){const o=t[r];n&&(n+=" "),n+=o[0].toUpperCase()+o.slice(1).toLowerCase();}return n}function zl(e){try{return [null,e()]}catch(t){return [t,null]}}async function pu(e){try{return [null,await e()]}catch(t){return [t,null]}}function Ir(e,t){if(!e)throw typeof t=="string"?new Error(t):t}function SQ(e){switch(typeof e){case "number":case "symbol":return  false;case "string":return e.includes(".")||e.includes("[")||e.includes("]")}}function yM(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function bB(e){if(e==null)return "";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(bB).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function yB(e){if(Array.isArray(e))return e.map(yM);if(typeof e=="symbol")return [e];e=bB(e);const t=[],n=e.length;if(n===0)return t;let r=0,o="",i="",a=false;for(e.charCodeAt(0)===46&&(t.push(""),r++);r<n;){const l=e[r];i?l==="\\"&&r+1<n?(r++,o+=e[r]):l===i?i="":o+=l:a?l==='"'||l==="'"?i=l:l==="]"?(a=false,t.push(o),o=""):o+=l:l==="["?(a=true,o&&(t.push(o),o="")):l==="."?o&&(t.push(o),o=""):o+=l,r++;}return o&&t.push(o),t}function Ao(e,t,n){if(e==null)return n;switch(typeof t){case "string":{if(ep(t))return n;const r=e[t];return r===void 0?SQ(t)?Ao(e,yB(t),n):n:r}case "number":case "symbol":{typeof t=="number"&&(t=yM(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return CQ(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),ep(t))return n;const r=e[t];return r===void 0?n:r}}}function CQ(e,t,n){if(t.length===0)return n;let r=e;for(let o=0;o<t.length;o++){if(r==null||ep(t[o]))return n;r=r[t[o]];}return r===void 0?n:r}function f5(e){return e!==null&&(typeof e=="object"||typeof e=="function")}const xQ=/^(?:0|[1-9]\d*)$/;function wQ(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case "number":return Number.isInteger(e)&&e>=0&&e<t;case "symbol":return  false;case "string":return xQ.test(e)}}const $Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EQ=/^\w*$/;function MQ(e,t){return Array.isArray(e)?false:typeof e=="number"||typeof e=="boolean"||e==null||UL(e)?true:typeof e=="string"&&(EQ.test(e)||!$Q.test(e))||t!=null&&Object.hasOwn(t,e)}const RQ=(e,t,n)=>{const r=e[t];(!(Object.hasOwn(e,t)&&vB(r,n))||n===void 0&&!(t in e))&&(e[t]=n);};function TQ(e,t,n,r){if(e==null&&!f5(e))return e;let o;MQ(t,e)?o=[t]:Array.isArray(t)?o=t:o=yB(t);const i=n(Ao(e,o));let a=e;for(let l=0;l<o.length&&a!=null;l++){const u=yM(o[l]);if(ep(u))continue;let d;if(l===o.length-1)d=i;else {const m=a[u],p=r?.(m,u,e);d=p!==void 0?p:f5(m)?m:wQ(o[l+1])?[]:{};}RQ(a,u,d),a=a[u];}return e}function Tf(e,t,n){return TQ(e,t,()=>n,()=>{})}function AQ(e,t){if(e=aQ(e),e<1||!Number.isSafeInteger(e))return [];const n=new Array(e);for(let r=0;r<e;r++)n[r]=typeof t=="function"?t(r):r;return n}const NQ=Symbol(),SM=Symbol(),Ch="a",SB="f",m5="p",CB="c",xB="t",CM="h",Ih="w",xM="o",wM="k";let PQ=(e,t)=>new Proxy(e,t);const j$=Object.getPrototypeOf,U$=new WeakMap,wB=e=>e&&(U$.has(e)?U$.get(e):j$(e)===Object.prototype||j$(e)===Array.prototype),y0=e=>typeof e=="object"&&e!==null,IQ=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),OQ=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=true;}),Object.create(j$(e),t)},DQ=(e,t)=>{const n={[SB]:t};let r=false;const o=(l,u)=>{if(!r){let d=n[Ch].get(e);if(d||(d={},n[Ch].set(e,d)),l===Ih)d[Ih]=true;else {let m=d[l];m||(m=new Set,d[l]=m),m.add(u);}}},i=()=>{r=true,n[Ch].delete(e);},a={get(l,u){return u===SM?e:(o(wM,u),$B(Reflect.get(l,u),n[Ch],n[CB],n[xB]))},has(l,u){return u===NQ?(i(),true):(o(CM,u),Reflect.has(l,u))},getOwnPropertyDescriptor(l,u){return o(xM,u),Reflect.getOwnPropertyDescriptor(l,u)},ownKeys(l){return o(Ih),Reflect.ownKeys(l)}};return t&&(a.set=a.deleteProperty=()=>false),[a,n]},$M=e=>e[SM]||e,$B=(e,t,n,r)=>{if(!wB(e))return e;let o=r&&r.get(e);if(!o){const u=$M(e);IQ(u)?o=[u,OQ(u)]:o=[u],r?.set(e,o);}const[i,a]=o;let l=n&&n.get(i);return (!l||l[1][SB]!==!!a)&&(l=DQ(i,!!a),l[1][m5]=PQ(a||i,l[0]),n&&n.set(i,l)),l[1][Ch]=t,l[1][CB]=n,l[1][xB]=r,l[1][m5]},_Q=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},EB=(e,t,n,r,o=Object.is)=>{if(o(e,t))return  false;if(!y0(e)||!y0(t))return  true;const i=n.get($M(e));if(!i)return  true;if(r){if(r.get(e)===t)return  false;r.set(e,t);}let a=null;for(const l of i[CM]||[])if(a=Reflect.has(e,l)!==Reflect.has(t,l),a)return a;if(i[Ih]===true){if(a=_Q(e,t),a)return a}else for(const l of i[xM]||[]){const u=!!Reflect.getOwnPropertyDescriptor(e,l),d=!!Reflect.getOwnPropertyDescriptor(t,l);if(a=u!==d,a)return a}for(const l of i[wM]||[])if(a=EB(e[l],t[l],n,r,o),a)return a;if(a===null)throw new Error("invalid used");return a},LQ=e=>wB(e)&&e[SM]||null,h5=(e,t=true)=>{U$.set(e,t);},BQ=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,l)=>{var u,d,m;if(o.has(a))return;y0(a)&&o.add(a);const p=y0(a)&&t.get($M(a));if(p){if((u=p[CM])===null||u===void 0||u.forEach(g=>{const b=`:has(${String(g)})`;r.push(l?[...l,b]:[b]);}),p[Ih]===true){const g=":ownKeys";r.push(l?[...l,g]:[g]);}else (d=p[xM])===null||d===void 0||d.forEach(g=>{const b=`:hasOwn(${String(g)})`;r.push(l?[...l,b]:[b]);});(m=p[wM])===null||m===void 0||m.forEach(g=>{"value"in(Object.getOwnPropertyDescriptor(a,g)||{})&&i(a[g],l?[...l,g]:[g]);});}else l&&r.push(l);};return i(e),r},S0={},EM=e=>typeof e=="object"&&e!==null,zQ=e=>EM(e)&&!Gp.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),MB=(e,t)=>{const n=W$.get(e);if(n?.[0]===t)return n[1];const r=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return h5(r,true),W$.set(e,[t,r]),Reflect.ownKeys(e).forEach(o=>{if(Object.getOwnPropertyDescriptor(r,o))return;const i=Reflect.get(e,o),{enumerable:a}=Reflect.getOwnPropertyDescriptor(e,o),l={value:i,enumerable:a,configurable:true};if(Gp.has(i))h5(i,false);else if(Ns.has(i)){const[u,d]=Ns.get(i);l.value=MB(u,d());}Object.defineProperty(r,o,l);}),Object.preventExtensions(r)},kQ=(e,t,n,r)=>({deleteProperty(o,i){Reflect.get(o,i),n(i);const a=Reflect.deleteProperty(o,i);return a&&r(void 0),a},set(o,i,a,l){const u=!e()&&Reflect.has(o,i),d=Reflect.get(o,i,l);if(u&&(C0(d,a)||tp.has(a)&&C0(d,tp.get(a))))return  true;n(i),EM(a)&&(a=LQ(a)||a);const m=!Ns.has(a)&&G$(a)?kn(a):a;return t(i,m),Reflect.set(o,i,m,l),r(void 0),true}}),Ns=new WeakMap,Gp=new WeakSet,W$=new WeakMap,Ob=[1],tp=new WeakMap;let C0=Object.is,q$=(e,t)=>new Proxy(e,t),G$=zQ,K$=MB,Y$=kQ;function kn(e={}){if(!EM(e))throw new Error("object required");const t=tp.get(e);if(t)return t;let n=Ob[0];const r=new Set,o=(C,w=++Ob[0])=>{n!==w&&(i=n=w,r.forEach($=>$(C,w)));};let i=n;const a=(C=Ob[0])=>(i!==C&&(i=C,u.forEach(([w])=>{const $=w[1](C);$>n&&(n=$);})),n),l=C=>(w,$)=>{let E;w&&(E=[...w],E[1]=[C,...E[1]]),o(E,$);},u=new Map,d=(C,w)=>{const $=!Gp.has(w)&&Ns.get(w);if($){if((S0?"production":void 0)!=="production"&&u.has(C))throw new Error("prop listener already exists");if(r.size){const E=$[2](l(C));u.set(C,[$,E]);}else u.set(C,[$]);}},m=C=>{var w;const $=u.get(C);$&&(u.delete(C),(w=$[1])==null||w.call($));},p=C=>(r.add(C),r.size===1&&u.forEach(([$,E],T)=>{if((S0?"production":void 0)!=="production"&&E)throw new Error("remove already exists");const R=$[2](l(T));u.set(T,[$,R]);}),()=>{r.delete(C),r.size===0&&u.forEach(([$,E],T)=>{E&&(E(),u.set(T,[$]));});});let g=true;const b=Y$(()=>g,d,m,o),y=q$(e,b);tp.set(e,y);const S=[e,a,p];return Ns.set(y,S),Reflect.ownKeys(e).forEach(C=>{const w=Object.getOwnPropertyDescriptor(e,C);"value"in w&&w.writable&&(y[C]=e[C]);}),g=false,y}function p5(e){const t=Ns.get(e);return t?.[1]()}function Qa(e,t,n){const r=Ns.get(e);(S0?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],a=r[2];let l=false;const d=a(m=>{if(m&&i.push(m),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(i.splice(0));}));});return l=true,()=>{l=false,d();}}function Vr(e){const t=Ns.get(e);(S0?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[n,r]=t;return K$(n,r())}function RB(e){return Gp.add(e),e}function MM(){return {proxyStateMap:Ns,refSet:Gp,snapCache:W$,versionHolder:Ob,proxyCache:tp}}function FQ(e,t){switch(e){case "objectIs":C0=t(C0);break;case "newProxy":q$=t(q$);break;case "canProxy":G$=t(G$);break;case "createSnapshot":K$=t(K$);break;case "createHandler":Y$=t(Y$);break;default:throw new Error("unknown function")}}var Kv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Do(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HQ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=false;try{o=this instanceof r;}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:true}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:true,get:function(){return e[r]}});}),n}var hx={exports:{}},Vt={};var g5;function VQ(){if(g5)return Vt;g5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var y={isMounted:function(){return  false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function w(D,B,K){this.props=D,this.context=B,this.refs=C,this.updater=K||y;}w.prototype.isReactComponent={},w.prototype.setState=function(D,B){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,B,"setState");},w.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate");};function $(){}$.prototype=w.prototype;function E(D,B,K){this.props=D,this.context=B,this.refs=C,this.updater=K||y;}var T=E.prototype=new $;T.constructor=E,S(T,w.prototype),T.isPureReactComponent=true;var R=Array.isArray;function I(){}var N={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function O(D,B,K){var J=K.ref;return {$$typeof:e,type:D,key:B,ref:J!==void 0?J:null,props:K}}function _(D,B){return O(D.type,B,D.props)}function L(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function k(D){var B={"=":"=0",":":"=2"};return "$"+D.replace(/[=:]/g,function(K){return B[K]})}var W=/\/+/g;function q(D,B){return typeof D=="object"&&D!==null&&D.key!=null?k(""+D.key):B.toString(36)}function F(D){switch(D.status){case "fulfilled":return D.value;case "rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(I,I):(D.status="pending",D.then(function(B){D.status==="pending"&&(D.status="fulfilled",D.value=B);},function(B){D.status==="pending"&&(D.status="rejected",D.reason=B);})),D.status){case "fulfilled":return D.value;case "rejected":throw D.reason}}throw D}function z(D,B,K,J,ee){var te=typeof D;(te==="undefined"||te==="boolean")&&(D=null);var re=false;if(D===null)re=true;else switch(te){case "bigint":case "string":case "number":re=true;break;case "object":switch(D.$$typeof){case e:case t:re=true;break;case m:return re=D._init,z(re(D._payload),B,K,J,ee)}}if(re)return ee=ee(D),re=J===""?"."+q(D,0):J,R(ee)?(K="",re!=null&&(K=re.replace(W,"$&/")+"/"),z(ee,B,K,"",function(ne){return ne})):ee!=null&&(L(ee)&&(ee=_(ee,K+(ee.key==null||D&&D.key===ee.key?"":(""+ee.key).replace(W,"$&/")+"/")+re)),B.push(ee)),1;re=0;var ie=J===""?".":J+":";if(R(D))for(var ue=0;ue<D.length;ue++)J=D[ue],te=ie+q(J,ue),re+=z(J,B,K,te,ee);else if(ue=b(D),typeof ue=="function")for(D=ue.call(D),ue=0;!(J=D.next()).done;)J=J.value,te=ie+q(J,ue++),re+=z(J,B,K,te,ee);else if(te==="object"){if(typeof D.then=="function")return z(F(D),B,K,J,ee);throw B=String(D),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return re}function j(D,B,K){if(D==null)return D;var J=[],ee=0;return z(D,J,"","",function(te){return B.call(K,te,ee++)}),J}function U(D){if(D._status===-1){var B=D._result;B=B(),B.then(function(K){(D._status===0||D._status===-1)&&(D._status=1,D._result=K);},function(K){(D._status===0||D._status===-1)&&(D._status=2,D._result=K);}),D._status===-1&&(D._status=0,D._result=B);}if(D._status===1)return D._result.default;throw D._result}var Y=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D);},Q={map:j,forEach:function(D,B,K){j(D,function(){B.apply(this,arguments);},K);},count:function(D){var B=0;return j(D,function(){B++;}),B},toArray:function(D){return j(D,function(B){return B})||[]},only:function(D){if(!L(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Vt.Activity=p,Vt.Children=Q,Vt.Component=w,Vt.Fragment=n,Vt.Profiler=o,Vt.PureComponent=E,Vt.StrictMode=r,Vt.Suspense=u,Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Vt.__COMPILER_RUNTIME={__proto__:null,c:function(D){return N.H.useMemoCache(D)}},Vt.cache=function(D){return function(){return D.apply(null,arguments)}},Vt.cacheSignal=function(){return null},Vt.cloneElement=function(D,B,K){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var J=S({},D.props),ee=D.key;if(B!=null)for(te in B.key!==void 0&&(ee=""+B.key),B)!P.call(B,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&B.ref===void 0||(J[te]=B[te]);var te=arguments.length-2;if(te===1)J.children=K;else if(1<te){for(var re=Array(te),ie=0;ie<te;ie++)re[ie]=arguments[ie+2];J.children=re;}return O(D.type,ee,J)},Vt.createContext=function(D){return D={$$typeof:a,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:i,_context:D},D},Vt.createElement=function(D,B,K){var J,ee={},te=null;if(B!=null)for(J in B.key!==void 0&&(te=""+B.key),B)P.call(B,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ee[J]=B[J]);var re=arguments.length-2;if(re===1)ee.children=K;else if(1<re){for(var ie=Array(re),ue=0;ue<re;ue++)ie[ue]=arguments[ue+2];ee.children=ie;}if(D&&D.defaultProps)for(J in re=D.defaultProps,re)ee[J]===void 0&&(ee[J]=re[J]);return O(D,te,ee)},Vt.createRef=function(){return {current:null}},Vt.forwardRef=function(D){return {$$typeof:l,render:D}},Vt.isValidElement=L,Vt.lazy=function(D){return {$$typeof:m,_payload:{_status:-1,_result:D},_init:U}},Vt.memo=function(D,B){return {$$typeof:d,type:D,compare:B===void 0?null:B}},Vt.startTransition=function(D){var B=N.T,K={};N.T=K;try{var J=D(),ee=N.S;ee!==null&&ee(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,Y);}catch(te){Y(te);}finally{B!==null&&K.types!==null&&(B.types=K.types),N.T=B;}},Vt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Vt.use=function(D){return N.H.use(D)},Vt.useActionState=function(D,B,K){return N.H.useActionState(D,B,K)},Vt.useCallback=function(D,B){return N.H.useCallback(D,B)},Vt.useContext=function(D){return N.H.useContext(D)},Vt.useDebugValue=function(){},Vt.useDeferredValue=function(D,B){return N.H.useDeferredValue(D,B)},Vt.useEffect=function(D,B){return N.H.useEffect(D,B)},Vt.useEffectEvent=function(D){return N.H.useEffectEvent(D)},Vt.useId=function(){return N.H.useId()},Vt.useImperativeHandle=function(D,B,K){return N.H.useImperativeHandle(D,B,K)},Vt.useInsertionEffect=function(D,B){return N.H.useInsertionEffect(D,B)},Vt.useLayoutEffect=function(D,B){return N.H.useLayoutEffect(D,B)},Vt.useMemo=function(D,B){return N.H.useMemo(D,B)},Vt.useOptimistic=function(D,B){return N.H.useOptimistic(D,B)},Vt.useReducer=function(D,B,K){return N.H.useReducer(D,B,K)},Vt.useRef=function(D){return N.H.useRef(D)},Vt.useState=function(D){return N.H.useState(D)},Vt.useSyncExternalStore=function(D,B,K){return N.H.useSyncExternalStore(D,B,K)},Vt.useTransition=function(){return N.H.useTransition()},Vt.version="19.2.4",Vt}var v5;function ec(){return v5||(v5=1,hx.exports=VQ()),hx.exports}var f=ec();const G=Do(f),X$=KX({__proto__:null,default:G},[f]),jQ={},UQ=(e,t)=>{const n=f.useRef(void 0);f.useEffect(()=>{n.current=BQ(e,t);}),f.useDebugValue(n.current);},WQ=UQ,qQ=new WeakMap;function yt(e,t){const n=t?.sync,r=f.useMemo(()=>e&&new WeakMap,[e]),o=f.useRef(void 0),i=f.useRef(false),a=f.useSyncExternalStore(f.useCallback(u=>{i.current=true;const d=Qa(e,u,n);return u(),()=>{d(),i.current=false;}},[e,n]),()=>{const u=Vr(e);try{if(i.current&&o.current&&!EB(o.current,u,r,new WeakMap))return o.current}catch{}return u},()=>Vr(e));f.useLayoutEffect(()=>{o.current=a;}),(jQ?"production":void 0)!=="production"&&WQ(a,r);const l=f.useMemo(()=>new WeakMap,[]);return $B(a,r,l,qQ)}function GQ(e){return e instanceof Error?e.stack||e.message:e}function KQ(e,t){let n=0;for(let r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e[Math.abs(n)%e.length]}function b5(e,t){let n=0,r=0,o=-1,i=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]==="*"))t[r]==="*"?(o=r,i=n,r++):(n++,r++);else if(o!==-1)r=o+1,i++,n=i;else return  false;for(;r<t.length&&t[r]==="*";)r++;return r===t.length}function YQ(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}let x0="";function TB(e,t){let n,r,o,i;const a=(...l)=>{if(!a.enabled)return;const u=Date.now(),d=u-(n||u);n=u,l[0]=GQ(l[0]),typeof l[0]!="string"&&l.unshift("%O");let m=0;l[0]=l[0].replace(/%([a-z%])/gi,(p,g)=>{if(p==="%%")return "%";m++;const b=t.formatters[g];if(typeof b=="function"){const y=l[m];p=b.call(a,y),l.splice(m,1),m--;}return p}),t.formatArgs.call(a,d,l),a.log(...l);};return a.extend=function(l,u=":"){return TB(this.namespace+u+l,{useColors:this.useColors,color:this.color,formatArgs:this.formatArgs,formatters:this.formatters,inspectOpts:this.inspectOpts,log:this.log,humanize:this.humanize})},Object.assign(a,t),a.namespace=e,Object.defineProperty(a,"enabled",{enumerable:true,configurable:false,get:()=>r??(o!==x0&&(o=x0,i=QQ(e)),i),set:l=>{r=l;}}),a}let Q$=[],Z$=[];function XQ(e){x0=e,Q$=[],Z$=[];const t=x0.trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const n of t)n[0]==="-"?Z$.push(n.slice(1)):Q$.push(n);}function QQ(e){for(const t of Z$)if(b5(e,t))return  false;for(const t of Q$)if(b5(e,t))return  true;return  false}var ZQ={};const JQ=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function eZ(e,t){const{useColors:n}=this;if(t[0]=`${(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")}+${this.humanize(e)}`,!n)return;const r=`color: ${this.color}`;t.splice(1,0,r,"color: inherit");let o=0,i=0;t[0].replace(/%[a-z%]/gi,a=>{a!=="%%"&&(o++,a==="%c"&&(i=o));}),t.splice(i,0,r);}const tZ=console.debug||console.log||(()=>{}),y5=oZ(),nZ={useColors:true,formatArgs:eZ,formatters:{j(e){try{return JSON.stringify(e)}catch(t){return `[UnexpectedJSONParseError]: ${t.message}`}}},inspectOpts:{},humanize:YQ,log:tZ};function rZ(e,t){var n;const r=(n=t)!==null&&n!==void 0?n:KQ(JQ,e);return TB(e,Object.assign(nZ,{color:r},t))}function oZ(){try{return localStorage}catch{}}function iZ(){let e;try{e=y5.getItem("debug")||y5.getItem("DEBUG");}catch{}return !e&&typeof process<"u"&&"env"in process&&(e=ZQ.DEBUG),e||""}XQ(iZ());const No="Bilibili-Gate",ao="bilibili-gate",RM="bilibili_gate",S5="bili-gate",so=rZ(ao),AB="https://api.bilibili.com",NB="https://app.bilibili.com",np={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},$a=`${ao}-root`,aZ=`${ao}-video-grid`,_l=`${ao}-video-card`,PB=`${ao}-video-card-active`,IB=`${ao}-video-card-cover`,OB=`${ao}-tab-bar`,sZ=`${ao}-video-card__recommend-reason`,Af="请求失败, 请重试 !!!",Fy="操作失败, 请重试 !!!",Yv="bilibili.com";var kl=(e=>(e[e.Tld=Yv]="Tld",e.Main=`www.${Yv}`,e.Space=`space.${Yv}`,e.Search=`search.${Yv}`,e))(kl||{});const{hostname:rp,pathname:C5}=location;rp===kl.Tld||rp.endsWith(`.${kl.Tld}`);const DB=[kl.Tld,kl.Main].includes(rp),lZ=rp===kl.Space,cZ=rp===kl.Search,Ls=DB&&(C5==="/"||C5==="/index.html");function TM(e){return function(...n){const[r,...o]=n,i=`%c${No}%c`,a=["padding: 2px 4px; border-radius: 4px; color: #fff; background: #01847f; font-weight: bold;",""];return typeof r=="string"?e(`${i} ${r}`,...a,...o):e(`${i}`,...a,r,...o)}}const uZ=TM(console.log),Xo=TM(console.warn),dZ=TM(console.error);var Nf=(e=>(e.Pink="#f69",e.Blue="#00aeec",e))(Nf||{}),rt=(e=>(e.AppRecommend="app-recommend",e.PcRecommend="pc-recommend",e.KeepFollowOnly="keep-follow-only",e.DynamicFeed="dynamic-feed",e.Watchlater="watchlater",e.Fav="fav",e.Hot="hot",e.Live="live",e.SpaceUpload="space-upload",e.Liked="liked",e))(rt||{}),hr=(e=>(e.PopularGeneral="popular-general",e.PopularWeekly="popular-weekly",e.Rank="ranking",e))(hr||{});const J$=Object.values(rt),fZ=["space-upload"],AM=b0(J$,fZ);var px={exports:{}},Xm={};var x5;function mZ(){if(x5)return Xm;x5=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l]);}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Xm.Fragment=t,Xm.jsx=n,Xm.jsxs=n,Xm}var w5;function hZ(){return w5||(w5=1,px.exports=mZ()),px.exports}var Yo=hZ();function pZ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function gZ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var vZ=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?true:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gZ(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=pZ(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){var o;return (o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0;},e})(),go="-ms-",w0="-moz-",xn="-webkit-",_B="comm",NM="rule",PM="decl",bZ="@import",LB="@keyframes",yZ="@layer",SZ=Math.abs,Hy=String.fromCharCode,CZ=Object.assign;function xZ(e,t){return Jr(e,0)^45?(((t<<2^Jr(e,0))<<2^Jr(e,1))<<2^Jr(e,2))<<2^Jr(e,3):0}function BB(e){return e.trim()}function wZ(e,t){return (e=t.exec(e))?e[0]:e}function $n(e,t,n){return e.replace(t,n)}function e2(e,t){return e.indexOf(t)}function Jr(e,t){return e.charCodeAt(t)|0}function op(e,t,n){return e.slice(t,n)}function _a(e){return e.length}function IM(e){return e.length}function Xv(e,t){return t.push(e),e}function $Z(e,t){return e.map(t).join("")}var Vy=1,cf=1,zB=0,Qo=0,xr=0,Pf="";function jy(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:Vy,column:cf,length:a,return:""}}function Qm(e,t){return CZ(jy("",null,null,"",null,null,0),e,{length:-e.length},t)}function EZ(){return xr}function MZ(){return xr=Qo>0?Jr(Pf,--Qo):0,cf--,xr===10&&(cf=1,Vy--),xr}function xi(){return xr=Qo<zB?Jr(Pf,Qo++):0,cf++,xr===10&&(cf=1,Vy++),xr}function ja(){return Jr(Pf,Qo)}function Db(){return Qo}function Kp(e,t){return op(Pf,e,t)}function ip(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 kB(e){return Vy=cf=1,zB=_a(Pf=e),Qo=0,[]}function FB(e){return Pf="",e}function _b(e){return BB(Kp(Qo-1,t2(e===91?e+2:e===40?e+1:e)))}function RZ(e){for(;(xr=ja())&&xr<33;)xi();return ip(e)>2||ip(xr)>3?"":" "}function TZ(e,t){for(;--t&&xi()&&!(xr<48||xr>102||xr>57&&xr<65||xr>70&&xr<97););return Kp(e,Db()+(t<6&&ja()==32&&xi()==32))}function t2(e){for(;xi();)switch(xr){case e:return Qo;case 34:case 39:e!==34&&e!==39&&t2(xr);break;case 40:e===41&&t2(e);break;case 92:xi();break}return Qo}function AZ(e,t){for(;xi()&&e+xr!==57;)if(e+xr===84&&ja()===47)break;return "/*"+Kp(t,Qo-1)+"*"+Hy(e===47?e:xi())}function NZ(e){for(;!ip(ja());)xi();return Kp(e,Qo)}function PZ(e){return FB(Lb("",null,null,null,[""],e=kB(e),0,[0],e))}function Lb(e,t,n,r,o,i,a,l,u){for(var d=0,m=0,p=a,g=0,b=0,y=0,S=1,C=1,w=1,$=0,E="",T=o,R=i,I=r,N=E;C;)switch(y=$,$=xi()){case 40:if(y!=108&&Jr(N,p-1)==58){e2(N+=$n(_b($),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:N+=_b($);break;case 9:case 10:case 13:case 32:N+=RZ(y);break;case 92:N+=TZ(Db()-1,7);continue;case 47:switch(ja()){case 42:case 47:Xv(IZ(AZ(xi(),Db()),t,n),u);break;default:N+="/";}break;case 123*S:l[d++]=_a(N)*w;case 125*S:case 59:case 0:switch($){case 0:case 125:C=0;case 59+m:w==-1&&(N=$n(N,/\f/g,"")),b>0&&_a(N)-p&&Xv(b>32?E5(N+";",r,n,p-1):E5($n(N," ","")+";",r,n,p-2),u);break;case 59:N+=";";default:if(Xv(I=$5(N,t,n,d,m,o,l,E,T=[],R=[],p),i),$===123)if(m===0)Lb(N,t,I,I,T,i,p,l,R);else switch(g===99&&Jr(N,3)===110?100:g){case 100:case 108:case 109:case 115:Lb(e,I,I,r&&Xv($5(e,I,I,0,0,o,l,E,o,T=[],p),R),o,R,p,l,r?T:R);break;default:Lb(N,I,I,I,[""],R,0,l,R);}}d=m=b=0,S=w=1,E=N="",p=a;break;case 58:p=1+_a(N),b=y;default:if(S<1){if($==123)--S;else if($==125&&S++==0&&MZ()==125)continue}switch(N+=Hy($),$*S){case 38:w=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(_a(N)-1)*w,w=1;break;case 64:ja()===45&&(N+=_b(xi())),g=ja(),m=p=_a(E=N+=NZ(Db())),$++;break;case 45:y===45&&_a(N)==2&&(S=0);}}return i}function $5(e,t,n,r,o,i,a,l,u,d,m){for(var p=o-1,g=o===0?i:[""],b=IM(g),y=0,S=0,C=0;y<r;++y)for(var w=0,$=op(e,p+1,p=SZ(S=a[y])),E=e;w<b;++w)(E=BB(S>0?g[w]+" "+$:$n($,/&\f/g,g[w])))&&(u[C++]=E);return jy(e,t,n,o===0?NM:l,u,d,m)}function IZ(e,t,n){return jy(e,t,n,_B,Hy(EZ()),op(e,2,-2),0)}function E5(e,t,n,r){return jy(e,t,n,PM,op(e,0,r),op(e,r+1,-1),r)}function Yd(e,t){for(var n="",r=IM(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function OZ(e,t,n,r){switch(e.type){case yZ:if(e.children.length)break;case bZ:case PM:return e.return=e.return||e.value;case _B:return "";case LB:return e.return=e.value+"{"+Yd(e.children,r)+"}";case NM:e.value=e.props.join(",");}return _a(n=Yd(e.children,r))?e.return=e.value+"{"+n+"}":""}function DZ(e){var t=IM(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function _Z(e){return function(t){t.root||(t=t.return)&&e(t);}}function LZ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var BZ=function(t,n,r){for(var o=0,i=0;o=i,i=ja(),o===38&&i===12&&(n[r]=1),!ip(i);)xi();return Kp(t,Qo)},zZ=function(t,n){var r=-1,o=44;do switch(ip(o)){case 0:o===38&&ja()===12&&(n[r]=1),t[r]+=BZ(Qo-1,n,r);break;case 2:t[r]+=_b(o);break;case 4:if(o===44){t[++r]=ja()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Hy(o);}while(o=xi());return t},kZ=function(t,n){return FB(zZ(kB(t),n))},M5=new WeakMap,FZ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!M5.get(r))&&!o){M5.set(t,true);for(var i=[],a=kZ(n,i),l=r.props,u=0,d=0;u<a.length;u++)for(var m=0;m<l.length;m++,d++)t.props[d]=i[u]?a[u].replace(/&\f/g,l[m]):l[m]+" "+a[u];}}},HZ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function HB(e,t){switch(xZ(e,t)){case 5103:return xn+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+e+w0+e+go+e+e;case 6828:case 4268:return xn+e+go+e+e;case 6165:return xn+e+go+"flex-"+e+e;case 5187:return xn+e+$n(e,/(\w+).+(:[^]+)/,xn+"box-$1$2"+go+"flex-$1$2")+e;case 5443:return xn+e+go+"flex-item-"+$n(e,/flex-|-self/,"")+e;case 4675:return xn+e+go+"flex-line-pack"+$n(e,/align-content|flex-|-self/,"")+e;case 5548:return xn+e+go+$n(e,"shrink","negative")+e;case 5292:return xn+e+go+$n(e,"basis","preferred-size")+e;case 6060:return xn+"box-"+$n(e,"-grow","")+xn+e+go+$n(e,"grow","positive")+e;case 4554:return xn+$n(e,/([^-])(transform)/g,"$1"+xn+"$2")+e;case 6187:return $n($n($n(e,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),e,"")+e;case 5495:case 3959:return $n(e,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return $n($n(e,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+go+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xn+e+e;case 4095:case 3583:case 4068:case 2532:return $n(e,/(.+)-inline(.+)/,xn+"$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(_a(e)-1-t>6)switch(Jr(e,t+1)){case 109:if(Jr(e,t+4)!==45)break;case 102:return $n(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+w0+(Jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~e2(e,"stretch")?HB($n(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jr(e,t+1)!==115)break;case 6444:switch(Jr(e,_a(e)-3-(~e2(e,"!important")&&10))){case 107:return $n(e,":",":"+xn)+e;case 101:return $n(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(Jr(e,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+go+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return xn+e+go+$n(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+go+$n(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+go+$n(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+go+e+e}return e}var VZ=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case PM:t.return=HB(t.value,t.length);break;case LB:return Yd([Qm(t,{value:$n(t.value,"@","@"+xn)})],o);case NM:if(t.length)return $Z(t.props,function(i){switch(wZ(i,/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":return Yd([Qm(t,{props:[$n(i,/:(read-\w+)/,":"+w0+"$1")]})],o);case "::placeholder":return Yd([Qm(t,{props:[$n(i,/:(plac\w+)/,":"+xn+"input-$1")]}),Qm(t,{props:[$n(i,/:(plac\w+)/,":"+w0+"$1")]}),Qm(t,{props:[$n(i,/:(plac\w+)/,go+"input-$1")]})],o)}return ""})}},jZ=[VZ],VB=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""));});}var o=t.stylisPlugins||jZ,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),w=1;w<C.length;w++)i[C[w]]=true;l.push(S);});var u,d=[FZ,HZ];{var m,p=[OZ,_Z(function(S){m.insert(S);})],g=DZ(d.concat(o,p)),b=function(C){return Yd(PZ(C),g)};u=function(C,w,$,E){m=$,b(C?C+"{"+w.styles+"}":w.styles),E&&(y.inserted[w.name]=true);};}var y={key:n,sheet:new vZ({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(l),y};function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},cr.apply(null,arguments)}var gx={exports:{}},Mn={};var R5;function UZ(){if(R5)return Mn;R5=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function E(R){if(typeof R=="object"&&R!==null){var I=R.$$typeof;switch(I){case t:switch(R=R.type,R){case u:case d:case r:case i:case o:case p:return R;default:switch(R=R&&R.$$typeof,R){case l:case m:case y:case b:case a:return R;default:return I}}case n:return I}}}function T(R){return E(R)===d}return Mn.AsyncMode=u,Mn.ConcurrentMode=d,Mn.ContextConsumer=l,Mn.ContextProvider=a,Mn.Element=t,Mn.ForwardRef=m,Mn.Fragment=r,Mn.Lazy=y,Mn.Memo=b,Mn.Portal=n,Mn.Profiler=i,Mn.StrictMode=o,Mn.Suspense=p,Mn.isAsyncMode=function(R){return T(R)||E(R)===u},Mn.isConcurrentMode=T,Mn.isContextConsumer=function(R){return E(R)===l},Mn.isContextProvider=function(R){return E(R)===a},Mn.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},Mn.isForwardRef=function(R){return E(R)===m},Mn.isFragment=function(R){return E(R)===r},Mn.isLazy=function(R){return E(R)===y},Mn.isMemo=function(R){return E(R)===b},Mn.isPortal=function(R){return E(R)===n},Mn.isProfiler=function(R){return E(R)===i},Mn.isStrictMode=function(R){return E(R)===o},Mn.isSuspense=function(R){return E(R)===p},Mn.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===d||R===i||R===o||R===p||R===g||typeof R=="object"&&R!==null&&(R.$$typeof===y||R.$$typeof===b||R.$$typeof===a||R.$$typeof===l||R.$$typeof===m||R.$$typeof===C||R.$$typeof===w||R.$$typeof===$||R.$$typeof===S)},Mn.typeOf=E,Mn}var T5;function WZ(){return T5||(T5=1,gx.exports=UZ()),gx.exports}var vx,A5;function qZ(){if(A5)return vx;A5=1;var e=WZ(),t={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},n={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},r={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},o={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function a(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function b(y,S,C){if(typeof S!="string"){if(g){var w=p(S);w&&w!==g&&b(y,w,C);}var $=u(S);d&&($=$.concat(d(S)));for(var E=a(y),T=a(S),R=0;R<$.length;++R){var I=$[R];if(!n[I]&&!(C&&C[I])&&!(T&&T[I])&&!(E&&E[I])){var N=m(S,I);try{l(y,I,N);}catch{}}}}return y}return vx=b,vx}qZ();var GZ=true;function OM(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ");}),r}var jB=function(t,n,r){var o=t.key+"-"+n.name;(r===false||GZ===false)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},DM=function(t,n,r){jB(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,true),i=i.next;while(i!==void 0)}};function KZ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var YZ={animationIterationCount:1,aspectRatio: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,scale: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},XZ=/[A-Z]|^ms/g,QZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UB=function(t){return t.charCodeAt(1)===45},N5=function(t){return t!=null&&typeof t!="boolean"},bx=LZ(function(e){return UB(e)?e:e.replace(XZ,"-$&").toLowerCase()}),P5=function(t,n){switch(t){case "animation":case "animationName":if(typeof n=="string")return n.replace(QZ,function(r,o,i){return La={name:o,styles:i,next:La},o})}return YZ[t]!==1&&!UB(t)&&typeof n=="number"&&n!==0?n+"px":n};function ap(e,t,n){if(n==null)return "";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case "boolean":return "";case "object":{var o=n;if(o.anim===1)return La={name:o.name,styles:o.styles,next:La},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)La={name:a.name,styles:a.styles,next:La},a=a.next;var l=i.styles+";";return l}return ZZ(e,t,n)}case "function":{if(e!==void 0){var u=La,d=n(e);return La=u,ap(e,t,d)}break}}var m=n;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function ZZ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ap(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":N5(l)&&(r+=bx(i)+":"+P5(i,l)+";");}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)N5(a[u])&&(r+=bx(i)+":"+P5(i,a[u])+";");else {var d=ap(e,t,a);switch(i){case "animation":case "animationName":{r+=bx(i)+":"+d+";";break}default:r+=i+"{"+d+"}";}}}return r}var I5=/label:\s*([^\s;{]+)\s*(;|$)/g,La;function Xd(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=true,o="";La=void 0;var i=e[0];if(i==null||i.raw===void 0)r=false,o+=ap(n,t,i);else {var a=i;o+=a[0];}for(var l=1;l<e.length;l++)if(o+=ap(n,t,e[l]),r){var u=i;o+=u[l];}I5.lastIndex=0;for(var d="",m;(m=I5.exec(o))!==null;)d+="-"+m[1];var p=KZ(o)+d;return {name:p,styles:o,next:La}}var JZ=function(t){return t()},WB=X$.useInsertionEffect?X$.useInsertionEffect:false,eJ=WB||JZ,O5=WB||f.useLayoutEffect,qB=f.createContext(typeof HTMLElement<"u"?VB({key:"css"}):null),tJ=qB.Provider,GB=function(t){return f.forwardRef(function(n,r){var o=f.useContext(qB);return t(n,o,r)})},KB=f.createContext({}),Yp={}.hasOwnProperty,n2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_M=function(t,n){var r={};for(var o in n)Yp.call(n,o)&&(r[o]=n[o]);return r[n2]=t,r},nJ=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return jB(n,r,o),eJ(function(){return DM(n,r,o)}),null},rJ=GB(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[n2],i=[r],a="";typeof e.className=="string"?a=OM(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Xd(i,void 0,f.useContext(KB));a+=t.key+"-"+l.name;var u={};for(var d in e)Yp.call(e,d)&&d!=="css"&&d!==n2&&(u[d]=e[d]);return u.className=a,n&&(u.ref=n),f.createElement(f.Fragment,null,f.createElement(nJ,{cache:t,serialized:l,isStringTag:typeof o=="string"}),f.createElement(o,u))}),LM=rJ,_e=Yo.Fragment,x=function(t,n,r){return Yp.call(n,"css")?Yo.jsx(LM,_M(t,n),r):Yo.jsx(t,n,r)},H=function(t,n,r){return Yp.call(n,"css")?Yo.jsxs(LM,_M(t,n),r):Yo.jsxs(t,n,r)};const yl=new WeakMap,Bc=new WeakMap,Cs=new WeakMap;var oJ={};const $0=Symbol("anyProducer"),D5=Promise.resolve(),E0=Symbol("listenerAdded"),M0=Symbol("listenerRemoved");let R0=false,yx=false;const T0=e=>typeof e=="string"||typeof e=="symbol"||typeof e=="number";function Sd(e){if(!T0(e))throw new TypeError("`eventName` must be a string, symbol, or number")}function Qv(e){if(typeof e!="function")throw new TypeError("listener must be a function")}function Cd(e,t){const n=Bc.get(e);if(n.has(t))return n.get(t)}function Oh(e,t){const n=T0(t)?t:$0,r=Cs.get(e);if(r.has(n))return r.get(n)}function _5(e,t,n){const r=Cs.get(e);if(r.has(t))for(const o of r.get(t))o.enqueue(n);if(r.has($0)){const o=Promise.all([t,n]);for(const i of r.get($0))i.enqueue(o);}}function L5(e,t){t=Array.isArray(t)?t:[t];let n=false,r=()=>{},o=[];const i={enqueue(a){o.push(a),r();},finish(){n=true,r();}};for(const a of t){let l=Oh(e,a);l||(l=new Set,Cs.get(e).set(a,l)),l.add(i);}return {async next(){return o?o.length===0?n?(o=void 0,this.next()):(await new Promise(a=>{r=a;}),this.next()):{done:false,value:await o.shift()}:{done:true}},async return(a){o=void 0;for(const l of t){const u=Oh(e,l);u&&(u.delete(i),u.size===0&&Cs.get(e).delete(l));}return r(),arguments.length>0?{done:true,value:await a}:{done:true}},[Symbol.asyncIterator](){return this}}}function B5(e){if(e===void 0)return z5;if(!Array.isArray(e))throw new TypeError("`methodNames` must be an array of strings");for(const t of e)if(!z5.includes(t))throw typeof t!="string"?new TypeError("`methodNames` element must be a string"):new Error(`${t} is not Emittery method`);return e}const zc=e=>e===E0||e===M0;function Zv(e,t,n){if(zc(t))try{R0=!0,e.emit(t,n);}finally{R0=false;}}class Oo{static mixin(t,n){return n=B5(n),r=>{if(typeof r!="function")throw new TypeError("`target` must be function");for(const a of n)if(r.prototype[a]!==void 0)throw new Error(`The property \`${a}\` already exists on \`target\``);function o(){return Object.defineProperty(this,t,{enumerable:false,value:new Oo}),this[t]}Object.defineProperty(r.prototype,t,{enumerable:false,get:o});const i=a=>function(...l){return this[t][a](...l)};for(const a of n)Object.defineProperty(r.prototype,a,{enumerable:false,value:i(a)});return r}}static get isDebugEnabled(){if(typeof oJ!="object")return yx;const{env:t}=globalThis.process??{env:{}};return t.DEBUG==="emittery"||t.DEBUG==="*"||yx}static set isDebugEnabled(t){yx=t;}constructor(t={}){yl.set(this,new Set),Bc.set(this,new Map),Cs.set(this,new Map),Cs.get(this).set($0,new Set),this.debug=t.debug??{},this.debug.enabled===void 0&&(this.debug.enabled=false),this.debug.logger||(this.debug.logger=(n,r,o,i)=>{try{i=JSON.stringify(i);}catch{i=`Object with the following keys failed to stringify: ${Object.keys(i).join(",")}`;}(typeof o=="symbol"||typeof o=="number")&&(o=o.toString());const a=new Date,l=`${a.getHours()}:${a.getMinutes()}:${a.getSeconds()}.${a.getMilliseconds()}`;console.log(`[${l}][emittery:${n}][${r}] Event Name: ${o}
	data: ${i}`);});}logIfDebugEnabled(t,n,r){(Oo.isDebugEnabled||this.debug.enabled)&&this.debug.logger(t,this.debug.name,n,r);}on(t,n,{signal:r}={}){Qv(n),t=Array.isArray(t)?t:[t];for(const i of t){Sd(i);let a=Cd(this,i);a||(a=new Set,Bc.get(this).set(i,a)),a.add(n),this.logIfDebugEnabled("subscribe",i,void 0),zc(i)||Zv(this,E0,{eventName:i,listener:n});}const o=()=>{this.off(t,n),r?.removeEventListener("abort",o);};return r?.addEventListener("abort",o,{once:true}),r?.aborted&&o(),o}off(t,n){Qv(n),t=Array.isArray(t)?t:[t];for(const r of t){Sd(r);const o=Cd(this,r);o&&(o.delete(n),o.size===0&&Bc.get(this).delete(r)),this.logIfDebugEnabled("unsubscribe",r,void 0),zc(r)||Zv(this,M0,{eventName:r,listener:n});}}once(t,n){if(n!==void 0&&typeof n!="function")throw new TypeError("predicate must be a function");let r;const o=new Promise(i=>{r=this.on(t,a=>{n&&!n(a)||(r(),i(a));});});return o.off=r,o}events(t){t=Array.isArray(t)?t:[t];for(const n of t)Sd(n);return L5(this,t)}async emit(t,n){if(Sd(t),zc(t)&&!R0)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emit",t,n),_5(this,t,n);const r=Cd(this,t)??new Set,o=yl.get(this),i=[...r],a=zc(t)?[]:[...o];await D5,await Promise.all([...i.map(async l=>{if(r.has(l))return l(n)}),...a.map(async l=>{if(o.has(l))return l(t,n)})]);}async emitSerial(t,n){if(Sd(t),zc(t)&&!R0)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emitSerial",t,n),_5(this,t,n);const r=Cd(this,t)??new Set,o=yl.get(this),i=[...r],a=zc(t)?[]:[...o];await D5;for(const l of i)r.has(l)&&await l(n);for(const l of a)o.has(l)&&await l(t,n);}onAny(t,{signal:n}={}){Qv(t),this.logIfDebugEnabled("subscribeAny",void 0,void 0),yl.get(this).add(t),Zv(this,E0,{listener:t});const r=()=>{this.offAny(t),n?.removeEventListener("abort",r);};return n?.addEventListener("abort",r,{once:true}),n?.aborted&&r(),r}anyEvent(){return L5(this)}offAny(t){Qv(t),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),Zv(this,M0,{listener:t}),yl.get(this).delete(t);}clearListeners(t){t=Array.isArray(t)?t:[t];for(const n of t)if(this.logIfDebugEnabled("clear",n,void 0),T0(n)){const r=Cd(this,n);r&&r.clear();const o=Oh(this,n);if(o){for(const i of o)i.finish();o.clear();}}else {yl.get(this).clear();for(const[r,o]of Bc.get(this).entries())o.clear(),Bc.get(this).delete(r);for(const[r,o]of Cs.get(this).entries()){for(const i of o)i.finish();o.clear(),Cs.get(this).delete(r);}}}listenerCount(t){t=Array.isArray(t)?t:[t];let n=0;for(const r of t){if(T0(r)){n+=yl.get(this).size+(Cd(this,r)?.size??0)+(Oh(this,r)?.size??0)+(Oh(this)?.size??0);continue}r!==void 0&&Sd(r),n+=yl.get(this).size;for(const o of Bc.get(this).values())n+=o.size;for(const o of Cs.get(this).values())n+=o.size;}return n}bindMethods(t,n){if(typeof t!="object"||t===null)throw new TypeError("`target` must be an object");n=B5(n);for(const r of n){if(t[r]!==void 0)throw new Error(`The property \`${r}\` already exists on \`target\``);Object.defineProperty(t,r,{enumerable:false,value:this[r].bind(this)});}}}const z5=Object.getOwnPropertyNames(Oo.prototype).filter(e=>e!=="constructor");Object.defineProperty(Oo,"listenerAdded",{value:E0,writable:false,enumerable:true,configurable:false});Object.defineProperty(Oo,"listenerRemoved",{value:M0,writable:false,enumerable:true,configurable:false});function Mt(e){const t=f.useRef(e);return t.current=e,f.useCallback((...r)=>t.current?.(...r),[])}function $i(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}const k5=$i()?f.useLayoutEffect:f.useEffect,An=(e,t)=>{const n=f.useRef(true);k5(()=>e(n.current),t),k5(()=>(n.current=false,()=>{n.current=true;}),[]);},Bb=(e,t)=>{An(n=>{if(!n)return e()},t);},YB=e=>{const t=f.useRef(false),[n,r]=f.useState(e);f.useEffect(()=>(t.current=false,()=>{t.current=true;}),[]);function o(i,a){a&&t.current||r(i);}return [n,o]};function un(e,t){const[n,r]=f.useState(e),o=t!==void 0?t:n;return An(i=>{i||r(t);},[t]),[o,r]}var Sx={exports:{}},Rn={};var F5;function iJ(){if(F5)return Rn;F5=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function S(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case e:switch(C=C.type,C){case n:case o:case r:case d:case m:return C;default:switch(C=C&&C.$$typeof,C){case l:case a:case u:case g:case p:case i:return C;default:return w}}case t:return w}}}return Rn.ContextConsumer=a,Rn.ContextProvider=i,Rn.Element=e,Rn.ForwardRef=u,Rn.Fragment=n,Rn.Lazy=g,Rn.Memo=p,Rn.Portal=t,Rn.Profiler=o,Rn.StrictMode=r,Rn.Suspense=d,Rn.SuspenseList=m,Rn.isAsyncMode=function(){return  false},Rn.isConcurrentMode=function(){return  false},Rn.isContextConsumer=function(C){return S(C)===a},Rn.isContextProvider=function(C){return S(C)===i},Rn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Rn.isForwardRef=function(C){return S(C)===u},Rn.isFragment=function(C){return S(C)===n},Rn.isLazy=function(C){return S(C)===g},Rn.isMemo=function(C){return S(C)===p},Rn.isPortal=function(C){return S(C)===t},Rn.isProfiler=function(C){return S(C)===o},Rn.isStrictMode=function(C){return S(C)===r},Rn.isSuspense=function(C){return S(C)===d},Rn.isSuspenseList=function(C){return S(C)===m},Rn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===o||C===r||C===d||C===m||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===p||C.$$typeof===i||C.$$typeof===a||C.$$typeof===u||C.$$typeof===y||C.getModuleId!==void 0)},Rn.typeOf=S,Rn}var H5;function aJ(){return H5||(H5=1,Sx.exports=iJ()),Sx.exports}var Cx=aJ();function If(e,t,n){const r=f.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const sJ=Symbol.for("react.element"),lJ=Symbol.for("react.transitional.element"),cJ=Symbol.for("react.fragment");function XB(e){return e&&typeof e=="object"&&(e.$$typeof===sJ||e.$$typeof===lJ)&&e.type===cJ}const uJ=Number(f.version.split(".")[0]),dJ=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t);},Ur=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{dJ(r,n);});}},Bs=(...e)=>If(()=>Ur(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),Tu=e=>{if(!e)return  false;if(BM(e)&&uJ>=19)return  true;const t=Cx.isMemo(e)?e.type.type:e.type;return !(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Cx.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==Cx.ForwardRef)};function BM(e){return f.isValidElement(e)&&!XB(e)}const fJ=e=>BM(e)&&Tu(e),tc=e=>{if(e&&BM(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function la(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function QB(e,t,n,r){if(!t.length)return n;const[o,...i]=t;let a;return !e&&typeof o=="number"?a=[]:Array.isArray(e)?a=[...e]:a={...e},r&&n===void 0&&i.length===1?delete a[o][i[0]]:a[o]=QB(a[o],i,n,r),a}function ki(e,t,n,r=false){return t.length&&r&&n===void 0&&!la(e,t.slice(0,-1))?e:QB(e,t,n,r)}function mJ(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function V5(e){return Array.isArray(e)?[]:{}}const hJ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ZB(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=V5(e[0]);return e.forEach(i=>{function a(l,u){const d=new Set(u),m=la(i,l),p=Array.isArray(m);if(p||mJ(m)){if(!d.has(m)){d.add(m);const g=la(o,l);p?o=ki(o,l,r(g,m)):(!g||typeof g!="object")&&(o=ki(o,l,V5(m))),hJ(m).forEach(b=>{Object.getOwnPropertyDescriptor(m,b).enumerable&&a([...l,b],d);});}}else o=ki(o,l,m);}a([]);}),o}function kd(...e){return ZB(e)}let r2={};const pJ=e=>{};function gJ(e,t){}function vJ(e,t){}function bJ(){r2={};}function JB(e,t,n){!t&&!r2[n]&&(e(false,n),r2[n]=true);}function Er(e,t){JB(gJ,e,t);}function yJ(e,t){JB(vJ,e,t);}Er.preMessage=pJ;Er.resetWarned=bJ;Er.noteOnce=yJ;function zn(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r];}),n}function Zo(e,t={}){let n=[];return G.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Zo(r)):XB(r)&&r.props?n=n.concat(Zo(r.props.children,t)):n.push(r));}),n}const SJ=f.createContext({});function uf(e){return e instanceof HTMLElement||e instanceof SVGElement}function df(e){return e&&typeof e=="object"&&uf(e.nativeElement)?e.nativeElement:uf(e)?e:null}const o2=f.createContext(null);function CJ({children:e,onBatchResize:t}){const n=f.useRef(0),r=f.useRef([]),o=f.useContext(o2),i=f.useCallback((a,l,u)=>{n.current+=1;const d=n.current;r.current.push({size:a,element:l,data:u}),Promise.resolve().then(()=>{d===n.current&&(t?.(r.current),r.current=[]);}),o?.(a,l,u);},[t,o]);return f.createElement(o2.Provider,{value:i},e)}const Nl=new Map;function xJ(e){e.forEach(t=>{const{target:n}=t;Nl.get(n)?.forEach(r=>r(n));});}let xx;function ez(){return xx||(xx=new ResizeObserver(xJ)),xx}function wJ(e,t){Nl.has(e)||(Nl.set(e,new Set),ez().observe(e)),Nl.get(e).add(t);}function $J(e,t){Nl.has(e)&&(Nl.get(e).delete(t),Nl.get(e).size||(ez().unobserve(e),Nl.delete(e)));}function tz(e,t,n,r){const o=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=Mt(l=>{const{width:u,height:d}=l.getBoundingClientRect(),{offsetWidth:m,offsetHeight:p}=l,g=Math.floor(u),b=Math.floor(d);if(o.current.width!==g||o.current.height!==b||o.current.offsetWidth!==m||o.current.offsetHeight!==p){const y={width:g,height:b,offsetWidth:m,offsetHeight:p};o.current=y;const S=m===Math.round(u)?u:m,C=p===Math.round(d)?d:p,w={...y,offsetWidth:S,offsetHeight:C};r?.(w,l),Promise.resolve().then(()=>{n?.(w,l);});}}),a=typeof t=="function";f.useEffect(()=>{const l=a?t():t;return l&&e&&wJ(l,i),()=>{l&&$J(l,i);}},[e,a?0:t]);}function EJ(e,t){const{children:n,disabled:r,onResize:o,data:i}=e,a=f.useRef(null),l=f.useContext(o2),u=typeof n=="function",d=u?n(a):n,m=!u&&f.isValidElement(d)&&Tu(d),p=m?tc(d):null,g=Bs(p,a),b=()=>df(a.current);return f.useImperativeHandle(t,()=>b()),tz(!r,b,o,(y,S)=>{l?.(y,S,i);}),m?f.cloneElement(d,{ref:g}):d}const MJ=f.forwardRef(EJ);function i2(){return i2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},i2.apply(this,arguments)}const RJ="rc-observer-key";function TJ(e,t){const{children:n}=e;return (typeof n=="function"?[n]:Zo(n)).map((o,i)=>{const a=o?.key||`${RJ}-${i}`;return f.createElement(MJ,i2({},e,{key:a,ref:i===0?t:void 0}),o)})}const ma=f.forwardRef(TJ);ma.Collection=CJ;function nz(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=nz(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function X(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=nz(e))&&(r&&(r+=" "),r+=t);return r}function a2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AJ(e){if(Array.isArray(e))return a2(e)}function NJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zM(e,t){if(e){if(typeof e=="string")return a2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a2(e,t):void 0}}function PJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zt(e){return AJ(e)||NJ(e)||zM(e)||PJ()}let rz=e=>+setTimeout(e,16),oz=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(rz=e=>window.requestAnimationFrame(e),oz=e=>window.cancelAnimationFrame(e));let j5=0;const kM=new Map;function iz(e){kM.delete(e);}const Bt=(e,t=1)=>{j5+=1;const n=j5;function r(o){if(o===0)iz(n),e();else {const i=rz(()=>{r(o-1);});kM.set(n,i);}}return r(t),n};Bt.cancel=e=>{const t=kM.get(e);return iz(e),oz(t)};function IJ(e){let t=null;const n=o=>()=>{t=null,e.apply(void 0,Zt(o));},r=(...o)=>{t===null&&(t=Bt(n(o)));};return r.cancel=()=>{Bt.cancel(t),t=null;},r}const sp="ant",Uy="anticon",OJ=["outlined","borderless","filled","underlined"],DJ=(e,t)=>t||(e?`${sp}-${e}`:sp),wt=f.createContext({getPrefixCls:DJ,iconPrefixCls:Uy}),{Consumer:n5e}=wt,U5={};function jt(e){const t=f.useContext(wt),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}=t,a=t[e];return {classNames:U5,styles:U5,...a,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}}function lp(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function s2(e,t){if(!e)return  false;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return  true;n=n.parentNode;}return  false}const W5="data-rc-order",q5="data-rc-priority",_J="rc-util-key",l2=new Map;function az({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:_J}function Wy(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function LJ(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function FM(e){return Array.from((l2.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function sz(e,t={}){if(!$i())return null;const{csp:n,prepend:r,priority:o=0}=t,i=LJ(r),a=i==="prependQueue",l=document.createElement("style");l.setAttribute(W5,i),a&&o&&l.setAttribute(q5,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const u=Wy(t),{firstChild:d}=u;if(r){if(a){const m=(t.styles||FM(u)).filter(p=>{if(!["prepend","prependQueue"].includes(p.getAttribute(W5)))return  false;const g=Number(p.getAttribute(q5)||0);return o>=g});if(m.length)return u.insertBefore(l,m[m.length-1].nextSibling),l}u.insertBefore(l,d);}else u.appendChild(l);return l}function lz(e,t={}){let{styles:n}=t;return n||=FM(Wy(t)),n.find(r=>r.getAttribute(az(t))===e)}function cp(e,t={}){const n=lz(e,t);n&&Wy(t).removeChild(n);}function BJ(e,t){const n=l2.get(e);if(!n||!s2(document,n)){const r=sz("",t),{parentNode:o}=r;l2.set(e,o),e.removeChild(r);}}function Ll(e,t,n={}){const r=Wy(n),o=FM(r),i={...n,styles:o};BJ(r,i);const a=lz(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=sz(e,i);return l.setAttribute(az(i),t),l}function Fl(e,t,n=false){const r=new Set;function o(i,a,l=1){const u=r.has(i);if(Er(!u,"Warning: There may be circular references"),u)return  false;if(i===a)return  true;if(n&&l>1)return  false;r.add(i);const d=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return  false;for(let m=0;m<i.length;m++)if(!o(i[m],a[m],d))return  false;return  true}if(i&&a&&typeof i=="object"&&typeof a=="object"){const m=Object.keys(i);return m.length!==Object.keys(a).length?false:m.every(p=>o(i[p],a[p],d))}return  false}return o(e,t)}const zJ="%";function c2(e){return e.join(zJ)}let G5=0;class kJ{instanceId;constructor(t){this.instanceId=t;}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(c2(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(c2(t),n)}opUpdate(t,n){const r=this.cache.get(t),o=n(r);o===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,o),this.updateTimes.set(t,G5),G5+=1);}}const FJ={},HM="data-token-hash",Rs="data-css-hash",eu="__cssinjs_instance__";function cz(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Rs}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[eu]||=e,o[eu]===e&&document.head.insertBefore(o,n);});const r={};Array.from(document.querySelectorAll(`style[${Rs}]`)).forEach(o=>{const i=o.getAttribute(Rs);r[i]?o[eu]===e&&o.parentNode?.removeChild(o):r[i]=true;});}return new kJ(e)}const gu=f.createContext({hashPriority:"low",cache:cz(),defaultCache:true,autoPrefix:false}),HJ=e=>{const{children:t,...n}=e,r=f.useContext(gu),o=If(()=>{const i={...r};Object.keys(n).forEach(u=>{const d=n[u];n[u]!==void 0&&(i[u]=d);});const{cache:a,transformers:l=[]}=n;return i.cache=i.cache||cz(),i.defaultCache=!a&&r.defaultCache,l.includes(FJ)&&(i.autoPrefix=true),i},[r,n],(i,a)=>!Fl(i[0],a[0],true)||!Fl(i[1],a[1],true));return f.createElement(gu.Provider,{value:o},t)};function VJ(e,t){if(e.length!==t.length)return  false;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return  false;return  true}class A0{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(t,n=false){let r={map:this.cache};return t.forEach(o=>{r?r=r?.map?.get(o):r=void 0;}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,true)?.[0]}has(t){return !!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>A0.MAX_CACHE_SIZE+A0.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,a)=>{const[,l]=i;return this.internalGet(a)[1]<l?[a,this.internalGet(a)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(o);}this.keys.push(t);}let r=this.cache;t.forEach((o,i)=>{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else {const a=r.get(o);a?a.map||(a.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map;}});}deleteByPath(t,n){const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),r.value?.[0];const o=this.deleteByPath(r.map,n.slice(1));return (!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!VJ(n,t)),this.deleteByPath(this.cache,t)}}let K5=0;class uz{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=K5,t.length===0&&(t.length>0,void 0),K5+=1;}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const wx=new A0;function N0(e){const t=Array.isArray(e)?e:[e];return wx.has(t)||wx.set(t,new uz(t)),wx.get(t)}const jJ=new WeakMap,$x={};function UJ(e,t){let n=jJ;for(let r=0;r<t.length;r+=1){const o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o);}return n.has($x)||n.set($x,e()),n.get($x)}const Y5=new WeakMap;function Dh(e){let t=Y5.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof uz?t+=r.id:r&&typeof r=="object"?t+=Dh(r):t+=r;}),t=lp(t),Y5.set(e,t)),t}function WJ(e,t){return lp(`${t}_${Dh(e)}`)}const u2=$i();function oe(e){return typeof e=="number"?`${e}px`:e}function dz(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return "";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const qJ=e=>e!=null,zb=(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(),GJ=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:i}=n||{};if(!Object.keys(e).length)return "";const a=`${dz({hashCls:r,hashPriority:o})}.${t}`,l=[i].flat().filter(Boolean);return `${l.length?l.map(d=>`${a}.${d}`).join(", "):a}{${Object.entries(e).map(([d,m])=>`${d}:${m};`).join("")}}`},fz=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:i,unitless:a,ignore:l,preserve:u}=n||{},d={},m={};return Object.entries(e).forEach(([p,g])=>{if(u?.[p])m[p]=g;else if((typeof g=="string"||typeof g=="number")&&!l?.[p]){const b=zb(p,i);d[b]=typeof g=="number"&&!a?.[p]?`${g}px`:String(g),m[p]=`var(${b})`;}}),[m,GJ(d,t,{scope:n?.scope,hashCls:r,hashPriority:o})]},Jv=new Map;function VM(e,t,n,r,o){const{cache:i}=f.useContext(gu),a=[e,...t],l=c2(a),u=p=>{i.opUpdate(l,g=>{const[b=0,y]=g||[void 0,void 0],C=y||n(),w=[b,C];return p?p(w):w});};f.useMemo(()=>{u();},[l]);const m=i.opGet(l)[1];return f.useInsertionEffect(()=>(u(([p,g])=>[p+1,g]),Jv.has(l)||(o?.(m),Jv.set(l,true),Promise.resolve().then(()=>{Jv.delete(l);})),()=>{i.opUpdate(l,p=>{const[g=0,b]=p||[];return g-1===0?(r?.(b,false),Jv.delete(l),null):[g-1,b]});}),[l]),m}const KJ={},YJ="css",Hc=new Map;function XJ(e){Hc.set(e,(Hc.get(e)||0)+1);}function QJ(e,t){typeof document<"u"&&document.querySelectorAll(`style[${HM}="${e}"]`).forEach(r=>{r[eu]===t&&r.parentNode?.removeChild(r);});}const ZJ=-1;function JJ(e,t){Hc.set(e,(Hc.get(e)||0)-1);const n=new Set;Hc.forEach((r,o)=>{r<=0&&n.add(o);}),Hc.size-n.size>ZJ&&n.forEach(r=>{QJ(r,t),Hc.delete(r);});}const mz=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},eee="token";function tee(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:i}=f.useContext(gu),{salt:a="",override:l=KJ,formatToken:u,getComputedToken:d,cssVar:m}=n,p=UJ(()=>Object.assign({},...t),t),g=Dh(p),b=Dh(l),y=Dh(m);return VM(eee,[a,e.id,g,b,y],()=>{const C=d?d(p,l,e):mz(p,l,e,u),w={...C},$=`${a}_${m.prefix}`,E=lp($),T=`${YJ}-${E}`;w._tokenKey=WJ(w,$);const[R,I]=fz(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve,hashPriority:i,hashCls:m.hashed?T:void 0});return R._hashId=E,XJ(m.key),[R,T,w,I,m.key]},([,,,,C])=>{JJ(C,r);},([,,,C,w])=>{if(!C)return;const $=Ll(C,lp(`css-var-${w}`),{mark:Rs,prepend:"queue",attachTo:o,priority:-999});$[eu]=r,$.setAttribute(HM,w);})}var nee={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},Kn="-ms-",_h="-moz-",wn="-webkit-",hz="comm",jM="rule",UM="decl",ree="@import",oee="@namespace",pz="@keyframes",iee="@layer",gz=Math.abs,WM=String.fromCharCode,d2=Object.assign;function aee(e,t){return Tr(e,0)^45?(((t<<2^Tr(e,0))<<2^Tr(e,1))<<2^Tr(e,2))<<2^Tr(e,3):0}function vz(e){return e.trim()}function ys(e,t){return (e=t.exec(e))?e[0]:e}function Qt(e,t,n){return e.replace(t,n)}function kb(e,t,n){return e.indexOf(t,n)}function Tr(e,t){return e.charCodeAt(t)|0}function vu(e,t,n){return e.slice(t,n)}function aa(e){return e.length}function bz(e){return e.length}function xh(e,t){return t.push(e),e}function see(e,t){return e.map(t).join("")}function X5(e,t){return e.filter(function(n){return !ys(n,t)})}var qy=1,ff=1,yz=0,Gi=0,wr=0,Of="";function Gy(e,t,n,r,o,i,a,l){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:qy,column:ff,length:a,return:"",siblings:l}}function xl(e,t){return d2(Gy("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xd(e){for(;e.root;)e=xl(e.root,{children:[e]});xh(e,e.siblings);}function lee(){return wr}function cee(){return wr=Gi>0?Tr(Of,--Gi):0,ff--,wr===10&&(ff=1,qy--),wr}function ha(){return wr=Gi<yz?Tr(Of,Gi++):0,ff++,wr===10&&(ff=1,qy++),wr}function Pl(){return Tr(Of,Gi)}function Fb(){return Gi}function Ky(e,t){return vu(Of,e,t)}function up(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 uee(e){return qy=ff=1,yz=aa(Of=e),Gi=0,[]}function dee(e){return Of="",e}function Ex(e){return vz(Ky(Gi-1,f2(e===91?e+2:e===40?e+1:e)))}function fee(e){for(;(wr=Pl())&&wr<33;)ha();return up(e)>2||up(wr)>3?"":" "}function mee(e,t){for(;--t&&ha()&&!(wr<48||wr>102||wr>57&&wr<65||wr>70&&wr<97););return Ky(e,Fb()+(t<6&&Pl()==32&&ha()==32))}function f2(e){for(;ha();)switch(wr){case e:return Gi;case 34:case 39:e!==34&&e!==39&&f2(wr);break;case 40:e===41&&f2(e);break;case 92:ha();break}return Gi}function hee(e,t){for(;ha()&&e+wr!==57;)if(e+wr===84&&Pl()===47)break;return "/*"+Ky(t,Gi-1)+"*"+WM(e===47?e:ha())}function pee(e){for(;!up(Pl());)ha();return Ky(e,Gi)}function Q5(e){return dee(Hb("",null,null,null,[""],e=uee(e),0,[0],e))}function Hb(e,t,n,r,o,i,a,l,u){for(var d=0,m=0,p=a,g=0,b=0,y=0,S=1,C=1,w=1,$=0,E="",T=o,R=i,I=r,N=E;C;)switch(y=$,$=ha()){case 40:if(y!=108&&Tr(N,p-1)==58){kb(N+=Qt(Ex($),"&","&\f"),"&\f",gz(d?l[d-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:N+=Ex($);break;case 9:case 10:case 13:case 32:N+=fee(y);break;case 92:N+=mee(Fb()-1,7);continue;case 47:switch(Pl()){case 42:case 47:xh(gee(hee(ha(),Fb()),t,n,u),u),(up(y||1)==5||up(Pl()||1)==5)&&aa(N)&&vu(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/";}break;case 123*S:l[d++]=aa(N)*w;case 125*S:case 59:case 0:switch($){case 0:case 125:C=0;case 59+m:w==-1&&(N=Qt(N,/\f/g,"")),b>0&&(aa(N)-p||S===0&&y===47)&&xh(b>32?J5(N+";",r,n,p-1,u):J5(Qt(N," ","")+";",r,n,p-2,u),u);break;case 59:N+=";";default:if(xh(I=Z5(N,t,n,d,m,o,l,E,T=[],R=[],p,i),i),$===123)if(m===0)Hb(N,t,I,I,T,i,p,l,R);else {switch(g){case 99:if(Tr(N,3)===110)break;case 108:if(Tr(N,2)===97)break;default:m=0;case 100:case 109:case 115:}m?Hb(e,I,I,r&&xh(Z5(e,I,I,0,0,o,l,E,o,T=[],p,R),R),o,R,p,l,r?T:R):Hb(N,I,I,I,[""],R,0,l,R);}}d=m=b=0,S=w=1,E=N="",p=a;break;case 58:p=1+aa(N),b=y;default:if(S<1){if($==123)--S;else if($==125&&S++==0&&cee()==125)continue}switch(N+=WM($),$*S){case 38:w=m>0?1:(N+="\f",-1);break;case 44:l[d++]=(aa(N)-1)*w,w=1;break;case 64:Pl()===45&&(N+=Ex(ha())),g=Pl(),m=p=aa(E=N+=pee(Fb())),$++;break;case 45:y===45&&aa(N)==2&&(S=0);}}return i}function Z5(e,t,n,r,o,i,a,l,u,d,m,p){for(var g=o-1,b=o===0?i:[""],y=bz(b),S=0,C=0,w=0;S<r;++S)for(var $=0,E=vu(e,g+1,g=gz(C=a[S])),T=e;$<y;++$)(T=vz(C>0?b[$]+" "+E:Qt(E,/&\f/g,b[$])))&&(u[w++]=T);return Gy(e,t,n,o===0?jM:l,u,d,m,p)}function gee(e,t,n,r){return Gy(e,t,n,hz,WM(lee()),vu(e,2,-2),0,r)}function J5(e,t,n,r,o){return Gy(e,t,n,UM,vu(e,0,r),vu(e,r+1,-1),r,o)}function Sz(e,t,n){switch(aee(e,t)){case 5103:return wn+"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 wn+e+e;case 4855:return wn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return _h+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wn+e+_h+e+Kn+e+e;case 5936:switch(Tr(e,t+11)){case 114:return wn+e+Kn+Qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wn+e+Kn+Qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wn+e+Kn+Qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return wn+e+Kn+e+e;case 6165:return wn+e+Kn+"flex-"+e+e;case 5187:return wn+e+Qt(e,/(\w+).+(:[^]+)/,wn+"box-$1$2"+Kn+"flex-$1$2")+e;case 5443:return wn+e+Kn+"flex-item-"+Qt(e,/flex-|-self/g,"")+(ys(e,/flex-|baseline/)?"":Kn+"grid-row-"+Qt(e,/flex-|-self/g,""))+e;case 4675:return wn+e+Kn+"flex-line-pack"+Qt(e,/align-content|flex-|-self/g,"")+e;case 5548:return wn+e+Kn+Qt(e,"shrink","negative")+e;case 5292:return wn+e+Kn+Qt(e,"basis","preferred-size")+e;case 6060:return wn+"box-"+Qt(e,"-grow","")+wn+e+Kn+Qt(e,"grow","positive")+e;case 4554:return wn+Qt(e,/([^-])(transform)/g,"$1"+wn+"$2")+e;case 6187:return Qt(Qt(Qt(e,/(zoom-|grab)/,wn+"$1"),/(image-set)/,wn+"$1"),e,"")+e;case 5495:case 3959:return Qt(e,/(image-set\([^]*)/,wn+"$1$`$1");case 4968:return Qt(Qt(e,/(.+:)(flex-)?(.*)/,wn+"box-pack:$3"+Kn+"flex-pack:$3"),/space-between/,"justify")+wn+e+e;case 4200:if(!ys(e,/flex-|baseline/))return Kn+"grid-column-align"+vu(e,t)+e;break;case 2592:case 3360:return Kn+Qt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ys(r.props,/grid-\w+-end/)})?~kb(e+(n=n[t].value),"span",0)?e:Kn+Qt(e,"-start","")+e+Kn+"grid-row-span:"+(~kb(n,"span",0)?ys(n,/\d+/):+ys(n,/\d+/)-+ys(e,/\d+/))+";":Kn+Qt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ys(r.props,/grid-\w+-start/)})?e:Kn+Qt(Qt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Qt(e,/(.+)-inline(.+)/,wn+"$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(aa(e)-1-t>6)switch(Tr(e,t+1)){case 109:if(Tr(e,t+4)!==45)break;case 102:return Qt(e,/(.+:)(.+)-([^]+)/,"$1"+wn+"$2-$3$1"+_h+(Tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~kb(e,"stretch",0)?Sz(Qt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Qt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,l,u,d){return Kn+o+":"+i+d+(a?Kn+o+"-span:"+(l?u:+u-+i)+d:"")+e});case 4949:if(Tr(e,t+6)===121)return Qt(e,":",":"+wn)+e;break;case 6444:switch(Tr(e,Tr(e,14)===45?18:11)){case 120:return Qt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+wn+(Tr(e,14)===45?"inline-":"")+"box$3$1"+wn+"$2$3$1"+Kn+"$2box$3")+e;case 100:return Qt(e,":",":"+Kn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Qt(e,"scroll-","scroll-snap-")+e}return e}function dp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function eI(e,t,n,r){switch(e.type){case iee:if(e.children.length)break;case ree:case oee:case UM:return e.return=e.return||e.value;case hz:return "";case pz:return e.return=e.value+"{"+dp(e.children,r)+"}";case jM:if(!aa(e.value=e.props.join(",")))return ""}return aa(n=dp(e.children,r))?e.return=e.value+"{"+n+"}":""}function vee(e){var t=bz(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function bee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case UM:e.return=Sz(e.value,e.length,n);return;case pz:return dp([xl(e,{value:Qt(e.value,"@","@"+wn)})],r);case jM:if(e.length)return see(n=e.props,function(o){switch(ys(o,r=/(::plac\w+|:read-\w+)/)){case ":read-only":case ":read-write":xd(xl(e,{props:[Qt(o,/:(read-\w+)/,":"+_h+"$1")]})),xd(xl(e,{props:[o]})),d2(e,{props:X5(n,r)});break;case "::placeholder":xd(xl(e,{props:[Qt(o,/:(plac\w+)/,":"+wn+"input-$1")]})),xd(xl(e,{props:[Qt(o,/:(plac\w+)/,":"+_h+"$1")]})),xd(xl(e,{props:[Qt(o,/:(plac\w+)/,Kn+"input-$1")]})),xd(xl(e,{props:[o]})),d2(e,{props:X5(n,r)});break}return ""})}}const tI="data-ant-cssinjs-cache-path",Cz="_FILE_STYLE__";let tu,xz=true;function yee(){if(!tu&&(tu={},$i())){const e=document.createElement("div");e.className=tI,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(r=>{const[o,i]=r.split(":");tu[o]=i;});const n=document.querySelector(`style[${tI}]`);n&&(xz=false,n.parentNode?.removeChild(n)),document.body.removeChild(e);}}function See(e){return yee(),!!tu[e]}function Cee(e){const t=tu[e];let n=null;if(t&&$i())if(xz)n=Cz;else {const r=document.querySelector(`style[${Rs}="${tu[e]}"]`);r?n=r.innerHTML:delete tu[e];}return [n,t]}const xee="_skip_check_",wz="_multi_value_";function Mx(e,t){return (t?dp(Q5(e),vee([bee,eI])):dp(Q5(e),eI)).replace(/\{%%%\:[^;];}/g,";")}function wee(e){return typeof e=="object"&&e&&(xee in e||wz in e)}function nI(e,t,n="high"){if(!t)return e;const r=dz({hashCls:t,hashPriority:n});return e.split(",").map(i=>{const a=i.trim().split(/\s+/);let l=a[0]||"";const u=l.match(/^\w+/)?.[0]||"";return l=`${u}${r}${l.slice(u.length)}`,[l,...a.slice(1)].join(" ")}).join(",")}const m2=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:true,parentSelectors:[]})=>{const{hashId:i,layer:a,path:l,hashPriority:u,transformers:d=[],linters:m=[]}=t;let p="",g={};function b(C){const w=C.getName(i);if(!g[w]){const[$]=m2(C.style,t,{root:false,parentSelectors:o});g[w]=`@keyframes ${C.getName(i)}${$}`;}}function y(C,w=[]){return C.forEach($=>{Array.isArray($)?y($,w):$&&w.push($);}),w}return y(Array.isArray(e)?e:[e]).forEach(C=>{const w=typeof C=="string"&&!n?{}:C;if(typeof w=="string")p+=`${w}
`;else if(w._keyframe)b(w);else {const $=d.reduce((E,T)=>T?.visit?.(E)||E,w);Object.keys($).forEach(E=>{const T=$[E];if(typeof T=="object"&&T&&(E!=="animationName"||!T._keyframe)&&!wee(T)){let R=false,I=E.trim(),N=false;(n||r)&&i?I.startsWith("@")?R=true:I==="&"?I=nI("",i,u):I=nI(E,i,u):n&&!i&&(I==="&"||I==="")&&(I="",N=true);const[P,O]=m2(T,t,{root:N,injectHash:R,parentSelectors:[...o,I]});g={...g,...O},p+=`${I}${P}`;}else {let R=function(N,P){const O=N.replace(/[A-Z]/g,L=>`-${L.toLowerCase()}`);let _=P;!nee[N]&&typeof _=="number"&&_!==0&&(_=`${_}px`),N==="animationName"&&P?._keyframe&&(b(P),_=P.getName(i)),p+=`${O}:${_};`;};const I=T?.value??T;typeof T=="object"&&T?.[wz]&&Array.isArray(I)?I.forEach(N=>{R(E,N);}):qJ(I)&&R(E,I);}});}}),n?a&&(p&&(p=`@layer ${a.name} {${p}}`),a.dependencies&&(g[`@layer ${a.name}`]=a.dependencies.map(C=>`@layer ${C}, ${a.name};`).join(`
`))):p=`{${p}}`,[p,g]};function $z(e,t){return lp(`${e.join("%")}${t}`)}const $ee="style";function h2(e,t){const{path:n,hashId:r,layer:o,nonce:i,clientOnly:a,order:l=0}=e,{mock:u,hashPriority:d,container:m,transformers:p,linters:g,cache:b,layer:y,autoPrefix:S}=f.useContext(gu),C=[r||""];y&&C.push("layer"),C.push(...n);let w=u2;VM($ee,C,()=>{const $=C.join("|");if(See($)){const[P,O]=Cee($);if(P)return [P,O,{},a,l]}const E=t(),[T,R]=m2(E,{hashId:r,hashPriority:d,layer:y?o:void 0,path:n.join("-"),transformers:p,linters:g}),I=Mx(T,S||false),N=$z(C,I);return [I,N,R,a,l]},($,E)=>{const[,T]=$;E&&u2&&cp(T,{mark:Rs,attachTo:m});},$=>{const[E,T,R,,I]=$;if(w&&E!==Cz){const N={mark:Rs,prepend:y?false:"queue",attachTo:m,priority:I},P=typeof i=="function"?i():i;P&&(N.csp={nonce:P});const O=[],_=[];Object.keys(R).forEach(k=>{k.startsWith("@layer")?O.push(k):_.push(k);}),O.forEach(k=>{Ll(Mx(R[k],S||false),`_layer-${k}`,{...N,prepend:true});});const L=Ll(E,T,N);L[eu]=b.instanceId,_.forEach(k=>{Ll(Mx(R[k],S||false),`_effect-${k}`,N);});}});}const Eee="cssVar",Mee=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:i,token:a,hashId:l,scope:u}=e,{cache:{instanceId:d},container:m,hashPriority:p}=f.useContext(gu),{_tokenKey:g}=a,b=Array.isArray(u)?u.join("@@"):u,y=[...e.path,n,b,g];return VM(Eee,y,()=>{const C=t(),[w,$]=fz(C,n,{prefix:r,unitless:o,ignore:i,scope:u,hashPriority:p,hashCls:l}),E=$z(y,$);return [w,$,E,n]},([,,C])=>{u2&&cp(C,{mark:Rs,attachTo:m});},([,C,w])=>{if(!C)return;const $=Ll(C,w,{mark:Rs,prepend:"queue",attachTo:m,priority:-999});$[eu]=d,$.setAttribute(HM,n);})};class zt{name;style;constructor(t,n){this.name=t,this.style=n;}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=true}function wd(e){return e.notSplit=true,e}wd(["borderTop","borderBottom"]),wd(["borderTop"]),wd(["borderBottom"]),wd(["borderLeft","borderRight"]),wd(["borderLeft"]),wd(["borderRight"]);function $r(e){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}function Ree(e){if(Array.isArray(e))return e}function Tee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],u=true,d=false;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1;}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(m){d=true,o=m;}finally{try{if(!u&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}function Aee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qM(e,t){return Ree(e)||Tee(e,t)||zM(e,t)||Aee()}function Nee(e,t){if($r(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($r(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Ez(e){var t=Nee(e,"string");return $r(t)=="symbol"?t:t+""}function Ct(e,t,n){return (t=Ez(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function rI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rI(Object(n),true).forEach(function(r){Ct(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,"value"in r&&(r.writable=true),Object.defineProperty(e,Ez(r.key),r);}}function Qi(e,t,n){return t&&oI(e.prototype,t),n&&oI(e,n),Object.defineProperty(e,"prototype",{writable:false}),e}function Qd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fp(e,t){return fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fp(e,t)}function Mz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),t&&fp(e,t);}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mp(e)}function KM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (KM=function(){return !!e})()}function Pee(e,t){if(t&&($r(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qd(e)}function Rz(e){var t=KM();return function(){var n,r=mp(e);if(t){var o=mp(this).constructor;n=Reflect.construct(r,arguments,o);}else n=r.apply(this,arguments);return Pee(this,n)}}var Iee=Qi(function e(){Xi(this,e);}),Tz="CALC_UNIT",Oee=new RegExp(Tz,"g");function Rx(e){return typeof e=="number"?"".concat(e).concat(Tz):e}var Dee=(function(e){Mz(n,e);var t=Rz(n);function n(r,o){var i;Xi(this,n),i=t.call(this),Ct(Qd(i),"result",""),Ct(Qd(i),"unitlessCssVar",void 0),Ct(Qd(i),"lowPriority",void 0);var a=$r(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=Rx(r):a==="string"&&(i.result=r),i}return Qi(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Rx(o))),this.lowPriority=true,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Rx(o))),this.lowPriority=true,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(true)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=false,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(true)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=false,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,u=true;return typeof l=="boolean"?u=l:Array.from(this.unitlessCssVar).some(function(d){return i.result.includes(d)})&&(u=false),this.result=this.result.replace(Oee,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Iee),_ee=function(t,n){var r=Dee;return function(o){return new r(o,n)}},iI=function(t,n){return "".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function aI(e,t,n,r){var o=nr({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var u=qM(l,2),d=u[0],m=u[1];if(o!=null&&o[d]||o!=null&&o[m]){var p;(p=o[m])!==null&&p!==void 0||(o[m]=o?.[d]);}});}var a=nr(nr({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l];}),a}var Az=typeof CSSINJS_STATISTIC<"u",p2=true;function Ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Az)return Object.assign.apply(Object,[{}].concat(t));p2=false;var r={};return t.forEach(function(o){if($r(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:true,enumerable:true,get:function(){return o[a]}});});}}),p2=true,r}var sI={};function Lee(){}var Bee=function(t){var n,r=t,o=Lee;return Az&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(p2){var u;(u=n)===null||u===void 0||u.add(l);}return a[l]}}),o=function(a,l){var u;sI[a]={global:Array.from(n),component:nr(nr({},(u=sI[a])===null||u===void 0?void 0:u.component),l)};}),{token:r,keys:n,flush:o}};function lI(e,t,n){if(typeof n=="function"){var r;return n(Ft(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function zee(e){return {max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return "max(".concat(r.map(function(i){return oe(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return "min(".concat(r.map(function(i){return oe(i)}).join(","),")")}}}var kee=1e3*60*10,Fee=(function(){function e(){Xi(this,e),Ct(this,"map",new Map),Ct(this,"objectIDMap",new WeakMap),Ct(this,"nextID",0),Ct(this,"lastAccessBeat",new Map),Ct(this,"accessBeat",0);}return Qi(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now());}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&$r(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat($r(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>kee&&(n.map.delete(i),n.lastAccessBeat.delete(i));}),this.accessBeat=0;}}}]),e})(),cI=new Fee;function Hee(e,t){return G.useMemo(function(){var n=cI.get(t);if(n)return n;var r=e();return cI.set(t,r),r},t)}var Vee=function(){return {}};function jee(e){var t=e.useCSP,n=t===void 0?Vee:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function u(g,b,y,S){var C=Array.isArray(g)?g[0]:g;function w(P){return "".concat(String(C)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var $=S?.unitless||{},E=typeof l=="function"?l(g):{},T=nr(nr({},E),{},Ct({},w("zIndexPopup"),true));Object.keys($).forEach(function(P){T[w(P)]=$[P];});var R=nr(nr({},S),{},{unitless:T,prefixToken:w}),I=m(g,b,y,R),N=d(C,y,R);return function(P){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,_=I(P,O),L=S?.extraCssVarPrefixCls,k=typeof L=="function"?L({prefixCls:P,rootCls:O}):L,W=N(k!=null&&k.length?[O].concat(Zt(k)):O);return [_,W]}}function d(g,b,y){var S=y.unitless,C=y.prefixToken,w=y.ignore;return function($){var E=r(),T=E.cssVar,R=E.realToken;return Mee({path:[g],prefix:T.prefix,key:T.key,unitless:S,ignore:w,token:R,scope:$},function(){var I=lI(g,R,b),N=aI(g,R,I,{deprecatedTokens:y?.deprecatedTokens});return I&&Object.keys(I).forEach(function(P){N[C(P)]=N[P],delete N[P];}),N}),T?.key}}function m(g,b,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(g)?g:[g,g],w=qM(C,1),$=w[0],E=C.join("-"),T=e.layer||{name:"antd"};return function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,N=r(),P=N.theme,O=N.realToken,_=N.hashId,L=N.token,k=N.cssVar,W=N.zeroRuntime,q=f.useMemo(function(){return W},[]);if(q)return _;var F=o(),z=F.rootPrefixCls,j=F.iconPrefixCls,U=n(),Y="css",Q=Hee(function(){var ee=new Set;return Object.keys(S.unitless||{}).forEach(function(te){ee.add(zb(te,k.prefix)),ee.add(zb(te,iI($,k.prefix)));}),_ee(Y,ee)},[Y,$,k?.prefix]),D=zee(),B=D.max,K=D.min,J={theme:P,token:L,hashId:_,nonce:function(){return U.nonce},clientOnly:S.clientOnly,layer:T,order:S.order||-999};return typeof i=="function"&&h2(nr(nr({},J),{},{clientOnly:false,path:["Shared",z]}),function(){return i(L,{prefix:{rootPrefixCls:z,iconPrefixCls:j},csp:U})}),h2(nr(nr({},J),{},{path:[E,R,j]}),function(){if(S.injectStyle===false)return [];var ee=Bee(L),te=ee.token,re=ee.flush,ie=lI($,O,y),ue=".".concat(R),ne=aI($,O,ie,{deprecatedTokens:S.deprecatedTokens});ie&&$r(ie)==="object"&&Object.keys(ie).forEach(function(Me){ie[Me]="var(".concat(zb(Me,iI($,k.prefix)),")");});var ce=Ft(te,{componentCls:ue,prefixCls:R,iconCls:".".concat(j),antCls:".".concat(z),calc:Q,max:B,min:K},ie),fe=b(ce,{hashId:_,prefixCls:R,rootPrefixCls:z,iconPrefixCls:j});re($,ne);var se=typeof a=="function"?a(ce,R,I,S.resetFont):null;return [S.resetStyle===false?null:se,fe]}),_}}function p(g,b,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=m(g,b,y,nr({resetStyle:false,order:-998},S)),w=function(E){var T=E.prefixCls,R=E.rootCls,I=R===void 0?T:R;return C(T,I),null};return w}return {genStyleHooks:u,genSubStyleComponent:p,genComponentStyleHook:m}}const qa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Vb(e){return (e+8)/e}function Uee(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.E**(o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Vb(n)}))}const Wee="6.3.1",YM={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"},mf={...YM,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'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:false,motion:true},qee={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"},Br=Math.round;function Tx(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const uI=(e,t,n)=>n===0?e:e/100;function Zm(e,t){const n=t||255;return e>n?n:e<0?0:e}class cn{isValid=true;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(o("rgb"))this.fromRgbString(r);else if(o("hsl"))this.fromHslString(r);else if(o("hsv")||o("hsb"))this.fromHsvString(r);else {const i=qee[r.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"));}}else if(t instanceof cn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Zm(t.r),this.g=Zm(t.g),this.b=Zm(t.b),this.a=typeof t.a=="number"?Zm(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Br(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4));}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax();}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else {const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1));}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=l=>(r[l]-this[l])*o+this[l],a={r:Br(i("r")),g:Br(i("g")),b:Br(i("b")),a:Br(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>Br((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Br(this.a*255).toString(16);t+=i.length===2?i:"0"+i;}return t}toHsl(){return {h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Br(this.getHSLSaturation()*100),r=Br(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return {h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return {r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Zm(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1);}fromHsl({h:t,s:n,l:r,a:o}){const i=(t%360+360)%360;if(this._h=i,this._hsl_s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const b=Br(r*255);this.r=b,this.g=b,this.b=b;return}let a=0,l=0,u=0;const d=i/60,m=(1-Math.abs(2*r-1))*n,p=m*(1-Math.abs(d%2-1));d>=0&&d<1?(a=m,l=p):d>=1&&d<2?(a=p,l=m):d>=2&&d<3?(l=m,u=p):d>=3&&d<4?(l=p,u=m):d>=4&&d<5?(a=p,u=m):d>=5&&d<6&&(a=m,u=p);const g=r-m/2;this.r=Br((a+g)*255),this.g=Br((l+g)*255),this.b=Br((u+g)*255);}fromHsv({h:t,s:n,v:r,a:o}){const i=(t%360+360)%360;this._h=i,this._hsv_s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=Br(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=i/60,u=Math.floor(l),d=l-u,m=Br(r*(1-n)*255),p=Br(r*(1-n*d)*255),g=Br(r*(1-n*(1-d))*255);switch(u){case 0:this.g=g,this.b=m;break;case 1:this.r=p,this.b=m;break;case 2:this.r=m,this.b=g;break;case 3:this.r=m,this.g=p;break;case 4:this.r=g,this.g=m;break;default:this.g=m,this.b=p;break}}fromHsvString(t){const n=Tx(t,uI);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]});}fromHslString(t){const n=Tx(t,uI);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]});}fromRgbString(t){const n=Tx(t,(r,o)=>o.includes("%")?Br(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3];}}const eb=2,dI=.16,Gee=.05,Kee=.05,Yee=.15,Nz=5,Pz=4,Xee=[{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 fI(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-eb*t:Math.round(e.h)+eb*t:r=n?Math.round(e.h)+eb*t:Math.round(e.h)-eb*t,r<0?r+=360:r>=360&&(r-=360),r}function mI(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-dI*t:t===Pz?r=e.s+dI:r=e.s+Gee*t,r>1&&(r=1),n&&t===Nz&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function hI(e,t,n){let r;return n?r=e.v+Kee*t:r=e.v-Yee*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Xp(e,t={}){const n=[],r=new cn(e),o=r.toHsv();for(let i=Nz;i>0;i-=1){const a=new cn({h:fI(o,i,true),s:mI(o,i,true),v:hI(o,i,true)});n.push(a);}n.push(r);for(let i=1;i<=Pz;i+=1){const a=new cn({h:fI(o,i),s:mI(o,i),v:hI(o,i)});n.push(a);}return t.theme==="dark"?Xee.map(({index:i,amount:a})=>new cn(t.backgroundColor||"#141414").mix(n[i],a).toHexString()):n.map(i=>i.toHexString())}const Ax={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"},g2=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];g2.primary=g2[5];const v2=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v2.primary=v2[5];const b2=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];b2.primary=b2[5];const y2=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];y2.primary=y2[5];const S2=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];S2.primary=S2[5];const C2=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];C2.primary=C2[5];const x2=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];x2.primary=x2[5];const w2=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];w2.primary=w2[5];const P0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];P0.primary=P0[5];const $2=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];$2.primary=$2[5];const E2=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];E2.primary=E2[5];const M2=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];M2.primary=M2[5];const R2=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];R2.primary=R2[5];const Nx={red:g2,volcano:v2,orange:b2,gold:y2,yellow:S2,lime:C2,green:x2,cyan:w2,blue:P0,geekblue:$2,purple:E2,magenta:M2,grey:R2};function Iz(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,m=t(l),p=t(r),g=t(o),b=t(i),y=t(a),S=n(u,d),C=e.colorLink||e.colorInfo,w=t(C),$=new cn(b[1]).mix(new cn(b[3]),50).toHexString(),E={};return qa.forEach(T=>{const R=e[T];if(R){const I=t(R);E[`${T}Hover`]=I[5],E[`${T}Active`]=I[7];}}),{...S,colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:$,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],...E,colorBgMask:new cn("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Qee=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?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?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Zee(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return {motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1,...Qee(r)}}const Oz=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Dz=e=>{const t=Uee(e),n=t.map(m=>m.size),r=t.map(m=>m.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],u=r[0],d=r[2];return {fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:u,fontHeight:Math.round(l*o),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(u*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Jee(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 Li=(e,t)=>new cn(e).setA(t).toRgbString(),$d=(e,t)=>new cn(e).darken(t).toHexString(),ete=e=>{const t=Xp(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]}},tte=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Li(r,.88),colorTextSecondary:Li(r,.65),colorTextTertiary:Li(r,.45),colorTextQuaternary:Li(r,.25),colorFill:Li(r,.15),colorFillSecondary:Li(r,.06),colorFillTertiary:Li(r,.04),colorFillQuaternary:Li(r,.02),colorBgSolid:Li(r,1),colorBgSolidHover:Li(r,.75),colorBgSolidActive:Li(r,.95),colorBgLayout:$d(n,4),colorBgContainer:$d(n,0),colorBgElevated:$d(n,0),colorBgSpotlight:Li(r,.85),colorBgBlur:"transparent",colorBorder:$d(n,15),colorBorderDisabled:$d(n,15),colorBorderSecondary:$d(n,6)}};function Yy(e){Ax.pink=Ax.magenta,Nx.pink=Nx.magenta;const t=Object.keys(YM).map(n=>{const r=e[n]===Ax[n]?Nx[n]:Xp(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n={...n,...r},n),{});return {...e,...t,...Iz(e,{generateColorPalettes:ete,generateNeutralColorPalettes:tte}),...Dz(e.fontSize),...Jee(e),...Oz(e),...Zee(e)}}const XM=N0(Yy),hp={token:mf,override:{override:mf},hashed:true},QM=G.createContext(hp);function Px(e){return e>=0&&e<=255}function wh(e,t){const{r:n,g:r,b:o,a:i}=new cn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:u}=new cn(t).toRgb();for(let d=.01;d<=1;d+=.01){const m=Math.round((n-a*(1-d))/d),p=Math.round((r-l*(1-d))/d),g=Math.round((o-u*(1-d))/d);if(Px(m)&&Px(p)&&Px(g))return new cn({r:m,g:p,b:g,a:Math.round(d*100)/100}).toRgbString()}return new cn({r:n,g:r,b:o,a:1}).toRgbString()}function _z(e){const{override:t,...n}=e,r={...t};Object.keys(mf).forEach(b=>{delete r[b];});const o={...n,...r},i=480,a=576,l=768,u=992,d=1200,m=1600,p=1920;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:wh(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:wh(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:wh(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:wh(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,screenXXLMax:p-1,screenXXXL:p,screenXXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new cn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new cn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new cn("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,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)",...r}}const Lz={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},nte={motionBase:true,motionUnit:true},rte={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},Bz=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let a={...r,override:o};return a=_z(a),i&&Object.entries(i).forEach(([l,u])=>{const{theme:d,...m}=u;let p=m;d&&(p=Bz({...a,...m},{override:m},d)),a[l]=p;}),a};function Wr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:i}=G.useContext(QM),a={prefix:o?.prefix??"ant",key:o?.key??"css-var-root"},l=`${Wee}-${t||""}`,u=n||XM,[d,m,p]=tee(u,[mf,e],{salt:l,override:r,getComputedToken:Bz,cssVar:{...a,unitless:Lz,ignore:nte,preserve:rte}});return [u,p,t?m:"",d,a,!!i]}const Ga={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dn=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Au=()=>({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"}}),I0=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),ote=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"}}}),ite=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...a,[o]:a}}},ba=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),Ei=(e,t)=>({"&:focus-visible":ba(e,t)}),zz=e=>({[`.${e}`]:{...Au(),[`.${e} .${e}-icon`]:{display:"block"}}}),ate=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...Ei(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:qt,genComponentStyleHook:ste,genSubStyleComponent:Df}=jee({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=f.useContext(wt);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,i]=Wr();return {theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:i}},useCSP:()=>{const{csp:e}=f.useContext(wt);return e??{}},getResetStyles:(e,t)=>{const n=ote(e);return [n,{"&":n},zz(t?.prefix.iconPrefixCls??Uy)]},getCommonStyle:ite,getCompUnitless:()=>Lz}),tr=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return [i=>`${n}${i}`,(i,a)=>a?`var(${n}${i}, ${a})`:`var(${n}${i})`]};function Xy(e,t){return qa.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return {...n,...t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l})}},{})}const lte=(e,t)=>(Wr(),h2({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>zz(e)));var cte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const ZM=f.createContext({});function kz(e){return e?.getRootNode?.()}function ute(e){return kz(e)instanceof ShadowRoot}function O0(e){return ute(e)?kz(e):null}function dte(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function fte(e,t){Er(e,`[@ant-design/icons] ${t}`);}function pI(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function gI(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];return n==="class"?(t.className=r,delete t.class):(delete t[n],t[dte(n)]=r),t},{})}function T2(e,t,n){return n?G.createElement(e.tag,{key:t,...gI(e.attrs),...n},(e.children||[]).map((r,o)=>T2(r,`${t}-${e.tag}-${o}`))):G.createElement(e.tag,{key:t,...gI(e.attrs)},(e.children||[]).map((r,o)=>T2(r,`${t}-${e.tag}-${o}`)))}function Fz(e){return Xp(e)[0]}function Hz(e){return e?Array.isArray(e)?e:[e]:[]}const mte=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
  vertical-align: inherit;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,hte=e=>{const{csp:t,prefixCls:n,layer:r}=f.useContext(ZM);let o=mte;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
${o}
}`),f.useEffect(()=>{const i=e.current,a=O0(i);Ll(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:a});},[]);},Lh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:false};function pte({primaryColor:e,secondaryColor:t}){Lh.primaryColor=e,Lh.secondaryColor=t||Fz(e),Lh.calculated=!!t;}function gte(){return {...Lh}}const _f=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:i,secondaryColor:a,...l}=e,u=f.useRef(null);let d=Lh;if(i&&(d={primaryColor:i,secondaryColor:a||Fz(i)}),hte(u),fte(pI(t),`icon should be icon definiton, but got ${t}`),!pI(t))return null;let m=t;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(d.primaryColor,d.secondaryColor)}),T2(m.icon,`svg-${m.name}`,{className:n,onClick:r,style:o,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:u})};_f.displayName="IconReact";_f.getTwoToneColors=gte;_f.setTwoToneColors=pte;function Vz(e){const[t,n]=Hz(e);return _f.setTwoToneColors({primaryColor:t,secondaryColor:n})}function vte(){const e=_f.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function A2(){return A2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},A2.apply(this,arguments)}Vz(P0.primary);const Xn=f.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:i,tabIndex:a,onClick:l,twoToneColor:u,...d}=e,{prefixCls:m="anticon",rootClassName:p}=f.useContext(ZM),g=X(p,m,{[`${m}-${r.name}`]:!!r.name,[`${m}-spin`]:!!o||r.name==="loading"},n);let b=a;b===void 0&&l&&(b=-1);const y=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[S,C]=Hz(u);return f.createElement("span",A2({role:"img","aria-label":r.name},d,{ref:t,tabIndex:b,onClick:l,className:g}),f.createElement(_f,{icon:r,primaryColor:S,secondaryColor:C,style:y}))});Xn.getTwoToneColor=vte;Xn.setTwoToneColor=Vz;function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},N2.apply(this,arguments)}const bte=(e,t)=>f.createElement(Xn,N2({},e,{ref:t,icon:cte})),JM=f.forwardRef(bte);var yte={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 P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},P2.apply(this,arguments)}const Ste=(e,t)=>f.createElement(Xn,P2({},e,{ref:t,icon:yte})),Qp=f.forwardRef(Ste);var Cte={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 I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},I2.apply(this,arguments)}const xte=(e,t)=>f.createElement(Xn,I2({},e,{ref:t,icon:Cte})),zs=f.forwardRef(xte);var wte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function O2(){return O2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},O2.apply(this,arguments)}const $te=(e,t)=>f.createElement(Xn,O2({},e,{ref:t,icon:wte})),Zp=f.forwardRef($te);var Ete={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function D2(){return D2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},D2.apply(this,arguments)}const Mte=(e,t)=>f.createElement(Xn,D2({},e,{ref:t,icon:Ete})),eR=f.forwardRef(Mte),jz=f.createContext({}),Rte=e=>{const{children:t,...n}=e,r=f.useMemo(()=>({motion:n.motion}),[n.motion]);return f.createElement(jz.Provider,{value:r},t)};function Tte(e){const[,t]=f.useReducer(i=>i+1,0),n=f.useRef(e),r=Mt(()=>n.current),o=Mt(i=>{n.current=typeof i=="function"?i(n.current):i,t();});return [r,o]}const Oa="none",tb="appear",nb="enter",rb="leave",vI="none",sa="prepare",Vc="start",jc="active",tR="end",Uz="prepared";function bI(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}function Ate(e,t){const n={animationend:bI("Animation","AnimationEnd"),transitionend:bI("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const Nte=Ate($i(),typeof window<"u"?window:{});let Wz={};$i()&&({style:Wz}=document.createElement("div"));const ob={};function qz(e){if(ob[e])return ob[e];const t=Nte[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Wz)return ob[e]=t[i],ob[e]}}return ""}const Gz=qz("animationend"),Kz=qz("transitionend"),Pte=!!(Gz&&Kz),yI=Gz||"animationend",SI=Kz||"transitionend";function CI(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return `${e}-${t}`}const Ite=(e=>{const t=f.useRef();function n(o){o&&(o.removeEventListener(SI,e),o.removeEventListener(yI,e));}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(SI,e),o.addEventListener(yI,e),t.current=o);}return f.useEffect(()=>()=>{n(t.current),t.current=null;},[]),[r,n]}),Yz=$i()?f.useLayoutEffect:f.useEffect,Ote=(()=>{const e=f.useRef(null);function t(){Bt.cancel(e.current);}function n(r,o=2){t();const i=Bt(()=>{o<=1?r({isCanceled:()=>i!==e.current}):n(r,o-1);});e.current=i;}return f.useEffect(()=>()=>{t();},[]),[n,t]}),Dte=[sa,Vc,jc,tR],_te=[sa,Uz],Xz=false,Lte=true;function Qz(e){return e===jc||e===tR}const Bte=((e,t,n)=>{const[r,o]=YB(vI),[i,a]=Ote();function l(){o(sa,true);}const u=t?_te:Dte;return Yz(()=>{if(r!==vI&&r!==tR){const d=u.indexOf(r),m=u[d+1],p=n(r);p===Xz?o(m,true):m&&i(g=>{function b(){g.isCanceled()||o(m,true);}p===true?b():Promise.resolve(p).then(b);});}},[e,r]),f.useEffect(()=>()=>{a();},[]),[l,r]});function zte(e,t,n,{motionEnter:r=true,motionAppear:o=true,motionLeave:i=true,motionDeadline:a,motionLeaveImmediately:l,onAppearPrepare:u,onEnterPrepare:d,onLeavePrepare:m,onAppearStart:p,onEnterStart:g,onLeaveStart:b,onAppearActive:y,onEnterActive:S,onLeaveActive:C,onAppearEnd:w,onEnterEnd:$,onLeaveEnd:E,onVisibleChanged:T}){const[R,I]=f.useState(),[N,P]=Tte(Oa),[O,_]=f.useState([null,null]),L=N(),k=f.useRef(false),W=f.useRef(null);function q(){return n()}const F=f.useRef(false);function z(){P(Oa),_([null,null]);}const j=Mt(ie=>{const ue=N();if(ue===Oa)return;const ne=q();if(ie&&!ie.deadline&&ie.target!==ne)return;const ce=F.current;let fe;ue===tb&&ce?fe=w?.(ne,ie):ue===nb&&ce?fe=$?.(ne,ie):ue===rb&&ce&&(fe=E?.(ne,ie)),ce&&fe!==false&&z();}),[U]=Ite(j),Y=ie=>{switch(ie){case tb:return {[sa]:u,[Vc]:p,[jc]:y};case nb:return {[sa]:d,[Vc]:g,[jc]:S};case rb:return {[sa]:m,[Vc]:b,[jc]:C};default:return {}}},Q=f.useMemo(()=>Y(L),[L]),[D,B]=Bte(L,!e,ie=>{if(ie===sa){const ue=Q[sa];return ue?ue(q()):Xz}return ie in Q&&_([Q[ie]?.(q(),null)||null,ie]),ie===jc&&L!==Oa&&(U(q()),a>0&&(clearTimeout(W.current),W.current=setTimeout(()=>{j({deadline:true});},a))),ie===Uz&&z(),Lte}),K=Qz(B);F.current=K;const J=f.useRef(null);Yz(()=>{if(k.current&&J.current===t)return;I(t);const ie=k.current;k.current=true;let ue;!ie&&t&&o&&(ue=tb),ie&&t&&r&&(ue=nb),(ie&&!t&&i||!ie&&l&&!t&&i)&&(ue=rb);const ne=Y(ue);ue&&(e||ne[sa])?(P(ue),D()):P(Oa),J.current=t;},[t]),f.useEffect(()=>{(L===tb&&!o||L===nb&&!r||L===rb&&!i)&&P(Oa);},[o,r,i]),f.useEffect(()=>()=>{k.current=false,clearTimeout(W.current);},[]);const ee=f.useRef(false);f.useEffect(()=>{R&&(ee.current=true),R!==void 0&&L===Oa&&((ee.current||R)&&T?.(R),ee.current=true);},[R,L]);let te=O[0];Q[sa]&&B===Vc&&(te={transition:"none",...te});const re=O[1];return [N,B,te,R??t,!k.current&&L===Oa&&e&&o?"NONE":B===Vc||B===jc?re===B:true]}function kte(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,i){return !!(o.motionName&&t&&i!==false)}const r=f.forwardRef((o,i)=>{const{visible:a=true,removeOnLeave:l=true,forceRender:u,children:d,motionName:m,leavedClassName:p,eventProps:g}=o,{motion:b}=f.useContext(jz),y=n(o,b),S=f.useRef();function C(){return df(S.current)}const[w,$,E,T,R]=zte(y,a,C,o),I=w(),N=f.useRef(T);T&&(N.current=true);const P=f.useMemo(()=>{const _={};return Object.defineProperties(_,{nativeElement:{enumerable:true,get:C},inMotion:{enumerable:true,get:()=>()=>w()!==Oa},enableMotion:{enumerable:true,get:()=>()=>y}}),_},[]);f.useImperativeHandle(i,()=>P,[]);const O=f.useRef(0);return R&&(O.current+=1),f.useMemo(()=>{if(R==="NONE")return null;let _;const L={...g,visible:a};if(!d)_=null;else if(I===Oa)T?_=d({...L},S):!l&&N.current&&p?_=d({...L,className:p},S):u||!l&&!p?_=d({...L,style:{display:"none"}},S):_=null;else {let k;$===sa?k="prepare":Qz($)?k="active":$===Vc&&(k="start");const W=CI(m,`${I}-${k}`);_=d({...L,className:X(CI(m,I),{[W]:W&&k,[m]:typeof m=="string"}),style:E},S);}return f.isValidElement(_)&&Tu(_)&&(tc(_)||(_=f.cloneElement(_,{ref:S}))),_},[O.current])});return r.displayName="CSSMotion",r}const wo=kte(Pte),_2="add",L2="keep",B2="remove",Ix="removed";function Fte(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function z2(e=[]){return e.map(Fte)}function Hte(e=[],t=[]){let n=[],r=0;const o=t.length,i=z2(e),a=z2(t);i.forEach(d=>{let m=false;for(let p=r;p<o;p+=1){const g=a[p];if(g.key===d.key){r<p&&(n=n.concat(a.slice(r,p).map(b=>({...b,status:_2}))),r=p),n.push({...g,status:L2}),r+=1,m=true;break}}m||n.push({...d,status:B2});}),r<o&&(n=n.concat(a.slice(r).map(d=>({...d,status:_2}))));const l={};return n.forEach(({key:d})=>{l[d]=(l[d]||0)+1;}),Object.keys(l).filter(d=>l[d]>1).forEach(d=>{n=n.filter(({key:m,status:p})=>m!==d||p!==B2),n.forEach(m=>{m.key===d&&(m.status=L2);});}),n}function k2(){return k2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},k2.apply(this,arguments)}const Vte=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jte(e,t=wo){class n extends f.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:o},{keyEntities:i}){const a=z2(o);return {keyEntities:Hte(i,a).filter(u=>{const d=i.find(({key:m})=>u.key===m);return !(d&&d.status===Ix&&u.status===B2)})}}removeKey=o=>{this.setState(i=>({keyEntities:i.keyEntities.map(l=>l.key!==o?l:{...l,status:Ix})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:l})=>l!==Ix).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved();});};render(){const{keyEntities:o}=this.state,{component:i,children:a,onVisibleChanged:l,onAllRemoved:u,...d}=this.props,m=i||f.Fragment,p={};return Vte.forEach(g=>{p[g]=d[g],delete d[g];}),delete d.keys,f.createElement(m,d,o.map(({status:g,...b},y)=>{const S=g===_2||g===L2;return f.createElement(t,k2({},p,{key:b.key,visible:S,eventProps:b,onVisibleChanged:C=>{l?.(C,{key:b.key}),C||this.removeKey(b.key);}}),(C,w)=>a({...C,index:y},w))}))}}return n}const Ute=jte(),Wte=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,qte=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Gte=`${Wte} ${qte}`.split(/[\s\n]+/),Kte="aria-",Yte="data-";function xI(e,t){return e.indexOf(t)===0}function Co(e,t=false){let n;t===false?n={aria:true,data:true,attr:true}:t===true?n={aria:true}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||xI(o,Kte))||n.data&&xI(o,Yte)||n.attr&&Gte.includes(o))&&(r[o]=e[o]);}),r}const Zz={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"};var Xte={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true};function pp(e){"@babel/helpers - typeof";return pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pp(e)}function wI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function $I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wI(Object(n),true).forEach(function(r){Qte(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Qte(e,t,n){return t=Zte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Zte(e){var t=Jte(e,"string");return pp(t)=="symbol"?t:String(t)}function Jte(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var ene=$I($I({},Xte),{},{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"});const Jz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},EI={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"],...ene},timePickerLocale:{...Jz}},ci="${label} is not a valid ${type}",ya={locale:"en",Pagination:Zz,DatePicker:EI,TimePicker:Jz,Calendar:EI,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:ci,method:ci,array:ci,object:ci,number:ci,date:ci,boolean:ci,integer:ci,float:ci,regexp:ci,email:ci,url:ci,hex:ci},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"}};let jb={...ya.Modal},Ub=[];const MI=()=>Ub.reduce((e,t)=>({...e,...t}),ya.Modal);function tne(e){if(e){const t={...e};return Ub.push(t),jb=MI(),()=>{Ub=Ub.filter(n=>n!==t),jb=MI();}}jb={...ya.Modal};}function ek(){return jb}const nR=f.createContext(void 0),_o=(e,t)=>{const n=f.useContext(nR),r=f.useMemo(()=>{const i=t||ya[e],a=n?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,t,n]),o=f.useMemo(()=>{const i=n?.locale;return n?.exist&&!i?ya.locale:i},[n]);return [r,o]},nne="internalMark",rne=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>tne(t?.Modal),[t]);const o=f.useMemo(()=>({...t,exist:true}),[t]);return f.createElement(nR.Provider,{value:o},n)};function RI(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r]);});}),t}const Pr=e=>e!=null,Hl=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return {closable:t,closeIcon:n}},tk={},TI=(e,t)=>{if(!e&&(e===false||t===false||t===null))return  false;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return e&&typeof e=="object"&&(n={...n,...e}),n},one=(e,t,n)=>e===false?false:e?RI(n,t,e):t===false?false:t?RI(n,t):n.closable?n:false,ine=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...i}=e;let a=o;const l=Co(i,true);return Pr(a)&&(r&&(a=r(a)),a=G.isValidElement(a)?G.cloneElement(a,{"aria-label":n,...a.props,...l}):G.createElement("span",{"aria-label":n,...l},a)),[a,l]},nk=(e,t,n=tk,r="Close")=>{const o=TI(e?.closable,e?.closeIcon),i=TI(t?.closable,t?.closeIcon),a={closeIcon:G.createElement(zs,null),...n},l=one(o,i,a),u=typeof l!="boolean"?!!l?.disabled:false;if(l===false)return [false,null,u,{}];const[d,m]=ine(l,a,r);return [true,d,u,m]},rR=(e,t,n=tk)=>{const[r]=_o("global",ya.global);return G.useMemo(()=>nk(e,t,{closeIcon:G.createElement(zs,null),...n},r.close),[e,t,n,r.close])},rk=()=>G.useReducer(e=>e+1,0),F2=(e,t)=>{let n={};return e&&typeof e=="object"&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},ane=(e,t,n,r)=>f.useMemo(()=>{const o=F2(e,r),i=F2(t),a={blur:false,...i,...o,closable:o.closable??r??i.closable??true},l=a.blur?`${n}-mask-blur`:void 0;return [a.enabled!==false,{mask:l},!!a.closable]},[e,t,n,r]),Qy=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,o)=>(Object.keys(o||{}).forEach(i=>{const a=n[i],l=o[i];if(a&&typeof a=="object")if(l&&typeof l=="object")r[i]=Qy(a,r[i],l);else {const{_default:u}=a;u&&(r[i]=r[i]||{},r[i][u]=X(r[i][u],l));}else r[i]=X(r[i],l);}),r),{})},sne=(e,...t)=>f.useMemo(()=>Qy.apply(void 0,[e].concat(t)),[e].concat(t)),oR=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]};}),t),{}),lne=(...e)=>f.useMemo(()=>oR.apply(void 0,e),[].concat(e)),H2=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],i=n[r]||{};n[r]=o?H2(i,o):i;}}),n},Il=(e,t)=>typeof e=="function"?e(t):e,Kt=(e,t,n,r)=>{const o=e.map(u=>u?Il(u,n):void 0),i=t.map(u=>u?Il(u,n):void 0),a=sne.apply(void 0,[r].concat(Zt(o))),l=lne.apply(void 0,Zt(i));return f.useMemo(()=>r?[H2(a,r),H2(l,r)]:[a,l],[a,l,r])},AI=e=>{const[t,n]=f.useState(null);return [f.useCallback((o,i,a)=>{const l=t??o,u=Math.min(l||0,o),d=Math.max(l||0,o),m=i.slice(u,d+1).map(e),p=m.some(b=>!a.has(b)),g=[];return m.forEach(b=>{p?(a.has(b)||g.push(b),a.add(b)):(a.delete(b),g.push(b));}),n(p?d:null),g},[t]),n]},NI=e=>e==="horizontal"||e==="vertical",Nu=(e,t,n)=>f.useMemo(()=>{const r=NI(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=NI(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),cne=()=>{const[e,t]=f.useState([]),n=f.useCallback(r=>(t(o=>[].concat(Zt(o),[r])),()=>{t(o=>o.filter(i=>i!==r));}),[]);return [e,n]},Zy=G.createContext(void 0),wl=100,une=10,iR=wl*une,ok={Modal:wl,Drawer:wl,Popover:wl,Popconfirm:wl,Tooltip:wl,Tour:wl,FloatButton:wl},dne={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},fne=e=>e in ok,Pu=(e,t)=>{const[,n]=Wr(),r=G.useContext(Zy),o=fne(e);let i;if(t!==void 0)i=[t,t];else {let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+ok[e]:a+=dne[e],i=[r===void 0?t:a,a];}return i};function V2(e){return Pr(e)&&e===e.window}const ik=e=>{if(typeof window>"u")return 0;let t=0;return V2(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!V2(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function mne(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function hne(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=ik(i),l=Date.now();let u;const d=()=>{const p=Date.now()-l,g=mne(p>o?o:p,a,e,o);V2(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<o?u=Bt(d):typeof r=="function"&&r();};return u=Bt(d),()=>{Bt.cancel(u);}}const Qn=e=>`${e}-css-var`,pne=f.createContext(void 0);var Ox={exports:{}},mo={};var PI;function gne(){if(PI)return mo;PI=1;var e=ec();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m]);}return "Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(u,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return {$$typeof:o,key:p==null?null:""+p,children:u,containerInfo:d,implementation:m}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(u,d){if(u==="font")return "";if(typeof d=="string")return d==="use-credentials"?d:""}return mo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mo.createPortal=function(u,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return i(u,d,null,m)},mo.flushSync=function(u){var d=a.T,m=r.p;try{if(a.T=null,r.p=2,u)return u()}finally{a.T=d,r.p=m,r.d.f();}},mo.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d));},mo.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u);},mo.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var m=d.as,p=l(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:b}):m==="script"&&r.d.X(u,{crossOrigin:p,integrity:g,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0});}},mo.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=l(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0});}}else d==null&&r.d.M(u);},mo.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=l(m,d.crossOrigin);r.d.L(u,m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0});}},mo.preloadModule=function(u,d){if(typeof u=="string")if(d){var m=l(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0});}else r.d.m(u);},mo.requestFormReset=function(u){r.d.r(u);},mo.unstable_batchedUpdates=function(u,d){return u(d)},mo.useFormState=function(u,d,m){return a.H.useFormState(u,d,m)},mo.useFormStatus=function(){return a.H.useHostTransitionStatus()},mo.version="19.2.4",mo}var II;function ak(){if(II)return Ox.exports;II=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);}catch(t){console.error(t);}}return e(),Ox.exports=gne(),Ox.exports}var Mo=ak();const sk=f.createContext(null);let vne=false;function bne(e){return vne}const OI=[];function yne(e,t){const[n]=f.useState(()=>$i()?document.createElement("div"):null),r=f.useRef(false),o=f.useContext(sk),[i,a]=f.useState(OI),l=o||(r.current?void 0:m=>{a(p=>[m,...p]);});function u(){n.parentElement||document.body.appendChild(n),r.current=true;}function d(){n.parentElement?.removeChild(n),r.current=false;}return An(()=>(e?o?o(u):u():d(),d),[e]),An(()=>{i.length&&(i.forEach(m=>m()),a(OI));},[i]),[n,l]}function Sne(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let o,i;if(e){const u=getComputedStyle(e);r.scrollbarColor=u.scrollbarColor,r.scrollbarWidth=u.scrollbarWidth;const d=getComputedStyle(e,"::-webkit-scrollbar"),m=parseInt(d.width,10),p=parseInt(d.height,10);try{const g=m?`width: ${d.width};`:"",b=p?`height: ${d.height};`:"";Ll(`
#${t}::-webkit-scrollbar {
${g}
${b}
}`,t);}catch(g){console.error(g),o=m,i=p;}}document.body.appendChild(n);const a=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,l=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),cp(t),{width:a,height:l}}function Cne(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Sne(e)}function xne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const wne=`rc-util-locker-${Date.now()}`;let DI=0;function $ne(e){const t=!!e,[n]=f.useState(()=>(DI+=1,`${wne}_${DI}`));An(()=>{if(t){const r=Cne(document.body).width,o=xne();Ll(`
html body {
  overflow-y: hidden;
  ${o?`width: calc(100% - ${r}px);`:""}
}`,n);}else cp(n);return ()=>{cp(n);}},[t,n]);}function Ene(){return {...X$}.useId}let _I=0;const LI=Ene(),ks=LI?(function(t){const n=LI();return t||n}):(function(t){const[n,r]=f.useState("ssr-id");return f.useEffect(()=>{const o=_I;_I+=1,r(`rc_unique_${o}`);},[]),t||n});let qc=[];const Mne=200;let lk=0;const ck=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-lk<Mne)return;const n=qc.length;for(let r=n-1;r>=0;r-=1)qc[r].onEsc({top:r===n-1,event:e});}},uk=()=>{lk=Date.now();};function Rne(){window.addEventListener("keydown",ck),window.addEventListener("compositionend",uk);}function Tne(){qc.length===0&&(window.removeEventListener("keydown",ck),window.removeEventListener("compositionend",uk));}function Ane(e,t){const n=ks(),r=Mt(t),o=()=>{qc.find(a=>a.id===n)||qc.push({id:n,onEsc:r});},i=()=>{qc=qc.filter(a=>a.id!==n);};f.useMemo(()=>{e?o():e||i();},[e]),f.useEffect(()=>{if(e)return o(),Rne(),()=>{i(),Tne();}},[e]);}const BI=e=>e===false?false:!$i()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Jy=f.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:i,autoDestroy:a=true,children:l,onEsc:u}=e,[d,m]=f.useState(n),p=d||n;f.useEffect(()=>{(a||n)&&m(n);},[n,a]);const[g,b]=f.useState(()=>BI(o));f.useEffect(()=>{const R=BI(o);b(()=>R??null);});const[y,S]=yne(p&&!g),C=g??y;$ne(r&&n&&$i()&&(C===y||C===document.body)),Ane(n,u);let w=null;l&&Tu(l)&&t&&(w=tc(l));const $=Bs(w,t);if(!p||!$i()||g===void 0)return null;const E=C===false||bne();let T=l;return t&&(T=f.cloneElement(l,{ref:$})),f.createElement(sk.Provider,{value:S},E?T:Mo.createPortal(T,C))});function Nne(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:i,content:a,style:l}=r||{},{x:u=0,y:d=0}=o,m=f.useRef(null);if(!n||!n.points)return null;const p={position:"absolute"};if(n.autoArrow!==false){const g=n.points[0],b=n.points[1],y=g[0],S=g[1],C=b[0],w=b[1];y===C||!["t","b"].includes(y)?p.top=d:y==="t"?p.top=0:p.bottom=0,S===w||!["l","r"].includes(S)?p.left=u:S==="l"?p.left=0:p.right=0;}return f.createElement("div",{ref:m,className:X(`${t}-arrow`,i),style:{...p,...l}},a)}function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},j2.apply(this,arguments)}function Pne(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:i,mobile:a}=e;return o?f.createElement(wo,j2({},i,{motionAppear:true,visible:n,removeOnLeave:true}),({className:l})=>f.createElement("div",{style:{zIndex:r},className:X(`${t}-mask`,a&&`${t}-mobile-mask`,l)})):null}const Ine=f.memo(({children:e})=>e,(e,t)=>t.cache);function dk(e,t,n,r,o,i,a,l){const u="auto",d=e?{}:{left:"-1000vw",top:"-1000vh",right:u,bottom:u};if(!e&&(t||!n)){const{points:m}=r,p=r.dynamicInset||r._experimental?.dynamicInset,g=p&&m[0][1]==="r",b=p&&m[0][0]==="b";g?(d.right=o,d.left=u):(d.left=a,d.right=u),b?(d.bottom=i,d.top=u):(d.top=l,d.bottom=u);}return d}function U2(){return U2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},U2.apply(this,arguments)}const fk=f.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:i,style:a,target:l,onVisibleChanged:u,open:d,keepDom:m,fresh:p,onClick:g,mask:b,arrow:y,arrowPos:S,align:C,motion:w,maskMotion:$,mobile:E,forceRender:T,getPopupContainer:R,autoDestroy:I,portal:N,children:P,zIndex:O,onMouseEnter:_,onMouseLeave:L,onPointerEnter:k,onPointerDownCapture:W,ready:q,offsetX:F,offsetY:z,offsetR:j,offsetB:U,onAlign:Y,onPrepare:Q,onResize:D,stretch:B,targetWidth:K,targetHeight:J}=e,ee=typeof r=="function"?r():r,te=d||m,re=!!E,[ie,ue,ne]=f.useMemo(()=>E?[E.mask,E.maskMotion,E.motion]:[b,$,w],[E,b,$,w]),ce=R?.length>0,[fe,se]=f.useState(!R||!ce);An(()=>{!fe&&ce&&l&&se(true);},[fe,ce,l]);const Me=Mt((be,xe)=>{D?.(be,xe),Y();}),ae=dk(re,q,d,C,j,U,F,z);if(!fe)return null;const pe={};return B&&(B.includes("height")&&J?pe.height=J:B.includes("minHeight")&&J&&(pe.minHeight=J),B.includes("width")&&K?pe.width=K:B.includes("minWidth")&&K&&(pe.minWidth=K)),d||(pe.pointerEvents="none"),f.createElement(N,{open:T||te,getContainer:R&&(()=>R(l)),autoDestroy:I,onEsc:n},f.createElement(Pne,{prefixCls:i,open:d,zIndex:O,mask:ie,motion:ue,mobile:re}),f.createElement(ma,{onResize:Me,disabled:!d},be=>f.createElement(wo,U2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,forceRender:T,leavedClassName:`${i}-hidden`},ne,{onAppearPrepare:Q,onEnterPrepare:Q,visible:d,onVisibleChanged:xe=>{w?.onVisibleChanged?.(xe),u(xe);}}),({className:xe,style:Te},Ke)=>{const Ae=X(i,xe,o,{[`${i}-mobile`]:re});return f.createElement("div",{ref:Ur(be,t,Ke),className:Ae,style:{"--arrow-x":`${S.x||0}px`,"--arrow-y":`${S.y||0}px`,...ae,...pe,...Te,boxSizing:"border-box",zIndex:O,...a},onMouseEnter:_,onMouseLeave:L,onPointerEnter:k,onClick:g,onPointerDownCapture:W},y&&f.createElement(Nne,{prefixCls:i,arrow:y,arrowPos:S,align:C}),f.createElement(Ine,{cache:!d&&!p},ee))})),P)}),D0=f.createContext(null),mk=f.createContext(null);function zI(e){return e?Array.isArray(e)?e:[e]:[]}function One(e,t,n){return f.useMemo(()=>{const r=zI(t??e),o=zI(n??e),i=new Set(r),a=new Set(o);return i.has("hover")&&!i.has("click")&&i.add("touch"),a.has("hover")&&!a.has("click")&&a.add("touch"),[i,a]},[e,t,n])}const aR=(e=>{if(!e)return  false;if(e instanceof Element){if(e.offsetParent)return  true;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return  true}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return  true}}return  false});function Dne(e=[],t=[],n){const r=(o,i)=>o[i]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function hk(e,t,n,r){const{points:o}=n,i=Object.keys(e);for(let a=0;a<i.length;a+=1){const l=i[a];if(Dne(e[l]?.points,o,r))return `${t}-placement-${l}`}return ""}function Jp(e){return e.ownerDocument.defaultView}function W2(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:o,overflowY:i,overflow:a}=Jp(n).getComputedStyle(n);[o,i,a].some(l=>r.includes(l))&&t.push(n),n=n.parentElement;}return t}function gp(e,t=1){return Number.isNaN(e)?t:e}function Jm(e){return gp(parseFloat(e),0)}function kI(e,t){const n={...e};return (t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:o,overflowClipMargin:i,borderTopWidth:a,borderBottomWidth:l,borderLeftWidth:u,borderRightWidth:d}=Jp(r).getComputedStyle(r),m=r.getBoundingClientRect(),{offsetHeight:p,clientHeight:g,offsetWidth:b,clientWidth:y}=r,S=Jm(a),C=Jm(l),w=Jm(u),$=Jm(d),E=gp(Math.round(m.width/b*1e3)/1e3),T=gp(Math.round(m.height/p*1e3)/1e3),R=(b-y-w-$)*E,I=(p-g-S-C)*T,N=S*T,P=C*T,O=w*E,_=$*E;let L=0,k=0;if(o==="clip"){const j=Jm(i);L=j*E,k=j*T;}const W=m.x+O-L,q=m.y+N-k,F=W+m.width+2*L-O-_-R,z=q+m.height+2*k-N-P-I;n.left=Math.max(n.left,W),n.top=Math.max(n.top,q),n.right=Math.min(n.right,F),n.bottom=Math.min(n.bottom,z);}),n}function FI(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function HI(e,t){const[n,r]=t||[];return [FI(e.width,n),FI(e.height,r)]}function VI(e=""){return [e[0],e[1]]}function Ed(e,t){const n=t[0],r=t[1];let o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Sl(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function jI(e){return e.join("")}function pk(e,t,n,r,o,i,a,l){const[u,d]=f.useState({ready:false,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),m=f.useRef(0),p=f.useMemo(()=>!t||l?[]:W2(t),[t]),g=f.useRef({});e||(g.current={});const y=Mt(()=>{if(t&&n&&e&&!l){let Ie=function(kt,Dr,_r=Me){const Ra=W.x+kt,Ri=W.y+Dr,zo=Ra+K,qr=Ri+B,dc=Math.max(Ra,_r.left),Lg=Math.max(Ri,_r.top),fc=Math.min(zo,_r.right),ku=Math.min(qr,_r.bottom);return Math.max(0,(fc-dc)*(ku-Lg))},we=function(){ye=W.y+Le,Ce=ye+B,he=W.x+Je,De=he+K;};const w=t,$=w.ownerDocument,E=Jp(w),{position:T}=E.getComputedStyle(w),R=w.style.left,I=w.style.top,N=w.style.right,P=w.style.bottom,O=w.style.overflow,_={...o[r],...i},L=$.createElement("div");w.parentElement?.appendChild(L),L.style.left=`${w.offsetLeft}px`,L.style.top=`${w.offsetTop}px`,L.style.position=T,L.style.height=`${w.offsetHeight}px`,L.style.width=`${w.offsetWidth}px`,w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";let k;if(Array.isArray(n))k={x:n[0],y:n[1],width:0,height:0};else {const kt=n.getBoundingClientRect();kt.x=kt.x??kt.left,kt.y=kt.y??kt.top,k={x:kt.x,y:kt.y,width:kt.width,height:kt.height};}const W=w.getBoundingClientRect(),{height:q,width:F}=E.getComputedStyle(w);W.x=W.x??W.left,W.y=W.y??W.top;const{clientWidth:z,clientHeight:j,scrollWidth:U,scrollHeight:Y,scrollTop:Q,scrollLeft:D}=$.documentElement,B=W.height,K=W.width,J=k.height,ee=k.width,te={left:0,top:0,right:z,bottom:j},re={left:-D,top:-Q,right:U-D,bottom:Y-Q};let{htmlRegion:ie}=_;const ue="visible",ne="visibleFirst";ie!=="scroll"&&ie!==ne&&(ie=ue);const ce=ie===ne,fe=kI(re,p),se=kI(te,p),Me=ie===ue?se:fe,ae=ce?se:Me;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";const pe=w.getBoundingClientRect();w.style.left=R,w.style.top=I,w.style.right=N,w.style.bottom=P,w.style.overflow=O,w.parentElement?.removeChild(L);const be=gp(Math.round(K/parseFloat(F)*1e3)/1e3),xe=gp(Math.round(B/parseFloat(q)*1e3)/1e3);if(be===0||xe===0||uf(n)&&!aR(n))return;const{offset:Te,targetOffset:Ke}=_;let[Ae,de]=HI(W,Te);const[ve,Ne]=HI(k,Ke);k.x-=ve,k.y-=Ne;const[He,We]=_.points||[],je=VI(We),nt=VI(He),ot=Ed(k,je),Ge=Ed(W,nt),Oe={..._};let qe=[nt,je],Je=ot.x-Ge.x+Ae,Le=ot.y-Ge.y+de;const ct=Ie(Je,Le),Ot=Ie(Je,Le,se),pt=Ed(k,["t","l"]),Lt=Ed(W,["t","l"]),xt=Ed(k,["b","r"]),Rt=Ed(W,["b","r"]),ut=_.overflow||{},{adjustX:ft,adjustY:vt,shiftX:ke,shiftY:Ze}=ut,Se=kt=>typeof kt=="boolean"?kt:kt>=0;let ye,Ce,he,De;we();const ze=Se(vt),Ye=nt[0]===je[0];if(ze&&nt[0]==="t"&&(Ce>ae.bottom||g.current.bt)){let kt=Le;Ye?kt-=B-J:kt=pt.y-Rt.y-de;const Dr=Ie(Je,kt),_r=Ie(Je,kt,se);Dr>ct||Dr===ct&&(!ce||_r>=Ot)?(g.current.bt=true,Le=kt,de=-de,qe=[Sl(qe[0],0),Sl(qe[1],0)]):g.current.bt=false;}if(ze&&nt[0]==="b"&&(ye<ae.top||g.current.tb)){let kt=Le;Ye?kt+=B-J:kt=xt.y-Lt.y-de;const Dr=Ie(Je,kt),_r=Ie(Je,kt,se);Dr>ct||Dr===ct&&(!ce||_r>=Ot)?(g.current.tb=true,Le=kt,de=-de,qe=[Sl(qe[0],0),Sl(qe[1],0)]):g.current.tb=false;}const it=Se(ft),dt=nt[1]===je[1];if(it&&nt[1]==="l"&&(De>ae.right||g.current.rl)){let kt=Je;dt?kt-=K-ee:kt=pt.x-Rt.x-Ae;const Dr=Ie(kt,Le),_r=Ie(kt,Le,se);Dr>ct||Dr===ct&&(!ce||_r>=Ot)?(g.current.rl=true,Je=kt,Ae=-Ae,qe=[Sl(qe[0],1),Sl(qe[1],1)]):g.current.rl=false;}if(it&&nt[1]==="r"&&(he<ae.left||g.current.lr)){let kt=Je;dt?kt+=K-ee:kt=xt.x-Lt.x-Ae;const Dr=Ie(kt,Le),_r=Ie(kt,Le,se);Dr>ct||Dr===ct&&(!ce||_r>=Ot)?(g.current.lr=true,Je=kt,Ae=-Ae,qe=[Sl(qe[0],1),Sl(qe[1],1)]):g.current.lr=false;}Oe.points=[jI(qe[0]),jI(qe[1])],we();const $t=ke===true?0:ke;typeof $t=="number"&&(he<se.left&&(Je-=he-se.left-Ae,k.x+ee<se.left+$t&&(Je+=k.x-se.left+ee-$t)),De>se.right&&(Je-=De-se.right-Ae,k.x>se.right-$t&&(Je+=k.x-se.right+$t)));const Tt=Ze===true?0:Ze;typeof Tt=="number"&&(ye<se.top&&(Le-=ye-se.top-de,k.y+J<se.top+Tt&&(Le+=k.y-se.top+J-Tt)),Ce>se.bottom&&(Le-=Ce-se.bottom-de,k.y>se.bottom-Tt&&(Le+=k.y-se.bottom+Tt)));const At=W.x+Je,yn=At+K,Un=W.y+Le,et=Un+B,Xe=k.x,Ue=Xe+ee,mt=k.y,Nt=mt+J,Wt=Math.max(At,Xe),Jt=Math.min(yn,Ue),Nn=(Wt+Jt)/2-At,rr=Math.max(Un,mt),Sn=Math.min(et,Nt),Ja=(rr+Sn)/2-Un;a?.(t,Oe);let Wn=pe.right-W.x-(Je+W.width),Bo=pe.bottom-W.y-(Le+W.height);be===1&&(Je=Math.floor(Je),Wn=Math.floor(Wn)),xe===1&&(Le=Math.floor(Le),Bo=Math.floor(Bo));const sm={ready:true,offsetX:Je/be,offsetY:Le/xe,offsetR:Wn/be,offsetB:Bo/xe,arrowX:Nn/be,arrowY:Ja/xe,scaleX:be,scaleY:xe,align:Oe};d(sm);}}),S=()=>{m.current+=1;const w=m.current;Promise.resolve().then(()=>{m.current===w&&y();});},C=()=>{d(w=>({...w,ready:false}));};return An(C,[r]),An(()=>{e||C();},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,S]}function gk(){const e=f.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null);},n=(r,o)=>{t(),o===0?r():e.current=setTimeout(()=>{r();},o*1e3);};return f.useEffect(()=>()=>{t();},[]),n}function _ne(e,t,n,r,o){An(()=>{if(e&&t&&n){let p=function(){r(),o();};const i=t,a=n,l=W2(i),u=W2(a),d=Jp(a),m=new Set([d,...l,...u]);return m.forEach(g=>{g.addEventListener("scroll",p,{passive:true});}),d.addEventListener("resize",p,{passive:true}),r(),()=>{m.forEach(g=>{g.removeEventListener("scroll",p),d.removeEventListener("resize",p);});}}},[e,t,n]);}function Lne(e,t,n,r,o,i,a,l){const u=f.useRef(e);u.current=e;const d=f.useRef(false);f.useEffect(()=>{if(t&&r&&(!o||i)){const p=()=>{d.current=false;},g=S=>{u.current&&!a(S.composedPath?.()?.[0]||S.target)&&!d.current&&l(false);},b=Jp(r);b.addEventListener("pointerdown",p,true),b.addEventListener("mousedown",g,true),b.addEventListener("contextmenu",g,true);const y=O0(n);return y&&(y.addEventListener("mousedown",g,true),y.addEventListener("contextmenu",g,true)),()=>{b.removeEventListener("pointerdown",p,true),b.removeEventListener("mousedown",g,true),b.removeEventListener("contextmenu",g,true),y&&(y.removeEventListener("mousedown",g,true),y.removeEventListener("contextmenu",g,true));}}},[t,n,r,o,i]);function m(){d.current=true;}return m}function Bne(){const[e,t]=G.useState(null),[n,r]=G.useState(false),[o,i]=G.useState(false),a=G.useRef(null),l=Mt(d=>{d===false?(a.current=null,r(false)):o&&n?a.current=d:(r(true),t(d),a.current=null,n||i(true));}),u=Mt(d=>{d?(i(false),a.current&&(t(a.current),a.current=null)):(i(false),a.current=null);});return [l,n,e,u]}function q2(){return q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},q2.apply(this,arguments)}const zne=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:i,offsetR:a,offsetB:l,offsetX:u,offsetY:d,arrowPos:m,popupSize:p,motion:g,uniqueContainerClassName:b,uniqueContainerStyle:y}=e,S=`${t}-unique-container`,[C,w]=G.useState(false),$=dk(n,r,o,i,a,l,u,d),E=G.useRef($);r&&(E.current=$);const T={};return p&&(T.width=p.width,T.height=p.height),G.createElement(wo,q2({motionAppear:true,motionEnter:true,motionLeave:true,removeOnLeave:false,leavedClassName:`${S}-hidden`},g,{visible:o,onVisibleChanged:R=>{w(R);}}),({className:R,style:I})=>{const N=X(S,R,b,{[`${S}-visible`]:C});return G.createElement("div",{className:N,style:{"--arrow-x":`${m?.x||0}px`,"--arrow-y":`${m?.y||0}px`,...E.current,...T,...I,...y}})})},kne=({children:e,postTriggerProps:t})=>{const[n,r,o,i]=Bne(),a=f.useMemo(()=>!o||!t?o:t(o),[o,t]),[l,u]=f.useState(null),[d,m]=f.useState(null),p=f.useRef(null),g=Mt(U=>{p.current=U,uf(U)&&l!==U&&u(U);}),b=f.useRef(null),y=gk(),S=Mt((U,Y)=>{b.current=Y,y(()=>{n(U);},U.delay);}),C=U=>{y(()=>{b.current?.()||n(false);},U);},w=Mt(U=>{i(U);}),[$,E,T,R,I,N,P,,,O,_]=pk(r,l,a?.target,a?.popupPlacement,a?.builtinPlacements||{},a?.popupAlign,void 0,false),L=f.useMemo(()=>{if(!a)return "";const U=hk(a.builtinPlacements||{},a.prefixCls||"",O,false);return X(U,a.getPopupClassNameFromAlign?.(O))},[O,a?.getPopupClassNameFromAlign,a?.builtinPlacements,a?.prefixCls]),k=f.useMemo(()=>({show:S,hide:C}),[]);f.useEffect(()=>{_();},[a?.target]);const W=Mt(()=>(_(),Promise.resolve())),q=f.useRef({}),F=f.useContext(D0),z=f.useMemo(()=>({registerSubPopup:(U,Y)=>{q.current[U]=Y,F?.registerSubPopup(U,Y);}}),[F]),j=a?.prefixCls;return f.createElement(mk.Provider,{value:k},e,a&&f.createElement(D0.Provider,{value:z},f.createElement(fk,{ref:g,portal:Jy,onEsc:a.onEsc,prefixCls:j,popup:a.popup,className:X(a.popupClassName,L,`${j}-unique-controlled`),style:a.popupStyle,target:a.target,open:r,keepDom:true,fresh:true,autoDestroy:false,onVisibleChanged:w,ready:$,offsetX:E,offsetY:T,offsetR:R,offsetB:I,onAlign:_,onPrepare:W,onResize:U=>m({width:U.offsetWidth,height:U.offsetHeight}),arrowPos:{x:N,y:P},align:O,zIndex:a.zIndex,mask:a.mask,arrow:a.arrow,motion:a.popupMotion,maskMotion:a.maskMotion,getPopupContainer:a.getPopupContainer},f.createElement(zne,{prefixCls:j,isMobile:false,ready:$,open:r,align:O,offsetR:R,offsetB:I,offsetX:E,offsetY:T,arrowPos:{x:N,y:P},popupSize:d,motion:a.popupMotion,uniqueContainerClassName:X(a.uniqueContainerClassName,L),uniqueContainerStyle:a.uniqueContainerStyle}))))};function Fne(e=Jy){return f.forwardRef((n,r)=>{const{prefixCls:o="rc-trigger-popup",children:i,action:a="hover",showAction:l,hideAction:u,popupVisible:d,defaultPopupVisible:m,onOpenChange:p,afterOpenChange:g,onPopupVisibleChange:b,afterPopupVisibleChange:y,mouseEnterDelay:S,mouseLeaveDelay:C=.1,focusDelay:w,blurDelay:$,mask:E,maskClosable:T=true,getPopupContainer:R,forceRender:I,autoDestroy:N,popup:P,popupClassName:O,uniqueContainerClassName:_,uniqueContainerStyle:L,popupStyle:k,popupPlacement:W,builtinPlacements:q={},popupAlign:F,zIndex:z,stretch:j,getPopupClassNameFromAlign:U,fresh:Y,unique:Q,alignPoint:D,onPopupClick:B,onPopupAlign:K,arrow:J,popupMotion:ee,maskMotion:te,mobile:re,...ie}=n,ue=N||false,ne=d===void 0,ce=!!re,fe=f.useRef({}),se=f.useContext(D0),Me=f.useMemo(()=>({registerSubPopup:(ht,Ht)=>{fe.current[ht]=Ht,se?.registerSubPopup(ht,Ht);}}),[se]),ae=f.useContext(mk),pe=ks(),[be,xe]=f.useState(null),Te=f.useRef(null),Ke=Mt(ht=>{Te.current=ht,uf(ht)&&be!==ht&&xe(ht),se?.registerSubPopup(pe,ht);}),[Ae,de]=f.useState(null),ve=f.useRef(null),Ne=Mt(ht=>{const Ht=df(ht);uf(Ht)&&Ae!==Ht&&(de(Ht),ve.current=Ht);}),He={},We=Mt(ht=>{const Ht=Ae;return Ht?.contains(ht)||O0(Ht)?.host===ht||ht===Ht||be?.contains(ht)||O0(be)?.host===ht||ht===be||Object.values(fe.current).some(Ks=>Ks?.contains(ht)||ht===Ks)}),je=J?{...J!==true?J:{}}:null,[nt,ot]=un(m||false,d),Ge=nt||false,Oe=f.useMemo(()=>{const ht=typeof i=="function"?i({open:Ge}):i;return f.Children.only(ht)},[i,Ge]),qe=Oe?.props||{},Je=Mt(()=>Ge),Le=Mt((ht=0)=>({popup:P,target:Ae,delay:ht,prefixCls:o,popupClassName:O,uniqueContainerClassName:_,uniqueContainerStyle:L,popupStyle:k,popupPlacement:W,builtinPlacements:q,popupAlign:F,zIndex:z,mask:E,maskClosable:T,popupMotion:ee,maskMotion:te,arrow:je,getPopupContainer:R,getPopupClassNameFromAlign:U,id:pe,onEsc:Lt}));An(()=>{ae&&Q&&Ae&&!ne&&!se&&(Ge?ae.show(Le(S),Je):ae.hide(C));},[Ge,Ae]);const Ie=f.useRef(Ge);Ie.current=Ge;const ct=Mt(ht=>{Mo.flushSync(()=>{Ge!==ht&&(ot(ht),p?.(ht),b?.(ht));});}),Ot=gk(),pt=(ht,Ht=0)=>{if(d!==void 0){Ot(()=>{ct(ht);},Ht);return}if(ae&&Q&&ne&&!se){ht?ae.show(Le(Ht),Je):ae.hide(Ht);return}Ot(()=>{ct(ht);},Ht);};function Lt({top:ht}){ht&&pt(false);}const[xt,Rt]=f.useState(false);An(ht=>{(!ht||Ge)&&Rt(true);},[Ge]);const[ut,ft]=f.useState(null),[vt,ke]=f.useState(null),Ze=ht=>{ke([ht.clientX,ht.clientY]);},[Se,ye,Ce,he,De,we,ze,Ye,it,dt,$t]=pk(Ge,be,D&&vt!==null?vt:Ae,W,q,F,K,ce),[Tt,At]=One(a,l,u),yn=Tt.has("click"),Un=At.has("click")||At.has("contextMenu"),et=Mt(()=>{xt||$t();});_ne(Ge,Ae,be,et,()=>{Ie.current&&D&&Un&&pt(false);}),An(()=>{et();},[vt,W]),An(()=>{Ge&&!q?.[W]&&et();},[JSON.stringify(F)]);const Ue=f.useMemo(()=>{const ht=hk(q,o,dt,D);return X(ht,U?.(dt))},[dt,U,q,o,D]);f.useImperativeHandle(r,()=>({nativeElement:ve.current,popupElement:Te.current,forceAlign:et}));const[mt,Nt]=f.useState(0),[Wt,Jt]=f.useState(0),tn=()=>{if(j&&Ae){const ht=Ae.getBoundingClientRect();Nt(ht.width),Jt(ht.height);}},Nn=()=>{tn(),et();},rr=ht=>{Rt(false),$t(),g?.(ht),y?.(ht);},Sn=()=>new Promise(ht=>{tn(),ft(()=>ht);});An(()=>{ut&&($t(),ut(),ft(null));},[ut]);function fo(ht,Ht,Ks,Bg,Hu){He[ht]=(es,...zg)=>{(!Hu||!Hu())&&(Bg?.(es),pt(Ht,Ks)),qe[ht]?.(es,...zg);};}const Ja=Tt.has("touch"),Wn=At.has("touch"),Bo=f.useRef(false);(Ja||Wn)&&(He.onTouchStart=(...ht)=>{Bo.current=true,Ie.current&&Wn?pt(false):!Ie.current&&Ja&&pt(true),qe.onTouchStart?.(...ht);}),(yn||Un)&&(He.onClick=(ht,...Ht)=>{Ie.current&&Un?pt(false):!Ie.current&&yn&&(Ze(ht),pt(true)),qe.onClick?.(ht,...Ht),Bo.current=false;});const sm=Lne(Ge,Un||Wn,Ae,be,E,T,We,pt),kt=Tt.has("hover"),Dr=At.has("hover");let _r,Ra;const Ri=()=>Bo.current;if(kt){const ht=Ht=>{Ze(Ht);};fo("onMouseEnter",true,S,ht,Ri),fo("onPointerEnter",true,S,ht,Ri),_r=Ht=>{(Ge||xt)&&be?.contains(Ht.target)&&pt(true,S);},D&&(He.onMouseMove=Ht=>{qe.onMouseMove?.(Ht);});}Dr&&(fo("onMouseLeave",false,C,void 0,Ri),fo("onPointerLeave",false,C,void 0,Ri),Ra=()=>{pt(false,C);}),Tt.has("focus")&&fo("onFocus",true,w),At.has("focus")&&fo("onBlur",false,$),Tt.has("contextMenu")&&(He.onContextMenu=(ht,...Ht)=>{Ie.current&&At.has("contextMenu")?pt(false):(Ze(ht),pt(true)),ht.preventDefault(),qe.onContextMenu?.(ht,...Ht);});const zo=f.useRef(false);zo.current||=I||Ge||xt;const qr={...qe,...He},dc={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(ht=>{ie[ht]&&(dc[ht]=(...Ht)=>{qr[ht]?.(...Ht),ie[ht](...Ht);});});const fc={x:we,y:ze};tz(Ge,Ae,Nn);const ku=Bs(Ne,tc(Oe)),Fu=f.cloneElement(Oe,{...qr,...dc,ref:ku});return f.createElement(f.Fragment,null,Fu,zo.current&&(!ae||!Q)&&f.createElement(D0.Provider,{value:Me},f.createElement(fk,{portal:e,ref:Ke,prefixCls:o,popup:P,className:X(O,!ce&&Ue),style:k,target:Ae,onMouseEnter:_r,onMouseLeave:Ra,onPointerEnter:_r,zIndex:z,open:Ge,keepDom:xt,fresh:Y,onClick:B,onPointerDownCapture:sm,mask:E,motion:ee,maskMotion:te,onVisibleChanged:rr,onPrepare:Sn,forceRender:I,autoDestroy:ue,getPopupContainer:R,onEsc:Lt,align:dt,arrow:je,arrowPos:fc,ready:Se,offsetX:ye,offsetY:Ce,offsetR:he,offsetB:De,onAlign:et,stretch:j,targetWidth:mt/Ye,targetHeight:Wt/it,mobile:re})))})}const e1=Fne(Jy);function vk(e){return e&&G.isValidElement(e)&&e.type===G.Fragment}const bk=(e,t,n)=>G.isValidElement(e)?G.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function jr(e,t){return bk(e,e,t)}const Hne=({children:e})=>{const{getPrefixCls:t}=G.useContext(wt),n=t();return G.isValidElement(e)?G.createElement(wo,{visible:true,motionName:`${n}-fade`,motionAppear:true,motionEnter:true,motionLeave:false,removeOnLeave:false},({style:r,className:o})=>jr(e,i=>({className:X(i.className,o),style:{...i.style,...r}}))):e},ib=[null,null];function Vne(e){if(ib[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:false};}),ib[0]=e,ib[1]=t;}return ib[1]}const yk=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:i}=n,a=typeof i=="function"?i():i,l=Vne(o);return {...n,getPopupContainer:null,arrow:false,popup:G.createElement(Hne,{key:r},a),builtinPlacements:l}};return G.createElement(kne,{postTriggerProps:t},e)},ro=f.createContext(false),Sk=({children:e,disabled:t})=>{const n=f.useContext(ro);return f.createElement(ro.Provider,{value:t??n},e)},hf=f.createContext(void 0),jne=({children:e,size:t})=>{const n=f.useContext(hf);return f.createElement(hf.Provider,{value:t||n},e)};function Une(){const e=f.useContext(ro),t=f.useContext(hf);return {componentDisabled:e,componentSize:t}}function Wne(e,t,n){const r=e||{},o=r.inherit===false||!t?{...hp,hashed:t?.hashed??hp.hashed,cssVar:t?.cssVar}:t,i=f.useId();return If(()=>{if(!e)return t;const a={...o.components};Object.keys(e.components||{}).forEach(d=>{a[d]={...a[d],...e.components[d]};});const l=`css-var-${i.replace(/:/g,"")}`,u={prefix:n?.prefixCls,...o.cssVar,...r.cssVar,key:r.cssVar?.key||l};return {...o,...r,token:{...o.token,...r.token},components:a,cssVar:u}},[r,o],(a,l)=>a.some((u,d)=>{const m=l[d];return !Fl(u,m,true)}))}const UI=f.createContext(true);function qne(e){const t=f.useContext(UI),{children:n}=e,[,r]=Wr(),{motion:o}=r,i=f.useRef(false);return i.current||(i.current=t!==o),i.current?f.createElement(UI.Provider,{value:o},f.createElement(Rte,{motion:o},n)):n}const Gne=()=>null,Kne=({iconPrefixCls:e,csp:t})=>(lte(e,t),null),Yne=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let _0,Ck,xk,wk;function Dx(){return _0||sp}function Xne(){return Ck||Uy}const Qne=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(_0=t),n!==void 0&&(Ck=n),"holderRender"in e&&(wk=o),r&&(xk=r);},sR=()=>({getPrefixCls:(e,t)=>t||(e?`${Dx()}-${e}`:Dx()),getIconPrefixCls:Xne,getRootPrefixCls:()=>_0||Dx(),getTheme:()=>xk,holderRender:wk}),Zne=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:a,app:l,form:u,locale:d,componentSize:m,direction:p,space:g,splitter:b,virtual:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:C,popupOverflow:w,legacyLocale:$,parentContext:E,iconPrefixCls:T,theme:R,componentDisabled:I,segmented:N,statistic:P,spin:O,calendar:_,carousel:L,cascader:k,collapse:W,typography:q,checkbox:F,descriptions:z,divider:j,drawer:U,skeleton:Y,steps:Q,image:D,layout:B,list:K,mentions:J,modal:ee,progress:te,result:re,slider:ie,breadcrumb:ue,masonry:ne,menu:ce,pagination:fe,input:se,textArea:Me,otp:ae,empty:pe,badge:be,radio:xe,rate:Te,ribbon:Ke,switch:Ae,transfer:de,avatar:ve,message:Ne,tag:He,table:We,card:je,cardMeta:nt,tabs:ot,timeline:Ge,timePicker:Oe,upload:qe,notification:Je,tree:Le,colorPicker:Ie,datePicker:ct,rangePicker:Ot,flex:pt,wave:Lt,dropdown:xt,warning:Rt,tour:ut,tooltip:ft,popover:vt,popconfirm:ke,qrcode:Ze,floatButton:Se,floatButtonGroup:ye,variant:Ce,inputNumber:he,treeSelect:De,watermark:we}=e,ze=f.useCallback((mt,Nt)=>{const{prefixCls:Wt}=e;if(Nt)return Nt;const Jt=Wt||E.getPrefixCls("");return mt?`${Jt}-${mt}`:Jt},[E.getPrefixCls,e.prefixCls]),Ye=T||E.iconPrefixCls||Uy,it=n||E.csp,dt=Wne(R,E.theme,{prefixCls:ze("")}),$t={csp:it,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:a,app:l,locale:d||$,direction:p,space:g,splitter:b,virtual:y,popupMatchSelectWidth:C??S,popupOverflow:w,getPrefixCls:ze,iconPrefixCls:Ye,theme:dt,segmented:N,statistic:P,spin:O,calendar:_,carousel:L,cascader:k,collapse:W,typography:q,checkbox:F,descriptions:z,divider:j,drawer:U,skeleton:Y,steps:Q,image:D,input:se,textArea:Me,otp:ae,layout:B,list:K,mentions:J,modal:ee,progress:te,result:re,slider:ie,breadcrumb:ue,masonry:ne,menu:ce,pagination:fe,empty:pe,badge:be,radio:xe,rate:Te,ribbon:Ke,switch:Ae,transfer:de,avatar:ve,message:Ne,tag:He,table:We,card:je,cardMeta:nt,tabs:ot,timeline:Ge,timePicker:Oe,upload:qe,notification:Je,tree:Le,colorPicker:Ie,datePicker:ct,rangePicker:Ot,flex:pt,wave:Lt,dropdown:xt,warning:Rt,tour:ut,tooltip:ft,popover:vt,popconfirm:ke,qrcode:Ze,floatButton:Se,floatButtonGroup:ye,variant:Ce,inputNumber:he,treeSelect:De,watermark:we},Tt={...E};Object.keys($t).forEach(mt=>{$t[mt]!==void 0&&(Tt[mt]=$t[mt]);}),Yne.forEach(mt=>{const Nt=e[mt];Nt&&(Tt[mt]=Nt);}),typeof r<"u"&&(Tt.button={autoInsertSpace:r,...Tt.button});const At=If(()=>Tt,Tt,(mt,Nt)=>{const Wt=Object.keys(mt),Jt=Object.keys(Nt);return Wt.length!==Jt.length||Wt.some(tn=>mt[tn]!==Nt[tn])}),{layer:yn}=f.useContext(gu),Un=f.useMemo(()=>({prefixCls:Ye,csp:it,layer:yn?"antd":void 0}),[Ye,it,yn]);let et=f.createElement(f.Fragment,null,f.createElement(Kne,{iconPrefixCls:Ye,csp:it}),f.createElement(Gne,{dropdownMatchSelectWidth:S}),t);const Xe=f.useMemo(()=>kd(ya.Form?.defaultValidateMessages||{},At.locale?.Form?.defaultValidateMessages||{},At.form?.validateMessages||{},u?.validateMessages||{}),[At,u?.validateMessages]);Object.keys(Xe).length>0&&(et=f.createElement(pne.Provider,{value:Xe},et)),d&&(et=f.createElement(rne,{locale:d,_ANT_MARK__:nne},et)),et=f.createElement(ZM.Provider,{value:Un},et),m&&(et=f.createElement(jne,{size:m},et)),et=f.createElement(qne,null,et),ft?.unique&&(et=f.createElement(yk,null,et));const Ue=f.useMemo(()=>{const{algorithm:mt,token:Nt,components:Wt,cssVar:Jt,...tn}=dt||{},Nn=mt&&(!Array.isArray(mt)||mt.length>0)?N0(mt):XM,rr={};Object.entries(Wt||{}).forEach(([fo,Ja])=>{const Wn={...Ja};"algorithm"in Wn&&(Wn.algorithm===true?Wn.theme=Nn:(Array.isArray(Wn.algorithm)||typeof Wn.algorithm=="function")&&(Wn.theme=N0(Wn.algorithm)),delete Wn.algorithm),rr[fo]=Wn;});const Sn={...mf,...Nt};return {...tn,theme:Nn,token:Sn,components:rr,override:{override:Sn,...rr},cssVar:Jt}},[dt]);return R&&(et=f.createElement(QM.Provider,{value:Ue},et)),At.warning&&(et=f.createElement(SJ.Provider,{value:At.warning},et)),I!==void 0&&(et=f.createElement(Sk,{disabled:I},et)),f.createElement(wt.Provider,{value:At},et)},Lo=e=>{const t=f.useContext(wt),n=f.useContext(nR);return f.createElement(Zne,{parentContext:t,legacyLocale:n,...e})};Lo.ConfigContext=wt;Lo.SizeContext=hf;Lo.config=Qne;Lo.useConfig=Une;Object.defineProperty(Lo,"SizeContext",{get:()=>hf});const at={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function L0(){return L0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},L0.apply(this,arguments)}const lR=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,duration:i=4.5,showProgress:a,pauseOnHover:l=true,eventKey:u,content:d,closable:m,props:p,onClick:g,onNoticeClose:b,times:y,hovering:S}=e,[C,w]=f.useState(false),[$,E]=f.useState(0),[T,R]=f.useState(0),I=S||C,N=typeof i=="number"?i:0,P=N>0&&a,O=()=>{b(u);},_=F=>{(F.key==="Enter"||F.code==="Enter"||F.keyCode===at.ENTER)&&O();};f.useEffect(()=>{if(!I&&N>0){const F=Date.now()-T,z=setTimeout(()=>{O();},N*1e3-T);return ()=>{l&&clearTimeout(z),R(Date.now()-F);}}},[N,I,y]),f.useEffect(()=>{if(!I&&P&&(l||T===0)){const F=performance.now();let z;const j=()=>{cancelAnimationFrame(z),z=requestAnimationFrame(U=>{const Y=U+T-F,Q=Math.min(Y/(N*1e3),1);E(Q*100),Q<1&&j();});};return j(),()=>{l&&cancelAnimationFrame(z);}}},[N,T,I,P,y]);const L=f.useMemo(()=>typeof m=="object"&&m!==null?m:{},[m]),k=Co(L,true),W=100-(!$||$<0?0:$>100?100:$),q=`${n}-notice`;return f.createElement("div",L0({},p,{ref:t,className:X(q,o,{[`${q}-closable`]:m}),style:r,onMouseEnter:F=>{w(true),p?.onMouseEnter?.(F);},onMouseLeave:F=>{w(false),p?.onMouseLeave?.(F);},onClick:g}),f.createElement("div",{className:`${q}-content`},d),m&&f.createElement("button",L0({className:`${q}-close`,onKeyDown:_,"aria-label":"Close"},k,{onClick:F=>{F.preventDefault(),F.stopPropagation(),O();}}),L.closeIcon??"x"),P&&f.createElement("progress",{className:`${q}-progress`,max:"100",value:W},W+"%"))}),$k=G.createContext({}),Ek=({children:e,classNames:t})=>G.createElement($k.Provider,{value:{classNames:t}},e),WI=8,qI=3,GI=16,Jne=e=>{const t={offset:WI,threshold:qI,gap:GI};return e&&typeof e=="object"&&(t.offset=e.offset??WI,t.threshold=e.threshold??qI,t.gap=e.gap??GI),[!!e,t]};function B0(){return B0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},B0.apply(this,arguments)}const ere=e=>{const{configList:t,placement:n,prefixCls:r,className:o,style:i,motion:a,onAllNoticeRemoved:l,onNoticeClose:u,stack:d}=e,{classNames:m}=f.useContext($k),p=f.useRef({}),[g,b]=f.useState(null),[y,S]=f.useState([]),C=t.map(N=>({config:N,key:String(N.key)})),[w,{offset:$,threshold:E,gap:T}]=Jne(d),R=w&&(y.length>0||C.length<=E),I=typeof a=="function"?a(n):a;return f.useEffect(()=>{w&&y.length>1&&S(N=>N.filter(P=>C.some(({key:O})=>P===O)));},[y,C,w]),f.useEffect(()=>{w&&p.current[C[C.length-1]?.key]&&b(p.current[C[C.length-1]?.key]);},[C,w]),G.createElement(Ute,B0({key:n,className:X(r,`${r}-${n}`,m?.list,o,{[`${r}-stack`]:!!w,[`${r}-stack-expanded`]:R}),style:i,keys:C,motionAppear:true},I,{onAllRemoved:()=>{l(n);}}),({config:N,className:P,style:O,index:_},L)=>{const{key:k,times:W}=N,q=String(k),{className:F,style:z,classNames:j,styles:U,...Y}=N,Q=C.findIndex(B=>B.key===q),D={};if(w){const B=C.length-1-(Q>-1?Q:_-1),K=n==="top"||n==="bottom"?"-50%":"0";if(B>0){D.height=R?p.current[q]?.offsetHeight:g?.offsetHeight;let J=0;for(let re=0;re<B;re++)J+=p.current[C[C.length-1-re].key]?.offsetHeight+T;const ee=(R?J:B*$)*(n.startsWith("top")?1:-1),te=!R&&g?.offsetWidth&&p.current[q]?.offsetWidth?(g?.offsetWidth-$*2*(B<3?B:3))/p.current[q]?.offsetWidth:1;D.transform=`translate3d(${K}, ${ee}px, 0) scaleX(${te})`;}else D.transform=`translate3d(${K}, 0, 0)`;}return G.createElement("div",{ref:L,className:X(`${r}-notice-wrapper`,P,j?.wrapper),style:{...O,...D,...U?.wrapper},onMouseEnter:()=>S(B=>B.includes(q)?B:[...B,q]),onMouseLeave:()=>S(B=>B.filter(K=>K!==q))},G.createElement(lR,B0({},Y,{ref:B=>{Q>-1?p.current[q]=B:delete p.current[q];},prefixCls:r,classNames:j,styles:U,className:X(F,m?.notice),style:z,times:W,key:k,eventKey:k,onNoticeClose:u,hovering:w&&y.length>0})))})},tre=f.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:o,maxCount:i,className:a,style:l,onAllRemoved:u,stack:d,renderNotifications:m}=e,[p,g]=f.useState([]),b=E=>{const T=p.find(P=>P.key===E),R=T?.closable,I=R&&typeof R=="object"?R:{},{onClose:N}=I;N?.(),T?.onClose?.(),g(P=>P.filter(O=>O.key!==E));};f.useImperativeHandle(t,()=>({open:E=>{g(T=>{let R=[...T];const I=R.findIndex(P=>P.key===E.key),N={...E};return I>=0?(N.times=(T[I]?.times||0)+1,R[I]=N):(N.times=0,R.push(N)),i>0&&R.length>i&&(R=R.slice(-i)),R});},close:E=>{b(E);},destroy:()=>{g([]);}}));const[y,S]=f.useState({});f.useEffect(()=>{const E={};p.forEach(T=>{const{placement:R="topRight"}=T;R&&(E[R]=E[R]||[],E[R].push(T));}),Object.keys(y).forEach(T=>{E[T]=E[T]||[];}),S(E);},[p]);const C=E=>{S(T=>{const R={...T};return (R[E]||[]).length||delete R[E],R});},w=f.useRef(false);if(f.useEffect(()=>{Object.keys(y).length>0?w.current=true:w.current&&(u?.(),w.current=false);},[y]),!r)return null;const $=Object.keys(y);return Mo.createPortal(f.createElement(f.Fragment,null,$.map(E=>{const T=y[E],R=f.createElement(ere,{key:E,configList:T,placement:E,prefixCls:n,className:a?.(E),style:l?.(E),motion:o,onNoticeClose:b,onAllNoticeRemoved:C,stack:d});return m?m(R,{prefixCls:n,key:E}):R})),r)}),nre=()=>document.body;let KI=0;function rre(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(t[r]=o);});}),t}function Mk(e={}){const{getContainer:t=nre,motion:n,prefixCls:r,maxCount:o,className:i,style:a,onAllRemoved:l,stack:u,renderNotifications:d,...m}=e,[p,g]=f.useState(),b=f.useRef(),y=f.createElement(tre,{container:p,ref:b,prefixCls:r,motion:n,maxCount:o,className:i,style:a,onAllRemoved:l,stack:u,renderNotifications:d}),[S,C]=f.useState([]),w=Mt(E=>{const T=rre(m,E);(T.key===null||T.key===void 0)&&(T.key=`rc-notification-${KI}`,KI+=1),C(R=>[...R,{type:"open",config:T}]);}),$=f.useMemo(()=>({open:w,close:E=>{C(T=>[...T,{type:"close",key:E}]);},destroy:()=>{C(E=>[...E,{type:"destroy"}]);}}),[]);return f.useEffect(()=>{g(t());}),f.useEffect(()=>{if(b.current&&S.length){S.forEach(R=>{switch(R.type){case "open":b.current.open(R.config);break;case "close":b.current.close(R.key);break;case "destroy":b.current.destroy();break}});let E,T;C(R=>((E!==R||!T)&&(E=R,T=R.filter(I=>!S.includes(I))),T));}},[S]),[$,y]}var ore={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 G2(){return G2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},G2.apply(this,arguments)}const ire=(e,t)=>f.createElement(Xn,G2({},e,{ref:t,icon:ore})),t1=f.forwardRef(ire),are=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:u,fontSizeLG:d,motionEaseInOutCirc:m,motionDurationSlow:p,marginXS:g,paddingXS:b,borderRadiusLG:y,zIndexPopup:S,contentPadding:C,contentBg:w}=e,$=`${t}-notice`,E=new zt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),T=new zt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),R={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:g,fontSize:d},[`${$}-content`]:{display:"inline-block",padding:C,background:w,borderRadius:y,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:u}};return [{[t]:{...dn(e),color:o,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:E,animationDuration:p,animationPlayState:"paused",animationTimingFunction:m},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:T,animationDuration:p,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${$}-wrapper`]:{...R}}},{[`${t}-notice-pure-panel`]:{...R,padding:0,textAlign:"start"}}]},sre=e=>({zIndexPopup:e.zIndexPopupBase+iR+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Rk=qt("Message",e=>{const t=Ft(e,{height:150});return are(t)},sre),lre={info:f.createElement(eR,null),success:f.createElement(JM,null),error:f.createElement(Qp,null),warning:f.createElement(Zp,null),loading:f.createElement(t1,null)},Tk=e=>{const{prefixCls:t,type:n,icon:r,children:o,classNames:i,styles:a}=e,l=r||n&&lre[n],u=jr(l,d=>{const m={...d?.style,...a?.icon};return {className:X(d.className,i?.icon),style:m}});return f.createElement("div",{className:X(`${t}-custom-content`,`${t}-${n}`)},u,f.createElement("span",{className:i?.content,style:a?.content},o))},cre=e=>{const{prefixCls:t,className:n,style:r,type:o,icon:i,content:a,classNames:l,styles:u,...d}=e,{getPrefixCls:m,className:p,style:g,classNames:b,styles:y}=jt("message"),S=t||m("message"),C=Qn(S),[w,$]=Rk(S,C),[E,T]=Kt([b,l],[y,u],{props:e});return f.createElement(lR,{...d,prefixCls:S,className:X(p,E.root,n,w,`${S}-notice-pure-panel`,$,C),style:{...T.root,...g,...r},eventKey:"pure",duration:null,content:f.createElement(Tk,{prefixCls:S,type:o,icon:i,classNames:E,styles:T},a)})};function ure(e,t){return {motionName:t??`${e}-move-up`}}function cR(e){let t;const n=new Promise(o=>{t=e(()=>{o(true);});}),r=()=>{t?.();};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}const dre=8,fre=3,mre=({children:e,prefixCls:t})=>{const n=Qn(t),[r,o]=Rk(t,n);return f.createElement(Ek,{classNames:{list:X(r,o,n)}},e)},hre=(e,{prefixCls:t,key:n})=>f.createElement(mre,{prefixCls:t,key:n},e),pre=f.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=fre,rtl:l,transitionName:u,onAllRemoved:d,pauseOnHover:m=true}=e,{getPrefixCls:p,direction:g,getPopupContainer:b}=jt("message"),{message:y}=f.useContext(wt),S=r||p("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??dre}),w=()=>X({[`${S}-rtl`]:l??g==="rtl"}),$=()=>ure(S,u),[E,T]=Kt([e?.classNames,y?.classNames],[e?.styles,y?.styles],{props:e}),[R,I]=Mk({prefixCls:S,style:C,className:w,motion:$,closable:false,duration:a,getContainer:()=>o?.()||b?.()||document.body,maxCount:i,onAllRemoved:d,renderNotifications:hre,pauseOnHover:m});return f.useImperativeHandle(t,()=>({...R,prefixCls:S,message:y,classNames:E,styles:T})),I});let YI=0;function Ak(e){const t=f.useRef(null);return [f.useMemo(()=>{const r=u=>{t.current?.close(u);},o=u=>{if(!t.current){const D=()=>{};return D.then=()=>{},D}const{open:d,prefixCls:m,message:p,classNames:g,styles:b}=t.current,y=p?.className||{},S=p?.style||{},C=p?.classNames||{},w=p?.styles||{},$=`${m}-notice`,{content:E,icon:T,type:R,key:I,className:N,style:P,onClose:O,classNames:_={},styles:L={},...k}=u;let W=I;Pr(W)||(YI+=1,W=`antd-message-${YI}`);const q={...e,...u},F=Il(C,{props:q}),z=Il(_,{props:q}),j=Il(w,{props:q}),U=Il(L,{props:q}),Y=Qy(void 0,F,z,g),Q=oR(j,U,b);return cR(D=>(d({...k,key:W,content:f.createElement(Tk,{prefixCls:m,type:R,icon:T,classNames:Y,styles:Q},E),placement:"top",className:X({[`${$}-${R}`]:R},N,y,Y.root),style:{...Q.root,...S,...P},onClose:()=>{O?.(),D();}}),()=>{r(W);}))},a={open:o,destroy:u=>{u!==void 0?r(u):t.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(u=>{const d=(m,p,g)=>{let b;m&&typeof m=="object"&&"content"in m?b=m:b={content:m};let y,S;typeof p=="function"?S=p:(y=p,S=g);const C={onClose:S,duration:y,...b,type:u};return o(C)};a[u]=d;}),a},[]),f.createElement(pre,{key:"message-holder",...e,ref:t})]}function Nk(e){return Ak(e)}var _x={exports:{}},eh={},Lx={exports:{}},Bx={};var XI;function gre(){return XI||(XI=1,(function(e){function t(z,j){var U=z.length;z.push(j);e:for(;0<U;){var Y=U-1>>>1,Q=z[Y];if(0<o(Q,j))z[Y]=j,z[U]=Q,U=Y;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var j=z[0],U=z.pop();if(U!==j){z[0]=U;e:for(var Y=0,Q=z.length,D=Q>>>1;Y<D;){var B=2*(Y+1)-1,K=z[B],J=B+1,ee=z[J];if(0>o(K,U))J<Q&&0>o(ee,K)?(z[Y]=ee,z[J]=U,Y=J):(z[Y]=K,z[B]=U,Y=B);else if(J<Q&&0>o(ee,U))z[Y]=ee,z[J]=U,Y=J;else break e}}return j}function o(z,j){var U=z.sortIndex-j.sortIndex;return U!==0?U:z.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()};}else {var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l};}var u=[],d=[],m=1,p=null,g=3,b=false,y=false,S=false,C=false,w=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function T(z){for(var j=n(d);j!==null;){if(j.callback===null)r(d);else if(j.startTime<=z)r(d),j.sortIndex=j.expirationTime,t(u,j);else break;j=n(d);}}function R(z){if(S=false,T(z),!y)if(n(u)!==null)y=true,I||(I=true,k());else {var j=n(d);j!==null&&F(R,j.startTime-z);}}var I=false,N=-1,P=5,O=-1;function _(){return C?true:!(e.unstable_now()-O<P)}function L(){if(C=false,I){var z=e.unstable_now();O=z;var j=true;try{e:{y=!1,S&&(S=!1,$(N),N=-1),b=!0;var U=g;try{t:{for(T(z),p=n(u);p!==null&&!(p.expirationTime>z&&_());){var Y=p.callback;if(typeof Y=="function"){p.callback=null,g=p.priorityLevel;var Q=Y(p.expirationTime<=z);if(z=e.unstable_now(),typeof Q=="function"){p.callback=Q,T(z),j=!0;break t}p===n(u)&&r(u),T(z);}else r(u);p=n(u);}if(p!==null)j=!0;else {var D=n(d);D!==null&&F(R,D.startTime-z),j=!1;}}break e}finally{p=null,g=U,b=!1;}j=void 0;}}finally{j?k():I=false;}}}var k;if(typeof E=="function")k=function(){E(L);};else if(typeof MessageChannel<"u"){var W=new MessageChannel,q=W.port2;W.port1.onmessage=L,k=function(){q.postMessage(null);};}else k=function(){w(L,0);};function F(z,j){N=w(function(){z(e.unstable_now());},j);}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null;},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<z?Math.floor(1e3/z):5;},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(z){switch(g){case 1:case 2:case 3:var j=3;break;default:j=g;}var U=g;g=j;try{return z()}finally{g=U;}},e.unstable_requestPaint=function(){C=true;},e.unstable_runWithPriority=function(z,j){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3;}var U=g;g=z;try{return j()}finally{g=U;}},e.unstable_scheduleCallback=function(z,j,U){var Y=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Y+U:Y):U=Y,z){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3;}return Q=U+Q,z={id:m++,callback:j,priorityLevel:z,startTime:U,expirationTime:Q,sortIndex:-1},U>Y?(z.sortIndex=U,t(d,z),n(u)===null&&z===n(d)&&(S?($(N),N=-1):S=true,F(R,U-Y))):(z.sortIndex=Q,t(u,z),y||b||(y=true,I||(I=true,k()))),z},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(z){var j=g;return function(){var U=g;g=j;try{return z.apply(this,arguments)}finally{g=U;}}};})(Bx)),Bx}var QI;function vre(){return QI||(QI=1,Lx.exports=gre()),Lx.exports}var ZI;function bre(){if(ZI)return eh;ZI=1;var e=vre(),t=ec(),n=ak();function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h]);}return "Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(s){return !(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function i(s){var c=s,h=s;if(s.alternate)for(;c.return;)c=c.return;else {s=c;do c=s,(c.flags&4098)!==0&&(h=c.return),s=c.return;while(s)}return c.tag===3?h:null}function a(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function l(s){if(s.tag===31){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function u(s){if(i(s)!==s)throw Error(r(188))}function d(s){var c=s.alternate;if(!c){if(c=i(s),c===null)throw Error(r(188));return c!==s?null:s}for(var h=s,v=c;;){var M=h.return;if(M===null)break;var A=M.alternate;if(A===null){if(v=M.return,v!==null){h=v;continue}break}if(M.child===A.child){for(A=M.child;A;){if(A===h)return u(M),s;if(A===v)return u(M),c;A=A.sibling;}throw Error(r(188))}if(h.return!==v.return)h=M,v=A;else {for(var V=false,Z=M.child;Z;){if(Z===h){V=true,h=M,v=A;break}if(Z===v){V=true,v=M,h=A;break}Z=Z.sibling;}if(!V){for(Z=A.child;Z;){if(Z===h){V=true,h=A,v=M;break}if(Z===v){V=true,v=A,h=M;break}Z=Z.sibling;}if(!V)throw Error(r(189))}}if(h.alternate!==v)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?s:c}function m(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=m(s),c!==null)return c;s=s.sibling;}return null}var p=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function k(s){return s===null||typeof s!="object"?null:(s=L&&s[L]||s["@@iterator"],typeof s=="function"?s:null)}var W=Symbol.for("react.client.reference");function q(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===W?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case S:return "Fragment";case w:return "Profiler";case C:return "StrictMode";case R:return "Suspense";case I:return "SuspenseList";case O:return "Activity"}if(typeof s=="object")switch(s.$$typeof){case y:return "Portal";case E:return s.displayName||"Context";case $:return (s._context.displayName||"Context")+".Consumer";case T:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case N:return c=s.displayName||null,c!==null?c:q(s.type)||"Memo";case P:c=s._payload,s=s._init;try{return q(s(c))}catch{}}return null}var F=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:false,data:null,method:null,action:null},Y=[],Q=-1;function D(s){return {current:s}}function B(s){0>Q||(s.current=Y[Q],Y[Q]=null,Q--);}function K(s,c){Q++,Y[Q]=s.current,s.current=c;}var J=D(null),ee=D(null),te=D(null),re=D(null);function ie(s,c){switch(K(te,c),K(ee,s),K(J,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?O4(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=O4(c),s=D4(c,s);else switch(s){case "svg":s=1;break;case "math":s=2;break;default:s=0;}}B(J),K(J,s);}function ue(){B(J),B(ee),B(te);}function ne(s){s.memoizedState!==null&&K(re,s);var c=J.current,h=D4(c,s.type);c!==h&&(K(ee,s),K(J,h));}function ce(s){ee.current===s&&(B(J),B(ee)),re.current===s&&(B(re),Wm._currentValue=U);}var fe,se;function Me(s){if(fe===void 0)try{throw Error()}catch(h){var c=h.stack.trim().match(/\n( *(at )?)/);fe=c&&c[1]||"",se=-1<h.stack.indexOf(`
    at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":"";}return `
`+fe+s+se}var ae=false;function pe(s,c){if(!s||ae)return "";ae=true;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(c){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[]);}catch(Pe){var Re=Pe;}Reflect.construct(s,[],Ve);}else {try{Ve.call();}catch(Pe){Re=Pe;}s.call(Ve.prototype);}}else {try{throw Error()}catch(Pe){Re=Pe;}(Ve=s())&&typeof Ve.catch=="function"&&Ve.catch(function(){});}}catch(Pe){if(Pe&&Re&&typeof Pe.stack=="string")return [Pe.stack,Re.stack]}return [null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var M=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");M&&M.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=v.DetermineComponentFrameRoot(),V=A[0],Z=A[1];if(V&&Z){var le=V.split(`
`),Ee=Z.split(`
`);for(M=v=0;v<le.length&&!le[v].includes("DetermineComponentFrameRoot");)v++;for(;M<Ee.length&&!Ee[M].includes("DetermineComponentFrameRoot");)M++;if(v===le.length||M===Ee.length)for(v=le.length-1,M=Ee.length-1;1<=v&&0<=M&&le[v]!==Ee[M];)M--;for(;1<=v&&0<=M;v--,M--)if(le[v]!==Ee[M]){if(v!==1||M!==1)do if(v--,M--,0>M||le[v]!==Ee[M]){var Be=`
`+le[v].replace(" at new "," at ");return s.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",s.displayName)),Be}while(1<=v&&0<=M);break}}}finally{ae=false,Error.prepareStackTrace=h;}return (h=s?s.displayName||s.name:"")?Me(h):""}function be(s,c){switch(s.tag){case 26:case 27:case 5:return Me(s.type);case 16:return Me("Lazy");case 13:return s.child!==c&&c!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return pe(s.type,false);case 11:return pe(s.type.render,false);case 1:return pe(s.type,true);case 31:return Me("Activity");default:return ""}}function xe(s){try{var c="",h=null;do c+=be(s,h),h=s,s=s.return;while(s);return c}catch(v){return `
Error generating stack: `+v.message+`
`+v.stack}}var Te=Object.prototype.hasOwnProperty,Ke=e.unstable_scheduleCallback,Ae=e.unstable_cancelCallback,de=e.unstable_shouldYield,ve=e.unstable_requestPaint,Ne=e.unstable_now,He=e.unstable_getCurrentPriorityLevel,We=e.unstable_ImmediatePriority,je=e.unstable_UserBlockingPriority,nt=e.unstable_NormalPriority,ot=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,Oe=e.log,qe=e.unstable_setDisableYieldValue,Je=null,Le=null;function Ie(s){if(typeof Oe=="function"&&qe(s),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(Je,s);}catch{}}var ct=Math.clz32?Math.clz32:Lt,Ot=Math.log,pt=Math.LN2;function Lt(s){return s>>>=0,s===0?32:31-(Ot(s)/pt|0)|0}var xt=256,Rt=262144,ut=4194304;function ft(s){var c=s&42;if(c!==0)return c;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function vt(s,c,h){var v=s.pendingLanes;if(v===0)return 0;var M=0,A=s.suspendedLanes,V=s.pingedLanes;s=s.warmLanes;var Z=v&134217727;return Z!==0?(v=Z&~A,v!==0?M=ft(v):(V&=Z,V!==0?M=ft(V):h||(h=Z&~s,h!==0&&(M=ft(h))))):(Z=v&~A,Z!==0?M=ft(Z):V!==0?M=ft(V):h||(h=v&~s,h!==0&&(M=ft(h)))),M===0?0:c!==0&&c!==M&&(c&A)===0&&(A=M&-M,h=c&-c,A>=h||A===32&&(h&4194048)!==0)?c:M}function ke(s,c){return (s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function Ze(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return  -1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return  -1;default:return  -1}}function Se(){var s=ut;return ut<<=1,(ut&62914560)===0&&(ut=4194304),s}function ye(s){for(var c=[],h=0;31>h;h++)c.push(s);return c}function Ce(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0);}function he(s,c,h,v,M,A){var V=s.pendingLanes;s.pendingLanes=h,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=h,s.entangledLanes&=h,s.errorRecoveryDisabledLanes&=h,s.shellSuspendCounter=0;var Z=s.entanglements,le=s.expirationTimes,Ee=s.hiddenUpdates;for(h=V&~h;0<h;){var Be=31-ct(h),Ve=1<<Be;Z[Be]=0,le[Be]=-1;var Re=Ee[Be];if(Re!==null)for(Ee[Be]=null,Be=0;Be<Re.length;Be++){var Pe=Re[Be];Pe!==null&&(Pe.lane&=-536870913);}h&=~Ve;}v!==0&&De(s,v,0),A!==0&&M===0&&s.tag!==0&&(s.suspendedLanes|=A&~(V&~c));}function De(s,c,h){s.pendingLanes|=c,s.suspendedLanes&=~c;var v=31-ct(c);s.entangledLanes|=c,s.entanglements[v]=s.entanglements[v]|1073741824|h&261930;}function we(s,c){var h=s.entangledLanes|=c;for(s=s.entanglements;h;){var v=31-ct(h),M=1<<v;M&c|s[v]&c&&(s[v]|=c),h&=~M;}}function ze(s,c){var h=c&-c;return h=(h&42)!==0?1:Ye(h),(h&(s.suspendedLanes|c))!==0?0:h}function Ye(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0;}return s}function it(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function dt(){var s=j.p;return s!==0?s:(s=window.event,s===void 0?32:r5(s.type))}function $t(s,c){var h=j.p;try{return j.p=s,c()}finally{j.p=h;}}var Tt=Math.random().toString(36).slice(2),At="__reactFiber$"+Tt,yn="__reactProps$"+Tt,Un="__reactContainer$"+Tt,et="__reactEvents$"+Tt,Xe="__reactListeners$"+Tt,Ue="__reactHandles$"+Tt,mt="__reactResources$"+Tt,Nt="__reactMarker$"+Tt;function Wt(s){delete s[At],delete s[yn],delete s[et],delete s[Xe],delete s[Ue];}function Jt(s){var c=s[At];if(c)return c;for(var h=s.parentNode;h;){if(c=h[Un]||h[At]){if(h=c.alternate,c.child!==null||h!==null&&h.child!==null)for(s=H4(s);s!==null;){if(h=s[At])return h;s=H4(s);}return c}s=h,h=s.parentNode;}return null}function tn(s){if(s=s[At]||s[Un]){var c=s.tag;if(c===5||c===6||c===13||c===31||c===26||c===27||c===3)return s}return null}function Nn(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s.stateNode;throw Error(r(33))}function rr(s){var c=s[mt];return c||(c=s[mt]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Sn(s){s[Nt]=true;}var fo=new Set,Ja={};function Wn(s,c){Bo(s,c),Bo(s+"Capture",c);}function Bo(s,c){for(Ja[s]=c,s=0;s<c.length;s++)fo.add(c[s]);}var sm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kt={},Dr={};function _r(s){return Te.call(Dr,s)?true:Te.call(kt,s)?false:sm.test(s)?Dr[s]=true:(kt[s]=true,false)}function Ra(s,c,h){if(_r(c))if(h===null)s.removeAttribute(c);else {switch(typeof h){case "undefined":case "function":case "symbol":s.removeAttribute(c);return;case "boolean":var v=c.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+h);}}function Ri(s,c,h){if(h===null)s.removeAttribute(c);else {switch(typeof h){case "undefined":case "function":case "symbol":case "boolean":s.removeAttribute(c);return}s.setAttribute(c,""+h);}}function zo(s,c,h,v){if(v===null)s.removeAttribute(h);else {switch(typeof v){case "undefined":case "function":case "symbol":case "boolean":s.removeAttribute(h);return}s.setAttributeNS(c,h,""+v);}}function qr(s){switch(typeof s){case "bigint":case "boolean":case "number":case "string":case "undefined":return s;case "object":return s;default:return ""}}function dc(s){var c=s.type;return (s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Lg(s,c,h){var v=Object.getOwnPropertyDescriptor(s.constructor.prototype,c);if(!s.hasOwnProperty(c)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var M=v.get,A=v.set;return Object.defineProperty(s,c,{configurable:true,get:function(){return M.call(this)},set:function(V){h=""+V,A.call(this,V);}}),Object.defineProperty(s,c,{enumerable:v.enumerable}),{getValue:function(){return h},setValue:function(V){h=""+V;},stopTracking:function(){s._valueTracker=null,delete s[c];}}}}function fc(s){if(!s._valueTracker){var c=dc(s)?"checked":"value";s._valueTracker=Lg(s,c,""+s[c]);}}function ku(s){if(!s)return  false;var c=s._valueTracker;if(!c)return  true;var h=c.getValue(),v="";return s&&(v=dc(s)?s.checked?"true":"false":s.value),s=v,s!==h?(c.setValue(s),true):false}function Fu(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var ht=/[\n"\\]/g;function Ht(s){return s.replace(ht,function(c){return "\\"+c.charCodeAt(0).toString(16)+" "})}function Ks(s,c,h,v,M,A,V,Z){s.name="",V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?s.type=V:s.removeAttribute("type"),c!=null?V==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+qr(c)):s.value!==""+qr(c)&&(s.value=""+qr(c)):V!=="submit"&&V!=="reset"||s.removeAttribute("value"),c!=null?Hu(s,V,qr(c)):h!=null?Hu(s,V,qr(h)):v!=null&&s.removeAttribute("value"),M==null&&A!=null&&(s.defaultChecked=!!A),M!=null&&(s.checked=M&&typeof M!="function"&&typeof M!="symbol"),Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?s.name=""+qr(Z):s.removeAttribute("name");}function Bg(s,c,h,v,M,A,V,Z){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(s.type=A),c!=null||h!=null){if(!(A!=="submit"&&A!=="reset"||c!=null)){fc(s);return}h=h!=null?""+qr(h):"",c=c!=null?""+qr(c):h,Z||c===s.value||(s.value=c),s.defaultValue=c;}v=v??M,v=typeof v!="function"&&typeof v!="symbol"&&!!v,s.checked=Z?s.checked:!!v,s.defaultChecked=!!v,V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(s.name=V),fc(s);}function Hu(s,c,h){c==="number"&&Fu(s.ownerDocument)===s||s.defaultValue===""+h||(s.defaultValue=""+h);}function es(s,c,h,v){if(s=s.options,c){c={};for(var M=0;M<h.length;M++)c["$"+h[M]]=true;for(h=0;h<s.length;h++)M=c.hasOwnProperty("$"+s[h].value),s[h].selected!==M&&(s[h].selected=M),M&&v&&(s[h].defaultSelected=true);}else {for(h=""+qr(h),c=null,M=0;M<s.length;M++){if(s[M].value===h){s[M].selected=true,v&&(s[M].defaultSelected=true);return}c!==null||s[M].disabled||(c=s[M]);}c!==null&&(c.selected=true);}}function zg(s,c,h){if(c!=null&&(c=""+qr(c),c!==s.value&&(s.value=c),h==null)){s.defaultValue!==c&&(s.defaultValue=c);return}s.defaultValue=h!=null?""+qr(h):"";}function A6(s,c,h,v){if(c==null){if(v!=null){if(h!=null)throw Error(r(92));if(F(v)){if(1<v.length)throw Error(r(93));v=v[0];}h=v;}h==null&&(h=""),c=h;}h=qr(c),s.defaultValue=h,v=s.textContent,v===h&&v!==""&&v!==null&&(s.value=v),fc(s);}function Vu(s,c){if(c){var h=s.firstChild;if(h&&h===s.lastChild&&h.nodeType===3){h.nodeValue=c;return}}s.textContent=c;}var FK=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function N6(s,c,h){var v=c.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?v?s.setProperty(c,""):c==="float"?s.cssFloat="":s[c]="":v?s.setProperty(c,h):typeof h!="number"||h===0||FK.has(c)?c==="float"?s.cssFloat=h:s[c]=(""+h).trim():s[c]=h+"px";}function P6(s,c,h){if(c!=null&&typeof c!="object")throw Error(r(62));if(s=s.style,h!=null){for(var v in h)!h.hasOwnProperty(v)||c!=null&&c.hasOwnProperty(v)||(v.indexOf("--")===0?s.setProperty(v,""):v==="float"?s.cssFloat="":s[v]="");for(var M in c)v=c[M],c.hasOwnProperty(M)&&h[M]!==v&&N6(s,M,v);}else for(var A in c)c.hasOwnProperty(A)&&N6(s,A,c[A]);}function cS(s){if(s.indexOf("-")===-1)return  false;switch(s){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return  false;default:return  true}}var HK=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),VK=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function kg(s){return VK.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function ts(){}var uS=null;function dS(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ju=null,Uu=null;function I6(s){var c=tn(s);if(c&&(s=c.stateNode)){var h=s[yn]||null;e:switch(s=c.stateNode,c.type){case "input":if(Ks(s,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),c=h.name,h.type==="radio"&&c!=null){for(h=s;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+Ht(""+c)+'"][type="radio"]'),c=0;c<h.length;c++){var v=h[c];if(v!==s&&v.form===s.form){var M=v[yn]||null;if(!M)throw Error(r(90));Ks(v,M.value,M.defaultValue,M.defaultValue,M.checked,M.defaultChecked,M.type,M.name);}}for(c=0;c<h.length;c++)v=h[c],v.form===s.form&&ku(v);}break e;case "textarea":zg(s,h.value,h.defaultValue);break e;case "select":c=h.value,c!=null&&es(s,!!h.multiple,c,false);}}}var fS=false;function O6(s,c,h){if(fS)return s(c,h);fS=true;try{var v=s(c);return v}finally{if(fS=false,(ju!==null||Uu!==null)&&(Mv(),ju&&(c=ju,s=Uu,Uu=ju=null,I6(c),s)))for(c=0;c<s.length;c++)I6(s[c]);}}function lm(s,c){var h=s.stateNode;if(h===null)return null;var v=h[yn]||null;if(v===null)return null;h=v[c];e:switch(c){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(v=!v.disabled)||(s=s.type,v=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!v;break e;default:s=false;}if(s)return null;if(h&&typeof h!="function")throw Error(r(231,c,typeof h));return h}var ns=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mS=false;if(ns)try{var cm={};Object.defineProperty(cm,"passive",{get:function(){mS=!0;}}),window.addEventListener("test",cm,cm),window.removeEventListener("test",cm,cm);}catch{mS=false;}var Ys=null,hS=null,Fg=null;function D6(){if(Fg)return Fg;var s,c=hS,h=c.length,v,M="value"in Ys?Ys.value:Ys.textContent,A=M.length;for(s=0;s<h&&c[s]===M[s];s++);var V=h-s;for(v=1;v<=V&&c[h-v]===M[A-v];v++);return Fg=M.slice(s,1<v?1-v:void 0)}function Hg(s){var c=s.keyCode;return "charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function Vg(){return  true}function _6(){return  false}function ko(s){function c(h,v,M,A,V){this._reactName=h,this._targetInst=M,this.type=v,this.nativeEvent=A,this.target=V,this.currentTarget=null;for(var Z in s)s.hasOwnProperty(Z)&&(h=s[Z],this[Z]=h?h(A):A[Z]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===false)?Vg:_6,this.isPropagationStopped=_6,this}return p(c.prototype,{preventDefault:function(){this.defaultPrevented=true;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=false),this.isDefaultPrevented=Vg);},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=true),this.isPropagationStopped=Vg);},persist:function(){},isPersistent:Vg}),c}var mc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jg=ko(mc),um=p({},mc,{view:0,detail:0}),jK=ko(um),pS,gS,dm,Ug=p({},um,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bS,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return "movementX"in s?s.movementX:(s!==dm&&(dm&&s.type==="mousemove"?(pS=s.screenX-dm.screenX,gS=s.screenY-dm.screenY):gS=pS=0,dm=s),pS)},movementY:function(s){return "movementY"in s?s.movementY:gS}}),L6=ko(Ug),UK=p({},Ug,{dataTransfer:0}),WK=ko(UK),qK=p({},um,{relatedTarget:0}),vS=ko(qK),GK=p({},mc,{animationName:0,elapsedTime:0,pseudoElement:0}),KK=ko(GK),YK=p({},mc,{clipboardData:function(s){return "clipboardData"in s?s.clipboardData:window.clipboardData}}),XK=ko(YK),QK=p({},mc,{data:0}),B6=ko(QK),ZK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JK={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tY(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=eY[s])?!!c[s]:false}function bS(){return tY}var nY=p({},um,{key:function(s){if(s.key){var c=ZK[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Hg(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?JK[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bS,charCode:function(s){return s.type==="keypress"?Hg(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Hg(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),rY=ko(nY),oY=p({},Ug,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),z6=ko(oY),iY=p({},um,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bS}),aY=ko(iY),sY=p({},mc,{propertyName:0,elapsedTime:0,pseudoElement:0}),lY=ko(sY),cY=p({},Ug,{deltaX:function(s){return "deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return "deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),uY=ko(cY),dY=p({},mc,{newState:0,oldState:0}),fY=ko(dY),mY=[9,13,27,32],yS=ns&&"CompositionEvent"in window,fm=null;ns&&"documentMode"in document&&(fm=document.documentMode);var hY=ns&&"TextEvent"in window&&!fm,k6=ns&&(!yS||fm&&8<fm&&11>=fm),F6=" ",H6=false;function V6(s,c){switch(s){case "keyup":return mY.indexOf(c.keyCode)!==-1;case "keydown":return c.keyCode!==229;case "keypress":case "mousedown":case "focusout":return  true;default:return  false}}function j6(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Wu=false;function pY(s,c){switch(s){case "compositionend":return j6(c);case "keypress":return c.which!==32?null:(H6=true,F6);case "textInput":return s=c.data,s===F6&&H6?null:s;default:return null}}function gY(s,c){if(Wu)return s==="compositionend"||!yS&&V6(s,c)?(s=D6(),Fg=hS=Ys=null,Wu=false,s):null;switch(s){case "paste":return null;case "keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case "compositionend":return k6&&c.locale!=="ko"?null:c.data;default:return null}}var vY={color:true,date:true,datetime:true,"datetime-local":true,email:true,month:true,number:true,password:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true};function U6(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!vY[s.type]:c==="textarea"}function W6(s,c,h,v){ju?Uu?Uu.push(v):Uu=[v]:ju=v,c=Ov(c,"onChange"),0<c.length&&(h=new jg("onChange","change",null,h,v),s.push({event:h,listeners:c}));}var mm=null,hm=null;function bY(s){R4(s,0);}function Wg(s){var c=Nn(s);if(ku(c))return s}function q6(s,c){if(s==="change")return c}var G6=false;if(ns){var SS;if(ns){var CS="oninput"in document;if(!CS){var K6=document.createElement("div");K6.setAttribute("oninput","return;"),CS=typeof K6.oninput=="function";}SS=CS;}else SS=false;G6=SS&&(!document.documentMode||9<document.documentMode);}function Y6(){mm&&(mm.detachEvent("onpropertychange",X6),hm=mm=null);}function X6(s){if(s.propertyName==="value"&&Wg(hm)){var c=[];W6(c,hm,s,dS(s)),O6(bY,c);}}function yY(s,c,h){s==="focusin"?(Y6(),mm=c,hm=h,mm.attachEvent("onpropertychange",X6)):s==="focusout"&&Y6();}function SY(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Wg(hm)}function CY(s,c){if(s==="click")return Wg(c)}function xY(s,c){if(s==="input"||s==="change")return Wg(c)}function wY(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var ni=typeof Object.is=="function"?Object.is:wY;function pm(s,c){if(ni(s,c))return  true;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return  false;var h=Object.keys(s),v=Object.keys(c);if(h.length!==v.length)return  false;for(v=0;v<h.length;v++){var M=h[v];if(!Te.call(c,M)||!ni(s[M],c[M]))return  false}return  true}function Q6(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Z6(s,c){var h=Q6(s);s=0;for(var v;h;){if(h.nodeType===3){if(v=s+h.textContent.length,s<=c&&v>=c)return {node:h,offset:c-s};s=v;}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode;}h=void 0;}h=Q6(h);}}function J6(s,c){return s&&c?s===c?true:s&&s.nodeType===3?false:c&&c.nodeType===3?J6(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):false:false}function eN(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=Fu(s.document);c instanceof s.HTMLIFrameElement;){try{var h=typeof c.contentWindow.location.href=="string";}catch{h=false;}if(h)s=c.contentWindow;else break;c=Fu(s.document);}return c}function xS(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var $Y=ns&&"documentMode"in document&&11>=document.documentMode,qu=null,wS=null,gm=null,$S=false;function tN(s,c,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;$S||qu==null||qu!==Fu(v)||(v=qu,"selectionStart"in v&&xS(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),gm&&pm(gm,v)||(gm=v,v=Ov(wS,"onSelect"),0<v.length&&(c=new jg("onSelect","select",null,c,h),s.push({event:c,listeners:v}),c.target=qu)));}function hc(s,c){var h={};return h[s.toLowerCase()]=c.toLowerCase(),h["Webkit"+s]="webkit"+c,h["Moz"+s]="moz"+c,h}var Gu={animationend:hc("Animation","AnimationEnd"),animationiteration:hc("Animation","AnimationIteration"),animationstart:hc("Animation","AnimationStart"),transitionrun:hc("Transition","TransitionRun"),transitionstart:hc("Transition","TransitionStart"),transitioncancel:hc("Transition","TransitionCancel"),transitionend:hc("Transition","TransitionEnd")},ES={},nN={};ns&&(nN=document.createElement("div").style,"AnimationEvent"in window||(delete Gu.animationend.animation,delete Gu.animationiteration.animation,delete Gu.animationstart.animation),"TransitionEvent"in window||delete Gu.transitionend.transition);function pc(s){if(ES[s])return ES[s];if(!Gu[s])return s;var c=Gu[s],h;for(h in c)if(c.hasOwnProperty(h)&&h in nN)return ES[s]=c[h];return s}var rN=pc("animationend"),oN=pc("animationiteration"),iN=pc("animationstart"),EY=pc("transitionrun"),MY=pc("transitionstart"),RY=pc("transitioncancel"),aN=pc("transitionend"),sN=new Map,MS="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");MS.push("scrollEnd");function Zi(s,c){sN.set(s,c),Wn(c,[s]);}var qg=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s);},Ti=[],Ku=0,RS=0;function Gg(){for(var s=Ku,c=RS=Ku=0;c<s;){var h=Ti[c];Ti[c++]=null;var v=Ti[c];Ti[c++]=null;var M=Ti[c];Ti[c++]=null;var A=Ti[c];if(Ti[c++]=null,v!==null&&M!==null){var V=v.pending;V===null?M.next=M:(M.next=V.next,V.next=M),v.pending=M;}A!==0&&lN(h,M,A);}}function Kg(s,c,h,v){Ti[Ku++]=s,Ti[Ku++]=c,Ti[Ku++]=h,Ti[Ku++]=v,RS|=v,s.lanes|=v,s=s.alternate,s!==null&&(s.lanes|=v);}function TS(s,c,h,v){return Kg(s,c,h,v),Yg(s)}function gc(s,c){return Kg(s,null,null,c),Yg(s)}function lN(s,c,h){s.lanes|=h;var v=s.alternate;v!==null&&(v.lanes|=h);for(var M=false,A=s.return;A!==null;)A.childLanes|=h,v=A.alternate,v!==null&&(v.childLanes|=h),A.tag===22&&(s=A.stateNode,s===null||s._visibility&1||(M=true)),s=A,A=A.return;return s.tag===3?(A=s.stateNode,M&&c!==null&&(M=31-ct(h),s=A.hiddenUpdates,v=s[M],v===null?s[M]=[c]:v.push(c),c.lane=h|536870912),A):null}function Yg(s){if(50<zm)throw zm=0,BC=null,Error(r(185));for(var c=s.return;c!==null;)s=c,c=s.return;return s.tag===3?s.stateNode:null}var Yu={};function TY(s,c,h,v){this.tag=s,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null;}function ri(s,c,h,v){return new TY(s,c,h,v)}function AS(s){return s=s.prototype,!(!s||!s.isReactComponent)}function rs(s,c){var h=s.alternate;return h===null?(h=ri(s.tag,c,s.key,s.mode),h.elementType=s.elementType,h.type=s.type,h.stateNode=s.stateNode,h.alternate=s,s.alternate=h):(h.pendingProps=c,h.type=s.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=s.flags&65011712,h.childLanes=s.childLanes,h.lanes=s.lanes,h.child=s.child,h.memoizedProps=s.memoizedProps,h.memoizedState=s.memoizedState,h.updateQueue=s.updateQueue,c=s.dependencies,h.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},h.sibling=s.sibling,h.index=s.index,h.ref=s.ref,h.refCleanup=s.refCleanup,h}function cN(s,c){s.flags&=65011714;var h=s.alternate;return h===null?(s.childLanes=0,s.lanes=c,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=h.childLanes,s.lanes=h.lanes,s.child=h.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=h.memoizedProps,s.memoizedState=h.memoizedState,s.updateQueue=h.updateQueue,s.type=h.type,c=h.dependencies,s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),s}function Xg(s,c,h,v,M,A){var V=0;if(v=s,typeof s=="function")AS(s)&&(V=1);else if(typeof s=="string")V=OX(s,h,J.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case O:return s=ri(31,h,c,M),s.elementType=O,s.lanes=A,s;case S:return vc(h.children,M,A,c);case C:V=8,M|=24;break;case w:return s=ri(12,h,c,M|2),s.elementType=w,s.lanes=A,s;case R:return s=ri(13,h,c,M),s.elementType=R,s.lanes=A,s;case I:return s=ri(19,h,c,M),s.elementType=I,s.lanes=A,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case E:V=10;break e;case $:V=9;break e;case T:V=11;break e;case N:V=14;break e;case P:V=16,v=null;break e}V=29,h=Error(r(130,s===null?"null":typeof s,"")),v=null;}return c=ri(V,h,c,M),c.elementType=s,c.type=v,c.lanes=A,c}function vc(s,c,h,v){return s=ri(7,s,v,c),s.lanes=h,s}function NS(s,c,h){return s=ri(6,s,null,c),s.lanes=h,s}function uN(s){var c=ri(18,null,null,0);return c.stateNode=s,c}function PS(s,c,h){return c=ri(4,s.children!==null?s.children:[],s.key,c),c.lanes=h,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}var dN=new WeakMap;function Ai(s,c){if(typeof s=="object"&&s!==null){var h=dN.get(s);return h!==void 0?h:(c={value:s,source:c,stack:xe(c)},dN.set(s,c),c)}return {value:s,source:c,stack:xe(c)}}var Xu=[],Qu=0,Qg=null,vm=0,Ni=[],Pi=0,Xs=null,Ta=1,Aa="";function os(s,c){Xu[Qu++]=vm,Xu[Qu++]=Qg,Qg=s,vm=c;}function fN(s,c,h){Ni[Pi++]=Ta,Ni[Pi++]=Aa,Ni[Pi++]=Xs,Xs=s;var v=Ta;s=Aa;var M=32-ct(v)-1;v&=~(1<<M),h+=1;var A=32-ct(c)+M;if(30<A){var V=M-M%5;A=(v&(1<<V)-1).toString(32),v>>=V,M-=V,Ta=1<<32-ct(c)+M|h<<M|v,Aa=A+s;}else Ta=1<<A|h<<M|v,Aa=s;}function IS(s){s.return!==null&&(os(s,1),fN(s,1,0));}function OS(s){for(;s===Qg;)Qg=Xu[--Qu],Xu[Qu]=null,vm=Xu[--Qu],Xu[Qu]=null;for(;s===Xs;)Xs=Ni[--Pi],Ni[Pi]=null,Aa=Ni[--Pi],Ni[Pi]=null,Ta=Ni[--Pi],Ni[Pi]=null;}function mN(s,c){Ni[Pi++]=Ta,Ni[Pi++]=Aa,Ni[Pi++]=Xs,Ta=c.id,Aa=c.overflow,Xs=s;}var Gr=null,qn=null,hn=false,Qs=null,Ii=false,DS=Error(r(519));function Zs(s){var c=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bm(Ai(c,s)),DS}function hN(s){var c=s.stateNode,h=s.type,v=s.memoizedProps;switch(c[At]=s,c[yn]=v,h){case "dialog":rn("cancel",c),rn("close",c);break;case "iframe":case "object":case "embed":rn("load",c);break;case "video":case "audio":for(h=0;h<Fm.length;h++)rn(Fm[h],c);break;case "source":rn("error",c);break;case "img":case "image":case "link":rn("error",c),rn("load",c);break;case "details":rn("toggle",c);break;case "input":rn("invalid",c),Bg(c,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,true);break;case "select":rn("invalid",c);break;case "textarea":rn("invalid",c),A6(c,v.value,v.defaultValue,v.children);}h=v.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||c.textContent===""+h||v.suppressHydrationWarning===true||P4(c.textContent,h)?(v.popover!=null&&(rn("beforetoggle",c),rn("toggle",c)),v.onScroll!=null&&rn("scroll",c),v.onScrollEnd!=null&&rn("scrollend",c),v.onClick!=null&&(c.onclick=ts),c=true):c=false,c||Zs(s,true);}function pN(s){for(Gr=s.return;Gr;)switch(Gr.tag){case 5:case 31:case 13:Ii=false;return;case 27:case 3:Ii=true;return;default:Gr=Gr.return;}}function Zu(s){if(s!==Gr)return  false;if(!hn)return pN(s),hn=true,false;var c=s.tag,h;if((h=c!==3&&c!==27)&&((h=c===5)&&(h=s.type,h=!(h!=="form"&&h!=="button")||ZC(s.type,s.memoizedProps)),h=!h),h&&qn&&Zs(s),pN(s),c===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));qn=F4(s);}else if(c===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));qn=F4(s);}else c===27?(c=qn,fl(s.type)?(s=rx,rx=null,qn=s):qn=c):qn=Gr?Di(s.stateNode.nextSibling):null;return  true}function bc(){qn=Gr=null,hn=false;}function _S(){var s=Qs;return s!==null&&(jo===null?jo=s:jo.push.apply(jo,s),Qs=null),s}function bm(s){Qs===null?Qs=[s]:Qs.push(s);}var LS=D(null),yc=null,is=null;function Js(s,c,h){K(LS,c._currentValue),c._currentValue=h;}function as(s){s._currentValue=LS.current,B(LS);}function BS(s,c,h){for(;s!==null;){var v=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,v!==null&&(v.childLanes|=c)):v!==null&&(v.childLanes&c)!==c&&(v.childLanes|=c),s===h)break;s=s.return;}}function zS(s,c,h,v){var M=s.child;for(M!==null&&(M.return=s);M!==null;){var A=M.dependencies;if(A!==null){var V=M.child;A=A.firstContext;e:for(;A!==null;){var Z=A;A=M;for(var le=0;le<c.length;le++)if(Z.context===c[le]){A.lanes|=h,Z=A.alternate,Z!==null&&(Z.lanes|=h),BS(A.return,h,s),v||(V=null);break e}A=Z.next;}}else if(M.tag===18){if(V=M.return,V===null)throw Error(r(341));V.lanes|=h,A=V.alternate,A!==null&&(A.lanes|=h),BS(V,h,s),V=null;}else V=M.child;if(V!==null)V.return=M;else for(V=M;V!==null;){if(V===s){V=null;break}if(M=V.sibling,M!==null){M.return=V.return,V=M;break}V=V.return;}M=V;}}function Ju(s,c,h,v){s=null;for(var M=c,A=false;M!==null;){if(!A){if((M.flags&524288)!==0)A=true;else if((M.flags&262144)!==0)break}if(M.tag===10){var V=M.alternate;if(V===null)throw Error(r(387));if(V=V.memoizedProps,V!==null){var Z=M.type;ni(M.pendingProps.value,V.value)||(s!==null?s.push(Z):s=[Z]);}}else if(M===re.current){if(V=M.alternate,V===null)throw Error(r(387));V.memoizedState.memoizedState!==M.memoizedState.memoizedState&&(s!==null?s.push(Wm):s=[Wm]);}M=M.return;}s!==null&&zS(c,s,h,v),c.flags|=262144;}function Zg(s){for(s=s.firstContext;s!==null;){if(!ni(s.context._currentValue,s.memoizedValue))return  true;s=s.next;}return  false}function Sc(s){yc=s,is=null,s=s.dependencies,s!==null&&(s.firstContext=null);}function Kr(s){return gN(yc,s)}function Jg(s,c){return yc===null&&Sc(s),gN(s,c)}function gN(s,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},is===null){if(s===null)throw Error(r(308));is=c,s.dependencies={lanes:0,firstContext:c},s.flags|=524288;}else is=is.next=c;return h}var AY=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:false,addEventListener:function(h,v){s.push(v);}};this.abort=function(){c.aborted=true,s.forEach(function(h){return h()});};},NY=e.unstable_scheduleCallback,PY=e.unstable_NormalPriority,gr={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kS(){return {controller:new AY,data:new Map,refCount:0}}function ym(s){s.refCount--,s.refCount===0&&NY(PY,function(){s.controller.abort();});}var Sm=null,FS=0,ed=0,td=null;function IY(s,c){if(Sm===null){var h=Sm=[];FS=0,ed=jC(),td={status:"pending",value:void 0,then:function(v){h.push(v);}};}return FS++,c.then(vN,vN),c}function vN(){if(--FS===0&&Sm!==null){td!==null&&(td.status="fulfilled");var s=Sm;Sm=null,ed=0,td=null;for(var c=0;c<s.length;c++)(0, s[c])();}}function OY(s,c){var h=[],v={status:"pending",value:null,reason:null,then:function(M){h.push(M);}};return s.then(function(){v.status="fulfilled",v.value=c;for(var M=0;M<h.length;M++)(0, h[M])(c);},function(M){for(v.status="rejected",v.reason=M,M=0;M<h.length;M++)(0, h[M])(void 0);}),v}var bN=z.S;z.S=function(s,c){t4=Ne(),typeof c=="object"&&c!==null&&typeof c.then=="function"&&IY(s,c),bN!==null&&bN(s,c);};var Cc=D(null);function HS(){var s=Cc.current;return s!==null?s:Fn.pooledCache}function ev(s,c){c===null?K(Cc,Cc.current):K(Cc,c.pool);}function yN(){var s=HS();return s===null?null:{parent:gr._currentValue,pool:s}}var nd=Error(r(460)),VS=Error(r(474)),tv=Error(r(542)),nv={then:function(){}};function SN(s){return s=s.status,s==="fulfilled"||s==="rejected"}function CN(s,c,h){switch(h=s[h],h===void 0?s.push(c):h!==c&&(c.then(ts,ts),c=h),c.status){case "fulfilled":return c.value;case "rejected":throw s=c.reason,wN(s),s;default:if(typeof c.status=="string")c.then(ts,ts);else {if(s=Fn,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=c,s.status="pending",s.then(function(v){if(c.status==="pending"){var M=c;M.status="fulfilled",M.value=v;}},function(v){if(c.status==="pending"){var M=c;M.status="rejected",M.reason=v;}});}switch(c.status){case "fulfilled":return c.value;case "rejected":throw s=c.reason,wN(s),s}throw wc=c,nd}}function xc(s){try{var c=s._init;return c(s._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(wc=h,nd):h}}var wc=null;function xN(){if(wc===null)throw Error(r(459));var s=wc;return wc=null,s}function wN(s){if(s===nd||s===tv)throw Error(r(483))}var rd=null,Cm=0;function rv(s){var c=Cm;return Cm+=1,rd===null&&(rd=[]),CN(rd,s,c)}function xm(s,c){c=c.props.ref,s.ref=c!==void 0?c:null;}function ov(s,c){throw c.$$typeof===g?Error(r(525)):(s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s)))}function $N(s){function c(ge,me){if(s){var $e=ge.deletions;$e===null?(ge.deletions=[me],ge.flags|=16):$e.push(me);}}function h(ge,me){if(!s)return null;for(;me!==null;)c(ge,me),me=me.sibling;return null}function v(ge){for(var me=new Map;ge!==null;)ge.key!==null?me.set(ge.key,ge):me.set(ge.index,ge),ge=ge.sibling;return me}function M(ge,me){return ge=rs(ge,me),ge.index=0,ge.sibling=null,ge}function A(ge,me,$e){return ge.index=$e,s?($e=ge.alternate,$e!==null?($e=$e.index,$e<me?(ge.flags|=67108866,me):$e):(ge.flags|=67108866,me)):(ge.flags|=1048576,me)}function V(ge){return s&&ge.alternate===null&&(ge.flags|=67108866),ge}function Z(ge,me,$e,Fe){return me===null||me.tag!==6?(me=NS($e,ge.mode,Fe),me.return=ge,me):(me=M(me,$e),me.return=ge,me)}function le(ge,me,$e,Fe){var Et=$e.type;return Et===S?Be(ge,me,$e.props.children,Fe,$e.key):me!==null&&(me.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===P&&xc(Et)===me.type)?(me=M(me,$e.props),xm(me,$e),me.return=ge,me):(me=Xg($e.type,$e.key,$e.props,null,ge.mode,Fe),xm(me,$e),me.return=ge,me)}function Ee(ge,me,$e,Fe){return me===null||me.tag!==4||me.stateNode.containerInfo!==$e.containerInfo||me.stateNode.implementation!==$e.implementation?(me=PS($e,ge.mode,Fe),me.return=ge,me):(me=M(me,$e.children||[]),me.return=ge,me)}function Be(ge,me,$e,Fe,Et){return me===null||me.tag!==7?(me=vc($e,ge.mode,Fe,Et),me.return=ge,me):(me=M(me,$e),me.return=ge,me)}function Ve(ge,me,$e){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=NS(""+me,ge.mode,$e),me.return=ge,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case b:return $e=Xg(me.type,me.key,me.props,null,ge.mode,$e),xm($e,me),$e.return=ge,$e;case y:return me=PS(me,ge.mode,$e),me.return=ge,me;case P:return me=xc(me),Ve(ge,me,$e)}if(F(me)||k(me))return me=vc(me,ge.mode,$e,null),me.return=ge,me;if(typeof me.then=="function")return Ve(ge,rv(me),$e);if(me.$$typeof===E)return Ve(ge,Jg(ge,me),$e);ov(ge,me);}return null}function Re(ge,me,$e,Fe){var Et=me!==null?me.key:null;if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return Et!==null?null:Z(ge,me,""+$e,Fe);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case b:return $e.key===Et?le(ge,me,$e,Fe):null;case y:return $e.key===Et?Ee(ge,me,$e,Fe):null;case P:return $e=xc($e),Re(ge,me,$e,Fe)}if(F($e)||k($e))return Et!==null?null:Be(ge,me,$e,Fe,null);if(typeof $e.then=="function")return Re(ge,me,rv($e),Fe);if($e.$$typeof===E)return Re(ge,me,Jg(ge,$e),Fe);ov(ge,$e);}return null}function Pe(ge,me,$e,Fe,Et){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint")return ge=ge.get($e)||null,Z(me,ge,""+Fe,Et);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case b:return ge=ge.get(Fe.key===null?$e:Fe.key)||null,le(me,ge,Fe,Et);case y:return ge=ge.get(Fe.key===null?$e:Fe.key)||null,Ee(me,ge,Fe,Et);case P:return Fe=xc(Fe),Pe(ge,me,$e,Fe,Et)}if(F(Fe)||k(Fe))return ge=ge.get($e)||null,Be(me,ge,Fe,Et,null);if(typeof Fe.then=="function")return Pe(ge,me,$e,rv(Fe),Et);if(Fe.$$typeof===E)return Pe(ge,me,$e,Jg(me,Fe),Et);ov(me,Fe);}return null}function gt(ge,me,$e,Fe){for(var Et=null,vn=null,St=me,Yt=me=0,an=null;St!==null&&Yt<$e.length;Yt++){St.index>Yt?(an=St,St=null):an=St.sibling;var bn=Re(ge,St,$e[Yt],Fe);if(bn===null){St===null&&(St=an);break}s&&St&&bn.alternate===null&&c(ge,St),me=A(bn,me,Yt),vn===null?Et=bn:vn.sibling=bn,vn=bn,St=an;}if(Yt===$e.length)return h(ge,St),hn&&os(ge,Yt),Et;if(St===null){for(;Yt<$e.length;Yt++)St=Ve(ge,$e[Yt],Fe),St!==null&&(me=A(St,me,Yt),vn===null?Et=St:vn.sibling=St,vn=St);return hn&&os(ge,Yt),Et}for(St=v(St);Yt<$e.length;Yt++)an=Pe(St,ge,Yt,$e[Yt],Fe),an!==null&&(s&&an.alternate!==null&&St.delete(an.key===null?Yt:an.key),me=A(an,me,Yt),vn===null?Et=an:vn.sibling=an,vn=an);return s&&St.forEach(function(vl){return c(ge,vl)}),hn&&os(ge,Yt),Et}function Pt(ge,me,$e,Fe){if($e==null)throw Error(r(151));for(var Et=null,vn=null,St=me,Yt=me=0,an=null,bn=$e.next();St!==null&&!bn.done;Yt++,bn=$e.next()){St.index>Yt?(an=St,St=null):an=St.sibling;var vl=Re(ge,St,bn.value,Fe);if(vl===null){St===null&&(St=an);break}s&&St&&vl.alternate===null&&c(ge,St),me=A(vl,me,Yt),vn===null?Et=vl:vn.sibling=vl,vn=vl,St=an;}if(bn.done)return h(ge,St),hn&&os(ge,Yt),Et;if(St===null){for(;!bn.done;Yt++,bn=$e.next())bn=Ve(ge,bn.value,Fe),bn!==null&&(me=A(bn,me,Yt),vn===null?Et=bn:vn.sibling=bn,vn=bn);return hn&&os(ge,Yt),Et}for(St=v(St);!bn.done;Yt++,bn=$e.next())bn=Pe(St,ge,Yt,bn.value,Fe),bn!==null&&(s&&bn.alternate!==null&&St.delete(bn.key===null?Yt:bn.key),me=A(bn,me,Yt),vn===null?Et=bn:vn.sibling=bn,vn=bn);return s&&St.forEach(function(UX){return c(ge,UX)}),hn&&os(ge,Yt),Et}function _n(ge,me,$e,Fe){if(typeof $e=="object"&&$e!==null&&$e.type===S&&$e.key===null&&($e=$e.props.children),typeof $e=="object"&&$e!==null){switch($e.$$typeof){case b:e:{for(var Et=$e.key;me!==null;){if(me.key===Et){if(Et=$e.type,Et===S){if(me.tag===7){h(ge,me.sibling),Fe=M(me,$e.props.children),Fe.return=ge,ge=Fe;break e}}else if(me.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===P&&xc(Et)===me.type){h(ge,me.sibling),Fe=M(me,$e.props),xm(Fe,$e),Fe.return=ge,ge=Fe;break e}h(ge,me);break}else c(ge,me);me=me.sibling;}$e.type===S?(Fe=vc($e.props.children,ge.mode,Fe,$e.key),Fe.return=ge,ge=Fe):(Fe=Xg($e.type,$e.key,$e.props,null,ge.mode,Fe),xm(Fe,$e),Fe.return=ge,ge=Fe);}return V(ge);case y:e:{for(Et=$e.key;me!==null;){if(me.key===Et)if(me.tag===4&&me.stateNode.containerInfo===$e.containerInfo&&me.stateNode.implementation===$e.implementation){h(ge,me.sibling),Fe=M(me,$e.children||[]),Fe.return=ge,ge=Fe;break e}else {h(ge,me);break}else c(ge,me);me=me.sibling;}Fe=PS($e,ge.mode,Fe),Fe.return=ge,ge=Fe;}return V(ge);case P:return $e=xc($e),_n(ge,me,$e,Fe)}if(F($e))return gt(ge,me,$e,Fe);if(k($e)){if(Et=k($e),typeof Et!="function")throw Error(r(150));return $e=Et.call($e),Pt(ge,me,$e,Fe)}if(typeof $e.then=="function")return _n(ge,me,rv($e),Fe);if($e.$$typeof===E)return _n(ge,me,Jg(ge,$e),Fe);ov(ge,$e);}return typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint"?($e=""+$e,me!==null&&me.tag===6?(h(ge,me.sibling),Fe=M(me,$e),Fe.return=ge,ge=Fe):(h(ge,me),Fe=NS($e,ge.mode,Fe),Fe.return=ge,ge=Fe),V(ge)):h(ge,me)}return function(ge,me,$e,Fe){try{Cm=0;var Et=_n(ge,me,$e,Fe);return rd=null,Et}catch(St){if(St===nd||St===tv)throw St;var vn=ri(29,St,null,ge.mode);return vn.lanes=Fe,vn.return=ge,vn}}}var $c=$N(true),EN=$N(false),el=false;function jS(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function US(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null});}function tl(s){return {lane:s,tag:0,payload:null,callback:null,next:null}}function nl(s,c,h){var v=s.updateQueue;if(v===null)return null;if(v=v.shared,(Cn&2)!==0){var M=v.pending;return M===null?c.next=c:(c.next=M.next,M.next=c),v.pending=c,c=Yg(s),lN(s,null,h),c}return Kg(s,v,c,h),Yg(s)}function wm(s,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194048)!==0)){var v=c.lanes;v&=s.pendingLanes,h|=v,c.lanes=h,we(s,h);}}function WS(s,c){var h=s.updateQueue,v=s.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var M=null,A=null;if(h=h.firstBaseUpdate,h!==null){do{var V={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};A===null?M=A=V:A=A.next=V,h=h.next;}while(h!==null);A===null?M=A=c:A=A.next=c;}else M=A=c;h={baseState:v.baseState,firstBaseUpdate:M,lastBaseUpdate:A,shared:v.shared,callbacks:v.callbacks},s.updateQueue=h;return}s=h.lastBaseUpdate,s===null?h.firstBaseUpdate=c:s.next=c,h.lastBaseUpdate=c;}var qS=false;function $m(){if(qS){var s=td;if(s!==null)throw s}}function Em(s,c,h,v){qS=false;var M=s.updateQueue;el=false;var A=M.firstBaseUpdate,V=M.lastBaseUpdate,Z=M.shared.pending;if(Z!==null){M.shared.pending=null;var le=Z,Ee=le.next;le.next=null,V===null?A=Ee:V.next=Ee,V=le;var Be=s.alternate;Be!==null&&(Be=Be.updateQueue,Z=Be.lastBaseUpdate,Z!==V&&(Z===null?Be.firstBaseUpdate=Ee:Z.next=Ee,Be.lastBaseUpdate=le));}if(A!==null){var Ve=M.baseState;V=0,Be=Ee=le=null,Z=A;do{var Re=Z.lane&-536870913,Pe=Re!==Z.lane;if(Pe?(on&Re)===Re:(v&Re)===Re){Re!==0&&Re===ed&&(qS=true),Be!==null&&(Be=Be.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var gt=s,Pt=Z;Re=c;var _n=h;switch(Pt.tag){case 1:if(gt=Pt.payload,typeof gt=="function"){Ve=gt.call(_n,Ve,Re);break e}Ve=gt;break e;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=Pt.payload,Re=typeof gt=="function"?gt.call(_n,Ve,Re):gt,Re==null)break e;Ve=p({},Ve,Re);break e;case 2:el=true;}}Re=Z.callback,Re!==null&&(s.flags|=64,Pe&&(s.flags|=8192),Pe=M.callbacks,Pe===null?M.callbacks=[Re]:Pe.push(Re));}else Pe={lane:Re,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Be===null?(Ee=Be=Pe,le=Ve):Be=Be.next=Pe,V|=Re;if(Z=Z.next,Z===null){if(Z=M.shared.pending,Z===null)break;Pe=Z,Z=Pe.next,Pe.next=null,M.lastBaseUpdate=Pe,M.shared.pending=null;}}while(true);Be===null&&(le=Ve),M.baseState=le,M.firstBaseUpdate=Ee,M.lastBaseUpdate=Be,A===null&&(M.shared.lanes=0),sl|=V,s.lanes=V,s.memoizedState=Ve;}}function MN(s,c){if(typeof s!="function")throw Error(r(191,s));s.call(c);}function RN(s,c){var h=s.callbacks;if(h!==null)for(s.callbacks=null,s=0;s<h.length;s++)MN(h[s],c);}var od=D(null),iv=D(0);function TN(s,c){s=ps,K(iv,s),K(od,c),ps=s|c.baseLanes;}function GS(){K(iv,ps),K(od,od.current);}function KS(){ps=iv.current,B(od),B(iv);}var oi=D(null),Oi=null;function rl(s){var c=s.alternate;K(dr,dr.current&1),K(oi,s),Oi===null&&(c===null||od.current!==null||c.memoizedState!==null)&&(Oi=s);}function YS(s){K(dr,dr.current),K(oi,s),Oi===null&&(Oi=s);}function AN(s){s.tag===22?(K(dr,dr.current),K(oi,s),Oi===null&&(Oi=s)):ol();}function ol(){K(dr,dr.current),K(oi,oi.current);}function ii(s){B(oi),Oi===s&&(Oi=null),B(dr);}var dr=D(0);function av(s){for(var c=s;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||tx(h)||nx(h)))return c}else if(c.tag===19&&(c.memoizedProps.revealOrder==="forwards"||c.memoizedProps.revealOrder==="backwards"||c.memoizedProps.revealOrder==="unstable_legacy-backwards"||c.memoizedProps.revealOrder==="together")){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return;}c.sibling.return=c.return,c=c.sibling;}return null}var ss=0,Gt=null,On=null,vr=null,sv=false,id=false,Ec=false,lv=0,Mm=0,ad=null,DY=0;function or(){throw Error(r(321))}function XS(s,c){if(c===null)return  false;for(var h=0;h<c.length&&h<s.length;h++)if(!ni(s[h],c[h]))return  false;return  true}function QS(s,c,h,v,M,A){return ss=A,Gt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,z.H=s===null||s.memoizedState===null?fP:fC,Ec=false,A=h(v,M),Ec=false,id&&(A=PN(c,h,v,M)),NN(s),A}function NN(s){z.H=Am;var c=On!==null&&On.next!==null;if(ss=0,vr=On=Gt=null,sv=false,Mm=0,ad=null,c)throw Error(r(300));s===null||br||(s=s.dependencies,s!==null&&Zg(s)&&(br=true));}function PN(s,c,h,v){Gt=s;var M=0;do{if(id&&(ad=null),Mm=0,id=false,25<=M)throw Error(r(301));if(M+=1,vr=On=null,s.updateQueue!=null){var A=s.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0);}z.H=mP,A=c(h,v);}while(id);return A}function _Y(){var s=z.H,c=s.useState()[0];return c=typeof c.then=="function"?Rm(c):c,s=s.useState()[0],(On!==null?On.memoizedState:null)!==s&&(Gt.flags|=1024),c}function ZS(){var s=lv!==0;return lv=0,s}function JS(s,c,h){c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~h;}function eC(s){if(sv){for(s=s.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next;}sv=false;}ss=0,vr=On=Gt=null,id=false,Mm=lv=0,ad=null;}function $o(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?Gt.memoizedState=vr=s:vr=vr.next=s,vr}function fr(){if(On===null){var s=Gt.alternate;s=s!==null?s.memoizedState:null;}else s=On.next;var c=vr===null?Gt.memoizedState:vr.next;if(c!==null)vr=c,On=s;else {if(s===null)throw Gt.alternate===null?Error(r(467)):Error(r(310));On=s,s={memoizedState:On.memoizedState,baseState:On.baseState,baseQueue:On.baseQueue,queue:On.queue,next:null},vr===null?Gt.memoizedState=vr=s:vr=vr.next=s;}return vr}function cv(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function Rm(s){var c=Mm;return Mm+=1,ad===null&&(ad=[]),s=CN(ad,s,c),c=Gt,(vr===null?c.memoizedState:vr.next)===null&&(c=c.alternate,z.H=c===null||c.memoizedState===null?fP:fC),s}function uv(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Rm(s);if(s.$$typeof===E)return Kr(s)}throw Error(r(438,String(s)))}function tC(s){var c=null,h=Gt.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var v=Gt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(c={data:v.data.map(function(M){return M.slice()}),index:0})));}if(c==null&&(c={data:[],index:0}),h===null&&(h=cv(),Gt.updateQueue=h),h.memoCache=c,h=c.data[c.index],h===void 0)for(h=c.data[c.index]=Array(s),v=0;v<s;v++)h[v]=_;return c.index++,h}function ls(s,c){return typeof c=="function"?c(s):c}function dv(s){var c=fr();return nC(c,On,s)}function nC(s,c,h){var v=s.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=h;var M=s.baseQueue,A=v.pending;if(A!==null){if(M!==null){var V=M.next;M.next=A.next,A.next=V;}c.baseQueue=M=A,v.pending=null;}if(A=s.baseState,M===null)s.memoizedState=A;else {c=M.next;var Z=V=null,le=null,Ee=c,Be=false;do{var Ve=Ee.lane&-536870913;if(Ve!==Ee.lane?(on&Ve)===Ve:(ss&Ve)===Ve){var Re=Ee.revertLane;if(Re===0)le!==null&&(le=le.next={lane:0,revertLane:0,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),Ve===ed&&(Be=true);else if((ss&Re)===Re){Ee=Ee.next,Re===ed&&(Be=true);continue}else Ve={lane:0,revertLane:Ee.revertLane,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},le===null?(Z=le=Ve,V=A):le=le.next=Ve,Gt.lanes|=Re,sl|=Re;Ve=Ee.action,Ec&&h(A,Ve),A=Ee.hasEagerState?Ee.eagerState:h(A,Ve);}else Re={lane:Ve,revertLane:Ee.revertLane,gesture:Ee.gesture,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},le===null?(Z=le=Re,V=A):le=le.next=Re,Gt.lanes|=Ve,sl|=Ve;Ee=Ee.next;}while(Ee!==null&&Ee!==c);if(le===null?V=A:le.next=Z,!ni(A,s.memoizedState)&&(br=true,Be&&(h=td,h!==null)))throw h;s.memoizedState=A,s.baseState=V,s.baseQueue=le,v.lastRenderedState=A;}return M===null&&(v.lanes=0),[s.memoizedState,v.dispatch]}function rC(s){var c=fr(),h=c.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=s;var v=h.dispatch,M=h.pending,A=c.memoizedState;if(M!==null){h.pending=null;var V=M=M.next;do A=s(A,V.action),V=V.next;while(V!==M);ni(A,c.memoizedState)||(br=true),c.memoizedState=A,c.baseQueue===null&&(c.baseState=A),h.lastRenderedState=A;}return [A,v]}function IN(s,c,h){var v=Gt,M=fr(),A=hn;if(A){if(h===void 0)throw Error(r(407));h=h();}else h=c();var V=!ni((On||M).memoizedState,h);if(V&&(M.memoizedState=h,br=true),M=M.queue,aC(_N.bind(null,v,M,s),[s]),M.getSnapshot!==c||V||vr!==null&&vr.memoizedState.tag&1){if(v.flags|=2048,sd(9,{destroy:void 0},DN.bind(null,v,M,h,c),null),Fn===null)throw Error(r(349));A||(ss&127)!==0||ON(v,c,h);}return h}function ON(s,c,h){s.flags|=16384,s={getSnapshot:c,value:h},c=Gt.updateQueue,c===null?(c=cv(),Gt.updateQueue=c,c.stores=[s]):(h=c.stores,h===null?c.stores=[s]:h.push(s));}function DN(s,c,h,v){c.value=h,c.getSnapshot=v,LN(c)&&BN(s);}function _N(s,c,h){return h(function(){LN(c)&&BN(s);})}function LN(s){var c=s.getSnapshot;s=s.value;try{var h=c();return !ni(s,h)}catch{return  true}}function BN(s){var c=gc(s,2);c!==null&&Uo(c,s,2);}function oC(s){var c=$o();if(typeof s=="function"){var h=s;if(s=h(),Ec){Ie(true);try{h();}finally{Ie(false);}}}return c.memoizedState=c.baseState=s,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:s},c}function zN(s,c,h,v){return s.baseState=h,nC(s,On,typeof v=="function"?v:ls)}function LY(s,c,h,v,M){if(hv(s))throw Error(r(485));if(s=c.action,s!==null){var A={payload:M,action:s,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(V){A.listeners.push(V);}};z.T!==null?h(true):A.isTransition=false,v(A),h=c.pending,h===null?(A.next=c.pending=A,kN(c,A)):(A.next=h.next,c.pending=h.next=A);}}function kN(s,c){var h=c.action,v=c.payload,M=s.state;if(c.isTransition){var A=z.T,V={};z.T=V;try{var Z=h(M,v),le=z.S;le!==null&&le(V,Z),FN(s,c,Z);}catch(Ee){iC(s,c,Ee);}finally{A!==null&&V.types!==null&&(A.types=V.types),z.T=A;}}else try{A=h(M,v),FN(s,c,A);}catch(Ee){iC(s,c,Ee);}}function FN(s,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){HN(s,c,v);},function(v){return iC(s,c,v)}):HN(s,c,h);}function HN(s,c,h){c.status="fulfilled",c.value=h,VN(c),s.state=h,c=s.pending,c!==null&&(h=c.next,h===c?s.pending=null:(h=h.next,c.next=h,kN(s,h)));}function iC(s,c,h){var v=s.pending;if(s.pending=null,v!==null){v=v.next;do c.status="rejected",c.reason=h,VN(c),c=c.next;while(c!==v)}s.action=null;}function VN(s){s=s.listeners;for(var c=0;c<s.length;c++)(0, s[c])();}function jN(s,c){return c}function UN(s,c){if(hn){var h=Fn.formState;if(h!==null){e:{var v=Gt;if(hn){if(qn){t:{for(var M=qn,A=Ii;M.nodeType!==8;){if(!A){M=null;break t}if(M=Di(M.nextSibling),M===null){M=null;break t}}A=M.data,M=A==="F!"||A==="F"?M:null;}if(M){qn=Di(M.nextSibling),v=M.data==="F!";break e}}Zs(v);}v=false;}v&&(c=h[0]);}}return h=$o(),h.memoizedState=h.baseState=c,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jN,lastRenderedState:c},h.queue=v,h=cP.bind(null,Gt,v),v.dispatch=h,v=oC(false),A=dC.bind(null,Gt,false,v.queue),v=$o(),M={state:c,dispatch:null,action:s,pending:null},v.queue=M,h=LY.bind(null,Gt,M,A,h),M.dispatch=h,v.memoizedState=s,[c,h,false]}function WN(s){var c=fr();return qN(c,On,s)}function qN(s,c,h){if(c=nC(s,c,jN)[0],s=dv(ls)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var v=Rm(c);}catch(V){throw V===nd?tv:V}else v=c;c=fr();var M=c.queue,A=M.dispatch;return h!==c.memoizedState&&(Gt.flags|=2048,sd(9,{destroy:void 0},BY.bind(null,M,h),null)),[v,A,s]}function BY(s,c){s.action=c;}function GN(s){var c=fr(),h=On;if(h!==null)return qN(c,h,s);fr(),c=c.memoizedState,h=fr();var v=h.queue.dispatch;return h.memoizedState=s,[c,v,false]}function sd(s,c,h,v){return s={tag:s,create:h,deps:v,inst:c,next:null},c=Gt.updateQueue,c===null&&(c=cv(),Gt.updateQueue=c),h=c.lastEffect,h===null?c.lastEffect=s.next=s:(v=h.next,h.next=s,s.next=v,c.lastEffect=s),s}function KN(){return fr().memoizedState}function fv(s,c,h,v){var M=$o();Gt.flags|=s,M.memoizedState=sd(1|c,{destroy:void 0},h,v===void 0?null:v);}function mv(s,c,h,v){var M=fr();v=v===void 0?null:v;var A=M.memoizedState.inst;On!==null&&v!==null&&XS(v,On.memoizedState.deps)?M.memoizedState=sd(c,A,h,v):(Gt.flags|=s,M.memoizedState=sd(1|c,A,h,v));}function YN(s,c){fv(8390656,8,s,c);}function aC(s,c){mv(2048,8,s,c);}function zY(s){Gt.flags|=4;var c=Gt.updateQueue;if(c===null)c=cv(),Gt.updateQueue=c,c.events=[s];else {var h=c.events;h===null?c.events=[s]:h.push(s);}}function XN(s){var c=fr().memoizedState;return zY({ref:c,nextImpl:s}),function(){if((Cn&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}function QN(s,c){return mv(4,2,s,c)}function ZN(s,c){return mv(4,4,s,c)}function JN(s,c){if(typeof c=="function"){s=s();var h=c(s);return function(){typeof h=="function"?h():c(null);}}if(c!=null)return s=s(),c.current=s,function(){c.current=null;}}function eP(s,c,h){h=h!=null?h.concat([s]):null,mv(4,4,JN.bind(null,c,s),h);}function sC(){}function tP(s,c){var h=fr();c=c===void 0?null:c;var v=h.memoizedState;return c!==null&&XS(c,v[1])?v[0]:(h.memoizedState=[s,c],s)}function nP(s,c){var h=fr();c=c===void 0?null:c;var v=h.memoizedState;if(c!==null&&XS(c,v[1]))return v[0];if(v=s(),Ec){Ie(true);try{s();}finally{Ie(false);}}return h.memoizedState=[v,c],v}function lC(s,c,h){return h===void 0||(ss&1073741824)!==0&&(on&261930)===0?s.memoizedState=c:(s.memoizedState=h,s=r4(),Gt.lanes|=s,sl|=s,h)}function rP(s,c,h,v){return ni(h,c)?h:od.current!==null?(s=lC(s,h,v),ni(s,c)||(br=true),s):(ss&42)===0||(ss&1073741824)!==0&&(on&261930)===0?(br=true,s.memoizedState=h):(s=r4(),Gt.lanes|=s,sl|=s,c)}function oP(s,c,h,v,M){var A=j.p;j.p=A!==0&&8>A?A:8;var V=z.T,Z={};z.T=Z,dC(s,false,c,h);try{var le=M(),Ee=z.S;if(Ee!==null&&Ee(Z,le),le!==null&&typeof le=="object"&&typeof le.then=="function"){var Be=OY(le,v);Tm(s,c,Be,li(s));}else Tm(s,c,v,li(s));}catch(Ve){Tm(s,c,{then:function(){},status:"rejected",reason:Ve},li());}finally{j.p=A,V!==null&&Z.types!==null&&(V.types=Z.types),z.T=V;}}function kY(){}function cC(s,c,h,v){if(s.tag!==5)throw Error(r(476));var M=iP(s).queue;oP(s,M,c,U,h===null?kY:function(){return aP(s),h(v)});}function iP(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:U},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:h},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function aP(s){var c=iP(s);c.next===null&&(c=s.alternate.memoizedState),Tm(s,c.next.queue,{},li());}function uC(){return Kr(Wm)}function sP(){return fr().memoizedState}function lP(){return fr().memoizedState}function FY(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var h=li();s=tl(h);var v=nl(c,s,h);v!==null&&(Uo(v,c,h),wm(v,c,h)),c={cache:kS()},s.payload=c;return}c=c.return;}}function HY(s,c,h){var v=li();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null},hv(s)?uP(c,h):(h=TS(s,c,h,v),h!==null&&(Uo(h,s,v),dP(h,c,v)));}function cP(s,c,h){var v=li();Tm(s,c,h,v);}function Tm(s,c,h,v){var M={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:false,eagerState:null,next:null};if(hv(s))uP(c,M);else {var A=s.alternate;if(s.lanes===0&&(A===null||A.lanes===0)&&(A=c.lastRenderedReducer,A!==null))try{var V=c.lastRenderedState,Z=A(V,h);if(M.hasEagerState=!0,M.eagerState=Z,ni(Z,V))return Kg(s,c,M,0),Fn===null&&Gg(),!1}catch{}if(h=TS(s,c,M,v),h!==null)return Uo(h,s,v),dP(h,c,v),true}return  false}function dC(s,c,h,v){if(v={lane:2,revertLane:jC(),gesture:null,action:v,hasEagerState:false,eagerState:null,next:null},hv(s)){if(c)throw Error(r(479))}else c=TS(s,h,v,2),c!==null&&Uo(c,s,2);}function hv(s){var c=s.alternate;return s===Gt||c!==null&&c===Gt}function uP(s,c){id=sv=true;var h=s.pending;h===null?c.next=c:(c.next=h.next,h.next=c),s.pending=c;}function dP(s,c,h){if((h&4194048)!==0){var v=c.lanes;v&=s.pendingLanes,h|=v,c.lanes=h,we(s,h);}}var Am={readContext:Kr,use:uv,useCallback:or,useContext:or,useEffect:or,useImperativeHandle:or,useLayoutEffect:or,useInsertionEffect:or,useMemo:or,useReducer:or,useRef:or,useState:or,useDebugValue:or,useDeferredValue:or,useTransition:or,useSyncExternalStore:or,useId:or,useHostTransitionStatus:or,useFormState:or,useActionState:or,useOptimistic:or,useMemoCache:or,useCacheRefresh:or};Am.useEffectEvent=or;var fP={readContext:Kr,use:uv,useCallback:function(s,c){return $o().memoizedState=[s,c===void 0?null:c],s},useContext:Kr,useEffect:YN,useImperativeHandle:function(s,c,h){h=h!=null?h.concat([s]):null,fv(4194308,4,JN.bind(null,c,s),h);},useLayoutEffect:function(s,c){return fv(4194308,4,s,c)},useInsertionEffect:function(s,c){fv(4,2,s,c);},useMemo:function(s,c){var h=$o();c=c===void 0?null:c;var v=s();if(Ec){Ie(true);try{s();}finally{Ie(false);}}return h.memoizedState=[v,c],v},useReducer:function(s,c,h){var v=$o();if(h!==void 0){var M=h(c);if(Ec){Ie(true);try{h(c);}finally{Ie(false);}}}else M=c;return v.memoizedState=v.baseState=M,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:M},v.queue=s,s=s.dispatch=HY.bind(null,Gt,s),[v.memoizedState,s]},useRef:function(s){var c=$o();return s={current:s},c.memoizedState=s},useState:function(s){s=oC(s);var c=s.queue,h=cP.bind(null,Gt,c);return c.dispatch=h,[s.memoizedState,h]},useDebugValue:sC,useDeferredValue:function(s,c){var h=$o();return lC(h,s,c)},useTransition:function(){var s=oC(false);return s=oP.bind(null,Gt,s.queue,true,false),$o().memoizedState=s,[false,s]},useSyncExternalStore:function(s,c,h){var v=Gt,M=$o();if(hn){if(h===void 0)throw Error(r(407));h=h();}else {if(h=c(),Fn===null)throw Error(r(349));(on&127)!==0||ON(v,c,h);}M.memoizedState=h;var A={value:h,getSnapshot:c};return M.queue=A,YN(_N.bind(null,v,A,s),[s]),v.flags|=2048,sd(9,{destroy:void 0},DN.bind(null,v,A,h,c),null),h},useId:function(){var s=$o(),c=Fn.identifierPrefix;if(hn){var h=Aa,v=Ta;h=(v&~(1<<32-ct(v)-1)).toString(32)+h,c="_"+c+"R_"+h,h=lv++,0<h&&(c+="H"+h.toString(32)),c+="_";}else h=DY++,c="_"+c+"r_"+h.toString(32)+"_";return s.memoizedState=c},useHostTransitionStatus:uC,useFormState:UN,useActionState:UN,useOptimistic:function(s){var c=$o();c.memoizedState=c.baseState=s;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=dC.bind(null,Gt,true,h),h.dispatch=c,[s,c]},useMemoCache:tC,useCacheRefresh:function(){return $o().memoizedState=FY.bind(null,Gt)},useEffectEvent:function(s){var c=$o(),h={impl:s};return c.memoizedState=h,function(){if((Cn&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},fC={readContext:Kr,use:uv,useCallback:tP,useContext:Kr,useEffect:aC,useImperativeHandle:eP,useInsertionEffect:QN,useLayoutEffect:ZN,useMemo:nP,useReducer:dv,useRef:KN,useState:function(){return dv(ls)},useDebugValue:sC,useDeferredValue:function(s,c){var h=fr();return rP(h,On.memoizedState,s,c)},useTransition:function(){var s=dv(ls)[0],c=fr().memoizedState;return [typeof s=="boolean"?s:Rm(s),c]},useSyncExternalStore:IN,useId:sP,useHostTransitionStatus:uC,useFormState:WN,useActionState:WN,useOptimistic:function(s,c){var h=fr();return zN(h,On,s,c)},useMemoCache:tC,useCacheRefresh:lP};fC.useEffectEvent=XN;var mP={readContext:Kr,use:uv,useCallback:tP,useContext:Kr,useEffect:aC,useImperativeHandle:eP,useInsertionEffect:QN,useLayoutEffect:ZN,useMemo:nP,useReducer:rC,useRef:KN,useState:function(){return rC(ls)},useDebugValue:sC,useDeferredValue:function(s,c){var h=fr();return On===null?lC(h,s,c):rP(h,On.memoizedState,s,c)},useTransition:function(){var s=rC(ls)[0],c=fr().memoizedState;return [typeof s=="boolean"?s:Rm(s),c]},useSyncExternalStore:IN,useId:sP,useHostTransitionStatus:uC,useFormState:GN,useActionState:GN,useOptimistic:function(s,c){var h=fr();return On!==null?zN(h,On,s,c):(h.baseState=s,[s,h.queue.dispatch])},useMemoCache:tC,useCacheRefresh:lP};mP.useEffectEvent=XN;function mC(s,c,h,v){c=s.memoizedState,h=h(v,c),h=h==null?c:p({},c,h),s.memoizedState=h,s.lanes===0&&(s.updateQueue.baseState=h);}var hC={enqueueSetState:function(s,c,h){s=s._reactInternals;var v=li(),M=tl(v);M.payload=c,h!=null&&(M.callback=h),c=nl(s,M,v),c!==null&&(Uo(c,s,v),wm(c,s,v));},enqueueReplaceState:function(s,c,h){s=s._reactInternals;var v=li(),M=tl(v);M.tag=1,M.payload=c,h!=null&&(M.callback=h),c=nl(s,M,v),c!==null&&(Uo(c,s,v),wm(c,s,v));},enqueueForceUpdate:function(s,c){s=s._reactInternals;var h=li(),v=tl(h);v.tag=2,c!=null&&(v.callback=c),c=nl(s,v,h),c!==null&&(Uo(c,s,h),wm(c,s,h));}};function hP(s,c,h,v,M,A,V){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(v,A,V):c.prototype&&c.prototype.isPureReactComponent?!pm(h,v)||!pm(M,A):true}function pP(s,c,h,v){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(h,v),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(h,v),c.state!==s&&hC.enqueueReplaceState(c,c.state,null);}function Mc(s,c){var h=c;if("ref"in c){h={};for(var v in c)v!=="ref"&&(h[v]=c[v]);}if(s=s.defaultProps){h===c&&(h=p({},h));for(var M in s)h[M]===void 0&&(h[M]=s[M]);}return h}function gP(s){qg(s);}function vP(s){console.error(s);}function bP(s){qg(s);}function pv(s,c){try{var h=s.onUncaughtError;h(c.value,{componentStack:c.stack});}catch(v){setTimeout(function(){throw v});}}function yP(s,c,h){try{var v=s.onCaughtError;v(h.value,{componentStack:h.stack,errorBoundary:c.tag===1?c.stateNode:null});}catch(M){setTimeout(function(){throw M});}}function pC(s,c,h){return h=tl(h),h.tag=3,h.payload={element:null},h.callback=function(){pv(s,c);},h}function SP(s){return s=tl(s),s.tag=3,s}function CP(s,c,h,v){var M=h.type.getDerivedStateFromError;if(typeof M=="function"){var A=v.value;s.payload=function(){return M(A)},s.callback=function(){yP(c,h,v);};}var V=h.stateNode;V!==null&&typeof V.componentDidCatch=="function"&&(s.callback=function(){yP(c,h,v),typeof M!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var Z=v.stack;this.componentDidCatch(v.value,{componentStack:Z!==null?Z:""});});}function VY(s,c,h,v,M){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(c=h.alternate,c!==null&&Ju(c,h,M,true),h=oi.current,h!==null){switch(h.tag){case 31:case 13:return Oi===null?Rv():h.alternate===null&&ir===0&&(ir=3),h.flags&=-257,h.flags|=65536,h.lanes=M,v===nv?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([v]):c.add(v),FC(s,v,M)),false;case 22:return h.flags|=65536,v===nv?h.flags|=16384:(c=h.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([v])},h.updateQueue=c):(h=c.retryQueue,h===null?c.retryQueue=new Set([v]):h.add(v)),FC(s,v,M)),false}throw Error(r(435,h.tag))}return FC(s,v,M),Rv(),false}if(hn)return c=oi.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=M,v!==DS&&(s=Error(r(422),{cause:v}),bm(Ai(s,h)))):(v!==DS&&(c=Error(r(423),{cause:v}),bm(Ai(c,h))),s=s.current.alternate,s.flags|=65536,M&=-M,s.lanes|=M,v=Ai(v,h),M=pC(s.stateNode,v,M),WS(s,M),ir!==4&&(ir=2)),false;var A=Error(r(520),{cause:v});if(A=Ai(A,h),Bm===null?Bm=[A]:Bm.push(A),ir!==4&&(ir=2),c===null)return  true;v=Ai(v,h),h=c;do{switch(h.tag){case 3:return h.flags|=65536,s=M&-M,h.lanes|=s,s=pC(h.stateNode,v,s),WS(h,s),false;case 1:if(c=h.type,A=h.stateNode,(h.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(ll===null||!ll.has(A))))return h.flags|=65536,M&=-M,h.lanes|=M,M=SP(M),CP(M,s,h,v),WS(h,M),false}h=h.return;}while(h!==null);return  false}var gC=Error(r(461)),br=false;function Yr(s,c,h,v){c.child=s===null?EN(c,null,h,v):$c(c,s.child,h,v);}function xP(s,c,h,v,M){h=h.render;var A=c.ref;if("ref"in v){var V={};for(var Z in v)Z!=="ref"&&(V[Z]=v[Z]);}else V=v;return Sc(c),v=QS(s,c,h,V,A,M),Z=ZS(),s!==null&&!br?(JS(s,c,M),cs(s,c,M)):(hn&&Z&&IS(c),c.flags|=1,Yr(s,c,v,M),c.child)}function wP(s,c,h,v,M){if(s===null){var A=h.type;return typeof A=="function"&&!AS(A)&&A.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=A,$P(s,c,A,v,M)):(s=Xg(h.type,null,v,c,c.mode,M),s.ref=c.ref,s.return=c,c.child=s)}if(A=s.child,!$C(s,M)){var V=A.memoizedProps;if(h=h.compare,h=h!==null?h:pm,h(V,v)&&s.ref===c.ref)return cs(s,c,M)}return c.flags|=1,s=rs(A,v),s.ref=c.ref,s.return=c,c.child=s}function $P(s,c,h,v,M){if(s!==null){var A=s.memoizedProps;if(pm(A,v)&&s.ref===c.ref)if(br=false,c.pendingProps=v=A,$C(s,M))(s.flags&131072)!==0&&(br=true);else return c.lanes=s.lanes,cs(s,c,M)}return vC(s,c,h,v,M)}function EP(s,c,h,v){var M=v.children,A=s!==null?s.memoizedState:null;if(s===null&&c.stateNode===null&&(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((c.flags&128)!==0){if(A=A!==null?A.baseLanes|h:h,s!==null){for(v=c.child=s.child,M=0;v!==null;)M=M|v.lanes|v.childLanes,v=v.sibling;v=M&~A;}else v=0,c.child=null;return MP(s,c,A,h,v)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},s!==null&&ev(c,A!==null?A.cachePool:null),A!==null?TN(c,A):GS(),AN(c);else return v=c.lanes=536870912,MP(s,c,A!==null?A.baseLanes|h:h,h,v)}else A!==null?(ev(c,A.cachePool),TN(c,A),ol(),c.memoizedState=null):(s!==null&&ev(c,null),GS(),ol());return Yr(s,c,M,h),c.child}function Nm(s,c){return s!==null&&s.tag===22||c.stateNode!==null||(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.sibling}function MP(s,c,h,v,M){var A=HS();return A=A===null?null:{parent:gr._currentValue,pool:A},c.memoizedState={baseLanes:h,cachePool:A},s!==null&&ev(c,null),GS(),AN(c),s!==null&&Ju(s,c,v,true),c.childLanes=M,null}function gv(s,c){return c=bv({mode:c.mode,children:c.children},s.mode),c.ref=s.ref,s.child=c,c.return=s,c}function RP(s,c,h){return $c(c,s.child,null,h),s=gv(c,c.pendingProps),s.flags|=2,ii(c),c.memoizedState=null,s}function jY(s,c,h){var v=c.pendingProps,M=(c.flags&128)!==0;if(c.flags&=-129,s===null){if(hn){if(v.mode==="hidden")return s=gv(c,v),c.lanes=536870912,Nm(null,s);if(YS(c),(s=qn)?(s=k4(s,Ii),s=s!==null&&s.data==="&"?s:null,s!==null&&(c.memoizedState={dehydrated:s,treeContext:Xs!==null?{id:Ta,overflow:Aa}:null,retryLane:536870912,hydrationErrors:null},h=uN(s),h.return=c,c.child=h,Gr=c,qn=null)):s=null,s===null)throw Zs(c);return c.lanes=536870912,null}return gv(c,v)}var A=s.memoizedState;if(A!==null){var V=A.dehydrated;if(YS(c),M)if(c.flags&256)c.flags&=-257,c=RP(s,c,h);else if(c.memoizedState!==null)c.child=s.child,c.flags|=128,c=null;else throw Error(r(558));else if(br||Ju(s,c,h,false),M=(h&s.childLanes)!==0,br||M){if(v=Fn,v!==null&&(V=ze(v,h),V!==0&&V!==A.retryLane))throw A.retryLane=V,gc(s,V),Uo(v,s,V),gC;Rv(),c=RP(s,c,h);}else s=A.treeContext,qn=Di(V.nextSibling),Gr=c,hn=true,Qs=null,Ii=false,s!==null&&mN(c,s),c=gv(c,v),c.flags|=4096;return c}return s=rs(s.child,{mode:v.mode,children:v.children}),s.ref=c.ref,c.child=s,s.return=c,s}function vv(s,c){var h=c.ref;if(h===null)s!==null&&s.ref!==null&&(c.flags|=4194816);else {if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(s===null||s.ref!==h)&&(c.flags|=4194816);}}function vC(s,c,h,v,M){return Sc(c),h=QS(s,c,h,v,void 0,M),v=ZS(),s!==null&&!br?(JS(s,c,M),cs(s,c,M)):(hn&&v&&IS(c),c.flags|=1,Yr(s,c,h,M),c.child)}function TP(s,c,h,v,M,A){return Sc(c),c.updateQueue=null,h=PN(c,v,h,M),NN(s),v=ZS(),s!==null&&!br?(JS(s,c,A),cs(s,c,A)):(hn&&v&&IS(c),c.flags|=1,Yr(s,c,h,A),c.child)}function AP(s,c,h,v,M){if(Sc(c),c.stateNode===null){var A=Yu,V=h.contextType;typeof V=="object"&&V!==null&&(A=Kr(V)),A=new h(v,A),c.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=hC,c.stateNode=A,A._reactInternals=c,A=c.stateNode,A.props=v,A.state=c.memoizedState,A.refs={},jS(c),V=h.contextType,A.context=typeof V=="object"&&V!==null?Kr(V):Yu,A.state=c.memoizedState,V=h.getDerivedStateFromProps,typeof V=="function"&&(mC(c,h,V,v),A.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(V=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),V!==A.state&&hC.enqueueReplaceState(A,A.state,null),Em(c,v,A,M),$m(),A.state=c.memoizedState),typeof A.componentDidMount=="function"&&(c.flags|=4194308),v=true;}else if(s===null){A=c.stateNode;var Z=c.memoizedProps,le=Mc(h,Z);A.props=le;var Ee=A.context,Be=h.contextType;V=Yu,typeof Be=="object"&&Be!==null&&(V=Kr(Be));var Ve=h.getDerivedStateFromProps;Be=typeof Ve=="function"||typeof A.getSnapshotBeforeUpdate=="function",Z=c.pendingProps!==Z,Be||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(Z||Ee!==V)&&pP(c,A,v,V),el=false;var Re=c.memoizedState;A.state=Re,Em(c,v,A,M),$m(),Ee=c.memoizedState,Z||Re!==Ee||el?(typeof Ve=="function"&&(mC(c,h,Ve,v),Ee=c.memoizedState),(le=el||hP(c,h,le,v,Re,Ee,V))?(Be||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(c.flags|=4194308)):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=v,c.memoizedState=Ee),A.props=v,A.state=Ee,A.context=V,v=le):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),v=false);}else {A=c.stateNode,US(s,c),V=c.memoizedProps,Be=Mc(h,V),A.props=Be,Ve=c.pendingProps,Re=A.context,Ee=h.contextType,le=Yu,typeof Ee=="object"&&Ee!==null&&(le=Kr(Ee)),Z=h.getDerivedStateFromProps,(Ee=typeof Z=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(V!==Ve||Re!==le)&&pP(c,A,v,le),el=false,Re=c.memoizedState,A.state=Re,Em(c,v,A,M),$m();var Pe=c.memoizedState;V!==Ve||Re!==Pe||el||s!==null&&s.dependencies!==null&&Zg(s.dependencies)?(typeof Z=="function"&&(mC(c,h,Z,v),Pe=c.memoizedState),(Be=el||hP(c,h,Be,v,Re,Pe,le)||s!==null&&s.dependencies!==null&&Zg(s.dependencies))?(Ee||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(v,Pe,le),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(v,Pe,le)),typeof A.componentDidUpdate=="function"&&(c.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof A.componentDidUpdate!="function"||V===s.memoizedProps&&Re===s.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||V===s.memoizedProps&&Re===s.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=Pe),A.props=v,A.state=Pe,A.context=le,v=Be):(typeof A.componentDidUpdate!="function"||V===s.memoizedProps&&Re===s.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||V===s.memoizedProps&&Re===s.memoizedState||(c.flags|=1024),v=false);}return A=v,vv(s,c),v=(c.flags&128)!==0,A||v?(A=c.stateNode,h=v&&typeof h.getDerivedStateFromError!="function"?null:A.render(),c.flags|=1,s!==null&&v?(c.child=$c(c,s.child,null,M),c.child=$c(c,null,h,M)):Yr(s,c,h,M),c.memoizedState=A.state,s=c.child):s=cs(s,c,M),s}function NP(s,c,h,v){return bc(),c.flags|=256,Yr(s,c,h,v),c.child}var bC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yC(s){return {baseLanes:s,cachePool:yN()}}function SC(s,c,h){return s=s!==null?s.childLanes&~h:0,c&&(s|=si),s}function PP(s,c,h){var v=c.pendingProps,M=false,A=(c.flags&128)!==0,V;if((V=A)||(V=s!==null&&s.memoizedState===null?false:(dr.current&2)!==0),V&&(M=true,c.flags&=-129),V=(c.flags&32)!==0,c.flags&=-33,s===null){if(hn){if(M?rl(c):ol(),(s=qn)?(s=k4(s,Ii),s=s!==null&&s.data!=="&"?s:null,s!==null&&(c.memoizedState={dehydrated:s,treeContext:Xs!==null?{id:Ta,overflow:Aa}:null,retryLane:536870912,hydrationErrors:null},h=uN(s),h.return=c,c.child=h,Gr=c,qn=null)):s=null,s===null)throw Zs(c);return nx(s)?c.lanes=32:c.lanes=536870912,null}var Z=v.children;return v=v.fallback,M?(ol(),M=c.mode,Z=bv({mode:"hidden",children:Z},M),v=vc(v,M,h,null),Z.return=c,v.return=c,Z.sibling=v,c.child=Z,v=c.child,v.memoizedState=yC(h),v.childLanes=SC(s,V,h),c.memoizedState=bC,Nm(null,v)):(rl(c),CC(c,Z))}var le=s.memoizedState;if(le!==null&&(Z=le.dehydrated,Z!==null)){if(A)c.flags&256?(rl(c),c.flags&=-257,c=xC(s,c,h)):c.memoizedState!==null?(ol(),c.child=s.child,c.flags|=128,c=null):(ol(),Z=v.fallback,M=c.mode,v=bv({mode:"visible",children:v.children},M),Z=vc(Z,M,h,null),Z.flags|=2,v.return=c,Z.return=c,v.sibling=Z,c.child=v,$c(c,s.child,null,h),v=c.child,v.memoizedState=yC(h),v.childLanes=SC(s,V,h),c.memoizedState=bC,c=Nm(null,v));else if(rl(c),nx(Z)){if(V=Z.nextSibling&&Z.nextSibling.dataset,V)var Ee=V.dgst;V=Ee,v=Error(r(419)),v.stack="",v.digest=V,bm({value:v,source:null,stack:null}),c=xC(s,c,h);}else if(br||Ju(s,c,h,false),V=(h&s.childLanes)!==0,br||V){if(V=Fn,V!==null&&(v=ze(V,h),v!==0&&v!==le.retryLane))throw le.retryLane=v,gc(s,v),Uo(V,s,v),gC;tx(Z)||Rv(),c=xC(s,c,h);}else tx(Z)?(c.flags|=192,c.child=s.child,c=null):(s=le.treeContext,qn=Di(Z.nextSibling),Gr=c,hn=true,Qs=null,Ii=false,s!==null&&mN(c,s),c=CC(c,v.children),c.flags|=4096);return c}return M?(ol(),Z=v.fallback,M=c.mode,le=s.child,Ee=le.sibling,v=rs(le,{mode:"hidden",children:v.children}),v.subtreeFlags=le.subtreeFlags&65011712,Ee!==null?Z=rs(Ee,Z):(Z=vc(Z,M,h,null),Z.flags|=2),Z.return=c,v.return=c,v.sibling=Z,c.child=v,Nm(null,v),v=c.child,Z=s.child.memoizedState,Z===null?Z=yC(h):(M=Z.cachePool,M!==null?(le=gr._currentValue,M=M.parent!==le?{parent:le,pool:le}:M):M=yN(),Z={baseLanes:Z.baseLanes|h,cachePool:M}),v.memoizedState=Z,v.childLanes=SC(s,V,h),c.memoizedState=bC,Nm(s.child,v)):(rl(c),h=s.child,s=h.sibling,h=rs(h,{mode:"visible",children:v.children}),h.return=c,h.sibling=null,s!==null&&(V=c.deletions,V===null?(c.deletions=[s],c.flags|=16):V.push(s)),c.child=h,c.memoizedState=null,h)}function CC(s,c){return c=bv({mode:"visible",children:c},s.mode),c.return=s,s.child=c}function bv(s,c){return s=ri(22,s,null,c),s.lanes=0,s}function xC(s,c,h){return $c(c,s.child,null,h),s=CC(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function IP(s,c,h){s.lanes|=c;var v=s.alternate;v!==null&&(v.lanes|=c),BS(s.return,c,h);}function wC(s,c,h,v,M,A){var V=s.memoizedState;V===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:M,treeForkCount:A}:(V.isBackwards=c,V.rendering=null,V.renderingStartTime=0,V.last=v,V.tail=h,V.tailMode=M,V.treeForkCount=A);}function OP(s,c,h){var v=c.pendingProps,M=v.revealOrder,A=v.tail;v=v.children;var V=dr.current,Z=(V&2)!==0;if(Z?(V=V&1|2,c.flags|=128):V&=1,K(dr,V),Yr(s,c,v,h),v=hn?vm:0,!Z&&s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&IP(s,h,c);else if(s.tag===19)IP(s,h,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return;}s.sibling.return=s.return,s=s.sibling;}switch(M){case "forwards":for(h=c.child,M=null;h!==null;)s=h.alternate,s!==null&&av(s)===null&&(M=h),h=h.sibling;h=M,h===null?(M=c.child,c.child=null):(M=h.sibling,h.sibling=null),wC(c,false,M,h,A,v);break;case "backwards":case "unstable_legacy-backwards":for(h=null,M=c.child,c.child=null;M!==null;){if(s=M.alternate,s!==null&&av(s)===null){c.child=M;break}s=M.sibling,M.sibling=h,h=M,M=s;}wC(c,true,h,null,A,v);break;case "together":wC(c,false,null,null,void 0,v);break;default:c.memoizedState=null;}return c.child}function cs(s,c,h){if(s!==null&&(c.dependencies=s.dependencies),sl|=c.lanes,(h&c.childLanes)===0)if(s!==null){if(Ju(s,c,h,false),(h&c.childLanes)===0)return null}else return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,h=rs(s,s.pendingProps),c.child=h,h.return=c;s.sibling!==null;)s=s.sibling,h=h.sibling=rs(s,s.pendingProps),h.return=c;h.sibling=null;}return c.child}function $C(s,c){return (s.lanes&c)!==0?true:(s=s.dependencies,!!(s!==null&&Zg(s)))}function UY(s,c,h){switch(c.tag){case 3:ie(c,c.stateNode.containerInfo),Js(c,gr,s.memoizedState.cache),bc();break;case 27:case 5:ne(c);break;case 4:ie(c,c.stateNode.containerInfo);break;case 10:Js(c,c.type,c.memoizedProps.value);break;case 31:if(c.memoizedState!==null)return c.flags|=128,YS(c),null;break;case 13:var v=c.memoizedState;if(v!==null)return v.dehydrated!==null?(rl(c),c.flags|=128,null):(h&c.child.childLanes)!==0?PP(s,c,h):(rl(c),s=cs(s,c,h),s!==null?s.sibling:null);rl(c);break;case 19:var M=(s.flags&128)!==0;if(v=(h&c.childLanes)!==0,v||(Ju(s,c,h,false),v=(h&c.childLanes)!==0),M){if(v)return OP(s,c,h);c.flags|=128;}if(M=c.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),K(dr,dr.current),v)break;return null;case 22:return c.lanes=0,EP(s,c,h,c.pendingProps);case 24:Js(c,gr,s.memoizedState.cache);}return cs(s,c,h)}function DP(s,c,h){if(s!==null)if(s.memoizedProps!==c.pendingProps)br=true;else {if(!$C(s,h)&&(c.flags&128)===0)return br=false,UY(s,c,h);br=(s.flags&131072)!==0;}else br=false,hn&&(c.flags&1048576)!==0&&fN(c,vm,c.index);switch(c.lanes=0,c.tag){case 16:e:{var v=c.pendingProps;if(s=xc(c.elementType),c.type=s,typeof s=="function")AS(s)?(v=Mc(s,v),c.tag=1,c=AP(null,c,s,v,h)):(c.tag=0,c=vC(null,c,s,v,h));else {if(s!=null){var M=s.$$typeof;if(M===T){c.tag=11,c=xP(null,c,s,v,h);break e}else if(M===N){c.tag=14,c=wP(null,c,s,v,h);break e}}throw c=q(s)||s,Error(r(306,c,""))}}return c;case 0:return vC(s,c,c.type,c.pendingProps,h);case 1:return v=c.type,M=Mc(v,c.pendingProps),AP(s,c,v,M,h);case 3:e:{if(ie(c,c.stateNode.containerInfo),s===null)throw Error(r(387));v=c.pendingProps;var A=c.memoizedState;M=A.element,US(s,c),Em(c,v,null,h);var V=c.memoizedState;if(v=V.cache,Js(c,gr,v),v!==A.cache&&zS(c,[gr],h,true),$m(),v=V.element,A.isDehydrated)if(A={element:v,isDehydrated:false,cache:V.cache},c.updateQueue.baseState=A,c.memoizedState=A,c.flags&256){c=NP(s,c,v,h);break e}else if(v!==M){M=Ai(Error(r(424)),c),bm(M),c=NP(s,c,v,h);break e}else for(s=c.stateNode.containerInfo,s.nodeType===9?s=s.body:s=s.nodeName==="HTML"?s.ownerDocument.body:s,qn=Di(s.firstChild),Gr=c,hn=true,Qs=null,Ii=true,h=EN(c,null,v,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else {if(bc(),v===M){c=cs(s,c,h);break e}Yr(s,c,v,h);}c=c.child;}return c;case 26:return vv(s,c),s===null?(h=W4(c.type,null,c.pendingProps,null))?c.memoizedState=h:hn||(h=c.type,s=c.pendingProps,v=Dv(te.current).createElement(h),v[At]=c,v[yn]=s,Xr(v,h,s),Sn(v),c.stateNode=v):c.memoizedState=W4(c.type,s.memoizedProps,c.pendingProps,s.memoizedState),null;case 27:return ne(c),s===null&&hn&&(v=c.stateNode=V4(c.type,c.pendingProps,te.current),Gr=c,Ii=true,M=qn,fl(c.type)?(rx=M,qn=Di(v.firstChild)):qn=M),Yr(s,c,c.pendingProps.children,h),vv(s,c),s===null&&(c.flags|=4194304),c.child;case 5:return s===null&&hn&&((M=v=qn)&&(v=SX(v,c.type,c.pendingProps,Ii),v!==null?(c.stateNode=v,Gr=c,qn=Di(v.firstChild),Ii=false,M=true):M=false),M||Zs(c)),ne(c),M=c.type,A=c.pendingProps,V=s!==null?s.memoizedProps:null,v=A.children,ZC(M,A)?v=null:V!==null&&ZC(M,V)&&(c.flags|=32),c.memoizedState!==null&&(M=QS(s,c,_Y,null,null,h),Wm._currentValue=M),vv(s,c),Yr(s,c,v,h),c.child;case 6:return s===null&&hn&&((s=h=qn)&&(h=CX(h,c.pendingProps,Ii),h!==null?(c.stateNode=h,Gr=c,qn=null,s=true):s=false),s||Zs(c)),null;case 13:return PP(s,c,h);case 4:return ie(c,c.stateNode.containerInfo),v=c.pendingProps,s===null?c.child=$c(c,null,v,h):Yr(s,c,v,h),c.child;case 11:return xP(s,c,c.type,c.pendingProps,h);case 7:return Yr(s,c,c.pendingProps,h),c.child;case 8:return Yr(s,c,c.pendingProps.children,h),c.child;case 12:return Yr(s,c,c.pendingProps.children,h),c.child;case 10:return v=c.pendingProps,Js(c,c.type,v.value),Yr(s,c,v.children,h),c.child;case 9:return M=c.type._context,v=c.pendingProps.children,Sc(c),M=Kr(M),v=v(M),c.flags|=1,Yr(s,c,v,h),c.child;case 14:return wP(s,c,c.type,c.pendingProps,h);case 15:return $P(s,c,c.type,c.pendingProps,h);case 19:return OP(s,c,h);case 31:return jY(s,c,h);case 22:return EP(s,c,h,c.pendingProps);case 24:return Sc(c),v=Kr(gr),s===null?(M=HS(),M===null&&(M=Fn,A=kS(),M.pooledCache=A,A.refCount++,A!==null&&(M.pooledCacheLanes|=h),M=A),c.memoizedState={parent:v,cache:M},jS(c),Js(c,gr,M)):((s.lanes&h)!==0&&(US(s,c),Em(c,null,null,h),$m()),M=s.memoizedState,A=c.memoizedState,M.parent!==v?(M={parent:v,cache:v},c.memoizedState=M,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=M),Js(c,gr,v)):(v=A.cache,Js(c,gr,v),v!==M.cache&&zS(c,[gr],h,true))),Yr(s,c,c.pendingProps.children,h),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function us(s){s.flags|=4;}function EC(s,c,h,v,M){if((c=(s.mode&32)!==0)&&(c=false),c){if(s.flags|=16777216,(M&335544128)===M)if(s.stateNode.complete)s.flags|=8192;else if(s4())s.flags|=8192;else throw wc=nv,VS}else s.flags&=-16777217;}function _P(s,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!X4(c))if(s4())s.flags|=8192;else throw wc=nv,VS}function yv(s,c){c!==null&&(s.flags|=4),s.flags&16384&&(c=s.tag!==22?Se():536870912,s.lanes|=c,dd|=c);}function Pm(s,c){if(!hn)switch(s.tailMode){case "hidden":c=s.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?s.tail=null:h.sibling=null;break;case "collapsed":h=s.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:v.sibling=null;}}function Gn(s){var c=s.alternate!==null&&s.alternate.child===s.child,h=0,v=0;if(c)for(var M=s.child;M!==null;)h|=M.lanes|M.childLanes,v|=M.subtreeFlags&65011712,v|=M.flags&65011712,M.return=s,M=M.sibling;else for(M=s.child;M!==null;)h|=M.lanes|M.childLanes,v|=M.subtreeFlags,v|=M.flags,M.return=s,M=M.sibling;return s.subtreeFlags|=v,s.childLanes=h,c}function WY(s,c,h){var v=c.pendingProps;switch(OS(c),c.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gn(c),null;case 1:return Gn(c),null;case 3:return h=c.stateNode,v=null,s!==null&&(v=s.memoizedState.cache),c.memoizedState.cache!==v&&(c.flags|=2048),as(gr),ue(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(s===null||s.child===null)&&(Zu(c)?us(c):s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,_S())),Gn(c),null;case 26:var M=c.type,A=c.memoizedState;return s===null?(us(c),A!==null?(Gn(c),_P(c,A)):(Gn(c),EC(c,M,null,v,h))):A?A!==s.memoizedState?(us(c),Gn(c),_P(c,A)):(Gn(c),c.flags&=-16777217):(s=s.memoizedProps,s!==v&&us(c),Gn(c),EC(c,M,s,v,h)),null;case 27:if(ce(c),h=te.current,M=c.type,s!==null&&c.stateNode!=null)s.memoizedProps!==v&&us(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return Gn(c),null}s=J.current,Zu(c)?hN(c):(s=V4(M,v,h),c.stateNode=s,us(c));}return Gn(c),null;case 5:if(ce(c),M=c.type,s!==null&&c.stateNode!=null)s.memoizedProps!==v&&us(c);else {if(!v){if(c.stateNode===null)throw Error(r(166));return Gn(c),null}if(A=J.current,Zu(c))hN(c);else {var V=Dv(te.current);switch(A){case 1:A=V.createElementNS("http://www.w3.org/2000/svg",M);break;case 2:A=V.createElementNS("http://www.w3.org/1998/Math/MathML",M);break;default:switch(M){case "svg":A=V.createElementNS("http://www.w3.org/2000/svg",M);break;case "math":A=V.createElementNS("http://www.w3.org/1998/Math/MathML",M);break;case "script":A=V.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case "select":A=typeof v.is=="string"?V.createElement("select",{is:v.is}):V.createElement("select"),v.multiple?A.multiple=true:v.size&&(A.size=v.size);break;default:A=typeof v.is=="string"?V.createElement(M,{is:v.is}):V.createElement(M);}}A[At]=c,A[yn]=v;e:for(V=c.child;V!==null;){if(V.tag===5||V.tag===6)A.appendChild(V.stateNode);else if(V.tag!==4&&V.tag!==27&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===c)break e;for(;V.sibling===null;){if(V.return===null||V.return===c)break e;V=V.return;}V.sibling.return=V.return,V=V.sibling;}c.stateNode=A;e:switch(Xr(A,M,v),M){case "button":case "input":case "select":case "textarea":v=!!v.autoFocus;break e;case "img":v=true;break e;default:v=false;}v&&us(c);}}return Gn(c),EC(c,c.type,s===null?null:s.memoizedProps,c.pendingProps,h),null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==v&&us(c);else {if(typeof v!="string"&&c.stateNode===null)throw Error(r(166));if(s=te.current,Zu(c)){if(s=c.stateNode,h=c.memoizedProps,v=null,M=Gr,M!==null)switch(M.tag){case 27:case 5:v=M.memoizedProps;}s[At]=c,s=!!(s.nodeValue===h||v!==null&&v.suppressHydrationWarning===true||P4(s.nodeValue,h)),s||Zs(c,true);}else s=Dv(s).createTextNode(v),s[At]=c,c.stateNode=s;}return Gn(c),null;case 31:if(h=c.memoizedState,s===null||s.memoizedState!==null){if(v=Zu(c),h!==null){if(s===null){if(!v)throw Error(r(318));if(s=c.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[At]=c;}else bc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Gn(c),s=false;}else h=_S(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=h),s=true;if(!s)return c.flags&256?(ii(c),c):(ii(c),null);if((c.flags&128)!==0)throw Error(r(558))}return Gn(c),null;case 13:if(v=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(M=Zu(c),v!==null&&v.dehydrated!==null){if(s===null){if(!M)throw Error(r(318));if(M=c.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[At]=c;}else bc(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Gn(c),M=false;}else M=_S(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=M),M=true;if(!M)return c.flags&256?(ii(c),c):(ii(c),null)}return ii(c),(c.flags&128)!==0?(c.lanes=h,c):(h=v!==null,s=s!==null&&s.memoizedState!==null,h&&(v=c.child,M=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(M=v.alternate.memoizedState.cachePool.pool),A=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(A=v.memoizedState.cachePool.pool),A!==M&&(v.flags|=2048)),h!==s&&h&&(c.child.flags|=8192),yv(c,c.updateQueue),Gn(c),null);case 4:return ue(),s===null&&GC(c.stateNode.containerInfo),Gn(c),null;case 10:return as(c.type),Gn(c),null;case 19:if(B(dr),v=c.memoizedState,v===null)return Gn(c),null;if(M=(c.flags&128)!==0,A=v.rendering,A===null)if(M)Pm(v,false);else {if(ir!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(A=av(s),A!==null){for(c.flags|=128,Pm(v,false),s=A.updateQueue,c.updateQueue=s,yv(c,s),c.subtreeFlags=0,s=h,h=c.child;h!==null;)cN(h,s),h=h.sibling;return K(dr,dr.current&1|2),hn&&os(c,v.treeForkCount),c.child}s=s.sibling;}v.tail!==null&&Ne()>$v&&(c.flags|=128,M=true,Pm(v,false),c.lanes=4194304);}else {if(!M)if(s=av(A),s!==null){if(c.flags|=128,M=true,s=s.updateQueue,c.updateQueue=s,yv(c,s),Pm(v,true),v.tail===null&&v.tailMode==="hidden"&&!A.alternate&&!hn)return Gn(c),null}else 2*Ne()-v.renderingStartTime>$v&&h!==536870912&&(c.flags|=128,M=true,Pm(v,false),c.lanes=4194304);v.isBackwards?(A.sibling=c.child,c.child=A):(s=v.last,s!==null?s.sibling=A:c.child=A,v.last=A);}return v.tail!==null?(s=v.tail,v.rendering=s,v.tail=s.sibling,v.renderingStartTime=Ne(),s.sibling=null,h=dr.current,K(dr,M?h&1|2:h&1),hn&&os(c,v.treeForkCount),s):(Gn(c),null);case 22:case 23:return ii(c),KS(),v=c.memoizedState!==null,s!==null?s.memoizedState!==null!==v&&(c.flags|=8192):v&&(c.flags|=8192),v?(h&536870912)!==0&&(c.flags&128)===0&&(Gn(c),c.subtreeFlags&6&&(c.flags|=8192)):Gn(c),h=c.updateQueue,h!==null&&yv(c,h.retryQueue),h=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==h&&(c.flags|=2048),s!==null&&B(Cc),null;case 24:return h=null,s!==null&&(h=s.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),as(gr),Gn(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function qY(s,c){switch(OS(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return as(gr),ue(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return ce(c),null;case 31:if(c.memoizedState!==null){if(ii(c),c.alternate===null)throw Error(r(340));bc();}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 13:if(ii(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));bc();}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return B(dr),null;case 4:return ue(),null;case 10:return as(c.type),null;case 22:case 23:return ii(c),KS(),s!==null&&B(Cc),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return as(gr),null;case 25:return null;default:return null}}function LP(s,c){switch(OS(c),c.tag){case 3:as(gr),ue();break;case 26:case 27:case 5:ce(c);break;case 4:ue();break;case 31:c.memoizedState!==null&&ii(c);break;case 13:ii(c);break;case 19:B(dr);break;case 10:as(c.type);break;case 22:case 23:ii(c),KS(),s!==null&&B(Cc);break;case 24:as(gr);}}function Im(s,c){try{var h=c.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var M=v.next;h=M;do{if((h.tag&s)===s){v=void 0;var A=h.create,V=h.inst;v=A(),V.destroy=v;}h=h.next;}while(h!==M)}}catch(Z){In(c,c.return,Z);}}function il(s,c,h){try{var v=c.updateQueue,M=v!==null?v.lastEffect:null;if(M!==null){var A=M.next;v=A;do{if((v.tag&s)===s){var V=v.inst,Z=V.destroy;if(Z!==void 0){V.destroy=void 0,M=c;var le=h,Ee=Z;try{Ee();}catch(Be){In(M,le,Be);}}}v=v.next;}while(v!==A)}}catch(Be){In(c,c.return,Be);}}function BP(s){var c=s.updateQueue;if(c!==null){var h=s.stateNode;try{RN(c,h);}catch(v){In(s,s.return,v);}}}function zP(s,c,h){h.props=Mc(s.type,s.memoizedProps),h.state=s.memoizedState;try{h.componentWillUnmount();}catch(v){In(s,c,v);}}function Om(s,c){try{var h=s.ref;if(h!==null){switch(s.tag){case 26:case 27:case 5:var v=s.stateNode;break;case 30:v=s.stateNode;break;default:v=s.stateNode;}typeof h=="function"?s.refCleanup=h(v):h.current=v;}}catch(M){In(s,c,M);}}function Na(s,c){var h=s.ref,v=s.refCleanup;if(h!==null)if(typeof v=="function")try{v();}catch(M){In(s,c,M);}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null);}else if(typeof h=="function")try{h(null);}catch(M){In(s,c,M);}else h.current=null;}function kP(s){var c=s.type,h=s.memoizedProps,v=s.stateNode;try{e:switch(c){case "button":case "input":case "select":case "textarea":h.autoFocus&&v.focus();break e;case "img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet);}}catch(M){In(s,s.return,M);}}function MC(s,c,h){try{var v=s.stateNode;hX(v,s.type,h,c),v[yn]=c;}catch(M){In(s,s.return,M);}}function FP(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&fl(s.type)||s.tag===4}function RC(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||FP(s.return))return null;s=s.return;}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&fl(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child;}if(!(s.flags&2))return s.stateNode}}function TC(s,c,h){var v=s.tag;if(v===5||v===6)s=s.stateNode,c?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(s,c):(c=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,c.appendChild(s),h=h._reactRootContainer,h!=null||c.onclick!==null||(c.onclick=ts));else if(v!==4&&(v===27&&fl(s.type)&&(h=s.stateNode,c=null),s=s.child,s!==null))for(TC(s,c,h),s=s.sibling;s!==null;)TC(s,c,h),s=s.sibling;}function Sv(s,c,h){var v=s.tag;if(v===5||v===6)s=s.stateNode,c?h.insertBefore(s,c):h.appendChild(s);else if(v!==4&&(v===27&&fl(s.type)&&(h=s.stateNode),s=s.child,s!==null))for(Sv(s,c,h),s=s.sibling;s!==null;)Sv(s,c,h),s=s.sibling;}function HP(s){var c=s.stateNode,h=s.memoizedProps;try{for(var v=s.type,M=c.attributes;M.length;)c.removeAttributeNode(M[0]);Xr(c,v,h),c[At]=s,c[yn]=h;}catch(A){In(s,s.return,A);}}var ds=false,yr=false,AC=false,VP=typeof WeakSet=="function"?WeakSet:Set,Lr=null;function GY(s,c){if(s=s.containerInfo,XC=Hv,s=eN(s),xS(s)){if("selectionStart"in s)var h={start:s.selectionStart,end:s.selectionEnd};else e:{h=(h=s.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var M=v.anchorOffset,A=v.focusNode;v=v.focusOffset;try{h.nodeType,A.nodeType;}catch{h=null;break e}var V=0,Z=-1,le=-1,Ee=0,Be=0,Ve=s,Re=null;t:for(;;){for(var Pe;Ve!==h||M!==0&&Ve.nodeType!==3||(Z=V+M),Ve!==A||v!==0&&Ve.nodeType!==3||(le=V+v),Ve.nodeType===3&&(V+=Ve.nodeValue.length),(Pe=Ve.firstChild)!==null;)Re=Ve,Ve=Pe;for(;;){if(Ve===s)break t;if(Re===h&&++Ee===M&&(Z=V),Re===A&&++Be===v&&(le=V),(Pe=Ve.nextSibling)!==null)break;Ve=Re,Re=Ve.parentNode;}Ve=Pe;}h=Z===-1||le===-1?null:{start:Z,end:le};}else h=null;}h=h||{start:0,end:0};}else h=null;for(QC={focusedElem:s,selectionRange:h},Hv=false,Lr=c;Lr!==null;)if(c=Lr,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Lr=s;else for(;Lr!==null;){switch(c=Lr,A=c.alternate,s=c.flags,c.tag){case 0:if((s&4)!==0&&(s=c.updateQueue,s=s!==null?s.events:null,s!==null))for(h=0;h<s.length;h++)M=s[h],M.ref.impl=M.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&A!==null){s=void 0,h=c,M=A.memoizedProps,A=A.memoizedState,v=h.stateNode;try{var gt=Mc(h.type,M);s=v.getSnapshotBeforeUpdate(gt,A),v.__reactInternalSnapshotBeforeUpdate=s;}catch(Pt){In(h,h.return,Pt);}}break;case 3:if((s&1024)!==0){if(s=c.stateNode.containerInfo,h=s.nodeType,h===9)ex(s);else if(h===1)switch(s.nodeName){case "HEAD":case "HTML":case "BODY":ex(s);break;default:s.textContent="";}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=c.sibling,s!==null){s.return=c.return,Lr=s;break}Lr=c.return;}}function jP(s,c,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:ms(s,h),v&4&&Im(5,h);break;case 1:if(ms(s,h),v&4)if(s=h.stateNode,c===null)try{s.componentDidMount();}catch(V){In(h,h.return,V);}else {var M=Mc(h.type,c.memoizedProps);c=c.memoizedState;try{s.componentDidUpdate(M,c,s.__reactInternalSnapshotBeforeUpdate);}catch(V){In(h,h.return,V);}}v&64&&BP(h),v&512&&Om(h,h.return);break;case 3:if(ms(s,h),v&64&&(s=h.updateQueue,s!==null)){if(c=null,h.child!==null)switch(h.child.tag){case 27:case 5:c=h.child.stateNode;break;case 1:c=h.child.stateNode;}try{RN(s,c);}catch(V){In(h,h.return,V);}}break;case 27:c===null&&v&4&&HP(h);case 26:case 5:ms(s,h),c===null&&v&4&&kP(h),v&512&&Om(h,h.return);break;case 12:ms(s,h);break;case 31:ms(s,h),v&4&&qP(s,h);break;case 13:ms(s,h),v&4&&GP(s,h),v&64&&(s=h.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(h=nX.bind(null,h),xX(s,h))));break;case 22:if(v=h.memoizedState!==null||ds,!v){c=c!==null&&c.memoizedState!==null||yr,M=ds;var A=yr;ds=v,(yr=c)&&!A?hs(s,h,(h.subtreeFlags&8772)!==0):ms(s,h),ds=M,yr=A;}break;case 30:break;default:ms(s,h);}}function UP(s){var c=s.alternate;c!==null&&(s.alternate=null,UP(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&Wt(c)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null;}var Zn=null,Fo=false;function fs(s,c,h){for(h=h.child;h!==null;)WP(s,c,h),h=h.sibling;}function WP(s,c,h){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(Je,h);}catch{}switch(h.tag){case 26:yr||Na(h,c),fs(s,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:yr||Na(h,c);var v=Zn,M=Fo;fl(h.type)&&(Zn=h.stateNode,Fo=false),fs(s,c,h),Vm(h.stateNode),Zn=v,Fo=M;break;case 5:yr||Na(h,c);case 6:if(v=Zn,M=Fo,Zn=null,fs(s,c,h),Zn=v,Fo=M,Zn!==null)if(Fo)try{(Zn.nodeType===9?Zn.body:Zn.nodeName==="HTML"?Zn.ownerDocument.body:Zn).removeChild(h.stateNode);}catch(A){In(h,c,A);}else try{Zn.removeChild(h.stateNode);}catch(A){In(h,c,A);}break;case 18:Zn!==null&&(Fo?(s=Zn,B4(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,h.stateNode),yd(s)):B4(Zn,h.stateNode));break;case 4:v=Zn,M=Fo,Zn=h.stateNode.containerInfo,Fo=true,fs(s,c,h),Zn=v,Fo=M;break;case 0:case 11:case 14:case 15:il(2,h,c),yr||il(4,h,c),fs(s,c,h);break;case 1:yr||(Na(h,c),v=h.stateNode,typeof v.componentWillUnmount=="function"&&zP(h,c,v)),fs(s,c,h);break;case 21:fs(s,c,h);break;case 22:yr=(v=yr)||h.memoizedState!==null,fs(s,c,h),yr=v;break;default:fs(s,c,h);}}function qP(s,c){if(c.memoizedState===null&&(s=c.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{yd(s);}catch(h){In(c,c.return,h);}}}function GP(s,c){if(c.memoizedState===null&&(s=c.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{yd(s);}catch(h){In(c,c.return,h);}}function KY(s){switch(s.tag){case 31:case 13:case 19:var c=s.stateNode;return c===null&&(c=s.stateNode=new VP),c;case 22:return s=s.stateNode,c=s._retryCache,c===null&&(c=s._retryCache=new VP),c;default:throw Error(r(435,s.tag))}}function Cv(s,c){var h=KY(s);c.forEach(function(v){if(!h.has(v)){h.add(v);var M=rX.bind(null,s,v);v.then(M,M);}});}function Ho(s,c){var h=c.deletions;if(h!==null)for(var v=0;v<h.length;v++){var M=h[v],A=s,V=c,Z=V;e:for(;Z!==null;){switch(Z.tag){case 27:if(fl(Z.type)){Zn=Z.stateNode,Fo=false;break e}break;case 5:Zn=Z.stateNode,Fo=false;break e;case 3:case 4:Zn=Z.stateNode.containerInfo,Fo=true;break e}Z=Z.return;}if(Zn===null)throw Error(r(160));WP(A,V,M),Zn=null,Fo=false,A=M.alternate,A!==null&&(A.return=null),M.return=null;}if(c.subtreeFlags&13886)for(c=c.child;c!==null;)KP(c,s),c=c.sibling;}var Ji=null;function KP(s,c){var h=s.alternate,v=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Ho(c,s),Vo(s),v&4&&(il(3,s,s.return),Im(3,s),il(5,s,s.return));break;case 1:Ho(c,s),Vo(s),v&512&&(yr||h===null||Na(h,h.return)),v&64&&ds&&(s=s.updateQueue,s!==null&&(v=s.callbacks,v!==null&&(h=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=h===null?v:h.concat(v))));break;case 26:var M=Ji;if(Ho(c,s),Vo(s),v&512&&(yr||h===null||Na(h,h.return)),v&4){var A=h!==null?h.memoizedState:null;if(v=s.memoizedState,h===null)if(v===null)if(s.stateNode===null){e:{v=s.type,h=s.memoizedProps,M=M.ownerDocument||M;t:switch(v){case "title":A=M.getElementsByTagName("title")[0],(!A||A[Nt]||A[At]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=M.createElement(v),M.head.insertBefore(A,M.querySelector("head > title"))),Xr(A,v,h),A[At]=s,Sn(A),v=A;break e;case "link":var V=K4("link","href",M).get(v+(h.href||""));if(V){for(var Z=0;Z<V.length;Z++)if(A=V[Z],A.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&A.getAttribute("rel")===(h.rel==null?null:h.rel)&&A.getAttribute("title")===(h.title==null?null:h.title)&&A.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){V.splice(Z,1);break t}}A=M.createElement(v),Xr(A,v,h),M.head.appendChild(A);break;case "meta":if(V=K4("meta","content",M).get(v+(h.content||""))){for(Z=0;Z<V.length;Z++)if(A=V[Z],A.getAttribute("content")===(h.content==null?null:""+h.content)&&A.getAttribute("name")===(h.name==null?null:h.name)&&A.getAttribute("property")===(h.property==null?null:h.property)&&A.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&A.getAttribute("charset")===(h.charSet==null?null:h.charSet)){V.splice(Z,1);break t}}A=M.createElement(v),Xr(A,v,h),M.head.appendChild(A);break;default:throw Error(r(468,v))}A[At]=s,Sn(A),v=A;}s.stateNode=v;}else Y4(M,s.type,s.stateNode);else s.stateNode=G4(M,v,s.memoizedProps);else A!==v?(A===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):A.count--,v===null?Y4(M,s.type,s.stateNode):G4(M,v,s.memoizedProps)):v===null&&s.stateNode!==null&&MC(s,s.memoizedProps,h.memoizedProps);}break;case 27:Ho(c,s),Vo(s),v&512&&(yr||h===null||Na(h,h.return)),h!==null&&v&4&&MC(s,s.memoizedProps,h.memoizedProps);break;case 5:if(Ho(c,s),Vo(s),v&512&&(yr||h===null||Na(h,h.return)),s.flags&32){M=s.stateNode;try{Vu(M,"");}catch(gt){In(s,s.return,gt);}}v&4&&s.stateNode!=null&&(M=s.memoizedProps,MC(s,M,h!==null?h.memoizedProps:M)),v&1024&&(AC=true);break;case 6:if(Ho(c,s),Vo(s),v&4){if(s.stateNode===null)throw Error(r(162));v=s.memoizedProps,h=s.stateNode;try{h.nodeValue=v;}catch(gt){In(s,s.return,gt);}}break;case 3:if(Bv=null,M=Ji,Ji=_v(c.containerInfo),Ho(c,s),Ji=M,Vo(s),v&4&&h!==null&&h.memoizedState.isDehydrated)try{yd(c.containerInfo);}catch(gt){In(s,s.return,gt);}AC&&(AC=false,YP(s));break;case 4:v=Ji,Ji=_v(s.stateNode.containerInfo),Ho(c,s),Vo(s),Ji=v;break;case 12:Ho(c,s),Vo(s);break;case 31:Ho(c,s),Vo(s),v&4&&(v=s.updateQueue,v!==null&&(s.updateQueue=null,Cv(s,v)));break;case 13:Ho(c,s),Vo(s),s.child.flags&8192&&s.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(wv=Ne()),v&4&&(v=s.updateQueue,v!==null&&(s.updateQueue=null,Cv(s,v)));break;case 22:M=s.memoizedState!==null;var le=h!==null&&h.memoizedState!==null,Ee=ds,Be=yr;if(ds=Ee||M,yr=Be||le,Ho(c,s),yr=Be,ds=Ee,Vo(s),v&8192)e:for(c=s.stateNode,c._visibility=M?c._visibility&-2:c._visibility|1,M&&(h===null||le||ds||yr||Rc(s)),h=null,c=s;;){if(c.tag===5||c.tag===26){if(h===null){le=h=c;try{if(A=le.stateNode,M)V=A.style,typeof V.setProperty=="function"?V.setProperty("display","none","important"):V.display="none";else {Z=le.stateNode;var Ve=le.memoizedProps.style,Re=Ve!=null&&Ve.hasOwnProperty("display")?Ve.display:null;Z.style.display=Re==null||typeof Re=="boolean"?"":(""+Re).trim();}}catch(gt){In(le,le.return,gt);}}}else if(c.tag===6){if(h===null){le=c;try{le.stateNode.nodeValue=M?"":le.memoizedProps;}catch(gt){In(le,le.return,gt);}}}else if(c.tag===18){if(h===null){le=c;try{var Pe=le.stateNode;M?z4(Pe,!0):z4(le.stateNode,!1);}catch(gt){In(le,le.return,gt);}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===s)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;h===c&&(h=null),c=c.return;}h===c&&(h=null),c.sibling.return=c.return,c=c.sibling;}v&4&&(v=s.updateQueue,v!==null&&(h=v.retryQueue,h!==null&&(v.retryQueue=null,Cv(s,h))));break;case 19:Ho(c,s),Vo(s),v&4&&(v=s.updateQueue,v!==null&&(s.updateQueue=null,Cv(s,v)));break;case 30:break;case 21:break;default:Ho(c,s),Vo(s);}}function Vo(s){var c=s.flags;if(c&2){try{for(var h,v=s.return;v!==null;){if(FP(v)){h=v;break}v=v.return;}if(h==null)throw Error(r(160));switch(h.tag){case 27:var M=h.stateNode,A=RC(s);Sv(s,A,M);break;case 5:var V=h.stateNode;h.flags&32&&(Vu(V,""),h.flags&=-33);var Z=RC(s);Sv(s,Z,V);break;case 3:case 4:var le=h.stateNode.containerInfo,Ee=RC(s);TC(s,Ee,le);break;default:throw Error(r(161))}}catch(Be){In(s,s.return,Be);}s.flags&=-3;}c&4096&&(s.flags&=-4097);}function YP(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var c=s;YP(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),s=s.sibling;}}function ms(s,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)jP(s,c.alternate,c),c=c.sibling;}function Rc(s){for(s=s.child;s!==null;){var c=s;switch(c.tag){case 0:case 11:case 14:case 15:il(4,c,c.return),Rc(c);break;case 1:Na(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&zP(c,c.return,h),Rc(c);break;case 27:Vm(c.stateNode);case 26:case 5:Na(c,c.return),Rc(c);break;case 22:c.memoizedState===null&&Rc(c);break;case 30:Rc(c);break;default:Rc(c);}s=s.sibling;}}function hs(s,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var v=c.alternate,M=s,A=c,V=A.flags;switch(A.tag){case 0:case 11:case 15:hs(M,A,h),Im(4,A);break;case 1:if(hs(M,A,h),v=A,M=v.stateNode,typeof M.componentDidMount=="function")try{M.componentDidMount();}catch(Ee){In(v,v.return,Ee);}if(v=A,M=v.updateQueue,M!==null){var Z=v.stateNode;try{var le=M.shared.hiddenCallbacks;if(le!==null)for(M.shared.hiddenCallbacks=null,M=0;M<le.length;M++)MN(le[M],Z);}catch(Ee){In(v,v.return,Ee);}}h&&V&64&&BP(A),Om(A,A.return);break;case 27:HP(A);case 26:case 5:hs(M,A,h),h&&v===null&&V&4&&kP(A),Om(A,A.return);break;case 12:hs(M,A,h);break;case 31:hs(M,A,h),h&&V&4&&qP(M,A);break;case 13:hs(M,A,h),h&&V&4&&GP(M,A);break;case 22:A.memoizedState===null&&hs(M,A,h),Om(A,A.return);break;case 30:break;default:hs(M,A,h);}c=c.sibling;}}function NC(s,c){var h=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),s=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(s=c.memoizedState.cachePool.pool),s!==h&&(s!=null&&s.refCount++,h!=null&&ym(h));}function PC(s,c){s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&ym(s));}function ea(s,c,h,v){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)XP(s,c,h,v),c=c.sibling;}function XP(s,c,h,v){var M=c.flags;switch(c.tag){case 0:case 11:case 15:ea(s,c,h,v),M&2048&&Im(9,c);break;case 1:ea(s,c,h,v);break;case 3:ea(s,c,h,v),M&2048&&(s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&ym(s)));break;case 12:if(M&2048){ea(s,c,h,v),s=c.stateNode;try{var A=c.memoizedProps,V=A.id,Z=A.onPostCommit;typeof Z=="function"&&Z(V,c.alternate===null?"mount":"update",s.passiveEffectDuration,-0);}catch(le){In(c,c.return,le);}}else ea(s,c,h,v);break;case 31:ea(s,c,h,v);break;case 13:ea(s,c,h,v);break;case 23:break;case 22:A=c.stateNode,V=c.alternate,c.memoizedState!==null?A._visibility&2?ea(s,c,h,v):Dm(s,c):A._visibility&2?ea(s,c,h,v):(A._visibility|=2,ld(s,c,h,v,(c.subtreeFlags&10256)!==0||false)),M&2048&&NC(V,c);break;case 24:ea(s,c,h,v),M&2048&&PC(c.alternate,c);break;default:ea(s,c,h,v);}}function ld(s,c,h,v,M){for(M=M&&((c.subtreeFlags&10256)!==0||false),c=c.child;c!==null;){var A=s,V=c,Z=h,le=v,Ee=V.flags;switch(V.tag){case 0:case 11:case 15:ld(A,V,Z,le,M),Im(8,V);break;case 23:break;case 22:var Be=V.stateNode;V.memoizedState!==null?Be._visibility&2?ld(A,V,Z,le,M):Dm(A,V):(Be._visibility|=2,ld(A,V,Z,le,M)),M&&Ee&2048&&NC(V.alternate,V);break;case 24:ld(A,V,Z,le,M),M&&Ee&2048&&PC(V.alternate,V);break;default:ld(A,V,Z,le,M);}c=c.sibling;}}function Dm(s,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=s,v=c,M=v.flags;switch(v.tag){case 22:Dm(h,v),M&2048&&NC(v.alternate,v);break;case 24:Dm(h,v),M&2048&&PC(v.alternate,v);break;default:Dm(h,v);}c=c.sibling;}}var _m=8192;function cd(s,c,h){if(s.subtreeFlags&_m)for(s=s.child;s!==null;)QP(s,c,h),s=s.sibling;}function QP(s,c,h){switch(s.tag){case 26:cd(s,c,h),s.flags&_m&&s.memoizedState!==null&&DX(h,Ji,s.memoizedState,s.memoizedProps);break;case 5:cd(s,c,h);break;case 3:case 4:var v=Ji;Ji=_v(s.stateNode.containerInfo),cd(s,c,h),Ji=v;break;case 22:s.memoizedState===null&&(v=s.alternate,v!==null&&v.memoizedState!==null?(v=_m,_m=16777216,cd(s,c,h),_m=v):cd(s,c,h));break;default:cd(s,c,h);}}function ZP(s){var c=s.alternate;if(c!==null&&(s=c.child,s!==null)){c.child=null;do c=s.sibling,s.sibling=null,s=c;while(s!==null)}}function Lm(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];Lr=v,e4(v,s);}ZP(s);}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)JP(s),s=s.sibling;}function JP(s){switch(s.tag){case 0:case 11:case 15:Lm(s),s.flags&2048&&il(9,s,s.return);break;case 3:Lm(s);break;case 12:Lm(s);break;case 22:var c=s.stateNode;s.memoizedState!==null&&c._visibility&2&&(s.return===null||s.return.tag!==13)?(c._visibility&=-3,xv(s)):Lm(s);break;default:Lm(s);}}function xv(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var v=c[h];Lr=v,e4(v,s);}ZP(s);}for(s=s.child;s!==null;){switch(c=s,c.tag){case 0:case 11:case 15:il(8,c,c.return),xv(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,xv(c));break;default:xv(c);}s=s.sibling;}}function e4(s,c){for(;Lr!==null;){var h=Lr;switch(h.tag){case 0:case 11:case 15:il(8,h,c);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var v=h.memoizedState.cachePool.pool;v!=null&&v.refCount++;}break;case 24:ym(h.memoizedState.cache);}if(v=h.child,v!==null)v.return=h,Lr=v;else e:for(h=s;Lr!==null;){v=Lr;var M=v.sibling,A=v.return;if(UP(v),v===h){Lr=null;break e}if(M!==null){M.return=A,Lr=M;break e}Lr=A;}}}var YY={getCacheForType:function(s){var c=Kr(gr),h=c.data.get(s);return h===void 0&&(h=s(),c.data.set(s,h)),h},cacheSignal:function(){return Kr(gr).controller.signal}},XY=typeof WeakMap=="function"?WeakMap:Map,Cn=0,Fn=null,nn=null,on=0,Pn=0,ai=null,al=false,ud=false,IC=false,ps=0,ir=0,sl=0,Tc=0,OC=0,si=0,dd=0,Bm=null,jo=null,DC=false,wv=0,t4=0,$v=1/0,Ev=null,ll=null,Mr=0,cl=null,fd=null,gs=0,_C=0,LC=null,n4=null,zm=0,BC=null;function li(){return (Cn&2)!==0&&on!==0?on&-on:z.T!==null?jC():dt()}function r4(){if(si===0)if((on&536870912)===0||hn){var s=Rt;Rt<<=1,(Rt&3932160)===0&&(Rt=262144),si=s;}else si=536870912;return s=oi.current,s!==null&&(s.flags|=32),si}function Uo(s,c,h){(s===Fn&&(Pn===2||Pn===9)||s.cancelPendingCommit!==null)&&(md(s,0),ul(s,on,si,false)),Ce(s,h),((Cn&2)===0||s!==Fn)&&(s===Fn&&((Cn&2)===0&&(Tc|=h),ir===4&&ul(s,on,si,false)),Pa(s));}function o4(s,c,h){if((Cn&6)!==0)throw Error(r(327));var v=!h&&(c&127)===0&&(c&s.expiredLanes)===0||ke(s,c),M=v?JY(s,c):kC(s,c,true),A=v;do{if(M===0){ud&&!v&&ul(s,c,0,false);break}else {if(h=s.current.alternate,A&&!QY(h)){M=kC(s,c,false),A=false;continue}if(M===2){if(A=c,s.errorRecoveryDisabledLanes&A)var V=0;else V=s.pendingLanes&-536870913,V=V!==0?V:V&536870912?536870912:0;if(V!==0){c=V;e:{var Z=s;M=Bm;var le=Z.current.memoizedState.isDehydrated;if(le&&(md(Z,V).flags|=256),V=kC(Z,V,false),V!==2){if(IC&&!le){Z.errorRecoveryDisabledLanes|=A,Tc|=A,M=4;break e}A=jo,jo=M,A!==null&&(jo===null?jo=A:jo.push.apply(jo,A));}M=V;}if(A=false,M!==2)continue}}if(M===1){md(s,0),ul(s,c,0,true);break}e:{switch(v=s,A=M,A){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:ul(v,c,si,!al);break e;case 2:jo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(M=wv+300-Ne(),10<M)){if(ul(v,c,si,!al),vt(v,0,true)!==0)break e;gs=c,v.timeoutHandle=_4(i4.bind(null,v,h,jo,Ev,DC,c,si,Tc,dd,al,A,"Throttled",-0,0),M);break e}i4(v,h,jo,Ev,DC,c,si,Tc,dd,al,A,null,-0,0);}}break}while(true);Pa(s);}function i4(s,c,h,v,M,A,V,Z,le,Ee,Be,Ve,Re,Pe){if(s.timeoutHandle=-1,Ve=c.subtreeFlags,Ve&8192||(Ve&16785408)===16785408){Ve={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:ts},QP(c,A,Ve);var gt=(A&62914560)===A?wv-Ne():(A&4194048)===A?t4-Ne():0;if(gt=_X(Ve,gt),gt!==null){gs=A,s.cancelPendingCommit=gt(m4.bind(null,s,c,A,h,v,M,V,Z,le,Be,Ve,null,Re,Pe)),ul(s,A,V,!Ee);return}}m4(s,c,A,h,v,M,V,Z,le);}function QY(s){for(var c=s;;){var h=c.tag;if((h===0||h===11||h===15)&&c.flags&16384&&(h=c.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var v=0;v<h.length;v++){var M=h[v],A=M.getSnapshot;M=M.value;try{if(!ni(A(),M))return !1}catch{return  false}}if(h=c.child,c.subtreeFlags&16384&&h!==null)h.return=c,c=h;else {if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return  true;c=c.return;}c.sibling.return=c.return,c=c.sibling;}}return  true}function ul(s,c,h,v){c&=~OC,c&=~Tc,s.suspendedLanes|=c,s.pingedLanes&=~c,v&&(s.warmLanes|=c),v=s.expirationTimes;for(var M=c;0<M;){var A=31-ct(M),V=1<<A;v[A]=-1,M&=~V;}h!==0&&De(s,h,c);}function Mv(){return (Cn&6)===0?(km(0),false):true}function zC(){if(nn!==null){if(Pn===0)var s=nn.return;else s=nn,is=yc=null,eC(s),rd=null,Cm=0,s=nn;for(;s!==null;)LP(s.alternate,s),s=s.return;nn=null;}}function md(s,c){var h=s.timeoutHandle;h!==-1&&(s.timeoutHandle=-1,vX(h)),h=s.cancelPendingCommit,h!==null&&(s.cancelPendingCommit=null,h()),gs=0,zC(),Fn=s,nn=h=rs(s.current,null),on=c,Pn=0,ai=null,al=false,ud=ke(s,c),IC=false,dd=si=OC=Tc=sl=ir=0,jo=Bm=null,DC=false,(c&8)!==0&&(c|=c&32);var v=s.entangledLanes;if(v!==0)for(s=s.entanglements,v&=c;0<v;){var M=31-ct(v),A=1<<M;c|=s[M],v&=~A;}return ps=c,Gg(),h}function a4(s,c){Gt=null,z.H=Am,c===nd||c===tv?(c=xN(),Pn=3):c===VS?(c=xN(),Pn=4):Pn=c===gC?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,ai=c,nn===null&&(ir=1,pv(s,Ai(c,s.current)));}function s4(){var s=oi.current;return s===null?true:(on&4194048)===on?Oi===null:(on&62914560)===on||(on&536870912)!==0?s===Oi:false}function l4(){var s=z.H;return z.H=Am,s===null?Am:s}function c4(){var s=z.A;return z.A=YY,s}function Rv(){ir=4,al||(on&4194048)!==on&&oi.current!==null||(ud=true),(sl&134217727)===0&&(Tc&134217727)===0||Fn===null||ul(Fn,on,si,false);}function kC(s,c,h){var v=Cn;Cn|=2;var M=l4(),A=c4();(Fn!==s||on!==c)&&(Ev=null,md(s,c)),c=false;var V=ir;e:do try{if(Pn!==0&&nn!==null){var Z=nn,le=ai;switch(Pn){case 8:zC(),V=6;break e;case 3:case 2:case 9:case 6:oi.current===null&&(c=!0);var Ee=Pn;if(Pn=0,ai=null,hd(s,Z,le,Ee),h&&ud){V=0;break e}break;default:Ee=Pn,Pn=0,ai=null,hd(s,Z,le,Ee);}}ZY(),V=ir;break}catch(Be){a4(s,Be);}while(true);return c&&s.shellSuspendCounter++,is=yc=null,Cn=v,z.H=M,z.A=A,nn===null&&(Fn=null,on=0,Gg()),V}function ZY(){for(;nn!==null;)u4(nn);}function JY(s,c){var h=Cn;Cn|=2;var v=l4(),M=c4();Fn!==s||on!==c?(Ev=null,$v=Ne()+500,md(s,c)):ud=ke(s,c);e:do try{if(Pn!==0&&nn!==null){c=nn;var A=ai;t:switch(Pn){case 1:Pn=0,ai=null,hd(s,c,A,1);break;case 2:case 9:if(SN(A)){Pn=0,ai=null,d4(c);break}c=function(){Pn!==2&&Pn!==9||Fn!==s||(Pn=7),Pa(s);},A.then(c,c);break e;case 3:Pn=7;break e;case 4:Pn=5;break e;case 7:SN(A)?(Pn=0,ai=null,d4(c)):(Pn=0,ai=null,hd(s,c,A,7));break;case 5:var V=null;switch(nn.tag){case 26:V=nn.memoizedState;case 5:case 27:var Z=nn;if(V?X4(V):Z.stateNode.complete){Pn=0,ai=null;var le=Z.sibling;if(le!==null)nn=le;else {var Ee=Z.return;Ee!==null?(nn=Ee,Tv(Ee)):nn=null;}break t}}Pn=0,ai=null,hd(s,c,A,5);break;case 6:Pn=0,ai=null,hd(s,c,A,6);break;case 8:zC(),ir=6;break e;default:throw Error(r(462))}}eX();break}catch(Be){a4(s,Be);}while(true);return is=yc=null,z.H=v,z.A=M,Cn=h,nn!==null?0:(Fn=null,on=0,Gg(),ir)}function eX(){for(;nn!==null&&!de();)u4(nn);}function u4(s){var c=DP(s.alternate,s,ps);s.memoizedProps=s.pendingProps,c===null?Tv(s):nn=c;}function d4(s){var c=s,h=c.alternate;switch(c.tag){case 15:case 0:c=TP(h,c,c.pendingProps,c.type,void 0,on);break;case 11:c=TP(h,c,c.pendingProps,c.type.render,c.ref,on);break;case 5:eC(c);default:LP(h,c),c=nn=cN(c,ps),c=DP(h,c,ps);}s.memoizedProps=s.pendingProps,c===null?Tv(s):nn=c;}function hd(s,c,h,v){is=yc=null,eC(c),rd=null,Cm=0;var M=c.return;try{if(VY(s,M,c,h,on)){ir=1,pv(s,Ai(h,s.current)),nn=null;return}}catch(A){if(M!==null)throw nn=M,A;ir=1,pv(s,Ai(h,s.current)),nn=null;return}c.flags&32768?(hn||v===1?s=true:ud||(on&536870912)!==0?s=false:(al=s=true,(v===2||v===9||v===3||v===6)&&(v=oi.current,v!==null&&v.tag===13&&(v.flags|=16384))),f4(c,s)):Tv(c);}function Tv(s){var c=s;do{if((c.flags&32768)!==0){f4(c,al);return}s=c.return;var h=WY(c.alternate,c,ps);if(h!==null){nn=h;return}if(c=c.sibling,c!==null){nn=c;return}nn=c=s;}while(c!==null);ir===0&&(ir=5);}function f4(s,c){do{var h=qY(s.alternate,s);if(h!==null){h.flags&=32767,nn=h;return}if(h=s.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!c&&(s=s.sibling,s!==null)){nn=s;return}nn=s=h;}while(s!==null);ir=6,nn=null;}function m4(s,c,h,v,M,A,V,Z,le){s.cancelPendingCommit=null;do Av();while(Mr!==0);if((Cn&6)!==0)throw Error(r(327));if(c!==null){if(c===s.current)throw Error(r(177));if(A=c.lanes|c.childLanes,A|=RS,he(s,h,A,V,Z,le),s===Fn&&(nn=Fn=null,on=0),fd=c,cl=s,gs=h,_C=A,LC=M,n4=v,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,oX(nt,function(){return b4(),null})):(s.callbackNode=null,s.callbackPriority=0),v=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||v){v=z.T,z.T=null,M=j.p,j.p=2,V=Cn,Cn|=4;try{GY(s,c,h);}finally{Cn=V,j.p=M,z.T=v;}}Mr=1,h4(),p4(),g4();}}function h4(){if(Mr===1){Mr=0;var s=cl,c=fd,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=z.T,z.T=null;var v=j.p;j.p=2;var M=Cn;Cn|=4;try{KP(c,s);var A=QC,V=eN(s.containerInfo),Z=A.focusedElem,le=A.selectionRange;if(V!==Z&&Z&&Z.ownerDocument&&J6(Z.ownerDocument.documentElement,Z)){if(le!==null&&xS(Z)){var Ee=le.start,Be=le.end;if(Be===void 0&&(Be=Ee),"selectionStart"in Z)Z.selectionStart=Ee,Z.selectionEnd=Math.min(Be,Z.value.length);else {var Ve=Z.ownerDocument||document,Re=Ve&&Ve.defaultView||window;if(Re.getSelection){var Pe=Re.getSelection(),gt=Z.textContent.length,Pt=Math.min(le.start,gt),_n=le.end===void 0?Pt:Math.min(le.end,gt);!Pe.extend&&Pt>_n&&(V=_n,_n=Pt,Pt=V);var ge=Z6(Z,Pt),me=Z6(Z,_n);if(ge&&me&&(Pe.rangeCount!==1||Pe.anchorNode!==ge.node||Pe.anchorOffset!==ge.offset||Pe.focusNode!==me.node||Pe.focusOffset!==me.offset)){var $e=Ve.createRange();$e.setStart(ge.node,ge.offset),Pe.removeAllRanges(),Pt>_n?(Pe.addRange($e),Pe.extend(me.node,me.offset)):($e.setEnd(me.node,me.offset),Pe.addRange($e));}}}}for(Ve=[],Pe=Z;Pe=Pe.parentNode;)Pe.nodeType===1&&Ve.push({element:Pe,left:Pe.scrollLeft,top:Pe.scrollTop});for(typeof Z.focus=="function"&&Z.focus(),Z=0;Z<Ve.length;Z++){var Fe=Ve[Z];Fe.element.scrollLeft=Fe.left,Fe.element.scrollTop=Fe.top;}}Hv=!!XC,QC=XC=null;}finally{Cn=M,j.p=v,z.T=h;}}s.current=c,Mr=2;}}function p4(){if(Mr===2){Mr=0;var s=cl,c=fd,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=z.T,z.T=null;var v=j.p;j.p=2;var M=Cn;Cn|=4;try{jP(s,c.alternate,c);}finally{Cn=M,j.p=v,z.T=h;}}Mr=3;}}function g4(){if(Mr===4||Mr===3){Mr=0,ve();var s=cl,c=fd,h=gs,v=n4;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Mr=5:(Mr=0,fd=cl=null,v4(s,s.pendingLanes));var M=s.pendingLanes;if(M===0&&(ll=null),it(h),c=c.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(Je,c,void 0,(c.current.flags&128)===128);}catch{}if(v!==null){c=z.T,M=j.p,j.p=2,z.T=null;try{for(var A=s.onRecoverableError,V=0;V<v.length;V++){var Z=v[V];A(Z.value,{componentStack:Z.stack});}}finally{z.T=c,j.p=M;}}(gs&3)!==0&&Av(),Pa(s),M=s.pendingLanes,(h&261930)!==0&&(M&42)!==0?s===BC?zm++:(zm=0,BC=s):zm=0,km(0);}}function v4(s,c){(s.pooledCacheLanes&=c)===0&&(c=s.pooledCache,c!=null&&(s.pooledCache=null,ym(c)));}function Av(){return h4(),p4(),g4(),b4()}function b4(){if(Mr!==5)return  false;var s=cl,c=_C;_C=0;var h=it(gs),v=z.T,M=j.p;try{j.p=32>h?32:h,z.T=null,h=LC,LC=null;var A=cl,V=gs;if(Mr=0,fd=cl=null,gs=0,(Cn&6)!==0)throw Error(r(331));var Z=Cn;if(Cn|=4,JP(A.current),XP(A,A.current,V,h),Cn=Z,km(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(Je,A);}catch{}return !0}finally{j.p=M,z.T=v,v4(s,c);}}function y4(s,c,h){c=Ai(h,c),c=pC(s.stateNode,c,2),s=nl(s,c,2),s!==null&&(Ce(s,2),Pa(s));}function In(s,c,h){if(s.tag===3)y4(s,s,h);else for(;c!==null;){if(c.tag===3){y4(c,s,h);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(ll===null||!ll.has(v))){s=Ai(h,s),h=SP(2),v=nl(c,h,2),v!==null&&(CP(h,v,c,s),Ce(v,2),Pa(v));break}}c=c.return;}}function FC(s,c,h){var v=s.pingCache;if(v===null){v=s.pingCache=new XY;var M=new Set;v.set(c,M);}else M=v.get(c),M===void 0&&(M=new Set,v.set(c,M));M.has(h)||(IC=true,M.add(h),s=tX.bind(null,s,c,h),c.then(s,s));}function tX(s,c,h){var v=s.pingCache;v!==null&&v.delete(c),s.pingedLanes|=s.suspendedLanes&h,s.warmLanes&=~h,Fn===s&&(on&h)===h&&(ir===4||ir===3&&(on&62914560)===on&&300>Ne()-wv?(Cn&2)===0&&md(s,0):OC|=h,dd===on&&(dd=0)),Pa(s);}function S4(s,c){c===0&&(c=Se()),s=gc(s,c),s!==null&&(Ce(s,c),Pa(s));}function nX(s){var c=s.memoizedState,h=0;c!==null&&(h=c.retryLane),S4(s,h);}function rX(s,c){var h=0;switch(s.tag){case 31:case 13:var v=s.stateNode,M=s.memoizedState;M!==null&&(h=M.retryLane);break;case 19:v=s.stateNode;break;case 22:v=s.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(c),S4(s,h);}function oX(s,c){return Ke(s,c)}var Nv=null,pd=null,HC=false,Pv=false,VC=false,dl=0;function Pa(s){s!==pd&&s.next===null&&(pd===null?Nv=pd=s:pd=pd.next=s),Pv=true,HC||(HC=true,aX());}function km(s,c){if(!VC&&Pv){VC=true;do for(var h=false,v=Nv;v!==null;){if(s!==0){var M=v.pendingLanes;if(M===0)var A=0;else {var V=v.suspendedLanes,Z=v.pingedLanes;A=(1<<31-ct(42|s)+1)-1,A&=M&~(V&~Z),A=A&201326741?A&201326741|1:A?A|2:0;}A!==0&&(h=true,$4(v,A));}else A=on,A=vt(v,v===Fn?A:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(A&3)===0||ke(v,A)||(h=true,$4(v,A));v=v.next;}while(h);VC=false;}}function iX(){C4();}function C4(){Pv=HC=false;var s=0;dl!==0&&gX()&&(s=dl);for(var c=Ne(),h=null,v=Nv;v!==null;){var M=v.next,A=x4(v,c);A===0?(v.next=null,h===null?Nv=M:h.next=M,M===null&&(pd=h)):(h=v,(s!==0||(A&3)!==0)&&(Pv=true)),v=M;}Mr!==0&&Mr!==5||km(s),dl!==0&&(dl=0);}function x4(s,c){for(var h=s.suspendedLanes,v=s.pingedLanes,M=s.expirationTimes,A=s.pendingLanes&-62914561;0<A;){var V=31-ct(A),Z=1<<V,le=M[V];le===-1?((Z&h)===0||(Z&v)!==0)&&(M[V]=Ze(Z,c)):le<=c&&(s.expiredLanes|=Z),A&=~Z;}if(c=Fn,h=on,h=vt(s,s===c?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),v=s.callbackNode,h===0||s===c&&(Pn===2||Pn===9)||s.cancelPendingCommit!==null)return v!==null&&v!==null&&Ae(v),s.callbackNode=null,s.callbackPriority=0;if((h&3)===0||ke(s,h)){if(c=h&-h,c===s.callbackPriority)return c;switch(v!==null&&Ae(v),it(h)){case 2:case 8:h=je;break;case 32:h=nt;break;case 268435456:h=Ge;break;default:h=nt;}return v=w4.bind(null,s),h=Ke(h,v),s.callbackPriority=c,s.callbackNode=h,c}return v!==null&&v!==null&&Ae(v),s.callbackPriority=2,s.callbackNode=null,2}function w4(s,c){if(Mr!==0&&Mr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var h=s.callbackNode;if(Av()&&s.callbackNode!==h)return null;var v=on;return v=vt(s,s===Fn?v:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),v===0?null:(o4(s,v,c),x4(s,Ne()),s.callbackNode!=null&&s.callbackNode===h?w4.bind(null,s):null)}function $4(s,c){if(Av())return null;o4(s,c,true);}function aX(){bX(function(){(Cn&6)!==0?Ke(We,iX):C4();});}function jC(){if(dl===0){var s=ed;s===0&&(s=xt,xt<<=1,(xt&261888)===0&&(xt=256)),dl=s;}return dl}function E4(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:kg(""+s)}function M4(s,c){var h=c.ownerDocument.createElement("input");return h.name=c.name,h.value=c.value,s.id&&h.setAttribute("form",s.id),c.parentNode.insertBefore(h,c),s=new FormData(s),h.parentNode.removeChild(h),s}function sX(s,c,h,v,M){if(c==="submit"&&h&&h.stateNode===M){var A=E4((M[yn]||null).action),V=v.submitter;V&&(c=(c=V[yn]||null)?E4(c.formAction):V.getAttribute("formAction"),c!==null&&(A=c,V=null));var Z=new jg("action","action",null,v,M);s.push({event:Z,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(dl!==0){var le=V?M4(M,V):new FormData(M);cC(h,{pending:true,data:le,method:M.method,action:A},null,le);}}else typeof A=="function"&&(Z.preventDefault(),le=V?M4(M,V):new FormData(M),cC(h,{pending:true,data:le,method:M.method,action:A},A,le));},currentTarget:M}]});}}for(var UC=0;UC<MS.length;UC++){var WC=MS[UC],lX=WC.toLowerCase(),cX=WC[0].toUpperCase()+WC.slice(1);Zi(lX,"on"+cX);}Zi(rN,"onAnimationEnd"),Zi(oN,"onAnimationIteration"),Zi(iN,"onAnimationStart"),Zi("dblclick","onDoubleClick"),Zi("focusin","onFocus"),Zi("focusout","onBlur"),Zi(EY,"onTransitionRun"),Zi(MY,"onTransitionStart"),Zi(RY,"onTransitionCancel"),Zi(aN,"onTransitionEnd"),Bo("onMouseEnter",["mouseout","mouseover"]),Bo("onMouseLeave",["mouseout","mouseover"]),Bo("onPointerEnter",["pointerout","pointerover"]),Bo("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fm="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),uX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fm));function R4(s,c){c=(c&4)!==0;for(var h=0;h<s.length;h++){var v=s[h],M=v.event;v=v.listeners;e:{var A=void 0;if(c)for(var V=v.length-1;0<=V;V--){var Z=v[V],le=Z.instance,Ee=Z.currentTarget;if(Z=Z.listener,le!==A&&M.isPropagationStopped())break e;A=Z,M.currentTarget=Ee;try{A(M);}catch(Be){qg(Be);}M.currentTarget=null,A=le;}else for(V=0;V<v.length;V++){if(Z=v[V],le=Z.instance,Ee=Z.currentTarget,Z=Z.listener,le!==A&&M.isPropagationStopped())break e;A=Z,M.currentTarget=Ee;try{A(M);}catch(Be){qg(Be);}M.currentTarget=null,A=le;}}}}function rn(s,c){var h=c[et];h===void 0&&(h=c[et]=new Set);var v=s+"__bubble";h.has(v)||(T4(c,s,2,false),h.add(v));}function qC(s,c,h){var v=0;c&&(v|=4),T4(h,s,v,c);}var Iv="_reactListening"+Math.random().toString(36).slice(2);function GC(s){if(!s[Iv]){s[Iv]=true,fo.forEach(function(h){h!=="selectionchange"&&(uX.has(h)||qC(h,false,s),qC(h,true,s));});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Iv]||(c[Iv]=true,qC("selectionchange",false,c));}}function T4(s,c,h,v){switch(r5(c)){case 2:var M=zX;break;case 8:M=kX;break;default:M=lx;}h=M.bind(null,c,h,s),M=void 0,!mS||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(M=true),v?M!==void 0?s.addEventListener(c,h,{capture:true,passive:M}):s.addEventListener(c,h,true):M!==void 0?s.addEventListener(c,h,{passive:M}):s.addEventListener(c,h,false);}function KC(s,c,h,v,M){var A=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var V=v.tag;if(V===3||V===4){var Z=v.stateNode.containerInfo;if(Z===M)break;if(V===4)for(V=v.return;V!==null;){var le=V.tag;if((le===3||le===4)&&V.stateNode.containerInfo===M)return;V=V.return;}for(;Z!==null;){if(V=Jt(Z),V===null)return;if(le=V.tag,le===5||le===6||le===26||le===27){v=A=V;continue e}Z=Z.parentNode;}}v=v.return;}O6(function(){var Ee=A,Be=dS(h),Ve=[];e:{var Re=sN.get(s);if(Re!==void 0){var Pe=jg,gt=s;switch(s){case "keypress":if(Hg(h)===0)break e;case "keydown":case "keyup":Pe=rY;break;case "focusin":gt="focus",Pe=vS;break;case "focusout":gt="blur",Pe=vS;break;case "beforeblur":case "afterblur":Pe=vS;break;case "click":if(h.button===2)break e;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":Pe=L6;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":Pe=WK;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":Pe=aY;break;case rN:case oN:case iN:Pe=KK;break;case aN:Pe=lY;break;case "scroll":case "scrollend":Pe=jK;break;case "wheel":Pe=uY;break;case "copy":case "cut":case "paste":Pe=XK;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":Pe=z6;break;case "toggle":case "beforetoggle":Pe=fY;}var Pt=(c&4)!==0,_n=!Pt&&(s==="scroll"||s==="scrollend"),ge=Pt?Re!==null?Re+"Capture":null:Re;Pt=[];for(var me=Ee,$e;me!==null;){var Fe=me;if($e=Fe.stateNode,Fe=Fe.tag,Fe!==5&&Fe!==26&&Fe!==27||$e===null||ge===null||(Fe=lm(me,ge),Fe!=null&&Pt.push(Hm(me,Fe,$e))),_n)break;me=me.return;}0<Pt.length&&(Re=new Pe(Re,gt,null,h,Be),Ve.push({event:Re,listeners:Pt}));}}if((c&7)===0){e:{if(Re=s==="mouseover"||s==="pointerover",Pe=s==="mouseout"||s==="pointerout",Re&&h!==uS&&(gt=h.relatedTarget||h.fromElement)&&(Jt(gt)||gt[Un]))break e;if((Pe||Re)&&(Re=Be.window===Be?Be:(Re=Be.ownerDocument)?Re.defaultView||Re.parentWindow:window,Pe?(gt=h.relatedTarget||h.toElement,Pe=Ee,gt=gt?Jt(gt):null,gt!==null&&(_n=i(gt),Pt=gt.tag,gt!==_n||Pt!==5&&Pt!==27&&Pt!==6)&&(gt=null)):(Pe=null,gt=Ee),Pe!==gt)){if(Pt=L6,Fe="onMouseLeave",ge="onMouseEnter",me="mouse",(s==="pointerout"||s==="pointerover")&&(Pt=z6,Fe="onPointerLeave",ge="onPointerEnter",me="pointer"),_n=Pe==null?Re:Nn(Pe),$e=gt==null?Re:Nn(gt),Re=new Pt(Fe,me+"leave",Pe,h,Be),Re.target=_n,Re.relatedTarget=$e,Fe=null,Jt(Be)===Ee&&(Pt=new Pt(ge,me+"enter",gt,h,Be),Pt.target=$e,Pt.relatedTarget=_n,Fe=Pt),_n=Fe,Pe&&gt)t:{for(Pt=dX,ge=Pe,me=gt,$e=0,Fe=ge;Fe;Fe=Pt(Fe))$e++;Fe=0;for(var Et=me;Et;Et=Pt(Et))Fe++;for(;0<$e-Fe;)ge=Pt(ge),$e--;for(;0<Fe-$e;)me=Pt(me),Fe--;for(;$e--;){if(ge===me||me!==null&&ge===me.alternate){Pt=ge;break t}ge=Pt(ge),me=Pt(me);}Pt=null;}else Pt=null;Pe!==null&&A4(Ve,Re,Pe,Pt,!1),gt!==null&&_n!==null&&A4(Ve,_n,gt,Pt,!0);}}e:{if(Re=Ee?Nn(Ee):window,Pe=Re.nodeName&&Re.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&Re.type==="file")var vn=q6;else if(U6(Re))if(G6)vn=xY;else {vn=SY;var St=yY;}else Pe=Re.nodeName,!Pe||Pe.toLowerCase()!=="input"||Re.type!=="checkbox"&&Re.type!=="radio"?Ee&&cS(Ee.elementType)&&(vn=q6):vn=CY;if(vn&&(vn=vn(s,Ee))){W6(Ve,vn,h,Be);break e}St&&St(s,Re,Ee),s==="focusout"&&Ee&&Re.type==="number"&&Ee.memoizedProps.value!=null&&Hu(Re,"number",Re.value);}switch(St=Ee?Nn(Ee):window,s){case "focusin":(U6(St)||St.contentEditable==="true")&&(qu=St,wS=Ee,gm=null);break;case "focusout":gm=wS=qu=null;break;case "mousedown":$S=!0;break;case "contextmenu":case "mouseup":case "dragend":$S=!1,tN(Ve,h,Be);break;case "selectionchange":if($Y)break;case "keydown":case "keyup":tN(Ve,h,Be);}var Yt;if(yS)e:{switch(s){case "compositionstart":var an="onCompositionStart";break e;case "compositionend":an="onCompositionEnd";break e;case "compositionupdate":an="onCompositionUpdate";break e}an=void 0;}else Wu?V6(s,h)&&(an="onCompositionEnd"):s==="keydown"&&h.keyCode===229&&(an="onCompositionStart");an&&(k6&&h.locale!=="ko"&&(Wu||an!=="onCompositionStart"?an==="onCompositionEnd"&&Wu&&(Yt=D6()):(Ys=Be,hS="value"in Ys?Ys.value:Ys.textContent,Wu=!0)),St=Ov(Ee,an),0<St.length&&(an=new B6(an,s,null,h,Be),Ve.push({event:an,listeners:St}),Yt?an.data=Yt:(Yt=j6(h),Yt!==null&&(an.data=Yt)))),(Yt=hY?pY(s,h):gY(s,h))&&(an=Ov(Ee,"onBeforeInput"),0<an.length&&(St=new B6("onBeforeInput","beforeinput",null,h,Be),Ve.push({event:St,listeners:an}),St.data=Yt)),sX(Ve,s,Ee,h,Be);}R4(Ve,c);});}function Hm(s,c,h){return {instance:s,listener:c,currentTarget:h}}function Ov(s,c){for(var h=c+"Capture",v=[];s!==null;){var M=s,A=M.stateNode;if(M=M.tag,M!==5&&M!==26&&M!==27||A===null||(M=lm(s,h),M!=null&&v.unshift(Hm(s,M,A)),M=lm(s,c),M!=null&&v.push(Hm(s,M,A))),s.tag===3)return v;s=s.return;}return []}function dX(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function A4(s,c,h,v,M){for(var A=c._reactName,V=[];h!==null&&h!==v;){var Z=h,le=Z.alternate,Ee=Z.stateNode;if(Z=Z.tag,le!==null&&le===v)break;Z!==5&&Z!==26&&Z!==27||Ee===null||(le=Ee,M?(Ee=lm(h,A),Ee!=null&&V.unshift(Hm(h,Ee,le))):M||(Ee=lm(h,A),Ee!=null&&V.push(Hm(h,Ee,le)))),h=h.return;}V.length!==0&&s.push({event:c,listeners:V});}var fX=/\r\n?/g,mX=/\u0000|\uFFFD/g;function N4(s){return (typeof s=="string"?s:""+s).replace(fX,`
`).replace(mX,"")}function P4(s,c){return c=N4(c),N4(s)===c}function Dn(s,c,h,v,M,A){switch(h){case "children":typeof v=="string"?c==="body"||c==="textarea"&&v===""||Vu(s,v):(typeof v=="number"||typeof v=="bigint")&&c!=="body"&&Vu(s,""+v);break;case "className":Ri(s,"class",v);break;case "tabIndex":Ri(s,"tabindex",v);break;case "dir":case "role":case "viewBox":case "width":case "height":Ri(s,h,v);break;case "style":P6(s,v,A);break;case "data":if(c!=="object"){Ri(s,"data",v);break}case "src":case "href":if(v===""&&(c!=="a"||h!=="href")){s.removeAttribute(h);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){s.removeAttribute(h);break}v=kg(""+v),s.setAttribute(h,v);break;case "action":case "formAction":if(typeof v=="function"){s.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(h==="formAction"?(c!=="input"&&Dn(s,c,"name",M.name,M,null),Dn(s,c,"formEncType",M.formEncType,M,null),Dn(s,c,"formMethod",M.formMethod,M,null),Dn(s,c,"formTarget",M.formTarget,M,null)):(Dn(s,c,"encType",M.encType,M,null),Dn(s,c,"method",M.method,M,null),Dn(s,c,"target",M.target,M,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){s.removeAttribute(h);break}v=kg(""+v),s.setAttribute(h,v);break;case "onClick":v!=null&&(s.onclick=ts);break;case "onScroll":v!=null&&rn("scroll",s);break;case "onScrollEnd":v!=null&&rn("scrollend",s);break;case "dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if(M.children!=null)throw Error(r(60));s.innerHTML=h;}}break;case "multiple":s.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case "muted":s.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":break;case "autoFocus":break;case "xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){s.removeAttribute("xlink:href");break}h=kg(""+v),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?s.setAttribute(h,""+v):s.removeAttribute(h);break;case "inert":case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":v&&typeof v!="function"&&typeof v!="symbol"?s.setAttribute(h,""):s.removeAttribute(h);break;case "capture":case "download":v===true?s.setAttribute(h,""):v!==false&&v!=null&&typeof v!="function"&&typeof v!="symbol"?s.setAttribute(h,v):s.removeAttribute(h);break;case "cols":case "rows":case "size":case "span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?s.setAttribute(h,v):s.removeAttribute(h);break;case "rowSpan":case "start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?s.removeAttribute(h):s.setAttribute(h,v);break;case "popover":rn("beforetoggle",s),rn("toggle",s),Ra(s,"popover",v);break;case "xlinkActuate":zo(s,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case "xlinkArcrole":zo(s,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case "xlinkRole":zo(s,"http://www.w3.org/1999/xlink","xlink:role",v);break;case "xlinkShow":zo(s,"http://www.w3.org/1999/xlink","xlink:show",v);break;case "xlinkTitle":zo(s,"http://www.w3.org/1999/xlink","xlink:title",v);break;case "xlinkType":zo(s,"http://www.w3.org/1999/xlink","xlink:type",v);break;case "xmlBase":zo(s,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case "xmlLang":zo(s,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case "xmlSpace":zo(s,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case "is":Ra(s,"is",v);break;case "innerText":case "textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=HK.get(h)||h,Ra(s,h,v));}}function YC(s,c,h,v,M,A){switch(h){case "style":P6(s,v,A);break;case "dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if(M.children!=null)throw Error(r(60));s.innerHTML=h;}}break;case "children":typeof v=="string"?Vu(s,v):(typeof v=="number"||typeof v=="bigint")&&Vu(s,""+v);break;case "onScroll":v!=null&&rn("scroll",s);break;case "onScrollEnd":v!=null&&rn("scrollend",s);break;case "onClick":v!=null&&(s.onclick=ts);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!Ja.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(M=h.endsWith("Capture"),c=h.slice(2,M?h.length-7:void 0),A=s[yn]||null,A=A!=null?A[h]:null,typeof A=="function"&&s.removeEventListener(c,A,M),typeof v=="function")){typeof A!="function"&&A!==null&&(h in s?s[h]=null:s.hasAttribute(h)&&s.removeAttribute(h)),s.addEventListener(c,v,M);break e}h in s?s[h]=v:v===true?s.setAttribute(h,""):Ra(s,h,v);}}}function Xr(s,c,h){switch(c){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":rn("error",s),rn("load",s);var v=false,M=false,A;for(A in h)if(h.hasOwnProperty(A)){var V=h[A];if(V!=null)switch(A){case "src":v=true;break;case "srcSet":M=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:Dn(s,c,A,V,h,null);}}M&&Dn(s,c,"srcSet",h.srcSet,h,null),v&&Dn(s,c,"src",h.src,h,null);return;case "input":rn("invalid",s);var Z=A=V=M=null,le=null,Ee=null;for(v in h)if(h.hasOwnProperty(v)){var Be=h[v];if(Be!=null)switch(v){case "name":M=Be;break;case "type":V=Be;break;case "checked":le=Be;break;case "defaultChecked":Ee=Be;break;case "value":A=Be;break;case "defaultValue":Z=Be;break;case "children":case "dangerouslySetInnerHTML":if(Be!=null)throw Error(r(137,c));break;default:Dn(s,c,v,Be,h,null);}}Bg(s,A,Z,le,Ee,V,M,false);return;case "select":rn("invalid",s),v=V=A=null;for(M in h)if(h.hasOwnProperty(M)&&(Z=h[M],Z!=null))switch(M){case "value":A=Z;break;case "defaultValue":V=Z;break;case "multiple":v=Z;default:Dn(s,c,M,Z,h,null);}c=A,h=V,s.multiple=!!v,c!=null?es(s,!!v,c,false):h!=null&&es(s,!!v,h,true);return;case "textarea":rn("invalid",s),A=M=v=null;for(V in h)if(h.hasOwnProperty(V)&&(Z=h[V],Z!=null))switch(V){case "value":v=Z;break;case "defaultValue":M=Z;break;case "children":A=Z;break;case "dangerouslySetInnerHTML":if(Z!=null)throw Error(r(91));break;default:Dn(s,c,V,Z,h,null);}A6(s,v,M,A);return;case "option":for(le in h)h.hasOwnProperty(le)&&(v=h[le],v!=null)&&(le==="selected"?s.selected=v&&typeof v!="function"&&typeof v!="symbol":Dn(s,c,le,v,h,null));return;case "dialog":rn("beforetoggle",s),rn("toggle",s),rn("cancel",s),rn("close",s);break;case "iframe":case "object":rn("load",s);break;case "video":case "audio":for(v=0;v<Fm.length;v++)rn(Fm[v],s);break;case "image":rn("error",s),rn("load",s);break;case "details":rn("toggle",s);break;case "embed":case "source":case "link":rn("error",s),rn("load",s);case "area":case "base":case "br":case "col":case "hr":case "keygen":case "meta":case "param":case "track":case "wbr":case "menuitem":for(Ee in h)if(h.hasOwnProperty(Ee)&&(v=h[Ee],v!=null))switch(Ee){case "children":case "dangerouslySetInnerHTML":throw Error(r(137,c));default:Dn(s,c,Ee,v,h,null);}return;default:if(cS(c)){for(Be in h)h.hasOwnProperty(Be)&&(v=h[Be],v!==void 0&&YC(s,c,Be,v,h,void 0));return}}for(Z in h)h.hasOwnProperty(Z)&&(v=h[Z],v!=null&&Dn(s,c,Z,v,h,null));}function hX(s,c,h,v){switch(c){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var M=null,A=null,V=null,Z=null,le=null,Ee=null,Be=null;for(Pe in h){var Ve=h[Pe];if(h.hasOwnProperty(Pe)&&Ve!=null)switch(Pe){case "checked":break;case "value":break;case "defaultValue":le=Ve;default:v.hasOwnProperty(Pe)||Dn(s,c,Pe,null,v,Ve);}}for(var Re in v){var Pe=v[Re];if(Ve=h[Re],v.hasOwnProperty(Re)&&(Pe!=null||Ve!=null))switch(Re){case "type":A=Pe;break;case "name":M=Pe;break;case "checked":Ee=Pe;break;case "defaultChecked":Be=Pe;break;case "value":V=Pe;break;case "defaultValue":Z=Pe;break;case "children":case "dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,c));break;default:Pe!==Ve&&Dn(s,c,Re,Pe,v,Ve);}}Ks(s,V,Z,le,Ee,Be,A,M);return;case "select":Pe=V=Z=Re=null;for(A in h)if(le=h[A],h.hasOwnProperty(A)&&le!=null)switch(A){case "value":break;case "multiple":Pe=le;default:v.hasOwnProperty(A)||Dn(s,c,A,null,v,le);}for(M in v)if(A=v[M],le=h[M],v.hasOwnProperty(M)&&(A!=null||le!=null))switch(M){case "value":Re=A;break;case "defaultValue":Z=A;break;case "multiple":V=A;default:A!==le&&Dn(s,c,M,A,v,le);}c=Z,h=V,v=Pe,Re!=null?es(s,!!h,Re,false):!!v!=!!h&&(c!=null?es(s,!!h,c,true):es(s,!!h,h?[]:"",false));return;case "textarea":Pe=Re=null;for(Z in h)if(M=h[Z],h.hasOwnProperty(Z)&&M!=null&&!v.hasOwnProperty(Z))switch(Z){case "value":break;case "children":break;default:Dn(s,c,Z,null,v,M);}for(V in v)if(M=v[V],A=h[V],v.hasOwnProperty(V)&&(M!=null||A!=null))switch(V){case "value":Re=M;break;case "defaultValue":Pe=M;break;case "children":break;case "dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:M!==A&&Dn(s,c,V,M,v,A);}zg(s,Re,Pe);return;case "option":for(var gt in h)Re=h[gt],h.hasOwnProperty(gt)&&Re!=null&&!v.hasOwnProperty(gt)&&(gt==="selected"?s.selected=false:Dn(s,c,gt,null,v,Re));for(le in v)Re=v[le],Pe=h[le],v.hasOwnProperty(le)&&Re!==Pe&&(Re!=null||Pe!=null)&&(le==="selected"?s.selected=Re&&typeof Re!="function"&&typeof Re!="symbol":Dn(s,c,le,Re,v,Pe));return;case "img":case "link":case "area":case "base":case "br":case "col":case "embed":case "hr":case "keygen":case "meta":case "param":case "source":case "track":case "wbr":case "menuitem":for(var Pt in h)Re=h[Pt],h.hasOwnProperty(Pt)&&Re!=null&&!v.hasOwnProperty(Pt)&&Dn(s,c,Pt,null,v,Re);for(Ee in v)if(Re=v[Ee],Pe=h[Ee],v.hasOwnProperty(Ee)&&Re!==Pe&&(Re!=null||Pe!=null))switch(Ee){case "children":case "dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,c));break;default:Dn(s,c,Ee,Re,v,Pe);}return;default:if(cS(c)){for(var _n in h)Re=h[_n],h.hasOwnProperty(_n)&&Re!==void 0&&!v.hasOwnProperty(_n)&&YC(s,c,_n,void 0,v,Re);for(Be in v)Re=v[Be],Pe=h[Be],!v.hasOwnProperty(Be)||Re===Pe||Re===void 0&&Pe===void 0||YC(s,c,Be,Re,v,Pe);return}}for(var ge in h)Re=h[ge],h.hasOwnProperty(ge)&&Re!=null&&!v.hasOwnProperty(ge)&&Dn(s,c,ge,null,v,Re);for(Ve in v)Re=v[Ve],Pe=h[Ve],!v.hasOwnProperty(Ve)||Re===Pe||Re==null&&Pe==null||Dn(s,c,Ve,Re,v,Pe);}function I4(s){switch(s){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return  true;default:return  false}}function pX(){if(typeof performance.getEntriesByType=="function"){for(var s=0,c=0,h=performance.getEntriesByType("resource"),v=0;v<h.length;v++){var M=h[v],A=M.transferSize,V=M.initiatorType,Z=M.duration;if(A&&Z&&I4(V)){for(V=0,Z=M.responseEnd,v+=1;v<h.length;v++){var le=h[v],Ee=le.startTime;if(Ee>Z)break;var Be=le.transferSize,Ve=le.initiatorType;Be&&I4(Ve)&&(le=le.responseEnd,V+=Be*(le<Z?1:(Z-Ee)/(le-Ee)));}if(--v,c+=8*(A+V)/(M.duration/1e3),s++,10<s)break}}if(0<s)return c/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var XC=null,QC=null;function Dv(s){return s.nodeType===9?s:s.ownerDocument}function O4(s){switch(s){case "http://www.w3.org/2000/svg":return 1;case "http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function D4(s,c){if(s===0)switch(c){case "svg":return 1;case "math":return 2;default:return 0}return s===1&&c==="foreignObject"?0:s}function ZC(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var JC=null;function gX(){var s=window.event;return s&&s.type==="popstate"?s===JC?false:(JC=s,true):(JC=null,false)}var _4=typeof setTimeout=="function"?setTimeout:void 0,vX=typeof clearTimeout=="function"?clearTimeout:void 0,L4=typeof Promise=="function"?Promise:void 0,bX=typeof queueMicrotask=="function"?queueMicrotask:typeof L4<"u"?function(s){return L4.resolve(null).then(s).catch(yX)}:_4;function yX(s){setTimeout(function(){throw s});}function fl(s){return s==="head"}function B4(s,c){var h=c,v=0;do{var M=h.nextSibling;if(s.removeChild(h),M&&M.nodeType===8)if(h=M.data,h==="/$"||h==="/&"){if(v===0){s.removeChild(M),yd(c);return}v--;}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")v++;else if(h==="html")Vm(s.ownerDocument.documentElement);else if(h==="head"){h=s.ownerDocument.head,Vm(h);for(var A=h.firstChild;A;){var V=A.nextSibling,Z=A.nodeName;A[Nt]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&A.rel.toLowerCase()==="stylesheet"||h.removeChild(A),A=V;}}else h==="body"&&Vm(s.ownerDocument.body);h=M;}while(h);yd(c);}function z4(s,c){var h=s;s=0;do{var v=h.nextSibling;if(h.nodeType===1?c?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(c?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),v&&v.nodeType===8)if(h=v.data,h==="/$"){if(s===0)break;s--;}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||s++;h=v;}while(h)}function ex(s){var c=s.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var h=c;switch(c=c.nextSibling,h.nodeName){case "HTML":case "HEAD":case "BODY":ex(h),Wt(h);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(h.rel.toLowerCase()==="stylesheet")continue}s.removeChild(h);}}function SX(s,c,h,v){for(;s.nodeType===1;){var M=h;if(s.nodeName.toLowerCase()!==c.toLowerCase()){if(!v&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(v){if(!s[Nt])switch(c){case "meta":if(!s.hasAttribute("itemprop"))break;return s;case "link":if(A=s.getAttribute("rel"),A==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(A!==M.rel||s.getAttribute("href")!==(M.href==null||M.href===""?null:M.href)||s.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin)||s.getAttribute("title")!==(M.title==null?null:M.title))break;return s;case "style":if(s.hasAttribute("data-precedence"))break;return s;case "script":if(A=s.getAttribute("src"),(A!==(M.src==null?null:M.src)||s.getAttribute("type")!==(M.type==null?null:M.type)||s.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin))&&A&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(c==="input"&&s.type==="hidden"){var A=M.name==null?null:""+M.name;if(M.type==="hidden"&&s.getAttribute("name")===A)return s}else return s;if(s=Di(s.nextSibling),s===null)break}return null}function CX(s,c,h){if(c==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!h||(s=Di(s.nextSibling),s===null))return null;return s}function k4(s,c){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!c||(s=Di(s.nextSibling),s===null))return null;return s}function tx(s){return s.data==="$?"||s.data==="$~"}function nx(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function xX(s,c){var h=s.ownerDocument;if(s.data==="$~")s._reactRetry=c;else if(s.data!=="$?"||h.readyState!=="loading")c();else {var v=function(){c(),h.removeEventListener("DOMContentLoaded",v);};h.addEventListener("DOMContentLoaded",v),s._reactRetry=v;}}function Di(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"||c==="F!"||c==="F")break;if(c==="/$"||c==="/&")return null}}return s}var rx=null;function F4(s){s=s.nextSibling;for(var c=0;s;){if(s.nodeType===8){var h=s.data;if(h==="/$"||h==="/&"){if(c===0)return Di(s.nextSibling);c--;}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||c++;}s=s.nextSibling;}return null}function H4(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var h=s.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(c===0)return s;c--;}else h!=="/$"&&h!=="/&"||c++;}s=s.previousSibling;}return null}function V4(s,c,h){switch(c=Dv(h),s){case "html":if(s=c.documentElement,!s)throw Error(r(452));return s;case "head":if(s=c.head,!s)throw Error(r(453));return s;case "body":if(s=c.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Vm(s){for(var c=s.attributes;c.length;)s.removeAttributeNode(c[0]);Wt(s);}var _i=new Map,j4=new Set;function _v(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var vs=j.d;j.d={f:wX,r:$X,D:EX,C:MX,L:RX,m:TX,X:NX,S:AX,M:PX};function wX(){var s=vs.f(),c=Mv();return s||c}function $X(s){var c=tn(s);c!==null&&c.tag===5&&c.type==="form"?aP(c):vs.r(s);}var gd=typeof document>"u"?null:document;function U4(s,c,h){var v=gd;if(v&&typeof c=="string"&&c){var M=Ht(c);M='link[rel="'+s+'"][href="'+M+'"]',typeof h=="string"&&(M+='[crossorigin="'+h+'"]'),j4.has(M)||(j4.add(M),s={rel:s,crossOrigin:h,href:c},v.querySelector(M)===null&&(c=v.createElement("link"),Xr(c,"link",s),Sn(c),v.head.appendChild(c)));}}function EX(s){vs.D(s),U4("dns-prefetch",s,null);}function MX(s,c){vs.C(s,c),U4("preconnect",s,c);}function RX(s,c,h){vs.L(s,c,h);var v=gd;if(v&&s&&c){var M='link[rel="preload"][as="'+Ht(c)+'"]';c==="image"&&h&&h.imageSrcSet?(M+='[imagesrcset="'+Ht(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(M+='[imagesizes="'+Ht(h.imageSizes)+'"]')):M+='[href="'+Ht(s)+'"]';var A=M;switch(c){case "style":A=vd(s);break;case "script":A=bd(s);}_i.has(A)||(s=p({rel:"preload",href:c==="image"&&h&&h.imageSrcSet?void 0:s,as:c},h),_i.set(A,s),v.querySelector(M)!==null||c==="style"&&v.querySelector(jm(A))||c==="script"&&v.querySelector(Um(A))||(c=v.createElement("link"),Xr(c,"link",s),Sn(c),v.head.appendChild(c)));}}function TX(s,c){vs.m(s,c);var h=gd;if(h&&s){var v=c&&typeof c.as=="string"?c.as:"script",M='link[rel="modulepreload"][as="'+Ht(v)+'"][href="'+Ht(s)+'"]',A=M;switch(v){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":A=bd(s);}if(!_i.has(A)&&(s=p({rel:"modulepreload",href:s},c),_i.set(A,s),h.querySelector(M)===null)){switch(v){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(h.querySelector(Um(A)))return}v=h.createElement("link"),Xr(v,"link",s),Sn(v),h.head.appendChild(v);}}}function AX(s,c,h){vs.S(s,c,h);var v=gd;if(v&&s){var M=rr(v).hoistableStyles,A=vd(s);c=c||"default";var V=M.get(A);if(!V){var Z={loading:0,preload:null};if(V=v.querySelector(jm(A)))Z.loading=5;else {s=p({rel:"stylesheet",href:s,"data-precedence":c},h),(h=_i.get(A))&&ox(s,h);var le=V=v.createElement("link");Sn(le),Xr(le,"link",s),le._p=new Promise(function(Ee,Be){le.onload=Ee,le.onerror=Be;}),le.addEventListener("load",function(){Z.loading|=1;}),le.addEventListener("error",function(){Z.loading|=2;}),Z.loading|=4,Lv(V,c,v);}V={type:"stylesheet",instance:V,count:1,state:Z},M.set(A,V);}}}function NX(s,c){vs.X(s,c);var h=gd;if(h&&s){var v=rr(h).hoistableScripts,M=bd(s),A=v.get(M);A||(A=h.querySelector(Um(M)),A||(s=p({src:s,async:true},c),(c=_i.get(M))&&ix(s,c),A=h.createElement("script"),Sn(A),Xr(A,"link",s),h.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},v.set(M,A));}}function PX(s,c){vs.M(s,c);var h=gd;if(h&&s){var v=rr(h).hoistableScripts,M=bd(s),A=v.get(M);A||(A=h.querySelector(Um(M)),A||(s=p({src:s,async:true,type:"module"},c),(c=_i.get(M))&&ix(s,c),A=h.createElement("script"),Sn(A),Xr(A,"link",s),h.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},v.set(M,A));}}function W4(s,c,h,v){var M=(M=te.current)?_v(M):null;if(!M)throw Error(r(446));switch(s){case "meta":case "title":return null;case "style":return typeof h.precedence=="string"&&typeof h.href=="string"?(c=vd(h.href),h=rr(M).hoistableStyles,v=h.get(c),v||(v={type:"style",instance:null,count:0,state:null},h.set(c,v)),v):{type:"void",instance:null,count:0,state:null};case "link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){s=vd(h.href);var A=rr(M).hoistableStyles,V=A.get(s);if(V||(M=M.ownerDocument||M,V={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(s,V),(A=M.querySelector(jm(s)))&&!A._p&&(V.instance=A,V.state.loading=5),_i.has(s)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},_i.set(s,h),A||IX(M,s,h,V.state))),c&&v===null)throw Error(r(528,""));return V}if(c&&v!==null)throw Error(r(529,""));return null;case "script":return c=h.async,h=h.src,typeof h=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=bd(h),h=rr(M).hoistableScripts,v=h.get(c),v||(v={type:"script",instance:null,count:0,state:null},h.set(c,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function vd(s){return 'href="'+Ht(s)+'"'}function jm(s){return 'link[rel="stylesheet"]['+s+"]"}function q4(s){return p({},s,{"data-precedence":s.precedence,precedence:null})}function IX(s,c,h,v){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?v.loading=1:(c=s.createElement("link"),v.preload=c,c.addEventListener("load",function(){return v.loading|=1}),c.addEventListener("error",function(){return v.loading|=2}),Xr(c,"link",h),Sn(c),s.head.appendChild(c));}function bd(s){return '[src="'+Ht(s)+'"]'}function Um(s){return "script[async]"+s}function G4(s,c,h){if(c.count++,c.instance===null)switch(c.type){case "style":var v=s.querySelector('style[data-href~="'+Ht(h.href)+'"]');if(v)return c.instance=v,Sn(v),v;var M=p({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(s.ownerDocument||s).createElement("style"),Sn(v),Xr(v,"style",M),Lv(v,h.precedence,s),c.instance=v;case "stylesheet":M=vd(h.href);var A=s.querySelector(jm(M));if(A)return c.state.loading|=4,c.instance=A,Sn(A),A;v=q4(h),(M=_i.get(M))&&ox(v,M),A=(s.ownerDocument||s).createElement("link"),Sn(A);var V=A;return V._p=new Promise(function(Z,le){V.onload=Z,V.onerror=le;}),Xr(A,"link",v),c.state.loading|=4,Lv(A,h.precedence,s),c.instance=A;case "script":return A=bd(h.src),(M=s.querySelector(Um(A)))?(c.instance=M,Sn(M),M):(v=h,(M=_i.get(A))&&(v=p({},h),ix(v,M)),s=s.ownerDocument||s,M=s.createElement("script"),Sn(M),Xr(M,"link",v),s.head.appendChild(M),c.instance=M);case "void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(v=c.instance,c.state.loading|=4,Lv(v,h.precedence,s));return c.instance}function Lv(s,c,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),M=v.length?v[v.length-1]:null,A=M,V=0;V<v.length;V++){var Z=v[V];if(Z.dataset.precedence===c)A=Z;else if(A!==M)break}A?A.parentNode.insertBefore(s,A.nextSibling):(c=h.nodeType===9?h.head:h,c.insertBefore(s,c.firstChild));}function ox(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.title==null&&(s.title=c.title);}function ix(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.integrity==null&&(s.integrity=c.integrity);}var Bv=null;function K4(s,c,h){if(Bv===null){var v=new Map,M=Bv=new Map;M.set(h,v);}else M=Bv,v=M.get(h),v||(v=new Map,M.set(h,v));if(v.has(s))return v;for(v.set(s,null),h=h.getElementsByTagName(s),M=0;M<h.length;M++){var A=h[M];if(!(A[Nt]||A[At]||s==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var V=A.getAttribute(c)||"";V=s+V;var Z=v.get(V);Z?Z.push(A):v.set(V,[A]);}}return v}function Y4(s,c,h){s=s.ownerDocument||s,s.head.insertBefore(h,c==="title"?s.querySelector("head > title"):null);}function OX(s,c,h){if(h===1||c.itemProp!=null)return  false;switch(s){case "meta":case "title":return  true;case "style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return  true;case "link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;return c.rel==="stylesheet"?(s=c.disabled,typeof c.precedence=="string"&&s==null):true;case "script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return  true}return  false}function X4(s){return !(s.type==="stylesheet"&&(s.state.loading&3)===0)}function DX(s,c,h,v){if(h.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==false)&&(h.state.loading&4)===0){if(h.instance===null){var M=vd(v.href),A=c.querySelector(jm(M));if(A){c=A._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(s.count++,s=zv.bind(s),c.then(s,s)),h.state.loading|=4,h.instance=A,Sn(A);return}A=c.ownerDocument||c,v=q4(v),(M=_i.get(M))&&ox(v,M),A=A.createElement("link"),Sn(A);var V=A;V._p=new Promise(function(Z,le){V.onload=Z,V.onerror=le;}),Xr(A,"link",v),h.instance=A;}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(h,c),(c=h.state.preload)&&(h.state.loading&3)===0&&(s.count++,h=zv.bind(s),c.addEventListener("load",h),c.addEventListener("error",h));}}var ax=0;function _X(s,c){return s.stylesheets&&s.count===0&&Fv(s,s.stylesheets),0<s.count||0<s.imgCount?function(h){var v=setTimeout(function(){if(s.stylesheets&&Fv(s,s.stylesheets),s.unsuspend){var A=s.unsuspend;s.unsuspend=null,A();}},6e4+c);0<s.imgBytes&&ax===0&&(ax=62500*pX());var M=setTimeout(function(){if(s.waitingForImages=false,s.count===0&&(s.stylesheets&&Fv(s,s.stylesheets),s.unsuspend)){var A=s.unsuspend;s.unsuspend=null,A();}},(s.imgBytes>ax?50:800)+c);return s.unsuspend=h,function(){s.unsuspend=null,clearTimeout(v),clearTimeout(M);}}:null}function zv(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fv(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s();}}}var kv=null;function Fv(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,kv=new Map,c.forEach(LX,s),kv=null,zv.call(s));}function LX(s,c){if(!(c.state.loading&4)){var h=kv.get(s);if(h)var v=h.get(null);else {h=new Map,kv.set(s,h);for(var M=s.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<M.length;A++){var V=M[A];(V.nodeName==="LINK"||V.getAttribute("media")!=="not all")&&(h.set(V.dataset.precedence,V),v=V);}v&&h.set(null,v);}M=c.instance,V=M.getAttribute("data-precedence"),A=h.get(V)||v,A===v&&h.set(null,M),h.set(V,M),this.count++,v=zv.bind(this),M.addEventListener("load",v),M.addEventListener("error",v),A?A.parentNode.insertBefore(M,A.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(M,s.firstChild)),c.state.loading|=4;}}var Wm={$$typeof:E,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function BX(s,c,h,v,M,A,V,Z,le){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ye(0),this.hiddenUpdates=ye(null),this.identifierPrefix=v,this.onUncaughtError=M,this.onCaughtError=A,this.onRecoverableError=V,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=le,this.incompleteTransitions=new Map;}function Q4(s,c,h,v,M,A,V,Z,le,Ee,Be,Ve){return s=new BX(s,c,h,V,le,Ee,Be,Ve,Z),c=1,A===true&&(c|=24),A=ri(3,null,null,c),s.current=A,A.stateNode=s,c=kS(),c.refCount++,s.pooledCache=c,c.refCount++,A.memoizedState={element:v,isDehydrated:h,cache:c},jS(A),s}function Z4(s){return s?(s=Yu,s):Yu}function J4(s,c,h,v,M,A){M=Z4(M),v.context===null?v.context=M:v.pendingContext=M,v=tl(c),v.payload={element:h},A=A===void 0?null:A,A!==null&&(v.callback=A),h=nl(s,v,c),h!==null&&(Uo(h,s,c),wm(h,s,c));}function e5(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var h=s.retryLane;s.retryLane=h!==0&&h<c?h:c;}}function sx(s,c){e5(s,c),(s=s.alternate)&&e5(s,c);}function t5(s){if(s.tag===13||s.tag===31){var c=gc(s,67108864);c!==null&&Uo(c,s,67108864),sx(s,67108864);}}function n5(s){if(s.tag===13||s.tag===31){var c=li();c=Ye(c);var h=gc(s,c);h!==null&&Uo(h,s,c),sx(s,c);}}var Hv=true;function zX(s,c,h,v){var M=z.T;z.T=null;var A=j.p;try{j.p=2,lx(s,c,h,v);}finally{j.p=A,z.T=M;}}function kX(s,c,h,v){var M=z.T;z.T=null;var A=j.p;try{j.p=8,lx(s,c,h,v);}finally{j.p=A,z.T=M;}}function lx(s,c,h,v){if(Hv){var M=cx(v);if(M===null)KC(s,c,v,Vv,h),o5(s,v);else if(HX(M,s,c,h,v))v.stopPropagation();else if(o5(s,v),c&4&&-1<FX.indexOf(s)){for(;M!==null;){var A=tn(M);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var V=ft(A.pendingLanes);if(V!==0){var Z=A;for(Z.pendingLanes|=2,Z.entangledLanes|=2;V;){var le=1<<31-ct(V);Z.entanglements[1]|=le,V&=~le;}Pa(A),(Cn&6)===0&&($v=Ne()+500,km(0));}}break;case 31:case 13:Z=gc(A,2),Z!==null&&Uo(Z,A,2),Mv(),sx(A,2);}if(A=cx(v),A===null&&KC(s,c,v,Vv,h),A===M)break;M=A;}M!==null&&v.stopPropagation();}else KC(s,c,v,null,h);}}function cx(s){return s=dS(s),ux(s)}var Vv=null;function ux(s){if(Vv=null,s=Jt(s),s!==null){var c=i(s);if(c===null)s=null;else {var h=c.tag;if(h===13){if(s=a(c),s!==null)return s;s=null;}else if(h===31){if(s=l(c),s!==null)return s;s=null;}else if(h===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null;}else c!==s&&(s=null);}}return Vv=s,null}function r5(s){switch(s){case "beforetoggle":case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "toggle":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return 2;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return 8;case "message":switch(He()){case We:return 2;case je:return 8;case nt:case ot:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var dx=false,ml=null,hl=null,pl=null,qm=new Map,Gm=new Map,gl=[],FX="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function o5(s,c){switch(s){case "focusin":case "focusout":ml=null;break;case "dragenter":case "dragleave":hl=null;break;case "mouseover":case "mouseout":pl=null;break;case "pointerover":case "pointerout":qm.delete(c.pointerId);break;case "gotpointercapture":case "lostpointercapture":Gm.delete(c.pointerId);}}function Km(s,c,h,v,M,A){return s===null||s.nativeEvent!==A?(s={blockedOn:c,domEventName:h,eventSystemFlags:v,nativeEvent:A,targetContainers:[M]},c!==null&&(c=tn(c),c!==null&&t5(c)),s):(s.eventSystemFlags|=v,c=s.targetContainers,M!==null&&c.indexOf(M)===-1&&c.push(M),s)}function HX(s,c,h,v,M){switch(c){case "focusin":return ml=Km(ml,s,c,h,v,M),true;case "dragenter":return hl=Km(hl,s,c,h,v,M),true;case "mouseover":return pl=Km(pl,s,c,h,v,M),true;case "pointerover":var A=M.pointerId;return qm.set(A,Km(qm.get(A)||null,s,c,h,v,M)),true;case "gotpointercapture":return A=M.pointerId,Gm.set(A,Km(Gm.get(A)||null,s,c,h,v,M)),true}return  false}function i5(s){var c=Jt(s.target);if(c!==null){var h=i(c);if(h!==null){if(c=h.tag,c===13){if(c=a(h),c!==null){s.blockedOn=c,$t(s.priority,function(){n5(h);});return}}else if(c===31){if(c=l(h),c!==null){s.blockedOn=c,$t(s.priority,function(){n5(h);});return}}else if(c===3&&h.stateNode.current.memoizedState.isDehydrated){s.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}s.blockedOn=null;}function jv(s){if(s.blockedOn!==null)return  false;for(var c=s.targetContainers;0<c.length;){var h=cx(s.nativeEvent);if(h===null){h=s.nativeEvent;var v=new h.constructor(h.type,h);uS=v,h.target.dispatchEvent(v),uS=null;}else return c=tn(h),c!==null&&t5(c),s.blockedOn=h,false;c.shift();}return  true}function a5(s,c,h){jv(s)&&h.delete(c);}function VX(){dx=false,ml!==null&&jv(ml)&&(ml=null),hl!==null&&jv(hl)&&(hl=null),pl!==null&&jv(pl)&&(pl=null),qm.forEach(a5),Gm.forEach(a5);}function Uv(s,c){s.blockedOn===c&&(s.blockedOn=null,dx||(dx=true,e.unstable_scheduleCallback(e.unstable_NormalPriority,VX)));}var Wv=null;function s5(s){Wv!==s&&(Wv=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wv===s&&(Wv=null);for(var c=0;c<s.length;c+=3){var h=s[c],v=s[c+1],M=s[c+2];if(typeof v!="function"){if(ux(v||h)===null)continue;break}var A=tn(h);A!==null&&(s.splice(c,3),c-=3,cC(A,{pending:true,data:M,method:h.method,action:v},v,M));}}));}function yd(s){function c(le){return Uv(le,s)}ml!==null&&Uv(ml,s),hl!==null&&Uv(hl,s),pl!==null&&Uv(pl,s),qm.forEach(c),Gm.forEach(c);for(var h=0;h<gl.length;h++){var v=gl[h];v.blockedOn===s&&(v.blockedOn=null);}for(;0<gl.length&&(h=gl[0],h.blockedOn===null);)i5(h),h.blockedOn===null&&gl.shift();if(h=(s.ownerDocument||s).$$reactFormReplay,h!=null)for(v=0;v<h.length;v+=3){var M=h[v],A=h[v+1],V=M[yn]||null;if(typeof A=="function")V||s5(h);else if(V){var Z=null;if(A&&A.hasAttribute("formAction")){if(M=A,V=A[yn]||null)Z=V.formAction;else if(ux(M)!==null)continue}else Z=V.action;typeof Z=="function"?h[v+1]=Z:(h.splice(v,3),v-=3),s5(h);}}}function l5(){function s(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(V){return M=V})},focusReset:"manual",scroll:"manual"});}function c(){M!==null&&(M(),M=null),v||setTimeout(h,20);}function h(){if(!v&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"});}}if(typeof navigation=="object"){var v=false,M=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",c),navigation.addEventListener("navigateerror",c),setTimeout(h,100),function(){v=true,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",c),navigation.removeEventListener("navigateerror",c),M!==null&&(M(),M=null);}}}function fx(s){this._internalRoot=s;}qv.prototype.render=fx.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));var h=c.current,v=li();J4(h,v,s,c,null,null);},qv.prototype.unmount=fx.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;J4(s.current,2,null,s,null,null),Mv(),c[Un]=null;}};function qv(s){this._internalRoot=s;}qv.prototype.unstable_scheduleHydration=function(s){if(s){var c=dt();s={blockedOn:null,target:s,priority:c};for(var h=0;h<gl.length&&c!==0&&c<gl[h].priority;h++);gl.splice(h,0,s),h===0&&i5(s);}};var c5=t.version;if(c5!=="19.2.4")throw Error(r(527,c5,"19.2.4"));j.findDOMNode=function(s){var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=d(c),s=s!==null?m(s):null,s=s===null?null:s.stateNode,s};var jX={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gv.isDisabled&&Gv.supportsFiber)try{Je=Gv.inject(jX),Le=Gv;}catch{}}return eh.createRoot=function(s,c){if(!o(s))throw Error(r(299));var h=false,v="",M=gP,A=vP,V=bP;return c!=null&&(c.unstable_strictMode===true&&(h=true),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(M=c.onUncaughtError),c.onCaughtError!==void 0&&(A=c.onCaughtError),c.onRecoverableError!==void 0&&(V=c.onRecoverableError)),c=Q4(s,1,false,null,null,h,v,null,M,A,V,l5),s[Un]=c.current,GC(s),new fx(c)},eh.hydrateRoot=function(s,c,h){if(!o(s))throw Error(r(299));var v=false,M="",A=gP,V=vP,Z=bP,le=null;return h!=null&&(h.unstable_strictMode===true&&(v=true),h.identifierPrefix!==void 0&&(M=h.identifierPrefix),h.onUncaughtError!==void 0&&(A=h.onUncaughtError),h.onCaughtError!==void 0&&(V=h.onCaughtError),h.onRecoverableError!==void 0&&(Z=h.onRecoverableError),h.formState!==void 0&&(le=h.formState)),c=Q4(s,1,true,c,h??null,v,M,le,A,V,Z,l5),c.context=Z4(null),h=c.current,v=li(),v=Ye(v),M=tl(v),M.callback=null,nl(h,M,v),h=v,c.current.lanes=h,Ce(c,h),Pa(c),s[Un]=c.current,GC(s),new qv(c)},eh.version="19.2.4",eh}var JI;function yre(){if(JI)return _x.exports;JI=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);}catch(t){console.error(t);}}return e(),_x.exports=bre(),_x.exports}var Za=yre();const z0="__rc_react_root__";function n1(e,t){const n=t[z0]||Za.createRoot(t);n.render(e),t[z0]=n;}async function Pk(e){return Promise.resolve().then(()=>{e[z0]?.unmount(),delete e[z0];})}const zx=()=>({height:0,opacity:0}),eO=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},Sre=e=>({height:e?e.offsetHeight:0}),kx=(e,t)=>t?.deadline===true||t.propertyName==="height",Ik=(e=sp)=>({motionName:`${e}-motion-collapse`,onAppearStart:zx,onEnterStart:zx,onAppearActive:eO,onEnterActive:eO,onLeaveStart:Sre,onLeaveActive:zx,onAppearEnd:kx,onEnterEnd:kx,onLeaveEnd:kx,motionDeadline:500}),Vl=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Cre=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:i,antCls:a}=e,[,l]=tr(a,"wave");return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(u=>`${u} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(u=>`${u} ${r} ${o}`).join(",")}}}}},xre=ste("Wave",Cre),r1=`${sp}-wave-target`;function tO(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function wre(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:i}=n;return t&&tO(n[t])?n[t]:[r,o,i].find(tO)??null}function Fx(e){return Number.isNaN(e)?0:e}const $re=e=>{const{className:t,target:n,component:r,colorSource:o}=e,i=f.useRef(null),{getPrefixCls:a}=f.useContext(wt),l=a(),[u]=tr(l,"wave"),[d,m]=f.useState(null),[p,g]=f.useState([]),[b,y]=f.useState(0),[S,C]=f.useState(0),[w,$]=f.useState(0),[E,T]=f.useState(0),[R,I]=f.useState(false),N={left:b,top:S,width:w,height:E,borderRadius:p.map(_=>`${_}px`).join(" ")};d&&(N[u("color")]=d);function P(){const _=getComputedStyle(n);m(wre(n,o));const L=_.position==="static",{borderLeftWidth:k,borderTopWidth:W}=_;y(L?n.offsetLeft:Fx(-Number.parseFloat(k))),C(L?n.offsetTop:Fx(-Number.parseFloat(W))),$(n.offsetWidth),T(n.offsetHeight);const{borderTopLeftRadius:q,borderTopRightRadius:F,borderBottomLeftRadius:z,borderBottomRightRadius:j}=_;g([q,F,j,z].map(U=>Fx(Number.parseFloat(U))));}if(f.useEffect(()=>{if(n){const _=Bt(()=>{P(),I(true);});let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver(P),L.observe(n)),()=>{Bt.cancel(_),L?.disconnect();}}},[n]),!R)return null;const O=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(r1);return f.createElement(wo,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,L)=>{if(L.deadline||L.propertyName==="opacity"){const k=i.current?.parentElement;Pk(k).then(()=>{k?.remove();});}return  false}},({className:_},L)=>f.createElement("div",{ref:Ur(i,L),className:X(t,_,{"wave-quick":O}),style:N}))},Ere=(e,t)=>{const{component:n}=t;if(n==="Checkbox"&&!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),n1(f.createElement($re,{...t,target:e}),r);},Mre=(e,t,n,r)=>{const{wave:o}=f.useContext(wt),[,i,a]=Wr(),l=Mt(m=>{const p=e.current;if(o?.disabled||!p)return;const g=p.querySelector(`.${r1}`)||p,{showEffect:b}=o||{};(b||Ere)(g,{className:t,token:i,component:n,event:m,hashId:a,colorSource:r});}),u=f.useRef(null);return f.useEffect(()=>()=>{Bt.cancel(u.current);},[]),m=>{Bt.cancel(u.current),u.current=Bt(()=>{l(m);});}},eg=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:i}=f.useContext(wt),a=f.useRef(null),l=i("wave"),u=xre(l),d=Mre(a,X(l,u),r,o);if(G.useEffect(()=>{const p=a.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=b=>{!aR(b.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")&&!p.className.includes("disabled:")||p.getAttribute("aria-disabled")==="true"||p.className.includes("-leave")||d(b);};return p.addEventListener("click",g,true),()=>{p.removeEventListener("click",g,true);}},[n]),!G.isValidElement(t))return t??null;const m=Tu(t)?Ur(tc(t),a):a;return jr(t,{ref:m})},lo=e=>{const t=G.useContext(hf);return G.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Rre=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Tre=qt(["Space","Compact"],Rre,()=>({}),{resetStyle:false}),o1=f.createContext(null),Fs=(e,t)=>{const n=f.useContext(o1),r=f.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return X(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Are=e=>{const{children:t}=e;return f.createElement(o1.Provider,{value:null},t)},Nre=e=>{const{children:t,...n}=e;return f.createElement(o1.Provider,{value:f.useMemo(()=>n,[n])},t)},uR=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{size:r,direction:o,orientation:i,block:a,prefixCls:l,className:u,rootClassName:d,children:m,vertical:p,...g}=e,[b,y]=Nu(i,p,o),S=lo(I=>r??I),C=t("space-compact",l),[w]=Tre(C),$=X(C,w,{[`${C}-rtl`]:n==="rtl",[`${C}-block`]:a,[`${C}-vertical`]:y},u,d),E=f.useContext(o1),T=Zo(m),R=f.useMemo(()=>T.map((I,N)=>{const P=I?.key||`${C}-item-${N}`;return f.createElement(Nre,{key:P,compactSize:S,compactDirection:b,isFirstItem:N===0&&(!E||E?.isFirstItem),isLastItem:N===T.length-1&&(!E||E?.isLastItem)},I)}),[T,E,b,S,C]);return T.length===0?null:f.createElement("div",{className:$,...g},R)},Ok=f.createContext(void 0),Pre=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{prefixCls:r,size:o,className:i,...a}=e,l=t("btn-group",r),[,,u]=Wr(),d=f.useMemo(()=>{switch(o){case "large":return "lg";case "small":return "sm";default:return ""}},[o]),m=X(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},i,u);return f.createElement(Ok.Provider,{value:o},f.createElement("div",{...a,className:m}))},nO=/^[\u4E00-\u9FA5]{2}$/,K2=nO.test.bind(nO);function dR(e){return e==="danger"?{danger:true}:{type:e}}function rO(e){return typeof e=="string"}function Hx(e){return e==="text"||e==="link"}function Ire(e,t,n,r){if(!Pr(e)||e==="")return;const o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&rO(e.type)&&K2(e.props.children)?jr(e,i=>{const a=X(i.className,r)||void 0,l={...n,...i.style};return {...i,children:i.children.split("").join(o),className:a,style:l}}):rO(e)?G.createElement("span",{className:r,style:n},K2(e)?e.split("").join(o):e):vk(e)?G.createElement("span",{className:r,style:n},e):jr(e,i=>({...i,className:X(i.className,r)||void 0,style:{...i.style,...n}}))}function Ore(e,t,n,r){let o=false;const i=[];return G.Children.forEach(e,a=>{const l=typeof a,u=l==="string"||l==="number";if(o&&u){const d=i.length-1,m=i[d];i[d]=`${m}${a}`;}else i.push(a);o=u;}),G.Children.map(i,a=>Ire(a,t,n,r))}["default","primary","danger"].concat(Zt(qa));const Dk=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=X(`${i}-icon`,n);return G.createElement("span",{ref:t,className:a,style:r},o)}),oO=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=X(`${n}-loading-icon`,r);return G.createElement(Dk,{prefixCls:n,className:a,style:o,ref:t},G.createElement(t1,{className:i}))}),Vx=()=>({width:0,opacity:0,transform:"scale(0)"}),jx=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Dre=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,l=!!n;return r?G.createElement(oO,{prefixCls:t,className:o,style:i}):G.createElement(wo,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:Vx,onAppearActive:jx,onEnterStart:Vx,onEnterActive:jx,onLeaveStart:jx,onLeaveActive:Vx},({className:u,style:d},m)=>{const p={...i,...d};return G.createElement(oO,{prefixCls:t,className:X(o,u),style:p,ref:m})})},_k=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:o}=e;return {[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(i=>`${i} ${r} ${o}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(i=>`${i} ${r} ${o}`).join(", ")} !important`}}}},_re=e=>({animationDuration:e,animationFillMode:"both"}),Lre=e=>({animationDuration:e,animationFillMode:"both"}),i1=(e,t,n,r,o=false)=>{const i=o?"&":"";return {[`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]:{..._re(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...Lre(r),animationPlayState:"paused"},[`
      ${i}${e}-enter${e}-enter-active,
      ${i}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Bre=new zt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),zre=new zt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),fR=(e,t=false)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return [i1(r,Bre,zre,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},kre=new zt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fre=new zt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Hre=new zt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vre=new zt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jre=new zt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ure=new zt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Wre=new zt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qre=new zt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Gre={"move-up":{inKeyframes:Wre,outKeyframes:qre},"move-down":{inKeyframes:kre,outKeyframes:Fre},"move-left":{inKeyframes:Hre,outKeyframes:Vre},"move-right":{inKeyframes:jre,outKeyframes:Ure}},k0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Gre[t];return [i1(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},mR=new zt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),hR=new zt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),pR=new zt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),gR=new zt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Kre=new zt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Yre=new zt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Xre=new zt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Qre=new zt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Zre={"slide-up":{inKeyframes:mR,outKeyframes:hR},"slide-down":{inKeyframes:pR,outKeyframes:gR},"slide-left":{inKeyframes:Kre,outKeyframes:Yre},"slide-right":{inKeyframes:Xre,outKeyframes:Qre}},jl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Zre[t];return [i1(r,o,i,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ts=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),Jre=new zt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),eoe=new zt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),iO=new zt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),aO=new zt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),toe=new zt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),noe=new zt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),roe=new zt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ooe=new zt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ioe=new zt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),aoe=new zt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),soe=new zt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),loe=new zt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),coe={zoom:{inKeyframes:Jre,outKeyframes:eoe},"zoom-big":{inKeyframes:iO,outKeyframes:aO},"zoom-big-fast":{inKeyframes:iO,outKeyframes:aO},"zoom-left":{inKeyframes:roe,outKeyframes:ooe},"zoom-right":{inKeyframes:ioe,outKeyframes:aoe},"zoom-up":{inKeyframes:toe,outKeyframes:noe},"zoom-down":{inKeyframes:soe,outKeyframes:loe}},tg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=coe[t];return [i1(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},sO=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),uoe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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(r).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}},sO(`${t}-primary`,o),sO(`${t}-danger`,i)]}},Ux=e=>Math.round(Number(e||0)),doe=e=>{if(e instanceof cn)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return {...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Sa extends cn{constructor(t){super(doe(t));}toHsbString(){const t=this.toHsb(),n=Ux(t.s*100),r=Ux(t.b*100),o=Ux(t.h),i=t.a,a=`hsb(${o}, ${n}%, ${r}%)`,l=`hsba(${o}, ${n}%, ${r}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:l}toHsb(){const{v:t,...n}=this.toHsv();return {...n,b:t,a:this.a}}}const foe="rc-color-picker",Zd=e=>e instanceof Sa?e:new Sa(e),moe=Zd("#1677ff"),Lk=e=>{const{offset:t,targetRef:n,containerRef:r,color:o,type:i}=e,{width:a,height:l}=r.current.getBoundingClientRect(),{width:u,height:d}=n.current.getBoundingClientRect(),m=u/2,p=d/2,g=(t.x+m)/a,b=1-(t.y+p)/l,y=o.toHsb(),S=g,C=(t.x+m)/a*360;if(i)switch(i){case "hue":return Zd({...y,h:C<=0?0:C});case "alpha":return Zd({...y,a:S<=0?0:S})}return Zd({h:y.h,s:g<=0?0:g,b:b>=1?1:b,a:y.a})},Bk=(e,t)=>{const n=e.toHsb();switch(t){case "hue":return {x:n.h/360*100,y:50};case "alpha":return {x:e.a*100,y:50};default:return {x:n.s*100,y:(1-n.b)*100}}},vR=({color:e,prefixCls:t,className:n,style:r,innerClassName:o,innerStyle:i,onClick:a})=>{const l=`${t}-color-block`;return G.createElement("div",{className:X(l,n),style:r,onClick:a},G.createElement("div",{className:X(`${l}-inner`,o),style:{background:e,...i}}))};function hoe(e){const t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return {pageX:t.pageX-n,pageY:t.pageY-r}}function zk(e){const{targetRef:t,containerRef:n,direction:r,onDragChange:o,onDragChangeComplete:i,calculate:a,color:l,disabledDrag:u}=e,[d,m]=f.useState({x:0,y:0}),p=f.useRef(null),g=f.useRef(null);f.useEffect(()=>{m(a());},[l]),f.useEffect(()=>()=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",g.current),p.current=null,g.current=null;},[]);const b=w=>{const{pageX:$,pageY:E}=hoe(w),{x:T,y:R,width:I,height:N}=n.current.getBoundingClientRect(),{width:P,height:O}=t.current.getBoundingClientRect(),_=P/2,L=O/2,k=Math.max(0,Math.min($-T,I))-_,W=Math.max(0,Math.min(E-R,N))-L,q={x:k,y:r==="x"?d.y:W};if(P===0&&O===0||P!==O)return  false;o?.(q);},y=w=>{w.preventDefault(),b(w);},S=w=>{w.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",g.current),p.current=null,g.current=null,i?.();};return [d,w=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",g.current),!u&&(b(w),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),p.current=y,g.current=S);}]}const kk=({size:e="default",color:t,prefixCls:n})=>G.createElement("div",{className:X(`${n}-handler`,{[`${n}-handler-sm`]:e==="small"}),style:{backgroundColor:t}}),Fk=({children:e,style:t,prefixCls:n})=>G.createElement("div",{className:`${n}-palette`,style:{position:"relative",...t}},e),Hk=f.forwardRef((e,t)=>{const{children:n,x:r,y:o}=e;return G.createElement("div",{ref:t,style:{position:"absolute",left:`${r}%`,top:`${o}%`,zIndex:1,transform:"translate(-50%, -50%)"}},n)}),poe=({color:e,onChange:t,prefixCls:n,onChangeComplete:r,disabled:o})=>{const i=f.useRef(),a=f.useRef(),l=f.useRef(e),u=Mt(p=>{const g=Lk({offset:p,targetRef:a,containerRef:i,color:e});l.current=g,t(g);}),[d,m]=zk({color:e,containerRef:i,targetRef:a,calculate:()=>Bk(e),onDragChange:u,onDragChangeComplete:()=>r?.(l.current),disabledDrag:o});return G.createElement("div",{ref:i,className:`${n}-select`,onMouseDown:m,onTouchStart:m},G.createElement(Fk,{prefixCls:n},G.createElement(Hk,{x:d.x,y:d.y,ref:a},G.createElement(kk,{color:e.toRgbString(),prefixCls:n})),G.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))"}})))},goe=(e,t)=>{const[n,r]=un(e,t);return [f.useMemo(()=>Zd(n),[n]),r]},voe=({colors:e,children:t,direction:n="to right",type:r,prefixCls:o})=>{const i=f.useMemo(()=>e.map((a,l)=>{let u=Zd(a);return r==="alpha"&&l===e.length-1&&(u=new Sa(u.setA(1))),u.toRgbString()}).join(","),[e,r]);return G.createElement("div",{className:`${o}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${n}, ${i})`}},t)},boe=e=>{const{prefixCls:t,colors:n,disabled:r,onChange:o,onChangeComplete:i,color:a,type:l}=e,u=f.useRef(null),d=f.useRef(null),m=f.useRef(a),p=w=>l==="hue"?w.getHue():w.a*100,g=Mt(w=>{const $=Lk({offset:w,targetRef:d,containerRef:u,color:a,type:l});m.current=$,o(p($));}),[b,y]=zk({color:a,targetRef:d,containerRef:u,calculate:()=>Bk(a,l),onDragChange:g,onDragChangeComplete(){i(p(m.current));},direction:"x",disabledDrag:r}),S=G.useMemo(()=>{if(l==="hue"){const w=a.toHsb();return w.s=1,w.b=1,w.a=1,new Sa(w)}return a},[a,l]),C=G.useMemo(()=>n.map(w=>`${w.color} ${w.percent}%`),[n]);return G.createElement("div",{ref:u,className:X(`${t}-slider`,`${t}-slider-${l}`),onMouseDown:y,onTouchStart:y},G.createElement(Fk,{prefixCls:t},G.createElement(Hk,{x:b.x,y:b.y,ref:d},G.createElement(kk,{size:"small",color:S.toHexString(),prefixCls:t})),G.createElement(voe,{colors:C,type:l,prefixCls:t})))};function yoe(e){return f.useMemo(()=>{const{slider:t}=e||{};return [t||boe]},[e])}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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Bh.apply(this,arguments)}const Soe=[{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}],Coe=f.forwardRef((e,t)=>{const{value:n,defaultValue:r,prefixCls:o=foe,onChange:i,onChangeComplete:a,className:l,style:u,panelRender:d,disabledAlpha:m=false,disabled:p=false,components:g}=e,[b]=yoe(g),[y,S]=goe(r||moe,n),C=f.useMemo(()=>y.setA(1).toRgbString(),[y]),w=(L,k)=>{n||S(L),i?.(L,k);},$=L=>new Sa(y.setHue(L)),E=L=>new Sa(y.setA(L/100)),T=L=>{w($(L),{type:"hue",value:L});},R=L=>{w(E(L),{type:"alpha",value:L});},I=L=>{a&&a($(L));},N=L=>{a&&a(E(L));},P=X(`${o}-panel`,l,{[`${o}-panel-disabled`]:p}),O={prefixCls:o,disabled:p,color:y},_=G.createElement(G.Fragment,null,G.createElement(poe,Bh({onChange:w},O,{onChangeComplete:a})),G.createElement("div",{className:`${o}-slider-container`},G.createElement("div",{className:X(`${o}-slider-group`,{[`${o}-slider-group-disabled-alpha`]:m})},G.createElement(b,Bh({},O,{type:"hue",colors:Soe,min:0,max:359,value:y.getHue(),onChange:T,onChangeComplete:I})),!m&&G.createElement(b,Bh({},O,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:C}],min:0,max:100,value:y.a*100,onChange:R,onChangeComplete:N}))),G.createElement(vR,{color:y.toRgbString(),prefixCls:o})));return G.createElement("div",{className:P,style:u,ref:t},typeof d=="function"?d(_):_)}),$h=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",xoe=(e,t)=>e?$h(e,t):"";let Ko=(function(){function e(t){if(Xi(this,e),this.cleared=false,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:r,percent:o})=>({color:new e(r),percent:o})),this.metaColor=new Sa(this.colors[0].color.metaColor)):this.metaColor=new Sa(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}return Qi(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return xoe(this.toHexString(),this.metaColor.a<1)}},{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:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return !n||this.isGradient()!==n.isGradient()?false:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])})();var woe={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 Y2(){return Y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Y2.apply(this,arguments)}const $oe=(e,t)=>f.createElement(Xn,Y2({},e,{ref:t,icon:woe})),pf=f.forwardRef($oe),Eoe=G.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:o,style:i,children:a,isActive:l,role:u,classNames:d,styles:m}=e,[p,g]=G.useState(l||r);return G.useEffect(()=>{(r||l)&&g(true);},[r,l]),p?G.createElement("div",{ref:t,className:X(`${n}-panel`,{[`${n}-panel-active`]:l,[`${n}-panel-inactive`]:!l},o),style:i,role:u},G.createElement("div",{className:X(`${n}-body`,d?.body),style:m?.body},a)):null}),Vk=G.forwardRef((e,t)=>{const{showArrow:n=true,headerClass:r,isActive:o,onItemClick:i,forceRender:a,className:l,classNames:u={},styles:d={},prefixCls:m,collapsible:p,accordion:g,panelKey:b,extra:y,header:S,expandIcon:C,openMotion:w,destroyOnHidden:$,children:E,...T}=e,R=p==="disabled",I=y!=null&&typeof y!="boolean",N={onClick:()=>{i?.(b);},onKeyDown:W=>{(W.key==="Enter"||W.keyCode===at.ENTER||W.which===at.ENTER)&&i?.(b);},role:g?"tab":"button","aria-expanded":o,"aria-disabled":R,tabIndex:R?-1:0},P=typeof C=="function"?C(e):G.createElement("i",{className:"arrow"}),O=P&&G.createElement("div",cr({className:X(`${m}-expand-icon`,u?.icon),style:d?.icon},["header","icon"].includes(p)?N:{}),P),_=X(`${m}-item`,{[`${m}-item-active`]:o,[`${m}-item-disabled`]:R},l),k={className:X(r,`${m}-header`,{[`${m}-collapsible-${p}`]:!!p},u?.header),style:d?.header,...["header","icon"].includes(p)?{}:N};return G.createElement("div",cr({},T,{ref:t,className:_}),G.createElement("div",k,n&&O,G.createElement("span",cr({className:X(`${m}-title`,u?.title),style:d?.title},p==="header"?N:{}),S),I&&G.createElement("div",{className:`${m}-extra`},y)),G.createElement(wo,cr({visible:o,leavedClassName:`${m}-panel-hidden`},w,{forceRender:a,removeOnLeave:$}),({className:W,style:q},F)=>G.createElement(Eoe,{ref:F,prefixCls:m,className:W,classNames:u,style:q,styles:d,isActive:o,forceRender:a,role:g?"tabpanel":void 0},E)))});function jk(e,t,n){if(!e||!t)return e||t;const r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),o={};return r.forEach(i=>{o[i]=n(e[i],t[i]);}),o}function Moe(e,t){return jk(e,t,(n,r)=>X(n,r))}function Roe(e,t){return jk(e,t,(n,r)=>({...n,...r}))}const Toe=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:o,destroyOnHidden:i,onItemClick:a,activeKey:l,openMotion:u,expandIcon:d,classNames:m,styles:p}=t;return e.map((g,b)=>{const{children:y,label:S,key:C,collapsible:w,onItemClick:$,destroyOnHidden:E,classNames:T,styles:R,...I}=g,N=String(C??b),P=w??o,O=E??i,_=k=>{P!=="disabled"&&(a(k),$?.(k));};let L=false;return r?L=l[0]===N:L=l.indexOf(N)>-1,G.createElement(Vk,cr({},I,{classNames:Moe(m,T),styles:Roe(p,R),prefixCls:n,key:N,panelKey:N,isActive:L,accordion:r,openMotion:u,expandIcon:d,header:S,collapsible:P,onItemClick:_,destroyOnHidden:O}),y)})},Aoe=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:o,collapsible:i,destroyOnHidden:a,onItemClick:l,activeKey:u,openMotion:d,expandIcon:m,classNames:p,styles:g}=n,b=e.key||String(t),{header:y,headerClass:S,destroyOnHidden:C,collapsible:w,onItemClick:$}=e.props;let E=false;o?E=u[0]===b:E=u.indexOf(b)>-1;const T=w??i,R=N=>{T!=="disabled"&&(l(N),$?.(N));},I={key:b,panelKey:b,header:y,headerClass:S,classNames:p,styles:g,isActive:E,prefixCls:r,destroyOnHidden:C??a,openMotion:d,accordion:o,children:e.props.children,onItemClick:R,expandIcon:m,collapsible:T};return typeof e.type=="string"?e:(Object.keys(I).forEach(N=>{typeof I[N]>"u"&&delete I[N];}),G.cloneElement(e,I))};function Noe(e,t,n){return Array.isArray(e)?Toe(e,n):Zo(t).map((r,o)=>Aoe(r,o,n))}function lO(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[];}return t.map(n=>String(n))}const Poe=G.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=false,style:o,accordion:i,className:a,children:l,collapsible:u,openMotion:d,expandIcon:m,activeKey:p,defaultActiveKey:g,onChange:b,items:y,classNames:S,styles:C}=e,w=X(n,a),[$,E]=un(g,p),T=lO($),R=Mt(P=>{const O=lO(P);E(O),b?.(O);}),I=P=>{R(i?T[0]===P?[]:[P]:T.includes(P)?T.filter(O=>O!==P):[...T,P]);};Er(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const N=Noe(y,l,{prefixCls:n,accordion:i,openMotion:d,expandIcon:m,collapsible:u,destroyOnHidden:r,onItemClick:I,activeKey:T,classNames:S,styles:C});return G.createElement("div",cr({ref:t,className:w,style:o,role:i?"tablist":void 0},Co(e,{aria:true,data:true})),N)}),bR=Object.assign(Poe,{Panel:Vk}),{Panel:r5e}=bR,Ioe=f.forwardRef((e,t)=>{const{getPrefixCls:n}=f.useContext(wt),{prefixCls:r,className:o,showArrow:i=true}=e,a=n("collapse",r),l=X({[`${a}-no-arrow`]:!i},o);return f.createElement(bR.Panel,{ref:t,...e,prefixCls:a,className:l})}),Ooe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:u,lineWidth:d,lineType:m,colorBorder:p,colorText:g,colorTextHeading:b,colorTextDisabled:y,fontSizeLG:S,lineHeight:C,lineHeightLG:w,marginSM:$,paddingSM:E,paddingLG:T,paddingXS:R,motionDurationSlow:I,fontSizeIcon:N,contentPadding:P,fontHeight:O,fontHeightLG:_}=e,L=`${oe(d)} ${m} ${p}`;return {[t]:{...dn(e),backgroundColor:o,border:L,borderRadius:u,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`${oe(u)} ${oe(u)} 0 0`}},"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${oe(u)} ${oe(u)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:b,lineHeight:C,cursor:"pointer",transition:`all ${I}, visibility 0s`,...Ei(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",marginInlineEnd:$},[`${t}-arrow`]:{...Au(),fontSize:N,transition:`transform ${I}`,svg:{transition:`transform ${I}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:g,backgroundColor:n,borderTop:L,[`& > ${t}-body`]:{padding:P},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:R,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(E).sub(R).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:w,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:_,marginInlineStart:e.calc(T).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:T}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${oe(u)} ${oe(u)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:y,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:$}}}}}}},Doe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},_oe=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},Loe=e=>{const{componentCls:t,paddingSM:n}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},Boe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),zoe=qt("Collapse",e=>{const t=Ft(e,{collapseHeaderPaddingSM:`${oe(e.paddingXS)} ${oe(e.paddingSM)}`,collapseHeaderPaddingLG:`${oe(e.padding)} ${oe(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Ooe(t),_oe(t),Loe(t),Doe(t),_k(t)]},Boe),koe=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:i,style:a,classNames:l,styles:u}=jt("collapse"),{prefixCls:d,className:m,rootClassName:p,style:g,bordered:b=true,ghost:y,size:S,expandIconPlacement:C,expandIconPosition:w,children:$,destroyInactivePanel:E,destroyOnHidden:T,expandIcon:R,classNames:I,styles:N}=e,P=lo(B=>S??B??"middle"),O=n("collapse",d),_=n(),[L,k]=zoe(O),W=C??w??"start",q={...e,size:P,bordered:b,expandIconPlacement:W},[F,z]=Kt([l,I],[u,N],{props:q}),j=R??o,U=f.useCallback((B={})=>{const K=typeof j=="function"?j(B):f.createElement(pf,{rotate:B.isActive?r==="rtl"?-90:90:void 0,"aria-label":B.isActive?"expanded":"collapsed"});return jr(K,J=>({className:X(J.className,`${O}-arrow`)}))},[j,O,r]),Y=X(`${O}-icon-placement-${W}`,{[`${O}-borderless`]:!b,[`${O}-rtl`]:r==="rtl",[`${O}-ghost`]:!!y,[`${O}-${P}`]:P!=="middle"},i,m,p,L,k,F.root),Q=f.useMemo(()=>({...Ik(_),motionAppear:false,leavedClassName:`${O}-panel-hidden`}),[_,O]),D=f.useMemo(()=>$?Zo($).map(B=>B):null,[$]);return f.createElement(bR,{ref:t,openMotion:Q,...zn(e,["rootClassName"]),expandIcon:U,prefixCls:O,className:Y,style:{...z.root,...a,...g},classNames:F,styles:z,destroyOnHidden:T??E},D)}),Uk=Object.assign(koe,{Panel:Ioe}),oo=e=>e instanceof Ko?e:new Ko(e),Wb=e=>Math.round(Number(e||0)),yR=e=>Wb(e.toHsb().a*100),qb=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,oo(r)}return n.a=1,oo(n)},Wk=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Zt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const o=n[r].percent,i=n[r+1].percent,a=n[r].color,l=n[r+1].color;if(o<=t&&t<=i){const u=i-o;if(u===0)return a;const d=(t-o)/u*100,m=new Sa(a),p=new Sa(l);return m.mix(p,d).toRgbString()}}return ""},Foe=e=>e.map(t=>(t.colors=t.colors.map(oo),t)),SR=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Sa(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},cO=(e,t)=>`panel-${e.key??t}`,Hoe=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[o]=_o("ColorPicker"),[,i]=Wr(),a=f.useMemo(()=>Foe(t),[t]),l=`${e}-presets`,u=f.useMemo(()=>a.reduce((p,g,b)=>{const{defaultOpen:y=true}=g;return y&&p.push(cO(g,b)),p},[]),[a]),d=p=>{r?.(p);},m=a.map((p,g)=>({key:cO(p,g),label:G.createElement("div",{className:`${l}-label`},p?.label),children:G.createElement("div",{className:`${l}-items`},Array.isArray(p?.colors)&&p.colors?.length>0?p.colors.map((b,y)=>{const S=oo(b);return G.createElement(vR,{key:`preset-${y}-${b.toHexString()}`,color:S.toCssString(),prefixCls:e,className:X(`${l}-color`,{[`${l}-color-checked`]:b.toCssString()===n?.toCssString(),[`${l}-color-bright`]:SR(b,i.colorBgElevated)}),onClick:()=>d(b)})}):G.createElement("span",{className:`${l}-empty`},o.presetEmpty))}));return G.createElement("div",{className:l},G.createElement(Uk,{defaultActiveKey:u,ghost:true,items:m}))},qk=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Ft(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Gk=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??Vb(t),i=e.contentLineHeightSM??Vb(n),a=e.contentLineHeightLG??Vb(r),l=SR(new Ko(e.colorBgSolid),"#fff")?"#000":"#fff",u=qa.reduce((p,g)=>({...p,[`${g}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${wh(e[`${g}1`],e.colorBgContainer)}`}),{}),d=e.colorBgContainerDisabled,m=e.colorBgContainerDisabled;return {...u,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:r,contentLineHeight:o,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0),defaultBgDisabled:d,dashedBgDisabled:m}},Voe=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[o,i]=tr(n,"btn");return {[t]:[{[o("border-width")]:r,[o("border-color")]:"#000",[o("border-color-hover")]:i("border-color"),[o("border-color-active")]:i("border-color"),[o("border-color-disabled")]:i("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color"),[o("text-color-disabled")]:i("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:i("bg-color"),[o("bg-color-active")]:i("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[i("border-width"),i("border-style"),i("border-color")].join(" "),color:i("text-color"),backgroundColor:i("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[i("border-width"),i("border-style"),i("border-color-hover")].join(" "),color:i("text-color-hover"),backgroundColor:i("bg-color-hover")},"&:active":{border:[i("border-width"),i("border-style"),i("border-color-active")].join(" "),color:i("text-color-active"),backgroundColor:i("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:i("color-base"),[o("solid-bg-color-hover")]:i("color-hover"),[o("solid-bg-color-active")]:i("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:i("solid-bg-color"),[o("bg-color-hover")]:i("solid-bg-color-hover"),[o("bg-color-active")]:i("solid-bg-color-active"),boxShadow:i("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:i("color-base"),[o("border-color-hover")]:i("color-hover"),[o("border-color-active")]:i("color-active"),[o("bg-color")]:i("bg-color-container"),[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("color-active"),boxShadow:i("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("bg-color")]:i("color-light"),[o("bg-color-hover")]:i("color-light-hover"),[o("bg-color-active")]:i("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("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")]:i("color-light"),[o("bg-color-active")]:i("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${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")]:i("text-color"),[o("text-color-active")]:i("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")]:i("text-color"),[o("text-color-active")]:i("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.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},qa.map(a=>{const l=e[`${a}6`],u=e[`${a}1`],d=e[`${a}Hover`],m=e[`${a}2`],p=e[`${a}3`],g=e[`${a}Active`],b=e[`${a}ShadowColor`];return {[`&${t}-color-${a}`]:{[o("color-base")]:l,[o("color-hover")]:d,[o("color-active")]:g,[o("color-light")]:u,[o("color-light-hover")]:m,[o("color-light-active")]:p,[o("shadow")]:b}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:i("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}},joe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:u}=e;return {[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...Ts(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Au(),"> a":{color:"currentColor"},"&:not(:disabled)":Ei(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(l).mul(-1).equal()}}}}}},Uoe=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),CR=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:u,buttonIconOnlyFontSize:d}=e;return [{[t]:{fontSize:o,height:r,padding:`${oe(u)} ${oe(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:Uoe(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Woe=e=>{const t=Ft(e,{fontSize:e.contentFontSize});return CR(t,e.componentCls)},qoe=e=>{const t=Ft(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return CR(t,`${e.componentCls}-sm`)},Goe=e=>{const t=Ft(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return CR(t,`${e.componentCls}-lg`)},Koe=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},Yoe=qt("Button",e=>{const t=qk(e);return [joe(t),Woe(t),qoe(t),Goe(t),Koe(t),Voe(t),uoe(t)]},Gk,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function Xoe(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,l=a?"> *":"",u=["hover",i?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[u]:{zIndex:3},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}function Qoe(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Lf(e,t={focus:true}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return {[i]:{...Xoe(e,i,t,o),...Qoe(o,i,t)}}}function Zoe(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 Joe(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function eie(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:{...Zoe(e,t,e.componentCls),...Joe(e.componentCls,t)}}}const tie=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:i}=e,a=`${n}-variant-solid:not([disabled])`,l=o(r).mul(-1).equal(),[u,d]=tr(t,"btn"),m=p=>({[`${n}-compact${p?"-vertical":""}-item`]:{[u("compact-connect-border-color")]:d("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:d("compact-connect-border-color"),content:'""'},p?{top:l,insetInline:l,height:r}:{insetBlock:l,insetInlineStart:l,width:r}],"&:hover:before":{display:"none"}}}});return [m(),m(true),{[`${a}${n}-color-default`]:{[u("compact-connect-border-color")]:`color-mix(in srgb, ${d("bg-color-hover")} 75%, ${i})`}}]},nie=Df(["Button","compact"],e=>{const t=qk(e);return [Lf(t),eie(t),tie(t)]},Gk);function rie(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const oie={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},iie=G.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=false,prefixCls:o,color:i,variant:a,type:l,danger:u=false,shape:d,size:m,disabled:p,className:g,rootClassName:b,children:y,icon:S,iconPosition:C,iconPlacement:w,ghost:$=false,block:E=false,htmlType:T="button",classNames:R,styles:I,style:N,autoInsertSpace:P,autoFocus:O,..._}=e,L=Zo(y),k=l||"default",{getPrefixCls:W,direction:q,autoInsertSpace:F,className:z,style:j,classNames:U,styles:Y,loadingIcon:Q,shape:D,color:B,variant:K}=jt("button"),J=d||D||"default",[ee,te]=f.useMemo(()=>{if(i&&a)return [i,a];if(l||u){const ye=oie[k]||[];return u?["danger",ye[1]]:ye}return B&&K?[B,K]:["default","outlined"]},[i,a,l,u,B,K,k]),[re,ie]=f.useMemo(()=>$&&te==="solid"?[ee,"outlined"]:[ee,te],[ee,te,$]),ue=re==="danger",ne=ue?"dangerous":re,ce=P??F??true,fe=W("btn",o),[se,Me]=Yoe(fe),ae=f.useContext(ro),pe=p??ae,be=f.useContext(Ok),xe=f.useMemo(()=>rie(r),[r]),[Te,Ke]=f.useState(xe.loading),[Ae,de]=f.useState(false),ve=f.useRef(null),Ne=Bs(t,ve),He=L.length===1&&!S&&!Hx(ie),We=f.useRef(true);G.useEffect(()=>(We.current=false,()=>{We.current=true;}),[]),An(()=>{let ye=null;xe.delay>0?ye=setTimeout(()=>{ye=null,Ke(true);},xe.delay):Ke(xe.loading);function Ce(){ye&&(clearTimeout(ye),ye=null);}return Ce},[xe.delay,xe.loading]),f.useEffect(()=>{if(!ve.current||!ce)return;const ye=ve.current.textContent||"";He&&K2(ye)?Ae||de(true):Ae&&de(false);}),f.useEffect(()=>{O&&ve.current&&ve.current.focus();},[]);const je=G.useCallback(ye=>{if(Te||pe){ye.preventDefault();return}e.onClick?.((ye));},[e.onClick,Te,pe]),{compactSize:nt,compactItemClassnames:ot}=Fs(fe,q),Ge={large:"lg",small:"sm",middle:void 0,medium:void 0},Oe=lo(ye=>m??nt??be??ye),qe=Oe?Ge[Oe]??"":"",Je=Te?"loading":S,Le=w??C??"start",Ie=zn(_,["navigate"]),ct={...e,type:k,color:re,variant:ie,danger:ue,shape:J,size:Oe,disabled:pe,loading:Te,iconPlacement:Le},[Ot,pt]=Kt([n?void 0:U,R],[n?void 0:Y,I],{props:ct}),Lt=X(fe,se,Me,{[`${fe}-${J}`]:J!=="default"&&J!=="square"&&J,[`${fe}-${k}`]:k,[`${fe}-dangerous`]:u,[`${fe}-color-${ne}`]:ne,[`${fe}-variant-${ie}`]:ie,[`${fe}-${qe}`]:qe,[`${fe}-icon-only`]:!y&&y!==0&&!!Je,[`${fe}-background-ghost`]:$&&!Hx(ie),[`${fe}-loading`]:Te,[`${fe}-two-chinese-chars`]:Ae&&ce&&!Te,[`${fe}-block`]:E,[`${fe}-rtl`]:q==="rtl",[`${fe}-icon-end`]:Le==="end"},ot,g,b,z,Ot.root),xt={...pt.root,...j,...N},Rt={className:Ot.icon,style:pt.icon},ut=ye=>G.createElement(Dk,{prefixCls:fe,...Rt},ye),ft=G.createElement(Dre,{existIcon:!!S,prefixCls:fe,loading:Te,mount:We.current,...Rt}),vt=r&&typeof r=="object"&&r.icon||Q;let ke;S&&!Te?ke=ut(S):r&&vt?ke=ut(vt):ke=ft;const Ze=Pr(y)?Ore(y,He&&ce,pt.content,Ot.content):null;if(Ie.href!==void 0)return G.createElement("a",{...Ie,className:X(Lt,{[`${fe}-disabled`]:pe}),href:pe?void 0:Ie.href,style:xt,onClick:je,ref:Ne,tabIndex:pe?-1:0,"aria-disabled":pe},ke,Ze);let Se=G.createElement("button",{..._,type:T,className:Lt,style:xt,onClick:je,disabled:pe,ref:Ne},ke,Ze,ot&&G.createElement(nie,{prefixCls:fe}));return Hx(ie)||(Se=G.createElement(eg,{component:"Button",disabled:Te},Se)),Se}),lt=iie;lt.Group=Pre;lt.__ANT_BUTTON=true;const Wx=e=>typeof e?.then=="function",xR=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:u,quitOnNullishReturnValue:d,actionFn:m}=e,p=f.useRef(false),g=f.useRef(null),[b,y]=YB(false),S=(...$)=>{i?.(...$);};f.useEffect(()=>{let $=null;return a&&($=setTimeout(()=>{g.current?.focus({preventScroll:true});})),()=>{$&&clearTimeout($);}},[a]);const C=$=>{Wx($)&&(y(true),$.then((...E)=>{y(false,true),S.apply(void 0,E),p.current=false;},E=>{if(y(false,true),p.current=false,!u?.())return Promise.reject(E)}));},w=$=>{if(p.current)return;if(p.current=true,!m){S();return}let E;if(l){if(E=m($),d&&!Wx(E)){p.current=false,S($);return}}else if(m.length)E=m(i),p.current=false;else if(E=m(),!Wx(E)){S();return}C(E);};return f.createElement(lt,{...dR(t),onClick:w,loading:b,prefixCls:r,...o,ref:g},n)},ng=G.createContext({}),{Provider:Kk}=ng,uO=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:u,onClose:d}=f.useContext(ng);return o?G.createElement(xR,{isSilent:r,actionFn:l,close:(...m)=>{a?.(...m),u?.(false),d?.();},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},dO=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:u,onClose:d}=f.useContext(ng);return G.createElement(xR,{isSilent:n,type:a||"primary",actionFn:u,close:(...m)=>{t?.(...m),l?.(true),d?.();},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},Yk=f.createContext({});function fO(e,t,n){let r=t;return !r&&n&&(r=`${e}-${n}`),r}function mO(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r]);}return n}function aie(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=mO(o),n.top+=mO(o,true),n}function hO(e,t=false){if(aR(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o);let a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return  false}function wR(e,t=false){const n=[...e.querySelectorAll("*")].filter(r=>hO(r,t));return hO(e,t)&&n.unshift(e),n}function $R(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case "start":e.setSelectionRange(0,0);break;case "end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);}}}let Jd=null,El=[];const X2=new Map,ER=new Map;function MR(){return El[El.length-1]}function sie(e){const t=MR();if(e&&t){let n;for(const[o,i]of X2.entries())if(i===t){n=o;break}const r=ER.get(n);return !!r&&(r===e||r.contains(e))}return  false}function lie(e){const{activeElement:t}=document;return e===t||e.contains(t)}function qx(){const e=MR(),{activeElement:t}=document;if(!sie(t))if(e&&!lie(e)){const n=wR(e);(n.includes(Jd)?Jd:n[0])?.focus({preventScroll:true});}else Jd=t;}function pO(e){if(e.key==="Tab"){const{activeElement:t}=document,n=MR(),r=wR(n),o=r[r.length-1];e.shiftKey&&t===r[0]?Jd=o:!e.shiftKey&&t===o&&(Jd=r[0]);}}function cie(e,t){return e&&(X2.set(t,e),El=El.filter(n=>n!==e),El.push(e),window.addEventListener("focusin",qx),window.addEventListener("keydown",pO,true),qx()),()=>{Jd=null,El=El.filter(n=>n!==e),X2.delete(t),ER.delete(t),El.length===0&&(window.removeEventListener("focusin",qx),window.removeEventListener("keydown",pO,true));}}function uie(e,t){const n=ks();return f.useEffect(()=>{if(e){const o=t();if(o)return cie(o,n)}},[e,n]),[o=>{o&&ER.set(n,o);}]}const die=f.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function F0(){return F0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},F0.apply(this,arguments)}const Xk=G.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,title:i,ariaId:a,footer:l,closable:u,closeIcon:d,onClose:m,children:p,bodyStyle:g,bodyProps:b,modalRender:y,onMouseDown:S,onMouseUp:C,holderRef:w,visible:$,forceRender:E,width:T,height:R,classNames:I,styles:N,isFixedPos:P,focusTrap:O}=e,{panel:_}=G.useContext(Yk),L=f.useRef(null),k=Bs(w,_,L),[W]=uie($&&P&&O!==false,()=>L.current);G.useImperativeHandle(t,()=>({focus:()=>{L.current?.focus({preventScroll:true});}}));const q={};T!==void 0&&(q.width=T),R!==void 0&&(q.height=R);const F=l?G.createElement("div",{className:X(`${n}-footer`,I?.footer),style:{...N?.footer}},l):null,z=i?G.createElement("div",{className:X(`${n}-header`,I?.header),style:{...N?.header}},G.createElement("div",{className:X(`${n}-title`,I?.title),id:a,style:{...N?.title}},i)):null,j=f.useMemo(()=>typeof u=="object"&&u!==null?u:u?{closeIcon:d??G.createElement("span",{className:`${n}-close-x`})}:{},[u,d,n]),U=Co(j,true),Y=typeof u=="object"&&u.disabled,Q=u?G.createElement("button",F0({type:"button",onClick:m,"aria-label":"Close"},U,{className:`${n}-close`,disabled:Y}),j.closeIcon):null,D=G.createElement("div",{className:X(`${n}-container`,I?.container),style:N?.container},Q,z,G.createElement("div",F0({className:X(`${n}-body`,I?.body),style:{...g,...N?.body}},b),p),F);return G.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:k,style:{...o,...q},className:X(n,r),onMouseDown:S,onMouseUp:C,tabIndex:-1,onFocus:B=>{W(B.target);}},G.createElement(die,{shouldUpdate:$||E},y?y(D):D))});function Q2(){return Q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Q2.apply(this,arguments)}const fie=f.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:o,className:i,visible:a,forceRender:l,destroyOnHidden:u,motionName:d,ariaId:m,onVisibleChanged:p,mousePosition:g}=e,b=f.useRef(null),y=f.useRef(null);f.useImperativeHandle(t,()=>({...y.current,inMotion:b.current.inMotion,enableMotion:b.current.enableMotion}));const[S,C]=f.useState(),w={};S&&(w.transformOrigin=S);function $(){if(!b.current?.nativeElement)return;const E=aie(b.current.nativeElement);C(g&&(g.x||g.y)?`${g.x-E.left}px ${g.y-E.top}px`:"");}return f.createElement(wo,{visible:a,onVisibleChanged:p,onAppearPrepare:$,onEnterPrepare:$,forceRender:l,motionName:d,removeOnLeave:u,ref:b},({className:E,style:T},R)=>f.createElement(Xk,Q2({},e,{ref:y,title:r,ariaId:m,prefixCls:n,holderRef:R,style:{...T,...o,...w},className:X(i,E)})))});function Z2(){return Z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Z2.apply(this,arguments)}const mie=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:i,className:a}=e;return f.createElement(wo,{key:"mask",visible:r,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:l,style:u},d)=>f.createElement("div",Z2({ref:d,style:{...u,...n},className:X(`${t}-mask`,l,a)},o)))};function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},zh.apply(this,arguments)}const hie=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=false,focusTriggerAfterClose:o=true,wrapStyle:i,wrapClassName:a,wrapProps:l,onClose:u,afterOpenChange:d,afterClose:m,transitionName:p,animation:g,closable:b=true,mask:y=true,maskTransitionName:S,maskAnimation:C,maskClosable:w=true,maskStyle:$,maskProps:E,rootClassName:T,rootStyle:R,classNames:I,styles:N}=e,P=f.useRef(null),O=f.useRef(null),_=f.useRef(null),[L,k]=f.useState(r),[W,q]=f.useState(false),F=ks();function z(){s2(O.current,document.activeElement)||(P.current=document.activeElement);}function j(){s2(O.current,document.activeElement)||_.current?.focus();}function U(){if(k(false),y&&P.current&&o){try{P.current.focus({preventScroll:!0});}catch{}P.current=null;}L&&m?.();}function Y(ee){ee?j():U(),d?.(ee);}function Q(ee){u?.(ee);}const D=f.useRef(false);let B=null;w&&(B=ee=>{O.current===ee.target&&D.current&&Q(ee);});function K(ee){D.current=ee.target===O.current;}f.useEffect(()=>{if(r){if(D.current=false,k(true),z(),O.current){const ee=getComputedStyle(O.current);q(ee.position==="fixed");}}else L&&_.current.enableMotion()&&!_.current.inMotion()&&U();},[r]);const J={zIndex:n,...i,...N?.wrapper,display:L?null:"none"};return f.createElement("div",zh({className:X(`${t}-root`,T),style:R},Co(e,{data:true})),f.createElement(mie,{prefixCls:t,visible:y&&r,motionName:fO(t,S,C),style:{zIndex:n,...$,...N?.mask},maskProps:E,className:I?.mask}),f.createElement("div",zh({className:X(`${t}-wrap`,a,I?.wrapper),ref:O,onClick:B,onMouseDown:K,style:J},l),f.createElement(fie,zh({},e,{isFixedPos:W,ref:_,closable:b,ariaId:F,prefixCls:t,visible:r&&L,onClose:Q,onVisibleChanged:Y,motionName:fO(t,p,g)}))))};function J2(){return J2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},J2.apply(this,arguments)}const pie=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:o=false,afterClose:i,closable:a,panelRef:l,keyboard:u=true,onClose:d}=e,[m,p]=f.useState(t),g=f.useMemo(()=>({panel:l}),[l]),b=({top:y,event:S})=>{if(y&&u){S.stopPropagation(),d?.(S);return}};return f.useEffect(()=>{t&&p(true);},[t]),!r&&o&&!m?null:f.createElement(Yk.Provider,{value:g},f.createElement(Jy,{open:t||r||m,onEsc:b,autoDestroy:false,getContainer:n,autoLock:t||m},f.createElement(hie,J2({},e,{destroyOnHidden:o,afterClose:()=>{const y=a&&typeof a=="object"?a:{},{afterClose:S}=y||{};S?.(),i?.(),p(false);}}))))},Gc="RC_FORM_INTERNAL_HOOKS",Ln=()=>{Er(false,"Can not find FormContext. Please make sure you wrap Field under Form.");},gf=f.createContext({getFieldValue:Ln,getFieldsValue:Ln,getFieldError:Ln,getFieldWarning:Ln,getFieldsError:Ln,isFieldsTouched:Ln,isFieldTouched:Ln,isFieldValidating:Ln,isFieldsValidating:Ln,resetFields:Ln,setFields:Ln,setFieldValue:Ln,setFieldsValue:Ln,validateFields:Ln,submit:Ln,getInternalHooks:()=>(Ln(),{dispatch:Ln,initEntityValue:Ln,registerField:Ln,useSubscribe:Ln,setInitialValues:Ln,destroyForm:Ln,setCallbacks:Ln,registerWatch:Ln,getFields:Ln,setValidateMessages:Ln,setPreserve:Ln,getInitialValue:Ln})}),H0=f.createContext(null);function eE(e){return e==null?[]:Array.isArray(e)?e:[e]}function gie(e){return e&&!!e._init}function tE(){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",tel:"%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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var nE=tE();function vie(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function bie(e,t,n){if(KM())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&fp(o,n.prototype),o}function rE(e){var t=typeof Map=="function"?new Map:void 0;return rE=function(r){if(r===null||!vie(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return bie(r,arguments,mp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:false,writable:true,configurable:true}}),fp(o,r)},rE(e)}var yie=/%[sdj%]/g,Sie=function(){};function oE(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function yi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(yie,function(l){if(l==="%%")return "%";if(o>=i)return l;switch(l){case "%s":return String(n[o++]);case "%d":return Number(n[o++]);case "%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return l}});return a}return e}function Cie(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Or(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Cie(t)&&typeof e=="string"&&!e)}function xie(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Zt(l||[])),o++,o===i&&n(r);}e.forEach(function(l){t(l,a);});}function gO(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([]);}i([]);}function wie(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Zt(e[n]||[]));}),t}var vO=(function(e){Mz(n,e);var t=Rz(n);function n(r,o){var i;return Xi(this,n),i=t.call(this,"Async Validation Error"),Ct(Qd(i),"errors",void 0),Ct(Qd(i),"fields",void 0),i.errors=r,i.fields=o,i}return Qi(n)})(rE(Error));function $ie(e,t,n,r,o){if(t.first){var i=new Promise(function(g,b){var y=function(w){return r(w),w.length?b(new vO(w,oE(w))):g(o)},S=wie(e);gO(S,n,y);});return i.catch(function(g){return g}),i}var a=t.firstFields===true?Object.keys(e):t.firstFields||[],l=Object.keys(e),u=l.length,d=0,m=[],p=new Promise(function(g,b){var y=function(C){if(m.push.apply(m,C),d++,d===u)return r(m),m.length?b(new vO(m,oE(m))):g(o)};l.length||(r(m),g(o)),l.forEach(function(S){var C=e[S];a.indexOf(S)!==-1?gO(C,n,y):xie(C,n,y);});});return p.catch(function(g){return g}),p}function Eie(e){return !!(e&&e.message!==void 0)}function Mie(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function bO(e,t){return function(n){var r;return e.fullFields?r=Mie(t,e.fullFields):r=t[n.field||e.fullField],Eie(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function yO(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];$r(r)==="object"&&$r(e[n])==="object"?e[n]=nr(nr({},e[n]),r):e[n]=r;}}return e}var Md="enum",Rie=function(t,n,r,o,i){t[Md]=Array.isArray(t[Md])?t[Md]:[],t[Md].indexOf(n)===-1&&o.push(yi(i.messages[Md],t.fullField,t[Md].join(", ")));},Tie=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(yi(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(yi(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Aie=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,p=null,g=typeof n=="number",b=typeof n=="string",y=Array.isArray(n);if(g?p="number":b?p="string":y&&(p="array"),!p)return  false;y&&(m=n.length),b&&(m=n.replace(d,"_").length),a?m!==t.len&&o.push(yi(i.messages[p].len,t.fullField,t.len)):l&&!u&&m<t.min?o.push(yi(i.messages[p].min,t.fullField,t.min)):u&&!l&&m>t.max?o.push(yi(i.messages[p].max,t.fullField,t.max)):l&&u&&(m<t.min||m>t.max)&&o.push(yi(i.messages[p].range,t.fullField,t.min,t.max));},Qk=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Or(n,a||t.type))&&o.push(yi(i.messages.required,t.fullField));},ab;const Nie=(function(){if(ab)return ab;var e="[a-fA-F\\d:]",t=function(I){return I&&I.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}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),u=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(a,"$")),m=function(I){return I&&I.exact?l:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(a).concat(t(I),")"),"g")};m.v4=function(R){return R&&R.exact?u:new RegExp("".concat(t(R)).concat(n).concat(t(R)),"g")},m.v6=function(R){return R&&R.exact?d:new RegExp("".concat(t(R)).concat(a).concat(t(R)),"g")};var p="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",b=m.v4().source,y=m.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',T="(?:".concat(p,"|www\\.)").concat(g,"(?:localhost|").concat(b,"|").concat(y,"|").concat(S).concat(C).concat(w,")").concat($).concat(E);return ab=new RegExp("(?:^".concat(T,"$)"),"i"),ab});var Gx={email:/^(([^<>()\[\]\\.,;:\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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Eh={integer:function(t){return Eh.number(t)&&parseInt(t,10)===t},float:function(t){return Eh.number(t)&&!Eh.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return  true;try{return !!new RegExp(t)}catch{return  false}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?false:typeof t=="number"},object:function(t){return $r(t)==="object"&&!Eh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Gx.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Gx.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Nie())},hex:function(t){return typeof t=="string"&&!!t.match(Gx.hex)}},Pie=function(t,n,r,o,i){if(t.required&&n===void 0){Qk(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Eh[l](n)||o.push(yi(i.messages.types[l],t.fullField,t.type)):l&&$r(n)!==t.type&&o.push(yi(i.messages.types[l],t.fullField,t.type));},Iie=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(yi(i.messages.whitespace,t.fullField));};const sn={required:Qk,whitespace:Iie,type:Pie,range:Aie,enum:Rie,pattern:Tie};var Oie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i);}r(a);},Die=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();sn.required(t,n,o,a,i,"array"),n!=null&&(sn.type(t,n,o,a,i),sn.range(t,n,o,a,i));}r(a);},_ie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),n!==void 0&&sn.type(t,n,o,a,i);}r(a);},Lie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n,"date")&&!t.required)return r();if(sn.required(t,n,o,a,i),!Or(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),sn.type(t,u,o,a,i),u&&sn.range(t,u.getTime(),o,a,i);}}r(a);},Bie="enum",zie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),n!==void 0&&sn[Bie](t,n,o,a,i);}r(a);},kie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),n!==void 0&&(sn.type(t,n,o,a,i),sn.range(t,n,o,a,i));}r(a);},Fie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),n!==void 0&&(sn.type(t,n,o,a,i),sn.range(t,n,o,a,i));}r(a);},Hie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),n!==void 0&&sn.type(t,n,o,a,i);}r(a);},Vie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),n!==void 0&&(sn.type(t,n,o,a,i),sn.range(t,n,o,a,i));}r(a);},jie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),n!==void 0&&sn.type(t,n,o,a,i);}r(a);},Uie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n,"string")&&!t.required)return r();sn.required(t,n,o,a,i),Or(n,"string")||sn.pattern(t,n,o,a,i);}r(a);},Wie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n)&&!t.required)return r();sn.required(t,n,o,a,i),Or(n)||sn.type(t,n,o,a,i);}r(a);},qie=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":$r(n);sn.required(t,n,o,a,i,l),r(a);},Gie=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Or(n,"string")&&!t.required)return r();sn.required(t,n,o,a,i,"string"),Or(n,"string")||(sn.type(t,n,o,a,i),sn.range(t,n,o,a,i),sn.pattern(t,n,o,a,i),t.whitespace===true&&sn.whitespace(t,n,o,a,i));}r(a);},sb=function(t,n,r,o,i){var a=t.type,l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Or(n,a)&&!t.required)return r();sn.required(t,n,o,l,i,a),Or(n,a)||sn.type(t,n,o,l,i);}r(l);};const kh={string:Gie,method:Hie,number:Vie,boolean:_ie,regexp:Wie,integer:Fie,float:kie,array:Die,object:jie,enum:zie,pattern:Uie,date:Lie,url:sb,hex:sb,email:sb,tel:sb,required:qie,any:Oie};var rg=(function(){function e(t){Xi(this,e),Ct(this,"rules",null),Ct(this,"_messages",nE),this.define(t);}return Qi(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if($r(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i];});}},{key:"messages",value:function(n){return n&&(this._messages=yO(tE(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function d(y){var S=[],C={};function w(E){if(Array.isArray(E)){var T;S=(T=S).concat.apply(T,Zt(E));}else S.push(E);}for(var $=0;$<y.length;$++)w(y[$]);S.length?(C=oE(S),u(S,C)):u(null,a);}if(l.messages){var m=this.messages();m===nE&&(m=tE()),yO(m,l.messages),l.messages=m;}else l.messages=this.messages();var p={},g=l.keys||Object.keys(this.rules);g.forEach(function(y){var S=r.rules[y],C=a[y];S.forEach(function(w){var $=w;typeof $.transform=="function"&&(a===n&&(a=nr({},a)),C=a[y]=$.transform(C),C!=null&&($.type=$.type||(Array.isArray(C)?"array":$r(C)))),typeof $=="function"?$={validator:$}:$=nr({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=y,$.fullField=$.fullField||y,$.type=r.getType($),p[y]=p[y]||[],p[y].push({rule:$,value:C,source:a,field:y}));});});var b={};return $ie(p,l,function(y,S){var C=y.rule,w=(C.type==="object"||C.type==="array")&&($r(C.fields)==="object"||$r(C.defaultField)==="object");w=w&&(C.required||!C.required&&y.value),C.field=y.field;function $(N,P){return nr(nr({},P),{},{fullField:"".concat(C.fullField,".").concat(N),fullFields:C.fullFields?[].concat(Zt(C.fullFields),[N]):[N]})}function E(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(N)?N:[N];!l.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&C.message!==void 0&&C.message!==null&&(P=[].concat(C.message));var O=P.map(bO(C,a));if(l.first&&O.length)return b[C.field]=1,S(O);if(!w)S(O);else {if(C.required&&!y.value)return C.message!==void 0?O=[].concat(C.message).map(bO(C,a)):l.error&&(O=[l.error(C,yi(l.messages.required,C.field))]),S(O);var _={};C.defaultField&&Object.keys(y.value).map(function(W){_[W]=C.defaultField;}),_=nr(nr({},_),y.rule.fields);var L={};Object.keys(_).forEach(function(W){var q=_[W],F=Array.isArray(q)?q:[q];L[W]=F.map($.bind(null,W));});var k=new e(L);k.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),k.validate(y.value,y.rule.options||l,function(W){var q=[];O&&O.length&&q.push.apply(q,Zt(O)),W&&W.length&&q.push.apply(q,Zt(W)),S(q.length?q:null);});}}var T;if(C.asyncValidator)T=C.asyncValidator(C,y.value,E,y.source,l);else if(C.validator){try{T=C.validator(C,y.value,E,y.source,l);}catch(N){var R,I;(R=(I=console).error)===null||R===void 0||R.call(I,N),l.suppressValidatorError||setTimeout(function(){throw N},0),E(N.message);}T===true?E():T===false?E(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):T instanceof Array?E(T):T instanceof Error&&E(T.message);}T&&T.then&&T.then(function(){return E()},function(N){return E(N)});},function(y){d(y);},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!kh.hasOwnProperty(n.type))throw new Error(yi("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?kh.required:kh[this.getType(n)]||void 0}}]),e})();Ct(rg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");kh[t]=n;});Ct(rg,"warning",Sie);Ct(rg,"messages",nE);Ct(rg,"validators",kh);const Wo="'${name}' is not a valid ${type}",Zk={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:Wo,method:Wo,array:Wo,object:Wo,number:Wo,date:Wo,boolean:Wo,integer:Wo,float:Wo,regexp:Wo,email:Wo,tel:Wo,url:Wo,hex:Wo},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}"}},SO=rg;function Kie(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const CO="CODE_LOGIC_ERROR";async function iE(e,t,n,r,o){const i={...n};if(delete i.ruleIndex,SO.warning=()=>{},i.validator){const g=i.validator;i.validator=(...b)=>{try{return g(...b)}catch(y){return console.error(y),Promise.reject(CO)}};}let a=null;i&&i.type==="array"&&i.defaultField&&(a=i.defaultField,delete i.defaultField);const l=new SO({[e]:[i]}),u=kd(Zk,r.validateMessages);l.messages(u);let d=[];try{await Promise.resolve(l.validate({[e]:t},{...r}));}catch(g){g.errors&&(d=g.errors.map(({message:b},y)=>{const S=b===CO?u.default:b;return f.isValidElement(S)?f.cloneElement(S,{key:`error_${y}`}):S}));}if(!d.length&&a&&Array.isArray(t)&&t.length>0)return (await Promise.all(t.map((b,y)=>iE(`${e}.${y}`,b,a,r,o)))).reduce((b,y)=>[...b,...y],[]);const m={...n,name:e,enum:(n.enum||[]).join(", "),...o};return d.map(g=>typeof g=="string"?Kie(g,m):g)}function Yie(e,t,n,r,o,i){const a=e.join("."),l=n.map((d,m)=>{const p=d.validator,g={...d,ruleIndex:m};return p&&(g.validator=(b,y,S)=>{let C=false;const $=p(b,y,(...E)=>{Promise.resolve().then(()=>{Er(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||S(...E);});});C=$&&typeof $.then=="function"&&typeof $.catch=="function",Er(C,"`callback` is deprecated. Please return a promise instead."),C&&$.then(()=>{S();}).catch(E=>{S(E||" ");});}),g}).sort(({warningOnly:d,ruleIndex:m},{warningOnly:p,ruleIndex:g})=>!!d==!!p?m-g:d?1:-1);let u;if(o===true)u=new Promise(async(d,m)=>{for(let p=0;p<l.length;p+=1){const g=l[p],b=await iE(a,t,g,r,i);if(b.length){m([{errors:b,rule:g}]);return}}d([]);});else {const d=l.map(m=>iE(a,t,m,r,i).then(p=>({errors:p,rule:m})));u=(o?Qie(d):Xie(d)).then(m=>Promise.reject(m));}return u.catch(d=>d),u}async function Xie(e){return Promise.all(e).then(t=>[].concat(...t))}async function Qie(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([]);});});})}function ar(e){return eE(e)}function xO(e,t){let n={};return t.forEach(r=>{const o=la(e,r);n=ki(n,r,o);}),n}function ef(e,t,n=false){return e&&e.some(r=>V0(t,r,n))}function V0(e,t,n=false){return !e||!t||!n&&e.length!==t.length?false:t.every((r,o)=>e[o]===r)}function Zie(e,t){if(e===t)return  true;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return  false;const n=Object.keys(e),r=Object.keys(t);return [...new Set([...n,...r])].every(i=>{const a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?true:a===l})}function Jie(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function wO(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const o=e[t],i=t-n;return i>0?[...e.slice(0,n),o,...e.slice(n,t),...e.slice(t+1,r)]:i<0?[...e.slice(0,t),...e.slice(t+1,n+1),o,...e.slice(n+1,r)]:e}function aE(){return aE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},aE.apply(this,arguments)}const Ac=[],th=[];function Kx(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}class eae extends f.Component{static contextType=gf;state={resetCount:0};cancelRegisterFunc=null;mounted=false;touched=false;dirty=false;validatePromise;prevValidating;errors=Ac;warnings=th;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(Gc);r(this);}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=true,n){const{getInternalHooks:r}=n,{registerField:o}=r(Gc);this.cancelRegisterFunc=o(this);}t===true&&this.reRender();}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(true),this.mounted=false;}cancelRegister=()=>{const{preserve:t,isListField:n,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,t,ar(r)),this.cancelRegisterFunc=null;};getNamePath=()=>{const{name:t,fieldContext:n}=this.props,{prefixName:r=[]}=n;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:n}=this.props;return t.map(r=>typeof r=="function"?r(n):r)};reRender(){this.mounted&&this.forceUpdate();}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}));};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:n}=this.props;if(n){const r={...this.getMeta(),destroy:t};Fl(this.metaCache,r)||n(r),this.metaCache=r;}else this.metaCache=null;};onStoreChange=(t,n,r)=>{const{shouldUpdate:o,dependencies:i=[],onReset:a}=this.props,{store:l}=r,u=this.getNamePath(),d=this.getValue(t),m=this.getValue(l),p=n&&ef(n,u);switch(r.type==="valueUpdate"&&r.source==="external"&&!Fl(d,m)&&(this.touched=true,this.dirty=true,this.validatePromise=null,this.errors=Ac,this.warnings=th,this.triggerMetaEvent()),r.type){case "reset":if(!n||p){this.touched=false,this.dirty=false,this.validatePromise=void 0,this.errors=Ac,this.warnings=th,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case "remove":{if(o&&Kx(o,t,l,d,m,r)){this.reRender();return}break}case "setField":{const{data:g}=r;if(p){"touched"in g&&(this.touched=g.touched),"validating"in g&&!("originRCField"in g)&&(this.validatePromise=g.validating?Promise.resolve([]):null),"errors"in g&&(this.errors=g.errors||Ac),"warnings"in g&&(this.warnings=g.warnings||th),this.dirty=true,this.triggerMetaEvent(),this.reRender();return}else if("value"in g&&ef(n,u,true)){this.reRender();return}if(o&&!u.length&&Kx(o,t,l,d,m,r)){this.reRender();return}break}case "dependenciesUpdate":{if(i.map(ar).some(b=>ef(r.relatedFields,b))){this.reRender();return}break}default:if(p||(!i.length||u.length||o)&&Kx(o,t,l,d,m,r)){this.reRender();return}break}o===true&&this.reRender();};validateRules=t=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:o,validateOnly:i=false}=t||{},a=Promise.resolve().then(async()=>{if(!this.mounted)return [];const{validateFirst:l=false,messageVariables:u,validateDebounce:d}=this.props;let m=this.getRules();if(o&&(m=m.filter(g=>g).filter(g=>{const{validateTrigger:b}=g;return b?eE(b).includes(o):true})),d&&o&&(await new Promise(g=>{setTimeout(g,d);}),this.validatePromise!==a))return [];const p=Yie(n,r,m,t,l,u);return p.catch(g=>g).then((g=Ac)=>{if(this.validatePromise===a){this.validatePromise=null;const b=[],y=[];g.forEach?.(({rule:{warningOnly:S},errors:C=Ac})=>{S?y.push(...C):b.push(...C);}),this.errors=b,this.warnings=y,this.triggerMetaEvent(),this.reRender();}}),p});return i||(this.validatePromise=a,this.dirty=true,this.errors=Ac,this.warnings=th,this.triggerMetaEvent(),this.reRender()),a};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return  true;const{fieldContext:t}=this.props,{getInitialValue:n}=t.getInternalHooks(Gc);return n(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return {...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:true}}const n=Zo(t);return n.length!==1||!f.isValidElement(n[0])?{child:n,isFunction:false}:{child:n[0],isFunction:false}};getValue=t=>{const{getFieldsValue:n}=this.props.fieldContext,r=this.getNamePath();return la(t||n(true),r)};getControlled=(t={})=>{const{name:n,trigger:r="onChange",validateTrigger:o,getValueFromEvent:i,normalize:a,valuePropName:l="value",getValueProps:u,fieldContext:d}=this.props,m=o!==void 0?o:d.validateTrigger,p=this.getNamePath(),{getInternalHooks:g,getFieldsValue:b}=d,{dispatch:y}=g(Gc),S=this.getValue(),C=u||(R=>({[l]:R})),w=t[r],$=n!==void 0?C(S):{},E={...t,...$};return E[r]=(...R)=>{this.touched=true,this.dirty=true,this.triggerMetaEvent();let I;i?I=i(...R):I=Jie(l,...R),a&&(I=a(I,S,b(true))),I!==S&&y({type:"updateValue",namePath:p,value:I}),w&&w(...R);},eE(m||[]).forEach(R=>{const I=E[R];E[R]=(...N)=>{I&&I(...N);const{rules:P}=this.props;P&&P.length&&y({type:"validateField",namePath:p,triggerName:R});};}),E};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:r,isFunction:o}=this.getOnlyChild(n);let i;return o?i=r:f.isValidElement(r)?i=f.cloneElement(r,this.getControlled(r.props)):(Er(!r,"`children` of Field is not validate ReactElement."),i=r),f.createElement(f.Fragment,{key:t},i)}}function Jk({name:e,...t}){const n=f.useContext(gf),r=f.useContext(H0),o=e!==void 0?ar(e):void 0,i=t.isListField??!!r;let a="keep";return i||(a=`_${(o||[]).join("_")}`),f.createElement(eae,aE({key:a,name:o,isListField:i},t,{fieldContext:n}))}function tae({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:i}){const a=f.useContext(gf),l=f.useContext(H0),d=f.useRef({keys:[],id:0}).current,m=f.useMemo(()=>[...ar(a.prefixName)||[],...ar(e)],[a.prefixName,e]),p=f.useMemo(()=>({...a,prefixName:m}),[a,m]),g=f.useMemo(()=>({getKey:y=>{const S=m.length,C=y[S];return [d.keys[C],y.slice(S+1)]}}),[d,m]);if(typeof n!="function")return Er(false,"Form.List only accepts function as children."),null;const b=(y,S,{source:C})=>C==="internal"?false:y!==S;return f.createElement(H0.Provider,{value:g},f.createElement(gf.Provider,{value:p},f.createElement(Jk,{name:[],shouldUpdate:b,rules:r,validateTrigger:o,initialValue:t,isList:true,isListField:i??!!l},({value:y=[],onChange:S},C)=>{const{getFieldValue:w}=a,$=()=>w(m||[])||[],E={add:(R,I)=>{const N=$();I>=0&&I<=N.length?(d.keys=[...d.keys.slice(0,I),d.id,...d.keys.slice(I)],S([...N.slice(0,I),R,...N.slice(I)])):(d.keys=[...d.keys,d.id],S([...N,R])),d.id+=1;},remove:R=>{const I=$(),N=new Set(Array.isArray(R)?R:[R]);N.size<=0||(d.keys=d.keys.filter((P,O)=>!N.has(O)),S(I.filter((P,O)=>!N.has(O))));},move(R,I){if(R===I)return;const N=$();R<0||R>=N.length||I<0||I>=N.length||(d.keys=wO(d.keys,R,I),S(wO(N,R,I)));}};let T=y||[];return Array.isArray(T)||(T=[]),n(T.map((R,I)=>{let N=d.keys[I];return N===void 0&&(d.keys[I]=d.id,N=d.keys[I],d.id+=1),{name:I,key:N,isListField:true}}),E,C)})))}function nae(e){let t=false,n=e.length;const r=[];return e.length?new Promise((o,i)=>{e.forEach((a,l)=>{a.catch(u=>(t=true,u)).then(u=>{n-=1,r[l]=u,!(n>0)&&(t&&i(r),o(r));});});}):Promise.resolve([])}const sE="__@field_split__";function lb(e){return e.map(t=>`${typeof t}:${t}`).join(sE)}class Rd{kvs=new Map;set(t,n){this.kvs.set(lb(t),n);}get(t){return this.kvs.get(lb(t))}getAsPrefix(t){const n=lb(t),r=n+sE,o=[],i=this.kvs.get(n);return i!==void 0&&o.push(i),this.kvs.forEach((a,l)=>{l.startsWith(r)&&o.push(a);}),o}update(t,n){const r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t);}delete(t){this.kvs.delete(lb(t));}map(t){return [...this.kvs.entries()].map(([n,r])=>{const o=n.split(sE);return t({key:o.map(i=>{const[,a,l]=i.match(/^([^:]*):(.*)$/);return a==="number"?Number(l):l}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}const rae=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);};class oae{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t;}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t);}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!V0(r,n))&&this.namePathList.push(n);}),this.doBatch();}doBatch(){this.taskId+=1;const t=this.taskId;rae(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),o=n.getFieldsValue(true);this.watcherList.forEach(i=>{i(r,o,this.namePathList);}),this.namePathList=[];}});}}class iae{formHooked=false;forceRootUpdate;subscribable=true;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new oae(this);constructor(t){this.forceRootUpdate=t;}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:true,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===Gc?(this.formHooked=true,{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}):(Er(false,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t;};prevWithoutPreserves=null;setInitialValues=(t,n)=>{if(this.initialValues=t||{},n){let r=kd(t,this.store);this.prevWithoutPreserves?.map(({key:o})=>{r=ki(r,o,la(t,o));}),this.prevWithoutPreserves=null,this.updateStore(r);}};destroyForm=t=>{if(t)this.updateStore({});else {const n=new Rd;this.getFieldEntities(true).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),true);}),this.prevWithoutPreserves=n;}};getInitialValue=t=>{const n=la(this.initialValues,t);return t.length?kd(n):n};setCallbacks=t=>{this.callbacks=t;};setValidateMessages=t=>{this.validateMessages=t;};setPreserve=t=>{this.preserve=t;};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t);};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t;};getFieldEntities=(t=false)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(t=false)=>{const n=new Rd;return this.getFieldEntities(t).forEach(r=>{const o=r.getNamePath();n.set(o,r);}),n};getFieldEntitiesForNamePathList=(t,n=false)=>{if(!t)return this.getFieldEntities(true);const r=this.getFieldsMap(true);return n?t.flatMap(o=>{const i=ar(o),a=r.getAsPrefix(i);return a.length?a:[{INVALIDATE_NAME_PATH:i}]}):t.map(o=>{const i=ar(o);return r.get(i)||{INVALIDATE_NAME_PATH:ar(o)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let r,o;if(t===true||Array.isArray(t)?(r=t,o=n):t&&typeof t=="object"&&(o=t.filter),r===true&&!o)return this.store;const i=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,true),a=[],l=[];i.forEach(d=>{const m=d.INVALIDATE_NAME_PATH||d.getNamePath();if(d.isList?.()){l.push(m);return}if(!o)a.push(m);else {const p="getMeta"in d?d.getMeta():null;o(p)&&a.push(m);}});let u=xO(this.store,a.map(ar));return l.forEach(d=>{la(u,d)||(u=ki(u,d,[]));}),u};getFieldValue=t=>{this.warningUnhooked();const n=ar(t);return la(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,o)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:ar(t[o]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=ar(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=ar(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,r]=t;let o,i=false;t.length===0?o=null:t.length===1?Array.isArray(n)?(o=n.map(ar),i=false):(o=null,i=n):(o=n.map(ar),i=r);const a=this.getFieldEntities(true),l=p=>p.isFieldTouched();if(!o)return i?a.every(p=>l(p)||p.isList()):a.some(l);const u=new Rd;o.forEach(p=>{u.set(p,[]);}),a.forEach(p=>{const g=p.getNamePath();o.forEach(b=>{b.every((y,S)=>g[S]===y)&&u.update(b,y=>[...y,p]);});});const d=p=>p.some(l),m=u.map(({value:p})=>p);return i?m.every(d):m.some(d)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(o=>o.isFieldValidating());const r=t.map(ar);return n.some(o=>{const i=o.getNamePath();return ef(r,i)&&o.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Rd,r=this.getFieldEntities(true);r.forEach(a=>{const{initialValue:l}=a.props,u=a.getNamePath();if(l!==void 0){const d=n.get(u)||new Set;d.add({entity:a,value:l}),n.set(u,d);}});const o=a=>{a.forEach(l=>{const{initialValue:u}=l.props;if(u!==void 0){const d=l.getNamePath();if(this.getInitialValue(d)!==void 0)Er(false,`Form already set 'initialValues' with path '${d.join(".")}'. Field can not overwrite it.`);else {const p=n.get(d);if(p&&p.size>1)Er(false,`Multiple Field with path '${d.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(p){const g=this.getFieldValue(d);!l.isListField()&&(!t.skipExist||g===void 0)&&this.updateStore(ki(this.store,d,[...p][0].value));}}}});};let i;t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach(a=>{const l=n.get(a);l&&i.push(...[...l].map(u=>u.entity));})):i=r,o(i);};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(kd(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(ar);r.forEach(o=>{const i=this.getInitialValue(o);this.updateStore(ki(this.store,o,i));}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r);};setFields=t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(o=>{const{name:i,...a}=o,l=ar(i);r.push(l),"value"in a&&this.updateStore(ki(this.store,l,a.value)),this.notifyObservers(n,[l],{type:"setField",data:o});}),this.notifyWatch(r);};getFields=()=>this.getFieldEntities(true).map(r=>{const o=r.getNamePath(),a={...r.getMeta(),name:o,value:this.getFieldValue(o)};return Object.defineProperty(a,"originRCField",{value:true}),a});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();la(this.store,r)===void 0&&this.updateStore(ki(this.store,r,n));}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??true;registerField=t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:true}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"});}return (r,o,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(a=>a!==t),!this.isMergedPreserve(o)&&(!r||i.length>1)){const a=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==a&&this.fieldEntities.every(l=>!V0(l.getNamePath(),n))){const l=this.store;this.updateStore(ki(l,n,a,true)),this.notifyObservers(l,[n],{type:"remove"}),this.triggerDependenciesUpdate(l,n);}}this.notifyWatch([n]);}};dispatch=t=>{switch(t.type){case "updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case "validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}};notifyObservers=(t,n,r)=>{if(this.subscribable){const o={...r,store:this.getFieldsValue(true)};this.getFieldEntities().forEach(({onStoreChange:i})=>{i(t,n,o);});}else this.forceRootUpdate();};triggerDependenciesUpdate=(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r};updateValue=(t,n)=>{const r=ar(t),o=this.store;this.updateStore(ki(this.store,r,n)),this.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const i=this.triggerDependenciesUpdate(o,r),{onValuesChange:a}=this.callbacks;if(a){const l=this.getFieldsMap(true).get(r),u=xO(this.store,[r]),d=this.getFieldsValue(),m=ZB([d,u],{prepareArray:p=>l?.isList()?[]:[...p||[]]});a(u,m);}this.triggerOnFieldsChange([r,...i]);};setFieldsValue=t=>{this.warningUnhooked();const n=this.store;if(t){const r=kd(this.store,t);this.updateStore(r);}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch();};setFieldValue=(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:true}]);};getDependencyChildrenFields=t=>{const n=new Set,r=[],o=new Rd;this.getFieldEntities().forEach(a=>{const{dependencies:l}=a.props;(l||[]).forEach(u=>{const d=ar(u);o.update(d,(m=new Set)=>(m.add(a),m));});});const i=a=>{(o.get(a)||new Set).forEach(u=>{if(!n.has(u)){n.add(u);const d=u.getNamePath();u.isFieldDirty()&&d.length&&(r.push(d),i(d));}});};return i(t),r};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const o=this.getFields();if(n){const a=new Rd;n.forEach(({name:l,errors:u})=>{a.set(l,u);}),o.forEach(l=>{l.errors=a.get(l.name)||l.errors;});}const i=o.filter(({name:a})=>ef(t,a));i.length&&r(i,o);}};validateFields=(t,n)=>{this.warningUnhooked();let r,o;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,o=n):o=t;const i=!!r,a=i?r.map(ar):[],l=[...a],u=[],d=String(Date.now()),m=new Set,{recursive:p,dirty:g}=o||{};this.getFieldEntities(true).forEach(C=>{const w=C.getNamePath();if(i||((!C.isList()||!a.some($=>V0($,w,true)))&&l.push(w),a.push(w)),!(!C.props.rules||!C.props.rules.length)&&!(g&&!C.isFieldDirty())&&(m.add(w.join(d)),!i||ef(a,w,p))){const $=C.validateRules({validateMessages:{...Zk,...this.validateMessages},...o});u.push($.then(()=>({name:w,errors:[],warnings:[]})).catch(E=>{const T=[],R=[];return E.forEach?.(({rule:{warningOnly:I},errors:N})=>{I?R.push(...N):T.push(...N);}),T.length?Promise.reject({name:w,errors:T,warnings:R}):{name:w,errors:T,warnings:R}}));}});const b=nae(u);this.lastValidatePromise=b,b.catch(C=>C).then(C=>{const w=C.map(({name:$})=>$);this.notifyObservers(this.store,w,{type:"validateFinish"}),this.triggerOnFieldsChange(w,C);});const y=b.then(()=>this.lastValidatePromise===b?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(C=>{const w=C.filter(E=>E&&E.errors.length),$=w[0]?.errors?.[0];return Promise.reject({message:$,values:this.getFieldsValue(a),errorFields:w,outOfDate:this.lastValidatePromise!==b})});y.catch(C=>C);const S=a.filter(C=>m.has(C.join(d)));return this.triggerOnFieldsChange(S),y};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t);}catch(r){console.error(r);}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t);});}}function eF(e){const t=f.useRef(null),[,n]=f.useState({});if(!t.current)if(e)t.current=e;else {const r=()=>{n({});},o=new iae(r);t.current=o.getForm();}return [t.current]}const lE=f.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),aae=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=f.useContext(lE),i=f.useRef({});return f.createElement(lE.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(a,l)=>{t&&t(a,{changedFields:l,forms:i.current}),o.triggerFormChange(a,l);},triggerFormFinish:(a,l)=>{n&&n(a,{values:l,forms:i.current}),o.triggerFormFinish(a,l);},registerForm:(a,l)=>{a&&(i.current={...i.current,[a]:l}),o.registerForm(a,l);},unregisterForm:a=>{const l={...i.current};delete l[a],i.current=l,o.unregisterForm(a);}}},r)};function cE(){return cE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},cE.apply(this,arguments)}const sae=({name:e,initialValues:t,fields:n,form:r,preserve:o,children:i,component:a="form",validateMessages:l,validateTrigger:u="onChange",onValuesChange:d,onFieldsChange:m,onFinish:p,onFinishFailed:g,clearOnDestroy:b,...y},S)=>{const C=f.useRef(null),w=f.useContext(lE),[$]=eF(r),{useSubscribe:E,setInitialValues:T,setCallbacks:R,setValidateMessages:I,setPreserve:N,destroyForm:P}=$.getInternalHooks(Gc);f.useImperativeHandle(S,()=>({...$,nativeElement:C.current})),f.useEffect(()=>(w.registerForm(e,$),()=>{w.unregisterForm(e);}),[w,$,e]),I({...w.validateMessages,...l}),R({onValuesChange:d,onFieldsChange:(F,...z)=>{w.triggerFormChange(e,F),m&&m(F,...z);},onFinish:F=>{w.triggerFormFinish(e,F),p&&p(F);},onFinishFailed:g}),N(o);const O=f.useRef(null);T(t,!O.current),O.current||(O.current=true),f.useEffect(()=>()=>P(b),[]);let _;const L=typeof i=="function";if(L){const F=$.getFieldsValue(true);_=i(F,$);}else _=i;E(!L);const k=f.useRef(null);f.useEffect(()=>{Zie(k.current||[],n||[])||$.setFields(n||[]),k.current=n;},[n,$]);const W=f.useMemo(()=>({...$,validateTrigger:u}),[$,u]),q=f.createElement(H0.Provider,{value:null},f.createElement(gf.Provider,{value:W},_));return a===false?q:f.createElement(a,cE({},y,{ref:C,onSubmit:F=>{F.preventDefault(),F.stopPropagation(),$.submit();},onReset:F=>{F.preventDefault(),$.resetFields(),y.onReset?.(F);}}),q)};function Yx(e){try{return JSON.stringify(e)}catch{return Math.random()}}function lae(...e){const[t,n={}]=e,r=gie(n)?{form:n}:n,o=r.form,[i,a]=f.useState(()=>typeof t=="function"?t({}):void 0),l=f.useMemo(()=>Yx(i),[i]),u=f.useRef(l);u.current=l;const d=f.useContext(gf),m=o||d,p=m&&m._init,{getFieldsValue:g,getInternalHooks:b}=m,{registerWatch:y}=b(Gc),S=Mt((w,$)=>{const E=r.preserve?$??g(true):w??g(),T=typeof t=="function"?t(E):la(E,ar(t));Yx(i)!==Yx(T)&&a(T);}),C=typeof t=="function"?t:JSON.stringify(t);return f.useEffect(()=>{p&&S();},[p,C]),f.useEffect(()=>p?y(($,E)=>{S($,E);}):void 0,[p]),i}const cae=f.forwardRef(sae),og=cae;og.FormProvider=aae;og.Field=Jk;og.List=tae;og.useForm=eF;og.useWatch=lae;const xo=f.createContext({}),uae=({children:e,status:t,override:n})=>{const r=f.useContext(xo),o=f.useMemo(()=>{const i={...r};return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return f.createElement(xo.Provider,{value:o},e)},dae=f.createContext(void 0),Ul=e=>{const{space:t,form:n,children:r}=e;if(!Pr(r))return null;let o=r;return n&&(o=G.createElement(uae,{override:true,status:true},o)),t&&(o=G.createElement(Are,null,o)),o},fae=()=>$i()&&window.document.documentElement;function mae(e,t,n){return f.useMemo(()=>({...{trap:t??true,focusTriggerAfterClose:n??true},...e}),[e,t,n])}const a1=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=X({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=X({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),u=f.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return f.createElement("span",{className:X(t,a,l,n),style:{...u,...r}})},hae=new zt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),RR=e=>({height:e,lineHeight:oe(e)}),Bl=e=>({width:e,...RR(e)}),pae=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:hae,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Xx=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...RR(e)}),gae=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:n,...Bl(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Bl(o)},[`${t}${t}-sm`]:{...Bl(i)}}},vae=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:n,...Xx(t,l)},[`${r}-lg`]:{...Xx(o,l)},[`${r}-sm`]:{...Xx(i,l)}}},tF=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:o}=e;return {display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...Bl(o(r).mul(2).equal())}},bae=e=>({[e.skeletonNodeCls]:{...tF(e)}}),yae=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return {[t]:{...tF(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Bl(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Qx=(e,t,n)=>{const{skeletonButtonCls:r}=e;return {[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Zx=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...RR(e)}),Sae=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...Zx(r,l)},...Qx(e,r,n),[`${n}-lg`]:{...Zx(o,l)},...Qx(e,o,`${n}-lg`),[`${n}-sm`]:{...Zx(i,l)},...Qx(e,i,`${n}-sm`)}},Cae=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonNodeCls:l,skeletonImageCls:u,controlHeight:d,controlHeightLG:m,controlHeightSM:p,gradientFromColor:g,padding:b,marginSM:y,borderRadius:S,titleHeight:C,blockRadius:w,paragraphLiHeight:$,controlHeightXS:E,paragraphMarginTop:T}=e;return {[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:b,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:g,...Bl(d)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...Bl(m)},[`${n}-sm`]:{...Bl(p)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:g,borderRadius:w,[`+ ${o}`]:{marginBlockStart:p}},[o]:{padding:0,"> li":{width:"100%",height:$,listStyle:"none",background:g,borderRadius:w,"+ li":{marginBlockStart:E}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${o} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:T}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...Sae(e),...gae(e),...vae(e),...bae(e),...yae(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${i},
        ${a},
        ${l},
        ${u}
      `]:{...pae(e)}}}},xae=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return {color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},ig=qt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ft(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return Cae(r)},xae,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),wae=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:i,style:a,styles:l,shape:u="circle",size:d="default",...m}=e,{getPrefixCls:p}=f.useContext(wt),g=p("skeleton",t),[b,y]=ig(g),S=X(g,`${g}-element`,{[`${g}-active`]:i},r?.root,n,o,b,y);return f.createElement("div",{className:S,style:l?.root},f.createElement(a1,{prefixCls:`${g}-avatar`,className:r?.content,style:{...l?.content,...a},shape:u,size:d,...m}))},$ae=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,active:i,style:a,styles:l,block:u=false,size:d="default",...m}=e,{getPrefixCls:p}=f.useContext(wt),g=p("skeleton",t),[b,y]=ig(g),S=X(g,`${g}-element`,{[`${g}-active`]:i,[`${g}-block`]:u},o?.root,n,r,b,y);return f.createElement("div",{className:S,style:l?.root},f.createElement(a1,{prefixCls:`${g}-button`,className:o?.content,style:{...l?.content,...a},size:d,...m}))},nF=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,internalClassName:i,style:a,styles:l,active:u,children:d}=e,{getPrefixCls:m}=f.useContext(wt),p=m("skeleton",t),[g,b]=ig(p),y=X(p,`${p}-element`,{[`${p}-active`]:u},g,r?.root,n,o,b);return f.createElement("div",{className:y,style:l?.root},f.createElement("div",{className:X(r?.content,i||`${p}-node`),style:{...l?.content,...a}},d))},Eae=e=>{const{getPrefixCls:t}=f.useContext(wt),n=t("skeleton",e.prefixCls);return f.createElement(nF,{...e,internalClassName:`${n}-image`},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},f.createElement("title",null,"Image placeholder"),f.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},Mae=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:i,block:a,style:l,styles:u,size:d="default",...m}=e,{getPrefixCls:p}=f.useContext(wt),g=p("skeleton",t),[b,y]=ig(g),S=X(g,`${g}-element`,{[`${g}-active`]:i,[`${g}-block`]:a},r?.root,n,o,b,y);return f.createElement("div",{className:S,style:u?.root},f.createElement(a1,{prefixCls:`${g}-input`,className:r?.content,style:{...u?.content,...l},size:d,...m}))},Rae=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Tae=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,l)=>f.createElement("li",{key:l,style:{width:Rae(l,e)}}));return f.createElement("ul",{className:X(t,n),style:r},i)},Aae=({prefixCls:e,className:t,width:n,style:r})=>f.createElement("h3",{className:X(e,t),style:{width:n,...r}});function Jx(e){return e&&typeof e=="object"?e:{}}function Nae(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Pae(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Iae(e,t){const n={};return (!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Bf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,classNames:i,style:a,styles:l,children:u,avatar:d=false,title:m=true,paragraph:p=true,active:g,round:b}=e,{getPrefixCls:y,direction:S,className:C,style:w,classNames:$,styles:E}=jt("skeleton"),T=y("skeleton",t),[R,I]=ig(T),N={...e,avatar:d,title:m,paragraph:p},[P,O]=Kt([$,i],[E,l],{props:N});if(n||!("loading"in e)){const _=!!d,L=!!m,k=!!p;let W;if(_){const z={className:P.avatar,prefixCls:`${T}-avatar`,...Nae(L,k),...Jx(d),style:O.avatar};W=f.createElement("div",{className:X(P.header,`${T}-header`),style:O.header},f.createElement(a1,{...z}));}let q;if(L||k){let z;if(L){const U={className:P.title,prefixCls:`${T}-title`,...Pae(_,k),...Jx(m),style:O.title};z=f.createElement(Aae,{...U});}let j;if(k){const U={className:P.paragraph,prefixCls:`${T}-paragraph`,...Iae(_,L),...Jx(p),style:O.paragraph};j=f.createElement(Tae,{...U});}q=f.createElement("div",{className:X(P.section,`${T}-section`),style:O.section},z,j);}const F=X(T,{[`${T}-with-avatar`]:_,[`${T}-active`]:g,[`${T}-rtl`]:S==="rtl",[`${T}-round`]:b},P.root,C,r,o,R,I);return f.createElement("div",{className:F,style:{...O.root,...w,...a}},W,q)}return u??null};Bf.Button=$ae;Bf.Avatar=wae;Bf.Input=Mae;Bf.Image=Eae;Bf.Node=nF;function $O(){}const Oae=f.createContext({add:$O,remove:$O});function Dae(e){const t=f.useContext(Oae),n=f.useRef(null);return Mt(o=>{if(o){const i=e?o.querySelector(e):o;i&&(t.add(i),n.current=i);}else t.remove(n.current);})}const EO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(ng);return G.createElement(lt,{onClick:n,...e},t)},MO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=f.useContext(ng);return G.createElement(lt,{...dR(n),loading:e,onClick:o,...t},r)};function rF(e,t){return G.createElement("span",{className:`${e}-close-x`},t||G.createElement(zs,{className:`${e}-close-icon`}))}const oF=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:u,footer:d}=e,[m]=_o("Modal",ek()),p=t||m?.okText,g=r||m?.cancelText,b=G.useMemo(()=>({confirmLoading:o,okButtonProps:l,cancelButtonProps:u,okTextLocale:p,cancelTextLocale:g,okType:n,onOk:i,onCancel:a}),[o,l,u,p,g,n,i,a]);let y;return typeof d=="function"||typeof d>"u"?(y=G.createElement(G.Fragment,null,G.createElement(EO,null),G.createElement(MO,null)),typeof d=="function"&&(y=d(y,{OkBtn:MO,CancelBtn:EO})),y=G.createElement(Kk,{value:b},y)):y=d,G.createElement(Sk,{disabled:false},y)},_ae=e=>{const{componentCls:t}=e;return {[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Lae=e=>{const{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Bae=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:o}=e,[i,a]=tr(o,"grid"),[,l]=tr(o,"col"),u={};for(let d=r;d>=0;d--)d===0?(u[`${n}${t}-${d}`]={display:"none"},u[`${n}-push-${d}`]={insetInlineStart:"auto"},u[`${n}-pull-${d}`]={insetInlineEnd:"auto"},u[`${n}${t}-push-${d}`]={insetInlineStart:"auto"},u[`${n}${t}-pull-${d}`]={insetInlineEnd:"auto"},u[`${n}${t}-offset-${d}`]={marginInlineStart:0},u[`${n}${t}-order-${d}`]={order:0}):(u[`${n}${t}-${d}`]=[{[i("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${d/r*100}%`,maxWidth:`${d/r*100}%`}],u[`${n}${t}-push-${d}`]={insetInlineStart:`${d/r*100}%`},u[`${n}${t}-pull-${d}`]={insetInlineEnd:`${d/r*100}%`},u[`${n}${t}-offset-${d}`]={marginInlineStart:`${d/r*100}%`},u[`${n}${t}-order-${d}`]={order:d});return u[`${n}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},u},uE=(e,t)=>Bae(e,t),zae=(e,t,n)=>({[`@media (min-width: ${oe(t)})`]:{...uE(e,n)}}),kae=()=>({}),Fae=()=>({});qt("Grid",_ae,kae);const iF=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin});qt("Grid",e=>{const t=Ft(e,{gridColumns:24}),n=iF(t);return delete n.xs,[Lae(t),uE(t,""),uE(t,"-xs"),Object.keys(n).map(r=>zae(t,n[r],`-${r}`)).reduce((r,o)=>({...r,...o}),{})]},Fae);function RO(e){return {position:e,inset:0}}const Hae=e=>{const{componentCls:t,antCls:n}=e;return [{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...RO("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...RO("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:fR(e)}]},Vae=e=>{const{componentCls:t,motionDurationMid:n}=e;return [{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${oe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...dn(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${oe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...ba(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:oe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Ei(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${oe(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
          ${t}-body,
          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},jae=e=>{const{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Uae=e=>{const{componentCls:t}=e,n=iF(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(a=>({[`@media (min-width: ${oe(r[a])})`]:{width:`var(${o}${a}-width)`}}));return {[`${t}-root`]:{[t]:[].concat(Zt(Object.keys(n).map((a,l)=>{const u=Object.keys(n)[l-1];return u?{[`${o}${a}-width`]:`var(${o}${u}-width)`}:null})),[{width:`var(${o}xs-width)`}],Zt(i))}}},aF=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ft(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},sF=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${oe(e.padding)} ${oe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${oe(e.paddingXS)} ${oe(e.padding)}`:0,footerBorderTop:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${oe(e.padding*2)} ${oe(e.padding*2)} ${oe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:true}),lF=qt("Modal",e=>{const t=aF(e);return [Vae(t),jae(t),Hae(t),tg(t,"zoom"),Uae(t)]},sF,{unitless:{titleLineHeight:true}});let dE;const Wae=e=>{dE={x:e.pageX,y:e.pageY},setTimeout(()=>{dE=null;},100);};fae()&&document.documentElement.addEventListener("click",Wae,true);const cF=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:l,style:u,width:d=520,footer:m,classNames:p,styles:g,children:b,loading:y,confirmLoading:S,zIndex:C,mousePosition:w,onOk:$,onCancel:E,okButtonProps:T,cancelButtonProps:R,destroyOnHidden:I,destroyOnClose:N,panelRef:P=null,closable:O,mask:_,modalRender:L,maskClosable:k,focusTriggerAfterClose:W,focusable:q,...F}=e,{getPopupContainer:z,getPrefixCls:j,direction:U,className:Y,style:Q,classNames:D,styles:B,centered:K,cancelButtonProps:J,okButtonProps:ee,mask:te}=jt("modal"),{modal:re}=f.useContext(wt),[ie,ue]=f.useMemo(()=>typeof O=="boolean"?[void 0,void 0]:[O?.afterClose,O?.onClose],[O]),ne=j("modal",t),ce=j(),[fe,se,Me]=ane(_,te,ne,k),ae=mae(q,fe,W),pe=xt=>{S||(E?.(xt),ue?.());},be=xt=>{$?.(xt),ue?.();},xe=Qn(ne),[Te,Ke]=lF(ne,xe),Ae=X(i,{[`${ne}-centered`]:a??K,[`${ne}-wrap-rtl`]:U==="rtl"}),de=m!==null&&!y?f.createElement(oF,{...e,okButtonProps:{...ee,...T},onOk:be,cancelButtonProps:{...J,...R},onCancel:pe}):null,[ve,Ne,He,We]=rR(Hl(e),Hl(re),{closable:true,closeIcon:f.createElement(zs,{className:`${ne}-close-icon`}),closeIconRender:xt=>rF(ne,xt)}),je=ve?{disabled:He,closeIcon:Ne,afterClose:ie,...We}:false,nt=L?xt=>f.createElement("div",{className:`${ne}-render`},L(xt)):void 0,ot=`.${ne}-${L?"render":"container"}`,Ge=Dae(ot),Oe=Ur(P,Ge),[qe,Je]=Pu("Modal",C),Le={...e,width:d,panelRef:P,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusable:ae,mask:fe,maskClosable:Me,zIndex:qe},[Ie,ct]=Kt([D,p,se],[B,g],{props:Le}),[Ot,pt]=f.useMemo(()=>d&&typeof d=="object"?[void 0,d]:[d,void 0],[d]),Lt=f.useMemo(()=>{const xt={};return pt&&Object.keys(pt).forEach(Rt=>{const ut=pt[Rt];ut!==void 0&&(xt[`--${ne}-${Rt}-width`]=typeof ut=="number"?`${ut}px`:ut);}),xt},[ne,pt]);return f.createElement(Ul,{form:true,space:true},f.createElement(Zy.Provider,{value:Je},f.createElement(pie,{width:Ot,...F,zIndex:qe,getContainer:l===void 0?z:l,prefixCls:ne,rootClassName:X(Te,r,Ke,xe,Ie.root),rootStyle:ct.root,footer:de,visible:o,mousePosition:w??dE,onClose:pe,closable:je,closeIcon:Ne,transitionName:Vl(ce,"zoom",e.transitionName),maskTransitionName:Vl(ce,"fade",e.maskTransitionName),mask:fe,maskClosable:Me,className:X(Te,n,Y),style:{...Q,...u,...Lt},classNames:{...Ie,wrapper:X(Ie.wrapper,Ae)},styles:ct,panelRef:Oe,destroyOnHidden:I??N,modalRender:nt,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusTrap:ae.trap},y?f.createElement(Bf,{active:true,title:false,paragraph:{rows:4},className:`${ne}-body-skeleton`}):b)))},qae=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:u,confirmBodyPadding:d}=e,m=`${t}-confirm`;return {[m]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${m}-body-wrapper`]:{...I0()},[`&${t} ${t}-body`]:{padding:d},[`${m}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(u).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${m}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${oe(e.marginSM)})`},[`${m}-body-no-icon ${m}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${m}-paragraph`]:{maxWidth:`calc(100% - ${oe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${m}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${m}-container`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${m}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${m}-error ${m}-body > ${e.iconCls}`]:{color:e.colorError},[`${m}-warning ${m}-body > ${e.iconCls},
        ${m}-confirm ${m}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${m}-info ${m}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${m}-success ${m}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Gae=Df(["Modal","confirm"],e=>{const t=aF(e);return qae(t)},sF,{order:-1e3}),uF=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:u,locale:d,autoFocusButton:m,focusable:p,...g}=e;let b=n;if(!n&&n!==null)switch(a){case "info":b=f.createElement(eR,null);break;case "success":b=f.createElement(JM,null);break;case "error":b=f.createElement(Qp,null);break;default:b=f.createElement(Zp,null);}const y=l??a==="confirm",S=f.useMemo(()=>{const L=p?.autoFocusButton||m;return L||L===null?L:"ok"},[m,p?.autoFocusButton]),[C]=_o("Modal"),w=d||C,$=r||(y?w?.okText:w?.justOkText),E=o||w?.cancelText,{closable:T}=g,{onClose:R}=T&&typeof T=="object"?T:{},I=f.useMemo(()=>({autoFocusButton:S,cancelTextLocale:E,okTextLocale:$,mergedOkCancel:y,onClose:R,...g}),[S,E,$,y,R,g]),N=f.createElement(f.Fragment,null,f.createElement(uO,null),f.createElement(dO,null)),P=Pr(e.title)&&e.title!=="",O=Pr(b),_=`${i}-body`;return f.createElement("div",{className:`${i}-body-wrapper`},f.createElement("div",{className:X(_,{[`${_}-has-title`]:P,[`${_}-no-icon`]:!O})},b,f.createElement("div",{className:`${i}-paragraph`},P&&f.createElement("span",{className:`${i}-title`},e.title),f.createElement("div",{className:`${i}-content`},e.content))),u===void 0||typeof u=="function"?f.createElement(Kk,{value:I},f.createElement("div",{className:`${i}-btns`},typeof u=="function"?u(N,{OkBtn:dO,CancelBtn:uO}):N)):u,f.createElement(Gae,{prefixCls:t}))},Kae=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:l,bodyStyle:u,closable:d=false,onConfirm:m,styles:p,title:g,mask:b,maskClosable:y,okButtonProps:S,cancelButtonProps:C}=e,{cancelButtonProps:w,okButtonProps:$}=jt("modal"),E=`${i}-confirm`,T=e.width||416,R=e.style||{},I=X(E,`${E}-${e.type}`,{[`${E}-rtl`]:o==="rtl"},e.className),N=f.useMemo(()=>{const _=F2(b,y);return _.closable??(_.closable=false),_},[b,y]),[,P]=Wr(),O=f.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+iR,[n,P]);return f.createElement(cF,{...e,className:I,wrapClassName:X({[`${E}-centered`]:!!e.centered},a),onCancel:()=>{t?.({triggerCancel:true}),m?.(false);},title:g,footer:null,transitionName:Vl(l||"","zoom",e.transitionName),maskTransitionName:Vl(l||"","fade",e.maskTransitionName),mask:N,style:R,styles:{body:u,mask:r,...p},width:T,zIndex:O,closable:d},f.createElement(uF,{...e,confirmPrefixCls:E,okButtonProps:{...$,...S},cancelButtonProps:{...w,...C}}))},dF=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return f.createElement(Lo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},f.createElement(Kae,{...e}))},Kc=[];let fF="";function mF(){return fF}const Yae=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,o=ek(),i=f.useContext(wt),a=mF()||i.getPrefixCls(),l=t||`${a}-modal`;let u=n;return u===false&&(u=void 0),G.createElement(dF,{...e,rootPrefixCls:a,prefixCls:l,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??o,getContainer:u})};function ag(e){const t=sR(),n=document.createDocumentFragment();let r={...e,close:l,open:true},o;function i(...d){d.some(p=>p?.triggerCancel)&&e.onCancel?.(()=>{},...d.slice(1));for(let p=0;p<Kc.length;p++)if(Kc[p]===l){Kc.splice(p,1);break}Pk(n).then(()=>{});}const a=d=>{clearTimeout(o),o=setTimeout(()=>{const m=t.getPrefixCls(void 0,mF()),p=t.getIconPrefixCls(),g=t.getTheme(),b=G.createElement(Yae,{...d});n1(G.createElement(Lo,{prefixCls:m,iconPrefixCls:p,theme:g},typeof t.holderRender=="function"?t.holderRender(b):b),n);});};function l(...d){r={...r,open:false,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d);}},a(r);}function u(d){typeof d=="function"?r=d(r):r={...r,...d},a(r);}return a(r),Kc.push(l),{destroy:l,update:u}}function hF(e){return {...e,type:"warning"}}function pF(e){return {...e,type:"info"}}function gF(e){return {...e,type:"success"}}function vF(e){return {...e,type:"error"}}function bF(e){return {...e,type:"confirm"}}function Xae({rootPrefixCls:e}){fF=e;}const Qae=f.forwardRef((e,t)=>{const{afterClose:n,config:r,...o}=e,[i,a]=f.useState(true),[l,u]=f.useState(r),{direction:d,getPrefixCls:m}=f.useContext(wt),p=m("modal"),g=m(),b=()=>{n(),l.afterClose?.();},y=(...w)=>{a(false),w.some(E=>E?.triggerCancel)&&l.onCancel?.(()=>{},...w.slice(1));};f.useImperativeHandle(t,()=>({destroy:y,update:w=>{u($=>{const E=typeof w=="function"?w($):w;return {...$,...E}});}}));const S=l.okCancel??l.type==="confirm",[C]=_o("Modal",ya.Modal);return f.createElement(dF,{prefixCls:p,rootPrefixCls:g,...l,close:y,open:i,afterClose:b,okText:l.okText||(S?C?.okText:C?.justOkText),direction:l.direction||d,cancelText:l.cancelText||C?.cancelText,...o})});let TO=0;const Zae=f.memo(f.forwardRef((e,t)=>{const[n,r]=cne();return f.useImperativeHandle(t,()=>({patchElement:r}),[r]),f.createElement(f.Fragment,null,n)}));function yF(){const e=f.useRef(null),[t,n]=f.useState([]);f.useEffect(()=>{t.length&&(Zt(t).forEach(a=>{a();}),n([]));},[t]);const r=f.useCallback(i=>function(l){TO+=1;const u=f.createRef();let d;const m=new Promise(S=>{d=S;});let p=false,g;const b=f.createElement(Qae,{key:`modal-${TO}`,config:i(l),ref:u,afterClose:()=>{g?.();},isSilent:()=>p,onConfirm:S=>{d(S);}});return g=e.current?.patchElement(b),g&&Kc.push(g),{destroy:()=>{function S(){u.current?.destroy();}u.current?S():n(C=>[].concat(Zt(C),[S]));},update:S=>{function C(){u.current?.update(S);}u.current?C():n(w=>[].concat(Zt(w),[C]));},then:S=>(p=true,m.then(S))}},[]);return [f.useMemo(()=>({info:r(pF),success:r(gF),error:r(vF),warning:r(hF),confirm:r(bF)}),[r]),f.createElement(Zae,{key:"modal-holder",ref:e})]}const Jae=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new zt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new zt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new zt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),u=new zt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:n,_skip_check_:true},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}}}}},ese=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],tse={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},nse=(e,t)=>{const{componentCls:n}=e;return {[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[tse[t]]:{value:0,_skip_check_:true}}}}},rse=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},ose=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return t},ise=e=>{const{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute",...rse(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...ose(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...ese.map(n=>nse(e,n)).reduce((n,r)=>({...n,...r}),{})}},SF=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:u,colorWarning:d,colorError:m,colorTextHeading:p,notificationBg:g,notificationPadding:b,notificationMarginEdge:y,progressBg:S,notificationProgressHeight:C,fontSize:w,lineHeight:$,width:E,notificationIconSize:T,colorText:R,colorSuccessBg:I,colorErrorBg:N,colorInfoBg:P,colorWarningBg:O,motionDurationMid:_}=e,L=`${n}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:g,borderRadius:a,boxShadow:r,[L]:{padding:b,width:E,maxWidth:`calc(100vw - ${oe(e.calc(y).mul(2).equal())})`,lineHeight:$,wordWrap:"break-word",borderRadius:a,overflow:"hidden","&-success":I?{background:I}:{},"&-error":N?{background:N}:{},"&-info":P?{background:P}:{},"&-warning":O?{background:O}:{}},[`${L}-title`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${L}-description`]:{fontSize:w,color:R,marginTop:e.marginXS},[`${L}-closable ${L}-title`]:{paddingInlineEnd:e.paddingLG},[`${L}-with-icon ${L}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:o},[`${L}-with-icon ${L}-description`]:{marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:w},[`${L}-icon`]:{position:"absolute",fontSize:T,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:m}},[`${L}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(k=>`${k} ${_}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Ei(e)},[`${L}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${oe(a)} * 2)`,left:{_skip_check_:true,value:a},right:{_skip_check_:true,value:a},bottom:0,blockSize:C,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:S},"&::-webkit-progress-value":{borderRadius:a,background:S}},[`${L}-actions`]:{float:"right",marginTop:e.marginSM}}},ase=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new zt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:{...dn(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}}},{[t]:{[`${a}-wrapper`]:SF(e)}}]},CF=e=>({zIndexPopup:e.zIndexPopupBase+iR+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),xF=e=>{const t=e.paddingMD,n=e.paddingLG;return Ft(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},wF=qt("Notification",e=>{const t=xF(e);return [ase(t),Jae(t),ise(t)]},CF),sse=Df(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=xF(e);return {[`${t}-pure-panel`]:{...SF(n),width:n.width,maxWidth:`calc(100vw - ${oe(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0}}},CF);function TR(e,t){return t===null||t===false?null:t||f.createElement(zs,{className:`${e}-close-icon`})}const lse={success:JM,info:eR,error:Qp,warning:Zp},$F=e=>{const{prefixCls:t,icon:n,type:r,title:o,description:i,actions:a,role:l="alert",styles:u,classNames:d}=e;let m=null;return n?m=f.createElement("span",{className:X(`${t}-icon`,d.icon),style:u.icon},n):r&&(m=f.createElement(lse[r]||null,{className:X(`${t}-icon`,d.icon,`${t}-icon-${r}`),style:u.icon})),f.createElement("div",{className:X({[`${t}-with-icon`]:m}),role:l},m,f.createElement("div",{className:X(`${t}-title`,d.title),style:u.title},o),i&&f.createElement("div",{className:X(`${t}-description`,d.description),style:u.description},i),a&&f.createElement("div",{className:X(`${t}-actions`,d.actions),style:u.actions},a))},cse=e=>{const{prefixCls:t,icon:n,type:r,message:o,title:i,description:a,btn:l,actions:u,closeIcon:d,className:m,style:p,styles:g,classNames:b,closable:y,...S}=e,{getPrefixCls:C,className:w,style:$,classNames:E,styles:T}=jt("notification"),[R,I]=Kt([E,b],[T,g],{props:e}),{notification:N}=f.useContext(wt),P=u??l,O=i??o,_=t||C("notification"),L=`${_}-notice`,k=Qn(_),[W,q]=wF(_,k),[F,z,,j]=rR(Hl(e),Hl(N),{closable:true,closeIcon:f.createElement(zs,{className:`${_}-close-icon`}),closeIconRender:Y=>TR(_,Y)}),U=F?{onClose:y&&typeof y=="object"?y?.onClose:void 0,closeIcon:z,...j}:false;return f.createElement("div",{className:X(`${L}-pure-panel`,W,m,q,k,R.root),style:I.root},f.createElement(sse,{prefixCls:_}),f.createElement(lR,{style:{...$,...p},...S,prefixCls:_,eventKey:"pure",duration:null,closable:U,className:X(m,w),content:f.createElement($F,{classNames:R,styles:I,prefixCls:L,icon:n,type:r,title:O,description:a,actions:P})}))};function use(e,t,n){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case "topLeft":r={left:0,top:t,bottom:"auto"};break;case "topRight":r={right:0,top:t,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case "bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function dse(e){return {motionName:`${e}-fade`}}function fse(e,t,n){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:n?.closeIcon}const AO=24,mse=4.5,hse="topRight",pse=({children:e,prefixCls:t})=>{const n=Qn(t),[r,o]=wF(t,n);return G.createElement(Ek,{classNames:{list:X(r,o,n)}},e)},gse=(e,{prefixCls:t,key:n})=>G.createElement(pse,{prefixCls:t,key:n},e),vse=G.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:u,stack:d,duration:m=mse,pauseOnHover:p=true,showProgress:g}=e,{getPrefixCls:b,getPopupContainer:y,direction:S}=jt("notification"),{notification:C}=f.useContext(wt),[,w]=Wr(),$=o||b("notification"),E=f.useMemo(()=>typeof m=="number"&&m>0?m:false,[m]),T=L=>use(L,n??AO,r??AO),R=()=>X({[`${$}-rtl`]:l??S==="rtl"}),I=()=>dse($),[N,P]=Mk({prefixCls:$,style:T,className:R,motion:I,closable:{closeIcon:TR($)},duration:E,getContainer:()=>i?.()||y?.()||document.body,maxCount:a,pauseOnHover:p,showProgress:g,onAllRemoved:u,renderNotifications:gse,stack:d===false?false:{threshold:typeof d=="object"?d?.threshold:void 0,offset:8,gap:w.margin}}),[O,_]=Kt([C?.classNames,e?.classNames],[C?.styles,e?.styles],{props:e});return G.useImperativeHandle(t,()=>({...N,prefixCls:$,notification:C,classNames:O,styles:_})),P});function EF(e){const t=G.useRef(null),{notification:n}=G.useContext(wt);return [G.useMemo(()=>{const o=u=>{if(!t.current)return;const{open:d,prefixCls:m,notification:p,classNames:g,styles:b}=t.current,y=p?.className||{},S=p?.style||{},C=`${m}-notice`,{title:w,message:$,description:E,icon:T,type:R,btn:I,actions:N,className:P,style:O,role:_="alert",closeIcon:L,closable:k,classNames:W={},styles:q={},...F}=u,z=w??$,j=N??I,U=TR(C,fse(L,e,p)),[Y,Q,,D]=nk(Hl({...e||{},...u}),Hl(n),{closable:true,closeIcon:U}),B=Y?{onClose:k&&typeof k=="object"?k.onClose:void 0,closeIcon:Q,...D}:false,K=Il(W,{props:u}),J=Il(q,{props:u}),ee=Qy(void 0,g,K),te=oR(b,J);return d({placement:e?.placement??hse,...F,content:G.createElement($F,{prefixCls:C,icon:T,type:R,title:z,description:E,actions:j,role:_,classNames:ee,styles:te}),className:X({[`${C}-${R}`]:R},P,y,ee.root),style:{...S,...te.root,...O},closable:B})},a={open:o,destroy:u=>{u!==void 0?t.current?.close(u):t.current?.destroy();}};return ["success","info","warning","error"].forEach(u=>{a[u]=d=>o({...d,type:u});}),a},[e,n]),G.createElement(vse,{key:"notification-holder",...e,ref:t})]}function MF(e){return EF(e)}const j0=G.createContext({}),RF=G.createContext({message:{},notification:{},modal:{}}),bse=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return {[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},yse=()=>({}),Sse=qt("App",bse,yse),Cse=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:l,component:u="div"}=e,{direction:d,getPrefixCls:m,className:p,style:g}=jt("app"),b=m("app",t),[y,S]=Sse(b),C=X(y,b,r,o,S,{[`${b}-rtl`]:d==="rtl"}),w=f.useContext(j0),$=G.useMemo(()=>({message:{...w.message,...i},notification:{...w.notification,...a}}),[i,a,w.message,w.notification]),[E,T]=Nk($.message),[R,I]=MF($.notification),[N,P]=yF(),O=G.useMemo(()=>({message:E,notification:R,modal:N}),[E,R,N]),_=u===false?G.Fragment:u,L={className:X(p,C),style:{...g,...l}};return G.createElement(RF.Provider,{value:O},G.createElement(j0.Provider,{value:$},G.createElement(_,{...u===false?void 0:L},P,T,I,n)))},xse=()=>G.useContext(RF),sg=Cse;sg.useApp=xse;function TF(e){return t=>f.createElement(Lo,{theme:{token:{motion:false,zIndexPopupBase:0}}},f.createElement(e,{...t}))}const AR=(e,t,n,r,o)=>TF(a=>{const{prefixCls:l,style:u}=a,d=f.useRef(null),[m,p]=f.useState(0),[g,b]=f.useState(0),[y,S]=un(false,a.open),{getPrefixCls:C}=f.useContext(wt),w=C(r||"select",l);f.useEffect(()=>{if(S(true),typeof ResizeObserver<"u"){const T=new ResizeObserver(I=>{const N=I[0].target;p(N.offsetHeight+8),b(N.offsetWidth);}),R=setInterval(()=>{const I=o?`.${o(w)}`:`.${w}-dropdown`,N=d.current?.querySelector(I);N&&(clearInterval(R),T.observe(N));},10);return ()=>{clearInterval(R),T.disconnect();}}},[w]);let $={...a,style:{...u,margin:0},open:y,getPopupContainer:()=>d.current};n&&($=n($)),t&&Object.assign($,{[t]:{overflow:{adjustX:false,adjustY:false}}});const E={paddingBottom:m,position:"relative",minWidth:g};return f.createElement("div",{ref:d,style:E},f.createElement(e,{...$}))}),wse=(e,t,n,r,o=false,i,a)=>{const l=f.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:false},[n]);return f.useMemo(()=>{const u=!o&&l.allowClear!==false&&(t.length||i)&&!(a==="combobox"&&i==="");return {allowClear:u,clearIcon:u?l.clearIcon||r||"×":null}},[l,r,o,t.length,i,a])},AF=f.createContext(null);function Iu(){return f.useContext(AF)}function $se(e=250){const t=f.useRef(null),n=f.useRef(null);f.useEffect(()=>()=>{window.clearTimeout(n.current);},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null;},e);}return [()=>t.current,r]}function NF(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function Ese(e,t,n,r){const o=Mt(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!NF(e(),a)&&n(false);});f.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o]);}function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},fE.apply(this,arguments)}const Mse=e=>{const t=e===true?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"}}},Rse=(e,t)=>{const{prefixCls:n,disabled:r,visible:o,children:i,popupElement:a,animation:l,transitionName:u,popupStyle:d,popupClassName:m,direction:p="ltr",placement:g,builtinPlacements:b,popupMatchSelectWidth:y,popupRender:S,popupAlign:C,getPopupContainer:w,empty:$,onPopupVisibleChange:E,onPopupMouseEnter:T,onPopupMouseDown:R,onPopupBlur:I,...N}=e,P=`${n}-dropdown`;let O=a;S&&(O=S(a));const _=f.useMemo(()=>b||Mse(y),[b,y]),L=l?`${P}-${l}`:u,k=typeof y=="number",W=f.useMemo(()=>k?null:y===false?"minWidth":"width",[y,k]);let q=d;k&&(q={...d,width:y});const F=f.useRef(null);return f.useImperativeHandle(t,()=>({getPopupElement:()=>F.current?.popupElement})),f.createElement(e1,fE({},N,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:g||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:P,popupMotion:{motionName:L},popup:f.createElement("div",{onMouseEnter:T,onMouseDown:R,onBlur:I},O),ref:F,stretch:W,popupAlign:C,popupVisible:o,getPopupContainer:w,popupClassName:X(m,{[`${P}-empty`]:$}),popupStyle:q,onPopupVisibleChange:E}),i)},Tse=f.forwardRef(Rse);function NO(e,t){const{key:n}=e;let r;return "value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function mE(e){return typeof e<"u"&&!Number.isNaN(e)}function PF(e,t){const{label:n,value:r,options:o,groupLabel:i}=e||{},a=n||(t?"children":"label");return {label:a,value:r||"value",options:o||"options",groupLabel:i||a}}function Ase(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:i,options:a,groupLabel:l}=PF(t,false);function u(d,m){Array.isArray(d)&&d.forEach(p=>{if(m||!(a in p)){const g=p[i];r.push({key:NO(p,r.length),groupOption:m,data:p,label:p[o],value:g});}else {let g=p[l];g===void 0&&n&&(g=p.label),r.push({key:NO(p,r.length),group:true,data:p,label:g}),u(p[a],true);}});}return u(e,false),r}function hE(e){const t={...e};return "props"in t||Object.defineProperty(t,"props",{get(){return Er(false,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Nse=(e,t,n)=>{if(!t||!t.length)return null;let r=false;const o=(a,[l,...u])=>{if(!l)return [a];const d=a.split(l);return r=r||d.length>1,d.reduce((m,p)=>[...m,...o(p,u)],[]).filter(Boolean)},i=o(e,t);return r?typeof n<"u"?i.slice(0,n):i:null};function Pse(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return f.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:o,value:i})=>["number","string"].includes(typeof o)?o:i).join(", ")}`,n.length>r?", ...":null)}const Ise=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null);},NR=(e,t=1)=>{if(t<=0){e();return}Ise(()=>{NR(e,t-1);});};function Ose(e,t,n,r){const[o,i]=f.useState(false);f.useEffect(()=>{i(true);},[]);const[a,l]=un(e,t),[u,d]=f.useState(false),m=o?a:false,p=r(m),g=f.useRef(0),b=Mt(S=>{n&&p!==S&&n(S),l(S);}),y=Mt((S,C={})=>{const{cancelFun:w}=C;g.current+=1;const $=g.current,E=typeof S=="boolean"?S:!p;d(!E);function T(){$===g.current&&!w?.()&&(b(E),d(false));}E?T():NR(()=>{T();});});return [m,p,y,u]}function ew(e){const{children:t,...n}=e;return t?f.createElement("div",n,t):null}const IF=f.createContext(null);function lg(){return f.useContext(IF)}const OF=f.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:o,style:i,syncWidth:a,value:l,className:u,autoComplete:d,...m}=e,{prefixCls:p,mode:g,onSearch:b,onSearchSubmit:y,onInputBlur:S,autoFocus:C,tokenWithEnter:w,placeholder:$,components:{input:E="input"}}=lg(),{id:T,classNames:R,styles:I,open:N,activeDescendantId:P,role:O,disabled:_}=Iu()||{},L=X(`${p}-input`,R?.input,u),k=f.useRef(false),W=f.useRef(null),q=f.useRef(null);f.useImperativeHandle(t,()=>q.current);const F=ee=>{let{value:te}=ee.target;if(w&&W.current&&/[\r\n]/.test(W.current)){const re=W.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");te=te.replace(re,W.current);}W.current=null,b&&b(te,true,k.current),n?.(ee);},z=ee=>{const{key:te}=ee,{value:re}=ee.currentTarget;te==="Enter"&&g==="tags"&&!k.current&&y&&y(re),r?.(ee);},j=ee=>{S?.(),o?.(ee);},U=()=>{k.current=true;},Y=ee=>{if(k.current=false,g!=="combobox"){const{value:te}=ee.currentTarget;b?.(te,true,false);}},Q=ee=>{const{clipboardData:te}=ee,re=te?.getData("text");W.current=re||"";},[D,B]=f.useState(void 0);An(()=>{const ee=q.current;if(a&&ee){ee.style.width="0px";const te=ee.scrollWidth;B(te),ee.style.width="";}},[a,l]);const K={id:T,type:g==="combobox"?"text":"search",...m,ref:q,style:{...I?.input,...i,"--select-input-width":D},autoFocus:C,autoComplete:d||"off",className:L,disabled:_,value:l||"",onChange:F,onKeyDown:z,onBlur:j,onPaste:Q,onCompositionStart:U,onCompositionEnd:Y,role:O||"combobox","aria-expanded":N||false,"aria-haspopup":"listbox","aria-owns":N?`${T}_list`:void 0,"aria-autocomplete":"list","aria-controls":N?`${T}_list`:void 0,"aria-activedescendant":N?P:void 0};if(f.isValidElement(E)){const ee=E.props||{},te={placeholder:e.placeholder||$,...K,...ee};return Object.keys(ee).forEach(re=>{const ie=ee[re];typeof ie=="function"&&(te[re]=(...ue)=>{ie(...ue),K[re]?.(...ue);});}),te.ref=Ur(E.ref,K.ref),f.cloneElement(E,te)}const J=E;return f.createElement(J,K)});function DF(e){const{prefixCls:t,placeholder:n,displayValues:r}=lg(),{classNames:o,styles:i}=Iu(),{show:a=true}=e;return r.length?null:f.createElement("div",{className:X(`${t}-placeholder`,o?.placeholder),style:{visibility:a?"visible":"hidden",...i?.placeholder}},n)}const PR=f.createContext(null);function _F(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Dse(e){return e!=null}function _se(e){return !e&&e!==0}function PO(e){return ["string","number"].includes(typeof e)}function pE(e){let t;return e&&(PO(e.title)?t=e.title.toString():PO(e.label)&&(t=e.label.toString())),t}function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},gE.apply(this,arguments)}const Lse=f.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:i,maxLength:a,mode:l,components:u}=lg(),{triggerOpen:d,title:m,showSearch:p,classNames:g,styles:b}=Iu(),y=f.useContext(PR),[S,C]=f.useState(false),w=l==="combobox",$=i[0],E=f.useMemo(()=>w&&o&&!S&&d?o:p?r:"",[w,o,S,d,r,p]),[T,R,I,N]=f.useMemo(()=>{let L,k,W;if($&&y?.flattenOptions){const F=y.flattenOptions.find(z=>z.value===$.value);F?.data&&(L=F.data.className,k=F.data.style,W=pE(F.data));}return $&&!W&&(W=pE($)),m!==void 0&&(W=m),[L,k,W,!!L||!!k]},[$,y?.flattenOptions,m]);f.useEffect(()=>{w&&C(false);},[w,o]);const P=$&&$.label!==null&&$.label!==void 0&&String($.label).trim()!=="",_=!(w&&u?.input)?$?N?f.createElement("div",{className:X(`${n}-content-value`,T),style:{...E?{visibility:"hidden"}:{},...R},title:I},$.label):$.label:f.createElement(DF,{show:!E}):null;return f.createElement("div",{className:X(`${n}-content`,P&&`${n}-content-has-value`,E&&`${n}-content-has-search-value`,N&&`${n}-content-has-option-style`,g?.content),style:b?.content,title:N?void 0:I},_,f.createElement(OF,gE({ref:t},e,{value:E,maxLength:l==="combobox"?a:void 0,onChange:L=>{C(true),e.onChange?.(L);}})))}),Td=void 0;function Bse(e,t){const{prefixCls:n,invalidate:r,item:o,renderItem:i,responsive:a,responsiveDisabled:l,registerSize:u,itemKey:d,className:m,style:p,children:g,display:b,order:y,component:S="div",...C}=e,w=a&&!b;function $(N){u(d,N);}f.useEffect(()=>()=>{$(null);},[]);const E=i&&o!==Td?i(o,{index:y}):g;let T;r||(T={opacity:w?0:1,height:w?0:Td,overflowY:w?"hidden":Td,order:a?y:Td,pointerEvents:w?"none":Td,position:w?"absolute":Td});const R={};w&&(R["aria-hidden"]=true);let I=f.createElement(S,cr({className:X(!r&&n,m),style:{...T,...p}},R,C,{ref:t}),E);return a&&(I=f.createElement(ma,{onResize:({offsetWidth:N})=>{$(N);},disabled:l},I)),I}const Mh=f.forwardRef(Bse);function zse(e){if(typeof MessageChannel>"u")Bt(e);else {const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0);}}function kse(){const e=f.useRef(null);return n=>{e.current||(e.current=[],zse(()=>{Mo.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r();}),e.current=null;});})),e.current.push(n);}}function Ad(e,t){const[n,r]=f.useState(t),o=Mt(i=>{e(()=>{r(i);});});return [n,o]}const U0=G.createContext(null),Fse=(e,t)=>{const n=f.useContext(U0);if(!n){const{component:l="div",...u}=e;return f.createElement(l,cr({},u,{ref:t}))}const{className:r,...o}=n,{className:i,...a}=e;return f.createElement(U0.Provider,{value:null},f.createElement(Mh,cr({ref:t,className:X(r,i)},o,a)))},Hse=f.forwardRef(Fse),LF="responsive",BF="invalidate";function Vse(e){return `+ ${e.length} ...`}function jse(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:o,renderRawItem:i,itemKey:a,itemWidth:l=10,ssr:u,style:d,className:m,maxCount:p,renderRest:g,renderRawRest:b,prefix:y,suffix:S,component:C="div",itemComponent:w,onVisibleChange:$,...E}=e,T=u==="full",R=kse(),[I,N]=Ad(R,null),P=I||0,[O,_]=Ad(R,new Map),[L,k]=Ad(R,0),[W,q]=Ad(R,0),[F,z]=Ad(R,0),[j,U]=Ad(R,0),[Y,Q]=f.useState(null),[D,B]=f.useState(null),K=f.useMemo(()=>D===null&&T?Number.MAX_SAFE_INTEGER:D||0,[D,I]),[J,ee]=f.useState(false),te=`${n}-item`,re=Math.max(L,W),ie=p===LF,ue=r.length&&ie,ne=p===BF,ce=ue||typeof p=="number"&&r.length>p,fe=f.useMemo(()=>{let Oe=r;return ue?I===null&&T?Oe=r:Oe=r.slice(0,Math.min(r.length,P/l)):typeof p=="number"&&(Oe=r.slice(0,p)),Oe},[r,l,I,p,ue]),se=f.useMemo(()=>ue?r.slice(K+1):r.slice(fe.length),[r,fe,ue,K]),Me=f.useCallback((Oe,qe)=>typeof a=="function"?a(Oe):(a&&Oe?.[a])??qe,[a]),ae=f.useCallback(o||(Oe=>Oe),[o]);function pe(Oe,qe,Je){D===Oe&&(qe===void 0||qe===Y)||(B(Oe),Je||(ee(Oe<r.length-1),$?.(Oe)),qe!==void 0&&Q(qe));}function be(Oe,qe){N(qe.clientWidth);}function xe(Oe,qe){_(Je=>{const Le=new Map(Je);return qe===null?Le.delete(Oe):Le.set(Oe,qe),Le});}function Te(Oe,qe){q(qe),k(W);}function Ke(Oe,qe){z(qe);}function Ae(Oe,qe){U(qe);}function de(Oe){return O.get(Me(fe[Oe],Oe))}An(()=>{if(P&&typeof re=="number"&&fe){let Oe=F+j;const qe=fe.length,Je=qe-1;if(!qe){pe(0,null);return}for(let Le=0;Le<qe;Le+=1){let Ie=de(Le);if(T&&(Ie=Ie||0),Ie===void 0){pe(Le-1,void 0,true);break}if(Oe+=Ie,Je===0&&Oe<=P||Le===Je-1&&Oe+de(Je)<=P){pe(Je,null);break}else if(Oe+re>P){pe(Le-1,Oe-Ie-j+W);break}}S&&de(0)+j>P&&Q(null);}},[P,O,W,F,j,Me,fe]);const ve=J&&!!se.length;let Ne={};Y!==null&&ue&&(Ne={position:"absolute",left:Y,top:0});const He={prefixCls:te,responsive:ue,component:w,invalidate:ne},We=i?(Oe,qe)=>{const Je=Me(Oe,qe);return f.createElement(U0.Provider,{key:Je,value:{...He,order:qe,item:Oe,itemKey:Je,registerSize:xe,display:qe<=K}},i(Oe,qe))}:(Oe,qe)=>{const Je=Me(Oe,qe);return f.createElement(Mh,cr({},He,{order:qe,key:Je,item:Oe,renderItem:ae,itemKey:Je,registerSize:xe,display:qe<=K}))},je={order:ve?K:Number.MAX_SAFE_INTEGER,className:`${te}-rest`,registerSize:Te,display:ve},nt=g||Vse,ot=b?f.createElement(U0.Provider,{value:{...He,...je}},b(se)):f.createElement(Mh,cr({},He,je),typeof nt=="function"?nt(se):nt),Ge=f.createElement(C,cr({className:X(!ne&&n,m),style:d,ref:t},E),y&&f.createElement(Mh,cr({},He,{responsive:ie,responsiveDisabled:!ue,order:-1,className:`${te}-prefix`,registerSize:Ke,display:true}),y),fe.map(We),ce?ot:null,S&&f.createElement(Mh,cr({},He,{responsive:ie,responsiveDisabled:!ue,order:K,className:`${te}-suffix`,registerSize:Ae,display:true,style:Ne}),S));return ie?f.createElement(ma,{onResize:be,disabled:!ue},Ge):Ge}const As=f.forwardRef(jse);As.Item=Hse;As.RESPONSIVE=LF;As.INVALIDATE=BF;const zF=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:o,children:i,onMouseDown:a,onClick:l}=e,u=typeof r=="function"?r(o):r;return f.createElement("span",{className:t,onMouseDown:d=>{d.preventDefault(),a?.(d);},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:l,"aria-hidden":true},u!==void 0?u:f.createElement("span",{className:X(t.split(/\s+/).map(d=>`${d}-icon`))},i))};function vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},vE.apply(this,arguments)}function Use(e){return e.key??e.value}const IO=e=>{e.preventDefault(),e.stopPropagation();},Wse=f.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:o,searchValue:i,mode:a,onSelectorRemove:l,removeIcon:u}=lg(),{disabled:d,showSearch:m,triggerOpen:p,rawOpen:g,toggleOpen:b,autoClearSearchValue:y,tagRender:S,maxTagPlaceholder:C,maxTagTextLength:w,maxTagCount:$,classNames:E,styles:T}=Iu(),R=`${r}-selection-item`;let I=i;!g&&a==="multiple"&&y!==false&&(I="");const N=m&&I||"",P=m&&!d,O=u??"×",_=C??(U=>`+ ${U.length} ...`),L=S,k=U=>{b(U);},W=U=>{l?.(U);},q=(U,Y,Q,D,B)=>f.createElement("span",{title:pE(U),className:X(R,{[`${R}-disabled`]:Q},E?.item),style:T?.item},f.createElement("span",{className:X(`${R}-content`,E?.itemContent),style:T?.itemContent},Y),D&&f.createElement(zF,{className:X(`${R}-remove`,E?.itemRemove),style:T?.itemRemove,onMouseDown:IO,onClick:B,customizeIcon:O},"×")),F=(U,Y,Q,D,B,K,J)=>{const ee=te=>{IO(te),k(!p);};return f.createElement("span",{onMouseDown:ee},L({label:Y,value:U,index:J?.index,disabled:Q,closable:D,onClose:B,isMaxTag:!!K}))},z=(U,Y)=>{const{disabled:Q,label:D,value:B}=U,K=!d&&!Q;let J=D;if(typeof w=="number"&&(typeof D=="string"||typeof D=="number")){const te=String(J);te.length>w&&(J=`${te.slice(0,w)}...`);}const ee=te=>{te&&te.stopPropagation(),W(U);};return typeof L=="function"?F(B,J,Q,K,ee,void 0,Y):q(U,J,Q,K,ee)},j=U=>{if(!o.length)return null;const Y=typeof _=="function"?_(U):_;return typeof L=="function"?F(void 0,Y,false,false,void 0,true):q({title:Y},Y,false)};return f.createElement(As,{prefixCls:`${r}-content`,className:E?.content,style:T?.content,prefix:!o.length&&!N&&f.createElement(DF,null),data:o,renderItem:z,renderRest:j,suffix:f.createElement(OF,vE({ref:n,disabled:d,readOnly:!P},t,{value:N||"",syncWidth:true})),itemKey:Use,maxCount:$})}),qse=f.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:o,tabIndex:i}=lg(),a=Iu(),{showSearch:l}=a,d={...Co(a,{aria:true}),onKeyDown:o,readOnly:!l,tabIndex:i};return r?f.createElement(Wse,{ref:n,inputProps:d}):f.createElement(Lse,{ref:n,inputProps:d})});function Gse(e){return e&&![at.ESC,at.SHIFT,at.BACKSPACE,at.TAB,at.WIN_KEY,at.ALT,at.META,at.WIN_KEY_RIGHT,at.CTRL,at.SEMICOLON,at.EQUALS,at.CAPS_LOCK,at.CONTEXT_MENU,at.UP,at.LEFT,at.RIGHT,at.F1,at.F2,at.F3,at.F4,at.F5,at.F6,at.F7,at.F8,at.F9,at.F10,at.F11,at.F12].includes(e)}function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},W0.apply(this,arguments)}const Kse=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],Yse=f.forwardRef(function(t,n){const{prefixCls:r,className:o,style:i,prefix:a,suffix:l,clearIcon:u,children:d,multiple:m,displayValues:p,placeholder:g,mode:b,searchValue:y,onSearch:S,onSearchSubmit:C,onInputBlur:w,maxLength:$,autoFocus:E,onMouseDown:T,onClearMouseDown:R,onInputKeyDown:I,onSelectorRemove:N,tokenWithEnter:P,components:O,..._}=t,{triggerOpen:L,toggleOpen:k,showSearch:W,disabled:q,loading:F,classNames:z,styles:j}=Iu(),U=f.useRef(null),Y=f.useRef(null),Q=Mt(re=>{const{which:ie}=re,ue=Y.current instanceof HTMLTextAreaElement;if(!ue&&L&&(ie===at.UP||ie===at.DOWN)&&re.preventDefault(),I&&I(re),ue&&!L&&~[at.UP,at.DOWN,at.LEFT,at.RIGHT].indexOf(ie))return;!(re.ctrlKey||re.altKey||re.metaKey)&&Gse(ie)&&k(true);});f.useImperativeHandle(n,()=>({focus:re=>{(Y.current||U.current).focus?.(re);},blur:()=>{(Y.current||U.current).blur?.();},nativeElement:U.current}));const D=Mt(re=>{if(!q){const ie=df(Y.current);re.nativeEvent._ori_target=ie,ie&&re.target!==ie&&!ie.contains(re.target)&&re.preventDefault();const ue=L&&!m&&(b==="combobox"||W);re.nativeEvent._select_lazy?L&&k(false):(Y.current?.focus(),ue||k());}T?.(re);}),{root:B}=O,K=zn(_,Kse),J=Co(K,{aria:true}),ee=Object.keys(J),te={...t,onInputKeyDown:Q};return B?f.isValidElement(B)?f.cloneElement(B,{...K,ref:Ur(B.ref,U)}):f.createElement(B,W0({},K,{ref:U})):f.createElement(IF.Provider,{value:te},f.createElement("div",W0({},zn(K,ee),{ref:U,className:o,style:i,onMouseDown:D}),f.createElement(ew,{className:X(`${r}-prefix`,z?.prefix),style:j?.prefix},a),f.createElement(qse,{ref:Y}),f.createElement(ew,{className:X(`${r}-suffix`,{[`${r}-suffix-loading`]:F},z?.suffix),style:j?.suffix},l),u&&f.createElement(ew,{className:X(`${r}-clear`,z?.clear),style:j?.clear,onMouseDown:re=>{re.nativeEvent._select_lazy=true,R?.(re);}},u),d))});function Xse(e,t,n){return f.useMemo(()=>{let{root:r,input:o}=e||{};return n&&(r=n()),t&&(o=t()),{root:r,input:o}},[e,t,n])}function bE(){return bE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},bE.apply(this,arguments)}const yE=e=>e==="tags"||e==="multiple",Qse=f.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:o,styles:i,classNames:a,showSearch:l,tagRender:u,showScrollBar:d="optional",direction:m,omitDomProps:p,displayValues:g,onDisplayValuesChange:b,emptyOptions:y,notFoundContent:S="Not Found",onClear:C,maxCount:w,placeholder:$,mode:E,disabled:T,loading:R,getInputElement:I,getRawInputElement:N,open:P,defaultOpen:O,onPopupVisibleChange:_,activeValue:L,onActiveValueChange:k,activeDescendantId:W,searchValue:q,autoClearSearchValue:F,onSearch:z,onSearchSplit:j,tokenSeparators:U,allowClear:Y,prefix:Q,suffix:D,suffixIcon:B,clearIcon:K,OptionList:J,animation:ee,transitionName:te,popupStyle:re,popupClassName:ie,popupMatchSelectWidth:ue,popupRender:ne,popupAlign:ce,placement:fe,builtinPlacements:se,getPopupContainer:Me,showAction:ae=[],onFocus:pe,onBlur:be,onKeyUp:xe,onKeyDown:Te,onMouseDown:Ke,components:Ae,...de}=e,ve=yE(E),Ne=f.useRef(null),He=f.useRef(null),We=f.useRef(null),[je,nt]=f.useState(false);f.useImperativeHandle(t,()=>({focus:Ne.current?.focus,blur:Ne.current?.blur,scrollTo:Ue=>We.current?.scrollTo(Ue),nativeElement:df(Ne.current)}));const ot=Xse(Ae,I,N),Ge=f.useMemo(()=>{if(E!=="combobox")return q;const Ue=g[0]?.value;return typeof Ue=="string"||typeof Ue=="number"?String(Ue):""},[q,E,g]),Oe=E==="combobox"&&typeof I=="function"&&I()||null,qe=!S&&y,[Je,Le,Ie,ct]=Ose(O||false,P,_,Ue=>T||qe?false:Ue),Ot=f.useMemo(()=>(U||[]).some(Ue=>[`
`,`\r
`].includes(Ue)),[U]),pt=(Ue,mt,Nt)=>{if(ve&&mE(w)&&g.length>=w)return;let Wt=true,Jt=Ue;k?.(null);const tn=Nse(Ue,U,mE(w)?w-g.length:void 0),Nn=Nt?null:tn;return E!=="combobox"&&Nn&&(Jt="",j?.(Nn),Ie(false),Wt=false),z&&Ge!==Jt&&z(Jt,{source:mt?"typing":"effect"}),Ue&&mt&&Wt&&Ie(true),Wt},Lt=Ue=>{!Ue||!Ue.trim()||z(Ue,{source:"submit"});};f.useEffect(()=>{!Je&&!ve&&E!=="combobox"&&pt("",false,false);},[Je]),f.useEffect(()=>{T&&(Ie(false),nt(false));},[T,Le]);const[xt,Rt]=$se(),ut=f.useRef(false),ft=Ue=>{const mt=xt(),{key:Nt}=Ue,Wt=Nt==="Enter",Jt=Nt===" ";if(Wt||Jt){const tn=E==="combobox";(Jt&&!(tn||l)||Wt&&!tn)&&Ue.preventDefault(),Le||Ie(true);}if(Rt(!!Ge),Nt==="Backspace"&&!mt&&ve&&!Ge&&g.length){const tn=[...g];let Nn=null;for(let rr=tn.length-1;rr>=0;rr-=1){const Sn=tn[rr];if(!Sn.disabled){tn.splice(rr,1),Nn=Sn;break}}Nn&&b(tn,{type:"remove",values:[Nn]});}Le&&(!Wt||!ut.current)&&!Jt&&(Wt&&(ut.current=true),We.current?.onKeyDown(Ue)),Te?.(Ue);},vt=(Ue,...mt)=>{Le&&We.current?.onKeyUp(Ue,...mt),Ue.key==="Enter"&&(ut.current=false),xe?.(Ue,...mt);},ke=Mt(Ue=>{const mt=g.filter(Nt=>Nt!==Ue);b(mt,{type:"remove",values:[Ue]});}),Ze=()=>{ut.current=false;},Se=()=>[df(Ne.current),He.current?.getPopupElement()];Ese(Se,Le,Ie,!!ot.root);const ye=f.useRef(false),Ce=Ue=>{nt(true),T||(ae.includes("focus")&&Ie(true),pe?.(Ue));},he=()=>{Le&&!ye.current&&Ie(false,{cancelFun:()=>NF(Se(),document.activeElement)});},De=Ue=>{nt(false),Ge&&(E==="tags"?z(Ge,{source:"submit"}):E==="multiple"&&z("",{source:"blur"})),he(),T||be?.(Ue);},we=(Ue,...mt)=>{const{target:Nt}=Ue;He.current?.getPopupElement()?.contains(Nt)&&Ie&&Ie(true),Ke?.(Ue,...mt),ye.current=true,NR(()=>{ye.current=false;});},[,ze]=f.useState({});function Ye(){ze({});}let it;ot.root&&(it=Ue=>{Ie(Ue);});const dt=f.useMemo(()=>({...e,notFoundContent:S,open:Le,triggerOpen:Le,rawOpen:Je,id:n,showSearch:l,multiple:ve,toggleOpen:Ie,showScrollBar:d,styles:i,classNames:a,lockOptions:ct}),[e,S,Ie,n,l,ve,Le,Je,d,i,a,ct]),$t=f.useMemo(()=>{const Ue=D??B;return typeof Ue=="function"?Ue({searchValue:Ge,open:Le,focused:je,showSearch:l,loading:R}):Ue},[D,B,Ge,Le,je,l,R]),Tt=()=>{C?.(),Ne.current?.focus(),b([],{type:"clear",values:g}),pt("",false,false);},{allowClear:At,clearIcon:yn}=wse(r,g,Y,K,T,Ge,E),Un=f.createElement(J,{ref:We}),et=X(r,o,{[`${r}-focused`]:je,[`${r}-multiple`]:ve,[`${r}-single`]:!ve,[`${r}-allow-clear`]:At,[`${r}-show-arrow`]:$t!=null,[`${r}-disabled`]:T,[`${r}-loading`]:R,[`${r}-open`]:Le,[`${r}-customize-input`]:Oe,[`${r}-show-search`]:l});let Xe=f.createElement(Yse,bE({},de,{ref:Ne,prefixCls:r,className:et,focused:je,prefix:Q,suffix:$t,clearIcon:yn,multiple:ve,mode:E,displayValues:g,placeholder:$,searchValue:Ge,activeValue:L,onSearch:pt,onSearchSubmit:Lt,onInputBlur:Ze,onFocus:Ce,onBlur:De,onClearMouseDown:Tt,onKeyDown:ft,onKeyUp:vt,onSelectorRemove:ke,tokenWithEnter:Ot,onMouseDown:we,components:ot}));return Xe=f.createElement(Tse,{ref:He,disabled:T,prefixCls:r,visible:Le,popupElement:Un,animation:ee,transitionName:te,popupStyle:re,popupClassName:ie,direction:m,popupMatchSelectWidth:ue,popupRender:ne,popupAlign:ce,placement:fe,builtinPlacements:se,getPopupContainer:Me,empty:y,onPopupVisibleChange:it,onPopupMouseEnter:Ye,onPopupMouseDown:we,onPopupBlur:he},Xe),f.createElement(AF.Provider,{value:dt},f.createElement(Pse,{visible:je&&!Le,values:g}),Xe)}),IR=()=>null;IR.isSelectOptGroup=true;const OR=()=>null;OR.isSelectOption=true;const kF=f.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:o,onInnerResize:i,innerProps:a,rtl:l,extra:u},d)=>{let m={},p={display:"flex",flexDirection:"column"};return t!==void 0&&(m={height:e,position:"relative",overflow:"hidden"},p={...p,transform:`translateY(${t}px)`,[l?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),f.createElement("div",{style:m},f.createElement(ma,{onResize:({offsetHeight:g})=>{g&&i&&i();}},f.createElement("div",cr({style:p,className:X({[`${o}-holder-inner`]:o}),ref:d},a),r,u)))});kF.displayName="Filler";function Zse({children:e,setRef:t}){const n=f.useCallback(r=>{t(r);},[]);return f.cloneElement(e,{ref:n})}function Jse(e,t,n,r,o,i,a,{getKey:l}){return e.slice(t,n+1).map((u,d)=>{const m=t+d,p=a(u,m,{style:{width:r},offsetX:o}),g=l(u);return f.createElement(Zse,{key:g,setRef:b=>i(u,b)},p)})}function ele(e,t,n){const r=e.length,o=t.length;let i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);const l={__EMPTY_ITEM__:true};function u(p){return p!==void 0?n(p):l}let d=null,m=Math.abs(r-o)!==1;for(let p=0;p<a.length;p+=1){const g=u(i[p]),b=u(a[p]);if(g!==b){d=p,m=m||g!==u(a[p+1]);break}}return d===null?null:{index:d,multiple:m}}function tle(e,t,n){const[r,o]=f.useState(e),[i,a]=f.useState(null);return f.useEffect(()=>{const l=ele(r||[],e||[],t);l?.index!==void 0&&a(e[l.index]),o(e);},[e]),[i]}const OO=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),FF=((e,t,n,r)=>{const o=f.useRef(false),i=f.useRef(null);function a(){clearTimeout(i.current),o.current=true,i.current=setTimeout(()=>{o.current=false;},50);}const l=f.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,(u,d,m=false)=>{const p=u?d<0&&l.current.left||d>0&&l.current.right:d<0&&l.current.top||d>0&&l.current.bottom;return m&&p?(clearTimeout(i.current),o.current=false):(!p||o.current)&&a(),!o.current&&p}});function nle(e,t,n,r,o,i,a){const l=f.useRef(0),u=f.useRef(null),d=f.useRef(null),m=f.useRef(false),p=FF(t,n,r,o);function g($,E){if(Bt.cancel(u.current),p(false,E))return;const T=$;if(!T._virtualHandled)T._virtualHandled=true;else return;l.current+=E,d.current=E,OO||T.preventDefault(),u.current=Bt(()=>{const R=m.current?10:1;a(l.current*R,false),l.current=0;});}function b($,E){a(E,true),OO||$.preventDefault();}const y=f.useRef(null),S=f.useRef(null);function C($){if(!e)return;Bt.cancel(S.current),S.current=Bt(()=>{y.current=null;},2);const{deltaX:E,deltaY:T,shiftKey:R}=$;let I=E,N=T;(y.current==="sx"||!y.current&&R&&T&&!E)&&(I=T,N=0,y.current="sx");const P=Math.abs(I),O=Math.abs(N);y.current===null&&(y.current=i&&P>O?"x":"y"),y.current==="y"?g($,N):b($,I);}function w($){e&&(m.current=$.detail===d.current);}return [C,w]}function rle(e,t,n,r){const[o,i]=f.useMemo(()=>[new Map,[]],[e,n.id,r]);return (l,u=l)=>{let d=o.get(l),m=o.get(u);if(d===void 0||m===void 0){const p=e.length;for(let g=i.length;g<p;g+=1){const b=e[g],y=t(b);o.set(y,g);const S=n.get(y)??r;if(i[g]=(i[g-1]||0)+S,y===l&&(d=g),y===u&&(m=g),d!==void 0&&m!==void 0)break}}return {top:i[d-1]||0,bottom:i[m]}}}class ole{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null);}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1;}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear();}getRecord(){return this.diffRecords}}function DO(e){const t=parseFloat(e);return isNaN(t)?0:t}function ile(e,t,n){const[r,o]=f.useState(0),i=f.useRef(new Map),a=f.useRef(new ole),l=f.useRef(0);function u(){l.current+=1;}function d(p=false){u();const g=()=>{let b=false;i.current.forEach((y,S)=>{if(y&&y.offsetParent){const{offsetHeight:C}=y,{marginTop:w,marginBottom:$}=getComputedStyle(y),E=DO(w),T=DO($),R=C+E+T;a.current.get(S)!==R&&(a.current.set(S,R),b=true);}}),b&&o(y=>y+1);};if(p)g();else {l.current+=1;const b=l.current;Promise.resolve().then(()=>{b===l.current&&g();});}}function m(p,g){const b=e(p);i.current.get(b),g?(i.current.set(b,g),d()):i.current.delete(b);}return f.useEffect(()=>u,[]),[m,d,a.current,r]}const _O=14/15;function ale(e,t,n){const r=f.useRef(false),o=f.useRef(0),i=f.useRef(0),a=f.useRef(null),l=f.useRef(null);let u;const d=g=>{if(r.current){const b=Math.ceil(g.touches[0].pageX),y=Math.ceil(g.touches[0].pageY);let S=o.current-b,C=i.current-y;const w=Math.abs(S)>Math.abs(C);w?o.current=b:i.current=y;const $=n(w,w?S:C,false,g);$&&g.preventDefault(),clearInterval(l.current),$&&(l.current=setInterval(()=>{w?S*=_O:C*=_O;const E=Math.floor(w?S:C);(!n(w,E,true)||Math.abs(E)<=.1)&&clearInterval(l.current);},16));}},m=()=>{r.current=false,u();},p=g=>{u(),g.touches.length===1&&!r.current&&(r.current=true,o.current=Math.ceil(g.touches[0].pageX),i.current=Math.ceil(g.touches[0].pageY),a.current=g.target,a.current.addEventListener("touchmove",d,{passive:false}),a.current.addEventListener("touchend",m,{passive:true}));};u=()=>{a.current&&(a.current.removeEventListener("touchmove",d),a.current.removeEventListener("touchend",m));},An(()=>(e&&t.current.addEventListener("touchstart",p,{passive:true}),()=>{t.current?.removeEventListener("touchstart",p),u(),clearInterval(l.current);}),[e]);}function LO(e){return Math.floor(e**.5)}function SE(e,t){return ("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function sle(e,t,n){f.useEffect(()=>{const r=t.current;if(e&&r){let o=false,i,a;const l=()=>{Bt.cancel(i);},u=()=>{l(),i=Bt(()=>{n(a),u();});},d=()=>{o=false,l();},m=g=>{if(g.target.draggable||g.button!==0)return;const b=g;b._virtualHandled||(b._virtualHandled=true,o=true);},p=g=>{if(o){const b=SE(g,false),{top:y,bottom:S}=r.getBoundingClientRect();if(b<=y){const C=y-b;a=-LO(C),u();}else if(b>=S){const C=b-S;a=LO(C),u();}else l();}};return r.addEventListener("mousedown",m),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",p),r.ownerDocument.addEventListener("dragend",d),()=>{r.removeEventListener("mousedown",m),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",p),r.ownerDocument.removeEventListener("dragend",d),l();}}},[e]);}const lle=10;function cle(e,t,n,r,o,i,a,l){const u=f.useRef(),[d,m]=f.useState(null);return An(()=>{if(d&&d.times<lle){if(!e.current){m(E=>({...E}));return}i();const{targetAlign:p,originAlign:g,index:b,offset:y}=d,S=e.current.clientHeight;let C=false,w=p,$=null;if(S){const E=p||g;let T=0,R=0,I=0;const N=Math.min(t.length-1,b);for(let O=0;O<=N;O+=1){const _=o(t[O]);R=T;const L=n.get(_);I=R+(L===void 0?r:L),T=I;}let P=E==="top"?y:S-y;for(let O=N;O>=0;O-=1){const _=o(t[O]),L=n.get(_);if(L===void 0){C=true;break}if(P-=L,P<=0)break}switch(E){case "top":$=R-y;break;case "bottom":$=I-S+y;break;default:{const{scrollTop:O}=e.current,_=O+S;R<O?w="top":I>_&&(w="bottom");}}$!==null&&a($),$!==d.lastTop&&(C=true);}C&&m({...d,times:d.times+1,targetAlign:w,lastTop:$});}},[d,e.current]),p=>{if(p==null){l();return}if(Bt.cancel(u.current),typeof p=="number")a(p);else if(p&&typeof p=="object"){let g;const{align:b}=p;"index"in p?{index:g}=p:g=t.findIndex(S=>o(S)===p.key);const{offset:y=0}=p;m({times:0,index:g,offset:y,originAlign:b});}}}const BO=f.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:o,scrollRange:i,onStartMove:a,onStopMove:l,onScroll:u,horizontal:d,spinSize:m,containerSize:p,style:g,thumbStyle:b,showScrollBar:y}=e,[S,C]=f.useState(false),[w,$]=f.useState(null),[E,T]=f.useState(null),R=!r,I=f.useRef(),N=f.useRef(),[P,O]=f.useState(y),_=f.useRef(),L=()=>{y===true||y===false||(clearTimeout(_.current),O(true),_.current=setTimeout(()=>{O(false);},3e3));},k=i-p||0,W=p-m||0,q=f.useMemo(()=>o===0||k===0?0:o/k*W,[o,k,W]),F=K=>{K.stopPropagation(),K.preventDefault();},z=f.useRef({top:q,dragging:S,pageY:w,startTop:E});z.current={top:q,dragging:S,pageY:w,startTop:E};const j=K=>{C(true),$(SE(K,d)),T(z.current.top),a(),K.stopPropagation(),K.preventDefault();};f.useEffect(()=>{const K=te=>{te.preventDefault();},J=I.current,ee=N.current;return J.addEventListener("touchstart",K,{passive:false}),ee.addEventListener("touchstart",j,{passive:false}),()=>{J.removeEventListener("touchstart",K),ee.removeEventListener("touchstart",j);}},[]);const U=f.useRef();U.current=k;const Y=f.useRef();Y.current=W,f.useEffect(()=>{if(S){let K;const J=te=>{const{dragging:re,pageY:ie,startTop:ue}=z.current;Bt.cancel(K);const ne=I.current.getBoundingClientRect(),ce=p/(d?ne.width:ne.height);if(re){const fe=(SE(te,d)-ie)*ce;let se=ue;!R&&d?se-=fe:se+=fe;const Me=U.current,ae=Y.current,pe=ae?se/ae:0;let be=Math.ceil(pe*Me);be=Math.max(be,0),be=Math.min(be,Me),K=Bt(()=>{u(be,d);});}},ee=()=>{C(false),l();};return window.addEventListener("mousemove",J,{passive:true}),window.addEventListener("touchmove",J,{passive:true}),window.addEventListener("mouseup",ee,{passive:true}),window.addEventListener("touchend",ee,{passive:true}),()=>{window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),Bt.cancel(K);}}},[S]),f.useEffect(()=>(L(),()=>{clearTimeout(_.current);}),[o]),f.useImperativeHandle(t,()=>({delayHidden:L}));const Q=`${n}-scrollbar`,D={position:"absolute",visibility:P?null:"hidden"},B={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(D,{height:8,left:0,right:0,bottom:0}),Object.assign(B,{height:"100%",width:m,[R?"left":"right"]:q})):(Object.assign(D,{width:8,top:0,bottom:0,[R?"right":"left"]:0}),Object.assign(B,{width:"100%",height:m,top:q})),f.createElement("div",{ref:I,className:X(Q,{[`${Q}-horizontal`]:d,[`${Q}-vertical`]:!d,[`${Q}-visible`]:P}),style:{...D,...g},onMouseDown:F,onMouseMove:L},f.createElement("div",{ref:N,className:X(`${Q}-thumb`,{[`${Q}-thumb-moving`]:S}),style:{...B,...b},onMouseDown:j}))}),ule=20;function zO(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ule),Math.floor(n)}const dle=[],fle={overflowY:"auto",overflowAnchor:"none"};function mle(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:o,itemHeight:i,fullHeight:a=true,style:l,data:u,children:d,itemKey:m,virtual:p,direction:g,scrollWidth:b,component:y="div",onScroll:S,onVirtualScroll:C,onVisibleChange:w,innerProps:$,extraRender:E,styles:T,showScrollBar:R="optional",...I}=e,N=f.useCallback(Ce=>typeof m=="function"?m(Ce):Ce?.[m],[m]),[P,O,_,L]=ile(N),k=!!(p!==false&&o&&i),W=f.useMemo(()=>Object.values(_.maps).reduce((Ce,he)=>Ce+he,0),[_.id,_.maps]),q=k&&u&&(Math.max(i*u.length,W)>o||!!b),F=g==="rtl",z=X(n,{[`${n}-rtl`]:F},r),j=u||dle,U=f.useRef(),Y=f.useRef(),Q=f.useRef(),[D,B]=f.useState(0),[K,J]=f.useState(0),[ee,te]=f.useState(false),re=()=>{te(true);},ie=()=>{te(false);},ue={getKey:N};function ne(Ce){B(he=>{let De;typeof Ce=="function"?De=Ce(he):De=Ce;const we=je(De);return U.current.scrollTop=we,we});}const ce=f.useRef({start:0,end:j.length}),fe=f.useRef(),[se]=tle(j,N);fe.current=se;const{scrollHeight:Me,start:ae,end:pe,offset:be}=f.useMemo(()=>{if(!k)return {scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!q)return {scrollHeight:Y.current?.offsetHeight||0,start:0,end:j.length-1,offset:void 0};let Ce=0,he,De,we;const ze=j.length;for(let Ye=0;Ye<ze;Ye+=1){const it=j[Ye],dt=N(it),$t=_.get(dt),Tt=Ce+($t===void 0?i:$t);Tt>=D&&he===void 0&&(he=Ye,De=Ce),Tt>D+o&&we===void 0&&(we=Ye),Ce=Tt;}return he===void 0&&(he=0,De=0,we=Math.ceil(o/i)),we===void 0&&(we=j.length-1),we=Math.min(we+1,j.length-1),{scrollHeight:Ce,start:he,end:we,offset:De}},[q,k,D,j,L,o]);ce.current.start=ae,ce.current.end=pe,f.useLayoutEffect(()=>{const Ce=_.getRecord();if(Ce.size===1){const he=Array.from(Ce.keys())[0],De=Ce.get(he),we=j[ae];if(we&&De===void 0&&N(we)===he){const it=_.get(he)-i;ne(dt=>dt+it);}}_.resetRecord();},[Me]);const[xe,Te]=f.useState({width:0,height:o}),Ke=Ce=>{Te({width:Ce.offsetWidth,height:Ce.offsetHeight});},Ae=f.useRef(),de=f.useRef(),ve=f.useMemo(()=>zO(xe.width,b),[xe.width,b]),Ne=f.useMemo(()=>zO(xe.height,Me),[xe.height,Me]),He=Me-o,We=f.useRef(He);We.current=He;function je(Ce){let he=Ce;return Number.isNaN(We.current)||(he=Math.min(he,We.current)),he=Math.max(he,0),he}const nt=D<=0,ot=D>=He,Ge=K<=0,Oe=K>=b,qe=FF(nt,ot,Ge,Oe),Je=()=>({x:F?-K:K,y:D}),Le=f.useRef(Je()),Ie=Mt(Ce=>{if(C){const he={...Je(),...Ce};(Le.current.x!==he.x||Le.current.y!==he.y)&&(C(he),Le.current=he);}});function ct(Ce,he){const De=Ce;he?(Mo.flushSync(()=>{J(De);}),Ie()):ne(De);}function Ot(Ce){const{scrollTop:he}=Ce.currentTarget;he!==D&&ne(he),S?.(Ce),Ie();}const pt=Ce=>{let he=Ce;const De=b?b-xe.width:0;return he=Math.max(he,0),he=Math.min(he,De),he},Lt=Mt((Ce,he)=>{he?(Mo.flushSync(()=>{J(De=>{const we=De+(F?-Ce:Ce);return pt(we)});}),Ie()):ne(De=>De+Ce);}),[xt,Rt]=nle(k,nt,ot,Ge,Oe,!!b,Lt);ale(k,U,(Ce,he,De,we)=>{const ze=we;return qe(Ce,he,De)?false:!ze||!ze._virtualHandled?(ze&&(ze._virtualHandled=true),xt({preventDefault(){},deltaX:Ce?he:0,deltaY:Ce?0:he}),true):false}),sle(q,U,Ce=>{ne(he=>he+Ce);}),An(()=>{function Ce(De){const we=nt&&De.detail<0,ze=ot&&De.detail>0;k&&!we&&!ze&&De.preventDefault();}const he=U.current;return he.addEventListener("wheel",xt,{passive:false}),he.addEventListener("DOMMouseScroll",Rt,{passive:true}),he.addEventListener("MozMousePixelScroll",Ce,{passive:false}),()=>{he.removeEventListener("wheel",xt),he.removeEventListener("DOMMouseScroll",Rt),he.removeEventListener("MozMousePixelScroll",Ce);}},[k,nt,ot]),An(()=>{if(b){const Ce=pt(K);J(Ce),Ie({x:Ce});}},[xe.width,b]);const ut=()=>{Ae.current?.delayHidden(),de.current?.delayHidden();},ft=cle(U,j,_,i,N,()=>O(true),ne,ut);f.useImperativeHandle(t,()=>({nativeElement:Q.current,getScrollInfo:Je,scrollTo:Ce=>{function he(De){return De&&typeof De=="object"&&("left"in De||"top"in De)}he(Ce)?(Ce.left!==void 0&&J(pt(Ce.left)),ft(Ce.top)):ft(Ce);}})),An(()=>{if(w){const Ce=j.slice(ae,pe+1);w(Ce,j);}},[ae,pe,j]);const vt=rle(j,N,_,i),ke=E?.({start:ae,end:pe,virtual:q,offsetX:K,offsetY:be,rtl:F,getSize:vt}),Ze=Jse(j,ae,pe,b,K,P,d,ue);let Se=null;o&&(Se={[a?"height":"maxHeight"]:o,...fle},k&&(Se.overflowY="hidden",b&&(Se.overflowX="hidden"),ee&&(Se.pointerEvents="none")));const ye={};return F&&(ye.dir="rtl"),f.createElement("div",cr({ref:Q,style:{...l,position:"relative"},className:z},ye,I),f.createElement(ma,{onResize:Ke},f.createElement(y,{className:`${n}-holder`,style:Se,ref:U,onScroll:Ot,onMouseEnter:ut},f.createElement(kF,{prefixCls:n,height:Me,offsetX:K,offsetY:be,scrollWidth:b,onInnerResize:O,ref:Y,innerProps:$,rtl:F,extra:ke},Ze))),q&&Me>o&&f.createElement(BO,{ref:Ae,prefixCls:n,scrollOffset:D,scrollRange:Me,rtl:F,onScroll:ct,onStartMove:re,onStopMove:ie,spinSize:Ne,containerSize:xe.height,style:T?.verticalScrollBar,thumbStyle:T?.verticalScrollBarThumb,showScrollBar:R}),q&&b>xe.width&&f.createElement(BO,{ref:de,prefixCls:n,scrollOffset:K,scrollRange:b,rtl:F,onScroll:ct,onStartMove:re,onStopMove:ie,spinSize:ve,containerSize:xe.width,horizontal:true,style:T?.horizontalScrollBar,thumbStyle:T?.horizontalScrollBarThumb,showScrollBar:R}))}const HF=f.forwardRef(mle);HF.displayName="List";function hle(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Fh.apply(this,arguments)}function kO(e){return typeof e=="string"||typeof e=="number"}const ple=(e,t)=>{const{prefixCls:n,id:r,open:o,multiple:i,mode:a,searchValue:l,toggleOpen:u,notFoundContent:d,onPopupScroll:m,showScrollBar:p,lockOptions:g}=Iu(),{maxCount:b,flattenOptions:y,onActiveValue:S,defaultActiveFirstOption:C,onSelect:w,menuItemSelectedIcon:$,rawValues:E,fieldNames:T,virtual:R,direction:I,listHeight:N,listItemHeight:P,optionRender:O,classNames:_,styles:L}=f.useContext(PR),k=`${n}-item`,W=If(()=>y,[o,g],(ne,ce)=>ce[0]&&!ce[1]),q=f.useRef(null),F=f.useMemo(()=>i&&mE(b)&&E?.size>=b,[i,b,E?.size]),z=ne=>{ne.preventDefault();},j=ne=>{q.current?.scrollTo(typeof ne=="number"?{index:ne}:ne);},U=f.useCallback(ne=>a==="combobox"?false:E.has(ne),[a,[...E].toString(),E.size]),Y=(ne,ce=1)=>{const fe=W.length;for(let se=0;se<fe;se+=1){const Me=(ne+se*ce+fe)%fe,{group:ae,data:pe}=W[Me]||{};if(!ae&&!pe?.disabled&&(U(pe.value)||!F))return Me}return  -1},[Q,D]=f.useState(()=>Y(0)),B=(ne,ce=false)=>{D(ne);const fe={source:ce?"keyboard":"mouse"},se=W[ne];if(!se){S(null,-1,fe);return}S(se.value,ne,fe);};f.useEffect(()=>{B(C!==false?Y(0):-1);},[W.length,l]);const K=f.useCallback(ne=>a==="combobox"?String(ne).toLowerCase()===l.toLowerCase():E.has(ne),[a,l,[...E].toString(),E.size]);f.useEffect(()=>{let ne;if(!i&&o&&E.size===1){const ce=Array.from(E)[0],fe=W.findIndex(({data:se})=>l?String(se.value).startsWith(l):se.value===ce);fe!==-1&&(B(fe),ne=setTimeout(()=>{j(fe);}));}return o&&q.current?.scrollTo(void 0),()=>clearTimeout(ne)},[o,l]);const J=ne=>{ne!==void 0&&w(ne,{selected:!E.has(ne)}),i||u(false);};if(f.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:ce,ctrlKey:fe}=ne;switch(ce){case at.N:case at.P:case at.UP:case at.DOWN:{let se=0;if(ce===at.UP?se=-1:ce===at.DOWN?se=1:hle()&&fe&&(ce===at.N?se=1:ce===at.P&&(se=-1)),se!==0){const Me=Y(Q+se,se);j(Me),B(Me,true);}break}case at.TAB:case at.ENTER:{const se=W[Q];if(!se||se.data.disabled)return J(void 0);!F||E.has(se.value)?J(se.value):J(void 0),o&&ne.preventDefault();break}case at.ESC:u(false),o&&ne.stopPropagation();}},onKeyUp:()=>{},scrollTo:ne=>{j(ne);}})),W.length===0)return f.createElement("div",{role:"listbox",id:`${r}_list`,className:`${k}-empty`,onMouseDown:z},d);const ee=Object.keys(T).map(ne=>T[ne]),te=ne=>ne.label;function re(ne,ce){const{group:fe}=ne;return {role:fe?"presentation":"option",id:`${r}_list_${ce}`}}const ie=ne=>{const ce=W[ne];if(!ce)return null;const fe=ce.data||{},{value:se,disabled:Me}=fe,{group:ae}=ce,pe=Co(fe,true),be=te(ce);return ce?f.createElement("div",Fh({"aria-label":typeof be=="string"&&!ae?be:null},pe,{key:ne},re(ce,ne),{"aria-selected":K(se),"aria-disabled":Me}),se):null},ue={role:"listbox",id:`${r}_list`};return f.createElement(f.Fragment,null,R&&f.createElement("div",Fh({},ue,{style:{height:0,width:0,overflow:"hidden"}}),ie(Q-1),ie(Q),ie(Q+1)),f.createElement(HF,{itemKey:"key",ref:q,data:W,height:N,itemHeight:P,fullHeight:false,onMouseDown:z,onScroll:m,virtual:R,direction:I,innerProps:R?null:ue,showScrollBar:p,className:_?.popup?.list,style:L?.popup?.list},(ne,ce)=>{const{group:fe,groupOption:se,data:Me,label:ae,value:pe}=ne,{key:be}=Me;if(fe){const Je=Me.title??(kO(ae)?ae.toString():void 0);return f.createElement("div",{className:X(k,`${k}-group`,Me.className),title:Je},ae!==void 0?ae:be)}const{disabled:xe,title:Te,children:Ke,style:Ae,className:de,...ve}=Me,Ne=zn(ve,ee),He=U(pe),We=xe||!He&&F,je=`${k}-option`,nt=X(k,je,de,_?.popup?.listItem,{[`${je}-grouped`]:se,[`${je}-active`]:Q===ce&&!We,[`${je}-disabled`]:We,[`${je}-selected`]:He}),ot=te(ne),Ge=!$||typeof $=="function"||He,Oe=typeof ot=="number"?ot:ot||pe;let qe=kO(Oe)?Oe.toString():void 0;return Te!==void 0&&(qe=Te),f.createElement("div",Fh({},Co(Ne),R?{}:re(ne,ce),{"aria-selected":R?void 0:K(pe),"aria-disabled":We,className:nt,title:qe,onMouseMove:()=>{Q===ce||We||B(ce);},onClick:()=>{We||J(pe);},style:{...L?.popup?.listItem,...Ae}}),f.createElement("div",{className:`${je}-content`},typeof O=="function"?O(ne,{index:ce}):Oe),f.isValidElement($)||He,Ge&&f.createElement(zF,{className:`${k}-option-state`,customizeIcon:$,customizeIconProps:{value:pe,disabled:We,isSelected:He}},He?"✓":null))}))},gle=f.forwardRef(ple),vle=((e,t)=>{const n=f.useRef({values:new Map,options:new Map}),r=f.useMemo(()=>{const{values:i,options:a}=n.current,l=e.map(m=>m.label===void 0?{...m,label:i.get(m.value)?.label}:m),u=new Map,d=new Map;return l.forEach(m=>{u.set(m.value,m),d.set(m.value,t.get(m.value)||a.get(m.value));}),n.current.values=u,n.current.options=d,l},[e,t]),o=f.useCallback(i=>t.get(i)||n.current.options.get(i),[t]);return [r,o]});function tw(e,t){return _F(e).join("").toUpperCase().includes(t)}const ble=((e,t,n,r,o)=>f.useMemo(()=>{if(!n||r===false)return e;const{options:i,label:a,value:l}=t,u=[],d=typeof r=="function",m=n.toUpperCase(),p=d?r:(b,y)=>o&&o.length?o.some(S=>tw(y[S],m)):y[i]?tw(y[a!=="children"?a:"label"],m):tw(y[l],m),g=d?b=>hE(b):b=>b;return e.forEach(b=>{if(b[i]){if(p(n,g(b)))u.push(b);else {const S=b[i].filter(C=>p(n,g(C)));S.length&&u.push({...b,[i]:S});}return}p(n,g(b))&&u.push(b);}),u},[e,r,o,n,t]));function yle(e){const{key:t,props:{children:n,value:r,...o}}=e;return {key:t,value:r!==void 0?r:t,children:n,...o}}function VF(e,t=false){return Zo(e).map((n,r)=>{if(!f.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:o},key:i,props:{children:a,...l}}=n;return t||!o?yle(n):{key:`__RC_SELECT_GRP__${i===null?r:i}__`,label:i,...l,options:VF(a)}}).filter(n=>n)}const Sle=(e,t,n,r,o)=>f.useMemo(()=>{let i=e;!e&&(i=VF(t));const l=new Map,u=new Map,d=(p,g,b)=>{b&&typeof b=="string"&&p.set(g[b],g);},m=(p,g=false)=>{for(let b=0;b<p.length;b+=1){const y=p[b];!y[n.options]||g?(l.set(y[n.value],y),d(u,y,n.label),r.forEach(S=>{d(u,y,S);}),d(u,y,o)):m(y[n.options],true);}};return m(i),{options:i,valueOptions:l,labelOptions:u}},[e,t,n,r,o]);function FO(e){const t=f.useRef();return t.current=e,f.useCallback((...r)=>t.current(...r),[])}function Cle(e,t,n){const{filterOption:r,searchValue:o,optionFilterProp:i,filterSort:a,onSearch:l,autoClearSearchValue:u}=t;return f.useMemo(()=>{const d=typeof e=="object",m={filterOption:r,searchValue:o,optionFilterProp:i,filterSort:a,onSearch:l,autoClearSearchValue:u,...d?e:{}};return [d||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?true:e,m]},[n,e,r,o,i,a,l,u])}function CE(){return CE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},CE.apply(this,arguments)}const xle=["inputValue"];function wle(e){return !e||typeof e!="object"}const $le=f.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:o="rc-select",backfill:i,fieldNames:a,showSearch:l,searchValue:u,onSearch:d,autoClearSearchValue:m,filterOption:p,optionFilterProp:g,filterSort:b,onSelect:y,onDeselect:S,onActive:C,popupMatchSelectWidth:w=true,optionLabelProp:$,options:E,optionRender:T,children:R,defaultActiveFirstOption:I,menuItemSelectedIcon:N,virtual:P,direction:O,listHeight:_=200,listItemHeight:L=20,labelRender:k,value:W,defaultValue:q,labelInValue:F,onChange:z,maxCount:j,classNames:U,styles:Y,...Q}=e,D={searchValue:u,onSearch:d,autoClearSearchValue:m,filterOption:p,optionFilterProp:g,filterSort:b},[B,K]=Cle(l,D,r),{filterOption:J,searchValue:ee,optionFilterProp:te,filterSort:re,onSearch:ie,autoClearSearchValue:ue=true}=K,ne=f.useMemo(()=>te?Array.isArray(te)?te:[te]:[],[te]),ce=ks(n),fe=yE(r),se=!!(!E&&R),Me=f.useMemo(()=>J===void 0&&r==="combobox"?false:J,[J,r]),ae=f.useMemo(()=>PF(a,se),[JSON.stringify(a),se]),[pe,be]=un("",ee),xe=pe||"",Te=Sle(E,R,ae,ne,$),{valueOptions:Ke,labelOptions:Ae,options:de}=Te,ve=f.useCallback(we=>_F(we).map(Ye=>{let it,dt,$t,Tt;wle(Ye)?it=Ye:(dt=Ye.label,it=Ye.value);const At=Ke.get(it);return At&&(dt===void 0&&(dt=At?.[$||ae.label]),$t=At?.disabled,Tt=At?.title),{label:dt,value:it,key:it,disabled:$t,title:Tt}}),[ae,$,Ke]),[Ne,He]=un(q,W),We=f.useMemo(()=>{const ze=ve(fe&&Ne===null?[]:Ne);return r==="combobox"&&_se(ze[0]?.value)?[]:ze},[Ne,ve,r,fe]),[je,nt]=vle(We,Ke),ot=f.useMemo(()=>{if(!r&&je.length===1){const we=je[0];if(we.value===null&&(we.label===null||we.label===void 0))return []}return je.map(we=>({...we,label:(typeof k=="function"?k(we):we.label)??we.value}))},[r,je,k]),Ge=f.useMemo(()=>new Set(je.map(we=>we.value)),[je]);f.useEffect(()=>{if(r==="combobox"){const we=je[0]?.value;be(Dse(we)?String(we):"");}},[je]);const Oe=FO((we,ze)=>{const Ye=ze??we;return {[ae.value]:we,[ae.label]:Ye}}),qe=f.useMemo(()=>{if(r!=="tags")return de;const we=[...de],ze=Ye=>Ke.has(Ye);return [...je].sort((Ye,it)=>Ye.value<it.value?-1:1).forEach(Ye=>{const it=Ye.value;ze(it)||we.push(Oe(it,Ye.label));}),we},[Oe,de,Ke,je,r]),Je=ble(qe,ae,xe,Me,ne),Le=f.useMemo(()=>{const we=ze=>ne.length?ne.some(Ye=>ze?.[Ye]===xe):ze?.value===xe;return r!=="tags"||!xe||Je.some(ze=>we(ze))||Je.some(ze=>ze[ae.value]===xe)?Je:[Oe(xe),...Je]},[Oe,ne,r,Je,xe,ae]),Ie=we=>[...we].sort((Ye,it)=>re(Ye,it,{searchValue:xe})).map(Ye=>Array.isArray(Ye.options)?{...Ye,options:Ye.options.length>0?Ie(Ye.options):Ye.options}:Ye),ct=f.useMemo(()=>re?Ie(Le):Le,[Le,re,xe]),Ot=f.useMemo(()=>Ase(ct,{fieldNames:ae,childrenAsData:se}),[ct,ae,se]),pt=we=>{const ze=ve(we);if(He(ze),z&&(ze.length!==je.length||ze.some((Ye,it)=>je[it]?.value!==Ye?.value))){const Ye=F?ze.map(({label:dt,value:$t})=>({label:dt,value:$t})):ze.map(dt=>dt.value),it=ze.map(dt=>hE(nt(dt.value)));z(fe?Ye:Ye[0],fe?it:it[0]);}},[Lt,xt]=f.useState(null),[Rt,ut]=f.useState(0),ft=I!==void 0?I:r!=="combobox",vt=f.useRef(),ke=f.useCallback((we,ze,{source:Ye="keyboard"}={})=>{ut(ze),i&&r==="combobox"&&we!==null&&Ye==="keyboard"&&xt(String(we));const it=Promise.resolve().then(()=>{vt.current===it&&C?.(we);});vt.current=it;},[i,r,C]),Ze=(we,ze,Ye)=>{const it=()=>{const dt=nt(we);return [F?{label:dt?.[ae.label],value:we}:we,hE(dt)]};if(ze&&y){const[dt,$t]=it();y(dt,$t);}else if(!ze&&S&&Ye!=="clear"){const[dt,$t]=it();S(dt,$t);}},Se=FO((we,ze)=>{let Ye;const it=fe?ze.selected:true;it?Ye=fe?[...je,we]:[we]:Ye=je.filter(dt=>dt.value!==we),pt(Ye),Ze(we,it),r==="combobox"?xt(""):(!yE||ue)&&(be(""),xt(""));}),ye=(we,ze)=>{pt(we);const{type:Ye,values:it}=ze;(Ye==="remove"||Ye==="clear")&&it.forEach(dt=>{Ze(dt.value,false,Ye);});},Ce=(we,ze)=>{if(be(we),xt(null),ze.source==="submit"){const Ye=(we||"").trim();if(Ye){const it=Array.from(new Set([...Ge,Ye]));pt(it),Ze(Ye,true),be("");}return}ze.source!=="blur"&&(r==="combobox"&&pt(we),ie?.(we));},he=we=>{let ze=we;r!=="tags"&&(ze=we.map(it=>Ae.get(it)?.value).filter(it=>it!==void 0));const Ye=Array.from(new Set([...Ge,...ze]));pt(Ye),Ye.forEach(it=>{Ze(it,true);});},De=f.useMemo(()=>({...Te,flattenOptions:Ot,onActiveValue:ke,defaultActiveFirstOption:ft,onSelect:Se,menuItemSelectedIcon:N,rawValues:Ge,fieldNames:ae,virtual:P!==false&&w!==false,direction:O,listHeight:_,listItemHeight:L,childrenAsData:se,maxCount:j,optionRender:T,classNames:U,styles:Y}),[j,Te,Ot,ke,ft,Se,N,Ge,ae,P,w,O,_,L,se,T,U,Y]);return f.createElement(PR.Provider,{value:De},f.createElement(Qse,CE({},Q,{id:ce,prefixCls:o,ref:t,omitDomProps:xle,mode:r,classNames:U,styles:Y,displayValues:ot,onDisplayValuesChange:ye,maxCount:j,direction:O,showSearch:B,searchValue:xe,onSearch:Ce,autoClearSearchValue:ue,onSearchSplit:he,popupMatchSelectWidth:w,OptionList:gle,emptyOptions:!Ot.length,activeValue:Lt,activeDescendantId:`${ce}_list_${Rt}`})))}),DR=$le;DR.Option=OR;DR.OptGroup=IR;const Wl=(e,t,n)=>X({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),zf=(e,t)=>t||e,Ele=()=>{const[,e]=Wr(),[t]=_o("Empty"),r=new cn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,t?.description||"Empty"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(24 31.7)"},f.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),f.createElement("path",{fill:"#aeb8c2",d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),f.createElement("path",{fill:"#f5f5f7",d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),f.createElement("path",{fill:"#dce0e6",d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),f.createElement("path",{fill:"#dce0e6",d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),f.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},f.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),f.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},Mle=()=>{const[,e]=Wr(),[t]=_o("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:u}=f.useMemo(()=>({borderColor:new cn(n).onBackground(i).toHexString(),shadowColor:new cn(r).onBackground(i).toHexString(),contentColor:new cn(o).onBackground(i).toHexString()}),[n,r,o,i]);return f.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,t?.description||"Empty"),f.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),f.createElement("g",{fillRule:"nonzero",stroke:a},f.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),f.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:u}))))},Rle=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Tle=qt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ft(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Rle(o)}),jF=f.createElement(Ele,null),UF=f.createElement(Mle,null),Vi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:i,children:a,imageStyle:l,style:u,classNames:d,styles:m,...p}=e,{getPrefixCls:g,direction:b,className:y,style:S,classNames:C,styles:w,image:$}=jt("empty"),E=g("empty",r),[T,R]=Tle(E),[I,N]=Kt([C,d],[w,m],{props:e}),[P]=_o("Empty"),O=typeof i<"u"?i:P?.description,_=typeof O=="string"?O:"empty",L=o??$??jF;let k=null;return typeof L=="string"?k=f.createElement("img",{draggable:false,alt:_,src:L}):k=L,f.createElement("div",{className:X(T,R,E,y,{[`${E}-normal`]:L===UF,[`${E}-rtl`]:b==="rtl"},t,n,I.root),style:{...N.root,...S,...u},...p},f.createElement("div",{className:X(`${E}-image`,I.image),style:{...l,...N.image}},k),O&&f.createElement("div",{className:X(`${E}-description`,I.description),style:N.description},O),a&&f.createElement("div",{className:X(`${E}-footer`,I.footer),style:N.footer},a))};Vi.PRESENTED_IMAGE_DEFAULT=jF;Vi.PRESENTED_IMAGE_SIMPLE=UF;const WF=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(wt),r=n("empty");switch(t){case "Table":case "List":return G.createElement(Vi,{image:Vi.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return G.createElement(Vi,{image:Vi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return G.createElement(Vi,null)}},s1=(e,t,n)=>{const{variant:r,[e]:o}=f.useContext(wt),i=f.useContext(dae),a=o?.variant;let l;typeof t<"u"?l=t:n===false?l="borderless":l=i??a??r??"outlined";const u=OJ.includes(l);return [l,u]},Ale=e=>{const n={overflow:{adjustX:true,adjustY:true,shiftY:true},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:true};return {bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function Nle(e,t){return e||Ale(t)}const HO=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Ple=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,u=`${r}-option-selected`;return [{[`${n}-dropdown`]:{...dn(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,[`
          ${o}${l}bottomLeft,
          ${i}${l}bottomLeft
        `]:{animationName:mR},[`
          ${o}${l}topLeft,
          ${i}${l}topLeft,
          ${o}${l}topRight,
          ${i}${l}topRight
        `]:{animationName:pR},[`${a}${l}bottomLeft`]:{animationName:hR},[`
          ${a}${l}topLeft,
          ${a}${l}topRight
        `]:{animationName:gR},"&-hidden":{display:"none"},[r]:{...HO(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Ga},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...HO(e),color:e.colorTextDisabled}},[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},jl(e,"slide-up"),jl(e,"slide-down"),k0(e,"move-up"),k0(e,"move-down")]},Ile=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"}}}}},VO=4,Ole=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:o,paddingXXS:i,INTERNAL_FIXED_ITEM_MARGIN:a,lineWidth:l,colorIcon:u,colorIconHover:d,inputPaddingHorizontalBase:m,antCls:p}=e,[g,b]=tr(p,"select");return {"&-multiple":{[g("multi-item-background")]:e.multipleItemBg,[g("multi-item-border-color")]:"transparent",[g("multi-item-border-radius")]:e.borderRadiusSM,[g("multi-item-height")]:e.multipleItemHeight,[g("multi-padding-base")]:`calc((${b("height")} - ${b("multi-item-height")}) / 2)`,[g("multi-padding-vertical")]:`calc(${b("multi-padding-base")} - ${a} - ${l})`,[g("multi-item-padding-horizontal")]:`calc(${m} - ${b("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:b("multi-padding-vertical"),paddingInlineStart:`calc(${b("multi-padding-base")} - ${l})`,[`${t}-prefix`]:{marginInlineStart:b("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:b("line-height"),insetInlineStart:b("multi-item-padding-horizontal"),width:`calc(100% - ${b("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:b("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${VO}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
          ${t}-content-item-suffix:first-child`]:{marginInlineStart:b("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${b("multi-item-height")} - ${l} * 2)`,border:`${l} solid ${b("multi-item-border-color")}`,display:"flex",marginBlock:a,marginInlineEnd:n(a).mul(2).equal(),background:b("multi-item-background"),borderRadius:b("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:i,transition:["height","line-height","padding"].map(y=>`${y} ${e.motionDurationSlow}`).join(","),"&-content":{...Ga,marginInlineEnd:i},"&-remove":{...Au(),display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}}},[`${t}-input`]:{lineHeight:n(a).mul(2).add(b("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:VO,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[g("multi-item-height")]:e.multipleItemHeightSM,[g("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[g("multi-item-height")]:e.multipleItemHeightLG,[g("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[g("multi-item-border-color")]:e.colorSplit,[g("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[g("multi-item-border-color")]:"transparent"}}}}},nw=(e,t)=>{const{componentCls:n,antCls:r}=e,[o]=tr(r,"select"),{border:i,borderHover:a,borderActive:l,borderOutline:u}=t,d=t.background||e.selectorBg||e.colorBgContainer;return {[o("border-color")]:i,[o("background-color")]:d,[o("color")]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[o("border-color")]:a,[o("background-color")]:t.backgroundHover||d},[`&${n}-focused`]:{[o("border-color")]:l,[o("background-color")]:t.backgroundActive||d,boxShadow:`0 0 0 ${oe(e.controlOutlineWidth)} ${u}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},cb=(e,t,n,r={},o={},i)=>{const{componentCls:a}=e;return {[`&${a}-${t}`]:[nw(e,n),{[`&${a}-status-error`]:nw(e,{...n,color:r.color||e.colorError,...r}),[`&${a}-status-warning`]:nw(e,{...n,color:o.color||e.colorWarning,...o})},i]}},Dle=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,iconCls:o,antCls:i,calc:a}=e,[l,u]=tr(i,"select");return {[t]:[{[l("border-radius")]:e.borderRadius,[l("border-color")]:"#000",[l("border-size")]:e.lineWidth,[l("background-color")]:e.colorBgContainer,[l("font-size")]:e.fontSize,[l("line-height")]:e.lineHeight,[l("font-height")]:n,[l("color")]:e.colorText,[l("height")]:r,[l("padding-horizontal")]:a(e.paddingSM).sub(e.lineWidth).equal(),[l("padding-vertical")]:`calc((${u("height")} - ${u("font-height")}) / 2 - ${u("border-size")})`,...dn(e,true),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:u("border-radius"),borderWidth:u("border-size"),borderStyle:e.lineType,borderColor:u("border-color"),background:u("background-color"),fontSize:u("font-size"),lineHeight:u("line-height"),color:u("color"),paddingInline:u("padding-horizontal"),paddingBlock:u("padding-vertical"),[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Ga,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:a(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[o]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[l("height")]:e.controlHeightSM,[l("padding-horizontal")]:a(e.paddingXS).sub(e.lineWidth).equal(),[l("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:u("padding-horizontal")}},"&-lg":{[l("height")]:e.controlHeightLG,[l("font-size")]:e.fontSizeLG,[l("line-height")]:e.lineHeightLG,[l("font-height")]:e.fontHeightLG,[l("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:u("color"),"&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:`calc(${u("padding-vertical")} * -1)`,lineHeight:`calc(${u("font-height")} + ${u("padding-vertical")} * 2)`},[`${t}-content`]:{...Ga,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent"},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:"transparent"}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},Ole(e),cb(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}),cb(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}),cb(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),cb(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"}),Ile(e)]}},_le=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:u,zIndexPopupBase:d,colorText:m,fontWeightStrong:p,controlItemBgActive:g,controlItemBgHover:b,colorBgContainer:y,colorFillSecondary:S,colorBgContainerDisabled:C,colorTextDisabled:w,colorPrimaryHover:$,colorPrimary:E,controlOutline:T}=e,R=l*2,I=r*2,N=Math.min(o-R,o-I),P=Math.min(i-R,i-I),O=Math.min(a-R,a-I);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:d+50,optionSelectedColor:m,optionSelectedFontWeight:p,optionSelectedBg:g,optionActiveBg:b,optionPadding:`${(o-t*n)/2}px ${u}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:y,clearBg:y,singleItemHeightLG:a,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:N,multipleItemHeightSM:P,multipleItemHeightLG:O,multipleSelectorBgDisabled:C,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:E,activeOutlineColor:T,selectAffixPadding:l}},Lle=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return {[n]:{...dn(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Ga,[`> ${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","opacity"].map(a=>`${a} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Ble=e=>{const{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Lle(e),Ple(e),{[`${t}-rtl`]:{direction:"rtl"}},Lf(e,{focusElCls:`${t}-focused`})]},zle=qt("Select",(e,{rootPrefixCls:t})=>{const n=Ft(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [Ble(n),Dle(n)]},_le,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});var kle={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 xE(){return xE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},xE.apply(this,arguments)}const Fle=(e,t)=>f.createElement(Xn,xE({},e,{ref:t,icon:kle})),Hle=f.forwardRef(Fle);var Vle={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 wE(){return wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},wE.apply(this,arguments)}const jle=(e,t)=>f.createElement(Xn,wE({},e,{ref:t,icon:Vle})),_R=f.forwardRef(jle);var Ule={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 $E(){return $E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},$E.apply(this,arguments)}const Wle=(e,t)=>f.createElement(Xn,$E({},e,{ref:t,icon:Ule})),LR=f.forwardRef(Wle);function qle({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,loadingIcon:i,multiple:a,hasFeedback:l,showSuffixIcon:u,feedbackIcon:d,showArrow:m,componentName:p}){const g=t??f.createElement(Qp,null),b=w=>e===null&&!l&&!m?null:f.createElement(f.Fragment,null,u!==false&&w,l&&d);let y=null;e!==void 0?y=b(e):o?y=b(i??f.createElement(t1,{spin:true})):y=({open:w,showSearch:$})=>b(w&&$?f.createElement(LR,null):f.createElement(_R,null));let S=null;n!==void 0?S=n:a?S=f.createElement(Hle,null):S=null;let C=null;return r!==void 0?C=r:C=f.createElement(zs,null),{clearIcon:g,suffixIcon:y,itemIcon:S,removeIcon:C}}function Gle(e){return G.useMemo(()=>{if(e)return (...t)=>G.createElement(Ul,{space:true},e.apply(void 0,t))},[e])}function Kle(e,t){return t!==void 0?t:e!==null}const qF="SECRET_COMBOBOX_MODE_DO_NOT_USE",Yle=(e,t)=>{const{prefixCls:n,bordered:r,className:o,rootClassName:i,getPopupContainer:a,popupClassName:l,dropdownClassName:u,listHeight:d=256,placement:m,listItemHeight:p,size:g,disabled:b,notFoundContent:y,status:S,builtinPlacements:C,dropdownMatchSelectWidth:w,popupMatchSelectWidth:$,direction:E,style:T,allowClear:R,variant:I,popupStyle:N,dropdownStyle:P,transitionName:O,tagRender:_,maxCount:L,prefix:k,dropdownRender:W,popupRender:q,onDropdownVisibleChange:F,onOpenChange:z,styles:j,classNames:U,...Y}=e,{getPopupContainer:Q,getPrefixCls:D,renderEmpty:B,direction:K,virtual:J,popupMatchSelectWidth:ee,popupOverflow:te}=f.useContext(wt),{showSearch:re,style:ie,styles:ue,className:ne,classNames:ce}=jt("select"),[,fe]=Wr(),se=p??fe?.controlHeight,Me=D("select",n),ae=D(),pe=E??K,{compactSize:be,compactItemClassnames:xe}=Fs(Me,pe),[Te,Ke]=s1("select",I,r),Ae=Qn(Me),[de,ve]=zle(Me,Ae),Ne=f.useMemo(()=>{const{mode:ze}=e;if(ze!=="combobox")return ze===qF?"combobox":ze},[e.mode]),He=Ne==="multiple"||Ne==="tags",We=Kle(e.suffixIcon,e.showArrow),je=$??w??ee,nt=Gle(q||W),ot=z||F,{status:Ge,hasFeedback:Oe,isFormItemInput:qe,feedbackIcon:Je}=f.useContext(xo),Le=zf(Ge,S);let Ie;y!==void 0?Ie=y:Ne==="combobox"?Ie=null:Ie=B?.("Select")||f.createElement(WF,{componentName:"Select"});const{suffixIcon:ct,itemIcon:Ot,removeIcon:pt,clearIcon:Lt}=qle({...Y,multiple:He,hasFeedback:Oe,feedbackIcon:Je,showSuffixIcon:We,componentName:"Select"}),xt=R===true?{clearIcon:Lt}:R,Rt=zn(Y,["suffixIcon","itemIcon"]),ut=lo(ze=>g??be??ze),ft=f.useContext(ro),vt=b??ft,ke={...e,variant:Te,status:Le,disabled:vt,size:ut},[Ze,Se]=Kt([ce,U],[ue,j],{props:ke},{popup:{_default:"root"}}),ye=X(Ze.popup?.root,l,u,{[`${Me}-dropdown-${pe}`]:pe==="rtl"},i,ve,Ae,de),Ce={...Se.popup?.root,...N??P},he=X({[`${Me}-lg`]:ut==="large",[`${Me}-sm`]:ut==="small",[`${Me}-rtl`]:pe==="rtl",[`${Me}-${Te}`]:Ke,[`${Me}-in-form-item`]:qe},Wl(Me,Le,Oe),xe,ne,o,Ze.root,i,ve,Ae,de),De=f.useMemo(()=>m!==void 0?m:pe==="rtl"?"bottomRight":"bottomLeft",[m,pe]),[we]=Pu("SelectLike",Se.popup?.root?.zIndex??Ce?.zIndex);return f.createElement(DR,{ref:t,virtual:J,classNames:Ze,styles:Se,showSearch:re,...Rt,style:{...Se.root,...ie,...T},popupMatchSelectWidth:je,transitionName:Vl(ae,"slide-up",O),builtinPlacements:Nle(C,te),listHeight:d,listItemHeight:se,mode:Ne,prefixCls:Me,placement:De,direction:pe,prefix:k,suffixIcon:ct,menuItemSelectedIcon:Ot,removeIcon:pt,allowClear:xt,notFoundContent:Ie,className:he,getPopupContainer:a||Q,popupClassName:ye,disabled:vt,popupStyle:{...Se.popup?.root,...Ce,zIndex:we},maxCount:He?L:void 0,tagRender:He?_:void 0,popupRender:nt,onPopupVisibleChange:ot})},nc=f.forwardRef(Yle),Xle=AR(nc,"popupAlign");nc.SECRET_COMBOBOX_MODE_DO_NOT_USE=qF;nc.Option=OR;nc.OptGroup=IR;nc._InternalPanelDoNotUseOrYouWillBeFired=Xle;const EE=["xxxl","xxl","xl","lg","md","sm","xs"],Qle=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Zle=e=>{const t=e,n=[].concat(EE).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const u=`screen${i}Max`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`);const m=`screen${n[o+1].toUpperCase()}Min`;if(!(t[u]<=t[m]))throw new Error(`${u}<=${m} fails : !(${t[u]}<=${t[m]})`)}}),e},Jle=()=>{const[,e]=Wr(),t=Qle(Zle(e));return G.useMemo(()=>{const n=new Map;let r=-1,o={};return {responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister();},register(){Object.entries(t).forEach(([i,a])=>{const l=({matches:d})=>{this.dispatch({...o,[i]:d});},u=window.matchMedia(a);typeof u?.addEventListener=="function"&&u.addEventListener("change",l),this.matchHandlers[a]={mql:u,listener:l},l(u);});},unregister(){Object.values(t).forEach(i=>{const a=this.matchHandlers[i];typeof a?.mql?.removeEventListener=="function"&&a.mql.removeEventListener("change",a?.listener);}),n.clear();}}},[t])};function GF(e=true,t={}){const n=f.useRef(t),[,r]=rk(),o=Jle();return An(()=>{const i=o.subscribe(a=>{n.current=a,e&&r();});return ()=>o.unsubscribe(i)},[]),n.current}const ME=f.createContext({}),ece=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:u,textFontSize:d,textFontSizeLG:m,textFontSizeSM:p,iconFontSize:g,iconFontSizeLG:b,iconFontSizeSM:y,borderRadius:S,borderRadiusLG:C,borderRadiusSM:w,lineWidth:$,lineType:E}=e,T=(R,I,N,P)=>({width:R,height:R,borderRadius:"50%",fontSize:I,[`&${n}-square`]:{borderRadius:P},[`&${n}-icon`]:{fontSize:N,[`> ${r}`]:{margin:0}}});return {[n]:{...dn(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${oe($)} ${E} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...T(a,d,g,S),"&-lg":{...T(l,m,b,C)},"&-sm":{...T(u,p,y,w)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},tce=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},nce=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:u,marginXXS:d,colorBorderBg:m}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((i+a)/2),iconFontSizeLG:l,iconFontSizeSM:o,groupSpace:d,groupOverlapping:-u,groupBorderColor:m}},KF=qt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Ft(e,{avatarBg:n,avatarColor:t});return [ece(r),tce(r)]},nce),YF=f.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:i,srcSet:a,icon:l,className:u,rootClassName:d,style:m,alt:p,draggable:g,children:b,crossOrigin:y,gap:S=4,onError:C,...w}=e,[$,E]=f.useState(1),[T,R]=f.useState(false),[I,N]=f.useState(true),P=f.useRef(null),O=f.useRef(null),_=Ur(t,P),{getPrefixCls:L,className:k,style:W}=jt("avatar"),q=f.useContext(ME),F=()=>{if(!O.current||!P.current)return;const ce=O.current.offsetWidth,fe=P.current.offsetWidth;ce!==0&&fe!==0&&S*2<fe&&E(fe-S*2<ce?(fe-S*2)/ce:1);};f.useEffect(()=>{R(true);},[]),f.useEffect(()=>{N(true),E(1);},[i]),f.useEffect(F,[S]);const z=()=>{C?.()!==false&&N(false);},j=lo(ce=>o??q?.size??ce??"medium"),U=Object.keys(typeof j=="object"?j||{}:{}).some(ce=>EE.includes(ce)),Y=GF(U),Q=f.useMemo(()=>{if(typeof j!="object")return {};const ce=EE.find(se=>Y[se]),fe=j[ce];return fe?{width:fe,height:fe,fontSize:fe&&(l||b)?fe/2:18}:{}},[Y,j,l,b]),D=L("avatar",n),B=Qn(D),[K,J]=KF(D,B),ee=X({[`${D}-lg`]:j==="large",[`${D}-sm`]:j==="small"}),te=f.isValidElement(i),re=r||q?.shape||"circle",ie=X(D,ee,k,`${D}-${re}`,{[`${D}-image`]:te||i&&I,[`${D}-icon`]:!!l},J,B,u,d,K),ue=typeof j=="number"?{width:j,height:j,fontSize:l?j/2:18}:{};let ne;if(typeof i=="string"&&I)ne=f.createElement("img",{src:i,draggable:g,srcSet:a,onError:z,alt:p,crossOrigin:y});else if(te)ne=i;else if(l)ne=l;else if(T||$!==1){const ce=`scale(${$})`,fe={msTransform:ce,WebkitTransform:ce,transform:ce};ne=f.createElement(ma,{onResize:F},f.createElement("span",{className:`${D}-string`,ref:O,style:fe},b));}else ne=f.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:O},b);return f.createElement("span",{...w,style:{...ue,...Q,...W,...m},className:ie,ref:_},ne)}),vf=e=>e?typeof e=="function"?e():e:null,BR=e=>{const{children:t,prefixCls:n,id:r,classNames:o,styles:i,className:a,style:l}=e;return f.createElement("div",{id:r,className:X(`${n}-container`,o?.container,a),style:{...i?.container,...l},role:"tooltip"},typeof t=="function"?t():t)},Nd={shiftX:64,adjustY:1},Pd={adjustX:1,shiftY:true},Bi=[0,0],rce={left:{points:["cr","cl"],overflow:Pd,offset:[-4,0],targetOffset:Bi},right:{points:["cl","cr"],overflow:Pd,offset:[4,0],targetOffset:Bi},top:{points:["bc","tc"],overflow:Nd,offset:[0,-4],targetOffset:Bi},bottom:{points:["tc","bc"],overflow:Nd,offset:[0,4],targetOffset:Bi},topLeft:{points:["bl","tl"],overflow:Nd,offset:[0,-4],targetOffset:Bi},leftTop:{points:["tr","tl"],overflow:Pd,offset:[-4,0],targetOffset:Bi},topRight:{points:["br","tr"],overflow:Nd,offset:[0,-4],targetOffset:Bi},rightTop:{points:["tl","tr"],overflow:Pd,offset:[4,0],targetOffset:Bi},bottomRight:{points:["tr","br"],overflow:Nd,offset:[0,4],targetOffset:Bi},rightBottom:{points:["bl","br"],overflow:Pd,offset:[4,0],targetOffset:Bi},bottomLeft:{points:["tl","bl"],overflow:Nd,offset:[0,4],targetOffset:Bi},leftBottom:{points:["br","bl"],overflow:Pd,offset:[-4,0],targetOffset:Bi}};function RE(){return RE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},RE.apply(this,arguments)}const oce=f.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:o=.1,prefixCls:i="rc-tooltip",children:a,onVisibleChange:l,afterVisibleChange:u,motion:d,placement:m="right",align:p={},destroyOnHidden:g=false,defaultVisible:b,getTooltipContainer:y,arrowContent:S,overlay:C,id:w,showArrow:$=true,classNames:E,styles:T,...R}=e,I=ks(w),N=f.useRef(null);f.useImperativeHandle(t,()=>N.current);const P={...R};"visible"in e&&(P.popupVisible=e.visible);const O=f.useMemo(()=>{if(!$)return  false;const L=$===true?{}:$;return {...L,className:X(L.className,E?.arrow),style:{...L.style,...T?.arrow},content:L.content??S}},[$,E?.arrow,T?.arrow,S]),_=({open:L})=>{const k=f.Children.only(a),W={"aria-describedby":C&&L?I:void 0};return f.cloneElement(k,W)};return f.createElement(e1,RE({popupClassName:E?.root,prefixCls:i,popup:f.createElement(BR,{key:"content",prefixCls:i,id:I,classNames:E,styles:T},C),action:n,builtinPlacements:rce,popupPlacement:m,ref:N,popupAlign:p,getPopupContainer:y,onOpenChange:l,afterOpenChange:u,popupMotion:d,defaultPopupVisible:b,autoDestroy:g,mouseLeaveDelay:o,popupStyle:T?.root,mouseEnterDelay:r,arrow:O,uniqueContainerClassName:E?.uniqueContainer,uniqueContainerStyle:T?.uniqueContainer},P),_)});function zR(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),u=o-r*(1-1/Math.sqrt(2)),d=o-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*o-d,g=m,b=2*o-l,y=u,S=2*o-i,C=a,w=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),E=`polygon(${$}px 100%, 50% ${$}px, ${2*o-$}px 100%, ${$}px 100%)`,T=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${u} L ${d} ${m} A ${n} ${n} 0 0 1 ${p} ${g} L ${b} ${y} A ${r} ${r} 0 0 0 ${S} ${C} Z')`;return {arrowShadowWidth:w,arrowPath:T,arrowPolygon:E}}const ice=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:u}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:u(r).div(2).equal(),background:t,clipPath:{_multi_value_:true,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${oe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},XF=8;function l1(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:n?XF:r}}function ub(e,t){return e?t:{}}const kR=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a,antCls:l}=e,[u]=tr(l,"tooltip"),{arrowDistance:d=0,arrowPlacement:m={left:true,right:true,top:true,bottom:true}}=n||{};return {[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...ice(e,t,o),"&:before":{background:t}}],...ub(!!m.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[u("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-topRight":{[u("arrow-offset-x")]:`calc(100% - ${oe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...ub(!!m.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[u("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-bottomRight":{[u("arrow-offset-x")]:`calc(100% - ${oe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...ub(!!m.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:true,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}}),...ub(!!m.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}};function ace(e,t,n,r){if(r===false)return {adjustX:false,adjustY:false};const o=r&&typeof r=="object"?r:{},i={};switch(e){case "top":case "bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=true,i.adjustY=true;break;case "left":case "right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=true,i.adjustX=true;break}const a={...i,...o};return a.shiftX||(a.adjustX=true),a.shiftY||(a.adjustY=true),a}const jO={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"]}},sce={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"]}},lce=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function QF(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,u={},d=l1({contentRadius:i,limitVerticalRadius:true});return Object.keys(jO).forEach(m=>{const g={...r&&sce[m]||jO[m],offset:[0,0],dynamicInset:true};switch(u[m]=g,lce.has(m)&&(g.autoArrow=false),m){case "top":case "topLeft":case "topRight":g.offset[1]=-l-o;break;case "bottom":case "bottomLeft":case "bottomRight":g.offset[1]=l+o;break;case "left":case "leftTop":case "leftBottom":g.offset[0]=-l-o;break;case "right":case "rightTop":case "rightBottom":g.offset[0]=l+o;break}if(r)switch(m){case "topLeft":case "bottomLeft":g.offset[0]=-d.arrowOffsetHorizontal-l;break;case "topRight":case "bottomRight":g.offset[0]=d.arrowOffsetHorizontal+l;break;case "leftTop":case "rightTop":g.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case "leftBottom":case "rightBottom":g.offset[1]=d.arrowOffsetHorizontal*2-l;break}g.overflow=ace(m,d,t,n),a&&(g.htmlRegion="visibleFirst");}),u}const c1=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return G.useMemo(()=>{const r=n(e),o=n(t);return {...o,...r,show:r.show??o.show??true}},[e,t])},UO="50%",cce=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:u,boxShadowSecondary:d,paddingSM:m,paddingXS:p,arrowOffsetHorizontal:g,sizePopupArrow:b,antCls:y}=e,[S,C]=tr(y,"tooltip"),w=t(a).add(b).add(g).equal(),E={minWidth:t(a).mul(2).add(b).equal(),minHeight:u,padding:`${oe(e.calc(m).div(2).equal())} ${oe(p)}`,color:C("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:d,boxSizing:"border-box"},T={[S("valid-offset-x")]:C("arrow-offset-x","var(--arrow-x)"),transformOrigin:[C("valid-offset-x",UO),`var(--arrow-y, ${UO})`].join(" ")};return [{[n]:{...dn(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...T,"&-hidden":{display:"none"},[S("arrow-background-color")]:i,[`${n}-container`]:[E,fR(e,true)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:w},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,XF)}},[`${n}-content`]:{position:"relative"},...Xy(e,(R,{darkColor:I})=>({[`&${n}-${R}`]:{[`${n}-container`]:{backgroundColor:I},[`${n}-arrow`]:{[S("arrow-background-color")]:I}}})),"&-rtl":{direction:"rtl"}}},kR(e,C("arrow-background-color")),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...E,...T,position:"absolute",zIndex:t(l).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},uce=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...l1({contentRadius:e.borderRadius,limitVerticalRadius:true}),...zR(Ft(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),ZF=(e,t,n=true)=>qt("Tooltip",o=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:l,maxWidth:u}=o,d=Ft(o,{tooltipMaxWidth:u,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:l});return [cce(d),tg(o,"zoom-big-fast")]},uce,{resetStyle:false,injectStyle:n})(e,t),dce=qa.map(e=>`${e}-inverse`),fce=["success","processing","error","default","warning"];function u1(e,t=true){return t?[].concat(Zt(dce),Zt(qa)).includes(e):qa.includes(e)}function mce(e){return fce.includes(e)}const JF=(e,t,n)=>{const r=u1(n),[o]=tr(e,"tooltip"),i=X({[`${t}-${n}`]:n&&r}),a={},l={},u=oo(n).toRgb(),m=(.299*u.r+.587*u.g+.114*u.b)/255<.5?"#FFF":"#000";return n&&!r&&(a.background=n,a[o("overlay-color")]=m,l[o("arrow-background-color")]=n),{className:i,overlayStyle:a,arrowStyle:l}},hce=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a,classNames:l,styles:u}=e,{getPrefixCls:d}=f.useContext(wt),m=d("tooltip",t),p=d(),g=Qn(m),[b,y]=ZF(m,g),S=JF(p,m,i),C=S.arrowStyle,w=f.useMemo(()=>({container:{...a,...S.overlayStyle}}),[a,S.overlayStyle]),$={...e,placement:r},[E,T]=Kt([l],[w,u],{props:$}),R=X(g,b,y,m,`${m}-pure`,`${m}-placement-${r}`,n,S.className);return f.createElement("div",{className:R,style:C},f.createElement("div",{className:`${m}-arrow`}),f.createElement(BR,{...e,className:b,prefixCls:m,classNames:E,styles:T},o))},pce=f.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:o,color:i,children:a,afterOpenChange:l,arrow:u,destroyTooltipOnHide:d,destroyOnHidden:m,title:p,overlay:g,trigger:b,builtinPlacements:y,autoAdjustOverflow:S=true,motion:C,getPopupContainer:w,placement:$="top",mouseEnterDelay:E=.1,mouseLeaveDelay:T=.1,rootClassName:R,styles:I,classNames:N,onOpenChange:P,overlayInnerStyle:O,overlayStyle:_,overlayClassName:L,...k}=e,[,W]=Wr(),{getPopupContainer:q,getPrefixCls:F,direction:z,className:j,style:U,classNames:Y,styles:Q,arrow:D,trigger:B}=jt("tooltip"),K=c1(u,D),J=K.show,ee=b||B||"hover",te=f.useRef(null),re=()=>{te.current?.forceAlign();};f.useImperativeHandle(t,()=>({forceAlign:re,nativeElement:te.current?.nativeElement,popupElement:te.current?.popupElement}));const[ie,ue]=un(e.defaultOpen??false,e.open),ne=!p&&!g&&p!==0,ce=ct=>{ue(ne?false:ct),!ne&&P&&P(ct);},fe=f.useMemo(()=>y||QF({arrowPointAtCenter:K?.pointAtCenter??false,autoAdjustOverflow:S,arrowWidth:J?W.sizePopupArrow:0,borderRadius:W.borderRadius,offset:W.marginXXS,visibleFirst:true}),[K,y,W,J,S]),se=f.useMemo(()=>p===0?p:g||p||"",[g,p]),Me=f.createElement(Ul,{space:true,form:true},typeof se=="function"?se():se),ae={...e,trigger:ee,color:i,placement:$,builtinPlacements:y,openClassName:r,arrow:u,autoAdjustOverflow:S,getPopupContainer:w,children:a,destroyTooltipOnHide:d,destroyOnHidden:m},[pe,be]=Kt([Y,N],[Q,I],{props:ae}),xe=F("tooltip",n),Te=F(),Ke=e["data-popover-inject"];let Ae=ie;!("open"in e)&&ne&&(Ae=false);const de=f.isValidElement(a)&&!vk(a)?a:f.createElement("span",null,a),ve=de.props,Ne=!ve.className||typeof ve.className=="string"?X(ve.className,r||`${xe}-open`):ve.className,He=Qn(xe),[We,je]=ZF(xe,He,!Ke),nt=JF(Te,xe,i),ot=nt.arrowStyle,Ge=X(He,We,je),Oe=X(L,{[`${xe}-rtl`]:z==="rtl"},nt.className,R,Ge,j,pe.root),[qe,Je]=Pu("Tooltip",k.zIndex),Le={...be.container,...O,...nt.overlayStyle},Ie=f.createElement(oce,{unique:true,...k,trigger:ee,zIndex:qe,showArrow:J,placement:$,mouseEnterDelay:E,mouseLeaveDelay:T,prefixCls:xe,classNames:{root:Oe,container:pe.container,arrow:pe.arrow,uniqueContainer:X(Ge,pe.container)},styles:{root:{...ot,...be.root,...U,..._},container:Le,uniqueContainer:Le,arrow:be.arrow},getTooltipContainer:w||o||q,ref:te,builtinPlacements:fe,overlay:Me,visible:Ae,onVisibleChange:ce,afterVisibleChange:l,arrowContent:f.createElement("span",{className:`${xe}-arrow-content`}),motion:{motionName:Vl(Te,"zoom-big-fast",typeof C?.motionName=="string"?C?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:m??!!d},Ae?jr(de,{className:Ne}):de);return f.createElement(Zy.Provider,{value:Je},Ie)}),rc=pce;rc._InternalPanelDoNotUseOrYouWillBeFired=hce;rc.UniqueProvider=yk;const WO="50%",gce=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:u,zIndexPopup:d,titleMarginBottom:m,colorBgElevated:p,popoverBg:g,titleBorderBottom:b,innerContentPadding:y,titlePadding:S,antCls:C}=e,[w,$]=tr(C,"tooltip");return [{[t]:{...dn(e),position:"absolute",top:0,left:{_skip_check_:true,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[w("valid-offset-x")]:$("arrow-offset-x","var(--arrow-x)"),transformOrigin:[$("valid-offset-x",WO),`var(--arrow-y, ${WO})`].join(" "),[w("arrow-background-color")]:p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:u,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:m,color:l,fontWeight:o,borderBottom:b,padding:S},[`${t}-content`]:{color:n,padding:y}}},kR(e,$("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},vce=e=>{const{componentCls:t,antCls:n}=e,[r]=tr(n,"tooltip");return {[t]:qa.map(o=>{const i=e[`${o}6`];return {[`&${t}-${o}`]:{[r("arrow-background-color")]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},bce=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:u,lineType:d,colorSplit:m,paddingSM:p}=e,g=n-r,b=g/2,y=g/2-t,S=o;return {titleMinWidth:177,zIndexPopup:a+30,...zR(e),...l1({contentRadius:l,limitVerticalRadius:true}),innerPadding:i?0:12,titleMarginBottom:i?0:u,titlePadding:i?`${b}px ${S}px ${y}px`:0,titleBorderBottom:i?`${t}px ${d} ${m}`:"none",innerContentPadding:i?`${p}px ${S}px`:0}},e7=qt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ft(e,{popoverBg:t,popoverColor:n});return [gce(r),vce(r),tg(r,"zoom-big")]},bce,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),t7=e=>{const{title:t,content:n,prefixCls:r,classNames:o,styles:i}=e;return !t&&!n?null:f.createElement(f.Fragment,null,t&&f.createElement("div",{className:X(`${r}-title`,o?.title),style:i?.title},t),n&&f.createElement("div",{className:X(`${r}-content`,o?.content),style:i?.content},n))},yce=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:u,classNames:d,styles:m}=e,p=vf(a),g=vf(l),b={...e,placement:i},[y,S]=Kt([d],[m],{props:b}),C=X(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return f.createElement("div",{className:C,style:o},f.createElement("div",{className:`${n}-arrow`}),f.createElement(BR,{...e,className:t,prefixCls:n,classNames:y,styles:S},u||f.createElement(t7,{prefixCls:n,title:p,content:g,classNames:y,styles:S})))},n7=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=f.useContext(wt),i=o("popover",t),[a,l]=e7(i);return f.createElement(yce,{...r,prefixCls:i,hashId:a,className:X(n,l)})},Sce=f.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l,children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:m=.1,onOpenChange:p,overlayStyle:g={},styles:b,classNames:y,motion:S,arrow:C,...w}=e,{getPrefixCls:$,className:E,style:T,classNames:R,styles:I,arrow:N,trigger:P}=jt("popover"),O=$("popover",n),[_,L]=e7(O),k=$(),W=c1(C,N),q=l||P||"hover",F={...e,placement:a,trigger:q,mouseEnterDelay:d,mouseLeaveDelay:m,overlayStyle:g,styles:b,classNames:y},[z,j]=Kt([R,y],[I,b],{props:F}),U=X(i,_,L,E,z.root),[Y,Q]=un(e.defaultOpen??false,e.open),D=J=>{Q(J),p?.(J);},B=vf(r),K=vf(o);return f.createElement(rc,{unique:false,arrow:W,placement:a,trigger:q,mouseEnterDelay:d,mouseLeaveDelay:m,...w,prefixCls:O,classNames:{root:U,container:z.container,arrow:z.arrow},styles:{root:{...j.root,...T,...g},container:j.container,arrow:j.arrow},ref:t,open:Y,onOpenChange:D,overlay:B||K?f.createElement(t7,{prefixCls:O,title:B,content:K,classNames:z,styles:j}):null,motion:{motionName:Vl(k,"zoom-big",typeof S?.motionName=="string"?S?.motionName:void 0)},"data-popover-inject":true},u)}),Jo=Sce;Jo._InternalPanelDoNotUseOrYouWillBeFired=n7;const qO=e=>{const{size:t,shape:n}=f.useContext(ME),r=f.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f.createElement(ME.Provider,{value:r},e.children)},Cce=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{prefixCls:r,className:o,rootClassName:i,style:a,maxCount:l,maxStyle:u,size:d,shape:m,maxPopoverPlacement:p,maxPopoverTrigger:g,children:b,max:y}=e,S=t("avatar",r),C=`${S}-group`,w=Qn(S),[$,E]=KF(S,w),T=X(C,{[`${C}-rtl`]:n==="rtl"},E,w,o,i,$),R=Zo(b).map((P,O)=>jr(P,{key:`avatar-key-${O}`})),I=y?.count||l,N=R.length;if(I&&I<N){const P=R.slice(0,I),O=R.slice(I,N),_=y?.style||u,L=y?.popover?.trigger||g||"hover",k=y?.popover?.placement||p||"top",W={content:O,...y?.popover,placement:k,trigger:L,rootClassName:X(`${C}-popover`,y?.popover?.rootClassName)};return P.push(f.createElement(Jo,{key:"avatar-popover-key",destroyOnHidden:true,...W},f.createElement(YF,{style:_},`+${N-I}`))),f.createElement(qO,{shape:m,size:d},f.createElement("div",{className:T,style:a},P))}return f.createElement(qO,{shape:m,size:d},f.createElement("div",{className:T,style:a},R))},nu=YF;nu.Group=Cce;var xce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function TE(){return TE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},TE.apply(this,arguments)}const wce=(e,t)=>f.createElement(Xn,TE({},e,{ref:t,icon:xce})),$ce=f.forwardRef(wce),GO=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),f.createElement("span",{style:i,className:X(`${t}-only-unit`,{current:r})},n)};function Ece(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Mce=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,l]=f.useState(o),[u,d]=f.useState(i),m=()=>{l(o),d(i);};f.useEffect(()=>{const b=setTimeout(m,1e3);return ()=>clearTimeout(b)},[o]);let p,g;if(a===o||Number.isNaN(o)||Number.isNaN(a))p=[f.createElement(GO,{...e,key:o,current:true})],g={transition:"none"};else {p=[];const b=o+10,y=[];for(let $=o;$<=b;$+=1)y.push($);const S=u<i?1:-1,C=y.findIndex($=>$%10===a);p=(S<0?y.slice(0,C+1):y.slice(C)).map(($,E)=>{const T=$%10;return f.createElement(GO,{...e,key:$,value:T,offset:S<0?E-C:E,current:E===C})}),g={transform:`translateY(${-Ece(a,o,S)}00%)`};}return f.createElement("span",{className:`${t}-only`,style:g,onTransitionEnd:m},p)},Rce=f.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:l,show:u,component:d="sup",children:m,...p}=e,{getPrefixCls:g}=f.useContext(wt),b=g("scroll-number",n),y={...p,"data-show":u,style:a,className:X(b,o,i),title:l};let S=r;if(r&&Number(r)%1===0){const C=String(r).split("");S=f.createElement("bdi",null,C.map((w,$)=>f.createElement(Mce,{prefixCls:b,count:Number(r),value:w,key:C.length-$})));}return a?.borderColor&&(y.style={...a,boxShadow:`0 0 0 1px ${a.borderColor} inset`}),m?jr(m,C=>({className:X(`${b}-custom-component`,C?.className,i)})):f.createElement(d,{...y,ref:t},S)}),Tce=new zt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Ace=new zt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Nce=new zt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Pce=new zt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Ice=new zt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Oce=new zt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Dce=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:u,textFontWeight:d,indicatorHeight:m,indicatorHeightSM:p,marginXS:g,calc:b}=e,y=`${r}-scroll-number`,S=Xy(e,(C,{darkColor:w})=>({[`&${t} ${t}-color-${C}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return {[t]:{...dn(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:m,height:m,color:e.badgeTextColor,fontWeight:d,fontSize:i,lineHeight:oe(m),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(m).div(2).equal(),boxShadow:`0 0 0 ${oe(o)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:p,height:p,fontSize:a,lineHeight:oe(p),borderRadius:b(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${oe(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:u,minWidth:u,height:u,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${oe(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${y}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Oce,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Tce,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:g,color:e.colorText,fontSize:e.fontSize}},...S,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Ace,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Nce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Pce,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Ice,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${y}-custom-component, ${t}-count`]:{transform:"none"},[`${y}-custom-component, ${y}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[y]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${y}-only`]:{position:"relative",display:"inline-block",height:m,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${y}-only-unit`]:{height:m,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${y}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${y}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},r7=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,l=e.colorTextLightSolid,u=e.colorError,d=e.colorErrorHover;return Ft(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:u,badgeColorHover:d,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},o7=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},_ce=qt("Badge",e=>{const t=r7(e);return Dce(t)},o7),Lce=f.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:o,status:i,text:a,color:l,count:u=null,overflowCount:d=99,dot:m=false,size:p="default",title:g,offset:b,style:y,className:S,rootClassName:C,classNames:w,styles:$,showZero:E=false,...T}=e,{getPrefixCls:R,direction:I,className:N,style:P,classNames:O,styles:_}=jt("badge"),L=R("badge",n),[k,W]=_ce(L),q={...e,overflowCount:d,size:p,dot:m,showZero:E},[F,z]=Kt([O,w],[_,$],{props:q}),j=u>d?`${d}+`:u,U=j==="0"||j===0||a==="0"||a===0,Y=u===null||U&&!E,Q=(Pr(i)||Pr(l))&&Y,D=Pr(i)||!U,B=m&&!U,K=B?"":j,J=f.useMemo(()=>((!Pr(K)||K==="")&&(!Pr(a)||a==="")||U&&!E)&&!B,[K,U,E,B,a]),ee=f.useRef(u);J||(ee.current=u);const te=ee.current,re=f.useRef(K);J||(re.current=K);const ie=re.current,ue=f.useRef(B);J||(ue.current=B);const ne=f.useMemo(()=>{if(!b)return {...P,...y};const Te=Number.parseInt(b[0],10);return {...{marginTop:b[1],insetInlineEnd:-Te},...P,...y}},[b,y,P]),ce=g??(typeof te=="string"||typeof te=="number"?te:void 0),fe=!J&&(a===0?E:!!a&&a!==true),se=fe?f.createElement("span",{className:`${L}-status-text`},a):null,Me=!te||typeof te!="object"?void 0:jr(te,Te=>({style:{...ne,...Te.style}})),ae=u1(l,false),pe=X(F.indicator,{[`${L}-status-dot`]:Q,[`${L}-status-${i}`]:!!i,[`${L}-color-${l}`]:ae}),be={};l&&!ae&&(be.color=l,be.background=l);const xe=X(L,{[`${L}-status`]:Q,[`${L}-not-a-wrapper`]:!o,[`${L}-rtl`]:I==="rtl"},S,C,N,F.root,k,W);if(!o&&Q&&(a||D||!Y)){const Te=ne.color;return f.createElement("span",{ref:t,...T,className:xe,style:{...z.root,...ne}},f.createElement("span",{className:pe,style:{...z.indicator,...be}}),fe&&f.createElement("span",{style:{color:Te},className:`${L}-status-text`},a))}return f.createElement("span",{ref:t,...T,className:xe,style:z.root},o,f.createElement(wo,{visible:!J,motionName:`${L}-zoom`,motionAppear:false,motionDeadline:1e3},({className:Te})=>{const Ke=R("scroll-number",r),Ae=ue.current,de=X(F.indicator,{[`${L}-dot`]:Ae,[`${L}-count`]:!Ae,[`${L}-count-sm`]:p==="small",[`${L}-multiple-words`]:!Ae&&ie&&ie.toString().length>1,[`${L}-status-${i}`]:!!i,[`${L}-color-${l}`]:ae});let ve={...z.indicator,...ne};return l&&!ae&&(ve=ve||{},ve.background=l),f.createElement(Rce,{prefixCls:Ke,show:!J,motionClassName:Te,className:de,count:ie,title:ce,style:ve,key:"scrollNumber"},Me)}),se)}),Bce=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,u=Xy(e,(d,{darkColor:m})=>({[`&${a}-color-${d}`]:{background:m,color:m}}));return {[l]:{position:"relative"},[a]:{...dn(e),position:"absolute",top:r,padding:`0 ${oe(e.paddingXS)}`,color:e.colorPrimary,lineHeight:oe(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-content`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${oe(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...u,[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},zce=qt(["Badge","Ribbon"],e=>{const t=r7(e);return Bce(t)},o7),kce=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:l="end",rootClassName:u,styles:d,classNames:m}=e,{getPrefixCls:p,direction:g,className:b,style:y,classNames:S,styles:C}=jt("ribbon"),w=p("ribbon",n),$=`${w}-wrapper`,[E,T]=zce(w,$),R={...e,placement:l},[I,N]=Kt([S,m],[C,d],{props:R}),P=u1(o,false),O=X(w,`${w}-placement-${l}`,{[`${w}-rtl`]:g==="rtl",[`${w}-color-${o}`]:P},t,b,I.indicator),_={},L={};return o&&!P&&(_.background=o,L.color=o),f.createElement("div",{className:X($,u,E,T,I.root),style:N.root},i,f.createElement("div",{className:X(O,E),style:{..._,...N.indicator,...y,...r}},f.createElement("span",{className:X(`${w}-content`,I.content),style:N.content},a),f.createElement("div",{className:`${w}-corner`,style:L})))},d1=Lce;d1.Ribbon=kce;var Fce={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 AE(){return AE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},AE.apply(this,arguments)}const Hce=(e,t)=>f.createElement(Xn,AE({},e,{ref:t,icon:Fce})),vp=f.forwardRef(Hce),{ESC:Vce,TAB:jce}=at;function Uce({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:o}){const i=f.useRef(false),a=()=>{e&&(t.current?.focus?.(),n?.(false));},l=()=>o.current?.focus?(o.current.focus(),i.current=true,true):false,u=d=>{switch(d.keyCode){case Vce:a();break;case jce:{let m=false;i.current||(m=l()),m?d.preventDefault():a();break}}};f.useEffect(()=>e?(window.addEventListener("keydown",u),r&&Bt(l,3),()=>{window.removeEventListener("keydown",u),i.current=false;}):()=>{i.current=false;},[e]);}const Wce=f.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:o}=e,i=f.useMemo(()=>{let l;return typeof n=="function"?l=n():l=n,l},[n]),a=Ur(t,tc(i));return G.createElement(G.Fragment,null,r&&G.createElement("div",{className:`${o}-arrow`}),G.cloneElement(i,{ref:Tu(i)?a:void 0}))}),Id={adjustX:1,adjustY:1},Od=[0,0],qce={topLeft:{points:["bl","tl"],overflow:Id,offset:[0,-4],targetOffset:Od},top:{points:["bc","tc"],overflow:Id,offset:[0,-4],targetOffset:Od},topRight:{points:["br","tr"],overflow:Id,offset:[0,-4],targetOffset:Od},bottomLeft:{points:["tl","bl"],overflow:Id,offset:[0,4],targetOffset:Od},bottom:{points:["tc","bc"],overflow:Id,offset:[0,4],targetOffset:Od},bottomRight:{points:["tr","br"],overflow:Id,offset:[0,4],targetOffset:Od}};function NE(){return NE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},NE.apply(this,arguments)}const i7=G.forwardRef((e,t)=>{const{arrow:n=false,prefixCls:r="rc-dropdown",transitionName:o,animation:i,align:a,placement:l="bottomLeft",placements:u=qce,getPopupContainer:d,showAction:m,hideAction:p,overlayClassName:g,overlayStyle:b,visible:y,trigger:S=["hover"],autoFocus:C,overlay:w,children:$,onVisibleChange:E,...T}=e,[R,I]=G.useState(),N="visible"in e?y:R,P=i?`${r}-${i}`:o,O=G.useRef(null),_=G.useRef(null),L=G.useRef(null);G.useImperativeHandle(t,()=>O.current);const k=Q=>{I(Q),E?.(Q);};Uce({visible:N,triggerRef:L,onVisibleChange:k,autoFocus:C,overlayRef:_});const W=Q=>{const{onOverlayClick:D}=e;I(false),D&&D(Q);},q=()=>G.createElement(Wce,{ref:_,overlay:w,prefixCls:r,arrow:n}),F=()=>typeof w=="function"?q:q(),z=()=>{const{minOverlayWidthMatchTrigger:Q,alignPoint:D}=e;return "minOverlayWidthMatchTrigger"in e?Q:!D},j=()=>{const{openClassName:Q}=e;return Q!==void 0?Q:`${r}-open`},U=G.cloneElement($,{className:X($.props?.className,N&&j()),ref:Tu($)?Ur(L,tc($)):void 0});let Y=p;return !Y&&S.indexOf("contextMenu")!==-1&&(Y=["click"]),G.createElement(e1,NE({builtinPlacements:u},T,{prefixCls:r,ref:O,popupClassName:X(g,{[`${r}-show-arrow`]:n}),popupStyle:b,action:S,showAction:m,hideAction:Y,popupPlacement:l,popupAlign:a,popupMotion:{motionName:P},popupVisible:N,stretch:z()?"minWidth":"",popup:F(),onOpenChange:k,onPopupClick:W,getPopupContainer:d}),U)}),Gce=e=>typeof e!="object"&&typeof e!="function"||e===null,a7=f.createContext(null);function s7(e,t){return `${e}-${t}`}function l7(e){const t=f.useContext(a7);return s7(t,e)}const Ca=f.createContext(null);function Kce(e,t){const n={...e};return Object.keys(t).forEach(r=>{const o=t[r];o!==void 0&&(n[r]=o);}),n}function bp({children:e,locked:t,...n}){const r=f.useContext(Ca),o=If(()=>Kce(r,n),[r,n],(i,a)=>!t&&(i[0]!==a[0]||!Fl(i[1],a[1],true)));return f.createElement(Ca.Provider,{value:o},e)}const Yce=[],c7=f.createContext(null);function f1(){return f.useContext(c7)}const u7=f.createContext(Yce);function kf(e){const t=f.useContext(u7);return f.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const d7=f.createContext(null),FR=f.createContext({}),{LEFT:PE,RIGHT:IE,UP:OE,DOWN:Gb,ENTER:Kb,ESC:f7,HOME:nh,END:rh}=at,KO=[OE,Gb,PE,IE];function Xce(e,t,n,r){const o="prev",i="next",a="children",l="parent";if(e==="inline"&&r===Kb)return {inlineTrigger:true};const u={[OE]:o,[Gb]:i},d={[PE]:n?i:o,[IE]:n?o:i,[Gb]:a,[Kb]:a},m={[OE]:o,[Gb]:i,[Kb]:a,[f7]:l,[PE]:n?a:l,[IE]:n?l:a};switch({inline:u,horizontal:d,vertical:m,inlineSub:u,horizontalSub:m,verticalSub:m}[`${e}${t?"":"Sub"}`]?.[r]){case o:return {offset:-1,sibling:true};case i:return {offset:1,sibling:true};case l:return {offset:-1,sibling:false};case a:return {offset:1,sibling:false};default:return null}}function Qce(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Zce(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement;}return null}function HR(e,t){return wR(e,true).filter(r=>t.has(r))}function YO(e,t,n,r=1){if(!e)return null;const o=HR(e,t),i=o.length;let a=o.findIndex(l=>n===l);return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}const q0=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(i=>{const a=document.querySelector(`[data-menu-id='${s7(t,i)}']`);a&&(n.add(a),o.set(a,i),r.set(i,a));}),{elements:n,key2element:r,element2key:o}};function Jce(e,t,n,r,o,i,a,l,u,d){const m=f.useRef(),p=f.useRef();p.current=t;const g=()=>{Bt.cancel(m.current);};return f.useEffect(()=>()=>{g();},[]),b=>{const{which:y}=b;if([...KO,Kb,f7,nh,rh].includes(y)){const S=i();let C=q0(S,r);const{elements:w,key2element:$,element2key:E}=C,T=$.get(t),R=Zce(T,w),I=E.get(R),N=Xce(e,a(I,true).length===1,n,y);if(!N&&y!==nh&&y!==rh)return;(KO.includes(y)||[nh,rh].includes(y))&&b.preventDefault();const P=O=>{if(O){let _=O;const L=O.querySelector("a");L?.getAttribute("href")&&(_=L);const k=E.get(O);l(k),g(),m.current=Bt(()=>{p.current===k&&_.focus();});}};if([nh,rh].includes(y)||N.sibling||!R){let O;!R||e==="inline"?O=o.current:O=Qce(R);let _;const L=HR(O,w);y===nh?_=L[0]:y===rh?_=L[L.length-1]:_=YO(O,w,R,N.offset),P(_);}else if(N.inlineTrigger)u(I);else if(N.offset>0)u(I,true),g(),m.current=Bt(()=>{C=q0(S,r);const O=R.getAttribute("aria-controls"),_=document.getElementById(O),L=YO(_,C.elements);P(L);},5);else if(N.offset<0){const O=a(I,true),_=O[O.length-2],L=$.get(_);u(_,false),P(L);}}d?.(b);}}function eue(e){Promise.resolve().then(e);}const VR="__RC_UTIL_PATH_SPLIT__",XO=e=>e.join(VR),tue=e=>e.split(VR),DE="rc-menu-more";function nue(){const[,e]=f.useState({}),t=f.useRef(new Map),n=f.useRef(new Map),[r,o]=f.useState([]),i=f.useRef(0),a=f.useRef(false),l=()=>{a.current||e({});},u=f.useCallback((S,C)=>{const w=XO(C);n.current.set(w,S),t.current.set(S,w),i.current+=1;const $=i.current;eue(()=>{$===i.current&&l();});},[]),d=f.useCallback((S,C)=>{const w=XO(C);n.current.delete(w),t.current.delete(S);},[]),m=f.useCallback(S=>{o(S);},[]),p=f.useCallback((S,C)=>{const w=t.current.get(S)||"",$=tue(w);return C&&r.includes($[0])&&$.unshift(DE),$},[r]),g=f.useCallback((S,C)=>S.filter(w=>w!==void 0).some(w=>p(w,true).includes(C)),[p]),b=()=>{const S=[...t.current.keys()];return r.length&&S.push(DE),S},y=f.useCallback(S=>{const C=`${t.current.get(S)}${VR}`,w=new Set;return [...n.current.keys()].forEach($=>{$.startsWith(C)&&w.add(n.current.get($));}),w},[]);return f.useEffect(()=>()=>{a.current=true;},[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:m,isSubPathKey:g,getKeyPath:p,getKeys:b,getSubPathKeys:y}}function Rh(e){const t=f.useRef(e);t.current=e;const n=f.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function m7(e,t,n,r){const{activeKey:o,onActive:i,onInactive:a}=f.useContext(Ca),l={active:o===e};return t||(l.onMouseEnter=u=>{n?.({key:e,domEvent:u}),i(e);},l.onMouseLeave=u=>{r?.({key:e,domEvent:u}),a(e);}),l}function h7(e){const{mode:t,rtl:n,inlineIndent:r}=f.useContext(Ca);if(t!=="inline")return null;const o=e;return n?{paddingRight:o*r}:{paddingLeft:o*r}}function p7({icon:e,props:t,children:n}){let r;return e===null||e===false?null:(typeof e=="function"?r=f.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function G0({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Er(false,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},yp.apply(this,arguments)}class rue extends f.Component{render(){const{title:t,attribute:n,elementRef:r,...o}=this.props,i=zn(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Er(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(As.Item,yp({},n,{title:typeof t=="string"?t:void 0},i,{ref:r}))}}const oue=f.forwardRef((e,t)=>{const{style:n,className:r,eventKey:o,warnKey:i,disabled:a,itemIcon:l,children:u,role:d,onMouseEnter:m,onMouseLeave:p,onClick:g,onKeyDown:b,onFocus:y,...S}=e,C=l7(o),{prefixCls:w,onItemClick:$,disabled:E,overflowDisabled:T,itemIcon:R,selectedKeys:I,onActive:N}=f.useContext(Ca),{_internalRenderMenuItem:P}=f.useContext(FR),O=`${w}-item`,_=f.useRef(),L=f.useRef(),k=E||a,W=Bs(t,L),q=kf(o),F=te=>({key:o,keyPath:[...q].reverse(),item:_.current,domEvent:te}),z=l||R,{active:j,...U}=m7(o,k,m,p),Y=I.includes(o),Q=h7(q.length),D=te=>{if(k)return;const re=F(te);g?.(G0(re)),$(re);},B=te=>{if(b?.(te),te.which===at.ENTER){const re=F(te);g?.(G0(re)),$(re);}},K=te=>{N(o),y?.(te);},J={};e.role==="option"&&(J["aria-selected"]=Y);let ee=f.createElement(rue,yp({ref:_,elementRef:W,role:d===null?"none":d||"menuitem",tabIndex:a?null:-1,"data-menu-id":T&&C?null:C},zn(S,["extra"]),U,J,{component:"li","aria-disabled":a,style:{...Q,...n},className:X(O,{[`${O}-active`]:j,[`${O}-selected`]:Y,[`${O}-disabled`]:k},r),onClick:D,onKeyDown:B,onFocus:K}),u,f.createElement(p7,{props:{...e,isSelected:Y},icon:z}));return P&&(ee=P(ee,e,{selected:Y})),ee});function iue(e,t){const{eventKey:n}=e,r=f1(),o=kf(n);return f.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o);}},[o]),r?null:f.createElement(oue,yp({},e,{ref:t}))}const cg=f.forwardRef(iue);function _E(){return _E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},_E.apply(this,arguments)}const aue=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:i,rtl:a}=f.useContext(Ca);return f.createElement("ul",_E({className:X(o,a&&`${o}-rtl`,`${o}-sub`,`${o}-${i==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":true,ref:r}),t)},g7=f.forwardRef(aue);function jR(e,t){return Zo(e).map((n,r)=>{if(f.isValidElement(n)){const{key:o}=n;let i=n.props?.eventKey??o;i==null&&(i=`tmp_key-${[...t,r].join("-")}`);const l={key:i,eventKey:i};return f.cloneElement(n,l)}return n})}const vo={adjustX:1,adjustY:1},sue={topLeft:{points:["bl","tl"],overflow:vo},topRight:{points:["br","tr"],overflow:vo},bottomLeft:{points:["tl","bl"],overflow:vo},bottomRight:{points:["tr","br"],overflow:vo},leftTop:{points:["tr","tl"],overflow:vo},leftBottom:{points:["br","bl"],overflow:vo},rightTop:{points:["tl","tr"],overflow:vo},rightBottom:{points:["bl","br"],overflow:vo}},lue={topLeft:{points:["bl","tl"],overflow:vo},topRight:{points:["br","tr"],overflow:vo},bottomLeft:{points:["tl","bl"],overflow:vo},bottomRight:{points:["tr","br"],overflow:vo},rightTop:{points:["tr","tl"],overflow:vo},rightBottom:{points:["br","bl"],overflow:vo},leftTop:{points:["tl","tr"],overflow:vo},leftBottom:{points:["bl","br"],overflow:vo}};function v7(e,t,n){if(t)return t;if(n)return n[e]||n.other}const cue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function uue({prefixCls:e,visible:t,children:n,popup:r,popupStyle:o,popupClassName:i,popupOffset:a,disabled:l,mode:u,onVisibleChange:d}){const{getPopupContainer:m,rtl:p,subMenuOpenDelay:g,subMenuCloseDelay:b,builtinPlacements:y,triggerSubMenuAction:S,forceSubMenuRender:C,rootClassName:w,motion:$,defaultMotions:E}=f.useContext(Ca),[T,R]=f.useState(false),I=p?{...lue,...y}:{...sue,...y},N=cue[u],P=v7(u,$,E),O=f.useRef(P);u!=="inline"&&(O.current=P);const _={...O.current,leavedClassName:`${e}-hidden`,removeOnLeave:false,motionAppear:true},L=f.useRef();return f.useEffect(()=>(L.current=Bt(()=>{R(t);}),()=>{Bt.cancel(L.current);}),[t]),f.createElement(e1,{prefixCls:e,popupClassName:X(`${e}-popup`,{[`${e}-rtl`]:p},i,w),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:N,popupVisible:T,popup:r,popupStyle:o,popupAlign:a&&{offset:a},action:l?[]:[S],mouseEnterDelay:g,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:C,popupMotion:_,fresh:true},n)}function LE(){return LE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},LE.apply(this,arguments)}function due({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:i,forceSubMenuRender:a,motion:l,defaultMotions:u,mode:d}=f.useContext(Ca),m=f.useRef(false);m.current=d===o;const[p,g]=f.useState(!m.current),b=m.current?t:false;f.useEffect(()=>{m.current&&g(false);},[d]);const y={...v7(o,l,u)};n.length>1&&(y.motionAppear=false);const S=y.onVisibleChanged;return y.onVisibleChanged=C=>(!m.current&&!C&&g(true),S?.(C)),p?null:f.createElement(bp,{mode:o,locked:!m.current},f.createElement(wo,LE({visible:b},y,{forceRender:a,removeOnLeave:false,leavedClassName:`${i}-hidden`}),({className:C,style:w})=>f.createElement(g7,{id:e,className:C,style:w},r)))}function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Sp.apply(this,arguments)}const fue=f.forwardRef((e,t)=>{const{style:n,className:r,styles:o,classNames:i,title:a,eventKey:l,warnKey:u,disabled:d,internalPopupClose:m,children:p,itemIcon:g,expandIcon:b,popupClassName:y,popupOffset:S,popupStyle:C,onClick:w,onMouseEnter:$,onMouseLeave:E,onTitleClick:T,onTitleMouseEnter:R,onTitleMouseLeave:I,popupRender:N,...P}=e,O=l7(l),{prefixCls:_,mode:L,openKeys:k,disabled:W,overflowDisabled:q,activeKey:F,selectedKeys:z,itemIcon:j,expandIcon:U,onItemClick:Y,onOpenChange:Q,onActive:D,popupRender:B}=f.useContext(Ca),{_internalRenderSubMenuItem:K}=f.useContext(FR),{isSubPathKey:J}=f.useContext(d7),ee=kf(),te=`${_}-submenu`,re=W||d,ie=f.useRef(),ue=f.useRef(),ne=g??j,ce=b??U,fe=k.includes(l),se=!q&&fe,Me=J(z,l),{active:ae,...pe}=m7(l,re,R,I),[be,xe]=f.useState(false),Te=Ie=>{re||xe(Ie);},Ke=Ie=>{Te(true),$?.({key:l,domEvent:Ie});},Ae=Ie=>{Te(false),E?.({key:l,domEvent:Ie});},de=f.useMemo(()=>ae||(L!=="inline"?be||J([F],l):false),[L,ae,F,be,l,J]),ve=h7(ee.length),Ne=Ie=>{re||(T?.({key:l,domEvent:Ie}),L==="inline"&&Q(l,!fe));},He=Rh(Ie=>{w?.(G0(Ie)),Y(Ie);}),We=Ie=>{L!=="inline"&&Q(l,Ie);},je=()=>{D(l);},nt=O&&`${O}-popup`,ot=f.useMemo(()=>f.createElement(p7,{icon:L!=="horizontal"?ce:void 0,props:{...e,isOpen:se,isSubMenu:true}},f.createElement("i",{className:`${te}-arrow`})),[L,ce,e,se,te]);let Ge=f.createElement("div",Sp({role:"menuitem",style:ve,className:`${te}-title`,tabIndex:re?null:-1,ref:ie,title:typeof a=="string"?a:null,"data-menu-id":q&&O?null:O,"aria-expanded":se,"aria-haspopup":true,"aria-controls":nt,"aria-disabled":re,onClick:Ne,onFocus:je},pe),a,ot);const Oe=f.useRef(L);L!=="inline"&&ee.length>1?Oe.current="vertical":Oe.current=L;const qe=Oe.current,Je=f.useMemo(()=>{const Ie=f.createElement(bp,{classNames:i,styles:o,mode:qe==="horizontal"?"vertical":qe},f.createElement(g7,{id:nt,ref:ue},p)),ct=N||B;return ct?ct(Ie,{item:e,keys:ee}):Ie},[N,B,ee,nt,p,e,qe]);if(!q){const Ie=Oe.current;Ge=f.createElement(uue,{mode:Ie,prefixCls:te,visible:!m&&se&&L!=="inline",popupClassName:y,popupOffset:S,popupStyle:C,popup:Je,disabled:re,onVisibleChange:We},Ge);}let Le=f.createElement(As.Item,Sp({ref:t,role:"none"},P,{component:"li",style:n,className:X(te,`${te}-${L}`,r,{[`${te}-open`]:se,[`${te}-active`]:de,[`${te}-selected`]:Me,[`${te}-disabled`]:re}),onMouseEnter:Ke,onMouseLeave:Ae}),Ge,!q&&f.createElement(due,{id:nt,open:se,keyPath:ee},p));return K&&(Le=K(Le,e,{selected:Me,active:de,open:se,disabled:re})),f.createElement(bp,{classNames:i,styles:o,onItemClick:He,mode:L==="horizontal"?"vertical":L,itemIcon:ne,expandIcon:ce},Le)}),m1=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=kf(n),i=jR(r,o),a=f1();f.useEffect(()=>{if(a)return a.registerPath(n,o),()=>{a.unregisterPath(n,o);}},[o]);let l;return a?l=i:l=f.createElement(fue,Sp({ref:t},e),i),f.createElement(u7.Provider,{value:o},l)});function UR({className:e,style:t}){const{prefixCls:n}=f.useContext(Ca);return f1()?null:f.createElement("li",{role:"separator",className:X(`${n}-item-divider`,e),style:t})}function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},K0.apply(this,arguments)}const mue=f.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:i,...a}=e,{prefixCls:l,classNames:u,styles:d}=f.useContext(Ca),m=`${l}-item-group`;return f.createElement("li",K0({ref:t,role:"presentation"},a,{onClick:p=>p.stopPropagation(),className:X(m,n)}),f.createElement("div",{role:"presentation",className:X(`${m}-title`,u?.listTitle),style:d?.listTitle,title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:X(`${m}-list`,u?.list),style:d?.list},i))}),WR=f.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=kf(n),i=jR(r,o);return f1()?i:f.createElement(mue,K0({ref:t},zn(e,["warnKey"])),i)});function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Fd.apply(this,arguments)}function BE(e,t,n){const{item:r,group:o,submenu:i,divider:a}=t;return (e||[]).map((l,u)=>{if(l&&typeof l=="object"){const{label:d,children:m,key:p,type:g,extra:b,...y}=l,S=p??`tmp-${u}`;return m||g==="group"?g==="group"?f.createElement(o,Fd({key:S},y,{title:d}),BE(m,t,n)):f.createElement(i,Fd({key:S},y,{title:d}),BE(m,t,n)):g==="divider"?f.createElement(a,Fd({key:S},y)):f.createElement(r,Fd({key:S},y,{extra:b}),d,(!!b||b===0)&&f.createElement("span",{className:`${n}-item-extra`},b))}return null}).filter(l=>l)}function QO(e,t,n,r,o){let i=e;const a={divider:UR,item:cg,group:WR,submenu:m1,...r};return t&&(i=BE(t,a,o)),jR(i,n)}function zE(){return zE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},zE.apply(this,arguments)}const Nc=[],hue=f.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:o,className:i,styles:a,classNames:l,tabIndex:u=0,items:d,children:m,direction:p,id:g,mode:b="vertical",inlineCollapsed:y,disabled:S,disabledOverflow:C,subMenuOpenDelay:w=.1,subMenuCloseDelay:$=.1,forceSubMenuRender:E,defaultOpenKeys:T,openKeys:R,activeKey:I,defaultActiveFirst:N,selectable:P=true,multiple:O=false,defaultSelectedKeys:_,selectedKeys:L,onSelect:k,onDeselect:W,inlineIndent:q=24,motion:F,defaultMotions:z,triggerSubMenuAction:j="hover",builtinPlacements:U,itemIcon:Y,expandIcon:Q,overflowedIndicator:D="...",overflowedIndicatorPopupClassName:B,getPopupContainer:K,onClick:J,onOpenChange:ee,onKeyDown:te,openAnimation:re,openTransitionName:ie,_internalRenderMenuItem:ue,_internalRenderSubMenuItem:ne,_internalComponents:ce,popupRender:fe,...se}=e,[Me,ae]=f.useMemo(()=>[QO(m,d,Nc,ce,n),QO(m,d,Nc,{},n)],[m,d,ce]),[pe,be]=f.useState(false),xe=f.useRef(),Te=ks(g?`rc-menu-uuid-${g}`:"rc-menu-uuid"),Ke=p==="rtl",[Ae,de]=un(T,R),ve=Ae||Nc,Ne=(et,Xe=false)=>{function Ue(){de(et),ee?.(et);}Xe?Mo.flushSync(Ue):Ue();},[He,We]=f.useState(ve),je=f.useRef(false),[nt,ot]=f.useMemo(()=>(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,false],[b,y]),Ge=nt==="inline",[Oe,qe]=f.useState(nt),[Je,Le]=f.useState(ot);f.useEffect(()=>{qe(nt),Le(ot),je.current&&(Ge?de(He):Ne(Nc));},[nt,ot]);const[Ie,ct]=f.useState(0),Ot=Ie>=Me.length-1||Oe!=="horizontal"||C;f.useEffect(()=>{Ge&&We(ve);},[ve]),f.useEffect(()=>(je.current=true,()=>{je.current=false;}),[]);const{registerPath:pt,unregisterPath:Lt,refreshOverflowKeys:xt,isSubPathKey:Rt,getKeyPath:ut,getKeys:ft,getSubPathKeys:vt}=nue(),ke=f.useMemo(()=>({registerPath:pt,unregisterPath:Lt}),[pt,Lt]),Ze=f.useMemo(()=>({isSubPathKey:Rt}),[Rt]);f.useEffect(()=>{xt(Ot?Nc:Me.slice(Ie+1).map(et=>et.key));},[Ie,Ot]);const[Se,ye]=un(I||N&&Me[0]?.key,I),Ce=Rh(et=>{ye(et);}),he=Rh(()=>{ye(void 0);});f.useImperativeHandle(t,()=>({list:xe.current,focus:et=>{const Xe=ft(),{elements:Ue,key2element:mt,element2key:Nt}=q0(Xe,Te),Wt=HR(xe.current,Ue);let Jt;Se&&Xe.includes(Se)?Jt=Se:Jt=Wt[0]?Nt.get(Wt[0]):Me.find(Nn=>!Nn.props.disabled)?.key;const tn=mt.get(Jt);Jt&&tn&&tn?.focus?.(et);},findItem:({key:et})=>{const Xe=ft(),{key2element:Ue}=q0(Xe,Te);return Ue.get(et)||null}}));const[De,we]=un(_||[],L),ze=f.useMemo(()=>Array.isArray(De)?De:De==null?Nc:[De],[De]),Ye=et=>{if(P){const{key:Xe}=et,Ue=ze.includes(Xe);let mt;O?Ue?mt=ze.filter(Wt=>Wt!==Xe):mt=[...ze,Xe]:mt=[Xe],we(mt);const Nt={...et,selectedKeys:mt};Ue?W?.(Nt):k?.(Nt);}!O&&ve.length&&Oe!=="inline"&&Ne(Nc);},it=Rh(et=>{J?.(G0(et)),Ye(et);}),dt=Rh((et,Xe)=>{let Ue=ve.filter(mt=>mt!==et);if(Xe)Ue.push(et);else if(Oe!=="inline"){const mt=vt(et);Ue=Ue.filter(Nt=>!mt.has(Nt));}Fl(ve,Ue,true)||Ne(Ue,true);}),Tt=Jce(Oe,Se,Ke,Te,xe,ft,ut,ye,(et,Xe)=>{const Ue=Xe??!ve.includes(et);dt(et,Ue);},te);f.useEffect(()=>{be(true);},[]);const At=f.useMemo(()=>({_internalRenderMenuItem:ue,_internalRenderSubMenuItem:ne}),[ue,ne]),yn=Oe!=="horizontal"||C?Me:Me.map((et,Xe)=>f.createElement(bp,{key:et.key,overflowDisabled:Xe>Ie,classNames:l,styles:a},et)),Un=f.createElement(As,zE({id:g,ref:xe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:cg,className:X(n,`${n}-root`,`${n}-${Oe}`,i,{[`${n}-inline-collapsed`]:Je,[`${n}-rtl`]:Ke},r),dir:p,style:o,role:"menu",tabIndex:u,data:yn,renderRawItem:et=>et,renderRawRest:et=>{const Xe=et.length,Ue=Xe?Me.slice(-Xe):null;return f.createElement(m1,{eventKey:DE,title:D,disabled:Ot,internalPopupClose:Xe===0,popupClassName:B},Ue)},maxCount:Oe!=="horizontal"||C?As.INVALIDATE:As.RESPONSIVE,ssr:"full","data-menu-list":true,onVisibleChange:et=>{ct(et);},onKeyDown:Tt},se));return f.createElement(FR.Provider,{value:At},f.createElement(a7.Provider,{value:Te},f.createElement(bp,{prefixCls:n,rootClassName:r,classNames:l,styles:a,mode:Oe,openKeys:ve,rtl:Ke,disabled:S,motion:pe?F:null,defaultMotions:pe?z:null,activeKey:Se,onActive:Ce,onInactive:he,selectedKeys:ze,inlineIndent:q,subMenuOpenDelay:w,subMenuCloseDelay:$,forceSubMenuRender:E,builtinPlacements:U,triggerSubMenuAction:j,getPopupContainer:K,itemIcon:Y,expandIcon:Q,onItemClick:it,onOpenChange:dt,popupRender:fe},f.createElement(d7.Provider,{value:Ze},Un),f.createElement("div",{style:{display:"none"},"aria-hidden":true},f.createElement(c7.Provider,{value:ke},ae)))))}),Ff=hue;Ff.Item=cg;Ff.SubMenu=m1;Ff.ItemGroup=WR;Ff.Divider=UR;const b7=f.createContext({});var pue={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 kE(){return kE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},kE.apply(this,arguments)}const gue=(e,t)=>f.createElement(Xn,kE({},e,{ref:t,icon:pue})),qR=f.forwardRef(gue),Y0=f.createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false,styles:null,classNames:null}),y7=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:i}=f.useContext(wt),a=i("menu",t),l=X({[`${a}-item-divider-dashed`]:!!r},n);return f.createElement(UR,{className:l,...o})},S7=e=>{const{className:t,children:n,icon:r,title:o,danger:i,extra:a}=e,{prefixCls:l,firstLevel:u,direction:d,disableMenuItemTitleTooltip:m,tooltip:p,inlineCollapsed:g,styles:b,classNames:y}=f.useContext(Y0),S=N=>{const P=n?.[0],O=f.createElement("span",{className:X(`${l}-title-content`,u?y?.itemContent:y?.subMenu?.itemContent,{[`${l}-title-content-with-extra`]:!!a||a===0}),style:u?b?.itemContent:b?.subMenu?.itemContent},n);return (!r||f.isValidElement(n)&&n.type==="span")&&n&&N&&u&&typeof P=="string"?f.createElement("div",{className:`${l}-inline-collapsed-noicon`},P.charAt(0)):O},{siderCollapsed:C}=f.useContext(b7);let w=o;typeof o>"u"?w=u?n:"":o===false&&(w="");const $=p===false?void 0:p,E=$&&$.title!==void 0?$.title:w,T={...$??null,title:E};!C&&!g&&(T.title=null,T.open=false);const R=Zo(n).length;let I=f.createElement(cg,{...zn(e,["title","icon","danger"]),className:X(u?y?.item:y?.subMenu?.item,{[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(r?R+1:R)===1},t),style:{...u?b?.item:b?.subMenu?.item,...e.style},title:typeof o=="string"?o:void 0},jr(r,N=>({className:X(`${l}-item-icon`,u?y?.itemIcon:y?.subMenu?.itemIcon,N.className),style:{...u?b?.itemIcon:b?.subMenu?.itemIcon,...N.style}})),S(g));if(!m&&p!==false){const N=$&&$.placement?$.placement:d==="rtl"?"left":"right",P=`${l}-inline-collapsed-tooltip`,O=L=>({...L,root:X(P,L?.root)}),_=$&&typeof $.classNames=="function"?L=>{const k=$.classNames(L);return O(k)}:O($?.classNames);I=f.createElement(rc,{...T,placement:N,classNames:_},I);}return I},X0=f.createContext(null),vue=f.forwardRef((e,t)=>{const{children:n,...r}=e,o=f.useContext(X0),i=f.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=fJ(n),l=Bs(t,a?tc(n):null);return f.createElement(X0.Provider,{value:i},f.createElement(Ul,{space:true},a?f.cloneElement(n,{ref:l}):n))}),bue=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${oe(i)} ${a} ${o}`,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,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(u=>`${u} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},yue=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
    ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${oe(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${oe(t)})`}}}}),ZO=e=>ba(e),JO=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:u,itemSelectedBg:d,activeBarHeight:m,activeBarWidth:p,activeBarBorderWidth:g,motionDurationSlow:b,motionEaseInOut:y,motionEaseOut:S,itemPaddingInline:C,motionDurationMid:w,itemHoverColor:$,lineType:E,colorSplit:T,itemDisabledColor:R,dangerItemColor:I,dangerItemHoverColor:N,dangerItemSelectedColor:P,dangerItemActiveBg:O,dangerItemSelectedBg:_,popupBg:L,itemHoverBg:k,itemActiveBg:W,menuSubMenuBg:q,horizontalItemSelectedColor:F,horizontalItemSelectedBg:z,horizontalItemBorderRadius:j,horizontalItemHoverBg:U}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...ZO(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...ZO(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${R} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:$}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:W}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:W}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:N}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:_}},[`&${n}-submenu > ${n}`]:{backgroundColor:q},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:e.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${oe(m)} solid transparent`,transition:`border-color ${b} ${y}`,content:'""'},"&:hover, &-active, &-open":{background:U,"&::after":{borderBottomWidth:m,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:m,borderBottomColor:F}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${oe(g)} ${E} ${T}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:u},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${oe(p)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(Y=>`${Y} ${w} ${S}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(Y=>`${Y} ${w} ${y}`).join(",")}}}}}},e8=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:u,itemPaddingInline:d}=e,m=e.calc(i).add(o).add(a).equal();return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:oe(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:u},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:oe(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:m}}},Sue=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:u,itemMarginInline:d,fontSizeLG:m,motionDurationFast:p,motionDurationSlow:g,paddingXS:b,boxShadowSecondary:y,collapsedWidth:S,collapsedIconSize:C}=e,w={height:r,lineHeight:oe(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...e8(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...e8(e),boxShadow:y}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${oe(e.calc(a).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 ${g}`,`background-color ${g}`,`padding ${p} ${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`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:S,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${oe(e.calc(C).div(2).equal())} - ${oe(d)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:C,lineHeight:oe(r),"+ 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:o}},[`${t}-item-group-title`]:{...Ga,paddingInline:b}}}]},t8=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:u}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:u,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Au()},[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},n8=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(l=>`${l} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background-color","transform","top","color"].map(l=>`${l} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${oe(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${oe(a)})`}}}}},Cue=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:u,colorSplit:d,lineWidth:m,zIndexPopup:p,borderRadiusLG:g,subMenuItemBorderRadius:b,menuArrowSize:y,menuArrowOffset:S,lineType:C,groupTitleLineHeight:w,groupTitleFontSize:$}=e;return [{"":{[n]:{...I0(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...dn(e),...I0(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${oe(l)} ${oe(u)}`,fontSize:$,lineHeight:w,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(E=>`${E} ${o} ${a}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o}`,`background-color ${o}`,`padding ${i}`].map(E=>`${E} ${a}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(E=>`${E} ${o} ${a}`).join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-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:d,borderStyle:C,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}},...t8(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${oe(e.calc(r).mul(2).equal())} ${oe(u)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:g,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:g,...t8(e),...n8(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}}},"\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}},...n8(e),[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${oe(S)})`},"&::after":{transform:`rotate(45deg) translateX(${oe(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${oe(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${oe(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${oe(S)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},xue=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:u,colorFillContent:d,lineWidth:m,lineWidthBold:p,controlItemBgActive:g,colorBgTextHover:b,controlHeightLG:y,lineHeight:S,colorBgElevated:C,marginXXS:w,padding:$,fontSize:E,controlHeightSM:T,fontSizeLG:R,colorTextLightSolid:I,colorErrorHover:N}=e,P=e.activeBarWidth??0,O=e.activeBarBorderWidth??m,_=e.itemMarginInline??e.marginXXS,L=new cn(I).setA(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:d,itemActiveBg:g,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:m,activeBarBorderWidth:O,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:_,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:S,collapsedWidth:y*2,popupBg:C,itemMarginBlock:w,itemPaddingInline:$,horizontalLineHeight:`${y*1.15}px`,iconSize:E,iconMarginInlineEnd:T-E,collapsedIconSize:R,groupTitleFontSize:E,darkItemDisabledColor:new cn(I).setA(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:I,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${O}px)`:`calc(100% - ${_*2}px)`}},wue=(e,t=e,n=true)=>qt("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:u,darkDangerItemColor:d,darkItemBg:m,darkSubMenuItemBg:p,darkItemSelectedColor:g,darkItemSelectedBg:b,darkDangerItemSelectedBg:y,darkItemHoverBg:S,darkGroupTitleColor:C,darkItemHoverColor:w,darkItemDisabledColor:$,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:R,popupBg:I,darkPopupBg:N}=o,P=o.calc(l).div(7).mul(5).equal(),O=Ft(o,{menuArrowSize:P,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(P).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:I}),_=Ft(O,{itemColor:u,itemHoverColor:w,groupTitleColor:C,itemSelectedColor:g,subMenuItemSelectedColor:g,itemBg:m,popupBg:N,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:$,dangerItemColor:d,dangerItemHoverColor:E,dangerItemSelectedColor:T,dangerItemActiveBg:R,dangerItemSelectedBg:y,menuSubMenuBg:p,horizontalItemSelectedColor:g,horizontalItemSelectedBg:b});return [Cue(O),bue(O),Sue(O),JO(O,"light"),JO(_,"dark"),yue(O),_k(O),jl(O,"slide-up"),jl(O,"slide-down"),tg(O,"zoom-big")]},xue,{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:true}})(e,t),C7=e=>{const{popupClassName:t,icon:n,title:r,theme:o}=e,i=f.useContext(Y0),{prefixCls:a,inlineCollapsed:l,theme:u,classNames:d,styles:m}=i,p=kf();let g;if(!n)g=l&&!p.length&&r&&typeof r=="string"?f.createElement("div",{className:`${a}-inline-collapsed-noicon`},r.charAt(0)):f.createElement("span",{className:`${a}-title-content`},r);else {const S=f.isValidElement(r)&&r.type==="span";g=f.createElement(f.Fragment,null,jr(n,C=>({className:X(C.className,`${a}-item-icon`,d?.itemIcon),style:{...C.style,...m?.itemIcon}})),S?r:f.createElement("span",{className:`${a}-title-content`},r));}const b=f.useMemo(()=>({...i,firstLevel:false}),[i]),[y]=Pu("Menu");return f.createElement(Y0.Provider,{value:b},f.createElement(m1,{...zn(e,["icon"]),title:g,classNames:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},styles:{list:m?.subMenu?.list,listTitle:m?.subMenu?.itemTitle},popupClassName:X(a,t,d?.popup?.root,`${a}-${o||u}`),popupStyle:{zIndex:y,...e.popupStyle,...m?.popup?.root}}))};function rw(e){return e===null||e===false}const $ue={item:S7,submenu:C7,divider:y7},Eue=f.forwardRef((e,t)=>{const n=f.useContext(X0),r=n||{},{prefixCls:o,className:i,style:a,theme:l="light",expandIcon:u,_internalDisableMenuItemTitleTooltip:d,tooltip:m,inlineCollapsed:p,siderCollapsed:g,rootClassName:b,mode:y,selectable:S,onClick:C,overflowedIndicatorPopupClassName:w,classNames:$,styles:E,...T}=e,{menu:R}=f.useContext(wt),{getPrefixCls:I,getPopupContainer:N,direction:P,className:O,style:_,classNames:L,styles:k}=jt("menu"),W=I(),q=zn(T,["collapsedWidth"]);r.validator?.({mode:y});const F=Mt((...ne)=>{C?.(...ne),r.onClick?.();}),z=r.mode||y,j=S??r.selectable,U=p??g,Y={...e,mode:z,inlineCollapsed:U,selectable:j,theme:l},[Q,D]=Kt([L,$],[k,E],{props:Y},{popup:{_default:"root"},subMenu:{_default:"item"}}),B={horizontal:{motionName:`${W}-slide-up`},inline:Ik(W),other:{motionName:`${W}-zoom-big`}},K=I("menu",o||r.prefixCls),J=Qn(K),[ee,te]=wue(K,J,!n),re=X(`${K}-${l}`,O,i),ie=f.useMemo(()=>{if(typeof u=="function"||rw(u))return u||null;if(typeof r.expandIcon=="function"||rw(r.expandIcon))return r.expandIcon||null;if(typeof R?.expandIcon=="function"||rw(R?.expandIcon))return R?.expandIcon||null;const ne=u??r?.expandIcon??R?.expandIcon;return jr(ne,{className:X(`${K}-submenu-expand-icon`,f.isValidElement(ne)?ne.props?.className:void 0)})},[u,r?.expandIcon,R?.expandIcon,K]),ue=f.useMemo(()=>({prefixCls:K,inlineCollapsed:U||false,direction:P,firstLevel:true,theme:l,mode:z,disableMenuItemTitleTooltip:d,tooltip:m,classNames:Q,styles:D}),[K,U,P,d,l,z,Q,D,m]);return f.createElement(X0.Provider,{value:null},f.createElement(Y0.Provider,{value:ue},f.createElement(Ff,{getPopupContainer:N,overflowedIndicator:f.createElement(qR,null),overflowedIndicatorPopupClassName:X(K,`${K}-${l}`,w),classNames:{list:Q.list,listTitle:Q.itemTitle},styles:{list:D.list,listTitle:D.itemTitle},mode:z,selectable:j,onClick:F,...q,inlineCollapsed:U,style:{...D.root,..._,...a},className:re,prefixCls:K,direction:P,defaultMotions:B,expandIcon:ie,ref:t,rootClassName:X(b,ee,r.rootClassName,te,J,Q.root),_internalComponents:$ue})))}),oc=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(b7);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{n.current?.focus(o);}})),f.createElement(Eue,{ref:n,...e,...r})});oc.Item=S7;oc.SubMenu=C7;oc.Divider=y7;oc.ItemGroup=WR;const Mue=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Rue=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:u,paddingBlock:d,fontSize:m,dropdownEdgeChildPadding:p,colorTextDisabled:g,fontSizeIcon:b,controlPaddingHorizontal:y,colorBgElevated:S}=e;return [{[t]:{position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:b}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:b},[`${l}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:mR},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:pR},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:hR},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:gR}}},kR(e,S,{arrowPlacement:{top:true,bottom:true}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...dn(e),[n]:{padding:p,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Ei(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${oe(d)} ${oe(y)}`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,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 ${u}`,"&: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:`${oe(d)} ${oe(y)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ei(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oe(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:b,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${oe(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(y).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[jl(e,"slide-up"),jl(e,"slide-down"),k0(e,"move-up"),k0(e,"move-down"),tg(e,"zoom-big")]]},Tue=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...l1({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...zR(e)}),Aue=qt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=Ft(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return [Rue(i),Mue(i)]},Tue,{resetStyle:false}),h1=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,popupRender:u,getPopupContainer:d,overlayClassName:m,rootClassName:p,overlayStyle:g,open:b,onOpenChange:y,mouseEnterDelay:S=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:w=true,placement:$="",transitionName:E,classNames:T,styles:R,destroyPopupOnHide:I,destroyOnHidden:N}=e,{getPrefixCls:P,direction:O,getPopupContainer:_,className:L,style:k,classNames:W,styles:q}=jt("dropdown"),F={...e,mouseEnterDelay:S,mouseLeaveDelay:C,autoAdjustOverflow:w},[z,j]=Kt([W,T],[q,R],{props:F}),U={...k,...g,...j.root},Y=u||l,Q=f.useMemo(()=>{const Ae=P();return E!==void 0?E:$.includes("top")?`${Ae}-slide-down`:`${Ae}-slide-up`},[P,$,E]),D=f.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:O==="rtl"?"bottomRight":"bottomLeft",[$,O]),B=P("dropdown",r),K=Qn(B),[J,ee]=Aue(B,K),[,te]=Wr(),re=f.Children.only(Gce(o)?f.createElement("span",null,o):o),ie=jr(re,{className:X(`${B}-trigger`,{[`${B}-rtl`]:O==="rtl"},re.props.className),disabled:re.props.disabled??a}),ue=a?[]:i,ne=!!ue?.includes("contextMenu"),[ce,fe]=un(false,b),se=Mt(Ae=>{y?.(Ae,{source:"trigger"}),fe(Ae);}),Me=X(m,p,J,ee,K,L,z.root,{[`${B}-rtl`]:O==="rtl"}),ae=QF({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:te.marginXXS,arrowWidth:n?te.sizePopupArrow:0,borderRadius:te.borderRadius}),pe=Mt(()=>{t?.selectable&&t?.multiple||(y?.(false,{source:"menu"}),fe(false));}),be=()=>{const Ae=zn(z,["root"]),de=zn(j,["root"]);let ve;return t?.items&&(ve=f.createElement(oc,{...t,classNames:{...Ae,subMenu:{...Ae}},styles:{...de,subMenu:{...de}}})),Y&&(ve=Y(ve)),ve=f.Children.only(typeof ve=="string"?f.createElement("span",null,ve):ve),f.createElement(vue,{prefixCls:`${B}-menu`,rootClassName:X(ee,K),expandIcon:f.createElement("span",{className:`${B}-menu-submenu-arrow`},O==="rtl"?f.createElement(vp,{className:`${B}-menu-submenu-arrow-icon`}):f.createElement(pf,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:pe,validator:({mode:Ne})=>{}},ve)},[xe,Te]=Pu("Dropdown",U.zIndex);let Ke=f.createElement(i7,{alignPoint:ne,...zn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:S,mouseLeaveDelay:C,visible:ce,builtinPlacements:ae,arrow:!!n,overlayClassName:Me,prefixCls:B,getPopupContainer:d||_,transitionName:Q,trigger:ue,overlay:be,placement:D,onVisibleChange:se,overlayStyle:{...U,zIndex:xe},autoDestroy:N??I},ie);return xe&&(Ke=f.createElement(Zy.Provider,{value:Te},Ke)),Ke},Nue=AR(h1,"align",void 0,"dropdown",e=>e),Pue=e=>f.createElement(Nue,{...e},f.createElement("span",null));h1._InternalPanelDoNotUseOrYouWillBeFired=Pue;var Yb={exports:{}},Iue=Yb.exports,r8;function Oue(){return r8||(r8=1,(function(e,t){(function(n,r){e.exports=r();})(Iue,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",u="hour",d="day",m="week",p="month",g="quarter",b="year",y="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var F=["th","st","nd","rd"],z=q%100;return "["+q+(F[(z-20)%10]||F[z]||F[0])+"]"}},E=function(q,F,z){var j=String(q);return !j||j.length>=F?q:""+Array(F+1-j.length).join(z)+q},T={s:E,z:function(q){var F=-q.utcOffset(),z=Math.abs(F),j=Math.floor(z/60),U=z%60;return (F<=0?"+":"-")+E(j,2,"0")+":"+E(U,2,"0")},m:function q(F,z){if(F.date()<z.date())return -q(z,F);var j=12*(z.year()-F.year())+(z.month()-F.month()),U=F.clone().add(j,p),Y=z-U<0,Q=F.clone().add(j+(Y?-1:1),p);return +(-(j+(z-U)/(Y?U-Q:Q-U))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return {M:p,y:b,w:m,d,D:y,h:u,m:l,s:a,ms:i,Q:g}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},R="en",I={};I[R]=$;var N="$isDayjsObject",P=function(q){return q instanceof k||!(!q||!q[N])},O=function q(F,z,j){var U;if(!F)return R;if(typeof F=="string"){var Y=F.toLowerCase();I[Y]&&(U=Y),z&&(I[Y]=z,U=Y);var Q=F.split("-");if(!U&&Q.length>1)return q(Q[0])}else {var D=F.name;I[D]=F,U=D;}return !j&&U&&(R=U),U||!j&&R},_=function(q,F){if(P(q))return q.clone();var z=typeof F=="object"?F:{};return z.date=q,z.args=arguments,new k(z)},L=T;L.l=O,L.i=P,L.w=function(q,F){return _(q,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var k=(function(){function q(z){this.$L=O(z.locale,null,true),this.parse(z),this.$x=this.$x||z.x||{},this[N]=true;}var F=q.prototype;return F.parse=function(z){this.$d=(function(j){var U=j.date,Y=j.utc;if(U===null)return new Date(NaN);if(L.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var Q=U.match(C);if(Q){var D=Q[2]-1||0,B=(Q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(Q[1],D,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,B)):new Date(Q[1],D,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,B)}}return new Date(U)})(z),this.init();},F.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds();},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==S},F.isSame=function(z,j){var U=_(z);return this.startOf(j)<=U&&U<=this.endOf(j)},F.isAfter=function(z,j){return _(z)<this.startOf(j)},F.isBefore=function(z,j){return this.endOf(j)<_(z)},F.$g=function(z,j,U){return L.u(z)?this[j]:this.set(U,z)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(z,j){var U=this,Y=!!L.u(j)||j,Q=L.p(z),D=function(ue,ne){var ce=L.w(U.$u?Date.UTC(U.$y,ne,ue):new Date(U.$y,ne,ue),U);return Y?ce:ce.endOf(d)},B=function(ue,ne){return L.w(U.toDate()[ue].apply(U.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(ne)),U)},K=this.$W,J=this.$M,ee=this.$D,te="set"+(this.$u?"UTC":"");switch(Q){case b:return Y?D(1,0):D(31,11);case p:return Y?D(1,J):D(0,J+1);case m:var re=this.$locale().weekStart||0,ie=(K<re?K+7:K)-re;return D(Y?ee-ie:ee+(6-ie),J);case d:case y:return B(te+"Hours",0);case u:return B(te+"Minutes",1);case l:return B(te+"Seconds",2);case a:return B(te+"Milliseconds",3);default:return this.clone()}},F.endOf=function(z){return this.startOf(z,false)},F.$set=function(z,j){var U,Y=L.p(z),Q="set"+(this.$u?"UTC":""),D=(U={},U[d]=Q+"Date",U[y]=Q+"Date",U[p]=Q+"Month",U[b]=Q+"FullYear",U[u]=Q+"Hours",U[l]=Q+"Minutes",U[a]=Q+"Seconds",U[i]=Q+"Milliseconds",U)[Y],B=Y===d?this.$D+(j-this.$W):j;if(Y===p||Y===b){var K=this.clone().set(y,1);K.$d[D](B),K.init(),this.$d=K.set(y,Math.min(this.$D,K.daysInMonth())).$d;}else D&&this.$d[D](B);return this.init(),this},F.set=function(z,j){return this.clone().$set(z,j)},F.get=function(z){return this[L.p(z)]()},F.add=function(z,j){var U,Y=this;z=Number(z);var Q=L.p(j),D=function(J){var ee=_(Y);return L.w(ee.date(ee.date()+Math.round(J*z)),Y)};if(Q===p)return this.set(p,this.$M+z);if(Q===b)return this.set(b,this.$y+z);if(Q===d)return D(1);if(Q===m)return D(7);var B=(U={},U[l]=r,U[u]=o,U[a]=n,U)[Q]||1,K=this.$d.getTime()+z*B;return L.w(K,this)},F.subtract=function(z,j){return this.add(-1*z,j)},F.format=function(z){var j=this,U=this.$locale();if(!this.isValid())return U.invalidDate||S;var Y=z||"YYYY-MM-DDTHH:mm:ssZ",Q=L.z(this),D=this.$H,B=this.$m,K=this.$M,J=U.weekdays,ee=U.months,te=U.meridiem,re=function(ne,ce,fe,se){return ne&&(ne[ce]||ne(j,Y))||fe[ce].slice(0,se)},ie=function(ne){return L.s(D%12||12,ne,"0")},ue=te||function(ne,ce,fe){var se=ne<12?"AM":"PM";return fe?se.toLowerCase():se};return Y.replace(w,(function(ne,ce){return ce||(function(fe){switch(fe){case "YY":return String(j.$y).slice(-2);case "YYYY":return L.s(j.$y,4,"0");case "M":return K+1;case "MM":return L.s(K+1,2,"0");case "MMM":return re(U.monthsShort,K,ee,3);case "MMMM":return re(ee,K);case "D":return j.$D;case "DD":return L.s(j.$D,2,"0");case "d":return String(j.$W);case "dd":return re(U.weekdaysMin,j.$W,J,2);case "ddd":return re(U.weekdaysShort,j.$W,J,3);case "dddd":return J[j.$W];case "H":return String(D);case "HH":return L.s(D,2,"0");case "h":return ie(1);case "hh":return ie(2);case "a":return ue(D,B,true);case "A":return ue(D,B,false);case "m":return String(B);case "mm":return L.s(B,2,"0");case "s":return String(j.$s);case "ss":return L.s(j.$s,2,"0");case "SSS":return L.s(j.$ms,3,"0");case "Z":return Q}return null})(ne)||Q.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(z,j,U){var Y,Q=this,D=L.p(j),B=_(z),K=(B.utcOffset()-this.utcOffset())*r,J=this-B,ee=function(){return L.m(Q,B)};switch(D){case b:Y=ee()/12;break;case p:Y=ee();break;case g:Y=ee()/3;break;case m:Y=(J-K)/6048e5;break;case d:Y=(J-K)/864e5;break;case u:Y=J/o;break;case l:Y=J/r;break;case a:Y=J/n;break;default:Y=J;}return U?Y:L.a(Y)},F.daysInMonth=function(){return this.endOf(p).$D},F.$locale=function(){return I[this.$L]},F.locale=function(z,j){if(!z)return this.$L;var U=this.clone(),Y=O(z,j,true);return Y&&(U.$L=Y),U},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},q})(),W=k.prototype;return _.prototype=W,[["$ms",i],["$s",a],["$m",l],["$H",u],["$W",d],["$M",p],["$y",b],["$D",y]].forEach((function(q){W[q[1]]=function(F){return this.$g(F,q[0],q[1])};})),_.extend=function(q,F){return q.$i||(q(F,k,_),q.$i=true),_},_.locale=O,_.isDayjs=P,_.unix=function(q){return _(1e3*q)},_.en=I[R],_.Ls=I,_.p={},_}));})(Yb)),Yb.exports}var Due=Oue();const Yn=Do(Due);function _ue(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function Lue(e){return _ue(e).join("_")}const x7=f.createContext(void 0),Bue=x7.Provider,w7=f.createContext(void 0),zue=w7.Provider;function FE(){return FE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},FE.apply(this,arguments)}const $7=f.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:o,checked:i,disabled:a,defaultChecked:l=false,type:u="checkbox",title:d,onChange:m,...p}=e,g=f.useRef(null),b=f.useRef(null),[y,S]=un(l,i);f.useImperativeHandle(t,()=>({focus:$=>{g.current?.focus($);},blur:()=>{g.current?.blur();},input:g.current,nativeElement:b.current}));const C=X(n,r,{[`${n}-checked`]:y,[`${n}-disabled`]:a}),w=$=>{a||("checked"in e||S($.target.checked),m?.({target:{...e,type:u,checked:$.target.checked},stopPropagation(){$.stopPropagation();},preventDefault(){$.preventDefault();},nativeEvent:$.nativeEvent}));};return f.createElement("span",{className:C,title:d,style:o,ref:b},f.createElement("input",FE({},p,{className:`${n}-input`,ref:g,onChange:w,disabled:a,checked:!!y,type:u})))});function E7(e){const t=G.useRef(null),n=()=>{Bt.cancel(t.current),t.current=null;};return [()=>{n(),t.current=Bt(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),n()),e?.(i);}]}const kue=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:{...dn(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-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,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},Fue=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:o,radioSize:i,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:u,colorBgContainer:d,colorBorder:m,lineWidth:p,colorBgContainerDisabled:g,colorTextDisabled:b,paddingXS:y,dotColorDisabled:S,dotSize:C,lineType:w,radioColor:$,radioBgColor:E}=e;return {[`${t}-wrapper`]:{...dn(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]:{...dn(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${i} * 1px)`,height:`calc(${i} * 1px)`,backgroundColor:d,border:`${oe(p)} ${w} ${m}`,borderRadius:"50%",transition:`all ${l}`,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${C} * 1px)`,height:`calc(${C} * 1px)`,backgroundColor:$,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${a} ${u}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:ba(e)},[`&:hover ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:o,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:E,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:g,borderColor:m,"&::after":{backgroundColor:S}},[`${t}-disabled + span`]:{color:b,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}}}},Hue=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationMid:l,buttonPaddingInline:u,fontSize:d,buttonBg:m,fontSizeLG:p,controlHeightLG:g,controlHeightSM:b,paddingXS:y,borderRadius:S,borderRadiusSM:C,borderRadiusLG:w,buttonCheckedBg:$,buttonSolidCheckedColor:E,colorTextDisabled:T,colorBgContainerDisabled:R,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:N,colorPrimary:P,colorPrimaryHover:O,colorPrimaryActive:_,buttonSolidCheckedBg:L,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:W,calc:q}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:oe(q(n).sub(q(o).mul(2)).equal()),background:m,border:`${oe(o)} ${i} ${a}`,borderBlockStartWidth:q(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:["color","background-color","box-shadow"].map(F=>`${F} ${l}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:q(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${oe(o)} ${i} ${a}`,borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S},"&:first-child:last-child":{borderRadius:S},[`${r}-group-large &`]:{height:g,fontSize:p,lineHeight:oe(q(g).sub(q(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:b,paddingInline:q(y).sub(o).equal(),paddingBlock:0,lineHeight:oe(q(b).sub(q(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":ba(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:P,background:$,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:L,borderColor:L,"&:hover":{color:E,background:k,borderColor:k},"&:active":{color:E,background:W,borderColor:W}},"&-disabled":{color:T,backgroundColor:R,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:T,backgroundColor:R,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:N,backgroundColor:I,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Vue=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:u,controlItemBgActiveDisabled:d,colorTextLightSolid:m,colorPrimary:p,colorPrimaryHover:g,colorPrimaryActive:b,colorWhite:y}=e,S=4,C=i,w=t?C-S*2:C-(S+o)*2;return {radioSize:C,dotSize:w,dotColorDisabled:u,buttonSolidCheckedColor:m,buttonSolidCheckedBg:p,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:b,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:u,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?p:y,radioBgColor:t?l:p}},M7=qt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${oe(n)} ${t}`,i=Ft(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [kue(i),Fue(i),Hue(i)]},Vue,{unitless:{radioSize:true,dotSize:true}}),jue=(e,t)=>{const n=f.useContext(x7),r=f.useContext(w7),{getPrefixCls:o,direction:i,className:a,style:l,classNames:u,styles:d}=jt("radio"),m=f.useRef(null),p=Ur(t,m),{isFormItemInput:g}=f.useContext(xo),b=B=>{e.onChange?.(B),n?.onChange?.(B);},{prefixCls:y,className:S,rootClassName:C,children:w,style:$,title:E,classNames:T,styles:R,...I}=e,N=o("radio",y),P=(n?.optionType||r)==="button",O=P?`${N}-button`:N,_=Qn(N),[L,k]=M7(N,_),W={...I},q=f.useContext(ro);let F=W.checked;n&&(W.name=n.name,W.onChange=b,F=e.value===n.value,W.disabled=W.disabled??n.disabled),W.disabled=W.disabled??q;const z={...e,...W,checked:F},[j,U]=Kt([u,T],[d,R],{props:z}),Y=X(`${O}-wrapper`,{[`${O}-wrapper-checked`]:F,[`${O}-wrapper-disabled`]:W.disabled,[`${O}-wrapper-rtl`]:i==="rtl",[`${O}-wrapper-in-form-item`]:g,[`${O}-wrapper-block`]:!!n?.block},a,S,C,j.root,L,k,_),[Q,D]=E7(W.onClick);return f.createElement(eg,{component:"Radio",disabled:W.disabled},f.createElement("label",{className:Y,style:{...U.root,...l,...$},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:E,onClick:Q},f.createElement($7,{...W,checked:F,className:X(j.icon,{[r1]:!P}),style:U.icon,type:"radio",prefixCls:O,ref:p,onClick:D}),w!==void 0?f.createElement("span",{className:X(`${O}-label`,j.label),style:U.label},w):null))},Q0=f.forwardRef(jue),Uue=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(wt),{name:o}=f.useContext(xo),i=ks(Lue(o)),{prefixCls:a,className:l,rootClassName:u,options:d,buttonStyle:m="outline",disabled:p,children:g,size:b,style:y,id:S,optionType:C,name:w=i,defaultValue:$,value:E,block:T=false,onChange:R,onMouseEnter:I,onMouseLeave:N,onFocus:P,onBlur:O,orientation:_,vertical:L,role:k="radiogroup"}=e,[W,q]=un($,E),F=f.useCallback(te=>{const re=W,ie=te.target.value;"value"in e||q(ie),ie!==re&&R?.(te);},[W,q,R]),z=n("radio",a),j=`${z}-group`,U=Qn(z),[Y,Q]=M7(z,U);let D=g;d&&d.length>0&&(D=d.map(te=>typeof te=="string"||typeof te=="number"?f.createElement(Q0,{key:te.toString(),prefixCls:z,disabled:p,value:te,checked:W===te},te):f.createElement(Q0,{key:`radio-group-value-options-${te.value}`,prefixCls:z,disabled:te.disabled||p,value:te.value,checked:W===te.value,title:te.title,style:te.style,className:te.className,id:te.id,required:te.required},te.label)));const B=lo(b),[,K]=Nu(_,L),J=X(j,`${j}-${m}`,{[`${j}-${B}`]:B,[`${j}-rtl`]:r==="rtl",[`${j}-block`]:T},l,u,Y,Q,U),ee=f.useMemo(()=>({onChange:F,value:W,disabled:p,name:w,optionType:C,block:T}),[F,W,p,w,C,T]);return f.createElement("div",{...Co(e,{aria:true,data:true}),role:k,className:X(J,{[`${z}-group-vertical`]:K}),style:y,onMouseEnter:I,onMouseLeave:N,onFocus:P,onBlur:O,id:S,ref:t},f.createElement(Bue,{value:ee},D))}),Wue=f.memo(Uue),que=(e,t)=>{const{getPrefixCls:n}=f.useContext(wt),{prefixCls:r,...o}=e,i=n("radio",r);return f.createElement(zue,{value:"button"},f.createElement(Q0,{prefixCls:i,...o,type:"radio",ref:t}))},Gue=f.forwardRef(que),no=Q0;no.Button=Gue;no.Group=Wue;no.__ANT_RADIO=true;function Hf(e){return Ft(e,{inputAffixPadding:e.paddingXXS})}const Vf=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:u,paddingSM:d,controlPaddingHorizontalSM:m,controlPaddingHorizontal:p,colorFillAlter:g,colorPrimaryHover:b,colorPrimary:y,controlOutlineWidth:S,controlOutline:C,colorErrorOutline:w,colorWarningOutline:$,colorBgContainer:E,inputFontSize:T,inputFontSizeLG:R,inputFontSizeSM:I}=e,N=T||n,P=I||N,O=R||l,_=Math.round((t-N*r)/2*10)/10-o,L=Math.round((i-P*r)/2*10)/10-o,k=Math.ceil((a-O*u)/2*10)/10-o;return {paddingBlock:Math.max(_,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(k,0),paddingInline:d-o,paddingInlineSM:m-o,paddingInlineLG:p-o,addonBg:g,activeBorderColor:y,hoverBorderColor:b,activeShadow:`0 0 0 ${S}px ${C}`,errorActiveShadow:`0 0 0 ${S}px ${w}`,warningActiveShadow:`0 0 0 ${S}px ${$}`,hoverBg:E,activeBg:E,inputFontSize:N,inputFontSizeLG:O,inputFontSizeSM:P}},Kue=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),p1=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])":{...Kue(Ft(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),GR=(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}}),o8=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...GR(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),R7=(e,t)=>({"&-outlined":{...GR(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...p1(e)},...o8(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...o8(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),i8=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Yue=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...i8(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...i8(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...p1(e)}}}}),T7=(e,t)=>{const{componentCls:n}=e;return {"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&: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}}},A7=(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}}),a8=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...A7(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),N7=(e,t)=>({"&-filled":{...A7(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...p1(e)},...a8(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...a8(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),s8=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Xue=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...s8(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...s8(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),P7=(e,t)=>({background:e.colorBgContainer,borderWidth:`${oe(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}}),l8=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...P7(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`}}),I7=(e,t)=>({"&-underlined":{...P7(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"},...l8(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...l8(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),O7=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),KR=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return {padding:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},YR=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),g1=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${oe(e.paddingBlock)} ${oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...O7(e.colorTextPlaceholder),"&-lg":{...KR(e),...t.largeStyle},"&-sm":{...YR(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Que=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`]:{...KR(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...YR(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 ${oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${oe(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",...I0(),[`${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},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${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}-select:first-child,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${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`]:{}}}}},Zue=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return {[t]:{...dn(e),...g1(e),...R7(e),...N7(e),...T7(e),...I7(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"}}}},Jue=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 ${oe(e.inputAffixPadding)}`}}}},ede=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,u=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return {[u]:{...g1(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:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...Jue(e),[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}},[`${t}-underlined`]:{borderRadius:0},[d]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},tde=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return {[`${t}-group`]:{...dn(e),...Que(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:r}},...Yue(e),...Xue(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}}}}}},nde=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},D7=qt(["Input","Shared"],e=>{const t=Ft(e,Hf(e));return [Zue(t),ede(t)]},Vf,{resetFont:false}),_7=qt(["Input","Component"],e=>{const t=Ft(e,Hf(e));return [tde(t),nde(t),Lf(t,{focus:true,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Vf,{resetFont:false});var rde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},HE.apply(this,arguments)}const ode=(e,t)=>f.createElement(Xn,HE({},e,{ref:t,icon:rde})),L7=f.forwardRef(ode);var oh={exports:{}},c8;function ide(){if(c8)return oh.exports;c8=1,oh.exports=r,oh.exports.isMobile=r,oh.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(o){o||(o={});let i=o.ua;if(!i&&typeof navigator<"u"&&(i=navigator.userAgent),i&&i.headers&&typeof i.headers["user-agent"]=="string"&&(i=i.headers["user-agent"]),typeof i!="string")return  false;let a=e.test(i)&&!t.test(i)||!!o.tablet&&n.test(i);return !a&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&i.indexOf("Macintosh")!==-1&&i.indexOf("Safari")!==-1&&(a=true),a}return oh.exports}var ade=ide();const sde=Do(ade);let ow;const lde=(()=>(typeof ow>"u"&&(ow=sde()),ow)),XR=f.createContext(null),cde=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:o={}}=e,{size:i,align:a="center"}=o,[l,u]=f.useState(),d=f.useRef(),m=G.useCallback(g=>typeof i=="function"?i(g):typeof i=="number"?i:g,[i]);function p(){Bt.cancel(d.current);}return f.useEffect(()=>{const g={};if(t)if(n){g.width=m(t.width);const b=r?"right":"left";a==="start"&&(g[b]=t[b]),a==="center"&&(g[b]=t[b]+t.width/2,g.transform=r?"translateX(50%)":"translateX(-50%)"),a==="end"&&(g[b]=t[b]+t.width,g.transform="translateX(-100%)");}else g.height=m(t.height),a==="start"&&(g.top=t.top),a==="center"&&(g.top=t.top+t.height/2,g.transform="translateY(-50%)"),a==="end"&&(g.top=t.top+t.height,g.transform="translateY(-100%)");return p(),d.current=Bt(()=>{l&&g&&Object.keys(g).every(y=>{const S=g[y],C=l[y];return typeof S=="number"&&typeof C=="number"?Math.round(S)===Math.round(C):S===C})||u(g);}),p},[JSON.stringify(t),n,r,a,m]),{style:l}},u8={width:0,height:0,left:0,top:0};function ude(e,t,n){return f.useMemo(()=>{const r=new Map,o=t.get(e[0]?.key)||u8,i=o.left+o.width;for(let a=0;a<e.length;a+=1){const{key:l}=e[a];let u=t.get(l);u||(u=t.get(e[a-1]?.key)||u8);const d=r.get(l)||{...u};d.right=i-d.left-d.width,r.set(l,d);}return r},[e.map(r=>r.key).join("_"),t,n])}function d8(e,t){const n=f.useRef(e),[,r]=f.useState({});function o(i){const a=typeof i=="function"?i(n.current):i;a!==n.current&&t(a,n.current),n.current=a,r({});}return [n.current,o]}const dde=.1,f8=.01,Xb=20,m8=.995**Xb;function fde(e,t){const[n,r]=f.useState(),[o,i]=f.useState(0),[a,l]=f.useState(0),[u,d]=f.useState(),m=f.useRef();function p(w){const{screenX:$,screenY:E}=w.touches[0];r({x:$,y:E}),window.clearInterval(m.current);}function g(w){if(!n)return;const{screenX:$,screenY:E}=w.touches[0];r({x:$,y:E});const T=$-n.x,R=E-n.y;t(T,R);const I=Date.now();i(I),l(I-o),d({x:T,y:R});}function b(){if(n&&(r(null),d(null),u)){const w=u.x/a,$=u.y/a,E=Math.abs(w),T=Math.abs($);if(Math.max(E,T)<dde)return;let R=w,I=$;m.current=window.setInterval(()=>{if(Math.abs(R)<f8&&Math.abs(I)<f8){window.clearInterval(m.current);return}R*=m8,I*=m8,t(R*Xb,I*Xb);},Xb);}}const y=f.useRef();function S(w){const{deltaX:$,deltaY:E}=w;let T=0;const R=Math.abs($),I=Math.abs(E);R===I?T=y.current==="x"?$:E:R>I?(T=$,y.current="x"):(T=E,y.current="y"),t(-T,-T)&&w.preventDefault();}const C=f.useRef(null);C.current={onTouchStart:p,onTouchMove:g,onTouchEnd:b,onWheel:S},f.useEffect(()=>{function w(R){C.current.onTouchStart(R);}function $(R){C.current.onTouchMove(R);}function E(R){C.current.onTouchEnd(R);}function T(R){C.current.onWheel(R);}return document.addEventListener("touchmove",$,{passive:false}),document.addEventListener("touchend",E,{passive:true}),e.current.addEventListener("touchstart",w,{passive:true}),e.current.addEventListener("wheel",T,{passive:false}),()=>{document.removeEventListener("touchmove",$),document.removeEventListener("touchend",E);}},[]);}function B7(e){const[t,n]=f.useState(0),r=f.useRef(0),o=f.useRef();return o.current=e,Bb(()=>{o.current?.();},[t]),()=>{r.current===t&&(r.current+=1,n(r.current));}}function mde(e){const t=f.useRef([]),[,n]=f.useState({}),r=f.useRef(typeof e=="function"?e():e),o=B7(()=>{let a=r.current;t.current.forEach(l=>{a=l(a);}),t.current=[],r.current=a,n({});});function i(a){t.current.push(a),o();}return [r.current,i]}const h8={width:0,height:0,left:0,top:0,right:0};function hde(e,t,n,r,o,i,{tabs:a,tabPosition:l,rtl:u}){let d,m,p;return ["top","bottom"].includes(l)?(d="width",m=u?"right":"left",p=Math.abs(n)):(d="height",m="top",p=-n),f.useMemo(()=>{if(!a.length)return [0,0];const g=a.length;let b=g;for(let S=0;S<g;S+=1){const C=e.get(a[S].key)||h8;if(Math.floor(C[m]+C[d])>Math.floor(p+t)){b=S-1;break}}let y=0;for(let S=g-1;S>=0;S-=1)if((e.get(a[S].key)||h8)[m]<p){y=S+1;break}return y>b?[0,-1]:[y,b]},[e,t,r,o,i,p,l,a.map(g=>g.key).join("_"),u])}function p8(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n;})):t=e,JSON.stringify(t)}const pde="TABS_DQ";function z7(e){return String(e).replace(/"/g,pde)}function QR(e,t,n,r){return !(!n||r||e===false||e===void 0&&(t===false||t===null))}const k7=f.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:o,style:i}=e;return !r||r.showAdd===false?null:f.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:i,"aria-label":o?.addAriaLabel||"Add tab",onClick:a=>{r.onEdit("add",{event:a});}},r.addIcon||"+")}),g8=f.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:o}=e;if(!o)return null;let i,a={};return typeof o=="object"&&!f.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?f.createElement("div",{className:`${r}-extra-content`,ref:t},i):null});function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},VE.apply(this,arguments)}const gde=f.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:o,locale:i,mobile:a,more:l={},style:u,className:d,editable:m,tabBarGutter:p,rtl:g,removeAriaLabel:b,onTabClick:y,getPopupContainer:S,popupClassName:C,popupStyle:w}=e,[$,E]=f.useState(false),[T,R]=f.useState(null),{icon:I="More"}=l,N=`${r}-more-popup`,P=`${n}-dropdown`,O=T!==null?`${N}-${T}`:null,_=i?.dropdownAriaLabel;function L(U,Y){U.preventDefault(),U.stopPropagation(),m.onEdit("remove",{key:Y,event:U});}const k=f.createElement(Ff,{onClick:({key:U,domEvent:Y})=>{y(U,Y),E(false);},prefixCls:`${P}-menu`,id:N,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[T],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(U=>{const{closable:Y,disabled:Q,closeIcon:D,key:B,label:K}=U,J=QR(Y,D,m,Q);return f.createElement(cg,{key:B,id:`${N}-${B}`,role:"option","aria-controls":r&&`${r}-panel-${B}`,disabled:Q},f.createElement("span",null,K),J&&f.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:`${P}-menu-item-remove`,onClick:ee=>{ee.stopPropagation(),L(ee,B);}},D||m.removeIcon||"×"))}));function W(U){const Y=o.filter(B=>!B.disabled);let Q=Y.findIndex(B=>B.key===T)||0;const D=Y.length;for(let B=0;B<D;B+=1){Q=(Q+U+D)%D;const K=Y[Q];if(!K.disabled){R(K.key);return}}}function q(U){const{which:Y}=U;if(!$){[at.DOWN,at.SPACE,at.ENTER].includes(Y)&&(E(true),U.preventDefault());return}switch(Y){case at.UP:W(-1),U.preventDefault();break;case at.DOWN:W(1),U.preventDefault();break;case at.ESC:E(false);break;case at.SPACE:case at.ENTER:T!==null&&y(T,U);break}}f.useEffect(()=>{const U=document.getElementById(O);U?.scrollIntoView&&U.scrollIntoView(false);},[O,T]),f.useEffect(()=>{$||R(null);},[$]);const F={marginInlineStart:p};o.length||(F.visibility="hidden",F.order=1);const z=X(C,{[`${P}-rtl`]:g}),j=a?null:f.createElement(i7,VE({prefixCls:P,overlay:k,visible:o.length?$:false,onVisibleChange:E,overlayClassName:z,overlayStyle:w,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},l),f.createElement("button",{type:"button",className:`${n}-nav-more`,style:F,"aria-haspopup":"listbox","aria-controls":N,id:`${r}-more`,"aria-expanded":$,onKeyDown:q},I));return f.createElement("div",{className:X(`${n}-nav-operations`,d),style:u,ref:t},j,f.createElement(k7,{prefixCls:n,locale:i,editable:m}))}),vde=f.memo(gde,(e,t)=>t.tabMoving),bde=e=>{const{prefixCls:t,id:n,active:r,focus:o,tab:{key:i,label:a,disabled:l,closeIcon:u,icon:d},closable:m,renderWrapper:p,removeAriaLabel:g,editable:b,onClick:y,onFocus:S,onBlur:C,onKeyDown:w,onMouseDown:$,onMouseUp:E,style:T,className:R,tabCount:I,currentPosition:N}=e,P=`${t}-tab`,O=QR(m,u,b,l);function _(F){l||y(F);}function L(F){F.preventDefault(),F.stopPropagation(),b.onEdit("remove",{key:i,event:F});}const k=f.useMemo(()=>d&&typeof a=="string"?f.createElement("span",null,a):a,[a,d]),W=f.useRef(null);f.useEffect(()=>{o&&W.current&&W.current.focus();},[o]);const q=f.createElement("div",{key:i,"data-node-key":z7(i),className:X(P,R,{[`${P}-with-remove`]:O,[`${P}-active`]:r,[`${P}-disabled`]:l,[`${P}-focus`]:o}),style:T,onClick:_},f.createElement("div",{ref:W,role:"tab","aria-selected":r,id:n&&`${n}-tab-${i}`,className:`${P}-btn`,"aria-controls":n&&`${n}-panel-${i}`,"aria-disabled":l,tabIndex:l?null:r?0:-1,onClick:F=>{F.stopPropagation(),_(F);},onKeyDown:w,onMouseDown:$,onMouseUp:E,onFocus:S,onBlur:C},o&&f.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${N} of ${I}`),d&&f.createElement("span",{className:`${P}-icon`},d),a&&k),O&&f.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:r?0:-1,className:`${P}-remove`,onClick:F=>{F.stopPropagation(),L(F);}},u||b.removeIcon||"×"));return p?p(q):q};function jE(){return jE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},jE.apply(this,arguments)}const yde=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:i}=e,{width:a,height:l,left:u,top:d}=e.getBoundingClientRect();return Math.abs(a-n)<1?[a,l,u-t.left,d-t.top]:[n,r,i,o]},Dd=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:o}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return [r,o]}return [t,n]},db=(e,t)=>e[t?0:1],v8=f.forwardRef((e,t)=>{const{className:n,style:r,id:o,animated:i,activeKey:a,rtl:l,extra:u,editable:d,locale:m,tabPosition:p,tabBarGutter:g,children:b,onTabClick:y,onTabScroll:S,indicator:C,classNames:w,styles:$}=e,{prefixCls:E,tabs:T}=f.useContext(XR),R=f.useRef(null),I=f.useRef(null),N=f.useRef(null),P=f.useRef(null),O=f.useRef(null),_=f.useRef(null),L=f.useRef(null),k=p==="top"||p==="bottom",[W,q]=d8(0,(he,De)=>{k&&S&&S({direction:he>De?"left":"right"});}),[F,z]=d8(0,(he,De)=>{!k&&S&&S({direction:he>De?"top":"bottom"});}),[j,U]=f.useState([0,0]),[Y,Q]=f.useState([0,0]),[D,B]=f.useState([0,0]),[K,J]=f.useState([0,0]),[ee,te]=mde(new Map),re=ude(T,ee,Y[0]),ie=db(j,k),ue=db(Y,k),ne=db(D,k),ce=db(K,k),fe=Math.floor(ie)<Math.floor(ue+ne),se=fe?ie-ce:ie-ne,Me=`${E}-nav-operations-hidden`;let ae=0,pe=0;k&&l?(ae=0,pe=Math.max(0,ue-se)):(ae=Math.min(0,se-ue),pe=0);function be(he){return he<ae?ae:he>pe?pe:he}const xe=f.useRef(null),[Te,Ke]=f.useState();function Ae(){Ke(Date.now());}function de(){xe.current&&clearTimeout(xe.current);}fde(P,(he,De)=>{function we(ze,Ye){ze(it=>be(it+Ye));}return fe?(k?we(q,he):we(z,De),de(),Ae(),true):false}),f.useEffect(()=>(de(),Te&&(xe.current=setTimeout(()=>{Ke(0);},100)),de),[Te]);const[ve,Ne]=hde(re,se,k?W:F,ue,ne,ce,{...e,tabs:T}),He=Mt((he=a)=>{const De=re.get(he)||{width:0,height:0,left:0,right:0,top:0};if(k){let we=W;l?De.right<W?we=De.right:De.right+De.width>W+se&&(we=De.right+De.width-se):De.left<-W?we=-De.left:De.left+De.width>-W+se&&(we=-(De.left+De.width-se)),z(0),q(be(we));}else {let we=F;De.top<-F?we=-De.top:De.top+De.height>-F+se&&(we=-(De.top+De.height-se)),q(0),z(be(we));}}),[We,je]=f.useState(),[nt,ot]=f.useState(false),Ge=T.filter(he=>!he.disabled).map(he=>he.key),Oe=he=>{const De=Ge.indexOf(We||a),we=Ge.length,ze=(De+he+we)%we,Ye=Ge[ze];je(Ye);},qe=(he,De)=>{const we=Ge.indexOf(he),ze=T.find(it=>it.key===he);QR(ze?.closable,ze?.closeIcon,d,ze?.disabled)&&(De.preventDefault(),De.stopPropagation(),d.onEdit("remove",{key:he,event:De}),we===Ge.length-1?Oe(-1):Oe(1));},Je=(he,De)=>{ot(true),De.button===1&&qe(he,De);},Le=he=>{const{code:De}=he,we=l&&k,ze=Ge[0],Ye=Ge[Ge.length-1];switch(De){case "ArrowLeft":{k&&Oe(we?1:-1);break}case "ArrowRight":{k&&Oe(we?-1:1);break}case "ArrowUp":{he.preventDefault(),k||Oe(-1);break}case "ArrowDown":{he.preventDefault(),k||Oe(1);break}case "Home":{he.preventDefault(),je(ze);break}case "End":{he.preventDefault(),je(Ye);break}case "Enter":case "Space":{he.preventDefault(),y(We??a,he);break}case "Backspace":case "Delete":{qe(We,he);break}}},Ie={};k?Ie.marginInlineStart=g:Ie.marginTop=g;const ct=T.map((he,De)=>{const{key:we}=he;return f.createElement(bde,{id:o,prefixCls:E,key:we,tab:he,className:w?.item,style:De===0?$?.item:{...Ie,...$?.item},closable:he.closable,editable:d,active:we===a,focus:we===We,renderWrapper:b,removeAriaLabel:m?.removeAriaLabel,tabCount:Ge.length,currentPosition:De+1,onClick:ze=>{y(we,ze);},onKeyDown:Le,onFocus:()=>{nt||je(we),He(we),Ae(),P.current&&(l||(P.current.scrollLeft=0),P.current.scrollTop=0);},onBlur:()=>{je(void 0);},onMouseDown:ze=>Je(we,ze),onMouseUp:()=>{ot(false);}})}),Ot=()=>te(()=>{const he=new Map,De=O.current?.getBoundingClientRect();return T.forEach(({key:we})=>{const ze=O.current?.querySelector(`[data-node-key="${z7(we)}"]`);if(ze){const[Ye,it,dt,$t]=yde(ze,De);he.set(we,{width:Ye,height:it,left:dt,top:$t});}}),he});f.useEffect(()=>{Ot();},[T.map(he=>he.key).join("_")]);const pt=B7(()=>{const he=Dd(R),De=Dd(I),we=Dd(N);U([he[0]-De[0]-we[0],he[1]-De[1]-we[1]]);const ze=Dd(L);B(ze);const Ye=Dd(_);J(Ye);const it=Dd(O);Q([it[0]-ze[0],it[1]-ze[1]]),Ot();}),Lt=T.slice(0,ve),xt=T.slice(Ne+1),Rt=[...Lt,...xt],ut=re.get(a),{style:ft}=cde({activeTabOffset:ut,horizontal:k,indicator:C,rtl:l});f.useEffect(()=>{He();},[a,ae,pe,p8(ut),p8(re),k]),f.useEffect(()=>{pt();},[l]);const vt=!!Rt.length,ke=`${E}-nav-wrap`;let Ze,Se,ye,Ce;return k?l?(Se=W>0,Ze=W!==pe):(Ze=W<0,Se=W!==ae):(ye=F<0,Ce=F!==ae),f.createElement(ma,{onResize:pt},f.createElement("div",{ref:Bs(t,R),role:"tablist","aria-orientation":k?"horizontal":"vertical",className:X(`${E}-nav`,n,w?.header),style:{...$?.header,...r},onKeyDown:()=>{Ae();}},f.createElement(g8,{ref:I,position:"left",extra:u,prefixCls:E}),f.createElement(ma,{onResize:pt},f.createElement("div",{className:X(ke,{[`${ke}-ping-left`]:Ze,[`${ke}-ping-right`]:Se,[`${ke}-ping-top`]:ye,[`${ke}-ping-bottom`]:Ce}),ref:P},f.createElement(ma,{onResize:pt},f.createElement("div",{ref:O,className:`${E}-nav-list`,style:{transform:`translate(${W}px, ${F}px)`,transition:Te?"none":void 0}},ct,f.createElement(k7,{ref:L,prefixCls:E,locale:m,editable:d,style:{...ct.length===0?void 0:Ie,visibility:vt?"hidden":null}}),f.createElement("div",{className:X(`${E}-ink-bar`,w?.indicator,{[`${E}-ink-bar-animated`]:i.inkBar}),style:{...ft,...$?.indicator}}))))),f.createElement(vde,jE({},e,{removeAriaLabel:m?.removeAriaLabel,ref:_,prefixCls:E,tabs:Rt,className:!vt&&Me,popupStyle:$?.popup,tabMoving:!!Te})),f.createElement(g8,{ref:N,position:"right",extra:u,prefixCls:E})))}),Sde=({renderTabBar:e,...t})=>e?e(t,v8):f.createElement(v8,t),Cde=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,id:i,active:a,tabKey:l,children:u}=e,d=f.Children.count(u)>0;return f.createElement("div",{id:i&&`${i}-panel-${l}`,role:"tabpanel",tabIndex:a&&d?0:-1,"aria-labelledby":i&&`${i}-tab-${l}`,"aria-hidden":!a,style:o,className:X(n,a&&`${n}-active`,r),ref:t},u)});function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Z0.apply(this,arguments)}const xde=e=>{const{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:i,contentStyle:a,contentClassName:l}=e,{prefixCls:u,tabs:d}=f.useContext(XR),m=r.tabPane,p=`${u}-tabpane`;return f.createElement("div",{className:X(`${u}-content-holder`)},f.createElement("div",{className:X(`${u}-content`,`${u}-content-${o}`,{[`${u}-content-animated`]:m})},d.map(g=>{const{key:b,forceRender:y,style:S,className:C,destroyOnHidden:w,...$}=g,E=b===n;return f.createElement(wo,Z0({key:b,visible:E,forceRender:y,removeOnLeave:!!(i??w),leavedClassName:`${p}-hidden`},r.tabPaneMotion),({style:T,className:R},I)=>f.createElement(Cde,Z0({},$,{prefixCls:p,id:t,tabKey:b,animated:m,active:E,style:{...a,...S,...T},className:X(l,C,R),ref:I})))})))};function wde(e={inkBar:true,tabPane:false}){let t;return e===false?t={inkBar:false,tabPane:false}:e===true?t={inkBar:true,tabPane:false}:t={inkBar:true,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=true),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=false),t}function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Hh.apply(this,arguments)}let b8=0;const $de=f.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:o,items:i,direction:a,activeKey:l,defaultActiveKey:u,editable:d,animated:m,tabPosition:p="top",tabBarGutter:g,tabBarStyle:b,tabBarExtraContent:y,locale:S,more:C,destroyOnHidden:w,renderTabBar:$,onChange:E,onTabClick:T,onTabScroll:R,getPopupContainer:I,popupClassName:N,indicator:P,classNames:O,styles:_,...L}=e,k=f.useMemo(()=>(i||[]).filter(re=>re&&typeof re=="object"&&"key"in re),[i]),W=a==="rtl",q=wde(m),[F,z]=f.useState(false);f.useEffect(()=>{z(lde());},[]);const[j,U]=un(u??k[0]?.key,l),[Y,Q]=f.useState(()=>k.findIndex(re=>re.key===j));f.useEffect(()=>{let re=k.findIndex(ie=>ie.key===j);re===-1&&(re=Math.max(0,Math.min(Y,k.length-1)),U(k[re]?.key)),Q(re);},[k.map(re=>re.key).join("_"),j,Y]);const[D,B]=un(null,n);f.useEffect(()=>{n||(B(`rc-tabs-${b8}`),b8+=1);},[]);function K(re,ie){T?.(re,ie);const ue=re!==j;U(re),ue&&E?.(re);}const J={id:D,activeKey:j,animated:q,tabPosition:p,rtl:W,mobile:F},ee={...J,editable:d,locale:S,more:C,tabBarGutter:g,onTabClick:K,onTabScroll:R,extra:y,style:b,getPopupContainer:I,popupClassName:X(N,O?.popup),indicator:P,styles:_,classNames:O},te=f.useMemo(()=>({tabs:k,prefixCls:r}),[k,r]);return f.createElement(XR.Provider,{value:te},f.createElement("div",Hh({ref:t,id:n,className:X(r,`${r}-${p}`,{[`${r}-mobile`]:F,[`${r}-editable`]:d,[`${r}-rtl`]:W},o)},L),f.createElement(Sde,Hh({},ee,{renderTabBar:$})),f.createElement(xde,Hh({destroyOnHidden:w},J,{contentStyle:_?.content,contentClassName:O?.content,animated:q}))))}),Ede={motionAppear:false,motionEnter:true,motionLeave:true};function Mde(e,t={inkBar:true,tabPane:false}){let n;return t===false?n={inkBar:false,tabPane:false}:t===true?n={inkBar:true,tabPane:true}:n={inkBar:true,...typeof t=="object"?t:{}},n.tabPane&&(n.tabPaneMotion={...Ede,motionName:Vl(e,"switch")}),n}function Rde(e){return e.filter(t=>t)}function Tde(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=Zo(t).map(r=>{if(f.isValidElement(r)){const{key:o,props:i}=r,{tab:a,...l}=i||{};return {key:String(o),...l,label:a}}return null});return Rde(n)}const Ade=e=>{const{componentCls:t,motionDurationSlow:n}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[jl(e,"slide-up"),jl(e,"slide-down")]]},Nde=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${oe(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ba(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:true,value:oe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:oe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${oe(e.borderRadiusLG)} 0 0 ${oe(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:true,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:true,value:e.colorBgContainer}}}}}}},Pde=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:{...dn(e),position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${oe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:true,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Ga,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${oe(e.paddingXXS)} ${oe(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:true,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},Ide=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,motionDurationSlow:l,calc:u}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(d=>`${d} ${l}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:true,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:true,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:u(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(d=>`${d} ${l}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:true,value:oe(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:true,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:true,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:true,value:u(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:true,value:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:true,value:e.paddingLG}}}}}},Ode=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadius)} ${oe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${oe(e.borderRadius)} ${oe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${oe(e.borderRadius)} ${oe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${oe(e.borderRadius)} 0 0 ${oe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},Dde=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:u}=e,d=`${t}-tab`;return {[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:u,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:true,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:true,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Ei(e)},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l},[`&${d}-focus ${d}-btn:focus-visible`]:ba(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:true,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:true,value:i}}}},_de=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:true,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:true,value:0}},[r]:{marginRight:{_skip_check_:true,value:0},marginLeft:{_skip_check_:true,value:oe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:true,value:oe(e.marginXS)},marginLeft:{_skip_check_:true,value:oe(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:true,value:o},marginLeft:{_skip_check_:true,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:true,value:"right"}}}}},Lde=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return {[t]:{...dn(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:true,value:0},bottom:0,left:{_skip_check_:true,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:true,value:o},background:"transparent",border:`${oe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a},...Ei(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Dde(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Ei(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Bde=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,u=r||i+8;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:u,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(u-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},zde=qt("Tabs",e=>{const t=Ft(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${oe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${oe(e.horizontalItemGutter)}`});return [Ode(t),_de(t),Ide(t),Pde(t),Nde(t),Lde(t),Ade(t)]},Bde),kde=()=>null,Fde=f.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:o,size:i,onEdit:a,hideAdd:l,centered:u,addIcon:d,removeIcon:m,moreIcon:p,more:g,popupClassName:b,children:y,items:S,animated:C,style:w,indicatorSize:$,indicator:E,classNames:T,styles:R,destroyInactiveTabPane:I,destroyOnHidden:N,tabPlacement:P,tabPosition:O,..._}=e,{prefixCls:L}=_,{getPrefixCls:k,direction:W,getPopupContainer:q,className:F,style:z,classNames:j,styles:U}=jt("tabs"),{tabs:Y}=f.useContext(wt),Q=k("tabs",L),D=Qn(Q),[B,K]=zde(Q,D),J=f.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:J.current}));let ee;n==="editable-card"&&(ee={onEdit:(ae,{key:pe,event:be})=>{a?.(ae==="add"?be:pe,ae);},removeIcon:m??Y?.removeIcon??f.createElement(zs,null),addIcon:(d??Y?.addIcon)||f.createElement(L7,null),showAdd:l!==true});const te=k(),re=lo(i),ie=Tde(S,y),ue=Mde(Q,C),ne={align:E?.align??Y?.indicator?.align,size:E?.size??$??Y?.indicator?.size??Y?.indicatorSize},ce=f.useMemo(()=>{const ae=P??O??void 0,pe=W==="rtl";switch(ae){case "start":return pe?"right":"left";case "end":return pe?"left":"right";default:return ae}},[P,O,W]),fe={...e,size:re,tabPlacement:ce,items:ie},[se,Me]=Kt([j,T],[U,R],{props:fe},{popup:{_default:"root"}});return f.createElement($de,{ref:J,direction:W,getPopupContainer:q,..._,items:ie,className:X({[`${Q}-${re}`]:re,[`${Q}-card`]:["card","editable-card"].includes(n),[`${Q}-editable-card`]:n==="editable-card",[`${Q}-centered`]:u},F,r,o,se.root,B,K,D),classNames:{...se,popup:X(b,B,K,D,se.popup?.root)},styles:Me,style:{...Me.root,...z,...w},editable:ee,more:{icon:Y?.more?.icon??Y?.moreIcon??p??f.createElement(qR,null),transitionName:`${te}-slide-up`,...g},prefixCls:Q,animated:ue,indicator:ne,destroyOnHidden:N??I,tabPosition:ce})}),ZR=Fde;ZR.TabPane=kde;function Hde(e,t){if(e==null)return {};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r];}return n}function F7(e,t){if(e==null)return {};var n,r,o=Hde(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);}return o}function Vde(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?false:o,a=r.noLeading,l=a===void 0?false:a,u=r.debounceMode,d=u===void 0?void 0:u,m,p=false,g=0;function b(){m&&clearTimeout(m);}function y(C){var w=C||{},$=w.upcomingOnly,E=$===void 0?false:$;b(),p=!E;}function S(){for(var C=arguments.length,w=new Array(C),$=0;$<C;$++)w[$]=arguments[$];var E=this,T=Date.now()-g;if(p)return;function R(){g=Date.now(),t.apply(E,w);}function I(){m=void 0;}!l&&d&&!m&&R(),b(),d===void 0&&T>e?l?(g=Date.now(),i||(m=setTimeout(d?I:R,e))):R():i!==true&&(m=setTimeout(d?I:R,d===void 0?e-T:e));}return S.cancel=y,S}function jde(e,t,n){var r={},o=r.atBegin,i=o===void 0?false:o;return Vde(e,t,{debounceMode:i!==false})}const Ude=e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,o=`${t}-wrapper`;return [{[`${t}-group`]:{...dn(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...dn(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...dn(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${oe(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,...Ts(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${oe(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}`,...Ts()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:ba(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
        ${o}:not(${o}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[`${t}-checked`]:{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}`,...Ts()},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{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":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function Wde(e,t){const n=Ft(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return Ude(n)}const H7=qt("Checkbox",(e,{prefixCls:t})=>[Wde(t,e)]),V7=G.createContext(null),qde=(e,t)=>{const{prefixCls:n,children:r,indeterminate:o=false,onMouseEnter:i,onMouseLeave:a,skipGroup:l=false,disabled:u,rootClassName:d,className:m,style:p,classNames:g,styles:b,name:y,value:S,checked:C,defaultChecked:w,onChange:$,...E}=e,{getPrefixCls:T,direction:R,className:I,style:N,classNames:P,styles:O}=jt("checkbox"),_=f.useContext(V7),{isFormItemInput:L}=f.useContext(xo),k=f.useContext(ro),W=(_?.disabled||u)??k,[q,F]=un(w,C);let z=q;const j=Mt(fe=>{F(fe.target.checked),$?.(fe),!l&&_?.toggleOption&&_.toggleOption({label:r,value:S});});_&&!l&&(z=_.value.includes(S));const U=f.useRef(null),Y=Bs(t,U);f.useEffect(()=>{if(!(l||!_))return _.registerValue(S),()=>{_.cancelValue(S);}},[S,l]),f.useEffect(()=>{U.current?.input&&(U.current.input.indeterminate=o);},[o]);const Q=T("checkbox",n),D=Qn(Q),[B,K]=H7(Q,D),J={...E},ee={...e,indeterminate:o,disabled:W,checked:z},[te,re]=Kt([P,g],[O,b],{props:ee}),ie=X(`${Q}-wrapper`,{[`${Q}-rtl`]:R==="rtl",[`${Q}-wrapper-checked`]:z,[`${Q}-wrapper-disabled`]:W,[`${Q}-wrapper-in-form-item`]:L},I,m,te.root,d,K,D,B),ue=X(te.icon,{[`${Q}-indeterminate`]:o},r1,B),[ne,ce]=E7(J.onClick);return f.createElement(eg,{component:"Checkbox",disabled:W},f.createElement("label",{className:ie,style:{...re.root,...N,...p},onMouseEnter:i,onMouseLeave:a,onClick:ne},f.createElement($7,{...J,name:!l&&_?_.name:y,checked:z,onClick:ce,onChange:j,prefixCls:Q,className:ue,style:re.icon,disabled:W,ref:Y,value:S}),Pr(r)&&f.createElement("span",{className:X(`${Q}-label`,te.label),style:re.label},r)))},j7=f.forwardRef(qde),Gde=f.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:u,onChange:d,role:m="group",...p}=e,{getPrefixCls:g,direction:b}=f.useContext(wt),[y,S]=f.useState(p.value||n||[]),[C,w]=f.useState([]);f.useEffect(()=>{"value"in p&&S(p.value||[]);},[p.value]);const $=f.useMemo(()=>o.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[o]),E=F=>{w(z=>z.filter(j=>j!==F));},T=F=>{w(z=>[].concat(Zt(z),[F]));},R=F=>{const z=y.indexOf(F.value),j=Zt(y);z===-1?j.push(F.value):j.splice(z,1),"value"in p||S(j),d?.(j.filter(U=>C.includes(U)).sort((U,Y)=>{const Q=$.findIndex(B=>B.value===U),D=$.findIndex(B=>B.value===Y);return Q-D}));},I=g("checkbox",i),N=`${I}-group`,P=Qn(I),[O,_]=H7(I,P),L=zn(p,["value","disabled"]),k=o.length?$.map(F=>f.createElement(j7,{prefixCls:I,key:F.value.toString(),disabled:"disabled"in F?F.disabled:p.disabled,value:F.value,checked:y.includes(F.value),onChange:F.onChange,className:X(`${N}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):r,W=f.useMemo(()=>({toggleOption:R,value:y,disabled:p.disabled,name:p.name,registerValue:T,cancelValue:E}),[R,y,p.disabled,p.name,T,E]),q=X(N,{[`${N}-rtl`]:b==="rtl"},a,l,_,P,O);return f.createElement("div",{className:q,style:u,role:m,...L,ref:t},f.createElement(V7.Provider,{value:W},k))}),Ki=j7;Ki.Group=Gde;Ki.__ANT_CHECKBOX=true;const Kde=e=>{const{componentCls:t}=e;return {[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Yde=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e,u=`${t}-rail`;return {[t]:{...dn(e),borderBlockStart:`${oe(o)} solid ${r}`,[u]:{borderBlockStart:`${oe(o)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${oe(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${oe(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${oe(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${u}-start, ${u}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${u}-start`]:{width:`calc(${a} * 100%)`},[`${u}-end`]:{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${u}-start`]:{width:`calc(100% - ${a} * 100%)`},[`${u}-end`]:{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${oe(o)} 0 0`,[u]:{borderBlockStart:`${oe(o)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${u}-start, ${u}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${oe(o)} 0 0`,[u]:{borderBlockStart:`${oe(o)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${u}-start`]:{width:0},[`${u}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${u}-start`]:{width:"100%"},[`${u}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},Xde=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Qde=qt("Divider",e=>{const t=Ft(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return [Yde(t),Kde(t)]},Xde,{unitless:{orientationMargin:true}}),Zde=["left","right","center","start","end"],Jde={small:"sm",middle:"md"},ql=e=>{const{getPrefixCls:t,direction:n,className:r,style:o,classNames:i,styles:a}=jt("divider"),{prefixCls:l,type:u,orientation:d,vertical:m,titlePlacement:p,orientationMargin:g,className:b,rootClassName:y,children:S,dashed:C,variant:w="solid",plain:$,style:E,size:T,classNames:R,styles:I,...N}=e,P=t("divider",l),O=`${P}-rail`,[_,L]=Qde(P),k=lo(T),W=Jde[k],q=!!S,F=Zde.includes(d||""),z=f.useMemo(()=>{const re=p??(F?d:"center");return re==="left"?n==="rtl"?"end":"start":re==="right"?n==="rtl"?"start":"end":re},[n,d,p,F]),j=z==="start"&&g!=null,U=z==="end"&&g!=null,[Y,Q]=Nu(d,m,u),D={...e,orientation:Y,titlePlacement:z,size:k},[B,K]=Kt([i,R],[a,I],{props:D}),J=X(P,r,_,L,`${P}-${Y}`,{[`${P}-with-text`]:q,[`${P}-with-text-${z}`]:q,[`${P}-dashed`]:!!C,[`${P}-${w}`]:w!=="solid",[`${P}-plain`]:!!$,[`${P}-rtl`]:n==="rtl",[`${P}-no-default-orientation-margin-start`]:j,[`${P}-no-default-orientation-margin-end`]:U,[`${P}-${W}`]:!!W,[O]:!S,[B.rail]:B.rail&&!S},b,y,B.root),ee=f.useMemo(()=>typeof g=="number"?g:/^\d+$/.test(g)?Number(g):g,[g]),te={marginInlineStart:j?ee:void 0,marginInlineEnd:U?ee:void 0};return f.createElement("div",{className:J,style:{...o,...K.root,...S?{}:K.rail,...E},...N,role:"separator"},S&&!Q&&f.createElement(f.Fragment,null,f.createElement("div",{className:X(O,`${O}-start`,B.rail),style:K.rail}),f.createElement("span",{className:X(`${P}-inner-text`,B.content),style:{...te,...K.content}},S),f.createElement("div",{className:X(O,`${O}-end`,B.rail),style:K.rail})))},y8=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},Ia=e=>e!==void 0?`${e}px`:void 0;function efe(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:o,motionName:i,onMotionStart:a,onMotionEnd:l,direction:u,vertical:d=false}=e,m=f.useRef(null),[p,g]=f.useState(r),b=N=>{const P=o(N),O=n.current?.querySelectorAll(`.${t}-item`)[P];return O?.offsetParent&&O},[y,S]=f.useState(null),[C,w]=f.useState(null);An(()=>{if(p!==r){const N=b(p),P=b(r),O=y8(N,d),_=y8(P,d);g(r),S(O),w(_),N&&P?a():l();}},[r]);const $=f.useMemo(()=>Ia(d?y?.top??0:u==="rtl"?-y?.right:y?.left),[d,u,y]),E=f.useMemo(()=>Ia(d?C?.top??0:u==="rtl"?-C?.right:C?.left),[d,u,C]),T=()=>d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},R=()=>d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},I=()=>{S(null),w(null),l();};return !y||!C?null:f.createElement(wo,{visible:true,motionName:i,motionAppear:true,onAppearStart:T,onAppearActive:R,onVisibleChanged:I},({className:N,style:P},O)=>{const _={...P,"--thumb-start-left":$,"--thumb-start-width":Ia(y?.width),"--thumb-active-left":E,"--thumb-active-width":Ia(C?.width),"--thumb-start-top":$,"--thumb-start-height":Ia(y?.height),"--thumb-active-top":E,"--thumb-active-height":Ia(C?.height)},L={ref:Ur(m,O),style:_,className:X(`${t}-thumb`,N)};return f.createElement("div",L)})}function tfe(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function nfe(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=tfe(t);return {...t,title:n}}return {label:t?.toString(),title:t?.toString(),value:t}})}const rfe=({prefixCls:e,className:t,style:n,styles:r,classNames:o,data:i,disabled:a,checked:l,label:u,title:d,value:m,name:p,onChange:g,onFocus:b,onBlur:y,onKeyDown:S,onKeyUp:C,onMouseDown:w,itemRender:$=E=>E})=>{const E=R=>{a||g(R,m);},T=f.createElement("label",{className:X(t,{[`${e}-item-disabled`]:a}),style:n,onMouseDown:w},f.createElement("input",{name:p,className:`${e}-item-input`,type:"radio",disabled:a,checked:l,onChange:E,onFocus:b,onBlur:y,onKeyDown:S,onKeyUp:C}),f.createElement("div",{className:X(`${e}-item-label`,o?.label),title:d,style:r?.label},u));return $(T,{item:i})},ofe=f.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:o,options:i=[],disabled:a,defaultValue:l,value:u,name:d,onChange:m,className:p="",style:g,styles:b,classNames:y,motionName:S="thumb-motion",itemRender:C,...w}=e,$=f.useRef(null),E=f.useMemo(()=>Ur($,t),[$,t]),T=f.useMemo(()=>nfe(i),[i]),[R,I]=un(l??T[0]?.value,u),[N,P]=f.useState(false),O=(B,K)=>{I(K),m?.(K);},_=zn(w,["children"]),[L,k]=f.useState(false),[W,q]=f.useState(false),F=()=>{q(true);},z=()=>{q(false);},j=()=>{k(false);},U=B=>{B.key==="Tab"&&k(true);},Y=B=>{const K=T.findIndex(re=>re.value===R),J=T.length,ee=(K+B+J)%J,te=T[ee];te&&(I(te.value),m?.(te.value));},Q=B=>{switch(B.key){case "ArrowLeft":case "ArrowUp":Y(-1);break;case "ArrowRight":case "ArrowDown":Y(1);break}},D=B=>{const{value:K,disabled:J}=B;return f.createElement(rfe,cr({},B,{name:d,data:B,itemRender:C,key:K,prefixCls:n,className:X(B.className,`${n}-item`,y?.item,{[`${n}-item-selected`]:K===R&&!N,[`${n}-item-focused`]:W&&L&&K===R}),style:b?.item,classNames:y,styles:b,checked:K===R,onChange:O,onFocus:F,onBlur:z,onKeyDown:Q,onKeyUp:U,onMouseDown:j,disabled:!!a||!!J}))};return f.createElement("div",cr({role:"radiogroup","aria-label":"segmented control",tabIndex:a?void 0:0,"aria-orientation":o?"vertical":"horizontal",style:g},_,{className:X(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:a,[`${n}-vertical`]:o},p),ref:E}),f.createElement("div",{className:`${n}-group`},f.createElement(efe,{vertical:o,prefixCls:n,value:R,containerRef:$,motionName:`${n}-${S}`,direction:r,getValueIndex:B=>T.findIndex(K=>K.value===B),onMotionStart:()=>{P(true);},onMotionEnd:()=>{P(false);}}),T.map(D)))}),ife=ofe;function S8(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const C8=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),afe={overflow:"hidden",...Ga},sfe=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return {[t]:{...dn(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...Ei(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${oe(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...C8(e),color:e.itemSelectedColor},"&-focused":ba(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(u=>`${u} ${o}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:i,lineHeight:oe(i),padding:`0 ${oe(e.segmentedPaddingHorizontal)}`,...afe},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...C8(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${oe(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:a,lineHeight:oe(a),padding:`0 ${oe(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:oe(l),padding:`0 ${oe(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...S8(`&-disabled ${t}-item`,e),...S8(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(u=>`${u} ${n} ${r}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},lfe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return {trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}},cfe=qt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Ft(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return sfe(r)},lfe);function ufe(e){return typeof e=="object"&&!!e?.icon}const dfe=f.forwardRef((e,t)=>{const n=ks(),{prefixCls:r,className:o,rootClassName:i,block:a,options:l=[],size:u="middle",style:d,vertical:m,orientation:p,shape:g="default",name:b=n,styles:y,classNames:S,...C}=e,{getPrefixCls:w,direction:$,className:E,style:T,classNames:R,styles:I}=jt("segmented"),N={...e,options:l,size:u,shape:g},[P,O]=Kt([R,S],[I,y],{props:N}),_=w("segmented",r),[L,k]=cfe(_),W=lo(u),q=f.useMemo(()=>l.map(Y=>{if(ufe(Y)){const{icon:Q,label:D,...B}=Y;return {...B,label:f.createElement(f.Fragment,null,f.createElement("span",{className:X(`${_}-item-icon`,P.icon),style:O.icon},Q),D&&f.createElement("span",null,D))}}return Y}),[l,_,P.icon,O.icon]),[,F]=Nu(p,m),z=X(o,i,E,P.root,{[`${_}-block`]:a,[`${_}-sm`]:W==="small",[`${_}-lg`]:W==="large",[`${_}-vertical`]:F,[`${_}-shape-${g}`]:g==="round"},L,k),j={...O.root,...T,...d},U=(Y,{item:Q})=>{if(!Q.tooltip)return Y;const D=typeof Q.tooltip=="object"?Q.tooltip:{title:Q.tooltip};return f.createElement(rc,{...D},Y)};return f.createElement(ife,{...C,name:b,className:z,style:j,classNames:P,styles:O,itemRender:U,options:q,ref:t,prefixCls:_,direction:$,vertical:F})}),JR=dfe,U7=G.createContext({}),W7=G.createContext({}),q7=({prefixCls:e,value:t,onChange:n,className:r,style:o})=>{const i=()=>{if(n&&t&&!t.cleared){const a=t.toHsb();a.a=0;const l=oo(a);l.cleared=true,n(l);}};return G.createElement("div",{className:X(`${e}-clear`,r),style:o,onClick:i})},G7="hex",K7="rgb",Y7="hsb";var ffe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},UE.apply(this,arguments)}const mfe=(e,t)=>f.createElement(Xn,UE({},e,{ref:t,icon:ffe})),hfe=f.forwardRef(mfe);var pfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function WE(){return WE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},WE.apply(this,arguments)}const gfe=(e,t)=>f.createElement(Xn,WE({},e,{ref:t,icon:pfe})),vfe=f.forwardRef(gfe);function qE(){return typeof BigInt=="function"}function X7(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ru(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=false);var l=n?"-":"";return {negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function eT(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Yc(e){var t=String(e);if(eT(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&tT(t)?t.length-t.indexOf(".")-1:0}function v1(e){var t=String(e);if(eT(e)){if(e>Number.MAX_SAFE_INTEGER)return String(qE()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(qE()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Yc(t));}return ru(t).fullStr}function tT(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):false}var bfe=(function(){function e(t){if(Xi(this,e),Ct(this,"origin",""),Ct(this,"negative",void 0),Ct(this,"integer",void 0),Ct(this,"decimal",void 0),Ct(this,"decimalLen",void 0),Ct(this,"empty",void 0),Ct(this,"nan",void 0),X7(t)){this.empty=true;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=true;return}var n=t;if(eT(n)&&(n=Number(n)),n=typeof n=="string"?n:v1(n),tT(n)){var r=ru(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=true;}return Qi(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),a=this.alignDecimal(i),l=n.alignDecimal(i),u=r(a,l).toString(),d=o(i),m=ru(u),p=m.negativeStr,g=m.trimStr,b="".concat(p).concat(g.padStart(d+1,"0"));return new e("".concat(b.slice(0,-d),".").concat(b.slice(-d)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,i){return o+i},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,i){return o*i},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===n?.toString()}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:true;return n?this.isInvalidate()?"":ru("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),yfe=(function(){function e(t){if(Xi(this,e),Ct(this,"origin",""),Ct(this,"number",void 0),Ct(this,"empty",void 0),X7(t)){this.empty=true;return}this.origin=String(t),this.number=Number(t);}return Qi(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Yc(this.number),Yc(r));return new e(o.toFixed(i))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Yc(this.number),Yc(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===n?.toNumber()}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:true;return n?this.isInvalidate()?"":v1(this.number):this.origin}}]),e})();function oa(e){return qE()?new bfe(e):new yfe(e)}function Qb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;if(e==="")return "";var o=ru(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,u="".concat(t).concat(l),d="".concat(i).concat(a);if(n>=0){var m=Number(l[n]);if(m>=5&&!r){var p=oa(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-m));return Qb(p.toString(),t,n,r)}return n===0?d:"".concat(d).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return u===".0"?d:"".concat(d).concat(u)}function Sfe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function Cfe(e,t){const n=f.useRef(null);function r(){try{const{selectionStart:i,selectionEnd:a,value:l}=e,u=l.substring(0,i),d=l.substring(a);n.current={start:i,end:a,value:l,beforeTxt:u,afterTxt:d};}catch{}}function o(){if(e&&n.current&&t)try{const{value:i}=e,{beforeTxt:a,afterTxt:l,start:u}=n.current;let d=i.length;if(i.startsWith(a))d=a.length;else if(i.endsWith(l))d=i.length-n.current.afterTxt.length;else {const m=a[u-1],p=i.indexOf(m,u-1);p!==-1&&(d=p+1);}e.setSelectionRange(d,d);}catch(i){Er(false,`Something warning of cursor restore. Please fire issue about this: ${i.message}`);}}return [r,o]}const xfe=200,wfe=600;function x8({prefixCls:e,action:t,children:n,disabled:r,className:o,style:i,onStep:a}){const l=t==="up",u=f.useRef(),d=f.useRef([]),m=()=>{clearTimeout(u.current);},p=S=>{S.preventDefault(),m(),a(l,"handler");function C(){a(l,"handler"),u.current=setTimeout(C,xfe);}u.current=setTimeout(C,wfe);};f.useEffect(()=>()=>{m(),d.current.forEach(S=>{Bt.cancel(S);});},[]);const g=`${e}-action`,b=X(g,`${g}-${t}`,{[`${g}-${t}-disabled`]:r},o),y=()=>d.current.push(Bt(m));return f.createElement("span",{unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y,onMouseDown:S=>{p(S);},"aria-label":l?"Increase Value":"Decrease Value","aria-disabled":r,className:b,style:i},n||f.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function w8(e){const t=typeof e=="number"?v1(e):ru(e).fullStr;return t.includes(".")?ru(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const $fe=(()=>{const e=f.useRef(0),t=()=>{Bt.cancel(e.current);};return f.useEffect(()=>t,[]),n=>{t(),e.current=Bt(()=>{n();});}});function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Vh.apply(this,arguments)}const $8=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),E8=e=>{const t=oa(e);return t.isInvalidate()?null:t},Efe=f.forwardRef((e,t)=>{const{mode:n="input",prefixCls:r="rc-input-number",className:o,style:i,classNames:a,styles:l,min:u,max:d,step:m=1,defaultValue:p,value:g,disabled:b,readOnly:y,upHandler:S,downHandler:C,keyboard:w,changeOnWheel:$=false,controls:E=true,prefix:T,suffix:R,stringMode:I,parser:N,formatter:P,precision:O,decimalSeparator:_,onChange:L,onInput:k,onPressEnter:W,onStep:q,onMouseDown:F,onClick:z,onMouseUp:j,onMouseLeave:U,onMouseMove:Y,onMouseEnter:Q,onMouseOut:D,changeOnBlur:B=true,...K}=e,[J,ee]=f.useState(false),te=f.useRef(false),re=f.useRef(false),ie=f.useRef(false),ue=f.useRef(null),ne=f.useRef(null);f.useImperativeHandle(t,()=>Sfe(ne.current,{focus:ke=>{$R(ne.current,ke);},blur:()=>{ne.current?.blur();},nativeElement:ue.current}));const[ce,fe]=f.useState(()=>oa(g??p));function se(ke){g===void 0&&fe(ke);}const Me=f.useCallback((ke,Ze)=>{if(!Ze)return O>=0?O:Math.max(Yc(ke),Yc(m))},[O,m]),ae=f.useCallback(ke=>{const Ze=String(ke);if(N)return N(Ze);let Se=Ze;return _&&(Se=Se.replace(_,".")),Se.replace(/[^\w.-]+/g,"")},[N,_]),pe=f.useRef(""),be=f.useCallback((ke,Ze)=>{if(P)return P(ke,{userTyping:Ze,input:String(pe.current)});let Se=typeof ke=="number"?v1(ke):ke;if(!Ze){const ye=Me(Se,Ze);tT(Se)&&(_||ye>=0)&&(Se=Qb(Se,_||".",ye));}return Se},[P,Me,_]),[xe,Te]=f.useState(()=>{const ke=p??g;return ce.isInvalidate()&&["string","number"].includes(typeof ke)?Number.isNaN(ke)?"":ke:be(ce.toString(),false)});pe.current=xe;function Ke(ke,Ze){Te(be(ke.isInvalidate()?ke.toString(false):ke.toString(!Ze),Ze));}const Ae=f.useMemo(()=>E8(d),[d,O]),de=f.useMemo(()=>E8(u),[u,O]),ve=f.useMemo(()=>!Ae||!ce||ce.isInvalidate()?false:Ae.lessEquals(ce),[Ae,ce]),Ne=f.useMemo(()=>!de||!ce||ce.isInvalidate()?false:ce.lessEquals(de),[de,ce]),[He,We]=Cfe(ne.current,J),je=ke=>Ae&&!ke.lessEquals(Ae)?Ae:de&&!de.lessEquals(ke)?de:null,nt=ke=>!je(ke),ot=(ke,Ze)=>{let Se=ke,ye=nt(Se)||Se.isEmpty();if(!Se.isEmpty()&&!Ze&&(Se=je(Se)||Se,ye=true),!y&&!b&&ye){const Ce=Se.toString(),he=Me(Ce,Ze);return he>=0&&(Se=oa(Qb(Ce,".",he)),nt(Se)||(Se=oa(Qb(Ce,".",he,true)))),Se.equals(ce)||(se(Se),L?.(Se.isEmpty()?null:$8(I,Se)),g===void 0&&Ke(Se,Ze)),Se}return ce},Ge=$fe(),Oe=ke=>{if(He(),pe.current=ke,Te(ke),!re.current){const Ze=ae(ke),Se=oa(Ze);Se.isNaN()||ot(Se,true);}k?.(ke),Ge(()=>{let Ze=ke;N||(Ze=ke.replace(/。/g,".")),Ze!==ke&&Oe(Ze);});},qe=()=>{re.current=true;},Je=()=>{re.current=false,Oe(ne.current.value);},Le=ke=>{Oe(ke.target.value);},Ie=Mt((ke,Ze)=>{if(ke&&ve||!ke&&Ne)return;te.current=false;let Se=oa(ie.current?w8(m):m);ke||(Se=Se.negate());const ye=(ce||oa(0)).add(Se.toString()),Ce=ot(ye,false);q?.($8(I,Ce),{offset:ie.current?w8(m):m,type:ke?"up":"down",emitter:Ze}),ne.current?.focus();}),ct=ke=>{const Ze=oa(ae(xe));let Se;Ze.isNaN()?Se=ot(ce,ke):Se=ot(Ze,ke),g!==void 0?Ke(ce,false):Se.isNaN()||Ke(Se,false);},Ot=()=>{te.current=true;},pt=ke=>{const{key:Ze,shiftKey:Se}=ke;te.current=true,ie.current=Se,Ze==="Enter"&&(re.current||(te.current=false),ct(false),W?.(ke)),w!==false&&!re.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ze)&&(Ie(Ze==="Up"||Ze==="ArrowUp","keyboard"),ke.preventDefault());},Lt=()=>{te.current=false,ie.current=false;};f.useEffect(()=>{if($&&J){const ke=Se=>{Ie(Se.deltaY<0,"wheel"),Se.preventDefault();},Ze=ne.current;if(Ze)return Ze.addEventListener("wheel",ke,{passive:false}),()=>Ze.removeEventListener("wheel",ke)}});const xt=()=>{B&&ct(false),ee(false),te.current=false;},Rt=ke=>{ne.current&&ke.target!==ne.current&&(ne.current.focus(),ke.preventDefault()),F?.(ke);};Bb(()=>{ce.isInvalidate()||Ke(ce,false);},[O,P]),Bb(()=>{const ke=oa(g);fe(ke);const Ze=oa(ae(xe));(!ke.equals(Ze)||!te.current||P)&&Ke(ke,te.current);},[g]),Bb(()=>{P&&We();},[xe]);const ut={prefixCls:r,onStep:Ie,className:a?.action,style:l?.action},ft=f.createElement(x8,Vh({},ut,{action:"up",disabled:ve}),S),vt=f.createElement(x8,Vh({},ut,{action:"down",disabled:Ne}),C);return f.createElement("div",{ref:ue,className:X(r,`${r}-mode-${n}`,o,a?.root,{[`${r}-focused`]:J,[`${r}-disabled`]:b,[`${r}-readonly`]:y,[`${r}-not-a-number`]:ce.isNaN(),[`${r}-out-of-range`]:!ce.isInvalidate()&&!nt(ce)}),style:{...l?.root,...i},onMouseDown:Rt,onMouseUp:j,onMouseLeave:U,onMouseMove:Y,onMouseEnter:Q,onMouseOut:D,onClick:z,onFocus:()=>{ee(true);},onBlur:xt,onKeyDown:pt,onKeyUp:Lt,onCompositionStart:qe,onCompositionEnd:Je,onBeforeInput:Ot},n==="spinner"&&E&&vt,T!==void 0&&f.createElement("div",{className:X(`${r}-prefix`,a?.prefix),style:l?.prefix},T),f.createElement("input",Vh({autoComplete:"off",role:"spinbutton","aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":ce.isInvalidate()?null:ce.toString(),step:m,ref:ne,className:X(`${r}-input`,a?.input),style:l?.input,value:xe,onChange:Le,disabled:b,readOnly:y},K)),R!==void 0&&f.createElement("div",{className:X(`${r}-suffix`,a?.suffix),style:l?.suffix},R),n==="spinner"&&E&&ft,n==="input"&&E&&f.createElement("div",{className:X(`${r}-actions`,a?.actions),style:l?.actions},ft,vt))}),Mfe=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:u,borderRadiusSM:d,colorBgContainerDisabled:m,lineWidth:p,antCls:g}=e,[b,y]=tr(g,"space");return {[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:p,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:a,borderRadius:u},"&-small":{paddingInline:i,borderRadius:d,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}},{[b("addon-border-color")]:o,[b("addon-background")]:m,[b("addon-border-color-outlined")]:o,[b("addon-background-filled")]:m,borderColor:y("addon-border-color"),background:y("addon-background"),"&-variant-outlined":{[b("addon-border-color")]:y("addon-border-color-outlined")},"&-variant-filled":{[b("addon-border-color")]:"transparent",[b("addon-background")]:y("addon-background-filled"),[`&${t}-disabled`]:{[b("addon-border-color")]:o,[b("addon-background")]:m}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[b("addon-border-color-outlined")]:e.colorError,[b("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[b("addon-border-color-outlined")]:e.colorWarning,[b("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},Rfe=qt(["Space","Addon"],e=>[Mfe(e),Lf(e,{focus:false})]),Q7=G.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:i,variant:a="outlined",disabled:l,status:u,...d}=e,{getPrefixCls:m,direction:p}=G.useContext(wt),g=m("space-addon",i),[b,y]=Rfe(g),{compactItemClassnames:S,compactSize:C}=Fs(g,p),w=Wl(g,u),$=X(g,b,S,y,`${g}-variant-${a}`,w,{[`${g}-${C}`]:C,[`${g}-disabled`]:l},n);return G.createElement("div",{ref:t,className:$,style:o,...d},r)}),Tfe=e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-e.lineWidth*2;return {...Vf(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new cn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===true?1:0,handleVisibleWidth:t===true?n:0}},Afe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,colorError:l,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:m,paddingInlineLG:p,colorIcon:g,motionDurationMid:b,handleHoverColor:y,handleOpacity:S,paddingInline:C,paddingBlock:w,handleBg:$,handleActiveBg:E,inputAffixPadding:T,borderRadiusSM:R,controlWidth:I,handleBorderColor:N,filledHandleBg:P,lineHeightLG:O,antCls:_}=e,L=`${oe(n)} ${r} ${N}`,[k,W]=tr(_,"input-number");return [{[t]:{...dn(e),...g1(e),[k("input-padding-block")]:oe(w),[k("input-padding-inline")]:oe(C),display:"inline-flex",width:I,margin:0,paddingBlock:0,borderRadius:o,...R7(e,{[`${t}-actions`]:{background:$,[`${t}-action-down`]:{borderBlockStart:L}}}),...N7(e,{[`${t}-actions`]:{background:P,[`${t}-action-down`]:{borderBlockStart:L}},"&:focus-within":{[`${t}-actions`]:{background:$}}}),...I7(e,{[`${t}-actions`]:{background:$,[`${t}-action-down`]:{borderBlockStart:L}}}),...T7(e),"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...dn(e),width:"100%",paddingBlock:W("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...O7(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`
          ${t}-action-up-disabled,
          ${t}-action-down-disabled
        `]:{cursor:"not-allowed"},[`${t}-action`]:{...Au(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${b} linear`,"&:active":{background:E},"&:hover":{color:y}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:S,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:g,height:"50%",borderInlineStart:L,"&:hover":{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:W("input-padding-inline"),"&-up":{borderInlineStart:L},"&-down":{borderInlineEnd:L}},[`${t}-input`]:{textAlign:"center",paddingInline:W("input-padding-inline")}}}},{[t]:{"&-lg":{[k("input-padding-block")]:oe(m),[k("input-padding-inline")]:oe(p),paddingBlock:0,fontSize:a,lineHeight:O},"&-sm":{[k("input-padding-block")]:oe(d),[k("input-padding-inline")]:oe(u),paddingBlock:0,fontSize:i,borderRadius:R}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:T},[`${t}-suffix`]:{height:"100%",marginInlineStart:T,transition:`margin ${b}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},Nfe=e=>{const{componentCls:t,antCls:n}=e;return {[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},Pfe=qt("InputNumber",e=>{const t=Ft(e,Hf(e));return [Afe(t),Nfe(t),Lf(t)]},Tfe,{unitless:{handleOpacity:true},resetFont:false}),Ife=f.forwardRef((e,t)=>{const n=f.useRef(null);f.useImperativeHandle(t,()=>n.current);const{rootClassName:r,size:o,disabled:i,prefixCls:a,addonBefore:l,addonAfter:u,prefix:d,suffix:m,bordered:p,readOnly:g,status:b,controls:y=true,variant:S,className:C,style:w,classNames:$,styles:E,mode:T,...R}=e,{direction:I,className:N,style:P,styles:O,classNames:_}=jt("inputNumber"),L=f.useContext(ro),k=i??L,W=f.useMemo(()=>!y||k||g?false:y,[y,k,g]),{compactSize:q,compactItemClassnames:F}=Fs(a,I);let z=T==="spinner"?f.createElement(L7,null):f.createElement(vfe,null),j=T==="spinner"?f.createElement(hfe,null):f.createElement(_R,null);const U=typeof W=="boolean"?W:void 0;typeof W=="object"&&(z=W.upIcon||z,j=W.downIcon||j);const{hasFeedback:Y,isFormItemInput:Q,feedbackIcon:D}=f.useContext(xo),B=lo(ue=>o??q??ue),[K,J]=s1("inputNumber",S,p),ee=Y&&f.createElement(f.Fragment,null,D),te={...e,size:B,disabled:k,controls:W},[re,ie]=Kt([_,$],[O,E],{props:te});return f.createElement(Efe,{ref:n,mode:T,disabled:k,className:X(C,r,re.root,N,F,Wl(a,b,Y),{[`${a}-${K}`]:J,[`${a}-lg`]:B==="large",[`${a}-sm`]:B==="small",[`${a}-rtl`]:I==="rtl",[`${a}-in-form-item`]:Q,[`${a}-without-controls`]:!W}),style:{...ie.root,...P,...w},upHandler:z,downHandler:j,prefixCls:a,readOnly:g,controls:U,prefix:d,suffix:ee||m,classNames:re,styles:ie,...R})}),Z7=f.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:r,prefixCls:o,className:i,status:a,rootClassName:l,...u}=e,{getPrefixCls:d}=jt("inputNumber"),m=d("input-number",o),{status:p}=f.useContext(xo),g=zf(p,a),b=Qn(m),[y,S]=Pfe(m,b),C=n||r,w=f.createElement(Ife,{ref:t,...u,prefixCls:m,status:g,className:X(S,b,y,i),rootClassName:C?void 0:l});if(C){const $=R=>R?f.createElement(Q7,{className:X(`${m}-addon`,S,y),variant:e.variant,disabled:e.disabled,status:g},f.createElement(Ul,{form:true},R)):null,E=$(n),T=$(r);return f.createElement(uR,{rootClassName:l},E,w,T)}return w}),ou=Z7,Ofe=e=>f.createElement(Lo,{theme:{components:{InputNumber:{handleVisible:true}}}},f.createElement(Z7,{...e}));ou._InternalPanelDoNotUseOrYouWillBeFired=Ofe;const iu=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:o,className:i,formatter:a})=>{const l=`${e}-steppers`,[u,d]=f.useState(0),m=Number.isNaN(r)?u:r;return G.createElement(ou,{className:X(l,i),min:t,max:n,value:m,formatter:a,size:"small",onChange:p=>{d(p||0),o?.(p);}})},Dfe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[o,i]=f.useState(()=>oo(t||"#000")),a=t||o,l=u=>{const d=a.toHsb();d.a=(u||0)/100;const m=oo(d);i(m),n?.(m);};return G.createElement(iu,{value:yR(a),prefixCls:e,formatter:u=>`${u}%`,className:r,onChange:l})};function _fe(e){return !!(e.addonBefore||e.addonAfter)}function Lfe(e){return !!(e.prefix||e.suffix||e.allowClear)}function M8(e,t,n){const r=t.cloneNode(true),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...i)=>{t.setSelectionRange(...i);},o}function J0(e,t,n,r){if(!n)return;let o=t;if(t.type==="click"){o=M8(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=M8(t,e,r),n(o);return}n(o);}function GE(){return GE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},GE.apply(this,arguments)}const J7=G.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:o,prefix:i,suffix:a,addonBefore:l,addonAfter:u,className:d,style:m,disabled:p,readOnly:g,focused:b,triggerFocus:y,allowClear:S,value:C,handleReset:w,hidden:$,classes:E,classNames:T,dataAttrs:R,styles:I,components:N,onClear:P}=e,O=r??n,_=N?.affixWrapper||"span",L=N?.groupWrapper||"span",k=N?.wrapper||"span",W=N?.groupAddon||"span",q=f.useRef(null),F=Y=>{q.current?.contains(Y.target)&&y?.();},z=Lfe(e);let j=f.cloneElement(O,{value:C,className:X(O.props?.className,!z&&T?.variant)||null});const U=f.useRef(null);if(G.useImperativeHandle(t,()=>({nativeElement:U.current||q.current})),z){let Y=null;if(S){const K=!p&&!g&&C,J=`${o}-clear-icon`,ee=typeof S=="object"&&S?.clearIcon?S.clearIcon:"✖";Y=G.createElement("button",{type:"button",tabIndex:-1,onClick:te=>{w?.(te),P?.();},onMouseDown:te=>te.preventDefault(),className:X(J,{[`${J}-hidden`]:!K,[`${J}-has-suffix`]:!!a})},ee);}const Q=`${o}-affix-wrapper`,D=X(Q,{[`${o}-disabled`]:p,[`${Q}-disabled`]:p,[`${Q}-focused`]:b,[`${Q}-readonly`]:g,[`${Q}-input-with-clear-btn`]:a&&S&&C},E?.affixWrapper,T?.affixWrapper,T?.variant),B=(a||S)&&G.createElement("span",{className:X(`${o}-suffix`,T?.suffix),style:I?.suffix},Y,a);j=G.createElement(_,GE({className:D,style:I?.affixWrapper,onClick:F},R?.affixWrapper,{ref:q}),i&&G.createElement("span",{className:X(`${o}-prefix`,T?.prefix),style:I?.prefix},i),j,B);}if(_fe(e)){const Y=`${o}-group`,Q=`${Y}-addon`,D=`${Y}-wrapper`,B=X(`${o}-wrapper`,Y,E?.wrapper,T?.wrapper),K=X(D,{[`${D}-disabled`]:p},E?.group,T?.groupWrapper);j=G.createElement(L,{className:K,ref:U},G.createElement(k,{className:B},l&&G.createElement(W,{className:Q},l),j,u&&G.createElement(W,{className:Q},u)));}return G.cloneElement(j,{className:X(j.props?.className,d)||null,style:{...j.props?.style,...m},hidden:$})});function eH(e,t){return f.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...o}=n;return {...o,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:o.strategy||(i=>i.length)}},[e,t])}function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},ey.apply(this,arguments)}const Bfe=f.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:o,onBlur:i,onPressEnter:a,onKeyDown:l,onKeyUp:u,prefixCls:d="rc-input",disabled:m,htmlSize:p,className:g,maxLength:b,suffix:y,showCount:S,count:C,type:w="text",classes:$,classNames:E,styles:T,onCompositionStart:R,onCompositionEnd:I,...N}=e,[P,O]=f.useState(false),_=f.useRef(false),L=f.useRef(false),k=f.useRef(null),W=f.useRef(null),q=ae=>{k.current&&$R(k.current,ae);},[F,z]=un(e.defaultValue,e.value),j=F==null?"":String(F),[U,Y]=f.useState(null),Q=eH(C,S),D=Q.max||b,B=Q.strategy(j),K=!!D&&B>D;f.useImperativeHandle(t,()=>({focus:q,blur:()=>{k.current?.blur();},setSelectionRange:(ae,pe,be)=>{k.current?.setSelectionRange(ae,pe,be);},select:()=>{k.current?.select();},input:k.current,nativeElement:W.current?.nativeElement||k.current})),f.useEffect(()=>{L.current&&(L.current=false),O(ae=>ae&&m?false:ae);},[m]);const J=(ae,pe,be)=>{let xe=pe;if(!_.current&&Q.exceedFormatter&&Q.max&&Q.strategy(pe)>Q.max)xe=Q.exceedFormatter(pe,{max:Q.max}),pe!==xe&&Y([k.current?.selectionStart||0,k.current?.selectionEnd||0]);else if(be.source==="compositionEnd")return;z(xe),k.current&&J0(k.current,ae,r,xe);};f.useEffect(()=>{U&&k.current?.setSelectionRange(...U);},[U]);const ee=ae=>{J(ae,ae.target.value,{source:"change"});},te=ae=>{_.current=false,J(ae,ae.currentTarget.value,{source:"compositionEnd"}),I?.(ae);},re=ae=>{a&&ae.key==="Enter"&&!L.current&&!ae.nativeEvent.isComposing&&(L.current=true,a(ae)),l?.(ae);},ie=ae=>{ae.key==="Enter"&&(L.current=false),u?.(ae);},ue=ae=>{O(true),o?.(ae);},ne=ae=>{L.current&&(L.current=false),O(false),i?.(ae);},ce=ae=>{z(""),q(),k.current&&J0(k.current,ae,r);},fe=K&&`${d}-out-of-range`,se=()=>{const ae=zn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return G.createElement("input",ey({autoComplete:n},ae,{onChange:ee,onFocus:ue,onBlur:ne,onKeyDown:re,onKeyUp:ie,className:X(d,{[`${d}-disabled`]:m},E?.input),style:T?.input,ref:k,size:p,type:w,onCompositionStart:pe=>{_.current=true,R?.(pe);},onCompositionEnd:te}))},Me=()=>{const ae=Number(D)>0;if(y||Q.show){const pe=Q.showFormatter?Q.showFormatter({value:j,count:B,maxLength:D}):`${B}${ae?` / ${D}`:""}`;return G.createElement(G.Fragment,null,Q.show&&G.createElement("span",{className:X(`${d}-show-count-suffix`,{[`${d}-show-count-has-suffix`]:!!y},E?.count),style:{...T?.count}},pe),y)}return null};return G.createElement(J7,ey({},N,{prefixCls:d,className:X(g,fe),handleReset:ce,value:j,focused:P,triggerFocus:q,suffix:Me(),disabled:m,classes:$,classNames:E,styles:T,ref:W}),se())}),tH=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:G.createElement(Qp,null)}),t};function nH(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function zfe(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}const jf=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=true,status:o,size:i,disabled:a,onBlur:l,onFocus:u,suffix:d,allowClear:m,addonAfter:p,addonBefore:g,className:b,style:y,styles:S,rootClassName:C,onChange:w,classNames:$,variant:E,...T}=e,{getPrefixCls:R,direction:I,allowClear:N,autoComplete:P,className:O,style:_,classNames:L,styles:k}=jt("input"),W=R("input",n),q=f.useRef(null),F=Qn(W),[z,j]=D7(W,C);_7(W,F);const{compactSize:U,compactItemClassnames:Y}=Fs(W,I),Q=lo(Te=>i??U??Te),D=G.useContext(ro),B=a??D,K={...e,size:Q,disabled:B},[J,ee]=Kt([L,$],[k,S],{props:K}),{status:te,hasFeedback:re,feedbackIcon:ie}=f.useContext(xo),ue=zf(te,o),ne=zfe(e)||!!re;f.useRef(ne);const ce=nH(q,true),fe=Te=>{ce(),l?.(Te);},se=Te=>{ce(),u?.(Te);},Me=Te=>{ce(),w?.(Te);},ae=(re||d)&&G.createElement(G.Fragment,null,d,re&&ie),pe=tH(m??N),[be,xe]=s1("input",E,r);return G.createElement(Bfe,{ref:Ur(t,q),prefixCls:W,autoComplete:P,...T,disabled:B,onBlur:fe,onFocus:se,style:{...ee.root,..._,...y},styles:ee,suffix:ae,allowClear:pe,className:X(b,C,j,F,Y,O,J.root),onChange:Me,addonBefore:g&&G.createElement(Ul,{form:true,space:true},g),addonAfter:p&&G.createElement(Ul,{form:true,space:true},p),classNames:{...J,input:X({[`${W}-sm`]:Q==="small",[`${W}-lg`]:Q==="large",[`${W}-rtl`]:I==="rtl"},J.input,z),variant:X({[`${W}-${be}`]:xe},Wl(W,ue)),affixWrapper:X({[`${W}-affix-wrapper-sm`]:Q==="small",[`${W}-affix-wrapper-lg`]:Q==="large",[`${W}-affix-wrapper-rtl`]:I==="rtl"},z),wrapper:X({[`${W}-group-rtl`]:I==="rtl"},z),groupWrapper:X({[`${W}-group-wrapper-sm`]:Q==="small",[`${W}-group-wrapper-lg`]:Q==="large",[`${W}-group-wrapper-rtl`]:I==="rtl",[`${W}-group-wrapper-${be}`]:xe},Wl(`${W}-group-wrapper`,ue,re),z)}})}),kfe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Ffe=e=>kfe.test(`#${e}`),Hfe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[o,i]=f.useState(()=>t?$h(t.toHexString()):void 0);f.useEffect(()=>{t&&i($h(t.toHexString()));},[t]);const a=l=>{const u=l.target.value;i($h(u)),Ffe($h(u,true))&&n?.(oo(u));};return G.createElement(jf,{className:r,value:o,prefix:"#",onChange:a,size:"small"})},Vfe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[o,i]=f.useState(()=>oo(t||"#000")),a=t||o,l=(u,d)=>{const m=a.toHsb();m[d]=d==="h"?u:(u||0)/100;const p=oo(m);i(p),n?.(p);};return G.createElement("div",{className:r},G.createElement(iu,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:e,className:r,formatter:u=>Wb(u||0).toString(),onChange:u=>l(Number(u),"h")}),G.createElement(iu,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:e,className:r,formatter:u=>`${Wb(u||0)}%`,onChange:u=>l(Number(u),"s")}),G.createElement(iu,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:e,className:r,formatter:u=>`${Wb(u||0)}%`,onChange:u=>l(Number(u),"b")}))},jfe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[o,i]=f.useState(()=>oo(t||"#000")),a=t||o,l=(u,d)=>{const m=a.toRgb();m[d]=u||0;const p=oo(m);i(p),n?.(p);};return G.createElement("div",{className:r},G.createElement(iu,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:e,className:r,onChange:u=>l(Number(u),"r")}),G.createElement(iu,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:e,className:r,onChange:u=>l(Number(u),"g")}),G.createElement(iu,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:e,className:r,onChange:u=>l(Number(u),"b")}))},Ufe=[G7,Y7,K7].map(e=>({value:e,label:e.toUpperCase()})),Wfe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a,disabledFormat:l}=e,[u,d]=un(G7,n),m=`${t}-input`,p=b=>{d(b),i?.(b);},g=f.useMemo(()=>{const b={value:r,prefixCls:t,onChange:a};switch(u){case Y7:return G.createElement(Vfe,{...b});case K7:return G.createElement(jfe,{...b});default:return G.createElement(Hfe,{...b})}},[u,t,r,a]);return G.createElement("div",{className:`${m}-container`},!l&&G.createElement(nc,{value:u,variant:"borderless",getPopupContainer:b=>b,popupMatchSelectWidth:68,placement:"bottomRight",onChange:p,className:`${t}-format-select`,size:"small",options:Ufe}),G.createElement("div",{className:m},g),!o&&G.createElement(Dfe,{prefixCls:t,value:r,onChange:a}))};function KE(e,t,n){return (e-t)/(n-t)}function nT(e,t,n,r){const o=KE(t,n,r),i={};switch(e){case "rtl":i.right=`${o*100}%`,i.transform="translateX(50%)";break;case "btt":i.bottom=`${o*100}%`,i.transform="translateY(50%)";break;case "ttb":i.top=`${o*100}%`,i.transform="translateY(-50%)";break;default:i.left=`${o*100}%`,i.transform="translateX(-50%)";break}return i}function Uc(e,t){return Array.isArray(e)?e[t]:e}const Ou=f.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:true,styles:{},classNames:{}}),rH=f.createContext({});function YE(){return YE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},YE.apply(this,arguments)}const R8=f.forwardRef((e,t)=>{const{prefixCls:n,value:r,valueIndex:o,onStartMove:i,onDelete:a,style:l,render:u,dragging:d,draggingDelete:m,onOffsetChange:p,onChangeComplete:g,onFocus:b,onMouseEnter:y,...S}=e,{min:C,max:w,direction:$,disabled:E,keyboard:T,range:R,tabIndex:I,ariaLabelForHandle:N,ariaLabelledByForHandle:P,ariaRequired:O,ariaValueTextFormatterForHandle:_,styles:L,classNames:k}=f.useContext(Ou),W=`${n}-handle`,q=B=>{E||i(B,o);},F=B=>{b?.(B,o);},z=B=>{y(B,o);},j=B=>{if(!E&&T){let K=null;switch(B.which||B.keyCode){case at.LEFT:K=$==="ltr"||$==="btt"?-1:1;break;case at.RIGHT:K=$==="ltr"||$==="btt"?1:-1;break;case at.UP:K=$!=="ttb"?1:-1;break;case at.DOWN:K=$!=="ttb"?-1:1;break;case at.HOME:K="min";break;case at.END:K="max";break;case at.PAGE_UP:K=2;break;case at.PAGE_DOWN:K=-2;break;case at.BACKSPACE:case at.DELETE:a?.(o);break}K!==null&&(B.preventDefault(),p(K,o));}},U=B=>{switch(B.which||B.keyCode){case at.LEFT:case at.RIGHT:case at.UP:case at.DOWN:case at.HOME:case at.END:case at.PAGE_UP:case at.PAGE_DOWN:g?.();break}},Y=nT($,r,C,w);let Q={};o!==null&&(Q={tabIndex:E?null:Uc(I,o),role:"slider","aria-valuemin":C,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":E,"aria-label":Uc(N,o),"aria-labelledby":Uc(P,o),"aria-required":Uc(O,o),"aria-valuetext":Uc(_,o)?.(r),"aria-orientation":$==="ltr"||$==="rtl"?"horizontal":"vertical",onMouseDown:q,onTouchStart:q,onFocus:F,onMouseEnter:z,onKeyDown:j,onKeyUp:U});let D=f.createElement("div",YE({ref:t,className:X(W,{[`${W}-${o+1}`]:o!==null&&R,[`${W}-dragging`]:d,[`${W}-dragging-delete`]:m},k.handle),style:{...Y,...l,...L.handle}},Q,S));return u&&(D=u(D,{index:o,prefixCls:n,value:r,dragging:d,draggingDelete:m})),D});function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},ty.apply(this,arguments)}const qfe=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,onStartMove:o,onOffsetChange:i,values:a,handleRender:l,activeHandleRender:u,draggingIndex:d,draggingDelete:m,onFocus:p,...g}=e,b=f.useRef({}),[y,S]=f.useState(false),[C,w]=f.useState(-1),$=I=>{w(I),S(true);},E=(I,N)=>{$(N),p?.(I);},T=(I,N)=>{$(N);};f.useImperativeHandle(t,()=>({focus:I=>{b.current[I]?.focus();},hideHelp:()=>{Mo.flushSync(()=>{S(false);});}}));const R={prefixCls:n,onStartMove:o,onOffsetChange:i,render:l,onFocus:E,onMouseEnter:T,...g};return f.createElement(f.Fragment,null,a.map((I,N)=>{const P=d===N;return f.createElement(R8,ty({ref:O=>{O?b.current[N]=O:delete b.current[N];},dragging:P,draggingDelete:P&&m,style:Uc(r,N),key:N,value:I,valueIndex:N},R))}),u&&y&&f.createElement(R8,ty({key:"a11y"},R,{value:a[C],valueIndex:null,dragging:d!==-1,draggingDelete:m,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":true})))}),Gfe=e=>{const{prefixCls:t,style:n,children:r,value:o,onClick:i}=e,{min:a,max:l,direction:u,includedStart:d,includedEnd:m,included:p}=f.useContext(Ou),g=`${t}-text`,b=nT(u,o,a,l);return f.createElement("span",{className:X(g,{[`${g}-active`]:p&&d<=o&&o<=m}),style:{...b,...n},onMouseDown:y=>{y.stopPropagation();},onClick:()=>{i(o);}},r)},Kfe=e=>{const{prefixCls:t,marks:n,onClick:r}=e,o=`${t}-mark`;return n.length?f.createElement("div",{className:o},n.map(({value:i,style:a,label:l})=>f.createElement(Gfe,{key:i,prefixCls:o,style:a,value:i,onClick:r},l))):null},Yfe=e=>{const{prefixCls:t,value:n,style:r,activeStyle:o}=e,{min:i,max:a,direction:l,included:u,includedStart:d,includedEnd:m}=f.useContext(Ou),p=`${t}-dot`,g=u&&d<=n&&n<=m;let b={...nT(l,n,i,a),...typeof r=="function"?r(n):r};return g&&(b={...b,...typeof o=="function"?o(n):o}),f.createElement("span",{className:X(p,{[`${p}-active`]:g}),style:b})},Xfe=e=>{const{prefixCls:t,marks:n,dots:r,style:o,activeStyle:i}=e,{min:a,max:l,step:u}=f.useContext(Ou),d=f.useMemo(()=>{const m=new Set;if(n.forEach(p=>{m.add(p.value);}),r&&u!==null){let p=a;for(;p<=l;)m.add(p),p+=u;}return Array.from(m)},[a,l,u,r,n]);return f.createElement("div",{className:`${t}-step`},d.map(m=>f.createElement(Yfe,{prefixCls:t,key:m,value:m,style:o,activeStyle:i})))},T8=e=>{const{prefixCls:t,style:n,start:r,end:o,index:i,onStartMove:a,replaceCls:l}=e,{direction:u,min:d,max:m,disabled:p,range:g,classNames:b}=f.useContext(Ou),y=`${t}-track`,S=KE(r,d,m),C=KE(o,d,m),w=T=>{!p&&a&&a(T,-1);},$={};switch(u){case "rtl":$.right=`${S*100}%`,$.width=`${C*100-S*100}%`;break;case "btt":$.bottom=`${S*100}%`,$.height=`${C*100-S*100}%`;break;case "ttb":$.top=`${S*100}%`,$.height=`${C*100-S*100}%`;break;default:$.left=`${S*100}%`,$.width=`${C*100-S*100}%`;}const E=l||X(y,{[`${y}-${i+1}`]:i!==null&&g,[`${t}-track-draggable`]:a},b.track);return f.createElement("div",{className:E,style:{...$,...n},onMouseDown:w,onTouchStart:w})},Qfe=e=>{const{prefixCls:t,style:n,values:r,startPoint:o,onStartMove:i}=e,{included:a,range:l,min:u,styles:d,classNames:m}=f.useContext(Ou),p=f.useMemo(()=>{if(!l){if(r.length===0)return [];const y=o??u,S=r[0];return [{start:Math.min(y,S),end:Math.max(y,S)}]}const b=[];for(let y=0;y<r.length-1;y+=1)b.push({start:r[y],end:r[y+1]});return b},[r,l,o,u]);if(!a)return null;const g=p?.length&&(m.tracks||d.tracks)?f.createElement(T8,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:X(m.tracks,`${t}-tracks`),style:d.tracks}):null;return f.createElement(f.Fragment,null,g,p.map(({start:b,end:y},S)=>f.createElement(T8,{index:S,prefixCls:t,style:{...Uc(n,S),...d.track},start:b,end:y,key:S,onStartMove:i})))},Zfe=130;function A8(e){const t="targetTouches"in e?e.targetTouches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function Jfe(e,t,n,r,o,i,a,l,u,d,m){const[p,g]=f.useState(null),[b,y]=f.useState(-1),[S,C]=f.useState(false),[w,$]=f.useState(n),[E,T]=f.useState(n),R=f.useRef(null),I=f.useRef(null),N=f.useRef(null),{onDragStart:P,onDragChange:O}=f.useContext(rH);An(()=>{b===-1&&$(n);},[n,b]),f.useEffect(()=>()=>{document.removeEventListener("mousemove",R.current),document.removeEventListener("mouseup",I.current),N.current&&(N.current.removeEventListener("touchmove",R.current),N.current.removeEventListener("touchend",I.current));},[]);const _=(q,F,z)=>{F!==void 0&&g(F),$(q);let j=q;z&&(j=q.filter((U,Y)=>Y!==b)),a(j),O&&O({rawValues:q,deleteIndex:z?b:-1,draggingIndex:b,draggingValue:F});},L=Mt((q,F,z)=>{if(q===-1){const j=E[0],U=E[E.length-1],Y=r-j,Q=o-U;let D=F*(o-r);D=Math.max(D,Y),D=Math.min(D,Q),D=i(j+D)-j;const K=E.map(J=>J+D);_(K);}else {const j=(o-r)*F,U=[...w];U[q]=E[q];const Y=u(U,j,q,"dist");_(Y.values,Y.value,z);}}),k=(q,F,z)=>{q.stopPropagation();const j=z||n,U=j[F];y(F),g(U),T(j),$(j),C(false);const{pageX:Y,pageY:Q}=A8(q);let D=false;P&&P({rawValues:j,draggingIndex:F,draggingValue:U});const B=J=>{J.preventDefault();const{pageX:ee,pageY:te}=A8(J),re=ee-Y,ie=te-Q,{width:ue,height:ne}=e.current.getBoundingClientRect();let ce,fe;switch(t){case "btt":ce=-ie/ne,fe=re;break;case "ttb":ce=ie/ne,fe=re;break;case "rtl":ce=-re/ue,fe=ie;break;default:ce=re/ue,fe=ie;}D=d?Math.abs(fe)>Zfe&&m<w.length:false,C(D),L(F,ce,D);},K=J=>{J.preventDefault(),document.removeEventListener("mouseup",K),document.removeEventListener("mousemove",B),N.current&&(N.current.removeEventListener("touchmove",R.current),N.current.removeEventListener("touchend",I.current)),R.current=null,I.current=null,N.current=null,l(D),y(-1),C(false);};document.addEventListener("mouseup",K),document.addEventListener("mousemove",B),q.currentTarget.addEventListener("touchend",K),q.currentTarget.addEventListener("touchmove",B),R.current=B,I.current=K,N.current=q.currentTarget;},W=f.useMemo(()=>{const q=[...n].sort((Y,Q)=>Y-Q),F=[...w].sort((Y,Q)=>Y-Q),z={};F.forEach(Y=>{z[Y]=(z[Y]||0)+1;}),q.forEach(Y=>{z[Y]=(z[Y]||0)-1;});const j=d?1:0;return Object.values(z).reduce((Y,Q)=>Y+Math.abs(Q),0)<=j?w:n},[n,w,d]);return [b,p,S,W,k]}function eme(e,t,n,r,o,i){const a=f.useCallback(b=>Math.max(e,Math.min(t,b)),[e,t]),l=f.useCallback(b=>{if(n!==null){const y=e+Math.round((a(b)-e)/n)*n,S=$=>(String($).split(".")[1]||"").length,C=Math.max(S(n),S(t),S(e)),w=Number(y.toFixed(C));return e<=w&&w<=t?w:null}return null},[n,e,t,a]),u=f.useCallback(b=>{const y=a(b),S=r.map($=>$.value);n!==null&&S.push(l(b)),S.push(e,t);let C=S[0],w=t-e;return S.forEach($=>{const E=Math.abs(y-$);E<=w&&(C=$,w=E);}),C},[e,t,r,n,a,l]),d=(b,y,S,C="unit")=>{if(typeof y=="number"){let w;const $=b[S],E=$+y;let T=[];r.forEach(P=>{T.push(P.value);}),T.push(e,t),T.push(l($));const R=y>0?1:-1;C==="unit"?T.push(l($+R*n)):T.push(l(E)),T=T.filter(P=>P!==null).filter(P=>y<0?P<=$:P>=$),C==="unit"&&(T=T.filter(P=>P!==$));const I=C==="unit"?$:E;w=T[0];let N=Math.abs(w-I);if(T.forEach(P=>{const O=Math.abs(P-I);O<N&&(w=P,N=O);}),w===void 0)return y<0?e:t;if(C==="dist")return w;if(Math.abs(y)>1){const P=[...b];return P[S]=w,d(P,y-R,S,C)}return w}else {if(y==="min")return e;if(y==="max")return t}},m=(b,y,S,C="unit")=>{const w=b[S],$=d(b,y,S,C);return {value:$,changed:$!==w}},p=b=>i===null&&b===0||typeof i=="number"&&b<i;return [u,(b,y,S,C="unit")=>{const w=b.map(u),$=w[S],E=d(w,y,S,C);if(w[S]=E,o===false){const T=i||0;S>0&&w[S-1]!==$&&(w[S]=Math.max(w[S],w[S-1]+T)),S<w.length-1&&w[S+1]!==$&&(w[S]=Math.min(w[S],w[S+1]-T));}else if(typeof i=="number"||i===null){for(let T=S+1;T<w.length;T+=1){let R=true;for(;p(w[T]-w[T-1])&&R;)({value:w[T],changed:R}=m(w,1,T));}for(let T=S;T>0;T-=1){let R=true;for(;p(w[T]-w[T-1])&&R;)({value:w[T-1],changed:R}=m(w,-1,T-1));}for(let T=w.length-1;T>0;T-=1){let R=true;for(;p(w[T]-w[T-1])&&R;)({value:w[T-1],changed:R}=m(w,-1,T-1));}for(let T=0;T<w.length-1;T+=1){let R=true;for(;p(w[T+1]-w[T])&&R;)({value:w[T+1],changed:R}=m(w,1,T+1));}}return {value:w[S],values:w}}]}function tme(e){return f.useMemo(()=>{if(e===true||!e)return [!!e,false,false,0];const{editable:t,draggableTrack:n,minCount:r,maxCount:o}=e;return [true,t,!t&&n,r||0,o]},[e])}const nme=f.forwardRef((e,t)=>{const{prefixCls:n="rc-slider",className:r,style:o,classNames:i,styles:a,id:l,disabled:u=false,keyboard:d=true,autoFocus:m,onFocus:p,onBlur:g,min:b=0,max:y=100,step:S=1,value:C,defaultValue:w,range:$,count:E,onChange:T,onBeforeChange:R,onAfterChange:I,onChangeComplete:N,allowCross:P=true,pushable:O=false,reverse:_,vertical:L,included:k=true,startPoint:W,trackStyle:q,handleStyle:F,railStyle:z,dotStyle:j,activeDotStyle:U,marks:Y,dots:Q,handleRender:D,activeHandleRender:B,track:K,tabIndex:J=0,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaRequired:re,ariaValueTextFormatterForHandle:ie}=e,ue=f.useRef(null),ne=f.useRef(null),ce=f.useMemo(()=>L?_?"ttb":"btt":_?"rtl":"ltr",[_,L]),[fe,se,Me,ae,pe]=tme($),be=f.useMemo(()=>isFinite(b)?b:0,[b]),xe=f.useMemo(()=>isFinite(y)?y:100,[y]),Te=f.useMemo(()=>S!==null&&S<=0?1:S,[S]),Ke=f.useMemo(()=>typeof O=="boolean"?O?Te:false:O>=0?O:false,[O,Te]),Ae=f.useMemo(()=>Object.keys(Y||{}).map(ye=>{const Ce=Y[ye],he={value:Number(ye)};return Ce&&typeof Ce=="object"&&!f.isValidElement(Ce)&&("label"in Ce||"style"in Ce)?(he.style=Ce.style,he.label=Ce.label):he.label=Ce,he}).filter(({label:ye})=>ye||typeof ye=="number").sort((ye,Ce)=>ye.value-Ce.value),[Y]),[de,ve]=eme(be,xe,Te,Ae,P,Ke),[Ne,He]=un(w,C),We=f.useMemo(()=>{const ye=Ne==null?[]:Array.isArray(Ne)?Ne:[Ne],[Ce=be]=ye;let he=Ne===null?[]:[Ce];if(fe){if(he=[...ye],E||Ne===void 0){const De=E>=0?E+1:2;for(he=he.slice(0,De);he.length<De;)he.push(he[he.length-1]??be);}he.sort((De,we)=>De-we);}return he.forEach((De,we)=>{he[we]=de(De);}),he},[Ne,fe,be,E,de]),je=ye=>fe?ye:ye[0],nt=Mt(ye=>{const Ce=[...ye].sort((he,De)=>he-De);T&&!Fl(Ce,We,true)&&T(je(Ce)),He(Ce);}),ot=Mt(ye=>{ye&&ue.current.hideHelp();const Ce=je(We);I?.(Ce),Er(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(Ce);}),Ge=ye=>{if(u||!se||We.length<=ae)return;const Ce=[...We];Ce.splice(ye,1),R?.(je(Ce)),nt(Ce);const he=Math.max(0,ye-1);ue.current.hideHelp(),ue.current.focus(he);},[Oe,qe,Je,Le,Ie]=Jfe(ne,ce,We,be,xe,de,nt,ot,ve,se,ae),ct=(ye,Ce)=>{if(!u){const he=[...We];let De=0,we=0,ze=xe-be;We.forEach((dt,$t)=>{const Tt=Math.abs(ye-dt);Tt<=ze&&(ze=Tt,De=$t),dt<ye&&(we=$t);});let Ye=De;se&&ze!==0&&(!pe||We.length<pe)?(he.splice(we+1,0,ye),Ye=we+1):he[De]=ye,fe&&!We.length&&E===void 0&&he.push(ye);const it=je(he);R?.(it),nt(he),Ce?(document.activeElement?.blur?.(),ue.current.focus(Ye),Ie(Ce,Ye,he)):(I?.(it),Er(!I,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),N?.(it));}},Ot=ye=>{ye.preventDefault();const{width:Ce,height:he,left:De,top:we,bottom:ze,right:Ye}=ne.current.getBoundingClientRect(),{clientX:it,clientY:dt}=ye;let $t;switch(ce){case "btt":$t=(ze-dt)/he;break;case "ttb":$t=(dt-we)/he;break;case "rtl":$t=(Ye-it)/Ce;break;default:$t=(it-De)/Ce;}const Tt=be+$t*(xe-be);ct(de(Tt),ye);},[pt,Lt]=f.useState(null),xt=(ye,Ce)=>{if(!u){const he=ve(We,ye,Ce);R?.(je(We)),nt(he.values),Lt(he.value);}};f.useEffect(()=>{if(pt!==null){const ye=We.indexOf(pt);ye>=0&&ue.current.focus(ye);}Lt(null);},[pt]);const Rt=f.useMemo(()=>Me&&Te===null?false:Me,[Me,Te]),ut=Mt((ye,Ce)=>{Ie(ye,Ce),R?.(je(We));}),ft=Oe!==-1;f.useEffect(()=>{if(!ft){const ye=We.lastIndexOf(qe);ue.current.focus(ye);}},[ft]);const vt=f.useMemo(()=>[...Le].sort((ye,Ce)=>ye-Ce),[Le]),[ke,Ze]=f.useMemo(()=>fe?[vt[0],vt[vt.length-1]]:[be,vt[0]],[vt,fe,be]);f.useImperativeHandle(t,()=>({focus:()=>{ue.current.focus(0);},blur:()=>{const{activeElement:ye}=document;ne.current?.contains(ye)&&ye?.blur();}})),f.useEffect(()=>{m&&ue.current.focus(0);},[]);const Se=f.useMemo(()=>({min:be,max:xe,direction:ce,disabled:u,keyboard:d,step:Te,included:k,includedStart:ke,includedEnd:Ze,range:fe,tabIndex:J,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaRequired:re,ariaValueTextFormatterForHandle:ie,styles:a||{},classNames:i||{}}),[be,xe,ce,u,d,Te,k,ke,Ze,fe,J,ee,te,re,ie,a,i]);return f.createElement(Ou.Provider,{value:Se},f.createElement("div",{ref:ne,className:X(n,r,{[`${n}-disabled`]:u,[`${n}-vertical`]:L,[`${n}-horizontal`]:!L,[`${n}-with-marks`]:Ae.length}),style:o,onMouseDown:Ot,id:l},f.createElement("div",{className:X(`${n}-rail`,i?.rail),style:{...z,...a?.rail}}),K!==false&&f.createElement(Qfe,{prefixCls:n,style:q,values:We,startPoint:W,onStartMove:Rt?ut:void 0}),f.createElement(Xfe,{prefixCls:n,marks:Ae,dots:Q,style:j,activeStyle:U}),f.createElement(qfe,{ref:ue,prefixCls:n,style:F,values:Le,draggingIndex:Oe,draggingDelete:Je,onStartMove:ut,onOffsetChange:xt,onFocus:p,onBlur:g,handleRender:D,activeHandleRender:B,onChangeComplete:ot,onDelete:se?Ge:void 0}),f.createElement(Kfe,{prefixCls:n,marks:Ae,onClick:ct})))}),oH=f.createContext({}),N8=f.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,i=f.useRef(null),a=n&&!r,l=f.useRef(null);function u(){Bt.cancel(l.current),l.current=null;}function d(){l.current=Bt(()=>{i.current?.forceAlign(),l.current=null;});}return f.useEffect(()=>(a?d():u(),u),[a,e.title,o]),f.createElement(rc,{ref:Ur(i,t),...e,open:a})}),rme=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:u,calc:d,handleSize:m,handleSizeHover:p,handleActiveColor:g,handleActiveOutlineColor:b,handleLineWidth:y,handleLineWidthHover:S,motionDurationMid:C}=e;return {[t]:{...dn(e),position:"relative",height:r,margin:`${oe(a)} ${oe(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${oe(i)} ${oe(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${C}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${C}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${oe(y)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:m,height:m,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:d(y).mul(-1).equal(),insetBlockStart:d(y).mul(-1).equal(),width:d(m).add(d(y).mul(2)).equal(),height:d(m).add(d(y).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:m,height:m,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${oe(y)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map(w=>`${w} ${C}`).join(", ")},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:d(p).sub(m).div(2).add(S).mul(-1).equal(),insetBlockStart:d(p).sub(m).div(2).add(S).mul(-1).equal(),width:d(p).add(d(S).mul(2)).equal(),height:d(p).add(d(S).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${oe(S)} ${g}`,outline:`6px solid ${b}`,width:p,height:p,insetInlineStart:e.calc(m).sub(p).div(2).equal(),insetBlockStart:e.calc(m).sub(p).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${oe(y)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:m,height:m,boxShadow:`0 0 0 ${oe(y)} ${u}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-container`]:{minWidth:"unset"}}}},iH=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,u=t?"paddingBlock":"paddingInline",d=t?"width":"height",m=t?"height":"width",p=t?"insetBlockStart":"insetInlineStart",g=t?"top":"insetInlineStart",b=l(r).mul(3).sub(o).div(2).equal(),y=l(o).sub(r).div(2).equal(),S=t?{borderWidth:`${oe(y)} 0`,transform:`translateY(${oe(l(y).mul(-1).equal())})`}:{borderWidth:`0 ${oe(y)}`,transform:`translateX(${oe(e.calc(y).mul(-1).equal())})`};return {[u]:r,[m]:l(r).mul(3).equal(),[`${n}-rail`]:{[d]:"100%",[m]:r},[`${n}-track,${n}-tracks`]:{[m]:r},[`${n}-track-draggable`]:{...S},[`${n}-handle`]:{[p]:b},[`${n}-mark`]:{insetInlineStart:0,top:0,[g]:l(r).mul(3).add(t?0:a).equal(),[d]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[g]:r,[d]:"100%",[m]:r},[`${n}-dot`]:{position:"absolute",[p]:l(r).sub(i).div(2).equal()}}},ome=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:{...iH(e,true),[`&${t}-with-marks`]:{marginBottom:n}}}},ime=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:{...iH(e,false),height:"100%"}}},ame=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,l=new cn(a).setA(.2).toRgbString();return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:l,handleColorDisabled:new cn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},sme=qt("Slider",e=>{const t=Ft(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return [rme(t),ome(t),ime(t)]},ame);function iw(){const[e,t]=f.useState(false),n=f.useRef(null),r=()=>{Bt.cancel(n.current);},o=i=>{r(),i?t(i):n.current=Bt(()=>{t(i);});};return f.useEffect(()=>r,[]),[e,o]}function lme(e){return e||e===null?e:t=>typeof t=="number"?t.toString():""}const rT=G.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:l,tooltip:u={},onChangeComplete:d,classNames:m,styles:p,vertical:g,orientation:b,...y}=e,[,S]=Nu(b,g),{getPrefixCls:C,direction:w,className:$,style:E,classNames:T,styles:R,getPopupContainer:I}=jt("slider"),N=G.useContext(ro),P=l??N,O={...e,disabled:P,vertical:S},[_,L]=Kt([T,m],[R,p],{props:O}),{handleRender:k,direction:W}=G.useContext(oH),F=(W||w)==="rtl",[z,j]=iw(),[U,Y]=iw(),Q={...u},{open:D,placement:B,getPopupContainer:K,prefixCls:J,formatter:ee}=Q,te=D,re=(z||U)&&te!==false,ie=lme(ee),[ue,ne]=iw(),ce=Ae=>{d?.(Ae),ne(false);},fe=(Ae,de)=>Ae||(de?F?"left":"right":"top"),se=C("slider",n),[Me,ae]=sme(se),pe=X(o,$,_.root,i,{[`${se}-rtl`]:F,[`${se}-lock`]:ue},Me,ae);F&&!S&&(y.reverse=!y.reverse),G.useEffect(()=>{const Ae=()=>{Bt(()=>{Y(false);},1);};return document.addEventListener("mouseup",Ae),()=>{document.removeEventListener("mouseup",Ae);}},[]);const be=r&&!te,xe=k||((Ae,de)=>{const{index:ve}=de,Ne=Ae.props;function He(ot,Ge,Oe){Oe&&y[ot]?.(Ge),Ne[ot]?.(Ge);}const We={...Ne,onMouseEnter:ot=>{j(true),He("onMouseEnter",ot);},onMouseLeave:ot=>{j(false),He("onMouseLeave",ot);},onMouseDown:ot=>{Y(true),ne(true),He("onMouseDown",ot);},onFocus:ot=>{Y(true),y.onFocus?.(ot),He("onFocus",ot,true);},onBlur:ot=>{Y(false),y.onBlur?.(ot),He("onBlur",ot,true);}},je=G.cloneElement(Ae,We),nt=(!!te||re)&&ie!==null;return be?je:G.createElement(N8,{...Q,prefixCls:C("tooltip",J),title:ie?ie(de.value):"",value:de.value,open:nt,placement:fe(B,S),key:ve,classNames:{root:`${se}-tooltip`},getPopupContainer:K||I},je)}),Te=be?(Ae,de)=>{const ve=G.cloneElement(Ae,{style:{...Ae.props.style,visibility:"hidden"}});return G.createElement(N8,{...Q,prefixCls:C("tooltip",J),title:ie?ie(de.value):"",open:ie!==null&&re,placement:fe(B,S),key:"tooltip",classNames:{root:`${se}-tooltip`},getPopupContainer:K||I,draggingDelete:de.draggingDelete},ve)}:void 0,Ke={...L.root,...E,...a};return G.createElement(nme,{...y,classNames:_,styles:L,step:y.step,range:r,className:pe,style:Ke,disabled:P,vertical:S,ref:t,prefixCls:se,handleRender:xe,activeHandleRender:Te,onChangeComplete:ce})}),aH=e=>{const{prefixCls:t,colors:n,type:r,color:o,range:i=false,className:a,activeIndex:l,onActive:u,onDragStart:d,onDragChange:m,onKeyDelete:p,...g}=e,b={...g,track:false},y=f.useMemo(()=>`linear-gradient(90deg, ${n.map(I=>`${I.color} ${I.percent}%`).join(", ")})`,[n]),S=f.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),C=Mt(d),w=Mt(m),$=f.useMemo(()=>({onDragStart:C,onDragChange:w}),[]),E=Mt((R,I)=>{const{onFocus:N,style:P,className:O,onKeyDown:_}=R.props,L={...P};return r==="gradient"&&(L.background=Wk(n,I.value)),f.cloneElement(R,{onFocus:k=>{u?.(I.index),N?.(k);},style:L,className:X(O,{[`${t}-slider-handle-active`]:l===I.index}),onKeyDown:k=>{(k.key==="Delete"||k.key==="Backspace")&&p&&p(I.index),_?.(k);}})}),T=f.useMemo(()=>({direction:"ltr",handleRender:E}),[]);return f.createElement(oH.Provider,{value:T},f.createElement(rH.Provider,{value:$},f.createElement(rT,{...b,className:X(a,`${t}-slider`),tooltip:{open:false},range:{editable:i,minCount:2},styles:{rail:{background:y},handle:S?{background:S}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},cme=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=a=>n(a[0]),i=a=>r(a[0]);return f.createElement(aH,{...e,value:[t],onChange:o,onChangeComplete:i})};function P8(e){return Zt(e).sort((t,n)=>t.percent-n.percent)}const ume=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:o,onActive:i,activeIndex:a,onGradientDragging:l,colors:u}=e,d=n==="gradient",m=f.useMemo(()=>u.map(w=>({percent:w.percent,color:w.color.toRgbString()})),[u]),p=f.useMemo(()=>m.map(w=>w.percent),[m]),g=f.useRef(m),b=({rawValues:w,draggingIndex:$,draggingValue:E})=>{if(w.length>m.length){const T=Wk(m,E),R=Zt(m);R.splice($,0,{percent:E,color:T}),g.current=R;}else g.current=m;l(true),r(new Ko(P8(g.current)),true);},y=({deleteIndex:w,draggingIndex:$,draggingValue:E})=>{let T=Zt(g.current);w!==-1?T.splice(w,1):(T[$]={...T[$],percent:E},T=P8(T)),r(new Ko(T),true);},S=w=>{const $=Zt(m);$.splice(w,1);const E=new Ko($);r(E),o(E);},C=w=>{o(new Ko(m)),a>=w.length&&i(w.length-1),l(false);};return d?f.createElement(aH,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:m,color:null,value:p,range:true,onChangeComplete:C,disabled:false,type:"gradient",activeIndex:a,onActive:i,onDragStart:b,onDragChange:y,onKeyDelete:S}):null},dme=f.memo(ume),fme={slider:cme},I8=()=>{const e=f.useContext(U7),{mode:t,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:i,value:a,disabledAlpha:l,onChange:u,onClear:d,onChangeComplete:m,activeIndex:p,gradientDragging:g,...b}=e,y=G.useMemo(()=>a.cleared?[{percent:0,color:new Ko("")},{percent:100,color:new Ko("")}]:a.getColors(),[a]),S=!a.isGradient(),[C,w]=G.useState(a);An(()=>{S||w(y[p]?.color);},[S,y,g,p]);const $=G.useMemo(()=>S?a:g?C:y[p]?.color,[y,a,p,S,C,g]),[E,T]=G.useState($),[R,I]=rk(),N=E?.equals($)?$:E;An(()=>{T($);},[R,$?.toHexString()]);const P=(q,F)=>{let z=oo(q);if(a.cleared){const U=z.toRgb();if(!U.r&&!U.g&&!U.b&&F){const{type:Y,value:Q=0}=F;z=new Ko({h:Y==="hue"?Q:0,s:1,b:1,a:Y==="alpha"?Q/100:1});}else z=qb(z);}if(t==="single")return z;const j=Zt(y);return j[p]={...j[p],color:z},new Ko(j)},O=(q,F,z)=>{const j=P(q,z);T(j.isGradient()?j.getColors()[p].color:j),u(j,F);},_=(q,F)=>{m(P(q,F)),I();},L=q=>{u(P(q));};let k=null;const W=r.length>1;return (i||W)&&(k=G.createElement("div",{className:`${o}-operation`},W&&G.createElement(JR,{size:"small",options:r,value:t,onChange:n}),G.createElement(q7,{prefixCls:o,value:a,onChange:q=>{u(q),d?.();},...b}))),G.createElement(G.Fragment,null,k,G.createElement(dme,{...e,colors:y}),G.createElement(Coe,{prefixCls:o,value:N?.toHsb(),disabledAlpha:l,onChange:(q,F)=>{O(q,true,F);},onChangeComplete:(q,F)=>{_(q,F);},components:fme}),G.createElement(Wfe,{value:$,onChange:L,prefixCls:o,disabledAlpha:l,...b}))},O8=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(W7);return Array.isArray(n)?G.createElement(Hoe,{value:t,presets:n,prefixCls:e,onChange:r}):null},mme=e=>{const{prefixCls:t,presets:n,panelRender:r,value:o,onChange:i,onClear:a,allowClear:l,disabledAlpha:u,mode:d,onModeChange:m,modeOptions:p,onChangeComplete:g,activeIndex:b,onActive:y,format:S,onFormatChange:C,gradientDragging:w,onGradientDragging:$,disabledFormat:E}=e,T=`${t}-inner`,R=G.useMemo(()=>({prefixCls:t,value:o,onChange:i,onClear:a,allowClear:l,disabledAlpha:u,mode:d,onModeChange:m,modeOptions:p,onChangeComplete:g,activeIndex:b,onActive:y,format:S,onFormatChange:C,gradientDragging:w,onGradientDragging:$,disabledFormat:E}),[t,o,i,a,l,u,d,m,p,g,b,y,S,C,w,$,E]),I=G.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),N=G.createElement("div",{className:`${T}-content`},G.createElement(I8,null),Array.isArray(n)&&G.createElement(ql,null),G.createElement(O8,null));return G.createElement(U7.Provider,{value:R},G.createElement(W7.Provider,{value:I},G.createElement("div",{className:T},typeof r=="function"?r(N,{components:{Picker:I8,Presets:O8}}):N)))},hme=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,disabled:i,format:a,className:l,style:u,classNames:d,styles:m,showText:p,activeIndex:g,...b}=e,y=`${r}-trigger`,S=`${y}-text`,C=`${S}-cell`,[w]=_o("ColorPicker"),$=G.useMemo(()=>{if(!p)return "";if(typeof p=="function")return p(n);if(n.cleared)return w.transparent;if(n.isGradient())return n.getColors().map((I,N)=>{const P=g!==-1&&g!==N;return G.createElement("span",{key:N,className:X(C,P&&`${C}-inactive`)},I.color.toRgbString()," ",I.percent,"%")});const T=n.toHexString().toUpperCase(),R=yR(n);switch(a){case "rgb":return n.toRgbString();case "hsb":return n.toHsbString();default:return R<100?`${T.slice(0,7)},${R}%`:T}},[n,a,p,g,w.transparent,C]),E=f.useMemo(()=>n.cleared?G.createElement(q7,{prefixCls:r,className:d.body,style:m.body}):G.createElement(vR,{prefixCls:r,color:n.toCssString(),className:d.body,innerClassName:d.content,style:m.body,innerStyle:m.content}),[n,r,d.body,d.content,m.body,m.content]);return G.createElement("div",{ref:t,className:X(y,l,d.root,{[`${y}-active`]:o,[`${y}-disabled`]:i}),style:{...m.root,...u},...Co(b)},E,p&&G.createElement("div",{className:X(S,d.description),style:m.description},$))});function pme(e,t,n){const[r]=_o("ColorPicker"),[o,i]=un(e,t),[a,l]=f.useState("single"),[u,d]=f.useMemo(()=>{const S=(Array.isArray(n)?n:[n]).filter(E=>E);S.length||S.push("single");const C=new Set(S),w=[],$=(E,T)=>{C.has(E)&&w.push({label:T,value:E});};return $("single",r.singleColor),$("gradient",r.gradientColor),[w,C]},[n,r.singleColor,r.gradientColor]),[m,p]=f.useState(null),g=Mt(S=>{p(S),i(S);}),b=f.useMemo(()=>{const S=oo(o||"");return S.equals(m)?m:S},[o,m]),y=f.useMemo(()=>d.has(a)?a:u[0]?.value,[d,a,u]);return f.useEffect(()=>{l(b.isGradient()?"gradient":"single");},[b]),[b,g,y,l,u]}const sH=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),D8=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return {[`${n}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none",...sH("50%",e.colorFillSecondary),[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${oe(i)} ${a}`,borderRadius:"inherit"}}}},gme=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:u,marginXS:d,fontSizeIcon:m,paddingXS:p,colorTextPlaceholder:g,colorPickerInputNumberHandleWidth:b,lineWidth:y}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,padding:0,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:b}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${oe(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:d,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(m).add(a).equal(),fontSize:r,lineHeight:oe(u)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{height:u,display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${oe(p)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:oe(e.calc(u).sub(e.calc(y).mul(2)).equal())},[`${n}-input-prefix`]:{color:g}}}}}},vme=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:u,colorPickerHandlerSize:d}=e;return {userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:d,height:d,border:`${oe(u)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},bme=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:u,lineWidth:d,borderRadius:m,colorFill:p,colorWhite:g,marginXXS:b,paddingXS:y,fontHeightSM:S}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:S,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:b},[`${n}-collapse-item > ${n}-collapse-panel > ${n}-collapse-body`]:{padding:`${oe(y)} 0`},"&-label":{fontSize:a,color:l,lineHeight:u},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(b).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(d).mul(4)).equal(),height:e.calc(i).add(e.calc(d).mul(4)).equal(),position:"absolute",top:e.calc(d).mul(-2).equal(),insetInlineStart:e.calc(d).mul(-2).equal(),borderRadius:m,border:`${oe(d)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:p},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${oe(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}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:g,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},yme=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:u,marginXS:d}=e,m=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),p=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),g={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return {[`${t}-slider`]:[sH(oe(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:m,height:m,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:true,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:p,height:p,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${oe(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":g}}],[`${t}-slider-container`]:{display:"flex",gap:u,marginBottom:u,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:d,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":g}}}},XE=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${oe(e.controlOutlineWidth)} ${n}`,outline:0}),Sme=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},_8=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:u}=e;return {[`${r}-clear`]:{width:t,height:t,borderRadius:o,border:`${oe(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...n,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:u},"&:hover":{borderColor:l}}}},Cme=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:{...XE(e,n,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...XE(e,r,l)}}}},xme=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:u,borderRadiusLG:d,fontSizeLG:m}=e;return {[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:d,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:m}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:u},[`${t}-trigger-text`]:{lineHeight:oe(i)}}}},wme=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:u,colorBgContainerDisabled:d,borderRadius:m,marginXS:p,marginSM:g,controlHeight:b,controlHeightSM:y,colorBgTextActive:S,colorPickerPresetColorSize:C,colorPickerPreviewSize:w,lineWidth:$,colorBorder:E,paddingXXS:T,fontSize:R,colorPrimaryHover:I,controlOutline:N}=e;return [{[n]:{[`${n}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${oe(g)} 0 ${oe(p)}`}},[`${n}-panel`]:{...vme(e)},...yme(e),...D8(e,w),...gme(e),...bme(e),..._8(e,C,{marginInlineStart:"auto"}),[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:p}},"&-trigger":{minWidth:b,minHeight:b,borderRadius:m,border:`${oe($)} solid ${E}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(T).sub($).equal(),[`${n}-trigger-text`]:{marginInlineStart:p,marginInlineEnd:e.calc(p).sub(e.calc(T).sub($)).equal(),fontSize:R,color:u,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:I},[`&${n}-trigger-active`]:{...XE(e,o,N)},"&-disabled":{color:l,background:d,cursor:"not-allowed","&:hover":{borderColor:S},[`${n}-trigger-text`]:{color:l}},..._8(e,y),...D8(e,y),...Cme(e),...xme(e)},...Sme(e)}},Lf(e,{focusElCls:`${n}-trigger-active`})]},$me=qt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=Ft(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return wme(o)}),oT=e=>{const{mode:t,value:n,defaultValue:r,format:o,defaultFormat:i,allowClear:a=false,presets:l,children:u,trigger:d="click",open:m,disabled:p,placement:g="bottomLeft",arrow:b,panelRender:y,showText:S,style:C,className:w,size:$,rootClassName:E,prefixCls:T,styles:R,classNames:I,disabledAlpha:N=false,onFormatChange:P,onChange:O,onClear:_,onOpenChange:L,onChangeComplete:k,getPopupContainer:W,autoAdjustOverflow:q=true,destroyTooltipOnHide:F,destroyOnHidden:z,disabledFormat:j,...U}=e,{getPrefixCls:Y,direction:Q,className:D,style:B,classNames:K,styles:J,arrow:ee}=jt("colorPicker"),te=f.useContext(ro),re=p??te,ie=Y("color-picker",T),ue=c1(b,ee),{compactSize:ne,compactItemClassnames:ce}=Fs(ie,Q),fe=lo(ye=>$??ne??ye),se={...e,trigger:d,allowClear:a,autoAdjustOverflow:q,disabledAlpha:N,arrow:ue,placement:g,disabled:re,size:fe},[Me,ae]=Kt([K,I],[J,R],{props:se},{popup:{_default:"root"}}),[pe,be]=un(false,m),xe=!re&&pe,[Te,Ke]=un(i,o),Ae=ye=>{Ke(ye),Te!==ye&&P?.(ye);},de=ye=>{(!ye||!re)&&(be(ye),L?.(ye));},[ve,Ne,He,We,je]=pme(r,n,t),nt=f.useMemo(()=>yR(ve)<100,[ve]),[ot,Ge]=G.useState(null),Oe=ye=>{if(k){let Ce=oo(ye);N&&nt&&(Ce=qb(ye)),k(Ce);}},qe=(ye,Ce)=>{let he=oo(ye);N&&nt&&(he=qb(he)),Ne(he),Ge(null),O&&O(he,he.toCssString()),Ce||Oe(he);},[Je,Le]=G.useState(0),[Ie,ct]=G.useState(false),Ot=ye=>{if(We(ye),ye==="single"&&ve.isGradient())Le(0),qe(new Ko(ve.getColors()[0].color)),Ge(ve);else if(ye==="gradient"&&!ve.isGradient()){const Ce=nt?qb(ve):ve;qe(new Ko(ot||[{percent:0,color:Ce},{percent:100,color:Ce}]));}},{status:pt}=G.useContext(xo),Lt=Qn(ie),[xt,Rt]=$me(ie,Lt),ut={[`${ie}-rtl`]:Q},ft=X(E,Rt,Lt,ut),vt=X(Wl(ie,pt),{[`${ie}-sm`]:fe==="small",[`${ie}-lg`]:fe==="large"},ce,D,ft,w,xt),ke=X(ie,ft,Me.popup?.root),Ze={open:xe,trigger:d,placement:g,arrow:ue,rootClassName:E,getPopupContainer:W,autoAdjustOverflow:q,destroyOnHidden:z??!!F},Se={...B,...C};return G.createElement(Jo,{classNames:{root:ke},styles:{root:ae.popup?.root,container:R?.popupOverlayInner},onOpenChange:de,content:G.createElement(Ul,{form:true},G.createElement(mme,{mode:He,onModeChange:Ot,modeOptions:je,prefixCls:ie,value:ve,allowClear:a,disabled:re,disabledAlpha:N,presets:l,panelRender:y,format:Te,onFormatChange:Ae,onChange:qe,onChangeComplete:Oe,onClear:_,activeIndex:Je,onActive:Le,gradientDragging:Ie,onGradientDragging:ct,disabledFormat:j})),...Ze},u||G.createElement(hme,{activeIndex:xe?Je:-1,open:xe,className:vt,style:Se,classNames:Me,styles:ae,prefixCls:ie,disabled:re,showText:S,format:Te,...U,color:ve}))},Eme=AR(oT,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);oT._InternalPanelDoNotUseOrYouWillBeFired=Eme;function ny(e){return ["small","middle","large"].includes(e)}function L8(e){return e?typeof e=="number"&&!Number.isNaN(e):false}const lH=G.createContext({latestIndex:0}),Mme=lH.Provider,Rme=e=>{const{className:t,prefix:n,index:r,children:o,separator:i,style:a,classNames:l,styles:u}=e,{latestIndex:d}=f.useContext(lH);return Pr(o)?f.createElement(f.Fragment,null,f.createElement("div",{className:t,style:a},o),r<d&&i&&f.createElement("span",{className:X(`${n}-item-separator`,l?.separator),style:u?.separator},i)):null},Tme=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"}}}},Ame=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}}}},Nme=qt("Space",e=>{const t=Ft(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Tme(t),Ame(t)]},()=>({}),{resetStyle:false}),Pme=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:o,className:i,style:a,classNames:l,styles:u}=jt("space"),{size:d=o??"small",align:m,className:p,rootClassName:g,children:b,direction:y,orientation:S,prefixCls:C,split:w,separator:$,style:E,vertical:T,wrap:R=false,classNames:I,styles:N,...P}=e,[O,_]=Array.isArray(d)?d:[d,d],L=ny(_),k=ny(O),W=L8(_),q=L8(O),F=Zo(b,{keepEmpty:true}),[z,j]=Nu(S,T,y),U=m===void 0&&!j?"center":m,Y=$??w,Q=n("space",C),[D,B]=Nme(Q),K={...e,size:d,orientation:z,align:U},[J,ee]=Kt([l,I],[u,N],{props:K}),te=X(Q,i,D,`${Q}-${z}`,{[`${Q}-rtl`]:r==="rtl",[`${Q}-align-${U}`]:U,[`${Q}-gap-row-${_}`]:L,[`${Q}-gap-col-${O}`]:k},p,g,B,J.root),re=X(`${Q}-item`,J.item),ie=F.map((ce,fe)=>{const se=ce?.key||`${re}-${fe}`;return f.createElement(Rme,{prefix:Q,classNames:J,styles:ee,className:re,key:se,index:fe,separator:Y,style:ee.item},ce)}),ue=f.useMemo(()=>({latestIndex:F.reduce((fe,se,Me)=>Pr(se)?Me:fe,0)}),[F]);if(F.length===0)return null;const ne={};return R&&(ne.flexWrap="wrap"),!k&&q&&(ne.columnGap=O),!L&&W&&(ne.rowGap=_),f.createElement("div",{ref:t,className:te,style:{...ne,...ee.root,...a,...E},...P},f.createElement(Mme,{value:ue},ie))}),eo=Pme;eo.Compact=uR;eo.Addon=Q7;const cH=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f.useContext(wt),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:u,onClick:d,htmlType:m,children:p,className:g,menu:b,arrow:y,autoFocus:S,trigger:C,align:w,open:$,onOpenChange:E,placement:T,getPopupContainer:R,href:I,icon:N=f.createElement(qR,null),title:P,buttonsRender:O=ne=>ne,mouseEnterDelay:_,mouseLeaveDelay:L,overlayClassName:k,overlayStyle:W,destroyOnHidden:q,destroyPopupOnHide:F,dropdownRender:z,popupRender:j,...U}=e,Y=n("dropdown",o),Q=`${Y}-button`,B={menu:b,arrow:y,autoFocus:S,align:w,disabled:l,trigger:l?[]:C,onOpenChange:E,getPopupContainer:R||t,mouseEnterDelay:_,mouseLeaveDelay:L,classNames:{root:k},styles:{root:W},destroyOnHidden:q,popupRender:j||z},{compactSize:K,compactItemClassnames:J}=Fs(Y,r),ee=X(Q,J,g);"destroyPopupOnHide"in e&&(B.destroyPopupOnHide=F),"open"in e&&(B.open=$),"placement"in e?B.placement=T:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=f.createElement(lt,{type:i,danger:a,disabled:l,loading:u,onClick:d,htmlType:m,href:I,title:P},p),re=f.createElement(lt,{type:i,danger:a,icon:N}),[ie,ue]=O([te,re]);return f.createElement(eo.Compact,{className:ee,size:K,block:true,...U},ie,f.createElement(h1,{...B},ue))};cH.__ANT_BUTTON=true;const ic=h1;ic.Button=cH;const uH=["wrap","nowrap","wrap-reverse"],dH=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],fH=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Ime=(e,t)=>{const n=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${n}`]:n&&uH.includes(n)}},Ome=(e,t)=>{const n={};return fH.forEach(r=>{n[`${e}-align-${r}`]=t.align===r;}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Dme=(e,t)=>{const n={};return dH.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r;}),n},_me=(e,t)=>X({...Ime(e,t),...Ome(e,t),...Dme(e,t)}),Lme=e=>{const{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Bme=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},zme=e=>{const{componentCls:t}=e,n={};return uH.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r};}),n},kme=e=>{const{componentCls:t}=e,n={};return fH.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r};}),n},Fme=e=>{const{componentCls:t}=e,n={};return dH.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r};}),n},Hme=()=>({}),Vme=qt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Ft(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return [Lme(o),Bme(o),zme(o),kme(o),Fme(o)]},Hme,{resetStyle:false}),jme=G.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:a,gap:l,vertical:u,orientation:d,component:m="div",children:p,...g}=e,{flex:b,direction:y,getPrefixCls:S}=G.useContext(wt),C=S("flex",n),[w,$]=Vme(C),[,E]=Nu(d,u??b?.vertical),T=X(o,r,b?.className,C,w,$,_me(C,{...e,vertical:E}),{[`${C}-rtl`]:y==="rtl",[`${C}-gap-${l}`]:ny(l),[`${C}-vertical`]:E}),R={...b?.style,...i};return Pr(a)&&(R.flex=a),Pr(l)&&!ny(l)&&(R.gap=l),G.createElement(m,{ref:t,className:T,style:R,...zn(g,["justify","wrap","align"])},p)}),ry=G.createContext(null);var Ume={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function QE(){return QE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},QE.apply(this,arguments)}const Wme=(e,t)=>f.createElement(Xn,QE({},e,{ref:t,icon:Ume})),mH=f.forwardRef(Wme),qme=(e,t)=>Pr(e)?typeof e=="object"&&!f.isValidElement(e)?{...t,...e}:{...t,title:e}:null,Gme=e=>{const{componentCls:t,floatButtonSize:n,iconCls:r,antCls:o,floatButtonIconSize:i}=e,[a,l]=tr(o,"float-btn"),u=`${t}-badge`,d=Math.SQRT2,m=(d-1)/d,p=e.calc(e.borderRadius).mul(m).equal(),g=e.calc(e.controlHeight).div(2).mul(m).equal();return {[t]:[{[a("size")]:oe(n)},{flexDirection:"column",margin:0,padding:`${oe(e.paddingXXS)} 0`,width:l("size"),minHeight:l("size"),height:"auto",wordBreak:"break-word",whiteSpace:"normal",gap:e.calc(e.paddingXXS).div(2).equal(),"&-rtl":{direction:"rtl"},[`&${t}-individual`]:{position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary},[`&${t}-pure`]:{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-icon`]:{lineHeight:1},[`&${t}-icon-only`]:{[r]:{fontSize:i}},[`${t}-content`]:{fontSize:e.fontSizeSM},[u]:{position:"absolute",top:0,insetInlineEnd:0,[`&:not(${u}-dot)`]:{transform:"translate(50%, -50%)"}},[`&-rtl ${u}:not(${u}-dot)`]:{transform:"translate(-50%, -50%)"},"&-square":{[`${u}-dot`]:{marginTop:p,marginInlineEnd:p}},"&-circle":{[u]:{marginTop:g,marginInlineEnd:g}}}]}},Kme=e=>{const{componentCls:t,antCls:n,floatButtonSize:r,padding:o}=e,i=`${t}-group`,a=`${i}-list`,[l,u]=tr(n,"float-btn");return {[i]:[{[l("list-transform-start")]:`translate(0,${oe(r)})`,[l("list-trigger-offset")]:`calc(${oe(r)} + ${oe(o)})`},{...dn(e),position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,gap:o,"&-rtl":{direction:"rtl"},[`&${t}-pure`]:{position:"relative",inset:"auto"},[t]:{position:"relative",inset:"auto"}},{[`&:not(${i}-individual) ${a}`]:{boxShadow:e.boxShadowSecondary},[`&${i}-individual ${a}`]:{gap:o},[`&-menu-mode ${a}`]:{position:"absolute"},[a]:{borderRadius:e.borderRadiusLG,"&-motion":{transition:`all ${e.motionDurationSlow}`,"&-enter, &-appear":{opacity:0,transform:u("list-transform-start"),"&-active":{opacity:1,transform:"translate(0, 0)"}},"&-leave":{"&-active":{opacity:0,transform:u("list-transform-start")}}}},"&-top":{[a]:{bottom:u("list-trigger-offset")}},"&-bottom":{[a]:{[l("list-transform-start")]:`translate(0, calc(${oe(r)} * -1))`,top:u("list-trigger-offset")}},"&-left":{[a]:{[l("list-transform-start")]:`translate(${oe(r)}, 0)`,right:u("list-trigger-offset")}},"&-right":{[a]:{[l("list-transform-start")]:`translate(calc(${oe(r)} * -1), 0)`,left:u("list-trigger-offset")}}}]}},Yme=()=>({}),hH=qt("FloatButton",e=>{const{controlHeightLG:t,marginXXL:n,marginLG:r,fontSizeIcon:o,calc:i}=e,a=Ft(e,{floatButtonIconSize:i(o).mul(1.5).equal(),floatButtonSize:t,floatButtonInsetBlockEnd:n,floatButtonInsetInlineEnd:r});return [Gme(a),Kme(a),fR(e)]},Yme,{order:-998}),b1="float-btn",Xme=G.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,type:a="default",shape:l="circle",icon:u,description:d,content:m,tooltip:p,badge:g={},classNames:b,styles:y,...S}=e,{getPrefixCls:C,direction:w}=G.useContext(wt),$=G.useContext(ry),E=C(b1,n),T=Qn(E),{shape:R,individual:I,classNames:N,styles:P}=$||{},O=R||l,_=I??true,L=m??d,k={...e,type:a,shape:O},[W,q]=hH(E,T),F=G.useMemo(()=>({icon:`${E}-icon`,content:`${E}-content`}),[E]),[z,j]=Kt([F,N,b],[P,y],{props:k}),U=!L&&!u?G.createElement(mH,null):u,[Y]=Pu("FloatButton",i?.zIndex),Q={...i,zIndex:Y},D=zn(g,["title","children","status","text"]),B="badge"in e&&G.createElement(d1,{...D,className:X(D.className,`${E}-badge`,{[`${E}-badge-dot`]:D.dot})}),K=qme(p);let J=G.createElement(lt,{...S,ref:t,className:X(W,q,T,E,r,o,`${E}-${a}`,`${E}-${O}`,{[`${E}-rtl`]:w==="rtl",[`${E}-individual`]:_,[`${E}-icon-only`]:!L}),classNames:z,styles:j,style:Q,shape:O,type:a,size:"large",icon:U,_skipSemantic:true},L,B);return K&&(J=G.createElement(rc,{...K},J)),J}),Du=Xme,Qme=G.createElement($ce,null),pH=G.forwardRef((e,t)=>{const{backTopIcon:n}=jt("floatButton"),{prefixCls:r,className:o,type:i="default",shape:a="circle",visibilityHeight:l=400,icon:u,target:d,onClick:m,duration:p=450,...g}=e,b=u??n??Qme,[y,S]=f.useState(l===0),C=G.useRef(null);G.useImperativeHandle(t,()=>({nativeElement:C.current}));const w=()=>C.current?.ownerDocument||window,$=IJ(_=>{const L=ik(_.target);S(L>=l);});f.useEffect(()=>{const L=(d||w)();return $({target:L}),L?.addEventListener("scroll",$),()=>{$.cancel(),L?.removeEventListener("scroll",$);}},[d]);const E=_=>{hne(0,{getContainer:d||w,duration:p}),m?.(_);},{getPrefixCls:T}=f.useContext(wt),R=T(b1,r),I=T(),P=f.useContext(ry)?.shape||a,O={prefixCls:R,icon:b,type:i,shape:P,...g};return G.createElement(wo,{visible:y,motionName:`${I}-fade`},({className:_},L)=>G.createElement(Du,{ref:Ur(C,L),...O,onClick:E,className:X(o,_)}))}),gH=e=>{const{prefixCls:t,className:n,style:r,classNames:o,styles:i,rootClassName:a,shape:l="circle",type:u="default",placement:d,icon:m=G.createElement(mH,null),closeIcon:p,trigger:g,children:b,onOpenChange:y,open:S,onClick:C,...w}=e,{direction:$,getPrefixCls:E,closeIcon:T,classNames:R,styles:I,className:N,style:P}=jt("floatButtonGroup"),O=p??T??G.createElement(zs,null),_=E(b1,t),L=Qn(_),[k,W]=hH(_,L),q=`${_}-group`,F=g&&["click","hover"].includes(g),[z]=Pu("FloatButton",r?.zIndex),j=G.useRef(null),U=["top","left","right","bottom"].includes(d)?d:"top",[Y,Q]=un(false,S),D=g==="hover",B=g==="click",K=Mt(pe=>{Y!==pe&&(Q(pe),y?.(pe));}),J=()=>{D&&K(true);},ee=()=>{D&&K(false);},te=pe=>{B&&K(!Y),C?.(pe);};G.useEffect(()=>{if(B){const pe=be=>{j.current?.contains(be.target)||K(false);};return document.addEventListener("click",pe,{capture:true}),()=>document.removeEventListener("click",pe,{capture:true})}},[B]);const re=l==="circle",ie={...e,shape:l,type:u,placement:U},[ue,ne]=Kt([R,o],[I,i],{props:ie}),ce=G.useMemo(()=>({shape:l,individual:re,classNames:{root:ue.item,icon:ue.itemIcon,content:ue.itemContent},styles:{root:ne.item,icon:ne.itemIcon,content:ne.itemContent}}),[l,re,ue,ne]),fe=G.useMemo(()=>({...ce,individual:true,classNames:{root:ue.trigger,icon:ue.triggerIcon,content:ue.triggerContent},styles:{root:ne.trigger,icon:ne.triggerIcon,content:ne.triggerContent}}),[ce,ue,ne]);let se;const Me=`${q}-list`,ae=pe=>{const be=U==="top"||U==="bottom",xe={className:X(Me,ue.list,pe),style:ne.list};return re?se=G.createElement(jme,{vertical:be,...xe},b):se=G.createElement(eo.Compact,{vertical:be,...xe},b),se};return G.createElement(ry.Provider,{value:ce},G.createElement("div",{className:X(q,k,W,L,N,ue.root,n,a,{[`${q}-rtl`]:$==="rtl",[`${q}-individual`]:re,[`${q}-${U}`]:F,[`${q}-menu-mode`]:F}),style:{...P,zIndex:z,...ne.root,...r},ref:j,onMouseEnter:J,onMouseLeave:ee},F?G.createElement(wo,{visible:Y,motionName:`${Me}-motion`},({className:pe})=>ae(pe)):ae(),F&&G.createElement(ry.Provider,{value:fe},G.createElement(Du,{type:u,icon:Y?O:m,"aria-label":e["aria-label"],className:`${q}-trigger`,onClick:te,...w}))))},B8=({backTop:e,...t})=>e?f.createElement(pH,{...t,visibilityHeight:0}):f.createElement(Du,{...t}),Zme=({className:e,items:t,classNames:n,styles:r,prefixCls:o,...i})=>{const{getPrefixCls:a}=f.useContext(wt),u=`${a(b1,o)}-pure`;return t?f.createElement(gH,{className:X(e,u),classNames:n,styles:r,...i},t.map((d,m)=>f.createElement(B8,{key:m,...d}))):f.createElement(B8,{className:X(e,u),classNames:n,styles:r,...i})};Du.BackTop=pH;Du.Group=gH;Du._InternalPanelDoNotUseOrYouWillBeFired=Zme;const Jme=e=>{const{getPrefixCls:t,direction:n}=f.useContext(wt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,u]=_7(a),d=X(i,u,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),m=f.useContext(xo),p=f.useMemo(()=>({...m,isFormItemInput:false}),[m]);return f.createElement(xo.Provider,{value:p},f.createElement(eo.Compact,{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},ehe=e=>{const{componentCls:t,paddingXS:n}=e;return {[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},the=qt(["Input","OTP"],e=>{const t=Ft(e,Hf(e));return ehe(t)},Vf),nhe=f.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:l,onFocus:u,...d}=e,{getPrefixCls:m}=f.useContext(wt),p=m("otp"),g=typeof l=="string"?l:r,b=f.useRef(null);f.useImperativeHandle(t,()=>b.current);const y=$=>{o(a,$.target.value);},S=()=>{Bt(()=>{const $=b.current?.input;document.activeElement===$&&$&&$.select();});},C=$=>{u?.($),S();},w=$=>{const{key:E,ctrlKey:T,metaKey:R}=$;E==="ArrowLeft"?i(a-1):E==="ArrowRight"?i(a+1):E==="z"&&(T||R)?$.preventDefault():E==="Backspace"&&!r&&i(a-1),S();};return f.createElement("span",{className:`${p}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&f.createElement("span",{className:`${p}-mask-icon`,"aria-hidden":"true"},g),f.createElement(jf,{"aria-label":`OTP Input ${a+1}`,type:l===true?"password":"text",...d,ref:b,value:r,onInput:y,onFocus:C,onKeyDown:w,onMouseDown:S,onMouseUp:S,className:X(n,{[`${p}-mask-input`]:l})}))});function fb(e){return (e||"").split("")}const rhe=e=>{const{index:t,prefixCls:n,separator:r,className:o,style:i}=e,a=typeof r=="function"?r(t):r;return a?f.createElement("span",{className:X(`${n}-separator`,o),style:i},a):null},ohe=f.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:u,separator:d,variant:m,disabled:p,status:g,autoFocus:b,mask:y,type:S,autoComplete:C,onInput:w,onFocus:$,inputMode:E,classNames:T,styles:R,className:I,style:N,...P}=e,{classNames:O,styles:_,getPrefixCls:L,direction:k,style:W,className:q}=jt("otp"),F=L("otp",n),z={...e,length:r},[j,U]=Kt([O,T],[_,R],{props:z}),Y=Co(P,{aria:true,data:true,attr:true}),[Q,D]=the(F),B=lo(be=>o??be),K=f.useContext(xo),J=zf(K.status,g),ee=f.useMemo(()=>({...K,status:J,hasFeedback:false,feedbackIcon:null}),[K,J]),te=f.useRef(null),re=f.useRef({});f.useImperativeHandle(t,()=>({focus:()=>{re.current[0]?.focus();},blur:()=>{for(let be=0;be<r;be+=1)re.current[be]?.blur();},nativeElement:te.current}));const ie=be=>u?u(be):be,[ue,ne]=f.useState(()=>fb(ie(i||"")));f.useEffect(()=>{a!==void 0&&ne(fb(a));},[a]);const ce=Mt(be=>{ne(be),w&&w(be),l&&be.length===r&&be.every(xe=>xe)&&be.some((xe,Te)=>ue[Te]!==xe)&&l(be.join(""));}),fe=Mt((be,xe)=>{let Te=Zt(ue);for(let Ae=0;Ae<be;Ae+=1)Te[Ae]||(Te[Ae]="");xe.length<=1?Te[be]=xe:Te=Te.slice(0,be).concat(fb(xe)),Te=Te.slice(0,r);for(let Ae=Te.length-1;Ae>=0&&!Te[Ae];Ae-=1)Te.pop();const Ke=ie(Te.map(Ae=>Ae||" ").join(""));return Te=fb(Ke).map((Ae,de)=>Ae===" "&&!Te[de]?Te[de]:Ae),Te}),se=(be,xe)=>{const Te=fe(be,xe),Ke=Math.min(be+xe.length,r-1);Ke!==be&&Te[be]!==void 0&&re.current[Ke]?.focus(),ce(Te);},Me=be=>{re.current[be]?.focus();},ae=(be,xe)=>{for(let Te=0;Te<xe;Te+=1)if(!re.current[Te]?.input?.value){re.current[Te]?.focus();break}$?.(be);},pe={variant:m,disabled:p,status:J,mask:y,type:S,inputMode:E,autoComplete:C};return f.createElement("div",{...Y,ref:te,className:X(I,F,{[`${F}-sm`]:B==="small",[`${F}-lg`]:B==="large",[`${F}-rtl`]:k==="rtl"},D,Q,q,j.root),style:{...U.root,...W,...N},role:"group"},f.createElement(xo.Provider,{value:ee},Array.from({length:r}).map((be,xe)=>{const Te=`otp-${xe}`,Ke=ue[xe]||"";return f.createElement(f.Fragment,{key:Te},f.createElement(nhe,{ref:Ae=>{re.current[xe]=Ae;},index:xe,size:B,htmlSize:1,className:X(j.input,`${F}-input`),style:U.input,onChange:se,value:Ke,onActiveChange:Me,autoFocus:xe===0&&b,onFocus:Ae=>ae(Ae,xe),...pe}),xe<r-1&&f.createElement(rhe,{separator:d,index:xe,prefixCls:F,className:X(j.separator),style:U.separator}))})))});var ihe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function ZE(){return ZE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},ZE.apply(this,arguments)}const ahe=(e,t)=>f.createElement(Xn,ZE({},e,{ref:t,icon:ihe})),she=f.forwardRef(ahe);var lhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function JE(){return JE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},JE.apply(this,arguments)}const che=(e,t)=>f.createElement(Xn,JE({},e,{ref:t,icon:lhe})),uhe=f.forwardRef(che),dhe=e=>e?f.createElement(uhe,null):f.createElement(she,null),fhe={click:"onClick",hover:"onMouseOver"},mhe=f.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=true,iconRender:i=dhe,suffix:a}=e,l=f.useContext(ro),u=n??l,d=typeof o=="object"&&o.visible!==void 0,[m,p]=f.useState(()=>d?o.visible:false),g=f.useRef(null);f.useEffect(()=>{d&&p(o.visible);},[d,o]);const b=nH(g),y=()=>{if(u)return;m&&b();const L=!m;p(L),typeof o=="object"&&o.onVisibleChange?.(L);},S=L=>{const k=fhe[r]||"",W=i(m),q={[k]:y,className:`${L}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault();},onMouseUp:F=>{F.preventDefault();}};return f.cloneElement(f.isValidElement(W)?W:f.createElement("span",null,W),q)},{className:C,prefixCls:w,inputPrefixCls:$,size:E,...T}=e,{getPrefixCls:R}=f.useContext(wt),I=R("input",$),N=R("input-password",w),P=o&&S(N),O=X(N,C,{[`${N}-${E}`]:!!E}),_={...zn(T,["suffix","iconRender","visibilityToggle"]),type:m?"text":"password",className:O,prefixCls:I,suffix:f.createElement(f.Fragment,null,P,a)};return E&&(_.size=E),f.createElement(jf,{ref:Ur(t,g),..._})}),hhe=e=>{const{componentCls:t}=e,n=`${t}-btn`;return {[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}},phe=qt(["Input","Search"],hhe),ghe=f.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,style:a,enterButton:l=false,addonAfter:u,loading:d,disabled:m,onSearch:p,onChange:g,onCompositionStart:b,onCompositionEnd:y,variant:S,onPressEnter:C,classNames:w,styles:$,hidden:E,...T}=e,{direction:R,getPrefixCls:I,classNames:N,styles:P}=jt("inputSearch"),O={...e,enterButton:l},[_,L]=Kt([N,w],[P,$],{props:O},{button:{_default:"root"}}),k=f.useRef(false),W=I("input-search",n),q=I("input",r),[F,z]=phe(W),{compactSize:j}=Fs(W,R),U=lo(ae=>i??j??ae),Y=f.useRef(null),Q=ae=>{ae?.target&&ae.type==="click"&&p&&p(ae.target.value,ae,{source:"clear"}),g?.(ae);},D=ae=>{document.activeElement===Y.current?.input&&ae.preventDefault();},B=ae=>{p&&p(Y.current?.input?.value,ae,{source:"input"});},K=ae=>{k.current||d||(C?.(ae),B(ae));},J=typeof l=="boolean"?f.createElement(LR,null):null,ee=`${W}-btn`,te=X(ee,{[`${ee}-${S}`]:S});let re;const ie=l||{},ue=ie.type&&ie.type.__ANT_BUTTON===true;ue||ie.type==="button"?re=jr(ie,{onMouseDown:D,onClick:ae=>{ie?.props?.onClick?.(ae),B(ae);},key:"enterButton",...ue?{className:te,size:U}:{}}):re=f.createElement(lt,{classNames:_.button,styles:L.button,className:te,color:l?"primary":"default",size:U,disabled:m,key:"enterButton",onMouseDown:D,onClick:B,loading:d,icon:J,variant:S==="borderless"||S==="filled"||S==="underlined"?"text":l?"solid":void 0},l),u&&(re=[re,jr(u,{key:"addonAfter"})]);const ne=X(W,z,{[`${W}-rtl`]:R==="rtl",[`${W}-${U}`]:!!U,[`${W}-with-button`]:!!l},o,F,_.root),ce=ae=>{k.current=true,b?.(ae);},fe=ae=>{k.current=false,y?.(ae);},se=Co(T,{data:true}),Me=zn({...T,classNames:zn(_,["button","root"]),styles:zn(L,["button","root"]),prefixCls:q,type:"search",size:U,variant:S,onPressEnter:K,onCompositionStart:ce,onCompositionEnd:fe,onChange:Q,disabled:m},Object.keys(se));return f.createElement(uR,{className:ne,style:{...a,...L.root},...se,hidden:E},f.createElement(jf,{ref:Ur(Y,t),...Me}),re)}),vhe=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,bhe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],aw={};let ui;function yhe(e,t=false){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&aw[n])return aw[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u={sizingStyle:bhe.map(d=>`${d}:${r.getPropertyValue(d)}`).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(aw[n]=u),u}function She(e,t=false,n=null,r=null){ui||(ui=document.createElement("textarea"),ui.setAttribute("tab-index","-1"),ui.setAttribute("aria-hidden","true"),ui.setAttribute("name","hiddenTextarea"),document.body.appendChild(ui)),e.getAttribute("wrap")?ui.setAttribute("wrap",e.getAttribute("wrap")):ui.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:a,sizingStyle:l}=yhe(e,t);ui.setAttribute("style",`${l};${vhe}`),ui.value=e.value||e.placeholder||"";let u,d,m,p=ui.scrollHeight;if(a==="border-box"?p+=i:a==="content-box"&&(p-=o),n!==null||r!==null){ui.value=" ";const b=ui.scrollHeight-o;n!==null&&(u=b*n,a==="border-box"&&(u=u+o+i),p=Math.max(u,p)),r!==null&&(d=b*r,a==="border-box"&&(d=d+o+i),m=p>d?"":"hidden",p=Math.min(d,p));}const g={height:p,overflowY:m,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}function e3(){return e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},e3.apply(this,arguments)}const sw=0,lw=1,cw=2,Che=f.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:o,autoSize:i,onResize:a,className:l,style:u,disabled:d,onChange:m,onInternalAutoSize:p,...g}=e,[b,y]=un(r,o),S=b??"",C=F=>{y(F.target.value),m?.(F);},w=f.useRef();f.useImperativeHandle(t,()=>({textArea:w.current}));const[$,E]=f.useMemo(()=>i&&typeof i=="object"?[i.minRows,i.maxRows]:[],[i]),T=!!i,[R,I]=f.useState(cw),[N,P]=f.useState(),O=()=>{I(sw);};An(()=>{T&&O();},[o,$,E,T]),An(()=>{if(R===sw)I(lw);else if(R===lw){const F=She(w.current,false,$,E);I(cw),P(F);}},[R]);const _=f.useRef(),L=()=>{Bt.cancel(_.current);},k=F=>{R===cw&&(a?.(F),i&&(L(),_.current=Bt(()=>{O();})));};f.useEffect(()=>L,[]);const q={...u,...T?N:null};return (R===sw||R===lw)&&(q.overflowY="hidden",q.overflowX="hidden"),f.createElement(ma,{onResize:k,disabled:!(i||a)},f.createElement("textarea",e3({},g,{ref:w,style:q,className:X(n,l,{[`${n}-disabled`]:d}),disabled:d,value:S,onChange:C})))});function t3(){return t3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},t3.apply(this,arguments)}const xhe=G.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:o,allowClear:i,maxLength:a,onCompositionStart:l,onCompositionEnd:u,suffix:d,prefixCls:m="rc-textarea",showCount:p,count:g,className:b,style:y,disabled:S,hidden:C,classNames:w,styles:$,onResize:E,onClear:T,onPressEnter:R,readOnly:I,autoSize:N,onKeyDown:P,...O},_)=>{const[L,k]=un(e,t),W=L==null?"":String(L),[q,F]=G.useState(false),z=G.useRef(false),[j,U]=G.useState(null),Y=f.useRef(null),Q=f.useRef(null),D=()=>Q.current?.textArea,B=()=>{D().focus();};f.useImperativeHandle(_,()=>({resizableTextArea:Q.current,focus:B,blur:()=>{D().blur();},nativeElement:Y.current?.nativeElement||D()})),f.useEffect(()=>{F(de=>!S&&de);},[S]);const[K,J]=G.useState(null);G.useEffect(()=>{K&&D().setSelectionRange(...K);},[K]);const ee=eH(g,p),te=ee.max??a,re=Number(te)>0,ie=ee.strategy(W),ue=!!te&&ie>te,ne=(de,ve)=>{let Ne=ve;!z.current&&ee.exceedFormatter&&ee.max&&ee.strategy(ve)>ee.max&&(Ne=ee.exceedFormatter(ve,{max:ee.max}),ve!==Ne&&J([D().selectionStart||0,D().selectionEnd||0])),k(Ne),J0(de.currentTarget,de,o,Ne);},ce=de=>{z.current=true,l?.(de);},fe=de=>{z.current=false,ne(de,de.currentTarget.value),u?.(de);},se=de=>{ne(de,de.target.value);},Me=de=>{de.key==="Enter"&&R&&!de.nativeEvent.isComposing&&R(de),P?.(de);},ae=de=>{F(true),n?.(de);},pe=de=>{F(false),r?.(de);},be=de=>{k(""),B(),J0(D(),de,o);};let xe=d,Te;ee.show&&(ee.showFormatter?Te=ee.showFormatter({value:W,count:ie,maxLength:te}):Te=`${ie}${re?` / ${te}`:""}`,xe=G.createElement(G.Fragment,null,xe,G.createElement("span",{className:X(`${m}-data-count`,w?.count),style:$?.count},Te)));const Ke=de=>{E?.(de),D()?.style.height&&U(true);},Ae=!N&&!p&&!i;return G.createElement(J7,{ref:Y,value:W,allowClear:i,handleReset:be,suffix:xe,prefixCls:m,classNames:{...w,affixWrapper:X(w?.affixWrapper,{[`${m}-show-count`]:p,[`${m}-textarea-allow-clear`]:i})},disabled:S,focused:q,className:X(b,ue&&`${m}-out-of-range`),style:{...y,...j&&!Ae?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof Te=="string"?Te:void 0}},hidden:C,readOnly:I,onClear:T},G.createElement(Che,t3({},O,{autoSize:N,maxLength:a,onKeyDown:Me,onChange:se,onFocus:ae,onBlur:pe,onCompositionStart:ce,onCompositionEnd:fe,className:X(w?.textarea),style:{resize:y?.resize,...$?.textarea},disabled:S,prefixCls:m,onResize:Ke,ref:Q,readOnly:I})))}),whe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},$he=qt(["Input","TextArea"],e=>{const t=Ft(e,Hf(e));return whe(t)},Vf,{resetFont:false}),Ehe=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=true,size:o,disabled:i,status:a,allowClear:l,classNames:u,rootClassName:d,className:m,style:p,styles:g,variant:b,showCount:y,onMouseDown:S,onResize:C,...w}=e,{getPrefixCls:$,direction:E,allowClear:T,autoComplete:R,className:I,style:N,classNames:P,styles:O}=jt("textArea"),_=f.useContext(ro),L=i??_,{status:k,hasFeedback:W,feedbackIcon:q}=f.useContext(xo),F=zf(k,a),[z,j]=Kt([P,u],[O,g],{props:e}),U=f.useRef(null);f.useImperativeHandle(t,()=>({resizableTextArea:U.current?.resizableTextArea,focus:ae=>{$R(U.current?.resizableTextArea?.textArea,ae);},blur:()=>U.current?.blur(),nativeElement:U.current?.nativeElement||null}));const Y=$("input",n),Q=Qn(Y),[D,B]=D7(Y,d);$he(Y,Q);const{compactSize:K,compactItemClassnames:J}=Fs(Y,E),ee=lo(ae=>o??K??ae),[te,re]=s1("textArea",b,r),ie=tH(l??T),[ue,ne]=f.useState(false),[ce,fe]=f.useState(false),se=ae=>{ne(true),S?.(ae);const pe=()=>{ne(false),document.removeEventListener("mouseup",pe);};document.addEventListener("mouseup",pe);},Me=ae=>{if(C?.(ae),ue&&typeof getComputedStyle=="function"){const pe=U.current?.nativeElement?.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&fe(true);}};return f.createElement(xhe,{autoComplete:R,...w,style:{...j.root,...N,...p},styles:j,disabled:L,allowClear:ie,className:X(B,Q,m,d,J,I,z.root,{[`${Y}-textarea-affix-wrapper-resize-dirty`]:ce}),classNames:{...z,textarea:X({[`${Y}-sm`]:ee==="small",[`${Y}-lg`]:ee==="large"},D,z.textarea,ue&&`${Y}-mouse-active`),variant:X({[`${Y}-${te}`]:re},Wl(Y,F)),affixWrapper:X(`${Y}-textarea-affix-wrapper`,{[`${Y}-affix-wrapper-rtl`]:E==="rtl",[`${Y}-affix-wrapper-sm`]:ee==="small",[`${Y}-affix-wrapper-lg`]:ee==="large",[`${Y}-textarea-show-count`]:y||e.count?.show},D)},prefixCls:Y,suffix:W&&f.createElement("span",{className:`${Y}-textarea-suffix`},q),showCount:y,ref:U,onResize:Me,onMouseDown:se})}),Yi=jf;Yi.Group=Jme;Yi.Search=ghe;Yi.TextArea=Ehe;Yi.Password=mhe;Yi.OTP=ohe;var Mhe={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 n3(){return n3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},n3.apply(this,arguments)}const Rhe=(e,t)=>f.createElement(Xn,n3({},e,{ref:t,icon:Mhe})),z8=f.forwardRef(Rhe);var The={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 r3(){return r3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},r3.apply(this,arguments)}const Ahe=(e,t)=>f.createElement(Xn,r3({},e,{ref:t,icon:The})),k8=f.forwardRef(Ahe),Nhe={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:"页码"},Phe=[10,20,50,100],Ihe=e=>{const{pageSizeOptions:t=Phe,locale:n,changeSize:r,pageSize:o,goButton:i,quickGo:a,rootPrefixCls:l,disabled:u,buildOptionText:d,showSizeChanger:m,sizeChangerRender:p}=e,[g,b]=G.useState(""),y=G.useMemo(()=>!g||Number.isNaN(g)?void 0:Number(g),[g]),S=typeof d=="function"?d:P=>`${P} ${n.items_per_page}`,C=P=>{const O=P.target.value;/^\d*$/.test(O)&&b(O);},w=P=>{i||g===""||(b(""),!(P.relatedTarget&&(P.relatedTarget.className.includes(`${l}-item-link`)||P.relatedTarget.className.includes(`${l}-item`)))&&a?.(y));},$=P=>{g!==""&&(P.keyCode===at.ENTER||P.type==="click")&&(b(""),a?.(y));},E=()=>t.some(P=>P.toString()===o.toString())?t:t.concat([o]).sort((P,O)=>{const _=Number.isNaN(Number(P))?0:Number(P),L=Number.isNaN(Number(O))?0:Number(O);return _-L}),T=`${l}-options`;if(!m&&!a)return null;let R=null,I=null,N=null;return m&&p&&(R=p({disabled:u,size:o,onSizeChange:P=>{r?.(Number(P));},"aria-label":n.page_size,className:`${T}-size-changer`,options:E().map(P=>({label:S(P),value:P}))})),a&&(i&&(N=typeof i=="boolean"?G.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:u,className:`${T}-quick-jumper-button`},n.jump_to_confirm):G.createElement("span",{onClick:$,onKeyUp:$},i)),I=G.createElement("div",{className:`${T}-quick-jumper`},n.jump_to,G.createElement("input",{disabled:u,type:"text",value:g,onChange:C,onKeyUp:$,onBlur:w,"aria-label":n.page}),n.page,N)),G.createElement("li",{className:T},R,I)},ih=e=>{const{rootPrefixCls:t,page:n,active:r,className:o,style:i,showTitle:a,onClick:l,onKeyPress:u,itemRender:d}=e,m=`${t}-item`,p=X(m,`${m}-${n}`,{[`${m}-active`]:r,[`${m}-disabled`]:!n},o),g=()=>{l(n);},b=S=>{u(S,l,n);},y=d(n,"page",G.createElement("a",{rel:"nofollow"},n));return y?G.createElement("li",{title:a?String(n):null,className:p,style:i,onClick:g,onKeyDown:b,tabIndex:0},y):null};function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Ml.apply(this,arguments)}const Ohe=(e,t,n)=>n;function F8(){}function H8(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Pc(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const Dhe=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:o,styles:i,current:a,defaultCurrent:l=1,total:u=0,pageSize:d,defaultPageSize:m=10,onChange:p=F8,hideOnSinglePage:g,align:b,showPrevNextJumpers:y=true,showQuickJumper:S,showLessItems:C,showTitle:w=true,onShowSizeChange:$=F8,locale:E=Nhe,style:T,totalBoundaryShowSizeChanger:R=50,disabled:I,simple:N,showTotal:P,showSizeChanger:O=u>R,sizeChangerRender:_,pageSizeOptions:L,itemRender:k=Ohe,jumpPrevIcon:W,jumpNextIcon:q,prevIcon:F,nextIcon:z}=e,j=G.useRef(null),[U,Y]=un(m,d),[Q,D]=un(l,a),B=Math.max(1,Math.min(Q,Pc(void 0,U,u))),[K,J]=G.useState(B);f.useEffect(()=>{J(B);},[B]);const ee=Math.max(1,B-(C?3:5)),te=Math.min(Pc(void 0,U,u),B+(C?3:5));function re(Se,ye){let Ce=Se||G.createElement("button",{type:"button","aria-label":ye,className:`${t}-item-link`});return typeof Se=="function"&&(Ce=G.createElement(Se,e)),Ce}function ie(Se){const ye=Se.target.value,Ce=Pc(void 0,U,u);let he;return ye===""?he=ye:Number.isNaN(Number(ye))?he=K:ye>=Ce?he=Ce:he=Number(ye),he}function ue(Se){return H8(Se)&&Se!==B&&H8(u)&&u>0}const ne=u>U?S:false;function ce(Se){(Se.keyCode===at.UP||Se.keyCode===at.DOWN)&&Se.preventDefault();}function fe(Se){const ye=ie(Se);switch(ye!==K&&J(ye),Se.keyCode){case at.ENTER:ae(ye);break;case at.UP:ae(ye-1);break;case at.DOWN:ae(ye+1);break}}function se(Se){ae(ie(Se));}function Me(Se){const ye=Pc(Se,U,u),Ce=B>ye&&ye!==0?ye:B;Y(Se),J(Ce),$?.(B,Se),D(Ce),p?.(Ce,Se);}function ae(Se){if(ue(Se)&&!I){const ye=Pc(void 0,U,u);let Ce=Se;return Se>ye?Ce=ye:Se<1&&(Ce=1),Ce!==K&&J(Ce),D(Ce),p?.(Ce,U),Ce}return B}const pe=B>1,be=B<Pc(void 0,U,u);function xe(){pe&&ae(B-1);}function Te(){be&&ae(B+1);}function Ke(){ae(ee);}function Ae(){ae(te);}function de(Se,ye,...Ce){(Se.key==="Enter"||Se.charCode===at.ENTER||Se.keyCode===at.ENTER)&&ye(...Ce);}function ve(Se){de(Se,xe);}function Ne(Se){de(Se,Te);}function He(Se){de(Se,Ke);}function We(Se){de(Se,Ae);}function je(Se){const ye=k(Se,"prev",re(F,"prev page"));return G.isValidElement(ye)?G.cloneElement(ye,{disabled:!pe}):ye}function nt(Se){const ye=k(Se,"next",re(z,"next page"));return G.isValidElement(ye)?G.cloneElement(ye,{disabled:!be}):ye}function ot(Se){(Se.type==="click"||Se.keyCode===at.ENTER)&&ae(K);}let Ge=null;const Oe=Co(e,{aria:true,data:true}),qe=P&&G.createElement("li",{className:`${t}-total-text`},P(u,[u===0?0:(B-1)*U+1,B*U>u?u:B*U]));let Je=null;const Le=Pc(void 0,U,u);if(g&&u<=U)return null;const Ie=[],ct={rootPrefixCls:t,onClick:ae,onKeyPress:de,showTitle:w,itemRender:k,page:-1,className:o?.item,style:i?.item},Ot=B-1>0?B-1:0,pt=B+1<Le?B+1:Le,Lt=S&&S.goButton,xt=typeof N=="object"?N.readOnly:!N;let Rt=Lt,ut=null;N&&(Lt&&(typeof Lt=="boolean"?Rt=G.createElement("button",{type:"button",onClick:ot,onKeyUp:ot},E.jump_to_confirm):Rt=G.createElement("span",{onClick:ot,onKeyUp:ot},Lt),Rt=G.createElement("li",{title:w?`${E.jump_to}${B}/${Le}`:null,className:`${t}-simple-pager`},Rt)),ut=G.createElement("li",{title:w?`${B}/${Le}`:null,className:X(`${t}-simple-pager`,o?.item),style:i?.item},xt?K:G.createElement("input",{type:"text","aria-label":E.jump_to,value:K,disabled:I,onKeyDown:ce,onKeyUp:fe,onChange:fe,onBlur:se,size:3}),G.createElement("span",{className:`${t}-slash`},"/"),Le));const ft=C?1:2;if(Le<=3+ft*2){Le||Ie.push(G.createElement(ih,Ml({},ct,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let Se=1;Se<=Le;Se+=1)Ie.push(G.createElement(ih,Ml({},ct,{key:Se,page:Se,active:B===Se})));}else {const Se=C?E.prev_3:E.prev_5,ye=C?E.next_3:E.next_5,Ce=k(ee,"jump-prev",re(W,"prev page")),he=k(te,"jump-next",re(q,"next page"));y&&(Ge=Ce?G.createElement("li",{title:w?Se:null,key:"prev",onClick:Ke,tabIndex:0,onKeyDown:He,className:X(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!W})},Ce):null,Je=he?G.createElement("li",{title:w?ye:null,key:"next",onClick:Ae,tabIndex:0,onKeyDown:We,className:X(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!q})},he):null);let De=Math.max(1,B-ft),we=Math.min(B+ft,Le);B-1<=ft&&(we=1+ft*2),Le-B<=ft&&(De=Le-ft*2);for(let ze=De;ze<=we;ze+=1)Ie.push(G.createElement(ih,Ml({},ct,{key:ze,page:ze,active:B===ze})));if(B-1>=ft*2&&B!==3&&(Ie[0]=G.cloneElement(Ie[0],{className:X(`${t}-item-after-jump-prev`,Ie[0].props.className)}),Ie.unshift(Ge)),Le-B>=ft*2&&B!==Le-2){const ze=Ie[Ie.length-1];Ie[Ie.length-1]=G.cloneElement(ze,{className:X(`${t}-item-before-jump-next`,ze.props.className)}),Ie.push(Je);}De!==1&&Ie.unshift(G.createElement(ih,Ml({},ct,{key:1,page:1}))),we!==Le&&Ie.push(G.createElement(ih,Ml({},ct,{key:Le,page:Le})));}let vt=je(Ot);if(vt){const Se=!pe||!Le;vt=G.createElement("li",{title:w?E.prev_page:null,onClick:xe,tabIndex:Se?null:0,onKeyDown:ve,className:X(`${t}-prev`,o?.item,{[`${t}-disabled`]:Se}),style:i?.item,"aria-disabled":Se},vt);}let ke=nt(pt);if(ke){let Se,ye;N?(Se=!be,ye=pe?0:null):(Se=!be||!Le,ye=Se?null:0),ke=G.createElement("li",{title:w?E.next_page:null,onClick:Te,tabIndex:ye,onKeyDown:Ne,className:X(`${t}-next`,o?.item,{[`${t}-disabled`]:Se}),style:i?.item,"aria-disabled":Se},ke);}const Ze=X(t,r,{[`${t}-start`]:b==="start",[`${t}-center`]:b==="center",[`${t}-end`]:b==="end",[`${t}-simple`]:N,[`${t}-disabled`]:I});return G.createElement("ul",Ml({className:Ze,style:T,ref:j},Oe),qe,vt,N?ut:Ie,ke,G.createElement(Ihe,{locale:E,rootPrefixCls:t,disabled:I,selectPrefixCls:n,changeSize:Me,pageSize:U,pageSizeOptions:L,quickGo:ne?ae:null,goButton:Rt,showSizeChanger:O,sizeChangerRender:_}))},_he=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}}}}},Lhe=e=>{const{componentCls:t}=e;return {[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...YR(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Bhe=e=>{const{componentCls:t}=e;return {[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...KR(e)}}}}},zhe=e=>{const{componentCls:t,antCls:n}=e,[,r]=tr(n,"pagination");return {[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${oe(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${oe(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:`${oe(e.inputOutlineOffset)} 0 ${oe(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}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},khe=e=>{const{componentCls:t,antCls:n}=e,[,r]=tr(n,"pagination");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}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:r("item-spacing-actual")},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r("item-size-actual"),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:`${oe(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:r("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:r("item-size-actual"),verticalAlign:"baseline",input:{...g1(e),...GR(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...p1(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},Fhe=e=>{const{componentCls:t,antCls:n}=e,[,r]=tr(n,"pagination");return {[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:oe(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${oe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${oe(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}}}}},Hhe=e=>{const{componentCls:t,antCls:n}=e,[r,o]=tr(n,"pagination");return {[t]:{[r("item-size-actual")]:oe(e.itemSize),[r("item-spacing-actual")]:oe(e.marginXS),"&-small":{[r("item-size-actual")]:oe(e.itemSizeSM),[r("item-spacing-actual")]:oe(e.marginXXS)},"&-large":{[r("item-size-actual")]:oe(e.itemSizeLG),[r("item-spacing-actual")]:oe(e.marginSM)},...dn(e),display:"flex",alignItems:"center","&-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:o("item-size-actual"),marginInlineEnd:o("item-spacing-actual"),lineHeight:oe(e.calc(o("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...Fhe(e),...khe(e),...zhe(e),...Lhe(e),...Bhe(e),..._he(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"}}},Vhe=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ei(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...ba(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ba(e)}}}},vH=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Vf(e)}),bH=e=>Ft(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"},Hf(e)),jhe=qt("Pagination",e=>{const t=bH(e);return [Hhe(t),Vhe(t)]},vH),Uhe=e=>{const{componentCls:t}=e;return {[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${oe(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}}}}},Whe=Df(["Pagination","bordered"],e=>{const t=bH(e);return Uhe(t)},vH);function V8(e){return f.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}const qhe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:l,locale:u,responsive:d,showSizeChanger:m,selectComponentClass:p,pageSizeOptions:g,styles:b,classNames:y,...S}=e,{xs:C}=GF(d),[,w]=Wr(),{getPrefixCls:$,direction:E,showSizeChanger:T,className:R,style:I,classNames:N,styles:P,totalBoundaryShowSizeChanger:O}=jt("pagination"),_=$("pagination",n),[L,k]=jhe(_),W=lo(l),q=W==="small"||!!(C&&!W&&d),F={...e,size:W},[z,j]=Kt([N,y],[P,b],{props:F}),[U]=_o("Pagination",Zz),Y={...U,...u},[Q,D]=V8(m),[B,K]=V8(T),J=Q??B,ee=D??K,te=p||nc,re=f.useMemo(()=>g?g.map(Number):void 0,[g]),ie=se=>{const{disabled:Me,size:ae,onSizeChange:pe,"aria-label":be,className:xe,options:Te}=se,{className:Ke,onChange:Ae}=ee||{},de=Te.find(ve=>String(ve.value)===String(ae))?.value;return f.createElement(te,{disabled:Me,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:ve=>ve.parentNode,"aria-label":be,options:Te,...ee,value:de,onChange:(ve,Ne)=>{pe?.(ve),Ae?.(ve,Ne);},size:W,className:X(xe,Ke)})},ue=f.useMemo(()=>{const se=f.createElement("span",{className:`${_}-item-ellipsis`},"•••"),Me=f.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},E==="rtl"?f.createElement(pf,null):f.createElement(vp,null)),ae=f.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},E==="rtl"?f.createElement(vp,null):f.createElement(pf,null)),pe=f.createElement("a",{className:`${_}-item-link`},f.createElement("div",{className:`${_}-item-container`},E==="rtl"?f.createElement(k8,{className:`${_}-item-link-icon`}):f.createElement(z8,{className:`${_}-item-link-icon`}),se)),be=f.createElement("a",{className:`${_}-item-link`},f.createElement("div",{className:`${_}-item-container`},E==="rtl"?f.createElement(z8,{className:`${_}-item-link-icon`}):f.createElement(k8,{className:`${_}-item-link-icon`}),se));return {prevIcon:Me,nextIcon:ae,jumpPrevIcon:pe,jumpNextIcon:be}},[E,_]),ne=$("select",r),ce=X({[`${_}-${t}`]:!!t,[`${_}-${W}`]:W,[`${_}-mini`]:q,[`${_}-rtl`]:E==="rtl",[`${_}-bordered`]:w.wireframe},R,o,i,z.root,L,k),fe={...j.root,...I,...a};return f.createElement(f.Fragment,null,w.wireframe&&f.createElement(Whe,{prefixCls:_}),f.createElement(Dhe,{...ue,...S,styles:j,classNames:z,style:fe,prefixCls:_,selectPrefixCls:ne,className:ce,locale:Y,pageSizeOptions:re,showSizeChanger:J,totalBoundaryShowSizeChanger:S.totalBoundaryShowSizeChanger??O,sizeChangerRender:ie}))},oy=100,yH=oy/5,SH=oy/2-yH/2,uw=SH*2*Math.PI,j8=50,U8=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return f.createElement("circle",{className:X(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:SH,cx:j8,cy:j8,strokeWidth:yH,style:n})},Ghe=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,a]=f.useState(false);An(()=>{e!==0&&a(true);},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!i)return null;const u={strokeDashoffset:`${uw/4}`,strokeDasharray:`${uw*l/100} ${uw*(100-l)/100}`};return f.createElement("span",{className:X(r,`${n}-progress`,l<=0&&o)},f.createElement("svg",{viewBox:`0 0 ${oy} ${oy}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},f.createElement(U8,{dotClassName:n,hasCircleCls:true}),f.createElement(U8,{dotClassName:n,style:u})))};function Khe(e){const{prefixCls:t,percent:n=0,className:r,style:o}=e,i=`${t}-dot`,a=`${i}-holder`,l=`${a}-hidden`;return f.createElement(f.Fragment,null,f.createElement("span",{className:X(a,r,n>0&&l),style:o},f.createElement("span",{className:X(i,`${t}-dot-spin`)},[1,2,3,4].map(u=>f.createElement("i",{className:`${t}-dot-item`,key:u})))),f.createElement(Ghe,{prefixCls:t,percent:n}))}function Yhe(e){const{prefixCls:t,indicator:n,percent:r,className:o,style:i}=e,a=`${t}-dot`;return n&&f.isValidElement(n)?jr(n,l=>({className:X(l.className,a,o),style:{...l.style,...i},percent:r})):f.createElement(Khe,{prefixCls:t,percent:r,className:o,style:i})}const Xhe=new zt("antSpinMove",{to:{opacity:1}}),Qhe=new zt("antRotate",{to:{transform:"rotate(405deg)"}}),Zhe=e=>{const{componentCls:t}=e,n=`${t}-section`;return {[t]:{...dn(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},Jhe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[o,i]=tr(n,"spin");return {[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${i("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:i("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(a=>`${a} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:i("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:Qhe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:i("dot-item-size"),height:i("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Xhe,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"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(a=>`${a} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},epe=e=>{const{componentCls:t}=e,[n]=tr(e.antCls,"spin");return {[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},tpe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},npe=qt("Spin",e=>{const t=Ft(e,{spinDotDefault:e.colorTextDescription});return [Zhe(t),Jhe(t),epe(t)]},tpe),rpe=200,W8=[[30,.05],[70,.03],[96,.01]];function ope(e,t){const[n,r]=f.useState(0),o=f.useRef(null),i=t==="auto";return f.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const l=100-a;for(let u=0;u<W8.length;u+=1){const[d,m]=W8[u];if(a<=d)return a+l*m}return a});},rpe)),()=>{o.current&&(clearInterval(o.current),o.current=null);}),[i,e]),i?n:t}let CH;function ipe(e,t){return !!e&&!!t&&!Number.isNaN(Number(t))}const y1=e=>{const{prefixCls:t,spinning:n=true,delay:r=0,className:o,rootClassName:i,size:a="default",tip:l,description:u,wrapperClassName:d,style:m,children:p,fullscreen:g=false,indicator:b,percent:y,classNames:S,styles:C,...w}=e,{getPrefixCls:$,direction:E,indicator:T,className:R,style:I,classNames:N,styles:P}=jt("spin"),O=$("spin",t),[_,L]=npe(O),[k,W]=f.useState(()=>n&&!ipe(n,r)),q=ope(k,y);f.useEffect(()=>{if(n){const K=jde(r,()=>{W(true);});return K(),()=>{K?.cancel?.();}}W(false);},[r,n]);const F=u??l,z={...e,size:a,spinning:k,tip:F,description:F,fullscreen:g,children:p,percent:q},[j,U]=Kt([N,S],[P,C],{props:z}),Y=b??T??CH,Q=typeof p<"u",D=Q||g,B=f.createElement(f.Fragment,null,f.createElement(Yhe,{className:X(j.indicator),style:U.indicator,prefixCls:O,indicator:Y,percent:q}),F&&f.createElement("div",{className:X(`${O}-description`,j.tip,j.description),style:{...U.tip,...U.description}},F));return f.createElement("div",{className:X(O,{[`${O}-sm`]:a==="small",[`${O}-lg`]:a==="large",[`${O}-spinning`]:k,[`${O}-rtl`]:E==="rtl",[`${O}-fullscreen`]:g},i,j.root,g&&j.mask,D?d:[`${O}-section`,j.section],R,o,_,L),style:{...U.root,...D?{}:U.section,...g?U.mask:{},...I,...m},"aria-live":"polite","aria-busy":k,...w},k&&(D?f.createElement("div",{className:X(`${O}-section`,j.section),style:U.section},B):B),Q&&f.createElement("div",{className:X(`${O}-container`,j.container),style:U.container},p))};y1.setDefaultIndicator=e=>{CH=e;};let kc=null,Xc=e=>e(),Cp=[],xp={};function q8(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=xp,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const ape=G.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext(wt),i=xp.prefixCls||o("message"),a=f.useContext(j0),[l,u]=Ak({...n,prefixCls:i,...a.message});return G.useImperativeHandle(t,()=>{const d={...l};return Object.keys(d).forEach(m=>{d[m]=(...p)=>(r(),l[m].apply(l,p));}),{instance:d,sync:r}}),u}),spe=G.forwardRef((e,t)=>{const[n,r]=G.useState(q8),o=()=>{r(q8);};G.useEffect(o,[]);const i=sR(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=G.createElement(ape,{ref:t,sync:o,messageConfig:n});return G.createElement(Lo,{prefixCls:a,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),S1=()=>{if(!kc){const e=document.createDocumentFragment(),t={fragment:e};kc=t,Xc(()=>{n1(G.createElement(spe,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,S1());});}}),e);});return}kc.instance&&(Cp.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case "open":{Xc(()=>{const r=kc.instance.open({...xp,...e.config});r?.then(e.resolve),e.setCloseFn(r);});break}case "destroy":Xc(()=>{kc?.instance.destroy(e.key);});break;default:Xc(()=>{var r;const o=(r=kc.instance)[t].apply(r,Zt(e.args));o?.then(e.resolve),e.setCloseFn(o);});}}),Cp=[]);};function lpe(e){xp={...xp,...e},Xc(()=>{kc?.sync?.();});}function cpe(e){const t=cR(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i;}};return Cp.push(o),()=>{r?Xc(()=>{r();}):o.skipped=true;}});return S1(),t}function upe(e,t){const n=cR(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a;}};return Cp.push(i),()=>{o?Xc(()=>{o();}):i.skipped=true;}});return S1(),n}const dpe=e=>{Cp.push({type:"destroy",key:e}),S1();},fpe=["success","info","warning","error","loading"],mpe={open:cpe,destroy:dpe,config:lpe,useMessage:Nk,_InternalPanelDoNotUseOrYouWillBeFired:cre},iT=mpe;fpe.forEach(e=>{iT[e]=(...t)=>upe(e,t);});const hpe=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:u,classNames:d,styles:m,...p}=e,{getPrefixCls:g}=f.useContext(wt),{className:b,style:y,classNames:S,styles:C}=jt("modal"),w=g(),$=t||g("modal"),E=Qn(w),[T,R]=lF($,E),[I,N]=Kt([S,d],[C,m],{props:e}),P=`${$}-confirm`;let O={};return i?O={closable:o??false,title:"",footer:"",children:f.createElement(uF,{...e,prefixCls:$,confirmPrefixCls:P,rootPrefixCls:w,content:l})}:O={closable:o??true,title:a,footer:u!==null&&f.createElement(oF,{...e}),children:l},f.createElement(Xk,{prefixCls:$,className:X(T,`${$}-pure-panel`,i&&P,i&&`${P}-${i}`,n,b,R,E,I.root),style:{...y,...N.root},...p,closeIcon:rF($,r),closable:o,classNames:I,styles:N,...O})},ppe=TF(hpe);function xH(e){return ag(hF(e))}const Ea=cF;Ea.useModal=yF;Ea.info=function(t){return ag(pF(t))};Ea.success=function(t){return ag(gF(t))};Ea.error=function(t){return ag(vF(t))};Ea.warning=xH;Ea.warn=xH;Ea.confirm=function(t){return ag(bF(t))};Ea.destroyAll=function(){for(;Kc.length;){const t=Kc.pop();t&&t();}};Ea.config=Xae;Ea._InternalPanelDoNotUseOrYouWillBeFired=ppe;let Ld=null,Zb=e=>e(),iy=[],wp={};function G8(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=wp,l=e?.()||document.body;return {getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const gpe=G.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext(wt),i=wp.prefixCls||o("notification"),a=f.useContext(j0),[l,u]=EF({...n,prefixCls:i,...a.notification});return G.useEffect(r,[]),G.useImperativeHandle(t,()=>{const d={...l};return Object.keys(d).forEach(m=>{d[m]=(...p)=>(r(),l[m].apply(l,p));}),{instance:d,sync:r}}),u}),vpe=G.forwardRef((e,t)=>{const[n,r]=G.useState(G8),o=()=>{r(G8);};G.useEffect(o,[]);const i=sR(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),d=G.createElement(gpe,{ref:t,sync:o,notificationConfig:n});return G.createElement(Lo,{prefixCls:a,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(d):d)}),aT=()=>{if(!Ld){const e=document.createDocumentFragment(),t={fragment:e};Ld=t,Zb(()=>{n1(G.createElement(vpe,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,aT());});}}),e);});return}Ld.instance&&(iy.forEach(e=>{switch(e.type){case "open":{Zb(()=>{Ld.instance.open({...wp,...e.config});});break}case "destroy":Zb(()=>{Ld?.instance?.destroy(e.key);});break}}),iy=[]);};function bpe(e){wp={...wp,...e},Zb(()=>{Ld?.sync?.();});}function wH(e){iy.push({type:"open",config:e}),aT();}const ype=e=>{iy.push({type:"destroy",key:e}),aT();},Spe=["success","info","warning","error"],Cpe={open:wH,destroy:ype,config:bpe,useNotification:MF,_InternalPanelDoNotUseOrYouWillBeFired:cse},$H=Cpe;Spe.forEach(e=>{$H[e]=t=>wH({...t,type:e});});const xpe=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:u,fontSize:d,fontWeightStrong:m,colorTextHeading:p}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:d},[`${t}-message`]:{marginBottom:u,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:d,lineHeight:1,marginInlineEnd:u},[`${t}-title`]:{fontWeight:m,color:p,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:u}}}}},wpe=e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},EH=qt("Popconfirm",xpe,wpe,{resetStyle:false}),MH=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:u="primary",icon:d=f.createElement(Zp,null),showCancel:m=true,close:p,onConfirm:g,onCancel:b,onPopupClick:y,classNames:S,styles:C}=e,{getPrefixCls:w}=f.useContext(wt),[$]=_o("Popconfirm",ya.Popconfirm),E=vf(o),T=vf(i);return f.createElement("div",{className:`${t}-inner-content`,onClick:y},f.createElement("div",{className:`${t}-message`},d&&f.createElement("span",{className:`${t}-message-icon`},d),f.createElement("div",{className:`${t}-message-text`},E&&f.createElement("div",{className:X(`${t}-title`,S?.title),style:C?.title},E),T&&f.createElement("div",{className:X(`${t}-description`,S?.content),style:C?.content},T))),f.createElement("div",{className:`${t}-buttons`},m&&f.createElement(lt,{onClick:b,size:"small",...r},a||$?.cancelText),f.createElement(xR,{buttonProps:{size:"small",...dR(u),...n},actionFn:g,close:p,prefixCls:w("btn"),quitOnNullishReturnValue:true,emitEvent:true},l||$?.okText)))},$pe=e=>{const{prefixCls:t,placement:n,className:r,style:o,...i}=e,{getPrefixCls:a}=f.useContext(wt),l=a("popconfirm",t);return EH(l),f.createElement(n7,{placement:n,className:X(l,r),style:o,content:f.createElement(MH,{prefixCls:l,...i})})},Epe=f.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o,okType:i="primary",icon:a=f.createElement(Zp,null),children:l,overlayClassName:u,onOpenChange:d,overlayStyle:m,styles:p,arrow:g,classNames:b,...y}=e,{getPrefixCls:S,className:C,style:w,classNames:$,styles:E,arrow:T,trigger:R}=jt("popconfirm"),[I,N]=un(e.defaultOpen??false,e.open),P=c1(g,T),O=o||R||"click",_=Q=>{N(Q),d?.(Q);},L=()=>{_(false);},k=Q=>e.onConfirm?.call(void 0,Q),W=Q=>{_(false),e.onCancel?.call(void 0,Q);},q=Q=>{const{disabled:D=false}=e;D||_(Q);},F=S("popconfirm",n),z={...e,placement:r,trigger:O,okType:i,overlayStyle:m,styles:p,classNames:b},[j,U]=Kt([$,b],[E,p],{props:z}),Y=X(F,C,u,j.root);return EH(F),f.createElement(Jo,{arrow:P,...zn(y,["title"]),trigger:O,placement:r,onOpenChange:q,open:I,ref:t,classNames:{root:Y,container:j.container,arrow:j.arrow},styles:{root:{...w,...U.root,...m},container:U.container,arrow:U.arrow},content:f.createElement(MH,{okType:i,icon:a,...e,prefixCls:F,close:L,onConfirm:k,onCancel:W,classNames:j,styles:U}),"data-popover-inject":true},l)}),$p=Epe;$p._InternalPanelDoNotUseOrYouWillBeFired=$pe;function Hd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zM(e))||t){n&&(e=n);var r=0,o=function(){};return {s:o,n:function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=true,l=false;return {s:function(){n=n.call(e);},n:function(){var d=n.next();return a=d.done,d},e:function(d){l=true,i=d;},f:function(){try{a||n.return==null||n.return();}finally{if(l)throw i}}}}var Uf,ug;function qo(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1);}function bs(e,t){return (e>>>t&1)!=0}function di(e){if(!e)throw new Error("Assertion error")}var ka=(function(){function e(t,n){Xi(this,e),Ct(this,"modeBits",void 0),Ct(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n;}return Qi(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e})();Uf=ka;Ct(ka,"NUMERIC",new Uf(1,[10,12,14]));Ct(ka,"ALPHANUMERIC",new Uf(2,[9,11,13]));Ct(ka,"BYTE",new Uf(4,[8,16,16]));Ct(ka,"KANJI",new Uf(8,[8,10,12]));Ct(ka,"ECI",new Uf(7,[0,0,0]));var ji=Qi(function e(t,n){Xi(this,e),Ct(this,"ordinal",void 0),Ct(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n;});ug=ji;Ct(ji,"LOW",new ug(0,1));Ct(ji,"MEDIUM",new ug(1,0));Ct(ji,"QUARTILE",new ug(2,3));Ct(ji,"HIGH",new ug(3,2));var au=(function(){function e(t,n,r){if(Xi(this,e),Ct(this,"mode",void 0),Ct(this,"numChars",void 0),Ct(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice();}return Qi(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],o=Hd(n),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;qo(a,8,r);}}catch(l){o.e(l);}finally{o.f();}return new e(ka.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],o=0;o<n.length;){var i=Math.min(n.length-o,3);qo(parseInt(n.substring(o,o+i),10),i*3+1,r),o+=i;}return new e(ka.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],o;for(o=0;o+2<=n.length;o+=2){var i=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o+1)),qo(i,11,r);}return o<n.length&&qo(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(o)),6,r),new e(ka.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)qo(n,8,r);else if(n<16384)qo(2,2,r),qo(n,14,r);else if(n<1e6)qo(6,3,r),qo(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(ka.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(n,r){var o=0,i=Hd(n),a;try{for(i.s();!(a=i.n()).done;){var l=a.value,u=l.mode.numCharCountBits(r);if(l.numChars>=1<<u)return 1/0;o+=4+u+l.bitData.length;}}catch(d){i.e(d);}finally{i.f();}return o}},{key:"toUtf8ByteArray",value:function(n){for(var r=encodeURI(n),o=[],i=0;i<r.length;i++)r.charAt(i)!="%"?o.push(r.charCodeAt(i)):(o.push(parseInt(r.substring(i+1,i+3),16)),i+=2);return o}}]),e})();Ct(au,"NUMERIC_REGEX",/^[0-9]*$/);Ct(au,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);Ct(au,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Hs=(function(){function e(t,n,r,o){Xi(this,e),Ct(this,"size",void 0),Ct(this,"mask",void 0),Ct(this,"modules",[]),Ct(this,"isFunction",[]),Ct(this,"version",void 0),Ct(this,"errorCorrectionLevel",void 0);var i=o;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],l=0;l<this.size;l++)a.push(false);for(var u=0;u<this.size;u++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var d=this.addEccAndInterleave(r);if(this.drawCodewords(d),i==-1)for(var m=1e9,p=0;p<8;p++){this.applyMask(p),this.drawFormatBits(p);var g=this.getPenaltyScore();g<m&&(i=p,m=g),this.applyMask(p);}di(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[];}return Qi(e,[{key:"getModule",value:function(n,r){return 0<=n&&n<this.size&&0<=r&&r<this.size&&this.modules[r][n]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),o=r.length,i=0;i<o;i++)for(var a=0;a<o;a++)i==0&&a==0||i==0&&a==o-1||i==o-1&&a==0||this.drawAlignmentPattern(r[i],r[a]);this.drawFormatBits(0),this.drawVersion();}},{key:"drawFormatBits",value:function(n){for(var r=this.errorCorrectionLevel.formatBits<<3|n,o=r,i=0;i<10;i++)o=o<<1^(o>>>9)*1335;var a=(r<<10|o)^21522;di(a>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,bs(a,l));this.setFunctionModule(8,7,bs(a,6)),this.setFunctionModule(8,8,bs(a,7)),this.setFunctionModule(7,8,bs(a,8));for(var u=9;u<15;u++)this.setFunctionModule(14-u,8,bs(a,u));for(var d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,bs(a,d));for(var m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,bs(a,m));this.setFunctionModule(8,this.size-8,true);}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var o=this.version<<12|n;di(o>>>18==0);for(var i=0;i<18;i++){var a=bs(o,i),l=this.size-11+i%3,u=Math.floor(i/3);this.setFunctionModule(l,u,a),this.setFunctionModule(u,l,a);}}}},{key:"drawFinderPattern",value:function(n,r){for(var o=-4;o<=4;o++)for(var i=-4;i<=4;i++){var a=Math.max(Math.abs(i),Math.abs(o)),l=n+i,u=r+o;0<=l&&l<this.size&&0<=u&&u<this.size&&this.setFunctionModule(l,u,a!=2&&a!=4);}}},{key:"drawAlignmentPattern",value:function(n,r){for(var o=-2;o<=2;o++)for(var i=-2;i<=2;i++)this.setFunctionModule(n+i,r+o,Math.max(Math.abs(i),Math.abs(o))!=1);}},{key:"setFunctionModule",value:function(n,r,o){this.modules[r][n]=o,this.isFunction[r][n]=true;}},{key:"addEccAndInterleave",value:function(n){var r=this.version,o=this.errorCorrectionLevel;if(n.length!=e.getNumDataCodewords(r,o))throw new RangeError("Invalid argument");for(var i=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][r],a=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][r],l=Math.floor(e.getNumRawDataModules(r)/8),u=i-l%i,d=Math.floor(l/i),m=[],p=e.reedSolomonComputeDivisor(a),g=0,b=0;g<i;g++){var y=n.slice(b,b+d-a+(g<u?0:1));b+=y.length;var S=e.reedSolomonComputeRemainder(y,p);g<u&&y.push(0),m.push(y.concat(S));}for(var C=[],w=function(T){m.forEach(function(R,I){(T!=d-a||I>=u)&&C.push(R[T]);});},$=0;$<m[0].length;$++)w($);return di(C.length==l),C}},{key:"drawCodewords",value:function(n){if(n.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,o=this.size-1;o>=1;o-=2){o==6&&(o=5);for(var i=0;i<this.size;i++)for(var a=0;a<2;a++){var l=o-a,u=(o+1&2)==0,d=u?this.size-1-i:i;!this.isFunction[d][l]&&r<n.length*8&&(this.modules[d][l]=bs(n[r>>>3],7-(r&7)),r++);}}di(r==n.length*8);}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var o=0;o<this.size;o++){var i=void 0;switch(n){case 0:i=(o+r)%2==0;break;case 1:i=r%2==0;break;case 2:i=o%3==0;break;case 3:i=(o+r)%3==0;break;case 4:i=(Math.floor(o/3)+Math.floor(r/2))%2==0;break;case 5:i=o*r%2+o*r%3==0;break;case 6:i=(o*r%2+o*r%3)%2==0;break;case 7:i=((o+r)%2+o*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][o]&&i&&(this.modules[r][o]=!this.modules[r][o]);}}},{key:"getPenaltyScore",value:function(){for(var n=0,r=0;r<this.size;r++){for(var o=false,i=0,a=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[r][l]==o?(i++,i==5?n+=e.PENALTY_N1:i>5&&n++):(this.finderPenaltyAddHistory(i,a),o||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),o=this.modules[r][l],i=1);n+=this.finderPenaltyTerminateAndCount(o,i,a)*e.PENALTY_N3;}for(var u=0;u<this.size;u++){for(var d=false,m=0,p=[0,0,0,0,0,0,0],g=0;g<this.size;g++)this.modules[g][u]==d?(m++,m==5?n+=e.PENALTY_N1:m>5&&n++):(this.finderPenaltyAddHistory(m,p),d||(n+=this.finderPenaltyCountPatterns(p)*e.PENALTY_N3),d=this.modules[g][u],m=1);n+=this.finderPenaltyTerminateAndCount(d,m,p)*e.PENALTY_N3;}for(var b=0;b<this.size-1;b++)for(var y=0;y<this.size-1;y++){var S=this.modules[b][y];S==this.modules[b][y+1]&&S==this.modules[b+1][y]&&S==this.modules[b+1][y+1]&&(n+=e.PENALTY_N2);}var C=0,w=Hd(this.modules),$;try{for(w.s();!($=w.n()).done;){var E=$.value;C=E.reduce(function(I,N){return I+(N?1:0)},C);}}catch(I){w.e(I);}finally{w.f();}var T=this.size*this.size,R=Math.ceil(Math.abs(C*20-T*10)/T)-1;return di(0<=R&&R<=9),n+=R*e.PENALTY_N4,di(0<=n&&n<=2568888),n}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return [];for(var n=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(n*2-2))*2,o=[6],i=this.size-7;o.length<n;i-=r)o.splice(1,0,i);return o}},{key:"finderPenaltyCountPatterns",value:function(n){var r=n[1];di(r<=this.size*3);var o=r>0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return (o&&n[0]>=r*4&&n[6]>=r?1:0)+(o&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,o){var i=r;return n&&(this.finderPenaltyAddHistory(i,o),i=0),i+=this.size,this.finderPenaltyAddHistory(i,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(n,r){var o=n;r[0]==0&&(o+=this.size),r.pop(),r.unshift(o);}}],[{key:"encodeText",value:function(n,r){var o=au.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=au.makeBytes(n);return e.encodeSegments([o],r)}},{key:"encodeSegments",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:true;if(!(e.MIN_VERSION<=o&&o<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var u,d;for(u=o;;u++){var m=e.getNumDataCodewords(u,r)*8,p=au.getTotalBits(n,u);if(p<=m){d=p;break}if(u>=i)throw new RangeError("Data too long")}for(var g=r,b=0,y=[ji.MEDIUM,ji.QUARTILE,ji.HIGH];b<y.length;b++){var S=y[b];l&&d<=e.getNumDataCodewords(u,S)*8&&(g=S);}var C=[],w=Hd(n),$;try{for(w.s();!($=w.n()).done;){var E=$.value;qo(E.mode.modeBits,4,C),qo(E.numChars,E.mode.numCharCountBits(u),C);var T=Hd(E.getData()),R;try{for(T.s();!(R=T.n()).done;){var I=R.value;C.push(I);}}catch(_){T.e(_);}finally{T.f();}}}catch(_){w.e(_);}finally{w.f();}di(C.length==d);var N=e.getNumDataCodewords(u,g)*8;di(C.length<=N),qo(0,Math.min(4,N-C.length),C),qo(0,(8-C.length%8)%8,C),di(C.length%8==0);for(var P=236;C.length<N;P^=253)qo(P,8,C);for(var O=[];O.length*8<C.length;)O.push(0);return C.forEach(function(_,L){O[L>>>3]|=_<<7-(L&7);}),new e(u,g,O,a)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var o=Math.floor(n/7)+2;r-=(25*o-10)*o-55,n>=7&&(r-=36);}return di(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],o=0;o<n-1;o++)r.push(0);r.push(1);for(var i=1,a=0;a<n;a++){for(var l=0;l<r.length;l++)r[l]=e.reedSolomonMultiply(r[l],i),l+1<r.length&&(r[l]^=r[l+1]);i=e.reedSolomonMultiply(i,2);}return r}},{key:"reedSolomonComputeRemainder",value:function(n,r){var o=r.map(function(){return 0}),i=Hd(n),a;try{var l=function(){var d=a.value,m=d^o.shift();o.push(0),r.forEach(function(p,g){o[g]^=e.reedSolomonMultiply(p,m);});};for(i.s();!(a=i.n()).done;)l();}catch(u){i.e(u);}finally{i.f();}return o}},{key:"reedSolomonMultiply",value:function(n,r){if(n>>>8||r>>>8)throw new RangeError("Byte out of range");for(var o=0,i=7;i>=0;i--)o=o<<1^(o>>>7)*285,o^=(r>>>i&1)*n;return di(o>>>8==0),o}}]),e})();Ct(Hs,"MIN_VERSION",1);Ct(Hs,"MAX_VERSION",40);Ct(Hs,"PENALTY_N1",3);Ct(Hs,"PENALTY_N2",3);Ct(Hs,"PENALTY_N3",40);Ct(Hs,"PENALTY_N4",10);Ct(Hs,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);Ct(Hs,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Mpe={L:ji.LOW,M:ji.MEDIUM,Q:ji.QUARTILE,H:ji.HIGH},RH=128,TH="L",AH="#FFFFFF",NH="#000000",PH=false,IH=1,Rpe=4,Tpe=0,Ape=.1,OH=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[];return t.forEach(function(o,i){var a=null;o.forEach(function(l,u){if(!l&&a!==null){r.push("M".concat(a+n," ").concat(i+n,"h").concat(u-a,"v1H").concat(a+n,"z")),a=null;return}if(u===o.length-1){if(!l)return;a===null?r.push("M".concat(u+n,",").concat(i+n," h1v1H").concat(u+n,"z")):r.push("M".concat(a+n,",").concat(i+n," h").concat(u+1-a,"v1H").concat(a+n,"z"));return}l&&a===null&&(a=u);});}),r.join("")},DH=function(t,n){return t.slice().map(function(r,o){return o<n.y||o>=n.y+n.h?r:r.map(function(i,a){return a<n.x||a>=n.x+n.w?i:false})})},Npe=function(t,n,r,o){if(o==null)return null;var i=t.length+r*2,a=Math.floor(n*Ape),l=i/n,u=(o.width||a)*l,d=(o.height||a)*l,m=o.x==null?t.length/2-u/2:o.x*l,p=o.y==null?t.length/2-d/2:o.y*l,g=o.opacity==null?1:o.opacity,b=null;if(o.excavate){var y=Math.floor(m),S=Math.floor(p),C=Math.ceil(u+m-y),w=Math.ceil(d+p-S);b={x:y,y:S,w:C,h:w};}var $=o.crossOrigin;return {x:m,y:p,h:d,w:u,excavation:b,opacity:g,crossOrigin:$}},Ppe=function(t,n){return n!=null?Math.max(Math.floor(n),0):t?Rpe:Tpe},Ipe=(function(){try{new Path2D().addPath(new Path2D);}catch{return  false}return  true})(),_H=function(t){var n=t.value,r=t.level,o=t.minVersion,i=t.includeMargin,a=t.marginSize,l=t.imageSettings,u=t.size,d=t.boostLevel,m=G.useMemo(function(){var p=Array.isArray(n)?n:[n],g=p.reduce(function(b,y){return b.push.apply(b,Zt(au.makeSegments(y))),b},[]);return Hs.encodeSegments(g,Mpe[r],o,void 0,void 0,d)},[n,r,o,d]);return G.useMemo(function(){var p=m.getModules(),g=Ppe(i,a),b=p.length+g*2,y=Npe(p,u,g,l);return {cells:p,margin:g,numCells:b,calculatedImageSettings:y,qrcode:m}},[m,u,l,i,a])},Ope=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],Dpe=G.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?RH:r,i=e.level,a=i===void 0?TH:i,l=e.bgColor,u=l===void 0?AH:l,d=e.fgColor,m=d===void 0?NH:d,p=e.includeMargin,g=p===void 0?PH:p,b=e.minVersion,y=b===void 0?IH:b,S=e.marginSize,C=e.style,w=e.imageSettings,$=e.boostLevel,E=F7(e,Ope),T=w?.src,R=G.useRef(null),I=G.useRef(null),N=G.useCallback(function(U){R.current=U,typeof t=="function"?t(U):t&&(t.current=U);},[t]),P=G.useState(false),O=qM(P,2),_=O[1],L=_H({value:n,level:a,minVersion:y,includeMargin:g,marginSize:S,imageSettings:w,size:o,boostLevel:$}),k=L.margin,W=L.cells,q=L.numCells,F=L.calculatedImageSettings;G.useEffect(function(){if(R.current){var U=R.current,Y=U.getContext("2d");if(!Y)return;var Q=W,D=I.current,B=F!=null&&D!==null&&D.complete&&D.naturalHeight!==0&&D.naturalWidth!==0;B&&F.excavation!=null&&(Q=DH(W,F.excavation));var K=window.devicePixelRatio||1;U.height=U.width=o*K;var J=o/q*K;Y.scale(J,J),Y.fillStyle=u,Y.fillRect(0,0,q,q),Y.fillStyle=m,Ipe?Y.fill(new Path2D(OH(Q,k))):W.forEach(function(ee,te){ee.forEach(function(re,ie){re&&Y.fillRect(ie+k,te+k,1,1);});}),F&&(Y.globalAlpha=F.opacity),B&&Y.drawImage(D,F.x+k,F.y+k,F.w,F.h);}}),G.useEffect(function(){_(false);},[T]);var z=nr({height:o,width:o},C),j=null;return T!=null&&(j=G.createElement("img",{alt:"QR-Code",src:T,key:T,style:{display:"none"},onLoad:function(){_(true);},ref:I,crossOrigin:F?.crossOrigin})),G.createElement(G.Fragment,null,G.createElement("canvas",cr({style:z,height:o,width:o,ref:N,role:"img"},E)),j)}),_pe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],Lpe=G.forwardRef(function(e,t){var n=e.value,r=e.size,o=r===void 0?RH:r,i=e.level,a=i===void 0?TH:i,l=e.bgColor,u=l===void 0?AH:l,d=e.fgColor,m=d===void 0?NH:d,p=e.includeMargin,g=p===void 0?PH:p,b=e.minVersion,y=b===void 0?IH:b,S=e.title,C=e.marginSize,w=e.imageSettings,$=e.boostLevel,E=F7(e,_pe),T=_H({value:n,level:a,minVersion:y,includeMargin:g,marginSize:C,imageSettings:w,size:o,boostLevel:$}),R=T.margin,I=T.cells,N=T.numCells,P=T.calculatedImageSettings,O=I,_=null;w!=null&&P!=null&&(P.excavation!=null&&(O=DH(I,P.excavation)),_=G.createElement("image",{href:w.src,height:P.h,width:P.w,x:P.x+R,y:P.y+R,preserveAspectRatio:"none",opacity:P.opacity,crossOrigin:P.crossOrigin}));var L=OH(O,R);return G.createElement("svg",cr({height:o,width:o,viewBox:"0 0 ".concat(N," ").concat(N),ref:t,role:"img"},E),!!S&&G.createElement("title",null,S),G.createElement("path",{fill:u,d:"M0,0 h".concat(N,"v").concat(N,"H0z"),shapeRendering:"crispEdges"}),G.createElement("path",{fill:m,d:L,shapeRendering:"crispEdges"}),_)}),Bpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function o3(){return o3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},o3.apply(this,arguments)}const zpe=(e,t)=>f.createElement(Xn,o3({},e,{ref:t,icon:Bpe})),kpe=f.forwardRef(zpe),Fpe=G.createElement(y1,null);function Hpe({prefixCls:e,locale:t,onRefresh:n,statusRender:r,status:o}){const i=G.createElement(G.Fragment,null,G.createElement("p",{className:`${e}-expired`},t?.expired),n&&G.createElement(lt,{type:"link",icon:G.createElement(kpe,null),onClick:n},t?.refresh)),a=G.createElement("p",{className:`${e}-scanned`},t?.scanned),l={expired:i,loading:Fpe,scanned:a};return (r??(m=>l[m.status]))({status:o,locale:t,onRefresh:n})}const Vpe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return {[t]:{...dn(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${oe(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-cover`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeCoverBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},jpe=e=>({QRCodeCoverBackgroundColor:new cn(e.colorBgContainer).setA(.96).toRgbString()}),Upe=qt("QRCode",e=>{const t=Ft(e,{QRCodeTextColor:e.colorText});return Vpe(t)},jpe),Wpe=e=>{const[,t]=Wr(),{value:n,type:r="canvas",icon:o="",size:i=160,iconSize:a,color:l=t.colorText,errorLevel:u="M",status:d="active",bordered:m=true,onRefresh:p,style:g,className:b,rootClassName:y,prefixCls:S,bgColor:C="transparent",marginSize:w,statusRender:$,classNames:E,styles:T,boostLevel:R,...I}=e,{getPrefixCls:N,className:P,style:O,classNames:_,styles:L}=jt("qrcode"),k={...e,bgColor:C,type:r,size:i,status:d,bordered:m,errorLevel:u},[W,q]=Kt([_,E],[L,T],{props:k}),F=N("qrcode",S),[z,j]=Upe(F),U={src:o,x:void 0,y:void 0,height:typeof a=="number"?a:a?.height??40,width:typeof a=="number"?a:a?.width??40,excavate:true,crossOrigin:"anonymous"},Y=Co(I,true),Q=zn(I,Object.keys(Y)),D={value:n,size:i,level:u,bgColor:C,fgColor:l,style:{width:g?.width,height:g?.height},imageSettings:o?U:void 0,marginSize:w,boostLevel:R,...Y},[B]=_o("QRCode");if(!n)return null;const K=X(F,b,y,z,j,P,W.root,{[`${F}-borderless`]:!m}),J={backgroundColor:C,...q.root,...O,...g,width:g?.width??i,height:g?.height??i};return G.createElement("div",{...Q,className:K,style:J},d!=="active"&&G.createElement("div",{className:X(`${F}-cover`,W.cover),style:q.cover},G.createElement(Hpe,{prefixCls:F,locale:B,status:d,onRefresh:p,statusRender:$})),r==="canvas"?G.createElement(Dpe,{...D}):G.createElement(Lpe,{...D}))};function i3(){return i3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},i3.apply(this,arguments)}const LH=f.forwardRef(({prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:r,disabled:o,loadingIcon:i,checkedChildren:a,unCheckedChildren:l,onClick:u,onChange:d,onKeyDown:m,styles:p,classNames:g,...b},y)=>{const[S,C]=un(r??false,n);function w(R,I){let N=S;return o||(N=R,C(N),d?.(N,I)),N}function $(R){R.which===at.LEFT?w(false,R):R.which===at.RIGHT&&w(true,R),m?.(R);}function E(R){const I=w(!S,R);u?.(I,R);}const T=X(e,t,{[`${e}-checked`]:S,[`${e}-disabled`]:o});return f.createElement("button",i3({},b,{type:"button",role:"switch","aria-checked":S,disabled:o,className:T,ref:y,onKeyDown:$,onClick:E}),i,f.createElement("span",{className:`${e}-inner`},f.createElement("span",{className:X(`${e}-inner-checked`,g?.content),style:p?.content},a),f.createElement("span",{className:X(`${e}-inner-unchecked`,g?.content),style:p?.content},l)))});LH.displayName="Switch";const qpe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:u}=e,d=`${t}-inner`,m=oe(u(l).add(u(r).mul(2)).equal()),p=oe(u(a).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:oe(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${d}-checked, ${d}-unchecked`]:{minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${p})`,marginInlineEnd:`calc(100% - ${m} + ${p})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:u(u(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${p})`,marginInlineEnd:`calc(-100% + ${m} - ${p})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${oe(u(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(e.marginXXS).div(2).equal(),marginInlineEnd:u(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:u(e.marginXXS).div(2).equal()}}}}}}},Gpe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Kpe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return {[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,...Ts(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...Ts()}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${oe(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Ype=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,switchDuration:l,calc:u}=e,d=`${t}-inner`,m=oe(u(a).add(u(r).mul(2)).equal()),p=oe(u(i).mul(2).equal());return {[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:["padding-inline-start","padding-inline-end"].map(g=>`${g} ${l} ease-in-out`).join(", "),...Ts(),[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(g=>`${g} ${l} ease-in-out`).join(", "),...Ts()},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${p})`,marginInlineEnd:`calc(100% - ${m} + ${p})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${p})`,marginInlineEnd:`calc(-100% + ${m} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},Xpe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:{...dn(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:oe(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...Ts(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Ei(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},Qpe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=2,u=i-l*2,d=a-l*2;return {trackHeight:i,trackHeightSM:a,trackMinWidth:u*2+l*4,trackMinWidthSM:d*2+l*2,trackPadding:l,handleBg:o,handleSize:u,handleSizeSM:d,handleShadow:`0 2px 4px 0 ${new cn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:u/2,innerMaxMargin:u+l+l*2,innerMinMarginSM:d/2,innerMaxMarginSM:d+l+l*2}},Zpe=qt("Switch",e=>{const t=Ft(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [Xpe(t),Ype(t),Kpe(t),Gpe(t),qpe(t)]},Qpe),Jpe=f.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:u,checked:d,value:m,defaultChecked:p,defaultValue:g,onChange:b,styles:y,classNames:S,...C}=e,[w,$]=un(p??g??false,d??m),{getPrefixCls:E,direction:T,className:R,style:I,classNames:N,styles:P}=jt("switch"),O=f.useContext(ro),_=(o??O)||i,L=E("switch",n),[k,W]=Zpe(L),q=lo(r),F={...e,size:q,disabled:_},[z,j]=Kt([N,S],[P,y],{props:F}),U=f.createElement("div",{className:X(`${L}-handle`,z.indicator),style:j.indicator},i&&f.createElement(t1,{className:`${L}-loading-icon`})),Y=X(R,{[`${L}-small`]:q==="small",[`${L}-loading`]:i,[`${L}-rtl`]:T==="rtl"},a,l,z.root,k,W),Q={...j.root,...I,...u},D=(...B)=>{$(B[0]),b?.(...B);};return f.createElement(eg,{component:"Switch",disabled:_},f.createElement(LH,{...C,classNames:z,styles:j,checked:w,onChange:D,prefixCls:L,className:Y,style:Q,disabled:_,ref:t,loadingIcon:U}))}),BH=Jpe;BH.__ANT_SWITCH=true;const ege=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return {[o]:{...dn(e),display:"inline-block",height:"auto",paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},sT=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Ft(e,{tagFontSize:o,tagLineHeight:oe(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},lT=e=>{const t=SR(new Ko(e.colorBgSolid),"#fff")?"#000":"#fff";return {defaultBg:new cn(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},cT=qt("Tag",e=>{const t=sT(e);return ege(t)},lT),zH=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,children:a,icon:l,onChange:u,onClick:d,disabled:m,...p}=e,{getPrefixCls:g,tag:b}=f.useContext(wt),y=f.useContext(ro),S=m??y,C=R=>{S||(u?.(!i),d?.(R));},w=g("tag",n),[$,E]=cT(w),T=X(w,`${w}-checkable`,{[`${w}-checkable-checked`]:i,[`${w}-checkable-disabled`]:S},b?.className,o,$,E);return f.createElement("span",{...p,ref:t,style:{...r,...b?.style},className:T,onClick:C},l,f.createElement("span",null,a))}),tge=G.forwardRef((e,t)=>{const{id:n,prefixCls:r,rootClassName:o,className:i,style:a,classNames:l,styles:u,disabled:d,options:m,value:p,defaultValue:g,onChange:b,multiple:y,...S}=e,{getPrefixCls:C,direction:w,className:$,style:E,classNames:T,styles:R}=jt("tag"),I=C("tag",r),N=`${I}-checkable-group`,P=Qn(I),[O,_]=cT(I,P),[L,k]=Kt([T,l],[R,u],{props:e}),W=f.useMemo(()=>Array.isArray(m)?m.map(Y=>Y&&typeof Y=="object"?Y:{value:Y,label:Y}):[],[m]),[q,F]=un(g,p),z=(Y,Q)=>{let D=null;if(y){const B=q||[];D=Y?[].concat(Zt(B),[Q.value]):B.filter(K=>K!==Q.value);}else D=Y?Q.value:null;F(D),b?.(D);},j=G.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:j.current}));const U=Co(S,{aria:true,data:true});return G.createElement("div",{...U,className:X(N,$,o,{[`${N}-disabled`]:d,[`${N}-rtl`]:w==="rtl"},O,_,i,L.root),style:{...E,...k.root,...a},id:n,ref:j},W.map(Y=>G.createElement(zH,{key:Y.value,className:X(`${N}-item`,L.item),style:k.item,checked:y?(q||[]).includes(Y.value):q===Y.value,onChange:Q=>z(Q,Y),disabled:d},Y.label)))});function nge(e,t){const{color:n,variant:r,bordered:o}=e;return f.useMemo(()=>{const i=n?.endsWith("-inverse");let a;r?a=r:i?a="solid":o===false?a="filled":a=t||"filled";const l=i?n?.replace("-inverse",""):n,u=u1(n),d=mce(n),m={};if(!u&&!d&&l)if(a==="solid")m.backgroundColor=n;else {const p=new cn(l).toHsl();p.l=.95,m.backgroundColor=new cn(p).toHexString(),m.color=n,a==="outlined"&&(m.borderColor=n);}return [a,l,u,d,m]},[n,r,o,t])}const rge=e=>Xy(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:i,borderColor:i,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:n}}})),oge=Df(["Tag","preset"],e=>{const t=sT(e);return rge(t)},lT);function ige(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const mb=(e,t,n)=>{const r=ige(n);return {[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},age=Df(["Tag","status"],e=>{const t=sT(e);return [mb(t,"success","Success"),mb(t,"processing","Info"),mb(t,"error","Error"),mb(t,"warning","Warning")]},lT),sge=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:u,variant:d,onClose:m,bordered:p,disabled:g,href:b,target:y,styles:S,classNames:C,...w}=e,{getPrefixCls:$,direction:E,className:T,variant:R,style:I,classNames:N,styles:P}=jt("tag"),[O,_,L,k,W]=nge(e,R),q=L||k,F=f.useContext(ro),z=g??F,{tag:j}=f.useContext(wt),[U,Y]=f.useState(true),Q=zn(w,["closeIcon","closable"]),D={...e,color:_,variant:O,disabled:z,href:b,target:y,icon:l},[B,K]=Kt([N,C],[P,S],{props:D}),J=f.useMemo(()=>{let pe={...K.root,...I,...i};return z||(pe={...W,...pe}),pe},[K.root,I,i,W,z]),ee=$("tag",n),[te,re]=cT(ee),ie=X(ee,T,B.root,`${ee}-${O}`,{[`${ee}-${_}`]:q,[`${ee}-hidden`]:!U,[`${ee}-rtl`]:E==="rtl",[`${ee}-disabled`]:z},r,o,te,re),ue=pe=>{z||(pe.stopPropagation(),m?.(pe),!pe.defaultPrevented&&Y(false));},[,ne]=rR(Hl(e),Hl(j),{closable:false,closeIconRender:pe=>{const be=f.createElement("span",{className:`${ee}-close-icon`,onClick:ue},pe);return bk(pe,be,xe=>({onClick:Te=>{xe?.onClick?.(Te),ue(Te);},className:X(xe?.className,`${ee}-close-icon`)}))}}),ce=typeof w.onClick=="function"||a&&a.type==="a",fe=jr(l,{className:X(f.isValidElement(l)?l.props?.className:void 0,B.icon),style:K.icon}),se=fe?f.createElement(f.Fragment,null,fe,a&&f.createElement("span",{className:B.content,style:K.content},a)):a,Me=b?"a":"span",ae=f.createElement(Me,{...Q,ref:t,className:ie,style:J,href:z?void 0:b,target:y,onClick:z?void 0:Q.onClick,...b&&z?{"aria-disabled":true}:{}},se,ne,L&&f.createElement(oge,{key:"preset",prefixCls:ee}),k&&f.createElement(age,{key:"status",prefixCls:ee}));return ce?f.createElement(eg,{component:"Tag"},ae):ae}),yo=sge;yo.CheckableTag=zH;yo.CheckableTagGroup=tge;const lge=e=>{const t=e?.algorithm?N0(e.algorithm):XM,n={...mf,...e?.token};return mz(n,{override:e?.token},t,_z)};function cge(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return {sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const uge=(e,t)=>{const n=t??Yy(e),r=n.fontSizeSM,o=n.controlHeight-4;return {...n,...cge(t??e),...Dz(r),controlHeight:o,...Oz({...n,controlHeight:o})}},zi=(e,t)=>new cn(e).setA(t).toRgbString(),Ic=(e,t)=>new cn(e).lighten(t).toHexString(),K8=e=>{const t=Xp(e,{theme:"dark"});return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},dge=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:zi(r,.85),colorTextSecondary:zi(r,.65),colorTextTertiary:zi(r,.45),colorTextQuaternary:zi(r,.25),colorFill:zi(r,.18),colorFillSecondary:zi(r,.12),colorFillTertiary:zi(r,.08),colorFillQuaternary:zi(r,.04),colorBgSolid:zi(r,.95),colorBgSolidHover:zi(r,1),colorBgSolidActive:zi(r,.9),colorBgElevated:Ic(n,12),colorBgContainer:Ic(n,8),colorBgLayout:Ic(n,0),colorBgSpotlight:Ic(n,26),colorBgBlur:zi(r,.04),colorBorder:Ic(n,26),colorBorderDisabled:Ic(n,26),colorBorderSecondary:Ic(n,19)}},fge=(e,t)=>{const n=Object.keys(YM).map(a=>{const l=Xp(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,d,m)=>(u[`${a}-${m+1}`]=l[m],u[`${a}${m+1}`]=l[m],u),{})}).reduce((a,l)=>(a={...a,...l},a),{}),r=t??Yy(e),o=Iz(e,{generateColorPalettes:K8,generateNeutralColorPalettes:dge}),i=qa.reduce((a,l)=>{const u=e[l];if(u){const d=K8(u);a[`${l}Hover`]=d[7],a[`${l}Active`]=d[5];}return a},{});return {...r,...n,...o,...i,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}};function mge(){const[e,t,n,r]=Wr();return {theme:e,token:t,hashId:n,cssVar:r}}const ay={defaultSeed:hp.token,useToken:mge,defaultAlgorithm:Yy,darkAlgorithm:fge,compactAlgorithm:uge,getDesignToken:lge,defaultConfig:hp,_internalContext:QM},sy=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},hge=e=>{const t=new Map;return e.forEach(({disabled:n,key:r},o)=>{n&&t.set(r,o);}),t};function pge(e,t){const n=e==="right";return t!=="rtl"?n?G.createElement(pf,null):G.createElement(vp,null):n?G.createElement(vp,null):G.createElement(pf,null)}const Y8=({type:e,actions:t,moveToLeft:n,moveToRight:r,leftActive:o,rightActive:i,direction:a,disabled:l})=>{const u=e==="right",d=u?t[0]:t[1],m=u?r:n,p=u?i:o,g=pge(e,a);if(G.isValidElement(d)){const b=d,y=S=>{b?.props?.onClick?.(S),m?.(S);};return G.cloneElement(b,{disabled:l||!p,onClick:y})}return G.createElement(lt,{type:"primary",size:"small",disabled:l||!p,onClick:b=>m?.(b),icon:g},d)},kH=e=>{const{className:t,style:n,oneWay:r,actions:o,...i}=e;return G.createElement("div",{className:t,style:n},G.createElement(Y8,{type:"right",actions:o,...i}),!r&&G.createElement(Y8,{type:"left",actions:o,...i}),o.slice(r?1:2))},gge=(e,t,n)=>{const r=f.useMemo(()=>(e||[]).map(a=>t?{...a,key:t(a)}:a),[e,t]),[o,i]=f.useMemo(()=>{const a=[],l=Array.from({length:n?.length??0}),u=sy(n||[]);return r.forEach(d=>{if(u.has(d.key)){const m=u.get(d.key);l[m]=d;}else a.push(d);}),[a,l]},[r,n]);return [r,o.filter(Boolean),i.filter(Boolean)]},vge=[];function hb(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function X8(e){return Array.from(e).join(";")}function bge(e,t,n){const[r,o]=f.useMemo(()=>[new Set(e.map(p=>p?.key)),new Set(t.map(p=>p?.key))],[e,t]),[i,a]=un(vge,n),l=f.useMemo(()=>hb(i,r),[i,r]),u=f.useMemo(()=>hb(i,o),[i,o]);f.useEffect(()=>{a([].concat(Zt(hb(i,r)),Zt(hb(i,o))));},[X8(r),X8(o)]);const d=Mt(p=>{a([].concat(Zt(p),Zt(u)));}),m=Mt(p=>{a([].concat(Zt(l),Zt(p)));});return [l,u,d,m]}const FH=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,l=f.useCallback(u=>{i?.(u),u.target.value===""&&a?.();},[i]);return f.createElement(jf,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:true,prefix:f.createElement(LR,null)})};var yge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function a3(){return a3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},a3.apply(this,arguments)}const Sge=(e,t)=>f.createElement(Xn,a3({},e,{ref:t,icon:yge})),Cge=f.forwardRef(Sge),xge=e=>{const{prefixCls:t,classNames:n,styles:r,renderedText:o,renderedEl:i,item:a,checked:l,disabled:u,onClick:d,onRemove:m,showRemove:p}=e,g=u||a?.disabled,b=X(`${t}-content-item`,n.item,{[`${t}-content-item-disabled`]:g,[`${t}-content-item-checked`]:l&&!g});let y;(typeof o=="string"||typeof o=="number")&&(y=String(o));const[S]=_o("Transfer",ya.Transfer),C={className:b,style:r.item,title:y},w=f.createElement("span",{className:X(`${t}-content-item-text`,n.itemContent),style:r.itemContent},i);return p?f.createElement("li",{...C},w,f.createElement("button",{type:"button",disabled:g,className:`${t}-content-item-remove`,"aria-label":S?.remove,onClick:()=>m?.(a)},f.createElement(Cge,null))):(C.onClick=g?void 0:$=>d(a,$),f.createElement("li",{...C},f.createElement(Ki,{className:X(`${t}-checkbox`,n.itemIcon),style:r.itemIcon,checked:l,disabled:g}),w))},wge=f.memo(xge),$ge=["handleFilter","handleClear","checkedKeys"],Ege=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),Mge=(e,t)=>{const{prefixCls:n,classNames:r,styles:o,filteredRenderItems:i,selectedKeys:a,disabled:l,showRemove:u,pagination:d,onScroll:m,onItemSelect:p,onItemRemove:g}=e,[b,y]=f.useState(1),S=f.useMemo(()=>d?Ege(typeof d=="object"?d:{}):null,[d]),[C,w]=un(10,S?.pageSize);f.useEffect(()=>{if(S){const P=Math.ceil(i.length/C);y(Math.min(b,P));}},[i,S,C]);const $=(P,O)=>{p(P.key,!a.includes(P.key),O);},E=P=>{g?.([P.key]);},T=P=>{y(P);},R=(P,O)=>{y(P),w(O);},I=f.useMemo(()=>S?i.slice((b-1)*C,b*C):i,[b,i,S,C]);f.useImperativeHandle(t,()=>({items:I}));const N=S?f.createElement(qhe,{size:"small",disabled:l,simple:S.simple,pageSize:C,showLessItems:S.showLessItems,showSizeChanger:S.showSizeChanger,className:`${n}-pagination`,total:i.length,current:b,onChange:T,onShowSizeChange:R}):null;return f.createElement(f.Fragment,null,f.createElement("ul",{className:X(`${n}-content`,r.list,{[`${n}-content-show-remove`]:u}),style:o.list,onScroll:m},(I||[]).map(({renderedEl:P,renderedText:O,item:_})=>f.createElement(wge,{key:_.key,prefixCls:n,classNames:r,styles:o,item:_,renderedText:O,renderedEl:P,showRemove:u,onClick:$,onRemove:E,checked:a.includes(_.key),disabled:l}))),N)},Rge=f.forwardRef(Mge),Tge=()=>null;function Age(e){return !!(e&&!G.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function ah(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Nge=e=>e!==void 0,Pge=e=>e&&typeof e=="object"?{...e,defaultValue:e.defaultValue||""}:{defaultValue:"",placeholder:""},s3=e=>{const{prefixCls:t,style:n,classNames:r,styles:o,dataSource:i=[],titleText:a="",checkedKeys:l,disabled:u,showSearch:d=false,searchPlaceholder:m,notFoundContent:p,selectAll:g,deselectAll:b,selectCurrent:y,selectInvert:S,removeAll:C,removeCurrent:w,showSelectAll:$=true,showRemove:E,pagination:T,direction:R,itemsUnit:I,itemUnit:N,selectAllLabel:P,selectionsIcon:O,footer:_,renderList:L,onItemSelectAll:k,onItemRemove:W,handleFilter:q,handleClear:F,filterOption:z,render:j=Tge}=e,U=`${t}-section`,Y=`${t}-list`,Q=Pge(d),[D,B]=f.useState(Q.defaultValue),K=f.useRef({}),J=de=>{B(de.target.value),q(de);},ee=()=>{B(""),F();},te=(de,ve)=>typeof z=="function"?z(D,ve,R):de.includes(D),re=de=>{let ve=L?L({...de,onItemSelect:(He,We)=>de.onItemSelect(He,We)}):null;const Ne=!!ve;return Ne||(ve=G.createElement(Rge,{ref:K,...de,prefixCls:Y})),{customize:Ne,bodyContent:ve}},ie=de=>{const ve=j(de),Ne=Age(ve);return {item:de,renderedEl:Ne?ve.label:ve,renderedText:Ne?ve.value:ve}},ue=f.useMemo(()=>Array.isArray(p)?p[R==="left"?0:1]:p,[p,R]),[ne,ce]=f.useMemo(()=>{const de=[],ve=[];return i.forEach(Ne=>{const He=ie(Ne);D&&!te(He.renderedText,Ne)||(de.push(Ne),ve.push(He));}),[de,ve]},[i,D]),fe=f.useMemo(()=>ne.filter(de=>l.includes(de.key)&&!de.disabled),[l,ne]),se=f.useMemo(()=>{if(fe.length===0)return "none";const de=sy(l);return ne.every(ve=>de.has(ve.key)||!!ve.disabled)?"all":"part"},[fe.length,l,ne]),Me=()=>{const de=d?G.createElement("div",{className:`${Y}-body-search-wrapper`},G.createElement(FH,{prefixCls:`${Y}-search`,onChange:J,handleClear:ee,placeholder:Q.placeholder||m,value:D,disabled:u})):null,{customize:ve,bodyContent:Ne}=re({...zn(e,$ge),filteredItems:ne,filteredRenderItems:ce,selectedKeys:l,classNames:r,styles:o});let He;return ve?He=G.createElement("div",{className:`${Y}-body-customize-wrapper`},Ne):He=ne.length?Ne:G.createElement("div",{className:`${Y}-body-not-found`},ue),G.createElement("div",{className:X(`${Y}-body`,{[`${Y}-body-with-search`]:d},r.body),style:o.body},de,He)},ae=G.createElement(Ki,{disabled:i.filter(de=>!de.disabled).length===0||u,checked:se==="all",indeterminate:se==="part",className:`${Y}-checkbox`,onChange:()=>{k?.(ne.filter(de=>!de.disabled).map(({key:de})=>de),se!=="all");}}),pe=(de,ve)=>{if(P)return typeof P=="function"?P({selectedCount:de,totalCount:ve}):P;const Ne=ve>1?I:N;return G.createElement(G.Fragment,null,(de>0?`${de}/`:"")+ve," ",Ne)},be=_&&(_.length<2?_(e):_(e,{direction:R})),xe=be?G.createElement("div",{className:X(`${Y}-footer`,r.footer),style:o.footer},be):null,Te=!E&&!T&&ae;let Ke;E?Ke=[T?{key:"removeCurrent",label:w,onClick(){const de=ah((K.current?.items||[]).map(ve=>ve.item));W?.(de);}}:null,{key:"removeAll",label:C,onClick(){W?.(ah(ne));}}].filter(Boolean):Ke=[{key:"selectAll",label:se==="all"?b:g,onClick(){const de=ah(ne);k?.(de,de.length!==l.length);}},T?{key:"selectCurrent",label:y,onClick(){const de=K.current?.items||[];k?.(ah(de.map(ve=>ve.item)),true);}}:null,{key:"selectInvert",label:S,onClick(){const de=ah((K.current?.items||[]).map(He=>He.item)),ve=new Set(l),Ne=new Set(ve);de.forEach(He=>{ve.has(He)?Ne.delete(He):Ne.add(He);}),k?.(Array.from(Ne),"replace");}}];const Ae=G.createElement(ic,{className:`${Y}-header-dropdown`,menu:{items:Ke},disabled:u},Nge(O)?O:G.createElement(_R,null));return G.createElement("div",{className:X(U,r.section,{[`${U}-with-pagination`]:!!T,[`${U}-with-footer`]:!!be}),style:{...n,...o.section}},G.createElement("div",{className:X(`${Y}-header`,r.header),style:o.header},$?G.createElement(G.Fragment,null,Te,Ae):null,G.createElement("span",{className:`${Y}-header-selected`},pe(fe.length,ne.length)),G.createElement("span",{className:X(`${Y}-header-title`,r.title),style:o.title},a)),Me(),xe)},Ige=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o}=e,i=`${t}-table`,a=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-section`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:o,minWidth:o}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},Q8=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},Oge=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:{...Q8(e,e.colorError)},[`${t}-status-warning`]:{...Q8(e,e.colorWarning)}}},Dge=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:u,controlItemBgActive:d,colorTextDisabled:m,colorTextSecondary:p,listHeight:g,listWidth:b,listWidthLG:y,fontSizeIcon:S,marginXS:C,paddingSM:w,lineType:$,antCls:E,iconCls:T,motionDurationSlow:R,controlItemBgHover:I,borderRadiusLG:N,colorBgContainer:P,colorText:O,controlItemBgActiveHover:_}=e,L=oe(e.calc(N).sub(o).equal());return {display:"flex",flexDirection:"column",width:b,height:g,border:`${oe(o)} ${$} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:y,height:"auto"},[`${t}-list`]:{"&-search":{[`${T}-search`]:{color:m}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${oe(e.calc(l).sub(o).equal())} ${oe(w)} ${oe(l)}`,color:O,background:P,borderBottom:`${oe(o)} ${$} ${r}`,borderRadius:`${oe(N)} ${oe(N)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...Ga,flex:"0 1 auto",textAlign:"end",marginInlineStart:"auto"},"&-dropdown":{...Au(),fontSize:S,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:w}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${L} ${L}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${oe(u)} ${oe(w)}`,transition:`all ${R}`,"> *:not(:last-child)":{marginInlineEnd:C},"> *":{flex:"none"},"&-text":{...Ga,flex:"auto"},"&-remove":{...ate(e),color:n,"&:hover, &:focus":{color:p}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:I,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:_}},"&-checked":{backgroundColor:d},"&-disabled":{color:m,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${oe(o)} ${$} ${r}`,[`${E}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:m,textAlign:"center"},"&-footer":{borderTop:`${oe(o)} ${$} ${r}`},"&-checkbox":{lineHeight:1}}}},_ge=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return {[r]:{...dn(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-section`]:{background:l}},[`${r}-section`]:Dge(e),[`${r}-actions`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${oe(o)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:a}}}}},Lge=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},Bge=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:i}=e,a=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((o-i-a)/2)}},zge=qt("Transfer",e=>{const t=Ft(e);return [_ge(t),Ige(t),Oge(t),Lge(t)]},Bge),C1=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,styles:i,style:a,listStyle:l,operationStyle:u,operations:d,actions:m,dataSource:p,targetKeys:g=[],selectedKeys:b,selectAllLabels:y=[],locale:S={},titles:C,disabled:w,showSearch:$=false,showSelectAll:E,oneWay:T,pagination:R,status:I,selectionsIcon:N,filterOption:P,render:O,footer:_,children:L,rowKey:k,onScroll:W,onChange:q,onSearch:F,onSelectChange:z}=e,{getPrefixCls:j,renderEmpty:U,direction:Y,className:Q,style:D,classNames:B,styles:K,selectionsIcon:J}=jt("transfer"),ee=f.useContext(ro),te=w??ee,re={...e,disabled:te},ie=j("transfer",t),[ue,ne]=zge(ie),ce=m||d||[],fe=Y==="rtl",[se,Me,ae]=gge(p,k,g),[pe,be,xe,Te]=bge(Me,ae,b),[Ke,Ae]=AI(Xe=>Xe.key),[de,ve]=AI(Xe=>Xe.key),Ne=f.useCallback((Xe,Ue)=>{if(Xe==="left"){const mt=typeof Ue=="function"?Ue(pe||[]):Ue;xe(mt);}else {const mt=typeof Ue=="function"?Ue(be||[]):Ue;Te(mt);}},[pe,be]),He=(Xe,Ue)=>{(Xe==="left"?Ae:ve)(Ue);},We=f.useCallback((Xe,Ue)=>{Xe==="left"?z?.(Ue,be):z?.(pe,Ue);},[pe,be]),je=Xe=>C??Xe.titles??[],nt=Xe=>{W?.("left",Xe);},ot=Xe=>{W?.("right",Xe);},Ge=Xe=>{const Ue=Xe==="right"?pe:be,mt=hge(se),Nt=Ue.filter(Nn=>!mt.has(Nn)),Wt=sy(Nt),Jt=Xe==="right"?Nt.concat(g):g.filter(Nn=>!Wt.has(Nn)),tn=Xe==="right"?"left":"right";Ne(tn,[]),We(tn,[]),q?.(Jt,Xe,Nt);},Oe=()=>{Ge("left"),He("left",null);},qe=()=>{Ge("right"),He("right",null);},Je=(Xe,Ue,mt)=>{Ne(Xe,Nt=>{let Wt=[];if(mt==="replace")Wt=Ue;else if(mt)Wt=Array.from(new Set([].concat(Zt(Nt),Zt(Ue))));else {const Jt=sy(Ue);Wt=Nt.filter(tn=>!Jt.has(tn));}return We(Xe,Wt),Wt}),He(Xe,null);},Le=(Xe,Ue)=>Je("left",Xe,Ue),Ie=(Xe,Ue)=>Je("right",Xe,Ue),ct=Xe=>F?.("left",Xe.target.value),Ot=Xe=>F?.("right",Xe.target.value),pt=()=>F?.("left",""),Lt=()=>F?.("right",""),xt=(Xe,Ue,mt,Nt,Wt)=>{Ue.has(mt)&&(Ue.delete(mt),He(Xe,null)),Nt&&(Ue.add(mt),He(Xe,Wt));},Rt=(Xe,Ue,mt,Nt)=>{(Xe==="left"?Ke:de)(Nt,Ue,mt);},ut=(Xe,Ue,mt,Nt)=>{const Wt=Xe==="left",Jt=Wt?pe:be,tn=new Set(Jt),Nn=(Wt?Me:ae).filter(fo=>!fo.disabled),rr=Nn.findIndex(fo=>fo.key===Ue);Nt&&Jt.length>0?Rt(Xe,Nn,tn,rr):xt(Xe,tn,Ue,mt,rr);const Sn=Array.from(tn);We(Xe,Sn),e.selectedKeys||Ne(Xe,Sn);},ft=(Xe,Ue,mt)=>{ut("left",Xe,Ue,mt?.shiftKey);},vt=(Xe,Ue,mt)=>ut("right",Xe,Ue,mt?.shiftKey),ke=Xe=>{Ne("right",[]),q?.(g.filter(Ue=>!Xe.includes(Ue)),"left",Zt(Xe));},Ze=Xe=>typeof l=="function"?l({direction:Xe}):l||{},Se=f.useContext(xo),{hasFeedback:ye,status:Ce}=Se,he=Xe=>({...Xe,notFoundContent:U?.("Transfer")||G.createElement(WF,{componentName:"Transfer"}),...S}),De=zf(Ce,I),we=!L&&R,ze=ae.filter(Xe=>be.includes(Xe.key)&&!Xe.disabled).length>0,Ye=Me.filter(Xe=>pe.includes(Xe.key)&&!Xe.disabled).length>0,[it,dt]=Kt([B,o],[K,i],{props:re}),$t=X(ie,{[`${ie}-disabled`]:te,[`${ie}-customize-list`]:!!L,[`${ie}-rtl`]:fe},Wl(ie,De,ye),Q,n,r,ue,ne,it.root),[Tt]=_o("Transfer",ya.Transfer),At=he(Tt),[yn,Un]=je(At),et=N??J;return G.createElement("div",{className:$t,style:{...D,...dt.root,...a}},G.createElement(s3,{prefixCls:ie,style:Ze("left"),classNames:it,styles:dt,titleText:yn,dataSource:Me,filterOption:P,checkedKeys:pe,handleFilter:ct,handleClear:pt,onItemSelect:ft,onItemSelectAll:Le,render:O,showSearch:$,renderList:L,footer:_,onScroll:nt,disabled:te,direction:fe?"right":"left",showSelectAll:E,selectAllLabel:y[0],pagination:we,selectionsIcon:et,...At}),G.createElement(kH,{className:X(`${ie}-actions`,it.actions),rightActive:Ye,moveToRight:qe,leftActive:ze,actions:ce,moveToLeft:Oe,style:{...u,...dt.actions},disabled:te,direction:Y,oneWay:T}),G.createElement(s3,{prefixCls:ie,style:Ze("right"),classNames:it,styles:dt,titleText:Un,dataSource:ae,filterOption:P,checkedKeys:be,handleFilter:Ot,handleClear:Lt,onItemSelect:vt,onItemSelectAll:Ie,onItemRemove:ke,render:O,showSearch:$,renderList:L,footer:_,onScroll:ot,disabled:te,direction:fe?"left":"right",showSelectAll:E,selectAllLabel:y[1],showRemove:T,pagination:we,selectionsIcon:et,...At}))};C1.List=s3;C1.Search=FH;C1.Operation=kH;const{proxyStateMap:kge}=MM(),Fge=e=>kge.has(e),l3=new Set;FQ("createHandler",e=>(...t)=>{const n=e(...t),r=n.get||((o,i,a)=>Reflect.get(o,i,a));return n.get=(o,i,a)=>{for(const l of l3)l(o,i,a);return r(o,i,a)},n});const dw=[],Hge=e=>{dw.length?dw[dw.length-1].add(e):e();};function Vge(e){const t=new Map,n=new Map,r=(u,d)=>Array.from(d).some(([m,p])=>{const g=u[m],b=n.get(g);if(b)return r(g,b);if(!Object.is(g,p[0]))return  true;const y=p5(g),S=p[1];return typeof y=="number"&&typeof S=="number"?y!==S:false}),o=()=>{Array.from(n).some(([u,d])=>r(u,d))&&a();},i=()=>{for(const[u,d]of t)n.has(u)||(d(),t.delete(u));for(const u of n.keys())if(!t.has(u)){const d=Qa(u,()=>Hge(o),true);t.set(u,d);}},a=()=>{n.clear();const u=(d,m,p)=>{if(!Fge(p))return;let g=n.get(p);g||(g=new Map,n.set(p,g));const b=Reflect.get(d,m,p);g.set(m,[b,p5(b)]);};l3.add(u);try{e();}finally{l3.delete(u),i();}};return a(),()=>{for(const u of t.values())u();t.clear(),n.clear();}}function jge(e,t){const n=Vge(e);return ()=>{n();}}function bf(e,t,n){return e<t?t:e>n?n:e}function Uge(e){return e.value}var uT=class HH{static fromConcurrency(t,n=""){if(!isFinite(t))throw new Error("concurrency must be finite");if(!(t>0))throw new Error("concurrency must be greater than 0");const r=new Array(t).fill(0).map((o,i)=>[n,`executors(${t})`,i].map(a=>a&&a.toString().trim()).filter(Boolean).join("."));return new HH(r)}executorRefs;idleState;constructor(t){if(!t.length)throw new Error("executors can not be empty");this.executorRefs=t.map(n=>({value:n})),this.idleState=new WeakMap,this.executorRefs.forEach(n=>this.idleState.set(n,true));}aborted=false;abort(){this.aborted=true,this.pendingResolves=[];}pendingResolves=[];replenish=t=>{this.aborted||this.pendingResolves.length&&this.pendingResolves.shift()?.();};async getExecutorRef(){const t=()=>this.executorRefs.find(r=>this.idleState.get(r));let n=t();for(;!n;){const{promise:r,resolve:o}=Promise.withResolvers();this.pendingResolves.push(o),await r,n=t();}return this.idleState.set(n,false),n}async dispatch(t){const n=await this.getExecutorRef(),r=Uge(n);try{return await t(r)}finally{this.idleState.set(n,true),setTimeout(()=>this.replenish(n));}}};async function Gl(e,t,n){if(!e.length)return [];n=Math.min(n,e.length);const r=uT.fromConcurrency(n,"pmap");try{return await Promise.all(e.map((o,i)=>r.dispatch(()=>t(o,i,e))))}catch(o){throw r.abort(),o}}function dT(e){const t=uT.fromConcurrency(e,"pLimit");return function(r,...o){return t.dispatch(()=>r(...o))}}var VH=Wge;function Wge(e,t){const n=uT.fromConcurrency(t,"createLimitedVersionOfFn");return function(...o){return n.dispatch(()=>e(...o))}}function fT(e,t,n,r){let o=e[t];return Qa(e,()=>{const i=e[t];Object.is(o,i)||n(o=i);},r)}const{proxyStateMap:qge,snapCache:Gge}=MM(),pb=e=>qge.has(e);function jH(e){const t=[];let n=0;const r=new Map,o=new WeakMap,i=()=>{const d=Gge.get(l),m=d?.[1];if(m&&!o.has(m)){const p=new Map(r);o.set(m,p);}},a=d=>o.get(d)||r;if(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError(`proxyMap:
	initial state must be iterable
		tip: structure should be [[key, value]]`);for(const[d,m]of e)r.set(d,n),t[n++]=m;}const l={data:t,index:n,epoch:0,get size(){return pb(this)||i(),a(this).size},get(d){const p=a(this).get(d);if(p===void 0){this.epoch;return}return this.data[p]},has(d){const m=a(this);return this.epoch,m.has(d)},set(d,m){if(!pb(this))throw new Error("Cannot perform mutations on a snapshot");const p=r.get(d);return p===void 0?(r.set(d,this.index),this.data[this.index++]=m):this.data[p]=m,this.epoch++,this},delete(d){if(!pb(this))throw new Error("Cannot perform mutations on a snapshot");const m=r.get(d);return m===void 0?false:(delete this.data[m],r.delete(d),this.epoch++,true)},clear(){if(!pb(this))throw new Error("Cannot perform mutations on a snapshot");this.data.length=0,this.index=0,this.epoch++,r.clear();},forEach(d){this.epoch,a(this).forEach((p,g)=>{d(this.data[p],g,this);});},*entries(){this.epoch;const d=a(this);for(const[m,p]of d)yield [m,this.data[p]];},*keys(){this.epoch;const d=a(this);for(const m of d.keys())yield m;},*values(){this.epoch;const d=a(this);for(const m of d.values())yield this.data[m];},[Symbol.iterator](){return this.entries()},get[Symbol.toStringTag](){return "Map"},toJSON(){return new Map(this.entries())}},u=kn(l);return Object.defineProperties(u,{size:{enumerable:false},index:{enumerable:false},epoch:{enumerable:false},data:{enumerable:false},toJSON:{enumerable:false}}),Object.seal(u),u}const{proxyStateMap:Kge,snapCache:Yge}=MM(),gb=e=>typeof e=="object"?kn({x:e}).x:e,vb=e=>Kge.has(e);function Rr(e){const t=[],n=new Map;let r=0;const o=new WeakMap,i=()=>{const C=Yge.get(y),w=C?.[1];if(w&&!o.has(w)){const $=new Map(n);o.set(w,$);}},a=C=>o.get(C)||n;if(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("not iterable");for(const C of e)if(!n.has(C)){const w=gb(C);n.set(w,r),t[r++]=w;}}const l=C=>typeof C=="object"&&C!==null&&Symbol.iterator in C,u=C=>typeof C.forEach=="function",d=C=>{if(l(C))return C;if(u(C)){const w=[];return C.forEach($=>w.push($)),w}throw new TypeError("Expected an iterable")};function m(C){this.epoch;const w=Rr(d(C)),$=Rr();for(const E of this.values())w.has(E)&&$.add(E);return Rr($)}function p(C){this.epoch;const w=Rr(d(C)),$=Rr();for(const E of this.values())$.add(E);for(const E of w.values())$.add(E);return Rr($)}function g(C){this.epoch;const w=Rr(d(C)),$=Rr();for(const E of this.values())w.has(E)||$.add(E);return Rr($)}function b(C){this.epoch;const w=Rr(d(C)),$=Rr();for(const E of this.values())w.has(E)||$.add(E);for(const E of w.values())this.has(E)||$.add(E);return Rr($)}const y={data:t,index:r,epoch:0,get size(){return vb(this)||i(),n.size},has(C){const w=a(this),$=gb(C);return this.epoch,w.has($)},add(C){if(!vb(this))throw new Error("Cannot perform mutations on a snapshot");const w=gb(C);return n.has(w)||(n.set(w,this.index),this.data[this.index++]=w,this.epoch++),this},delete(C){if(!vb(this))throw new Error("Cannot perform mutations on a snapshot");const w=gb(C),$=n.get(w);return $===void 0?false:(delete this.data[$],n.delete(w),this.epoch++,true)},clear(){if(!vb(this))throw new Error("Cannot perform mutations on a snapshot");this.data.length=0,this.index=0,this.epoch++,n.clear();},forEach(C){this.epoch,a(this).forEach($=>{C(this.data[$],this.data[$],this);});},*values(){this.epoch;const C=a(this);for(const w of C.values())yield this.data[w];},keys(){return this.epoch,this.values()},*entries(){this.epoch;const C=a(this);for(const w of C.values()){const $=this.data[w];yield [$,$];}},toJSON(){return new Set(this.values())},[Symbol.iterator](){return this.values()},get[Symbol.toStringTag](){return "Set"},intersection:m,union:p,difference:g,symmetricDifference:b,isSubsetOf(C){this.epoch;for(const w of this.values())if(!C.has(w))return  false;return  true},isSupersetOf(C){this.epoch;const w=d(C);for(const $ of w)if(!this.has($))return  false;return  true},isDisjointFrom(C){this.epoch;for(const w of this.values())if(C.has(w))return  false;return  true}},S=kn(y);return Object.defineProperties(S,{size:{enumerable:false},data:{enumerable:false},index:{enumerable:false},epoch:{enumerable:false},toJSON:{enumerable:false}}),Object.seal(S),S}const Xge=typeof GM_info<"u"&&GM_info.scriptHandler==="Userscripts";function mi(e,t=true){if(e.startsWith("/")&&(e=location.origin+e),Xge){GM.openInTab(e,!t);return}GM.openInTab(e,{active:t,insert:true,setParent:true});}function mT({storageKey:e,onUpdate:t,setPersist:n}){if(typeof GM_addValueChangeListener>"u")return;const r=dT(1);GM_addValueChangeListener(e,(o,i,a,l)=>{l&&a&&r(async()=>{n(false);try{t(a);}finally{await Promise.resolve().then(()=>{n(true);});}});});}function ac(e){const t=kn({value:e()});function n(){return yt(t).value}function r(){return t.value}function o(){return t.value=e()}const i=Jl(o,100,{edges:["leading","trailing"]});return {state:t,use:n,get:r,update:o,updateThrottled:i}}function UH(e,t,n){let r=hu(Vr(e),t);Qa(e,()=>{const o=Vr(e),i=hu(o,t);fa(r,i)||n(o),r=i;});}function hT(e,t){t.startsWith(No)||(t=`${ao}:${t}`);const n=Object.keys(e),[r,o]=zl(()=>{const a=localStorage.getItem(t);if(!a)return;const l=JSON.parse(a);return hu(l,n)});r&&Xo("failed to load from localStorage key=",t,"error=",r);const i=kn({...e,...o});return setTimeout(()=>{Qa(i,()=>{const a=Vr(i);localStorage.setItem(t,JSON.stringify(a));});}),i}async function pT(e,t){async function n(){const o=Object.keys(e);return hu(await GM.getValue(t)||{},o)}const r=kn({...e,...await n()});return setTimeout(()=>{const o=dT(1);Qa(r,()=>o(async()=>{const i=await n(),a=vQ(i,Vr(r));GM.setValue(t,a);}));}),r}async function WH(e){const n=Rr(await(async()=>await GM.getValue(e)||[])()),r=a=>{const l=new Set(a);for(const u of [...n,...l])l.has(u)?n.add(u):n.delete(u);};setTimeout(i);let o=true;function i(){Qa(n,()=>{o&&GM.setValue(e,Array.from(Vr(n)));}),mT({storageKey:e,setPersist:a=>o=a,onUpdate:r});}return {set:n,replaceAllWith:r}}async function qH(e,t){const r=jH(await(async()=>await GM.getValue(e)||[])()),o=l=>{const u=new Map(l);for(const[d,m]of [...r,...u])u.has(d)?r.set(d,m):r.delete(d);};setTimeout(a);let i=true;function a(){Qa(r,()=>{if(!i)return;let l=Array.from(Vr(r));GM.setValue(e,l);}),mT({storageKey:e,setPersist:l=>i=l,onUpdate:o});}return {map:r,replaceAllWith:o}}const Qge=()=>document.querySelector(".bili-header__bar"),gT=ac(GH);function GH(){const e=Qge();return !!(e&&window.getComputedStyle(e).display==="none")}const bu=ac(function(){if(!GH())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const n=document.documentElement.style.getPropertyValue("--navbar-height");if(!n)return 50;const r=Number(n.replace("px",""));return Number.isNaN(r)?50:r}),vT=ac(function(){const t=document.documentElement.style.getPropertyValue("--navbar-bounds-padding");return !t||!/^\d+%$/.test(t)?void 0:100-bf(Number(t.replace("%","")),2,10)*2});function Zge(){const e=vT.use(),{pureRecommend:t,grid:{useCustomGrid:n}}=Ut();if(!t||!n||!e)return;const r=(1-e/100)/2*window.innerWidth+10,o=40;return r>o+24+5?void 0:r<o?0:Math.floor((r-o)/2)}const dg=ac(function(){return window.getComputedStyle(document.documentElement).getPropertyValue("--theme-color")}),KH=`${ao}:evolved-theme-color-hex`;jge(()=>{const e=dg.get();e&&localStorage.setItem(KH,e);});function YH(){return localStorage.getItem(KH)||Nf.Pink}function Jge(){gT.updateThrottled(),bu.updateThrottled(),vT.updateThrottled(),dg.updateThrottled();}const XH=new MutationObserver(()=>Jge());XH.observe(document.documentElement,{attributes:true,attributeFilter:["style"]});XH.observe(document.body,{attributes:true,attributeFilter:["class"]});document.body.addEventListener("click",e=>{const t=e.target,n=r=>!!r?.matches(".be-button.ok");!n(t)&&!n(t.parentElement)||t.closest(".be-popup.picker.open")&&setTimeout(dg.updateThrottled,1e3);},{capture:true,passive:true});const QH={maxCount:5,top:bu.get()-4};iT.config(QH);function eve(){const e=bu.use();return x(sg,{message:{...QH,top:e-4},children:x(tve,{})})}let bb,_t=iT,ca=$H,bT=Ea;function tve(){return bb=sg.useApp(),_t=bb.message,ca=bb.notification,bT=bb.modal,null}function vi(e){return e.filter(Boolean).filter(t=>t.test===void 0?true:typeof t.test=="boolean"?t.test:t.test()).map(t=>gB(t,["test"]))}const nve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.793 3.693a1 1 0 0 1 1.414 0l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L19.586 6.9l-1.793-1.793a1 1 0 0 1 0-1.414m0 10.15a1 1 0 0 1 1.414 0l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414l1.793-1.793l-1.793-1.793a1 1 0 0 1 0-1.414",clipRule:"evenodd"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.054 5.913c.352.023.657.043.946.043a1 1 0 1 1 0 2c-.346 0-.776-.028-1.184-.054a37 37 0 0 0-.606-.037c-.614-.03-1.118-.02-1.482.065c-1.456.341-3.07 1.481-4.394 4.117c1.304 2.555 2.9 3.529 4.394 3.879c.364.085.868.094 1.482.064c.186-.009.393-.022.606-.036A19 19 0 0 1 20 15.899a1 1 0 1 1 0 2c-.289 0-.594.02-.946.044c-.227.015-.473.032-.747.045c-.63.03-1.377.04-2.035-.115c-1.812-.424-3.549-1.493-4.972-3.634c-.553 1.02-1.177 1.822-1.927 2.427c-.978.788-2.12 1.106-3.213 1.24c-.882.108-1.81.102-2.64.096L3 18a1 1 0 1 1 0-2l.582.002c.824.005 1.593.01 2.335-.08c.892-.11 1.624-.348 2.201-.813c.687-.554 1.323-1.447 1.962-2.95l.046-.109l-.046-.109c-.651-1.53-1.303-2.495-2.015-3.103c-.56-.477-1.277-.726-2.161-.845c-.763-.102-1.562-.099-2.42-.095L3 7.899a1 1 0 1 1 0-2l.445-.001c.853-.004 1.813-.01 2.724.113c1.094.146 2.234.486 3.194 1.305c.75.64 1.375 1.481 1.93 2.52c1.408-2.187 3.136-3.421 4.979-3.853c.658-.154 1.405-.145 2.035-.115c.274.013.52.03.747.045",clipRule:"evenodd"})]}),rve=f.forwardRef(nve);function fg(e){return t=>e({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",...t})}const ove=fg(e=>x("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",...e,children:x("path",{d:"M550 470q10-36 34-62.5t56.5-41Q673 352 709 352q35 0 67.5 14t57 40.5Q858 433 869 470q1 4-1 7t-9 3H560q-4 0-8-2t-2-8zm-64-11q-7 27 3.5 46t28.5 29q18 10 36 10h310q19 0 37.5-10.5t28-30Q939 484 931 456q-14-51-46.5-88.5T807 309q-45-21-98-21-57 0-103 23.5t-77 62Q498 412 486 459zm-17 15q-35-10-61.5-34t-41-56.5Q352 351 352 315q0-35 14-67.5t40.5-57Q433 166 470 155q3-1 6.5 1t3.5 9v299q0 4-2 8t-9 2zm-11 64q28 7 47-3t29-28.5q10-18.5 10-36.5V160q0-19-10.5-37.5t-30.5-28Q483 85 455 93q-50 14-88 46.5T308.5 217Q288 262 288 315q0 57 23 103t62 77q39 31 85 43zm16 16q-10 36-34 62.5t-57 41Q350 672 314 672q-35 0-67.5-14T190 617.5Q166 591 155 554q-1-3 1-6.5t9-3.5h298q5 0 9 2t2 8zm63 11q7-27-3-46t-28-29q-18-10-36-10H160q-19 0-37.5 10.5t-28 30Q85 540 93 569q14 50 46.5 87.5T217 715q45 21 97 21 57 0 103.5-23.5t77.5-62q31-38.5 42-85.5zm17-15q36 10 62.5 34t41 57q14.5 33 14.5 69 0 35-14 67t-40.5 56.5Q591 858 554 869q-3 1-6.5-1t-3.5-9V560q0-4 2-8t8-2zm11-63q-27-7-46 3t-29 28q-10 18-10 36v310q0 19 10.5 37.5t30 28Q540 939 568 931q51-14 88.5-46.5T715 807q21-45 21-97 0-57-23.5-103.5t-62-77.5Q612 498 565 487z"})})),ive=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{children:[x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.14}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.29,transform:"rotate(30 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.43,transform:"rotate(60 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.57,transform:"rotate(90 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.71,transform:"rotate(120 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",opacity:.86,transform:"rotate(150 12 12)"}),x("rect",{width:2,height:5,x:11,y:1,fill:"currentColor",transform:"rotate(180 12 12)"}),x("animateTransform",{attributeName:"transform",calcMode:"discrete",dur:"0.75s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12"})]})]}),yT=f.forwardRef(ive),ave=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"currentColor",children:[x("path",{d:"M80 104v104H32a8 8 0 0 1-8-8v-88a8 8 0 0 1 8-8Z",opacity:.2}),x("path",{d:"M234 80.12A24 24 0 0 0 216 72h-56V56a40 40 0 0 0-40-40a8 8 0 0 0-7.16 4.42L75.06 96H32a16 16 0 0 0-16 16v88a16 16 0 0 0 16 16h172a24 24 0 0 0 23.82-21l12-96A24 24 0 0 0 234 80.12M32 112h40v88H32Zm191.94-15l-12 96a8 8 0 0 1-7.94 7H88v-94.11l36.71-73.43A24 24 0 0 1 144 56v24a8 8 0 0 0 8 8h64a8 8 0 0 1 7.94 9"})]})]}),sve=f.forwardRef(ave),lve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"currentColor",children:[x("path",{d:"M80 48v104H32a8 8 0 0 1-8-8V56a8 8 0 0 1 8-8Z",opacity:.2}),x("path",{d:"m239.82 157l-12-96A24 24 0 0 0 204 40H32a16 16 0 0 0-16 16v88a16 16 0 0 0 16 16h43.06l37.78 75.58A8 8 0 0 0 120 240a40 40 0 0 0 40-40v-16h56a24 24 0 0 0 23.82-27M72 144H32V56h40Zm150 21.29a7.88 7.88 0 0 1-6 2.71h-64a8 8 0 0 0-8 8v24a24 24 0 0 1-19.29 23.54L88 150.11V56h116a8 8 0 0 1 7.94 7l12 96a7.87 7.87 0 0 1-1.94 6.29"})]})]}),cve=f.forwardRef(lve),uve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"m24 4l-6 6h-8v8l-6 6l6 6v8h8l6 6l6-6h8v-8l6-6l-6-6v-8h-8z"}),x("path",{d:"M24 30a6 6 0 1 0 0-12a6 6 0 0 0 0 12Z"})]})]}),dve=f.forwardRef(uve),fve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("rect",{width:36,height:36,x:6,y:6,strokeLinecap:"round",rx:3}),x("path",{d:"M18.5 24v-7.794l6.75 3.897L32 24l-6.75 3.897l-6.75 3.897z"})]})]}),mve=f.forwardRef(fve),hve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M5.616 20q-.691 0-1.153-.462T4 18.384V5.616q0-.691.463-1.153T5.616 4h5.615v1H5.616q-.231 0-.424.192T5 5.616v12.769q0 .23.192.423t.423.192h12.77q.23 0 .423-.192t.192-.423v-5.616h1v5.616q0 .69-.462 1.152T18.384 20zm4.123-5.03l-.708-.709L18.292 5H14V4h6v6h-1V5.708z"})]}),pve=f.forwardRef(hve),gve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M18 7h-3l4-4l4 4h-3v14h-2zM8 5c-3.86 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7s-3.13-7-7-7m2.19 9.53L7 12.69V9h1.5v2.82l2.44 1.41z"})]}),vve=f.forwardRef(gve),bve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M20 17h3l-4 4l-4-4h3V3h2zM8 5c-3.86 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7s-3.13-7-7-7m2.19 9.53L7 12.69V9h1.5v2.82l2.44 1.41z"})]}),yve=f.forwardRef(bve),Sve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h7m-7 6h7m-7 6h9m2-9l3-3l3 3m-3-3v12"})]}),Cve=f.forwardRef(Sve),xve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h9m-9 6h7m-7 6h7m4-3l3 3l3-3m-3-9v12"})]}),wve=f.forwardRef(xve),$ve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"M24 11a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5",clipRule:"evenodd"}),x("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M24.5 34V20h-2M21 34h7"})]})]}),Eve=f.forwardRef($ve),Mve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M16 4.5V7H5v2h11v2.5L19.5 8M16 12.5V15H5v2h11v2.5l3.5-3.5"})]}),Rve=f.forwardRef(Mve),Tve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),x("path",{strokeLinecap:"round",d:"M24.008 12v12.01l8.479 8.48"})]})]}),Ave=f.forwardRef(Tve),Nve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeWidth:4,children:[x("rect",{width:26,height:40,x:11,y:4,rx:3}),x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10h4m-6 28h8"})]})]}),Pve=f.forwardRef(Nve),Ive=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeWidth:4,children:[x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 32h10v9H19z"}),x("rect",{width:38,height:24,x:5,y:8,rx:2}),x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 27h4M14 41h20"})]})]}),Ove=f.forwardRef(Ive),Dve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",children:[x("path",{strokeLinecap:"round",strokeWidth:4,d:"M10.858 9.858A19.94 19.94 0 0 0 5 24a19.94 19.94 0 0 0 5.858 14.142m28.284 0A19.94 19.94 0 0 0 45 24a19.94 19.94 0 0 0-5.858-14.142M34.9 33.9A13.96 13.96 0 0 0 39 24a13.96 13.96 0 0 0-4.1-9.9m-19.8 0A13.96 13.96 0 0 0 11 24a13.96 13.96 0 0 0 4.1 9.9"}),x("path",{strokeLinejoin:"round",strokeWidth:3.5,d:"M28.182 20C30.29 20 32 21.612 32 23.6c0 2.588-2.546 4.8-3.818 6Q26.908 30.8 25 32q-1.909-1.2-3.182-2.4C20.545 28.4 18 26.188 18 23.6c0-1.988 1.71-3.6 3.818-3.6c1.328 0 2.498.64 3.182 1.61c.684-.97 1.854-1.61 3.182-1.61Z"})]})]}),_ve=f.forwardRef(Dve),Lve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m16 6.52l2.76 5.58l.46 1l1 .15l6.16.89l-4.38 4.3l-.75.73l.18 1l1.05 6.13l-5.51-2.89L16 23l-.93.49l-5.51 2.85l1-6.13l.18-1l-.74-.77l-4.42-4.35l6.16-.89l1-.15l.46-1zM16 2l-4.55 9.22l-10.17 1.47l7.36 7.18L6.9 30l9.1-4.78L25.1 30l-1.74-10.13l7.36-7.17l-10.17-1.48Z"})]}),Bve=f.forwardRef(Lve),zve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m16 2l-4.55 9.22l-10.17 1.47l7.36 7.18L6.9 30l9.1-4.78L25.1 30l-1.74-10.13l7.36-7.17l-10.17-1.48Z"})]}),kve=f.forwardRef(zve),Fve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M24 44c8.235 0 15-6.526 15-14.902c0-2.056-.105-4.26-1.245-7.686s-1.369-3.868-2.574-5.984c-.515 4.317-3.27 6.117-3.97 6.655c0-.56-1.666-6.747-4.193-10.45C24.537 8 21.163 5.617 19.185 4c0 3.07-.863 7.634-2.1 9.96c-1.236 2.325-1.468 2.41-3.013 4.14s-2.253 2.265-3.545 4.365S9 27.362 9 29.418C9 37.794 15.765 44 24 44Z"})]}),Hve=f.forwardRef(Fve),Vve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{strokeDasharray:32,d:"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.6s",values:"32;0"})}),H("path",{strokeDasharray:"2 4",strokeDashoffset:6,d:"M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",opacity:0,children:[x("set",{fill:"freeze",attributeName:"opacity",begin:"0.45s",to:1}),x("animateTransform",{fill:"freeze",attributeName:"transform",begin:"0.45s",dur:"0.6s",type:"rotate",values:"-180 12 12;0 12 12"}),x("animate",{attributeName:"stroke-dashoffset",begin:"0.85s",dur:"0.6s",repeatCount:"indefinite",to:0})]}),x("path",{strokeDasharray:10,strokeDashoffset:10,d:"M12 16v-7.5",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.85s",dur:"0.2s",to:0})}),x("path",{strokeDasharray:8,strokeDashoffset:8,d:"M12 8.5l3.5 3.5M12 8.5l-3.5 3.5",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"1.05s",dur:"0.2s",to:0})})]})]}),jve=f.forwardRef(Vve),Uve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M19 20a7 7 0 1 0 0-14a7 7 0 0 0 0 14Z"}),x("path",{strokeLinecap:"round",d:"m33 31l8 8m-8 0l8-8m-14-3h-8.2c-4.48 0-6.72 0-8.432.872a8 8 0 0 0-3.496 3.496C6 34.08 6 36.32 6 40.8V42h21"})]})]}),Wve=f.forwardRef(Uve),qve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"m13 8l-7 6l7 7"}),x("path",{d:"M6 14h22.994c6.883 0 12.728 5.62 12.996 12.5c.284 7.27-5.723 13.5-12.996 13.5H11.998"})]})]}),ZH=f.forwardRef(qve),Gve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{strokeLinecap:"round",d:"M13 12.432v-4.62A2.813 2.813 0 0 1 15.813 5h24.374A2.813 2.813 0 0 1 43 7.813v24.375A2.813 2.813 0 0 1 40.188 35h-4.672"}),x("path",{d:"M32.188 13H7.811A2.813 2.813 0 0 0 5 15.813v24.374A2.813 2.813 0 0 0 7.813 43h24.375A2.813 2.813 0 0 0 35 40.188V15.811A2.813 2.813 0 0 0 32.188 13Z"})]})]}),Kve=f.forwardRef(Gve),Yve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zm-6.287 10.713Q11 16.425 11 16V9q0-.425-.288-.712T10 8t-.712.288T9 9v7q0 .425.288.713T10 17t.713-.288m4 0Q15 16.426 15 16V9q0-.425-.288-.712T14 8t-.712.288T13 9v7q0 .425.288.713T14 17t.713-.288M7 6v13z"})]}),Xve=f.forwardRef(Yve),Qve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m10 8l-6 6l6 6m28 8l6 6l-6 6M4 14h40M4 34h40"})]}),JH=f.forwardRef(Qve),Zve=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M5.325 43.5h8.485l31.113-31.113l-8.486-8.485L5.325 35.015z"}),x("path",{strokeLinecap:"round",d:"m27.952 12.387l8.485 8.485"})]})]}),Jve=f.forwardRef(Zve),ebe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M16 20v-7h4v7zm-6 0V4h4v16zm-6 0V9h4v11z"})]}),tbe=f.forwardRef(ebe),ST=f.createContext({});function x1(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const eV=typeof window<"u",tV=eV?f.useLayoutEffect:f.useEffect,w1=f.createContext(null);function CT(e,t){e.indexOf(t)===-1&&e.push(t);}function yf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1);}const Ka=(e,t,n)=>n>t?t:n<e?e:n;let xT=()=>{};const Ps={},nV=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function rV(e){return typeof e=="object"&&e!==null}const oV=e=>/^0[^.\s]+$/u.test(e);function iV(e){let t;return ()=>(t===void 0&&(t=e()),t)}const Wi=e=>e,nbe=(e,t)=>n=>t(e(n)),mg=(...e)=>e.reduce(nbe),Sf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class wT{constructor(){this.subscriptions=[];}add(t){return CT(this.subscriptions,t),()=>yf(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}}const qi=e=>e*1e3,Ui=e=>e/1e3;function aV(e,t){return t?e*(1e3/t):0}const rbe=(e,t,n)=>{const r=t-e;return ((n-e)%r+r)%r+e},sV=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,obe=1e-7,ibe=12;function abe(e,t,n,r,o){let i,a,l=0;do a=t+(n-t)/2,i=sV(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>obe&&++l<ibe);return a}function hg(e,t,n,r){if(e===t&&n===r)return Wi;const o=i=>abe(i,0,1,e,n);return i=>i===0||i===1?i:sV(o(i),t,r)}const lV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cV=e=>t=>1-e(1-t),uV=hg(.33,1.53,.69,.99),$T=cV(uV),dV=lV($T),fV=e=>(e*=2)<1?.5*$T(e):.5*(2-Math.pow(2,-10*(e-1))),ET=e=>1-Math.sin(Math.acos(e)),mV=cV(ET),hV=lV(ET),sbe=hg(.42,0,1,1),lbe=hg(0,0,.58,1),pV=hg(.42,0,.58,1),gV=e=>Array.isArray(e)&&typeof e[0]!="number";function vV(e,t){return gV(e)?e[rbe(0,e.length,t)]:e}const bV=e=>Array.isArray(e)&&typeof e[0]=="number",cbe={linear:Wi,easeIn:sbe,easeInOut:pV,easeOut:lbe,circIn:ET,circInOut:hV,circOut:mV,backIn:$T,backInOut:dV,backOut:uV,anticipate:fV},ube=e=>typeof e=="string",Z8=e=>{if(bV(e)){xT(e.length===4);const[t,n,r,o]=e;return hg(t,n,r,o)}else if(ube(e))return cbe[e];return e},yb=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function dbe(e,t){let n=new Set,r=new Set,o=false,i=false;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:false};function u(m){a.has(m)&&(d.schedule(m),e()),m(l);}const d={schedule:(m,p=false,g=false)=>{const y=g&&o?n:r;return p&&a.add(m),y.has(m)||y.add(m),m},cancel:m=>{r.delete(m),a.delete(m);},process:m=>{if(l=m,o){i=true;return}o=true,[n,r]=[r,n],n.forEach(u),n.clear(),o=false,i&&(i=false,d.process(m));}};return d}const fbe=40;function yV(e,t){let n=false,r=true;const o={delta:0,timestamp:0,isProcessing:false},i=()=>n=true,a=yb.reduce((E,T)=>(E[T]=dbe(i),E),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:m,update:p,preRender:g,render:b,postRender:y}=a,S=()=>{const E=Ps.useManualTiming?o.timestamp:performance.now();n=false,Ps.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(E-o.timestamp,fbe),1)),o.timestamp=E,o.isProcessing=true,l.process(o),u.process(o),d.process(o),m.process(o),p.process(o),g.process(o),b.process(o),y.process(o),o.isProcessing=false,n&&t&&(r=false,e(S));},C=()=>{n=true,r=true,o.isProcessing||e(S);};return {schedule:yb.reduce((E,T)=>{const R=a[T];return E[T]=(I,N=false,P=false)=>(n||C(),R.schedule(I,N,P)),E},{}),cancel:E=>{for(let T=0;T<yb.length;T++)a[yb[T]].cancel(E);},state:o,steps:a}}const{schedule:jn,cancel:Kl,state:Zr,steps:fw}=yV(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wi,true);let Jb;function mbe(){Jb=void 0;}const Ro={now:()=>(Jb===void 0&&Ro.set(Zr.isProcessing||Ps.useManualTiming?Zr.timestamp:performance.now()),Jb),set:e=>{Jb=e,queueMicrotask(mbe);}},SV=e=>t=>typeof t=="string"&&t.startsWith(e),CV=SV("--"),hbe=SV("var(--"),MT=e=>hbe(e)?pbe.test(e.split("/*")[0].trim()):false,pbe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function J8(e){return typeof e!="string"?false:e.split("/*")[0].includes("var(--")}const Wf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ep={...Wf,transform:e=>Ka(0,1,e)},Sb={...Wf,default:1},jh=e=>Math.round(e*1e5)/1e5,RT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gbe(e){return e==null}const vbe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,TT=(e,t)=>n=>!!(typeof n=="string"&&vbe.test(n)&&n.startsWith(e)||t&&!gbe(n)&&Object.prototype.hasOwnProperty.call(n,t)),xV=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,a,l]=r.match(RT);return {[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},bbe=e=>Ka(0,255,e),mw={...Wf,transform:e=>Math.round(bbe(e))},Qc={test:TT("rgb","red"),parse:xV("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+mw.transform(e)+", "+mw.transform(t)+", "+mw.transform(n)+", "+jh(Ep.transform(r))+")"};function ybe(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const c3={test:TT("#"),parse:ybe,transform:Qc.transform},pg=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$l=pg("deg"),Ua=pg("%"),bt=pg("px"),Sbe=pg("vh"),Cbe=pg("vw"),eD={...Ua,parse:e=>Ua.parse(e)/100,transform:e=>Ua.transform(e*100)},Vd={test:TT("hsl","hue"),parse:xV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ua.transform(jh(t))+", "+Ua.transform(jh(n))+", "+jh(Ep.transform(r))+")"},Cr={test:e=>Qc.test(e)||c3.test(e)||Vd.test(e),parse:e=>Qc.test(e)?Qc.parse(e):Vd.test(e)?Vd.parse(e):c3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qc.transform(e):Vd.transform(e),getAnimatableNone:e=>{const t=Cr.parse(e);return t.alpha=0,Cr.transform(t)}},xbe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wbe(e){return isNaN(e)&&typeof e=="string"&&(e.match(RT)?.length||0)+(e.match(xbe)?.length||0)>0}const wV="number",$V="color",$be="var",Ebe="var(",tD="${}",Mbe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Mp(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(Mbe,u=>(Cr.test(u)?(r.color.push(i),o.push($V),n.push(Cr.parse(u))):u.startsWith(Ebe)?(r.var.push(i),o.push($be),n.push(u)):(r.number.push(i),o.push(wV),n.push(parseFloat(u))),++i,tD)).split(tD);return {values:n,split:l,indexes:r,types:o}}function EV(e){return Mp(e).values}function MV(e){const{split:t,types:n}=Mp(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const l=n[a];l===wV?i+=jh(o[a]):l===$V?i+=Cr.transform(o[a]):i+=o[a];}return i}}const Rbe=e=>typeof e=="number"?0:Cr.test(e)?Cr.getAnimatableNone(e):e;function Tbe(e){const t=EV(e);return MV(e)(t.map(Rbe))}const pa={test:wbe,parse:EV,createTransformer:MV,getAnimatableNone:Tbe};function hw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Abe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else {const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;o=hw(u,l,e+1/3),i=hw(u,l,e),a=hw(u,l,e-1/3);}return {red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function ly(e,t){return n=>n>0?t:e}const er=(e,t,n)=>e+(t-e)*n,pw=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Nbe=[c3,Qc,Vd],Pbe=e=>Nbe.find(t=>t.test(e));function nD(e){const t=Pbe(e);if(!t)return  false;let n=t.parse(e);return t===Vd&&(n=Abe(n)),n}const rD=(e,t)=>{const n=nD(e),r=nD(t);if(!n||!r)return ly(e,t);const o={...n};return i=>(o.red=pw(n.red,r.red,i),o.green=pw(n.green,r.green,i),o.blue=pw(n.blue,r.blue,i),o.alpha=er(n.alpha,r.alpha,i),Qc.transform(o))},u3=new Set(["none","hidden"]);function Ibe(e,t){return u3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Obe(e,t){return n=>er(e,t,n)}function AT(e){return typeof e=="number"?Obe:typeof e=="string"?MT(e)?ly:Cr.test(e)?rD:Lbe:Array.isArray(e)?RV:typeof e=="object"?Cr.test(e)?rD:Dbe:ly}function RV(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>AT(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function Dbe(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=AT(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function _be(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][r[i]],l=e.values[a]??0;n[o]=l,r[i]++;}return n}const Lbe=(e,t)=>{const n=pa.createTransformer(t),r=Mp(e),o=Mp(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?u3.has(e)&&!o.values.length||u3.has(t)&&!r.values.length?Ibe(e,t):mg(RV(_be(r,o),o.values),n):ly(e,t)};function TV(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?er(e,t,n):AT(e)(e,t)}const Bbe=e=>{const t=({timestamp:n})=>e(n);return {start:(n=true)=>jn.update(t,n),stop:()=>Kl(t),now:()=>Zr.isProcessing?Zr.timestamp:Ro.now()}},AV=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return `linear(${r.substring(0,r.length-2)})`},cy=2e4;function NT(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cy;)t+=n,r=e.next(t);return t>=cy?1/0:t}function NV(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(NT(r),cy);return {type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ui(o)}}const zbe=5;function PV(e,t,n){const r=Math.max(t-zbe,0);return aV(n-e(r),t-r)}const lr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},gw=.001;function kbe({duration:e=lr.duration,bounce:t=lr.bounce,velocity:n=lr.velocity,mass:r=lr.mass}){let o,i,a=1-t;a=Ka(lr.minDamping,lr.maxDamping,a),e=Ka(lr.minDuration,lr.maxDuration,Ui(e)),a<1?(o=d=>{const m=d*a,p=m*e,g=m-n,b=d3(d,a),y=Math.exp(-p);return gw-g/b*y},i=d=>{const p=d*a*e,g=p*n+n,b=Math.pow(a,2)*Math.pow(d,2)*e,y=Math.exp(-p),S=d3(Math.pow(d,2),a);return (-o(d)+gw>0?-1:1)*((g-b)*y)/S}):(o=d=>{const m=Math.exp(-d*e),p=(d-n)*e+1;return -gw+m*p},i=d=>{const m=Math.exp(-d*e),p=(n-d)*(e*e);return m*p});const l=5/e,u=Hbe(o,i,l);if(e=qi(e),isNaN(u))return {stiffness:lr.stiffness,damping:lr.damping,duration:e};{const d=Math.pow(u,2)*r;return {stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const Fbe=12;function Hbe(e,t,n){let r=n;for(let o=1;o<Fbe;o++)r=r-e(r)/t(r);return r}function d3(e,t){return e*Math.sqrt(1-t*t)}const Vbe=["duration","bounce"],jbe=["stiffness","damping","mass"];function oD(e,t){return t.some(n=>e[n]!==void 0)}function Ube(e){let t={velocity:lr.velocity,stiffness:lr.stiffness,damping:lr.damping,mass:lr.mass,isResolvedFromDuration:false,...e};if(!oD(e,jbe)&&oD(e,Vbe))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ka(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lr.mass,stiffness:o,damping:i};}else {const n=kbe({...e,velocity:0});t={...t,...n,mass:lr.mass},t.isResolvedFromDuration=true;}return t}function Rp(e=lr.visualDuration,t=lr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:false,value:i},{stiffness:u,damping:d,mass:m,duration:p,velocity:g,isResolvedFromDuration:b}=Ube({...n,velocity:-Ui(n.velocity||0)}),y=g||0,S=d/(2*Math.sqrt(u*m)),C=a-i,w=Ui(Math.sqrt(u/m)),$=Math.abs(C)<5;r||(r=$?lr.restSpeed.granular:lr.restSpeed.default),o||(o=$?lr.restDelta.granular:lr.restDelta.default);let E;if(S<1){const R=d3(w,S);E=I=>{const N=Math.exp(-S*w*I);return a-N*((y+S*w*C)/R*Math.sin(R*I)+C*Math.cos(R*I))};}else if(S===1)E=R=>a-Math.exp(-w*R)*(C+(y+w*C)*R);else {const R=w*Math.sqrt(S*S-1);E=I=>{const N=Math.exp(-S*w*I),P=Math.min(R*I,300);return a-N*((y+S*w*C)*Math.sinh(P)+R*C*Math.cosh(P))/R};}const T={calculatedDuration:b&&p||null,next:R=>{const I=E(R);if(b)l.done=R>=p;else {let N=R===0?y:0;S<1&&(N=R===0?qi(y):PV(E,R,I));const P=Math.abs(N)<=r,O=Math.abs(a-I)<=o;l.done=P&&O;}return l.value=l.done?a:I,l},toString:()=>{const R=Math.min(NT(T),cy),I=AV(N=>T.next(R*N).value,R,30);return R+"ms "+I},toTransition:()=>{}};return T}Rp.applyToOptions=e=>{const t=NV(e,100,Rp);return e.ease=t.ease,e.duration=qi(t.duration),e.type="keyframes",e};function f3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:u,restDelta:d=.5,restSpeed:m}){const p=e[0],g={done:false,value:p},b=P=>l!==void 0&&P<l||u!==void 0&&P>u,y=P=>l===void 0?u:u===void 0||Math.abs(l-P)<Math.abs(u-P)?l:u;let S=n*t;const C=p+S,w=a===void 0?C:a(C);w!==C&&(S=w-p);const $=P=>-S*Math.exp(-P/r),E=P=>w+$(P),T=P=>{const O=$(P),_=E(P);g.done=Math.abs(O)<=d,g.value=g.done?w:_;};let R,I;const N=P=>{b(g.value)&&(R=P,I=Rp({keyframes:[g.value,y(g.value)],velocity:PV(E,P,g.value),damping:o,stiffness:i,restDelta:d,restSpeed:m}));};return N(0),{calculatedDuration:null,next:P=>{let O=false;return !I&&R===void 0&&(O=true,T(P),N(P)),R!==void 0&&P>=R?I.next(P-R):(!O&&T(P),g)}}}function Wbe(e,t,n){const r=[],o=n||Ps.mix||TV,i=e.length-1;for(let a=0;a<i;a++){let l=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Wi:t;l=mg(u,l);}r.push(l);}return r}function qbe(e,t,{clamp:n=true,ease:r,mixer:o}={}){const i=e.length;if(xT(i===t.length),i===1)return ()=>t[0];if(i===2&&t[0]===t[1])return ()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Wbe(t,r,o),u=l.length,d=m=>{if(a&&m<e[0])return t[0];let p=0;if(u>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const g=Sf(e[p],e[p+1],m);return l[p](g)};return n?m=>d(Ka(e[0],e[i-1],m)):d}function IV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Sf(0,t,r);e.push(er(n,1,o));}}function OV(e){const t=[0];return IV(t,e.length-1),t}function Gbe(e,t){return e.map(n=>n*t)}function Kbe(e,t){return e.map(()=>t||pV).splice(0,e.length-1)}function Uh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=gV(r)?r.map(Z8):Z8(r),i={done:false,value:t[0]},a=Gbe(n&&n.length===t.length?n:OV(t),e),l=qbe(a,t,{ease:Array.isArray(o)?o:Kbe(t,o)});return {calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const Ybe=e=>e!==null;function PT(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Ybe),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return !l||r===void 0?i[l]:r}const Xbe={decay:f3,inertia:f3,tween:Uh,keyframes:Uh,spring:Rp};function DV(e){typeof e.type=="string"&&(e.type=Xbe[e.type]);}class IT{constructor(){this.updateFinished();}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t;});}notifyFinished(){this.resolve();}then(t,n){return this.finished.then(t,n)}}const Qbe=e=>e/100;class OT extends IT{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=false,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Ro.now()&&this.tick(Ro.now()),this.isStopped=true,this.state!=="idle"&&(this.teardown(),this.options.onStop?.());},this.options=t,this.initAnimation(),this.play(),t.autoplay===false&&this.pause();}initAnimation(){const{options:t}=this;DV(t);const{type:n=Uh,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const u=n||Uh;u!==Uh&&typeof l[0]!="number"&&(this.mixKeyframes=mg(Qbe,TV(l[0],l[1])),l=[0,100]);const d=u({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=NT(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d;}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n;}tick(t,n=false){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:m,repeat:p,repeatType:g,repeatDelay:b,type:y,onUpdate:S,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-d*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let E=this.currentTime,T=r;if(p){const P=Math.min(this.currentTime,o)/l;let O=Math.floor(P),_=P%1;!_&&P>=1&&(_=1),_===1&&O--,O=Math.min(O,p+1),O%2&&(g==="reverse"?(_=1-_,b&&(_-=b/l)):g==="mirror"&&(T=a)),E=Ka(0,1,_)*l;}const R=$?{done:false,value:m[0]}:T.next(E);i&&(R.value=i(R.value));let{done:I}=R;!$&&u!==null&&(I=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return N&&y!==f3&&(R.value=PT(m,this.options,C,this.speed)),S&&S(R.value),N&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return Ui(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ui(t)}get time(){return Ui(this.currentTime)}set time(t){t=qi(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(false);}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ro.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ui(this.currentTime));}play(){if(this.isStopped)return;const{driver:t=Bbe,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start();}pause(){this.state="paused",this.updateTime(Ro.now()),this.holdTime=this.currentTime;}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null;}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.();}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.();}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null;}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0);}sample(t){return this.startTime=0,this.tick(t,true)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Zbe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1]);}const Zc=e=>e*180/Math.PI,m3=e=>{const t=Zc(Math.atan2(e[1],e[0]));return h3(t)},Jbe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:m3,rotateZ:m3,skewX:e=>Zc(Math.atan(e[1])),skewY:e=>Zc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},h3=e=>(e=e%360,e<0&&(e+=360),e),iD=m3,aD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),e0e={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aD,scaleY:sD,scale:e=>(aD(e)+sD(e))/2,rotateX:e=>h3(Zc(Math.atan2(e[6],e[5]))),rotateY:e=>h3(Zc(Math.atan2(-e[2],e[0]))),rotateZ:iD,rotate:iD,skewX:e=>Zc(Math.atan(e[4])),skewY:e=>Zc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function p3(e){return e.includes("scale")?1:0}function g3(e,t){if(!e||e==="none")return p3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=e0e,o=n;else {const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Jbe,o=l;}if(!o)return p3(t);const i=r[t],a=o[1].split(",").map(n0e);return typeof i=="function"?i(a):a[i]}const t0e=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return g3(n,t)};function n0e(e){return parseFloat(e.trim())}const qf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gf=new Set(qf),lD=e=>e===Wf||e===bt,r0e=new Set(["x","y","z"]),o0e=qf.filter(e=>!r0e.has(e));function i0e(e){const t=[];return o0e.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0));}),t}const Ol={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>g3(t,"x"),y:(e,{transform:t})=>g3(t,"y")};Ol.translateX=Ol.x;Ol.translateY=Ol.y;const su=new Set;let v3=false,b3=false,y3=false;function _V(){if(b3){const e=Array.from(su).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=i0e(r);o.length&&(n.set(r,o),r.render());}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{r.getValue(i)?.set(a);});}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY);});}b3=false,v3=false,su.forEach(e=>e.complete(y3)),su.clear();}function LV(){su.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(b3=true);});}function a0e(){y3=true,LV(),_V(),y3=false;}class DT{constructor(t,n,r,o,i,a=false){this.state="pending",this.isAsync=false,this.needsMeasurement=false,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a;}scheduleResolve(){this.state="scheduled",this.isAsync?(su.add(this),v3||(v3=true,jn.read(LV),jn.resolveKeyframes(_V))):(this.readKeyframes(),this.complete());}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l);}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0]);}Zbe(t);}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=false){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),su.delete(this);}cancel(){this.state==="scheduled"&&(su.delete(this),this.state="pending");}resume(){this.state==="pending"&&this.scheduleResolve();}}const s0e=e=>e.startsWith("--");function l0e(e,t,n){s0e(t)?e.style.setProperty(t,n):e.style[t]=n;}const c0e={};function BV(e,t){const n=iV(e);return ()=>c0e[t]??n()}const u0e=BV(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),zV=BV(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"});}catch{return  false}return  true},"linearEasing"),Th=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Th([0,.65,.55,1]),circOut:Th([.55,0,1,.45]),backIn:Th([.31,.01,.66,-0.59]),backOut:Th([.33,1.53,.69,.99])};function kV(e,t){if(e)return typeof e=="function"?zV()?AV(e,t):"ease-out":bV(e)?Th(e):Array.isArray(e)?e.map(n=>kV(n,t)||cD.easeOut):cD[e]}function d0e(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:u}={},d=void 0){const m={[t]:n};u&&(m.offset=u);const p=kV(l,o);Array.isArray(p)&&(m.easing=p);const g={delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(m,g)}function _T(e){return typeof e=="function"&&"applyToOptions"in e}function f0e({type:e,...t}){return _T(e)&&zV()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class FV extends IT{constructor(t){if(super(),this.finishedTime=null,this.isStopped=false,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:a=false,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,xT(typeof t.type!="string");const d=f0e(t);this.animation=d0e(n,r,o,d,i),d.autoplay===false&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const m=PT(o,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(m):l0e(n,r,m),this.animation.cancel();}u?.(),this.notifyFinished();};}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished());}pause(){this.animation.pause();}complete(){this.animation.finish?.();}cancel(){try{this.animation.cancel();}catch{}}stop(){if(this.isStopped)return;this.isStopped=true;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel());}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.();}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ui(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ui(t)}get time(){return Ui(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=qi(t);}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t;}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t;}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&u0e()?(this.animation.timeline=t,Wi):n(this)}}const HV={anticipate:fV,backInOut:dV,circInOut:hV};function m0e(e){return e in HV}function h0e(e){typeof e.ease=="string"&&m0e(e.ease)&&(e.ease=HV[e.ease]);}const vw=10;class p0e extends FV{constructor(t){h0e(t),DV(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t;}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new OT({...a,autoplay:false}),u=Math.max(vw,Ro.now()-this.startTime),d=Ka(0,vw,u-vw);n.setWithVelocity(l.sample(Math.max(0,u-d)).value,l.sample(u).value,d),l.stop();}}const uD=(e,t)=>t==="zIndex"?false:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pa.test(e)||e==="0")&&!e.startsWith("url("));function g0e(e){const t=e[0];if(e.length===1)return  true;for(let n=0;n<e.length;n++)if(e[n]!==t)return  true}function v0e(e,t,n,r){const o=e[0];if(o===null)return  false;if(t==="display"||t==="visibility")return  true;const i=e[e.length-1],a=uD(o,t),l=uD(i,t);return !a||!l?false:g0e(e)||(n==="spring"||_T(n))&&r}function S3(e){e.duration=0,e.type="keyframes";}const b0e=new Set(["opacity","clipPath","filter","transform"]),y0e=iV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function S0e(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return  false;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return y0e()&&n&&b0e.has(n)&&(n!=="transform"||!d)&&!u&&!r&&o!=="mirror"&&i!==0&&a!=="inertia"}const C0e=40;class x0e extends IT{constructor({autoplay:t=true,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:u,motionValue:d,element:m,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel();},this.createdAt=Ro.now();const g={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,name:u,motionValue:d,element:m,...p},b=m?.KeyframeResolver||DT;this.keyframeResolver=new b(l,(y,S,C)=>this.onKeyframesResolved(y,S,g,!C),u,d,m),this.keyframeResolver?.scheduleResolve();}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:u,isHandoff:d,onUpdate:m}=r;this.resolvedAt=Ro.now(),v0e(t,i,a,l)||((Ps.instantAnimations||!u)&&m?.(PT(t,r,n)),t[0]=t[t.length-1],S3(r),r.repeat=0);const g={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>C0e?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&S0e(g),y=g.motionValue?.owner?.current,S=b?new p0e({...g,element:y}):new OT(g);S.finished.then(()=>{this.notifyFinished();}).catch(Wi),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S;}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),a0e()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t;}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t;}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play();}pause(){this.animation.pause();}complete(){this.animation.complete();}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel();}}class w0e{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean);}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n;}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return ()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop();});}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t);}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t);}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return dD(this.animations,"duration")}get iterationDuration(){return dD(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]());}play(){this.runAll("play");}pause(){this.runAll("pause");}cancel(){this.runAll("cancel");}complete(){this.runAll("complete");}}function dD(e,t){let n=0;for(let r=0;r<e.length;r++){const o=e[r][t];o!==null&&o>n&&(n=o);}return n}class $0e extends w0e{then(t,n){return this.finished.finally(t).then(()=>{})}}function VV(e,t,n,r=0,o=1){const i=Array.from(e).sort((d,m)=>d.sortNodePosition(m)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(i,a):o===1?i*r:l-i*r}const E0e=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function M0e(e){const t=E0e.exec(e);if(!t)return [,];const[,n,r,o]=t;return [`--${n??r}`,o]}function jV(e,t,n=1){const[r,o]=M0e(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return nV(a)?parseFloat(a):a}return MT(o)?jV(o,t,n+1):o}const R0e={type:"spring",stiffness:500,damping:25,restSpeed:10},T0e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),A0e={type:"keyframes",duration:.8},N0e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},P0e=(e,{keyframes:t})=>t.length>2?A0e:Gf.has(e)?e.startsWith("scale")?T0e(t[1]):R0e:N0e,I0e=e=>e!==null;function O0e(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(I0e),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function UV(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return {...t,...r}}return e}function LT(e,t){const n=e?.[t]??e?.default??e;return n!==e?UV(n,e):n}function D0e({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:l,from:u,elapsed:d,...m}){return !!Object.keys(m).length}const BT=(e,t,n,r={},o,i)=>a=>{const l=LT(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-qi(u);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:g=>{t.set(g),l.onUpdate&&l.onUpdate(g);},onComplete:()=>{a(),l.onComplete&&l.onComplete();},name:e,motionValue:t,element:i?void 0:o};D0e(l)||Object.assign(m,P0e(e,m)),m.duration&&(m.duration=qi(m.duration)),m.repeatDelay&&(m.repeatDelay=qi(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=false;if((m.type===false||m.duration===0&&!m.repeatDelay)&&(S3(m),m.delay===0&&(p=true)),(Ps.instantAnimations||Ps.skipAnimations||o?.shouldSkipAnimations)&&(p=true,S3(m),m.delay=0),m.allowFlatten=!l.type&&!l.ease,p&&!i&&t.get()!==void 0){const g=O0e(m.keyframes,l);if(g!==void 0){jn.update(()=>{m.onUpdate(g),m.onComplete();});return}}return l.isSync?new OT(m):new x0e(m)};function fD(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity();}),t}function zT(e,t,n,r){if(typeof t=="function"){const[o,i]=fD(r);t=t(n!==void 0?n:e.custom,o,i);}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=fD(r);t=t(n!==void 0?n:e.custom,o,i);}return t}function tf(e,t,n){const r=e.getProps();return zT(r,t,n!==void 0?n:r.custom,e)}const WV=new Set(["width","height","top","left","right","bottom",...qf]),mD=30,_0e=e=>!isNaN(parseFloat(e));class L0e{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Ro.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty();},this.hasAnimated=false,this.setCurrent(t),this.owner=n.owner;}setCurrent(t){this.current=t,this.updatedAt=Ro.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_0e(this.current));}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt;}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new wT);const r=this.events[t].add(n);return t==="change"?()=>{r(),jn.read(()=>{this.events.change.getSize()||this.stop();});}:r}clearListeners(){for(const t in this.events)this.events[t].clear();}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n;}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t);}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r;}jump(t,n=true){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}dirty(){this.events.change?.notify(this.current);}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t);}removeDependent(t){this.dependents&&this.dependents.delete(t);}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ro.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>mD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mD);return aV(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=true,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}}function yu(e,t){return new L0e(e,t)}const C3=e=>Array.isArray(e);function B0e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yu(n));}function z0e(e){return C3(e)?e[e.length-1]||0:e}function k0e(e,t){const n=tf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const l=z0e(i[a]);B0e(e,a,l);}}const Fr=e=>!!(e&&e.getVelocity);function F0e(e){return !!(Fr(e)&&e.add)}function x3(e,t){const n=e.getValue("willChange");if(F0e(n))return n.add(t);if(!n&&Ps.WillChange){const r=new Ps.WillChange("auto");e.addValue("willChange",r),r.add(t);}}function kT(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const H0e="framerAppearId",qV="data-"+kT(H0e);function GV(e){return e.props[qV]}function V0e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==true;return t[n]=false,r}function FT(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:a,...l}=t;const u=e.getDefaultTransition();i=i?UV(i,u):u;const d=i?.reduceMotion;r&&(i=r);const m=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in l){const b=e.getValue(g,e.latestValues[g]??null),y=l[g];if(y===void 0||p&&V0e(p,g))continue;const S={delay:n,...LT(i||{},g)},C=b.get();if(C!==void 0&&!b.isAnimating&&!Array.isArray(y)&&y===C&&!S.velocity)continue;let w=false;if(window.MotionHandoffAnimation){const T=GV(e);if(T){const R=window.MotionHandoffAnimation(T,g,jn);R!==null&&(S.startTime=R,w=true);}}x3(e,g);const $=d??e.shouldReduceMotion;b.start(BT(g,b,y,$&&WV.has(g)?{type:false}:S,e,w));const E=b.animation;E&&m.push(E);}if(a){const g=()=>jn.update(()=>{a&&k0e(e,a);});m.length?Promise.all(m).then(g):g();}return m}function w3(e,t,n={}){const r=tf(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(FT(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:p}=o;return j0e(e,t,u,d,m,p,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,d]=l==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function j0e(e,t,n=0,r=0,o=0,i=1,a){const l=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),l.push(w3(u,t,{...a,delay:n+(typeof r=="function"?0:r)+VV(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}function U0e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>w3(e,i,n));r=Promise.all(o);}else if(typeof t=="string")r=w3(e,t,n);else {const o=typeof t=="function"?tf(e,t,n.custom):t;r=Promise.all(FT(e,o,n));}return r.then(()=>{e.notify("AnimationComplete",t);})}const W0e={test:e=>e==="auto",parse:e=>e},KV=e=>t=>t.test(e),YV=[Wf,bt,Ua,$l,Cbe,Sbe,W0e],hD=e=>YV.find(KV(e));function q0e(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||oV(e):true}const G0e=new Set(["brightness","contrast","saturate","opacity"]);function K0e(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(RT)||[];if(!r)return e;const o=n.replace(r,"");let i=G0e.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Y0e=/\b([a-z-]*)\(.*?\)/gu,$3={...pa,getAnimatableNone:e=>{const t=e.match(Y0e);return t?t.map(K0e).join(" "):e}},E3={...pa,getAnimatableNone:e=>{const t=pa.parse(e);return pa.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},pD={...Wf,transform:Math.round},X0e={rotate:$l,rotateX:$l,rotateY:$l,rotateZ:$l,scale:Sb,scaleX:Sb,scaleY:Sb,scaleZ:Sb,skew:$l,skewX:$l,skewY:$l,distance:bt,translateX:bt,translateY:bt,translateZ:bt,x:bt,y:bt,z:bt,perspective:bt,transformPerspective:bt,opacity:Ep,originX:eD,originY:eD,originZ:bt},HT={borderWidth:bt,borderTopWidth:bt,borderRightWidth:bt,borderBottomWidth:bt,borderLeftWidth:bt,borderRadius:bt,borderTopLeftRadius:bt,borderTopRightRadius:bt,borderBottomRightRadius:bt,borderBottomLeftRadius:bt,width:bt,maxWidth:bt,height:bt,maxHeight:bt,top:bt,right:bt,bottom:bt,left:bt,inset:bt,insetBlock:bt,insetBlockStart:bt,insetBlockEnd:bt,insetInline:bt,insetInlineStart:bt,insetInlineEnd:bt,padding:bt,paddingTop:bt,paddingRight:bt,paddingBottom:bt,paddingLeft:bt,paddingBlock:bt,paddingBlockStart:bt,paddingBlockEnd:bt,paddingInline:bt,paddingInlineStart:bt,paddingInlineEnd:bt,margin:bt,marginTop:bt,marginRight:bt,marginBottom:bt,marginLeft:bt,marginBlock:bt,marginBlockStart:bt,marginBlockEnd:bt,marginInline:bt,marginInlineStart:bt,marginInlineEnd:bt,fontSize:bt,backgroundPositionX:bt,backgroundPositionY:bt,...X0e,zIndex:pD,fillOpacity:Ep,strokeOpacity:Ep,numOctaves:pD},Q0e={...HT,color:Cr,backgroundColor:Cr,outlineColor:Cr,fill:Cr,stroke:Cr,borderColor:Cr,borderTopColor:Cr,borderRightColor:Cr,borderBottomColor:Cr,borderLeftColor:Cr,filter:$3,WebkitFilter:$3,mask:E3,WebkitMask:E3},XV=e=>Q0e[e],Z0e=new Set([$3,E3]);function QV(e,t){let n=XV(e);return Z0e.has(n)||(n=pa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const J0e=new Set(["auto","none","0"]);function eye(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!J0e.has(i)&&Mp(i).values.length&&(o=e[r]),r++;}if(o&&n)for(const i of t)e[i]=QV(n,o);}class tye extends DT{constructor(t,n,r,o,i){super(t,n,r,o,i,true);}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let p=t[m];if(typeof p=="string"&&(p=p.trim(),MT(p))){const g=jV(p,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=p);}}if(this.resolveNoneKeyframes(),!WV.has(r)||t.length!==2)return;const[o,i]=t,a=hD(o),l=hD(i),u=J8(o),d=J8(i);if(u!==d&&Ol[r]){this.needsMeasurement=true;return}if(a!==l)if(lD(a)&&lD(l))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p));}else Ol[r]&&(this.needsMeasurement=true);}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||q0e(t[o]))&&r.push(o);r.length&&eye(t,r,n);}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ol[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,false);}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,false);const i=r.length-1,a=r[i];r[i]=Ol[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u);}),this.resolveNoneKeyframes();}}const nye=new Set(["opacity","clipPath","filter","transform"]);function VT(e,t,n){if(e==null)return [];if(e instanceof EventTarget)return [e];if(typeof e=="string"){let r=document;t&&(r=t.current);const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const ZV=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function M3(e){return rV(e)&&"offsetHeight"in e}const{schedule:jT}=yV(queueMicrotask,false),ia={x:false,y:false};function JV(){return ia.x||ia.y}function rye(e){return e==="x"||e==="y"?ia[e]?null:(ia[e]=true,()=>{ia[e]=false;}):ia.x||ia.y?null:(ia.x=ia.y=true,()=>{ia.x=ia.y=false;})}function ej(e,t){const n=VT(e),r=new AbortController,o={passive:true,...t,signal:r.signal};return [n,o,()=>r.abort()]}function oye(e){return !(e.pointerType==="touch"||JV())}function iye(e,t,n={}){const[r,o,i]=ej(e,n);return r.forEach(a=>{let l=false,u=false,d;const m=()=>{a.removeEventListener("pointerleave",y);},p=C=>{d&&(d(C),d=void 0),m();},g=C=>{l=false,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),u&&(u=false,p(C));},b=()=>{l=true,window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",g,o);},y=C=>{if(C.pointerType!=="touch"){if(l){u=true;return}p(C);}},S=C=>{if(!oye(C))return;u=false;const w=t(a,C);typeof w=="function"&&(d=w,a.addEventListener("pointerleave",y,o));};a.addEventListener("pointerenter",S,o),a.addEventListener("pointerdown",b,o);}),i}const tj=(e,t)=>t?e===t?true:tj(e,t.parentElement):false,UT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==false,aye=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sye(e){return aye.has(e.tagName)||e.isContentEditable===true}const lye=new Set(["INPUT","SELECT","TEXTAREA"]);function cye(e){return lye.has(e.tagName)||e.isContentEditable===true}const e0=new WeakSet;function gD(e){return t=>{t.key==="Enter"&&e(t);}}function bw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:true,bubbles:true}));}const uye=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gD(()=>{if(e0.has(n))return;bw(n,"down");const o=gD(()=>{bw(n,"up");}),i=()=>bw(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t);});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t);};function vD(e){return UT(e)&&!JV()}const bD=new WeakSet;function dye(e,t,n={}){const[r,o,i]=ej(e,n),a=l=>{const u=l.currentTarget;if(!vD(l)||bD.has(l))return;e0.add(u),n.stopPropagation&&bD.add(l);const d=t(u,l),m=(b,y)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",g),e0.has(u)&&e0.delete(u),vD(b)&&typeof d=="function"&&d(b,{success:y});},p=b=>{m(b,u===window||u===document||n.useGlobalTarget||tj(u,b.target));},g=b=>{m(b,false);};window.addEventListener("pointerup",p,o),window.addEventListener("pointercancel",g,o);};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,o),M3(l)&&(l.addEventListener("focus",d=>uye(d,o)),!sye(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0));}),i}function $1(e){return rV(e)&&"ownerSVGElement"in e}const t0=new WeakMap;let n0;const nj=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:$1(r)&&"getBBox"in r?r.getBBox()[t]:r[n],fye=nj("inline","width","offsetWidth"),mye=nj("block","height","offsetHeight");function hye({target:e,borderBoxSize:t}){t0.get(e)?.forEach(n=>{n(e,{get width(){return fye(e,t)},get height(){return mye(e,t)}});});}function pye(e){e.forEach(hye);}function gye(){typeof ResizeObserver>"u"||(n0=new ResizeObserver(pye));}function vye(e,t){n0||gye();const n=VT(e);return n.forEach(r=>{let o=t0.get(r);o||(o=new Set,t0.set(r,o)),o.add(t),n0?.observe(r);}),()=>{n.forEach(r=>{const o=t0.get(r);o?.delete(t),o?.size||n0?.unobserve(r);});}}const r0=new Set;let jd;function bye(){jd=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r0.forEach(t=>t(e));},window.addEventListener("resize",jd);}function yye(e){return r0.add(e),jd||bye(),()=>{r0.delete(e),!r0.size&&typeof jd=="function"&&(window.removeEventListener("resize",jd),jd=void 0);}}function yD(e,t){return typeof e=="function"?yye(e):vye(e,t)}function rj(e){return $1(e)&&e.tagName==="svg"}const Sye=[...YV,Cr,pa],Cye=e=>Sye.find(KV(e)),SD=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ud=()=>({x:SD(),y:SD()}),CD=()=>({min:0,max:0}),Sr=()=>({x:CD(),y:CD()}),Tp=new WeakMap;function E1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ap(e){return typeof e=="string"||Array.isArray(e)}const WT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qT=["initial",...WT];function M1(e){return E1(e.animate)||qT.some(t=>Ap(e[t]))}function oj(e){return !!(M1(e)||e.variants)}function xye(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Fr(o))e.addValue(r,o);else if(Fr(i))e.addValue(r,yu(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===true?a.jump(o):a.hasAnimated||a.set(o);}else {const a=e.getStaticValue(r);e.addValue(r,yu(a!==void 0?a:o,{owner:e}));}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const uy={current:null},GT={current:false},wye=typeof window<"u";function ij(){if(GT.current=true,!!wye)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uy.current=e.matches;e.addEventListener("change",t),t();}else uy.current=false;}const xD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let dy={};function aj(e){dy=e;}function $ye(){return dy}class sj{scrapeMotionValuesFromProps(t,n,r){return {}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:a,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=false,this.isControllingVariants=false,this.shouldReduceMotion=null,this.shouldSkipAnimations=false,this.values=new Map,this.KeyframeResolver=DT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=false,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection));},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Ro.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,jn.render(this.render,false,true));};const{latestValues:d,renderState:m}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=M1(n),this.isVariantNode=oj(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const y=g[b];d[b]!==void 0&&Fr(y)&&y.set(d[b]);}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,Tp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=false:this.reducedMotionConfig==="always"?this.shouldReduceMotion=true:(GT.current||ij(),this.shouldReduceMotion=uy.current),this.shouldSkipAnimations=this.skipAnimationsConfig??false,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=true;}unmount(){this.projection&&this.projection.unmount(),Kl(this.notifyUpdate),Kl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=false);}this.current=null;}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t);}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t);}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&nye.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:u,ease:d,duration:m}=n.accelerate,p=new FV({element:this.current,name:t,keyframes:l,times:u,ease:d,duration:qi(m)}),g=a(p);this.valueSubscriptions.set(t,()=>{g(),p.cancel();});return}const r=Gf.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&jn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=true),this.scheduleRender();});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in dy){const n=dy[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=true);}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Sr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n;}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<xD.length;r++){const o=xD[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a));}this.prevMotionValues=xye(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get());}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState);}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(nV(r)||oV(r))?r=parseFloat(r):!Cye(r)&&pa.test(n)&&(r=QV(t,n)),this.setBaseTarget(t,Fr(r)?r.get():r)),Fr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n;}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=zT(this.props,n,this.presenceContext?.custom);i&&(r=i[t]);}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Fr(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new wT),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n);}scheduleRenderMicrotask(){jT.render(this.render);}}class lj extends sj{constructor(){super(...arguments),this.KeyframeResolver=tye;}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t];}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`);}));}}class sc{constructor(t){this.isMounted=false,this.node=t;}update(){}}function cj({top:e,left:t,right:n,bottom:r}){return {x:{min:t,max:n},y:{min:e,max:r}}}function Eye({x:e,y:t}){return {top:t.min,right:e.max,bottom:t.max,left:e.min}}function Mye(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return {top:n.y,left:n.x,bottom:r.y,right:r.x}}function yw(e){return e===void 0||e===1}function R3({scale:e,scaleX:t,scaleY:n}){return !yw(e)||!yw(t)||!yw(n)}function Fc(e){return R3(e)||uj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uj(e){return wD(e.x)||wD(e.y)}function wD(e){return e&&e!=="0%"}function fy(e,t,n){const r=e-n,o=t*r;return n+o}function $D(e,t,n,r,o){return o!==void 0&&(e=fy(e,o,r)),fy(e,n,r)+t}function T3(e,t=0,n=1,r,o){e.min=$D(e.min,t,n,r,o),e.max=$D(e.max,t,n,r,o);}function dj(e,{x:t,y:n}){T3(e.x,t.translate,t.scale,t.originPoint),T3(e.y,n.translate,n.scale,n.originPoint);}const ED=.999999999999,MD=1.0000000000001;function Rye(e,t,n,r=false){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let l=0;l<o;l++){i=n[l],a=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&qd(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,dj(e,a)),r&&Fc(i.latestValues)&&qd(e,i.latestValues));}t.x<MD&&t.x>ED&&(t.x=1),t.y<MD&&t.y>ED&&(t.y=1);}function Wd(e,t){e.min=e.min+t,e.max=e.max+t;}function RD(e,t,n,r,o=.5){const i=er(e.min,e.max,o);T3(e,t,n,i,r);}function qd(e,t){RD(e.x,t.x,t.scaleX,t.scale,t.originX),RD(e.y,t.y,t.scaleY,t.scale,t.originY);}function fj(e,t){return cj(Mye(e.getBoundingClientRect(),t))}function Tye(e,t,n){const r=fj(e,n),{scroll:o}=t;return o&&(Wd(r.x,o.offset.x),Wd(r.y,o.offset.y)),r}const Aye={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nye=qf.length;function Pye(e,t,n){let r="",o=true;for(let i=0;i<Nye;i++){const a=qf[i],l=e[a];if(l===void 0)continue;let u=true;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else {const d=parseFloat(l);u=a.startsWith("scale")?d===1:d===0;}if(!u||n){const d=ZV(l,HT[a]);if(!u){o=false;const m=Aye[a]||a;r+=`${m}(${d}) `;}n&&(t[a]=d);}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function KT(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=false,l=false;for(const u in t){const d=t[u];if(Gf.has(u)){a=true;continue}else if(CV(u)){o[u]=d;continue}else {const m=ZV(d,HT[u]);u.startsWith("origin")?(l=true,i[u]=m):r[u]=m;}}if(t.transform||(a||n?r.transform=Pye(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:d="50%",originZ:m=0}=i;r.transformOrigin=`${u} ${d} ${m}`;}}function mj(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];o?.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a]);}function TD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sh={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(bt.test(e))e=parseFloat(e);else return e;const n=TD(e,t.target.x),r=TD(e,t.target.y);return `${n}% ${r}%`}},Iye={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=pa.parse(e);if(o.length>5)return r;const i=pa.createTransformer(e),a=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=l,o[1+a]/=u;const d=er(l,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}},A3={borderRadius:{...sh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sh,borderTopRightRadius:sh,borderBottomLeftRadius:sh,borderBottomRightRadius:sh,boxShadow:Iye};function hj(e,{layout:t,layoutId:n}){return Gf.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!A3[e]||e==="opacity")}function YT(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const a in r)(Fr(r[a])||o&&Fr(o[a])||hj(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function Oye(e){return window.getComputedStyle(e)}class pj extends lj{constructor(){super(...arguments),this.type="html",this.renderInstance=mj;}readValueFromInstance(t,n){if(Gf.has(n))return this.projection?.isProjecting?p3(n):t0e(t,n);{const r=Oye(t),o=(CV(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fj(t,n)}build(t,n,r){KT(t,n,r.transformTemplate);}scrapeMotionValuesFromProps(t,n,r){return YT(t,n,r)}}function Dye(e,t){return e in t}class _ye extends sj{constructor(){super(...arguments),this.type="object";}readValueFromInstance(t,n){if(Dye(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t];}measureInstanceViewportBox(){return Sr()}build(t,n){Object.assign(t.output,n);}renderInstance(t,{output:n}){Object.assign(t,n);}sortInstanceNodePosition(){return 0}}const Lye={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bye={offset:"strokeDashoffset",array:"strokeDasharray"};function zye(e,t,n=1,r=0,o=true){e.pathLength=1;const i=o?Lye:Bye;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`;}const kye=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function gj(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...l},u,d,m){if(KT(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g}=e;p.transform&&(g.transform=p.transform,delete p.transform),(g.transform||p.transformOrigin)&&(g.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),g.transform&&(g.transformBox=m?.transformBox??"fill-box",delete p.transformBox);for(const b of kye)p[b]!==void 0&&(g[b]=p[b],delete p[b]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&zye(p,o,i,a,false);}const vj=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),bj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fye(e,t,n,r){mj(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(vj.has(o)?o:kT(o),t.attrs[o]);}function yj(e,t,n){const r=YT(e,t,n);for(const o in e)if(Fr(e[o])||Fr(t[o])){const i=qf.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o];}return r}class Sj extends lj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=false,this.measureInstanceViewportBox=Sr;}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gf.has(n)){const r=XV(n);return r&&r.default||0}return n=vj.has(n)?n:kT(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yj(t,n,r)}build(t,n,r){gj(t,n,this.isSVGTag,r.transformTemplate,r.style);}renderInstance(t,n,r,o){Fye(t,n,r,o);}mount(t){this.isSVGTag=bj(t.tagName),super.mount(t);}}const Hye=qT.length;function Cj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Cj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Hye;n++){const r=qT[n],o=e.props[r];(Ap(o)||o===false)&&(t[r]=o);}return t}function xj(e,t){if(!Array.isArray(t))return  false;const n=t.length;if(n!==e.length)return  false;for(let r=0;r<n;r++)if(t[r]!==e[r])return  false;return  true}const Vye=[...WT].reverse(),jye=WT.length;function Uye(e){return t=>Promise.all(t.map(({animation:n,options:r})=>U0e(e,n,r)))}function Wye(e){let t=Uye(e),n=AD(),r=true;const o=u=>(d,m)=>{const p=tf(e,m,u==="exit"?e.presenceContext?.custom:void 0);if(p){const{transition:g,transitionEnd:b,...y}=p;d={...d,...y,...b};}return d};function i(u){t=u(e);}function a(u){const{props:d}=e,m=Cj(e.parent)||{},p=[],g=new Set;let b={},y=1/0;for(let C=0;C<jye;C++){const w=Vye[C],$=n[w],E=d[w]!==void 0?d[w]:m[w],T=Ap(E),R=w===u?$.isActive:null;R===false&&(y=C);let I=E===m[w]&&E!==d[w]&&T;if(I&&r&&e.manuallyAnimateOnMount&&(I=false),$.protectedKeys={...b},!$.isActive&&R===null||!E&&!$.prevProp||E1(E)||typeof E=="boolean")continue;if(w==="exit"&&$.isActive&&R!==true){$.prevResolvedValues&&(b={...b,...$.prevResolvedValues});continue}const N=qye($.prevProp,E);let P=N||w===u&&$.isActive&&!I&&T||C>y&&T,O=false;const _=Array.isArray(E)?E:[E];let L=_.reduce(o(w),{});R===false&&(L={});const{prevResolvedValues:k={}}=$,W={...k,...L},q=j=>{P=true,g.has(j)&&(O=true,g.delete(j)),$.needsAnimating[j]=true;const U=e.getValue(j);U&&(U.liveStyle=false);};for(const j in W){const U=L[j],Y=k[j];if(b.hasOwnProperty(j))continue;let Q=false;C3(U)&&C3(Y)?Q=!xj(U,Y):Q=U!==Y,Q?U!=null?q(j):g.add(j):U!==void 0&&g.has(j)?q(j):$.protectedKeys[j]=true;}$.prevProp=E,$.prevResolvedValues=L,$.isActive&&(b={...b,...L}),r&&e.blockInitialAnimation&&(P=false);const F=I&&N;P&&(!F||O)&&p.push(..._.map(j=>{const U={type:w};if(typeof j=="string"&&r&&!F&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,Q=tf(Y,j);if(Y.enteringChildren&&Q){const{delayChildren:D}=Q.transition||{};U.delay=VV(Y.enteringChildren,e,D);}}return {animation:j,options:U}}));}if(g.size){const C={};if(typeof d.initial!="boolean"){const w=tf(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(C.transition=w.transition);}g.forEach(w=>{const $=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=true),C[w]=$??null;}),p.push({animation:C});}let S=!!p.length;return r&&(d.initial===false||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(S=false),r=false,S?t(p):Promise.resolve()}function l(u,d){if(n[u].isActive===d)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(u,d)),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return {animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=AD();}}}function qye(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xj(t,e):false}function Oc(e=false){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function AD(){return {animate:Oc(true),whileInView:Oc(),whileHover:Oc(),whileTap:Oc(),whileDrag:Oc(),whileFocus:Oc(),exit:Oc()}}function ND(e,t){e.min=t.min,e.max=t.max;}function ta(e,t){ND(e.x,t.x),ND(e.y,t.y);}function PD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin;}const wj=1e-4,Gye=1-wj,Kye=1+wj,$j=.01,Yye=0-$j,Xye=0+$j;function To(e){return e.max-e.min}function Qye(e,t,n){return Math.abs(e-t)<=n}function ID(e,t,n,r=.5){e.origin=r,e.originPoint=er(t.min,t.max,e.origin),e.scale=To(n)/To(t),e.translate=er(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Gye&&e.scale<=Kye||isNaN(e.scale))&&(e.scale=1),(e.translate>=Yye&&e.translate<=Xye||isNaN(e.translate))&&(e.translate=0);}function Wh(e,t,n,r){ID(e.x,t.x,n.x,r?r.originX:void 0),ID(e.y,t.y,n.y,r?r.originY:void 0);}function OD(e,t,n){e.min=n.min+t.min,e.max=e.min+To(t);}function Zye(e,t,n){OD(e.x,t.x,n.x),OD(e.y,t.y,n.y);}function DD(e,t,n){e.min=t.min-n.min,e.max=e.min+To(t);}function my(e,t,n){DD(e.x,t.x,n.x),DD(e.y,t.y,n.y);}function _D(e,t,n,r,o){return e-=t,e=fy(e,1/n,r),o!==void 0&&(e=fy(e,1/o,r)),e}function Jye(e,t=0,n=1,r=.5,o,i=e,a=e){if(Ua.test(t)&&(t=parseFloat(t),t=er(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=er(i.min,i.max,r);e===i&&(l-=t),e.min=_D(e.min,t,n,l,o),e.max=_D(e.max,t,n,l,o);}function LD(e,t,[n,r,o],i,a){Jye(e,t[n],t[r],t[o],t.scale,i,a);}const e1e=["x","scaleX","originX"],t1e=["y","scaleY","originY"];function BD(e,t,n,r){LD(e.x,t,e1e,n?n.x:void 0,r?r.x:void 0),LD(e.y,t,t1e,n?n.y:void 0,r?r.y:void 0);}function zD(e){return e.translate===0&&e.scale===1}function Ej(e){return zD(e.x)&&zD(e.y)}function kD(e,t){return e.min===t.min&&e.max===t.max}function n1e(e,t){return kD(e.x,t.x)&&kD(e.y,t.y)}function FD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Mj(e,t){return FD(e.x,t.x)&&FD(e.y,t.y)}function HD(e){return To(e.x)/To(e.y)}function VD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Da(e){return [e("x"),e("y")]}function r1e(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=n?.z||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:m,rotateX:p,rotateY:g,skewX:b,skewY:y}=n;d&&(r=`perspective(${d}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotateX(${p}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),y&&(r+=`skewY(${y}deg) `);}const l=e.x.scale*t.x,u=e.y.scale*t.y;return (l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const Rj=["TopLeft","TopRight","BottomLeft","BottomRight"],o1e=Rj.length,jD=e=>typeof e=="string"?parseFloat(e):e,UD=e=>typeof e=="number"||bt.test(e);function i1e(e,t,n,r,o,i){o?(e.opacity=er(0,n.opacity??1,a1e(r)),e.opacityExit=er(t.opacity??1,0,s1e(r))):i&&(e.opacity=er(t.opacity??1,n.opacity??1,r));for(let a=0;a<o1e;a++){const l=`border${Rj[a]}Radius`;let u=WD(t,l),d=WD(n,l);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||UD(u)===UD(d)?(e[l]=Math.max(er(jD(u),jD(d),r),0),(Ua.test(d)||Ua.test(u))&&(e[l]+="%")):e[l]=d;}(t.rotate||n.rotate)&&(e.rotate=er(t.rotate||0,n.rotate||0,r));}function WD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const a1e=Tj(0,.5,mV),s1e=Tj(.5,.95,Wi);function Tj(e,t,n){return r=>r<e?0:r>t?1:n(Sf(e,t,r))}function Aj(e,t,n){const r=Fr(e)?e:yu(e);return r.start(BT("",r,t,n)),r.animation}function Np(e,t,n,r={passive:true}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const l1e=(e,t)=>e.depth-t.depth;class c1e{constructor(){this.children=[],this.isDirty=false;}add(t){CT(this.children,t),this.isDirty=true;}remove(t){yf(this.children,t),this.isDirty=true;}forEach(t){this.isDirty&&this.children.sort(l1e),this.isDirty=false,this.children.forEach(t);}}function u1e(e,t){const n=Ro.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Kl(r),e(i-t));};return jn.setup(r,true),()=>Kl(r)}function o0(e){return Fr(e)?e.get():e}class d1e{constructor(){this.members=[];}add(t){CT(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;o&&o.isConnected===false&&r.isPresent!==false&&!r.snapshot&&yf(this.members,r);}t.scheduleRender();}remove(t){if(yf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n);}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return  false;let r;for(let o=n;o>=0;o--){const i=this.members[o],a=i.instance;if(i.isPresent!==false&&(!a||a.isConnected!==false)){r=i;break}}return r?(this.promote(r),true):false}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,i=t.options.layoutDependency;if(!(o!==void 0&&i!==void 0&&o===i)){const u=r.instance;u&&u.isConnected===false&&!r.snapshot||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=true),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=true));}const{crossfade:l}=t.options;l===false&&r.hide();}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete();});}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(false);});}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0);}}const i0={hasAnimatedSinceResize:true,hasEverUpdated:false},Sw=["","X","Y","Z"],f1e=1e3;let m1e=0;function Cw(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0));}function Nj(e){if(e.hasCheckedOptimisedAppear=true,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=GV(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jn,!(o||i));}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Nj(r);}function Pj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},l=t?.()){this.id=m1e++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=false,this.isAnimationBlocked=false,this.isLayoutDirty=false,this.isProjectionDirty=false,this.isSharedProjectionDirty=false,this.isTransformDirty=false,this.updateManuallyBlocked=false,this.updateBlockedByResize=false,this.isUpdating=false,this.isSVG=false,this.needsReset=false,this.shouldResetTransform=false,this.hasCheckedOptimisedAppear=false,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=false,this.layoutVersion=0,this.updateScheduled=false,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=false,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=false,this.clearAllSnapshots());},this.updateProjection=()=>{this.projectionUpdateScheduled=false,this.nodes.forEach(g1e),this.nodes.forEach(S1e),this.nodes.forEach(C1e),this.nodes.forEach(v1e);},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=false,this.isVisible=true,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=true;this.root===this&&(this.nodes=new c1e);}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new wT),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const u=this.eventHandlers.get(a);u&&u.notify(...l);}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=$1(a)&&!rj(a),this.instance=a;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||l)&&(this.isLayoutDirty=true),e){let m,p=0;const g=()=>this.root.updateBlockedByResize=false;jn.read(()=>{p=window.innerWidth;}),e(a,()=>{const b=window.innerWidth;b!==p&&(p=b,this.root.updateBlockedByResize=true,m&&m(),m=u1e(g,250),i0.hasAnimatedSinceResize&&(i0.hasAnimatedSinceResize=false,this.nodes.forEach(KD)));});}l&&this.root.registerSharedNode(l,this),this.options.animate!==false&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||M1e,{onLayoutAnimationStart:S,onLayoutAnimationComplete:C}=d.getProps(),w=!this.targetLayout||!Mj(this.targetLayout,b),$=!p&&g;if(this.options.layoutRoot||this.resumeFrom||$||p&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...LT(y,"layout"),onPlay:S,onComplete:C};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=false),this.startAnimation(E),this.setAnimationOrigin(m,$);}else p||KD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b;});}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Kl(this.updateProjection);}blockUpdate(){this.updateManuallyBlocked=true;}unblockUpdate(){this.updateManuallyBlocked=false;}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||false}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=true,this.nodes&&this.nodes.forEach(x1e),this.animationId++);}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=true){if(this.root.hasTreeAnimated=true,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nj(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=true;for(let m=0;m<this.path.length;m++){const p=this.path[m];p.shouldResetTransform=true,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(false);}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate");}update(){if(this.updateScheduled=false,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qD);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(GD);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=false,this.nodes.forEach(y1e),this.nodes.forEach(h1e),this.nodes.forEach(p1e)):this.nodes.forEach(GD),this.clearAllSnapshots();const l=Ro.now();Zr.delta=Ka(0,1e3/60,l-Zr.timestamp),Zr.timestamp=l,Zr.isProcessing=true,fw.update.process(Zr),fw.preRender.process(Zr),fw.render.process(Zr),Zr.isProcessing=false;}didUpdate(){this.updateScheduled||(this.updateScheduled=true,jT.read(this.scheduleUpdate));}clearAllSnapshots(){this.nodes.forEach(b1e),this.sharedNodes.forEach(w1e);}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=true,jn.preRender(this.updateProjection,false,true));}scheduleCheckAfterUnmount(){jn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!To(this.snapshot.measuredBox.x)&&!To(this.snapshot.measuredBox.y)&&(this.snapshot=void 0));}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(false),this.layoutVersion++,this.layoutCorrected=Sr(),this.isLayoutDirty=false,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0);}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=false),l&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u};}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ej(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||Fc(this.latestValues)||m)&&(o(this.instance,d),this.shouldResetTransform=false,this.scheduleRender());}measure(a=true){const l=this.measurePageBox();let u=this.removeElementScroll(l);return a&&(u=this.removeTransform(u)),R1e(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Sr();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(T1e))){const{scroll:d}=this.root;d&&(Wd(l.x,d.offset.x),Wd(l.y,d.offset.y));}return l}removeElementScroll(a){const l=Sr();if(ta(l,a),this.scroll?.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:m,options:p}=d;d!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&ta(l,a),Wd(l.x,m.offset.x),Wd(l.y,m.offset.y));}return l}applyTransform(a,l=false){const u=Sr();ta(u,a);for(let d=0;d<this.path.length;d++){const m=this.path[d];!l&&m.options.layoutScroll&&m.scroll&&m!==m.root&&qd(u,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Fc(m.latestValues)&&qd(u,m.latestValues);}return Fc(this.latestValues)&&qd(u,this.latestValues),u}removeTransform(a){const l=Sr();ta(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Fc(d.latestValues))continue;R3(d.latestValues)&&d.updateSnapshot();const m=Sr(),p=d.measurePageBox();ta(m,p),BD(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,m);}return Fc(this.latestValues)&&BD(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=true;}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:true};}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=false;}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Zr.timestamp&&this.relativeParent.resolveTargetDelta(true);}resolveTargetDelta(a=false){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!this.layout||!(m||p))return;this.resolvedRelativeTargetAt=Zr.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Sr(),this.targetWithTransforms=Sr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zye(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ta(this.target,this.layout.layoutBox),dj(this.target,this.targetDelta)):ta(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=false,g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0));}getClosestProjectingParent(){if(!(!this.parent||R3(this.parent.latestValues)||uj(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return !!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,u){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Sr(),this.relativeTargetOrigin=Sr(),my(this.relativeTargetOrigin,l,u),ta(this.relativeTarget,this.relativeTargetOrigin);}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0;}calcProjection(){const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=true;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=false),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=false),this.resolvedRelativeTargetAt===Zr.timestamp&&(u=false),u)return;const{layout:d,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||m))return;ta(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;Rye(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Sr());const{target:b}=a;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(PD(this.prevProjectionDelta.x,this.projectionDelta.x),PD(this.prevProjectionDelta.y,this.projectionDelta.y)),Wh(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!VD(this.projectionDelta.x,this.prevProjectionDelta.x)||!VD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=true,this.scheduleRender(),this.notifyListeners("projectionUpdate",b));}hide(){this.isVisible=false;}show(){this.isVisible=true;}scheduleRender(a=true){if(this.options.visualElement?.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender();}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);}createProjectionDeltas(){this.prevProjectionDelta=Ud(),this.projectionDelta=Ud(),this.projectionDeltaWithTransform=Ud();}setAnimationOrigin(a,l=false){const u=this.snapshot,d=u?u.latestValues:{},m={...this.latestValues},p=Ud();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const g=Sr(),b=u?u.source:void 0,y=this.layout?this.layout.source:void 0,S=b!==y,C=this.getStack(),w=!C||C.members.length<=1,$=!!(S&&!w&&this.options.crossfade===true&&!this.path.some(E1e));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const R=T/1e3;YD(p.x,a.x,R),YD(p.y,a.y,R),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(my(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$1e(this.relativeTarget,this.relativeTargetOrigin,g,R),E&&n1e(this.relativeTarget,E)&&(this.isProjectionDirty=false),E||(E=Sr()),ta(E,this.relativeTarget)),S&&(this.animationValues=m,i1e(m,d,this.latestValues,R,$,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R;},this.mixTargetDelta(this.options.layoutRoot?1e3:0);}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Kl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jn.update(()=>{i0.hasAnimatedSinceResize=true,this.motionValue||(this.motionValue=yu(0)),this.motionValue.jump(0,false),this.currentAnimation=Aj(this.motionValue,[0,1e3],{...a,velocity:0,isSync:true,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l);},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation();}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0;});}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(f1e),this.currentAnimation.stop()),this.completeAnimation();}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:m}=a;if(!(!l||!u||!d)){if(this!==a&&this.layout&&d&&Ij(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||Sr();const p=To(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+p;const g=To(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+g;}ta(l,u),qd(l,m),Wh(this.projectionDeltaWithTransform,this.layoutCorrected,l,m);}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new d1e),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0});}isLead(){const a=this.getStack();return a?a.lead===this:true}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=true),l&&this.setOptions({transition:l});}relegate(){const a=this.getStack();return a?a.relegate(this):false}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=false;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=true),!l)return;const d={};u.z&&Cw("z",a,d,this.animationValues);for(let m=0;m<Sw.length;m++)Cw(`rotate${Sw[m]}`,a,d,this.animationValues),Cw(`skew${Sw[m]}`,a,d,this.animationValues);a.render();for(const m in d)a.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);a.scheduleRender();}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=false,a.visibility="",a.opacity="",a.pointerEvents=o0(l?.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=o0(l?.pointerEvents)||""),this.hasProjected&&!Fc(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=false);return}a.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let p=r1e(this.projectionDeltaWithTransform,this.treeScale,m);u&&(p=u(m,p)),a.transform=p;const{x:g,y:b}=this.projectionDelta;a.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?a.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:a.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const y in A3){if(m[y]===void 0)continue;const{correct:S,applyTo:C,isCSSVariable:w}=A3[y],$=p==="none"?m[y]:S(m[y],d);if(C){const E=C.length;for(let T=0;T<E;T++)a[C[T]]=$;}else w?this.options.visualElement.renderState.vars[y]=$:a[y]=$;}this.options.layoutId&&(a.pointerEvents=d===this?o0(l?.pointerEvents)||"":"none");}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(qD),this.root.sharedNodes.clear();}}}function h1e(e){e.updateLayout();}function p1e(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Da(m=>{const p=i?t.measuredBox[m]:t.layoutBox[m],g=To(p);p.min=n[m].min,p.max=p.min+g;}):Ij(o,t.layoutBox,n)&&Da(m=>{const p=i?t.measuredBox[m]:t.layoutBox[m],g=To(n[m]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=true,e.relativeTarget[m].max=e.relativeTarget[m].min+g);});const a=Ud();Wh(a,n,t.layoutBox);const l=Ud();i?Wh(l,e.applyTransform(r,true),t.measuredBox):Wh(l,n,t.layoutBox);const u=!Ej(a);let d=false;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:g}=m;if(p&&g){const b=Sr();my(b,t.layoutBox,p.layoutBox);const y=Sr();my(y,n,g.layoutBox),Mj(b,y)||(d=true),m.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=b,e.relativeParent=m);}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:d});}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n();}e.options.transition=void 0;}function g1e(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty));}function v1e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=false;}function b1e(e){e.clearSnapshot();}function qD(e){e.clearMeasurements();}function GD(e){e.isLayoutDirty=false;}function y1e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform();}function KD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=true;}function S1e(e){e.resolveTargetDelta();}function C1e(e){e.calcProjection();}function x1e(e){e.resetSkewAndRotation();}function w1e(e){e.removeLeadSnapshot();}function YD(e,t,n){e.translate=er(t.translate,0,n),e.scale=er(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint;}function XD(e,t,n,r){e.min=er(t.min,n.min,r),e.max=er(t.max,n.max,r);}function $1e(e,t,n,r){XD(e.x,t.x,n.x,r),XD(e.y,t.y,n.y,r);}function E1e(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const M1e={duration:.45,ease:[.4,0,.1,1]},QD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ZD=QD("applewebkit/")&&!QD("chrome/")?Math.round:Wi;function JD(e){e.min=ZD(e.min),e.max=ZD(e.max);}function R1e(e){JD(e.x),JD(e.y);}function Ij(e,t,n){return e==="position"||e==="preserve-aspect"&&!Qye(HD(t),HD(n),.2)}function T1e(e){return e!==e.root&&e.scroll?.wasRoot}const A1e=Pj({attachResizeListener:(e,t)=>Np(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>true}),xw={current:void 0},Oj=Pj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xw.current){const e=new A1e({});e.mount(window),e.setOptions({layoutScroll:true}),xw.current=e;}return xw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none";},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),R1=f.createContext({transformPagePoint:e=>e,isStatic:false,reducedMotion:"never"});function e_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t);}function N1e(...e){return t=>{let n=false;const r=e.map(o=>{const i=e_(o,t);return !n&&typeof i=="function"&&(n=true),i});if(n)return ()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():e_(e[o],null);}}}}function P1e(...e){return f.useCallback(N1e(...e),e)}class I1e extends f.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==false){const r=n.offsetParent,o=M3(r)&&r.offsetWidth||0,i=M3(r)&&r.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=o-a.width-a.left,a.bottom=i-a.height-a.top;}return null}componentDidUpdate(){}render(){return this.props.children}}function O1e({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:i}){const a=f.useId(),l=f.useRef(null),u=f.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=f.useContext(R1),m=e.props?.ref??e?.ref,p=P1e(l,m);return f.useInsertionEffect(()=>{const{width:g,height:b,top:y,left:S,right:C,bottom:w}=u.current;if(t||i===false||!l.current||!g||!b)return;const $=n==="left"?`left: ${S}`:`right: ${C}`,E=r==="bottom"?`bottom: ${w}`:`top: ${y}`;l.current.dataset.motionPopId=a;const T=document.createElement("style");d&&(T.nonce=d);const R=o??document.head;return R.appendChild(T),T.sheet&&T.sheet.insertRule(`
          [data-motion-pop-id="${a}"] {
            position: absolute !important;
            width: ${g}px !important;
            height: ${b}px !important;
            ${$}px !important;
            ${E}px !important;
          }
        `),()=>{R.contains(T)&&R.removeChild(T);}},[t]),Yo.jsx(I1e,{isPresent:t,childRef:l,sizeRef:u,pop:i,children:i===false?e:f.cloneElement(e,{ref:p})})}const D1e=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:u,root:d})=>{const m=x1(_1e),p=f.useId();let g=true,b=f.useMemo(()=>(g=false,{id:p,initial:t,isPresent:n,custom:o,onExitComplete:y=>{m.set(y,true);for(const S of m.values())if(!S)return;r&&r();},register:y=>(m.set(y,false),()=>m.delete(y))}),[n,m,r]);return i&&g&&(b={...b}),f.useMemo(()=>{m.forEach((y,S)=>m.set(S,false));},[n]),f.useEffect(()=>{!n&&!m.size&&r&&r();},[n]),e=Yo.jsx(O1e,{pop:a==="popLayout",isPresent:n,anchorX:l,anchorY:u,root:d,children:e}),Yo.jsx(w1.Provider,{value:b,children:e})};function _1e(){return new Map}function Dj(e=true){const t=f.useContext(w1);if(t===null)return [true,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=f.useId();f.useEffect(()=>{if(e)return o(i)},[e]);const a=f.useCallback(()=>e&&r&&r(i),[i,r,e]);return !n&&r?[false,a]:[true]}const Cb=e=>e.key||"";function t_(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n);}),t}const L1e=({children:e,custom:t,initial:n=true,onExitComplete:r,presenceAffectsLayout:o=true,mode:i="sync",propagate:a=false,anchorX:l="left",anchorY:u="top",root:d})=>{const[m,p]=Dj(a),g=f.useMemo(()=>t_(e),[e]),b=a&&!m?[]:g.map(Cb),y=f.useRef(true),S=f.useRef(g),C=x1(()=>new Map),w=f.useRef(new Set),[$,E]=f.useState(g),[T,R]=f.useState(g);tV(()=>{y.current=false,S.current=g;for(let P=0;P<T.length;P++){const O=Cb(T[P]);b.includes(O)?(C.delete(O),w.current.delete(O)):C.get(O)!==true&&C.set(O,false);}},[T,b.length,b.join("-")]);const I=[];if(g!==$){let P=[...g];for(let O=0;O<T.length;O++){const _=T[O],L=Cb(_);b.includes(L)||(P.splice(O,0,_),I.push(_));}return i==="wait"&&I.length&&(P=I),R(t_(P)),E(g),null}const{forceRender:N}=f.useContext(ST);return Yo.jsx(Yo.Fragment,{children:T.map(P=>{const O=Cb(P),_=a&&!m?false:g===T||b.includes(O),L=()=>{if(w.current.has(O))return;if(w.current.add(O),C.has(O))C.set(O,true);else return;let k=true;C.forEach(W=>{W||(k=false);}),k&&(N?.(),R(S.current),a&&p?.(),r&&r());};return Yo.jsx(D1e,{isPresent:_,initial:!y.current||n?void 0:false,custom:t,presenceAffectsLayout:o,mode:i,root:d,onExitComplete:_?void 0:L,anchorX:l,anchorY:u,children:P},O)})})},_j=f.createContext({strict:false}),n_={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let r_=false;function B1e(){if(r_)return;const e={};for(const t in n_)e[t]={isEnabled:n=>n_[t].some(r=>!!n[r])};aj(e),r_=true;}function Lj(){return B1e(),$ye()}function z1e(e){const t=Lj();for(const n in e)t[n]={...t[n],...e[n]};aj(t);}const k1e=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function hy(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||k1e.has(e)}let Bj=e=>!hy(e);function F1e(e){typeof e=="function"&&(Bj=t=>t.startsWith("on")?!hy(t):e(t));}try{F1e(require("@emotion/is-prop-valid").default);}catch{}function H1e(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Bj(o)||n===true&&hy(o)||!t&&!hy(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const T1=f.createContext({});function V1e(e,t){if(M1(e)){const{initial:n,animate:r}=e;return {initial:n===false||Ap(n)?n:void 0,animate:Ap(r)?r:void 0}}return e.inherit!==false?t:{}}function j1e(e){const{initial:t,animate:n}=V1e(e,f.useContext(T1));return f.useMemo(()=>({initial:t,animate:n}),[o_(t),o_(n)])}function o_(e){return Array.isArray(e)?e.join(" "):e}const XT=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zj(e,t,n){for(const r in t)!Fr(t[r])&&!hj(r,n)&&(e[r]=t[r]);}function U1e({transformTemplate:e},t){return f.useMemo(()=>{const n=XT();return KT(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W1e(e,t){const n=e.style||{},r={};return zj(r,n,e),Object.assign(r,U1e(e,t)),r}function q1e(e,t){const n={},r=W1e(e,t);return e.drag&&e.dragListener!==false&&(n.draggable=false,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===true?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const kj=()=>({...XT(),attrs:{}});function G1e(e,t,n,r){const o=f.useMemo(()=>{const i=kj();return gj(i,t,bj(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};zj(i,e.style,e),o.style={...i,...o.style};}return o}const K1e=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function QT(e){return typeof e!="string"||e.includes("-")?false:!!(K1e.indexOf(e)>-1||/[A-Z]/u.test(e))}function Y1e(e,t,n,{latestValues:r},o,i=false,a){const u=(a??QT(e)?G1e:q1e)(t,r,o,e),d=H1e(t,typeof e=="string",i),m=e!==f.Fragment?{...d,...u,ref:n}:{},{children:p}=t,g=f.useMemo(()=>Fr(p)?p.get():p,[p]);return f.createElement(e,{...m,children:g})}function X1e({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return {latestValues:Q1e(n,r,o,e),renderState:t()}}function Q1e(e,t,n,r){const o={},i=r(e,{});for(const g in i)o[g]=o0(i[g]);let{initial:a,animate:l}=e;const u=M1(e),d=oj(e);t&&d&&!u&&e.inherit!==false&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let m=n?n.initial===false:false;m=m||a===false;const p=m?l:a;if(p&&typeof p!="boolean"&&!E1(p)){const g=Array.isArray(p)?p:[p];for(let b=0;b<g.length;b++){const y=zT(e,g[b]);if(y){const{transitionEnd:S,transition:C,...w}=y;for(const $ in w){let E=w[$];if(Array.isArray(E)){const T=m?E.length-1:0;E=E[T];}E!==null&&(o[$]=E);}for(const $ in S)o[$]=S[$];}}}return o}const Fj=e=>(t,n)=>{const r=f.useContext(T1),o=f.useContext(w1),i=()=>X1e(e,t,r,o);return n?i():x1(i)},Z1e=Fj({scrapeMotionValuesFromProps:YT,createRenderState:XT}),J1e=Fj({scrapeMotionValuesFromProps:yj,createRenderState:kj}),eSe=Symbol.for("motionComponentSymbol");function tSe(e,t,n){const r=f.useRef(n);f.useInsertionEffect(()=>{r.current=n;});const o=f.useRef(null);return f.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const a=r.current;if(typeof a=="function")if(i){const l=a(i);typeof l=="function"&&(o.current=l);}else o.current?(o.current(),o.current=null):a(i);else a&&(a.current=i);},[t])}const Hj=f.createContext({});function Bd(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nSe(e,t,n,r,o,i){const{visualElement:a}=f.useContext(T1),l=f.useContext(_j),u=f.useContext(w1),d=f.useContext(R1),m=d.reducedMotion,p=d.skipAnimations,g=f.useRef(null),b=f.useRef(false);r=r||l.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===false:false,reducedMotionConfig:m,skipAnimations:p,isSVG:i}),b.current&&g.current&&(g.current.manuallyAnimateOnMount=true));const y=g.current,S=f.useContext(Hj);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&rSe(g.current,n,o,S);const C=f.useRef(false);f.useInsertionEffect(()=>{y&&C.current&&y.update(n,u);});const w=n[qV],$=f.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return tV(()=>{b.current=true,y&&(C.current=true,window.MotionIsMounted=true,y.updateFeatures(),y.scheduleRenderMicrotask(),$.current&&y.animationState&&y.animationState.animateChanges());}),f.useEffect(()=>{y&&(!$.current&&y.animationState&&y.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w);}),$.current=false),y.enteringChildren=void 0);}),y}function rSe(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Vj(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||l&&Bd(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:u,layoutRoot:d});}function Vj(e){if(e)return e.options.allowProjection!==false?e.projection:Vj(e.parent)}function ww(e,{forwardMotionProps:t=false,type:n}={},r,o){r&&z1e(r);const i=n?n==="svg":QT(e),a=i?J1e:Z1e;function l(d,m){let p;const g={...f.useContext(R1),...d,layoutId:oSe(d)},{isStatic:b}=g,y=j1e(d),S=a(d,b);if(!b&&eV){iSe();const C=aSe(g);p=C.MeasureLayout,y.visualElement=nSe(e,S,g,o,C.ProjectionNode,i);}return Yo.jsxs(T1.Provider,{value:y,children:[p&&y.visualElement?Yo.jsx(p,{visualElement:y.visualElement,...g}):null,Y1e(e,d,tSe(S,y.visualElement,m),S,b,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=f.forwardRef(l);return u[eSe]=e,u}function oSe({layoutId:e}){const t=f.useContext(ST).id;return t&&e!==void 0?t+"-"+e:e}function iSe(e,t){f.useContext(_j).strict;}function aSe(e){const t=Lj(),{drag:n,layout:r}=t;if(!n&&!r)return {};const o={...n,...r};return {MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function sSe(e,t){if(typeof Proxy>"u")return ww;const n=new Map,r=(i,a)=>ww(i,a,e,t),o=(i,a)=>r(i,a);return new Proxy(o,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,ww(a,void 0,e,t)),n.get(a))})}const lSe=(e,t)=>t.isSVG??QT(e)?new Sj(t):new pj(t,{allowProjection:e!==f.Fragment});class cSe extends sc{constructor(t){super(t),t.animationState||(t.animationState=Wye(t));}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();E1(t)&&(this.unmountControls=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription();}unmount(){this.node.animationState.reset(),this.unmountControls?.();}}let uSe=0;class dSe extends sc{constructor(){super(...arguments),this.id=uSe++;}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id);});}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id));}unmount(){}}const fSe={animation:{Feature:cSe},exit:{Feature:dSe}};function gg(e){return {point:{x:e.pageX,y:e.pageY}}}const mSe=e=>t=>UT(t)&&e(t,gg(t));function qh(e,t,n,r){return Np(e,t,mSe(n),r)}const jj=({current:e})=>e?e.ownerDocument.defaultView:null,i_=(e,t)=>Math.abs(e-t);function hSe(e,t){const n=i_(e.x,t.x),r=i_(e.y,t.y);return Math.sqrt(n**2+r**2)}const a_=new Set(["auto","scroll"]);class Uj{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=false,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=b=>{this.handleScroll(b.target);},this.onWindowScroll=()=>{this.handleScroll(window);},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Ew(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,S=hSe(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!S)return;const{point:C}=b,{timestamp:w}=Zr;this.history.push({...C,timestamp:w});const{onStart:$,onMove:E}=this.handlers;y||($&&$(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,b);},this.handlePointerMove=(b,y)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=$w(y,this.transformPagePoint),jn.update(this.updatePoint,true);},this.handlePointerUp=(b,y)=>{this.end();const{onEnd:S,onSessionEnd:C,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=Ew(b.type==="pointercancel"?this.lastMoveEventInfo:$w(y,this.transformPagePoint),this.history);this.startEvent&&S&&S(b,$),C&&C(b,$);},!UT(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const u=gg(t),d=$w(u,this.transformPagePoint),{point:m}=d,{timestamp:p}=Zr;this.history=[{...m,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Ew(d,this.history)),this.removeListeners=mg(qh(this.contextWindow,"pointermove",this.handlePointerMove),qh(this.contextWindow,"pointerup",this.handlePointerUp),qh(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l);}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(a_.has(r.overflowX)||a_.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement;}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:true}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:true}),window.removeEventListener("scroll",this.onWindowScroll);};}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),jn.update(this.updatePoint,true));}updateHandlers(t){this.handlers=t;}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kl(this.updatePoint);}}function $w(e,t){return t?{point:t(e.point)}:e}function s_(e,t){return {x:e.x-t.x,y:e.y-t.y}}function Ew({point:e},t){return {point:e,delta:s_(e,Wj(t)),offset:s_(e,pSe(t)),velocity:gSe(t,.1)}}function pSe(e){return e[0]}function Wj(e){return e[e.length-1]}function gSe(e,t){if(e.length<2)return {x:0,y:0};let n=e.length-1,r=null;const o=Wj(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qi(t)));)n--;if(!r)return {x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>qi(t)*2&&(r=e[1]);const i=Ui(o.timestamp-r.timestamp);if(i===0)return {x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vSe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?er(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?er(n,e,r.max):Math.min(e,n)),e}function l_(e,t,n){return {min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function bSe(e,{top:t,left:n,bottom:r,right:o}){return {x:l_(e.x,n,o),y:l_(e.y,t,r)}}function c_(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ySe(e,t){return {x:c_(e.x,t.x),y:c_(e.y,t.y)}}function SSe(e,t){let n=.5;const r=To(e),o=To(t);return o>r?n=Sf(t.min,t.max-r,e.min):r>o&&(n=Sf(e.min,e.max-o,t.min)),Ka(0,1,n)}function CSe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const N3=.35;function xSe(e=N3){return e===false?e=0:e===true&&(e=N3),{x:u_(e,"left","right"),y:u_(e,"top","bottom")}}function u_(e,t,n){return {min:d_(e,t),max:d_(e,n)}}function d_(e,t){return typeof e=="number"?e:e[t]||0}const wSe=new WeakMap;class $Se{constructor(t){this.openDragLock=null,this.isDragging=false,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=false,this.hasMutatedConstraints=false,this.elastic=Sr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t;}start(t,{snapToCursor:n=false,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===false)return;const i=p=>{n&&this.snapToCursor(gg(p).point),this.stopAnimation();},a=(p,g)=>{const{drag:b,dragPropagation:y,onDragStart:S}=this.getProps();if(b&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rye(b),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=g,this.isDragging=true,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=true,this.visualElement.projection.target=void 0),Da(w=>{let $=this.getAxisMotionValue(w).get()||0;if(Ua.test($)){const{projection:E}=this.visualElement;if(E&&E.layout){const T=E.layout.layoutBox[w];T&&($=To(T)*(parseFloat($)/100));}}this.originPoint[w]=$;}),S&&jn.update(()=>S(p,g),false,true),x3(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",true);},l=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:y,onDirectionLock:S,onDrag:C}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=MSe(w),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),C&&jn.update(()=>C(p,g),false,true);},u=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g,this.stop(p,g),this.latestPointerEvent=null,this.latestPanInfo=null;},d=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0});},{dragSnapToOrigin:m}=this.getProps();this.panSession=new Uj(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:jj(this.visualElement),element:this.visualElement.current});}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&jn.postRender(()=>l(r,o));}cancel(){this.isDragging=false;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=false),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",false);}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0;}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!xb(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vSe(a,this.constraints[t],this.elastic[t])),i.set(a);}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(false):this.visualElement.projection?.layout,o=this.constraints;t&&Bd(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=bSe(r.layoutBox,t):this.constraints=false,this.elastic=xSe(n),o!==this.constraints&&!Bd(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Da(i=>{this.constraints!==false&&this.getAxisMotionValue(i)&&(this.constraints[i]=CSe(r.layoutBox[i],this.constraints[i]));});}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bd(t))return  false;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return  false;const i=Tye(r,o.root,this.visualElement.getTransformPagePoint());let a=ySe(o.layout.layoutBox,i);if(n){const l=n(Eye(a));this.hasMutatedConstraints=!!l,l&&(a=cj(l));}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Da(m=>{if(!xb(m,n,this.currentDirection))return;let p=u&&u[m]||{};a&&(p={min:0,max:0});const g=o?200:1e6,b=o?40:1e7,y={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...i,...p};return this.startAxisValueAnimation(m,y)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return x3(this.visualElement,t),r.start(BT(t,r,0,n,this.visualElement,false))}stopAnimation(){Da(t=>this.getAxisMotionValue(t).stop());}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Da(n=>{const{drag:r}=this.getProps();if(!xb(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:l}=o.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-er(a,l,.5)+u);}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bd(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Da(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==false){const u=l.get();o[a]=SSe({min:u,max:u},this.constraints[a]);}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=false,this.resolveConstraints(),Da(a=>{if(!xb(a,t,null))return;const l=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];l.set(er(u,d,o[a]));}),this.visualElement.render();}addListeners(){if(!this.visualElement.current)return;wSe.set(this.visualElement,this);const t=this.visualElement.current,n=qh(t,"pointerdown",d=>{const{drag:m,dragListener:p=true}=this.getProps(),g=d.target,b=g!==t&&cye(g);m&&p&&!b&&this.start(d);});let r;const o=()=>{const{dragConstraints:d}=this.getProps();Bd(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=ESe(t,d.current,()=>this.scalePositionWithinConstraints())));},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jn.read(o);const l=Np(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:m})=>{this.isDragging&&m&&(Da(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=d[p].translate,g.set(g.get()+d[p].translate));}),this.visualElement.render());}));return ()=>{l(),n(),a(),u&&u(),r&&r();}}getProps(){const t=this.visualElement.getProps(),{drag:n=false,dragDirectionLock:r=false,dragPropagation:o=false,dragConstraints:i=false,dragElastic:a=N3,dragMomentum:l=true}=t;return {...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function f_(e){let t=true;return ()=>{if(t){t=false;return}e();}}function ESe(e,t,n){const r=yD(e,f_(n)),o=yD(t,f_(n));return ()=>{r(),o();}}function xb(e,t,n){return (t===true||t===e)&&(n===null||n===e)}function MSe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class RSe extends sc{constructor(t){super(t),this.removeGroupControls=Wi,this.removeListeners=Wi,this.controls=new $Se(t);}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wi;}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)));}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession();}}const Mw=e=>(t,n)=>{e&&jn.update(()=>e(t,n),false,true);};class TSe extends sc{constructor(){super(...arguments),this.removePointerDownListener=Wi;}onPointerDown(t){this.session=new Uj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jj(this.node)});}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return {onSessionStart:Mw(t),onStart:Mw(n),onMove:Mw(r),onEnd:(i,a)=>{delete this.session,o&&jn.postRender(()=>o(i,a));}}}mount(){this.removePointerDownListener=qh(this.node.current,"pointerdown",t=>this.onPointerDown(t));}update(){this.session&&this.session.updateHandlers(this.createPanHandlers());}unmount(){this.removePointerDownListener(),this.session&&this.session.end();}}let Rw=false;class ASe extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Rw&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove();}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),i0.hasEverUpdated=true;}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),Rw=true,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||jn.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),jT.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove();}));}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Rw=true,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o));}safeToRemove(){const{safeToRemove:t}=this.props;t&&t();}render(){return null}}function qj(e){const[t,n]=Dj(),r=f.useContext(ST);return Yo.jsx(ASe,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Hj),isPresent:t,safeToRemove:n})}const NSe={pan:{Feature:TSe},drag:{Feature:RSe,ProjectionNode:Oj,MeasureLayout:qj}};function m_(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&jn.postRender(()=>i(t,gg(t)));}class PSe extends sc{mount(){const{current:t}=this.node;t&&(this.unmount=iye(t,(n,r)=>(m_(this.node,r,"Start"),o=>m_(this.node,o,"End"))));}unmount(){}}class ISe extends sc{constructor(){super(...arguments),this.isActive=false;}onFocus(){let t=false;try{t=this.node.current.matches(":focus-visible");}catch{t=true;}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",true),this.isActive=true);}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",false),this.isActive=false);}mount(){this.unmount=mg(Np(this.node.current,"focus",()=>this.onFocus()),Np(this.node.current,"blur",()=>this.onBlur()));}unmount(){}}function h_(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&jn.postRender(()=>i(t,gg(t)));}class OSe extends sc{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=dye(t,(o,i)=>(h_(this.node,i,"Start"),(a,{success:l})=>h_(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===false});}unmount(){}}const P3=new WeakMap,Tw=new WeakMap,DSe=e=>{const t=P3.get(e.target);t&&t(e);},_Se=e=>{e.forEach(DSe);};function LSe({root:e,...t}){const n=e||document;Tw.has(n)||Tw.set(n,{});const r=Tw.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(_Se,{root:e,...t})),r[o]}function BSe(e,t,n){const r=LSe(t);return P3.set(e,n),r.observe(e),()=>{P3.delete(e),r.unobserve(e);}}const zSe={some:0,all:1};class kSe extends sc{constructor(){super(...arguments),this.hasEnteredView=false,this.isInView=false;}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:zSe[o]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=true),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:m,onViewportLeave:p}=this.node.getProps(),g=d?m:p;g&&g(u);};return BSe(this.node.current,a,l)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(FSe(t,n))&&this.startObserver();}unmount(){}}function FSe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HSe={inView:{Feature:kSe},tap:{Feature:OSe},focus:{Feature:ISe},hover:{Feature:PSe}},VSe={layout:{ProjectionNode:Oj,MeasureLayout:qj}},jSe={...fSe,...HSe,...NSe,...VSe},ZT=sSe(jSe,lSe);function USe(e){return f.useEffect(()=>()=>e(),[])}function WSe(){!GT.current&&ij();const[e]=f.useState(uy.current);return e}function qSe(){const e=WSe(),{reducedMotion:t}=f.useContext(R1);return t==="never"?false:t==="always"?true:e}function JT(e){return typeof e=="object"&&!Array.isArray(e)}function Gj(e,t,n,r){return e==null?[]:typeof e=="string"&&JT(t)?VT(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(o=>o!=null):[e]}function GSe(e,t,n){return e*(t+1)}function p_(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function KSe(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(yf(e,o),r--);}}function YSe(e,t,n,r,o,i){KSe(e,o,i);for(let a=0;a<t.length;a++)e.push({value:t[a],at:er(o,i,r[a]),easing:vV(n,a)});}function XSe(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1);}function QSe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const ZSe="easeInOut";function JSe(e,{defaultTransition:t={},...n}={},r,o){const i=t.duration||.3,a=new Map,l=new Map,u={},d=new Map;let m=0,p=0,g=0;for(let b=0;b<e.length;b++){const y=e[b];if(typeof y=="string"){d.set(y,p);continue}else if(!Array.isArray(y)){d.set(y.name,p_(p,y.at,m,d));continue}let[S,C,w={}]=y;w.at!==void 0&&(p=p_(p,w.at,m,d));let $=0;const E=(T,R,I,N=0,P=0)=>{const O=eCe(T),{delay:_=0,times:L=OV(O),type:k=t.type||"keyframes",repeat:W,repeatType:q,repeatDelay:F=0,...z}=R;let{ease:j=t.ease||"easeOut",duration:U}=R;const Y=typeof _=="function"?_(N,P):_,Q=O.length,D=_T(k)?k:o?.[k||"keyframes"];if(Q<=2&&D){let ee=100;if(Q===2&&rCe(O)){const ie=O[1]-O[0];ee=Math.abs(ie);}const te={...t,...z};U!==void 0&&(te.duration=qi(U));const re=NV(te,ee,D);j=re.ease,U=re.duration;}U??(U=i);const B=p+Y;L.length===1&&L[0]===0&&(L[1]=1);const K=L.length-O.length;if(K>0&&IV(L,K),O.length===1&&O.unshift(null),W){U=GSe(U,W);const ee=[...O],te=[...L];j=Array.isArray(j)?[...j]:[j];const re=[...j];for(let ie=0;ie<W;ie++){O.push(...ee);for(let ue=0;ue<ee.length;ue++)L.push(te[ue]+(ie+1)),j.push(ue===0?"linear":vV(re,ue-1));}XSe(L,W);}const J=B+U;YSe(I,O,j,L,B,J),$=Math.max(Y+U,$),g=Math.max(J,g);};if(Fr(S)){const T=g_(S,l);E(C,w,v_("default",T));}else {const T=Gj(S,C,r,u),R=T.length;for(let I=0;I<R;I++){C=C,w=w;const N=T[I],P=g_(N,l);for(const O in C)E(C[O],tCe(w,O),v_(O,P),I,R);}}m=p,p+=$;}return l.forEach((b,y)=>{for(const S in b){const C=b[S];C.sort(QSe);const w=[],$=[],E=[];for(let N=0;N<C.length;N++){const{at:P,value:O,easing:_}=C[N];w.push(O),$.push(Sf(0,g,P)),E.push(_||"easeOut");}$[0]!==0&&($.unshift(0),w.unshift(w[0]),E.unshift(ZSe)),$[$.length-1]!==1&&($.push(1),w.push(null)),a.has(y)||a.set(y,{keyframes:{},transition:{}});const T=a.get(y);T.keyframes[S]=w;const{type:R,...I}=t;T.transition[S]={...I,duration:g,ease:E,times:$,...n};}}),a}function g_(e,t){return !t.has(e)&&t.set(e,{}),t.get(e)}function v_(e,t){return t[e]||(t[e]=[]),t[e]}function eCe(e){return Array.isArray(e)?e:[e]}function tCe(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const nCe=e=>typeof e=="number",rCe=e=>e.every(nCe);function oCe(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=$1(e)&&!rj(e)?new Sj(t):new pj(t);n.mount(e),Tp.set(e,n);}function iCe(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new _ye(t);n.mount(e),Tp.set(e,n);}function aCe(e,t){return Fr(e)||typeof e=="number"||typeof e=="string"&&!JT(t)}function Kj(e,t,n,r){const o=[];if(aCe(e,t))o.push(Aj(e,JT(t)&&t.default||t,n&&(n.default||n)));else {if(e==null)return o;const i=Gj(e,t,r),a=i.length;for(let l=0;l<a;l++){const u=i[l],d=u instanceof Element?oCe:iCe;Tp.has(u)||d(u);const m=Tp.get(u),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(l,a)),o.push(...FT(m,{...t,transition:p},{}));}}return o}function sCe(e,t,n){const r=[],o=e.map(a=>{if(Array.isArray(a)&&typeof a[0]=="function"){const l=a[0],u=yu(0);return u.on("change",l),a.length===1?[u,[0,1]]:a.length===2?[u,[0,1],a[1]]:[u,a[1],a[2]]}return a});return JSe(o,t,n,{spring:Rp}).forEach(({keyframes:a,transition:l},u)=>{r.push(...Kj(u,a,l));}),r}function lCe(e){return Array.isArray(e)&&e.some(Array.isArray)}function Yj(e={}){const{scope:t,reduceMotion:n}=e;function r(o,i,a){let l=[],u;if(lCe(o))l=sCe(o,n!==void 0?{reduceMotion:n,...i}:i,t);else {const{onComplete:m,...p}=a||{};typeof m=="function"&&(u=m),l=Kj(o,i,n!==void 0?{reduceMotion:n,...p}:p,t);}const d=new $0e(l);return u&&d.finished.then(u),t&&(t.animations.push(d),d.finished.then(()=>{yf(t.animations,d);})),d}return r}Yj();function cCe(){const e=x1(()=>({current:null,animations:[]})),t=qSe()??void 0,n=f.useMemo(()=>Yj({scope:e,reduceMotion:t}),[e,t]);return USe(()=>{e.animations.forEach(r=>r.stop()),e.animations.length=0;}),[e,n]}function Pp({size:e=18,useAnimation:t=false,color:n="currentColor",...r}){return x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:e,height:e,...r,children:x(ZT.path,{fill:"transparent",stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 11L11 17L21 7",...t&&{initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.2,ease:"easeInOut"}}})})}const Xj=sve,eA=cve,tA=dve,vg=mve,Po=pve,I3=vve,O3=yve,uCe=Cve,b_=wve,Qj=Eve,dCe=Rve,Zj=rve,fCe=Ave,mCe=Pve,hCe=Ove,pCe=_ve,py=ove,Cf=Bve,gCe=kve,vCe=Hve,gy=jve,D3=Wve,vy=ZH,lu=Kve,Jj=yT,Kf=Xve,bCe=JH,nA=Jve,yCe="data:image/gif;base64,R0lGODlhGAAYAJECAP7+/v///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTI2NTYzMDc2RTNDMTFFREJENEJEMzUxOTQzQjMxMkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTI2NTYzMDg2RTNDMTFFREJENEJEMzUxOTQzQjMxMkQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBMjY1NjMwNTZFM0MxMUVEQkQ0QkQzNTE5NDNCMzEyRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBMjY1NjMwNjZFM0MxMUVEQkQ0QkQzNTE5NDNCMzEyRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkEAAIALAAAAAAYABgAAAI5lI+py+0Po2QhTFXrRdlu031gJgqhpI0pdJ4sacJv6j6trABeTOMcfFslgp7ar4fcDVcyX+kJjToKACH5BAkEAAIALAAAAAAYABgAAAI2lI+py+0Po5xUhFDRvdls3H0T522SaJkRikKs6qptAr+kYoOzJvc37dPBgKQco3YbdpbM5qQAACH5BAkEAAIALAAAAAAYABgAAAI3lI+py+0Po5y02hhykHqLzmkGiImfCZHkkh0qmrztOSuyt8bmzfC0Z9sJa7qZLwhEwS7MpnNSAAAh+QQJBAACACwAAAAAGAAYAAACPJSPqcvtD6OctJoQ7MFYC55dYQSKHcmZo3J+qdsmJRzO7DvbMs7HSN5b/YIqBvCkGyKJixds4/NIp1RHAQAh+QQJBAACACwAAAAAGAAYAAACOpSPqcvtD6OcLwSarMVHXy54YKhJIrmhn3K25eKmJ/vGa1bnKS3rN2IzzHC94q/jE754yNVyBI1KIQUAIfkECQQAAgAsAAAAABgAGAAAAjmUj6nL7Q+jnLSaEOzBePbLSVwmjGJYopCZfmnDxmoif6xSkzeN5ozfIuF6RBfPVhQeN66Z5gmNTgoAIfkECQQAAgAsAAAAABgAGAAAAjmUj6nL7Q+jnLRaETLSMnMfdJ4Bit8YlRgKqerauOibyCen2OGK1/Pf2wB3NOGNyPLteIfk5QmNTgoAIfkECQQAAgAsAAAAABgAGAAAAjeUj6nL7Q+jnCkEWu3FRm/uHdYUCiVUnk+qSewYvd/amrWKyF2t6DbcuwmBGZgv+OHxOMyms1kAACH5BAkEAAIALAAAAAAYABgAAAI5lI+py+0PowtBLkptwlUf7n1YaIBlF5kmpI6puz5t9tLxBLsCgCpzdxPZcjQfEajbFHVJkvMJtRQAACH5BAkEAAIALAAAAAAYABgAAAI1lI+py+0Po5wpBFrtxUZv7nGdJgqheJ5QSkasJb2bmsFmSyPyaCv73avNcC1fr1gsKZdMSAEAIfkECQQAAgAsAAAAABgAGAAAAjWUj6nL7Q+jnLRaEfI1Wd8ebKDYkR4WHqcyol7Llm4KJ+0tx69cI/i+8vGGQdUpl9sol0xIAQAh+QQJBAACACwAAAAAGAAYAAACNJSPqcvtD6OctNq7QsBCa+xtV9h8DJl5p5qaCtqJsZugNvuyN43sIlzTCXkHnJHISSqXiQIAIfkECQQAAgAsAAAAABgAGAAAAjKUj6nL7Q+jnLTai3MMPLDuLeDXkZwZKqNYsqebJqva0u86yy1e6/feQ9SGL43xiEwUAAAh+QQJBAACACwAAAAAGAAYAAACM5SPqcvtD6OctNp7Q8BCa+xtzDd6JamEp5iai2qgcEvCc2K7N5LXLi3qsXCy4pCDTCoXBQAh+QQJBAACACwAAAAAGAAYAAACNJSPqcvtD6OctNoYcrhC7+txIag1mVkuY/exp5qOayLHqVK/M5J/+9Ez/IQvF7DISSqXkAIAIfkEBQQAAgAsAAAAABgAGAAAAjKUj6nL7Q+jnFSEUNG92WzcfZ21jWJYRucJranyutwig2xSey+e5nQPnMGEMeHoiExCCgA7";function rA({active:e=false,...t}){return e?x("img",{...t,src:yCe}):x(tbe,{...t})}const oA=fg(e=>H("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:[x("path",{className:"circle",d:"M10 3.1248000000000005C6.20305 3.1248000000000005 3.1250083333333336 6.202841666666667 3.1250083333333336 9.999833333333335C3.1250083333333336 13.796750000000001 6.20305 16.874833333333335 10 16.874833333333335C11.898291666666667 16.874833333333335 13.615833333333333 16.106291666666667 14.860625 14.861916666666666C15.104708333333335 14.617916666666666 15.500416666666668 14.617958333333334 15.7445 14.862041666666668C15.9885 15.106166666666669 15.988416666666668 15.501916666666666 15.744333333333334 15.745958333333334C14.274750000000001 17.215041666666668 12.243041666666667 18.124833333333335 10 18.124833333333335C5.512691666666667 18.124833333333335 1.8750083333333334 14.487125 1.8750083333333334 9.999833333333335C1.8750083333333334 5.512483333333334 5.512691666666667 1.8748000000000002 10 1.8748000000000002C14.487291666666668 1.8748000000000002 18.125 5.512483333333334 18.125 9.999833333333335C18.125 10.304458333333333 18.108208333333334 10.605458333333333 18.075458333333337 10.901791666666668C18.0375 11.244916666666667 17.728625 11.492291666666667 17.385583333333333 11.454333333333334C17.0425 11.416416666666667 16.795083333333334 11.107541666666668 16.833000000000002 10.764458333333334C16.860750000000003 10.513625000000001 16.875 10.2585 16.875 9.999833333333335C16.875 6.202841666666667 13.796958333333333 3.1248000000000005 10 3.1248000000000005z",fill:"currentColor"}),x("path",{d:"M15.391416666666666 9.141166666666667C15.635458333333334 8.897083333333335 16.031208333333332 8.897083333333335 16.275291666666668 9.141166666666667L17.5 10.365875L18.72475 9.141166666666667C18.968791666666668 8.897083333333335 19.364541666666668 8.897083333333335 19.608625 9.141166666666667C19.852666666666668 9.385291666666667 19.852666666666668 9.780958333333334 19.608625 10.025083333333333L18.08925 11.544416666666669C17.763833333333334 11.869833333333334 17.236208333333334 11.869833333333334 16.91075 11.544416666666669L15.391416666666666 10.025083333333333C15.147333333333334 9.780958333333334 15.147333333333334 9.385291666666667 15.391416666666666 9.141166666666667z",fill:"currentColor"}),x("path",{d:"M12.499333333333334 9.278375C13.05475 9.599 13.05475 10.400666666666668 12.499333333333334 10.721291666666668L9.373916666666666 12.525791666666668C8.818541666666667 12.846416666666666 8.124274999999999 12.445583333333333 8.124274999999999 11.804291666666668L8.124274999999999 8.1954C8.124274999999999 7.554066666666667 8.818541666666667 7.153233333333334 9.373916666666666 7.473900000000001L12.499333333333334 9.278375z",fill:"currentColor"})]})),eU=qX(),iA=eU.os.name?.toLowerCase()==="mac os",SCe=eU.browser.name||"",aA=e=>new RegExp(String.raw`\b${e}\b`,"i").test(SCe),bg=aA("safari");aA("firefox");aA("edge");const CCe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m19.833 21.26l-1.298-1.298q-.096.019-.173.029q-.077.009-.173.009H5.616q-.691 0-1.153-.462T4 18.384V5.813q0-.096.01-.173t.029-.173l-1.299-1.3l.713-.713l17.092 17.092zM5.616 19h11.957l-5.933-5.933l-1.902 1.902l-.707-.708l1.902-1.902L5 6.427v11.958q0 .23.192.423t.423.192M7.813 5l-1-1h4.419v1zm5.948 5.948l-.708-.707L18.292 5H14V4h6v6h-1V5.708zm6.24 6.24l-1-1V12.77h1z"})]}),xCe=f.forwardRef(CCe),wCe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M16 3h6v6h-2V5h-4zM2 3h6v2H4v4H2zm18 16v-4h2v6h-6v-2zM4 19h4v2H2v-6h2z"})]}),$Ce=f.forwardRef(wCe),ECe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("rect",{width:20,height:16,x:2,y:4,rx:2}),x("rect",{width:9,height:7,x:13,y:13,rx:2})]})]}),MCe=f.forwardRef(ECe),RCe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M6 3h8.99v1.5H6zM2.99 6h1.5v1.5h-1.5zm0-3h1.5v1.5h-1.5zm0 6.01H4.5v1.5H2.99z"}),x("path",{fill:"currentColor",d:"M4.5 12h-3V1.49h15V6H18V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v9.48a2 2 0 0 0 2 2h2.5Z"}),x("path",{fill:"currentColor",d:"M22 7.5H8a2 2 0 0 0-2 2V19a2 2 0 0 0 2 2h5.53v1.53H12V24h6v-1.49h-1.5V21H22a2 2 0 0 0 2-2V9.5a2 2 0 0 0-2-2m.51 12h-15V9h15Z"})]}),TCe=f.forwardRef(RCe),y_="0";function cu(e,t){GM.setClipboard(e),_t.success(`已复制: ${e}`,t);}var Yl=(e=>(e.PlayerScreenMode=`${S5}-player-screen-mode`,e.ForceAutoPlay=`${S5}-force-auto-play`,e))(Yl||{}),Al=(e=>(e.Normal="normal",e.Wide="wide",e.WebFullscreen="web",e.Fullscreen="full",e))(Al||{}),sA=(e=>(e.ON="on",e.OFF="off",e))(sA||{}),sr=(e=>(e.Normal="Normal",e.CurrentPage="CurrentPage",e.NormalWebFullscreen="NormalWebFullscreen",e.Popup="Popup",e.Background="Background",e.Iina="Iina",e))(sr||{});const S_=Object.entries(sr).reduce((e,[t,n])=>({...e,[n]:`LinkOpenMode.${t}`}),{}),fi={Normal:{icon:x(Po,{className:"size-16px"}),label:"打开",desc:"默认在新标签页中打开"},CurrentPage:{icon:x(xCe,{className:"size-16px"}),label:"当前页中打开",desc:"不打开新标签页, 使用当前标签页打开, 适用于将网站作为应用安装场景"},NormalWebFullscreen:{icon:x($Ce,{className:"size-15px"}),label:"打开-网页全屏",desc:x(_e,{children:"默认在新标签页中打开, 打开后自动网页全屏"})},Popup:{icon:x(MCe,{className:"size-15px"}),label:"小窗打开",desc:H(_e,{children:["当"," ",x("a",{href:"https://developer.chrome.com/docs/web-platform/document-picture-in-picture",target:"_blank",children:"「文档画中画」API"})," ","可用时, 会使用「文档画中画」的形式: 窗口置顶 + 播放页网页全屏.",x("br",{}),"当该 API 不可用时, 会使用 popup window + 播放页网页全屏 的形式."]})},Background:{icon:x(TCe,{className:"size-15px"}),label:"后台打开"},Iina:{icon:x(vg,{className:"size-15px"}),label:"在 IINA 中打开",enabled:iA,desc:x(_e,{children:x("a",{href:"https://github.com/magicdawn/Bilibili-Gate/blob/main/notes/iina.md",target:"_blank",children:"macOS IINA 设置教程"})})}};function ACe(){return new Oo}const tU=ACe(),_3={card:{name:"18iuzk9",styles:"grid-column:1/-1"},cardWrap:{name:"k9oiqw",styles:"display:flex;column-gap:20px"},cover:{name:"1t7agkb",styles:"width:clamp(250px, 20%, 400px);flex-shrink:0"}},NCe="z-2",PCe="z-3",ICe="z-4",OCe="z-5",DCe="z-6";var Hr=(e=>(e.NormalGrid="grid",e.List="list",e.TwoColumnGrid="two-column-grid",e.CenterEmptyGrid="center-empty-grid",e))(Hr||{}),uu=(e=>(e.Center="center",e.Left="left",e.Right="right",e))(uu||{}),xf=(e=>(e.Left="left",e.Right="right",e))(xf||{}),So=(e=>(e.AddTimeDesc="add-time-desc",e.AddTimeAsc="add-time-asc",e.Shuffle="shuffle",e))(So||{});function nU(e,t="",n=[]){t&&n.push(t);for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=e[r],i=t?`${t}.${r}`:r;n.push(i),o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp)&&nU(o,i,n);}return [...new Set(n)]}function rU(e,t=""){const n=[];t&&n.push(t);for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const o=e[r],i=t?`${t}.${r}`:r;o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp)&&Object.getPrototypeOf(o)===Object.prototype&&(n.push(i),n.push(...rU(o,i)));}return [...new Set(n)]}function _Ce(e){const t=nU(e),n=rU(e);return t.filter(r=>!n.includes(r))}function LCe(e){return [...new Set(e)]}function BCe(e,t){if(!e)throw Error(t)}const oU=String.raw,Dc=(e,...t)=>new RegExp(oU(e,...t)),C_=oU`(\d+(\.\d+)?)?(xs|sm|md|lg|xl)`,wb="(solid|dashed|dotted|double|none|hidden)";function mr(e,t){return BCe(e.endsWith("-"),"prefix must end with `-`"),t.map(n=>e+n)}const zCe=[[[...["block","flex","grid","table"].flatMap(e=>[e,`inline-${e}`]),"inline","flow-root","contents","list-item","hidden",...mr("table-",["row","column","cell","caption","row-group","column-group","header-group","footer-group"])],"display"],[["isolate","isolation-auto"],"isolation"],[["static","fixed","absolute","relative","sticky"],"position"],[["visible","invisible","collapse"],"visibility"],[mr("flex-",["row","row-reverse","col","col-reverse"]),"flex-direction"],[mr("flex-",["wrap","wrap-reverse","nowrap"]),"flex-wrap"],[mr("object-",["contain","cover","fill","none","scale-down"]),"object-fit"],[mr("object-",["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]),"object-position"],[["antialiased","subpixel-antialiased"],"font-smoothing"],[["italic","not-italic","oblique","not-oblique"],"font-style"],[mr("font-",["mono","sans","serif"]),"font-family"],[/^(?:font|fw)-?(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/,"font-weight"],[["normal-nums","ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],"font-variant-numeric"],[Dc`^(text|text-size|font-size)-(\d+|${C_}$)`,"font-size"],[/^(leading|line-height)-/,"line-height"],[mr("list-",["inside","outside"]),"list-style-position"],[mr("list-",["none","disc","decimal"]),"list-style-type"],[mr("text-",["left","center","right","justify","start","end"]),"text-align"],[["underline","overline","line-through","no-underline"],"text-decoration-line"],[mr("decoration-",["solid","double","dotted","dashed","wavy"]),"text-decoration-style"],[/^decoration-(\d+|(auto|from-font)$)/,"text-decoration-thickness"],[["truncate","text-ellipsis","text-clip"],"text-overflow"],[mr("text-",["wrap","nowrap","balance","pretty"]),"text-wrap"],[mr("bg-",["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]),"background-position"],[/^bg(-no)?-repeat($|-)/,"background-repeat"],[mr("bg-",["auto","cover","contain"]),"background-size"],[["bg-none",/^bg-gradient-to-/],"background-image"],[/^(?:border-|b-)?(?:rounded|rd)(?:-(.+))?$/,"rounded"],[Dc`^b(?:order)?-${wb}$`,"border-style"],[Dc`^b(?:order)?-([tblrxyse])-${wb}$`,(e,t)=>`border-${t?.[1]}-style`],[/^b(?:order)?($|-\d+)/,"border-width"],[/^b(?:order)?-([tblrxyse])($|-\d+)/,(e,t)=>`border-${t?.[1]}-width`],[/^(?:border|b)-(?:color-)?(.+)$/,"border-color"],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,(e,t)=>`border-${t?.[1]}-color`],[/^outline-\d+/,"outline-width"],[["outline",Dc`^outline-${wb}$`],"outline-style"],[Dc`^divide-${wb}$`,"divide-style"],[/^divide-(x|y)($|-\d+)/,(e,t)=>`divide-${t?.[1]}-width`],[["ring",/^ring-\d+/],"ring-width"],[[/^ring-offset-\d+/],"ring-offset-width"],[["shadow",...mr("shadow-",["inner","none"]),Dc`^shadow-${C_}$`],"box-shadow"],[mr("border-",["collapse","separate"]),"border-collapse"],[mr("table-",["auto","fixed"]),"table-layout"],[mr("caption-",["top","bottom"]),"caption-side"],[mr("scroll-",["auto","smooth"]),"scroll-behavior"],[mr("snap-",["start","end","center","align-none"]),"scroll-snap-align"],[mr("snap-",["normal","always"]),"scroll-snap-stop"],[mr("snap-",["none","x","y","both","mandatory","proximity"]),"scroll-snap-type"],[/^stroke-\d+/,"stroke-width"],[["sr-only","not-sr-only"],"Screen-Readers"],[/^(flex-)?grow($|-\d+$)/,"flex-grow"],[/^(flex-)?shrink($|-\d+$)/,"flex-shrink"],[/^(flex-)?basis-(.+)$/,"flex-basis"],[/^flex-(initial|auto|none|\d+)$/,"flex"],[/^col-start-/,"grid-column-start"],[/^col-end-/,"grid-column-end"],[[/^col-/,/^col-span-/],"grid-column"],[/^row-start-/,"grid-row-start"],[/^row-end-/,"grid-row-end"],[[/^row-/,/^row-span-/],"grid-row"],["transition-none","transition-none"],[/^transition-delay-(.+)$/,"transition-delay"],[/^transition-ease(?:-(.+))?$/,"transition-timing-function"],[/^transition(-duration)?-\d+(m?s)?$/,"transition-duration"],[/^transition-(all$|\w+)/,"transition-property"],...["ring-inset","divide-x-reverse","divide-y-reverse"].map(e=>[e,e]),...["resize","blur","drop-shadow","grayscale","invert","sepia","backdrop-blur","backdrop-grayscale","backdrop-invert","backdrop-sepia"].map(e=>[Dc`^${e}($|-)`,e])],L3=new Map,iU=new Map;for(let[e,t]of zCe){let n=[e].flat(),r=n.filter(i=>typeof i=="string"),o=n.filter(i=>typeof i=="object"&&i instanceof RegExp);r.forEach(i=>{let a=typeof t=="string"?t:t(i);L3.set(i,a);}),o.forEach(i=>{iU.set(i,t);});}function kCe(e){if(L3.has(e))return L3.get(e);for(let[t,n]of iU.entries())if(t.test(e)){let r=t.exec(e);return typeof n=="string"?n:n(e,r)}}function FCe(e){return HCe.map(t=>typeof t=="string"?[t,t]:t).find(([t,n])=>e.startsWith(`${t}-`))}const HCe=["break-after","break-before","break-inside","grid-flow","align","whitespace","mix-blend","bg-blend","ease","origin","cursor","touch","color",["text","color"],["c","color"],["bg","background-color"],["decoration","text-decoration-color"],["from","gradient-color-stops"],["divide","divide-color"],["outline","outline-color"],["ring","ring-color"],["ring-offset","ring-offset-color"],["shadow","box-shadow-color"],["accent","accent-color"],["caret","caret-color"],"fill","stroke"],x_=new Map(Object.entries({flex:["flex-grow","flex-shrink","flex-basis"],"transiton-none":["transition-duration","transition-delay","transition-timing-function","transition-property"],m:["mt","mb","ml","mr","mx","my"],mx:["ml","mr"],my:["mt","mb"],p:["pt","pb","pl","pr","px","py"],px:["pl","pr"],py:["pt","pb"]}));function VCe(e){return (e||"").split(" ").map(t=>t.trim()).filter(Boolean)}function aU(...e){let t=new Map;return VCe(X(...e)).filter(Boolean).forEach(n=>jCe(n,t)),LCe(Array.from(t.values())).join(" ")}function jCe(e,t){let n=e,r;function o(p){[p].flat().forEach(g=>{x_.has(g)&&[x_.get(g)].flat().filter(b=>b!==void 0).forEach(b=>{t.delete(r?r+b:b);}),t.set(r?r+g:g,n);});}function i(){let p=kCe(e);if(p)return o(p),true}function a(){let p=FCe(e);if(!p)return;let[g,b]=p;return o(b),true}function l(){let p=e,g=/(\[[\w,()/-]+\])$/;g.test(e)&&(p=e.replace(g,function(y,S){return "*".repeat(S.length)})),p=p.replaceAll(/--(?=\d)/g,"-*");let b=p.lastIndexOf("-");if(b!==-1)return o(e.slice(0,b)),true}function u(){return o(e)}function d(){let p=/^(?:(?:[\w-]+|\[\S+\]):)+/.exec(e);p&&(r=p[0].split(new RegExp("(?<=:)(?:\\b|$)")).filter(Boolean).sort().join(""),e=e.slice(r.length));}function m(){if(e.startsWith("!")){e="important:"+e.slice(1);return}if(e.endsWith("!")){e="important:"+e.slice(0,-1);return}}i()||a()||(m(),d(),i()||a()||l()||u());}function ur(...e){let t=f.useMemo(()=>X(...e),[...e]);return f.useMemo(()=>aU(t),[t])}const Su="inline-block cursor-pointer rounded bg-gate-primary-lv-3 px-6px text-white line-height-tight font-mono";function w_({className:e,...t}){return x("kbd",{...t,className:ur(Su,e)})}const sU=x(yT,{className:"text-gate-primary [.ant-spin_.ant-spin-dot&]:size-25px"}),lU="flex items-center gap-x-1 [&.ant-btn:not(:disabled):focus-visible]:outline-0";function $_(e){if(/^z-\d+$/.test(e))return Number.parseInt(e.slice(2))}const UCe="z-1001",WCe="z-10004",qCe="z-10005",E_="z-11000",GCe="z-11200",KCe="z-11300",YCe="z-90000",M_={default:X("fixed left-50% top-50% max-w-450px min-w-200px w-[max-content] translate-x--50% translate-y--50% whitespace-pre-wrap rounded-6px bg-gate-primary px-24px py-12px text-14px text-white",YCe),singleLine:"text-center"};function fn(e,t=2e3,n=document.body){const r=document.createElement("div");r.textContent=e;const o=!e.includes(`
`)&&!e.includes("<br");r.className=X($a,M_.default,o&&M_.singleLine),n.appendChild(r),setTimeout(()=>r.remove(),t);}var Aw,R_;function XCe(){if(R_)return Aw;R_=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Aw=function(m,p){p=p||{};var g=typeof m;if(g==="string"&&m.length>0)return a(m);if(g==="number"&&isFinite(m))return p.long?u(m):l(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))};function a(m){if(m=String(m),!(m.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(m);if(p){var g=parseFloat(p[1]),b=(p[2]||"ms").toLowerCase();switch(b){case "years":case "year":case "yrs":case "yr":case "y":return g*i;case "weeks":case "week":case "w":return g*o;case "days":case "day":case "d":return g*r;case "hours":case "hour":case "hrs":case "hr":case "h":return g*n;case "minutes":case "minute":case "mins":case "min":case "m":return g*t;case "seconds":case "second":case "secs":case "sec":case "s":return g*e;case "milliseconds":case "millisecond":case "msecs":case "msec":case "ms":return g;default:return}}}}function l(m){var p=Math.abs(m);return p>=r?Math.round(m/r)+"d":p>=n?Math.round(m/n)+"h":p>=t?Math.round(m/t)+"m":p>=e?Math.round(m/e)+"s":m+"ms"}function u(m){var p=Math.abs(m);return p>=r?d(m,p,r,"day"):p>=n?d(m,p,n,"hour"):p>=t?d(m,p,t,"minute"):p>=e?d(m,p,e,"second"):m+" ms"}function d(m,p,g,b){var y=p>=g*1.5;return Math.round(m/g)+" "+b+(y?"s":"")}return Aw}var QCe=XCe();const co=Do(QCe);var Nw,T_;function ZCe(){return T_||(T_=1,Nw=function(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Nw}var Pw,A_;function JCe(){return A_||(A_=1,Pw=function(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}),Pw}var Iw,N_;function exe(){if(N_)return Iw;N_=1;var e=ZCe(),t=JCe();return Iw=function(r,o,i){var a=!e(o);return r&&(a||i===false)?t(r,o):o},Iw}var txe=exe();const nxe=Do(txe);var Ow,P_;function rxe(){return P_||(P_=1,Ow=function(t,n){return function(){return t.apply(n,arguments)}}),Ow}var Dw,I_;function yg(){if(I_)return Dw;I_=1;var e=rxe(),t=Object.prototype.toString,n=(function(D){return function(B){var K=t.call(B);return D[K]||(D[K]=K.slice(8,-1).toLowerCase())}})(Object.create(null));function r(D){return D=D.toLowerCase(),function(K){return n(K)===D}}function o(D){return Array.isArray(D)}function i(D){return typeof D>"u"}function a(D){return D!==null&&!i(D)&&D.constructor!==null&&!i(D.constructor)&&typeof D.constructor.isBuffer=="function"&&D.constructor.isBuffer(D)}var l=r("ArrayBuffer");function u(D){var B;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?B=ArrayBuffer.isView(D):B=D&&D.buffer&&l(D.buffer),B}function d(D){return typeof D=="string"}function m(D){return typeof D=="number"}function p(D){return D!==null&&typeof D=="object"}function g(D){if(n(D)!=="object")return  false;var B=Object.getPrototypeOf(D);return B===null||B===Object.prototype}function b(D){return D&&Object.keys(D).length===0&&Object.getPrototypeOf(D)===Object.prototype}var y=r("Date"),S=r("File"),C=r("Blob"),w=r("FileList");function $(D){return t.call(D)==="[object Function]"}function E(D){return p(D)&&$(D.pipe)}function T(D){var B="[object FormData]";return D&&(typeof FormData=="function"&&D instanceof FormData||t.call(D)===B||$(D.toString)&&D.toString()===B)}var R=r("URLSearchParams");function I(D){return D.trim?D.trim():D.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function N(){var D;return typeof navigator<"u"&&((D=navigator.product)==="ReactNative"||D==="NativeScript"||D==="NS")?false:typeof window<"u"&&typeof document<"u"}function P(D,B){if(!(D===null||typeof D>"u"))if(typeof D!="object"&&(D=[D]),o(D))for(var K=0,J=D.length;K<J;K++)B.call(null,D[K],K,D);else for(var ee in D)Object.prototype.hasOwnProperty.call(D,ee)&&B.call(null,D[ee],ee,D);}function O(){var D={};function B(ee,te){g(D[te])&&g(ee)?D[te]=O(D[te],ee):g(ee)?D[te]=O({},ee):o(ee)?D[te]=ee.slice():D[te]=ee;}for(var K=0,J=arguments.length;K<J;K++)P(arguments[K],B);return D}function _(D,B,K){return P(B,function(ee,te){K&&typeof ee=="function"?D[te]=e(ee,K):D[te]=ee;}),D}function L(D){return D.charCodeAt(0)===65279&&(D=D.slice(1)),D}function k(D,B,K,J){D.prototype=Object.create(B.prototype,J),D.prototype.constructor=D,K&&Object.assign(D.prototype,K);}function W(D,B,K,J){var ee,te,re,ie={};if(B=B||{},D==null)return B;do{for(ee=Object.getOwnPropertyNames(D),te=ee.length;te-- >0;)re=ee[te],(!J||J(re,D,B))&&!ie[re]&&(B[re]=D[re],ie[re]=true);D=K!==false&&Object.getPrototypeOf(D);}while(D&&(!K||K(D,B))&&D!==Object.prototype);return B}function q(D,B,K){D=String(D),(K===void 0||K>D.length)&&(K=D.length),K-=B.length;var J=D.indexOf(B,K);return J!==-1&&J===K}function F(D){if(!D)return null;if(o(D))return D;var B=D.length;if(!m(B))return null;for(var K=new Array(B);B-- >0;)K[B]=D[B];return K}var z=(function(D){return function(B){return D&&B instanceof D}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));function j(D,B){for(var K=D&&D[Symbol.iterator],J=K.call(D),ee;(ee=J.next())&&!ee.done;){var te=ee.value;B.call(D,te[0],te[1]);}}function U(D,B){for(var K,J=[];(K=D.exec(B))!==null;)J.push(K);return J}var Y=r("HTMLFormElement"),Q=(function(B){return function(K,J){return B.call(K,J)}})(Object.prototype.hasOwnProperty);return Dw={isArray:o,isArrayBuffer:l,isBuffer:a,isFormData:T,isArrayBufferView:u,isString:d,isNumber:m,isObject:p,isPlainObject:g,isEmptyObject:b,isUndefined:i,isDate:y,isFile:S,isBlob:C,isFunction:$,isStream:E,isURLSearchParams:R,isStandardBrowserEnv:N,forEach:P,merge:O,extend:_,trim:I,stripBOM:L,inherits:k,toFlatObject:W,kindOf:n,kindOfTest:r,endsWith:q,toArray:F,isTypedArray:z,isFileList:w,forEachEntry:j,matchAll:U,isHTMLForm:Y,hasOwnProperty:Q},Dw}var _w,O_;function cU(){if(O_)return _w;O_=1;var e=yg();function t(o,i,a,l,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",i&&(this.code=i),a&&(this.config=a),l&&(this.request=l),u&&(this.response=u);}e.inherits(t,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=t.prototype,r={};return ["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(o){r[o]={value:o};}),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:true}),t.from=function(o,i,a,l,u,d){var m=Object.create(n);return e.toFlatObject(o,m,function(g){return g!==Error.prototype}),t.call(m,o.message,i,a,l,u),m.cause=o,m.name=o.name,d&&Object.assign(m,d),m},_w=t,_w}var Lw,D_;function oxe(){if(D_)return Lw;D_=1;var e=cU();return Lw=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(new e("Request failed with status code "+o.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o));},Lw}var ixe=oxe();const axe=Do(ixe);var Bw,__;function sxe(){return __||(__=1,Bw=typeof self=="object"?self.FormData:window.FormData),Bw}var zw,L_;function lxe(){return L_||(L_=1,zw=sxe()),zw}var kw,B_;function cxe(){if(B_)return kw;B_=1;var e=yg(),t=cU(),n=lxe();function r(m){return e.isPlainObject(m)||e.isArray(m)}function o(m){return e.endsWith(m,"[]")?m.slice(0,-2):m}function i(m,p,g){return m?m.concat(p).map(function(y,S){return y=o(y),!g&&S?"["+y+"]":y}).join(g?".":""):p}function a(m){return e.isArray(m)&&!m.some(r)}var l=e.toFlatObject(e,{},null,function(p){return /^is[A-Z]/.test(p)});function u(m){return m&&e.isFunction(m.append)&&m[Symbol.toStringTag]==="FormData"&&m[Symbol.iterator]}function d(m,p,g){if(!e.isObject(m))throw new TypeError("target must be an object");p=p||new(n||FormData),g=e.toFlatObject(g,{metaTokens:true,dots:false,indexes:false},false,function(O,_){return !e.isUndefined(_[O])});var b=g.metaTokens,y=g.visitor||T,S=g.dots,C=g.indexes,w=g.Blob||typeof Blob<"u"&&Blob,$=w&&u(p);if(!e.isFunction(y))throw new TypeError("visitor must be a function");function E(P){if(P===null)return "";if(e.isDate(P))return P.toISOString();if(!$&&e.isBlob(P))throw new t("Blob is not supported. Use a Buffer instead.");return e.isArrayBuffer(P)||e.isTypedArray(P)?$&&typeof Blob=="function"?new Blob([P]):Buffer.from(P):P}function T(P,O,_){var L=P;if(P&&!_&&typeof P=="object"){if(e.endsWith(O,"{}"))O=b?O:O.slice(0,-2),P=JSON.stringify(P);else if(e.isArray(P)&&a(P)||e.isFileList(P)||e.endsWith(O,"[]")&&(L=e.toArray(P)))return O=o(O),L.forEach(function(W,q){!(e.isUndefined(W)||W===null)&&p.append(C===true?i([O],q,S):C===null?O:O+"[]",E(W));}),false}return r(P)?true:(p.append(i(_,O,S),E(P)),false)}var R=[],I=Object.assign(l,{defaultVisitor:T,convertValue:E,isVisitable:r});function N(P,O){if(!e.isUndefined(P)){if(R.indexOf(P)!==-1)throw Error("Circular reference detected in "+O.join("."));R.push(P),e.forEach(P,function(L,k){var W=!(e.isUndefined(L)||L===null)&&y.call(p,L,e.isString(k)?k.trim():k,O,I);W===true&&N(L,O?O.concat(k):[k]);}),R.pop();}}if(!e.isObject(m))throw new TypeError("data must be an object");return N(m),p}return kw=d,kw}var Fw,z_;function uxe(){if(z_)return Fw;z_=1;var e=cxe();function t(o){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'\(\)~]|%20|%00/g,function(l){return i[l]})}function n(o,i){this._pairs=[],o&&e(o,this,i);}var r=n.prototype;return r.append=function(i,a){this._pairs.push([i,a]);},r.toString=function(i){var a=i?function(l){return i.call(this,l,t)}:t;return this._pairs.map(function(u){return a(u[0])+"="+a(u[1])},"").join("&")},Fw=n,Fw}var Hw,k_;function dxe(){if(k_)return Hw;k_=1;var e=yg(),t=uxe();function n(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return Hw=function(o,i,a){if(!i)return o;var l=o.indexOf("#");l!==-1&&(o=o.slice(0,l));var u=a&&a.encode||n,d=a&&a.serialize,m;return d?m=d(i,a):m=e.isURLSearchParams(i)?i.toString():new t(i,a).toString(u),m&&(o+=(o.indexOf("?")===-1?"?":"&")+m),o},Hw}var fxe=dxe();const mxe=Do(fxe);var Vw,F_;function hxe(){if(F_)return Vw;F_=1;var e=yg(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Vw=function(r){var o={},i,a,l;return r&&e.forEach(r.split(`
`),function(d){if(l=d.indexOf(":"),i=e.trim(d.slice(0,l)).toLowerCase(),a=e.trim(d.slice(l+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a;}}),o},Vw}var pxe=hxe();const gxe=Do(pxe);var vxe=yg();const H_=Do(vxe);function bxe(e){return new Promise((t,n)=>{let r=e.data;const o=e.headers??{};if(H_.isFormData(r)&&delete o["Content-Type"],e.auth){const m=e.auth.username||"",p=e.auth.password||"";o.Authorization="Basic "+Buffer.from(m+":"+p).toString("base64");}const i=function(){n(new vM.AxiosError("Network Error",vM.AxiosError.ERR_NETWORK,e));},a=function(){n(new vM.AxiosError("timeout of "+e.timeout+"ms exceeded",vM.AxiosError.ECONNABORTED,e));};H_.forEach(o,function(p,g){typeof r>"u"&&g.toLowerCase()==="content-type"&&delete o[g];}),r===void 0&&(r=null);const l=function(p){const g="responseHeaders"in p?gxe(p.responseHeaders):{},y={data:!e.responseType||e.responseType==="text"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:{responseURL:p.finalUrl,status:p.status,statusText:p.statusText,responseXML:null}};axe(t,n,y);};e.cancelToken&&e.cancelToken.promise.then(function(p){n(p);});let u;e.responseType&&e.responseType!=="json"&&(u=e.responseType);const d=e.method.toUpperCase();d==="UNLINK"||d==="PURGE"||d==="LINK"?n(new vM.AxiosError(`${d} is not a supported method by GM.xmlHttpRequest`)):GM.xmlHttpRequest({method:d,url:mxe(nxe(e.baseURL,e.url),e.params,e.paramsSerializer),headers:Object.fromEntries(Object.entries(o).map(([m,p])=>[m,p.toString()])),responseType:u,data:r,timeout:e.timeout,ontimeout:a,onload:l,onerror:i});})}const jw=()=>Yn().format("YYYY-MM-DD");function uU(e){async function t(){const n=jw();(await GM.listValues()).filter(o=>o.startsWith(`${e}:`)&&o!==`${e}:${n}`).forEach(o=>GM.deleteValue(o));}return t(),{async set(n){t(),await GM.setValue(`${e}:${jw()}`,n);},get(){return t(),GM.getValue(`${e}:${jw()}`)}}}const yxe=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;const o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Sxe(o,i)&&r||Object.defineProperty(e,n,i);},Sxe=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Cxe=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n);},xxe=(e,t)=>`/* Wrapped ${e}*/
${t}`,wxe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),$xe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Exe=(e,t,n)=>{const r=n===""?"":`with ${n.trim()}() `,o=xxe.bind(null,r,t.toString());Object.defineProperty(o,"name",$xe);const{writable:i,enumerable:a,configurable:l}=wxe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:a,configurable:l});};function Mxe(e,t,{ignoreNonConfigurable:n=false}={}){const{name:r}=e;for(const o of Reflect.ownKeys(t))yxe(e,t,o,n);return Cxe(e,t),Exe(e,t,r),e}const Rxe=new WeakMap;function lA(e,t){const n=([l])=>l,{cacheKey:r=n,cache:o=new Map}=t??{},i=new Map,a=function(...l){const u=r(l);if(i.has(u))return i.get(u);const d=(async()=>{try{if(o&&await o.has(u))return await o.get(u);const p=await e.apply(this,l);try{return p}finally{o&&(!t?.shouldCache||await t.shouldCache(p,{key:u,argumentsList:l}))&&await o.set(u,p);}}finally{i.delete(u);}})();return i.set(u,d),d};return Mxe(a,e,{ignoreNonConfigurable:true}),Rxe.set(a,o),a}function Vs(e,t){return t??=(...n)=>JSON.stringify(n),lA(e,{cache:false,cacheKey(n){return t(...n)}})}async function A1(e){const{img_key:t,sub_key:n}=await Txe(),r=Pxe(t+n),o=Math.round(Date.now()/1e3),i={...e,wts:o},a=/[!'()*]/g,l=Object.keys(i).sort().map(d=>`${encodeURIComponent(d)}=${encodeURIComponent(i[d].toString().replaceAll(a,""))}`).join("&"),u=sparkMd5.hash(l+r);return {...i,wts:o,w_rid:u}}const dU=uU("wbi-keys"),Txe=Vs(async function(){const e=await dU.get();return e?.val&&e?.ts&&Date.now()-e.ts<=co("6h")?e.val:Axe()});async function Axe(){const t=(await vM.get("/x/web-interface/nav",{baseURL:AB})).data,n=t.data.wbi_img.img_url,r=t.data.wbi_img.sub_url,o={img_key:n.slice(n.lastIndexOf("/")+1,n.lastIndexOf(".")),sub_key:r.slice(r.lastIndexOf("/")+1,r.lastIndexOf("."))};return await dU.set({val:o,ts:Date.now()}),o}const Nxe=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function Pxe(e){return Nxe.map(t=>e[t]).join("").slice(0,32)}function fU(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),sparkMd5.hash(r.toString()+n)}const Ixe={platform:"ios",mobi_app:"ipad",device:"pad",build:"37300100",c_locale:"zh-Hans_CN",s_locale:"zh-Hans_CN"};class cA extends Error{constructor(t,n){t||="需要有效的 access_key",super(t,{cause:n}),this.name="NeedValidAccessKeyError";}}const Xt=vM.create({baseURL:AB,withCredentials:true});Xt.interceptors.request.use(async function(e){return e.params||={},e.url?.includes("/wbi/")&&!(e.params.w_rid||e.params.wts)&&(e.params=await A1(e.params)),e});function Vn(e){return e?.code===0&&["0","success","ok"].includes(e?.message?.toLowerCase())}class Oxe extends Error{constructor(t){const n="WebApiError: "+t.message;super(n),this.json=t,this.name="WebApiError";}}const Sg=vM.create({adapter:bxe});Sg.interceptors.request.use(function(e){if(!e.params?.sign){const{appkey:t,appsec:n}=np;e.params={appkey:t,access_key:st.accessKey||"",...gB(e.params,["sign"])},e.params.sign=fU(e.params,t,n);}return e});Sg.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){Xo("response data is ArrayBuffer");const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});function uA(){const e={};return document.cookie.split(";").map(t=>t.trim()).filter(Boolean).forEach(t=>{const[n,r]=t.split("=").map(o=>o.trim()).filter(Boolean);n&&(e[n]=r);}),e}function lc(){const e=uA().bili_jct;if(!e)throw fn("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function ei(){return uA().DedeUserID}function N1(){return !!uA().DedeUserID}const B3=ac(()=>({cookie:document.cookie,logined:N1()}));function mU(){return B3.update(),B3.state.value.logined}function dA(){return B3.use().logined}async function V_(){return (await Xt.get("https://member.bilibili.com/x/web/draft/list")).data.artlist?.drafts||[]}async function Uw(e){const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:lc(),...e}),n=(await Xt.post("/x/article/creative/draft/addupdate",t)).data,r=n?.data?.aid?.toString(),o=Vn(n);return o||fn(n.message||"addupdate error"),{success:o,aid:r}}async function Dxe(e){return (await Xt.get("/x/article/creative/draft/view",{params:{aid:e}})).data?.data?.content||""}class _xe{title;constructor(t){this.title=t;}getData=async()=>{const{title:t}=this,r=(await V_()).find(u=>u.title===t);if(!r){const{success:u,aid:d}=await Uw({title:t});return}const o=await Dxe(r.id),l=(new DOMParser().parseFromString(o,"text/html").body.textContent||"").trim();if(l)try{return JSON.parse(l)}catch{return}};_aid;setData=async t=>{const{title:n}=this;if(!this._aid){const a=(await V_()).find(l=>l.title===n);if(a)this._aid=a.id.toString();else {const{success:l,aid:u}=await Uw({title:n});if(!l)return  false;this._aid=u;}}const r=JSON.stringify(t),{success:o}=await Uw({aid:this._aid,title:n,content:`<p>${r}</p>`,words:r.length.toString()});return o}}const Lxe=so.extend("settings"),hU=new _xe(No),pU=["accessKey","accessKeyExpireAt"],Bxe=()=>[...pU,...by,"backupSettingsToArticleDraft","fav.addSeparator","watchlaterAddSeparator","watchlaterItemsOrder","popularWeeklyUseShuffle","popularGeneralUseAnonymous"],zxe=[...pU,"backupSettingsToArticleDraft"];let gU=false;function vU(e){gU=e;}let Ww;const kxe=Jl(hU.setData,co("5s"));async function Fxe(e){if(!e.backupSettingsToArticleDraft||gU)return;const{pickedSettings:t}=Yf(e,cc,Bxe());if(!Ww||!fa(Ww,t))try{await kxe(t),Ww=t,Lxe("backup to article draft complete");}catch(r){console.error(r.stack||r);}}const Hxe=so.extend("settings"),Cg={accessKey:"",accessKeyExpireAt:0,pureRecommend:true,appRecommend:{addOtherTabContents:false},modalFeedFullScreen:false,grid:{useCustomGrid:true,gridDisplayMode:Hr.NormalGrid,twoColumnModeAlign:uu.Center,enableForceColumn:false,forceColumnCount:4,cardMinWidth:320},videoCard:{actions:{openInPipWindow:false,showLargePreview:true},videoPreview:{useMp4:true,useScale:false,useVideoCardAsTrigger:false,usePreferredCdn:true,addTo:{searchPage:true}},imgPreview:{enabled:true,autoPreviewWhenKeyboardSelect:false,autoPreviewWhenHover:true,disableWhenMultiSelecting:true}},autoPreviewUpdateInterval:700,useDelayForHover:false,enableSidebar:true,sidebarAlign:xf.Right,dynamicFeed:{showLive:true,videoOnly:false,followGroup:{enabled:true,forceUseMergeTimelineIds:[]},whenViewAll:{enableHideSomeContents:false,hideIds:[]},advancedFilter:false,__internal:{cacheAllItemsEntry:false,cacheAllItemsUpMids:[],externalFilterInput:false}},watchlaterAddSeparator:true,watchlaterItemsOrder:So.AddTimeDesc,watchlaterUseNormalVideoUrl:false,fav:{addSeparator:true,excludedFolderIds:[],useCustomFavPicker:{onPlayPage:false}},popularGeneralUseAnonymous:false,popularWeeklyUseShuffle:false,spaceUpload:{showVol:false,useSyncFilterTextFromSearchText:false},filter:{enabled:true,minDuration:{enabled:false,value:60},minPlayCount:{enabled:false,value:1e4},minDanmakuCount:{enabled:false,value:10},exemptForFollowed:{video:true,picture:true},hideGotoTypePicture:false,hideGotoTypeBangumi:false,byAuthor:{enabled:false,keywords:[]},byTitle:{enabled:false,keywords:[]},dfByTitle:{enabled:false,keywords:[]},dfHideOpusMids:{enabled:false,keywords:[]}},style:{general:{popoverBorderColorUseColorPrimary:false},pureRecommend:{useStickyTabbar:true,stickyTabbarShadow:false,useWhiteBackground:true,hideTopChannel:false},videoCard:{useBorder:true,useBorderOnlyOnHover:true,useBoxShadow:false}},theme:"",colorPickerThemeSelectedColor:"",backupSettingsToArticleDraft:false,videoLinkOpenMode:sr.Normal,pipWindow:{defaultLocked:true,autoWebFullscreen:true},hidingTabKeys:[rt.KeepFollowOnly,rt.Live,rt.Liked],customTabKeysOrder:[],showBackForwardButtons:false,multiSelect:{clearWhenExit:true,showIcon:true},__internalEnableCopyBvidInfo:false,__internalAddTabbarCopyBvidButton:false,__internalHotSubUseDropdown:false,__internalRecTabRenderAsSegments:false},st=kn(sf(Cg)),cc=_Ce(Cg),by=cc.filter(e=>e.includes("__internal")&&typeof Ao(Cg,e)=="boolean");Hxe("allowedLeafSettingsPaths = %O, internalBooleanPaths = %O",cc,by);function Ut(e){return yt(st,e)}function xg(){return Vr(st)}const fA="settings";async function bU(){const e=await GM.getValue(fA);return !e||typeof e!="object"?{}:(mA(e),Yf(e,cc).pickedSettings)}async function Vxe(){const e=await bU();Ya(e),Qa(st,()=>{jxe();}),mT({storageKey:fA,setPersist(t){yU=t;},onUpdate(t){Ya(t);}});}async function jxe(){const e=sf(Vr(st));await Uxe(e),await Fxe(e);}let yU=true;async function Uxe(e){yU&&await GM.setValue(fA,e);}function Ya(e){const{pickedPaths:t}=Yf(e,cc);for(const n of t){const r=Ao(e,n);Tf(st,n,r);}}function Wxe(){return Ya(Cg)}function mA(e){if(!e)return;const t=[["dynamicFeed.showLive","dynamicFeedShowLive"],["dynamicFeed.followGroup.enabled","dynamicFeedFollowGroupEnabled"],["dynamicFeed.followGroup.forceUseMergeTimelineIds","dynamicFeedFollowGroupForceUseMergeTimelineIds"],["dynamicFeed.whenViewAll.enableHideSomeContents","dynamicFeedWhenViewAllEnableHideSomeContents"],["dynamicFeed.whenViewAll.hideIds","dynamicFeedWhenViewAllHideIds"],["fav.addSeparator","favAddSeparator"],["fav.excludedFolderIds","favExcludedFolderIds"],["filter.enabled","filterEnabled"],["filter.minPlayCount.enabled","filterMinPlayCountEnabled"],["filter.minPlayCount.value","filterMinPlayCount"],["filter.minDuration.enabled","filterMinDurationEnabled"],["filter.minDuration.value","filterMinDuration"],["filter.exemptForFollowed.video","exemptForFollowedVideo"],["filter.exemptForFollowed.picture","exemptForFollowedPicture"],["filter.hideGotoTypePicture","filterOutGotoTypePicture"],["filter.hideGotoTypeBangumi","filterOutGotoTypeBangumi"],["filter.byAuthor.enabled","filterByAuthorNameEnabled"],["filter.byAuthor.keywords","filterByAuthorNameKeywords"],["filter.byTitle.enabled","filterByTitleEnabled"],["filter.byTitle.keywords","filterByTitleKeywords"],["style.pureRecommend.useStickyTabbar","styleUseStickyTabbarInPureRecommend"],["style.pureRecommend.useWhiteBackground","styleUseWhiteBackground"],["style.pureRecommend.hideTopChannel","styleHideTopChannel"],["style.videoCard.useBorder","styleUseCardBorder"],["style.videoCard.useBorderOnlyOnHover","styleUseCardBorderOnlyOnHover"],["style.videoCard.useBoxShadow","styleUseCardBoxShadow"],["pipWindow.defaultLocked","pipWindowDefaultLocked"],["videoCard.imgPreview.autoPreviewWhenKeyboardSelect","autoPreviewWhenKeyboardSelect"],["videoCard.imgPreview.autoPreviewWhenHover","autoPreviewWhenHover"],["grid.useCustomGrid","style.pureRecommend.useCustomGrid"],["grid.enableForceColumn","grid.enableForceCoumn"],["dynamicFeed.advancedFilter","dynamicFeedAdvancedSearch"],["dynamicFeed.advancedFilter","dynamicFeed.advancedSearch"]];for(const[n,r]of t){const o=i=>!Va(i);o(Ao(e,n))||o(Ao(e,r))&&Tf(e,n,Ao(e,r));}}function Yf(e,t,n=[]){const r={},o=t.filter(i=>cc.includes(i)&&!n.includes(i)&&!Va(Ao(e,i)));return o.forEach(i=>{const a=Ao(e,i);Tf(r,i,a);}),{pickedPaths:o,pickedSettings:r}}function SU(e){const t=Ut();return Ao(t,e)}async function P1(e){const t=await bU();return Ao(t,e)||Ao(xg(),e)}function qxe(e,t){Tf(st,e,t);}async function Wa(e,{add:t,remove:n}){const r=await P1(e),o=new Set(r);for(const i of t??[])o.add(i);for(const i of n??[])o.delete(i);qxe(e,Array.from(o));}await( Vxe());Ls&&st.accessKey&&st.accessKeyExpireAt&&Date.now()>=st.accessKeyExpireAt&&fn("access_key 已过期, 请重新获取 !!!");var a0={exports:{}},Gxe=a0.exports,j_;function Kxe(){return j_||(j_=1,(function(e,t){(function(n,r){e.exports=r();})(Gxe,(function(){var n,r,o=1e3,i=6e4,a=36e5,l=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=31536e6,m=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,g={years:d,months:m,days:l,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},b=function(I){return I instanceof T},y=function(I,N,P){return new T(I,P,N.$l)},S=function(I){return r.p(I)+"s"},C=function(I){return I<0},w=function(I){return C(I)?Math.ceil(I):Math.floor(I)},$=function(I){return Math.abs(I)},E=function(I,N){return I?C(I)?{negative:true,format:""+$(I)+N}:{negative:false,format:""+I+N}:{negative:false,format:""}},T=(function(){function I(P,O,_){var L=this;if(this.$d={},this.$l=_,P===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return y(P*g[S(O)],this);if(typeof P=="number")return this.$ms=P,this.parseFromMilliseconds(),this;if(typeof P=="object")return Object.keys(P).forEach((function(q){L.$d[S(q)]=P[q];})),this.calMilliseconds(),this;if(typeof P=="string"){var k=P.match(p);if(k){var W=k.slice(2).map((function(q){return q!=null?Number(q):0}));return this.$d.years=W[0],this.$d.months=W[1],this.$d.weeks=W[2],this.$d.days=W[3],this.$d.hours=W[4],this.$d.minutes=W[5],this.$d.seconds=W[6],this.calMilliseconds(),this}}return this}var N=I.prototype;return N.calMilliseconds=function(){var P=this;this.$ms=Object.keys(this.$d).reduce((function(O,_){return O+(P.$d[_]||0)*g[_]}),0);},N.parseFromMilliseconds=function(){var P=this.$ms;this.$d.years=w(P/d),P%=d,this.$d.months=w(P/m),P%=m,this.$d.days=w(P/l),P%=l,this.$d.hours=w(P/a),P%=a,this.$d.minutes=w(P/i),P%=i,this.$d.seconds=w(P/o),P%=o,this.$d.milliseconds=P;},N.toISOString=function(){var P=E(this.$d.years,"Y"),O=E(this.$d.months,"M"),_=+this.$d.days||0;this.$d.weeks&&(_+=7*this.$d.weeks);var L=E(_,"D"),k=E(this.$d.hours,"H"),W=E(this.$d.minutes,"M"),q=this.$d.seconds||0;this.$d.milliseconds&&(q+=this.$d.milliseconds/1e3,q=Math.round(1e3*q)/1e3);var F=E(q,"S"),z=P.negative||O.negative||L.negative||k.negative||W.negative||F.negative,j=k.format||W.format||F.format?"T":"",U=(z?"-":"")+"P"+P.format+O.format+L.format+j+k.format+W.format+F.format;return U==="P"||U==="-P"?"P0D":U},N.toJSON=function(){return this.toISOString()},N.format=function(P){var O=P||"YYYY-MM-DDTHH:mm:ss",_={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return O.replace(u,(function(L,k){return k||String(_[L])}))},N.as=function(P){return this.$ms/g[S(P)]},N.get=function(P){var O=this.$ms,_=S(P);return _==="milliseconds"?O%=1e3:O=_==="weeks"?w(O/g[_]):this.$d[_],O||0},N.add=function(P,O,_){var L;return L=O?P*g[S(O)]:b(P)?P.$ms:y(P,this).$ms,y(this.$ms+L*(_?-1:1),this)},N.subtract=function(P,O){return this.add(P,O,true)},N.locale=function(P){var O=this.clone();return O.$l=P,O},N.clone=function(){return y(this.$ms,this)},N.humanize=function(P){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!P)},N.valueOf=function(){return this.asMilliseconds()},N.milliseconds=function(){return this.get("milliseconds")},N.asMilliseconds=function(){return this.as("milliseconds")},N.seconds=function(){return this.get("seconds")},N.asSeconds=function(){return this.as("seconds")},N.minutes=function(){return this.get("minutes")},N.asMinutes=function(){return this.as("minutes")},N.hours=function(){return this.get("hours")},N.asHours=function(){return this.as("hours")},N.days=function(){return this.get("days")},N.asDays=function(){return this.as("days")},N.weeks=function(){return this.get("weeks")},N.asWeeks=function(){return this.as("weeks")},N.months=function(){return this.get("months")},N.asMonths=function(){return this.as("months")},N.years=function(){return this.get("years")},N.asYears=function(){return this.as("years")},I})(),R=function(I,N,P){return I.add(N.years()*P,"y").add(N.months()*P,"M").add(N.days()*P,"d").add(N.hours()*P,"h").add(N.minutes()*P,"m").add(N.seconds()*P,"s").add(N.milliseconds()*P,"ms")};return function(I,N,P){n=P,r=P().$utils(),P.duration=function(L,k){var W=P.locale();return y(L,{$l:W},k)},P.isDuration=b;var O=N.prototype.add,_=N.prototype.subtract;N.prototype.add=function(L,k){return b(L)?R(this,L,1):O.bind(this)(L,k)},N.prototype.subtract=function(L,k){return b(L)?R(this,L,-1):_.bind(this)(L,k)};}}));})(a0)),a0.exports}var Yxe=Kxe();const Xxe=Do(Yxe);function U_(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,true)}function W_(e,t,n){var r=[],o=OM(e,r,n);return r.length<2?n:o+t(r)}var CU=function(t){var n=VB(t);n.sheet.speedy=function(l){this.isSpeedy=l;},n.compat=true;var r=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];var p=Xd(d,n.registered,void 0);return DM(n,p,false),n.key+"-"+p.name},o=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];var p=Xd(d,n.registered),g="animation-"+p.name;return U_(n,{name:p.name,styles:"@keyframes "+g+"{"+p.styles+"}"}),g},i=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];var p=Xd(d,n.registered);U_(n,p);},a=function(){for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];return W_(n.registered,r,Qxe(d))};return {css:r,cx:a,injectGlobal:i,keyframes:o,hydrate:function(u){u.forEach(function(d){n.inserted[d]=true;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:OM.bind(null,n.registered),merge:W_.bind(null,n.registered,r)}},Qxe=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case "boolean":break;case "object":{if(Array.isArray(o))i=e(o);else {i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},q_=function(t,n){var r=arguments;if(n==null||!Yp.call(n,"css"))return f.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=LM,i[1]=_M(t,n);for(var a=2;a<o;a++)i[a]=r[a];return f.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}));})(q_||(q_={}));var hA=GB(function(e,t){var n=e.styles,r=Xd([n],void 0,f.useContext(KB)),o=f.useRef();return O5(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=false,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),u!==null&&(l=true,u.setAttribute("data-emotion",i),a.hydrate([u])),o.current=[a,l],function(){a.flush();}},[t]),O5(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=false;return}if(r.next!==void 0&&DM(t,r.next,true),a.tags.length){var u=a.tags[a.tags.length-1].nextElementSibling;a.before=u,a.flush();}t.insert("",r,a,false);},[t,r.name]),null});function ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xd(t)}var lh={},qw={exports:{}},G_;function Ma(){return G_||(G_=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=true,e.exports.default=e.exports;})(qw)),qw.exports}var ch={},K_;function Zxe(){if(K_)return ch;K_=1,Object.defineProperty(ch,"__esModule",{value:true}),ch.default=void 0;const e={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:"页码"};return ch.default=e,ch}var uh={},dh={},fh={},mh={},Y_;function Jxe(){return Y_||(Y_=1,Object.defineProperty(mh,"__esModule",{value:true}),mh.commonLocale=void 0,mh.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:true}),mh}var X_;function ewe(){if(X_)return fh;X_=1,Object.defineProperty(fh,"__esModule",{value:true}),fh.default=void 0;var e=Jxe();function t(u){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(u)}function n(u,d){var m=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),m.push.apply(m,p);}return m}function r(u){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?n(Object(m),true).forEach(function(p){o(u,p,m[p]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):n(Object(m)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(m,p));});}return u}function o(u,d,m){return d=i(d),d in u?Object.defineProperty(u,d,{value:m,enumerable:true,configurable:true,writable:true}):u[d]=m,u}function i(u){var d=a(u,"string");return t(d)=="symbol"?d:String(d)}function a(u,d){if(t(u)!="object"||!u)return u;var m=u[Symbol.toPrimitive];if(m!==void 0){var p=m.call(u,d);if(t(p)!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return (d==="string"?String:Number)(u)}var l=r(r({},e.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:false});return fh.default=l,fh}var hh={},Q_;function xU(){if(Q_)return hh;Q_=1,Object.defineProperty(hh,"__esModule",{value:true}),hh.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return hh.default=e,hh}var Z_;function wU(){if(Z_)return dh;Z_=1;var e=Ma().default;Object.defineProperty(dh,"__esModule",{value:true}),dh.default=void 0;var t=e(ewe()),n=e(xU());const r={lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"],...t.default},timePickerLocale:{...n.default}};return r.lang.ok="确定",dh.default=r,dh}var J_;function twe(){if(J_)return uh;J_=1;var e=Ma().default;Object.defineProperty(uh,"__esModule",{value:true}),uh.default=void 0;var t=e(wU());return uh.default=t.default,uh}var e9;function nwe(){if(e9)return lh;e9=1;var e=Ma().default;Object.defineProperty(lh,"__esModule",{value:true}),lh.default=void 0;var t=e(Zxe()),n=e(twe()),r=e(wU()),o=e(xU());const i="${label}不是一个有效的${type}",a={locale:"zh-cn",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,global:{placeholder:"请选择",close:"关闭",sortable:"可排序"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return lh.default=a,lh}var Gw,t9;function rwe(){return t9||(t9=1,Gw=nwe()),Gw}var owe=rwe();const iwe=Do(owe),awe="--bilibili-gate--font",swe="--bilibili-gate--video-card--border-radius",$U="--bilibili-gate--primary-color",lwe="--bilibili-gate--border-color",EU="--bilibili-gate--text-color",MU="--bilibili-gate--bg",cwe="--bilibili-gate--primary-color--lv1",uwe="--bilibili-gate--primary-color--lv2",dwe="--bilibili-gate--primary-color--lv3",fwe="--bilibili-gate--bg--lv1",mwe="--bilibili-gate--bg--lv2",hwe="--bilibili-gate--bg--lv3",pwe="#ff6699",gwe='"Alibaba PuHuiTi 3.0", "PingFang SC", "HarmonyOS_Regular", "Helvetica Neue", "Microsoft YaHei", sans-serif',RU="var(--custom-font-family--options--font-family, var(--bilibili-gate--font))",vwe="bilibili-gate-root",TU="bilibili-gate-using-dark",AU="bilibili-gate-using-light",NU="html.bilibili-gate-using-dark",bwe="html.bilibili-gate-using-light",js={appCustomFontId:awe,appVideoCardBorderRadiusId:swe,appPrimaryColorId:$U,appBorderColorId:lwe,appTextColorId:EU,appBgId:MU,appPrimaryColorLv1Id:cwe,appPrimaryColorLv2Id:uwe,appPrimaryColorLv3Id:dwe,appBgLv1Id:fwe,appBgLv2Id:mwe,appBgLv3Id:hwe,biliPink:pwe,appCustomFontValue:gwe,appUsingFont:RU,appClsRoot:vwe,appClsDark:TU,appClsLight:AU,appClsDarkSelector:NU,appClsLightSelector:bwe},n9=so.extend("utility:dom"),PU=10*1e3,IU=200;async function Xf(e,t){const n=t?.interval??IU;let r=t?.timeout??PU;r===0&&(r=1/0);const o=t?.validate??(m=>!Va(m)),i=t?.abortSignal,a=performance.now();let l=e();const u=new Oo;i?.addEventListener("abort",()=>{u.emit("abort");});const d=()=>performance.now()-a<r;for(;!o(l)&&d()&&!i?.aborted;){const m=gn(n),p=u.once("abort");await Promise.race([m,p]),p.off(),l=e();}return l}async function I1(e,t,n){const r=n?.pollTimeout??PU,o=n?.pollInterval??IU,i=n?.selectorPredicate,a=n?.warnOnTimeout??false,l=await Xf(()=>{let u=Array.from(document.querySelectorAll(e));if(i&&(u=u.filter(i)),u.length)return u},{timeout:r,interval:o});if(!l?.length){n9("tryAction: timeout for selector = `%s`",e),a&&Xo("tryAction timeout, selector = `%s`",e);return}n9("tryAction: selector=`%s` count=%s",e,l.length);for(const u of l)await Promise.resolve(t(u));}async function Gh(e,t,n){return I1(e,r=>r.remove(),{selectorPredicate:t,warnOnTimeout:false})}function Us(){const e=document.activeElement?.tagName?.toLowerCase()??"";return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}function ywe(e,t){t??=e.getBoundingClientRect();const n=document.documentElement;return {top:t.top+window.scrollY-n.clientTop,left:t.left+window.scrollX-n.clientLeft}}function O1(e){return new Promise(t=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>t(),e):setTimeout(t);})}let Kw="";function pA(e){Kw||(Kw=document.title),document.title=`${e} - ${Kw}`;}function z3(...e){return e.map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith(".")?t:`.${t}`).join(",")}const Ip={Evolved:{getDetectEl:()=>document.body,detect:e=>e.classList.contains("dark"),trigger:'.custom-navbar-item[role="listitem"][data-name="darkMode"]',triggerInner:'.navbar-dark-mode[item="darkMode"]'},Bili:{getDetectEl:()=>document.documentElement,detect:e=>e.classList.contains("bili_dark"),isTrigger:e=>{const t=e.closest(".avatar-panel-popover a.single-link-item");return t?!!Array.from(t.querySelectorAll(".link-title span")).find(n=>["深色","浅色"].includes(n.textContent||"")):false}}},r9=e=>{const t=e.getDetectEl();return t?e.detect(t):false},wf=ac(()=>r9(Ip.Bili)||r9(Ip.Evolved)||document.body.classList.contains("bilibili-helper-dark-mode")||document.documentElement.classList.contains("dark"));function D1(){return wf.use()}const OU=()=>{document.documentElement.classList.toggle(TU,wf.get()),document.documentElement.classList.toggle(AU,!wf.get());};OU();Qa(wf.state,OU);const gA=new MutationObserver(async()=>{await gn(0),wf.updateThrottled();});gA.observe(document.body,{attributes:true,attributeFilter:["class"]});gA.observe(document.documentElement,{attributes:true,attributeFilter:["data-darkreader-scheme"]});Swe();async function Swe(){const e=await Xf(Ip.Bili.getDetectEl);e&&gA.observe(e,{attributes:true});}document.addEventListener("click",Cwe,{passive:true});async function Cwe(e){const t=e.target;(Ip.Bili.isTrigger(t)||t.closest(Ip.Evolved.trigger))&&(await gn(0),wf.updateThrottled());}const xwe=so.extend("components:css-vars");xwe(":export = %O",js);const uc=e=>(e.startsWith("--")||(e=`--${e}`),`var(${e})`),vA=uc(js.appVideoCardBorderRadiusId),xa=uc(js.appPrimaryColorId),DU=uc(js.appBorderColorId);uc(js.appTextColorId);const k3=uc(js.appBgId),yy=uc(js.appBgLv1Id),wwe=uc(js.appBgLv2Id);uc(js.appBgLv3Id);const Qf={name:"rmyi3a",styles:"color:var(--ant-button-default-hover-color);border-color:var(--ant-button-default-hover-border-color);background:var(--ant-button-default-hover-bg)"};function $we(){return ay.useToken().token.colorPrimaryHover}function Zf(){const{popoverBorderColorUseColorPrimary:e}=yt(st.style.general),t=$we();return e?t:DU}function Ewe(){const e=Zf();return f.useMemo(()=>({border:`1px solid ${e}`}),[e])}function Mwe(){const{colorLink:e,colorLinkActive:t,colorLinkHover:n}=ay.useToken().token;return f.useMemo(()=>ln("color:",e,";&:visited{color:",e,";}&:hover{color:",n,";}&:active{color:",t,";}",""),[e,t,n])}const _U=`${ao}--use-ant-link-color`;function Rwe(){const e=Mwe();return ln(":root .",_U,"{",e,";}","")}var Twe=function(e){return function(t,n){var r=f.useRef(false);e(function(){return function(){r.current=false;}},[]),e(function(){if(!r.current)r.current=true;else return t()},n);}},F3=function(e,t){return F3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r;}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);},F3(e,t)};function LU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");F3(e,t);function n(){this.constructor=e;}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n);}var pi=function(){return pi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},pi.apply(this,arguments)};function _1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function BU(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function zU(e,t){return function(n,r){t(n,r,e);}}function kU(e,t,n,r,o,i){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var l=r.kind,u=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,m=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),p,g=false,b=n.length-1;b>=0;b--){var y={};for(var S in r)y[S]=S==="access"?{}:r[S];for(var S in r.access)y.access[S]=r.access[S];y.addInitializer=function(w){if(g)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(w||null));};var C=(0, n[b])(l==="accessor"?{get:m.get,set:m.set}:m[u],y);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(p=a(C.get))&&(m.get=p),(p=a(C.set))&&(m.set=p),(p=a(C.init))&&o.unshift(p);}else (p=a(C))&&(l==="field"?o.unshift(p):m[u]=p);}d&&Object.defineProperty(d,r.name,m),g=true;}function FU(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function HU(e){return typeof e=="symbol"?e:"".concat(e)}function VU(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})}function jU(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function L1(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i);})}return new(n||(n=Promise))(function(i,a){function l(m){try{d(r.next(m));}catch(p){a(p);}}function u(m){try{d(r.throw(m));}catch(p){a(p);}}function d(m){m.done?i(m.value):o(m.value).then(l,u);}d((r=r.apply(e,t||[])).next());})}function B1(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(d){return function(m){return u([d,m])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(i=d[0]&2?o.return:d[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,d[1])).done)return i;switch(o=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){n.label=d[1];break}if(d[0]===6&&n.label<i[1]){n.label=i[1],i=d;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(d);break}i[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n);}catch(m){d=[6,m],o=0;}finally{r=i=0;}if(d[0]&5)throw d[1];return {value:d[0]?d[1]:void 0,done:true}}}var z1=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:true,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];});function UU(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&z1(t,e,n);}function Cu(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(l){a={error:l};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function WU(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Jn(arguments[t]));return e}function qU(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function Nr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function $f(e){return this instanceof $f?(this.v=e,this):new $f(e)}function GU(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(b){return function(y){return Promise.resolve(y).then(b,p)}}function l(b,y){r[b]&&(o[b]=function(S){return new Promise(function(C,w){i.push([b,S,C,w])>1||u(b,S);})},y&&(o[b]=y(o[b])));}function u(b,y){try{d(r[b](y));}catch(S){g(i[0][3],S);}}function d(b){b.value instanceof $f?Promise.resolve(b.value.v).then(m,p):g(i[0][2],b);}function m(b){u("next",b);}function p(b){u("throw",b);}function g(b,y){b(y),i.shift(),i.length&&u(i[0][0],i[0][1]);}}function KU(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(a){return (n=!n)?{value:$f(e[o](a)),done:false}:i?i(a):a}:i;}}function YU(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Cu=="function"?Cu(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(a){return new Promise(function(l,u){a=e[i](a),o(l,u,a.done,a.value);})};}function o(i,a,l,u){Promise.resolve(u).then(function(d){i({value:d,done:l});},a);}}function XU(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Awe=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t});}):function(e,t){e.default=t;},H3=function(e){return H3=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},H3(e)};function QU(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=H3(e),r=0;r<n.length;r++)n[r]!=="default"&&z1(t,e,n[r]);return Awe(t,e),t}function ZU(e){return e&&e.__esModule?e:{default:e}}function JU(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function eW(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function tW(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function nW(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose];}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r);}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this);}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n});}else n&&e.stack.push({async:true});return t}var Nwe=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function rW(e){function t(i){e.error=e.hasError?new Nwe(i,e.error,"An error was suppressed during disposal."):i,e.hasError=true;}var n,r=0;function o(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else r|=1;}catch(a){t(a);}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function oW(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,o,i,a){return r?t?".jsx":".js":o&&(!i||!a)?n:o+i+"."+a.toLowerCase()+"js"}):e}const Pwe={__extends:LU,__assign:pi,__rest:_1,__decorate:BU,__param:zU,__esDecorate:kU,__runInitializers:FU,__propKey:HU,__setFunctionName:VU,__metadata:jU,__awaiter:L1,__generator:B1,__createBinding:z1,__exportStar:UU,__values:Cu,__read:Jn,__spread:WU,__spreadArrays:qU,__spreadArray:Nr,__await:$f,__asyncGenerator:GU,__asyncDelegator:KU,__asyncValues:YU,__makeTemplateObject:XU,__importStar:QU,__importDefault:ZU,__classPrivateFieldGet:JU,__classPrivateFieldSet:eW,__classPrivateFieldIn:tW,__addDisposableResource:nW,__disposeResources:rW,__rewriteRelativeImportExtension:oW},Iwe=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:nW,get __assign(){return pi},__asyncDelegator:KU,__asyncGenerator:GU,__asyncValues:YU,__await:$f,__awaiter:L1,__classPrivateFieldGet:JU,__classPrivateFieldIn:tW,__classPrivateFieldSet:eW,__createBinding:z1,__decorate:BU,__disposeResources:rW,__esDecorate:kU,__exportStar:UU,__extends:LU,__generator:B1,__importDefault:ZU,__importStar:QU,__makeTemplateObject:XU,__metadata:jU,__param:zU,__propKey:HU,__read:Jn,__rest:_1,__rewriteRelativeImportExtension:oW,__runInitializers:FU,__setFunctionName:VU,__spread:WU,__spreadArray:Nr,__spreadArrays:qU,__values:Cu,default:Pwe},Symbol.toStringTag,{value:"Module"}));var bA=function(e){return typeof e=="function"},Owe=function(e){return typeof e=="string"},iW=function(e){return typeof e=="number"},tt=function(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var n=f.useRef(void 0);return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current};const Is=Twe(f.useEffect);var aW=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?true:r,i=t.defaultParams,a=i===void 0?[]:i,l=t.refreshDeps,u=l===void 0?[]:l,d=t.refreshDepsAction,m=f.useRef(false);return m.current=false,Is(function(){!n&&o&&(m.current=true,e.run.apply(e,Nr([],Jn(a),false)));},[o]),Is(function(){m.current||n||(m.current=true,d?d():e.refresh());},Nr([],Jn(u),false)),{onBefore:function(){if(!o)return {stopNow:true}}}};aW.onInit=function(e){var t=e.ready,n=t===void 0?true:t,r=e.manual;return {loading:!r&&n}};function V3(e,t){if(e===t)return  true;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return  false;return  true}var k1=function(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:false}).current;return (n.initialized===false||!V3(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=true),n.obj};function xu(e){var t=f.useRef(e);return t.current=e,t}var Jf=function(e){var t=xu(e);f.useEffect(function(){return function(){t.current();}},[]);},s0=new Map,Dwe=function(e,t,n){var r=s0.get(e);r?.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){s0.delete(e);},t)),s0.set(e,pi(pi({},n),{timer:o}));},_we=function(e){return s0.get(e)},l0=new Map,Lwe=function(e){return l0.get(e)},Bwe=function(e,t){l0.set(e,t),t.then(function(n){return l0.delete(e),n}).catch(function(){l0.delete(e);});},Wc={},zwe=function(e,t){Wc[e]&&Wc[e].forEach(function(n){return n(t)});},Yw=function(e,t){return Wc[e]||(Wc[e]=[]),Wc[e].push(t),function(){var r=Wc[e].indexOf(t);Wc[e].splice(r,1);}},kwe=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?300*1e3:r,i=t.staleTime,a=i===void 0?0:i,l=t.setCache,u=t.getCache,d=f.useRef(void 0),m=f.useRef(void 0),p=function(b,y){l?l(y):Dwe(b,o,y),zwe(b,y.data);},g=function(b,y){return y===void 0&&(y=[]),u?u(y):_we(b)};return k1(function(){if(n){var b=g(n);b&&Object.hasOwnProperty.call(b,"data")&&(e.state.data=b.data,e.state.params=b.params,(a===-1||Date.now()-b.time<=a)&&(e.state.loading=false)),d.current=Yw(n,function(y){e.setState({data:y});});}},[]),Jf(function(){var b;(b=d.current)===null||b===void 0||b.call(d);}),n?{onBefore:function(b){var y=g(n,b);return !y||!Object.hasOwnProperty.call(y,"data")?{}:a===-1||Date.now()-y.time<=a?{loading:false,data:y?.data,error:void 0,returnNow:true}:{data:y?.data,error:void 0}},onRequest:function(b,y){var S=Lwe(n);return S&&S!==m.current?{servicePromise:S}:(S=b.apply(void 0,Nr([],Jn(y),false)),m.current=S,Bwe(n,S),{servicePromise:S})},onSuccess:function(b,y){var S;n&&((S=d.current)===null||S===void 0||S.call(d),p(n,{data:b,params:y,time:Date.now()}),d.current=Yw(n,function(C){e.setState({data:C});}));},onMutate:function(b){var y;n&&((y=d.current)===null||y===void 0||y.call(d),p(n,{data:b,params:e.state.params,time:Date.now()}),d.current=Yw(n,function(S){e.setState({data:S});}));}}:{}},Xw,o9;function yA(){if(o9)return Xw;o9=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Xw=e,Xw}var Qw,i9;function Fwe(){if(i9)return Qw;i9=1;var e=typeof Kv=="object"&&Kv&&Kv.Object===Object&&Kv;return Qw=e,Qw}var Zw,a9;function sW(){if(a9)return Zw;a9=1;var e=Fwe(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Zw=n,Zw}var Jw,s9;function Hwe(){if(s9)return Jw;s9=1;var e=sW(),t=function(){return e.Date.now()};return Jw=t,Jw}var e$,l9;function Vwe(){if(l9)return e$;l9=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return e$=t,e$}var t$,c9;function jwe(){if(c9)return t$;c9=1;var e=Vwe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return t$=n,t$}var n$,u9;function lW(){if(u9)return n$;u9=1;var e=sW(),t=e.Symbol;return n$=t,n$}var r$,d9;function Uwe(){if(d9)return r$;d9=1;var e=lW(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(a){var l=n.call(a,o),u=a[o];try{a[o]=void 0;var d=!0;}catch{}var m=r.call(a);return d&&(l?a[o]=u:delete a[o]),m}return r$=i,r$}var o$,f9;function Wwe(){if(f9)return o$;f9=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return o$=n,o$}var i$,m9;function qwe(){if(m9)return i$;m9=1;var e=lW(),t=Uwe(),n=Wwe(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(l){return l==null?l===void 0?o:r:i&&i in Object(l)?t(l):n(l)}return i$=a,i$}var a$,h9;function Gwe(){if(h9)return a$;h9=1;function e(t){return t!=null&&typeof t=="object"}return a$=e,a$}var s$,p9;function Kwe(){if(p9)return s$;p9=1;var e=qwe(),t=Gwe(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return s$=r,s$}var l$,g9;function Ywe(){if(g9)return l$;g9=1;var e=jwe(),t=yA(),n=Kwe(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;function u(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m;}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=i.test(d);return p||a.test(d)?l(d.slice(2),p?2:8):o.test(d)?r:+d}return l$=u,l$}var c$,v9;function cW(){if(v9)return c$;v9=1;var e=yA(),t=Hwe(),n=Ywe(),r="Expected a function",o=Math.max,i=Math.min;function a(l,u,d){var m,p,g,b,y,S,C=0,w=false,$=false,E=true;if(typeof l!="function")throw new TypeError(r);u=n(u)||0,e(d)&&(w=!!d.leading,$="maxWait"in d,g=$?o(n(d.maxWait)||0,u):g,E="trailing"in d?!!d.trailing:E);function T(W){var q=m,F=p;return m=p=void 0,C=W,b=l.apply(F,q),b}function R(W){return C=W,y=setTimeout(P,u),w?T(W):b}function I(W){var q=W-S,F=W-C,z=u-q;return $?i(z,g-F):z}function N(W){var q=W-S,F=W-C;return S===void 0||q>=u||q<0||$&&F>=g}function P(){var W=t();if(N(W))return O(W);y=setTimeout(P,I(W));}function O(W){return y=void 0,E&&m?T(W):(m=p=void 0,b)}function _(){y!==void 0&&clearTimeout(y),C=0,m=S=p=y=void 0;}function L(){return y===void 0?b:O(t())}function k(){var W=t(),q=N(W);if(m=arguments,p=this,S=W,q){if(y===void 0)return R(S);if($)return clearTimeout(y),y=setTimeout(P,u),T(S)}return y===void 0&&(y=setTimeout(P,u)),b}return k.cancel=_,k.flush=L,k}return c$=a,c$}var Xwe=cW();const Qwe=Do(Xwe);var Zwe=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=f.useRef(void 0),l=f.useMemo(function(){var u={};return r!==void 0&&(u.leading=r),o!==void 0&&(u.trailing=o),i!==void 0&&(u.maxWait=i),u},[r,o,i]);return f.useEffect(function(){if(n){var u=e.runAsync.bind(e);return a.current=Qwe(function(d){d();},n,l),e.runAsync=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new Promise(function(p,g){var b;(b=a.current)===null||b===void 0||b.call(a,function(){u.apply(void 0,Nr([],Jn(d),false)).then(p).catch(g);});})},function(){var d;(d=a.current)===null||d===void 0||d.cancel(),e.runAsync=u;}}},[n,l]),n?{onCancel:function(){var u;(u=a.current)===null||u===void 0||u.cancel();}}:{}},Jwe=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.useRef(void 0);if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==false&&(o.current=setTimeout(function(){e.setState({loading:true});},n)),{loading:false}},onFinally:function(){i();},onCancel:function(){i();}}},wg=!!(typeof window<"u"&&window.document&&window.document.createElement);function SA(){return wg?document.visibilityState!=="hidden":true}var c0=new Set;function e$e(e){return c0.add(e),function(){c0.has(e)&&c0.delete(e);}}if(wg){var t$e=function(){SA()&&c0.forEach(function(e){return e()});};window.addEventListener("visibilitychange",t$e,false);}var n$e=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?true:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,l=f.useRef(void 0),u=f.useRef(void 0),d=f.useRef(0),m=function(){var p;l.current&&clearTimeout(l.current),(p=u.current)===null||p===void 0||p.call(u);};return Is(function(){n||m();},[n]),n?{onBefore:function(){m();},onError:function(){d.current+=1;},onSuccess:function(){d.current=0;},onFinally:function(){a===-1||a!==-1&&d.current<=a?l.current=setTimeout(function(){!o&&!SA()?u.current=e$e(function(){e.refresh();}):e.refresh();},n):d.current=0;},onCancel:function(){m();}}:{}};function r$e(e,t){var n=false;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=true,e.apply(void 0,Nr([],Jn(r),false)),setTimeout(function(){n=false;},t));}}var o$e=function(){return wg&&typeof navigator.onLine<"u"?navigator.onLine:true},u0=new Set;function i$e(e){return u0.add(e),function(){u0.has(e)&&u0.delete(e);}}if(wg){var b9=function(){!SA()||!o$e()||u0.forEach(function(e){return e()});};window.addEventListener("visibilitychange",b9,false),window.addEventListener("focus",b9,false);}var a$e=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=f.useRef(void 0),a=function(){var l;(l=i.current)===null||l===void 0||l.call(i);};return f.useEffect(function(){if(n){var l=r$e(e.refresh.bind(e),o);i.current=i$e(function(){l();});}return function(){a();}},[n,o]),Jf(function(){a();}),{}},s$e=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(void 0),i=f.useRef(0),a=f.useRef(false);return r?{onBefore:function(){a.current||(i.current=0),a.current=false,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var l=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=true,e.refresh();},l);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}},u$,y9;function l$e(){if(y9)return u$;y9=1;var e=cW(),t=yA(),n="Expected a function";function r(o,i,a){var l=true,u=true;if(typeof o!="function")throw new TypeError(n);return t(a)&&(l="leading"in a?!!a.leading:l,u="trailing"in a?!!a.trailing:u),e(o,i,{leading:l,maxWait:i,trailing:u})}return u$=r,u$}var c$e=l$e();const u$e=Do(c$e);var d$e=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=f.useRef(void 0),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=u$e(function(u){u();},n,a),e.runAsync=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new Promise(function(m,p){var g;(g=i.current)===null||g===void 0||g.call(i,function(){l.apply(void 0,Nr([],Jn(u),false)).then(m).catch(p);});})},function(){var u;e.runAsync=l,(u=i.current)===null||u===void 0||u.cancel();}}},[n,r,o]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}},io=function(e){f.useEffect(function(){var t=e?.();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[]);},f$e=function(){var e=Jn(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])},m$e=(function(){function e(t,n,r,o){o===void 0&&(o={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=o,this.pluginImpls=[],this.count=0,this.state={loading:false,params:void 0,data:void 0,error:void 0},this.state=pi(pi(pi({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=pi(pi({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,Nr([i],Jn(n),false))}).filter(Boolean);return Object.assign.apply(Object,Nr([{}],Jn(o),false))},e.prototype.runAsync=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return L1(this,void 0,void 0,function(){var r,o,i,a,l,u,d,m,p,g,b,y,S,C,w,$,E,T,R,I,N;return B1(this,function(P){switch(P.label){case 0:if(this.count+=1,r=this.count,o=this.runPluginHandler("onBefore",t),i=o.stopNow,a=i===void 0?false:i,l=o.returnNow,u=l===void 0?false:l,d=_1(o,["stopNow","returnNow"]),a)return [2,new Promise(function(){})];if(this.setState(pi({loading:true,params:t},d)),u)return [2,Promise.resolve(d.data)];(S=(y=this.options).onBefore)===null||S===void 0||S.call(y,t),P.label=1;case 1:return P.trys.push([1,3,,4]),m=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,m||(m=(b=this.serviceRef).current.apply(b,Nr([],Jn(t),false))),[4,m];case 2:return p=P.sent(),r!==this.count?[2,new Promise(function(){})]:(this.setState({data:p,error:void 0,loading:false}),(w=(C=this.options).onSuccess)===null||w===void 0||w.call(C,p,t),this.runPluginHandler("onSuccess",p,t),(E=($=this.options).onFinally)===null||E===void 0||E.call($,t,p,void 0),r===this.count&&this.runPluginHandler("onFinally",t,p,void 0),[2,p]);case 3:if(g=P.sent(),r!==this.count)return [2,new Promise(function(){})];throw this.setState({error:g,loading:false}),(R=(T=this.options).onError)===null||R===void 0||R.call(T,g,t),this.runPluginHandler("onError",g,t),(N=(I=this.options).onFinally)===null||N===void 0||N.call(I,t,void 0,g),r===this.count&&this.runPluginHandler("onFinally",t,void 0,g),g;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,Nr([],Jn(n),false)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:false}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,Nr([],Jn(this.state.params||[]),false));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Nr([],Jn(this.state.params||[]),false))},e.prototype.mutate=function(t){var n=bA(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e})();function h$e(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?false:r,i=t.ready,a=i===void 0?true:i,l=_1(t,["manual","ready"]),u=pi({manual:o,ready:a},l),d=xu(e),m=f$e(),p=k1(function(){var g=n.map(function(b){var y;return (y=b?.onInit)===null||y===void 0?void 0:y.call(b,u)}).filter(Boolean);return new m$e(d,u,m,Object.assign.apply(Object,Nr([{}],Jn(g),false)))},[]);return p.options=u,p.pluginImpls=n.map(function(g){return g(p,u)}),io(function(){if(!o&&a){var g=p.state.params||t.defaultParams||[];p.run.apply(p,Nr([],Jn(g),false));}}),Jf(function(){p.cancel();}),{loading:p.state.loading,data:p.state.data,error:p.state.error,params:p.state.params||[],cancel:tt(p.cancel.bind(p)),refresh:tt(p.refresh.bind(p)),refreshAsync:tt(p.refreshAsync.bind(p)),run:tt(p.run.bind(p)),runAsync:tt(p.runAsync.bind(p)),mutate:tt(p.mutate.bind(p))}}function ga(e,t,n){return h$e(e,t,Nr(Nr([],Jn([]),false),[Zwe,Jwe,n$e,a$e,d$e,aW,kwe,s$e],false))}function uW(e,t){e===void 0&&(e=false);var n=Jn(f.useState(e),2),r=n[0],o=n[1],i=f.useMemo(function(){var a=!e,l=function(){return o(function(p){return p===e?a:e})},u=function(p){return o(p)},d=function(){return o(e)},m=function(){return o(a)};return {toggle:l,set:u,setLeft:d,setRight:m}},[]);return [r,i]}function p$e(e){var t=Jn(uW(false),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=f.useMemo(function(){var l=function(){return i(true)},u=function(){return i(false)};return {toggle:o,set:function(d){return i(!!d)},setTrue:l,setFalse:u}},[]);return [n,a]}function em(e,t){if(wg){if(!e)return t;var n;return bA(e)?n=e():"current"in e?n=e.current:n=e,n}}var g$e=function(e){return e.every(function(t){var n=em(t);return n?n.getRootNode()instanceof ShadowRoot:false})},v$e=function(e){return e?e.getRootNode():document},b$e=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return g$e(t)?v$e(em(t[0])):document},y$e=function(e){var t=function(n,r,o){var i=f.useRef(false),a=f.useRef([]),l=f.useRef([]),u=f.useRef(void 0);e(function(){var d,m=Array.isArray(o)?o:[o],p=m.map(function(g){return em(g)});if(!i.current){i.current=true,a.current=p,l.current=r,u.current=n();return}(p.length!==a.current.length||!V3(a.current,p)||!V3(l.current,r))&&((d=u.current)===null||d===void 0||d.call(u),a.current=p,l.current=r,u.current=n());}),Jf(function(){var d;(d=u.current)===null||d===void 0||d.call(u),i.current=false;});};return t},CA=y$e(f.useEffect);function S$e(e,t,n){n===void 0&&(n="click");var r=xu(e);CA(function(){var o=function(l){var u=Array.isArray(t)?t:[t];u.some(function(d){var m=em(d);return !m||m.contains(l.target)})||r.current(l);},i=b$e(t),a=Array.isArray(n)?n:[n];return a.forEach(function(l){return i.addEventListener(l,o)}),function(){a.forEach(function(l){return i.removeEventListener(l,o)});}},Array.isArray(n)?n:[n],t);}var d$,S9;function dW(){if(S9)return d$;S9=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(i,a){if(i===a)return  true;if(i&&a&&typeof i=="object"&&typeof a=="object"){if(i.constructor!==a.constructor)return  false;var l,u,d;if(Array.isArray(i)){if(l=i.length,l!=a.length)return  false;for(u=l;u--!==0;)if(!o(i[u],a[u]))return  false;return  true}var m;if(t&&i instanceof Map&&a instanceof Map){if(i.size!==a.size)return  false;for(m=i.entries();!(u=m.next()).done;)if(!a.has(u.value[0]))return  false;for(m=i.entries();!(u=m.next()).done;)if(!o(u.value[1],a.get(u.value[0])))return  false;return  true}if(n&&i instanceof Set&&a instanceof Set){if(i.size!==a.size)return  false;for(m=i.entries();!(u=m.next()).done;)if(!a.has(u.value[0]))return  false;return  true}if(r&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(a)){if(l=i.length,l!=a.length)return  false;for(u=l;u--!==0;)if(i[u]!==a[u])return  false;return  true}if(i.constructor===RegExp)return i.source===a.source&&i.flags===a.flags;if(i.valueOf!==Object.prototype.valueOf&&typeof i.valueOf=="function"&&typeof a.valueOf=="function")return i.valueOf()===a.valueOf();if(i.toString!==Object.prototype.toString&&typeof i.toString=="function"&&typeof a.toString=="function")return i.toString()===a.toString();if(d=Object.keys(i),l=d.length,l!==Object.keys(a).length)return  false;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(a,d[u]))return  false;if(e&&i instanceof Element)return  false;for(u=l;u--!==0;)if(!((d[u]==="_owner"||d[u]==="__v"||d[u]==="__o")&&i.$$typeof)&&!o(i[d[u]],a[d[u]]))return  false;return  true}return i!==i&&a!==a}return d$=function(a,l){try{return o(a,l)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),false;throw u}},d$}var C$e=dW();const x$e=Do(C$e);var w$e=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),x$e(e,t)};function va(e,t,n){n===void 0&&(n={});var r=n.enable,o=r===void 0?true:r,i=xu(t);CA(function(){if(o){var a=em(n.target,window);if(a?.addEventListener){var l=function(d){return i.current(d)},u=Array.isArray(e)?e:[e];return u.forEach(function(d){a.addEventListener(d,l,{capture:n.capture,once:n.once,passive:n.passive});}),function(){u.forEach(function(d){a.removeEventListener(d,l,{capture:n.capture});});}}}},[e,n.capture,n.once,n.passive,o],n.target);}const F1=(function(e,t){var n={},r=n.onEnter,o=n.onLeave,i=n.onChange,a=Jn(p$e(),2),l=a[0],u=a[1],d=u.setTrue,m=u.setFalse;return va("mouseenter",function(){r?.(),d(),i?.(true);},{target:e}),va("mouseleave",function(){o?.(),m(),i?.(false);},{target:e}),l});var $$e=function(e,t,n){var r=f.useRef(void 0),o=f.useRef(0);w$e(t,r.current)||(o.current+=1),r.current=t,CA(e,[o.current],n);},E$e=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator?.platform:""),fW={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:E$e?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},j3={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?fW.meta.includes(e.keyCode):e.metaKey}};function mW(e){return Owe(e)||iW(e)}function M$e(e){var t=Object.keys(j3).reduce(function(n,r){return j3[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function C9(e,t,n){var r,o;if(!e.key)return  false;if(iW(t))return e.keyCode===t?t:false;var i=t.split("."),a=0;try{for(var l=Cu(i),u=l.next();!u.done;u=l.next()){var d=u.value,m=j3[d],p=fW[d.toLowerCase()];(m&&m(e)||p&&p===e.keyCode)&&a++;}}catch(g){r={error:g};}finally{try{u&&!u.done&&(o=l.return)&&o.call(l);}finally{if(r)throw r.error}}return n?a===i.length&&M$e(e)===i.length?t:false:a===i.length?t:false}function R$e(e,t){return bA(e)?e:mW(e)?function(n){return C9(n,e,t)}:Array.isArray(e)?function(n){return e.find(function(r){return C9(n,r,t)})}:function(){return !!e}}var T$e=["keydown"];function ua(e,t,n){var r=n||{},o=r.events,i=o===void 0?T$e:o,a=r.target,l=r.exactMatch,u=l===void 0?false:l,d=r.useCapture,m=d===void 0?false:d,p=xu(t),g=xu(e);$$e(function(){var b,y,S,C=em(a,window);if(C){var w=function(R){var I,N=R,P=R$e(g.current,u),O=P(N),_=mW(O)?O:N.key;if(O)return (I=p.current)===null||I===void 0?void 0:I.call(p,N,_)};try{for(var $=Cu(i),E=$.next();!E.done;E=$.next()){var T=E.value;(S=C?.addEventListener)===null||S===void 0||S.call(C,T,w,m);}}catch(R){b={error:R};}finally{try{E&&!E.done&&(y=$.return)&&y.call($);}finally{if(b)throw b.error}}return function(){var R,I,N;try{for(var P=Cu(i),O=P.next();!O.done;O=P.next()){var _=O.value;(N=C?.removeEventListener)===null||N===void 0||N.call(C,_,w,m);}}catch(L){R={error:L};}finally{try{O&&!O.done&&(I=P.return)&&I.call(P);}finally{if(R)throw R.error}}}}},[i],a);}function H1(e){var t=this,n=f.useRef(false);return f.useCallback(function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return L1(t,void 0,void 0,function(){var i,a;return B1(this,function(l){switch(l.label){case 0:if(n.current)return [2];n.current=true,l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,e.apply(void 0,Nr([],Jn(r),false))];case 2:return i=l.sent(),[2,i];case 3:throw a=l.sent(),a;case 4:return n.current=false,[7];case 5:return [2]}})})},[e])}function x9(e){var t=f.useRef(0),n=Jn(f.useState(e),2),r=n[0],o=n[1],i=f.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return Jf(function(){cancelAnimationFrame(t.current);}),[r,i]}var A$e=function(e,t){return !Object.is(e,t)};function xA(e,t){t===void 0&&(t=A$e);var n=f.useRef(void 0),r=f.useRef(void 0);return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var hW=function(){var e=f.useRef(false);return f.useEffect(function(){return e.current=false,function(){e.current=true;}},[]),e};const N$e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"})]}),P$e=f.forwardRef(N$e),Io={modalMask:X("fixed inset-0 flex items-center justify-center bg-black/50",qCe),modal:"max-h-[calc(90vh-50px)] w-500px flex flex-col overflow-hidden b-1px b-transparent rounded-10px b-solid bg-gate-bg px-15px pb-15px text-gate-text dark:b-gate-border",modalHeader:"flex items-center justify-between border-b-0 py-10px",modalTitle:"mb-0 flex items-center text-[1.5rem] line-height-1.5",modalBody:"flex-grow-1 overflow-y-auto pt-0"},pW=`${ao}-modal-visible`,I$e=ln("body:has(.",pW,"){overflow-y:hidden;}","");function $g({show:e,onHide:t,children:n,clsModalMask:r,clsModal:o,width:i,hideWhenMaskOnClick:a=false,hideWhenEsc:l=false}){const u=f.useRef(null),d=tt(g=>{const b=g.target;if(u.current?.contains(b))return;const y=['.ant-tooltip-container[role="tooltip"]','.ant-popover-container[role="tooltip"]',".ant-select-dropdown"];b.closest(y.join(","))||a&&t();});ua("esc",g=>{e&&l&&(g.preventDefault(),g.stopImmediatePropagation(),setTimeout(t));},{exactMatch:true});const m=ur(Io.modalMask,r),p=ur(Io.modal,o);return e?Mo.createPortal(x("div",{className:X($a,{[pW]:e}),"data-role":"base-modal",children:x("div",{className:m,onClick:d,children:x("div",{className:p,style:{width:i},ref:u,children:n})})}),document.body):null}const Eg=({className:e,...t})=>{const n=ur("ml-10px size-24px cursor-pointer transition-duration-150 transition-ease transition-property-transform hover:rotate-90 hover:scale-105%",e);return x(P$e,{...t,className:n})};let ho=(function(e){return e.Lavender="#e6e6fa",e.Thistle="#d8bfd8",e.Plum="#dda0dd",e.Mauve="#e0b0ff",e.Wisteria="#c9a0dc",e.Orchid="#da70d6",e.MediumOrchid="#ba55d3",e.MediumPurple="#9370db",e.Amethyst="#9966cc",e.BlueViolet="#8a2be2",e.Purple="#800080",e.Violet="#8f00ff",e.Magenta="#ff00ff",e.Grape="#6f2da8",e.Indigo="#4b0082",e.Eggplant="#301934",e})({});const O$e=[{name:"Lavender",nameZh:"薰衣草",hex:ho.Lavender,desc:"淡紫偏粉"},{name:"Thistle",nameZh:"蓟紫色",hex:ho.Thistle,desc:"带灰调"},{name:"Plum",nameZh:"李子紫",hex:ho.Plum,desc:"柔和温暖"},{name:"Mauve",nameZh:"淡紫色",hex:ho.Mauve,desc:"烟粉色调"},{name:"Wisteria",nameZh:"紫藤色",hex:ho.Wisteria,desc:"温柔浅紫"},{name:"Orchid",nameZh:"兰花紫",hex:ho.Orchid,desc:"偏红亮紫"},{name:"Medium Orchid",nameZh:"中兰花紫",hex:ho.MediumOrchid,desc:"稍深更艳"},{name:"Medium Purple",nameZh:"中紫色",hex:ho.MediumPurple,desc:"柔和略蓝"},{name:"Amethyst",nameZh:"紫水晶色",hex:ho.Amethyst,desc:"经典冷紫"},{name:"Blue Violet",nameZh:"蓝紫色",hex:ho.BlueViolet,desc:"较冷"},{name:"Purple",nameZh:"标准紫色",hex:ho.Purple,desc:"饱和且暗"},{name:"Violet",nameZh:"紫罗兰",hex:ho.Violet,desc:"更偏蓝光谱"},{name:"Magenta",nameZh:"洋红色",hex:ho.Magenta,desc:"红紫交界"},{name:"Grape",nameZh:"葡萄紫",hex:ho.Grape,desc:"饱和深紫"},{name:"Indigo",nameZh:"靛青色",hex:ho.Indigo,desc:"蓝紫之间"},{name:"Eggplant",nameZh:"茄子紫",hex:ho.Eggplant,desc:"极深紫红"}],D$e=[{id:"green",name:"绿意盎然",isDark:false,isCustom:false,colorPrimary:"rgb(77, 175, 124)",colorTheme:"rgb(77, 175, 124)"},{id:"blue",name:"蓝田生玉",isDark:false,isCustom:false,colorPrimary:"rgb(52, 152, 219)",colorTheme:"rgb(52, 152, 219)"},{id:"blue_plus",name:"蛋雅深蓝",isDark:false,isCustom:false,colorPrimary:"rgb(77, 131, 175)",colorTheme:"rgb(77, 131, 175)"},{id:"orange",name:"橙黄橘绿",isDark:false,isCustom:false,colorPrimary:"rgb(245, 171, 53)",colorTheme:"rgb(245, 171, 53)"},{id:"red",name:"热情似火",isDark:false,isCustom:false,colorPrimary:"rgb(214, 69, 65)",colorTheme:"rgb(214, 69, 65)"},{id:"pink",name:"粉装玉琢",isDark:false,isCustom:false,colorPrimary:"rgb(241, 130, 141)",colorTheme:"rgb(241, 130, 141)"},{id:"purple",name:"重斤球紫",isDark:false,isCustom:false,colorPrimary:"rgb(155, 89, 182)",colorTheme:"rgb(155, 89, 182)"},{id:"grey",name:"灰常美丽",isDark:false,isCustom:false,colorPrimary:"rgb(108, 122, 137)",colorTheme:"rgb(108, 122, 137)"},{id:"ming",name:"青出于黑",isDark:false,isCustom:false,colorPrimary:"rgb(51, 110, 123)",colorTheme:"rgb(51, 110, 123)"},{id:"blue2",name:"清热板蓝",isDark:false,isCustom:false,colorPrimary:"rgb(79, 98, 208)",colorTheme:"rgb(79, 98, 208)"},{id:"black",name:"黑灯瞎火",isDark:true,isCustom:false,colorPrimary:"rgb(150, 150, 150)",colorTheme:"rgb(59,59,59)"},{id:"mid_autumn",name:"月里嫦娥",isDark:false,isCustom:false,colorPrimary:"rgb(74, 55, 82)",colorTheme:"rgb(74, 55, 82)"},{id:"naruto",name:"木叶之村",isDark:false,isCustom:false,colorPrimary:"rgb(87, 144, 167)",colorTheme:"rgb(87, 144, 167)"},{id:"china_ink",name:"近墨者黑",isDark:false,isCustom:false,colorPrimary:"rgba(47, 47, 47, 1)",colorTheme:"rgba(47, 47, 47, 1)"},{id:"happy_new_year",name:"新年快乐",isDark:false,isCustom:false,colorPrimary:"rgb(192, 57, 43)",colorTheme:"rgb(192, 57, 43)"}],Sy={id:"default-bili-pink",name:"B站粉",colorPrimary:Nf.Pink,tooltip:"B站品牌色"},gW={id:"color-picker",name:"自定义",isCustom:true,colorPrimary:Nf.Pink};function _$e(e,t){return t.split(`
`).map(n=>n.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:`${e}:${o}`,name:o,colorPrimary:r}})}const wA="UP长期洗涤",L$e=_$e(wA,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002fa7 克莱因蓝
  #003153 普鲁士蓝
  #01847f 马尔斯绿
  #fbd26a 申布伦黄
  #470024 勃艮第红
  #492d22 凡戴克棕
  `),vW="bilibili-evolved-sync",bW=[{name:"预设",themes:[Sy,{id:"bilibili-blue",name:"B站蓝",colorPrimary:Nf.Blue,tooltip:"B站品牌色"},{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"},{id:vW,name:"B-Evolved",colorPrimary:`var(--theme-color,${YH()})`,tooltip:H(_e,{children:["使用 Bilibili-Evolved 的主题色",x("br",{}),"在 Bilibili-Evolved 设置中修改主题色后可能需要刷新页面同步"]})},gW]},{name:"LX Themes",themes:D$e,tooltip:H(_e,{children:["提取自"," ",x("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),x("br",{}),"Apache License 2.0"]})},{name:wA,themes:L$e,tooltip:H(_e,{children:["提取自"," ",x("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",x("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})},{name:"紫定能行",themes:O$e.map(e=>({id:`purple-colors-${e.name}`,name:e.nameZh,colorPrimary:e.hex,tooltip:H(_e,{children:[e.name," ",e.nameZh," ",x("br",{}),e.desc]})})),tooltip:H(_e,{children:["提取自"," ",x("a",{target:"_blank",href:"https://magicdawn.github.io/purple-colors/",children:"purple-colors"})," "]})}],B$e=bW.map(e=>e.themes).flat(),w9={[`${wA}:马尔斯绿`]:H(_e,{children:["马尔斯绿 MARRS GREEN ",x("br",{}),"2017年英国的百年造纸商G.F SMITH和英国城市文化节联合发起了「选出全世界最受欢迎的颜色」的活动, ",x("br",{}),"在为期半年由来自100多个约3万名用户的投票后,由来自苏格兰的联合国教科文组织工作人员 ",x("br",{}),"安妮•马尔斯(ANNIE MARRS)提交的一种蓝绿色当选。 ",x("br",{}),"马尔斯绿也因此由ANNIE MARRS的姓氏和主色调组合而得名。 ",x("br",{}),"马尔斯绿的灵感来源于ANNIE家乡苏格兰的泰勒河畔自然景观的一种蓝绿色调。 ",x("br",{})]})};function yW(){let{theme:e,colorPickerThemeSelectedColor:t}=Ut();return e||=Sy.id,f.useMemo(()=>{const n=B$e.find(r=>r.id===e)||Sy;return n.id===gW.id&&t?{...n,colorPrimary:t}:n},[e,t])}function SW(){const e=yW(),t=dg.use();let n=e.colorPrimary;return e.id===vW&&(n=t||YH()),n}function z$e(e,t){return e||t?"--bg1":"--bg2"}function k$e(){const e=SW(),t=D1(),n=Rwe(),{style:{pureRecommend:{useWhiteBackground:r}}}=Ut(),o=f.useMemo(()=>({bgSrc:z$e(t,r),bgFallback:t?"#17181a":r?"#fff":"#f6f7f8",text:t?"#fff":"#333"}),[t,r]);return x(hA,{styles:[n,I$e,ln`
            :root {
              ${$U}: ${e};
              ${MU}: var(${o.bgSrc}, ${o.bgFallback});
              ${EU}: var(--text1, ${o.text});
            }
          `,"",""]})}var F$e={name:"1ughwg6",styles:".bili-feed4 .bili-header{min-height:64px!important;}"},H$e={name:"rpxvzv",styles:"#i_cecream,body>#app{.bili-feed4-layout{display:none;}}.desktop-download-tip,.vip-login-tip,.palette-button-adcard{display:none!important;}"};function V$e(){const{grid:{useCustomGrid:e},style:{pureRecommend:{useWhiteBackground:t,hideTopChannel:n}}}=Ut(),r=D1(),o=Zge(),i=gT.use(),a=vT.use()??90,l="0 10px";if(Ls)return x(hA,{styles:[H$e,e&&ln("#i_cecream,body>#app,.bili-feed4 .bili-header,.bili-feed4 .bili-header .bili-header__bar{max-width:unset;}.bili-feed4-layout,.bili-feed4 .bili-header .bili-header__channel{max-width:",a,"%;padding:",l,";}",""),e&&typeof o=="number"&&ln(".",$a,"{--back-top-right:",o,"px;}",""),ln("body{background-color:",k3,"!important;}.large-header,#i_cecream,body>#app,.bili-header.large-header,.bili-header.large-header .bili-header__channel{background-color:",k3,";}",""),!r&&!t&&ln(".bili-header .bili-header__channel .channel-entry-more__link,.bili-header .bili-header__channel .channel-link{background-color:",yy,";}",""),n&&ln(".bili-header__channel,.bili-header__banner{display:none!important;}",!i&&F$e," .bili-feed4 .bili-header .bili-header__bar{&.slide-down,&:not(.slide-down){animation:headerSlideDown 0.3s linear forwards!important;box-shadow:0 2px 4px ",r?"rgb(255 255 255 / 5%)":"rgb(0 0 0 / 8%)","!important;}}.bili-header__bar:not(.slide-down){background-color:var(--bg1);color:var(--text1);transition:background-color 0.2s linear;animation-name:headerSlideDown;.left-entry{.mini-header__title,.entry-title,.default-entry,.loc-mc-box__text,.download-entry,.loc-entry{color:var(--text1);}}.right-entry .right-entry__outside{.right-entry-text,.right-entry-icon{color:var(--text2);}}}.area-header-wrapper{margin-top:10px;}",""),"",""]})}function j$e(...e){return function(t){return e.reduceRight((n,r)=>r?r(n):n,t)}}function Ws({children:e,cssInsertContainer:t,cssInsertContainerEmotionKey:n}){t&&Ir(n,"cssInsertContainerEmotionKey is required when cssInsertContainer is provided");const r=f.useMemo(()=>{if(t)return CU({key:n,container:t}).cache},[t,n]),o=D1(),i=SW();return j$e(!!r&&(l=>x(tJ,{value:r,children:l})),!!t&&(l=>x(HJ,{container:t,children:l})),l=>x(Lo,{locale:iwe,button:{autoInsertSpace:false},getPopupContainer:u=>u?.closest("."+$a)??document.body,theme:{algorithm:o?ay.darkAlgorithm:ay.defaultAlgorithm,token:{colorPrimary:i,colorBgSpotlight:i,zIndexPopupBase:$_(E_),fontFamily:RU},components:{Notification:{zIndexPopup:$_(E_)},Button:{defaultShadow:"none",primaryShadow:"none"},Dropdown:{}}},children:l}))(e)}function V1({antd:e,baseGlobalStyle:t,homePageGlobalStyle:n}){return H(_e,{children:[e&&x(eve,{}),t&&x(k$e,{}),n&&x(V$e,{})]})}function U$e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>r=>{t.forEach(o=>o(r));},t)}const j1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tm(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function $A(e){return "nodeType"in e}function ti(e){var t,n;return e?tm(e)?e:$A(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function EA(e){const{Document:t}=ti(e);return e instanceof t}function Mg(e){return tm(e)?false:e instanceof ti(e).HTMLElement}function CW(e){return e instanceof ti(e).SVGElement}function nm(e){return e?tm(e)?e.document:$A(e)?EA(e)?e:Mg(e)||CW(e)?e.ownerDocument:document:document:document}const Xa=j1?f.useLayoutEffect:f.useEffect;function MA(e){const t=f.useRef(e);return Xa(()=>{t.current=e;}),f.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function W$e(){const e=f.useRef(null),t=f.useCallback((r,o)=>{e.current=setInterval(r,o);},[]),n=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null);},[]);return [t,n]}function Op(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return Xa(()=>{n.current!==e&&(n.current=e);},t),n}function Rg(e,t){const n=f.useRef();return f.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Cy(e){const t=MA(e),n=f.useRef(null),r=f.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o;},[]);return [n,r]}function U3(e){const t=f.useRef();return f.useEffect(()=>{t.current=e;},[e]),t.current}let f$={};function Tg(e,t){return f.useMemo(()=>{if(t)return t;const n=f$[e]==null?0:f$[e]+1;return f$[e]=n,e+"-"+n},[e,t])}function xW(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,a)=>{const l=Object.entries(a);for(const[u,d]of l){const m=i[u];m!=null&&(i[u]=m+e*d);}return i},{...t})}}const nf=xW(1),xy=xW(-1);function q$e(e){return "clientX"in e&&"clientY"in e}function RA(e){if(!e)return  false;const{KeyboardEvent:t}=ti(e.target);return t&&e instanceof t}function G$e(e){if(!e)return  false;const{TouchEvent:t}=ti(e.target);return t&&e instanceof t}function W3(e){if(G$e(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return {x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return {x:t,y:n}}}return q$e(e)?{x:e.clientX,y:e.clientY}:null}const Ef=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 [Ef.Translate.toString(e),Ef.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),$9="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function K$e(e){return e.matches($9)?e:e.querySelector($9)}const Y$e={display:"none"};function X$e(e){let{id:t,value:n}=e;return G.createElement("div",{id:t,style:Y$e},n)}function Q$e(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={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"};return G.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":true},n)}function Z$e(){const[e,t]=f.useState("");return {announce:f.useCallback(r=>{r!=null&&t(r);},[]),announcement:e}}const wW=f.createContext(null);function $W(e){const t=f.useContext(wW);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t]);}function J$e(){const[e]=f.useState(()=>new Set),t=f.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return [f.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var l;return (l=a[o])==null?void 0:l.call(a,i)});},[e]),t]}const e2e={draggable:`
    To pick up a draggable item, press the space bar.
    While dragging, use the arrow keys to move the item.
    Press space again to drop the item in its new position, or press escape to cancel.
  `},t2e={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 n2e(e){let{announcements:t=t2e,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=e2e}=e;const{announce:i,announcement:a}=Z$e(),l=Tg("DndLiveRegion"),[u,d]=f.useState(false);if(f.useEffect(()=>{d(true);},[]),$W(f.useMemo(()=>({onDragStart(p){let{active:g}=p;i(t.onDragStart({active:g}));},onDragMove(p){let{active:g,over:b}=p;t.onDragMove&&i(t.onDragMove({active:g,over:b}));},onDragOver(p){let{active:g,over:b}=p;i(t.onDragOver({active:g,over:b}));},onDragEnd(p){let{active:g,over:b}=p;i(t.onDragEnd({active:g,over:b}));},onDragCancel(p){let{active:g,over:b}=p;i(t.onDragCancel({active:g,over:b}));}}),[i,t])),!u)return null;const m=G.createElement(G.Fragment,null,G.createElement(X$e,{id:r,value:o.draggable}),G.createElement(Q$e,{id:l,announcement:a}));return n?Mo.createPortal(m,n):m}var Ar;(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";})(Ar||(Ar={}));function wy(){}function r2e(e,t){return f.useMemo(()=>({sensor:e,options:{}}),[e,t])}function o2e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const wa=Object.freeze({x:0,y:0});function i2e(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function a2e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function s2e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function l2e(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function E9(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const c2e=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=E9(t,t.left,t.top),i=[];for(const a of r){const{id:l}=a,u=n.get(l);if(u){const d=i2e(E9(u),o);i.push({id:l,data:{droppableContainer:a,value:d}});}}return i.sort(a2e)};function u2e(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const u=t.width*t.height,d=e.width*e.height,m=a*l,p=m/(u+d-m);return Number(p.toFixed(4))}return 0}const d2e=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,l=n.get(a);if(l){const u=u2e(l,t);u>0&&o.push({id:a,data:{droppableContainer:i,value:u}});}}return o.sort(s2e)};function f2e(e,t,n){return {...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function EW(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:wa}function m2e(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,l)=>({...a,top:a.top+e*l.y,bottom:a.bottom+e*l.y,left:a.left+e*l.x,right:a.right+e*l.x}),{...n})}}const h2e=m2e(1);function p2e(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]}}else 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}function g2e(e,t,n){const r=p2e(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,u=e.left-a-(1-o)*parseFloat(n),d=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),m=o?e.width/o:e.width,p=i?e.height/i:e.height;return {width:m,height:p,top:d,right:u+m,bottom:d+p,left:u}}const v2e={ignoreTransform:false};function rm(e,t){t===void 0&&(t=v2e);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:m}=ti(e).getComputedStyle(e);d&&(n=g2e(n,d,m));}const{top:r,left:o,width:i,height:a,bottom:l,right:u}=n;return {top:r,left:o,width:i,height:a,bottom:l,right:u}}function M9(e){return rm(e,{ignoreTransform:true})}function b2e(e){const t=e.innerWidth,n=e.innerHeight;return {top:0,left:0,right:t,bottom:n,width:t,height:n}}function y2e(e,t){return t===void 0&&(t=ti(e).getComputedStyle(e)),t.position==="fixed"}function S2e(e,t){t===void 0&&(t=ti(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return ["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):false})}function TA(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(EA(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Mg(o)||CW(o)||n.includes(o))return n;const i=ti(e).getComputedStyle(o);return o!==e&&S2e(o,i)&&n.push(o),y2e(o,i)?n:r(o.parentNode)}return e?r(e):n}function MW(e){const[t]=TA(e,1);return t??null}function m$(e){return !j1||!e?null:tm(e)?e:$A(e)?EA(e)||e===nm(e).scrollingElement?window:Mg(e)?e:null:null}function RW(e){return tm(e)?e.scrollX:e.scrollLeft}function TW(e){return tm(e)?e.scrollY:e.scrollTop}function q3(e){return {x:RW(e),y:TW(e)}}var kr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward";})(kr||(kr={}));function AW(e){return !j1||!e?false:e===document.scrollingElement}function NW(e){const t={x:0,y:0},n=AW(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return {isTop:o,isLeft:i,isBottom:a,isRight:l,maxScroll:r,minScroll:t}}const C2e={x:.2,y:.2};function x2e(e,t,n,r,o){let{top:i,left:a,right:l,bottom:u}=n;r===void 0&&(r=10),o===void 0&&(o=C2e);const{isTop:d,isBottom:m,isLeft:p,isRight:g}=NW(e),b={x:0,y:0},y={x:0,y:0},S={height:t.height*o.y,width:t.width*o.x};return !d&&i<=t.top+S.height?(b.y=kr.Backward,y.y=r*Math.abs((t.top+S.height-i)/S.height)):!m&&u>=t.bottom-S.height&&(b.y=kr.Forward,y.y=r*Math.abs((t.bottom-S.height-u)/S.height)),!g&&l>=t.right-S.width?(b.x=kr.Forward,y.x=r*Math.abs((t.right-S.width-l)/S.width)):!p&&a<=t.left+S.width&&(b.x=kr.Backward,y.x=r*Math.abs((t.left+S.width-a)/S.width)),{direction:b,speed:y}}function w2e(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return {top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return {top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function PW(e){return e.reduce((t,n)=>nf(t,q3(n)),wa)}function $2e(e){return e.reduce((t,n)=>t+RW(n),0)}function E2e(e){return e.reduce((t,n)=>t+TW(n),0)}function M2e(e,t){if(t===void 0&&(t=rm),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);MW(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}const R2e=[["x",["left","right"],$2e],["y",["top","bottom"],E2e]];class AA{constructor(t,n){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 r=TA(n),o=PW(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of R2e)for(const u of a)Object.defineProperty(this,u,{get:()=>{const d=l(r),m=o[i]-d;return this.rect[u]+m},enumerable:true});Object.defineProperty(this,"rect",{enumerable:false});}}class Kh{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return (r=this.target)==null?void 0:r.removeEventListener(...n)});},this.target=t;}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r]);}}function T2e(e){const{EventTarget:t}=ti(e);return e instanceof t?e:nm(e)}function h$(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:false}var Fi;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange";})(Fi||(Fi={}));function R9(e){e.preventDefault();}function A2e(e){e.stopPropagation();}var En;(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";})(En||(En={}));const IW={start:[En.Space,En.Enter],cancel:[En.Esc],end:[En.Space,En.Enter,En.Tab]},N2e=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case En.Right:return {...n,x:n.x+25};case En.Left:return {...n,x:n.x-25};case En.Down:return {...n,y:n.y+25};case En.Up:return {...n,y:n.y-25}}};class OW{constructor(t){this.props=void 0,this.autoScrollEnabled=false,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Kh(nm(n)),this.windowListeners=new Kh(ti(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(Fi.Resize,this.handleCancel),this.windowListeners.add(Fi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Fi.Keydown,this.handleKeyDown));}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&M2e(r),n(wa);}handleKeyDown(t){if(RA(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=IW,coordinateGetter:a=N2e,scrollBehavior:l="smooth"}=o,{code:u}=t;if(i.end.includes(u)){this.handleEnd(t);return}if(i.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:d}=r.current,m=d?{x:d.left,y:d.top}:wa;this.referenceCoordinates||(this.referenceCoordinates=m);const p=a(t,{active:n,context:r.current,currentCoordinates:m});if(p){const g=xy(p,m),b={x:0,y:0},{scrollableAncestors:y}=r.current;for(const S of y){const C=t.code,{isTop:w,isRight:$,isLeft:E,isBottom:T,maxScroll:R,minScroll:I}=NW(S),N=w2e(S),P={x:Math.min(C===En.Right?N.right-N.width/2:N.right,Math.max(C===En.Right?N.left:N.left+N.width/2,p.x)),y:Math.min(C===En.Down?N.bottom-N.height/2:N.bottom,Math.max(C===En.Down?N.top:N.top+N.height/2,p.y))},O=C===En.Right&&!$||C===En.Left&&!E,_=C===En.Down&&!T||C===En.Up&&!w;if(O&&P.x!==p.x){const L=S.scrollLeft+g.x,k=C===En.Right&&L<=R.x||C===En.Left&&L>=I.x;if(k&&!g.y){S.scrollTo({left:L,behavior:l});return}k?b.x=S.scrollLeft-L:b.x=C===En.Right?S.scrollLeft-R.x:S.scrollLeft-I.x,b.x&&S.scrollBy({left:-b.x,behavior:l});break}else if(_&&P.y!==p.y){const L=S.scrollTop+g.y,k=C===En.Down&&L<=R.y||C===En.Up&&L>=I.y;if(k&&!g.x){S.scrollTo({top:L,behavior:l});return}k?b.y=S.scrollTop-L:b.y=C===En.Down?S.scrollTop-R.y:S.scrollTop-I.y,b.y&&S.scrollBy({top:-b.y,behavior:l});break}}this.handleMove(t,nf(xy(p,this.referenceCoordinates),b));}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n);}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n();}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll();}}OW.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=IW,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const l=i.activatorNode.current;return l&&e.target!==l?false:(e.preventDefault(),o?.({event:e.nativeEvent}),true)}return  false}}];function T9(e){return !!(e&&"distance"in e)}function A9(e){return !!(e&&"delay"in e)}class NA{constructor(t,n,r){var o;r===void 0&&(r=T2e(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=true,this.document=void 0,this.activated=false,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=nm(a),this.documentListeners=new Kh(this.document),this.listeners=new Kh(r),this.windowListeners=new Kh(ti(a)),this.initialCoordinates=(o=W3(i))!=null?o:wa,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:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:false}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Fi.Resize,this.handleCancel),this.windowListeners.add(Fi.DragStart,R9),this.windowListeners.add(Fi.VisibilityChange,this.handleCancel),this.windowListeners.add(Fi.ContextMenu,R9),this.documentListeners.add(Fi.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(A9(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(T9(n)){this.handlePending(n);return}}this.handleStart();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null);}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n);}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=true,this.documentListeners.add(Fi.Click,A2e,{capture:true}),this.removeTextSelection(),this.documentListeners.add(Fi.SelectionChange,this.removeTextSelection),n(t));}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!o)return;const u=(n=W3(t))!=null?n:wa,d=xy(o,u);if(!r&&l){if(T9(l)){if(l.tolerance!=null&&h$(d,l.tolerance))return this.handleCancel();if(h$(d,l.distance))return this.handleStart()}if(A9(l)&&h$(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}t.cancelable&&t.preventDefault(),a(u);}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n();}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n();}handleKeydown(t){t.code===En.Esc&&this.handleCancel();}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges();}}const P2e={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class PA extends NA{constructor(t){const{event:n}=t,r=nm(n.target);super(t,P2e,r);}}PA.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return !n.isPrimary||n.button!==0?false:(r?.({event:n}),true)}}];const I2e={move:{name:"mousemove"},end:{name:"mouseup"}};var G3;(function(e){e[e.RightClick=2]="RightClick";})(G3||(G3={}));class O2e extends NA{constructor(t){super(t,I2e,nm(t.event.target));}}O2e.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===G3.RightClick?false:(r?.({event:n}),true)}}];const p$={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class D2e extends NA{constructor(t){super(t,p$);}static setup(){return window.addEventListener(p$.move.name,t,{capture:false,passive:false}),function(){window.removeEventListener(p$.move.name,t);};function t(){}}}D2e.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?false:(r?.({event:n}),true)}}];var Yh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect";})(Yh||(Yh={}));var $y;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder";})($y||($y={}));function _2e(e){let{acceleration:t,activator:n=Yh.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:l=$y.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:m,delta:p,threshold:g}=e;const b=B2e({delta:p,disabled:!i}),[y,S]=W$e(),C=f.useRef({x:0,y:0}),w=f.useRef({x:0,y:0}),$=f.useMemo(()=>{switch(n){case Yh.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Yh.DraggableRect:return o}},[n,o,u]),E=f.useRef(null),T=f.useCallback(()=>{const I=E.current;if(!I)return;const N=C.current.x*w.current.x,P=C.current.y*w.current.y;I.scrollBy(N,P);},[]),R=f.useMemo(()=>l===$y.TreeOrder?[...d].reverse():d,[l,d]);f.useEffect(()=>{if(!i||!d.length||!$){S();return}for(const I of R){if(r?.(I)===false)continue;const N=d.indexOf(I),P=m[N];if(!P)continue;const{direction:O,speed:_}=x2e(I,P,$,t,g);for(const L of ["x","y"])b[L][O[L]]||(_[L]=0,O[L]=0);if(_.x>0||_.y>0){S(),E.current=I,y(T,a),C.current=_,w.current=O;return}}C.current={x:0,y:0},w.current={x:0,y:0},S();},[t,T,r,S,i,a,JSON.stringify($),JSON.stringify(b),y,d,R,m,JSON.stringify(g)]);}const L2e={x:{[kr.Backward]:false,[kr.Forward]:false},y:{[kr.Backward]:false,[kr.Forward]:false}};function B2e(e){let{delta:t,disabled:n}=e;const r=U3(t);return Rg(o=>{if(n||!r||!o)return L2e;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return {x:{[kr.Backward]:o.x[kr.Backward]||i.x===-1,[kr.Forward]:o.x[kr.Forward]||i.x===1},y:{[kr.Backward]:o.y[kr.Backward]||i.y===-1,[kr.Forward]:o.y[kr.Forward]||i.y===1}}},[n,t,r])}function z2e(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Rg(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function k2e(e,t){return f.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return [...n,...i]},[]),[e,t])}var Dp;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging";})(Dp||(Dp={}));var K3;(function(e){e.Optimized="optimized";})(K3||(K3={}));const N9=new Map;function F2e(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=f.useState(null),{frequency:l,measure:u,strategy:d}=o,m=f.useRef(e),p=C(),g=Op(p),b=f.useCallback(function(w){w===void 0&&(w=[]),!g.current&&a($=>$===null?w:$.concat(w.filter(E=>!$.includes(E))));},[g]),y=f.useRef(null),S=Rg(w=>{if(p&&!n)return N9;if(!w||w===N9||m.current!==e||i!=null){const $=new Map;for(let E of e){if(!E)continue;if(i&&i.length>0&&!i.includes(E.id)&&E.rect.current){$.set(E.id,E.rect.current);continue}const T=E.node.current,R=T?new AA(u(T),T):null;E.rect.current=R,R&&$.set(E.id,R);}return $}return w},[e,i,n,p,u]);return f.useEffect(()=>{m.current=e;},[e]),f.useEffect(()=>{p||b();},[n,p]),f.useEffect(()=>{i&&i.length>0&&a(null);},[JSON.stringify(i)]),f.useEffect(()=>{p||typeof l!="number"||y.current!==null||(y.current=setTimeout(()=>{b(),y.current=null;},l));},[l,p,b,...r]),{droppableRects:S,measureDroppableContainers:b,measuringScheduled:i!=null};function C(){switch(d){case Dp.Always:return  false;case Dp.BeforeDragging:return n;default:return !n}}}function DW(e,t){return Rg(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function H2e(e,t){return DW(e,t)}function V2e(e){let{callback:t,disabled:n}=e;const r=MA(t),o=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return f.useEffect(()=>()=>o?.disconnect(),[o]),o}function U1(e){let{callback:t,disabled:n}=e;const r=MA(t),o=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return f.useEffect(()=>()=>o?.disconnect(),[o]),o}function j2e(e){return new AA(rm(e),e)}function P9(e,t,n){t===void 0&&(t=j2e);const[r,o]=f.useState(null);function i(){o(u=>{if(!e)return null;if(e.isConnected===false){var d;return (d=u??n)!=null?d:null}const m=t(e);return JSON.stringify(u)===JSON.stringify(m)?u:m});}const a=V2e({callback(u){if(e)for(const d of u){const{type:m,target:p}=d;if(m==="childList"&&p instanceof HTMLElement&&p.contains(e)){i();break}}}}),l=U1({callback:i});return Xa(()=>{i(),e?(l?.observe(e),a?.observe(document.body,{childList:true,subtree:true})):(l?.disconnect(),a?.disconnect());},[e]),r}function U2e(e){const t=DW(e);return EW(e,t)}const I9=[];function W2e(e){const t=f.useRef(e),n=Rg(r=>e?r&&r!==I9&&e&&t.current&&e.parentNode===t.current.parentNode?r:TA(e):I9,[e]);return f.useEffect(()=>{t.current=e;},[e]),n}function q2e(e){const[t,n]=f.useState(null),r=f.useRef(e),o=f.useCallback(i=>{const a=m$(i.target);a&&n(l=>l?(l.set(a,q3(a)),new Map(l)):null);},[]);return f.useEffect(()=>{const i=r.current;if(e!==i){a(i);const l=e.map(u=>{const d=m$(u);return d?(d.addEventListener("scroll",o,{passive:true}),[d,q3(d)]):null}).filter(u=>u!=null);n(l.length?new Map(l):null),r.current=e;}return ()=>{a(e),a(i);};function a(l){l.forEach(u=>{const d=m$(u);d?.removeEventListener("scroll",o);});}},[o,e]),f.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>nf(i,a),wa):PW(e):wa,[e,t])}function O9(e,t){t===void 0&&(t=[]);const n=f.useRef(null);return f.useEffect(()=>{n.current=null;},t),f.useEffect(()=>{const r=e!==wa;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null);},[e]),n.current?xy(e,n.current):wa}function G2e(e){f.useEffect(()=>{if(!j1)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return ()=>{for(const n of t)n?.();}},e.map(t=>{let{sensor:n}=t;return n}));}function K2e(e,t){return f.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t);},n},{}),[e,t])}function _W(e){return f.useMemo(()=>e?b2e(e):null,[e])}const D9=[];function Y2e(e,t){t===void 0&&(t=rm);const[n]=e,r=_W(n?ti(n):null),[o,i]=f.useState(D9);function a(){i(()=>e.length?e.map(u=>AW(u)?r:new AA(t(u),u)):D9);}const l=U1({callback:a});return Xa(()=>{l?.disconnect(),a(),e.forEach(u=>l?.observe(u));},[e]),o}function X2e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Mg(t)?t:e}function Q2e(e){let{measure:t}=e;const[n,r]=f.useState(null),o=f.useCallback(d=>{for(const{target:m}of d)if(Mg(m)){r(p=>{const g=t(m);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),i=U1({callback:o}),a=f.useCallback(d=>{const m=X2e(d);i?.disconnect(),m&&i?.observe(m),r(m?t(m):null);},[t,i]),[l,u]=Cy(a);return f.useMemo(()=>({nodeRef:l,rect:n,setRef:u}),[n,l,u])}const Z2e=[{sensor:PA,options:{}},{sensor:OW,options:{}}],J2e={current:{}},d0={draggable:{measure:M9},droppable:{measure:M9,strategy:Dp.WhileDragging,frequency:K3.Optimized},dragOverlay:{measure:rm}};class Xh extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return !n})}getNodeFor(t){var n,r;return (n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const eEe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:wy},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:d0,measureDroppableContainers:wy,windowRect:null,measuringScheduled:false},tEe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:wy,draggableNodes:new Map,over:null,measureDroppableContainers:wy},W1=f.createContext(tEe),LW=f.createContext(eEe);function nEe(){return {draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xh}}}function rEe(e,t){switch(t.type){case Ar.DragStart:return {...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ar.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ar.DragEnd:case Ar.DragCancel:return {...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ar.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Xh(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Ar.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Xh(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case Ar.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Xh(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function oEe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=f.useContext(W1),i=U3(r),a=U3(n?.id);return f.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!RA(i)||document.activeElement===i.target)return;const l=o.get(a);if(!l)return;const{activatorNode:u,node:d}=l;if(!u.current&&!d.current)return;requestAnimationFrame(()=>{for(const m of [u.current,d.current]){if(!m)continue;const p=K$e(m);if(p){p.focus();break}}});}},[r,t,o,a,i]),null}function iEe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function aEe(e){return f.useMemo(()=>({draggable:{...d0.draggable,...e?.draggable},droppable:{...d0.droppable,...e?.droppable},dragOverlay:{...d0.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function sEe(e){let{activeNode:t,measure:n,initialRect:r,config:o=true}=e;const i=f.useRef(false),{x:a,y:l}=typeof o=="boolean"?{x:o,y:o}:o;Xa(()=>{if(!a&&!l||!t){i.current=false;return}if(i.current||!r)return;const d=t?.node.current;if(!d||d.isConnected===false)return;const m=n(d),p=EW(m,r);if(a||(p.x=0),l||(p.y=0),i.current=true,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=MW(d);g&&g.scrollBy({top:p.y,left:p.x});}},[t,a,l,r,n]);}const BW=f.createContext({...wa,scaleX:1,scaleY:1});var Rl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized";})(Rl||(Rl={}));const zW=f.memo(function(t){var n,r,o,i;let{id:a,accessibility:l,autoScroll:u=true,children:d,sensors:m=Z2e,collisionDetection:p=d2e,measuring:g,modifiers:b,...y}=t;const S=f.useReducer(rEe,void 0,nEe),[C,w]=S,[$,E]=J$e(),[T,R]=f.useState(Rl.Uninitialized),I=T===Rl.Initialized,{draggable:{active:N,nodes:P,translate:O},droppable:{containers:_}}=C,L=N!=null?P.get(N):null,k=f.useRef({initial:null,translated:null}),W=f.useMemo(()=>{var ut;return N!=null?{id:N,data:(ut=L?.data)!=null?ut:J2e,rect:k}:null},[N,L]),q=f.useRef(null),[F,z]=f.useState(null),[j,U]=f.useState(null),Y=Op(y,Object.values(y)),Q=Tg("DndDescribedBy",a),D=f.useMemo(()=>_.getEnabled(),[_]),B=aEe(g),{droppableRects:K,measureDroppableContainers:J,measuringScheduled:ee}=F2e(D,{dragging:I,dependencies:[O.x,O.y],config:B.droppable}),te=z2e(P,N),re=f.useMemo(()=>j?W3(j):null,[j]),ie=Rt(),ue=H2e(te,B.draggable.measure);sEe({activeNode:N!=null?P.get(N):null,config:ie.layoutShiftCompensation,initialRect:ue,measure:B.draggable.measure});const ne=P9(te,B.draggable.measure,ue),ce=P9(te?te.parentElement:null),fe=f.useRef({activatorEvent:null,active:null,activeNode:te,collisionRect:null,collisions:null,droppableRects:K,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),se=_.getNodeFor((n=fe.current.over)==null?void 0:n.id),Me=Q2e({measure:B.dragOverlay.measure}),ae=(r=Me.nodeRef.current)!=null?r:te,pe=I?(o=Me.rect)!=null?o:ne:null,be=!!(Me.nodeRef.current&&Me.rect),xe=U2e(be?null:ne),Te=_W(ae?ti(ae):null),Ke=W2e(I?se??te:null),Ae=Y2e(Ke),de=iEe(b,{transform:{x:O.x-xe.x,y:O.y-xe.y,scaleX:1,scaleY:1},activatorEvent:j,active:W,activeNodeRect:ne,containerNodeRect:ce,draggingNodeRect:pe,over:fe.current.over,overlayNodeRect:Me.rect,scrollableAncestors:Ke,scrollableAncestorRects:Ae,windowRect:Te}),ve=re?nf(re,O):null,Ne=q2e(Ke),He=O9(Ne),We=O9(Ne,[ne]),je=nf(de,He),nt=pe?h2e(pe,de):null,ot=W&&nt?p({active:W,collisionRect:nt,droppableRects:K,droppableContainers:D,pointerCoordinates:ve}):null,Ge=l2e(ot,"id"),[Oe,qe]=f.useState(null),Je=be?de:nf(de,We),Le=f2e(Je,(i=Oe?.rect)!=null?i:null,ne),Ie=f.useRef(null),ct=f.useCallback((ut,ft)=>{let{sensor:vt,options:ke}=ft;if(q.current==null)return;const Ze=P.get(q.current);if(!Ze)return;const Se=ut.nativeEvent,ye=new vt({active:q.current,activeNode:Ze,event:Se,options:ke,context:fe,onAbort(he){if(!P.get(he))return;const{onDragAbort:we}=Y.current,ze={id:he};we?.(ze),$({type:"onDragAbort",event:ze});},onPending(he,De,we,ze){if(!P.get(he))return;const{onDragPending:it}=Y.current,dt={id:he,constraint:De,initialCoordinates:we,offset:ze};it?.(dt),$({type:"onDragPending",event:dt});},onStart(he){const De=q.current;if(De==null)return;const we=P.get(De);if(!we)return;const{onDragStart:ze}=Y.current,Ye={activatorEvent:Se,active:{id:De,data:we.data,rect:k}};Mo.unstable_batchedUpdates(()=>{ze?.(Ye),R(Rl.Initializing),w({type:Ar.DragStart,initialCoordinates:he,active:De}),$({type:"onDragStart",event:Ye}),z(Ie.current),U(Se);});},onMove(he){w({type:Ar.DragMove,coordinates:he});},onEnd:Ce(Ar.DragEnd),onCancel:Ce(Ar.DragCancel)});Ie.current=ye;function Ce(he){return async function(){const{active:we,collisions:ze,over:Ye,scrollAdjustedTranslate:it}=fe.current;let dt=null;if(we&&it){const{cancelDrop:$t}=Y.current;dt={activatorEvent:Se,active:we,collisions:ze,delta:it,over:Ye},he===Ar.DragEnd&&typeof $t=="function"&&await Promise.resolve($t(dt))&&(he=Ar.DragCancel);}q.current=null,Mo.unstable_batchedUpdates(()=>{w({type:he}),R(Rl.Uninitialized),qe(null),z(null),U(null),Ie.current=null;const $t=he===Ar.DragEnd?"onDragEnd":"onDragCancel";if(dt){const Tt=Y.current[$t];Tt?.(dt),$({type:$t,event:dt});}});}}},[P]),Ot=f.useCallback((ut,ft)=>(vt,ke)=>{const Ze=vt.nativeEvent,Se=P.get(ke);if(q.current!==null||!Se||Ze.dndKit||Ze.defaultPrevented)return;const ye={active:Se};ut(vt,ft.options,ye)===true&&(Ze.dndKit={capturedBy:ft.sensor},q.current=ke,ct(vt,ft));},[P,ct]),pt=k2e(m,Ot);G2e(m),Xa(()=>{ne&&T===Rl.Initializing&&R(Rl.Initialized);},[ne,T]),f.useEffect(()=>{const{onDragMove:ut}=Y.current,{active:ft,activatorEvent:vt,collisions:ke,over:Ze}=fe.current;if(!ft||!vt)return;const Se={active:ft,activatorEvent:vt,collisions:ke,delta:{x:je.x,y:je.y},over:Ze};Mo.unstable_batchedUpdates(()=>{ut?.(Se),$({type:"onDragMove",event:Se});});},[je.x,je.y]),f.useEffect(()=>{const{active:ut,activatorEvent:ft,collisions:vt,droppableContainers:ke,scrollAdjustedTranslate:Ze}=fe.current;if(!ut||q.current==null||!ft||!Ze)return;const{onDragOver:Se}=Y.current,ye=ke.get(Ge),Ce=ye&&ye.rect.current?{id:ye.id,rect:ye.rect.current,data:ye.data,disabled:ye.disabled}:null,he={active:ut,activatorEvent:ft,collisions:vt,delta:{x:Ze.x,y:Ze.y},over:Ce};Mo.unstable_batchedUpdates(()=>{qe(Ce),Se?.(he),$({type:"onDragOver",event:he});});},[Ge]),Xa(()=>{fe.current={activatorEvent:j,active:W,activeNode:te,collisionRect:nt,collisions:ot,droppableRects:K,draggableNodes:P,draggingNode:ae,draggingNodeRect:pe,droppableContainers:_,over:Oe,scrollableAncestors:Ke,scrollAdjustedTranslate:je},k.current={initial:pe,translated:nt};},[W,te,ot,nt,P,ae,pe,K,_,Oe,Ke,je]),_2e({...ie,delta:O,draggingRect:nt,pointerCoordinates:ve,scrollableAncestors:Ke,scrollableAncestorRects:Ae});const Lt=f.useMemo(()=>({active:W,activeNode:te,activeNodeRect:ne,activatorEvent:j,collisions:ot,containerNodeRect:ce,dragOverlay:Me,draggableNodes:P,droppableContainers:_,droppableRects:K,over:Oe,measureDroppableContainers:J,scrollableAncestors:Ke,scrollableAncestorRects:Ae,measuringConfiguration:B,measuringScheduled:ee,windowRect:Te}),[W,te,ne,j,ot,ce,Me,P,_,K,Oe,J,Ke,Ae,B,ee,Te]),xt=f.useMemo(()=>({activatorEvent:j,activators:pt,active:W,activeNodeRect:ne,ariaDescribedById:{draggable:Q},dispatch:w,draggableNodes:P,over:Oe,measureDroppableContainers:J}),[j,pt,W,ne,w,Q,P,Oe,J]);return G.createElement(wW.Provider,{value:E},G.createElement(W1.Provider,{value:xt},G.createElement(LW.Provider,{value:Lt},G.createElement(BW.Provider,{value:Le},d)),G.createElement(oEe,{disabled:l?.restoreFocus===false})),G.createElement(n2e,{...l,hiddenTextDescribedById:Q}));function Rt(){const ut=F?.autoScrollEnabled===false,ft=typeof u=="object"?u.enabled===false:u===false,vt=I&&!ut&&!ft;return typeof u=="object"?{...u,enabled:vt}:{enabled:vt}}}),lEe=f.createContext(null),_9="button",cEe="Draggable";function kW(e){let{id:t,data:n,disabled:r=false,attributes:o}=e;const i=Tg(cEe),{activators:a,activatorEvent:l,active:u,activeNodeRect:d,ariaDescribedById:m,draggableNodes:p,over:g}=f.useContext(W1),{role:b=_9,roleDescription:y="draggable",tabIndex:S=0}=o??{},C=u?.id===t,w=f.useContext(C?BW:lEe),[$,E]=Cy(),[T,R]=Cy(),I=K2e(a,t),N=Op(n);Xa(()=>(p.set(t,{id:t,key:i,node:$,activatorNode:T,data:N}),()=>{const O=p.get(t);O&&O.key===i&&p.delete(t);}),[p,t]);const P=f.useMemo(()=>({role:b,tabIndex:S,"aria-disabled":r,"aria-pressed":C&&b===_9?true:void 0,"aria-roledescription":y,"aria-describedby":m.draggable}),[r,b,S,C,y,m.draggable]);return {active:u,activatorEvent:l,activeNodeRect:d,attributes:P,isDragging:C,listeners:r?void 0:I,node:$,over:g,setNodeRef:E,setActivatorNodeRef:R,transform:w}}function uEe(){return f.useContext(LW)}const dEe="Droppable",fEe={timeout:25};function mEe(e){let{data:t,disabled:n=false,id:r,resizeObserverConfig:o}=e;const i=Tg(dEe),{active:a,dispatch:l,over:u,measureDroppableContainers:d}=f.useContext(W1),m=f.useRef({disabled:n}),p=f.useRef(false),g=f.useRef(null),b=f.useRef(null),{disabled:y,updateMeasurementsFor:S,timeout:C}={...fEe,...o},w=Op(S??r),$=f.useCallback(()=>{if(!p.current){p.current=true;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),b.current=null;},C);},[C]),E=U1({callback:$,disabled:y||!a}),T=f.useCallback((P,O)=>{E&&(O&&(E.unobserve(O),p.current=false),P&&E.observe(P));},[E]),[R,I]=Cy(T),N=Op(t);return f.useEffect(()=>{!E||!R.current||(E.disconnect(),p.current=false,E.observe(R.current));},[R,E]),f.useEffect(()=>(l({type:Ar.RegisterDroppable,element:{id:r,key:i,disabled:n,node:R,rect:g,data:N}}),()=>l({type:Ar.UnregisterDroppable,key:i,id:r})),[r]),f.useEffect(()=>{n!==m.current.disabled&&(l({type:Ar.SetDroppableDisabled,id:r,key:i,disabled:n}),m.current.disabled=n);},[r,i,n,l]),{active:a,rect:g,isOver:u?.id===r,node:R,over:u,setNodeRef:I}}function hEe(e,t){Va(e)||(typeof e=="function"?e(t):e.current=t);}function q1(...e){const t=f.useRef(null);return f.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,e.forEach(r=>r&&hEe(r,n));}}),[t,...e])}const rf=ac(()=>({width:window.innerWidth,height:window.innerHeight}));document.addEventListener("resize",rf.updateThrottled);document.addEventListener("orientationchange",rf.updateThrottled);document.addEventListener("scroll",Jl(rf.update,1e3));function pEe({expanded:e,children:t,...n}){return x("div",{...n,"data-classname":"wrapper",css:ln("transition:grid-template-rows 0.2s ease-out;display:grid;grid-template-rows:",e?1:0,"fr;",""),children:x("div",{"data-classname":"inner",className:"overflow-hidden",children:t})})}function mn(e){return x(rc,{...e,styles:{...e.styles,root:{width:"max-content",maxWidth:"50vw",...e.styles?.root}},children:e.children})}const gEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M40 20c0 6.808-4.252 12.622-10.244 14.934H18.244C12.252 32.622 8 26.808 8 20c0-8.837 7.163-16 16-16s16 7.163 16 16"}),x("path",{d:"m29.756 34.934l-.68 8.15a1 1 0 0 1-.996.916h-8.16a1 1 0 0 1-.996-.917l-.68-8.15M18 17v6l6-3l6 3v-6"})]})]}),vEe=f.forwardRef(gEe),bEe=vEe,FW="rgb(0 0 0 / 0.85)";function pr({children:e,tooltipProps:t,IconComponent:n,className:r,useBlackBg:o,...i}){n??=bEe;const a=x(n,{...i,className:ur("ml-4px size-16px cursor-pointer",r)});return !!e&&x(mn,{color:o?FW:void 0,...t,title:e,children:a})}function yEe(e,t){const n=Ut(),r=!!Ao(n,e,false),o=f.useCallback(l=>{Tf(st,e,l),t?.(l);},[]),i=f.useCallback(l=>{o(l.target.checked);},[]),a=f.useCallback(()=>{o(!Ao(st,e,false));},[]);return {checked:r,onChange:o,checkboxOnChange:i,onToggle:a}}function HW({configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,as:i,checkboxProps:a,switchProps:l,ref:u}){const{checked:d,onChange:m,checkboxOnChange:p}=yEe(e,n),g=y=>r?x(mn,{...o,title:r,children:y}):y;let b;if(typeof t=="function"?b=t(d):b=(t??e)||null,i==="checkbox"){let y=x("span",{style:{userSelect:"none"},children:b});return r&&(y=g(y)),x(Ki,{...a,ref:u,checked:d,onChange:p,styles:{label:{paddingInline:6}},children:y})}if(i==="switch"){let y=x(BH,{...l,checked:d,onChange:m,ref:u});return r&&(y=g(y)),y}}const It=function({configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,ref:i,...a}){return x(HW,{ref:i,configPath:e,label:t,extraAction:n,tooltip:r,tooltipProps:o,as:"checkbox",checkboxProps:a})};function wu({configPath:e,extraAction:t,tooltip:n,tooltipProps:r,ref:o,...i}){return x(HW,{ref:o,configPath:e,extraAction:t,tooltip:n,tooltipProps:r,as:"switch",switchProps:i})}async function G1(e="即将刷新网页!"){_t.info(e),await gn(500),location.reload();}function zr(e,t){return H(_e,{children:[H("div",{className:"flex items-center",children:["✅: ",e]}),H("div",{className:"flex items-center",children:["❎: ",t]})]})}let ph;function SEe(){zl(()=>{ph&&URL.revokeObjectURL(ph),ph=void 0;});const e=xg(),t=JSON.stringify(e,null,2),n=new Blob([t],{type:"application/json"});return ph=URL.createObjectURL(n),ph}function CEe(){const e=SEe(),t=`${No}-settings ${Yn().format("YYYY-MM-DD HH:mm:ss")}.json`;if(typeof GM_download<"u")GM_download?.({url:e,name:t});else {const n=document.createElement("a");n.href=e,n.download=t,n.click();}}async function xEe(){const e=await wEe();if(!e)return;const t=await e.text();if(!t)return fn("文件内容为空!");let n;try{n=JSON.parse(t);}catch{return fn("无法解析文件内容!")}mA(n);const{pickedPaths:r,pickedSettings:o}=Yf(n,cc);return r.length?(vU(true),Ya(o),_t.success("导入成功!"),G1()):fn("没有有效的设置!")}function wEe(){return $Ee({accept:".json",multiple:false})}function $Ee(e){return new Promise(t=>{const n=document.createElement("input");n.type="file",Object.assign(n,e),n.addEventListener("change",()=>{t(n.files?.[0]||null);}),n.click();})}const Bn={tabPane:"max-h-[max(362px,calc(90vh-50px-56px-15px))] min-h-362px overflow-y-auto pr-12px",settingsGroup:"mb-10px",settingsGroupTitle:"flex items-center text-2em",settingsGroupSubTitle:"flex items-center text-1.25em",settingsLine:"flex flex-row flex-wrap items-center gap-x-10px gap-y-1"};function to({children:e,title:t,titleClassName:n,contentClassName:r,resetSettingPaths:o,...i}){const a=!!o?.length;return H("div",{className:Bn.settingsGroup,"data-role":"settings-group",...i,children:[H("div",{"data-role":"settings-group-title",className:ur(Bn.settingsGroupTitle,a&&"justify-between",n),children:[a?x("div",{className:"flex items-center",children:t}):t,o&&x(VW,{paths:o})]}),x("div",{"data-role":"settings-group-content",className:ur("flex flex-col gap-y-1",r),children:e})]})}function EEe(e){const{pickedSettings:t}=Yf(Cg,e);Ya(t);}function VW({paths:e,className:t}){return x($p,{title:"确定重置下面的设置项?",onConfirm:()=>EEe(e),children:H(lt,{className:X("gap-x-4px",t),children:[x(ZH,{className:"mt--1px size-12px"}),x("span",{children:"重置"})]})})}const MEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M3.06 13a9 9 0 1 0 .49-4.087"}),x("path",{d:"M3 4.001v5h5M11 12a1 1 0 1 0 2 0a1 1 0 1 0-2 0"})]})]}),L9=f.forwardRef(MEe),REe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),x("path",{d:"M11.5 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v5m-5 6h7m-3-3l3 3l-3 3"})]})]}),_p=f.forwardRef(REe),TEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),x("path",{d:"M5 13V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2h-5.5M2 19h7m-3-3l3 3l-3 3"})]})]}),Lp=f.forwardRef(TEe),AEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5l1.53.11A2.98 2.98 0 0 1 22 15c0 1.65-1.35 3-3 3H6c-2.21 0-4-1.79-4-4c0-2.05 1.53-3.76 3.56-3.97l1.07-.11l.5-.95A5.47 5.47 0 0 1 12 6m0-2C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5c0-2.64-2.05-4.78-4.65-4.96A7.49 7.49 0 0 0 12 4"})]}),NEe=f.forwardRef(AEe),PEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),x("path",{strokeLinecap:"round",d:"m33 21l-9 9l-9-9"})]})]}),IEe=f.forwardRef(PEe);function OEe(){return Wxe(),G1()}async function DEe(){const e=await hU.getData();mA(e);const{pickedPaths:t,pickedSettings:n}=Yf(e,cc,zxe);return t.length?(vU(true),Ya(n),G1()):_t.error("备份不存在或没有有效的配置")}function _Ee(){const[e,t]=f.useState(false);return H("div",{className:Bn.tabPane,children:[x(to,{title:"设置项",children:H(eo,{size:20,children:[x($p,{title:"确定",description:"确定恢复默认设置? 此操作不可逆!",onConfirm:OEe,children:H(lt,{danger:true,type:"primary",children:[x(L9,{}),"恢复默认设置"]})}),H(eo,{size:5,children:[x(mn,{title:"导出所有设置项到文件中, 包含 access_key 等数据, 请妥善保存",children:H(lt,{onClick:()=>CEe(),children:[x(_p,{}),"导出设置"]})}),x(mn,{title:"从文件中导入设置项, 将覆盖当前设置, 此操作不可逆!",children:H(lt,{onClick:()=>xEe(),children:[x(Lp,{}),"导入设置"]})})]})]})}),x(to,{title:H(_e,{children:[x(NEe,{className:"mr-4px size-28px"}),"备份"]}),children:H("div",{className:"flex items-center gap-x-40px",children:[H("span",{className:"flex items-center gap-x-8px",children:[x(It,{configPath:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${No}`}),H("a",{className:"inline-flex items-center",href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[x(Po,{className:"mr-4px size-16px"}),"去草稿箱浏览"]})]}),x($p,{title:"确定",description:"将覆盖本地设置? 此操作不可逆!",onConfirm:DEe,children:H(lt,{danger:true,type:"primary",children:[x(L9,{}),"从专栏草稿箱中恢复"]})})]})}),x(to,{title:H(_e,{children:["其他",x(pr,{children:"这里是一些作者不愿意解释的设置项 😬"}),x(lt,{onClick:()=>t(n=>!n),className:"ml-10px inline-icon-only-round-button",css:e&&Qf,children:x(IEe,{className:X("size-16px transition-300 transition-transform",e?"rotate-180":"rotate-0")})})]}),children:x(pEe,{expanded:e,children:H("div",{className:"w-full flex gap-x-20px b-1px b-gate-border rounded-6px b-solid p-10px",children:[x(VW,{paths:by,className:"flex-none"}),x("div",{className:"flex flex-1 flex-wrap items-start gap-x-20px gap-y-10px",children:by.map(n=>x(It,{configPath:n,tooltip:H(_e,{children:[n,B9[n]&&H(_e,{children:[x("br",{}),B9[n]]})]}),label:yQ(n.startsWith("__internal")?n.slice(10):n.replaceAll("__internal.",""))},n))})]})})})]})}const B9={};function jW(e,{l:t,c:n,h:r,alpha:o,deltaL:i,deltaC:a,deltaH:l,deltaAlpha:u}={}){const d=t??(i?`calc(l + ${i})`:"l"),m=n??(a?`calc(c + ${a})`:"c"),p=r??(l?`calc(h + ${l})`:"h"),g=o??(u?`calc(alpha + ${u})`:"alpha");return `oklch(from ${e} ${d} ${m} ${p} / ${g})`}function LEe(e,t){return jW(e,{deltaL:t})}function Y3({className:e,...t}){return x(ql,{variant:"solid",...t,className:ur("my-7px",e),css:ln("border-top-color:",jW(xa,{l:.9}),";","")})}const UW=e=>{const t=fU(e,np.appkey,np.appsec);return new URLSearchParams({...e,sign:t})};async function BEe(){const t=(await Xt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",UW({appkey:np.appkey,local_id:"0",ts:"0"}))).data;if(!Vn(t)){fn(t?.message||"获取 auth_code 失败");return}return t.data}async function zEe(e){const n=(await Xt.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",UW({appkey:np.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Vn(n)){const a=n.code.toString(),l=n.message||r[a]||"未知错误";return a==="86038"?{success:false,message:l,action:"refresh"}:a==="86039"||a==="86090"?{success:false,message:l,action:"wait"}:{success:false,message:l,action:void 0}}const o=n.data.access_token,i=Date.now()+n.data.expires_in*1e3;return {success:true,message:"获取成功",accessKey:o,accessKeyExpireAt:i}}const IA={show:false,qrcodeUrl:"",auth_code:"",message:"",expired:false},Tl=kn({...IA});function Gd(e){VEe(),Object.assign(Tl,e);}function kEe(e){Gd({...IA,...e,show:true});}const K1=new Oo;function WW(){Gd({...IA}),K1.emit("hide");}function z9(){return K1.once("hide")}function FEe(){return K1.once("refresh")}function HEe(){const{qrcodeUrl:e,show:t,message:n,expired:r}=yt(Tl),o=WW,i=()=>{K1.emit("refresh");};return H($g,{show:t,onHide:o,hideWhenMaskOnClick:false,hideWhenEsc:false,clsModalMask:"backdrop-blur-10px",clsModal:"aspect-ratio-10/16",width:260,children:[H("div",{className:Io.modalHeader,children:[x("div",{className:Io.modalTitle}),x(Eg,{onClick:o})]}),H("div",{className:X(Io.modalBody,"flex flex-col items-center justify-center text-center"),children:[x("div",{className:"mb-2px min-h-25px flex-center text-size-14px",children:n||""}),e&&H("div",{className:"relative mx-auto mb-40px flex-shrink-0",children:[x(Wpe,{className:"p-8px",value:e,size:200,icon:"https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/72/9c/b6/729cb6d8-75f5-0a56-0508-3a26cbba69ae/AppIcon-1x_U007emarketing-0-6-0-0-85-220-0.png/230x0w.webp"}),r&&H("div",{className:"absolute inset-0 flex flex-col cursor-pointer items-center justify-center bg-black/65 text-white",onClick:i,children:[x("div",{className:"mb-8px text-size-14px font-600",children:"二维码已过期"}),x("div",{className:"border border-white/40 rounded-6px px-12px py-6px text-size-13px",children:"点击刷新"})]})]}),H("div",{className:"footnote text-size-13px line-height-snug",children:["打开「哔哩哔哩」或「bilibili」App ",x("br",{}),"扫码获取 access_key"]})]})]})}const VEe=Rf(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",$a),document.body.appendChild(t),Za.createRoot(t).render(x(Ws,{children:x(HEe,{})}));});async function k9(){const e=await BEe();if(e)return kEe({qrcodeUrl:e.url,auth_code:e.auth_code}),true}async function jEe(){let e,t;if(!await k9())return;e=Tl.auth_code;function r(){if(!Tl.show||!Tl.auth_code||e!==Tl.auth_code)return  true}function o(){return !r()}for(;o();){const i=gn(1500),a=z9();if(await Promise.race([i,a]),a.off(),r())return;t=await zEe(Tl.auth_code);const{success:l,accessKey:u,accessKeyExpireAt:d,message:m,action:p}=t;if(r())return;if(Gd({message:m}),l)return await gn(1e3),WW(),{accessKey:u,accessKeyExpireAt:d};if(p==="refresh"){Gd({message:"二维码已过期,请点击刷新",expired:true});const g=z9(),b=FEe();if(await Promise.race([g,b]),g.off(),b.off(),r()||!await k9())return;e=Tl.auth_code,Gd({message:"已刷新二维码",expired:false});continue}if(p!=="wait"){Gd({message:m}),fn(m);return}}}async function UEe(){const{accessKey:e,accessKeyExpireAt:t}=await jEe()||{};!e||!t||(st.accessKey=e,st.accessKeyExpireAt=t,fn("获取成功"));}function WEe(){st.accessKey="",st.accessKeyExpireAt=0,fn("已删除 access_key");}const F9=x(lt,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function OA({style:e,className:t}){const{runAsync:n,loading:r}=ga(UEe,{manual:true}),{accessKey:o}=Ut();return x(eo,{size:"small",style:e,className:t,children:o?H(_e,{children:[x(lt,{onClick:n,loading:r,children:"重新获取 access_key"}),x($p,{onConfirm:WEe,title:"确定删除 access_key?",children:x(lt,{children:"删除 access_key"})}),F9]}):H(_e,{children:[x(lt,{onClick:n,loading:r,children:"获取 access_key"}),F9]})})}const qEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M2 22V2h2v20zm4-5v-3h10v3zm0-7V7h16v3z"})]}),qW=f.forwardRef(qEe),GEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M11 22v-5H6v-3h5v-4H3V7h8V2h2v5h8v3h-8v4h5v3h-5v5z"})]}),KEe=f.forwardRef(GEe),YEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M20 22V2h2v20zM8 17v-3h10v3zm-6-7V7h16v3z"})]}),GW=f.forwardRef(YEe),KW="w-720px",XEe=(e,t)=>{switch(e){case uu.Left:return t==="flex"?"justify-left":"ml-0 mr-auto";case uu.Right:return t==="flex"?"justify-right":"ml-auto mr-0";default:return t==="flex"?"justify-center":"mx-auto"}};function QEe({className:e}){const{grid:{gridDisplayMode:t,twoColumnModeAlign:n}}=Ut();return H(no.Group,{className:e,disabled:t!==Hr.TwoColumnGrid,buttonStyle:"solid",size:"small",value:n,onChange:r=>{st.grid.twoColumnModeAlign=r.target.value;},children:[x(no.Button,{value:uu.Left,className:"inline-flex-center",children:x(qW,{className:"size-16px"})}),x(no.Button,{value:uu.Center,className:"inline-flex-center",children:x(KEe,{className:"size-16px"})}),x(no.Button,{value:uu.Right,className:"inline-flex-center",children:x(GW,{className:"size-16px"})})]})}const ZEe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm10 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM4 15a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm10 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z"})]}),JEe=f.forwardRef(ZEe),e3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 5h8m-8 4h5m-5 6h8m-8 4h5M3 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm0 10a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"})]}),t3e=f.forwardRef(e3e);function YW(e){return {usingListMode:e===Hr.List,usingTwoColumnMode:e===Hr.TwoColumnGrid,usingCenterEmptyMode:e===Hr.CenterEmptyGrid}}function XW(){const{gridDisplayMode:e}=yt(st.grid);return YW(e)}function DA(e){return e===Hr.List}function n3e(){return yt(st.grid).gridDisplayMode===Hr.List}function r3e({className:e}){const{gridDisplayMode:t}=yt(st.grid),o=ur("flex items-center gap-x-15px","[&_.ant-radio-wrapper]:inline-flex [&_.ant-radio-wrapper]:items-center","[&_.ant-radio-label]:inline-flex [&_.ant-radio-label]:items-center ![&_.ant-radio-label]:pl-4px",e);return x(no.Group,{size:"large",className:o,value:t,onChange:i=>{st.grid.gridDisplayMode=i.target.value;},options:[{value:Hr.NormalGrid,label:x(mn,{title:"这个是默认的网格模式",children:H("span",{className:"inline-flex-center",children:[x(JEe,{className:"mx-4px size-16px cursor-pointer"}),"网格"]})})},{value:Hr.List,label:H(_e,{children:[x(t3e,{className:"mx-4px size-16px cursor-pointer"}),"列表"]})},{value:Hr.TwoColumnGrid,label:H(_e,{children:["双列模式",x(QEe,{className:"ml-5px"})]})},{value:Hr.CenterEmptyGrid,label:x(_e,{children:x(mn,{title:"网格中间不显示卡片",children:"中空模式"})})}]})}const QW=DB&&["/video/","/list/watchlater","/bangumi/play/"].some(e=>location.pathname.startsWith(e)),o3e=[["/video/",()=>/^\/video\/(?<bvid>BV\w+)\/?/.exec(location.pathname)?.groups?.bvid],["/list/watchlater",()=>new URLSearchParams(location.search).get("bvid")||void 0],["/bangumi/play/",()=>{}]];function ZW(){return o3e.find(([t])=>location.pathname.startsWith(t))?.[1]()}function _A(e,t=21){return `https://space.bilibili.com/${ei()}/favlist?fid=${e}&ftype=create`}function JW(e,t=21){return `https://space.bilibili.com/${ei()}/favlist?fid=${e}&ftype=collect&ctype=${t}`}function i3e(e){return `https://www.bilibili.com/list/ml${e}`}function a3e(e){return `https://www.bilibili.com/video/${e}`}function LA(e){return e.toString(2).at(-2)==="0"}function Y1(e){return e.toString(2).at(-1)==="1"}async function eq({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:lc()}),i=(await Xt.post("/x/v3/fav/resource/deal",r)).data,a=Vn(i);return a||fn(i?.message||"fav deal api fail"),a}const $u={getVideoFavState:c3e,addFav:u3e,removeFavs:s3e,moveFavs:l3e,modifyFav:f3e};async function s3e(e,t){const n=new URLSearchParams({resources:[t].flat().join(","),media_id:e.toString(),platform:"web",csrf:lc()}),o=(await Xt.post("/x/v3/fav/resource/batch-del",n)).data,i=Vn(o);return i||fn(o.message||Fy),i}async function l3e(e,t,n){const r=new URLSearchParams({resources:[e].flat().join(","),src_media_id:t.toString(),tar_media_id:n.toString(),mid:ei(),platform:"web",csrf:lc()}),i=(await Xt.post("/x/v3/fav/resource/move",r)).data,a=Vn(i);return a||fn(i?.message||"fav deal api fail"),a}async function c3e(e){if(!N1())return;const r=(await Xt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:ei(),type:2,rid:e}})).data.data.list.filter(l=>l.fav_state>0),o=r.map(l=>l.title),i=r.map(l=>_A(l.id)),a=r.map(l=>l.id);return {favFolders:r,favFolderNames:o,favFolderUrls:i,favFolderIds:a}}let g$,X3;async function u3e(e,t){if(!t&&(!g$||!X3)){await f6();const{folders:n}=pn,r=n.find(o=>LA(o.attr))??n[0];if(!r)return fn("没有找到默认收藏夹!");g$=r.id,X3=r.title;}return t||=g$,t?await eq({avid:e,add_media_ids:t.toString()}):fn("没有找到默认收藏夹!")}async function d3e(){return (await Xt.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:ei()}})).data.data.list}async function f3e(e,t,n){const r=(t??[]).filter(u=>u!==void 0),o=[n].filter(u=>u!==void 0),i=b0(r,o),a=b0(o,r);return await eq({avid:e,del_media_ids:i.length?i.join(","):void 0,add_media_ids:a.length?a.join(","):void 0})}async function m3e(e){const n=(await Xt.get("/x/v3/fav/folder/info",{params:{media_id:e,web_location:"0.0"}})).data;if(!Vn(n))throw new Oxe(n);return n.data}async function h3e(e,t){const n=await m3e(e);if(!n)return;const r=new URLSearchParams({media_id:e.toString(),title:t,intro:n.intro,cover:n.cover,privacy:Y1(n.attr)?"1":"0",csrf:lc()}),i=(await Xt.post("/x/v3/fav/folder/edit",r)).data,a=Vn(i);if(!a){const l=i.message||"编辑收藏夹失败";fn(l);}return a}async function p3e(e){return (await Xt.get("/x/v3/fav/folder/collected/list",{params:{up_mid:ei(),platform:"web",ps:20,pn:e}})).data.data}async function g3e(){let e=1,t=true,n=[];for(;t;){const r=await p3e(e);n.push(...r.list),t=r.has_more,e++;}return n=n.filter(r=>!(r.title==="该合集已失效"&&r.upper.mid===0)),n=Zl(n,r=>r.id),n}async function v3e(e,t){return (await Xt.get("/x/space/fav/season/list",{params:{season_id:e,ps:20,pn:t}})).data.data}var Dt=(e=>(e.Initial="initial",e.Shuffle="shuffle",e.PubTimeDesc="pub-time-desc",e.PubTimeAsc="pub-time-asc",e.PlayCountDesc="play-count-desc",e.CollectCountDesc="collect-count-desc",e.FavTimeDesc="fav-time-desc",e.FavTimeAsc="fav-time-asc",e))(Dt||{});function Q3(e,t){return t==="initial"?e:t==="shuffle"?Ci(e):t==="pub-time-desc"||t==="pub-time-asc"?xs(e,[r=>r.pubtime],[t==="pub-time-desc"?"desc":"asc"]):(t==="fav-time-desc"||t==="fav-time-asc")&&e.every(n=>n.from==="fav-folder")?xs(e,[r=>r.fav_time],[t==="fav-time-desc"?"desc":"asc"]):t==="play-count-desc"?xs(e,[n=>n.cnt_info.play],["desc"]):t==="collect-count-desc"?xs(e,[n=>n.cnt_info.collect],["desc"]):e}var Qe=(e=>(e.Separator="separator",e.AppRecommend="app-recommend",e.PcRecommend="pc-recommend",e.DynamicFeed="dynamic-feed",e.Watchlater="watchlater",e.Fav="fav",e.PopularGeneral="popular-general",e.PopularWeekly="popular-weekly",e.Rank="ranking",e.Live="live",e.SpaceUpload="space-upload",e.Liked="liked",e))(Qe||{});function Xl(e){return e.api===Qe.AppRecommend}function Ql(e){return e.api===Qe.PcRecommend}function Kd(e){return e.api===Qe.DynamicFeed}function tq(e){return e.api===Qe.Watchlater}function Eu(e){return e.api===Qe.Fav}function nq(e){return e.api===Qe.Rank}function Bp(e){return e.api===Qe.Live}function Z3(e){return e.api===Qe.SpaceUpload}function om(e){const t=u5.createInstance({driver:u5.INDEXEDDB,name:ao,storeName:e});return {db:t,get(n){return t.getItem(n.toString())},set(n,r){return t.setItem(n.toString(),r)},delete(n){return t.removeItem(n.toString())}}}function _u({fn:e,generateKey:t,tableName:n,ttl:r,concurrency:o,autoCleanUp:i=true}){const a=typeof n=="string"?om(n):n,l=Jl(()=>{a.db.iterate((g,b)=>{u(g)||a.db.removeItem(b);});},1e3);i&&O1().then(l);function u(g){return !!(g&&g.val&&g.ts&&Date.now()-g.ts<=r)}async function d(...g){const b=t(...g),y=await a.get(b);if(y&&u(y))return y.val}const m=o&&o>0?VH(e,o):e,p=lA(m,{cacheKey(g){return t(...g)},cache:{async has(g){const b=await a.get(g);return u(b)},async get(g){const b=await a.get(g);if(b&&u(b))return b.val},async set(g,b){Va(b)||await a.set(g,{val:b,ts:Date.now()});},async delete(g){await a.delete(g);}}});return Object.defineProperties(p,{cache:{value:a},cleanUp:{value:l},generateKey:{value:t},shouldReuseCached:{value:u},queryCache:{value:d}}),p}async function b3e(e){return (await Xt.get("/x/web-interface/view",{params:{bvid:e}})).data.data}const rq=_u({fn:b3e,generateKey:e=>e,tableName:"video-detail",ttl:co("3M"),concurrency:3});async function y3e(e){return (await Xt.get("/x/player/pagelist",{params:{bvid:e}})).data?.data||[]}const oq=_u({fn:y3e,generateKey:e=>e,tableName:"video-page-list",ttl:co("3M"),concurrency:3});async function iq(e,t){const n=ei(),r=lc(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:S3e()}),csrf:r}),a=(await Xt.post("/x/relation/modify",o)).data,l=Vn(a);return l||fn(a.message||"未知错误"),l}function S3e(){let e,t;const n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{};let r="empty";return n&&(r=`${n.webdriver}${n.screenResolution}${n.platform}${n.hardwareConcurrency}${n.deviceMemory}${n.colorDepth}${n.indexedDb}${n.language}${n.openDatabase}${n.touchSupport}${n.userAgent}`),decodeURIComponent(r)}const C3e=so.extend("service:user:relations:blacklist"),x3e=sq("follow"),w3e=sq("remove"),aq={add:x3e,remove:w3e},{set:Qh,replaceAllWith:$3e}=await( WH("blacklist-mids"));function E3e(e){const t=yt(Qh);return !!e&&t.has(e)}function sq(e){const t=e==="follow"?5:6;return async function(r){const o=await iq(r,t);if(o){const i=Qh;e==="follow"?i.add(r):e==="remove"&&i.delete(r);}return o}}async function M3e(){const t=async a=>{const u=(await Xt.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:a}})).data;if(!Vn(u))return;const d=u.data.total,m=u.data.list.map(p=>p.mid);return {total:d,mids:m}},n=await t(1);if(!n)return;const{total:r,mids:o=[]}=n;let i=o;if(r){const a=Math.ceil(r/20);for(let l=2;l<=a;l++){const{mids:u=[]}=await t(l)||{};i=i.concat(u);}}return i}(async()=>{if(!Ls)return;await O1();const e=await M3e();C3e("user blocklist fetched: %o",e),e&&$3e(e.map(t=>t.toString()));})();var hi;(e=>{(t=>{t.Av="DYNAMIC_TYPE_AV",t.Draw="DYNAMIC_TYPE_DRAW",t.PgcUnion="DYNAMIC_TYPE_PGC_UNION",t.UgcSeason="DYNAMIC_TYPE_UGC_SEASON",t.Forward="DYNAMIC_TYPE_FORWARD",t.Article="DYNAMIC_TYPE_ARTICLE",t.LiveRcmd="DYNAMIC_TYPE_LIVE_RCMD";})(e.ItemType||(e.ItemType={})),(t=>{t.Normal="AUTHOR_TYPE_NORMAL",t.Pgc="AUTHOR_TYPE_PGC",t.UgcSeason="AUTHOR_TYPE_UGC_SEASON";})(e.AuthorType||(e.AuthorType={})),(t=>{t.Archive="MAJOR_TYPE_ARCHIVE",t.Opus="MAJOR_TYPE_OPUS",t.Pgc="MAJOR_TYPE_PGC",t.UgcSeason="MAJOR_TYPE_UGC_SEASON",t.LiveRcmd="MAJOR_TYPE_LIVE_RCMD";})(e.MajorType||(e.MajorType={})),(t=>{t.Goods="ADDITIONAL_TYPE_GOODS",t.Reserve="ADDITIONAL_TYPE_RESERVE";})(e.AdditionalType||(e.AdditionalType={}));})(hi||(hi={}));function gh(e){const t=e.modules.module_dynamic.major;if(t?.type==="MAJOR_TYPE_ARCHIVE")return t.archive}async function R3e({appKey:e,nscode:t,versionId:n}){const r={appKey:e,nscode:t,versionId:n};return (await Xt.get("/x/kv-frontend/namespace/data",{params:r})).data}function lq({appKey:e,nscode:t}){return new URLSearchParams([["appKey",e],["nscode",t.toString()]]).toString()}const H9=om("kv-latest-version"),T3e=Vs(async({appKey:e,nscode:t})=>{const n=lq({appKey:e,nscode:t}),r=await H9.get(n);let o="0";r&&r.versionId&&r.data&&Object.keys(r.data).length&&(o=r.versionId);const i=await R3e({appKey:e,nscode:t,versionId:o});return r?.data&&i.code===-304&&i.message==="Not Modified"?r.data:(await H9.set(n,i.data),i.data.data)}),A3e=_u({fn:T3e,tableName:"get-kv-data",generateKey:({appKey:e,nscode:t})=>lq({appKey:e,nscode:t}),ttl:co("1h")});function N3e(e={},t){t.endsWith(".")||(t+=".");const n={};return e&&Object.keys(e).filter(r=>r.startsWith(t)).forEach(r=>{const o=r.slice(t.length),i=e[r]||"";n[o]=i;}),n}const V9=[{tid:0,name:"全部",slug:"all",season_type:0,type:"all"},{tid:0,name:"番剧",slug:"anime",season_type:1,type:"anime"},{tid:0,name:"国创",slug:"guochuang",season_type:4,type:"guochuang"},{tid:0,name:"纪录片",slug:"documentary",season_type:3,type:"documentary"},{tid:0,name:"电影",slug:"movie",season_type:2,type:"movie"},{tid:0,name:"电视剧",slug:"tv",season_type:5,type:"tv"},{tid:0,name:"综艺",slug:"variety",season_type:7,type:"variety"},{tid:1005,name:"动画",slug:"douga",season_type:0,type:"douga"},{tid:1008,name:"游戏",slug:"game",season_type:0,type:"game"},{tid:1007,name:"鬼畜",slug:"kichiku",season_type:0,type:"kichiku"},{tid:1003,name:"音乐",slug:"music",season_type:0,type:"music"},{tid:1004,name:"舞蹈",slug:"dance",season_type:0,type:"dance"},{tid:1001,name:"影视",slug:"cinephile",season_type:0,type:"cinephile"},{tid:1002,name:"娱乐",slug:"ent",season_type:0,type:"ent"},{tid:1010,name:"知识",slug:"knowledge",season_type:0,type:"knowledge"},{tid:1012,name:"科技数码",slug:"tech",season_type:0,type:"tech"},{tid:1020,name:"美食",slug:"food",season_type:0,type:"food"},{tid:1013,name:"汽车",slug:"car",season_type:0,type:"car"},{tid:1014,name:"时尚美妆",slug:"fashion",season_type:0,type:"fashion"},{tid:1018,name:"体育运动",slug:"sports",season_type:0,type:"sports"},{tid:1024,name:"动物",slug:"animal",season_type:0,type:"animal"}],BA={name:"全站",tid:0,slug:"all"};async function P3e(){try{return await I3e()||V9}catch(e){return dZ("parseRankTabsConfig failed",e),V9}}async function I3e(){const e=await A3e({appKey:"333.1339",nscode:10}),t=N3e(e,"channel_list"),n=JSON.parse(t.popular_page_sort||"");if(!n.length)return;const r=[],o=i=>{r.push({tid:i.tid||0,name:i.name,slug:i.route,season_type:i.seasonType||0,type:i.route});};for(const i of n){if(!t[i])continue;const a=JSON.parse(t[i]);o(a);}return Zl(r,i=>i.slug)}var f0=(e=>(e.Normal="normal",e.PgcSeason="pgc/season",e.PgcWeb="pgc/web",e))(f0||{});function cq(e){if(!["anime","guochuang","documentary","movie","tv","variety"].includes(e.type||""))return {apiType:"normal",url:`/x/web-interface/ranking/v2?rid=${e.tid}&type=all`};const{season_type:t}=e,n=`?day=3&season_type=${t}`;let r=`/pgc/web/rank/list${n}`,o="pgc/web";return t&&[2,3,4,5,7].includes(t)&&(r=`/pgc/season/rank/web/list${n}`,o="pgc/season"),{apiType:o,url:r}}function zA(e){return e.from==="normal"}function O3e(e){return e.from==="pgc/season"}function D3e(e){return e.from==="pgc/web"}const uq=23442827791579n,_3e=2251799813685247n,L3e=1n<<51n,J3=58n,dq="FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf";function kA(e){const t=["B","V","1","0","0","0","0","0","0","0","0","0"];let n=t.length-1,r=(L3e|BigInt(e))^uq;for(;r>0;)t[n]=dq[Number(r%BigInt(J3))],r=r/J3,n-=1;return [t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]],t.join("")}function B3e(e){const t=Array.from(e);[t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]],t.splice(0,3);const n=t.reduce((r,o)=>r*J3+BigInt(dq.indexOf(o)),0n);return Number(n&_3e^uq)}const z3e=fg(e=>H("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[x("path",{d:"M12 4.99805C9.48178 4.99805 7.283 5.12616 5.73089 5.25202C4.65221 5.33949 3.81611 6.16352 3.72 7.23254C3.60607 8.4998 3.5 10.171 3.5 11.998C3.5 13.8251 3.60607 15.4963 3.72 16.76355C3.81611 17.83255 4.65221 18.6566 5.73089 18.7441C7.283 18.8699 9.48178 18.998 12 18.998C14.5185 18.998 16.7174 18.8699 18.2696 18.74405C19.3481 18.65655 20.184 17.8328 20.2801 16.76405C20.394 15.4973 20.5 13.82645 20.5 11.998C20.5 10.16965 20.394 8.49877 20.2801 7.23205C20.184 6.1633 19.3481 5.33952 18.2696 5.25205C16.7174 5.12618 14.5185 4.99805 12 4.99805zM5.60965 3.75693C7.19232 3.62859 9.43258 3.49805 12 3.49805C14.5677 3.49805 16.8081 3.62861 18.3908 3.75696C20.1881 3.90272 21.6118 5.29278 21.7741 7.09773C21.8909 8.3969 22 10.11405 22 11.998C22 13.88205 21.8909 15.5992 21.7741 16.8984C21.6118 18.7033 20.1881 20.09335 18.3908 20.23915C16.8081 20.3675 14.5677 20.498 12 20.498C9.43258 20.498 7.19232 20.3675 5.60965 20.2392C3.81206 20.0934 2.38831 18.70295 2.22603 16.8979C2.10918 15.5982 2 13.8808 2 11.998C2 10.1153 2.10918 8.39787 2.22603 7.09823C2.38831 5.29312 3.81206 3.90269 5.60965 3.75693z",fill:"currentColor"}),x("path",{d:"M14.7138 10.96875C15.50765 11.4271 15.50765 12.573 14.71375 13.0313L11.5362 14.8659C10.74235 15.3242 9.75 14.7513 9.75001 13.8346L9.75001 10.1655C9.75001 9.24881 10.74235 8.67587 11.5362 9.13422L14.7138 10.96875z",fill:"currentColor"})]})),k3e=fg(e=>H("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[x("path",{d:"M12 4.99805C9.48178 4.99805 7.283 5.12616 5.73089 5.25202C4.65221 5.33949 3.81611 6.16352 3.72 7.23254C3.60607 8.4998 3.5 10.171 3.5 11.998C3.5 13.8251 3.60607 15.4963 3.72 16.76355C3.81611 17.83255 4.65221 18.6566 5.73089 18.7441C7.283 18.8699 9.48178 18.998 12 18.998C14.5185 18.998 16.7174 18.8699 18.2696 18.74405C19.3481 18.65655 20.184 17.8328 20.2801 16.76405C20.394 15.4973 20.5 13.82645 20.5 11.998C20.5 10.16965 20.394 8.49877 20.2801 7.23205C20.184 6.1633 19.3481 5.33952 18.2696 5.25205C16.7174 5.12618 14.5185 4.99805 12 4.99805zM5.60965 3.75693C7.19232 3.62859 9.43258 3.49805 12 3.49805C14.5677 3.49805 16.8081 3.62861 18.3908 3.75696C20.1881 3.90272 21.6118 5.29278 21.7741 7.09773C21.8909 8.3969 22 10.11405 22 11.998C22 13.88205 21.8909 15.5992 21.7741 16.8984C21.6118 18.7033 20.1881 20.09335 18.3908 20.23915C16.8081 20.3675 14.5677 20.498 12 20.498C9.43258 20.498 7.19232 20.3675 5.60965 20.2392C3.81206 20.0934 2.38831 18.70295 2.22603 16.8979C2.10918 15.5982 2 13.8808 2 11.998C2 10.1153 2.10918 8.39787 2.22603 7.09823C2.38831 5.29312 3.81206 3.90269 5.60965 3.75693z",fill:"currentColor"}),x("path",{d:"M15.875 10.75L9.875 10.75C9.46079 10.75 9.125 10.4142 9.125 10C9.125 9.58579 9.46079 9.25 9.875 9.25L15.875 9.25C16.2892 9.25 16.625 9.58579 16.625 10C16.625 10.4142 16.2892 10.75 15.875 10.75z",fill:"currentColor"}),x("path",{d:"M17.375 14.75L11.375 14.75C10.9608 14.75 10.625 14.4142 10.625 14C10.625 13.5858 10.9608 13.25 11.375 13.25L17.375 13.25C17.7892 13.25 18.125 13.5858 18.125 14C18.125 14.4142 17.7892 14.75 17.375 14.75z",fill:"currentColor"}),x("path",{d:"M7.875 10C7.875 10.4142 7.53921 10.75 7.125 10.75L6.625 10.75C6.21079 10.75 5.875 10.4142 5.875 10C5.875 9.58579 6.21079 9.25 6.625 9.25L7.125 9.25C7.53921 9.25 7.875 9.58579 7.875 10z",fill:"currentColor"}),x("path",{d:"M9.375 14C9.375 14.4142 9.03921 14.75 8.625 14.75L8.125 14.75C7.71079 14.75 7.375 14.4142 7.375 14C7.375 13.5858 7.71079 13.25 8.125 13.25L8.625 13.25C9.03921 13.25 9.375 13.5858 9.375 14z",fill:"currentColor"})]})),F3e=fg(function(e){return H("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:[x("path",{d:"M8.624933333333333 13.666666666666666C8.624933333333333 14.011849999999999 8.345125 14.291666666666666 7.999933333333333 14.291666666666666C4.525166666666666 14.291666666666666 1.7082933333333332 11.474791666666665 1.7082933333333332 8C1.7082933333333332 6.013308333333333 2.629825 4.2414233333333335 4.066321666666667 3.089385C4.335603333333333 2.8734283333333335 4.728959999999999 2.9166533333333335 4.944915 3.1859349999999997C5.160871666666666 3.4552099999999997 5.1176466666666665 3.848573333333333 4.848366666666666 4.0645283333333335C3.694975 4.98953 2.9582933333333328 6.40852 2.9582933333333328 8C2.9582933333333328 10.784416666666667 5.215528333333333 13.041666666666666 7.999933333333333 13.041666666666666C8.345125 13.041666666666666 8.624933333333333 13.321483333333333 8.624933333333333 13.666666666666666zM11.060475 12.810558333333333C10.844225000000002 12.541558333333331 10.887033333333335 12.148125 11.156041666666667 11.931875C12.306858333333333 11.006775 13.041599999999999 9.589424999999999 13.041599999999999 8C13.041599999999999 5.215561666666666 10.784408333333332 2.958333333333333 7.999933333333333 2.958333333333333C7.6548083333333325 2.958333333333333 7.374933333333333 2.6785083333333333 7.374933333333333 2.333333333333333C7.374933333333333 1.9881533333333332 7.6548083333333325 1.7083333333333333 7.999933333333333 1.7083333333333333C11.474725000000001 1.7083333333333333 14.291599999999999 4.525206666666667 14.291599999999999 8C14.291599999999999 9.984108333333333 13.372483333333332 11.753958333333332 11.939225 12.906125C11.670166666666663 13.122375 11.276725 13.079625 11.060475 12.810558333333333z",fill:"currentColor"}),x("path",{d:"M1.375 3.4130866666666666C1.375 3.0679066666666666 1.654825 2.7880866666666666 2 2.7880866666666666L4.333333333333333 2.7880866666666666C4.862608333333333 2.7880866666666666 5.291666666666666 3.2171449999999995 5.291666666666666 3.7464199999999996L5.291666666666666 6.079753333333334C5.291666666666666 6.424928333333334 5.011841666666666 6.704736666666666 4.666666666666666 6.704736666666666C4.321491666666667 6.704736666666666 4.041666666666666 6.424928333333334 4.041666666666666 6.079753333333334L4.041666666666666 4.038086666666667L2 4.038086666666667C1.654825 4.038086666666667 1.375 3.7582616666666664 1.375 3.4130866666666666z",fill:"currentColor"}),x("path",{d:"M14.625 12.5864C14.625 12.931591666666666 14.345183333333333 13.2114 14 13.2114L11.666666666666666 13.2114C11.137408333333335 13.2114 10.708333333333332 12.782383333333332 10.708333333333332 12.253066666666665L10.708333333333332 9.919733333333333C10.708333333333332 9.574608333333334 10.98815 9.294733333333333 11.333333333333332 9.294733333333333C11.678516666666667 9.294733333333333 11.958333333333332 9.574608333333334 11.958333333333332 9.919733333333333L11.958333333333332 11.9614L14 11.9614C14.345183333333333 11.9614 14.625 12.241275000000002 14.625 12.5864z",fill:"currentColor"})]})});function Ey(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(Number).reverse().reduce((o,i,a)=>o+i*t[a],0)}function qs(e){return e||=0,Yn.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function H3e(e){if(!e)return typeof e=="number"?"0":e;if(e<=9999)return e.toString();const t=n=>n.replace(/\.0$/,"");if(e/=1e4,e<=9999)return `${t(e.toFixed(1))}万`;if(e/=1e4,e<=9999)return `${t(e.toFixed(1))}亿`;console.warn(`formatCount(count = ${e}); can not handle input`);}function Jc(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(?:\.\d+)?万$/.test(e))return Number(e.slice(0,-1))*1e4;if(/^\d+(?:\.\d+)?亿$/.test(e))return Number(e.slice(0,-1))*1e8}}const V3e=Yn().format("YYYY");function m0(e,t=false){if(!e)return "";const n=Yn.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===V3e?n.format(`M-D${r}`):n.format(`YY-M-D${r}`)}function j3e(e){const t=Yn().subtract(1,"day").startOf("day").unix();return e>=t}function U3e(e,t){if(!e)return;const n=Yn.unix(e),r=n.format("YYYY-MM-DD")===Yn().format("YYYY-MM-DD"),o=r&&Date.now()-e*1e3<=co("12h"),i=n.format("YYYY-MM-DD")===Yn().subtract(1,"day").format("YYYY-MM-DD"),a=n.format("YYYY")===Yn().format("YYYY");if(o){const l=Yn().diff(n,"minutes"),u=Yn().diff(n,"hours");return l<1?"刚刚":l<60?`${l}分钟前`:`${u}小时前`}return r?n.format("今天 HH:mm"):i?n.format("昨天 HH:mm"):a?n.format("M月D日"):n.format("YYYY年M月D日")}const W3e={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function q3e(e){if(e!==void 0&&!(e>=0))return W3e[e]}const G3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M27.6 18.6v-7.2A5.4 5.4 0 0 0 22.2 6L15 22.2V42h20.916a3.6 3.6 0 0 0 3.6-3.06L42 22.74a3.6 3.6 0 0 0-3.6-4.14zM15 22h-4.806C8.085 21.963 6.283 23.71 6 25.8v12.6a4.16 4.16 0 0 0 4.194 3.6H15z"})]}),K3e=f.forwardRef(G3e),Y3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M6.979 3.074a6 6 0 0 1 4.988 1.425l.037.033l.034-.03a6 6 0 0 1 4.733-1.44l.246.036a6 6 0 0 1 3.364 10.008l-.18.185l-.048.041l-7.45 7.379a1 1 0 0 1-1.313.082l-.094-.082l-7.493-7.422A6 6 0 0 1 6.979 3.074"})]}),X3e=f.forwardRef(Y3e),Q3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m6 0h6m-6 3h6M9 8l3 4.5"}),x("path",{d:"m15 8l-3 4.5V17"})]})]}),Z3e=f.forwardRef(Q3e),J3e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 36c11.046 0 20-12 20-12s-8.954-12-20-12S4 24 4 24s8.954 12 20 12Z"}),x("path",{d:"M24 29a5 5 0 1 0 0-10a5 5 0 0 0 0 10Z"})]})]}),eMe=f.forwardRef(J3e),tMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z"})]}),nMe=f.forwardRef(tMe),rMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"m15 14l4-4l-4-4"}),x("path",{d:"M19 10H8a4 4 0 1 0 0 8h1"})]})]}),oMe=f.forwardRef(rMe);const j9="size-18px",_c="size-16px",iMe={play:x(z3e,{className:j9}),danmaku:x(k3e,{className:j9}),like:x(K3e,{className:_c}),"bangumi:follow":x(X3e,{className:_c}),favorite:x(Cf,{className:_c}),coin:x(Z3e,{className:_c}),"live:viewed-by":x(eMe,{className:_c}),"dynamic-feed:comment":x(nMe,{className:_c}),"dynamic-feed:forward":x(oMe,{className:_c})},aMe=f.memo(function({field:e,value:t}){const n=f.useMemo(()=>typeof t=="number"||t&&/^\d+$/.test(t)?H3e(Number(t))??y_:t??y_,[t]),r=iMe[e];return H("span",{"data-field":e,className:"bili-video-card__stats--item gap-x-2px mr-0!",children:[r,x("span",{className:X("bili-video-card__stats--text line-height-18px"),children:n})]})});var ws=(e=>(e.AV="av",e.Ad="ad",e.Live="live",e))(ws||{});const sMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7.5.875A3.626 3.626 0 0 1 11.127 4.5A3.624 3.624 0 0 1 8.5 7.983c1.197.145 2.224.568 2.997 1.33c.981.967 1.478 2.408 1.478 4.288a.475.475 0 0 1-.949 0c0-1.72-.453-2.88-1.196-3.613c-.745-.733-1.856-1.113-3.33-1.113c-1.472 0-2.584.38-3.328 1.113s-1.197 1.893-1.197 3.613a.475.475 0 0 1-.949 0c0-1.88.497-3.32 1.479-4.289c.772-.76 1.799-1.183 2.995-1.328a3.627 3.627 0 0 1 1-7.109m0 .95a2.676 2.676 0 1 0 0 5.35a2.676 2.676 0 0 0 0-5.35"})]}),fq=f.forwardRef(sMe),lMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17 19.5c0-1.657-2.239-3-5-3s-5 1.343-5 3m14-3c0-1.23-1.234-2.287-3-2.75M3 16.5c0-1.23 1.234-2.287 3-2.75m12-4.014a3 3 0 1 0-4-4.472M6 9.736a3 3 0 0 1 4-4.472m2 8.236a3 3 0 1 1 0-6a3 3 0 0 1 0 6"})]}),cMe=f.forwardRef(lMe),uMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})]}),dMe=f.forwardRef(uMe),mq=fq,hq=cMe,zp=dMe;function pq(e){return `https://space.bilibili.com/${ei()}/fans/follow?tagid=${e}`}function Ag(e){return `https://space.bilibili.com/${e}`}const gq=uU("w_webid"),vq=Vs(async()=>{const e=await gq.get();return e||fMe()});async function fMe(){const e=ei();if(!e)return;const t=Ag(e),r=(await Xt.get(t,{responseType:"text",withCredentials:true})).data,i=new DOMParser().parseFromString(r,"text/html"),a=decodeURIComponent(i.getElementById("__RENDER_DATA__")?.textContent?.trim()||"");if(!a)return;const l=JSON.parse(a)?.access_id;return l&&await gq.set(l),l}async function bq({removeEmpty:e=true}={}){const t=await A1({web_location:"0.0",w_webid:await vq()||""}),o=(await Xt.get("/x/relation/tags",{params:t})).data.data||[];return e?o.filter(i=>!!i.count):o}async function eM(e){const n=async l=>(await Xt.get("/x/relation/tag",{params:{mid:ei(),tagid:e,pn:l,ps:20}})).data.data||[];let r=1,o=[],i=[];do i=await n(r),o=o.concat(i),r++;while(i.length===20);return ky(o.map(l=>l.mid))}async function mMe(){return (await Xt.get("/x/polymer/web-dynamic/v1/portal")).data?.data?.up_list||[]}var gi=(e=>(e.Mid="dyn-mid",e.GroupId="dyn-group-id",e.FilterTextFull="dyn-filter-text",e.FilterTextShort="dyn-filter",e.Offset="dyn-offset",e.MinId="dyn-min-id",e.MinTs="dyn-min-ts",e))(gi||{});const Os=new URLSearchParams(location.search),Ds=Os.get("dyn-mid")?.trim(),tM=Os.get("dyn-group-id")?.trim()?Number(Os.get("dyn-group-id").trim()):void 0,hMe=Os.get("dyn-offset")||void 0,yq=Ds&&(Os.get("dyn-filter-text")||Os.get("dyn-filter"))||void 0,nM=Ds?Os.get("dyn-min-id"):void 0,U9=nM?Os.get("dyn-min-ts"):void 0,FA=Ls&&(!!Ds||tM!==void 0);let rM,Sq,Cq;FA&&(Ds?(rM=Ds,Sq=Os.get("dyn-name")??rM?.toString()??void 0):tM!==void 0&&(Cq=tM));var Ba=(e=>(e.All="all",e.UploadOnly="upload-only",e.DynamicOnly="dynamic-only",e))(Ba||{}),da=(e=>(e.Upload="投稿视频",e.Dynamic="动态视频",e.ChargeOnly="充电专属",e))(da||{});const pMe={all:"全部","upload-only":"仅投稿视频","dynamic-only":"仅动态视频"};var du=(e=>(e.All="all",e._5m="5min",e._2m="2min",e._1m="1min",e._30s="30s",e._10s="10s",e))(du||{});const xq={all:{label:"全部时长",duration:0},"5min":{label:"5分钟",duration:300},"2min":{label:"2分钟",duration:120},"1min":{label:"1分钟",duration:60},"30s":{label:"30秒",duration:30},"10s":{label:"10秒",duration:10}},kp="all",Mf="up:",Mu="group:",gMe=(await( WH("dynamic-feed:hide-charge-only-videos-for-keys"))).set,vMe=(await( qH("dynamic-feed:add-separators"))).map,en=wq();function wq(){return kn({upMid:rM,upName:Sq,upFace:void 0,upList:[],upListUpdatedAt:0,groups:[],groupsUpdatedAt:0,selectedGroupId:Cq,get selectedGroup(){if(typeof this.selectedGroupId=="number")return this.groups.find(e=>e.tagid===this.selectedGroupId)},dynamicFeedVideoType:"all",filterText:yq??void 0,get viewingAll(){return this.selectedKey===kp},get viewingSomeUp(){return !!this.upMid},get viewingSomeGroup(){return typeof this.selectedGroupId=="number"},get selectedKey(){return this.upMid?`${Mf}${this.upMid}`:this.selectedGroupId!==void 0?`${Mu}${this.selectedGroupId}`:kp},hideChargeOnlyVideosForKeysSet:gMe,get hideChargeOnlyVideos(){return this.hideChargeOnlyVideosForKeysSet.has(this.selectedKey)},addSeparatorsMap:vMe,get addSeparators(){return this.addSeparatorsMap.get("global")??false},filterMinDuration:"all",get filterMinDurationValue(){return xq[this.filterMinDuration].duration},updateUpList:$q,updateGroups:Eq})}kn({followGroupInfo:{}});async function $q(e=false){if(!e&&en.upList.length&&en.upListUpdatedAt&&en.upListUpdatedAt-Date.now()<co("5min"))return;const n=await mMe();en.upList=n,en.upListUpdatedAt=Date.now();}async function Eq(e=false){{const{followGroup:n,whenViewAll:r}=st.dynamicFeed;if(!(n.enabled||!!r.hideIds.filter(i=>i.startsWith(Mu)).length))return}!e&&en.groups.length&&en.groupsUpdatedAt&&en.groupsUpdatedAt-Date.now()<co("1h")||(en.groups=await bq({removeEmpty:true}),en.groupsUpdatedAt=Date.now());}function Mq(){if(ei())return Promise.all([$q(),Eq()])}(async()=>Ls&&(await gn(5e3),(!en.upList.length||!en.groups.length)&&(await O1(),Mq())))();Ds&&UH(en,["upName","filterText","selectedGroup","viewingSomeUp","viewingAll"],({upName:e,filterText:t,selectedGroup:n,viewingSomeUp:r,viewingAll:o})=>{let i=o?"动态":r?`「${e}」的动态`:`「${n?.name}」分组动态`;t&&(i=`🔍【${t}】 - ${i}`),pA(i);});function bMe(e){const{major:t,additional:n}=e.modules.module_dynamic;if(n?.type===hi.AdditionalType.Goods)return  true;if(t?.type===hi.MajorType.Opus){const r=t.opus.title||"";if(["B站密令","大红包"].some(o=>r.includes(o)))return  true}return  false}function Rq(e){if(bMe(e))return;const t=e.modules.module_dynamic.major;if(!t)return;const n=e.modules.module_author,r=e.modules.module_dynamic.additional,o=t.type,i={authorName:n.name,authorFace:n.face,authorMid:n.mid.toString(),followed:n.following,pubts:n.pub_ts,statItems:[{field:"like",value:e.modules.module_stat.like.count},{field:"dynamic-feed:comment",value:e.modules.module_stat.comment.count},{field:"dynamic-feed:forward",value:e.modules.module_stat.forward.count}],recommendReason:n.pub_action};if(o===hi.MajorType.Archive&&t.archive){const a=t.archive;return {...i,avid:a.aid,bvid:a.bvid,goto:"av",href:`/video/${a.bvid}/`,title:a.title,cover:a.cover,duration:Ey(a.duration_text)||0,durationStr:a.duration_text,recommendReason:a.badge.text===da.Upload?a.badge.text:void 0,topMarkIcon:a.badge.text===da.Upload?void 0:a.badge.icon_url??void 0,topMarkText:a.badge.text===da.Upload?void 0:a.badge.text,statItems:[{field:"play",value:a.stat.play},{field:"danmaku",value:a.stat.danmaku}],play:Jc(a.stat.play),danmaku:Jc(a.stat.danmaku)}}if(o===hi.MajorType.Opus&&t.opus){const{opus:a}=t,l=!!a.pics?.length,u=r?.type===hi.AdditionalType.Reserve,d=u&&/直播预告/.test(r.reserve.title),m=(()=>{if(d)return "直播预告";if(u)return r.reserve.title?.split(":")[0]||"预约";if(e.type===hi.ItemType.Draw)return l?"图片":"文字动态";if(e.type===hi.ItemType.Article)return "专栏"})();return {...i,goto:"opus",href:a.jump_url,cover:a.pics?.[0]?.url,title:a.title||a.summary?.text||"",topMarkText:m}}if(o===hi.MajorType.Pgc&&t.pgc){const{pgc:a}=t;return {...i,cover:a.cover,goto:"bangumi",href:a.jump_url,title:a.title,statItems:[{field:"play",value:a.stat.play},{field:"danmaku",value:a.stat.danmaku}],topMarkText:n.label,pubts:n.pub_ts,pubdateDisplay:n.pub_time}}if(o===hi.MajorType.UgcSeason&&t.ugc_season){const{ugc_season:a}=t;return {...i,bvid:a.bvid,avid:a.aid.toString(),goto:"av",duration:Ey(a.duration_text),durationStr:a.duration_text,cover:a.cover,href:`/video/${a.bvid}/`,title:a.title,statItems:[{field:"play",value:a.stat.play},{field:"danmaku",value:a.stat.danmaku}],play:Jc(a.stat.play),danmaku:Jc(a.stat.danmaku),recommendReason:n.pub_action,topMarkText:"合集",authorMid:void 0}}}var Tq=function(e){return function(t,n,r){return e(t,n,r)*r}},oM=function(e,t){if(e)throw Error("Invalid sort config: "+t)},Aq=function(e){var t=e||{},n=t.asc,r=t.desc,o=n?1:-1,i=n||r;oM(!i,"Expected `asc` or `desc` property"),oM(n&&r,"Ambiguous object with `asc` and `desc` config properties");var a=e.comparer&&Tq(e.comparer);return {order:o,sortBy:i,comparer:a}},yMe=function(e){return function t(n,r,o,i,a,l,u){var d,m;if(typeof n=="string")d=l[n],m=u[n];else if(typeof n=="function")d=n(l),m=n(u);else {var p=Aq(n);return t(p.sortBy,r,o,p.order,p.comparer||e,l,u)}var g=a(d,m,i);return (g===0||d==null&&m==null)&&r.length>o?t(r[o],r,o+1,i,a,l,u):g}};function Nq(e,t,n){if(e===void 0||e===true)return function(i,a){return t(i,a,n)};if(typeof e=="string")return oM(e.includes("."),"String syntax not allowed for nested properties."),function(i,a){return t(i[e],a[e],n)};if(typeof e=="function")return function(i,a){return t(e(i),e(a),n)};if(Array.isArray(e)){var r=yMe(t);return function(i,a){return r(e[0],e,1,n,t,i,a)}}var o=Aq(e);return Nq(o.sortBy,o.comparer||t,o.order)}var v$=function(e,t,n,r){var o;return Array.isArray(t)?(Array.isArray(n)&&n.length<2&&(o=n,n=o[0]),t.sort(Nq(n,r,e))):t};function Pq(e){var t=Tq(e.comparer);return function(n){var r=Array.isArray(n)&&!e.inPlaceSorting?n.slice():n;return {asc:function(o){return v$(1,r,o,t)},desc:function(o){return v$(-1,r,o,t)},by:function(o){return v$(1,r,o,t)}}}}var Iq=function(e,t,n){return e==null?n:t==null?-n:typeof e!=typeof t?typeof e<typeof t?-1:1:e<t?-1:e>t?1:0},Oq=Pq({comparer:Iq});Pq({comparer:Iq,inPlaceSorting:true});function iM(e,t,n){if(t.length!==n.length)throw new Error("props & orders length not match");const r=t.map((o,i)=>{const a=n[i];return a==="asc"?{asc:o}:a==="desc"?{desc:o}:{asc:o,comparer:a}});return Oq(e).by(r)}function My(e,t){const n=t.map(({order:r,prop:o})=>r==="asc"?{asc:o}:r==="desc"?{desc:o}:{asc:o,comparer:r});return Oq(e).by(n)}function HA(e){return e.replace(/([A-Z])/,"999999$1").replace(/([a-z])/,"999998$1")}function VA(e,t){return e.localeCompare(t,"zh-CN")}function W9(e,t){return My(e,[{prop:n=>{const r=typeof t=="function"?t(n):n[t];return HA(r)},order:VA}])}function im(e){throw new Error(`Unexpected object: ${e}`)}function SMe(e){return e=e.replace(new RegExp("^[\\s\\p{RGI_Emoji}]+","v"),""),e=HA(e),e}function Dq(e,t){const n={prop:i=>LA(i.attr)?1:0,order:"desc"},r={prop:i=>SMe(i.title),order:VA},o={prop:"media_count",order:"desc"};if(t==="default")return e;if(t==="name")return My(e,[n,r]);if(t==="count")return My(e,[n,o,r]);im(t);}function _q(e){return x(JR,{size:"middle",options:[{label:"默认",value:"default"},{label:"名称",value:"name"},{label:"数量",value:"count"}],...e})}class Gs{qs;constructor(t){this.qs=new X1(t);}get hasMore(){return !!this.qs.bufferQueue.length||this.hasMoreExceptQueue}restore(){this.qs.restore();}async loadMore(t){if(!this.hasMore)return;if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const n=await this.fetchMore(t);return n?.length&&this.qs.bufferQueue.push(...n),this.qs.sliceFromQueue()}}class X1{returnQueue=[];bufferQueue=[];get hasCache(){return !!this.returnQueue.length}ps;constructor(t=20){this.ps=t;}sliceCountFromQueue(t){if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,t);return this.bufferQueue=this.bufferQueue.slice(t),this.doReturnItems(n)??[]}else return []}sliceFromQueue(t=1){return this.sliceCountFromQueue(this.ps*t)}doReturnItems(t){return this.returnQueue=[...this.returnQueue,...t??[]],t}restore(){this.bufferQueue=[...this.returnQueue,...this.bufferQueue],this.returnQueue=[];}get fetchedCount(){return this.returnQueue.length+this.bufferQueue.length}}function Lu(){const e=f.useRef(null),t=f.useCallback(()=>e.current?.closest(`.${OB}`)?.parentElement||document.body,[]);return {ref:e,getPopupContainer:t}}class CMe{constructor(t){this.anonymous=t;}hasMore=true;page=1;tabbarView=x(xMe,{});async loadMore(){if(!this.hasMore)return;const n=(await Xt.get("/x/web-interface/popular",{params:{ps:20,pn:this.page},withCredentials:!this.anonymous})).data;return Vn(n)?(this.page++,this.hasMore=!n.data.no_more,(n.data.list||[]).map(o=>({...o,api:Qe.PopularGeneral,uniqId:`${Qe.PopularGeneral}:${o.bvid}`}))):(fn(n.message||Af),void 0)}}function xMe(){const e=uo();return x(It,{configPath:"popularGeneralUseAnonymous",tooltip:x(_e,{children:"✅ 匿名访问: 使用游客身份访问"}),label:"匿名访问",extraAction:async()=>{await gn(100),e();}})}function wMe(){const t=localStorage.getItem("bpx_player_profile");if(t)try{return JSON.parse(t)}catch{return}}function Lq(){return !!wMe()?.media.autoplay}const Fp={top:e=>X("absolute top-8px",e==="left"?"left-8px":"right-8px",e==="left"?OCe:DCe),topContainer:e=>X(Fp.top(e),"flex items-center gap-x-5px",e==="left"?"flex-row":"flex-row-reverse"),tooltip:e=>X("pointer-events-none absolute bottom--6px translate-y-100% select-none whitespace-nowrap rounded-4px bg-gate-primary px-8px py-4px text-12px text-white line-height-18px",e==="left"?"left-0":"right-0")},Fa=f.memo(function({inlinePosition:t,icon:n,tooltip:r,visible:o=true,active:i=false,className:a,useMotion:l=false,motionProps:u,ref:d,...m}){const{triggerRef:p,tooltipEl:g}=Q1({inlinePosition:t,tooltip:r}),b=f.useMemo(()=>aU("action-button","relative size-28px cursor-pointer rounded-6px bg-[rgb(33_33_33_/_0.7)] color-white","b-1px b-solid",i?"b-gate-primary":"b-#444","hover:b-gate-primary",l||o?"inline-flex":"hidden","items-center justify-center","[&_svg]:pointer-events-none [&_svg]:select-none",a),[i,a,o,l]),y=q1(p,d),S={...m,className:b,ref:y,children:H(_e,{children:[n,g]})};return l?x(L1e,{children:o&&x(ZT.div,{...S,...u},"action-button")}):x("div",{...S})});function Q1({inlinePosition:e,tooltip:t,tooltipClassName:n}){const r=f.useRef(null),o=F1(r),i=ur(Fp.tooltip(e),n,o?"block":"hidden");return {triggerRef:r,tooltipEl:t?x("span",{className:i,children:t}):void 0}}function $Me(e,t,n=true){let r=0,o=t;return (...i)=>{if(r++,r===o)return r=0,n&&o++,e(...i)}}function Bq(e,t,n=true){const r=tt(e);return f.useMemo(()=>$Me(r,t,n),[r,t,n])}const EMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M8.5 6q.049 0 .098.009q.076.017.142.054q.061.034.114.083q.05.052.082.113A.5.5 0 0 1 9 6.5v3a.5.5 0 0 1-1 0V7.707l-5.146 5.147a.5.5 0 1 1-.708-.707L7.293 7H5.5a.5.5 0 0 1 0-1zM12 2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H8.5a.5.5 0 0 1 0-1H12V3H3v3.5a.5.5 0 0 1-1 0V3a1 1 0 0 1 1-1z"})]}),zq=f.forwardRef(EMe),MMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M10.969 3.219a.574.574 0 1 1 .812.812L8.313 7.5l3.468 3.469l.074.09a.575.575 0 0 1-.796.796l-.09-.074L7.5 8.312l-3.469 3.47a.574.574 0 1 1-.812-.813L6.688 7.5l-3.47-3.469l-.073-.09a.575.575 0 0 1 .796-.797l.09.075L7.5 6.687z"})]}),RMe=f.forwardRef(MMe),TMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7.499 0c1.072 0 1.966.338 2.589 1.002c.619.66.912 1.58.912 2.634V6h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h7V3.636c0-.876-.242-1.524-.642-1.95C8.963 1.267 8.357 1 7.5 1c-.888 0-1.502.269-1.895.715l-.077.092C5.197 2.233 5 2.843 5 3.633H4c0-.95.237-1.795.737-2.44l.121-.145C5.482.342 6.4 0 7.5 0M3 13h9V7H3z"})]}),kq=f.forwardRef(TMe),AMe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 15 15",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M7.501.978c1.074 0 1.968.345 2.59 1.014c.616.664.909 1.587.909 2.642V6h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h1V4.636c0-1.055.293-1.979.91-2.643c.622-.67 1.517-1.015 2.591-1.015M3 13h9V7H3zM7.501 1.978c-.855 0-1.461.27-1.857.696C5.243 3.105 5 3.76 5 4.636V6h5V4.634c0-.877-.241-1.531-.642-1.962c-.395-.426-1.001-.694-1.857-.694"})]}),NMe=f.forwardRef(AMe);function PMe(e,t){const n=t.document.head;CU({key:"pip-window",container:n}),Array.from(document.querySelectorAll("style")).filter(i=>[ao,"ant","rc"].some(a=>i.textContent.includes(a))).forEach(i=>{const a=t.document.createElement("style");a.textContent=i.textContent,t.document.head.appendChild(a);});const r=document.createElement("div");r.classList.add($a),r.style.lineHeight="0",t.document.body.appendChild(r),Za.createRoot(r).render(x(Ws,{cssInsertContainer:n,cssInsertContainerEmotionKey:"pip-window",children:x(Lo,{getPopupContainer:()=>t.document.body,getTargetContainer:()=>t,children:H(sg,{message:{getContainer:()=>t.document.body},children:[x(V1,{baseGlobalStyle:true}),x(OMe,{newHref:e,pipWindow:t})]})})}));}var IMe={name:"pb1257",styles:"*{box-sizing:border-box;}:root,body,iframe{margin:0;padding:0;overscroll-behavior:none;}"};function OMe({newHref:e,pipWindow:t}){const n=F1(t.document.documentElement),[r,o]=f.useState(()=>st.pipWindow.defaultLocked);return H(_e,{children:[x(hA,{styles:[IMe,"",""]}),x("iframe",{src:e,className:"block h-100vh w-full border-none"}),x(DMe,{locked:r,setLocked:o,pipWindow:t}),H("div",{className:X("fixed right-10px top-10px z-9999 flex-row-reverse items-center gap-x-6px",n?"flex":"hidden"),children:[x(_Me,{pipWindow:t,newHref:e}),x(LMe,{locked:r,setLocked:o})]})]})}const Fq="size-30px [&_svg]:size-16px";function DMe({locked:e,setLocked:t,pipWindow:n}){const{message:r}=sg.useApp(),o=Bq(()=>{r.info("请先点击右上角「🔓解锁按钮」解锁");},3);return f.useMemo(()=>vi([{key:"unlock",label:"解锁",icon:x(kq,{}),onClick(){t(false);}}]),[]),e&&x("div",{className:X("locked-overlay","fixed inset-0 z-9999 select-none bg-transparent"),onClick:o})}function _Me({newHref:e,pipWindow:t}){return x(Fa,{inlinePosition:"right",icon:x(zq,{}),tooltip:"新窗口打开",onClick:()=>{t.close();const r=new URL(e);r.searchParams.delete(Yl.PlayerScreenMode),r.searchParams.delete(Yl.ForceAutoPlay),mi(r.href);},className:Fq})}function LMe({locked:e,setLocked:t}){const[n,r]=e?["锁定","解锁"]:["解锁","锁定"];return x(Fa,{inlinePosition:"right",icon:e?x(NMe,{}):x(kq,{}),tooltip:`已${n}, 点击${r}`,className:Fq,onClick:()=>t(o=>!o)})}const Hq=so.extend("VideoCard:useOpenRelated");function BMe({href:e,item:t,cardData:n,actionButtonVisible:r,hasOpenInPopupActionButton:o,getLargePreviewCurrentTime:i,hideLargePreview:a,shouldUseLargePreviewCurrentTime:l}){const{videoLinkOpenMode:u}=Ut();function d($){const E=new URL(e,location.href);return $?.(E),E.href}const m=tt($=>{$.stopPropagation(),$.preventDefault(),p(void 0,$);}),p=tt(($,E)=>{$||=st.videoLinkOpenMode;const T=d(P=>{if(($===sr.NormalWebFullscreen||$===sr.Popup&&st.pipWindow.autoWebFullscreen)&&(P.searchParams.set(Yl.PlayerScreenMode,Al.WebFullscreen),$===sr.Popup&&!Lq()&&P.searchParams.set(Yl.ForceAutoPlay,sA.ON)),l()){const O=i();O&&(a(),P.searchParams.set("t",O.toString()));}}),R=()=>{const O=!($===sr.Background||!!(E?.metaKey||E?.ctrlKey));mi(T,O);},I=()=>{location.href=T;};({[sr.Normal]:R,[sr.Background]:R,[sr.CurrentPage]:I,[sr.NormalWebFullscreen]:R,[sr.Popup]:()=>g(T),[sr.Iina]:b})[$]?.();});function g($){const{width:E,height:T}=jA({item:t});return Vq($,n.bvid,E,T)}function b(){let $=e;t.api===Qe.Watchlater&&($=`/video/${t.bvid}`);const E=new URL($,location.href).href,T=`iina://open?url=${encodeURIComponent(E)}`;window.open(T,"_self");}const y=f.useMemo(()=>Object.values(sr).filter($=>fi[$].enabled===void 0).map($=>({key:S_[$],label:fi[$].label,icon:fi[$].icon,onClick:()=>p($)})),[]),S=f.useMemo(()=>Object.values(sr).filter($=>typeof fi[$].enabled=="boolean"&&fi[$].enabled).length?Object.values(sr).filter($=>typeof fi[$].enabled=="boolean"&&fi[$].enabled).map($=>({key:S_[$],label:fi[$].label,icon:fi[$].icon,onClick:()=>p($)})):[],[]),C=f.useMemo(()=>{if(u!==sr.Popup&&t.api!==Qe.Live&&UA&&o)return x(Fa,{visible:r,inlinePosition:"right",icon:fi.Popup.icon,tooltip:fi.Popup.label,onClick:$=>{$.preventDefault(),$.stopPropagation(),p(sr.Popup);}})},[u,r]),w=tt(()=>{p(sr.Popup);});return {onOpenWithMode:p,handleVideoLinkClick:m,consistentOpenMenus:y,conditionalOpenMenus:S,openInPopupActionButtonEl:C,onOpenInPopup:w}}function jA({item:e,dimensionFromApi:t}){let n,r,o;if(t)[n,r]=[t.width,t.height],t.rotate===1&&([n,r]=[r,n]),o=n/r;else if(e?.api===Qe.AppRecommend&&e.uri?.startsWith("bilibili://")){const i=new URL(e.uri).searchParams,a=Number(i.get("player_width")||0),l=Number(i.get("player_height")||0),u=Number(i.get("player_rotate")||0);a&&l&&!Number.isNaN(a)&&!Number.isNaN(l)&&([n,r]=[a,l],u===1&&([n,r]=[r,n]),o=n/r);}else if(e?.api===Qe.Rank&&zA(e)){const i=e.dimension.width,a=e.dimension.height,l=e.dimension.rotate;i&&a&&!Number.isNaN(i)&&!Number.isNaN(a)&&([n,r]=[i,a],l===1&&([n,r]=[r,n]),o=n/r);}return {width:n,height:r,aspectRatio:o}}const UA=!!window.documentPictureInPicture?.requestWindow;async function Vq(e,t,n,r){let o=1e3,i=Math.ceil(o/16*9);const a=200;if((!n||!r)&&t){const u=await Promise.race([oq(t),gn(a)]);if(u?.[0]?.dimension){const{dimension:d}=u[0];n=d.width,r=d.height;}}if(n&&r&&n<r){const u=Math.min(Math.floor(window.screen.availHeight*.8),1e3),d=Math.floor(u/r*n);o=Math.min(720,d),i=Math.floor(o/n*r);}Hq("openInPipOrPopup newHref=%s size=%sx%s",e,o,i);let l;if(UA)try{l=await window.documentPictureInPicture?.requestWindow({width:o,height:i,disallowReturnToOpener:!0});}catch{}l?PMe(e,l):zMe(e,o,i);}function zMe(e,t,n){const r=(window.innerWidth-t)/2,o=(window.innerHeight-n)/2-50,i=["popup=true",`width=${t}`,`height=${n}`,`left=${r}`,`top=${o}`].join(",");Hq("openInPopup: features -> %s",i),window.open(e,"_blank",i);}function jq(){const{videoLinkOpenMode:e}=Ut();return e!==sr.CurrentPage}function Z1(){return jq()?"_blank":"_self"}function h0(){return st.videoLinkOpenMode!==sr.CurrentPage?"_blank":"_self"}function Hp(e){const t=Z1();return x("a",{...e,target:t,children:e.children})}let $b=[],b$="";function q9(){const e=Yn();return [e.format("YYYYMMDD"),e.hour()<18?"lt-18":"gte-18"].join("_")}async function kMe(){return $b.length&&b$&&b$===q9()||($b=(await Xt.get("/x/web-interface/popular/series/list")).data.data.list,b$=q9()),$b}class Ry{constructor(t){this.useShuffle=t;}static PAGE_SIZE=20;episodesLoaded=false;episodes=[];qs=new X1(Ry.PAGE_SIZE);get hasMore(){return this.episodesLoaded?!!this.qs.bufferQueue.length||!!this.episodes.length:true}async loadMore(){if(this.episodesLoaded||(this.episodes=await kMe(),this.episodesLoaded=true,this.useShuffle&&(this.episodes=Ci(this.episodes))),!this.hasMore)return;if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const n=this.episodes[0],r=n.number,o=await G9(r);return this.qs.bufferQueue.push({api:Qe.Separator,uniqId:`${Qe.PopularWeekly}:separator:${r}`,content:x(Hp,{href:`https://www.bilibili.com/v/popular/weekly?num=${r}`,children:n.name})},...o),this.episodes=this.episodes.slice(1),this.qs.sliceFromQueue()}const t=5;for(;this.qs.bufferQueue.length<Ry.PAGE_SIZE*t&&this.episodes.length;){this.episodes=Ci(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await Gl(n.map(o=>o.number),o=>G9(o),2);this.qs.bufferQueue=Ci([...this.qs.bufferQueue,...r.flat()]);}return this.qs.sliceFromQueue()}get tabbarView(){return x(FMe,{})}}const y$={};async function G9(e){if(!y$[e]?.length){const o=((await Xt.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:Qe.PopularWeekly,uniqId:`${Qe.PopularWeekly}:${i.bvid}`}));y$[e]=o;}return y$[e]}function FMe(){const e=uo();return x(_e,{children:x(wu,{configPath:"popularWeeklyUseShuffle",checkedChildren:"随机顺序: 开",unCheckedChildren:"随机顺序: 关",extraAction:async()=>{await gn(100),e();}})})}const Uq="rank-store-slug",HMe=await( GM.getValue(Uq))||BA.slug,wi=kn({slug:HMe,tabs:[],get currentTab(){return this.tabs.find(e=>e.slug===this.slug)||BA}}),VMe=Vs(async()=>{if(wi.tabs.length)return;const e=await P3e();wi.tabs=e;});fT(wi,"slug",()=>{GM.setValue(Uq,wi.slug);});class Wq{constructor(t){this.slug=t;}loaded=false;qs=new X1(20);tabbarView=x(jMe,{});sidebarView=x(UMe,{});get hasMore(){return this.loaded?!!this.qs.bufferQueue.length:true}get rankTab(){return Vr(wi).tabs.find(t=>t.slug===this.slug)||BA}async loadMore(t){if(this.hasMore){if(!this.loaded){await VMe();const{url:n,apiType:r}=cq(this.rankTab),i=(await Xt.get(n,{signal:t})).data;if(this.loaded=true,!Vn(i)){fn(i.message||Af);return}const l=(i?.data?.list||i?.result?.list||[]).map((u,d)=>{const m=d+1;return {...u,api:Qe.Rank,uniqId:`${Qe.Rank}:${this.rankTab.slug}:rankingNo-${m}`,rankingNo:m,slug:this.rankTab.slug,rankTab:this.rankTab,from:r}});this.qs.bufferQueue=l;}return this.qs.sliceFromQueue()}}}function qq(){const{tabs:e}=yt(wi),{normalList:t,pgcList:n}=f.useMemo(()=>{const r=e.map(a=>({...a,apiType:cq(a).apiType})),o=r.filter(a=>[f0.PgcSeason,f0.PgcWeb].includes(a.apiType));return {normalList:r.filter(a=>a.apiType===f0.Normal),pgcList:o}},[e]);return {normalList:t,pgcList:n}}function jMe(){const{enableSidebar:e}=Ut(),{ref:t,getPopupContainer:n}=Lu(),r=uo(),{slug:o,currentTab:i}=yt(wi),{normalList:a,pgcList:l}=qq(),u=(y,S,C)=>y.length?H("div",{className:"mt-15px max-w-350px first:mt-0",children:[H("p",{className:"mb-5px flex-v-center rounded-5px bg-gate-primary py-5px pl-6px text-white",children:[S,!!C&&x(pr,{children:C})]}),x("div",{className:"grid grid-cols-4 gap-x-10px gap-y-8px px-2px",children:y.map(w=>{const $=w.slug===o;return x(lt,{className:X({"b-gate-primary":$,"color-gate-primary":$}),onClick:E=>{g(false),wi.slug=w.slug,r();},children:x("span",{children:w.name})},w.slug)})})]}):null,d=tt(y=>{const S=[...a,...l];if(!S.length)return;const C=S.findIndex(E=>E.slug===o);if(C===-1)return;const w=y.shiftKey?-1:1,$=(C+w+S.length)%S.length;wi.slug=S[$].slug,r();}),m=H(_e,{children:[u(a,"视频"),u(l,"PGC内容","不能提供预览")]}),[p,g]=f.useState(false),b=x(Jo,{arrow:false,open:p,onOpenChange:g,placement:"bottomLeft",getPopupContainer:n,content:m,styles:{container:{border:`1px solid ${Zf()}`}},children:x(lt,{css:[p&&Qf,"",""],onClick:d,className:"outline-none!",children:i.name})});if(!e)return x("div",{ref:t,children:b})}function UMe(){const{slug:e}=yt(wi),{normalList:t,pgcList:n}=qq(),r=uo(),o=tt(a=>{wi.slug=a,r();}),i=f.useMemo(()=>{const a={type:"group",label:"视频",children:t.map(u=>({key:u.slug,label:u.name,onClick:()=>o(u.slug)}))},l={type:"group",label:"PGC内容",children:n.map(u=>({key:u.slug,label:u.name,onClick:()=>o(u.slug)}))};return [a,l]},[t,n]);return x(oc,{items:i,selectedKeys:[e],mode:"inline",inlineIndent:10})}const WMe={[hr.PopularGeneral]:()=>new CMe(st.popularGeneralUseAnonymous),[hr.PopularWeekly]:()=>new Ry(st.popularWeeklyUseShuffle),[hr.Rank]:()=>new Wq(wi.slug)};function Gq(e){const{subtab:t}=Go;return e??=st.popularWeeklyUseShuffle,t===hr.PopularWeekly&&e}const S$=e=>x("img",{src:e,alt:"",className:"size-18px"}),C$={[hr.PopularGeneral]:{icon:S$("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_popular.png"),label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:true,anonymousUsage:true},[hr.PopularWeekly]:{icon:S$("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_weekly.png"),label:"每周必看",desc:"每周五晚 18:00 更新",anonymousUsage:true},[hr.Rank]:{icon:S$("https://s1.hdslb.com/bfs/static/jinkela/popular/assets/icon_rank.png"),label:"排行榜",desc:"排行榜根据稿件内容质量,近期的数据综合展示,动态更新",anonymousUsage:true,swr:true}};class qMe extends Gs{subtab;service;constructor(){super(20),this.subtab=Go.subtab,this.service=WMe[Go.subtab]();}get tabbarView(){return x(GMe,{children:this.service.tabbarView})}get sidebarView(){return this.service.sidebarView}get hasMoreExceptQueue(){return this.service.hasMore}fetchMore(t){return this.service.loadMore(t)}}const Go=await( pT({subtab:hr.PopularGeneral},"hot-store"));Object.values(hr).includes(Go.subtab)||(Go.subtab=hr.PopularGeneral);function GMe({children:e}){const{subtab:t}=yt(Go),{icon:n,label:r}=C$[t],o=uo(),{ref:i,getPopupContainer:a}=Lu(),{__internalHotSubUseDropdown:l}=Ut(),u=f.useMemo(()=>[hr.PopularGeneral,hr.PopularWeekly,hr.Rank].map((p,g)=>{const b=C$[p],y=p===t;return [g>0&&{type:"divider"},{key:p,label:x("span",{className:X({"color-gate-primary":y}),children:b.label}),icon:b.icon,onClick(){p!==Go.subtab&&(Go.subtab=p,o());}}].filter(Boolean)}).flat(),[t]),d=x(ic,{menu:{items:u},getPopupContainer:a,rootClassName:'![&_[role="separator"]]:mx-0 ![&_[role="separator"]]:my-2px',children:H(lt,{ref:i,className:"w-114px flex items-center justify-start gap-0 pl-16px",children:[n,x("span",{className:"ml-8px",children:r})]})}),m=f.useMemo(()=>x(eo.Compact,{children:[hr.PopularGeneral,hr.PopularWeekly,hr.Rank].map((p,g)=>{const{icon:b,label:y,desc:S}=C$[p],C=p===t;return x(mn,{title:H(_e,{children:[y,": ",S]}),children:x(lt,{className:"[&_.ant-btn-icon]:line-height-0",icon:b,variant:C?"solid":"outlined",color:C?"primary":"default",onClick:()=>{p!==Go.subtab&&(Go.subtab=p,o());},children:y})},p)})}),[t]);return H(_e,{children:[l?d:m,e]})}const Kq=x(ql,{className:"[&.ant-divider-horizontal.ant-divider-with-text]:my-5px [&.ant-divider-horizontal.ant-divider-with-text]:text-14px",children:"底线"});function WA(e){const{enableSidebar:t}=Ut(),{usingTwoColumnMode:n}=XW(),r=yt(Go).subtab,{insideModal:o}=Mi();return f.useMemo(()=>!t||o&&n?false:e===rt.DynamicFeed?!Ds:e===rt.Hot?r===hr.Rank:e===rt.Fav,[e,t,r,o,n])}function Yq(e,t){const n=f.useRef(null),r=tt(a=>{if(a||=t,!a)return;const l=n.current?.menu?.findItem({key:a});if(l)return l.scrollIntoViewIfNeeded?l.scrollIntoViewIfNeeded():l.scrollIntoView(),true}),o=f.useRef(false),i=tt(()=>{if(o.current)return;r()&&(o.current=true);});return io(()=>i()),Is(()=>i(),[e]),{menuRef:n,revealSelected:r}}const Hn=kn({multiSelecting:false,selectedIdSet:Rr(),shiftMultiSelectAnchorUniqId:void 0});function KMe(){const{multiSelecting:e}=yt(Hn);return e}function YMe(e){const{multiSelecting:t,selectedIdSet:n}=yt(Hn);return t&&!!e&&n.has(e)}const Ty=[];function _s(){return Ty.at(-1)?.items??[]}function XMe(e){const t=Ty.at(-1);t&&(t.items=e);}function QMe(){io(()=>(Ty.push({items:[]}),()=>{Ty.pop();}));}function J1(){const{multiSelecting:e,selectedIdSet:t}=Hn;return e?_s().filter(n=>t.has(n.uniqId)):[]}function ZMe(){return J1().map(Bu)}function qA(){const{multiSelecting:e}=Hn;let t=e?J1():_s();return e&&!t.length&&(t=_s()),t.map(Bu).toReversed()}function GA(){const t=qA().map(n=>n.bvid).join(" ");cu(t,1);}function KA(e){let{bvid:t,authorName:n,pubts:r,title:o}=e;const i=Yn.unix(r??0).format("YYYY-MM-DD");return o=o.replaceAll(/\n+/g," "),`${t} ;; [${n}] ${i} ${o}`}function YA(){const t=qA().map(KA).join(`
`);cu(t,1);}function JMe(){const t=ZMe().map(n=>{let r=n.href;if(r)return r.startsWith("/")&&(r=new URL(r,location.href).href),r}).filter(Boolean).join(`
`);cu(t);}function eRe(e,t){const{multiSelecting:n,selectedIdSet:r}=Hn;if(!n||!e||!t||e===t)return;const o=_s(),i=o.findIndex(g=>g.uniqId===e),a=o.findIndex(g=>g.uniqId===t),l=g=>g>=0&&g<=o.length-1;if(!l(i)||!l(a))return;const u=[i,a],[d,m]=iM(u,[g=>g],["asc"]),p=r.has(e);for(let g=d;g<=m;g++){const b=_s()[g].uniqId;p?r.add(b):r.delete(b);}}const tRe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 16 16",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M2 10h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1m9-9h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1m0 9a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1zm0-10a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM2 9a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2zm7 2a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2zM0 2a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm5.354.854a.5.5 0 1 0-.708-.708L3 3.793l-.646-.647a.5.5 0 1 0-.708.708l1 1a.5.5 0 0 0 .708 0z"})]}),nRe=f.forwardRef(tRe),rRe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 16 16",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M9.854 5.854a.5.5 0 0 0-.708-.708L6.5 7.793L5.354 6.646a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0zM2 4.5A2.5 2.5 0 0 1 4.5 2h5A2.5 2.5 0 0 1 12 4.5v5A2.5 2.5 0 0 1 9.5 12h-5A2.5 2.5 0 0 1 2 9.5zM4.5 3A1.5 1.5 0 0 0 3 4.5v5A1.5 1.5 0 0 0 4.5 11h5A1.5 1.5 0 0 0 11 9.5v-5A1.5 1.5 0 0 0 9.5 3zM7 14a2.5 2.5 0 0 1-2-1h4.5A3.5 3.5 0 0 0 13 9.5V4c.607.456 1 1.182 1 2v3.5A4.5 4.5 0 0 1 9.5 14z"})]}),oRe=f.forwardRef(rRe),iRe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"})]}),aRe=f.forwardRef(iRe),sRe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 512 512",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M320 176v-40a40 40 0 0 0-40-40H88a40 40 0 0 0-40 40v240a40 40 0 0 0 40 40h192a40 40 0 0 0 40-40v-40m64-160l80 80l-80 80m-193-80h273"})]}),lRe=f.forwardRef(sRe);function Xq({iconOnly:e,addCopyActions:t=false}){const{multiSelecting:n}=yt(Hn),r=Zf(),o=tt(()=>{Hn.multiSelecting||(Hn.shiftMultiSelectAnchorUniqId=void 0,st.multiSelect.clearWhenExit&&Hn.selectedIdSet.clear());}),i=H(lt,{type:n?"primary":"default",className:X(e?"icon-only-round-button":"inline-flex-center"),onClick:()=>{Hn.multiSelecting=!Hn.multiSelecting,o();},children:[x(nRe,{className:"size-12px"}),!e&&H(_e,{children:["多选",Hn.multiSelecting?"中":""]})]}),a=l=>x(Jo,{styles:{container:{border:`1px solid ${r}`}},content:H("div",{className:"max-w-288px",children:[H("div",{className:"flex items-start gap-x-6px",children:[x(Qj,{className:"mt-1 size-14px"}),H("div",{className:"flex-1 break-all",children:["使用 ",x("kbd",{className:X(Su,"mx-1"),children:"Shift"})," 键扩选: 切换选中状态后, 按住"," ",x("kbd",{className:X(Su,"mx-1"),children:"Shift"}),"键再选择区间终点, 整个区间会与起点选中状态同步."]})]}),x(ql,{variant:"solid",className:"my-7px"}),H("div",{className:"flex flex-wrap items-center gap-x-15px gap-y-2px",children:[H(lt,{className:"inline-flex items-center",onClick:()=>Hn.selectedIdSet.clear(),children:[x(Kf,{className:"size-18px"}),"清空"]}),H(lt,{className:"inline-flex items-center",onClick:()=>{const u=_s().map(d=>d.uniqId);Hn.selectedIdSet=Rr(u);},children:[x(oRe,{className:"size-18px"}),"全选"]}),H(lt,{className:"inline-flex items-center",onClick:()=>{const u=_s().filter(d=>!Hn.selectedIdSet.has(d.uniqId)).map(d=>d.uniqId);Hn.selectedIdSet=Rr(u);},children:[x(aRe,{className:"size-18px"}),"反选"]}),x("div",{className:"flex-basis-100%"}),H(lt,{className:"inline-flex items-center",onClick:()=>{Hn.multiSelecting=false,o();},children:[x(lRe,{className:"size-18px"}),"退出"]}),x(It,{configPath:"multiSelect.clearWhenExit",label:"退出时清空",tooltip:"退出多选时, 清空所有已选择项"})]}),t&&H(_e,{children:[x(ql,{variant:"solid",className:"my-7px"}),x("div",{className:"flex flex-wrap gap-x-10px gap-y-5px",children:x(tG,{showCopyBvidInfo:true})})]})]}),children:l});return n?a(i):e?x(mn,{title:"多选",arrow:false,children:i}):i}const cRe=Object.prototype.toString,uRe=e=>cRe.call(e)==="[object Error]",dRe=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function fRe(e){if(!(e&&uRe(e)&&e.name==="TypeError"&&typeof e.message=="string"))return  false;const{message:n,stack:r}=e;return n==="Load failed"?r===void 0||"__sentry_captured__"in e:n.startsWith("error sending request for url")?true:dRe.has(n)}function mRe(e){if(typeof e=="number"){if(e<0)throw new TypeError("Expected `retries` to be a non-negative number.");if(Number.isNaN(e))throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.")}else if(e!==void 0)throw new TypeError("Expected `retries` to be a number or Infinity.")}function Eb(e,t,{min:n=0,allowInfinity:r=false}={}){if(t!==void 0){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected \`${e}\` to be a number${r?" or Infinity":""}.`);if(!r&&!Number.isFinite(t))throw new TypeError(`Expected \`${e}\` to be a finite number.`);if(t<n)throw new TypeError(`Expected \`${e}\` to be ≥ ${n}.`)}}class hRe extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t;}}function pRe(e,t){const n=Math.max(1,e+1),r=t.randomize?Math.random()+1:1;let o=Math.round(r*t.minTimeout*t.factor**(n-1));return o=Math.min(o,t.maxTimeout),o}function K9(e,t){return Number.isFinite(t)?t-(performance.now()-e):t}async function gRe({error:e,attemptNumber:t,retriesConsumed:n,startTime:r,options:o}){const i=e instanceof Error?e:new TypeError(`Non-error was thrown: "${e}". You should only throw errors.`);if(i instanceof hRe)throw i.originalError;const a=Number.isFinite(o.retries)?Math.max(0,o.retries-n):o.retries,l=o.maxRetryTime??Number.POSITIVE_INFINITY,u=Object.freeze({error:i,attemptNumber:t,retriesLeft:a,retriesConsumed:n});if(await o.onFailedAttempt(u),K9(r,l)<=0)throw i;const d=await o.shouldConsumeRetry(u),m=K9(r,l);if(m<=0||a<=0)throw i;if(i instanceof TypeError&&!fRe(i)){if(d)throw i;return o.signal?.throwIfAborted(),false}if(!await o.shouldRetry(u))throw i;if(!d)return o.signal?.throwIfAborted(),false;const p=pRe(n,o),g=Math.min(p,m);return o.signal?.throwIfAborted(),g>0&&await new Promise((b,y)=>{const S=()=>{clearTimeout(C),o.signal?.removeEventListener("abort",S),y(o.signal.reason);},C=setTimeout(()=>{o.signal?.removeEventListener("abort",S),b();},g);o.unref&&C.unref?.(),o.signal?.addEventListener("abort",S,{once:true});}),o.signal?.throwIfAborted(),true}async function Qq(e,t={}){if(t={...t},mRe(t.retries),Object.hasOwn(t,"forever"))throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");t.retries??=10,t.factor??=2,t.minTimeout??=1e3,t.maxTimeout??=Number.POSITIVE_INFINITY,t.maxRetryTime??=Number.POSITIVE_INFINITY,t.randomize??=false,t.onFailedAttempt??=()=>{},t.shouldRetry??=()=>true,t.shouldConsumeRetry??=()=>true,Eb("factor",t.factor,{min:0,allowInfinity:false}),Eb("minTimeout",t.minTimeout,{min:0,allowInfinity:false}),Eb("maxTimeout",t.maxTimeout,{min:0,allowInfinity:true}),Eb("maxRetryTime",t.maxRetryTime,{min:0,allowInfinity:true}),t.factor>0||(t.factor=1),t.signal?.throwIfAborted();let n=0,r=0;const o=performance.now();for(;!Number.isFinite(t.retries)||r<=t.retries;){n++;try{t.signal?.throwIfAborted();const i=await e(n);return t.signal?.throwIfAborted(),i}catch(i){await gRe({error:i,attemptNumber:n,retriesConsumed:r,startTime:o,options:t})&&r++;}}throw new Error("Retry attempts exhausted without throwing an error.")}var $s=(e=>(e.Latest="pubdate",e.View="click",e.Fav="stow",e))($s||{});const vRe={pubdate:{icon:x(fCe,{}),label:"最新发布"},click:{icon:x(vg,{}),label:"最多播放"},stow:{icon:x(Cf,{}),label:"最多收藏"}},bRe=40;async function yRe({mid:e,order:t="pubdate",keyword:n="",pagenum:r=1}){const i=(await Xt.get("/x/space/wbi/arc/search",{params:{mid:e,order:t,keyword:n,ps:bRe,pn:r}})).data;if(!Vn(i))throw new Error(`request json error: ${i.message}`||Fy);const a=i.data.list.vlist||[],l=i.data.page.count;let u,d;{const{count:m,pn:p,ps:g}=i.data.page;u=p*g<m,d=m-(p-1)*g;}return {items:a,hasMore:u,count:l,endVol:d}}async function SRe(...e){return await Qq(()=>yRe(...e),{retries:5,factor:1.5,onFailedAttempt:t=>console.error(t)})}var Ha=(e=>(e.Mid="space-mid",e.GroupId="space-group-id",e.SearchText="space-search-text",e.FilterText="space-filter-text",e.InitialPage="space-initial-page",e))(Ha||{});const Ng=new URLSearchParams(location.search),CRe=Ng.get("space-mid")||void 0,Y9=Ng.get("space-group-id")||void 0,xRe=Ng.get("space-search-text")||void 0,wRe=Ng.get("space-filter-text")||void 0,X9=Ng.get("space-initial-page")||void 0,Zq=(CRe||"").split(/[,_-]/).map(e=>e.trim()).filter(Boolean).filter(e=>/^\d+$/.test(e)),Jq=Y9?Number(Y9):void 0,aM=!!Zq.length||Jq!==void 0,ra=kn({mids:Zq,groupId:Jq,order:$s.Latest,searchText:xRe,filterText:wRe,get isMultipleTraget(){return this.mids.length>1||this.groupId!==void 0},get allowedOrders(){return [$s.Latest,$s.View,!this.isMultipleTraget&&$s.Fav].filter(Boolean)},get usingOrder(){return this.allowedOrders.includes(this.order)?this.order:this.allowedOrders[0]}});function eS(){if(FA)return rt.DynamicFeed;if(_y)return rt.Fav;if(aM)return rt.SpaceUpload;if(sM.get("gate-tab"))return sM.get("gate-tab")}var eG=(e=>(e.MainSwitch="gate",e.Tab="gate-tab",e))(eG||{});const sM=new URL(location.href).searchParams;function $Re(){return sM.has("gate")}function ERe(){const e=new URL(location.href);return e.search="",e.searchParams.set("gate","1"),e.href}const MRe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[H("path",{strokeDasharray:20,d:"M12 4h2v6h2.5l-4.5 4.5M12 4h-2v6h-2.5l4.5 4.5",children:[x("animate",{attributeName:"d",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"M12 4h2v6h2.5l-4.5 4.5M12 4h-2v6h-2.5l4.5 4.5;M12 4h2v3h2.5l-4.5 4.5M12 4h-2v3h-2.5l4.5 4.5;M12 4h2v6h2.5l-4.5 4.5M12 4h-2v6h-2.5l4.5 4.5"}),x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.5s",values:"20;0"})]}),x("path",{strokeDasharray:14,strokeDashoffset:14,d:"M6 19h12",children:x("animate",{fill:"freeze",attributeName:"stroke-dashoffset",begin:"0.5s",dur:"0.2s",to:0})})]})]}),RRe=f.forwardRef(MRe);function tG({showCopyBvidInfo:e}){const{__internalEnableCopyBvidInfo:t}=Ut();return H(_e,{children:[H(lt,{onClick:GA,className:"inline-flex-center",children:[x(lu,{})," 复制 BVID"]}),(e??t)&&H(lt,{onClick:YA,className:"inline-flex-center",children:[x(lu,{})," 复制 BVID 信息"]})]})}function Pg(){const{__internalAddTabbarCopyBvidButton:e}=Ut();return e?x("div",{className:"flex items-center gap-x-2",children:H(Lo,{theme:{components:{Button:{paddingInline:6}}},children:[x(TRe,{}),x(Xq,{iconOnly:false}),x(tG,{})]})}):null}function TRe(){const e=f.useMemo(nG,[]),{recSharedEmitter:t}=Mi(),n=ga(()=>t.emit("load-to-end"),{manual:true});return e&&H(lt,{className:"flex items-center gap-x-1",loading:n.loading,onClick:()=>n.run(),children:[!n.loading&&x(RRe,{className:"size-18px"}),"加载全部"]})}function nG(){const e=eS();return !!e&&[rt.DynamicFeed,rt.SpaceUpload].includes(e)}const rG={overscrollBehavior:"contain",maxHeight:"60vh",overflowY:"scroll",scrollbarWidth:"thin",paddingRight:"12px"},ARe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13"})]}),NRe=f.forwardRef(ARe),PRe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("rect",{width:8,height:5,x:14,y:17,rx:1}),x("path",{d:"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5"}),x("path",{d:"M20 17v-2a2 2 0 1 0-4 0v2"})]})]}),IRe=f.forwardRef(PRe),ORe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})]}),DRe=f.forwardRef(ORe),_Re=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 512 512",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"m434.8 137.65l-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"}),x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"m160 204.48l-82.8 37.16c-17.6 8-17.6 21.1 0 29.1l148 67.49c16.89 7.7 44.69 7.7 61.58 0l148-67.49c17.7-8 17.7-21.1.1-29.1L352 204.48"})]}),LRe=f.forwardRef(_Re),oG=NRe,XA=IRe,QA=DRe,tS=LRe,Q9=hT({sidebarFavFolderOrder:"default"},"fav-rec-service:view");function iG(e,t){const{folders:n,collections:r,selectedKey:o}=yt(pn),{sidebarFavFolderOrder:i}=yt(Q9),a=uo();return {menuItems:f.useMemo(()=>{let u;{let m=n,p;e==="sidebarView"&&(p=x(_q,{value:i,onChange:b=>Q9.sidebarFavFolderOrder=b,className:"ml-4"}),m=Dq(n,i));const g=m.map(b=>{LA(b.attr);const y=Y1(b.attr),S=`fav-folder:${b.id}`,C=y?x(XA,{}):x(QA,{}),w=`${b.title} (${b.media_count})`;return {key:S,icon:C,label:w,async onClick(){pn.selectedFavFolderId=b.id,pn.selectedFavCollectionId=void 0,t?.(),await gn(100),a();}}});u=!!m.length&&{type:"group",label:H("div",{className:"flex items-center justify-between line-height-snug",children:["收藏夹",p]}),children:g};}let d;{const m=eQ(r,b=>b.upper.name);let p=Object.entries(m).map(([b,y])=>({upName:b,collections:W9(y,"title")}));p=W9(p,"upName");const g=[];for(const{upName:b,collections:y}of p){const S=y[0]?.upper.mid,C=S?Ag(S):"#";g.push(...vi([{type:"group",label:H("span",{className:"flex items-center gap-x-2px",children:[x(Po,{className:"mt-2px size-15px flex-none"}),H("a",{target:"_blank",href:C,children:["@",b]})]}),children:y.map(w=>{const $=`fav-collection:${w.id}`,E=H("span",{className:"ml-8px flex items-center gap-x-2px",children:[x(tS,{className:"size-15px flex-none"}),w.title," (",w.media_count,")"]});return {key:$,label:E,title:`${w.title} (${w.media_count})`,async onClick(){pn.selectedFavFolderId=void 0,pn.selectedFavCollectionId=w.id,t?.(),await gn(100),a();}}})}]));}d=!!r.length&&{type:"group",label:"合集",children:g};}return vi([{key:"all",icon:x(oG,{}),label:"全部",async onClick(){pn.selectedFavFolderId=void 0,pn.selectedFavCollectionId=void 0,t?.(),await gn(100),a();}},u,d])},[n,r,e,i,a]),selectedKey:o}}function BRe({extraContent:e}){const{fav:t,enableSidebar:n}=Ut(),{selectedFavFolder:r,selectedFavCollection:o,selectedLabel:i,selectedKey:a}=yt(pn),l=uo(),{ref:u,getPopupContainer:d}=Lu();io(()=>{d6();}),Is(()=>{(async()=>(await gn(100),l()))();},[t.addSeparator]);const[m,p]=f.useState(false),{menuItems:g}=iG("tabbarView",()=>{p(false);}),b="relative top-[-0.5px] size-15px",y=r?Y1(r.attr)?x(XA,{className:b}):x(QA,{className:b}):o?x(tS,{className:b}):x(oG,{className:b}),S=i,C=x(ic,{open:m,onOpenChange:p,placement:"bottomLeft",getPopupContainer:d,menu:{items:g,style:{...rG,border:`1px solid ${Zf()}`},selectedKeys:[a]},children:x(lt,{css:[m&&Qf,"",""],children:H("span",{className:"h-full flex items-center gap-x-4px",children:[y,S]})})});return H("div",{ref:u,className:"flex items-center gap-x-10px",children:[!n&&C,e,x(Pg,{})]})}function zRe({allFavFolderServices:e,state:t}){const{fav:n}=Ut(),r=uo(),{ref:o,getPopupContainer:i}=Lu(),{totalCountInFavFolders:a}=yt(t),[l,u]=f.useState(false),d=tt((g,b,y)=>{u(true),st.fav.excludedFolderIds=g.map(S=>S.toString());}),m=f.useMemo(()=>e.filter(g=>!n.excludedFolderIds.includes(g.entry.id.toString())).length,[e,n.excludedFolderIds]),p=tt(g=>{g?u(false):l&&r();});return x(Jo,{getTooltipContainer:i,trigger:"click",placement:"bottom",onOpenChange:p,getPopupContainer:g=>g.parentElement||document.body,content:x(_e,{children:x(C1,{dataSource:e,rowKey:g=>g.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:n.excludedFolderIds,onChange:d,render:g=>g.entry.title,oneWay:true,style:{marginBottom:10}})}),children:H(yo,{ref:o,color:"success",className:"mx-0 cursor-pointer text-size-12px",children:["收藏夹(",m,") 收藏(",a,")"]})})}function kRe(){const{menuItems:e,selectedKey:t}=iG("sidebarView"),{menuRef:n}=Yq(e,t);return H(_e,{children:[x(oc,{ref:n,items:e,selectedKeys:[t],mode:"inline",inlineIndent:10}),Kq]})}var za=(e=>(e[e.Offline=0]="Offline",e[e.Streaming=1]="Streaming",e[e.Rolling=2]="Rolling",e))(za||{});class ZA extends Map{#n=0;#e=new Map;#t=new Map;#o;#a;#i;constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.#o=t.maxSize,this.#a=t.maxAge||Number.POSITIVE_INFINITY,this.#i=t.onEviction;}get __oldCache(){return this.#t}#s(t){if(typeof this.#i=="function")for(const[n,r]of t)this.#i(n,r.value);}#r(t,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.#i=="function"&&this.#i(t,n.value),this.delete(t)):false}#f(t,n){if(this.#r(t,n)===false)return n.value}#c(t,n){return n.expiry?this.#f(t,n):n.value}#u(t,n){const r=n.get(t);return this.#c(t,r)}#d(t,n){this.#e.set(t,n),this.#n++,this.#n>=this.#o&&(this.#n=0,this.#s(this.#t),this.#t=this.#e,this.#e=new Map);}#m(t,n){this.#t.delete(t),this.#d(t,n);}*#l(){for(const t of this.#t){const[n,r]=t;this.#e.has(n)||this.#r(n,r)===false&&(yield t);}for(const t of this.#e){const[n,r]=t;this.#r(n,r)===false&&(yield t);}}get(t){if(this.#e.has(t)){const n=this.#e.get(t);return this.#c(t,n)}if(this.#t.has(t)){const n=this.#t.get(t);if(this.#r(t,n)===false)return this.#m(t,n),n.value}}set(t,n,{maxAge:r=this.#a}={}){const o=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return this.#e.has(t)?this.#e.set(t,{value:n,expiry:o}):this.#d(t,{value:n,expiry:o}),this}has(t){return this.#e.has(t)?!this.#r(t,this.#e.get(t)):this.#t.has(t)?!this.#r(t,this.#t.get(t)):false}peek(t){if(this.#e.has(t))return this.#u(t,this.#e);if(this.#t.has(t))return this.#u(t,this.#t)}expiresIn(t){const n=this.#e.get(t)??this.#t.get(t);if(n)return n.expiry?n.expiry-Date.now():Number.POSITIVE_INFINITY}delete(t){const n=this.#e.delete(t);return n&&this.#n--,this.#t.delete(t)||n}clear(){this.#e.clear(),this.#t.clear(),this.#n=0;}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this.#l()],r=n.length-t;r<0?(this.#e=new Map(n),this.#t=new Map,this.#n=n.length):(r>0&&this.#s(n.slice(0,r)),this.#t=new Map(n.slice(r)),this.#e=new Map,this.#n=0),this.#o=t;}evict(t=1){const n=Number(t);if(!n||n<=0)return;const r=[...this.#l()],o=Math.trunc(Math.min(n,Math.max(r.length-1,0)));o<=0||(this.#s(r.slice(0,o)),this.#t=new Map(r.slice(o)),this.#e=new Map,this.#n=0);}*keys(){for(const[t]of this)yield t;}*values(){for(const[,t]of this)yield t;}*[Symbol.iterator](){for(const t of this.#e){const[n,r]=t;this.#r(n,r)===false&&(yield [n,r.value]);}for(const t of this.#t){const[n,r]=t;this.#e.has(n)||this.#r(n,r)===false&&(yield [n,r.value]);}}*entriesDescending(){let t=[...this.#e];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.#r(o,i)===false&&(yield [o,i.value]);}t=[...this.#t];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.#e.has(o)||this.#r(o,i)===false&&(yield [o,i.value]);}}*entriesAscending(){for(const[t,n]of this.#l())yield [t,n.value];}get size(){if(!this.#n)return this.#t.size;let t=0;for(const n of this.#t.keys())this.#e.has(n)||t++;return Math.min(this.#n+t,this.#o)}get maxSize(){return this.#o}get maxAge(){return this.#a}entries(){return this.entriesAscending()}forEach(t,n=this){for(const[r,o]of this.entriesAscending())t.call(n,o,r,this);}get[Symbol.toStringTag](){return "QuickLRU"}toString(){return `QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}const FRe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2m8-16h2a2 2 0 0 1 2 2v2m-4 12h2a2 2 0 0 0 2-2v-2M9 10h.01M15 10h.01M9.5 15.05a3.5 3.5 0 0 1 5 0"})]}),HRe=f.forwardRef(FRe);function VRe(e){return e instanceof Error&&e.name==="AxiosError"}function vh(e){return e&&x("p",{className:"mt-10px",children:e})}function aG(e){if(!(e&&e instanceof Error))return vh(JSON.stringify(e));const t=!!e.message&&H(_e,{children:["Error Message: ",e.message]}),n=!!e.stack&&H(_e,{children:["Error Stack: ",x("br",{}),e.stack]});let r,o;if(e.cause&&(r=H(_e,{children:["Error Cause: ",aG(e.cause)]})),VRe(e)){const i=sf(e);i.config?.params?.access_key&&(i.config.params.access_key="*".repeat(i.config.params.access_key.length)),o=H(_e,{children:["axios config: ",JSON.stringify(i.config,null,2)]});}return H(_e,{children:[vh(t),vh(n),vh(r),vh(o)]})}function jRe(e){return e&&e instanceof sG&&e.message||e&&e instanceof cA?e.message:"出错了, 请刷新重试!"}class sG extends Error{constructor(t){super(t),this.name="ShowMessageError";}}function URe({err:e,tab:t}){const n=Z1(),r=f.useMemo(()=>jRe(e),[e]),o=f.useMemo(()=>aG(e),[e]);return H("div",{className:"flex flex-col items-center gap-y-0.5em p-20px text-center text-size-20px",children:[x(mn,{title:H("div",{className:"py-10px",children:[x("h3",{children:"错误详情"}),x("div",{className:"max-h-50vh overflow-hidden overflow-y-auto whitespace-pre-wrap break-normal",children:o})]}),children:H("p",{className:"flex cursor-pointer items-center justify-center",children:[x(HRe,{className:"mr-4px"}),r]})}),t===rt.Hot&&Go.subtab===hr.PopularWeekly&&H("p",{className:"mt-8px flex items-center justify-center",children:["可能需手动输入验证码",x(Po,{className:"ml-12px"}),x("a",{href:"https://www.bilibili.com/v/popular/weekly",target:n,className:"ml-2px",children:"每周必看"})]}),t===rt.Liked&&e instanceof cA&&x(OA,{className:"mt-0.5em"})]})}function lG(e){const t=e==="follow"?1:2;return async function(r){return await iq(r,t)}}const WRe=lG("follow"),qRe=lG("unfollow"),GRe={follow:WRe,unfollow:qRe};function KRe(e){return [1,2,6].includes(e.attribute)}async function YRe(e){return (await Xt.get("/x/relation",{params:{fid:e}})).data.data}const XRe=lA(YRe,{cacheKey:([e])=>e.toString()});async function QRe(e){const n=(await Xt.get("/x/space/wbi/acc/info",{params:{mid:e,w_webid:await vq()||""}})).data;if(!Vn(n)){Xo("space acc info error for %s: %o",e,n);return}return n.data}const JA=_u({fn:QRe,generateKey:e=>e.toString(),tableName:"space-acc-info",ttl:co("10d"),concurrency:2});async function ZRe(e){return (await JA(e))?.name}const Ig=_u({fn:ZRe,generateKey:e=>e.toString(),tableName:"user-nickname",ttl:co("10d")});async function x$(e,t){await Ig.cache.set(e.toString(),{val:t,ts:Date.now()});}const cG=H(_e,{children:["1. 可以使用多个过滤词, 用空格分隔, 逻辑关系为且 (AND) ",x("br",{}),'2. 可以使用引号包裹过滤词, 如 "word or sentence" ',x("br",{}),'3. 可以使用 -"word or sentence" 排除; 必须使用引号(单引号 或 双引号) ',x("br",{})]});function uG(e){const t=[],n=[];if(!e.trim())return {includes:t,excludes:n};let r=0;const o=e.length;for(;r<o;){for(;r<o&&e[r]===" ";)r++;if(r>=o)break;let i=false,a="";if(e[r]==="-"){const l=e[r+1];(l==='"'||l==="'")&&(i=true,r++);}if(e[r]==='"'||e[r]==="'"){const l=e[r];r++;let u=false;for(;r<o;){const d=e[r];if(u){a+=d,u=false,r++;continue}if(d==="\\"){const m=e[r+1];if(m==='"'||m==="'"){u=true,r++;continue}a+=d,r++;continue}if(d===l){r++;break}a+=d,r++;}}else for(;r<o&&e[r]!==" ";){if(e[r]==="\\"){r++,r<o&&(a+=e[r],r++);continue}a+=e[r],r++;}a&&(i?n.push(a):t.push(a));}return {includes:t,excludes:n}}function JRe(e){return !!(e.elec_arc_type===1||!e.elec_arc_type&&e.is_charging_arc||e.elec_arc_type===2)}const e6=function({value:e,onChange:t,disabled:n,list:r,listDisplayConfig:o,dropdownProps:i,extraHelpInfo:a,$ref:l}){const{icon:u,label:d}=o[e],m=tt(S=>{const C=r.filter(T=>T!=="divider"),w=C.indexOf(e);if(w===-1)return;const $=(w+(S.shiftKey?-1:1)+C.length)%C.length,E=C[$];t(E);}),p=f.useMemo(()=>vi(r.map(S=>{if(S==="divider")return {type:"divider"};const{icon:C,label:w}=o[S];return {key:S,icon:C,label:w,onClick:()=>t(S)}})),[r,o,t]),[g,b]=f.useState(false),y=Ewe();return H("span",{className:"inline-flex items-center",ref:l,children:[x(ic,{open:g,onOpenChange:b,disabled:n,menu:{items:p,selectedKeys:[e.toString()],styles:{root:y}},placement:"bottomRight",classNames:{root:"text-13px",item:"justify-start",itemContent:"flex-shrink-0"},...i,children:H(lt,{className:X(lU,"px-3"),css:[g&&Qf,"",""],disabled:n,onClick:m,children:[u,d]})}),H(pr,{children:[a,a&&x(Y3,{}),"操作说明: ",x("br",{}),"1. 点击/下拉切换 ",x("br",{}),"2. 按住 ",x("kbd",{className:Su,children:"Shift"})," 键点击逆序切换 ",x("br",{})]})]})};function eTe(){const{searchText:e,filterText:t}=yt(ra,{sync:true}),{allowedOrders:n,usingOrder:r}=yt(ra),{spaceUpload:{useSyncFilterTextFromSearchText:o}}=Ut(),i=uo(),{recSharedEmitter:a}=Mi(),l=tt(()=>{u();const{searchText:d,filterText:m}=ra,p=location.href,g=new URL(p);d?g.searchParams.set(Ha.SearchText,d):g.searchParams.delete(Ha.SearchText),m?g.searchParams.set(Ha.FilterText,m):g.searchParams.delete(Ha.FilterText),g.href!==p&&history.replaceState({},"",g.href);}),u=tt(()=>{st.spaceUpload.useSyncFilterTextFromSearchText&&(ra.filterText=ra.searchText);});return io(l),H("div",{className:"flex items-center gap-x-10px",children:[x(e6,{value:r,list:n,listDisplayConfig:vRe,onChange:d=>{ra.order=d,i();}}),x(Yi.Search,{style:{width:200},placeholder:"搜索词",allowClear:true,value:e,onChange:d=>ra.searchText=d.target.value,onSearch:d=>{ra.searchText=d,l(),i();}}),H(eo.Compact,{children:[x(eo.Addon,{children:x(mn,{title:x(_e,{children:"精准搜索: 自动将搜索词同步到过滤词"}),children:x(It,{className:"[&>.ant-checkbox-label]:hidden",configPath:"spaceUpload.useSyncFilterTextFromSearchText",extraAction:d=>{d&&(l(),i());}})})}),x(Yi.Search,{style:{width:200},placeholder:"本地过滤词",allowClear:true,value:t,disabled:o,onChange:d=>ra.filterText=d.target.value,onSearch:d=>{ra.filterText=d,l(),i();}})]}),x(It,{configPath:"spaceUpload.showVol",label:"显示序号",className:"flex-none"}),x(Pg,{})]})}const dG=new ZA({maxSize:100}),Ay=Rr();async function tTe(e){if(Ay.has(e))return;const t=await XRe(e);KRe(t)&&Ay.add(e);}function fG(){const e=Vr(ra);return {mids:e.mids,groupId:e.groupId,order:e.usingOrder,searchText:e.searchText,filterText:e.filterText,initialPage:X9?Number(X9):void 0}}class t6 extends Gs{constructor(t){if(super(t6.PAGE_SIZE),this.config=t,Object.assign(this,t),this.mids=t.mids,this.order=t.order,Ir(this.mids.length||this.groupId!==void 0,"mid & groupId can not both be empty"),this.searchText=this.searchText?.trim(),this.initialPage&&(this.groupId!==void 0||this.mids.length>1))throw new Error("initialPage not supported when merging")}static PAGE_SIZE=20;mids;groupId;order;searchText;filterText;initialPage;sidebarView=void 0;tabbarView=x(eTe,{});get hasMoreExceptQueue(){return this.service?this.service.hasMore:true}async fetchAvatars(t){await Promise.all(t.map(async n=>{const r=await JA(n);r&&dG.set(n,r.face);}));}async fetchFollowState(t){await Gl(t,tTe,3);}pageTitleSet=false;async setPageTitle(){if(this.pageTitleSet)return;const t=[];this.searchText&&t.push(`🔍【${this.searchText}】`),this.filterText&&t.push(`⏳【${this.filterText}】`);let n;if(this.mids.length)n=(await Gl(this.mids,Ig,3)).map(i=>i?.trim()).filter(Boolean).map(i=>`「${i}」`).join("、");else {const i=(await bq()).find(a=>a.tagid===this.groupId)?.name||"";n=i?`「${i}」`:"";}const r=[t.join(""),`${n}的投稿`].map(o=>o.trim()).filter(Boolean).join(" - ");pA(r),this.pageTitleSet=true;}singleUpService;mergeTimelineService;async setupServices(){if(!(this.singleUpService||this.mergeTimelineService)){if(this.mids.length===1){this.singleUpService=new mG(this.mids[0],this.order,this.searchText,this.initialPage);return}if(this.mids.length){this.mergeTimelineService=new Z9(this.mids,this.order,this.searchText);return}if(this.groupId!==void 0){const t=await eM(this.groupId);if(t.forEach(n=>Ay.add(n)),!t.length)throw new Error("Group is Empty!");this.mergeTimelineService=new Z9(t.map(n=>n.toString()),this.order,this.searchText);return}}}get service(){return this.singleUpService||this.mergeTimelineService}warnNeedLoginOnce=Rf(UG);async fetchMore(t){if(!mU())throw this.warnNeedLoginOnce(),new sG(jG);this.setPageTitle(),await this.setupServices(),Ir(this.service,"this.service should exist after setupServices");const n=await this.service.loadMore(t)||[],r=this.singleUpService?this.singleUpService.endVol:this.mergeTimelineService.count-this.qs.fetchedCount;let o=n.map((i,a)=>({...i,api:Qe.SpaceUpload,uniqId:`${Qe.SpaceUpload}:${i.bvid}`,groupId:this.groupId,vol:r-a,page:this.singleUpService?this.singleUpService.page-1:void 0}));if(o=o.filter(i=>!JRe(i)),this.filterText){const{includes:i,excludes:a}=uG(this.filterText);o=o.filter(l=>i.every(u=>l.title.includes(u))&&a.every(u=>!l.title.includes(u)));}{const i=ky(o.filter(a=>a.author.trim()!=="账号已注销")).map(a=>a.mid).filter(Boolean);await Promise.all([this.fetchAvatars(i),this.fetchFollowState(i)]);}return o}}class Z9{constructor(t,n,r){this.mids=t,this.order=n,this.searchText=r,Ir(this.mids.length===1||this.mids.length>1&&this.order!==$s.Fav,"SpaceUploadItem.Fav not supported when merging"),this.singleUpServices=t.map(o=>new mG(o,this.order,this.searchText));}singleUpServices;get hasMore(){return this.singleUpServices.some(t=>t.hasMore)}get count(){return this.singleUpServices.reduce((t,n)=>t+n.count,0)}async refillQueues(t){await Gl(this.singleUpServices,n=>n.refillQueue(1,t),5);}async loadMore(t){if(!this.hasMore)return;if(this.mids.length===1)return this.singleUpServices[0].loadMore(t);const n=[],r=10;for(;this.hasMore&&n.length<r;){await this.refillQueues(t);const o=this.singleUpServices.filter(l=>l.bufferQueue.length>0),i=xs(o.map(l=>{const u=l.bufferQueue[0],d={[$s.Latest]:u.created,[$s.View]:u.play,[$s.Fav]:u.play}[this.order];return {service:l,item:u,valueForSort:d}}),["valueForSort"],["desc"]).map(l=>l.service)[0];if(!i)break;const a=i.bufferQueue[0];i.bufferQueue=i.bufferQueue.slice(1),n.push(a);}return n}}class mG{constructor(t,n,r,o){this.mid=t,this.order=n,this.searchText=r,this.initialPage=o,this.page=this.initialPage??1;}bufferQueue=[];hasMoreForApi=true;count=0;endVol=0;get hasMore(){return !!this.bufferQueue.length||this.hasMoreForApi}async refillQueue(t,n){if(this.hasMore)for(;!n?.aborted&&this.hasMoreForApi&&this.bufferQueue.length<t;){const r=await this.loadMore(n)||[];this.bufferQueue.push(...r);}}page;async loadMore(t){const{items:n,hasMore:r,count:o,endVol:i}=await SRe({mid:this.mid,order:this.order,pagenum:this.page,keyword:this.searchText||""});return this.hasMoreForApi=r,this.page++,this.count=o,this.endVol=i,n}}const J9=e=>(e||"").replace(/^http:\/\//,"https://"),n6="·";function nTe(e,t){const n=e.api,r=t[n];return r(e)}function rTe(){const t=new WeakMap;return t.clear??=qL,t.size=0,t}const Bu=cQ(e=>{const t=nTe(e,{[Qe.AppRecommend]:oTe,[Qe.PcRecommend]:aTe,[Qe.DynamicFeed]:sTe,[Qe.Watchlater]:lTe,[Qe.Fav]:cTe,[Qe.PopularGeneral]:uTe,[Qe.PopularWeekly]:dTe,[Qe.Rank]:fTe,[Qe.Live]:mTe,[Qe.SpaceUpload]:hTe,[Qe.Liked]:pTe});return t.authorFace&&(t.authorFace=J9(t.authorFace)),t.cover&&(t.cover=J9(t.cover)),t.bvid||=void 0,t.avid||=void 0,t},{cache:rTe(),getCacheKey:e=>e});function oTe(e){return iTe(e)}function iTe(e){const t=C=>{const{cover_left_text_1:w,cover_left_text_2:$,cover_left_text_3:E}=e,T=[w,$,E].filter(Boolean);if(C==="play"){const R=T.find(N=>/观看|播放$/.test(N));if(!R)return;const I=R.replace(/观看|播放$/,"");return Jc(I)}if(C==="danmaku"){const R=T.find(N=>N.endsWith("弹幕"));if(!R)return;const I=R.replace(/弹幕$/,"");return Jc(I)}if(C==="bangumi:follow"){const R=T.find(N=>/追[剧番]$/.test(N));if(!R)return;const I=R.replace(/追[剧番]$/,"");return Jc(I)}},n=e.param,r=e.bvid||kA(Number(e.param)),o=e.player_args?.cid,i=(()=>{if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return Xo("bangumi uri should not starts with 'bilibili://': %s",e.uri),e.uri;if(e.goto==="picture"){const C=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri)?.[1];return C?`/read/cv${C}`:e.uri}return e.uri})(),a=t("play"),l=void 0,u=void 0,d=t("danmaku"),m=void 0,p=t("bangumi:follow"),g=[{field:"play",value:a},typeof d=="number"?{field:"danmaku",value:d}:{field:"bangumi:follow",value:p}],b=e.desc||"",[y=void 0,S=void 0]=b.split(n6);return {avid:n,bvid:r,cid:o,goto:e.goto,href:i,title:e.title,cover:e.cover,pubts:void 0,pubdateDisplay:S,duration:e.player_args?.duration||0,durationStr:qs(e.player_args?.duration),recommendReason:e.bottom_rcmd_reason||e.top_rcmd_reason,play:a,like:l,coin:u,danmaku:d,favorite:m,bangumiFollow:p,statItems:g,authorName:e.args.up_name||y,authorFace:e.avatar.cover,authorMid:String(e.args.up_id||""),appBadge:e.cover_badge,appBadgeDesc:e.desc}}function aTe(e){e.goto,ws.AV;const t=e.goto===ws.Live;return {avid:t?void 0:String(e.id),bvid:t?void 0:e.bvid,cid:t?void 0:e.cid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:qs(e.duration),recommendReason:t?e.room_info?.area.area_name:e.rcmd_reason?.content,play:e.stat?.view,like:e.stat?.like,coin:void 0,danmaku:e.stat?.danmaku,favorite:void 0,statItems:t?[{field:"live:viewed-by",value:e.room_info?.watched_show.num}]:[{field:"play",value:e.stat?.view},{field:"danmaku",value:e.stat?.danmaku}],authorName:e.owner?.name,authorFace:e.owner?.face,authorMid:String(e.owner?.mid)}}function sTe(e){const t=Rq(e);return Ir(t,"unexpected `normalizeDynamicFeedItem` empty result"),t}function lTe(e){const t=q3e(e.state),n=e.progress>0,r=`${n?"【已观看】· ":""}${e.title}`,o=t?x(mn,{title:H(_e,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:H("del",{children:[n?"【已观看】· ":"",e.title,"`"]})}):void 0,{watchlaterUseNormalVideoUrl:i,watchlaterItemsOrder:a}=xg(),l=(()=>{if(i)return `https://www.bilibili.com/video/${e.bvid}/`;let u=`https://www.bilibili.com/list/watchlater?bvid=${e.bvid}&oid=${e.aid}`;return a===So.AddTimeAsc&&(u+="&desc=0"),u})();return {avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:l,title:r,titleRender:o,cover:e.pic,pubts:e.pubdate,pubdateDisplayForTitleAttr:`${m0(e.pubdate,true)} 发布, ${m0(e.add_at,true)} 添加稍后再看`,duration:e.duration,durationStr:qs(e.duration),recommendReason:`${m0(e.add_at)} · 稍后再看`,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like},{field:"favorite",value:e.stat.favorite}],play:e.stat.view,like:e.stat.like,danmaku:e.stat.danmaku,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function cTe(e){const t=e.from==="fav-folder"?e.folder.title:e.collection.title,n={display:"inline-block",verticalAlign:"middle",marginRight:4,marginTop:-2},r="[&_path]:fill-gate-primary",o=e.from==="fav-folder"?Y1(e.folder.attr)?x(XA,{className:X("size-15px",r),style:n}):x(QA,{className:X("size-15px",r),style:n}):x(tS,{className:X("size-15px",r),style:n});return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${t}】· ${e.title}`,titleRender:H(_e,{children:["【",o,t,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,duration:e.duration,durationStr:qs(e.duration),recommendReason:e.from==="fav-folder"?`${m0(e.fav_time)} · 收藏`:void 0,play:e.cnt_info.play,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,statItems:[{field:"play",value:e.cnt_info.play},{field:"danmaku",value:e.cnt_info.danmaku},{field:"favorite",value:e.cnt_info.collect}],authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}function uTe(e){return {avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:qs(e.duration),recommendReason:e.rcmd_reason?.content,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function dTe(e){return {avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:qs(e.duration),recommendReason:e.rcmd_reason,play:e.stat.view,like:e.stat.like,danmaku:e.stat.danmaku,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function fTe(e){if(D3e(e)||O3e(e)){const n=e.new_ep.cover,r=e.new_ep.index_show;return {avid:"",bvid:"",goto:"bangumi",href:e.url,title:e.title,cover:n,pubts:void 0,pubdateDisplay:void 0,duration:0,durationStr:"",play:e.stat.view,like:e.stat.follow,danmaku:e.stat.danmaku,statItems:[{field:"play",value:e.stat.view},{field:"bangumi:follow",value:e.stat.follow}],rankingDesc:r}}let t=(e.dynamic||e.desc)?.trim();return t==="-"&&(t=void 0),t&&e.title.includes(t)&&(t=void 0),{avid:String(e.aid),bvid:e.bvid,cid:e.cid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,duration:e.duration,durationStr:qs(e.duration),recommendReason:t,play:e.stat.view,like:e.stat.like,danmaku:e.stat.danmaku,statItems:[{field:"play",value:e.stat.view},{field:"like",value:e.stat.like}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function mTe(e){const t=`${e.area_name_v2}`,n=e.live_status===za.Streaming?"":`${n6}${o(e.record_live_time)} 直播过`,r="https://s1.hdslb.com/bfs/static/blive/blfe-link-center/static/img/average-backimg.e65973e.png";function o(i){const a=Yn().format("YYYYMMDD"),l=Yn().subtract(1,"day").format("YYYYMMDD"),u=Yn.unix(i);return u.format("YYYYMMDD")===a?u.format("HH:mm"):u.format("YYYYMMDD")===l?`昨天 ${u.format("HH:mm")}`:u.format("MM-DD HH:mm")}return {goto:"live",href:`https://live.bilibili.com/${e.roomid}`,title:e.title,cover:e.room_cover||r,recommendReason:t,liveExtraDesc:n,statItems:[{field:"live:viewed-by",value:e.text_small}],authorName:e.uname,authorFace:e.face,authorMid:String(e.uid)}}function hTe(e){const t=Ey(e.length),n=qs(t);let r=e.description?.trim();return r==="-"&&(r=void 0),r&&e.title.includes(r)&&(r=void 0),{avid:e.aid.toString(),bvid:e.bvid,cid:void 0,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.created,duration:t,durationStr:n,recommendReason:r,play:e.play,like:void 0,coin:void 0,danmaku:e.video_review,favorite:void 0,statItems:[{field:"play",value:e.play},{field:"danmaku",value:e.video_review}],authorName:e.author,authorFace:dG.get(e.mid),authorMid:e.mid.toString(),followed:Ay.has(e.mid)}}function pTe(e){const{videoDetail:t}=e,n=e.param,r=kA(Number(n));return {avid:n,bvid:r,cid:void 0,goto:"av",href:`/video/${r}/`,title:e.title,cover:e.cover,pubts:t?.pubdate??e.ctime,duration:e.duration,durationStr:qs(e.duration),recommendReason:void 0,play:e.play,danmaku:e.danmaku,like:void 0,coin:void 0,favorite:void 0,statItems:[{field:"play",value:e.play},{field:"danmaku",value:e.danmaku}],authorName:e.author,authorFace:t?.owner.face,authorMid:t?.owner.mid?.toString()}}const eL=/^(?<mid>\d+)\((?<remark>[\S ]+)\)$/,gTe=/^\d+$/;function nS(e){if(eL.test(e)){const t=eL.exec(e)?.groups,n=t?.mid,r=t?.remark;return {mid:n,remark:r}}return gTe.test(e)?{mid:e,remark:void 0}:{}}function lM(e){const t=new Set,n=new Set;return e.forEach(r=>{const{mid:o}=nS(r);o?t.add(o):n.add(r);}),{blockUpMids:t,blockUpNames:n}}function tL(e){const t=[],n=[];e.forEach(o=>{if(o.startsWith("/")&&o.endsWith("/")){const i=new RegExp(o.slice(1,-1),"i");t.push(i);}else n.push(o);});function r(o){return n.some(i=>o.includes(i))||t.some(i=>i.test(o))}return {titleKeywordList:n,titleRegexList:t,test:r}}const na=so.extend("modules:filter");function r6(e){return !!e&&["已关注","新关注"].includes(e)}function hG(e){return [Qe.AppRecommend,Qe.PcRecommend,Qe.Rank,Qe.PopularGeneral,Qe.PopularWeekly].includes(e)}function Ny(e,t){if(!st.filter.enabled&&!Qh.size)return e;const n=xg().filter,{minDuration:r,minPlayCount:o,minDanmakuCount:i,byAuthor:a,byTitle:l,dfByTitle:u,dfHideOpusMids:d}=n,{blockUpMids:m,blockUpNames:p}=lM(a.keywords),{test:g}=tL(l.keywords),{test:b}=tL(u.keywords),{blockUpMids:y}=lM(d.keywords);return e.filter(S=>{if(S.api===Qe.Separator)return  true;const{play:C,duration:w,danmaku:$,recommendReason:E,goto:T,authorName:R,authorMid:I,title:N,bvid:P,href:O}=Bu(S),_=r6(E);if(t==="keep-follow-only"&&!_)return  false;function L(){if(I&&Qh.size&&Qh.has(I))return na("filter out by blacklist-rule: %s %o",I,{bvid:P,title:N}),false;if(n.enabled&&a.enabled&&(m.size||p.size)&&(R||I)&&(R&&p.has(R)||I&&m.has(I)))return na("filter out by author-rule: %o",{authorName:R,authorMid:I,rules:a.keywords,blockUpMids:m,blockUpNames:p,bvid:P,title:N}),false;let F=[N];if(S.api===Qe.Rank&&zA(S)&&S.desc&&F.push(S.desc),F=F.filter(Boolean),n.enabled&&l.enabled&&l.keywords.length&&F.length&&F.some(g))return na("filter out by title-rule: %o",{possibleTitles:F,rules:l.keywords,bvid:P}),false}if(hG(S.api)&&L()===false)return  false;if((S.api===Qe.AppRecommend||S.api===Qe.PcRecommend)&&n.enabled){const F=T==="av",z=T==="picture",j=T==="bangumi";if(F)return k();if(z)return W();if(j)return q()}function k(){return _&&n.exemptForFollowed.video?true:E==="关注了你"?(na("filter out by recommendReason-rule: %s %o",E,{bvid:P,title:N}),false):r.enabled&&r.value&&w&&w<r.value?(na("filter out by min-duration-rule: %s < %s %o",w,r.value,{bvid:P,title:N}),false):o.enabled&&o.value&&typeof C=="number"&&C<o.value?(na("filter out by min-play-count-rule: %s < %s, %o",C,o.value,{bvid:P,title:N}),false):i.enabled&&i.value&&typeof $=="number"&&$<i.value?(na("filter out by min-danmaku-count-rule: %s < %s, %o",$,i.value,{bvid:P,title:N}),false):true}function W(){return n.hideGotoTypePicture?_&&n.exemptForFollowed.picture?true:(na("filter out by goto-type-picture-rule: %s %o",T,{bvid:P,title:N}),false):true}function q(){return n.hideGotoTypeBangumi?(na("filter out by goto-type-bangumi-rule: %s %o",T,{title:N,href:O}),false):true}if(Kd(S)&&n.enabled){const{major:F}=S.modules.module_dynamic,z=F?.type===hi.MajorType.Opus;if(st.filter.dfByTitle.enabled&&st.filter.dfByTitle.keywords.length){let j=[N];if(z&&j.push(F.opus.summary?.text||""),j=ky(j.filter(Boolean)),j.some(b))return na("filter out by df-title-rule: %o",{possibleTitles:j,rules:u.keywords,uniqId:S.uniqId,item:S}),false}if(z&&d.enabled&&d.keywords.length&&I&&y.has(I))return na("filter out by df-hide-opus-mids-rule: %o",{dfHideOpusMids:d,authorMid:I,title:N,uniqId:S.uniqId}),false}return  true})}async function vTe(e){return (await Xt.get("https://api.live.bilibili.com/xlive/web-ucenter/user/following",{params:{page:e,page_size:Og.PAGE_SIZE,ignoreRecord:1,hit_ab:true}})).data}class Og extends Gs{constructor(t=false){super(Og.PAGE_SIZE),this.streamingOnly=t;}static PAGE_SIZE=20;tabbarView=void 0;sidebarView=void 0;hasMoreExceptQueue=true;separatorAdded=false;liveCount=-1;page=1;totalPage=1/0;async fetchMore(t){if(this.page>this.totalPage){this.hasMoreExceptQueue=false;return}const n=await vTe(this.page);Vn(n)||(fn(n.message||Af),this.hasMoreExceptQueue=false),this.page++;const{count:r,live_count:o,totalPage:i}=n.data;this.totalPage=i,this.liveCount=o;const a=n.data.list.map(m=>({...m,api:Qe.Live,uniqId:`${Qe.Live}:${m.roomid}`})),l=a.at(-1),u=Yn().subtract(2,"weeks").unix();if(l){const m=l.live_status,p=l.record_live_time;m!==za.Streaming&&p&&p<u&&(this.hasMoreExceptQueue=false);}let d=a;if(!this.streamingOnly&&!this.separatorAdded&&a.some(m=>m.live_status!==za.Streaming)){this.separatorAdded=true;const m=a.findIndex(p=>p.live_status!==za.Streaming);d.splice(m,0,{api:Qe.Separator,uniqId:`${Qe.Live}:separator:recent`,content:"最近直播过"});}return this.streamingOnly&&a.some(m=>m.live_status!==za.Streaming)&&(this.hasMoreExceptQueue=false,d=a.filter(m=>m.live_status===za.Streaming)),d}}const bTe=so.extend("modules:rec-services:dynamic-feed:api");async function Dg({videoOnly:e,offset:t,page:n,upMid:r,abortSignal:o}){const i={timezone_offset:"-480",type:e?"video":"all",platform:"web",features:"itemOpusStyle",web_location:"0.0","x-bili-device-req-json":JSON.stringify({platform:"web",device:"pc"}),"x-bili-web-req-json":JSON.stringify({spm_id:"0.0"}),page:n};t&&(i.offset=t);const a="/x/polymer/web-dynamic/v1/feed/all";r&&(i.host_mid=r);const u=(await Xt.get(a,{signal:o,params:i})).data;if(!Vn(u)){const m=u.message||Af;throw fn(m),new Error(m,{cause:u})}const d=u.data;return d?.items?.length&&(d.items=d.items.filter(m=>{const p=!!Rq(m);return p||bTe("dynamic-feed filter out: %o",{type:m.type,majorType:m.modules.module_dynamic.major?.type,additionalType:m.modules.module_dynamic.additional?.type,item:m}),p})),d}const Py=om("dynamic-feed-items"),_g=om("dynamic-feed-items-info");async function rS(e){return !!(await _g.get(e))?.count}function yTe(e,t){const n=a=>`update-filter-cache:${a}`,o=Jl((a,l)=>{ca.info({icon:x(yT,{className:"size-16px"}),key:n(e),title:"过滤缓存更新中...",description:`「${t}」更新中: Page(${a}) Total(${l})`,duration:false});},200);return {notifyOnProgress:o,notifyOnSuccess:()=>{o.flush(),ca.success({key:n(e),title:"缓存更新成功",description:`「${t}」的过滤缓存更新成功`,duration:false});}}}async function STe(e,t){await rS(e)?await pG(e):await xTe(e,void 0,t);}async function CTe(e,t=false){const n=await _g.get(e);if(!(!t&&n&&n.count&&n.updatedAt&&Date.now()-n.updatedAt<60*1e3))return pG(e)}async function pG(e){if(!await rS(e))return;const t=await Py.get(e)||[],n=new Set(t.map(u=>u.id_str));let r=1,o="",i=true,a=[];for(;i;){const u=await Dg({upMid:e,page:r,offset:o,videoOnly:true}),d=u.items;a=[...a,...d],o=u.offset,i=u.has_more,r++,i&&n.size&&d.every(p=>n.has(p.id_str))&&(i=false);}const l=Zl([...a,...t],u=>u.id_str);await Py.set(e,l),await _g.set(e,{count:l.length,updatedAt:Date.now()});}const w$=om("dynamic-feed-items-in-progress");async function xTe(e,t=false,n){const r=t?void 0:await w$.get(e);let o=r?.page??1,i=r?.offset??"",a=r?.items??[],l=true;for(;l;){const d=await Dg({upMid:e,page:o,offset:i,videoOnly:true}),m=d.items;a=[...a,...m],i=d.offset,l=d.has_more,o++,await w$.set(e,{page:o,offset:i,items:a}),n?.(o,a.length);}const u=Zl(a,d=>d.id_str);await Py.set(e,u),await _g.set(e,{count:u.length,updatedAt:Date.now()}),await w$.delete(e);}const gG=_u({fn:Dg,generateKey:({upMid:e,videoOnly:t})=>`upMid=${e}&videoOnly=${t}`,tableName:"dynamic-feed-newest-items",ttl:300*1e3});class wTe{constructor(t,n,r=false){this.upMid=t,this.videoOnly=n,this.enableHeadCache=r;}bufferQueue=[];hasMoreForApi=true;offset="";page=1;get hasMore(){return !!this.bufferQueue.length||this.hasMoreForApi}async loadMore(){const r=await(this.page===1&&!this.offset&&this.enableHeadCache?gG:Dg)({videoOnly:this.videoOnly,upMid:this.upMid,page:this.page,offset:this.offset});return this.offset=r.offset,this.hasMoreForApi=r.has_more,this.page++,fa(r,{has_more:true,items:[],offset:"",update_baseline:"",update_num:0})&&(this.hasMoreForApi=false),r.items}async fillQueue(t,n){for(;!n?.aborted&&this.hasMoreForApi&&this.bufferQueue.length<t;){const r=await this.loadMore();this.bufferQueue.push(...r);}}}class Es{constructor(t,n){this.upMids=t,this.videoOnly=n;const r=t.length>Es.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD;this.upServices=t.map(o=>new wTe(o,n,r));}static ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD=20;static ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD=10;upServices=[];get hasMore(){return this.upServices.some(t=>t.hasMore)}async loadMore(t){if(!this.hasMore)return [];const n=async()=>{await Gl(this.upServices,a=>a.fillQueue(1,t),5);},r=[],o=10;for(;this.hasMore&&r.length<o;){await n();const i=this.upServices.filter(u=>u.hasMore),a=xs(i.map(u=>{const d=u.bufferQueue[0],m=BigInt(d.id_str);return {service:u,item:d,id:m}}),["id"],["desc"]).map(u=>u.service)[0];if(!a)break;const l=a.bufferQueue[0];a.bufferQueue=a.bufferQueue.slice(1),r.push(l);}return r}}function bo(e,t,n){const r=tt(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e,t,r]);}function $Te(){return new Promise((e,t)=>{const n=new Image;n.onload=()=>e(true),n.onerror=r=>e(false),n.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=";})}const ETe=!bg&&await( $Te());function o6(e){return `${e}@96w_96h_1c_1s_!web-avatar${ETe?".avif":".webp"}`}function nL(e){return new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>t(true),n.onerror=()=>t(false);})}function MTe({externalFilterInput:e,onRefresh:t,getPopupContainer:n}){const{upMid:r,dynamicFeedVideoType:o,filterMinDuration:i,filterText:a,hideChargeOnlyVideos:l}=yt(en),u=x(Yi.Search,{style:{width:e?"250px":void 0},placeholder:"按标题关键字过滤",type:"search",autoCorrect:"off",autoCapitalize:"off",name:`filterText_${r}`,variant:"outlined",defaultValue:en.filterText,autoComplete:"off",allowClear:true,onChange:S=>{ATe({filterText:S.target.value,upMid:r,onRefresh:t});},onSearch:async S=>{en.filterText=S||void 0,await gn(100),t();}}),d=x(RTe,{externalFilterInput:e,filterInput:u,refresh:t}),[m,p]=f.useState(false),g=p,b=f.useMemo(()=>!!(o!==Ba.All||l||a||i!==du.All),[o,l,a,i]),y=x(Jo,{open:m,onOpenChange:g,arrow:false,placement:"bottomLeft",getPopupContainer:n,content:d,styles:{container:{border:`1px solid ${Zf()}`}},children:x(d1,{dot:b,color:xa,offset:[-5,5],children:x(lt,{className:"icon-only-round-button",css:m&&Qf,children:x(zp,{className:"ml-1px"})})})});return {filterInput:u,popoverContent:d,popoverTrigger:y}}const Qr={wrapper:"max-w-350px",section:"mt-10px min-w-300px first:mt-0px",sectionTilte:"flex items-center pb-2px pl-2px text-20px",sectionContent:"flex flex-col items-start gap-x-10px gap-y-6px"};function RTe({externalFilterInput:e,filterInput:t,refresh:n}){const{viewingSomeUp:r,selectedGroup:o,viewingSomeGroup:i,selectedKey:a,dynamicFeedVideoType:l,filterMinDuration:u,hideChargeOnlyVideos:d,addSeparators:m,filterText:p}=yt(en);let g;{const b=FA&&!!p,y=p===yq,{href:S}=f.useMemo(()=>{const C=new URL(location.href);return C.searchParams.has(gi.FilterTextFull)?C.searchParams.set(gi.FilterTextFull,p||""):C.searchParams.has(gi.FilterTextShort)?C.searchParams.set(gi.FilterTextShort,p||""):C.searchParams.set(gi.FilterTextFull,p||""),{href:C.href,path:`${C.pathname}?${C.search}`}},[p]);g=b&&x(mn,{title:S,children:H(lt,{disabled:y,href:S,children:["转到过滤词为「",p||"空","」的链接"]})});}return H("div",{className:Qr.wrapper,children:[H("div",{className:Qr.section,children:[H("div",{className:Qr.sectionTilte,children:["视频类型",H(pr,{children:["「",da.ChargeOnly,"」在此程序中归类为「投稿视频」",x("br",{}),"「动态视频」时长通常较短"]})]}),x("div",{children:x(no.Group,{buttonStyle:"solid",value:l,onChange:async b=>{en.dynamicFeedVideoType=b.target.value,await gn(100),n?.();},children:Object.values(Ba).map(b=>x(no.Button,{value:b,children:pMe[b]},b))})})]}),l!==Ba.DynamicOnly&&H("div",{className:Qr.section,children:[x("div",{className:Qr.sectionTilte,children:"充电专属"}),x("div",{className:Qr.sectionContent,children:x(Ki,{className:"ml-5px",checked:d,onChange:async b=>{const y=b.target.checked,S=en.hideChargeOnlyVideosForKeysSet;y?S.add(a):S.delete(a),await gn(100),n?.();},children:x(mn,{title:H(_e,{children:["隐藏「",da.ChargeOnly,"」视频 ",x("br",{}),"仅对当前 UP 或 分组生效"]}),children:H("span",{style:{userSelect:"none"},children:["隐藏「",da.ChargeOnly,"」"]})})})})]}),H("div",{className:Qr.section,children:[x("div",{className:Qr.sectionTilte,children:"最短时长"}),x("div",{children:x(no.Group,{className:"overflow-hidden [&_.ant-radio-button-wrapper]:px-10px",buttonStyle:"solid",value:u,onChange:async b=>{en.filterMinDuration=b.target.value,await gn(100),n?.();},children:Object.values(du).map(b=>{const{label:y}=xq[b];return x(no.Button,{value:b,children:y},b)})})})]}),(!e||g)&&H("div",{className:Qr.section,children:[x("div",{className:Qr.sectionTilte,children:"过滤"}),H("div",{className:Qr.sectionContent,children:[!e&&t,g]})]}),x(TTe,{}),H("div",{className:Qr.section,children:[H("div",{className:Qr.sectionTilte,children:[i?"分组":r?"UP":"全部",H(pr,{children:["当前",i?"分组":r?"UP":"范围","的一些操作~"]}),i&&o&&H("span",{className:"ml-15px inline-flex items-center text-size-14px",children:["(",H("a",{href:pq(o?.tagid||""),target:"_blank",className:`mx-4px inline-flex items-center text-size-16px ${_U}`,children:[x(Po,{className:"mr-2px size-18px"}),o?.name]}),")"]})]}),H("div",{className:Qr.sectionContent,children:[x(Ki,{checked:m,onChange:async b=>{en.addSeparatorsMap.set("global",b.target.checked),await gn(100),n?.();},children:x(mn,{title:H(_e,{children:["添加今日/更早分割线 ",x("br",{}),"当前实现为全局共享此设置"]}),children:"添加分割线"})}),i&&!!o&&x(NTe,{followGroup:o,refresh:n})]})]})]})}function TTe(){const{cacheAllItemsEntry:e,cacheAllItemsUpMids:t}=Ut().dynamicFeed.__internal,{viewingSomeUp:n,upMid:r,upName:o}=yt(en),i=ga(async(u,d)=>{const{notifyOnProgress:m,notifyOnSuccess:p}=yTe(u,d);await STe(u,m),p();},{manual:true}),a=f.useMemo(()=>!!r&&t.includes(r.toString()),[r,t]),l=f.useCallback(async u=>{if(!r)return;const m=u.target.checked?{add:[r]}:{remove:[r]};await Wa("dynamicFeed.__internal.cacheAllItemsUpMids",m);},[]);return x(_e,{children:e&&n&&r&&o&&H("div",{className:Qr.section,children:[H("div",{className:Qr.sectionTilte,children:["过滤缓存",H(pr,{children:["开启过滤缓存后, 会加载并缓存 UP 所有的动态 ",x("br",{}),"当本地有缓存且总条数 <= 5000时, 过滤框成为及时过滤, 无需点击过滤按钮"]})]}),H("div",{className:Qr.sectionContent,children:[H("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-3px",children:[x(Ki,{className:"inline-flex items-center",checked:a,onChange:l,children:x(mn,{title:"只有开启此项, 过滤时才会使用缓存",children:H("span",{children:["为「",o,"」开启"]})})}),x(lt,{loading:i.loading,onClick:async()=>{await i.runAsync(r,o);},children:"更新缓存"})]}),x(It,{configPath:"dynamicFeed.advancedFilter",label:"使用高级过滤",tooltip:cG})]})]})})}const ATe=Jl(async function({filterText:e,upMid:t,onRefresh:n}){if(!t||!(e||!e&&en.filterText)||!st.dynamicFeed.__internal.cacheAllItemsEntry||!st.dynamicFeed.__internal.cacheAllItemsUpMids.includes(t.toString())||!await rS(t))return;const r=await _g.get(t);!r||!r.count||r.count>=5e3||(en.filterText=e,await gn(0),n());},100);function vG(){return H(_e,{children:[x("p",{children:"机制介绍:"}),H("ul",{className:"text-13px",children:[H("li",{className:"flex items-start gap-x-10px",children:[x("div",{children:"「从全部过滤」:"}),x("div",{children:'基于全部动态 + 分组UP过滤, 速度可能巨慢, 且过滤后的数量取决于B站记录的"全部"动态范围'})]}),H("li",{className:"flex items-start gap-x-10px",children:[x("div",{children:"「拼接时间线」:"}),H("div",{children:["可以理解为: 去看一遍分组所有 UP 的动态, 然后将它们拼接起来 ",x("br",{}),"启动慢, 但可以加载所有动态; 且分组 UP 越多, 启动越慢 ",x("br",{}),"默认分组 UP 数量不超过 ",Es.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD," ","时会使用「拼接时间线」 ",x("br",{}),"详见",x("a",{className:"mx-5px",href:"https://magicdawn.fun/2024/12/01/bilibili-gate-dynamic-feed-merge-timeline/",target:"_blank",children:"介绍博客"})]})]})]})]})}function NTe({followGroup:e,refresh:t}){const{whenViewAll:n}=yt(st.dynamicFeed),r=e.count;let o;const i=rL(e.tagid,"dynamicFeed.followGroup.forceUseMergeTimelineIds");{const{checked:u,onChange:d}=i,m=r<=Es.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD;o=x(Ki,{checked:u,onChange:p=>{d(p),t?.();},disabled:m,children:x(mn,{title:H(_e,{children:[x(vG,{}),m&&H("p",{className:"text-yellow-400 italic",children:["当前分组 UP 数量: ",r,", 无需设置"]})]}),children:"分组动态: 强制使用「拼接时间线」"})});}let a;a=(r<=Es.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD||i.checked)&&r>Es.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD&&x(mn,{title:H(_e,{children:["当分组 UP 数量"," >  ",Es.ENABLE_HEAD_CACHE_UPMID_COUNT_THRESHOLD,"时, 「拼接时间线」功能会缓存每个 UP 的最新动态5分钟. ",x("br",{}),"这里可以手动清除缓存"]}),children:x(lt,{onClick:()=>{gG.cache.db.clear(),_t.success("已清除缓存");},children:"清除「拼接时间线」- 队头缓存"})});let l;{const{checked:u,onChange:d}=rL(`${Mu}${e.tagid}`,"dynamicFeed.whenViewAll.hideIds");l=n.enableHideSomeContents&&x(Ki,{checked:u,onChange:d,children:x(mn,{title:H(_e,{children:["在「全部」动态中隐藏来自此 ",e.name," 的动态"]}),children:"在「全部」动态中隐藏来自此分组的动态"})});}return H(_e,{children:[l,o,a]})}function rL(e,t){const n=SU(t),r=f.useMemo(()=>n.includes(e),[n]),o=tt(async a=>{await Wa(t,a?{add:[e]}:{remove:[e]});}),i=f.useCallback(a=>{o(a.target.checked);},[]);return {checked:r,setChecked:o,onChange:i}}function PTe(e){if(Object.assign(en,e),e.upMid){const t=en.upList.find(n=>n.mid.toString()===e.upMid);t&&(t.has_update=false);}}const $$={upMid:void 0,upName:void 0,upFace:void 0,filterText:void 0,selectedGroupId:void 0,dynamicFeedVideoType:Ba.All,filterMinDuration:du.All};function bG(e){const{upList:t,groups:n,selectedKey:r}=yt(en),o=uo(),{followGroup:{enabled:i}}=Ut().dynamicFeed,{recSharedEmitter:a}=Mi(),l=tt(async m=>{PTe(m),await gn(100),o();}),u=tt(()=>{l({...$$}),a.emit("dynamic-feed:clear");});return {menuItems:f.useMemo(()=>{const m={key:"all",icon:x(nu,{size:"small",children:"全"}),label:"全部",title:"全部",onClick:u};let p=[];i&&(p=n.map(y=>({key:`group:${y.tagid}`,icon:x(nu,{size:"small",children:y.name[0]||"组"}),label:`${y.name} (${y.count})`,title:`${y.name} (${y.count})`,onClick:()=>l({...$$,selectedGroupId:y.tagid})})));let g=t;e==="dropdown"&&(g=My(t,[{prop:y=>y.has_update?1:0,order:"desc"},{prop:y=>HA(y.uname),order:VA}]));const b=g.map(y=>{let S=x(nu,{size:"small",src:o6(y.face)});return y.has_update&&(S=x(d1,{dot:true,children:S})),{key:`up:${y.mid}`,icon:S,label:x("span",{title:y.uname,className:"block max-w-130px overflow-hidden text-ellipsis whitespace-nowrap",children:y.uname}),title:y.uname,onClick(){l({...$$,upMid:y.mid.toString(),upName:y.uname,upFace:y.face});}}});return [m,...p,...b]},[t,i,n,e]),selectedKey:r,onClear:u,onSelect:l}}function ITe(){const{dynamicFeed:{__internal:{externalFilterInput:e}}}=Ut(),{viewingSomeUp:t,upName:n,upFace:r,selectedGroup:o}=yt(en),i=uo(),{ref:a,getPopupContainer:l}=Lu(),u=WA(rt.DynamicFeed),{menuItems:d,selectedKey:m,onClear:p}=bG("dropdown");io(()=>{Mq();});const g=o?.count,b=x(mq,{className:"mt--2px size-14px"}),y=r?x(nu,{size:20,src:o6(r)}):void 0,S=t?y||b:o?x(hq,{className:"size-18px"}):void 0,C=t?n:o?o.name+(g?` (${g})`:""):"全部",[w,$]=f.useState(false),E=x(ic,{open:w,onOpenChange:$,placement:"bottomLeft",getPopupContainer:l,menu:{items:d,style:{...rG,border:`1px solid ${Zf()}`},selectedKeys:[m]},children:x(lt,{icon:S,className:"gap-4px",css:[w&&Qf,"",""],children:C})}),{popoverTrigger:T,filterInput:R}=MTe({externalFilterInput:e,onRefresh:i,getPopupContainer:l});return H("div",{ref:a,className:"inline-flex items-center gap-x-8px",children:[!u&&E,u?H(lt,{onClick:p,className:"gap-0",disabled:!(t||o),children:[x(vy,{className:"mr-5px size-14px"}),x("span",{children:"清除"})]}):(t||o)&&H(lt,{onClick:p,className:"gap-0",children:[x(vy,{className:"mr-5px size-14px"}),x("span",{children:"清除"})]}),T,e&&R,x(Pg,{})]})}function OTe(){const e=WA(rt.DynamicFeed),{menuItems:t,selectedKey:n}=bG("sidebar"),{menuRef:r,revealSelected:o}=Yq(t,n),{recSharedEmitter:i}=Mi();if(bo(i,"dynamic-feed:clear",()=>{o(kp);}),!!e)return H(_e,{children:[x(oc,{ref:r,items:t,selectedKeys:[n],mode:"inline",inlineIndent:10}),Kq]})}function i6(e=en){const t=Vr(e);return {upMid:t.upMid,groupId:t.selectedGroupId,filterText:t.filterText,dynamicFeedVideoType:t.dynamicFeedVideoType,hideChargeOnlyVideos:t.hideChargeOnlyVideos,filterMinDuration:t.filterMinDuration,filterMinDurationValue:t.filterMinDurationValue,selectedKey:t.selectedKey,viewingAll:t.viewingAll,viewingSomeUp:t.viewingSomeUp,viewingSomeGroup:t.viewingSomeGroup,addSeparators:t.addSeparators,showLiveInDynamicFeed:st.dynamicFeed.showLive,videoOnly:st.dynamicFeed.videoOnly,whenViewAllEnableHideSomeContents:st.dynamicFeed.whenViewAll.enableHideSomeContents,whenViewAllHideIds:new Set(st.dynamicFeed.whenViewAll.hideIds),advancedFilter:st.dynamicFeed.advancedFilter,filterCacheEnabled:!!t.upMid&&st.dynamicFeed.__internal.cacheAllItemsEntry&&st.dynamicFeed.__internal.cacheAllItemsUpMids.includes(t.upMid.toString()),forceUseMergeTime:!!t.selectedGroup&&st.dynamicFeed.followGroup.forceUseMergeTimelineIds.includes(t.selectedGroup.tagid),startingOffset:hMe,minId:oL(nM)?BigInt(nM):void 0,minTs:oL(U9)?Number(U9):void 0}}function oL(e){return !!e&&/^\d+$/.test(e)}const DTe=so.extend("modules:rec-services:dynamic-feed");class oS extends Gs{constructor(t){super(oS.PAGE_SIZE),this.config=t,this.config.showLiveInDynamicFeed&&!this.upMid&&this.groupId===void 0&&!this.filterText&&this.dynamicFeedVideoType===Ba.All&&this.filterMinDuration===du.All&&(this.liveRecService=new Og(true)),this.config.startingOffset&&(this.offset=this.config.startingOffset);}static PAGE_SIZE=15;tabbarView=x(ITe,{});sidebarView=x(OTe,{});hasMoreExceptQueue=true;get hasMore(){return this.qs.bufferQueue.length||this.liveRecService?.hasMore?true:this.viewingSomeGroup&&this.groupMergeTimelineService?this.groupMergeTimelineService.hasMore:!!this.hasMoreExceptQueue}async shouldReduceMinCount(){return this.viewingAll,this.viewingSomeGroup?(await this.loadGroupMids(),!this.groupMergeTimelineService):!!(this.filterText||this.dynamicFeedVideoType===Ba.DynamicOnly||this.filterMinDuration!==du.All)}get upMid(){return this.config.upMid}get groupId(){return this.config.groupId}get filterText(){return this.config.filterText}get dynamicFeedVideoType(){return this.config.dynamicFeedVideoType}get hideChargeOnlyVideos(){return this.config.hideChargeOnlyVideos}get filterMinDuration(){return this.config.filterMinDuration}get filterMinDurationValue(){return this.config.filterMinDurationValue}get viewingSomeUp(){return this.config.viewingSomeUp}get viewingSomeGroup(){return this.config.viewingSomeGroup}shouldEnableMergeTimeline(t){return this.config.forceUseMergeTime||t>0&&t<=Es.ENABLE_MERGE_TIMELINE_UPMID_COUNT_THRESHOLD}groupMergeTimelineService;groupMids=new Set;groupMidsLoaded=false;async loadGroupMids(){if(this.groupId!==void 0&&!this.groupMidsLoaded)try{const t=await eM(this.groupId);this.groupMids=new Set(t),this.shouldEnableMergeTimeline(t.length)&&(this.groupMergeTimelineService=new Es(t.map(n=>n.toString()),this.config.videoOnly));}finally{this.groupMidsLoaded=true;}}get viewingAll(){return this.config.viewingAll}viewingAllHideMids=new Set;viewingAllHideMidsLoaded=false;async loadViewingAllHideMids(){if(!this.viewingAll||!this.config.whenViewAllEnableHideSomeContents||!this.config.whenViewAllHideIds.size||this.viewingAllHideMidsLoaded)return;const t=Array.from(this.config.whenViewAllHideIds).filter(i=>i.startsWith(Mf)).map(i=>i.slice(Mf.length)),n=Array.from(this.config.whenViewAllHideIds).filter(i=>i.startsWith(Mu)).map(i=>i.slice(Mu.length)),r=this.viewingAllHideMids;t.forEach(i=>r.add(i)),(await Gl(n,i=>eM(i),3)).flat().forEach(i=>r.add(i.toString())),this.viewingAllHideMidsLoaded=true;}async fetchMore(t){const n=await this._fetchMore(t);return this.handleAddSeparators(n)}liveRecService;_queueForFilterCache;offset="";page=0;async _fetchMore(t){if(this.liveRecService?.hasMore)return (await this.liveRecService.loadMore(t)||[]).filter(p=>p.api!==Qe.Separator);let n;this.viewingSomeGroup&&await this.loadGroupMids(),this.viewingAll&&(await this.loadViewingAllHideMids(),DTe("viewingAll: hide-mids = %o",this.viewingAllHideMids));const r=!!(this.upMid&&this.filterText&&this.config.filterCacheEnabled&&await rS(this.upMid)),o=r&&this.config.advancedFilter,i=o?uG((this.filterText||"").toLowerCase()):void 0;if(r)this._queueForFilterCache||(await CTe(this.upMid),this._queueForFilterCache=new X1(20),this._queueForFilterCache.bufferQueue=(await Py.get(this.upMid)||[]).filter(m=>{const p=gh(m);if(!p)return  false;const g=p.title;return l({filterText:this.filterText,title:g,useAdvancedFilter:o,useAdvancedFilterParsed:i})})),n=this._queueForFilterCache.sliceFromQueue(this.page+1)||[],this.page++,this.hasMoreExceptQueue=!!this._queueForFilterCache.bufferQueue.length;else if(this.viewingSomeGroup&&this.groupMergeTimelineService)n=await this.groupMergeTimelineService.loadMore(t);else {const m=await Dg({videoOnly:this.config.videoOnly,abortSignal:t,page:this.page+1,offset:this.offset,upMid:this.upMid});if(this.page++,this.hasMoreExceptQueue=m.has_more,this.offset=m.offset,n=m.items,this.config.minId){const p=this.config.minId,g=n.findIndex(b=>BigInt(b.id_str)<=p);g!==-1&&(this.hasMoreExceptQueue=false,n=n.slice(0,g+1));}if(this.config.minTs){const p=this.config.minTs,g=n.findIndex(b=>b.modules.module_author.pub_ts<=p);g!==-1&&(this.hasMoreExceptQueue=false,n=n.slice(0,g+1));}}const a=n.filter(m=>{if(!this.viewingSomeGroup||this.groupMergeTimelineService||!this.groupMids.size)return  true;const p=m.modules.module_author.mid;return this.groupMids.has(p)}).filter(m=>{if(this.dynamicFeedVideoType===Ba.All)return  true;const p=gh(m);if(!p)return  false;const g=p.badge.text;return this.dynamicFeedVideoType===Ba.DynamicOnly?g===da.Dynamic:this.dynamicFeedVideoType===Ba.UploadOnly?g===da.Upload||g===da.ChargeOnly:false}).filter(m=>{if(!this.hideChargeOnlyVideos)return  true;const p=gh(m);return p?!(p.badge.text===da.ChargeOnly):true}).filter(m=>{if(this.filterMinDuration===du.All)return  true;const p=gh(m);return p?Ey(p.duration_text)>=this.filterMinDurationValue:false}).filter(m=>{if(!this.filterText)return  true;const p=gh(m);if(!p)return  false;const g=p.title||"";return l({filterText:this.filterText,title:g,useAdvancedFilter:o,useAdvancedFilterParsed:i})}).filter(m=>{if(this.config.selectedKey!==kp)return  true;const p=this.viewingAllHideMids;if(!p.size)return  true;const g=m.modules.module_author.mid;return !p.has(g.toString())}).map(m=>({...m,api:Qe.DynamicFeed,uniqId:`${Qe.DynamicFeed}:${m.id_str||crypto.randomUUID()}`,groupId:this.viewingSomeGroup?this.groupId:void 0}));function l({title:m,filterText:p,useAdvancedFilter:g,useAdvancedFilterParsed:b}){return m=m.toLowerCase(),p=p.toLowerCase(),g?(b?.includes??[]).every(C=>m.includes(C))&&(b?.excludes??[]).every(C=>!m.includes(C)):m.includes(p)}const{upMid:u,upName:d}=en;if(Ds&&u&&d&&d===u.toString()&&a[0]){const m=a[0].modules.module_author.name,p=a[0].modules.module_author.face;en.upName=m,en.upFace=p;}if(this.viewingSomeGroup&&en.groups.length){const m=en.groups.find(p=>p.tagid===this.groupId);m&&(m.count=this.groupMids.size);}return a}separatorsConfig={today:{added:false,content:"今日",getInsertIndex:_Te},earlier:{added:false,content:"更早",getInsertIndex:yG(-1/0,Yn().startOf("day").unix())}};handleAddSeparators(t){if(!this.config.addSeparators)return t;const n=t;{const r=this.separatorsConfig.today,{getInsertIndex:o,content:i,added:a}=r;if(!a){const l=o(t);l!==-1&&(n.splice(l,0,{api:Qe.Separator,uniqId:`${Qe.DynamicFeed}:separator:today`,content:i}),r.added=true);}}{const r=this.separatorsConfig.earlier,{getInsertIndex:o,content:i,added:a}=r;if(!a){const l=o(t);l!==-1&&(n.splice(l,0,{api:Qe.Separator,uniqId:`${Qe.DynamicFeed}:separator:earlier`,content:i}),r.added=true);}}return n}}function yG(e,t){return n=>n.findIndex(r=>{if(r.api!==Qe.DynamicFeed)return  false;const o=r.modules.module_author.pub_ts;return o>=e&&o<t})}function _Te(e){const t=e.findIndex(r=>r.api===Qe.Live&&r.live_status===za.Streaming);return t!==-1?t:yG(Yn().startOf("day").unix(),Yn().endOf("day").unix())(e)}const Ms=20,Zh="ml-30px inline-flex items-center text-15px [&_svg]:mr-5px [&_svg]:mt--1px first:ml-0";class SG{constructor(t,n,r){this.collectionId=t,this.addSeparator=n,this.itemsOrder=r;}get hasMore(){return this.addSeparator&&!this.separatorAdded||!this.loaded?true:!!this.bufferQueue.length}loaded=false;bufferQueue=[];separatorAdded=false;get separator(){return {api:Qe.Separator,uniqId:`${Qe.Fav}:collection:separator:${this.collectionId}`,content:x(LTe,{service:this})}}state=kn({firstBvid:void 0,info:void 0});async loadMore(t){if(!this.hasMore)return;if(this.addSeparator&&!this.separatorAdded)return this.separatorAdded=true,[this.separator];if(!this.loaded){const r=await v3e(this.collectionId,1),o=r?.medias||[],i=r?.info;await pu(()=>this.loadUserAvatarFromSpaceAccInfo(o,t));let a=o.map(u=>({...u,api:Qe.Fav,uniqId:`${Qe.Fav}:collection:${this.collectionId}:${u.bvid}`,collection:r.info,from:"fav-collection"}));[Dt.PubTimeDesc,Dt.PubTimeAsc,Dt.Shuffle].includes(this.itemsOrder)&&(a=Q3(a,Dt.PubTimeDesc),a.forEach((u,d,m)=>{u.vol=m.length-d,u.volTooltip=H(_e,{children:["按投稿时间 Vol.",u.vol]});})),a=Q3(a,this.itemsOrder),this.bufferQueue=a,this.loaded=true,this.state.firstBvid=a[0]?.bvid,this.state.info=sf(i),pn.selectedFavCollectionDetailInfo=sf(i);}this.itemsOrder===Dt.Shuffle&&(this.bufferQueue=Ci(this.bufferQueue));let n;return [n,this.bufferQueue]=[this.bufferQueue.slice(0,Ms),this.bufferQueue.slice(Ms)],n}async loadUserAvatarFromSpaceAccInfo(t,n){if(!t.length)return;const r=JX(t,a=>a.upper.mid),o=Object.entries(r).map(([a,l])=>({mid:a,count:l})),i=xs(o,[a=>a.count],["desc"]).slice(0,3).map(a=>a.mid);await Promise.all(i.map(async a=>{if(n?.aborted)return;const u=(await JA(a))?.face;u&&t.filter(d=>d.upper.mid.toString()===a).forEach(d=>{d.upper.face||=u;});}));}get extraTabbarView(){return x(u6,{})}}function LTe({service:e}){const{firstBvid:t,info:n}=yt(e.state);return H(_e,{children:[x(mn,{title:H(_e,{children:["UP: ",n?.upper.name," ",x("br",{}),"简介: ",n?.intro||"无"]}),children:H(Hp,{href:JW(e.collectionId),className:Zh,children:[x(Po,{className:"size-16px"}),"去个人空间查看合集: ",n?.title]})}),t&&H(Hp,{href:a3e(t),className:Zh,children:[x(vg,{className:"size-16px"}),"播放全部"]})]})}function BTe({folderId:e,currentFolderTitle:t,onClosePopover:n}){const r=ga(l=>h3e(e,l),{manual:true}),[o,i]=f.useState(t),a=tt(async()=>{const l=o.trim();if(!l)return fn("收藏夹名称不能为空!");if(l===t)return fn("无变更!");if(!await r.runAsync(l))return;n();const d=pn.folders.find(m=>m.id===e);d&&(d.title=o);});return H("div",{className:"flex flex-col gap-y-2",children:[x("div",{children:"重命名收藏夹"}),x(Yi,{placeholder:"收藏夹名称",value:o,onChange:l=>i(l.target.value),onPressEnter:a}),H("div",{className:"flex justify-end gap-x-2",children:[x(lt,{onClick:n,children:"取消"}),x(lt,{type:"primary",loading:r.loading,onClick:a,disabled:!o||o===t,children:"确定"})]})]})}function zTe({service:e}){const[t,n]=f.useState(false),{viewingSomeFolder:r}=yt(pn),{id:o,attr:i,title:a}=e.entry,l=yt(pn.folders).find(d=>d.id===o)?.title??a,u="size-16px";return H(_e,{children:[H(Hp,{href:_A(o,i),className:Zh,children:[x(Po,{className:u}),"去个人空间查看收藏夹: ",l]}),H(Hp,{href:i3e(o),className:Zh,children:[x(vg,{className:u}),"播放全部"]}),r&&x(Jo,{open:t,onOpenChange:n,trigger:"click",content:x(BTe,{folderId:o,currentFolderTitle:l,onClosePopover:()=>n(false)}),children:H(lt,{className:X(Zh,"gap-x-1 px-0 text-15px!"),type:"link",children:[x(nA,{className:u}),"重命名"]})})]})}const kTe=[Dt.FavTimeDesc,Dt.PlayCountDesc,Dt.PubTimeDesc];function iL(e){return kTe.includes(e)}const CG=om("fav-folder-all-items");async function p0(e){await CG.delete(e);}class xG{constructor(t,n,r){if(this.folderId=t,this.addSeparator=n,this.itemsOrder=r,this.itemsOrder===Dt.Initial)throw new Error("this should not happen!");iL(this.itemsOrder)?this.needLoadAll=false:this.needLoadAll=true;}needLoadAll;get hasMore(){return this.addSeparator&&!this.separatorAdded?true:this.needLoadAll?this.allItemsLoaded?!!this.bufferQueue.length:true:this.innerService?this.innerService.hasMore:true}separatorAdded=false;get separator(){return this.assertInnerService(),{api:Qe.Separator,uniqId:`${Qe.Fav}:folder:separator:${this.folderId}`,content:x(zTe,{service:this.innerService})}}entry;innerService;assertInnerService(){Ir(this.innerService,"this.innerService should not be undefined"),Ir(this.entry,"this.entry should not be undefined");}async createService(){if(this.innerService)return;await d6();const t=Vr(pn.folders).find(n=>n.id===this.folderId);Ir(t,`favStore.favFolders should have this entry[fid=${this.folderId}]`),this.entry=t,iL(this.itemsOrder)?this.innerService=new of(t,this.itemsOrder):this.innerService=new of(t);}async loadMore(t){if(this.innerService||await this.createService(),!!this.hasMore){if(this.addSeparator&&!this.separatorAdded)return this.separatorAdded=true,[this.separator];if(this.needLoadAll){this.allItemsLoaded||await this.loadAllItems(t),this.itemsOrder===Dt.Shuffle&&(this.bufferQueue=Ci(this.bufferQueue));const n=this.bufferQueue.slice(0,Ms);return this.bufferQueue=this.bufferQueue.slice(Ms),n}else {const n=await this.innerService?.loadMore(t);return this.runSideEffects(),n}}}allItemsLoaded=false;bufferQueue=[];async loadAllItems(t){const n=await this.fetchAllItems(t);this.bufferQueue=Q3(n,this.itemsOrder),this.allItemsLoaded=true,this.runSideEffects();}_fetchAllItems=async t=>{this.assertInnerService();const n=[];for(;this.innerService.hasMore&&!t.aborted;){const r=await this.innerService.loadMore(t)||[];n.push(...r);}return n};_fetchAllItemsWithCache=_u({fn:this._fetchAllItems,tableName:CG,generateKey:()=>`${this.folderId}`,ttl:co("5min")});fetchAllItems=t=>(this.assertInnerService(),this.entry.media_count>of.PAGE_SIZE*3?this._fetchAllItemsWithCache(t):this._fetchAllItems(t));runSideEffects(){this.assertInnerService(),typeof this.innerService.info?.media_count=="number"&&VG(this.folderId,this.innerService.info.media_count);}get extraTabbarView(){return x(u6,{})}}class of{constructor(t,n=Dt.FavTimeDesc){this.entry=t,this.itemsOrder=n,this.hasMore=t.media_count>0;}static PAGE_SIZE=20;hasMore;info;page=0;async loadMore(t){if(!this.hasMore)return;const n={[Dt.FavTimeDesc]:"mtime",[Dt.PlayCountDesc]:"view",[Dt.PubTimeDesc]:"pubtime"}[this.itemsOrder],o=(await Xt.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:this.page+1,ps:of.PAGE_SIZE,keyword:"",order:n,type:"0",tid:"0",platform:"web"}})).data;if(!Vn(o)){fn(o.message||Af);return}this.page++,this.hasMore=o.data.has_more,this.info=o.data.info;let i=o.data.medias||[];return i=i.filter(a=>a.title!=="已失效视频"),i.map(a=>({...a,from:"fav-folder",folder:this.info,api:Qe.Fav,uniqId:`${Qe.Fav}:folder:${this.info?.id||this.entry.id}:${a.bvid}`}))}}class FTe{constructor(t,n,r){if(this.addSeparator=t,this.itemsOrder=n,this.excludedFolderIds=r,![Dt.Initial,Dt.Shuffle].includes(this.itemsOrder))throw new Error("invalid items order")}get useShuffle(){return this.itemsOrder===Dt.Shuffle}shuffleBufferQueue=[];get hasMoreInService(){return this.serviceCreated?this.allServices.some(t=>t.hasMore):true}get hasMore(){return this.useShuffle?!!this.shuffleBufferQueue.length||this.hasMoreInService:this.hasMoreInService}get extraTabbarView(){return H(_e,{children:[x(u6,{}),x(zRe,{allFavFolderServices:this.allFolderServices,state:this.state})]})}async loadMore(t){if(this.serviceCreated||await this.createServices(),!this.hasMore)return;if(!this.useShuffle)return this.allServices.find(o=>o.hasMore)?.loadMore(t);if(this.shuffleBufferQueue.length<Ms)for(;this.hasMoreInService&&this.shuffleBufferQueue.length<Ms*3;){const i=this.allServices.filter(u=>u.hasMore),a=Ci(i).slice(0,6),l=(await Gl(a,async u=>await u.loadMore(t)||[],2)).flat().filter(u=>u.api!==Qe.Separator);this.shuffleBufferQueue=Ci([...this.shuffleBufferQueue,...Ci(l)]);}const n=this.shuffleBufferQueue.slice(0,Ms);return this.shuffleBufferQueue=this.shuffleBufferQueue.slice(Ms),n}allFolderServices=[];state=kn({totalCountInFavFolders:0});serviceCreated=false;allServices=[];async createServices(){await d6();const{folders:t,collections:n}=sf(Vr(pn));this.allFolderServices=t.map(r=>new of(r)),this.state.totalCountInFavFolders=t.filter(r=>!this.excludedFolderIds.includes(r.id.toString())).reduce((r,o)=>r+o.media_count,0);{const r=t.filter(i=>!this.excludedFolderIds.includes(i.id.toString()));let o=this.itemsOrder;o===Dt.Initial&&(o=Dt.FavTimeDesc),this.allServices.push(...r.map(i=>new xG(i.id,this.addSeparator,o)));}this.allServices.push(...n.map(r=>new SG(r.id,this.addSeparator,this.itemsOrder))),this.serviceCreated=true;}}function a6(){const e=Vr(pn);return {selectedKey:e.selectedKey,viewingAll:e.viewingAll,viewingSomeFolder:e.viewingSomeFolder,viewingSomeCollection:e.viewingSomeCollection,itemsOrder:c6(e.selectedKey,e.savedOrderMap),selectedFavFolderId:e.selectedFavFolderId,selectedFavCollectionId:e.selectedFavCollectionId,addSeparator:st.fav.addSeparator,excludedFolderIds:st.fav.excludedFolderIds}}class iS extends Gs{constructor(t){super(iS.PAGE_SIZE),this.config=t;const{viewingAll:n,viewingSomeFolder:r,viewingSomeCollection:o}=this.config;if(n)this.innerService=new FTe(this.config.addSeparator,this.config.itemsOrder,this.config.excludedFolderIds);else if(r)this.innerService=new xG(this.config.selectedFavFolderId,this.config.addSeparator,this.config.itemsOrder);else if(o)this.innerService=new SG(this.config.selectedFavCollectionId,this.config.addSeparator,this.config.itemsOrder);else throw new Error("unexpected case!")}static PAGE_SIZE=Ms;innerService;get tabbarView(){const{tabbarView:t,extraTabbarView:n}=this.innerService;return t||x(BRe,{extraContent:n})}sidebarView=x(kRe,{});get hasMoreExceptQueue(){return this.innerService.hasMore}fetchMore(t){return this.innerService.loadMore(t)}decreaseTotal(){this.config.viewingAll?this.innerService.state.totalCountInFavFolders-=1:this.config.viewingSomeFolder&&this.config.selectedFavFolderId?VG(this.config.selectedFavFolderId,t=>t-1):this.config.viewingSomeCollection&&this.config.selectedFavCollectionId;}}async function s6({asc:e=false,searchText:t="",abortSignal:n,extraParams:r}={}){const i=(await Xt.get("/x/v2/history/toview/web",{signal:n,params:await A1({asc:e,key:t,viewed:0,web_location:333.881,...r})})).data;return Vn(i)?{total:i.data.count,items:HTe(i.data.list||[])}:(Xo("getAllWatchlaterItems error %s, fulljson %o",i.message,i),{err:i.message})}function HTe(e){return e.filter(t=>!(t.title==="以下为更早添加的视频"&&t.aid===0&&t.bvid===""&&t.add_at===0))}async function VTe(e){const t=new FormData;t.append("resources",e.join(",")),t.append("csrf",lc());const n=await A1({}),o=(await Xt.post("/x/v2/history/toview/v2/dels",t,{params:n})).data;return Vn(o)?true:(fn(o?.message||"出错了"),false)}const wG=()=>Yn().subtract(2,"days").unix(),$G="最近 48 小时内",cM={api:Qe.Separator,uniqId:`${Qe.Watchlater}:separator:recent`,content:H(_e,{children:["近期",x(pr,{children:$G})]})},uM={api:Qe.Separator,uniqId:`${Qe.Watchlater}:separator:earlier`,content:"更早"},Jh=kn({searchText:void 0});function jTe({service:e}){const{watchlaterAddSeparator:t,watchlaterItemsOrder:n,watchlaterUseNormalVideoUrl:r}=Ut(),o=uo(),{searchText:i}=yt(Jh,{sync:true}),a=KMe(),{recSharedEmitter:l}=Mi();Is(()=>{(async()=>(await gn(100),o()))();},[t,n,r]);const{total:u}=yt(e.state),d=i?`共 ${u} 条搜索结果`:`共 ${u} 个视频`,m=typeof u=="number"&&x(yo,{color:"success",style:{marginRight:0,marginTop:1,cursor:"pointer"},title:d,onClick:()=>{fn(`稍后再看: ${d}`);},children:u});return H("div",{className:"flex items-center gap-x-12px",children:[x(WTe,{}),x(Yi.Search,{allowClear:true,placeholder:"搜索稍后再看",style:{width:180},value:i,onChange:p=>Jh.searchText=p.target.value,onSearch:p=>{Jh.searchText=p,o();}}),m,a&&x(mn,{arrow:false,title:"移除稍后再看 (多选)",children:x(lt,{className:"icon-only-round-button",onClick:()=>YTe(l),children:x(Kf,{})})}),x(Pg,{})]})}const EG={[So.AddTimeDesc]:{icon:x(O3,{}),label:"最近添加",helpInfo:"按添加时间倒序"},[So.AddTimeAsc]:{icon:x(I3,{}),label:"最早添加",helpInfo:"按添加时间增序"},[So.Shuffle]:{icon:x(Zj,{}),label:"随机顺序",helpInfo:`随机但不包括近期添加的稍后再看, 近期指: ${$G}`}},MG=Object.values(So),UTe=x("div",{className:"grid grid-cols-[repeat(2,max-content)] gap-x-1 gap-y-0 line-height-normal",children:MG.map(e=>{const{icon:t,label:n,helpInfo:r}=EG[e];return H(_e,{children:[H("div",{className:"flex-center gap-x-1",children:[t,n,": "]}),x("div",{children:r})]})})});function WTe(){const e=uo(),{ref:t,getPopupContainer:n}=Lu(),{watchlaterItemsOrder:r}=Ut(),{searchText:o}=yt(Jh),i=!!o;return x(e6,{disabled:i,value:i?So.AddTimeDesc:r,onChange:a=>{st.watchlaterItemsOrder=a,e();},list:MG,listDisplayConfig:EG,$ref:t,dropdownProps:{getPopupContainer:n},extraHelpInfo:UTe})}const Ru=kn({updatedAt:0,bvidSet:Rr()});function qTe(e){const t=yt(Ru).bvidSet;return !!e&&t.has(e)}function RG(e){Ru.updatedAt=Date.now(),Ru.bvidSet=Rr(e);}function GTe(e,t){Ru.updatedAt&&Ru.bvidSet.add(t);}async function KTe(){if(!N1()||!ei())return;const{items:e=[]}=await s6();e.length&&RG(e.map(t=>t.bvid));}Ls&&(async()=>(await O1(),await Qq(KTe,{retries:3,onFailedAttempt(e){Xo(`Try updateWatchlaterState ${e.attemptNumber} failed. There are ${e.retriesLeft} retries left`);}})))();async function YTe(e){const t=J1().map(a=>({item:a,cardData:Bu(a)})).filter(a=>a.cardData.avid).map(a=>[a.cardData.avid,a.item.uniqId,a.cardData.title]).filter(Boolean),n=t.map(a=>a[0]),r=t.map(a=>a[1]),o=t.map(a=>a[2]);if(!n.length)return fn("没有选中的视频");await VTe(n)&&e.emit("remove-cards",[r,o]);}class Vp extends Gs{constructor(t,n,r,o){super(Vp.PAGE_SIZE),this.searchText=o,this.innerService=t===So.Shuffle&&!this.searchText?new aL(n,r):new XTe(t,n,this.searchText);}static PAGE_SIZE=10;sidebarView=void 0;innerService;get hasMoreExceptQueue(){return this.innerService.hasMore}fetchMore(t){return this.innerService.loadMore(t)}get tabbarView(){return x(jTe,{service:this})}get state(){return this.innerService.state}decreaseTotal(){this.innerService.state.total!==void 0&&this.innerService.state.total--;}getServiceSnapshot(){return {bvidIndexMap:this.innerService instanceof aL?this.innerService.currentBvidIndexMap:void 0}}}function TG(e){return {...e,api:Qe.Watchlater,uniqId:`${Qe.Watchlater}:${e.bvid}`}}function AG(e){throw fn(`获取稍后再看失败: ${e}`),new Error(`获取稍后再看失败: ${e}`,{cause:e})}class aL{constructor(t,n){this.addSeparator=t,n?.size?(this.keepOrder=true,this.prevBvidIndexMap=n):this.keepOrder=false;}hasMore=true;state=kn({total:void 0});keepOrder;prevBvidIndexMap;async loadMore(t){if(!this.hasMore)return;const n=await this.fetch(t);return this.hasMore=false,n}currentBvidIndexMap;async fetch(t){const{items:n=[],err:r}=await s6({asc:false,searchText:void 0,abortSignal:t});r!==void 0&&AG(r),RG(n.map(u=>u.bvid).filter(Boolean));const o=n.map(TG),i=wG(),a=o.findIndex(u=>u.add_at<i);let l=o;if(a!==-1){const u=o.slice(0,a);let d=o.slice(a);this.keepOrder&&this.prevBvidIndexMap?.size?d=xs(d,[m=>this.prevBvidIndexMap?.get(m.bvid)??-1],["asc"]):d=Ci(d),l=[!!u.length&&this.addSeparator&&cM,...u,!!d.length&&this.addSeparator&&uM,...d].filter(Boolean);}return this.state.total=n.length,this.currentBvidIndexMap=new Map(l.filter(u=>u.api!==Qe.Separator).map((u,d)=>[u.bvid,d])),l}}class XTe{constructor(t,n,r){this.order=t,this.addSeparator=n,this.searchText=r,this.searchText||Ir(t!==So.Shuffle,"shuffle not supported in NormalOrderService");}firstPageLoaded=false;state=kn({total:void 0});hasMore=true;page=1;async loadMore(){if(!this.hasMore)return;const t=await s6({asc:this.order===So.AddTimeAsc,searchText:this.searchText,extraParams:{need_split:"true",ps:20,pn:this.page}});if(t.err!==void 0){this.hasMore=false,AG(t.err);return}const{items:n,total:r}=t,o=Math.ceil(r/20);this.firstPageLoaded=true,this.state.total=t.total,this.hasMore=this.page<o,this.page++,n.forEach(a=>{a.bvid&&GTe("add",a.bvid);});const i=n.map(TG);return this.insertSeparator(i)}recentSeparatorInserted=false;earlierSeparatorInserted=false;insertSeparator(t){if(!this.addSeparator)return t;let n=[...t];const r=wG(),o=t.some(a=>a.add_at<r),i=t.some(a=>a.add_at>=r);if(this.order===So.AddTimeAsc){if(!this.earlierSeparatorInserted&&o&&(n=[uM,...n],this.earlierSeparatorInserted=true),!this.recentSeparatorInserted&&i){const a=n.findIndex(l=>l.api===Qe.Watchlater&&l.add_at>=r);n=[...n.slice(0,a),cM,...n.slice(a)],this.recentSeparatorInserted=true;}}else if(!this.recentSeparatorInserted&&i&&(n=[cM,...t],this.recentSeparatorInserted=true),!this.earlierSeparatorInserted&&o){const a=n.findIndex(l=>l.api===Qe.Watchlater&&l.add_at<r);n=[...n.slice(0,a),uM,...n.slice(a)],this.earlierSeparatorInserted=true;}return n}}function QTe(){return {addOtherTabContents:xg().appRecommend.addOtherTabContents}}const NG=e=>x(It,{configPath:"appRecommend.addOtherTabContents",label:"显示来自其他 Tab 的内容",tooltip:H(_e,{children:["显示来自其他 Tab 的内容 ",x("br",{}),"如动态 / 收藏 / 稍后再看 ",x("br",{}),"但是: 刷新时间会更长"]}),extraAction:async()=>{await gn(100),e?.();}});function ZTe(){const e=uo(),{hidingTabKeys:t}=Ut(),n=t.includes(rt.Liked);return H("div",{className:"flex items-center gap-x-10px",children:[NG(e),n&&x(mn,{title:"查看「我」点赞的视频",children:x("a",{href:`/?${eG.Tab}=${rt.Liked}`,target:"_blank",children:x(Xj,{className:"size-18px align-top"})})})]})}class af extends Gs{constructor(t){super(af.PAGE_SIZE),this.config=t,this.innerService=new JTe,this.allServices=[this.innerService],this.initOtherTabServices();}static PAGE_SIZE=20;tabbarView=x(ZTe,{});sidebarView=void 0;innerService;allServices=[];otherTabServices=[];initOtherTabServices(){if(!N1()||!this.config.addOtherTabContents)return;let t,n,r;{const a=wq();a.upMid=void 0,a.selectedGroupId=void 0;const l=i6(a);Object.assign(l,{showLiveInDynamicFeed:true,whenViewAllEnableHideSomeContents:false,filterCacheEnabled:false}),t=new oS(l);}{const a=Object.assign(a6(),{selectedKey:"all",viewingAll:true,viewingSomeFolder:false,viewingSomeCollection:false,itemsOrder:Dt.Shuffle,selectedFavFolderId:void 0,selectedFavCollectionId:void 0,addSeparator:false});n=new iS(a);}r=new Vp(So.AddTimeDesc,false),this.otherTabServices=[t,n,r];const o=[],i=7/3;o.push(...this.otherTabServices),AQ(Math.round(i*this.otherTabServices.length),()=>o.push(this.innerService)),this.allServices=Ci(o);}get hasMore(){return !!this.qs.bufferQueue.length||this.innerService.hasMore||this.otherTabServices.some(t=>t.hasMore)}hasMoreExceptQueue=true;fetchMore(t){return this.config.addOtherTabContents?this._fetchWithOtherTabsChecked(t):this._fetchFromApi(t,2)}async _fetchWithOtherTabsChecked(t){let n=[];for(;this.hasMore&&n.length<af.PAGE_SIZE*3;){const r=this.allServices.filter(a=>a.hasMore);if(!r.length)break;const o=Ci(r).slice(0,3),i=(await Promise.all(o.map(async a=>await a.loadMore(t)||[]))).flat().filter(a=>a.api!==Qe.Separator);n.push(...i),n=Ci(n);}return n}_fetchFromApi(t,n){return this.innerService.getRecommendTimes(t,n)}async preloadTimesFromApiIfNeeded(t,n){this.qs.bufferQueue.length<af.PAGE_SIZE&&this.qs.bufferQueue.push(...await this._fetchFromApi(t,n));}}class JTe{static PAGE_SIZE=16;hasMore=true;async getRecommend(){const t=await Sg.get(`${NB}/x/v2/feed/index`,{timeout:2e4,responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",idx:Math.floor(Date.now()/1e3)+rQ(1e3)}}),n=t.data;if(!n.data)throw new Error("Request fail with none invalid json",{cause:{type:"invalid-json",statusCode:t.status,json:n}});return n?.data?.items||[]}loadMore(t,n=2){return this.getRecommendTimes(t,n)}async getRecommendTimes(t,n){let r=(await Promise.all(GL(n).map(()=>this.getRecommend()))).flat();return r=r.filter(i=>!(i.card_goto?.includes("ad")||i.goto?.includes("ad")||i.ad_info||i.card_goto==="banner"||i.goto==="av"&&i.player_args===void 0)),r=Zl(r,i=>i.param),r.map(i=>({...i,api:Qe.AppRecommend,uniqId:`${Qe.AppRecommend}:${i.param}`}))}}async function eAe(e,t){const{bvid:n,goto:r,recommendReason:o}=t,i=r==="av";return Xl(e)&&i&&!!n&&r6(o)?(await rq(n))?.pubdate:void 0}async function tAe(e=20,t=1){const n=ei();return (await Sg.get(`https://app.bilibili.com/x/v2/space/likearc?mid=${n}`,{responseType:"json",params:{...Ixe,vmid:n,ps:e,pn:t}})).data}function nAe({service:e}){const{count:t}=e.useStore();return Number.isFinite(t)?H(_e,{children:[x(mn,{title:`共 ${t} 个视频`,children:x(yo,{color:"success",variant:"outlined",className:"cursor-pointer",children:t})}),x(Pg,{})]}):null}class Iy extends Gs{static PAGE_SIZE=20;constructor(){super(Iy.PAGE_SIZE);}tabbarView=x(nAe,{service:this});sidebarView;get hasMoreExceptQueue(){return this.errorJson?false:Iy.PAGE_SIZE*this.pn<this.store.count}pn=0;errorJson=void 0;store=kn({count:1/0});useStore=()=>yt(this.store);showErrorNotification(t){ca.error({key:"LikedRecService:error",title:"获取喜欢列表失败",...t});}async fetchMore(t){if(!st.accessKey)throw new cA;ca.destroy("LikedRecService:error");const n=await tAe(this.qs.ps,this.pn+1);if(!Vn(n))throw this.errorJson=n,this.showErrorNotification({title:"获取喜欢列表失败",description:n.message}),new Error("Request fail with none invalid json",{cause:n});const{count:r,item:o}=n.data,[i,a]=await pu(()=>Promise.all(o.map(u=>u.state?rq(kA(u.param)):void 0))),l=o.map((u,d)=>({...u,api:Qe.Liked,uniqId:`${Qe.Liked}:${u.param}`,videoDetail:a?.[d]}));return this.pn++,this.store.count=r,l}}const PG=so.extend("modules:rec-services:pc");class fu extends Gs{constructor(t){super(fu.PAGE_SIZE),this.isKeepFollowOnly=t;}static PAGE_SIZE=30;tabbarView=void 0;sidebarView=void 0;hasMoreExceptQueue=true;fetchMore(t){const n=this.isKeepFollowOnly?5:2;return this.getRecommendTimes(t,n)}async preloadTimesFromApiIfNeeded(t,n){this.qs.bufferQueue.length<fu.PAGE_SIZE&&this.qs.bufferQueue.push(...await this.getRecommendTimes(t,n));}async preloadPcInitialRecItems(t){const n=await rAe(t);this.qs.bufferQueue.push(...n);}getRecommendTimes=async(t,n)=>{const r=(await Promise.all(GL(n).map(()=>this.getRecommend(t)))).flat();return IG(r)};page=0;getRecommend=async t=>{const n=++this.page,r="/x/web-interface/wbi/index/top/feed/rcmd",o={fresh_type:8,fresh_idx_1h:n,fresh_idx:n,ps:fu.PAGE_SIZE,web_location:1430650,feed_version:"V8",homepage_ver:1},a=(await Xt.get(r,{signal:t,params:o})).data;return !Vn(a)&&a.code===-62011&&a.message==="暂时没有更多内容了"?(this.hasMoreExceptQueue=false,[]):(a.data?.item||fn(a.message||"API 请求没有返回结果"),a.data?.item||[])}}function IG(e){const t=new Set([ws.AV,ws.Live,ws.Ad]);e.forEach(o=>{t.has(o.goto)||PG("uknown goto from API: %s %o",o.goto,o);});const n=new Set([ws.AV]);return e=e.filter(o=>n.has(o.goto)),e=Zl(e,o=>o.id),e.forEach(o=>{o.rcmd_reason?.reason_type===1&&(o.rcmd_reason.content||="已关注");}),e.map(o=>({...o,uniqId:`${Qe.PcRecommend}:${o.bvid||o.room_info?.room_id||crypto.randomUUID()}`,api:Qe.PcRecommend}))}async function rAe(e){const n=(await Xf(()=>{const[i,a]=zl(()=>unsafeWindow.__pinia);return a},{interval:100,timeout:1e3,abortSignal:e}))?.feed?.data?.recommend?.item||[];PG("initial rec rawList: %o",n);const[r,o]=zl(()=>{const i=IG(n);return i.forEach(a=>Bu(a)),i});return o||[]}const oAe=[rt.KeepFollowOnly,rt.PcRecommend,rt.AppRecommend];function jp(e){return oAe.includes(e)}const iAe={[rt.AppRecommend]:()=>new af(QTe()),[rt.PcRecommend]:()=>new fu(false),[rt.KeepFollowOnly]:()=>new fu(true),[rt.DynamicFeed]:()=>new oS(i6()),[rt.Watchlater]:({existingService:e})=>{const{watchlaterAddSeparator:t,watchlaterItemsOrder:n}=st,r=e&&e instanceof Vp?e.getServiceSnapshot().bvidIndexMap:void 0;return new Vp(n,t,r,Vr(Jh).searchText)},[rt.Fav]:()=>new iS(a6()),[rt.Hot]:()=>new qMe,[rt.Live]:()=>new Og,[rt.SpaceUpload]:()=>new t6(fG()),[rt.Liked]:()=>new Iy};function OG(e,t){const n=e[t];return Ir(n,`serviceRegistry[tab=${t}] should not be nil`),n}const DG=new Oo;class _G{constructor(t){this.insideModal=t;}recSharedEmitter=new Oo;serviceRegistry={};serviceQueueMap={};store=kn({refreshing:false,refreshingTab:void 0,tabbarView:void 0,sidebarView:void 0,serviceQueueStateMap:{}});get refreshing(){return this.store.refreshing}get refreshingTab(){return this.store.refreshingTab}useStore=()=>yt(this.store);setStore=t=>{const n=["tabbarView","sidebarView"];for(const r of n){const o=t[r];typeof o=="object"&&o!==null&&(t[r]=RB(o));}Object.assign(this.store,t);};useTabServiceQueueState=t=>yt(this.store.serviceQueueStateMap)[t];getTabServiceQueueState=t=>Vr(this.store.serviceQueueStateMap)[t];setTabServiceQueueState=(t,n)=>{this.store.serviceQueueStateMap[t]=n;};_calcTabBackForwardStatus=(t,n)=>{if(!jp(t)||!n||n.len<=1)return [false,false];const{len:r,cursor:o}=n;return [o>0,o<r-1]};getTabBackForwardStatus=t=>this._calcTabBackForwardStatus(t,this.getTabServiceQueueState(t));useTabBackForwardStatus=t=>{const n=this.useTabServiceQueueState(t);return f.useMemo(()=>this._calcTabBackForwardStatus(t,n),[t,n])}}const l6=f.createContext(new _G);function LG(...e){return k1(()=>new _G(...e),[])}function Mi(){return f.useContext(l6)}function uo(){const{recSharedEmitter:e}=Mi();return H1(t=>e.emit("refresh",t))}const Cl="size-16px",aAe={[Dt.Initial]:{icon:x(dCe,{className:Cl}),label:"初始顺序"},[Dt.Shuffle]:{icon:x(Zj,{className:Cl}),label:"随机顺序"},[Dt.PubTimeDesc]:{icon:x(O3,{className:Cl}),label:"最新投稿"},[Dt.PubTimeAsc]:{icon:x(I3,{className:Cl}),label:"最早投稿"},[Dt.PlayCountDesc]:{icon:x(vg,{className:Cl}),label:"最多播放"},[Dt.CollectCountDesc]:{icon:x(Cf,{className:X(Cl)}),label:"最多收藏"},[Dt.FavTimeDesc]:{icon:x(O3,{className:X(Cl)}),label:"最近收藏"},[Dt.FavTimeAsc]:{icon:x(I3,{className:X(Cl)}),label:"最早收藏"}},sAe={all:[Dt.Initial,Dt.Shuffle],"fav-folder":[Dt.FavTimeDesc,Dt.PubTimeDesc,Dt.PlayCountDesc,Dt.CollectCountDesc,"divider",Dt.FavTimeAsc,Dt.PubTimeAsc,"divider",Dt.Shuffle],"fav-collection":[Dt.Initial,Dt.PubTimeDesc,Dt.PlayCountDesc,Dt.CollectCountDesc,"divider",Dt.PubTimeAsc,"divider",Dt.Shuffle]};function BG(e){return e.split(":")[0]}function zG(e){const t=BG(e);return sAe[t]||Object.values(Dt)}function sL(e){const t=BG(e);return t==="fav-folder"?Dt.FavTimeDesc:t==="fav-collection"?Dt.PubTimeDesc:Dt.Initial}function c6(e,t){const n=zG(e).filter(o=>o!=="divider"),r=t.get(e)||sL(e);return n.includes(r)?r:sL(e)}function lAe(e,t){return f.useMemo(()=>c6(e,t),[t,e])}function u6(){const e=uo(),{ref:t,getPopupContainer:n}=Lu(),{selectedKey:r,savedOrderMap:o}=yt(pn),i=lAe(r,o),a=f.useMemo(()=>zG(r),[r]);return x(e6,{value:i,onChange:async l=>{pn.savedOrderMap.set(r,l),await gn(100),e();},list:a,listDisplayConfig:aAe,$ref:t,dropdownProps:{getPopupContainer:n}})}const cAe=so.extend("modules:rec-services:fav:store");var Oy=(e=>(e.CollectionIdFull="fav-collection-id",e.CollectionId="fav-cid",e.FolderIdFull="fav-folder-id",e.FolderId="fav-fid",e))(Oy||{});const kG=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},Dy=new URLSearchParams(location.search),FG=kG(Dy.get("fav-collection-id")??Dy.get("fav-cid")),HG=kG(Dy.get("fav-folder-id")??Dy.get("fav-fid")),_y=Ls&&(typeof HG=="number"||typeof FG=="number"),pn=kn({folders:[],foldersUpdateAt:0,selectedFavFolderId:HG,get selectedFavFolder(){if(typeof this.selectedFavFolderId=="number")return this.folders.find(e=>e.id===this.selectedFavFolderId)},collections:[],collectionsUpdateAt:0,selectedFavCollectionId:FG,selectedFavCollectionDetailInfo:void 0,get selectedFavCollection(){if(typeof this.selectedFavCollectionId=="number")return this.collections.find(e=>e.id===this.selectedFavCollectionId)},get selectedKey(){let e,t;if(this.selectedFavFolderId!==void 0)e="fav-folder",t=this.selectedFavFolderId;else if(this.selectedFavCollectionId!==void 0)e="fav-collection",t=this.selectedFavCollectionId;else return "all";return `${e}:${t}`},get selectedLabel(){if(this.selectedFavFolder)return `${this.selectedFavFolder.title} (${this.selectedFavFolder.media_count})`;if(typeof this.selectedFavCollectionId=="number"){if(this.selectedFavCollection)return `${this.selectedFavCollection.title} (${this.selectedFavCollection.media_count})`;const e=this.selectedFavCollectionDetailInfo;return e?.id===this.selectedFavCollectionId?`${e.title} (${e.media_count})`:void 0}return "全部"},savedOrderMap:(await( qH("fav-saved-order"))).map,get usingShuffle(){return c6(this.selectedKey,this.savedOrderMap)===Dt.Shuffle},get viewingAll(){return this.selectedKey==="all"},get viewingSomeFolder(){return typeof this.selectedFavFolderId=="number"},get viewingSomeCollection(){return typeof this.selectedFavCollectionId=="number"}});function VG(e,t){const n=pn.folders.find(o=>o.id===e);if(!n)return;const r=typeof t=="function"?t(n.media_count):t;r!==n.media_count&&(n.media_count=r,cAe("update folder(id=%s title=%s) media_count to %s",n.id,n.title,r));}function d6(e=false){return Promise.all([f6(e),fAe(e)])}const uAe=Vs(async()=>{const e=await d3e();pn.folders=e,pn.foldersUpdateAt=Date.now();});async function f6(e=false){if(!e){const{folders:t,foldersUpdateAt:n}=pn;if(t.length&&n&&Date.now()-n<co("5min"))return}return uAe()}const dAe=Vs(async()=>{const e=await g3e();pn.collections=e,pn.collectionsUpdateAt=Date.now();});async function fAe(e=false){if(!e){const{collections:t,collectionsUpdateAt:n}=pn;if(t.length&&n&&Date.now()-n<co("5min"))return}return dAe()}_y&&fT(pn,"selectedLabel",()=>{pn.selectedLabel&&pA(pn.selectedLabel);});mAe();async function mAe(){if(!(Ls||QW)||_y)return;const e="fav-store",t=["selectedFavFolderId","selectedFavCollectionId","folders"],n=await GM.getValue(e);if(n)for(const o of t)Va(n[o])||(pn[o]=n[o]);const r=dT(1);UH(pn,t,o=>{if(_y)return;const i=hu(o,t);r(async()=>{await GM.setValue(e,i);});});}const am={[rt.AppRecommend]:{icon:x(mCe,{className:"size-18px"}),label:"推荐",desc:"使用 Bilibili App 端推荐 API",anonymousUsage:true},[rt.PcRecommend]:{icon:x(hCe,{className:"size-18px"}),label:"推荐",desc:"使用新版首页顶部推荐 API",anonymousUsage:true},[rt.KeepFollowOnly]:{icon:x(pCe,{className:"size-18px"}),label:"已关注",desc:"从PC端推荐中筛选出「已关注」,可能比较慢; 关注的UP更新在动态~"},[rt.DynamicFeed]:{icon:x(py,{className:"size-18px"}),label:"动态",desc:"视频投稿动态",swr:true},[rt.Watchlater]:{icon:x(oA,{className:"size-17px [&_.circle]:stroke-current"}),label:"稍后再看",desc:"「我」的稍后再看",swr:true},[rt.Fav]:{icon:x(Cf,{className:"mt--1px size-16px"}),label:"收藏",desc:"「我」的收藏",get swr(){return !pn.usingShuffle}},[rt.Hot]:{icon:x(vCe,{className:"size-16px"}),label:"热门",desc:"各个领域中新奇好玩的优质内容都在这里~",anonymousUsage:true,get swr(){return !Gq()}},[rt.Live]:{icon:x(rA,{className:"size-16px"}),label:"直播",desc:"直播~",swr:true},[rt.SpaceUpload]:{icon:x(gy,{className:"size-16px"}),label:"投稿",desc:"UP 视频投稿",anonymousUsage:true,extraHelpInfo:H("div",{className:"ml-20px",children:["搜索词: 搜索相关作品 ",x("br",{}),"本地过滤词: 本地过滤搜索结果; 本地过滤词支持高级规则:",x("div",{className:"ml-20px",children:cG})]})},[rt.Liked]:{icon:x(Xj,{className:"size-16px"}),label:"赞",desc:"「我」的点赞. 使用 App 端个人空间 API, 需要 access_key"}};function Si({tabKey:e,active:t,className:n}){const{icon:r}=am[e],o=r.props,i={...o,className:ur(o.className,n),active:e===rt.Live?t:void 0};return f.cloneElement(r,i)}const jG="你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~";function UG(){return fn(jG)}const hAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),x("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M24 28.625v-4a6 6 0 1 0-6-6"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"M24 37.625a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5",clipRule:"evenodd"})]})]}),pAe=f.forwardRef(hAe),gAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0-4 0"}),x("path",{d:"M12 18q-.492 0-.97-.05Q6.271 17.452 3 12q3.6-6 9-6q5.197 0 8.727 5.558M15 18a3 3 0 1 0 6 0a3 3 0 1 0-6 0m5.2 2.2L22 22"})]})]}),vAe=f.forwardRef(gAe);function bAe(){const{grid:{useCustomGrid:e,enableForceColumn:t,forceColumnCount:n,cardMinWidth:r},style:o,enableSidebar:i,sidebarAlign:a}=Ut();io(()=>fT(st,"pureRecommend",async m=>{await gn(0),G1();}));const l=tt(()=>{const m="v0.34.13";GM.setClipboard(m),_t.success(`已复制当前版本: ${m}`);}),u=f.useRef(null),d=F1(u);return H("div",{className:Bn.tabPane,children:[x(to,{title:H(_e,{children:[x(Si,{tabKey:rt.AppRecommend,className:"mr-5px mt-2px size-30px"}),"access_key",H(pr,{className:"ml-5px mt-6px size-18px",IconComponent:pAe,tooltipProps:{classNames:{root:"text-14px"}},children:["App 端登录凭证, 使用情况: ",x("br",{}),x(Y3,{}),H("div",{className:"group flex items-start",children:[H("div",{className:"w-55px flex flex-none items-center",children:[x(Si,{tabKey:rt.AppRecommend,className:"mr-1"})," 推荐"]}),H("ul",{className:"flex-1 list-disc pl-20px",children:[x("li",{className:"w-max",children:"获取推荐"}),x("li",{className:"w-max",children:"提交不喜欢"})]})]}),x(Y3,{}),H("div",{className:"group flex items-start",children:[H("div",{className:"w-55px flex flex-none items-center",children:[x(Si,{tabKey:rt.Liked,className:"mr-1"}),"赞"]}),x("ul",{className:"w-max flex-1 list-disc pl-20px",children:x("li",{className:"w-max",children:"获取点赞列表"})})]})]})]}),children:x(OA,{})}),x(to,{title:"开关",resetSettingPaths:["pureRecommend","multiSelect.showIcon","showBackForwardButtons"],children:H("div",{className:Bn.settingsLine,children:[x(It,{configPath:"pureRecommend",label:"覆盖默认推荐",tooltip:H(_e,{children:[zr("覆盖默认推荐内容",`保留默认首页; 你可以从屏幕边缘找到入口面板, 使用 ${No} 的功能.`),"P.S 需要刷新网页"]})}),x(It,{configPath:"multiSelect.showIcon",label:"「多选」按钮",tooltip:"是否显示「多选」按钮"}),x(It,{configPath:"showBackForwardButtons",label:"「后退 / 前进」按钮",tooltip:"是否显示「后退 / 前进」按钮"})]})}),H(to,{title:H(_e,{children:["布局",x(mn,{title:"透视",children:x(vAe,{ref:u,title:"透视",className:X("ml-1.5 size-1em cursor-pointer b-1px b-transparent rounded-md b-solid p-2px hover:b-gate-primary",{peeking:d})})})]}),resetSettingPaths:["grid.useCustomGrid","grid.cardMinWidth","grid.enableForceColumn","grid.forceColumnCount","enableSidebar","sidebarAlign","grid.gridDisplayMode","grid.twoColumnModeAlign"],children:[H("div",{className:Bn.settingsLine,children:[x(It,{configPath:"grid.useCustomGrid",label:"使用自定义网格配置",tooltip:H(_e,{children:["网格配置指: 网格宽度, 间距, 列数等. ",x("br",{}),zr(H(_e,{children:["使用 ",No," 自定义网格配置: 宽度为90%; 可跟随 Bilibili-Evolved 自定义顶栏配置"]}),x(_e,{children:"使用 bili-feed4 版本B站首页默认的网格配置"}))]})}),H("div",{className:"flex items-center gap-x-1 px-6px",children:[x(mn,{title:H(_e,{children:["如果期望显示更多的列, 可以调小这个值; ",x("br",{}),"如果期望显示更少的列, 可以调大这个值; ",x("br",{}),"手动设置列数时, 这个值不起作用. ",x("br",{}),x(w_,{children:"Alt / Opt"})," + ",x(w_,{children:"上下键"}),"可调整"]}),children:x("span",{className:"cursor-pointer",children:"视频卡片最小宽度"})}),x(ou,{disabled:!e||t,value:r,onChange:m=>{m&&(st.grid.cardMinWidth=m);},min:150,max:450,step:10,size:"small",className:"w-75px"})]}),H("div",{className:"flex items-center px-6px",children:[x(It,{disabled:!e,configPath:"grid.enableForceColumn",label:"手动设置列数",tooltip:x(_e,{children:"手动设置列数"})}),e&&t&&x(ou,{value:n,onChange:m=>{m&&(st.grid.forceColumnCount=m);},min:0,max:10,step:1,size:"small",className:"w-50px"})]})]}),H("div",{className:"flex items-center gap-x-4px",children:[x(It,{configPath:"enableSidebar",label:"使用侧边栏",tooltip:zr("使用侧边栏(如动态 分组/UP 选择)","使用下拉面板")}),H(no.Group,{disabled:!i,buttonStyle:"solid",size:"small",value:a,onChange:m=>{st.sidebarAlign=m.target.value;},children:[x(no.Button,{value:xf.Left,className:"inline-flex-center",children:x(qW,{className:"size-16px"})}),x(no.Button,{value:xf.Right,className:"inline-flex-center",children:x(GW,{className:"size-16px"})})]})]}),H("div",{className:"flex items-center",children:["网格显示模式",x(r3e,{className:"ml-xl"})]})]}),H(to,{title:"样式",resetSettingPaths:["style.general.popoverBorderColorUseColorPrimary","style.pureRecommend.useStickyTabbar","style.pureRecommend.stickyTabbarShadow","grid.useCustomGrid","style.pureRecommend.useWhiteBackground","style.pureRecommend.hideTopChannel"],children:[x("div",{className:Bn.settingsLine,children:x(It,{configPath:"style.general.popoverBorderColorUseColorPrimary",label:"下拉面板使用主题色边框"})}),H("div",{children:[x("div",{className:"flex items-center text-1.2em",children:"全屏推荐"}),H("div",{className:Bn.settingsLine,children:[x(It,{configPath:"style.pureRecommend.useStickyTabbar",label:"固定 Tab 栏",tooltip:zr("Tab 栏会吸附在顶栏下方","Tab 栏会随页面一起滚动")}),x(It,{disabled:!o.pureRecommend.useStickyTabbar,configPath:"style.pureRecommend.stickyTabbarShadow",label:"固定 Tab 栏时添加边框 & 阴影",tooltip:zr("Tab 栏在吸附状态下: 加宽, 添加边框 & 阴影","不改变")}),x(It,{configPath:"style.pureRecommend.useWhiteBackground",label:"使用纯白背景",tooltip:H(_e,{children:[zr("纯白背景","浅灰色背景"),"仅影响白色/浅色模式"]})}),x(It,{configPath:"style.pureRecommend.hideTopChannel",label:"隐藏顶部分区和Banner"})]})]})]}),x(to,{title:H(_e,{children:["帮助",H("span",{className:"relative top-4px ml-8px mr-4px inline-flex items-center text-size-14px",children:["当前版本",H(yo,{color:"green",className:"mx-4px cursor-pointer",onClick:l,children:[No," v","0.34.13"]}),x(lu,{className:"size-16px cursor-pointer",onClick:l})]})]}),children:H("div",{className:Bn.settingsLine,children:[x(mn,{title:"来个 Star 支持一下",children:x(lt,{href:"https://github.com/magicdawn/Bilibili-Gate",target:"_blank",children:"GitHub 主页"})}),x(lt,{href:"https://afdian.com/a/magicdawn",target:"_blank",children:"「爱发电」支持"}),x(lt,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-gate",target:"_blank",children:"GreasyFork 主页"}),x(lt,{href:"https://github.com/magicdawn/Bilibili-Gate/#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"}),x(lt,{href:"https://github.com/magicdawn/Bilibili-Gate/releases",target:"_blank",children:"更新日志"})]})})]})}function yAe(){return aS("filter.byAuthor.keywords")}function SAe(){return sS("filter.byAuthor.keywords")}function CAe(){return aS("filter.byTitle.keywords")}function xAe(){return sS("filter.byTitle.keywords")}function wAe(){return aS("filter.dfByTitle.keywords")}function $Ae(){return sS("filter.dfByTitle.keywords")}function EAe(){return aS("filter.dfHideOpusMids.keywords")}function MAe(){return sS("filter.dfHideOpusMids.keywords")}function WG(e){return `__${No}:${e}__`}async function aS(e){const t=WG(e),n=await P1(e);if(!n?.length)return _t.error("没有可导出数据!");GM.setClipboard(JSON.stringify({[t]:n},null,2)),_t.success("已复制到剪贴板!");}async function sS(e){const[t,n]=await pu(()=>navigator.clipboard.readText());if(t)return _t.error("读取剪贴板失败!");if(!n)return _t.error("剪贴板内容为空!");const[r,o]=zl(()=>JSON.parse(n));if(r)return _t.error("无法解析剪贴板内容!");if(!o)return _t.error("剪贴板内容为空!");const i=WG(e),a=o?.[i];if(!a?.length)return _t.error("没有符合条件的数据!");const l=await P1(e),u=b0(a,l);if(!u.length)return _t.warning("没有可导入内容, 已全部存在!");Wa(e,{add:u}),_t.success(`已导入 ${u.length} 条数据!`);}const RAe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m14 14l20 20m-20 0l20-20"})]}),TAe=f.forwardRef(RAe),{Search:AAe}=Yi;var NAe={name:"1mzc5hv",styles:"color:var(--ant-color-text-disabled);background-color:var(--ant-color-bg-container-disabled);box-shadow:none;opacity:1;pointer-events:none;cursor:not-allowed"};function Ly({configPath:e,searchProps:t,disabled:n,className:r,inputClassName:o,listClassName:i,renderHeader:a=WL}){const l=SU(e),u=f.useMemo(()=>ky(l).toReversed(),[l]),d=["filter.byAuthor.keywords","filter.dfHideOpusMids.keywords"].includes(e),m=x(AAe,{className:X("my-5px",o),enterButton:"添加",allowClear:true,disabled:n,size:"middle",...t,onSearch:async(S,C)=>{if(!S)return;if(new Set(await P1(e)).has(S)){_t.warning(`${S} 已存在`);return}await Wa(e,{add:[S]}),C?.target&&C.target.closest(".ant-input-wrapper")?.querySelector(".ant-input-clear-icon")?.click();}}),p=!!u.length,g=!p,b=ur(g?"rounded-lg":["max-h-250px flex flex-wrap items-start gap-x-10px gap-y-5px overflow-y-auto pr-10px",i]),y=H("div",{className:b,css:n&&NAe,children:[g&&x(Vi,{image:Vi.PRESENTED_IMAGE_SIMPLE,description:"空空如也",className:"[&.ant-empty-normal]:my-1 [&.ant-empty-normal]:py-5px"}),p&&u.map(S=>x(qG,{tag:S.toString(),TagComponent:d?PAe:void 0,onDelete:C=>Wa(e,{remove:[C]})},S))]});return H(_e,{children:[a(m),y]})}const qG=f.memo(function({tag:e,renderTag:t,TagComponent:n,onDelete:r,className:o,...i}){const a=f.useMemo(()=>n?x(n,{tag:e}):(t??=WL,t(e)),[n,t,e]);return H("div",{...i,className:X("relative inline-flex items-center b-1px b-gate-border rounded-5px b-solid px-6px py-2px hover:b-gate-primary hover:color-gate-primary",o),children:[a,x(TAe,{className:"ml-2px size-16px cursor-pointer text-size-12px",onClick:()=>r?.(e)})]})}),PAe=f.memo(function({tag:e}){const{mid:t,remark:n}=f.useMemo(()=>nS(e),[e]),[r,o]=f.useState(void 0);f.useEffect(()=>{(async()=>{if(!t)return;const l=await Ig(t);l&&o(l);})();},[t]);const i=t?r||n||t:e;return x(_e,{children:x(mn,{title:H(_e,{children:[!!t&&H(_e,{children:["mid: ",t," ",x("br",{})]}),!!n&&H(_e,{children:["备注: ",n," ",x("br",{}),n===r&&H(_e,{children:['P.S "备注" 与 "用户昵称" 相同, 是之前的数据, 现在你只需要填写 mid, 会自动获取昵称 ',x("br",{})]})]}),!t&&H(_e,{children:["使用用户名过滤: 用户可能改名, 建议使用 mid 过滤 ",x("br",{})]})]}),children:H("span",{className:X("inline-flex items-center justify-center",t?"cursor-pointer":"cursor-[edit]"),children:[t&&x(fq,{className:"mr-2px size-12px"}),t?x("a",{href:Ag(t),target:"_blank",style:{color:"inherit"},children:i}):i]})})})}),By={blockContainer:"b-1px b-gate-border rounded-lg b-solid p-x-2 p-y-1 light:hover:b-gate-primary"};function IAe(){return x("div",{className:X(Bn.tabPane,"pr-15px"),children:x(to,{title:H(_e,{children:["内容过滤",x(wu,{configPath:"filter.enabled",className:"ml-10px"})]}),children:x(ZR,{items:[{key:"recommend",label:H("span",{className:"inline-flex-center gap-x-1",children:[x(Si,{tabKey:rt.AppRecommend}),"推荐 / 热门",H(pr,{className:"ml-1",children:["生效范围: ",x("br",{}),"视频/图文/影视: 推荐类 Tab ",x("br",{}),"UP/标题: 推荐类、热门 Tab ",x("br",{})]})]}),children:x(OAe,{})},{key:"dynamic-feed",label:H("span",{className:"inline-flex-center gap-x-1",children:[x(Si,{tabKey:rt.DynamicFeed}),"动态",H(pr,{className:"ml-1",children:["使用场景: 关注的 UP 发布的部分内容 ",x("br",{}),H("ol",{children:[x("li",{children:"如果有规律可以按标题关键字过滤"}),x("li",{children:"没有规律可以屏蔽 UP 发布的全部图文动态"})]})]})]}),children:x(DAe,{})}]})})})}function OAe(){const{enabled:e,minDuration:t,minPlayCount:n,minDanmakuCount:r,hideGotoTypeBangumi:o,hideGotoTypePicture:i,byAuthor:a,byTitle:l}=Ut().filter,u=d=>({label:"「已关注」豁免",tooltipProps:{color:FW},tooltip:H(_e,{children:["「已关注」内容不考虑过滤条件, 总是展示",x("br",{}),'"豁免" 一词来源'," ",x("a",{target:"_blank",href:"https://github.com/magicdawn/Bilibili-Gate/issues/1#issuecomment-2197868587",children:"pilipala"})]})});return x(_e,{children:H("div",{className:"grid grid-cols-2 gap-15px",children:[H("div",{children:[x("div",{className:Bn.settingsGroupSubTitle,children:"视频"}),H("div",{className:"flex flex-col gap-y-1",children:[H("div",{className:"flex items-center",children:[x(It,{configPath:"filter.minDuration.enabled",label:"按视频时长过滤",tooltip:x(_e,{children:"不显示短视频"}),disabled:!e,className:"min-w-130px"}),H(eo.Compact,{children:[x(ou,{className:"w-130px",size:"small",min:1,step:10,value:t.value,onChange:d=>!Va(d)&&(st.filter.minDuration.value=d),disabled:!e||!t.enabled}),x(eo.Addon,{children:"秒"})]})]}),H("div",{className:"flex items-center",children:[x(It,{disabled:!e,configPath:"filter.minPlayCount.enabled",label:"按播放次数过滤",tooltip:x(_e,{children:"不显示播放次数很少的视频"}),className:"min-w-130px"}),H(eo.Compact,{children:[x(ou,{className:"w-130px",size:"small",min:1,step:1e3,value:n.value,onChange:d=>!Va(d)&&(st.filter.minPlayCount.value=d),disabled:!e||!n.enabled}),x(eo.Addon,{children:"次"})]})]}),H("div",{className:"flex items-center",children:[x(It,{disabled:!e,configPath:"filter.minDanmakuCount.enabled",label:"按弹幕条数过滤",tooltip:x(_e,{children:"不显示弹幕条数很少的视频"}),className:"min-w-130px"}),H(eo.Compact,{children:[x(ou,{className:"w-130px",size:"small",min:1,step:100,value:r.value,onChange:d=>!Va(d)&&(st.filter.minDanmakuCount.value=d),disabled:!e||!r.enabled}),x(eo.Addon,{children:"条"})]})]}),x(It,{configPath:"filter.exemptForFollowed.video",disabled:!e,...u()})]})]}),H("div",{children:[x("div",{className:Bn.settingsGroupSubTitle,children:"图文"}),x(It,{configPath:"filter.hideGotoTypePicture",label:"过滤图文类型推荐",disabled:!e,className:"flex",tooltip:H(_e,{children:["过滤 ",x("kbd",{children:"goto = picture"})," 的内容: 包括 (动态 & 专栏) 等"]})}),x(It,{className:"flex",disabled:!e||!i,configPath:"filter.exemptForFollowed.picture",...u()}),x("div",{className:X(Bn.settingsGroupSubTitle,"mt-2"),children:"影视"}),x(It,{configPath:"filter.hideGotoTypeBangumi",label:"过滤影视类型推荐",tooltip:H(_e,{children:["过滤 ",x("kbd",{children:"goto = bangumi"})," 的内容: 包括 (番剧 / 电影 / 国创 / 纪录片) 等"]}),disabled:!e})]}),H("div",{className:X(By.blockContainer,"col-span-full"),children:[H("div",{className:Bn.settingsGroupSubTitle,children:["UP",H(pr,{children:["根据 UP 过滤视频 ",x("br",{}),"使用 mid 屏蔽时支持备注, 格式: ",x(yo,{color:"success",children:"mid(备注)"})," 如"," ",x(yo,{color:"success",children:"8047632(B站官方)"}),x("br",{}),H("div",{className:"mt-4px flex items-start",children:[x(Qj,{className:"mt-3px"}),H("div",{className:"ml-8px flex-1",children:["B站官方支持黑名单, 对于不喜欢的 UP 可以直接拉黑 ",x("br",{}),"此脚本会拉取官方黑名单, 并无视此页开关, 总是会过滤掉 ",x("br",{}),"这里是客户端过滤, 与黑名单功能重复, 优先使用黑名单功能 ",x("br",{})]})]})]}),x(wu,{configPath:"filter.byAuthor.enabled",disabled:!e,className:"ml-10px"}),x("div",{className:"flex-1"}),x(Jo,{placement:"left",content:H("div",{className:"flex flex-col gap-x-10px gap-y-5px",children:[H(lt,{onClick:_Ae,children:[x(Kf,{}),"清理无效备注数据"]}),H(lt,{onClick:yAe,disabled:!a.keywords.length,children:[x(_p,{}),"导出"]}),H(lt,{onClick:SAe,children:[x(Lp,{}),"导入"]})]}),children:x(lt,{className:"icon-only-round-button size-26px",children:x(zp,{className:"size-16px"})})})]}),x(Ly,{configPath:"filter.byAuthor.keywords",searchProps:{placeholder:"添加UP: 全名 / mid / mid(备注)"},disabled:!e||!a.enabled,className:"mt-2",listClassName:"max-h-130px"})]}),H("div",{className:X(By.blockContainer,"col-span-full"),children:[H("div",{className:X(Bn.settingsGroupSubTitle),children:[x("span",{children:"标题"}),H(pr,{children:["根据标题关键词过滤视频 ",x("br",{}),"支持普通关键字和正则(i), 语法:",x(yo,{color:"success",variant:"solid",children:"/abc|\\d+/"})]}),x(wu,{configPath:"filter.byTitle.enabled",disabled:!e,className:"ml-10px"}),x("div",{className:"flex-1"}),x(Jo,{placement:"left",content:H("div",{className:"flex flex-col gap-x-10px gap-y-5px",children:[H(lt,{onClick:CAe,disabled:!l.keywords.length,children:[x(_p,{}),"导出"]}),H(lt,{onClick:xAe,children:[x(Lp,{}),"导入"]})]}),children:x(lt,{className:"icon-only-round-button size-26px",children:x(zp,{className:"size-16px"})})})]}),x(Ly,{configPath:"filter.byTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!l.enabled,listClassName:"max-h-130px"})]})]})})}function DAe(){const{filter:{enabled:e,dfByTitle:t,dfHideOpusMids:n}}=Ut();return H("div",{className:"flex flex-col gap-y-15px",children:[H("div",{className:By.blockContainer,children:[H("div",{className:Bn.settingsGroupSubTitle,children:[x("span",{children:"标题"}),H(pr,{children:["支持普通关键字和正则(i), 语法:",x(yo,{color:"success",variant:"solid",children:"/abc|\\d+/"}),x("br",{}),"作用范围: 支持的动态类型: 视频 / 图文"]}),x(wu,{configPath:"filter.dfByTitle.enabled",disabled:!e,className:"ml-10px"}),x("div",{className:"flex-1"}),x(Jo,{placement:"left",content:H("div",{className:"flex flex-col gap-x-10px gap-y-5px",children:[H(lt,{onClick:wAe,disabled:!t.keywords.length,children:[x(_p,{}),"导出"]}),H(lt,{onClick:$Ae,children:[x(Lp,{}),"导入"]})]}),children:x(lt,{className:"icon-only-round-button size-26px",children:x(zp,{className:"size-16px"})})})]}),x(Ly,{configPath:"filter.dfByTitle.keywords",searchProps:{placeholder:"添加过滤关键词"},disabled:!e||!t.enabled})]}),H("div",{className:By.blockContainer,children:[H("div",{className:Bn.settingsGroupSubTitle,children:[x("span",{children:"屏蔽 UP 的图文动态"}),H(pr,{children:["支持 mid 或 mid(备注) ",x("br",{}),"右键图文动态可快速添加"]}),x(wu,{configPath:"filter.dfHideOpusMids.enabled",disabled:!e,className:"ml-10px"}),x("div",{className:"flex-1"}),x(Jo,{placement:"left",content:H("div",{className:"flex flex-col gap-x-10px gap-y-5px",children:[H(lt,{onClick:EAe,disabled:!n.keywords.length,children:[x(_p,{}),"导出"]}),H(lt,{onClick:MAe,children:[x(Lp,{}),"导入"]})]}),children:x(lt,{className:"icon-only-round-button size-26px",children:x(zp,{className:"size-16px"})})})]}),x(Ly,{configPath:"filter.dfHideOpusMids.keywords",searchProps:{placeholder:"添加 UP: mid / mid(备注)"},disabled:!e||!n.enabled,listClassName:"max-h-130px"})]})]})}async function _Ae(){const e=st.filter.byAuthor.keywords,t=await Gl(e,async n=>{const{mid:r,remark:o}=nS(n);return !r||!o||await Ig(r)!==o?n:r},1/0);return fa(t,e)?_t.warning("没有「无效备注」数据!"):(st.filter.byAuthor.keywords=t,_t.success("已清理「无效备注」数据!"))}function LAe(){return H("div",{className:Bn.tabPane,children:[x(to,{title:"视频播放页",children:x(It,{configPath:"fav.useCustomFavPicker.onPlayPage",label:"使用自定义收藏弹窗",tooltip:H(_e,{children:["使用「",No,"」提供的选择收藏夹弹窗 ",x("br",{}),H("ul",{className:"ml-20px list-circle",children:[x("li",{children:"支持拼音搜索, 帮你快速找到收藏夹"}),x("li",{children:H("span",{className:"flex-v-center",children:["支持从收藏夹图标 或 快捷键",x("kbd",{className:X(Su,"mx-1 h-14px py-0 line-height-14px"),children:"e"}),"触发"]})})]})]})})}),x(to,{title:"搜索页",children:x(It,{configPath:"videoCard.videoPreview.addTo.searchPage",label:"浮动预览: 添加到「搜索页」",tooltip:x(_e,{children:"在搜索页的视频也添加「浮动预览」"})})})]})}function BAe(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const zAe=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return !n||!t?r:BAe(r,n,t)},kAe=e=>{let{transform:t}=e;return {...t,x:0}};function Up(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function FAe(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Mb(e){return e!==null&&e>=0}function HAe(e,t){if(e===t)return  true;if(e.length!==t.length)return  false;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return  false;return  true}function VAe(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const GG=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Up(t,r,n),a=t[o],l=i[o];return !l||!a?null:{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}},Rb={scaleX:1,scaleY:1},jAe=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=(t=i[n])!=null?t:r;if(!l)return null;if(o===n){const d=i[a];return d?{x:0,y:n<a?d.top+d.height-(l.top+l.height):d.top-l.top,...Rb}:null}const u=UAe(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-u,...Rb}:o<n&&o>=a?{x:0,y:l.height+u,...Rb}:{x:0,y:0,...Rb}};function UAe(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const KG="Sortable",YG=G.createContext({activeIndex:-1,containerId:KG,disableTransforms:false,items:[],overIndex:-1,useDragOverlay:false,sortedRects:[],strategy:GG,disabled:{draggable:false,droppable:false}});function WAe(e){let{children:t,id:n,items:r,strategy:o=GG,disabled:i=false}=e;const{active:a,dragOverlay:l,droppableRects:u,over:d,measureDroppableContainers:m}=uEe(),p=Tg(KG,n),g=l.rect!==null,b=f.useMemo(()=>r.map(I=>typeof I=="object"&&"id"in I?I.id:I),[r]),y=a!=null,S=a?b.indexOf(a.id):-1,C=d?b.indexOf(d.id):-1,w=f.useRef(b),$=!HAe(b,w.current),E=C!==-1&&S===-1||$,T=VAe(i);Xa(()=>{$&&y&&m(b);},[$,b,y,m]),f.useEffect(()=>{w.current=b;},[b]);const R=f.useMemo(()=>({activeIndex:S,containerId:p,disabled:T,disableTransforms:E,items:b,overIndex:C,useDragOverlay:g,sortedRects:FAe(b,u),strategy:o}),[S,p,T.draggable,T.droppable,E,b,C,u,g,o]);return G.createElement(YG.Provider,{value:R},t)}const qAe=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Up(n,r,o).indexOf(t)},GAe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:u,transition:d}=e;return !d||!r||l!==i&&o===a?false:n?true:a!==o&&t===u},KAe={duration:200,easing:"ease"},XG="transform",YAe=Ef.Transition.toString({property:XG,duration:0,easing:"linear"}),XAe={roleDescription:"sortable"};function QAe(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=f.useState(null),l=f.useRef(n);return Xa(()=>{if(!t&&n!==l.current&&r.current){const u=o.current;if(u){const d=rm(r.current,{ignoreTransform:true}),m={x:u.left-d.left,y:u.top-d.top,scaleX:u.width/d.width,scaleY:u.height/d.height};(m.x||m.y)&&a(m);}}n!==l.current&&(l.current=n);},[t,n,r,o]),f.useEffect(()=>{i&&a(null);},[i]),i}function ZAe(e){let{animateLayoutChanges:t=GAe,attributes:n,disabled:r,data:o,getNewIndex:i=qAe,id:a,strategy:l,resizeObserverConfig:u,transition:d=KAe}=e;const{items:m,containerId:p,activeIndex:g,disabled:b,disableTransforms:y,sortedRects:S,overIndex:C,useDragOverlay:w,strategy:$}=f.useContext(YG),E=JAe(r,b),T=m.indexOf(a),R=f.useMemo(()=>({sortable:{containerId:p,index:T,items:m},...o}),[p,o,T,m]),I=f.useMemo(()=>m.slice(m.indexOf(a)),[m,a]),{rect:N,node:P,isOver:O,setNodeRef:_}=mEe({id:a,data:R,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:I,...u}}),{active:L,activatorEvent:k,activeNodeRect:W,attributes:q,setNodeRef:F,listeners:z,isDragging:j,over:U,setActivatorNodeRef:Y,transform:Q}=kW({id:a,data:R,attributes:{...XAe,...n},disabled:E.draggable}),D=U$e(_,F),B=!!L,K=B&&!y&&Mb(g)&&Mb(C),J=!w&&j,ee=J&&K?Q:null,re=K?ee??(l??$)({rects:S,activeNodeRect:W,activeIndex:g,overIndex:C,index:T}):null,ie=Mb(g)&&Mb(C)?i({id:a,items:m,activeIndex:g,overIndex:C}):T,ue=L?.id,ne=f.useRef({activeId:ue,items:m,newIndex:ie,containerId:p}),ce=m!==ne.current.items,fe=t({active:L,containerId:p,isDragging:j,isSorting:B,id:a,index:T,items:m,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:d,wasDragging:ne.current.activeId!=null}),se=QAe({disabled:!fe,index:T,node:P,rect:N});return f.useEffect(()=>{B&&ne.current.newIndex!==ie&&(ne.current.newIndex=ie),p!==ne.current.containerId&&(ne.current.containerId=p),m!==ne.current.items&&(ne.current.items=m);},[B,ie,p,m]),f.useEffect(()=>{if(ue===ne.current.activeId)return;if(ue!=null&&ne.current.activeId==null){ne.current.activeId=ue;return}const ae=setTimeout(()=>{ne.current.activeId=ue;},50);return ()=>clearTimeout(ae)},[ue]),{active:L,activeIndex:g,attributes:q,data:R,rect:N,index:T,newIndex:ie,items:m,isOver:O,isSorting:B,isDragging:j,listeners:z,node:P,overIndex:C,over:U,setNodeRef:D,setActivatorNodeRef:Y,setDroppableNodeRef:_,setDraggableNodeRef:F,transform:se??re,transition:Me()};function Me(){if(se||ce&&ne.current.newIndex===T)return YAe;if(!(J&&!RA(k)||!d)&&(B||fe))return Ef.Transition.toString({...d,property:XG})}}function JAe(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:false}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}En.Down,En.Right,En.Up,En.Left;const m6=await( pT({value:rt.AppRecommend},"video-source-tab"));{const e=eS();e&&(m6.value=e);}function QG(e){return AM.slice().sort((t,n)=>{let r=e.indexOf(t),o=e.indexOf(n);return r===-1&&(r=J$.indexOf(t)),o===-1&&(o=J$.indexOf(n)),r-o})}function h6(e){const{customTabKeysOrder:t}=Ut(e);return f.useMemo(()=>QG(t),[t])}function ZG(){const{hidingTabKeys:e,customTabKeysOrder:t}=Ut(),n=dA(),r=f.useMemo(eS,[]),o=f.useMemo(()=>QG(t).filter(a=>a===rt.AppRecommend&&!n?true:!e.includes(a)),[e,t,n]);return r?[r]:o}function e6e(){const e=ZG();return f.useMemo(()=>e.map(t=>({key:t,...am[t]})),[e])}function JG(){const e=yt(m6).value,t=ZG(),n=dA(),r=rt.AppRecommend;return !t.includes(e)||!n&&!am[e].anonymousUsage?r:e}function eK(){const e=f.useDeferredValue(JG()),t=xA(e),n=h6(),r=f.useMemo(()=>t?n.indexOf(e)>n.indexOf(t)?"right":"left":void 0,[n,e]);return {tab:e,prevTab:t,direction:r}}const t6e={name:"18r7nz9",styles:"height:32px;line-height:unset;--ant-border-radius:16px;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"};function tK({className:e}){const t=dA(),n=JG(),r=e6e(),{__internalRecTabRenderAsSegments:o}=Ut(),i=tt(u=>{if(!t&&!am[u].anonymousUsage&&!mU())return UG();m6.value=u;}),a=x(no.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,className:X("inline-flex items-center",e),onFocus:u=>{u.target.blur();},onChange:u=>{const d=u.target.value;i(d);},children:r.map(({key:u,label:d})=>x(no.Button,{css:t6e,className:"video-source-tab",tabIndex:-1,value:u,children:H("span",{className:"h-full flex items-center line-height-unset",children:[x(Si,{tabKey:u,className:"mr-4px",active:u===n}),d]})},u))});let l;{const u=f.useMemo(()=>r.map(({key:d,label:m})=>({value:d,label:H("div",{className:"flex items-center gap-x-6px",children:[x(Si,{tabKey:d,active:d===n}),m]})})),[r,n]);l=x(JR,{size:"middle",options:u,value:n,onChange:i});}return H("div",{className:"flex-v-center",children:[o?l:a,x(pr,{className:"ml-6px size-16px",children:x(_e,{children:r.map(({key:u,label:d,desc:m,extraHelpInfo:p})=>H(f.Fragment,{children:[H("div",{className:"h-22px flex items-center",children:[x(Si,{tabKey:u,className:"mr-4px",active:true}),d,": ",m]}),!!p&&p]},u))})})]})}const n6e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 10a4 4 0 1 1-8 0a4 4 0 0 1 8 0m-4 18a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0 14a4 4 0 1 0 0-8a4 4 0 0 0 0 8m22-32a4 4 0 1 1-8 0a4 4 0 0 1 8 0m-4 18a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0 14a4 4 0 1 0 0-8a4 4 0 0 0 0 8",clipRule:"evenodd"})]}),nK=f.forwardRef(n6e);function r6e(){const{dynamicFeed:e}=Ut(),t=h6(),n=r=>({order:t.indexOf(r)+1});return x("div",{className:Bn.tabPane,children:H("div",{className:"grid grid-cols-[250px_1fr] gap-x-50px",children:[x(to,{title:H(_e,{children:["Tab 设置",x(pr,{className:"ml-5px",children:"勾选显示, 拖动排序"})]}),resetSettingPaths:["hidingTabKeys","customTabKeysOrder"],children:x(i6e,{})}),H(to,{title:"更多设置",contentClassName:"gap-y-15px",children:[H("div",{style:n(rt.Watchlater),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(Si,{tabKey:rt.Watchlater,className:"mr-5px mt--1px"}),"稍后再看"]}),H("div",{className:Bn.settingsLine,children:[x(It,{configPath:"watchlaterAddSeparator",label:"添加分割线",tooltip:"添加「近期」「更早」分割线"}),x(It,{configPath:"watchlaterUseNormalVideoUrl",label:"使用普通视频链接",tooltip:zr("使用普通视频链接","使用「稍后再看」自动列表链接")})]})]}),H("div",{style:n(rt.Fav),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(Si,{tabKey:rt.Fav,className:"mr-5px mt--2px"}),"收藏"]}),x("div",{className:Bn.settingsLine,children:x(It,{configPath:"fav.addSeparator",label:"添加分割线",tooltip:"顺序显示时, 按收藏夹添加分割线"})})]}),H("div",{style:n(rt.DynamicFeed),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(Si,{tabKey:rt.DynamicFeed,className:"mr-5px mt--2px"}),"动态"]}),H("div",{className:Bn.settingsLine,children:[x(It,{configPath:"dynamicFeed.followGroup.enabled",label:"启用分组筛选",tooltip:H(_e,{children:["动态 Tab 启用分组筛选 ",x("br",{}),x(vG,{})]})}),x(It,{configPath:"dynamicFeed.showLive",label:"在动态中显示直播",tooltip:H(_e,{children:["动态里显示正在直播的 UP",x("br",{}),"P.S 仅在选择「全部」时展示"]})}),x(It,{configPath:"dynamicFeed.videoOnly",label:"只显示视频",tooltip:zr("只获取视频动态: 投稿视频 / 动态视频","获取全部动态: 包含视频 / 图片 / 文章等")}),x(It,{configPath:"dynamicFeed.whenViewAll.enableHideSomeContents",label:"「全部」动态过滤",tooltip:H(_e,{children:["查看「全部」动态时 ",x("br",{}),zr("将添加右键菜单, 点击可添加到「全部」动态的过滤列表","关闭此功能")]})}),e.whenViewAll.enableHideSomeContents&&x(Uk,{size:"small",className:"w-full",items:[{key:"1",label:"在「全部」动态中隐藏 UP/分组 的动态",children:x(s6e,{})}]})]})]}),H("div",{style:n(rt.AppRecommend),children:[H("div",{className:"flex items-center text-size-1.3em",children:[x(Si,{tabKey:rt.AppRecommend,className:"mr-5px"}),"App 推荐"]}),x("div",{className:Bn.settingsLine,children:x("div",{className:"flex items-center",children:NG()})})]})]})]})})}function o6e(){const{hidingTabKeys:e}=Ut();return f.useMemo(()=>AM.filter(t=>!e.includes(t)),[e])}function i6e({className:e,style:t}){const n=o6e(),r=h6({sync:true}),o=o2e(r2e(PA)),i=tt(a=>{const{over:l,active:u}=a;if(!l?.id||l.id===u.id)return;const d=r.indexOf(u.id.toString()),m=r.indexOf(l.id.toString()),p=Up(r,d,m);st.customTabKeysOrder=p;});return x("div",{className:e,style:t,children:x(Ki.Group,{className:"block line-height-[unset]",value:n,onChange:a=>{if(!a.length)return _t.error("至少选择一项!");Ya({hidingTabKeys:AM.filter(l=>!a.includes(l))});},children:x(zW,{sensors:o,collisionDetection:c2e,onDragEnd:i,modifiers:[kAe,zAe],children:x(WAe,{items:r,strategy:jAe,children:r.map(a=>x(a6e,{id:a},a))})})})})}function a6e({id:e}){const{label:t,desc:n}=am[e],{attributes:r,listeners:o,setNodeRef:i,transform:a,transition:l,setActivatorNodeRef:u}=ZAe({id:e}),d={transform:Ef.Transform.toString(a),transition:l};return H("div",{ref:i,style:d,className:"mt-8px h-35px flex items-center justify-between b-1px b-gate-bg-lv-2 rounded-6px b-solid pl-10px pr-6px",children:[H(Ki,{value:e,className:"inline-flex items-center [&_.ant-checkbox-label]:inline-flex [&_.ant-checkbox-label]:select-none [&_.ant-checkbox-label]:items-center",children:[x(Si,{tabKey:e,className:"mr-5px"}),x(mn,{align:{offset:[0,-6]},title:n,children:t})]}),x("div",{...o,...r,ref:u,className:"cursor-grab rounded-5px px-5px py-3px text-size-0 hover:bg-gate-bg-lv-3",children:x(nK,{className:"size-18px"})})]},e)}function s6e(){const{hideIds:e}=yt(st.dynamicFeed.whenViewAll),t=tt(async o=>{await Wa("dynamicFeed.whenViewAll.hideIds",{remove:[o]});}),{groups:n}=yt(en);return io(()=>{en.updateGroups();}),e.length?x("div",{className:"max-h-250px flex flex-wrap gap-10px overflow-y-auto",children:e.map(o=>x(qG,{tag:o,onDelete:t,renderTag:i=>x(l6e,{tag:i,followGroups:n})},o))}):x("div",{className:"flex items-center justify-center",children:x(Vi,{})})}function l6e({tag:e,followGroups:t}){let n,r;e.startsWith(Mf)?n=e.slice(Mf.length):e.startsWith(Mu)&&(r=e.slice(Mu.length));const[o,i]=f.useState(void 0);io(async()=>{if(!n)return;const g=await Ig(n);g&&i(g);});const[a,l]=f.useState(void 0);io(()=>{if(!r)return;const g=t?.find(b=>b.tagid.toString()===r)?.name;g&&l(g);});const u=f.useMemo(()=>n?o||n:r?a||r:"无效数据",[n,o,r,a]),d=f.useMemo(()=>n?`mid: ${n}`:r?`分组: ${r}`:`Tag: ${e}`,[n,r,e]),m=f.useMemo(()=>n?x(mq,{className:"mr-2px size-12px"}):r?x(hq,{className:"mr-2px size-16px"}):void 0,[n,r]),p=f.useMemo(()=>n?Ag(n):r?pq(r):void 0,[n,r]);return x(_e,{children:x(mn,{title:d,children:H("span",{className:X("inline-flex items-center",n?"cursor-pointer":"cursor-text"),children:[m,p?x("a",{href:p,target:"_blank",children:u}):u]})})})}const E$=[{useBorder:false},{useBorder:true,useBorderOnlyOnHover:true},{useBorder:true,useBorderOnlyOnHover:false}],rK=["「卡片边框」: 禁用","「卡片边框」: 仅在悬浮时显示","「卡片边框」: 总是显示"];function c6e(){return ua(["shift.b"],e=>{if(Us())return;const t=hu(st.style.videoCard,["useBorder","useBorderOnlyOnHover"]),n=E$.findIndex(a=>fa(a,hu(t,Object.keys(a))));if(n===-1)throw new Error("unexpected curIndex = -1");const r=(n+1)%E$.length,o=E$[r];Object.assign(st.style.videoCard,o);const i=rK[r];_t.success(i);},{exactMatch:true})}function u6e(){const{videoCard:{actions:{showLargePreview:e,openInPipWindow:t},imgPreview:{enabled:n}},videoLinkOpenMode:r,style:o,autoPreviewUpdateInterval:i}=Ut(),a=f.useMemo(()=>Object.values(sr).filter(l=>fi[l].enabled??true).map(l=>{const u=fi[l];return {config:u,value:l,label:H("span",{className:"flex-v-center gap-x-8px",children:[u.icon,x("span",{children:u.label})]})}}),[]);return H("div",{className:Bn.tabPane,children:[x(to,{title:"视频链接",resetSettingPaths:["videoLinkOpenMode"],children:H("div",{className:"flex-v-center",children:["打开方式",H(pr,{useBlackBg:true,children:["选择点击视频(封面图片 或 标题)时打开的模式 ",x("br",{}),a.map(({value:l,config:u})=>!!u.desc&&H("div",{className:"mt-10px flex items-start first:mt-0",children:[H("span",{className:"inline-flex items-center",children:[u.icon,x("span",{className:"ml-4px mr-10px min-w-95px",children:u.label})]}),x("span",{className:"desc",children:u.desc})]},l))]}),x(nc,{className:"ml-8px w-160px",options:a,value:r,onChange:l=>{Ya({videoLinkOpenMode:l});}})]})}),x(to,{title:"边框样式",resetSettingPaths:["style.videoCard.useBorder","style.videoCard.useBorderOnlyOnHover","style.videoCard.useBoxShadow"],children:H("div",{className:Bn.settingsLine,children:[x(It,{configPath:"style.videoCard.useBorder",label:"使用卡片边框",tooltip:H(_e,{children:["勾选后, 视频卡片会有边框包裹, 更像是一个卡片~ ",x("br",{}),"整个卡片区域可点击 / 可触发预览 / 可使用右键菜单 ",x("br",{}),"否则只是封面区域可以 ",x("br",{}),"使用快捷键 ",x(yo,{color:"green",children:"shift+b"})," 切换状态 ",x("br",{}),rK.map(l=>x(yo,{color:"success",className:"mx-1",children:l},l))]})}),x(It,{configPath:"style.videoCard.useBorderOnlyOnHover",label:"仅在悬浮时显示",disabled:!o.videoCard.useBorder,tooltip:zr("仅在悬浮时显示","常驻显示")}),x(It,{configPath:"style.videoCard.useBoxShadow",disabled:!o.videoCard.useBorder,label:"悬浮卡片时使用发光效果",tooltip:x(_e,{children:"悬浮卡片时使用发光效果, 看起来比较花哨~"})})]})}),H(to,{title:H(_e,{children:["快照预览",x(wu,{configPath:"videoCard.imgPreview.enabled",tooltip:"关闭此功能",className:"ml-3"})]}),resetSettingPaths:["videoCard.imgPreview.enabled","videoCard.imgPreview.autoPreviewWhenKeyboardSelect","videoCard.imgPreview.autoPreviewWhenHover","videoCard.imgPreview.disableWhenMultiSelecting","useDelayForHover","autoPreviewUpdateInterval"],children:[H("div",{className:Bn.settingsLine,children:[x(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenHover",label:"鼠标悬浮后自动开始",tooltip:H(_e,{children:[zr("鼠标悬浮后自动开始预览, 不跟随鼠标位置","预览进度跟随鼠标位置(百分比)"),"切换设置快捷键: ",x(yo,{color:"green",children:"shift+m"})]})}),x(It,{disabled:!n,configPath:"videoCard.imgPreview.disableWhenMultiSelecting",label:"多选时禁用",tooltip:zr("多选开启时, 禁用快照预览","不禁用")}),x(It,{disabled:!n,configPath:"useDelayForHover",label:"延迟悬浮预览",tooltip:"延迟悬浮预览"}),x(It,{disabled:!n,configPath:"videoCard.imgPreview.autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始",tooltip:H(_e,{children:["手动预览快捷键: ",x(yo,{color:"green",children:"."})," or ",x(yo,{color:"green",children:"p"})," ",x("br",{}),"切换设置快捷键: ",x(yo,{color:"green",children:"shift+p"})]})})]}),H("div",{className:Bn.settingsLine,children:["自动预览更新间隔",x(rT,{disabled:!n,className:"w-500px",min:0,max:1e3,keyboard:true,onChange:l=>st.autoPreviewUpdateInterval=l,value:i}),H("span",{style:{width:"65px"},children:["(",i,"ms)"]})]})]}),x(to,{title:H(_e,{children:["操作按钮",H(pr,{children:["视频卡片右上角「稍后再看」按钮旁 ",x("br",{}),"「稍后再看」因其通用性不提供关闭选项"]})]}),resetSettingPaths:["videoCard.actions.showLargePreview","videoCard.actions.openInPipWindow","videoCard.videoPreview.useMp4","videoCard.videoPreview.usePreferredCdn","videoCard.videoPreview.useScale","videoCard.videoPreview.useVideoCardAsTrigger","pipWindow.defaultLocked","pipWindow.autoWebFullscreen"],children:H("div",{className:"grid grid-cols-[repeat(2,max-content)_1fr] items-start gap-x-20px",children:[x(It,{configPath:"videoCard.actions.showLargePreview",label:"浮动预览",tooltip:H(_e,{children:["创意来源「浮图秀」, 但使用视频预览 ",x("br",{}),"操作说明: ",x("br",{}),"1. 鼠标悬浮打开 「浮动预览」, 离开关闭 ",x("br",{}),"2. 点击固定「浮动预览」, 固定指: 不再随鼠标移出关闭预览 ",x("br",{}),"3. 可使用以下方式关闭固定的「浮动预览」",H("ul",{className:"ml-30px list-circle",children:[x("li",{children:"再次点击视频卡片按钮"}),x("li",{children:"点击预览视频右上方的「关闭」按钮"}),x("li",{children:"触发其他卡片的「浮动预览」"}),x("li",{children:"Esc键"}),x("li",{children:"点击页面空白处"})]})]})}),x(It,{configPath:"videoCard.actions.openInPipWindow",label:"小窗打开",tooltip:x(_e,{children:"仅当「文档画中画」API 可用时, 勾选生效"})}),x(ql,{className:"grid-col-span-full my-2px py-0"}),H("div",{className:"flex flex-col",children:[x(It,{configPath:"videoCard.videoPreview.useMp4",disabled:!e,label:"浮动预览: 使用 mp4",tooltip:zr("使用 mp4, 最高 720p, 有声音","使用 dash, 最高 1080p, 无声音, 理论上更快")}),x(It,{configPath:"videoCard.videoPreview.usePreferredCdn",disabled:!e,label:"浮动预览: 使用优选 CDN",tooltip:zr("使用优选 CDN (降低 MCDN & PCDN 优先级)","使用默认 CDN")}),x(It,{configPath:"videoCard.videoPreview.useScale",disabled:!e,label:"浮动预览: 使用放大效果",tooltip:zr("浮动预览面板: 放大展开 (类似浮图秀)","浮动预览面板: 滑动展开")}),x(It,{configPath:"videoCard.videoPreview.useVideoCardAsTrigger",label:"浮动预览: 使用视频卡片作为触发器",tooltip:H(_e,{children:[zr("使用「视频卡片」作为触发器","使用「视频卡片右上角按钮」作为触发器, 悬浮视频卡片 1 秒后展开"),x(ql,{className:"my-1"}),x("ul",{className:"ml-25px list-circle",children:x("li",{children:"与上面「浮动预览」开关独立"})})]})})]}),H("div",{className:"flex flex-col",children:[x(It,{configPath:"pipWindow.defaultLocked",disabled:!t,label:"小窗: 默认锁定",tooltip:zr("小窗打开时: 默认锁定","小窗打开时: 不锁定")}),x(It,{configPath:"pipWindow.autoWebFullscreen",disabled:!t,label:"小窗: 自动网页全屏",tooltip:zr("自动网页全屏","不启用")})]})]})})]})}function d6e(){const e=yW().id,t=xA(e),{colorPickerThemeSelectedColor:n}=Ut(),[r,o]=f.useState(n||Nf.Pink),i=f.useMemo(()=>typeof r=="string"?r:r.toHexString(),[r]);return io(()=>{dg.updateThrottled();}),x("div",{children:bW.map(({name:a,themes:l,tooltip:u})=>H(f.Fragment,{children:[H("div",{className:"mt-2 flex items-center text-size-1.5em",children:[a,x(pr,{className:"size-16px",useBlackBg:true,children:u})]}),x("div",{className:"flex flex-wrap gap-x-5px gap-y-2px",children:l.map(d=>{const m=e===d.id,p=d.isCustom,g=!!t&&t!==d.id,b=28,y=b+8;let S=x("div",{"data-role":"preview-wrapper",style:{width:y},className:X("mx-auto my-0 aspect-1 b-2px rounded-full b-solid",m?"b-gate-primary":"b-transparent","flex items-center justify-center text-size-0"),children:x("div",{"data-role":"preview",className:"aspect-1 flex items-center justify-center rounded-full text-white",css:ln("width:",b,"px;background-color:",p?i:d.colorPrimary,";",""),children:m&&x(Pp,{size:18,useAnimation:g})})});d.isCustom&&(S=x(oT,{value:r,onChange:w=>o(w),onOpenChange:w=>{w||Ya({colorPickerThemeSelectedColor:i});},children:S}));let C=H("div",{className:"min-w-60px cursor-pointer text-center",onClick:w=>{Ya({theme:d.id});},children:[S,d.name]});return (d.tooltip||w9[d.id])&&(C=x(mn,{title:H(_e,{children:[d.tooltip,w9[d.id]]}),color:d.colorPrimary,children:C})),C=x(f.Fragment,{children:C},d.id),C})})]},a))})}function lL(e,t,n){return ua(e,r=>{if(Us())return;const i=!!!Ao(st,t);Tf(st,t,i),_t.success(`已${i?"启用":"禁用"}「${n}」`);},{exactMatch:true})}const f6e="basic",cL=kn({tab:f6e});function m6e(){return lL(["shift.p"],"videoCard.imgPreview.autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),lL(["shift.m"],"videoCard.imgPreview.autoPreviewWhenHover","鼠标悬浮后自动开始预览"),c6e(),null}const h6e={name:"4k370z",styles:"&.ant-tabs{.ant-tabs-tab{justify-content:end;padding-inline:5px 15px;}.ant-tabs-nav-operations{display:none;}}"};function p6e({show:e,onHide:t}){const{tab:n}=yt(cL);return H($g,{show:e,onHide:t,hideWhenMaskOnClick:true,hideWhenEsc:true,width:900,clsModalMask:"[&:has(svg.peeking)]:bg-transparent",clsModal:"max-h-unset [&:has(svg.peeking)]:opacity-10",children:[H("div",{className:Io.modalHeader,children:[H("div",{className:Io.modalTitle,children:[x(tA,{className:"mr-4px mt--2px size-26px"}),"设置"]}),x(Eg,{onClick:t})]}),x("main",{className:Io.modalBody,style:{overflow:"hidden"},children:x(ZR,{tabPlacement:"start",size:"middle",css:h6e,activeKey:n,onChange:r=>cL.tab=r,items:[{label:"常规设置",key:"basic",children:x(bAe,{})},{label:"视频卡片",key:"video-card",children:x(u6e,{})},{label:"内容过滤",key:"filter",children:x(IAe,{})},{label:"主题选择",key:"theme-select",children:x("div",{className:Bn.tabPane,children:x(d6e,{})})},{label:"Tab 设置",key:"video-source-tab-config",children:x(r6e,{})},{label:"其他页面",key:"other-pages",children:x(LAe,{})},{label:"高级设置",key:"advance",children:x(_Ee,{})}]})})]})}const g6e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"m19 12l12 12l-12 12"})]}),oK=f.forwardRef(g6e);function v6e({children:e,initialOpen:t=false,ref:n}){const[r,o]=uW(t);f.useImperativeHandle(n,()=>o,[o]);const i=x(lt,{onClick:o.toggle,className:"icon-only-round-button",children:x(oK,{className:X("size-13px",r?"rotate-z-0":"rotate-z-180deg")})});return H(_e,{children:[i,r&&e]})}function iK({Component:e,defaultProps:t,containerClassName:n}){const r=kn(t);function o(){const u=yt(r);return x(e,{...u})}const i=Rf(()=>{const u=document.createElement("div");u.className=X($a,n),document.body.appendChild(u),Za.createRoot(u).render(x(Ws,{children:x(o,{})}));});function a(u){return (...d)=>(i(),u(...d))}const l=a(u=>{Object.assign(r,u);});return {WrappedComponent:o,proxyProps:r,mount:i,wrapAction:a,updateProps:l}}const b6e=[{platform:"pc",text:"内容不感兴趣",value:1,reason:1},{platform:"pc",text:"不想看此UP主",value:2,reason:4}];function p6(e){if(e.platform==="app")return {reasonId:e.id,text:e.name,helpText:e.toast};if(e.platform==="pc")return {reasonId:e.reason,text:e.text};im(e);}const y6e={show:false,reasons:[],onHide:C6e,okAction:void 0},{proxyProps:S6e,updateProps:aK}=iK({Component:w6e,containerClassName:"show-dislike-container",defaultProps:y6e}),sK=new Oo;function C6e(){sK.emit("modal-close"),aK({show:false,reasons:[],okAction:void 0});}async function x6e(e,t){aK({show:true,reasons:e,okAction:t}),await sK.once("modal-close");}const lK=function(){return yt(S6e).show};function w6e({show:e,reasons:t,onHide:n,okAction:r}){const o=f.useRef(null),i=()=>!!e&&!!t?.length,a=ga(async b=>r?.(b),{manual:true}),l=a.loading,[u,d]=f.useState(()=>t.length?t.length-1:0);f.useLayoutEffect(()=>{if(!t.length)return;const b=t[0].platform;b==="app"?d(t.length-1):b==="pc"?d(0):im(b);},[t]);const m=["1","2","3","4","5","6"];ua(m,b=>{if(!i()||!m.includes(b.key)||!t?.length)return;const y=Number(b.key)-1;y>=0&&y<t.length&&d(y);});const p=tt(b=>{if(!i()||Us())return;const y=t.length;let S=u+b;S<0&&(S=S%y+y),S>y-1&&(S=S%y),d(S);});ua("uparrow",()=>p(-1),{exactMatch:true}),ua("downarrow",()=>p(1),{exactMatch:true});const g=H1(async b=>{if(!i()||u<0||u>t.length-1)return;const y=t[u];if(!y)return;b.preventDefault(),b.stopPropagation(),await a.runAsync(y)&&n();});return ua("enter",g,{exactMatch:true}),H($g,{show:e,onHide:n,hideWhenMaskOnClick:true,hideWhenEsc:true,width:350,clsModal:"rounded-15px",children:[H("div",{className:Io.modalHeader,children:[H("div",{className:Io.modalTitle,children:[x(eA,{className:"size-25px"}),x("span",{className:"ml-5px",children:"我不想看"}),H(pr,{children:["选择后将减少相似内容推荐 ",x("br",{}),"操作说明: ",x("br",{}),H("div",{className:"ml-10px",children:["1. 使用删除键打开弹窗, Esc 关闭 ",x("br",{}),"2. 数字键 或 方向键选择 ",x("br",{}),"3. 回车键 或 确定按钮提交 ",x("br",{})]})]})]}),x(Eg,{onClick:n})]}),x("div",{className:Io.modalBody,ref:o,children:x(y1,{spinning:l,indicator:sU,children:x("div",{className:"reason-list mb-20px mt-20px flex flex-col gap-y-10px",children:t.map((b,y)=>{const S=y===u,{reasonId:C,text:w}=p6(b);return H("button",{className:X("reason",{active:S},"relative flex cursor-pointer items-center b-2px rounded-6px b-solid bg-transparent px-6px py-12px",S?"b-gate-primary":"b-gate-border"),disabled:l,onClick:()=>{d(y);},children:[x("span",{"data-cls":"reason-no",className:"size-20px flex flex-none items-center justify-center rounded-full bg-gate-primary text-13px color-white",children:y+1}),x("span",{className:"flex-1 px-4px text-14px",children:w}),x("span",{className:"size-20px flex-none",children:S&&x(Pp,{className:"h-100% w-100% color-gate-primary",useAnimation:true})})]},C)})})})}),H("div",{className:"mt-2 flex items-center justify-end gap-x-10px",children:[x(lt,{onClick:n,children:"取消"}),x(lt,{type:"primary",onClick:g,loading:l,children:"确定"})]})]})}const cK={modalWidth:60,favFolderOrder:"default"},Ah=hT({...cK},"modal-fav-manager");function $6e(){const{modalWidth:e,favFolderOrder:t}=yt(Ah),n="text-1.5em",r="text-1.2em";return H("div",{className:"flex flex-col gap-y-10px",children:[H("div",{className:"flex items-center justify-between",children:[x("div",{className:n,children:"窗口设置"}),x(lt,{className:"icon-only-round-button size-24px",onClick:()=>Object.assign(Ah,cK),children:x(vy,{})})]}),H("div",{children:[H("div",{className:r,children:["窗口宽度 ",e,"%"]}),x(rT,{className:"mt-0",value:e,min:30,max:90,onChange:o=>{Ah.modalWidth=o;}})]}),H("div",{children:[x("div",{className:r,children:"收藏夹排序"}),x(_q,{value:t,onChange:o=>Ah.favFolderOrder=o})]})]})}function E6e({show:e,onHide:t,mode:n,pickOkAction:r,modifyInitialSelectedIds:o,modifyAllowEmpty:i,modifyOkAction:a}){const{modalWidth:l,favFolderOrder:u}=yt(Ah),[d,m]=f.useState(void 0),[p,g]=f.useState(void 0),b=ga(f6,{manual:true}),y=ga(async _=>r?.(_),{manual:true}),S=ga(async _=>a?.(_),{manual:true}),{folders:C}=yt(pn),w=f.useMemo(()=>{const _=C.map((q,F)=>({...q,vol:F+1}));if(!p)return _;const L=_.filter(q=>q.title.includes(p)),k=_.filter(q=>q.title.toLowerCase().includes(p.toLowerCase())),W=_.filter(q=>GX.match(q.title,p));return Zl([...L,...k,...W],q=>q.id)},[C,p]),E=f.useMemo(()=>Dq(w,u),[w,u]),T=f.useMemo(()=>new Set([o].flat().filter(_=>typeof _=="number")),[o]),R=M6e(),I=n==="modify"&&i,N=f.useMemo(()=>!I&&!d||n==="modify"&&fa(Array.from(T),[d]),[I,d,n,T]);ua("r",()=>{e&&(Us()||b.run(true));},{exactMatch:true});const P=tt(async()=>{let _;if(d&&(_=C.find(L=>L.id===d)),!I&&!_)return _t.error("请选择一个收藏夹");n==="pick"&&(Ir(_,"selectedFolder should not be empty when mode=pick"),await y.runAsync(_)&&t()),n==="modify"&&await S.runAsync(_)&&t();}),O=tt(()=>{if(!(!e||n!=="modify"||!T.size)&&(!d||!T.has(d))){const _=Array.from(T)[0];m(_);}});return f.useEffect(()=>{e&&(b.run(),O());},[e]),Is(()=>{if(e&&(!d||!T.has(d))){const _=Array.from(T)[0];m(_);}},[T]),H($g,{show:e,onHide:t,hideWhenMaskOnClick:true,hideWhenEsc:true,width:`${l}vw`,clsModal:"rounded-15px",children:[H("div",{className:Io.modalHeader,children:[H("div",{className:"flex flex-wrap items-center gap-x-10px gap-y-1",children:[H("div",{className:Io.modalTitle,children:[n==="pick"?x(bCe,{className:"size-25px"}):x(nA,{className:"size-25px"}),x("span",{className:"ml-5px",children:n==="pick"?"选择目标收藏夹":"修改收藏"})]}),x(Yi,{className:"w-215px",allowClear:true,placeholder:"过滤: 支持拼音 / 拼音首字母",value:p,onChange:_=>g(_.target.value),spellCheck:false}),!!p&&H("span",{className:"ml-5px",children:[x("span",{className:X({"text-red":C.length&&!E.length}),children:E.length})," ","/ ",x("span",{children:C.length})]}),H(pr,{className:"ml-5px size-1.3em",children:["1. 使用 ",x("kbd",{className:X(Su,"mx-2px"),children:"r"})," 刷新收藏夹 ",x("br",{}),"2. 使用 ",x("kbd",{className:X(Su,"mx-2px"),children:"esc"})," 取消操作, 关闭窗口 ",x("br",{}),"3. 使用 拼音 / 拼音首字母 过滤收藏夹标题 ",x("br",{})]}),x(Jo,{trigger:"click",title:x($6e,{}),children:x(tA,{className:"size-1.3em cursor-pointer"})})]}),x(Eg,{onClick:t})]}),x("div",{className:X(Io.modalBody),children:x(y1,{spinning:b.loading||y.loading||S.loading,indicator:sU,children:x("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(225px,1fr))] mb-10px min-h-100px content-start items-center gap-10px pr-18px",children:E.length?E.map(_=>{const L=n==="modify"&&T.has(_.id),k=_.id===d;return H("button",{"data-id":_.id,className:X({active:k},"relative min-h-40px flex cursor-pointer items-center b-2px b-gate-border rounded-20px b-solid bg-transparent px-4px line-height-[1.2] hover:bg-gate-bg-lv1",k&&"b-gate-primary color-white bg-gate-primary! hover:bg-gate-primary-lv1!"),onClick:()=>{if(k&&I)return m(void 0);m(_.id);},children:[L&&x(mn,{title:"源收藏夹",placement:"left",children:x("span",{className:X("absolute left-2 top-50% size-2.5 flex-center translate-y--50% rounded-full",R)})}),H("span",{className:"flex-1 px-4px text-14px",children:[_.title," (",_.media_count,")"]}),x("span",{className:"mr-2px size-20px flex-none",children:k&&x(Pp,{className:"size-full color-white",useAnimation:true})})]},_.id)}):x(Vi,{className:"grid-col-span-full",image:Vi.PRESENTED_IMAGE_SIMPLE,description:"未找到收藏夹",children:"无过滤结果, 请检查过滤词 !"})})})}),H("div",{className:"mt-2 flex items-center justify-between",children:[x("div",{className:"flex-v-center gap-x-10px",children:H("a",{href:`https://space.bilibili.com/${ei()}/favlist`,target:"_blank",className:"flex-v-center gap-x-1",children:[x(Po,{className:"size-1.1em"}),"去个人空间新建收藏夹"]})}),H("div",{className:"flex-v-center gap-x-10px",children:[x(lt,{onClick:t,children:"取消"}),x(lt,{type:"primary",onClick:P,loading:y.loading||S.loading,disabled:N,children:"确定"})]})]})]})}function M6e(){const{theme:e}=Ut();return e===Sy.id?"bg-$brand_blue":"bg-$brand_pink"}const R6e={onHide:A6e,show:false,mode:"pick",pickOkAction:void 0,modifyInitialSelectedIds:void 0,modifyOkAction:void 0},{proxyProps:T6e,updateProps:g6}=iK({Component:E6e,containerClassName:"ModalFavManager",defaultProps:R6e}),v6=new Oo;function A6e(){g6({show:false}),v6.emit("modal-close");}function uK(){return yt(T6e).show}async function N6e(e){g6({show:true,mode:"pick",pickOkAction:e}),await v6.once("modal-close");}async function zy(e,t,n=true){g6({show:true,mode:"modify",modifyInitialSelectedIds:e,modifyOkAction:t,modifyAllowEmpty:n}),await v6.once("modal-close");}async function b6(e,t,n){if(fa(t,[n?.id]))return _t.warning("请选择不同的收藏夹!"),false;if(!await $u.modifyFav(e,t,n?.id))return  false;[...t??[],n?.id].filter(a=>a!==void 0).forEach(a=>p0(a));let i;return n?i=`${t?.length?"已移动收藏到":"已加入收藏"}「${n.title}」`:i="已取消收藏",_t.success(i),true}var dM=new Map,Tb=new WeakMap,uL=0,P6e;function I6e(e){return e?(Tb.has(e)||(uL+=1,Tb.set(e,uL.toString())),Tb.get(e)):"0"}function O6e(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?I6e(e.root):e[t]}`).toString()}function D6e(e){const t=O6e(e);let n=dM.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var u;const d=l.isIntersecting&&o.some(m=>l.intersectionRatio>=m);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=d),[...(u=r.get(l.target))!=null?u:[]].forEach(m=>{m(d,l);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},dM.set(t,n);}return n}function _6e(e,t,n={},r=P6e){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const u=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),()=>{}}const{id:o,observer:i,elements:a}=D6e(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),dM.delete(o));}}function L6e({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:u,onChange:d}={}){var m;const[p,g]=f.useState(null),b=f.useRef(d),y=f.useRef(l),[S,C]=f.useState({inView:!!l,entry:void 0});b.current=d,f.useEffect(()=>{if(y.current===void 0&&(y.current=l),a||!p)return;let T;return T=_6e(p,(R,I)=>{const N=y.current;y.current=R,!(N===void 0&&!R)&&(C({inView:R,entry:I}),b.current&&b.current(R,I),I.isIntersecting&&i&&T&&(T(),T=void 0));},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},u),()=>{T&&T();}},[Array.isArray(e)?e.toString():e,p,o,r,i,a,n,u,t]);const w=(m=S.entry)==null?void 0:m.target,$=f.useRef(void 0);!p&&w&&!i&&!a&&$.current!==w&&($.current=w,C({inView:!!l,entry:void 0}),y.current=l);const E=[g,S.inView,S.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}function dL(e){return !f.Children.toArray(e.props?.children).length}function B6e(e){const[t,n]=f.useState(e),r=f.useRef(t),o=f.useCallback(a=>{const l=typeof a=="function"?a(r.current):a;r.current=l,n(l);},[n]),i=f.useCallback(()=>r.current,[]);return [t,o,i]}function Dl(e){const[t,n,r]=B6e(e),o=f.useMemo(()=>({state:t,get:r,set:n,get val(){return r()},set val(i){n(i);}}),[r,n]);return o.state=t,o}function fM(e){const t=f.useRef(e),n=f.useCallback(()=>t.current,[]),r=f.useCallback(o=>t.current=o,[]);return f.useMemo(()=>({get:n,set:r,get val(){return n()},set val(o){r(o);}}),[n,r])}function dK({src:e,avif:t,webp:n,imgProps:r,className:o,...i}){return t??=!bg,n??=true,H("picture",{className:ur("h-full w-full object-cover",o),...i,children:[t&&x("source",{srcSet:`${e}.avif`,type:"image/avif"}),n&&x("source",{srcSet:`${e}.webp`,type:"image/webp"}),x("img",{src:e,loading:"lazy",className:"block h-full w-full",...r})]})}const lS=jH();function z6e(e){const t=yt(lS);return e?t.get(e):void 0}function k6e(e){lS.delete(e);}function y6(e){if(Xl(e))return e.param;if(Ql(e))return e.id.toString()}const F6e=typeof unsafeWindow<"u"?unsafeWindow:globalThis,S6=(e,t)=>{zl(()=>F6e[e]=t);},H6e=`${RM}_gridItems`;function V6e(e){const t=e.filter(n=>n.api!==Qe.Separator);XMe(t),S6(H6e,t);}const j6e={getGenericCardDatas:qA,copyBvidsSingleLine:GA,copyBvidInfos:YA};setTimeout(()=>{Object.entries(j6e).forEach(([e,t])=>{S6(`${RM}_${e}`,t);});});function U6e(e){const{enabled:t,keywords:n}=yt(st.filter.byAuthor),{blockUpMids:r}=f.useMemo(()=>lM(n),[n]);return e?t&&r.has(e):false}var Ab={},Eo={},M$={exports:{}},fL;function fK(){return fL||(fL=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=true,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=true,e.exports.default=e.exports;})(M$)),M$.exports}var mL;function C6(){if(mL)return Eo;mL=1;var e=Ma();Object.defineProperty(Eo,"__esModule",{value:true}),Eo.isUndef=Eo.isString=Eo.isObject=Eo.isNumber=Eo.isFunction=Eo.isBoolean=void 0;var t=e(fK());return Eo.isObject=function(r){return r!==null&&(0, t.default)(r)==="object"},Eo.isFunction=function(r){return typeof r=="function"},Eo.isString=function(r){return typeof r=="string"},Eo.isBoolean=function(r){return typeof r=="boolean"},Eo.isNumber=function(r){return typeof r=="number"},Eo.isUndef=function(r){return typeof r>"u"},Eo}var R$={},hL;function W6e(){return hL||(hL=1,(function(e){Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var t=!!(typeof window<"u"&&window.document&&window.document.createElement);e.default=t;})(R$)),R$}var pL;function x6(){if(pL)return Ab;pL=1;var e=Ma();Object.defineProperty(Ab,"__esModule",{value:true}),Ab.getTargetElement=r;var t=C6(),n=e(W6e());function r(o,i){if(n.default){if(!o)return i;var a;return (0, t.isFunction)(o)?a=o():"current"in o?a=o.current:a=o,a}}return Ab}var mK=x6();async function q6e(e,t,n=false,r=false){const o={cid:t,fnver:0,fnval:n?1:16},i=e.toString();if(i.startsWith("BV"))o.bvid=i;else if(/^\d+$/.test(i))o.avid=i;else throw new Error("Invalid videoId provided, must be avid | bvid");const l=(await Xt.get("/x/player/wbi/playurl",{params:o})).data;function u(p){return iM(p,[g=>G6e(g,r)],["desc"])}if(l?.data?.durl){const p=(l.data.durl||[]).map(g=>[g.url,...g.backup_url||[]]).flat().filter(Boolean);if(p.length)return u(p)}return iM(l.data?.dash?.video||[],["id","codecid"],["desc","desc"]).map(p=>u([p.baseUrl,...p.backupUrl||[]])[0]).filter(Boolean)}function G6e(e,t){if(!t)return 10;const{hostname:n,searchParams:r,pathname:o}=new URL(e);return n.includes("mcdn")||r.get("os")==="mcdn"?2:o.startsWith("/v1/resource/")?1:n.includes("-mirror")?100:10}function w6(e){return !!(e?.image?.length&&e?.index?.length)}function gL(e){return Vn(e)?w6(e.data):true}async function K6e(e){const n=(await Xt.get("/x/player/videoshot",{params:{bvid:e,index:"1"}})).data;return Vn(n)||Xo("videoshot error for %s: %o",e,n),w6(n.data)||Xo("videoshot data invalid bvid=%s: %o",e,n.data),n}const T$=new ZA({maxSize:1e4}),Y6e=Vs(async e=>{if(T$.has(e)){const a=T$.get(e);if(a)return a}const t=5,n=200;let r=0,o;do{if(r++,o=await K6e(e),gL(o))break;await gn(n);}while(r<t);gL(o)&&T$.set(e,o);const i=o.data;if(st.videoCard.imgPreview.autoPreviewWhenHover){const a=i?.image||[];await nL(a[0]),(async()=>{for(const l of a.slice(1))await nL(l);})();}return o}),X6e=so.extend("VideoCard:services");function hK(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:lc()}),i=(await Xt.post(`/x/v2/history/toview/${e}`,r)).data,a=Vn(i);return a||fn(i?.message||"出错了"),a}}const mM=hK("add"),Q6e=hK("del");async function Z6e(e){return {videoshotJson:await Y6e(e)}}function J6e(e){return w6(e?.videoshotJson?.data)}const eNe=e=>!!e?.playUrls?.length,vL=new ZA({maxSize:1e4,maxAge:co("1h")}),tNe=Vs(async({bvid:e,cid:t,useMp4:n,usePreferredCdn:r,aspectRatioFromItem:o})=>{const i=JSON.stringify([e,n,r]),a=vL.get(i);if(a)return a;let l;if(t===void 0||o===void 0){const m=await oq(e);if(t=m[0]?.cid,l=m[0]?.dimension,t===void 0)throw new TypeError(`can not get cid by bvid=${e}`)}const[u,d]=await pu(()=>q6e(e,t,n,r));if(X6e("playUrl: bvid=%s cid=%s %s",e,t,d),u)throw ca.error({title:"获取视频播放地址失败",description:u.message||u}),u;return d?.length&&vL.set(i,{playUrls:d,dimension:l}),{playUrls:d??void 0,dimension:l}}),nNe=so.extend("VideoCard:LargePreview"),pK={right:{multiplier:1,axis:"x",reverse:"left"},left:{multiplier:-1,axis:"x",reverse:"right"},bottom:{multiplier:1,axis:"y",reverse:"top"},top:{multiplier:-1,axis:"y",reverse:"bottom"}},po={border:40,card:10};function rNe(e){return e?.closest(z3(_l,"bili-video-card"))?.querySelector(z3(IB,"bili-video-card__image"))?.getBoundingClientRect()}const oNe=f.memo(function({children:t,aspectRatio:n=1.7777777777777777,cardDescendantTarget:r,ref:o,...i}){const a=q1(o),[l,u]=f.useState(false),[d,m]=f.useState(void 0),p=tt(()=>{u(false),m(void 0);}),g=tt(()=>{const $=rNe(mK.getTargetElement(r)??void 0);if(!$)return p();const[E,T]=[document.documentElement.clientWidth,document.documentElement.clientHeight],R=40;if($.top>T-R||$.bottom<0+R||$.left>E-R||$.right<0+R)return p();const I={top:{x:0,y:0,width:E,height:$.top},bottom:{x:0,y:$.bottom,width:E,height:T-$.bottom},left:{x:0,y:0,width:$.left,height:T},right:{x:$.right,y:0,width:E-$.right,height:T}},N=K=>{const J=n,ee=1,te=K.width/J,re=K.height/ee;return {scale:Math.min(te,re),scaleLimit:te>re?"height":"width"}},P=xs(Object.entries(I).map(([K,J])=>({direction:K,bbox:J,...N(J)})),["scale",K=>{switch(K.direction){case "top":return $.top;case "bottom":return T-$.bottom;case "left":return $.left;case "right":return E-$.right}}],["desc","desc"])[0];nNe("picked direction",P);const{direction:O,bbox:_,scale:L,scaleLimit:k}=P;let W,q;if(k==="width")W=Math.floor(_.width-(po.card+po.border)),q=W/n;else if(k==="height")q=Math.floor(_.height-(po.card+po.border)),W=q*n;else throw new Error("unexpected scaleLimit");let F=0,z=0,j=0,U=0;const Y=()=>{j=$.y+$.height/2-z;},Q=()=>{U=$.x+$.width/2-F;},D=()=>{if(F<po.border){F=po.border;return}if(F+W>E-po.border){F=E-po.border-W;return}},B=()=>{if(z<po.border){z=po.border;return}if(z+q>T-po.border){z=T-po.border-q;return}};switch(O){case "top":F=$.x+$.width/2-W/2,z=$.top-po.card-q,D(),Q();break;case "bottom":F=$.x+$.width/2-W/2,z=$.bottom+po.card,D(),Q();break;case "right":F=$.right+po.card,z=$.y+$.height/2-q/2,B(),Y();break;case "left":F=$.left-po.card-W,z=$.y+$.height/2-q/2,B(),Y();break}F=Math.floor(F),z=Math.floor(z),u(true),m({direction:O,elWidth:W,elHeight:q,elPosX:F,elPosY:z,arrowTop:j,arrowLeft:U});}),b=f.useMemo(()=>Jl(g,100),[g]);io(b),va("resize",b,{target:window}),va("scroll",b,{target:window});const{useScale:y}=Ut().videoCard.videoPreview,S=y?.2:.3,C=f.useMemo(()=>{const $=d?.direction;if(!$)return;const{axis:E,multiplier:T,reverse:R}=pK[$];if(y)return E==="x"?{scale:.5,transformOrigin:`${R} ${d.arrowTop}px`}:{scale:.5,transformOrigin:`${d.arrowLeft}px ${R}`};{let I=30;return $==="top"&&(I=20),E==="x"?{x:-T*I,y:0}:{x:0,y:-T*I}}},[d,y]);return x("div",{...i,ref:a,className:X("fixed",GCe,l?"block":"hidden"),css:d&&ln("width:",d.elWidth,"px;height:",d.elHeight,"px;top:",d.elPosY,"px;left:",d.elPosX,"px;",""),children:l&&H(ZT.div,{className:"relative h-100%",initial:{opacity:0,...C},animate:{opacity:1,x:0,y:0,scale:1},transition:{bounce:0,duration:S},children:[d?.direction&&x(iNe,{size:7,direction:d.direction,arrowTop:d.arrowTop,arrowLeft:d.arrowLeft}),x("div",{className:"h-full overflow-hidden rounded-20px bg-white/50% backdrop-blur-10px",css:ln("box-shadow:0px 0px 1px 1px ",xa,";",""),children:t})]})})});function iNe({size:e,direction:t,arrowTop:n,arrowLeft:r}){const{axis:o,multiplier:i,reverse:a}=pK[t],l=f.useMemo(()=>o==="x"?ln`
        ${t}: 100%;
        margin-${t}: -1px;
        top: ${n}px;
        margin-top: -${e/2}px;
      `:ln`
        ${t}: 100%;
        margin-${t}: -1px;
        left: ${r}px;
        margin-left: -${e/2}px;
      `,[e,t,o,n,r]);return x("div",{className:"absolute box-content h-0 w-0",css:[ln("border:",e,"px solid transparent;",""),l,ln`
          border-${t}-color: ${xa};
        `,"",""]})}const _d=await( pT({volume:void 0,muted:void 0},"large-preview-store")),aNe=function({currentTimeRef:e,ref:t,...n}){const r=q1(t),o=f.useRef(false);io(()=>{r.current&&(typeof e.current=="number"&&(r.current.currentTime=e.current),typeof _d.volume=="number"&&(r.current.volume=_d.volume),typeof _d.muted=="boolean"&&(r.current.muted=_d.muted)),o.current=true;});const i=tt(()=>{o.current&&(e.current=r.current?.currentTime);}),a=tt(()=>{o.current&&r.current&&(_d.volume=r.current.volume,_d.muted=r.current.muted);});return x("video",{ref:r,...n,onTimeUpdate:i,onVolumeChange:a})},sNe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M10.696 17.504c2.639-2.638 5.774-2.565 9.182-.696L32.62 9.745l-.721-4.958L43.213 16.1l-4.947-.71l-7.074 12.73c1.783 3.638 1.942 6.544-.697 9.182l-7.778-7.778L6.443 41.556l11.995-16.31z"})]}),lNe=f.forwardRef(sNe),cNe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3"}),x("path",{d:"M20.5 28v-6.062l5.25 3.03L31 28l-5.25 3.031l-5.25 3.031zM6 15h36m-9-9l-6 9m-6-9l-6 9"})]})]}),uNe=f.forwardRef(cNe);function bL(e){e.current!==void 0&&(clearTimeout(e.current),e.current=void 0);}function gK({shouldFetchPreviewData:e,hasLargePreviewActionButton:t,actionButtonVisible:n,actionButtonProps:r,actionButtonCss:o,bvid:i,cid:a,uniqId:l,recSharedEmitter:u,cardTarget:d,aspectRatioFromItem:m,cover:p,videoCardAsTriggerRef:g}){const{useMp4:b,useVideoCardAsTrigger:y,usePreferredCdn:S}=yt(st.videoCard.videoPreview),C=Dl(void 0),w=H1(async()=>{if(!e||eNe(C.val))return;const ne=await tNe({bvid:i,cid:a,useMp4:b,usePreferredCdn:S,aspectRatioFromItem:m});C.set(ne);});Is(()=>{C.set(void 0);},[b,S]);const $=ga(w,{manual:true,loadingDelay:100}),[E,T]=f.useState(false),R=Dl(void 0),I=Dl(void 0),N=Dl(void 0),P=fM({}),O=tt(()=>N.val?Date.now()-N.val<1200:false),_=f.useRef(void 0),L=f.useRef(void 0),k=tt(()=>{bL(_),bL(L);}),W=tt((ne,ce)=>{T(true),R.set(ne),I.set(ce),u.emit("show-large-preview",l),N.set(void 0);}),q=tt(()=>{T(false),R.set(void 0),I.set(void 0),N.set(Date.now());});bo(u,"show-large-preview",ne=>{ne!==l&&(k(),q());});const F=tt(ne=>{if(P.set({...P.val,[ne]:true}),R.val==="click")return;$.run(),k();let ce=0;ne==="video-card-action-button"&&(ce=200),ne==="video-card"&&(ce=1e3),ce?_.current=setTimeout(()=>W("hover",ne),ce):W("hover",ne);}),z=tt(ne=>{if(P.set({...P.val,[ne]:false}),R.val==="click")return;const ce=()=>{P.val.popover||P.val["video-card-action-button"]||q();};k(),ne==="video-card-action-button"||ne==="video-card"||ne==="popover"?L.current=setTimeout(ce,250):ce();}),j=tt(ne=>{k(),R.val==="click"?q():W("click",ne);}),U=tt(()=>{if(K.current)return Math.floor(K.current)}),Y=tt(()=>!!(E||O())),Q=tt(()=>{if(!i)return;const ne=new URL(`https://${kl.Main}/video/${i}`),ce=U();ce&&ne.searchParams.set("t",ce.toString()),mi(ne.href),B.current?.pause(),q();}),D=f.useMemo(()=>jA({dimensionFromApi:C.state?.dimension})?.aspectRatio??m,[C.state?.dimension]),B=f.useRef(null),K=f.useRef(void 0),J=f.useRef(null),ee=E&&!!C.state?.playUrls?.length,te=ee&&H(oNe,{ref:J,aspectRatio:D,onMouseEnter:ne=>F("popover"),onMouseLeave:ne=>z("popover"),cardDescendantTarget:d,children:[x(aNe,{ref:B,currentTimeRef:K,autoPlay:true,controls:true,loop:true,poster:p,className:"size-full object-contain",children:C.state?.playUrls?.map((ne,ce)=>x("source",{src:ne},ce))}),H("div",{className:"absolute right-10px top-10px flex flex-row-reverse items-center justify-start gap-x-5px",children:[R.state==="click"?x(Fa,{inlinePosition:"right",icon:x(RMe,{className:"size-14px"}),tooltip:"关闭",onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),q();}}):x(Fa,{inlinePosition:"right",icon:x(lNe,{className:"size-14px"}),tooltip:"固定",onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),j("popover-action-button");}}),x(Fa,{inlinePosition:"right",icon:x(zq,{className:"size-14px"}),tooltip:"新窗口打开",onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),Q();}})]})]}),re=t&&e&&x(Fa,{css:o,...r,visible:n,active:ee,inlinePosition:"right",icon:$.loading?x(Jj,{className:"size-16px"}):x(uNe,{className:"size-15px"}),tooltip:R.state==="click"&&E?"关闭浮动预览":"浮动预览",onMouseEnter:ne=>F("video-card-action-button"),onMouseLeave:ne=>z("video-card-action-button"),onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),j("video-card-action-button");}},"video-card-action-button");ua("esc",()=>{Us()||q();},{exactMatch:true}),S$e(()=>q(),[J,()=>mK.getTargetElement(d)?.closest(z3(_l,"bili-video-card"))]),va("fullscreenchange",()=>{document.fullscreenElement&&(!E||R.val==="click"||document.fullscreenElement===B.current&&W("click","popover-video-fullscreen-button"));},{target:document});const ie=f.useRef(null),ue=g||ie;return va("mouseenter",()=>{!y||!g||F("video-card");},{target:ue}),va("mouseleave",()=>{!y||!g||z("video-card");},{target:ue}),{largePreviewActionButtonEl:re,largePreviewEl:te,getLargePreviewCurrentTime:U,shouldUseLargePreviewCurrentTime:Y,largePreviewVisible:E,hideLargePreview:q}}const dNe=LEe(xa,.1),Hi={normalBorder:ln("border-color:",DU,";",""),activeBorder:ln("border-color:",xa,";box-shadow:0px 0px 9px 4px ",dNe,";",""),rounded:ln("border-radius:",vA,";",""),bgLv1:ln("background-color:",yy,";",""),coverZoomEffect:{name:"dj03ws",styles:".bili-video-card__cover{transform-origin:center center;transition:transform 0.2s ease-out;transform:scale(1.05);}"}},fNe=ln(Hi.activeBorder," &:hover{",Hi.activeBorder,";}","");function mNe(e){const t=`--${ao}--separator-color`;return f.useMemo(()=>{if(e)return ln`
      ${Hi.rounded}
      ${Hi.normalBorder}

      background-color: ${k3};
      ${t}:  ${yy};
      &:hover {
        background-color: ${yy};
        ${t}: ${wwe};
      }

      /* disable padding */
      margin-inline: 0;
      .bili-video-card__wrap {
        padding: 0;
      }
    `},[e])}var hNe={name:"7dle4o",styles:"border:1px solid transparent;transition-property:border-color,box-shadow,background-color;transition-duration:0.3s;transition-timing-function:ease-in-out"};function pNe(){const{useDelayForHover:e,style:{videoCard:{useBorder:t,useBorderOnlyOnHover:n,useBoxShadow:r}}}=Ut(),{multiSelecting:o}=yt(Hn),i=n3e();return f.useMemo(()=>[hNe,(o||t&&!i)&&[ln("cursor:pointer;",Hi.rounded," &:hover{",Hi.bgLv1," ",Hi.normalBorder," ",r&&Hi.activeBorder," ",e&&Hi.coverZoomEffect,";}",""),(o||!n)&&Hi.normalBorder]],[t,n,r,e,i,o])}function gNe(e){return e&&[Hi.rounded,Hi.activeBorder]}function vK(e){const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await Sg.get(NB+t,{responseType:"json",params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data,a=Vn(i);let l=i.message;return a||(l||=Fy,l+=`(code ${i.code})`,l+=`
请重新获取 access_key 后重试`),{success:a,json:i,message:l}}}const vNe=vK("dislike"),bNe=vK("cancel");function bK(e){const t={dislike:"/x/web-interface/feedback/dislike",cancel:"/x/web-interface/feedback/dislike/cancel"}[e];return async function(n,r){const o=new URLSearchParams({app_id:"100",platform:"5",from_spmid:"",spmid:"333.1007.0.0",goto:n.goto,id:n.id.toString()||"0",mid:n.owner?.mid?.toString()||"0",track_id:n.track_id,feedback_page:"1",reason_id:r.toString()}),a=(await Xt.post(t,o)).data,l=Vn(a),u=a?.message||Af;return {success:l,message:u,json:a}}}const yNe=bK("dislike"),SNe=bK("cancel");function yK(e){return async function(t,n){const{reasonId:r}=p6(n);let o,i;if(n.platform==="app"){Ir(Xl(t),"expect app recommend");const l=e==="dislike"?vNe:bNe;[o,i]=await pu(()=>l(t,r));}else if(n.platform==="pc"){Ir(Ql(t),"expect pc recommend");const l=e==="dislike"?yNe:SNe;[o,i]=await pu(()=>l(t,r));}else im(n);if(o||!i){console.error(o?.stack||o);const l=o?.message;return _t.error(l),false}if(!i.success){const l=i?.message||Fy;return _t.error(l),false}const a=y6(t);return Ir(a,"dislikeKey should not be empty"),e==="dislike"&&(_t.success("已标记不想看"),lS.set(a,{...n})),e==="cancel"&&(_t.success("已撤销"),k6e(a)),true}}const CNe=yK("dislike"),xNe=yK("cancel"),wNe="_skeleton-active_wlycr_12";function $Ne(e,t){const[n,r]=f.useState(void 0),[o,i]=f.useState(void 0),[a,l]=f.useState(void 0),u=tt(async()=>{if(!t)return;const{enable:d}=SK(e.api);if(!(d||Eu(e)&&e.from==="fav-folder"))return;const m=await $u.getVideoFavState(t);m&&(r(m.favFolderNames),i(m.favFolderUrls),l(m.favFolderIds));});return f.useMemo(()=>({folderNames:n,folderUrls:o,folderIds:a,updateFavFolderNames:u}),[n,o,a,u])}function SK(e){const t=![Qe.Separator,Qe.Live,Qe.Fav].includes(e),n=e===Qe.Watchlater||e===Qe.Liked;return {enable:t,enableDetailMenu:n}}function ENe(e,t,n){if(!n)return;const{enable:r,enableDetailMenu:o}=SK(t.api);if(!r)return;const i=e.folderNames??[],a=e.folderUrls??[],l=e.folderIds??[],u=vi([{key:"quick-fav:faved:modify-fav",icon:x(gCe,{className:X(Tn,"color-gate-primary")}),label:`已收藏在 ${(i||[]).map(p=>`「${p}」`).join("")}`,async onClick(){Ir(l.length,"folderIds.length should not be empty"),await zy(l,p=>b6(n,l,p));}},{test:o,key:"quick-fav:faved:browse-fav-folder-in-self-space",icon:x(Po,{className:Tn}),label:"去个人空间查看收藏夹",onClick(){a.forEach(p=>{window.open(p,h0());});}}]),d=vi([{key:"quick-fav:unfaved:add-fav",icon:x(Cf,{className:Tn}),label:"收藏到",async onClick(){await N6e(async p=>{const g=await $u.addFav(n,p.id);return g&&_t.success(`已加入收藏夹「${p.title}」`),g});}},{test:o,key:"quick-fav:unfaved:add-fav-to-default-folder",icon:x(Cf,{className:Tn}),label:"收藏到「默认收藏夹」",async onClick(){await $u.addFav(n)&&_t.success(`已加入收藏夹「${X3}」`);}}]);return !!i.length?u:d}function MNe({ctx:e,item:t,cardData:n,tab:r,multiSelecting:o,multiSelectingAppendix:i,onRemoveCurrent:a,recSharedEmitter:l}){if(!Eu(t))return [];const{avid:u}=n;e.folderNames,e.folderUrls;const d=e.folderIds??[];if(t.from==="fav-folder"){const m=o?[{key:"fav:batch-move-fav",label:`移动到其他收藏夹${i}`,icon:x(JH,{className:Tn}),async onClick(){if(!Hn.multiSelecting)return;const p=J1().filter(w=>Eu(w)&&w.from==="fav-folder").toReversed(),g=new Set(p.map(w=>w.folder.id));if(!g.size)return fn("至少选择一项视频");if(g.size>1)return fn("多选移动: 只能批量移动同一源收藏夹下的视频");const b=p[0].folder.id,y=p.map(w=>`${w.id}:${w.type}`),S=p.map(w=>w.uniqId),C=p.map(w=>w.title);await zy([t.folder.id],async w=>{Ir(w,"targetFolder should not be empty");const $=await $u.moveFavs(y,b,w.id);if($)return p0(t.folder.id),p0(w.id),l.emit("remove-cards",[S,C,true]),_t.success(`已移动 ${S.length} 个视频到「${w.title}」收藏夹`),$},false);}}]:[];return vi([{key:"fav:browse-fav-folder-in-self-space",label:"去个人空间查看收藏夹",icon:x(Po,{className:Tn}),onClick(){const{id:p}=t.folder,g=_A(p);window.open(g,h0());}},{key:"fav:view-fav-in-new-window",label:"在新窗口中查看收藏夹",icon:x(Po,{className:Tn}),onClick(){const{id:p}=t.folder,g=`/?${Oy.FolderIdFull}=${p}`;window.open(g,h0());}},{test:!!u,key:"modify-fav",icon:x(nA,{className:Tn}),label:"编辑收藏",async onClick(){await zy(d,async p=>{const g=await b6(u,d,p);return g&&p?.id!==t.folder.id&&a?.(t,n,true),g},false);}},{key:"remove-fav",label:"移除收藏",icon:x(Kf,{className:Tn}),async onClick(){if(!await bT.confirm({centered:true,title:"移除收藏",content:H(_e,{children:["确定将视频「",t.title,"」",x("br",{}),"从收藏夹「",t.folder.title,"」中移除?"]})}))return;const g=`${t.id}:${t.type}`;await $u.removeFavs(t.folder.id,g)&&(p0(t.folder.id),a?.(t,n));}},...m])}return t.from==="fav-collection"?vi([{key:"open-fav-collection",label:"浏览合集",icon:x(Po,{className:Tn}),onClick(){const{id:m}=t.collection,p=r!==rt.Fav||pn.selectedKey==="all"&&pn.usingShuffle?`/?${Oy.CollectionIdFull}=${m}`:JW(m);window.open(p,h0());}}]):[]}const RNe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:4,children:[x("path",{d:"M33 7.263A18.9 18.9 0 0 0 24 5C13.507 5 5 13.507 5 24s8.507 19 19 19a18.9 18.9 0 0 0 8-1.761"}),x("path",{strokeLinejoin:"round",d:"M31 30h12m-28-8l7 7l19-18m-4 13v12"})]})]}),TNe=f.forwardRef(RNe),ANe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M19 20a7 7 0 1 0 0-14a7 7 0 0 0 0 14Z"}),x("path",{d:"M30 35h12z",clipRule:"evenodd"}),x("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M30 35h12m-15-7h-8.2c-4.48 0-6.72 0-8.432.872a8 8 0 0 0-3.496 3.496C6 34.08 6 36.32 6 40.8V42h21"})]})]}),NNe=f.forwardRef(ANe),PNe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",children:[x("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.92 12.799Q16 12.41 16 12a4 4 0 0 0-4.799-3.92zM8.667 9.788a4 4 0 0 0 5.545 5.545l-1.474-1.474a2 2 0 0 1-2.597-2.597z",clipRule:"evenodd"}),x("path",{fill:"currentColor",fillRule:"evenodd",d:"m16.52 17.64l-1.47-1.469c-.972.51-2.002.829-3.05.829c-1.526 0-3.014-.678-4.34-1.632c-1.32-.95-2.396-2.112-3.076-2.938c-.1-.121-.174-.212-.236-.291a2 2 0 0 1-.1-.139q.028-.045.1-.139c.062-.08.136-.17.236-.291c.665-.808 1.71-1.938 2.99-2.875l-1.43-1.43C4.797 8.297 3.723 9.47 3.04 10.3l-.073.088c-.314.375-.737.883-.737 1.613s.423 1.238.737 1.613l.073.088c.74.899 1.94 2.203 3.451 3.29C7.994 18.073 9.891 19 12 19c1.67 0 3.206-.581 4.52-1.36M8.806 5.686C9.79 5.269 10.864 5 12 5c2.11 0 4.006.927 5.509 2.009c1.51 1.087 2.711 2.391 3.45 3.29l.074.088c.314.375.737.883.737 1.613s-.423 1.238-.737 1.613l-.073.088a20.5 20.5 0 0 1-2.015 2.123l-1.416-1.416a18.5 18.5 0 0 0 2.123-2.27a2 2 0 0 0 .1-.138a2 2 0 0 0-.1-.139a14 14 0 0 0-.236-.291c-.68-.826-1.756-1.989-3.075-2.938C15.014 7.678 13.526 7 12 7c-.551 0-1.097.088-1.632.246z",clipRule:"evenodd"}),x("path",{stroke:"currentColor",strokeWidth:2,d:"m5 2l16 16"})]})]}),yL=f.forwardRef(PNe),Tn="size-16px";function INe(e){const{item:t,cardData:n,tab:r,favContext:o,watchlaterContext:i,hasDislikeEntry:a,onTriggerDislike:l,onRemoveCurrent:u,consistentOpenMenus:d,conditionalOpenMenus:m,multiSelecting:p}=e,{avid:g,bvid:b,cover:y,href:S,recommendReason:C,authorName:w,authorMid:$}=n,{watchlaterItemsOrder:E,filter:{dfHideOpusMids:{enabled:T}},dynamicFeed:{whenViewAll:{enableHideSomeContents:R}}}=Ut(),I=E===So.AddTimeAsc?"end":"start",N=E===So.AddTimeAsc?"移到最后":"移到最前",{recSharedEmitter:P}=Mi(),O=tt(()=>{let se=S;S.startsWith("/")&&(se=new URL(S,location.href).href),cu(se);}),_=!!$&&hG(t.api)&&r!==rt.KeepFollowOnly,L=tt(async()=>{if(!$)return _t.error("UP mid 为空!");await aq.add($)&&_t.success(`已加入黑名单: ${w}`);}),k=tt(async()=>{if(!$)return _t.error("UP mid 为空!");const se=`${$}`;if(st.filter.byAuthor.keywords.includes(se))return fn(`已在过滤名单中: ${se}`);await Wa("filter.byAuthor.keywords",{add:[se]}),w&&x$($,w),_t.success(`已加入过滤名单: ${w||$}`);}),W=Va(n.followed)?r===rt.DynamicFeed&&Bp(t)||r===rt.Live&&Bp(t)?true:Xl(t)||Ql(t)?r6(C):false:n.followed,q=W,F=tt(async()=>{if(!$||!await bT.confirm({centered:true,title:"取消关注",content:H(_e,{children:["确定取消关注「",w,"」?"]})}))return;await GRe.unfollow($)&&_t.success("已取消关注");}),z=!!$&&!!w,j=tt(()=>{$&&mi(`/?${gi.Mid}=${$}`);}),U=tt(()=>{$&&mi(`/?${Ha.Mid}=${$}`);}),Y=R&&Kd(t)&&en.selectedKey===kp&&!!$,Q=tt(async()=>{Y&&(await Wa("dynamicFeed.whenViewAll.hideIds",{add:[Mf+$]}),x$($,w||""),_t.success(`在「全部」动态中隐藏【${w}】的动态`));}),D=T&&Kd(t)&&t.modules.module_dynamic.major?.type===hi.MajorType.Opus&&!!$,B=tt(async()=>{if(!$)return _t.error("UP mid 为空!");const se=`${$}`;if(st.filter.dfHideOpusMids.keywords.includes(se))return fn(`已在过滤名单中: ${se}`);await Wa("filter.dfHideOpusMids.keywords",{add:[se]}),w&&x$($,w),_t.success(`已屏蔽【${w||$}】的图文动态`);}),K=!!(Kd(t)&&Ds&&en.viewingSomeUp&&$),J=f.useMemo(()=>K&&{label:"动态: 从此项开始查看",key:"动态: 从此项开始查看",icon:x(b_,{className:Tn}),onClick(){const se=new URL("/",location.href);se.searchParams.set(gi.Mid,$);const Me=_s().findIndex(pe=>pe.api===Qe.DynamicFeed&&pe.id_str===t.id_str),ae=_s()[Me-1]?.id_str||t.id_str;se.searchParams.set(gi.Offset,ae),mi(se.href);}},[K,t,$]),ee=f.useMemo(()=>K&&{icon:x(uCe,{className:Tn}),label:"动态: 从此项开始截止",key:"动态: 从此项开始截止",onClick(){const se=new URL("/",location.href);se.searchParams.set(gi.Mid,$),se.searchParams.set(gi.MinId,t.id_str),mi(se.href);}},[K,t,$]),te=f.useMemo(()=>aM&&Z3(t)&&!!t.page&&{key:"space-upload-view-start-from-here",label:`投稿: 从此页开始查看 (当前第${t.page}页)`,icon:x(b_,{className:Tn}),onClick(){const se=new URL(location.href);se.searchParams.set(Ha.InitialPage,t.page.toString()),mi(se.href);}},[aM,t]),re=Kd(t)||Z3(t)?t.groupId:void 0,ie=re!==void 0,ue=yt(en.groups),ne=re!==void 0?ue.find(se=>se.tagid===re):void 0,ce=ne?.name,fe=ne?.count;return f.useMemo(()=>{const{watchlaterAdded:se,hasWatchlaterEntry:Me,onToggleWatchlater:ae}=i,pe={type:"divider"},be=p?" (多选)":"",xe=vi([{key:"copy-link",label:`复制视频链接${be}`,icon:x(lu,{className:Tn}),onClick(){Hn.multiSelecting?JMe():O();}},{test:!!b,key:"copy-bvid",label:`复制 BVID${be}`,icon:x(lu,{className:Tn}),onClick(){Hn.multiSelecting?GA():cu(b);}},{test:!!b&&st.__internalEnableCopyBvidInfo,key:"copy-bvid-info",label:`复制 BVID 信息${be}`,icon:x(lu,{className:Tn}),onClick(){Hn.multiSelecting?YA():cu(KA(n));}},{test:!!y,key:"view-cover",label:"查看封面",icon:x(Po,{className:Tn}),onClick(){if(!y)return;mi(y);}}]),Te=vi([{test:z&&W,key:"查看「投稿」与「动态」的区别",label:"查看「投稿」与「动态」的区别",icon:x(Po,{className:Tn}),onClick:()=>mi("https://github.com/magicdawn/Bilibili-Gate?tab=readme-ov-file#%E5%8F%B3%E9%94%AE%E8%8F%9C%E5%8D%95-%E6%9F%A5%E7%9C%8B-up-%E7%9A%84%E6%8A%95%E7%A8%BF--%E6%9F%A5%E7%9C%8B-up-%E7%9A%84%E5%8A%A8%E6%80%81")},{test:z,key:"查看 UP 的投稿",label:"查看 UP 的投稿",icon:x(gy,{className:Tn}),onClick:U},te,{test:z&&W,key:"查看 UP 的动态",label:"查看 UP 的动态",icon:x(py,{className:Tn}),onClick:j},ee,J,...z&&ie?vi([{type:"divider"},{test:z&&ie&&(fe===void 0||fe<=30),key:"查看分组的投稿",label:"查看分组的投稿",icon:x(gy,{className:Tn}),onClick:()=>mi(`/?${Ha.GroupId}=${re}`)},{test:z&&ie,key:"查看分组的动态",label:"查看分组的动态",icon:x(py,{className:Tn}),onClick:()=>mi(`/?${gi.GroupId}=${re}`)},{type:"divider"}]):[],{test:Me,key:"watchlater",label:se?"移除稍后再看":"稍后再看",icon:se?x(Kf,{className:Tn}):x(oA,{className:Tn}),onClick(){ae();}},{test:Me&&se,key:"watchlater-readd",label:`重新添加稍候再看${r===rt.Watchlater?` (${N})`:""}`,icon:x(TNe,{className:Tn}),async onClick(){const{success:ve}=await ae(void 0,mM);ve&&(_t.success("已重新添加"),r===rt.Watchlater&&P.emit("move-card-to",[t.uniqId,I]));}},...ENe(o,t,g)??[]]),Ke=vi([{test:a,key:"dislike",label:"我不想看",icon:x(eA,{width:15,height:15}),onClick(){l();}},{test:q,key:"unfollow-up",label:"取消关注",icon:x(NNe,{className:Tn}),onClick:F},{test:Y,key:"hasEntry_addMidTo_dynamicFeedWhenViewAllHideIds",label:"在「全部」动态中隐藏 UP 的动态",icon:x(yL,{className:Tn}),onClick:Q},{test:D,key:"hide-up-opus-dynamic",label:"屏蔽此 UP 的图文动态",icon:x(yL,{className:Tn}),onClick:B},{test:_,key:"blacklist-up",label:"将 UP 加入黑名单",icon:x(D3,{className:Tn}),onClick:L},{test:_,key:"add-up-to-filterlist",label:"将 UP 加入过滤列表",icon:x(D3,{className:Tn}),onClick:k}]),Ae=MNe({ctx:o,item:t,cardData:n,tab:r,multiSelecting:p,multiSelectingAppendix:be,onRemoveCurrent:u,recSharedEmitter:P});return vi([...d,!!xe.length&&pe,...xe,!!Te.length&&pe,...Te,!!Ke.length&&pe,...Ke,!!Ae.length&&pe,...Ae,!!m.length&&pe,...m])},[t,n,r,i,o,a,q,_,z,Y,D,d,m,p,re,ie,ce,fe,P,u])}function Nh(e){if(e.altKey)return e.stopPropagation(),true}const Wp=ac(()=>Date.now()),ONe=(Yn().add(1,"minute").startOf("minute").valueOf()-Wp.get())%3e4;setTimeout(()=>{Wp.update(),setInterval(Wp.update,3e4);},ONe);document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&Wp.update();});const DNe=f.memo(function({ts:t}){return t?j3e(t)?x(_Ne,{ts:t}):x(CK,{ts:t}):null});function CK({ts:e}){return f.useMemo(()=>U3e(e),[e])}function _Ne({ts:e}){const t=Wp.use();return x(CK,{ts:e},t)}const LNe=X(sZ,"max-w-[calc(100%-6px)] w-max cursor-default overflow-hidden text-ellipsis whitespace-nowrap b-1px b-gate-border rounded-9px b-solid px-8px py-0 text-12px color-gate-primary line-height-17px"),BNe=X("line-clamp-2 mt-10px h-auto whitespace-normal"),zNe=ln("background-color:oklch(from ",xa," calc(l * 0.1 + 0.88) calc(c * 0.25) h);",NU," &{background-color:oklch(from ",xa," calc(l * 0.3 + 0.175) calc(c * 0.25) h);}",""),kNe=ln("color:",xa,";border-radius:2px;border:1px ",xa," solid;line-height:20px;padding:0 10px;transform:scale(0.8);transform-origin:center left;",""),Nb={name:"nux2qa",styles:"font-size:var(--subtitle-font-size);line-height:var(--subtitle-line-height);color:var(--text3);a&:visited{color:var(--text3);}display:inline-flex;width:max-content;max-width:100%;align-items:center;justify-content:flex-start"};var FNe={name:"15xw6zv",styles:"display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;max-width:100%"},HNe={name:"feo88y",styles:".bili-video-card .bili-video-card__info--tit>a&{font-family:inherit;font-weight:initial;}"},VNe={name:"1eyh0r6",styles:"text-indent:0!important;.bili-video-card &.bili-video-card__info--tit{padding-right:0;height:auto;max-height:calc(2 * var(--title-line-height));}"};const xK=f.memo(function({item:e,cardData:t,handleVideoLinkClick:n,className:r,gridDisplayMode:o}){const{useBorder:i}=yt(st.style.videoCard),a=Z1(),l=DA(o),{goto:u,href:d,title:m,titleRender:p,pubts:g,pubdateDisplay:b,pubdateDisplayForTitleAttr:y,recommendReason:S,authorName:C,authorFace:w,authorMid:$,appBadge:E,appBadgeDesc:T,rankingDesc:R,liveExtraDesc:I}=t,N=u==="av",P=$?Ag($):d,O=e.api===Qe.Live&&e.live_status===za.Streaming,{data:_}=ga(()=>eAe(e,t),{refreshDeps:[e,t]}),L=f.useMemo(()=>{if(N&&(C||g||_||b||y)){let q;return g||_?q=Yn.unix(g||_).format("YYYY年M月D日 HH:mm"):q=b,[C,y||q].filter(Boolean).join(" · ")}},[N,C,g,_,b,y]),k=ur(LNe,l&&BNe);return H("div",{className:X(l?"pt-5px":"pt-15px","flex gap-x-5px overflow-hidden px-5px",i?"mb-10px":"mb-5px",r),children:[!!$&&H("a",{href:P,target:a,className:X("relative flex-center self-start rounded-full p-1px ring-1px",O?"ring-gate-primary":"ring-gate-border"),children:[w?x(nu,{src:o6(w)}):x(nu,{children:C?.[0]||T?.[0]||""}),O&&x(rA,{active:true,className:"absolute bottom-0 right-0 size-12px rounded-full bg-gate-primary"})]}),H("div",{className:"ml-5px flex flex-1 flex-col gap-y-4px overflow-hidden",children:[x("h3",{className:"bili-video-card__info--tit",title:m,css:VNe,children:x("a",{onClick:n,onContextMenu:Nh,href:d,target:a,rel:"noopener",css:HNe,children:p??m})}),W()]})]});function W(){const q=!!S&&x("div",{title:S,css:zNe,className:k,children:S}),F=()=>{let z;return g||_?z=x(DNe,{ts:g||_}):b&&(z=b),H(_e,{children:[H("a",{className:"bili-video-card__info--owner",href:P,target:a,title:L,css:Nb,onContextMenu:Nh,children:[x("span",{className:"bili-video-card__info--author",children:C}),!!z&&H("span",{className:"bili-video-card__info--date",children:[n6,z]})]}),q]})};return N?F():E||T?H("a",{className:"bili-video-card__info--owner",css:Nb,href:d,target:a,onContextMenu:Nh,children:[!!E&&x("span",{css:kNe,children:E}),!!T&&x("span",{children:T})]}):nq(e)&&R?x("div",{css:Nb,children:R}):Bp(e)||Ql(e)&&e.goto===ws.Live?H(_e,{children:[H("a",{css:[Nb,FNe,"",""],href:P,target:a,title:(C||"")+(I||""),onContextMenu:Nh,children:[C,I&&x("span",{className:"ml-4px",children:I})]}),q]}):F()}}),jNe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),x("path",{strokeLinecap:"round",d:"M24 29c5 0 7 4 7 4H17s2-4 7-4m8-12l-3 3l3 3m-16-6l3 3l-3 3"})]})]}),UNe=f.forwardRef(jNe),WNe=f.memo(function({loading:t}){return H("div",{className:X("bili-video-card__skeleton",{hide:!t,[wNe]:t}),children:[x("div",{className:"bili-video-card__skeleton--cover",style:{borderRadius:vA}}),H("div",{className:"bili-video-card__skeleton--info px-5px",children:[x("div",{className:"bili-video-card__skeleton--avatar size-32px rounded-full"}),H("div",{className:"bili-video-card__skeleton--right ml-10px flex-1",children:[x("p",{className:"bili-video-card__skeleton--text"}),x("p",{className:"bili-video-card__skeleton--text short"}),x("p",{className:"bili-video-card__skeleton--light"}),x("p",{className:"bili-video-card__skeleton--text tiny"})]})]})]})}),bi={wrapper:"h-full flex flex-col overflow-hidden",cover:"relative aspect-16/9 rounded-t-6px",coverInner:"absolute left-0 top-0 h-full w-full flex flex-col items-center justify-center gap-y-2",dislikeReason:"text-center text-1.4em",dislikeDesc:"text-center text-1em",action:"relative flex-1",actionInner:"absolute left-0 top-0 h-full w-full flex items-center justify-center b-t-1px b-t-$bilibili-gate--separator-color b-t-solid transition-duration-300 transition-property-[border-color]",actionButton:"flex cursor-pointer items-center rounded-lg bg-transparent p-15px text-1.2em color-inherit"},qNe=f.memo(function({item:t,cardData:n,dislikedReason:r,emitter:o=tU}){const i=tt(async()=>{await xNe(t,r);});bo(o,"cancel-dislike",i);const{text:a,helpText:l}=f.useMemo(()=>p6(r),[r]);return H("div",{className:bi.wrapper,children:[x("div",{className:bi.cover,children:H("div",{className:bi.coverInner,children:[x(UNe,{className:"size-2.5em"}),x("div",{className:bi.dislikeReason,children:a}),x("div",{className:bi.dislikeDesc,children:l||"将减少此类内容推荐"})]})}),x(wK,{item:t,cardData:n,onClick:i})]})});function wK({item:e,cardData:t,onClick:n}){return H("div",{className:bi.action,children:[x(xK,{item:e,cardData:t,className:"invisible"}),x("div",{className:bi.actionInner,children:H("button",{className:bi.actionButton,onClick:n,children:[x(vy,{className:"mr-4px mt--2px"}),"撤销"]})})]})}const SL=f.memo(function({item:t,cardData:n,blockType:r}){const{authorMid:o,authorName:i}=n,a=r==="blacklist"?"已拉黑":"已加入过滤列表",l=tt(()=>r==="blacklist"?u():d()),u=tt(async()=>{if(!o)return;await aq.remove(o)&&_t.success(`已移出黑名单: ${i}`);}),d=tt(()=>{if(!o)return;const m=st.filter.byAuthor.keywords.filter(p=>nS(p).mid===o);Wa("filter.byAuthor.keywords",{remove:m}),_t.success(`已移出过滤列表: ${i}`);});return H("div",{className:bi.wrapper,children:[x("div",{className:bi.cover,children:H("div",{className:bi.coverInner,children:[x(D3,{className:"size-32px"}),x("div",{className:bi.dislikeReason,children:a}),H("div",{className:bi.dislikeDesc,children:["UP: ",i]})]})}),x(wK,{item:t,cardData:n,onClick:l})]})}),GNe=X("pointer-events-none absolute inset-0 overflow-hidden",PCe,"rounded-b-none rounded-t-gate-video-card"),KNe=f.memo(function({videoDuration:t,pvideo:n,progress:r,t:o,className:i,ref:a,...l}){const u=f.useRef(null),[d,m]=f.useState(()=>({width:0,height:0}));io(()=>{const S=u.current?.getBoundingClientRect();S&&m({width:S.width,height:S.height});});const p=f.useMemo(()=>{function S(){return typeof r=="number"&&!Number.isNaN(r)?r:0}return bf(S()??0,0,1)},[r]),g=f.useMemo(()=>o??Math.floor((t||0)*p),[o,t,p]),b=tt(()=>g);f.useImperativeHandle(a,()=>({getT:b}),[b]);const y={progress:p,t:g,pvideo:n,elWidth:d.width,elHeight:d.height};return x("div",{...l,ref:u,className:X(GNe,i),children:!!(n&&d.width&&d.height&&p)&&x(YNe,{...y})})}),YNe=f.memo(function({t,progress:n,pvideo:r,elWidth:o,elHeight:i}){let a=f.useMemo(()=>XNe(r?.index||[],t)??0,[r,t]);const{img_x_len:l,img_y_len:u,img_x_size:d,img_y_size:m}=r,p=u*l;a=a+1;const g=Math.floor(a/p),b=a-g*p,y=r.image?.[g]||"",S=Math.floor(b/l)+1,C=b-(S-1)*l,w=o*l,$=i*u,E=(S-1)*i,T=(C-1)*o;return x("div",{className:"size-full",style:{backgroundColor:"black",backgroundImage:`url(${y})`,backgroundPosition:`-${T}px -${E}px`,backgroundSize:`${w}px ${$}px`},children:x($K,{progress:n})})});function $K({progress:e,className:t,...n}){return x("div",{...n,"data-role":"track",className:X("absolute inset-x-0 bottom-0 h-2px bg-gate-bg-lv1",t),children:x("div",{"data-role":"bar",className:"h-full bg-gate-primary",style:{width:`${e*100}%`}})})}function XNe(e,t){let n=QNe(e,t);if(n!==-1)return n;t>e.at(-1)&&(n=e.length-1);}function QNe(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const l=Math.floor((n+r)/2),u=e[l];if(t===u)return l;u<t?(n=l+1,o=l):r=l-1;}if(o===-1)return  -1;const i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const ZNe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 256 256",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"currentColor",d:"M248 80a28 28 0 1 0-51.12 15.77l-26.79 33L146 73.4a28 28 0 1 0-36.06 0l-24.03 55.34l-26.79-33a28 28 0 1 0-26.6 12L47 194.63A16 16 0 0 0 62.78 208h130.44A16 16 0 0 0 209 194.63l14.47-86.85A28 28 0 0 0 248 80M128 40a12 12 0 1 1-12 12a12 12 0 0 1 12-12M24 80a12 12 0 1 1 12 12a12 12 0 0 1-12-12m196 12a12 12 0 1 1 12-12a12 12 0 0 1-12 12"})]}),JNe=f.forwardRef(ZNe),ePe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("circle",{cx:12,cy:24,r:3,fill:"currentColor"}),x("circle",{cx:24,cy:24,r:3,fill:"currentColor"}),x("circle",{cx:36,cy:24,r:3,fill:"currentColor"})]}),tPe=f.forwardRef(ePe),EK="pointer-events-none h-19px flex-center whitespace-nowrap rounded-2px bg-gate-primary px-4px text-center text-12px color-white";function MK({children:e,className:t}){return x("span",{className:ur(EK,t),children:e})}function RK(e){const{topMarkIcon:t,topMarkText:n}=e;return !!(t||n)}function nPe({cardData:e}){if(!RK(e))return;const{topMarkIcon:t,topMarkText:n}=e,r=!!t;return H(MK,{className:X("min-w-32px",r?"pl-4px pr-6px":"px-4px"),children:[r&&x(dK,{src:`${t}@!web-dynamic`,className:"h-16px w-16px"}),n]})}function rPe(e){return ["#FFD700","#C0C0C0","#B36700"][e-1]??xa}function oPe({item:e}){const t=e.rankingNo<=3,n=x(JNe,{});let r=false,o=[];zA(e)&&e.others?.length&&(r=true,o=e.others);const i=`「${e.rankTab.name}」排行第 ${e.rankingNo} 名`,{triggerRef:a,tooltipEl:l}=Q1({inlinePosition:"left",tooltip:i,tooltipClassName:"left--2px"}),u="relative size-28px flex-center whitespace-nowrap rounded-full text-14px color-white",d=f.useMemo(()=>({backgroundColor:rPe(e.rankingNo)}),[e.rankingNo]),m=jq();return H(_e,{children:[H("div",{ref:a,className:u,style:d,children:[t?n:x("span",{style:{marginLeft:-1},children:e.rankingNo}),l]}),r&&x(ic,{placement:"bottomLeft",menu:{items:[{type:"group",label:"「其他上榜视频」",children:o.map(p=>({key:p.bvid,label:p.title,onClick(){const g=new URL(`/video/${p.bvid}`,location.href).href;m?mi(g):location.href=g;}}))}]},children:x("div",{className:u,style:d,children:x(tPe,{})})})]})}function iPe(){return H(MK,{children:[x(rA,{active:true,className:"size-14px"}),"直播中"]})}function aPe({item:e}){const t=f.useMemo(()=>Kd(e)?"动态":tq(e)?"稍后再看":Eu(e)?e.from==="fav-folder"?"收藏夹":"合集":e.api,[e]),n=f.useMemo(()=>{if(Eu(e)&&e.from==="fav-collection")return e.volTooltip},[e]),{triggerRef:r,tooltipEl:o}=Q1({inlinePosition:"left",tooltip:n});return H("span",{ref:r,className:ur(EK,"pointer-events-auto"),children:[t,o]})}function sPe({vol:e,volTooltip:t}){const{triggerRef:n,tooltipEl:r}=Q1({inlinePosition:"left",tooltip:t,tooltipClassName:"left--2px"});return H("div",{ref:n,className:"relative h-24px min-w-24px flex-center whitespace-nowrap rounded-8px bg-gate-primary px-6px text-center text-14px color-white",children:[e,r]})}const lPe=x(eA,{className:"size-16px"});function cPe({item:e,authed:t,actionButtonVisible:n}){const r=Xl(e)&&!!e.three_point?.dislike_reasons?.length||Ql(e),o=tt(async a=>{if(a?.preventDefault(),a?.stopPropagation(),!r)return _t.error("当前视频不支持提交「我不想看」");const l=y6(e);if(l&&lS.has(l))return;let u;if(Xl(e)){if(!t)return fn("请先获取 access_key !");u=(e.three_point?.dislike_reasons||[]).map(d=>({platform:"app",...d}));}else Ql(e)?u=b6e:im(e);await x6e(u,d=>CNe(e,d));});return {dislikeButtonEl:r&&x(Fa,{visible:n,inlinePosition:"left",icon:lPe,tooltip:"我不想看",onClick:o}),hasDislikeEntry:r,onTriggerDislike:o}}const uPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("circle",{cx:12,cy:12,r:10,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})]}),dPe=f.forwardRef(uPe),fPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[x("circle",{cx:12,cy:12,r:10}),x("path",{d:"m9 12l2 2l4-4"})]})]}),mPe=f.forwardRef(fPe),hPe=dPe,pPe=mPe;function gPe({multiSelecting:e,multiSelected:t,uniqId:n}){const r=tt(l=>{const{selectedIdSet:u,multiSelecting:d}=Hn;if(!d)return;l?.preventDefault(),l?.stopPropagation();const m=!!l?.shiftKey;Hn.shiftMultiSelectAnchorUniqId??=n,m||(Hn.shiftMultiSelectAnchorUniqId=n),m?eRe(Hn.shiftMultiSelectAnchorUniqId,n):t?u.delete(n):u.add(n);}),o=e&&x("div",{onClick:r,className:X("absolute inset-0 flex items-center justify-center bg-black/10",ICe)}),a=e&&x(t?pPe:hPe,{onClick:r,className:X("size-30px cursor-pointer text-white [&_g]:fill-inherit",t?"fill-gate-primary":"fill-none")});return {toggleMultiSelect:r,multiSelectBgEl:o,multiSelectEl:a}}function vPe(...e){}function bPe({uniqId:e,recSharedEmitter:t,title:n,active:r,videoDuration:o,tryFetchImagePreviewData:i,imagePreviewDataBox:a,autoPreviewWhenHover:l,videoPreviewWrapperRef:u}){const d=tt(()=>{const B=a.val?.videoshotJson?.data;return !!(B?.index?.length&&B?.image?.length)}),[m,p]=f.useState(false),[g,b]=x9(),[y,S]=x9(),C=tt(()=>g||0),[w,$]=f.useState(false),E=Dl(false),T=Dl(false),R=fM(false),[I,N]=f.useState(void 0),P=B=>{const K=u.current?.getBoundingClientRect();if(!K)return;const{x:J,width:ee}=K,te=B.pageX-window.scrollX-J;N(te/ee);};va("mouseenter",async B=>{t.emit("mouseenter",e),E.set(true),P(B);const K=i(),J=800;let ee;st.useDelayForHover&&(ee=gn(J)),await Promise.all([K,ee].filter(Boolean)),E.val&&(T.set(true),l&&!_.val&&d()&&q(true));},{target:u});const O=tt(()=>{E.set(false),T.set(false);});va("mouseleave",O,{target:u}),bo(t,"mouseenter",B=>{B!==e&&O();}),va("mousemove",B=>{$(true),E.val&&(!T.val||!l)&&P(B),l||k.stop();},{target:u});const _=fM(void 0),L=f.useRef(void 0),k=yPe({startByHoverBox:R,isHoveringBox:E,active:r,mouseMoved:w,idBox:_,autoPreviewWhenHover:l,setAutoPreviewing:p,setPreviewT:S,setPreviewProgress:b,onResume(){L.current?.();}}),W=tt(async()=>{if(!_.val){await i(),d()&&q(false);return}k.togglePaused();}),q=tt(B=>{R.set(B),$(false),k.reset(),k.stop(true),p(true),b(re=>re===void 0?0:re),S(void 0);const K=8e3;let J=performance.now(),ee=0;L.current=()=>{J=performance.now()-C()*K;};function te(re){if(k.shouldStop())return k.stop();if(!k.paused){const ie=performance.now(),ue=ie-J,ne=bf(ue%K/K,0,1);if(b(ne),(!ee||ie-ee>=st.autoPreviewUpdateInterval)&&(b(ne),ee=ie,o)){const ce=bf(Math.round(ne*o),0,o);S(ce);}}_.val=requestAnimationFrame(te);}_.val=requestAnimationFrame(te);}),F=E.state,z=T.state,j=a.state?.videoshotJson?.data,U=!!j?.image?.length&&!!o&&(z||r)&&(l?m:true),Y=f.useRef(null);let Q,D;if(U){const B={videoDuration:o,pvideo:j};l?Q={...B,progress:g,t:y}:Q={...B,progress:I},D=x(KNe,{ref:Y,...Q});}return {onHotkeyPreviewAnimation:W,onStartPreviewAnimation:q,autoPreviewing:m,mouseProgress:I,previewProgress:g,previewT:y,isHovering:F,isHoveringAfterDelay:z,shouldShowPreview:U,previewImageRef:Y,previewImgProps:Q,previewImageEl:D}}function yPe({startByHoverBox:e,isHoveringBox:t,idBox:n,active:r,mouseMoved:o,autoPreviewWhenHover:i,setAutoPreviewing:a,setPreviewT:l,setPreviewProgress:u,onResume:d}){const m=hW(),p=tt(()=>{if(m.current)return  true;if(e.val){if(!t.val)return  true}else if(!r||o)return  true;return  false}),g=tt((S=false)=>{S||vPe("stopAnimation: %o",{autoPreviewWhenHover:i,unmounted:m.current,isHovering:t.val,active:r,mouseMoved:o}),n.val&&cancelAnimationFrame(n.val),n.val=void 0,a(false),u(void 0),l(void 0),y.reset();}),b=f.useRef(false),y=f.useMemo(()=>({shouldStop:p,stop:g,get paused(){return b.current},set paused(S){b.current=S;},togglePaused(){const S=this.paused;this.paused=!this.paused,S&&d?.();},reset(){this.paused=false;}}),[p,g,b,d]);return y}function SPe({item:e,cardData:t,onRemoveCurrent:n,actionButtonVisible:r,watchlaterAdded:o}){const{avid:i,bvid:a}=t,l=f.useMemo(()=>Xl(e)||Ql(e)?e.goto==="av":e.api===Qe.Rank?t.goto==="av":e.api===Qe.Live?false:!!a,[e,t]),u=ga((C,w)=>C(w),{manual:true}),d=xA(o),m=tt(async(C,w)=>{if(C?.preventDefault(),C?.stopPropagation(),u.loading)return {success:false};if(!i||!a)return {success:false};w??=o?Q6e:mM;const $=await u.runAsync(w,i),E=w===mM;return $&&(E?Ru.bvidSet.add(a):Ru.bvidSet.delete(a),e.api===Qe.Watchlater?E||(await gn(250),n?.(e,t)):_t.success(`已${E?"添加":"移除"}稍后再看`)),{success:$,targetState:E}}),p=18,g=u.loading?x(Jj,{className:"size-16px"}):e.api===Qe.Watchlater?o?x(Kf,{className:"size-16px"}):x(Pp,{size:p,useAnimation:d===true}):o?x(Pp,{size:p,useAnimation:d===false}):x(oA,{className:"size-20px"}),b=e.api===Qe.Watchlater?o?"已添加稍后再看, 点击移除":"已移除稍后再看":o?"已添加稍后再看, 点击移除":"稍后再看",y=l&&x(Fa,{visible:r,inlinePosition:"right",icon:g,tooltip:b,onClick:m});return {context:f.useMemo(()=>({watchlaterAdded:o,hasWatchlaterEntry:l,onToggleWatchlater:m}),[m,o,l]),watchlaterButtonEl:y}}const CL=f.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,emitter:l,recSharedEmitter:u,tab:d,baseCss:m,gridDisplayMode:p,multiSelecting:g,...b}){o=o??!r;const y=f.useMemo(()=>r&&Bu(r),[r]),S=f.useMemo(()=>r?y6(r):void 0,[r]),C=z6e(S),w=E3e(y?.authorMid),$=U6e(y?.authorMid),E=qTe(y?.bvid),T=YMe(r?.uniqId),R=!!C,I=w,N=$,O=mNe(R||I||N),_=X("bili-video-card",_l,{[PB]:i},"relative",n),L=[m,O,DA(p)&&_3.card,g&&T&&fNe];return x("div",{"data-bvid":y?.bvid,style:t,className:_,css:L,...b,children:o?x(WNe,{loading:o}):r&&y&&(R?x(qNe,{item:r,cardData:y,emitter:l,dislikedReason:C}):I?x(SL,{item:r,cardData:y,blockType:"blacklist"}):N?x(SL,{item:r,cardData:y,blockType:"filter"}):x(xPe,{item:r,cardData:y,active:i,emitter:l,recSharedEmitter:u,tab:d,onRemoveCurrent:a,watchlaterAdded:E,gridDisplayMode:p,multiSelecting:g,multiSelected:T}))})});var CPe={name:"vpmszz",styles:"background-color:unset;position:static;height:100%"};const xPe=f.memo(function({item:t,cardData:n,tab:r,active:o=false,onRemoveCurrent:i,emitter:a=tU,recSharedEmitter:l=DG,watchlaterAdded:u,gridDisplayMode:d,multiSelecting:m=false,multiSelected:p}){const{accessKey:g,style:{videoCard:{useBorder:b,useBorderOnlyOnHover:y}},videoCard:{actions:S,imgPreview:{enabled:C,autoPreviewWhenHover:w,disableWhenMultiSelecting:$}},spaceUpload:{showVol:E},__internalEnableCopyBvidInfo:T}=Ut(),{avid:R,bvid:I,cid:N,goto:P,href:O,title:_,cover:L,duration:k,durationStr:W,recommendReason:q,statItems:F,authorName:z,authorMid:j}=n,U=!!g,Y=P==="av",Q=["av","bangumi","picture","live","opus"];Q.includes(P)||Xo(`none (${Q.join(",")}) goto type %s`,P,t);const D=DA(d),B=f.useMemo(()=>jA({item:t})?.aspectRatio,[t]),K=f.useMemo(()=>!(!I||!I.startsWith("BV")||P!=="av"),[I,P]),J=!(!C||$&&m),ee=Dl(void 0),te=H1(async()=>{if(!K||!J||J6e(ee.val))return;const et=await Z6e(I);ee.set(et),Vn(et.videoshotJson)||re(et.videoshotJson);}),re=Bq(et=>{ca.warning({title:`${et.message} (code: ${et.code})`,description:`${_} (${I})`,duration:2});},3,false),ie=f.useRef(null),ue=f.useRef(null),ne=b&&!D?ie:ue,{onStartPreviewAnimation:ce,onHotkeyPreviewAnimation:fe,isHovering:se,previewImageEl:Me}=bPe({uniqId:t.uniqId,recSharedEmitter:l,title:_,active:o,videoDuration:k,tryFetchImagePreviewData:te,imagePreviewDataBox:ee,autoPreviewWhenHover:w,videoPreviewWrapperRef:ne});Is(()=>{o&&(S6(`${RM}_activeItem`,t),st.videoCard.imgPreview.autoPreviewWhenKeyboardSelect&&te().then(()=>{ce(false);}));},[o]);const ae=o||se,{watchlaterButtonEl:pe,context:be}=SPe({item:t,cardData:n,onRemoveCurrent:i,actionButtonVisible:ae,watchlaterAdded:u}),{dislikeButtonEl:xe,hasDislikeEntry:Te,onTriggerDislike:Ke}=cPe({item:t,authed:U,actionButtonVisible:ae}),{largePreviewActionButtonEl:Ae,largePreviewEl:de,shouldUseLargePreviewCurrentTime:ve,getLargePreviewCurrentTime:Ne,largePreviewVisible:He,hideLargePreview:We}=gK({shouldFetchPreviewData:K,actionButtonVisible:ae,hasLargePreviewActionButton:S.showLargePreview,bvid:I,cid:N,uniqId:t.uniqId,recSharedEmitter:l,cardTarget:ie,aspectRatioFromItem:B,cover:L,videoCardAsTriggerRef:ne}),je=$Ne(t,R),{onOpenWithMode:nt,handleVideoLinkClick:ot,consistentOpenMenus:Ge,conditionalOpenMenus:Oe,openInPopupActionButtonEl:qe,onOpenInPopup:Je}=BMe({href:O,item:t,cardData:n,actionButtonVisible:ae,hasOpenInPopupActionButton:S.openInPipWindow,getLargePreviewCurrentTime:Ne,hideLargePreview:We,shouldUseLargePreviewCurrentTime:ve}),{multiSelectBgEl:Le,multiSelectEl:Ie,toggleMultiSelect:ct}=gPe({multiSelecting:m,multiSelected:p,uniqId:t.uniqId}),Ot=tt(et=>{b&&(et.target.closest(".ant-dropdown-menu")||et.target.closest("a")||nt());});bo(a,"open",()=>nt()),bo(a,"open-in-popup",Je),bo(a,"open-with-large-preview-visible",()=>{He&&(We(),nt());}),bo(a,"toggle-watch-later",()=>{be.onToggleWatchlater();}),bo(a,"trigger-dislike",()=>{Ke();}),bo(a,"start-preview-animation",ce),bo(a,"hotkey-preview-animation",fe);const pt=INe({item:t,cardData:n,tab:r,watchlaterContext:be,favContext:je,hasDislikeEntry:Te,onTriggerDislike:Ke,onRemoveCurrent:i,consistentOpenMenus:Ge,conditionalOpenMenus:Oe,multiSelecting:m}),Lt=tt(et=>{et&&je.updateFavFolderNames();}),xt=RK(n),Rt=nq(t),ut=Bp(t)&&t.live_status===za.Streaming||Ql(t)&&t.goto===ws.Live,ft=r===rt.AppRecommend&&!Xl(t)&&!Bp(t),vt=Z3(t)&&E||Eu(t)&&!!t.vol&&!ft,ke=T&&I&&x(Fa,{visible:ae,inlinePosition:"right",icon:x(lu,{className:"size-14px"}),tooltip:"复制 BVID 信息",onClick:et=>{et.stopPropagation(),et.preventDefault(),cu(KA(n));}}),Ze=H(_e,{children:[m&&Ie,xe,xt&&x(nPe,{cardData:n}),Rt&&x(oPe,{item:t}),ut&&x(iPe,{}),ft&&x(aPe,{item:t}),vt&&!!t.vol&&x(sPe,{vol:t.vol,volTooltip:Eu(t)?t.volTooltip:void 0})]}),Se=H(_e,{children:[pe,ke,qe,Ae]}),ye=!dL(Ze),Ce=!dL(Se),he=ur("left-top-marks",Fp.topContainer("left"),m&&"gap-x-10px"),De=tq(t)&&t.progress>0?x($K,{progress:t.progress/t.duration,className:X("h-3px",NCe)}):void 0,we=`.${$a} .${_l}`,ze=f.useMemo(()=>[ln(we," &{overflow:hidden;border-radius:",vA,";transition:border-radius 0.2s ease;}",""),!D&&[(o||m||b&&!y)&&ln(we," &{border-bottom-left-radius:0;border-bottom-right-radius:0;}",""),b&&ln(we,":hover &{border-bottom-left-radius:0;border-bottom-right-radius:0;}","")]],[D,o,m,b,y]),Ye=f.useMemo(()=>b&&!y||m?false:!b||b&&y&&!se,[b,y,se,m]),it=Z1(),dt=H("a",{ref:ue,href:O,target:it,className:X(IB,"relative isolate block overflow-hidden",Ye&&"ring-1px ring-gate-border"),css:[ze,D&&_3.cover,"",""],onClick:ot,onContextMenu:et=>{Nh(et)||et.preventDefault();},children:[x("div",{className:"bili-video-card__image",style:{aspectRatio:"16 / 9"},children:L?x("div",{className:"bili-video-card__image--wrap",children:x(dK,{src:`${L}@672w_378h_1c_!web-home-common-cover`,className:"bili-video-card__cover v-img",style:{borderRadius:0},imgProps:{alt:_}})}):x("div",{className:"size-full flex-center",children:x("div",{className:"line-clamp-3 my-auto px-4 py-2 text-center text-1.2em line-height-snug",children:_})})}),H("div",{className:"bili-video-card__stats",css:ln(we," &{pointer-events:none;border-radius:0;}",""),children:[x("div",{className:"bili-video-card__stats--left gap-x-4px xl:gap-x-8px",children:F.map(({field:et,value:Xe})=>x(aMe,{field:et,value:Xe},et))}),x("span",{className:"bili-video-card__stats__duration relative top-0.5px",children:Y&&W})]}),De,J&&Me,Le,ye&&x("div",{className:he,children:Ze}),Ce&&x("div",{className:X("right-actions",Fp.topContainer("right")),children:Se})]}),$t=x(xK,{item:t,cardData:n,gridDisplayMode:d,handleVideoLinkClick:m?ct:ot}),Tt=x(_e,{children:de});function At(et){return x(ic,{trigger:["contextMenu"],onOpenChange:Lt,getPopupContainer:()=>ie.current?.closest(`.${_l}`)??document.body,rootClassName:X(KCe,QX),menu:{items:pt,className:"w-max"},children:et})}function yn(et){return x("div",{className:"bili-video-card__wrap",ref:ie,css:[CPe,D&&_3.cardWrap,"",""],onClick:m?ct:Ot,onContextMenu:Xe=>{b&&Xe.preventDefault();},children:et})}const Un=b&&!D?At(yn(H(_e,{children:[dt,$t]}))):yn(H(_e,{children:[At(dt),$t]}));return H(_e,{children:[Un,Tt]})});var A$={};const wPe=HQ(Iwe);var N$={},xL;function TK(){return xL||(xL=1,(function(e){Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var t=ec();function n(r){var o=(0, t.useRef)(r);return o.current=r,o}e.default=n;})(N$)),N$}var P$={},I$={},O$={},D$={},_$={},wL;function $Pe(){return wL||(wL=1,(function(e){Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var t=false;e.default=t;})(_$)),_$}var $L;function EPe(){return $L||($L=1,(function(e){var t=Ma();Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var n=t(fK()),r=ec(),o=t(TK()),i=C6(),a=t($Pe()),l=function(d){a.default&&((0, i.isFunction)(d)||console.error("useUnmount expected parameter is a function, got ".concat((0, n.default)(d))));var m=(0, o.default)(d);(0, r.useEffect)(function(){return function(){m.current();}},[]);};e.default=l;})(D$)),D$}var L$={},EL;function MPe(){return EL||(EL=1,(function(e){Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;function t(n,r){if(n===r)return  true;for(var o=0;o<n.length;o++)if(!Object.is(n[o],r[o]))return  false;return  true}e.default=t;})(L$)),L$}var ML;function RPe(){return ML||(ML=1,(function(e){var t=Ma();Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var n=ec(),r=t(EPe()),o=t(MPe()),i=x6(),a=function(u){var d=function(p,g,b){var y=(0, n.useRef)(false),S=(0, n.useRef)([]),C=(0, n.useRef)([]),w=(0, n.useRef)(void 0);u(function(){var $,E=Array.isArray(b)?b:[b],T=E.map(function(R){return (0, i.getTargetElement)(R)});if(!y.current){y.current=true,S.current=T,C.current=g,w.current=p();return}(T.length!==S.current.length||!(0, o.default)(S.current,T)||!(0, o.default)(C.current,g))&&(($=w.current)===null||$===void 0||$.call(w),S.current=T,C.current=g,w.current=p());}),(0, r.default)(function(){var $;($=w.current)===null||$===void 0||$.call(w),y.current=false;});};return d};e.default=a;})(O$)),O$}var RL;function TPe(){return RL||(RL=1,(function(e){var t=Ma();Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var n=ec(),r=t(RPe()),o=(0, r.default)(n.useEffect);e.default=o;})(I$)),I$}var bh={},TL;function APe(){if(TL)return bh;TL=1;var e=Ma();Object.defineProperty(bh,"__esModule",{value:true}),bh.depsEqual=void 0;var t=e(dW());return bh.depsEqual=function(r,o){return r===void 0&&(r=[]),o===void 0&&(o=[]),(0, t.default)(r,o)},bh}var AL;function NPe(){return AL||(AL=1,(function(e){var t=Ma();Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var n=ec(),r=t(TPe()),o=APe(),i=function(l,u,d){var m=(0, n.useRef)(void 0),p=(0, n.useRef)(0);(0, o.depsEqual)(u,m.current)||(p.current+=1),m.current=u,(0, r.default)(l,[p.current],d);};e.default=i;})(P$)),P$}var B$={},NL;function PPe(){return NL||(NL=1,(function(e){Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var t=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator?.platform:"");e.default=t;})(B$)),B$}var PL;function IPe(){return PL||(PL=1,(function(e){var t=Ma();Object.defineProperty(e,"__esModule",{value:true}),e.default=void 0;var n=wPe,r=t(TK()),o=C6(),i=x6(),a=t(NPe()),l=t(PPe()),u={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:l.default?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},d={ctrl:function(w){return w.ctrlKey},shift:function(w){return w.shiftKey},alt:function(w){return w.altKey},meta:function(w){return w.type==="keyup"?u.meta.includes(w.keyCode):w.metaKey}};function m(C){return (0, o.isString)(C)||(0, o.isNumber)(C)}function p(C){var w=Object.keys(d).reduce(function($,E){return d[E](C)?$+1:$},0);return [16,17,18,91,92].includes(C.keyCode)?w:w+1}function g(C,w,$){var E,T;if(!C.key)return  false;if((0, o.isNumber)(w))return C.keyCode===w?w:false;var R=w.split("."),I=0;try{for(var N=(0,n.__values)(R),P=N.next();!P.done;P=N.next()){var O=P.value,_=d[O],L=u[O.toLowerCase()];(_&&_(C)||L&&L===C.keyCode)&&I++;}}catch(k){E={error:k};}finally{try{P&&!P.done&&(T=N.return)&&T.call(N);}finally{if(E)throw E.error}}return $?I===R.length&&p(C)===R.length?w:false:I===R.length?w:false}function b(C,w){return (0, o.isFunction)(C)?C:m(C)?function($){return g($,C,w)}:Array.isArray(C)?function($){return C.find(function(E){return g($,E,w)})}:function(){return !!C}}var y=["keydown"];function S(C,w,$){var E=$||{},T=E.events,R=T===void 0?y:T,I=E.target,N=E.exactMatch,P=N===void 0?false:N,O=E.useCapture,_=O===void 0?false:O,L=(0, r.default)(w),k=(0, r.default)(C);(0, a.default)(function(){var W,q,F,z=(0, i.getTargetElement)(I,window);if(z){var j=function(B){var K,J=B,ee=b(k.current,P),te=ee(J),re=m(te)?te:J.key;if(te)return (K=L.current)===null||K===void 0?void 0:K.call(L,J,re)};try{for(var U=(0,n.__values)(R),Y=U.next();!Y.done;Y=U.next()){var Q=Y.value;(F=z?.addEventListener)===null||F===void 0||F.call(z,Q,j,_);}}catch(D){W={error:D};}finally{try{Y&&!Y.done&&(q=U.return)&&q.call(U);}finally{if(W)throw W.error}}return function(){var D,B,K;try{for(var J=(0,n.__values)(R),ee=J.next();!ee.done;ee=J.next()){var te=ee.value;(K=z?.removeEventListener)===null||K===void 0||K.call(z,te,j,_);}}catch(re){D={error:re};}finally{try{ee&&!ee.done&&(B=J.return)&&B.call(J);}finally{if(D)throw D.error}}}}},[R],I);}e.default=S;})(A$)),A$}var OPe=IPe();const DPe=Do(OPe);function _Pe({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,gridRef:o,getScrollerRect:i,changeScrollY:a,videoCardEmitters:l,activeLargePreviewItemIndex:u}){const[d,m]=f.useState(void 0),p=tt(()=>!(!e||Us())),g=tt(()=>{if(typeof d!="number"||!o.current)return  false;const N=i(),P=o.current.querySelector(`.${_l}.${PB}`)?.getBoundingClientRect();return !(!N||!P||P.top-N.top<-(N.height+P.height)||P.top-N.top>N.height*2+P.height)});function b(N){const P=R(d),O=P.getBoundingClientRect().left,_=q=>Math.abs(O-q)<1;{const q=AK(o.current),F=N==="down"?q:-q,z=R(d+F);if(z){const j=z.getBoundingClientRect().left;if(_(j))return F}}let L=0,k=P;const W=()=>N==="down"?k.nextElementSibling:k.previousElementSibling;for(;W();){if(k=W(),!k.classList.contains(_l))continue;N==="down"?L++:L--;const q=k.getBoundingClientRect().left;if(_(q))return L}return 0}const y=N=>P=>{if(!p())return;P?.preventDefault();let O;if(g()){const _=typeof N=="number"?N:b(N);O=d+_;}else O=$();if(O<n){I(n);return}if(O>r){I(r);return}m(O),I(O);},S=(N,P)=>{DPe(N,(O,_)=>{p()&&P(O,_);},{exactMatch:true});};S("leftarrow",y(-1)),S("rightarrow",y(1)),S("tab",y(1)),S("shift.tab",y(-1)),S("uparrow",y("up")),S("downarrow",y("down"));const C=()=>{p()&&m(void 0);},w=()=>{if(!(!p()||typeof d!="number"))return l[d]};S("esc",C),S("enter",N=>{if(p()){if(typeof d=="number")return N.preventDefault(),l[d]?.emit("open");if(typeof u=="number")return N.preventDefault(),l[u]?.emit("open-with-large-preview-visible")}}),S("x",()=>w()?.emit("open-in-popup")),S("backspace",()=>w()?.emit("trigger-dislike")),S(["s","w"],()=>w()?.emit("toggle-watch-later")),S(["period","p"],()=>w()?.emit("hotkey-preview-animation"));function $(){const N=i();if(!N)return 0;const P=T();for(const[O,_]of P.entries())if(_.getBoundingClientRect().top>=N.top)return O;return 0}const E=`.${_l}`;function T(){return [...o.current?.querySelectorAll(E)||[]]}function R(N){return T()[N]}function I(N){const P=R(N);P?.scrollIntoViewIfNeeded?.(false);const O=i(),_=P.getBoundingClientRect();if(!(!O||!_)){if(_.top<=O.top){const L=-(O.top-_.top+10);a?.({offset:L});return}if(O.bottom-_.bottom<20){const L=20-(O.bottom-_.bottom);a?.({offset:L});return}}}return {activeIndex:d,clearActiveIndex:C}}const LPe=new Map,BPe=new Map;function AK(e,t=true){const{gridDisplayMode:n,useCustomGrid:r,enableForceColumn:o,forceColumnCount:i,cardMinWidth:a}=st.grid;if(n===Hr.List)return 1;if(t&&n===Hr.TwoColumnGrid)return 2;if(r&&o&&i)return i;if(e||=document.querySelector(`.${bM}`),!e)return Xo("getColumnCount(): gridEl not found"),0;const l=r?LPe:BPe,u=new URLSearchParams({width:Math.round(e.clientWidth).toString(),cardMinWidth:r?a.toString():""}).toString();{const p=l.get(u);if(p)return p}const d=window.getComputedStyle(e);if(d.display!=="grid")return Xo('getColumnCount(): gridEl.style.display !== "grid"'),0;const m=d.gridTemplateColumns.split(" ").length;return l.set(u,m),m}const Pb=so.extend("service"),zPe=e=>{if(e.api===Qe.Separator)return e.uniqId;const{bvid:t}=Bu(e);return t||e.uniqId};function hM(e,t){return Zl([...e,...t],zPe)}const IL=e=>e===rt.PcRecommend||e===rt.KeepFollowOnly;async function kPe(e,t,n=5){const{tab:r,service:o,abortSignal:i,firstFetch:a}=t;let l=[],u=true;const d=async m=>{let p=[];if(!jp(r)){p=await o.loadMore(i)??[],u=o.hasMore,p=Ny(p,r),l=hM(l,p);return}let g;if(r===rt.KeepFollowOnly)g=8,Pb("getMinCount: addMore(restCount = %s) times=%s",m,g);else {const b=IL(r)?fu.PAGE_SIZE:af.PAGE_SIZE,S=(()=>{const{enabled:C,byAuthor:w,byTitle:$,minDuration:E,minPlayCount:T,minDanmakuCount:R}=st.filter;return C||w.enabled||$.enabled||E.enabled||T.enabled||R.enabled})()?n:1.2;g=Math.ceil(m*S/b),Pb("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",m,S,b,g);}if(IL(r)){const b=o;a&&await b.preloadPcInitialRecItems(i),await b.preloadTimesFromApiIfNeeded(i,g);}else {const b=o;b.config.addOtherTabContents||await b.preloadTimesFromApiIfNeeded(i,g);}p=await o.loadMore(i)||[],p=Ny(p,r),l=hM(l,p),u=o.hasMore;};for(await d(e);;){if(i?.aborted){Pb("getMinCount: break for abortSignal");break}if(!u){Pb("getMinCount: break for tab=%s hasMore=false",r);break}if(l.filter(p=>p.api!==Qe.Separator).length>=e)break;await d(e-l.length);}return l}const $6=()=>AK()*4;async function FPe(e){let t=$6();return e.tab===rt.DynamicFeed&&await e.service.shouldReduceMinCount()&&(t=1),kPe(t,e,5)}var g0={exports:{}},HPe=g0.exports,OL;function VPe(){return OL||(OL=1,(function(e,t){(function(n,r){e.exports=r();})(HPe,(()=>(()=>{var n={d:(i,a)=>{for(var l in a)n.o(a,l)&&!n.o(i,l)&&Object.defineProperty(i,l,{enumerable:true,get:a[l]});},o:(i,a)=>Object.prototype.hasOwnProperty.call(i,a),r:i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:true});}},r={};n.r(r),n.d(r,{RingBuffer:()=>o});class o{static fromArray(a,l=0){const u=new o(l);return u.fromArray(a,l===0),u}constructor(a){if(this.buffer=[],this.pos=0,a<0)throw new RangeError("Invalid size.");this.size=a;}getSize(){return this.size}getPos(){return this.pos}getBufferLength(){return this.buffer.length}add(...a){a.forEach((l=>{this.buffer[this.pos]=l,this.pos=(this.pos+1)%this.size;}));}get(a){if(a<0&&(a+=this.buffer.length),!(a<0||a>this.buffer.length))return this.buffer.length<this.size?this.buffer[a]:this.buffer[(this.pos+a)%this.size]}getFirst(){return this.get(0)}getLast(){return this.get(-1)}getFirstN(a){return a===0?[]:a<0?this.getLastN(-a):this.toArray().slice(0,a)}getLastN(a){return a===0?[]:a<0?this.getFirstN(-a):this.toArray().slice(-a)}remove(a,l=1){if(a<0&&(a+=this.buffer.length),a<0||a>this.buffer.length)return [];const u=this.toArray(),d=u.splice(a,l);return this.fromArray(u),d}removeFirst(){return this.remove(0)[0]}removeLast(){return this.remove(-1)[0]}toArray(){return this.buffer.slice(this.pos).concat(this.buffer.slice(0,this.pos))}fromArray(a,l=false){if(!Array.isArray(a))throw new TypeError("Input value is not an array.");l&&this.resize(a.length),this.size!==0&&(this.buffer=a.slice(-this.size),this.pos=this.buffer.length%this.size);}clear(){this.buffer=[],this.pos=0;}resize(a){if(a<0)throw new RangeError("The size does not allow negative values.");if(a===0)this.clear();else if(a!==this.size){const l=this.toArray();this.fromArray(l.slice(-a)),this.pos=this.buffer.length%a;}this.size=a;}isFull(){return this.buffer.length===this.size}isEmpty(){return this.buffer.length===0}}return r})()));})(g0)),g0.exports}var jPe=VPe();function UPe(e,t){let n;switch(e){case rt.DynamicFeed:return n=t[rt.DynamicFeed],!fa(n?.config,i6());case rt.Fav:return n=t[rt.Fav],!fa(n?.config,a6());case rt.Hot:return n=t[rt.Hot],n?.subtab!==Go.subtab||n.subtab===hr.Rank&&n.service instanceof Wq&&n.service.rankTab.slug!==wi.slug;case rt.SpaceUpload:return n=t[rt.SpaceUpload],!fa(n?.config,fG());default:return  false}}const WPe=5;function qPe({tab:e,debug:t,fetcher:n,preAction:r,postAction:o,updateViewFromService:i,self:a}){const l=Mi(),{serviceRegistry:u}=l;io(()=>{d("reuse");}),Jf(()=>{a.abortController.abort();});const d=tt(async(p="refresh")=>{if(l.refreshing&&l.refreshingTab===e)if(UPe(e,u))t("refresh(): tab=%s [start], current refreshing, sametab but conditions change, abort existing",e),a.abortController.abort();else {t("refresh() tab=%s [start], current refreshing, prevent same tab refresh()",e);return}else t("refresh(): tab=%s [start]",e);const b=performance.now();l.setStore({refreshing:true,refreshingTab:e}),a.setStore({refreshError:void 0,hasMore:true,items:[],refreshTs:Date.now()});const y=new AbortController,{signal:S}=y;a.abortController=y,await r?.();function C(){l.setStore({refreshing:false,refreshingTab:void 0}),a.setStore({showSkeleton:false});}function w(N){C(),a.setStore({refreshError:N}),console.error(N);}function $(){C(),a.setStore({hasMore:OG(u,e).hasMore});}async function E(N,P){const[O,_]=await pu(()=>n({tab:e,service:N,abortSignal:S,firstFetch:P}));return S.aborted?t("refresh(): tab=%s [aborted], ignoring rest code",e):O?w(O):(a.setStore({items:_??[]}),true)}let T,R;switch(p){case "refresh":break;case "reuse":T=u[e];break;case "back":case "forward":{Ir(jp(e),"only rec tab can perform back/forward");const[N,P]=l.getTabBackForwardStatus(e);if(p==="back"&&!N)throw new Error("cannot go back");if(p==="forward"&&!P)throw new Error("cannot go forward");const O=l.getTabServiceQueueState(e);Ir(O,"state should not be nil");const{len:_,cursor:L}=O,W=L+(p==="back"?-1:1);if(W<0||W>_-1)throw new Error("cannot go back/forward");const q=l.serviceQueueMap[e]?.get(W);Ir(q,"service should not be nil"),T=q,l.setTabServiceQueueState(e,{cursor:W,len:_}),u[e]=q,R=false;break}default:im(p);break}if(T){T.restore();const N=Ny(T.qs.bufferQueue,e).slice(0,$6());a.setStore({items:N});const P=!!await E(T);R??=P&&!!am[e].swr;}else a.setStore({showSkeleton:true}),R=true;if(R){const[N,P]=zl(()=>iAe[e]({existingService:T}));if(N)return w(N);const O=u[e]?void 0:true;if(u[e]=P,i?.(),jp(e)){l.serviceQueueMap[e]||=new jPe.RingBuffer(WPe);const L=l.serviceQueueMap[e];L.add(P);const k=L.getBufferLength();l.setTabServiceQueueState(e,{len:k,cursor:k-1});}if(!await E(P,O))return}$(),await o?.();const I=performance.now()-b;t("refresh(): tab=%s [success] cost %s ms",e,I.toFixed(0));}),{recSharedEmitter:m}=Mi();return bo(m,"refresh",d),{refresh:d}}const GPe=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,H("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,children:[x("path",{d:"M4 24c0 11.046 8.954 20 20 20v0c11.046 0 20-8.954 20-20S35.046 4 24 4"}),x("path",{d:"M36 24c0-6.627-5.373-12-12-12s-12 5.373-12 12s5.373 12 12 12v0"})]})]}),KPe=f.forwardRef(GPe),yh=so.extend("components:RecGrid"),DL="grid-col-span-full";class YPe{store=kn({refreshTs:-1,showSkeleton:false,hasMore:true,refreshError:void 0,items:[]});useStore=()=>yt(this.store);setStore=t=>{const n=["items","refreshError"];for(const r of n)typeof t[r]=="object"&&(t[r]=RB(t[r]));Object.assign(this.store,t);};loadedPage=0;abortController=new AbortController;loadMoreLocker={};isLocked=t=>!!this.loadMoreLocker[t];lock=t=>{this.loadMoreLocker={[t]:true};};unlock=t=>{this.loadMoreLocker[t]=false;};get loadMoreRunning(){return this.isLocked(this.store.refreshTs)}}const NK=f.memo(function({className:t,containerClassName:n,shortcutEnabled:r,tab:o,infiniteScrollUseWindow:i,onScrollToTop:a,scrollerRef:l,ref:u}){const d=Mi(),{serviceRegistry:m,recSharedEmitter:p}=d,{refreshing:g}=d.useStore(),b=k1(()=>new YPe,[]),{useCustomGrid:y,gridDisplayMode:S,enableForceColumn:C,forceColumnCount:w,cardMinWidth:$}=yt(st.grid),{multiSelecting:E}=yt(Hn),T=hW();QMe();const R=tt(()=>{T.current||d.setStore({tabbarView:m[o]?.tabbarView,sidebarView:m[o]?.sidebarView});});io(R);const I=tt(()=>{ue(),R(),a?.();}),N=tt(()=>{ue(),R(),b.loadedPage=1,F();}),{refresh:P}=qPe({tab:o,debug:yh,fetcher:FPe,preAction:I,postAction:N,updateViewFromService:R,self:b});f.useImperativeHandle(u,()=>({refresh:P}),[P]);const{items:O,hasMore:_,refreshError:L,refreshTs:k,showSkeleton:W}=b.useStore();f.useEffect(()=>V6e(O),[O]);const q=f.useRef(void 0);va("visibilitychange",de=>{if(!(document.visibilityState==="visible")){q.current=Date.now();return}d.refreshing||b.loadMoreRunning||o===rt.Watchlater&&q.current&&Date.now()-q.current>co("1h")&&P("reuse");},{target:document});const F=tt(async()=>{if(await gn(bg?100:0),yh("checkShouldLoadMore(): footerInViewRef = %s",ae.current),ae.current)return j()}),z=tt(()=>!(T.current||d.refreshing||b.abortController.signal.aborted||b.loadMoreRunning||b.store.refreshTs<0||b.store.refreshError||!b.store.hasMore)),j=tt(async()=>{if(!z())return;const de=b.store.refreshTs;b.lock(de);let ve=b.store.items,Ne=true,He;try{const We=OG(m,o);let je=await We.loadMore(b.abortController.signal)||[];je=Ny(je,o),ve=hM(ve,je),Ne=We.hasMore;}catch(We){He=We;}if(He)throw b.unlock(de),ca.error({title:"加载失败",description:He.message||He.stack}),He;{const We=b.store.refreshTs;if(de!==We){yh("loadMore: skip update for mismatch refreshTs, %o != %o",de,We),b.unlock(de);return}}b.loadedPage++,yh("loadMore: loadedPage(%s) len(%s -> %s)",b.loadedPage,b.store.items.length,ve.length),b.setStore({hasMore:Ne,items:ve}),b.unlock(de),F();}),U=tt(async()=>{const ve={key:"RecGrid:loadToEnd"+":error",title:"加载全部",duration:15},Ne={title:"加载全部"},He=We=>{throw ca.error({...ve,description:We}),new Error("loadToEnd error",{cause:We})};if(!nG())return He("当前 Tab 不支持加载全部");if(b.store.refreshError)return He("预检查失败: 先前错误");if(!b.store.hasMore)return ca.success({...Ne,description:"没有更多了"});for(;!z();)await gn(500);for(;z();)await j();ca.success({...Ne,description:"已完成"});});bo(p,"load-to-end",U);const Y=O,Q=f.useMemo(()=>Y.filter(de=>de.api!==Qe.Separator),[Y]),D=f.useRef(null),B=tt(()=>{if(i){const de=bu.get()+50;return new DOMRect(0,de,window.innerWidth,window.innerHeight-de)}else return l?.current?.getBoundingClientRect()}),K=f.useMemo(()=>new Map,[k]),J=f.useMemo(()=>Q.map(({uniqId:de})=>{const ve=de;return K.get(ve)||(()=>{const Ne=new Oo;return K.set(ve,Ne),Ne})()}),[Q]),[ee,te]=f.useState(void 0);bo(p,"show-large-preview",te);const re=f.useMemo(()=>{if(ee)return Q.findIndex(de=>de.uniqId===ee)},[Y,ee]),{activeIndex:ie,clearActiveIndex:ue}=_Pe({enabled:r,refresh:P,maxIndex:Q.length-1,gridRef:D,getScrollerRect:B,videoCardEmitters:J,activeLargePreviewItemIndex:re,changeScrollY:i?function({offset:de,absolute:ve}){const Ne=document.documentElement;if(typeof de=="number"){Ne.scrollTop+=de;return}if(typeof ve=="number"){Ne.scrollTop=ve;return}}:void 0}),ne=tt(de=>{const ve=b.store.items;b.setStore({items:de(ve)??ve});}),ce=tt((de,ve,Ne)=>{ne(He=>{const We=He.slice(),je=[];for(const[nt,ot]of de.entries()){const Ge=We.findIndex(qe=>qe.uniqId===ot);if(Ge===-1)continue;We.splice(Ge,1);const Oe=ve?.[nt];Oe&&je.push(Oe),o===rt.Watchlater&&m[o]?.decreaseTotal(),o===rt.Fav&&m[o]?.decreaseTotal();}return !Ne&&je.length&&(je.length<=3?je.forEach(nt=>_t.success(`已移除: ${je.join(", ")}`)):_t.success(`已移除: ${je.length}个视频`)),We});}),fe=tt((de,ve)=>{ne(Ne=>{const He=Ne.findIndex(We=>We.uniqId===de);if(He!==-1){if(ve==="start"){const We=Ne.findIndex(je=>je.api!==Qe.Separator);return Up(Ne,He,We)}else if(ve==="end")return Up(Ne,He,Ne.length-1)}});});bo(p,"remove-cards",de=>ce(...de)),bo(p,"move-card-to",de=>fe(...de));const{ref:se,inView:Me}=L6e({root:i?null:l?.current||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(de){de&&(yh("footerInView change to visible"),zl(()=>ae.current=!0),F());}}),ae=xu(Me),pe=x("div",{ref:se,className:X(DL,"flex items-center justify-center py-30px text-size-120%"),children:!g&&x(_e,{children:_?H(_e,{children:[x(KPe,{className:"mr-10px size-40px animate-spin color-gate-primary"}),"加载中~"]}):x(_e,{children:"没有更多了~"})})}),be=X("min-h-100vh @container-inline-size",n),xe=f.useMemo(()=>{const{videoGrid:de,videoGridBiliFeed4:ve,videoGridCustom:Ne,videoGridAddonCenterEmpty:He,gridTemplateColumnsUsingVarCol:We,gridTemplateColumnsUsingCardMinWidth:je,narrowMode:nt}=d5,ot=y&&!(C&&w)&&S!==Hr.TwoColumnGrid?je:We,Ge=[aZ,de,ot,y?Ne:ve],Oe=(...qe)=>X(Ge,...qe,t);return S===Hr.TwoColumnGrid?{className:Oe(nt)}:(S===Hr.CenterEmptyGrid&&Ge.push(He),y?C&&w?{className:Oe(),style:{"--col":w.toString()}}:{className:Oe(),style:{"--card-min-width":`${$}px`}}:{className:Oe()})},[d5,y,S,C,w,$,t]),Te=pNe(),Ke=({gridChildren:de,gridSiblings:ve}={})=>H("div",{"data-tab":o,className:be,children:[x("div",{"data-tab":o,ref:D,...xe,children:de}),ve]});if(L)return console.error("RecGrid.refresh error:",L.stack||L),Ke({gridSiblings:x(URe,{tab:o,err:L})});if(g&&W){const de=$6();return Ke({gridChildren:Array.from({length:de}).fill(0).map((ve,Ne)=>x(CL,{loading:true,tab:o},Ne))})}const Ae=de=>{if(de.api===Qe.Separator)return x(ql,{className:X(DL,XX),orientation:"horizontal",titlePlacement:"left",children:de.content},de.uniqId);{const ve=Q.findIndex(He=>He.uniqId===de.uniqId),Ne=ve===ie;return x(CL,{baseCss:[Te,gNe(Ne)],tab:o,item:de,active:Ne,onRemoveCurrent:(He,We,je)=>ce([He.uniqId],[We.title],je),emitter:J[ve],recSharedEmitter:p,gridDisplayMode:S,multiSelecting:E},de.uniqId)}};return Ke({gridChildren:H(_e,{children:[Y.map(Ae),pe]})})});function PK({className:e="",style:t,tab:n,refreshHotkeyEnabled:r,ref:o}){r??=true;const{refreshing:i}=Mi().useStore(),a=uo(),l=f.useRef(null),u=tt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(o,()=>({click:u}),[]),ua("r",()=>{Us()||r&&u();},{exactMatch:true});const{watchlaterItemsOrder:d,popularWeeklyUseShuffle:m}=Ut(),{usingShuffle:p}=yt(pn),g=n===rt.AppRecommend||n===rt.PcRecommend||n===rt.KeepFollowOnly||n===rt.Watchlater&&d===So.Shuffle||n===rt.Fav&&p||n===rt.Hot&&Gq(m)?"换一换":"刷新",[b,y]=cCe(),S=tt(C=>{y(b.current,{rotate:[0,360]},{duration:.5,type:"tween"}),a();});return H(lt,{ref:l,style:t,className:X(lU,"[&:disabled]:cursor-wait",e),disabled:i,onClick:S,children:[x(F3e,{ref:b,className:"size-14px"}),g]})}const XPe={name:"x4d4ct",styles:"scrollbar-width:thin;.ant-menu-item-group-title{padding:4px 8px;}.ant-menu-item{margin-block:1px;}ul.ant-menu-item-group-list{font-size:inherit;}"};function QPe(e){const t=yt(Go).subtab;if(e===rt.Fav)return "max-w-300px";if(e===rt.DynamicFeed)return "min-w-200px";if(e===rt.Hot&&t===hr.Rank)return "min-w-130px"}function IK({className:e,style:t,sidebarView:n,tab:r}){const o=WA(r),i=ur("h-fit max-w-250px w-max flex-none overflow-x-hidden overflow-y-auto b-1px b-gate-border rounded-15px b-solid",QPe(r),e);return o&&n&&x("div",{className:i,css:XPe,style:t,children:x(Lo,{theme:{components:{Menu:{itemHeight:30}}},children:n})})}const ZPe=f.memo(function({show:t,onHide:n}){const{grid:{gridDisplayMode:r},modalFeedFullScreen:o,sidebarAlign:i}=Ut(),{usingTwoColumnMode:a}=YW(r),l=!a&&o,u=f.useRef(null),d=f.useMemo(()=>X(l?"b-5px":"b-1px","b-gate-primary b-solid"),[l]),m=tt(()=>{u.current&&(u.current.scrollTop=0);}),{modalSettingsVisible:p}=E6(),g=[t,!p,!lK(),!uK()].every(Boolean),b=LG(true),{tabbarView:y,sidebarView:S}=b.useStore(),{tab:C,direction:w}=eK(),$=()=>H("div",{className:X(Io.modalHeader,"gap-x-15px pr-15px"),children:[H("div",{className:"left flex flex-shrink-1 flex-wrap items-center gap-x-15px gap-y-4px",children:[x(tK,{}),y]}),H("div",{className:"right flex flex-shrink-0 items-center gap-x-8px",children:[r===Hr.TwoColumnGrid?null:x(v6e,{initialOpen:true,children:x(JPe,{})}),x(PK,{refreshHotkeyEnabled:g,tab:C}),x(Eg,{onClick:n,className:"ml-5px"})]})]}),E=X(a&&"bg-black/90%"),I=X("h-[calc(100vh-30px)] max-h-unset w-[calc(100vw-30px)] pr-0",l&&"h-full w-full",a&&KW,d);return x(l6.Provider,{value:b,children:H($g,{show:t,onHide:n,clsModalMask:E,clsModal:I,children:[$(),H("div",{"data-role":"modal-body",className:X("flex flex-1 gap-x-25px overflow-hidden",i===xf.Right&&"flex-row-reverse"),children:[x(IK,{tab:C,sidebarView:S,className:"max-h-full"}),x("div",{className:"h-full flex-1 overflow-y-auto pr-15px",ref:u,children:x(NK,{tab:C,direction:w,shortcutEnabled:g,onScrollToTop:m,infiniteScrollUseWindow:false,scrollerRef:u},C)})]})]})})});function JPe(){return x(_e,{children:x(It,{configPath:"modalFeedFullScreen",label:"全屏",tooltip:"世界清净了~"})})}const zu=kn({modalFeedVisible:false,modalSettingsVisible:false});function E6(){return yt(zu)}function e4e(){zu.modalFeedVisible?OK():t4e();}function t4e(){LK(),zu.modalFeedVisible=true;}function OK(){zu.modalFeedVisible=false;}function n4e(){zu.modalSettingsVisible?DK():M6();}function M6(){LK(),zu.modalSettingsVisible=true;}function DK(){zu.modalSettingsVisible=false;}function _K(){GM.registerMenuCommand?.("⚙️ 设置",M6);}const LK=Rf(function(){const t=document.createElement("div");t.classList.add("modals-container",$a),document.body.appendChild(t),Za.createRoot(t).render(x(Ws,{children:x(r4e,{})}));});function r4e(){const{modalFeedVisible:e,modalSettingsVisible:t}=E6();return H(_e,{children:[x(ZPe,{show:e,onHide:OK}),x(p6e,{show:t,onHide:DK})]})}const Lc=hT({align:"right",top:100},"float-entry"),z$={wrapperInner:"flex flex-col items-center gap-y-8px b-1px b-gate-primary rounded-18px b-solid bg-gate-bg p-4px",buttonIcon:"size-18px"};function o4e(){return x(zW,{children:x(i4e,{})})}function i4e(){const{align:e,top:t}=yt(Lc,{sync:true}),n=f.useMemo(()=>({arrow:false,placement:e==="right"?"left":"right",align:{offset:[10*(e==="right"?-1:1),0]}}),[e]),r=f.useMemo(ERe,[]),{attributes:o,listeners:i,setNodeRef:a,setActivatorNodeRef:l,transform:u}=kW({id:"GateFloatEntry"});$W({onDragEnd(b){if(b.active.id==="GateFloatEntry"){rf.update();const y=d.current?.getBoundingClientRect();if(!y)return;const S=bf(Math.round(y.top),0,window.innerHeight-y.height);let C=Lc.align;(Lc.align==="right"&&y.left<window.innerWidth/4||Lc.align==="left"&&y.right>window.innerWidth/4*3)&&(C=Lc.align==="right"?"left":"right"),uZ("new pos",{align:C,top:S}),Lc.align=C,Lc.top=S,d.current?.animate([{transform:C==="right"?`translateX(-${window.innerWidth-y.right}px)`:`translateX(${y.left}px)`},{transform:"translateX(0)"}],{duration:200,easing:"ease-in-out"});}}});const d=q1(a),m=ur("fixed transition-200 transition-ease-in-out transition-property-right,left",WCe,e==="right"&&"right--30px pr-6px hover:right-0",e==="left"&&"left--30px pl-6px hover:left-0");io(rf.updateThrottled);const{height:p}=rf.use(),g=f.useMemo(()=>bf(t,0,p-150),[t,p]);return x("div",{ref:d,className:m,style:{top:`${g}px`,transform:Ef.Transform.toString(u)},children:H("div",{className:z$.wrapperInner,children:[x(mn,{title:H(_e,{children:[No,": 在新窗口打开"]}),...n,children:x(lt,{className:"icon-only-round-button",href:r,target:"_blank",children:x(Po,{className:z$.buttonIcon})})}),x(mn,{title:H(_e,{children:[No,": 弹窗打开"]}),...n,children:x(lt,{className:"icon-only-round-button",onClick:e4e,children:x(oK,{className:z$.buttonIcon})})}),x(lt,{className:"icon-only-round-button cursor-move",...i,...o,ref:l,children:x(nK,{className:"size-14px"})})]})})}function a4e(e,t,n){const r=tt(t),o=Dl(n);return f.useEffect(()=>{const i=new ResizeObserver(a=>{for(const l of a)if(l.target===e&&l.contentRect){const u=r(l);fa(o.val,u)||o.set(u);}});return i.observe(e),()=>{i.disconnect();}},[e,r]),o.state}function s4e(){const e=f.useRef(null),[t,n]=f.useState(false);return f.useEffect(()=>{const r=Jl(()=>{if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,i=Number.parseInt(getComputedStyle(e.current).top),a=o<=i;n(a);},16);return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const l4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M42 24H6m24-12l12 12l-12 12"})]}),c4e=f.forwardRef(l4e),u4e=({title:e,titleId:t,...n},r)=>H("svg",{viewBox:"0 0 48 48",width:"1.2em",height:"1.2em",ref:r,"aria-labelledby":t,...n,children:[e?x("title",{id:t,children:e}):null,x("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M5.799 24h36m-24 12l-12-12l12-12"})]}),d4e=f.forwardRef(u4e),f4e=so.extend("RecHeader");function m4e({tab:e,leftSlot:t,rightSlot:n,shortcutEnabled:r,ref:o}){const{pureRecommend:i,showBackForwardButtons:a,multiSelect:{showIcon:l},style:{pureRecommend:{useStickyTabbar:u,stickyTabbarShadow:d,useWhiteBackground:m}}}=Ut(),p=uo(),g=f.useMemo(()=>jp(e),[e]),b=Mi(),{refreshing:y}=b.useStore(),[S,C]=b.useTabBackForwardStatus(e),w=b.useTabServiceQueueState(e),$=w?H(_e,{children:[" ","(当前 ",w.cursor+1,"/",w.len,")"]}):void 0;ua(["shift.comma"],q=>{Us()||n4e();},{exactMatch:true,useCapture:true});const[E,T]=s4e(),R=tt(()=>{if(!i)return;const q=E.current?.parentElement;if(!q)return;const F=q.getBoundingClientRect(),z=bu.get();if(F.top<z){const j=ywe(q).top;f4e("[refresh:scroll] rect.top = %s, headerHeight = %s",F.top,z),document.documentElement.scrollTop=j-z+2;}});f.useImperativeHandle(o,()=>({scrollToTop:R}));const I=bu.use(),N=p4e(e),P=gT.use(),O=D1(),_=h4e(),L=(()=>{let q;return P?q=O?"rgba(0, 0, 0, 26%) 0px 2px 10px 1px":"rgba(0, 0, 0, 13%) 0 1px 10px 1px;":q=`0 2px 4px ${O?"rgb(255 255 255 / 5%)":"rgb(0 0 0 / 8%)"}`,ln("box-shadow:",q,";","")})(),k=ur(i&&u&&["sticky  mb-10px b-b-1px b-b-transparent b-b-solid",UCe,T&&["bg-gate-bg","b-b-gate-bg-lv1"]],T&&"sticky-state-on"),W=f.useMemo(()=>{if(!(i&&u))return;const F=[ln("top:",I-1,"px;","")];return d&&T&&F.push(L,_),F},[i,u,d,T,I,L,_]);return x("div",{ref:E,"data-role":"tab-bar-wrapper",className:k,css:W,children:H("div",{"data-role":"tab-bar",className:X(OB,"relative mb-0 h-auto flex flex-row items-center justify-between gap-x-15px px-0 py-8px"),children:[H("div",{"data-class-name":"left",className:"h-full flex flex-wrap items-center gap-x-15px gap-y-8px",children:[x(tK,{className:"flex-none"}),t]}),H("div",{"data-class-name":"right",className:"h-full min-w-180px flex flex-row-reverse flex-wrap items-center justify-right gap-x-8px gap-y-8px",children:[x(PK,{tab:e,refreshHotkeyEnabled:r}),a&&g&&H(_e,{children:[x(mn,{arrow:false,title:H(_e,{children:["前进",$]}),children:x(lt,{className:"icon-only-round-button",disabled:y||!C,onClick:()=>p("forward"),children:x(c4e,{})})}),x(mn,{arrow:false,title:H(_e,{children:["后退",$]}),children:x(lt,{className:"icon-only-round-button",disabled:y||!S,onClick:()=>p("back"),children:x(d4e,{})})})]}),x(mn,{title:"设置",arrow:false,children:H(lt,{onClick:M6,className:"icon-only-round-button",children:[x(m6e,{}),x(tA,{className:"size-14px"})]})}),l&&x(Xq,{iconOnly:true,addCopyActions:true}),N&&x(OA,{style:{marginLeft:5}}),n]})]})})}function h4e(){const{xScrolling:e,bodyWidth:t}=a4e(document.body,n=>{const r=n.contentRect.width,o=!!(r&&Math.round(r)>Math.round(window.innerWidth));return o?{xScrolling:o,bodyWidth:r}:{xScrolling:o}},()=>({xScrolling:false}));return f.useMemo(()=>{if(e){const n=Math.floor(t);return ln("margin-inline:calc((100% - ",n,"px) / 2);padding-inline:calc((",n,"px - 100%) / 2);","")}else {const n=iA||bg?"0px":"20px";return ln("margin-inline:calc((100% - 100vw + ",n,") / 2);padding-inline:calc((100vw - ",n," - 100%) / 2);","")}},[e,t])}function p4e(e){const{accessKey:t}=Ut();return !t&&[rt.AppRecommend,rt.Liked].includes(e)}function g4e(){const{modalFeedVisible:e,modalSettingsVisible:t}=E6();return [e,t,lK(),uK()].every(r=>r===false)}function v4e(){const{grid:{twoColumnModeAlign:e},sidebarAlign:t}=Ut(),{usingTwoColumnMode:n}=XW(),r=g4e(),o=LG(),{tabbarView:i,sidebarView:a}=o.useStore(),{tab:l,direction:u}=eK(),d=f.useRef(null),m=tt(()=>d.current?.scrollToTop()),p=bu.use(),g=f.useMemo(()=>ln("position:sticky;top:",p+55,"px;max-height:calc(100vh - ",p+55+20,"px);",""),[p]);let b,y,S;return b=X("flex gap-x-25px",t===xf.Right&&"flex-row-reverse"),y="flex-1",S=X(n&&[KW,XEe(e,"margin")]),H(l6.Provider,{value:o,children:[x(m4e,{ref:d,tab:l,leftSlot:i,shortcutEnabled:r}),H("div",{className:b,children:[x(IK,{css:g,tab:l,sidebarView:a}),x(NK,{tab:l,direction:u,containerClassName:y,className:S,shortcutEnabled:r,infiniteScrollUseWindow:true,onScrollToTop:m},l)]})]})}const BK="html.bewly-design:not(:has(#i_cecream,#app))";function b4e(){return !!document.querySelector(BK)}function y4e(){return I1(BK,()=>{Xo("unmount for using bewly-design"),qp?.unmount();},{pollTimeout:5e3,warnOnTimeout:false})}let qp;async function S4e(){if(Gh(".adblock-tips"),Gh(".vip-login-tip"),I1("html.gray",t=>t.classList.remove("gray")),_K(),b4e())return Xo("quit for using bewly-design");st.pureRecommend||$Re()||eS()?(await x4e(),y4e()):C4e();}function C4e(){const e=document.createElement("section");e.classList.add($a),document.body.append(e),qp=Za.createRoot(e),qp.render(H(Ws,{children:[x(V1,{antd:true,baseGlobalStyle:true}),x(o4e,{})]}));}async function x4e(){bg&&await gn(500),Gh("#i_cecream .bili-feed4-layout, body > #app .bili-feed4-layout"),Gh(".bili-feed4 .header-channel"),Gh(".palette-button-wrap");const e=document.createElement("div");e.classList.add("bili-feed4-layout","pure-recommend",$a),await Xf(()=>document.querySelector(".bili-feed4 .bili-header"),{interval:20,timeout:2e3}),document.body.append(e);const t=document.createElement("div");e.append(t),qp=Za.createRoot(t),qp.render(H(Ws,{children:[x(V1,{antd:true,baseGlobalStyle:true,homePageGlobalStyle:true}),x(v4e,{}),x(Du.BackTop,{style:{insetInlineEnd:"var(--back-top-right, 24px)"}})]}));}function R6(){$4e(),_K();}const w4e=Rf(()=>{const e=document.createElement("div");document.body.appendChild(e),Za.createRoot(e).render(x(Ws,{children:x(V1,{antd:true,baseGlobalStyle:true})}));});function $4e(){w4e();}function E4e(){try{return globalThis.self!==window.top}catch{return  true}}const T6=new Oo,M4e=Rf(()=>{window.navigation?.addEventListener?.("navigatesuccess",()=>{T6.emit("navigate-success");});});queueMicrotask(M4e);function R4e(){E4e()||(R6(),st.videoCard.videoPreview.addTo.searchPage&&T4e());}function T4e(){const e=VH(()=>{const r=Array.from(document.querySelectorAll(".video-list-item:has(> .bili-video-card),div:has(> .bili-video-card)"));for(const o of r)A4e(o);},1);e(),new MutationObserver(()=>e()).observe(document.body,{childList:true,subtree:true});}const _L=new WeakSet,LL=`${ao}-add-large-preview-processed`;function A4e(e){if(_L.has(e)||e.getAttribute(LL))return;const t=e.querySelector(".bili-watch-later--wrap");if(!t)return;const n=document.createElement("div");t.after(n),_L.add(e),e.setAttribute(LL,"true"),Za.createRoot(n).render(x(Ws,{children:x(N4e,{el:e})}));}function N4e({el:e}){const{bvid:t="",cover:n}=f.useMemo(()=>P4e(e),[e]),r=f.useMemo(()=>e.querySelector(".bili-video-card")??e,[e]),o=f.useMemo(()=>r.querySelector(".bili-video-card__wrap > a"),[e]),i=F1(r),a=f.useRef(o),{largePreviewActionButtonEl:l,largePreviewEl:u}=gK({shouldFetchPreviewData:!!t,hasLargePreviewActionButton:true,actionButtonVisible:i,actionButtonProps:{useMotion:true,motionProps:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:0}},transition:{duration:.2,ease:"linear",delay:.2}}},bvid:t,cid:void 0,uniqId:t,recSharedEmitter:DG,cardTarget:r,cover:n,videoCardAsTriggerRef:a});return H(_e,{children:[x("div",{className:ur(Fp.top("right"),"right-[calc(8px+28px+5px)]"),children:l}),Mo.createPortal(u,r)]})}function P4e(e){let t;{const r=e.querySelector(".bili-video-card__wrap > a")?.href;r&&(t=/^\/video\/(?<bvid>BV\w+)\//i.exec(new URL(r).pathname)?.groups?.bvid);}const n=e.querySelector("picture.v-img.bili-video-card__cover img")?.currentSrc;return {bvid:t,cover:n}}const I4e=`${ao}-${crypto.randomUUID()}`;async function O4e(){if(!mu.mid)return;const e=".h-action",t=".upinfo .operations";await I1([e,t].join(","),n=>{mu.href=location.href,mu.usingNewSpacePage=n.matches(t),zK();const r=document.createElement("span");r.id=I4e,r.classList.add("mr-24px"),n.prepend(r),Za.createRoot(r).render(x(Ws,{children:x(D4e,{})}));},{pollTimeout:1e4,pollInterval:1e3});}const mu=kn({href:location.href,usingNewSpacePage:false,followed:false,get mid(){return _4e(this.href)},get collectionId(){const e=new URL(this.href);{const t=/https:\/\/space.bilibili.com\/(?<mid>\d+)\/lists\/(?<collectionId>\d+)(?:\?type=season)?/,n=this.href.match(t);if(n?.groups?.collectionId&&(e.searchParams.get("type")==="season"||!e.searchParams.get("type")))return Number(n?.groups?.collectionId)}if(/https:\/\/space.bilibili.com\/\d+\/channel\/collectiondetail\?/.test(this.href)){const r=new URL(this.href).searchParams.get("sid")?.trim();if(r)return Number(r)}},get isCollectionPage(){return typeof this.collectionId=="number"},get searchKeyword(){return /https:\/\/space.bilibili.com\/\d+\/search/.test(this.href)?new URLSearchParams(location.search).get("keyword")??void 0:void 0},get isSearching(){return !!this.searchKeyword?.trim()}}),zK=Vs(async()=>{const e=await Xf(()=>{if(Array.from(document.querySelectorAll(".space-follow-btn")).filter(n=>n.textContent?.trim()==="已关注").length>0)return  true},{interval:100,timeout:5e3});mu.followed=!!e;});T6.on("navigate-success",()=>{mu.href=location.href,zK();});function D4e(){const{mid:e,collectionId:t,followed:n,isSearching:r,searchKeyword:o}=yt(mu);if(!e)return;const i="w-34px b-white/33% rounded-full hover:b-gate-primary hover:bg-gate-primary",a="size-17px";let l;{let m=`https://www.bilibili.com/?${Ha.Mid}=${e}`;r&&o&&(m+=`&${Ha.SearchText}=${o}`),l=x(k$,{className:i,href:m,tooltip:`在「${No}」中查看 UP 的投稿`,children:x(gy,{className:a})},"btnSpaceUpload");}let u;if(n){const m=`https://www.bilibili.com/?${gi.Mid}=${e}`;u=x(k$,{className:i,href:m,tooltip:`在「${No}」中查看 UP 的动态`,children:x(py,{className:a})},"btnDynamicFeed");}let d;return typeof t=="number"&&(d=x(k$,{className:i,href:`https://www.bilibili.com/?${Oy.CollectionIdFull}=${t}`,target:"_blank",tooltip:`在「${No}」中查看合集`,children:x(tS,{className:a})},"btnViewCollection")),H("span",{className:"inline-flex items-center gap-x-8px",children:[d,l,u]})}function k$({href:e,children:t,className:n,style:r,tooltip:o,...i}){const{usingNewSpacePage:a}=yt(mu),l=ur("h-34px w-150px flex cursor-pointer items-center justify-center b-1px b-white/20% rounded-6px b-solid bg-white/14% text-14px color-white font-700 transition-duration-300 transition-property-all hover:bg-white/40%",n),u=a?x("a",{...i,href:e,className:l,style:r,children:t}):x("a",{href:e,className:X("h-f-btn",n),style:{width:"auto",paddingInline:"15px",...r},...i,children:t});return o?x(mn,{title:o,children:u}):u}function _4e(e=location.href){const n=new URL(e).pathname.split("/").map(r=>r.trim()).find(Boolean);if(!(!n||!/^\d+$/.test(n)))return n}function L4e(){T6.on("navigate-success",B4e);}function B4e(){const e=new URL(location.href);if(e.hostname!=="space.bilibili.com")return;const t=/^\/(?<mid>\d+)\/lists\?sid=(?<sid>\d+)$/.exec(e.pathname+e.search);if(!t)return;const n=new URL(`/${t.groups?.mid}/lists/${t.groups?.sid}`,location.href).href;location.href=n;}function z4e(){R6(),L4e(),O4e();}function pM(){if(!(typeof unsafeWindow>"u"))return unsafeWindow.player}const v0=so.extend("main:video-play-page");async function k4e(){R6(),F4e(),K4e(),await j4e(),await U4e();}function F4e(){H4e(),V4e(),G4e();}function H4e(){UA&&GM.registerMenuCommand?.("🎦 小窗打开",()=>{kK(),W4e();});}function V4e(){iA&&GM.registerMenuCommand?.("▶️ IINA 打开",()=>{kK(),q4e();});}async function j4e(){const e=new URL(location.href).searchParams.get(Yl.PlayerScreenMode);if(v0("targetMode=%s",e),!(e===Al.WebFullscreen||e===Al.Fullscreen))return;let n;e===Al.WebFullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="网页全屏"]')?.click()),e===Al.Fullscreen&&(n=()=>document.querySelector('[role="button"][aria-label="全屏"]')?.click());const r=()=>document.querySelector("#bilibili-player .bpx-player-container")?.dataset.screen||Al.Normal,o=Date.now()+co("30s");for(;r()!==e&&Date.now()<=o;)v0("current mode: %s",r()),n?.(),await gn(100);v0("handleFullscreen to %s complete",e);}async function U4e(){if(Lq()||!(new URL(location.href).searchParams.get(Yl.ForceAutoPlay)===sA.ON))return;const t=()=>{const r=pM();return !!r&&!r.isPaused()},n=Date.now()+co("30s");for(;Date.now()<=n&&!t();)pM()?.play(),await gn(1e3);v0("handleForceAutoPlay complete, playing = %s",t());}function kK(){const e=pM();e&&!e.isPaused()&&e.pause();}function W4e(){const e=new URL(location.href);e.searchParams.set(Yl.PlayerScreenMode,Al.WebFullscreen);const t=e.href;Vq(t,"");}function q4e(){const e=`iina://open?url=${encodeURIComponent(location.href)}`;window.open(e,"_self");}function G4e(){GM.registerMenuCommand?.("⭐️ 加入收藏",()=>gM());}async function K4e(){if(!st.fav.useCustomFavPicker.onPlayPage||!ZW())return;document.addEventListener("keydown",t=>{t.key!=="e"||Us()||t.target.closest("bili-comments")||(t.stopImmediatePropagation(),t.preventDefault(),gM());},{capture:true}),(await Xf(()=>document.querySelector(".video-fav.video-toolbar-left-item"),{interval:100,timeout:5e3}))?.addEventListener("click",t=>{t.stopImmediatePropagation(),t.preventDefault(),gM();},{capture:true});}async function gM(e){const t=ZW();if(!t)return _t.error("无法解析视频 BVID !");const n=B3e(t);if(e===void 0){const r=await $u.getVideoFavState(n);r&&(e=r.favFolderIds);}await zy(e,async r=>{if(!await b6(n,e,r))return;const i=!!r;return document.querySelector(".video-fav.video-toolbar-left-item")?.classList.toggle("on",i),true});}Yn.extend(Xxe);(function(){if(Ls)return S4e();if(QW)return k4e();if(lZ)return z4e();if(cZ)return R4e()})();

})(UAParser, axios, SparkMD5, localforage, PinyinMatch);