commit 090f9d65bd0bf7c0a5a44390f04557da4e762ccb Author: callmeyan Date: Wed Jan 31 17:45:57 2024 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dcdd80c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/node_modules/ +bin +packages \ No newline at end of file diff --git a/.vs/AIProofread/FileContentIndex/40add294-b370-4dcd-8cb7-77bdc2120c48.vsidx b/.vs/AIProofread/FileContentIndex/40add294-b370-4dcd-8cb7-77bdc2120c48.vsidx new file mode 100644 index 0000000..6764d3a Binary files /dev/null and b/.vs/AIProofread/FileContentIndex/40add294-b370-4dcd-8cb7-77bdc2120c48.vsidx differ diff --git a/.vs/AIProofread/FileContentIndex/7381f770-b290-490d-807f-714cd5369ee4.vsidx b/.vs/AIProofread/FileContentIndex/7381f770-b290-490d-807f-714cd5369ee4.vsidx new file mode 100644 index 0000000..89afa13 Binary files /dev/null and b/.vs/AIProofread/FileContentIndex/7381f770-b290-490d-807f-714cd5369ee4.vsidx differ diff --git a/.vs/AIProofread/v17/.suo b/.vs/AIProofread/v17/.suo new file mode 100644 index 0000000..7e4f892 Binary files /dev/null and b/.vs/AIProofread/v17/.suo differ diff --git a/.vs/WordAddInTest2024/FileContentIndex/1a6c077e-2516-47cf-9d68-69edd75c6a63.vsidx b/.vs/WordAddInTest2024/FileContentIndex/1a6c077e-2516-47cf-9d68-69edd75c6a63.vsidx new file mode 100644 index 0000000..9d6b333 Binary files /dev/null and b/.vs/WordAddInTest2024/FileContentIndex/1a6c077e-2516-47cf-9d68-69edd75c6a63.vsidx differ diff --git a/.vs/WordAddInTest2024/FileContentIndex/2c21c6e4-3758-48b7-8334-6cfd9afb6a43.vsidx b/.vs/WordAddInTest2024/FileContentIndex/2c21c6e4-3758-48b7-8334-6cfd9afb6a43.vsidx new file mode 100644 index 0000000..7988e20 Binary files /dev/null and b/.vs/WordAddInTest2024/FileContentIndex/2c21c6e4-3758-48b7-8334-6cfd9afb6a43.vsidx differ diff --git a/.vs/WordAddInTest2024/FileContentIndex/9232bc83-c13f-4659-94db-1cedd217511a.vsidx b/.vs/WordAddInTest2024/FileContentIndex/9232bc83-c13f-4659-94db-1cedd217511a.vsidx new file mode 100644 index 0000000..3cc5e23 Binary files /dev/null and b/.vs/WordAddInTest2024/FileContentIndex/9232bc83-c13f-4659-94db-1cedd217511a.vsidx differ diff --git a/.vs/WordAddInTest2024/FileContentIndex/be8400fb-cf8a-45d3-9b4d-96b7a407009f.vsidx b/.vs/WordAddInTest2024/FileContentIndex/be8400fb-cf8a-45d3-9b4d-96b7a407009f.vsidx new file mode 100644 index 0000000..3ce3896 Binary files /dev/null and b/.vs/WordAddInTest2024/FileContentIndex/be8400fb-cf8a-45d3-9b4d-96b7a407009f.vsidx differ diff --git a/.vs/WordAddInTest2024/FileContentIndex/c153ef1e-e031-469b-8e49-78ca499ae2fb.vsidx b/.vs/WordAddInTest2024/FileContentIndex/c153ef1e-e031-469b-8e49-78ca499ae2fb.vsidx new file mode 100644 index 0000000..5dd13d3 Binary files /dev/null and b/.vs/WordAddInTest2024/FileContentIndex/c153ef1e-e031-469b-8e49-78ca499ae2fb.vsidx differ diff --git a/AIProofread.sln b/AIProofread.sln new file mode 100644 index 0000000..3a98c0e --- /dev/null +++ b/AIProofread.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34221.43 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AIProofread", "AIProofread\AIProofread.csproj", "{6CE536CB-6154-4FDF-9FFE-23A73B4E84AB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6CE536CB-6154-4FDF-9FFE-23A73B4E84AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6CE536CB-6154-4FDF-9FFE-23A73B4E84AB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6CE536CB-6154-4FDF-9FFE-23A73B4E84AB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6CE536CB-6154-4FDF-9FFE-23A73B4E84AB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8A4F2768-C37C-4A8C-8D20-41B28A58ED66} + EndGlobalSection +EndGlobal diff --git a/AIProofread/AIProofread.csproj b/AIProofread/AIProofread.csproj new file mode 100644 index 0000000..7647305 --- /dev/null +++ b/AIProofread/AIProofread.csproj @@ -0,0 +1,317 @@ + + + + + {BAA0C2D2-18E2-41B9-852F-F413020CAA33};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Debug + AnyCPU + {6CE536CB-6154-4FDF-9FFE-23A73B4E84AB} + Library + false + WordAddInTest2024 + AIProofread + v4.6.2 + VSTO40 + False + + + true + publish\ + + zh-chs + 1.0.0.0 + true + true + 7 + days + WordAddInTest2024 + + + WordAddInTest2024 + + 3 + + + + False + Microsoft .NET Framework 4.6.2 %28x86 和 x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + False + Microsoft Visual Studio 2010 Tools for Office Runtime %28x86 和 x64%29 + true + + + + + Word + + + + true + full + false + bin\Debug\ + false + $(DefineConstants);DEBUG;TRACE + 4 + + + + pdbonly + true + bin\Release\ + false + $(DefineConstants);TRACE + 4 + + + + + + ..\packages\Microsoft.Web.WebView2.1.0.2210.55\lib\net45\Microsoft.Web.WebView2.Core.dll + + + ..\packages\Microsoft.Web.WebView2.1.0.2210.55\lib\net45\Microsoft.Web.WebView2.WinForms.dll + + + ..\packages\Microsoft.Web.WebView2.1.0.2210.55\lib\net45\Microsoft.Web.WebView2.Wpf.dll + + + + + + + + + + + + + + False + + + False + + + False + + + False + + + False + + + + + True + + + + + False + true + + + False + true + + + False + + + + + + + + Form + + + FormLogin.cs + + + UserControl + + + ProofreadMainControl.cs + + + Code + + + FormLogin.cs + + + ProofreadMainControl.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + Ribbon1.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + + + Component + + + Ribbon1.cs + + + + Code + + + ThisAddIn.cs + + + ThisAddIn.Designer.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + true + + + WordAddInTest2024_TemporaryKey.pfx + + + 62DF6B414BD2608A130540A801F32D12E0199A99 + + + + + + + + + + + + + + + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + \ No newline at end of file diff --git a/AIProofread/AIProofread.csproj.user b/AIProofread/AIProofread.csproj.user new file mode 100644 index 0000000..184c120 --- /dev/null +++ b/AIProofread/AIProofread.csproj.user @@ -0,0 +1,8 @@ + + + + publish\ + + + + \ No newline at end of file diff --git a/AIProofread/Bridge.cs b/AIProofread/Bridge.cs new file mode 100644 index 0000000..711c9a5 --- /dev/null +++ b/AIProofread/Bridge.cs @@ -0,0 +1,36 @@ +using Microsoft.Web.WebView2.Core; +using Microsoft.Web.WebView2.WinForms; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace WordAddInTest2024 +{ + public class Bridge + { + public static Bridge bridge = new Bridge(); + + private static Dictionary webViewDict = new Dictionary(); + + + public async static void InitWebEnvAsync(string name, WebView2 webView) + { + webView.Name = name; + if (webViewDict.ContainsKey(webView.Name)) + { + webViewDict[name] = webView; + } + else + { + webViewDict.Add(name,webView); + } + + // 禁用web安全,允许跨域 否则需要web编译为umd加载模式 + var ops = new CoreWebView2EnvironmentOptions("--disable-web-security"); + var env = await CoreWebView2Environment.CreateAsync(null, null, ops); + await webView.EnsureCoreWebView2Async(env); + // 添加 js与客户端代理 + webView.CoreWebView2.AddHostObjectToScript("bridge", bridge); + } + } +} diff --git a/AIProofread/Config.cs b/AIProofread/Config.cs new file mode 100644 index 0000000..49fec21 --- /dev/null +++ b/AIProofread/Config.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WordAddInTest2024 +{ + public class Config + { +#if DEBUG + /// + /// 网页访问地址 + /// + public static readonly string WEB_PATH = "http://localhost:5173/"; +#else + public static readonly string WEB_PATH = "dist/index.html"; +#endif + /// + /// 词库地址 + /// + public static readonly string LEXICON_PATH = "https://ksrm.gachafun.com/lexicon"; + + public static string WebPath(string path) + { + return WEB_PATH + path; + } + } +} diff --git a/AIProofread/Controls/FormLogin.Designer.cs b/AIProofread/Controls/FormLogin.Designer.cs new file mode 100644 index 0000000..1fc0c69 --- /dev/null +++ b/AIProofread/Controls/FormLogin.Designer.cs @@ -0,0 +1,70 @@ +namespace WordAddInTest2024.Controls +{ + partial class FormLogin + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.web = new Microsoft.Web.WebView2.WinForms.WebView2(); + ((System.ComponentModel.ISupportInitialize)(this.web)).BeginInit(); + this.SuspendLayout(); + // + // web + // + this.web.AllowExternalDrop = true; + this.web.CreationProperties = null; + this.web.DefaultBackgroundColor = System.Drawing.Color.White; + this.web.Dock = System.Windows.Forms.DockStyle.Fill; + this.web.Location = new System.Drawing.Point(0, 0); + this.web.Name = "web"; + this.web.Size = new System.Drawing.Size(430, 457); + this.web.TabIndex = 0; + this.web.ZoomFactor = 1D; + // + // FormLogin + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(434, 461); + this.Controls.Add(this.web); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(450, 500); + this.MinimumSize = new System.Drawing.Size(450, 500); + this.Name = "FormLogin"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "登录"; + this.Load += new System.EventHandler(this.FormLogin_Load); + ((System.ComponentModel.ISupportInitialize)(this.web)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private Microsoft.Web.WebView2.WinForms.WebView2 web; + } +} \ No newline at end of file diff --git a/AIProofread/Controls/FormLogin.cs b/AIProofread/Controls/FormLogin.cs new file mode 100644 index 0000000..a131ed5 --- /dev/null +++ b/AIProofread/Controls/FormLogin.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WordAddInTest2024.Controls +{ + public partial class FormLogin : Form + { + public FormLogin() + { + InitializeComponent(); + Bridge.InitWebEnvAsync("login",web); + } + + + private void FormLogin_Load(object sender, EventArgs e) + { + this.web.Source = new Uri(Config.WebPath("#login")); + } + } +} diff --git a/AIProofread/Controls/FormLogin.resx b/AIProofread/Controls/FormLogin.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/AIProofread/Controls/FormLogin.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AIProofread/Controls/ProofreadMainControl.Designer.cs b/AIProofread/Controls/ProofreadMainControl.Designer.cs new file mode 100644 index 0000000..95b23ef --- /dev/null +++ b/AIProofread/Controls/ProofreadMainControl.Designer.cs @@ -0,0 +1,66 @@ +namespace WordAddInTest2024.Controls +{ + partial class ProofreadMainControl + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.web = new Microsoft.Web.WebView2.WinForms.WebView2(); + ((System.ComponentModel.ISupportInitialize)(this.web)).BeginInit(); + this.SuspendLayout(); + // + // web + // + this.web.AllowExternalDrop = true; + this.web.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.web.CreationProperties = null; + this.web.DefaultBackgroundColor = System.Drawing.Color.White; + this.web.Location = new System.Drawing.Point(0, 0); + this.web.Name = "web"; + this.web.Size = new System.Drawing.Size(435, 828); + this.web.TabIndex = 0; + this.web.ZoomFactor = 1D; + // + // ProofreadMainControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.web); + this.Name = "ProofreadMainControl"; + this.Size = new System.Drawing.Size(435, 828); + this.Load += new System.EventHandler(this.ProofreadMainControl_Load); + ((System.ComponentModel.ISupportInitialize)(this.web)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private Microsoft.Web.WebView2.WinForms.WebView2 web; + } +} diff --git a/AIProofread/Controls/ProofreadMainControl.cs b/AIProofread/Controls/ProofreadMainControl.cs new file mode 100644 index 0000000..df6eaca --- /dev/null +++ b/AIProofread/Controls/ProofreadMainControl.cs @@ -0,0 +1,28 @@ +using Microsoft.Web.WebView2.Core; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WordAddInTest2024.Controls +{ + public partial class ProofreadMainControl : UserControl + { + public ProofreadMainControl() + { + InitializeComponent(); + Bridge.InitWebEnvAsync("main",web); + } + + + private void ProofreadMainControl_Load(object sender, EventArgs e) + { + this.web.Source = new Uri(Config.WebPath("#home")); + } + } +} diff --git a/AIProofread/Controls/ProofreadMainControl.resx b/AIProofread/Controls/ProofreadMainControl.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/AIProofread/Controls/ProofreadMainControl.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AIProofread/Properties/AssemblyInfo.cs b/AIProofread/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..cecb320 --- /dev/null +++ b/AIProofread/Properties/AssemblyInfo.cs @@ -0,0 +1,38 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Security; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("AI校对王")] +[assembly: AssemblyDescription("AI校对王")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("果麦文化")] +[assembly: AssemblyProduct("AI校对王")] +[assembly: AssemblyCopyright("Copyright © GuoMai 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +//将 ComVisible 设置为 false 将使此程序集中的类型 +//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("73e06efe-ce72-4ae3-82a8-51f925a0b5d1")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, +// 方法是按如下所示使用“*”: : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] + diff --git a/AIProofread/Properties/Resources.Designer.cs b/AIProofread/Properties/Resources.Designer.cs new file mode 100644 index 0000000..1925afb --- /dev/null +++ b/AIProofread/Properties/Resources.Designer.cs @@ -0,0 +1,133 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace WordAddInTest2024.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WordAddInTest2024.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap clear { + get { + object obj = ResourceManager.GetObject("clear", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap lexicon { + get { + object obj = ResourceManager.GetObject("lexicon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap logout { + get { + object obj = ResourceManager.GetObject("logout", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap search_proofread { + get { + object obj = ResourceManager.GetObject("search-proofread", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap selection { + get { + object obj = ResourceManager.GetObject("selection", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap setting { + get { + object obj = ResourceManager.GetObject("setting", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap user { + get { + object obj = ResourceManager.GetObject("user", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/AIProofread/Properties/Resources.resx b/AIProofread/Properties/Resources.resx new file mode 100644 index 0000000..2756eb6 --- /dev/null +++ b/AIProofread/Properties/Resources.resx @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\search-proofread.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\logout.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\user.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\clear.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\selection.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\lexicon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/AIProofread/Properties/Settings.Designer.cs b/AIProofread/Properties/Settings.Designer.cs new file mode 100644 index 0000000..a0668ff --- /dev/null +++ b/AIProofread/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WordAddInTest2024.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/AIProofread/Properties/Settings.settings b/AIProofread/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/AIProofread/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/AIProofread/Resources/clear.png b/AIProofread/Resources/clear.png new file mode 100644 index 0000000..417dfa0 Binary files /dev/null and b/AIProofread/Resources/clear.png differ diff --git a/AIProofread/Resources/lexicon.png b/AIProofread/Resources/lexicon.png new file mode 100644 index 0000000..db9eec7 Binary files /dev/null and b/AIProofread/Resources/lexicon.png differ diff --git a/AIProofread/Resources/logout.png b/AIProofread/Resources/logout.png new file mode 100644 index 0000000..c0d9db3 Binary files /dev/null and b/AIProofread/Resources/logout.png differ diff --git a/AIProofread/Resources/search-proofread.png b/AIProofread/Resources/search-proofread.png new file mode 100644 index 0000000..c5a4431 Binary files /dev/null and b/AIProofread/Resources/search-proofread.png differ diff --git a/AIProofread/Resources/selection.png b/AIProofread/Resources/selection.png new file mode 100644 index 0000000..fb33c9e Binary files /dev/null and b/AIProofread/Resources/selection.png differ diff --git a/AIProofread/Resources/setting.png b/AIProofread/Resources/setting.png new file mode 100644 index 0000000..84621c7 Binary files /dev/null and b/AIProofread/Resources/setting.png differ diff --git a/AIProofread/Resources/user.png b/AIProofread/Resources/user.png new file mode 100644 index 0000000..060cbd6 Binary files /dev/null and b/AIProofread/Resources/user.png differ diff --git a/AIProofread/Ribbon1.Designer.cs b/AIProofread/Ribbon1.Designer.cs new file mode 100644 index 0000000..74687d3 --- /dev/null +++ b/AIProofread/Ribbon1.Designer.cs @@ -0,0 +1,228 @@ +namespace WordAddInTest2024 +{ + partial class Ribbon1 : Microsoft.Office.Tools.Ribbon.RibbonBase + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + public Ribbon1() + : base(Globals.Factory.GetRibbonFactory()) + { + InitializeComponent(); + } + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.tabAIProofread = this.Factory.CreateRibbonTab(); + this.group1 = this.Factory.CreateRibbonGroup(); + this.btnProofreadAll = this.Factory.CreateRibbonButton(); + this.btnProofreadSelect = this.Factory.CreateRibbonButton(); + this.btnClear = this.Factory.CreateRibbonButton(); + this.group3 = this.Factory.CreateRibbonGroup(); + this.btnOpenLexicon = this.Factory.CreateRibbonButton(); + this.group2 = this.Factory.CreateRibbonGroup(); + this.btnSetting = this.Factory.CreateRibbonButton(); + this.gpLogin = this.Factory.CreateRibbonGroup(); + this.btnLogin = this.Factory.CreateRibbonButton(); + this.gpLogout = this.Factory.CreateRibbonGroup(); + this.btnLogout = this.Factory.CreateRibbonButton(); + this.label1 = this.Factory.CreateRibbonLabel(); + this.label2 = this.Factory.CreateRibbonLabel(); + this.label3 = this.Factory.CreateRibbonLabel(); + this.tabAIProofread.SuspendLayout(); + this.group1.SuspendLayout(); + this.group3.SuspendLayout(); + this.group2.SuspendLayout(); + this.gpLogin.SuspendLayout(); + this.gpLogout.SuspendLayout(); + this.SuspendLayout(); + // + // tabAIProofread + // + this.tabAIProofread.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office; + this.tabAIProofread.Groups.Add(this.group1); + this.tabAIProofread.Groups.Add(this.group3); + this.tabAIProofread.Groups.Add(this.group2); + this.tabAIProofread.Groups.Add(this.gpLogin); + this.tabAIProofread.Groups.Add(this.gpLogout); + this.tabAIProofread.Label = "AI校对王"; + this.tabAIProofread.Name = "tabAIProofread"; + // + // group1 + // + this.group1.Items.Add(this.btnProofreadAll); + this.group1.Items.Add(this.btnProofreadSelect); + this.group1.Items.Add(this.btnClear); + this.group1.Name = "group1"; + // + // btnProofreadAll + // + this.btnProofreadAll.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; + this.btnProofreadAll.Image = global::WordAddInTest2024.Properties.Resources.search_proofread; + this.btnProofreadAll.Label = "全文校对"; + this.btnProofreadAll.Name = "btnProofreadAll"; + this.btnProofreadAll.ShowImage = true; + // + // btnProofreadSelect + // + this.btnProofreadSelect.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; + this.btnProofreadSelect.Image = global::WordAddInTest2024.Properties.Resources.selection; + this.btnProofreadSelect.Label = "全文校对"; + this.btnProofreadSelect.Name = "btnProofreadSelect"; + this.btnProofreadSelect.ShowImage = true; + // + // btnClear + // + this.btnClear.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; + this.btnClear.Image = global::WordAddInTest2024.Properties.Resources.clear; + this.btnClear.Label = "清除标注"; + this.btnClear.Name = "btnClear"; + this.btnClear.ShowImage = true; + // + // group3 + // + this.group3.Items.Add(this.btnOpenLexicon); + this.group3.Label = "group3"; + this.group3.Name = "group3"; + // + // btnOpenLexicon + // + this.btnOpenLexicon.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; + this.btnOpenLexicon.Image = global::WordAddInTest2024.Properties.Resources.lexicon; + this.btnOpenLexicon.Label = "词库管理"; + this.btnOpenLexicon.Name = "btnOpenLexicon"; + this.btnOpenLexicon.ShowImage = true; + this.btnOpenLexicon.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btnOpenLexicon_Click); + // + // group2 + // + this.group2.Items.Add(this.btnSetting); + this.group2.Label = "group2"; + this.group2.Name = "group2"; + // + // btnSetting + // + this.btnSetting.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; + this.btnSetting.Image = global::WordAddInTest2024.Properties.Resources.setting; + this.btnSetting.Label = "插件设置"; + this.btnSetting.Name = "btnSetting"; + this.btnSetting.ShowImage = true; + // + // gpLogin + // + this.gpLogin.Items.Add(this.btnLogin); + this.gpLogin.Name = "gpLogin"; + // + // btnLogin + // + this.btnLogin.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; + this.btnLogin.Image = global::WordAddInTest2024.Properties.Resources.user; + this.btnLogin.Label = "用户登录"; + this.btnLogin.Name = "btnLogin"; + this.btnLogin.ShowImage = true; + this.btnLogin.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btnLogin_Click); + // + // gpLogout + // + this.gpLogout.Items.Add(this.btnLogout); + this.gpLogout.Items.Add(this.label1); + this.gpLogout.Items.Add(this.label2); + this.gpLogout.Items.Add(this.label3); + this.gpLogout.Name = "gpLogout"; + this.gpLogout.Visible = false; + // + // btnLogout + // + this.btnLogout.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; + this.btnLogout.Image = global::WordAddInTest2024.Properties.Resources.logout; + this.btnLogout.Label = "退出登录"; + this.btnLogout.Name = "btnLogout"; + this.btnLogout.ShowImage = true; + this.btnLogout.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.btnLogout_Click); + // + // label1 + // + this.label1.Label = "18982208214已登录"; + this.label1.Name = "label1"; + // + // label2 + // + this.label2.Label = "企业内测版"; + this.label2.Name = "label2"; + // + // label3 + // + this.label3.Label = "到期时间:2025-12-31"; + this.label3.Name = "label3"; + // + // Ribbon1 + // + this.Name = "Ribbon1"; + this.RibbonType = "Microsoft.Word.Document"; + this.Tabs.Add(this.tabAIProofread); + this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Ribbon1_Load); + this.tabAIProofread.ResumeLayout(false); + this.tabAIProofread.PerformLayout(); + this.group1.ResumeLayout(false); + this.group1.PerformLayout(); + this.group3.ResumeLayout(false); + this.group3.PerformLayout(); + this.group2.ResumeLayout(false); + this.group2.PerformLayout(); + this.gpLogin.ResumeLayout(false); + this.gpLogin.PerformLayout(); + this.gpLogout.ResumeLayout(false); + this.gpLogout.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + internal Microsoft.Office.Tools.Ribbon.RibbonTab tabAIProofread; + internal Microsoft.Office.Tools.Ribbon.RibbonGroup group1; + internal Microsoft.Office.Tools.Ribbon.RibbonGroup gpLogin; + internal Microsoft.Office.Tools.Ribbon.RibbonGroup gpLogout; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btnLogout; + internal Microsoft.Office.Tools.Ribbon.RibbonLabel label1; + internal Microsoft.Office.Tools.Ribbon.RibbonLabel label2; + internal Microsoft.Office.Tools.Ribbon.RibbonLabel label3; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btnLogin; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btnProofreadAll; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btnProofreadSelect; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btnClear; + internal Microsoft.Office.Tools.Ribbon.RibbonGroup group3; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btnOpenLexicon; + internal Microsoft.Office.Tools.Ribbon.RibbonGroup group2; + internal Microsoft.Office.Tools.Ribbon.RibbonButton btnSetting; + } + + partial class ThisRibbonCollection + { + internal Ribbon1 Ribbon1 + { + get { return this.GetRibbon(); } + } + } +} diff --git a/AIProofread/Ribbon1.cs b/AIProofread/Ribbon1.cs new file mode 100644 index 0000000..e12bcf0 --- /dev/null +++ b/AIProofread/Ribbon1.cs @@ -0,0 +1,48 @@ +using Microsoft.Office.Tools.Ribbon; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using WordAddInTest2024.Controls; + +namespace WordAddInTest2024 +{ + public partial class Ribbon1 + { + private static bool IS_LOGIN = false; + private FormLogin formLogin; + private void Ribbon1_Load(object sender, RibbonUIEventArgs e) + { + formLogin = new FormLogin(); + btnLogin.Label = "用户\n登录"; + btnLogout.Label = "退出\n登录"; + } + private void ToggleLogin() + { + if(!IS_LOGIN) + { + if(formLogin == null || formLogin.IsDisposed) { formLogin = new FormLogin(); } + formLogin.Show(); + } + IS_LOGIN = !IS_LOGIN; + gpLogin.Visible = !IS_LOGIN; + gpLogout.Visible = IS_LOGIN; + } + + private void btnLogin_Click(object sender, RibbonControlEventArgs e) + { + ToggleLogin(); + } + + private void btnLogout_Click(object sender, RibbonControlEventArgs e) + { + ToggleLogin(); + } + + private void btnOpenLexicon_Click(object sender, RibbonControlEventArgs e) + { + Process.Start(Config.LEXICON_PATH); + } + } +} diff --git a/AIProofread/Ribbon1.resx b/AIProofread/Ribbon1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/AIProofread/Ribbon1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AIProofread/ThisAddIn.Designer.cs b/AIProofread/ThisAddIn.Designer.cs new file mode 100644 index 0000000..365bc13 --- /dev/null +++ b/AIProofread/ThisAddIn.Designer.cs @@ -0,0 +1,237 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 414 +namespace WordAddInTest2024 { + + + /// + [Microsoft.VisualStudio.Tools.Applications.Runtime.StartupObjectAttribute(0)] + [global::System.Security.Permissions.PermissionSetAttribute(global::System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")] + public sealed partial class ThisAddIn : Microsoft.Office.Tools.AddInBase { + + internal Microsoft.Office.Tools.CustomTaskPaneCollection CustomTaskPanes; + + internal Microsoft.Office.Tools.SmartTagCollection VstoSmartTags; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + private global::System.Object missing = global::System.Type.Missing; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + internal Microsoft.Office.Interop.Word.Application Application; + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + public ThisAddIn(global::Microsoft.Office.Tools.Word.ApplicationFactory factory, global::System.IServiceProvider serviceProvider) : + base(factory, serviceProvider, "AddIn", "ThisAddIn") { + Globals.Factory = factory; + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + protected override void Initialize() { + base.Initialize(); + this.Application = this.GetHostItem(typeof(Microsoft.Office.Interop.Word.Application), "Application"); + Globals.ThisAddIn = this; + global::System.Windows.Forms.Application.EnableVisualStyles(); + this.InitializeCachedData(); + this.InitializeControls(); + this.InitializeComponents(); + this.InitializeData(); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + protected override void FinishInitialization() { + this.InternalStartup(); + this.OnStartup(); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + protected override void InitializeDataBindings() { + this.BeginInitialization(); + this.BindToData(); + this.EndInitialization(); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + private void InitializeCachedData() { + if ((this.DataHost == null)) { + return; + } + if (this.DataHost.IsCacheInitialized) { + this.DataHost.FillCachedData(this); + } + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + private void InitializeData() { + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + private void BindToData() { + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + private void StartCaching(string MemberName) { + this.DataHost.StartCaching(this, MemberName); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + private void StopCaching(string MemberName) { + this.DataHost.StopCaching(this, MemberName); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + private bool IsCached(string MemberName) { + return this.DataHost.IsCached(this, MemberName); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + private void BeginInitialization() { + this.BeginInit(); + this.CustomTaskPanes.BeginInit(); + this.VstoSmartTags.BeginInit(); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + private void EndInitialization() { + this.VstoSmartTags.EndInit(); + this.CustomTaskPanes.EndInit(); + this.EndInit(); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + private void InitializeControls() { + this.CustomTaskPanes = Globals.Factory.CreateCustomTaskPaneCollection(null, null, "CustomTaskPanes", "CustomTaskPanes", this); + this.VstoSmartTags = Globals.Factory.CreateSmartTagCollection(null, null, "VstoSmartTags", "VstoSmartTags", this); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + private void InitializeComponents() { + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + private bool NeedsFill(string MemberName) { + return this.DataHost.NeedsFill(this, MemberName); + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] + protected override void OnShutdown() { + this.VstoSmartTags.Dispose(); + this.CustomTaskPanes.Dispose(); + base.OnShutdown(); + } + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + internal sealed partial class Globals { + + /// + private Globals() { + } + + private static ThisAddIn _ThisAddIn; + + private static global::Microsoft.Office.Tools.Word.ApplicationFactory _factory; + + private static ThisRibbonCollection _ThisRibbonCollection; + + internal static ThisAddIn ThisAddIn { + get { + return _ThisAddIn; + } + set { + if ((_ThisAddIn == null)) { + _ThisAddIn = value; + } + else { + throw new System.NotSupportedException(); + } + } + } + + internal static global::Microsoft.Office.Tools.Word.ApplicationFactory Factory { + get { + return _factory; + } + set { + if ((_factory == null)) { + _factory = value; + } + else { + throw new System.NotSupportedException(); + } + } + } + + internal static ThisRibbonCollection Ribbons { + get { + if ((_ThisRibbonCollection == null)) { + _ThisRibbonCollection = new ThisRibbonCollection(_factory.GetRibbonFactory()); + } + return _ThisRibbonCollection; + } + } + } + + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "17.0.0.0")] + internal sealed partial class ThisRibbonCollection : Microsoft.Office.Tools.Ribbon.RibbonCollectionBase { + + /// + internal ThisRibbonCollection(global::Microsoft.Office.Tools.Ribbon.RibbonFactory factory) : + base(factory) { + } + } +} diff --git a/AIProofread/ThisAddIn.Designer.xml b/AIProofread/ThisAddIn.Designer.xml new file mode 100644 index 0000000..557ff14 --- /dev/null +++ b/AIProofread/ThisAddIn.Designer.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/AIProofread/ThisAddIn.cs b/AIProofread/ThisAddIn.cs new file mode 100644 index 0000000..aa68d6c --- /dev/null +++ b/AIProofread/ThisAddIn.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Xml.Linq; +using Word = Microsoft.Office.Interop.Word; +using Office = Microsoft.Office.Core; +using Microsoft.Office.Tools.Word; + +namespace WordAddInTest2024 +{ + + public partial class ThisAddIn + { + private void ThisAddIn_Startup(object sender, System.EventArgs e) + { + Module1.CreateCTP(); + } + + private void ThisAddIn_Shutdown(object sender, System.EventArgs e) + { + Module1.DisposeCTP(); + } + + #region VSTO generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InternalStartup() + { + this.Startup += new System.EventHandler(ThisAddIn_Startup); + this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown); + } + + #endregion + + + } +} diff --git a/AIProofread/WordAddInTest2024_TemporaryKey.pfx b/AIProofread/WordAddInTest2024_TemporaryKey.pfx new file mode 100644 index 0000000..8537f31 Binary files /dev/null and b/AIProofread/WordAddInTest2024_TemporaryKey.pfx differ diff --git a/AIProofread/core/Module1.cs b/AIProofread/core/Module1.cs new file mode 100644 index 0000000..5402e0f --- /dev/null +++ b/AIProofread/core/Module1.cs @@ -0,0 +1,25 @@ +using System; +using System.Windows.Forms; +using WordAddInTest2024.Controls; +using Office = Microsoft.Office.Core; + +namespace WordAddInTest2024 +{ + public static class Module1 + { + public static ProofreadMainControl uc; + public static Microsoft.Office.Tools.CustomTaskPane ctp; + + public static void CreateCTP() + { + uc = new ProofreadMainControl(); + ctp = Globals.ThisAddIn.CustomTaskPanes.Add(control: uc, title: "AI校对王"); + ctp.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionRight; + ctp.Visible = true; + } + public static void DisposeCTP() + { + ctp.Dispose(); + } + } +} diff --git a/AIProofread/dist/assets/index-5bULWyUE.css b/AIProofread/dist/assets/index-5bULWyUE.css new file mode 100644 index 0000000..c03ac43 --- /dev/null +++ b/AIProofread/dist/assets/index-5bULWyUE.css @@ -0,0 +1 @@ +.login-form{padding:10px}.login-form-button{margin-top:20px} diff --git a/AIProofread/dist/assets/index-OrzmOt5X.js b/AIProofread/dist/assets/index-OrzmOt5X.js new file mode 100644 index 0000000..8f071b4 --- /dev/null +++ b/AIProofread/dist/assets/index-OrzmOt5X.js @@ -0,0 +1,155 @@ +"use strict";const a=require("./react-libs-HP15TLKb.js");var vu=a.reactExports.createContext({});const ei=vu;function al(e){if(Array.isArray(e))return e}function hu(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,s,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function pa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)&&(e=1),e}function Nn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Jt(e){return e.length===1?"0"+e:String(e)}function xu(e,t,r){return{r:Be(e,255)*255,g:Be(t,255)*255,b:Be(r,255)*255}}function ji(e,t,r){e=Be(e,255),t=Be(t,255),r=Be(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,s=0,l=(n+o)/2;if(n===o)s=0,i=0;else{var c=n-o;switch(s=l>.5?c/(2-n-o):c/(n+o),n){case e:i=(t-r)/c+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Eu(e,t,r){var n,o,i;if(e=Be(e,360),t=Be(t,100),r=Be(r,100),t===0)o=r,i=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=zo(l,s,e+1/3),o=zo(l,s,e),i=zo(l,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function ga(e,t,r){e=Be(e,255),t=Be(t,255),r=Be(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,s=n,l=n-o,c=n===0?0:l/n;if(n===o)i=0;else{switch(n){case e:i=(t-r)/l+(t>16,g:(e&65280)>>8,b:e&255}}var va={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Pr(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Ou(e)),typeof e=="object"&&(Et(e.r)&&Et(e.g)&&Et(e.b)?(t=xu(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Et(e.h)&&Et(e.s)&&Et(e.v)?(n=Nn(e.s),o=Nn(e.v),t=Su(e.h,n,o),s=!0,l="hsv"):Et(e.h)&&Et(e.s)&&Et(e.l)&&(n=Nn(e.s),i=Nn(e.l),t=Eu(e.h,n,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=sl(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Pu="[-\\+]?\\d+%?",Ru="[-\\+]?\\d*\\.\\d+%?",Mt="(?:".concat(Ru,")|(?:").concat(Pu,")"),Bo="[\\s|\\(]+(".concat(Mt,")[,|\\s]+(").concat(Mt,")[,|\\s]+(").concat(Mt,")\\s*\\)?"),Vo="[\\s|\\(]+(".concat(Mt,")[,|\\s]+(").concat(Mt,")[,|\\s]+(").concat(Mt,")[,|\\s]+(").concat(Mt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(Mt),rgb:new RegExp("rgb"+Bo),rgba:new RegExp("rgba"+Vo),hsl:new RegExp("hsl"+Bo),hsla:new RegExp("hsla"+Vo),hsv:new RegExp("hsv"+Bo),hsva:new RegExp("hsva"+Vo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ou(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(va[e])e=va[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=st.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=st.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=st.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=st.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=st.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=st.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=st.hex8.exec(e),r?{r:Ge(r[1]),g:Ge(r[2]),b:Ge(r[3]),a:Fi(r[4]),format:t?"name":"hex8"}:(r=st.hex6.exec(e),r?{r:Ge(r[1]),g:Ge(r[2]),b:Ge(r[3]),format:t?"name":"hex"}:(r=st.hex4.exec(e),r?{r:Ge(r[1]+r[1]),g:Ge(r[2]+r[2]),b:Ge(r[3]+r[3]),a:Fi(r[4]+r[4]),format:t?"name":"hex8"}:(r=st.hex3.exec(e),r?{r:Ge(r[1]+r[1]),g:Ge(r[2]+r[2]),b:Ge(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Et(e){return!!st.CSS_UNIT.exec(String(e))}var Ue=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=$u(t)),this.originalInput=t;var o=Pr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,o,i=t.r/255,s=t.g/255,l=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*r+.7152*n+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=sl(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=ga(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=ga(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ji(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ji(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),ma(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Cu(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Be(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Be(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+ma(this.r,this.g,this.b,!1),r=0,n=Object.entries(va);r=0,i=!r&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=An(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=An(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=An(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=An(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,s={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,s=[],l=1/t;t--;)s.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,s=1;s=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ln*t:Math.round(e.h)+Ln*t:n=r?Math.round(e.h)+Ln*t:Math.round(e.h)-Ln*t,n<0?n+=360:n>=360&&(n-=360),n}function Ni(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Ti*t:t===cl?n=e.s+Ti:n=e.s+_u*t,n>1&&(n=1),r&&t===ll&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Li(e,t,r){var n;return r?n=e.v+Iu*t:n=e.v-ju*t,n>1&&(n=1),Number(n.toFixed(2))}function ar(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Pr(e),o=ll;o>0;o-=1){var i=Mi(n),s=zn(Pr({h:Ai(i,o,!0),s:Ni(i,o,!0),v:Li(i,o,!0)}));r.push(s)}r.push(zn(n));for(var l=1;l<=cl;l+=1){var c=Mi(n),u=zn(Pr({h:Ai(c,l),s:Ni(c,l),v:Li(c,l)}));r.push(u)}return t.theme==="dark"?Fu.map(function(d){var f=d.index,p=d.opacity,b=zn(Tu(Pr(t.backgroundColor||"#141414"),Pr(r[f]),p*100));return b}):r}var Ho={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"},Kn={},ko={};Object.keys(Ho).forEach(function(e){Kn[e]=ar(Ho[e]),Kn[e].primary=Kn[e][5],ko[e]=ar(Ho[e],{theme:"dark",backgroundColor:"#141414"}),ko[e].primary=ko[e][5]});var Mu=Kn.blue;function We(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Au(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var zi="data-rc-order",Bi="data-rc-priority",Nu="rc-util-key",ha=new Map;function ul(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Nu}function po(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Lu(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function dl(e){return Array.from((ha.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function fl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!We())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,s=Lu(n),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(zi,s),l&&i&&c.setAttribute(Bi,"".concat(i)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=po(t),d=u.firstChild;if(n){if(l){var f=dl(u).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(zi)))return!1;var b=Number(p.getAttribute(Bi)||0);return i>=b});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function pl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=po(t);return dl(r).find(function(n){return n.getAttribute(ul(t))===e})}function Jr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=pl(e,t);if(r){var n=po(t);n.removeChild(r)}}function zu(e,t){var r=ha.get(e);if(!r||!Au(document,r)){var n=fl("",t),o=n.parentNode;ha.set(e,o),e.removeChild(n)}}function Lt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=po(r);zu(n,r);var o=pl(t,r);if(o){var i,s;if((i=r.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((s=r.csp)===null||s===void 0?void 0:s.nonce)){var l;o.nonce=(l=r.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=fl(e,r);return c.setAttribute(ul(r),t),c}function gl(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Bu(e){return gl(e)instanceof ShadowRoot}function no(e){return Bu(e)?gl(e):null}var ba={},Vu=function(t){};function Hu(e,t){}function ku(e,t){}function Wu(){ba={}}function ml(e,t,r){!t&&!ba[r]&&(e(!1,r),ba[r]=!0)}function Ke(e,t){ml(Hu,e,t)}function Du(e,t){ml(ku,e,t)}Ke.preMessage=Vu;Ke.resetWarned=Wu;Ke.noteOnce=Du;function qu(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Gu(e,t){Ke(e,"[@ant-design/icons] ".concat(t))}function Vi(e){return a._typeof(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(a._typeof(e.icon)==="object"||typeof e.icon=="function")}function Hi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[qu(r)]=n}return t},{})}function ya(e,t,r){return r?a.React.createElement(e.tag,a._objectSpread2(a._objectSpread2({key:t},Hi(e.attrs)),r),(e.children||[]).map(function(n,o){return ya(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):a.React.createElement(e.tag,a._objectSpread2({key:t},Hi(e.attrs)),(e.children||[]).map(function(n,o){return ya(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function vl(e){return ar(e)[0]}function hl(e){return e?Array.isArray(e)?e:[e]:[]}var Uu=` +.anticon { + display: inline-block; + 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; +} + +.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); + } +} +`,Xu=function(t){var r=a.reactExports.useContext(ei),n=r.csp,o=r.prefixCls,i=Uu;o&&(i=i.replace(/anticon/g,o)),a.reactExports.useEffect(function(){var s=t.current,l=no(s);Lt(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:l})},[])},Ku=["icon","className","onClick","style","primaryColor","secondaryColor"],Xr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qu(e){var t=e.primaryColor,r=e.secondaryColor;Xr.primaryColor=t,Xr.secondaryColor=r||vl(t),Xr.calculated=!!r}function Yu(){return a._objectSpread2({},Xr)}var go=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,s=t.primaryColor,l=t.secondaryColor,c=a._objectWithoutProperties(t,Ku),u=a.reactExports.useRef(),d=Xr;if(s&&(d={primaryColor:s,secondaryColor:l||vl(s)}),Xu(u),Gu(Vi(r),"icon should be icon definiton, but got ".concat(r)),!Vi(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=a._objectSpread2(a._objectSpread2({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ya(f.icon,"svg-".concat(f.name),a._objectSpread2(a._objectSpread2({className:n,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};go.displayName="IconReact";go.getTwoToneColors=Yu;go.setTwoToneColors=Qu;const ri=go;function bl(e){var t=hl(e),r=k(t,2),n=r[0],o=r[1];return ri.setTwoToneColors({primaryColor:n,secondaryColor:o})}function Zu(){var e=ri.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ju=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bl(Mu.primary);var mo=a.reactExports.forwardRef(function(e,t){var r,n=e.className,o=e.icon,i=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=a._objectWithoutProperties(e,Ju),f=a.reactExports.useContext(ei),p=f.prefixCls,b=p===void 0?"anticon":p,x=f.rootClassName,g=a.classNames(x,b,(r={},a._defineProperty(r,"".concat(b,"-").concat(o.name),!!o.name),a._defineProperty(r,"".concat(b,"-spin"),!!i||o.name==="loading"),r),n),y=l;y===void 0&&c&&(y=-1);var m=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,h=hl(u),v=k(h,2),E=v[0],$=v[1];return a.reactExports.createElement("span",a._extends({role:"img","aria-label":o.name},d,{ref:t,tabIndex:y,onClick:c,className:g}),a.reactExports.createElement(ri,{icon:o,primaryColor:E,secondaryColor:$,style:m}))});mo.displayName="AntdIcon";mo.getTwoToneColor=Zu;mo.setTwoToneColor=bl;const ht=mo;var ed={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 td=ed;var rd=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:td}))};const nd=a.reactExports.forwardRef(rd);var od={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"};const ad=od;var id=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:ad}))};const ni=a.reactExports.forwardRef(id);var sd={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"};const ld=sd;var cd=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:ld}))};const ud=a.reactExports.forwardRef(cd);var dd={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"};const fd=dd;var pd=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:fd}))};const gd=a.reactExports.forwardRef(pd);var md={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"};const vd=md;var hd=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:vd}))};const bd=a.reactExports.forwardRef(hd);var yd={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"};const xd=yd;var Ed=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:xd}))};const yl=a.reactExports.forwardRef(Ed);var Sd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const Cd=Sd;var wd=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:Cd}))};const $d=a.reactExports.forwardRef(wd);var Pd={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const Rd=Pd;var Od=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:Rd}))};const _d=a.reactExports.forwardRef(Od);var Id={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"};const jd=Id;var Fd=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:jd}))};const Td=a.reactExports.forwardRef(Fd);var Md={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const Ad=Md;var Nd=function(t,r){return a.reactExports.createElement(ht,a._extends({},t,{ref:r,icon:Ad}))};const Ld=a.reactExports.forwardRef(Nd);function oi(e,t,r){var n=a.reactExports.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function ai(e,t){typeof e=="function"?e(t):a._typeof(e)==="object"&&e&&"current"in e&&(e.current=t)}function zt(){for(var e=arguments.length,t=new Array(e),r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=[];return a.React.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(en(n)):a.reactIsExports.isFragment(n)&&n.props?r=r.concat(en(n.props.children,t)):r.push(n))}),r}function oo(e){return e instanceof HTMLElement||e instanceof SVGElement}function Qn(e){return oo(e)?e:e instanceof a.React.Component?a.ReactDOM.findDOMNode(e):null}var xa=a.reactExports.createContext(null);function zd(e){var t=e.children,r=e.onBatchResize,n=a.reactExports.useRef(0),o=a.reactExports.useRef([]),i=a.reactExports.useContext(xa),s=a.reactExports.useCallback(function(l,c,u){n.current+=1;var d=n.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===n.current&&(r==null||r(o.current),o.current=[])}),i==null||i(l,c,u)},[r,i]);return a.reactExports.createElement(xa.Provider,{value:s},t)}var At=new Map;function Bd(e){e.forEach(function(t){var r,n=t.target;(r=At.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var xl=new a.index(Bd);function Vd(e,t){At.has(e)||(At.set(e,new Set),xl.observe(e)),At.get(e).add(t)}function Hd(e,t){At.has(e)&&(At.get(e).delete(t),At.get(e).size||(xl.unobserve(e),At.delete(e)))}var kd=function(e){a._inherits(r,e);var t=a._createSuper(r);function r(){return a._classCallCheck(this,r),t.apply(this,arguments)}return a._createClass(r,[{key:"render",value:function(){return this.props.children}}]),r}(a.reactExports.Component);function Wd(e,t){var r=e.children,n=e.disabled,o=a.reactExports.useRef(null),i=a.reactExports.useRef(null),s=a.reactExports.useContext(xa),l=typeof r=="function",c=l?r(o):r,u=a.reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&a.reactExports.isValidElement(c)&&Mr(c),f=d?c.ref:null,p=ii(f,o),b=function(){var m;return Qn(o.current)||(o.current&&a._typeof(o.current)==="object"?Qn((m=o.current)===null||m===void 0?void 0:m.nativeElement):null)||Qn(i.current)};a.reactExports.useImperativeHandle(t,function(){return b()});var x=a.reactExports.useRef(e);x.current=e;var g=a.reactExports.useCallback(function(y){var m=x.current,h=m.onResize,v=m.data,E=y.getBoundingClientRect(),$=E.width,C=E.height,S=y.offsetWidth,O=y.offsetHeight,P=Math.floor($),I=Math.floor(C);if(u.current.width!==P||u.current.height!==I||u.current.offsetWidth!==S||u.current.offsetHeight!==O){var T={width:P,height:I,offsetWidth:S,offsetHeight:O};u.current=T;var L=S===Math.round($)?$:S,j=O===Math.round(C)?C:O,N=a._objectSpread2(a._objectSpread2({},T),{},{offsetWidth:L,offsetHeight:j});s==null||s(N,y,v),h&&Promise.resolve().then(function(){h(N,y)})}},[]);return a.reactExports.useEffect(function(){var y=b();return y&&!n&&Vd(y,g),function(){return Hd(y,g)}},[o.current,n]),a.reactExports.createElement(kd,{ref:i},d?a.reactExports.cloneElement(c,{ref:p}):c)}var Dd=a.reactExports.forwardRef(Wd),qd="rc-observer-key";function Gd(e,t){var r=e.children,n=typeof r=="function"?[r]:en(r);return n.map(function(o,i){var s=(o==null?void 0:o.key)||"".concat(qd,"-").concat(i);return a.reactExports.createElement(Dd,a._extends({},e,{key:s,ref:i===0?t:void 0}),o)})}var vo=a.reactExports.forwardRef(Gd);vo.Collection=zd;function un(e,t){var r=a._objectSpread2({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Ud(e){if(Array.isArray(e))return pa(e)}function El(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xd(){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 Z(e){return Ud(e)||El(e)||ti(e)||Xd()}var Sl=function(t){return+setTimeout(t,16)},Cl=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Sl=function(t){return window.requestAnimationFrame(t)},Cl=function(t){return window.cancelAnimationFrame(t)});var ki=0,si=new Map;function wl(e){si.delete(e)}var Qe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ki+=1;var n=ki;function o(i){if(i===0)wl(n),t();else{var s=Sl(function(){o(i-1)});si.set(n,s)}}return o(r),n};Qe.cancel=function(e){var t=si.get(e);return wl(e),Cl(t)};function ao(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 $l(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(i);if(Ke(!c,"Warning: There may be circular references"),c)return!1;if(i===s)return!0;if(r&&l>1)return!1;n.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(s)||i.length!==s.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(l){if(!s)s=void 0;else{var c;s=(c=s)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(n=s)!==null&&n!==void 0&&n.value&&i&&(s.value[1]=this.cacheCallTimes++),(o=s)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,d){var f=k(u,2),p=f[1];return o.internalGet(d)[1]0,void 0),Wi+=1}return a._createClass(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}(),Wo=new li;function Sa(e){var t=Array.isArray(e)?e:[e];return Wo.has(t)||Wo.set(t,new Pl(t)),Wo.get(t)}var ef=new WeakMap,Do={};function tf(e,t){for(var r=ef,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var s=a._objectSpread2(a._objectSpread2({},o),{},(n={},a._defineProperty(n,Fr,t),a._defineProperty(n,ut,r),n)),l=Object.keys(s).map(function(c){var u=s[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"")}var Ol=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},of=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=k(o,2),s=i[0],l=i[1];return"".concat(s,":").concat(l,";")}).join(""),"}"):""},_l=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(s){var l,c,u=k(s,2),d=u[0],f=u[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[d])){var p,b=Ol(d,n==null?void 0:n.prefix);o[b]=typeof f=="number"&&!(n!=null&&(p=n.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(b,")")}}),[i,of(o,r,{scope:n==null?void 0:n.scope})]},Gi=We()?a.reactExports.useLayoutEffect:a.reactExports.useEffect,Le=function(t,r){var n=a.reactExports.useRef(!0);Gi(function(){return t(n.current)},r),Gi(function(){return n.current=!1,function(){n.current=!0}},[])},Ui=function(t,r){Le(function(n){if(!n)return t()},r)},af=a._objectSpread2({},a.React$1),Xi=af.useInsertionEffect,sf=function(t,r,n){a.reactExports.useMemo(t,n),Le(function(){return r(!0)},n)},lf=Xi?function(e,t,r){return Xi(function(){return e(),t()},r)}:sf;const cf=lf;var uf=a._objectSpread2({},a.React$1),df=uf.useInsertionEffect,ff=function(t){var r=[],n=!1;function o(i){n||r.push(i)}return a.reactExports.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},pf=function(){return function(t){t()}},gf=typeof df<"u"?ff:pf;const mf=gf;function ci(e,t,r,n,o){var i=a.reactExports.useContext(ho),s=i.cache,l=[e].concat(Z(t)),c=Ea(l),u=mf([c]),d=function(x){s.opUpdate(c,function(g){var y=g||[void 0,void 0],m=k(y,2),h=m[0],v=h===void 0?0:h,E=m[1],$=E,C=$||r(),S=[v,C];return x?x(S):S})};a.reactExports.useMemo(function(){d()},[c]);var f=s.opGet(c),p=f[1];return cf(function(){o==null||o(p)},function(b){return d(function(x){var g=k(x,2),y=g[0],m=g[1];return b&&y===0&&(o==null||o(p)),[y+1,m]}),function(){s.opUpdate(c,function(x){var g=x||[],y=k(g,2),m=y[0],h=m===void 0?0:m,v=y[1],E=h-1;return E===0?(u(function(){(b||!s.opGet(c))&&(n==null||n(v,!1))}),null):[h-1,v]})}},[c]),p}var vf={},hf="css",Zt=new Map;function bf(e){Zt.set(e,(Zt.get(e)||0)+1)}function yf(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Fr,'="').concat(e,'"]'));r.forEach(function(n){if(n[Nt]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var xf=0;function Ef(e,t){Zt.set(e,(Zt.get(e)||0)-1);var r=Array.from(Zt.keys()),n=r.filter(function(o){var i=Zt.get(o)||0;return i<=0});r.length-n.length>xf&&n.forEach(function(o){yf(o,t),Zt.delete(o)})}var Sf=function(t,r,n,o){var i=n.getDerivativeToken(t),s=a._objectSpread2(a._objectSpread2({},i),r);return o&&(s=o(s)),s},Il="token";function Cf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a.reactExports.useContext(ho),o=n.cache.instanceId,i=n.container,s=r.salt,l=s===void 0?"":s,c=r.override,u=c===void 0?vf:c,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,b=tf(function(){return Object.assign.apply(Object,[{}].concat(Z(t)))},t),x=Kr(b),g=Kr(u),y=p?Kr(p):"",m=ci(Il,[l,e.id,x,g,y],function(){var h,v=f?f(b,u,e):Sf(b,u,e,d),E=a._objectSpread2({},v),$="";if(p){var C=_l(v,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),S=k(C,2);v=S[0],$=S[1]}var O=qi(v,l);v._tokenKey=O,E._tokenKey=qi(E,l);var P=(h=p==null?void 0:p.key)!==null&&h!==void 0?h:O;v._themeKey=P,bf(P);var I="".concat(hf,"-").concat(ao(O));return v._hashId=I,[v,I,E,$,(p==null?void 0:p.key)||""]},function(h){Ef(h[0]._themeKey,o)},function(h){var v=k(h,4),E=v[0],$=v[3];if(p&&$){var C=Lt($,ao("css-variables-".concat(E._themeKey)),{mark:ut,prepend:"queue",attachTo:i,priority:-999});C[Nt]=o,C.setAttribute(Fr,E._themeKey)}});return m}var wf=function(t,r,n){var o=k(t,5),i=o[2],s=o[3],l=o[4],c=n||{},u=c.plain;if(!s)return null;var d=i._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=io(s,l,d,p,u);return[f,d,b]},$f={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},jl="comm",Fl="rule",Tl="decl",Pf="@import",Rf="@keyframes",Of="@layer",Ml=Math.abs,ui=String.fromCharCode;function Al(e){return e.trim()}function Yn(e,t,r){return e.replace(t,r)}function _f(e,t,r){return e.indexOf(t,r)}function tn(e,t){return e.charCodeAt(t)|0}function rn(e,t,r){return e.slice(t,r)}function Ct(e){return e.length}function If(e){return e.length}function Bn(e,t){return t.push(e),e}var bo=1,Tr=1,Nl=0,ot=0,_e=0,Ar="";function di(e,t,r,n,o,i,s,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:bo,column:Tr,length:s,return:"",siblings:l}}function jf(){return _e}function Ff(){return _e=ot>0?tn(Ar,--ot):0,Tr--,_e===10&&(Tr=1,bo--),_e}function dt(){return _e=ot2||wa(_e)>3?"":" "}function Nf(e,t){for(;--t&&dt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return yo(e,Zn()+(t<6&&rr()==32&&dt()==32))}function $a(e){for(;dt();)switch(_e){case e:return ot;case 34:case 39:e!==34&&e!==39&&$a(_e);break;case 40:e===41&&$a(e);break;case 92:dt();break}return ot}function Lf(e,t){for(;dt()&&e+_e!==57;)if(e+_e===84&&rr()===47)break;return"/*"+yo(t,ot-1)+"*"+ui(e===47?e:dt())}function zf(e){for(;!wa(rr());)dt();return yo(e,ot)}function Bf(e){return Mf(Jn("",null,null,null,[""],e=Tf(e),0,[0],e))}function Jn(e,t,r,n,o,i,s,l,c){for(var u=0,d=0,f=s,p=0,b=0,x=0,g=1,y=1,m=1,h=0,v="",E=o,$=i,C=n,S=v;y;)switch(x=h,h=dt()){case 40:if(x!=108&&tn(S,f-1)==58){_f(S+=Yn(Go(h),"&","&\f"),"&\f",Ml(u?l[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:S+=Go(h);break;case 9:case 10:case 13:case 32:S+=Af(x);break;case 92:S+=Nf(Zn()-1,7);continue;case 47:switch(rr()){case 42:case 47:Bn(Vf(Lf(dt(),Zn()),t,r,c),c);break;default:S+="/"}break;case 123*g:l[u++]=Ct(S)*m;case 125*g:case 59:case 0:switch(h){case 0:case 125:y=0;case 59+d:m==-1&&(S=Yn(S,/\f/g,"")),b>0&&Ct(S)-f&&Bn(b>32?Qi(S+";",n,r,f-1,c):Qi(Yn(S," ","")+";",n,r,f-2,c),c);break;case 59:S+=";";default:if(Bn(C=Ki(S,t,r,u,d,o,l,v,E=[],$=[],f,i),i),h===123)if(d===0)Jn(S,t,C,C,E,i,f,l,$);else switch(p===99&&tn(S,3)===110?100:p){case 100:case 108:case 109:case 115:Jn(e,C,C,n&&Bn(Ki(e,C,C,0,0,o,l,v,o,E=[],f,$),$),o,$,f,l,n?E:$);break;default:Jn(S,C,C,C,[""],$,0,l,$)}}u=d=b=0,g=m=1,v=S="",f=s;break;case 58:f=1+Ct(S),b=x;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&Ff()==125)continue}switch(S+=ui(h),h*g){case 38:m=d>0?1:(S+="\f",-1);break;case 44:l[u++]=(Ct(S)-1)*m,m=1;break;case 64:rr()===45&&(S+=Go(dt())),p=rr(),d=f=Ct(v=S+=zf(Zn())),h++;break;case 45:x===45&&Ct(S)==2&&(g=0)}}return i}function Ki(e,t,r,n,o,i,s,l,c,u,d,f){for(var p=o-1,b=o===0?i:[""],x=If(b),g=0,y=0,m=0;g0?b[h]+" "+v:Yn(v,/&\f/g,b[h])))&&(c[m++]=E);return di(e,t,r,o===0?Fl:l,c,u,d,f)}function Vf(e,t,r,n){return di(e,t,r,jl,ui(jf()),rn(e,2,-2),0,n)}function Qi(e,t,r,n,o){return di(e,t,r,Tl,rn(e,0,n),rn(e,n+1,-1),n,o)}function Pa(e,t){for(var r="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,s=n.parentSelectors,l=r.hashId,c=r.layer;r.path;var u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d;r.linters;var p="",b={};function x(v){var E=v.getName(l);if(!b[E]){var $=e(v.style,r,{root:!1,parentSelectors:s}),C=k($,1),S=C[0];b[E]="@keyframes ".concat(v.getName(l)).concat(S)}}function g(v){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v.forEach(function($){Array.isArray($)?g($,E):$&&E.push($)}),E}var y=g(Array.isArray(t)?t:[t]);if(y.forEach(function(v){var E=typeof v=="string"&&!o?{}:v;if(typeof E=="string")p+="".concat(E,` +`);else if(E._keyframe)x(E);else{var $=f.reduce(function(C,S){var O;return(S==null||(O=S.visit)===null||O===void 0?void 0:O.call(S,C))||C},E);Object.keys($).forEach(function(C){var S=$[C];if(a._typeof(S)==="object"&&S&&(C!=="animationName"||!S._keyframe)&&!Gf(S)){var O=!1,P=C.trim(),I=!1;(o||i)&&l?P.startsWith("@")?O=!0:P=Uf(C,l,u):o&&!l&&(P==="&"||P==="")&&(P="",I=!0);var T=e(S,r,{root:I,injectHash:O,parentSelectors:[].concat(Z(s),[P])}),L=k(T,2),j=L[0],N=L[1];b=a._objectSpread2(a._objectSpread2({},b),N),p+="".concat(P).concat(j)}else{let w=function(R,A){var M=R.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),F=A;!$f[R]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),R==="animationName"&&A!==null&&A!==void 0&&A._keyframe&&(x(A),F=A.getName(l)),p+="".concat(M,":").concat(F,";")};var z,_=(z=S==null?void 0:S.value)!==null&&z!==void 0?z:S;a._typeof(S)==="object"&&S!==null&&S!==void 0&&S[Bl]&&Array.isArray(_)?_.forEach(function(R){w(C,R)}):w(C,_)}})}}),!o)p="{".concat(p,"}");else if(c&&nf()){var m=c.split(","),h=m[m.length-1].trim();p="@layer ".concat(h," {").concat(p,"}"),m.length>1&&(p="@layer ".concat(c,"{%%%:%}").concat(p))}return[p,b]};function Vl(e,t){return ao("".concat(e.join("%")).concat(t))}function Kf(){return null}var Hl="style";function Oa(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=a.reactExports.useContext(ho),f=d.autoClear;d.mock;var p=d.defaultCache,b=d.hashPriority,x=d.container,g=d.ssrInline,y=d.transformers,m=d.linters,h=d.cache,v=r._tokenKey,E=[v].concat(Z(n)),$=Ca,C=ci(Hl,E,function(){var T=E.join("|");if(Wf(T)){var L=Df(T),j=k(L,2),N=j[0],z=j[1];if(N)return[N,v,z,{},l,u]}var _=t(),w=Xf(_,{hashId:o,hashPriority:b,layer:i,path:n.join("-"),transformers:y,linters:m}),R=k(w,2),A=R[0],M=R[1],F=Ra(A),B=Vl(E,F);return[F,v,B,M,l,u]},function(T,L){var j=k(T,3),N=j[2];(L||f)&&Ca&&Jr(N,{mark:ut})},function(T){var L=k(T,4),j=L[0];L[1];var N=L[2],z=L[3];if($&&j!==Ll){var _={mark:ut,prepend:"queue",attachTo:x,priority:u},w=typeof s=="function"?s():s;w&&(_.csp={nonce:w});var R=Lt(j,N,_);R[Nt]=h.instanceId,R.setAttribute(Fr,v),Object.keys(z).forEach(function(A){Lt(Ra(z[A]),"_effect-".concat(A),_)})}}),S=k(C,3),O=S[0],P=S[1],I=S[2];return function(T){var L;if(!g||$||!p)L=a.reactExports.createElement(Kf,null);else{var j;L=a.reactExports.createElement("style",a._extends({},(j={},a._defineProperty(j,Fr,P),a._defineProperty(j,ut,I),j),{dangerouslySetInnerHTML:{__html:O}}))}return a.reactExports.createElement(a.reactExports.Fragment,null,L,T)}}var Qf=function(t,r,n){var o=k(t,6),i=o[0],s=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=n||{},p=f.plain;if(u)return null;var b=i,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=io(i,s,l,x,p),c&&Object.keys(c).forEach(function(g){if(!r[g]){r[g]=!0;var y=Ra(c[g]);b+=io(y,s,"_effect-".concat(g),x,p)}}),[d,l,b]},kl="cssVar",Yf=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,s=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=a.reactExports.useContext(ho),f=d.cache.instanceId,p=d.container,b=l._tokenKey,x=[].concat(Z(t.path),[n,u,b]),g=ci(kl,x,function(){var y=r(),m=_l(y,n,{prefix:o,unitless:i,ignore:s,scope:u}),h=k(m,2),v=h[0],E=h[1],$=Vl(x,E);return[v,E,$,n]},function(y){var m=k(y,3),h=m[2];Ca&&Jr(h,{mark:ut})},function(y){var m=k(y,3),h=m[1],v=m[2];if(h){var E=Lt(h,v,{mark:ut,prepend:"queue",attachTo:p,priority:-999});E[Nt]=f,E.setAttribute(Fr,n)}});return g},Zf=function(t,r,n){var o=k(t,4),i=o[1],s=o[2],l=o[3],c=n||{},u=c.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=io(i,l,s,f,u);return[d,s,p]},Dr;Dr={},a._defineProperty(Dr,Hl,Qf),a._defineProperty(Dr,Il,wf),a._defineProperty(Dr,kl,Zf);var at=function(){function e(t,r){a._classCallCheck(this,e),a._defineProperty(this,"name",void 0),a._defineProperty(this,"style",void 0),a._defineProperty(this,"_keyframe",!0),this.name=t,this.style=r}return a._createClass(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function xr(e){return e.notSplit=!0,e}xr(["borderTop","borderBottom"]),xr(["borderTop"]),xr(["borderBottom"]),xr(["borderLeft","borderRight"]),xr(["borderLeft"]),xr(["borderRight"]);function Jf(e){return al(e)||El(e)||ti(e)||il()}function mt(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!mt(e,t.slice(0,-1))?e:Wl(e,t,r,n)}function ep(e){return a._typeof(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Zi(e){return Array.isArray(e)?[]:{}}var tp=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Or(){for(var e=arguments.length,t=new Array(e),r=0;r{const e=()=>{};return e.deprecated=rp,e},Dl=a.reactExports.createContext(void 0);var op={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"},ap={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 ip={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ql=ip,sp={lang:Object.assign({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"]},ap),timePickerLocale:Object.assign({},ql)},Ji=sp,De="${label} is not a valid ${type}",ir={locale:"en",Pagination:op,DatePicker:Ji,TimePicker:ql,Calendar:Ji,global:{placeholder:"Please select"},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",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"},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:De,method:De,array:De,object:De,number:De,date:De,boolean:De,integer:De,float:De,regexp:De,email:De,url:De,hex:De},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};Object.assign({},ir.Modal);let eo=[];const es=()=>eo.reduce((e,t)=>Object.assign(Object.assign({},e),t),ir.Modal);function lp(e){if(e){const t=Object.assign({},e);return eo.push(t),es(),()=>{eo=eo.filter(r=>r!==t),es()}}Object.assign({},ir.Modal)}const cp=a.reactExports.createContext(void 0),pi=cp,up=(e,t)=>{const r=a.reactExports.useContext(pi),n=a.reactExports.useMemo(()=>{var i;const s=t||ir[e],l=(i=r==null?void 0:r[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),l||{})},[e,t,r]),o=a.reactExports.useMemo(()=>{const i=r==null?void 0:r.locale;return r!=null&&r.exist&&!i?ir.locale:i},[r]);return[n,o]},dp="internalMark",fp=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;a.reactExports.useEffect(()=>lp(t&&t.Modal),[t]);const o=a.reactExports.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return a.reactExports.createElement(pi.Provider,{value:o},r)},pp=fp,gp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function mp(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Gl={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"},vp=Object.assign(Object.assign({},Gl),{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:!1,motion:!0}),nn=vp;function hp(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:i,colorError:s,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=r(c),p=r(o),b=r(i),x=r(s),g=r(l),y=n(u,d),m=e.colorLink||e.colorInfo,h=r(m);return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[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:x[1],colorErrorBgHover:x[2],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Ue("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const bp=e=>{let t=e,r=e,n=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?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function yp(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},bp(n))}const St=(e,t)=>new Ue(e).setAlpha(t).toRgbString(),qr=(e,t)=>new Ue(e).darken(t).toHexString(),xp=e=>{const t=ar(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]}},Ep=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:St(n,.88),colorTextSecondary:St(n,.65),colorTextTertiary:St(n,.45),colorTextQuaternary:St(n,.25),colorFill:St(n,.15),colorFillSecondary:St(n,.06),colorFillTertiary:St(n,.04),colorFillQuaternary:St(n,.02),colorBgLayout:qr(r,4),colorBgContainer:qr(r,0),colorBgElevated:qr(r,0),colorBgSpotlight:St(n,.85),colorBgBlur:"transparent",colorBorder:qr(r,15),colorBorderSecondary:qr(r,6)}};function to(e){return(e+8)/e}function Sp(e){const t=new Array(10).fill(null).map((r,n)=>{const o=n-1,i=e*Math.pow(2.71828,o/5),s=n>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:to(r)}))}const Cp=e=>{const t=Sp(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),o=r[1],i=r[0],s=r[2],l=n[1],c=n[0],u=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*s),fontHeightSM:Math.round(c*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function wp(e){const t=Object.keys(Gl).map(r=>{const n=ar(e[r]);return new Array(10).fill(1).reduce((o,i,s)=>(o[`${r}-${s+1}`]=n[s],o[`${r}${s+1}`]=n[s],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),hp(e,{generateColorPalettes:xp,generateNeutralColorPalettes:Ep})),Cp(e.fontSize)),mp(e)),gp(e)),yp(e))}const Ul=Sa(wp),Xl={token:nn,override:{override:nn},hashed:!0},Kl=a.React.createContext(Xl),Ql="anticon",$p=(e,t)=>t||(e?`ant-${e}`:"ant"),Ie=a.reactExports.createContext({getPrefixCls:$p,iconPrefixCls:Ql}),Pp=`-ant-${Date.now()}-${Math.random()}`;function Rp(e,t){const r={},n=(s,l)=>{let c=s.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(s,l)=>{const c=new Ue(s),u=ar(c.toRgbString());r[`${l}-color`]=n(c),r[`${l}-color-disabled`]=u[1],r[`${l}-color-hover`]=u[4],r[`${l}-color-active`]=u[6],r[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=u[0],r[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const s=new Ue(t.primaryColor),l=ar(s.toRgbString());l.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=n(s,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(s,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(s,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(s,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(s,u=>u.setAlpha(u.getAlpha()*.12));const c=new Ue(l[0]);r["primary-color-active-deprecated-f-30"]=n(c,u=>u.setAlpha(u.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` + :root { + ${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(` +`)} + } + `.trim()}function Op(e,t){const r=Rp(e,t);We()&&Lt(r,`${Pp}-dynamic-theme`)}const _a=a.reactExports.createContext(!1),Yl=e=>{let{children:t,disabled:r}=e;const n=a.reactExports.useContext(_a);return a.reactExports.createElement(_a.Provider,{value:r??n},t)},dn=_a,Ia=a.reactExports.createContext(void 0),_p=e=>{let{children:t,size:r}=e;const n=a.reactExports.useContext(Ia);return a.reactExports.createElement(Ia.Provider,{value:r||n},t)},fn=Ia;function Ip(){const e=a.reactExports.useContext(dn),t=a.reactExports.useContext(fn);return{componentDisabled:e,componentSize:t}}const so=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],jp="5.13.3";function Uo(e){return e>=0&&e<=255}function Vn(e,t){const{r,g:n,b:o,a:i}=new Ue(e).toRgb();if(i<1)return e;const{r:s,g:l,b:c}=new Ue(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-s*(1-u))/u),f=Math.round((n-l*(1-u))/u),p=Math.round((o-c*(1-u))/u);if(Uo(d)&&Uo(f)&&Uo(p))return new Ue({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new Ue({r,g:n,b:o,a:1}).toRgbString()}var Fp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{delete n[p]});const o=Object.assign(Object.assign({},r),n),i=480,s=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Vn(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:Vn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Vn(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,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:Vn(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:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new Ue("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new Ue("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new Ue("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)"}),n)}var ts=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const n=r.getDerivativeToken(e),{override:o}=t,i=ts(t,["override"]);let s=Object.assign(Object.assign({},n),{override:o});return s=Zl(s),i&&Object.entries(i).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=ts(u,["theme"]);let p=f;d&&(p=tc(Object.assign(Object.assign({},s),f),{override:f},d)),s[c]=p}),s};function ft(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=a.React.useContext(Kl),i=`${jp}-${t||""}`,s=r||Ul,[l,c,u]=Cf(s,[nn,e],{salt:i,override:n,getComputedToken:tc,formatToken:Zl,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Jl,ignore:ec,preserve:Tp}});return[s,u,t?c:"",l,o]}function gt(e){var t=a.reactExports.useRef();t.current=e;var r=a.reactExports.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),s=0;s1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Mp=()=>({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"}}),Ap=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Np=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Lp=(e,t)=>{const{fontFamily:r,fontSize:n}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},zp=e=>({outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Bp=e=>({"&:focus-visible":Object.assign({},zp(e))});let Vp=a._createClass(function e(){a._classCallCheck(this,e)});const rc=Vp;function Hp(e,t,r){return t=a._getPrototypeOf(t),a._possibleConstructorReturn(e,a._isNativeReflectConstruct()?Reflect.construct(t,r||[],a._getPrototypeOf(e).constructor):t.apply(e,r))}let kp=function(e){a._inherits(t,e);function t(r){var n;return a._classCallCheck(this,t),n=Hp(this,t),n.result=0,r instanceof t?n.result=r.result:typeof r=="number"&&(n.result=r),n}return a._createClass(t,[{key:"add",value:function(n){return n instanceof t?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof t?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof t?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof t?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),t}(rc);function Wp(e,t,r){return t=a._getPrototypeOf(t),a._possibleConstructorReturn(e,a._isNativeReflectConstruct()?Reflect.construct(t,r||[],a._getPrototypeOf(e).constructor):t.apply(e,r))}const nc="CALC_UNIT";function Ko(e){return typeof e=="number"?`${e}${nc}`:e}let Dp=function(e){a._inherits(t,e);function t(r){var n;return a._classCallCheck(this,t),n=Wp(this,t),n.result="",r instanceof t?n.result=`(${r.result})`:typeof r=="number"?n.result=Ko(r):typeof r=="string"&&(n.result=r),n}return a._createClass(t,[{key:"add",value:function(n){return n instanceof t?this.result=`${this.result} + ${n.getResult()}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} + ${Ko(n)}`),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof t?this.result=`${this.result} - ${n.getResult()}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} - ${Ko(n)}`),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result=`(${this.result})`),n instanceof t?this.result=`${this.result} * ${n.getResult(!0)}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} * ${n}`),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result=`(${this.result})`),n instanceof t?this.result=`${this.result} / ${n.getResult(!0)}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} / ${n}`),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?`(${this.result})`:this.result}},{key:"equal",value:function(n){const{unit:o=!0}=n||{},i=new RegExp(`${nc}`,"g");return this.result=this.result.replace(i,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(rc);const qp=e=>{const t=e==="css"?Dp:kp;return r=>new t(r)};function Gp(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,r=new Array(t),n=0;nle(o)).join(",")})`},min:function(){for(var t=arguments.length,r=new Array(t),n=0;nle(o)).join(",")})`}}}const oc=typeof CSSINJS_STATISTIC<"u";let ja=!0;function Ye(){for(var e=arguments.length,t=new Array(e),r=0;r{Object.keys(o).forEach(s=>{Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:()=>o[s]})})}),ja=!0,n}const rs={};function Up(){}const Xp=e=>{let t,r=e,n=Up;return oc&&typeof Proxy<"u"&&(t=new Set,r=new Proxy(e,{get(o,i){return ja&&t.add(i),o[i]}}),n=(o,i)=>{var s;rs[o]={global:Array.from(t),component:Object.assign(Object.assign({},(s=rs[o])===null||s===void 0?void 0:s.component),i)}}),{token:r,keys:t,flush:n}},ac=(e,t)=>{const[r,n]=ft();return Oa({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Mp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},ic=(e,t,r)=>{var n;return typeof r=="function"?r(Ye(t,(n=t[e])!==null&&n!==void 0?n:{})):r??{}},sc=(e,t,r,n)=>{const o=Object.assign({},t[e]);if(n!=null&&n.deprecatedTokens){const{deprecatedTokens:s}=n;s.forEach(l=>{let[c,u]=l;var d;(o!=null&&o[c]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[c]))})}const i=Object.assign(Object.assign({},r),o);return Object.keys(i).forEach(s=>{i[s]===t[s]&&delete i[s]}),i},Kp=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function gi(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,s=o.join("-");return l=>{const[c,u,d,f,p]=ft(),{getPrefixCls:b,iconPrefixCls:x,csp:g}=a.reactExports.useContext(Ie),y=b(),m=p?"css":"js",h=qp(m),{max:v,min:E}=Gp(m),$={theme:c,token:f,hashId:d,nonce:()=>g==null?void 0:g.nonce,clientOnly:n.clientOnly,order:n.order||-999};return Oa(Object.assign(Object.assign({},$),{clientOnly:!1,path:["Shared",y]}),()=>[{"&":Np(f)}]),ac(x,g),[Oa(Object.assign(Object.assign({},$),{path:[s,l,x]}),()=>{if(n.injectStyle===!1)return[];const{token:S,flush:O}=Xp(f),P=ic(i,u,r),I=`.${l}`,T=sc(i,u,P,{deprecatedTokens:n.deprecatedTokens});p&&Object.keys(P).forEach(N=>{P[N]=`var(${Ol(N,Kp(i,p.prefix))})`});const L=Ye(S,{componentCls:I,prefixCls:l,iconCls:`.${x}`,antCls:`.${y}`,calc:h,max:v,min:E},p?P:T),j=t(L,{hashId:d,prefixCls:l,rootPrefixCls:y,iconPrefixCls:x});return O(i,T),[n.resetStyle===!1?null:Lp(L,l),j]}),d]}}const lc=(e,t,r,n)=>{const o=gi(e,t,r,Object.assign({resetStyle:!1,order:-998},n));return s=>{let{prefixCls:l}=s;return o(l),null}},Qp=(e,t,r)=>{function n(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=r??{},s={[n("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{s[n(u)]=o[u]});const l=u=>{let{rootCls:d,cssVar:f}=u;const[,p]=ft();return Yf({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},Jl),s),ignore:ec,token:p,scope:d},()=>{const b=ic(e,p,t),x=sc(e,p,b,{deprecatedTokens:r==null?void 0:r.deprecatedTokens});return Object.keys(b).forEach(g=>{x[n(g)]=x[g],delete x[g]}),x}),null};return u=>{const[,,,,d]=ft();return[f=>i&&d?a.React.createElement(a.React.Fragment,null,a.React.createElement(l,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},Nr=(e,t,r,n)=>{const o=gi(e,t,r,n),i=Qp(Array.isArray(e)?e[0]:e,r,n);return function(s){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;const[,c]=o(s),[u,d]=i(l);return[u,c,d]}};function Yp(e,t){return so.reduce((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],s=e[`${n}6`],l=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:s,textColor:l}))},{})}const Zp=Object.assign({},a.React$1),{useId:ns}=Zp,Jp=()=>"",eg=typeof ns>"u"?Jp:ns;function tg(e,t){fi();const r=e||{},n=r.inherit===!1||!t?Xl:t,o=eg();return oi(()=>{var i,s;if(!e)return t;const l=Object.assign({},n.components);Object.keys(e.components||{}).forEach(d=>{l[d]=Object.assign(Object.assign({},l[d]),e.components[d])});const c=`css-var-${o.replace(/:/g,"")}`,u=((i=r.cssVar)!==null&&i!==void 0?i:n.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof n.cssVar=="object"?n.cssVar:{}),typeof r.cssVar=="object"?r.cssVar:{}),{key:typeof r.cssVar=="object"&&((s=r.cssVar)===null||s===void 0?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:l,cssVar:u})},[r,n],(i,s)=>i.some((l,c)=>{const u=s[c];return!$l(l,u,!0)}))}var rg=["children"],cc=a.reactExports.createContext({});function ng(e){var t=e.children,r=a._objectWithoutProperties(e,rg);return a.reactExports.createElement(cc.Provider,{value:r},t)}var og=function(e){a._inherits(r,e);var t=a._createSuper(r);function r(){return a._classCallCheck(this,r),t.apply(this,arguments)}return a._createClass(r,[{key:"render",value:function(){return this.props.children}}]),r}(a.reactExports.Component),Qt="none",Hn="appear",kn="enter",Wn="leave",os="none",ct="prepare",_r="start",Ir="active",mi="end",uc="prepared";function as(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function ag(e,t){var r={animationend:as("Animation","AnimationEnd"),transitionend:as("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var ig=ag(We(),typeof window<"u"?window:{}),dc={};if(We()){var sg=document.createElement("div");dc=sg.style}var Dn={};function fc(e){if(Dn[e])return Dn[e];var t=ig[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Qe(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return a.reactExports.useEffect(function(){return function(){t()}},[]),[r,t]};var ug=[ct,_r,Ir,mi],dg=[ct,uc],hc=!1,fg=!0;function bc(e){return e===Ir||e===mi}const pg=function(e,t,r){var n=or(os),o=k(n,2),i=o[0],s=o[1],l=cg(),c=k(l,2),u=c[0],d=c[1];function f(){s(ct,!0)}var p=t?dg:ug;return vc(function(){if(i!==os&&i!==mi){var b=p.indexOf(i),x=p[b+1],g=r(i);g===hc?s(x,!0):x&&u(function(y){function m(){y.isCanceled()||s(x,!0)}g===!0?m():Promise.resolve(g).then(m)})}},[e,i]),a.reactExports.useEffect(function(){return function(){d()}},[]),[f,i]};function gg(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,s=n.motionAppear,l=s===void 0?!0:s,c=n.motionLeave,u=c===void 0?!0:c,d=n.motionDeadline,f=n.motionLeaveImmediately,p=n.onAppearPrepare,b=n.onEnterPrepare,x=n.onLeavePrepare,g=n.onAppearStart,y=n.onEnterStart,m=n.onLeaveStart,h=n.onAppearActive,v=n.onEnterActive,E=n.onLeaveActive,$=n.onAppearEnd,C=n.onEnterEnd,S=n.onLeaveEnd,O=n.onVisibleChanged,P=or(),I=k(P,2),T=I[0],L=I[1],j=or(Qt),N=k(j,2),z=N[0],_=N[1],w=or(null),R=k(w,2),A=R[0],M=R[1],F=a.reactExports.useRef(!1),B=a.reactExports.useRef(null);function W(){return r()}var G=a.reactExports.useRef(!1);function V(){_(Qt,!0),M(null,!0)}function H(D){var q=W();if(!(D&&!D.deadline&&D.target!==q)){var Q=G.current,ae;z===Hn&&Q?ae=$==null?void 0:$(q,D):z===kn&&Q?ae=C==null?void 0:C(q,D):z===Wn&&Q&&(ae=S==null?void 0:S(q,D)),z!==Qt&&Q&&ae!==!1&&V()}}var U=lg(H),X=k(U,1),ee=X[0],re=function(q){var Q,ae,oe;switch(q){case Hn:return Q={},a._defineProperty(Q,ct,p),a._defineProperty(Q,_r,g),a._defineProperty(Q,Ir,h),Q;case kn:return ae={},a._defineProperty(ae,ct,b),a._defineProperty(ae,_r,y),a._defineProperty(ae,Ir,v),ae;case Wn:return oe={},a._defineProperty(oe,ct,x),a._defineProperty(oe,_r,m),a._defineProperty(oe,Ir,E),oe;default:return{}}},J=a.reactExports.useMemo(function(){return re(z)},[z]),ce=pg(z,!e,function(D){if(D===ct){var q=J[ct];return q?q(W()):hc}if(ue in J){var Q;M(((Q=J[ue])===null||Q===void 0?void 0:Q.call(J,W(),null))||null)}return ue===Ir&&(ee(W()),d>0&&(clearTimeout(B.current),B.current=setTimeout(function(){H({deadline:!0})},d))),ue===uc&&V(),fg}),se=k(ce,2),K=se[0],ue=se[1],ge=bc(ue);G.current=ge,vc(function(){L(t);var D=F.current;F.current=!0;var q;!D&&t&&l&&(q=Hn),D&&t&&i&&(q=kn),(D&&!t&&u||!D&&f&&!t&&u)&&(q=Wn);var Q=re(q);q&&(e||Q[ct])?(_(q),K()):_(Qt)},[t]),a.reactExports.useEffect(function(){(z===Hn&&!l||z===kn&&!i||z===Wn&&!u)&&_(Qt)},[l,i,u]),a.reactExports.useEffect(function(){return function(){F.current=!1,clearTimeout(B.current)}},[]);var fe=a.reactExports.useRef(!1);a.reactExports.useEffect(function(){T&&(fe.current=!0),T!==void 0&&z===Qt&&((fe.current||T)&&(O==null||O(T)),fe.current=!0)},[T,z]);var be=A;return J[ct]&&ue===_r&&(be=a._objectSpread2({transition:"none"},be)),[z,ue,be,T??t]}function mg(e){var t=e;a._typeof(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=a.reactExports.forwardRef(function(o,i){var s=o.visible,l=s===void 0?!0:s,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,p=o.motionName,b=o.leavedClassName,x=o.eventProps,g=a.reactExports.useContext(cc),y=g.motion,m=r(o,y),h=a.reactExports.useRef(),v=a.reactExports.useRef();function E(){try{return h.current instanceof HTMLElement?h.current:Qn(v.current)}catch{return null}}var $=gg(m,l,E,o),C=k($,4),S=C[0],O=C[1],P=C[2],I=C[3],T=a.reactExports.useRef(I);I&&(T.current=!0);var L=a.reactExports.useCallback(function(M){h.current=M,ai(i,M)},[i]),j,N=a._objectSpread2(a._objectSpread2({},x),{},{visible:l});if(!f)j=null;else if(S===Qt)I?j=f(a._objectSpread2({},N),L):!u&&T.current&&b?j=f(a._objectSpread2(a._objectSpread2({},N),{},{className:b}),L):d||!u&&!b?j=f(a._objectSpread2(a._objectSpread2({},N),{},{style:{display:"none"}}),L):j=null;else{var z,_;O===ct?_="prepare":bc(O)?_="active":O===_r&&(_="start");var w=ls(p,"".concat(S,"-").concat(_));j=f(a._objectSpread2(a._objectSpread2({},N),{},{className:a.classNames(ls(p,S),(z={},a._defineProperty(z,w,w&&_),a._defineProperty(z,p,typeof p=="string"),z)),style:P}),L)}if(a.reactExports.isValidElement(j)&&Mr(j)){var R=j,A=R.ref;A||(j=a.reactExports.cloneElement(j,{ref:L}))}return a.reactExports.createElement(og,{ref:v},j)});return n.displayName="CSSMotion",n}const Lr=mg(mc);var Fa="add",Ta="keep",Ma="remove",Qo="removed";function vg(e){var t;return e&&a._typeof(e)==="object"&&"key"in e?t=e:t={key:e},a._objectSpread2(a._objectSpread2({},t),{},{key:String(t.key)})}function Aa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(vg)}function hg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=Aa(e),s=Aa(t);i.forEach(function(u){for(var d=!1,f=n;f1});return c.forEach(function(u){r=r.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==Ma}),r.forEach(function(d){d.key===u&&(d.status=Ta)})}),r}var bg=["component","children","onVisibleChanged","onAllRemoved"],yg=["status"],xg=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lr,r=function(n){a._inherits(i,n);var o=a._createSuper(i);function i(){var s;a._classCallCheck(this,i);for(var l=arguments.length,c=new Array(l),u=0;unull;var $g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const Ig=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(yc=t),n&&_g(n)&&Op(Og(),n)},jg=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:s,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:b,popupOverflow:x,legacyLocale:g,parentContext:y,iconPrefixCls:m,theme:h,componentDisabled:v,segmented:E,statistic:$,spin:C,calendar:S,carousel:O,cascader:P,collapse:I,typography:T,checkbox:L,descriptions:j,divider:N,drawer:z,skeleton:_,steps:w,image:R,layout:A,list:M,mentions:F,modal:B,progress:W,result:G,slider:V,breadcrumb:H,menu:U,pagination:X,input:ee,empty:re,badge:J,radio:ce,rate:se,switch:K,transfer:ue,avatar:ge,message:fe,tag:be,table:D,card:q,tabs:Q,timeline:ae,timePicker:oe,upload:pe,notification:me,tree:Me,colorPicker:Bt,datePicker:xe,rangePicker:ie,flex:ye,wave:$e,dropdown:cr,warning:ur}=e,Br=a.reactExports.useCallback((te,ve)=>{const{prefixCls:Pe}=e;if(ve)return ve;const Ae=Pe||y.getPrefixCls("");return te?`${Ae}-${te}`:Ae},[y.getPrefixCls,e.prefixCls]),Ze=m||y.iconPrefixCls||Ql,je=r||y.csp;ac(Ze,je);const Je=tg(h,y.theme),Vt={csp:je,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:l||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??p,popupOverflow:x,getPrefixCls:Br,iconPrefixCls:Ze,theme:Je,segmented:E,statistic:$,spin:C,calendar:S,carousel:O,cascader:P,collapse:I,typography:T,checkbox:L,descriptions:j,divider:N,drawer:z,skeleton:_,steps:w,image:R,input:ee,layout:A,list:M,mentions:F,modal:B,progress:W,result:G,slider:V,breadcrumb:H,menu:U,pagination:X,empty:re,badge:J,radio:ce,rate:se,switch:K,transfer:ue,avatar:ge,message:fe,tag:be,table:D,card:q,tabs:Q,timeline:ae,timePicker:oe,upload:pe,notification:me,tree:Me,colorPicker:Bt,datePicker:xe,rangePicker:ie,flex:ye,wave:$e,dropdown:cr,warning:ur},He=Object.assign({},y);Object.keys(Vt).forEach(te=>{Vt[te]!==void 0&&(He[te]=Vt[te])}),Pg.forEach(te=>{const ve=e[te];ve&&(He[te]=ve)});const Oe=oi(()=>He,He,(te,ve)=>{const Pe=Object.keys(te),Ae=Object.keys(ve);return Pe.length!==Ae.length||Pe.some(pt=>te[pt]!==ve[pt])}),dr=a.reactExports.useMemo(()=>({prefixCls:Ze,csp:je}),[Ze,je]);let Ee=a.reactExports.createElement(a.reactExports.Fragment,null,a.reactExports.createElement(wg,{dropdownMatchSelectWidth:p}),t);const it=a.reactExports.useMemo(()=>{var te,ve,Pe,Ae;return Or(((te=ir.Form)===null||te===void 0?void 0:te.defaultValidateMessages)||{},((Pe=(ve=Oe.locale)===null||ve===void 0?void 0:ve.Form)===null||Pe===void 0?void 0:Pe.defaultValidateMessages)||{},((Ae=Oe.form)===null||Ae===void 0?void 0:Ae.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[Oe,s==null?void 0:s.validateMessages]);Object.keys(it).length>0&&(Ee=a.reactExports.createElement(Dl.Provider,{value:it},Ee)),l&&(Ee=a.reactExports.createElement(pp,{locale:l,_ANT_MARK__:dp},Ee)),(Ze||je)&&(Ee=a.reactExports.createElement(ei.Provider,{value:dr},Ee)),c&&(Ee=a.reactExports.createElement(_p,{size:c},Ee)),Ee=a.reactExports.createElement(Cg,null,Ee);const Se=a.reactExports.useMemo(()=>{const te=Je||{},{algorithm:ve,token:Pe,components:Ae,cssVar:pt}=te,Ht=$g(te,["algorithm","token","components","cssVar"]),Rt=ve&&(!Array.isArray(ve)||ve.length>0)?Sa(ve):Ul,Ne={};Object.entries(Ae||{}).forEach(pr=>{let[Ot,kt]=pr;const ke=Object.assign({},kt);"algorithm"in ke&&(ke.algorithm===!0?ke.theme=Rt:(Array.isArray(ke.algorithm)||typeof ke.algorithm=="function")&&(ke.theme=Sa(ke.algorithm)),delete ke.algorithm),Ne[Ot]=ke});const fr=Object.assign(Object.assign({},nn),Pe);return Object.assign(Object.assign({},Ht),{theme:Rt,token:fr,components:Ne,override:Object.assign({override:fr},Ne),cssVar:pt})},[Je]);return h&&(Ee=a.reactExports.createElement(Kl.Provider,{value:Se},Ee)),Oe.warning&&(Ee=a.reactExports.createElement(np.Provider,{value:Oe.warning},Ee)),v!==void 0&&(Ee=a.reactExports.createElement(Yl,{disabled:v},Ee)),a.reactExports.createElement(Ie.Provider,{value:Oe},Ee)},gn=e=>{const t=a.reactExports.useContext(Ie),r=a.reactExports.useContext(pi);return a.reactExports.createElement(jg,Object.assign({parentContext:t,legacyLocale:r},e))};gn.ConfigContext=Ie;gn.SizeContext=fn;gn.config=Ig;gn.useConfig=Ip;Object.defineProperty(gn,"SizeContext",{get:()=>fn});const cs=e=>typeof e=="object"&&e!=null&&e.nodeType===1,us=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Yo=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeightit||i>e&&s=t&&l>=r?i-e-n:s>t&&lr?s-t+o:0,Fg=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},ds=(e,t)=>{var r,n,o,i;if(typeof document>"u")return[];const{scrollMode:s,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:_=>_!==u;if(!cs(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,b=[];let x=e;for(;cs(x)&&f(x);){if(x=Fg(x),x===p){b.push(x);break}x!=null&&x===document.body&&Yo(x)&&!Yo(document.documentElement)||x!=null&&Yo(x,d)&&b.push(x)}const g=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,y=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:m,scrollY:h}=window,{height:v,width:E,top:$,right:C,bottom:S,left:O}=e.getBoundingClientRect(),{top:P,right:I,bottom:T,left:L}=(_=>{const w=window.getComputedStyle(_);return{top:parseFloat(w.scrollMarginTop)||0,right:parseFloat(w.scrollMarginRight)||0,bottom:parseFloat(w.scrollMarginBottom)||0,left:parseFloat(w.scrollMarginLeft)||0}})(e);let j=l==="start"||l==="nearest"?$-P:l==="end"?S+T:$+v/2-P+T,N=c==="center"?O+E/2-L+I:c==="end"?C+I:O-L;const z=[];for(let _=0;_=0&&O>=0&&S<=y&&C<=g&&$>=M&&S<=B&&O>=W&&C<=F)return z;const G=getComputedStyle(w),V=parseInt(G.borderLeftWidth,10),H=parseInt(G.borderTopWidth,10),U=parseInt(G.borderRightWidth,10),X=parseInt(G.borderBottomWidth,10);let ee=0,re=0;const J="offsetWidth"in w?w.offsetWidth-w.clientWidth-V-U:0,ce="offsetHeight"in w?w.offsetHeight-w.clientHeight-H-X:0,se="offsetWidth"in w?w.offsetWidth===0?0:A/w.offsetWidth:0,K="offsetHeight"in w?w.offsetHeight===0?0:R/w.offsetHeight:0;if(p===w)ee=l==="start"?j:l==="end"?j-y:l==="nearest"?qn(h,h+y,y,H,X,h+j,h+j+v,v):j-y/2,re=c==="start"?N:c==="center"?N-g/2:c==="end"?N-g:qn(m,m+g,g,V,U,m+N,m+N+E,E),ee=Math.max(0,ee+h),re=Math.max(0,re+m);else{ee=l==="start"?j-M-H:l==="end"?j-B+X+ce:l==="nearest"?qn(M,B,R,H,X+ce,j,j+v,v):j-(M+R/2)+ce/2,re=c==="start"?N-W-V:c==="center"?N-(W+A/2)+J/2:c==="end"?N-F+U+J:qn(W,F,A,V,U+J,N,N+E,E);const{scrollLeft:ue,scrollTop:ge}=w;ee=K===0?0:Math.max(0,Math.min(ge+ee/K,w.scrollHeight-R/K+ce)),re=se===0?0:Math.max(0,Math.min(ue+re/se,w.scrollWidth-A/se+J)),j+=ge-ee,N+=ue-re}z.push({el:w,top:ee,left:re})}return z},Tg=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Mg(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const r=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(ds(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:s}of ds(e,Tg(t))){const l=i-r.top+r.bottom,c=s-r.left+r.right;o.scroll({top:l,left:c,behavior:n})}}const mn=e=>{const[,,,,t]=ft();return t?`${e}-css-var`:""},Ag=a.React.createContext(void 0),xc=Ag,Yt=100,Ng=10,Lg=Yt*Ng,Ec={Modal:Yt,Drawer:Yt,Popover:Yt,Popconfirm:Yt,Tooltip:Yt,Tour:Yt},zg={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Bg(e){return e in Ec}function Vg(e,t){const[,r]=ft(),n=a.React.useContext(xc),o=Bg(e);if(t!==void 0)return[t,t];let i=n??0;return o?(i+=(n?0:r.zIndexPopupBase)+Ec[e],i=Math.min(i,r.zIndexPopupBase+Lg)):i+=zg[e],[n===void 0?t:i,i]}function Ve(){Ve=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(_,w,R){_[w]=R.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(_,w,R){return Object.defineProperty(_,w,{value:R,enumerable:!0,configurable:!0,writable:!0}),_[w]}try{u({},"")}catch{u=function(R,A,M){return R[A]=M}}function d(_,w,R,A){var M=w&&w.prototype instanceof m?w:m,F=Object.create(M.prototype),B=new N(A||[]);return o(F,"_invoke",{value:I(_,R,B)}),F}function f(_,w,R){try{return{type:"normal",arg:_.call(w,R)}}catch(A){return{type:"throw",arg:A}}}t.wrap=d;var p="suspendedStart",b="suspendedYield",x="executing",g="completed",y={};function m(){}function h(){}function v(){}var E={};u(E,s,function(){return this});var $=Object.getPrototypeOf,C=$&&$($(z([])));C&&C!==r&&n.call(C,s)&&(E=C);var S=v.prototype=m.prototype=Object.create(E);function O(_){["next","throw","return"].forEach(function(w){u(_,w,function(R){return this._invoke(w,R)})})}function P(_,w){function R(M,F,B,W){var G=f(_[M],_,F);if(G.type!=="throw"){var V=G.arg,H=V.value;return H&&a._typeof(H)=="object"&&n.call(H,"__await")?w.resolve(H.__await).then(function(U){R("next",U,B,W)},function(U){R("throw",U,B,W)}):w.resolve(H).then(function(U){V.value=U,B(V)},function(U){return R("throw",U,B,W)})}W(G.arg)}var A;o(this,"_invoke",{value:function(F,B){function W(){return new w(function(G,V){R(F,B,G,V)})}return A=A?A.then(W,W):W()}})}function I(_,w,R){var A=p;return function(M,F){if(A===x)throw new Error("Generator is already running");if(A===g){if(M==="throw")throw F;return{value:e,done:!0}}for(R.method=M,R.arg=F;;){var B=R.delegate;if(B){var W=T(B,R);if(W){if(W===y)continue;return W}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(A===p)throw A=g,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);A=x;var G=f(_,w,R);if(G.type==="normal"){if(A=R.done?g:b,G.arg===y)continue;return{value:G.arg,done:R.done}}G.type==="throw"&&(A=g,R.method="throw",R.arg=G.arg)}}}function T(_,w){var R=w.method,A=_.iterator[R];if(A===e)return w.delegate=null,R==="throw"&&_.iterator.return&&(w.method="return",w.arg=e,T(_,w),w.method==="throw")||R!=="return"&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+R+"' method")),y;var M=f(A,_.iterator,w.arg);if(M.type==="throw")return w.method="throw",w.arg=M.arg,w.delegate=null,y;var F=M.arg;return F?F.done?(w[_.resultName]=F.value,w.next=_.nextLoc,w.method!=="return"&&(w.method="next",w.arg=e),w.delegate=null,y):F:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,y)}function L(_){var w={tryLoc:_[0]};1 in _&&(w.catchLoc=_[1]),2 in _&&(w.finallyLoc=_[2],w.afterLoc=_[3]),this.tryEntries.push(w)}function j(_){var w=_.completion||{};w.type="normal",delete w.arg,_.completion=w}function N(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(L,this),this.reset(!0)}function z(_){if(_||_===""){var w=_[s];if(w)return w.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var R=-1,A=function M(){for(;++R<_.length;)if(n.call(_,R))return M.value=_[R],M.done=!1,M;return M.value=e,M.done=!0,M};return A.next=A}}throw new TypeError(a._typeof(_)+" is not iterable")}return h.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(_){var w=typeof _=="function"&&_.constructor;return!!w&&(w===h||(w.displayName||w.name)==="GeneratorFunction")},t.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,v):(_.__proto__=v,u(_,c,"GeneratorFunction")),_.prototype=Object.create(S),_},t.awrap=function(_){return{__await:_}},O(P.prototype),u(P.prototype,l,function(){return this}),t.AsyncIterator=P,t.async=function(_,w,R,A,M){M===void 0&&(M=Promise);var F=new P(d(_,w,R,A),M);return t.isGeneratorFunction(w)?F:F.next().then(function(B){return B.done?B.value:F.next()})},O(S),u(S,c,"Generator"),u(S,s,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),t.keys=function(_){var w=Object(_),R=[];for(var A in w)R.push(A);return R.reverse(),function M(){for(;R.length;){var F=R.pop();if(F in w)return M.value=F,M.done=!1,M}return M.done=!0,M}},t.values=z,N.prototype={constructor:N,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!w)for(var R in this)R.charAt(0)==="t"&&n.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=e)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var R=this;function A(V,H){return B.type="throw",B.arg=w,R.next=V,H&&(R.method="next",R.arg=e),!!H}for(var M=this.tryEntries.length-1;M>=0;--M){var F=this.tryEntries[M],B=F.completion;if(F.tryLoc==="root")return A("end");if(F.tryLoc<=this.prev){var W=n.call(F,"catchLoc"),G=n.call(F,"finallyLoc");if(W&&G){if(this.prev=0;--A){var M=this.tryEntries[A];if(M.tryLoc<=this.prev&&n.call(M,"finallyLoc")&&this.prev=0;--R){var A=this.tryEntries[R];if(A.finallyLoc===w)return this.complete(A.completion,A.afterLoc),j(A),y}},catch:function(w){for(var R=this.tryEntries.length-1;R>=0;--R){var A=this.tryEntries[R];if(A.tryLoc===w){var M=A.completion;if(M.type==="throw"){var F=M.arg;j(A)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(w,R,A){return this.delegate={iterator:z(w),resultName:R,nextLoc:A},this.method==="next"&&(this.arg=e),y}},t}function fs(e,t,r,n,o,i,s){try{var l=e[i](s),c=l.value}catch(u){r(u);return}l.done?t(c):Promise.resolve(c).then(n,o)}function lr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(c){fs(i,n,o,s,l,"next",c)}function l(c){fs(i,n,o,s,l,"throw",c)}s(void 0)})}}var vn=a._objectSpread2({},a.ReactDOM$1),Hg=vn.version,kg=vn.render,Wg=vn.unmountComponentAtNode,Eo;try{var Dg=Number((Hg||"").split(".")[0]);Dg>=18&&(Eo=vn.createRoot)}catch{}function ps(e){var t=vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&a._typeof(t)==="object"&&(t.usingClientEntryPoint=e)}var lo="__rc_react_root__";function qg(e,t){ps(!0);var r=t[lo]||Eo(t);ps(!1),r.render(e),t[lo]=r}function Gg(e,t){kg(e,t)}function Ug(e,t){if(Eo){qg(e,t);return}Gg(e,t)}function Xg(e){return Na.apply(this,arguments)}function Na(){return Na=lr(Ve().mark(function e(t){return Ve().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[lo])===null||o===void 0||o.unmount(),delete t[lo]}));case 1:case"end":return n.stop()}},e)})),Na.apply(this,arguments)}function Kg(e){Wg(e)}function Qg(e){return La.apply(this,arguments)}function La(){return La=lr(Ve().mark(function e(t){return Ve().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Eo===void 0){n.next=2;break}return n.abrupt("return",Xg(t));case 2:Kg(t);case 3:case"end":return n.stop()}},e)})),La.apply(this,arguments)}const Zo=()=>({height:0,opacity:0}),gs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Yg=e=>({height:e?e.offsetHeight:0}),Jo=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",ms=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Zo,onEnterStart:Zo,onAppearActive:gs,onEnterActive:gs,onLeaveStart:Yg,onLeaveActive:Zo,onAppearEnd:Jo,onEnterEnd:Jo,onLeaveEnd:Jo,motionDeadline:500}},Zg=(e,t,r)=>r!==void 0?r:`${e}-${t}`,vi=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,s=o.height;if(i||s)return!0}}return!1},Jg=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},em=gi("Wave",e=>[Jg(e)]);function tm(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function ea(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&tm(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function rm(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return ea(t)?t:ea(r)?r:ea(n)?n:null}const Sc="ant-wave-target";function ta(e){return Number.isNaN(e)?0:e}const nm=e=>{const{className:t,target:r,component:n}=e,o=a.reactExports.useRef(null),[i,s]=a.reactExports.useState(null),[l,c]=a.reactExports.useState([]),[u,d]=a.reactExports.useState(0),[f,p]=a.reactExports.useState(0),[b,x]=a.reactExports.useState(0),[g,y]=a.reactExports.useState(0),[m,h]=a.reactExports.useState(!1),v={left:u,top:f,width:b,height:g,borderRadius:l.map(C=>`${C}px`).join(" ")};i&&(v["--wave-color"]=i);function E(){const C=getComputedStyle(r);s(rm(r));const S=C.position==="static",{borderLeftWidth:O,borderTopWidth:P}=C;d(S?r.offsetLeft:ta(-parseFloat(O))),p(S?r.offsetTop:ta(-parseFloat(P))),x(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:T,borderBottomLeftRadius:L,borderBottomRightRadius:j}=C;c([I,T,j,L].map(N=>ta(parseFloat(N))))}if(a.reactExports.useEffect(()=>{if(r){const C=Qe(()=>{E(),h(!0)});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(E),S.observe(r)),()=>{Qe.cancel(C),S==null||S.disconnect()}}},[]),!m)return null;const $=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Sc));return a.reactExports.createElement(Lr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,S)=>{var O;if(S.deadline||S.propertyName==="opacity"){const P=(O=o.current)===null||O===void 0?void 0:O.parentElement;Qg(P).then(()=>{P==null||P.remove()})}return!1}},C=>{let{className:S}=C;return a.reactExports.createElement("div",{ref:o,className:a.classNames(t,{"wave-quick":$},S),style:v})})},om=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Ug(a.reactExports.createElement(nm,Object.assign({},t,{target:e})),o)},am=om;function im(e,t,r){const{wave:n}=a.reactExports.useContext(Ie),[,o,i]=ft(),s=gt(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Sc}`)||d,{showEffect:p}=n||{};(p||am)(f,{className:t,token:o,component:r,event:u,hashId:i})}),l=a.reactExports.useRef();return u=>{Qe.cancel(l.current),l.current=Qe(()=>{s(u)})}}const sm=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=a.reactExports.useContext(Ie),i=a.reactExports.useRef(null),s=o("wave"),[,l]=em(s),c=im(i,a.classNames(s,l),n);if(a.React.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||r)return;const f=p=>{!vi(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!a.React.isValidElement(t))return t??null;const u=Mr(t)?zt(t.ref,i):i;return a.cloneElement(t,{ref:u})},lm=sm,hn=e=>{const t=a.React.useContext(fn);return a.React.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Cc=a.reactExports.createContext(null),hi=(e,t)=>{const r=a.reactExports.useContext(Cc),n=a.reactExports.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:s}=r,l=o==="vertical"?"-vertical-":"-";return a.classNames(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:s,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},za=e=>{let{children:t}=e;return a.reactExports.createElement(Cc.Provider,{value:null},t)};var cm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:r}=a.reactExports.useContext(Ie),{prefixCls:n,size:o,className:i}=e,s=cm(e,["prefixCls","size","className"]),l=t("btn-group",n),[,,c]=ft();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=a.classNames(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:r==="rtl"},i,c);return a.reactExports.createElement(wc.Provider,{value:o},a.reactExports.createElement("div",Object.assign({},s,{className:d})))},dm=um,vs=/^[\u4e00-\u9fa5]{2}$/,Ba=vs.test.bind(vs);function hs(e){return typeof e=="string"}function ra(e){return e==="text"||e==="link"}function fm(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hs(e.type)&&Ba(e.props.children)?a.cloneElement(e,{children:e.props.children.split("").join(r)}):hs(e)?Ba(e)?a.React.createElement("span",null,e.split("").join(r)):a.React.createElement("span",null,e):a.isFragment(e)?a.React.createElement("span",null,e):e}function pm(e,t){let r=!1;const n=[];return a.React.Children.forEach(e,o=>{const i=typeof o,s=i==="string"||i==="number";if(r&&s){const l=n.length-1,c=n[l];n[l]=`${c}${o}`}else n.push(o);r=s}),a.React.Children.map(n,o=>fm(o,t))}const gm=a.reactExports.forwardRef((e,t)=>{const{className:r,style:n,children:o,prefixCls:i}=e,s=a.classNames(`${i}-icon`,r);return a.React.createElement("span",{ref:t,className:s,style:n},o)}),$c=gm,bs=a.reactExports.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e;const s=a.classNames(`${r}-loading-icon`,n);return a.React.createElement($c,{prefixCls:r,className:s,style:o,ref:t},a.React.createElement(yl,{className:i}))}),na=()=>({width:0,opacity:0,transform:"scale(0)"}),oa=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),mm=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:i}=e,s=!!r;return n?a.React.createElement(bs,{prefixCls:t,className:o,style:i}):a.React.createElement(Lr,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:na,onAppearActive:oa,onEnterStart:na,onEnterActive:oa,onLeaveStart:oa,onLeaveActive:na},(l,c)=>{let{className:u,style:d}=l;return a.React.createElement(bs,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:c,iconClassName:u})})},vm=mm,ys=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),hm=e=>{const{componentCls:t,fontSize:r,lineWidth:n,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(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},ys(`${t}-primary`,o),ys(`${t}-danger`,i)]}},bm=hm,Pc=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Ye(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},Rc=e=>{var t,r,n,o,i,s;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:to(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:to(c),p=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:to(u);return{fontWeight:400,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.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*p)/2-e.lineWidth,0)}},ym=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Bp(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},wt=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),xm=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Em=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Sm=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),on=(e,t,r,n,o,i,s,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},wt(e,Object.assign({background:t},s),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),bi=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Sm(e))}),Oc=e=>Object.assign({},bi(e)),co=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),_c=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),wt(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),on(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},wt(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),on(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),bi(e))}),Cm=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),wt(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),on(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},wt(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),on(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bi(e))}),wm=e=>Object.assign(Object.assign({},_c(e)),{borderStyle:"dashed"}),$m=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},wt(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),co(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},wt(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),co(e))}),Pm=e=>Object.assign(Object.assign(Object.assign({},wt(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),co(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},co(e)),wt(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),Rm=e=>{const{componentCls:t}=e;return{[`${t}-default`]:_c(e),[`${t}-primary`]:Cm(e),[`${t}-dashed`]:wm(e),[`${t}-link`]:$m(e),[`${t}-text`]:Pm(e),[`${t}-ghost`]:on(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},yi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:o,lineHeight:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:u}=e,d=`${r}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:n,padding:`${le(u)} ${le(l)}`,borderRadius:s,[`&${d}`]:{width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:xm(e)},{[`${r}${r}-round${t}`]:Em(e)}]},Om=e=>{const t=Ye(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return yi(t,e.componentCls)},_m=e=>{const t=Ye(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return yi(t,`${e.componentCls}-sm`)},Im=e=>{const t=Ye(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return yi(t,`${e.componentCls}-lg`)},jm=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Fm=Nr("Button",e=>{const t=Pc(e);return[ym(t),Om(t),_m(t),Im(t),jm(t),Rm(t),bm(t)]},Rc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Tm(e,t,r){const{focusElCls:n,focus:o,borderElCls:i}=r,s=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Mm(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";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 Ic(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},Tm(e,n,t)),Mm(r,n,t))}}function Am(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Nm(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 Lm(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Am(e,t)),Nm(e.componentCls,t))}}const zm=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${le(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${le(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Bm=lc(["Button","compact"],e=>{const t=Pc(e);return[Ic(t),Lm(t),zm(t)]},Rc);var Vm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{loading:o=!1,prefixCls:i,type:s="default",danger:l,shape:c="default",size:u,styles:d,disabled:f,className:p,rootClassName:b,children:x,icon:g,ghost:y=!1,block:m=!1,htmlType:h="button",classNames:v,style:E={}}=e,$=Vm(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:C,autoInsertSpaceInButton:S,direction:O,button:P}=a.reactExports.useContext(Ie),I=C("btn",i),[T,L,j]=Fm(I),N=a.reactExports.useContext(dn),z=f??N,_=a.reactExports.useContext(wc),w=a.reactExports.useMemo(()=>Hm(o),[o]),[R,A]=a.reactExports.useState(w.loading),[M,F]=a.reactExports.useState(!1),W=zt(t,a.reactExports.createRef()),G=a.reactExports.Children.count(x)===1&&!g&&!ra(s);a.reactExports.useEffect(()=>{let Q=null;w.delay>0?Q=setTimeout(()=>{Q=null,A(!0)},w.delay):A(w.loading);function ae(){Q&&(clearTimeout(Q),Q=null)}return ae},[w]),a.reactExports.useEffect(()=>{if(!W||!W.current||S===!1)return;const Q=W.current.textContent;G&&Ba(Q)?M||F(!0):M&&F(!1)},[W]);const V=Q=>{const{onClick:ae}=e;if(R||z){Q.preventDefault();return}ae==null||ae(Q)},H=S!==!1,{compactSize:U,compactItemClassnames:X}=hi(I,O),ee={large:"lg",small:"sm",middle:void 0},re=hn(Q=>{var ae,oe;return(oe=(ae=u??U)!==null&&ae!==void 0?ae:_)!==null&&oe!==void 0?oe:Q}),J=re&&ee[re]||"",ce=R?"loading":g,se=un($,["navigate"]),K=a.classNames(I,L,j,{[`${I}-${c}`]:c!=="default"&&c,[`${I}-${s}`]:s,[`${I}-${J}`]:J,[`${I}-icon-only`]:!x&&x!==0&&!!ce,[`${I}-background-ghost`]:y&&!ra(s),[`${I}-loading`]:R,[`${I}-two-chinese-chars`]:M&&H&&!R,[`${I}-block`]:m,[`${I}-dangerous`]:!!l,[`${I}-rtl`]:O==="rtl"},X,p,b,P==null?void 0:P.className),ue=Object.assign(Object.assign({},P==null?void 0:P.style),E),ge=a.classNames(v==null?void 0:v.icon,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.icon),fe=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((n=P==null?void 0:P.styles)===null||n===void 0?void 0:n.icon)||{}),be=g&&!R?a.React.createElement($c,{prefixCls:I,className:ge,style:fe},g):a.React.createElement(vm,{existIcon:!!g,prefixCls:I,loading:!!R}),D=x||x===0?pm(x,G&&H):null;if(se.href!==void 0)return T(a.React.createElement("a",Object.assign({},se,{className:a.classNames(K,{[`${I}-disabled`]:z}),href:z?void 0:se.href,style:ue,onClick:V,ref:W,tabIndex:z?-1:0}),be,D));let q=a.React.createElement("button",Object.assign({},$,{type:h,className:K,style:ue,onClick:V,disabled:z,ref:W}),be,D,!!X&&a.React.createElement(Bm,{key:"compact",prefixCls:I}));return ra(s)||(q=a.React.createElement(lm,{component:"Button",disabled:!!R},q)),T(q)},xi=a.reactExports.forwardRef(km);xi.Group=dm;xi.__ANT_BUTTON=!0;const jc=xi;var Fc=a.reactExports.createContext(null),xs=[];function Wm(e,t){var r=a.reactExports.useState(function(){if(!We())return null;var x=document.createElement("div");return x}),n=k(r,1),o=n[0],i=a.reactExports.useRef(!1),s=a.reactExports.useContext(Fc),l=a.reactExports.useState(xs),c=k(l,2),u=c[0],d=c[1],f=s||(i.current?void 0:function(x){d(function(g){var y=[x].concat(Z(g));return y})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function b(){var x;(x=o.parentElement)===null||x===void 0||x.removeChild(o),i.current=!1}return Le(function(){return e?s?s(p):p():b(),b},[e]),Le(function(){u.length&&(u.forEach(function(x){return x()}),d(xs))},[u]),[o,f]}var aa;function Dm(e){if(typeof document>"u")return 0;if(e||aa===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),n=r.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var o=t.offsetWidth;r.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=r.clientWidth),document.body.removeChild(r),aa=o-i}return aa}function Es(e){var t=e.match(/^(.*)px$/),r=Number(t==null?void 0:t[1]);return Number.isNaN(r)?Dm():r}function qm(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),r=t.width,n=t.height;return{width:Es(r),height:Es(n)}}function Gm(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Um="rc-util-locker-".concat(Date.now()),Ss=0;function Xm(e){var t=!!e,r=a.reactExports.useState(function(){return Ss+=1,"".concat(Um,"_").concat(Ss)}),n=k(r,1),o=n[0];Le(function(){if(t){var i=qm(document.body).width,s=Gm();Lt(` +html body { + overflow-y: hidden; + `.concat(s?"width: calc(100% - ".concat(i,"px);"):"",` +}`),o)}else Jr(o);return function(){Jr(o)}},[t,o])}var Cs=!1;function Km(e){return typeof e=="boolean"&&(Cs=e),Cs}var ws=function(t){return t===!1?!1:!We()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Tc=a.reactExports.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,c=a.reactExports.useState(r),u=k(c,2),d=u[0],f=u[1],p=d||r;a.reactExports.useEffect(function(){(s||r)&&f(r)},[r,s]);var b=a.reactExports.useState(function(){return ws(o)}),x=k(b,2),g=x[0],y=x[1];a.reactExports.useEffect(function(){var T=ws(o);y(T??null)});var m=Wm(p&&!g),h=k(m,2),v=h[0],E=h[1],$=g??v;Xm(n&&r&&We()&&($===v||$===document.body));var C=null;if(l&&Mr(l)&&t){var S=l;C=S.ref}var O=ii(C,t);if(!p||!We()||g===void 0)return null;var P=$===!1||Km(),I=l;return t&&(I=a.reactExports.cloneElement(l,{ref:O})),a.reactExports.createElement(Fc.Provider,{value:E},P?I:a.reactDomExports.createPortal(I,$))});function Qm(){var e=a._objectSpread2({},a.React$1);return e.useId}var $s=0,Ps=Qm();const Ym=Ps?function(t){var r=Ps();return t||r}:function(t){var r=a.reactExports.useState("ssr-id"),n=k(r,2),o=n[0],i=n[1];return a.reactExports.useEffect(function(){var s=$s;$s+=1,i("rc_unique_".concat(s))},[]),t||o};var er="RC_FORM_INTERNAL_HOOKS",he=function(){Ke(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},sr=a.reactExports.createContext({getFieldValue:he,getFieldsValue:he,getFieldError:he,getFieldWarning:he,getFieldsError:he,isFieldsTouched:he,isFieldTouched:he,isFieldValidating:he,isFieldsValidating:he,resetFields:he,setFields:he,setFieldValue:he,setFieldsValue:he,validateFields:he,submit:he,getInternalHooks:function(){return he(),{dispatch:he,initEntityValue:he,registerField:he,useSubscribe:he,setInitialValues:he,destroyForm:he,setCallbacks:he,registerWatch:he,getFields:he,setValidateMessages:he,setPreserve:he,getInitialValue:he}}}),an=a.reactExports.createContext(null);function Va(e){return e==null?[]:Array.isArray(e)?e:[e]}function Zm(e){return e&&!!e._init}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ro(e,t,r){return ev()?ro=Reflect.construct.bind():ro=function(o,i,s){var l=[null];l.push.apply(l,i);var c=Function.bind.apply(o,l),u=new c;return s&&sn(u,s.prototype),u},ro.apply(null,arguments)}function tv(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ka(e){var t=typeof Map=="function"?new Map:void 0;return ka=function(n){if(n===null||!tv(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return ro(n,arguments,Ha(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),sn(o,n)},ka(e)}var rv=/%[sdj%]/g,nv=function(){};function Wa(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Xe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return l;switch(l){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function ov(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Te(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ov(t)&&typeof e=="string"&&!e)}function av(e,t,r){var n=[],o=0,i=e.length;function s(l){n.push.apply(n,l||[]),o++,o===i&&r(n)}e.forEach(function(l){t(l,s)})}function Rs(e,t,r){var n=0,o=e.length;function i(s){if(s&&s.length){r(s);return}var l=n;n=n+1,l()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ur={integer:function(t){return Ur.number(t)&&parseInt(t,10)===t},float:function(t){return Ur.number(t)&&!Ur.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},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)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Ur.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(js.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(dv())},hex:function(t){return typeof t=="string"&&!!t.match(js.hex)}},fv=function(t,r,n,o,i){if(t.required&&r===void 0){Mc(t,r,n,o,i);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?Ur[l](r)||o.push(Xe(i.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&o.push(Xe(i.messages.types[l],t.fullField,t.type))},pv=function(t,r,n,o,i){var s=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,p=typeof r=="number",b=typeof r=="string",x=Array.isArray(r);if(p?f="number":b?f="string":x&&(f="array"),!f)return!1;x&&(d=r.length),b&&(d=r.replace(u,"_").length),s?d!==t.len&&o.push(Xe(i.messages[f].len,t.fullField,t.len)):l&&!c&&dt.max?o.push(Xe(i.messages[f].max,t.fullField,t.max)):l&&c&&(dt.max)&&o.push(Xe(i.messages[f].range,t.fullField,t.min,t.max))},Er="enum",gv=function(t,r,n,o,i){t[Er]=Array.isArray(t[Er])?t[Er]:[],t[Er].indexOf(r)===-1&&o.push(Xe(i.messages[Er],t.fullField,t[Er].join(", ")))},mv=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Xe(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(r)||o.push(Xe(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},de={required:Mc,whitespace:uv,type:fv,range:pv,enum:gv,pattern:mv},vv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r,"string")&&!t.required)return n();de.required(t,r,o,s,i,"string"),Te(r,"string")||(de.type(t,r,o,s,i),de.range(t,r,o,s,i),de.pattern(t,r,o,s,i),t.whitespace===!0&&de.whitespace(t,r,o,s,i))}n(s)},hv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i),r!==void 0&&de.type(t,r,o,s,i)}n(s)},bv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),Te(r)&&!t.required)return n();de.required(t,r,o,s,i),r!==void 0&&(de.type(t,r,o,s,i),de.range(t,r,o,s,i))}n(s)},yv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i),r!==void 0&&de.type(t,r,o,s,i)}n(s)},xv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i),Te(r)||de.type(t,r,o,s,i)}n(s)},Ev=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i),r!==void 0&&(de.type(t,r,o,s,i),de.range(t,r,o,s,i))}n(s)},Sv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i),r!==void 0&&(de.type(t,r,o,s,i),de.range(t,r,o,s,i))}n(s)},Cv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return n();de.required(t,r,o,s,i,"array"),r!=null&&(de.type(t,r,o,s,i),de.range(t,r,o,s,i))}n(s)},wv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i),r!==void 0&&de.type(t,r,o,s,i)}n(s)},$v="enum",Pv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i),r!==void 0&&de[$v](t,r,o,s,i)}n(s)},Rv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r,"string")&&!t.required)return n();de.required(t,r,o,s,i),Te(r,"string")||de.pattern(t,r,o,s,i)}n(s)},Ov=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r,"date")&&!t.required)return n();if(de.required(t,r,o,s,i),!Te(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),de.type(t,c,o,s,i),c&&de.range(t,c.getTime(),o,s,i)}}n(s)},_v=function(t,r,n,o,i){var s=[],l=Array.isArray(r)?"array":typeof r;de.required(t,r,o,s,i,l),n(s)},ia=function(t,r,n,o,i){var s=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(Te(r,s)&&!t.required)return n();de.required(t,r,o,l,i,s),Te(r,s)||de.type(t,r,o,l,i)}n(l)},Iv=function(t,r,n,o,i){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Te(r)&&!t.required)return n();de.required(t,r,o,s,i)}n(s)},Yr={string:vv,method:hv,number:bv,boolean:yv,regexp:xv,integer:Ev,float:Sv,array:Cv,object:wv,enum:Pv,pattern:Rv,date:Ov,url:ia,hex:ia,email:ia,required:_v,any:Iv};function Da(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var qa=Da(),bn=function(){function e(r){this.rules=null,this._messages=qa,this.define(r)}var t=e.prototype;return t.define=function(n){var o=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var s=n[i];o.rules[i]=Array.isArray(s)?s:[s]})},t.messages=function(n){return n&&(this._messages=Is(Da(),n)),this._messages},t.validate=function(n,o,i){var s=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=n,c=o,u=i;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(g){var y=[],m={};function h(E){if(Array.isArray(E)){var $;y=($=y).concat.apply($,E)}else y.push(E)}for(var v=0;v2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Nc(t,n,r)})}function Nc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function Av(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||a._typeof(e)!=="object"||a._typeof(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return Z(o).every(function(i){var s=e[i],l=t[i];return typeof s=="function"&&typeof l=="function"?!0:s===l})}function Nv(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&a._typeof(t.target)==="object"&&e in t.target?t.target[e]:t}function As(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(Z(e.slice(0,r)),[o],Z(e.slice(r,t)),Z(e.slice(t+1,n))):i<0?[].concat(Z(e.slice(0,t)),Z(e.slice(t+1,r+1)),[o],Z(e.slice(r+1,n))):e}var Lv=["name"],tt=[];function Ns(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var Ei=function(e){a._inherits(r,e);var t=a._createSuper(r);function r(n){var o;if(a._classCallCheck(this,r),o=t.call(this,n),a._defineProperty(a._assertThisInitialized(o),"state",{resetCount:0}),a._defineProperty(a._assertThisInitialized(o),"cancelRegisterFunc",null),a._defineProperty(a._assertThisInitialized(o),"mounted",!1),a._defineProperty(a._assertThisInitialized(o),"touched",!1),a._defineProperty(a._assertThisInitialized(o),"dirty",!1),a._defineProperty(a._assertThisInitialized(o),"validatePromise",void 0),a._defineProperty(a._assertThisInitialized(o),"prevValidating",void 0),a._defineProperty(a._assertThisInitialized(o),"errors",tt),a._defineProperty(a._assertThisInitialized(o),"warnings",tt),a._defineProperty(a._assertThisInitialized(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Re(f)),o.cancelRegisterFunc=null}),a._defineProperty(a._assertThisInitialized(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Z(p),Z(u)):[]}),a._defineProperty(a._assertThisInitialized(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),a._defineProperty(a._assertThisInitialized(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),a._defineProperty(a._assertThisInitialized(o),"metaCache",null),a._defineProperty(a._assertThisInitialized(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=a._objectSpread2(a._objectSpread2({},o.getMeta()),{},{destroy:c});$l(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),a._defineProperty(a._assertThisInitialized(o),"onStoreChange",function(c,u,d){var f=o.props,p=f.shouldUpdate,b=f.dependencies,x=b===void 0?[]:b,g=f.onReset,y=d.store,m=o.getNamePath(),h=o.getValue(c),v=o.getValue(y),E=u&&jr(u,m);switch(d.type==="valueUpdate"&&d.source==="external"&&h!==v&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=tt,o.warnings=tt,o.triggerMetaEvent()),d.type){case"reset":if(!u||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=tt,o.warnings=tt,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p){o.reRender();return}break}case"setField":{var $=d.data;if(E){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||tt),"warnings"in $&&(o.warnings=$.warnings||tt),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&jr(u,m,!0)){o.reRender();return}if(p&&!m.length&&Ns(p,c,y,h,v,d)){o.reRender();return}break}case"dependenciesUpdate":{var C=x.map(Re);if(C.some(function(S){return jr(d.relatedFields,S)})){o.reRender();return}break}default:if(E||(!x.length||m.length||p)&&Ns(p,c,y,h,v,d)){o.reRender();return}break}p===!0&&o.reRender()}),a._defineProperty(a._assertThisInitialized(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},p=f.triggerName,b=f.validateOnly,x=b===void 0?!1:b,g=Promise.resolve().then(lr(Ve().mark(function y(){var m,h,v,E,$,C,S;return Ve().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(m=o.props,h=m.validateFirst,v=h===void 0?!1:h,E=m.messageVariables,$=m.validateDebounce,C=o.getRules(),p&&(C=C.filter(function(I){return I}).filter(function(I){var T=I.validateTrigger;if(!T)return!0;var L=Va(T);return L.includes(p)})),!($&&p)){P.next=10;break}return P.next=8,new Promise(function(I){setTimeout(I,$)});case 8:if(o.validatePromise===g){P.next=10;break}return P.abrupt("return",[]);case 10:return S=Fv(u,d,C,c,v,E),S.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tt;if(o.validatePromise===g){var T;o.validatePromise=null;var L=[],j=[];(T=I.forEach)===null||T===void 0||T.call(I,function(N){var z=N.rule.warningOnly,_=N.errors,w=_===void 0?tt:_;z?j.push.apply(j,Z(w)):L.push.apply(L,Z(w))}),o.errors=L,o.warnings=j,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",S);case 13:case"end":return P.stop()}},y)})));return x||(o.validatePromise=g,o.dirty=!0,o.errors=tt,o.warnings=tt,o.triggerMetaEvent(),o.reRender()),g}),a._defineProperty(a._assertThisInitialized(o),"isFieldValidating",function(){return!!o.validatePromise}),a._defineProperty(a._assertThisInitialized(o),"isFieldTouched",function(){return o.touched}),a._defineProperty(a._assertThisInitialized(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(er),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),a._defineProperty(a._assertThisInitialized(o),"getErrors",function(){return o.errors}),a._defineProperty(a._assertThisInitialized(o),"getWarnings",function(){return o.warnings}),a._defineProperty(a._assertThisInitialized(o),"isListField",function(){return o.props.isListField}),a._defineProperty(a._assertThisInitialized(o),"isList",function(){return o.props.isList}),a._defineProperty(a._assertThisInitialized(o),"isPreserve",function(){return o.props.preserve}),a._defineProperty(a._assertThisInitialized(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),a._defineProperty(a._assertThisInitialized(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return a._objectSpread2(a._objectSpread2({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=en(c);return d.length!==1||!a.reactExports.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),a._defineProperty(a._assertThisInitialized(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return mt(c||u(!0),d)}),a._defineProperty(a._assertThisInitialized(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,p=u.getValueFromEvent,b=u.normalize,x=u.valuePropName,g=u.getValueProps,y=u.fieldContext,m=f!==void 0?f:y.validateTrigger,h=o.getNamePath(),v=y.getInternalHooks,E=y.getFieldsValue,$=v(er),C=$.dispatch,S=o.getValue(),O=g||function(L){return a._defineProperty({},x,L)},P=c[d],I=a._objectSpread2(a._objectSpread2({},c),O(S));I[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var L,j=arguments.length,N=new Array(j),z=0;z=0&&I<=T.length?(d.keys=[].concat(Z(d.keys.slice(0,I)),[d.id],Z(d.keys.slice(I))),v([].concat(Z(T.slice(0,I)),[P],Z(T.slice(I))))):(d.keys=[].concat(Z(d.keys),[d.id]),v([].concat(Z(T),[P]))),d.id+=1},remove:function(P){var I=$(),T=new Set(Array.isArray(P)?P:[P]);T.size<=0||(d.keys=d.keys.filter(function(L,j){return!T.has(j)}),v(I.filter(function(L,j){return!T.has(j)})))},move:function(P,I){if(P!==I){var T=$();P<0||P>=T.length||I<0||I>=T.length||(d.keys=As(d.keys,P,I),v(As(T,P,I)))}}},S=h||[];return Array.isArray(S)||(S=[]),n(S.map(function(O,P){var I=d.keys[P];return I===void 0&&(d.keys[P]=d.id,I=d.keys[P],d.id+=1),{name:P,key:I,isListField:!0}}),C,y)})))}function zv(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(s,l){s.catch(function(c){return t=!0,c}).then(function(c){r-=1,n[l]=c,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var zc="__@field_split__";function sa(e){return e.map(function(t){return"".concat(a._typeof(t),":").concat(t)}).join(zc)}var Sr=function(){function e(){a._classCallCheck(this,e),a._defineProperty(this,"kvs",new Map)}return a._createClass(e,[{key:"set",value:function(r,n){this.kvs.set(sa(r),n)}},{key:"get",value:function(r){return this.kvs.get(sa(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(sa(r))}},{key:"map",value:function(r){return Z(this.kvs.entries()).map(function(n){var o=k(n,2),i=o[0],s=o[1],l=i.split(zc);return r({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=k(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:s})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),Bv=["name"],Vv=a._createClass(function e(t){var r=this;a._classCallCheck(this,e),a._defineProperty(this,"formHooked",!1),a._defineProperty(this,"forceRootUpdate",void 0),a._defineProperty(this,"subscribable",!0),a._defineProperty(this,"store",{}),a._defineProperty(this,"fieldEntities",[]),a._defineProperty(this,"initialValues",{}),a._defineProperty(this,"callbacks",{}),a._defineProperty(this,"validateMessages",null),a._defineProperty(this,"preserve",null),a._defineProperty(this,"lastValidatePromise",null),a._defineProperty(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),a._defineProperty(this,"getInternalHooks",function(n){return n===er?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Ke(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),a._defineProperty(this,"useSubscribe",function(n){r.subscribable=n}),a._defineProperty(this,"prevWithoutPreserves",null),a._defineProperty(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,s=Or(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var c=l.key;s=lt(s,c,mt(n,c))}),r.prevWithoutPreserves=null,r.updateStore(s)}}),a._defineProperty(this,"destroyForm",function(){var n=new Sr;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=n}),a._defineProperty(this,"getInitialValue",function(n){var o=mt(r.initialValues,n);return n.length?Or(o):o}),a._defineProperty(this,"setCallbacks",function(n){r.callbacks=n}),a._defineProperty(this,"setValidateMessages",function(n){r.validateMessages=n}),a._defineProperty(this,"setPreserve",function(n){r.preserve=n}),a._defineProperty(this,"watchList",[]),a._defineProperty(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),a._defineProperty(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(s){s(o,i,n)})}}),a._defineProperty(this,"timeoutId",null),a._defineProperty(this,"warningUnhooked",function(){}),a._defineProperty(this,"updateStore",function(n){r.store=n}),a._defineProperty(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),a._defineProperty(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Sr;return r.getFieldEntities(n).forEach(function(i){var s=i.getNamePath();o.set(s,i)}),o}),a._defineProperty(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var s=Re(i);return o.get(s)||{INVALIDATE_NAME_PATH:Re(i)}})}),a._defineProperty(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,s,l;if(n===!0||Array.isArray(n)?(i=n,s=o):n&&a._typeof(n)==="object"&&(l=n.strict,s=n.filter),i===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return c.forEach(function(d){var f,p,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var x,g;if((x=(g=d).isList)!==null&&x!==void 0&&x.call(g))return}else if(!i&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!s)u.push(b);else{var y="getMeta"in d?d.getMeta():null;s(y)&&u.push(b)}}),Ms(r.store,u.map(Re))}),a._defineProperty(this,"getFieldValue",function(n){r.warningUnhooked();var o=Re(n);return mt(r.store,o)}),a._defineProperty(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,s){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Re(n[s]),errors:[],warnings:[]}})}),a._defineProperty(this,"getFieldError",function(n){r.warningUnhooked();var o=Re(n),i=r.getFieldsError([o])[0];return i.errors}),a._defineProperty(this,"getFieldWarning",function(n){r.warningUnhooked();var o=Re(n),i=r.getFieldsError([o])[0];return i.warnings}),a._defineProperty(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Sr,i=r.getFieldEntities(!0);i.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var s=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),b=r.getInitialValue(p);if(b!==void 0)Ke(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var x=o.get(p);if(x&&x.size>1)Ke(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var g=r.getFieldValue(p),y=d.isListField();!y&&(!n.skipExist||g===void 0)&&r.updateStore(lt(r.store,p,Z(x)[0].value))}}}})},l;n.entities?l=n.entities:n.namePathList?(l=[],n.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,Z(Z(u).map(function(f){return f.entity})))}})):l=i,s(l)}),a._defineProperty(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Or(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(Re);i.forEach(function(s){var l=r.getInitialValue(s);r.updateStore(lt(r.store,s,l))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),a._defineProperty(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(s){var l=s.name,c=a._objectWithoutProperties(s,Bv),u=Re(l);i.push(u),"value"in c&&r.updateStore(lt(r.store,u,c.value)),r.notifyObservers(o,[u],{type:"setField",data:s})}),r.notifyWatch(i)}),a._defineProperty(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var s=i.getNamePath(),l=i.getMeta(),c=a._objectSpread2(a._objectSpread2({},l),{},{name:s,value:r.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),a._defineProperty(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),s=mt(r.store,i);s===void 0&&r.updateStore(lt(r.store,i,o))}}),a._defineProperty(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),a._defineProperty(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(l)&&(!s||c.length>1)){var u=s?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==u&&r.fieldEntities.every(function(f){return!Nc(f.getNamePath(),o)})){var d=r.store;r.updateStore(lt(d,o,u,!0)),r.notifyObservers(d,[o],{type:"remove"}),r.triggerDependenciesUpdate(d,o)}}r.notifyWatch([o])}}),a._defineProperty(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var s=n.namePath,l=n.triggerName;r.validateFields([s],{triggerName:l});break}}}),a._defineProperty(this,"notifyObservers",function(n,o,i){if(r.subscribable){var s=a._objectSpread2(a._objectSpread2({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(n,o,s)})}else r.forceRootUpdate()}),a._defineProperty(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Z(i))}),i}),a._defineProperty(this,"updateValue",function(n,o){var i=Re(n),s=r.store;r.updateStore(lt(r.store,i,o)),r.notifyObservers(s,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var l=r.triggerDependenciesUpdate(s,i),c=r.callbacks.onValuesChange;if(c){var u=Ms(r.store,[i]);c(u,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(Z(l)))}),a._defineProperty(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=Or(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),a._defineProperty(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o}])}),a._defineProperty(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],s=new Sr;r.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Re(d);s.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var l=function c(u){var d=s.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(i.push(p),c(p))}})};return l(n),i}),a._defineProperty(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var s=r.getFields();if(o){var l=new Sr;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),s.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=s.filter(function(u){var d=u.name;return jr(n,d)});c.length&&i(c,s)}}),a._defineProperty(this,"validateFields",function(n,o){r.warningUnhooked();var i,s;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,s=o):s=n;var l=!!i,c=l?i.map(Re):[],u=[],d=String(Date.now()),f=new Set,p=s||{},b=p.recursive,x=p.dirty;r.getFieldEntities(!0).forEach(function(h){if(l||c.push(h.getNamePath()),!(!h.props.rules||!h.props.rules.length)&&!(x&&!h.isFieldDirty())){var v=h.getNamePath();if(f.add(v.join(d)),!l||jr(c,v,b)){var E=h.validateRules(a._objectSpread2({validateMessages:a._objectSpread2(a._objectSpread2({},Ac),r.validateMessages)},s));u.push(E.then(function(){return{name:v,errors:[],warnings:[]}}).catch(function($){var C,S=[],O=[];return(C=$.forEach)===null||C===void 0||C.call($,function(P){var I=P.rule.warningOnly,T=P.errors;I?O.push.apply(O,Z(T)):S.push.apply(S,Z(T))}),S.length?Promise.reject({name:v,errors:S,warnings:O}):{name:v,errors:S,warnings:O}}))}}});var g=zv(u);r.lastValidatePromise=g,g.catch(function(h){return h}).then(function(h){var v=h.map(function(E){var $=E.name;return $});r.notifyObservers(r.store,v,{type:"validateFinish"}),r.triggerOnFieldsChange(v,h)});var y=g.then(function(){return r.lastValidatePromise===g?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(h){var v=h.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:v,outOfDate:r.lastValidatePromise!==g})});y.catch(function(h){return h});var m=c.filter(function(h){return f.has(h.join(d))});return r.triggerOnFieldsChange(m),y}),a._defineProperty(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function Ci(e){var t=a.reactExports.useRef(),r=a.reactExports.useState({}),n=k(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},s=new Vv(i);t.current=s.getForm()}return[t.current]}var Qa=a.reactExports.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Bc=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,s=a.reactExports.useContext(Qa),l=a.reactExports.useRef({});return a.reactExports.createElement(Qa.Provider,{value:a._objectSpread2(a._objectSpread2({},s),{},{validateMessages:a._objectSpread2(a._objectSpread2({},s.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:l.current}),s.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),s.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=a._objectSpread2(a._objectSpread2({},l.current),{},a._defineProperty({},u,d))),s.registerForm(u,d)},unregisterForm:function(u){var d=a._objectSpread2({},l.current);delete d[u],l.current=d,s.unregisterForm(u)}})},i)},Hv=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],kv=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,s=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,p=t.validateTrigger,b=p===void 0?"onChange":p,x=t.onValuesChange,g=t.onFieldsChange,y=t.onFinish,m=t.onFinishFailed,h=a._objectWithoutProperties(t,Hv),v=a.reactExports.useContext(Qa),E=Ci(s),$=k(E,1),C=$[0],S=C.getInternalHooks(er),O=S.useSubscribe,P=S.setInitialValues,I=S.setCallbacks,T=S.setValidateMessages,L=S.setPreserve,j=S.destroyForm;a.reactExports.useImperativeHandle(r,function(){return C}),a.reactExports.useEffect(function(){return v.registerForm(n,C),function(){v.unregisterForm(n)}},[v,C,n]),T(a._objectSpread2(a._objectSpread2({},v.validateMessages),f)),I({onValuesChange:x,onFieldsChange:function(B){if(v.triggerFormChange(n,B),g){for(var W=arguments.length,G=new Array(W>1?W-1:0),V=1;V{}}),Hc=a.reactExports.createContext(null),kc=e=>{const t=un(e,["prefixCls"]);return a.reactExports.createElement(Bc,Object.assign({},t))},wi=a.reactExports.createContext({prefixCls:""}),vt=a.reactExports.createContext({}),zs=e=>{let{children:t,status:r,override:n}=e;const o=a.reactExports.useContext(vt),i=a.reactExports.useMemo(()=>{const s=Object.assign({},o);return n&&delete s.isFormItemInput,r&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[r,n,o]);return a.reactExports.createElement(vt.Provider,{value:i},t)},Wc=a.reactExports.createContext(void 0),Dv=e=>({animationDuration:e,animationFillMode:"both"}),qv=e=>({animationDuration:e,animationFillMode:"both"}),Gv=function(e,t,r,n){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:Object.assign(Object.assign({},Dv(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},qv(n)),{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:r,animationPlayState:"running",pointerEvents:"none"}}},$i=new at("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Uv=new at("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Bs=new at("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Vs=new at("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Xv=new at("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Kv=new at("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Qv=new at("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Yv=new at("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Zv=new at("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Jv=new at("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),eh=new at("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),th=new at("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),rh={zoom:{inKeyframes:$i,outKeyframes:Uv},"zoom-big":{inKeyframes:Bs,outKeyframes:Vs},"zoom-big-fast":{inKeyframes:Bs,outKeyframes:Vs},"zoom-left":{inKeyframes:Qv,outKeyframes:Yv},"zoom-right":{inKeyframes:Zv,outKeyframes:Jv},"zoom-up":{inKeyframes:Xv,outKeyframes:Kv},"zoom-down":{inKeyframes:eh,outKeyframes:th}},nh=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=rh[t];return[Gv(n,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${n}-enter, + ${n}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},oh=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ah=oh,ih=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|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|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function sh(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},s=i.className,l=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,p=a.reactExports.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var x=r.points[0],g=r.points[1],y=x[0],m=x[1],h=g[0],v=g[1];y===h||!["t","b"].includes(y)?b.top=f:y==="t"?b.top=0:b.bottom=0,m===v||!["l","r"].includes(m)?b.left=u:m==="l"?b.left=0:b.right=0}return a.reactExports.createElement("div",{ref:p,className:a.classNames("".concat(t,"-arrow"),s),style:b},l)}function lh(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?a.reactExports.createElement(Lr,a._extends({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var l=s.className;return a.reactExports.createElement("div",{style:{zIndex:n},className:a.classNames("".concat(t,"-mask"),l)})}):null}var ch=a.reactExports.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),uh=a.reactExports.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,b=e.arrow,x=e.arrowPos,g=e.align,y=e.motion,m=e.maskMotion,h=e.forceRender,v=e.getPopupContainer,E=e.autoDestroy,$=e.portal,C=e.zIndex,S=e.onMouseEnter,O=e.onMouseLeave,P=e.onPointerEnter,I=e.ready,T=e.offsetX,L=e.offsetY,j=e.offsetR,N=e.offsetB,z=e.onAlign,_=e.onPrepare,w=e.stretch,R=e.targetWidth,A=e.targetHeight,M=typeof r=="function"?r():r,F=c||u,B=(v==null?void 0:v.length)>0,W=a.reactExports.useState(!v||!B),G=k(W,2),V=G[0],H=G[1];if(Le(function(){!V&&B&&s&&H(!0)},[V,B,s]),!V)return null;var U="auto",X={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(I||!c){var ee,re=g.points,J=g.dynamicInset||((ee=g._experimental)===null||ee===void 0?void 0:ee.dynamicInset),ce=J&&re[0][1]==="r",se=J&&re[0][0]==="b";ce?(X.right=j,X.left=U):(X.left=T,X.right=U),se?(X.bottom=N,X.top=U):(X.top=L,X.bottom=U)}var K={};return w&&(w.includes("height")&&A?K.height=A:w.includes("minHeight")&&A&&(K.minHeight=A),w.includes("width")&&R?K.width=R:w.includes("minWidth")&&R&&(K.minWidth=R)),c||(K.pointerEvents="none"),a.reactExports.createElement($,{open:h||F,getContainer:v&&function(){return v(s)},autoDestroy:E},a.reactExports.createElement(lh,{prefixCls:o,open:c,zIndex:C,mask:p,motion:m}),a.reactExports.createElement(vo,{onResize:z,disabled:!c},function(ue){return a.reactExports.createElement(Lr,a._extends({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:h,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:_,onEnterPrepare:_,visible:c,onVisibleChanged:function(fe){var be;y==null||(be=y.onVisibleChanged)===null||be===void 0||be.call(y,fe),l(fe)}}),function(ge,fe){var be=ge.className,D=ge.style,q=a.classNames(o,be,n);return a.reactExports.createElement("div",{ref:zt(ue,t,fe),className:q,style:a._objectSpread2(a._objectSpread2(a._objectSpread2(a._objectSpread2({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},X),K),D),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:S,onMouseLeave:O,onPointerEnter:P,onClick:f},b&&a.reactExports.createElement(sh,{prefixCls:o,arrow:b,arrowPos:x,align:g}),a.reactExports.createElement(ch,{cache:!c&&!d},M))})}))}),dh=a.reactExports.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Mr(r),i=a.reactExports.useCallback(function(l){ai(t,n?n(l):l)},[n]),s=ii(i,r.ref);return o?a.reactExports.cloneElement(r,{ref:s}):r}),Hs=a.reactExports.createContext(null);function ks(e){return e?Array.isArray(e)?e:[e]:[]}function fh(e,t,r,n){return a.reactExports.useMemo(function(){var o=ks(r??t),i=ks(n??t),s=new Set(o),l=new Set(i);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[s,l]},[e,t,r,n])}function ph(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function gh(e,t,r,n){for(var o=r.points,i=Object.keys(e),s=0;s1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Gr(e){return ln(parseFloat(e),0)}function Ds(e,t){var r=a._objectSpread2({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=yn(n).getComputedStyle(n),i=o.overflow,s=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=n.getBoundingClientRect(),p=n.offsetHeight,b=n.clientHeight,x=n.offsetWidth,g=n.clientWidth,y=Gr(l),m=Gr(c),h=Gr(u),v=Gr(d),E=ln(Math.round(f.width/x*1e3)/1e3),$=ln(Math.round(f.height/p*1e3)/1e3),C=(x-g-h-v)*E,S=(p-b-y-m)*$,O=y*$,P=m*$,I=h*E,T=v*E,L=0,j=0;if(i==="clip"){var N=Gr(s);L=N*E,j=N*$}var z=f.x+I-L,_=f.y+O-j,w=z+f.width+2*L-I-T-C,R=_+f.height+2*j-O-P-S;r.left=Math.max(r.left,z),r.top=Math.max(r.top,_),r.right=Math.min(r.right,w),r.bottom=Math.min(r.bottom,R)}}),r}function qs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Gs(e,t){var r=t||[],n=k(r,2),o=n[0],i=n[1];return[qs(e.width,o),qs(e.height,i)]}function Us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Cr(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Tt(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function mh(e,t,r,n,o,i,s){var l=a.reactExports.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),c=k(l,2),u=c[0],d=c[1],f=a.reactExports.useRef(0),p=a.reactExports.useMemo(function(){return t?Ya(t):[]},[t]),b=a.reactExports.useRef({}),x=function(){b.current={}};e||x();var g=gt(function(){if(t&&r&&e){let et=function(xt,Kt){var br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:q,yr=M.x+xt,kr=M.y+Kt,Wr=yr+ee,Fn=kr+X,To=Math.max(yr,br.left),Mo=Math.max(kr,br.top),Ao=Math.min(Wr,br.right),No=Math.min(Fn,br.bottom);return Math.max(0,(Ao-To)*(No-Mo))},jn=function(){_t=M.y+te,It=_t+X,jt=M.x+Se,gr=jt+ee};var h,v,E=t,$=E.ownerDocument,C=yn(E),S=C.getComputedStyle(E),O=S.width,P=S.height,I=S.position,T=E.style.left,L=E.style.top,j=E.style.right,N=E.style.bottom,z=E.style.overflow,_=a._objectSpread2(a._objectSpread2({},o[n]),i),w=$.createElement("div");(h=E.parentElement)===null||h===void 0||h.appendChild(w),w.style.left="".concat(E.offsetLeft,"px"),w.style.top="".concat(E.offsetTop,"px"),w.style.position=I,w.style.height="".concat(E.offsetHeight,"px"),w.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var R;if(Array.isArray(r))R={x:r[0],y:r[1],width:0,height:0};else{var A=r.getBoundingClientRect();R={x:A.x,y:A.y,width:A.width,height:A.height}}var M=E.getBoundingClientRect(),F=$.documentElement,B=F.clientWidth,W=F.clientHeight,G=F.scrollWidth,V=F.scrollHeight,H=F.scrollTop,U=F.scrollLeft,X=M.height,ee=M.width,re=R.height,J=R.width,ce={left:0,top:0,right:B,bottom:W},se={left:-U,top:-H,right:G-U,bottom:V-H},K=_.htmlRegion,ue="visible",ge="visibleFirst";K!=="scroll"&&K!==ge&&(K=ue);var fe=K===ge,be=Ds(se,p),D=Ds(ce,p),q=K===ue?D:be,Q=fe?D:q;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var ae=E.getBoundingClientRect();E.style.left=T,E.style.top=L,E.style.right=j,E.style.bottom=N,E.style.overflow=z,(v=E.parentElement)===null||v===void 0||v.removeChild(w);var oe=ln(Math.round(ee/parseFloat(O)*1e3)/1e3),pe=ln(Math.round(X/parseFloat(P)*1e3)/1e3);if(oe===0||pe===0||oo(r)&&!vi(r))return;var me=_.offset,Me=_.targetOffset,Bt=Gs(M,me),xe=k(Bt,2),ie=xe[0],ye=xe[1],$e=Gs(R,Me),cr=k($e,2),ur=cr[0],Br=cr[1];R.x-=ur,R.y-=Br;var Ze=_.points||[],je=k(Ze,2),Je=je[0],Vt=je[1],He=Us(Vt),Oe=Us(Je),dr=Cr(R,He),Ee=Cr(M,Oe),it=a._objectSpread2({},_),Se=dr.x-Ee.x+ie,te=dr.y-Ee.y+ye,ve=et(Se,te),Pe=et(Se,te,D),Ae=Cr(R,["t","l"]),pt=Cr(M,["t","l"]),Ht=Cr(R,["b","r"]),Rt=Cr(M,["b","r"]),Ne=_.overflow||{},fr=Ne.adjustX,pr=Ne.adjustY,Ot=Ne.shiftX,kt=Ne.shiftY,ke=function(Kt){return typeof Kt=="boolean"?Kt:Kt>=0},_t,It,jt,gr;jn();var Vr=ke(pr),Hr=Oe[0]===He[0];if(Vr&&Oe[0]==="t"&&(It>Q.bottom||b.current.bt)){var Wt=te;Hr?Wt-=X-re:Wt=Ae.y-Rt.y-ye;var Dt=et(Se,Wt),So=et(Se,Wt,D);Dt>ve||Dt===ve&&(!fe||So>=Pe)?(b.current.bt=!0,te=Wt,ye=-ye,it.points=[Tt(Oe,0),Tt(He,0)]):b.current.bt=!1}if(Vr&&Oe[0]==="b"&&(_tve||En===ve&&(!fe||Co>=Pe)?(b.current.tb=!0,te=ze,ye=-ye,it.points=[Tt(Oe,0),Tt(He,0)]):b.current.tb=!1}var Sn=ke(fr),Cn=Oe[1]===He[1];if(Sn&&Oe[1]==="l"&&(gr>Q.right||b.current.rl)){var qt=Se;Cn?qt-=ee-J:qt=Ae.x-Rt.x-ie;var wn=et(qt,te),wo=et(qt,te,D);wn>ve||wn===ve&&(!fe||wo>=Pe)?(b.current.rl=!0,Se=qt,ie=-ie,it.points=[Tt(Oe,1),Tt(He,1)]):b.current.rl=!1}if(Sn&&Oe[1]==="r"&&(jtve||$n===ve&&(!fe||mr>=Pe)?(b.current.lr=!0,Se=Gt,ie=-ie,it.points=[Tt(Oe,1),Tt(He,1)]):b.current.lr=!1}jn();var bt=Ot===!0?0:Ot;typeof bt=="number"&&(jtD.right&&(Se-=gr-D.right-ie,R.x>D.right-bt&&(Se+=R.x-D.right+bt)));var Ut=kt===!0?0:kt;typeof Ut=="number"&&(_tD.bottom&&(te-=It-D.bottom-ye,R.y>D.bottom-Ut&&(te+=R.y-D.bottom+Ut)));var vr=M.x+Se,hr=vr+ee,yt=M.y+te,Pn=yt+X,Xt=R.x,Ft=Xt+J,Rn=R.y,$o=Rn+re,Po=Math.max(vr,Xt),On=Math.min(hr,Ft),Ro=(Po+On)/2,Oo=Ro-vr,_o=Math.max(yt,Rn),_n=Math.min(Pn,$o),Io=(_o+_n)/2,jo=Io-yt;s==null||s(t,it);var In=ae.right-M.x-(Se+M.width),Fo=ae.bottom-M.y-(te+M.height);d({ready:!0,offsetX:Se/oe,offsetY:te/pe,offsetR:In/oe,offsetB:Fo/pe,arrowX:Oo/oe,arrowY:jo/pe,scaleX:oe,scaleY:pe,align:it})}}),y=function(){f.current+=1;var v=f.current;Promise.resolve().then(function(){f.current===v&&g()})},m=function(){d(function(v){return a._objectSpread2(a._objectSpread2({},v),{},{ready:!1})})};return Le(m,[n]),Le(function(){e||m()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,y]}function vh(e,t,r,n,o){Le(function(){if(e&&t&&r){let f=function(){n(),o()};var i=t,s=r,l=Ya(i),c=Ya(s),u=yn(s),d=new Set([u].concat(Z(l),Z(c)));return d.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(p){p.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function hh(e,t,r,n,o,i,s,l){var c=a.reactExports.useRef(e),u=a.reactExports.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),a.reactExports.useEffect(function(){var d=Qe(function(){u.current=!1});return function(){Qe.cancel(d)}},[e]),a.reactExports.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){var C=!1,S=function(I){var T=I.target;C=s(T)},O=function(I){var T=I.target;!u.current&&c.current&&!C&&!s(T)&&l(!1)};return[S,O]},f=d(),p=k(f,2),b=p[0],x=p[1],g=d(),y=k(g,2),m=y[0],h=y[1],v=yn(n);v.addEventListener("mousedown",b,!0),v.addEventListener("click",x,!0),v.addEventListener("contextmenu",x,!0);var E=no(r);return E&&(E.addEventListener("mousedown",m,!0),E.addEventListener("click",h,!0),E.addEventListener("contextmenu",h,!0)),function(){v.removeEventListener("mousedown",b,!0),v.removeEventListener("click",x,!0),v.removeEventListener("contextmenu",x,!0),E&&(E.removeEventListener("mousedown",m,!0),E.removeEventListener("click",h,!0),E.removeEventListener("contextmenu",h,!0))}}},[t,r,n,o,i])}var bh=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function yh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tc,t=a.reactExports.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,s=r.children,l=r.action,c=l===void 0?"hover":l,u=r.showAction,d=r.hideAction,f=r.popupVisible,p=r.defaultPopupVisible,b=r.onPopupVisibleChange,x=r.afterPopupVisibleChange,g=r.mouseEnterDelay,y=r.mouseLeaveDelay,m=y===void 0?.1:y,h=r.focusDelay,v=r.blurDelay,E=r.mask,$=r.maskClosable,C=$===void 0?!0:$,S=r.getPopupContainer,O=r.forceRender,P=r.autoDestroy,I=r.destroyPopupOnHide,T=r.popup,L=r.popupClassName,j=r.popupStyle,N=r.popupPlacement,z=r.builtinPlacements,_=z===void 0?{}:z,w=r.popupAlign,R=r.zIndex,A=r.stretch,M=r.getPopupClassNameFromAlign,F=r.fresh,B=r.alignPoint,W=r.onPopupClick,G=r.onPopupAlign,V=r.arrow,H=r.popupMotion,U=r.maskMotion,X=r.popupTransitionName,ee=r.popupAnimation,re=r.maskTransitionName,J=r.maskAnimation,ce=r.className,se=r.getTriggerDOMNode,K=a._objectWithoutProperties(r,bh),ue=P||I||!1,ge=a.reactExports.useState(!1),fe=k(ge,2),be=fe[0],D=fe[1];Le(function(){D(ih())},[]);var q=a.reactExports.useRef({}),Q=a.reactExports.useContext(Hs),ae=a.reactExports.useMemo(function(){return{registerSubPopup:function(ne,Ce){q.current[ne]=Ce,Q==null||Q.registerSubPopup(ne,Ce)}}},[Q]),oe=Ym(),pe=a.reactExports.useState(null),me=k(pe,2),Me=me[0],Bt=me[1],xe=gt(function(Y){oo(Y)&&Me!==Y&&Bt(Y),Q==null||Q.registerSubPopup(oe,Y)}),ie=a.reactExports.useState(null),ye=k(ie,2),$e=ye[0],cr=ye[1],ur=a.reactExports.useRef(null),Br=gt(function(Y){oo(Y)&&$e!==Y&&(cr(Y),ur.current=Y)}),Ze=a.reactExports.Children.only(s),je=(Ze==null?void 0:Ze.props)||{},Je={},Vt=gt(function(Y){var ne,Ce,Fe=$e;return(Fe==null?void 0:Fe.contains(Y))||((ne=no(Fe))===null||ne===void 0?void 0:ne.host)===Y||Y===Fe||(Me==null?void 0:Me.contains(Y))||((Ce=no(Me))===null||Ce===void 0?void 0:Ce.host)===Y||Y===Me||Object.values(q.current).some(function(we){return(we==null?void 0:we.contains(Y))||Y===we})}),He=Ws(i,H,ee,X),Oe=Ws(i,U,J,re),dr=a.reactExports.useState(p||!1),Ee=k(dr,2),it=Ee[0],Se=Ee[1],te=f??it,ve=gt(function(Y){f===void 0&&Se(Y)});Le(function(){Se(f||!1)},[f]);var Pe=a.reactExports.useRef(te);Pe.current=te;var Ae=a.reactExports.useRef([]);Ae.current=[];var pt=gt(function(Y){var ne;ve(Y),((ne=Ae.current[Ae.current.length-1])!==null&&ne!==void 0?ne:te)!==Y&&(Ae.current.push(Y),b==null||b(Y))}),Ht=a.reactExports.useRef(),Rt=function(){clearTimeout(Ht.current)},Ne=function(ne){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Rt(),Ce===0?pt(ne):Ht.current=setTimeout(function(){pt(ne)},Ce*1e3)};a.reactExports.useEffect(function(){return Rt},[]);var fr=a.reactExports.useState(!1),pr=k(fr,2),Ot=pr[0],kt=pr[1];Le(function(Y){(!Y||te)&&kt(!0)},[te]);var ke=a.reactExports.useState(null),_t=k(ke,2),It=_t[0],jt=_t[1],gr=a.reactExports.useState([0,0]),Vr=k(gr,2),Hr=Vr[0],Wt=Vr[1],Dt=function(ne){Wt([ne.clientX,ne.clientY])},So=mh(te,Me,B?Hr:$e,N,_,w,G),ze=k(So,11),En=ze[0],Co=ze[1],Sn=ze[2],Cn=ze[3],qt=ze[4],wn=ze[5],wo=ze[6],Gt=ze[7],$n=ze[8],mr=ze[9],bt=ze[10],Ut=fh(be,c,u,d),vr=k(Ut,2),hr=vr[0],yt=vr[1],Pn=hr.has("click"),Xt=yt.has("click")||yt.has("contextMenu"),Ft=gt(function(){Ot||bt()}),Rn=function(){Pe.current&&B&&Xt&&Ne(!1)};vh(te,$e,Me,Ft,Rn),Le(function(){Ft()},[Hr,N]),Le(function(){te&&!(_!=null&&_[N])&&Ft()},[JSON.stringify(w)]);var $o=a.reactExports.useMemo(function(){var Y=gh(_,i,mr,B);return a.classNames(Y,M==null?void 0:M(mr))},[mr,M,_,i,B]);a.reactExports.useImperativeHandle(n,function(){return{nativeElement:ur.current,forceAlign:Ft}});var Po=a.reactExports.useState(0),On=k(Po,2),Ro=On[0],Oo=On[1],_o=a.reactExports.useState(0),_n=k(_o,2),Io=_n[0],jo=_n[1],In=function(){if(A&&$e){var ne=$e.getBoundingClientRect();Oo(ne.width),jo(ne.height)}},Fo=function(){In(),Ft()},et=function(ne){kt(!1),bt(),x==null||x(ne)},jn=function(){return new Promise(function(ne){In(),jt(function(){return ne})})};Le(function(){It&&(bt(),It(),jt(null))},[It]);function xt(Y,ne,Ce,Fe){Je[Y]=function(we){var Tn;Fe==null||Fe(we),Ne(ne,Ce);for(var Lo=arguments.length,Ii=new Array(Lo>1?Lo-1:0),Mn=1;Mn1?Ce-1:0),we=1;we1?Ce-1:0),we=1;wet||e,Eh=["outlined","borderless","filled"],qc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const r=a.reactExports.useContext(Wc);let n;typeof e<"u"?n=e:t===!1?n="borderless":n=r??"outlined";const o=Eh.includes(n);return[n,o]},cn=["xxl","xl","lg","md","sm","xs"],Sh=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)`}),Ch=e=>{const t=e,r=[].concat(cn).reverse();return r.forEach((n,o)=>{const i=n.toUpperCase(),s=`screen${i}Min`,l=`screen${i}`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);if(o{const r=new Map;let n=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,r.forEach(s=>s(o)),r.size>=1},subscribe(i){return r.size||this.register(),n+=1,r.set(n,i),i(o),n},unsubscribe(i){r.delete(i),r.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const s=t[i],l=this.matchHandlers[s];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),r.clear()},register(){Object.keys(t).forEach(i=>{const s=t[i],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},c=window.matchMedia(s);c.addListener(l),this.matchHandlers[s]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function Gc(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.className,s=e.style;return a.reactExports.createElement("div",{className:a.classNames("".concat(r,"-content"),i),style:s},a.reactExports.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var wr={shiftX:64,adjustY:1},$r={adjustX:1,shiftY:!0},rt=[0,0],$h={left:{points:["cr","cl"],overflow:$r,offset:[-4,0],targetOffset:rt},right:{points:["cl","cr"],overflow:$r,offset:[4,0],targetOffset:rt},top:{points:["bc","tc"],overflow:wr,offset:[0,-4],targetOffset:rt},bottom:{points:["tc","bc"],overflow:wr,offset:[0,4],targetOffset:rt},topLeft:{points:["bl","tl"],overflow:wr,offset:[0,-4],targetOffset:rt},leftTop:{points:["tr","tl"],overflow:$r,offset:[-4,0],targetOffset:rt},topRight:{points:["br","tr"],overflow:wr,offset:[0,-4],targetOffset:rt},rightTop:{points:["tl","tr"],overflow:$r,offset:[4,0],targetOffset:rt},bottomRight:{points:["tr","br"],overflow:wr,offset:[0,4],targetOffset:rt},rightBottom:{points:["bl","br"],overflow:$r,offset:[4,0],targetOffset:rt},bottomLeft:{points:["tl","bl"],overflow:wr,offset:[0,4],targetOffset:rt},leftBottom:{points:["br","bl"],overflow:$r,offset:[-4,0],targetOffset:rt}},Ph=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Rh=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,s=t.mouseEnterDelay,l=s===void 0?0:s,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,b=t.children,x=t.onVisibleChange,g=t.afterVisibleChange,y=t.transitionName,m=t.animation,h=t.motion,v=t.placement,E=v===void 0?"right":v,$=t.align,C=$===void 0?{}:$,S=t.destroyTooltipOnHide,O=S===void 0?!1:S,P=t.defaultVisible,I=t.getTooltipContainer,T=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,j=t.id,N=t.showArrow,z=N===void 0?!0:N,_=a._objectWithoutProperties(t,Ph),w=a.reactExports.useRef(null);a.reactExports.useImperativeHandle(r,function(){return w.current});var R=a._objectSpread2({},_);"visible"in t&&(R.popupVisible=t.visible);var A=function(){return a.reactExports.createElement(Gc,{key:"content",prefixCls:p,id:j,overlayInnerStyle:T},L)};return a.reactExports.createElement(xh,a._extends({popupClassName:n,prefixCls:p,popup:A,action:i,builtinPlacements:$h,popupPlacement:E,ref:w,popupAlign:C,getPopupContainer:I,onPopupVisibleChange:x,afterPopupVisibleChange:g,popupTransitionName:y,popupAnimation:m,popupMotion:h,defaultPopupVisible:P,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:z},R),b)};const Oh=a.reactExports.forwardRef(Rh);function _h(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,s=o,l=n*1/Math.sqrt(2),c=o-n*(1-1/Math.sqrt(2)),u=o-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-u,p=d,b=2*o-l,x=c,g=2*o-i,y=s,m=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),h=n*(Math.sqrt(2)-1),v=`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`,E=`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${p} L ${b} ${x} A ${n} ${n} 0 0 0 ${g} ${y} Z')`;return{arrowShadowWidth:m,arrowPath:E,arrowPolygon:v}}const Ih=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${le(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Uc=8;function Xc(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Uc:n}}function Un(e,t){return e?t:{}}function jh(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:s}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ih(e,t,o)),{"&:before":{background:t}})]},Un(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-topRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}})),Un(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-bottomRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}})),Un(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Un(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function Fh(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const s=Object.assign(Object.assign({},i),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Xs={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"]}},Th={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"]}},Mh=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ah(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:s}=e,l=t/2,c={};return Object.keys(Xs).forEach(u=>{const d=n&&Th[u]||Xs[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,Mh.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const p=Xc({contentRadius:i,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal+l;break}f.overflow=Fh(u,p,t,r),s&&(f.htmlRegion="visibleFirst")}),c}const Nh=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${le(e.calc(u).div(2).equal())} ${le(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Uc)}},[`${t}-content`]:{position:"relative"}}),Yp(e,(f,p)=>{let{darkColor:b}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},jh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Lh=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Xc({contentRadius:e.borderRadius,limitVerticalRadius:!0})),_h(Ye(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Kc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Nr("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:s}=n,l=Ye(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:s});return[Nh(l),nh(n,"zoom-big-fast")]},Lh,{resetStyle:!1,injectStyle:t})(e)},zh=so.map(e=>`${e}-inverse`);function Bh(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Z(zh),Z(so)).includes(e):so.includes(e)}function Qc(e,t){const r=Bh(t),n=a.classNames({[`${e}-${t}`]:t&&r}),o={},i={};return t&&!r&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const Vh=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:s}=e,{getPrefixCls:l}=a.reactExports.useContext(Ie),c=l("tooltip",t),[u,d,f]=Kc(c),p=Qc(c,i),b=p.arrowStyle,x=Object.assign(Object.assign({},s),p.overlayStyle),g=a.classNames(d,f,c,`${c}-pure`,`${c}-placement-${n}`,r,p.className);return u(a.reactExports.createElement("div",{className:g,style:b},a.reactExports.createElement("div",{className:`${c}-arrow`}),a.reactExports.createElement(Gc,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:x}),o)))},Hh=Vh;var kh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:b,arrow:x=!0,title:g,overlay:y,builtinPlacements:m,arrowPointAtCenter:h=!1,autoAdjustOverflow:v=!0}=e,E=!!x,[,$]=ft(),{getPopupContainer:C,getPrefixCls:S,direction:O}=a.reactExports.useContext(Ie),P=fi(),I=a.reactExports.useRef(null),T=()=>{var oe;(oe=I.current)===null||oe===void 0||oe.forceAlign()};a.reactExports.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{P.deprecated(!1,"forcePopupAlign","forceAlign"),T()}}));const[L,j]=xo(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),N=!g&&!y&&g!==0,z=oe=>{var pe,me;j(N?!1:oe),N||((pe=e.onOpenChange)===null||pe===void 0||pe.call(e,oe),(me=e.onVisibleChange)===null||me===void 0||me.call(e,oe))},_=a.reactExports.useMemo(()=>{var oe,pe;let me=h;return typeof x=="object"&&(me=(pe=(oe=x.pointAtCenter)!==null&&oe!==void 0?oe:x.arrowPointAtCenter)!==null&&pe!==void 0?pe:h),m||Ah({arrowPointAtCenter:me,autoAdjustOverflow:v,arrowWidth:E?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[h,x,m,$]),w=a.reactExports.useMemo(()=>g===0?g:y||g||"",[y,g]),R=a.reactExports.createElement(za,null,typeof w=="function"?w():w),{getPopupContainer:A,placement:M="top",mouseEnterDelay:F=.1,mouseLeaveDelay:B=.1,overlayStyle:W,rootClassName:G}=e,V=kh(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=S("tooltip",o),U=S(),X=e["data-popover-inject"];let ee=L;!("open"in e)&&!("visible"in e)&&N&&(ee=!1);const re=a.isValidElement(d)&&!a.isFragment(d)?d:a.reactExports.createElement("span",null,d),J=re.props,ce=!J.className||typeof J.className=="string"?a.classNames(J.className,i||`${H}-open`):J.className,[se,K,ue]=Kc(H,!X),ge=Qc(H,c),fe=ge.arrowStyle,be=Object.assign(Object.assign({},u),ge.overlayStyle),D=a.classNames(l,{[`${H}-rtl`]:O==="rtl"},ge.className,G,K,ue),[q,Q]=Vg("Tooltip",V.zIndex),ae=a.reactExports.createElement(Oh,Object.assign({},V,{zIndex:q,showArrow:E,placement:M,mouseEnterDelay:F,mouseLeaveDelay:B,prefixCls:H,overlayClassName:D,overlayStyle:Object.assign(Object.assign({},fe),W),getTooltipContainer:A||s||C,ref:I,builtinPlacements:_,overlay:R,visible:ee,onVisibleChange:z,afterVisibleChange:f??p,overlayInnerStyle:be,arrowContent:a.reactExports.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:Zg(U,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ee?a.cloneElement(re,{className:ce}):re);return se(a.reactExports.createElement(xc.Provider,{value:Q},ae))});Yc._InternalPanelDoNotUseOrYouWillBeFired=Hh;const Wh=Yc;function Dh(e){return Ye(e,{inputAffixPadding:e.paddingXXS})}const qh=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:s,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:b,colorPrimary:x,controlOutlineWidth:g,controlOutline:y,colorErrorOutline:m,colorWarningOutline:h,colorBgContainer:v}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-r*n)/2*10)/10-o,0),paddingBlockLG:Math.ceil((s-l*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:x,hoverBorderColor:b,activeShadow:`0 0 0 ${g}px ${y}`,errorActiveShadow:`0 0 0 ${g}px ${m}`,warningActiveShadow:`0 0 0 ${g}px ${h}`,hoverBg:v,activeBg:v,inputFontSize:r,inputFontSizeLG:l,inputFontSizeSM:r}},Gh=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Pi=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},Gh(Ye(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Zc=(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}}),Ks=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Zc(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Uh=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zc(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pi(e))}),Ks(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ks(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Qs=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Xh=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Qs(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Qs(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Pi(e))}})}),Kh=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Jc=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Ys=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Jc(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Qh=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Jc(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pi(e))}),Ys(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Ys(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Zs=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Yh=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Zs(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Zs(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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Zh=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),eu=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${le(t)} ${le(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},tu=e=>({padding:`${le(e.paddingBlockSM)} ${le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ru=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${le(e.paddingBlock)} ${le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Zh(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},eu(e)),"&-sm":Object.assign({},tu(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Jh=e=>{const{componentCls:t,antCls:r}=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`]:Object.assign({},eu(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},tu(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{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 ${le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${le(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${le(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{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,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ap()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${r}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, + & > ${r}-select-auto-complete ${t}, + & > ${r}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${r}-select:first-child > ${r}-select-selector, + & > ${r}-select-auto-complete:first-child ${t}, + & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${r}-select:last-child > ${r}-select-selector, + & > ${r}-cascader-picker:last-child ${t}, + & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},e0=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,s=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pn(e)),ru(e)),Uh(e)),Qh(e)),Kh(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},t0=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${le(e.inputAffixPadding)}`}}}},r0=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:s,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},ru(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),t0(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}})}},n0=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},pn(e)),Jh(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},Xh(e)),Yh(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}}})})}},o0=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},a0=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},i0=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ri=Nr("Input",e=>{const t=Ye(e,Dh(e));return[e0(t),a0(t),r0(t),n0(t),o0(t),i0(t),Ic(t)]},qh),s0=a.reactExports.createContext({}),nu=s0,l0=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"}}}},c0=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},u0=(e,t)=>{const{componentCls:r,gridColumns:n}=e,o={};for(let i=n;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/n*100}%`,maxWidth:`${i/n*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/n*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/n*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/n*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o},Ja=(e,t)=>u0(e,t),d0=(e,t,r)=>({[`@media (min-width: ${le(t)})`]:Object.assign({},Ja(e,r))}),f0=()=>({}),p0=()=>({}),g0=Nr("Grid",l0,f0),m0=Nr("Grid",e=>{const t=Ye(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[c0(t),Ja(t,""),Ja(t,"-xs"),Object.keys(r).map(n=>d0(t,r[n],n)).reduce((n,o)=>Object.assign(Object.assign({},n),o),{})]},p0);var v0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r,direction:n}=a.reactExports.useContext(Ie),{gutter:o,wrap:i}=a.reactExports.useContext(nu),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:f,className:p,children:b,flex:x,style:g}=e,y=v0(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=r("col",s),[h,v,E]=m0(m);let $={};b0.forEach(O=>{let P={};const I=e[O];typeof I=="number"?P.span=I:typeof I=="object"&&(P=I||{}),delete y[O],$=Object.assign(Object.assign({},$),{[`${m}-${O}-${P.span}`]:P.span!==void 0,[`${m}-${O}-order-${P.order}`]:P.order||P.order===0,[`${m}-${O}-offset-${P.offset}`]:P.offset||P.offset===0,[`${m}-${O}-push-${P.push}`]:P.push||P.push===0,[`${m}-${O}-pull-${P.pull}`]:P.pull||P.pull===0,[`${m}-${O}-flex-${P.flex}`]:P.flex||P.flex==="auto",[`${m}-rtl`]:n==="rtl"})});const C=a.classNames(m,{[`${m}-${l}`]:l!==void 0,[`${m}-order-${c}`]:c,[`${m}-offset-${u}`]:u,[`${m}-push-${d}`]:d,[`${m}-pull-${f}`]:f},p,$,v,E),S={};if(o&&o[0]>0){const O=o[0]/2;S.paddingLeft=O,S.paddingRight=O}return x&&(S.flex=h0(x),i===!1&&!S.minWidth&&(S.minWidth=0)),h(a.reactExports.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign({},S),g),className:C,ref:t}),b))}),ou=y0;var x0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&n(e),typeof e=="object")for(let i=0;i{o()},[JSON.stringify(e),t]),r}const E0=a.reactExports.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:o,className:i,style:s,children:l,gutter:c=0,wrap:u}=e,d=x0(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=a.reactExports.useContext(Ie),[b,x]=a.reactExports.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,y]=a.reactExports.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=Js(o,g),h=Js(n,g),v=a.reactExports.useRef(c),E=wh();a.reactExports.useEffect(()=>{const w=E.subscribe(R=>{y(R);const A=v.current||0;(!Array.isArray(A)&&typeof A=="object"||Array.isArray(A)&&(typeof A[0]=="object"||typeof A[1]=="object"))&&x(R)});return()=>E.unsubscribe(w)},[]);const $=()=>{const w=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((A,M)=>{if(typeof A=="object")for(let F=0;F0?I[0]/-2:void 0;j&&(L.marginLeft=j,L.marginRight=j),[,L.rowGap]=I;const[N,z]=I,_=a.reactExports.useMemo(()=>({gutter:[N,z],wrap:u}),[N,z,u]);return S(a.reactExports.createElement(nu.Provider,{value:_},a.reactExports.createElement("div",Object.assign({},d,{className:T,style:Object.assign(Object.assign({},L),s),ref:t}),l)))}),S0=E0;function C0(e){return!!(e.addonBefore||e.addonAfter)}function w0(e){return!!(e.prefix||e.suffix||e.allowClear)}function uo(e,t,r,n){if(r){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",r(o);return}if(e.type!=="file"&&n!==void 0){var s=e.cloneNode(!0);o=Object.create(t,{target:{value:s},currentTarget:{value:s}}),s.value=n,r(o);return}r(o)}}function $0(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var au=function(t){var r,n,o=t.inputElement,i=t.children,s=t.prefixCls,l=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,p=t.style,b=t.disabled,x=t.readOnly,g=t.focused,y=t.triggerFocus,m=t.allowClear,h=t.value,v=t.handleReset,E=t.hidden,$=t.classes,C=t.classNames,S=t.dataAttrs,O=t.styles,P=t.components,I=i??o,T=(P==null?void 0:P.affixWrapper)||"span",L=(P==null?void 0:P.groupWrapper)||"span",j=(P==null?void 0:P.wrapper)||"span",N=(P==null?void 0:P.groupAddon)||"span",z=a.reactExports.useRef(null),_=function(K){var ue;(ue=z.current)!==null&&ue!==void 0&&ue.contains(K.target)&&(y==null||y())},w=w0(t),R=a.reactExports.cloneElement(I,{value:h,className:a.classNames(I.props.className,!w&&(C==null?void 0:C.variant))||null});if(w){var A,M=null;if(m){var F,B=!b&&!x&&h,W="".concat(s,"-clear-icon"),G=a._typeof(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";M=a.React.createElement("span",{onClick:v,onMouseDown:function(K){return K.preventDefault()},className:a.classNames(W,(F={},a._defineProperty(F,"".concat(W,"-hidden"),!B),a._defineProperty(F,"".concat(W,"-has-suffix"),!!c),F)),role:"button",tabIndex:-1},G)}var V="".concat(s,"-affix-wrapper"),H=a.classNames(V,(A={},a._defineProperty(A,"".concat(s,"-disabled"),b),a._defineProperty(A,"".concat(V,"-disabled"),b),a._defineProperty(A,"".concat(V,"-focused"),g),a._defineProperty(A,"".concat(V,"-readonly"),x),a._defineProperty(A,"".concat(V,"-input-with-clear-btn"),c&&m&&h),A),$==null?void 0:$.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),U=(c||m)&&a.React.createElement("span",{className:a.classNames("".concat(s,"-suffix"),C==null?void 0:C.suffix),style:O==null?void 0:O.suffix},M,c);R=a.React.createElement(T,a._extends({className:H,style:O==null?void 0:O.affixWrapper,onClick:_},S==null?void 0:S.affixWrapper,{ref:z}),l&&a.React.createElement("span",{className:a.classNames("".concat(s,"-prefix"),C==null?void 0:C.prefix),style:O==null?void 0:O.prefix},l),R,U)}if(C0(t)){var X="".concat(s,"-group"),ee="".concat(X,"-addon"),re="".concat(X,"-wrapper"),J=a.classNames("".concat(s,"-wrapper"),X,$==null?void 0:$.wrapper,C==null?void 0:C.wrapper),ce=a.classNames(re,a._defineProperty({},"".concat(re,"-disabled"),b),$==null?void 0:$.group,C==null?void 0:C.groupWrapper);R=a.React.createElement(L,{className:ce},a.React.createElement(j,{className:J},u&&a.React.createElement(N,{className:ee},u),R,d&&a.React.createElement(N,{className:ee},d)))}return a.React.cloneElement(R,{className:a.classNames((r=R.props)===null||r===void 0?void 0:r.className,f)||null,style:a._objectSpread2(a._objectSpread2({},(n=R.props)===null||n===void 0?void 0:n.style),p),hidden:E})},P0=["show"];function iu(e,t){return a.reactExports.useMemo(function(){var r={};t&&(r.show=a._typeof(t)==="object"&&t.formatter?t.formatter:!!t),r=a._objectSpread2(a._objectSpread2({},r),e);var n=r,o=n.show,i=a._objectWithoutProperties(n,P0);return a._objectSpread2(a._objectSpread2({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(s){return s.length}})},[e,t])}var R0=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],O0=a.reactExports.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,s=e.onPressEnter,l=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,p=e.className,b=e.maxLength,x=e.suffix,g=e.showCount,y=e.count,m=e.type,h=m===void 0?"text":m,v=e.classes,E=e.classNames,$=e.styles,C=e.onCompositionStart,S=e.onCompositionEnd,O=a._objectWithoutProperties(e,R0),P=a.reactExports.useState(!1),I=k(P,2),T=I[0],L=I[1],j=a.reactExports.useRef(!1),N=a.reactExports.useRef(null),z=function(q){N.current&&$0(N.current,q)},_=xo(e.defaultValue,{value:e.value}),w=k(_,2),R=w[0],A=w[1],M=R==null?"":String(R),F=a.reactExports.useState(null),B=k(F,2),W=B[0],G=B[1],V=iu(y,g),H=V.max||b,U=V.strategy(M),X=!!H&&U>H;a.reactExports.useImperativeHandle(t,function(){return{focus:z,blur:function(){var q;(q=N.current)===null||q===void 0||q.blur()},setSelectionRange:function(q,Q,ae){var oe;(oe=N.current)===null||oe===void 0||oe.setSelectionRange(q,Q,ae)},select:function(){var q;(q=N.current)===null||q===void 0||q.select()},input:N.current}}),a.reactExports.useEffect(function(){L(function(D){return D&&d?!1:D})},[d]);var ee=function(q,Q,ae){var oe=Q;if(!j.current&&V.exceedFormatter&&V.max&&V.strategy(Q)>V.max){if(oe=V.exceedFormatter(Q,{max:V.max}),Q!==oe){var pe,me;G([((pe=N.current)===null||pe===void 0?void 0:pe.selectionStart)||0,((me=N.current)===null||me===void 0?void 0:me.selectionEnd)||0])}}else if(ae.source==="compositionEnd")return;A(oe),N.current&&uo(N.current,q,n,oe)};a.reactExports.useEffect(function(){if(W){var D;(D=N.current)===null||D===void 0||D.setSelectionRange.apply(D,Z(W))}},[W]);var re=function(q){ee(q,q.target.value,{source:"change"})},J=function(q){j.current=!1,ee(q,q.currentTarget.value,{source:"compositionEnd"}),S==null||S(q)},ce=function(q){s&&q.key==="Enter"&&s(q),l==null||l(q)},se=function(q){L(!0),o==null||o(q)},K=function(q){L(!1),i==null||i(q)},ue=function(q){A(""),z(),N.current&&uo(N.current,q,n)},ge=X&&"".concat(u,"-out-of-range"),fe=function(){var q=un(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return a.React.createElement("input",a._extends({autoComplete:r},q,{onChange:re,onFocus:se,onBlur:K,onKeyDown:ce,className:a.classNames(u,a._defineProperty({},"".concat(u,"-disabled"),d),E==null?void 0:E.input),style:$==null?void 0:$.input,ref:N,size:f,type:h,onCompositionStart:function(ae){j.current=!0,C==null||C(ae)},onCompositionEnd:J}))},be=function(){var q=Number(H)>0;if(x||V.show){var Q=V.showFormatter?V.showFormatter({value:M,count:U,maxLength:H}):"".concat(U).concat(q?" / ".concat(H):"");return a.React.createElement(a.React.Fragment,null,V.show&&a.React.createElement("span",{className:a.classNames("".concat(u,"-show-count-suffix"),a._defineProperty({},"".concat(u,"-show-count-has-suffix"),!!x),E==null?void 0:E.count),style:a._objectSpread2({},$==null?void 0:$.count)},Q),x)}return null};return a.React.createElement(au,a._extends({},O,{prefixCls:u,className:a.classNames(p,ge),handleReset:ue,value:M,focused:T,triggerFocus:z,suffix:be(),disabled:d,classes:v,classNames:E,styles:$}),fe())});const _0=e=>{const{getPrefixCls:t,direction:r}=a.reactExports.useContext(Ie),{prefixCls:n,className:o}=e,i=t("input-group",n),s=t("input"),[l,c]=Ri(s),u=a.classNames(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},c,o),d=a.reactExports.useContext(vt),f=a.reactExports.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(a.reactExports.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},a.reactExports.createElement(vt.Provider,{value:f},e.children)))},I0=_0;function su(e,t){const r=a.reactExports.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,s,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return a.reactExports.useEffect(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function j0(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const F0=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:a.React.createElement(ni,null)}),t};var T0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,bordered:o=!0,status:i,size:s,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:b,className:x,style:g,styles:y,rootClassName:m,onChange:h,classNames:v,variant:E}=e,$=T0(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:S,input:O}=a.React.useContext(Ie),P=C("input",n),I=a.reactExports.useRef(null),T=mn(P),[L,j,N]=Ri(P,T),{compactSize:z,compactItemClassnames:_}=hi(P,S),w=hn(se=>{var K;return(K=s??z)!==null&&K!==void 0?K:se}),R=a.React.useContext(dn),A=l??R,{status:M,hasFeedback:F,feedbackIcon:B}=a.reactExports.useContext(vt),W=Dc(M,i),G=j0(e)||!!F;a.reactExports.useRef(G);const V=su(I,!0),H=se=>{V(),c==null||c(se)},U=se=>{V(),u==null||u(se)},X=se=>{V(),h==null||h(se)},ee=(F||d)&&a.React.createElement(a.React.Fragment,null,d,F&&B),re=F0(f),[J,ce]=qc(E,o);return L(a.React.createElement(O0,Object.assign({ref:zt(t,I),prefixCls:P,autoComplete:O==null?void 0:O.autoComplete},$,{disabled:A,onBlur:H,onFocus:U,style:Object.assign(Object.assign({},O==null?void 0:O.style),g),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),y),suffix:ee,allowClear:re,className:a.classNames(x,m,N,T,_,O==null?void 0:O.className),onChange:X,addonAfter:p&&a.React.createElement(za,null,a.React.createElement(zs,{override:!0,status:!0},p)),addonBefore:b&&a.React.createElement(za,null,a.React.createElement(zs,{override:!0,status:!0},b)),classNames:Object.assign(Object.assign(Object.assign({},v),O==null?void 0:O.classNames),{input:a.classNames({[`${P}-sm`]:w==="small",[`${P}-lg`]:w==="large",[`${P}-rtl`]:S==="rtl"},v==null?void 0:v.input,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.input,j),variant:a.classNames({[`${P}-${J}`]:ce},Za(P,W)),affixWrapper:a.classNames({[`${P}-affix-wrapper-sm`]:w==="small",[`${P}-affix-wrapper-lg`]:w==="large",[`${P}-affix-wrapper-rtl`]:S==="rtl"},j),wrapper:a.classNames({[`${P}-group-rtl`]:S==="rtl"},j),groupWrapper:a.classNames({[`${P}-group-wrapper-sm`]:w==="small",[`${P}-group-wrapper-lg`]:w==="large",[`${P}-group-wrapper-rtl`]:S==="rtl",[`${P}-group-wrapper-${J}`]:ce},Za(`${P}-group-wrapper`,W,F),j)})})))}),Oi=A0;var N0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);oe?a.reactExports.createElement(bd,null):a.reactExports.createElement(gd,null),z0={click:"onClick",hover:"onMouseOver"},B0=a.reactExports.forwardRef((e,t)=>{const{visibilityToggle:r=!0}=e,n=typeof r=="object"&&r.visible!==void 0,[o,i]=a.reactExports.useState(()=>n?r.visible:!1),s=a.reactExports.useRef(null);a.reactExports.useEffect(()=>{n&&i(r.visible)},[n,r]);const l=su(s),c=()=>{const{disabled:$}=e;$||(o&&l(),i(C=>{var S;const O=!C;return typeof r=="object"&&((S=r.onVisibleChange)===null||S===void 0||S.call(r,O)),O}))},u=$=>{const{action:C="click",iconRender:S=L0}=e,O=z0[C]||"",P=S(o),I={[O]:c,className:`${$}-icon`,key:"passwordIcon",onMouseDown:T=>{T.preventDefault()},onMouseUp:T=>{T.preventDefault()}};return a.reactExports.cloneElement(a.reactExports.isValidElement(P)?P:a.reactExports.createElement("span",null,P),I)},{className:d,prefixCls:f,inputPrefixCls:p,size:b}=e,x=N0(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=a.reactExports.useContext(Ie),y=g("input",p),m=g("input-password",f),h=r&&u(m),v=a.classNames(m,d,{[`${m}-${b}`]:!!b}),E=Object.assign(Object.assign({},un(x,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:v,prefixCls:y,suffix:h});return b&&(E.size=b),a.reactExports.createElement(Oi,Object.assign({ref:zt(t,s)},E))}),V0=B0;var H0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:b,onCompositionEnd:x}=e,g=H0(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:m}=a.reactExports.useContext(Ie),h=a.reactExports.useRef(!1),v=y("input-search",r),E=y("input",n),{compactSize:$}=hi(v,m),C=hn(M=>{var F;return(F=i??$)!==null&&F!==void 0?F:M}),S=a.reactExports.useRef(null),O=M=>{M&&M.target&&M.type==="click"&&f&&f(M.target.value,M,{source:"clear"}),p&&p(M)},P=M=>{var F;document.activeElement===((F=S.current)===null||F===void 0?void 0:F.input)&&M.preventDefault()},I=M=>{var F,B;f&&f((B=(F=S.current)===null||F===void 0?void 0:F.input)===null||B===void 0?void 0:B.value,M,{source:"input"})},T=M=>{h.current||u||I(M)},L=typeof l=="boolean"?a.reactExports.createElement(Td,null):null,j=`${v}-button`;let N;const z=l||{},_=z.type&&z.type.__ANT_BUTTON===!0;_||z.type==="button"?N=a.cloneElement(z,Object.assign({onMouseDown:P,onClick:M=>{var F,B;(B=(F=z==null?void 0:z.props)===null||F===void 0?void 0:F.onClick)===null||B===void 0||B.call(F,M),I(M)},key:"enterButton"},_?{className:j,size:C}:{})):N=a.reactExports.createElement(jc,{className:j,type:l?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:P,onClick:I,loading:u,icon:L},l),c&&(N=[N,a.cloneElement(c,{key:"addonAfter"})]);const w=a.classNames(v,{[`${v}-rtl`]:m==="rtl",[`${v}-${C}`]:!!C,[`${v}-with-button`]:!!l},o),R=M=>{h.current=!0,b==null||b(M)},A=M=>{h.current=!1,x==null||x(M)};return a.reactExports.createElement(Oi,Object.assign({ref:zt(S,t),onPressEnter:T},g,{size:C,onCompositionStart:R,onCompositionEnd:A,prefixCls:E,addonAfter:N,suffix:s,onChange:O,className:w,disabled:d}))}),W0=k0;var D0=` + 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; +`,q0=["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"],la={},nt;function G0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&la[r])return la[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l=q0.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:s,boxSizing:o};return t&&r&&(la[r]=c),c}function U0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;nt||(nt=document.createElement("textarea"),nt.setAttribute("tab-index","-1"),nt.setAttribute("aria-hidden","true"),document.body.appendChild(nt)),e.getAttribute("wrap")?nt.setAttribute("wrap",e.getAttribute("wrap")):nt.removeAttribute("wrap");var o=G0(e,t),i=o.paddingSize,s=o.borderSize,l=o.boxSizing,c=o.sizingStyle;nt.setAttribute("style","".concat(c,";").concat(D0)),nt.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=nt.scrollHeight;if(l==="border-box"?p+=s:l==="content-box"&&(p-=i),r!==null||n!==null){nt.value=" ";var b=nt.scrollHeight-i;r!==null&&(u=b*r,l==="border-box"&&(u=u+i+s),p=Math.max(u,p)),n!==null&&(d=b*n,l==="border-box"&&(d=d+i+s),f=p>d?"":"hidden",p=Math.min(d,p))}var x={height:p,overflowY:f,resize:"none"};return u&&(x.minHeight=u),d&&(x.maxHeight=d),x}var X0=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ca=0,ua=1,da=2,K0=a.reactExports.forwardRef(function(e,t){var r=e,n=r.prefixCls;r.onPressEnter;var o=r.defaultValue,i=r.value,s=r.autoSize,l=r.onResize,c=r.className,u=r.style,d=r.disabled,f=r.onChange;r.onInternalAutoSize;var p=a._objectWithoutProperties(r,X0),b=xo(o,{value:i,postState:function(G){return G??""}}),x=k(b,2),g=x[0],y=x[1],m=function(G){y(G.target.value),f==null||f(G)},h=a.reactExports.useRef();a.reactExports.useImperativeHandle(t,function(){return{textArea:h.current}});var v=a.reactExports.useMemo(function(){return s&&a._typeof(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),E=k(v,2),$=E[0],C=E[1],S=!!s,O=function(){try{if(document.activeElement===h.current){var G=h.current,V=G.selectionStart,H=G.selectionEnd,U=G.scrollTop;h.current.setSelectionRange(V,H),h.current.scrollTop=U}}catch{}},P=a.reactExports.useState(da),I=k(P,2),T=I[0],L=I[1],j=a.reactExports.useState(),N=k(j,2),z=N[0],_=N[1],w=function(){L(ca)};Le(function(){S&&w()},[i,$,C,S]),Le(function(){if(T===ca)L(ua);else if(T===ua){var W=U0(h.current,!1,$,C);L(da),_(W)}else O()},[T]);var R=a.reactExports.useRef(),A=function(){Qe.cancel(R.current)},M=function(G){T===da&&(l==null||l(G),s&&(A(),R.current=Qe(function(){w()})))};a.reactExports.useEffect(function(){return A},[]);var F=S?z:null,B=a._objectSpread2(a._objectSpread2({},u),F);return(T===ca||T===ua)&&(B.overflowY="hidden",B.overflowX="hidden"),a.reactExports.createElement(vo,{onResize:M,disabled:!(s||l)},a.reactExports.createElement("textarea",a._extends({},p,{ref:h,style:B,className:a.classNames(n,c,a._defineProperty({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),Q0=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Y0=a.React.forwardRef(function(e,t){var r,n,o=e.defaultValue,i=e.value,s=e.onFocus,l=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,p=e.onCompositionEnd,b=e.suffix,x=e.prefixCls,g=x===void 0?"rc-textarea":x,y=e.showCount,m=e.count,h=e.className,v=e.style,E=e.disabled,$=e.hidden,C=e.classNames,S=e.styles,O=e.onResize,P=a._objectWithoutProperties(e,Q0),I=xo(o,{value:i,defaultValue:o}),T=k(I,2),L=T[0],j=T[1],N=L==null?"":String(L),z=a.React.useState(!1),_=k(z,2),w=_[0],R=_[1],A=a.React.useRef(!1),M=a.React.useState(null),F=k(M,2),B=F[0],W=F[1],G=a.reactExports.useRef(null),V=function(){var ie;return(ie=G.current)===null||ie===void 0?void 0:ie.textArea},H=function(){V().focus()};a.reactExports.useImperativeHandle(t,function(){return{resizableTextArea:G.current,focus:H,blur:function(){V().blur()}}}),a.reactExports.useEffect(function(){R(function(xe){return!E&&xe})},[E]);var U=a.React.useState(null),X=k(U,2),ee=X[0],re=X[1];a.React.useEffect(function(){if(ee){var xe;(xe=V()).setSelectionRange.apply(xe,Z(ee))}},[ee]);var J=iu(m,y),ce=(r=J.max)!==null&&r!==void 0?r:d,se=Number(ce)>0,K=J.strategy(N),ue=!!ce&&K>ce,ge=function(ie,ye){var $e=ye;!A.current&&J.exceedFormatter&&J.max&&J.strategy(ye)>J.max&&($e=J.exceedFormatter(ye,{max:J.max}),ye!==$e&&re([V().selectionStart||0,V().selectionEnd||0])),j($e),uo(ie.currentTarget,ie,c,$e)},fe=function(ie){A.current=!0,f==null||f(ie)},be=function(ie){A.current=!1,ge(ie,ie.currentTarget.value),p==null||p(ie)},D=function(ie){ge(ie,ie.target.value)},q=function(ie){var ye=P.onPressEnter,$e=P.onKeyDown;ie.key==="Enter"&&ye&&ye(ie),$e==null||$e(ie)},Q=function(ie){R(!0),s==null||s(ie)},ae=function(ie){R(!1),l==null||l(ie)},oe=function(ie){j(""),H(),uo(V(),ie,c)},pe=b,me;J.show&&(J.showFormatter?me=J.showFormatter({value:N,count:K,maxLength:ce}):me="".concat(K).concat(se?" / ".concat(ce):""),pe=a.React.createElement(a.React.Fragment,null,pe,a.React.createElement("span",{className:a.classNames("".concat(g,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},me)));var Me=function(ie){var ye;O==null||O(ie),(ye=V())!==null&&ye!==void 0&&ye.style.height&&W(!0)},Bt=!P.autoSize&&!y&&!u;return a.React.createElement(au,{value:N,allowClear:u,handleReset:oe,suffix:pe,prefixCls:g,classNames:a._objectSpread2(a._objectSpread2({},C),{},{affixWrapper:a.classNames(C==null?void 0:C.affixWrapper,(n={},a._defineProperty(n,"".concat(g,"-show-count"),y),a._defineProperty(n,"".concat(g,"-textarea-allow-clear"),u),n))}),disabled:E,focused:w,className:a.classNames(h,ue&&"".concat(g,"-out-of-range")),style:a._objectSpread2(a._objectSpread2({},v),B&&!Bt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof me=="string"?me:void 0}},hidden:$},a.React.createElement(K0,a._extends({},P,{maxLength:d,onKeyDown:q,onChange:D,onFocus:Q,onBlur:ae,onCompositionStart:fe,onCompositionEnd:be,className:a.classNames(C==null?void 0:C.textarea),style:a._objectSpread2(a._objectSpread2({},S==null?void 0:S.textarea),{},{resize:v==null?void 0:v.resize}),disabled:E,prefixCls:g,onResize:Me,ref:G})))}),Z0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;const{prefixCls:n,bordered:o=!0,size:i,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,variant:p}=e,b=Z0(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:x,direction:g}=a.reactExports.useContext(Ie),y=hn(i),m=a.reactExports.useContext(dn),h=s??m,{status:v,hasFeedback:E,feedbackIcon:$}=a.reactExports.useContext(vt),C=Dc(v,l),S=a.reactExports.useRef(null);a.reactExports.useImperativeHandle(t,()=>{var _;return{resizableTextArea:(_=S.current)===null||_===void 0?void 0:_.resizableTextArea,focus:w=>{var R,A;M0((A=(R=S.current)===null||R===void 0?void 0:R.resizableTextArea)===null||A===void 0?void 0:A.textArea,w)},blur:()=>{var w;return(w=S.current)===null||w===void 0?void 0:w.blur()}}});const O=x("input",n);let P;typeof c=="object"&&(c!=null&&c.clearIcon)?P=c:c&&(P={clearIcon:a.reactExports.createElement(ni,null)});const I=mn(O),[T,L,j]=Ri(O,I),[N,z]=qc(p,o);return T(a.reactExports.createElement(Y0,Object.assign({},b,{disabled:h,allowClear:P,className:a.classNames(j,I,f,d),classNames:Object.assign(Object.assign({},u),{textarea:a.classNames({[`${O}-sm`]:y==="small",[`${O}-lg`]:y==="large"},L,u==null?void 0:u.textarea),variant:a.classNames({[`${O}-${N}`]:z},Za(O,C)),affixWrapper:a.classNames(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:g==="rtl",[`${O}-affix-wrapper-sm`]:y==="small",[`${O}-affix-wrapper-lg`]:y==="large",[`${O}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:O,suffix:E&&a.reactExports.createElement("span",{className:`${O}-textarea-suffix`},$),ref:S})))}),eb=J0,xn=Oi;xn.Group=I0;xn.Search=W0;xn.TextArea=eb;xn.Password=V0;const el=xn;function fo(e){const[t,r]=a.reactExports.useState(e);return a.reactExports.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const tb=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},rb=tb,nb=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${le(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),tl=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},ob=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},pn(e)),nb(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},tl(e,e.controlHeightSM)),"&-large":Object.assign({},tl(e,e.controlHeightLG))})}},ab=e=>{const{formItemCls:t,iconCls:r,componentCls:n,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},pn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:$i,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ib=e=>{const{componentCls:t,formItemCls:r}=e;return{[`${t}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}}}}},sb=e=>{const{componentCls:t,formItemCls:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${r}-label, + > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},Rr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),lb=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:Rr(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},cb=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${t}-vertical`]:{[r]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${r}-label, + .${n}-col-24${r}-label, + .${n}-col-xl-24${r}-label`]:Rr(e),[`@media (max-width: ${le(e.screenXSMax)})`]:[lb(e),{[t]:{[`.${n}-col-xs-24${r}-label`]:Rr(e)}}],[`@media (max-width: ${le(e.screenSMMax)})`]:{[t]:{[`.${n}-col-sm-24${r}-label`]:Rr(e)}},[`@media (max-width: ${le(e.screenMDMax)})`]:{[t]:{[`.${n}-col-md-24${r}-label`]:Rr(e)}},[`@media (max-width: ${le(e.screenLGMax)})`]:{[t]:{[`.${n}-col-lg-24${r}-label`]:Rr(e)}}}},ub=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),lu=(e,t)=>Ye(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),_i=Nr("Form",(e,t)=>{let{rootPrefixCls:r}=t;const n=lu(e,r);return[ob(n),ab(n),rb(n),ib(n),sb(n),cb(n),ah(n),$i]},ub,{order:-1e3}),rl=[];function fa(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const db=e=>{let{help:t,helpStatus:r,errors:n=rl,warnings:o=rl,className:i,fieldId:s,onVisibleChanged:l}=e;const{prefixCls:c}=a.reactExports.useContext(wi),u=`${c}-item-explain`,d=mn(c),[f,p,b]=_i(c,d),x=a.reactExports.useMemo(()=>ms(c),[c]),g=fo(n),y=fo(o),m=a.reactExports.useMemo(()=>t!=null?[fa(t,"help",r)]:[].concat(Z(g.map((v,E)=>fa(v,"error","error",E))),Z(y.map((v,E)=>fa(v,"warning","warning",E)))),[t,r,g,y]),h={};return s&&(h.id=`${s}_help`),f(a.reactExports.createElement(Lr,{motionDeadline:x.motionDeadline,motionName:`${c}-show-help`,visible:!!m.length,onVisibleChanged:l},v=>{const{className:E,style:$}=v;return a.reactExports.createElement("div",Object.assign({},h,{className:a.classNames(u,E,b,d,i,p),style:$,role:"alert"}),a.reactExports.createElement(Sg,Object.assign({keys:m},ms(c),{motionName:`${c}-show-help-item`,component:!1}),C=>{const{key:S,error:O,errorStatus:P,className:I,style:T}=C;return a.reactExports.createElement("div",{key:S,className:a.classNames(I,{[`${u}-${P}`]:P}),style:T},O)}))}))},cu=db,fb=["parentNode"],pb="form_item";function Zr(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function uu(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:fb.includes(r)?`${pb}_${r}`:r}function du(e,t,r,n,o,i){let s=n;return i!==void 0?s=i:r.validating?s="validating":e.length?s="error":t.length?s="warning":(r.touched||o&&r.validated)&&(s="success"),s}function nl(e){return Zr(e).join("_")}function fu(e){const[t]=Ci(),r=a.reactExports.useRef({}),n=a.reactExports.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const s=nl(o);i?r.current[s]=i:delete r.current[s]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=Zr(o),l=uu(s,n.__INTERNAL__.name),c=l?document.getElementById(l):null;c&&Mg(c,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=nl(o);return r.current[i]}}),[e,t]);return[n]}var gb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{const r=a.reactExports.useContext(dn),{getPrefixCls:n,direction:o,form:i}=a.reactExports.useContext(Ie),{prefixCls:s,className:l,rootClassName:c,size:u,disabled:d=r,form:f,colon:p,labelAlign:b,labelWrap:x,labelCol:g,wrapperCol:y,hideRequiredMark:m,layout:h="horizontal",scrollToFirstError:v,requiredMark:E,onFinishFailed:$,name:C,style:S,feedbackIcons:O,variant:P}=e,I=gb(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),T=hn(u),L=a.reactExports.useContext(Dl),j=a.reactExports.useMemo(()=>E!==void 0?E:m?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[m,E,i]),N=p??(i==null?void 0:i.colon),z=n("form",s),_=mn(z),[w,R,A]=_i(z,_),M=a.classNames(z,`${z}-${h}`,{[`${z}-hide-required-mark`]:j===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${T}`]:T},A,_,R,i==null?void 0:i.className,l,c),[F]=fu(f),{__INTERNAL__:B}=F;B.name=C;const W=a.reactExports.useMemo(()=>({name:C,labelAlign:b,labelCol:g,labelWrap:x,wrapperCol:y,vertical:h==="vertical",colon:N,requiredMark:j,itemRef:B.itemRef,form:F,feedbackIcons:O}),[C,b,g,y,h,N,j,F,O]);a.reactExports.useImperativeHandle(t,()=>F);const G=(H,U)=>{if(H){let X={block:"nearest"};typeof H=="object"&&(X=H),F.scrollToField(U,X)}},V=H=>{if($==null||$(H),H.errorFields.length){const U=H.errorFields[0].name;if(v!==void 0){G(v,U);return}i&&i.scrollToFirstError!==void 0&&G(i.scrollToFirstError,U)}};return w(a.reactExports.createElement(Wc.Provider,{value:P},a.reactExports.createElement(Yl,{disabled:d},a.reactExports.createElement(fn.Provider,{value:T},a.reactExports.createElement(kc,{validateMessages:L},a.reactExports.createElement($t.Provider,{value:W},a.reactExports.createElement(zr,Object.assign({id:C},I,{name:C,onFinishFailed:V,form:F,style:Object.assign(Object.assign({},i==null?void 0:i.style),S),className:M}))))))))},vb=a.reactExports.forwardRef(mb),hb=vb;function bb(e){if(typeof e=="function")return e;const t=en(e);return t.length<=1?t[0]:t}const pu=()=>{const{status:e,errors:t=[],warnings:r=[]}=a.reactExports.useContext(vt);return{status:e,errors:t,warnings:r}};pu.Context=vt;const yb=pu;function xb(e){const[t,r]=a.reactExports.useState(e),n=a.reactExports.useRef(null),o=a.reactExports.useRef([]),i=a.reactExports.useRef(!1);a.reactExports.useEffect(()=>(i.current=!1,()=>{i.current=!0,Qe.cancel(n.current),n.current=null}),[]);function s(l){i.current||(n.current===null&&(o.current=[],n.current=Qe(()=>{n.current=null,r(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,s]}function Eb(){const{itemRef:e}=a.reactExports.useContext($t),t=a.reactExports.useRef({});function r(n,o){const i=o&&typeof o=="object"&&o.ref,s=n.join("_");return(t.current.name!==s||t.current.originRef!==i)&&(t.current.name=s,t.current.originRef=i,t.current.ref=zt(e(n),i)),t.current.ref}return r}const Sb=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Cb=lc(["Form","item-item"],(e,t)=>{let{rootPrefixCls:r}=t;const n=lu(e,r);return[Sb(n)]}),wb=e=>{const{prefixCls:t,status:r,wrapperCol:n,children:o,errors:i,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=e,b=`${t}-item`,x=a.reactExports.useContext($t),g=n||x.wrapperCol||{},y=a.classNames(`${b}-control`,g.className),m=a.reactExports.useMemo(()=>Object.assign({},x),[x]);delete m.labelCol,delete m.wrapperCol;const h=a.reactExports.createElement("div",{className:`${b}-control-input`},a.reactExports.createElement("div",{className:`${b}-control-input-content`},o)),v=a.reactExports.useMemo(()=>({prefixCls:t,status:r}),[t,r]),E=f!==null||i.length||s.length?a.reactExports.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},a.reactExports.createElement(wi.Provider,{value:v},a.reactExports.createElement(cu,{fieldId:d,errors:i,warnings:s,help:u,helpStatus:r,className:`${b}-explain-connected`,onVisibleChanged:p})),!!f&&a.reactExports.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const C=c?a.reactExports.createElement("div",Object.assign({},$,{className:`${b}-extra`}),c):null,S=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:h,errorList:E,extra:C}):a.reactExports.createElement(a.reactExports.Fragment,null,h,E,C);return a.reactExports.createElement($t.Provider,{value:m},a.reactExports.createElement(ou,Object.assign({},g,{className:y}),S),a.reactExports.createElement(Cb,{prefixCls:t}))},$b=wb;var Pb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:r,htmlFor:n,labelCol:o,labelAlign:i,colon:s,required:l,requiredMark:c,tooltip:u}=e;var d;const[f]=up("Form"),{vertical:p,labelAlign:b,labelCol:x,labelWrap:g,colon:y}=a.reactExports.useContext($t);if(!r)return null;const m=o||x||{},h=i||b,v=`${t}-item-label`,E=a.classNames(v,h==="left"&&`${v}-left`,m.className,{[`${v}-wrap`]:!!g});let $=r;const C=s===!0||y!==!1&&s!==!1;C&&!p&&typeof r=="string"&&r.trim()!==""&&($=r.replace(/[:|:]\s*$/,""));const O=Rb(u);if(O){const{icon:L=a.reactExports.createElement(_d,null)}=O,j=Pb(O,["icon"]),N=a.reactExports.createElement(Wh,Object.assign({},j),a.reactExports.cloneElement(L,{className:`${t}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));$=a.reactExports.createElement(a.reactExports.Fragment,null,$,N)}const P=c==="optional",I=typeof c=="function";I?$=c($,{required:!!l}):P&&!l&&($=a.reactExports.createElement(a.reactExports.Fragment,null,$,a.reactExports.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=ir.Form)===null||d===void 0?void 0:d.optional))));const T=a.classNames({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:P||I,[`${t}-item-no-colon`]:!C});return a.reactExports.createElement(ou,Object.assign({},m,{className:E}),a.reactExports.createElement("label",{htmlFor:n,className:T,title:typeof r=="string"?r:""},$))},_b=Ob,Ib={success:nd,warning:ud,error:ni,validating:yl};function gu(e){let{children:t,errors:r,warnings:n,hasFeedback:o,validateStatus:i,prefixCls:s,meta:l,noStyle:c}=e;const u=`${s}-item`,{feedbackIcons:d}=a.reactExports.useContext($t),f=du(r,n,l,null,!!o,i),{isFormItemInput:p,status:b,hasFeedback:x,feedbackIcon:g}=a.reactExports.useContext(vt),y=a.reactExports.useMemo(()=>{var m;let h;if(o){const E=o!==!0&&o.icons||d,$=f&&((m=E==null?void 0:E({status:f,errors:r,warnings:n}))===null||m===void 0?void 0:m[f]),C=f&&Ib[f];h=$!==!1&&C?a.reactExports.createElement("span",{className:a.classNames(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||a.reactExports.createElement(C,null)):null}const v={status:f||"",errors:r,warnings:n,hasFeedback:!!o,feedbackIcon:h,isFormItemInput:!0};return c&&(v.status=(f??b)||"",v.isFormItemInput=p,v.hasFeedback=!!(o??x),v.feedbackIcon=o!==void 0?v.feedbackIcon:g),v},[f,o,c,p,b]);return a.reactExports.createElement(vt.Provider,{value:y},t)}var jb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{if(O&&E.current){const _=getComputedStyle(E.current);T(parseInt(_.marginBottom,10))}},[O,P]);const L=_=>{_||T(null)},N=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const w=_?$:u.errors,R=_?C:u.warnings;return du(w,R,u,"",!!d,c)}(),z=a.classNames(h,r,n,{[`${h}-with-help`]:S||$.length||C.length,[`${h}-has-feedback`]:N&&d,[`${h}-has-success`]:N==="success",[`${h}-has-warning`]:N==="warning",[`${h}-has-error`]:N==="error",[`${h}-is-validating`]:N==="validating",[`${h}-hidden`]:f});return a.reactExports.createElement("div",{className:z,style:o,ref:E},a.reactExports.createElement(S0,Object.assign({className:`${h}-row`},un(m,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),a.reactExports.createElement(_b,Object.assign({htmlFor:b},e,{requiredMark:v,required:x??g,prefixCls:t})),a.reactExports.createElement($b,Object.assign({},e,u,{errors:$,warnings:C,prefixCls:t,status:N,help:i,marginBottom:I,onErrorVisibleChanged:L}),a.reactExports.createElement(Hc.Provider,{value:y},a.reactExports.createElement(gu,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:N},p)))),!!I&&a.reactExports.createElement("div",{className:`${h}-margin-offset`,style:{marginBottom:-I}}))}const Tb="__SPLIT__";function Mb(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>{const i=e[o],s=t[o];return i===s||typeof i=="function"||typeof s=="function"})}const Ab=a.reactExports.memo(e=>{let{children:t}=e;return t},(e,t)=>Mb(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function ol(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nb(e){const{name:t,noStyle:r,className:n,dependencies:o,prefixCls:i,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:b,hidden:x,help:g}=e,{getPrefixCls:y}=a.reactExports.useContext(Ie),{name:m}=a.reactExports.useContext($t),h=bb(c),v=typeof h=="function",E=a.reactExports.useContext(Hc),{validateTrigger:$}=a.reactExports.useContext(sr),C=b!==void 0?b:$,S=t!=null,O=y("form",i),P=mn(O),[I,T,L]=_i(O,P);fi();const j=a.reactExports.useContext(an),N=a.reactExports.useRef(),[z,_]=xb({}),[w,R]=or(()=>ol()),A=H=>{const U=j==null?void 0:j.getKey(H.name);if(R(H.destroy?ol():H,!0),r&&g!==!1&&E){let X=H.name;if(H.destroy)X=N.current||X;else if(U!==void 0){const[ee,re]=U;X=[ee].concat(Z(re)),N.current=X}E(H,X)}},M=(H,U)=>{_(X=>{const ee=Object.assign({},X),J=[].concat(Z(H.name.slice(0,-1)),Z(U)).join(Tb);return H.destroy?delete ee[J]:ee[J]=H,ee})},[F,B]=a.reactExports.useMemo(()=>{const H=Z(w.errors),U=Z(w.warnings);return Object.values(z).forEach(X=>{H.push.apply(H,Z(X.errors||[])),U.push.apply(U,Z(X.warnings||[]))}),[H,U]},[z,w.errors,w.warnings]),W=Eb();function G(H,U,X){return r&&!x?a.reactExports.createElement(gu,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:w,errors:F,warnings:B,noStyle:!0},H):a.reactExports.createElement(Fb,Object.assign({key:"row"},e,{className:a.classNames(n,L,P,T),prefixCls:O,fieldId:U,isRequired:X,errors:F,warnings:B,meta:w,onSubItemMetaChange:M}),H)}if(!S&&!v&&!o)return I(G(h));let V={};return typeof d=="string"?V.label=d:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),I(a.reactExports.createElement(Si,Object.assign({},e,{messageVariables:V,trigger:p,validateTrigger:C,onMetaChange:A}),(H,U,X)=>{const ee=Zr(t).length&&U?U.name:[],re=uu(ee,m),J=u!==void 0?u:!!(l&&l.some(K=>{if(K&&typeof K=="object"&&K.required&&!K.warningOnly)return!0;if(typeof K=="function"){const ue=K(X);return ue&&ue.required&&!ue.warningOnly}return!1})),ce=Object.assign({},H);let se=null;if(Array.isArray(h)&&S)se=h;else if(!(v&&(!(s||o)||S))){if(!(o&&!v&&!S))if(a.isValidElement(h)){const K=Object.assign(Object.assign({},h.props),ce);if(K.id||(K.id=re),g||F.length>0||B.length>0||e.extra){const fe=[];(g||F.length>0)&&fe.push(`${re}_help`),e.extra&&fe.push(`${re}_extra`),K["aria-describedby"]=fe.join(" ")}F.length>0&&(K["aria-invalid"]="true"),J&&(K["aria-required"]="true"),Mr(h)&&(K.ref=W(ee,h)),new Set([].concat(Z(Zr(p)),Z(Zr(C)))).forEach(fe=>{K[fe]=function(){for(var be,D,q,Q,ae,oe=arguments.length,pe=new Array(oe),me=0;me{var{prefixCls:t,children:r}=e,n=zb(e,["prefixCls","children"]);const{getPrefixCls:o}=a.reactExports.useContext(Ie),i=o("form",t),s=a.reactExports.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return a.reactExports.createElement(Lc,Object.assign({},n),(l,c,u)=>a.reactExports.createElement(wi.Provider,{value:s},r(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))},Vb=Bb;function Hb(){const{form:e}=a.reactExports.useContext($t);return e}const Pt=hb;Pt.Item=Lb;Pt.List=Vb;Pt.ErrorList=cu;Pt.useForm=fu;Pt.useFormInstance=Hb;Pt.useWatch=Vc;Pt.Provider=kc;Pt.create=()=>{};const Xn=Pt;function kb(){const e=t=>{console.log("Received values of form: ",t)};return a.jsxRuntimeExports.jsxs(Xn,{name:"normal_login",className:"login-form",initialValues:{},onFinish:e,children:[a.jsxRuntimeExports.jsx(Xn.Item,{name:"username",rules:[{required:!0,message:"请输入手机号/用户名"}],children:a.jsxRuntimeExports.jsx(el,{prefix:a.jsxRuntimeExports.jsx(Ld,{className:"site-form-item-icon"}),placeholder:"手机号/用户名"})}),a.jsxRuntimeExports.jsx(Xn.Item,{name:"password",rules:[{required:!0,message:"请输入密码"}],children:a.jsxRuntimeExports.jsx(el,{prefix:a.jsxRuntimeExports.jsx($d,{className:"site-form-item-icon"}),type:"password",placeholder:"密码"})}),a.jsxRuntimeExports.jsx(Xn.Item,{className:"login-form-button",children:a.jsxRuntimeExports.jsx(jc,{block:!0,type:"primary",htmlType:"submit",className:"login-form-button",children:"登 录"})})]})}function Wb(){return a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:a.jsxRuntimeExports.jsx("h1",{children:"Home"})})}function Db(){return a.jsxRuntimeExports.jsx(a.HashRouter,{children:a.jsxRuntimeExports.jsxs(a.Routes,{children:[a.jsxRuntimeExports.jsx(a.Route,{path:"/",element:a.jsxRuntimeExports.jsx(Wb,{})}),a.jsxRuntimeExports.jsx(a.Route,{path:"/login",element:a.jsxRuntimeExports.jsx(kb,{})})]})})}a.client.createRoot(document.getElementById("root")).render(a.jsxRuntimeExports.jsx(a.React.StrictMode,{children:a.jsxRuntimeExports.jsx(Db,{})})); diff --git a/AIProofread/dist/assets/react-libs-HP15TLKb.js b/AIProofread/dist/assets/react-libs-HP15TLKb.js new file mode 100644 index 0000000..94997e9 --- /dev/null +++ b/AIProofread/dist/assets/react-libs-HP15TLKb.js @@ -0,0 +1,79 @@ +"use strict";function fc(i,a){for(var s=0;sf[v]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}function Yi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function dc(i){if(i.__esModule)return i;var a=i.default;if(typeof a=="function"){var s=function f(){return this instanceof f?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};s.prototype=a.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(i).forEach(function(f){var v=Object.getOwnPropertyDescriptor(i,f);Object.defineProperty(s,f,v.get?v:{enumerable:!0,get:function(){return i[f]}})}),s}var pc={exports:{}},_r={},hc={exports:{}},Y={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ya;function Ud(){if(Ya)return Y;Ya=1;var i=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),D=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),T=Symbol.iterator;function V(p){return p===null||typeof p!="object"?null:(p=T&&p[T]||p["@@iterator"],typeof p=="function"?p:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,U={};function S(p,E,$){this.props=p,this.context=E,this.refs=U,this.updater=$||b}S.prototype.isReactComponent={},S.prototype.setState=function(p,E){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,E,"setState")},S.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function ne(){}ne.prototype=S.prototype;function ae(p,E,$){this.props=p,this.context=E,this.refs=U,this.updater=$||b}var pe=ae.prototype=new ne;pe.constructor=ae,X(pe,S.prototype),pe.isPureReactComponent=!0;var ve=Array.isArray,Te=Object.prototype.hasOwnProperty,Le={current:null},Ie={key:!0,ref:!0,__self:!0,__source:!0};function Ze(p,E,$){var G,K={},oe=null,q=null;if(E!=null)for(G in E.ref!==void 0&&(q=E.ref),E.key!==void 0&&(oe=""+E.key),E)Te.call(E,G)&&!Ie.hasOwnProperty(G)&&(K[G]=E[G]);var le=arguments.length-2;if(le===1)K.children=$;else if(1>>1,$=N[E];if(0>>1;Ev(oe,p))q<$&&0>v(le,oe)?(N[E]=le,N[q]=p,E=q):(N[E]=oe,N[K]=p,E=K);else if(q<$&&0>v(le,p))N[E]=le,N[q]=p,E=q;else break e}}return W}function v(N,W){var p=N.sortIndex-W.sortIndex;return p!==0?p:N.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var w=performance;i.unstable_now=function(){return w.now()}}else{var k=Date,R=k.now();i.unstable_now=function(){return k.now()-R}}var C=[],D=[],j=1,T=null,V=3,b=!1,X=!1,U=!1,S=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function pe(N){for(var W=s(D);W!==null;){if(W.callback===null)f(D);else if(W.startTime<=N)f(D),W.sortIndex=W.expirationTime,a(C,W);else break;W=s(D)}}function ve(N){if(U=!1,pe(N),!X)if(s(C)!==null)X=!0,De(Te);else{var W=s(D);W!==null&&he(ve,W.startTime-N)}}function Te(N,W){X=!1,U&&(U=!1,ne(Ze),Ze=-1),b=!0;var p=V;try{for(pe(W),T=s(C);T!==null&&(!(T.expirationTime>W)||N&&!Gt());){var E=T.callback;if(typeof E=="function"){T.callback=null,V=T.priorityLevel;var $=E(T.expirationTime<=W);W=i.unstable_now(),typeof $=="function"?T.callback=$:T===s(C)&&f(C),pe(W)}else f(C);T=s(C)}if(T!==null)var G=!0;else{var K=s(D);K!==null&&he(ve,K.startTime-W),G=!1}return G}finally{T=null,V=p,b=!1}}var Le=!1,Ie=null,Ze=-1,Ot=5,gt=-1;function Gt(){return!(i.unstable_now()-gtN||125E?(N.sortIndex=p,a(D,N),s(C)===null&&N===s(D)&&(U?(ne(Ze),Ze=-1):U=!0,he(ve,p-E))):(N.sortIndex=$,a(C,N),X||b||(X=!0,De(Te))),N},i.unstable_shouldYield=Gt,i.unstable_wrapCallback=function(N){var W=V;return function(){var p=V;V=W;try{return N.apply(this,arguments)}finally{V=p}}}}($i)),$i}var Za;function Vd(){return Za||(Za=1,Ui.exports=Bd()),Ui.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ja;function Wd(){if(Ja)return We;Ja=1;var i=vc,a=Vd();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C=Object.prototype.hasOwnProperty,D=/^[: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]*$/,j={},T={};function V(e){return C.call(T,e)?!0:C.call(j,e)?!1:D.test(e)?T[e]=!0:(j[e]=!0,!1)}function b(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function X(e,t,n,r){if(t===null||typeof t>"u"||b(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function U(e,t,n,r,l,o,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=u}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new U(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new U(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new U(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new U(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new U(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new U(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new U(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new U(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new U(e,5,!1,e.toLowerCase(),null,!1,!1)});var ne=/[\-:]([a-z])/g;function ae(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ne,ae);S[t]=new U(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ne,ae);S[t]=new U(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ne,ae);S[t]=new U(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new U(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new U(e,1,!1,e.toLowerCase(),null,!0,!0)});function pe(e,t,n,r){var l=S.hasOwnProperty(t)?S[t]:null;(l!==null?l.type!==0:r||!(2c||l[u]!==o[c]){var d=` +`+l[u].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=u&&0<=c);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function oe(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=K(e.type,!1),e;case 11:return e=K(e.type.render,!1),e;case 1:return e=K(e.type,!0),e;default:return""}}function q(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ie:return"Fragment";case Le:return"Portal";case Ot:return"Profiler";case Ze:return"StrictMode";case Qe:return"Suspense";case rt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gt:return(e.displayName||"Context")+".Consumer";case gt:return(e._context.displayName||"Context")+".Provider";case ft:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dt:return t=e.displayName||null,t!==null?t:q(e.type)||"Memo";case De:t=e._payload,e=e._init;try{return q(e(t))}catch{}}return null}function le(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===Ze?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ee(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ac(e){var t=Fe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cr(e){e._valueTracker||(e._valueTracker=Ac(e))}function qi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Hl(e,t){var n=t.checked;return p({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ee(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eu(e,t){t=t.checked,t!=null&&pe(e,"checked",t,!1)}function Ql(e,t){eu(e,t);var n=ee(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Kl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Kl(e,t.type,ee(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Kl(e,t,n){(t!=="number"||Pr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fn=Array.isArray;function cn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $n={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bc=["Webkit","ms","Moz","O"];Object.keys($n).forEach(function(e){Bc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$n[t]=$n[e]})});function uu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$n.hasOwnProperty(e)&&$n[e]?(""+t).trim():t+"px"}function su(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=uu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Vc=p({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xl(e,t){if(t){if(Vc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Zl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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!1;default:return!0}}var Jl=null;function ql(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,fn=null,dn=null;function au(e){if(e=ur(e)){if(typeof bl!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Zr(t),bl(e.stateNode,e.type,t))}}function cu(e){fn?dn?dn.push(e):dn=[e]:fn=e}function fu(){if(fn){var e=fn,t=dn;if(dn=fn=null,au(e),t)for(e=0;e>>=0,e===0?32:31-(bc(e)/ef|0)|0}var Lr=64,Mr=4194304;function Wn(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=n&268435455;if(u!==0){var c=u&~l;c!==0?r=Wn(c):(o&=u,o!==0&&(r=Wn(o)))}else u=n&~l,u!==0?r=Wn(u):o!==0&&(r=Wn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Hn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function lf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qn),$u=" ",Au=!1;function Bu(e,t){switch(e){case"keyup":return Mf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mn=!1;function If(e,t){switch(e){case"compositionend":return Vu(t);case"keypress":return t.which!==32?null:(Au=!0,$u);case"textInput":return e=t.data,e===$u&&Au?null:e;default:return null}}function Df(e,t){if(mn)return e==="compositionend"||!go&&Bu(e,t)?(e=Mu(),$r=fo=Lt=null,mn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xu(n)}}function Ju(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ju(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qu(){for(var e=window,t=Pr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pr(e.document)}return t}function ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qf(e){var t=qu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ju(n.ownerDocument.documentElement,n)){if(r!==null&&ko(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Zu(n,o);var u=Zu(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,vn=null,_o=null,nr=null,Eo=!1;function bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eo||vn==null||vn!==Pr(r)||(r=vn,"selectionStart"in r&&ko(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),nr&&tr(nr,r)||(nr=r,r=Yr(_o,"onSelect"),0kn||(e.current=Io[kn],Io[kn]=null,kn--)}function ie(e,t){kn++,Io[kn]=e.current,e.current=t}var Dt={},Oe=It(Dt),Ue=It(!1),Jt=Dt;function _n(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function $e(e){return e=e.childContextTypes,e!=null}function Jr(){se(Ue),se(Oe)}function hs(e,t,n){if(Oe.current!==Dt)throw Error(s(168));ie(Oe,t),ie(Ue,n)}function ms(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(s(108,le(e)||"Unknown",l));return p({},n,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Jt=Oe.current,ie(Oe,e),ie(Ue,Ue.current),!0}function vs(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=ms(e,t,Jt),r.__reactInternalMemoizedMergedChildContext=e,se(Ue),se(Oe),ie(Oe,e)):se(Ue),ie(Ue,n)}var St=null,br=!1,Do=!1;function ys(e){St===null?St=[e]:St.push(e)}function rd(e){br=!0,ys(e)}function Ft(){if(!Do&&St!==null){Do=!0;var e=0,t=re;try{var n=St;for(re=1;e>=u,l-=u,kt=1<<32-lt(t)+l|n<H?(xe=B,B=null):xe=B.sibling;var J=_(m,B,y[H],O);if(J===null){B===null&&(B=xe);break}e&&B&&J.alternate===null&&t(m,B),h=o(J,h,H),A===null?F=J:A.sibling=J,A=J,B=xe}if(H===y.length)return n(m,B),ce&&bt(m,H),F;if(B===null){for(;HH?(xe=B,B=null):xe=B.sibling;var Kt=_(m,B,J.value,O);if(Kt===null){B===null&&(B=xe);break}e&&B&&Kt.alternate===null&&t(m,B),h=o(Kt,h,H),A===null?F=Kt:A.sibling=Kt,A=Kt,B=xe}if(J.done)return n(m,B),ce&&bt(m,H),F;if(B===null){for(;!J.done;H++,J=y.next())J=P(m,J.value,O),J!==null&&(h=o(J,h,H),A===null?F=J:A.sibling=J,A=J);return ce&&bt(m,H),F}for(B=r(m,B);!J.done;H++,J=y.next())J=z(B,m,H,J.value,O),J!==null&&(e&&J.alternate!==null&&B.delete(J.key===null?H:J.key),h=o(J,h,H),A===null?F=J:A.sibling=J,A=J);return e&&B.forEach(function(Fd){return t(m,Fd)}),ce&&bt(m,H),F}function ge(m,h,y,O){if(typeof y=="object"&&y!==null&&y.type===Ie&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Te:e:{for(var F=y.key,A=h;A!==null;){if(A.key===F){if(F=y.type,F===Ie){if(A.tag===7){n(m,A.sibling),h=l(A,y.props.children),h.return=m,m=h;break e}}else if(A.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===De&&Ts(F)===A.type){n(m,A.sibling),h=l(A,y.props),h.ref=sr(m,A,y),h.return=m,m=h;break e}n(m,A);break}else t(m,A);A=A.sibling}y.type===Ie?(h=sn(y.props.children,m.mode,O,y.key),h.return=m,m=h):(O=Ol(y.type,y.key,y.props,null,m.mode,O),O.ref=sr(m,h,y),O.return=m,m=O)}return u(m);case Le:e:{for(A=y.key;h!==null;){if(h.key===A)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=l(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Mi(y,m.mode,O),h.return=m,m=h}return u(m);case De:return A=y._init,ge(m,h,A(y._payload),O)}if(Fn(y))return M(m,h,y,O);if(W(y))return I(m,h,y,O);sl(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=l(h,y),h.return=m,m=h):(n(m,h),h=Li(y,m.mode,O),h.return=m,m=h),u(m)):n(m,h)}return ge}var Rn=Ls(!0),Ms=Ls(!1),ar={},mt=It(ar),cr=It(ar),fr=It(ar);function tn(e){if(e===ar)throw Error(s(174));return e}function Zo(e,t){switch(ie(fr,t),ie(cr,e),ie(mt,ar),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Gl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Gl(t,e)}se(mt),ie(mt,t)}function Nn(){se(mt),se(cr),se(fr)}function js(e){tn(fr.current);var t=tn(mt.current),n=Gl(t,e.type);t!==n&&(ie(cr,e),ie(mt,n))}function Jo(e){cr.current===e&&(se(mt),se(cr))}var fe=It(0);function al(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qo=[];function bo(){for(var e=0;en?n:4,e(!0);var r=ei.transition;ei.transition={};try{e(!1),t()}finally{re=n,ei.transition=r}}function qs(){return et().memoizedState}function ud(e,t,n){var r=Wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bs(e))ea(t,n);else if(n=Es(e,t,n,r),n!==null){var l=je();ct(n,e,r,l),ta(n,t,r)}}function sd(e,t,n){var r=Wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bs(e))ea(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,c=o(u,n);if(l.hasEagerState=!0,l.eagerState=c,ot(c,u)){var d=t.interleaved;d===null?(l.next=l,Ko(t)):(l.next=d.next,d.next=l),t.interleaved=l;return}}catch{}finally{}n=Es(e,t,l,r),n!==null&&(l=je(),ct(n,e,r,l),ta(n,t,r))}}function bs(e){var t=e.alternate;return e===de||t!==null&&t===de}function ea(e,t){dr=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ta(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,io(e,n)}}var hl={readContext:be,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},ad={readContext:be,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:Hs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dl(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ud.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:Vs,useDebugValue:ui,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=Vs(!1),t=e[0];return e=id.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,l=vt();if(ce){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ee===null)throw Error(s(349));nn&30||Fs(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Hs($s.bind(null,r,o,e),[e]),r.flags|=2048,mr(9,Us.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=vt(),t=Ee.identifierPrefix;if(ce){var n=_t,r=kt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[ht]=t,e[ir]=r,ga(e,t,!1,!1),t.stateNode=e;e:{switch(u=Zl(n,r),n){case"dialog":ue("cancel",e),ue("close",e),l=r;break;case"iframe":case"object":case"embed":ue("load",e),l=r;break;case"video":case"audio":for(l=0;lMn&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304)}else{if(!r)if(e=al(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!ce)return Ne(t),null}else 2*ye()-o.renderingStartTime>Mn&&n!==1073741824&&(t.flags|=128,r=!0,vr(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ye(),t.sibling=null,n=fe.current,ie(fe,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return Ni(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xe&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function yd(e,t){switch(Uo(t),t.tag){case 1:return $e(t.type)&&Jr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(),se(Ue),se(Oe),bo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jo(t),null;case 13:if(se(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(fe),null;case 4:return Nn(),null;case 10:return Ho(t.type._context),null;case 22:case 23:return Ni(),null;case 24:return null;default:return null}}var yl=!1,ze=!1,gd=typeof WeakSet=="function"?WeakSet:Set,L=null;function Tn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function yi(e,t,n){try{n()}catch(r){me(e,t,r)}}var ka=!1;function wd(e,t){if(No=Fr,e=qu(),ko(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,c=-1,d=-1,g=0,x=0,P=e,_=null;t:for(;;){for(var z;P!==n||l!==0&&P.nodeType!==3||(c=u+l),P!==o||r!==0&&P.nodeType!==3||(d=u+r),P.nodeType===3&&(u+=P.nodeValue.length),(z=P.firstChild)!==null;)_=P,P=z;for(;;){if(P===e)break t;if(_===n&&++g===l&&(c=u),_===o&&++x===r&&(d=u),(z=P.nextSibling)!==null)break;P=_,_=P.parentNode}P=z}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(zo={focusedElem:e,selectionRange:n},Fr=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var M=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var I=M.memoizedProps,ge=M.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?I:ut(t.type,I),ge);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(O){me(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return M=ka,ka=!1,M}function yr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&yi(t,n,o)}l=l.next}while(l!==r)}}function gl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function gi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _a(e){var t=e.alternate;t!==null&&(e.alternate=null,_a(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[ir],delete t[jo],delete t[td],delete t[nd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ea(e){return e.tag===5||e.tag===3||e.tag===4}function xa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ea(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xr));else if(r!==4&&(e=e.child,e!==null))for(wi(e,t,n),e=e.sibling;e!==null;)wi(e,t,n),e=e.sibling}function Si(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Si(e,t,n),e=e.sibling;e!==null;)Si(e,t,n),e=e.sibling}var Ce=null,st=!1;function At(e,t,n){for(n=n.child;n!==null;)Ca(e,t,n),n=n.sibling}function Ca(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Tr,n)}catch{}switch(n.tag){case 5:ze||Tn(n,t);case 6:var r=Ce,l=st;Ce=null,At(e,t,n),Ce=r,st=l,Ce!==null&&(st?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(st?(e=Ce,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),Xn(e)):Mo(Ce,n.stateNode));break;case 4:r=Ce,l=st,Ce=n.stateNode.containerInfo,st=!0,At(e,t,n),Ce=r,st=l;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&yi(n,t,u),l=l.next}while(l!==r)}At(e,t,n);break;case 1:if(!ze&&(Tn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){me(n,t,c)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,At(e,t,n),ze=r):At(e,t,n);break;default:At(e,t,n)}}function Pa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gd),t.forEach(function(r){var l=Rd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function at(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=u),r&=~o}if(r=l,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kd(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,El=0,Z&6)throw Error(s(331));var l=Z;for(Z|=4,L=e.current;L!==null;){var o=L,u=o.child;if(L.flags&16){var c=o.deletions;if(c!==null){for(var d=0;dye()-Ei?on(e,0):_i|=n),Ve(e,t)}function $a(e,t){t===0&&(e.mode&1?(t=Mr,Mr<<=1,!(Mr&130023424)&&(Mr=4194304)):t=1);var n=je();e=Et(e,t),e!==null&&(Hn(e,t,n),Ve(e,n))}function Od(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$a(e,n)}function Rd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),$a(e,n)}var Aa;Aa=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,md(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,ce&&t.flags&1048576&&gs(t,tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vl(e,t),e=t.pendingProps;var l=_n(t,Oe.current);On(t,n),l=ni(null,t,r,e,l,n);var o=ri();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(o=!0,qr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Yo(t),l.updater=ul,t.stateNode=l,l._reactInternals=t,Xo(t,r,e,n),t=fi(null,t,r,!0,o,n)):(t.tag=0,ce&&o&&Fo(t),Me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=zd(r),e=ut(r,e),l){case 0:t=ci(null,t,r,e,n);break e;case 1:t=da(null,t,r,e,n);break e;case 11:t=ua(null,t,r,e,n);break e;case 14:t=sa(null,t,r,ut(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ut(r,l),ci(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ut(r,l),da(e,t,r,l,n);case 3:e:{if(pa(t),e===null)throw Error(s(387));r=t.pendingProps,o=t.memoizedState,l=o.element,xs(e,t),il(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=zn(Error(s(423)),t),t=ha(e,t,r,n,l);break e}else if(r!==l){l=zn(Error(s(424)),t),t=ha(e,t,r,n,l);break e}else for(Ge=jt(t.stateNode.containerInfo.firstChild),Ye=t,ce=!0,it=null,n=Ms(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cn(),r===l){t=Ct(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return js(t),e===null&&Ao(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,To(r,l)?u=null:o!==null&&To(r,o)&&(t.flags|=32),fa(e,t),Me(e,t,u,n),t.child;case 6:return e===null&&Ao(t),null;case 13:return ma(e,t,n);case 4:return Zo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rn(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ut(r,l),ua(e,t,r,l,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,u=l.value,ie(rl,r._currentValue),r._currentValue=u,o!==null)if(ot(o.value,u)){if(o.children===l.children&&!Ue.current){t=Ct(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){u=o.child;for(var d=c.firstContext;d!==null;){if(d.context===r){if(o.tag===1){d=xt(-1,n&-n),d.tag=2;var g=o.updateQueue;if(g!==null){g=g.shared;var x=g.pending;x===null?d.next=d:(d.next=x.next,x.next=d),g.pending=d}}o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),Qo(o.return,n,t),c.lanes|=n;break}d=d.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(s(341));u.lanes|=n,c=u.alternate,c!==null&&(c.lanes|=n),Qo(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}Me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,On(t,n),l=be(l),r=r(l),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,l=ut(r,t.pendingProps),l=ut(r.type,l),sa(e,t,r,l,n);case 15:return aa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ut(r,l),vl(e,t),t.tag=1,$e(r)?(e=!0,qr(t)):e=!1,On(t,n),Ns(t,r,l),Xo(t,r,l,n),fi(null,t,r,!0,e,n);case 19:return ya(e,t,n);case 22:return ca(e,t,n)}throw Error(s(156,t.tag))};function Ba(e,t){return wu(e,t)}function Nd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nt(e,t,n,r){return new Nd(e,t,n,r)}function Ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zd(e){if(typeof e=="function")return Ti(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ft)return 11;if(e===dt)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,l,o){var u=2;if(r=e,typeof e=="function")Ti(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Ie:return sn(n.children,l,o,t);case Ze:u=8,l|=8;break;case Ot:return e=nt(12,n,t,l|2),e.elementType=Ot,e.lanes=o,e;case Qe:return e=nt(13,n,t,l),e.elementType=Qe,e.lanes=o,e;case rt:return e=nt(19,n,t,l),e.elementType=rt,e.lanes=o,e;case he:return Rl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gt:u=10;break e;case Gt:u=9;break e;case ft:u=11;break e;case dt:u=14;break e;case De:u=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=nt(u,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=nt(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=nt(22,e,r,t),e.elementType=he,e.lanes=n,e.stateNode={isHidden:!1},e}function Li(e,t,n){return e=nt(6,e,null,t),e.lanes=n,e}function Mi(e,t,n){return t=nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Td(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oo(0),this.expirationTimes=oo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ji(e,t,n,r,l,o,u,c,d){return e=new Td(e,t,n,c,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=nt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yo(o),e}function Ld(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gc)}catch(i){console.error(i)}}gc(),yc.exports=Wd();var Gi=yc.exports;const wc=Yi(Gi),Sc=fc({__proto__:null,default:wc},[Gi]),Hd=dc(Sc);var qa=Hd;Ai.createRoot=qa.createRoot,Ai.hydrateRoot=qa.hydrateRoot;/** + * @remix-run/router v1.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Il(){return Il=Object.assign?Object.assign.bind():function(i){for(var a=1;a"u")throw new Error(a)}function Al(i,a){if(!i){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Kd(){return Math.random().toString(36).substr(2,8)}function ec(i,a){return{usr:i.state,key:i.key,idx:a}}function Bi(i,a,s,f){return s===void 0&&(s=null),Il({pathname:typeof i=="string"?i:i.pathname,search:"",hash:""},typeof a=="string"?xr(a):a,{state:s,key:a&&a.key||f||Kd()})}function kc(i){let{pathname:a="/",search:s="",hash:f=""}=i;return s&&s!=="?"&&(a+=s.charAt(0)==="?"?s:"?"+s),f&&f!=="#"&&(a+=f.charAt(0)==="#"?f:"#"+f),a}function xr(i){let a={};if(i){let s=i.indexOf("#");s>=0&&(a.hash=i.substr(s),i=i.substr(0,s));let f=i.indexOf("?");f>=0&&(a.search=i.substr(f),i=i.substr(0,f)),i&&(a.pathname=i)}return a}function Yd(i,a,s,f){f===void 0&&(f={});let{window:v=document.defaultView,v5Compat:w=!1}=f,k=v.history,R=Yt.Pop,C=null,D=j();D==null&&(D=0,k.replaceState(Il({},k.state,{idx:D}),""));function j(){return(k.state||{idx:null}).idx}function T(){R=Yt.Pop;let S=j(),ne=S==null?null:S-D;D=S,C&&C({action:R,location:U.location,delta:ne})}function V(S,ne){R=Yt.Push;let ae=Bi(U.location,S,ne);s&&s(ae,S),D=j()+1;let pe=ec(ae,D),ve=U.createHref(ae);try{k.pushState(pe,"",ve)}catch(Te){if(Te instanceof DOMException&&Te.name==="DataCloneError")throw Te;v.location.assign(ve)}w&&C&&C({action:R,location:U.location,delta:1})}function b(S,ne){R=Yt.Replace;let ae=Bi(U.location,S,ne);s&&s(ae,S),D=j();let pe=ec(ae,D),ve=U.createHref(ae);k.replaceState(pe,"",ve),w&&C&&C({action:R,location:U.location,delta:0})}function X(S){let ne=v.location.origin!=="null"?v.location.origin:v.location.href,ae=typeof S=="string"?S:kc(S);return He(ne,"No window.location.(origin|href) available to create URL for href: "+ae),new URL(ae,ne)}let U={get action(){return R},get location(){return i(v,k)},listen(S){if(C)throw new Error("A history only accepts one active listener");return v.addEventListener(ba,T),C=S,()=>{v.removeEventListener(ba,T),C=null}},createHref(S){return a(v,S)},createURL:X,encodeLocation(S){let ne=X(S);return{pathname:ne.pathname,search:ne.search,hash:ne.hash}},push:V,replace:b,go(S){return k.go(S)}};return U}var tc;(function(i){i.data="data",i.deferred="deferred",i.redirect="redirect",i.error="error"})(tc||(tc={}));function Gd(i,a,s){s===void 0&&(s="/");let f=typeof a=="string"?xr(a):a,v=xc(f.pathname||"/",s);if(v==null)return null;let w=_c(i);Xd(w);let k=null;for(let R=0;k==null&&R{let C={relativePath:R===void 0?w.path||"":R,caseSensitive:w.caseSensitive===!0,childrenIndex:k,route:w};C.relativePath.startsWith("/")&&(He(C.relativePath.startsWith(f),'Absolute route path "'+C.relativePath+'" nested under path '+('"'+f+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),C.relativePath=C.relativePath.slice(f.length));let D=In([f,C.relativePath]),j=s.concat(C);w.children&&w.children.length>0&&(He(w.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+D+'".')),_c(w.children,a,j,D)),!(w.path==null&&!w.index)&&a.push({path:D,score:np(D,w.index),routesMeta:j})};return i.forEach((w,k)=>{var R;if(w.path===""||!((R=w.path)!=null&&R.includes("?")))v(w,k);else for(let C of Ec(w.path))v(w,k,C)}),a}function Ec(i){let a=i.split("/");if(a.length===0)return[];let[s,...f]=a,v=s.endsWith("?"),w=s.replace(/\?$/,"");if(f.length===0)return v?[w,""]:[w];let k=Ec(f.join("/")),R=[];return R.push(...k.map(C=>C===""?w:[w,C].join("/"))),v&&R.push(...k),R.map(C=>i.startsWith("/")&&C===""?"/":C)}function Xd(i){i.sort((a,s)=>a.score!==s.score?s.score-a.score:rp(a.routesMeta.map(f=>f.childrenIndex),s.routesMeta.map(f=>f.childrenIndex)))}const Zd=/^:[\w-]+$/,Jd=3,qd=2,bd=1,ep=10,tp=-2,nc=i=>i==="*";function np(i,a){let s=i.split("/"),f=s.length;return s.some(nc)&&(f+=tp),a&&(f+=qd),s.filter(v=>!nc(v)).reduce((v,w)=>v+(Zd.test(w)?Jd:w===""?bd:ep),f)}function rp(i,a){return i.length===a.length&&i.slice(0,-1).every((f,v)=>f===a[v])?i[i.length-1]-a[a.length-1]:0}function lp(i,a){let{routesMeta:s}=i,f={},v="/",w=[];for(let k=0;k{let{paramName:V,isOptional:b}=j;if(V==="*"){let U=R[T]||"";k=w.slice(0,w.length-U.length).replace(/(.)\/+$/,"$1")}const X=R[T];return b&&!X?D[V]=void 0:D[V]=sp(X||"",V),D},{}),pathname:w,pathnameBase:k,pattern:i}}function ip(i,a,s){a===void 0&&(a=!1),s===void 0&&(s=!0),Al(i==="*"||!i.endsWith("*")||i.endsWith("/*"),'Route path "'+i+'" will be treated as if it were '+('"'+i.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+i.replace(/\*$/,"/*")+'".'));let f=[],v="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(k,R,C)=>(f.push({paramName:R,isOptional:C!=null}),C?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(f.push({paramName:"*"}),v+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?v+="\\/*$":i!==""&&i!=="/"&&(v+="(?:(?=\\/|$))"),[new RegExp(v,a?void 0:"i"),f]}function up(i){try{return decodeURI(i)}catch(a){return Al(!1,'The URL path "'+i+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+a+").")),i}}function sp(i,a){try{return decodeURIComponent(i)}catch(s){return Al(!1,'The value for the URL param "'+a+'" will not be decoded because'+(' the string "'+i+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+s+").")),i}}function xc(i,a){if(a==="/")return i;if(!i.toLowerCase().startsWith(a.toLowerCase()))return null;let s=a.endsWith("/")?a.length-1:a.length,f=i.charAt(s);return f&&f!=="/"?null:i.slice(s)||"/"}const In=i=>i.join("/").replace(/\/\/+/g,"/"),ap=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/");function cp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}const Cc=["post","put","patch","delete"];new Set(Cc);const fp=["get",...Cc];new Set(fp);/** + * React Router v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Dl(){return Dl=Object.assign?Object.assign.bind():function(i){for(var a=1;aObject.assign({},S,{params:Object.assign({},R,S.params),pathname:In([C,v.encodeLocation?v.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?C:In([C,v.encodeLocation?v.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),w,s,f);return a&&U?Q.createElement(Bl.Provider,{value:{location:Dl({pathname:"/",search:"",hash:"",state:null,key:"default"},j),navigationType:Yt.Pop}},U):U}function yp(){let i=Cp(),a=cp(i)?i.status+" "+i.statusText:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,v={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Q.createElement(Q.Fragment,null,Q.createElement("h2",null,"Unexpected Application Error!"),Q.createElement("h3",{style:{fontStyle:"italic"}},a),s?Q.createElement("pre",{style:v},s):null,null)}const gp=Q.createElement(yp,null);class wp extends Q.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,s){return s.location!==a.location||s.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:s.error,location:s.location,revalidation:a.revalidation||s.revalidation}}componentDidCatch(a,s){console.error("React Router caught the following error during render",a,s)}render(){return this.state.error!==void 0?Q.createElement(Vl.Provider,{value:this.props.routeContext},Q.createElement(Oc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Sp(i){let{routeContext:a,match:s,children:f}=i,v=Q.useContext(dp);return v&&v.static&&v.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(v.staticContext._deepestRenderedBoundaryId=s.route.id),Q.createElement(Vl.Provider,{value:a},f)}function kp(i,a,s,f){var v;if(a===void 0&&(a=[]),s===void 0&&(s=null),f===void 0&&(f=null),i==null){var w;if((w=s)!=null&&w.errors)i=s.matches;else return null}let k=i,R=(v=s)==null?void 0:v.errors;if(R!=null){let j=k.findIndex(T=>T.route.id&&(R==null?void 0:R[T.route.id]));j>=0||He(!1),k=k.slice(0,Math.min(k.length,j+1))}let C=!1,D=-1;if(s&&f&&f.v7_partialHydration)for(let j=0;j=0?k=k.slice(0,D+1):k=[k[0]];break}}}return k.reduceRight((j,T,V)=>{let b,X=!1,U=null,S=null;s&&(b=R&&T.route.id?R[T.route.id]:void 0,U=T.route.errorElement||gp,C&&(D<0&&V===0?(Pp("route-fallback",!1),X=!0,S=null):D===V&&(X=!0,S=T.route.hydrateFallbackElement||null)));let ne=a.concat(k.slice(0,V+1)),ae=()=>{let pe;return b?pe=U:X?pe=S:T.route.Component?pe=Q.createElement(T.route.Component,null):T.route.element?pe=T.route.element:pe=j,Q.createElement(Sp,{match:T,routeContext:{outlet:j,matches:ne,isDataRoute:s!=null},children:pe})};return s&&(T.route.ErrorBoundary||T.route.errorElement||V===0)?Q.createElement(wp,{location:s.location,revalidation:s.revalidation,component:U,error:b,children:ae(),routeContext:{outlet:null,matches:ne,isDataRoute:!0}}):ae()},null)}var Vi=function(i){return i.UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i}(Vi||{});function _p(i){let a=Q.useContext(pp);return a||He(!1),a}function Ep(i){let a=Q.useContext(Vl);return a||He(!1),a}function xp(i){let a=Ep(),s=a.matches[a.matches.length-1];return s.route.id||He(!1),s.route.id}function Cp(){var i;let a=Q.useContext(Oc),s=_p(Vi.UseRouteError),f=xp(Vi.UseRouteError);return a!==void 0?a:(i=s.errors)==null?void 0:i[f]}const rc={};function Pp(i,a,s){!a&&!rc[i]&&(rc[i]=!0)}function Rc(i){He(!1)}function Op(i){let{basename:a="/",children:s=null,location:f,navigationType:v=Yt.Pop,navigator:w,static:k=!1,future:R}=i;Xi()&&He(!1);let C=a.replace(/^\/*/,"/"),D=Q.useMemo(()=>({basename:C,navigator:w,static:k,future:Dl({v7_relativeSplatPath:!1},R)}),[C,R,w,k]);typeof f=="string"&&(f=xr(f));let{pathname:j="/",search:T="",hash:V="",state:b=null,key:X="default"}=f,U=Q.useMemo(()=>{let S=xc(j,C);return S==null?null:{location:{pathname:S,search:T,hash:V,state:b,key:X},navigationType:v}},[C,j,T,V,b,X,v]);return U==null?null:Q.createElement(Pc.Provider,{value:D},Q.createElement(Bl.Provider,{children:s,value:U}))}function Rp(i){let{children:a,location:s}=i;return mp(Wi(a),s)}new Promise(()=>{});function Wi(i,a){a===void 0&&(a=[]);let s=[];return Q.Children.forEach(i,(f,v)=>{if(!Q.isValidElement(f))return;let w=[...a,v];if(f.type===Q.Fragment){s.push.apply(s,Wi(f.props.children,w));return}f.type!==Rc&&He(!1),!f.props.index||!f.props.children||He(!1);let k={id:f.props.id||w.join("-"),caseSensitive:f.props.caseSensitive,element:f.props.element,Component:f.props.Component,index:f.props.index,path:f.props.path,loader:f.props.loader,action:f.props.action,errorElement:f.props.errorElement,ErrorBoundary:f.props.ErrorBoundary,hasErrorBoundary:f.props.ErrorBoundary!=null||f.props.errorElement!=null,shouldRevalidate:f.props.shouldRevalidate,handle:f.props.handle,lazy:f.props.lazy};f.props.children&&(k.children=Wi(f.props.children,w)),s.push(k)}),s}/** + * React Router DOM v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const Np="startTransition",lc=$l[Np];function zp(i){let{basename:a,children:s,future:f,window:v}=i,w=Q.useRef();w.current==null&&(w.current=Qd({window:v,v5Compat:!0}));let k=w.current,[R,C]=Q.useState({action:k.action,location:k.location}),{v7_startTransition:D}=f||{},j=Q.useCallback(T=>{D&&lc?lc(()=>C(T)):C(T)},[C,D]);return Q.useLayoutEffect(()=>k.listen(j),[k,j]),Q.createElement(Op,{basename:a,children:s,location:R.location,navigationType:R.action,navigator:k,future:f})}var oc;(function(i){i.UseScrollRestoration="useScrollRestoration",i.UseSubmit="useSubmit",i.UseSubmitFetcher="useSubmitFetcher",i.UseFetcher="useFetcher",i.useViewTransitionState="useViewTransitionState"})(oc||(oc={}));var ic;(function(i){i.UseFetcher="useFetcher",i.UseFetchers="useFetchers",i.UseScrollRestoration="useScrollRestoration"})(ic||(ic={}));function Hi(){return Hi=Object.assign?Object.assign.bind():function(i){for(var a=1;a=0)&&(s[v]=i[v]);return s}function Mp(i,a){if(i==null)return{};var s=Lp(i,a),f,v;if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(v=0;v=0)&&Object.prototype.propertyIsEnumerable.call(i,f)&&(s[f]=i[f])}return s}var Tc={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(i){(function(){var a={}.hasOwnProperty;function s(){for(var w="",k=0;k0},i.prototype.connect_=function(){!Qi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Hp?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},i.prototype.disconnect_=function(){!Qi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},i.prototype.onTransitionEnd_=function(a){var s=a.propertyName,f=s===void 0?"":s,v=Wp.some(function(w){return!!~f.indexOf(w)});v&&this.refresh()},i.getInstance=function(){return this.instance_||(this.instance_=new i),this.instance_},i.instance_=null,i}(),jc=function(i,a){for(var s=0,f=Object.keys(a);s"u"||!(Element instanceof Object))){if(!(a instanceof Dn(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var s=this.observations_;s.has(a)||(s.set(a,new bp(a)),this.controller_.addObserver(this),this.controller_.refresh())}},i.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(a instanceof Dn(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var s=this.observations_;s.has(a)&&(s.delete(a),s.size||this.controller_.removeObserver(this))}},i.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},i.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(s){s.isActive()&&a.activeObservations_.push(s)})},i.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,s=this.activeObservations_.map(function(f){return new eh(f.target,f.broadcastRect())});this.callback_.call(a,s,a),this.clearActive()}},i.prototype.clearActive=function(){this.activeObservations_.splice(0)},i.prototype.hasActive=function(){return this.activeObservations_.length>0},i}(),Dc=typeof WeakMap<"u"?new WeakMap:new Mc,Fc=function(){function i(a){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var s=Qp.getInstance(),f=new th(a,s,this);Dc.set(this,f)}return i}();["observe","unobserve","disconnect"].forEach(function(i){Fc.prototype[i]=function(){var a;return(a=Dc.get(this))[i].apply(a,arguments)}});var nh=function(){return typeof Fl.ResizeObserver<"u"?Fl.ResizeObserver:Fc}();function rh(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function cc(i,a){for(var s=0;s + + + + + + Vite + React + TS + + + + + +
+ + diff --git a/AIProofread/dist/vite.svg b/AIProofread/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/AIProofread/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/AIProofread/obj/Debug/.NETFramework,Version=v4.6.2.AssemblyAttributes.cs b/AIProofread/obj/Debug/.NETFramework,Version=v4.6.2.AssemblyAttributes.cs new file mode 100644 index 0000000..edc4647 --- /dev/null +++ b/AIProofread/obj/Debug/.NETFramework,Version=v4.6.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.2", FrameworkDisplayName = ".NET Framework 4.6.2")] diff --git a/AIProofread/obj/Debug/AIProofread.csproj.AssemblyReference.cache b/AIProofread/obj/Debug/AIProofread.csproj.AssemblyReference.cache new file mode 100644 index 0000000..e7a9b8e Binary files /dev/null and b/AIProofread/obj/Debug/AIProofread.csproj.AssemblyReference.cache differ diff --git a/AIProofread/obj/Debug/AIProofread.csproj.CoreCompileInputs.cache b/AIProofread/obj/Debug/AIProofread.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..3e9b682 --- /dev/null +++ b/AIProofread/obj/Debug/AIProofread.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +f8fc04f6cedea53f8bf5057ddd2cd790d7e32d69 diff --git a/AIProofread/obj/Debug/AIProofread.csproj.FileListAbsolute.txt b/AIProofread/obj/Debug/AIProofread.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..56e24dd --- /dev/null +++ b/AIProofread/obj/Debug/AIProofread.csproj.FileListAbsolute.txt @@ -0,0 +1,24 @@ +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\AIProofread.csproj.AssemblyReference.cache +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Controls.FormLogin.resources +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Controls.ProofreadMainControl.resources +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Properties.Resources.resources +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Ribbon1.resources +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\AIProofread.csproj.GenerateResource.cache +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\AIProofread.csproj.CoreCompileInputs.cache +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\runtimes\win-x86\native\WebView2Loader.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\runtimes\win-x64\native\WebView2Loader.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\runtimes\win-arm64\native\WebView2Loader.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\AIProofread.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\AIProofread.pdb +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\AIProofread.dll.manifest +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\AIProofread.vsto +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Office.Tools.Common.v4.0.Utilities.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Core.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.WinForms.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Wpf.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Core.xml +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.WinForms.xml +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Wpf.xml +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\AIProofread.csproj.CopyComplete +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\AIProofread.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\AIProofread.pdb diff --git a/AIProofread/obj/Debug/AIProofread.csproj.GenerateResource.cache b/AIProofread/obj/Debug/AIProofread.csproj.GenerateResource.cache new file mode 100644 index 0000000..0f5adc5 Binary files /dev/null and b/AIProofread/obj/Debug/AIProofread.csproj.GenerateResource.cache differ diff --git a/AIProofread/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/AIProofread/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..221ed6b Binary files /dev/null and b/AIProofread/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/AIProofread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AIProofread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..952de53 Binary files /dev/null and b/AIProofread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/AIProofread/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/AIProofread/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..23d64b8 Binary files /dev/null and b/AIProofread/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.Controls.FormLogin.resources b/AIProofread/obj/Debug/WordAddInTest2024.Controls.FormLogin.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.Controls.FormLogin.resources differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.Controls.ProofreadMainControl.resources b/AIProofread/obj/Debug/WordAddInTest2024.Controls.ProofreadMainControl.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.Controls.ProofreadMainControl.resources differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.Properties.Resources.resources b/AIProofread/obj/Debug/WordAddInTest2024.Properties.Resources.resources new file mode 100644 index 0000000..2c927b5 Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.Properties.Resources.resources differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.Ribbon1.resources b/AIProofread/obj/Debug/WordAddInTest2024.Ribbon1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.Ribbon1.resources differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.csproj.AssemblyReference.cache b/AIProofread/obj/Debug/WordAddInTest2024.csproj.AssemblyReference.cache new file mode 100644 index 0000000..e7a9b8e Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.csproj.AssemblyReference.cache differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.csproj.CopyComplete b/AIProofread/obj/Debug/WordAddInTest2024.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/AIProofread/obj/Debug/WordAddInTest2024.csproj.CoreCompileInputs.cache b/AIProofread/obj/Debug/WordAddInTest2024.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..7878d17 --- /dev/null +++ b/AIProofread/obj/Debug/WordAddInTest2024.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +05295374399443ed167c5f518320ce2dc3e3ea45 diff --git a/AIProofread/obj/Debug/WordAddInTest2024.csproj.FileListAbsolute.txt b/AIProofread/obj/Debug/WordAddInTest2024.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..517fa43 --- /dev/null +++ b/AIProofread/obj/Debug/WordAddInTest2024.csproj.FileListAbsolute.txt @@ -0,0 +1,24 @@ +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\WordAddInTest2024.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\WordAddInTest2024.pdb +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\WordAddInTest2024.dll.manifest +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\WordAddInTest2024.vsto +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Office.Tools.Common.v4.0.Utilities.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.csproj.AssemblyReference.cache +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Properties.Resources.resources +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.csproj.GenerateResource.cache +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.csproj.CoreCompileInputs.cache +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.csproj.CopyComplete +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.pdb +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Ribbon1.resources +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\runtimes\win-x86\native\WebView2Loader.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\runtimes\win-x64\native\WebView2Loader.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\runtimes\win-arm64\native\WebView2Loader.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Core.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.WinForms.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Wpf.dll +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Core.xml +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.WinForms.xml +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\bin\Debug\Microsoft.Web.WebView2.Wpf.xml +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Controls.ProofreadMainControl.resources +C:\Users\home-dev\source\repos\WordAddInTest2024\WordAddInTest2024\obj\Debug\WordAddInTest2024.Controls.FormLogin.resources diff --git a/AIProofread/obj/Debug/WordAddInTest2024.csproj.GenerateResource.cache b/AIProofread/obj/Debug/WordAddInTest2024.csproj.GenerateResource.cache new file mode 100644 index 0000000..95661af Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.csproj.GenerateResource.cache differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.dll b/AIProofread/obj/Debug/WordAddInTest2024.dll new file mode 100644 index 0000000..eac1ea6 Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.dll differ diff --git a/AIProofread/obj/Debug/WordAddInTest2024.pdb b/AIProofread/obj/Debug/WordAddInTest2024.pdb new file mode 100644 index 0000000..bdd66bb Binary files /dev/null and b/AIProofread/obj/Debug/WordAddInTest2024.pdb differ diff --git a/AIProofread/packages.config b/AIProofread/packages.config new file mode 100644 index 0000000..53f4db0 --- /dev/null +++ b/AIProofread/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file